@formio/js 5.0.0-dev.5610.da13e39 → 5.0.0-dev.5613.3476921
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +1199 -651
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +11 -3
- package/dist/formio.full.js +919 -691
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +11 -3
- package/dist/formio.js +16 -16
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +493 -1861
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +2 -12
- package/lib/cjs/Element.d.ts +96 -86
- package/lib/cjs/Element.js +78 -68
- package/lib/cjs/Form.d.ts +36 -365
- package/lib/cjs/Form.js +64 -50
- package/lib/cjs/FormBuilder.d.ts +2 -187
- package/lib/cjs/FormBuilder.js +8 -30
- package/lib/cjs/PDF.d.ts +13 -11
- package/lib/cjs/PDF.js +8 -6
- package/lib/cjs/Webform.d.ts +139 -180
- package/lib/cjs/Webform.js +298 -313
- package/lib/cjs/WebformBuilder.d.ts +14 -16
- package/lib/cjs/WebformBuilder.js +11 -17
- package/lib/cjs/Wizard.d.ts +21 -31
- package/lib/cjs/Wizard.js +19 -42
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +5 -8
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +3 -6
- package/lib/cjs/components/Components.d.ts +4 -4
- package/lib/cjs/components/Components.js +3 -3
- package/lib/cjs/components/_classes/component/Component.d.ts +269 -502
- package/lib/cjs/components/_classes/component/Component.form.d.ts +3 -6
- package/lib/cjs/components/_classes/component/Component.form.js +0 -5
- package/lib/cjs/components/_classes/component/Component.js +189 -433
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
- package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
- package/lib/cjs/components/_classes/field/Field.d.ts +2 -11
- package/lib/cjs/components/_classes/field/Field.js +1 -13
- package/lib/cjs/components/_classes/input/Input.d.ts +3 -4
- package/lib/cjs/components/_classes/input/Input.js +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +3 -6
- package/lib/cjs/components/_classes/list/ListComponent.form.js +0 -5
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +12 -43
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +3 -37
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +67 -163
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +3 -6
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -5
- package/lib/cjs/components/_classes/nested/NestedComponent.js +54 -175
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -7
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +3 -2
- package/lib/cjs/components/address/Address.d.ts +2 -4
- package/lib/cjs/components/address/Address.form.d.ts +3 -6
- package/lib/cjs/components/address/Address.form.js +0 -5
- package/lib/cjs/components/button/Button.d.ts +12 -3
- package/lib/cjs/components/button/Button.form.d.ts +3 -6
- package/lib/cjs/components/button/Button.form.js +0 -5
- package/lib/cjs/components/button/Button.js +0 -5
- package/lib/cjs/components/checkbox/Checkbox.d.ts +27 -4
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +3 -6
- package/lib/cjs/components/checkbox/Checkbox.form.js +0 -5
- package/lib/cjs/components/columns/Columns.d.ts +2 -3
- package/lib/cjs/components/columns/Columns.form.d.ts +3 -6
- package/lib/cjs/components/columns/Columns.form.js +0 -5
- package/lib/cjs/components/columns/Columns.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +3 -6
- package/lib/cjs/components/container/Container.form.js +0 -5
- package/lib/cjs/components/content/Content.d.ts +1 -2
- package/lib/cjs/components/content/Content.form.d.ts +3 -6
- package/lib/cjs/components/content/Content.form.js +0 -5
- package/lib/cjs/components/currency/Currency.form.d.ts +3 -6
- package/lib/cjs/components/currency/Currency.form.js +0 -5
- package/lib/cjs/components/currency/Currency.js +2 -1
- package/lib/cjs/components/datagrid/DataGrid.d.ts +7 -8
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +3 -6
- package/lib/cjs/components/datagrid/DataGrid.form.js +0 -5
- package/lib/cjs/components/datagrid/DataGrid.js +5 -5
- package/lib/cjs/components/datamap/DataMap.d.ts +0 -1
- package/lib/cjs/components/datamap/DataMap.form.d.ts +3 -6
- package/lib/cjs/components/datamap/DataMap.form.js +0 -5
- package/lib/cjs/components/datetime/DateTime.d.ts +14 -0
- package/lib/cjs/components/datetime/DateTime.form.d.ts +3 -6
- package/lib/cjs/components/datetime/DateTime.form.js +0 -5
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
- package/lib/cjs/components/day/Day.d.ts +48 -22
- package/lib/cjs/components/day/Day.form.d.ts +3 -6
- package/lib/cjs/components/day/Day.form.js +0 -5
- package/lib/cjs/components/day/Day.js +20 -15
- package/lib/cjs/components/editgrid/EditGrid.d.ts +3 -7
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +3 -6
- package/lib/cjs/components/editgrid/EditGrid.form.js +0 -5
- package/lib/cjs/components/editgrid/EditGrid.js +3 -3
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +5 -2
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +9 -6
- package/lib/cjs/components/email/Email.form.d.ts +3 -6
- package/lib/cjs/components/email/Email.form.js +0 -5
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +3 -6
- package/lib/cjs/components/fieldset/Fieldset.form.js +0 -5
- package/lib/cjs/components/file/File.d.ts +22 -9
- package/lib/cjs/components/file/File.form.d.ts +3 -6
- package/lib/cjs/components/file/File.form.js +0 -5
- package/lib/cjs/components/form/Form.d.ts +20 -31
- package/lib/cjs/components/form/Form.form.d.ts +3 -6
- package/lib/cjs/components/form/Form.form.js +0 -5
- package/lib/cjs/components/form/Form.js +10 -13
- package/lib/cjs/components/hidden/Hidden.d.ts +11 -1
- package/lib/cjs/components/hidden/Hidden.form.d.ts +3 -6
- package/lib/cjs/components/hidden/Hidden.form.js +0 -5
- package/lib/cjs/components/hidden/Hidden.js +2 -1
- package/lib/cjs/components/html/HTML.d.ts +1 -2
- package/lib/cjs/components/html/HTML.form.d.ts +3 -6
- package/lib/cjs/components/html/HTML.form.js +0 -5
- package/lib/cjs/components/number/Number.d.ts +17 -3
- package/lib/cjs/components/number/Number.form.d.ts +3 -6
- package/lib/cjs/components/number/Number.form.js +0 -5
- package/lib/cjs/components/number/Number.js +2 -1
- package/lib/cjs/components/panel/Panel.form.d.ts +3 -6
- package/lib/cjs/components/panel/Panel.form.js +0 -5
- package/lib/cjs/components/panel/Panel.js +1 -0
- package/lib/cjs/components/password/Password.form.d.ts +3 -6
- package/lib/cjs/components/password/Password.form.js +0 -5
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +3 -6
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +0 -5
- package/lib/cjs/components/radio/Radio.d.ts +26 -3
- package/lib/cjs/components/radio/Radio.form.d.ts +3 -6
- package/lib/cjs/components/radio/Radio.form.js +0 -5
- package/lib/cjs/components/radio/Radio.js +4 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -5
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +0 -4
- package/lib/cjs/components/select/Select.d.ts +39 -16
- package/lib/cjs/components/select/Select.form.d.ts +3 -6
- package/lib/cjs/components/select/Select.form.js +0 -5
- package/lib/cjs/components/select/Select.js +16 -13
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +17 -2
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +3 -6
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +0 -5
- package/lib/cjs/components/selectboxes/SelectBoxes.js +9 -7
- package/lib/cjs/components/signature/Signature.d.ts +14 -1
- package/lib/cjs/components/signature/Signature.form.d.ts +3 -6
- package/lib/cjs/components/signature/Signature.form.js +0 -5
- package/lib/cjs/components/survey/Survey.d.ts +15 -3
- package/lib/cjs/components/survey/Survey.form.d.ts +3 -6
- package/lib/cjs/components/survey/Survey.form.js +0 -5
- package/lib/cjs/components/table/Table.d.ts +1 -2
- package/lib/cjs/components/table/Table.form.d.ts +3 -6
- package/lib/cjs/components/table/Table.form.js +0 -5
- package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/cjs/components/tabs/Tabs.form.d.ts +3 -6
- package/lib/cjs/components/tabs/Tabs.form.js +0 -5
- package/lib/cjs/components/tabs/Tabs.js +2 -1
- package/lib/cjs/components/tags/Tags.d.ts +14 -0
- package/lib/cjs/components/tags/Tags.form.d.ts +3 -6
- package/lib/cjs/components/tags/Tags.form.js +0 -5
- package/lib/cjs/components/textarea/TextArea.d.ts +9 -4
- package/lib/cjs/components/textarea/TextArea.form.d.ts +3 -6
- package/lib/cjs/components/textarea/TextArea.form.js +0 -5
- package/lib/cjs/components/textarea/TextArea.js +2 -2
- package/lib/cjs/components/textfield/TextField.d.ts +30 -14
- package/lib/cjs/components/textfield/TextField.form.d.ts +3 -6
- package/lib/cjs/components/textfield/TextField.form.js +0 -5
- package/lib/cjs/components/textfield/TextField.js +16 -13
- package/lib/cjs/components/time/Time.form.d.ts +3 -6
- package/lib/cjs/components/time/Time.form.js +0 -5
- package/lib/cjs/components/unknown/Unknown.form.d.ts +34 -5
- package/lib/cjs/components/unknown/Unknown.form.js +0 -4
- package/lib/cjs/components/url/Url.form.d.ts +3 -6
- package/lib/cjs/components/url/Url.form.js +0 -5
- package/lib/cjs/components/well/Well.form.d.ts +3 -6
- package/lib/cjs/components/well/Well.form.js +0 -5
- package/lib/cjs/formio.embed.d.ts +2 -1
- package/lib/cjs/formio.embed.js +100 -2
- package/lib/cjs/formio.form.d.ts +4 -11
- package/lib/cjs/formio.form.js +5 -13
- package/lib/cjs/providers/Providers.d.ts +5 -36
- package/lib/cjs/providers/Providers.js +0 -29
- package/lib/cjs/providers/address/AddressProvider.d.ts +12 -131
- package/lib/cjs/providers/address/AddressProvider.js +2 -88
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -48
- package/lib/cjs/providers/address/AzureAddressProvider.js +0 -37
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +4 -27
- package/lib/cjs/providers/address/CustomAddressProvider.js +0 -34
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +6 -130
- package/lib/cjs/providers/address/GoogleAddressProvider.js +0 -72
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +7 -32
- package/lib/cjs/providers/address/NominatimAddressProvider.js +0 -33
- package/lib/cjs/providers/address/index.d.ts +1 -3
- package/lib/cjs/providers/processor/fileProcessor.d.ts +1 -7
- package/lib/cjs/providers/processor/fileProcessor.js +0 -6
- package/lib/cjs/providers/storage/azure.d.ts +13 -6
- package/lib/cjs/providers/storage/azure.js +0 -5
- package/lib/cjs/providers/storage/base64.d.ts +6 -5
- package/lib/cjs/providers/storage/base64.js +0 -4
- package/lib/cjs/providers/storage/dropbox.d.ts +4 -6
- package/lib/cjs/providers/storage/dropbox.js +0 -5
- package/lib/cjs/providers/storage/googleDrive.d.ts +5 -7
- package/lib/cjs/providers/storage/googleDrive.js +0 -6
- package/lib/cjs/providers/storage/indexeddb.d.ts +7 -5
- package/lib/cjs/providers/storage/indexeddb.js +0 -4
- package/lib/cjs/providers/storage/s3.d.ts +20 -6
- package/lib/cjs/providers/storage/s3.js +0 -5
- package/lib/cjs/providers/storage/url.d.ts +7 -6
- package/lib/cjs/providers/storage/url.js +0 -10
- package/lib/cjs/providers/storage/util.d.ts +1 -24
- package/lib/cjs/providers/storage/util.js +0 -18
- package/lib/cjs/templates/Templates.d.ts +0 -1
- package/lib/cjs/translations/en.d.ts +1 -0
- package/lib/cjs/translations/en.js +1 -0
- package/lib/cjs/utils/Evaluator.d.ts +3 -6
- package/lib/cjs/utils/Evaluator.js +20 -11
- package/lib/cjs/utils/builder.d.ts +7 -9
- package/lib/cjs/utils/builder.js +5 -10
- package/lib/cjs/utils/calendarUtils.d.ts +13 -7
- package/lib/cjs/utils/calendarUtils.js +17 -10
- package/lib/cjs/utils/formUtils.d.ts +171 -43
- package/lib/cjs/utils/formUtils.js +569 -38
- package/lib/cjs/utils/utils.d.ts +216 -362
- package/lib/cjs/utils/utils.js +224 -331
- package/lib/cjs/widgets/CalendarWidget.d.ts +10 -9
- package/lib/cjs/widgets/CalendarWidget.js +11 -9
- package/lib/mjs/Element.d.ts +96 -86
- package/lib/mjs/Element.js +78 -68
- package/lib/mjs/Form.d.ts +36 -365
- package/lib/mjs/Form.js +57 -140
- package/lib/mjs/FormBuilder.d.ts +2 -187
- package/lib/mjs/FormBuilder.js +8 -32
- package/lib/mjs/PDF.d.ts +13 -11
- package/lib/mjs/PDF.js +8 -6
- package/lib/mjs/Webform.d.ts +139 -180
- package/lib/mjs/Webform.js +310 -325
- package/lib/mjs/WebformBuilder.d.ts +14 -16
- package/lib/mjs/WebformBuilder.js +11 -16
- package/lib/mjs/Wizard.d.ts +21 -31
- package/lib/mjs/Wizard.js +18 -41
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +5 -8
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +3 -6
- package/lib/mjs/components/Components.d.ts +4 -4
- package/lib/mjs/components/Components.js +3 -3
- package/lib/mjs/components/_classes/component/Component.d.ts +269 -502
- package/lib/mjs/components/_classes/component/Component.form.d.ts +3 -6
- package/lib/mjs/components/_classes/component/Component.form.js +0 -5
- package/lib/mjs/components/_classes/component/Component.js +189 -433
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/mjs/components/_classes/field/Field.d.ts +2 -11
- package/lib/mjs/components/_classes/field/Field.js +1 -13
- package/lib/mjs/components/_classes/input/Input.d.ts +3 -4
- package/lib/mjs/components/_classes/input/Input.js +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +3 -6
- package/lib/mjs/components/_classes/list/ListComponent.form.js +0 -5
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +12 -43
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +3 -37
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +67 -163
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +3 -6
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -5
- package/lib/mjs/components/_classes/nested/NestedComponent.js +54 -175
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -7
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +3 -2
- package/lib/mjs/components/address/Address.d.ts +2 -4
- package/lib/mjs/components/address/Address.form.d.ts +3 -6
- package/lib/mjs/components/address/Address.form.js +0 -5
- package/lib/mjs/components/button/Button.d.ts +12 -3
- package/lib/mjs/components/button/Button.form.d.ts +3 -6
- package/lib/mjs/components/button/Button.form.js +0 -5
- package/lib/mjs/components/button/Button.js +0 -5
- package/lib/mjs/components/checkbox/Checkbox.d.ts +27 -4
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +3 -6
- package/lib/mjs/components/checkbox/Checkbox.form.js +0 -5
- package/lib/mjs/components/columns/Columns.d.ts +2 -3
- package/lib/mjs/components/columns/Columns.form.d.ts +3 -6
- package/lib/mjs/components/columns/Columns.form.js +0 -5
- package/lib/mjs/components/columns/Columns.js +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +3 -6
- package/lib/mjs/components/container/Container.form.js +0 -5
- package/lib/mjs/components/content/Content.d.ts +1 -2
- package/lib/mjs/components/content/Content.form.d.ts +3 -6
- package/lib/mjs/components/content/Content.form.js +0 -5
- package/lib/mjs/components/currency/Currency.form.d.ts +3 -6
- package/lib/mjs/components/currency/Currency.form.js +0 -5
- package/lib/mjs/components/currency/Currency.js +2 -1
- package/lib/mjs/components/datagrid/DataGrid.d.ts +7 -8
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +3 -6
- package/lib/mjs/components/datagrid/DataGrid.form.js +0 -5
- package/lib/mjs/components/datagrid/DataGrid.js +5 -5
- package/lib/mjs/components/datamap/DataMap.d.ts +0 -1
- package/lib/mjs/components/datamap/DataMap.form.d.ts +3 -6
- package/lib/mjs/components/datamap/DataMap.form.js +0 -5
- package/lib/mjs/components/datetime/DateTime.d.ts +14 -0
- package/lib/mjs/components/datetime/DateTime.form.d.ts +3 -6
- package/lib/mjs/components/datetime/DateTime.form.js +0 -5
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +48 -22
- package/lib/mjs/components/day/Day.form.d.ts +3 -6
- package/lib/mjs/components/day/Day.form.js +0 -5
- package/lib/mjs/components/day/Day.js +20 -15
- package/lib/mjs/components/editgrid/EditGrid.d.ts +3 -7
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +3 -6
- package/lib/mjs/components/editgrid/EditGrid.form.js +0 -5
- package/lib/mjs/components/editgrid/EditGrid.js +3 -3
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +3 -6
- package/lib/mjs/components/email/Email.form.js +0 -5
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +3 -6
- package/lib/mjs/components/fieldset/Fieldset.form.js +0 -5
- package/lib/mjs/components/file/File.d.ts +22 -9
- package/lib/mjs/components/file/File.form.d.ts +3 -6
- package/lib/mjs/components/file/File.form.js +0 -5
- package/lib/mjs/components/form/Form.d.ts +20 -31
- package/lib/mjs/components/form/Form.form.d.ts +3 -6
- package/lib/mjs/components/form/Form.form.js +0 -5
- package/lib/mjs/components/form/Form.js +10 -13
- package/lib/mjs/components/hidden/Hidden.d.ts +11 -1
- package/lib/mjs/components/hidden/Hidden.form.d.ts +3 -6
- package/lib/mjs/components/hidden/Hidden.form.js +0 -5
- package/lib/mjs/components/hidden/Hidden.js +2 -1
- package/lib/mjs/components/html/HTML.d.ts +1 -2
- package/lib/mjs/components/html/HTML.form.d.ts +3 -6
- package/lib/mjs/components/html/HTML.form.js +0 -5
- package/lib/mjs/components/number/Number.d.ts +17 -3
- package/lib/mjs/components/number/Number.form.d.ts +3 -6
- package/lib/mjs/components/number/Number.form.js +0 -5
- package/lib/mjs/components/number/Number.js +2 -1
- package/lib/mjs/components/panel/Panel.form.d.ts +3 -6
- package/lib/mjs/components/panel/Panel.form.js +0 -5
- package/lib/mjs/components/panel/Panel.js +1 -0
- package/lib/mjs/components/password/Password.form.d.ts +3 -6
- package/lib/mjs/components/password/Password.form.js +0 -5
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +3 -6
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +0 -5
- package/lib/mjs/components/radio/Radio.d.ts +26 -3
- package/lib/mjs/components/radio/Radio.form.d.ts +3 -6
- package/lib/mjs/components/radio/Radio.form.js +0 -5
- package/lib/mjs/components/radio/Radio.js +4 -3
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -5
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +0 -4
- package/lib/mjs/components/select/Select.d.ts +39 -16
- package/lib/mjs/components/select/Select.form.d.ts +3 -6
- package/lib/mjs/components/select/Select.form.js +0 -5
- package/lib/mjs/components/select/Select.js +16 -13
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +17 -2
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +3 -6
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +0 -5
- package/lib/mjs/components/selectboxes/SelectBoxes.js +9 -7
- package/lib/mjs/components/signature/Signature.d.ts +14 -1
- package/lib/mjs/components/signature/Signature.form.d.ts +3 -6
- package/lib/mjs/components/signature/Signature.form.js +0 -5
- package/lib/mjs/components/survey/Survey.d.ts +15 -3
- package/lib/mjs/components/survey/Survey.form.d.ts +3 -6
- package/lib/mjs/components/survey/Survey.form.js +0 -5
- package/lib/mjs/components/table/Table.d.ts +1 -2
- package/lib/mjs/components/table/Table.form.d.ts +3 -6
- package/lib/mjs/components/table/Table.form.js +0 -5
- package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/mjs/components/tabs/Tabs.form.d.ts +3 -6
- package/lib/mjs/components/tabs/Tabs.form.js +0 -5
- package/lib/mjs/components/tabs/Tabs.js +2 -1
- package/lib/mjs/components/tags/Tags.d.ts +14 -0
- package/lib/mjs/components/tags/Tags.form.d.ts +3 -6
- package/lib/mjs/components/tags/Tags.form.js +0 -5
- package/lib/mjs/components/textarea/TextArea.d.ts +9 -4
- package/lib/mjs/components/textarea/TextArea.form.d.ts +3 -6
- package/lib/mjs/components/textarea/TextArea.form.js +0 -5
- package/lib/mjs/components/textarea/TextArea.js +2 -2
- package/lib/mjs/components/textfield/TextField.d.ts +30 -14
- package/lib/mjs/components/textfield/TextField.form.d.ts +3 -6
- package/lib/mjs/components/textfield/TextField.form.js +0 -5
- package/lib/mjs/components/textfield/TextField.js +16 -13
- package/lib/mjs/components/time/Time.form.d.ts +3 -6
- package/lib/mjs/components/time/Time.form.js +0 -5
- package/lib/mjs/components/unknown/Unknown.form.d.ts +34 -5
- package/lib/mjs/components/unknown/Unknown.form.js +0 -4
- package/lib/mjs/components/url/Url.form.d.ts +3 -6
- package/lib/mjs/components/url/Url.form.js +0 -5
- package/lib/mjs/components/well/Well.form.d.ts +3 -6
- package/lib/mjs/components/well/Well.form.js +0 -5
- package/lib/mjs/formio.embed.d.ts +2 -1
- package/lib/mjs/formio.embed.js +99 -2
- package/lib/mjs/formio.form.d.ts +4 -11
- package/lib/mjs/formio.form.js +3 -10
- package/lib/mjs/providers/Providers.d.ts +5 -36
- package/lib/mjs/providers/Providers.js +0 -29
- package/lib/mjs/providers/address/AddressProvider.d.ts +12 -131
- package/lib/mjs/providers/address/AddressProvider.js +2 -88
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -48
- package/lib/mjs/providers/address/AzureAddressProvider.js +0 -37
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +4 -27
- package/lib/mjs/providers/address/CustomAddressProvider.js +0 -34
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +6 -130
- package/lib/mjs/providers/address/GoogleAddressProvider.js +0 -72
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +7 -32
- package/lib/mjs/providers/address/NominatimAddressProvider.js +0 -33
- package/lib/mjs/providers/address/index.d.ts +1 -3
- package/lib/mjs/providers/processor/fileProcessor.d.ts +1 -7
- package/lib/mjs/providers/processor/fileProcessor.js +0 -6
- package/lib/mjs/providers/storage/azure.d.ts +13 -6
- package/lib/mjs/providers/storage/azure.js +0 -5
- package/lib/mjs/providers/storage/base64.d.ts +6 -5
- package/lib/mjs/providers/storage/base64.js +0 -4
- package/lib/mjs/providers/storage/dropbox.d.ts +4 -6
- package/lib/mjs/providers/storage/dropbox.js +0 -5
- package/lib/mjs/providers/storage/googleDrive.d.ts +5 -7
- package/lib/mjs/providers/storage/googleDrive.js +0 -6
- package/lib/mjs/providers/storage/indexeddb.d.ts +7 -5
- package/lib/mjs/providers/storage/indexeddb.js +0 -4
- package/lib/mjs/providers/storage/s3.d.ts +20 -6
- package/lib/mjs/providers/storage/s3.js +0 -5
- package/lib/mjs/providers/storage/url.d.ts +7 -6
- package/lib/mjs/providers/storage/url.js +0 -10
- package/lib/mjs/providers/storage/util.d.ts +1 -24
- package/lib/mjs/providers/storage/util.js +0 -18
- package/lib/mjs/templates/Templates.d.ts +0 -1
- package/lib/mjs/translations/en.d.ts +1 -0
- package/lib/mjs/translations/en.js +1 -0
- package/lib/mjs/utils/Evaluator.d.ts +3 -6
- package/lib/mjs/utils/Evaluator.js +20 -9
- package/lib/mjs/utils/builder.d.ts +7 -9
- package/lib/mjs/utils/builder.js +5 -10
- package/lib/mjs/utils/calendarUtils.d.ts +13 -7
- package/lib/mjs/utils/calendarUtils.js +17 -10
- package/lib/mjs/utils/formUtils.d.ts +171 -43
- package/lib/mjs/utils/formUtils.js +554 -6
- package/lib/mjs/utils/utils.d.ts +216 -362
- package/lib/mjs/utils/utils.js +218 -325
- package/lib/mjs/widgets/CalendarWidget.d.ts +10 -9
- package/lib/mjs/widgets/CalendarWidget.js +11 -9
- package/package.json +22 -22
- package/embed.d.ts +0 -1
- package/form.d.ts +0 -1
- package/lib/cjs/InlineEmbed.d.ts +0 -7
- package/lib/cjs/InlineEmbed.js +0 -109
- package/lib/mjs/InlineEmbed.d.ts +0 -7
- package/lib/mjs/InlineEmbed.js +0 -105
- package/sdk.d.ts +0 -1
- package/utils.d.ts +0 -1
|
@@ -64,7 +64,8 @@ class DayComponent extends Field_1.default {
|
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* The empty value for day component.
|
|
67
|
-
*
|
|
67
|
+
*
|
|
68
|
+
* @return {'00/00/0000'}
|
|
68
69
|
*/
|
|
69
70
|
get emptyValue() {
|
|
70
71
|
return '00/00/0000';
|
|
@@ -355,10 +356,10 @@ class DayComponent extends Field_1.default {
|
|
|
355
356
|
return dateParts.join('/');
|
|
356
357
|
}
|
|
357
358
|
/**
|
|
358
|
-
* Set the value at a specific index
|
|
359
|
-
*
|
|
360
|
-
* @param
|
|
361
|
-
* @
|
|
359
|
+
* Set the value at a specific index.
|
|
360
|
+
*
|
|
361
|
+
* @param index
|
|
362
|
+
* @param value
|
|
362
363
|
*/
|
|
363
364
|
setValueAt(index, value) {
|
|
364
365
|
// temporary solution to avoid input reset
|
|
@@ -412,7 +413,7 @@ class DayComponent extends Field_1.default {
|
|
|
412
413
|
}
|
|
413
414
|
/**
|
|
414
415
|
* Get the format for the value string.
|
|
415
|
-
* @returns {string}
|
|
416
|
+
* @returns {string}
|
|
416
417
|
*/
|
|
417
418
|
get format() {
|
|
418
419
|
let format = '';
|
|
@@ -436,8 +437,9 @@ class DayComponent extends Field_1.default {
|
|
|
436
437
|
}
|
|
437
438
|
/**
|
|
438
439
|
* Return the date for this component.
|
|
439
|
-
*
|
|
440
|
-
* @
|
|
440
|
+
*
|
|
441
|
+
* @param value
|
|
442
|
+
* @return {*}
|
|
441
443
|
*/
|
|
442
444
|
getDate(value) {
|
|
443
445
|
let defaults = [], day, month, year;
|
|
@@ -483,15 +485,16 @@ class DayComponent extends Field_1.default {
|
|
|
483
485
|
return result;
|
|
484
486
|
}
|
|
485
487
|
/**
|
|
486
|
-
* Return the date
|
|
487
|
-
* @returns {
|
|
488
|
+
* Return the date object for this component.
|
|
489
|
+
* @returns {Date}
|
|
488
490
|
*/
|
|
489
491
|
get date() {
|
|
490
492
|
return this.getDate();
|
|
491
493
|
}
|
|
492
494
|
/**
|
|
493
495
|
* Return the raw value.
|
|
494
|
-
*
|
|
496
|
+
*
|
|
497
|
+
* @returns {Date}
|
|
495
498
|
*/
|
|
496
499
|
get validationValue() {
|
|
497
500
|
return this.dataValue;
|
|
@@ -502,8 +505,9 @@ class DayComponent extends Field_1.default {
|
|
|
502
505
|
}
|
|
503
506
|
/**
|
|
504
507
|
* Get the value at a specific index.
|
|
505
|
-
*
|
|
506
|
-
* @
|
|
508
|
+
*
|
|
509
|
+
* @param index
|
|
510
|
+
* @returns {*}
|
|
507
511
|
*/
|
|
508
512
|
getValueAt(index) {
|
|
509
513
|
const date = this.date || this.emptyValue;
|
|
@@ -518,8 +522,9 @@ class DayComponent extends Field_1.default {
|
|
|
518
522
|
}
|
|
519
523
|
/**
|
|
520
524
|
* Get the input value of the date.
|
|
521
|
-
*
|
|
522
|
-
* @
|
|
525
|
+
*
|
|
526
|
+
* @param value
|
|
527
|
+
* @return {null}
|
|
523
528
|
*/
|
|
524
529
|
getValueAsString(value) {
|
|
525
530
|
return this.getDate(value) || '';
|
|
@@ -19,9 +19,8 @@ export default class EditGridComponent extends NestedArrayComponent {
|
|
|
19
19
|
get rowTemplate(): any;
|
|
20
20
|
get headerTemplate(): any;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
get hasScopedChildren(): boolean;
|
|
22
|
+
* Returns true if the component has nested components which don't trigger changes on the root level
|
|
23
|
+
*/ get hasScopedChildren(): boolean;
|
|
25
24
|
get emptyValue(): never[];
|
|
26
25
|
get editgridKey(): string;
|
|
27
26
|
get rowRef(): string;
|
|
@@ -36,8 +35,6 @@ export default class EditGridComponent extends NestedArrayComponent {
|
|
|
36
35
|
get inlineEditMode(): any;
|
|
37
36
|
get saveEditMode(): boolean;
|
|
38
37
|
get minLength(): any;
|
|
39
|
-
set data(value: any);
|
|
40
|
-
get data(): any;
|
|
41
38
|
get displayAsTable(): any;
|
|
42
39
|
get iteratableRows(): any;
|
|
43
40
|
get defaultValue(): any[];
|
|
@@ -93,10 +90,9 @@ export default class EditGridComponent extends NestedArrayComponent {
|
|
|
93
90
|
validateRow(editRow: any, dirty: any, forceSilentCheck: any): any;
|
|
94
91
|
showRowErrorAlerts(editRow: any, errors: any): void;
|
|
95
92
|
/**
|
|
96
|
-
*
|
|
93
|
+
* Return that this component processes its own validation.
|
|
97
94
|
*/
|
|
98
95
|
get processOwnValidation(): boolean;
|
|
99
|
-
checkComponentValidity(data: any, dirty: any, row: any, options?: {}, errors?: any[]): boolean;
|
|
100
96
|
setRowInvalid(ref: any, index: any): void;
|
|
101
97
|
changeState(changed: any, flags: any): void;
|
|
102
98
|
openWhenEmpty(): void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -8,11 +8,6 @@ const EditGrid_edit_data_1 = __importDefault(require("./editForm/EditGrid.edit.d
|
|
|
8
8
|
const EditGrid_edit_display_1 = __importDefault(require("./editForm/EditGrid.edit.display"));
|
|
9
9
|
const EditGrid_edit_templates_1 = __importDefault(require("./editForm/EditGrid.edit.templates"));
|
|
10
10
|
const EditGrid_edit_validation_1 = __importDefault(require("./editForm/EditGrid.edit.validation"));
|
|
11
|
-
/**
|
|
12
|
-
* The Edit Form function.
|
|
13
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
14
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
15
|
-
*/
|
|
16
11
|
function default_1(...extend) {
|
|
17
12
|
return Components_1.default.baseEditForm([
|
|
18
13
|
{
|
|
@@ -166,8 +166,8 @@ class EditGridComponent extends NestedArrayComponent_1.default {
|
|
|
166
166
|
return headerTemplate;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
169
|
+
* Returns true if the component has nested components which don't trigger changes on the root level
|
|
170
|
+
*/ //
|
|
171
171
|
get hasScopedChildren() {
|
|
172
172
|
return !this.inlineEditMode;
|
|
173
173
|
}
|
|
@@ -1046,7 +1046,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
/**
|
|
1049
|
-
*
|
|
1049
|
+
* Return that this component processes its own validation.
|
|
1050
1050
|
*/
|
|
1051
1051
|
get processOwnValidation() {
|
|
1052
1052
|
return true;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const Evaluator_1 = require("../../../utils/Evaluator");
|
|
6
|
+
const Evaluator_1 = __importDefault(require("../../../utils/Evaluator"));
|
|
4
7
|
exports.default = [
|
|
5
8
|
{
|
|
6
9
|
key: 'placeholder',
|
|
@@ -35,7 +38,7 @@ exports.default = [
|
|
|
35
38
|
weight: 1002,
|
|
36
39
|
input: false,
|
|
37
40
|
customConditional() {
|
|
38
|
-
return !Evaluator_1.
|
|
41
|
+
return !Evaluator_1.default.noeval;
|
|
39
42
|
},
|
|
40
43
|
},
|
|
41
44
|
{
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const Evaluator_1 = require("../../../utils/Evaluator");
|
|
6
|
+
const Evaluator_1 = __importDefault(require("../../../utils/Evaluator"));
|
|
4
7
|
exports.default = [
|
|
5
8
|
{
|
|
6
9
|
type: 'textarea',
|
|
@@ -15,7 +18,7 @@ exports.default = [
|
|
|
15
18
|
description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
|
|
16
19
|
tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the header of the Edit grid.',
|
|
17
20
|
customConditional({ data }) {
|
|
18
|
-
return (!Evaluator_1.
|
|
21
|
+
return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && !data.displayAsTable;
|
|
19
22
|
}
|
|
20
23
|
},
|
|
21
24
|
{
|
|
@@ -31,7 +34,7 @@ exports.default = [
|
|
|
31
34
|
description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
|
|
32
35
|
tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the header of the Edit grid.',
|
|
33
36
|
customConditional({ data }) {
|
|
34
|
-
return (!Evaluator_1.
|
|
37
|
+
return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && data.displayAsTable;
|
|
35
38
|
}
|
|
36
39
|
},
|
|
37
40
|
{
|
|
@@ -49,7 +52,7 @@ exports.default = [
|
|
|
49
52
|
' To add click events, add the classes "editRow" and "removeRow" to elements.',
|
|
50
53
|
tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render each row of the Edit grid.',
|
|
51
54
|
customConditional({ data }) {
|
|
52
|
-
return (!Evaluator_1.
|
|
55
|
+
return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && !data.displayAsTable;
|
|
53
56
|
}
|
|
54
57
|
},
|
|
55
58
|
{
|
|
@@ -67,7 +70,7 @@ exports.default = [
|
|
|
67
70
|
' To add click events, add the classes "editRow" and "removeRow" to elements.',
|
|
68
71
|
tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render each row of the Edit grid.',
|
|
69
72
|
customConditional({ data }) {
|
|
70
|
-
return (!Evaluator_1.
|
|
73
|
+
return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && data.displayAsTable;
|
|
71
74
|
}
|
|
72
75
|
},
|
|
73
76
|
{
|
|
@@ -82,7 +85,7 @@ exports.default = [
|
|
|
82
85
|
description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
|
|
83
86
|
tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the footer of the Edit grid.',
|
|
84
87
|
customConditional() {
|
|
85
|
-
return !Evaluator_1.
|
|
88
|
+
return !Evaluator_1.default.noeval || Evaluator_1.default.protectedEval;
|
|
86
89
|
}
|
|
87
90
|
},
|
|
88
91
|
{
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -6,11 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
|
|
7
7
|
const Email_edit_display_1 = __importDefault(require("./editForm/Email.edit.display"));
|
|
8
8
|
const Email_edit_validation_1 = __importDefault(require("./editForm/Email.edit.validation"));
|
|
9
|
-
/**
|
|
10
|
-
* The Edit Form function.
|
|
11
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
12
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
13
|
-
*/
|
|
14
9
|
function default_1(...extend) {
|
|
15
10
|
return (0, TextField_form_1.default)([
|
|
16
11
|
{
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -5,11 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
|
|
7
7
|
const Fieldset_edit_display_1 = __importDefault(require("./editForm/Fieldset.edit.display"));
|
|
8
|
-
/**
|
|
9
|
-
* The Edit Form function.
|
|
10
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
11
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
12
|
-
*/
|
|
13
8
|
function default_1(...extend) {
|
|
14
9
|
return (0, NestedComponent_form_1.default)([
|
|
15
10
|
{
|
|
@@ -9,9 +9,23 @@ export default class FileComponent extends Field {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
|
+
constructor: Function;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toLocaleString(): string;
|
|
15
|
+
valueOf(): Object;
|
|
16
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
+
isPrototypeOf(v: Object): boolean;
|
|
18
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
12
19
|
};
|
|
13
20
|
static get conditionOperatorsSettings(): {
|
|
14
21
|
operators: string[];
|
|
22
|
+
constructor: Function;
|
|
23
|
+
toString(): string;
|
|
24
|
+
toLocaleString(): string;
|
|
25
|
+
valueOf(): Object;
|
|
26
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
+
isPrototypeOf(v: Object): boolean;
|
|
28
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
15
29
|
};
|
|
16
30
|
static savedValueTypes(schema: any): string[];
|
|
17
31
|
support: {
|
|
@@ -45,7 +59,7 @@ export default class FileComponent extends Field {
|
|
|
45
59
|
type: number;
|
|
46
60
|
actions: number;
|
|
47
61
|
};
|
|
48
|
-
render():
|
|
62
|
+
render(): any;
|
|
49
63
|
getVideoStream(constraints: any): any;
|
|
50
64
|
stopVideoStream(videoStream: any): void;
|
|
51
65
|
getFrame(videoPlayer: any): Promise<any>;
|
|
@@ -65,7 +79,6 @@ export default class FileComponent extends Field {
|
|
|
65
79
|
get actions(): {
|
|
66
80
|
abort: (id: any) => void;
|
|
67
81
|
};
|
|
68
|
-
attach(element: any): Promise<void>;
|
|
69
82
|
filesReady: Promise<any> | undefined;
|
|
70
83
|
filesReadyResolve: ((value: any) => void) | undefined;
|
|
71
84
|
filesReadyReject: ((reason?: any) => void) | undefined;
|
|
@@ -89,34 +102,34 @@ export default class FileComponent extends Field {
|
|
|
89
102
|
file: any;
|
|
90
103
|
size: any;
|
|
91
104
|
status: string;
|
|
92
|
-
message:
|
|
105
|
+
message: any;
|
|
93
106
|
hash: string;
|
|
94
107
|
};
|
|
95
108
|
handleSubmissionRevisions(file: any): Promise<any>;
|
|
96
109
|
validateFileName(file: any): {
|
|
97
110
|
status: string;
|
|
98
|
-
message:
|
|
111
|
+
message: any;
|
|
99
112
|
} | {
|
|
100
113
|
status?: undefined;
|
|
101
114
|
message?: undefined;
|
|
102
115
|
};
|
|
103
116
|
validateFileSettings(file: any): {
|
|
104
117
|
status: string;
|
|
105
|
-
message:
|
|
118
|
+
message: any;
|
|
106
119
|
} | {
|
|
107
120
|
status?: undefined;
|
|
108
121
|
message?: undefined;
|
|
109
122
|
};
|
|
110
123
|
validateFileService(): {
|
|
111
124
|
status: string;
|
|
112
|
-
message:
|
|
125
|
+
message: any;
|
|
113
126
|
} | {
|
|
114
127
|
status?: undefined;
|
|
115
128
|
message?: undefined;
|
|
116
129
|
};
|
|
117
130
|
validateFile(file: any): {
|
|
118
131
|
status: string;
|
|
119
|
-
message:
|
|
132
|
+
message: any;
|
|
120
133
|
} | {
|
|
121
134
|
status?: undefined;
|
|
122
135
|
message?: undefined;
|
|
@@ -127,10 +140,10 @@ export default class FileComponent extends Field {
|
|
|
127
140
|
};
|
|
128
141
|
triggerFileProcessor(file: any): Promise<{
|
|
129
142
|
status: string;
|
|
130
|
-
message:
|
|
143
|
+
message: any;
|
|
131
144
|
file?: undefined;
|
|
132
145
|
} | {
|
|
133
|
-
file:
|
|
146
|
+
file: any;
|
|
134
147
|
status?: undefined;
|
|
135
148
|
message?: undefined;
|
|
136
149
|
}>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -8,11 +8,6 @@ const File_edit_data_1 = __importDefault(require("./editForm/File.edit.data"));
|
|
|
8
8
|
const File_edit_display_1 = __importDefault(require("./editForm/File.edit.display"));
|
|
9
9
|
const File_edit_file_1 = __importDefault(require("./editForm/File.edit.file"));
|
|
10
10
|
const File_edit_validation_1 = __importDefault(require("./editForm/File.edit.validation"));
|
|
11
|
-
/**
|
|
12
|
-
* The Edit Form function.
|
|
13
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
14
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
15
|
-
*/
|
|
16
11
|
function default_1(...extend) {
|
|
17
12
|
return Components_1.default.baseEditForm([
|
|
18
13
|
{
|
|
@@ -13,47 +13,41 @@ export default class FormComponent extends Component {
|
|
|
13
13
|
valueChanged: boolean | undefined;
|
|
14
14
|
subForm: any;
|
|
15
15
|
formSrc: any;
|
|
16
|
-
get dataReady():
|
|
16
|
+
get dataReady(): any;
|
|
17
17
|
get emptyValue(): {
|
|
18
18
|
data: {};
|
|
19
19
|
};
|
|
20
|
-
get ready():
|
|
20
|
+
get ready(): 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(): any;
|
|
27
27
|
asString(value: any): any;
|
|
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>;
|
|
28
|
+
attach(element: any): Promise<any>;
|
|
33
29
|
get hasLoadedForm(): any;
|
|
34
30
|
get isRevisionChanged(): any;
|
|
35
|
-
subFormReady:
|
|
31
|
+
subFormReady: any;
|
|
36
32
|
/**
|
|
37
33
|
* Pass everyComponent to subform.
|
|
38
|
-
* @param
|
|
39
|
-
* @returns {
|
|
34
|
+
* @param args
|
|
35
|
+
* @returns {*|void}
|
|
40
36
|
*/
|
|
41
|
-
everyComponent(...args: any[]): any;
|
|
37
|
+
everyComponent(...args: any[]): any | void;
|
|
42
38
|
setSubFormDisabled(subForm: any): void;
|
|
43
39
|
updateSubWizards(subForm: any): void;
|
|
44
40
|
/**
|
|
45
41
|
* Create a subform instance.
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
42
|
+
*
|
|
43
|
+
* @return {*}
|
|
48
44
|
*/
|
|
49
|
-
createSubForm(fromAttach
|
|
45
|
+
createSubForm(fromAttach: any): any;
|
|
50
46
|
hideSubmitButton(component: any): void;
|
|
51
47
|
/**
|
|
52
48
|
* 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.
|
|
55
49
|
*/
|
|
56
|
-
loadSubForm(fromAttach:
|
|
50
|
+
loadSubForm(fromAttach: any): any;
|
|
57
51
|
subFormLoading: boolean | undefined;
|
|
58
52
|
get subFormData(): any;
|
|
59
53
|
checkComponentValidity(data: any, dirty: any, row: any, options: any, errors?: any[]): any;
|
|
@@ -62,30 +56,25 @@ export default class FormComponent extends Component {
|
|
|
62
56
|
setPristine(pristine: any): void;
|
|
63
57
|
/**
|
|
64
58
|
* Determine if the subform should be submitted.
|
|
65
|
-
* @
|
|
59
|
+
* @return {*|boolean}
|
|
66
60
|
*/
|
|
67
61
|
get shouldSubmit(): any;
|
|
68
62
|
/**
|
|
69
63
|
* Returns the data for the subform.
|
|
70
|
-
*
|
|
64
|
+
*
|
|
65
|
+
* @return {*}
|
|
71
66
|
*/
|
|
72
67
|
getSubFormData(): any;
|
|
73
68
|
/**
|
|
74
69
|
* Submit the subform if configured to do so.
|
|
75
|
-
*
|
|
70
|
+
*
|
|
71
|
+
* @return {*}
|
|
76
72
|
*/
|
|
77
|
-
submitSubForm():
|
|
73
|
+
submitSubForm(): any;
|
|
78
74
|
/**
|
|
79
75
|
* 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.
|
|
87
76
|
*/
|
|
88
|
-
|
|
77
|
+
beforePage(next: any): any;
|
|
89
78
|
isSubFormLazyLoad(): any;
|
|
90
79
|
isHidden(): boolean;
|
|
91
80
|
setValue(submission: any, flags?: {}): boolean;
|
|
@@ -95,7 +84,7 @@ export default class FormComponent extends Component {
|
|
|
95
84
|
/**
|
|
96
85
|
* Determines if this form is a Nested Wizard
|
|
97
86
|
* which means it should be a Wizard itself and should be a direct child of a Wizard's page
|
|
98
|
-
* @returns {boolean}
|
|
87
|
+
* @returns {boolean}
|
|
99
88
|
*/
|
|
100
89
|
get isNestedWizard(): boolean;
|
|
101
90
|
isInternalEvent(event: any): boolean;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|
|
@@ -7,11 +7,6 @@ const NestedComponent_form_1 = __importDefault(require("../_classes/nested/Neste
|
|
|
7
7
|
const Form_edit_display_1 = __importDefault(require("./editForm/Form.edit.display"));
|
|
8
8
|
const Form_edit_form_1 = __importDefault(require("./editForm/Form.edit.form"));
|
|
9
9
|
const Form_edit_data_1 = __importDefault(require("./editForm/Form.edit.data"));
|
|
10
|
-
/**
|
|
11
|
-
* The Edit Form function.
|
|
12
|
-
* @param {...any} extend - The components that extend the edit form.
|
|
13
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
14
|
-
*/
|
|
15
10
|
function default_1(...extend) {
|
|
16
11
|
return (0, NestedComponent_form_1.default)([
|
|
17
12
|
{
|
|
@@ -349,8 +349,8 @@ class FormComponent extends Component_1.default {
|
|
|
349
349
|
}
|
|
350
350
|
/**
|
|
351
351
|
* Pass everyComponent to subform.
|
|
352
|
-
* @param
|
|
353
|
-
* @returns {
|
|
352
|
+
* @param args
|
|
353
|
+
* @returns {*|void}
|
|
354
354
|
*/
|
|
355
355
|
everyComponent(...args) {
|
|
356
356
|
if (this.subForm) {
|
|
@@ -375,8 +375,8 @@ class FormComponent extends Component_1.default {
|
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
377
|
* Create a subform instance.
|
|
378
|
-
*
|
|
379
|
-
* @
|
|
378
|
+
*
|
|
379
|
+
* @return {*}
|
|
380
380
|
*/
|
|
381
381
|
createSubForm(fromAttach) {
|
|
382
382
|
this.subFormReady = this.loadSubForm(fromAttach).then((form) => {
|
|
@@ -429,8 +429,6 @@ class FormComponent extends Component_1.default {
|
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
431
|
* Load the subform.
|
|
432
|
-
* @param {boolean} fromAttach - This function is being called from an `attach` method.
|
|
433
|
-
* @returns {Promise} - The promise that resolves when the subform is loaded.
|
|
434
432
|
*/
|
|
435
433
|
loadSubForm(fromAttach) {
|
|
436
434
|
var _a, _b, _c;
|
|
@@ -515,14 +513,15 @@ class FormComponent extends Component_1.default {
|
|
|
515
513
|
}
|
|
516
514
|
/**
|
|
517
515
|
* Determine if the subform should be submitted.
|
|
518
|
-
* @
|
|
516
|
+
* @return {*|boolean}
|
|
519
517
|
*/
|
|
520
518
|
get shouldSubmit() {
|
|
521
519
|
return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.isHidden();
|
|
522
520
|
}
|
|
523
521
|
/**
|
|
524
522
|
* Returns the data for the subform.
|
|
525
|
-
*
|
|
523
|
+
*
|
|
524
|
+
* @return {*}
|
|
526
525
|
*/
|
|
527
526
|
getSubFormData() {
|
|
528
527
|
if (lodash_1.default.get(this.subForm, 'form.display') === 'pdf') {
|
|
@@ -534,7 +533,8 @@ class FormComponent extends Component_1.default {
|
|
|
534
533
|
}
|
|
535
534
|
/**
|
|
536
535
|
* Submit the subform if configured to do so.
|
|
537
|
-
*
|
|
536
|
+
*
|
|
537
|
+
* @return {*}
|
|
538
538
|
*/
|
|
539
539
|
submitSubForm() {
|
|
540
540
|
// If we wish to submit the form on next page, then do that here.
|
|
@@ -561,8 +561,6 @@ class FormComponent extends Component_1.default {
|
|
|
561
561
|
}
|
|
562
562
|
/**
|
|
563
563
|
* Submit the form before the next page is triggered.
|
|
564
|
-
* @param {Function} next - The function to trigger the next page.
|
|
565
|
-
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
|
|
566
564
|
*/
|
|
567
565
|
beforePage(next) {
|
|
568
566
|
// Should not submit child forms if we are going to the previous page
|
|
@@ -573,7 +571,6 @@ class FormComponent extends Component_1.default {
|
|
|
573
571
|
}
|
|
574
572
|
/**
|
|
575
573
|
* Submit the form before the whole form is triggered.
|
|
576
|
-
* @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
|
|
577
574
|
*/
|
|
578
575
|
beforeSubmit() {
|
|
579
576
|
var _a, _b, _c;
|
|
@@ -688,7 +685,7 @@ class FormComponent extends Component_1.default {
|
|
|
688
685
|
/**
|
|
689
686
|
* Determines if this form is a Nested Wizard
|
|
690
687
|
* which means it should be a Wizard itself and should be a direct child of a Wizard's page
|
|
691
|
-
* @returns {boolean}
|
|
688
|
+
* @returns {boolean}
|
|
692
689
|
*/
|
|
693
690
|
get isNestedWizard() {
|
|
694
691
|
var _a, _b, _c, _d, _e;
|
|
@@ -8,7 +8,17 @@ export default class HiddenComponent extends Input {
|
|
|
8
8
|
showPreview: boolean;
|
|
9
9
|
schema: any;
|
|
10
10
|
};
|
|
11
|
-
get inputInfo():
|
|
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
|
+
};
|
|
12
22
|
labelIsHidden(): boolean;
|
|
13
23
|
get emptyValue(): string;
|
|
14
24
|
setValue(value: any, flags?: {}): boolean;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
1
|
+
export default function _default(...extend: any[]): {
|
|
2
|
+
components: any;
|
|
3
|
+
};
|