@formio/js 5.0.0-rc.19 → 5.0.0-rc.21
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/formio.builder.css +14 -22
- package/dist/formio.builder.min.css +1 -1
- package/dist/formio.embed.css +1 -40
- package/dist/formio.embed.js +2 -90
- package/dist/formio.embed.min.css +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 +10 -2
- package/dist/formio.form.js +1267 -1103
- 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 -8
- package/dist/formio.full.css +14 -22
- package/dist/formio.full.js +1302 -1127
- 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 -8
- package/dist/formio.js +713 -626
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +2 -7
- package/dist/formio.utils.js +220 -13
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +2 -7
- package/lib/cjs/CDN.d.ts +1 -0
- package/lib/cjs/CDN.js +2 -1
- package/lib/cjs/Element.js +7 -2
- package/lib/cjs/Embed.d.ts +21 -1
- package/lib/cjs/Embed.js +211 -308
- package/lib/cjs/Form.d.ts +9 -6
- package/lib/cjs/Form.js +53 -11
- package/lib/cjs/PDF.d.ts +11 -3
- package/lib/cjs/PDF.js +4 -5
- package/lib/cjs/PDFBuilder.js +2 -3
- package/lib/cjs/Webform.d.ts +10 -13
- package/lib/cjs/Webform.js +46 -125
- package/lib/cjs/WebformBuilder.d.ts +6 -1
- package/lib/cjs/WebformBuilder.js +105 -65
- package/lib/cjs/Wizard.d.ts +8 -5
- package/lib/cjs/Wizard.js +12 -12
- package/lib/cjs/WizardBuilder.d.ts +6 -4
- package/lib/cjs/WizardBuilder.js +20 -3
- package/lib/cjs/addons/FormioAddon.d.ts +1 -1
- package/lib/cjs/addons/FormioAddon.js +1 -2
- package/lib/cjs/components/_classes/component/Component.d.ts +24 -8
- package/lib/cjs/components/_classes/component/Component.js +44 -14
- package/lib/cjs/components/_classes/input/Input.d.ts +1 -1
- package/lib/cjs/components/_classes/input/Input.js +1 -2
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +4 -0
- package/lib/cjs/components/_classes/list/ListComponent.js +43 -6
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +1 -0
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +10 -4
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +5 -2
- package/lib/cjs/components/_classes/nested/NestedComponent.js +9 -10
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +1 -0
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +4 -0
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -0
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +4 -0
- package/lib/cjs/components/address/Address.d.ts +8 -0
- package/lib/cjs/components/address/Address.js +5 -0
- package/lib/cjs/components/button/Button.d.ts +1 -0
- package/lib/cjs/components/button/Button.js +5 -3
- package/lib/cjs/components/checkbox/Checkbox.d.ts +41 -0
- package/lib/cjs/components/checkbox/Checkbox.js +32 -5
- package/lib/cjs/components/columns/Columns.d.ts +2 -0
- package/lib/cjs/components/columns/Columns.js +4 -0
- package/lib/cjs/components/container/Container.d.ts +1 -0
- package/lib/cjs/components/container/Container.js +4 -0
- package/lib/cjs/components/content/Content.d.ts +2 -0
- package/lib/cjs/components/content/Content.js +4 -2
- package/lib/cjs/components/currency/editForm/Currency.edit.data.d.ts +14 -2
- package/lib/cjs/components/currency/editForm/Currency.edit.data.js +4 -0
- package/lib/cjs/components/currency/editForm/Currency.edit.display.js +4 -0
- package/lib/cjs/components/datagrid/DataGrid.d.ts +1 -0
- package/lib/cjs/components/datagrid/DataGrid.js +8 -1
- package/lib/cjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/cjs/components/datamap/DataMap.js +4 -0
- package/lib/cjs/components/datetime/DateTime.d.ts +23 -0
- package/lib/cjs/components/datetime/DateTime.js +20 -1
- package/lib/cjs/components/day/Day.d.ts +22 -1
- package/lib/cjs/components/day/Day.js +20 -6
- package/lib/cjs/components/day/fixtures/comp3.js +2 -2
- package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
- package/lib/cjs/components/editgrid/EditGrid.js +11 -6
- package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +190 -0
- package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.js +227 -0
- package/lib/cjs/components/editgrid/fixtures/comp15.d.ts +54 -0
- package/lib/cjs/components/editgrid/fixtures/comp15.js +51 -0
- package/lib/cjs/components/editgrid/fixtures/index.d.ts +3 -1
- package/lib/cjs/components/editgrid/fixtures/index.js +5 -1
- package/lib/cjs/components/fieldset/Fieldset.d.ts +2 -0
- package/lib/cjs/components/fieldset/Fieldset.js +4 -0
- package/lib/cjs/components/file/File.d.ts +28 -6
- package/lib/cjs/components/file/File.js +40 -15
- package/lib/cjs/components/file/editForm/File.edit.file.d.ts +62 -0
- package/lib/cjs/components/file/editForm/File.edit.file.js +29 -2
- package/lib/cjs/components/form/Form.d.ts +4 -0
- package/lib/cjs/components/form/Form.js +12 -10
- package/lib/cjs/components/hidden/Hidden.d.ts +1 -0
- package/lib/cjs/components/hidden/Hidden.js +1 -0
- package/lib/cjs/components/html/HTML.d.ts +2 -0
- package/lib/cjs/components/html/HTML.js +4 -0
- package/lib/cjs/components/number/Number.d.ts +24 -1
- package/lib/cjs/components/number/Number.js +18 -6
- package/lib/cjs/components/panel/Panel.d.ts +1 -0
- package/lib/cjs/components/panel/Panel.js +3 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +9 -0
- package/lib/cjs/components/radio/Radio.d.ts +24 -3
- package/lib/cjs/components/radio/Radio.js +89 -18
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +2 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.js +7 -5
- package/lib/cjs/components/resource/Resource.d.ts +7 -0
- package/lib/cjs/components/resource/Resource.js +0 -1
- package/lib/cjs/components/resource/editForm/Resource.edit.display.js +1 -1
- package/lib/cjs/components/select/Select.d.ts +25 -5
- package/lib/cjs/components/select/Select.js +51 -51
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +37 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.js +60 -25
- package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +30 -27
- package/lib/cjs/components/selectboxes/fixtures/comp4.js +47 -32
- package/lib/cjs/components/selectboxes/fixtures/comp6.d.ts +14 -0
- package/lib/cjs/components/selectboxes/fixtures/comp6.js +15 -0
- package/lib/cjs/components/selectboxes/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/selectboxes/fixtures/index.js +3 -1
- package/lib/cjs/components/signature/Signature.d.ts +22 -1
- package/lib/cjs/components/signature/Signature.js +16 -3
- package/lib/cjs/components/survey/Survey.d.ts +21 -0
- package/lib/cjs/components/survey/Survey.js +9 -0
- package/lib/cjs/components/table/Table.d.ts +2 -0
- package/lib/cjs/components/table/Table.js +4 -0
- package/lib/cjs/components/tabs/Tabs.d.ts +2 -0
- package/lib/cjs/components/tabs/Tabs.js +4 -0
- package/lib/cjs/components/tags/Tags.d.ts +21 -0
- package/lib/cjs/components/tags/Tags.js +11 -0
- package/lib/cjs/components/textarea/TextArea.d.ts +3 -2
- package/lib/cjs/components/textarea/TextArea.js +4 -5
- package/lib/cjs/components/textarea/fixtures/comp4.d.ts +30 -0
- package/lib/cjs/components/textarea/fixtures/comp4.js +27 -0
- package/lib/cjs/components/textarea/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/textarea/fixtures/index.js +3 -1
- package/lib/cjs/components/textfield/TextField.d.ts +22 -0
- package/lib/cjs/components/textfield/TextField.js +11 -3
- package/lib/cjs/components/time/Time.d.ts +11 -0
- package/lib/cjs/components/time/Time.js +6 -1
- package/lib/cjs/components/tree/Tree.d.ts +5 -4
- package/lib/cjs/components/tree/Tree.form.js +5 -0
- package/lib/cjs/components/tree/Tree.js +8 -9
- package/lib/cjs/components/tree/editForm/Tree.edit.display.d.ts +9 -0
- package/lib/cjs/components/tree/editForm/Tree.edit.display.js +12 -0
- package/lib/cjs/components/well/Well.d.ts +2 -0
- package/lib/cjs/components/well/Well.js +4 -0
- package/lib/cjs/formio.embed.d.ts +2 -1
- package/lib/cjs/formio.embed.js +96 -1
- package/lib/cjs/formio.form.d.ts +4 -3
- package/lib/cjs/formio.form.js +17 -8
- package/lib/cjs/licenses/Licenses.d.ts +7 -0
- package/lib/cjs/licenses/Licenses.js +22 -0
- package/lib/cjs/licenses/index.d.ts +2 -0
- package/lib/cjs/licenses/index.js +7 -0
- package/lib/cjs/providers/Providers.d.ts +31 -11
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +2 -2
- package/lib/cjs/providers/address/GoogleAddressProvider.js +2 -3
- package/lib/cjs/providers/processor/fileProcessor.d.ts +1 -1
- package/lib/cjs/providers/processor/fileProcessor.js +1 -5
- package/lib/cjs/providers/storage/azure.d.ts +10 -1
- package/lib/cjs/providers/storage/azure.js +7 -2
- package/lib/cjs/providers/storage/base64.d.ts +2 -2
- package/lib/cjs/providers/storage/base64.js +2 -6
- package/lib/cjs/providers/storage/dropbox.d.ts +2 -2
- package/lib/cjs/providers/storage/dropbox.js +2 -6
- package/lib/cjs/providers/storage/googleDrive.d.ts +3 -2
- package/lib/cjs/providers/storage/googleDrive.js +6 -6
- package/lib/cjs/providers/storage/indexeddb.d.ts +3 -3
- package/lib/cjs/providers/storage/indexeddb.js +9 -13
- package/lib/cjs/providers/storage/s3.d.ts +11 -1
- package/lib/cjs/providers/storage/s3.js +5 -2
- package/lib/cjs/providers/storage/uploadAdapter.js +1 -5
- package/lib/cjs/providers/storage/url.d.ts +2 -2
- package/lib/cjs/providers/storage/url.js +12 -8
- package/lib/cjs/providers/storage/xhr.d.ts +1 -1
- package/lib/cjs/providers/storage/xhr.js +1 -2
- package/lib/cjs/templates/index.d.ts +226 -1
- package/lib/cjs/utils/Evaluator.js +4 -33
- package/lib/cjs/utils/i18n.d.ts +16 -0
- package/lib/cjs/utils/i18n.js +88 -0
- package/lib/cjs/utils/utils.d.ts +11 -1
- package/lib/cjs/utils/utils.js +29 -10
- package/lib/cjs/validator/Validator.d.ts +30 -2
- package/lib/cjs/validator/Validator.js +32 -9
- package/lib/cjs/validator/rules/Select.js +1 -2
- package/lib/cjs/validator/rules/Unique.d.ts +1 -1
- package/lib/cjs/validator/rules/Unique.js +1 -2
- package/lib/cjs/widgets/CalendarWidget.d.ts +1 -0
- package/lib/cjs/widgets/InputWidget.d.ts +1 -1
- package/lib/cjs/widgets/InputWidget.js +1 -2
- package/lib/mjs/CDN.d.ts +1 -0
- package/lib/mjs/CDN.js +2 -1
- package/lib/mjs/Element.js +6 -2
- package/lib/mjs/Embed.d.ts +21 -1
- package/lib/mjs/Embed.js +208 -319
- package/lib/mjs/Form.d.ts +9 -6
- package/lib/mjs/Form.js +53 -11
- package/lib/mjs/PDF.d.ts +11 -3
- package/lib/mjs/PDF.js +4 -5
- package/lib/mjs/PDFBuilder.js +2 -3
- package/lib/mjs/Webform.d.ts +10 -13
- package/lib/mjs/Webform.js +46 -128
- package/lib/mjs/WebformBuilder.d.ts +6 -1
- package/lib/mjs/WebformBuilder.js +103 -65
- package/lib/mjs/Wizard.d.ts +8 -5
- package/lib/mjs/Wizard.js +12 -12
- package/lib/mjs/WizardBuilder.d.ts +6 -4
- package/lib/mjs/WizardBuilder.js +20 -3
- package/lib/mjs/addons/FormioAddon.d.ts +1 -1
- package/lib/mjs/addons/FormioAddon.js +1 -2
- package/lib/mjs/components/_classes/component/Component.d.ts +24 -8
- package/lib/mjs/components/_classes/component/Component.js +44 -14
- package/lib/mjs/components/_classes/input/Input.d.ts +1 -1
- package/lib/mjs/components/_classes/input/Input.js +1 -2
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +4 -0
- package/lib/mjs/components/_classes/list/ListComponent.js +43 -5
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +1 -0
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +10 -4
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +5 -2
- package/lib/mjs/components/_classes/nested/NestedComponent.js +9 -10
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +1 -0
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +4 -0
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -0
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +4 -0
- package/lib/mjs/components/address/Address.d.ts +8 -0
- package/lib/mjs/components/address/Address.js +5 -0
- package/lib/mjs/components/button/Button.d.ts +1 -0
- package/lib/mjs/components/button/Button.js +6 -4
- package/lib/mjs/components/checkbox/Checkbox.d.ts +41 -0
- package/lib/mjs/components/checkbox/Checkbox.js +36 -5
- package/lib/mjs/components/columns/Columns.d.ts +2 -0
- package/lib/mjs/components/columns/Columns.js +4 -0
- package/lib/mjs/components/container/Container.d.ts +1 -0
- package/lib/mjs/components/container/Container.js +5 -1
- package/lib/mjs/components/content/Content.d.ts +2 -0
- package/lib/mjs/components/content/Content.js +4 -2
- package/lib/mjs/components/currency/editForm/Currency.edit.data.d.ts +14 -2
- package/lib/mjs/components/currency/editForm/Currency.edit.data.js +4 -0
- package/lib/mjs/components/currency/editForm/Currency.edit.display.js +4 -0
- package/lib/mjs/components/datagrid/DataGrid.d.ts +1 -0
- package/lib/mjs/components/datagrid/DataGrid.js +8 -1
- package/lib/mjs/components/datamap/DataMap.d.ts +1 -0
- package/lib/mjs/components/datamap/DataMap.js +5 -1
- package/lib/mjs/components/datetime/DateTime.d.ts +23 -0
- package/lib/mjs/components/datetime/DateTime.js +27 -1
- package/lib/mjs/components/day/Day.d.ts +22 -1
- package/lib/mjs/components/day/Day.js +24 -7
- package/lib/mjs/components/day/fixtures/comp3.js +2 -2
- package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
- package/lib/mjs/components/editgrid/EditGrid.js +11 -6
- package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +190 -0
- package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.js +225 -0
- package/lib/mjs/components/editgrid/fixtures/comp15.d.ts +54 -0
- package/lib/mjs/components/editgrid/fixtures/comp15.js +49 -0
- package/lib/mjs/components/editgrid/fixtures/index.d.ts +3 -1
- package/lib/mjs/components/editgrid/fixtures/index.js +3 -1
- package/lib/mjs/components/fieldset/Fieldset.d.ts +2 -0
- package/lib/mjs/components/fieldset/Fieldset.js +4 -0
- package/lib/mjs/components/file/File.d.ts +28 -6
- package/lib/mjs/components/file/File.js +44 -16
- package/lib/mjs/components/file/editForm/File.edit.file.d.ts +62 -0
- package/lib/mjs/components/file/editForm/File.edit.file.js +29 -2
- package/lib/mjs/components/form/Form.d.ts +4 -0
- package/lib/mjs/components/form/Form.js +13 -11
- package/lib/mjs/components/hidden/Hidden.d.ts +1 -0
- package/lib/mjs/components/hidden/Hidden.js +1 -0
- package/lib/mjs/components/html/HTML.d.ts +2 -0
- package/lib/mjs/components/html/HTML.js +4 -0
- package/lib/mjs/components/number/Number.d.ts +24 -1
- package/lib/mjs/components/number/Number.js +23 -7
- package/lib/mjs/components/panel/Panel.d.ts +1 -0
- package/lib/mjs/components/panel/Panel.js +3 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +9 -0
- package/lib/mjs/components/radio/Radio.d.ts +24 -3
- package/lib/mjs/components/radio/Radio.js +93 -19
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +2 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.js +7 -5
- package/lib/mjs/components/resource/Resource.d.ts +7 -0
- package/lib/mjs/components/resource/Resource.js +0 -1
- package/lib/mjs/components/resource/editForm/Resource.edit.display.js +1 -1
- package/lib/mjs/components/select/Select.d.ts +25 -5
- package/lib/mjs/components/select/Select.js +55 -52
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +37 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.js +63 -25
- package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +30 -27
- package/lib/mjs/components/selectboxes/fixtures/comp4.js +47 -32
- package/lib/mjs/components/selectboxes/fixtures/comp6.d.ts +14 -0
- package/lib/mjs/components/selectboxes/fixtures/comp6.js +13 -0
- package/lib/mjs/components/selectboxes/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/selectboxes/fixtures/index.js +2 -1
- package/lib/mjs/components/signature/Signature.d.ts +22 -1
- package/lib/mjs/components/signature/Signature.js +19 -3
- package/lib/mjs/components/survey/Survey.d.ts +21 -0
- package/lib/mjs/components/survey/Survey.js +13 -1
- package/lib/mjs/components/table/Table.d.ts +2 -0
- package/lib/mjs/components/table/Table.js +4 -0
- package/lib/mjs/components/tabs/Tabs.d.ts +2 -0
- package/lib/mjs/components/tabs/Tabs.js +4 -0
- package/lib/mjs/components/tags/Tags.d.ts +21 -0
- package/lib/mjs/components/tags/Tags.js +14 -0
- package/lib/mjs/components/textarea/TextArea.d.ts +3 -2
- package/lib/mjs/components/textarea/TextArea.js +4 -5
- package/lib/mjs/components/textarea/fixtures/comp4.d.ts +30 -0
- package/lib/mjs/components/textarea/fixtures/comp4.js +25 -0
- package/lib/mjs/components/textarea/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/textarea/fixtures/index.js +2 -1
- package/lib/mjs/components/textfield/TextField.d.ts +22 -0
- package/lib/mjs/components/textfield/TextField.js +14 -3
- package/lib/mjs/components/time/Time.d.ts +11 -0
- package/lib/mjs/components/time/Time.js +12 -1
- package/lib/mjs/components/tree/Tree.d.ts +5 -4
- package/lib/mjs/components/tree/Tree.form.js +5 -0
- package/lib/mjs/components/tree/Tree.js +8 -9
- package/lib/mjs/components/tree/editForm/Tree.edit.display.d.ts +9 -0
- package/lib/mjs/components/tree/editForm/Tree.edit.display.js +10 -0
- package/lib/mjs/components/well/Well.d.ts +2 -0
- package/lib/mjs/components/well/Well.js +4 -0
- package/lib/mjs/formio.embed.d.ts +2 -1
- package/lib/mjs/formio.embed.js +96 -2
- package/lib/mjs/formio.form.d.ts +4 -3
- package/lib/mjs/formio.form.js +16 -8
- package/lib/mjs/licenses/Licenses.d.ts +7 -0
- package/lib/mjs/licenses/Licenses.js +17 -0
- package/lib/mjs/licenses/index.d.ts +2 -0
- package/lib/mjs/licenses/index.js +2 -0
- package/lib/mjs/providers/Providers.d.ts +31 -11
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +2 -2
- package/lib/mjs/providers/address/GoogleAddressProvider.js +2 -3
- package/lib/mjs/providers/processor/fileProcessor.d.ts +1 -1
- package/lib/mjs/providers/processor/fileProcessor.js +1 -2
- package/lib/mjs/providers/storage/azure.d.ts +10 -1
- package/lib/mjs/providers/storage/azure.js +7 -2
- package/lib/mjs/providers/storage/base64.d.ts +2 -2
- package/lib/mjs/providers/storage/base64.js +2 -3
- package/lib/mjs/providers/storage/dropbox.d.ts +2 -2
- package/lib/mjs/providers/storage/dropbox.js +2 -3
- package/lib/mjs/providers/storage/googleDrive.d.ts +3 -2
- package/lib/mjs/providers/storage/googleDrive.js +6 -3
- package/lib/mjs/providers/storage/indexeddb.d.ts +3 -3
- package/lib/mjs/providers/storage/indexeddb.js +9 -10
- package/lib/mjs/providers/storage/s3.d.ts +11 -1
- package/lib/mjs/providers/storage/s3.js +5 -2
- package/lib/mjs/providers/storage/uploadAdapter.js +1 -2
- package/lib/mjs/providers/storage/url.d.ts +2 -2
- package/lib/mjs/providers/storage/url.js +12 -5
- package/lib/mjs/providers/storage/xhr.d.ts +1 -1
- package/lib/mjs/providers/storage/xhr.js +1 -2
- package/lib/mjs/templates/index.d.ts +226 -1
- package/lib/mjs/utils/Evaluator.js +4 -33
- package/lib/mjs/utils/i18n.d.ts +16 -0
- package/lib/mjs/utils/i18n.js +81 -0
- package/lib/mjs/utils/utils.d.ts +11 -1
- package/lib/mjs/utils/utils.js +27 -9
- package/lib/mjs/validator/Validator.d.ts +30 -2
- package/lib/mjs/validator/Validator.js +31 -9
- package/lib/mjs/validator/rules/Select.js +1 -2
- package/lib/mjs/validator/rules/Unique.d.ts +1 -1
- package/lib/mjs/validator/rules/Unique.js +1 -2
- package/lib/mjs/widgets/CalendarWidget.d.ts +1 -0
- package/lib/mjs/widgets/InputWidget.d.ts +1 -1
- package/lib/mjs/widgets/InputWidget.js +1 -2
- package/package.json +18 -15
- package/types/index.d.ts +1 -0
- package/types/licenses.d.ts +7 -0
- package/types/utils.d.ts +2 -0
@@ -0,0 +1,190 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
const type: string;
|
3
|
+
const components: ({
|
4
|
+
label: string;
|
5
|
+
conditionalAddButton: string;
|
6
|
+
tableView: boolean;
|
7
|
+
templates: {
|
8
|
+
header: string;
|
9
|
+
row: string;
|
10
|
+
};
|
11
|
+
addAnother: string;
|
12
|
+
saveRow: string;
|
13
|
+
inlineEdit: boolean;
|
14
|
+
customDefaultValue: string;
|
15
|
+
validate: {
|
16
|
+
minLength: number;
|
17
|
+
};
|
18
|
+
rowDrafts: boolean;
|
19
|
+
key: string;
|
20
|
+
type: string;
|
21
|
+
input: boolean;
|
22
|
+
components: ({
|
23
|
+
label: string;
|
24
|
+
columns: ({
|
25
|
+
components: {
|
26
|
+
label: string;
|
27
|
+
widget: string;
|
28
|
+
tableView: boolean;
|
29
|
+
dataSrc: string;
|
30
|
+
data: {
|
31
|
+
custom: string;
|
32
|
+
};
|
33
|
+
template: string;
|
34
|
+
validate: {
|
35
|
+
required: boolean;
|
36
|
+
};
|
37
|
+
key: string;
|
38
|
+
type: string;
|
39
|
+
input: boolean;
|
40
|
+
hideOnChildrenHidden: boolean;
|
41
|
+
}[];
|
42
|
+
width: number;
|
43
|
+
offset: number;
|
44
|
+
push: number;
|
45
|
+
pull: number;
|
46
|
+
size: string;
|
47
|
+
currentWidth: number;
|
48
|
+
} | {
|
49
|
+
components: {
|
50
|
+
label: string;
|
51
|
+
widget: string;
|
52
|
+
tableView: boolean;
|
53
|
+
dataSrc: string;
|
54
|
+
data: {
|
55
|
+
custom: string;
|
56
|
+
};
|
57
|
+
template: string;
|
58
|
+
validate: {
|
59
|
+
required: boolean;
|
60
|
+
};
|
61
|
+
key: string;
|
62
|
+
logic: {
|
63
|
+
name: string;
|
64
|
+
trigger: {
|
65
|
+
type: string;
|
66
|
+
javascript: string;
|
67
|
+
};
|
68
|
+
actions: {
|
69
|
+
name: string;
|
70
|
+
type: string;
|
71
|
+
property: {
|
72
|
+
label: string;
|
73
|
+
value: string;
|
74
|
+
type: string;
|
75
|
+
};
|
76
|
+
state: boolean;
|
77
|
+
}[];
|
78
|
+
}[];
|
79
|
+
type: string;
|
80
|
+
input: boolean;
|
81
|
+
hideOnChildrenHidden: boolean;
|
82
|
+
}[];
|
83
|
+
width: number;
|
84
|
+
offset: number;
|
85
|
+
push: number;
|
86
|
+
pull: number;
|
87
|
+
size: string;
|
88
|
+
currentWidth: number;
|
89
|
+
})[];
|
90
|
+
key: string;
|
91
|
+
type: string;
|
92
|
+
tableView: boolean;
|
93
|
+
input: boolean;
|
94
|
+
hideOnChildrenHidden: boolean;
|
95
|
+
} | {
|
96
|
+
label: string;
|
97
|
+
columns: ({
|
98
|
+
components: {
|
99
|
+
label: string;
|
100
|
+
widget: string;
|
101
|
+
tableView: boolean;
|
102
|
+
data: {
|
103
|
+
values: {
|
104
|
+
label: string;
|
105
|
+
value: string;
|
106
|
+
}[];
|
107
|
+
};
|
108
|
+
refreshOn: string;
|
109
|
+
validate: {
|
110
|
+
required: boolean;
|
111
|
+
};
|
112
|
+
key: string;
|
113
|
+
logic: {
|
114
|
+
name: string;
|
115
|
+
trigger: {
|
116
|
+
type: string;
|
117
|
+
javascript: string;
|
118
|
+
};
|
119
|
+
actions: {
|
120
|
+
name: string;
|
121
|
+
type: string;
|
122
|
+
property: {
|
123
|
+
label: string;
|
124
|
+
value: string;
|
125
|
+
type: string;
|
126
|
+
};
|
127
|
+
state: boolean;
|
128
|
+
}[];
|
129
|
+
}[];
|
130
|
+
type: string;
|
131
|
+
input: boolean;
|
132
|
+
hideOnChildrenHidden: boolean;
|
133
|
+
}[];
|
134
|
+
width: number;
|
135
|
+
offset: number;
|
136
|
+
push: number;
|
137
|
+
pull: number;
|
138
|
+
size: string;
|
139
|
+
currentWidth: number;
|
140
|
+
} | {
|
141
|
+
components: {
|
142
|
+
label: string;
|
143
|
+
mask: boolean;
|
144
|
+
spellcheck: boolean;
|
145
|
+
tableView: boolean;
|
146
|
+
currency: string;
|
147
|
+
inputFormat: string;
|
148
|
+
validate: {
|
149
|
+
required: boolean;
|
150
|
+
};
|
151
|
+
key: string;
|
152
|
+
type: string;
|
153
|
+
input: boolean;
|
154
|
+
delimiter: boolean;
|
155
|
+
hideOnChildrenHidden: boolean;
|
156
|
+
}[];
|
157
|
+
width: number;
|
158
|
+
offset: number;
|
159
|
+
push: number;
|
160
|
+
pull: number;
|
161
|
+
size: string;
|
162
|
+
currentWidth: number;
|
163
|
+
})[];
|
164
|
+
key: string;
|
165
|
+
type: string;
|
166
|
+
input: boolean;
|
167
|
+
tableView: boolean;
|
168
|
+
hideOnChildrenHidden: boolean;
|
169
|
+
})[];
|
170
|
+
disableOnInvalid?: undefined;
|
171
|
+
} | {
|
172
|
+
type: string;
|
173
|
+
label: string;
|
174
|
+
key: string;
|
175
|
+
disableOnInvalid: boolean;
|
176
|
+
input: boolean;
|
177
|
+
tableView: boolean;
|
178
|
+
conditionalAddButton?: undefined;
|
179
|
+
templates?: undefined;
|
180
|
+
addAnother?: undefined;
|
181
|
+
saveRow?: undefined;
|
182
|
+
inlineEdit?: undefined;
|
183
|
+
customDefaultValue?: undefined;
|
184
|
+
validate?: undefined;
|
185
|
+
rowDrafts?: undefined;
|
186
|
+
components?: undefined;
|
187
|
+
})[];
|
188
|
+
const display: string;
|
189
|
+
}
|
190
|
+
export default _default;
|
@@ -0,0 +1,227 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
type: 'form',
|
5
|
+
components: [
|
6
|
+
{
|
7
|
+
label: 'Selected Funds',
|
8
|
+
conditionalAddButton: 'show = !instance.hasOpenRows();',
|
9
|
+
tableView: false,
|
10
|
+
templates: {
|
11
|
+
header: "<div class=\"row\">\r\n {% util.eachComponent(components, function(component) {\r\n if (component.key === 'loadTypeFundCode') { %}\r\n <div class=\"col-sm-2\">\r\n <strong>Fund Code</strong>\r\n </div>\r\n <div class=\"col-sm-2\">\r\n <strong>Load Type</strong>\r\n </div> \r\n {% } else if (component.key !== 'fundClass') { \r\n if (component.key === 'fundName2') { %}\r\n <div class=\"col-sm-2\">\r\n {% } else { %}\r\n <div class=\"col-sm-2\">\r\n {% } %}\r\n <strong>{{ component.label }}</strong>\r\n </div>\r\n {% }\r\n }) %}\r\n</div>",
|
12
|
+
row: "<div class=\"row\">\r\n {% console.dir(row);\r\n util.eachComponent(components, function(component) { \r\n if (component.key === 'loadTypeFundCode') { \r\n var fundCode = '';\r\n var loadType = '';\r\n var item = component.data.values.find(item=>item.value==row[component.key]);\r\n if (!!item) {\r\n\t var itemParts = item.label.split('/');\r\n loadType = itemParts [0];\r\n\t if (itemParts.length > 1) { \r\n\t fundCode = itemParts [1];\r\n }\r\n }\r\n %}\r\n <div class=\"col-sm-2\">{{ fundCode }}</div>\r\n <div class=\"col-sm-2\">{{ loadType }}</div>\r\n {% } else if (component.key !== 'fundClass') { \r\n if (component.key === 'fundName2') { %}\r\n <div class=\"col-sm-2\">\r\n {% } else { %}\r\n <div class=\"col-sm-2\">\r\n {% } \r\n if (!!component.data && !!Array.isArray(component.data.values)) { \r\n var item = component.data.values.find(item=>item.value==row[component.key]);\r\n if (!!item) { %}\r\n {{item.label}}\r\n {% } else { %}\r\n {{ row[component.key] }}\r\n {% } \r\n } else { %}\r\n {{ row[component.key] }}\r\n {% } %}\r\n </div>\r\n {% }\r\n }) %}\r\n <div class=\"col-sm-2\">\r\n <div class=\"btn-group pull-right\">\r\n {% if (!instance.hasOpenRows()) { %}\r\n <div class=\"btn btn-default btn-sm editRow\"><i class=\"fa fa-edit\"></i></div>\r\n <div class=\"btn btn-danger btn-sm removeRow\"><i class=\"fa fa-trash\"></i></div>\r\n {% } %}\r\n </div>\r\n </div>\r\n</div>"
|
13
|
+
},
|
14
|
+
addAnother: 'Add Another Fund',
|
15
|
+
saveRow: 'Save Fund',
|
16
|
+
inlineEdit: true,
|
17
|
+
customDefaultValue: "value = [\n {\n fundClass: 'Class1',\n fundName2: 'Name1',\n loadTypeFundCode: 'dsc602',\n allocationAmount2: 100\n },\n {\n fundClass: 'Class2',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 200\n },\n {\n fundClass: 'Class3',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 100\n },\n {\n fundClass: 'Class3',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 100\n } ,\n {\n fundClass: 'Class3',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 100\n }\n];",
|
18
|
+
validate: {
|
19
|
+
minLength: 1
|
20
|
+
},
|
21
|
+
rowDrafts: false,
|
22
|
+
key: 'selectedFunds2',
|
23
|
+
type: 'editgrid',
|
24
|
+
input: true,
|
25
|
+
components: [
|
26
|
+
{
|
27
|
+
label: 'Columns',
|
28
|
+
columns: [
|
29
|
+
{
|
30
|
+
components: [
|
31
|
+
{
|
32
|
+
label: 'Fund Class',
|
33
|
+
widget: 'choicesjs',
|
34
|
+
tableView: true,
|
35
|
+
dataSrc: 'custom',
|
36
|
+
data: {
|
37
|
+
custom: "values = ['Class1', 'Class2', 'Class3'];"
|
38
|
+
},
|
39
|
+
template: '<span>{{ item }}</span>',
|
40
|
+
validate: {
|
41
|
+
required: true
|
42
|
+
},
|
43
|
+
key: 'fundClass',
|
44
|
+
type: 'select',
|
45
|
+
input: true,
|
46
|
+
hideOnChildrenHidden: false
|
47
|
+
}
|
48
|
+
],
|
49
|
+
width: 6,
|
50
|
+
offset: 0,
|
51
|
+
push: 0,
|
52
|
+
pull: 0,
|
53
|
+
size: 'md',
|
54
|
+
currentWidth: 6
|
55
|
+
},
|
56
|
+
{
|
57
|
+
components: [
|
58
|
+
{
|
59
|
+
label: 'Fund Name',
|
60
|
+
widget: 'choicesjs',
|
61
|
+
tableView: true,
|
62
|
+
dataSrc: 'custom',
|
63
|
+
data: {
|
64
|
+
custom: "values = ['Name1', 'Name2'];"
|
65
|
+
},
|
66
|
+
template: '<span>{{ item }}</span>',
|
67
|
+
validate: {
|
68
|
+
required: true
|
69
|
+
},
|
70
|
+
key: 'fundName2',
|
71
|
+
logic: [
|
72
|
+
{
|
73
|
+
name: 'Disable',
|
74
|
+
trigger: {
|
75
|
+
type: 'javascript',
|
76
|
+
javascript: "result = !row['fundClass'];"
|
77
|
+
},
|
78
|
+
actions: [
|
79
|
+
{
|
80
|
+
name: 'Disable',
|
81
|
+
type: 'property',
|
82
|
+
property: {
|
83
|
+
label: 'Disabled',
|
84
|
+
value: 'disabled',
|
85
|
+
type: 'boolean'
|
86
|
+
},
|
87
|
+
state: true
|
88
|
+
}
|
89
|
+
]
|
90
|
+
}
|
91
|
+
],
|
92
|
+
type: 'select',
|
93
|
+
input: true,
|
94
|
+
hideOnChildrenHidden: false
|
95
|
+
}
|
96
|
+
],
|
97
|
+
width: 6,
|
98
|
+
offset: 0,
|
99
|
+
push: 0,
|
100
|
+
pull: 0,
|
101
|
+
size: 'md',
|
102
|
+
currentWidth: 6
|
103
|
+
}
|
104
|
+
],
|
105
|
+
key: 'columns1',
|
106
|
+
type: 'columns',
|
107
|
+
tableView: false,
|
108
|
+
input: false,
|
109
|
+
hideOnChildrenHidden: false
|
110
|
+
},
|
111
|
+
{
|
112
|
+
label: 'Columns',
|
113
|
+
columns: [
|
114
|
+
{
|
115
|
+
components: [
|
116
|
+
{
|
117
|
+
label: 'Load Type / Fund Code',
|
118
|
+
widget: 'choicesjs',
|
119
|
+
tableView: true,
|
120
|
+
data: {
|
121
|
+
values: [
|
122
|
+
{
|
123
|
+
label: 'DSC/602',
|
124
|
+
value: 'dsc602'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
label: 'NL/702',
|
128
|
+
value: 'nl702'
|
129
|
+
},
|
130
|
+
{
|
131
|
+
label: 'LL/1202',
|
132
|
+
value: 'll1202'
|
133
|
+
},
|
134
|
+
{
|
135
|
+
label: 'NL-CB/3002',
|
136
|
+
value: 'nlCb3002'
|
137
|
+
},
|
138
|
+
{
|
139
|
+
label: 'NL-CB5/5002',
|
140
|
+
value: 'nlCb55002'
|
141
|
+
}
|
142
|
+
]
|
143
|
+
},
|
144
|
+
refreshOn: 'editGrid1.fundName2',
|
145
|
+
validate: {
|
146
|
+
required: true
|
147
|
+
},
|
148
|
+
key: 'loadTypeFundCode',
|
149
|
+
logic: [
|
150
|
+
{
|
151
|
+
name: 'Disable',
|
152
|
+
trigger: {
|
153
|
+
type: 'javascript',
|
154
|
+
javascript: "result = !row['fundName2'];"
|
155
|
+
},
|
156
|
+
actions: [
|
157
|
+
{
|
158
|
+
name: 'Disable',
|
159
|
+
type: 'property',
|
160
|
+
property: {
|
161
|
+
label: 'Disabled',
|
162
|
+
value: 'disabled',
|
163
|
+
type: 'boolean'
|
164
|
+
},
|
165
|
+
state: true
|
166
|
+
}
|
167
|
+
]
|
168
|
+
}
|
169
|
+
],
|
170
|
+
type: 'select',
|
171
|
+
input: true,
|
172
|
+
hideOnChildrenHidden: false
|
173
|
+
}
|
174
|
+
],
|
175
|
+
width: 6,
|
176
|
+
offset: 0,
|
177
|
+
push: 0,
|
178
|
+
pull: 0,
|
179
|
+
size: 'md',
|
180
|
+
currentWidth: 6
|
181
|
+
},
|
182
|
+
{
|
183
|
+
components: [
|
184
|
+
{
|
185
|
+
label: 'Amount',
|
186
|
+
mask: false,
|
187
|
+
spellcheck: true,
|
188
|
+
tableView: false,
|
189
|
+
currency: 'USD',
|
190
|
+
inputFormat: 'plain',
|
191
|
+
validate: {
|
192
|
+
required: true
|
193
|
+
},
|
194
|
+
key: 'allocationAmount2',
|
195
|
+
type: 'currency',
|
196
|
+
input: true,
|
197
|
+
delimiter: true,
|
198
|
+
hideOnChildrenHidden: false
|
199
|
+
}
|
200
|
+
],
|
201
|
+
width: 6,
|
202
|
+
offset: 0,
|
203
|
+
push: 0,
|
204
|
+
pull: 0,
|
205
|
+
size: 'md',
|
206
|
+
currentWidth: 6
|
207
|
+
}
|
208
|
+
],
|
209
|
+
key: 'columns',
|
210
|
+
type: 'columns',
|
211
|
+
input: false,
|
212
|
+
tableView: false,
|
213
|
+
hideOnChildrenHidden: false
|
214
|
+
}
|
215
|
+
]
|
216
|
+
},
|
217
|
+
{
|
218
|
+
type: 'button',
|
219
|
+
label: 'Submit',
|
220
|
+
key: 'submit',
|
221
|
+
disableOnInvalid: true,
|
222
|
+
input: true,
|
223
|
+
tableView: false
|
224
|
+
}
|
225
|
+
],
|
226
|
+
display: 'form',
|
227
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
const type: string;
|
3
|
+
const display: string;
|
4
|
+
const components: ({
|
5
|
+
label: string;
|
6
|
+
tableView: boolean;
|
7
|
+
validate: {
|
8
|
+
minLength: number;
|
9
|
+
};
|
10
|
+
rowDrafts: boolean;
|
11
|
+
key: string;
|
12
|
+
type: string;
|
13
|
+
displayAsTable: boolean;
|
14
|
+
input: boolean;
|
15
|
+
components: ({
|
16
|
+
label: string;
|
17
|
+
applyMaskOn: string;
|
18
|
+
tableView: boolean;
|
19
|
+
key: string;
|
20
|
+
type: string;
|
21
|
+
input: boolean;
|
22
|
+
mask?: undefined;
|
23
|
+
delimiter?: undefined;
|
24
|
+
requireDecimal?: undefined;
|
25
|
+
inputFormat?: undefined;
|
26
|
+
truncateMultipleSpaces?: undefined;
|
27
|
+
} | {
|
28
|
+
label: string;
|
29
|
+
applyMaskOn: string;
|
30
|
+
mask: boolean;
|
31
|
+
tableView: boolean;
|
32
|
+
delimiter: boolean;
|
33
|
+
requireDecimal: boolean;
|
34
|
+
inputFormat: string;
|
35
|
+
truncateMultipleSpaces: boolean;
|
36
|
+
key: string;
|
37
|
+
type: string;
|
38
|
+
input: boolean;
|
39
|
+
})[];
|
40
|
+
disableOnInvalid?: undefined;
|
41
|
+
} | {
|
42
|
+
type: string;
|
43
|
+
label: string;
|
44
|
+
key: string;
|
45
|
+
disableOnInvalid: boolean;
|
46
|
+
input: boolean;
|
47
|
+
tableView: boolean;
|
48
|
+
validate?: undefined;
|
49
|
+
rowDrafts?: undefined;
|
50
|
+
displayAsTable?: undefined;
|
51
|
+
components?: undefined;
|
52
|
+
})[];
|
53
|
+
}
|
54
|
+
export default _default;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
type: 'form',
|
5
|
+
display: 'form',
|
6
|
+
components: [
|
7
|
+
{
|
8
|
+
label: 'Edit Grid',
|
9
|
+
tableView: false,
|
10
|
+
validate: {
|
11
|
+
minLength: 6
|
12
|
+
},
|
13
|
+
rowDrafts: false,
|
14
|
+
key: 'editGrid',
|
15
|
+
type: 'editgrid',
|
16
|
+
displayAsTable: false,
|
17
|
+
input: true,
|
18
|
+
components: [
|
19
|
+
{
|
20
|
+
label: 'Text',
|
21
|
+
applyMaskOn: 'change',
|
22
|
+
tableView: true,
|
23
|
+
key: 'text',
|
24
|
+
type: 'textfield',
|
25
|
+
input: true
|
26
|
+
},
|
27
|
+
{
|
28
|
+
label: 'Number',
|
29
|
+
applyMaskOn: 'change',
|
30
|
+
mask: false,
|
31
|
+
tableView: false,
|
32
|
+
delimiter: false,
|
33
|
+
requireDecimal: false,
|
34
|
+
inputFormat: 'plain',
|
35
|
+
truncateMultipleSpaces: false,
|
36
|
+
key: 'number',
|
37
|
+
type: 'number',
|
38
|
+
input: true
|
39
|
+
}
|
40
|
+
]
|
41
|
+
},
|
42
|
+
{
|
43
|
+
type: 'button',
|
44
|
+
label: 'Submit',
|
45
|
+
key: 'submit',
|
46
|
+
disableOnInvalid: true,
|
47
|
+
input: true,
|
48
|
+
tableView: false
|
49
|
+
}
|
50
|
+
]
|
51
|
+
};
|
@@ -6,6 +6,7 @@ import comp11 from './comp11';
|
|
6
6
|
import comp12 from './comp12';
|
7
7
|
import comp13 from './comp13';
|
8
8
|
import comp14 from './comp14';
|
9
|
+
import comp15 from './comp15';
|
9
10
|
import comp4 from './comp4';
|
10
11
|
import comp5 from './comp5';
|
11
12
|
import comp6 from './comp6';
|
@@ -14,4 +15,5 @@ import comp8 from './comp8';
|
|
14
15
|
import comp9 from './comp9';
|
15
16
|
import compOpenWhenEmpty from './comp-openWhenEmpty';
|
16
17
|
import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
|
17
|
-
|
18
|
+
import compWithCustomDefaultValue from './comp-with-custom-default-value';
|
19
|
+
export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
|
@@ -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.withOpenWhenEmptyAndConditions = exports.compOpenWhenEmpty = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp14 = exports.comp13 = exports.comp12 = exports.comp11 = exports.comp10 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
6
|
+
exports.compWithCustomDefaultValue = exports.withOpenWhenEmptyAndConditions = exports.compOpenWhenEmpty = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp15 = exports.comp14 = exports.comp13 = exports.comp12 = exports.comp11 = exports.comp10 = 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"));
|
@@ -32,7 +32,11 @@ const comp13_1 = __importDefault(require("./comp13"));
|
|
32
32
|
exports.comp13 = comp13_1.default;
|
33
33
|
const comp14_1 = __importDefault(require("./comp14"));
|
34
34
|
exports.comp14 = comp14_1.default;
|
35
|
+
const comp15_1 = __importDefault(require("./comp15"));
|
36
|
+
exports.comp15 = comp15_1.default;
|
35
37
|
const comp_with_conditions_and_openWhenEmpty_1 = __importDefault(require("./comp-with-conditions-and-openWhenEmpty"));
|
36
38
|
exports.withOpenWhenEmptyAndConditions = comp_with_conditions_and_openWhenEmpty_1.default;
|
37
39
|
const comp_openWhenEmpty_1 = __importDefault(require("./comp-openWhenEmpty"));
|
38
40
|
exports.compOpenWhenEmpty = comp_openWhenEmpty_1.default;
|
41
|
+
const comp_with_custom_default_value_1 = __importDefault(require("./comp-with-custom-default-value"));
|
42
|
+
exports.compWithCustomDefaultValue = comp_with_custom_default_value_1.default;
|
@@ -4,9 +4,11 @@ export default class FieldsetComponent extends NestedComponent {
|
|
4
4
|
icon: string;
|
5
5
|
group: string;
|
6
6
|
documentation: string;
|
7
|
+
showPreview: boolean;
|
7
8
|
weight: number;
|
8
9
|
schema: any;
|
9
10
|
};
|
11
|
+
static savedValueTypes(): never[];
|
10
12
|
constructor(...args: any[]);
|
11
13
|
noField: boolean;
|
12
14
|
}
|
@@ -22,10 +22,14 @@ class FieldsetComponent extends NestedComponent_1.default {
|
|
22
22
|
icon: 'th-large',
|
23
23
|
group: 'layout',
|
24
24
|
documentation: '/userguide/form-building/layout-components#field-set',
|
25
|
+
showPreview: false,
|
25
26
|
weight: 20,
|
26
27
|
schema: FieldsetComponent.schema()
|
27
28
|
};
|
28
29
|
}
|
30
|
+
static savedValueTypes() {
|
31
|
+
return [];
|
32
|
+
}
|
29
33
|
get defaultSchema() {
|
30
34
|
return FieldsetComponent.schema();
|
31
35
|
}
|
@@ -7,6 +7,27 @@ export default class FileComponent extends Field {
|
|
7
7
|
weight: number;
|
8
8
|
schema: any;
|
9
9
|
};
|
10
|
+
static get serverConditionSettings(): {
|
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
|
+
};
|
20
|
+
static get conditionOperatorsSettings(): {
|
21
|
+
operators: string[];
|
22
|
+
constructor: Function;
|
23
|
+
toString(): string;
|
24
|
+
toLocaleString(): string;
|
25
|
+
valueOf(): Object;
|
26
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
27
|
+
isPrototypeOf(v: Object): boolean;
|
28
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
29
|
+
};
|
30
|
+
static savedValueTypes(schema: any): string[];
|
10
31
|
support: {
|
11
32
|
filereader: boolean;
|
12
33
|
formdata: boolean;
|
@@ -18,6 +39,7 @@ export default class FileComponent extends Field {
|
|
18
39
|
statuses: any[] | undefined;
|
19
40
|
set fileDropHidden(arg: any);
|
20
41
|
get fileDropHidden(): any;
|
42
|
+
get dataReady(): Promise<any>;
|
21
43
|
loadImage(fileInfo: any): any;
|
22
44
|
get emptyValue(): never[];
|
23
45
|
getValueAsString(value: any): any;
|
@@ -27,23 +49,24 @@ export default class FileComponent extends Field {
|
|
27
49
|
render(): any;
|
28
50
|
getVideoStream(constraints: any): any;
|
29
51
|
stopVideoStream(videoStream: any): void;
|
30
|
-
getFrame(videoPlayer: any): any
|
52
|
+
getFrame(videoPlayer: any): Promise<any>;
|
31
53
|
startVideo(): void;
|
32
54
|
videoStream: any;
|
33
55
|
stopVideo(): void;
|
34
56
|
takePicture(): void;
|
35
|
-
browseFiles(attrs?: {}): any
|
57
|
+
browseFiles(attrs?: {}): Promise<any>;
|
36
58
|
_cameraMode: any;
|
37
59
|
get useWebViewCamera(): any;
|
38
60
|
get imageUpload(): boolean;
|
39
61
|
get browseOptions(): {
|
40
62
|
multiple: boolean;
|
63
|
+
capture: any;
|
41
64
|
accept: any;
|
42
65
|
};
|
43
66
|
deleteFile(fileInfo: any): void;
|
44
|
-
filesReady: any;
|
45
|
-
filesReadyResolve: any;
|
46
|
-
filesReadyReject: any;
|
67
|
+
filesReady: Promise<any> | undefined;
|
68
|
+
filesReadyResolve: ((value: any) => void) | undefined;
|
69
|
+
filesReadyReject: ((reason?: any) => void) | undefined;
|
47
70
|
fileSize(a: any, b: any, c: any, d: any, e: any): string;
|
48
71
|
globStringToRegex(str: any): any;
|
49
72
|
translateScalars(str: any): any;
|
@@ -52,7 +75,6 @@ export default class FileComponent extends Field {
|
|
52
75
|
validateMaxSize(file: any, val: any): boolean;
|
53
76
|
upload(files: any): void;
|
54
77
|
filesUploading: any[] | undefined;
|
55
|
-
abortUpload: any;
|
56
78
|
getFile(fileInfo: any): any;
|
57
79
|
focus(): void;
|
58
80
|
}
|