@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
@@ -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 @@ const Checkbox_edit_data_1 = __importDefault(require("./editForm/Checkbox.edit.d
|
|
8
8
|
const Checkbox_edit_display_1 = __importDefault(require("./editForm/Checkbox.edit.display"));
|
9
9
|
const Checkbox_edit_validation_1 = __importDefault(require("./editForm/Checkbox.edit.validation"));
|
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
|
function default_1(...extend) {
|
15
16
|
return Components_1.default.baseEditForm([
|
@@ -179,15 +179,8 @@ class CheckBoxComponent extends Field_1.default {
|
|
179
179
|
return value;
|
180
180
|
}
|
181
181
|
setValue(value, flags = {}) {
|
182
|
-
|
183
|
-
|
184
|
-
const changed = this.updateValue(value, flags);
|
185
|
-
if (this.isHtmlRenderMode() && flags && flags.fromSubmission && changed) {
|
186
|
-
this.redraw();
|
187
|
-
}
|
188
|
-
return changed;
|
189
|
-
}
|
190
|
-
return false;
|
182
|
+
this.setCheckedState(value);
|
183
|
+
return super.setValue(value, flags);
|
191
184
|
}
|
192
185
|
getValueAsString(value) {
|
193
186
|
const { name: componentName, value: componentValue } = this.component;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
let title: string;
|
3
|
+
let name: string;
|
4
|
+
let path: string;
|
5
|
+
let type: string;
|
6
|
+
let display: string;
|
7
|
+
let components: ({
|
8
|
+
label: string;
|
9
|
+
tableView: boolean;
|
10
|
+
validateWhenHidden: boolean;
|
11
|
+
key: string;
|
12
|
+
conditional: {
|
13
|
+
show: boolean;
|
14
|
+
conjunction: string;
|
15
|
+
conditions: {
|
16
|
+
component: string;
|
17
|
+
operator: string;
|
18
|
+
}[];
|
19
|
+
};
|
20
|
+
type: string;
|
21
|
+
input: boolean;
|
22
|
+
applyMaskOn?: undefined;
|
23
|
+
} | {
|
24
|
+
label: string;
|
25
|
+
applyMaskOn: string;
|
26
|
+
tableView: boolean;
|
27
|
+
key: string;
|
28
|
+
type: string;
|
29
|
+
input: boolean;
|
30
|
+
validateWhenHidden?: undefined;
|
31
|
+
conditional?: undefined;
|
32
|
+
})[];
|
33
|
+
}
|
34
|
+
export default _default;
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
title: '7595',
|
5
|
+
name: '7595',
|
6
|
+
path: '7595',
|
7
|
+
type: 'form',
|
8
|
+
display: 'form',
|
9
|
+
components: [
|
10
|
+
{
|
11
|
+
label: 'Checkbox',
|
12
|
+
tableView: false,
|
13
|
+
validateWhenHidden: false,
|
14
|
+
key: 'checkboxBefore',
|
15
|
+
conditional: {
|
16
|
+
show: true,
|
17
|
+
conjunction: 'all',
|
18
|
+
conditions: [
|
19
|
+
{
|
20
|
+
component: 'textField',
|
21
|
+
operator: 'isNotEmpty'
|
22
|
+
}
|
23
|
+
]
|
24
|
+
},
|
25
|
+
type: 'checkbox',
|
26
|
+
input: true
|
27
|
+
},
|
28
|
+
{
|
29
|
+
label: 'Text Field',
|
30
|
+
applyMaskOn: 'change',
|
31
|
+
tableView: true,
|
32
|
+
key: 'textField',
|
33
|
+
type: 'textfield',
|
34
|
+
input: true
|
35
|
+
},
|
36
|
+
{
|
37
|
+
label: 'Checkbox',
|
38
|
+
tableView: false,
|
39
|
+
validateWhenHidden: false,
|
40
|
+
key: 'checkboxAfter',
|
41
|
+
conditional: {
|
42
|
+
show: true,
|
43
|
+
conjunction: 'all',
|
44
|
+
conditions: [
|
45
|
+
{
|
46
|
+
component: 'textField',
|
47
|
+
operator: 'isNotEmpty'
|
48
|
+
}
|
49
|
+
]
|
50
|
+
},
|
51
|
+
type: 'checkbox',
|
52
|
+
input: true
|
53
|
+
},
|
54
|
+
]
|
55
|
+
};
|
@@ -2,5 +2,6 @@ import comp1 from './comp1';
|
|
2
2
|
import comp2 from './comp2';
|
3
3
|
import comp3 from './comp3';
|
4
4
|
import comp4 from './comp4';
|
5
|
+
import comp5 from './comp5';
|
5
6
|
import customDefaultComponent from './customDefaultComponent';
|
6
|
-
export { comp1, comp2, comp3, comp4, customDefaultComponent };
|
7
|
+
export { comp1, comp2, comp3, comp4, comp5, customDefaultComponent };
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.customDefaultComponent = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
6
|
+
exports.customDefaultComponent = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
7
7
|
const comp1_1 = __importDefault(require("./comp1"));
|
8
8
|
exports.comp1 = comp1_1.default;
|
9
9
|
const customDefaultComponent_1 = __importDefault(require("./customDefaultComponent"));
|
@@ -14,3 +14,5 @@ const comp3_1 = __importDefault(require("./comp3"));
|
|
14
14
|
exports.comp3 = comp3_1.default;
|
15
15
|
const comp4_1 = __importDefault(require("./comp4"));
|
16
16
|
exports.comp4 = comp4_1.default;
|
17
|
+
const comp5_1 = __importDefault(require("./comp5"));
|
18
|
+
exports.comp5 = comp5_1.default;
|
@@ -20,7 +20,7 @@ export default class ColumnsComponent extends NestedComponent {
|
|
20
20
|
get gridSize(): number;
|
21
21
|
/**
|
22
22
|
* Group columns in rows.
|
23
|
-
* @returns {Array.<ColumnComponent[]>}
|
23
|
+
* @returns {Array.<ColumnComponent[]>} - The array of columns
|
24
24
|
*/
|
25
25
|
groupByRow(): Array<ColumnComponent[]>;
|
26
26
|
checkData(data: any, flags: any, row: any, components: any): void;
|
@@ -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[];
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
|
7
7
|
const Columns_edit_display_1 = __importDefault(require("./editForm/Columns.edit.display"));
|
8
8
|
/**
|
9
|
-
*
|
10
|
-
* @param {...any} extend
|
9
|
+
* The Edit Form function.
|
10
|
+
* @param {...any} extend - The components that extend the edit form.
|
11
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
11
12
|
*/
|
12
13
|
function default_1(...extend) {
|
13
14
|
return (0, NestedComponent_form_1.default)([
|
@@ -120,7 +120,7 @@ class ColumnsComponent extends NestedComponent_1.default {
|
|
120
120
|
}
|
121
121
|
/**
|
122
122
|
* Group columns in rows.
|
123
|
-
* @returns {Array.<ColumnComponent[]>}
|
123
|
+
* @returns {Array.<ColumnComponent[]>} - The array of columns
|
124
124
|
*/
|
125
125
|
groupByRow() {
|
126
126
|
const initVal = { stack: [], rows: [] };
|
@@ -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[];
|
@@ -7,8 +7,9 @@ const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const Container_edit_display_1 = __importDefault(require("./editForm/Container.edit.display"));
|
8
8
|
const Container_edit_data_1 = __importDefault(require("./editForm/Container.edit.data"));
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
* @param {...any} extend
|
10
|
+
* The Edit Form function.
|
11
|
+
* @param {...any} extend - The components that extend the edit form.
|
12
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
12
13
|
*/
|
13
14
|
function default_1(...extend) {
|
14
15
|
return Components_1.default.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[];
|
@@ -7,8 +7,9 @@ const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const Content_edit_display_1 = __importDefault(require("./editForm/Content.edit.display"));
|
8
8
|
const Content_edit_logic_1 = __importDefault(require("./editForm/Content.edit.logic"));
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
* @param {...any} extend
|
10
|
+
* The Edit Form function.
|
11
|
+
* @param {...any} extend - The components that extend the edit form.
|
12
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
12
13
|
*/
|
13
14
|
function default_1(...extend) {
|
14
15
|
const editForm = Components_1.default.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[];
|
@@ -7,8 +7,9 @@ const TextField_form_1 = __importDefault(require("../textfield/TextField.form"))
|
|
7
7
|
const Currency_edit_display_1 = __importDefault(require("./editForm/Currency.edit.display"));
|
8
8
|
const Currency_edit_data_1 = __importDefault(require("./editForm/Currency.edit.data"));
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
* @param {...any} extend
|
10
|
+
* The Edit Form function.
|
11
|
+
* @param {...any} extend - The components that extend the edit form.
|
12
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
12
13
|
*/
|
13
14
|
function default_1(...extend) {
|
14
15
|
return (0, TextField_form_1.default)([
|
@@ -35,7 +35,7 @@ class CurrencyComponent extends Number_1.default {
|
|
35
35
|
}
|
36
36
|
/**
|
37
37
|
* Creates the number mask for currency numbers.
|
38
|
-
* @returns {*}
|
38
|
+
* @returns {*} - The result of the createNumberMask function
|
39
39
|
*/
|
40
40
|
createNumberMask() {
|
41
41
|
const decimalLimit = lodash_1.default.get(this.component, 'decimalLimit', 2);
|
@@ -32,18 +32,18 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
32
32
|
* Split rows into chunks.
|
33
33
|
* @param {number[]} groups - array of numbers where each item is size of group
|
34
34
|
* @param {Array<T>} rows - rows collection
|
35
|
-
* @returns {Array<T[]>}
|
35
|
+
* @returns {Array<T[]>} - The chunked rows
|
36
36
|
*/
|
37
37
|
getRowChunks(groups: number[], rows: Array<T>): Array<T[]>;
|
38
38
|
/**
|
39
39
|
* Create groups object.
|
40
40
|
* Each key in object represents index of first row in group.
|
41
|
-
* @returns {object}
|
41
|
+
* @returns {object} - The groups object.
|
42
42
|
*/
|
43
43
|
getGroups(): object;
|
44
44
|
/**
|
45
|
-
*
|
46
|
-
* @returns {number[]}
|
45
|
+
* Get group sizes.
|
46
|
+
* @returns {number[]} - The array of group sizes.
|
47
47
|
*/
|
48
48
|
getGroupSizes(): number[];
|
49
49
|
hasRowGroups(): any;
|
@@ -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 @@ const DataGrid_edit_data_1 = __importDefault(require("./editForm/DataGrid.edit.d
|
|
8
8
|
const DataGrid_edit_display_1 = __importDefault(require("./editForm/DataGrid.edit.display"));
|
9
9
|
const DataGrid_edit_validation_1 = __importDefault(require("./editForm/DataGrid.edit.validation"));
|
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
|
function default_1(...extend) {
|
15
16
|
return Components_1.default.baseEditForm([
|
@@ -141,7 +141,7 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
141
141
|
* Split rows into chunks.
|
142
142
|
* @param {number[]} groups - array of numbers where each item is size of group
|
143
143
|
* @param {Array<T>} rows - rows collection
|
144
|
-
* @returns {Array<T[]>}
|
144
|
+
* @returns {Array<T[]>} - The chunked rows
|
145
145
|
*/
|
146
146
|
getRowChunks(groups, rows) {
|
147
147
|
const [, chunks] = groups.reduce(([startIndex, acc], size) => {
|
@@ -153,7 +153,7 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
153
153
|
/**
|
154
154
|
* Create groups object.
|
155
155
|
* Each key in object represents index of first row in group.
|
156
|
-
* @returns {object}
|
156
|
+
* @returns {object} - The groups object.
|
157
157
|
*/
|
158
158
|
getGroups() {
|
159
159
|
const groups = lodash_1.default.get(this.component, 'rowGroups', []);
|
@@ -167,8 +167,8 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
167
167
|
}, {});
|
168
168
|
}
|
169
169
|
/**
|
170
|
-
*
|
171
|
-
* @returns {number[]}
|
170
|
+
* Get group sizes.
|
171
|
+
* @returns {number[]} - The array of group sizes.
|
172
172
|
*/
|
173
173
|
getGroupSizes() {
|
174
174
|
return lodash_1.default.map(lodash_1.default.get(this.component, 'rowGroups', []), 'numberOfRows');
|
@@ -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[];
|
@@ -7,8 +7,9 @@ const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const DataMap_edit_data_1 = __importDefault(require("./editForm/DataMap.edit.data"));
|
8
8
|
const DataMap_edit_display_1 = __importDefault(require("./editForm/DataMap.edit.display"));
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
* @param {...any} extend
|
10
|
+
* The Edit Form function.
|
11
|
+
* @param {...any} extend - The components that extend the edit form.
|
12
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
12
13
|
*/
|
13
14
|
function default_1(...extend) {
|
14
15
|
return Components_1.default.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[];
|
@@ -10,8 +10,9 @@ const DateTime_edit_display_1 = __importDefault(require("./editForm/DateTime.edi
|
|
10
10
|
const DateTime_edit_time_1 = __importDefault(require("./editForm/DateTime.edit.time"));
|
11
11
|
const DateTime_edit_validation_1 = __importDefault(require("./editForm/DateTime.edit.validation"));
|
12
12
|
/**
|
13
|
-
*
|
14
|
-
* @param {...any} extend
|
13
|
+
* The Edit Form function.
|
14
|
+
* @param {...any} extend - The components that extend the edit form.
|
15
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
15
16
|
*/
|
16
17
|
function default_1(...extend) {
|
17
18
|
return Components_1.default.baseEditForm([
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const Evaluator_1 =
|
6
|
+
const Evaluator_1 = require("../../../utils/Evaluator");
|
7
7
|
const utils_1 = __importDefault(require("../../_classes/component/editForm/utils"));
|
8
8
|
exports.default = [
|
9
9
|
{
|
@@ -34,7 +34,7 @@ exports.default = [
|
|
34
34
|
style: { 'margin-bottom': '10px' },
|
35
35
|
key: 'panel-disable-function',
|
36
36
|
customConditional() {
|
37
|
-
return !Evaluator_1.
|
37
|
+
return !Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval;
|
38
38
|
},
|
39
39
|
components: [
|
40
40
|
utils_1.default.logicVariablesTable('<tr><th>date</th><td>The date object.</td></tr>'),
|
@@ -17,7 +17,7 @@ export default class DayComponent extends Field {
|
|
17
17
|
constructor(component: any, options: any, data: any);
|
18
18
|
/**
|
19
19
|
* The empty value for day component.
|
20
|
-
* @returns {'00/00/0000'}
|
20
|
+
* @returns {'00/00/0000'} - The empty value of the day component.
|
21
21
|
*/
|
22
22
|
get emptyValue(): "00/00/0000";
|
23
23
|
get valueMask(): RegExp;
|
@@ -91,11 +91,12 @@ export default class DayComponent extends Field {
|
|
91
91
|
validateRequired(setting: any, value: any): boolean;
|
92
92
|
normalizeValue(value: any): any;
|
93
93
|
/**
|
94
|
-
* Set the value at a specific index.
|
95
|
-
* @param index
|
96
|
-
* @param value
|
94
|
+
* Set the value at a specific index and updates the component's refs.
|
95
|
+
* @param {number} index - The index to set.
|
96
|
+
* @param {any} value - The value to set.
|
97
|
+
* @returns {null|void} - Returns null if the value is invalid, otherwise void.
|
97
98
|
*/
|
98
|
-
setValueAt(index:
|
99
|
+
setValueAt(index: number, value: any): null | void;
|
99
100
|
getFieldValue(name: any): number;
|
100
101
|
get parts(): {
|
101
102
|
day: number;
|
@@ -104,37 +105,31 @@ export default class DayComponent extends Field {
|
|
104
105
|
};
|
105
106
|
/**
|
106
107
|
* Get the format for the value string.
|
107
|
-
* @returns {string}
|
108
|
+
* @returns {string} - the format for the value string.
|
108
109
|
*/
|
109
110
|
get format(): string;
|
110
111
|
/**
|
111
112
|
* Return the date for this component.
|
112
|
-
* @param value
|
113
|
-
* @returns {
|
113
|
+
* @param {any} value - The value to convert to a date.
|
114
|
+
* @returns {null|string} - The date string.
|
114
115
|
*/
|
115
|
-
getDate(value: any):
|
116
|
+
getDate(value: any): null | string;
|
116
117
|
/**
|
117
|
-
* Return the date
|
118
|
-
* @returns {
|
118
|
+
* Return the date string for this component.
|
119
|
+
* @returns {string|null} - The date string for this component.
|
119
120
|
*/
|
120
|
-
get date():
|
121
|
+
get date(): string | null;
|
121
122
|
/**
|
122
123
|
* Return the raw value.
|
123
|
-
* @returns {
|
124
|
+
* @returns {string} - The raw value of the component.
|
124
125
|
*/
|
125
|
-
get validationValue():
|
126
|
-
/**
|
127
|
-
* Get the value at a specific index.
|
128
|
-
* @param index
|
129
|
-
* @returns {*}
|
130
|
-
*/
|
131
|
-
getValueAt(index: any): any;
|
126
|
+
get validationValue(): string;
|
132
127
|
/**
|
133
128
|
* Get the input value of the date.
|
134
|
-
* @param value
|
135
|
-
* @returns {null}
|
129
|
+
* @param {any} value - The value to convert to a string.
|
130
|
+
* @returns {string|null} - The string value of the date.
|
136
131
|
*/
|
137
|
-
getValueAsString(value: any): null;
|
132
|
+
getValueAsString(value: any): string | null;
|
138
133
|
focus(field: any): void;
|
139
134
|
isPartialDay(value: any): boolean;
|
140
135
|
getValidationFormat(): "DD-MM-YYYY" | "MM-DD-YYYY";
|
@@ -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[];
|
@@ -11,8 +11,9 @@ const Day_edit_day_1 = __importDefault(require("./editForm/Day.edit.day"));
|
|
11
11
|
const Day_edit_month_1 = __importDefault(require("./editForm/Day.edit.month"));
|
12
12
|
const Day_edit_year_1 = __importDefault(require("./editForm/Day.edit.year"));
|
13
13
|
/**
|
14
|
-
*
|
15
|
-
* @param {...any} extend
|
14
|
+
* The Edit Form function.
|
15
|
+
* @param {...any} extend - The components that extend the edit form.
|
16
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
16
17
|
*/
|
17
18
|
function default_1(...extend) {
|
18
19
|
return Components_1.default.baseEditForm([
|
@@ -64,7 +64,7 @@ class DayComponent extends Field_1.default {
|
|
64
64
|
}
|
65
65
|
/**
|
66
66
|
* The empty value for day component.
|
67
|
-
* @returns {'00/00/0000'}
|
67
|
+
* @returns {'00/00/0000'} - The empty value of the day component.
|
68
68
|
*/
|
69
69
|
get emptyValue() {
|
70
70
|
return '00/00/0000';
|
@@ -355,9 +355,10 @@ class DayComponent extends Field_1.default {
|
|
355
355
|
return dateParts.join('/');
|
356
356
|
}
|
357
357
|
/**
|
358
|
-
* Set the value at a specific index.
|
359
|
-
* @param index
|
360
|
-
* @param value
|
358
|
+
* Set the value at a specific index and updates the component's refs.
|
359
|
+
* @param {number} index - The index to set.
|
360
|
+
* @param {any} value - The value to set.
|
361
|
+
* @returns {null|void} - Returns null if the value is invalid, otherwise void.
|
361
362
|
*/
|
362
363
|
setValueAt(index, value) {
|
363
364
|
// temporary solution to avoid input reset
|
@@ -411,7 +412,7 @@ class DayComponent extends Field_1.default {
|
|
411
412
|
}
|
412
413
|
/**
|
413
414
|
* Get the format for the value string.
|
414
|
-
* @returns {string}
|
415
|
+
* @returns {string} - the format for the value string.
|
415
416
|
*/
|
416
417
|
get format() {
|
417
418
|
let format = '';
|
@@ -435,8 +436,8 @@ class DayComponent extends Field_1.default {
|
|
435
436
|
}
|
436
437
|
/**
|
437
438
|
* Return the date for this component.
|
438
|
-
* @param value
|
439
|
-
* @returns {
|
439
|
+
* @param {any} value - The value to convert to a date.
|
440
|
+
* @returns {null|string} - The date string.
|
440
441
|
*/
|
441
442
|
getDate(value) {
|
442
443
|
let defaults = [], day, month, year;
|
@@ -482,15 +483,15 @@ class DayComponent extends Field_1.default {
|
|
482
483
|
return result;
|
483
484
|
}
|
484
485
|
/**
|
485
|
-
* Return the date
|
486
|
-
* @returns {
|
486
|
+
* Return the date string for this component.
|
487
|
+
* @returns {string|null} - The date string for this component.
|
487
488
|
*/
|
488
489
|
get date() {
|
489
490
|
return this.getDate();
|
490
491
|
}
|
491
492
|
/**
|
492
493
|
* Return the raw value.
|
493
|
-
* @returns {
|
494
|
+
* @returns {string} - The raw value of the component.
|
494
495
|
*/
|
495
496
|
get validationValue() {
|
496
497
|
return this.dataValue;
|
@@ -501,8 +502,8 @@ class DayComponent extends Field_1.default {
|
|
501
502
|
}
|
502
503
|
/**
|
503
504
|
* Get the value at a specific index.
|
504
|
-
* @param index
|
505
|
-
* @returns {*}
|
505
|
+
* @param {number} index - The index to get the value from.
|
506
|
+
* @returns {*} - The value at index.
|
506
507
|
*/
|
507
508
|
getValueAt(index) {
|
508
509
|
const date = this.date || this.emptyValue;
|
@@ -517,8 +518,8 @@ class DayComponent extends Field_1.default {
|
|
517
518
|
}
|
518
519
|
/**
|
519
520
|
* Get the input value of the date.
|
520
|
-
* @param value
|
521
|
-
* @returns {null}
|
521
|
+
* @param {any} value - The value to convert to a string.
|
522
|
+
* @returns {string|null} - The string value of the date.
|
522
523
|
*/
|
523
524
|
getValueAsString(value) {
|
524
525
|
return this.getDate(value) || '';
|