@formio/js 5.0.0-dev.5636.99a32e6 → 5.0.0-dev.5641.6eb7b96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +45 -0
- 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 +607 -1188
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +3 -5
- package/dist/formio.full.js +651 -912
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +3 -5
- package/dist/formio.js +18 -18
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1829 -492
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +10 -4
- package/embed.d.ts +1 -0
- package/form.d.ts +1 -0
- package/lib/cjs/CDN.d.ts +1 -0
- package/lib/cjs/CDN.js +6 -3
- package/lib/cjs/Element.d.ts +86 -96
- package/lib/cjs/Element.js +68 -78
- package/lib/cjs/Embed.d.ts +1 -1
- package/lib/cjs/Embed.js +52 -12
- package/lib/cjs/Form.d.ts +365 -36
- package/lib/cjs/Form.js +50 -64
- package/lib/cjs/FormBuilder.d.ts +187 -2
- package/lib/cjs/FormBuilder.js +30 -8
- package/lib/cjs/InlineEmbed.d.ts +7 -0
- package/lib/cjs/InlineEmbed.js +116 -0
- package/lib/cjs/PDF.d.ts +11 -13
- package/lib/cjs/PDF.js +6 -8
- package/lib/cjs/Webform.d.ts +180 -139
- package/lib/cjs/Webform.js +311 -297
- package/lib/cjs/WebformBuilder.d.ts +16 -14
- package/lib/cjs/WebformBuilder.js +19 -12
- package/lib/cjs/Wizard.d.ts +31 -21
- package/lib/cjs/Wizard.js +43 -20
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/cjs/components/Components.d.ts +4 -4
- package/lib/cjs/components/Components.js +3 -3
- package/lib/cjs/components/_classes/component/Component.d.ts +502 -269
- package/lib/cjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/cjs/components/_classes/component/Component.form.js +5 -0
- package/lib/cjs/components/_classes/component/Component.js +434 -193
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
- package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
- package/lib/cjs/components/_classes/field/Field.d.ts +11 -2
- package/lib/cjs/components/_classes/field/Field.js +13 -1
- package/lib/cjs/components/_classes/input/Input.d.ts +4 -3
- package/lib/cjs/components/_classes/input/Input.js +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +6 -3
- package/lib/cjs/components/_classes/list/ListComponent.form.js +5 -0
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +37 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +163 -67
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +5 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.js +175 -54
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
- package/lib/cjs/components/address/Address.d.ts +4 -2
- package/lib/cjs/components/address/Address.form.d.ts +6 -3
- package/lib/cjs/components/address/Address.form.js +5 -0
- package/lib/cjs/components/button/Button.d.ts +3 -12
- package/lib/cjs/components/button/Button.form.d.ts +6 -3
- package/lib/cjs/components/button/Button.form.js +5 -0
- package/lib/cjs/components/button/Button.js +5 -0
- package/lib/cjs/components/checkbox/Checkbox.d.ts +4 -27
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +6 -3
- package/lib/cjs/components/checkbox/Checkbox.form.js +5 -0
- package/lib/cjs/components/columns/Columns.d.ts +3 -2
- package/lib/cjs/components/columns/Columns.form.d.ts +6 -3
- package/lib/cjs/components/columns/Columns.form.js +5 -0
- package/lib/cjs/components/columns/Columns.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +6 -3
- package/lib/cjs/components/container/Container.form.js +5 -0
- package/lib/cjs/components/content/Content.d.ts +2 -1
- package/lib/cjs/components/content/Content.form.d.ts +6 -3
- package/lib/cjs/components/content/Content.form.js +5 -0
- package/lib/cjs/components/currency/Currency.form.d.ts +6 -3
- package/lib/cjs/components/currency/Currency.form.js +5 -0
- package/lib/cjs/components/currency/Currency.js +1 -2
- package/lib/cjs/components/datagrid/DataGrid.d.ts +8 -7
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +6 -3
- package/lib/cjs/components/datagrid/DataGrid.form.js +5 -0
- package/lib/cjs/components/datagrid/DataGrid.js +5 -5
- package/lib/cjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/cjs/components/datamap/DataMap.form.d.ts +6 -3
- package/lib/cjs/components/datamap/DataMap.form.js +5 -0
- package/lib/cjs/components/datetime/DateTime.d.ts +0 -14
- package/lib/cjs/components/datetime/DateTime.form.d.ts +6 -3
- package/lib/cjs/components/datetime/DateTime.form.js +5 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
- package/lib/cjs/components/day/Day.d.ts +22 -48
- package/lib/cjs/components/day/Day.form.d.ts +6 -3
- package/lib/cjs/components/day/Day.form.js +5 -0
- package/lib/cjs/components/day/Day.js +15 -20
- package/lib/cjs/components/editgrid/EditGrid.d.ts +7 -3
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +6 -3
- package/lib/cjs/components/editgrid/EditGrid.form.js +5 -0
- 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.js +6 -9
- package/lib/cjs/components/email/Email.form.d.ts +6 -3
- package/lib/cjs/components/email/Email.form.js +5 -0
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +6 -3
- package/lib/cjs/components/fieldset/Fieldset.form.js +5 -0
- package/lib/cjs/components/file/File.d.ts +9 -22
- package/lib/cjs/components/file/File.form.d.ts +6 -3
- package/lib/cjs/components/file/File.form.js +5 -0
- package/lib/cjs/components/form/Form.d.ts +31 -20
- package/lib/cjs/components/form/Form.form.d.ts +6 -3
- package/lib/cjs/components/form/Form.form.js +5 -0
- package/lib/cjs/components/form/Form.js +16 -12
- package/lib/cjs/components/hidden/Hidden.d.ts +1 -11
- package/lib/cjs/components/hidden/Hidden.form.d.ts +6 -3
- package/lib/cjs/components/hidden/Hidden.form.js +5 -0
- package/lib/cjs/components/hidden/Hidden.js +1 -2
- package/lib/cjs/components/html/HTML.d.ts +2 -1
- package/lib/cjs/components/html/HTML.form.d.ts +6 -3
- package/lib/cjs/components/html/HTML.form.js +5 -0
- package/lib/cjs/components/number/Number.d.ts +3 -17
- package/lib/cjs/components/number/Number.form.d.ts +6 -3
- package/lib/cjs/components/number/Number.form.js +5 -0
- package/lib/cjs/components/number/Number.js +1 -2
- package/lib/cjs/components/panel/Panel.form.d.ts +6 -3
- package/lib/cjs/components/panel/Panel.form.js +5 -0
- package/lib/cjs/components/panel/Panel.js +0 -1
- package/lib/cjs/components/password/Password.form.d.ts +6 -3
- package/lib/cjs/components/password/Password.form.js +5 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +5 -0
- package/lib/cjs/components/radio/Radio.d.ts +3 -26
- package/lib/cjs/components/radio/Radio.form.d.ts +6 -3
- package/lib/cjs/components/radio/Radio.form.js +5 -0
- package/lib/cjs/components/radio/Radio.js +3 -4
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/cjs/components/select/Select.d.ts +16 -39
- package/lib/cjs/components/select/Select.form.d.ts +6 -3
- package/lib/cjs/components/select/Select.form.js +5 -0
- package/lib/cjs/components/select/Select.js +14 -17
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -17
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +5 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -9
- package/lib/cjs/components/signature/Signature.d.ts +1 -14
- package/lib/cjs/components/signature/Signature.form.d.ts +6 -3
- package/lib/cjs/components/signature/Signature.form.js +5 -0
- package/lib/cjs/components/survey/Survey.d.ts +3 -15
- package/lib/cjs/components/survey/Survey.form.d.ts +6 -3
- package/lib/cjs/components/survey/Survey.form.js +5 -0
- package/lib/cjs/components/table/Table.d.ts +2 -1
- package/lib/cjs/components/table/Table.form.d.ts +6 -3
- package/lib/cjs/components/table/Table.form.js +5 -0
- package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/cjs/components/tabs/Tabs.form.d.ts +6 -3
- package/lib/cjs/components/tabs/Tabs.form.js +5 -0
- package/lib/cjs/components/tabs/Tabs.js +1 -2
- package/lib/cjs/components/tags/Tags.d.ts +0 -14
- package/lib/cjs/components/tags/Tags.form.d.ts +6 -3
- package/lib/cjs/components/tags/Tags.form.js +5 -0
- package/lib/cjs/components/textarea/TextArea.d.ts +4 -9
- package/lib/cjs/components/textarea/TextArea.form.d.ts +6 -3
- package/lib/cjs/components/textarea/TextArea.form.js +5 -0
- package/lib/cjs/components/textarea/TextArea.js +2 -2
- package/lib/cjs/components/textfield/TextField.d.ts +14 -30
- package/lib/cjs/components/textfield/TextField.form.d.ts +6 -3
- package/lib/cjs/components/textfield/TextField.form.js +5 -0
- package/lib/cjs/components/textfield/TextField.js +14 -17
- package/lib/cjs/components/time/Time.form.d.ts +6 -3
- package/lib/cjs/components/time/Time.form.js +5 -0
- package/lib/cjs/components/unknown/Unknown.form.d.ts +5 -34
- package/lib/cjs/components/unknown/Unknown.form.js +4 -0
- package/lib/cjs/components/url/Url.form.d.ts +6 -3
- package/lib/cjs/components/url/Url.form.js +5 -0
- package/lib/cjs/components/well/Well.form.d.ts +6 -3
- package/lib/cjs/components/well/Well.form.js +5 -0
- package/lib/cjs/formio.embed.d.ts +1 -2
- package/lib/cjs/formio.embed.js +2 -100
- package/lib/cjs/formio.form.d.ts +11 -4
- package/lib/cjs/formio.form.js +13 -5
- package/lib/cjs/providers/Providers.d.ts +36 -5
- package/lib/cjs/providers/Providers.js +29 -0
- package/lib/cjs/providers/address/AddressProvider.d.ts +131 -12
- package/lib/cjs/providers/address/AddressProvider.js +88 -2
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +48 -1
- package/lib/cjs/providers/address/AzureAddressProvider.js +37 -0
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +27 -4
- package/lib/cjs/providers/address/CustomAddressProvider.js +34 -0
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +130 -6
- package/lib/cjs/providers/address/GoogleAddressProvider.js +72 -0
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +32 -7
- package/lib/cjs/providers/address/NominatimAddressProvider.js +33 -0
- package/lib/cjs/providers/address/index.d.ts +3 -1
- package/lib/cjs/providers/processor/fileProcessor.d.ts +7 -1
- package/lib/cjs/providers/processor/fileProcessor.js +6 -0
- package/lib/cjs/providers/storage/azure.d.ts +6 -13
- package/lib/cjs/providers/storage/azure.js +5 -0
- package/lib/cjs/providers/storage/base64.d.ts +5 -6
- package/lib/cjs/providers/storage/base64.js +4 -0
- package/lib/cjs/providers/storage/dropbox.d.ts +6 -4
- package/lib/cjs/providers/storage/dropbox.js +5 -0
- package/lib/cjs/providers/storage/googleDrive.d.ts +7 -5
- package/lib/cjs/providers/storage/googleDrive.js +6 -0
- package/lib/cjs/providers/storage/indexeddb.d.ts +5 -7
- package/lib/cjs/providers/storage/indexeddb.js +4 -0
- package/lib/cjs/providers/storage/s3.d.ts +6 -20
- package/lib/cjs/providers/storage/s3.js +5 -0
- package/lib/cjs/providers/storage/url.d.ts +6 -7
- package/lib/cjs/providers/storage/url.js +10 -0
- package/lib/cjs/providers/storage/util.d.ts +24 -1
- package/lib/cjs/providers/storage/util.js +18 -0
- package/lib/cjs/templates/Templates.d.ts +1 -0
- package/lib/cjs/utils/Evaluator.d.ts +6 -3
- package/lib/cjs/utils/Evaluator.js +11 -20
- package/lib/cjs/utils/builder.d.ts +9 -7
- package/lib/cjs/utils/builder.js +10 -5
- package/lib/cjs/utils/calendarUtils.d.ts +7 -13
- package/lib/cjs/utils/calendarUtils.js +10 -17
- package/lib/cjs/utils/formUtils.d.ts +43 -171
- package/lib/cjs/utils/formUtils.js +38 -569
- package/lib/cjs/utils/utils.d.ts +370 -218
- package/lib/cjs/utils/utils.js +348 -230
- package/lib/cjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/cjs/widgets/CalendarWidget.js +9 -11
- package/lib/mjs/CDN.d.ts +1 -0
- package/lib/mjs/CDN.js +6 -3
- package/lib/mjs/Element.d.ts +86 -96
- package/lib/mjs/Element.js +68 -78
- package/lib/mjs/Embed.d.ts +1 -1
- package/lib/mjs/Embed.js +52 -12
- package/lib/mjs/Form.d.ts +365 -36
- package/lib/mjs/Form.js +140 -57
- package/lib/mjs/FormBuilder.d.ts +187 -2
- package/lib/mjs/FormBuilder.js +32 -8
- package/lib/mjs/InlineEmbed.d.ts +7 -0
- package/lib/mjs/InlineEmbed.js +112 -0
- package/lib/mjs/PDF.d.ts +11 -13
- package/lib/mjs/PDF.js +6 -8
- package/lib/mjs/Webform.d.ts +180 -139
- package/lib/mjs/Webform.js +323 -309
- package/lib/mjs/WebformBuilder.d.ts +16 -14
- package/lib/mjs/WebformBuilder.js +19 -12
- package/lib/mjs/Wizard.d.ts +31 -21
- package/lib/mjs/Wizard.js +42 -19
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/mjs/components/Components.d.ts +4 -4
- package/lib/mjs/components/Components.js +3 -3
- package/lib/mjs/components/_classes/component/Component.d.ts +502 -269
- package/lib/mjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/mjs/components/_classes/component/Component.form.js +5 -0
- package/lib/mjs/components/_classes/component/Component.js +434 -193
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/mjs/components/_classes/field/Field.d.ts +11 -2
- package/lib/mjs/components/_classes/field/Field.js +13 -1
- package/lib/mjs/components/_classes/input/Input.d.ts +4 -3
- package/lib/mjs/components/_classes/input/Input.js +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +6 -3
- package/lib/mjs/components/_classes/list/ListComponent.form.js +5 -0
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +37 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +163 -67
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +5 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.js +175 -54
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
- package/lib/mjs/components/address/Address.d.ts +4 -2
- package/lib/mjs/components/address/Address.form.d.ts +6 -3
- package/lib/mjs/components/address/Address.form.js +5 -0
- package/lib/mjs/components/button/Button.d.ts +3 -12
- package/lib/mjs/components/button/Button.form.d.ts +6 -3
- package/lib/mjs/components/button/Button.form.js +5 -0
- package/lib/mjs/components/button/Button.js +5 -0
- package/lib/mjs/components/checkbox/Checkbox.d.ts +4 -27
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +6 -3
- package/lib/mjs/components/checkbox/Checkbox.form.js +5 -0
- package/lib/mjs/components/columns/Columns.d.ts +3 -2
- package/lib/mjs/components/columns/Columns.form.d.ts +6 -3
- package/lib/mjs/components/columns/Columns.form.js +5 -0
- package/lib/mjs/components/columns/Columns.js +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +6 -3
- package/lib/mjs/components/container/Container.form.js +5 -0
- package/lib/mjs/components/content/Content.d.ts +2 -1
- package/lib/mjs/components/content/Content.form.d.ts +6 -3
- package/lib/mjs/components/content/Content.form.js +5 -0
- package/lib/mjs/components/currency/Currency.form.d.ts +6 -3
- package/lib/mjs/components/currency/Currency.form.js +5 -0
- package/lib/mjs/components/currency/Currency.js +1 -2
- package/lib/mjs/components/datagrid/DataGrid.d.ts +8 -7
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +6 -3
- package/lib/mjs/components/datagrid/DataGrid.form.js +5 -0
- package/lib/mjs/components/datagrid/DataGrid.js +5 -5
- package/lib/mjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/mjs/components/datamap/DataMap.form.d.ts +6 -3
- package/lib/mjs/components/datamap/DataMap.form.js +5 -0
- package/lib/mjs/components/datetime/DateTime.d.ts +0 -14
- package/lib/mjs/components/datetime/DateTime.form.d.ts +6 -3
- package/lib/mjs/components/datetime/DateTime.form.js +5 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +22 -48
- package/lib/mjs/components/day/Day.form.d.ts +6 -3
- package/lib/mjs/components/day/Day.form.js +5 -0
- package/lib/mjs/components/day/Day.js +15 -20
- package/lib/mjs/components/editgrid/EditGrid.d.ts +7 -3
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +6 -3
- package/lib/mjs/components/editgrid/EditGrid.form.js +5 -0
- 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.js +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +6 -3
- package/lib/mjs/components/email/Email.form.js +5 -0
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +6 -3
- package/lib/mjs/components/fieldset/Fieldset.form.js +5 -0
- package/lib/mjs/components/file/File.d.ts +9 -22
- package/lib/mjs/components/file/File.form.d.ts +6 -3
- package/lib/mjs/components/file/File.form.js +5 -0
- package/lib/mjs/components/form/Form.d.ts +31 -20
- package/lib/mjs/components/form/Form.form.d.ts +6 -3
- package/lib/mjs/components/form/Form.form.js +5 -0
- package/lib/mjs/components/form/Form.js +16 -12
- package/lib/mjs/components/hidden/Hidden.d.ts +1 -11
- package/lib/mjs/components/hidden/Hidden.form.d.ts +6 -3
- package/lib/mjs/components/hidden/Hidden.form.js +5 -0
- package/lib/mjs/components/hidden/Hidden.js +1 -2
- package/lib/mjs/components/html/HTML.d.ts +2 -1
- package/lib/mjs/components/html/HTML.form.d.ts +6 -3
- package/lib/mjs/components/html/HTML.form.js +5 -0
- package/lib/mjs/components/number/Number.d.ts +3 -17
- package/lib/mjs/components/number/Number.form.d.ts +6 -3
- package/lib/mjs/components/number/Number.form.js +5 -0
- package/lib/mjs/components/number/Number.js +1 -2
- package/lib/mjs/components/panel/Panel.form.d.ts +6 -3
- package/lib/mjs/components/panel/Panel.form.js +5 -0
- package/lib/mjs/components/panel/Panel.js +0 -1
- package/lib/mjs/components/password/Password.form.d.ts +6 -3
- package/lib/mjs/components/password/Password.form.js +5 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +5 -0
- package/lib/mjs/components/radio/Radio.d.ts +3 -26
- package/lib/mjs/components/radio/Radio.form.d.ts +6 -3
- package/lib/mjs/components/radio/Radio.form.js +5 -0
- package/lib/mjs/components/radio/Radio.js +3 -4
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/mjs/components/select/Select.d.ts +16 -39
- package/lib/mjs/components/select/Select.form.d.ts +6 -3
- package/lib/mjs/components/select/Select.form.js +5 -0
- package/lib/mjs/components/select/Select.js +15 -18
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -17
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +5 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -9
- package/lib/mjs/components/signature/Signature.d.ts +1 -14
- package/lib/mjs/components/signature/Signature.form.d.ts +6 -3
- package/lib/mjs/components/signature/Signature.form.js +5 -0
- package/lib/mjs/components/survey/Survey.d.ts +3 -15
- package/lib/mjs/components/survey/Survey.form.d.ts +6 -3
- package/lib/mjs/components/survey/Survey.form.js +5 -0
- package/lib/mjs/components/table/Table.d.ts +2 -1
- package/lib/mjs/components/table/Table.form.d.ts +6 -3
- package/lib/mjs/components/table/Table.form.js +5 -0
- package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/mjs/components/tabs/Tabs.form.d.ts +6 -3
- package/lib/mjs/components/tabs/Tabs.form.js +5 -0
- package/lib/mjs/components/tabs/Tabs.js +1 -2
- package/lib/mjs/components/tags/Tags.d.ts +0 -14
- package/lib/mjs/components/tags/Tags.form.d.ts +6 -3
- package/lib/mjs/components/tags/Tags.form.js +5 -0
- package/lib/mjs/components/textarea/TextArea.d.ts +4 -9
- package/lib/mjs/components/textarea/TextArea.form.d.ts +6 -3
- package/lib/mjs/components/textarea/TextArea.form.js +5 -0
- package/lib/mjs/components/textarea/TextArea.js +2 -2
- package/lib/mjs/components/textfield/TextField.d.ts +14 -30
- package/lib/mjs/components/textfield/TextField.form.d.ts +6 -3
- package/lib/mjs/components/textfield/TextField.form.js +5 -0
- package/lib/mjs/components/textfield/TextField.js +14 -17
- package/lib/mjs/components/time/Time.form.d.ts +6 -3
- package/lib/mjs/components/time/Time.form.js +5 -0
- package/lib/mjs/components/unknown/Unknown.form.d.ts +5 -34
- package/lib/mjs/components/unknown/Unknown.form.js +4 -0
- package/lib/mjs/components/url/Url.form.d.ts +6 -3
- package/lib/mjs/components/url/Url.form.js +5 -0
- package/lib/mjs/components/well/Well.form.d.ts +6 -3
- package/lib/mjs/components/well/Well.form.js +5 -0
- package/lib/mjs/formio.embed.d.ts +1 -2
- package/lib/mjs/formio.embed.js +2 -99
- package/lib/mjs/formio.form.d.ts +11 -4
- package/lib/mjs/formio.form.js +10 -3
- package/lib/mjs/providers/Providers.d.ts +36 -5
- package/lib/mjs/providers/Providers.js +29 -0
- package/lib/mjs/providers/address/AddressProvider.d.ts +131 -12
- package/lib/mjs/providers/address/AddressProvider.js +88 -2
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +48 -1
- package/lib/mjs/providers/address/AzureAddressProvider.js +37 -0
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +27 -4
- package/lib/mjs/providers/address/CustomAddressProvider.js +34 -0
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +130 -6
- package/lib/mjs/providers/address/GoogleAddressProvider.js +72 -0
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +32 -7
- package/lib/mjs/providers/address/NominatimAddressProvider.js +33 -0
- package/lib/mjs/providers/address/index.d.ts +3 -1
- package/lib/mjs/providers/processor/fileProcessor.d.ts +7 -1
- package/lib/mjs/providers/processor/fileProcessor.js +6 -0
- package/lib/mjs/providers/storage/azure.d.ts +6 -13
- package/lib/mjs/providers/storage/azure.js +5 -0
- package/lib/mjs/providers/storage/base64.d.ts +5 -6
- package/lib/mjs/providers/storage/base64.js +4 -0
- package/lib/mjs/providers/storage/dropbox.d.ts +6 -4
- package/lib/mjs/providers/storage/dropbox.js +5 -0
- package/lib/mjs/providers/storage/googleDrive.d.ts +7 -5
- package/lib/mjs/providers/storage/googleDrive.js +6 -0
- package/lib/mjs/providers/storage/indexeddb.d.ts +5 -7
- package/lib/mjs/providers/storage/indexeddb.js +4 -0
- package/lib/mjs/providers/storage/s3.d.ts +6 -20
- package/lib/mjs/providers/storage/s3.js +5 -0
- package/lib/mjs/providers/storage/url.d.ts +6 -7
- package/lib/mjs/providers/storage/url.js +10 -0
- package/lib/mjs/providers/storage/util.d.ts +24 -1
- package/lib/mjs/providers/storage/util.js +18 -0
- package/lib/mjs/templates/Templates.d.ts +1 -0
- package/lib/mjs/utils/Evaluator.d.ts +6 -3
- package/lib/mjs/utils/Evaluator.js +9 -20
- package/lib/mjs/utils/builder.d.ts +9 -7
- package/lib/mjs/utils/builder.js +10 -5
- package/lib/mjs/utils/calendarUtils.d.ts +7 -13
- package/lib/mjs/utils/calendarUtils.js +10 -17
- package/lib/mjs/utils/formUtils.d.ts +43 -171
- package/lib/mjs/utils/formUtils.js +6 -554
- package/lib/mjs/utils/utils.d.ts +370 -218
- package/lib/mjs/utils/utils.js +339 -222
- package/lib/mjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/mjs/widgets/CalendarWidget.js +9 -11
- package/package.json +22 -22
- package/sdk.d.ts +1 -0
- package/utils.d.ts +1 -0
|
@@ -19,13 +19,6 @@ export default class CheckBoxComponent extends Field {
|
|
|
19
19
|
};
|
|
20
20
|
type: string;
|
|
21
21
|
};
|
|
22
|
-
constructor: Function;
|
|
23
|
-
toString(): string;
|
|
24
|
-
toLocaleString(): string;
|
|
25
|
-
valueOf(): Object;
|
|
26
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
-
isPrototypeOf(v: Object): boolean;
|
|
28
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
29
22
|
};
|
|
30
23
|
static get conditionOperatorsSettings(): {
|
|
31
24
|
operators: string[];
|
|
@@ -39,31 +32,15 @@ export default class CheckBoxComponent extends Field {
|
|
|
39
32
|
};
|
|
40
33
|
type: string;
|
|
41
34
|
};
|
|
42
|
-
constructor: Function;
|
|
43
|
-
toString(): string;
|
|
44
|
-
toLocaleString(): string;
|
|
45
|
-
valueOf(): Object;
|
|
46
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
47
|
-
isPrototypeOf(v: Object): boolean;
|
|
48
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
49
35
|
};
|
|
50
36
|
static savedValueTypes(schema: any): string[] | null;
|
|
51
37
|
get labelClass(): string;
|
|
52
|
-
get inputInfo():
|
|
53
|
-
type: string;
|
|
54
|
-
component: any;
|
|
55
|
-
changeEvent: string;
|
|
56
|
-
attr: {
|
|
57
|
-
name: any;
|
|
58
|
-
type: any;
|
|
59
|
-
class: string;
|
|
60
|
-
lang: any;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
38
|
+
get inputInfo(): any;
|
|
63
39
|
get labelInfo(): {
|
|
64
40
|
hidden: boolean;
|
|
65
41
|
};
|
|
66
|
-
render():
|
|
42
|
+
render(): Field;
|
|
43
|
+
attach(element: any): Promise<void>;
|
|
67
44
|
input: any;
|
|
68
45
|
detach(element: any): void;
|
|
69
46
|
get emptyValue(): false | null;
|
|
@@ -71,7 +48,7 @@ export default class CheckBoxComponent extends Field {
|
|
|
71
48
|
get checked(): boolean;
|
|
72
49
|
setCheckedState(value: any): any;
|
|
73
50
|
setValue(value: any, flags?: {}): boolean;
|
|
74
|
-
getValueAsString(value: any):
|
|
51
|
+
getValueAsString(value: any): string;
|
|
75
52
|
updateValue(value: any, flags: any): boolean;
|
|
76
53
|
}
|
|
77
54
|
import Field from '../_classes/field/Field';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import Components from '../Components';
|
|
|
2
2
|
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
|
+
/**
|
|
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.
|
|
9
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return Components.baseEditForm([
|
|
7
12
|
{
|
|
@@ -10,16 +10,17 @@ export default class ColumnsComponent extends NestedComponent {
|
|
|
10
10
|
};
|
|
11
11
|
static savedValueTypes(): never[];
|
|
12
12
|
rows: any[];
|
|
13
|
+
get schema(): any;
|
|
13
14
|
get columnKey(): string;
|
|
14
15
|
columns: any[] | undefined;
|
|
15
16
|
labelIsHidden(): boolean;
|
|
16
|
-
render():
|
|
17
|
+
render(): import("../_classes/field/Field").default;
|
|
17
18
|
justifyColumn(items: any, index: any): boolean;
|
|
18
19
|
justify(): any;
|
|
19
20
|
get gridSize(): number;
|
|
20
21
|
/**
|
|
21
22
|
* Group columns in rows.
|
|
22
|
-
* @
|
|
23
|
+
* @returns {Array.<ColumnComponent[]>} - The array of columns
|
|
23
24
|
*/
|
|
24
25
|
groupByRow(): Array<ColumnComponent[]>;
|
|
25
26
|
checkData(data: any, flags: any, row: any, components: any): void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import nestedComponentForm from '../_classes/nested/NestedComponent.form';
|
|
2
2
|
import ColumnsEditDisplay from './editForm/Columns.edit.display';
|
|
3
|
+
/**
|
|
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
|
+
*/
|
|
3
8
|
export default function (...extend) {
|
|
4
9
|
return nestedComponentForm([
|
|
5
10
|
{
|
|
@@ -114,7 +114,7 @@ export default class ColumnsComponent extends NestedComponent {
|
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* Group columns in rows.
|
|
117
|
-
* @
|
|
117
|
+
* @returns {Array.<ColumnComponent[]>} - The array of columns
|
|
118
118
|
*/
|
|
119
119
|
groupByRow() {
|
|
120
120
|
const initVal = { stack: [], rows: [] };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import Components from '../Components';
|
|
2
2
|
import ContainerEditDisplay from './editForm/Container.edit.display';
|
|
3
3
|
import ContainerEditData from './editForm/Container.edit.data';
|
|
4
|
+
/**
|
|
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.
|
|
8
|
+
*/
|
|
4
9
|
export default function (...extend) {
|
|
5
10
|
return Components.baseEditForm([
|
|
6
11
|
{
|
|
@@ -11,8 +11,9 @@ export default class ContentComponent extends Component {
|
|
|
11
11
|
};
|
|
12
12
|
static savedValueTypes(): never[];
|
|
13
13
|
get content(): any;
|
|
14
|
-
render():
|
|
14
|
+
render(): string;
|
|
15
15
|
get dataReady(): any;
|
|
16
|
+
attach(element: any): Promise<void>;
|
|
16
17
|
get emptyValue(): string;
|
|
17
18
|
}
|
|
18
19
|
import Component from '../_classes/component/Component';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import Components from '../Components';
|
|
2
2
|
import ContentEditDisplay from './editForm/Content.edit.display';
|
|
3
3
|
import ContentEditLogic from './editForm/Content.edit.logic';
|
|
4
|
+
/**
|
|
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.
|
|
8
|
+
*/
|
|
4
9
|
export default function (...extend) {
|
|
5
10
|
const editForm = Components.baseEditForm([
|
|
6
11
|
{
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import baseEditForm from '../textfield/TextField.form';
|
|
2
2
|
import CurrencyEditDisplay from './editForm/Currency.edit.display';
|
|
3
3
|
import CurrencyEditData from './editForm/Currency.edit.data';
|
|
4
|
+
/**
|
|
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.
|
|
8
|
+
*/
|
|
4
9
|
export default function (...extend) {
|
|
5
10
|
return baseEditForm([
|
|
6
11
|
{
|
|
@@ -30,8 +30,7 @@ export default class CurrencyComponent extends NumberComponent {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Creates the number mask for currency numbers.
|
|
33
|
-
*
|
|
34
|
-
* @return {*}
|
|
33
|
+
* @returns {*} - The result of the createNumberMask function
|
|
35
34
|
*/
|
|
36
35
|
createNumberMask() {
|
|
37
36
|
const decimalLimit = _.get(this.component, 'decimalLimit', 2);
|
|
@@ -30,20 +30,20 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
30
30
|
isEmpty(value?: any[]): any;
|
|
31
31
|
/**
|
|
32
32
|
* Split rows into chunks.
|
|
33
|
-
* @param {
|
|
33
|
+
* @param {number[]} groups - array of numbers where each item is size of group
|
|
34
34
|
* @param {Array<T>} rows - rows collection
|
|
35
|
-
* @
|
|
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
|
-
* @
|
|
41
|
+
* @returns {object} - The groups object.
|
|
42
42
|
*/
|
|
43
|
-
getGroups():
|
|
43
|
+
getGroups(): object;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @
|
|
45
|
+
* Get group sizes.
|
|
46
|
+
* @returns {number[]} - The array of group sizes.
|
|
47
47
|
*/
|
|
48
48
|
getGroupSizes(): number[];
|
|
49
49
|
hasRowGroups(): any;
|
|
@@ -54,7 +54,7 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
54
54
|
hasTopSubmit(): any;
|
|
55
55
|
hasBottomSubmit(): any;
|
|
56
56
|
get canAddColumn(): boolean;
|
|
57
|
-
render():
|
|
57
|
+
render(): import("../_classes/field/Field").default;
|
|
58
58
|
getRows(): {}[];
|
|
59
59
|
getColumns(): any[];
|
|
60
60
|
hasHeader(): any;
|
|
@@ -76,6 +76,7 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
76
76
|
rebuild: boolean;
|
|
77
77
|
show: boolean;
|
|
78
78
|
};
|
|
79
|
+
checkComponentConditions(data: any, flags: any, row: any): boolean;
|
|
79
80
|
getComponent(path: any, fn: any): any;
|
|
80
81
|
toggleGroup(element: any, index: any): void;
|
|
81
82
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import Components from '../Components';
|
|
|
2
2
|
import DataGridEditData from './editForm/DataGrid.edit.data';
|
|
3
3
|
import DataGridEditDisplay from './editForm/DataGrid.edit.display';
|
|
4
4
|
import DataGridEditValidation from './editForm/DataGrid.edit.validation';
|
|
5
|
+
/**
|
|
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.
|
|
9
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return Components.baseEditForm([
|
|
7
12
|
{
|
|
@@ -133,9 +133,9 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
* Split rows into chunks.
|
|
136
|
-
* @param {
|
|
136
|
+
* @param {number[]} groups - array of numbers where each item is size of group
|
|
137
137
|
* @param {Array<T>} rows - rows collection
|
|
138
|
-
* @
|
|
138
|
+
* @returns {Array<T[]>} - The chunked rows
|
|
139
139
|
*/
|
|
140
140
|
getRowChunks(groups, rows) {
|
|
141
141
|
const [, chunks] = groups.reduce(([startIndex, acc], size) => {
|
|
@@ -147,7 +147,7 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
147
147
|
/**
|
|
148
148
|
* Create groups object.
|
|
149
149
|
* Each key in object represents index of first row in group.
|
|
150
|
-
* @
|
|
150
|
+
* @returns {object} - The groups object.
|
|
151
151
|
*/
|
|
152
152
|
getGroups() {
|
|
153
153
|
const groups = _.get(this.component, 'rowGroups', []);
|
|
@@ -164,8 +164,8 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
164
164
|
}, {});
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
168
|
-
* @
|
|
167
|
+
* Get group sizes.
|
|
168
|
+
* @returns {number[]} - The array of group sizes.
|
|
169
169
|
*/
|
|
170
170
|
getGroupSizes() {
|
|
171
171
|
return _.map(_.get(this.component, 'rowGroups', []), 'numberOfRows');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default class DataMapComponent extends DataGridComponent {
|
|
2
2
|
static savedValueTypes(schema: any): string[];
|
|
3
3
|
constructor(component: any, options: any, data: any);
|
|
4
|
+
get schema(): any;
|
|
4
5
|
get emptyValue(): {};
|
|
5
6
|
set dataValue(value: any);
|
|
6
7
|
get dataValue(): any;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import Components from '../Components';
|
|
2
2
|
import DataMapEditData from './editForm/DataMap.edit.data';
|
|
3
3
|
import DataMapEditDisplay from './editForm/DataMap.edit.display';
|
|
4
|
+
/**
|
|
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.
|
|
8
|
+
*/
|
|
4
9
|
export default function (...extend) {
|
|
5
10
|
return Components.baseEditForm([
|
|
6
11
|
{
|
|
@@ -10,24 +10,10 @@ export default class DateTimeComponent extends Input {
|
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
12
|
valueComponent(classComp: any): any;
|
|
13
|
-
constructor: Function;
|
|
14
|
-
toString(): string;
|
|
15
|
-
toLocaleString(): string;
|
|
16
|
-
valueOf(): Object;
|
|
17
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
18
|
-
isPrototypeOf(v: Object): boolean;
|
|
19
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
20
13
|
};
|
|
21
14
|
static get conditionOperatorsSettings(): {
|
|
22
15
|
operators: string[];
|
|
23
16
|
valueComponent(classComp: any): any;
|
|
24
|
-
constructor: Function;
|
|
25
|
-
toString(): string;
|
|
26
|
-
toLocaleString(): string;
|
|
27
|
-
valueOf(): Object;
|
|
28
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
29
|
-
isPrototypeOf(v: Object): boolean;
|
|
30
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
31
17
|
};
|
|
32
18
|
static savedValueTypes(schema: any): string[];
|
|
33
19
|
get emptyValue(): string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -4,6 +4,11 @@ import DateTimeEditDate from './editForm/DateTime.edit.date';
|
|
|
4
4
|
import DateTimeEditDisplay from './editForm/DateTime.edit.display';
|
|
5
5
|
import DateTimeEditTime from './editForm/DateTime.edit.time';
|
|
6
6
|
import DateTimeEditValidation from './editForm/DateTime.edit.validation';
|
|
7
|
+
/**
|
|
8
|
+
* The Edit Form function.
|
|
9
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
10
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
11
|
+
*/
|
|
7
12
|
export default function (...extend) {
|
|
8
13
|
return Components.baseEditForm([
|
|
9
14
|
{
|
|
@@ -9,30 +9,15 @@ export default class DayComponent extends Field {
|
|
|
9
9
|
};
|
|
10
10
|
static get conditionOperatorsSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
|
-
constructor: Function;
|
|
13
|
-
toString(): string;
|
|
14
|
-
toLocaleString(): string;
|
|
15
|
-
valueOf(): Object;
|
|
16
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
-
isPrototypeOf(v: Object): boolean;
|
|
18
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
19
12
|
};
|
|
20
13
|
static savedValueTypes(schema: any): string[];
|
|
21
14
|
static get serverConditionSettings(): {
|
|
22
15
|
operators: string[];
|
|
23
|
-
constructor: Function;
|
|
24
|
-
toString(): string;
|
|
25
|
-
toLocaleString(): string;
|
|
26
|
-
valueOf(): Object;
|
|
27
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
28
|
-
isPrototypeOf(v: Object): boolean;
|
|
29
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
30
16
|
};
|
|
31
17
|
constructor(component: any, options: any, data: any);
|
|
32
18
|
/**
|
|
33
19
|
* The empty value for day component.
|
|
34
|
-
*
|
|
35
|
-
* @return {'00/00/0000'}
|
|
20
|
+
* @returns {'00/00/0000'} - The empty value of the day component.
|
|
36
21
|
*/
|
|
37
22
|
get emptyValue(): "00/00/0000";
|
|
38
23
|
get valueMask(): RegExp;
|
|
@@ -42,17 +27,7 @@ export default class DayComponent extends Field {
|
|
|
42
27
|
get showMonth(): boolean;
|
|
43
28
|
get yearRequired(): any;
|
|
44
29
|
get showYear(): boolean;
|
|
45
|
-
get inputInfo():
|
|
46
|
-
type: string;
|
|
47
|
-
component: any;
|
|
48
|
-
changeEvent: string;
|
|
49
|
-
attr: {
|
|
50
|
-
name: any;
|
|
51
|
-
type: any;
|
|
52
|
-
class: string;
|
|
53
|
-
lang: any;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
30
|
+
get inputInfo(): any;
|
|
56
31
|
inputDefinition(name: any): {
|
|
57
32
|
type: string;
|
|
58
33
|
ref: any;
|
|
@@ -109,18 +84,19 @@ export default class DayComponent extends Field {
|
|
|
109
84
|
}[] | undefined;
|
|
110
85
|
setErrorClasses(elements: any, dirty: any, hasError: any): void;
|
|
111
86
|
dayFirst: any;
|
|
112
|
-
render():
|
|
87
|
+
render(): Field;
|
|
113
88
|
renderField(name: any): any;
|
|
89
|
+
attach(element: any): Promise<void>;
|
|
114
90
|
set disabled(disabled: any);
|
|
115
91
|
validateRequired(setting: any, value: any): boolean;
|
|
116
92
|
normalizeValue(value: any): any;
|
|
117
93
|
/**
|
|
118
|
-
* Set the value at a specific index.
|
|
119
|
-
*
|
|
120
|
-
* @param
|
|
121
|
-
* @
|
|
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.
|
|
122
98
|
*/
|
|
123
|
-
setValueAt(index:
|
|
99
|
+
setValueAt(index: number, value: any): null | void;
|
|
124
100
|
getFieldValue(name: any): number;
|
|
125
101
|
get parts(): {
|
|
126
102
|
day: number;
|
|
@@ -129,34 +105,32 @@ export default class DayComponent extends Field {
|
|
|
129
105
|
};
|
|
130
106
|
/**
|
|
131
107
|
* Get the format for the value string.
|
|
132
|
-
* @returns {string}
|
|
108
|
+
* @returns {string} - the format for the value string.
|
|
133
109
|
*/
|
|
134
110
|
get format(): string;
|
|
135
111
|
/**
|
|
136
112
|
* Return the date for this component.
|
|
137
|
-
*
|
|
138
|
-
* @
|
|
139
|
-
* @return {*}
|
|
113
|
+
* @param {any} value - The value to convert to a date.
|
|
114
|
+
* @returns {null|string} - The date string.
|
|
140
115
|
*/
|
|
141
|
-
getDate(value: any):
|
|
116
|
+
getDate(value: any): null | string;
|
|
142
117
|
/**
|
|
143
|
-
* Return the date
|
|
144
|
-
* @returns {
|
|
118
|
+
* Return the date string for this component.
|
|
119
|
+
* @returns {string|null} - The date string for this component.
|
|
145
120
|
*/
|
|
146
|
-
get date():
|
|
121
|
+
get date(): string | null;
|
|
147
122
|
/**
|
|
148
123
|
* Return the raw value.
|
|
149
|
-
*
|
|
150
|
-
* @returns {Date}
|
|
124
|
+
* @returns {string} - The raw value of the component.
|
|
151
125
|
*/
|
|
152
|
-
get validationValue():
|
|
126
|
+
get validationValue(): string;
|
|
153
127
|
/**
|
|
154
128
|
* Get the input value of the date.
|
|
155
|
-
*
|
|
156
|
-
* @
|
|
157
|
-
* @return {null}
|
|
129
|
+
* @param {any} value - The value to convert to a string.
|
|
130
|
+
* @returns {string|null} - The string value of the date.
|
|
158
131
|
*/
|
|
159
|
-
getValueAsString(value: any): null;
|
|
132
|
+
getValueAsString(value: any): string | null;
|
|
133
|
+
focus(field: any): void;
|
|
160
134
|
isPartialDay(value: any): boolean;
|
|
161
135
|
getValidationFormat(): "DD-MM-YYYY" | "MM-DD-YYYY";
|
|
162
136
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
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
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -5,6 +5,11 @@ import DayEditValidation from './editForm/Day.edit.validation';
|
|
|
5
5
|
import DayEditDay from './editForm/Day.edit.day';
|
|
6
6
|
import DayEditMonth from './editForm/Day.edit.month';
|
|
7
7
|
import DayEditYear from './editForm/Day.edit.year';
|
|
8
|
+
/**
|
|
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.
|
|
12
|
+
*/
|
|
8
13
|
export default function (...extend) {
|
|
9
14
|
return Components.baseEditForm([
|
|
10
15
|
{
|
|
@@ -62,8 +62,7 @@ export default class DayComponent extends Field {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* The empty value for day component.
|
|
65
|
-
*
|
|
66
|
-
* @return {'00/00/0000'}
|
|
65
|
+
* @returns {'00/00/0000'} - The empty value of the day component.
|
|
67
66
|
*/
|
|
68
67
|
get emptyValue() {
|
|
69
68
|
return '00/00/0000';
|
|
@@ -354,10 +353,10 @@ export default class DayComponent extends Field {
|
|
|
354
353
|
return dateParts.join('/');
|
|
355
354
|
}
|
|
356
355
|
/**
|
|
357
|
-
* Set the value at a specific index.
|
|
358
|
-
*
|
|
359
|
-
* @param
|
|
360
|
-
* @
|
|
356
|
+
* Set the value at a specific index and updates the component's refs.
|
|
357
|
+
* @param {number} index - The index to set.
|
|
358
|
+
* @param {any} value - The value to set.
|
|
359
|
+
* @returns {null|void} - Returns null if the value is invalid, otherwise void.
|
|
361
360
|
*/
|
|
362
361
|
setValueAt(index, value) {
|
|
363
362
|
// temporary solution to avoid input reset
|
|
@@ -411,7 +410,7 @@ export default class DayComponent extends Field {
|
|
|
411
410
|
}
|
|
412
411
|
/**
|
|
413
412
|
* Get the format for the value string.
|
|
414
|
-
* @returns {string}
|
|
413
|
+
* @returns {string} - the format for the value string.
|
|
415
414
|
*/
|
|
416
415
|
get format() {
|
|
417
416
|
let format = '';
|
|
@@ -435,9 +434,8 @@ export default class DayComponent extends Field {
|
|
|
435
434
|
}
|
|
436
435
|
/**
|
|
437
436
|
* Return the date for this component.
|
|
438
|
-
*
|
|
439
|
-
* @
|
|
440
|
-
* @return {*}
|
|
437
|
+
* @param {any} value - The value to convert to a date.
|
|
438
|
+
* @returns {null|string} - The date string.
|
|
441
439
|
*/
|
|
442
440
|
getDate(value) {
|
|
443
441
|
let defaults = [], day, month, year;
|
|
@@ -483,16 +481,15 @@ export default class DayComponent extends Field {
|
|
|
483
481
|
return result;
|
|
484
482
|
}
|
|
485
483
|
/**
|
|
486
|
-
* Return the date
|
|
487
|
-
* @returns {
|
|
484
|
+
* Return the date string for this component.
|
|
485
|
+
* @returns {string|null} - The date string for this component.
|
|
488
486
|
*/
|
|
489
487
|
get date() {
|
|
490
488
|
return this.getDate();
|
|
491
489
|
}
|
|
492
490
|
/**
|
|
493
491
|
* Return the raw value.
|
|
494
|
-
*
|
|
495
|
-
* @returns {Date}
|
|
492
|
+
* @returns {string} - The raw value of the component.
|
|
496
493
|
*/
|
|
497
494
|
get validationValue() {
|
|
498
495
|
return this.dataValue;
|
|
@@ -503,9 +500,8 @@ export default class DayComponent extends Field {
|
|
|
503
500
|
}
|
|
504
501
|
/**
|
|
505
502
|
* Get the value at a specific index.
|
|
506
|
-
*
|
|
507
|
-
* @
|
|
508
|
-
* @returns {*}
|
|
503
|
+
* @param {number} index - The index to get the value from.
|
|
504
|
+
* @returns {*} - The value at index.
|
|
509
505
|
*/
|
|
510
506
|
getValueAt(index) {
|
|
511
507
|
const date = this.date || this.emptyValue;
|
|
@@ -520,9 +516,8 @@ export default class DayComponent extends Field {
|
|
|
520
516
|
}
|
|
521
517
|
/**
|
|
522
518
|
* Get the input value of the date.
|
|
523
|
-
*
|
|
524
|
-
* @
|
|
525
|
-
* @return {null}
|
|
519
|
+
* @param {any} value - The value to convert to a string.
|
|
520
|
+
* @returns {string|null} - The string value of the date.
|
|
526
521
|
*/
|
|
527
522
|
getValueAsString(value) {
|
|
528
523
|
return this.getDate(value) || '';
|