@formio/js 5.0.0-dev.5633.8d2b30d → 5.0.0-dev.5633.fde3bc9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +47 -2
- package/dist/formio.builder.css +8 -8
- package/dist/formio.builder.min.css +1 -1
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.css +8 -8
- package/dist/formio.form.js +615 -1196
- package/dist/formio.form.min.css +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +3 -5
- package/dist/formio.full.css +8 -8
- package/dist/formio.full.js +659 -920
- package/dist/formio.full.min.css +1 -1
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +3 -5
- package/dist/formio.js +18 -18
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1829 -492
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +10 -4
- package/embed.d.ts +1 -0
- package/form.d.ts +1 -0
- package/lib/cjs/CDN.d.ts +1 -0
- package/lib/cjs/CDN.js +6 -3
- package/lib/cjs/Element.d.ts +86 -96
- package/lib/cjs/Element.js +68 -78
- package/lib/cjs/Embed.d.ts +1 -1
- package/lib/cjs/Embed.js +52 -12
- package/lib/cjs/Form.d.ts +365 -36
- package/lib/cjs/Form.js +50 -64
- package/lib/cjs/FormBuilder.d.ts +187 -2
- package/lib/cjs/FormBuilder.js +30 -8
- package/lib/cjs/InlineEmbed.d.ts +7 -0
- package/lib/cjs/InlineEmbed.js +116 -0
- package/lib/cjs/PDF.d.ts +11 -13
- package/lib/cjs/PDF.js +6 -8
- package/lib/cjs/Webform.d.ts +183 -143
- package/lib/cjs/Webform.js +310 -298
- package/lib/cjs/WebformBuilder.d.ts +16 -14
- package/lib/cjs/WebformBuilder.js +11 -10
- package/lib/cjs/Wizard.d.ts +31 -21
- package/lib/cjs/Wizard.js +43 -20
- package/lib/cjs/WizardBuilder.d.ts +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/cjs/components/Components.d.ts +4 -4
- package/lib/cjs/components/Components.js +3 -3
- package/lib/cjs/components/_classes/component/Component.d.ts +507 -276
- package/lib/cjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/cjs/components/_classes/component/Component.form.js +5 -0
- package/lib/cjs/components/_classes/component/Component.js +438 -196
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
- package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
- package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
- package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/_classes/component/fixtures/index.js +3 -1
- package/lib/cjs/components/_classes/field/Field.d.ts +11 -2
- package/lib/cjs/components/_classes/field/Field.js +13 -1
- package/lib/cjs/components/_classes/input/Input.d.ts +4 -3
- package/lib/cjs/components/_classes/input/Input.js +8 -6
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +6 -3
- package/lib/cjs/components/_classes/list/ListComponent.form.js +5 -0
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +37 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +163 -67
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +5 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.js +175 -54
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
- package/lib/cjs/components/address/Address.d.ts +4 -2
- package/lib/cjs/components/address/Address.form.d.ts +6 -3
- package/lib/cjs/components/address/Address.form.js +5 -0
- package/lib/cjs/components/button/Button.d.ts +3 -12
- package/lib/cjs/components/button/Button.form.d.ts +6 -3
- package/lib/cjs/components/button/Button.form.js +5 -0
- package/lib/cjs/components/button/Button.js +5 -0
- package/lib/cjs/components/checkbox/Checkbox.d.ts +4 -27
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +6 -3
- package/lib/cjs/components/checkbox/Checkbox.form.js +5 -0
- package/lib/cjs/components/columns/Columns.d.ts +3 -2
- package/lib/cjs/components/columns/Columns.form.d.ts +6 -3
- package/lib/cjs/components/columns/Columns.form.js +5 -0
- package/lib/cjs/components/columns/Columns.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +6 -3
- package/lib/cjs/components/container/Container.form.js +5 -0
- package/lib/cjs/components/content/Content.d.ts +2 -1
- package/lib/cjs/components/content/Content.form.d.ts +6 -3
- package/lib/cjs/components/content/Content.form.js +5 -0
- package/lib/cjs/components/currency/Currency.form.d.ts +6 -3
- package/lib/cjs/components/currency/Currency.form.js +5 -0
- package/lib/cjs/components/currency/Currency.js +1 -2
- package/lib/cjs/components/datagrid/DataGrid.d.ts +8 -7
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +6 -3
- package/lib/cjs/components/datagrid/DataGrid.form.js +5 -0
- package/lib/cjs/components/datagrid/DataGrid.js +5 -5
- package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +36 -0
- package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
- package/lib/cjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/cjs/components/datamap/DataMap.form.d.ts +6 -3
- package/lib/cjs/components/datamap/DataMap.form.js +5 -0
- package/lib/cjs/components/datetime/DateTime.d.ts +0 -14
- package/lib/cjs/components/datetime/DateTime.form.d.ts +6 -3
- package/lib/cjs/components/datetime/DateTime.form.js +5 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
- package/lib/cjs/components/day/Day.d.ts +23 -49
- package/lib/cjs/components/day/Day.form.d.ts +6 -3
- package/lib/cjs/components/day/Day.form.js +5 -0
- package/lib/cjs/components/day/Day.js +16 -21
- package/lib/cjs/components/day/fixtures/comp7.d.ts +109 -0
- package/lib/cjs/components/day/fixtures/comp7.js +109 -0
- package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/day/fixtures/index.js +3 -1
- package/lib/cjs/components/editgrid/EditGrid.d.ts +7 -3
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +6 -3
- package/lib/cjs/components/editgrid/EditGrid.form.js +5 -0
- package/lib/cjs/components/editgrid/EditGrid.js +3 -3
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
- package/lib/cjs/components/email/Email.form.d.ts +6 -3
- package/lib/cjs/components/email/Email.form.js +5 -0
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +6 -3
- package/lib/cjs/components/fieldset/Fieldset.form.js +5 -0
- package/lib/cjs/components/file/File.d.ts +9 -22
- package/lib/cjs/components/file/File.form.d.ts +6 -3
- package/lib/cjs/components/file/File.form.js +5 -0
- package/lib/cjs/components/file/File.js +1 -2
- package/lib/cjs/components/form/Form.d.ts +34 -24
- package/lib/cjs/components/form/Form.form.d.ts +6 -3
- package/lib/cjs/components/form/Form.form.js +5 -0
- package/lib/cjs/components/form/Form.js +15 -13
- package/lib/cjs/components/hidden/Hidden.d.ts +1 -11
- package/lib/cjs/components/hidden/Hidden.form.d.ts +6 -3
- package/lib/cjs/components/hidden/Hidden.form.js +5 -0
- package/lib/cjs/components/hidden/Hidden.js +1 -2
- package/lib/cjs/components/html/HTML.d.ts +2 -1
- package/lib/cjs/components/html/HTML.form.d.ts +6 -3
- package/lib/cjs/components/html/HTML.form.js +5 -0
- package/lib/cjs/components/number/Number.d.ts +3 -17
- package/lib/cjs/components/number/Number.form.d.ts +6 -3
- package/lib/cjs/components/number/Number.form.js +5 -0
- package/lib/cjs/components/number/Number.js +1 -2
- package/lib/cjs/components/panel/Panel.form.d.ts +6 -3
- package/lib/cjs/components/panel/Panel.form.js +5 -0
- package/lib/cjs/components/panel/Panel.js +0 -1
- package/lib/cjs/components/password/Password.form.d.ts +6 -3
- package/lib/cjs/components/password/Password.form.js +5 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +5 -0
- package/lib/cjs/components/radio/Radio.d.ts +3 -26
- package/lib/cjs/components/radio/Radio.form.d.ts +6 -3
- package/lib/cjs/components/radio/Radio.form.js +5 -0
- package/lib/cjs/components/radio/Radio.js +6 -6
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/cjs/components/select/Select.d.ts +16 -39
- package/lib/cjs/components/select/Select.form.d.ts +6 -3
- package/lib/cjs/components/select/Select.form.js +5 -0
- package/lib/cjs/components/select/Select.js +13 -16
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -17
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +5 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -9
- package/lib/cjs/components/signature/Signature.d.ts +0 -14
- package/lib/cjs/components/signature/Signature.form.d.ts +6 -3
- package/lib/cjs/components/signature/Signature.form.js +5 -0
- package/lib/cjs/components/survey/Survey.d.ts +3 -15
- package/lib/cjs/components/survey/Survey.form.d.ts +6 -3
- package/lib/cjs/components/survey/Survey.form.js +5 -0
- package/lib/cjs/components/table/Table.d.ts +2 -1
- package/lib/cjs/components/table/Table.form.d.ts +6 -3
- package/lib/cjs/components/table/Table.form.js +5 -0
- package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/cjs/components/tabs/Tabs.form.d.ts +6 -3
- package/lib/cjs/components/tabs/Tabs.form.js +5 -0
- package/lib/cjs/components/tabs/Tabs.js +1 -2
- package/lib/cjs/components/tags/Tags.d.ts +0 -14
- package/lib/cjs/components/tags/Tags.form.d.ts +6 -3
- package/lib/cjs/components/tags/Tags.form.js +5 -0
- package/lib/cjs/components/textarea/TextArea.d.ts +4 -9
- package/lib/cjs/components/textarea/TextArea.form.d.ts +6 -3
- package/lib/cjs/components/textarea/TextArea.form.js +5 -0
- package/lib/cjs/components/textarea/TextArea.js +2 -2
- package/lib/cjs/components/textfield/TextField.d.ts +14 -30
- package/lib/cjs/components/textfield/TextField.form.d.ts +6 -3
- package/lib/cjs/components/textfield/TextField.form.js +5 -0
- package/lib/cjs/components/textfield/TextField.js +16 -17
- package/lib/cjs/components/time/Time.form.d.ts +6 -3
- package/lib/cjs/components/time/Time.form.js +5 -0
- package/lib/cjs/components/unknown/Unknown.form.d.ts +5 -34
- package/lib/cjs/components/unknown/Unknown.form.js +4 -0
- package/lib/cjs/components/url/Url.form.d.ts +6 -3
- package/lib/cjs/components/url/Url.form.js +5 -0
- package/lib/cjs/components/well/Well.form.d.ts +6 -3
- package/lib/cjs/components/well/Well.form.js +5 -0
- package/lib/cjs/formio.embed.d.ts +1 -2
- package/lib/cjs/formio.embed.js +2 -100
- package/lib/cjs/formio.form.d.ts +11 -4
- package/lib/cjs/formio.form.js +13 -5
- package/lib/cjs/providers/Providers.d.ts +36 -5
- package/lib/cjs/providers/Providers.js +29 -0
- package/lib/cjs/providers/address/AddressProvider.d.ts +131 -12
- package/lib/cjs/providers/address/AddressProvider.js +88 -2
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +48 -1
- package/lib/cjs/providers/address/AzureAddressProvider.js +37 -0
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +27 -4
- package/lib/cjs/providers/address/CustomAddressProvider.js +34 -0
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +130 -6
- package/lib/cjs/providers/address/GoogleAddressProvider.js +73 -1
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +32 -7
- package/lib/cjs/providers/address/NominatimAddressProvider.js +33 -0
- package/lib/cjs/providers/address/index.d.ts +3 -1
- package/lib/cjs/providers/processor/fileProcessor.d.ts +7 -1
- package/lib/cjs/providers/processor/fileProcessor.js +6 -0
- package/lib/cjs/providers/storage/azure.d.ts +6 -13
- package/lib/cjs/providers/storage/azure.js +5 -0
- package/lib/cjs/providers/storage/base64.d.ts +5 -6
- package/lib/cjs/providers/storage/base64.js +4 -0
- package/lib/cjs/providers/storage/dropbox.d.ts +6 -4
- package/lib/cjs/providers/storage/dropbox.js +5 -0
- package/lib/cjs/providers/storage/googleDrive.d.ts +7 -5
- package/lib/cjs/providers/storage/googleDrive.js +6 -0
- package/lib/cjs/providers/storage/indexeddb.d.ts +5 -7
- package/lib/cjs/providers/storage/indexeddb.js +4 -0
- package/lib/cjs/providers/storage/s3.d.ts +6 -20
- package/lib/cjs/providers/storage/s3.js +5 -0
- package/lib/cjs/providers/storage/url.d.ts +6 -7
- package/lib/cjs/providers/storage/url.js +10 -0
- package/lib/cjs/providers/storage/util.d.ts +24 -1
- package/lib/cjs/providers/storage/util.js +18 -0
- package/lib/cjs/templates/Templates.d.ts +1 -0
- package/lib/cjs/translations/en.d.ts +2 -0
- package/lib/cjs/translations/en.js +3 -1
- package/lib/cjs/utils/ChoicesWrapper.d.ts +1 -1
- package/lib/cjs/utils/ChoicesWrapper.js +13 -2
- package/lib/cjs/utils/Evaluator.d.ts +6 -3
- package/lib/cjs/utils/Evaluator.js +11 -20
- package/lib/cjs/utils/builder.d.ts +9 -7
- package/lib/cjs/utils/builder.js +10 -5
- package/lib/cjs/utils/calendarUtils.d.ts +7 -13
- package/lib/cjs/utils/calendarUtils.js +10 -17
- package/lib/cjs/utils/formUtils.d.ts +43 -171
- package/lib/cjs/utils/formUtils.js +38 -569
- package/lib/cjs/utils/utils.d.ts +367 -221
- package/lib/cjs/utils/utils.js +335 -228
- package/lib/cjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/cjs/widgets/CalendarWidget.js +9 -11
- package/lib/mjs/CDN.d.ts +1 -0
- package/lib/mjs/CDN.js +6 -3
- package/lib/mjs/Element.d.ts +86 -96
- package/lib/mjs/Element.js +68 -78
- package/lib/mjs/Embed.d.ts +1 -1
- package/lib/mjs/Embed.js +52 -12
- package/lib/mjs/Form.d.ts +365 -36
- package/lib/mjs/Form.js +140 -57
- package/lib/mjs/FormBuilder.d.ts +187 -2
- package/lib/mjs/FormBuilder.js +32 -8
- package/lib/mjs/InlineEmbed.d.ts +7 -0
- package/lib/mjs/InlineEmbed.js +112 -0
- package/lib/mjs/PDF.d.ts +11 -13
- package/lib/mjs/PDF.js +6 -8
- package/lib/mjs/Webform.d.ts +183 -143
- package/lib/mjs/Webform.js +322 -310
- package/lib/mjs/WebformBuilder.d.ts +16 -14
- package/lib/mjs/WebformBuilder.js +11 -10
- package/lib/mjs/Wizard.d.ts +31 -21
- package/lib/mjs/Wizard.js +42 -19
- package/lib/mjs/WizardBuilder.d.ts +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
- package/lib/mjs/components/Components.d.ts +4 -4
- package/lib/mjs/components/Components.js +3 -3
- package/lib/mjs/components/_classes/component/Component.d.ts +507 -276
- package/lib/mjs/components/_classes/component/Component.form.d.ts +6 -3
- package/lib/mjs/components/_classes/component/Component.form.js +5 -0
- package/lib/mjs/components/_classes/component/Component.js +438 -196
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
- package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
- package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/_classes/component/fixtures/index.js +2 -1
- package/lib/mjs/components/_classes/field/Field.d.ts +11 -2
- package/lib/mjs/components/_classes/field/Field.js +13 -1
- package/lib/mjs/components/_classes/input/Input.d.ts +4 -3
- package/lib/mjs/components/_classes/input/Input.js +8 -6
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +6 -3
- package/lib/mjs/components/_classes/list/ListComponent.form.js +5 -0
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +37 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +163 -67
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +5 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.js +175 -54
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
- package/lib/mjs/components/address/Address.d.ts +4 -2
- package/lib/mjs/components/address/Address.form.d.ts +6 -3
- package/lib/mjs/components/address/Address.form.js +5 -0
- package/lib/mjs/components/button/Button.d.ts +3 -12
- package/lib/mjs/components/button/Button.form.d.ts +6 -3
- package/lib/mjs/components/button/Button.form.js +5 -0
- package/lib/mjs/components/button/Button.js +5 -0
- package/lib/mjs/components/checkbox/Checkbox.d.ts +4 -27
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +6 -3
- package/lib/mjs/components/checkbox/Checkbox.form.js +5 -0
- package/lib/mjs/components/columns/Columns.d.ts +3 -2
- package/lib/mjs/components/columns/Columns.form.d.ts +6 -3
- package/lib/mjs/components/columns/Columns.form.js +5 -0
- package/lib/mjs/components/columns/Columns.js +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +6 -3
- package/lib/mjs/components/container/Container.form.js +5 -0
- package/lib/mjs/components/content/Content.d.ts +2 -1
- package/lib/mjs/components/content/Content.form.d.ts +6 -3
- package/lib/mjs/components/content/Content.form.js +5 -0
- package/lib/mjs/components/currency/Currency.form.d.ts +6 -3
- package/lib/mjs/components/currency/Currency.form.js +5 -0
- package/lib/mjs/components/currency/Currency.js +1 -2
- package/lib/mjs/components/datagrid/DataGrid.d.ts +8 -7
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +6 -3
- package/lib/mjs/components/datagrid/DataGrid.form.js +5 -0
- package/lib/mjs/components/datagrid/DataGrid.js +5 -5
- package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +34 -0
- package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
- package/lib/mjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/mjs/components/datamap/DataMap.form.d.ts +6 -3
- package/lib/mjs/components/datamap/DataMap.form.js +5 -0
- package/lib/mjs/components/datetime/DateTime.d.ts +0 -14
- package/lib/mjs/components/datetime/DateTime.form.d.ts +6 -3
- package/lib/mjs/components/datetime/DateTime.form.js +5 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +23 -49
- package/lib/mjs/components/day/Day.form.d.ts +6 -3
- package/lib/mjs/components/day/Day.form.js +5 -0
- package/lib/mjs/components/day/Day.js +16 -21
- package/lib/mjs/components/day/fixtures/comp7.d.ts +109 -0
- package/lib/mjs/components/day/fixtures/comp7.js +107 -0
- package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/day/fixtures/index.js +2 -1
- package/lib/mjs/components/editgrid/EditGrid.d.ts +7 -3
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +6 -3
- package/lib/mjs/components/editgrid/EditGrid.form.js +5 -0
- package/lib/mjs/components/editgrid/EditGrid.js +3 -3
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +6 -3
- package/lib/mjs/components/email/Email.form.js +5 -0
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +6 -3
- package/lib/mjs/components/fieldset/Fieldset.form.js +5 -0
- package/lib/mjs/components/file/File.d.ts +9 -22
- package/lib/mjs/components/file/File.form.d.ts +6 -3
- package/lib/mjs/components/file/File.form.js +5 -0
- package/lib/mjs/components/file/File.js +1 -2
- package/lib/mjs/components/form/Form.d.ts +34 -24
- package/lib/mjs/components/form/Form.form.d.ts +6 -3
- package/lib/mjs/components/form/Form.form.js +5 -0
- package/lib/mjs/components/form/Form.js +15 -13
- package/lib/mjs/components/hidden/Hidden.d.ts +1 -11
- package/lib/mjs/components/hidden/Hidden.form.d.ts +6 -3
- package/lib/mjs/components/hidden/Hidden.form.js +5 -0
- package/lib/mjs/components/hidden/Hidden.js +1 -2
- package/lib/mjs/components/html/HTML.d.ts +2 -1
- package/lib/mjs/components/html/HTML.form.d.ts +6 -3
- package/lib/mjs/components/html/HTML.form.js +5 -0
- package/lib/mjs/components/number/Number.d.ts +3 -17
- package/lib/mjs/components/number/Number.form.d.ts +6 -3
- package/lib/mjs/components/number/Number.form.js +5 -0
- package/lib/mjs/components/number/Number.js +1 -2
- package/lib/mjs/components/panel/Panel.form.d.ts +6 -3
- package/lib/mjs/components/panel/Panel.form.js +5 -0
- package/lib/mjs/components/panel/Panel.js +0 -1
- package/lib/mjs/components/password/Password.form.d.ts +6 -3
- package/lib/mjs/components/password/Password.form.js +5 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +5 -0
- package/lib/mjs/components/radio/Radio.d.ts +3 -26
- package/lib/mjs/components/radio/Radio.form.d.ts +6 -3
- package/lib/mjs/components/radio/Radio.form.js +5 -0
- package/lib/mjs/components/radio/Radio.js +6 -6
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +5 -0
- package/lib/mjs/components/select/Select.d.ts +16 -39
- package/lib/mjs/components/select/Select.form.d.ts +6 -3
- package/lib/mjs/components/select/Select.form.js +5 -0
- package/lib/mjs/components/select/Select.js +14 -17
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -17
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +5 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -9
- package/lib/mjs/components/signature/Signature.d.ts +0 -14
- package/lib/mjs/components/signature/Signature.form.d.ts +6 -3
- package/lib/mjs/components/signature/Signature.form.js +5 -0
- package/lib/mjs/components/survey/Survey.d.ts +3 -15
- package/lib/mjs/components/survey/Survey.form.d.ts +6 -3
- package/lib/mjs/components/survey/Survey.form.js +5 -0
- package/lib/mjs/components/table/Table.d.ts +2 -1
- package/lib/mjs/components/table/Table.form.d.ts +6 -3
- package/lib/mjs/components/table/Table.form.js +5 -0
- package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
- package/lib/mjs/components/tabs/Tabs.form.d.ts +6 -3
- package/lib/mjs/components/tabs/Tabs.form.js +5 -0
- package/lib/mjs/components/tabs/Tabs.js +1 -2
- package/lib/mjs/components/tags/Tags.d.ts +0 -14
- package/lib/mjs/components/tags/Tags.form.d.ts +6 -3
- package/lib/mjs/components/tags/Tags.form.js +5 -0
- package/lib/mjs/components/textarea/TextArea.d.ts +4 -9
- package/lib/mjs/components/textarea/TextArea.form.d.ts +6 -3
- package/lib/mjs/components/textarea/TextArea.form.js +5 -0
- package/lib/mjs/components/textarea/TextArea.js +2 -2
- package/lib/mjs/components/textfield/TextField.d.ts +14 -30
- package/lib/mjs/components/textfield/TextField.form.d.ts +6 -3
- package/lib/mjs/components/textfield/TextField.form.js +5 -0
- package/lib/mjs/components/textfield/TextField.js +16 -17
- package/lib/mjs/components/time/Time.form.d.ts +6 -3
- package/lib/mjs/components/time/Time.form.js +5 -0
- package/lib/mjs/components/unknown/Unknown.form.d.ts +5 -34
- package/lib/mjs/components/unknown/Unknown.form.js +4 -0
- package/lib/mjs/components/url/Url.form.d.ts +6 -3
- package/lib/mjs/components/url/Url.form.js +5 -0
- package/lib/mjs/components/well/Well.form.d.ts +6 -3
- package/lib/mjs/components/well/Well.form.js +5 -0
- package/lib/mjs/formio.embed.d.ts +1 -2
- package/lib/mjs/formio.embed.js +2 -99
- package/lib/mjs/formio.form.d.ts +11 -4
- package/lib/mjs/formio.form.js +10 -3
- package/lib/mjs/providers/Providers.d.ts +36 -5
- package/lib/mjs/providers/Providers.js +29 -0
- package/lib/mjs/providers/address/AddressProvider.d.ts +131 -12
- package/lib/mjs/providers/address/AddressProvider.js +88 -2
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +48 -1
- package/lib/mjs/providers/address/AzureAddressProvider.js +37 -0
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +27 -4
- package/lib/mjs/providers/address/CustomAddressProvider.js +34 -0
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +130 -6
- package/lib/mjs/providers/address/GoogleAddressProvider.js +73 -1
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +32 -7
- package/lib/mjs/providers/address/NominatimAddressProvider.js +33 -0
- package/lib/mjs/providers/address/index.d.ts +3 -1
- package/lib/mjs/providers/processor/fileProcessor.d.ts +7 -1
- package/lib/mjs/providers/processor/fileProcessor.js +6 -0
- package/lib/mjs/providers/storage/azure.d.ts +6 -13
- package/lib/mjs/providers/storage/azure.js +5 -0
- package/lib/mjs/providers/storage/base64.d.ts +5 -6
- package/lib/mjs/providers/storage/base64.js +4 -0
- package/lib/mjs/providers/storage/dropbox.d.ts +6 -4
- package/lib/mjs/providers/storage/dropbox.js +5 -0
- package/lib/mjs/providers/storage/googleDrive.d.ts +7 -5
- package/lib/mjs/providers/storage/googleDrive.js +6 -0
- package/lib/mjs/providers/storage/indexeddb.d.ts +5 -7
- package/lib/mjs/providers/storage/indexeddb.js +4 -0
- package/lib/mjs/providers/storage/s3.d.ts +6 -20
- package/lib/mjs/providers/storage/s3.js +5 -0
- package/lib/mjs/providers/storage/url.d.ts +6 -7
- package/lib/mjs/providers/storage/url.js +10 -0
- package/lib/mjs/providers/storage/util.d.ts +24 -1
- package/lib/mjs/providers/storage/util.js +18 -0
- package/lib/mjs/templates/Templates.d.ts +1 -0
- package/lib/mjs/translations/en.d.ts +2 -0
- package/lib/mjs/translations/en.js +3 -1
- package/lib/mjs/utils/ChoicesWrapper.d.ts +1 -1
- package/lib/mjs/utils/ChoicesWrapper.js +13 -2
- package/lib/mjs/utils/Evaluator.d.ts +6 -3
- package/lib/mjs/utils/Evaluator.js +9 -20
- package/lib/mjs/utils/builder.d.ts +9 -7
- package/lib/mjs/utils/builder.js +10 -5
- package/lib/mjs/utils/calendarUtils.d.ts +7 -13
- package/lib/mjs/utils/calendarUtils.js +10 -17
- package/lib/mjs/utils/formUtils.d.ts +43 -171
- package/lib/mjs/utils/formUtils.js +6 -554
- package/lib/mjs/utils/utils.d.ts +367 -221
- package/lib/mjs/utils/utils.js +329 -222
- package/lib/mjs/widgets/CalendarWidget.d.ts +9 -10
- package/lib/mjs/widgets/CalendarWidget.js +9 -11
- package/package.json +22 -22
- package/sdk.d.ts +1 -0
- package/utils.d.ts +1 -0
|
@@ -19,13 +19,6 @@ export default class CheckBoxComponent extends Field {
|
|
|
19
19
|
};
|
|
20
20
|
type: string;
|
|
21
21
|
};
|
|
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
22
|
};
|
|
30
23
|
static get conditionOperatorsSettings(): {
|
|
31
24
|
operators: string[];
|
|
@@ -39,31 +32,15 @@ export default class CheckBoxComponent extends Field {
|
|
|
39
32
|
};
|
|
40
33
|
type: string;
|
|
41
34
|
};
|
|
42
|
-
constructor: Function;
|
|
43
|
-
toString(): string;
|
|
44
|
-
toLocaleString(): string;
|
|
45
|
-
valueOf(): Object;
|
|
46
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
47
|
-
isPrototypeOf(v: Object): boolean;
|
|
48
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
49
35
|
};
|
|
50
36
|
static savedValueTypes(schema: any): string[] | null;
|
|
51
37
|
get labelClass(): string;
|
|
52
|
-
get inputInfo():
|
|
53
|
-
type: string;
|
|
54
|
-
component: any;
|
|
55
|
-
changeEvent: string;
|
|
56
|
-
attr: {
|
|
57
|
-
name: any;
|
|
58
|
-
type: any;
|
|
59
|
-
class: string;
|
|
60
|
-
lang: any;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
38
|
+
get inputInfo(): any;
|
|
63
39
|
get labelInfo(): {
|
|
64
40
|
hidden: boolean;
|
|
65
41
|
};
|
|
66
|
-
render():
|
|
42
|
+
render(): Field;
|
|
43
|
+
attach(element: any): Promise<void>;
|
|
67
44
|
input: any;
|
|
68
45
|
detach(element: any): void;
|
|
69
46
|
get emptyValue(): false | null;
|
|
@@ -71,7 +48,7 @@ export default class CheckBoxComponent extends Field {
|
|
|
71
48
|
get checked(): boolean;
|
|
72
49
|
setCheckedState(value: any): any;
|
|
73
50
|
setValue(value: any, flags?: {}): boolean;
|
|
74
|
-
getValueAsString(value: any):
|
|
51
|
+
getValueAsString(value: any): string;
|
|
75
52
|
updateValue(value: any, flags: any): boolean;
|
|
76
53
|
}
|
|
77
54
|
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 Checkbox_edit_data_1 = __importDefault(require("./editForm/Checkbox.edit.data"));
|
|
8
8
|
const Checkbox_edit_display_1 = __importDefault(require("./editForm/Checkbox.edit.display"));
|
|
9
9
|
const Checkbox_edit_validation_1 = __importDefault(require("./editForm/Checkbox.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
|
{
|
|
@@ -10,16 +10,17 @@ export default class ColumnsComponent extends NestedComponent {
|
|
|
10
10
|
};
|
|
11
11
|
static savedValueTypes(): never[];
|
|
12
12
|
rows: any[];
|
|
13
|
+
get schema(): any;
|
|
13
14
|
get columnKey(): string;
|
|
14
15
|
columns: any[] | undefined;
|
|
15
16
|
labelIsHidden(): boolean;
|
|
16
|
-
render():
|
|
17
|
+
render(): import("../_classes/field/Field").default;
|
|
17
18
|
justifyColumn(items: any, index: any): boolean;
|
|
18
19
|
justify(): any;
|
|
19
20
|
get gridSize(): number;
|
|
20
21
|
/**
|
|
21
22
|
* Group columns in rows.
|
|
22
|
-
* @
|
|
23
|
+
* @returns {Array.<ColumnComponent[]>} - The array of columns
|
|
23
24
|
*/
|
|
24
25
|
groupByRow(): Array<ColumnComponent[]>;
|
|
25
26
|
checkData(data: any, flags: any, row: any, components: any): void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -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 Columns_edit_display_1 = __importDefault(require("./editForm/Columns.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
|
{
|
|
@@ -120,7 +120,7 @@ class ColumnsComponent extends NestedComponent_1.default {
|
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* Group columns in rows.
|
|
123
|
-
* @
|
|
123
|
+
* @returns {Array.<ColumnComponent[]>} - The array of columns
|
|
124
124
|
*/
|
|
125
125
|
groupByRow() {
|
|
126
126
|
const initVal = { stack: [], rows: [] };
|
|
@@ -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 Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const Container_edit_display_1 = __importDefault(require("./editForm/Container.edit.display"));
|
|
8
8
|
const Container_edit_data_1 = __importDefault(require("./editForm/Container.edit.data"));
|
|
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 Components_1.default.baseEditForm([
|
|
11
16
|
{
|
|
@@ -11,8 +11,9 @@ export default class ContentComponent extends Component {
|
|
|
11
11
|
};
|
|
12
12
|
static savedValueTypes(): never[];
|
|
13
13
|
get content(): any;
|
|
14
|
-
render():
|
|
14
|
+
render(): string;
|
|
15
15
|
get dataReady(): any;
|
|
16
|
+
attach(element: any): Promise<void>;
|
|
16
17
|
get emptyValue(): string;
|
|
17
18
|
}
|
|
18
19
|
import Component from '../_classes/component/Component';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The Edit Form function.
|
|
3
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
4
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
5
|
+
*/
|
|
6
|
+
export default function _default(...extend: any[]): import('@formio/core').Component[];
|
|
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const Content_edit_display_1 = __importDefault(require("./editForm/Content.edit.display"));
|
|
8
8
|
const Content_edit_logic_1 = __importDefault(require("./editForm/Content.edit.logic"));
|
|
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
|
const editForm = Components_1.default.baseEditForm([
|
|
11
16
|
{
|
|
@@ -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 Currency_edit_display_1 = __importDefault(require("./editForm/Currency.edit.display"));
|
|
8
8
|
const Currency_edit_data_1 = __importDefault(require("./editForm/Currency.edit.data"));
|
|
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
|
{
|
|
@@ -35,8 +35,7 @@ class CurrencyComponent extends Number_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Creates the number mask for currency numbers.
|
|
38
|
-
*
|
|
39
|
-
* @return {*}
|
|
38
|
+
* @returns {*} - The result of the createNumberMask function
|
|
40
39
|
*/
|
|
41
40
|
createNumberMask() {
|
|
42
41
|
const decimalLimit = lodash_1.default.get(this.component, 'decimalLimit', 2);
|
|
@@ -30,20 +30,20 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
30
30
|
isEmpty(value?: any[]): any;
|
|
31
31
|
/**
|
|
32
32
|
* Split rows into chunks.
|
|
33
|
-
* @param {
|
|
33
|
+
* @param {number[]} groups - array of numbers where each item is size of group
|
|
34
34
|
* @param {Array<T>} rows - rows collection
|
|
35
|
-
* @
|
|
35
|
+
* @returns {Array<T[]>} - The chunked rows
|
|
36
36
|
*/
|
|
37
37
|
getRowChunks(groups: number[], rows: Array<T>): Array<T[]>;
|
|
38
38
|
/**
|
|
39
39
|
* Create groups object.
|
|
40
40
|
* Each key in object represents index of first row in group.
|
|
41
|
-
* @
|
|
41
|
+
* @returns {object} - The groups object.
|
|
42
42
|
*/
|
|
43
|
-
getGroups():
|
|
43
|
+
getGroups(): object;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @
|
|
45
|
+
* Get group sizes.
|
|
46
|
+
* @returns {number[]} - The array of group sizes.
|
|
47
47
|
*/
|
|
48
48
|
getGroupSizes(): number[];
|
|
49
49
|
hasRowGroups(): any;
|
|
@@ -54,7 +54,7 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
54
54
|
hasTopSubmit(): any;
|
|
55
55
|
hasBottomSubmit(): any;
|
|
56
56
|
get canAddColumn(): boolean;
|
|
57
|
-
render():
|
|
57
|
+
render(): import("../_classes/field/Field").default;
|
|
58
58
|
getRows(): {}[];
|
|
59
59
|
getColumns(): any[];
|
|
60
60
|
hasHeader(): any;
|
|
@@ -76,6 +76,7 @@ export default class DataGridComponent extends NestedArrayComponent {
|
|
|
76
76
|
rebuild: boolean;
|
|
77
77
|
show: boolean;
|
|
78
78
|
};
|
|
79
|
+
checkComponentConditions(data: any, flags: any, row: any): boolean;
|
|
79
80
|
getComponent(path: any, fn: any): any;
|
|
80
81
|
toggleGroup(element: any, index: any): void;
|
|
81
82
|
}
|
|
@@ -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 DataGrid_edit_data_1 = __importDefault(require("./editForm/DataGrid.edit.data"));
|
|
8
8
|
const DataGrid_edit_display_1 = __importDefault(require("./editForm/DataGrid.edit.display"));
|
|
9
9
|
const DataGrid_edit_validation_1 = __importDefault(require("./editForm/DataGrid.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
|
{
|
|
@@ -139,9 +139,9 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* Split rows into chunks.
|
|
142
|
-
* @param {
|
|
142
|
+
* @param {number[]} groups - array of numbers where each item is size of group
|
|
143
143
|
* @param {Array<T>} rows - rows collection
|
|
144
|
-
* @
|
|
144
|
+
* @returns {Array<T[]>} - The chunked rows
|
|
145
145
|
*/
|
|
146
146
|
getRowChunks(groups, rows) {
|
|
147
147
|
const [, chunks] = groups.reduce(([startIndex, acc], size) => {
|
|
@@ -153,7 +153,7 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
|
153
153
|
/**
|
|
154
154
|
* Create groups object.
|
|
155
155
|
* Each key in object represents index of first row in group.
|
|
156
|
-
* @
|
|
156
|
+
* @returns {object} - The groups object.
|
|
157
157
|
*/
|
|
158
158
|
getGroups() {
|
|
159
159
|
const groups = lodash_1.default.get(this.component, 'rowGroups', []);
|
|
@@ -167,8 +167,8 @@ class DataGridComponent extends NestedArrayComponent_1.default {
|
|
|
167
167
|
}, {});
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @
|
|
170
|
+
* Get group sizes.
|
|
171
|
+
* @returns {number[]} - The array of group sizes.
|
|
172
172
|
*/
|
|
173
173
|
getGroupSizes() {
|
|
174
174
|
return lodash_1.default.map(lodash_1.default.get(this.component, 'rowGroups', []), 'numberOfRows');
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let label: string;
|
|
3
|
+
let reorder: boolean;
|
|
4
|
+
let addAnotherPosition: string;
|
|
5
|
+
let layoutFixed: boolean;
|
|
6
|
+
let enableRowGroups: boolean;
|
|
7
|
+
let initEmpty: boolean;
|
|
8
|
+
let tableView: boolean;
|
|
9
|
+
let defaultValue: {}[];
|
|
10
|
+
let key: string;
|
|
11
|
+
let type: string;
|
|
12
|
+
let input: boolean;
|
|
13
|
+
let components: {
|
|
14
|
+
label: string;
|
|
15
|
+
optionsLabelPosition: string;
|
|
16
|
+
inline: boolean;
|
|
17
|
+
tableView: boolean;
|
|
18
|
+
values: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
shortcut: string;
|
|
22
|
+
}[];
|
|
23
|
+
key: string;
|
|
24
|
+
type: string;
|
|
25
|
+
input: boolean;
|
|
26
|
+
inputType: string;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
'label': 'Data Grid',
|
|
5
|
+
'reorder': false,
|
|
6
|
+
'addAnotherPosition': 'bottom',
|
|
7
|
+
'layoutFixed': false,
|
|
8
|
+
'enableRowGroups': false,
|
|
9
|
+
'initEmpty': false,
|
|
10
|
+
'tableView': false,
|
|
11
|
+
'defaultValue': [
|
|
12
|
+
{}
|
|
13
|
+
],
|
|
14
|
+
'key': 'dataGrid',
|
|
15
|
+
'type': 'datagrid',
|
|
16
|
+
'input': true,
|
|
17
|
+
'components': [
|
|
18
|
+
{
|
|
19
|
+
'label': 'Radio',
|
|
20
|
+
'optionsLabelPosition': 'right',
|
|
21
|
+
'inline': false,
|
|
22
|
+
'tableView': false,
|
|
23
|
+
'values': [
|
|
24
|
+
{
|
|
25
|
+
'label': 'yes',
|
|
26
|
+
'value': 'yes',
|
|
27
|
+
'shortcut': ''
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
'key': 'radio',
|
|
31
|
+
'type': 'radio',
|
|
32
|
+
'input': true,
|
|
33
|
+
'inputType': 'checkbox'
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
@@ -14,4 +14,5 @@ import withRowGroupsAndDefValue from './comp-row-groups-with-def-value';
|
|
|
14
14
|
import modalWithRequiredFields from './comp-modal-with-required-fields';
|
|
15
15
|
import withAllowCalculateOverride from './comp-with-allow-calculate-override';
|
|
16
16
|
import twoWithAllowCalculatedOverride from './two-comp-with-allow-calculate-override';
|
|
17
|
-
|
|
17
|
+
import withCheckboxes from './comp-with-checkboxes';
|
|
18
|
+
export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes };
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.twoWithAllowCalculatedOverride = exports.withAllowCalculateOverride = exports.modalWithRequiredFields = exports.withRowGroupsAndDefValue = exports.withLogic = exports.withDefValue = exports.withConditionalFieldsAndValidations = exports.withCollapsibleRowGroups = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
|
6
|
+
exports.withCheckboxes = exports.twoWithAllowCalculatedOverride = exports.withAllowCalculateOverride = exports.modalWithRequiredFields = exports.withRowGroupsAndDefValue = exports.withLogic = exports.withDefValue = exports.withConditionalFieldsAndValidations = exports.withCollapsibleRowGroups = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
|
7
7
|
const comp1_1 = __importDefault(require("./comp1"));
|
|
8
8
|
exports.comp1 = comp1_1.default;
|
|
9
9
|
const comp2_1 = __importDefault(require("./comp2"));
|
|
@@ -36,3 +36,5 @@ const comp_with_allow_calculate_override_1 = __importDefault(require("./comp-wit
|
|
|
36
36
|
exports.withAllowCalculateOverride = comp_with_allow_calculate_override_1.default;
|
|
37
37
|
const two_comp_with_allow_calculate_override_1 = __importDefault(require("./two-comp-with-allow-calculate-override"));
|
|
38
38
|
exports.twoWithAllowCalculatedOverride = two_comp_with_allow_calculate_override_1.default;
|
|
39
|
+
const comp_with_checkboxes_1 = __importDefault(require("./comp-with-checkboxes"));
|
|
40
|
+
exports.withCheckboxes = comp_with_checkboxes_1.default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default class DataMapComponent extends DataGridComponent {
|
|
2
2
|
static savedValueTypes(schema: any): string[];
|
|
3
3
|
constructor(component: any, options: any, data: any);
|
|
4
|
+
get schema(): any;
|
|
4
5
|
get emptyValue(): {};
|
|
5
6
|
set dataValue(value: any);
|
|
6
7
|
get dataValue(): 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[];
|
|
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const DataMap_edit_data_1 = __importDefault(require("./editForm/DataMap.edit.data"));
|
|
8
8
|
const DataMap_edit_display_1 = __importDefault(require("./editForm/DataMap.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 Components_1.default.baseEditForm([
|
|
11
16
|
{
|
|
@@ -10,24 +10,10 @@ export default class DateTimeComponent extends Input {
|
|
|
10
10
|
static get serverConditionSettings(): {
|
|
11
11
|
operators: string[];
|
|
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: string[];
|
|
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;
|
|
@@ -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[];
|
|
@@ -9,6 +9,11 @@ const DateTime_edit_date_1 = __importDefault(require("./editForm/DateTime.edit.d
|
|
|
9
9
|
const DateTime_edit_display_1 = __importDefault(require("./editForm/DateTime.edit.display"));
|
|
10
10
|
const DateTime_edit_time_1 = __importDefault(require("./editForm/DateTime.edit.time"));
|
|
11
11
|
const DateTime_edit_validation_1 = __importDefault(require("./editForm/DateTime.edit.validation"));
|
|
12
|
+
/**
|
|
13
|
+
* The Edit Form function.
|
|
14
|
+
* @param {...any} extend - The components that extend the edit form.
|
|
15
|
+
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
16
|
+
*/
|
|
12
17
|
function default_1(...extend) {
|
|
13
18
|
return Components_1.default.baseEditForm([
|
|
14
19
|
{
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Evaluator_1 =
|
|
6
|
+
const Evaluator_1 = require("../../../utils/Evaluator");
|
|
7
7
|
const utils_1 = __importDefault(require("../../_classes/component/editForm/utils"));
|
|
8
8
|
exports.default = [
|
|
9
9
|
{
|
|
@@ -34,7 +34,7 @@ exports.default = [
|
|
|
34
34
|
style: { 'margin-bottom': '10px' },
|
|
35
35
|
key: 'panel-disable-function',
|
|
36
36
|
customConditional() {
|
|
37
|
-
return !Evaluator_1.
|
|
37
|
+
return !Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval;
|
|
38
38
|
},
|
|
39
39
|
components: [
|
|
40
40
|
utils_1.default.logicVariablesTable('<tr><th>date</th><td>The date object.</td></tr>'),
|