Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,15 @@ do_action('pg::exception/intercept', $exception, $method)
```

The `$exception` parameter contains the caught exception object.

### Provide Custom Mapping Options from a Theme Directory

This plugin includes supplier-specific mapping option files. In version 1 of the "HaalCentraal API", all available fields were returned, even when only a subset was needed.

Since version 2 of HaalCentraal, this has changed: the goal binding (doelbinding) now determines which fields are returned. This results in a more concise dataset that contains only the necessary fields. Because each municipality (gemeente) can define its own unique goal bindings and corresponding fields, this plugin cannot include all possible mapping configurations by default.

```php
add_filter('pg::theme/dir_mapping_options', function ($value) {
return __DIR__ . '/templates/owc-prefill/';
}, 10, 1);
```
3 changes: 0 additions & 3 deletions build/blocks.asset.php

This file was deleted.

1 change: 0 additions & 1 deletion build/blocks.js

This file was deleted.

1 change: 1 addition & 0 deletions build/icons-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions build/icons.asset.php
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
<?php

return ['dependencies' => [], 'version' => '12341f29470476729a0c'];
<?php return ['dependencies' => [], 'version' => 'eafbc2f5130762d2e52d'];
2 changes: 1 addition & 1 deletion build/icons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions build/personal-data-table/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "owc-prefill-gravity-forms/personal-data-table",
"version": "0.1.0",
"title": "Profielpagina",
"icon": "list-view",
"description": "Maak een profielpagina met persoonsgegevens van de ingelogde gebruiker.",
"example": {},
"supports": {
"html": false
},
"textdomain": "prefill-gravity-forms",
"editorScript": "file:./index.js"
}
1 change: 1 addition & 0 deletions build/personal-data-table/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return ['dependencies' => ['react-jsx-runtime', 'wp-block-editor', 'wp-blocks'], 'version' => '6b367cd01e8bb61dfd0a'];
1 change: 1 addition & 0 deletions build/personal-data-table/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions build/personal-data-table/personal-data-row/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "owc-prefill-gravity-forms/personal-data-row",
"version": "0.1.0",
"title": "Persoonsgegevens",
"icon": "id",
"description": "Toon persoonsgegevens van de ingelogde gebruiker.",
"example": {},
"supports": {
"html": false
},
"attributes": {
"selectedSupplier": {
"type": "object",
"default": {
"value": "",
"label": ""
}
},
"selectedOption": {
"type": "object",
"default": {
"value": "",
"label": ""
}
},
"isChildOfTable": {
"type": "boolean",
"default": false
},
"htmlElement": {
"type": "string",
"default": "p"
}
},
"textdomain": "prefill-gravity-forms",
"editorScript": "file:./index.js",
"render": "file:./render.php"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return ['dependencies' => ['react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'], 'version' => 'b973b3662f9ee0c4c3e3'];
Loading