@formio/js 5.0.0-rc.53 → 5.0.0-rc.55
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +563 -563
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +3 -3
- package/dist/formio.full.js +606 -606
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +3 -3
- package/dist/formio.js +3 -3
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +16 -16
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +3 -3
- package/embed.d.ts +1 -0
- package/form.d.ts +1 -0
- package/lib/cjs/Element.d.ts +3 -2
- package/lib/cjs/Element.js +4 -3
- package/lib/cjs/Form.d.ts +99 -36
- package/lib/cjs/Form.js +23 -18
- package/lib/cjs/InlineEmbed.d.ts +7 -0
- package/lib/cjs/InlineEmbed.js +109 -0
- package/lib/cjs/PDF.d.ts +8 -7
- package/lib/cjs/PDF.js +6 -5
- package/lib/cjs/Webform.d.ts +0 -3
- package/lib/cjs/Webform.js +18 -15
- package/lib/cjs/WebformBuilder.d.ts +15 -14
- package/lib/cjs/WebformBuilder.js +11 -10
- package/lib/cjs/Wizard.d.ts +0 -11
- package/lib/cjs/Wizard.js +16 -14
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
- package/lib/cjs/addons/index.d.ts +2 -2
- package/lib/cjs/components/Components.d.ts +6 -5
- package/lib/cjs/components/Components.js +2 -1
- package/lib/cjs/components/_classes/component/Component.form.d.ts +4 -5
- package/lib/cjs/components/_classes/component/Component.form.js +3 -2
- package/lib/cjs/components/_classes/component/Component.js +3 -2
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
- package/lib/cjs/components/_classes/component/editForm/utils.d.ts +1 -1
- package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +4 -4
- package/lib/cjs/components/_classes/list/ListComponent.form.js +3 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -2
- package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -2
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
- package/lib/cjs/components/address/Address.form.d.ts +4 -5
- package/lib/cjs/components/address/Address.form.js +3 -2
- package/lib/cjs/components/button/Button.form.d.ts +4 -5
- package/lib/cjs/components/button/Button.form.js +3 -2
- package/lib/cjs/components/button/Button.js +3 -2
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +4 -5
- package/lib/cjs/components/checkbox/Checkbox.form.js +3 -2
- package/lib/cjs/components/checkbox/Checkbox.js +2 -9
- package/lib/cjs/components/checkbox/fixtures/comp5.d.ts +34 -0
- package/lib/cjs/components/checkbox/fixtures/comp5.js +55 -0
- package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
- package/lib/cjs/components/columns/Columns.d.ts +1 -1
- package/lib/cjs/components/columns/Columns.form.d.ts +4 -5
- package/lib/cjs/components/columns/Columns.form.js +3 -2
- package/lib/cjs/components/columns/Columns.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +4 -5
- package/lib/cjs/components/container/Container.form.js +3 -2
- package/lib/cjs/components/content/Content.form.d.ts +4 -5
- package/lib/cjs/components/content/Content.form.js +3 -2
- package/lib/cjs/components/currency/Currency.form.d.ts +4 -5
- package/lib/cjs/components/currency/Currency.form.js +3 -2
- package/lib/cjs/components/currency/Currency.js +1 -1
- package/lib/cjs/components/datagrid/DataGrid.d.ts +4 -4
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +4 -5
- package/lib/cjs/components/datagrid/DataGrid.form.js +3 -2
- package/lib/cjs/components/datagrid/DataGrid.js +4 -4
- package/lib/cjs/components/datamap/DataMap.form.d.ts +4 -5
- package/lib/cjs/components/datamap/DataMap.form.js +3 -2
- package/lib/cjs/components/datetime/DateTime.form.d.ts +4 -5
- package/lib/cjs/components/datetime/DateTime.form.js +3 -2
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
- package/lib/cjs/components/day/Day.d.ts +18 -23
- package/lib/cjs/components/day/Day.form.d.ts +4 -5
- package/lib/cjs/components/day/Day.form.js +3 -2
- package/lib/cjs/components/day/Day.js +15 -14
- package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +4 -5
- package/lib/cjs/components/editgrid/EditGrid.form.js +3 -2
- package/lib/cjs/components/editgrid/EditGrid.js +3 -3
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
- package/lib/cjs/components/email/Email.form.d.ts +4 -5
- package/lib/cjs/components/email/Email.form.js +3 -2
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +4 -5
- package/lib/cjs/components/fieldset/Fieldset.form.js +3 -2
- package/lib/cjs/components/file/File.form.d.ts +4 -5
- package/lib/cjs/components/file/File.form.js +3 -2
- package/lib/cjs/components/form/Form.d.ts +23 -20
- package/lib/cjs/components/form/Form.form.d.ts +4 -5
- package/lib/cjs/components/form/Form.form.js +3 -2
- package/lib/cjs/components/form/Form.js +18 -11
- package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +1 -1
- package/lib/cjs/components/form/fixtures/comp7.d.ts +36 -0
- package/lib/cjs/components/form/fixtures/comp7.js +37 -0
- package/lib/cjs/components/form/fixtures/comp8.d.ts +26 -0
- package/lib/cjs/components/form/fixtures/comp8.js +29 -0
- package/lib/cjs/components/form/fixtures/index.d.ts +3 -1
- package/lib/cjs/components/form/fixtures/index.js +5 -1
- package/lib/cjs/components/hidden/Hidden.form.d.ts +4 -5
- package/lib/cjs/components/hidden/Hidden.form.js +3 -2
- package/lib/cjs/components/hidden/Hidden.js +1 -1
- package/lib/cjs/components/html/HTML.form.d.ts +4 -5
- package/lib/cjs/components/html/HTML.form.js +3 -2
- package/lib/cjs/components/number/Number.d.ts +1 -1
- package/lib/cjs/components/number/Number.form.d.ts +4 -5
- package/lib/cjs/components/number/Number.form.js +3 -2
- package/lib/cjs/components/number/Number.js +1 -1
- package/lib/cjs/components/panel/Panel.form.d.ts +4 -5
- package/lib/cjs/components/panel/Panel.form.js +3 -2
- package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
- package/lib/cjs/components/password/Password.form.d.ts +4 -5
- package/lib/cjs/components/password/Password.form.js +3 -2
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +3 -2
- package/lib/cjs/components/radio/Radio.form.d.ts +4 -3
- package/lib/cjs/components/radio/Radio.form.js +3 -2
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +2 -1
- package/lib/cjs/components/select/Select.d.ts +2 -2
- package/lib/cjs/components/select/Select.form.d.ts +4 -3
- package/lib/cjs/components/select/Select.form.js +3 -2
- package/lib/cjs/components/select/Select.js +1 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -8
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -2
- package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
- package/lib/cjs/components/signature/Signature.form.d.ts +4 -5
- package/lib/cjs/components/signature/Signature.form.js +3 -2
- package/lib/cjs/components/survey/Survey.form.d.ts +4 -5
- package/lib/cjs/components/survey/Survey.form.js +3 -2
- package/lib/cjs/components/table/Table.form.d.ts +4 -5
- package/lib/cjs/components/table/Table.form.js +3 -2
- package/lib/cjs/components/tabs/Tabs.d.ts +2 -2
- package/lib/cjs/components/tabs/Tabs.form.d.ts +4 -5
- package/lib/cjs/components/tabs/Tabs.form.js +3 -2
- package/lib/cjs/components/tabs/Tabs.js +1 -1
- package/lib/cjs/components/tags/Tags.form.d.ts +4 -5
- package/lib/cjs/components/tags/Tags.form.js +3 -2
- package/lib/cjs/components/textarea/TextArea.d.ts +3 -3
- package/lib/cjs/components/textarea/TextArea.form.d.ts +4 -5
- package/lib/cjs/components/textarea/TextArea.form.js +3 -2
- package/lib/cjs/components/textarea/TextArea.js +2 -2
- package/lib/cjs/components/textfield/TextField.d.ts +12 -19
- package/lib/cjs/components/textfield/TextField.form.d.ts +4 -5
- package/lib/cjs/components/textfield/TextField.form.js +3 -2
- package/lib/cjs/components/textfield/TextField.js +13 -12
- package/lib/cjs/components/time/Time.form.d.ts +4 -5
- package/lib/cjs/components/time/Time.form.js +3 -2
- package/lib/cjs/components/unknown/Unknown.form.d.ts +3 -35
- package/lib/cjs/components/unknown/Unknown.form.js +2 -1
- package/lib/cjs/components/url/Url.form.d.ts +4 -5
- package/lib/cjs/components/url/Url.form.js +3 -2
- package/lib/cjs/components/well/Well.form.d.ts +4 -5
- package/lib/cjs/components/well/Well.form.js +3 -2
- package/lib/cjs/formio.embed.d.ts +1 -2
- package/lib/cjs/formio.embed.js +2 -100
- package/lib/cjs/formio.form.js +2 -2
- package/lib/cjs/utils/Evaluator.d.ts +0 -1
- package/lib/cjs/utils/Evaluator.js +2 -5
- package/lib/cjs/utils/formUtils.d.ts +1 -1
- package/lib/cjs/utils/utils.d.ts +106 -83
- package/lib/cjs/utils/utils.js +96 -140
- package/lib/cjs/widgets/CalendarWidget.d.ts +8 -7
- package/lib/cjs/widgets/CalendarWidget.js +8 -7
- package/lib/mjs/Element.d.ts +3 -2
- package/lib/mjs/Element.js +4 -3
- package/lib/mjs/Form.d.ts +99 -36
- package/lib/mjs/Form.js +43 -38
- package/lib/mjs/InlineEmbed.d.ts +7 -0
- package/lib/mjs/InlineEmbed.js +105 -0
- package/lib/mjs/PDF.d.ts +8 -7
- package/lib/mjs/PDF.js +6 -5
- package/lib/mjs/Webform.d.ts +0 -3
- package/lib/mjs/Webform.js +18 -15
- package/lib/mjs/WebformBuilder.d.ts +15 -14
- package/lib/mjs/WebformBuilder.js +11 -10
- package/lib/mjs/Wizard.d.ts +0 -11
- package/lib/mjs/Wizard.js +14 -12
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
- package/lib/mjs/addons/index.d.ts +2 -2
- package/lib/mjs/components/Components.d.ts +6 -5
- package/lib/mjs/components/Components.js +2 -1
- package/lib/mjs/components/_classes/component/Component.form.d.ts +4 -5
- package/lib/mjs/components/_classes/component/Component.form.js +3 -2
- package/lib/mjs/components/_classes/component/Component.js +3 -2
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.d.ts +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +4 -4
- package/lib/mjs/components/_classes/list/ListComponent.form.js +3 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -2
- package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -2
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
- package/lib/mjs/components/address/Address.form.d.ts +4 -5
- package/lib/mjs/components/address/Address.form.js +3 -2
- package/lib/mjs/components/button/Button.form.d.ts +4 -5
- package/lib/mjs/components/button/Button.form.js +3 -2
- package/lib/mjs/components/button/Button.js +3 -2
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +4 -5
- package/lib/mjs/components/checkbox/Checkbox.form.js +3 -2
- package/lib/mjs/components/checkbox/Checkbox.js +2 -9
- package/lib/mjs/components/checkbox/fixtures/comp5.d.ts +34 -0
- package/lib/mjs/components/checkbox/fixtures/comp5.js +53 -0
- package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
- package/lib/mjs/components/columns/Columns.d.ts +1 -1
- package/lib/mjs/components/columns/Columns.form.d.ts +4 -5
- package/lib/mjs/components/columns/Columns.form.js +3 -2
- package/lib/mjs/components/columns/Columns.js +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +4 -5
- package/lib/mjs/components/container/Container.form.js +3 -2
- package/lib/mjs/components/content/Content.form.d.ts +4 -5
- package/lib/mjs/components/content/Content.form.js +3 -2
- package/lib/mjs/components/currency/Currency.form.d.ts +4 -5
- package/lib/mjs/components/currency/Currency.form.js +3 -2
- package/lib/mjs/components/currency/Currency.js +1 -1
- package/lib/mjs/components/datagrid/DataGrid.d.ts +4 -4
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +4 -5
- package/lib/mjs/components/datagrid/DataGrid.form.js +3 -2
- package/lib/mjs/components/datagrid/DataGrid.js +4 -4
- package/lib/mjs/components/datamap/DataMap.form.d.ts +4 -5
- package/lib/mjs/components/datamap/DataMap.form.js +3 -2
- package/lib/mjs/components/datetime/DateTime.form.d.ts +4 -5
- package/lib/mjs/components/datetime/DateTime.form.js +3 -2
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +18 -23
- package/lib/mjs/components/day/Day.form.d.ts +4 -5
- package/lib/mjs/components/day/Day.form.js +3 -2
- package/lib/mjs/components/day/Day.js +15 -14
- package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +4 -5
- package/lib/mjs/components/editgrid/EditGrid.form.js +3 -2
- package/lib/mjs/components/editgrid/EditGrid.js +3 -3
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +4 -5
- package/lib/mjs/components/email/Email.form.js +3 -2
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +4 -5
- package/lib/mjs/components/fieldset/Fieldset.form.js +3 -2
- package/lib/mjs/components/file/File.form.d.ts +4 -5
- package/lib/mjs/components/file/File.form.js +3 -2
- package/lib/mjs/components/form/Form.d.ts +23 -20
- package/lib/mjs/components/form/Form.form.d.ts +4 -5
- package/lib/mjs/components/form/Form.form.js +3 -2
- package/lib/mjs/components/form/Form.js +18 -11
- package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +1 -1
- package/lib/mjs/components/form/fixtures/comp7.d.ts +36 -0
- package/lib/mjs/components/form/fixtures/comp7.js +35 -0
- package/lib/mjs/components/form/fixtures/comp8.d.ts +26 -0
- package/lib/mjs/components/form/fixtures/comp8.js +27 -0
- package/lib/mjs/components/form/fixtures/index.d.ts +3 -1
- package/lib/mjs/components/form/fixtures/index.js +3 -1
- package/lib/mjs/components/hidden/Hidden.form.d.ts +4 -5
- package/lib/mjs/components/hidden/Hidden.form.js +3 -2
- package/lib/mjs/components/hidden/Hidden.js +1 -1
- package/lib/mjs/components/html/HTML.form.d.ts +4 -5
- package/lib/mjs/components/html/HTML.form.js +3 -2
- package/lib/mjs/components/number/Number.d.ts +1 -1
- package/lib/mjs/components/number/Number.form.d.ts +4 -5
- package/lib/mjs/components/number/Number.form.js +3 -2
- package/lib/mjs/components/number/Number.js +1 -1
- package/lib/mjs/components/panel/Panel.form.d.ts +4 -5
- package/lib/mjs/components/panel/Panel.form.js +3 -2
- package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
- package/lib/mjs/components/password/Password.form.d.ts +4 -5
- package/lib/mjs/components/password/Password.form.js +3 -2
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +3 -2
- package/lib/mjs/components/radio/Radio.form.d.ts +4 -3
- package/lib/mjs/components/radio/Radio.form.js +3 -2
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +2 -1
- package/lib/mjs/components/select/Select.d.ts +2 -2
- package/lib/mjs/components/select/Select.form.d.ts +4 -3
- package/lib/mjs/components/select/Select.form.js +3 -2
- package/lib/mjs/components/select/Select.js +1 -1
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -8
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -2
- package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
- package/lib/mjs/components/signature/Signature.form.d.ts +4 -5
- package/lib/mjs/components/signature/Signature.form.js +3 -2
- package/lib/mjs/components/survey/Survey.form.d.ts +4 -5
- package/lib/mjs/components/survey/Survey.form.js +3 -2
- package/lib/mjs/components/table/Table.form.d.ts +4 -5
- package/lib/mjs/components/table/Table.form.js +3 -2
- package/lib/mjs/components/tabs/Tabs.d.ts +2 -2
- package/lib/mjs/components/tabs/Tabs.form.d.ts +4 -5
- package/lib/mjs/components/tabs/Tabs.form.js +3 -2
- package/lib/mjs/components/tabs/Tabs.js +1 -1
- package/lib/mjs/components/tags/Tags.form.d.ts +4 -5
- package/lib/mjs/components/tags/Tags.form.js +3 -2
- package/lib/mjs/components/textarea/TextArea.d.ts +3 -3
- package/lib/mjs/components/textarea/TextArea.form.d.ts +4 -5
- package/lib/mjs/components/textarea/TextArea.form.js +3 -2
- package/lib/mjs/components/textarea/TextArea.js +2 -2
- package/lib/mjs/components/textfield/TextField.d.ts +12 -19
- package/lib/mjs/components/textfield/TextField.form.d.ts +4 -5
- package/lib/mjs/components/textfield/TextField.form.js +3 -2
- package/lib/mjs/components/textfield/TextField.js +13 -12
- package/lib/mjs/components/time/Time.form.d.ts +4 -5
- package/lib/mjs/components/time/Time.form.js +3 -2
- package/lib/mjs/components/unknown/Unknown.form.d.ts +3 -35
- package/lib/mjs/components/unknown/Unknown.form.js +2 -1
- package/lib/mjs/components/url/Url.form.d.ts +4 -5
- package/lib/mjs/components/url/Url.form.js +3 -2
- package/lib/mjs/components/well/Well.form.d.ts +4 -5
- package/lib/mjs/components/well/Well.form.js +3 -2
- package/lib/mjs/formio.embed.d.ts +1 -2
- package/lib/mjs/formio.embed.js +2 -99
- package/lib/mjs/formio.form.js +1 -1
- package/lib/mjs/utils/Evaluator.d.ts +0 -1
- package/lib/mjs/utils/Evaluator.js +1 -4
- package/lib/mjs/utils/formUtils.d.ts +1 -1
- package/lib/mjs/utils/utils.d.ts +106 -83
- package/lib/mjs/utils/utils.js +96 -140
- package/lib/mjs/widgets/CalendarWidget.d.ts +8 -7
- package/lib/mjs/widgets/CalendarWidget.js +8 -7
- package/package.json +12 -11
- package/sdk.d.ts +1 -0
- package/utils.d.ts +1 -0
@@ -56,9 +56,10 @@ export default class WebformBuilder extends Component {
|
|
56
56
|
/**
|
57
57
|
* When a component sets its api key, we need to check if it is unique within its namespace. Find the namespace root
|
58
58
|
* so we can calculate this correctly.
|
59
|
-
* @param component
|
59
|
+
* @param {import('@formio/core').Component} component - The component to find the namespace root for.
|
60
|
+
* @returns {import('@formio/core').Component[]} - The components root for this namespace.
|
60
61
|
*/
|
61
|
-
findNamespaceRoot(component:
|
62
|
+
findNamespaceRoot(component: import('@formio/core').Component): import('@formio/core').Component[];
|
62
63
|
recurseNamespace(component: any): any;
|
63
64
|
render(): any;
|
64
65
|
attach(element: any): Promise<any>;
|
@@ -80,13 +81,13 @@ export default class WebformBuilder extends Component {
|
|
80
81
|
highlightInvalidComponents(): void;
|
81
82
|
/**
|
82
83
|
* Called when a new component is saved.
|
83
|
-
* @param
|
84
|
-
* @param component
|
85
|
-
* @param isNew
|
86
|
-
* @param original
|
87
|
-
* @returns {boolean}
|
84
|
+
* @param {Component} component - The component instance to save.
|
85
|
+
* @param {Component} parent - The parent component.
|
86
|
+
* @param {boolean} isNew - If this is a new component.
|
87
|
+
* @param {Component} original - The original component.
|
88
|
+
* @returns {boolean} - If the component was saved.
|
88
89
|
*/
|
89
|
-
saveComponent(component:
|
90
|
+
saveComponent(component: Component, parent: Component, isNew: boolean, original: Component): boolean;
|
90
91
|
isComponentCreated: boolean | undefined;
|
91
92
|
emitSaveComponentEvent(schema: any, originalComp: any, parentComponentSchema: any, path: any, index: any, isNew: any, originalComponentSchema: any): void;
|
92
93
|
attachEditComponentControls(component: any, parent: any, isNew: any, original: any, ComponentClass: any): void;
|
@@ -106,16 +107,16 @@ export default class WebformBuilder extends Component {
|
|
106
107
|
addNewComponent(element: any): void;
|
107
108
|
/**
|
108
109
|
* Creates copy of component schema and stores it under sessionStorage.
|
109
|
-
* @param {Component} component
|
110
|
-
* @returns {
|
110
|
+
* @param {Component} component - The component to copy.
|
111
|
+
* @returns {void}
|
111
112
|
*/
|
112
|
-
copyComponent(component: Component):
|
113
|
+
copyComponent(component: Component): void;
|
113
114
|
/**
|
114
115
|
* Paste copied component after the current component.
|
115
|
-
* @param {Component} component
|
116
|
-
* @returns {
|
116
|
+
* @param {Component} component - The component to paste after.
|
117
|
+
* @returns {void}
|
117
118
|
*/
|
118
|
-
pasteComponent(component: Component):
|
119
|
+
pasteComponent(component: Component): void;
|
119
120
|
isParentSaveChildMethod(parentComp: any): boolean;
|
120
121
|
getParentElement(element: any): any;
|
121
122
|
addBuilderComponentInfo(component: any): any;
|
@@ -414,7 +414,8 @@ export default class WebformBuilder extends Component {
|
|
414
414
|
/**
|
415
415
|
* When a component sets its api key, we need to check if it is unique within its namespace. Find the namespace root
|
416
416
|
* so we can calculate this correctly.
|
417
|
-
* @param component
|
417
|
+
* @param {import('@formio/core').Component} component - The component to find the namespace root for.
|
418
|
+
* @returns {import('@formio/core').Component[]} - The components root for this namespace.
|
418
419
|
*/
|
419
420
|
findNamespaceRoot(component) {
|
420
421
|
const path = getArrayFromComponentPath(component.path);
|
@@ -1116,11 +1117,11 @@ export default class WebformBuilder extends Component {
|
|
1116
1117
|
}
|
1117
1118
|
/**
|
1118
1119
|
* Called when a new component is saved.
|
1119
|
-
* @param
|
1120
|
-
* @param component
|
1121
|
-
* @param isNew
|
1122
|
-
* @param original
|
1123
|
-
* @returns {boolean}
|
1120
|
+
* @param {Component} component - The component instance to save.
|
1121
|
+
* @param {Component} parent - The parent component.
|
1122
|
+
* @param {boolean} isNew - If this is a new component.
|
1123
|
+
* @param {Component} original - The original component.
|
1124
|
+
* @returns {boolean} - If the component was saved.
|
1124
1125
|
*/
|
1125
1126
|
saveComponent(component, parent, isNew, original) {
|
1126
1127
|
this.editForm.detach();
|
@@ -1507,8 +1508,8 @@ export default class WebformBuilder extends Component {
|
|
1507
1508
|
}
|
1508
1509
|
/**
|
1509
1510
|
* Creates copy of component schema and stores it under sessionStorage.
|
1510
|
-
* @param {Component} component
|
1511
|
-
* @returns {
|
1511
|
+
* @param {Component} component - The component to copy.
|
1512
|
+
* @returns {void}
|
1512
1513
|
*/
|
1513
1514
|
copyComponent(component) {
|
1514
1515
|
if (!window.sessionStorage) {
|
@@ -1519,8 +1520,8 @@ export default class WebformBuilder extends Component {
|
|
1519
1520
|
}
|
1520
1521
|
/**
|
1521
1522
|
* Paste copied component after the current component.
|
1522
|
-
* @param {Component} component
|
1523
|
-
* @returns {
|
1523
|
+
* @param {Component} component - The component to paste after.
|
1524
|
+
* @returns {void}
|
1524
1525
|
*/
|
1525
1526
|
pasteComponent(component) {
|
1526
1527
|
if (!window.sessionStorage) {
|
package/lib/mjs/Wizard.d.ts
CHANGED
@@ -1,13 +1,4 @@
|
|
1
1
|
declare class Wizard extends Webform {
|
2
|
-
/**
|
3
|
-
* Constructor for wizard-based forms.
|
4
|
-
* @param {HTMLElement} [element] - The DOM element to place this wizard.
|
5
|
-
* @param {object} [options] - Options object, supported options include:
|
6
|
-
* - breadcrumbSettings.clickable: true (default) - determines if the breadcrumb bar is clickable.
|
7
|
-
* - buttonSettings.show*(Previous, Next, Cancel): true (default) - determines if the button is shown.
|
8
|
-
* - allowPrevious: false (default) - determines if the breadcrumb bar is clickable for visited tabs.
|
9
|
-
*/
|
10
|
-
constructor(...args: any[]);
|
11
2
|
pages: any[];
|
12
3
|
prefixComps: any[];
|
13
4
|
suffixComps: any[];
|
@@ -28,8 +19,6 @@ declare class Wizard extends Webform {
|
|
28
19
|
getPages(args?: {}): any[];
|
29
20
|
get hasExtraPages(): boolean;
|
30
21
|
get localData(): any;
|
31
|
-
isClickableDefined: boolean | undefined;
|
32
|
-
isSecondInit: boolean | undefined;
|
33
22
|
get wizardKey(): string;
|
34
23
|
set wizard(form: object);
|
35
24
|
get wizard(): object;
|
package/lib/mjs/Wizard.js
CHANGED
@@ -5,20 +5,20 @@ import { fastCloneDeep, checkCondition, firstNonNil, uniqueKey, eachComponent, }
|
|
5
5
|
export default class Wizard extends Webform {
|
6
6
|
/**
|
7
7
|
* Constructor for wizard-based forms.
|
8
|
-
* @param {HTMLElement} [
|
9
|
-
* @param {
|
8
|
+
* @param {HTMLElement | object | import('Form').FormOptions} [elementOrOptions] - The DOM element to render this form within or the options to create this form instance.
|
9
|
+
* @param {import('Form').FormOptions} [_options] - The options to create a new form instance.
|
10
10
|
* - breadcrumbSettings.clickable: true (default) - determines if the breadcrumb bar is clickable.
|
11
11
|
* - buttonSettings.show*(Previous, Next, Cancel): true (default) - determines if the button is shown.
|
12
12
|
* - allowPrevious: false (default) - determines if the breadcrumb bar is clickable for visited tabs.
|
13
13
|
*/
|
14
|
-
constructor() {
|
14
|
+
constructor(elementOrOptions = undefined, _options = undefined) {
|
15
15
|
let element, options;
|
16
|
-
if (
|
17
|
-
element =
|
18
|
-
options =
|
16
|
+
if (elementOrOptions instanceof HTMLElement || options) {
|
17
|
+
element = elementOrOptions;
|
18
|
+
options = _options || {};
|
19
19
|
}
|
20
20
|
else {
|
21
|
-
options =
|
21
|
+
options = elementOrOptions || {};
|
22
22
|
}
|
23
23
|
options.display = 'wizard';
|
24
24
|
super(element, options);
|
@@ -90,10 +90,6 @@ export default class Wizard extends Webform {
|
|
90
90
|
showSubmit: true,
|
91
91
|
showCancel: !this.options.readOnly
|
92
92
|
});
|
93
|
-
if (!this.isSecondInit) {
|
94
|
-
this.isClickableDefined = Object.prototype.hasOwnProperty.call(this.options?.breadcrumbSettings, 'clickable');
|
95
|
-
this.isSecondInit = true;
|
96
|
-
}
|
97
93
|
this.options.breadcrumbSettings = _.defaults(this.options.breadcrumbSettings, {
|
98
94
|
clickable: true
|
99
95
|
});
|
@@ -295,7 +291,13 @@ export default class Wizard extends Webform {
|
|
295
291
|
currentPage = page;
|
296
292
|
}
|
297
293
|
});
|
298
|
-
|
294
|
+
if (_.has(currentPage, 'component.breadcrumbClickable')) {
|
295
|
+
return _.get(currentPage, 'component.breadcrumbClickable');
|
296
|
+
}
|
297
|
+
if (_.has(this.options, 'breadcrumbSettings.clickable')) {
|
298
|
+
return this.options.breadcrumbSettings.clickable;
|
299
|
+
}
|
300
|
+
return true;
|
299
301
|
}
|
300
302
|
isAllowPrevious() {
|
301
303
|
let currentPage = null;
|
@@ -23,7 +23,7 @@ export default class PasswordStrengthAddon extends FormioAddon {
|
|
23
23
|
'margin-bottom': string;
|
24
24
|
};
|
25
25
|
key: string;
|
26
|
-
customConditional():
|
26
|
+
customConditional(): boolean;
|
27
27
|
components: ({
|
28
28
|
type: string;
|
29
29
|
key: any;
|
@@ -321,7 +321,7 @@ export default class PasswordStrengthAddon extends FormioAddon {
|
|
321
321
|
'margin-bottom': string;
|
322
322
|
};
|
323
323
|
key: string;
|
324
|
-
customConditional():
|
324
|
+
customConditional(): boolean;
|
325
325
|
components: ({
|
326
326
|
type: string;
|
327
327
|
key: any;
|
@@ -19,7 +19,7 @@ declare const _default: ({
|
|
19
19
|
'margin-bottom': string;
|
20
20
|
};
|
21
21
|
key: string;
|
22
|
-
customConditional():
|
22
|
+
customConditional(): boolean;
|
23
23
|
components: ({
|
24
24
|
type: string;
|
25
25
|
key: any;
|
@@ -317,7 +317,7 @@ declare const _default: ({
|
|
317
317
|
'margin-bottom': string;
|
318
318
|
};
|
319
319
|
key: string;
|
320
|
-
customConditional():
|
320
|
+
customConditional(): boolean;
|
321
321
|
components: ({
|
322
322
|
type: string;
|
323
323
|
key: any;
|
@@ -24,7 +24,7 @@ export const editForms: {
|
|
24
24
|
'margin-bottom': string;
|
25
25
|
};
|
26
26
|
key: string;
|
27
|
-
customConditional():
|
27
|
+
customConditional(): boolean;
|
28
28
|
components: ({
|
29
29
|
type: string;
|
30
30
|
key: any;
|
@@ -322,7 +322,7 @@ export const editForms: {
|
|
322
322
|
'margin-bottom': string;
|
323
323
|
};
|
324
324
|
key: string;
|
325
|
-
customConditional():
|
325
|
+
customConditional(): boolean;
|
326
326
|
components: ({
|
327
327
|
type: string;
|
328
328
|
key: any;
|
@@ -28,7 +28,7 @@ export default class Components {
|
|
28
28
|
'margin-bottom': string;
|
29
29
|
};
|
30
30
|
key: string;
|
31
|
-
customConditional():
|
31
|
+
customConditional(): boolean;
|
32
32
|
components: ({
|
33
33
|
type: string;
|
34
34
|
key: any;
|
@@ -112,7 +112,7 @@ export default class Components {
|
|
112
112
|
'margin-bottom': string;
|
113
113
|
};
|
114
114
|
key: string;
|
115
|
-
customConditional():
|
115
|
+
customConditional(): boolean;
|
116
116
|
components: ({
|
117
117
|
type: string;
|
118
118
|
key: any;
|
@@ -195,7 +195,7 @@ export default class Components {
|
|
195
195
|
'margin-bottom': string;
|
196
196
|
};
|
197
197
|
key: string;
|
198
|
-
customConditional():
|
198
|
+
customConditional(): boolean;
|
199
199
|
components: ({
|
200
200
|
type: string;
|
201
201
|
key: any;
|
@@ -258,10 +258,11 @@ export default class Components {
|
|
258
258
|
static setComponent(name: any, comp: any): void;
|
259
259
|
/**
|
260
260
|
* Return a path of component's value.
|
261
|
-
* @param {
|
261
|
+
* @param {Component} component - The component instance.
|
262
262
|
* @returns {string} - The component's value path.
|
263
263
|
*/
|
264
|
-
static getComponentPath(component:
|
264
|
+
static getComponentPath(component: Component): string;
|
265
265
|
static create(component: any, options: any, data: any): any;
|
266
266
|
}
|
267
267
|
import BaseEditForm from './_classes/component/Component.form';
|
268
|
+
import Component from './_classes/component/Component';
|
@@ -47,7 +47,7 @@ export default class Components {
|
|
47
47
|
}
|
48
48
|
/**
|
49
49
|
* Return a path of component's value.
|
50
|
-
* @param {
|
50
|
+
* @param {Component} component - The component instance.
|
51
51
|
* @returns {string} - The component's value path.
|
52
52
|
*/
|
53
53
|
static getComponentPath(component) {
|
@@ -67,6 +67,7 @@ export default class Components {
|
|
67
67
|
path += component.component.key;
|
68
68
|
return _.trim(path, '.');
|
69
69
|
}
|
70
|
+
return path;
|
70
71
|
}
|
71
72
|
static create(component, options, data) {
|
72
73
|
let comp = null;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {...any} extend
|
2
|
+
* The Edit Form function.
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
4
5
|
*/
|
5
|
-
export default function _default(...extend: any[]):
|
6
|
-
components: any;
|
7
|
-
};
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -8,8 +8,9 @@ import ComponentEditValidation from './editForm/Component.edit.validation';
|
|
8
8
|
import ComponentEditLayout from './editForm/Component.edit.layout';
|
9
9
|
import EditFormUtils from './editForm/utils';
|
10
10
|
/**
|
11
|
-
*
|
12
|
-
* @param {...any} extend
|
11
|
+
* The Edit Form function.
|
12
|
+
* @param {...any} extend - The components that extend the edit form.
|
13
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
13
14
|
*/
|
14
15
|
export default function (...extend) {
|
15
16
|
const components = _.cloneDeep([
|
@@ -989,6 +989,9 @@ export default class Component extends Element {
|
|
989
989
|
* @param {string} [referenceAttributeName] - The attribute name to use for the reference.
|
990
990
|
*/
|
991
991
|
loadRefs(element, refs, referenceAttributeName) {
|
992
|
+
if (!element) {
|
993
|
+
return;
|
994
|
+
}
|
992
995
|
for (const ref in refs) {
|
993
996
|
const refType = refs[ref];
|
994
997
|
const isString = typeof refType === 'string';
|
@@ -2997,11 +3000,9 @@ export default class Component extends Element {
|
|
2997
3000
|
checkValidity(data = null, dirty = false, row = null, silentCheck = false, errors = []) {
|
2998
3001
|
data = data || this.rootValue;
|
2999
3002
|
row = row || this.data;
|
3000
|
-
console.log('Deprecation warning: Component.checkValidity() will be deprecated in 6.x version of renderer. Use Component.validateComponent instead.');
|
3001
3003
|
return this.checkComponentValidity(data, dirty, row, { silentCheck }, errors);
|
3002
3004
|
}
|
3003
3005
|
checkAsyncValidity(data = null, dirty = false, row = null, silentCheck = false, errors = []) {
|
3004
|
-
console.log('Deprecation warning: Component.checkAsyncValidity() will be deprecated in 6.x version of renderer. Use Component.validateComponent instead.');
|
3005
3006
|
return this.checkComponentValidity(data, dirty, row, { async: true, silentCheck }, errors);
|
3006
3007
|
}
|
3007
3008
|
/**
|
@@ -36,7 +36,7 @@ declare const _default: {
|
|
36
36
|
'margin-bottom': string;
|
37
37
|
};
|
38
38
|
key: string;
|
39
|
-
customConditional():
|
39
|
+
customConditional(): boolean;
|
40
40
|
components: ({
|
41
41
|
type: string;
|
42
42
|
key: any;
|
@@ -334,7 +334,7 @@ declare const _default: {
|
|
334
334
|
'margin-bottom': string;
|
335
335
|
};
|
336
336
|
key: string;
|
337
|
-
customConditional():
|
337
|
+
customConditional(): boolean;
|
338
338
|
components: ({
|
339
339
|
type: string;
|
340
340
|
key: any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _ from 'lodash';
|
2
|
-
import Evaluator from '../../../../utils/Evaluator';
|
2
|
+
import { Evaluator } from '../../../../utils/Evaluator';
|
3
3
|
const EditFormUtils = {
|
4
4
|
sortAndFilterComponents(components) {
|
5
5
|
return _.filter(_.sortBy(components, 'weight'), (item) => !item.ignore);
|
@@ -1,9 +1,9 @@
|
|
1
1
|
export default class ListComponent extends Field {
|
2
2
|
get isSelectURL(): boolean;
|
3
3
|
get selectData(): any;
|
4
|
-
get shouldLoad():
|
4
|
+
get shouldLoad(): boolean;
|
5
5
|
getTemplateKeys(): void;
|
6
|
-
templateKeys:
|
6
|
+
templateKeys: string[] | undefined;
|
7
7
|
get requestHeaders(): any;
|
8
8
|
setItems(): void;
|
9
9
|
updateCustomItems(): void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {...any} extend - The
|
4
|
-
* @returns {
|
2
|
+
* The Edit Form function.
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]):
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import Components from '../../Components';
|
2
2
|
import ListEditData from './editForm/ListComponent.edit.data';
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
* @param {...any} extend - The
|
6
|
-
* @returns {
|
4
|
+
* The Edit Form function.
|
5
|
+
* @param {...any} extend - The components that extend the edit form.
|
6
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
7
7
|
*/
|
8
8
|
export default function (...extend) {
|
9
9
|
return Components.baseEditForm([
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {...any} extend
|
2
|
+
* The Edit Form function.
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
4
5
|
*/
|
5
|
-
export default function _default(...extend: any[]):
|
6
|
-
components: any;
|
7
|
-
};
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import Components from '../../Components';
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* @param {...any} extend
|
3
|
+
* The Edit Form function.
|
4
|
+
* @param {...any} extend - The components that extend the edit form.
|
5
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
6
|
*/
|
6
7
|
export default function (...extend) {
|
7
8
|
return Components.baseEditForm([
|
@@ -751,12 +751,10 @@ export default class NestedComponent extends Field {
|
|
751
751
|
* @returns {boolean} - TRUE if the component is valid.
|
752
752
|
*/
|
753
753
|
checkValidity(data = null, dirty = false, row = null, silentCheck = false, childErrors = []) {
|
754
|
-
console.log('Deprecation warning: Component.checkValidity() will be deprecated in 6.x version of renderer. Use "validate" method instead.');
|
755
754
|
childErrors.push(...this.validate(data, { dirty, silentCheck }));
|
756
755
|
return this.checkComponentValidity(data, dirty, row, { dirty, silentCheck }, childErrors) && childErrors.length === 0;
|
757
756
|
}
|
758
757
|
checkAsyncValidity(data = null, dirty = false, row = null, silentCheck = false) {
|
759
|
-
console.log('Deprecation warning: Component.checkAsyncValidity() will be deprecated in 6.x version of renderer.');
|
760
758
|
return this.ready.then(() => {
|
761
759
|
return this.validate(data, { dirty, silentCheck, async: true }).then((childErrors) => {
|
762
760
|
return this.checkComponentValidity(data, dirty, row, { dirty, silentCheck, async: true }, childErrors).then((valid) => {
|
@@ -9,7 +9,7 @@ export default class NestedDataComponent extends NestedComponent {
|
|
9
9
|
everyComponent(fn: any, options?: {}): void;
|
10
10
|
/**
|
11
11
|
* Get the value of this component.
|
12
|
-
* @returns {
|
12
|
+
* @returns {any} - Return the value of this component.
|
13
13
|
*/
|
14
14
|
getValue(): any;
|
15
15
|
updateValue(value: any, flags?: {}): boolean;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {...any} extend
|
2
|
+
* The Edit Form function.
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
4
5
|
*/
|
5
|
-
export default function _default(...extend: any[]):
|
6
|
-
components: any;
|
7
|
-
};
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -3,8 +3,9 @@ import AddressEditData from './editForm/Address.edit.data';
|
|
3
3
|
import AddressEditDisplay from './editForm/Address.edit.display';
|
4
4
|
import AddressEditProvider from './editForm/Address.edit.provider';
|
5
5
|
/**
|
6
|
-
*
|
7
|
-
* @param {...any} extend
|
6
|
+
* The Edit Form function.
|
7
|
+
* @param {...any} extend - The components that extend the edit form.
|
8
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
8
9
|
*/
|
9
10
|
export default function (...extend) {
|
10
11
|
return Components.baseEditForm([
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {...any} extend
|
2
|
+
* The Edit Form function.
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
4
5
|
*/
|
5
|
-
export default function _default(...extend: any[]):
|
6
|
-
components: any;
|
7
|
-
};
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import Components from '../Components';
|
2
2
|
import ButtonEditDisplay from './editForm/Button.edit.display';
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
* @param {...any} extend
|
4
|
+
* The Edit Form function.
|
5
|
+
* @param {...any} extend - The components that extend the edit form.
|
6
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
6
7
|
*/
|
7
8
|
export default function (...extend) {
|
8
9
|
return Components.baseEditForm([
|
@@ -225,8 +225,9 @@ export default class ButtonComponent extends Field {
|
|
225
225
|
this.disabled = this.shouldDisabled;
|
226
226
|
this.setDisabled(this.refs.button, this.disabled);
|
227
227
|
/**
|
228
|
-
*
|
229
|
-
* @param name
|
228
|
+
* Get url parameter by name
|
229
|
+
* @param {string} name - The url parameter
|
230
|
+
* @returns {string} - The url parameter value
|
230
231
|
*/
|
231
232
|
function getUrlParameter(name) {
|
232
233
|
name = name.replace(/[[]/, '\\[').replace(/[\]]/, '\\]');
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {...any} extend
|
2
|
+
* The Edit Form function.
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
4
5
|
*/
|
5
|
-
export default function _default(...extend: any[]):
|
6
|
-
components: any;
|
7
|
-
};
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -3,8 +3,9 @@ import CheckboxEditData from './editForm/Checkbox.edit.data';
|
|
3
3
|
import CheckboxEditDisplay from './editForm/Checkbox.edit.display';
|
4
4
|
import CheckboxEditValidation from './editForm/Checkbox.edit.validation';
|
5
5
|
/**
|
6
|
-
*
|
7
|
-
* @param {...any} extend
|
6
|
+
* The Edit Form function.
|
7
|
+
* @param {...any} extend - The components that extend the edit form.
|
8
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
8
9
|
*/
|
9
10
|
export default function (...extend) {
|
10
11
|
return Components.baseEditForm([
|
@@ -178,15 +178,8 @@ export default class CheckBoxComponent extends Field {
|
|
178
178
|
return value;
|
179
179
|
}
|
180
180
|
setValue(value, flags = {}) {
|
181
|
-
|
182
|
-
|
183
|
-
const changed = this.updateValue(value, flags);
|
184
|
-
if (this.isHtmlRenderMode() && flags && flags.fromSubmission && changed) {
|
185
|
-
this.redraw();
|
186
|
-
}
|
187
|
-
return changed;
|
188
|
-
}
|
189
|
-
return false;
|
181
|
+
this.setCheckedState(value);
|
182
|
+
return super.setValue(value, flags);
|
190
183
|
}
|
191
184
|
getValueAsString(value) {
|
192
185
|
const { name: componentName, value: componentValue } = this.component;
|