@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,1515 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const lodash_1 = __importDefault(require("lodash"));
|
7
|
+
const moment_1 = __importDefault(require("moment"));
|
8
|
+
const compare_versions_1 = require("compare-versions");
|
9
|
+
const EventEmitter_1 = __importDefault(require("./EventEmitter"));
|
10
|
+
const i18n_1 = __importDefault(require("./i18n"));
|
11
|
+
const Formio_1 = require("./Formio");
|
12
|
+
const native_promise_only_1 = __importDefault(require("native-promise-only"));
|
13
|
+
const Components_1 = __importDefault(require("./components/Components"));
|
14
|
+
const NestedDataComponent_1 = __importDefault(require("./components/_classes/nesteddata/NestedDataComponent"));
|
15
|
+
const utils_1 = require("./utils/utils");
|
16
|
+
const formUtils_1 = require("./utils/formUtils");
|
17
|
+
// Initialize the available forms.
|
18
|
+
Formio_1.Formio.forms = {};
|
19
|
+
// Allow people to register components.
|
20
|
+
Formio_1.Formio.registerComponent = Components_1.default.setComponent;
|
21
|
+
function getIconSet(icons) {
|
22
|
+
if (icons === 'fontawesome') {
|
23
|
+
return 'fa';
|
24
|
+
}
|
25
|
+
return icons || '';
|
26
|
+
}
|
27
|
+
function getOptions(options) {
|
28
|
+
options = lodash_1.default.defaults(options, {
|
29
|
+
submitOnEnter: false,
|
30
|
+
iconset: getIconSet((options && options.icons) ? options.icons : Formio_1.Formio.icons),
|
31
|
+
i18next: null,
|
32
|
+
saveDraft: false,
|
33
|
+
alwaysDirty: false,
|
34
|
+
saveDraftThrottle: 5000,
|
35
|
+
display: 'form',
|
36
|
+
cdnUrl: Formio_1.Formio.cdn.baseUrl
|
37
|
+
});
|
38
|
+
if (!options.events) {
|
39
|
+
options.events = new EventEmitter_1.default();
|
40
|
+
}
|
41
|
+
return options;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Renders a Form.io form within the webpage.
|
45
|
+
*/
|
46
|
+
class Webform extends NestedDataComponent_1.default {
|
47
|
+
/**
|
48
|
+
* Creates a new Form instance.
|
49
|
+
*
|
50
|
+
* @param {Object} options - The options to create a new form instance.
|
51
|
+
* @param {boolean} options.saveDraft - Set this if you would like to enable the save draft feature.
|
52
|
+
* @param {boolean} options.saveDraftThrottle - The throttle for the save draft feature.
|
53
|
+
* @param {boolean} options.readOnly - Set this form to readOnly
|
54
|
+
* @param {boolean} options.noAlerts - Set to true to disable the alerts dialog.
|
55
|
+
* @param {boolean} options.i18n - The translation file for this rendering. @see https://github.com/formio/formio.js/blob/master/i18n.js
|
56
|
+
* @param {boolean} options.template - Provides a way to inject custom logic into the creation of every element rendered within the form.
|
57
|
+
*/
|
58
|
+
/* eslint-disable max-statements */
|
59
|
+
constructor() {
|
60
|
+
let element, options;
|
61
|
+
if (arguments[0] instanceof HTMLElement || arguments[1]) {
|
62
|
+
element = arguments[0];
|
63
|
+
options = arguments[1];
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
options = arguments[0];
|
67
|
+
}
|
68
|
+
super(null, getOptions(options));
|
69
|
+
this.executeShortcuts = (event) => {
|
70
|
+
const { target } = event;
|
71
|
+
if (!this.keyboardCatchableElement(target)) {
|
72
|
+
return;
|
73
|
+
}
|
74
|
+
const ctrl = event.ctrlKey || event.metaKey;
|
75
|
+
const keyCode = event.keyCode;
|
76
|
+
let char = '';
|
77
|
+
if (65 <= keyCode && keyCode <= 90) {
|
78
|
+
char = String.fromCharCode(keyCode);
|
79
|
+
}
|
80
|
+
else if (keyCode === 13) {
|
81
|
+
char = 'Enter';
|
82
|
+
}
|
83
|
+
else if (keyCode === 27) {
|
84
|
+
char = 'Esc';
|
85
|
+
}
|
86
|
+
lodash_1.default.each(this.shortcuts, (shortcut) => {
|
87
|
+
if (shortcut.ctrl && !ctrl) {
|
88
|
+
return;
|
89
|
+
}
|
90
|
+
if (shortcut.shortcut === char) {
|
91
|
+
shortcut.element.click();
|
92
|
+
event.preventDefault();
|
93
|
+
}
|
94
|
+
});
|
95
|
+
};
|
96
|
+
this.setElement(element);
|
97
|
+
// Keep track of all available forms globally.
|
98
|
+
Formio_1.Formio.forms[this.id] = this;
|
99
|
+
// Set the base url.
|
100
|
+
if (this.options.baseUrl) {
|
101
|
+
Formio_1.Formio.setBaseUrl(this.options.baseUrl);
|
102
|
+
}
|
103
|
+
/**
|
104
|
+
* The i18n configuration for this component.
|
105
|
+
*/
|
106
|
+
let i18n = i18n_1.default;
|
107
|
+
if (options && options.i18n && !options.i18nReady) {
|
108
|
+
// Support legacy way of doing translations.
|
109
|
+
if (options.i18n.resources) {
|
110
|
+
i18n = options.i18n;
|
111
|
+
}
|
112
|
+
else {
|
113
|
+
lodash_1.default.each(options.i18n, (lang, code) => {
|
114
|
+
if (code === 'options') {
|
115
|
+
lodash_1.default.merge(i18n, lang);
|
116
|
+
}
|
117
|
+
else if (!i18n.resources[code]) {
|
118
|
+
// extend the default translations (validations, buttons etc.) in case they are not in the options.
|
119
|
+
i18n.resources[code] = { translation: lodash_1.default.assign((0, utils_1.fastCloneDeep)(i18n_1.default.resources.en.translation), lang) };
|
120
|
+
}
|
121
|
+
else {
|
122
|
+
lodash_1.default.assign(i18n.resources[code].translation, lang);
|
123
|
+
}
|
124
|
+
});
|
125
|
+
}
|
126
|
+
options.i18n = i18n;
|
127
|
+
options.i18nReady = true;
|
128
|
+
}
|
129
|
+
if (options && options.i18n) {
|
130
|
+
this.options.i18n = options.i18n;
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
this.options.i18n = i18n;
|
134
|
+
}
|
135
|
+
// Set the language.
|
136
|
+
if (this.options.language) {
|
137
|
+
this.options.i18n.lng = this.options.language;
|
138
|
+
}
|
139
|
+
/**
|
140
|
+
* The type of this element.
|
141
|
+
* @type {string}
|
142
|
+
*/
|
143
|
+
this.type = 'form';
|
144
|
+
this._src = '';
|
145
|
+
this._loading = false;
|
146
|
+
this._form = {};
|
147
|
+
this.draftEnabled = false;
|
148
|
+
this.savingDraft = true;
|
149
|
+
if (this.options.saveDraftThrottle) {
|
150
|
+
this.triggerSaveDraft = lodash_1.default.throttle(this.saveDraft.bind(this), this.options.saveDraftThrottle);
|
151
|
+
}
|
152
|
+
else {
|
153
|
+
this.triggerSaveDraft = this.saveDraft.bind(this);
|
154
|
+
}
|
155
|
+
this.customErrors = [];
|
156
|
+
/**
|
157
|
+
* Determines if this form should submit the API on submit.
|
158
|
+
* @type {boolean}
|
159
|
+
*/
|
160
|
+
this.nosubmit = false;
|
161
|
+
/**
|
162
|
+
* Determines if the form has tried to be submitted, error or not.
|
163
|
+
*
|
164
|
+
* @type {boolean}
|
165
|
+
*/
|
166
|
+
this.submitted = false;
|
167
|
+
/**
|
168
|
+
* Determines if the form is being submitted at the moment.
|
169
|
+
*
|
170
|
+
* @type {boolean}
|
171
|
+
*/
|
172
|
+
this.submitting = false;
|
173
|
+
/**
|
174
|
+
* The Formio instance for this form.
|
175
|
+
* @type {Formio}
|
176
|
+
*/
|
177
|
+
this.formio = null;
|
178
|
+
/**
|
179
|
+
* The loader HTML element.
|
180
|
+
* @type {HTMLElement}
|
181
|
+
*/
|
182
|
+
this.loader = null;
|
183
|
+
/**
|
184
|
+
* The alert HTML element
|
185
|
+
* @type {HTMLElement}
|
186
|
+
*/
|
187
|
+
this.alert = null;
|
188
|
+
/**
|
189
|
+
* Promise that is triggered when the submission is done loading.
|
190
|
+
* @type {Promise}
|
191
|
+
*/
|
192
|
+
this.onSubmission = null;
|
193
|
+
/**
|
194
|
+
* Determines if this submission is explicitly set.
|
195
|
+
* @type {boolean}
|
196
|
+
*/
|
197
|
+
this.submissionSet = false;
|
198
|
+
/**
|
199
|
+
* Promise that executes when the form is ready and rendered.
|
200
|
+
* @type {Promise}
|
201
|
+
*
|
202
|
+
* @example
|
203
|
+
* import Webform from 'formiojs/Webform';
|
204
|
+
* let form = new Webform(document.getElementById('formio'));
|
205
|
+
* form.formReady.then(() => {
|
206
|
+
* console.log('The form is ready!');
|
207
|
+
* });
|
208
|
+
* form.src = 'https://examples.form.io/example';
|
209
|
+
*/
|
210
|
+
this.formReady = new native_promise_only_1.default((resolve, reject) => {
|
211
|
+
/**
|
212
|
+
* Called when the formReady state of this form has been resolved.
|
213
|
+
*
|
214
|
+
* @type {function}
|
215
|
+
*/
|
216
|
+
this.formReadyResolve = resolve;
|
217
|
+
/**
|
218
|
+
* Called when this form could not load and is rejected.
|
219
|
+
*
|
220
|
+
* @type {function}
|
221
|
+
*/
|
222
|
+
this.formReadyReject = reject;
|
223
|
+
});
|
224
|
+
/**
|
225
|
+
* Promise that executes when the submission is ready and rendered.
|
226
|
+
* @type {Promise}
|
227
|
+
*
|
228
|
+
* @example
|
229
|
+
* import Webform from 'formiojs/Webform';
|
230
|
+
* let form = new Webform(document.getElementById('formio'));
|
231
|
+
* form.submissionReady.then(() => {
|
232
|
+
* console.log('The submission is ready!');
|
233
|
+
* });
|
234
|
+
* form.src = 'https://examples.form.io/example/submission/234234234234234243';
|
235
|
+
*/
|
236
|
+
this.submissionReady = new native_promise_only_1.default((resolve, reject) => {
|
237
|
+
/**
|
238
|
+
* Called when the formReady state of this form has been resolved.
|
239
|
+
*
|
240
|
+
* @type {function}
|
241
|
+
*/
|
242
|
+
this.submissionReadyResolve = resolve;
|
243
|
+
/**
|
244
|
+
* Called when this form could not load and is rejected.
|
245
|
+
*
|
246
|
+
* @type {function}
|
247
|
+
*/
|
248
|
+
this.submissionReadyReject = reject;
|
249
|
+
});
|
250
|
+
this.shortcuts = [];
|
251
|
+
// Set language after everything is established.
|
252
|
+
this.localize().then(() => {
|
253
|
+
this.language = this.options.language;
|
254
|
+
});
|
255
|
+
// See if we need to restore the draft from a user.
|
256
|
+
if (this.options.saveDraft && !this.options.skipDraftRestore) {
|
257
|
+
const user = Formio_1.Formio.getUser();
|
258
|
+
// Only restore a draft if the submission isn't explicitly set.
|
259
|
+
if (user && !this.submissionSet) {
|
260
|
+
this.restoreDraft(user._id);
|
261
|
+
}
|
262
|
+
}
|
263
|
+
this.component.clearOnHide = false;
|
264
|
+
// Ensure the root is set to this component.
|
265
|
+
this.root = this;
|
266
|
+
this.localRoot = this;
|
267
|
+
}
|
268
|
+
/* eslint-enable max-statements */
|
269
|
+
get language() {
|
270
|
+
return this.options.language;
|
271
|
+
}
|
272
|
+
get emptyValue() {
|
273
|
+
return null;
|
274
|
+
}
|
275
|
+
componentContext() {
|
276
|
+
return this._data;
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* Sets the language for this form.
|
280
|
+
*
|
281
|
+
* @param lang
|
282
|
+
* @return {Promise}
|
283
|
+
*/
|
284
|
+
set language(lang) {
|
285
|
+
if (!this.i18next) {
|
286
|
+
return;
|
287
|
+
}
|
288
|
+
let cleanupThis = this;
|
289
|
+
if (!cleanupThis) {
|
290
|
+
return;
|
291
|
+
}
|
292
|
+
cleanupThis.options.language = lang;
|
293
|
+
if (cleanupThis.i18next.language === lang) {
|
294
|
+
cleanupThis = null;
|
295
|
+
return;
|
296
|
+
}
|
297
|
+
try {
|
298
|
+
cleanupThis.i18next.changeLanguage(lang, (err) => {
|
299
|
+
if (err) {
|
300
|
+
cleanupThis = null;
|
301
|
+
return;
|
302
|
+
}
|
303
|
+
if (cleanupThis) {
|
304
|
+
cleanupThis.rebuild();
|
305
|
+
cleanupThis.emit('languageChanged');
|
306
|
+
cleanupThis = null;
|
307
|
+
}
|
308
|
+
});
|
309
|
+
}
|
310
|
+
catch (err) {
|
311
|
+
cleanupThis = null;
|
312
|
+
return;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
get componentComponents() {
|
316
|
+
return this.form.components;
|
317
|
+
}
|
318
|
+
get shadowRoot() {
|
319
|
+
return this.options.shadowRoot;
|
320
|
+
}
|
321
|
+
/**
|
322
|
+
* Add a language for translations
|
323
|
+
*
|
324
|
+
* @param code
|
325
|
+
* @param lang
|
326
|
+
* @param active
|
327
|
+
* @return {*}
|
328
|
+
*/
|
329
|
+
addLanguage(code, lang, active = false) {
|
330
|
+
if (this.i18next) {
|
331
|
+
var translations = lodash_1.default.assign((0, utils_1.fastCloneDeep)(i18n_1.default.resources.en.translation), lang);
|
332
|
+
this.i18next.addResourceBundle(code, 'translation', translations, true, true);
|
333
|
+
if (active) {
|
334
|
+
this.language = code;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
/**
|
339
|
+
* Perform the localization initialization.
|
340
|
+
* @returns {*}
|
341
|
+
*/
|
342
|
+
localize() {
|
343
|
+
if (!this.i18next) {
|
344
|
+
return native_promise_only_1.default.resolve(null);
|
345
|
+
}
|
346
|
+
if (this.i18next.initialized) {
|
347
|
+
return native_promise_only_1.default.resolve(this.i18next);
|
348
|
+
}
|
349
|
+
this.i18next.initialized = true;
|
350
|
+
let cleanupThis = this;
|
351
|
+
return new native_promise_only_1.default((resolve, reject) => {
|
352
|
+
try {
|
353
|
+
if (!cleanupThis) {
|
354
|
+
return;
|
355
|
+
}
|
356
|
+
cleanupThis.i18next.init(Object.assign(Object.assign({}, cleanupThis.options.i18n), { compatibilityJSON: 'v3' }), (err) => {
|
357
|
+
if (!cleanupThis) {
|
358
|
+
reject(new Error('Lost reference to `this` while initializing i18next.'));
|
359
|
+
}
|
360
|
+
// Get language but remove any ;q=1 that might exist on it.
|
361
|
+
cleanupThis.options.language = cleanupThis.i18next.language.split(';')[0];
|
362
|
+
if (err) {
|
363
|
+
cleanupThis = null;
|
364
|
+
return reject(err);
|
365
|
+
}
|
366
|
+
const i18next = cleanupThis.i18next;
|
367
|
+
cleanupThis = null;
|
368
|
+
resolve(i18next);
|
369
|
+
});
|
370
|
+
}
|
371
|
+
catch (err) {
|
372
|
+
cleanupThis = null;
|
373
|
+
return reject(err);
|
374
|
+
}
|
375
|
+
});
|
376
|
+
}
|
377
|
+
keyboardCatchableElement(element) {
|
378
|
+
if (element.nodeName === 'TEXTAREA') {
|
379
|
+
return false;
|
380
|
+
}
|
381
|
+
if (element.nodeName === 'INPUT') {
|
382
|
+
return [
|
383
|
+
'text',
|
384
|
+
'email',
|
385
|
+
'password'
|
386
|
+
].indexOf(element.type) === -1;
|
387
|
+
}
|
388
|
+
return true;
|
389
|
+
}
|
390
|
+
addShortcut(element, shortcut) {
|
391
|
+
if (!shortcut || !/^([A-Z]|Enter|Esc)$/i.test(shortcut)) {
|
392
|
+
return;
|
393
|
+
}
|
394
|
+
shortcut = lodash_1.default.capitalize(shortcut);
|
395
|
+
if (shortcut === 'Enter' || shortcut === 'Esc') {
|
396
|
+
// Restrict Enter and Esc only for buttons
|
397
|
+
if (element.tagName !== 'BUTTON') {
|
398
|
+
return;
|
399
|
+
}
|
400
|
+
this.shortcuts.push({
|
401
|
+
shortcut,
|
402
|
+
element
|
403
|
+
});
|
404
|
+
}
|
405
|
+
else {
|
406
|
+
this.shortcuts.push({
|
407
|
+
ctrl: true,
|
408
|
+
shortcut,
|
409
|
+
element
|
410
|
+
});
|
411
|
+
}
|
412
|
+
}
|
413
|
+
removeShortcut(element, shortcut) {
|
414
|
+
if (!shortcut || !/^([A-Z]|Enter|Esc)$/i.test(shortcut)) {
|
415
|
+
return;
|
416
|
+
}
|
417
|
+
lodash_1.default.remove(this.shortcuts, {
|
418
|
+
shortcut,
|
419
|
+
element
|
420
|
+
});
|
421
|
+
}
|
422
|
+
/**
|
423
|
+
* Get the embed source of the form.
|
424
|
+
*
|
425
|
+
* @returns {string}
|
426
|
+
*/
|
427
|
+
get src() {
|
428
|
+
return this._src;
|
429
|
+
}
|
430
|
+
/**
|
431
|
+
* Loads the submission if applicable.
|
432
|
+
*/
|
433
|
+
loadSubmission() {
|
434
|
+
this.loadingSubmission = true;
|
435
|
+
if (this.formio.submissionId) {
|
436
|
+
this.onSubmission = this.formio.loadSubmission().then((submission) => this.setSubmission(submission), (err) => this.submissionReadyReject(err)).catch((err) => this.submissionReadyReject(err));
|
437
|
+
}
|
438
|
+
else {
|
439
|
+
this.submissionReadyResolve();
|
440
|
+
}
|
441
|
+
return this.submissionReady;
|
442
|
+
}
|
443
|
+
/**
|
444
|
+
* Set the src of the form renderer.
|
445
|
+
*
|
446
|
+
* @param value
|
447
|
+
* @param options
|
448
|
+
*/
|
449
|
+
setSrc(value, options) {
|
450
|
+
if (this.setUrl(value, options)) {
|
451
|
+
this.nosubmit = false;
|
452
|
+
return this.formio.loadForm({ params: { live: 1 } }).then((form) => {
|
453
|
+
const setForm = this.setForm(form);
|
454
|
+
this.loadSubmission();
|
455
|
+
return setForm;
|
456
|
+
}).catch((err) => {
|
457
|
+
console.warn(err);
|
458
|
+
this.formReadyReject(err);
|
459
|
+
});
|
460
|
+
}
|
461
|
+
return native_promise_only_1.default.resolve();
|
462
|
+
}
|
463
|
+
/**
|
464
|
+
* Set the Form source, which is typically the Form.io embed URL.
|
465
|
+
*
|
466
|
+
* @param {string} value - The value of the form embed url.
|
467
|
+
*
|
468
|
+
* @example
|
469
|
+
* import Webform from 'formiojs/Webform';
|
470
|
+
* let form = new Webform(document.getElementById('formio'));
|
471
|
+
* form.formReady.then(() => {
|
472
|
+
* console.log('The form is formReady!');
|
473
|
+
* });
|
474
|
+
* form.src = 'https://examples.form.io/example';
|
475
|
+
*/
|
476
|
+
set src(value) {
|
477
|
+
this.setSrc(value);
|
478
|
+
}
|
479
|
+
/**
|
480
|
+
* Get the embed source of the form.
|
481
|
+
*
|
482
|
+
* @returns {string}
|
483
|
+
*/
|
484
|
+
get url() {
|
485
|
+
return this._src;
|
486
|
+
}
|
487
|
+
/**
|
488
|
+
* Sets the url of the form renderer.
|
489
|
+
*
|
490
|
+
* @param value
|
491
|
+
* @param options
|
492
|
+
*/
|
493
|
+
setUrl(value, options) {
|
494
|
+
if (!value ||
|
495
|
+
(typeof value !== 'string') ||
|
496
|
+
(value === this._src)) {
|
497
|
+
return false;
|
498
|
+
}
|
499
|
+
this._src = value;
|
500
|
+
this.nosubmit = true;
|
501
|
+
this.formio = this.options.formio = new Formio_1.Formio(value, options);
|
502
|
+
if (this.type === 'form') {
|
503
|
+
// Set the options source so this can be passed to other components.
|
504
|
+
this.options.src = value;
|
505
|
+
}
|
506
|
+
return true;
|
507
|
+
}
|
508
|
+
/**
|
509
|
+
* Set the form source but don't initialize the form and submission from the url.
|
510
|
+
*
|
511
|
+
* @param {string} value - The value of the form embed url.
|
512
|
+
*/
|
513
|
+
set url(value) {
|
514
|
+
this.setUrl(value);
|
515
|
+
}
|
516
|
+
/**
|
517
|
+
* Called when both the form and submission have been loaded.
|
518
|
+
*
|
519
|
+
* @returns {Promise} - The promise to trigger when both form and submission have loaded.
|
520
|
+
*/
|
521
|
+
get ready() {
|
522
|
+
return this.formReady.then(() => {
|
523
|
+
return super.ready.then(() => {
|
524
|
+
return this.loadingSubmission ? this.submissionReady : true;
|
525
|
+
});
|
526
|
+
});
|
527
|
+
}
|
528
|
+
/**
|
529
|
+
* Returns if this form is loading.
|
530
|
+
*
|
531
|
+
* @returns {boolean} - TRUE means the form is loading, FALSE otherwise.
|
532
|
+
*/
|
533
|
+
get loading() {
|
534
|
+
return this._loading;
|
535
|
+
}
|
536
|
+
/**
|
537
|
+
* Set the loading state for this form, and also show the loader spinner.
|
538
|
+
*
|
539
|
+
* @param {boolean} loading - If this form should be "loading" or not.
|
540
|
+
*/
|
541
|
+
set loading(loading) {
|
542
|
+
if (this._loading !== loading) {
|
543
|
+
this._loading = loading;
|
544
|
+
if (!this.loader && loading) {
|
545
|
+
this.loader = this.ce('div', {
|
546
|
+
class: 'loader-wrapper'
|
547
|
+
});
|
548
|
+
const spinner = this.ce('div', {
|
549
|
+
class: 'loader text-center'
|
550
|
+
});
|
551
|
+
this.loader.appendChild(spinner);
|
552
|
+
}
|
553
|
+
/* eslint-disable max-depth */
|
554
|
+
if (this.loader) {
|
555
|
+
try {
|
556
|
+
if (loading) {
|
557
|
+
this.prependTo(this.loader, this.wrapper);
|
558
|
+
}
|
559
|
+
else {
|
560
|
+
this.removeChildFrom(this.loader, this.wrapper);
|
561
|
+
}
|
562
|
+
}
|
563
|
+
catch (err) {
|
564
|
+
// ingore
|
565
|
+
}
|
566
|
+
}
|
567
|
+
/* eslint-enable max-depth */
|
568
|
+
}
|
569
|
+
}
|
570
|
+
/**
|
571
|
+
* Sets the JSON schema for the form to be rendered.
|
572
|
+
*
|
573
|
+
* @example
|
574
|
+
* import Webform from 'formiojs/Webform';
|
575
|
+
* let form = new Webform(document.getElementById('formio'));
|
576
|
+
* form.setForm({
|
577
|
+
* components: [
|
578
|
+
* {
|
579
|
+
* type: 'textfield',
|
580
|
+
* key: 'firstName',
|
581
|
+
* label: 'First Name',
|
582
|
+
* placeholder: 'Enter your first name.',
|
583
|
+
* input: true
|
584
|
+
* },
|
585
|
+
* {
|
586
|
+
* type: 'textfield',
|
587
|
+
* key: 'lastName',
|
588
|
+
* label: 'Last Name',
|
589
|
+
* placeholder: 'Enter your last name',
|
590
|
+
* input: true
|
591
|
+
* },
|
592
|
+
* {
|
593
|
+
* type: 'button',
|
594
|
+
* action: 'submit',
|
595
|
+
* label: 'Submit',
|
596
|
+
* theme: 'primary'
|
597
|
+
* }
|
598
|
+
* ]
|
599
|
+
* });
|
600
|
+
*
|
601
|
+
* @param {Object} form - The JSON schema of the form @see https://examples.form.io/example for an example JSON schema.
|
602
|
+
* @param flags
|
603
|
+
* @returns {*}
|
604
|
+
*/
|
605
|
+
setForm(form, flags) {
|
606
|
+
var _a, _b, _c;
|
607
|
+
const isFormAlreadySet = this._form && ((_a = this._form.components) === null || _a === void 0 ? void 0 : _a.length);
|
608
|
+
try {
|
609
|
+
// Do not set the form again if it has been already set
|
610
|
+
if (isFormAlreadySet && JSON.stringify(this._form) === JSON.stringify(form)) {
|
611
|
+
return native_promise_only_1.default.resolve();
|
612
|
+
}
|
613
|
+
// Create the form.
|
614
|
+
this._form = (flags === null || flags === void 0 ? void 0 : flags.keepAsReference) ? form : lodash_1.default.cloneDeep(form);
|
615
|
+
if (this.onSetForm) {
|
616
|
+
this.onSetForm(lodash_1.default.cloneDeep(this._form), form);
|
617
|
+
}
|
618
|
+
if ((_c = (_b = this.parent) === null || _b === void 0 ? void 0 : _b.component) === null || _c === void 0 ? void 0 : _c.modalEdit) {
|
619
|
+
return native_promise_only_1.default.resolve();
|
620
|
+
}
|
621
|
+
}
|
622
|
+
catch (err) {
|
623
|
+
console.warn(err);
|
624
|
+
// If provided form is not a valid JSON object, do not set it too
|
625
|
+
return native_promise_only_1.default.resolve();
|
626
|
+
}
|
627
|
+
// Allow the form to provide component overrides.
|
628
|
+
if (form && form.settings && form.settings.components) {
|
629
|
+
this.options.components = form.settings.components;
|
630
|
+
}
|
631
|
+
if (form && form.properties) {
|
632
|
+
this.options.properties = form.properties;
|
633
|
+
}
|
634
|
+
if ('schema' in form && (0, compare_versions_1.compareVersions)(form.schema, '1.x') > 0) {
|
635
|
+
this.ready.then(() => {
|
636
|
+
this.setAlert('alert alert-danger', 'Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.');
|
637
|
+
});
|
638
|
+
}
|
639
|
+
// See if they pass a module, and evaluate it if so.
|
640
|
+
if (form && form.module) {
|
641
|
+
let formModule = null;
|
642
|
+
if (typeof form.module === 'string') {
|
643
|
+
try {
|
644
|
+
formModule = this.evaluate(`return ${form.module}`);
|
645
|
+
}
|
646
|
+
catch (err) {
|
647
|
+
console.warn(err);
|
648
|
+
}
|
649
|
+
}
|
650
|
+
else {
|
651
|
+
formModule = form.module;
|
652
|
+
}
|
653
|
+
if (formModule) {
|
654
|
+
Formio_1.Formio.use(formModule);
|
655
|
+
// Since we got here after instantiation, we need to manually apply form options.
|
656
|
+
if (formModule.options && formModule.options.form) {
|
657
|
+
this.options = Object.assign(this.options, formModule.options.form);
|
658
|
+
}
|
659
|
+
}
|
660
|
+
}
|
661
|
+
this.initialized = false;
|
662
|
+
const rebuild = this.rebuild() || native_promise_only_1.default.resolve();
|
663
|
+
return rebuild.then(() => {
|
664
|
+
this.emit('formLoad', form);
|
665
|
+
this.triggerRecaptcha();
|
666
|
+
// Make sure to trigger onChange after a render event occurs to speed up form rendering.
|
667
|
+
setTimeout(() => {
|
668
|
+
this.onChange(flags);
|
669
|
+
this.formReadyResolve();
|
670
|
+
}, 0);
|
671
|
+
return this.formReady;
|
672
|
+
});
|
673
|
+
}
|
674
|
+
/**
|
675
|
+
* Gets the form object.
|
676
|
+
*
|
677
|
+
* @returns {Object} - The form JSON schema.
|
678
|
+
*/
|
679
|
+
get form() {
|
680
|
+
if (!this._form) {
|
681
|
+
this._form = {
|
682
|
+
components: []
|
683
|
+
};
|
684
|
+
}
|
685
|
+
return this._form;
|
686
|
+
}
|
687
|
+
/**
|
688
|
+
* Sets the form value.
|
689
|
+
*
|
690
|
+
* @alias setForm
|
691
|
+
* @param {Object} form - The form schema object.
|
692
|
+
*/
|
693
|
+
set form(form) {
|
694
|
+
this.setForm(form);
|
695
|
+
}
|
696
|
+
/**
|
697
|
+
* Returns the submission object that was set within this form.
|
698
|
+
*
|
699
|
+
* @returns {Object}
|
700
|
+
*/
|
701
|
+
get submission() {
|
702
|
+
return this.getValue();
|
703
|
+
}
|
704
|
+
/**
|
705
|
+
* Sets the submission of a form.
|
706
|
+
*
|
707
|
+
* @example
|
708
|
+
* import Webform from 'formiojs/Webform';
|
709
|
+
* let form = new Webform(document.getElementById('formio'));
|
710
|
+
* form.src = 'https://examples.form.io/example';
|
711
|
+
* form.submission = {data: {
|
712
|
+
* firstName: 'Joe',
|
713
|
+
* lastName: 'Smith',
|
714
|
+
* email: 'joe@example.com'
|
715
|
+
* }};
|
716
|
+
*
|
717
|
+
* @param {Object} submission - The Form.io submission object.
|
718
|
+
*/
|
719
|
+
set submission(submission) {
|
720
|
+
this.setSubmission(submission);
|
721
|
+
}
|
722
|
+
/**
|
723
|
+
* Sets a submission and returns the promise when it is ready.
|
724
|
+
* @param submission
|
725
|
+
* @param flags
|
726
|
+
* @return {Promise.<TResult>}
|
727
|
+
*/
|
728
|
+
setSubmission(submission, flags = {}) {
|
729
|
+
flags = Object.assign(Object.assign({}, flags), { fromSubmission: lodash_1.default.has(flags, 'fromSubmission') ? flags.fromSubmission : true });
|
730
|
+
return this.onSubmission = this.formReady.then((resolveFlags) => {
|
731
|
+
if (resolveFlags) {
|
732
|
+
flags = Object.assign(Object.assign({}, flags), resolveFlags);
|
733
|
+
}
|
734
|
+
this.submissionSet = true;
|
735
|
+
this.triggerChange(flags);
|
736
|
+
this.emit('beforeSetSubmission', submission);
|
737
|
+
this.setValue(submission, flags);
|
738
|
+
return this.submissionReadyResolve(submission);
|
739
|
+
}, (err) => this.submissionReadyReject(err)).catch((err) => this.submissionReadyReject(err));
|
740
|
+
}
|
741
|
+
/**
|
742
|
+
* Saves a submission draft.
|
743
|
+
*/
|
744
|
+
saveDraft() {
|
745
|
+
if (!this.draftEnabled) {
|
746
|
+
return;
|
747
|
+
}
|
748
|
+
if (!this.formio) {
|
749
|
+
console.warn(this.t('saveDraftInstanceError'));
|
750
|
+
return;
|
751
|
+
}
|
752
|
+
if (!Formio_1.Formio.getUser()) {
|
753
|
+
console.warn(this.t('saveDraftAuthError'));
|
754
|
+
return;
|
755
|
+
}
|
756
|
+
const draft = (0, utils_1.fastCloneDeep)(this.submission);
|
757
|
+
draft.state = 'draft';
|
758
|
+
if (!this.savingDraft) {
|
759
|
+
this.emit('saveDraftBegin');
|
760
|
+
this.savingDraft = true;
|
761
|
+
this.formio.saveSubmission(draft).then((sub) => {
|
762
|
+
// Set id to submission to avoid creating new draft submission
|
763
|
+
this.submission._id = sub._id;
|
764
|
+
this.savingDraft = false;
|
765
|
+
this.emit('saveDraft', sub);
|
766
|
+
});
|
767
|
+
}
|
768
|
+
}
|
769
|
+
/**
|
770
|
+
* Restores a draft submission based on the user who is authenticated.
|
771
|
+
*
|
772
|
+
* @param {userId} - The user id where we need to restore the draft from.
|
773
|
+
*/
|
774
|
+
restoreDraft(userId) {
|
775
|
+
if (!this.formio) {
|
776
|
+
console.warn(this.t('restoreDraftInstanceError'));
|
777
|
+
return;
|
778
|
+
}
|
779
|
+
this.savingDraft = true;
|
780
|
+
this.formio.loadSubmissions({
|
781
|
+
params: {
|
782
|
+
state: 'draft',
|
783
|
+
owner: userId
|
784
|
+
}
|
785
|
+
}).then(submissions => {
|
786
|
+
if (submissions.length > 0 && !this.options.skipDraftRestore) {
|
787
|
+
const draft = (0, utils_1.fastCloneDeep)(submissions[0]);
|
788
|
+
return this.setSubmission(draft).then(() => {
|
789
|
+
this.draftEnabled = true;
|
790
|
+
this.savingDraft = false;
|
791
|
+
this.emit('restoreDraft', draft);
|
792
|
+
});
|
793
|
+
}
|
794
|
+
// Enable drafts so that we can keep track of changes.
|
795
|
+
this.draftEnabled = true;
|
796
|
+
this.savingDraft = false;
|
797
|
+
this.emit('restoreDraft', null);
|
798
|
+
});
|
799
|
+
}
|
800
|
+
get schema() {
|
801
|
+
const schema = (0, utils_1.fastCloneDeep)(lodash_1.default.omit(this._form, ['components']));
|
802
|
+
schema.components = [];
|
803
|
+
this.eachComponent((component) => schema.components.push(component.schema));
|
804
|
+
return schema;
|
805
|
+
}
|
806
|
+
mergeData(_this, _that) {
|
807
|
+
lodash_1.default.mergeWith(_this, _that, (thisValue, thatValue) => {
|
808
|
+
if (Array.isArray(thisValue) && Array.isArray(thatValue) && thisValue.length !== thatValue.length) {
|
809
|
+
return thatValue;
|
810
|
+
}
|
811
|
+
});
|
812
|
+
}
|
813
|
+
setValue(submission, flags = {}) {
|
814
|
+
if (!submission || !submission.data) {
|
815
|
+
submission = { data: {} };
|
816
|
+
}
|
817
|
+
// Metadata needs to be available before setValue
|
818
|
+
this._submission.metadata = submission.metadata || {};
|
819
|
+
this.editing = !!submission._id;
|
820
|
+
// Set the timezone in the options if available.
|
821
|
+
if (!this.options.submissionTimezone &&
|
822
|
+
submission.metadata &&
|
823
|
+
submission.metadata.timezone) {
|
824
|
+
this.options.submissionTimezone = submission.metadata.timezone;
|
825
|
+
}
|
826
|
+
const changed = super.setValue(submission.data, flags);
|
827
|
+
if (!flags.sanitize) {
|
828
|
+
this.mergeData(this.data, submission.data);
|
829
|
+
}
|
830
|
+
submission.data = this.data;
|
831
|
+
this._submission = submission;
|
832
|
+
return changed;
|
833
|
+
}
|
834
|
+
getValue() {
|
835
|
+
if (!this._submission.data) {
|
836
|
+
this._submission.data = {};
|
837
|
+
}
|
838
|
+
if (this.viewOnly) {
|
839
|
+
return this._submission;
|
840
|
+
}
|
841
|
+
const submission = this._submission;
|
842
|
+
submission.data = this.data;
|
843
|
+
return this._submission;
|
844
|
+
}
|
845
|
+
/**
|
846
|
+
* Build the form.
|
847
|
+
*/
|
848
|
+
init() {
|
849
|
+
this._submission = this._submission || { data: {} };
|
850
|
+
// Remove any existing components.
|
851
|
+
if (this.components && this.components.length) {
|
852
|
+
this.destroyComponents();
|
853
|
+
this.components = [];
|
854
|
+
}
|
855
|
+
if (this.component) {
|
856
|
+
this.component.components = this.form ? this.form.components : [];
|
857
|
+
}
|
858
|
+
else {
|
859
|
+
this.component = this.form;
|
860
|
+
}
|
861
|
+
this.component.type = 'form';
|
862
|
+
this.component.input = false;
|
863
|
+
this.addComponents();
|
864
|
+
this.on('submitButton', options => {
|
865
|
+
this.submit(false, options).catch(e => e !== false && console.log(e));
|
866
|
+
}, true);
|
867
|
+
this.on('checkValidity', (data) => this.checkValidity(data, true, data), true);
|
868
|
+
this.on('requestUrl', (args) => (this.submitUrl(args.url, args.headers)), true);
|
869
|
+
this.on('resetForm', () => this.resetValue(), true);
|
870
|
+
this.on('deleteSubmission', () => this.deleteSubmission(), true);
|
871
|
+
this.on('refreshData', () => this.updateValue(), true);
|
872
|
+
this.executeFormController();
|
873
|
+
return this.formReady;
|
874
|
+
}
|
875
|
+
executeFormController() {
|
876
|
+
// If no controller value or
|
877
|
+
// hidden and set to clearOnHide (Don't calculate a value for a hidden field set to clear when hidden)
|
878
|
+
if (!this.form || !this.form.controller
|
879
|
+
|| ((!this.visible || this.component.hidden) && this.component.clearOnHide && !this.rootPristine)) {
|
880
|
+
return false;
|
881
|
+
}
|
882
|
+
this.formReady.then(() => {
|
883
|
+
this.evaluate(this.form.controller, {
|
884
|
+
components: this.components,
|
885
|
+
instance: this,
|
886
|
+
});
|
887
|
+
});
|
888
|
+
}
|
889
|
+
teardown() {
|
890
|
+
this.emit('formDelete', this.id);
|
891
|
+
delete Formio_1.Formio.forms[this.id];
|
892
|
+
delete this.executeShortcuts;
|
893
|
+
delete this.triggerSaveDraft;
|
894
|
+
super.teardown();
|
895
|
+
}
|
896
|
+
destroy(all = false) {
|
897
|
+
this.off('submitButton');
|
898
|
+
this.off('checkValidity');
|
899
|
+
this.off('requestUrl');
|
900
|
+
this.off('resetForm');
|
901
|
+
this.off('deleteSubmission');
|
902
|
+
this.off('refreshData');
|
903
|
+
return super.destroy(all);
|
904
|
+
}
|
905
|
+
build(element) {
|
906
|
+
if (element || this.element) {
|
907
|
+
return this.ready.then(() => {
|
908
|
+
element = element || this.element;
|
909
|
+
super.build(element);
|
910
|
+
});
|
911
|
+
}
|
912
|
+
return this.ready;
|
913
|
+
}
|
914
|
+
getClassName() {
|
915
|
+
let classes = 'formio-form';
|
916
|
+
if (this.options.readOnly) {
|
917
|
+
classes += ' formio-read-only';
|
918
|
+
}
|
919
|
+
return classes;
|
920
|
+
}
|
921
|
+
render() {
|
922
|
+
return super.render(this.renderTemplate('webform', {
|
923
|
+
classes: this.getClassName(),
|
924
|
+
children: this.renderComponents(),
|
925
|
+
}), this.builderMode ? 'builder' : 'form', true);
|
926
|
+
}
|
927
|
+
redraw() {
|
928
|
+
// Don't bother if we have not built yet.
|
929
|
+
if (!this.element) {
|
930
|
+
return native_promise_only_1.default.resolve();
|
931
|
+
}
|
932
|
+
this.clear();
|
933
|
+
this.setContent(this.element, this.render());
|
934
|
+
return this.attach(this.element);
|
935
|
+
}
|
936
|
+
attach(element) {
|
937
|
+
this.setElement(element);
|
938
|
+
this.loadRefs(element, { webform: 'single' });
|
939
|
+
const childPromise = this.attachComponents(this.refs.webform);
|
940
|
+
this.addEventListener(document, 'keydown', this.executeShortcuts);
|
941
|
+
this.currentForm = this;
|
942
|
+
this.hook('attachWebform', element, this);
|
943
|
+
return childPromise.then(() => {
|
944
|
+
this.emit('render', this.element);
|
945
|
+
return this.setValue(this._submission, {
|
946
|
+
noUpdateEvent: true,
|
947
|
+
});
|
948
|
+
});
|
949
|
+
}
|
950
|
+
hasRequiredFields() {
|
951
|
+
let result = false;
|
952
|
+
(0, formUtils_1.eachComponent)(this.form.components, (component) => {
|
953
|
+
if (component.validate.required) {
|
954
|
+
result = true;
|
955
|
+
return true;
|
956
|
+
}
|
957
|
+
}, true);
|
958
|
+
return result;
|
959
|
+
}
|
960
|
+
resetValue() {
|
961
|
+
lodash_1.default.each(this.getComponents(), (comp) => (comp.resetValue()));
|
962
|
+
this.setPristine(true);
|
963
|
+
this.onChange();
|
964
|
+
}
|
965
|
+
/**
|
966
|
+
* Sets a new alert to display in the error dialog of the form.
|
967
|
+
*
|
968
|
+
* @param {string} type - The type of alert to display. "danger", "success", "warning", etc.
|
969
|
+
* @param {string} message - The message to show in the alert.
|
970
|
+
* @param {Object} options
|
971
|
+
*/
|
972
|
+
setAlert(type, message, options) {
|
973
|
+
if (!type && this.submitted) {
|
974
|
+
if (this.alert) {
|
975
|
+
if (this.refs.errorRef && this.refs.errorRef.length) {
|
976
|
+
this.refs.errorRef.forEach(el => {
|
977
|
+
this.removeEventListener(el, 'click');
|
978
|
+
this.removeEventListener(el, 'keypress');
|
979
|
+
});
|
980
|
+
}
|
981
|
+
this.removeChild(this.alert);
|
982
|
+
this.alert = null;
|
983
|
+
}
|
984
|
+
return;
|
985
|
+
}
|
986
|
+
if (this.options.noAlerts) {
|
987
|
+
if (!message) {
|
988
|
+
this.emit('error', false);
|
989
|
+
}
|
990
|
+
return;
|
991
|
+
}
|
992
|
+
if (this.alert) {
|
993
|
+
try {
|
994
|
+
if (this.refs.errorRef && this.refs.errorRef.length) {
|
995
|
+
this.refs.errorRef.forEach(el => {
|
996
|
+
this.removeEventListener(el, 'click');
|
997
|
+
this.removeEventListener(el, 'keypress');
|
998
|
+
});
|
999
|
+
}
|
1000
|
+
this.removeChild(this.alert);
|
1001
|
+
this.alert = null;
|
1002
|
+
}
|
1003
|
+
catch (err) {
|
1004
|
+
// ignore
|
1005
|
+
}
|
1006
|
+
}
|
1007
|
+
if (message) {
|
1008
|
+
const attrs = {
|
1009
|
+
class: (options && options.classes) || `alert alert-${type}`,
|
1010
|
+
id: `error-list-${this.id}`,
|
1011
|
+
};
|
1012
|
+
const templateOptions = {
|
1013
|
+
message: message instanceof HTMLElement ? message.outerHTML : message,
|
1014
|
+
attrs: attrs,
|
1015
|
+
type
|
1016
|
+
};
|
1017
|
+
this.alert = (0, utils_1.convertStringToHTMLElement)(this.renderTemplate('alert', templateOptions), `#${attrs.id}`);
|
1018
|
+
}
|
1019
|
+
if (!this.alert) {
|
1020
|
+
return;
|
1021
|
+
}
|
1022
|
+
this.loadRefs(this.alert, { errorRef: 'multiple' });
|
1023
|
+
if (this.refs.errorRef && this.refs.errorRef.length) {
|
1024
|
+
this.refs.errorRef.forEach(el => {
|
1025
|
+
this.addEventListener(el, 'click', (e) => {
|
1026
|
+
const key = e.currentTarget.dataset.componentKey;
|
1027
|
+
this.focusOnComponent(key);
|
1028
|
+
});
|
1029
|
+
this.addEventListener(el, 'keydown', (e) => {
|
1030
|
+
if (e.keyCode === 13) {
|
1031
|
+
e.preventDefault();
|
1032
|
+
const key = e.currentTarget.dataset.componentKey;
|
1033
|
+
this.focusOnComponent(key);
|
1034
|
+
}
|
1035
|
+
});
|
1036
|
+
});
|
1037
|
+
}
|
1038
|
+
this.prepend(this.alert);
|
1039
|
+
}
|
1040
|
+
/**
|
1041
|
+
* Focus on selected component.
|
1042
|
+
*
|
1043
|
+
* @param {string} key - The key of selected component.
|
1044
|
+
* @returns {*}
|
1045
|
+
*/
|
1046
|
+
focusOnComponent(key) {
|
1047
|
+
if (key) {
|
1048
|
+
const component = this.getComponent(key);
|
1049
|
+
if (component) {
|
1050
|
+
component.focus();
|
1051
|
+
}
|
1052
|
+
}
|
1053
|
+
}
|
1054
|
+
/**
|
1055
|
+
* Show the errors of this form within the alert dialog.
|
1056
|
+
*
|
1057
|
+
* @param {Object} error - An optional additional error to display along with the component errors.
|
1058
|
+
* @returns {*}
|
1059
|
+
*/
|
1060
|
+
/* eslint-disable no-unused-vars */
|
1061
|
+
showErrors(error, triggerEvent, onChange) {
|
1062
|
+
this.loading = false;
|
1063
|
+
let errors = this.errors;
|
1064
|
+
if (error) {
|
1065
|
+
if (Array.isArray(error)) {
|
1066
|
+
errors = errors.concat(error);
|
1067
|
+
}
|
1068
|
+
else {
|
1069
|
+
errors.push(error);
|
1070
|
+
}
|
1071
|
+
}
|
1072
|
+
else {
|
1073
|
+
errors = super.errors;
|
1074
|
+
}
|
1075
|
+
errors = errors.concat(this.customErrors);
|
1076
|
+
errors = errors.concat(this.serverErrors || []);
|
1077
|
+
if (!errors.length) {
|
1078
|
+
this.setAlert(false);
|
1079
|
+
return;
|
1080
|
+
}
|
1081
|
+
// Mark any components as invalid if in a custom message.
|
1082
|
+
errors.forEach((err) => {
|
1083
|
+
const { components = [] } = err;
|
1084
|
+
if (err.component) {
|
1085
|
+
components.push(err.component);
|
1086
|
+
}
|
1087
|
+
if (err.path) {
|
1088
|
+
components.push(err.path);
|
1089
|
+
}
|
1090
|
+
components.forEach((path) => {
|
1091
|
+
const originalPath = this._parentPath + (0, utils_1.getStringFromComponentPath)(path);
|
1092
|
+
const component = this.getComponent(path, lodash_1.default.identity, originalPath);
|
1093
|
+
if (err.fromServer) {
|
1094
|
+
if (component.serverErrors) {
|
1095
|
+
component.serverErrors.push(err);
|
1096
|
+
}
|
1097
|
+
else {
|
1098
|
+
component.serverErrors = [err];
|
1099
|
+
}
|
1100
|
+
}
|
1101
|
+
const components = lodash_1.default.compact(Array.isArray(component) ? component : [component]);
|
1102
|
+
components.forEach((component) => component.setCustomValidity(err.message, true));
|
1103
|
+
});
|
1104
|
+
});
|
1105
|
+
const displayedErrors = [];
|
1106
|
+
errors.forEach(err => {
|
1107
|
+
if (err) {
|
1108
|
+
const createListItem = (message, index) => {
|
1109
|
+
const messageFromIndex = !lodash_1.default.isUndefined(index) && err.messages && err.messages[index];
|
1110
|
+
const keyOrPath = (messageFromIndex && messageFromIndex.formattedKeyOrPath || messageFromIndex.path) || (err.component && err.component.key) || err.fromServer && err.path;
|
1111
|
+
let formattedKeyOrPath = keyOrPath ? (0, utils_1.getStringFromComponentPath)(keyOrPath) : '';
|
1112
|
+
formattedKeyOrPath = this._parentPath + formattedKeyOrPath;
|
1113
|
+
if (typeof err !== 'string' && !err.formattedKeyOrPath) {
|
1114
|
+
err.formattedKeyOrPath = formattedKeyOrPath;
|
1115
|
+
}
|
1116
|
+
return {
|
1117
|
+
message: (0, utils_1.unescapeHTML)(message),
|
1118
|
+
keyOrPath: formattedKeyOrPath
|
1119
|
+
};
|
1120
|
+
};
|
1121
|
+
err.messages = lodash_1.default.uniqBy(err.messages, message => message.message);
|
1122
|
+
if (err.messages && err.messages.length) {
|
1123
|
+
const { component } = err;
|
1124
|
+
err.messages.forEach(({ message, context, fromServer }, index) => {
|
1125
|
+
const text = (context === null || context === void 0 ? void 0 : context.hasLabel) || fromServer
|
1126
|
+
? this.t('alertMessage', { message: this.t(message) })
|
1127
|
+
: this.t('alertMessageWithLabel', {
|
1128
|
+
label: this.t(component.label),
|
1129
|
+
message: this.t(message),
|
1130
|
+
});
|
1131
|
+
displayedErrors.push(createListItem(text, index));
|
1132
|
+
});
|
1133
|
+
}
|
1134
|
+
else if (err) {
|
1135
|
+
const message = lodash_1.default.isObject(err)
|
1136
|
+
? this.t('alertMessage', { message: this.t(err.message || '') })
|
1137
|
+
: this.t('alertMessage', { message: this.t(err) });
|
1138
|
+
displayedErrors.push(createListItem(message));
|
1139
|
+
}
|
1140
|
+
}
|
1141
|
+
});
|
1142
|
+
const errorsList = this.renderTemplate('errorsList', { errors: displayedErrors });
|
1143
|
+
this.root.setAlert('danger', errorsList);
|
1144
|
+
if (triggerEvent) {
|
1145
|
+
this.emit('error', errors);
|
1146
|
+
}
|
1147
|
+
return errors;
|
1148
|
+
}
|
1149
|
+
/* eslint-enable no-unused-vars */
|
1150
|
+
/**
|
1151
|
+
* Called when the submission has completed, or if the submission needs to be sent to an external library.
|
1152
|
+
*
|
1153
|
+
* @param {Object} submission - The submission object.
|
1154
|
+
* @param {boolean} saved - Whether or not this submission was saved to the server.
|
1155
|
+
* @returns {object} - The submission object.
|
1156
|
+
*/
|
1157
|
+
onSubmit(submission, saved) {
|
1158
|
+
var _a;
|
1159
|
+
this.loading = false;
|
1160
|
+
this.submitting = false;
|
1161
|
+
this.setPristine(true);
|
1162
|
+
// We want to return the submitted submission and setValue will mutate the submission so cloneDeep it here.
|
1163
|
+
this.setValue((0, utils_1.fastCloneDeep)(submission), {
|
1164
|
+
noValidate: true,
|
1165
|
+
noCheck: true
|
1166
|
+
});
|
1167
|
+
this.setAlert('success', `<p>${this.t('complete')}</p>`);
|
1168
|
+
// Cancel triggered saveDraft to prevent overriding the submitted state
|
1169
|
+
if (this.draftEnabled && ((_a = this.triggerSaveDraft) === null || _a === void 0 ? void 0 : _a.cancel)) {
|
1170
|
+
this.triggerSaveDraft.cancel();
|
1171
|
+
}
|
1172
|
+
this.emit('submit', submission, saved);
|
1173
|
+
if (saved) {
|
1174
|
+
this.emit('submitDone', submission);
|
1175
|
+
}
|
1176
|
+
return submission;
|
1177
|
+
}
|
1178
|
+
normalizeError(error) {
|
1179
|
+
if (error) {
|
1180
|
+
if (typeof error === 'object' && 'details' in error) {
|
1181
|
+
error = error.details;
|
1182
|
+
}
|
1183
|
+
if (typeof error === 'string') {
|
1184
|
+
error = { message: error };
|
1185
|
+
}
|
1186
|
+
}
|
1187
|
+
return error;
|
1188
|
+
}
|
1189
|
+
/**
|
1190
|
+
* Called when an error occurs during the submission.
|
1191
|
+
*
|
1192
|
+
* @param {Object} error - The error that occured.
|
1193
|
+
*/
|
1194
|
+
onSubmissionError(error) {
|
1195
|
+
error = this.normalizeError(error);
|
1196
|
+
this.submitting = false;
|
1197
|
+
this.setPristine(false);
|
1198
|
+
this.emit('submitError', error);
|
1199
|
+
// Allow for silent cancellations (no error message, no submit button error state)
|
1200
|
+
if (error && error.silent) {
|
1201
|
+
this.emit('change', { isValid: true }, { silent: true });
|
1202
|
+
return false;
|
1203
|
+
}
|
1204
|
+
let errors;
|
1205
|
+
if (this.submitted) {
|
1206
|
+
errors = this.showErrors();
|
1207
|
+
}
|
1208
|
+
else {
|
1209
|
+
errors = this.showErrors(error, true);
|
1210
|
+
}
|
1211
|
+
if (this.root && this.root.alert) {
|
1212
|
+
this.scrollIntoView(this.root.alert);
|
1213
|
+
}
|
1214
|
+
return errors;
|
1215
|
+
}
|
1216
|
+
/**
|
1217
|
+
* Trigger the change event for this form.
|
1218
|
+
*
|
1219
|
+
* @param changed
|
1220
|
+
* @param flags
|
1221
|
+
*/
|
1222
|
+
onChange(flags, changed, modified, changes) {
|
1223
|
+
flags = flags || {};
|
1224
|
+
let isChangeEventEmitted = false;
|
1225
|
+
// For any change events, clear any custom errors for that component.
|
1226
|
+
if (changed && changed.component) {
|
1227
|
+
this.customErrors = this.customErrors.filter(err => err.component && err.component !== changed.component.key);
|
1228
|
+
}
|
1229
|
+
super.onChange(flags, true);
|
1230
|
+
const value = lodash_1.default.clone(this.submission);
|
1231
|
+
flags.changed = value.changed = changed;
|
1232
|
+
flags.changes = changes;
|
1233
|
+
if (modified && this.pristine) {
|
1234
|
+
this.pristine = false;
|
1235
|
+
}
|
1236
|
+
value.isValid = this.checkData(value.data, flags);
|
1237
|
+
this.loading = false;
|
1238
|
+
if (this.submitted) {
|
1239
|
+
this.showErrors();
|
1240
|
+
}
|
1241
|
+
// See if we need to save the draft of the form.
|
1242
|
+
if (modified && this.options.saveDraft) {
|
1243
|
+
this.triggerSaveDraft();
|
1244
|
+
}
|
1245
|
+
if (!flags || !flags.noEmit) {
|
1246
|
+
this.emit('change', value, flags, modified);
|
1247
|
+
isChangeEventEmitted = true;
|
1248
|
+
}
|
1249
|
+
// The form is initialized after the first change event occurs.
|
1250
|
+
if (isChangeEventEmitted && !this.initialized) {
|
1251
|
+
this.emit('initialized');
|
1252
|
+
this.initialized = true;
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
checkData(data, flags = {}) {
|
1256
|
+
const valid = super.checkData(data, flags);
|
1257
|
+
if ((lodash_1.default.isEmpty(flags) || flags.noValidate) && this.submitted) {
|
1258
|
+
this.showErrors();
|
1259
|
+
}
|
1260
|
+
return valid;
|
1261
|
+
}
|
1262
|
+
/**
|
1263
|
+
* Send a delete request to the server.
|
1264
|
+
*/
|
1265
|
+
deleteSubmission() {
|
1266
|
+
return this.formio.deleteSubmission()
|
1267
|
+
.then(() => {
|
1268
|
+
this.emit('submissionDeleted', this.submission);
|
1269
|
+
this.resetValue();
|
1270
|
+
});
|
1271
|
+
}
|
1272
|
+
/**
|
1273
|
+
* Cancels the submission.
|
1274
|
+
*
|
1275
|
+
* @alias reset
|
1276
|
+
*/
|
1277
|
+
cancel(noconfirm) {
|
1278
|
+
const shouldReset = this.hook('beforeCancel', true);
|
1279
|
+
if (shouldReset && (noconfirm || confirm(this.t('confirmCancel')))) {
|
1280
|
+
this.resetValue();
|
1281
|
+
return true;
|
1282
|
+
}
|
1283
|
+
else {
|
1284
|
+
this.emit('cancelSubmit');
|
1285
|
+
return false;
|
1286
|
+
}
|
1287
|
+
}
|
1288
|
+
setMetadata(submission) {
|
1289
|
+
// Add in metadata about client submitting the form
|
1290
|
+
submission.metadata = submission.metadata || {};
|
1291
|
+
lodash_1.default.defaults(submission.metadata, {
|
1292
|
+
timezone: lodash_1.default.get(this, '_submission.metadata.timezone', (0, utils_1.currentTimezone)()),
|
1293
|
+
offset: parseInt(lodash_1.default.get(this, '_submission.metadata.offset', (0, moment_1.default)().utcOffset()), 10),
|
1294
|
+
origin: document.location.origin,
|
1295
|
+
referrer: document.referrer,
|
1296
|
+
browserName: navigator.appName,
|
1297
|
+
userAgent: navigator.userAgent,
|
1298
|
+
pathName: window.location.pathname,
|
1299
|
+
onLine: navigator.onLine
|
1300
|
+
});
|
1301
|
+
}
|
1302
|
+
submitForm(options = {}) {
|
1303
|
+
this.clearServerErrors();
|
1304
|
+
return new native_promise_only_1.default((resolve, reject) => {
|
1305
|
+
// Read-only forms should never submit.
|
1306
|
+
if (this.options.readOnly) {
|
1307
|
+
return resolve({
|
1308
|
+
submission: this.submission,
|
1309
|
+
saved: false
|
1310
|
+
});
|
1311
|
+
}
|
1312
|
+
const submission = (0, utils_1.fastCloneDeep)(this.submission || {});
|
1313
|
+
this.setMetadata(submission);
|
1314
|
+
submission.state = options.state || 'submitted';
|
1315
|
+
const isDraft = (submission.state === 'draft');
|
1316
|
+
this.hook('beforeSubmit', Object.assign(Object.assign({}, submission), { component: options.component }), (err, data) => {
|
1317
|
+
if (err) {
|
1318
|
+
return reject(err);
|
1319
|
+
}
|
1320
|
+
submission._vnote = data && data._vnote ? data._vnote : '';
|
1321
|
+
if (!isDraft && !submission.data) {
|
1322
|
+
return reject('Invalid Submission');
|
1323
|
+
}
|
1324
|
+
if (!isDraft && !this.checkValidity(submission.data, true)) {
|
1325
|
+
return reject();
|
1326
|
+
}
|
1327
|
+
this.everyComponent((comp) => {
|
1328
|
+
const { persistent } = comp.component;
|
1329
|
+
if (persistent === 'client-only') {
|
1330
|
+
lodash_1.default.unset(submission.data, comp.path);
|
1331
|
+
}
|
1332
|
+
});
|
1333
|
+
this.hook('customValidation', Object.assign(Object.assign({}, submission), { component: options.component }), (err) => {
|
1334
|
+
if (err) {
|
1335
|
+
// If string is returned, cast to object.
|
1336
|
+
if (typeof err === 'string') {
|
1337
|
+
err = {
|
1338
|
+
message: err
|
1339
|
+
};
|
1340
|
+
}
|
1341
|
+
// Ensure err is an array.
|
1342
|
+
err = Array.isArray(err) ? err : [err];
|
1343
|
+
// Set as custom errors.
|
1344
|
+
this.customErrors = err;
|
1345
|
+
return reject();
|
1346
|
+
}
|
1347
|
+
this.loading = true;
|
1348
|
+
// Use the form action to submit the form if available.
|
1349
|
+
if (this._form && this._form.action) {
|
1350
|
+
const method = (submission.data._id && this._form.action.includes(submission.data._id)) ? 'PUT' : 'POST';
|
1351
|
+
return Formio_1.Formio.makeStaticRequest(this._form.action, method, submission, this.formio ? this.formio.options : {})
|
1352
|
+
.then((result) => resolve({
|
1353
|
+
submission: result,
|
1354
|
+
saved: true,
|
1355
|
+
}))
|
1356
|
+
.catch((error) => {
|
1357
|
+
this.setServerErrors(error);
|
1358
|
+
return reject(error);
|
1359
|
+
});
|
1360
|
+
}
|
1361
|
+
const submitFormio = this.formio;
|
1362
|
+
if (this.nosubmit || !submitFormio) {
|
1363
|
+
return resolve({
|
1364
|
+
submission,
|
1365
|
+
saved: false,
|
1366
|
+
});
|
1367
|
+
}
|
1368
|
+
// If this is an actionUrl, then make sure to save the action and not the submission.
|
1369
|
+
const submitMethod = submitFormio.actionUrl ? 'saveAction' : 'saveSubmission';
|
1370
|
+
submitFormio[submitMethod](submission)
|
1371
|
+
.then((result) => resolve({
|
1372
|
+
submission: result,
|
1373
|
+
saved: true,
|
1374
|
+
}))
|
1375
|
+
.catch((error) => {
|
1376
|
+
this.setServerErrors(error);
|
1377
|
+
return reject(error);
|
1378
|
+
});
|
1379
|
+
});
|
1380
|
+
});
|
1381
|
+
});
|
1382
|
+
}
|
1383
|
+
setServerErrors(error) {
|
1384
|
+
if (error.details) {
|
1385
|
+
this.serverErrors = error.details.filter((err) => err.level ? err.level === 'error' : err).map((err) => {
|
1386
|
+
err.fromServer = true;
|
1387
|
+
return err;
|
1388
|
+
});
|
1389
|
+
}
|
1390
|
+
else if (typeof error === 'string') {
|
1391
|
+
this.serverErrors = [{ fromServer: true, level: 'error', message: error }];
|
1392
|
+
}
|
1393
|
+
}
|
1394
|
+
executeSubmit(options) {
|
1395
|
+
this.submitted = true;
|
1396
|
+
this.submitting = true;
|
1397
|
+
return this.submitForm(options)
|
1398
|
+
.then(({ submission, saved }) => this.onSubmit(submission, saved))
|
1399
|
+
.then((results) => {
|
1400
|
+
this.submissionInProcess = false;
|
1401
|
+
return results;
|
1402
|
+
})
|
1403
|
+
.catch((err) => {
|
1404
|
+
this.submissionInProcess = false;
|
1405
|
+
return native_promise_only_1.default.reject(this.onSubmissionError(err));
|
1406
|
+
});
|
1407
|
+
}
|
1408
|
+
clearServerErrors() {
|
1409
|
+
var _a;
|
1410
|
+
(_a = this.serverErrors) === null || _a === void 0 ? void 0 : _a.forEach((error) => {
|
1411
|
+
if (error.path) {
|
1412
|
+
const pathArray = (0, utils_1.getArrayFromComponentPath)(error.path);
|
1413
|
+
const component = this.getComponent(pathArray, lodash_1.default.identity, error.formattedKeyOrPath);
|
1414
|
+
if (component) {
|
1415
|
+
component.serverErrors = [];
|
1416
|
+
}
|
1417
|
+
}
|
1418
|
+
});
|
1419
|
+
this.serverErrors = [];
|
1420
|
+
}
|
1421
|
+
/**
|
1422
|
+
* Submits the form.
|
1423
|
+
*
|
1424
|
+
* @example
|
1425
|
+
* import Webform from 'formiojs/Webform';
|
1426
|
+
* let form = new Webform(document.getElementById('formio'));
|
1427
|
+
* form.src = 'https://examples.form.io/example';
|
1428
|
+
* form.submission = {data: {
|
1429
|
+
* firstName: 'Joe',
|
1430
|
+
* lastName: 'Smith',
|
1431
|
+
* email: 'joe@example.com'
|
1432
|
+
* }};
|
1433
|
+
* form.submit().then((submission) => {
|
1434
|
+
* console.log(submission);
|
1435
|
+
* });
|
1436
|
+
*
|
1437
|
+
* @param {boolean} before - If this submission occured from the before handlers.
|
1438
|
+
*
|
1439
|
+
* @returns {Promise} - A promise when the form is done submitting.
|
1440
|
+
*/
|
1441
|
+
submit(before, options) {
|
1442
|
+
this.submissionInProcess = true;
|
1443
|
+
if (!before) {
|
1444
|
+
return this.beforeSubmit(options).then(() => this.executeSubmit(options));
|
1445
|
+
}
|
1446
|
+
else {
|
1447
|
+
return this.executeSubmit(options);
|
1448
|
+
}
|
1449
|
+
}
|
1450
|
+
submitUrl(URL, headers) {
|
1451
|
+
if (!URL) {
|
1452
|
+
return console.warn('Missing URL argument');
|
1453
|
+
}
|
1454
|
+
const submission = this.submission || {};
|
1455
|
+
const API_URL = URL;
|
1456
|
+
const settings = {
|
1457
|
+
method: 'POST',
|
1458
|
+
headers: {}
|
1459
|
+
};
|
1460
|
+
if (headers && headers.length > 0) {
|
1461
|
+
headers.map((e) => {
|
1462
|
+
if (e.header !== '' && e.value !== '') {
|
1463
|
+
settings.headers[e.header] = this.interpolate(e.value, submission);
|
1464
|
+
}
|
1465
|
+
});
|
1466
|
+
}
|
1467
|
+
if (API_URL && settings) {
|
1468
|
+
Formio_1.Formio.makeStaticRequest(API_URL, settings.method, submission, { headers: settings.headers }).then(() => {
|
1469
|
+
this.emit('requestDone');
|
1470
|
+
this.setAlert('success', '<p> Success </p>');
|
1471
|
+
}).catch((e) => {
|
1472
|
+
this.showErrors(`${e.statusText ? e.statusText : ''} ${e.status ? e.status : e}`);
|
1473
|
+
this.emit('error', `${e.statusText ? e.statusText : ''} ${e.status ? e.status : e}`);
|
1474
|
+
console.error(`${e.statusText ? e.statusText : ''} ${e.status ? e.status : e}`);
|
1475
|
+
this.setAlert('danger', `<p> ${e.statusText ? e.statusText : ''} ${e.status ? e.status : e} </p>`);
|
1476
|
+
});
|
1477
|
+
}
|
1478
|
+
else {
|
1479
|
+
this.emit('error', 'You should add a URL to this button.');
|
1480
|
+
this.setAlert('warning', 'You should add a URL to this button.');
|
1481
|
+
return console.warn('You should add a URL to this button.');
|
1482
|
+
}
|
1483
|
+
}
|
1484
|
+
triggerRecaptcha() {
|
1485
|
+
if (!this || !this.components) {
|
1486
|
+
return;
|
1487
|
+
}
|
1488
|
+
const recaptchaComponent = (0, utils_1.searchComponents)(this.components, {
|
1489
|
+
'component.type': 'recaptcha',
|
1490
|
+
'component.eventType': 'formLoad'
|
1491
|
+
});
|
1492
|
+
if (recaptchaComponent.length > 0) {
|
1493
|
+
recaptchaComponent[0].verify(`${this.form.name ? this.form.name : 'form'}Load`);
|
1494
|
+
}
|
1495
|
+
}
|
1496
|
+
set nosubmit(value) {
|
1497
|
+
this._nosubmit = !!value;
|
1498
|
+
this.emit('nosubmit', this._nosubmit);
|
1499
|
+
}
|
1500
|
+
get nosubmit() {
|
1501
|
+
return this._nosubmit || false;
|
1502
|
+
}
|
1503
|
+
get conditions() {
|
1504
|
+
var _a, _b;
|
1505
|
+
return (_b = (_a = this.schema.settings) === null || _a === void 0 ? void 0 : _a.conditions) !== null && _b !== void 0 ? _b : [];
|
1506
|
+
}
|
1507
|
+
get variables() {
|
1508
|
+
var _a, _b;
|
1509
|
+
return (_b = (_a = this.schema.settings) === null || _a === void 0 ? void 0 : _a.variables) !== null && _b !== void 0 ? _b : [];
|
1510
|
+
}
|
1511
|
+
}
|
1512
|
+
exports.default = Webform;
|
1513
|
+
Webform.setBaseUrl = Formio_1.Formio.setBaseUrl;
|
1514
|
+
Webform.setApiUrl = Formio_1.Formio.setApiUrl;
|
1515
|
+
Webform.setAppUrl = Formio_1.Formio.setAppUrl;
|