@formio/js 5.0.0-dev.5610.c46fab6 → 5.0.0-dev.5613.3476921
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/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 +1199 -651
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +11 -3
- package/dist/formio.full.js +919 -691
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +11 -3
- package/dist/formio.js +16 -16
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +493 -1861
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +2 -12
- package/lib/cjs/Element.d.ts +96 -86
- package/lib/cjs/Element.js +78 -68
- package/lib/cjs/Form.d.ts +36 -365
- package/lib/cjs/Form.js +64 -50
- package/lib/cjs/FormBuilder.d.ts +2 -187
- package/lib/cjs/FormBuilder.js +8 -30
- package/lib/cjs/PDF.d.ts +13 -11
- package/lib/cjs/PDF.js +8 -6
- package/lib/cjs/Webform.d.ts +139 -180
- package/lib/cjs/Webform.js +298 -313
- package/lib/cjs/WebformBuilder.d.ts +14 -16
- package/lib/cjs/WebformBuilder.js +11 -17
- package/lib/cjs/Wizard.d.ts +21 -31
- package/lib/cjs/Wizard.js +19 -42
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +5 -8
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +3 -6
- 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 +269 -502
- package/lib/cjs/components/_classes/component/Component.form.d.ts +3 -6
- package/lib/cjs/components/_classes/component/Component.form.js +0 -5
- package/lib/cjs/components/_classes/component/Component.js +189 -433
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
- 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 +2 -11
- package/lib/cjs/components/_classes/field/Field.js +1 -13
- package/lib/cjs/components/_classes/input/Input.d.ts +3 -4
- 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 +3 -6
- package/lib/cjs/components/_classes/list/ListComponent.form.js +0 -5
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +12 -43
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +3 -37
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +67 -163
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +3 -6
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -5
- package/lib/cjs/components/_classes/nested/NestedComponent.js +54 -175
- 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 +1 -7
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +3 -2
- package/lib/cjs/components/address/Address.d.ts +2 -4
- package/lib/cjs/components/address/Address.form.d.ts +3 -6
- package/lib/cjs/components/address/Address.form.js +0 -5
- package/lib/cjs/components/button/Button.d.ts +12 -3
- package/lib/cjs/components/button/Button.form.d.ts +3 -6
- package/lib/cjs/components/button/Button.form.js +0 -5
- package/lib/cjs/components/button/Button.js +0 -5
- package/lib/cjs/components/checkbox/Checkbox.d.ts +27 -4
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +3 -6
- package/lib/cjs/components/checkbox/Checkbox.form.js +0 -5
- package/lib/cjs/components/columns/Columns.d.ts +2 -3
- package/lib/cjs/components/columns/Columns.form.d.ts +3 -6
- package/lib/cjs/components/columns/Columns.form.js +0 -5
- package/lib/cjs/components/columns/Columns.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +3 -6
- package/lib/cjs/components/container/Container.form.js +0 -5
- package/lib/cjs/components/content/Content.d.ts +1 -2
- package/lib/cjs/components/content/Content.form.d.ts +3 -6
- package/lib/cjs/components/content/Content.form.js +0 -5
- package/lib/cjs/components/currency/Currency.form.d.ts +3 -6
- package/lib/cjs/components/currency/Currency.form.js +0 -5
- package/lib/cjs/components/currency/Currency.js +2 -1
- package/lib/cjs/components/datagrid/DataGrid.d.ts +7 -8
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +3 -6
- package/lib/cjs/components/datagrid/DataGrid.form.js +0 -5
- package/lib/cjs/components/datagrid/DataGrid.js +5 -5
- package/lib/cjs/components/datamap/DataMap.d.ts +0 -1
- package/lib/cjs/components/datamap/DataMap.form.d.ts +3 -6
- package/lib/cjs/components/datamap/DataMap.form.js +0 -5
- package/lib/cjs/components/datetime/DateTime.d.ts +14 -0
- package/lib/cjs/components/datetime/DateTime.form.d.ts +3 -6
- package/lib/cjs/components/datetime/DateTime.form.js +0 -5
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
- package/lib/cjs/components/day/Day.d.ts +48 -22
- package/lib/cjs/components/day/Day.form.d.ts +3 -6
- package/lib/cjs/components/day/Day.form.js +0 -5
- package/lib/cjs/components/day/Day.js +20 -15
- package/lib/cjs/components/editgrid/EditGrid.d.ts +3 -7
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +3 -6
- package/lib/cjs/components/editgrid/EditGrid.form.js +0 -5
- package/lib/cjs/components/editgrid/EditGrid.js +3 -3
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +5 -2
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +9 -6
- package/lib/cjs/components/email/Email.form.d.ts +3 -6
- package/lib/cjs/components/email/Email.form.js +0 -5
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +3 -6
- package/lib/cjs/components/fieldset/Fieldset.form.js +0 -5
- package/lib/cjs/components/file/File.d.ts +22 -9
- package/lib/cjs/components/file/File.form.d.ts +3 -6
- package/lib/cjs/components/file/File.form.js +0 -5
- package/lib/cjs/components/form/Form.d.ts +20 -31
- package/lib/cjs/components/form/Form.form.d.ts +3 -6
- package/lib/cjs/components/form/Form.form.js +0 -5
- package/lib/cjs/components/form/Form.js +10 -13
- package/lib/cjs/components/hidden/Hidden.d.ts +11 -1
- package/lib/cjs/components/hidden/Hidden.form.d.ts +3 -6
- package/lib/cjs/components/hidden/Hidden.form.js +0 -5
- package/lib/cjs/components/hidden/Hidden.js +2 -1
- package/lib/cjs/components/html/HTML.d.ts +1 -2
- package/lib/cjs/components/html/HTML.form.d.ts +3 -6
- package/lib/cjs/components/html/HTML.form.js +0 -5
- package/lib/cjs/components/number/Number.d.ts +17 -3
- package/lib/cjs/components/number/Number.form.d.ts +3 -6
- package/lib/cjs/components/number/Number.form.js +0 -5
- package/lib/cjs/components/number/Number.js +2 -1
- package/lib/cjs/components/panel/Panel.form.d.ts +3 -6
- package/lib/cjs/components/panel/Panel.form.js +0 -5
- package/lib/cjs/components/panel/Panel.js +1 -0
- package/lib/cjs/components/password/Password.form.d.ts +3 -6
- package/lib/cjs/components/password/Password.form.js +0 -5
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +3 -6
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +0 -5
- package/lib/cjs/components/radio/Radio.d.ts +26 -3
- package/lib/cjs/components/radio/Radio.form.d.ts +3 -6
- package/lib/cjs/components/radio/Radio.form.js +0 -5
- package/lib/cjs/components/radio/Radio.js +4 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -5
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +0 -4
- package/lib/cjs/components/select/Select.d.ts +39 -16
- package/lib/cjs/components/select/Select.form.d.ts +3 -6
- package/lib/cjs/components/select/Select.form.js +0 -5
- package/lib/cjs/components/select/Select.js +16 -13
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +17 -2
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +3 -6
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +0 -5
- package/lib/cjs/components/selectboxes/SelectBoxes.js +9 -7
- package/lib/cjs/components/signature/Signature.d.ts +14 -1
- package/lib/cjs/components/signature/Signature.form.d.ts +3 -6
- package/lib/cjs/components/signature/Signature.form.js +0 -5
- package/lib/cjs/components/survey/Survey.d.ts +15 -3
- package/lib/cjs/components/survey/Survey.form.d.ts +3 -6
- package/lib/cjs/components/survey/Survey.form.js +0 -5
- package/lib/cjs/components/table/Table.d.ts +1 -2
- package/lib/cjs/components/table/Table.form.d.ts +3 -6
- package/lib/cjs/components/table/Table.form.js +0 -5
- package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/cjs/components/tabs/Tabs.form.d.ts +3 -6
- package/lib/cjs/components/tabs/Tabs.form.js +0 -5
- package/lib/cjs/components/tabs/Tabs.js +2 -1
- package/lib/cjs/components/tags/Tags.d.ts +14 -0
- package/lib/cjs/components/tags/Tags.form.d.ts +3 -6
- package/lib/cjs/components/tags/Tags.form.js +0 -5
- package/lib/cjs/components/textarea/TextArea.d.ts +9 -4
- package/lib/cjs/components/textarea/TextArea.form.d.ts +3 -6
- package/lib/cjs/components/textarea/TextArea.form.js +0 -5
- package/lib/cjs/components/textarea/TextArea.js +2 -2
- package/lib/cjs/components/textfield/TextField.d.ts +30 -14
- package/lib/cjs/components/textfield/TextField.form.d.ts +3 -6
- package/lib/cjs/components/textfield/TextField.form.js +0 -5
- package/lib/cjs/components/textfield/TextField.js +16 -13
- package/lib/cjs/components/time/Time.form.d.ts +3 -6
- package/lib/cjs/components/time/Time.form.js +0 -5
- package/lib/cjs/components/unknown/Unknown.form.d.ts +34 -5
- package/lib/cjs/components/unknown/Unknown.form.js +0 -4
- package/lib/cjs/components/url/Url.form.d.ts +3 -6
- package/lib/cjs/components/url/Url.form.js +0 -5
- package/lib/cjs/components/well/Well.form.d.ts +3 -6
- package/lib/cjs/components/well/Well.form.js +0 -5
- package/lib/cjs/formio.embed.d.ts +2 -1
- package/lib/cjs/formio.embed.js +100 -2
- package/lib/cjs/formio.form.d.ts +4 -11
- package/lib/cjs/formio.form.js +5 -13
- package/lib/cjs/providers/Providers.d.ts +5 -36
- package/lib/cjs/providers/Providers.js +0 -29
- package/lib/cjs/providers/address/AddressProvider.d.ts +12 -131
- package/lib/cjs/providers/address/AddressProvider.js +2 -88
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -48
- package/lib/cjs/providers/address/AzureAddressProvider.js +0 -37
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +4 -27
- package/lib/cjs/providers/address/CustomAddressProvider.js +0 -34
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +6 -130
- package/lib/cjs/providers/address/GoogleAddressProvider.js +0 -72
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +7 -32
- package/lib/cjs/providers/address/NominatimAddressProvider.js +0 -33
- package/lib/cjs/providers/address/index.d.ts +1 -3
- package/lib/cjs/providers/processor/fileProcessor.d.ts +1 -7
- package/lib/cjs/providers/processor/fileProcessor.js +0 -6
- package/lib/cjs/providers/storage/azure.d.ts +13 -6
- package/lib/cjs/providers/storage/azure.js +0 -5
- package/lib/cjs/providers/storage/base64.d.ts +6 -5
- package/lib/cjs/providers/storage/base64.js +0 -4
- package/lib/cjs/providers/storage/dropbox.d.ts +4 -6
- package/lib/cjs/providers/storage/dropbox.js +0 -5
- package/lib/cjs/providers/storage/googleDrive.d.ts +5 -7
- package/lib/cjs/providers/storage/googleDrive.js +0 -6
- package/lib/cjs/providers/storage/indexeddb.d.ts +7 -5
- package/lib/cjs/providers/storage/indexeddb.js +0 -4
- package/lib/cjs/providers/storage/s3.d.ts +20 -6
- package/lib/cjs/providers/storage/s3.js +0 -5
- package/lib/cjs/providers/storage/url.d.ts +7 -6
- package/lib/cjs/providers/storage/url.js +0 -10
- package/lib/cjs/providers/storage/util.d.ts +1 -24
- package/lib/cjs/providers/storage/util.js +0 -18
- package/lib/cjs/templates/Templates.d.ts +0 -1
- package/lib/cjs/translations/en.d.ts +1 -0
- package/lib/cjs/translations/en.js +1 -0
- package/lib/cjs/utils/Evaluator.d.ts +3 -6
- package/lib/cjs/utils/Evaluator.js +20 -11
- package/lib/cjs/utils/builder.d.ts +7 -9
- package/lib/cjs/utils/builder.js +5 -10
- package/lib/cjs/utils/calendarUtils.d.ts +13 -7
- package/lib/cjs/utils/calendarUtils.js +17 -10
- package/lib/cjs/utils/formUtils.d.ts +171 -43
- package/lib/cjs/utils/formUtils.js +569 -38
- package/lib/cjs/utils/utils.d.ts +216 -362
- package/lib/cjs/utils/utils.js +224 -331
- package/lib/cjs/widgets/CalendarWidget.d.ts +10 -9
- package/lib/cjs/widgets/CalendarWidget.js +11 -9
- package/lib/mjs/Element.d.ts +96 -86
- package/lib/mjs/Element.js +78 -68
- package/lib/mjs/Form.d.ts +36 -365
- package/lib/mjs/Form.js +57 -140
- package/lib/mjs/FormBuilder.d.ts +2 -187
- package/lib/mjs/FormBuilder.js +8 -32
- package/lib/mjs/PDF.d.ts +13 -11
- package/lib/mjs/PDF.js +8 -6
- package/lib/mjs/Webform.d.ts +139 -180
- package/lib/mjs/Webform.js +310 -325
- package/lib/mjs/WebformBuilder.d.ts +14 -16
- package/lib/mjs/WebformBuilder.js +11 -16
- package/lib/mjs/Wizard.d.ts +21 -31
- package/lib/mjs/Wizard.js +18 -41
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +5 -8
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +3 -6
- 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 +269 -502
- package/lib/mjs/components/_classes/component/Component.form.d.ts +3 -6
- package/lib/mjs/components/_classes/component/Component.form.js +0 -5
- package/lib/mjs/components/_classes/component/Component.js +189 -433
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
- 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 +2 -11
- package/lib/mjs/components/_classes/field/Field.js +1 -13
- package/lib/mjs/components/_classes/input/Input.d.ts +3 -4
- 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 +3 -6
- package/lib/mjs/components/_classes/list/ListComponent.form.js +0 -5
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +12 -43
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +3 -37
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +67 -163
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +3 -6
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -5
- package/lib/mjs/components/_classes/nested/NestedComponent.js +54 -175
- 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 +1 -7
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +3 -2
- package/lib/mjs/components/address/Address.d.ts +2 -4
- package/lib/mjs/components/address/Address.form.d.ts +3 -6
- package/lib/mjs/components/address/Address.form.js +0 -5
- package/lib/mjs/components/button/Button.d.ts +12 -3
- package/lib/mjs/components/button/Button.form.d.ts +3 -6
- package/lib/mjs/components/button/Button.form.js +0 -5
- package/lib/mjs/components/button/Button.js +0 -5
- package/lib/mjs/components/checkbox/Checkbox.d.ts +27 -4
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +3 -6
- package/lib/mjs/components/checkbox/Checkbox.form.js +0 -5
- package/lib/mjs/components/columns/Columns.d.ts +2 -3
- package/lib/mjs/components/columns/Columns.form.d.ts +3 -6
- package/lib/mjs/components/columns/Columns.form.js +0 -5
- package/lib/mjs/components/columns/Columns.js +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +3 -6
- package/lib/mjs/components/container/Container.form.js +0 -5
- package/lib/mjs/components/content/Content.d.ts +1 -2
- package/lib/mjs/components/content/Content.form.d.ts +3 -6
- package/lib/mjs/components/content/Content.form.js +0 -5
- package/lib/mjs/components/currency/Currency.form.d.ts +3 -6
- package/lib/mjs/components/currency/Currency.form.js +0 -5
- package/lib/mjs/components/currency/Currency.js +2 -1
- package/lib/mjs/components/datagrid/DataGrid.d.ts +7 -8
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +3 -6
- package/lib/mjs/components/datagrid/DataGrid.form.js +0 -5
- package/lib/mjs/components/datagrid/DataGrid.js +5 -5
- package/lib/mjs/components/datamap/DataMap.d.ts +0 -1
- package/lib/mjs/components/datamap/DataMap.form.d.ts +3 -6
- package/lib/mjs/components/datamap/DataMap.form.js +0 -5
- package/lib/mjs/components/datetime/DateTime.d.ts +14 -0
- package/lib/mjs/components/datetime/DateTime.form.d.ts +3 -6
- package/lib/mjs/components/datetime/DateTime.form.js +0 -5
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +48 -22
- package/lib/mjs/components/day/Day.form.d.ts +3 -6
- package/lib/mjs/components/day/Day.form.js +0 -5
- package/lib/mjs/components/day/Day.js +20 -15
- package/lib/mjs/components/editgrid/EditGrid.d.ts +3 -7
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +3 -6
- package/lib/mjs/components/editgrid/EditGrid.form.js +0 -5
- 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 +3 -6
- package/lib/mjs/components/email/Email.form.js +0 -5
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +3 -6
- package/lib/mjs/components/fieldset/Fieldset.form.js +0 -5
- package/lib/mjs/components/file/File.d.ts +22 -9
- package/lib/mjs/components/file/File.form.d.ts +3 -6
- package/lib/mjs/components/file/File.form.js +0 -5
- package/lib/mjs/components/form/Form.d.ts +20 -31
- package/lib/mjs/components/form/Form.form.d.ts +3 -6
- package/lib/mjs/components/form/Form.form.js +0 -5
- package/lib/mjs/components/form/Form.js +10 -13
- package/lib/mjs/components/hidden/Hidden.d.ts +11 -1
- package/lib/mjs/components/hidden/Hidden.form.d.ts +3 -6
- package/lib/mjs/components/hidden/Hidden.form.js +0 -5
- package/lib/mjs/components/hidden/Hidden.js +2 -1
- package/lib/mjs/components/html/HTML.d.ts +1 -2
- package/lib/mjs/components/html/HTML.form.d.ts +3 -6
- package/lib/mjs/components/html/HTML.form.js +0 -5
- package/lib/mjs/components/number/Number.d.ts +17 -3
- package/lib/mjs/components/number/Number.form.d.ts +3 -6
- package/lib/mjs/components/number/Number.form.js +0 -5
- package/lib/mjs/components/number/Number.js +2 -1
- package/lib/mjs/components/panel/Panel.form.d.ts +3 -6
- package/lib/mjs/components/panel/Panel.form.js +0 -5
- package/lib/mjs/components/panel/Panel.js +1 -0
- package/lib/mjs/components/password/Password.form.d.ts +3 -6
- package/lib/mjs/components/password/Password.form.js +0 -5
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +3 -6
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +0 -5
- package/lib/mjs/components/radio/Radio.d.ts +26 -3
- package/lib/mjs/components/radio/Radio.form.d.ts +3 -6
- package/lib/mjs/components/radio/Radio.form.js +0 -5
- package/lib/mjs/components/radio/Radio.js +4 -3
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -5
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +0 -4
- package/lib/mjs/components/select/Select.d.ts +39 -16
- package/lib/mjs/components/select/Select.form.d.ts +3 -6
- package/lib/mjs/components/select/Select.form.js +0 -5
- package/lib/mjs/components/select/Select.js +16 -13
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +17 -2
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +3 -6
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +0 -5
- package/lib/mjs/components/selectboxes/SelectBoxes.js +9 -7
- package/lib/mjs/components/signature/Signature.d.ts +14 -1
- package/lib/mjs/components/signature/Signature.form.d.ts +3 -6
- package/lib/mjs/components/signature/Signature.form.js +0 -5
- package/lib/mjs/components/survey/Survey.d.ts +15 -3
- package/lib/mjs/components/survey/Survey.form.d.ts +3 -6
- package/lib/mjs/components/survey/Survey.form.js +0 -5
- package/lib/mjs/components/table/Table.d.ts +1 -2
- package/lib/mjs/components/table/Table.form.d.ts +3 -6
- package/lib/mjs/components/table/Table.form.js +0 -5
- package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/mjs/components/tabs/Tabs.form.d.ts +3 -6
- package/lib/mjs/components/tabs/Tabs.form.js +0 -5
- package/lib/mjs/components/tabs/Tabs.js +2 -1
- package/lib/mjs/components/tags/Tags.d.ts +14 -0
- package/lib/mjs/components/tags/Tags.form.d.ts +3 -6
- package/lib/mjs/components/tags/Tags.form.js +0 -5
- package/lib/mjs/components/textarea/TextArea.d.ts +9 -4
- package/lib/mjs/components/textarea/TextArea.form.d.ts +3 -6
- package/lib/mjs/components/textarea/TextArea.form.js +0 -5
- package/lib/mjs/components/textarea/TextArea.js +2 -2
- package/lib/mjs/components/textfield/TextField.d.ts +30 -14
- package/lib/mjs/components/textfield/TextField.form.d.ts +3 -6
- package/lib/mjs/components/textfield/TextField.form.js +0 -5
- package/lib/mjs/components/textfield/TextField.js +16 -13
- package/lib/mjs/components/time/Time.form.d.ts +3 -6
- package/lib/mjs/components/time/Time.form.js +0 -5
- package/lib/mjs/components/unknown/Unknown.form.d.ts +34 -5
- package/lib/mjs/components/unknown/Unknown.form.js +0 -4
- package/lib/mjs/components/url/Url.form.d.ts +3 -6
- package/lib/mjs/components/url/Url.form.js +0 -5
- package/lib/mjs/components/well/Well.form.d.ts +3 -6
- package/lib/mjs/components/well/Well.form.js +0 -5
- package/lib/mjs/formio.embed.d.ts +2 -1
- package/lib/mjs/formio.embed.js +99 -2
- package/lib/mjs/formio.form.d.ts +4 -11
- package/lib/mjs/formio.form.js +3 -10
- package/lib/mjs/providers/Providers.d.ts +5 -36
- package/lib/mjs/providers/Providers.js +0 -29
- package/lib/mjs/providers/address/AddressProvider.d.ts +12 -131
- package/lib/mjs/providers/address/AddressProvider.js +2 -88
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -48
- package/lib/mjs/providers/address/AzureAddressProvider.js +0 -37
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +4 -27
- package/lib/mjs/providers/address/CustomAddressProvider.js +0 -34
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +6 -130
- package/lib/mjs/providers/address/GoogleAddressProvider.js +0 -72
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +7 -32
- package/lib/mjs/providers/address/NominatimAddressProvider.js +0 -33
- package/lib/mjs/providers/address/index.d.ts +1 -3
- package/lib/mjs/providers/processor/fileProcessor.d.ts +1 -7
- package/lib/mjs/providers/processor/fileProcessor.js +0 -6
- package/lib/mjs/providers/storage/azure.d.ts +13 -6
- package/lib/mjs/providers/storage/azure.js +0 -5
- package/lib/mjs/providers/storage/base64.d.ts +6 -5
- package/lib/mjs/providers/storage/base64.js +0 -4
- package/lib/mjs/providers/storage/dropbox.d.ts +4 -6
- package/lib/mjs/providers/storage/dropbox.js +0 -5
- package/lib/mjs/providers/storage/googleDrive.d.ts +5 -7
- package/lib/mjs/providers/storage/googleDrive.js +0 -6
- package/lib/mjs/providers/storage/indexeddb.d.ts +7 -5
- package/lib/mjs/providers/storage/indexeddb.js +0 -4
- package/lib/mjs/providers/storage/s3.d.ts +20 -6
- package/lib/mjs/providers/storage/s3.js +0 -5
- package/lib/mjs/providers/storage/url.d.ts +7 -6
- package/lib/mjs/providers/storage/url.js +0 -10
- package/lib/mjs/providers/storage/util.d.ts +1 -24
- package/lib/mjs/providers/storage/util.js +0 -18
- package/lib/mjs/templates/Templates.d.ts +0 -1
- package/lib/mjs/translations/en.d.ts +1 -0
- package/lib/mjs/translations/en.js +1 -0
- package/lib/mjs/utils/Evaluator.d.ts +3 -6
- package/lib/mjs/utils/Evaluator.js +20 -9
- package/lib/mjs/utils/builder.d.ts +7 -9
- package/lib/mjs/utils/builder.js +5 -10
- package/lib/mjs/utils/calendarUtils.d.ts +13 -7
- package/lib/mjs/utils/calendarUtils.js +17 -10
- package/lib/mjs/utils/formUtils.d.ts +171 -43
- package/lib/mjs/utils/formUtils.js +554 -6
- package/lib/mjs/utils/utils.d.ts +216 -362
- package/lib/mjs/utils/utils.js +218 -325
- package/lib/mjs/widgets/CalendarWidget.d.ts +10 -9
- package/lib/mjs/widgets/CalendarWidget.js +11 -9
- package/package.json +22 -22
- package/embed.d.ts +0 -1
- package/form.d.ts +0 -1
- package/lib/cjs/InlineEmbed.d.ts +0 -7
- package/lib/cjs/InlineEmbed.js +0 -109
- package/lib/mjs/InlineEmbed.d.ts +0 -7
- package/lib/mjs/InlineEmbed.js +0 -105
- package/sdk.d.ts +0 -1
- package/utils.d.ts +0 -1
package/lib/mjs/utils/utils.d.ts
CHANGED
|
@@ -1,249 +1,213 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Evaluate a method.
|
|
3
|
-
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @
|
|
7
|
-
* @param {import('@formio/core').EvaluatorOptions} options - The evaluator options.
|
|
8
|
-
* @returns {*} - The result of the evaluation.
|
|
9
|
-
*/
|
|
10
|
-
export function evaluate(func: Function | string | object, args: any, ret: string, interpolate: boolean, options?: import('@formio/core').EvaluatorOptions): any;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a random compoennt ID.
|
|
13
|
-
* @returns {string} - A random component ID.
|
|
3
|
+
*
|
|
4
|
+
* @param func
|
|
5
|
+
* @param args
|
|
6
|
+
* @return {*}
|
|
14
7
|
*/
|
|
8
|
+
export function evaluate(func: any, args: any, ret: any, tokenize: any): any;
|
|
15
9
|
export function getRandomComponentId(): string;
|
|
16
10
|
/**
|
|
17
11
|
* Get a property value of an element.
|
|
18
|
-
*
|
|
19
|
-
* @param
|
|
20
|
-
* @
|
|
12
|
+
*
|
|
13
|
+
* @param style
|
|
14
|
+
* @param prop
|
|
15
|
+
* @return {number}
|
|
21
16
|
*/
|
|
22
|
-
export function getPropertyValue(style:
|
|
17
|
+
export function getPropertyValue(style: any, prop: any): number;
|
|
23
18
|
/**
|
|
24
19
|
* Get an elements bounding rectagle.
|
|
25
|
-
*
|
|
26
|
-
* @
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
*
|
|
21
|
+
* @param element
|
|
22
|
+
* @return {{x: string, y: string, width: string, height: string}}
|
|
23
|
+
*/
|
|
24
|
+
export function getElementRect(element: any): {
|
|
25
|
+
x: string;
|
|
26
|
+
y: string;
|
|
27
|
+
width: string;
|
|
28
|
+
height: string;
|
|
33
29
|
};
|
|
34
30
|
/**
|
|
35
31
|
* Determines the boolean value of a setting.
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
32
|
+
*
|
|
33
|
+
* @param value
|
|
34
|
+
* @return {boolean}
|
|
38
35
|
*/
|
|
39
|
-
export function boolValue(value:
|
|
36
|
+
export function boolValue(value: any): boolean;
|
|
40
37
|
/**
|
|
41
38
|
* Check to see if an ID is a mongoID.
|
|
42
|
-
* @param
|
|
43
|
-
* @
|
|
39
|
+
* @param text
|
|
40
|
+
* @return {Array|{index: number, input: string}|Boolean|*}
|
|
44
41
|
*/
|
|
45
|
-
export function isMongoId(text:
|
|
42
|
+
export function isMongoId(text: any): any[] | {
|
|
43
|
+
index: number;
|
|
44
|
+
input: string;
|
|
45
|
+
} | boolean | any;
|
|
46
46
|
/**
|
|
47
47
|
* Checks the calculated value for a provided component and data.
|
|
48
|
-
*
|
|
49
|
-
* @param {
|
|
50
|
-
*
|
|
48
|
+
*
|
|
49
|
+
* @param {Object} component
|
|
50
|
+
* The component to check for the calculated value.
|
|
51
|
+
* @param {Object} submission
|
|
52
|
+
* A submission object.
|
|
53
|
+
* @param data
|
|
54
|
+
* The full submission data.
|
|
51
55
|
*/
|
|
52
|
-
export function checkCalculated(component:
|
|
56
|
+
export function checkCalculated(component: Object, submission: Object, rowData: any): void;
|
|
53
57
|
/**
|
|
54
58
|
* Check if a simple conditional evaluates to true.
|
|
55
|
-
*
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @
|
|
61
|
-
|
|
62
|
-
export function checkSimpleConditional(component: import('@formio/core').Component, condition: import('@formio/core').SimpleConditional, row: any, data: any, instance: any): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Returns a components normalized value.
|
|
65
|
-
* @param {string} compPath - The full path to the component.
|
|
66
|
-
* @param {*} data - The data object to get the value from.
|
|
67
|
-
* @param {*} row - The contextual row data for the component.
|
|
68
|
-
* @returns {*} - The normalized value of the component.
|
|
59
|
+
*
|
|
60
|
+
* @param condition
|
|
61
|
+
* @param condition
|
|
62
|
+
* @param row
|
|
63
|
+
* @param data
|
|
64
|
+
* @param instance
|
|
65
|
+
* @returns {boolean}
|
|
69
66
|
*/
|
|
70
|
-
export function
|
|
67
|
+
export function checkSimpleConditional(component: any, condition: any, row: any, data: any, instance: any): boolean;
|
|
68
|
+
export function getComponentActualValue(compPath: any, data: any, row: any): any;
|
|
71
69
|
/**
|
|
72
70
|
* Check custom javascript conditional.
|
|
73
|
-
*
|
|
74
|
-
* @param
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
78
|
-
* @
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
*/
|
|
83
|
-
export function checkCustomConditional(component: import('@formio/core').Component, custom: string, row: any, data: any, form: import('@formio/core').Form, variable: string, onError: any, instance: any): any;
|
|
84
|
-
/**
|
|
85
|
-
* Check a component for JSON conditionals.
|
|
86
|
-
* @param {import('@formio/core').Component} component - The component
|
|
87
|
-
* @param {import('@formio/core').JSONConditional} json - The json conditional to check.
|
|
88
|
-
* @param {*} row - The contextual row data for the component.
|
|
89
|
-
* @param {*} data - The full submission data.
|
|
90
|
-
* @param {import('@formio/core').Form} form - The Form JSON of the form.
|
|
91
|
-
* @param {*} onError - Custom return value if there is an error.
|
|
92
|
-
* @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
|
|
93
|
-
*/
|
|
94
|
-
export function checkJsonConditional(component: import('@formio/core').Component, json: import('@formio/core').JSONConditional, row: any, data: any, form: import('@formio/core').Form, onError: any): boolean;
|
|
71
|
+
*
|
|
72
|
+
* @param component
|
|
73
|
+
* @param custom
|
|
74
|
+
* @param row
|
|
75
|
+
* @param data
|
|
76
|
+
* @returns {*}
|
|
77
|
+
*/
|
|
78
|
+
export function checkCustomConditional(component: any, custom: any, row: any, data: any, form: any, variable: any, onError: any, instance: any): any;
|
|
79
|
+
export function checkJsonConditional(component: any, json: any, row: any, data: any, form: any, onError: any): any;
|
|
95
80
|
/**
|
|
96
81
|
* Checks the conditions for a provided component and data.
|
|
97
|
-
*
|
|
98
|
-
* @param
|
|
99
|
-
*
|
|
100
|
-
* @param
|
|
101
|
-
*
|
|
102
|
-
* @
|
|
103
|
-
|
|
104
|
-
|
|
82
|
+
*
|
|
83
|
+
* @param component
|
|
84
|
+
* The component to check for the condition.
|
|
85
|
+
* @param row
|
|
86
|
+
* The data within a row
|
|
87
|
+
* @param data
|
|
88
|
+
* The full submission data.
|
|
89
|
+
*
|
|
90
|
+
* @returns {boolean}
|
|
91
|
+
*/
|
|
92
|
+
export function checkCondition(component: any, row: any, data: any, form: any, instance: any): boolean;
|
|
105
93
|
/**
|
|
106
94
|
* Test a trigger on a component.
|
|
107
|
-
*
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
110
|
-
* @param
|
|
111
|
-
* @param
|
|
112
|
-
* @
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export function
|
|
116
|
-
/**
|
|
117
|
-
* Sets a property on a component via an executed Logic action.
|
|
118
|
-
* @param {import('@formio/core').Component} component - The component to set the property on.
|
|
119
|
-
* @param {import('@formio/core').LogicAction} action - The action to perform on the component.
|
|
120
|
-
* @param {string} result - The name of the variable in the evaulation to use as the result.
|
|
121
|
-
* @param {import('@formio/core').DataObject} row - The contextual row data.
|
|
122
|
-
* @param {import('@formio/core').DataObject} data - The full submission data.
|
|
123
|
-
* @param {any} instance - The component instance.
|
|
124
|
-
* @returns {import('@formio/core').Component} - The modified component.
|
|
125
|
-
*/
|
|
126
|
-
export function setActionProperty(component: import('@formio/core').Component, action: any, result: string, row: import('@formio/core').DataObject, data: import('@formio/core').DataObject, instance: any): import('@formio/core').Component;
|
|
95
|
+
*
|
|
96
|
+
* @param component
|
|
97
|
+
* @param action
|
|
98
|
+
* @param data
|
|
99
|
+
* @param row
|
|
100
|
+
* @returns {mixed}
|
|
101
|
+
*/
|
|
102
|
+
export function checkTrigger(component: any, trigger: any, row: any, data: any, form: any, instance: any): mixed;
|
|
103
|
+
export function setActionProperty(component: any, action: any, result: any, row: any, data: any, instance: any): any;
|
|
127
104
|
/**
|
|
128
105
|
* Unescape HTML characters like <, >, & and etc.
|
|
129
|
-
* @param
|
|
130
|
-
* @returns {string}
|
|
106
|
+
* @param str
|
|
107
|
+
* @returns {string}
|
|
131
108
|
*/
|
|
132
|
-
export function unescapeHTML(str:
|
|
109
|
+
export function unescapeHTML(str: any): string;
|
|
133
110
|
/**
|
|
134
111
|
* Make HTML element from string
|
|
135
|
-
* @param
|
|
136
|
-
* @param
|
|
137
|
-
* @returns {HTMLElement}
|
|
112
|
+
* @param str
|
|
113
|
+
* @param selector
|
|
114
|
+
* @returns {HTMLElement}
|
|
138
115
|
*/
|
|
139
|
-
export function convertStringToHTMLElement(str:
|
|
116
|
+
export function convertStringToHTMLElement(str: any, selector: any): HTMLElement;
|
|
140
117
|
/**
|
|
141
118
|
* Make a filename guaranteed to be unique.
|
|
142
|
-
* @param
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
145
|
-
* @returns {string}
|
|
146
|
-
*/
|
|
147
|
-
export function uniqueName(name: string, template: string, evalContext: object): string;
|
|
148
|
-
/**
|
|
149
|
-
* Returns a GUID
|
|
150
|
-
* @returns {string} - A GUID.
|
|
119
|
+
* @param name
|
|
120
|
+
* @param template
|
|
121
|
+
* @param evalContext
|
|
122
|
+
* @returns {string}
|
|
151
123
|
*/
|
|
124
|
+
export function uniqueName(name: any, template: any, evalContext: any): string;
|
|
152
125
|
export function guid(): string;
|
|
153
126
|
/**
|
|
154
127
|
* Return a translated date setting.
|
|
155
|
-
*
|
|
156
|
-
* @
|
|
157
|
-
|
|
158
|
-
export function getDateSetting(date: string | Date): (null | Date);
|
|
159
|
-
/**
|
|
160
|
-
* Returns true if the date is a valid date. False otherwise.
|
|
161
|
-
* @param {Date|string} date - The date to check for validity.
|
|
162
|
-
* @returns {boolean} - TRUE if the date is valid; FALSE otherwise.
|
|
128
|
+
*
|
|
129
|
+
* @param date
|
|
130
|
+
* @return {(null|Date)}
|
|
163
131
|
*/
|
|
164
|
-
export function
|
|
132
|
+
export function getDateSetting(date: any): (null | Date);
|
|
133
|
+
export function isValidDate(date: any): any;
|
|
165
134
|
/**
|
|
166
135
|
* Get the current timezone string.
|
|
167
|
-
*
|
|
136
|
+
*
|
|
137
|
+
* @return {string}
|
|
168
138
|
*/
|
|
169
139
|
export function currentTimezone(): string;
|
|
170
140
|
/**
|
|
171
141
|
* Get an offset date provided a date object and timezone object.
|
|
172
|
-
*
|
|
173
|
-
* @param
|
|
174
|
-
* @
|
|
142
|
+
*
|
|
143
|
+
* @param date
|
|
144
|
+
* @param timezone
|
|
145
|
+
* @return {Date}
|
|
175
146
|
*/
|
|
176
|
-
export function offsetDate(date:
|
|
147
|
+
export function offsetDate(date: any, timezone: any): Date;
|
|
177
148
|
/**
|
|
178
149
|
* Returns if the zones are loaded.
|
|
179
|
-
*
|
|
150
|
+
*
|
|
151
|
+
* @return {boolean}
|
|
180
152
|
*/
|
|
181
153
|
export function zonesLoaded(): boolean;
|
|
182
154
|
/**
|
|
183
155
|
* Returns if we should load the zones.
|
|
184
|
-
*
|
|
185
|
-
* @
|
|
156
|
+
*
|
|
157
|
+
* @param timezone
|
|
158
|
+
* @return {boolean}
|
|
186
159
|
*/
|
|
187
|
-
export function shouldLoadZones(timezone:
|
|
160
|
+
export function shouldLoadZones(timezone: any): boolean;
|
|
188
161
|
/**
|
|
189
162
|
* Externally load the timezone data.
|
|
190
|
-
*
|
|
191
|
-
* @
|
|
192
|
-
* @returns {Promise<any> | *} - Resolves when the zones for this timezone are loaded.
|
|
163
|
+
*
|
|
164
|
+
* @return {Promise<any> | *}
|
|
193
165
|
*/
|
|
194
|
-
export function loadZones(url:
|
|
166
|
+
export function loadZones(url: any, timezone: any): Promise<any> | any;
|
|
195
167
|
/**
|
|
196
168
|
* Get the moment date object for translating dates with timezones.
|
|
197
|
-
*
|
|
198
|
-
* @param
|
|
199
|
-
* @param
|
|
200
|
-
* @
|
|
169
|
+
*
|
|
170
|
+
* @param value
|
|
171
|
+
* @param format
|
|
172
|
+
* @param timezone
|
|
173
|
+
* @return {*}
|
|
201
174
|
*/
|
|
202
|
-
export function momentDate(value:
|
|
175
|
+
export function momentDate(value: any, format: any, timezone: any): any;
|
|
203
176
|
/**
|
|
204
177
|
* Format a date provided a value, format, and timezone object.
|
|
205
|
-
*
|
|
206
|
-
* @param
|
|
207
|
-
* @param
|
|
208
|
-
* @param
|
|
209
|
-
* @
|
|
210
|
-
* @returns {string} - The formatted date.
|
|
178
|
+
*
|
|
179
|
+
* @param value
|
|
180
|
+
* @param format
|
|
181
|
+
* @param timezone
|
|
182
|
+
* @return {string}
|
|
211
183
|
*/
|
|
212
|
-
export function formatDate(timezonesUrl:
|
|
184
|
+
export function formatDate(timezonesUrl: any, value: any, format: any, timezone: any, flatPickrInputFormat: any): string;
|
|
213
185
|
/**
|
|
214
186
|
* Pass a format function to format within a timezone.
|
|
215
|
-
*
|
|
216
|
-
* @param
|
|
217
|
-
* @param
|
|
218
|
-
* @param
|
|
219
|
-
* @param
|
|
220
|
-
* @
|
|
221
|
-
*/
|
|
222
|
-
export function formatOffset(timezonesUrl:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
* @returns {object} - The local date format information.
|
|
227
|
-
*/
|
|
228
|
-
export function getLocaleDateFormatInfo(locale: Intl.LocalesArgument): object;
|
|
187
|
+
*
|
|
188
|
+
* @param formatFn
|
|
189
|
+
* @param date
|
|
190
|
+
* @param format
|
|
191
|
+
* @param timezone
|
|
192
|
+
* @return {string}
|
|
193
|
+
*/
|
|
194
|
+
export function formatOffset(timezonesUrl: any, formatFn: any, date: any, format: any, timezone: any): string;
|
|
195
|
+
export function getLocaleDateFormatInfo(locale: any): {
|
|
196
|
+
dayFirst: boolean;
|
|
197
|
+
};
|
|
229
198
|
/**
|
|
230
199
|
* Convert the format from the angular-datepicker module to flatpickr format.
|
|
231
|
-
* @param
|
|
232
|
-
* @
|
|
200
|
+
* @param format
|
|
201
|
+
* @return {string}
|
|
233
202
|
*/
|
|
234
|
-
export function convertFormatToFlatpickr(format:
|
|
203
|
+
export function convertFormatToFlatpickr(format: any): string;
|
|
235
204
|
/**
|
|
236
205
|
* Convert the format from the angular-datepicker module to moment format.
|
|
237
|
-
* @param
|
|
238
|
-
* @
|
|
239
|
-
*/
|
|
240
|
-
export function convertFormatToMoment(format: string): string;
|
|
241
|
-
/**
|
|
242
|
-
* Convert the format from the angular-datepicker module to mask format.
|
|
243
|
-
* @param {string} format - The format to convert.
|
|
244
|
-
* @returns {string} - The converted format.
|
|
206
|
+
* @param format
|
|
207
|
+
* @return {string}
|
|
245
208
|
*/
|
|
246
|
-
export function
|
|
209
|
+
export function convertFormatToMoment(format: any): string;
|
|
210
|
+
export function convertFormatToMask(format: any): any;
|
|
247
211
|
/**
|
|
248
212
|
* Returns an input mask that is compatible with the input mask library.
|
|
249
213
|
* @param {string} mask - The Form.io input mask.
|
|
@@ -251,259 +215,149 @@ export function convertFormatToMask(format: string): string;
|
|
|
251
215
|
* @returns {Array} - The input mask for the mask library.
|
|
252
216
|
*/
|
|
253
217
|
export function getInputMask(mask: string, placeholderChar: string): any[];
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
* @param {string} value - The value to unmask.
|
|
257
|
-
* @param {string} mask - The mask to use for unmasking.
|
|
258
|
-
* @param {string} placeholderChar - The placeholder character to use for unmasking.
|
|
259
|
-
* @returns {string} - The unmasked value.
|
|
260
|
-
*/
|
|
261
|
-
export function unmaskValue(value: string, mask: string, placeholderChar: string): string;
|
|
262
|
-
/**
|
|
263
|
-
* Returns true if the value matches the input mask format.
|
|
264
|
-
* @param {string} value - The value to check.
|
|
265
|
-
* @param {string} inputMask - The input mask to check against.
|
|
266
|
-
* @returns {boolean} - TRUE if the value matches the input mask; FALSE otherwise.
|
|
267
|
-
*/
|
|
268
|
-
export function matchInputMask(value: string, inputMask: string): boolean;
|
|
269
|
-
/**
|
|
270
|
-
* Returns the number separators (i.e. 1,000) for the provided language.
|
|
271
|
-
* @param {string} lang - The language code to get the number separators for.
|
|
272
|
-
* @returns {{delimiter: string, decimalSeparator: string}} - The number separators.
|
|
273
|
-
*/
|
|
218
|
+
export function unmaskValue(value: any, mask: any, placeholderChar: any): any;
|
|
219
|
+
export function matchInputMask(value: any, inputMask: any): boolean;
|
|
274
220
|
export function getNumberSeparators(lang?: string): {
|
|
275
221
|
delimiter: string;
|
|
276
222
|
decimalSeparator: string;
|
|
277
223
|
};
|
|
278
|
-
|
|
279
|
-
* Returns the number for the maximum amount of decimal places for a number.
|
|
280
|
-
* @param {import('@formio/core').Component} component - The component to check for decimal limits.
|
|
281
|
-
* @param {number} defaultLimit - The default limit to use if none is provided in the component.
|
|
282
|
-
* @returns {number} - The number of decimal places allowed.
|
|
283
|
-
*/
|
|
284
|
-
export function getNumberDecimalLimit(component: import('@formio/core').Component, defaultLimit: number): number;
|
|
285
|
-
/**
|
|
286
|
-
* Returns the currency affixes for a specific language.
|
|
287
|
-
* @param {object} arg0 - The arguments object.
|
|
288
|
-
* @param {string} arg0.currency - The currency code to get the affixes for.
|
|
289
|
-
* @param {number} arg0.decimalLimit - The number of decimal places to use.
|
|
290
|
-
* @param {string} arg0.decimalSeparator - The decimal separator to use.
|
|
291
|
-
* @param {string} arg0.lang - The language code to use.
|
|
292
|
-
* @returns {{prefix: string, suffix: string}} - The currency affixes.
|
|
293
|
-
*/
|
|
224
|
+
export function getNumberDecimalLimit(component: any, defaultLimit: any): any;
|
|
294
225
|
export function getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, lang, }: {
|
|
295
|
-
currency:
|
|
296
|
-
decimalLimit:
|
|
297
|
-
decimalSeparator:
|
|
298
|
-
lang:
|
|
226
|
+
currency: any;
|
|
227
|
+
decimalLimit: any;
|
|
228
|
+
decimalSeparator: any;
|
|
229
|
+
lang: any;
|
|
299
230
|
}): {
|
|
300
231
|
prefix: string;
|
|
301
232
|
suffix: string;
|
|
302
233
|
};
|
|
303
234
|
/**
|
|
304
235
|
* Fetch the field data provided a component.
|
|
305
|
-
*
|
|
306
|
-
* @param
|
|
307
|
-
* @
|
|
236
|
+
*
|
|
237
|
+
* @param data
|
|
238
|
+
* @param component
|
|
239
|
+
* @return {*}
|
|
308
240
|
*/
|
|
309
|
-
export function fieldData(data:
|
|
241
|
+
export function fieldData(data: any, component: any): any;
|
|
310
242
|
/**
|
|
311
243
|
* Delays function execution with possibility to execute function synchronously or cancel it.
|
|
312
|
-
*
|
|
313
|
-
* @param
|
|
314
|
-
* @param
|
|
315
|
-
* @
|
|
244
|
+
*
|
|
245
|
+
* @param fn Function to delay
|
|
246
|
+
* @param delay Delay time
|
|
247
|
+
* @return {*}
|
|
316
248
|
*/
|
|
317
|
-
export function delay(fn:
|
|
249
|
+
export function delay(fn: any, delay?: number, ...args: any[]): any;
|
|
318
250
|
/**
|
|
319
251
|
* Iterate the given key to make it unique.
|
|
320
|
-
*
|
|
252
|
+
*
|
|
253
|
+
* @param {String} key
|
|
321
254
|
* Modify the component key to be unique.
|
|
322
|
-
*
|
|
255
|
+
*
|
|
256
|
+
* @returns {String}
|
|
323
257
|
* The new component key.
|
|
324
258
|
*/
|
|
325
259
|
export function iterateKey(key: string): string;
|
|
326
260
|
/**
|
|
327
261
|
* Determines a unique key within a map provided the base key.
|
|
328
|
-
*
|
|
329
|
-
* @param
|
|
330
|
-
* @
|
|
262
|
+
*
|
|
263
|
+
* @param map
|
|
264
|
+
* @param base
|
|
265
|
+
* @return {*}
|
|
331
266
|
*/
|
|
332
|
-
export function uniqueKey(map:
|
|
267
|
+
export function uniqueKey(map: any, base: any): any;
|
|
333
268
|
/**
|
|
334
269
|
* Determines the major version number of bootstrap.
|
|
335
|
-
*
|
|
336
|
-
* @
|
|
337
|
-
* @returns {number} - The bootstrap version.
|
|
270
|
+
*
|
|
271
|
+
* @return {number}
|
|
338
272
|
*/
|
|
339
|
-
export function bootstrapVersion(options:
|
|
340
|
-
bootstrap: string;
|
|
341
|
-
}): number;
|
|
273
|
+
export function bootstrapVersion(options: any): number;
|
|
342
274
|
/**
|
|
343
275
|
* Retrun provided argument.
|
|
344
276
|
* If argument is a function, returns the result of a function call.
|
|
345
|
-
* @param {
|
|
346
|
-
*
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
* @returns {Functions[]} -- [get, toggle];
|
|
354
|
-
*/
|
|
355
|
-
export function withSwitch(a: any, b: any): Functions[];
|
|
356
|
-
/**
|
|
357
|
-
* Create a function that will call the provided function only the provided limit.
|
|
358
|
-
* @param {Function} callback - The callback to call.
|
|
359
|
-
* @param {object} options - The options to use.
|
|
360
|
-
* @param {number} options.limit - The limit to call the callback.
|
|
361
|
-
* @param {number} options.delay - The delay to wait before resetting the call count.
|
|
362
|
-
* @returns {Function} - The function that will call the callback only the provided limit.
|
|
363
|
-
*/
|
|
364
|
-
export function observeOverload(callback: Function, options?: {
|
|
365
|
-
limit: number;
|
|
366
|
-
delay: number;
|
|
367
|
-
}): Function;
|
|
368
|
-
/**
|
|
369
|
-
* Returns the components that are provided within an evaluation context.
|
|
370
|
-
* @param {any} context - The evaluation context to get the components from.
|
|
371
|
-
* @param {boolean} excludeNested - Exclude nested components.
|
|
372
|
-
* @param {Array<string>} excludedTypes - The types of components to exclude.
|
|
373
|
-
* @returns {Array} - The components within the evaluation context.
|
|
374
|
-
*/
|
|
375
|
-
export function getContextComponents(context: any, excludeNested: boolean, excludedTypes?: Array<string>): any[];
|
|
376
|
-
/**
|
|
377
|
-
* Returns the button components that are within an evaluation context.
|
|
378
|
-
* @param {any} context - The evaluation context to get the components from.
|
|
379
|
-
* @returns {Array} - The button components within the evaluation context.
|
|
380
|
-
*/
|
|
277
|
+
* @param {*} e;
|
|
278
|
+
*
|
|
279
|
+
* @return {*}
|
|
280
|
+
*/
|
|
281
|
+
export function unfold(e: any): any;
|
|
282
|
+
export function withSwitch(a: any, b: any): (() => any)[];
|
|
283
|
+
export function observeOverload(callback: any, options?: {}): () => any;
|
|
284
|
+
export function getContextComponents(context: any, excludeNested: any, excludedTypes?: any[]): any[];
|
|
381
285
|
export function getContextButtons(context: any): any[];
|
|
382
286
|
/**
|
|
383
287
|
* Translates text values in html template.
|
|
384
|
-
*
|
|
385
|
-
* @param {
|
|
386
|
-
* @
|
|
288
|
+
*
|
|
289
|
+
* @param {String} template
|
|
290
|
+
* @param {Function} translate
|
|
291
|
+
*
|
|
292
|
+
* @returns {String}
|
|
293
|
+
* Html template with translated values.
|
|
387
294
|
*/
|
|
388
295
|
export function translateHTMLTemplate(template: string, translate: Function): string;
|
|
389
296
|
/**
|
|
390
297
|
* Sanitize an html string.
|
|
391
|
-
*
|
|
392
|
-
* @param
|
|
393
|
-
* @returns {
|
|
298
|
+
*
|
|
299
|
+
* @param string
|
|
300
|
+
* @returns {*}
|
|
394
301
|
*/
|
|
395
|
-
export function sanitize(string:
|
|
302
|
+
export function sanitize(string: any, options: any): any;
|
|
396
303
|
/**
|
|
397
304
|
* Fast cloneDeep for JSON objects only.
|
|
398
|
-
* @param {any} obj - The object to perform a fast clone deep against.
|
|
399
|
-
* @returns {any} - The cloned object.
|
|
400
305
|
*/
|
|
401
306
|
export function fastCloneDeep(obj: any): any;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
* @param {import('@formio/core').Component} componentJson - The JSON of a component.
|
|
405
|
-
* @returns {bool} - TRUE if the component is an input component; FALSE otherwise.
|
|
406
|
-
*/
|
|
407
|
-
export function isInputComponent(componentJson: import('@formio/core').Component): bool;
|
|
408
|
-
/**
|
|
409
|
-
* Takes a component path, and returns a component path array.
|
|
410
|
-
* @param {string} pathStr - The path string to convert to an array.
|
|
411
|
-
* @returns {Arryay<number>} - The array of paths.
|
|
412
|
-
*/
|
|
413
|
-
export function getArrayFromComponentPath(pathStr: string): Arryay<number>;
|
|
414
|
-
/**
|
|
415
|
-
* Returns true if the component is a child of the parent.
|
|
416
|
-
* @param {any} child - The child component to check.
|
|
417
|
-
* @param {any} parent - The parent component to check.
|
|
418
|
-
* @returns {boolean} - TRUE if the child is a child of the parent; FALSE otherwise.
|
|
419
|
-
*/
|
|
307
|
+
export function isInputComponent(componentJson: any): any;
|
|
308
|
+
export function getArrayFromComponentPath(pathStr: any): any;
|
|
420
309
|
export function isChildOf(child: any, parent: any): boolean;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
* @param {Array<number>} path - The path array to convert to a string.
|
|
424
|
-
* @returns {string} - The string version of the path.
|
|
425
|
-
*/
|
|
426
|
-
export function getStringFromComponentPath(path: Array<number>): string;
|
|
427
|
-
/**
|
|
428
|
-
* Takes a number and rounds it to the provided precision amount.
|
|
429
|
-
* @param {number} number - The number to round.
|
|
430
|
-
* @param {number} precision - The precision to round the number to.
|
|
431
|
-
* @returns {string} - The rounded number.
|
|
432
|
-
*/
|
|
433
|
-
export function round(number: number, precision: number): string;
|
|
310
|
+
export function getStringFromComponentPath(path: any): any;
|
|
311
|
+
export function round(number: any, precision: any): any;
|
|
434
312
|
/**
|
|
435
313
|
* Check for Internet Explorer browser version
|
|
436
|
-
*
|
|
314
|
+
*
|
|
315
|
+
* @return {(number|null)}
|
|
437
316
|
*/
|
|
438
317
|
export function getIEBrowserVersion(): (number | null);
|
|
439
318
|
/**
|
|
440
319
|
* Get browser name and version (modified from 'jquery-browser-plugin')
|
|
441
|
-
*
|
|
320
|
+
*
|
|
321
|
+
* @return {Object} -- {{browser name, version, isWebkit?}}
|
|
442
322
|
* Possible browser names: chrome, safari, ie, edge, opera, mozilla, yabrowser
|
|
443
323
|
*/
|
|
444
|
-
export function getBrowserInfo():
|
|
445
|
-
/**
|
|
446
|
-
* Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.
|
|
447
|
-
* @param {string} path - The path to remove the indicies from.
|
|
448
|
-
* @returns {string} - The path without the indicies.
|
|
449
|
-
*/
|
|
324
|
+
export function getBrowserInfo(): Object;
|
|
450
325
|
export function getComponentPathWithoutIndicies(path?: string): string;
|
|
451
326
|
/**
|
|
452
327
|
* Returns a path to the component which based on its schema
|
|
453
|
-
* @param {
|
|
454
|
-
* @param {string} path - Path to the component
|
|
455
|
-
* @returns {string} - Path to the component
|
|
328
|
+
* @param {*} component is a component's schema containing link to its parent's schema in the 'parent' property
|
|
456
329
|
*/
|
|
457
|
-
export function getComponentPath(component:
|
|
330
|
+
export function getComponentPath(component: any, path?: string): string;
|
|
458
331
|
/**
|
|
459
332
|
* Returns a parent component of the passed component instance skipping all the Layout components
|
|
460
|
-
* @param {
|
|
461
|
-
* @
|
|
333
|
+
* @param {*} componentInstance
|
|
334
|
+
* @return {(Component|undefined)}
|
|
462
335
|
*/
|
|
463
|
-
export function getDataParentComponent(componentInstance:
|
|
336
|
+
export function getDataParentComponent(componentInstance: any): (Component | undefined);
|
|
464
337
|
/**
|
|
465
338
|
* Returns whether the value is a promise
|
|
466
|
-
* @param
|
|
467
|
-
* @
|
|
339
|
+
* @param value
|
|
340
|
+
* @return {boolean}
|
|
468
341
|
*/
|
|
469
342
|
export function isPromise(value: any): boolean;
|
|
470
343
|
/**
|
|
471
344
|
* Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
|
|
472
345
|
* changes by itself, e.g. EditGrid)
|
|
473
|
-
* @param
|
|
474
|
-
* @param
|
|
475
|
-
* @returns {boolean|*}
|
|
476
|
-
*/
|
|
477
|
-
export function isInsideScopingComponent(componentInstance:
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
*/
|
|
483
|
-
export function getFocusableElements(element: HTMLElement): NodeList<HTMLElement>;
|
|
484
|
-
/**
|
|
485
|
-
* Returns the saved types for the component
|
|
486
|
-
* @param {import('@formio/core').Component} fullSchema - The component schema
|
|
487
|
-
* @returns {Array<string>|null} - The saved types for the component
|
|
488
|
-
*/
|
|
489
|
-
export function getComponentSavedTypes(fullSchema: import('@formio/core').Component): Array<string> | null;
|
|
490
|
-
/**
|
|
491
|
-
* Returns the template keys inside the template code.
|
|
492
|
-
* @param {string} template - The template to get the keys from.
|
|
493
|
-
* @returns {Array<string>} - The keys inside the template.
|
|
494
|
-
*/
|
|
495
|
-
export function getItemTemplateKeys(template: string): Array<string>;
|
|
496
|
-
/**
|
|
497
|
-
* Returns if the component is a select resource with an object for its value.
|
|
498
|
-
* @param {import('@formio/core').Component} comp - The component to check.
|
|
499
|
-
* @returns {boolean} - TRUE if the component is a select resource with an object for its value; FALSE otherwise.
|
|
500
|
-
*/
|
|
501
|
-
export function isSelectResourceWithObjectValue(comp?: import('@formio/core').Component): boolean;
|
|
346
|
+
* @param componentInstance
|
|
347
|
+
* @param firstPass
|
|
348
|
+
* @returns {boolean|boolean|*}
|
|
349
|
+
*/
|
|
350
|
+
export function isInsideScopingComponent(componentInstance: any, firstPass?: boolean): boolean | boolean | any;
|
|
351
|
+
export function getFocusableElements(element: any): any;
|
|
352
|
+
export function getComponentSavedTypes(fullSchema: any): string[] | null;
|
|
353
|
+
export function getItemTemplateKeys(template: any): any[];
|
|
354
|
+
export function isSelectResourceWithObjectValue(comp?: {}): any;
|
|
502
355
|
export * from "./formUtils";
|
|
503
356
|
/**
|
|
504
357
|
* Map values through unfold and return first non-nil value.
|
|
505
|
-
* @param {Array<T>} collection
|
|
506
|
-
*
|
|
358
|
+
* @param {Array<T>} collection;
|
|
359
|
+
*
|
|
360
|
+
* @return {T}
|
|
507
361
|
*/
|
|
508
362
|
export const firstNonNil: any;
|
|
509
363
|
export namespace componentValueTypes {
|
|
@@ -515,9 +369,9 @@ export namespace componentValueTypes {
|
|
|
515
369
|
let date: string;
|
|
516
370
|
let any: string;
|
|
517
371
|
}
|
|
518
|
-
export function interpolateErrors(component:
|
|
372
|
+
export function interpolateErrors(component: any, errors: FieldError[], interpolateFn: any): [];
|
|
519
373
|
import jsonLogic from 'json-logic-js';
|
|
520
374
|
import ConditionOperators from './conditionOperators';
|
|
521
|
-
import
|
|
522
|
-
export const interpolate:
|
|
375
|
+
import Evaluator from './Evaluator';
|
|
376
|
+
export const interpolate: (rawTemplate: any, data: any, _options: any) => any;
|
|
523
377
|
export { jsonLogic, ConditionOperators, Evaluator, _ };
|