@formio/js 5.0.0-dev.5633.8d2b30d → 5.0.0-dev.5633.fde3bc9
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 +47 -2
- package/dist/formio.builder.css +8 -8
- 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 +8 -8
- package/dist/formio.form.js +615 -1196
- 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 +8 -8
- package/dist/formio.full.js +659 -920
- 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 +183 -143
- package/lib/cjs/Webform.js +310 -298
- package/lib/cjs/WebformBuilder.d.ts +16 -14
- package/lib/cjs/WebformBuilder.js +11 -10
- 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 +507 -276
- 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 +438 -196
- 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/component/fixtures/comp6.d.ts +77 -0
- package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/_classes/component/fixtures/index.js +3 -1
- 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 +8 -6
- 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/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +36 -0
- package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
- 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 +23 -49
- 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 +16 -21
- package/lib/cjs/components/day/fixtures/comp7.d.ts +109 -0
- package/lib/cjs/components/day/fixtures/comp7.js +109 -0
- package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/day/fixtures/index.js +3 -1
- 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/file/File.js +1 -2
- package/lib/cjs/components/form/Form.d.ts +34 -24
- 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 +15 -13
- 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 +6 -6
- 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 +13 -16
- 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 +0 -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 +16 -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 +73 -1
- 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/translations/en.d.ts +2 -0
- package/lib/cjs/translations/en.js +3 -1
- package/lib/cjs/utils/ChoicesWrapper.d.ts +1 -1
- package/lib/cjs/utils/ChoicesWrapper.js +13 -2
- 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 +367 -221
- package/lib/cjs/utils/utils.js +335 -228
- 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 +183 -143
- package/lib/mjs/Webform.js +322 -310
- package/lib/mjs/WebformBuilder.d.ts +16 -14
- package/lib/mjs/WebformBuilder.js +11 -10
- 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 +507 -276
- 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 +438 -196
- 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/component/fixtures/comp6.d.ts +77 -0
- package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/_classes/component/fixtures/index.js +2 -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 +8 -6
- 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/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +34 -0
- package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
- 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 +23 -49
- 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 +16 -21
- package/lib/mjs/components/day/fixtures/comp7.d.ts +109 -0
- package/lib/mjs/components/day/fixtures/comp7.js +107 -0
- package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/day/fixtures/index.js +2 -1
- 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/file/File.js +1 -2
- package/lib/mjs/components/form/Form.d.ts +34 -24
- 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 +15 -13
- 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 +6 -6
- 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 +14 -17
- 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 +0 -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 +16 -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 +73 -1
- 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/translations/en.d.ts +2 -0
- package/lib/mjs/translations/en.js +3 -1
- package/lib/mjs/utils/ChoicesWrapper.d.ts +1 -1
- package/lib/mjs/utils/ChoicesWrapper.js +13 -2
- 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 +367 -221
- package/lib/mjs/utils/utils.js +329 -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
|
@@ -13,41 +13,47 @@ export default class FormComponent extends Component {
|
|
|
13
13
|
valueChanged: boolean | undefined;
|
|
14
14
|
subForm: any;
|
|
15
15
|
formSrc: any;
|
|
16
|
-
get dataReady(): any
|
|
16
|
+
get dataReady(): Promise<any>;
|
|
17
17
|
get emptyValue(): {
|
|
18
18
|
data: {};
|
|
19
19
|
};
|
|
20
|
-
get ready(): any
|
|
20
|
+
get ready(): Promise<any>;
|
|
21
21
|
get useOriginalRevision(): any;
|
|
22
22
|
setFormRevision(rev: any): void;
|
|
23
23
|
subFormRevision: any;
|
|
24
24
|
getComponent(path: any, fn: any): any;
|
|
25
25
|
getSubOptions(options?: {}): {};
|
|
26
|
-
render():
|
|
26
|
+
render(): string;
|
|
27
27
|
asString(value: any): any;
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Prints out the value of form components as a datagrid value.
|
|
30
|
+
*/
|
|
31
|
+
getValueAsString(value: any, options: any): any;
|
|
32
|
+
attach(element: any): Promise<void>;
|
|
29
33
|
get hasLoadedForm(): any;
|
|
30
34
|
get isRevisionChanged(): any;
|
|
31
|
-
subFormReady: any;
|
|
35
|
+
subFormReady: Promise<any> | null | undefined;
|
|
32
36
|
/**
|
|
33
37
|
* Pass everyComponent to subform.
|
|
34
|
-
* @param args
|
|
35
|
-
* @returns {
|
|
38
|
+
* @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
|
|
39
|
+
* @returns {*} - The result of the subform's everyComponent method.
|
|
36
40
|
*/
|
|
37
|
-
everyComponent(...args: any[]): any
|
|
41
|
+
everyComponent(...args: any[]): any;
|
|
38
42
|
setSubFormDisabled(subForm: any): void;
|
|
39
43
|
updateSubWizards(subForm: any): void;
|
|
40
44
|
/**
|
|
41
45
|
* Create a subform instance.
|
|
42
|
-
*
|
|
43
|
-
* @
|
|
46
|
+
* @param {boolean} [fromAttach] - This function is being called from an `attach` method.
|
|
47
|
+
* @returns {*} - The subform instance.
|
|
44
48
|
*/
|
|
45
|
-
createSubForm(fromAttach
|
|
49
|
+
createSubForm(fromAttach?: boolean | undefined): any;
|
|
46
50
|
hideSubmitButton(component: any): void;
|
|
47
51
|
/**
|
|
48
52
|
* Load the subform.
|
|
53
|
+
* @param {boolean} fromAttach - This function is being called from an `attach` method.
|
|
54
|
+
* @returns {Promise} - The promise that resolves when the subform is loaded.
|
|
49
55
|
*/
|
|
50
|
-
loadSubForm(fromAttach:
|
|
56
|
+
loadSubForm(fromAttach: boolean): Promise<any>;
|
|
51
57
|
subFormLoading: boolean | undefined;
|
|
52
58
|
get subFormData(): any;
|
|
53
59
|
checkComponentValidity(data: any, dirty: any, row: any, options: any, errors?: any[]): any;
|
|
@@ -56,43 +62,47 @@ export default class FormComponent extends Component {
|
|
|
56
62
|
setPristine(pristine: any): void;
|
|
57
63
|
/**
|
|
58
64
|
* Determine if the subform should be submitted.
|
|
59
|
-
* @
|
|
65
|
+
* @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
|
|
60
66
|
*/
|
|
61
67
|
get shouldSubmit(): any;
|
|
62
68
|
/**
|
|
63
69
|
* Returns the data for the subform.
|
|
64
|
-
*
|
|
65
|
-
* @return {*}
|
|
70
|
+
* @returns {*} - the data for the subform.
|
|
66
71
|
*/
|
|
67
72
|
getSubFormData(): any;
|
|
68
73
|
/**
|
|
69
74
|
* Submit the subform if configured to do so.
|
|
70
|
-
*
|
|
71
|
-
* @return {*}
|
|
75
|
+
* @returns {Promise} - The promise that resolves when the subform is submitted.
|
|
72
76
|
*/
|
|
73
|
-
submitSubForm(): any
|
|
77
|
+
submitSubForm(): Promise<any>;
|
|
74
78
|
/**
|
|
75
79
|
* Submit the form before the next page is triggered.
|
|
80
|
+
* @param {Function} next - The function to trigger the next page.
|
|
81
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
|
|
82
|
+
*/
|
|
83
|
+
beforePage(next: Function): Promise<any>;
|
|
84
|
+
/**
|
|
85
|
+
* Submit the form before the whole form is triggered.
|
|
86
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
|
|
76
87
|
*/
|
|
77
|
-
|
|
88
|
+
beforeSubmit(): Promise<any>;
|
|
78
89
|
isSubFormLazyLoad(): any;
|
|
79
90
|
isHidden(): boolean;
|
|
80
91
|
setValue(submission: any, flags?: {}): boolean;
|
|
81
92
|
setSubFormValue(submission: any, flags: any): void;
|
|
82
93
|
/**
|
|
83
94
|
* Sets the subform value
|
|
84
|
-
*
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {Object | null | undefined} flags
|
|
95
|
+
* @param {object|null|undefined} submission - The submission to set.
|
|
96
|
+
* @param {object|null|undefined} flags - Any flags to apply when setting the submission.
|
|
87
97
|
* @return {void}
|
|
88
98
|
*/
|
|
89
|
-
onSetSubFormValue(submission:
|
|
99
|
+
onSetSubFormValue(submission: object | null | undefined, flags: object | null | undefined): void;
|
|
90
100
|
areAllComponentsEmpty(data: any): boolean;
|
|
91
101
|
updateSubFormVisibility(): void;
|
|
92
102
|
/**
|
|
93
103
|
* Determines if this form is a Nested Wizard
|
|
94
104
|
* which means it should be a Wizard itself and should be a direct child of a Wizard's page
|
|
95
|
-
* @returns {boolean}
|
|
105
|
+
* @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
|
|
96
106
|
*/
|
|
97
107
|
get isNestedWizard(): boolean;
|
|
98
108
|
isInternalEvent(event: 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 nestedComponentForm from '../_classes/nested/NestedComponent.form';
|
|
|
2
2
|
import FormEditDisplay from './editForm/Form.edit.display';
|
|
3
3
|
import FormEditForm from './editForm/Form.edit.form';
|
|
4
4
|
import FormEditData from './editForm/Form.edit.data';
|
|
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 nestedComponentForm([
|
|
7
12
|
{
|
|
@@ -346,8 +346,8 @@ export default class FormComponent extends Component {
|
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
348
348
|
* Pass everyComponent to subform.
|
|
349
|
-
* @param args
|
|
350
|
-
* @returns {
|
|
349
|
+
* @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
|
|
350
|
+
* @returns {*} - The result of the subform's everyComponent method.
|
|
351
351
|
*/
|
|
352
352
|
everyComponent(...args) {
|
|
353
353
|
if (this.subForm) {
|
|
@@ -371,8 +371,8 @@ export default class FormComponent extends Component {
|
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* Create a subform instance.
|
|
374
|
-
*
|
|
375
|
-
* @
|
|
374
|
+
* @param {boolean} [fromAttach] - This function is being called from an `attach` method.
|
|
375
|
+
* @returns {*} - The subform instance.
|
|
376
376
|
*/
|
|
377
377
|
createSubForm(fromAttach) {
|
|
378
378
|
this.subFormReady = this.loadSubForm(fromAttach).then((form) => {
|
|
@@ -425,6 +425,8 @@ export default class FormComponent extends Component {
|
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
427
|
* Load the subform.
|
|
428
|
+
* @param {boolean} fromAttach - This function is being called from an `attach` method.
|
|
429
|
+
* @returns {Promise} - The promise that resolves when the subform is loaded.
|
|
428
430
|
*/
|
|
429
431
|
loadSubForm(fromAttach) {
|
|
430
432
|
if (this.builderMode || this.isHidden() || (this.isSubFormLazyLoad() && !fromAttach)) {
|
|
@@ -507,15 +509,14 @@ export default class FormComponent extends Component {
|
|
|
507
509
|
}
|
|
508
510
|
/**
|
|
509
511
|
* Determine if the subform should be submitted.
|
|
510
|
-
* @
|
|
512
|
+
* @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
|
|
511
513
|
*/
|
|
512
514
|
get shouldSubmit() {
|
|
513
515
|
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.isHidden();
|
|
514
516
|
}
|
|
515
517
|
/**
|
|
516
518
|
* Returns the data for the subform.
|
|
517
|
-
*
|
|
518
|
-
* @return {*}
|
|
519
|
+
* @returns {*} - the data for the subform.
|
|
519
520
|
*/
|
|
520
521
|
getSubFormData() {
|
|
521
522
|
if (_.get(this.subForm, 'form.display') === 'pdf') {
|
|
@@ -527,8 +528,7 @@ export default class FormComponent extends Component {
|
|
|
527
528
|
}
|
|
528
529
|
/**
|
|
529
530
|
* Submit the subform if configured to do so.
|
|
530
|
-
*
|
|
531
|
-
* @return {*}
|
|
531
|
+
* @returns {Promise} - The promise that resolves when the subform is submitted.
|
|
532
532
|
*/
|
|
533
533
|
submitSubForm() {
|
|
534
534
|
// If we wish to submit the form on next page, then do that here.
|
|
@@ -555,6 +555,8 @@ export default class FormComponent extends Component {
|
|
|
555
555
|
}
|
|
556
556
|
/**
|
|
557
557
|
* Submit the form before the next page is triggered.
|
|
558
|
+
* @param {Function} next - The function to trigger the next page.
|
|
559
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
|
|
558
560
|
*/
|
|
559
561
|
beforePage(next) {
|
|
560
562
|
// Should not submit child forms if we are going to the previous page
|
|
@@ -565,6 +567,7 @@ export default class FormComponent extends Component {
|
|
|
565
567
|
}
|
|
566
568
|
/**
|
|
567
569
|
* Submit the form before the whole form is triggered.
|
|
570
|
+
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
|
|
568
571
|
*/
|
|
569
572
|
beforeSubmit() {
|
|
570
573
|
const submission = this.dataValue;
|
|
@@ -641,9 +644,8 @@ export default class FormComponent extends Component {
|
|
|
641
644
|
}
|
|
642
645
|
/**
|
|
643
646
|
* Sets the subform value
|
|
644
|
-
*
|
|
645
|
-
* @param {
|
|
646
|
-
* @param {Object | null | undefined} flags
|
|
647
|
+
* @param {object|null|undefined} submission - The submission to set.
|
|
648
|
+
* @param {object|null|undefined} flags - Any flags to apply when setting the submission.
|
|
647
649
|
* @return {void}
|
|
648
650
|
*/
|
|
649
651
|
onSetSubFormValue(submission, flags) {
|
|
@@ -686,7 +688,7 @@ export default class FormComponent extends Component {
|
|
|
686
688
|
/**
|
|
687
689
|
* Determines if this form is a Nested Wizard
|
|
688
690
|
* which means it should be a Wizard itself and should be a direct child of a Wizard's page
|
|
689
|
-
* @returns {boolean}
|
|
691
|
+
* @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
|
|
690
692
|
*/
|
|
691
693
|
get isNestedWizard() {
|
|
692
694
|
return this.subForm?._form?.display === 'wizard' && this.parent?.parent?._form?.display === 'wizard';
|
|
@@ -8,17 +8,7 @@ export default class HiddenComponent extends Input {
|
|
|
8
8
|
showPreview: boolean;
|
|
9
9
|
schema: any;
|
|
10
10
|
};
|
|
11
|
-
get inputInfo():
|
|
12
|
-
type: string;
|
|
13
|
-
component: any;
|
|
14
|
-
changeEvent: string;
|
|
15
|
-
attr: {
|
|
16
|
-
name: any;
|
|
17
|
-
type: any;
|
|
18
|
-
class: string;
|
|
19
|
-
lang: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
11
|
+
get inputInfo(): any;
|
|
22
12
|
labelIsHidden(): boolean;
|
|
23
13
|
get emptyValue(): string;
|
|
24
14
|
setValue(value: any, flags?: {}): 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[];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import Components from '../Components';
|
|
2
2
|
import HiddenEditDisplay from './editForm/Hidden.edit.display';
|
|
3
3
|
import HiddenEditData from './editForm/Hidden.edit.data';
|
|
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 Components.baseEditForm([
|
|
6
11
|
{
|
|
@@ -33,8 +33,7 @@ export default class HiddenComponent extends Input {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Check if a component is eligible for multiple validation
|
|
36
|
-
*
|
|
37
|
-
* @return {boolean}
|
|
36
|
+
* @returns {boolean} - If the component is eligible for multiple validation.
|
|
38
37
|
*/
|
|
39
38
|
validateMultiple() {
|
|
40
39
|
// Since "arrays" are able to be stored in hidden components, we need to turn off multiple validation.
|
|
@@ -13,7 +13,8 @@ export default class HTMLComponent extends Component {
|
|
|
13
13
|
get singleTags(): string[];
|
|
14
14
|
checkRefreshOn(changed: any): void;
|
|
15
15
|
renderContent(): any;
|
|
16
|
-
render():
|
|
16
|
+
render(): string;
|
|
17
17
|
get dataReady(): any;
|
|
18
|
+
attach(element: any): Promise<void>;
|
|
18
19
|
}
|
|
19
20
|
import Component from '../_classes/component/Component';
|
|
@@ -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,6 +1,11 @@
|
|
|
1
1
|
import Components from '../Components';
|
|
2
2
|
import HTMLEditDisplay from './editForm/HTML.edit.display';
|
|
3
3
|
import HTMLEditLogic from './editForm/HTML.edit.logic';
|
|
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 Components.baseEditForm([
|
|
6
11
|
{
|
|
@@ -10,35 +10,20 @@ export default class NumberComponent extends Input {
|
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: any[];
|
|
12
12
|
valueComponent(classComp: any): any;
|
|
13
|
-
constructor: Function;
|
|
14
|
-
toString(): string;
|
|
15
|
-
toLocaleString(): string;
|
|
16
|
-
valueOf(): Object;
|
|
17
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
18
|
-
isPrototypeOf(v: Object): boolean;
|
|
19
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
20
13
|
};
|
|
21
14
|
static get conditionOperatorsSettings(): {
|
|
22
15
|
operators: any[];
|
|
23
16
|
valueComponent(classComp: any): any;
|
|
24
|
-
constructor: Function;
|
|
25
|
-
toString(): string;
|
|
26
|
-
toLocaleString(): string;
|
|
27
|
-
valueOf(): Object;
|
|
28
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
29
|
-
isPrototypeOf(v: Object): boolean;
|
|
30
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
31
17
|
};
|
|
32
18
|
static savedValueTypes(schema: any): string[];
|
|
33
19
|
constructor(...args: any[]);
|
|
34
20
|
decimalSeparator: any;
|
|
35
21
|
delimiter: any;
|
|
36
|
-
decimalLimit:
|
|
22
|
+
decimalLimit: number;
|
|
37
23
|
numberMask: any;
|
|
38
24
|
/**
|
|
39
25
|
* Creates the number mask for normal numbers.
|
|
40
|
-
*
|
|
41
|
-
* @return {*}
|
|
26
|
+
* @returns {*} - The number mask.
|
|
42
27
|
*/
|
|
43
28
|
createNumberMask(): any;
|
|
44
29
|
isDecimalAllowed(): any;
|
|
@@ -49,5 +34,6 @@ export default class NumberComponent extends Input {
|
|
|
49
34
|
parseValue(input: any): number;
|
|
50
35
|
focus(): void;
|
|
51
36
|
getMaskedValue(value: any): any;
|
|
37
|
+
getValueAsString(value: any, options: any): any;
|
|
52
38
|
}
|
|
53
39
|
import Input from '../_classes/input/Input';
|
|
@@ -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 NumberEditDisplay from './editForm/Number.edit.display';
|
|
3
3
|
import NumberEditData from './editForm/Number.edit.data';
|
|
4
4
|
import NumberEditValidation from './editForm/Number.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,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
|
{
|
|
@@ -200,7 +200,8 @@ export default class RadioComponent extends ListComponent {
|
|
|
200
200
|
if (this.viewOnly || !this.refs.input || !this.refs.input.length) {
|
|
201
201
|
return this.dataValue;
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
// If the input type of the component is checkbox the value should be determined by the checkboxes checked property
|
|
204
|
+
let value = this.component.inputType === 'checkbox' ? '' : this.dataValue;
|
|
204
205
|
this.refs.input.forEach((input, index) => {
|
|
205
206
|
if (input.checked) {
|
|
206
207
|
value = (this.isSelectURL && _.isObject(this.loadedOptions[index].value)) ?
|
|
@@ -322,7 +323,7 @@ export default class RadioComponent extends ListComponent {
|
|
|
322
323
|
const value = this.dataValue;
|
|
323
324
|
this.refs.wrapper.forEach((wrapper, index) => {
|
|
324
325
|
const input = this.refs.input[index];
|
|
325
|
-
const checked = (input.type === 'checkbox') ? value[input.value] : (input.value.toString() === value.toString());
|
|
326
|
+
const checked = (input.type === 'checkbox') ? value[input.value] || input.checked : (input.value.toString() === value.toString());
|
|
326
327
|
if (checked) {
|
|
327
328
|
//add class to container when selected
|
|
328
329
|
this.addClass(wrapper, this.optionSelectedClass);
|
|
@@ -359,10 +360,9 @@ export default class RadioComponent extends ListComponent {
|
|
|
359
360
|
return changed;
|
|
360
361
|
}
|
|
361
362
|
/**
|
|
362
|
-
* Normalize values coming into updateValue.
|
|
363
|
-
*
|
|
364
|
-
* @
|
|
365
|
-
* @return {*}
|
|
363
|
+
* Normalize values coming into updateValue. For example, depending on the configuration, string value `"true"` will be normalized to boolean `true`.
|
|
364
|
+
* @param {*} value - The value to normalize
|
|
365
|
+
* @returns {*} - Returns the normalized value
|
|
366
366
|
*/
|
|
367
367
|
normalizeValue(value) {
|
|
368
368
|
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
|
{
|