@formio/js 5.0.0-dev.5610.da13e39 → 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
|
@@ -6,34 +6,36 @@ declare class Component extends Element {
|
|
|
6
6
|
static schema(...sources: any[]): any;
|
|
7
7
|
/**
|
|
8
8
|
* Return the simple condition settings as part of the component.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
|
+
* @return {Object}
|
|
11
|
+
*
|
|
10
12
|
*/
|
|
11
|
-
static get conditionOperatorsSettings():
|
|
13
|
+
static get conditionOperatorsSettings(): Object;
|
|
12
14
|
/**
|
|
13
15
|
* Return the array of possible types of component value absed on its schema.
|
|
16
|
+
*
|
|
14
17
|
* @param schema
|
|
15
|
-
* @
|
|
18
|
+
* @return {Array}
|
|
19
|
+
*
|
|
16
20
|
*/
|
|
17
21
|
static savedValueTypes(schema: any): any[];
|
|
18
22
|
/**
|
|
19
23
|
* Provides a table view for this component. Override if you wish to do something different than using getView
|
|
20
24
|
* method of your instance.
|
|
25
|
+
*
|
|
21
26
|
* @param value
|
|
22
27
|
* @param options
|
|
23
28
|
*/
|
|
24
29
|
static tableView(value: any, options: any): void;
|
|
25
|
-
|
|
26
|
-
* Returns the component condition operator settings if available.
|
|
27
|
-
* @returns {object} - The component condition operator settings.
|
|
28
|
-
*/
|
|
29
|
-
static get serverConditionSettings(): object;
|
|
30
|
+
static get serverConditionSettings(): Object;
|
|
30
31
|
/**
|
|
31
32
|
* Initialize a new Component.
|
|
32
|
-
*
|
|
33
|
-
* @param {
|
|
34
|
-
* @param {
|
|
33
|
+
*
|
|
34
|
+
* @param {Object} component - The component JSON you wish to initialize.
|
|
35
|
+
* @param {Object} options - The options for this component.
|
|
36
|
+
* @param {Object} data - The global data submission object this component will belong.
|
|
35
37
|
*/
|
|
36
|
-
constructor(component:
|
|
38
|
+
constructor(component: Object, options: Object, data: Object);
|
|
37
39
|
id: any;
|
|
38
40
|
/**
|
|
39
41
|
* Determines if this component has a condition assigned to it.
|
|
@@ -47,6 +49,7 @@ declare class Component extends Element {
|
|
|
47
49
|
refs: {};
|
|
48
50
|
/**
|
|
49
51
|
* The data path to this specific component instance.
|
|
52
|
+
*
|
|
50
53
|
* @type {string}
|
|
51
54
|
*/
|
|
52
55
|
path: string;
|
|
@@ -90,27 +93,32 @@ declare class Component extends Element {
|
|
|
90
93
|
row: number;
|
|
91
94
|
/**
|
|
92
95
|
* Points to a flat map of child components (if applicable).
|
|
93
|
-
*
|
|
96
|
+
*
|
|
97
|
+
* @type {Object}
|
|
94
98
|
*/
|
|
95
|
-
childComponentsMap:
|
|
99
|
+
childComponentsMap: Object;
|
|
96
100
|
/**
|
|
97
101
|
* Determines if this component is disabled, or not.
|
|
102
|
+
*
|
|
98
103
|
* @type {boolean}
|
|
99
104
|
*/
|
|
100
105
|
_disabled: boolean;
|
|
101
106
|
/**
|
|
102
107
|
* Points to the root component, usually the FormComponent.
|
|
108
|
+
*
|
|
103
109
|
* @type {Component}
|
|
104
110
|
*/
|
|
105
111
|
root: Component;
|
|
106
112
|
localRoot: any;
|
|
107
113
|
/**
|
|
108
114
|
* If this input has been input and provided value.
|
|
115
|
+
*
|
|
109
116
|
* @type {boolean}
|
|
110
117
|
*/
|
|
111
118
|
pristine: boolean;
|
|
112
119
|
/**
|
|
113
120
|
* Points to the parent component.
|
|
121
|
+
*
|
|
114
122
|
* @type {Component}
|
|
115
123
|
*/
|
|
116
124
|
parent: Component;
|
|
@@ -128,6 +136,7 @@ declare class Component extends Element {
|
|
|
128
136
|
triggerChange: (...args: any[]) => any;
|
|
129
137
|
/**
|
|
130
138
|
* Used to trigger a redraw event within this component.
|
|
139
|
+
*
|
|
131
140
|
* @type {Function}
|
|
132
141
|
*/
|
|
133
142
|
triggerRedraw: Function;
|
|
@@ -145,12 +154,13 @@ declare class Component extends Element {
|
|
|
145
154
|
type: any;
|
|
146
155
|
/**
|
|
147
156
|
* Sets the static value of this component.
|
|
148
|
-
*
|
|
157
|
+
*
|
|
158
|
+
* @param value
|
|
149
159
|
*/
|
|
150
160
|
set dataValue(value: any);
|
|
151
161
|
/**
|
|
152
162
|
* Get the static value of this component.
|
|
153
|
-
* @
|
|
163
|
+
* @return {*}
|
|
154
164
|
*/
|
|
155
165
|
get dataValue(): any;
|
|
156
166
|
/**
|
|
@@ -174,12 +184,13 @@ declare class Component extends Element {
|
|
|
174
184
|
init(): void;
|
|
175
185
|
/**
|
|
176
186
|
* Disable this component.
|
|
177
|
-
*
|
|
187
|
+
*
|
|
188
|
+
* @param {boolean} disabled
|
|
178
189
|
*/
|
|
179
190
|
set disabled(disabled: boolean);
|
|
180
191
|
/**
|
|
181
192
|
* Return if the component is disabled.
|
|
182
|
-
* @
|
|
193
|
+
* @return {boolean}
|
|
183
194
|
*/
|
|
184
195
|
get disabled(): boolean;
|
|
185
196
|
afterComponentAssign(): void;
|
|
@@ -198,13 +209,13 @@ declare class Component extends Element {
|
|
|
198
209
|
shouldForceHide(component: any): any;
|
|
199
210
|
shouldForceShow(component: any): any;
|
|
200
211
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @param {boolean}
|
|
212
|
+
*
|
|
213
|
+
* @param value {boolean}
|
|
203
214
|
*/
|
|
204
215
|
set visible(value: boolean);
|
|
205
216
|
/**
|
|
206
|
-
*
|
|
207
|
-
* @returns {boolean}
|
|
217
|
+
*
|
|
218
|
+
* @returns {boolean}
|
|
208
219
|
*/
|
|
209
220
|
get visible(): boolean;
|
|
210
221
|
set currentForm(instance: any);
|
|
@@ -228,30 +239,26 @@ declare class Component extends Element {
|
|
|
228
239
|
};
|
|
229
240
|
/**
|
|
230
241
|
* Returns only the schema that is different from the default.
|
|
231
|
-
*
|
|
232
|
-
* @param
|
|
233
|
-
* @param
|
|
234
|
-
* @returns {object} - The minified json schema for this component.
|
|
242
|
+
*
|
|
243
|
+
* @param schema
|
|
244
|
+
* @param defaultSchema
|
|
235
245
|
*/
|
|
236
|
-
getModifiedSchema(schema:
|
|
246
|
+
getModifiedSchema(schema: any, defaultSchema: any, recursion: any): any;
|
|
237
247
|
/**
|
|
238
248
|
* Returns the JSON schema for this component.
|
|
239
|
-
* @returns {object} - The JSON schema for this component.
|
|
240
249
|
*/
|
|
241
|
-
get schema():
|
|
250
|
+
get schema(): any;
|
|
242
251
|
/**
|
|
243
252
|
* Returns true if component is inside DataGrid
|
|
244
|
-
* @returns {boolean} - True if component is inside DataGrid
|
|
245
253
|
*/
|
|
246
|
-
get isInDataGrid():
|
|
254
|
+
get isInDataGrid(): any;
|
|
247
255
|
/**
|
|
248
256
|
* Translate a text using the i18n system.
|
|
257
|
+
*
|
|
249
258
|
* @param {string} text - The i18n identifier.
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {...any} args - Additional arguments to pass to the translation library.
|
|
252
|
-
* @returns {string} - The translated text.
|
|
259
|
+
* @param {Object} params - The i18n parameters to use for translation.
|
|
253
260
|
*/
|
|
254
|
-
t(text: string, params?:
|
|
261
|
+
t(text: string, params?: Object, ...args: any[]): any;
|
|
255
262
|
labelIsHidden(): any;
|
|
256
263
|
transform(type: any, value: any): any;
|
|
257
264
|
getTemplate(names: any, modes: any): {
|
|
@@ -265,72 +272,53 @@ declare class Component extends Element {
|
|
|
265
272
|
referenceAttributeName: any;
|
|
266
273
|
} | null;
|
|
267
274
|
checkTemplateMode(templatesByName: any, modes: any): any;
|
|
268
|
-
getFormattedAttribute(attr: any):
|
|
269
|
-
getFormattedTooltip(tooltipValue: any):
|
|
275
|
+
getFormattedAttribute(attr: any): any;
|
|
276
|
+
getFormattedTooltip(tooltipValue: any): any;
|
|
270
277
|
isHtmlRenderMode(): boolean;
|
|
271
|
-
renderTemplate(name: any, data
|
|
278
|
+
renderTemplate(name: any, data: {} | undefined, modeOption: any): any;
|
|
272
279
|
/**
|
|
273
280
|
* Sanitize an html string.
|
|
274
|
-
*
|
|
275
|
-
* @param
|
|
276
|
-
* @
|
|
277
|
-
* @returns {*} - The sanitized html string.
|
|
281
|
+
*
|
|
282
|
+
* @param string
|
|
283
|
+
* @returns {*}
|
|
278
284
|
*/
|
|
279
|
-
sanitize(dirty:
|
|
285
|
+
sanitize(dirty: any, forceSanitize: any, options: any): any;
|
|
280
286
|
/**
|
|
281
287
|
* Render a template string into html.
|
|
282
|
-
*
|
|
283
|
-
* @param
|
|
284
|
-
* @
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
* Allows for modification of the component value prior to submission.
|
|
289
|
-
* @param {*} input - The input to be modified.
|
|
290
|
-
* @returns {*} - The modified input mapping for the extended component.
|
|
288
|
+
*
|
|
289
|
+
* @param template
|
|
290
|
+
* @param data
|
|
291
|
+
* @param actions
|
|
292
|
+
*
|
|
293
|
+
* @return {HTMLElement|String} - The created element or an empty string if template is not specified.
|
|
291
294
|
*/
|
|
295
|
+
renderString(template: any, data: any): HTMLElement | string;
|
|
292
296
|
performInputMapping(input: any): any;
|
|
293
|
-
/**
|
|
294
|
-
* Returns the component "widget" if one is available.
|
|
295
|
-
* @returns {Widget|null} - The widget instance. null if not available.
|
|
296
|
-
*/
|
|
297
297
|
get widget(): any;
|
|
298
|
+
getBrowserLanguage(): any;
|
|
298
299
|
/**
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Called before a next and previous page is triggered allowing the components to perform special functions.
|
|
305
|
-
* @returns {Promise<boolean>} - A promise to resolve when the component is no longer blocking the next/previous page navigation.
|
|
306
|
-
*/
|
|
307
|
-
beforePage(): Promise<boolean>;
|
|
308
|
-
/**
|
|
309
|
-
* Called before the next page is triggered allowing the components to hook into the page navigation and perform tasks.
|
|
310
|
-
* @returns {Promise<boolean>} - A promise to resolve when the component is no longer blocking the next page navigation.
|
|
300
|
+
* Called before a next and previous page is triggered allowing the components
|
|
301
|
+
* to perform special functions.
|
|
302
|
+
*
|
|
303
|
+
* @return {*}
|
|
311
304
|
*/
|
|
312
|
-
|
|
305
|
+
beforePage(): any;
|
|
306
|
+
beforeNext(): any;
|
|
313
307
|
/**
|
|
314
|
-
* Called before a submission is triggered allowing the components
|
|
315
|
-
*
|
|
308
|
+
* Called before a submission is triggered allowing the components
|
|
309
|
+
* to perform special async functions.
|
|
310
|
+
*
|
|
311
|
+
* @return {*}
|
|
316
312
|
*/
|
|
317
|
-
beforeSubmit():
|
|
313
|
+
beforeSubmit(): any;
|
|
318
314
|
/**
|
|
319
315
|
* Return the submission timezone.
|
|
320
|
-
*
|
|
321
|
-
|
|
322
|
-
get submissionTimezone(): string;
|
|
323
|
-
/**
|
|
324
|
-
* Return the current timezone.
|
|
325
|
-
* @returns {string} - The current timezone.
|
|
326
|
-
*/
|
|
327
|
-
get timezone(): string;
|
|
328
|
-
/**
|
|
329
|
-
* Return the current timezone.
|
|
330
|
-
* @param {object} settings - Settings to control how the timezone should be returned.
|
|
331
|
-
* @returns {string} - The current timezone.
|
|
316
|
+
*
|
|
317
|
+
* @return {*}
|
|
332
318
|
*/
|
|
333
|
-
|
|
319
|
+
get submissionTimezone(): any;
|
|
320
|
+
get timezone(): any;
|
|
321
|
+
getTimezone(settings: any): any;
|
|
334
322
|
/**
|
|
335
323
|
*
|
|
336
324
|
* @param {HTMLElement} element - The containing DOM element to query for the ref value.
|
|
@@ -338,92 +326,28 @@ declare class Component extends Element {
|
|
|
338
326
|
* @param {string} [referenceAttributeName] - The attribute name to use for the reference.
|
|
339
327
|
*/
|
|
340
328
|
loadRefs(element: HTMLElement, refs: object, referenceAttributeName?: string | undefined): void;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
*/
|
|
345
|
-
setOpenModalElement(template?: string): void;
|
|
346
|
-
/**
|
|
347
|
-
* Returns the modal preview template.
|
|
348
|
-
* @returns {string} - The modal preview template.
|
|
349
|
-
*/
|
|
350
|
-
getModalPreviewTemplate(): string;
|
|
351
|
-
/**
|
|
352
|
-
* Performs a complete build of a component, which empties, renders, sets the content in the DOM, and then finally attaches events.
|
|
353
|
-
* @param {HTMLElement} element - The element to attach this component to.
|
|
354
|
-
* @returns {Promise<void>} - A promise that resolves when the component has been built.
|
|
355
|
-
*/
|
|
356
|
-
build(element: HTMLElement): Promise<void>;
|
|
329
|
+
setOpenModalElement(template: any): void;
|
|
330
|
+
getModalPreviewTemplate(): any;
|
|
331
|
+
build(element: any): Promise<void>;
|
|
357
332
|
get hasModalSaveButton(): boolean;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
* @returns {string} - The rendered HTML string of a component.
|
|
363
|
-
*/
|
|
364
|
-
render(children?: string, topLevel?: boolean): string;
|
|
365
|
-
/**
|
|
366
|
-
* Attaches all the tooltips provided the refs object.
|
|
367
|
-
* @param {object} toolTipsRefs - The refs for the tooltips within your template.
|
|
368
|
-
* @returns {void}
|
|
369
|
-
*/
|
|
370
|
-
attachTooltips(toolTipsRefs: object): void;
|
|
371
|
-
/**
|
|
372
|
-
* Create a new component modal for this component.
|
|
373
|
-
* @param {HTMLElement} element - The element to attach the modal to.
|
|
374
|
-
* @param {boolean} modalShouldBeOpened - TRUE if the modal should open immediately.
|
|
375
|
-
* @param {any} currentValue - The current value of the component.
|
|
376
|
-
* @returns {ComponentModal} - The created component modal.
|
|
377
|
-
*/
|
|
378
|
-
createComponentModal(element: HTMLElement, modalShouldBeOpened: boolean, currentValue: any): ComponentModal;
|
|
379
|
-
/**
|
|
380
|
-
* Attaches all event listensers for this component to the DOM elements that were rendered.
|
|
381
|
-
* @param {HTMLElement} element - The element to attach the listeners to.
|
|
382
|
-
* @returns {Promise<void>} - Resolves when the component is done attaching to the DOM.
|
|
383
|
-
*/
|
|
384
|
-
attach(element: HTMLElement): Promise<void>;
|
|
333
|
+
render(children?: string, topLevel?: boolean): any;
|
|
334
|
+
attachTooltips(toolTipsRefs: any): void;
|
|
335
|
+
createComponentModal(element: any, modalShouldBeOpened: any, currentValue: any): ComponentModal;
|
|
336
|
+
attach(element: any): Promise<void>;
|
|
385
337
|
componentModal: any;
|
|
386
|
-
/**
|
|
387
|
-
* Restors the "focus" on a component after a redraw event has occured.
|
|
388
|
-
*/
|
|
389
338
|
restoreFocus(): void;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
* @param {HTMLElement} element - The element to attach the keyboard shortcut to.
|
|
393
|
-
* @param {string} shortcut - The keyboard shortcut to add.
|
|
394
|
-
* @returns {void}
|
|
395
|
-
*/
|
|
396
|
-
addShortcut(element: HTMLElement, shortcut: string): void;
|
|
397
|
-
/**
|
|
398
|
-
* Removes a keyboard shortcut from this component.
|
|
399
|
-
* @param {HTMLElement} element - The element to remove the keyboard shortcut from.
|
|
400
|
-
* @param {string} shortcut - The keyboard shortcut to remove.
|
|
401
|
-
* @returns {void}
|
|
402
|
-
*/
|
|
403
|
-
removeShortcut(element: HTMLElement, shortcut: string): void;
|
|
339
|
+
addShortcut(element: any, shortcut: any): void;
|
|
340
|
+
removeShortcut(element: any, shortcut: any): void;
|
|
404
341
|
/**
|
|
405
342
|
* Remove all event handlers.
|
|
406
343
|
*/
|
|
407
344
|
detach(): void;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
* @param {string} refreshData - The path of the data that needs to trigger a refresh.
|
|
411
|
-
* @param {boolean} changed - Flag that is true if the data has been changed.
|
|
412
|
-
* @param {any} flags - The flags for the checkData procedure.
|
|
413
|
-
* @returns {void}
|
|
414
|
-
*/
|
|
415
|
-
checkRefresh(refreshData: string, changed: boolean, flags: any): void;
|
|
416
|
-
/**
|
|
417
|
-
* Iterates over a list of changes, and determines if the component should be refreshed if it is configured to refresh on any of those components.
|
|
418
|
-
* @param {Array<any>} changes - The list of components that have changed.
|
|
419
|
-
* @param {any} flags - The checkData flags.
|
|
420
|
-
* @returns {void}
|
|
421
|
-
*/
|
|
422
|
-
checkRefreshOn(changes: Array<any>, flags?: any): void;
|
|
345
|
+
checkRefresh(refreshData: any, changed: any, flags: any): void;
|
|
346
|
+
checkRefreshOn(changes: any, flags?: {}): void;
|
|
423
347
|
/**
|
|
424
348
|
* Refreshes the component with a new value.
|
|
425
|
-
*
|
|
426
|
-
* @
|
|
349
|
+
*
|
|
350
|
+
* @param value
|
|
427
351
|
*/
|
|
428
352
|
refresh(value: any): void;
|
|
429
353
|
refreshOnChanged: boolean | undefined;
|
|
@@ -434,84 +358,33 @@ declare class Component extends Element {
|
|
|
434
358
|
* with the components data and returns true if they are in the same context.
|
|
435
359
|
*
|
|
436
360
|
* Different rows of the same EditGrid, for example, are in different contexts.
|
|
437
|
-
*
|
|
438
|
-
* @
|
|
361
|
+
*
|
|
362
|
+
* @param component
|
|
439
363
|
*/
|
|
440
364
|
inContext(component: any): boolean;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
* @returns {boolean} - TRUE if we are in "view" only mode.
|
|
444
|
-
*/
|
|
445
|
-
get viewOnly(): boolean;
|
|
446
|
-
/**
|
|
447
|
-
* Sets the HTMLElement for this component.
|
|
448
|
-
* @param {HTMLElement} element - The element that is attached to this component.
|
|
449
|
-
* @returns {void}
|
|
450
|
-
*/
|
|
451
|
-
setElement(element: HTMLElement): void;
|
|
365
|
+
get viewOnly(): any;
|
|
366
|
+
setElement(element: any): void;
|
|
452
367
|
element: any;
|
|
453
|
-
|
|
454
|
-
* Creates an element to hold the "view only" version of this component.
|
|
455
|
-
* @returns {HTMLElement} - The element for this component.
|
|
456
|
-
*/
|
|
457
|
-
createViewOnlyElement(): HTMLElement;
|
|
458
|
-
/**
|
|
459
|
-
* The default value for the "view only" mode of a component if the value is not provided.
|
|
460
|
-
* @returns {string} - The default value for this component.
|
|
461
|
-
*/
|
|
368
|
+
createViewOnlyElement(): any;
|
|
462
369
|
get defaultViewOnlyValue(): string;
|
|
463
370
|
/**
|
|
464
371
|
* Uses the widget to determine the output string.
|
|
465
|
-
*
|
|
466
|
-
* @param
|
|
467
|
-
* @
|
|
468
|
-
*/
|
|
469
|
-
getWidgetValueAsString(value: any, options: any): any | Array<any>;
|
|
470
|
-
/**
|
|
471
|
-
* Returns the value of the component as a string.
|
|
472
|
-
* @param {any} value - The value for this component.
|
|
473
|
-
* @param {any} options - The options for this component.
|
|
474
|
-
* @returns {string} - The string representation of the value of this component.
|
|
475
|
-
*/
|
|
476
|
-
getValueAsString(value: any, options: any): string;
|
|
477
|
-
/**
|
|
478
|
-
* Returns the string representation "view" of the component value.
|
|
479
|
-
* @param {any} value - The value of the component.
|
|
480
|
-
* @param {any} options - The options for this component.
|
|
481
|
-
* @returns {string} - The string representation of the value of this component.
|
|
482
|
-
*/
|
|
483
|
-
getView(value: any, options: any): string;
|
|
484
|
-
/**
|
|
485
|
-
* Updates the items list for this component. Useful for Select and other List component types.
|
|
486
|
-
* @param {...any} args - The arguments to pass to the onChange event.
|
|
487
|
-
* @returns {void}
|
|
372
|
+
*
|
|
373
|
+
* @param value
|
|
374
|
+
* @return {*}
|
|
488
375
|
*/
|
|
376
|
+
getWidgetValueAsString(value: any, options: any): any;
|
|
377
|
+
getValueAsString(value: any, options: any): any;
|
|
378
|
+
getView(value: any, options: any): any;
|
|
489
379
|
updateItems(...args: any[]): void;
|
|
490
380
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @param {
|
|
493
|
-
* @
|
|
494
|
-
* @returns {any} - The value of the item.
|
|
381
|
+
* @param {*} data
|
|
382
|
+
* @param {boolean} [forceUseValue=false] - if true, return 'value' property of the data
|
|
383
|
+
* @return {*}
|
|
495
384
|
*/
|
|
496
385
|
itemValue(data: any, forceUseValue?: boolean | undefined): any;
|
|
497
|
-
/**
|
|
498
|
-
* Returns the item value for html mode.
|
|
499
|
-
* @param {any} value - The value for this component.
|
|
500
|
-
* @returns {any} - The value of the item for html mode.
|
|
501
|
-
*/
|
|
502
386
|
itemValueForHTMLMode(value: any): any;
|
|
503
|
-
|
|
504
|
-
* Creates a modal to input the value of this component.
|
|
505
|
-
* @param {HTMLElement} element - The element to attach the modal to.
|
|
506
|
-
* @param {any} attr - A list of attributes to add to the modal.
|
|
507
|
-
* @param {boolean} confirm - If we should add a confirmation to the modal that keeps it from closing unless confirmed.
|
|
508
|
-
* @returns {HTMLElement} - The created modal element.
|
|
509
|
-
*/
|
|
510
|
-
createModal(element: HTMLElement, attr: any, confirm: boolean): HTMLElement;
|
|
511
|
-
/**
|
|
512
|
-
* Uses CSS classes to show or hide an element.
|
|
513
|
-
* @returns {boolean} - TRUE if the element has been css removed.
|
|
514
|
-
*/
|
|
387
|
+
createModal(element: any, attr: any, confirm: any): HTMLElement;
|
|
515
388
|
get optimizeRedraw(): boolean;
|
|
516
389
|
/**
|
|
517
390
|
* Retrieves the CSS class name of this component.
|
|
@@ -520,251 +393,125 @@ declare class Component extends Element {
|
|
|
520
393
|
get className(): string;
|
|
521
394
|
/**
|
|
522
395
|
* Build the custom style from the layout values
|
|
523
|
-
* @
|
|
396
|
+
* @return {string} - The custom style
|
|
524
397
|
*/
|
|
525
398
|
get customStyle(): string;
|
|
526
|
-
|
|
527
|
-
* Returns if the application is on a mobile device.
|
|
528
|
-
* @returns {boolean} - TRUE if the application is on a mobile device.
|
|
529
|
-
*/
|
|
530
|
-
get isMobile(): boolean;
|
|
399
|
+
get isMobile(): import("ismobilejs").isMobileResult;
|
|
531
400
|
/**
|
|
532
401
|
* Returns the outside wrapping element of this component.
|
|
533
|
-
* @returns {HTMLElement}
|
|
402
|
+
* @returns {HTMLElement}
|
|
534
403
|
*/
|
|
535
404
|
getElement(): HTMLElement;
|
|
536
|
-
/**
|
|
537
|
-
* Create an evaluation context for all script executions and interpolations.
|
|
538
|
-
* @param {any} additional - Additional context to provide.
|
|
539
|
-
* @returns {any} - The evaluation context.
|
|
540
|
-
*/
|
|
541
|
-
evalContext(additional: any): any;
|
|
542
405
|
/**
|
|
543
406
|
* Sets the pristine flag for this component.
|
|
544
|
-
*
|
|
407
|
+
*
|
|
408
|
+
* @param pristine {boolean} - TRUE to make pristine, FALSE not pristine.
|
|
545
409
|
*/
|
|
546
410
|
setPristine(pristine: boolean): void;
|
|
547
|
-
/**
|
|
548
|
-
* Returns if the component is pristine.
|
|
549
|
-
* @returns {boolean} - TRUE if the component is pristine.
|
|
550
|
-
*/
|
|
551
411
|
get isPristine(): boolean;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
*/
|
|
556
|
-
setDirty(dirty: boolean): void;
|
|
557
|
-
dirty: boolean | undefined;
|
|
558
|
-
/**
|
|
559
|
-
* Returns if the component is dirty.
|
|
560
|
-
* @returns {boolean} - TRUE if the component is dirty.
|
|
561
|
-
*/
|
|
562
|
-
get isDirty(): boolean;
|
|
412
|
+
setDirty(dirty: any): void;
|
|
413
|
+
dirty: any;
|
|
414
|
+
get isDirty(): any;
|
|
563
415
|
/**
|
|
564
416
|
* Removes a value out of the data array and rebuild the rows.
|
|
565
417
|
* @param {number} index - The index of the data element to remove.
|
|
566
418
|
*/
|
|
567
419
|
removeValue(index: number): void;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
* @param {string} name - The name of the icon you wish to fetch provided the icon class. This is the "font awesome" version of the name of the icon.
|
|
571
|
-
* @param {boolean} spinning - If the component should be spinning.
|
|
572
|
-
* @returns {string} - The icon class for the equivalent icon in the iconset we are using.
|
|
573
|
-
*/
|
|
574
|
-
iconClass(name: string, spinning: boolean): string;
|
|
575
|
-
/**
|
|
576
|
-
* Returns the size css class names for our current template.
|
|
577
|
-
* @param {string} size - The size class name for the default iconset.
|
|
578
|
-
* @returns {string} - The size class for our component.
|
|
579
|
-
*/
|
|
580
|
-
size(size: string): string;
|
|
420
|
+
iconClass(name: any, spinning: any): any;
|
|
421
|
+
size(size: any): any;
|
|
581
422
|
/**
|
|
582
423
|
* The readible name for this component.
|
|
583
424
|
* @returns {string} - The name of the component.
|
|
584
425
|
*/
|
|
585
426
|
get name(): string;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
* @returns {Array<object>} - The visible errors for this component.
|
|
589
|
-
*/
|
|
590
|
-
get visibleErrors(): object[];
|
|
591
|
-
/**
|
|
592
|
-
* Returns all the errors for this component, visible or not.
|
|
593
|
-
* @returns {Array<object>} - All the errors for this component.
|
|
594
|
-
*/
|
|
595
|
-
get errors(): object[];
|
|
427
|
+
get visibleErrors(): any[];
|
|
428
|
+
get errors(): any[];
|
|
596
429
|
/**
|
|
597
430
|
* Returns the error label for this component.
|
|
598
|
-
* @
|
|
431
|
+
* @return {*}
|
|
599
432
|
*/
|
|
600
|
-
get errorLabel():
|
|
433
|
+
get errorLabel(): any;
|
|
601
434
|
/**
|
|
602
435
|
* Get the error message provided a certain type of error.
|
|
603
|
-
* @param
|
|
604
|
-
* @
|
|
605
|
-
*/
|
|
606
|
-
errorMessage(type: string): string;
|
|
607
|
-
/**
|
|
608
|
-
* Sets the content, innerHTML, of an element to the sanitized content.
|
|
609
|
-
* @param {HTMLElement} element - The element to set the innerHTML to.
|
|
610
|
-
* @param {string} content - The HTML string content that we wish to set.
|
|
611
|
-
* @param {boolean} forceSanitize - If we should force the content to be sanitized.
|
|
612
|
-
* @param {any} sanitizeOptions - The options for the sanitize function.
|
|
613
|
-
* @returns {boolean} - TRUE if the content was sanitized and set.
|
|
614
|
-
*/
|
|
615
|
-
setContent(element: HTMLElement, content: string, forceSanitize: boolean, sanitizeOptions: any): boolean;
|
|
616
|
-
/**
|
|
617
|
-
* Restores the caret position in the input element after a refresh occurs.
|
|
436
|
+
* @param type
|
|
437
|
+
* @return {*}
|
|
618
438
|
*/
|
|
439
|
+
errorMessage(type: any): any;
|
|
440
|
+
setContent(element: any, content: any, forceSanitize: any, sanitizeOptions: any): boolean;
|
|
619
441
|
restoreCaretPosition(): void;
|
|
620
|
-
/**
|
|
621
|
-
* Redraw the component.
|
|
622
|
-
* @returns {Promise<void>} - A promise that resolves when the component is done redrawing.
|
|
623
|
-
*/
|
|
624
442
|
redraw(): Promise<void>;
|
|
625
|
-
/**
|
|
626
|
-
* Rebuild and redraw a component.
|
|
627
|
-
* @returns {Promise<void>} - A promise that resolves when the component is done rebuilding and redrawing.
|
|
628
|
-
*/
|
|
629
443
|
rebuild(): Promise<void>;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
* @param {string} className - The name of the class to check.
|
|
634
|
-
* @returns {boolean|void} - TRUE if the element has the class.
|
|
635
|
-
*/
|
|
636
|
-
hasClass(element: HTMLElement, className: string): boolean | void;
|
|
637
|
-
/**
|
|
638
|
-
* Adds a class to an HTML element.
|
|
639
|
-
* @param {HTMLElement} element - The dom element to add the class to.
|
|
640
|
-
* @param {string} className - The class name you wish to add.
|
|
641
|
-
* @returns {this|void} - The component instance.
|
|
642
|
-
*/
|
|
643
|
-
addClass(element: HTMLElement, className: string): this | void;
|
|
644
|
-
/**
|
|
645
|
-
* Removes a class from an element.
|
|
646
|
-
* @param {HTMLElement} element - The element to remove the class from.
|
|
647
|
-
* @param {string} className - The class name to remove.
|
|
648
|
-
* @returns {this|void} - The component instance.
|
|
649
|
-
*/
|
|
650
|
-
removeClass(element: HTMLElement, className: string): this | void;
|
|
444
|
+
hasClass(element: any, className: any): boolean | undefined;
|
|
445
|
+
addClass(element: any, className: any): this | undefined;
|
|
446
|
+
removeClass(element: any, className: any): this | undefined;
|
|
651
447
|
/**
|
|
652
448
|
* Determines if this component has a condition defined.
|
|
653
|
-
*
|
|
449
|
+
*
|
|
450
|
+
* @return {null}
|
|
654
451
|
*/
|
|
655
|
-
hasCondition():
|
|
452
|
+
hasCondition(): null;
|
|
656
453
|
/**
|
|
657
454
|
* Check if this component is conditionally visible.
|
|
658
|
-
*
|
|
659
|
-
* @param
|
|
660
|
-
* @
|
|
455
|
+
*
|
|
456
|
+
* @param data
|
|
457
|
+
* @return {boolean}
|
|
661
458
|
*/
|
|
662
459
|
conditionallyVisible(data: any, row: any): boolean;
|
|
663
460
|
/**
|
|
664
461
|
* Checks the condition of this component.
|
|
665
462
|
*
|
|
666
463
|
* TODO: Switch row and data parameters to be consistent with other methods.
|
|
667
|
-
*
|
|
668
|
-
* @param
|
|
669
|
-
* @
|
|
464
|
+
*
|
|
465
|
+
* @param row - The row contextual data.
|
|
466
|
+
* @param data - The global data object.
|
|
467
|
+
* @return {boolean} - True if the condition applies to this component.
|
|
670
468
|
*/
|
|
671
469
|
checkCondition(row: any, data: any): boolean;
|
|
672
470
|
/**
|
|
673
471
|
* Check for conditionals and hide/show the element based on those conditions.
|
|
674
|
-
* @param {any} data - The data to check against.
|
|
675
|
-
* @param {any} flags - The flags passed to checkData function.
|
|
676
|
-
* @param {any} row - The row data to check against.
|
|
677
|
-
* @returns {boolean} - TRUE if the component is visible.
|
|
678
472
|
*/
|
|
679
473
|
checkComponentConditions(data: any, flags: any, row: any): boolean;
|
|
680
474
|
/**
|
|
681
475
|
* Checks conditions for this component and any sub components.
|
|
682
|
-
* @param
|
|
683
|
-
* @
|
|
684
|
-
* @param {any} row - The row data to check against.
|
|
685
|
-
* @returns {boolean} - TRUE if the component is visible.
|
|
476
|
+
* @param args
|
|
477
|
+
* @return {boolean}
|
|
686
478
|
*/
|
|
687
479
|
checkConditions(data: any, flags: any, row: any): boolean;
|
|
688
|
-
|
|
689
|
-
* Returns the component logic if applicable.
|
|
690
|
-
* @returns {Array<object>} - The component logic.
|
|
691
|
-
*/
|
|
692
|
-
get logic(): object[];
|
|
480
|
+
get logic(): any;
|
|
693
481
|
/**
|
|
694
482
|
* Check all triggers and apply necessary actions.
|
|
695
|
-
*
|
|
696
|
-
* @param
|
|
697
|
-
* @returns {boolean|void} - TRUE if the component was altered.
|
|
698
|
-
*/
|
|
699
|
-
fieldLogic(data?: any, row?: any): boolean | void;
|
|
700
|
-
/**
|
|
701
|
-
* Retuns if the browser is Internet Explorer.
|
|
702
|
-
* @returns {boolean} - TRUE if the browser is IE.
|
|
703
|
-
*/
|
|
704
|
-
isIE(): boolean;
|
|
705
|
-
/**
|
|
706
|
-
* Defines the logic action value through evaluation.
|
|
707
|
-
* @param {object} action - The action within the Logic system to perform.
|
|
708
|
-
* @param {object} argsObject - The arguments to pass to the evaluation.
|
|
709
|
-
* @returns {any} - The result of the evaluation.
|
|
710
|
-
*/
|
|
711
|
-
defineActionValue(action: object, argsObject: object): any;
|
|
712
|
-
/**
|
|
713
|
-
* Apply the actions of Logic for a component once the conditions have been met.
|
|
714
|
-
* @param {object} newComponent - The new component to apply the actions to.
|
|
715
|
-
* @param {Array<object>} actions - An array of actions
|
|
716
|
-
* @param {any} result - The result of the conditional check in order to evaluate the actions.
|
|
717
|
-
* @param {any} row - The contextual row data for this component.
|
|
718
|
-
* @param {any} data - The global data object for the submission.
|
|
719
|
-
* @returns {boolean} - TRUE if the component was altered.
|
|
483
|
+
*
|
|
484
|
+
* @param data
|
|
720
485
|
*/
|
|
721
|
-
|
|
486
|
+
fieldLogic(data: any, row: any): any;
|
|
487
|
+
isIE(): number | false;
|
|
488
|
+
defineActionValue(action: any, argsObject: any): any;
|
|
489
|
+
applyActions(newComponent: any, actions: any, result: any, row: any, data: any): any;
|
|
722
490
|
addInputError(message: any, dirty: any, elements: any): void;
|
|
723
491
|
removeInputError(elements: any): void;
|
|
724
492
|
/**
|
|
725
493
|
* Add a new input error to this element.
|
|
726
|
-
*
|
|
727
|
-
* @
|
|
728
|
-
*/
|
|
729
|
-
addMessages(messages:
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
* @param {boolean} hasMessages - If the input has messages.
|
|
736
|
-
* @param {HTMLElement} element - The wrapper element for all the other elements passed in first argument.
|
|
737
|
-
* @returns {void}
|
|
738
|
-
*/
|
|
739
|
-
setErrorClasses(elements: Array<HTMLElement>, dirty: boolean, hasErrors: boolean, hasMessages: boolean, element?: HTMLElement): void;
|
|
740
|
-
/**
|
|
741
|
-
* Adds the classes necessary to mark an element as invalid.
|
|
742
|
-
* @param {HTMLElement} element - The element you wish to add the invalid classes to.
|
|
743
|
-
* @param {boolean} invalid - TRUE if the component is invalid, FALSE otherwise.
|
|
744
|
-
* @returns {void}
|
|
745
|
-
*/
|
|
746
|
-
setElementInvalid(element: HTMLElement, invalid: boolean): void;
|
|
747
|
-
/**
|
|
748
|
-
* Clears the components data if it is conditionally hidden AND clearOnHide is set to true for this component.
|
|
749
|
-
*/
|
|
494
|
+
*
|
|
495
|
+
* @param {{level: string, message: string}[]} messages
|
|
496
|
+
*/
|
|
497
|
+
addMessages(messages: {
|
|
498
|
+
level: string;
|
|
499
|
+
message: string;
|
|
500
|
+
}[]): void;
|
|
501
|
+
setErrorClasses(elements: any, dirty: any, hasErrors: any, hasMessages: any, element?: any): void;
|
|
502
|
+
setElementInvalid(element: any, invalid: any): void;
|
|
750
503
|
clearOnHide(): void;
|
|
751
|
-
/**
|
|
752
|
-
* Triggers a debounced onChange event for the root component (usually Webform).
|
|
753
|
-
* @param {...any} args - The arguments to pass to the onChange event.
|
|
754
|
-
*/
|
|
755
504
|
triggerRootChange(...args: any[]): void;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
*/
|
|
763
|
-
onChange(flags: any, fromRoot: boolean): boolean;
|
|
505
|
+
onChange(flags: any, fromRoot: any): {
|
|
506
|
+
instance: this;
|
|
507
|
+
component: any;
|
|
508
|
+
value: any;
|
|
509
|
+
flags: any;
|
|
510
|
+
};
|
|
764
511
|
get wysiwygDefault(): {
|
|
765
512
|
quill: {
|
|
766
513
|
theme: string;
|
|
767
|
-
placeholder:
|
|
514
|
+
placeholder: any;
|
|
768
515
|
modules: {
|
|
769
516
|
toolbar: ({
|
|
770
517
|
size: (string | boolean)[];
|
|
@@ -801,7 +548,7 @@ declare class Component extends Element {
|
|
|
801
548
|
minLines: number;
|
|
802
549
|
tabSize: number;
|
|
803
550
|
mode: string;
|
|
804
|
-
placeholder:
|
|
551
|
+
placeholder: any;
|
|
805
552
|
};
|
|
806
553
|
ckeditor: {
|
|
807
554
|
image: {
|
|
@@ -820,27 +567,28 @@ declare class Component extends Element {
|
|
|
820
567
|
get tree(): any;
|
|
821
568
|
/**
|
|
822
569
|
* The empty value for this component.
|
|
823
|
-
*
|
|
570
|
+
*
|
|
571
|
+
* @return {null}
|
|
824
572
|
*/
|
|
825
573
|
get emptyValue(): null;
|
|
826
574
|
/**
|
|
827
575
|
* Returns if this component has a value set.
|
|
828
|
-
*
|
|
829
|
-
* @returns {boolean} - TRUE if a value is set.
|
|
576
|
+
*
|
|
830
577
|
*/
|
|
831
578
|
hasValue(data: any): boolean;
|
|
832
579
|
/**
|
|
833
580
|
* Get the data value at the root level.
|
|
834
|
-
*
|
|
581
|
+
*
|
|
582
|
+
* @return {*}
|
|
835
583
|
*/
|
|
836
584
|
get rootValue(): any;
|
|
837
585
|
get rootPristine(): any;
|
|
838
586
|
/**
|
|
839
587
|
* Splice a value from the dataValue.
|
|
840
|
-
*
|
|
841
|
-
* @param
|
|
588
|
+
*
|
|
589
|
+
* @param index
|
|
842
590
|
*/
|
|
843
|
-
splice(index:
|
|
591
|
+
splice(index: any, flags?: {}): void;
|
|
844
592
|
unset(): void;
|
|
845
593
|
/**
|
|
846
594
|
* Deletes the value of the component.
|
|
@@ -851,29 +599,33 @@ declare class Component extends Element {
|
|
|
851
599
|
get defaultValue(): any;
|
|
852
600
|
/**
|
|
853
601
|
* Get the input value of this component.
|
|
854
|
-
*
|
|
602
|
+
*
|
|
603
|
+
* @return {*}
|
|
855
604
|
*/
|
|
856
605
|
getValue(): any;
|
|
857
606
|
/**
|
|
858
607
|
* Get the value at a specific index.
|
|
859
|
-
*
|
|
860
|
-
* @
|
|
608
|
+
*
|
|
609
|
+
* @param index
|
|
610
|
+
* @returns {*}
|
|
861
611
|
*/
|
|
862
|
-
getValueAt(index:
|
|
612
|
+
getValueAt(index: any): any;
|
|
863
613
|
/**
|
|
864
614
|
* Set the value of this component.
|
|
865
|
-
*
|
|
866
|
-
* @param
|
|
867
|
-
* @
|
|
615
|
+
*
|
|
616
|
+
* @param value
|
|
617
|
+
* @param flags
|
|
618
|
+
*
|
|
619
|
+
* @return {boolean} - If the value changed.
|
|
868
620
|
*/
|
|
869
|
-
setValue(value: any, flags?:
|
|
621
|
+
setValue(value: any, flags?: {}): boolean;
|
|
870
622
|
/**
|
|
871
623
|
* Set the value at a specific index.
|
|
872
|
-
*
|
|
873
|
-
* @param
|
|
874
|
-
* @param
|
|
624
|
+
*
|
|
625
|
+
* @param index
|
|
626
|
+
* @param value
|
|
875
627
|
*/
|
|
876
|
-
setValueAt(index:
|
|
628
|
+
setValueAt(index: any, value: any, flags?: {}): void;
|
|
877
629
|
get hasSetValue(): boolean;
|
|
878
630
|
setDefaultValue(): void;
|
|
879
631
|
/**
|
|
@@ -882,21 +634,22 @@ declare class Component extends Element {
|
|
|
882
634
|
restoreValue(): void;
|
|
883
635
|
/**
|
|
884
636
|
* Normalize values coming into updateValue.
|
|
885
|
-
*
|
|
886
|
-
* @
|
|
637
|
+
*
|
|
638
|
+
* @param value
|
|
639
|
+
* @return {*}
|
|
887
640
|
*/
|
|
888
641
|
normalizeValue(value: any): any;
|
|
889
642
|
/**
|
|
890
643
|
* Update a value of this component.
|
|
891
|
-
*
|
|
892
|
-
* @param
|
|
893
|
-
* @returns {boolean} - If the value changed.
|
|
644
|
+
*
|
|
645
|
+
* @param flags
|
|
894
646
|
*/
|
|
895
|
-
updateComponentValue(value: any, flags?:
|
|
647
|
+
updateComponentValue(value: any, flags?: {}): boolean;
|
|
896
648
|
/**
|
|
897
649
|
* Updates the value of this component plus all sub-components.
|
|
898
|
-
*
|
|
899
|
-
* @
|
|
650
|
+
*
|
|
651
|
+
* @param args
|
|
652
|
+
* @return {boolean}
|
|
900
653
|
*/
|
|
901
654
|
updateValue(...args: any[]): boolean;
|
|
902
655
|
getIcon(name: any, content: any, styles: any, ref?: string): any;
|
|
@@ -906,123 +659,130 @@ declare class Component extends Element {
|
|
|
906
659
|
resetValue(): void;
|
|
907
660
|
/**
|
|
908
661
|
* Determine if the value of this component has changed.
|
|
909
|
-
*
|
|
910
|
-
* @param
|
|
911
|
-
* @
|
|
662
|
+
*
|
|
663
|
+
* @param newValue
|
|
664
|
+
* @param oldValue
|
|
665
|
+
* @return {boolean}
|
|
912
666
|
*/
|
|
913
667
|
hasChanged(newValue: any, oldValue: any): boolean;
|
|
914
668
|
/**
|
|
915
669
|
* Update the value on change.
|
|
916
|
-
*
|
|
917
|
-
* @param
|
|
918
|
-
* @returns {boolean} - If the value changed.
|
|
670
|
+
*
|
|
671
|
+
* @param flags
|
|
919
672
|
*/
|
|
920
|
-
updateOnChange(flags?:
|
|
921
|
-
|
|
673
|
+
updateOnChange(flags?: {}, changed?: boolean): boolean;
|
|
674
|
+
/**
|
|
675
|
+
* Perform a calculated value operation.
|
|
676
|
+
*
|
|
677
|
+
* @param data - The global data object.
|
|
678
|
+
*
|
|
679
|
+
* @return {boolean} - If the value changed during calculation.
|
|
680
|
+
*/
|
|
681
|
+
convertNumberOrBoolToString(value: any): boolean;
|
|
922
682
|
doValueCalculation(dataValue: any, data: any, row: any): any;
|
|
923
683
|
calculateComponentValue(data: any, flags: any, row: any): boolean;
|
|
924
684
|
calculationLocked: boolean | undefined;
|
|
925
685
|
calculatedValue: any;
|
|
926
686
|
/**
|
|
927
687
|
* Performs calculations in this component plus any child components.
|
|
928
|
-
*
|
|
929
|
-
* @param
|
|
930
|
-
* @
|
|
931
|
-
* @returns {boolean} - TRUE if the value changed.
|
|
688
|
+
*
|
|
689
|
+
* @param args
|
|
690
|
+
* @return {boolean}
|
|
932
691
|
*/
|
|
933
692
|
calculateValue(data: any, flags: any, row: any): boolean;
|
|
934
693
|
/**
|
|
935
694
|
* Set this component's label text and render it.
|
|
936
|
-
*
|
|
695
|
+
*
|
|
696
|
+
* @param value - The new label text.
|
|
937
697
|
*/
|
|
938
|
-
set label(value:
|
|
698
|
+
set label(value: any);
|
|
939
699
|
/**
|
|
940
700
|
* Get this component's label text.
|
|
941
|
-
*
|
|
701
|
+
*
|
|
942
702
|
*/
|
|
943
|
-
get label():
|
|
703
|
+
get label(): any;
|
|
944
704
|
/**
|
|
945
705
|
* Get FormioForm element at the root of this component tree.
|
|
946
|
-
*
|
|
706
|
+
*
|
|
947
707
|
*/
|
|
948
|
-
getRoot():
|
|
708
|
+
getRoot(): Component;
|
|
949
709
|
/**
|
|
950
710
|
* Returns the invalid message, or empty string if the component is valid.
|
|
951
|
-
*
|
|
952
|
-
* @param
|
|
953
|
-
* @param
|
|
954
|
-
* @
|
|
955
|
-
* @returns {string} - The message to show when the component is invalid.
|
|
711
|
+
*
|
|
712
|
+
* @param data
|
|
713
|
+
* @param dirty
|
|
714
|
+
* @return {*}
|
|
956
715
|
*/
|
|
957
|
-
invalidMessage(data: any, dirty:
|
|
716
|
+
invalidMessage(data: any, dirty: any, ignoreCondition: any, row: any): any;
|
|
958
717
|
/**
|
|
959
718
|
* Returns if the component is valid or not.
|
|
960
|
-
*
|
|
961
|
-
* @param
|
|
962
|
-
* @
|
|
719
|
+
*
|
|
720
|
+
* @param data
|
|
721
|
+
* @param dirty
|
|
722
|
+
* @return {boolean}
|
|
963
723
|
*/
|
|
964
|
-
isValid(data: any, dirty:
|
|
724
|
+
isValid(data: any, dirty: any): boolean;
|
|
965
725
|
setComponentValidity(errors: any, dirty: any, silentCheck: any): any;
|
|
966
726
|
/**
|
|
967
727
|
* Interpolate errors from the validation methods.
|
|
968
|
-
* @param {
|
|
969
|
-
* @returns
|
|
728
|
+
* @param {*} errors
|
|
729
|
+
* @returns
|
|
970
730
|
*/
|
|
971
|
-
interpolateErrors(errors:
|
|
731
|
+
interpolateErrors(errors: any): any[];
|
|
972
732
|
/**
|
|
973
733
|
* Show component validation errors.
|
|
974
734
|
* @param {*} errors - An array of errors that have occured.
|
|
975
735
|
* @param {*} data - The root submission data.
|
|
976
736
|
* @param {*} row - The contextual row data.
|
|
977
737
|
* @param {*} flags - The flags to perform validation.
|
|
978
|
-
* @returns
|
|
738
|
+
* @returns
|
|
979
739
|
*/
|
|
980
|
-
showValidationErrors(errors: any, data: any, row: any, flags: any):
|
|
740
|
+
showValidationErrors(errors: any, data: any, row: any, flags: any): any;
|
|
981
741
|
/**
|
|
982
742
|
* Perform a component validation.
|
|
983
743
|
* @param {*} data - The root data you wish to use for this component.
|
|
984
744
|
* @param {*} row - The contextual row data you wish to use for this component.
|
|
985
745
|
* @param {*} flags - The flags to control the behavior of the validation.
|
|
986
|
-
* @returns
|
|
746
|
+
* @returns
|
|
987
747
|
*/
|
|
988
|
-
validateComponent(data
|
|
748
|
+
validateComponent(data: any, row: any, flags?: any): any;
|
|
989
749
|
/**
|
|
990
750
|
* Checks the validity of this component and sets the error message if it is invalid.
|
|
991
|
-
*
|
|
992
|
-
* @param
|
|
993
|
-
* @param
|
|
994
|
-
* @param
|
|
995
|
-
* @
|
|
996
|
-
* @returns {boolean} - TRUE if the component is valid.
|
|
751
|
+
*
|
|
752
|
+
* @param data
|
|
753
|
+
* @param dirty
|
|
754
|
+
* @param row
|
|
755
|
+
* @return {boolean}
|
|
997
756
|
*/
|
|
998
|
-
checkComponentValidity(data
|
|
757
|
+
checkComponentValidity(data: any, dirty: any, row: any, flags?: {}, allErrors?: any[]): boolean;
|
|
999
758
|
/**
|
|
1000
759
|
* Checks the validity of the component.
|
|
1001
|
-
* @param {*} data
|
|
1002
|
-
* @param {
|
|
1003
|
-
* @param {*} row
|
|
1004
|
-
* @param {
|
|
1005
|
-
* @
|
|
1006
|
-
* @returns {boolean} - TRUE if the component is valid.
|
|
760
|
+
* @param {*} data
|
|
761
|
+
* @param {*} dirty
|
|
762
|
+
* @param {*} row
|
|
763
|
+
* @param {*} silentCheck
|
|
764
|
+
* @returns
|
|
1007
765
|
*/
|
|
1008
|
-
checkValidity(data
|
|
1009
|
-
checkAsyncValidity(data
|
|
766
|
+
checkValidity(data: any, dirty: any, row: any, silentCheck: any, errors?: any[]): boolean;
|
|
767
|
+
checkAsyncValidity(data: any, dirty: any, row: any, silentCheck: any, errors?: any[]): boolean;
|
|
1010
768
|
/**
|
|
1011
769
|
* Check the conditions, calculations, and validity of a single component and triggers an update if
|
|
1012
770
|
* something changed.
|
|
1013
|
-
*
|
|
1014
|
-
* @param
|
|
1015
|
-
* @param
|
|
1016
|
-
*
|
|
771
|
+
*
|
|
772
|
+
* @param data - The root data of the change event.
|
|
773
|
+
* @param flags - The flags from this change event.
|
|
774
|
+
*
|
|
775
|
+
* @return boolean - If component is valid or not.
|
|
1017
776
|
*/
|
|
1018
|
-
checkData(data
|
|
777
|
+
checkData(data: any, flags: any, row: any): true | undefined;
|
|
1019
778
|
checkModal(errors?: any[], dirty?: boolean): void;
|
|
1020
779
|
get validationValue(): any;
|
|
1021
780
|
isEmpty(value?: any): any;
|
|
1022
781
|
isEqual(valueA: any, valueB?: any): any;
|
|
1023
782
|
/**
|
|
1024
783
|
* Check if a component is eligible for multiple validation
|
|
1025
|
-
*
|
|
784
|
+
*
|
|
785
|
+
* @return {boolean}
|
|
1026
786
|
*/
|
|
1027
787
|
validateMultiple(): boolean;
|
|
1028
788
|
clearErrorClasses(element?: any): void;
|
|
@@ -1032,7 +792,8 @@ declare class Component extends Element {
|
|
|
1032
792
|
/**
|
|
1033
793
|
* Determines if the value of this component is hidden from the user as if it is coming from the server, but is
|
|
1034
794
|
* protected.
|
|
1035
|
-
*
|
|
795
|
+
*
|
|
796
|
+
* @return {boolean|*}
|
|
1036
797
|
*/
|
|
1037
798
|
isValueHidden(): boolean | any;
|
|
1038
799
|
shouldSkipValidation(data: any, row: any, flags?: {}): boolean;
|
|
@@ -1040,8 +801,6 @@ declare class Component extends Element {
|
|
|
1040
801
|
get dataReady(): Promise<void>;
|
|
1041
802
|
/**
|
|
1042
803
|
* Prints out the value of this component as a string value.
|
|
1043
|
-
* @param {*} value - The value to print out.
|
|
1044
|
-
* @returns {string} - The string representation of the value.
|
|
1045
804
|
*/
|
|
1046
805
|
asString(value: any): string;
|
|
1047
806
|
setDisabled(element: any, disabled: any): void;
|
|
@@ -1057,17 +816,25 @@ declare class Component extends Element {
|
|
|
1057
816
|
attachLogic(): void;
|
|
1058
817
|
/**
|
|
1059
818
|
* Get the element information.
|
|
1060
|
-
* @returns {*} - The components "input" DOM element information.
|
|
1061
819
|
*/
|
|
1062
|
-
elementInfo():
|
|
820
|
+
elementInfo(): {
|
|
821
|
+
type: string;
|
|
822
|
+
component: any;
|
|
823
|
+
changeEvent: string;
|
|
824
|
+
attr: {
|
|
825
|
+
name: any;
|
|
826
|
+
type: any;
|
|
827
|
+
class: string;
|
|
828
|
+
lang: any;
|
|
829
|
+
};
|
|
830
|
+
};
|
|
1063
831
|
autofocus(): void;
|
|
1064
832
|
scrollIntoView(element?: any): void;
|
|
1065
|
-
focus(index
|
|
833
|
+
focus(index: any): void;
|
|
1066
834
|
/**
|
|
1067
835
|
* Get `Formio` instance for working with files
|
|
1068
|
-
* @returns {import('@formio/core').Formio} - The Formio instance file service.
|
|
1069
836
|
*/
|
|
1070
|
-
get fileService():
|
|
837
|
+
get fileService(): any;
|
|
1071
838
|
resetCaches(): void;
|
|
1072
839
|
get previewMode(): boolean;
|
|
1073
840
|
}
|