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