@formio/js 5.0.0-rc.54 → 5.0.0-rc.56
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/lib/cjs/Element.d.ts +3 -2
- package/lib/cjs/Element.js +4 -3
- package/lib/cjs/Embed.js +8 -5
- package/lib/cjs/Form.d.ts +99 -36
- package/lib/cjs/Form.js +23 -18
- package/lib/cjs/PDF.d.ts +8 -7
- package/lib/cjs/PDF.js +6 -5
- package/lib/cjs/Webform.d.ts +1 -4
- package/lib/cjs/Webform.js +19 -16
- package/lib/cjs/WebformBuilder.d.ts +15 -14
- package/lib/cjs/WebformBuilder.js +11 -10
- package/lib/cjs/Wizard.d.ts +1 -12
- package/lib/cjs/Wizard.js +17 -15
- 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.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/Embed.js +8 -5
- package/lib/mjs/Form.d.ts +99 -36
- package/lib/mjs/Form.js +43 -38
- package/lib/mjs/PDF.d.ts +8 -7
- package/lib/mjs/PDF.js +6 -5
- package/lib/mjs/Webform.d.ts +1 -4
- package/lib/mjs/Webform.js +19 -16
- package/lib/mjs/WebformBuilder.d.ts +15 -14
- package/lib/mjs/WebformBuilder.js +11 -10
- package/lib/mjs/Wizard.d.ts +1 -12
- package/lib/mjs/Wizard.js +15 -13
- 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.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 +5 -8
@@ -13,11 +13,11 @@ export default class FormComponent extends Component {
|
|
13
13
|
valueChanged: boolean | undefined;
|
14
14
|
subForm: any;
|
15
15
|
formSrc: any;
|
16
|
-
get dataReady(): any
|
16
|
+
get dataReady(): Promise<any>;
|
17
17
|
get emptyValue(): {
|
18
18
|
data: {};
|
19
19
|
};
|
20
|
-
get ready(): any
|
20
|
+
get ready(): Promise<any>;
|
21
21
|
get useOriginalRevision(): any;
|
22
22
|
setFormRevision(rev: any): void;
|
23
23
|
subFormRevision: any;
|
@@ -29,30 +29,31 @@ export default class FormComponent extends Component {
|
|
29
29
|
* Prints out the value of form components as a datagrid value.
|
30
30
|
*/
|
31
31
|
getValueAsString(value: any, options: any): any;
|
32
|
-
attach(element: any): Promise<
|
32
|
+
attach(element: any): Promise<void>;
|
33
33
|
get hasLoadedForm(): any;
|
34
34
|
get isRevisionChanged(): any;
|
35
|
-
subFormReady: any;
|
35
|
+
subFormReady: Promise<any> | null | undefined;
|
36
36
|
/**
|
37
37
|
* Pass everyComponent to subform.
|
38
|
-
* @param args
|
39
|
-
* @returns {
|
38
|
+
* @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
|
39
|
+
* @returns {*} - The result of the subform's everyComponent method.
|
40
40
|
*/
|
41
|
-
everyComponent(...args: any[]): any
|
41
|
+
everyComponent(...args: any[]): any;
|
42
42
|
setSubFormDisabled(subForm: any): void;
|
43
43
|
updateSubWizards(subForm: any): void;
|
44
44
|
/**
|
45
45
|
* Create a subform instance.
|
46
|
-
* @param fromAttach
|
47
|
-
* @returns {*}
|
46
|
+
* @param {boolean} [fromAttach] - This function is being called from an `attach` method.
|
47
|
+
* @returns {*} - The subform instance.
|
48
48
|
*/
|
49
|
-
createSubForm(fromAttach
|
49
|
+
createSubForm(fromAttach?: boolean | undefined): any;
|
50
50
|
hideSubmitButton(component: any): void;
|
51
51
|
/**
|
52
52
|
* Load the subform.
|
53
|
-
* @param fromAttach
|
53
|
+
* @param {boolean} fromAttach - This function is being called from an `attach` method.
|
54
|
+
* @returns {Promise} - The promise that resolves when the subform is loaded.
|
54
55
|
*/
|
55
|
-
loadSubForm(fromAttach:
|
56
|
+
loadSubForm(fromAttach: boolean): Promise<any>;
|
56
57
|
subFormLoading: boolean | undefined;
|
57
58
|
get subFormData(): any;
|
58
59
|
checkComponentValidity(data: any, dirty: any, row: any, options: any, errors?: any[]): any;
|
@@ -61,28 +62,30 @@ export default class FormComponent extends Component {
|
|
61
62
|
setPristine(pristine: any): void;
|
62
63
|
/**
|
63
64
|
* Determine if the subform should be submitted.
|
64
|
-
* @returns {*|boolean}
|
65
|
+
* @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
|
65
66
|
*/
|
66
67
|
get shouldSubmit(): any;
|
67
68
|
/**
|
68
69
|
* Returns the data for the subform.
|
69
|
-
* @returns {*}
|
70
|
+
* @returns {*} - the data for the subform.
|
70
71
|
*/
|
71
72
|
getSubFormData(): any;
|
72
73
|
/**
|
73
74
|
* Submit the subform if configured to do so.
|
74
|
-
* @returns {
|
75
|
+
* @returns {Promise} - The promise that resolves when the subform is submitted.
|
75
76
|
*/
|
76
|
-
submitSubForm(): any
|
77
|
+
submitSubForm(): Promise<any>;
|
77
78
|
/**
|
78
79
|
* Submit the form before the next page is triggered.
|
79
|
-
* @param next
|
80
|
+
* @param {Function} next - The function to trigger the next page.
|
81
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
|
80
82
|
*/
|
81
|
-
beforePage(next:
|
83
|
+
beforePage(next: Function): Promise<any>;
|
82
84
|
/**
|
83
85
|
* Submit the form before the whole form is triggered.
|
86
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
|
84
87
|
*/
|
85
|
-
beforeSubmit(): any
|
88
|
+
beforeSubmit(): Promise<any>;
|
86
89
|
isSubFormLazyLoad(): any;
|
87
90
|
isHidden(): boolean;
|
88
91
|
setValue(submission: any, flags?: {}): boolean;
|
@@ -92,7 +95,7 @@ export default class FormComponent extends Component {
|
|
92
95
|
/**
|
93
96
|
* Determines if this form is a Nested Wizard
|
94
97
|
* which means it should be a Wizard itself and should be a direct child of a Wizard's page
|
95
|
-
* @returns {boolean}
|
98
|
+
* @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
|
96
99
|
*/
|
97
100
|
get isNestedWizard(): boolean;
|
98
101
|
isInternalEvent(event: any): 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 FormEditDisplay from './editForm/Form.edit.display';
|
|
3
3
|
import FormEditForm from './editForm/Form.edit.form';
|
4
4
|
import FormEditData from './editForm/Form.edit.data';
|
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 nestedComponentForm([
|
@@ -200,6 +200,9 @@ export default class FormComponent extends Component {
|
|
200
200
|
if (this.options.saveDraftThrottle) {
|
201
201
|
options.saveDraftThrottle = this.options.saveDraftThrottle;
|
202
202
|
}
|
203
|
+
if (this.options.skipDraftRestore) {
|
204
|
+
options.skipDraftRestore = this.options.skipDraftRestore;
|
205
|
+
}
|
203
206
|
return options;
|
204
207
|
}
|
205
208
|
/* eslint-enable max-statements */
|
@@ -343,8 +346,8 @@ export default class FormComponent extends Component {
|
|
343
346
|
}
|
344
347
|
/**
|
345
348
|
* Pass everyComponent to subform.
|
346
|
-
* @param args
|
347
|
-
* @returns {
|
349
|
+
* @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
|
350
|
+
* @returns {*} - The result of the subform's everyComponent method.
|
348
351
|
*/
|
349
352
|
everyComponent(...args) {
|
350
353
|
if (this.subForm) {
|
@@ -368,8 +371,8 @@ export default class FormComponent extends Component {
|
|
368
371
|
}
|
369
372
|
/**
|
370
373
|
* Create a subform instance.
|
371
|
-
* @param fromAttach
|
372
|
-
* @returns {*}
|
374
|
+
* @param {boolean} [fromAttach] - This function is being called from an `attach` method.
|
375
|
+
* @returns {*} - The subform instance.
|
373
376
|
*/
|
374
377
|
createSubForm(fromAttach) {
|
375
378
|
this.subFormReady = this.loadSubForm(fromAttach).then((form) => {
|
@@ -422,7 +425,8 @@ export default class FormComponent extends Component {
|
|
422
425
|
}
|
423
426
|
/**
|
424
427
|
* Load the subform.
|
425
|
-
* @param fromAttach
|
428
|
+
* @param {boolean} fromAttach - This function is being called from an `attach` method.
|
429
|
+
* @returns {Promise} - The promise that resolves when the subform is loaded.
|
426
430
|
*/
|
427
431
|
loadSubForm(fromAttach) {
|
428
432
|
if (this.builderMode || this.isHidden() || (this.isSubFormLazyLoad() && !fromAttach)) {
|
@@ -505,14 +509,14 @@ export default class FormComponent extends Component {
|
|
505
509
|
}
|
506
510
|
/**
|
507
511
|
* Determine if the subform should be submitted.
|
508
|
-
* @returns {*|boolean}
|
512
|
+
* @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
|
509
513
|
*/
|
510
514
|
get shouldSubmit() {
|
511
515
|
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.isHidden();
|
512
516
|
}
|
513
517
|
/**
|
514
518
|
* Returns the data for the subform.
|
515
|
-
* @returns {*}
|
519
|
+
* @returns {*} - the data for the subform.
|
516
520
|
*/
|
517
521
|
getSubFormData() {
|
518
522
|
if (_.get(this.subForm, 'form.display') === 'pdf') {
|
@@ -524,7 +528,7 @@ export default class FormComponent extends Component {
|
|
524
528
|
}
|
525
529
|
/**
|
526
530
|
* Submit the subform if configured to do so.
|
527
|
-
* @returns {
|
531
|
+
* @returns {Promise} - The promise that resolves when the subform is submitted.
|
528
532
|
*/
|
529
533
|
submitSubForm() {
|
530
534
|
// If we wish to submit the form on next page, then do that here.
|
@@ -551,7 +555,8 @@ export default class FormComponent extends Component {
|
|
551
555
|
}
|
552
556
|
/**
|
553
557
|
* Submit the form before the next page is triggered.
|
554
|
-
* @param next
|
558
|
+
* @param {Function} next - The function to trigger the next page.
|
559
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
|
555
560
|
*/
|
556
561
|
beforePage(next) {
|
557
562
|
// Should not submit child forms if we are going to the previous page
|
@@ -562,6 +567,7 @@ export default class FormComponent extends Component {
|
|
562
567
|
}
|
563
568
|
/**
|
564
569
|
* Submit the form before the whole form is triggered.
|
570
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
|
565
571
|
*/
|
566
572
|
beforeSubmit() {
|
567
573
|
const submission = this.dataValue;
|
@@ -570,8 +576,9 @@ export default class FormComponent extends Component {
|
|
570
576
|
this.subForm.triggerSaveDraft.cancel();
|
571
577
|
}
|
572
578
|
const isAlreadySubmitted = submission && submission._id && submission.form;
|
579
|
+
const isDraftSubmission = this.options.saveDraft && submission.state === 'draft';
|
573
580
|
// This submission has already been submitted, so just return the reference data.
|
574
|
-
if (isAlreadySubmitted && !this.subForm?.wizard) {
|
581
|
+
if (isAlreadySubmitted && !this.subForm?.wizard && !isDraftSubmission) {
|
575
582
|
this.dataValue = submission;
|
576
583
|
return Promise.resolve(this.dataValue);
|
577
584
|
}
|
@@ -671,7 +678,7 @@ export default class FormComponent extends Component {
|
|
671
678
|
/**
|
672
679
|
* Determines if this form is a Nested Wizard
|
673
680
|
* which means it should be a Wizard itself and should be a direct child of a Wizard's page
|
674
|
-
* @returns {boolean}
|
681
|
+
* @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
|
675
682
|
*/
|
676
683
|
get isNestedWizard() {
|
677
684
|
return this.subForm?._form?.display === 'wizard' && this.parent?.parent?._form?.display === 'wizard';
|
@@ -0,0 +1,36 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
let _id: string;
|
3
|
+
let title: string;
|
4
|
+
let name: string;
|
5
|
+
let path: string;
|
6
|
+
let type: string;
|
7
|
+
let display: string;
|
8
|
+
let components: ({
|
9
|
+
label: string;
|
10
|
+
tableView: boolean;
|
11
|
+
key: string;
|
12
|
+
type: string;
|
13
|
+
input: boolean;
|
14
|
+
src?: undefined;
|
15
|
+
disableOnInvalid?: undefined;
|
16
|
+
} | {
|
17
|
+
label: string;
|
18
|
+
tableView: boolean;
|
19
|
+
src: string;
|
20
|
+
key: string;
|
21
|
+
type: string;
|
22
|
+
input: boolean;
|
23
|
+
disableOnInvalid?: undefined;
|
24
|
+
} | {
|
25
|
+
type: string;
|
26
|
+
label: string;
|
27
|
+
key: string;
|
28
|
+
disableOnInvalid: boolean;
|
29
|
+
input: boolean;
|
30
|
+
tableView: boolean;
|
31
|
+
src?: undefined;
|
32
|
+
})[];
|
33
|
+
let project: string;
|
34
|
+
let machineName: string;
|
35
|
+
}
|
36
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
export default {
|
2
|
+
_id: '66051dae494c977c47028fac',
|
3
|
+
title: 'test draft parent',
|
4
|
+
name: 'testDraftParent',
|
5
|
+
path: 'testdraftparent',
|
6
|
+
type: 'form',
|
7
|
+
display: 'form',
|
8
|
+
components: [
|
9
|
+
{
|
10
|
+
label: 'Parent Form Field',
|
11
|
+
tableView: true,
|
12
|
+
key: 'parent',
|
13
|
+
type: 'textfield',
|
14
|
+
input: true,
|
15
|
+
},
|
16
|
+
{
|
17
|
+
label: 'Form',
|
18
|
+
tableView: true,
|
19
|
+
src: 'http://localhost:3000/idwqwhclwioyqbw/testdraftnested',
|
20
|
+
key: 'form',
|
21
|
+
type: 'form',
|
22
|
+
input: true,
|
23
|
+
},
|
24
|
+
{
|
25
|
+
type: 'button',
|
26
|
+
label: 'Submit',
|
27
|
+
key: 'submit',
|
28
|
+
disableOnInvalid: true,
|
29
|
+
input: true,
|
30
|
+
tableView: false,
|
31
|
+
},
|
32
|
+
],
|
33
|
+
project: '63cead09be0090345b109e22',
|
34
|
+
machineName: 'idwqwhclwioyqbw:testdraftparent'
|
35
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
let _id: string;
|
3
|
+
let title: string;
|
4
|
+
let name: string;
|
5
|
+
let path: string;
|
6
|
+
let type: string;
|
7
|
+
let display: string;
|
8
|
+
let components: ({
|
9
|
+
label: string;
|
10
|
+
tableView: boolean;
|
11
|
+
key: string;
|
12
|
+
type: string;
|
13
|
+
input: boolean;
|
14
|
+
disableOnInvalid?: undefined;
|
15
|
+
} | {
|
16
|
+
type: string;
|
17
|
+
label: string;
|
18
|
+
key: string;
|
19
|
+
disableOnInvalid: boolean;
|
20
|
+
input: boolean;
|
21
|
+
tableView: boolean;
|
22
|
+
})[];
|
23
|
+
let project: string;
|
24
|
+
let machineName: string;
|
25
|
+
}
|
26
|
+
export default _default;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
_id: '63e4deda12b88c4f05c125cf',
|
3
|
+
title: 'test draft nested',
|
4
|
+
name: 'testDraftNested',
|
5
|
+
path: 'testdraftnested',
|
6
|
+
type: 'form',
|
7
|
+
display: 'form',
|
8
|
+
components: [
|
9
|
+
{
|
10
|
+
label: 'Nested Form Field',
|
11
|
+
tableView: true,
|
12
|
+
key: 'nested',
|
13
|
+
type: 'textfield',
|
14
|
+
input: true,
|
15
|
+
},
|
16
|
+
{
|
17
|
+
type: 'button',
|
18
|
+
label: 'Submit',
|
19
|
+
key: 'submit',
|
20
|
+
disableOnInvalid: true,
|
21
|
+
input: true,
|
22
|
+
tableView: false,
|
23
|
+
},
|
24
|
+
],
|
25
|
+
project: '63cead09be0090345b109e22',
|
26
|
+
machineName: 'idwqwhclwioyqbw:testdraftparent'
|
27
|
+
};
|
@@ -5,4 +5,6 @@ import comp3 from './comp3';
|
|
5
5
|
import comp4 from './comp4';
|
6
6
|
import comp5 from './comp5';
|
7
7
|
import comp6 from './comp6';
|
8
|
-
|
8
|
+
import comp7 from './comp7';
|
9
|
+
import comp8 from './comp8';
|
10
|
+
export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
|
@@ -5,4 +5,6 @@ import comp3 from './comp3';
|
|
5
5
|
import comp4 from './comp4';
|
6
6
|
import comp5 from './comp5';
|
7
7
|
import comp6 from './comp6';
|
8
|
-
|
8
|
+
import comp7 from './comp7';
|
9
|
+
import comp8 from './comp8';
|
10
|
+
export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
|
@@ -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[];
|
@@ -2,8 +2,9 @@ import Components from '../Components';
|
|
2
2
|
import HiddenEditDisplay from './editForm/Hidden.edit.display';
|
3
3
|
import HiddenEditData from './editForm/Hidden.edit.data';
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
* @param {...any} extend
|
5
|
+
* The Edit Form function.
|
6
|
+
* @param {...any} extend - The components that extend the edit form.
|
7
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
7
8
|
*/
|
8
9
|
export default function (...extend) {
|
9
10
|
return Components.baseEditForm([
|
@@ -33,7 +33,7 @@ export default class HiddenComponent extends Input {
|
|
33
33
|
}
|
34
34
|
/**
|
35
35
|
* Check if a component is eligible for multiple validation
|
36
|
-
* @returns {boolean}
|
36
|
+
* @returns {boolean} - If the component is eligible for multiple validation.
|
37
37
|
*/
|
38
38
|
validateMultiple() {
|
39
39
|
// Since "arrays" are able to be stored in hidden components, we need to turn off multiple validation.
|
@@ -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[];
|
@@ -2,8 +2,9 @@ import Components from '../Components';
|
|
2
2
|
import HTMLEditDisplay from './editForm/HTML.edit.display';
|
3
3
|
import HTMLEditLogic from './editForm/HTML.edit.logic';
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
* @param {...any} extend
|
5
|
+
* The Edit Form function.
|
6
|
+
* @param {...any} extend - The components that extend the edit form.
|
7
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
7
8
|
*/
|
8
9
|
export default function (...extend) {
|
9
10
|
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[];
|
@@ -3,8 +3,9 @@ import NumberEditDisplay from './editForm/Number.edit.display';
|
|
3
3
|
import NumberEditData from './editForm/Number.edit.data';
|
4
4
|
import NumberEditValidation from './editForm/Number.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 textEditForm([
|
@@ -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[];
|
@@ -2,8 +2,9 @@ import nestedComponentForm from '../_classes/nested/NestedComponent.form';
|
|
2
2
|
import PanelEditDisplay from './editForm/Panel.edit.display';
|
3
3
|
import PanelEditConditional from './editForm/Panel.edit.conditional';
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
* @param {...any} extend
|
5
|
+
* The Edit Form function.
|
6
|
+
* @param {...any} extend - The components that extend the edit form.
|
7
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
7
8
|
*/
|
8
9
|
export default function (...extend) {
|
9
10
|
return nestedComponentForm([
|
@@ -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 PasswordEditDisplay from './editForm/Password.edit.display';
|
|
3
3
|
import PasswordEditData from './editForm/Password.edit.data';
|
4
4
|
import PasswordEditValidation from './editForm/Password.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 textEditForm([
|
@@ -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 textEditForm from '../textfield/TextField.form';
|
2
2
|
import PhoneNumberEditValidation from './editForm/PhoneNumber.edit.validation';
|
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 textEditForm([
|
@@ -1,5 +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
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
@@ -3,8 +3,9 @@ import RadioEditData from './editForm/Radio.edit.data';
|
|
3
3
|
import RadioEditDisplay from './editForm/Radio.edit.display';
|
4
4
|
import RadioEditValidation from './editForm/Radio.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 listComponentForm([
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import Components from '../Components';
|
2
2
|
import ReCaptchaEditDisplay from './editForm/ReCaptcha.edit.display';
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* The Edit Form function.
|
5
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
6
|
*/
|
6
7
|
export default function () {
|
7
8
|
return Components.baseEditForm([
|
@@ -34,7 +34,7 @@ export default class SelectComponent extends ListComponent {
|
|
34
34
|
get isSelectResource(): boolean;
|
35
35
|
get itemsFromUrl(): boolean;
|
36
36
|
get isInfiniteScrollProvided(): boolean;
|
37
|
-
get shouldInitialLoad():
|
37
|
+
get shouldInitialLoad(): boolean;
|
38
38
|
get selectMetadata(): any;
|
39
39
|
isEntireObjectDisplay(): boolean;
|
40
40
|
selectValueAndLabel(data: any): {
|
@@ -106,7 +106,7 @@ export default class SelectComponent extends ListComponent {
|
|
106
106
|
validateValueAvailability(setting: any, value: any): boolean;
|
107
107
|
/**
|
108
108
|
* Performs required transformations on the initial value to use in selectOptions
|
109
|
-
* @param {*} value
|
109
|
+
* @param {*} value - The value to transform.
|
110
110
|
* @returns {*} - Returns the options value.
|
111
111
|
*/
|
112
112
|
getOptionValue(value: any): any;
|