@formio/js 5.0.0-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.txt +19 -0
- package/README.md +195 -0
- package/dist/fonts/bootstrap-icons.woff +0 -0
- package/dist/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/formio.builder.css +2295 -0
- package/dist/formio.builder.min.css +1 -0
- package/dist/formio.embed.css +40 -0
- package/dist/formio.embed.js +90 -0
- package/dist/formio.embed.min.css +1 -0
- package/dist/formio.embed.min.js +2 -0
- package/dist/formio.embed.min.js.LICENSE.txt +1 -0
- package/dist/formio.form.css +2014 -0
- package/dist/formio.form.js +8300 -0
- package/dist/formio.form.min.css +1 -0
- package/dist/formio.form.min.js +2 -0
- package/dist/formio.form.min.js.LICENSE.txt +48 -0
- package/dist/formio.full.css +3937 -0
- package/dist/formio.full.js +10276 -0
- package/dist/formio.full.min.css +5 -0
- package/dist/formio.full.min.js +2 -0
- package/dist/formio.full.min.js.LICENSE.txt +48 -0
- package/dist/formio.js +2722 -0
- package/dist/formio.min.js +2 -0
- package/dist/formio.min.js.LICENSE.txt +17 -0
- package/dist/formio.utils.js +2103 -0
- package/dist/formio.utils.min.js +2 -0
- package/dist/formio.utils.min.js.LICENSE.txt +41 -0
- package/index.d.ts +1 -0
- package/lib/cjs/CDN.d.ts +28 -0
- package/lib/cjs/CDN.js +76 -0
- package/lib/cjs/Element.d.ts +255 -0
- package/lib/cjs/Element.js +593 -0
- package/lib/cjs/Embed.d.ts +1 -0
- package/lib/cjs/Embed.js +355 -0
- package/lib/cjs/EventEmitter.d.ts +7 -0
- package/lib/cjs/EventEmitter.js +52 -0
- package/lib/cjs/Form.d.ts +90 -0
- package/lib/cjs/Form.js +337 -0
- package/lib/cjs/FormBuilder.d.ts +6 -0
- package/lib/cjs/FormBuilder.js +39 -0
- package/lib/cjs/Formio.d.ts +2 -0
- package/lib/cjs/Formio.js +95 -0
- package/lib/cjs/PDF.d.ts +32 -0
- package/lib/cjs/PDF.js +292 -0
- package/lib/cjs/PDFBuilder.d.ts +55 -0
- package/lib/cjs/PDFBuilder.js +481 -0
- package/lib/cjs/Webform.d.ts +408 -0
- package/lib/cjs/Webform.js +1515 -0
- package/lib/cjs/WebformBuilder.d.ts +120 -0
- package/lib/cjs/WebformBuilder.js +1537 -0
- package/lib/cjs/Wizard.d.ts +93 -0
- package/lib/cjs/Wizard.js +917 -0
- package/lib/cjs/WizardBuilder.d.ts +46 -0
- package/lib/cjs/WizardBuilder.js +257 -0
- package/lib/cjs/addons/FormioAddon.d.ts +19 -0
- package/lib/cjs/addons/FormioAddon.js +37 -0
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +717 -0
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +590 -0
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +316 -0
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +397 -0
- package/lib/cjs/addons/index.d.ts +625 -0
- package/lib/cjs/addons/index.js +25 -0
- package/lib/cjs/builders/Builders.d.ts +18 -0
- package/lib/cjs/builders/Builders.js +29 -0
- package/lib/cjs/builders/index.d.ts +2 -0
- package/lib/cjs/builders/index.js +7 -0
- package/lib/cjs/components/Components.d.ts +258 -0
- package/lib/cjs/components/Components.js +80 -0
- package/lib/cjs/components/_classes/component/Component.d.ts +779 -0
- package/lib/cjs/components/_classes/component/Component.form.d.ts +3 -0
- package/lib/cjs/components/_classes/component/Component.form.js +77 -0
- package/lib/cjs/components/_classes/component/Component.js +3146 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +645 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +46 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.api.d.ts +42 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.api.js +40 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +113 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +55 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +219 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +161 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.d.ts +160 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +202 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.d.ts +44 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.js +79 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.d.ts +368 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +415 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +140 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +209 -0
- package/lib/cjs/components/_classes/component/editForm/utils.d.ts +83 -0
- package/lib/cjs/components/_classes/component/editForm/utils.js +137 -0
- package/lib/cjs/components/_classes/component/fixtures/comp1.d.ts +33 -0
- package/lib/cjs/components/_classes/component/fixtures/comp1.js +33 -0
- package/lib/cjs/components/_classes/component/fixtures/comp2.d.ts +33 -0
- package/lib/cjs/components/_classes/component/fixtures/comp2.js +33 -0
- package/lib/cjs/components/_classes/component/fixtures/comp3.d.ts +14 -0
- package/lib/cjs/components/_classes/component/fixtures/comp3.js +14 -0
- package/lib/cjs/components/_classes/component/fixtures/comp4.d.ts +17 -0
- package/lib/cjs/components/_classes/component/fixtures/comp4.js +18 -0
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +5 -0
- package/lib/cjs/components/_classes/component/fixtures/index.js +14 -0
- package/lib/cjs/components/_classes/componentModal/ComponentModal.d.ts +46 -0
- package/lib/cjs/components/_classes/componentModal/ComponentModal.js +183 -0
- package/lib/cjs/components/_classes/field/Field.d.ts +4 -0
- package/lib/cjs/components/_classes/field/Field.js +23 -0
- package/lib/cjs/components/_classes/input/Input.d.ts +42 -0
- package/lib/cjs/components/_classes/input/Input.js +304 -0
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +14 -0
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +3 -0
- package/lib/cjs/components/_classes/list/ListComponent.form.js +16 -0
- package/lib/cjs/components/_classes/list/ListComponent.js +215 -0
- package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +183 -0
- package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.js +119 -0
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +29 -0
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +263 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +130 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +3 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +19 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.js +693 -0
- package/lib/cjs/components/_classes/nested/fixtures/comp1.d.ts +8 -0
- package/lib/cjs/components/_classes/nested/fixtures/comp1.js +16 -0
- package/lib/cjs/components/_classes/nested/fixtures/comp2.d.ts +236 -0
- package/lib/cjs/components/_classes/nested/fixtures/comp2.js +227 -0
- package/lib/cjs/components/_classes/nested/fixtures/comp3.d.ts +26 -0
- package/lib/cjs/components/_classes/nested/fixtures/comp3.js +29 -0
- package/lib/cjs/components/_classes/nested/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/_classes/nested/fixtures/index.js +12 -0
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +14 -0
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +180 -0
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +11 -0
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +123 -0
- package/lib/cjs/components/address/Address.d.ts +58 -0
- package/lib/cjs/components/address/Address.form.d.ts +3 -0
- package/lib/cjs/components/address/Address.form.js +28 -0
- package/lib/cjs/components/address/Address.js +547 -0
- package/lib/cjs/components/address/editForm/Address.edit.data.d.ts +31 -0
- package/lib/cjs/components/address/editForm/Address.edit.data.js +23 -0
- package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +49 -0
- package/lib/cjs/components/address/editForm/Address.edit.display.js +44 -0
- package/lib/cjs/components/address/editForm/Address.edit.provider.d.ts +164 -0
- package/lib/cjs/components/address/editForm/Address.edit.provider.js +156 -0
- package/lib/cjs/components/address/fixtures/comp1.d.ts +34 -0
- package/lib/cjs/components/address/fixtures/comp1.js +71 -0
- package/lib/cjs/components/address/fixtures/comp2.d.ts +62 -0
- package/lib/cjs/components/address/fixtures/comp2.js +103 -0
- package/lib/cjs/components/address/fixtures/comp3.d.ts +44 -0
- package/lib/cjs/components/address/fixtures/comp3.js +85 -0
- package/lib/cjs/components/address/fixtures/comp4.d.ts +56 -0
- package/lib/cjs/components/address/fixtures/comp4.js +93 -0
- package/lib/cjs/components/address/fixtures/index.d.ts +5 -0
- package/lib/cjs/components/address/fixtures/index.js +14 -0
- package/lib/cjs/components/address/fixtures/values.d.ts +22 -0
- package/lib/cjs/components/address/fixtures/values.js +19 -0
- package/lib/cjs/components/alert/Alert.d.ts +30 -0
- package/lib/cjs/components/alert/Alert.js +183 -0
- package/lib/cjs/components/builder.d.ts +2 -0
- package/lib/cjs/components/builder.js +91 -0
- package/lib/cjs/components/button/Button.d.ts +44 -0
- package/lib/cjs/components/button/Button.form.d.ts +3 -0
- package/lib/cjs/components/button/Button.form.js +24 -0
- package/lib/cjs/components/button/Button.js +465 -0
- package/lib/cjs/components/button/editForm/Button.edit.display.d.ts +360 -0
- package/lib/cjs/components/button/editForm/Button.edit.display.js +253 -0
- package/lib/cjs/components/button/fixtures/comp1.d.ts +15 -0
- package/lib/cjs/components/button/fixtures/comp1.js +16 -0
- package/lib/cjs/components/button/fixtures/comp2.d.ts +25 -0
- package/lib/cjs/components/button/fixtures/comp2.js +57 -0
- package/lib/cjs/components/button/fixtures/comp3.d.ts +113 -0
- package/lib/cjs/components/button/fixtures/comp3.js +84 -0
- package/lib/cjs/components/button/fixtures/index.d.ts +4 -0
- package/lib/cjs/components/button/fixtures/index.js +12 -0
- package/lib/cjs/components/button/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/button/fixtures/values.js +6 -0
- package/lib/cjs/components/checkbox/Checkbox.d.ts +36 -0
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +3 -0
- package/lib/cjs/components/checkbox/Checkbox.form.js +26 -0
- package/lib/cjs/components/checkbox/Checkbox.js +194 -0
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +5 -0
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.js +8 -0
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +75 -0
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.js +79 -0
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +5 -0
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.js +12 -0
- package/lib/cjs/components/checkbox/fixtures/comp1.d.ts +24 -0
- package/lib/cjs/components/checkbox/fixtures/comp1.js +24 -0
- package/lib/cjs/components/checkbox/fixtures/comp2.d.ts +12 -0
- package/lib/cjs/components/checkbox/fixtures/comp2.js +13 -0
- package/lib/cjs/components/checkbox/fixtures/comp3.d.ts +15 -0
- package/lib/cjs/components/checkbox/fixtures/comp3.js +16 -0
- package/lib/cjs/components/checkbox/fixtures/comp4.d.ts +46 -0
- package/lib/cjs/components/checkbox/fixtures/comp4.js +39 -0
- package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.d.ts +25 -0
- package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.js +25 -0
- package/lib/cjs/components/checkbox/fixtures/index.d.ts +6 -0
- package/lib/cjs/components/checkbox/fixtures/index.js +16 -0
- package/lib/cjs/components/checkbox/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/checkbox/fixtures/values.js +6 -0
- package/lib/cjs/components/columns/Columns.d.ts +25 -0
- package/lib/cjs/components/columns/Columns.form.d.ts +3 -0
- package/lib/cjs/components/columns/Columns.form.js +16 -0
- package/lib/cjs/components/columns/Columns.js +156 -0
- package/lib/cjs/components/columns/editForm/Columns.edit.display.d.ts +58 -0
- package/lib/cjs/components/columns/editForm/Columns.edit.display.js +100 -0
- package/lib/cjs/components/columns/fixtures/comp1.d.ts +45 -0
- package/lib/cjs/components/columns/fixtures/comp1.js +85 -0
- package/lib/cjs/components/columns/fixtures/comp2.d.ts +24 -0
- package/lib/cjs/components/columns/fixtures/comp2.js +127 -0
- package/lib/cjs/components/columns/fixtures/comp3.d.ts +45 -0
- package/lib/cjs/components/columns/fixtures/comp3.js +53 -0
- package/lib/cjs/components/columns/fixtures/index.d.ts +4 -0
- package/lib/cjs/components/columns/fixtures/index.js +12 -0
- package/lib/cjs/components/container/Container.d.ts +14 -0
- package/lib/cjs/components/container/Container.form.d.ts +3 -0
- package/lib/cjs/components/container/Container.form.js +21 -0
- package/lib/cjs/components/container/Container.js +78 -0
- package/lib/cjs/components/container/editForm/Container.edit.data.d.ts +5 -0
- package/lib/cjs/components/container/editForm/Container.edit.data.js +16 -0
- package/lib/cjs/components/container/editForm/Container.edit.display.d.ts +5 -0
- package/lib/cjs/components/container/editForm/Container.edit.display.js +20 -0
- package/lib/cjs/components/container/fixtures/comp1.d.ts +49 -0
- package/lib/cjs/components/container/fixtures/comp1.js +82 -0
- package/lib/cjs/components/container/fixtures/comp2.d.ts +30 -0
- package/lib/cjs/components/container/fixtures/comp2.js +34 -0
- package/lib/cjs/components/container/fixtures/comp3.d.ts +77 -0
- package/lib/cjs/components/container/fixtures/comp3.js +57 -0
- package/lib/cjs/components/container/fixtures/index.d.ts +4 -0
- package/lib/cjs/components/container/fixtures/index.js +12 -0
- package/lib/cjs/components/content/Content.d.ts +15 -0
- package/lib/cjs/components/content/Content.form.d.ts +3 -0
- package/lib/cjs/components/content/Content.form.js +43 -0
- package/lib/cjs/components/content/Content.js +76 -0
- package/lib/cjs/components/content/editForm/Content.edit.display.d.ts +18 -0
- package/lib/cjs/components/content/editForm/Content.edit.display.js +48 -0
- package/lib/cjs/components/content/editForm/Content.edit.logic.d.ts +48 -0
- package/lib/cjs/components/content/editForm/Content.edit.logic.js +100 -0
- package/lib/cjs/components/content/fixtures/comp1.d.ts +13 -0
- package/lib/cjs/components/content/fixtures/comp1.js +14 -0
- package/lib/cjs/components/content/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/content/fixtures/index.js +8 -0
- package/lib/cjs/components/currency/Currency.d.ts +8 -0
- package/lib/cjs/components/currency/Currency.form.d.ts +3 -0
- package/lib/cjs/components/currency/Currency.form.js +46 -0
- package/lib/cjs/components/currency/Currency.js +180 -0
- package/lib/cjs/components/currency/editForm/Currency.edit.data.d.ts +17 -0
- package/lib/cjs/components/currency/editForm/Currency.edit.data.js +188 -0
- package/lib/cjs/components/currency/editForm/Currency.edit.display.d.ts +18 -0
- package/lib/cjs/components/currency/editForm/Currency.edit.display.js +36 -0
- package/lib/cjs/components/currency/fixtures/comp1.d.ts +31 -0
- package/lib/cjs/components/currency/fixtures/comp1.js +31 -0
- package/lib/cjs/components/currency/fixtures/comp2.d.ts +20 -0
- package/lib/cjs/components/currency/fixtures/comp2.js +20 -0
- package/lib/cjs/components/currency/fixtures/comp3.d.ts +13 -0
- package/lib/cjs/components/currency/fixtures/comp3.js +14 -0
- package/lib/cjs/components/currency/fixtures/comp4.d.ts +17 -0
- package/lib/cjs/components/currency/fixtures/comp4.js +20 -0
- package/lib/cjs/components/currency/fixtures/index.d.ts +5 -0
- package/lib/cjs/components/currency/fixtures/index.js +14 -0
- package/lib/cjs/components/currency/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/currency/fixtures/values.js +8 -0
- package/lib/cjs/components/datagrid/DataGrid.d.ts +87 -0
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +3 -0
- package/lib/cjs/components/datagrid/DataGrid.form.js +26 -0
- package/lib/cjs/components/datagrid/DataGrid.js +646 -0
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +5 -0
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.js +8 -0
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +283 -0
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.js +149 -0
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +20 -0
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.js +26 -0
- package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +37 -0
- package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +42 -0
- package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
- package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.js +1 -0
- package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +63 -0
- package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +81 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +76 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +75 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +197 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +178 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.d.ts +61 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.js +69 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-logic.d.ts +165 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-logic.js +180 -0
- package/lib/cjs/components/datagrid/fixtures/comp1.d.ts +93 -0
- package/lib/cjs/components/datagrid/fixtures/comp1.js +115 -0
- package/lib/cjs/components/datagrid/fixtures/comp2.d.ts +18 -0
- package/lib/cjs/components/datagrid/fixtures/comp2.js +29 -0
- package/lib/cjs/components/datagrid/fixtures/comp3.d.ts +14 -0
- package/lib/cjs/components/datagrid/fixtures/comp3.js +23 -0
- package/lib/cjs/components/datagrid/fixtures/comp4.d.ts +27 -0
- package/lib/cjs/components/datagrid/fixtures/comp4.js +28 -0
- package/lib/cjs/components/datagrid/fixtures/comp5.d.ts +67 -0
- package/lib/cjs/components/datagrid/fixtures/comp5.js +77 -0
- package/lib/cjs/components/datagrid/fixtures/comp6.d.ts +567 -0
- package/lib/cjs/components/datagrid/fixtures/comp6.js +296 -0
- package/lib/cjs/components/datagrid/fixtures/comp7.d.ts +28 -0
- package/lib/cjs/components/datagrid/fixtures/comp7.js +35 -0
- package/lib/cjs/components/datagrid/fixtures/comp8.d.ts +35 -0
- package/lib/cjs/components/datagrid/fixtures/comp8.js +37 -0
- package/lib/cjs/components/datagrid/fixtures/index.d.ts +15 -0
- package/lib/cjs/components/datagrid/fixtures/index.js +34 -0
- package/lib/cjs/components/datamap/DataMap.d.ts +35 -0
- package/lib/cjs/components/datamap/DataMap.form.d.ts +3 -0
- package/lib/cjs/components/datamap/DataMap.form.js +21 -0
- package/lib/cjs/components/datamap/DataMap.js +297 -0
- package/lib/cjs/components/datamap/editForm/DataMap.edit.data.d.ts +5 -0
- package/lib/cjs/components/datamap/editForm/DataMap.edit.data.js +12 -0
- package/lib/cjs/components/datamap/editForm/DataMap.edit.display.d.ts +30 -0
- package/lib/cjs/components/datamap/editForm/DataMap.edit.display.js +48 -0
- package/lib/cjs/components/datamap/fixtures/comp1.d.ts +18 -0
- package/lib/cjs/components/datamap/fixtures/comp1.js +15 -0
- package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +87 -0
- package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.js +85 -0
- package/lib/cjs/components/datamap/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/datamap/fixtures/index.js +10 -0
- package/lib/cjs/components/datetime/DateTime.d.ts +16 -0
- package/lib/cjs/components/datetime/DateTime.form.d.ts +3 -0
- package/lib/cjs/components/datetime/DateTime.form.js +40 -0
- package/lib/cjs/components/datetime/DateTime.js +145 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.data.d.ts +24 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.data.js +23 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +61 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +75 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.display.d.ts +128 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.display.js +100 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.time.d.ts +9 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.time.js +36 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.d.ts +40 -0
- package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +84 -0
- package/lib/cjs/components/datetime/fixtures/comp1.d.ts +45 -0
- package/lib/cjs/components/datetime/fixtures/comp1.js +44 -0
- package/lib/cjs/components/datetime/fixtures/comp10.d.ts +102 -0
- package/lib/cjs/components/datetime/fixtures/comp10.js +86 -0
- package/lib/cjs/components/datetime/fixtures/comp11.d.ts +58 -0
- package/lib/cjs/components/datetime/fixtures/comp11.js +55 -0
- package/lib/cjs/components/datetime/fixtures/comp12.d.ts +57 -0
- package/lib/cjs/components/datetime/fixtures/comp12.js +55 -0
- package/lib/cjs/components/datetime/fixtures/comp2.d.ts +42 -0
- package/lib/cjs/components/datetime/fixtures/comp2.js +43 -0
- package/lib/cjs/components/datetime/fixtures/comp3.d.ts +51 -0
- package/lib/cjs/components/datetime/fixtures/comp3.js +40 -0
- package/lib/cjs/components/datetime/fixtures/comp5.d.ts +57 -0
- package/lib/cjs/components/datetime/fixtures/comp5.js +48 -0
- package/lib/cjs/components/datetime/fixtures/comp6.d.ts +55 -0
- package/lib/cjs/components/datetime/fixtures/comp6.js +49 -0
- package/lib/cjs/components/datetime/fixtures/comp7.d.ts +59 -0
- package/lib/cjs/components/datetime/fixtures/comp7.js +53 -0
- package/lib/cjs/components/datetime/fixtures/comp8.d.ts +59 -0
- package/lib/cjs/components/datetime/fixtures/comp8.js +52 -0
- package/lib/cjs/components/datetime/fixtures/comp9.d.ts +64 -0
- package/lib/cjs/components/datetime/fixtures/comp9.js +95 -0
- package/lib/cjs/components/datetime/fixtures/index.d.ts +12 -0
- package/lib/cjs/components/datetime/fixtures/index.js +28 -0
- package/lib/cjs/components/datetime/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/datetime/fixtures/values.js +6 -0
- package/lib/cjs/components/day/Day.d.ts +143 -0
- package/lib/cjs/components/day/Day.form.d.ts +3 -0
- package/lib/cjs/components/day/Day.form.js +47 -0
- package/lib/cjs/components/day/Day.js +535 -0
- package/lib/cjs/components/day/editForm/Day.edit.data.d.ts +5 -0
- package/lib/cjs/components/day/editForm/Day.edit.data.js +8 -0
- package/lib/cjs/components/day/editForm/Day.edit.day.d.ts +40 -0
- package/lib/cjs/components/day/editForm/Day.edit.day.js +48 -0
- package/lib/cjs/components/day/editForm/Day.edit.display.d.ts +40 -0
- package/lib/cjs/components/day/editForm/Day.edit.display.js +46 -0
- package/lib/cjs/components/day/editForm/Day.edit.month.d.ts +40 -0
- package/lib/cjs/components/day/editForm/Day.edit.month.js +40 -0
- package/lib/cjs/components/day/editForm/Day.edit.validation.d.ts +29 -0
- package/lib/cjs/components/day/editForm/Day.edit.validation.js +54 -0
- package/lib/cjs/components/day/editForm/Day.edit.year.d.ts +40 -0
- package/lib/cjs/components/day/editForm/Day.edit.year.js +58 -0
- package/lib/cjs/components/day/fixtures/comp1.d.ts +46 -0
- package/lib/cjs/components/day/fixtures/comp1.js +39 -0
- package/lib/cjs/components/day/fixtures/comp2.d.ts +46 -0
- package/lib/cjs/components/day/fixtures/comp2.js +39 -0
- package/lib/cjs/components/day/fixtures/comp3.d.ts +48 -0
- package/lib/cjs/components/day/fixtures/comp3.js +41 -0
- package/lib/cjs/components/day/fixtures/comp4.d.ts +53 -0
- package/lib/cjs/components/day/fixtures/comp4.js +56 -0
- package/lib/cjs/components/day/fixtures/index.d.ts +5 -0
- package/lib/cjs/components/day/fixtures/index.js +14 -0
- package/lib/cjs/components/day/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/day/fixtures/values.js +6 -0
- package/lib/cjs/components/editgrid/EditGrid.d.ts +98 -0
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +3 -0
- package/lib/cjs/components/editgrid/EditGrid.form.js +33 -0
- package/lib/cjs/components/editgrid/EditGrid.js +1162 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +18 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.js +20 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +82 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +58 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +58 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +131 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +29 -0
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.js +34 -0
- package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +34 -0
- package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.js +36 -0
- package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +327 -0
- package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.js +220 -0
- package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +77 -0
- package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +84 -0
- package/lib/cjs/components/editgrid/fixtures/comp1.d.ts +89 -0
- package/lib/cjs/components/editgrid/fixtures/comp1.js +128 -0
- package/lib/cjs/components/editgrid/fixtures/comp10.d.ts +49 -0
- package/lib/cjs/components/editgrid/fixtures/comp10.js +48 -0
- package/lib/cjs/components/editgrid/fixtures/comp11.d.ts +53 -0
- package/lib/cjs/components/editgrid/fixtures/comp11.js +50 -0
- package/lib/cjs/components/editgrid/fixtures/comp12.d.ts +57 -0
- package/lib/cjs/components/editgrid/fixtures/comp12.js +50 -0
- package/lib/cjs/components/editgrid/fixtures/comp13.d.ts +64 -0
- package/lib/cjs/components/editgrid/fixtures/comp13.js +64 -0
- package/lib/cjs/components/editgrid/fixtures/comp14.d.ts +88 -0
- package/lib/cjs/components/editgrid/fixtures/comp14.js +84 -0
- package/lib/cjs/components/editgrid/fixtures/comp2.d.ts +112 -0
- package/lib/cjs/components/editgrid/fixtures/comp2.js +114 -0
- package/lib/cjs/components/editgrid/fixtures/comp3.d.ts +27 -0
- package/lib/cjs/components/editgrid/fixtures/comp3.js +28 -0
- package/lib/cjs/components/editgrid/fixtures/comp4.d.ts +23 -0
- package/lib/cjs/components/editgrid/fixtures/comp4.js +24 -0
- package/lib/cjs/components/editgrid/fixtures/comp5.d.ts +19 -0
- package/lib/cjs/components/editgrid/fixtures/comp5.js +22 -0
- package/lib/cjs/components/editgrid/fixtures/comp6.d.ts +50 -0
- package/lib/cjs/components/editgrid/fixtures/comp6.js +58 -0
- package/lib/cjs/components/editgrid/fixtures/comp7.d.ts +129 -0
- package/lib/cjs/components/editgrid/fixtures/comp7.js +123 -0
- package/lib/cjs/components/editgrid/fixtures/comp8.d.ts +148 -0
- package/lib/cjs/components/editgrid/fixtures/comp8.js +156 -0
- package/lib/cjs/components/editgrid/fixtures/comp9.d.ts +86 -0
- package/lib/cjs/components/editgrid/fixtures/comp9.js +62 -0
- package/lib/cjs/components/editgrid/fixtures/index.d.ts +17 -0
- package/lib/cjs/components/editgrid/fixtures/index.js +38 -0
- package/lib/cjs/components/email/Email.d.ts +4 -0
- package/lib/cjs/components/email/Email.form.d.ts +3 -0
- package/lib/cjs/components/email/Email.form.js +21 -0
- package/lib/cjs/components/email/Email.js +54 -0
- package/lib/cjs/components/email/editForm/Email.edit.display.d.ts +5 -0
- package/lib/cjs/components/email/editForm/Email.edit.display.js +20 -0
- package/lib/cjs/components/email/editForm/Email.edit.validation.d.ts +24 -0
- package/lib/cjs/components/email/editForm/Email.edit.validation.js +28 -0
- package/lib/cjs/components/email/fixtures/comp1.d.ts +26 -0
- package/lib/cjs/components/email/fixtures/comp1.js +26 -0
- package/lib/cjs/components/email/fixtures/comp2.d.ts +23 -0
- package/lib/cjs/components/email/fixtures/comp2.js +13 -0
- package/lib/cjs/components/email/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/email/fixtures/index.js +10 -0
- package/lib/cjs/components/email/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/email/fixtures/values.js +6 -0
- package/lib/cjs/components/fieldset/Fieldset.d.ts +13 -0
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +3 -0
- package/lib/cjs/components/fieldset/Fieldset.form.js +16 -0
- package/lib/cjs/components/fieldset/Fieldset.js +43 -0
- package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +33 -0
- package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +44 -0
- package/lib/cjs/components/fieldset/fixtures/comp1.d.ts +46 -0
- package/lib/cjs/components/fieldset/fixtures/comp1.js +81 -0
- package/lib/cjs/components/fieldset/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/fieldset/fixtures/index.js +8 -0
- package/lib/cjs/components/file/File.d.ts +59 -0
- package/lib/cjs/components/file/File.form.d.ts +3 -0
- package/lib/cjs/components/file/File.form.js +33 -0
- package/lib/cjs/components/file/File.js +752 -0
- package/lib/cjs/components/file/editForm/File.edit.data.d.ts +5 -0
- package/lib/cjs/components/file/editForm/File.edit.data.js +8 -0
- package/lib/cjs/components/file/editForm/File.edit.display.d.ts +5 -0
- package/lib/cjs/components/file/editForm/File.edit.display.js +8 -0
- package/lib/cjs/components/file/editForm/File.edit.file.d.ts +213 -0
- package/lib/cjs/components/file/editForm/File.edit.file.js +261 -0
- package/lib/cjs/components/file/editForm/File.edit.validation.d.ts +5 -0
- package/lib/cjs/components/file/editForm/File.edit.validation.js +12 -0
- package/lib/cjs/components/file/fixtures/comp1.d.ts +15 -0
- package/lib/cjs/components/file/fixtures/comp1.js +18 -0
- package/lib/cjs/components/file/fixtures/comp2.d.ts +35 -0
- package/lib/cjs/components/file/fixtures/comp2.js +31 -0
- package/lib/cjs/components/file/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/file/fixtures/index.js +10 -0
- package/lib/cjs/components/file/fixtures/values.d.ts +10 -0
- package/lib/cjs/components/file/fixtures/values.js +15 -0
- package/lib/cjs/components/form/Form.d.ts +94 -0
- package/lib/cjs/components/form/Form.form.d.ts +3 -0
- package/lib/cjs/components/form/Form.form.js +30 -0
- package/lib/cjs/components/form/Form.js +727 -0
- package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +82 -0
- package/lib/cjs/components/form/editForm/Form.edit.data.js +21 -0
- package/lib/cjs/components/form/editForm/Form.edit.display.d.ts +5 -0
- package/lib/cjs/components/form/editForm/Form.edit.display.js +29 -0
- package/lib/cjs/components/form/editForm/Form.edit.form.d.ts +89 -0
- package/lib/cjs/components/form/editForm/Form.edit.form.js +75 -0
- package/lib/cjs/components/form/fixtures/comp1.d.ts +45 -0
- package/lib/cjs/components/form/fixtures/comp1.js +80 -0
- package/lib/cjs/components/form/fixtures/comp2.d.ts +14 -0
- package/lib/cjs/components/form/fixtures/comp2.js +15 -0
- package/lib/cjs/components/form/fixtures/comp3.d.ts +187 -0
- package/lib/cjs/components/form/fixtures/comp3.js +170 -0
- package/lib/cjs/components/form/fixtures/comp4.d.ts +107 -0
- package/lib/cjs/components/form/fixtures/comp4.js +91 -0
- package/lib/cjs/components/form/fixtures/comp5.d.ts +42 -0
- package/lib/cjs/components/form/fixtures/comp5.js +45 -0
- package/lib/cjs/components/form/fixtures/comp6.d.ts +74 -0
- package/lib/cjs/components/form/fixtures/comp6.js +94 -0
- package/lib/cjs/components/form/fixtures/formModalEdit.d.ts +42 -0
- package/lib/cjs/components/form/fixtures/formModalEdit.js +51 -0
- package/lib/cjs/components/form/fixtures/index.d.ts +8 -0
- package/lib/cjs/components/form/fixtures/index.js +20 -0
- package/lib/cjs/components/form/fixtures/values.d.ts +6 -0
- package/lib/cjs/components/form/fixtures/values.js +9 -0
- package/lib/cjs/components/hidden/Hidden.d.ts +25 -0
- package/lib/cjs/components/hidden/Hidden.form.d.ts +3 -0
- package/lib/cjs/components/hidden/Hidden.form.js +29 -0
- package/lib/cjs/components/hidden/Hidden.js +60 -0
- package/lib/cjs/components/hidden/editForm/Hidden.edit.data.d.ts +5 -0
- package/lib/cjs/components/hidden/editForm/Hidden.edit.data.js +16 -0
- package/lib/cjs/components/hidden/editForm/Hidden.edit.display.d.ts +5 -0
- package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +44 -0
- package/lib/cjs/components/hidden/fixtures/comp1.d.ts +18 -0
- package/lib/cjs/components/hidden/fixtures/comp1.js +18 -0
- package/lib/cjs/components/hidden/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/hidden/fixtures/index.js +8 -0
- package/lib/cjs/components/hidden/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/hidden/fixtures/values.js +6 -0
- package/lib/cjs/components/html/HTML.d.ts +16 -0
- package/lib/cjs/components/html/HTML.form.d.ts +3 -0
- package/lib/cjs/components/html/HTML.form.js +29 -0
- package/lib/cjs/components/html/HTML.js +89 -0
- package/lib/cjs/components/html/editForm/HTML.edit.display.d.ts +77 -0
- package/lib/cjs/components/html/editForm/HTML.edit.display.js +100 -0
- package/lib/cjs/components/html/editForm/HTML.edit.logic.d.ts +48 -0
- package/lib/cjs/components/html/editForm/HTML.edit.logic.js +100 -0
- package/lib/cjs/components/html/fixtures/comp1.d.ts +19 -0
- package/lib/cjs/components/html/fixtures/comp1.js +22 -0
- package/lib/cjs/components/html/fixtures/comp2.d.ts +21 -0
- package/lib/cjs/components/html/fixtures/comp2.js +24 -0
- package/lib/cjs/components/html/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/html/fixtures/index.js +10 -0
- package/lib/cjs/components/index.d.ts +100 -0
- package/lib/cjs/components/index.js +104 -0
- package/lib/cjs/components/number/Number.d.ts +31 -0
- package/lib/cjs/components/number/Number.form.d.ts +3 -0
- package/lib/cjs/components/number/Number.form.js +26 -0
- package/lib/cjs/components/number/Number.js +192 -0
- package/lib/cjs/components/number/editForm/Number.edit.data.d.ts +18 -0
- package/lib/cjs/components/number/editForm/Number.edit.data.js +32 -0
- package/lib/cjs/components/number/editForm/Number.edit.display.d.ts +5 -0
- package/lib/cjs/components/number/editForm/Number.edit.display.js +24 -0
- package/lib/cjs/components/number/editForm/Number.edit.validation.d.ts +20 -0
- package/lib/cjs/components/number/editForm/Number.edit.validation.js +46 -0
- package/lib/cjs/components/number/fixtures/comp1.d.ts +33 -0
- package/lib/cjs/components/number/fixtures/comp1.js +32 -0
- package/lib/cjs/components/number/fixtures/comp2.d.ts +32 -0
- package/lib/cjs/components/number/fixtures/comp2.js +31 -0
- package/lib/cjs/components/number/fixtures/comp3.d.ts +14 -0
- package/lib/cjs/components/number/fixtures/comp3.js +15 -0
- package/lib/cjs/components/number/fixtures/comp4.d.ts +14 -0
- package/lib/cjs/components/number/fixtures/comp4.js +15 -0
- package/lib/cjs/components/number/fixtures/comp5.d.ts +20 -0
- package/lib/cjs/components/number/fixtures/comp5.js +20 -0
- package/lib/cjs/components/number/fixtures/comp6.d.ts +40 -0
- package/lib/cjs/components/number/fixtures/comp6.js +27 -0
- package/lib/cjs/components/number/fixtures/comp7.d.ts +15 -0
- package/lib/cjs/components/number/fixtures/comp7.js +16 -0
- package/lib/cjs/components/number/fixtures/index.d.ts +8 -0
- package/lib/cjs/components/number/fixtures/index.js +20 -0
- package/lib/cjs/components/number/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/number/fixtures/values.js +11 -0
- package/lib/cjs/components/panel/Panel.d.ts +14 -0
- package/lib/cjs/components/panel/Panel.form.d.ts +3 -0
- package/lib/cjs/components/panel/Panel.form.js +21 -0
- package/lib/cjs/components/panel/Panel.js +59 -0
- package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +75 -0
- package/lib/cjs/components/panel/editForm/Panel.edit.conditional.js +42 -0
- package/lib/cjs/components/panel/editForm/Panel.edit.display.d.ts +228 -0
- package/lib/cjs/components/panel/editForm/Panel.edit.display.js +213 -0
- package/lib/cjs/components/panel/fixtures/comp1.d.ts +46 -0
- package/lib/cjs/components/panel/fixtures/comp1.js +80 -0
- package/lib/cjs/components/panel/fixtures/comp2.d.ts +80 -0
- package/lib/cjs/components/panel/fixtures/comp2.js +69 -0
- package/lib/cjs/components/panel/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/panel/fixtures/index.js +10 -0
- package/lib/cjs/components/password/Password.d.ts +3 -0
- package/lib/cjs/components/password/Password.form.d.ts +3 -0
- package/lib/cjs/components/password/Password.form.js +26 -0
- package/lib/cjs/components/password/Password.js +40 -0
- package/lib/cjs/components/password/editForm/Password.edit.data.d.ts +18 -0
- package/lib/cjs/components/password/editForm/Password.edit.data.js +48 -0
- package/lib/cjs/components/password/editForm/Password.edit.display.d.ts +5 -0
- package/lib/cjs/components/password/editForm/Password.edit.display.js +16 -0
- package/lib/cjs/components/password/editForm/Password.edit.validation.d.ts +5 -0
- package/lib/cjs/components/password/editForm/Password.edit.validation.js +16 -0
- package/lib/cjs/components/password/fixtures/comp1.d.ts +22 -0
- package/lib/cjs/components/password/fixtures/comp1.js +22 -0
- package/lib/cjs/components/password/fixtures/comp2.d.ts +27 -0
- package/lib/cjs/components/password/fixtures/comp2.js +29 -0
- package/lib/cjs/components/password/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/password/fixtures/index.js +10 -0
- package/lib/cjs/components/password/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/password/fixtures/values.js +6 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.d.ts +3 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +3 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +29 -0
- package/lib/cjs/components/phonenumber/PhoneNumber.js +33 -0
- package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +5 -0
- package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +24 -0
- package/lib/cjs/components/phonenumber/fixtures/comp1.d.ts +27 -0
- package/lib/cjs/components/phonenumber/fixtures/comp1.js +27 -0
- package/lib/cjs/components/phonenumber/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/phonenumber/fixtures/index.js +8 -0
- package/lib/cjs/components/phonenumber/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/phonenumber/fixtures/values.js +6 -0
- package/lib/cjs/components/radio/Radio.d.ts +44 -0
- package/lib/cjs/components/radio/Radio.form.d.ts +3 -0
- package/lib/cjs/components/radio/Radio.form.js +26 -0
- package/lib/cjs/components/radio/Radio.js +295 -0
- package/lib/cjs/components/radio/editForm/Radio.edit.data.d.ts +134 -0
- package/lib/cjs/components/radio/editForm/Radio.edit.data.js +85 -0
- package/lib/cjs/components/radio/editForm/Radio.edit.display.d.ts +40 -0
- package/lib/cjs/components/radio/editForm/Radio.edit.display.js +34 -0
- package/lib/cjs/components/radio/editForm/Radio.edit.validation.d.ts +18 -0
- package/lib/cjs/components/radio/editForm/Radio.edit.validation.js +20 -0
- package/lib/cjs/components/radio/fixtures/comp1.d.ts +28 -0
- package/lib/cjs/components/radio/fixtures/comp1.js +42 -0
- package/lib/cjs/components/radio/fixtures/comp2.d.ts +85 -0
- package/lib/cjs/components/radio/fixtures/comp2.js +86 -0
- package/lib/cjs/components/radio/fixtures/comp3.d.ts +85 -0
- package/lib/cjs/components/radio/fixtures/comp3.js +90 -0
- package/lib/cjs/components/radio/fixtures/comp4.d.ts +19 -0
- package/lib/cjs/components/radio/fixtures/comp4.js +27 -0
- package/lib/cjs/components/radio/fixtures/comp5.d.ts +39 -0
- package/lib/cjs/components/radio/fixtures/comp5.js +35 -0
- package/lib/cjs/components/radio/fixtures/comp6.d.ts +38 -0
- package/lib/cjs/components/radio/fixtures/comp6.js +33 -0
- package/lib/cjs/components/radio/fixtures/comp7.d.ts +23 -0
- package/lib/cjs/components/radio/fixtures/comp7.js +21 -0
- package/lib/cjs/components/radio/fixtures/comp8.d.ts +118 -0
- package/lib/cjs/components/radio/fixtures/comp8.js +113 -0
- package/lib/cjs/components/radio/fixtures/comp9.d.ts +35 -0
- package/lib/cjs/components/radio/fixtures/comp9.js +32 -0
- package/lib/cjs/components/radio/fixtures/index.d.ts +10 -0
- package/lib/cjs/components/radio/fixtures/index.js +24 -0
- package/lib/cjs/components/radio/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/radio/fixtures/values.js +7 -0
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +22 -0
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -0
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +32 -0
- package/lib/cjs/components/recaptcha/ReCaptcha.js +140 -0
- package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +44 -0
- package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +108 -0
- package/lib/cjs/components/recaptcha/fixtures/comp1.d.ts +8 -0
- package/lib/cjs/components/recaptcha/fixtures/comp1.js +9 -0
- package/lib/cjs/components/recaptcha/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/recaptcha/fixtures/index.js +8 -0
- package/lib/cjs/components/resource/Resource.d.ts +3 -0
- package/lib/cjs/components/resource/Resource.form.d.ts +3 -0
- package/lib/cjs/components/resource/Resource.form.js +16 -0
- package/lib/cjs/components/resource/Resource.js +40 -0
- package/lib/cjs/components/resource/editForm/Resource.edit.display.d.ts +173 -0
- package/lib/cjs/components/resource/editForm/Resource.edit.display.js +102 -0
- package/lib/cjs/components/resource/fixtures/comp1.d.ts +30 -0
- package/lib/cjs/components/resource/fixtures/comp1.js +30 -0
- package/lib/cjs/components/resource/fixtures/comp2.d.ts +35 -0
- package/lib/cjs/components/resource/fixtures/comp2.js +31 -0
- package/lib/cjs/components/resource/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/resource/fixtures/index.js +10 -0
- package/lib/cjs/components/select/Select.d.ts +122 -0
- package/lib/cjs/components/select/Select.form.d.ts +3 -0
- package/lib/cjs/components/select/Select.form.js +26 -0
- package/lib/cjs/components/select/Select.js +1463 -0
- package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +1039 -0
- package/lib/cjs/components/select/editForm/Select.edit.data.js +629 -0
- package/lib/cjs/components/select/editForm/Select.edit.display.d.ts +27 -0
- package/lib/cjs/components/select/editForm/Select.edit.display.js +28 -0
- package/lib/cjs/components/select/editForm/Select.edit.validation.d.ts +30 -0
- package/lib/cjs/components/select/editForm/Select.edit.validation.js +35 -0
- package/lib/cjs/components/select/fixtures/comp1.d.ts +40 -0
- package/lib/cjs/components/select/fixtures/comp1.js +66 -0
- package/lib/cjs/components/select/fixtures/comp10.d.ts +41 -0
- package/lib/cjs/components/select/fixtures/comp10.js +32 -0
- package/lib/cjs/components/select/fixtures/comp11.d.ts +28 -0
- package/lib/cjs/components/select/fixtures/comp11.js +24 -0
- package/lib/cjs/components/select/fixtures/comp12.d.ts +53 -0
- package/lib/cjs/components/select/fixtures/comp12.js +29 -0
- package/lib/cjs/components/select/fixtures/comp13.d.ts +28 -0
- package/lib/cjs/components/select/fixtures/comp13.js +31 -0
- package/lib/cjs/components/select/fixtures/comp14.d.ts +40 -0
- package/lib/cjs/components/select/fixtures/comp14.js +27 -0
- package/lib/cjs/components/select/fixtures/comp15.d.ts +50 -0
- package/lib/cjs/components/select/fixtures/comp15.js +41 -0
- package/lib/cjs/components/select/fixtures/comp16.d.ts +34 -0
- package/lib/cjs/components/select/fixtures/comp16.js +33 -0
- package/lib/cjs/components/select/fixtures/comp17.d.ts +51 -0
- package/lib/cjs/components/select/fixtures/comp17.js +43 -0
- package/lib/cjs/components/select/fixtures/comp18.d.ts +49 -0
- package/lib/cjs/components/select/fixtures/comp18.js +42 -0
- package/lib/cjs/components/select/fixtures/comp2.d.ts +41 -0
- package/lib/cjs/components/select/fixtures/comp2.js +67 -0
- package/lib/cjs/components/select/fixtures/comp3.d.ts +35 -0
- package/lib/cjs/components/select/fixtures/comp3.js +209 -0
- package/lib/cjs/components/select/fixtures/comp4.d.ts +103 -0
- package/lib/cjs/components/select/fixtures/comp4.js +106 -0
- package/lib/cjs/components/select/fixtures/comp5.d.ts +21 -0
- package/lib/cjs/components/select/fixtures/comp5.js +28 -0
- package/lib/cjs/components/select/fixtures/comp6.d.ts +20 -0
- package/lib/cjs/components/select/fixtures/comp6.js +30 -0
- package/lib/cjs/components/select/fixtures/comp7.d.ts +63 -0
- package/lib/cjs/components/select/fixtures/comp7.js +46 -0
- package/lib/cjs/components/select/fixtures/comp8.d.ts +72 -0
- package/lib/cjs/components/select/fixtures/comp8.js +37 -0
- package/lib/cjs/components/select/fixtures/comp9.d.ts +88 -0
- package/lib/cjs/components/select/fixtures/comp9.js +67 -0
- package/lib/cjs/components/select/fixtures/index.d.ts +19 -0
- package/lib/cjs/components/select/fixtures/index.js +43 -0
- package/lib/cjs/components/select/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/select/fixtures/values.js +7 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +15 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +3 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +25 -0
- package/lib/cjs/components/selectboxes/SelectBoxes.js +214 -0
- package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +9 -0
- package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +36 -0
- package/lib/cjs/components/selectboxes/fixtures/comp1.d.ts +24 -0
- package/lib/cjs/components/selectboxes/fixtures/comp1.js +54 -0
- package/lib/cjs/components/selectboxes/fixtures/comp2.d.ts +24 -0
- package/lib/cjs/components/selectboxes/fixtures/comp2.js +54 -0
- package/lib/cjs/components/selectboxes/fixtures/comp3.d.ts +23 -0
- package/lib/cjs/components/selectboxes/fixtures/comp3.js +21 -0
- package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +63 -0
- package/lib/cjs/components/selectboxes/fixtures/comp4.js +66 -0
- package/lib/cjs/components/selectboxes/fixtures/comp5.d.ts +37 -0
- package/lib/cjs/components/selectboxes/fixtures/comp5.js +33 -0
- package/lib/cjs/components/selectboxes/fixtures/index.d.ts +6 -0
- package/lib/cjs/components/selectboxes/fixtures/index.js +16 -0
- package/lib/cjs/components/selectboxes/fixtures/values.d.ts +6 -0
- package/lib/cjs/components/selectboxes/fixtures/values.js +24 -0
- package/lib/cjs/components/signature/Signature.d.ts +26 -0
- package/lib/cjs/components/signature/Signature.form.d.ts +3 -0
- package/lib/cjs/components/signature/Signature.form.js +26 -0
- package/lib/cjs/components/signature/Signature.js +247 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.data.d.ts +5 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.data.js +16 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.display.d.ts +51 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.display.js +71 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.validation.d.ts +5 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.validation.js +12 -0
- package/lib/cjs/components/signature/fixtures/comp1.d.ts +30 -0
- package/lib/cjs/components/signature/fixtures/comp1.js +30 -0
- package/lib/cjs/components/signature/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/signature/fixtures/index.js +8 -0
- package/lib/cjs/components/signature/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/signature/fixtures/values.js +7 -0
- package/lib/cjs/components/survey/Survey.d.ts +16 -0
- package/lib/cjs/components/survey/Survey.form.d.ts +3 -0
- package/lib/cjs/components/survey/Survey.form.js +26 -0
- package/lib/cjs/components/survey/Survey.js +147 -0
- package/lib/cjs/components/survey/editForm/Survey.edit.data.d.ts +44 -0
- package/lib/cjs/components/survey/editForm/Survey.edit.data.js +72 -0
- package/lib/cjs/components/survey/editForm/Survey.edit.display.d.ts +5 -0
- package/lib/cjs/components/survey/editForm/Survey.edit.display.js +8 -0
- package/lib/cjs/components/survey/editForm/Survey.edit.validation.d.ts +5 -0
- package/lib/cjs/components/survey/editForm/Survey.edit.validation.js +8 -0
- package/lib/cjs/components/survey/fixtures/comp1.d.ts +31 -0
- package/lib/cjs/components/survey/fixtures/comp1.js +55 -0
- package/lib/cjs/components/survey/fixtures/comp2.d.ts +31 -0
- package/lib/cjs/components/survey/fixtures/comp2.js +55 -0
- package/lib/cjs/components/survey/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/survey/fixtures/index.js +10 -0
- package/lib/cjs/components/survey/fixtures/values.d.ts +5 -0
- package/lib/cjs/components/survey/fixtures/values.js +12 -0
- package/lib/cjs/components/table/Table.d.ts +21 -0
- package/lib/cjs/components/table/Table.form.d.ts +3 -0
- package/lib/cjs/components/table/Table.form.js +16 -0
- package/lib/cjs/components/table/Table.js +171 -0
- package/lib/cjs/components/table/editForm/Table.edit.display.d.ts +55 -0
- package/lib/cjs/components/table/editForm/Table.edit.display.js +111 -0
- package/lib/cjs/components/table/fixtures/comp1.d.ts +53 -0
- package/lib/cjs/components/table/fixtures/comp1.js +237 -0
- package/lib/cjs/components/table/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/table/fixtures/index.js +8 -0
- package/lib/cjs/components/tabs/Tabs.d.ts +28 -0
- package/lib/cjs/components/tabs/Tabs.form.d.ts +3 -0
- package/lib/cjs/components/tabs/Tabs.form.js +16 -0
- package/lib/cjs/components/tabs/Tabs.js +203 -0
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.d.ts +49 -0
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +68 -0
- package/lib/cjs/components/tabs/fixtures/comp1.d.ts +23 -0
- package/lib/cjs/components/tabs/fixtures/comp1.js +33 -0
- package/lib/cjs/components/tabs/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/tabs/fixtures/index.js +8 -0
- package/lib/cjs/components/tags/Tags.d.ts +19 -0
- package/lib/cjs/components/tags/Tags.form.d.ts +3 -0
- package/lib/cjs/components/tags/Tags.form.js +16 -0
- package/lib/cjs/components/tags/Tags.js +164 -0
- package/lib/cjs/components/tags/editForm/Tags.edit.data.d.ts +51 -0
- package/lib/cjs/components/tags/editForm/Tags.edit.data.js +39 -0
- package/lib/cjs/components/tags/fixtures/comp1.d.ts +20 -0
- package/lib/cjs/components/tags/fixtures/comp1.js +20 -0
- package/lib/cjs/components/tags/fixtures/comp2.d.ts +10 -0
- package/lib/cjs/components/tags/fixtures/comp2.js +11 -0
- package/lib/cjs/components/tags/fixtures/comp3.d.ts +23 -0
- package/lib/cjs/components/tags/fixtures/comp3.js +20 -0
- package/lib/cjs/components/tags/fixtures/comp4.d.ts +9 -0
- package/lib/cjs/components/tags/fixtures/comp4.js +10 -0
- package/lib/cjs/components/tags/fixtures/comp5.d.ts +24 -0
- package/lib/cjs/components/tags/fixtures/comp5.js +24 -0
- package/lib/cjs/components/tags/fixtures/index.d.ts +6 -0
- package/lib/cjs/components/tags/fixtures/index.js +16 -0
- package/lib/cjs/components/tags/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/tags/fixtures/values.js +6 -0
- package/lib/cjs/components/textarea/TextArea.d.ts +36 -0
- package/lib/cjs/components/textarea/TextArea.form.d.ts +3 -0
- package/lib/cjs/components/textarea/TextArea.form.js +21 -0
- package/lib/cjs/components/textarea/TextArea.js +538 -0
- package/lib/cjs/components/textarea/editForm/TextArea.edit.display.d.ts +355 -0
- package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +263 -0
- package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.d.ts +10 -0
- package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.js +22 -0
- package/lib/cjs/components/textarea/fixtures/comp1.d.ts +31 -0
- package/lib/cjs/components/textarea/fixtures/comp1.js +31 -0
- package/lib/cjs/components/textarea/fixtures/comp2.d.ts +29 -0
- package/lib/cjs/components/textarea/fixtures/comp2.js +29 -0
- package/lib/cjs/components/textarea/fixtures/comp3.d.ts +27 -0
- package/lib/cjs/components/textarea/fixtures/comp3.js +29 -0
- package/lib/cjs/components/textarea/fixtures/index.d.ts +4 -0
- package/lib/cjs/components/textarea/fixtures/index.js +12 -0
- package/lib/cjs/components/textarea/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/textarea/fixtures/values.js +6 -0
- package/lib/cjs/components/textfield/TextField.d.ts +38 -0
- package/lib/cjs/components/textfield/TextField.form.d.ts +3 -0
- package/lib/cjs/components/textfield/TextField.form.js +26 -0
- package/lib/cjs/components/textfield/TextField.js +243 -0
- package/lib/cjs/components/textfield/editForm/TextField.edit.data.d.ts +46 -0
- package/lib/cjs/components/textfield/editForm/TextField.edit.data.js +58 -0
- package/lib/cjs/components/textfield/editForm/TextField.edit.display.d.ts +248 -0
- package/lib/cjs/components/textfield/editForm/TextField.edit.display.js +208 -0
- package/lib/cjs/components/textfield/editForm/TextField.edit.validation.d.ts +10 -0
- package/lib/cjs/components/textfield/editForm/TextField.edit.validation.js +49 -0
- package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +47 -0
- package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +48 -0
- package/lib/cjs/components/textfield/fixtures/comp1.d.ts +33 -0
- package/lib/cjs/components/textfield/fixtures/comp1.js +33 -0
- package/lib/cjs/components/textfield/fixtures/comp2.d.ts +33 -0
- package/lib/cjs/components/textfield/fixtures/comp2.js +33 -0
- package/lib/cjs/components/textfield/fixtures/comp3.d.ts +33 -0
- package/lib/cjs/components/textfield/fixtures/comp3.js +33 -0
- package/lib/cjs/components/textfield/fixtures/comp4.d.ts +23 -0
- package/lib/cjs/components/textfield/fixtures/comp4.js +27 -0
- package/lib/cjs/components/textfield/fixtures/comp5.d.ts +12 -0
- package/lib/cjs/components/textfield/fixtures/comp5.js +13 -0
- package/lib/cjs/components/textfield/fixtures/comp6.d.ts +25 -0
- package/lib/cjs/components/textfield/fixtures/comp6.js +21 -0
- package/lib/cjs/components/textfield/fixtures/comp7.d.ts +37 -0
- package/lib/cjs/components/textfield/fixtures/comp7.js +38 -0
- package/lib/cjs/components/textfield/fixtures/index.d.ts +9 -0
- package/lib/cjs/components/textfield/fixtures/index.js +22 -0
- package/lib/cjs/components/textfield/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/textfield/fixtures/values.js +7 -0
- package/lib/cjs/components/time/Time.d.ts +16 -0
- package/lib/cjs/components/time/Time.form.d.ts +3 -0
- package/lib/cjs/components/time/Time.form.js +21 -0
- package/lib/cjs/components/time/Time.js +148 -0
- package/lib/cjs/components/time/editForm/Time.edit.data.d.ts +10 -0
- package/lib/cjs/components/time/editForm/Time.edit.data.js +13 -0
- package/lib/cjs/components/time/editForm/Time.edit.display.d.ts +52 -0
- package/lib/cjs/components/time/editForm/Time.edit.display.js +42 -0
- package/lib/cjs/components/time/fixtures/comp1.d.ts +24 -0
- package/lib/cjs/components/time/fixtures/comp1.js +24 -0
- package/lib/cjs/components/time/fixtures/comp2.d.ts +10 -0
- package/lib/cjs/components/time/fixtures/comp2.js +11 -0
- package/lib/cjs/components/time/fixtures/comp3.d.ts +15 -0
- package/lib/cjs/components/time/fixtures/comp3.js +18 -0
- package/lib/cjs/components/time/fixtures/index.d.ts +6 -0
- package/lib/cjs/components/time/fixtures/index.js +16 -0
- package/lib/cjs/components/time/fixtures/timeForm.d.ts +47 -0
- package/lib/cjs/components/time/fixtures/timeForm.js +52 -0
- package/lib/cjs/components/time/fixtures/timeForm2.d.ts +38 -0
- package/lib/cjs/components/time/fixtures/timeForm2.js +44 -0
- package/lib/cjs/components/time/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/time/fixtures/values.js +7 -0
- package/lib/cjs/components/tree/Node.d.ts +55 -0
- package/lib/cjs/components/tree/Node.js +185 -0
- package/lib/cjs/components/tree/Tree.d.ts +47 -0
- package/lib/cjs/components/tree/Tree.form.d.ts +3 -0
- package/lib/cjs/components/tree/Tree.form.js +16 -0
- package/lib/cjs/components/tree/Tree.js +384 -0
- package/lib/cjs/components/tree/editForm/Tree.edit.data.d.ts +5 -0
- package/lib/cjs/components/tree/editForm/Tree.edit.data.js +9 -0
- package/lib/cjs/components/tree/fixtures/comp1.d.ts +23 -0
- package/lib/cjs/components/tree/fixtures/comp1.js +24 -0
- package/lib/cjs/components/tree/fixtures/comp2.d.ts +116 -0
- package/lib/cjs/components/tree/fixtures/comp2.js +82 -0
- package/lib/cjs/components/tree/fixtures/comp3.d.ts +24 -0
- package/lib/cjs/components/tree/fixtures/comp3.js +25 -0
- package/lib/cjs/components/tree/fixtures/comp4.d.ts +42 -0
- package/lib/cjs/components/tree/fixtures/comp4.js +47 -0
- package/lib/cjs/components/tree/fixtures/index.d.ts +5 -0
- package/lib/cjs/components/tree/fixtures/index.js +14 -0
- package/lib/cjs/components/unknown/Unknown.d.ts +28 -0
- package/lib/cjs/components/unknown/Unknown.form.d.ts +34 -0
- package/lib/cjs/components/unknown/Unknown.form.js +25 -0
- package/lib/cjs/components/unknown/Unknown.js +30 -0
- package/lib/cjs/components/unknown/editForm/Unknown.edit.display.d.ts +24 -0
- package/lib/cjs/components/unknown/editForm/Unknown.edit.display.js +27 -0
- package/lib/cjs/components/unknown/fixtures/comp1.d.ts +7 -0
- package/lib/cjs/components/unknown/fixtures/comp1.js +8 -0
- package/lib/cjs/components/unknown/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/unknown/fixtures/index.js +8 -0
- package/lib/cjs/components/url/Url.d.ts +3 -0
- package/lib/cjs/components/url/Url.form.d.ts +3 -0
- package/lib/cjs/components/url/Url.form.js +26 -0
- package/lib/cjs/components/url/Url.js +39 -0
- package/lib/cjs/components/url/editForm/Url.edit.data.d.ts +5 -0
- package/lib/cjs/components/url/editForm/Url.edit.data.js +8 -0
- package/lib/cjs/components/url/editForm/Url.edit.display.d.ts +5 -0
- package/lib/cjs/components/url/editForm/Url.edit.display.js +20 -0
- package/lib/cjs/components/url/editForm/Url.edit.validation.d.ts +5 -0
- package/lib/cjs/components/url/editForm/Url.edit.validation.js +12 -0
- package/lib/cjs/components/url/fixtures/comp1.d.ts +26 -0
- package/lib/cjs/components/url/fixtures/comp1.js +26 -0
- package/lib/cjs/components/url/fixtures/comp2.d.ts +26 -0
- package/lib/cjs/components/url/fixtures/comp2.js +23 -0
- package/lib/cjs/components/url/fixtures/index.d.ts +3 -0
- package/lib/cjs/components/url/fixtures/index.js +10 -0
- package/lib/cjs/components/url/fixtures/values.d.ts +2 -0
- package/lib/cjs/components/url/fixtures/values.js +6 -0
- package/lib/cjs/components/well/Well.d.ts +13 -0
- package/lib/cjs/components/well/Well.form.d.ts +3 -0
- package/lib/cjs/components/well/Well.form.js +16 -0
- package/lib/cjs/components/well/Well.js +41 -0
- package/lib/cjs/components/well/editForm/Well.edit.display.d.ts +5 -0
- package/lib/cjs/components/well/editForm/Well.edit.display.js +32 -0
- package/lib/cjs/components/well/fixtures/comp1.d.ts +43 -0
- package/lib/cjs/components/well/fixtures/comp1.js +77 -0
- package/lib/cjs/components/well/fixtures/index.d.ts +2 -0
- package/lib/cjs/components/well/fixtures/index.js +8 -0
- package/lib/cjs/displays/Displays.d.ts +18 -0
- package/lib/cjs/displays/Displays.js +29 -0
- package/lib/cjs/displays/index.d.ts +2 -0
- package/lib/cjs/displays/index.js +7 -0
- package/lib/cjs/formio.embed.d.ts +1 -0
- package/lib/cjs/formio.embed.js +4 -0
- package/lib/cjs/formio.form.d.ts +22 -0
- package/lib/cjs/formio.form.js +158 -0
- package/lib/cjs/i18n.d.ts +13 -0
- package/lib/cjs/i18n.js +19 -0
- package/lib/cjs/index.d.ts +4 -0
- package/lib/cjs/index.js +34 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/pdf.image.d.ts +2 -0
- package/lib/cjs/pdf.image.js +94 -0
- package/lib/cjs/polyfills/ElementPolyfill.d.ts +0 -0
- package/lib/cjs/polyfills/ElementPolyfill.js +338 -0
- package/lib/cjs/polyfills/index.d.ts +1 -0
- package/lib/cjs/polyfills/index.js +4 -0
- package/lib/cjs/providers/Providers.d.ts +64 -0
- package/lib/cjs/providers/Providers.js +34 -0
- package/lib/cjs/providers/address/AddressProvider.d.ts +17 -0
- package/lib/cjs/providers/address/AddressProvider.js +61 -0
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +12 -0
- package/lib/cjs/providers/address/AzureAddressProvider.js +31 -0
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +7 -0
- package/lib/cjs/providers/address/CustomAddressProvider.js +26 -0
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +18 -0
- package/lib/cjs/providers/address/GoogleAddressProvider.js +118 -0
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +11 -0
- package/lib/cjs/providers/address/NominatimAddressProvider.js +31 -0
- package/lib/cjs/providers/address/index.d.ts +6 -0
- package/lib/cjs/providers/address/index.js +12 -0
- package/lib/cjs/providers/auth/index.d.ts +2 -0
- package/lib/cjs/providers/auth/index.js +3 -0
- package/lib/cjs/providers/index.d.ts +2 -0
- package/lib/cjs/providers/index.js +7 -0
- package/lib/cjs/providers/processor/fileProcessor.d.ts +2 -0
- package/lib/cjs/providers/processor/fileProcessor.js +44 -0
- package/lib/cjs/providers/storage/azure.d.ts +8 -0
- package/lib/cjs/providers/storage/azure.js +30 -0
- package/lib/cjs/providers/storage/base64.d.ts +10 -0
- package/lib/cjs/providers/storage/base64.js +35 -0
- package/lib/cjs/providers/storage/dropbox.d.ts +8 -0
- package/lib/cjs/providers/storage/dropbox.js +61 -0
- package/lib/cjs/providers/storage/googleDrive.d.ts +8 -0
- package/lib/cjs/providers/storage/googleDrive.js +60 -0
- package/lib/cjs/providers/storage/index.d.ts +15 -0
- package/lib/cjs/providers/storage/index.js +19 -0
- package/lib/cjs/providers/storage/indexeddb.d.ts +11 -0
- package/lib/cjs/providers/storage/indexeddb.js +124 -0
- package/lib/cjs/providers/storage/s3.d.ts +8 -0
- package/lib/cjs/providers/storage/s3.js +50 -0
- package/lib/cjs/providers/storage/uploadAdapter.d.ts +1 -0
- package/lib/cjs/providers/storage/uploadAdapter.js +61 -0
- package/lib/cjs/providers/storage/url.d.ts +11 -0
- package/lib/cjs/providers/storage/url.js +138 -0
- package/lib/cjs/providers/storage/xhr.d.ts +7 -0
- package/lib/cjs/providers/storage/xhr.js +101 -0
- package/lib/cjs/templates/Templates.d.ts +11 -0
- package/lib/cjs/templates/Templates.js +47 -0
- package/lib/cjs/templates/index.d.ts +4 -0
- package/lib/cjs/templates/index.js +9 -0
- package/lib/cjs/translations/en.d.ts +66 -0
- package/lib/cjs/translations/en.js +67 -0
- package/lib/cjs/utils/ChoicesWrapper.d.ts +37 -0
- package/lib/cjs/utils/ChoicesWrapper.js +175 -0
- package/lib/cjs/utils/Evaluator.d.ts +4 -0
- package/lib/cjs/utils/Evaluator.js +98 -0
- package/lib/cjs/utils/builder.d.ts +22 -0
- package/lib/cjs/utils/builder.js +84 -0
- package/lib/cjs/utils/calendarUtils.d.ts +41 -0
- package/lib/cjs/utils/calendarUtils.js +136 -0
- package/lib/cjs/utils/conditionOperators/ConditionOperator.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/ConditionOperator.js +29 -0
- package/lib/cjs/utils/conditionOperators/DateGreaterThan.d.ts +13 -0
- package/lib/cjs/utils/conditionOperators/DateGreaterThan.js +37 -0
- package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.js +18 -0
- package/lib/cjs/utils/conditionOperators/DateLessThan.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/DateLessThan.js +18 -0
- package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.js +18 -0
- package/lib/cjs/utils/conditionOperators/EndsWith.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/EndsWith.js +19 -0
- package/lib/cjs/utils/conditionOperators/GreaterThan.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/GreaterThan.js +19 -0
- package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.js +19 -0
- package/lib/cjs/utils/conditionOperators/Includes.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/Includes.js +19 -0
- package/lib/cjs/utils/conditionOperators/IsDateEqual.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/IsDateEqual.js +18 -0
- package/lib/cjs/utils/conditionOperators/IsEmptyValue.d.ts +9 -0
- package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +30 -0
- package/lib/cjs/utils/conditionOperators/IsEqualTo.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/IsEqualTo.js +30 -0
- package/lib/cjs/utils/conditionOperators/IsNotDateEqual.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/IsNotDateEqual.js +18 -0
- package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.js +18 -0
- package/lib/cjs/utils/conditionOperators/IsNotEqualTo.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/IsNotEqualTo.js +19 -0
- package/lib/cjs/utils/conditionOperators/LessThan.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/LessThan.js +19 -0
- package/lib/cjs/utils/conditionOperators/LessThanOrEqual.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/LessThanOrEqual.js +19 -0
- package/lib/cjs/utils/conditionOperators/NotIncludes.d.ts +4 -0
- package/lib/cjs/utils/conditionOperators/NotIncludes.js +18 -0
- package/lib/cjs/utils/conditionOperators/StartsWith.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/StartsWith.js +19 -0
- package/lib/cjs/utils/conditionOperators/index.d.ts +7 -0
- package/lib/cjs/utils/conditionOperators/index.js +44 -0
- package/lib/cjs/utils/formUtils.d.ts +173 -0
- package/lib/cjs/utils/formUtils.js +583 -0
- package/lib/cjs/utils/index.d.ts +2 -0
- package/lib/cjs/utils/index.js +30 -0
- package/lib/cjs/utils/jsonlogic/operators.d.ts +1 -0
- package/lib/cjs/utils/jsonlogic/operators.js +265 -0
- package/lib/cjs/utils/utils.d.ts +364 -0
- package/lib/cjs/utils/utils.js +1468 -0
- package/lib/cjs/validator/Rules.d.ts +8 -0
- package/lib/cjs/validator/Rules.js +22 -0
- package/lib/cjs/validator/Validator.d.ts +200 -0
- package/lib/cjs/validator/Validator.js +1090 -0
- package/lib/cjs/validator/conjunctions/index.d.ts +7 -0
- package/lib/cjs/validator/conjunctions/index.js +18 -0
- package/lib/cjs/validator/operators/index.d.ts +7 -0
- package/lib/cjs/validator/operators/index.js +18 -0
- package/lib/cjs/validator/quickRules/index.d.ts +7 -0
- package/lib/cjs/validator/quickRules/index.js +18 -0
- package/lib/cjs/validator/rules/Custom.d.ts +6 -0
- package/lib/cjs/validator/rules/Custom.js +25 -0
- package/lib/cjs/validator/rules/Date.d.ts +6 -0
- package/lib/cjs/validator/rules/Date.js +20 -0
- package/lib/cjs/validator/rules/Day.d.ts +6 -0
- package/lib/cjs/validator/rules/Day.js +53 -0
- package/lib/cjs/validator/rules/Email.d.ts +6 -0
- package/lib/cjs/validator/rules/Email.js +19 -0
- package/lib/cjs/validator/rules/JSON.d.ts +6 -0
- package/lib/cjs/validator/rules/JSON.js +24 -0
- package/lib/cjs/validator/rules/Mask.d.ts +1 -0
- package/lib/cjs/validator/rules/Mask.js +28 -0
- package/lib/cjs/validator/rules/Max.d.ts +6 -0
- package/lib/cjs/validator/rules/Max.js +16 -0
- package/lib/cjs/validator/rules/MaxDate.d.ts +1 -0
- package/lib/cjs/validator/rules/MaxDate.js +33 -0
- package/lib/cjs/validator/rules/MaxLength.d.ts +6 -0
- package/lib/cjs/validator/rules/MaxLength.js +15 -0
- package/lib/cjs/validator/rules/MaxWords.d.ts +6 -0
- package/lib/cjs/validator/rules/MaxWords.js +15 -0
- package/lib/cjs/validator/rules/MaxYear.d.ts +6 -0
- package/lib/cjs/validator/rules/MaxYear.js +17 -0
- package/lib/cjs/validator/rules/Min.d.ts +6 -0
- package/lib/cjs/validator/rules/Min.js +16 -0
- package/lib/cjs/validator/rules/MinDate.d.ts +1 -0
- package/lib/cjs/validator/rules/MinDate.js +29 -0
- package/lib/cjs/validator/rules/MinLength.d.ts +6 -0
- package/lib/cjs/validator/rules/MinLength.js +15 -0
- package/lib/cjs/validator/rules/MinWords.d.ts +6 -0
- package/lib/cjs/validator/rules/MinWords.js +15 -0
- package/lib/cjs/validator/rules/MinYear.d.ts +6 -0
- package/lib/cjs/validator/rules/MinYear.js +17 -0
- package/lib/cjs/validator/rules/Pattern.d.ts +6 -0
- package/lib/cjs/validator/rules/Pattern.js +15 -0
- package/lib/cjs/validator/rules/Required.d.ts +6 -0
- package/lib/cjs/validator/rules/Required.js +12 -0
- package/lib/cjs/validator/rules/Rule.d.ts +8 -0
- package/lib/cjs/validator/rules/Rule.js +10 -0
- package/lib/cjs/validator/rules/Select.d.ts +1 -0
- package/lib/cjs/validator/rules/Select.js +95 -0
- package/lib/cjs/validator/rules/Time.d.ts +1 -0
- package/lib/cjs/validator/rules/Time.js +18 -0
- package/lib/cjs/validator/rules/Unique.d.ts +1 -0
- package/lib/cjs/validator/rules/Unique.js +69 -0
- package/lib/cjs/validator/rules/Url.d.ts +6 -0
- package/lib/cjs/validator/rules/Url.js +18 -0
- package/lib/cjs/validator/rules/index.d.ts +23 -0
- package/lib/cjs/validator/rules/index.js +47 -0
- package/lib/cjs/validator/transformers/index.d.ts +7 -0
- package/lib/cjs/validator/transformers/index.js +18 -0
- package/lib/cjs/validator/valueSources/index.d.ts +7 -0
- package/lib/cjs/validator/valueSources/index.js +18 -0
- package/lib/cjs/widgets/CalendarWidget.d.ts +96 -0
- package/lib/cjs/widgets/CalendarWidget.js +468 -0
- package/lib/cjs/widgets/InputWidget.d.ts +24 -0
- package/lib/cjs/widgets/InputWidget.js +75 -0
- package/lib/cjs/widgets/index.d.ts +7 -0
- package/lib/cjs/widgets/index.js +11 -0
- package/lib/mjs/CDN.d.ts +28 -0
- package/lib/mjs/CDN.js +74 -0
- package/lib/mjs/Element.d.ts +255 -0
- package/lib/mjs/Element.js +562 -0
- package/lib/mjs/Embed.d.ts +1 -0
- package/lib/mjs/Embed.js +348 -0
- package/lib/mjs/EventEmitter.d.ts +7 -0
- package/lib/mjs/EventEmitter.js +26 -0
- package/lib/mjs/Form.d.ts +90 -0
- package/lib/mjs/Form.js +308 -0
- package/lib/mjs/FormBuilder.d.ts +6 -0
- package/lib/mjs/FormBuilder.js +34 -0
- package/lib/mjs/Formio.d.ts +2 -0
- package/lib/mjs/Formio.js +89 -0
- package/lib/mjs/PDF.d.ts +32 -0
- package/lib/mjs/PDF.js +285 -0
- package/lib/mjs/PDFBuilder.d.ts +55 -0
- package/lib/mjs/PDFBuilder.js +474 -0
- package/lib/mjs/Webform.d.ts +408 -0
- package/lib/mjs/Webform.js +1513 -0
- package/lib/mjs/WebformBuilder.d.ts +120 -0
- package/lib/mjs/WebformBuilder.js +1537 -0
- package/lib/mjs/Wizard.d.ts +93 -0
- package/lib/mjs/Wizard.js +905 -0
- package/lib/mjs/WizardBuilder.d.ts +46 -0
- package/lib/mjs/WizardBuilder.js +250 -0
- package/lib/mjs/addons/FormioAddon.d.ts +19 -0
- package/lib/mjs/addons/FormioAddon.js +31 -0
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +717 -0
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +590 -0
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +311 -0
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +388 -0
- package/lib/mjs/addons/index.d.ts +625 -0
- package/lib/mjs/addons/index.js +19 -0
- package/lib/mjs/builders/Builders.d.ts +18 -0
- package/lib/mjs/builders/Builders.js +24 -0
- package/lib/mjs/builders/index.d.ts +2 -0
- package/lib/mjs/builders/index.js +2 -0
- package/lib/mjs/components/Components.d.ts +258 -0
- package/lib/mjs/components/Components.js +75 -0
- package/lib/mjs/components/_classes/component/Component.d.ts +779 -0
- package/lib/mjs/components/_classes/component/Component.form.d.ts +3 -0
- package/lib/mjs/components/_classes/component/Component.form.js +71 -0
- package/lib/mjs/components/_classes/component/Component.js +3110 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +645 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +39 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.api.d.ts +42 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.api.js +38 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +113 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +50 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +219 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +156 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.d.ts +160 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +199 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.d.ts +44 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.js +77 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.d.ts +368 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +410 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +140 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +204 -0
- package/lib/mjs/components/_classes/component/editForm/utils.d.ts +83 -0
- package/lib/mjs/components/_classes/component/editForm/utils.js +132 -0
- package/lib/mjs/components/_classes/component/fixtures/comp1.d.ts +33 -0
- package/lib/mjs/components/_classes/component/fixtures/comp1.js +31 -0
- package/lib/mjs/components/_classes/component/fixtures/comp2.d.ts +33 -0
- package/lib/mjs/components/_classes/component/fixtures/comp2.js +31 -0
- package/lib/mjs/components/_classes/component/fixtures/comp3.d.ts +14 -0
- package/lib/mjs/components/_classes/component/fixtures/comp3.js +12 -0
- package/lib/mjs/components/_classes/component/fixtures/comp4.d.ts +17 -0
- package/lib/mjs/components/_classes/component/fixtures/comp4.js +16 -0
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +5 -0
- package/lib/mjs/components/_classes/component/fixtures/index.js +5 -0
- package/lib/mjs/components/_classes/componentModal/ComponentModal.d.ts +46 -0
- package/lib/mjs/components/_classes/componentModal/ComponentModal.js +177 -0
- package/lib/mjs/components/_classes/field/Field.d.ts +4 -0
- package/lib/mjs/components/_classes/field/Field.js +21 -0
- package/lib/mjs/components/_classes/input/Input.d.ts +42 -0
- package/lib/mjs/components/_classes/input/Input.js +297 -0
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +14 -0
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +3 -0
- package/lib/mjs/components/_classes/list/ListComponent.form.js +10 -0
- package/lib/mjs/components/_classes/list/ListComponent.js +208 -0
- package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +183 -0
- package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.js +117 -0
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +29 -0
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +256 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +130 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +3 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +13 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.js +687 -0
- package/lib/mjs/components/_classes/nested/fixtures/comp1.d.ts +8 -0
- package/lib/mjs/components/_classes/nested/fixtures/comp1.js +14 -0
- package/lib/mjs/components/_classes/nested/fixtures/comp2.d.ts +236 -0
- package/lib/mjs/components/_classes/nested/fixtures/comp2.js +225 -0
- package/lib/mjs/components/_classes/nested/fixtures/comp3.d.ts +26 -0
- package/lib/mjs/components/_classes/nested/fixtures/comp3.js +27 -0
- package/lib/mjs/components/_classes/nested/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/_classes/nested/fixtures/index.js +3 -0
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +14 -0
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +174 -0
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +11 -0
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +124 -0
- package/lib/mjs/components/address/Address.d.ts +58 -0
- package/lib/mjs/components/address/Address.form.d.ts +3 -0
- package/lib/mjs/components/address/Address.form.js +22 -0
- package/lib/mjs/components/address/Address.js +536 -0
- package/lib/mjs/components/address/editForm/Address.edit.data.d.ts +31 -0
- package/lib/mjs/components/address/editForm/Address.edit.data.js +21 -0
- package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +49 -0
- package/lib/mjs/components/address/editForm/Address.edit.display.js +42 -0
- package/lib/mjs/components/address/editForm/Address.edit.provider.d.ts +164 -0
- package/lib/mjs/components/address/editForm/Address.edit.provider.js +151 -0
- package/lib/mjs/components/address/fixtures/comp1.d.ts +34 -0
- package/lib/mjs/components/address/fixtures/comp1.js +69 -0
- package/lib/mjs/components/address/fixtures/comp2.d.ts +62 -0
- package/lib/mjs/components/address/fixtures/comp2.js +101 -0
- package/lib/mjs/components/address/fixtures/comp3.d.ts +44 -0
- package/lib/mjs/components/address/fixtures/comp3.js +83 -0
- package/lib/mjs/components/address/fixtures/comp4.d.ts +56 -0
- package/lib/mjs/components/address/fixtures/comp4.js +91 -0
- package/lib/mjs/components/address/fixtures/index.d.ts +5 -0
- package/lib/mjs/components/address/fixtures/index.js +5 -0
- package/lib/mjs/components/address/fixtures/values.d.ts +22 -0
- package/lib/mjs/components/address/fixtures/values.js +17 -0
- package/lib/mjs/components/alert/Alert.d.ts +30 -0
- package/lib/mjs/components/alert/Alert.js +176 -0
- package/lib/mjs/components/builder.d.ts +2 -0
- package/lib/mjs/components/builder.js +86 -0
- package/lib/mjs/components/button/Button.d.ts +44 -0
- package/lib/mjs/components/button/Button.form.d.ts +3 -0
- package/lib/mjs/components/button/Button.form.js +18 -0
- package/lib/mjs/components/button/Button.js +458 -0
- package/lib/mjs/components/button/editForm/Button.edit.display.d.ts +360 -0
- package/lib/mjs/components/button/editForm/Button.edit.display.js +247 -0
- package/lib/mjs/components/button/fixtures/comp1.d.ts +15 -0
- package/lib/mjs/components/button/fixtures/comp1.js +14 -0
- package/lib/mjs/components/button/fixtures/comp2.d.ts +25 -0
- package/lib/mjs/components/button/fixtures/comp2.js +55 -0
- package/lib/mjs/components/button/fixtures/comp3.d.ts +113 -0
- package/lib/mjs/components/button/fixtures/comp3.js +82 -0
- package/lib/mjs/components/button/fixtures/index.d.ts +4 -0
- package/lib/mjs/components/button/fixtures/index.js +4 -0
- package/lib/mjs/components/button/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/button/fixtures/values.js +4 -0
- package/lib/mjs/components/checkbox/Checkbox.d.ts +36 -0
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +3 -0
- package/lib/mjs/components/checkbox/Checkbox.form.js +20 -0
- package/lib/mjs/components/checkbox/Checkbox.js +188 -0
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +5 -0
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.js +6 -0
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +75 -0
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.js +74 -0
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +5 -0
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.js +10 -0
- package/lib/mjs/components/checkbox/fixtures/comp1.d.ts +24 -0
- package/lib/mjs/components/checkbox/fixtures/comp1.js +22 -0
- package/lib/mjs/components/checkbox/fixtures/comp2.d.ts +12 -0
- package/lib/mjs/components/checkbox/fixtures/comp2.js +11 -0
- package/lib/mjs/components/checkbox/fixtures/comp3.d.ts +15 -0
- package/lib/mjs/components/checkbox/fixtures/comp3.js +14 -0
- package/lib/mjs/components/checkbox/fixtures/comp4.d.ts +46 -0
- package/lib/mjs/components/checkbox/fixtures/comp4.js +37 -0
- package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.d.ts +25 -0
- package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.js +23 -0
- package/lib/mjs/components/checkbox/fixtures/index.d.ts +6 -0
- package/lib/mjs/components/checkbox/fixtures/index.js +6 -0
- package/lib/mjs/components/checkbox/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/checkbox/fixtures/values.js +4 -0
- package/lib/mjs/components/columns/Columns.d.ts +25 -0
- package/lib/mjs/components/columns/Columns.form.d.ts +3 -0
- package/lib/mjs/components/columns/Columns.form.js +10 -0
- package/lib/mjs/components/columns/Columns.js +149 -0
- package/lib/mjs/components/columns/editForm/Columns.edit.display.d.ts +58 -0
- package/lib/mjs/components/columns/editForm/Columns.edit.display.js +98 -0
- package/lib/mjs/components/columns/fixtures/comp1.d.ts +45 -0
- package/lib/mjs/components/columns/fixtures/comp1.js +83 -0
- package/lib/mjs/components/columns/fixtures/comp2.d.ts +24 -0
- package/lib/mjs/components/columns/fixtures/comp2.js +125 -0
- package/lib/mjs/components/columns/fixtures/comp3.d.ts +45 -0
- package/lib/mjs/components/columns/fixtures/comp3.js +51 -0
- package/lib/mjs/components/columns/fixtures/index.d.ts +4 -0
- package/lib/mjs/components/columns/fixtures/index.js +4 -0
- package/lib/mjs/components/container/Container.d.ts +14 -0
- package/lib/mjs/components/container/Container.form.d.ts +3 -0
- package/lib/mjs/components/container/Container.form.js +15 -0
- package/lib/mjs/components/container/Container.js +72 -0
- package/lib/mjs/components/container/editForm/Container.edit.data.d.ts +5 -0
- package/lib/mjs/components/container/editForm/Container.edit.data.js +14 -0
- package/lib/mjs/components/container/editForm/Container.edit.display.d.ts +5 -0
- package/lib/mjs/components/container/editForm/Container.edit.display.js +18 -0
- package/lib/mjs/components/container/fixtures/comp1.d.ts +49 -0
- package/lib/mjs/components/container/fixtures/comp1.js +80 -0
- package/lib/mjs/components/container/fixtures/comp2.d.ts +30 -0
- package/lib/mjs/components/container/fixtures/comp2.js +32 -0
- package/lib/mjs/components/container/fixtures/comp3.d.ts +77 -0
- package/lib/mjs/components/container/fixtures/comp3.js +55 -0
- package/lib/mjs/components/container/fixtures/index.d.ts +4 -0
- package/lib/mjs/components/container/fixtures/index.js +4 -0
- package/lib/mjs/components/content/Content.d.ts +15 -0
- package/lib/mjs/components/content/Content.form.d.ts +3 -0
- package/lib/mjs/components/content/Content.form.js +37 -0
- package/lib/mjs/components/content/Content.js +69 -0
- package/lib/mjs/components/content/editForm/Content.edit.display.d.ts +18 -0
- package/lib/mjs/components/content/editForm/Content.edit.display.js +46 -0
- package/lib/mjs/components/content/editForm/Content.edit.logic.d.ts +48 -0
- package/lib/mjs/components/content/editForm/Content.edit.logic.js +98 -0
- package/lib/mjs/components/content/fixtures/comp1.d.ts +13 -0
- package/lib/mjs/components/content/fixtures/comp1.js +12 -0
- package/lib/mjs/components/content/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/content/fixtures/index.js +2 -0
- package/lib/mjs/components/currency/Currency.d.ts +8 -0
- package/lib/mjs/components/currency/Currency.form.d.ts +3 -0
- package/lib/mjs/components/currency/Currency.form.js +40 -0
- package/lib/mjs/components/currency/Currency.js +174 -0
- package/lib/mjs/components/currency/editForm/Currency.edit.data.d.ts +17 -0
- package/lib/mjs/components/currency/editForm/Currency.edit.data.js +186 -0
- package/lib/mjs/components/currency/editForm/Currency.edit.display.d.ts +18 -0
- package/lib/mjs/components/currency/editForm/Currency.edit.display.js +34 -0
- package/lib/mjs/components/currency/fixtures/comp1.d.ts +31 -0
- package/lib/mjs/components/currency/fixtures/comp1.js +29 -0
- package/lib/mjs/components/currency/fixtures/comp2.d.ts +20 -0
- package/lib/mjs/components/currency/fixtures/comp2.js +18 -0
- package/lib/mjs/components/currency/fixtures/comp3.d.ts +13 -0
- package/lib/mjs/components/currency/fixtures/comp3.js +12 -0
- package/lib/mjs/components/currency/fixtures/comp4.d.ts +17 -0
- package/lib/mjs/components/currency/fixtures/comp4.js +18 -0
- package/lib/mjs/components/currency/fixtures/index.d.ts +5 -0
- package/lib/mjs/components/currency/fixtures/index.js +5 -0
- package/lib/mjs/components/currency/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/currency/fixtures/values.js +6 -0
- package/lib/mjs/components/datagrid/DataGrid.d.ts +87 -0
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +3 -0
- package/lib/mjs/components/datagrid/DataGrid.form.js +20 -0
- package/lib/mjs/components/datagrid/DataGrid.js +642 -0
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +5 -0
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.js +6 -0
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +283 -0
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.js +147 -0
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +20 -0
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.js +24 -0
- package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +37 -0
- package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +40 -0
- package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
- package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.js +1 -0
- package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +63 -0
- package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +79 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +76 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +73 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +197 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +176 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.d.ts +61 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.js +67 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-logic.d.ts +165 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-logic.js +178 -0
- package/lib/mjs/components/datagrid/fixtures/comp1.d.ts +93 -0
- package/lib/mjs/components/datagrid/fixtures/comp1.js +113 -0
- package/lib/mjs/components/datagrid/fixtures/comp2.d.ts +18 -0
- package/lib/mjs/components/datagrid/fixtures/comp2.js +27 -0
- package/lib/mjs/components/datagrid/fixtures/comp3.d.ts +14 -0
- package/lib/mjs/components/datagrid/fixtures/comp3.js +21 -0
- package/lib/mjs/components/datagrid/fixtures/comp4.d.ts +27 -0
- package/lib/mjs/components/datagrid/fixtures/comp4.js +26 -0
- package/lib/mjs/components/datagrid/fixtures/comp5.d.ts +67 -0
- package/lib/mjs/components/datagrid/fixtures/comp5.js +75 -0
- package/lib/mjs/components/datagrid/fixtures/comp6.d.ts +567 -0
- package/lib/mjs/components/datagrid/fixtures/comp6.js +294 -0
- package/lib/mjs/components/datagrid/fixtures/comp7.d.ts +28 -0
- package/lib/mjs/components/datagrid/fixtures/comp7.js +33 -0
- package/lib/mjs/components/datagrid/fixtures/comp8.d.ts +35 -0
- package/lib/mjs/components/datagrid/fixtures/comp8.js +35 -0
- package/lib/mjs/components/datagrid/fixtures/index.d.ts +15 -0
- package/lib/mjs/components/datagrid/fixtures/index.js +15 -0
- package/lib/mjs/components/datamap/DataMap.d.ts +35 -0
- package/lib/mjs/components/datamap/DataMap.form.d.ts +3 -0
- package/lib/mjs/components/datamap/DataMap.form.js +15 -0
- package/lib/mjs/components/datamap/DataMap.js +291 -0
- package/lib/mjs/components/datamap/editForm/DataMap.edit.data.d.ts +5 -0
- package/lib/mjs/components/datamap/editForm/DataMap.edit.data.js +10 -0
- package/lib/mjs/components/datamap/editForm/DataMap.edit.display.d.ts +30 -0
- package/lib/mjs/components/datamap/editForm/DataMap.edit.display.js +46 -0
- package/lib/mjs/components/datamap/fixtures/comp1.d.ts +18 -0
- package/lib/mjs/components/datamap/fixtures/comp1.js +13 -0
- package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +87 -0
- package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.js +83 -0
- package/lib/mjs/components/datamap/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/datamap/fixtures/index.js +3 -0
- package/lib/mjs/components/datetime/DateTime.d.ts +16 -0
- package/lib/mjs/components/datetime/DateTime.form.d.ts +3 -0
- package/lib/mjs/components/datetime/DateTime.form.js +34 -0
- package/lib/mjs/components/datetime/DateTime.js +161 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.data.d.ts +24 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.data.js +21 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +61 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +70 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.display.d.ts +128 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.display.js +98 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.time.d.ts +9 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.time.js +34 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.d.ts +40 -0
- package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +82 -0
- package/lib/mjs/components/datetime/fixtures/comp1.d.ts +45 -0
- package/lib/mjs/components/datetime/fixtures/comp1.js +42 -0
- package/lib/mjs/components/datetime/fixtures/comp10.d.ts +102 -0
- package/lib/mjs/components/datetime/fixtures/comp10.js +84 -0
- package/lib/mjs/components/datetime/fixtures/comp11.d.ts +58 -0
- package/lib/mjs/components/datetime/fixtures/comp11.js +53 -0
- package/lib/mjs/components/datetime/fixtures/comp12.d.ts +57 -0
- package/lib/mjs/components/datetime/fixtures/comp12.js +53 -0
- package/lib/mjs/components/datetime/fixtures/comp2.d.ts +42 -0
- package/lib/mjs/components/datetime/fixtures/comp2.js +41 -0
- package/lib/mjs/components/datetime/fixtures/comp3.d.ts +51 -0
- package/lib/mjs/components/datetime/fixtures/comp3.js +38 -0
- package/lib/mjs/components/datetime/fixtures/comp5.d.ts +57 -0
- package/lib/mjs/components/datetime/fixtures/comp5.js +46 -0
- package/lib/mjs/components/datetime/fixtures/comp6.d.ts +55 -0
- package/lib/mjs/components/datetime/fixtures/comp6.js +47 -0
- package/lib/mjs/components/datetime/fixtures/comp7.d.ts +59 -0
- package/lib/mjs/components/datetime/fixtures/comp7.js +51 -0
- package/lib/mjs/components/datetime/fixtures/comp8.d.ts +59 -0
- package/lib/mjs/components/datetime/fixtures/comp8.js +50 -0
- package/lib/mjs/components/datetime/fixtures/comp9.d.ts +64 -0
- package/lib/mjs/components/datetime/fixtures/comp9.js +93 -0
- package/lib/mjs/components/datetime/fixtures/index.d.ts +12 -0
- package/lib/mjs/components/datetime/fixtures/index.js +12 -0
- package/lib/mjs/components/datetime/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/datetime/fixtures/values.js +4 -0
- package/lib/mjs/components/day/Day.d.ts +143 -0
- package/lib/mjs/components/day/Day.form.d.ts +3 -0
- package/lib/mjs/components/day/Day.form.js +41 -0
- package/lib/mjs/components/day/Day.js +528 -0
- package/lib/mjs/components/day/editForm/Day.edit.data.d.ts +5 -0
- package/lib/mjs/components/day/editForm/Day.edit.data.js +6 -0
- package/lib/mjs/components/day/editForm/Day.edit.day.d.ts +40 -0
- package/lib/mjs/components/day/editForm/Day.edit.day.js +46 -0
- package/lib/mjs/components/day/editForm/Day.edit.display.d.ts +40 -0
- package/lib/mjs/components/day/editForm/Day.edit.display.js +44 -0
- package/lib/mjs/components/day/editForm/Day.edit.month.d.ts +40 -0
- package/lib/mjs/components/day/editForm/Day.edit.month.js +38 -0
- package/lib/mjs/components/day/editForm/Day.edit.validation.d.ts +29 -0
- package/lib/mjs/components/day/editForm/Day.edit.validation.js +52 -0
- package/lib/mjs/components/day/editForm/Day.edit.year.d.ts +40 -0
- package/lib/mjs/components/day/editForm/Day.edit.year.js +56 -0
- package/lib/mjs/components/day/fixtures/comp1.d.ts +46 -0
- package/lib/mjs/components/day/fixtures/comp1.js +37 -0
- package/lib/mjs/components/day/fixtures/comp2.d.ts +46 -0
- package/lib/mjs/components/day/fixtures/comp2.js +37 -0
- package/lib/mjs/components/day/fixtures/comp3.d.ts +48 -0
- package/lib/mjs/components/day/fixtures/comp3.js +39 -0
- package/lib/mjs/components/day/fixtures/comp4.d.ts +53 -0
- package/lib/mjs/components/day/fixtures/comp4.js +54 -0
- package/lib/mjs/components/day/fixtures/index.d.ts +5 -0
- package/lib/mjs/components/day/fixtures/index.js +5 -0
- package/lib/mjs/components/day/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/day/fixtures/values.js +4 -0
- package/lib/mjs/components/editgrid/EditGrid.d.ts +98 -0
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +3 -0
- package/lib/mjs/components/editgrid/EditGrid.form.js +27 -0
- package/lib/mjs/components/editgrid/EditGrid.js +1151 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +18 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.js +18 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +82 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +53 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +58 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +126 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +29 -0
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.js +32 -0
- package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +34 -0
- package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.js +34 -0
- package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +327 -0
- package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.js +218 -0
- package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +77 -0
- package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +82 -0
- package/lib/mjs/components/editgrid/fixtures/comp1.d.ts +89 -0
- package/lib/mjs/components/editgrid/fixtures/comp1.js +126 -0
- package/lib/mjs/components/editgrid/fixtures/comp10.d.ts +49 -0
- package/lib/mjs/components/editgrid/fixtures/comp10.js +46 -0
- package/lib/mjs/components/editgrid/fixtures/comp11.d.ts +53 -0
- package/lib/mjs/components/editgrid/fixtures/comp11.js +48 -0
- package/lib/mjs/components/editgrid/fixtures/comp12.d.ts +57 -0
- package/lib/mjs/components/editgrid/fixtures/comp12.js +48 -0
- package/lib/mjs/components/editgrid/fixtures/comp13.d.ts +64 -0
- package/lib/mjs/components/editgrid/fixtures/comp13.js +62 -0
- package/lib/mjs/components/editgrid/fixtures/comp14.d.ts +88 -0
- package/lib/mjs/components/editgrid/fixtures/comp14.js +82 -0
- package/lib/mjs/components/editgrid/fixtures/comp2.d.ts +112 -0
- package/lib/mjs/components/editgrid/fixtures/comp2.js +112 -0
- package/lib/mjs/components/editgrid/fixtures/comp3.d.ts +27 -0
- package/lib/mjs/components/editgrid/fixtures/comp3.js +26 -0
- package/lib/mjs/components/editgrid/fixtures/comp4.d.ts +23 -0
- package/lib/mjs/components/editgrid/fixtures/comp4.js +22 -0
- package/lib/mjs/components/editgrid/fixtures/comp5.d.ts +19 -0
- package/lib/mjs/components/editgrid/fixtures/comp5.js +20 -0
- package/lib/mjs/components/editgrid/fixtures/comp6.d.ts +50 -0
- package/lib/mjs/components/editgrid/fixtures/comp6.js +56 -0
- package/lib/mjs/components/editgrid/fixtures/comp7.d.ts +129 -0
- package/lib/mjs/components/editgrid/fixtures/comp7.js +121 -0
- package/lib/mjs/components/editgrid/fixtures/comp8.d.ts +148 -0
- package/lib/mjs/components/editgrid/fixtures/comp8.js +154 -0
- package/lib/mjs/components/editgrid/fixtures/comp9.d.ts +86 -0
- package/lib/mjs/components/editgrid/fixtures/comp9.js +60 -0
- package/lib/mjs/components/editgrid/fixtures/index.d.ts +17 -0
- package/lib/mjs/components/editgrid/fixtures/index.js +17 -0
- package/lib/mjs/components/email/Email.d.ts +4 -0
- package/lib/mjs/components/email/Email.form.d.ts +3 -0
- package/lib/mjs/components/email/Email.form.js +15 -0
- package/lib/mjs/components/email/Email.js +48 -0
- package/lib/mjs/components/email/editForm/Email.edit.display.d.ts +5 -0
- package/lib/mjs/components/email/editForm/Email.edit.display.js +18 -0
- package/lib/mjs/components/email/editForm/Email.edit.validation.d.ts +24 -0
- package/lib/mjs/components/email/editForm/Email.edit.validation.js +26 -0
- package/lib/mjs/components/email/fixtures/comp1.d.ts +26 -0
- package/lib/mjs/components/email/fixtures/comp1.js +24 -0
- package/lib/mjs/components/email/fixtures/comp2.d.ts +23 -0
- package/lib/mjs/components/email/fixtures/comp2.js +11 -0
- package/lib/mjs/components/email/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/email/fixtures/index.js +3 -0
- package/lib/mjs/components/email/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/email/fixtures/values.js +4 -0
- package/lib/mjs/components/fieldset/Fieldset.d.ts +13 -0
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +3 -0
- package/lib/mjs/components/fieldset/Fieldset.form.js +10 -0
- package/lib/mjs/components/fieldset/Fieldset.js +37 -0
- package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +33 -0
- package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +42 -0
- package/lib/mjs/components/fieldset/fixtures/comp1.d.ts +46 -0
- package/lib/mjs/components/fieldset/fixtures/comp1.js +79 -0
- package/lib/mjs/components/fieldset/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/fieldset/fixtures/index.js +2 -0
- package/lib/mjs/components/file/File.d.ts +59 -0
- package/lib/mjs/components/file/File.form.d.ts +3 -0
- package/lib/mjs/components/file/File.form.js +27 -0
- package/lib/mjs/components/file/File.js +746 -0
- package/lib/mjs/components/file/editForm/File.edit.data.d.ts +5 -0
- package/lib/mjs/components/file/editForm/File.edit.data.js +6 -0
- package/lib/mjs/components/file/editForm/File.edit.display.d.ts +5 -0
- package/lib/mjs/components/file/editForm/File.edit.display.js +6 -0
- package/lib/mjs/components/file/editForm/File.edit.file.d.ts +213 -0
- package/lib/mjs/components/file/editForm/File.edit.file.js +256 -0
- package/lib/mjs/components/file/editForm/File.edit.validation.d.ts +5 -0
- package/lib/mjs/components/file/editForm/File.edit.validation.js +10 -0
- package/lib/mjs/components/file/fixtures/comp1.d.ts +15 -0
- package/lib/mjs/components/file/fixtures/comp1.js +16 -0
- package/lib/mjs/components/file/fixtures/comp2.d.ts +35 -0
- package/lib/mjs/components/file/fixtures/comp2.js +29 -0
- package/lib/mjs/components/file/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/file/fixtures/index.js +3 -0
- package/lib/mjs/components/file/fixtures/values.d.ts +10 -0
- package/lib/mjs/components/file/fixtures/values.js +13 -0
- package/lib/mjs/components/form/Form.d.ts +94 -0
- package/lib/mjs/components/form/Form.form.d.ts +3 -0
- package/lib/mjs/components/form/Form.form.js +24 -0
- package/lib/mjs/components/form/Form.js +714 -0
- package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +82 -0
- package/lib/mjs/components/form/editForm/Form.edit.data.js +16 -0
- package/lib/mjs/components/form/editForm/Form.edit.display.d.ts +5 -0
- package/lib/mjs/components/form/editForm/Form.edit.display.js +27 -0
- package/lib/mjs/components/form/editForm/Form.edit.form.d.ts +89 -0
- package/lib/mjs/components/form/editForm/Form.edit.form.js +72 -0
- package/lib/mjs/components/form/fixtures/comp1.d.ts +45 -0
- package/lib/mjs/components/form/fixtures/comp1.js +78 -0
- package/lib/mjs/components/form/fixtures/comp2.d.ts +14 -0
- package/lib/mjs/components/form/fixtures/comp2.js +13 -0
- package/lib/mjs/components/form/fixtures/comp3.d.ts +187 -0
- package/lib/mjs/components/form/fixtures/comp3.js +168 -0
- package/lib/mjs/components/form/fixtures/comp4.d.ts +107 -0
- package/lib/mjs/components/form/fixtures/comp4.js +89 -0
- package/lib/mjs/components/form/fixtures/comp5.d.ts +42 -0
- package/lib/mjs/components/form/fixtures/comp5.js +43 -0
- package/lib/mjs/components/form/fixtures/comp6.d.ts +74 -0
- package/lib/mjs/components/form/fixtures/comp6.js +92 -0
- package/lib/mjs/components/form/fixtures/formModalEdit.d.ts +42 -0
- package/lib/mjs/components/form/fixtures/formModalEdit.js +49 -0
- package/lib/mjs/components/form/fixtures/index.d.ts +8 -0
- package/lib/mjs/components/form/fixtures/index.js +8 -0
- package/lib/mjs/components/form/fixtures/values.d.ts +6 -0
- package/lib/mjs/components/form/fixtures/values.js +7 -0
- package/lib/mjs/components/hidden/Hidden.d.ts +25 -0
- package/lib/mjs/components/hidden/Hidden.form.d.ts +3 -0
- package/lib/mjs/components/hidden/Hidden.form.js +23 -0
- package/lib/mjs/components/hidden/Hidden.js +54 -0
- package/lib/mjs/components/hidden/editForm/Hidden.edit.data.d.ts +5 -0
- package/lib/mjs/components/hidden/editForm/Hidden.edit.data.js +14 -0
- package/lib/mjs/components/hidden/editForm/Hidden.edit.display.d.ts +5 -0
- package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +42 -0
- package/lib/mjs/components/hidden/fixtures/comp1.d.ts +18 -0
- package/lib/mjs/components/hidden/fixtures/comp1.js +16 -0
- package/lib/mjs/components/hidden/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/hidden/fixtures/index.js +2 -0
- package/lib/mjs/components/hidden/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/hidden/fixtures/values.js +4 -0
- package/lib/mjs/components/html/HTML.d.ts +16 -0
- package/lib/mjs/components/html/HTML.form.d.ts +3 -0
- package/lib/mjs/components/html/HTML.form.js +23 -0
- package/lib/mjs/components/html/HTML.js +83 -0
- package/lib/mjs/components/html/editForm/HTML.edit.display.d.ts +77 -0
- package/lib/mjs/components/html/editForm/HTML.edit.display.js +98 -0
- package/lib/mjs/components/html/editForm/HTML.edit.logic.d.ts +48 -0
- package/lib/mjs/components/html/editForm/HTML.edit.logic.js +98 -0
- package/lib/mjs/components/html/fixtures/comp1.d.ts +19 -0
- package/lib/mjs/components/html/fixtures/comp1.js +20 -0
- package/lib/mjs/components/html/fixtures/comp2.d.ts +21 -0
- package/lib/mjs/components/html/fixtures/comp2.js +22 -0
- package/lib/mjs/components/html/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/html/fixtures/index.js +3 -0
- package/lib/mjs/components/index.d.ts +100 -0
- package/lib/mjs/components/index.js +99 -0
- package/lib/mjs/components/number/Number.d.ts +31 -0
- package/lib/mjs/components/number/Number.form.d.ts +3 -0
- package/lib/mjs/components/number/Number.form.js +20 -0
- package/lib/mjs/components/number/Number.js +185 -0
- package/lib/mjs/components/number/editForm/Number.edit.data.d.ts +18 -0
- package/lib/mjs/components/number/editForm/Number.edit.data.js +30 -0
- package/lib/mjs/components/number/editForm/Number.edit.display.d.ts +5 -0
- package/lib/mjs/components/number/editForm/Number.edit.display.js +22 -0
- package/lib/mjs/components/number/editForm/Number.edit.validation.d.ts +20 -0
- package/lib/mjs/components/number/editForm/Number.edit.validation.js +44 -0
- package/lib/mjs/components/number/fixtures/comp1.d.ts +33 -0
- package/lib/mjs/components/number/fixtures/comp1.js +30 -0
- package/lib/mjs/components/number/fixtures/comp2.d.ts +32 -0
- package/lib/mjs/components/number/fixtures/comp2.js +29 -0
- package/lib/mjs/components/number/fixtures/comp3.d.ts +14 -0
- package/lib/mjs/components/number/fixtures/comp3.js +13 -0
- package/lib/mjs/components/number/fixtures/comp4.d.ts +14 -0
- package/lib/mjs/components/number/fixtures/comp4.js +13 -0
- package/lib/mjs/components/number/fixtures/comp5.d.ts +20 -0
- package/lib/mjs/components/number/fixtures/comp5.js +18 -0
- package/lib/mjs/components/number/fixtures/comp6.d.ts +40 -0
- package/lib/mjs/components/number/fixtures/comp6.js +25 -0
- package/lib/mjs/components/number/fixtures/comp7.d.ts +15 -0
- package/lib/mjs/components/number/fixtures/comp7.js +14 -0
- package/lib/mjs/components/number/fixtures/index.d.ts +8 -0
- package/lib/mjs/components/number/fixtures/index.js +8 -0
- package/lib/mjs/components/number/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/number/fixtures/values.js +9 -0
- package/lib/mjs/components/panel/Panel.d.ts +14 -0
- package/lib/mjs/components/panel/Panel.form.d.ts +3 -0
- package/lib/mjs/components/panel/Panel.form.js +15 -0
- package/lib/mjs/components/panel/Panel.js +52 -0
- package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +75 -0
- package/lib/mjs/components/panel/editForm/Panel.edit.conditional.js +40 -0
- package/lib/mjs/components/panel/editForm/Panel.edit.display.d.ts +228 -0
- package/lib/mjs/components/panel/editForm/Panel.edit.display.js +208 -0
- package/lib/mjs/components/panel/fixtures/comp1.d.ts +46 -0
- package/lib/mjs/components/panel/fixtures/comp1.js +78 -0
- package/lib/mjs/components/panel/fixtures/comp2.d.ts +80 -0
- package/lib/mjs/components/panel/fixtures/comp2.js +67 -0
- package/lib/mjs/components/panel/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/panel/fixtures/index.js +3 -0
- package/lib/mjs/components/password/Password.d.ts +3 -0
- package/lib/mjs/components/password/Password.form.d.ts +3 -0
- package/lib/mjs/components/password/Password.form.js +20 -0
- package/lib/mjs/components/password/Password.js +34 -0
- package/lib/mjs/components/password/editForm/Password.edit.data.d.ts +18 -0
- package/lib/mjs/components/password/editForm/Password.edit.data.js +46 -0
- package/lib/mjs/components/password/editForm/Password.edit.display.d.ts +5 -0
- package/lib/mjs/components/password/editForm/Password.edit.display.js +14 -0
- package/lib/mjs/components/password/editForm/Password.edit.validation.d.ts +5 -0
- package/lib/mjs/components/password/editForm/Password.edit.validation.js +14 -0
- package/lib/mjs/components/password/fixtures/comp1.d.ts +22 -0
- package/lib/mjs/components/password/fixtures/comp1.js +20 -0
- package/lib/mjs/components/password/fixtures/comp2.d.ts +27 -0
- package/lib/mjs/components/password/fixtures/comp2.js +27 -0
- package/lib/mjs/components/password/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/password/fixtures/index.js +3 -0
- package/lib/mjs/components/password/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/password/fixtures/values.js +4 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.d.ts +3 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +3 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +23 -0
- package/lib/mjs/components/phonenumber/PhoneNumber.js +27 -0
- package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +5 -0
- package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +22 -0
- package/lib/mjs/components/phonenumber/fixtures/comp1.d.ts +27 -0
- package/lib/mjs/components/phonenumber/fixtures/comp1.js +25 -0
- package/lib/mjs/components/phonenumber/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/phonenumber/fixtures/index.js +2 -0
- package/lib/mjs/components/phonenumber/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/phonenumber/fixtures/values.js +4 -0
- package/lib/mjs/components/radio/Radio.d.ts +44 -0
- package/lib/mjs/components/radio/Radio.form.d.ts +3 -0
- package/lib/mjs/components/radio/Radio.form.js +20 -0
- package/lib/mjs/components/radio/Radio.js +288 -0
- package/lib/mjs/components/radio/editForm/Radio.edit.data.d.ts +134 -0
- package/lib/mjs/components/radio/editForm/Radio.edit.data.js +80 -0
- package/lib/mjs/components/radio/editForm/Radio.edit.display.d.ts +40 -0
- package/lib/mjs/components/radio/editForm/Radio.edit.display.js +32 -0
- package/lib/mjs/components/radio/editForm/Radio.edit.validation.d.ts +18 -0
- package/lib/mjs/components/radio/editForm/Radio.edit.validation.js +18 -0
- package/lib/mjs/components/radio/fixtures/comp1.d.ts +28 -0
- package/lib/mjs/components/radio/fixtures/comp1.js +40 -0
- package/lib/mjs/components/radio/fixtures/comp2.d.ts +85 -0
- package/lib/mjs/components/radio/fixtures/comp2.js +84 -0
- package/lib/mjs/components/radio/fixtures/comp3.d.ts +85 -0
- package/lib/mjs/components/radio/fixtures/comp3.js +88 -0
- package/lib/mjs/components/radio/fixtures/comp4.d.ts +19 -0
- package/lib/mjs/components/radio/fixtures/comp4.js +25 -0
- package/lib/mjs/components/radio/fixtures/comp5.d.ts +39 -0
- package/lib/mjs/components/radio/fixtures/comp5.js +33 -0
- package/lib/mjs/components/radio/fixtures/comp6.d.ts +38 -0
- package/lib/mjs/components/radio/fixtures/comp6.js +31 -0
- package/lib/mjs/components/radio/fixtures/comp7.d.ts +23 -0
- package/lib/mjs/components/radio/fixtures/comp7.js +19 -0
- package/lib/mjs/components/radio/fixtures/comp8.d.ts +118 -0
- package/lib/mjs/components/radio/fixtures/comp8.js +111 -0
- package/lib/mjs/components/radio/fixtures/comp9.d.ts +35 -0
- package/lib/mjs/components/radio/fixtures/comp9.js +30 -0
- package/lib/mjs/components/radio/fixtures/index.d.ts +10 -0
- package/lib/mjs/components/radio/fixtures/index.js +10 -0
- package/lib/mjs/components/radio/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/radio/fixtures/values.js +5 -0
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +22 -0
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -0
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +26 -0
- package/lib/mjs/components/recaptcha/ReCaptcha.js +137 -0
- package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +44 -0
- package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +106 -0
- package/lib/mjs/components/recaptcha/fixtures/comp1.d.ts +8 -0
- package/lib/mjs/components/recaptcha/fixtures/comp1.js +7 -0
- package/lib/mjs/components/recaptcha/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/recaptcha/fixtures/index.js +2 -0
- package/lib/mjs/components/resource/Resource.d.ts +3 -0
- package/lib/mjs/components/resource/Resource.form.d.ts +3 -0
- package/lib/mjs/components/resource/Resource.form.js +10 -0
- package/lib/mjs/components/resource/Resource.js +34 -0
- package/lib/mjs/components/resource/editForm/Resource.edit.display.d.ts +173 -0
- package/lib/mjs/components/resource/editForm/Resource.edit.display.js +100 -0
- package/lib/mjs/components/resource/fixtures/comp1.d.ts +30 -0
- package/lib/mjs/components/resource/fixtures/comp1.js +28 -0
- package/lib/mjs/components/resource/fixtures/comp2.d.ts +35 -0
- package/lib/mjs/components/resource/fixtures/comp2.js +29 -0
- package/lib/mjs/components/resource/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/resource/fixtures/index.js +3 -0
- package/lib/mjs/components/select/Select.d.ts +122 -0
- package/lib/mjs/components/select/Select.form.d.ts +3 -0
- package/lib/mjs/components/select/Select.form.js +20 -0
- package/lib/mjs/components/select/Select.js +1485 -0
- package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +1039 -0
- package/lib/mjs/components/select/editForm/Select.edit.data.js +627 -0
- package/lib/mjs/components/select/editForm/Select.edit.display.d.ts +27 -0
- package/lib/mjs/components/select/editForm/Select.edit.display.js +26 -0
- package/lib/mjs/components/select/editForm/Select.edit.validation.d.ts +30 -0
- package/lib/mjs/components/select/editForm/Select.edit.validation.js +33 -0
- package/lib/mjs/components/select/fixtures/comp1.d.ts +40 -0
- package/lib/mjs/components/select/fixtures/comp1.js +64 -0
- package/lib/mjs/components/select/fixtures/comp10.d.ts +41 -0
- package/lib/mjs/components/select/fixtures/comp10.js +30 -0
- package/lib/mjs/components/select/fixtures/comp11.d.ts +28 -0
- package/lib/mjs/components/select/fixtures/comp11.js +22 -0
- package/lib/mjs/components/select/fixtures/comp12.d.ts +53 -0
- package/lib/mjs/components/select/fixtures/comp12.js +27 -0
- package/lib/mjs/components/select/fixtures/comp13.d.ts +28 -0
- package/lib/mjs/components/select/fixtures/comp13.js +29 -0
- package/lib/mjs/components/select/fixtures/comp14.d.ts +40 -0
- package/lib/mjs/components/select/fixtures/comp14.js +25 -0
- package/lib/mjs/components/select/fixtures/comp15.d.ts +50 -0
- package/lib/mjs/components/select/fixtures/comp15.js +39 -0
- package/lib/mjs/components/select/fixtures/comp16.d.ts +34 -0
- package/lib/mjs/components/select/fixtures/comp16.js +31 -0
- package/lib/mjs/components/select/fixtures/comp17.d.ts +51 -0
- package/lib/mjs/components/select/fixtures/comp17.js +41 -0
- package/lib/mjs/components/select/fixtures/comp18.d.ts +49 -0
- package/lib/mjs/components/select/fixtures/comp18.js +40 -0
- package/lib/mjs/components/select/fixtures/comp2.d.ts +41 -0
- package/lib/mjs/components/select/fixtures/comp2.js +65 -0
- package/lib/mjs/components/select/fixtures/comp3.d.ts +35 -0
- package/lib/mjs/components/select/fixtures/comp3.js +206 -0
- package/lib/mjs/components/select/fixtures/comp4.d.ts +103 -0
- package/lib/mjs/components/select/fixtures/comp4.js +104 -0
- package/lib/mjs/components/select/fixtures/comp5.d.ts +21 -0
- package/lib/mjs/components/select/fixtures/comp5.js +26 -0
- package/lib/mjs/components/select/fixtures/comp6.d.ts +20 -0
- package/lib/mjs/components/select/fixtures/comp6.js +28 -0
- package/lib/mjs/components/select/fixtures/comp7.d.ts +63 -0
- package/lib/mjs/components/select/fixtures/comp7.js +44 -0
- package/lib/mjs/components/select/fixtures/comp8.d.ts +72 -0
- package/lib/mjs/components/select/fixtures/comp8.js +35 -0
- package/lib/mjs/components/select/fixtures/comp9.d.ts +88 -0
- package/lib/mjs/components/select/fixtures/comp9.js +65 -0
- package/lib/mjs/components/select/fixtures/index.d.ts +19 -0
- package/lib/mjs/components/select/fixtures/index.js +19 -0
- package/lib/mjs/components/select/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/select/fixtures/values.js +5 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +15 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +3 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +19 -0
- package/lib/mjs/components/selectboxes/SelectBoxes.js +208 -0
- package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +9 -0
- package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +34 -0
- package/lib/mjs/components/selectboxes/fixtures/comp1.d.ts +24 -0
- package/lib/mjs/components/selectboxes/fixtures/comp1.js +52 -0
- package/lib/mjs/components/selectboxes/fixtures/comp2.d.ts +24 -0
- package/lib/mjs/components/selectboxes/fixtures/comp2.js +52 -0
- package/lib/mjs/components/selectboxes/fixtures/comp3.d.ts +23 -0
- package/lib/mjs/components/selectboxes/fixtures/comp3.js +19 -0
- package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +63 -0
- package/lib/mjs/components/selectboxes/fixtures/comp4.js +64 -0
- package/lib/mjs/components/selectboxes/fixtures/comp5.d.ts +37 -0
- package/lib/mjs/components/selectboxes/fixtures/comp5.js +31 -0
- package/lib/mjs/components/selectboxes/fixtures/index.d.ts +6 -0
- package/lib/mjs/components/selectboxes/fixtures/index.js +6 -0
- package/lib/mjs/components/selectboxes/fixtures/values.d.ts +6 -0
- package/lib/mjs/components/selectboxes/fixtures/values.js +22 -0
- package/lib/mjs/components/signature/Signature.d.ts +26 -0
- package/lib/mjs/components/signature/Signature.form.d.ts +3 -0
- package/lib/mjs/components/signature/Signature.form.js +20 -0
- package/lib/mjs/components/signature/Signature.js +240 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.data.d.ts +5 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.data.js +14 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.display.d.ts +51 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.display.js +69 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.validation.d.ts +5 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.validation.js +10 -0
- package/lib/mjs/components/signature/fixtures/comp1.d.ts +30 -0
- package/lib/mjs/components/signature/fixtures/comp1.js +28 -0
- package/lib/mjs/components/signature/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/signature/fixtures/index.js +2 -0
- package/lib/mjs/components/signature/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/signature/fixtures/values.js +5 -0
- package/lib/mjs/components/survey/Survey.d.ts +16 -0
- package/lib/mjs/components/survey/Survey.form.d.ts +3 -0
- package/lib/mjs/components/survey/Survey.form.js +20 -0
- package/lib/mjs/components/survey/Survey.js +141 -0
- package/lib/mjs/components/survey/editForm/Survey.edit.data.d.ts +44 -0
- package/lib/mjs/components/survey/editForm/Survey.edit.data.js +70 -0
- package/lib/mjs/components/survey/editForm/Survey.edit.display.d.ts +5 -0
- package/lib/mjs/components/survey/editForm/Survey.edit.display.js +6 -0
- package/lib/mjs/components/survey/editForm/Survey.edit.validation.d.ts +5 -0
- package/lib/mjs/components/survey/editForm/Survey.edit.validation.js +6 -0
- package/lib/mjs/components/survey/fixtures/comp1.d.ts +31 -0
- package/lib/mjs/components/survey/fixtures/comp1.js +53 -0
- package/lib/mjs/components/survey/fixtures/comp2.d.ts +31 -0
- package/lib/mjs/components/survey/fixtures/comp2.js +53 -0
- package/lib/mjs/components/survey/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/survey/fixtures/index.js +3 -0
- package/lib/mjs/components/survey/fixtures/values.d.ts +5 -0
- package/lib/mjs/components/survey/fixtures/values.js +10 -0
- package/lib/mjs/components/table/Table.d.ts +21 -0
- package/lib/mjs/components/table/Table.form.d.ts +3 -0
- package/lib/mjs/components/table/Table.form.js +10 -0
- package/lib/mjs/components/table/Table.js +165 -0
- package/lib/mjs/components/table/editForm/Table.edit.display.d.ts +55 -0
- package/lib/mjs/components/table/editForm/Table.edit.display.js +109 -0
- package/lib/mjs/components/table/fixtures/comp1.d.ts +53 -0
- package/lib/mjs/components/table/fixtures/comp1.js +235 -0
- package/lib/mjs/components/table/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/table/fixtures/index.js +2 -0
- package/lib/mjs/components/tabs/Tabs.d.ts +28 -0
- package/lib/mjs/components/tabs/Tabs.form.d.ts +3 -0
- package/lib/mjs/components/tabs/Tabs.form.js +10 -0
- package/lib/mjs/components/tabs/Tabs.js +197 -0
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.d.ts +49 -0
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +66 -0
- package/lib/mjs/components/tabs/fixtures/comp1.d.ts +23 -0
- package/lib/mjs/components/tabs/fixtures/comp1.js +31 -0
- package/lib/mjs/components/tabs/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/tabs/fixtures/index.js +2 -0
- package/lib/mjs/components/tags/Tags.d.ts +19 -0
- package/lib/mjs/components/tags/Tags.form.d.ts +3 -0
- package/lib/mjs/components/tags/Tags.form.js +10 -0
- package/lib/mjs/components/tags/Tags.js +158 -0
- package/lib/mjs/components/tags/editForm/Tags.edit.data.d.ts +51 -0
- package/lib/mjs/components/tags/editForm/Tags.edit.data.js +37 -0
- package/lib/mjs/components/tags/fixtures/comp1.d.ts +20 -0
- package/lib/mjs/components/tags/fixtures/comp1.js +18 -0
- package/lib/mjs/components/tags/fixtures/comp2.d.ts +10 -0
- package/lib/mjs/components/tags/fixtures/comp2.js +9 -0
- package/lib/mjs/components/tags/fixtures/comp3.d.ts +23 -0
- package/lib/mjs/components/tags/fixtures/comp3.js +18 -0
- package/lib/mjs/components/tags/fixtures/comp4.d.ts +9 -0
- package/lib/mjs/components/tags/fixtures/comp4.js +8 -0
- package/lib/mjs/components/tags/fixtures/comp5.d.ts +24 -0
- package/lib/mjs/components/tags/fixtures/comp5.js +22 -0
- package/lib/mjs/components/tags/fixtures/index.d.ts +6 -0
- package/lib/mjs/components/tags/fixtures/index.js +6 -0
- package/lib/mjs/components/tags/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/tags/fixtures/values.js +4 -0
- package/lib/mjs/components/textarea/TextArea.d.ts +36 -0
- package/lib/mjs/components/textarea/TextArea.form.d.ts +3 -0
- package/lib/mjs/components/textarea/TextArea.form.js +15 -0
- package/lib/mjs/components/textarea/TextArea.js +530 -0
- package/lib/mjs/components/textarea/editForm/TextArea.edit.display.d.ts +355 -0
- package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +258 -0
- package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.d.ts +10 -0
- package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.js +20 -0
- package/lib/mjs/components/textarea/fixtures/comp1.d.ts +31 -0
- package/lib/mjs/components/textarea/fixtures/comp1.js +29 -0
- package/lib/mjs/components/textarea/fixtures/comp2.d.ts +29 -0
- package/lib/mjs/components/textarea/fixtures/comp2.js +27 -0
- package/lib/mjs/components/textarea/fixtures/comp3.d.ts +27 -0
- package/lib/mjs/components/textarea/fixtures/comp3.js +27 -0
- package/lib/mjs/components/textarea/fixtures/index.d.ts +4 -0
- package/lib/mjs/components/textarea/fixtures/index.js +4 -0
- package/lib/mjs/components/textarea/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/textarea/fixtures/values.js +4 -0
- package/lib/mjs/components/textfield/TextField.d.ts +38 -0
- package/lib/mjs/components/textfield/TextField.form.d.ts +3 -0
- package/lib/mjs/components/textfield/TextField.form.js +20 -0
- package/lib/mjs/components/textfield/TextField.js +218 -0
- package/lib/mjs/components/textfield/editForm/TextField.edit.data.d.ts +46 -0
- package/lib/mjs/components/textfield/editForm/TextField.edit.data.js +56 -0
- package/lib/mjs/components/textfield/editForm/TextField.edit.display.d.ts +248 -0
- package/lib/mjs/components/textfield/editForm/TextField.edit.display.js +203 -0
- package/lib/mjs/components/textfield/editForm/TextField.edit.validation.d.ts +10 -0
- package/lib/mjs/components/textfield/editForm/TextField.edit.validation.js +47 -0
- package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +47 -0
- package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +46 -0
- package/lib/mjs/components/textfield/fixtures/comp1.d.ts +33 -0
- package/lib/mjs/components/textfield/fixtures/comp1.js +31 -0
- package/lib/mjs/components/textfield/fixtures/comp2.d.ts +33 -0
- package/lib/mjs/components/textfield/fixtures/comp2.js +31 -0
- package/lib/mjs/components/textfield/fixtures/comp3.d.ts +33 -0
- package/lib/mjs/components/textfield/fixtures/comp3.js +31 -0
- package/lib/mjs/components/textfield/fixtures/comp4.d.ts +23 -0
- package/lib/mjs/components/textfield/fixtures/comp4.js +25 -0
- package/lib/mjs/components/textfield/fixtures/comp5.d.ts +12 -0
- package/lib/mjs/components/textfield/fixtures/comp5.js +11 -0
- package/lib/mjs/components/textfield/fixtures/comp6.d.ts +25 -0
- package/lib/mjs/components/textfield/fixtures/comp6.js +19 -0
- package/lib/mjs/components/textfield/fixtures/comp7.d.ts +37 -0
- package/lib/mjs/components/textfield/fixtures/comp7.js +36 -0
- package/lib/mjs/components/textfield/fixtures/index.d.ts +9 -0
- package/lib/mjs/components/textfield/fixtures/index.js +9 -0
- package/lib/mjs/components/textfield/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/textfield/fixtures/values.js +5 -0
- package/lib/mjs/components/time/Time.d.ts +16 -0
- package/lib/mjs/components/time/Time.form.d.ts +3 -0
- package/lib/mjs/components/time/Time.form.js +15 -0
- package/lib/mjs/components/time/Time.js +142 -0
- package/lib/mjs/components/time/editForm/Time.edit.data.d.ts +10 -0
- package/lib/mjs/components/time/editForm/Time.edit.data.js +11 -0
- package/lib/mjs/components/time/editForm/Time.edit.display.d.ts +52 -0
- package/lib/mjs/components/time/editForm/Time.edit.display.js +40 -0
- package/lib/mjs/components/time/fixtures/comp1.d.ts +24 -0
- package/lib/mjs/components/time/fixtures/comp1.js +22 -0
- package/lib/mjs/components/time/fixtures/comp2.d.ts +10 -0
- package/lib/mjs/components/time/fixtures/comp2.js +9 -0
- package/lib/mjs/components/time/fixtures/comp3.d.ts +15 -0
- package/lib/mjs/components/time/fixtures/comp3.js +16 -0
- package/lib/mjs/components/time/fixtures/index.d.ts +6 -0
- package/lib/mjs/components/time/fixtures/index.js +6 -0
- package/lib/mjs/components/time/fixtures/timeForm.d.ts +47 -0
- package/lib/mjs/components/time/fixtures/timeForm.js +50 -0
- package/lib/mjs/components/time/fixtures/timeForm2.d.ts +38 -0
- package/lib/mjs/components/time/fixtures/timeForm2.js +42 -0
- package/lib/mjs/components/time/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/time/fixtures/values.js +5 -0
- package/lib/mjs/components/tree/Node.d.ts +55 -0
- package/lib/mjs/components/tree/Node.js +179 -0
- package/lib/mjs/components/tree/Tree.d.ts +47 -0
- package/lib/mjs/components/tree/Tree.form.d.ts +3 -0
- package/lib/mjs/components/tree/Tree.form.js +10 -0
- package/lib/mjs/components/tree/Tree.js +385 -0
- package/lib/mjs/components/tree/editForm/Tree.edit.data.d.ts +5 -0
- package/lib/mjs/components/tree/editForm/Tree.edit.data.js +7 -0
- package/lib/mjs/components/tree/fixtures/comp1.d.ts +23 -0
- package/lib/mjs/components/tree/fixtures/comp1.js +22 -0
- package/lib/mjs/components/tree/fixtures/comp2.d.ts +116 -0
- package/lib/mjs/components/tree/fixtures/comp2.js +80 -0
- package/lib/mjs/components/tree/fixtures/comp3.d.ts +24 -0
- package/lib/mjs/components/tree/fixtures/comp3.js +23 -0
- package/lib/mjs/components/tree/fixtures/comp4.d.ts +42 -0
- package/lib/mjs/components/tree/fixtures/comp4.js +45 -0
- package/lib/mjs/components/tree/fixtures/index.d.ts +5 -0
- package/lib/mjs/components/tree/fixtures/index.js +5 -0
- package/lib/mjs/components/unknown/Unknown.d.ts +28 -0
- package/lib/mjs/components/unknown/Unknown.form.d.ts +34 -0
- package/lib/mjs/components/unknown/Unknown.form.js +19 -0
- package/lib/mjs/components/unknown/Unknown.js +24 -0
- package/lib/mjs/components/unknown/editForm/Unknown.edit.display.d.ts +24 -0
- package/lib/mjs/components/unknown/editForm/Unknown.edit.display.js +25 -0
- package/lib/mjs/components/unknown/fixtures/comp1.d.ts +7 -0
- package/lib/mjs/components/unknown/fixtures/comp1.js +6 -0
- package/lib/mjs/components/unknown/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/unknown/fixtures/index.js +2 -0
- package/lib/mjs/components/url/Url.d.ts +3 -0
- package/lib/mjs/components/url/Url.form.d.ts +3 -0
- package/lib/mjs/components/url/Url.form.js +20 -0
- package/lib/mjs/components/url/Url.js +33 -0
- package/lib/mjs/components/url/editForm/Url.edit.data.d.ts +5 -0
- package/lib/mjs/components/url/editForm/Url.edit.data.js +6 -0
- package/lib/mjs/components/url/editForm/Url.edit.display.d.ts +5 -0
- package/lib/mjs/components/url/editForm/Url.edit.display.js +18 -0
- package/lib/mjs/components/url/editForm/Url.edit.validation.d.ts +5 -0
- package/lib/mjs/components/url/editForm/Url.edit.validation.js +10 -0
- package/lib/mjs/components/url/fixtures/comp1.d.ts +26 -0
- package/lib/mjs/components/url/fixtures/comp1.js +24 -0
- package/lib/mjs/components/url/fixtures/comp2.d.ts +26 -0
- package/lib/mjs/components/url/fixtures/comp2.js +21 -0
- package/lib/mjs/components/url/fixtures/index.d.ts +3 -0
- package/lib/mjs/components/url/fixtures/index.js +3 -0
- package/lib/mjs/components/url/fixtures/values.d.ts +2 -0
- package/lib/mjs/components/url/fixtures/values.js +4 -0
- package/lib/mjs/components/well/Well.d.ts +13 -0
- package/lib/mjs/components/well/Well.form.d.ts +3 -0
- package/lib/mjs/components/well/Well.form.js +10 -0
- package/lib/mjs/components/well/Well.js +35 -0
- package/lib/mjs/components/well/editForm/Well.edit.display.d.ts +5 -0
- package/lib/mjs/components/well/editForm/Well.edit.display.js +30 -0
- package/lib/mjs/components/well/fixtures/comp1.d.ts +43 -0
- package/lib/mjs/components/well/fixtures/comp1.js +75 -0
- package/lib/mjs/components/well/fixtures/index.d.ts +2 -0
- package/lib/mjs/components/well/fixtures/index.js +2 -0
- package/lib/mjs/displays/Displays.d.ts +18 -0
- package/lib/mjs/displays/Displays.js +24 -0
- package/lib/mjs/displays/index.d.ts +2 -0
- package/lib/mjs/displays/index.js +2 -0
- package/lib/mjs/formio.embed.d.ts +1 -0
- package/lib/mjs/formio.embed.js +2 -0
- package/lib/mjs/formio.form.d.ts +22 -0
- package/lib/mjs/formio.form.js +138 -0
- package/lib/mjs/i18n.d.ts +13 -0
- package/lib/mjs/i18n.js +14 -0
- package/lib/mjs/index.d.ts +4 -0
- package/lib/mjs/index.js +13 -0
- package/lib/mjs/package.json +3 -0
- package/lib/mjs/pdf.image.d.ts +2 -0
- package/lib/mjs/pdf.image.js +94 -0
- package/lib/mjs/polyfills/ElementPolyfill.d.ts +0 -0
- package/lib/mjs/polyfills/ElementPolyfill.js +338 -0
- package/lib/mjs/polyfills/index.d.ts +1 -0
- package/lib/mjs/polyfills/index.js +2 -0
- package/lib/mjs/providers/Providers.d.ts +64 -0
- package/lib/mjs/providers/Providers.js +29 -0
- package/lib/mjs/providers/address/AddressProvider.d.ts +17 -0
- package/lib/mjs/providers/address/AddressProvider.js +54 -0
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +12 -0
- package/lib/mjs/providers/address/AzureAddressProvider.js +27 -0
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +7 -0
- package/lib/mjs/providers/address/CustomAddressProvider.js +22 -0
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +18 -0
- package/lib/mjs/providers/address/GoogleAddressProvider.js +110 -0
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +11 -0
- package/lib/mjs/providers/address/NominatimAddressProvider.js +27 -0
- package/lib/mjs/providers/address/index.d.ts +6 -0
- package/lib/mjs/providers/address/index.js +10 -0
- package/lib/mjs/providers/auth/index.d.ts +2 -0
- package/lib/mjs/providers/auth/index.js +1 -0
- package/lib/mjs/providers/index.d.ts +2 -0
- package/lib/mjs/providers/index.js +2 -0
- package/lib/mjs/providers/processor/fileProcessor.d.ts +2 -0
- package/lib/mjs/providers/processor/fileProcessor.js +39 -0
- package/lib/mjs/providers/storage/azure.d.ts +8 -0
- package/lib/mjs/providers/storage/azure.js +25 -0
- package/lib/mjs/providers/storage/base64.d.ts +10 -0
- package/lib/mjs/providers/storage/base64.js +30 -0
- package/lib/mjs/providers/storage/dropbox.d.ts +8 -0
- package/lib/mjs/providers/storage/dropbox.js +56 -0
- package/lib/mjs/providers/storage/googleDrive.d.ts +8 -0
- package/lib/mjs/providers/storage/googleDrive.js +55 -0
- package/lib/mjs/providers/storage/index.d.ts +15 -0
- package/lib/mjs/providers/storage/index.js +14 -0
- package/lib/mjs/providers/storage/indexeddb.d.ts +11 -0
- package/lib/mjs/providers/storage/indexeddb.js +119 -0
- package/lib/mjs/providers/storage/s3.d.ts +8 -0
- package/lib/mjs/providers/storage/s3.js +45 -0
- package/lib/mjs/providers/storage/uploadAdapter.d.ts +1 -0
- package/lib/mjs/providers/storage/uploadAdapter.js +55 -0
- package/lib/mjs/providers/storage/url.d.ts +11 -0
- package/lib/mjs/providers/storage/url.js +133 -0
- package/lib/mjs/providers/storage/xhr.d.ts +7 -0
- package/lib/mjs/providers/storage/xhr.js +94 -0
- package/lib/mjs/templates/Templates.d.ts +11 -0
- package/lib/mjs/templates/Templates.js +41 -0
- package/lib/mjs/templates/index.d.ts +4 -0
- package/lib/mjs/templates/index.js +4 -0
- package/lib/mjs/translations/en.d.ts +66 -0
- package/lib/mjs/translations/en.js +65 -0
- package/lib/mjs/utils/ChoicesWrapper.d.ts +37 -0
- package/lib/mjs/utils/ChoicesWrapper.js +169 -0
- package/lib/mjs/utils/Evaluator.d.ts +4 -0
- package/lib/mjs/utils/Evaluator.js +93 -0
- package/lib/mjs/utils/builder.d.ts +22 -0
- package/lib/mjs/utils/builder.js +79 -0
- package/lib/mjs/utils/calendarUtils.d.ts +41 -0
- package/lib/mjs/utils/calendarUtils.js +128 -0
- package/lib/mjs/utils/conditionOperators/ConditionOperator.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/ConditionOperator.js +23 -0
- package/lib/mjs/utils/conditionOperators/DateGreaterThan.d.ts +13 -0
- package/lib/mjs/utils/conditionOperators/DateGreaterThan.js +31 -0
- package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.js +12 -0
- package/lib/mjs/utils/conditionOperators/DateLessThan.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/DateLessThan.js +12 -0
- package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.js +12 -0
- package/lib/mjs/utils/conditionOperators/EndsWith.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/EndsWith.js +13 -0
- package/lib/mjs/utils/conditionOperators/GreaterThan.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/GreaterThan.js +13 -0
- package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.js +13 -0
- package/lib/mjs/utils/conditionOperators/Includes.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/Includes.js +13 -0
- package/lib/mjs/utils/conditionOperators/IsDateEqual.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/IsDateEqual.js +12 -0
- package/lib/mjs/utils/conditionOperators/IsEmptyValue.d.ts +9 -0
- package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +24 -0
- package/lib/mjs/utils/conditionOperators/IsEqualTo.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/IsEqualTo.js +24 -0
- package/lib/mjs/utils/conditionOperators/IsNotDateEqual.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/IsNotDateEqual.js +12 -0
- package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.js +12 -0
- package/lib/mjs/utils/conditionOperators/IsNotEqualTo.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/IsNotEqualTo.js +13 -0
- package/lib/mjs/utils/conditionOperators/LessThan.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/LessThan.js +13 -0
- package/lib/mjs/utils/conditionOperators/LessThanOrEqual.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/LessThanOrEqual.js +13 -0
- package/lib/mjs/utils/conditionOperators/NotIncludes.d.ts +4 -0
- package/lib/mjs/utils/conditionOperators/NotIncludes.js +12 -0
- package/lib/mjs/utils/conditionOperators/StartsWith.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/StartsWith.js +13 -0
- package/lib/mjs/utils/conditionOperators/index.d.ts +7 -0
- package/lib/mjs/utils/conditionOperators/index.js +39 -0
- package/lib/mjs/utils/formUtils.d.ts +173 -0
- package/lib/mjs/utils/formUtils.js +560 -0
- package/lib/mjs/utils/index.d.ts +2 -0
- package/lib/mjs/utils/index.js +5 -0
- package/lib/mjs/utils/jsonlogic/operators.d.ts +1 -0
- package/lib/mjs/utils/jsonlogic/operators.js +262 -0
- package/lib/mjs/utils/utils.d.ts +364 -0
- package/lib/mjs/utils/utils.js +1368 -0
- package/lib/mjs/validator/Rules.d.ts +8 -0
- package/lib/mjs/validator/Rules.js +17 -0
- package/lib/mjs/validator/Validator.d.ts +200 -0
- package/lib/mjs/validator/Validator.js +1081 -0
- package/lib/mjs/validator/conjunctions/index.d.ts +7 -0
- package/lib/mjs/validator/conjunctions/index.js +16 -0
- package/lib/mjs/validator/operators/index.d.ts +7 -0
- package/lib/mjs/validator/operators/index.js +16 -0
- package/lib/mjs/validator/quickRules/index.d.ts +7 -0
- package/lib/mjs/validator/quickRules/index.js +16 -0
- package/lib/mjs/validator/rules/Custom.d.ts +6 -0
- package/lib/mjs/validator/rules/Custom.js +22 -0
- package/lib/mjs/validator/rules/Date.d.ts +6 -0
- package/lib/mjs/validator/rules/Date.js +17 -0
- package/lib/mjs/validator/rules/Day.d.ts +6 -0
- package/lib/mjs/validator/rules/Day.js +50 -0
- package/lib/mjs/validator/rules/Email.d.ts +6 -0
- package/lib/mjs/validator/rules/Email.js +16 -0
- package/lib/mjs/validator/rules/JSON.d.ts +6 -0
- package/lib/mjs/validator/rules/JSON.js +21 -0
- package/lib/mjs/validator/rules/Mask.d.ts +1 -0
- package/lib/mjs/validator/rules/Mask.js +23 -0
- package/lib/mjs/validator/rules/Max.d.ts +6 -0
- package/lib/mjs/validator/rules/Max.js +13 -0
- package/lib/mjs/validator/rules/MaxDate.d.ts +1 -0
- package/lib/mjs/validator/rules/MaxDate.js +25 -0
- package/lib/mjs/validator/rules/MaxLength.d.ts +6 -0
- package/lib/mjs/validator/rules/MaxLength.js +12 -0
- package/lib/mjs/validator/rules/MaxWords.d.ts +6 -0
- package/lib/mjs/validator/rules/MaxWords.js +12 -0
- package/lib/mjs/validator/rules/MaxYear.d.ts +6 -0
- package/lib/mjs/validator/rules/MaxYear.js +14 -0
- package/lib/mjs/validator/rules/Min.d.ts +6 -0
- package/lib/mjs/validator/rules/Min.js +13 -0
- package/lib/mjs/validator/rules/MinDate.d.ts +1 -0
- package/lib/mjs/validator/rules/MinDate.js +21 -0
- package/lib/mjs/validator/rules/MinLength.d.ts +6 -0
- package/lib/mjs/validator/rules/MinLength.js +12 -0
- package/lib/mjs/validator/rules/MinWords.d.ts +6 -0
- package/lib/mjs/validator/rules/MinWords.js +12 -0
- package/lib/mjs/validator/rules/MinYear.d.ts +6 -0
- package/lib/mjs/validator/rules/MinYear.js +14 -0
- package/lib/mjs/validator/rules/Pattern.d.ts +6 -0
- package/lib/mjs/validator/rules/Pattern.js +12 -0
- package/lib/mjs/validator/rules/Required.d.ts +6 -0
- package/lib/mjs/validator/rules/Required.js +9 -0
- package/lib/mjs/validator/rules/Rule.d.ts +8 -0
- package/lib/mjs/validator/rules/Rule.js +10 -0
- package/lib/mjs/validator/rules/Select.d.ts +1 -0
- package/lib/mjs/validator/rules/Select.js +87 -0
- package/lib/mjs/validator/rules/Time.d.ts +1 -0
- package/lib/mjs/validator/rules/Time.js +10 -0
- package/lib/mjs/validator/rules/Unique.d.ts +1 -0
- package/lib/mjs/validator/rules/Unique.js +61 -0
- package/lib/mjs/validator/rules/Url.d.ts +6 -0
- package/lib/mjs/validator/rules/Url.js +15 -0
- package/lib/mjs/validator/rules/index.d.ts +23 -0
- package/lib/mjs/validator/rules/index.js +47 -0
- package/lib/mjs/validator/transformers/index.d.ts +7 -0
- package/lib/mjs/validator/transformers/index.js +16 -0
- package/lib/mjs/validator/valueSources/index.d.ts +7 -0
- package/lib/mjs/validator/valueSources/index.js +16 -0
- package/lib/mjs/widgets/CalendarWidget.d.ts +96 -0
- package/lib/mjs/widgets/CalendarWidget.js +457 -0
- package/lib/mjs/widgets/InputWidget.d.ts +24 -0
- package/lib/mjs/widgets/InputWidget.js +69 -0
- package/lib/mjs/widgets/index.d.ts +7 -0
- package/lib/mjs/widgets/index.js +6 -0
- package/package.json +178 -0
- package/types/builders.d.ts +7 -0
- package/types/components/_classes/component/component.d.ts +174 -0
- package/types/components/_classes/componentmodal/componentmodal.d.ts +31 -0
- package/types/components/_classes/field/field.d.ts +5 -0
- package/types/components/_classes/input/input.d.ts +30 -0
- package/types/components/_classes/multivalue/multivalue.d.ts +16 -0
- package/types/components/_classes/nested/nestedComponent.d.ts +61 -0
- package/types/components/_classes/widgetcomponent/widgetComponent.d.ts +6 -0
- package/types/components/components.d.ts +69 -0
- package/types/components/schema.d.ts +240 -0
- package/types/displays.d.ts +7 -0
- package/types/element.d.ts +45 -0
- package/types/eventEmitter.d.ts +3 -0
- package/types/form.d.ts +18 -0
- package/types/formbuilder.d.ts +6 -0
- package/types/formio.d.ts +119 -0
- package/types/index.d.ts +17 -0
- package/types/providers.d.ts +8 -0
- package/types/rulesEngine/conjunctions.d.ts +7 -0
- package/types/rulesEngine/operators.d.ts +7 -0
- package/types/rulesEngine/quckRules.d.ts +7 -0
- package/types/rulesEngine/rules.d.ts +7 -0
- package/types/rulesEngine/transformers.d.ts +7 -0
- package/types/rulesEngine/valueSources.d.ts +7 -0
- package/types/templates.d.ts +8 -0
- package/types/utils.d.ts +154 -0
- package/types/widgets.d.ts +4 -0
@@ -0,0 +1,1468 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* global $ */
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
4
|
+
if (k2 === undefined) k2 = k;
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
8
|
+
}
|
9
|
+
Object.defineProperty(o, k2, desc);
|
10
|
+
}) : (function(o, m, k, k2) {
|
11
|
+
if (k2 === undefined) k2 = k;
|
12
|
+
o[k2] = m[k];
|
13
|
+
}));
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
16
|
+
}) : function(o, v) {
|
17
|
+
o["default"] = v;
|
18
|
+
});
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
21
|
+
};
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
23
|
+
if (mod && mod.__esModule) return mod;
|
24
|
+
var result = {};
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
26
|
+
__setModuleDefault(result, mod);
|
27
|
+
return result;
|
28
|
+
};
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
31
|
+
};
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
33
|
+
exports.observeOverload = exports.withSwitch = exports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToMoment = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.momentDate = exports.loadZones = exports.shouldLoadZones = exports.zonesLoaded = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = exports.moment = exports.ConditionOperators = exports.jsonLogic = void 0;
|
34
|
+
exports._ = exports.getFocusableElements = exports.isInsideScopingComponent = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.hasInvalidComponent = exports.getArrayFromComponentPath = exports.isInputComponent = exports.interpolate = exports.Evaluator = exports.fastCloneDeep = exports.sanitize = exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = void 0;
|
35
|
+
const lodash_1 = __importDefault(require("lodash"));
|
36
|
+
exports._ = lodash_1.default;
|
37
|
+
const fetch_ponyfill_1 = __importDefault(require("fetch-ponyfill"));
|
38
|
+
const json_logic_js_1 = __importDefault(require("json-logic-js"));
|
39
|
+
exports.jsonLogic = json_logic_js_1.default;
|
40
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone/moment-timezone"));
|
41
|
+
const jstimezonedetect_1 = __importDefault(require("jstimezonedetect"));
|
42
|
+
const operators_1 = require("./jsonlogic/operators");
|
43
|
+
const native_promise_only_1 = __importDefault(require("native-promise-only"));
|
44
|
+
const dompurify_1 = __importDefault(require("dompurify"));
|
45
|
+
const formUtils_1 = require("./formUtils");
|
46
|
+
const Evaluator_1 = __importDefault(require("./Evaluator"));
|
47
|
+
exports.Evaluator = Evaluator_1.default;
|
48
|
+
const conditionOperators_1 = __importDefault(require("./conditionOperators"));
|
49
|
+
exports.ConditionOperators = conditionOperators_1.default;
|
50
|
+
const interpolate = Evaluator_1.default.interpolate;
|
51
|
+
exports.interpolate = interpolate;
|
52
|
+
const { fetch } = (0, fetch_ponyfill_1.default)({
|
53
|
+
Promise: native_promise_only_1.default
|
54
|
+
});
|
55
|
+
__exportStar(require("./formUtils"), exports);
|
56
|
+
// Configure JsonLogic
|
57
|
+
operators_1.lodashOperators.forEach((name) => json_logic_js_1.default.add_operation(`_${name}`, lodash_1.default[name]));
|
58
|
+
// Retrieve Any Date
|
59
|
+
json_logic_js_1.default.add_operation('getDate', (date) => {
|
60
|
+
return (0, moment_timezone_1.default)(date).toISOString();
|
61
|
+
});
|
62
|
+
// Set Relative Minimum Date
|
63
|
+
json_logic_js_1.default.add_operation('relativeMinDate', (relativeMinDate) => {
|
64
|
+
return (0, moment_timezone_1.default)().subtract(relativeMinDate, 'days').toISOString();
|
65
|
+
});
|
66
|
+
// Set Relative Maximum Date
|
67
|
+
json_logic_js_1.default.add_operation('relativeMaxDate', (relativeMaxDate) => {
|
68
|
+
return (0, moment_timezone_1.default)().add(relativeMaxDate, 'days').toISOString();
|
69
|
+
});
|
70
|
+
exports.moment = __importStar(require("moment-timezone/moment-timezone"));
|
71
|
+
function setPathToComponentAndPerentSchema(component) {
|
72
|
+
component.path = getComponentPath(component);
|
73
|
+
const dataParent = getDataParentComponent(component);
|
74
|
+
if (dataParent && typeof dataParent === 'object') {
|
75
|
+
dataParent.path = getComponentPath(dataParent);
|
76
|
+
}
|
77
|
+
}
|
78
|
+
/**
|
79
|
+
* Evaluate a method.
|
80
|
+
*
|
81
|
+
* @param func
|
82
|
+
* @param args
|
83
|
+
* @return {*}
|
84
|
+
*/
|
85
|
+
function evaluate(func, args, ret, tokenize) {
|
86
|
+
let returnVal = null;
|
87
|
+
const component = args.component ? args.component : { key: 'unknown' };
|
88
|
+
if (!args.form && args.instance) {
|
89
|
+
args.form = lodash_1.default.get(args.instance, 'root._form', {});
|
90
|
+
}
|
91
|
+
const componentKey = component.key;
|
92
|
+
if (typeof func === 'string') {
|
93
|
+
if (ret) {
|
94
|
+
func += `;return ${ret}`;
|
95
|
+
}
|
96
|
+
if (tokenize) {
|
97
|
+
// Replace all {{ }} references with actual data.
|
98
|
+
func = func.replace(/({{\s+(.*)\s+}})/, (match, $1, $2) => {
|
99
|
+
if ($2.indexOf('data.') === 0) {
|
100
|
+
return lodash_1.default.get(args.data, $2.replace('data.', ''));
|
101
|
+
}
|
102
|
+
else if ($2.indexOf('row.') === 0) {
|
103
|
+
return lodash_1.default.get(args.row, $2.replace('row.', ''));
|
104
|
+
}
|
105
|
+
// Support legacy...
|
106
|
+
return lodash_1.default.get(args.data, $2);
|
107
|
+
});
|
108
|
+
}
|
109
|
+
try {
|
110
|
+
func = Evaluator_1.default.evaluator(func, args);
|
111
|
+
args = lodash_1.default.values(args);
|
112
|
+
}
|
113
|
+
catch (err) {
|
114
|
+
console.warn(`An error occured within the custom function for ${componentKey}`, err);
|
115
|
+
returnVal = null;
|
116
|
+
func = false;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
if (typeof func === 'function') {
|
120
|
+
try {
|
121
|
+
returnVal = Evaluator_1.default.evaluate(func, args);
|
122
|
+
}
|
123
|
+
catch (err) {
|
124
|
+
returnVal = null;
|
125
|
+
console.warn(`An error occured within custom function for ${componentKey}`, err);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
else if (typeof func === 'object') {
|
129
|
+
try {
|
130
|
+
returnVal = json_logic_js_1.default.apply(func, args);
|
131
|
+
}
|
132
|
+
catch (err) {
|
133
|
+
returnVal = null;
|
134
|
+
console.warn(`An error occured within custom function for ${componentKey}`, err);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
else if (func) {
|
138
|
+
console.warn(`Unknown function type for ${componentKey}`);
|
139
|
+
}
|
140
|
+
return returnVal;
|
141
|
+
}
|
142
|
+
exports.evaluate = evaluate;
|
143
|
+
function getRandomComponentId() {
|
144
|
+
return `e${Math.random().toString(36).substring(7)}`;
|
145
|
+
}
|
146
|
+
exports.getRandomComponentId = getRandomComponentId;
|
147
|
+
/**
|
148
|
+
* Get a property value of an element.
|
149
|
+
*
|
150
|
+
* @param style
|
151
|
+
* @param prop
|
152
|
+
* @return {number}
|
153
|
+
*/
|
154
|
+
function getPropertyValue(style, prop) {
|
155
|
+
let value = style.getPropertyValue(prop);
|
156
|
+
value = value ? value.replace(/[^0-9.]/g, '') : '0';
|
157
|
+
return parseFloat(value);
|
158
|
+
}
|
159
|
+
exports.getPropertyValue = getPropertyValue;
|
160
|
+
/**
|
161
|
+
* Get an elements bounding rectagle.
|
162
|
+
*
|
163
|
+
* @param element
|
164
|
+
* @return {{x: string, y: string, width: string, height: string}}
|
165
|
+
*/
|
166
|
+
function getElementRect(element) {
|
167
|
+
const style = window.getComputedStyle(element, null);
|
168
|
+
return {
|
169
|
+
x: getPropertyValue(style, 'left'),
|
170
|
+
y: getPropertyValue(style, 'top'),
|
171
|
+
width: getPropertyValue(style, 'width'),
|
172
|
+
height: getPropertyValue(style, 'height')
|
173
|
+
};
|
174
|
+
}
|
175
|
+
exports.getElementRect = getElementRect;
|
176
|
+
/**
|
177
|
+
* Determines the boolean value of a setting.
|
178
|
+
*
|
179
|
+
* @param value
|
180
|
+
* @return {boolean}
|
181
|
+
*/
|
182
|
+
function boolValue(value) {
|
183
|
+
if (lodash_1.default.isBoolean(value)) {
|
184
|
+
return value;
|
185
|
+
}
|
186
|
+
else if (lodash_1.default.isString(value)) {
|
187
|
+
return (value.toLowerCase() === 'true');
|
188
|
+
}
|
189
|
+
else {
|
190
|
+
return !!value;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
exports.boolValue = boolValue;
|
194
|
+
/**
|
195
|
+
* Check to see if an ID is a mongoID.
|
196
|
+
* @param text
|
197
|
+
* @return {Array|{index: number, input: string}|Boolean|*}
|
198
|
+
*/
|
199
|
+
function isMongoId(text) {
|
200
|
+
return text.toString().match(/^[0-9a-fA-F]{24}$/);
|
201
|
+
}
|
202
|
+
exports.isMongoId = isMongoId;
|
203
|
+
/**
|
204
|
+
* Checks the calculated value for a provided component and data.
|
205
|
+
*
|
206
|
+
* @param {Object} component
|
207
|
+
* The component to check for the calculated value.
|
208
|
+
* @param {Object} submission
|
209
|
+
* A submission object.
|
210
|
+
* @param data
|
211
|
+
* The full submission data.
|
212
|
+
*/
|
213
|
+
function checkCalculated(component, submission, rowData) {
|
214
|
+
// Process calculated value stuff if present.
|
215
|
+
if (component.calculateValue) {
|
216
|
+
lodash_1.default.set(rowData, component.key, evaluate(component.calculateValue, {
|
217
|
+
value: undefined,
|
218
|
+
data: submission ? submission.data : rowData,
|
219
|
+
row: rowData,
|
220
|
+
util: this,
|
221
|
+
component
|
222
|
+
}, 'value'));
|
223
|
+
}
|
224
|
+
}
|
225
|
+
exports.checkCalculated = checkCalculated;
|
226
|
+
/**
|
227
|
+
* Check if a simple conditional evaluates to true.
|
228
|
+
*
|
229
|
+
* @param condition
|
230
|
+
* @param condition
|
231
|
+
* @param row
|
232
|
+
* @param data
|
233
|
+
* @param instance
|
234
|
+
* @returns {boolean}
|
235
|
+
*/
|
236
|
+
function checkSimpleConditional(component, condition, row, data, instance) {
|
237
|
+
if (condition.when) {
|
238
|
+
const value = getComponentActualValue(condition.when, data, row);
|
239
|
+
const eq = String(condition.eq);
|
240
|
+
const show = String(condition.show);
|
241
|
+
// Special check for selectboxes component.
|
242
|
+
if (lodash_1.default.isObject(value) && lodash_1.default.has(value, condition.eq)) {
|
243
|
+
return String(value[condition.eq]) === show;
|
244
|
+
}
|
245
|
+
// FOR-179 - Check for multiple values.
|
246
|
+
if (Array.isArray(value) && value.map(String).includes(eq)) {
|
247
|
+
return show === 'true';
|
248
|
+
}
|
249
|
+
return (String(value) === eq) === (show === 'true');
|
250
|
+
}
|
251
|
+
else {
|
252
|
+
const { conditions = [], conjunction = 'all', show = true } = condition;
|
253
|
+
if (!conditions.length) {
|
254
|
+
return true;
|
255
|
+
}
|
256
|
+
const conditionsResult = lodash_1.default.map(conditions, (cond) => {
|
257
|
+
const { value: comparedValue, operator, component: conditionComponentPath } = cond;
|
258
|
+
if (!conditionComponentPath) {
|
259
|
+
return true;
|
260
|
+
}
|
261
|
+
const value = getComponentActualValue(conditionComponentPath, data, row);
|
262
|
+
const СonditionOperator = conditionOperators_1.default[operator];
|
263
|
+
return СonditionOperator
|
264
|
+
? new СonditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })
|
265
|
+
: true;
|
266
|
+
});
|
267
|
+
let result = false;
|
268
|
+
switch (conjunction) {
|
269
|
+
case 'any':
|
270
|
+
result = lodash_1.default.some(conditionsResult, res => !!res);
|
271
|
+
break;
|
272
|
+
default:
|
273
|
+
result = lodash_1.default.every(conditionsResult, res => !!res);
|
274
|
+
}
|
275
|
+
return show ? result : !result;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
exports.checkSimpleConditional = checkSimpleConditional;
|
279
|
+
function getComponentActualValue(compPath, data, row) {
|
280
|
+
let value = null;
|
281
|
+
if (row) {
|
282
|
+
value = (0, formUtils_1.getValue)({ data: row }, compPath);
|
283
|
+
}
|
284
|
+
if (data && lodash_1.default.isNil(value)) {
|
285
|
+
value = (0, formUtils_1.getValue)({ data }, compPath);
|
286
|
+
}
|
287
|
+
// FOR-400 - Fix issue where falsey values were being evaluated as show=true
|
288
|
+
if (lodash_1.default.isNil(value) || (lodash_1.default.isObject(value) && lodash_1.default.isEmpty(value))) {
|
289
|
+
value = '';
|
290
|
+
}
|
291
|
+
return value;
|
292
|
+
}
|
293
|
+
exports.getComponentActualValue = getComponentActualValue;
|
294
|
+
/**
|
295
|
+
* Check custom javascript conditional.
|
296
|
+
*
|
297
|
+
* @param component
|
298
|
+
* @param custom
|
299
|
+
* @param row
|
300
|
+
* @param data
|
301
|
+
* @returns {*}
|
302
|
+
*/
|
303
|
+
function checkCustomConditional(component, custom, row, data, form, variable, onError, instance) {
|
304
|
+
if (typeof custom === 'string') {
|
305
|
+
custom = `var ${variable} = true; ${custom}; return ${variable};`;
|
306
|
+
}
|
307
|
+
const value = (instance && instance.evaluate) ?
|
308
|
+
instance.evaluate(custom, { row, data, form }) :
|
309
|
+
evaluate(custom, { row, data, form });
|
310
|
+
if (value === null) {
|
311
|
+
return onError;
|
312
|
+
}
|
313
|
+
return value;
|
314
|
+
}
|
315
|
+
exports.checkCustomConditional = checkCustomConditional;
|
316
|
+
function checkJsonConditional(component, json, row, data, form, onError) {
|
317
|
+
try {
|
318
|
+
return json_logic_js_1.default.apply(json, {
|
319
|
+
data,
|
320
|
+
row,
|
321
|
+
form,
|
322
|
+
_: lodash_1.default,
|
323
|
+
});
|
324
|
+
}
|
325
|
+
catch (err) {
|
326
|
+
console.warn(`An error occurred in jsonLogic advanced condition for ${component.key}`, err);
|
327
|
+
return onError;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
exports.checkJsonConditional = checkJsonConditional;
|
331
|
+
function getRow(component, row, instance, conditional) {
|
332
|
+
var _a;
|
333
|
+
const condition = conditional || component.conditional;
|
334
|
+
// If no component's instance passed (happens only in 6.x server), calculate its path based on the schema
|
335
|
+
if (!instance) {
|
336
|
+
instance = lodash_1.default.cloneDeep(component);
|
337
|
+
setPathToComponentAndPerentSchema(instance);
|
338
|
+
}
|
339
|
+
const dataParent = getDataParentComponent(instance);
|
340
|
+
const parentPath = dataParent ? getComponentPath(dataParent) : null;
|
341
|
+
const isTriggerCondtionComponentPath = condition.when || !condition.conditions
|
342
|
+
? (_a = condition.when) === null || _a === void 0 ? void 0 : _a.startsWith(parentPath)
|
343
|
+
: lodash_1.default.some(condition.conditions, cond => cond.component.startsWith(parentPath));
|
344
|
+
if (dataParent && isTriggerCondtionComponentPath) {
|
345
|
+
const newRow = {};
|
346
|
+
lodash_1.default.set(newRow, parentPath, row);
|
347
|
+
row = newRow;
|
348
|
+
}
|
349
|
+
return row;
|
350
|
+
}
|
351
|
+
/**
|
352
|
+
* Checks the conditions for a provided component and data.
|
353
|
+
*
|
354
|
+
* @param component
|
355
|
+
* The component to check for the condition.
|
356
|
+
* @param row
|
357
|
+
* The data within a row
|
358
|
+
* @param data
|
359
|
+
* The full submission data.
|
360
|
+
*
|
361
|
+
* @returns {boolean}
|
362
|
+
*/
|
363
|
+
function checkCondition(component, row, data, form, instance) {
|
364
|
+
const { customConditional, conditional } = component;
|
365
|
+
if (customConditional) {
|
366
|
+
return checkCustomConditional(component, customConditional, row, data, form, 'show', true, instance);
|
367
|
+
}
|
368
|
+
else if (conditional && (conditional.when || lodash_1.default.some(conditional.conditions || [], condition => condition.component && condition.operator))) {
|
369
|
+
row = getRow(component, row, instance);
|
370
|
+
return checkSimpleConditional(component, conditional, row, data, instance);
|
371
|
+
}
|
372
|
+
else if (conditional && conditional.json) {
|
373
|
+
return checkJsonConditional(component, conditional.json, row, data, form, true);
|
374
|
+
}
|
375
|
+
// Default to show.
|
376
|
+
return true;
|
377
|
+
}
|
378
|
+
exports.checkCondition = checkCondition;
|
379
|
+
/**
|
380
|
+
* Test a trigger on a component.
|
381
|
+
*
|
382
|
+
* @param component
|
383
|
+
* @param action
|
384
|
+
* @param data
|
385
|
+
* @param row
|
386
|
+
* @returns {mixed}
|
387
|
+
*/
|
388
|
+
function checkTrigger(component, trigger, row, data, form, instance) {
|
389
|
+
// If trigger is empty, don't fire it
|
390
|
+
if (!trigger[trigger.type]) {
|
391
|
+
return false;
|
392
|
+
}
|
393
|
+
switch (trigger.type) {
|
394
|
+
case 'simple':
|
395
|
+
row = getRow(component, row, instance, trigger.simple);
|
396
|
+
return checkSimpleConditional(component, trigger.simple, row, data, instance);
|
397
|
+
case 'javascript':
|
398
|
+
return checkCustomConditional(component, trigger.javascript, row, data, form, 'result', false, instance);
|
399
|
+
case 'json':
|
400
|
+
return checkJsonConditional(component, trigger.json, row, data, form, false);
|
401
|
+
}
|
402
|
+
// If none of the types matched, don't fire the trigger.
|
403
|
+
return false;
|
404
|
+
}
|
405
|
+
exports.checkTrigger = checkTrigger;
|
406
|
+
function setActionProperty(component, action, result, row, data, instance) {
|
407
|
+
const property = action.property.value;
|
408
|
+
switch (action.property.type) {
|
409
|
+
case 'boolean': {
|
410
|
+
const currentValue = lodash_1.default.get(component, property, false).toString();
|
411
|
+
const newValue = action.state.toString();
|
412
|
+
if (currentValue !== newValue) {
|
413
|
+
lodash_1.default.set(component, property, newValue === 'true');
|
414
|
+
}
|
415
|
+
break;
|
416
|
+
}
|
417
|
+
case 'string': {
|
418
|
+
const evalData = {
|
419
|
+
data,
|
420
|
+
row,
|
421
|
+
component,
|
422
|
+
result,
|
423
|
+
};
|
424
|
+
const textValue = action.property.component ? action[action.property.component] : action.text;
|
425
|
+
const currentValue = lodash_1.default.get(component, property, '');
|
426
|
+
const newValue = (instance && instance.interpolate)
|
427
|
+
? instance.interpolate(textValue, evalData)
|
428
|
+
: Evaluator_1.default.interpolate(textValue, evalData);
|
429
|
+
if (newValue !== currentValue) {
|
430
|
+
lodash_1.default.set(component, property, newValue);
|
431
|
+
}
|
432
|
+
break;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
return component;
|
436
|
+
}
|
437
|
+
exports.setActionProperty = setActionProperty;
|
438
|
+
/**
|
439
|
+
* Unescape HTML characters like <, >, & and etc.
|
440
|
+
* @param str
|
441
|
+
* @returns {string}
|
442
|
+
*/
|
443
|
+
function unescapeHTML(str) {
|
444
|
+
if (typeof window === 'undefined' || !('DOMParser' in window)) {
|
445
|
+
return str;
|
446
|
+
}
|
447
|
+
const doc = new window.DOMParser().parseFromString(str, 'text/html');
|
448
|
+
return doc.documentElement.textContent;
|
449
|
+
}
|
450
|
+
exports.unescapeHTML = unescapeHTML;
|
451
|
+
/**
|
452
|
+
* Make HTML element from string
|
453
|
+
* @param str
|
454
|
+
* @param selector
|
455
|
+
* @returns {HTMLElement}
|
456
|
+
*/
|
457
|
+
function convertStringToHTMLElement(str, selector) {
|
458
|
+
const doc = new window.DOMParser().parseFromString(str, 'text/html');
|
459
|
+
return doc.body.querySelector(selector);
|
460
|
+
}
|
461
|
+
exports.convertStringToHTMLElement = convertStringToHTMLElement;
|
462
|
+
/**
|
463
|
+
* Make a filename guaranteed to be unique.
|
464
|
+
* @param name
|
465
|
+
* @param template
|
466
|
+
* @param evalContext
|
467
|
+
* @returns {string}
|
468
|
+
*/
|
469
|
+
function uniqueName(name, template, evalContext) {
|
470
|
+
template = template || '{{fileName}}-{{guid}}';
|
471
|
+
//include guid in template anyway, to prevent overwriting issue if filename matches existing file
|
472
|
+
if (!template.includes('{{guid}}')) {
|
473
|
+
template = `${template}-{{guid}}`;
|
474
|
+
}
|
475
|
+
const parts = name.split('.');
|
476
|
+
let fileName = parts.slice(0, parts.length - 1).join('.');
|
477
|
+
const extension = parts.length > 1
|
478
|
+
? `.${lodash_1.default.last(parts)}`
|
479
|
+
: '';
|
480
|
+
//allow only 100 characters from original name to avoid issues with filename length restrictions
|
481
|
+
fileName = fileName.substr(0, 100);
|
482
|
+
evalContext = Object.assign(evalContext || {}, {
|
483
|
+
fileName,
|
484
|
+
guid: guid()
|
485
|
+
});
|
486
|
+
//only letters, numbers, dots, dashes, underscores and spaces are allowed. Anything else will be replaced with dash
|
487
|
+
const uniqueName = `${Evaluator_1.default.interpolate(template, evalContext)}${extension}`.replace(/[^0-9a-zA-Z.\-_ ]/g, '-');
|
488
|
+
return uniqueName;
|
489
|
+
}
|
490
|
+
exports.uniqueName = uniqueName;
|
491
|
+
function guid() {
|
492
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
493
|
+
const r = Math.random() * 16 | 0;
|
494
|
+
const v = c === 'x'
|
495
|
+
? r
|
496
|
+
: (r & 0x3 | 0x8);
|
497
|
+
return v.toString(16);
|
498
|
+
});
|
499
|
+
}
|
500
|
+
exports.guid = guid;
|
501
|
+
/**
|
502
|
+
* Return a translated date setting.
|
503
|
+
*
|
504
|
+
* @param date
|
505
|
+
* @return {(null|Date)}
|
506
|
+
*/
|
507
|
+
function getDateSetting(date) {
|
508
|
+
if (lodash_1.default.isNil(date) || lodash_1.default.isNaN(date) || date === '') {
|
509
|
+
return null;
|
510
|
+
}
|
511
|
+
if (date instanceof Date) {
|
512
|
+
return date;
|
513
|
+
}
|
514
|
+
else if (typeof date.toDate === 'function') {
|
515
|
+
return date.isValid() ? date.toDate() : null;
|
516
|
+
}
|
517
|
+
let dateSetting = ((typeof date !== 'string') || (date.indexOf('moment(') === -1)) ? (0, moment_timezone_1.default)(date) : null;
|
518
|
+
if (dateSetting && dateSetting.isValid()) {
|
519
|
+
return dateSetting.toDate();
|
520
|
+
}
|
521
|
+
dateSetting = null;
|
522
|
+
try {
|
523
|
+
const value = Evaluator_1.default.evaluator(`return ${date};`, 'moment')(moment_timezone_1.default);
|
524
|
+
if (typeof value === 'string') {
|
525
|
+
dateSetting = (0, moment_timezone_1.default)(value);
|
526
|
+
}
|
527
|
+
else if (typeof value.toDate === 'function') {
|
528
|
+
dateSetting = (0, moment_timezone_1.default)(value.toDate().toUTCString());
|
529
|
+
}
|
530
|
+
else if (value instanceof Date) {
|
531
|
+
dateSetting = (0, moment_timezone_1.default)(value);
|
532
|
+
}
|
533
|
+
}
|
534
|
+
catch (e) {
|
535
|
+
return null;
|
536
|
+
}
|
537
|
+
if (!dateSetting) {
|
538
|
+
return null;
|
539
|
+
}
|
540
|
+
// Ensure this is a date.
|
541
|
+
if (!dateSetting.isValid()) {
|
542
|
+
return null;
|
543
|
+
}
|
544
|
+
return dateSetting.toDate();
|
545
|
+
}
|
546
|
+
exports.getDateSetting = getDateSetting;
|
547
|
+
function isValidDate(date) {
|
548
|
+
return lodash_1.default.isDate(date) && !lodash_1.default.isNaN(date.getDate());
|
549
|
+
}
|
550
|
+
exports.isValidDate = isValidDate;
|
551
|
+
/**
|
552
|
+
* Get the current timezone string.
|
553
|
+
*
|
554
|
+
* @return {string}
|
555
|
+
*/
|
556
|
+
function currentTimezone() {
|
557
|
+
if (moment_timezone_1.default.currentTimezone) {
|
558
|
+
return moment_timezone_1.default.currentTimezone;
|
559
|
+
}
|
560
|
+
moment_timezone_1.default.currentTimezone = jstimezonedetect_1.default.determine().name();
|
561
|
+
return moment_timezone_1.default.currentTimezone;
|
562
|
+
}
|
563
|
+
exports.currentTimezone = currentTimezone;
|
564
|
+
/**
|
565
|
+
* Get an offset date provided a date object and timezone object.
|
566
|
+
*
|
567
|
+
* @param date
|
568
|
+
* @param timezone
|
569
|
+
* @return {Date}
|
570
|
+
*/
|
571
|
+
function offsetDate(date, timezone) {
|
572
|
+
if (timezone === 'UTC') {
|
573
|
+
return {
|
574
|
+
date: new Date(date.getTime() + (date.getTimezoneOffset() * 60000)),
|
575
|
+
abbr: 'UTC'
|
576
|
+
};
|
577
|
+
}
|
578
|
+
const dateMoment = (0, moment_timezone_1.default)(date).tz(timezone);
|
579
|
+
return {
|
580
|
+
date: new Date(date.getTime() + ((dateMoment.utcOffset() + date.getTimezoneOffset()) * 60000)),
|
581
|
+
abbr: dateMoment.format('z')
|
582
|
+
};
|
583
|
+
}
|
584
|
+
exports.offsetDate = offsetDate;
|
585
|
+
/**
|
586
|
+
* Returns if the zones are loaded.
|
587
|
+
*
|
588
|
+
* @return {boolean}
|
589
|
+
*/
|
590
|
+
function zonesLoaded() {
|
591
|
+
return moment_timezone_1.default.zonesLoaded;
|
592
|
+
}
|
593
|
+
exports.zonesLoaded = zonesLoaded;
|
594
|
+
/**
|
595
|
+
* Returns if we should load the zones.
|
596
|
+
*
|
597
|
+
* @param timezone
|
598
|
+
* @return {boolean}
|
599
|
+
*/
|
600
|
+
function shouldLoadZones(timezone) {
|
601
|
+
if (timezone === currentTimezone() || timezone === 'UTC') {
|
602
|
+
return false;
|
603
|
+
}
|
604
|
+
return true;
|
605
|
+
}
|
606
|
+
exports.shouldLoadZones = shouldLoadZones;
|
607
|
+
/**
|
608
|
+
* Externally load the timezone data.
|
609
|
+
*
|
610
|
+
* @return {Promise<any> | *}
|
611
|
+
*/
|
612
|
+
function loadZones(url, timezone) {
|
613
|
+
if (timezone && !shouldLoadZones(timezone)) {
|
614
|
+
// Return non-resolving promise.
|
615
|
+
return new native_promise_only_1.default(lodash_1.default.noop);
|
616
|
+
}
|
617
|
+
if (moment_timezone_1.default.zonesPromise) {
|
618
|
+
return moment_timezone_1.default.zonesPromise;
|
619
|
+
}
|
620
|
+
return moment_timezone_1.default.zonesPromise = fetch(url)
|
621
|
+
.then(resp => resp.json().then(zones => {
|
622
|
+
moment_timezone_1.default.tz.load(zones);
|
623
|
+
moment_timezone_1.default.zonesLoaded = true;
|
624
|
+
// Trigger a global event that the timezones have finished loading.
|
625
|
+
if (document && document.createEvent && document.body && document.body.dispatchEvent) {
|
626
|
+
var event = document.createEvent('Event');
|
627
|
+
event.initEvent('zonesLoaded', true, true);
|
628
|
+
document.body.dispatchEvent(event);
|
629
|
+
}
|
630
|
+
}));
|
631
|
+
}
|
632
|
+
exports.loadZones = loadZones;
|
633
|
+
/**
|
634
|
+
* Get the moment date object for translating dates with timezones.
|
635
|
+
*
|
636
|
+
* @param value
|
637
|
+
* @param format
|
638
|
+
* @param timezone
|
639
|
+
* @return {*}
|
640
|
+
*/
|
641
|
+
function momentDate(value, format, timezone) {
|
642
|
+
const momentDate = (0, moment_timezone_1.default)(value);
|
643
|
+
if (!timezone) {
|
644
|
+
return momentDate;
|
645
|
+
}
|
646
|
+
if (timezone === 'UTC') {
|
647
|
+
timezone = 'Etc/UTC';
|
648
|
+
}
|
649
|
+
if ((timezone !== currentTimezone() || (format && format.match(/\s(z$|z\s)/))) && moment_timezone_1.default.zonesLoaded) {
|
650
|
+
return momentDate.tz(timezone);
|
651
|
+
}
|
652
|
+
return momentDate;
|
653
|
+
}
|
654
|
+
exports.momentDate = momentDate;
|
655
|
+
/**
|
656
|
+
* Format a date provided a value, format, and timezone object.
|
657
|
+
*
|
658
|
+
* @param value
|
659
|
+
* @param format
|
660
|
+
* @param timezone
|
661
|
+
* @return {string}
|
662
|
+
*/
|
663
|
+
function formatDate(timezonesUrl, value, format, timezone, flatPickrInputFormat) {
|
664
|
+
const momentDate = (0, moment_timezone_1.default)(value, flatPickrInputFormat || undefined);
|
665
|
+
if (timezone === currentTimezone()) {
|
666
|
+
// See if our format contains a "z" timezone character.
|
667
|
+
if (format.match(/\s(z$|z\s)/)) {
|
668
|
+
loadZones(timezonesUrl);
|
669
|
+
if (moment_timezone_1.default.zonesLoaded) {
|
670
|
+
return momentDate.tz(timezone).format(convertFormatToMoment(format));
|
671
|
+
}
|
672
|
+
else {
|
673
|
+
return momentDate.format(convertFormatToMoment(format.replace(/\s(z$|z\s)/, '')));
|
674
|
+
}
|
675
|
+
}
|
676
|
+
// Return the standard format.
|
677
|
+
return momentDate.format(convertFormatToMoment(format));
|
678
|
+
}
|
679
|
+
if (timezone === 'UTC') {
|
680
|
+
const offset = offsetDate(momentDate.toDate(), 'UTC');
|
681
|
+
return `${(0, moment_timezone_1.default)(offset.date).format(convertFormatToMoment(format))} UTC`;
|
682
|
+
}
|
683
|
+
// Load the zones since we need timezone information.
|
684
|
+
loadZones(timezonesUrl);
|
685
|
+
if (moment_timezone_1.default.zonesLoaded && timezone) {
|
686
|
+
return momentDate.tz(timezone).format(`${convertFormatToMoment(format)} z`);
|
687
|
+
}
|
688
|
+
else {
|
689
|
+
return momentDate.format(convertFormatToMoment(format));
|
690
|
+
}
|
691
|
+
}
|
692
|
+
exports.formatDate = formatDate;
|
693
|
+
/**
|
694
|
+
* Pass a format function to format within a timezone.
|
695
|
+
*
|
696
|
+
* @param formatFn
|
697
|
+
* @param date
|
698
|
+
* @param format
|
699
|
+
* @param timezone
|
700
|
+
* @return {string}
|
701
|
+
*/
|
702
|
+
function formatOffset(timezonesUrl, formatFn, date, format, timezone) {
|
703
|
+
if (timezone === currentTimezone()) {
|
704
|
+
return formatFn(date, format);
|
705
|
+
}
|
706
|
+
if (timezone === 'UTC') {
|
707
|
+
return `${formatFn(offsetDate(date, 'UTC').date, format)} UTC`;
|
708
|
+
}
|
709
|
+
// Load the zones since we need timezone information.
|
710
|
+
loadZones(timezonesUrl);
|
711
|
+
if (moment_timezone_1.default.zonesLoaded) {
|
712
|
+
const offset = offsetDate(date, timezone);
|
713
|
+
return `${formatFn(offset.date, format)} ${offset.abbr}`;
|
714
|
+
}
|
715
|
+
else {
|
716
|
+
return formatFn(date, format);
|
717
|
+
}
|
718
|
+
}
|
719
|
+
exports.formatOffset = formatOffset;
|
720
|
+
function getLocaleDateFormatInfo(locale) {
|
721
|
+
const formatInfo = {};
|
722
|
+
const day = 21;
|
723
|
+
const exampleDate = new Date(2017, 11, day);
|
724
|
+
const localDateString = exampleDate.toLocaleDateString(locale);
|
725
|
+
formatInfo.dayFirst = localDateString.slice(0, 2) === day.toString();
|
726
|
+
return formatInfo;
|
727
|
+
}
|
728
|
+
exports.getLocaleDateFormatInfo = getLocaleDateFormatInfo;
|
729
|
+
/**
|
730
|
+
* Convert the format from the angular-datepicker module to flatpickr format.
|
731
|
+
* @param format
|
732
|
+
* @return {string}
|
733
|
+
*/
|
734
|
+
function convertFormatToFlatpickr(format) {
|
735
|
+
return format
|
736
|
+
// Remove the Z timezone offset, not supported by flatpickr.
|
737
|
+
.replace(/Z/g, '')
|
738
|
+
// Year conversion.
|
739
|
+
.replace(/y/g, 'Y')
|
740
|
+
.replace('YYYY', 'Y')
|
741
|
+
.replace('YY', 'y')
|
742
|
+
// Month conversion.
|
743
|
+
.replace('MMMM', 'F')
|
744
|
+
.replace(/M/g, 'n')
|
745
|
+
.replace('nnn', 'M')
|
746
|
+
.replace('nn', 'm')
|
747
|
+
// Day in month.
|
748
|
+
.replace(/d/g, 'j')
|
749
|
+
.replace(/jj/g, 'd')
|
750
|
+
// Day in week.
|
751
|
+
.replace('EEEE', 'l')
|
752
|
+
.replace('EEE', 'D')
|
753
|
+
// Hours, minutes, seconds
|
754
|
+
.replace('HH', 'H')
|
755
|
+
.replace('hh', 'G')
|
756
|
+
.replace('mm', 'i')
|
757
|
+
.replace('ss', 'S')
|
758
|
+
.replace(/a/g, 'K');
|
759
|
+
}
|
760
|
+
exports.convertFormatToFlatpickr = convertFormatToFlatpickr;
|
761
|
+
/**
|
762
|
+
* Convert the format from the angular-datepicker module to moment format.
|
763
|
+
* @param format
|
764
|
+
* @return {string}
|
765
|
+
*/
|
766
|
+
function convertFormatToMoment(format) {
|
767
|
+
return format
|
768
|
+
// Year conversion.
|
769
|
+
.replace(/y/g, 'Y')
|
770
|
+
// Day in month.
|
771
|
+
.replace(/d/g, 'D')
|
772
|
+
// Day in week.
|
773
|
+
.replace(/E/g, 'd')
|
774
|
+
// AM/PM marker
|
775
|
+
.replace(/a/g, 'A')
|
776
|
+
// Unix Timestamp
|
777
|
+
.replace(/U/g, 'X');
|
778
|
+
}
|
779
|
+
exports.convertFormatToMoment = convertFormatToMoment;
|
780
|
+
function convertFormatToMask(format) {
|
781
|
+
return format
|
782
|
+
// Long month replacement.
|
783
|
+
.replace(/M{4}/g, 'MM')
|
784
|
+
// Initial short month conversion.
|
785
|
+
.replace(/M{3}/g, '***')
|
786
|
+
// Short month conversion if input as text.
|
787
|
+
.replace(/e/g, 'Q')
|
788
|
+
// Year conversion.
|
789
|
+
.replace(/[ydhmsHMG]/g, '9')
|
790
|
+
// AM/PM conversion.
|
791
|
+
.replace(/a/g, 'AA');
|
792
|
+
}
|
793
|
+
exports.convertFormatToMask = convertFormatToMask;
|
794
|
+
/**
|
795
|
+
* Returns an input mask that is compatible with the input mask library.
|
796
|
+
* @param {string} mask - The Form.io input mask.
|
797
|
+
* @param {string} placeholderChar - Char which is used as a placeholder.
|
798
|
+
* @returns {Array} - The input mask for the mask library.
|
799
|
+
*/
|
800
|
+
function getInputMask(mask, placeholderChar) {
|
801
|
+
if (mask instanceof Array) {
|
802
|
+
return mask;
|
803
|
+
}
|
804
|
+
const maskArray = [];
|
805
|
+
maskArray.numeric = true;
|
806
|
+
for (let i = 0; i < mask.length; i++) {
|
807
|
+
switch (mask[i]) {
|
808
|
+
case '9':
|
809
|
+
maskArray.push(/\d/);
|
810
|
+
break;
|
811
|
+
case 'A':
|
812
|
+
maskArray.numeric = false;
|
813
|
+
maskArray.push(/[a-zA-Z]/);
|
814
|
+
break;
|
815
|
+
case 'a':
|
816
|
+
maskArray.numeric = false;
|
817
|
+
maskArray.push(/[a-z]/);
|
818
|
+
break;
|
819
|
+
case '*':
|
820
|
+
maskArray.numeric = false;
|
821
|
+
maskArray.push(/[a-zA-Z0-9]/);
|
822
|
+
break;
|
823
|
+
// If char which is used inside mask placeholder was used in the mask, replace it with space to prevent errors
|
824
|
+
case placeholderChar:
|
825
|
+
maskArray.numeric = false;
|
826
|
+
maskArray.push(' ');
|
827
|
+
break;
|
828
|
+
default:
|
829
|
+
maskArray.numeric = false;
|
830
|
+
maskArray.push(mask[i]);
|
831
|
+
break;
|
832
|
+
}
|
833
|
+
}
|
834
|
+
return maskArray;
|
835
|
+
}
|
836
|
+
exports.getInputMask = getInputMask;
|
837
|
+
function unmaskValue(value, mask, placeholderChar) {
|
838
|
+
if (!mask || !value || value.length > mask.length) {
|
839
|
+
return value;
|
840
|
+
}
|
841
|
+
let unmaskedValue = value.split('');
|
842
|
+
for (let i = 0; i < mask.length; i++) {
|
843
|
+
const char = value[i] || '';
|
844
|
+
const charPart = mask[i];
|
845
|
+
if (!lodash_1.default.isRegExp(charPart) && char === charPart) {
|
846
|
+
unmaskedValue[i] = '';
|
847
|
+
}
|
848
|
+
}
|
849
|
+
unmaskedValue = unmaskedValue.join('').replace(placeholderChar, '');
|
850
|
+
return unmaskedValue;
|
851
|
+
}
|
852
|
+
exports.unmaskValue = unmaskValue;
|
853
|
+
function matchInputMask(value, inputMask) {
|
854
|
+
if (!inputMask) {
|
855
|
+
return true;
|
856
|
+
}
|
857
|
+
// If value is longer than mask, it isn't valid.
|
858
|
+
if (value.length > inputMask.length) {
|
859
|
+
return false;
|
860
|
+
}
|
861
|
+
for (let i = 0; i < inputMask.length; i++) {
|
862
|
+
const char = value[i] || '';
|
863
|
+
const charPart = inputMask[i];
|
864
|
+
if (!(lodash_1.default.isRegExp(charPart) && charPart.test(char) || charPart === char)) {
|
865
|
+
return false;
|
866
|
+
}
|
867
|
+
}
|
868
|
+
return true;
|
869
|
+
}
|
870
|
+
exports.matchInputMask = matchInputMask;
|
871
|
+
function getNumberSeparators(lang = 'en') {
|
872
|
+
const formattedNumberString = (12345.6789).toLocaleString(lang);
|
873
|
+
const delimeters = formattedNumberString.match(/..(.)...(.)../);
|
874
|
+
if (!delimeters) {
|
875
|
+
return {
|
876
|
+
delimiter: ',',
|
877
|
+
decimalSeparator: '.'
|
878
|
+
};
|
879
|
+
}
|
880
|
+
return {
|
881
|
+
delimiter: (delimeters.length > 1) ? delimeters[1] : ',',
|
882
|
+
decimalSeparator: (delimeters.length > 2) ? delimeters[2] : '.',
|
883
|
+
};
|
884
|
+
}
|
885
|
+
exports.getNumberSeparators = getNumberSeparators;
|
886
|
+
function getNumberDecimalLimit(component, defaultLimit) {
|
887
|
+
if (lodash_1.default.has(component, 'decimalLimit')) {
|
888
|
+
return lodash_1.default.get(component, 'decimalLimit');
|
889
|
+
}
|
890
|
+
// Determine the decimal limit. Defaults to 20 but can be overridden by validate.step or decimalLimit settings.
|
891
|
+
let decimalLimit = defaultLimit || 20;
|
892
|
+
const step = lodash_1.default.get(component, 'validate.step', 'any');
|
893
|
+
if (step !== 'any') {
|
894
|
+
const parts = step.toString().split('.');
|
895
|
+
if (parts.length > 1) {
|
896
|
+
decimalLimit = parts[1].length;
|
897
|
+
}
|
898
|
+
}
|
899
|
+
return decimalLimit;
|
900
|
+
}
|
901
|
+
exports.getNumberDecimalLimit = getNumberDecimalLimit;
|
902
|
+
function getCurrencyAffixes({ currency = 'USD', decimalLimit, decimalSeparator, lang, }) {
|
903
|
+
// Get the prefix and suffix from the localized string.
|
904
|
+
let regex = `(.*)?${(100).toLocaleString(lang)}`;
|
905
|
+
if (decimalLimit) {
|
906
|
+
regex += `${decimalSeparator === '.' ? '\\.' : decimalSeparator}${(0).toLocaleString(lang)}{${decimalLimit}}`;
|
907
|
+
}
|
908
|
+
regex += '(.*)?';
|
909
|
+
const parts = (100).toLocaleString(lang, {
|
910
|
+
style: 'currency',
|
911
|
+
currency,
|
912
|
+
useGrouping: true,
|
913
|
+
maximumFractionDigits: decimalLimit || 0,
|
914
|
+
minimumFractionDigits: decimalLimit || 0
|
915
|
+
}).replace('.', decimalSeparator).match(new RegExp(regex));
|
916
|
+
return {
|
917
|
+
prefix: (parts === null || parts === void 0 ? void 0 : parts[1]) || '',
|
918
|
+
suffix: (parts === null || parts === void 0 ? void 0 : parts[2]) || ''
|
919
|
+
};
|
920
|
+
}
|
921
|
+
exports.getCurrencyAffixes = getCurrencyAffixes;
|
922
|
+
/**
|
923
|
+
* Fetch the field data provided a component.
|
924
|
+
*
|
925
|
+
* @param data
|
926
|
+
* @param component
|
927
|
+
* @return {*}
|
928
|
+
*/
|
929
|
+
function fieldData(data, component) {
|
930
|
+
if (!data) {
|
931
|
+
return '';
|
932
|
+
}
|
933
|
+
if (!component || !component.key) {
|
934
|
+
return data;
|
935
|
+
}
|
936
|
+
if (component.key.includes('.')) {
|
937
|
+
let value = data;
|
938
|
+
const parts = component.key.split('.');
|
939
|
+
let key = '';
|
940
|
+
for (let i = 0; i < parts.length; i++) {
|
941
|
+
key = parts[i];
|
942
|
+
// Handle nested resources
|
943
|
+
if (value.hasOwnProperty('_id')) {
|
944
|
+
value = value.data;
|
945
|
+
}
|
946
|
+
// Return if the key is not found on the value.
|
947
|
+
if (!value.hasOwnProperty(key)) {
|
948
|
+
return;
|
949
|
+
}
|
950
|
+
// Convert old single field data in submissions to multiple
|
951
|
+
if (key === parts[parts.length - 1] && component.multiple && !Array.isArray(value[key])) {
|
952
|
+
value[key] = [value[key]];
|
953
|
+
}
|
954
|
+
// Set the value of this key.
|
955
|
+
value = value[key];
|
956
|
+
}
|
957
|
+
return value;
|
958
|
+
}
|
959
|
+
else {
|
960
|
+
// Convert old single field data in submissions to multiple
|
961
|
+
if (component.multiple && !Array.isArray(data[component.key])) {
|
962
|
+
data[component.key] = [data[component.key]];
|
963
|
+
}
|
964
|
+
// Fix for checkbox type radio submission values in tableView
|
965
|
+
if (component.type === 'checkbox' && component.inputType === 'radio') {
|
966
|
+
return data[component.name] === component.value;
|
967
|
+
}
|
968
|
+
return data[component.key];
|
969
|
+
}
|
970
|
+
}
|
971
|
+
exports.fieldData = fieldData;
|
972
|
+
/**
|
973
|
+
* Delays function execution with possibility to execute function synchronously or cancel it.
|
974
|
+
*
|
975
|
+
* @param fn Function to delay
|
976
|
+
* @param delay Delay time
|
977
|
+
* @return {*}
|
978
|
+
*/
|
979
|
+
function delay(fn, delay = 0, ...args) {
|
980
|
+
const timer = setTimeout(fn, delay, ...args);
|
981
|
+
function cancel() {
|
982
|
+
clearTimeout(timer);
|
983
|
+
}
|
984
|
+
function earlyCall() {
|
985
|
+
cancel();
|
986
|
+
return fn(...args);
|
987
|
+
}
|
988
|
+
earlyCall.timer = timer;
|
989
|
+
earlyCall.cancel = cancel;
|
990
|
+
return earlyCall;
|
991
|
+
}
|
992
|
+
exports.delay = delay;
|
993
|
+
/**
|
994
|
+
* Iterate the given key to make it unique.
|
995
|
+
*
|
996
|
+
* @param {String} key
|
997
|
+
* Modify the component key to be unique.
|
998
|
+
*
|
999
|
+
* @returns {String}
|
1000
|
+
* The new component key.
|
1001
|
+
*/
|
1002
|
+
function iterateKey(key) {
|
1003
|
+
if (!key.match(/(\d+)$/)) {
|
1004
|
+
return `${key}1`;
|
1005
|
+
}
|
1006
|
+
return key.replace(/(\d+)$/, function (suffix) {
|
1007
|
+
return Number(suffix) + 1;
|
1008
|
+
});
|
1009
|
+
}
|
1010
|
+
exports.iterateKey = iterateKey;
|
1011
|
+
/**
|
1012
|
+
* Determines a unique key within a map provided the base key.
|
1013
|
+
*
|
1014
|
+
* @param map
|
1015
|
+
* @param base
|
1016
|
+
* @return {*}
|
1017
|
+
*/
|
1018
|
+
function uniqueKey(map, base) {
|
1019
|
+
let newKey = base;
|
1020
|
+
while (map.hasOwnProperty(newKey)) {
|
1021
|
+
newKey = iterateKey(newKey);
|
1022
|
+
}
|
1023
|
+
return newKey;
|
1024
|
+
}
|
1025
|
+
exports.uniqueKey = uniqueKey;
|
1026
|
+
/**
|
1027
|
+
* Determines the major version number of bootstrap.
|
1028
|
+
*
|
1029
|
+
* @return {number}
|
1030
|
+
*/
|
1031
|
+
function bootstrapVersion(options) {
|
1032
|
+
if (options.bootstrap) {
|
1033
|
+
return options.bootstrap;
|
1034
|
+
}
|
1035
|
+
if ((typeof $ === 'function') && (typeof $().collapse === 'function')) {
|
1036
|
+
return parseInt($.fn.collapse.Constructor.VERSION.split('.')[0], 10);
|
1037
|
+
}
|
1038
|
+
if (window.bootstrap && window.bootstrap.Collapse) {
|
1039
|
+
return parseInt(window.bootstrap.Collapse.VERSION.split('.')[0], 10);
|
1040
|
+
}
|
1041
|
+
return 0;
|
1042
|
+
}
|
1043
|
+
exports.bootstrapVersion = bootstrapVersion;
|
1044
|
+
/**
|
1045
|
+
* Retrun provided argument.
|
1046
|
+
* If argument is a function, returns the result of a function call.
|
1047
|
+
* @param {*} e;
|
1048
|
+
*
|
1049
|
+
* @return {*}
|
1050
|
+
*/
|
1051
|
+
function unfold(e) {
|
1052
|
+
if (typeof e === 'function') {
|
1053
|
+
return e();
|
1054
|
+
}
|
1055
|
+
return e;
|
1056
|
+
}
|
1057
|
+
exports.unfold = unfold;
|
1058
|
+
/**
|
1059
|
+
* Map values through unfold and return first non-nil value.
|
1060
|
+
* @param {Array<T>} collection;
|
1061
|
+
*
|
1062
|
+
* @return {T}
|
1063
|
+
*/
|
1064
|
+
exports.firstNonNil = lodash_1.default.flow([
|
1065
|
+
lodash_1.default.partialRight(lodash_1.default.map, unfold),
|
1066
|
+
lodash_1.default.partialRight(lodash_1.default.find, v => !lodash_1.default.isUndefined(v))
|
1067
|
+
]);
|
1068
|
+
/*
|
1069
|
+
* Create enclosed state.
|
1070
|
+
* Returns functions to getting and cycling between states.
|
1071
|
+
* @param {*} a - initial state.
|
1072
|
+
* @param {*} b - next state.
|
1073
|
+
* @return {Functions[]} -- [get, toggle];
|
1074
|
+
*/
|
1075
|
+
function withSwitch(a, b) {
|
1076
|
+
let state = a;
|
1077
|
+
let next = b;
|
1078
|
+
function get() {
|
1079
|
+
return state;
|
1080
|
+
}
|
1081
|
+
function toggle() {
|
1082
|
+
const prev = state;
|
1083
|
+
state = next;
|
1084
|
+
next = prev;
|
1085
|
+
}
|
1086
|
+
return [get, toggle];
|
1087
|
+
}
|
1088
|
+
exports.withSwitch = withSwitch;
|
1089
|
+
function observeOverload(callback, options = {}) {
|
1090
|
+
const { limit = 50, delay = 500 } = options;
|
1091
|
+
let callCount = 0;
|
1092
|
+
let timeoutID = 0;
|
1093
|
+
const reset = () => callCount = 0;
|
1094
|
+
return () => {
|
1095
|
+
if (timeoutID !== 0) {
|
1096
|
+
clearTimeout(timeoutID);
|
1097
|
+
timeoutID = 0;
|
1098
|
+
}
|
1099
|
+
timeoutID = setTimeout(reset, delay);
|
1100
|
+
callCount += 1;
|
1101
|
+
if (callCount >= limit) {
|
1102
|
+
clearTimeout(timeoutID);
|
1103
|
+
reset();
|
1104
|
+
return callback();
|
1105
|
+
}
|
1106
|
+
};
|
1107
|
+
}
|
1108
|
+
exports.observeOverload = observeOverload;
|
1109
|
+
function getContextComponents(context, excludeNested, excludedTypes = []) {
|
1110
|
+
const values = [];
|
1111
|
+
context.utils.eachComponent(context.instance.options.editForm.components, (component, path) => {
|
1112
|
+
const addToContextComponents = excludeNested ? !component.tree : true;
|
1113
|
+
if (component.key !== context.data.key && addToContextComponents && !lodash_1.default.includes(excludedTypes, component.type)) {
|
1114
|
+
values.push({
|
1115
|
+
label: `${component.label || component.key} (${path})`,
|
1116
|
+
value: path,
|
1117
|
+
});
|
1118
|
+
}
|
1119
|
+
});
|
1120
|
+
return values;
|
1121
|
+
}
|
1122
|
+
exports.getContextComponents = getContextComponents;
|
1123
|
+
function getContextButtons(context) {
|
1124
|
+
const values = [];
|
1125
|
+
context.utils.eachComponent(context.instance.options.editForm.components, (component) => {
|
1126
|
+
if (component.type === 'button') {
|
1127
|
+
values.push({
|
1128
|
+
label: `${component.key} (${component.label})`,
|
1129
|
+
value: component.key,
|
1130
|
+
});
|
1131
|
+
}
|
1132
|
+
});
|
1133
|
+
return values;
|
1134
|
+
}
|
1135
|
+
exports.getContextButtons = getContextButtons;
|
1136
|
+
// Tags that could be in text, that should be ommited or handled in a special way
|
1137
|
+
const inTextTags = ['#text', 'A', 'B', 'EM', 'I', 'SMALL', 'STRONG', 'SUB', 'SUP', 'INS', 'DEL', 'MARK', 'CODE'];
|
1138
|
+
/**
|
1139
|
+
* Helper function for 'translateHTMLTemplate'. Translates text value of the passed html element.
|
1140
|
+
*
|
1141
|
+
* @param {HTMLElement} elem
|
1142
|
+
* @param {Function} translate
|
1143
|
+
*
|
1144
|
+
* @returns {String}
|
1145
|
+
* Translated element template.
|
1146
|
+
*/
|
1147
|
+
function translateElemValue(elem, translate) {
|
1148
|
+
if (!elem.innerText) {
|
1149
|
+
return elem.innerHTML;
|
1150
|
+
}
|
1151
|
+
const elemValue = elem.innerText.replace(Evaluator_1.default.templateSettings.interpolate, '').replace(/\s\s+/g, ' ').trim();
|
1152
|
+
const translatedValue = translate(elemValue);
|
1153
|
+
if (elemValue !== translatedValue) {
|
1154
|
+
const links = elem.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);
|
1155
|
+
if (links && links.length) {
|
1156
|
+
if (links.length === 1 && links[0].length === elem.innerHTML.length) {
|
1157
|
+
return elem.innerHTML.replace(elemValue, translatedValue);
|
1158
|
+
}
|
1159
|
+
const translatedLinks = links.map(link => {
|
1160
|
+
const linkElem = document.createElement('a');
|
1161
|
+
linkElem.innerHTML = link;
|
1162
|
+
return translateElemValue(linkElem, translate);
|
1163
|
+
});
|
1164
|
+
return `${translatedValue} (${translatedLinks.join(', ')})`;
|
1165
|
+
}
|
1166
|
+
else {
|
1167
|
+
return elem.innerText.replace(elemValue, translatedValue);
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
else {
|
1171
|
+
return elem.innerHTML;
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
/**
|
1175
|
+
* Helper function for 'translateHTMLTemplate'. Goes deep through html tag children and calls function to translate their text values.
|
1176
|
+
*
|
1177
|
+
* @param {HTMLElement} tag
|
1178
|
+
* @param {Function} translate
|
1179
|
+
*
|
1180
|
+
* @returns {void}
|
1181
|
+
*/
|
1182
|
+
function translateDeepTag(tag, translate) {
|
1183
|
+
const children = tag.children.length && [...tag.children];
|
1184
|
+
const shouldTranslateEntireContent = children && children.every(child => child.children.length === 0
|
1185
|
+
&& inTextTags.some(tag => child.nodeName === tag));
|
1186
|
+
if (!children || shouldTranslateEntireContent) {
|
1187
|
+
tag.innerHTML = translateElemValue(tag, translate);
|
1188
|
+
}
|
1189
|
+
else {
|
1190
|
+
children.forEach(child => translateDeepTag(child, translate));
|
1191
|
+
}
|
1192
|
+
}
|
1193
|
+
/**
|
1194
|
+
* Translates text values in html template.
|
1195
|
+
*
|
1196
|
+
* @param {String} template
|
1197
|
+
* @param {Function} translate
|
1198
|
+
*
|
1199
|
+
* @returns {String}
|
1200
|
+
* Html template with translated values.
|
1201
|
+
*/
|
1202
|
+
function translateHTMLTemplate(template, translate) {
|
1203
|
+
const isHTML = /<[^>]*>/.test(template);
|
1204
|
+
if (!isHTML) {
|
1205
|
+
return translate(template);
|
1206
|
+
}
|
1207
|
+
const tempElem = document.createElement('div');
|
1208
|
+
tempElem.innerHTML = template;
|
1209
|
+
if (tempElem.innerText && tempElem.children.length) {
|
1210
|
+
translateDeepTag(tempElem, translate);
|
1211
|
+
return tempElem.innerHTML;
|
1212
|
+
}
|
1213
|
+
return template;
|
1214
|
+
}
|
1215
|
+
exports.translateHTMLTemplate = translateHTMLTemplate;
|
1216
|
+
/**
|
1217
|
+
* Sanitize an html string.
|
1218
|
+
*
|
1219
|
+
* @param string
|
1220
|
+
* @returns {*}
|
1221
|
+
*/
|
1222
|
+
function sanitize(string, options) {
|
1223
|
+
if (typeof dompurify_1.default.sanitize !== 'function') {
|
1224
|
+
return string;
|
1225
|
+
}
|
1226
|
+
// Dompurify configuration
|
1227
|
+
const sanitizeOptions = {
|
1228
|
+
ADD_ATTR: ['ref', 'target'],
|
1229
|
+
USE_PROFILES: { html: true }
|
1230
|
+
};
|
1231
|
+
// Add attrs
|
1232
|
+
if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addAttr) && options.sanitizeConfig.addAttr.length > 0) {
|
1233
|
+
options.sanitizeConfig.addAttr.forEach((attr) => {
|
1234
|
+
sanitizeOptions.ADD_ATTR.push(attr);
|
1235
|
+
});
|
1236
|
+
}
|
1237
|
+
// Add tags
|
1238
|
+
if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addTags) && options.sanitizeConfig.addTags.length > 0) {
|
1239
|
+
sanitizeOptions.ADD_TAGS = options.sanitizeConfig.addTags;
|
1240
|
+
}
|
1241
|
+
// Allow tags
|
1242
|
+
if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.allowedTags) && options.sanitizeConfig.allowedTags.length > 0) {
|
1243
|
+
sanitizeOptions.ALLOWED_TAGS = options.sanitizeConfig.allowedTags;
|
1244
|
+
}
|
1245
|
+
// Allow attributes
|
1246
|
+
if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.allowedAttrs) && options.sanitizeConfig.allowedAttrs.length > 0) {
|
1247
|
+
sanitizeOptions.ALLOWED_ATTR = options.sanitizeConfig.allowedAttrs;
|
1248
|
+
}
|
1249
|
+
// Allowd URI Regex
|
1250
|
+
if (options.sanitizeConfig && options.sanitizeConfig.allowedUriRegex) {
|
1251
|
+
sanitizeOptions.ALLOWED_URI_REGEXP = options.sanitizeConfig.allowedUriRegex;
|
1252
|
+
}
|
1253
|
+
// Allow to extend the existing array of elements that are safe for URI-like values
|
1254
|
+
if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addUriSafeAttr) && options.sanitizeConfig.addUriSafeAttr.length > 0) {
|
1255
|
+
sanitizeOptions.ADD_URI_SAFE_ATTR = options.sanitizeConfig.addUriSafeAttr;
|
1256
|
+
}
|
1257
|
+
return dompurify_1.default.sanitize(string, sanitizeOptions);
|
1258
|
+
}
|
1259
|
+
exports.sanitize = sanitize;
|
1260
|
+
/**
|
1261
|
+
* Fast cloneDeep for JSON objects only.
|
1262
|
+
*/
|
1263
|
+
function fastCloneDeep(obj) {
|
1264
|
+
return obj ? JSON.parse(JSON.stringify(obj)) : obj;
|
1265
|
+
}
|
1266
|
+
exports.fastCloneDeep = fastCloneDeep;
|
1267
|
+
function isInputComponent(componentJson) {
|
1268
|
+
if (componentJson.input === false || componentJson.input === true) {
|
1269
|
+
return componentJson.input;
|
1270
|
+
}
|
1271
|
+
switch (componentJson.type) {
|
1272
|
+
case 'htmlelement':
|
1273
|
+
case 'content':
|
1274
|
+
case 'columns':
|
1275
|
+
case 'fieldset':
|
1276
|
+
case 'panel':
|
1277
|
+
case 'table':
|
1278
|
+
case 'tabs':
|
1279
|
+
case 'well':
|
1280
|
+
case 'button':
|
1281
|
+
return false;
|
1282
|
+
default:
|
1283
|
+
return true;
|
1284
|
+
}
|
1285
|
+
}
|
1286
|
+
exports.isInputComponent = isInputComponent;
|
1287
|
+
function getArrayFromComponentPath(pathStr) {
|
1288
|
+
if (!pathStr || !lodash_1.default.isString(pathStr)) {
|
1289
|
+
if (!lodash_1.default.isArray(pathStr)) {
|
1290
|
+
return [pathStr];
|
1291
|
+
}
|
1292
|
+
return pathStr;
|
1293
|
+
}
|
1294
|
+
return pathStr.replace(/[[\]]/g, '.')
|
1295
|
+
.replace(/\.\./g, '.')
|
1296
|
+
.replace(/(^\.)|(\.$)/g, '')
|
1297
|
+
.split('.')
|
1298
|
+
.map(part => lodash_1.default.defaultTo(lodash_1.default.toNumber(part), part));
|
1299
|
+
}
|
1300
|
+
exports.getArrayFromComponentPath = getArrayFromComponentPath;
|
1301
|
+
function hasInvalidComponent(component) {
|
1302
|
+
return component.getComponents().some((comp) => {
|
1303
|
+
if (lodash_1.default.isArray(comp.components)) {
|
1304
|
+
return hasInvalidComponent(comp);
|
1305
|
+
}
|
1306
|
+
return comp.error;
|
1307
|
+
});
|
1308
|
+
}
|
1309
|
+
exports.hasInvalidComponent = hasInvalidComponent;
|
1310
|
+
function getStringFromComponentPath(path) {
|
1311
|
+
if (!lodash_1.default.isArray(path)) {
|
1312
|
+
return path;
|
1313
|
+
}
|
1314
|
+
let strPath = '';
|
1315
|
+
path.forEach((part, i) => {
|
1316
|
+
if (lodash_1.default.isNumber(part)) {
|
1317
|
+
strPath += `[${part}]`;
|
1318
|
+
}
|
1319
|
+
else {
|
1320
|
+
strPath += i === 0 ? part : `.${part}`;
|
1321
|
+
}
|
1322
|
+
});
|
1323
|
+
return strPath;
|
1324
|
+
}
|
1325
|
+
exports.getStringFromComponentPath = getStringFromComponentPath;
|
1326
|
+
function round(number, precision) {
|
1327
|
+
if (lodash_1.default.isNumber(number)) {
|
1328
|
+
return number.toFixed(precision);
|
1329
|
+
}
|
1330
|
+
return number;
|
1331
|
+
}
|
1332
|
+
exports.round = round;
|
1333
|
+
/**
|
1334
|
+
* Check for Internet Explorer browser version
|
1335
|
+
*
|
1336
|
+
* @return {(number|null)}
|
1337
|
+
*/
|
1338
|
+
function getIEBrowserVersion() {
|
1339
|
+
const { ie, version } = getBrowserInfo();
|
1340
|
+
return ie ? version : null;
|
1341
|
+
}
|
1342
|
+
exports.getIEBrowserVersion = getIEBrowserVersion;
|
1343
|
+
/**
|
1344
|
+
* Get browser name and version (modified from 'jquery-browser-plugin')
|
1345
|
+
*
|
1346
|
+
* @return {Object} -- {{browser name, version, isWebkit?}}
|
1347
|
+
* Possible browser names: chrome, safari, ie, edge, opera, mozilla, yabrowser
|
1348
|
+
*/
|
1349
|
+
function getBrowserInfo() {
|
1350
|
+
const browser = {};
|
1351
|
+
if (typeof window === 'undefined') {
|
1352
|
+
return browser;
|
1353
|
+
}
|
1354
|
+
const ua = window.navigator.userAgent.toLowerCase();
|
1355
|
+
const match = /(edge|edg)\/([\w.]+)/.exec(ua) ||
|
1356
|
+
/(opr)[/]([\w.]+)/.exec(ua) ||
|
1357
|
+
/(yabrowser)[ /]([\w.]+)/.exec(ua) ||
|
1358
|
+
/(chrome)[ /]([\w.]+)/.exec(ua) ||
|
1359
|
+
/(iemobile)[/]([\w.]+)/.exec(ua) ||
|
1360
|
+
/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(ua) ||
|
1361
|
+
/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(ua) ||
|
1362
|
+
/(webkit)[ /]([\w.]+)/.exec(ua) ||
|
1363
|
+
/(opera)(?:.*version|)[ /]([\w.]+)/.exec(ua) ||
|
1364
|
+
/(msie) ([\w.]+)/.exec(ua) ||
|
1365
|
+
ua.indexOf('trident') >= 0 && /(rv)(?::| )([\w.]+)/.exec(ua) ||
|
1366
|
+
ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
|
1367
|
+
[];
|
1368
|
+
const matched = {
|
1369
|
+
browser: match[5] || match[3] || match[1] || '',
|
1370
|
+
version: match[4] || match[2] || '0'
|
1371
|
+
};
|
1372
|
+
if (matched.browser) {
|
1373
|
+
browser[matched.browser] = true;
|
1374
|
+
browser.version = parseInt(matched.version, 10);
|
1375
|
+
}
|
1376
|
+
// Chrome, Opera 15+, Safari and Yandex.Browser are webkit based browsers
|
1377
|
+
if (browser.chrome || browser.opr || browser.safari || browser.edg || browser.yabrowser) {
|
1378
|
+
browser.isWebkit = true;
|
1379
|
+
}
|
1380
|
+
// IE11 has a new token so we will assign it ie to avoid breaking changes
|
1381
|
+
if (browser.rv || browser.iemobile) {
|
1382
|
+
browser.ie = true;
|
1383
|
+
}
|
1384
|
+
// Edge has a new token since it became webkit based
|
1385
|
+
if (browser.edg) {
|
1386
|
+
browser.edge = true;
|
1387
|
+
}
|
1388
|
+
// Opera 15+ are identified as opr
|
1389
|
+
if (browser.opr) {
|
1390
|
+
browser.opera = true;
|
1391
|
+
}
|
1392
|
+
return browser;
|
1393
|
+
}
|
1394
|
+
exports.getBrowserInfo = getBrowserInfo;
|
1395
|
+
function getComponentPathWithoutIndicies(path = '') {
|
1396
|
+
return path.replace(/\[\d+\]/, '');
|
1397
|
+
}
|
1398
|
+
exports.getComponentPathWithoutIndicies = getComponentPathWithoutIndicies;
|
1399
|
+
/**
|
1400
|
+
* Returns a path to the component which based on its schema
|
1401
|
+
* @param {*} component is a component's schema containing link to its parent's schema in the 'parent' property
|
1402
|
+
*/
|
1403
|
+
function getComponentPath(component, path = '') {
|
1404
|
+
var _a;
|
1405
|
+
if (!component || !component.key || ((_a = component === null || component === void 0 ? void 0 : component._form) === null || _a === void 0 ? void 0 : _a.display) === 'wizard') { // unlike the Webform, the Wizard has the key and it is a duplicate of the panel key
|
1406
|
+
return path;
|
1407
|
+
}
|
1408
|
+
path = component.isInputComponent || component.input === true ? `${component.key}${path ? '.' : ''}${path}` : path;
|
1409
|
+
return getComponentPath(component.parent, path);
|
1410
|
+
}
|
1411
|
+
exports.getComponentPath = getComponentPath;
|
1412
|
+
/**
|
1413
|
+
* Returns a parent component of the passed component instance skipping all the Layout components
|
1414
|
+
* @param {*} componentInstance
|
1415
|
+
* @return {(Component|undefined)}
|
1416
|
+
*/
|
1417
|
+
function getDataParentComponent(componentInstance) {
|
1418
|
+
if (!componentInstance) {
|
1419
|
+
return;
|
1420
|
+
}
|
1421
|
+
const { parent } = componentInstance;
|
1422
|
+
if (parent && (parent.isInputComponent || parent.input)) {
|
1423
|
+
return parent;
|
1424
|
+
}
|
1425
|
+
else {
|
1426
|
+
return getDataParentComponent(parent);
|
1427
|
+
}
|
1428
|
+
}
|
1429
|
+
exports.getDataParentComponent = getDataParentComponent;
|
1430
|
+
/**
|
1431
|
+
* Returns whether the value is a promise
|
1432
|
+
* @param value
|
1433
|
+
* @return {boolean}
|
1434
|
+
*/
|
1435
|
+
function isPromise(value) {
|
1436
|
+
return value
|
1437
|
+
&& value.then
|
1438
|
+
&& typeof value.then === 'function'
|
1439
|
+
&& Object.prototype.toString.call(value) === '[object Promise]';
|
1440
|
+
}
|
1441
|
+
exports.isPromise = isPromise;
|
1442
|
+
/**
|
1443
|
+
* Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
|
1444
|
+
* changes by itself, e.g. EditGrid)
|
1445
|
+
* @param componentInstance
|
1446
|
+
* @param firstPass
|
1447
|
+
* @returns {boolean|boolean|*}
|
1448
|
+
*/
|
1449
|
+
function isInsideScopingComponent(componentInstance, firstPass = true) {
|
1450
|
+
if (!firstPass && (componentInstance === null || componentInstance === void 0 ? void 0 : componentInstance.hasScopedChildren)) {
|
1451
|
+
return true;
|
1452
|
+
}
|
1453
|
+
const dataParent = getDataParentComponent(componentInstance);
|
1454
|
+
if (dataParent === null || dataParent === void 0 ? void 0 : dataParent.hasScopedChildren) {
|
1455
|
+
return true;
|
1456
|
+
}
|
1457
|
+
else if (dataParent === null || dataParent === void 0 ? void 0 : dataParent.parent) {
|
1458
|
+
return isInsideScopingComponent(dataParent.parent, false);
|
1459
|
+
}
|
1460
|
+
return false;
|
1461
|
+
}
|
1462
|
+
exports.isInsideScopingComponent = isInsideScopingComponent;
|
1463
|
+
function getFocusableElements(element) {
|
1464
|
+
const focusableSelector = `button:not([disabled]), input:not([disabled]), select:not([disabled]),
|
1465
|
+
textarea:not([disabled]), button:not([disabled]), [href]`;
|
1466
|
+
return element.querySelectorAll(focusableSelector);
|
1467
|
+
}
|
1468
|
+
exports.getFocusableElements = getFocusableElements;
|