@formio/js 5.0.0-rc.10
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 +53 -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 +5 -0
- package/lib/cjs/validator/rules/Custom.js +31 -0
- package/lib/cjs/validator/rules/Date.d.ts +5 -0
- package/lib/cjs/validator/rules/Date.js +26 -0
- package/lib/cjs/validator/rules/Day.d.ts +5 -0
- package/lib/cjs/validator/rules/Day.js +59 -0
- package/lib/cjs/validator/rules/Email.d.ts +5 -0
- package/lib/cjs/validator/rules/Email.js +25 -0
- package/lib/cjs/validator/rules/JSON.d.ts +5 -0
- package/lib/cjs/validator/rules/JSON.js +30 -0
- package/lib/cjs/validator/rules/Mask.d.ts +5 -0
- package/lib/cjs/validator/rules/Mask.js +33 -0
- package/lib/cjs/validator/rules/Max.d.ts +5 -0
- package/lib/cjs/validator/rules/Max.js +22 -0
- package/lib/cjs/validator/rules/MaxDate.d.ts +5 -0
- package/lib/cjs/validator/rules/MaxDate.js +35 -0
- package/lib/cjs/validator/rules/MaxLength.d.ts +5 -0
- package/lib/cjs/validator/rules/MaxLength.js +21 -0
- package/lib/cjs/validator/rules/MaxWords.d.ts +5 -0
- package/lib/cjs/validator/rules/MaxWords.js +21 -0
- package/lib/cjs/validator/rules/MaxYear.d.ts +5 -0
- package/lib/cjs/validator/rules/MaxYear.js +23 -0
- package/lib/cjs/validator/rules/Min.d.ts +5 -0
- package/lib/cjs/validator/rules/Min.js +22 -0
- package/lib/cjs/validator/rules/MinDate.d.ts +5 -0
- package/lib/cjs/validator/rules/MinDate.js +31 -0
- package/lib/cjs/validator/rules/MinLength.d.ts +5 -0
- package/lib/cjs/validator/rules/MinLength.js +21 -0
- package/lib/cjs/validator/rules/MinWords.d.ts +5 -0
- package/lib/cjs/validator/rules/MinWords.js +21 -0
- package/lib/cjs/validator/rules/MinYear.d.ts +5 -0
- package/lib/cjs/validator/rules/MinYear.js +23 -0
- package/lib/cjs/validator/rules/Pattern.d.ts +5 -0
- package/lib/cjs/validator/rules/Pattern.js +21 -0
- package/lib/cjs/validator/rules/Required.d.ts +5 -0
- package/lib/cjs/validator/rules/Required.js +18 -0
- package/lib/cjs/validator/rules/Rule.d.ts +7 -0
- package/lib/cjs/validator/rules/Rule.js +13 -0
- package/lib/cjs/validator/rules/Select.d.ts +5 -0
- package/lib/cjs/validator/rules/Select.js +97 -0
- package/lib/cjs/validator/rules/Time.d.ts +5 -0
- package/lib/cjs/validator/rules/Time.js +20 -0
- package/lib/cjs/validator/rules/Unique.d.ts +5 -0
- package/lib/cjs/validator/rules/Unique.js +71 -0
- package/lib/cjs/validator/rules/Url.d.ts +5 -0
- package/lib/cjs/validator/rules/Url.js +24 -0
- package/lib/cjs/validator/rules/index.d.ts +47 -0
- package/lib/cjs/validator/rules/index.js +51 -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 +53 -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 +5 -0
- package/lib/mjs/validator/rules/Custom.js +22 -0
- package/lib/mjs/validator/rules/Date.d.ts +5 -0
- package/lib/mjs/validator/rules/Date.js +17 -0
- package/lib/mjs/validator/rules/Day.d.ts +5 -0
- package/lib/mjs/validator/rules/Day.js +50 -0
- package/lib/mjs/validator/rules/Email.d.ts +5 -0
- package/lib/mjs/validator/rules/Email.js +16 -0
- package/lib/mjs/validator/rules/JSON.d.ts +5 -0
- package/lib/mjs/validator/rules/JSON.js +21 -0
- package/lib/mjs/validator/rules/Mask.d.ts +5 -0
- package/lib/mjs/validator/rules/Mask.js +24 -0
- package/lib/mjs/validator/rules/Max.d.ts +5 -0
- package/lib/mjs/validator/rules/Max.js +13 -0
- package/lib/mjs/validator/rules/MaxDate.d.ts +5 -0
- package/lib/mjs/validator/rules/MaxDate.js +26 -0
- package/lib/mjs/validator/rules/MaxLength.d.ts +5 -0
- package/lib/mjs/validator/rules/MaxLength.js +12 -0
- package/lib/mjs/validator/rules/MaxWords.d.ts +5 -0
- package/lib/mjs/validator/rules/MaxWords.js +12 -0
- package/lib/mjs/validator/rules/MaxYear.d.ts +5 -0
- package/lib/mjs/validator/rules/MaxYear.js +14 -0
- package/lib/mjs/validator/rules/Min.d.ts +5 -0
- package/lib/mjs/validator/rules/Min.js +13 -0
- package/lib/mjs/validator/rules/MinDate.d.ts +5 -0
- package/lib/mjs/validator/rules/MinDate.js +22 -0
- package/lib/mjs/validator/rules/MinLength.d.ts +5 -0
- package/lib/mjs/validator/rules/MinLength.js +12 -0
- package/lib/mjs/validator/rules/MinWords.d.ts +5 -0
- package/lib/mjs/validator/rules/MinWords.js +12 -0
- package/lib/mjs/validator/rules/MinYear.d.ts +5 -0
- package/lib/mjs/validator/rules/MinYear.js +14 -0
- package/lib/mjs/validator/rules/Pattern.d.ts +5 -0
- package/lib/mjs/validator/rules/Pattern.js +12 -0
- package/lib/mjs/validator/rules/Required.d.ts +5 -0
- package/lib/mjs/validator/rules/Required.js +9 -0
- package/lib/mjs/validator/rules/Rule.d.ts +7 -0
- package/lib/mjs/validator/rules/Rule.js +10 -0
- package/lib/mjs/validator/rules/Select.d.ts +5 -0
- package/lib/mjs/validator/rules/Select.js +88 -0
- package/lib/mjs/validator/rules/Time.d.ts +5 -0
- package/lib/mjs/validator/rules/Time.js +11 -0
- package/lib/mjs/validator/rules/Unique.d.ts +5 -0
- package/lib/mjs/validator/rules/Unique.js +62 -0
- package/lib/mjs/validator/rules/Url.d.ts +5 -0
- package/lib/mjs/validator/rules/Url.js +15 -0
- package/lib/mjs/validator/rules/index.d.ts +47 -0
- package/lib/mjs/validator/rules/index.js +46 -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 +155 -0
- package/types/widgets.d.ts +4 -0
@@ -0,0 +1,1537 @@
|
|
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 Webform_1 = __importDefault(require("./Webform"));
|
7
|
+
const Component_1 = __importDefault(require("./components/_classes/component/Component"));
|
8
|
+
const tippy_js_1 = __importDefault(require("tippy.js"));
|
9
|
+
const native_promise_only_1 = __importDefault(require("native-promise-only"));
|
10
|
+
const Components_1 = __importDefault(require("./components/Components"));
|
11
|
+
const Formio_1 = require("./Formio");
|
12
|
+
const utils_1 = require("./utils/utils");
|
13
|
+
const formUtils_1 = require("./utils/formUtils");
|
14
|
+
const builder_1 = __importDefault(require("./utils/builder"));
|
15
|
+
const lodash_1 = __importDefault(require("lodash"));
|
16
|
+
const dom_autoscroller_1 = __importDefault(require("dom-autoscroller"));
|
17
|
+
const Templates_1 = __importDefault(require("./templates/Templates"));
|
18
|
+
require('./components/builder');
|
19
|
+
let dragula;
|
20
|
+
if (typeof window !== 'undefined') {
|
21
|
+
// Import from "dist" because it would require and "global" would not be defined in Angular apps.
|
22
|
+
dragula = require('dragula/dist/dragula');
|
23
|
+
}
|
24
|
+
class WebformBuilder extends Component_1.default {
|
25
|
+
// eslint-disable-next-line max-statements
|
26
|
+
constructor() {
|
27
|
+
let element, options;
|
28
|
+
if (arguments[0] instanceof HTMLElement || arguments[1]) {
|
29
|
+
element = arguments[0];
|
30
|
+
options = arguments[1];
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
options = arguments[0];
|
34
|
+
}
|
35
|
+
// Reset skipInit in case PDFBuilder has set it.
|
36
|
+
options.skipInit = false;
|
37
|
+
options.display = options.display || 'form';
|
38
|
+
super(null, options);
|
39
|
+
this.moveHandler = (e) => {
|
40
|
+
e.stopPropagation();
|
41
|
+
e.preventDefault();
|
42
|
+
if (e.keyCode === 38) {
|
43
|
+
this.updateComponentPlacement(true);
|
44
|
+
}
|
45
|
+
if (e.keyCode === 40) {
|
46
|
+
this.updateComponentPlacement(false);
|
47
|
+
}
|
48
|
+
if (e.keyCode === 13) {
|
49
|
+
this.stopMoving(this.selectedElement);
|
50
|
+
}
|
51
|
+
};
|
52
|
+
this.setElement(element);
|
53
|
+
this.builderHeight = 0;
|
54
|
+
this.schemas = {};
|
55
|
+
this.repeatablePaths = [];
|
56
|
+
this.sideBarScroll = lodash_1.default.get(this.options, 'sideBarScroll', true);
|
57
|
+
this.sideBarScrollOffset = lodash_1.default.get(this.options, 'sideBarScrollOffset', 0);
|
58
|
+
this.dragDropEnabled = true;
|
59
|
+
// Setup the builder options.
|
60
|
+
this.builder = lodash_1.default.defaultsDeep({}, this.options.builder, this.defaultGroups);
|
61
|
+
// Turn off if explicitely said to do so...
|
62
|
+
lodash_1.default.each(this.defaultGroups, (config, key) => {
|
63
|
+
if (config === false) {
|
64
|
+
this.builder[key] = false;
|
65
|
+
}
|
66
|
+
});
|
67
|
+
// Add the groups.////
|
68
|
+
this.groups = {};
|
69
|
+
this.groupOrder = [];
|
70
|
+
for (const group in this.builder) {
|
71
|
+
if (this.builder[group]) {
|
72
|
+
this.builder[group].key = group;
|
73
|
+
this.groups[group] = this.builder[group];
|
74
|
+
this.groups[group].components = this.groups[group].components || {};
|
75
|
+
this.groups[group].componentOrder = this.groups[group].componentOrder || [];
|
76
|
+
this.groups[group].subgroups = Object.keys(this.groups[group].groups || {}).map((groupKey) => {
|
77
|
+
this.groups[group].groups[groupKey].componentOrder = Object.keys(this.groups[group].groups[groupKey].components).map((key) => key);
|
78
|
+
return this.groups[group].groups[groupKey];
|
79
|
+
});
|
80
|
+
this.groupOrder.push(this.groups[group]);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
this.groupOrder = this.groupOrder
|
84
|
+
.filter(group => group && !group.ignore)
|
85
|
+
.sort((a, b) => a.weight - b.weight)
|
86
|
+
.map(group => group.key);
|
87
|
+
for (const type in Components_1.default.components) {
|
88
|
+
const component = Components_1.default.components[type];
|
89
|
+
if (component.builderInfo && component.builderInfo.schema) {
|
90
|
+
this.schemas[type] = component.builderInfo.schema;
|
91
|
+
component.type = type;
|
92
|
+
const builderInfo = component.builderInfo;
|
93
|
+
builderInfo.key = component.type;
|
94
|
+
this.addBuilderComponentInfo(builderInfo);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
// Filter out any extra components.
|
98
|
+
// Add the components in each group.
|
99
|
+
for (const group in this.groups) {
|
100
|
+
const info = this.groups[group];
|
101
|
+
for (const key in info.components) {
|
102
|
+
const compKey = group === 'resource' ? `component-${key}` : key;
|
103
|
+
let comp = info.components[compKey];
|
104
|
+
if (comp === true &&
|
105
|
+
Components_1.default.components[key] &&
|
106
|
+
Components_1.default.components[key].builderInfo) {
|
107
|
+
comp = Components_1.default.components[key].builderInfo;
|
108
|
+
}
|
109
|
+
if (comp && comp.schema) {
|
110
|
+
this.schemas[key] = comp.schema;
|
111
|
+
info.components[compKey] = comp;
|
112
|
+
info.components[compKey].key = key;
|
113
|
+
}
|
114
|
+
else {
|
115
|
+
// Do not include this component in the components array.
|
116
|
+
delete info.components[compKey];
|
117
|
+
}
|
118
|
+
}
|
119
|
+
// Order the components.
|
120
|
+
this.orderComponents(info);
|
121
|
+
}
|
122
|
+
this.options.hooks = this.options.hooks || {};
|
123
|
+
this.options.hooks.renderComponent = (html, { component, self }) => {
|
124
|
+
var _a;
|
125
|
+
if (self.type === 'form' && !self.key) {
|
126
|
+
const template = this.hook('renderComponentFormTemplate', html.replace('formio-component-form', ''));
|
127
|
+
// The main webform shouldn't have this class as it adds extra styles.
|
128
|
+
return template;
|
129
|
+
}
|
130
|
+
if (this.options.disabled && this.options.disabled.includes(self.key) || self.parent.noDragDrop) {
|
131
|
+
return html;
|
132
|
+
}
|
133
|
+
return this.renderTemplate('builderComponent', {
|
134
|
+
html,
|
135
|
+
disableBuilderActions: (_a = self === null || self === void 0 ? void 0 : self.component) === null || _a === void 0 ? void 0 : _a.disableBuilderActions,
|
136
|
+
childComponent: component,
|
137
|
+
});
|
138
|
+
};
|
139
|
+
this.options.hooks.renderComponents = (html, { components, self }) => {
|
140
|
+
// if Datagrid and already has a component, don't make it droppable.
|
141
|
+
if (self.type === 'datagrid' && components.length > 0 || self.noDragDrop) {
|
142
|
+
return html;
|
143
|
+
}
|
144
|
+
if (!components ||
|
145
|
+
(!components.length && !components.nodrop) ||
|
146
|
+
(self.type === 'form' && components.length <= 1 && (components.length === 0 || components[0].type === 'button'))) {
|
147
|
+
html = this.renderTemplate('builderPlaceholder', {
|
148
|
+
position: 0
|
149
|
+
}) + html;
|
150
|
+
}
|
151
|
+
return this.renderTemplate('builderComponents', {
|
152
|
+
key: self.key,
|
153
|
+
type: self.type,
|
154
|
+
html,
|
155
|
+
});
|
156
|
+
};
|
157
|
+
this.options.hooks.renderInput = (html, { self }) => {
|
158
|
+
if (self.type === 'hidden') {
|
159
|
+
return html + self.name;
|
160
|
+
}
|
161
|
+
return html;
|
162
|
+
};
|
163
|
+
this.options.hooks.renderLoading = (html, { self }) => {
|
164
|
+
if (self.type === 'form' && self.key) {
|
165
|
+
return self.name;
|
166
|
+
}
|
167
|
+
return html;
|
168
|
+
};
|
169
|
+
this.options.hooks.attachComponents = (element, components, container, component) => {
|
170
|
+
// Don't attach if no element was found or component doesn't participate in drag'n'drop.
|
171
|
+
if (!element) {
|
172
|
+
return;
|
173
|
+
}
|
174
|
+
if (component.noDragDrop) {
|
175
|
+
return element;
|
176
|
+
}
|
177
|
+
// Attach container and component to element for later reference.
|
178
|
+
const containerElement = element.querySelector(`[ref="${component.component.key}-container"]`) || element;
|
179
|
+
containerElement.formioContainer = container;
|
180
|
+
containerElement.formioComponent = component;
|
181
|
+
// Add container to draggable list.
|
182
|
+
if (this.dragula && this.allowDrop(element)) {
|
183
|
+
this.dragula.containers.push(containerElement);
|
184
|
+
}
|
185
|
+
// If this is an existing datagrid element, don't make it draggable.
|
186
|
+
if ((component.type === 'datagrid' || component.type === 'datamap') && components.length > 0) {
|
187
|
+
return element;
|
188
|
+
}
|
189
|
+
// Since we added a wrapper, need to return the original element so that we can find the components inside it.
|
190
|
+
return element.children[0];
|
191
|
+
};
|
192
|
+
this.options.hooks.attachDatagrid = (element, component) => {
|
193
|
+
component.loadRefs(element, {
|
194
|
+
[`${component.key}-container`]: 'single',
|
195
|
+
});
|
196
|
+
const dataGridContainer = component.refs[`${component.key}-container`];
|
197
|
+
if (dataGridContainer) {
|
198
|
+
component.attachComponents(dataGridContainer.parentNode, [], component.component.components);
|
199
|
+
}
|
200
|
+
// Need to set up horizontal rearrangement of fields.
|
201
|
+
};
|
202
|
+
this.options.hooks.attachComponent = this.attachComponent.bind(this);
|
203
|
+
// Load resources tagged as 'builder'
|
204
|
+
const query = {
|
205
|
+
params: {
|
206
|
+
type: 'resource',
|
207
|
+
limit: 1000000,
|
208
|
+
select: '_id,title,name,components'
|
209
|
+
}
|
210
|
+
};
|
211
|
+
if (this.options && this.options.resourceTag) {
|
212
|
+
query.params.tags = [this.options.resourceTag];
|
213
|
+
}
|
214
|
+
else if (!this.options || !this.options.hasOwnProperty('resourceTag')) {
|
215
|
+
query.params.tags = ['builder'];
|
216
|
+
}
|
217
|
+
const formio = new Formio_1.Formio(Formio_1.Formio.projectUrl);
|
218
|
+
const isResourcesDisabled = this.options.builder && this.options.builder.resource === false;
|
219
|
+
formio.loadProject().then((project) => {
|
220
|
+
if (project && (lodash_1.default.get(project, 'settings.addConfigToForms', false) || lodash_1.default.get(project, 'addConfigToForms', false))) {
|
221
|
+
const config = project.config || {};
|
222
|
+
this.options.formConfig = config;
|
223
|
+
const pathToFormConfig = 'webform._form.config';
|
224
|
+
const webformConfig = lodash_1.default.get(this, pathToFormConfig);
|
225
|
+
if (this.webform && !webformConfig) {
|
226
|
+
lodash_1.default.set(this, pathToFormConfig, config);
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}).catch((err) => {
|
230
|
+
console.warn(`Could not load project settings: ${err.message || err}`);
|
231
|
+
});
|
232
|
+
if (!formio.noProject && !isResourcesDisabled && formio.formsUrl) {
|
233
|
+
const resourceOptions = this.options.builder && this.options.builder.resource;
|
234
|
+
formio.loadForms(query)
|
235
|
+
.then((resources) => {
|
236
|
+
if (resources.length) {
|
237
|
+
this.builder.resource = {
|
238
|
+
title: resourceOptions ? resourceOptions.title : 'Existing Resource Fields',
|
239
|
+
key: 'resource',
|
240
|
+
weight: resourceOptions ? resourceOptions.weight : 50,
|
241
|
+
subgroups: [],
|
242
|
+
components: [],
|
243
|
+
componentOrder: []
|
244
|
+
};
|
245
|
+
this.groups.resource = {
|
246
|
+
title: resourceOptions ? resourceOptions.title : 'Existing Resource Fields',
|
247
|
+
key: 'resource',
|
248
|
+
weight: resourceOptions ? resourceOptions.weight : 50,
|
249
|
+
subgroups: [],
|
250
|
+
components: [],
|
251
|
+
componentOrder: []
|
252
|
+
};
|
253
|
+
if (!this.groupOrder.includes('resource')) {
|
254
|
+
this.groupOrder.push('resource');
|
255
|
+
}
|
256
|
+
this.addExistingResourceFields(resources);
|
257
|
+
}
|
258
|
+
});
|
259
|
+
}
|
260
|
+
// Notify components if they need to modify their render.
|
261
|
+
this.options.attachMode = 'builder';
|
262
|
+
this.webform = this.webform || this.createForm(this.options);
|
263
|
+
this.pathComponentsMapping = {};
|
264
|
+
this.arrayDataComponentPaths = [];
|
265
|
+
this.nestedDataComponents = [];
|
266
|
+
this.arrayDataComponents = [];
|
267
|
+
}
|
268
|
+
allowDrop() {
|
269
|
+
return true;
|
270
|
+
}
|
271
|
+
addExistingResourceFields(resources) {
|
272
|
+
lodash_1.default.each(resources, (resource, index) => {
|
273
|
+
const resourceKey = `resource-${resource.name}`;
|
274
|
+
const subgroup = {
|
275
|
+
key: resourceKey,
|
276
|
+
title: resource.title,
|
277
|
+
components: [],
|
278
|
+
componentOrder: [],
|
279
|
+
default: index === 0,
|
280
|
+
};
|
281
|
+
(0, formUtils_1.eachComponent)(resource.components, (component) => {
|
282
|
+
if (component.type === 'button')
|
283
|
+
return;
|
284
|
+
if (this.options &&
|
285
|
+
this.options.resourceFilter &&
|
286
|
+
(!component.tags || component.tags.indexOf(this.options.resourceFilter) === -1))
|
287
|
+
return;
|
288
|
+
let componentName = component.label;
|
289
|
+
if (!componentName && component.key) {
|
290
|
+
componentName = lodash_1.default.upperFirst(component.key);
|
291
|
+
}
|
292
|
+
subgroup.componentOrder.push(`component-${component.key}`);
|
293
|
+
subgroup.components[`component-${component.key}`] = lodash_1.default.merge((0, utils_1.fastCloneDeep)(Components_1.default.components[component.type]
|
294
|
+
? Components_1.default.components[component.type].builderInfo
|
295
|
+
: Components_1.default.components['unknown'].builderInfo), {
|
296
|
+
key: component.key,
|
297
|
+
title: componentName,
|
298
|
+
group: 'resource',
|
299
|
+
subgroup: resourceKey,
|
300
|
+
}, {
|
301
|
+
schema: Object.assign(Object.assign({}, component), { label: component.label, key: component.key, lockKey: true, source: (!this.options.noSource ? resource._id : undefined), isNew: true })
|
302
|
+
});
|
303
|
+
}, true);
|
304
|
+
this.groups.resource.subgroups.push(subgroup);
|
305
|
+
});
|
306
|
+
this.triggerRedraw();
|
307
|
+
}
|
308
|
+
attachTooltip(component, title) {
|
309
|
+
return (0, tippy_js_1.default)(component, {
|
310
|
+
allowHTML: true,
|
311
|
+
trigger: 'mouseenter focus',
|
312
|
+
placement: 'top',
|
313
|
+
delay: [200, 0],
|
314
|
+
zIndex: 10000,
|
315
|
+
content: title
|
316
|
+
});
|
317
|
+
}
|
318
|
+
attachComponent(element, component) {
|
319
|
+
// Add component to element for later reference.
|
320
|
+
element.formioComponent = component;
|
321
|
+
component.loadRefs(element, {
|
322
|
+
removeComponent: 'single',
|
323
|
+
editComponent: 'single',
|
324
|
+
moveComponent: 'single',
|
325
|
+
copyComponent: 'single',
|
326
|
+
pasteComponent: 'single',
|
327
|
+
editJson: 'single'
|
328
|
+
});
|
329
|
+
if (component.refs.copyComponent) {
|
330
|
+
this.attachTooltip(component.refs.copyComponent, this.t('Copy'));
|
331
|
+
component.addEventListener(component.refs.copyComponent, 'click', () => this.copyComponent(component));
|
332
|
+
}
|
333
|
+
if (component.refs.pasteComponent) {
|
334
|
+
const pasteToolTip = this.attachTooltip(component.refs.pasteComponent, this.t('Paste below'));
|
335
|
+
component.addEventListener(component.refs.pasteComponent, 'click', () => {
|
336
|
+
pasteToolTip.hide();
|
337
|
+
this.pasteComponent(component);
|
338
|
+
});
|
339
|
+
}
|
340
|
+
if (component.refs.moveComponent) {
|
341
|
+
this.attachTooltip(component.refs.moveComponent, this.t('Move'));
|
342
|
+
if (this.keyboardActionsEnabled) {
|
343
|
+
component.addEventListener(component.refs.moveComponent, 'click', () => {
|
344
|
+
this.moveComponent(component);
|
345
|
+
});
|
346
|
+
}
|
347
|
+
}
|
348
|
+
const parent = this.getParentElement(element);
|
349
|
+
if (component.refs.editComponent) {
|
350
|
+
this.attachTooltip(component.refs.editComponent, this.t('Edit'));
|
351
|
+
component.addEventListener(component.refs.editComponent, 'click', () => this.editComponent(component.schema, parent, false, false, component.component, { inDataGrid: component.isInDataGrid }));
|
352
|
+
}
|
353
|
+
if (component.refs.editJson) {
|
354
|
+
this.attachTooltip(component.refs.editJson, this.t('Edit JSON'));
|
355
|
+
component.addEventListener(component.refs.editJson, 'click', () => this.editComponent(component.schema, parent, false, true, component.component));
|
356
|
+
}
|
357
|
+
if (component.refs.removeComponent) {
|
358
|
+
this.attachTooltip(component.refs.removeComponent, this.t('Remove'));
|
359
|
+
component.addEventListener(component.refs.removeComponent, 'click', () => this.removeComponent(component.schema, parent, component.component));
|
360
|
+
}
|
361
|
+
return element;
|
362
|
+
}
|
363
|
+
createForm(options) {
|
364
|
+
this.webform = new Webform_1.default(this.element, options);
|
365
|
+
if (this.element) {
|
366
|
+
this.loadRefs(this.element, {
|
367
|
+
form: 'single'
|
368
|
+
});
|
369
|
+
if (this.refs.form) {
|
370
|
+
this.webform.element = this.refs.form;
|
371
|
+
}
|
372
|
+
}
|
373
|
+
return this.webform;
|
374
|
+
}
|
375
|
+
/**
|
376
|
+
* Called when everything is ready.
|
377
|
+
*
|
378
|
+
* @returns {Promise} - Wait for webform to be ready.
|
379
|
+
*/
|
380
|
+
get ready() {
|
381
|
+
return this.webform.ready;
|
382
|
+
}
|
383
|
+
get defaultGroups() {
|
384
|
+
return {
|
385
|
+
basic: {
|
386
|
+
title: 'Basic',
|
387
|
+
weight: 0,
|
388
|
+
default: true,
|
389
|
+
},
|
390
|
+
advanced: {
|
391
|
+
title: 'Advanced',
|
392
|
+
weight: 10
|
393
|
+
},
|
394
|
+
layout: {
|
395
|
+
title: 'Layout',
|
396
|
+
weight: 20
|
397
|
+
},
|
398
|
+
data: {
|
399
|
+
title: 'Data',
|
400
|
+
weight: 30
|
401
|
+
},
|
402
|
+
premium: {
|
403
|
+
title: 'Premium',
|
404
|
+
weight: 40
|
405
|
+
},
|
406
|
+
};
|
407
|
+
}
|
408
|
+
redraw() {
|
409
|
+
return Webform_1.default.prototype.redraw.call(this);
|
410
|
+
}
|
411
|
+
get form() {
|
412
|
+
return this.webform.form;
|
413
|
+
}
|
414
|
+
get schema() {
|
415
|
+
return this.webform.schema;
|
416
|
+
}
|
417
|
+
set form(value) {
|
418
|
+
this.setForm(value);
|
419
|
+
}
|
420
|
+
get container() {
|
421
|
+
return this.webform.form.components;
|
422
|
+
}
|
423
|
+
/**
|
424
|
+
* When a component sets its api key, we need to check if it is unique within its namespace. Find the namespace root
|
425
|
+
* so we can calculate this correctly.
|
426
|
+
* @param component
|
427
|
+
*/
|
428
|
+
findNamespaceRoot(component) {
|
429
|
+
const path = (0, utils_1.getArrayFromComponentPath)(component.path);
|
430
|
+
// First get the component with nested parents.
|
431
|
+
let comp = this.webform.getComponent(path);
|
432
|
+
comp = Array.isArray(comp) ? comp[0] : comp;
|
433
|
+
const namespaceKey = this.recurseNamespace(comp);
|
434
|
+
// If there is no key, it is the root form.
|
435
|
+
if (!namespaceKey || this.form.key === namespaceKey) {
|
436
|
+
return this.form.components;
|
437
|
+
}
|
438
|
+
const componentSchema = component.component;
|
439
|
+
// If the current component is the namespace, we don't need to find it again.
|
440
|
+
if (namespaceKey === component.key) {
|
441
|
+
return [...componentSchema.components, componentSchema];
|
442
|
+
}
|
443
|
+
// Get the namespace component so we have the original object.
|
444
|
+
const namespaceComponent = (0, formUtils_1.getComponent)(this.form.components, namespaceKey, true);
|
445
|
+
return namespaceComponent ? namespaceComponent.components : comp.components;
|
446
|
+
}
|
447
|
+
recurseNamespace(component) {
|
448
|
+
// If there is no parent, we are at the root level.
|
449
|
+
if (!component) {
|
450
|
+
return null;
|
451
|
+
}
|
452
|
+
// Some components are their own namespace.
|
453
|
+
if (['address', 'container', 'datagrid', 'editgrid', 'dynamicWizard', 'tree'].includes(component.type) || component.tree || component.arrayTree) {
|
454
|
+
return component.key;
|
455
|
+
}
|
456
|
+
// Anything else, keep going up.
|
457
|
+
return this.recurseNamespace(component.parent);
|
458
|
+
}
|
459
|
+
render() {
|
460
|
+
return this.renderTemplate('builder', {
|
461
|
+
sidebar: this.renderTemplate('builderSidebar', {
|
462
|
+
scrollEnabled: this.sideBarScroll,
|
463
|
+
groupOrder: this.groupOrder,
|
464
|
+
groupId: `builder-sidebar-${this.id}`,
|
465
|
+
groups: this.groupOrder.map((groupKey) => this.renderTemplate('builderSidebarGroup', {
|
466
|
+
group: this.groups[groupKey],
|
467
|
+
groupKey,
|
468
|
+
groupId: `builder-sidebar-${this.id}`,
|
469
|
+
subgroups: this.groups[groupKey].subgroups.map((group) => this.renderTemplate('builderSidebarGroup', {
|
470
|
+
group,
|
471
|
+
groupKey: group.key,
|
472
|
+
groupId: `group-container-${groupKey}`,
|
473
|
+
subgroups: []
|
474
|
+
})),
|
475
|
+
keyboardActionsEnabled: this.keyboardActionsEnabled,
|
476
|
+
})),
|
477
|
+
}),
|
478
|
+
form: this.webform.render(),
|
479
|
+
});
|
480
|
+
}
|
481
|
+
attach(element) {
|
482
|
+
this.on('change', (form) => {
|
483
|
+
this.populateRecaptchaSettings(form);
|
484
|
+
});
|
485
|
+
return super.attach(element).then(() => {
|
486
|
+
this.loadRefs(element, {
|
487
|
+
form: 'single',
|
488
|
+
sidebar: 'single',
|
489
|
+
'sidebar-search': 'single',
|
490
|
+
'sidebar-groups': 'single',
|
491
|
+
'container': 'multiple',
|
492
|
+
'sidebar-anchor': 'multiple',
|
493
|
+
'sidebar-group': 'multiple',
|
494
|
+
'sidebar-container': 'multiple',
|
495
|
+
'sidebar-component': 'multiple',
|
496
|
+
});
|
497
|
+
if (this.sideBarScroll && Templates_1.default.current.handleBuilderSidebarScroll) {
|
498
|
+
Templates_1.default.current.handleBuilderSidebarScroll.call(this, this);
|
499
|
+
}
|
500
|
+
// Add the paste status in form
|
501
|
+
if (typeof window !== 'undefined' && window.sessionStorage) {
|
502
|
+
const data = window.sessionStorage.getItem('formio.clipboard');
|
503
|
+
if (data) {
|
504
|
+
this.addClass(this.refs.form, 'builder-paste-mode');
|
505
|
+
}
|
506
|
+
}
|
507
|
+
if (!(0, utils_1.bootstrapVersion)(this.options)) {
|
508
|
+
const getAttribute = (anchor, attribute) => {
|
509
|
+
let elem = anchor.getAttribute(`data-${attribute}`);
|
510
|
+
if (!elem) {
|
511
|
+
elem = anchor.getAttribute(`data-bs-${attribute}`);
|
512
|
+
}
|
513
|
+
return elem;
|
514
|
+
};
|
515
|
+
const hideShow = (group, show) => {
|
516
|
+
if (show) {
|
517
|
+
group.classList.add(['show']);
|
518
|
+
group.style.display = 'inherit';
|
519
|
+
}
|
520
|
+
else {
|
521
|
+
group.classList.remove(['show']);
|
522
|
+
group.style.display = 'none';
|
523
|
+
}
|
524
|
+
};
|
525
|
+
// Initialize
|
526
|
+
this.refs['sidebar-group'].forEach((group) => {
|
527
|
+
hideShow(group, getAttribute(group, 'default') === 'true');
|
528
|
+
});
|
529
|
+
// Click event
|
530
|
+
this.refs['sidebar-anchor'].forEach((anchor, index) => {
|
531
|
+
this.addEventListener(anchor, 'click', () => {
|
532
|
+
const clickedParentId = getAttribute(anchor, 'parent').slice('#builder-sidebar-'.length);
|
533
|
+
const clickedId = getAttribute(anchor, 'target').slice('#group-'.length);
|
534
|
+
this.refs['sidebar-group'].forEach((group, groupIndex) => {
|
535
|
+
const openByDefault = getAttribute(group, 'default') === 'true';
|
536
|
+
const groupId = group.getAttribute('id').slice('group-'.length);
|
537
|
+
const groupParent = getAttribute(group, 'parent').slice('#builder-sidebar-'.length);
|
538
|
+
hideShow(group, ((openByDefault && groupParent === clickedId) || groupId === clickedParentId || groupIndex === index));
|
539
|
+
});
|
540
|
+
}, true);
|
541
|
+
});
|
542
|
+
}
|
543
|
+
if (this.keyboardActionsEnabled) {
|
544
|
+
this.refs['sidebar-component'].forEach((component) => {
|
545
|
+
this.addEventListener(component, 'keydown', (event) => {
|
546
|
+
if (event.keyCode === 13) {
|
547
|
+
this.addNewComponent(component);
|
548
|
+
}
|
549
|
+
});
|
550
|
+
});
|
551
|
+
}
|
552
|
+
this.addEventListener(this.refs['sidebar-search'], 'input', lodash_1.default.debounce((e) => {
|
553
|
+
const searchString = e.target.value;
|
554
|
+
this.searchFields(searchString);
|
555
|
+
}, 300));
|
556
|
+
if (this.dragDropEnabled) {
|
557
|
+
this.initDragula();
|
558
|
+
}
|
559
|
+
const drake = this.dragula;
|
560
|
+
if (this.refs.form) {
|
561
|
+
(0, dom_autoscroller_1.default)([window], {
|
562
|
+
margin: 20,
|
563
|
+
maxSpeed: 6,
|
564
|
+
scrollWhenOutside: true,
|
565
|
+
autoScroll: function () {
|
566
|
+
return this.down && (drake === null || drake === void 0 ? void 0 : drake.dragging);
|
567
|
+
}
|
568
|
+
});
|
569
|
+
return this.webform.attach(this.refs.form);
|
570
|
+
}
|
571
|
+
});
|
572
|
+
}
|
573
|
+
searchFields(searchString = '') {
|
574
|
+
const searchValue = searchString.toLowerCase();
|
575
|
+
const sidebar = this.refs['sidebar'];
|
576
|
+
const sidebarGroups = this.refs['sidebar-groups'];
|
577
|
+
if (!sidebar || !sidebarGroups) {
|
578
|
+
return;
|
579
|
+
}
|
580
|
+
const filterGroupBy = (group, searchValue = '') => {
|
581
|
+
const result = lodash_1.default.toPlainObject(group);
|
582
|
+
const { subgroups = [], components } = result;
|
583
|
+
const filteredComponents = [];
|
584
|
+
for (const key in components) {
|
585
|
+
const isMatchedToTitle = components[key].title.toLowerCase().match(searchValue);
|
586
|
+
const isMatchedToKey = components[key].key.toLowerCase().match(searchValue);
|
587
|
+
if (isMatchedToTitle || isMatchedToKey) {
|
588
|
+
filteredComponents.push(components[key]);
|
589
|
+
}
|
590
|
+
}
|
591
|
+
this.orderComponents(result, filteredComponents);
|
592
|
+
if (searchValue) {
|
593
|
+
result.default = true;
|
594
|
+
}
|
595
|
+
if (result.componentOrder.length || subgroups.length) {
|
596
|
+
return result;
|
597
|
+
}
|
598
|
+
return null;
|
599
|
+
};
|
600
|
+
const filterGroupOrder = (groupOrder, searchValue) => {
|
601
|
+
const result = lodash_1.default.cloneDeep(groupOrder);
|
602
|
+
return result.filter(key => filterGroupBy(this.groups[key], searchValue));
|
603
|
+
};
|
604
|
+
const filterSubgroups = (groups, searchValue) => {
|
605
|
+
const result = lodash_1.default.clone(groups);
|
606
|
+
return result
|
607
|
+
.map(subgroup => filterGroupBy(subgroup, searchValue))
|
608
|
+
.filter(subgroup => !lodash_1.default.isNull(subgroup));
|
609
|
+
};
|
610
|
+
const toTemplate = groupKey => {
|
611
|
+
return {
|
612
|
+
group: filterGroupBy(this.groups[groupKey], searchValue),
|
613
|
+
groupKey,
|
614
|
+
groupId: sidebar.id || sidebarGroups.id,
|
615
|
+
subgroups: filterSubgroups(this.groups[groupKey].subgroups, searchValue)
|
616
|
+
.map((group) => this.renderTemplate('builderSidebarGroup', {
|
617
|
+
group,
|
618
|
+
groupKey: group.key,
|
619
|
+
groupId: `group-container-${groupKey}`,
|
620
|
+
subgroups: []
|
621
|
+
})),
|
622
|
+
};
|
623
|
+
};
|
624
|
+
sidebarGroups.innerHTML = filterGroupOrder(this.groupOrder, searchValue)
|
625
|
+
.map(groupKey => this.renderTemplate('builderSidebarGroup', toTemplate(groupKey)))
|
626
|
+
.join('');
|
627
|
+
this.loadRefs(this.element, {
|
628
|
+
'sidebar-groups': 'single',
|
629
|
+
'sidebar-anchor': 'multiple',
|
630
|
+
'sidebar-group': 'multiple',
|
631
|
+
'sidebar-container': 'multiple',
|
632
|
+
});
|
633
|
+
this.updateDragAndDrop();
|
634
|
+
if (searchValue === '') {
|
635
|
+
this.triggerRedraw();
|
636
|
+
}
|
637
|
+
}
|
638
|
+
orderComponents(groupInfo, foundComponents) {
|
639
|
+
const components = foundComponents || groupInfo.components;
|
640
|
+
const isResource = groupInfo.key.indexOf('resource-') === 0;
|
641
|
+
if (components) {
|
642
|
+
groupInfo.componentOrder = Object.keys(components)
|
643
|
+
.map(key => components[key])
|
644
|
+
.filter(component => component && !component.ignore && !component.ignoreForForm)
|
645
|
+
.sort((a, b) => a.weight - b.weight)
|
646
|
+
.map(component => isResource ? `component-${component.key}` : component.key);
|
647
|
+
}
|
648
|
+
}
|
649
|
+
updateDragAndDrop() {
|
650
|
+
if (this.dragDropEnabled) {
|
651
|
+
this.initDragula();
|
652
|
+
}
|
653
|
+
if (this.refs.form) {
|
654
|
+
return this.webform.attach(this.refs.form);
|
655
|
+
}
|
656
|
+
}
|
657
|
+
initDragula() {
|
658
|
+
const options = this.options;
|
659
|
+
if (this.dragula) {
|
660
|
+
this.dragula.destroy();
|
661
|
+
}
|
662
|
+
const containersArray = Array.prototype.slice.call(this.refs['sidebar-container']).filter(item => {
|
663
|
+
return item.id !== 'group-container-resource';
|
664
|
+
});
|
665
|
+
if (!dragula) {
|
666
|
+
return;
|
667
|
+
}
|
668
|
+
this.dragula = dragula(containersArray, {
|
669
|
+
moves(el) {
|
670
|
+
let moves = true;
|
671
|
+
const list = Array.from(el.classList).filter(item => item.indexOf('formio-component-') === 0);
|
672
|
+
list.forEach(item => {
|
673
|
+
const key = item.slice('formio-component-'.length);
|
674
|
+
if (options.disabled && options.disabled.includes(key)) {
|
675
|
+
moves = false;
|
676
|
+
}
|
677
|
+
});
|
678
|
+
if (el.classList.contains('no-drag')) {
|
679
|
+
moves = false;
|
680
|
+
}
|
681
|
+
return moves;
|
682
|
+
},
|
683
|
+
copy(el) {
|
684
|
+
return el.classList.contains('drag-copy');
|
685
|
+
},
|
686
|
+
accepts(el, target) {
|
687
|
+
return !el.contains(target) && !target.classList.contains('no-drop');
|
688
|
+
}
|
689
|
+
}).on('drop', (element, target, source, sibling) => this.onDrop(element, target, source, sibling));
|
690
|
+
}
|
691
|
+
detach() {
|
692
|
+
if (this.dragula) {
|
693
|
+
this.dragula.destroy();
|
694
|
+
}
|
695
|
+
this.dragula = null;
|
696
|
+
if (this.sideBarScroll && Templates_1.default.current.clearBuilderSidebarScroll) {
|
697
|
+
Templates_1.default.current.clearBuilderSidebarScroll.call(this, this);
|
698
|
+
}
|
699
|
+
super.detach();
|
700
|
+
}
|
701
|
+
getComponentInfo(key, group) {
|
702
|
+
let info;
|
703
|
+
// This is a new component
|
704
|
+
if (this.schemas.hasOwnProperty(key)) {
|
705
|
+
info = (0, utils_1.fastCloneDeep)(this.schemas[key]);
|
706
|
+
}
|
707
|
+
else if (this.groups.hasOwnProperty(group)) {
|
708
|
+
const groupComponents = this.groups[group].components;
|
709
|
+
if (groupComponents.hasOwnProperty(key)) {
|
710
|
+
info = (0, utils_1.fastCloneDeep)(groupComponents[key].schema);
|
711
|
+
}
|
712
|
+
}
|
713
|
+
else if (group.slice(0, group.indexOf('-')) === 'resource') {
|
714
|
+
// This is an existing resource field.
|
715
|
+
const resourceGroups = this.groups.resource.subgroups;
|
716
|
+
const resourceGroup = lodash_1.default.find(resourceGroups, { key: group });
|
717
|
+
if (resourceGroup && resourceGroup.components.hasOwnProperty(`component-${key}`)) {
|
718
|
+
info = (0, utils_1.fastCloneDeep)(resourceGroup.components[`component-${key}`].schema);
|
719
|
+
}
|
720
|
+
}
|
721
|
+
else if (group === 'searchFields') { //Search components go into this group
|
722
|
+
const resourceGroups = this.groups.resource.subgroups;
|
723
|
+
for (let ix = 0; ix < resourceGroups.length; ix++) {
|
724
|
+
const resourceGroup = resourceGroups[ix];
|
725
|
+
if (resourceGroup.components.hasOwnProperty(`component-${key}`)) {
|
726
|
+
info = (0, utils_1.fastCloneDeep)(resourceGroup.components[`component-${key}`].schema);
|
727
|
+
break;
|
728
|
+
}
|
729
|
+
}
|
730
|
+
}
|
731
|
+
if (info) {
|
732
|
+
info.key = this.generateKey(info);
|
733
|
+
}
|
734
|
+
return info;
|
735
|
+
}
|
736
|
+
getComponentsPath(component, parent) {
|
737
|
+
// Get path to the component in the parent component.
|
738
|
+
let path = 'components';
|
739
|
+
let columnIndex = 0;
|
740
|
+
let tableRowIndex = 0;
|
741
|
+
let tableColumnIndex = 0;
|
742
|
+
let tabIndex = 0;
|
743
|
+
switch (parent.type) {
|
744
|
+
case 'table':
|
745
|
+
tableRowIndex = lodash_1.default.findIndex(parent.rows, row => row.some(column => column.components.some(comp => comp.key === component.key)));
|
746
|
+
tableColumnIndex = lodash_1.default.findIndex(parent.rows[tableRowIndex], (column => column.components.some(comp => comp.key === component.key)));
|
747
|
+
path = `rows[${tableRowIndex}][${tableColumnIndex}].components`;
|
748
|
+
break;
|
749
|
+
case 'columns':
|
750
|
+
columnIndex = lodash_1.default.findIndex(parent.columns, column => column.components.some(comp => comp.key === component.key));
|
751
|
+
path = `columns[${columnIndex}].components`;
|
752
|
+
break;
|
753
|
+
case 'tabs':
|
754
|
+
tabIndex = lodash_1.default.findIndex(parent.components, tab => tab.components.some(comp => comp.key === component.key));
|
755
|
+
path = `components[${tabIndex}].components`;
|
756
|
+
break;
|
757
|
+
}
|
758
|
+
return path;
|
759
|
+
}
|
760
|
+
/* eslint-disable max-statements */
|
761
|
+
onDrop(element, target, source, sibling) {
|
762
|
+
var _a;
|
763
|
+
if (!target) {
|
764
|
+
return;
|
765
|
+
}
|
766
|
+
// If you try to drop within itself.
|
767
|
+
if (element.contains(target)) {
|
768
|
+
return;
|
769
|
+
}
|
770
|
+
const key = element.getAttribute('data-key');
|
771
|
+
const type = element.getAttribute('data-type');
|
772
|
+
const group = element.getAttribute('data-group');
|
773
|
+
let info, isNew, path, index;
|
774
|
+
if (key && group) {
|
775
|
+
// This is a new component.
|
776
|
+
info = this.getComponentInfo(key, group);
|
777
|
+
if (!info && type) {
|
778
|
+
info = this.getComponentInfo(type, group);
|
779
|
+
}
|
780
|
+
isNew = true;
|
781
|
+
}
|
782
|
+
else if (source.formioContainer) {
|
783
|
+
index = lodash_1.default.findIndex(source.formioContainer, { key: element.formioComponent.component.key });
|
784
|
+
if (index !== -1) {
|
785
|
+
// Grab and remove the component from the source container.
|
786
|
+
info = source.formioContainer.splice(lodash_1.default.findIndex(source.formioContainer, { key: element.formioComponent.component.key }), 1);
|
787
|
+
// Since splice returns an array of one object, we need to destructure it.
|
788
|
+
info = info[0];
|
789
|
+
}
|
790
|
+
}
|
791
|
+
// If we haven't found the component, stop.
|
792
|
+
if (!info) {
|
793
|
+
return;
|
794
|
+
}
|
795
|
+
// Show an error if siblings are disabled for a component and such a component already exists.
|
796
|
+
const compKey = (group === 'resource') ? `component-${key}` : key;
|
797
|
+
const draggableComponent = ((_a = this.groups[group]) === null || _a === void 0 ? void 0 : _a.components[compKey]) || {};
|
798
|
+
if (draggableComponent.disableSiblings) {
|
799
|
+
let isCompAlreadyExists = false;
|
800
|
+
(0, formUtils_1.eachComponent)(this.webform.components, (component) => {
|
801
|
+
if (component.type === draggableComponent.schema.type) {
|
802
|
+
isCompAlreadyExists = true;
|
803
|
+
return;
|
804
|
+
}
|
805
|
+
}, true);
|
806
|
+
if (isCompAlreadyExists) {
|
807
|
+
this.webform.redraw();
|
808
|
+
this.webform.setAlert('danger', `You cannot add more than one ${draggableComponent.key} component to one page.`);
|
809
|
+
return;
|
810
|
+
}
|
811
|
+
}
|
812
|
+
if (target !== source) {
|
813
|
+
// Ensure the key remains unique in its new container.
|
814
|
+
builder_1.default.uniquify(this.findNamespaceRoot(target.formioComponent), info);
|
815
|
+
}
|
816
|
+
const parent = target.formioComponent;
|
817
|
+
// Insert in the new container.
|
818
|
+
if (target.formioContainer) {
|
819
|
+
if (sibling) {
|
820
|
+
if (!sibling.getAttribute('data-noattach')) {
|
821
|
+
index = lodash_1.default.findIndex(target.formioContainer, { key: lodash_1.default.get(sibling, 'formioComponent.component.key') });
|
822
|
+
index = (index === -1) ? 0 : index;
|
823
|
+
}
|
824
|
+
else {
|
825
|
+
index = sibling.getAttribute('data-position');
|
826
|
+
}
|
827
|
+
if (index !== -1) {
|
828
|
+
target.formioContainer.splice(index, 0, info);
|
829
|
+
}
|
830
|
+
}
|
831
|
+
else {
|
832
|
+
target.formioContainer.push(info);
|
833
|
+
}
|
834
|
+
path = this.getComponentsPath(info, parent.component);
|
835
|
+
index = lodash_1.default.findIndex(lodash_1.default.get(parent.schema, path), { key: info.key });
|
836
|
+
if (index === -1) {
|
837
|
+
index = 0;
|
838
|
+
}
|
839
|
+
}
|
840
|
+
if (parent && parent.addChildComponent) {
|
841
|
+
parent.addChildComponent(info, element, target, source, sibling);
|
842
|
+
}
|
843
|
+
const componentInDataGrid = parent.type === 'datagrid';
|
844
|
+
if (isNew && !this.options.noNewEdit && !info.noNewEdit) {
|
845
|
+
this.editComponent(info, target, isNew, null, null, { inDataGrid: componentInDataGrid });
|
846
|
+
}
|
847
|
+
// Only rebuild the parts needing to be rebuilt.
|
848
|
+
let rebuild;
|
849
|
+
if (target !== source) {
|
850
|
+
if (source.formioContainer && source.contains(target)) {
|
851
|
+
rebuild = source.formioComponent.rebuild();
|
852
|
+
}
|
853
|
+
else if (target.contains(source)) {
|
854
|
+
rebuild = target.formioComponent.rebuild();
|
855
|
+
}
|
856
|
+
else {
|
857
|
+
if (source.formioContainer) {
|
858
|
+
rebuild = source.formioComponent.rebuild();
|
859
|
+
}
|
860
|
+
rebuild = target.formioComponent.rebuild();
|
861
|
+
}
|
862
|
+
}
|
863
|
+
else {
|
864
|
+
// If they are the same, only rebuild one.
|
865
|
+
rebuild = target.formioComponent.rebuild();
|
866
|
+
}
|
867
|
+
if (!rebuild) {
|
868
|
+
rebuild = native_promise_only_1.default.resolve();
|
869
|
+
}
|
870
|
+
return rebuild.then(() => {
|
871
|
+
this.emit('addComponent', info, parent, path, index, isNew && !this.options.noNewEdit && !info.noNewEdit);
|
872
|
+
if (!isNew || this.options.noNewEdit || info.noNewEdit) {
|
873
|
+
this.emit('change', this.form);
|
874
|
+
}
|
875
|
+
});
|
876
|
+
}
|
877
|
+
setForm(form) {
|
878
|
+
var _a;
|
879
|
+
if (!form.components) {
|
880
|
+
form.components = [];
|
881
|
+
}
|
882
|
+
if (form && form.properties) {
|
883
|
+
this.options.properties = form.properties;
|
884
|
+
}
|
885
|
+
this.keyboardActionsEnabled = lodash_1.default.get(this.options, 'keyboardBuilder', false) || ((_a = this.options.properties) === null || _a === void 0 ? void 0 : _a.keyboardBuilder);
|
886
|
+
const isShowSubmitButton = !this.options.noDefaultSubmitButton
|
887
|
+
&& !form.components.length;
|
888
|
+
// Ensure there is at least a submit button.
|
889
|
+
if (isShowSubmitButton) {
|
890
|
+
form.components.push({
|
891
|
+
type: 'button',
|
892
|
+
label: 'Submit',
|
893
|
+
key: 'submit',
|
894
|
+
size: 'md',
|
895
|
+
block: false,
|
896
|
+
action: 'submit',
|
897
|
+
disableOnInvalid: true,
|
898
|
+
theme: 'primary'
|
899
|
+
});
|
900
|
+
}
|
901
|
+
if (this.webform) {
|
902
|
+
const shouldRebuild = !this.webform.form.components ||
|
903
|
+
(form.components.length !== this.webform.form.components.length);
|
904
|
+
return this.webform.setForm(form, { keepAsReference: true }).then(() => {
|
905
|
+
if (this.refs.form) {
|
906
|
+
this.builderHeight = this.refs.form.offsetHeight;
|
907
|
+
}
|
908
|
+
if (!shouldRebuild) {
|
909
|
+
return this.form;
|
910
|
+
}
|
911
|
+
return this.rebuild().then(() => this.form);
|
912
|
+
});
|
913
|
+
}
|
914
|
+
return native_promise_only_1.default.resolve(form);
|
915
|
+
}
|
916
|
+
populateRecaptchaSettings(form) {
|
917
|
+
//populate isEnabled for recaptcha form settings
|
918
|
+
let isRecaptchaEnabled = false;
|
919
|
+
if (this.form.components) {
|
920
|
+
(0, formUtils_1.eachComponent)(form.components, component => {
|
921
|
+
if (isRecaptchaEnabled) {
|
922
|
+
return;
|
923
|
+
}
|
924
|
+
if (component.type === 'recaptcha') {
|
925
|
+
isRecaptchaEnabled = true;
|
926
|
+
return false;
|
927
|
+
}
|
928
|
+
});
|
929
|
+
if (isRecaptchaEnabled) {
|
930
|
+
lodash_1.default.set(form, 'settings.recaptcha.isEnabled', true);
|
931
|
+
}
|
932
|
+
else if (lodash_1.default.get(form, 'settings.recaptcha.isEnabled')) {
|
933
|
+
lodash_1.default.set(form, 'settings.recaptcha.isEnabled', false);
|
934
|
+
}
|
935
|
+
}
|
936
|
+
}
|
937
|
+
removeComponent(component, parent, original) {
|
938
|
+
if (!parent) {
|
939
|
+
return;
|
940
|
+
}
|
941
|
+
let remove = true;
|
942
|
+
const removingComponentsGroup = !component.skipRemoveConfirm &&
|
943
|
+
((Array.isArray(component.components) && component.components.length) ||
|
944
|
+
(Array.isArray(component.rows) && component.rows.length) ||
|
945
|
+
(Array.isArray(component.columns) && component.columns.length));
|
946
|
+
if (this.options.alwaysConfirmComponentRemoval || removingComponentsGroup) {
|
947
|
+
const message = removingComponentsGroup ? 'Removing this component will also remove all of its children. Are you sure you want to do this?'
|
948
|
+
: 'Are you sure you want to remove this component?';
|
949
|
+
remove = window.confirm(this.t(message));
|
950
|
+
}
|
951
|
+
if (!original) {
|
952
|
+
original = parent.formioContainer.find((comp) => comp.id === component.id);
|
953
|
+
}
|
954
|
+
const index = parent.formioContainer ? parent.formioContainer.indexOf(original) : 0;
|
955
|
+
if (remove && index !== -1) {
|
956
|
+
const path = this.getComponentsPath(component, parent.formioComponent.component);
|
957
|
+
if (parent.formioContainer) {
|
958
|
+
parent.formioContainer.splice(index, 1);
|
959
|
+
}
|
960
|
+
else if (parent.formioComponent && parent.formioComponent.removeChildComponent) {
|
961
|
+
parent.formioComponent.removeChildComponent(component);
|
962
|
+
}
|
963
|
+
const rebuild = parent.formioComponent.rebuild() || native_promise_only_1.default.resolve();
|
964
|
+
rebuild.then(() => {
|
965
|
+
this.emit('removeComponent', component, parent.formioComponent.schema, path, index);
|
966
|
+
this.emit('change', this.form);
|
967
|
+
});
|
968
|
+
}
|
969
|
+
return remove;
|
970
|
+
}
|
971
|
+
replaceDoubleQuotes(data, fieldsToRemoveDoubleQuotes = []) {
|
972
|
+
if (data) {
|
973
|
+
fieldsToRemoveDoubleQuotes.forEach((key) => {
|
974
|
+
if (data[key]) {
|
975
|
+
data[key] = data[key].replace(/"/g, "'");
|
976
|
+
}
|
977
|
+
});
|
978
|
+
return data;
|
979
|
+
}
|
980
|
+
}
|
981
|
+
updateComponent(component, changed) {
|
982
|
+
// Update the preview.
|
983
|
+
if (this.preview) {
|
984
|
+
this.preview.form = {
|
985
|
+
components: [lodash_1.default.omit(Object.assign({}, component), [
|
986
|
+
'hidden',
|
987
|
+
'conditional',
|
988
|
+
'calculateValue',
|
989
|
+
'logic',
|
990
|
+
'autofocus',
|
991
|
+
'customConditional',
|
992
|
+
])],
|
993
|
+
config: this.options.formConfig || {}
|
994
|
+
};
|
995
|
+
const fieldsToRemoveDoubleQuotes = ['label', 'tooltip'];
|
996
|
+
this.preview.form.components.forEach(component => this.replaceDoubleQuotes(component, fieldsToRemoveDoubleQuotes));
|
997
|
+
const previewElement = this.componentEdit.querySelector('[ref="preview"]');
|
998
|
+
if (previewElement) {
|
999
|
+
this.setContent(previewElement, this.preview.render());
|
1000
|
+
this.preview.attach(previewElement);
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
// Change the "default value" field to be reflective of this component.
|
1004
|
+
const defaultValueComponent = (0, formUtils_1.getComponent)(this.editForm.components, 'defaultValue', true);
|
1005
|
+
if (defaultValueComponent && component.type !== 'hidden') {
|
1006
|
+
const defaultChanged = changed && ((changed.component && changed.component.key === 'defaultValue')
|
1007
|
+
|| (changed.instance && defaultValueComponent.hasComponent && defaultValueComponent.hasComponent(changed.instance)));
|
1008
|
+
if (!defaultChanged) {
|
1009
|
+
lodash_1.default.assign(defaultValueComponent.component, lodash_1.default.omit(Object.assign({}, component), [
|
1010
|
+
'key',
|
1011
|
+
'label',
|
1012
|
+
'placeholder',
|
1013
|
+
'tooltip',
|
1014
|
+
'hidden',
|
1015
|
+
'autofocus',
|
1016
|
+
'validate',
|
1017
|
+
'disabled',
|
1018
|
+
'defaultValue',
|
1019
|
+
'customDefaultValue',
|
1020
|
+
'calculateValue',
|
1021
|
+
'conditional',
|
1022
|
+
'customConditional',
|
1023
|
+
'id'
|
1024
|
+
]));
|
1025
|
+
const parentComponent = defaultValueComponent.parent;
|
1026
|
+
let tabIndex = -1;
|
1027
|
+
let index = -1;
|
1028
|
+
parentComponent.tabs.some((tab, tIndex) => {
|
1029
|
+
tab.some((comp, compIndex) => {
|
1030
|
+
if (comp.id === defaultValueComponent.id) {
|
1031
|
+
tabIndex = tIndex;
|
1032
|
+
index = compIndex;
|
1033
|
+
return true;
|
1034
|
+
}
|
1035
|
+
return false;
|
1036
|
+
});
|
1037
|
+
});
|
1038
|
+
if (tabIndex !== -1 && index !== -1 && changed && changed.value) {
|
1039
|
+
const sibling = parentComponent.tabs[tabIndex][index + 1];
|
1040
|
+
parentComponent.removeComponent(defaultValueComponent);
|
1041
|
+
const newComp = parentComponent.addComponent(defaultValueComponent.component, defaultValueComponent.data, sibling);
|
1042
|
+
lodash_1.default.pull(newComp.validators, 'required');
|
1043
|
+
parentComponent.tabs[tabIndex].splice(index, 1, newComp);
|
1044
|
+
newComp.checkValidity = () => true;
|
1045
|
+
newComp.build(defaultValueComponent.element);
|
1046
|
+
}
|
1047
|
+
}
|
1048
|
+
else {
|
1049
|
+
let dataPath = changed.instance._data.key;
|
1050
|
+
const path = (0, utils_1.getArrayFromComponentPath)(changed.instance.path);
|
1051
|
+
path.shift();
|
1052
|
+
if (path.length) {
|
1053
|
+
path.unshift(component.key);
|
1054
|
+
dataPath = (0, utils_1.getStringFromComponentPath)(path);
|
1055
|
+
}
|
1056
|
+
lodash_1.default.set(this.preview._data, dataPath, changed.value);
|
1057
|
+
lodash_1.default.set(this.webform._data, dataPath, changed.value);
|
1058
|
+
}
|
1059
|
+
}
|
1060
|
+
// Called when we update a component.
|
1061
|
+
this.emit('updateComponent', component);
|
1062
|
+
}
|
1063
|
+
findRepeatablePaths() {
|
1064
|
+
const repeatablePaths = [];
|
1065
|
+
const keys = new Map();
|
1066
|
+
(0, formUtils_1.eachComponent)(this.form.components, (comp, path) => {
|
1067
|
+
if (!comp.key) {
|
1068
|
+
return;
|
1069
|
+
}
|
1070
|
+
if (keys.has(comp.key)) {
|
1071
|
+
if (keys.get(comp.key).includes(path)) {
|
1072
|
+
repeatablePaths.push(path);
|
1073
|
+
}
|
1074
|
+
else {
|
1075
|
+
keys.set(comp.key, [...keys.get(comp.key), path]);
|
1076
|
+
}
|
1077
|
+
}
|
1078
|
+
else {
|
1079
|
+
keys.set(comp.key, [path]);
|
1080
|
+
}
|
1081
|
+
}, true);
|
1082
|
+
return repeatablePaths;
|
1083
|
+
}
|
1084
|
+
highlightInvalidComponents() {
|
1085
|
+
const repeatablePaths = this.findRepeatablePaths();
|
1086
|
+
let hasInvalidComponents = false;
|
1087
|
+
this.webform.everyComponent((comp) => {
|
1088
|
+
var _a, _b;
|
1089
|
+
const path = comp.path;
|
1090
|
+
if (repeatablePaths.includes(path)) {
|
1091
|
+
comp.setCustomValidity(`API Key is not unique: ${comp.key}`);
|
1092
|
+
hasInvalidComponents = true;
|
1093
|
+
}
|
1094
|
+
else if ((_b = (_a = comp.error) === null || _a === void 0 ? void 0 : _a.message) === null || _b === void 0 ? void 0 : _b.startsWith('API Key is not unique')) {
|
1095
|
+
comp.setCustomValidity('');
|
1096
|
+
}
|
1097
|
+
});
|
1098
|
+
this.emit('builderFormValidityChange', hasInvalidComponents);
|
1099
|
+
}
|
1100
|
+
/**
|
1101
|
+
* Called when a new component is saved.
|
1102
|
+
*
|
1103
|
+
* @param parent
|
1104
|
+
* @param component
|
1105
|
+
* @return {boolean}
|
1106
|
+
*/
|
1107
|
+
saveComponent(component, parent, isNew, original) {
|
1108
|
+
this.editForm.detach();
|
1109
|
+
const parentContainer = parent ? parent.formioContainer : this.container;
|
1110
|
+
const parentComponent = parent ? parent.formioComponent : this;
|
1111
|
+
this.dialog.close();
|
1112
|
+
const path = parentContainer ? this.getComponentsPath(component, parentComponent.component) : '';
|
1113
|
+
if (!original) {
|
1114
|
+
original = parent.formioContainer.find((comp) => comp.id === component.id);
|
1115
|
+
}
|
1116
|
+
const index = parentContainer ? parentContainer.indexOf(original) : 0;
|
1117
|
+
if (index !== -1) {
|
1118
|
+
let submissionData = this.editForm.submission.data;
|
1119
|
+
submissionData = submissionData.componentJson || submissionData;
|
1120
|
+
const fieldsToRemoveDoubleQuotes = ['label', 'tooltip'];
|
1121
|
+
this.replaceDoubleQuotes(submissionData, fieldsToRemoveDoubleQuotes);
|
1122
|
+
this.hook('beforeSaveComponentSettings', submissionData);
|
1123
|
+
let comp = null;
|
1124
|
+
parentComponent.getComponents().forEach((component) => {
|
1125
|
+
if (component.component.key === original.key) {
|
1126
|
+
comp = component;
|
1127
|
+
}
|
1128
|
+
});
|
1129
|
+
const originalComp = comp.component;
|
1130
|
+
const originalComponentSchema = comp.schema;
|
1131
|
+
const isParentSaveChildMethod = this.isParentSaveChildMethod(parent.formioComponent);
|
1132
|
+
if (parentContainer && !isParentSaveChildMethod) {
|
1133
|
+
parentContainer[index] = submissionData;
|
1134
|
+
if (comp) {
|
1135
|
+
comp.component = submissionData;
|
1136
|
+
}
|
1137
|
+
}
|
1138
|
+
else if (isParentSaveChildMethod) {
|
1139
|
+
parent.formioComponent.saveChildComponent(submissionData);
|
1140
|
+
}
|
1141
|
+
const rebuild = parentComponent.rebuild() || native_promise_only_1.default.resolve();
|
1142
|
+
return rebuild.then(() => {
|
1143
|
+
const schema = parentContainer ? parentContainer[index] : (comp ? comp.schema : []);
|
1144
|
+
this.emitSaveComponentEvent(schema, originalComp, parentComponent.schema, path, index, isNew, originalComponentSchema);
|
1145
|
+
this.emit('change', this.form);
|
1146
|
+
this.highlightInvalidComponents();
|
1147
|
+
if (this.isComponentCreated) {
|
1148
|
+
const component = parent.formioComponent.components[0];
|
1149
|
+
this.moveComponent(component);
|
1150
|
+
this.isComponentCreated = false;
|
1151
|
+
}
|
1152
|
+
});
|
1153
|
+
}
|
1154
|
+
this.highlightInvalidComponents();
|
1155
|
+
return native_promise_only_1.default.resolve();
|
1156
|
+
}
|
1157
|
+
emitSaveComponentEvent(schema, originalComp, parentComponentSchema, path, index, isNew, originalComponentSchema) {
|
1158
|
+
this.emit('saveComponent', schema, originalComp, parentComponentSchema, path, index, isNew, originalComponentSchema);
|
1159
|
+
}
|
1160
|
+
editComponent(component, parent, isNew, isJsonEdit, original, flags = {}) {
|
1161
|
+
if (!component.key) {
|
1162
|
+
return;
|
1163
|
+
}
|
1164
|
+
let saved = false;
|
1165
|
+
const componentCopy = (0, utils_1.fastCloneDeep)(component);
|
1166
|
+
let ComponentClass = Components_1.default.components[componentCopy.type];
|
1167
|
+
const isCustom = ComponentClass === undefined;
|
1168
|
+
isJsonEdit = isJsonEdit || isCustom;
|
1169
|
+
ComponentClass = isCustom ? Components_1.default.components.unknown : ComponentClass;
|
1170
|
+
// Make sure we only have one dialog open at a time.
|
1171
|
+
if (this.dialog) {
|
1172
|
+
this.dialog.close();
|
1173
|
+
this.highlightInvalidComponents();
|
1174
|
+
}
|
1175
|
+
// This is the render step.
|
1176
|
+
const editFormOptions = lodash_1.default.clone(lodash_1.default.get(this, 'options.editForm', {}));
|
1177
|
+
if (this.editForm) {
|
1178
|
+
this.editForm.destroy();
|
1179
|
+
}
|
1180
|
+
// Allow editForm overrides per component.
|
1181
|
+
const overrides = lodash_1.default.get(this.options, `editForm.${componentCopy.type}`, {});
|
1182
|
+
// Pass along the form being edited.
|
1183
|
+
editFormOptions.editForm = this.form;
|
1184
|
+
editFormOptions.editComponent = component;
|
1185
|
+
editFormOptions.flags = flags;
|
1186
|
+
this.hook('editComponentParentInstance', editFormOptions, parent);
|
1187
|
+
this.editForm = new Webform_1.default(Object.assign(Object.assign(Object.assign({}, lodash_1.default.omit(this.options, ['hooks', 'builder', 'events', 'attachMode', 'skipInit'])), { language: this.options.language }), editFormOptions));
|
1188
|
+
this.hook('editFormProperties', parent);
|
1189
|
+
this.editForm.form = (isJsonEdit && !isCustom) ? {
|
1190
|
+
components: [
|
1191
|
+
{
|
1192
|
+
type: 'textarea',
|
1193
|
+
as: 'json',
|
1194
|
+
editor: 'ace',
|
1195
|
+
weight: 10,
|
1196
|
+
input: true,
|
1197
|
+
key: 'componentJson',
|
1198
|
+
label: 'Component JSON',
|
1199
|
+
tooltip: 'Edit the JSON for this component.'
|
1200
|
+
},
|
1201
|
+
{
|
1202
|
+
type: 'checkbox',
|
1203
|
+
key: 'showFullSchema',
|
1204
|
+
label: 'Full Schema'
|
1205
|
+
}
|
1206
|
+
]
|
1207
|
+
} : ComponentClass.editForm(lodash_1.default.cloneDeep(overrides));
|
1208
|
+
const instanceOptions = {};
|
1209
|
+
this.hook('instanceOptionsPreview', instanceOptions);
|
1210
|
+
const instance = new ComponentClass(componentCopy, instanceOptions);
|
1211
|
+
const schema = this.hook('builderComponentSchema', component, instance);
|
1212
|
+
this.editForm.submission = isJsonEdit ? {
|
1213
|
+
data: {
|
1214
|
+
componentJson: schema,
|
1215
|
+
showFullSchema: this.options.showFullJsonSchema
|
1216
|
+
},
|
1217
|
+
} : {
|
1218
|
+
data: instance.component,
|
1219
|
+
};
|
1220
|
+
if (this.preview) {
|
1221
|
+
this.preview.destroy();
|
1222
|
+
}
|
1223
|
+
if (!ComponentClass.builderInfo.hasOwnProperty('preview') || ComponentClass.builderInfo.preview) {
|
1224
|
+
this.preview = new Webform_1.default(lodash_1.default.omit(Object.assign(Object.assign({}, this.options), { preview: true }), [
|
1225
|
+
'hooks',
|
1226
|
+
'builder',
|
1227
|
+
'events',
|
1228
|
+
'attachMode',
|
1229
|
+
'calculateValue'
|
1230
|
+
]));
|
1231
|
+
this.hook('previewFormSettitngs', schema, isJsonEdit);
|
1232
|
+
}
|
1233
|
+
this.componentEdit = this.ce('div', { 'class': 'component-edit-container' });
|
1234
|
+
this.setContent(this.componentEdit, this.renderTemplate('builderEditForm', {
|
1235
|
+
componentInfo: ComponentClass.builderInfo,
|
1236
|
+
editForm: this.editForm.render(),
|
1237
|
+
preview: this.preview ? this.preview.render() : false,
|
1238
|
+
helplinks: this.helplinks,
|
1239
|
+
}));
|
1240
|
+
this.dialog = this.createModal(this.componentEdit, lodash_1.default.get(this.options, 'dialogAttr', {}));
|
1241
|
+
// This is the attach step.
|
1242
|
+
this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]'));
|
1243
|
+
this.hook('editFormWrapper');
|
1244
|
+
this.updateComponent(componentCopy);
|
1245
|
+
this.editForm.on('change', (event) => {
|
1246
|
+
if (event.changed) {
|
1247
|
+
if (event.changed.component && event.changed.component.key === 'showFullSchema') {
|
1248
|
+
const { value } = event.changed;
|
1249
|
+
this.editForm.submission = {
|
1250
|
+
data: {
|
1251
|
+
componentJson: value ? instance.component : component,
|
1252
|
+
showFullSchema: value
|
1253
|
+
},
|
1254
|
+
};
|
1255
|
+
return;
|
1256
|
+
}
|
1257
|
+
// See if this is a manually modified key. Treat custom component keys as manually modified
|
1258
|
+
if ((event.changed.component && (event.changed.component.key === 'key')) || isJsonEdit) {
|
1259
|
+
componentCopy.keyModified = true;
|
1260
|
+
}
|
1261
|
+
let isComponentLabelChanged = false;
|
1262
|
+
if (event.changed.instance) {
|
1263
|
+
isComponentLabelChanged = ['label', 'title'].includes(event.changed.instance.path);
|
1264
|
+
}
|
1265
|
+
else if (event.changed.component) {
|
1266
|
+
isComponentLabelChanged = ['label', 'title'].includes(event.changed.component.key);
|
1267
|
+
}
|
1268
|
+
if (isComponentLabelChanged) {
|
1269
|
+
// Ensure this component has a key.
|
1270
|
+
if (isNew) {
|
1271
|
+
if (!event.data.keyModified) {
|
1272
|
+
this.editForm.everyComponent(component => {
|
1273
|
+
if (component.key === 'key' && component.parent.component.key === 'tabs') {
|
1274
|
+
component.setValue(this.updateComponentKey(event.data));
|
1275
|
+
return false;
|
1276
|
+
}
|
1277
|
+
});
|
1278
|
+
}
|
1279
|
+
if (this.form) {
|
1280
|
+
let formComponents = this.findNamespaceRoot(parent.formioComponent);
|
1281
|
+
// excluding component which key uniqueness is to be checked to prevent the comparing of the same keys
|
1282
|
+
formComponents = formComponents.filter(comp => editFormOptions.editComponent.id !== comp.id);
|
1283
|
+
// Set a unique key for this component.
|
1284
|
+
builder_1.default.uniquify(formComponents, event.data);
|
1285
|
+
}
|
1286
|
+
}
|
1287
|
+
}
|
1288
|
+
// Update the component.
|
1289
|
+
this.updateComponent(event.data.componentJson || event.data, event.changed);
|
1290
|
+
}
|
1291
|
+
});
|
1292
|
+
const cancelButtons = this.componentEdit.querySelectorAll('[ref="cancelButton"]');
|
1293
|
+
cancelButtons.forEach((cancelButton) => {
|
1294
|
+
this.addEventListener(cancelButton, 'click', (event) => {
|
1295
|
+
event.preventDefault();
|
1296
|
+
this.editForm.detach();
|
1297
|
+
this.emit('cancelComponent', component);
|
1298
|
+
this.dialog.close();
|
1299
|
+
this.highlightInvalidComponents();
|
1300
|
+
});
|
1301
|
+
});
|
1302
|
+
const removeButtons = this.componentEdit.querySelectorAll('[ref="removeButton"]');
|
1303
|
+
removeButtons.forEach((removeButton) => {
|
1304
|
+
this.addEventListener(removeButton, 'click', (event) => {
|
1305
|
+
event.preventDefault();
|
1306
|
+
// Since we are already removing the component, don't trigger another remove.
|
1307
|
+
saved = true;
|
1308
|
+
this.editForm.detach();
|
1309
|
+
this.removeComponent(component, parent, original);
|
1310
|
+
this.dialog.close();
|
1311
|
+
this.highlightInvalidComponents();
|
1312
|
+
});
|
1313
|
+
});
|
1314
|
+
const saveButtons = this.componentEdit.querySelectorAll('[ref="saveButton"]');
|
1315
|
+
saveButtons.forEach((saveButton) => {
|
1316
|
+
this.addEventListener(saveButton, 'click', (event) => {
|
1317
|
+
event.preventDefault();
|
1318
|
+
if (!this.editForm.checkValidity(this.editForm.data, true, this.editForm.data)) {
|
1319
|
+
this.editForm.setPristine(false);
|
1320
|
+
this.editForm.showErrors();
|
1321
|
+
return false;
|
1322
|
+
}
|
1323
|
+
saved = true;
|
1324
|
+
this.saveComponent(component, parent, isNew, original);
|
1325
|
+
});
|
1326
|
+
});
|
1327
|
+
const dialogClose = () => {
|
1328
|
+
this.editForm.destroy(true);
|
1329
|
+
if (this.preview) {
|
1330
|
+
this.preview.destroy(true);
|
1331
|
+
this.preview = null;
|
1332
|
+
}
|
1333
|
+
if (isNew && !saved) {
|
1334
|
+
this.removeComponent(component, parent, original);
|
1335
|
+
this.highlightInvalidComponents();
|
1336
|
+
}
|
1337
|
+
// Clean up.
|
1338
|
+
this.removeEventListener(this.dialog, 'close', dialogClose);
|
1339
|
+
this.dialog = null;
|
1340
|
+
};
|
1341
|
+
this.addEventListener(this.dialog, 'close', dialogClose);
|
1342
|
+
// Called when we edit a component.
|
1343
|
+
this.emit('editComponent', component);
|
1344
|
+
}
|
1345
|
+
updateComponentKey(data) {
|
1346
|
+
return lodash_1.default.camelCase(data.title ||
|
1347
|
+
data.label ||
|
1348
|
+
data.placeholder ||
|
1349
|
+
data.type).replace(/^[0-9]*/, '');
|
1350
|
+
}
|
1351
|
+
moveComponent(component) {
|
1352
|
+
component.element.focus();
|
1353
|
+
component.element.classList.add('builder-selected');
|
1354
|
+
this.selectedElement = component;
|
1355
|
+
this.removeEventListener(component.element, 'keydown');
|
1356
|
+
this.addEventListener(component.element, 'keydown', this.moveHandler.bind(this));
|
1357
|
+
}
|
1358
|
+
updateComponentPlacement(direction) {
|
1359
|
+
const component = this.selectedElement;
|
1360
|
+
let index, info;
|
1361
|
+
const step = direction ? -1 : 1;
|
1362
|
+
if (component) {
|
1363
|
+
const element = component.element;
|
1364
|
+
const sibling = direction ? element.previousElementSibling : element.nextElementSibling;
|
1365
|
+
const source = element.parentNode;
|
1366
|
+
const containerLength = source.formioContainer.length;
|
1367
|
+
if (containerLength && containerLength <= 1) {
|
1368
|
+
return;
|
1369
|
+
}
|
1370
|
+
if (source.formioContainer) {
|
1371
|
+
index = lodash_1.default.findIndex(source.formioContainer, { key: element.formioComponent.component.key });
|
1372
|
+
if (index !== -1) {
|
1373
|
+
info = source.formioContainer.splice(lodash_1.default.findIndex(source.formioContainer, { key: element.formioComponent.component.key }), 1);
|
1374
|
+
info = info[0];
|
1375
|
+
source.removeChild(element);
|
1376
|
+
}
|
1377
|
+
}
|
1378
|
+
const len = source.formioComponent.components.length;
|
1379
|
+
index = (index === -1) ? 0 : index + step;
|
1380
|
+
if (index === -1) {
|
1381
|
+
source.formioContainer.push(info);
|
1382
|
+
source.appendChild(element);
|
1383
|
+
}
|
1384
|
+
else if (index === len) {
|
1385
|
+
const key = source.formioContainer[0].key;
|
1386
|
+
index = lodash_1.default.findIndex(source.formioComponent.components, { key: key });
|
1387
|
+
const firstElement = source.formioComponent.components[index].element;
|
1388
|
+
source.formioContainer.splice(0, 0, info);
|
1389
|
+
source.insertBefore(element, firstElement);
|
1390
|
+
}
|
1391
|
+
else if (index !== -1) {
|
1392
|
+
source.formioContainer.splice(index, 0, info);
|
1393
|
+
direction
|
1394
|
+
? source.insertBefore(element, sibling)
|
1395
|
+
: source.insertBefore(element, sibling.nextElementSibling);
|
1396
|
+
}
|
1397
|
+
element.focus();
|
1398
|
+
}
|
1399
|
+
}
|
1400
|
+
stopMoving(comp) {
|
1401
|
+
const parent = comp.element.parentNode;
|
1402
|
+
parent.formioComponent.rebuild();
|
1403
|
+
}
|
1404
|
+
addNewComponent(element) {
|
1405
|
+
var _a;
|
1406
|
+
const source = document.querySelector('.formio-builder-form');
|
1407
|
+
const key = element.getAttribute('data-key');
|
1408
|
+
const group = element.getAttribute('data-group');
|
1409
|
+
const isNew = true;
|
1410
|
+
let info;
|
1411
|
+
if (key && group) {
|
1412
|
+
info = this.getComponentInfo(key, group);
|
1413
|
+
}
|
1414
|
+
if (isNew && !this.options.noNewEdit && !info.noNewEdit) {
|
1415
|
+
builder_1.default.uniquify(this.findNamespaceRoot(source.formioComponent), info);
|
1416
|
+
this.editComponent(info, source, isNew, null, null);
|
1417
|
+
}
|
1418
|
+
const firstComponent = (_a = source.formioComponent.components[0]) === null || _a === void 0 ? void 0 : _a.element;
|
1419
|
+
if (firstComponent) {
|
1420
|
+
source.formioContainer.splice(0, 0, info);
|
1421
|
+
}
|
1422
|
+
else {
|
1423
|
+
source.formioContainer.push(info);
|
1424
|
+
}
|
1425
|
+
source.formioComponent.rebuild().then(() => {
|
1426
|
+
this.isComponentCreated = true;
|
1427
|
+
});
|
1428
|
+
}
|
1429
|
+
/**
|
1430
|
+
* Creates copy of component schema and stores it under sessionStorage.
|
1431
|
+
* @param {Component} component
|
1432
|
+
* @return {*}
|
1433
|
+
*/
|
1434
|
+
copyComponent(component) {
|
1435
|
+
if (!window.sessionStorage) {
|
1436
|
+
return console.warn('Session storage is not supported in this browser.');
|
1437
|
+
}
|
1438
|
+
this.addClass(this.refs.form, 'builder-paste-mode');
|
1439
|
+
window.sessionStorage.setItem('formio.clipboard', JSON.stringify(component.schema));
|
1440
|
+
}
|
1441
|
+
/**
|
1442
|
+
* Paste copied component after the current component.
|
1443
|
+
* @param {Component} component
|
1444
|
+
* @return {*}
|
1445
|
+
*/
|
1446
|
+
pasteComponent(component) {
|
1447
|
+
if (!window.sessionStorage) {
|
1448
|
+
return console.warn('Session storage is not supported in this browser.');
|
1449
|
+
}
|
1450
|
+
this.removeClass(this.refs.form, 'builder-paste-mode');
|
1451
|
+
if (window.sessionStorage) {
|
1452
|
+
const data = window.sessionStorage.getItem('formio.clipboard');
|
1453
|
+
if (data) {
|
1454
|
+
const schema = JSON.parse(data);
|
1455
|
+
const parent = this.getParentElement(component.element);
|
1456
|
+
if (parent) {
|
1457
|
+
builder_1.default.uniquify(this.findNamespaceRoot(parent.formioComponent), schema);
|
1458
|
+
let path = '';
|
1459
|
+
let index = 0;
|
1460
|
+
const isParentSaveChildMethod = this.isParentSaveChildMethod(parent.formioComponent);
|
1461
|
+
if (parent.formioContainer && !isParentSaveChildMethod) {
|
1462
|
+
index = parent.formioContainer.indexOf(component.component);
|
1463
|
+
path = this.getComponentsPath(schema, parent.formioComponent.component);
|
1464
|
+
parent.formioContainer.splice(index + 1, 0, schema);
|
1465
|
+
}
|
1466
|
+
else if (isParentSaveChildMethod) {
|
1467
|
+
parent.formioComponent.saveChildComponent(schema, false);
|
1468
|
+
}
|
1469
|
+
parent.formioComponent.rebuild();
|
1470
|
+
this.emitSaveComponentEvent(schema, schema, parent.formioComponent.component, path, (index + 1), true, schema);
|
1471
|
+
}
|
1472
|
+
this.emit('change', this.form);
|
1473
|
+
}
|
1474
|
+
}
|
1475
|
+
}
|
1476
|
+
isParentSaveChildMethod(parentComp) {
|
1477
|
+
return !!(parentComp && parentComp.saveChildComponent);
|
1478
|
+
}
|
1479
|
+
getParentElement(element) {
|
1480
|
+
let container = element;
|
1481
|
+
do {
|
1482
|
+
container = container.parentNode;
|
1483
|
+
} while (container && !container.formioComponent);
|
1484
|
+
return container;
|
1485
|
+
}
|
1486
|
+
addBuilderComponentInfo(component) {
|
1487
|
+
if (!component || !component.group || !this.groups[component.group]) {
|
1488
|
+
return;
|
1489
|
+
}
|
1490
|
+
component = lodash_1.default.clone(component);
|
1491
|
+
const groupInfo = this.groups[component.group];
|
1492
|
+
if (!groupInfo.components.hasOwnProperty(component.key)) {
|
1493
|
+
groupInfo.components[component.key] = component;
|
1494
|
+
}
|
1495
|
+
return component;
|
1496
|
+
}
|
1497
|
+
init() {
|
1498
|
+
if (this.webform) {
|
1499
|
+
this.webform.init();
|
1500
|
+
}
|
1501
|
+
return super.init();
|
1502
|
+
}
|
1503
|
+
clear() {
|
1504
|
+
if (this.webform.initialized) {
|
1505
|
+
this.webform.clear();
|
1506
|
+
}
|
1507
|
+
}
|
1508
|
+
destroy(all = false) {
|
1509
|
+
if (this.webform.initialized) {
|
1510
|
+
this.webform.destroy(all);
|
1511
|
+
}
|
1512
|
+
super.destroy(all);
|
1513
|
+
}
|
1514
|
+
addBuilderGroup(name, group) {
|
1515
|
+
if (!this.groups[name]) {
|
1516
|
+
this.groups[name] = group;
|
1517
|
+
this.groupOrder.push(name);
|
1518
|
+
this.triggerRedraw();
|
1519
|
+
}
|
1520
|
+
else {
|
1521
|
+
this.updateBuilderGroup(name, group);
|
1522
|
+
}
|
1523
|
+
}
|
1524
|
+
updateBuilderGroup(name, group) {
|
1525
|
+
if (this.groups[name]) {
|
1526
|
+
this.groups[name] = group;
|
1527
|
+
this.triggerRedraw();
|
1528
|
+
}
|
1529
|
+
}
|
1530
|
+
generateKey(info) {
|
1531
|
+
return info.key || lodash_1.default.camelCase(info.title ||
|
1532
|
+
info.label ||
|
1533
|
+
info.placeholder ||
|
1534
|
+
info.type);
|
1535
|
+
}
|
1536
|
+
}
|
1537
|
+
exports.default = WebformBuilder;
|