@formio/js 5.0.0-dev.5643.9c5173a → 5.0.0-dev.5646.35daa65
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 +65 -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 +792 -1237
- 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 +692 -933
- 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 +1853 -476
- 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/Formio.js +1 -0
- 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 +187 -139
- package/lib/cjs/Webform.js +330 -300
- package/lib/cjs/WebformBuilder.d.ts +16 -14
- package/lib/cjs/WebformBuilder.js +19 -12
- package/lib/cjs/Wizard.d.ts +31 -21
- package/lib/cjs/Wizard.js +43 -20
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/cjs/components/Components.d.ts +4 -4
- package/lib/cjs/components/Components.js +3 -3
- package/lib/cjs/components/_classes/component/Component.d.ts +515 -269
- package/lib/cjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/cjs/components/_classes/component/Component.form.js +5 -0
- package/lib/cjs/components/_classes/component/Component.js +462 -204
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +1 -1
- 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/comp7.d.ts +84 -0
- package/lib/cjs/components/_classes/component/fixtures/comp7.js +86 -0
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +3 -1
- package/lib/cjs/components/_classes/component/fixtures/index.js +5 -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 +31 -7
- 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 +44 -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/address/Address.js +4 -0
- package/lib/cjs/components/address/editForm/Address.edit.provider.js +1 -1
- 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 +5 -28
- 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/checkbox/Checkbox.js +1 -1
- package/lib/cjs/components/checkbox/fixtures/comp6.d.ts +32 -0
- package/lib/cjs/components/checkbox/fixtures/comp6.js +30 -0
- package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
- 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 +17 -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 +55 -37
- package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.d.ts +100 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.js +139 -0
- package/lib/cjs/components/datagrid/fixtures/comp10.d.ts +81 -0
- package/lib/cjs/components/datagrid/fixtures/comp10.js +87 -0
- package/lib/cjs/components/datagrid/fixtures/comp9.d.ts +41 -0
- package/lib/cjs/components/datagrid/fixtures/comp9.js +44 -0
- package/lib/cjs/components/datagrid/fixtures/index.d.ts +4 -1
- package/lib/cjs/components/datagrid/fixtures/index.js +7 -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/comp8.d.ts +41 -0
- package/lib/cjs/components/day/fixtures/comp8.js +40 -0
- package/lib/cjs/components/day/fixtures/index.d.ts +3 -1
- package/lib/cjs/components/day/fixtures/index.js +5 -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 +5 -5
- 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 +38 -20
- package/lib/cjs/components/form/Form.form.d.ts +6 -3
- package/lib/cjs/components/form/Form.form.js +5 -0
- package/lib/cjs/components/form/Form.js +27 -15
- 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 +2 -3
- package/lib/cjs/components/number/fixtures/comp8.d.ts +32 -0
- package/lib/cjs/components/number/fixtures/comp8.js +28 -0
- package/lib/cjs/components/number/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/number/fixtures/index.js +3 -1
- 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/phonenumber/fixtures/comp2.d.ts +16 -0
- package/lib/cjs/components/phonenumber/fixtures/comp2.js +25 -0
- package/lib/cjs/components/phonenumber/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/phonenumber/fixtures/index.js +3 -1
- 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 -7
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/cjs/components/select/Select.d.ts +16 -39
- package/lib/cjs/components/select/Select.form.d.ts +6 -3
- package/lib/cjs/components/select/Select.form.js +5 -0
- package/lib/cjs/components/select/Select.js +14 -18
- 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/signature/Signature.js +1 -1
- 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 +135 -6
- package/lib/cjs/providers/address/GoogleAddressProvider.js +95 -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 +5 -0
- package/lib/cjs/translations/en.js +6 -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/conditionOperators/IsEmptyValue.js +4 -3
- package/lib/cjs/utils/conditionOperators/IsEqualTo.js +3 -3
- package/lib/cjs/utils/formUtils.d.ts +43 -171
- package/lib/cjs/utils/formUtils.js +38 -569
- package/lib/cjs/utils/utils.d.ts +360 -223
- package/lib/cjs/utils/utils.js +394 -239
- 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/Formio.js +1 -0
- 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 +187 -139
- package/lib/mjs/Webform.js +342 -312
- package/lib/mjs/WebformBuilder.d.ts +16 -14
- package/lib/mjs/WebformBuilder.js +19 -12
- package/lib/mjs/Wizard.d.ts +31 -21
- package/lib/mjs/Wizard.js +42 -19
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/mjs/components/Components.d.ts +4 -4
- package/lib/mjs/components/Components.js +3 -3
- package/lib/mjs/components/_classes/component/Component.d.ts +515 -269
- package/lib/mjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/mjs/components/_classes/component/Component.form.js +5 -0
- package/lib/mjs/components/_classes/component/Component.js +470 -204
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +1 -1
- 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/comp7.d.ts +84 -0
- package/lib/mjs/components/_classes/component/fixtures/comp7.js +84 -0
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +3 -1
- package/lib/mjs/components/_classes/component/fixtures/index.js +3 -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 +30 -7
- 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 +44 -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/address/Address.js +4 -0
- package/lib/mjs/components/address/editForm/Address.edit.provider.js +1 -1
- 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 +5 -28
- 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/checkbox/Checkbox.js +1 -1
- package/lib/mjs/components/checkbox/fixtures/comp6.d.ts +32 -0
- package/lib/mjs/components/checkbox/fixtures/comp6.js +28 -0
- package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
- 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 +17 -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 +55 -37
- package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.d.ts +100 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.js +137 -0
- package/lib/mjs/components/datagrid/fixtures/comp10.d.ts +81 -0
- package/lib/mjs/components/datagrid/fixtures/comp10.js +85 -0
- package/lib/mjs/components/datagrid/fixtures/comp9.d.ts +41 -0
- package/lib/mjs/components/datagrid/fixtures/comp9.js +42 -0
- package/lib/mjs/components/datagrid/fixtures/index.d.ts +4 -1
- package/lib/mjs/components/datagrid/fixtures/index.js +4 -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/comp8.d.ts +41 -0
- package/lib/mjs/components/day/fixtures/comp8.js +38 -0
- package/lib/mjs/components/day/fixtures/index.d.ts +3 -1
- package/lib/mjs/components/day/fixtures/index.js +3 -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 +5 -5
- 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 +38 -20
- package/lib/mjs/components/form/Form.form.d.ts +6 -3
- package/lib/mjs/components/form/Form.form.js +5 -0
- package/lib/mjs/components/form/Form.js +25 -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 +2 -3
- package/lib/mjs/components/number/fixtures/comp8.d.ts +32 -0
- package/lib/mjs/components/number/fixtures/comp8.js +26 -0
- package/lib/mjs/components/number/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/number/fixtures/index.js +2 -1
- 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/phonenumber/fixtures/comp2.d.ts +16 -0
- package/lib/mjs/components/phonenumber/fixtures/comp2.js +23 -0
- package/lib/mjs/components/phonenumber/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/phonenumber/fixtures/index.js +2 -1
- 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 +15 -19
- 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/signature/Signature.js +1 -1
- 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 +135 -6
- package/lib/mjs/providers/address/GoogleAddressProvider.js +94 -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 +5 -0
- package/lib/mjs/translations/en.js +6 -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/conditionOperators/IsEmptyValue.js +3 -3
- package/lib/mjs/utils/conditionOperators/IsEqualTo.js +1 -1
- package/lib/mjs/utils/formUtils.d.ts +43 -171
- package/lib/mjs/utils/formUtils.js +6 -554
- package/lib/mjs/utils/utils.d.ts +360 -223
- package/lib/mjs/utils/utils.js +387 -233
- package/lib/mjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/mjs/widgets/CalendarWidget.js +9 -11
- package/package.json +22 -23
- package/sdk.d.ts +1 -0
- package/utils.d.ts +1 -0
|
@@ -9,23 +9,9 @@ export default class SignatureComponent extends Input {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
|
-
constructor: Function;
|
|
13
|
-
toString(): string;
|
|
14
|
-
toLocaleString(): string;
|
|
15
|
-
valueOf(): Object;
|
|
16
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
-
isPrototypeOf(v: Object): boolean;
|
|
18
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
operators: string[];
|
|
22
|
-
constructor: Function;
|
|
23
|
-
toString(): string;
|
|
24
|
-
toLocaleString(): string;
|
|
25
|
-
valueOf(): Object;
|
|
26
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
-
isPrototypeOf(v: Object): boolean;
|
|
28
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
29
15
|
};
|
|
30
16
|
static savedValueTypes(schema: any): string[];
|
|
31
17
|
currentWidth: any;
|
|
@@ -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[];
|
|
@@ -7,6 +7,11 @@ const Components_1 = __importDefault(require("../Components"));
|
|
|
7
7
|
const Signature_edit_data_1 = __importDefault(require("./editForm/Signature.edit.data"));
|
|
8
8
|
const Signature_edit_display_1 = __importDefault(require("./editForm/Signature.edit.display"));
|
|
9
9
|
const Signature_edit_validation_1 = __importDefault(require("./editForm/Signature.edit.validation"));
|
|
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
|
+
*/
|
|
10
15
|
function default_1(...extend) {
|
|
11
16
|
return Components_1.default.baseEditForm([
|
|
12
17
|
{
|
|
@@ -172,7 +172,7 @@ class SignatureComponent extends Input_1.default {
|
|
|
172
172
|
return false;
|
|
173
173
|
}
|
|
174
174
|
getModalPreviewTemplate() {
|
|
175
|
-
return this.
|
|
175
|
+
return this.renderModalPreview({
|
|
176
176
|
previewText: this.dataValue ?
|
|
177
177
|
`<img src=${this.dataValue} ${this._referenceAttributeName}='openModal' style="width: 100%;height: 100%;" />` :
|
|
178
178
|
this.t('Click to Sign')
|
|
@@ -9,29 +9,17 @@ export default class SurveyComponent extends Field {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
12
|
-
constructor: Function;
|
|
13
|
-
toString(): string;
|
|
14
|
-
toLocaleString(): string;
|
|
15
|
-
valueOf(): Object;
|
|
16
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
-
isPrototypeOf(v: Object): boolean;
|
|
18
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
operators: string[];
|
|
22
|
-
constructor: Function;
|
|
23
|
-
toString(): string;
|
|
24
|
-
toLocaleString(): string;
|
|
25
|
-
valueOf(): Object;
|
|
26
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
-
isPrototypeOf(v: Object): boolean;
|
|
28
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
29
15
|
};
|
|
30
16
|
static savedValueTypes(schema: any): string[];
|
|
31
|
-
render():
|
|
17
|
+
render(): Field;
|
|
18
|
+
attach(element: any): Promise<void>;
|
|
32
19
|
setValue(value: any, flags?: {}): boolean;
|
|
33
20
|
get emptyValue(): {};
|
|
34
21
|
validateRequired(setting: any, value: any): any;
|
|
35
22
|
getInputName(question: any): string;
|
|
23
|
+
getValueAsString(value: any, options: any): any;
|
|
36
24
|
}
|
|
37
25
|
import Field from '../_classes/field/Field';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -7,6 +7,11 @@ const Components_1 = __importDefault(require("../Components"));
|
|
|
7
7
|
const Survey_edit_data_1 = __importDefault(require("./editForm/Survey.edit.data"));
|
|
8
8
|
const Survey_edit_display_1 = __importDefault(require("./editForm/Survey.edit.display"));
|
|
9
9
|
const Survey_edit_validation_1 = __importDefault(require("./editForm/Survey.edit.validation"));
|
|
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
|
+
*/
|
|
10
15
|
function default_1(...extend) {
|
|
11
16
|
return Components_1.default.baseEditForm([
|
|
12
17
|
{
|
|
@@ -13,11 +13,12 @@ export default class TableComponent extends NestedComponent {
|
|
|
13
13
|
};
|
|
14
14
|
static savedValueTypes(): never[];
|
|
15
15
|
constructor(...args: any[]);
|
|
16
|
+
get schema(): any;
|
|
16
17
|
get cellClassName(): string;
|
|
17
18
|
get tableKey(): string;
|
|
18
19
|
get colWidth(): string;
|
|
19
20
|
noField: boolean;
|
|
20
21
|
table: any[] | undefined;
|
|
21
|
-
render():
|
|
22
|
+
render(): import("../_classes/field/Field").default;
|
|
22
23
|
}
|
|
23
24
|
import NestedComponent from '../_classes/nested/NestedComponent';
|
|
@@ -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[];
|
|
@@ -5,6 +5,11 @@ 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 Table_edit_display_1 = __importDefault(require("./editForm/Table.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
|
+
*/
|
|
8
13
|
function default_1(...extend) {
|
|
9
14
|
return (0, NestedComponent_form_1.default)([
|
|
10
15
|
{
|
|
@@ -16,15 +16,15 @@ export default class TabsComponent extends NestedComponent {
|
|
|
16
16
|
currentTab: number;
|
|
17
17
|
noField: boolean;
|
|
18
18
|
tabs: any[] | undefined;
|
|
19
|
-
render():
|
|
19
|
+
render(): import("../_classes/field/Field").default;
|
|
20
20
|
detach(all: any): void;
|
|
21
21
|
/**
|
|
22
22
|
* Set the current tab.
|
|
23
|
-
*
|
|
24
|
-
* @param index
|
|
23
|
+
* @param {number} index - The index of the tab to set.
|
|
25
24
|
*/
|
|
26
|
-
setTab(index:
|
|
25
|
+
setTab(index: number): void;
|
|
27
26
|
beforeFocus(component: any): void;
|
|
27
|
+
setErrorClasses(elements: any, dirty: any, hasErrors: any, hasMessages: any, element?: any): void;
|
|
28
28
|
handleTabsValidation(): void;
|
|
29
29
|
}
|
|
30
30
|
import NestedComponent from '../_classes/nested/NestedComponent';
|
|
@@ -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[];
|
|
@@ -5,6 +5,11 @@ 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 Tabs_edit_display_1 = __importDefault(require("./editForm/Tabs.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
|
+
*/
|
|
8
13
|
function default_1(...extend) {
|
|
9
14
|
return (0, NestedComponent_form_1.default)([
|
|
10
15
|
{
|
|
@@ -112,8 +112,7 @@ class TabsComponent extends NestedComponent_1.default {
|
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Set the current tab.
|
|
115
|
-
*
|
|
116
|
-
* @param index
|
|
115
|
+
* @param {number} index - The index of the tab to set.
|
|
117
116
|
*/
|
|
118
117
|
setTab(index) {
|
|
119
118
|
if (!this.tabs || !this.tabs[index] || !this.refs[this.tabKey] || !this.refs[this.tabKey][index]) {
|
|
@@ -9,23 +9,9 @@ export default class TagsComponent extends Input {
|
|
|
9
9
|
};
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: any[];
|
|
12
|
-
constructor: Function;
|
|
13
|
-
toString(): string;
|
|
14
|
-
toLocaleString(): string;
|
|
15
|
-
valueOf(): Object;
|
|
16
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
17
|
-
isPrototypeOf(v: Object): boolean;
|
|
18
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
19
12
|
};
|
|
20
13
|
static get conditionOperatorsSettings(): {
|
|
21
14
|
operators: any[];
|
|
22
|
-
constructor: Function;
|
|
23
|
-
toString(): string;
|
|
24
|
-
toLocaleString(): string;
|
|
25
|
-
valueOf(): Object;
|
|
26
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
27
|
-
isPrototypeOf(v: Object): boolean;
|
|
28
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
29
15
|
};
|
|
30
16
|
static savedValueTypes(schema: any): any[];
|
|
31
17
|
get emptyValue(): "" | never[];
|
|
@@ -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[];
|
|
@@ -5,6 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const Tags_edit_data_1 = __importDefault(require("./editForm/Tags.edit.data"));
|
|
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
|
+
*/
|
|
8
13
|
function default_1(...extend) {
|
|
9
14
|
return Components_1.default.baseEditForm([
|
|
10
15
|
{
|
|
@@ -5,10 +5,10 @@ export default class TextAreaComponent extends TextFieldComponent {
|
|
|
5
5
|
get autoExpand(): any;
|
|
6
6
|
/**
|
|
7
7
|
* Updates the editor value.
|
|
8
|
-
*
|
|
9
|
-
* @param newValue
|
|
8
|
+
* @param {number} index - The index of the editor.
|
|
9
|
+
* @param {any} newValue - The new editor value.
|
|
10
10
|
*/
|
|
11
|
-
updateEditorValue(index:
|
|
11
|
+
updateEditorValue(index: number, newValue: any): void;
|
|
12
12
|
autoModified: boolean | undefined;
|
|
13
13
|
attachElement(element: any, index: any): any;
|
|
14
14
|
imageHandler(moduleInstance: any, range: any, files: any): void;
|
|
@@ -24,12 +24,7 @@ export default class TextAreaComponent extends TextFieldComponent {
|
|
|
24
24
|
setImagesUrl(images: any): Promise<any>;
|
|
25
25
|
addAutoExpanding(textarea: any, index: any): void;
|
|
26
26
|
trimBlanks(value: any): any;
|
|
27
|
-
onChange(flags: any, fromRoot: any):
|
|
28
|
-
instance: this;
|
|
29
|
-
component: any;
|
|
30
|
-
value: any;
|
|
31
|
-
flags: any;
|
|
32
|
-
};
|
|
27
|
+
onChange(flags: any, fromRoot: any): boolean;
|
|
33
28
|
hasChanged(newValue: any, oldValue: any): boolean;
|
|
34
29
|
getConvertedValue(value: any): any;
|
|
35
30
|
focus(): void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
|
|
7
7
|
const TextArea_edit_display_1 = __importDefault(require("./editForm/TextArea.edit.display"));
|
|
8
8
|
const TextArea_edit_validation_1 = __importDefault(require("./editForm/TextArea.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
|
+
*/
|
|
9
14
|
function default_1(...extend) {
|
|
10
15
|
return (0, TextField_form_1.default)([
|
|
11
16
|
{
|
|
@@ -82,8 +82,8 @@ class TextAreaComponent extends TextField_1.default {
|
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Updates the editor value.
|
|
85
|
-
*
|
|
86
|
-
* @param newValue
|
|
85
|
+
* @param {number} index - The index of the editor.
|
|
86
|
+
* @param {any} newValue - The new editor value.
|
|
87
87
|
*/
|
|
88
88
|
updateEditorValue(index, newValue) {
|
|
89
89
|
newValue = this.getConvertedValue(this.trimBlanks(newValue));
|
|
@@ -10,55 +10,39 @@ export default class TextFieldComponent 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
|
get emptyValue(): string;
|
|
34
20
|
/**
|
|
35
|
-
* Returns the mask value object.
|
|
36
|
-
*
|
|
37
|
-
* @param value
|
|
38
|
-
* @
|
|
39
|
-
* @return {*}
|
|
21
|
+
* Returns the mask value object (mutates value!).
|
|
22
|
+
* @param {any} [value] - The value to convert to a mask value.
|
|
23
|
+
* @param {any} [flags] - The flags to use when converting to a mask value.
|
|
24
|
+
* @returns {*} - The value as a mask value.
|
|
40
25
|
*/
|
|
41
|
-
maskValue(value
|
|
26
|
+
maskValue(value?: any, flags?: any): any;
|
|
42
27
|
/**
|
|
43
28
|
* Normalize the value set in the data object.
|
|
44
|
-
*
|
|
45
|
-
* @param value
|
|
46
|
-
* @
|
|
47
|
-
* @return {*}
|
|
29
|
+
* @param {any} value - The value to normalize.
|
|
30
|
+
* @param {any} flags - The flags to use when normalizing the value.
|
|
31
|
+
* @returns {*} - Returns the normalized value.
|
|
48
32
|
*/
|
|
49
|
-
normalizeValue(value: any, flags?:
|
|
50
|
-
unmaskValue(value: any, format?: any):
|
|
33
|
+
normalizeValue(value: any, flags?: any): any;
|
|
34
|
+
unmaskValue(value: any, format?: any): string;
|
|
51
35
|
/**
|
|
52
36
|
* Returns the value at this index.
|
|
53
|
-
*
|
|
54
|
-
* @
|
|
55
|
-
* @return {*}
|
|
37
|
+
* @param {number} index - The index to get the value from.
|
|
38
|
+
* @returns {*} - The value at the index.
|
|
56
39
|
*/
|
|
57
|
-
getValueAt(index:
|
|
40
|
+
getValueAt(index: number): any;
|
|
58
41
|
checkInputMaskValue(inputMask: any): boolean;
|
|
59
42
|
setInputMask(input: any, inputMask: any, usePlaceholder: any): void;
|
|
60
43
|
isHtmlRenderMode(): any;
|
|
61
44
|
truncateMultipleSpaces(value: any): any;
|
|
62
45
|
beforeSubmit(): Promise<any>;
|
|
46
|
+
getValueAsString(value: any, options: any): string;
|
|
63
47
|
}
|
|
64
48
|
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[];
|
|
@@ -7,6 +7,11 @@ const Components_1 = __importDefault(require("../Components"));
|
|
|
7
7
|
const TextField_edit_data_1 = __importDefault(require("./editForm/TextField.edit.data"));
|
|
8
8
|
const TextField_edit_display_1 = __importDefault(require("./editForm/TextField.edit.display"));
|
|
9
9
|
const TextField_edit_validation_1 = __importDefault(require("./editForm/TextField.edit.validation"));
|
|
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
|
+
*/
|
|
10
15
|
function default_1(...extend) {
|
|
11
16
|
return Components_1.default.baseEditForm([
|
|
12
17
|
{
|
|
@@ -111,11 +111,10 @@ class TextFieldComponent extends Input_1.default {
|
|
|
111
111
|
return super.attach(element);
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
* Returns the mask value object.
|
|
115
|
-
*
|
|
116
|
-
* @param value
|
|
117
|
-
* @
|
|
118
|
-
* @return {*}
|
|
114
|
+
* Returns the mask value object (mutates value!).
|
|
115
|
+
* @param {any} [value] - The value to convert to a mask value.
|
|
116
|
+
* @param {any} [flags] - The flags to use when converting to a mask value.
|
|
117
|
+
* @returns {*} - The value as a mask value.
|
|
119
118
|
*/
|
|
120
119
|
maskValue(value, flags = {}) {
|
|
121
120
|
// Convert it into the correct format.
|
|
@@ -134,10 +133,9 @@ class TextFieldComponent extends Input_1.default {
|
|
|
134
133
|
}
|
|
135
134
|
/**
|
|
136
135
|
* Normalize the value set in the data object.
|
|
137
|
-
*
|
|
138
|
-
* @param value
|
|
139
|
-
* @
|
|
140
|
-
* @return {*}
|
|
136
|
+
* @param {any} value - The value to normalize.
|
|
137
|
+
* @param {any} flags - The flags to use when normalizing the value.
|
|
138
|
+
* @returns {*} - Returns the normalized value.
|
|
141
139
|
*/
|
|
142
140
|
normalizeValue(value, flags = {}) {
|
|
143
141
|
if (!this.isMultipleMasksField) {
|
|
@@ -150,10 +148,10 @@ class TextFieldComponent extends Input_1.default {
|
|
|
150
148
|
}
|
|
151
149
|
/**
|
|
152
150
|
* Sets the value at this index.
|
|
153
|
-
*
|
|
154
|
-
* @param
|
|
155
|
-
* @param value
|
|
156
|
-
* @
|
|
151
|
+
* @param {number} index - The index to set the value at.
|
|
152
|
+
* @param {any} value - The value to set.
|
|
153
|
+
* @param {any} [flags] - The flags to use when setting the value.
|
|
154
|
+
* @returns {void}
|
|
157
155
|
*/
|
|
158
156
|
setValueAt(index, value, flags = {}) {
|
|
159
157
|
if (!this.isMultipleMasksField) {
|
|
@@ -165,6 +163,9 @@ class TextFieldComponent extends Input_1.default {
|
|
|
165
163
|
const maskInput = this.refs.select ? this.refs.select[index] : null;
|
|
166
164
|
const mask = this.getMaskPattern(value.maskName);
|
|
167
165
|
if (textInput && maskInput && mask) {
|
|
166
|
+
// We need to set the maskInput (select dropdown) value before calling inputmask.setValue because, this
|
|
167
|
+
// function will trigger a "change" event, which was calling updateValue setting the mask type to an incorrect value.
|
|
168
|
+
maskInput.value = value.maskName;
|
|
168
169
|
if (textInput.inputmask) {
|
|
169
170
|
this.setInputMask(textInput, mask);
|
|
170
171
|
textInput.inputmask.setValue(textValue);
|
|
@@ -173,7 +174,6 @@ class TextFieldComponent extends Input_1.default {
|
|
|
173
174
|
const placeholderChar = this.placeholderChar;
|
|
174
175
|
textInput.value = (0, vanilla_text_mask_1.conformToMask)(textValue, FormioUtils.getInputMask(mask), { placeholderChar }).conformedValue;
|
|
175
176
|
}
|
|
176
|
-
maskInput.value = value.maskName;
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
179
179
|
return super.setValueAt(index, textValue, flags);
|
|
@@ -185,9 +185,8 @@ class TextFieldComponent extends Input_1.default {
|
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* Returns the value at this index.
|
|
188
|
-
*
|
|
189
|
-
* @
|
|
190
|
-
* @return {*}
|
|
188
|
+
* @param {number} index - The index to get the value from.
|
|
189
|
+
* @returns {*} - The value at the index.
|
|
191
190
|
*/
|
|
192
191
|
getValueAt(index) {
|
|
193
192
|
var _a, _b;
|
|
@@ -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[];
|
|
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const Component_form_1 = __importDefault(require("../_classes/component/Component.form"));
|
|
7
7
|
const Time_edit_data_1 = __importDefault(require("./editForm/Time.edit.data"));
|
|
8
8
|
const Time_edit_display_1 = __importDefault(require("./editForm/Time.edit.display"));
|
|
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
|
+
*/
|
|
9
14
|
function default_1(...extend) {
|
|
10
15
|
return (0, Component_form_1.default)([
|
|
11
16
|
{
|
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
label: string;
|
|
7
|
-
key: string;
|
|
8
|
-
weight: number;
|
|
9
|
-
components: ({
|
|
10
|
-
key: string;
|
|
11
|
-
label: string;
|
|
12
|
-
input: boolean;
|
|
13
|
-
tag: string;
|
|
14
|
-
content: string;
|
|
15
|
-
type: string;
|
|
16
|
-
weight: number;
|
|
17
|
-
as?: undefined;
|
|
18
|
-
editor?: undefined;
|
|
19
|
-
tooltip?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
type: string;
|
|
22
|
-
as: string;
|
|
23
|
-
editor: string;
|
|
24
|
-
weight: number;
|
|
25
|
-
input: boolean;
|
|
26
|
-
key: string;
|
|
27
|
-
label: string;
|
|
28
|
-
tooltip: string;
|
|
29
|
-
tag?: undefined;
|
|
30
|
-
content?: undefined;
|
|
31
|
-
})[];
|
|
32
|
-
}[];
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Unknown Component schema.
|
|
3
|
+
* @returns {object} - The Unknown Component edit form.
|
|
4
|
+
*/
|
|
5
|
+
export default function _default(): object;
|
|
@@ -4,6 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const Unknown_edit_display_1 = __importDefault(require("./editForm/Unknown.edit.display"));
|
|
7
|
+
/**
|
|
8
|
+
* Unknown Component schema.
|
|
9
|
+
* @returns {object} - The Unknown Component edit form.
|
|
10
|
+
*/
|
|
7
11
|
function default_1() {
|
|
8
12
|
return {
|
|
9
13
|
components: [
|
|
@@ -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[];
|
|
@@ -7,6 +7,11 @@ const TextField_form_1 = __importDefault(require("../textfield/TextField.form"))
|
|
|
7
7
|
const Url_edit_display_1 = __importDefault(require("./editForm/Url.edit.display"));
|
|
8
8
|
const Url_edit_data_1 = __importDefault(require("./editForm/Url.edit.data"));
|
|
9
9
|
const Url_edit_validation_1 = __importDefault(require("./editForm/Url.edit.validation"));
|
|
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
|
+
*/
|
|
10
15
|
function default_1(...extend) {
|
|
11
16
|
return (0, TextField_form_1.default)([
|
|
12
17
|
{
|
|
@@ -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[];
|
|
@@ -5,6 +5,11 @@ 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 Well_edit_display_1 = __importDefault(require("./editForm/Well.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
|
+
*/
|
|
8
13
|
function default_1(...extend) {
|
|
9
14
|
return (0, NestedComponent_form_1.default)([
|
|
10
15
|
{
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { Formio } from './Embed';
|
|
1
|
+
export {};
|