Skip to content

Commit

Permalink
[#3607] Fetch latest builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Dec 6, 2023
1 parent 73906a6 commit 75b899e
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^6.1.1",
"@open-formulieren/design-tokens": "^0.51.0",
"@open-formulieren/formio-builder": "^0.9.0",
"@open-formulieren/formio-builder": "^0.10.1",
"@rjsf/core": "^4.2.1",
"@tinymce/tinymce-react": "^3.12.6",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
Expand Down Expand Up @@ -69,7 +69,7 @@
],
"transformIgnorePatterns": [
"/node_modules/(?!@open-formulieren/formio-builder)/",
"\\.pnp\\.[^\\\/]+$"
"\\.pnp\\.[^\\/]+$"
]
},
"browserslist": [
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/formio/components/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def mutate_config_dynamically(
]


@register("address")
@register("addressNL")
class Default(BasePlugin):

formatter = DefaultFormatter
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {localiseSchema} from './i18n';
const FieldComponent = Formio.Components.components.field;

/**
* An address component.
* An address (NL) component.
*/
class Address extends FieldComponent {
class AddressNL extends FieldComponent {
constructor(component, options, data) {
super(component, options, data);
this.checks = [];
Expand All @@ -16,8 +16,8 @@ class Address extends FieldComponent {
static schema(...extend) {
const schema = FieldComponent.schema(
{
label: 'Address',
type: 'address',
label: 'AddressNL',
type: 'addressNL',
input: false,
},
...extend
Expand All @@ -27,24 +27,24 @@ class Address extends FieldComponent {

static get builderInfo() {
return {
title: 'Address',
title: 'AddressNL',
icon: 'home',
group: 'basic',
weight: 300,
schema: Address.schema(),
schema: AddressNL.schema(),
};
}

render(content) {
const btnContent = this.t('Address', {
authPlugin: this.component.authPlugin,
});
const context = {
content: content,
btnContent: btnContent,
};
return super.render(this.renderTemplate('address', context));
}
// render(content) {
// const btnContent = this.t('AddressNL', {
// authPlugin: this.component.authPlugin,
// });
// const context = {
// content: content,
// btnContent: btnContent,
// };
// return super.render(this.renderTemplate('addressNL', context));
// }
}

export default Address;
export default AddressNL;
2 changes: 1 addition & 1 deletion src/openforms/js/components/formio_builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getBuilderOptions = () => {
cosign: true,
map: true,
editgrid: true,
address: true,
addressNL: true,
},
},
custom_layout: {
Expand Down
4 changes: 2 additions & 2 deletions src/openforms/js/formio_module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Address from './components/form/address';
import AddressNL from './components/form/addressNL';
import BsnField from './components/form/bsn';
import CheckboxField from './components/form/checkbox';
import CoSignFieldOld from './components/form/coSignOld';
Expand Down Expand Up @@ -65,7 +65,7 @@ const FormIOModule = {
currency: CurrencyField,
editgrid: EditGrid,
datamap: Datamap,
address: Address,
addressNL: AddressNL,
},
builders: {
webform: WebformBuilder,
Expand Down

0 comments on commit 75b899e

Please sign in to comment.