@formio/js 5.0.0-dev.5641.6eb7b96 → 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 -14
- 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 -14
- 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
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import nestedComponentForm from '../_classes/nested/NestedComponent.form';
|
|
2
2
|
import PanelEditDisplay from './editForm/Panel.edit.display';
|
|
3
3
|
import PanelEditConditional from './editForm/Panel.edit.conditional';
|
|
4
|
-
/**
|
|
5
|
-
* The Edit Form function.
|
|
6
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
7
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
8
|
-
*/
|
|
9
4
|
export default function (...extend) {
|
|
10
5
|
return nestedComponentForm([
|
|
11
6
|
{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import NestedComponent from '../_classes/nested/NestedComponent';
|
|
2
2
|
import { isChildOf } from '../../utils/utils';
|
|
3
|
+
import FormComponent from '../form/Form';
|
|
3
4
|
export default class PanelComponent extends NestedComponent {
|
|
4
5
|
static schema(...extend) {
|
|
5
6
|
return NestedComponent.schema({
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -2,11 +2,6 @@ import textEditForm from '../textfield/TextField.form';
|
|
|
2
2
|
import PasswordEditDisplay from './editForm/Password.edit.display';
|
|
3
3
|
import PasswordEditData from './editForm/Password.edit.data';
|
|
4
4
|
import PasswordEditValidation from './editForm/Password.edit.validation';
|
|
5
|
-
/**
|
|
6
|
-
* The Edit Form function.
|
|
7
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
8
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
9
|
-
*/
|
|
10
5
|
export default function (...extend) {
|
|
11
6
|
return textEditForm([
|
|
12
7
|
{
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import textEditForm from '../textfield/TextField.form';
|
|
2
2
|
import PhoneNumberEditValidation from './editForm/PhoneNumber.edit.validation';
|
|
3
|
-
/**
|
|
4
|
-
* The Edit Form function.
|
|
5
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
6
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
7
|
-
*/
|
|
8
3
|
export default function (...extend) {
|
|
9
4
|
return textEditForm([
|
|
10
5
|
{
|
|
@@ -17,6 +17,13 @@ export default class RadioComponent extends ListComponent {
|
|
|
17
17
|
custom(): any;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
constructor: Function;
|
|
21
|
+
toString(): string;
|
|
22
|
+
toLocaleString(): string;
|
|
23
|
+
valueOf(): Object;
|
|
24
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
25
|
+
isPrototypeOf(v: Object): boolean;
|
|
26
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
20
27
|
};
|
|
21
28
|
static get serverConditionSettings(): {
|
|
22
29
|
valueComponent(classComp: any): {
|
|
@@ -28,11 +35,28 @@ export default class RadioComponent extends ListComponent {
|
|
|
28
35
|
custom: string;
|
|
29
36
|
};
|
|
30
37
|
};
|
|
38
|
+
constructor: Function;
|
|
39
|
+
toString(): string;
|
|
40
|
+
toLocaleString(): string;
|
|
41
|
+
valueOf(): Object;
|
|
42
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
43
|
+
isPrototypeOf(v: Object): boolean;
|
|
44
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
31
45
|
};
|
|
32
46
|
static savedValueTypes(schema: any): any[];
|
|
33
47
|
constructor(component: any, options: any, data: any);
|
|
34
48
|
previousValue: any;
|
|
35
|
-
get inputInfo():
|
|
49
|
+
get inputInfo(): {
|
|
50
|
+
type: string;
|
|
51
|
+
component: any;
|
|
52
|
+
changeEvent: string;
|
|
53
|
+
attr: {
|
|
54
|
+
name: any;
|
|
55
|
+
type: any;
|
|
56
|
+
class: string;
|
|
57
|
+
lang: any;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
36
60
|
get emptyValue(): string;
|
|
37
61
|
get isRadio(): boolean;
|
|
38
62
|
get optionSelectedClass(): string;
|
|
@@ -43,8 +67,7 @@ export default class RadioComponent extends ListComponent {
|
|
|
43
67
|
itemsLoadedResolve: ((value: any) => void) | undefined;
|
|
44
68
|
optionsLoaded: boolean | undefined;
|
|
45
69
|
loadedOptions: any[] | undefined;
|
|
46
|
-
render():
|
|
47
|
-
attach(element: any): Promise<void>;
|
|
70
|
+
render(): any;
|
|
48
71
|
detach(element: any): void;
|
|
49
72
|
validateValueProperty(): boolean;
|
|
50
73
|
validateValueAvailability(setting: any, value: any): boolean;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -2,11 +2,6 @@ import listComponentForm from '../_classes/list/ListComponent.form';
|
|
|
2
2
|
import RadioEditData from './editForm/Radio.edit.data';
|
|
3
3
|
import RadioEditDisplay from './editForm/Radio.edit.display';
|
|
4
4
|
import RadioEditValidation from './editForm/Radio.edit.validation';
|
|
5
|
-
/**
|
|
6
|
-
* The Edit Form function.
|
|
7
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
8
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
9
|
-
*/
|
|
10
5
|
export default function (...extend) {
|
|
11
6
|
return listComponentForm([
|
|
12
7
|
{
|
|
@@ -359,9 +359,10 @@ export default class RadioComponent extends ListComponent {
|
|
|
359
359
|
return changed;
|
|
360
360
|
}
|
|
361
361
|
/**
|
|
362
|
-
* Normalize values coming into updateValue.
|
|
363
|
-
*
|
|
364
|
-
* @
|
|
362
|
+
* Normalize values coming into updateValue.
|
|
363
|
+
*
|
|
364
|
+
* @param value
|
|
365
|
+
* @return {*}
|
|
365
366
|
*/
|
|
366
367
|
normalizeValue(value) {
|
|
367
368
|
const dataType = this.component.dataType || 'auto';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import Components from '../Components';
|
|
2
2
|
import ReCaptchaEditDisplay from './editForm/ReCaptcha.edit.display';
|
|
3
|
-
/**
|
|
4
|
-
* The Edit Form function.
|
|
5
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
6
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
7
|
-
*/
|
|
8
3
|
export default function (...extend) {
|
|
9
4
|
return Components.baseEditForm([
|
|
10
5
|
{
|
|
@@ -9,9 +9,23 @@ export default class SelectComponent extends ListComponent {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
valueComponent(classComp: any): any;
|
|
12
|
+
constructor: Function;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toLocaleString(): string;
|
|
15
|
+
valueOf(): Object;
|
|
16
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
+
isPrototypeOf(v: Object): boolean;
|
|
18
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
12
19
|
};
|
|
13
20
|
static get conditionOperatorsSettings(): {
|
|
14
21
|
valueComponent(classComp: any): any;
|
|
22
|
+
constructor: Function;
|
|
23
|
+
toString(): string;
|
|
24
|
+
toLocaleString(): string;
|
|
25
|
+
valueOf(): Object;
|
|
26
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
+
isPrototypeOf(v: Object): boolean;
|
|
28
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
15
29
|
};
|
|
16
30
|
static savedValueTypes(schema: any): any[];
|
|
17
31
|
templateData: {} | undefined;
|
|
@@ -30,11 +44,21 @@ export default class SelectComponent extends ListComponent {
|
|
|
30
44
|
get dataReady(): any;
|
|
31
45
|
get emptyValue(): {};
|
|
32
46
|
get valueProperty(): any;
|
|
33
|
-
get inputInfo():
|
|
47
|
+
get inputInfo(): {
|
|
48
|
+
type: string;
|
|
49
|
+
component: any;
|
|
50
|
+
changeEvent: string;
|
|
51
|
+
attr: {
|
|
52
|
+
name: any;
|
|
53
|
+
type: any;
|
|
54
|
+
class: string;
|
|
55
|
+
lang: any;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
34
58
|
get isSelectResource(): boolean;
|
|
35
59
|
get itemsFromUrl(): boolean;
|
|
36
60
|
get isInfiniteScrollProvided(): boolean;
|
|
37
|
-
get shouldInitialLoad():
|
|
61
|
+
get shouldInitialLoad(): any;
|
|
38
62
|
get selectMetadata(): any;
|
|
39
63
|
isEntireObjectDisplay(): boolean;
|
|
40
64
|
selectValueAndLabel(data: any): {
|
|
@@ -44,12 +68,11 @@ export default class SelectComponent extends ListComponent {
|
|
|
44
68
|
itemTemplate(data: any, value: any): any;
|
|
45
69
|
/**
|
|
46
70
|
* Adds an option to the select dropdown.
|
|
47
|
-
*
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
50
|
-
* @param {string} [id] - An id. Defaults to a random string.
|
|
71
|
+
*
|
|
72
|
+
* @param value
|
|
73
|
+
* @param label
|
|
51
74
|
*/
|
|
52
|
-
addOption(value: any, label:
|
|
75
|
+
addOption(value: any, label: any, attrs?: {}, id?: string): void;
|
|
53
76
|
addValueOptions(items: any): boolean;
|
|
54
77
|
disableInfiniteScroll(): void;
|
|
55
78
|
set serverCount(value: any);
|
|
@@ -59,7 +82,6 @@ export default class SelectComponent extends ListComponent {
|
|
|
59
82
|
set downloadedResources(value: any);
|
|
60
83
|
get downloadedResources(): any;
|
|
61
84
|
getSingleItemValueForHTMLMode(data: any): any;
|
|
62
|
-
itemValueForHTMLMode(value: any): any;
|
|
63
85
|
get loadingError(): boolean | undefined;
|
|
64
86
|
loadItems(url: any, search: any, headers: any, options: any, method: any, body: any): void;
|
|
65
87
|
getCustomItems(): any;
|
|
@@ -77,7 +99,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
77
99
|
activate(): void;
|
|
78
100
|
setLoadingItem(addToCurrentList?: boolean): void;
|
|
79
101
|
get active(): boolean | undefined;
|
|
80
|
-
render():
|
|
102
|
+
render(): any;
|
|
81
103
|
wrapElement(element: any): any;
|
|
82
104
|
choicesOptions(): any;
|
|
83
105
|
attach(element: any): Promise<void> | undefined;
|
|
@@ -93,8 +115,11 @@ export default class SelectComponent extends ListComponent {
|
|
|
93
115
|
attachRefreshOnBlur(): void;
|
|
94
116
|
addPlaceholderItem(placeholderValue: any): void;
|
|
95
117
|
update(): void;
|
|
96
|
-
|
|
97
|
-
|
|
118
|
+
/**
|
|
119
|
+
* @param {*} value
|
|
120
|
+
* @param {Array} items
|
|
121
|
+
*/
|
|
122
|
+
addCurrentChoices(values: any, items: any[], keyValue: any): any;
|
|
98
123
|
normalizeSingleValue(value: any): any;
|
|
99
124
|
setMetadata(value: any): any;
|
|
100
125
|
updateValue(value: any, flags: any): boolean;
|
|
@@ -106,24 +131,22 @@ export default class SelectComponent extends ListComponent {
|
|
|
106
131
|
validateValueAvailability(setting: any, value: any): boolean;
|
|
107
132
|
/**
|
|
108
133
|
* Performs required transformations on the initial value to use in selectOptions
|
|
109
|
-
* @param {*} value
|
|
110
|
-
* @returns {*} - Returns the options value.
|
|
134
|
+
* @param {*} value
|
|
111
135
|
*/
|
|
112
136
|
getOptionValue(value: any): any;
|
|
113
137
|
/**
|
|
114
138
|
* If component has static values (values, json) or custom values, returns an array of them
|
|
115
|
-
* @returns {Array<*>|undefined}
|
|
139
|
+
* @returns {Array<*>|undefined}
|
|
116
140
|
*/
|
|
117
141
|
getOptionsValues(): Array<any> | undefined;
|
|
118
142
|
/**
|
|
119
143
|
* Output this select dropdown as a string value.
|
|
120
|
-
* @
|
|
144
|
+
* @return {*}
|
|
121
145
|
*/
|
|
122
146
|
isBooleanOrNumber(value: any): any;
|
|
123
147
|
getNormalizedValues(): any;
|
|
124
148
|
asString(value: any, options?: {}): any;
|
|
125
149
|
focus(): void;
|
|
126
|
-
setErrorClasses(elements: any, dirty: any, hasError: any, hasMessages: any, element?: any): void;
|
|
127
150
|
}
|
|
128
151
|
import ListComponent from '../_classes/list/ListComponent';
|
|
129
152
|
import Choices from '../../utils/ChoicesWrapper';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -2,11 +2,6 @@ import listComponentForm from '../_classes/list/ListComponent.form';
|
|
|
2
2
|
import SelectEditData from './editForm/Select.edit.data';
|
|
3
3
|
import SelectEditDisplay from './editForm/Select.edit.display';
|
|
4
4
|
import SelectEditValidation from './editForm/Select.edit.validation';
|
|
5
|
-
/**
|
|
6
|
-
* The Edit Form function.
|
|
7
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
8
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
9
|
-
*/
|
|
10
5
|
export default function (...extend) {
|
|
11
6
|
return listComponentForm([
|
|
12
7
|
{
|
|
@@ -3,7 +3,7 @@ import { Formio } from '../../Formio';
|
|
|
3
3
|
import ListComponent from '../_classes/list/ListComponent';
|
|
4
4
|
import Input from '../_classes/input/Input';
|
|
5
5
|
import Form from '../../Form';
|
|
6
|
-
import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, isSelectResourceWithObjectValue, removeHTML } from '../../utils/utils';
|
|
6
|
+
import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, unescapeHTML, isSelectResourceWithObjectValue, removeHTML } from '../../utils/utils';
|
|
7
7
|
import Choices from '../../utils/ChoicesWrapper';
|
|
8
8
|
export default class SelectComponent extends ListComponent {
|
|
9
9
|
static schema(...extend) {
|
|
@@ -285,10 +285,9 @@ export default class SelectComponent extends ListComponent {
|
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
287
|
* Adds an option to the select dropdown.
|
|
288
|
-
*
|
|
289
|
-
* @param
|
|
290
|
-
* @param
|
|
291
|
-
* @param {string} [id] - An id. Defaults to a random string.
|
|
288
|
+
*
|
|
289
|
+
* @param value
|
|
290
|
+
* @param label
|
|
292
291
|
*/
|
|
293
292
|
addOption(value, label, attrs = {}, id = getRandomComponentId()) {
|
|
294
293
|
if (_.isNil(label))
|
|
@@ -594,7 +593,6 @@ export default class SelectComponent extends ListComponent {
|
|
|
594
593
|
}
|
|
595
594
|
/**
|
|
596
595
|
* Get the request headers for this select dropdown.
|
|
597
|
-
* @returns {*} - Returns the request headers for this select dropdown.
|
|
598
596
|
*/
|
|
599
597
|
get requestHeaders() {
|
|
600
598
|
// Create the headers object.
|
|
@@ -1071,6 +1069,10 @@ export default class SelectComponent extends ListComponent {
|
|
|
1071
1069
|
get visible() {
|
|
1072
1070
|
return super.visible;
|
|
1073
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* @param {*} value
|
|
1074
|
+
* @param {Array} items
|
|
1075
|
+
*/
|
|
1074
1076
|
addCurrentChoices(values, items, keyValue) {
|
|
1075
1077
|
if (!values) {
|
|
1076
1078
|
return false;
|
|
@@ -1219,9 +1221,10 @@ export default class SelectComponent extends ListComponent {
|
|
|
1219
1221
|
}
|
|
1220
1222
|
}
|
|
1221
1223
|
/**
|
|
1222
|
-
* Normalize values coming into updateValue.
|
|
1223
|
-
*
|
|
1224
|
-
* @
|
|
1224
|
+
* Normalize values coming into updateValue.
|
|
1225
|
+
*
|
|
1226
|
+
* @param value
|
|
1227
|
+
* @return {*}
|
|
1225
1228
|
*/
|
|
1226
1229
|
normalizeValue(value) {
|
|
1227
1230
|
if (this.component.multiple && Array.isArray(value)) {
|
|
@@ -1416,8 +1419,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1416
1419
|
}
|
|
1417
1420
|
/**
|
|
1418
1421
|
* Performs required transformations on the initial value to use in selectOptions
|
|
1419
|
-
* @param {*} value
|
|
1420
|
-
* @returns {*} - Returns the options value.
|
|
1422
|
+
* @param {*} value
|
|
1421
1423
|
*/
|
|
1422
1424
|
getOptionValue(value) {
|
|
1423
1425
|
return _.isObject(value) && this.isEntireObjectDisplay()
|
|
@@ -1432,7 +1434,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1432
1434
|
}
|
|
1433
1435
|
/**
|
|
1434
1436
|
* If component has static values (values, json) or custom values, returns an array of them
|
|
1435
|
-
* @returns {Array<*>|undefined}
|
|
1437
|
+
* @returns {Array<*>|undefined}
|
|
1436
1438
|
*/
|
|
1437
1439
|
getOptionsValues() {
|
|
1438
1440
|
let rawItems = [];
|
|
@@ -1472,7 +1474,8 @@ export default class SelectComponent extends ListComponent {
|
|
|
1472
1474
|
}
|
|
1473
1475
|
/**
|
|
1474
1476
|
* Check if a component is eligible for multiple validation
|
|
1475
|
-
*
|
|
1477
|
+
*
|
|
1478
|
+
* @return {boolean}
|
|
1476
1479
|
*/
|
|
1477
1480
|
validateMultiple() {
|
|
1478
1481
|
// Select component will contain one input when flagged as multiple.
|
|
@@ -1480,7 +1483,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1480
1483
|
}
|
|
1481
1484
|
/**
|
|
1482
1485
|
* Output this select dropdown as a string value.
|
|
1483
|
-
* @
|
|
1486
|
+
* @return {*}
|
|
1484
1487
|
*/
|
|
1485
1488
|
isBooleanOrNumber(value) {
|
|
1486
1489
|
return typeof value === 'number' || typeof value === 'boolean';
|
|
@@ -9,6 +9,13 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
9
9
|
custom: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
constructor: Function;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toLocaleString(): string;
|
|
15
|
+
valueOf(): Object;
|
|
16
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
+
isPrototypeOf(v: Object): boolean;
|
|
18
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
12
19
|
};
|
|
13
20
|
static get conditionOperatorsSettings(): {
|
|
14
21
|
valueComponent(classComp: any): {
|
|
@@ -20,14 +27,22 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
20
27
|
custom: string;
|
|
21
28
|
};
|
|
22
29
|
};
|
|
30
|
+
constructor: Function;
|
|
31
|
+
toString(): string;
|
|
32
|
+
toLocaleString(): string;
|
|
33
|
+
valueOf(): Object;
|
|
34
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
35
|
+
isPrototypeOf(v: Object): boolean;
|
|
36
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
23
37
|
};
|
|
24
38
|
static savedValueTypes(schema: any): string[];
|
|
25
39
|
constructor(...args: any[]);
|
|
26
40
|
get emptyValue(): any;
|
|
27
41
|
/**
|
|
28
42
|
* Only empty if the values are all false.
|
|
29
|
-
*
|
|
30
|
-
* @
|
|
43
|
+
*
|
|
44
|
+
* @param value
|
|
45
|
+
* @return {boolean}
|
|
31
46
|
*/
|
|
32
47
|
isEmpty(value?: any): boolean;
|
|
33
48
|
setInputsDisabled(value: any, onlyUnchecked: any): void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import radioEditForm from '../radio/Radio.form';
|
|
2
2
|
import SelectBoxesEditValidation from './editForm/SelectBoxes.edit.validation';
|
|
3
|
-
/**
|
|
4
|
-
* The Edit Form function.
|
|
5
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
6
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
7
|
-
*/
|
|
8
3
|
export default function (...extend) {
|
|
9
4
|
return radioEditForm([
|
|
10
5
|
{
|
|
@@ -79,8 +79,9 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Only empty if the values are all false.
|
|
82
|
-
*
|
|
83
|
-
* @
|
|
82
|
+
*
|
|
83
|
+
* @param value
|
|
84
|
+
* @return {boolean}
|
|
84
85
|
*/
|
|
85
86
|
isEmpty(value = this.dataValue) {
|
|
86
87
|
let empty = true;
|
|
@@ -104,8 +105,9 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
106
107
|
* Normalize values coming into updateValue.
|
|
107
|
-
*
|
|
108
|
-
* @
|
|
108
|
+
*
|
|
109
|
+
* @param value
|
|
110
|
+
* @return {*}
|
|
109
111
|
*/
|
|
110
112
|
normalizeValue(value) {
|
|
111
113
|
value = value || {};
|
|
@@ -138,9 +140,9 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
138
140
|
}
|
|
139
141
|
/**
|
|
140
142
|
* Set the value of this component.
|
|
141
|
-
*
|
|
142
|
-
* @param
|
|
143
|
-
* @
|
|
143
|
+
*
|
|
144
|
+
* @param value
|
|
145
|
+
* @param flags
|
|
144
146
|
*/
|
|
145
147
|
setValue(value, flags = {}) {
|
|
146
148
|
const changed = this.updateValue(value, flags);
|
|
@@ -9,9 +9,23 @@ export default class SignatureComponent extends Input {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
|
+
constructor: Function;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toLocaleString(): string;
|
|
15
|
+
valueOf(): Object;
|
|
16
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
+
isPrototypeOf(v: Object): boolean;
|
|
18
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
12
19
|
};
|
|
13
20
|
static get conditionOperatorsSettings(): {
|
|
14
21
|
operators: string[];
|
|
22
|
+
constructor: Function;
|
|
23
|
+
toString(): string;
|
|
24
|
+
toLocaleString(): string;
|
|
25
|
+
valueOf(): Object;
|
|
26
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
+
isPrototypeOf(v: Object): boolean;
|
|
28
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
15
29
|
};
|
|
16
30
|
static savedValueTypes(schema: any): string[];
|
|
17
31
|
currentWidth: any;
|
|
@@ -22,7 +36,6 @@ export default class SignatureComponent extends Input {
|
|
|
22
36
|
showCanvas(show: any): void;
|
|
23
37
|
onDisabled(): void;
|
|
24
38
|
checkSize(force: any, scale: any): void;
|
|
25
|
-
getModalPreviewTemplate(): any;
|
|
26
39
|
signaturePad: SignaturePad | null | undefined;
|
|
27
40
|
observer: any;
|
|
28
41
|
getValueAsString(value: any): "" | "Yes" | "No";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -2,11 +2,6 @@ import Components from '../Components';
|
|
|
2
2
|
import SignatureEditData from './editForm/Signature.edit.data';
|
|
3
3
|
import SignatureEditDisplay from './editForm/Signature.edit.display';
|
|
4
4
|
import SignatureEditValidation from './editForm/Signature.edit.validation';
|
|
5
|
-
/**
|
|
6
|
-
* The Edit Form function.
|
|
7
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
8
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
9
|
-
*/
|
|
10
5
|
export default function (...extend) {
|
|
11
6
|
return Components.baseEditForm([
|
|
12
7
|
{
|
|
@@ -9,17 +9,29 @@ export default class SurveyComponent extends Field {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
|
+
constructor: Function;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toLocaleString(): string;
|
|
15
|
+
valueOf(): Object;
|
|
16
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
+
isPrototypeOf(v: Object): boolean;
|
|
18
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
12
19
|
};
|
|
13
20
|
static get conditionOperatorsSettings(): {
|
|
14
21
|
operators: string[];
|
|
22
|
+
constructor: Function;
|
|
23
|
+
toString(): string;
|
|
24
|
+
toLocaleString(): string;
|
|
25
|
+
valueOf(): Object;
|
|
26
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
+
isPrototypeOf(v: Object): boolean;
|
|
28
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
15
29
|
};
|
|
16
30
|
static savedValueTypes(schema: any): string[];
|
|
17
|
-
render():
|
|
18
|
-
attach(element: any): Promise<void>;
|
|
31
|
+
render(): any;
|
|
19
32
|
setValue(value: any, flags?: {}): boolean;
|
|
20
33
|
get emptyValue(): {};
|
|
21
34
|
validateRequired(setting: any, value: any): any;
|
|
22
35
|
getInputName(question: any): string;
|
|
23
|
-
getValueAsString(value: any, options: any): any;
|
|
24
36
|
}
|
|
25
37
|
import Field from '../_classes/field/Field';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -2,11 +2,6 @@ import Components from '../Components';
|
|
|
2
2
|
import SurveyEditData from './editForm/Survey.edit.data';
|
|
3
3
|
import SurveyEditDisplay from './editForm/Survey.edit.display';
|
|
4
4
|
import SurveyEditValidation from './editForm/Survey.edit.validation';
|
|
5
|
-
/**
|
|
6
|
-
* The Edit Form function.
|
|
7
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
8
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
9
|
-
*/
|
|
10
5
|
export default function (...extend) {
|
|
11
6
|
return Components.baseEditForm([
|
|
12
7
|
{
|