@formio/js 5.0.0-dev.5639.43f7313 → 5.0.0-dev.5641.6eb7b96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +45 -0
- package/dist/formio.builder.css +0 -4
- package/dist/formio.builder.min.css +1 -1
- 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.css +0 -4
- package/dist/formio.form.js +607 -1188
- package/dist/formio.form.min.css +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +3 -5
- package/dist/formio.full.css +0 -4
- package/dist/formio.full.js +651 -912
- package/dist/formio.full.min.css +1 -1
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +3 -5
- package/dist/formio.js +18 -18
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1829 -492
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +10 -4
- package/embed.d.ts +1 -0
- package/form.d.ts +1 -0
- package/lib/cjs/CDN.d.ts +1 -0
- package/lib/cjs/CDN.js +6 -3
- package/lib/cjs/Element.d.ts +86 -96
- package/lib/cjs/Element.js +68 -78
- package/lib/cjs/Embed.d.ts +1 -1
- package/lib/cjs/Embed.js +52 -12
- package/lib/cjs/Form.d.ts +365 -36
- package/lib/cjs/Form.js +50 -64
- package/lib/cjs/FormBuilder.d.ts +187 -2
- package/lib/cjs/FormBuilder.js +30 -8
- package/lib/cjs/InlineEmbed.d.ts +7 -0
- package/lib/cjs/InlineEmbed.js +116 -0
- package/lib/cjs/PDF.d.ts +11 -13
- package/lib/cjs/PDF.js +6 -8
- package/lib/cjs/Webform.d.ts +180 -139
- package/lib/cjs/Webform.js +309 -296
- package/lib/cjs/WebformBuilder.d.ts +16 -14
- package/lib/cjs/WebformBuilder.js +19 -12
- package/lib/cjs/Wizard.d.ts +31 -21
- package/lib/cjs/Wizard.js +43 -20
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/cjs/components/Components.d.ts +4 -4
- package/lib/cjs/components/Components.js +3 -3
- package/lib/cjs/components/_classes/component/Component.d.ts +502 -269
- package/lib/cjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/cjs/components/_classes/component/Component.form.js +5 -0
- package/lib/cjs/components/_classes/component/Component.js +434 -193
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
- package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
- package/lib/cjs/components/_classes/field/Field.d.ts +11 -2
- package/lib/cjs/components/_classes/field/Field.js +13 -1
- package/lib/cjs/components/_classes/input/Input.d.ts +4 -3
- package/lib/cjs/components/_classes/input/Input.js +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +6 -3
- package/lib/cjs/components/_classes/list/ListComponent.form.js +5 -0
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +37 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +163 -67
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +5 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.js +175 -54
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
- package/lib/cjs/components/address/Address.d.ts +4 -2
- package/lib/cjs/components/address/Address.form.d.ts +6 -3
- package/lib/cjs/components/address/Address.form.js +5 -0
- package/lib/cjs/components/button/Button.d.ts +3 -12
- package/lib/cjs/components/button/Button.form.d.ts +6 -3
- package/lib/cjs/components/button/Button.form.js +5 -0
- package/lib/cjs/components/button/Button.js +5 -0
- package/lib/cjs/components/checkbox/Checkbox.d.ts +4 -27
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +6 -3
- package/lib/cjs/components/checkbox/Checkbox.form.js +5 -0
- package/lib/cjs/components/columns/Columns.d.ts +3 -2
- package/lib/cjs/components/columns/Columns.form.d.ts +6 -3
- package/lib/cjs/components/columns/Columns.form.js +5 -0
- package/lib/cjs/components/columns/Columns.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +6 -3
- package/lib/cjs/components/container/Container.form.js +5 -0
- package/lib/cjs/components/content/Content.d.ts +2 -1
- package/lib/cjs/components/content/Content.form.d.ts +6 -3
- package/lib/cjs/components/content/Content.form.js +5 -0
- package/lib/cjs/components/currency/Currency.form.d.ts +6 -3
- package/lib/cjs/components/currency/Currency.form.js +5 -0
- package/lib/cjs/components/currency/Currency.js +1 -2
- package/lib/cjs/components/datagrid/DataGrid.d.ts +8 -7
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +6 -3
- package/lib/cjs/components/datagrid/DataGrid.form.js +5 -0
- package/lib/cjs/components/datagrid/DataGrid.js +5 -5
- package/lib/cjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/cjs/components/datamap/DataMap.form.d.ts +6 -3
- package/lib/cjs/components/datamap/DataMap.form.js +5 -0
- package/lib/cjs/components/datetime/DateTime.d.ts +0 -14
- package/lib/cjs/components/datetime/DateTime.form.d.ts +6 -3
- package/lib/cjs/components/datetime/DateTime.form.js +5 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
- package/lib/cjs/components/day/Day.d.ts +22 -48
- package/lib/cjs/components/day/Day.form.d.ts +6 -3
- package/lib/cjs/components/day/Day.form.js +5 -0
- package/lib/cjs/components/day/Day.js +15 -20
- package/lib/cjs/components/editgrid/EditGrid.d.ts +7 -3
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +6 -3
- package/lib/cjs/components/editgrid/EditGrid.form.js +5 -0
- package/lib/cjs/components/editgrid/EditGrid.js +3 -3
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
- package/lib/cjs/components/email/Email.form.d.ts +6 -3
- package/lib/cjs/components/email/Email.form.js +5 -0
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +6 -3
- package/lib/cjs/components/fieldset/Fieldset.form.js +5 -0
- package/lib/cjs/components/file/File.d.ts +9 -22
- package/lib/cjs/components/file/File.form.d.ts +6 -3
- package/lib/cjs/components/file/File.form.js +5 -0
- package/lib/cjs/components/form/Form.d.ts +31 -20
- package/lib/cjs/components/form/Form.form.d.ts +6 -3
- package/lib/cjs/components/form/Form.form.js +5 -0
- package/lib/cjs/components/form/Form.js +13 -10
- package/lib/cjs/components/hidden/Hidden.d.ts +1 -11
- package/lib/cjs/components/hidden/Hidden.form.d.ts +6 -3
- package/lib/cjs/components/hidden/Hidden.form.js +5 -0
- package/lib/cjs/components/hidden/Hidden.js +1 -2
- package/lib/cjs/components/html/HTML.d.ts +2 -1
- package/lib/cjs/components/html/HTML.form.d.ts +6 -3
- package/lib/cjs/components/html/HTML.form.js +5 -0
- package/lib/cjs/components/number/Number.d.ts +3 -17
- package/lib/cjs/components/number/Number.form.d.ts +6 -3
- package/lib/cjs/components/number/Number.form.js +5 -0
- package/lib/cjs/components/number/Number.js +1 -2
- package/lib/cjs/components/panel/Panel.form.d.ts +6 -3
- package/lib/cjs/components/panel/Panel.form.js +5 -0
- package/lib/cjs/components/panel/Panel.js +0 -1
- package/lib/cjs/components/password/Password.form.d.ts +6 -3
- package/lib/cjs/components/password/Password.form.js +5 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +5 -0
- package/lib/cjs/components/radio/Radio.d.ts +3 -26
- package/lib/cjs/components/radio/Radio.form.d.ts +6 -3
- package/lib/cjs/components/radio/Radio.form.js +5 -0
- package/lib/cjs/components/radio/Radio.js +3 -4
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/cjs/components/select/Select.d.ts +16 -39
- package/lib/cjs/components/select/Select.form.d.ts +6 -3
- package/lib/cjs/components/select/Select.form.js +5 -0
- package/lib/cjs/components/select/Select.js +14 -17
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -17
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +5 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -9
- package/lib/cjs/components/signature/Signature.d.ts +1 -14
- package/lib/cjs/components/signature/Signature.form.d.ts +6 -3
- package/lib/cjs/components/signature/Signature.form.js +5 -0
- package/lib/cjs/components/survey/Survey.d.ts +3 -15
- package/lib/cjs/components/survey/Survey.form.d.ts +6 -3
- package/lib/cjs/components/survey/Survey.form.js +5 -0
- package/lib/cjs/components/table/Table.d.ts +2 -1
- package/lib/cjs/components/table/Table.form.d.ts +6 -3
- package/lib/cjs/components/table/Table.form.js +5 -0
- package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/cjs/components/tabs/Tabs.form.d.ts +6 -3
- package/lib/cjs/components/tabs/Tabs.form.js +5 -0
- package/lib/cjs/components/tabs/Tabs.js +1 -2
- package/lib/cjs/components/tags/Tags.d.ts +0 -14
- package/lib/cjs/components/tags/Tags.form.d.ts +6 -3
- package/lib/cjs/components/tags/Tags.form.js +5 -0
- package/lib/cjs/components/textarea/TextArea.d.ts +4 -9
- package/lib/cjs/components/textarea/TextArea.form.d.ts +6 -3
- package/lib/cjs/components/textarea/TextArea.form.js +5 -0
- package/lib/cjs/components/textarea/TextArea.js +2 -2
- package/lib/cjs/components/textfield/TextField.d.ts +14 -30
- package/lib/cjs/components/textfield/TextField.form.d.ts +6 -3
- package/lib/cjs/components/textfield/TextField.form.js +5 -0
- package/lib/cjs/components/textfield/TextField.js +14 -17
- package/lib/cjs/components/time/Time.form.d.ts +6 -3
- package/lib/cjs/components/time/Time.form.js +5 -0
- package/lib/cjs/components/unknown/Unknown.form.d.ts +5 -34
- package/lib/cjs/components/unknown/Unknown.form.js +4 -0
- package/lib/cjs/components/url/Url.form.d.ts +6 -3
- package/lib/cjs/components/url/Url.form.js +5 -0
- package/lib/cjs/components/well/Well.form.d.ts +6 -3
- package/lib/cjs/components/well/Well.form.js +5 -0
- package/lib/cjs/formio.embed.d.ts +1 -2
- package/lib/cjs/formio.embed.js +2 -100
- package/lib/cjs/formio.form.d.ts +11 -4
- package/lib/cjs/formio.form.js +13 -5
- package/lib/cjs/providers/Providers.d.ts +36 -5
- package/lib/cjs/providers/Providers.js +29 -0
- package/lib/cjs/providers/address/AddressProvider.d.ts +131 -12
- package/lib/cjs/providers/address/AddressProvider.js +88 -2
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +48 -1
- package/lib/cjs/providers/address/AzureAddressProvider.js +37 -0
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +27 -4
- package/lib/cjs/providers/address/CustomAddressProvider.js +34 -0
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +130 -6
- package/lib/cjs/providers/address/GoogleAddressProvider.js +72 -0
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +32 -7
- package/lib/cjs/providers/address/NominatimAddressProvider.js +33 -0
- package/lib/cjs/providers/address/index.d.ts +3 -1
- package/lib/cjs/providers/processor/fileProcessor.d.ts +7 -1
- package/lib/cjs/providers/processor/fileProcessor.js +6 -0
- package/lib/cjs/providers/storage/azure.d.ts +6 -13
- package/lib/cjs/providers/storage/azure.js +5 -0
- package/lib/cjs/providers/storage/base64.d.ts +5 -6
- package/lib/cjs/providers/storage/base64.js +4 -0
- package/lib/cjs/providers/storage/dropbox.d.ts +6 -4
- package/lib/cjs/providers/storage/dropbox.js +5 -0
- package/lib/cjs/providers/storage/googleDrive.d.ts +7 -5
- package/lib/cjs/providers/storage/googleDrive.js +6 -0
- package/lib/cjs/providers/storage/indexeddb.d.ts +5 -7
- package/lib/cjs/providers/storage/indexeddb.js +4 -0
- package/lib/cjs/providers/storage/s3.d.ts +6 -20
- package/lib/cjs/providers/storage/s3.js +5 -0
- package/lib/cjs/providers/storage/url.d.ts +6 -7
- package/lib/cjs/providers/storage/url.js +10 -0
- package/lib/cjs/providers/storage/util.d.ts +24 -1
- package/lib/cjs/providers/storage/util.js +18 -0
- package/lib/cjs/templates/Templates.d.ts +1 -0
- package/lib/cjs/utils/Evaluator.d.ts +6 -3
- package/lib/cjs/utils/Evaluator.js +11 -20
- package/lib/cjs/utils/builder.d.ts +9 -7
- package/lib/cjs/utils/builder.js +10 -5
- package/lib/cjs/utils/calendarUtils.d.ts +7 -13
- package/lib/cjs/utils/calendarUtils.js +10 -17
- package/lib/cjs/utils/formUtils.d.ts +43 -171
- package/lib/cjs/utils/formUtils.js +38 -569
- package/lib/cjs/utils/utils.d.ts +370 -218
- package/lib/cjs/utils/utils.js +348 -230
- package/lib/cjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/cjs/widgets/CalendarWidget.js +9 -11
- package/lib/mjs/CDN.d.ts +1 -0
- package/lib/mjs/CDN.js +6 -3
- package/lib/mjs/Element.d.ts +86 -96
- package/lib/mjs/Element.js +68 -78
- package/lib/mjs/Embed.d.ts +1 -1
- package/lib/mjs/Embed.js +52 -12
- package/lib/mjs/Form.d.ts +365 -36
- package/lib/mjs/Form.js +140 -57
- package/lib/mjs/FormBuilder.d.ts +187 -2
- package/lib/mjs/FormBuilder.js +32 -8
- package/lib/mjs/InlineEmbed.d.ts +7 -0
- package/lib/mjs/InlineEmbed.js +112 -0
- package/lib/mjs/PDF.d.ts +11 -13
- package/lib/mjs/PDF.js +6 -8
- package/lib/mjs/Webform.d.ts +180 -139
- package/lib/mjs/Webform.js +321 -308
- package/lib/mjs/WebformBuilder.d.ts +16 -14
- package/lib/mjs/WebformBuilder.js +19 -12
- package/lib/mjs/Wizard.d.ts +31 -21
- package/lib/mjs/Wizard.js +42 -19
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/mjs/components/Components.d.ts +4 -4
- package/lib/mjs/components/Components.js +3 -3
- package/lib/mjs/components/_classes/component/Component.d.ts +502 -269
- package/lib/mjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/mjs/components/_classes/component/Component.form.js +5 -0
- package/lib/mjs/components/_classes/component/Component.js +434 -193
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/mjs/components/_classes/field/Field.d.ts +11 -2
- package/lib/mjs/components/_classes/field/Field.js +13 -1
- package/lib/mjs/components/_classes/input/Input.d.ts +4 -3
- package/lib/mjs/components/_classes/input/Input.js +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +6 -3
- package/lib/mjs/components/_classes/list/ListComponent.form.js +5 -0
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +37 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +163 -67
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +5 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.js +175 -54
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
- package/lib/mjs/components/address/Address.d.ts +4 -2
- package/lib/mjs/components/address/Address.form.d.ts +6 -3
- package/lib/mjs/components/address/Address.form.js +5 -0
- package/lib/mjs/components/button/Button.d.ts +3 -12
- package/lib/mjs/components/button/Button.form.d.ts +6 -3
- package/lib/mjs/components/button/Button.form.js +5 -0
- package/lib/mjs/components/button/Button.js +5 -0
- package/lib/mjs/components/checkbox/Checkbox.d.ts +4 -27
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +6 -3
- package/lib/mjs/components/checkbox/Checkbox.form.js +5 -0
- package/lib/mjs/components/columns/Columns.d.ts +3 -2
- package/lib/mjs/components/columns/Columns.form.d.ts +6 -3
- package/lib/mjs/components/columns/Columns.form.js +5 -0
- package/lib/mjs/components/columns/Columns.js +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +6 -3
- package/lib/mjs/components/container/Container.form.js +5 -0
- package/lib/mjs/components/content/Content.d.ts +2 -1
- package/lib/mjs/components/content/Content.form.d.ts +6 -3
- package/lib/mjs/components/content/Content.form.js +5 -0
- package/lib/mjs/components/currency/Currency.form.d.ts +6 -3
- package/lib/mjs/components/currency/Currency.form.js +5 -0
- package/lib/mjs/components/currency/Currency.js +1 -2
- package/lib/mjs/components/datagrid/DataGrid.d.ts +8 -7
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +6 -3
- package/lib/mjs/components/datagrid/DataGrid.form.js +5 -0
- package/lib/mjs/components/datagrid/DataGrid.js +5 -5
- package/lib/mjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/mjs/components/datamap/DataMap.form.d.ts +6 -3
- package/lib/mjs/components/datamap/DataMap.form.js +5 -0
- package/lib/mjs/components/datetime/DateTime.d.ts +0 -14
- package/lib/mjs/components/datetime/DateTime.form.d.ts +6 -3
- package/lib/mjs/components/datetime/DateTime.form.js +5 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +22 -48
- package/lib/mjs/components/day/Day.form.d.ts +6 -3
- package/lib/mjs/components/day/Day.form.js +5 -0
- package/lib/mjs/components/day/Day.js +15 -20
- package/lib/mjs/components/editgrid/EditGrid.d.ts +7 -3
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +6 -3
- package/lib/mjs/components/editgrid/EditGrid.form.js +5 -0
- package/lib/mjs/components/editgrid/EditGrid.js +3 -3
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +6 -3
- package/lib/mjs/components/email/Email.form.js +5 -0
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +6 -3
- package/lib/mjs/components/fieldset/Fieldset.form.js +5 -0
- package/lib/mjs/components/file/File.d.ts +9 -22
- package/lib/mjs/components/file/File.form.d.ts +6 -3
- package/lib/mjs/components/file/File.form.js +5 -0
- package/lib/mjs/components/form/Form.d.ts +31 -20
- package/lib/mjs/components/form/Form.form.d.ts +6 -3
- package/lib/mjs/components/form/Form.form.js +5 -0
- package/lib/mjs/components/form/Form.js +13 -10
- package/lib/mjs/components/hidden/Hidden.d.ts +1 -11
- package/lib/mjs/components/hidden/Hidden.form.d.ts +6 -3
- package/lib/mjs/components/hidden/Hidden.form.js +5 -0
- package/lib/mjs/components/hidden/Hidden.js +1 -2
- package/lib/mjs/components/html/HTML.d.ts +2 -1
- package/lib/mjs/components/html/HTML.form.d.ts +6 -3
- package/lib/mjs/components/html/HTML.form.js +5 -0
- package/lib/mjs/components/number/Number.d.ts +3 -17
- package/lib/mjs/components/number/Number.form.d.ts +6 -3
- package/lib/mjs/components/number/Number.form.js +5 -0
- package/lib/mjs/components/number/Number.js +1 -2
- package/lib/mjs/components/panel/Panel.form.d.ts +6 -3
- package/lib/mjs/components/panel/Panel.form.js +5 -0
- package/lib/mjs/components/panel/Panel.js +0 -1
- package/lib/mjs/components/password/Password.form.d.ts +6 -3
- package/lib/mjs/components/password/Password.form.js +5 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +5 -0
- package/lib/mjs/components/radio/Radio.d.ts +3 -26
- package/lib/mjs/components/radio/Radio.form.d.ts +6 -3
- package/lib/mjs/components/radio/Radio.form.js +5 -0
- package/lib/mjs/components/radio/Radio.js +3 -4
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/mjs/components/select/Select.d.ts +16 -39
- package/lib/mjs/components/select/Select.form.d.ts +6 -3
- package/lib/mjs/components/select/Select.form.js +5 -0
- package/lib/mjs/components/select/Select.js +15 -18
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -17
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +5 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -9
- package/lib/mjs/components/signature/Signature.d.ts +1 -14
- package/lib/mjs/components/signature/Signature.form.d.ts +6 -3
- package/lib/mjs/components/signature/Signature.form.js +5 -0
- package/lib/mjs/components/survey/Survey.d.ts +3 -15
- package/lib/mjs/components/survey/Survey.form.d.ts +6 -3
- package/lib/mjs/components/survey/Survey.form.js +5 -0
- package/lib/mjs/components/table/Table.d.ts +2 -1
- package/lib/mjs/components/table/Table.form.d.ts +6 -3
- package/lib/mjs/components/table/Table.form.js +5 -0
- package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/mjs/components/tabs/Tabs.form.d.ts +6 -3
- package/lib/mjs/components/tabs/Tabs.form.js +5 -0
- package/lib/mjs/components/tabs/Tabs.js +1 -2
- package/lib/mjs/components/tags/Tags.d.ts +0 -14
- package/lib/mjs/components/tags/Tags.form.d.ts +6 -3
- package/lib/mjs/components/tags/Tags.form.js +5 -0
- package/lib/mjs/components/textarea/TextArea.d.ts +4 -9
- package/lib/mjs/components/textarea/TextArea.form.d.ts +6 -3
- package/lib/mjs/components/textarea/TextArea.form.js +5 -0
- package/lib/mjs/components/textarea/TextArea.js +2 -2
- package/lib/mjs/components/textfield/TextField.d.ts +14 -30
- package/lib/mjs/components/textfield/TextField.form.d.ts +6 -3
- package/lib/mjs/components/textfield/TextField.form.js +5 -0
- package/lib/mjs/components/textfield/TextField.js +14 -17
- package/lib/mjs/components/time/Time.form.d.ts +6 -3
- package/lib/mjs/components/time/Time.form.js +5 -0
- package/lib/mjs/components/unknown/Unknown.form.d.ts +5 -34
- package/lib/mjs/components/unknown/Unknown.form.js +4 -0
- package/lib/mjs/components/url/Url.form.d.ts +6 -3
- package/lib/mjs/components/url/Url.form.js +5 -0
- package/lib/mjs/components/well/Well.form.d.ts +6 -3
- package/lib/mjs/components/well/Well.form.js +5 -0
- package/lib/mjs/formio.embed.d.ts +1 -2
- package/lib/mjs/formio.embed.js +2 -99
- package/lib/mjs/formio.form.d.ts +11 -4
- package/lib/mjs/formio.form.js +10 -3
- package/lib/mjs/providers/Providers.d.ts +36 -5
- package/lib/mjs/providers/Providers.js +29 -0
- package/lib/mjs/providers/address/AddressProvider.d.ts +131 -12
- package/lib/mjs/providers/address/AddressProvider.js +88 -2
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +48 -1
- package/lib/mjs/providers/address/AzureAddressProvider.js +37 -0
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +27 -4
- package/lib/mjs/providers/address/CustomAddressProvider.js +34 -0
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +130 -6
- package/lib/mjs/providers/address/GoogleAddressProvider.js +72 -0
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +32 -7
- package/lib/mjs/providers/address/NominatimAddressProvider.js +33 -0
- package/lib/mjs/providers/address/index.d.ts +3 -1
- package/lib/mjs/providers/processor/fileProcessor.d.ts +7 -1
- package/lib/mjs/providers/processor/fileProcessor.js +6 -0
- package/lib/mjs/providers/storage/azure.d.ts +6 -13
- package/lib/mjs/providers/storage/azure.js +5 -0
- package/lib/mjs/providers/storage/base64.d.ts +5 -6
- package/lib/mjs/providers/storage/base64.js +4 -0
- package/lib/mjs/providers/storage/dropbox.d.ts +6 -4
- package/lib/mjs/providers/storage/dropbox.js +5 -0
- package/lib/mjs/providers/storage/googleDrive.d.ts +7 -5
- package/lib/mjs/providers/storage/googleDrive.js +6 -0
- package/lib/mjs/providers/storage/indexeddb.d.ts +5 -7
- package/lib/mjs/providers/storage/indexeddb.js +4 -0
- package/lib/mjs/providers/storage/s3.d.ts +6 -20
- package/lib/mjs/providers/storage/s3.js +5 -0
- package/lib/mjs/providers/storage/url.d.ts +6 -7
- package/lib/mjs/providers/storage/url.js +10 -0
- package/lib/mjs/providers/storage/util.d.ts +24 -1
- package/lib/mjs/providers/storage/util.js +18 -0
- package/lib/mjs/templates/Templates.d.ts +1 -0
- package/lib/mjs/utils/Evaluator.d.ts +6 -3
- package/lib/mjs/utils/Evaluator.js +9 -20
- package/lib/mjs/utils/builder.d.ts +9 -7
- package/lib/mjs/utils/builder.js +10 -5
- package/lib/mjs/utils/calendarUtils.d.ts +7 -13
- package/lib/mjs/utils/calendarUtils.js +10 -17
- package/lib/mjs/utils/formUtils.d.ts +43 -171
- package/lib/mjs/utils/formUtils.js +6 -554
- package/lib/mjs/utils/utils.d.ts +370 -218
- package/lib/mjs/utils/utils.js +339 -222
- package/lib/mjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/mjs/widgets/CalendarWidget.js +9 -11
- package/package.json +22 -22
- package/sdk.d.ts +1 -0
- package/utils.d.ts +1 -0
|
@@ -1,6 +1,11 @@
|
|
|
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
|
+
*/
|
|
4
9
|
export default function (...extend) {
|
|
5
10
|
return nestedComponentForm([
|
|
6
11
|
{
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import NestedComponent from '../_classes/nested/NestedComponent';
|
|
2
2
|
import { isChildOf } from '../../utils/utils';
|
|
3
|
-
import FormComponent from '../form/Form';
|
|
4
3
|
export default class PanelComponent extends NestedComponent {
|
|
5
4
|
static schema(...extend) {
|
|
6
5
|
return NestedComponent.schema({
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import 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
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return textEditForm([
|
|
7
12
|
{
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import 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
|
+
*/
|
|
3
8
|
export default function (...extend) {
|
|
4
9
|
return textEditForm([
|
|
5
10
|
{
|
|
@@ -17,13 +17,6 @@ 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;
|
|
27
20
|
};
|
|
28
21
|
static get serverConditionSettings(): {
|
|
29
22
|
valueComponent(classComp: any): {
|
|
@@ -35,28 +28,11 @@ export default class RadioComponent extends ListComponent {
|
|
|
35
28
|
custom: string;
|
|
36
29
|
};
|
|
37
30
|
};
|
|
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;
|
|
45
31
|
};
|
|
46
32
|
static savedValueTypes(schema: any): any[];
|
|
47
33
|
constructor(component: any, options: any, data: any);
|
|
48
34
|
previousValue: any;
|
|
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
|
-
};
|
|
35
|
+
get inputInfo(): any;
|
|
60
36
|
get emptyValue(): string;
|
|
61
37
|
get isRadio(): boolean;
|
|
62
38
|
get optionSelectedClass(): string;
|
|
@@ -67,7 +43,8 @@ export default class RadioComponent extends ListComponent {
|
|
|
67
43
|
itemsLoadedResolve: ((value: any) => void) | undefined;
|
|
68
44
|
optionsLoaded: boolean | undefined;
|
|
69
45
|
loadedOptions: any[] | undefined;
|
|
70
|
-
render():
|
|
46
|
+
render(): import("../_classes/field/Field").default;
|
|
47
|
+
attach(element: any): Promise<void>;
|
|
71
48
|
detach(element: any): void;
|
|
72
49
|
validateValueProperty(): boolean;
|
|
73
50
|
validateValueAvailability(setting: any, value: any): boolean;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import 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
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return listComponentForm([
|
|
7
12
|
{
|
|
@@ -359,10 +359,9 @@ export default class RadioComponent extends ListComponent {
|
|
|
359
359
|
return changed;
|
|
360
360
|
}
|
|
361
361
|
/**
|
|
362
|
-
* Normalize values coming into updateValue.
|
|
363
|
-
*
|
|
364
|
-
* @
|
|
365
|
-
* @return {*}
|
|
362
|
+
* Normalize values coming into updateValue. For example, depending on the configuration, string value `"true"` will be normalized to boolean `true`.
|
|
363
|
+
* @param {*} value - The value to normalize
|
|
364
|
+
* @returns {*} - Returns the normalized value
|
|
366
365
|
*/
|
|
367
366
|
normalizeValue(value) {
|
|
368
367
|
const dataType = this.component.dataType || 'auto';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import 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
|
+
*/
|
|
3
8
|
export default function (...extend) {
|
|
4
9
|
return Components.baseEditForm([
|
|
5
10
|
{
|
|
@@ -9,23 +9,9 @@ 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;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
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;
|
|
29
15
|
};
|
|
30
16
|
static savedValueTypes(schema: any): any[];
|
|
31
17
|
templateData: {} | undefined;
|
|
@@ -44,21 +30,11 @@ export default class SelectComponent extends ListComponent {
|
|
|
44
30
|
get dataReady(): any;
|
|
45
31
|
get emptyValue(): {};
|
|
46
32
|
get valueProperty(): any;
|
|
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
|
-
};
|
|
33
|
+
get inputInfo(): any;
|
|
58
34
|
get isSelectResource(): boolean;
|
|
59
35
|
get itemsFromUrl(): boolean;
|
|
60
36
|
get isInfiniteScrollProvided(): boolean;
|
|
61
|
-
get shouldInitialLoad():
|
|
37
|
+
get shouldInitialLoad(): boolean;
|
|
62
38
|
get selectMetadata(): any;
|
|
63
39
|
isEntireObjectDisplay(): boolean;
|
|
64
40
|
selectValueAndLabel(data: any): {
|
|
@@ -68,11 +44,12 @@ export default class SelectComponent extends ListComponent {
|
|
|
68
44
|
itemTemplate(data: any, value: any): any;
|
|
69
45
|
/**
|
|
70
46
|
* Adds an option to the select dropdown.
|
|
71
|
-
*
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
47
|
+
* @param {*} value - The value of the new option.
|
|
48
|
+
* @param {string} label - The label of the new option.
|
|
49
|
+
* @param {object} [attrs] - Additional value attributes. Defaults to {}.
|
|
50
|
+
* @param {string} [id] - An id. Defaults to a random string.
|
|
74
51
|
*/
|
|
75
|
-
addOption(value: any, label:
|
|
52
|
+
addOption(value: any, label: string, attrs?: object | undefined, id?: string | undefined): void;
|
|
76
53
|
addValueOptions(items: any): boolean;
|
|
77
54
|
disableInfiniteScroll(): void;
|
|
78
55
|
set serverCount(value: any);
|
|
@@ -82,6 +59,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
82
59
|
set downloadedResources(value: any);
|
|
83
60
|
get downloadedResources(): any;
|
|
84
61
|
getSingleItemValueForHTMLMode(data: any): any;
|
|
62
|
+
itemValueForHTMLMode(value: any): any;
|
|
85
63
|
get loadingError(): boolean | undefined;
|
|
86
64
|
loadItems(url: any, search: any, headers: any, options: any, method: any, body: any): void;
|
|
87
65
|
getCustomItems(): any;
|
|
@@ -99,7 +77,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
99
77
|
activate(): void;
|
|
100
78
|
setLoadingItem(addToCurrentList?: boolean): void;
|
|
101
79
|
get active(): boolean | undefined;
|
|
102
|
-
render():
|
|
80
|
+
render(): import("../_classes/field/Field").default;
|
|
103
81
|
wrapElement(element: any): any;
|
|
104
82
|
choicesOptions(): any;
|
|
105
83
|
attach(element: any): Promise<void> | undefined;
|
|
@@ -115,11 +93,8 @@ export default class SelectComponent extends ListComponent {
|
|
|
115
93
|
attachRefreshOnBlur(): void;
|
|
116
94
|
addPlaceholderItem(placeholderValue: any): void;
|
|
117
95
|
update(): void;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
* @param {Array} items
|
|
121
|
-
*/
|
|
122
|
-
addCurrentChoices(values: any, items: any[], keyValue: any): any;
|
|
96
|
+
addCurrentChoices(values: any, items: any, keyValue: any): any;
|
|
97
|
+
getValueAsString(data: any, options: any): any;
|
|
123
98
|
normalizeSingleValue(value: any): any;
|
|
124
99
|
setMetadata(value: any): any;
|
|
125
100
|
updateValue(value: any, flags: any): boolean;
|
|
@@ -131,22 +106,24 @@ export default class SelectComponent extends ListComponent {
|
|
|
131
106
|
validateValueAvailability(setting: any, value: any): boolean;
|
|
132
107
|
/**
|
|
133
108
|
* Performs required transformations on the initial value to use in selectOptions
|
|
134
|
-
* @param {*} value
|
|
109
|
+
* @param {*} value - The value to transform.
|
|
110
|
+
* @returns {*} - Returns the options value.
|
|
135
111
|
*/
|
|
136
112
|
getOptionValue(value: any): any;
|
|
137
113
|
/**
|
|
138
114
|
* If component has static values (values, json) or custom values, returns an array of them
|
|
139
|
-
* @returns {Array<*>|undefined}
|
|
115
|
+
* @returns {Array<*>|undefined} - Returns an array of the static or custom values.
|
|
140
116
|
*/
|
|
141
117
|
getOptionsValues(): Array<any> | undefined;
|
|
142
118
|
/**
|
|
143
119
|
* Output this select dropdown as a string value.
|
|
144
|
-
* @
|
|
120
|
+
* @returns {*}
|
|
145
121
|
*/
|
|
146
122
|
isBooleanOrNumber(value: any): any;
|
|
147
123
|
getNormalizedValues(): any;
|
|
148
124
|
asString(value: any, options?: {}): any;
|
|
149
125
|
focus(): void;
|
|
126
|
+
setErrorClasses(elements: any, dirty: any, hasError: any, hasMessages: any, element?: any): void;
|
|
150
127
|
}
|
|
151
128
|
import ListComponent from '../_classes/list/ListComponent';
|
|
152
129
|
import Choices from '../../utils/ChoicesWrapper';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import 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
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return listComponentForm([
|
|
7
12
|
{
|
|
@@ -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,
|
|
6
|
+
import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, 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,9 +285,10 @@ export default class SelectComponent extends ListComponent {
|
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
287
|
* Adds an option to the select dropdown.
|
|
288
|
-
*
|
|
289
|
-
* @param
|
|
290
|
-
* @param
|
|
288
|
+
* @param {*} value - The value of the new option.
|
|
289
|
+
* @param {string} label - The label of the new option.
|
|
290
|
+
* @param {object} [attrs] - Additional value attributes. Defaults to {}.
|
|
291
|
+
* @param {string} [id] - An id. Defaults to a random string.
|
|
291
292
|
*/
|
|
292
293
|
addOption(value, label, attrs = {}, id = getRandomComponentId()) {
|
|
293
294
|
if (_.isNil(label))
|
|
@@ -593,6 +594,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
593
594
|
}
|
|
594
595
|
/**
|
|
595
596
|
* Get the request headers for this select dropdown.
|
|
597
|
+
* @returns {*} - Returns the request headers for this select dropdown.
|
|
596
598
|
*/
|
|
597
599
|
get requestHeaders() {
|
|
598
600
|
// Create the headers object.
|
|
@@ -1069,10 +1071,6 @@ export default class SelectComponent extends ListComponent {
|
|
|
1069
1071
|
get visible() {
|
|
1070
1072
|
return super.visible;
|
|
1071
1073
|
}
|
|
1072
|
-
/**
|
|
1073
|
-
* @param {*} value
|
|
1074
|
-
* @param {Array} items
|
|
1075
|
-
*/
|
|
1076
1074
|
addCurrentChoices(values, items, keyValue) {
|
|
1077
1075
|
if (!values) {
|
|
1078
1076
|
return false;
|
|
@@ -1221,10 +1219,9 @@ export default class SelectComponent extends ListComponent {
|
|
|
1221
1219
|
}
|
|
1222
1220
|
}
|
|
1223
1221
|
/**
|
|
1224
|
-
* Normalize values coming into updateValue.
|
|
1225
|
-
*
|
|
1226
|
-
* @
|
|
1227
|
-
* @return {*}
|
|
1222
|
+
* Normalize values coming into updateValue. For example, depending on the configuration, string value `"true"` will be normalized to boolean `true`.
|
|
1223
|
+
* @param {*} value - The value to normalize
|
|
1224
|
+
* @returns {*} - Returns the normalized value
|
|
1228
1225
|
*/
|
|
1229
1226
|
normalizeValue(value) {
|
|
1230
1227
|
if (this.component.multiple && Array.isArray(value)) {
|
|
@@ -1419,7 +1416,8 @@ export default class SelectComponent extends ListComponent {
|
|
|
1419
1416
|
}
|
|
1420
1417
|
/**
|
|
1421
1418
|
* Performs required transformations on the initial value to use in selectOptions
|
|
1422
|
-
* @param {*} value
|
|
1419
|
+
* @param {*} value - The value to transform.
|
|
1420
|
+
* @returns {*} - Returns the options value.
|
|
1423
1421
|
*/
|
|
1424
1422
|
getOptionValue(value) {
|
|
1425
1423
|
return _.isObject(value) && this.isEntireObjectDisplay()
|
|
@@ -1434,7 +1432,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1434
1432
|
}
|
|
1435
1433
|
/**
|
|
1436
1434
|
* If component has static values (values, json) or custom values, returns an array of them
|
|
1437
|
-
* @returns {Array<*>|undefined}
|
|
1435
|
+
* @returns {Array<*>|undefined} - Returns an array of the static or custom values.
|
|
1438
1436
|
*/
|
|
1439
1437
|
getOptionsValues() {
|
|
1440
1438
|
let rawItems = [];
|
|
@@ -1474,8 +1472,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1474
1472
|
}
|
|
1475
1473
|
/**
|
|
1476
1474
|
* Check if a component is eligible for multiple validation
|
|
1477
|
-
*
|
|
1478
|
-
* @return {boolean}
|
|
1475
|
+
* @returns {boolean} - Returns FALSE for select components.
|
|
1479
1476
|
*/
|
|
1480
1477
|
validateMultiple() {
|
|
1481
1478
|
// Select component will contain one input when flagged as multiple.
|
|
@@ -1483,7 +1480,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1483
1480
|
}
|
|
1484
1481
|
/**
|
|
1485
1482
|
* Output this select dropdown as a string value.
|
|
1486
|
-
* @
|
|
1483
|
+
* @returns {*}
|
|
1487
1484
|
*/
|
|
1488
1485
|
isBooleanOrNumber(value) {
|
|
1489
1486
|
return typeof value === 'number' || typeof value === 'boolean';
|
|
@@ -1551,7 +1548,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
1551
1548
|
const getTemplateValue = (v) => {
|
|
1552
1549
|
const itemTemplate = this.itemTemplate(v);
|
|
1553
1550
|
return options.csv && itemTemplate
|
|
1554
|
-
?
|
|
1551
|
+
? removeHTML(itemTemplate)
|
|
1555
1552
|
: itemTemplate;
|
|
1556
1553
|
};
|
|
1557
1554
|
if (Array.isArray(value)) {
|
|
@@ -9,13 +9,6 @@ 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;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
valueComponent(classComp: any): {
|
|
@@ -27,22 +20,14 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
27
20
|
custom: string;
|
|
28
21
|
};
|
|
29
22
|
};
|
|
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;
|
|
37
23
|
};
|
|
38
24
|
static savedValueTypes(schema: any): string[];
|
|
39
25
|
constructor(...args: any[]);
|
|
40
26
|
get emptyValue(): any;
|
|
41
27
|
/**
|
|
42
28
|
* Only empty if the values are all false.
|
|
43
|
-
*
|
|
44
|
-
* @
|
|
45
|
-
* @return {boolean}
|
|
29
|
+
* @param {any} value - The value to check if empty.
|
|
30
|
+
* @returns {boolean} - If the value is empty.
|
|
46
31
|
*/
|
|
47
32
|
isEmpty(value?: any): boolean;
|
|
48
33
|
setInputsDisabled(value: any, onlyUnchecked: any): void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import 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
|
+
*/
|
|
3
8
|
export default function (...extend) {
|
|
4
9
|
return radioEditForm([
|
|
5
10
|
{
|
|
@@ -79,9 +79,8 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Only empty if the values are all false.
|
|
82
|
-
*
|
|
83
|
-
* @
|
|
84
|
-
* @return {boolean}
|
|
82
|
+
* @param {any} value - The value to check if empty.
|
|
83
|
+
* @returns {boolean} - If the value is empty.
|
|
85
84
|
*/
|
|
86
85
|
isEmpty(value = this.dataValue) {
|
|
87
86
|
let empty = true;
|
|
@@ -105,9 +104,8 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
105
104
|
}
|
|
106
105
|
/**
|
|
107
106
|
* Normalize values coming into updateValue.
|
|
108
|
-
*
|
|
109
|
-
* @
|
|
110
|
-
* @return {*}
|
|
107
|
+
* @param {any} value - The value to normalize.
|
|
108
|
+
* @returns {*} - The normalized value
|
|
111
109
|
*/
|
|
112
110
|
normalizeValue(value) {
|
|
113
111
|
value = value || {};
|
|
@@ -140,9 +138,9 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
140
138
|
}
|
|
141
139
|
/**
|
|
142
140
|
* Set the value of this component.
|
|
143
|
-
*
|
|
144
|
-
* @param
|
|
145
|
-
* @
|
|
141
|
+
* @param {any} value - The value to set.
|
|
142
|
+
* @param {any} flags - Flags to apply to this update.
|
|
143
|
+
* @returns {boolean} - If the value has changed.
|
|
146
144
|
*/
|
|
147
145
|
setValue(value, flags = {}) {
|
|
148
146
|
const changed = this.updateValue(value, flags);
|
|
@@ -9,23 +9,9 @@ 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;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
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;
|
|
29
15
|
};
|
|
30
16
|
static savedValueTypes(schema: any): string[];
|
|
31
17
|
currentWidth: any;
|
|
@@ -36,6 +22,7 @@ export default class SignatureComponent extends Input {
|
|
|
36
22
|
showCanvas(show: any): void;
|
|
37
23
|
onDisabled(): void;
|
|
38
24
|
checkSize(force: any, scale: any): void;
|
|
25
|
+
getModalPreviewTemplate(): any;
|
|
39
26
|
signaturePad: SignaturePad | null | undefined;
|
|
40
27
|
observer: any;
|
|
41
28
|
getValueAsString(value: any): "" | "Yes" | "No";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import Components from '../Components';
|
|
|
2
2
|
import 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
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return Components.baseEditForm([
|
|
7
12
|
{
|
|
@@ -9,29 +9,17 @@ 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;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
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;
|
|
29
15
|
};
|
|
30
16
|
static savedValueTypes(schema: any): string[];
|
|
31
|
-
render():
|
|
17
|
+
render(): Field;
|
|
18
|
+
attach(element: any): Promise<void>;
|
|
32
19
|
setValue(value: any, flags?: {}): boolean;
|
|
33
20
|
get emptyValue(): {};
|
|
34
21
|
validateRequired(setting: any, value: any): any;
|
|
35
22
|
getInputName(question: any): string;
|
|
23
|
+
getValueAsString(value: any, options: any): any;
|
|
36
24
|
}
|
|
37
25
|
import Field from '../_classes/field/Field';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -2,6 +2,11 @@ import Components from '../Components';
|
|
|
2
2
|
import 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
|
+
*/
|
|
5
10
|
export default function (...extend) {
|
|
6
11
|
return Components.baseEditForm([
|
|
7
12
|
{
|