@formio/js 5.0.0-rc.26 → 5.0.0-rc.27-dev.5543.40bb827
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +10 -8
- package/types/formio.d.ts +2 -0
- package/dist/fonts/bootstrap-icons.woff +0 -0
- package/dist/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/formio.builder.css +0 -2299
- package/dist/formio.builder.min.css +0 -1
- package/dist/formio.embed.css +0 -1
- package/dist/formio.embed.js +0 -2
- package/dist/formio.embed.min.css +0 -1
- package/dist/formio.embed.min.js +0 -2
- package/dist/formio.embed.min.js.LICENSE.txt +0 -1
- package/dist/formio.form.css +0 -2034
- package/dist/formio.form.js +0 -8273
- package/dist/formio.form.min.css +0 -1
- package/dist/formio.form.min.js +0 -2
- package/dist/formio.form.min.js.LICENSE.txt +0 -43
- package/dist/formio.full.css +0 -3941
- package/dist/formio.full.js +0 -10280
- package/dist/formio.full.min.css +0 -5
- package/dist/formio.full.min.js +0 -2
- package/dist/formio.full.min.js.LICENSE.txt +0 -43
- package/dist/formio.js +0 -2809
- package/dist/formio.min.js +0 -2
- package/dist/formio.min.js.LICENSE.txt +0 -12
- package/dist/formio.utils.js +0 -2310
- package/dist/formio.utils.min.js +0 -2
- package/dist/formio.utils.min.js.LICENSE.txt +0 -36
- package/lib/cjs/CDN.d.ts +0 -29
- package/lib/cjs/CDN.js +0 -77
- package/lib/cjs/Element.d.ts +0 -255
- package/lib/cjs/Element.js +0 -603
- package/lib/cjs/Embed.d.ts +0 -42
- package/lib/cjs/Embed.js +0 -320
- package/lib/cjs/EventEmitter.d.ts +0 -7
- package/lib/cjs/EventEmitter.js +0 -52
- package/lib/cjs/Form.d.ts +0 -93
- package/lib/cjs/Form.js +0 -379
- package/lib/cjs/FormBuilder.d.ts +0 -6
- package/lib/cjs/FormBuilder.js +0 -39
- package/lib/cjs/Formio.d.ts +0 -2
- package/lib/cjs/Formio.js +0 -95
- package/lib/cjs/PDF.d.ts +0 -40
- package/lib/cjs/PDF.js +0 -291
- package/lib/cjs/PDFBuilder.d.ts +0 -55
- package/lib/cjs/PDFBuilder.js +0 -480
- package/lib/cjs/Webform.d.ts +0 -405
- package/lib/cjs/Webform.js +0 -1436
- package/lib/cjs/WebformBuilder.d.ts +0 -126
- package/lib/cjs/WebformBuilder.js +0 -1578
- package/lib/cjs/Wizard.d.ts +0 -96
- package/lib/cjs/Wizard.js +0 -916
- package/lib/cjs/WizardBuilder.d.ts +0 -48
- package/lib/cjs/WizardBuilder.js +0 -269
- package/lib/cjs/addons/FormioAddon.d.ts +0 -19
- package/lib/cjs/addons/FormioAddon.js +0 -36
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +0 -717
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +0 -590
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +0 -316
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +0 -397
- package/lib/cjs/addons/index.d.ts +0 -625
- package/lib/cjs/addons/index.js +0 -25
- package/lib/cjs/builders/Builders.d.ts +0 -18
- package/lib/cjs/builders/Builders.js +0 -29
- package/lib/cjs/builders/index.d.ts +0 -2
- package/lib/cjs/builders/index.js +0 -7
- package/lib/cjs/components/Components.d.ts +0 -258
- package/lib/cjs/components/Components.js +0 -80
- package/lib/cjs/components/_classes/component/Component.d.ts +0 -798
- package/lib/cjs/components/_classes/component/Component.form.d.ts +0 -3
- package/lib/cjs/components/_classes/component/Component.form.js +0 -77
- package/lib/cjs/components/_classes/component/Component.js +0 -3200
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +0 -645
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +0 -46
- package/lib/cjs/components/_classes/component/editForm/Component.edit.api.d.ts +0 -42
- package/lib/cjs/components/_classes/component/editForm/Component.edit.api.js +0 -40
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +0 -113
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +0 -55
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -219
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +0 -161
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.d.ts +0 -160
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -202
- package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.d.ts +0 -44
- package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.js +0 -79
- package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.d.ts +0 -368
- package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +0 -415
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +0 -140
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +0 -209
- package/lib/cjs/components/_classes/component/editForm/utils.d.ts +0 -83
- package/lib/cjs/components/_classes/component/editForm/utils.js +0 -137
- package/lib/cjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
- package/lib/cjs/components/_classes/component/fixtures/comp1.js +0 -33
- package/lib/cjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
- package/lib/cjs/components/_classes/component/fixtures/comp2.js +0 -33
- package/lib/cjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
- package/lib/cjs/components/_classes/component/fixtures/comp3.js +0 -14
- package/lib/cjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
- package/lib/cjs/components/_classes/component/fixtures/comp4.js +0 -18
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +0 -5
- package/lib/cjs/components/_classes/component/fixtures/index.js +0 -14
- package/lib/cjs/components/_classes/componentModal/ComponentModal.d.ts +0 -46
- package/lib/cjs/components/_classes/componentModal/ComponentModal.js +0 -183
- package/lib/cjs/components/_classes/field/Field.d.ts +0 -5
- package/lib/cjs/components/_classes/field/Field.js +0 -37
- package/lib/cjs/components/_classes/input/Input.d.ts +0 -42
- package/lib/cjs/components/_classes/input/Input.js +0 -303
- package/lib/cjs/components/_classes/list/ListComponent.d.ts +0 -18
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +0 -3
- package/lib/cjs/components/_classes/list/ListComponent.form.js +0 -16
- package/lib/cjs/components/_classes/list/ListComponent.js +0 -255
- package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +0 -183
- package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.js +0 -119
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +0 -29
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +0 -255
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +0 -133
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +0 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -19
- package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -692
- package/lib/cjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
- package/lib/cjs/components/_classes/nested/fixtures/comp1.js +0 -16
- package/lib/cjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
- package/lib/cjs/components/_classes/nested/fixtures/comp2.js +0 -227
- package/lib/cjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
- package/lib/cjs/components/_classes/nested/fixtures/comp3.js +0 -29
- package/lib/cjs/components/_classes/nested/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/_classes/nested/fixtures/index.js +0 -12
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +0 -15
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +0 -184
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -12
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +0 -127
- package/lib/cjs/components/address/Address.d.ts +0 -66
- package/lib/cjs/components/address/Address.form.d.ts +0 -3
- package/lib/cjs/components/address/Address.form.js +0 -28
- package/lib/cjs/components/address/Address.js +0 -552
- package/lib/cjs/components/address/editForm/Address.edit.data.d.ts +0 -31
- package/lib/cjs/components/address/editForm/Address.edit.data.js +0 -23
- package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +0 -49
- package/lib/cjs/components/address/editForm/Address.edit.display.js +0 -44
- package/lib/cjs/components/address/editForm/Address.edit.provider.d.ts +0 -164
- package/lib/cjs/components/address/editForm/Address.edit.provider.js +0 -156
- package/lib/cjs/components/address/fixtures/comp1.d.ts +0 -34
- package/lib/cjs/components/address/fixtures/comp1.js +0 -71
- package/lib/cjs/components/address/fixtures/comp2.d.ts +0 -62
- package/lib/cjs/components/address/fixtures/comp2.js +0 -103
- package/lib/cjs/components/address/fixtures/comp3.d.ts +0 -44
- package/lib/cjs/components/address/fixtures/comp3.js +0 -85
- package/lib/cjs/components/address/fixtures/comp4.d.ts +0 -56
- package/lib/cjs/components/address/fixtures/comp4.js +0 -93
- package/lib/cjs/components/address/fixtures/index.d.ts +0 -5
- package/lib/cjs/components/address/fixtures/index.js +0 -14
- package/lib/cjs/components/address/fixtures/values.d.ts +0 -22
- package/lib/cjs/components/address/fixtures/values.js +0 -19
- package/lib/cjs/components/alert/Alert.d.ts +0 -30
- package/lib/cjs/components/alert/Alert.js +0 -183
- package/lib/cjs/components/builder.d.ts +0 -2
- package/lib/cjs/components/builder.js +0 -91
- package/lib/cjs/components/button/Button.d.ts +0 -45
- package/lib/cjs/components/button/Button.form.d.ts +0 -3
- package/lib/cjs/components/button/Button.form.js +0 -24
- package/lib/cjs/components/button/Button.js +0 -467
- package/lib/cjs/components/button/editForm/Button.edit.display.d.ts +0 -360
- package/lib/cjs/components/button/editForm/Button.edit.display.js +0 -253
- package/lib/cjs/components/button/fixtures/comp1.d.ts +0 -15
- package/lib/cjs/components/button/fixtures/comp1.js +0 -16
- package/lib/cjs/components/button/fixtures/comp2.d.ts +0 -25
- package/lib/cjs/components/button/fixtures/comp2.js +0 -57
- package/lib/cjs/components/button/fixtures/comp3.d.ts +0 -113
- package/lib/cjs/components/button/fixtures/comp3.js +0 -84
- package/lib/cjs/components/button/fixtures/index.d.ts +0 -4
- package/lib/cjs/components/button/fixtures/index.js +0 -12
- package/lib/cjs/components/button/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/button/fixtures/values.js +0 -6
- package/lib/cjs/components/checkbox/Checkbox.d.ts +0 -77
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +0 -3
- package/lib/cjs/components/checkbox/Checkbox.form.js +0 -26
- package/lib/cjs/components/checkbox/Checkbox.js +0 -221
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +0 -5
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.js +0 -8
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +0 -75
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.js +0 -79
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +0 -5
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.js +0 -12
- package/lib/cjs/components/checkbox/fixtures/comp1.d.ts +0 -24
- package/lib/cjs/components/checkbox/fixtures/comp1.js +0 -24
- package/lib/cjs/components/checkbox/fixtures/comp2.d.ts +0 -12
- package/lib/cjs/components/checkbox/fixtures/comp2.js +0 -13
- package/lib/cjs/components/checkbox/fixtures/comp3.d.ts +0 -15
- package/lib/cjs/components/checkbox/fixtures/comp3.js +0 -16
- package/lib/cjs/components/checkbox/fixtures/comp4.d.ts +0 -46
- package/lib/cjs/components/checkbox/fixtures/comp4.js +0 -39
- package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
- package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.js +0 -25
- package/lib/cjs/components/checkbox/fixtures/index.d.ts +0 -6
- package/lib/cjs/components/checkbox/fixtures/index.js +0 -16
- package/lib/cjs/components/checkbox/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/checkbox/fixtures/values.js +0 -6
- package/lib/cjs/components/columns/Columns.d.ts +0 -27
- package/lib/cjs/components/columns/Columns.form.d.ts +0 -3
- package/lib/cjs/components/columns/Columns.form.js +0 -16
- package/lib/cjs/components/columns/Columns.js +0 -160
- package/lib/cjs/components/columns/editForm/Columns.edit.display.d.ts +0 -58
- package/lib/cjs/components/columns/editForm/Columns.edit.display.js +0 -100
- package/lib/cjs/components/columns/fixtures/comp1.d.ts +0 -45
- package/lib/cjs/components/columns/fixtures/comp1.js +0 -85
- package/lib/cjs/components/columns/fixtures/comp2.d.ts +0 -24
- package/lib/cjs/components/columns/fixtures/comp2.js +0 -127
- package/lib/cjs/components/columns/fixtures/comp3.d.ts +0 -45
- package/lib/cjs/components/columns/fixtures/comp3.js +0 -53
- package/lib/cjs/components/columns/fixtures/index.d.ts +0 -4
- package/lib/cjs/components/columns/fixtures/index.js +0 -12
- package/lib/cjs/components/container/Container.d.ts +0 -15
- package/lib/cjs/components/container/Container.form.d.ts +0 -3
- package/lib/cjs/components/container/Container.form.js +0 -21
- package/lib/cjs/components/container/Container.js +0 -82
- package/lib/cjs/components/container/editForm/Container.edit.data.d.ts +0 -5
- package/lib/cjs/components/container/editForm/Container.edit.data.js +0 -16
- package/lib/cjs/components/container/editForm/Container.edit.display.d.ts +0 -5
- package/lib/cjs/components/container/editForm/Container.edit.display.js +0 -20
- package/lib/cjs/components/container/fixtures/comp1.d.ts +0 -49
- package/lib/cjs/components/container/fixtures/comp1.js +0 -82
- package/lib/cjs/components/container/fixtures/comp2.d.ts +0 -30
- package/lib/cjs/components/container/fixtures/comp2.js +0 -34
- package/lib/cjs/components/container/fixtures/comp3.d.ts +0 -77
- package/lib/cjs/components/container/fixtures/comp3.js +0 -57
- package/lib/cjs/components/container/fixtures/index.d.ts +0 -4
- package/lib/cjs/components/container/fixtures/index.js +0 -12
- package/lib/cjs/components/content/Content.d.ts +0 -17
- package/lib/cjs/components/content/Content.form.d.ts +0 -3
- package/lib/cjs/components/content/Content.form.js +0 -43
- package/lib/cjs/components/content/Content.js +0 -78
- package/lib/cjs/components/content/editForm/Content.edit.display.d.ts +0 -18
- package/lib/cjs/components/content/editForm/Content.edit.display.js +0 -48
- package/lib/cjs/components/content/editForm/Content.edit.logic.d.ts +0 -48
- package/lib/cjs/components/content/editForm/Content.edit.logic.js +0 -100
- package/lib/cjs/components/content/fixtures/comp1.d.ts +0 -13
- package/lib/cjs/components/content/fixtures/comp1.js +0 -14
- package/lib/cjs/components/content/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/content/fixtures/index.js +0 -8
- package/lib/cjs/components/currency/Currency.d.ts +0 -8
- package/lib/cjs/components/currency/Currency.form.d.ts +0 -3
- package/lib/cjs/components/currency/Currency.form.js +0 -46
- package/lib/cjs/components/currency/Currency.js +0 -180
- package/lib/cjs/components/currency/editForm/Currency.edit.data.d.ts +0 -29
- package/lib/cjs/components/currency/editForm/Currency.edit.data.js +0 -192
- package/lib/cjs/components/currency/editForm/Currency.edit.display.d.ts +0 -18
- package/lib/cjs/components/currency/editForm/Currency.edit.display.js +0 -40
- package/lib/cjs/components/currency/fixtures/comp1.d.ts +0 -31
- package/lib/cjs/components/currency/fixtures/comp1.js +0 -31
- package/lib/cjs/components/currency/fixtures/comp2.d.ts +0 -20
- package/lib/cjs/components/currency/fixtures/comp2.js +0 -20
- package/lib/cjs/components/currency/fixtures/comp3.d.ts +0 -13
- package/lib/cjs/components/currency/fixtures/comp3.js +0 -14
- package/lib/cjs/components/currency/fixtures/comp4.d.ts +0 -17
- package/lib/cjs/components/currency/fixtures/comp4.js +0 -20
- package/lib/cjs/components/currency/fixtures/index.d.ts +0 -5
- package/lib/cjs/components/currency/fixtures/index.js +0 -14
- package/lib/cjs/components/currency/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/currency/fixtures/values.js +0 -8
- package/lib/cjs/components/datagrid/DataGrid.d.ts +0 -88
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +0 -3
- package/lib/cjs/components/datagrid/DataGrid.form.js +0 -26
- package/lib/cjs/components/datagrid/DataGrid.js +0 -648
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +0 -5
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.js +0 -8
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +0 -283
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.js +0 -149
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +0 -20
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.js +0 -26
- package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
- package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -42
- 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 +0 -1
- package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
- package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -81
- package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
- package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -75
- package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -197
- package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -178
- package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
- package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.js +0 -69
- package/lib/cjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
- package/lib/cjs/components/datagrid/fixtures/comp-with-logic.js +0 -180
- package/lib/cjs/components/datagrid/fixtures/comp1.d.ts +0 -93
- package/lib/cjs/components/datagrid/fixtures/comp1.js +0 -115
- package/lib/cjs/components/datagrid/fixtures/comp2.d.ts +0 -18
- package/lib/cjs/components/datagrid/fixtures/comp2.js +0 -29
- package/lib/cjs/components/datagrid/fixtures/comp3.d.ts +0 -14
- package/lib/cjs/components/datagrid/fixtures/comp3.js +0 -23
- package/lib/cjs/components/datagrid/fixtures/comp4.d.ts +0 -27
- package/lib/cjs/components/datagrid/fixtures/comp4.js +0 -28
- package/lib/cjs/components/datagrid/fixtures/comp5.d.ts +0 -67
- package/lib/cjs/components/datagrid/fixtures/comp5.js +0 -77
- package/lib/cjs/components/datagrid/fixtures/comp6.d.ts +0 -567
- package/lib/cjs/components/datagrid/fixtures/comp6.js +0 -296
- package/lib/cjs/components/datagrid/fixtures/comp7.d.ts +0 -28
- package/lib/cjs/components/datagrid/fixtures/comp7.js +0 -35
- package/lib/cjs/components/datagrid/fixtures/comp8.d.ts +0 -35
- package/lib/cjs/components/datagrid/fixtures/comp8.js +0 -37
- package/lib/cjs/components/datagrid/fixtures/index.d.ts +0 -15
- package/lib/cjs/components/datagrid/fixtures/index.js +0 -34
- package/lib/cjs/components/datamap/DataMap.d.ts +0 -36
- package/lib/cjs/components/datamap/DataMap.form.d.ts +0 -3
- package/lib/cjs/components/datamap/DataMap.form.js +0 -21
- package/lib/cjs/components/datamap/DataMap.js +0 -301
- package/lib/cjs/components/datamap/editForm/DataMap.edit.data.d.ts +0 -5
- package/lib/cjs/components/datamap/editForm/DataMap.edit.data.js +0 -12
- package/lib/cjs/components/datamap/editForm/DataMap.edit.display.d.ts +0 -30
- package/lib/cjs/components/datamap/editForm/DataMap.edit.display.js +0 -48
- package/lib/cjs/components/datamap/fixtures/comp1.d.ts +0 -18
- package/lib/cjs/components/datamap/fixtures/comp1.js +0 -15
- package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
- package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -85
- package/lib/cjs/components/datamap/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/datamap/fixtures/index.js +0 -10
- package/lib/cjs/components/datetime/DateTime.d.ts +0 -39
- package/lib/cjs/components/datetime/DateTime.form.d.ts +0 -3
- package/lib/cjs/components/datetime/DateTime.form.js +0 -40
- package/lib/cjs/components/datetime/DateTime.js +0 -164
- package/lib/cjs/components/datetime/editForm/DateTime.edit.data.d.ts +0 -24
- package/lib/cjs/components/datetime/editForm/DateTime.edit.data.js +0 -23
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +0 -61
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +0 -75
- package/lib/cjs/components/datetime/editForm/DateTime.edit.display.d.ts +0 -128
- package/lib/cjs/components/datetime/editForm/DateTime.edit.display.js +0 -100
- package/lib/cjs/components/datetime/editForm/DateTime.edit.time.d.ts +0 -9
- package/lib/cjs/components/datetime/editForm/DateTime.edit.time.js +0 -36
- package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.d.ts +0 -40
- package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +0 -84
- package/lib/cjs/components/datetime/fixtures/comp1.d.ts +0 -45
- package/lib/cjs/components/datetime/fixtures/comp1.js +0 -44
- package/lib/cjs/components/datetime/fixtures/comp10.d.ts +0 -102
- package/lib/cjs/components/datetime/fixtures/comp10.js +0 -86
- package/lib/cjs/components/datetime/fixtures/comp11.d.ts +0 -58
- package/lib/cjs/components/datetime/fixtures/comp11.js +0 -55
- package/lib/cjs/components/datetime/fixtures/comp12.d.ts +0 -57
- package/lib/cjs/components/datetime/fixtures/comp12.js +0 -55
- package/lib/cjs/components/datetime/fixtures/comp2.d.ts +0 -42
- package/lib/cjs/components/datetime/fixtures/comp2.js +0 -43
- package/lib/cjs/components/datetime/fixtures/comp3.d.ts +0 -51
- package/lib/cjs/components/datetime/fixtures/comp3.js +0 -40
- package/lib/cjs/components/datetime/fixtures/comp5.d.ts +0 -57
- package/lib/cjs/components/datetime/fixtures/comp5.js +0 -48
- package/lib/cjs/components/datetime/fixtures/comp6.d.ts +0 -55
- package/lib/cjs/components/datetime/fixtures/comp6.js +0 -49
- package/lib/cjs/components/datetime/fixtures/comp7.d.ts +0 -59
- package/lib/cjs/components/datetime/fixtures/comp7.js +0 -53
- package/lib/cjs/components/datetime/fixtures/comp8.d.ts +0 -59
- package/lib/cjs/components/datetime/fixtures/comp8.js +0 -52
- package/lib/cjs/components/datetime/fixtures/comp9.d.ts +0 -64
- package/lib/cjs/components/datetime/fixtures/comp9.js +0 -95
- package/lib/cjs/components/datetime/fixtures/index.d.ts +0 -12
- package/lib/cjs/components/datetime/fixtures/index.js +0 -28
- package/lib/cjs/components/datetime/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/datetime/fixtures/values.js +0 -6
- package/lib/cjs/components/day/Day.d.ts +0 -163
- package/lib/cjs/components/day/Day.form.d.ts +0 -3
- package/lib/cjs/components/day/Day.form.js +0 -47
- package/lib/cjs/components/day/Day.js +0 -573
- package/lib/cjs/components/day/editForm/Day.edit.data.d.ts +0 -5
- package/lib/cjs/components/day/editForm/Day.edit.data.js +0 -8
- package/lib/cjs/components/day/editForm/Day.edit.day.d.ts +0 -40
- package/lib/cjs/components/day/editForm/Day.edit.day.js +0 -48
- package/lib/cjs/components/day/editForm/Day.edit.display.d.ts +0 -40
- package/lib/cjs/components/day/editForm/Day.edit.display.js +0 -46
- package/lib/cjs/components/day/editForm/Day.edit.month.d.ts +0 -40
- package/lib/cjs/components/day/editForm/Day.edit.month.js +0 -40
- package/lib/cjs/components/day/editForm/Day.edit.validation.d.ts +0 -29
- package/lib/cjs/components/day/editForm/Day.edit.validation.js +0 -54
- package/lib/cjs/components/day/editForm/Day.edit.year.d.ts +0 -40
- package/lib/cjs/components/day/editForm/Day.edit.year.js +0 -58
- package/lib/cjs/components/day/fixtures/comp1.d.ts +0 -46
- package/lib/cjs/components/day/fixtures/comp1.js +0 -39
- package/lib/cjs/components/day/fixtures/comp2.d.ts +0 -46
- package/lib/cjs/components/day/fixtures/comp2.js +0 -39
- package/lib/cjs/components/day/fixtures/comp3.d.ts +0 -48
- package/lib/cjs/components/day/fixtures/comp3.js +0 -41
- package/lib/cjs/components/day/fixtures/comp4.d.ts +0 -53
- package/lib/cjs/components/day/fixtures/comp4.js +0 -56
- package/lib/cjs/components/day/fixtures/comp5.d.ts +0 -29
- package/lib/cjs/components/day/fixtures/comp5.js +0 -32
- package/lib/cjs/components/day/fixtures/comp6.d.ts +0 -81
- package/lib/cjs/components/day/fixtures/comp6.js +0 -76
- package/lib/cjs/components/day/fixtures/index.d.ts +0 -7
- package/lib/cjs/components/day/fixtures/index.js +0 -18
- package/lib/cjs/components/day/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/day/fixtures/values.js +0 -6
- package/lib/cjs/components/editgrid/EditGrid.d.ts +0 -99
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +0 -3
- package/lib/cjs/components/editgrid/EditGrid.form.js +0 -33
- package/lib/cjs/components/editgrid/EditGrid.js +0 -1167
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +0 -18
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.js +0 -20
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +0 -82
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +0 -58
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +0 -58
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +0 -131
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +0 -29
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.js +0 -34
- package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
- package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -36
- package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
- package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -220
- package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -77
- package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -84
- package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
- package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -227
- package/lib/cjs/components/editgrid/fixtures/comp1.d.ts +0 -89
- package/lib/cjs/components/editgrid/fixtures/comp1.js +0 -128
- package/lib/cjs/components/editgrid/fixtures/comp10.d.ts +0 -49
- package/lib/cjs/components/editgrid/fixtures/comp10.js +0 -48
- package/lib/cjs/components/editgrid/fixtures/comp11.d.ts +0 -53
- package/lib/cjs/components/editgrid/fixtures/comp11.js +0 -50
- package/lib/cjs/components/editgrid/fixtures/comp12.d.ts +0 -57
- package/lib/cjs/components/editgrid/fixtures/comp12.js +0 -50
- package/lib/cjs/components/editgrid/fixtures/comp13.d.ts +0 -64
- package/lib/cjs/components/editgrid/fixtures/comp13.js +0 -64
- package/lib/cjs/components/editgrid/fixtures/comp14.d.ts +0 -88
- package/lib/cjs/components/editgrid/fixtures/comp14.js +0 -84
- package/lib/cjs/components/editgrid/fixtures/comp15.d.ts +0 -54
- package/lib/cjs/components/editgrid/fixtures/comp15.js +0 -51
- package/lib/cjs/components/editgrid/fixtures/comp2.d.ts +0 -112
- package/lib/cjs/components/editgrid/fixtures/comp2.js +0 -114
- package/lib/cjs/components/editgrid/fixtures/comp3.d.ts +0 -27
- package/lib/cjs/components/editgrid/fixtures/comp3.js +0 -28
- package/lib/cjs/components/editgrid/fixtures/comp4.d.ts +0 -23
- package/lib/cjs/components/editgrid/fixtures/comp4.js +0 -24
- package/lib/cjs/components/editgrid/fixtures/comp5.d.ts +0 -19
- package/lib/cjs/components/editgrid/fixtures/comp5.js +0 -22
- package/lib/cjs/components/editgrid/fixtures/comp6.d.ts +0 -50
- package/lib/cjs/components/editgrid/fixtures/comp6.js +0 -58
- package/lib/cjs/components/editgrid/fixtures/comp7.d.ts +0 -129
- package/lib/cjs/components/editgrid/fixtures/comp7.js +0 -123
- package/lib/cjs/components/editgrid/fixtures/comp8.d.ts +0 -148
- package/lib/cjs/components/editgrid/fixtures/comp8.js +0 -156
- package/lib/cjs/components/editgrid/fixtures/comp9.d.ts +0 -86
- package/lib/cjs/components/editgrid/fixtures/comp9.js +0 -62
- package/lib/cjs/components/editgrid/fixtures/index.d.ts +0 -19
- package/lib/cjs/components/editgrid/fixtures/index.js +0 -42
- package/lib/cjs/components/email/Email.d.ts +0 -4
- package/lib/cjs/components/email/Email.form.d.ts +0 -3
- package/lib/cjs/components/email/Email.form.js +0 -21
- package/lib/cjs/components/email/Email.js +0 -54
- package/lib/cjs/components/email/editForm/Email.edit.display.d.ts +0 -5
- package/lib/cjs/components/email/editForm/Email.edit.display.js +0 -20
- package/lib/cjs/components/email/editForm/Email.edit.validation.d.ts +0 -24
- package/lib/cjs/components/email/editForm/Email.edit.validation.js +0 -28
- package/lib/cjs/components/email/fixtures/comp1.d.ts +0 -26
- package/lib/cjs/components/email/fixtures/comp1.js +0 -26
- package/lib/cjs/components/email/fixtures/comp2.d.ts +0 -23
- package/lib/cjs/components/email/fixtures/comp2.js +0 -13
- package/lib/cjs/components/email/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/email/fixtures/index.js +0 -10
- package/lib/cjs/components/email/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/email/fixtures/values.js +0 -6
- package/lib/cjs/components/fieldset/Fieldset.d.ts +0 -15
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +0 -3
- package/lib/cjs/components/fieldset/Fieldset.form.js +0 -16
- package/lib/cjs/components/fieldset/Fieldset.js +0 -47
- package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +0 -33
- package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -44
- package/lib/cjs/components/fieldset/fixtures/comp1.d.ts +0 -46
- package/lib/cjs/components/fieldset/fixtures/comp1.js +0 -81
- package/lib/cjs/components/fieldset/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/fieldset/fixtures/index.js +0 -8
- package/lib/cjs/components/file/File.d.ts +0 -81
- package/lib/cjs/components/file/File.form.d.ts +0 -3
- package/lib/cjs/components/file/File.form.js +0 -33
- package/lib/cjs/components/file/File.js +0 -777
- package/lib/cjs/components/file/editForm/File.edit.data.d.ts +0 -5
- package/lib/cjs/components/file/editForm/File.edit.data.js +0 -8
- package/lib/cjs/components/file/editForm/File.edit.display.d.ts +0 -5
- package/lib/cjs/components/file/editForm/File.edit.display.js +0 -8
- package/lib/cjs/components/file/editForm/File.edit.file.d.ts +0 -275
- package/lib/cjs/components/file/editForm/File.edit.file.js +0 -288
- package/lib/cjs/components/file/editForm/File.edit.validation.d.ts +0 -5
- package/lib/cjs/components/file/editForm/File.edit.validation.js +0 -12
- package/lib/cjs/components/file/fixtures/comp1.d.ts +0 -15
- package/lib/cjs/components/file/fixtures/comp1.js +0 -18
- package/lib/cjs/components/file/fixtures/comp2.d.ts +0 -35
- package/lib/cjs/components/file/fixtures/comp2.js +0 -31
- package/lib/cjs/components/file/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/file/fixtures/index.js +0 -10
- package/lib/cjs/components/file/fixtures/values.d.ts +0 -10
- package/lib/cjs/components/file/fixtures/values.js +0 -15
- package/lib/cjs/components/form/Form.d.ts +0 -98
- package/lib/cjs/components/form/Form.form.d.ts +0 -3
- package/lib/cjs/components/form/Form.form.js +0 -30
- package/lib/cjs/components/form/Form.js +0 -730
- package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +0 -82
- package/lib/cjs/components/form/editForm/Form.edit.data.js +0 -21
- package/lib/cjs/components/form/editForm/Form.edit.display.d.ts +0 -5
- package/lib/cjs/components/form/editForm/Form.edit.display.js +0 -29
- package/lib/cjs/components/form/editForm/Form.edit.form.d.ts +0 -89
- package/lib/cjs/components/form/editForm/Form.edit.form.js +0 -75
- package/lib/cjs/components/form/fixtures/comp1.d.ts +0 -45
- package/lib/cjs/components/form/fixtures/comp1.js +0 -80
- package/lib/cjs/components/form/fixtures/comp2.d.ts +0 -14
- package/lib/cjs/components/form/fixtures/comp2.js +0 -15
- package/lib/cjs/components/form/fixtures/comp3.d.ts +0 -187
- package/lib/cjs/components/form/fixtures/comp3.js +0 -170
- package/lib/cjs/components/form/fixtures/comp4.d.ts +0 -107
- package/lib/cjs/components/form/fixtures/comp4.js +0 -91
- package/lib/cjs/components/form/fixtures/comp5.d.ts +0 -42
- package/lib/cjs/components/form/fixtures/comp5.js +0 -45
- package/lib/cjs/components/form/fixtures/comp6.d.ts +0 -74
- package/lib/cjs/components/form/fixtures/comp6.js +0 -94
- package/lib/cjs/components/form/fixtures/formModalEdit.d.ts +0 -42
- package/lib/cjs/components/form/fixtures/formModalEdit.js +0 -51
- package/lib/cjs/components/form/fixtures/index.d.ts +0 -8
- package/lib/cjs/components/form/fixtures/index.js +0 -20
- package/lib/cjs/components/form/fixtures/values.d.ts +0 -6
- package/lib/cjs/components/form/fixtures/values.js +0 -9
- package/lib/cjs/components/hidden/Hidden.d.ts +0 -26
- package/lib/cjs/components/hidden/Hidden.form.d.ts +0 -3
- package/lib/cjs/components/hidden/Hidden.form.js +0 -29
- package/lib/cjs/components/hidden/Hidden.js +0 -61
- package/lib/cjs/components/hidden/editForm/Hidden.edit.data.d.ts +0 -5
- package/lib/cjs/components/hidden/editForm/Hidden.edit.data.js +0 -16
- package/lib/cjs/components/hidden/editForm/Hidden.edit.display.d.ts +0 -5
- package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +0 -44
- package/lib/cjs/components/hidden/fixtures/comp1.d.ts +0 -18
- package/lib/cjs/components/hidden/fixtures/comp1.js +0 -18
- package/lib/cjs/components/hidden/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/hidden/fixtures/index.js +0 -8
- package/lib/cjs/components/hidden/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/hidden/fixtures/values.js +0 -6
- package/lib/cjs/components/html/HTML.d.ts +0 -18
- package/lib/cjs/components/html/HTML.form.d.ts +0 -3
- package/lib/cjs/components/html/HTML.form.js +0 -29
- package/lib/cjs/components/html/HTML.js +0 -93
- package/lib/cjs/components/html/editForm/HTML.edit.display.d.ts +0 -77
- package/lib/cjs/components/html/editForm/HTML.edit.display.js +0 -100
- package/lib/cjs/components/html/editForm/HTML.edit.logic.d.ts +0 -48
- package/lib/cjs/components/html/editForm/HTML.edit.logic.js +0 -100
- package/lib/cjs/components/html/fixtures/comp1.d.ts +0 -19
- package/lib/cjs/components/html/fixtures/comp1.js +0 -22
- package/lib/cjs/components/html/fixtures/comp2.d.ts +0 -21
- package/lib/cjs/components/html/fixtures/comp2.js +0 -24
- package/lib/cjs/components/html/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/html/fixtures/index.js +0 -10
- package/lib/cjs/components/index.d.ts +0 -100
- package/lib/cjs/components/index.js +0 -104
- package/lib/cjs/components/number/Number.d.ts +0 -54
- package/lib/cjs/components/number/Number.form.d.ts +0 -3
- package/lib/cjs/components/number/Number.form.js +0 -26
- package/lib/cjs/components/number/Number.js +0 -204
- package/lib/cjs/components/number/editForm/Number.edit.data.d.ts +0 -18
- package/lib/cjs/components/number/editForm/Number.edit.data.js +0 -32
- package/lib/cjs/components/number/editForm/Number.edit.display.d.ts +0 -5
- package/lib/cjs/components/number/editForm/Number.edit.display.js +0 -24
- package/lib/cjs/components/number/editForm/Number.edit.validation.d.ts +0 -20
- package/lib/cjs/components/number/editForm/Number.edit.validation.js +0 -46
- package/lib/cjs/components/number/fixtures/comp1.d.ts +0 -33
- package/lib/cjs/components/number/fixtures/comp1.js +0 -32
- package/lib/cjs/components/number/fixtures/comp2.d.ts +0 -32
- package/lib/cjs/components/number/fixtures/comp2.js +0 -31
- package/lib/cjs/components/number/fixtures/comp3.d.ts +0 -14
- package/lib/cjs/components/number/fixtures/comp3.js +0 -15
- package/lib/cjs/components/number/fixtures/comp4.d.ts +0 -14
- package/lib/cjs/components/number/fixtures/comp4.js +0 -15
- package/lib/cjs/components/number/fixtures/comp5.d.ts +0 -20
- package/lib/cjs/components/number/fixtures/comp5.js +0 -20
- package/lib/cjs/components/number/fixtures/comp6.d.ts +0 -40
- package/lib/cjs/components/number/fixtures/comp6.js +0 -27
- package/lib/cjs/components/number/fixtures/comp7.d.ts +0 -15
- package/lib/cjs/components/number/fixtures/comp7.js +0 -16
- package/lib/cjs/components/number/fixtures/index.d.ts +0 -8
- package/lib/cjs/components/number/fixtures/index.js +0 -20
- package/lib/cjs/components/number/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/number/fixtures/values.js +0 -11
- package/lib/cjs/components/panel/Panel.d.ts +0 -15
- package/lib/cjs/components/panel/Panel.form.d.ts +0 -3
- package/lib/cjs/components/panel/Panel.form.js +0 -21
- package/lib/cjs/components/panel/Panel.js +0 -62
- package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +0 -75
- package/lib/cjs/components/panel/editForm/Panel.edit.conditional.js +0 -42
- package/lib/cjs/components/panel/editForm/Panel.edit.display.d.ts +0 -228
- package/lib/cjs/components/panel/editForm/Panel.edit.display.js +0 -213
- package/lib/cjs/components/panel/fixtures/comp1.d.ts +0 -46
- package/lib/cjs/components/panel/fixtures/comp1.js +0 -80
- package/lib/cjs/components/panel/fixtures/comp2.d.ts +0 -80
- package/lib/cjs/components/panel/fixtures/comp2.js +0 -69
- package/lib/cjs/components/panel/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/panel/fixtures/index.js +0 -10
- package/lib/cjs/components/password/Password.d.ts +0 -3
- package/lib/cjs/components/password/Password.form.d.ts +0 -3
- package/lib/cjs/components/password/Password.form.js +0 -26
- package/lib/cjs/components/password/Password.js +0 -40
- package/lib/cjs/components/password/editForm/Password.edit.data.d.ts +0 -18
- package/lib/cjs/components/password/editForm/Password.edit.data.js +0 -48
- package/lib/cjs/components/password/editForm/Password.edit.display.d.ts +0 -5
- package/lib/cjs/components/password/editForm/Password.edit.display.js +0 -16
- package/lib/cjs/components/password/editForm/Password.edit.validation.d.ts +0 -5
- package/lib/cjs/components/password/editForm/Password.edit.validation.js +0 -16
- package/lib/cjs/components/password/fixtures/comp1.d.ts +0 -22
- package/lib/cjs/components/password/fixtures/comp1.js +0 -22
- package/lib/cjs/components/password/fixtures/comp2.d.ts +0 -27
- package/lib/cjs/components/password/fixtures/comp2.js +0 -29
- package/lib/cjs/components/password/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/password/fixtures/index.js +0 -10
- package/lib/cjs/components/password/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/password/fixtures/values.js +0 -6
- package/lib/cjs/components/phonenumber/PhoneNumber.d.ts +0 -3
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +0 -3
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +0 -38
- package/lib/cjs/components/phonenumber/PhoneNumber.js +0 -33
- package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +0 -5
- package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +0 -24
- package/lib/cjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
- package/lib/cjs/components/phonenumber/fixtures/comp1.js +0 -27
- package/lib/cjs/components/phonenumber/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/phonenumber/fixtures/index.js +0 -8
- package/lib/cjs/components/phonenumber/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/phonenumber/fixtures/values.js +0 -6
- package/lib/cjs/components/radio/Radio.d.ts +0 -65
- package/lib/cjs/components/radio/Radio.form.d.ts +0 -3
- package/lib/cjs/components/radio/Radio.form.js +0 -26
- package/lib/cjs/components/radio/Radio.js +0 -376
- package/lib/cjs/components/radio/editForm/Radio.edit.data.d.ts +0 -134
- package/lib/cjs/components/radio/editForm/Radio.edit.data.js +0 -85
- package/lib/cjs/components/radio/editForm/Radio.edit.display.d.ts +0 -40
- package/lib/cjs/components/radio/editForm/Radio.edit.display.js +0 -34
- package/lib/cjs/components/radio/editForm/Radio.edit.validation.d.ts +0 -18
- package/lib/cjs/components/radio/editForm/Radio.edit.validation.js +0 -20
- package/lib/cjs/components/radio/fixtures/comp1.d.ts +0 -28
- package/lib/cjs/components/radio/fixtures/comp1.js +0 -42
- package/lib/cjs/components/radio/fixtures/comp2.d.ts +0 -85
- package/lib/cjs/components/radio/fixtures/comp2.js +0 -86
- package/lib/cjs/components/radio/fixtures/comp3.d.ts +0 -85
- package/lib/cjs/components/radio/fixtures/comp3.js +0 -90
- package/lib/cjs/components/radio/fixtures/comp4.d.ts +0 -19
- package/lib/cjs/components/radio/fixtures/comp4.js +0 -27
- package/lib/cjs/components/radio/fixtures/comp5.d.ts +0 -39
- package/lib/cjs/components/radio/fixtures/comp5.js +0 -35
- package/lib/cjs/components/radio/fixtures/comp6.d.ts +0 -38
- package/lib/cjs/components/radio/fixtures/comp6.js +0 -33
- package/lib/cjs/components/radio/fixtures/comp7.d.ts +0 -23
- package/lib/cjs/components/radio/fixtures/comp7.js +0 -21
- package/lib/cjs/components/radio/fixtures/comp8.d.ts +0 -118
- package/lib/cjs/components/radio/fixtures/comp8.js +0 -113
- package/lib/cjs/components/radio/fixtures/comp9.d.ts +0 -35
- package/lib/cjs/components/radio/fixtures/comp9.js +0 -32
- package/lib/cjs/components/radio/fixtures/index.d.ts +0 -10
- package/lib/cjs/components/radio/fixtures/index.js +0 -24
- package/lib/cjs/components/radio/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/radio/fixtures/values.js +0 -7
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +0 -23
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +0 -3
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +0 -32
- package/lib/cjs/components/recaptcha/ReCaptcha.js +0 -142
- package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +0 -44
- package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +0 -108
- package/lib/cjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
- package/lib/cjs/components/recaptcha/fixtures/comp1.js +0 -9
- package/lib/cjs/components/recaptcha/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/recaptcha/fixtures/index.js +0 -8
- package/lib/cjs/components/resource/Resource.d.ts +0 -10
- package/lib/cjs/components/resource/Resource.form.d.ts +0 -3
- package/lib/cjs/components/resource/Resource.form.js +0 -16
- package/lib/cjs/components/resource/Resource.js +0 -39
- package/lib/cjs/components/resource/editForm/Resource.edit.display.d.ts +0 -173
- package/lib/cjs/components/resource/editForm/Resource.edit.display.js +0 -102
- package/lib/cjs/components/resource/fixtures/comp1.d.ts +0 -30
- package/lib/cjs/components/resource/fixtures/comp1.js +0 -30
- package/lib/cjs/components/resource/fixtures/comp2.d.ts +0 -35
- package/lib/cjs/components/resource/fixtures/comp2.js +0 -31
- package/lib/cjs/components/resource/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/resource/fixtures/index.js +0 -10
- package/lib/cjs/components/select/Select.d.ts +0 -145
- package/lib/cjs/components/select/Select.form.d.ts +0 -3
- package/lib/cjs/components/select/Select.form.js +0 -26
- package/lib/cjs/components/select/Select.js +0 -1466
- package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +0 -1039
- package/lib/cjs/components/select/editForm/Select.edit.data.js +0 -629
- package/lib/cjs/components/select/editForm/Select.edit.display.d.ts +0 -27
- package/lib/cjs/components/select/editForm/Select.edit.display.js +0 -28
- package/lib/cjs/components/select/editForm/Select.edit.validation.d.ts +0 -30
- package/lib/cjs/components/select/editForm/Select.edit.validation.js +0 -35
- package/lib/cjs/components/select/fixtures/comp1.d.ts +0 -40
- package/lib/cjs/components/select/fixtures/comp1.js +0 -66
- package/lib/cjs/components/select/fixtures/comp10.d.ts +0 -41
- package/lib/cjs/components/select/fixtures/comp10.js +0 -32
- package/lib/cjs/components/select/fixtures/comp11.d.ts +0 -28
- package/lib/cjs/components/select/fixtures/comp11.js +0 -24
- package/lib/cjs/components/select/fixtures/comp12.d.ts +0 -53
- package/lib/cjs/components/select/fixtures/comp12.js +0 -29
- package/lib/cjs/components/select/fixtures/comp13.d.ts +0 -28
- package/lib/cjs/components/select/fixtures/comp13.js +0 -31
- package/lib/cjs/components/select/fixtures/comp14.d.ts +0 -40
- package/lib/cjs/components/select/fixtures/comp14.js +0 -27
- package/lib/cjs/components/select/fixtures/comp15.d.ts +0 -50
- package/lib/cjs/components/select/fixtures/comp15.js +0 -41
- package/lib/cjs/components/select/fixtures/comp16.d.ts +0 -34
- package/lib/cjs/components/select/fixtures/comp16.js +0 -33
- package/lib/cjs/components/select/fixtures/comp17.d.ts +0 -51
- package/lib/cjs/components/select/fixtures/comp17.js +0 -43
- package/lib/cjs/components/select/fixtures/comp18.d.ts +0 -49
- package/lib/cjs/components/select/fixtures/comp18.js +0 -42
- package/lib/cjs/components/select/fixtures/comp19.d.ts +0 -23
- package/lib/cjs/components/select/fixtures/comp19.js +0 -36
- package/lib/cjs/components/select/fixtures/comp2.d.ts +0 -41
- package/lib/cjs/components/select/fixtures/comp2.js +0 -67
- package/lib/cjs/components/select/fixtures/comp3.d.ts +0 -35
- package/lib/cjs/components/select/fixtures/comp3.js +0 -209
- package/lib/cjs/components/select/fixtures/comp4.d.ts +0 -103
- package/lib/cjs/components/select/fixtures/comp4.js +0 -106
- package/lib/cjs/components/select/fixtures/comp5.d.ts +0 -21
- package/lib/cjs/components/select/fixtures/comp5.js +0 -28
- package/lib/cjs/components/select/fixtures/comp6.d.ts +0 -20
- package/lib/cjs/components/select/fixtures/comp6.js +0 -30
- package/lib/cjs/components/select/fixtures/comp7.d.ts +0 -63
- package/lib/cjs/components/select/fixtures/comp7.js +0 -46
- package/lib/cjs/components/select/fixtures/comp8.d.ts +0 -72
- package/lib/cjs/components/select/fixtures/comp8.js +0 -37
- package/lib/cjs/components/select/fixtures/comp9.d.ts +0 -88
- package/lib/cjs/components/select/fixtures/comp9.js +0 -67
- package/lib/cjs/components/select/fixtures/index.d.ts +0 -20
- package/lib/cjs/components/select/fixtures/index.js +0 -45
- package/lib/cjs/components/select/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/select/fixtures/values.js +0 -7
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +0 -52
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +0 -3
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +0 -25
- package/lib/cjs/components/selectboxes/SelectBoxes.js +0 -258
- package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +0 -9
- package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +0 -36
- package/lib/cjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
- package/lib/cjs/components/selectboxes/fixtures/comp1.js +0 -54
- package/lib/cjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
- package/lib/cjs/components/selectboxes/fixtures/comp2.js +0 -54
- package/lib/cjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
- package/lib/cjs/components/selectboxes/fixtures/comp3.js +0 -21
- package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
- package/lib/cjs/components/selectboxes/fixtures/comp4.js +0 -81
- package/lib/cjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
- package/lib/cjs/components/selectboxes/fixtures/comp5.js +0 -33
- package/lib/cjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
- package/lib/cjs/components/selectboxes/fixtures/comp6.js +0 -15
- package/lib/cjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
- package/lib/cjs/components/selectboxes/fixtures/comp7.js +0 -31
- package/lib/cjs/components/selectboxes/fixtures/index.d.ts +0 -8
- package/lib/cjs/components/selectboxes/fixtures/index.js +0 -20
- package/lib/cjs/components/selectboxes/fixtures/values.d.ts +0 -6
- package/lib/cjs/components/selectboxes/fixtures/values.js +0 -24
- package/lib/cjs/components/signature/Signature.d.ts +0 -46
- package/lib/cjs/components/signature/Signature.form.d.ts +0 -3
- package/lib/cjs/components/signature/Signature.form.js +0 -26
- package/lib/cjs/components/signature/Signature.js +0 -259
- package/lib/cjs/components/signature/editForm/Signature.edit.data.d.ts +0 -5
- package/lib/cjs/components/signature/editForm/Signature.edit.data.js +0 -16
- package/lib/cjs/components/signature/editForm/Signature.edit.display.d.ts +0 -51
- package/lib/cjs/components/signature/editForm/Signature.edit.display.js +0 -71
- package/lib/cjs/components/signature/editForm/Signature.edit.validation.d.ts +0 -5
- package/lib/cjs/components/signature/editForm/Signature.edit.validation.js +0 -12
- package/lib/cjs/components/signature/fixtures/comp1.d.ts +0 -30
- package/lib/cjs/components/signature/fixtures/comp1.js +0 -30
- package/lib/cjs/components/signature/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/signature/fixtures/index.js +0 -8
- package/lib/cjs/components/signature/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/signature/fixtures/values.js +0 -7
- package/lib/cjs/components/survey/Survey.d.ts +0 -37
- package/lib/cjs/components/survey/Survey.form.d.ts +0 -3
- package/lib/cjs/components/survey/Survey.form.js +0 -26
- package/lib/cjs/components/survey/Survey.js +0 -156
- package/lib/cjs/components/survey/editForm/Survey.edit.data.d.ts +0 -44
- package/lib/cjs/components/survey/editForm/Survey.edit.data.js +0 -72
- package/lib/cjs/components/survey/editForm/Survey.edit.display.d.ts +0 -5
- package/lib/cjs/components/survey/editForm/Survey.edit.display.js +0 -8
- package/lib/cjs/components/survey/editForm/Survey.edit.validation.d.ts +0 -5
- package/lib/cjs/components/survey/editForm/Survey.edit.validation.js +0 -8
- package/lib/cjs/components/survey/fixtures/comp1.d.ts +0 -31
- package/lib/cjs/components/survey/fixtures/comp1.js +0 -55
- package/lib/cjs/components/survey/fixtures/comp2.d.ts +0 -31
- package/lib/cjs/components/survey/fixtures/comp2.js +0 -55
- package/lib/cjs/components/survey/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/survey/fixtures/index.js +0 -10
- package/lib/cjs/components/survey/fixtures/values.d.ts +0 -5
- package/lib/cjs/components/survey/fixtures/values.js +0 -12
- package/lib/cjs/components/table/Table.d.ts +0 -23
- package/lib/cjs/components/table/Table.form.d.ts +0 -3
- package/lib/cjs/components/table/Table.form.js +0 -16
- package/lib/cjs/components/table/Table.js +0 -175
- package/lib/cjs/components/table/editForm/Table.edit.display.d.ts +0 -55
- package/lib/cjs/components/table/editForm/Table.edit.display.js +0 -111
- package/lib/cjs/components/table/fixtures/comp1.d.ts +0 -53
- package/lib/cjs/components/table/fixtures/comp1.js +0 -237
- package/lib/cjs/components/table/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/table/fixtures/index.js +0 -8
- package/lib/cjs/components/tabs/Tabs.d.ts +0 -30
- package/lib/cjs/components/tabs/Tabs.form.d.ts +0 -3
- package/lib/cjs/components/tabs/Tabs.form.js +0 -16
- package/lib/cjs/components/tabs/Tabs.js +0 -207
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.d.ts +0 -49
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +0 -68
- package/lib/cjs/components/tabs/fixtures/comp1.d.ts +0 -23
- package/lib/cjs/components/tabs/fixtures/comp1.js +0 -33
- package/lib/cjs/components/tabs/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/tabs/fixtures/index.js +0 -8
- package/lib/cjs/components/tags/Tags.d.ts +0 -41
- package/lib/cjs/components/tags/Tags.form.d.ts +0 -3
- package/lib/cjs/components/tags/Tags.form.js +0 -16
- package/lib/cjs/components/tags/Tags.js +0 -174
- package/lib/cjs/components/tags/editForm/Tags.edit.data.d.ts +0 -51
- package/lib/cjs/components/tags/editForm/Tags.edit.data.js +0 -39
- package/lib/cjs/components/tags/fixtures/comp1.d.ts +0 -20
- package/lib/cjs/components/tags/fixtures/comp1.js +0 -20
- package/lib/cjs/components/tags/fixtures/comp2.d.ts +0 -10
- package/lib/cjs/components/tags/fixtures/comp2.js +0 -11
- package/lib/cjs/components/tags/fixtures/comp3.d.ts +0 -23
- package/lib/cjs/components/tags/fixtures/comp3.js +0 -20
- package/lib/cjs/components/tags/fixtures/comp4.d.ts +0 -9
- package/lib/cjs/components/tags/fixtures/comp4.js +0 -10
- package/lib/cjs/components/tags/fixtures/comp5.d.ts +0 -24
- package/lib/cjs/components/tags/fixtures/comp5.js +0 -24
- package/lib/cjs/components/tags/fixtures/comp6.d.ts +0 -17
- package/lib/cjs/components/tags/fixtures/comp6.js +0 -20
- package/lib/cjs/components/tags/fixtures/index.d.ts +0 -7
- package/lib/cjs/components/tags/fixtures/index.js +0 -18
- package/lib/cjs/components/tags/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/tags/fixtures/values.js +0 -6
- package/lib/cjs/components/textarea/TextArea.d.ts +0 -37
- package/lib/cjs/components/textarea/TextArea.form.d.ts +0 -3
- package/lib/cjs/components/textarea/TextArea.form.js +0 -21
- package/lib/cjs/components/textarea/TextArea.js +0 -537
- package/lib/cjs/components/textarea/editForm/TextArea.edit.display.d.ts +0 -355
- package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +0 -263
- package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.d.ts +0 -10
- package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.js +0 -22
- package/lib/cjs/components/textarea/fixtures/comp1.d.ts +0 -31
- package/lib/cjs/components/textarea/fixtures/comp1.js +0 -31
- package/lib/cjs/components/textarea/fixtures/comp2.d.ts +0 -29
- package/lib/cjs/components/textarea/fixtures/comp2.js +0 -29
- package/lib/cjs/components/textarea/fixtures/comp3.d.ts +0 -27
- package/lib/cjs/components/textarea/fixtures/comp3.js +0 -29
- package/lib/cjs/components/textarea/fixtures/comp4.d.ts +0 -30
- package/lib/cjs/components/textarea/fixtures/comp4.js +0 -27
- package/lib/cjs/components/textarea/fixtures/index.d.ts +0 -5
- package/lib/cjs/components/textarea/fixtures/index.js +0 -14
- package/lib/cjs/components/textarea/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/textarea/fixtures/values.js +0 -6
- package/lib/cjs/components/textfield/TextField.d.ts +0 -60
- package/lib/cjs/components/textfield/TextField.form.d.ts +0 -3
- package/lib/cjs/components/textfield/TextField.form.js +0 -26
- package/lib/cjs/components/textfield/TextField.js +0 -251
- package/lib/cjs/components/textfield/editForm/TextField.edit.data.d.ts +0 -46
- package/lib/cjs/components/textfield/editForm/TextField.edit.data.js +0 -58
- package/lib/cjs/components/textfield/editForm/TextField.edit.display.d.ts +0 -248
- package/lib/cjs/components/textfield/editForm/TextField.edit.display.js +0 -208
- package/lib/cjs/components/textfield/editForm/TextField.edit.validation.d.ts +0 -10
- package/lib/cjs/components/textfield/editForm/TextField.edit.validation.js +0 -49
- package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
- package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -48
- package/lib/cjs/components/textfield/fixtures/comp1.d.ts +0 -33
- package/lib/cjs/components/textfield/fixtures/comp1.js +0 -33
- package/lib/cjs/components/textfield/fixtures/comp2.d.ts +0 -33
- package/lib/cjs/components/textfield/fixtures/comp2.js +0 -33
- package/lib/cjs/components/textfield/fixtures/comp3.d.ts +0 -33
- package/lib/cjs/components/textfield/fixtures/comp3.js +0 -33
- package/lib/cjs/components/textfield/fixtures/comp4.d.ts +0 -23
- package/lib/cjs/components/textfield/fixtures/comp4.js +0 -27
- package/lib/cjs/components/textfield/fixtures/comp5.d.ts +0 -12
- package/lib/cjs/components/textfield/fixtures/comp5.js +0 -13
- package/lib/cjs/components/textfield/fixtures/comp6.d.ts +0 -25
- package/lib/cjs/components/textfield/fixtures/comp6.js +0 -21
- package/lib/cjs/components/textfield/fixtures/comp7.d.ts +0 -37
- package/lib/cjs/components/textfield/fixtures/comp7.js +0 -38
- package/lib/cjs/components/textfield/fixtures/index.d.ts +0 -9
- package/lib/cjs/components/textfield/fixtures/index.js +0 -22
- package/lib/cjs/components/textfield/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/textfield/fixtures/values.js +0 -7
- package/lib/cjs/components/time/Time.d.ts +0 -27
- package/lib/cjs/components/time/Time.form.d.ts +0 -3
- package/lib/cjs/components/time/Time.form.js +0 -21
- package/lib/cjs/components/time/Time.js +0 -153
- package/lib/cjs/components/time/editForm/Time.edit.data.d.ts +0 -10
- package/lib/cjs/components/time/editForm/Time.edit.data.js +0 -13
- package/lib/cjs/components/time/editForm/Time.edit.display.d.ts +0 -52
- package/lib/cjs/components/time/editForm/Time.edit.display.js +0 -42
- package/lib/cjs/components/time/fixtures/comp1.d.ts +0 -24
- package/lib/cjs/components/time/fixtures/comp1.js +0 -24
- package/lib/cjs/components/time/fixtures/comp2.d.ts +0 -10
- package/lib/cjs/components/time/fixtures/comp2.js +0 -11
- package/lib/cjs/components/time/fixtures/comp3.d.ts +0 -15
- package/lib/cjs/components/time/fixtures/comp3.js +0 -18
- package/lib/cjs/components/time/fixtures/index.d.ts +0 -6
- package/lib/cjs/components/time/fixtures/index.js +0 -16
- package/lib/cjs/components/time/fixtures/timeForm.d.ts +0 -47
- package/lib/cjs/components/time/fixtures/timeForm.js +0 -52
- package/lib/cjs/components/time/fixtures/timeForm2.d.ts +0 -38
- package/lib/cjs/components/time/fixtures/timeForm2.js +0 -44
- package/lib/cjs/components/time/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/time/fixtures/values.js +0 -7
- package/lib/cjs/components/tree/Node.d.ts +0 -55
- package/lib/cjs/components/tree/Node.js +0 -185
- package/lib/cjs/components/tree/Tree.d.ts +0 -48
- package/lib/cjs/components/tree/Tree.form.d.ts +0 -3
- package/lib/cjs/components/tree/Tree.form.js +0 -21
- package/lib/cjs/components/tree/Tree.js +0 -383
- package/lib/cjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
- package/lib/cjs/components/tree/editForm/Tree.edit.data.js +0 -9
- package/lib/cjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
- package/lib/cjs/components/tree/editForm/Tree.edit.display.js +0 -12
- package/lib/cjs/components/tree/fixtures/comp1.d.ts +0 -23
- package/lib/cjs/components/tree/fixtures/comp1.js +0 -24
- package/lib/cjs/components/tree/fixtures/comp2.d.ts +0 -116
- package/lib/cjs/components/tree/fixtures/comp2.js +0 -82
- package/lib/cjs/components/tree/fixtures/comp3.d.ts +0 -24
- package/lib/cjs/components/tree/fixtures/comp3.js +0 -25
- package/lib/cjs/components/tree/fixtures/comp4.d.ts +0 -42
- package/lib/cjs/components/tree/fixtures/comp4.js +0 -47
- package/lib/cjs/components/tree/fixtures/index.d.ts +0 -5
- package/lib/cjs/components/tree/fixtures/index.js +0 -14
- package/lib/cjs/components/unknown/Unknown.d.ts +0 -28
- package/lib/cjs/components/unknown/Unknown.form.d.ts +0 -34
- package/lib/cjs/components/unknown/Unknown.form.js +0 -25
- package/lib/cjs/components/unknown/Unknown.js +0 -30
- package/lib/cjs/components/unknown/editForm/Unknown.edit.display.d.ts +0 -24
- package/lib/cjs/components/unknown/editForm/Unknown.edit.display.js +0 -27
- package/lib/cjs/components/unknown/fixtures/comp1.d.ts +0 -7
- package/lib/cjs/components/unknown/fixtures/comp1.js +0 -8
- package/lib/cjs/components/unknown/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/unknown/fixtures/index.js +0 -8
- package/lib/cjs/components/url/Url.d.ts +0 -3
- package/lib/cjs/components/url/Url.form.d.ts +0 -3
- package/lib/cjs/components/url/Url.form.js +0 -26
- package/lib/cjs/components/url/Url.js +0 -39
- package/lib/cjs/components/url/editForm/Url.edit.data.d.ts +0 -5
- package/lib/cjs/components/url/editForm/Url.edit.data.js +0 -8
- package/lib/cjs/components/url/editForm/Url.edit.display.d.ts +0 -5
- package/lib/cjs/components/url/editForm/Url.edit.display.js +0 -20
- package/lib/cjs/components/url/editForm/Url.edit.validation.d.ts +0 -5
- package/lib/cjs/components/url/editForm/Url.edit.validation.js +0 -12
- package/lib/cjs/components/url/fixtures/comp1.d.ts +0 -26
- package/lib/cjs/components/url/fixtures/comp1.js +0 -26
- package/lib/cjs/components/url/fixtures/comp2.d.ts +0 -26
- package/lib/cjs/components/url/fixtures/comp2.js +0 -23
- package/lib/cjs/components/url/fixtures/index.d.ts +0 -3
- package/lib/cjs/components/url/fixtures/index.js +0 -10
- package/lib/cjs/components/url/fixtures/values.d.ts +0 -2
- package/lib/cjs/components/url/fixtures/values.js +0 -6
- package/lib/cjs/components/well/Well.d.ts +0 -15
- package/lib/cjs/components/well/Well.form.d.ts +0 -3
- package/lib/cjs/components/well/Well.form.js +0 -16
- package/lib/cjs/components/well/Well.js +0 -45
- package/lib/cjs/components/well/editForm/Well.edit.display.d.ts +0 -5
- package/lib/cjs/components/well/editForm/Well.edit.display.js +0 -32
- package/lib/cjs/components/well/fixtures/comp1.d.ts +0 -43
- package/lib/cjs/components/well/fixtures/comp1.js +0 -77
- package/lib/cjs/components/well/fixtures/index.d.ts +0 -2
- package/lib/cjs/components/well/fixtures/index.js +0 -8
- package/lib/cjs/displays/Displays.d.ts +0 -18
- package/lib/cjs/displays/Displays.js +0 -29
- package/lib/cjs/displays/index.d.ts +0 -2
- package/lib/cjs/displays/index.js +0 -7
- package/lib/cjs/formio.embed.d.ts +0 -2
- package/lib/cjs/formio.embed.js +0 -100
- package/lib/cjs/formio.form.d.ts +0 -23
- package/lib/cjs/formio.form.js +0 -167
- package/lib/cjs/i18n.d.ts +0 -13
- package/lib/cjs/i18n.js +0 -19
- package/lib/cjs/index.d.ts +0 -4
- package/lib/cjs/index.js +0 -34
- package/lib/cjs/licenses/Licenses.d.ts +0 -7
- package/lib/cjs/licenses/Licenses.js +0 -22
- package/lib/cjs/licenses/index.d.ts +0 -2
- package/lib/cjs/licenses/index.js +0 -7
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/pdf.image.d.ts +0 -2
- package/lib/cjs/pdf.image.js +0 -94
- package/lib/cjs/providers/Providers.d.ts +0 -84
- package/lib/cjs/providers/Providers.js +0 -34
- package/lib/cjs/providers/address/AddressProvider.d.ts +0 -17
- package/lib/cjs/providers/address/AddressProvider.js +0 -61
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +0 -12
- package/lib/cjs/providers/address/AzureAddressProvider.js +0 -31
- package/lib/cjs/providers/address/CustomAddressProvider.d.ts +0 -7
- package/lib/cjs/providers/address/CustomAddressProvider.js +0 -26
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +0 -18
- package/lib/cjs/providers/address/GoogleAddressProvider.js +0 -117
- package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +0 -11
- package/lib/cjs/providers/address/NominatimAddressProvider.js +0 -31
- package/lib/cjs/providers/address/index.d.ts +0 -6
- package/lib/cjs/providers/address/index.js +0 -12
- package/lib/cjs/providers/auth/index.d.ts +0 -2
- package/lib/cjs/providers/auth/index.js +0 -3
- package/lib/cjs/providers/index.d.ts +0 -2
- package/lib/cjs/providers/index.js +0 -7
- package/lib/cjs/providers/processor/fileProcessor.d.ts +0 -2
- package/lib/cjs/providers/processor/fileProcessor.js +0 -40
- package/lib/cjs/providers/storage/azure.d.ts +0 -17
- package/lib/cjs/providers/storage/azure.js +0 -35
- package/lib/cjs/providers/storage/base64.d.ts +0 -10
- package/lib/cjs/providers/storage/base64.js +0 -31
- package/lib/cjs/providers/storage/dropbox.d.ts +0 -8
- package/lib/cjs/providers/storage/dropbox.js +0 -57
- package/lib/cjs/providers/storage/googleDrive.d.ts +0 -9
- package/lib/cjs/providers/storage/googleDrive.js +0 -60
- package/lib/cjs/providers/storage/index.d.ts +0 -15
- package/lib/cjs/providers/storage/index.js +0 -19
- package/lib/cjs/providers/storage/indexeddb.d.ts +0 -11
- package/lib/cjs/providers/storage/indexeddb.js +0 -120
- package/lib/cjs/providers/storage/s3.d.ts +0 -18
- package/lib/cjs/providers/storage/s3.js +0 -53
- package/lib/cjs/providers/storage/uploadAdapter.d.ts +0 -1
- package/lib/cjs/providers/storage/uploadAdapter.js +0 -57
- package/lib/cjs/providers/storage/url.d.ts +0 -11
- package/lib/cjs/providers/storage/url.js +0 -142
- package/lib/cjs/providers/storage/xhr.d.ts +0 -7
- package/lib/cjs/providers/storage/xhr.js +0 -100
- package/lib/cjs/templates/Templates.d.ts +0 -11
- package/lib/cjs/templates/Templates.js +0 -47
- package/lib/cjs/templates/index.d.ts +0 -229
- package/lib/cjs/templates/index.js +0 -9
- package/lib/cjs/translations/en.d.ts +0 -66
- package/lib/cjs/translations/en.js +0 -67
- package/lib/cjs/utils/ChoicesWrapper.d.ts +0 -38
- package/lib/cjs/utils/ChoicesWrapper.js +0 -194
- package/lib/cjs/utils/Evaluator.d.ts +0 -4
- package/lib/cjs/utils/Evaluator.js +0 -69
- package/lib/cjs/utils/builder.d.ts +0 -22
- package/lib/cjs/utils/builder.js +0 -84
- package/lib/cjs/utils/calendarUtils.d.ts +0 -41
- package/lib/cjs/utils/calendarUtils.js +0 -136
- package/lib/cjs/utils/conditionOperators/ConditionOperator.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/ConditionOperator.js +0 -29
- package/lib/cjs/utils/conditionOperators/DateGreaterThan.d.ts +0 -13
- package/lib/cjs/utils/conditionOperators/DateGreaterThan.js +0 -37
- package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.js +0 -18
- package/lib/cjs/utils/conditionOperators/DateLessThan.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/DateLessThan.js +0 -18
- package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.js +0 -18
- package/lib/cjs/utils/conditionOperators/EndsWith.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/EndsWith.js +0 -19
- package/lib/cjs/utils/conditionOperators/GreaterThan.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/GreaterThan.js +0 -19
- package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.js +0 -19
- package/lib/cjs/utils/conditionOperators/Includes.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/Includes.js +0 -19
- package/lib/cjs/utils/conditionOperators/IsDateEqual.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/IsDateEqual.js +0 -18
- package/lib/cjs/utils/conditionOperators/IsEmptyValue.d.ts +0 -9
- package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +0 -30
- package/lib/cjs/utils/conditionOperators/IsEqualTo.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/IsEqualTo.js +0 -30
- package/lib/cjs/utils/conditionOperators/IsNotDateEqual.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/IsNotDateEqual.js +0 -18
- package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.js +0 -18
- package/lib/cjs/utils/conditionOperators/IsNotEqualTo.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/IsNotEqualTo.js +0 -19
- package/lib/cjs/utils/conditionOperators/LessThan.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/LessThan.js +0 -19
- package/lib/cjs/utils/conditionOperators/LessThanOrEqual.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/LessThanOrEqual.js +0 -19
- package/lib/cjs/utils/conditionOperators/NotIncludes.d.ts +0 -4
- package/lib/cjs/utils/conditionOperators/NotIncludes.js +0 -18
- package/lib/cjs/utils/conditionOperators/StartsWith.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/StartsWith.js +0 -19
- package/lib/cjs/utils/conditionOperators/index.d.ts +0 -7
- package/lib/cjs/utils/conditionOperators/index.js +0 -44
- package/lib/cjs/utils/formUtils.d.ts +0 -173
- package/lib/cjs/utils/formUtils.js +0 -583
- package/lib/cjs/utils/i18n.d.ts +0 -16
- package/lib/cjs/utils/i18n.js +0 -88
- package/lib/cjs/utils/index.d.ts +0 -2
- package/lib/cjs/utils/index.js +0 -30
- package/lib/cjs/utils/jsonlogic/operators.d.ts +0 -1
- package/lib/cjs/utils/jsonlogic/operators.js +0 -265
- package/lib/cjs/utils/utils.d.ts +0 -374
- package/lib/cjs/utils/utils.js +0 -1487
- package/lib/cjs/validator/Rules.d.ts +0 -53
- package/lib/cjs/validator/Rules.js +0 -22
- package/lib/cjs/validator/Validator.d.ts +0 -228
- package/lib/cjs/validator/Validator.js +0 -1113
- package/lib/cjs/validator/conjunctions/index.d.ts +0 -7
- package/lib/cjs/validator/conjunctions/index.js +0 -18
- package/lib/cjs/validator/operators/index.d.ts +0 -7
- package/lib/cjs/validator/operators/index.js +0 -18
- package/lib/cjs/validator/quickRules/index.d.ts +0 -7
- package/lib/cjs/validator/quickRules/index.js +0 -18
- package/lib/cjs/validator/rules/Custom.d.ts +0 -5
- package/lib/cjs/validator/rules/Custom.js +0 -30
- package/lib/cjs/validator/rules/Date.d.ts +0 -5
- package/lib/cjs/validator/rules/Date.js +0 -25
- package/lib/cjs/validator/rules/Day.d.ts +0 -5
- package/lib/cjs/validator/rules/Day.js +0 -58
- package/lib/cjs/validator/rules/Email.d.ts +0 -5
- package/lib/cjs/validator/rules/Email.js +0 -24
- package/lib/cjs/validator/rules/JSON.d.ts +0 -5
- package/lib/cjs/validator/rules/JSON.js +0 -29
- package/lib/cjs/validator/rules/Mask.d.ts +0 -5
- package/lib/cjs/validator/rules/Mask.js +0 -32
- package/lib/cjs/validator/rules/Max.d.ts +0 -5
- package/lib/cjs/validator/rules/Max.js +0 -21
- package/lib/cjs/validator/rules/MaxDate.d.ts +0 -5
- package/lib/cjs/validator/rules/MaxDate.js +0 -34
- package/lib/cjs/validator/rules/MaxLength.d.ts +0 -5
- package/lib/cjs/validator/rules/MaxLength.js +0 -20
- package/lib/cjs/validator/rules/MaxWords.d.ts +0 -5
- package/lib/cjs/validator/rules/MaxWords.js +0 -20
- package/lib/cjs/validator/rules/MaxYear.d.ts +0 -5
- package/lib/cjs/validator/rules/MaxYear.js +0 -22
- package/lib/cjs/validator/rules/Min.d.ts +0 -5
- package/lib/cjs/validator/rules/Min.js +0 -21
- package/lib/cjs/validator/rules/MinDate.d.ts +0 -5
- package/lib/cjs/validator/rules/MinDate.js +0 -30
- package/lib/cjs/validator/rules/MinLength.d.ts +0 -5
- package/lib/cjs/validator/rules/MinLength.js +0 -20
- package/lib/cjs/validator/rules/MinWords.d.ts +0 -5
- package/lib/cjs/validator/rules/MinWords.js +0 -20
- package/lib/cjs/validator/rules/MinYear.d.ts +0 -5
- package/lib/cjs/validator/rules/MinYear.js +0 -22
- package/lib/cjs/validator/rules/Pattern.d.ts +0 -5
- package/lib/cjs/validator/rules/Pattern.js +0 -20
- package/lib/cjs/validator/rules/Required.d.ts +0 -5
- package/lib/cjs/validator/rules/Required.js +0 -17
- package/lib/cjs/validator/rules/Rule.d.ts +0 -7
- package/lib/cjs/validator/rules/Rule.js +0 -12
- package/lib/cjs/validator/rules/Select.d.ts +0 -5
- package/lib/cjs/validator/rules/Select.js +0 -95
- package/lib/cjs/validator/rules/Time.d.ts +0 -5
- package/lib/cjs/validator/rules/Time.js +0 -19
- package/lib/cjs/validator/rules/Unique.d.ts +0 -5
- package/lib/cjs/validator/rules/Unique.js +0 -69
- package/lib/cjs/validator/rules/Url.d.ts +0 -5
- package/lib/cjs/validator/rules/Url.js +0 -23
- package/lib/cjs/validator/rules/index.d.ts +0 -47
- package/lib/cjs/validator/rules/index.js +0 -51
- package/lib/cjs/validator/transformers/index.d.ts +0 -7
- package/lib/cjs/validator/transformers/index.js +0 -18
- package/lib/cjs/validator/valueSources/index.d.ts +0 -7
- package/lib/cjs/validator/valueSources/index.js +0 -18
- package/lib/cjs/widgets/CalendarWidget.d.ts +0 -97
- package/lib/cjs/widgets/CalendarWidget.js +0 -468
- package/lib/cjs/widgets/InputWidget.d.ts +0 -24
- package/lib/cjs/widgets/InputWidget.js +0 -74
- package/lib/cjs/widgets/index.d.ts +0 -7
- package/lib/cjs/widgets/index.js +0 -11
- package/lib/mjs/CDN.d.ts +0 -29
- package/lib/mjs/CDN.js +0 -75
- package/lib/mjs/Element.d.ts +0 -255
- package/lib/mjs/Element.js +0 -571
- package/lib/mjs/Embed.d.ts +0 -42
- package/lib/mjs/Embed.js +0 -293
- package/lib/mjs/EventEmitter.d.ts +0 -7
- package/lib/mjs/EventEmitter.js +0 -26
- package/lib/mjs/Form.d.ts +0 -93
- package/lib/mjs/Form.js +0 -350
- package/lib/mjs/FormBuilder.d.ts +0 -6
- package/lib/mjs/FormBuilder.js +0 -34
- package/lib/mjs/Formio.d.ts +0 -2
- package/lib/mjs/Formio.js +0 -89
- package/lib/mjs/PDF.d.ts +0 -40
- package/lib/mjs/PDF.js +0 -284
- package/lib/mjs/PDFBuilder.d.ts +0 -55
- package/lib/mjs/PDFBuilder.js +0 -473
- package/lib/mjs/Webform.d.ts +0 -405
- package/lib/mjs/Webform.js +0 -1431
- package/lib/mjs/WebformBuilder.d.ts +0 -126
- package/lib/mjs/WebformBuilder.js +0 -1576
- package/lib/mjs/Wizard.d.ts +0 -96
- package/lib/mjs/Wizard.js +0 -904
- package/lib/mjs/WizardBuilder.d.ts +0 -48
- package/lib/mjs/WizardBuilder.js +0 -262
- package/lib/mjs/addons/FormioAddon.d.ts +0 -19
- package/lib/mjs/addons/FormioAddon.js +0 -30
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +0 -717
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +0 -590
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +0 -311
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +0 -388
- package/lib/mjs/addons/index.d.ts +0 -625
- package/lib/mjs/addons/index.js +0 -19
- package/lib/mjs/builders/Builders.d.ts +0 -18
- package/lib/mjs/builders/Builders.js +0 -24
- package/lib/mjs/builders/index.d.ts +0 -2
- package/lib/mjs/builders/index.js +0 -2
- package/lib/mjs/components/Components.d.ts +0 -258
- package/lib/mjs/components/Components.js +0 -75
- package/lib/mjs/components/_classes/component/Component.d.ts +0 -798
- package/lib/mjs/components/_classes/component/Component.form.d.ts +0 -3
- package/lib/mjs/components/_classes/component/Component.form.js +0 -71
- package/lib/mjs/components/_classes/component/Component.js +0 -3164
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +0 -645
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +0 -39
- package/lib/mjs/components/_classes/component/editForm/Component.edit.api.d.ts +0 -42
- package/lib/mjs/components/_classes/component/editForm/Component.edit.api.js +0 -38
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +0 -113
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +0 -50
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -219
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +0 -156
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.d.ts +0 -160
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -199
- package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.d.ts +0 -44
- package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.js +0 -77
- package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.d.ts +0 -368
- package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +0 -410
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +0 -140
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +0 -204
- package/lib/mjs/components/_classes/component/editForm/utils.d.ts +0 -83
- package/lib/mjs/components/_classes/component/editForm/utils.js +0 -132
- package/lib/mjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
- package/lib/mjs/components/_classes/component/fixtures/comp1.js +0 -31
- package/lib/mjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
- package/lib/mjs/components/_classes/component/fixtures/comp2.js +0 -31
- package/lib/mjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
- package/lib/mjs/components/_classes/component/fixtures/comp3.js +0 -12
- package/lib/mjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
- package/lib/mjs/components/_classes/component/fixtures/comp4.js +0 -16
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +0 -5
- package/lib/mjs/components/_classes/component/fixtures/index.js +0 -5
- package/lib/mjs/components/_classes/componentModal/ComponentModal.d.ts +0 -46
- package/lib/mjs/components/_classes/componentModal/ComponentModal.js +0 -177
- package/lib/mjs/components/_classes/field/Field.d.ts +0 -5
- package/lib/mjs/components/_classes/field/Field.js +0 -34
- package/lib/mjs/components/_classes/input/Input.d.ts +0 -42
- package/lib/mjs/components/_classes/input/Input.js +0 -296
- package/lib/mjs/components/_classes/list/ListComponent.d.ts +0 -18
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +0 -3
- package/lib/mjs/components/_classes/list/ListComponent.form.js +0 -10
- package/lib/mjs/components/_classes/list/ListComponent.js +0 -249
- package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +0 -183
- package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.js +0 -117
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +0 -29
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +0 -249
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +0 -133
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +0 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -13
- package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -686
- package/lib/mjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
- package/lib/mjs/components/_classes/nested/fixtures/comp1.js +0 -14
- package/lib/mjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
- package/lib/mjs/components/_classes/nested/fixtures/comp2.js +0 -225
- package/lib/mjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
- package/lib/mjs/components/_classes/nested/fixtures/comp3.js +0 -27
- package/lib/mjs/components/_classes/nested/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/_classes/nested/fixtures/index.js +0 -3
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +0 -15
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +0 -178
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -12
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +0 -128
- package/lib/mjs/components/address/Address.d.ts +0 -66
- package/lib/mjs/components/address/Address.form.d.ts +0 -3
- package/lib/mjs/components/address/Address.form.js +0 -22
- package/lib/mjs/components/address/Address.js +0 -541
- package/lib/mjs/components/address/editForm/Address.edit.data.d.ts +0 -31
- package/lib/mjs/components/address/editForm/Address.edit.data.js +0 -21
- package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +0 -49
- package/lib/mjs/components/address/editForm/Address.edit.display.js +0 -42
- package/lib/mjs/components/address/editForm/Address.edit.provider.d.ts +0 -164
- package/lib/mjs/components/address/editForm/Address.edit.provider.js +0 -151
- package/lib/mjs/components/address/fixtures/comp1.d.ts +0 -34
- package/lib/mjs/components/address/fixtures/comp1.js +0 -69
- package/lib/mjs/components/address/fixtures/comp2.d.ts +0 -62
- package/lib/mjs/components/address/fixtures/comp2.js +0 -101
- package/lib/mjs/components/address/fixtures/comp3.d.ts +0 -44
- package/lib/mjs/components/address/fixtures/comp3.js +0 -83
- package/lib/mjs/components/address/fixtures/comp4.d.ts +0 -56
- package/lib/mjs/components/address/fixtures/comp4.js +0 -91
- package/lib/mjs/components/address/fixtures/index.d.ts +0 -5
- package/lib/mjs/components/address/fixtures/index.js +0 -5
- package/lib/mjs/components/address/fixtures/values.d.ts +0 -22
- package/lib/mjs/components/address/fixtures/values.js +0 -17
- package/lib/mjs/components/alert/Alert.d.ts +0 -30
- package/lib/mjs/components/alert/Alert.js +0 -176
- package/lib/mjs/components/builder.d.ts +0 -2
- package/lib/mjs/components/builder.js +0 -86
- package/lib/mjs/components/button/Button.d.ts +0 -45
- package/lib/mjs/components/button/Button.form.d.ts +0 -3
- package/lib/mjs/components/button/Button.form.js +0 -18
- package/lib/mjs/components/button/Button.js +0 -460
- package/lib/mjs/components/button/editForm/Button.edit.display.d.ts +0 -360
- package/lib/mjs/components/button/editForm/Button.edit.display.js +0 -247
- package/lib/mjs/components/button/fixtures/comp1.d.ts +0 -15
- package/lib/mjs/components/button/fixtures/comp1.js +0 -14
- package/lib/mjs/components/button/fixtures/comp2.d.ts +0 -25
- package/lib/mjs/components/button/fixtures/comp2.js +0 -55
- package/lib/mjs/components/button/fixtures/comp3.d.ts +0 -113
- package/lib/mjs/components/button/fixtures/comp3.js +0 -82
- package/lib/mjs/components/button/fixtures/index.d.ts +0 -4
- package/lib/mjs/components/button/fixtures/index.js +0 -4
- package/lib/mjs/components/button/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/button/fixtures/values.js +0 -4
- package/lib/mjs/components/checkbox/Checkbox.d.ts +0 -77
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +0 -3
- package/lib/mjs/components/checkbox/Checkbox.form.js +0 -20
- package/lib/mjs/components/checkbox/Checkbox.js +0 -219
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +0 -5
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.js +0 -6
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +0 -75
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.js +0 -74
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +0 -5
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.js +0 -10
- package/lib/mjs/components/checkbox/fixtures/comp1.d.ts +0 -24
- package/lib/mjs/components/checkbox/fixtures/comp1.js +0 -22
- package/lib/mjs/components/checkbox/fixtures/comp2.d.ts +0 -12
- package/lib/mjs/components/checkbox/fixtures/comp2.js +0 -11
- package/lib/mjs/components/checkbox/fixtures/comp3.d.ts +0 -15
- package/lib/mjs/components/checkbox/fixtures/comp3.js +0 -14
- package/lib/mjs/components/checkbox/fixtures/comp4.d.ts +0 -46
- package/lib/mjs/components/checkbox/fixtures/comp4.js +0 -37
- package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
- package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.js +0 -23
- package/lib/mjs/components/checkbox/fixtures/index.d.ts +0 -6
- package/lib/mjs/components/checkbox/fixtures/index.js +0 -6
- package/lib/mjs/components/checkbox/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/checkbox/fixtures/values.js +0 -4
- package/lib/mjs/components/columns/Columns.d.ts +0 -27
- package/lib/mjs/components/columns/Columns.form.d.ts +0 -3
- package/lib/mjs/components/columns/Columns.form.js +0 -10
- package/lib/mjs/components/columns/Columns.js +0 -153
- package/lib/mjs/components/columns/editForm/Columns.edit.display.d.ts +0 -58
- package/lib/mjs/components/columns/editForm/Columns.edit.display.js +0 -98
- package/lib/mjs/components/columns/fixtures/comp1.d.ts +0 -45
- package/lib/mjs/components/columns/fixtures/comp1.js +0 -83
- package/lib/mjs/components/columns/fixtures/comp2.d.ts +0 -24
- package/lib/mjs/components/columns/fixtures/comp2.js +0 -125
- package/lib/mjs/components/columns/fixtures/comp3.d.ts +0 -45
- package/lib/mjs/components/columns/fixtures/comp3.js +0 -51
- package/lib/mjs/components/columns/fixtures/index.d.ts +0 -4
- package/lib/mjs/components/columns/fixtures/index.js +0 -4
- package/lib/mjs/components/container/Container.d.ts +0 -15
- package/lib/mjs/components/container/Container.form.d.ts +0 -3
- package/lib/mjs/components/container/Container.form.js +0 -15
- package/lib/mjs/components/container/Container.js +0 -76
- package/lib/mjs/components/container/editForm/Container.edit.data.d.ts +0 -5
- package/lib/mjs/components/container/editForm/Container.edit.data.js +0 -14
- package/lib/mjs/components/container/editForm/Container.edit.display.d.ts +0 -5
- package/lib/mjs/components/container/editForm/Container.edit.display.js +0 -18
- package/lib/mjs/components/container/fixtures/comp1.d.ts +0 -49
- package/lib/mjs/components/container/fixtures/comp1.js +0 -80
- package/lib/mjs/components/container/fixtures/comp2.d.ts +0 -30
- package/lib/mjs/components/container/fixtures/comp2.js +0 -32
- package/lib/mjs/components/container/fixtures/comp3.d.ts +0 -77
- package/lib/mjs/components/container/fixtures/comp3.js +0 -55
- package/lib/mjs/components/container/fixtures/index.d.ts +0 -4
- package/lib/mjs/components/container/fixtures/index.js +0 -4
- package/lib/mjs/components/content/Content.d.ts +0 -17
- package/lib/mjs/components/content/Content.form.d.ts +0 -3
- package/lib/mjs/components/content/Content.form.js +0 -37
- package/lib/mjs/components/content/Content.js +0 -71
- package/lib/mjs/components/content/editForm/Content.edit.display.d.ts +0 -18
- package/lib/mjs/components/content/editForm/Content.edit.display.js +0 -46
- package/lib/mjs/components/content/editForm/Content.edit.logic.d.ts +0 -48
- package/lib/mjs/components/content/editForm/Content.edit.logic.js +0 -98
- package/lib/mjs/components/content/fixtures/comp1.d.ts +0 -13
- package/lib/mjs/components/content/fixtures/comp1.js +0 -12
- package/lib/mjs/components/content/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/content/fixtures/index.js +0 -2
- package/lib/mjs/components/currency/Currency.d.ts +0 -8
- package/lib/mjs/components/currency/Currency.form.d.ts +0 -3
- package/lib/mjs/components/currency/Currency.form.js +0 -40
- package/lib/mjs/components/currency/Currency.js +0 -174
- package/lib/mjs/components/currency/editForm/Currency.edit.data.d.ts +0 -29
- package/lib/mjs/components/currency/editForm/Currency.edit.data.js +0 -190
- package/lib/mjs/components/currency/editForm/Currency.edit.display.d.ts +0 -18
- package/lib/mjs/components/currency/editForm/Currency.edit.display.js +0 -38
- package/lib/mjs/components/currency/fixtures/comp1.d.ts +0 -31
- package/lib/mjs/components/currency/fixtures/comp1.js +0 -29
- package/lib/mjs/components/currency/fixtures/comp2.d.ts +0 -20
- package/lib/mjs/components/currency/fixtures/comp2.js +0 -18
- package/lib/mjs/components/currency/fixtures/comp3.d.ts +0 -13
- package/lib/mjs/components/currency/fixtures/comp3.js +0 -12
- package/lib/mjs/components/currency/fixtures/comp4.d.ts +0 -17
- package/lib/mjs/components/currency/fixtures/comp4.js +0 -18
- package/lib/mjs/components/currency/fixtures/index.d.ts +0 -5
- package/lib/mjs/components/currency/fixtures/index.js +0 -5
- package/lib/mjs/components/currency/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/currency/fixtures/values.js +0 -6
- package/lib/mjs/components/datagrid/DataGrid.d.ts +0 -88
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +0 -3
- package/lib/mjs/components/datagrid/DataGrid.form.js +0 -20
- package/lib/mjs/components/datagrid/DataGrid.js +0 -644
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +0 -5
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.js +0 -6
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +0 -283
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.js +0 -147
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +0 -20
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.js +0 -24
- package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
- package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -40
- 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 +0 -1
- package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
- package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -79
- package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
- package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -73
- package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -197
- package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -176
- package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
- package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.js +0 -67
- package/lib/mjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
- package/lib/mjs/components/datagrid/fixtures/comp-with-logic.js +0 -178
- package/lib/mjs/components/datagrid/fixtures/comp1.d.ts +0 -93
- package/lib/mjs/components/datagrid/fixtures/comp1.js +0 -113
- package/lib/mjs/components/datagrid/fixtures/comp2.d.ts +0 -18
- package/lib/mjs/components/datagrid/fixtures/comp2.js +0 -27
- package/lib/mjs/components/datagrid/fixtures/comp3.d.ts +0 -14
- package/lib/mjs/components/datagrid/fixtures/comp3.js +0 -21
- package/lib/mjs/components/datagrid/fixtures/comp4.d.ts +0 -27
- package/lib/mjs/components/datagrid/fixtures/comp4.js +0 -26
- package/lib/mjs/components/datagrid/fixtures/comp5.d.ts +0 -67
- package/lib/mjs/components/datagrid/fixtures/comp5.js +0 -75
- package/lib/mjs/components/datagrid/fixtures/comp6.d.ts +0 -567
- package/lib/mjs/components/datagrid/fixtures/comp6.js +0 -294
- package/lib/mjs/components/datagrid/fixtures/comp7.d.ts +0 -28
- package/lib/mjs/components/datagrid/fixtures/comp7.js +0 -33
- package/lib/mjs/components/datagrid/fixtures/comp8.d.ts +0 -35
- package/lib/mjs/components/datagrid/fixtures/comp8.js +0 -35
- package/lib/mjs/components/datagrid/fixtures/index.d.ts +0 -15
- package/lib/mjs/components/datagrid/fixtures/index.js +0 -15
- package/lib/mjs/components/datamap/DataMap.d.ts +0 -36
- package/lib/mjs/components/datamap/DataMap.form.d.ts +0 -3
- package/lib/mjs/components/datamap/DataMap.form.js +0 -15
- package/lib/mjs/components/datamap/DataMap.js +0 -295
- package/lib/mjs/components/datamap/editForm/DataMap.edit.data.d.ts +0 -5
- package/lib/mjs/components/datamap/editForm/DataMap.edit.data.js +0 -10
- package/lib/mjs/components/datamap/editForm/DataMap.edit.display.d.ts +0 -30
- package/lib/mjs/components/datamap/editForm/DataMap.edit.display.js +0 -46
- package/lib/mjs/components/datamap/fixtures/comp1.d.ts +0 -18
- package/lib/mjs/components/datamap/fixtures/comp1.js +0 -13
- package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
- package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -83
- package/lib/mjs/components/datamap/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/datamap/fixtures/index.js +0 -3
- package/lib/mjs/components/datetime/DateTime.d.ts +0 -39
- package/lib/mjs/components/datetime/DateTime.form.d.ts +0 -3
- package/lib/mjs/components/datetime/DateTime.form.js +0 -34
- package/lib/mjs/components/datetime/DateTime.js +0 -187
- package/lib/mjs/components/datetime/editForm/DateTime.edit.data.d.ts +0 -24
- package/lib/mjs/components/datetime/editForm/DateTime.edit.data.js +0 -21
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +0 -61
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +0 -70
- package/lib/mjs/components/datetime/editForm/DateTime.edit.display.d.ts +0 -128
- package/lib/mjs/components/datetime/editForm/DateTime.edit.display.js +0 -98
- package/lib/mjs/components/datetime/editForm/DateTime.edit.time.d.ts +0 -9
- package/lib/mjs/components/datetime/editForm/DateTime.edit.time.js +0 -34
- package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.d.ts +0 -40
- package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +0 -82
- package/lib/mjs/components/datetime/fixtures/comp1.d.ts +0 -45
- package/lib/mjs/components/datetime/fixtures/comp1.js +0 -42
- package/lib/mjs/components/datetime/fixtures/comp10.d.ts +0 -102
- package/lib/mjs/components/datetime/fixtures/comp10.js +0 -84
- package/lib/mjs/components/datetime/fixtures/comp11.d.ts +0 -58
- package/lib/mjs/components/datetime/fixtures/comp11.js +0 -53
- package/lib/mjs/components/datetime/fixtures/comp12.d.ts +0 -57
- package/lib/mjs/components/datetime/fixtures/comp12.js +0 -53
- package/lib/mjs/components/datetime/fixtures/comp2.d.ts +0 -42
- package/lib/mjs/components/datetime/fixtures/comp2.js +0 -41
- package/lib/mjs/components/datetime/fixtures/comp3.d.ts +0 -51
- package/lib/mjs/components/datetime/fixtures/comp3.js +0 -38
- package/lib/mjs/components/datetime/fixtures/comp5.d.ts +0 -57
- package/lib/mjs/components/datetime/fixtures/comp5.js +0 -46
- package/lib/mjs/components/datetime/fixtures/comp6.d.ts +0 -55
- package/lib/mjs/components/datetime/fixtures/comp6.js +0 -47
- package/lib/mjs/components/datetime/fixtures/comp7.d.ts +0 -59
- package/lib/mjs/components/datetime/fixtures/comp7.js +0 -51
- package/lib/mjs/components/datetime/fixtures/comp8.d.ts +0 -59
- package/lib/mjs/components/datetime/fixtures/comp8.js +0 -50
- package/lib/mjs/components/datetime/fixtures/comp9.d.ts +0 -64
- package/lib/mjs/components/datetime/fixtures/comp9.js +0 -93
- package/lib/mjs/components/datetime/fixtures/index.d.ts +0 -12
- package/lib/mjs/components/datetime/fixtures/index.js +0 -12
- package/lib/mjs/components/datetime/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/datetime/fixtures/values.js +0 -4
- package/lib/mjs/components/day/Day.d.ts +0 -163
- package/lib/mjs/components/day/Day.form.d.ts +0 -3
- package/lib/mjs/components/day/Day.form.js +0 -41
- package/lib/mjs/components/day/Day.js +0 -568
- package/lib/mjs/components/day/editForm/Day.edit.data.d.ts +0 -5
- package/lib/mjs/components/day/editForm/Day.edit.data.js +0 -6
- package/lib/mjs/components/day/editForm/Day.edit.day.d.ts +0 -40
- package/lib/mjs/components/day/editForm/Day.edit.day.js +0 -46
- package/lib/mjs/components/day/editForm/Day.edit.display.d.ts +0 -40
- package/lib/mjs/components/day/editForm/Day.edit.display.js +0 -44
- package/lib/mjs/components/day/editForm/Day.edit.month.d.ts +0 -40
- package/lib/mjs/components/day/editForm/Day.edit.month.js +0 -38
- package/lib/mjs/components/day/editForm/Day.edit.validation.d.ts +0 -29
- package/lib/mjs/components/day/editForm/Day.edit.validation.js +0 -52
- package/lib/mjs/components/day/editForm/Day.edit.year.d.ts +0 -40
- package/lib/mjs/components/day/editForm/Day.edit.year.js +0 -56
- package/lib/mjs/components/day/fixtures/comp1.d.ts +0 -46
- package/lib/mjs/components/day/fixtures/comp1.js +0 -37
- package/lib/mjs/components/day/fixtures/comp2.d.ts +0 -46
- package/lib/mjs/components/day/fixtures/comp2.js +0 -37
- package/lib/mjs/components/day/fixtures/comp3.d.ts +0 -48
- package/lib/mjs/components/day/fixtures/comp3.js +0 -39
- package/lib/mjs/components/day/fixtures/comp4.d.ts +0 -53
- package/lib/mjs/components/day/fixtures/comp4.js +0 -54
- package/lib/mjs/components/day/fixtures/comp5.d.ts +0 -29
- package/lib/mjs/components/day/fixtures/comp5.js +0 -30
- package/lib/mjs/components/day/fixtures/comp6.d.ts +0 -81
- package/lib/mjs/components/day/fixtures/comp6.js +0 -74
- package/lib/mjs/components/day/fixtures/index.d.ts +0 -7
- package/lib/mjs/components/day/fixtures/index.js +0 -7
- package/lib/mjs/components/day/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/day/fixtures/values.js +0 -4
- package/lib/mjs/components/editgrid/EditGrid.d.ts +0 -99
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +0 -3
- package/lib/mjs/components/editgrid/EditGrid.form.js +0 -27
- package/lib/mjs/components/editgrid/EditGrid.js +0 -1156
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +0 -18
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.js +0 -18
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +0 -82
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +0 -53
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +0 -58
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +0 -126
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +0 -29
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.js +0 -32
- package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
- package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -34
- package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
- package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -218
- package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -77
- package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -82
- package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
- package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -225
- package/lib/mjs/components/editgrid/fixtures/comp1.d.ts +0 -89
- package/lib/mjs/components/editgrid/fixtures/comp1.js +0 -126
- package/lib/mjs/components/editgrid/fixtures/comp10.d.ts +0 -49
- package/lib/mjs/components/editgrid/fixtures/comp10.js +0 -46
- package/lib/mjs/components/editgrid/fixtures/comp11.d.ts +0 -53
- package/lib/mjs/components/editgrid/fixtures/comp11.js +0 -48
- package/lib/mjs/components/editgrid/fixtures/comp12.d.ts +0 -57
- package/lib/mjs/components/editgrid/fixtures/comp12.js +0 -48
- package/lib/mjs/components/editgrid/fixtures/comp13.d.ts +0 -64
- package/lib/mjs/components/editgrid/fixtures/comp13.js +0 -62
- package/lib/mjs/components/editgrid/fixtures/comp14.d.ts +0 -88
- package/lib/mjs/components/editgrid/fixtures/comp14.js +0 -82
- package/lib/mjs/components/editgrid/fixtures/comp15.d.ts +0 -54
- package/lib/mjs/components/editgrid/fixtures/comp15.js +0 -49
- package/lib/mjs/components/editgrid/fixtures/comp2.d.ts +0 -112
- package/lib/mjs/components/editgrid/fixtures/comp2.js +0 -112
- package/lib/mjs/components/editgrid/fixtures/comp3.d.ts +0 -27
- package/lib/mjs/components/editgrid/fixtures/comp3.js +0 -26
- package/lib/mjs/components/editgrid/fixtures/comp4.d.ts +0 -23
- package/lib/mjs/components/editgrid/fixtures/comp4.js +0 -22
- package/lib/mjs/components/editgrid/fixtures/comp5.d.ts +0 -19
- package/lib/mjs/components/editgrid/fixtures/comp5.js +0 -20
- package/lib/mjs/components/editgrid/fixtures/comp6.d.ts +0 -50
- package/lib/mjs/components/editgrid/fixtures/comp6.js +0 -56
- package/lib/mjs/components/editgrid/fixtures/comp7.d.ts +0 -129
- package/lib/mjs/components/editgrid/fixtures/comp7.js +0 -121
- package/lib/mjs/components/editgrid/fixtures/comp8.d.ts +0 -148
- package/lib/mjs/components/editgrid/fixtures/comp8.js +0 -154
- package/lib/mjs/components/editgrid/fixtures/comp9.d.ts +0 -86
- package/lib/mjs/components/editgrid/fixtures/comp9.js +0 -60
- package/lib/mjs/components/editgrid/fixtures/index.d.ts +0 -19
- package/lib/mjs/components/editgrid/fixtures/index.js +0 -19
- package/lib/mjs/components/email/Email.d.ts +0 -4
- package/lib/mjs/components/email/Email.form.d.ts +0 -3
- package/lib/mjs/components/email/Email.form.js +0 -15
- package/lib/mjs/components/email/Email.js +0 -48
- package/lib/mjs/components/email/editForm/Email.edit.display.d.ts +0 -5
- package/lib/mjs/components/email/editForm/Email.edit.display.js +0 -18
- package/lib/mjs/components/email/editForm/Email.edit.validation.d.ts +0 -24
- package/lib/mjs/components/email/editForm/Email.edit.validation.js +0 -26
- package/lib/mjs/components/email/fixtures/comp1.d.ts +0 -26
- package/lib/mjs/components/email/fixtures/comp1.js +0 -24
- package/lib/mjs/components/email/fixtures/comp2.d.ts +0 -23
- package/lib/mjs/components/email/fixtures/comp2.js +0 -11
- package/lib/mjs/components/email/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/email/fixtures/index.js +0 -3
- package/lib/mjs/components/email/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/email/fixtures/values.js +0 -4
- package/lib/mjs/components/fieldset/Fieldset.d.ts +0 -15
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +0 -3
- package/lib/mjs/components/fieldset/Fieldset.form.js +0 -10
- package/lib/mjs/components/fieldset/Fieldset.js +0 -41
- package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +0 -33
- package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -42
- package/lib/mjs/components/fieldset/fixtures/comp1.d.ts +0 -46
- package/lib/mjs/components/fieldset/fixtures/comp1.js +0 -79
- package/lib/mjs/components/fieldset/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/fieldset/fixtures/index.js +0 -2
- package/lib/mjs/components/file/File.d.ts +0 -81
- package/lib/mjs/components/file/File.form.d.ts +0 -3
- package/lib/mjs/components/file/File.form.js +0 -27
- package/lib/mjs/components/file/File.js +0 -774
- package/lib/mjs/components/file/editForm/File.edit.data.d.ts +0 -5
- package/lib/mjs/components/file/editForm/File.edit.data.js +0 -6
- package/lib/mjs/components/file/editForm/File.edit.display.d.ts +0 -5
- package/lib/mjs/components/file/editForm/File.edit.display.js +0 -6
- package/lib/mjs/components/file/editForm/File.edit.file.d.ts +0 -275
- package/lib/mjs/components/file/editForm/File.edit.file.js +0 -283
- package/lib/mjs/components/file/editForm/File.edit.validation.d.ts +0 -5
- package/lib/mjs/components/file/editForm/File.edit.validation.js +0 -10
- package/lib/mjs/components/file/fixtures/comp1.d.ts +0 -15
- package/lib/mjs/components/file/fixtures/comp1.js +0 -16
- package/lib/mjs/components/file/fixtures/comp2.d.ts +0 -35
- package/lib/mjs/components/file/fixtures/comp2.js +0 -29
- package/lib/mjs/components/file/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/file/fixtures/index.js +0 -3
- package/lib/mjs/components/file/fixtures/values.d.ts +0 -10
- package/lib/mjs/components/file/fixtures/values.js +0 -13
- package/lib/mjs/components/form/Form.d.ts +0 -98
- package/lib/mjs/components/form/Form.form.d.ts +0 -3
- package/lib/mjs/components/form/Form.form.js +0 -24
- package/lib/mjs/components/form/Form.js +0 -717
- package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +0 -82
- package/lib/mjs/components/form/editForm/Form.edit.data.js +0 -16
- package/lib/mjs/components/form/editForm/Form.edit.display.d.ts +0 -5
- package/lib/mjs/components/form/editForm/Form.edit.display.js +0 -27
- package/lib/mjs/components/form/editForm/Form.edit.form.d.ts +0 -89
- package/lib/mjs/components/form/editForm/Form.edit.form.js +0 -72
- package/lib/mjs/components/form/fixtures/comp1.d.ts +0 -45
- package/lib/mjs/components/form/fixtures/comp1.js +0 -78
- package/lib/mjs/components/form/fixtures/comp2.d.ts +0 -14
- package/lib/mjs/components/form/fixtures/comp2.js +0 -13
- package/lib/mjs/components/form/fixtures/comp3.d.ts +0 -187
- package/lib/mjs/components/form/fixtures/comp3.js +0 -168
- package/lib/mjs/components/form/fixtures/comp4.d.ts +0 -107
- package/lib/mjs/components/form/fixtures/comp4.js +0 -89
- package/lib/mjs/components/form/fixtures/comp5.d.ts +0 -42
- package/lib/mjs/components/form/fixtures/comp5.js +0 -43
- package/lib/mjs/components/form/fixtures/comp6.d.ts +0 -74
- package/lib/mjs/components/form/fixtures/comp6.js +0 -92
- package/lib/mjs/components/form/fixtures/formModalEdit.d.ts +0 -42
- package/lib/mjs/components/form/fixtures/formModalEdit.js +0 -49
- package/lib/mjs/components/form/fixtures/index.d.ts +0 -8
- package/lib/mjs/components/form/fixtures/index.js +0 -8
- package/lib/mjs/components/form/fixtures/values.d.ts +0 -6
- package/lib/mjs/components/form/fixtures/values.js +0 -7
- package/lib/mjs/components/hidden/Hidden.d.ts +0 -26
- package/lib/mjs/components/hidden/Hidden.form.d.ts +0 -3
- package/lib/mjs/components/hidden/Hidden.form.js +0 -23
- package/lib/mjs/components/hidden/Hidden.js +0 -55
- package/lib/mjs/components/hidden/editForm/Hidden.edit.data.d.ts +0 -5
- package/lib/mjs/components/hidden/editForm/Hidden.edit.data.js +0 -14
- package/lib/mjs/components/hidden/editForm/Hidden.edit.display.d.ts +0 -5
- package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +0 -42
- package/lib/mjs/components/hidden/fixtures/comp1.d.ts +0 -18
- package/lib/mjs/components/hidden/fixtures/comp1.js +0 -16
- package/lib/mjs/components/hidden/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/hidden/fixtures/index.js +0 -2
- package/lib/mjs/components/hidden/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/hidden/fixtures/values.js +0 -4
- package/lib/mjs/components/html/HTML.d.ts +0 -18
- package/lib/mjs/components/html/HTML.form.d.ts +0 -3
- package/lib/mjs/components/html/HTML.form.js +0 -23
- package/lib/mjs/components/html/HTML.js +0 -87
- package/lib/mjs/components/html/editForm/HTML.edit.display.d.ts +0 -77
- package/lib/mjs/components/html/editForm/HTML.edit.display.js +0 -98
- package/lib/mjs/components/html/editForm/HTML.edit.logic.d.ts +0 -48
- package/lib/mjs/components/html/editForm/HTML.edit.logic.js +0 -98
- package/lib/mjs/components/html/fixtures/comp1.d.ts +0 -19
- package/lib/mjs/components/html/fixtures/comp1.js +0 -20
- package/lib/mjs/components/html/fixtures/comp2.d.ts +0 -21
- package/lib/mjs/components/html/fixtures/comp2.js +0 -22
- package/lib/mjs/components/html/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/html/fixtures/index.js +0 -3
- package/lib/mjs/components/index.d.ts +0 -100
- package/lib/mjs/components/index.js +0 -99
- package/lib/mjs/components/number/Number.d.ts +0 -54
- package/lib/mjs/components/number/Number.form.d.ts +0 -3
- package/lib/mjs/components/number/Number.form.js +0 -20
- package/lib/mjs/components/number/Number.js +0 -201
- package/lib/mjs/components/number/editForm/Number.edit.data.d.ts +0 -18
- package/lib/mjs/components/number/editForm/Number.edit.data.js +0 -30
- package/lib/mjs/components/number/editForm/Number.edit.display.d.ts +0 -5
- package/lib/mjs/components/number/editForm/Number.edit.display.js +0 -22
- package/lib/mjs/components/number/editForm/Number.edit.validation.d.ts +0 -20
- package/lib/mjs/components/number/editForm/Number.edit.validation.js +0 -44
- package/lib/mjs/components/number/fixtures/comp1.d.ts +0 -33
- package/lib/mjs/components/number/fixtures/comp1.js +0 -30
- package/lib/mjs/components/number/fixtures/comp2.d.ts +0 -32
- package/lib/mjs/components/number/fixtures/comp2.js +0 -29
- package/lib/mjs/components/number/fixtures/comp3.d.ts +0 -14
- package/lib/mjs/components/number/fixtures/comp3.js +0 -13
- package/lib/mjs/components/number/fixtures/comp4.d.ts +0 -14
- package/lib/mjs/components/number/fixtures/comp4.js +0 -13
- package/lib/mjs/components/number/fixtures/comp5.d.ts +0 -20
- package/lib/mjs/components/number/fixtures/comp5.js +0 -18
- package/lib/mjs/components/number/fixtures/comp6.d.ts +0 -40
- package/lib/mjs/components/number/fixtures/comp6.js +0 -25
- package/lib/mjs/components/number/fixtures/comp7.d.ts +0 -15
- package/lib/mjs/components/number/fixtures/comp7.js +0 -14
- package/lib/mjs/components/number/fixtures/index.d.ts +0 -8
- package/lib/mjs/components/number/fixtures/index.js +0 -8
- package/lib/mjs/components/number/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/number/fixtures/values.js +0 -9
- package/lib/mjs/components/panel/Panel.d.ts +0 -15
- package/lib/mjs/components/panel/Panel.form.d.ts +0 -3
- package/lib/mjs/components/panel/Panel.form.js +0 -15
- package/lib/mjs/components/panel/Panel.js +0 -55
- package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +0 -75
- package/lib/mjs/components/panel/editForm/Panel.edit.conditional.js +0 -40
- package/lib/mjs/components/panel/editForm/Panel.edit.display.d.ts +0 -228
- package/lib/mjs/components/panel/editForm/Panel.edit.display.js +0 -208
- package/lib/mjs/components/panel/fixtures/comp1.d.ts +0 -46
- package/lib/mjs/components/panel/fixtures/comp1.js +0 -78
- package/lib/mjs/components/panel/fixtures/comp2.d.ts +0 -80
- package/lib/mjs/components/panel/fixtures/comp2.js +0 -67
- package/lib/mjs/components/panel/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/panel/fixtures/index.js +0 -3
- package/lib/mjs/components/password/Password.d.ts +0 -3
- package/lib/mjs/components/password/Password.form.d.ts +0 -3
- package/lib/mjs/components/password/Password.form.js +0 -20
- package/lib/mjs/components/password/Password.js +0 -34
- package/lib/mjs/components/password/editForm/Password.edit.data.d.ts +0 -18
- package/lib/mjs/components/password/editForm/Password.edit.data.js +0 -46
- package/lib/mjs/components/password/editForm/Password.edit.display.d.ts +0 -5
- package/lib/mjs/components/password/editForm/Password.edit.display.js +0 -14
- package/lib/mjs/components/password/editForm/Password.edit.validation.d.ts +0 -5
- package/lib/mjs/components/password/editForm/Password.edit.validation.js +0 -14
- package/lib/mjs/components/password/fixtures/comp1.d.ts +0 -22
- package/lib/mjs/components/password/fixtures/comp1.js +0 -20
- package/lib/mjs/components/password/fixtures/comp2.d.ts +0 -27
- package/lib/mjs/components/password/fixtures/comp2.js +0 -27
- package/lib/mjs/components/password/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/password/fixtures/index.js +0 -3
- package/lib/mjs/components/password/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/password/fixtures/values.js +0 -4
- package/lib/mjs/components/phonenumber/PhoneNumber.d.ts +0 -3
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +0 -3
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +0 -32
- package/lib/mjs/components/phonenumber/PhoneNumber.js +0 -27
- package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +0 -5
- package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +0 -22
- package/lib/mjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
- package/lib/mjs/components/phonenumber/fixtures/comp1.js +0 -25
- package/lib/mjs/components/phonenumber/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/phonenumber/fixtures/index.js +0 -2
- package/lib/mjs/components/phonenumber/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/phonenumber/fixtures/values.js +0 -4
- package/lib/mjs/components/radio/Radio.d.ts +0 -65
- package/lib/mjs/components/radio/Radio.form.d.ts +0 -3
- package/lib/mjs/components/radio/Radio.form.js +0 -20
- package/lib/mjs/components/radio/Radio.js +0 -372
- package/lib/mjs/components/radio/editForm/Radio.edit.data.d.ts +0 -134
- package/lib/mjs/components/radio/editForm/Radio.edit.data.js +0 -80
- package/lib/mjs/components/radio/editForm/Radio.edit.display.d.ts +0 -40
- package/lib/mjs/components/radio/editForm/Radio.edit.display.js +0 -32
- package/lib/mjs/components/radio/editForm/Radio.edit.validation.d.ts +0 -18
- package/lib/mjs/components/radio/editForm/Radio.edit.validation.js +0 -18
- package/lib/mjs/components/radio/fixtures/comp1.d.ts +0 -28
- package/lib/mjs/components/radio/fixtures/comp1.js +0 -40
- package/lib/mjs/components/radio/fixtures/comp2.d.ts +0 -85
- package/lib/mjs/components/radio/fixtures/comp2.js +0 -84
- package/lib/mjs/components/radio/fixtures/comp3.d.ts +0 -85
- package/lib/mjs/components/radio/fixtures/comp3.js +0 -88
- package/lib/mjs/components/radio/fixtures/comp4.d.ts +0 -19
- package/lib/mjs/components/radio/fixtures/comp4.js +0 -25
- package/lib/mjs/components/radio/fixtures/comp5.d.ts +0 -39
- package/lib/mjs/components/radio/fixtures/comp5.js +0 -33
- package/lib/mjs/components/radio/fixtures/comp6.d.ts +0 -38
- package/lib/mjs/components/radio/fixtures/comp6.js +0 -31
- package/lib/mjs/components/radio/fixtures/comp7.d.ts +0 -23
- package/lib/mjs/components/radio/fixtures/comp7.js +0 -19
- package/lib/mjs/components/radio/fixtures/comp8.d.ts +0 -118
- package/lib/mjs/components/radio/fixtures/comp8.js +0 -111
- package/lib/mjs/components/radio/fixtures/comp9.d.ts +0 -35
- package/lib/mjs/components/radio/fixtures/comp9.js +0 -30
- package/lib/mjs/components/radio/fixtures/index.d.ts +0 -10
- package/lib/mjs/components/radio/fixtures/index.js +0 -10
- package/lib/mjs/components/radio/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/radio/fixtures/values.js +0 -5
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +0 -23
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +0 -3
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +0 -26
- package/lib/mjs/components/recaptcha/ReCaptcha.js +0 -139
- package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +0 -44
- package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +0 -106
- package/lib/mjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
- package/lib/mjs/components/recaptcha/fixtures/comp1.js +0 -7
- package/lib/mjs/components/recaptcha/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/recaptcha/fixtures/index.js +0 -2
- package/lib/mjs/components/resource/Resource.d.ts +0 -10
- package/lib/mjs/components/resource/Resource.form.d.ts +0 -3
- package/lib/mjs/components/resource/Resource.form.js +0 -10
- package/lib/mjs/components/resource/Resource.js +0 -33
- package/lib/mjs/components/resource/editForm/Resource.edit.display.d.ts +0 -173
- package/lib/mjs/components/resource/editForm/Resource.edit.display.js +0 -100
- package/lib/mjs/components/resource/fixtures/comp1.d.ts +0 -30
- package/lib/mjs/components/resource/fixtures/comp1.js +0 -28
- package/lib/mjs/components/resource/fixtures/comp2.d.ts +0 -35
- package/lib/mjs/components/resource/fixtures/comp2.js +0 -29
- package/lib/mjs/components/resource/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/resource/fixtures/index.js +0 -3
- package/lib/mjs/components/select/Select.d.ts +0 -145
- package/lib/mjs/components/select/Select.form.d.ts +0 -3
- package/lib/mjs/components/select/Select.form.js +0 -20
- package/lib/mjs/components/select/Select.js +0 -1491
- package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +0 -1039
- package/lib/mjs/components/select/editForm/Select.edit.data.js +0 -627
- package/lib/mjs/components/select/editForm/Select.edit.display.d.ts +0 -27
- package/lib/mjs/components/select/editForm/Select.edit.display.js +0 -26
- package/lib/mjs/components/select/editForm/Select.edit.validation.d.ts +0 -30
- package/lib/mjs/components/select/editForm/Select.edit.validation.js +0 -33
- package/lib/mjs/components/select/fixtures/comp1.d.ts +0 -40
- package/lib/mjs/components/select/fixtures/comp1.js +0 -64
- package/lib/mjs/components/select/fixtures/comp10.d.ts +0 -41
- package/lib/mjs/components/select/fixtures/comp10.js +0 -30
- package/lib/mjs/components/select/fixtures/comp11.d.ts +0 -28
- package/lib/mjs/components/select/fixtures/comp11.js +0 -22
- package/lib/mjs/components/select/fixtures/comp12.d.ts +0 -53
- package/lib/mjs/components/select/fixtures/comp12.js +0 -27
- package/lib/mjs/components/select/fixtures/comp13.d.ts +0 -28
- package/lib/mjs/components/select/fixtures/comp13.js +0 -29
- package/lib/mjs/components/select/fixtures/comp14.d.ts +0 -40
- package/lib/mjs/components/select/fixtures/comp14.js +0 -25
- package/lib/mjs/components/select/fixtures/comp15.d.ts +0 -50
- package/lib/mjs/components/select/fixtures/comp15.js +0 -39
- package/lib/mjs/components/select/fixtures/comp16.d.ts +0 -34
- package/lib/mjs/components/select/fixtures/comp16.js +0 -31
- package/lib/mjs/components/select/fixtures/comp17.d.ts +0 -51
- package/lib/mjs/components/select/fixtures/comp17.js +0 -41
- package/lib/mjs/components/select/fixtures/comp18.d.ts +0 -49
- package/lib/mjs/components/select/fixtures/comp18.js +0 -40
- package/lib/mjs/components/select/fixtures/comp19.d.ts +0 -23
- package/lib/mjs/components/select/fixtures/comp19.js +0 -34
- package/lib/mjs/components/select/fixtures/comp2.d.ts +0 -41
- package/lib/mjs/components/select/fixtures/comp2.js +0 -65
- package/lib/mjs/components/select/fixtures/comp3.d.ts +0 -35
- package/lib/mjs/components/select/fixtures/comp3.js +0 -206
- package/lib/mjs/components/select/fixtures/comp4.d.ts +0 -103
- package/lib/mjs/components/select/fixtures/comp4.js +0 -104
- package/lib/mjs/components/select/fixtures/comp5.d.ts +0 -21
- package/lib/mjs/components/select/fixtures/comp5.js +0 -26
- package/lib/mjs/components/select/fixtures/comp6.d.ts +0 -20
- package/lib/mjs/components/select/fixtures/comp6.js +0 -28
- package/lib/mjs/components/select/fixtures/comp7.d.ts +0 -63
- package/lib/mjs/components/select/fixtures/comp7.js +0 -44
- package/lib/mjs/components/select/fixtures/comp8.d.ts +0 -72
- package/lib/mjs/components/select/fixtures/comp8.js +0 -35
- package/lib/mjs/components/select/fixtures/comp9.d.ts +0 -88
- package/lib/mjs/components/select/fixtures/comp9.js +0 -65
- package/lib/mjs/components/select/fixtures/index.d.ts +0 -20
- package/lib/mjs/components/select/fixtures/index.js +0 -20
- package/lib/mjs/components/select/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/select/fixtures/values.js +0 -5
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +0 -52
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +0 -3
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +0 -19
- package/lib/mjs/components/selectboxes/SelectBoxes.js +0 -255
- package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +0 -9
- package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +0 -34
- package/lib/mjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
- package/lib/mjs/components/selectboxes/fixtures/comp1.js +0 -52
- package/lib/mjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
- package/lib/mjs/components/selectboxes/fixtures/comp2.js +0 -52
- package/lib/mjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
- package/lib/mjs/components/selectboxes/fixtures/comp3.js +0 -19
- package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
- package/lib/mjs/components/selectboxes/fixtures/comp4.js +0 -79
- package/lib/mjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
- package/lib/mjs/components/selectboxes/fixtures/comp5.js +0 -31
- package/lib/mjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
- package/lib/mjs/components/selectboxes/fixtures/comp6.js +0 -13
- package/lib/mjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
- package/lib/mjs/components/selectboxes/fixtures/comp7.js +0 -29
- package/lib/mjs/components/selectboxes/fixtures/index.d.ts +0 -8
- package/lib/mjs/components/selectboxes/fixtures/index.js +0 -8
- package/lib/mjs/components/selectboxes/fixtures/values.d.ts +0 -6
- package/lib/mjs/components/selectboxes/fixtures/values.js +0 -22
- package/lib/mjs/components/signature/Signature.d.ts +0 -46
- package/lib/mjs/components/signature/Signature.form.d.ts +0 -3
- package/lib/mjs/components/signature/Signature.form.js +0 -20
- package/lib/mjs/components/signature/Signature.js +0 -255
- package/lib/mjs/components/signature/editForm/Signature.edit.data.d.ts +0 -5
- package/lib/mjs/components/signature/editForm/Signature.edit.data.js +0 -14
- package/lib/mjs/components/signature/editForm/Signature.edit.display.d.ts +0 -51
- package/lib/mjs/components/signature/editForm/Signature.edit.display.js +0 -69
- package/lib/mjs/components/signature/editForm/Signature.edit.validation.d.ts +0 -5
- package/lib/mjs/components/signature/editForm/Signature.edit.validation.js +0 -10
- package/lib/mjs/components/signature/fixtures/comp1.d.ts +0 -30
- package/lib/mjs/components/signature/fixtures/comp1.js +0 -28
- package/lib/mjs/components/signature/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/signature/fixtures/index.js +0 -2
- package/lib/mjs/components/signature/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/signature/fixtures/values.js +0 -5
- package/lib/mjs/components/survey/Survey.d.ts +0 -37
- package/lib/mjs/components/survey/Survey.form.d.ts +0 -3
- package/lib/mjs/components/survey/Survey.form.js +0 -20
- package/lib/mjs/components/survey/Survey.js +0 -153
- package/lib/mjs/components/survey/editForm/Survey.edit.data.d.ts +0 -44
- package/lib/mjs/components/survey/editForm/Survey.edit.data.js +0 -70
- package/lib/mjs/components/survey/editForm/Survey.edit.display.d.ts +0 -5
- package/lib/mjs/components/survey/editForm/Survey.edit.display.js +0 -6
- package/lib/mjs/components/survey/editForm/Survey.edit.validation.d.ts +0 -5
- package/lib/mjs/components/survey/editForm/Survey.edit.validation.js +0 -6
- package/lib/mjs/components/survey/fixtures/comp1.d.ts +0 -31
- package/lib/mjs/components/survey/fixtures/comp1.js +0 -53
- package/lib/mjs/components/survey/fixtures/comp2.d.ts +0 -31
- package/lib/mjs/components/survey/fixtures/comp2.js +0 -53
- package/lib/mjs/components/survey/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/survey/fixtures/index.js +0 -3
- package/lib/mjs/components/survey/fixtures/values.d.ts +0 -5
- package/lib/mjs/components/survey/fixtures/values.js +0 -10
- package/lib/mjs/components/table/Table.d.ts +0 -23
- package/lib/mjs/components/table/Table.form.d.ts +0 -3
- package/lib/mjs/components/table/Table.form.js +0 -10
- package/lib/mjs/components/table/Table.js +0 -169
- package/lib/mjs/components/table/editForm/Table.edit.display.d.ts +0 -55
- package/lib/mjs/components/table/editForm/Table.edit.display.js +0 -109
- package/lib/mjs/components/table/fixtures/comp1.d.ts +0 -53
- package/lib/mjs/components/table/fixtures/comp1.js +0 -235
- package/lib/mjs/components/table/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/table/fixtures/index.js +0 -2
- package/lib/mjs/components/tabs/Tabs.d.ts +0 -30
- package/lib/mjs/components/tabs/Tabs.form.d.ts +0 -3
- package/lib/mjs/components/tabs/Tabs.form.js +0 -10
- package/lib/mjs/components/tabs/Tabs.js +0 -201
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.d.ts +0 -49
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +0 -66
- package/lib/mjs/components/tabs/fixtures/comp1.d.ts +0 -23
- package/lib/mjs/components/tabs/fixtures/comp1.js +0 -31
- package/lib/mjs/components/tabs/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/tabs/fixtures/index.js +0 -2
- package/lib/mjs/components/tags/Tags.d.ts +0 -41
- package/lib/mjs/components/tags/Tags.form.d.ts +0 -3
- package/lib/mjs/components/tags/Tags.form.js +0 -10
- package/lib/mjs/components/tags/Tags.js +0 -171
- package/lib/mjs/components/tags/editForm/Tags.edit.data.d.ts +0 -51
- package/lib/mjs/components/tags/editForm/Tags.edit.data.js +0 -37
- package/lib/mjs/components/tags/fixtures/comp1.d.ts +0 -20
- package/lib/mjs/components/tags/fixtures/comp1.js +0 -18
- package/lib/mjs/components/tags/fixtures/comp2.d.ts +0 -10
- package/lib/mjs/components/tags/fixtures/comp2.js +0 -9
- package/lib/mjs/components/tags/fixtures/comp3.d.ts +0 -23
- package/lib/mjs/components/tags/fixtures/comp3.js +0 -18
- package/lib/mjs/components/tags/fixtures/comp4.d.ts +0 -9
- package/lib/mjs/components/tags/fixtures/comp4.js +0 -8
- package/lib/mjs/components/tags/fixtures/comp5.d.ts +0 -24
- package/lib/mjs/components/tags/fixtures/comp5.js +0 -22
- package/lib/mjs/components/tags/fixtures/comp6.d.ts +0 -17
- package/lib/mjs/components/tags/fixtures/comp6.js +0 -18
- package/lib/mjs/components/tags/fixtures/index.d.ts +0 -7
- package/lib/mjs/components/tags/fixtures/index.js +0 -7
- package/lib/mjs/components/tags/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/tags/fixtures/values.js +0 -4
- package/lib/mjs/components/textarea/TextArea.d.ts +0 -37
- package/lib/mjs/components/textarea/TextArea.form.d.ts +0 -3
- package/lib/mjs/components/textarea/TextArea.form.js +0 -15
- package/lib/mjs/components/textarea/TextArea.js +0 -529
- package/lib/mjs/components/textarea/editForm/TextArea.edit.display.d.ts +0 -355
- package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +0 -258
- package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.d.ts +0 -10
- package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.js +0 -20
- package/lib/mjs/components/textarea/fixtures/comp1.d.ts +0 -31
- package/lib/mjs/components/textarea/fixtures/comp1.js +0 -29
- package/lib/mjs/components/textarea/fixtures/comp2.d.ts +0 -29
- package/lib/mjs/components/textarea/fixtures/comp2.js +0 -27
- package/lib/mjs/components/textarea/fixtures/comp3.d.ts +0 -27
- package/lib/mjs/components/textarea/fixtures/comp3.js +0 -27
- package/lib/mjs/components/textarea/fixtures/comp4.d.ts +0 -30
- package/lib/mjs/components/textarea/fixtures/comp4.js +0 -25
- package/lib/mjs/components/textarea/fixtures/index.d.ts +0 -5
- package/lib/mjs/components/textarea/fixtures/index.js +0 -5
- package/lib/mjs/components/textarea/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/textarea/fixtures/values.js +0 -4
- package/lib/mjs/components/textfield/TextField.d.ts +0 -60
- package/lib/mjs/components/textfield/TextField.form.d.ts +0 -3
- package/lib/mjs/components/textfield/TextField.form.js +0 -20
- package/lib/mjs/components/textfield/TextField.js +0 -229
- package/lib/mjs/components/textfield/editForm/TextField.edit.data.d.ts +0 -46
- package/lib/mjs/components/textfield/editForm/TextField.edit.data.js +0 -56
- package/lib/mjs/components/textfield/editForm/TextField.edit.display.d.ts +0 -248
- package/lib/mjs/components/textfield/editForm/TextField.edit.display.js +0 -203
- package/lib/mjs/components/textfield/editForm/TextField.edit.validation.d.ts +0 -10
- package/lib/mjs/components/textfield/editForm/TextField.edit.validation.js +0 -47
- package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
- package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -46
- package/lib/mjs/components/textfield/fixtures/comp1.d.ts +0 -33
- package/lib/mjs/components/textfield/fixtures/comp1.js +0 -31
- package/lib/mjs/components/textfield/fixtures/comp2.d.ts +0 -33
- package/lib/mjs/components/textfield/fixtures/comp2.js +0 -31
- package/lib/mjs/components/textfield/fixtures/comp3.d.ts +0 -33
- package/lib/mjs/components/textfield/fixtures/comp3.js +0 -31
- package/lib/mjs/components/textfield/fixtures/comp4.d.ts +0 -23
- package/lib/mjs/components/textfield/fixtures/comp4.js +0 -25
- package/lib/mjs/components/textfield/fixtures/comp5.d.ts +0 -12
- package/lib/mjs/components/textfield/fixtures/comp5.js +0 -11
- package/lib/mjs/components/textfield/fixtures/comp6.d.ts +0 -25
- package/lib/mjs/components/textfield/fixtures/comp6.js +0 -19
- package/lib/mjs/components/textfield/fixtures/comp7.d.ts +0 -37
- package/lib/mjs/components/textfield/fixtures/comp7.js +0 -36
- package/lib/mjs/components/textfield/fixtures/index.d.ts +0 -9
- package/lib/mjs/components/textfield/fixtures/index.js +0 -9
- package/lib/mjs/components/textfield/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/textfield/fixtures/values.js +0 -5
- package/lib/mjs/components/time/Time.d.ts +0 -27
- package/lib/mjs/components/time/Time.form.d.ts +0 -3
- package/lib/mjs/components/time/Time.form.js +0 -15
- package/lib/mjs/components/time/Time.js +0 -153
- package/lib/mjs/components/time/editForm/Time.edit.data.d.ts +0 -10
- package/lib/mjs/components/time/editForm/Time.edit.data.js +0 -11
- package/lib/mjs/components/time/editForm/Time.edit.display.d.ts +0 -52
- package/lib/mjs/components/time/editForm/Time.edit.display.js +0 -40
- package/lib/mjs/components/time/fixtures/comp1.d.ts +0 -24
- package/lib/mjs/components/time/fixtures/comp1.js +0 -22
- package/lib/mjs/components/time/fixtures/comp2.d.ts +0 -10
- package/lib/mjs/components/time/fixtures/comp2.js +0 -9
- package/lib/mjs/components/time/fixtures/comp3.d.ts +0 -15
- package/lib/mjs/components/time/fixtures/comp3.js +0 -16
- package/lib/mjs/components/time/fixtures/index.d.ts +0 -6
- package/lib/mjs/components/time/fixtures/index.js +0 -6
- package/lib/mjs/components/time/fixtures/timeForm.d.ts +0 -47
- package/lib/mjs/components/time/fixtures/timeForm.js +0 -50
- package/lib/mjs/components/time/fixtures/timeForm2.d.ts +0 -38
- package/lib/mjs/components/time/fixtures/timeForm2.js +0 -42
- package/lib/mjs/components/time/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/time/fixtures/values.js +0 -5
- package/lib/mjs/components/tree/Node.d.ts +0 -55
- package/lib/mjs/components/tree/Node.js +0 -179
- package/lib/mjs/components/tree/Tree.d.ts +0 -48
- package/lib/mjs/components/tree/Tree.form.d.ts +0 -3
- package/lib/mjs/components/tree/Tree.form.js +0 -15
- package/lib/mjs/components/tree/Tree.js +0 -384
- package/lib/mjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
- package/lib/mjs/components/tree/editForm/Tree.edit.data.js +0 -7
- package/lib/mjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
- package/lib/mjs/components/tree/editForm/Tree.edit.display.js +0 -10
- package/lib/mjs/components/tree/fixtures/comp1.d.ts +0 -23
- package/lib/mjs/components/tree/fixtures/comp1.js +0 -22
- package/lib/mjs/components/tree/fixtures/comp2.d.ts +0 -116
- package/lib/mjs/components/tree/fixtures/comp2.js +0 -80
- package/lib/mjs/components/tree/fixtures/comp3.d.ts +0 -24
- package/lib/mjs/components/tree/fixtures/comp3.js +0 -23
- package/lib/mjs/components/tree/fixtures/comp4.d.ts +0 -42
- package/lib/mjs/components/tree/fixtures/comp4.js +0 -45
- package/lib/mjs/components/tree/fixtures/index.d.ts +0 -5
- package/lib/mjs/components/tree/fixtures/index.js +0 -5
- package/lib/mjs/components/unknown/Unknown.d.ts +0 -28
- package/lib/mjs/components/unknown/Unknown.form.d.ts +0 -34
- package/lib/mjs/components/unknown/Unknown.form.js +0 -19
- package/lib/mjs/components/unknown/Unknown.js +0 -24
- package/lib/mjs/components/unknown/editForm/Unknown.edit.display.d.ts +0 -24
- package/lib/mjs/components/unknown/editForm/Unknown.edit.display.js +0 -25
- package/lib/mjs/components/unknown/fixtures/comp1.d.ts +0 -7
- package/lib/mjs/components/unknown/fixtures/comp1.js +0 -6
- package/lib/mjs/components/unknown/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/unknown/fixtures/index.js +0 -2
- package/lib/mjs/components/url/Url.d.ts +0 -3
- package/lib/mjs/components/url/Url.form.d.ts +0 -3
- package/lib/mjs/components/url/Url.form.js +0 -20
- package/lib/mjs/components/url/Url.js +0 -33
- package/lib/mjs/components/url/editForm/Url.edit.data.d.ts +0 -5
- package/lib/mjs/components/url/editForm/Url.edit.data.js +0 -6
- package/lib/mjs/components/url/editForm/Url.edit.display.d.ts +0 -5
- package/lib/mjs/components/url/editForm/Url.edit.display.js +0 -18
- package/lib/mjs/components/url/editForm/Url.edit.validation.d.ts +0 -5
- package/lib/mjs/components/url/editForm/Url.edit.validation.js +0 -10
- package/lib/mjs/components/url/fixtures/comp1.d.ts +0 -26
- package/lib/mjs/components/url/fixtures/comp1.js +0 -24
- package/lib/mjs/components/url/fixtures/comp2.d.ts +0 -26
- package/lib/mjs/components/url/fixtures/comp2.js +0 -21
- package/lib/mjs/components/url/fixtures/index.d.ts +0 -3
- package/lib/mjs/components/url/fixtures/index.js +0 -3
- package/lib/mjs/components/url/fixtures/values.d.ts +0 -2
- package/lib/mjs/components/url/fixtures/values.js +0 -4
- package/lib/mjs/components/well/Well.d.ts +0 -15
- package/lib/mjs/components/well/Well.form.d.ts +0 -3
- package/lib/mjs/components/well/Well.form.js +0 -10
- package/lib/mjs/components/well/Well.js +0 -39
- package/lib/mjs/components/well/editForm/Well.edit.display.d.ts +0 -5
- package/lib/mjs/components/well/editForm/Well.edit.display.js +0 -30
- package/lib/mjs/components/well/fixtures/comp1.d.ts +0 -43
- package/lib/mjs/components/well/fixtures/comp1.js +0 -75
- package/lib/mjs/components/well/fixtures/index.d.ts +0 -2
- package/lib/mjs/components/well/fixtures/index.js +0 -2
- package/lib/mjs/displays/Displays.d.ts +0 -18
- package/lib/mjs/displays/Displays.js +0 -24
- package/lib/mjs/displays/index.d.ts +0 -2
- package/lib/mjs/displays/index.js +0 -2
- package/lib/mjs/formio.embed.d.ts +0 -2
- package/lib/mjs/formio.embed.js +0 -97
- package/lib/mjs/formio.form.d.ts +0 -23
- package/lib/mjs/formio.form.js +0 -146
- package/lib/mjs/i18n.d.ts +0 -13
- package/lib/mjs/i18n.js +0 -14
- package/lib/mjs/index.d.ts +0 -4
- package/lib/mjs/index.js +0 -13
- package/lib/mjs/licenses/Licenses.d.ts +0 -7
- package/lib/mjs/licenses/Licenses.js +0 -17
- package/lib/mjs/licenses/index.d.ts +0 -2
- package/lib/mjs/licenses/index.js +0 -2
- package/lib/mjs/package.json +0 -3
- package/lib/mjs/pdf.image.d.ts +0 -2
- package/lib/mjs/pdf.image.js +0 -94
- package/lib/mjs/providers/Providers.d.ts +0 -84
- package/lib/mjs/providers/Providers.js +0 -29
- package/lib/mjs/providers/address/AddressProvider.d.ts +0 -17
- package/lib/mjs/providers/address/AddressProvider.js +0 -54
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +0 -12
- package/lib/mjs/providers/address/AzureAddressProvider.js +0 -27
- package/lib/mjs/providers/address/CustomAddressProvider.d.ts +0 -7
- package/lib/mjs/providers/address/CustomAddressProvider.js +0 -22
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +0 -18
- package/lib/mjs/providers/address/GoogleAddressProvider.js +0 -109
- package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +0 -11
- package/lib/mjs/providers/address/NominatimAddressProvider.js +0 -27
- package/lib/mjs/providers/address/index.d.ts +0 -6
- package/lib/mjs/providers/address/index.js +0 -10
- package/lib/mjs/providers/auth/index.d.ts +0 -2
- package/lib/mjs/providers/auth/index.js +0 -1
- package/lib/mjs/providers/index.d.ts +0 -2
- package/lib/mjs/providers/index.js +0 -2
- package/lib/mjs/providers/processor/fileProcessor.d.ts +0 -2
- package/lib/mjs/providers/processor/fileProcessor.js +0 -38
- package/lib/mjs/providers/storage/azure.d.ts +0 -17
- package/lib/mjs/providers/storage/azure.js +0 -30
- package/lib/mjs/providers/storage/base64.d.ts +0 -10
- package/lib/mjs/providers/storage/base64.js +0 -29
- package/lib/mjs/providers/storage/dropbox.d.ts +0 -8
- package/lib/mjs/providers/storage/dropbox.js +0 -55
- package/lib/mjs/providers/storage/googleDrive.d.ts +0 -9
- package/lib/mjs/providers/storage/googleDrive.js +0 -58
- package/lib/mjs/providers/storage/index.d.ts +0 -15
- package/lib/mjs/providers/storage/index.js +0 -14
- package/lib/mjs/providers/storage/indexeddb.d.ts +0 -11
- package/lib/mjs/providers/storage/indexeddb.js +0 -118
- package/lib/mjs/providers/storage/s3.d.ts +0 -18
- package/lib/mjs/providers/storage/s3.js +0 -48
- package/lib/mjs/providers/storage/uploadAdapter.d.ts +0 -1
- package/lib/mjs/providers/storage/uploadAdapter.js +0 -54
- package/lib/mjs/providers/storage/url.d.ts +0 -11
- package/lib/mjs/providers/storage/url.js +0 -140
- package/lib/mjs/providers/storage/xhr.d.ts +0 -7
- package/lib/mjs/providers/storage/xhr.js +0 -93
- package/lib/mjs/templates/Templates.d.ts +0 -11
- package/lib/mjs/templates/Templates.js +0 -41
- package/lib/mjs/templates/index.d.ts +0 -229
- package/lib/mjs/templates/index.js +0 -4
- package/lib/mjs/translations/en.d.ts +0 -66
- package/lib/mjs/translations/en.js +0 -65
- package/lib/mjs/utils/ChoicesWrapper.d.ts +0 -38
- package/lib/mjs/utils/ChoicesWrapper.js +0 -188
- package/lib/mjs/utils/Evaluator.d.ts +0 -4
- package/lib/mjs/utils/Evaluator.js +0 -64
- package/lib/mjs/utils/builder.d.ts +0 -22
- package/lib/mjs/utils/builder.js +0 -79
- package/lib/mjs/utils/calendarUtils.d.ts +0 -41
- package/lib/mjs/utils/calendarUtils.js +0 -128
- package/lib/mjs/utils/conditionOperators/ConditionOperator.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/ConditionOperator.js +0 -23
- package/lib/mjs/utils/conditionOperators/DateGreaterThan.d.ts +0 -13
- package/lib/mjs/utils/conditionOperators/DateGreaterThan.js +0 -31
- package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.js +0 -12
- package/lib/mjs/utils/conditionOperators/DateLessThan.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/DateLessThan.js +0 -12
- package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.js +0 -12
- package/lib/mjs/utils/conditionOperators/EndsWith.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/EndsWith.js +0 -13
- package/lib/mjs/utils/conditionOperators/GreaterThan.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/GreaterThan.js +0 -13
- package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.js +0 -13
- package/lib/mjs/utils/conditionOperators/Includes.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/Includes.js +0 -13
- package/lib/mjs/utils/conditionOperators/IsDateEqual.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/IsDateEqual.js +0 -12
- package/lib/mjs/utils/conditionOperators/IsEmptyValue.d.ts +0 -9
- package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +0 -24
- package/lib/mjs/utils/conditionOperators/IsEqualTo.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/IsEqualTo.js +0 -24
- package/lib/mjs/utils/conditionOperators/IsNotDateEqual.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/IsNotDateEqual.js +0 -12
- package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.js +0 -12
- package/lib/mjs/utils/conditionOperators/IsNotEqualTo.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/IsNotEqualTo.js +0 -13
- package/lib/mjs/utils/conditionOperators/LessThan.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/LessThan.js +0 -13
- package/lib/mjs/utils/conditionOperators/LessThanOrEqual.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/LessThanOrEqual.js +0 -13
- package/lib/mjs/utils/conditionOperators/NotIncludes.d.ts +0 -4
- package/lib/mjs/utils/conditionOperators/NotIncludes.js +0 -12
- package/lib/mjs/utils/conditionOperators/StartsWith.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/StartsWith.js +0 -13
- package/lib/mjs/utils/conditionOperators/index.d.ts +0 -7
- package/lib/mjs/utils/conditionOperators/index.js +0 -39
- package/lib/mjs/utils/formUtils.d.ts +0 -173
- package/lib/mjs/utils/formUtils.js +0 -560
- package/lib/mjs/utils/i18n.d.ts +0 -16
- package/lib/mjs/utils/i18n.js +0 -81
- package/lib/mjs/utils/index.d.ts +0 -2
- package/lib/mjs/utils/index.js +0 -5
- package/lib/mjs/utils/jsonlogic/operators.d.ts +0 -1
- package/lib/mjs/utils/jsonlogic/operators.js +0 -262
- package/lib/mjs/utils/utils.d.ts +0 -374
- package/lib/mjs/utils/utils.js +0 -1386
- package/lib/mjs/validator/Rules.d.ts +0 -53
- package/lib/mjs/validator/Rules.js +0 -17
- package/lib/mjs/validator/Validator.d.ts +0 -228
- package/lib/mjs/validator/Validator.js +0 -1103
- package/lib/mjs/validator/conjunctions/index.d.ts +0 -7
- package/lib/mjs/validator/conjunctions/index.js +0 -16
- package/lib/mjs/validator/operators/index.d.ts +0 -7
- package/lib/mjs/validator/operators/index.js +0 -16
- package/lib/mjs/validator/quickRules/index.d.ts +0 -7
- package/lib/mjs/validator/quickRules/index.js +0 -16
- package/lib/mjs/validator/rules/Custom.d.ts +0 -5
- package/lib/mjs/validator/rules/Custom.js +0 -21
- package/lib/mjs/validator/rules/Date.d.ts +0 -5
- package/lib/mjs/validator/rules/Date.js +0 -16
- package/lib/mjs/validator/rules/Day.d.ts +0 -5
- package/lib/mjs/validator/rules/Day.js +0 -49
- package/lib/mjs/validator/rules/Email.d.ts +0 -5
- package/lib/mjs/validator/rules/Email.js +0 -15
- package/lib/mjs/validator/rules/JSON.d.ts +0 -5
- package/lib/mjs/validator/rules/JSON.js +0 -20
- package/lib/mjs/validator/rules/Mask.d.ts +0 -5
- package/lib/mjs/validator/rules/Mask.js +0 -23
- package/lib/mjs/validator/rules/Max.d.ts +0 -5
- package/lib/mjs/validator/rules/Max.js +0 -12
- package/lib/mjs/validator/rules/MaxDate.d.ts +0 -5
- package/lib/mjs/validator/rules/MaxDate.js +0 -25
- package/lib/mjs/validator/rules/MaxLength.d.ts +0 -5
- package/lib/mjs/validator/rules/MaxLength.js +0 -11
- package/lib/mjs/validator/rules/MaxWords.d.ts +0 -5
- package/lib/mjs/validator/rules/MaxWords.js +0 -11
- package/lib/mjs/validator/rules/MaxYear.d.ts +0 -5
- package/lib/mjs/validator/rules/MaxYear.js +0 -13
- package/lib/mjs/validator/rules/Min.d.ts +0 -5
- package/lib/mjs/validator/rules/Min.js +0 -12
- package/lib/mjs/validator/rules/MinDate.d.ts +0 -5
- package/lib/mjs/validator/rules/MinDate.js +0 -21
- package/lib/mjs/validator/rules/MinLength.d.ts +0 -5
- package/lib/mjs/validator/rules/MinLength.js +0 -11
- package/lib/mjs/validator/rules/MinWords.d.ts +0 -5
- package/lib/mjs/validator/rules/MinWords.js +0 -11
- package/lib/mjs/validator/rules/MinYear.d.ts +0 -5
- package/lib/mjs/validator/rules/MinYear.js +0 -13
- package/lib/mjs/validator/rules/Pattern.d.ts +0 -5
- package/lib/mjs/validator/rules/Pattern.js +0 -11
- package/lib/mjs/validator/rules/Required.d.ts +0 -5
- package/lib/mjs/validator/rules/Required.js +0 -8
- package/lib/mjs/validator/rules/Rule.d.ts +0 -7
- package/lib/mjs/validator/rules/Rule.js +0 -9
- package/lib/mjs/validator/rules/Select.d.ts +0 -5
- package/lib/mjs/validator/rules/Select.js +0 -86
- package/lib/mjs/validator/rules/Time.d.ts +0 -5
- package/lib/mjs/validator/rules/Time.js +0 -10
- package/lib/mjs/validator/rules/Unique.d.ts +0 -5
- package/lib/mjs/validator/rules/Unique.js +0 -60
- package/lib/mjs/validator/rules/Url.d.ts +0 -5
- package/lib/mjs/validator/rules/Url.js +0 -14
- package/lib/mjs/validator/rules/index.d.ts +0 -47
- package/lib/mjs/validator/rules/index.js +0 -46
- package/lib/mjs/validator/transformers/index.d.ts +0 -7
- package/lib/mjs/validator/transformers/index.js +0 -16
- package/lib/mjs/validator/valueSources/index.d.ts +0 -7
- package/lib/mjs/validator/valueSources/index.js +0 -16
- package/lib/mjs/widgets/CalendarWidget.d.ts +0 -97
- package/lib/mjs/widgets/CalendarWidget.js +0 -457
- package/lib/mjs/widgets/InputWidget.d.ts +0 -24
- package/lib/mjs/widgets/InputWidget.js +0 -68
- package/lib/mjs/widgets/index.d.ts +0 -7
- package/lib/mjs/widgets/index.js +0 -6
@@ -1,3200 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
/* globals Quill, ClassicEditor, CKEDITOR */
|
30
|
-
const vanilla_text_mask_1 = require("@formio/vanilla-text-mask");
|
31
|
-
const tippy_js_1 = __importDefault(require("tippy.js"));
|
32
|
-
const lodash_1 = __importDefault(require("lodash"));
|
33
|
-
const ismobilejs_1 = __importDefault(require("ismobilejs"));
|
34
|
-
const Formio_1 = require("../../../Formio");
|
35
|
-
const FormioUtils = __importStar(require("../../../utils/utils"));
|
36
|
-
const Validator_1 = __importDefault(require("../../../validator/Validator"));
|
37
|
-
const utils_1 = require("../../../utils/utils");
|
38
|
-
const Element_1 = __importDefault(require("../../../Element"));
|
39
|
-
const ComponentModal_1 = __importDefault(require("../componentModal/ComponentModal"));
|
40
|
-
const widgets_1 = __importDefault(require("../../../widgets"));
|
41
|
-
const addons_1 = __importDefault(require("../../../addons"));
|
42
|
-
const uploadAdapter_1 = require("../../../providers/storage/uploadAdapter");
|
43
|
-
const en_1 = __importDefault(require("../../../translations/en"));
|
44
|
-
const Templates_1 = __importDefault(require("../../../templates/Templates"));
|
45
|
-
const isIEBrowser = FormioUtils.getBrowserInfo().ie;
|
46
|
-
/**
|
47
|
-
* This is the Component class
|
48
|
-
which all elements within the FormioForm derive from.
|
49
|
-
*/
|
50
|
-
class Component extends Element_1.default {
|
51
|
-
static schema(...sources) {
|
52
|
-
return lodash_1.default.merge({
|
53
|
-
/**
|
54
|
-
* Determines if this component provides an input.
|
55
|
-
*/
|
56
|
-
input: true,
|
57
|
-
/**
|
58
|
-
* The data key for this component (how the data is stored in the database).
|
59
|
-
*/
|
60
|
-
key: '',
|
61
|
-
/**
|
62
|
-
* The input placeholder for this component.
|
63
|
-
*/
|
64
|
-
placeholder: '',
|
65
|
-
/**
|
66
|
-
* The input prefix
|
67
|
-
*/
|
68
|
-
prefix: '',
|
69
|
-
/**
|
70
|
-
* The custom CSS class to provide to this component.
|
71
|
-
*/
|
72
|
-
customClass: '',
|
73
|
-
/**
|
74
|
-
* The input suffix.
|
75
|
-
*/
|
76
|
-
suffix: '',
|
77
|
-
/**
|
78
|
-
* If this component should allow an array of values to be captured.
|
79
|
-
*/
|
80
|
-
multiple: false,
|
81
|
-
/**
|
82
|
-
* The default value of this component.
|
83
|
-
*/
|
84
|
-
defaultValue: null,
|
85
|
-
/**
|
86
|
-
* If the data of this component should be protected (no GET api requests can see the data)
|
87
|
-
*/
|
88
|
-
protected: false,
|
89
|
-
/**
|
90
|
-
* Validate if the value of this component should be unique within the form.
|
91
|
-
*/
|
92
|
-
unique: false,
|
93
|
-
/**
|
94
|
-
* If the value of this component should be persisted within the backend api database.
|
95
|
-
*/
|
96
|
-
persistent: true,
|
97
|
-
/**
|
98
|
-
* Determines if the component should be within the form, but not visible.
|
99
|
-
*/
|
100
|
-
hidden: false,
|
101
|
-
/**
|
102
|
-
* If the component should be cleared when hidden.
|
103
|
-
*/
|
104
|
-
clearOnHide: true,
|
105
|
-
/**
|
106
|
-
* This will refresh this component options when this field changes.
|
107
|
-
*/
|
108
|
-
refreshOn: '',
|
109
|
-
/**
|
110
|
-
* This will redraw the component when this field changes.
|
111
|
-
*/
|
112
|
-
redrawOn: '',
|
113
|
-
/**
|
114
|
-
* If this component should be included as a column within a submission table.
|
115
|
-
*/
|
116
|
-
tableView: false,
|
117
|
-
/**
|
118
|
-
* If this component should be rendering in modal.
|
119
|
-
*/
|
120
|
-
modalEdit: false,
|
121
|
-
/**
|
122
|
-
* The input label provided to this component.
|
123
|
-
*/
|
124
|
-
label: '',
|
125
|
-
dataGridLabel: false,
|
126
|
-
labelPosition: 'top',
|
127
|
-
description: '',
|
128
|
-
errorLabel: '',
|
129
|
-
tooltip: '',
|
130
|
-
hideLabel: false,
|
131
|
-
tabindex: '',
|
132
|
-
disabled: false,
|
133
|
-
autofocus: false,
|
134
|
-
dbIndex: false,
|
135
|
-
customDefaultValue: '',
|
136
|
-
calculateValue: '',
|
137
|
-
calculateServer: false,
|
138
|
-
widget: null,
|
139
|
-
/**
|
140
|
-
* Attributes that will be assigned to the input elements of this component.
|
141
|
-
*/
|
142
|
-
attributes: {},
|
143
|
-
/**
|
144
|
-
* This will perform the validation on either "change" or "blur" of the input element.
|
145
|
-
*/
|
146
|
-
validateOn: 'change',
|
147
|
-
/**
|
148
|
-
* The validation criteria for this component.
|
149
|
-
*/
|
150
|
-
validate: {
|
151
|
-
/**
|
152
|
-
* If this component is required.
|
153
|
-
*/
|
154
|
-
required: false,
|
155
|
-
/**
|
156
|
-
* Custom JavaScript validation.
|
157
|
-
*/
|
158
|
-
custom: '',
|
159
|
-
/**
|
160
|
-
* If the custom validation should remain private (only the backend will see it and execute it).
|
161
|
-
*/
|
162
|
-
customPrivate: false,
|
163
|
-
/**
|
164
|
-
* If this component should implement a strict date validation if the Calendar widget is implemented.
|
165
|
-
*/
|
166
|
-
strictDateValidation: false,
|
167
|
-
multiple: false,
|
168
|
-
unique: false
|
169
|
-
},
|
170
|
-
/**
|
171
|
-
* The simple conditional settings for a component.
|
172
|
-
*/
|
173
|
-
conditional: {
|
174
|
-
show: null,
|
175
|
-
when: null,
|
176
|
-
eq: ''
|
177
|
-
},
|
178
|
-
overlay: {
|
179
|
-
style: '',
|
180
|
-
left: '',
|
181
|
-
top: '',
|
182
|
-
width: '',
|
183
|
-
height: '',
|
184
|
-
},
|
185
|
-
allowCalculateOverride: false,
|
186
|
-
encrypted: false,
|
187
|
-
showCharCount: false,
|
188
|
-
showWordCount: false,
|
189
|
-
properties: {},
|
190
|
-
allowMultipleMasks: false,
|
191
|
-
addons: [],
|
192
|
-
}, ...sources);
|
193
|
-
}
|
194
|
-
/**
|
195
|
-
* Return the validator as part of the component.
|
196
|
-
*
|
197
|
-
* @return {ValidationChecker}
|
198
|
-
* @constructor
|
199
|
-
*/
|
200
|
-
static get Validator() {
|
201
|
-
return Validator_1.default;
|
202
|
-
}
|
203
|
-
/**
|
204
|
-
* Return the simple condition settings as part of the component.
|
205
|
-
*
|
206
|
-
* @return {Object}
|
207
|
-
*
|
208
|
-
*/
|
209
|
-
static get conditionOperatorsSettings() {
|
210
|
-
return {
|
211
|
-
operators: ['isEqual', 'isNotEqual', 'isEmpty', 'isNotEmpty'],
|
212
|
-
valueComponent() {
|
213
|
-
return { type: 'textfield' };
|
214
|
-
}
|
215
|
-
};
|
216
|
-
}
|
217
|
-
/**
|
218
|
-
* Return the array of possible types of component value absed on its schema.
|
219
|
-
*
|
220
|
-
* @param schema
|
221
|
-
* @return {Array}
|
222
|
-
*
|
223
|
-
*/
|
224
|
-
static savedValueTypes(schema) {
|
225
|
-
schema = schema || {};
|
226
|
-
return FormioUtils.getComponentSavedTypes(schema) || [FormioUtils.componentValueTypes.any];
|
227
|
-
}
|
228
|
-
/**
|
229
|
-
* Provides a table view for this component. Override if you wish to do something different than using getView
|
230
|
-
* method of your instance.
|
231
|
-
*
|
232
|
-
* @param value
|
233
|
-
* @param options
|
234
|
-
*/
|
235
|
-
/* eslint-disable no-unused-vars */
|
236
|
-
static tableView(value, options) { }
|
237
|
-
/* eslint-enable no-unused-vars */
|
238
|
-
/**
|
239
|
-
* Initialize a new Component.
|
240
|
-
*
|
241
|
-
* @param {Object} component - The component JSON you wish to initialize.
|
242
|
-
* @param {Object} options - The options for this component.
|
243
|
-
* @param {Object} data - The global data submission object this component will belong.
|
244
|
-
*/
|
245
|
-
/* eslint-disable max-statements */
|
246
|
-
constructor(component, options, data) {
|
247
|
-
super(Object.assign({
|
248
|
-
renderMode: 'form',
|
249
|
-
attachMode: 'full',
|
250
|
-
noDefaults: false
|
251
|
-
}, options || {}));
|
252
|
-
// Restore the component id.
|
253
|
-
if (component && component.id) {
|
254
|
-
this.id = component.id;
|
255
|
-
}
|
256
|
-
/**
|
257
|
-
* Determines if this component has a condition assigned to it.
|
258
|
-
* @type {null}
|
259
|
-
* @private
|
260
|
-
*/
|
261
|
-
this._hasCondition = null;
|
262
|
-
/**
|
263
|
-
* References to dom elements
|
264
|
-
*/
|
265
|
-
this.refs = {};
|
266
|
-
// Allow global override for any component JSON.
|
267
|
-
if (component &&
|
268
|
-
this.options.components &&
|
269
|
-
this.options.components[component.type]) {
|
270
|
-
lodash_1.default.merge(component, this.options.components[component.type]);
|
271
|
-
}
|
272
|
-
/**
|
273
|
-
* Set the validator instance.
|
274
|
-
*/
|
275
|
-
this.validator = Validator_1.default;
|
276
|
-
/**
|
277
|
-
* The data path to this specific component instance.
|
278
|
-
*
|
279
|
-
* @type {string}
|
280
|
-
*/
|
281
|
-
this.path = '';
|
282
|
-
/**
|
283
|
-
* The Form.io component JSON schema.
|
284
|
-
* @type {*}
|
285
|
-
*/
|
286
|
-
this.component = this.mergeSchema(component || {});
|
287
|
-
// Add the id to the component.
|
288
|
-
this.component.id = this.id;
|
289
|
-
this.afterComponentAssign();
|
290
|
-
// Save off the original component to be used in logic.
|
291
|
-
this.originalComponent = (0, utils_1.fastCloneDeep)(this.component);
|
292
|
-
/**
|
293
|
-
* If the component has been attached
|
294
|
-
*/
|
295
|
-
this.attached = false;
|
296
|
-
/**
|
297
|
-
* If the component has been rendered
|
298
|
-
*/
|
299
|
-
this.rendered = false;
|
300
|
-
/**
|
301
|
-
* The data object in which this component resides.
|
302
|
-
* @type {*}
|
303
|
-
*/
|
304
|
-
this._data = data || {};
|
305
|
-
/**
|
306
|
-
* The existing error that this component has.
|
307
|
-
* @type {string}
|
308
|
-
*/
|
309
|
-
this.error = '';
|
310
|
-
/**
|
311
|
-
* Tool tip text after processing
|
312
|
-
* @type {string}
|
313
|
-
*/
|
314
|
-
this.tooltip = '';
|
315
|
-
/**
|
316
|
-
* The row path of this component.
|
317
|
-
* @type {number}
|
318
|
-
*/
|
319
|
-
this.row = this.options.row;
|
320
|
-
/**
|
321
|
-
* Determines if this component is disabled, or not.
|
322
|
-
*
|
323
|
-
* @type {boolean}
|
324
|
-
*/
|
325
|
-
this._disabled = (0, utils_1.boolValue)(this.component.disabled) ? this.component.disabled : false;
|
326
|
-
/**
|
327
|
-
* Points to the root component, usually the FormComponent.
|
328
|
-
*
|
329
|
-
* @type {Component}
|
330
|
-
*/
|
331
|
-
this.root = this.options.root;
|
332
|
-
this.localRoot = this.options.localRoot;
|
333
|
-
/**
|
334
|
-
* If this input has been input and provided value.
|
335
|
-
*
|
336
|
-
* @type {boolean}
|
337
|
-
*/
|
338
|
-
this.pristine = true;
|
339
|
-
/**
|
340
|
-
* Points to the parent component.
|
341
|
-
*
|
342
|
-
* @type {Component}
|
343
|
-
*/
|
344
|
-
this.parent = this.options.parent;
|
345
|
-
this.options.name = this.options.name || 'data';
|
346
|
-
/**
|
347
|
-
* The validators that are assigned to this component.
|
348
|
-
* @type {[string]}
|
349
|
-
*/
|
350
|
-
this.validators = ['required', 'minLength', 'maxLength', 'minWords', 'maxWords', 'custom', 'pattern', 'json', 'mask'];
|
351
|
-
this._path = '';
|
352
|
-
// Nested forms don't have parents so we need to pass their path in.
|
353
|
-
this._parentPath = this.options.parentPath || '';
|
354
|
-
// Needs for Nextgen Rules Engine
|
355
|
-
this.resetCaches();
|
356
|
-
/**
|
357
|
-
* Determines if this component is visible, or not.
|
358
|
-
*/
|
359
|
-
this._parentVisible = this.options.hasOwnProperty('parentVisible') ? this.options.parentVisible : true;
|
360
|
-
this._visible = this._parentVisible && this.conditionallyVisible(null, data);
|
361
|
-
this._parentDisabled = false;
|
362
|
-
/**
|
363
|
-
* Used to trigger a new change in this component.
|
364
|
-
* @type {function} - Call to trigger a change in this component.
|
365
|
-
*/
|
366
|
-
let changes = [];
|
367
|
-
let lastChanged = null;
|
368
|
-
let triggerArgs = [];
|
369
|
-
const _triggerChange = lodash_1.default.debounce((...args) => {
|
370
|
-
if (this.root) {
|
371
|
-
this.root.changing = false;
|
372
|
-
}
|
373
|
-
triggerArgs = [];
|
374
|
-
if (!args[1] && lastChanged) {
|
375
|
-
// Set the changed component if one isn't provided.
|
376
|
-
args[1] = lastChanged;
|
377
|
-
}
|
378
|
-
if (lodash_1.default.isEmpty(args[0]) && lastChanged) {
|
379
|
-
// Set the flags if it is empty and lastChanged exists.
|
380
|
-
args[0] = lastChanged.flags;
|
381
|
-
}
|
382
|
-
lastChanged = null;
|
383
|
-
args[3] = changes;
|
384
|
-
const retVal = this.onChange(...args);
|
385
|
-
changes = [];
|
386
|
-
return retVal;
|
387
|
-
}, 100);
|
388
|
-
this.triggerChange = (...args) => {
|
389
|
-
if (args[1]) {
|
390
|
-
// Make sure that during the debounce that we always track lastChanged component, even if they
|
391
|
-
// don't provide one later.
|
392
|
-
lastChanged = args[1];
|
393
|
-
changes.push(lastChanged);
|
394
|
-
}
|
395
|
-
if (this.root) {
|
396
|
-
this.root.changing = true;
|
397
|
-
}
|
398
|
-
if (args.length) {
|
399
|
-
triggerArgs = args;
|
400
|
-
}
|
401
|
-
return _triggerChange(...triggerArgs);
|
402
|
-
};
|
403
|
-
/**
|
404
|
-
* Used to trigger a redraw event within this component.
|
405
|
-
*
|
406
|
-
* @type {Function}
|
407
|
-
*/
|
408
|
-
this.triggerRedraw = lodash_1.default.debounce(this.redraw.bind(this), 100);
|
409
|
-
/**
|
410
|
-
* list of attached tooltips
|
411
|
-
* @type {Array}
|
412
|
-
*/
|
413
|
-
this.tooltips = [];
|
414
|
-
/**
|
415
|
-
* List of attached addons
|
416
|
-
* @type {Array}
|
417
|
-
*/
|
418
|
-
this.addons = [];
|
419
|
-
// To force this component to be invalid.
|
420
|
-
this.invalid = false;
|
421
|
-
if (this.component) {
|
422
|
-
this.type = this.component.type;
|
423
|
-
if (this.allowData && this.key) {
|
424
|
-
this.options.name += `[${this.key}]`;
|
425
|
-
// If component is visible or not set to clear on hide, set the default value.
|
426
|
-
if (this.visible || !this.component.clearOnHide) {
|
427
|
-
if (!this.hasValue()) {
|
428
|
-
if (this.shouldAddDefaultValue) {
|
429
|
-
this.dataValue = this.defaultValue;
|
430
|
-
}
|
431
|
-
}
|
432
|
-
else {
|
433
|
-
// Ensure the dataValue is set.
|
434
|
-
/* eslint-disable no-self-assign */
|
435
|
-
this.dataValue = this.dataValue;
|
436
|
-
/* eslint-enable no-self-assign */
|
437
|
-
}
|
438
|
-
}
|
439
|
-
}
|
440
|
-
/**
|
441
|
-
* The element information for creating the input element.
|
442
|
-
* @type {*}
|
443
|
-
*/
|
444
|
-
this.info = this.elementInfo();
|
445
|
-
}
|
446
|
-
// Allow anyone to hook into the component creation.
|
447
|
-
this.hook('component');
|
448
|
-
if (!this.options.skipInit) {
|
449
|
-
this.init();
|
450
|
-
}
|
451
|
-
}
|
452
|
-
/* eslint-enable max-statements */
|
453
|
-
get data() {
|
454
|
-
return this._data;
|
455
|
-
}
|
456
|
-
set data(value) {
|
457
|
-
this._data = value;
|
458
|
-
}
|
459
|
-
mergeSchema(component = {}) {
|
460
|
-
return lodash_1.default.defaultsDeep(component, this.defaultSchema);
|
461
|
-
}
|
462
|
-
// Allow componets to notify when ready.
|
463
|
-
get ready() {
|
464
|
-
return Promise.resolve(this);
|
465
|
-
}
|
466
|
-
get isPDFReadOnlyMode() {
|
467
|
-
return this.parent &&
|
468
|
-
this.parent.form &&
|
469
|
-
(this.parent.form.display === 'pdf') &&
|
470
|
-
this.options.readOnly;
|
471
|
-
}
|
472
|
-
get labelInfo() {
|
473
|
-
const label = {};
|
474
|
-
label.hidden = this.labelIsHidden();
|
475
|
-
label.className = '';
|
476
|
-
label.labelPosition = this.component.labelPosition;
|
477
|
-
label.tooltipClass = `${this.iconClass('question-sign')} text-muted`;
|
478
|
-
const isPDFReadOnlyMode = this.isPDFReadOnlyMode;
|
479
|
-
if (this.hasInput && this.component.validate && (0, utils_1.boolValue)(this.component.validate.required) && !isPDFReadOnlyMode) {
|
480
|
-
label.className += ' field-required';
|
481
|
-
}
|
482
|
-
if (label.hidden) {
|
483
|
-
label.className += ' control-label--hidden';
|
484
|
-
}
|
485
|
-
if (this.info.attr.id) {
|
486
|
-
label.for = this.info.attr.id;
|
487
|
-
}
|
488
|
-
return label;
|
489
|
-
}
|
490
|
-
init() {
|
491
|
-
var _a;
|
492
|
-
this.disabled = this.shouldDisabled;
|
493
|
-
this._visible = this.conditionallyVisible(null, null);
|
494
|
-
if ((_a = this.component.addons) === null || _a === void 0 ? void 0 : _a.length) {
|
495
|
-
this.component.addons.forEach((addon) => this.createAddon(addon));
|
496
|
-
}
|
497
|
-
}
|
498
|
-
afterComponentAssign() {
|
499
|
-
//implement in extended classes
|
500
|
-
}
|
501
|
-
createAddon(addonConfiguration) {
|
502
|
-
var _a;
|
503
|
-
const name = addonConfiguration.name;
|
504
|
-
if (!name) {
|
505
|
-
return;
|
506
|
-
}
|
507
|
-
const settings = ((_a = addonConfiguration.settings) === null || _a === void 0 ? void 0 : _a.data) || {};
|
508
|
-
const Addon = addons_1.default[name.value];
|
509
|
-
let addon = null;
|
510
|
-
if (Addon) {
|
511
|
-
const supportedComponents = Addon.info.supportedComponents;
|
512
|
-
const supportsThisComponentType = !(supportedComponents === null || supportedComponents === void 0 ? void 0 : supportedComponents.length) ||
|
513
|
-
supportedComponents.indexOf(this.component.type) !== -1;
|
514
|
-
if (supportsThisComponentType) {
|
515
|
-
addon = new Addon(settings, this);
|
516
|
-
this.addons.push(addon);
|
517
|
-
}
|
518
|
-
else {
|
519
|
-
console.warn(`Addon ${name.label} does not support component of type ${this.component.type}.`);
|
520
|
-
}
|
521
|
-
}
|
522
|
-
return addon;
|
523
|
-
}
|
524
|
-
teardown() {
|
525
|
-
if (this.element) {
|
526
|
-
delete this.element.component;
|
527
|
-
delete this.element;
|
528
|
-
}
|
529
|
-
delete this._currentForm;
|
530
|
-
delete this.parent;
|
531
|
-
delete this.root;
|
532
|
-
delete this.triggerChange;
|
533
|
-
delete this.triggerRedraw;
|
534
|
-
if (this.options) {
|
535
|
-
delete this.options.root;
|
536
|
-
delete this.options.parent;
|
537
|
-
delete this.options.i18next;
|
538
|
-
}
|
539
|
-
super.teardown();
|
540
|
-
}
|
541
|
-
destroy(all = false) {
|
542
|
-
super.destroy(all);
|
543
|
-
this.detach();
|
544
|
-
this.addons.forEach((addon) => addon.destroy());
|
545
|
-
if (all) {
|
546
|
-
this.teardown();
|
547
|
-
}
|
548
|
-
}
|
549
|
-
get shouldDisabled() {
|
550
|
-
return this.options.readOnly || this.component.disabled || (this.options.hasOwnProperty('disabled') && this.options.disabled[this.key]);
|
551
|
-
}
|
552
|
-
get isInputComponent() {
|
553
|
-
return !this.component.hasOwnProperty('input') || this.component.input;
|
554
|
-
}
|
555
|
-
get allowData() {
|
556
|
-
return this.hasInput;
|
557
|
-
}
|
558
|
-
get hasInput() {
|
559
|
-
return this.isInputComponent || (this.refs.input && this.refs.input.length);
|
560
|
-
}
|
561
|
-
get defaultSchema() {
|
562
|
-
return Component.schema();
|
563
|
-
}
|
564
|
-
get key() {
|
565
|
-
return lodash_1.default.get(this.component, 'key', '');
|
566
|
-
}
|
567
|
-
set parentVisible(value) {
|
568
|
-
this._parentVisible = value;
|
569
|
-
}
|
570
|
-
get parentVisible() {
|
571
|
-
return this._parentVisible;
|
572
|
-
}
|
573
|
-
set parentDisabled(value) {
|
574
|
-
this._parentDisabled = value;
|
575
|
-
}
|
576
|
-
get parentDisabled() {
|
577
|
-
return this._parentDisabled;
|
578
|
-
}
|
579
|
-
shouldForceVisibility(component, visibility) {
|
580
|
-
if (!this.options[visibility]) {
|
581
|
-
return false;
|
582
|
-
}
|
583
|
-
if (!component) {
|
584
|
-
component = this.component;
|
585
|
-
}
|
586
|
-
if (lodash_1.default.isArray(this.options[visibility])) {
|
587
|
-
return this.options[visibility].includes(component.key);
|
588
|
-
}
|
589
|
-
return this.options[visibility][component.key];
|
590
|
-
}
|
591
|
-
shouldForceHide(component) {
|
592
|
-
return this.shouldForceVisibility(component, 'hide');
|
593
|
-
}
|
594
|
-
shouldForceShow(component) {
|
595
|
-
return this.shouldForceVisibility(component, 'show');
|
596
|
-
}
|
597
|
-
/**
|
598
|
-
*
|
599
|
-
* @param value {boolean}
|
600
|
-
*/
|
601
|
-
set visible(value) {
|
602
|
-
if (this._visible !== value) {
|
603
|
-
// Skip if this component is set to visible and is supposed to be hidden.
|
604
|
-
if (value && this.shouldForceHide()) {
|
605
|
-
return;
|
606
|
-
}
|
607
|
-
// Skip if this component is set to hidden and is supposed to be shown.
|
608
|
-
if (!value && this.shouldForceShow()) {
|
609
|
-
return;
|
610
|
-
}
|
611
|
-
this._visible = value;
|
612
|
-
this.clearOnHide();
|
613
|
-
this.redraw();
|
614
|
-
}
|
615
|
-
}
|
616
|
-
/**
|
617
|
-
*
|
618
|
-
* @returns {boolean}
|
619
|
-
*/
|
620
|
-
get visible() {
|
621
|
-
// Show only if visibility changes or if we are in builder mode or if hidden fields should be shown.
|
622
|
-
if (this.builderMode || this.previewMode || this.options.showHiddenFields) {
|
623
|
-
return true;
|
624
|
-
}
|
625
|
-
if (this.shouldForceHide()) {
|
626
|
-
return false;
|
627
|
-
}
|
628
|
-
if (this.shouldForceShow()) {
|
629
|
-
return true;
|
630
|
-
}
|
631
|
-
return this._visible && this._parentVisible;
|
632
|
-
}
|
633
|
-
get currentForm() {
|
634
|
-
return this._currentForm;
|
635
|
-
}
|
636
|
-
set currentForm(instance) {
|
637
|
-
this._currentForm = instance;
|
638
|
-
}
|
639
|
-
get fullMode() {
|
640
|
-
return this.options.attachMode === 'full';
|
641
|
-
}
|
642
|
-
get builderMode() {
|
643
|
-
return this.options.attachMode === 'builder';
|
644
|
-
}
|
645
|
-
get calculatedPath() {
|
646
|
-
console.error('component.calculatedPath was deprecated, use component.path instead.');
|
647
|
-
return this.path;
|
648
|
-
}
|
649
|
-
get labelPosition() {
|
650
|
-
return this.component.labelPosition;
|
651
|
-
}
|
652
|
-
get labelWidth() {
|
653
|
-
const width = this.component.labelWidth;
|
654
|
-
return width >= 0 ? width : 30;
|
655
|
-
}
|
656
|
-
get labelMargin() {
|
657
|
-
const margin = this.component.labelMargin;
|
658
|
-
return margin >= 0 ? margin : 3;
|
659
|
-
}
|
660
|
-
get isAdvancedLabel() {
|
661
|
-
return [
|
662
|
-
'left-left',
|
663
|
-
'left-right',
|
664
|
-
'right-left',
|
665
|
-
'right-right'
|
666
|
-
].includes(this.labelPosition);
|
667
|
-
}
|
668
|
-
get labelPositions() {
|
669
|
-
return this.labelPosition.split('-');
|
670
|
-
}
|
671
|
-
get skipInEmail() {
|
672
|
-
return false;
|
673
|
-
}
|
674
|
-
rightDirection(direction) {
|
675
|
-
if (this.options.condensedMode) {
|
676
|
-
return false;
|
677
|
-
}
|
678
|
-
return direction === 'right';
|
679
|
-
}
|
680
|
-
getLabelInfo(isCondensed = false) {
|
681
|
-
const isRightPosition = this.rightDirection(this.labelPositions[0]);
|
682
|
-
const isLeftPosition = this.labelPositions[0] === 'left' || isCondensed;
|
683
|
-
const isRightAlign = this.rightDirection(this.labelPositions[1]);
|
684
|
-
let contentMargin = '';
|
685
|
-
if (this.component.hideLabel) {
|
686
|
-
const margin = this.labelWidth + this.labelMargin;
|
687
|
-
contentMargin = isRightPosition ? `margin-right: ${margin}%` : '';
|
688
|
-
contentMargin = isLeftPosition ? `margin-left: ${margin}%` : '';
|
689
|
-
}
|
690
|
-
const labelStyles = `
|
691
|
-
flex: ${this.labelWidth};
|
692
|
-
${isRightPosition ? 'margin-left' : 'margin-right'}: ${this.labelMargin}%;
|
693
|
-
`;
|
694
|
-
const contentStyles = `
|
695
|
-
flex: ${100 - this.labelWidth - this.labelMargin};
|
696
|
-
${contentMargin};
|
697
|
-
${this.component.hideLabel ? `max-width: ${100 - this.labelWidth - this.labelMargin}` : ''};
|
698
|
-
`;
|
699
|
-
return {
|
700
|
-
isRightPosition,
|
701
|
-
isRightAlign,
|
702
|
-
labelStyles,
|
703
|
-
contentStyles
|
704
|
-
};
|
705
|
-
}
|
706
|
-
/**
|
707
|
-
* Returns only the schema that is different from the default.
|
708
|
-
*
|
709
|
-
* @param schema
|
710
|
-
* @param defaultSchema
|
711
|
-
*/
|
712
|
-
getModifiedSchema(schema, defaultSchema, recursion) {
|
713
|
-
const modified = {};
|
714
|
-
if (!defaultSchema) {
|
715
|
-
return schema;
|
716
|
-
}
|
717
|
-
lodash_1.default.each(schema, (val, key) => {
|
718
|
-
if (!lodash_1.default.isArray(val) && lodash_1.default.isObject(val) && defaultSchema.hasOwnProperty(key)) {
|
719
|
-
const subModified = this.getModifiedSchema(val, defaultSchema[key], true);
|
720
|
-
if (!lodash_1.default.isEmpty(subModified)) {
|
721
|
-
modified[key] = subModified;
|
722
|
-
}
|
723
|
-
}
|
724
|
-
else if (lodash_1.default.isArray(val)) {
|
725
|
-
if (val.length !== 0 && !lodash_1.default.isEqual(val, defaultSchema[key])) {
|
726
|
-
modified[key] = val;
|
727
|
-
}
|
728
|
-
}
|
729
|
-
else if ((!recursion && (key === 'type')) ||
|
730
|
-
(!recursion && (key === 'key')) ||
|
731
|
-
(!recursion && (key === 'label')) ||
|
732
|
-
(!recursion && (key === 'input')) ||
|
733
|
-
(!recursion && (key === 'tableView')) ||
|
734
|
-
(val !== '' && !defaultSchema.hasOwnProperty(key)) ||
|
735
|
-
(val !== '' && val !== defaultSchema[key]) ||
|
736
|
-
(defaultSchema[key] && val !== defaultSchema[key])) {
|
737
|
-
modified[key] = val;
|
738
|
-
}
|
739
|
-
});
|
740
|
-
return modified;
|
741
|
-
}
|
742
|
-
/**
|
743
|
-
* Returns the JSON schema for this component.
|
744
|
-
*/
|
745
|
-
get schema() {
|
746
|
-
return (0, utils_1.fastCloneDeep)(this.getModifiedSchema(lodash_1.default.omit(this.component, 'id'), this.defaultSchema));
|
747
|
-
}
|
748
|
-
/**
|
749
|
-
* Returns true if component is inside DataGrid
|
750
|
-
*/
|
751
|
-
get isInDataGrid() {
|
752
|
-
return this.inDataGrid;
|
753
|
-
}
|
754
|
-
/**
|
755
|
-
* Translate a text using the i18n system.
|
756
|
-
*
|
757
|
-
* @param {string} text - The i18n identifier.
|
758
|
-
* @param {Object} params - The i18n parameters to use for translation.
|
759
|
-
*/
|
760
|
-
t(text, params = {}, ...args) {
|
761
|
-
if (!text) {
|
762
|
-
return '';
|
763
|
-
}
|
764
|
-
// Use _userInput: true to ignore translations from defaults
|
765
|
-
if (text in en_1.default && params._userInput) {
|
766
|
-
return text;
|
767
|
-
}
|
768
|
-
params.data = this.rootValue;
|
769
|
-
params.row = this.data;
|
770
|
-
params.component = this.component;
|
771
|
-
return super.t(text, params, ...args);
|
772
|
-
}
|
773
|
-
labelIsHidden() {
|
774
|
-
return !this.component.label ||
|
775
|
-
((!this.isInDataGrid && this.component.hideLabel) ||
|
776
|
-
(this.isInDataGrid && !this.component.dataGridLabel) ||
|
777
|
-
this.options.inputsOnly) && !this.builderMode;
|
778
|
-
}
|
779
|
-
transform(type, value) {
|
780
|
-
const frameworkTemplates = this.options.template ? Templates_1.default.templates[this.options.template] : Templates_1.default.current;
|
781
|
-
return frameworkTemplates.hasOwnProperty('transform')
|
782
|
-
? frameworkTemplates.transform(type, value, this)
|
783
|
-
: (type, value) => value;
|
784
|
-
}
|
785
|
-
getTemplate(names, modes) {
|
786
|
-
modes = Array.isArray(modes) ? modes : [modes];
|
787
|
-
names = Array.isArray(names) ? names : [names];
|
788
|
-
if (!modes.includes('form')) {
|
789
|
-
modes.push('form');
|
790
|
-
}
|
791
|
-
let result = null;
|
792
|
-
if (this.options.templates) {
|
793
|
-
result = this.checkTemplate(this.options.templates, names, modes);
|
794
|
-
if (result) {
|
795
|
-
return result;
|
796
|
-
}
|
797
|
-
}
|
798
|
-
const frameworkTemplates = this.options.template ? Templates_1.default.templates[this.options.template] : Templates_1.default.current;
|
799
|
-
result = this.checkTemplate(frameworkTemplates, names, modes);
|
800
|
-
if (result) {
|
801
|
-
return result;
|
802
|
-
}
|
803
|
-
// Default back to bootstrap if not defined.
|
804
|
-
const name = names[names.length - 1];
|
805
|
-
const templatesByName = Templates_1.default.defaultTemplates[name];
|
806
|
-
if (!templatesByName) {
|
807
|
-
return `Unknown template: ${name}`;
|
808
|
-
}
|
809
|
-
const templateByMode = this.checkTemplateMode(templatesByName, modes);
|
810
|
-
if (templateByMode) {
|
811
|
-
return templateByMode;
|
812
|
-
}
|
813
|
-
return templatesByName.form;
|
814
|
-
}
|
815
|
-
checkTemplate(templates, names, modes) {
|
816
|
-
for (const name of names) {
|
817
|
-
const templatesByName = templates[name];
|
818
|
-
if (templatesByName) {
|
819
|
-
const templateByMode = this.checkTemplateMode(templatesByName, modes);
|
820
|
-
if (templateByMode) {
|
821
|
-
return templateByMode;
|
822
|
-
}
|
823
|
-
}
|
824
|
-
}
|
825
|
-
return null;
|
826
|
-
}
|
827
|
-
checkTemplateMode(templatesByName, modes) {
|
828
|
-
for (const mode of modes) {
|
829
|
-
const templateByMode = templatesByName[mode];
|
830
|
-
if (templateByMode) {
|
831
|
-
return templateByMode;
|
832
|
-
}
|
833
|
-
}
|
834
|
-
return null;
|
835
|
-
}
|
836
|
-
getFormattedAttribute(attr) {
|
837
|
-
return attr ? this.t(attr, { _userInput: true }).replace(/"/g, '"') : '';
|
838
|
-
}
|
839
|
-
getFormattedTooltip(tooltipValue) {
|
840
|
-
const tooltip = this.interpolate(tooltipValue || '').replace(/(?:\r\n|\r|\n)/g, '<br />');
|
841
|
-
return this.getFormattedAttribute(tooltip);
|
842
|
-
}
|
843
|
-
isHtmlRenderMode() {
|
844
|
-
return this.options.renderMode === 'html';
|
845
|
-
}
|
846
|
-
renderTemplate(name, data = {}, modeOption) {
|
847
|
-
// Need to make this fall back to form if renderMode is not found similar to how we search templates.
|
848
|
-
const mode = modeOption || this.options.renderMode || 'form';
|
849
|
-
data.component = this.component;
|
850
|
-
data.self = this;
|
851
|
-
data.options = this.options;
|
852
|
-
data.readOnly = this.options.readOnly;
|
853
|
-
data.iconClass = this.iconClass.bind(this);
|
854
|
-
data.size = this.size.bind(this);
|
855
|
-
data.t = this.t.bind(this);
|
856
|
-
data.transform = this.transform.bind(this);
|
857
|
-
data.id = data.id || this.id;
|
858
|
-
data.key = data.key || this.key;
|
859
|
-
data.value = data.value || this.dataValue;
|
860
|
-
data.disabled = this.disabled;
|
861
|
-
data.builder = this.builderMode;
|
862
|
-
data.render = (...args) => {
|
863
|
-
console.warn(`Form.io 'render' template function is deprecated.
|
864
|
-
If you need to render template (template A) inside of another template (template B),
|
865
|
-
pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B`);
|
866
|
-
return this.renderTemplate(...args);
|
867
|
-
};
|
868
|
-
data.label = data.labelInfo || this.labelInfo;
|
869
|
-
data.tooltip = this.getFormattedTooltip(this.component.tooltip);
|
870
|
-
// Allow more specific template names
|
871
|
-
const names = [
|
872
|
-
`${name}-${this.component.type}-${this.key}`,
|
873
|
-
`${name}-${this.component.type}`,
|
874
|
-
`${name}-${this.key}`,
|
875
|
-
`${name}`,
|
876
|
-
];
|
877
|
-
// Allow template alters.
|
878
|
-
return this.hook(`render${name.charAt(0).toUpperCase() + name.substring(1, name.length)}`, this.interpolate(this.getTemplate(names, mode), data), data, mode);
|
879
|
-
}
|
880
|
-
/**
|
881
|
-
* Sanitize an html string.
|
882
|
-
*
|
883
|
-
* @param string
|
884
|
-
* @returns {*}
|
885
|
-
*/
|
886
|
-
sanitize(dirty, forceSanitize, options) {
|
887
|
-
var _a;
|
888
|
-
// No need to sanitize when generating PDF'S since no users interact with the form.
|
889
|
-
if ((!this.shouldSanitizeValue && !forceSanitize) || ((this.options.pdf) && !forceSanitize)) {
|
890
|
-
return dirty;
|
891
|
-
}
|
892
|
-
return FormioUtils.sanitize(dirty, {
|
893
|
-
sanitizeConfig: lodash_1.default.merge(((_a = this.options) === null || _a === void 0 ? void 0 : _a.sanitizeConfig) || {}, options || {}),
|
894
|
-
});
|
895
|
-
}
|
896
|
-
/**
|
897
|
-
* Render a template string into html.
|
898
|
-
*
|
899
|
-
* @param template
|
900
|
-
* @param data
|
901
|
-
* @param actions
|
902
|
-
*
|
903
|
-
* @return {HTMLElement|String} - The created element or an empty string if template is not specified.
|
904
|
-
*/
|
905
|
-
renderString(template, data) {
|
906
|
-
if (!template) {
|
907
|
-
return '';
|
908
|
-
}
|
909
|
-
// Interpolate the template and populate
|
910
|
-
return this.interpolate(template, data);
|
911
|
-
}
|
912
|
-
performInputMapping(input) {
|
913
|
-
return input;
|
914
|
-
}
|
915
|
-
get widget() {
|
916
|
-
var _a;
|
917
|
-
const settings = this.component.widget;
|
918
|
-
if (settings && ((_a = this.root) === null || _a === void 0 ? void 0 : _a.shadowRoot)) {
|
919
|
-
settings.shadowRoot = this.root.shadowRoot;
|
920
|
-
}
|
921
|
-
const widget = settings && widgets_1.default[settings.type] ? new widgets_1.default[settings.type](settings, this.component, this) : null;
|
922
|
-
return widget;
|
923
|
-
}
|
924
|
-
getBrowserLanguage() {
|
925
|
-
const nav = window.navigator;
|
926
|
-
const browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'];
|
927
|
-
let language;
|
928
|
-
// support for HTML 5.1 "navigator.languages"
|
929
|
-
if (Array.isArray(nav.languages)) {
|
930
|
-
for (let i = 0; i < nav.languages.length; i++) {
|
931
|
-
language = nav.languages[i];
|
932
|
-
if (language && language.length) {
|
933
|
-
return language.split(';')[0];
|
934
|
-
}
|
935
|
-
}
|
936
|
-
}
|
937
|
-
// support for other well known properties in browsers
|
938
|
-
for (let i = 0; i < browserLanguagePropertyKeys.length; i++) {
|
939
|
-
language = nav[browserLanguagePropertyKeys[i]];
|
940
|
-
if (language && language.length) {
|
941
|
-
return language.split(';')[0];
|
942
|
-
}
|
943
|
-
}
|
944
|
-
return null;
|
945
|
-
}
|
946
|
-
/**
|
947
|
-
* Called before a next and previous page is triggered allowing the components
|
948
|
-
* to perform special functions.
|
949
|
-
*
|
950
|
-
* @return {*}
|
951
|
-
*/
|
952
|
-
beforePage() {
|
953
|
-
return Promise.resolve(true);
|
954
|
-
}
|
955
|
-
beforeNext() {
|
956
|
-
return this.beforePage(true);
|
957
|
-
}
|
958
|
-
/**
|
959
|
-
* Called before a submission is triggered allowing the components
|
960
|
-
* to perform special async functions.
|
961
|
-
*
|
962
|
-
* @return {*}
|
963
|
-
*/
|
964
|
-
beforeSubmit() {
|
965
|
-
return Promise.resolve(true);
|
966
|
-
}
|
967
|
-
/**
|
968
|
-
* Return the submission timezone.
|
969
|
-
*
|
970
|
-
* @return {*}
|
971
|
-
*/
|
972
|
-
get submissionTimezone() {
|
973
|
-
this.options.submissionTimezone = this.options.submissionTimezone || lodash_1.default.get(this.root, 'options.submissionTimezone');
|
974
|
-
return this.options.submissionTimezone;
|
975
|
-
}
|
976
|
-
get timezone() {
|
977
|
-
return this.getTimezone(this.component);
|
978
|
-
}
|
979
|
-
getTimezone(settings) {
|
980
|
-
if (settings.timezone) {
|
981
|
-
return settings.timezone;
|
982
|
-
}
|
983
|
-
if (settings.displayInTimezone === 'utc') {
|
984
|
-
return 'UTC';
|
985
|
-
}
|
986
|
-
const submissionTimezone = this.submissionTimezone;
|
987
|
-
if (submissionTimezone &&
|
988
|
-
((settings.displayInTimezone === 'submission') ||
|
989
|
-
((this.options.pdf || this.options.server) && (settings.displayInTimezone === 'viewer')))) {
|
990
|
-
return submissionTimezone;
|
991
|
-
}
|
992
|
-
// Return current timezone if none are provided.
|
993
|
-
return (0, utils_1.currentTimezone)();
|
994
|
-
}
|
995
|
-
loadRefs(element, refs) {
|
996
|
-
for (const ref in refs) {
|
997
|
-
const refType = refs[ref];
|
998
|
-
const isString = typeof refType === 'string';
|
999
|
-
const selector = isString && refType.includes('scope') ? `:scope > [ref="${ref}"]` : `[ref="${ref}"]`;
|
1000
|
-
if (isString && refType.startsWith('single')) {
|
1001
|
-
this.refs[ref] = element.querySelector(selector);
|
1002
|
-
}
|
1003
|
-
else {
|
1004
|
-
this.refs[ref] = element.querySelectorAll(selector);
|
1005
|
-
}
|
1006
|
-
}
|
1007
|
-
}
|
1008
|
-
setOpenModalElement(template) {
|
1009
|
-
this.componentModal.setOpenModalElement(template || this.getModalPreviewTemplate());
|
1010
|
-
}
|
1011
|
-
getModalPreviewTemplate() {
|
1012
|
-
var _a;
|
1013
|
-
const dataValue = this.component.type === 'password' ? this.dataValue.replace(/./g, '•') : this.dataValue;
|
1014
|
-
const message = this.error ? {
|
1015
|
-
level: 'error',
|
1016
|
-
message: this.error.message,
|
1017
|
-
} : '';
|
1018
|
-
let modalLabel;
|
1019
|
-
if (this.hasInput && ((_a = this.component.validate) === null || _a === void 0 ? void 0 : _a.required) && !this.isPDFReadOnlyMode) {
|
1020
|
-
modalLabel = { className: 'field-required' };
|
1021
|
-
}
|
1022
|
-
return this.renderTemplate('modalPreview', {
|
1023
|
-
previewText: this.getValueAsString(dataValue, { modalPreview: true }) || this.t('Click to set value'),
|
1024
|
-
messages: message && this.renderTemplate('message', message),
|
1025
|
-
labelInfo: modalLabel,
|
1026
|
-
});
|
1027
|
-
}
|
1028
|
-
build(element) {
|
1029
|
-
element = element || this.element;
|
1030
|
-
this.empty(element);
|
1031
|
-
this.setContent(element, this.render());
|
1032
|
-
return this.attach(element);
|
1033
|
-
}
|
1034
|
-
get hasModalSaveButton() {
|
1035
|
-
return true;
|
1036
|
-
}
|
1037
|
-
render(children = `Unknown component: ${this.component.type}`, topLevel = false) {
|
1038
|
-
const isVisible = this.visible;
|
1039
|
-
this.rendered = true;
|
1040
|
-
if (!this.builderMode && !this.previewMode && this.component.modalEdit) {
|
1041
|
-
return ComponentModal_1.default.render(this, {
|
1042
|
-
visible: isVisible,
|
1043
|
-
showSaveButton: this.hasModalSaveButton,
|
1044
|
-
id: this.id,
|
1045
|
-
classes: this.className,
|
1046
|
-
styles: this.customStyle,
|
1047
|
-
children
|
1048
|
-
}, topLevel);
|
1049
|
-
}
|
1050
|
-
else {
|
1051
|
-
return this.renderTemplate('component', {
|
1052
|
-
visible: isVisible,
|
1053
|
-
id: this.id,
|
1054
|
-
classes: this.className,
|
1055
|
-
styles: this.customStyle,
|
1056
|
-
children
|
1057
|
-
}, topLevel);
|
1058
|
-
}
|
1059
|
-
}
|
1060
|
-
attachTooltips(toolTipsRefs) {
|
1061
|
-
toolTipsRefs === null || toolTipsRefs === void 0 ? void 0 : toolTipsRefs.forEach((tooltip, index) => {
|
1062
|
-
if (tooltip) {
|
1063
|
-
const tooltipAttribute = tooltip.getAttribute('data-tooltip');
|
1064
|
-
const tooltipDataTitle = tooltip.getAttribute('data-title');
|
1065
|
-
const tooltipText = this.interpolate(tooltipDataTitle || tooltipAttribute)
|
1066
|
-
.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
1067
|
-
this.tooltips[index] = (0, tippy_js_1.default)(tooltip, {
|
1068
|
-
allowHTML: true,
|
1069
|
-
trigger: 'mouseenter click focus',
|
1070
|
-
placement: 'right',
|
1071
|
-
zIndex: 10000,
|
1072
|
-
interactive: true,
|
1073
|
-
content: this.t(tooltipText, { _userInput: true }),
|
1074
|
-
});
|
1075
|
-
}
|
1076
|
-
});
|
1077
|
-
}
|
1078
|
-
createComponentModal(element, modalShouldBeOpened, currentValue) {
|
1079
|
-
return new ComponentModal_1.default(this, element, modalShouldBeOpened, currentValue);
|
1080
|
-
}
|
1081
|
-
attach(element) {
|
1082
|
-
if (!this.builderMode && !this.previewMode && this.component.modalEdit) {
|
1083
|
-
const modalShouldBeOpened = this.componentModal ? this.componentModal.isOpened : false;
|
1084
|
-
const currentValue = modalShouldBeOpened ? this.componentModal.currentValue : this.dataValue;
|
1085
|
-
const openModalTemplate = this.componentModal && modalShouldBeOpened
|
1086
|
-
? this.componentModal.openModalTemplate
|
1087
|
-
: null;
|
1088
|
-
this.componentModal = this.createComponentModal(element, modalShouldBeOpened, currentValue);
|
1089
|
-
this.setOpenModalElement(openModalTemplate);
|
1090
|
-
}
|
1091
|
-
this.attached = true;
|
1092
|
-
this.setElement(element);
|
1093
|
-
element.component = this;
|
1094
|
-
// If this already has an id, get it from the dom. If SSR, it could be different from the initiated id.
|
1095
|
-
if (this.element.id) {
|
1096
|
-
this.id = this.element.id;
|
1097
|
-
this.component.id = this.id;
|
1098
|
-
}
|
1099
|
-
this.loadRefs(element, {
|
1100
|
-
messageContainer: 'single',
|
1101
|
-
tooltip: 'multiple'
|
1102
|
-
});
|
1103
|
-
this.attachTooltips(this.refs.tooltip);
|
1104
|
-
// Attach logic.
|
1105
|
-
this.attachLogic();
|
1106
|
-
this.autofocus();
|
1107
|
-
// Allow global attach.
|
1108
|
-
this.hook('attachComponent', element, this);
|
1109
|
-
// Allow attach per component type.
|
1110
|
-
const type = this.component.type;
|
1111
|
-
if (type) {
|
1112
|
-
this.hook(`attach${type.charAt(0).toUpperCase() + type.substring(1, type.length)}`, element, this);
|
1113
|
-
}
|
1114
|
-
this.restoreFocus();
|
1115
|
-
this.addons.forEach((addon) => addon.attach(element));
|
1116
|
-
return Promise.resolve();
|
1117
|
-
}
|
1118
|
-
restoreFocus() {
|
1119
|
-
var _a, _b, _c;
|
1120
|
-
const isFocused = ((_b = (_a = this.root) === null || _a === void 0 ? void 0 : _a.focusedComponent) === null || _b === void 0 ? void 0 : _b.path) === this.path;
|
1121
|
-
if (isFocused) {
|
1122
|
-
this.loadRefs(this.element, { input: 'multiple' });
|
1123
|
-
this.focus((_c = this.root.currentSelection) === null || _c === void 0 ? void 0 : _c.index);
|
1124
|
-
this.restoreCaretPosition();
|
1125
|
-
}
|
1126
|
-
}
|
1127
|
-
addShortcut(element, shortcut) {
|
1128
|
-
// Avoid infinite recursion.
|
1129
|
-
if (!element || !this.root || (this.root === this)) {
|
1130
|
-
return;
|
1131
|
-
}
|
1132
|
-
if (!shortcut) {
|
1133
|
-
shortcut = this.component.shortcut;
|
1134
|
-
}
|
1135
|
-
this.root.addShortcut(element, shortcut);
|
1136
|
-
}
|
1137
|
-
removeShortcut(element, shortcut) {
|
1138
|
-
// Avoid infinite recursion.
|
1139
|
-
if (!element || (this.root === this)) {
|
1140
|
-
return;
|
1141
|
-
}
|
1142
|
-
if (!shortcut) {
|
1143
|
-
shortcut = this.component.shortcut;
|
1144
|
-
}
|
1145
|
-
this.root.removeShortcut(element, shortcut);
|
1146
|
-
}
|
1147
|
-
/**
|
1148
|
-
* Remove all event handlers.
|
1149
|
-
*/
|
1150
|
-
detach() {
|
1151
|
-
// First iterate through each ref and delete the component so there are no dangling component references.
|
1152
|
-
lodash_1.default.each(this.refs, (ref) => {
|
1153
|
-
if (typeof ref === NodeList) {
|
1154
|
-
ref.forEach((elem) => {
|
1155
|
-
delete elem.component;
|
1156
|
-
});
|
1157
|
-
}
|
1158
|
-
else if (ref) {
|
1159
|
-
delete ref.component;
|
1160
|
-
}
|
1161
|
-
});
|
1162
|
-
this.refs = {};
|
1163
|
-
this.removeEventListeners();
|
1164
|
-
this.detachLogic();
|
1165
|
-
if (this.tooltip) {
|
1166
|
-
this.tooltip.destroy();
|
1167
|
-
}
|
1168
|
-
}
|
1169
|
-
checkRefresh(refreshData, changed, flags) {
|
1170
|
-
const changePath = lodash_1.default.get(changed, 'instance.path', false);
|
1171
|
-
// Don't let components change themselves.
|
1172
|
-
if (changePath && this.path === changePath) {
|
1173
|
-
return;
|
1174
|
-
}
|
1175
|
-
if (refreshData === 'data') {
|
1176
|
-
this.refresh(this.data, changed, flags);
|
1177
|
-
}
|
1178
|
-
else if ((changePath && (0, utils_1.getComponentPath)(changed.instance) === refreshData) && changed && changed.instance &&
|
1179
|
-
// Make sure the changed component is not in a different "context". Solves issues where refreshOn being set
|
1180
|
-
// in fields inside EditGrids could alter their state from other rows (which is bad).
|
1181
|
-
this.inContext(changed.instance)) {
|
1182
|
-
this.refresh(changed.value, changed, flags);
|
1183
|
-
}
|
1184
|
-
}
|
1185
|
-
checkRefreshOn(changes, flags = {}) {
|
1186
|
-
changes = changes || [];
|
1187
|
-
if (flags.noRefresh) {
|
1188
|
-
return;
|
1189
|
-
}
|
1190
|
-
if (!changes.length && flags.changed) {
|
1191
|
-
changes = [flags.changed];
|
1192
|
-
}
|
1193
|
-
const refreshOn = flags.fromBlur ? this.component.refreshOnBlur : this.component.refreshOn || this.component.redrawOn;
|
1194
|
-
// If they wish to refresh on a value, then add that here.
|
1195
|
-
if (refreshOn) {
|
1196
|
-
if (Array.isArray(refreshOn)) {
|
1197
|
-
refreshOn.forEach(refreshData => changes.forEach(changed => this.checkRefresh(refreshData, changed, flags)));
|
1198
|
-
}
|
1199
|
-
else {
|
1200
|
-
changes.forEach(changed => this.checkRefresh(refreshOn, changed, flags));
|
1201
|
-
}
|
1202
|
-
}
|
1203
|
-
}
|
1204
|
-
/**
|
1205
|
-
* Refreshes the component with a new value.
|
1206
|
-
*
|
1207
|
-
* @param value
|
1208
|
-
*/
|
1209
|
-
refresh(value) {
|
1210
|
-
if (this.hasOwnProperty('refreshOnValue')) {
|
1211
|
-
this.refreshOnChanged = !lodash_1.default.isEqual(value, this.refreshOnValue);
|
1212
|
-
}
|
1213
|
-
else {
|
1214
|
-
this.refreshOnChanged = true;
|
1215
|
-
}
|
1216
|
-
this.refreshOnValue = (0, utils_1.fastCloneDeep)(value);
|
1217
|
-
if (this.refreshOnChanged) {
|
1218
|
-
if (this.component.clearOnRefresh) {
|
1219
|
-
this.setValue(null);
|
1220
|
-
}
|
1221
|
-
this.triggerRedraw();
|
1222
|
-
}
|
1223
|
-
}
|
1224
|
-
/**
|
1225
|
-
* Checks to see if a separate component is in the "context" of this component. This is determined by first checking
|
1226
|
-
* if they share the same "data" object. It will then walk up the parent tree and compare its parents data objects
|
1227
|
-
* with the components data and returns true if they are in the same context.
|
1228
|
-
*
|
1229
|
-
* Different rows of the same EditGrid, for example, are in different contexts.
|
1230
|
-
*
|
1231
|
-
* @param component
|
1232
|
-
*/
|
1233
|
-
inContext(component) {
|
1234
|
-
if (component.data === this.data) {
|
1235
|
-
return true;
|
1236
|
-
}
|
1237
|
-
let parent = this.parent;
|
1238
|
-
while (parent) {
|
1239
|
-
if (parent.data === component.data) {
|
1240
|
-
return true;
|
1241
|
-
}
|
1242
|
-
parent = parent.parent;
|
1243
|
-
}
|
1244
|
-
return false;
|
1245
|
-
}
|
1246
|
-
get viewOnly() {
|
1247
|
-
return this.options.readOnly && this.options.viewAsHtml;
|
1248
|
-
}
|
1249
|
-
setElement(element) {
|
1250
|
-
if (this.element) {
|
1251
|
-
delete this.element.component;
|
1252
|
-
delete this.element;
|
1253
|
-
}
|
1254
|
-
this.element = element;
|
1255
|
-
}
|
1256
|
-
createViewOnlyElement() {
|
1257
|
-
this.setElement(this.ce('dl', {
|
1258
|
-
id: this.id
|
1259
|
-
}));
|
1260
|
-
if (this.element) {
|
1261
|
-
// Ensure you can get the component info from the element.
|
1262
|
-
this.element.component = this;
|
1263
|
-
}
|
1264
|
-
return this.element;
|
1265
|
-
}
|
1266
|
-
get defaultViewOnlyValue() {
|
1267
|
-
return '-';
|
1268
|
-
}
|
1269
|
-
/**
|
1270
|
-
* Uses the widget to determine the output string.
|
1271
|
-
*
|
1272
|
-
* @param value
|
1273
|
-
* @return {*}
|
1274
|
-
*/
|
1275
|
-
getWidgetValueAsString(value, options) {
|
1276
|
-
const noInputWidget = !this.refs.input || !this.refs.input[0] || !this.refs.input[0].widget;
|
1277
|
-
if (!value || noInputWidget) {
|
1278
|
-
if (!this.widget || !value) {
|
1279
|
-
return value;
|
1280
|
-
}
|
1281
|
-
else {
|
1282
|
-
return this.widget.getValueAsString(value);
|
1283
|
-
}
|
1284
|
-
}
|
1285
|
-
if (Array.isArray(value)) {
|
1286
|
-
const values = [];
|
1287
|
-
value.forEach((val, index) => {
|
1288
|
-
const widget = this.refs.input[index] && this.refs.input[index].widget;
|
1289
|
-
if (widget) {
|
1290
|
-
values.push(widget.getValueAsString(val, options));
|
1291
|
-
}
|
1292
|
-
});
|
1293
|
-
return values;
|
1294
|
-
}
|
1295
|
-
const widget = this.refs.input[0].widget;
|
1296
|
-
return widget.getValueAsString(value, options);
|
1297
|
-
}
|
1298
|
-
getValueAsString(value, options) {
|
1299
|
-
if (!value) {
|
1300
|
-
return '';
|
1301
|
-
}
|
1302
|
-
value = this.getWidgetValueAsString(value, options);
|
1303
|
-
if (Array.isArray(value)) {
|
1304
|
-
return value.join(', ');
|
1305
|
-
}
|
1306
|
-
if (lodash_1.default.isPlainObject(value)) {
|
1307
|
-
return JSON.stringify(value);
|
1308
|
-
}
|
1309
|
-
if (value === null || value === undefined) {
|
1310
|
-
return '';
|
1311
|
-
}
|
1312
|
-
const stringValue = value.toString();
|
1313
|
-
return this.sanitize(stringValue);
|
1314
|
-
}
|
1315
|
-
getView(value, options) {
|
1316
|
-
if (this.component.protected) {
|
1317
|
-
return '--- PROTECTED ---';
|
1318
|
-
}
|
1319
|
-
return this.getValueAsString(value, options);
|
1320
|
-
}
|
1321
|
-
updateItems(...args) {
|
1322
|
-
this.restoreValue();
|
1323
|
-
this.onChange(...args);
|
1324
|
-
}
|
1325
|
-
/**
|
1326
|
-
* @param {*} data
|
1327
|
-
* @param {boolean} [forceUseValue=false] - if true, return 'value' property of the data
|
1328
|
-
* @return {*}
|
1329
|
-
*/
|
1330
|
-
itemValue(data, forceUseValue = false) {
|
1331
|
-
if (lodash_1.default.isObject(data) && !lodash_1.default.isArray(data)) {
|
1332
|
-
if (this.valueProperty) {
|
1333
|
-
return lodash_1.default.get(data, this.valueProperty);
|
1334
|
-
}
|
1335
|
-
if (forceUseValue) {
|
1336
|
-
return data.value;
|
1337
|
-
}
|
1338
|
-
}
|
1339
|
-
return data;
|
1340
|
-
}
|
1341
|
-
itemValueForHTMLMode(value) {
|
1342
|
-
if (Array.isArray(value)) {
|
1343
|
-
const values = value.map(item => Array.isArray(item) ? this.itemValueForHTMLMode(item) : this.itemValue(item));
|
1344
|
-
return values.join(', ');
|
1345
|
-
}
|
1346
|
-
return this.itemValue(value);
|
1347
|
-
}
|
1348
|
-
createModal(element, attr, confirm) {
|
1349
|
-
const dialog = this.ce('div', attr || {});
|
1350
|
-
this.setContent(dialog, this.renderTemplate('dialog'));
|
1351
|
-
// Add refs to dialog, not "this".
|
1352
|
-
dialog.refs = {};
|
1353
|
-
this.loadRefs.call(dialog, dialog, {
|
1354
|
-
dialogOverlay: 'single',
|
1355
|
-
dialogContents: 'single',
|
1356
|
-
dialogClose: 'single',
|
1357
|
-
});
|
1358
|
-
dialog.refs.dialogContents.appendChild(element);
|
1359
|
-
document.body.appendChild(dialog);
|
1360
|
-
document.body.classList.add('modal-open');
|
1361
|
-
dialog.close = () => {
|
1362
|
-
document.body.classList.remove('modal-open');
|
1363
|
-
dialog.dispatchEvent(new CustomEvent('close'));
|
1364
|
-
};
|
1365
|
-
this.addEventListener(dialog, 'close', () => this.removeChildFrom(dialog, document.body));
|
1366
|
-
const close = (event) => {
|
1367
|
-
event.preventDefault();
|
1368
|
-
dialog.close();
|
1369
|
-
};
|
1370
|
-
const handleCloseClick = (e) => {
|
1371
|
-
if (confirm) {
|
1372
|
-
confirm().then(() => close(e))
|
1373
|
-
.catch(() => { });
|
1374
|
-
}
|
1375
|
-
else {
|
1376
|
-
close(e);
|
1377
|
-
}
|
1378
|
-
};
|
1379
|
-
this.addEventListener(dialog.refs.dialogOverlay, 'click', handleCloseClick);
|
1380
|
-
this.addEventListener(dialog.refs.dialogClose, 'click', handleCloseClick);
|
1381
|
-
return dialog;
|
1382
|
-
}
|
1383
|
-
get optimizeRedraw() {
|
1384
|
-
if (this.options.optimizeRedraw && this.element && !this.visible) {
|
1385
|
-
this.addClass(this.element, 'formio-removed');
|
1386
|
-
return true;
|
1387
|
-
}
|
1388
|
-
return false;
|
1389
|
-
}
|
1390
|
-
/**
|
1391
|
-
* Retrieves the CSS class name of this component.
|
1392
|
-
* @returns {string} - The class name of this component.
|
1393
|
-
*/
|
1394
|
-
get className() {
|
1395
|
-
let className = this.hasInput ? `${this.transform('class', 'form-group')} has-feedback ` : '';
|
1396
|
-
className += `formio-component formio-component-${this.component.type} `;
|
1397
|
-
// TODO: find proper way to avoid overriding of default type-based component styles
|
1398
|
-
if (this.key && this.key !== 'form') {
|
1399
|
-
className += `formio-component-${this.key} `;
|
1400
|
-
}
|
1401
|
-
if (this.component.multiple) {
|
1402
|
-
className += 'formio-component-multiple ';
|
1403
|
-
}
|
1404
|
-
if (this.component.customClass) {
|
1405
|
-
className += this.component.customClass;
|
1406
|
-
}
|
1407
|
-
if (this.hasInput && this.component.validate && (0, utils_1.boolValue)(this.component.validate.required)) {
|
1408
|
-
className += ' required';
|
1409
|
-
}
|
1410
|
-
if (this.labelIsHidden()) {
|
1411
|
-
className += ' formio-component-label-hidden';
|
1412
|
-
}
|
1413
|
-
if (!this.visible) {
|
1414
|
-
className += ' formio-hidden';
|
1415
|
-
}
|
1416
|
-
return className;
|
1417
|
-
}
|
1418
|
-
/**
|
1419
|
-
* Build the custom style from the layout values
|
1420
|
-
* @return {string} - The custom style
|
1421
|
-
*/
|
1422
|
-
get customStyle() {
|
1423
|
-
let customCSS = '';
|
1424
|
-
lodash_1.default.each(this.component.style, (value, key) => {
|
1425
|
-
if (value !== '') {
|
1426
|
-
customCSS += `${key}:${value};`;
|
1427
|
-
}
|
1428
|
-
});
|
1429
|
-
return customCSS;
|
1430
|
-
}
|
1431
|
-
static get serverConditionSettings() {
|
1432
|
-
return Component.conditionOperatorsSettings;
|
1433
|
-
}
|
1434
|
-
get isMobile() {
|
1435
|
-
return (0, ismobilejs_1.default)();
|
1436
|
-
}
|
1437
|
-
/**
|
1438
|
-
* Returns the outside wrapping element of this component.
|
1439
|
-
* @returns {HTMLElement}
|
1440
|
-
*/
|
1441
|
-
getElement() {
|
1442
|
-
return this.element;
|
1443
|
-
}
|
1444
|
-
/**
|
1445
|
-
* Create an evaluation context for all script executions and interpolations.
|
1446
|
-
*
|
1447
|
-
* @param additional
|
1448
|
-
* @return {*}
|
1449
|
-
*/
|
1450
|
-
evalContext(additional) {
|
1451
|
-
return super.evalContext(Object.assign({
|
1452
|
-
component: this.component,
|
1453
|
-
row: this.data,
|
1454
|
-
rowIndex: this.rowIndex,
|
1455
|
-
data: this.rootValue,
|
1456
|
-
iconClass: this.iconClass.bind(this),
|
1457
|
-
// Bind the translate function to the data context of any interpolated string.
|
1458
|
-
// It is useful to translate strings in different scenarions (eg: custom edit grid templates, custom error messages etc.)
|
1459
|
-
// and desirable to be publicly available rather than calling the internal {instance.t} function in the template string.
|
1460
|
-
t: this.t.bind(this),
|
1461
|
-
submission: (this.root ? this.root._submission : {
|
1462
|
-
data: this.rootValue
|
1463
|
-
}),
|
1464
|
-
form: this.root ? this.root._form : {},
|
1465
|
-
options: this.options,
|
1466
|
-
}, additional));
|
1467
|
-
}
|
1468
|
-
/**
|
1469
|
-
* Sets the pristine flag for this component.
|
1470
|
-
*
|
1471
|
-
* @param pristine {boolean} - TRUE to make pristine, FALSE not pristine.
|
1472
|
-
*/
|
1473
|
-
setPristine(pristine) {
|
1474
|
-
this.pristine = pristine;
|
1475
|
-
}
|
1476
|
-
get isPristine() {
|
1477
|
-
return this.pristine;
|
1478
|
-
}
|
1479
|
-
setDirty(dirty) {
|
1480
|
-
this.dirty = dirty;
|
1481
|
-
}
|
1482
|
-
get isDirty() {
|
1483
|
-
return this.dirty;
|
1484
|
-
}
|
1485
|
-
/**
|
1486
|
-
* Removes a value out of the data array and rebuild the rows.
|
1487
|
-
* @param {number} index - The index of the data element to remove.
|
1488
|
-
*/
|
1489
|
-
removeValue(index) {
|
1490
|
-
this.splice(index);
|
1491
|
-
this.redraw();
|
1492
|
-
this.restoreValue();
|
1493
|
-
this.triggerRootChange();
|
1494
|
-
}
|
1495
|
-
iconClass(name, spinning) {
|
1496
|
-
const iconset = this.options.iconset || Templates_1.default.current.defaultIconset || 'fa';
|
1497
|
-
return Templates_1.default.current.hasOwnProperty('iconClass')
|
1498
|
-
? Templates_1.default.current.iconClass(iconset, name, spinning)
|
1499
|
-
: this.options.iconset === 'fa' ? Templates_1.default.defaultTemplates.iconClass(iconset, name, spinning) : name;
|
1500
|
-
}
|
1501
|
-
size(size) {
|
1502
|
-
return Templates_1.default.current.hasOwnProperty('size')
|
1503
|
-
? Templates_1.default.current.size(size)
|
1504
|
-
: size;
|
1505
|
-
}
|
1506
|
-
/**
|
1507
|
-
* The readible name for this component.
|
1508
|
-
* @returns {string} - The name of the component.
|
1509
|
-
*/
|
1510
|
-
get name() {
|
1511
|
-
return this.t(this.component.label || this.component.placeholder || this.key, { _userInput: true });
|
1512
|
-
}
|
1513
|
-
/**
|
1514
|
-
* Returns the error label for this component.
|
1515
|
-
* @return {*}
|
1516
|
-
*/
|
1517
|
-
get errorLabel() {
|
1518
|
-
return this.t(this.component.errorLabel
|
1519
|
-
|| this.component.label
|
1520
|
-
|| this.component.placeholder
|
1521
|
-
|| this.key);
|
1522
|
-
}
|
1523
|
-
/**
|
1524
|
-
* Get the error message provided a certain type of error.
|
1525
|
-
* @param type
|
1526
|
-
* @return {*}
|
1527
|
-
*/
|
1528
|
-
errorMessage(type) {
|
1529
|
-
return (this.component.errors && this.component.errors[type]) ? this.component.errors[type] : type;
|
1530
|
-
}
|
1531
|
-
setContent(element, content, forceSanitize, sanitizeOptions) {
|
1532
|
-
if (element instanceof HTMLElement) {
|
1533
|
-
element.innerHTML = this.sanitize(content, forceSanitize, sanitizeOptions);
|
1534
|
-
return true;
|
1535
|
-
}
|
1536
|
-
return false;
|
1537
|
-
}
|
1538
|
-
restoreCaretPosition() {
|
1539
|
-
var _a, _b, _c;
|
1540
|
-
if ((_a = this.root) === null || _a === void 0 ? void 0 : _a.currentSelection) {
|
1541
|
-
if ((_b = this.refs.input) === null || _b === void 0 ? void 0 : _b.length) {
|
1542
|
-
const { selection, index } = this.root.currentSelection;
|
1543
|
-
let input = this.refs.input[index];
|
1544
|
-
const isInputRangeSelectable = (i) => /text|search|password|tel|url/i.test((i === null || i === void 0 ? void 0 : i.type) || '');
|
1545
|
-
if (input) {
|
1546
|
-
if (isInputRangeSelectable(input)) {
|
1547
|
-
input.setSelectionRange(...selection);
|
1548
|
-
}
|
1549
|
-
}
|
1550
|
-
else {
|
1551
|
-
input = this.refs.input[this.refs.input.length];
|
1552
|
-
const lastCharacter = ((_c = input.value) === null || _c === void 0 ? void 0 : _c.length) || 0;
|
1553
|
-
if (isInputRangeSelectable(input)) {
|
1554
|
-
input.setSelectionRange(lastCharacter, lastCharacter);
|
1555
|
-
}
|
1556
|
-
}
|
1557
|
-
}
|
1558
|
-
}
|
1559
|
-
}
|
1560
|
-
redraw() {
|
1561
|
-
// Don't bother if we have not built yet.
|
1562
|
-
if (!this.element || !this.element.parentNode || this.optimizeRedraw) {
|
1563
|
-
// Return a non-resolving promise.
|
1564
|
-
return Promise.resolve();
|
1565
|
-
}
|
1566
|
-
this.detach();
|
1567
|
-
this.emit('redraw');
|
1568
|
-
// Since we are going to replace the element, we need to know it's position so we can find it in the parent's children.
|
1569
|
-
const parent = this.element.parentNode;
|
1570
|
-
const index = Array.prototype.indexOf.call(parent.children, this.element);
|
1571
|
-
this.element.outerHTML = this.sanitize(this.render());
|
1572
|
-
this.setElement(parent.children[index]);
|
1573
|
-
return this.attach(this.element);
|
1574
|
-
}
|
1575
|
-
rebuild() {
|
1576
|
-
this.destroy();
|
1577
|
-
this.init();
|
1578
|
-
this.visible = this.conditionallyVisible(null, null);
|
1579
|
-
return this.redraw();
|
1580
|
-
}
|
1581
|
-
removeEventListeners() {
|
1582
|
-
super.removeEventListeners();
|
1583
|
-
this.tooltips.forEach(tooltip => tooltip.destroy());
|
1584
|
-
this.tooltips = [];
|
1585
|
-
}
|
1586
|
-
hasClass(element, className) {
|
1587
|
-
if (!element) {
|
1588
|
-
return;
|
1589
|
-
}
|
1590
|
-
return super.hasClass(element, this.transform('class', className));
|
1591
|
-
}
|
1592
|
-
addClass(element, className) {
|
1593
|
-
if (!element) {
|
1594
|
-
return;
|
1595
|
-
}
|
1596
|
-
return super.addClass(element, this.transform('class', className));
|
1597
|
-
}
|
1598
|
-
removeClass(element, className) {
|
1599
|
-
if (!element) {
|
1600
|
-
return;
|
1601
|
-
}
|
1602
|
-
return super.removeClass(element, this.transform('class', className));
|
1603
|
-
}
|
1604
|
-
/**
|
1605
|
-
* Determines if this component has a condition defined.
|
1606
|
-
*
|
1607
|
-
* @return {null}
|
1608
|
-
*/
|
1609
|
-
hasCondition() {
|
1610
|
-
if (this._hasCondition !== null) {
|
1611
|
-
return this._hasCondition;
|
1612
|
-
}
|
1613
|
-
this._hasCondition = FormioUtils.hasCondition(this.component);
|
1614
|
-
return this._hasCondition;
|
1615
|
-
}
|
1616
|
-
/**
|
1617
|
-
* Check if this component is conditionally visible.
|
1618
|
-
*
|
1619
|
-
* @param data
|
1620
|
-
* @return {boolean}
|
1621
|
-
*/
|
1622
|
-
conditionallyVisible(data, row) {
|
1623
|
-
data = data || this.rootValue;
|
1624
|
-
row = row || this.data;
|
1625
|
-
if (this.builderMode || this.previewMode || !this.hasCondition()) {
|
1626
|
-
return !this.component.hidden;
|
1627
|
-
}
|
1628
|
-
data = data || (this.root ? this.root.data : {});
|
1629
|
-
return this.checkCondition(row, data);
|
1630
|
-
}
|
1631
|
-
/**
|
1632
|
-
* Checks the condition of this component.
|
1633
|
-
*
|
1634
|
-
* TODO: Switch row and data parameters to be consistent with other methods.
|
1635
|
-
*
|
1636
|
-
* @param row - The row contextual data.
|
1637
|
-
* @param data - The global data object.
|
1638
|
-
* @return {boolean} - True if the condition applies to this component.
|
1639
|
-
*/
|
1640
|
-
checkCondition(row, data) {
|
1641
|
-
return FormioUtils.checkCondition(this.component, row || this.data, data || this.rootValue, this.root ? this.root._form : {}, this);
|
1642
|
-
}
|
1643
|
-
/**
|
1644
|
-
* Check for conditionals and hide/show the element based on those conditions.
|
1645
|
-
*/
|
1646
|
-
checkComponentConditions(data, flags, row) {
|
1647
|
-
data = data || this.rootValue;
|
1648
|
-
flags = flags || {};
|
1649
|
-
row = row || this.data;
|
1650
|
-
if (!this.builderMode & !this.previewMode && this.fieldLogic(data, row)) {
|
1651
|
-
this.redraw();
|
1652
|
-
}
|
1653
|
-
// Check advanced conditions
|
1654
|
-
const visible = this.conditionallyVisible(data, row);
|
1655
|
-
if (this.visible !== visible) {
|
1656
|
-
this.visible = visible;
|
1657
|
-
}
|
1658
|
-
return visible;
|
1659
|
-
}
|
1660
|
-
/**
|
1661
|
-
* Checks conditions for this component and any sub components.
|
1662
|
-
* @param args
|
1663
|
-
* @return {boolean}
|
1664
|
-
*/
|
1665
|
-
checkConditions(data, flags, row) {
|
1666
|
-
data = data || this.rootValue;
|
1667
|
-
flags = flags || {};
|
1668
|
-
row = row || this.data;
|
1669
|
-
return this.checkComponentConditions(data, flags, row);
|
1670
|
-
}
|
1671
|
-
get logic() {
|
1672
|
-
return this.component.logic || [];
|
1673
|
-
}
|
1674
|
-
/**
|
1675
|
-
* Check all triggers and apply necessary actions.
|
1676
|
-
*
|
1677
|
-
* @param data
|
1678
|
-
*/
|
1679
|
-
fieldLogic(data, row) {
|
1680
|
-
data = data || this.rootValue;
|
1681
|
-
row = row || this.data;
|
1682
|
-
const logics = this.logic;
|
1683
|
-
// If there aren't logic, don't go further.
|
1684
|
-
if (logics.length === 0) {
|
1685
|
-
return;
|
1686
|
-
}
|
1687
|
-
const newComponent = (0, utils_1.fastCloneDeep)(this.originalComponent);
|
1688
|
-
let changed = logics.reduce((changed, logic) => {
|
1689
|
-
const result = FormioUtils.checkTrigger(newComponent, logic.trigger, row, data, this.root ? this.root._form : {}, this);
|
1690
|
-
return (result ? this.applyActions(newComponent, logic.actions, result, row, data) : false) || changed;
|
1691
|
-
}, false);
|
1692
|
-
// If component definition changed, replace and mark as changed.
|
1693
|
-
if (!lodash_1.default.isEqual(this.component, newComponent)) {
|
1694
|
-
this.component = newComponent;
|
1695
|
-
changed = true;
|
1696
|
-
const disabled = this.shouldDisabled;
|
1697
|
-
// Change disabled state if it has changed
|
1698
|
-
if (this.disabled !== disabled) {
|
1699
|
-
this.disabled = disabled;
|
1700
|
-
}
|
1701
|
-
}
|
1702
|
-
return changed;
|
1703
|
-
}
|
1704
|
-
isIE() {
|
1705
|
-
if (typeof window === 'undefined') {
|
1706
|
-
return false;
|
1707
|
-
}
|
1708
|
-
const userAgent = window.navigator.userAgent;
|
1709
|
-
const msie = userAgent.indexOf('MSIE ');
|
1710
|
-
if (msie > 0) {
|
1711
|
-
// IE 10 or older => return version number
|
1712
|
-
return parseInt(userAgent.substring(msie + 5, userAgent.indexOf('.', msie)), 10);
|
1713
|
-
}
|
1714
|
-
const trident = userAgent.indexOf('Trident/');
|
1715
|
-
if (trident > 0) {
|
1716
|
-
// IE 11 => return version number
|
1717
|
-
const rv = userAgent.indexOf('rv:');
|
1718
|
-
return parseInt(userAgent.substring(rv + 3, userAgent.indexOf('.', rv)), 10);
|
1719
|
-
}
|
1720
|
-
const edge = userAgent.indexOf('Edge/');
|
1721
|
-
if (edge > 0) {
|
1722
|
-
// IE 12 (aka Edge) => return version number
|
1723
|
-
return parseInt(userAgent.substring(edge + 5, userAgent.indexOf('.', edge)), 10);
|
1724
|
-
}
|
1725
|
-
// other browser
|
1726
|
-
return false;
|
1727
|
-
}
|
1728
|
-
defineActionValue(action, argsObject) {
|
1729
|
-
return this.evaluate(action.value, argsObject, 'value');
|
1730
|
-
}
|
1731
|
-
applyActions(newComponent, actions, result, row, data) {
|
1732
|
-
data = data || this.rootValue;
|
1733
|
-
row = row || this.data;
|
1734
|
-
return actions.reduce((changed, action) => {
|
1735
|
-
switch (action.type) {
|
1736
|
-
case 'property': {
|
1737
|
-
FormioUtils.setActionProperty(newComponent, action, result, row, data, this);
|
1738
|
-
const property = action.property.value;
|
1739
|
-
if (!lodash_1.default.isEqual(lodash_1.default.get(this.component, property), lodash_1.default.get(newComponent, property))) {
|
1740
|
-
changed = true;
|
1741
|
-
}
|
1742
|
-
break;
|
1743
|
-
}
|
1744
|
-
case 'value': {
|
1745
|
-
const oldValue = this.getValue();
|
1746
|
-
const newValue = this.defineActionValue(action, {
|
1747
|
-
value: lodash_1.default.clone(oldValue),
|
1748
|
-
data,
|
1749
|
-
row,
|
1750
|
-
component: newComponent,
|
1751
|
-
result,
|
1752
|
-
});
|
1753
|
-
if (!lodash_1.default.isEqual(oldValue, newValue) && !(this.component.clearOnHide && !this.visible)) {
|
1754
|
-
this.setValue(newValue);
|
1755
|
-
if (this.viewOnly) {
|
1756
|
-
this.dataValue = newValue;
|
1757
|
-
}
|
1758
|
-
changed = true;
|
1759
|
-
}
|
1760
|
-
break;
|
1761
|
-
}
|
1762
|
-
case 'mergeComponentSchema': {
|
1763
|
-
const schema = this.evaluate(action.schemaDefinition, {
|
1764
|
-
value: lodash_1.default.clone(this.getValue()),
|
1765
|
-
data,
|
1766
|
-
row,
|
1767
|
-
component: newComponent,
|
1768
|
-
result,
|
1769
|
-
}, 'schema');
|
1770
|
-
lodash_1.default.assign(newComponent, schema);
|
1771
|
-
if (!lodash_1.default.isEqual(this.component, newComponent)) {
|
1772
|
-
changed = true;
|
1773
|
-
}
|
1774
|
-
break;
|
1775
|
-
}
|
1776
|
-
case 'customAction': {
|
1777
|
-
const oldValue = this.getValue();
|
1778
|
-
const newValue = this.evaluate(action.customAction, {
|
1779
|
-
value: lodash_1.default.clone(oldValue),
|
1780
|
-
data,
|
1781
|
-
row,
|
1782
|
-
input: oldValue,
|
1783
|
-
component: newComponent,
|
1784
|
-
result,
|
1785
|
-
}, 'value');
|
1786
|
-
if (!lodash_1.default.isEqual(oldValue, newValue) && !(this.component.clearOnHide && !this.visible)) {
|
1787
|
-
this.setValue(newValue);
|
1788
|
-
if (this.viewOnly) {
|
1789
|
-
this.dataValue = newValue;
|
1790
|
-
}
|
1791
|
-
changed = true;
|
1792
|
-
}
|
1793
|
-
break;
|
1794
|
-
}
|
1795
|
-
}
|
1796
|
-
return changed;
|
1797
|
-
}, false);
|
1798
|
-
}
|
1799
|
-
// Deprecated
|
1800
|
-
addInputError(message, dirty, elements) {
|
1801
|
-
this.addMessages(message);
|
1802
|
-
this.setErrorClasses(elements, dirty, !!message);
|
1803
|
-
}
|
1804
|
-
// Deprecated
|
1805
|
-
removeInputError(elements) {
|
1806
|
-
this.setErrorClasses(elements, true, false);
|
1807
|
-
}
|
1808
|
-
/**
|
1809
|
-
* Add a new input error to this element.
|
1810
|
-
*
|
1811
|
-
* @param message
|
1812
|
-
* @param dirty
|
1813
|
-
*/
|
1814
|
-
addMessages(messages) {
|
1815
|
-
if (!messages) {
|
1816
|
-
return;
|
1817
|
-
}
|
1818
|
-
// Standardize on array of objects for message.
|
1819
|
-
if (typeof messages === 'string') {
|
1820
|
-
messages = {
|
1821
|
-
messages,
|
1822
|
-
level: 'error',
|
1823
|
-
};
|
1824
|
-
}
|
1825
|
-
if (!Array.isArray(messages)) {
|
1826
|
-
messages = [messages];
|
1827
|
-
}
|
1828
|
-
messages = lodash_1.default.uniqBy(messages, message => message.message);
|
1829
|
-
if (this.refs.messageContainer) {
|
1830
|
-
this.setContent(this.refs.messageContainer, messages.map((message) => {
|
1831
|
-
if (message.message && typeof message.message === 'string') {
|
1832
|
-
message.message = message.message.replaceAll('<', '<').replaceAll('>', '>');
|
1833
|
-
}
|
1834
|
-
return this.renderTemplate('message', message);
|
1835
|
-
}).join(''));
|
1836
|
-
}
|
1837
|
-
}
|
1838
|
-
setErrorClasses(elements, dirty, hasErrors, hasMessages, element = this.element) {
|
1839
|
-
this.clearErrorClasses();
|
1840
|
-
elements.forEach((element) => {
|
1841
|
-
this.setElementInvalid(this.performInputMapping(element), false);
|
1842
|
-
});
|
1843
|
-
this.setInputWidgetErrorClasses(elements, hasErrors);
|
1844
|
-
if (hasErrors) {
|
1845
|
-
// Add error classes
|
1846
|
-
elements.forEach((input) => {
|
1847
|
-
this.setElementInvalid(this.performInputMapping(input), true);
|
1848
|
-
});
|
1849
|
-
if (dirty && this.options.highlightErrors) {
|
1850
|
-
this.addClass(element, this.options.componentErrorClass);
|
1851
|
-
}
|
1852
|
-
else {
|
1853
|
-
this.addClass(element, 'has-error');
|
1854
|
-
}
|
1855
|
-
}
|
1856
|
-
if (hasMessages) {
|
1857
|
-
this.addClass(element, 'has-message');
|
1858
|
-
}
|
1859
|
-
}
|
1860
|
-
setElementInvalid(element, invalid) {
|
1861
|
-
if (!element)
|
1862
|
-
return;
|
1863
|
-
if (invalid) {
|
1864
|
-
this.addClass(element, 'is-invalid');
|
1865
|
-
}
|
1866
|
-
else {
|
1867
|
-
this.removeClass(element, 'is-invalid');
|
1868
|
-
}
|
1869
|
-
element.setAttribute('aria-invalid', invalid ? 'true' : 'false');
|
1870
|
-
}
|
1871
|
-
clearOnHide() {
|
1872
|
-
// clearOnHide defaults to true for old forms (without the value set) so only trigger if the value is false.
|
1873
|
-
if (
|
1874
|
-
// if change happens inside EditGrid's row, it doesn't trigger change on the root level, so rootPristine will be true
|
1875
|
-
(!this.rootPristine || this.options.server || (0, utils_1.isInsideScopingComponent)(this)) &&
|
1876
|
-
this.component.clearOnHide !== false &&
|
1877
|
-
!this.options.readOnly &&
|
1878
|
-
!this.options.showHiddenFields) {
|
1879
|
-
if (!this.visible) {
|
1880
|
-
this.deleteValue();
|
1881
|
-
}
|
1882
|
-
else if (!this.hasValue() && this.shouldAddDefaultValue) {
|
1883
|
-
// If shown, ensure the default is set.
|
1884
|
-
this.setValue(this.defaultValue, {
|
1885
|
-
noUpdateEvent: true
|
1886
|
-
});
|
1887
|
-
}
|
1888
|
-
}
|
1889
|
-
}
|
1890
|
-
triggerRootChange(...args) {
|
1891
|
-
if (this.options.onChange) {
|
1892
|
-
this.options.onChange(...args);
|
1893
|
-
}
|
1894
|
-
else if (this.root) {
|
1895
|
-
this.root.triggerChange(...args);
|
1896
|
-
}
|
1897
|
-
}
|
1898
|
-
onChange(flags, fromRoot) {
|
1899
|
-
flags = flags || {};
|
1900
|
-
if (flags.modified) {
|
1901
|
-
if (!flags.noPristineChangeOnModified) {
|
1902
|
-
this.pristine = false;
|
1903
|
-
}
|
1904
|
-
this.addClass(this.getElement(), 'formio-modified');
|
1905
|
-
}
|
1906
|
-
// If we are supposed to validate on blur, then don't trigger validation yet.
|
1907
|
-
if (this.component.validateOn === 'blur' && !this.errors.length) {
|
1908
|
-
flags.noValidate = true;
|
1909
|
-
}
|
1910
|
-
if (this.component.onChange) {
|
1911
|
-
this.evaluate(this.component.onChange, {
|
1912
|
-
flags
|
1913
|
-
});
|
1914
|
-
}
|
1915
|
-
// Set the changed variable.
|
1916
|
-
const changed = {
|
1917
|
-
instance: this,
|
1918
|
-
component: this.component,
|
1919
|
-
value: this.dataValue,
|
1920
|
-
flags: flags
|
1921
|
-
};
|
1922
|
-
// Emit the change.
|
1923
|
-
this.emit('componentChange', changed);
|
1924
|
-
// Do not propogate the modified flag.
|
1925
|
-
let modified = false;
|
1926
|
-
if (flags.modified) {
|
1927
|
-
modified = true;
|
1928
|
-
delete flags.modified;
|
1929
|
-
}
|
1930
|
-
// Bubble this change up to the top.
|
1931
|
-
if (!fromRoot) {
|
1932
|
-
this.triggerRootChange(flags, changed, modified);
|
1933
|
-
}
|
1934
|
-
return changed;
|
1935
|
-
}
|
1936
|
-
get wysiwygDefault() {
|
1937
|
-
return {
|
1938
|
-
quill: {
|
1939
|
-
theme: 'snow',
|
1940
|
-
placeholder: this.t(this.component.placeholder, { _userInput: true }),
|
1941
|
-
modules: {
|
1942
|
-
toolbar: [
|
1943
|
-
[{ 'size': ['small', false, 'large', 'huge'] }],
|
1944
|
-
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
1945
|
-
[{ 'font': [] }],
|
1946
|
-
['bold', 'italic', 'underline', 'strike', { 'script': 'sub' }, { 'script': 'super' }, 'clean'],
|
1947
|
-
[{ 'color': [] }, { 'background': [] }],
|
1948
|
-
[{ 'list': 'ordered' }, { 'list': 'bullet' }, { 'indent': '-1' }, { 'indent': '+1' }, { 'align': [] }],
|
1949
|
-
['blockquote', 'code-block'],
|
1950
|
-
['link', 'image', 'video', 'formula', 'source']
|
1951
|
-
]
|
1952
|
-
}
|
1953
|
-
},
|
1954
|
-
ace: {
|
1955
|
-
theme: 'ace/theme/xcode',
|
1956
|
-
maxLines: 12,
|
1957
|
-
minLines: 12,
|
1958
|
-
tabSize: 2,
|
1959
|
-
mode: 'ace/mode/javascript',
|
1960
|
-
placeholder: this.t(this.component.placeholder, { _userInput: true })
|
1961
|
-
},
|
1962
|
-
ckeditor: {
|
1963
|
-
image: {
|
1964
|
-
toolbar: [
|
1965
|
-
'imageTextAlternative',
|
1966
|
-
'|',
|
1967
|
-
'imageStyle:full',
|
1968
|
-
'imageStyle:alignLeft',
|
1969
|
-
'imageStyle:alignCenter',
|
1970
|
-
'imageStyle:alignRight'
|
1971
|
-
],
|
1972
|
-
styles: [
|
1973
|
-
'full',
|
1974
|
-
'alignLeft',
|
1975
|
-
'alignCenter',
|
1976
|
-
'alignRight'
|
1977
|
-
]
|
1978
|
-
},
|
1979
|
-
extraPlugins: []
|
1980
|
-
},
|
1981
|
-
default: {}
|
1982
|
-
};
|
1983
|
-
}
|
1984
|
-
addCKE(element, settings, onChange) {
|
1985
|
-
settings = lodash_1.default.isEmpty(settings) ? {} : settings;
|
1986
|
-
settings.base64Upload = this.component.isUploadEnabled ? false : true;
|
1987
|
-
settings.mediaEmbed = { previewsInData: true };
|
1988
|
-
settings = lodash_1.default.merge(this.wysiwygDefault.ckeditor, lodash_1.default.get(this.options, 'editors.ckeditor.settings', {}), settings);
|
1989
|
-
if (this.component.isUploadEnabled) {
|
1990
|
-
settings.extraPlugins.push((0, uploadAdapter_1.getFormioUploadAdapterPlugin)(this.fileService, this));
|
1991
|
-
}
|
1992
|
-
return Formio_1.Formio.requireLibrary('ckeditor', isIEBrowser ? 'CKEDITOR' : 'ClassicEditor', lodash_1.default.get(this.options, 'editors.ckeditor.src', `${Formio_1.Formio.cdn.ckeditor}/ckeditor.js`), true)
|
1993
|
-
.then(() => {
|
1994
|
-
if (!element.parentNode) {
|
1995
|
-
return Promise.reject();
|
1996
|
-
}
|
1997
|
-
if (isIEBrowser) {
|
1998
|
-
const editor = CKEDITOR.replace(element);
|
1999
|
-
editor.on('change', () => onChange(editor.getData()));
|
2000
|
-
return Promise.resolve(editor);
|
2001
|
-
}
|
2002
|
-
else {
|
2003
|
-
return ClassicEditor.create(element, settings).then(editor => {
|
2004
|
-
editor.model.document.on('change', () => onChange(editor.data.get()));
|
2005
|
-
return editor;
|
2006
|
-
});
|
2007
|
-
}
|
2008
|
-
});
|
2009
|
-
}
|
2010
|
-
addQuill(element, settings, onChange) {
|
2011
|
-
settings = lodash_1.default.isEmpty(settings) ? this.wysiwygDefault.quill : settings;
|
2012
|
-
settings = lodash_1.default.merge(this.wysiwygDefault.quill, lodash_1.default.get(this.options, 'editors.quill.settings', {}), settings);
|
2013
|
-
settings = Object.assign(Object.assign({}, settings), { modules: Object.assign({ table: true }, settings.modules) });
|
2014
|
-
// Lazy load the quill css.
|
2015
|
-
Formio_1.Formio.requireLibrary(`quill-css-${settings.theme}`, 'Quill', [
|
2016
|
-
{ type: 'styles', src: `${Formio_1.Formio.cdn.quill}/quill.${settings.theme}.css` }
|
2017
|
-
], true);
|
2018
|
-
// Lazy load the quill library.
|
2019
|
-
return Formio_1.Formio.requireLibrary('quill', 'Quill', lodash_1.default.get(this.options, 'editors.quill.src', `${Formio_1.Formio.cdn.quill}/quill.min.js`), true)
|
2020
|
-
.then(() => {
|
2021
|
-
return Formio_1.Formio.requireLibrary('quill-table', 'Quill', `${Formio_1.Formio.cdn.baseUrl}/quill/quill-table.js`, true)
|
2022
|
-
.then(() => {
|
2023
|
-
if (!element.parentNode) {
|
2024
|
-
return Promise.reject();
|
2025
|
-
}
|
2026
|
-
this.quill = new Quill(element, isIEBrowser ? Object.assign(Object.assign({}, settings), { modules: {} }) : settings);
|
2027
|
-
/** This block of code adds the [source] capabilities. See https://codepen.io/anon/pen/ZyEjrQ **/
|
2028
|
-
const txtArea = document.createElement('textarea');
|
2029
|
-
txtArea.setAttribute('class', 'quill-source-code');
|
2030
|
-
this.quill.addContainer('ql-custom').appendChild(txtArea);
|
2031
|
-
const qlSource = element.parentNode.querySelector('.ql-source');
|
2032
|
-
if (qlSource) {
|
2033
|
-
this.addEventListener(qlSource, 'click', (event) => {
|
2034
|
-
event.preventDefault();
|
2035
|
-
if (txtArea.style.display === 'inherit') {
|
2036
|
-
this.quill.setContents(this.quill.clipboard.convert({ html: txtArea.value }));
|
2037
|
-
}
|
2038
|
-
txtArea.style.display = (txtArea.style.display === 'none') ? 'inherit' : 'none';
|
2039
|
-
});
|
2040
|
-
}
|
2041
|
-
/** END CODEBLOCK **/
|
2042
|
-
// Make sure to select cursor when they click on the element.
|
2043
|
-
this.addEventListener(element, 'click', () => this.quill.focus());
|
2044
|
-
// Allows users to skip toolbar items when tabbing though form
|
2045
|
-
const elm = document.querySelectorAll('.ql-formats > button');
|
2046
|
-
for (let i = 0; i < elm.length; i++) {
|
2047
|
-
elm[i].setAttribute('tabindex', '-1');
|
2048
|
-
}
|
2049
|
-
this.quill.on('text-change', () => {
|
2050
|
-
txtArea.value = this.quill.root.innerHTML;
|
2051
|
-
onChange(txtArea);
|
2052
|
-
});
|
2053
|
-
return this.quill;
|
2054
|
-
});
|
2055
|
-
});
|
2056
|
-
}
|
2057
|
-
get shouldSanitizeValue() {
|
2058
|
-
var _a;
|
2059
|
-
// Sanitize value if sanitizing for thw whole content is turned off
|
2060
|
-
return (((_a = this.options) === null || _a === void 0 ? void 0 : _a.sanitize) !== false);
|
2061
|
-
}
|
2062
|
-
addAce(element, settings, onChange) {
|
2063
|
-
if (!settings || (settings.theme === 'snow')) {
|
2064
|
-
const mode = settings ? settings.mode : '';
|
2065
|
-
settings = {};
|
2066
|
-
if (mode) {
|
2067
|
-
settings.mode = mode;
|
2068
|
-
}
|
2069
|
-
}
|
2070
|
-
settings = lodash_1.default.merge(this.wysiwygDefault.ace, lodash_1.default.get(this.options, 'editors.ace.settings', {}), settings || {});
|
2071
|
-
return Formio_1.Formio.requireLibrary('ace', 'ace', lodash_1.default.get(this.options, 'editors.ace.src', `${Formio_1.Formio.cdn.ace}/ace.js`), true)
|
2072
|
-
.then((editor) => {
|
2073
|
-
editor = editor.edit(element);
|
2074
|
-
editor.removeAllListeners('change');
|
2075
|
-
editor.setOptions(settings);
|
2076
|
-
editor.getSession().setMode(settings.mode);
|
2077
|
-
editor.on('change', () => onChange(editor.getValue()));
|
2078
|
-
if (settings.isUseWorkerDisabled) {
|
2079
|
-
editor.session.setUseWorker(false);
|
2080
|
-
}
|
2081
|
-
return editor;
|
2082
|
-
});
|
2083
|
-
}
|
2084
|
-
get tree() {
|
2085
|
-
return this.component.tree || false;
|
2086
|
-
}
|
2087
|
-
/**
|
2088
|
-
* The empty value for this component.
|
2089
|
-
*
|
2090
|
-
* @return {null}
|
2091
|
-
*/
|
2092
|
-
get emptyValue() {
|
2093
|
-
return null;
|
2094
|
-
}
|
2095
|
-
/**
|
2096
|
-
* Returns if this component has a value set.
|
2097
|
-
*
|
2098
|
-
*/
|
2099
|
-
hasValue(data) {
|
2100
|
-
return !lodash_1.default.isUndefined(lodash_1.default.get(data || this.data, this.key));
|
2101
|
-
}
|
2102
|
-
/**
|
2103
|
-
* Get the data value at the root level.
|
2104
|
-
*
|
2105
|
-
* @return {*}
|
2106
|
-
*/
|
2107
|
-
get rootValue() {
|
2108
|
-
return this.root ? this.root.data : this.data;
|
2109
|
-
}
|
2110
|
-
get rootPristine() {
|
2111
|
-
return lodash_1.default.get(this, 'root.pristine', false);
|
2112
|
-
}
|
2113
|
-
/**
|
2114
|
-
* Get the static value of this component.
|
2115
|
-
* @return {*}
|
2116
|
-
*/
|
2117
|
-
get dataValue() {
|
2118
|
-
if (!this.key ||
|
2119
|
-
(!this.visible && this.component.clearOnHide && !this.rootPristine)) {
|
2120
|
-
return this.emptyValue;
|
2121
|
-
}
|
2122
|
-
if (!this.hasValue() && this.shouldAddDefaultValue) {
|
2123
|
-
const empty = this.component.multiple ? [] : this.emptyValue;
|
2124
|
-
if (!this.rootPristine) {
|
2125
|
-
this.dataValue = empty;
|
2126
|
-
}
|
2127
|
-
return empty;
|
2128
|
-
}
|
2129
|
-
return lodash_1.default.get(this._data, this.key);
|
2130
|
-
}
|
2131
|
-
/**
|
2132
|
-
* Sets the static value of this component.
|
2133
|
-
*
|
2134
|
-
* @param value
|
2135
|
-
*/
|
2136
|
-
set dataValue(value) {
|
2137
|
-
if (!this.allowData ||
|
2138
|
-
!this.key ||
|
2139
|
-
(!this.visible && this.component.clearOnHide && !this.rootPristine)) {
|
2140
|
-
return;
|
2141
|
-
}
|
2142
|
-
if ((value !== null) && (value !== undefined)) {
|
2143
|
-
value = this.hook('setDataValue', value, this.key, this._data);
|
2144
|
-
}
|
2145
|
-
if ((value === null) || (value === undefined)) {
|
2146
|
-
this.unset();
|
2147
|
-
return;
|
2148
|
-
}
|
2149
|
-
lodash_1.default.set(this._data, this.key, value);
|
2150
|
-
return;
|
2151
|
-
}
|
2152
|
-
/**
|
2153
|
-
* Splice a value from the dataValue.
|
2154
|
-
*
|
2155
|
-
* @param index
|
2156
|
-
*/
|
2157
|
-
splice(index, flags = {}) {
|
2158
|
-
if (this.hasValue()) {
|
2159
|
-
const dataValue = this.dataValue || [];
|
2160
|
-
if (lodash_1.default.isArray(dataValue) && dataValue.hasOwnProperty(index)) {
|
2161
|
-
dataValue.splice(index, 1);
|
2162
|
-
this.dataValue = dataValue;
|
2163
|
-
this.triggerChange(flags);
|
2164
|
-
}
|
2165
|
-
}
|
2166
|
-
}
|
2167
|
-
unset() {
|
2168
|
-
lodash_1.default.unset(this._data, this.key);
|
2169
|
-
}
|
2170
|
-
/**
|
2171
|
-
* Deletes the value of the component.
|
2172
|
-
*/
|
2173
|
-
deleteValue() {
|
2174
|
-
this.setValue(null, {
|
2175
|
-
noUpdateEvent: true,
|
2176
|
-
noDefault: true
|
2177
|
-
});
|
2178
|
-
this.unset();
|
2179
|
-
}
|
2180
|
-
getCustomDefaultValue(defaultValue) {
|
2181
|
-
if (this.component.customDefaultValue && !this.options.preview) {
|
2182
|
-
defaultValue = this.evaluate(this.component.customDefaultValue, { value: '' }, 'value');
|
2183
|
-
}
|
2184
|
-
return defaultValue;
|
2185
|
-
}
|
2186
|
-
get shouldAddDefaultValue() {
|
2187
|
-
return !this.options.noDefaults || (this.component.defaultValue && !this.isEmpty(this.component.defaultValue)) || this.component.customDefaultValue;
|
2188
|
-
}
|
2189
|
-
get defaultValue() {
|
2190
|
-
let defaultValue = this.emptyValue;
|
2191
|
-
if (this.component.defaultValue) {
|
2192
|
-
defaultValue = this.component.defaultValue;
|
2193
|
-
}
|
2194
|
-
defaultValue = this.getCustomDefaultValue(defaultValue);
|
2195
|
-
const checkMask = (value) => {
|
2196
|
-
if (typeof value === 'string') {
|
2197
|
-
const placeholderChar = this.placeholderChar;
|
2198
|
-
value = (0, vanilla_text_mask_1.conformToMask)(value, this.defaultMask, { placeholderChar }).conformedValue;
|
2199
|
-
if (!FormioUtils.matchInputMask(value, this.defaultMask)) {
|
2200
|
-
value = '';
|
2201
|
-
}
|
2202
|
-
}
|
2203
|
-
else {
|
2204
|
-
value = '';
|
2205
|
-
}
|
2206
|
-
return value;
|
2207
|
-
};
|
2208
|
-
if (this.defaultMask) {
|
2209
|
-
if (Array.isArray(defaultValue)) {
|
2210
|
-
defaultValue = defaultValue.map(checkMask);
|
2211
|
-
}
|
2212
|
-
else {
|
2213
|
-
defaultValue = checkMask(defaultValue);
|
2214
|
-
}
|
2215
|
-
}
|
2216
|
-
// Clone so that it creates a new instance.
|
2217
|
-
return lodash_1.default.cloneDeep(defaultValue);
|
2218
|
-
}
|
2219
|
-
/**
|
2220
|
-
* Get the input value of this component.
|
2221
|
-
*
|
2222
|
-
* @return {*}
|
2223
|
-
*/
|
2224
|
-
getValue() {
|
2225
|
-
if (!this.hasInput || this.viewOnly || !this.refs.input || !this.refs.input.length) {
|
2226
|
-
return this.dataValue;
|
2227
|
-
}
|
2228
|
-
const values = [];
|
2229
|
-
for (const i in this.refs.input) {
|
2230
|
-
if (this.refs.input.hasOwnProperty(i)) {
|
2231
|
-
if (!this.component.multiple) {
|
2232
|
-
return this.getValueAt(i);
|
2233
|
-
}
|
2234
|
-
values.push(this.getValueAt(i));
|
2235
|
-
}
|
2236
|
-
}
|
2237
|
-
if (values.length === 0 && !this.component.multiple) {
|
2238
|
-
return '';
|
2239
|
-
}
|
2240
|
-
return values;
|
2241
|
-
}
|
2242
|
-
/**
|
2243
|
-
* Get the value at a specific index.
|
2244
|
-
*
|
2245
|
-
* @param index
|
2246
|
-
* @returns {*}
|
2247
|
-
*/
|
2248
|
-
getValueAt(index) {
|
2249
|
-
const input = this.performInputMapping(this.refs.input[index]);
|
2250
|
-
return input ? input.value : undefined;
|
2251
|
-
}
|
2252
|
-
/**
|
2253
|
-
* Set the value of this component.
|
2254
|
-
*
|
2255
|
-
* @param value
|
2256
|
-
* @param flags
|
2257
|
-
*
|
2258
|
-
* @return {boolean} - If the value changed.
|
2259
|
-
*/
|
2260
|
-
setValue(value, flags = {}) {
|
2261
|
-
const changed = this.updateValue(value, flags);
|
2262
|
-
value = this.dataValue;
|
2263
|
-
if (!this.hasInput) {
|
2264
|
-
return changed;
|
2265
|
-
}
|
2266
|
-
const isArray = Array.isArray(value);
|
2267
|
-
const valueInput = this.refs.fileLink || this.refs.input;
|
2268
|
-
if (isArray &&
|
2269
|
-
Array.isArray(this.defaultValue) &&
|
2270
|
-
this.refs.hasOwnProperty('input') &&
|
2271
|
-
valueInput &&
|
2272
|
-
(valueInput.length !== value.length) &&
|
2273
|
-
this.visible) {
|
2274
|
-
this.redraw();
|
2275
|
-
}
|
2276
|
-
if (this.isHtmlRenderMode() && flags && flags.fromSubmission && changed) {
|
2277
|
-
this.redraw();
|
2278
|
-
return changed;
|
2279
|
-
}
|
2280
|
-
for (const i in this.refs.input) {
|
2281
|
-
if (this.refs.input.hasOwnProperty(i)) {
|
2282
|
-
this.setValueAt(i, isArray ? value[i] : value, flags);
|
2283
|
-
}
|
2284
|
-
}
|
2285
|
-
return changed;
|
2286
|
-
}
|
2287
|
-
/**
|
2288
|
-
* Set the value at a specific index.
|
2289
|
-
*
|
2290
|
-
* @param index
|
2291
|
-
* @param value
|
2292
|
-
*/
|
2293
|
-
setValueAt(index, value, flags = {}) {
|
2294
|
-
if (!flags.noDefault && (value === null || value === undefined) && !this.component.multiple) {
|
2295
|
-
value = this.defaultValue;
|
2296
|
-
}
|
2297
|
-
const input = this.performInputMapping(this.refs.input[index]);
|
2298
|
-
const valueMaskInput = this.refs.valueMaskInput;
|
2299
|
-
if (valueMaskInput === null || valueMaskInput === void 0 ? void 0 : valueMaskInput.mask) {
|
2300
|
-
valueMaskInput.mask.textMaskInputElement.update(value);
|
2301
|
-
}
|
2302
|
-
if (input.mask) {
|
2303
|
-
input.mask.textMaskInputElement.update(value);
|
2304
|
-
}
|
2305
|
-
else if (input.widget && input.widget.setValue) {
|
2306
|
-
input.widget.setValue(value);
|
2307
|
-
}
|
2308
|
-
else {
|
2309
|
-
input.value = value;
|
2310
|
-
}
|
2311
|
-
}
|
2312
|
-
get hasSetValue() {
|
2313
|
-
return this.hasValue() && !this.isEmpty(this.dataValue);
|
2314
|
-
}
|
2315
|
-
setDefaultValue() {
|
2316
|
-
if (this.defaultValue && this.shouldAddDefaultValue) {
|
2317
|
-
const defaultValue = (this.component.multiple && !this.dataValue.length) ? [] : this.defaultValue;
|
2318
|
-
this.setValue(defaultValue, {
|
2319
|
-
noUpdateEvent: true
|
2320
|
-
});
|
2321
|
-
}
|
2322
|
-
}
|
2323
|
-
/**
|
2324
|
-
* Restore the value of a control.
|
2325
|
-
*/
|
2326
|
-
restoreValue() {
|
2327
|
-
if (this.hasSetValue) {
|
2328
|
-
this.setValue(this.dataValue, {
|
2329
|
-
noUpdateEvent: true
|
2330
|
-
});
|
2331
|
-
}
|
2332
|
-
else {
|
2333
|
-
this.setDefaultValue();
|
2334
|
-
}
|
2335
|
-
}
|
2336
|
-
/**
|
2337
|
-
* Normalize values coming into updateValue.
|
2338
|
-
*
|
2339
|
-
* @param value
|
2340
|
-
* @return {*}
|
2341
|
-
*/
|
2342
|
-
normalizeValue(value) {
|
2343
|
-
if (this.component.multiple && !Array.isArray(value)) {
|
2344
|
-
value = value ? [value] : [];
|
2345
|
-
}
|
2346
|
-
return value;
|
2347
|
-
}
|
2348
|
-
/**
|
2349
|
-
* Update a value of this component.
|
2350
|
-
*
|
2351
|
-
* @param flags
|
2352
|
-
*/
|
2353
|
-
updateComponentValue(value, flags = {}) {
|
2354
|
-
let newValue = (!flags.resetValue && (value === undefined || value === null)) ? this.getValue() : value;
|
2355
|
-
newValue = this.normalizeValue(newValue, flags);
|
2356
|
-
const oldValue = this.dataValue;
|
2357
|
-
let changed = ((newValue !== undefined) ? this.hasChanged(newValue, oldValue) : false);
|
2358
|
-
if (changed) {
|
2359
|
-
this.dataValue = newValue;
|
2360
|
-
changed = this.dataValue !== oldValue;
|
2361
|
-
this.updateOnChange(flags, changed);
|
2362
|
-
}
|
2363
|
-
if (this.componentModal && flags && flags.fromSubmission) {
|
2364
|
-
this.componentModal.setValue(value);
|
2365
|
-
}
|
2366
|
-
return changed;
|
2367
|
-
}
|
2368
|
-
/**
|
2369
|
-
* Updates the value of this component plus all sub-components.
|
2370
|
-
*
|
2371
|
-
* @param args
|
2372
|
-
* @return {boolean}
|
2373
|
-
*/
|
2374
|
-
updateValue(...args) {
|
2375
|
-
return this.updateComponentValue(...args);
|
2376
|
-
}
|
2377
|
-
getIcon(name, content, styles, ref = 'icon') {
|
2378
|
-
return this.renderTemplate('icon', {
|
2379
|
-
className: this.iconClass(name),
|
2380
|
-
ref,
|
2381
|
-
styles,
|
2382
|
-
content
|
2383
|
-
});
|
2384
|
-
}
|
2385
|
-
/**
|
2386
|
-
* Resets the value of this component.
|
2387
|
-
*/
|
2388
|
-
resetValue() {
|
2389
|
-
this.unset();
|
2390
|
-
this.setValue(this.emptyValue, {
|
2391
|
-
noUpdateEvent: true,
|
2392
|
-
noValidate: true,
|
2393
|
-
resetValue: true
|
2394
|
-
});
|
2395
|
-
}
|
2396
|
-
/**
|
2397
|
-
* Determine if the value of this component has changed.
|
2398
|
-
*
|
2399
|
-
* @param newValue
|
2400
|
-
* @param oldValue
|
2401
|
-
* @return {boolean}
|
2402
|
-
*/
|
2403
|
-
hasChanged(newValue, oldValue) {
|
2404
|
-
if (((newValue === undefined) || (newValue === null)) &&
|
2405
|
-
((oldValue === undefined) || (oldValue === null) || this.isEmpty(oldValue))) {
|
2406
|
-
return false;
|
2407
|
-
}
|
2408
|
-
// If we do not have a value and are getting set to anything other than undefined or null, then we changed.
|
2409
|
-
if (newValue !== undefined &&
|
2410
|
-
newValue !== null &&
|
2411
|
-
this.allowData &&
|
2412
|
-
!this.hasValue()) {
|
2413
|
-
return true;
|
2414
|
-
}
|
2415
|
-
return !lodash_1.default.isEqual(newValue, oldValue);
|
2416
|
-
}
|
2417
|
-
/**
|
2418
|
-
* Update the value on change.
|
2419
|
-
*
|
2420
|
-
* @param flags
|
2421
|
-
*/
|
2422
|
-
updateOnChange(flags = {}, changed = false) {
|
2423
|
-
if (!flags.noUpdateEvent && changed) {
|
2424
|
-
this.triggerChange(flags);
|
2425
|
-
return true;
|
2426
|
-
}
|
2427
|
-
return false;
|
2428
|
-
}
|
2429
|
-
/**
|
2430
|
-
* Perform a calculated value operation.
|
2431
|
-
*
|
2432
|
-
* @param data - The global data object.
|
2433
|
-
*
|
2434
|
-
* @return {boolean} - If the value changed during calculation.
|
2435
|
-
*/
|
2436
|
-
convertNumberOrBoolToString(value) {
|
2437
|
-
if (typeof value === 'number' || typeof value === 'boolean') {
|
2438
|
-
return value.toString();
|
2439
|
-
}
|
2440
|
-
return value;
|
2441
|
-
}
|
2442
|
-
doValueCalculation(dataValue, data, row) {
|
2443
|
-
var _a;
|
2444
|
-
return this.evaluate(this.component.calculateValue, {
|
2445
|
-
value: dataValue,
|
2446
|
-
data,
|
2447
|
-
row: row || this.data,
|
2448
|
-
submission: ((_a = this.root) === null || _a === void 0 ? void 0 : _a._submission) || {
|
2449
|
-
data: this.rootValue
|
2450
|
-
}
|
2451
|
-
}, 'value');
|
2452
|
-
}
|
2453
|
-
/* eslint-disable max-statements */
|
2454
|
-
calculateComponentValue(data, flags, row) {
|
2455
|
-
// Skip value calculation for the component if we don't have entire form data set
|
2456
|
-
if (lodash_1.default.isUndefined(lodash_1.default.get(this, 'root.data'))) {
|
2457
|
-
return false;
|
2458
|
-
}
|
2459
|
-
// If no calculated value or
|
2460
|
-
// hidden and set to clearOnHide (Don't calculate a value for a hidden field set to clear when hidden)
|
2461
|
-
const { clearOnHide } = this.component;
|
2462
|
-
const shouldBeCleared = !this.visible && clearOnHide;
|
2463
|
-
const allowOverride = lodash_1.default.get(this.component, 'allowCalculateOverride', false);
|
2464
|
-
// Handle all cases when calculated values should not fire.
|
2465
|
-
if ((this.options.readOnly && !this.options.pdf && !this.component.calculateValue) ||
|
2466
|
-
!(this.component.calculateValue || this.component.calculateValueVariable) ||
|
2467
|
-
shouldBeCleared ||
|
2468
|
-
(this.options.server && !this.component.calculateServer) ||
|
2469
|
-
(flags.dataSourceInitialLoading && allowOverride)) {
|
2470
|
-
return false;
|
2471
|
-
}
|
2472
|
-
const dataValue = this.dataValue;
|
2473
|
-
// Calculate the new value.
|
2474
|
-
let calculatedValue = this.doValueCalculation(dataValue, data, row, flags);
|
2475
|
-
if (this.options.readOnly && dataValue && !calculatedValue) {
|
2476
|
-
return false;
|
2477
|
-
}
|
2478
|
-
if (lodash_1.default.isNil(calculatedValue)) {
|
2479
|
-
calculatedValue = this.emptyValue;
|
2480
|
-
}
|
2481
|
-
const changed = !lodash_1.default.isEqual(dataValue, calculatedValue);
|
2482
|
-
// Do not override calculations on server if they have calculateServer set.
|
2483
|
-
if (allowOverride) {
|
2484
|
-
// The value is considered locked if it is not empty and comes from a submission value.
|
2485
|
-
const fromSubmission = (flags.fromSubmission && this.component.persistent === true);
|
2486
|
-
if (this.isEmpty(dataValue)) {
|
2487
|
-
// Reset the calculation lock if ever the data is cleared.
|
2488
|
-
this.calculationLocked = false;
|
2489
|
-
}
|
2490
|
-
else if (this.calculationLocked || fromSubmission) {
|
2491
|
-
this.calculationLocked = true;
|
2492
|
-
return false;
|
2493
|
-
}
|
2494
|
-
const firstPass = (this.calculatedValue === undefined);
|
2495
|
-
if (firstPass) {
|
2496
|
-
this.calculatedValue = null;
|
2497
|
-
}
|
2498
|
-
const newCalculatedValue = this.normalizeValue(this.convertNumberOrBoolToString(calculatedValue));
|
2499
|
-
const previousCalculatedValue = this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue));
|
2500
|
-
const normalizedDataValue = this.normalizeValue(this.convertNumberOrBoolToString(dataValue));
|
2501
|
-
const calculationChanged = !lodash_1.default.isEqual(previousCalculatedValue, newCalculatedValue);
|
2502
|
-
const previousChanged = !lodash_1.default.isEqual(normalizedDataValue, previousCalculatedValue);
|
2503
|
-
if (calculationChanged && previousChanged && !firstPass) {
|
2504
|
-
return false;
|
2505
|
-
}
|
2506
|
-
// Check to ensure that the calculated value is different than the previously calculated value.
|
2507
|
-
if (previousCalculatedValue && previousChanged && !calculationChanged) {
|
2508
|
-
return false;
|
2509
|
-
}
|
2510
|
-
if (flags.isReordered || !calculationChanged) {
|
2511
|
-
return false;
|
2512
|
-
}
|
2513
|
-
if (fromSubmission) {
|
2514
|
-
// If we set value from submission and it differs from calculated one, set the calculated value to prevent overriding dataValue in the next pass
|
2515
|
-
this.calculatedValue = calculatedValue;
|
2516
|
-
return false;
|
2517
|
-
}
|
2518
|
-
// If this is the firstPass, and the dataValue is different than to the calculatedValue.
|
2519
|
-
if (firstPass && !this.isEmpty(dataValue) && changed && calculationChanged) {
|
2520
|
-
// Return that we have a change so it will perform another pass.
|
2521
|
-
return true;
|
2522
|
-
}
|
2523
|
-
}
|
2524
|
-
this.calculatedValue = calculatedValue;
|
2525
|
-
if (changed) {
|
2526
|
-
if (!flags.noPristineChangeOnModified) {
|
2527
|
-
this.pristine = false;
|
2528
|
-
}
|
2529
|
-
flags.triggeredComponentId = this.id;
|
2530
|
-
return this.setValue(calculatedValue, flags);
|
2531
|
-
}
|
2532
|
-
return false;
|
2533
|
-
}
|
2534
|
-
/* eslint-enable max-statements */
|
2535
|
-
/**
|
2536
|
-
* Performs calculations in this component plus any child components.
|
2537
|
-
*
|
2538
|
-
* @param args
|
2539
|
-
* @return {boolean}
|
2540
|
-
*/
|
2541
|
-
calculateValue(data, flags, row) {
|
2542
|
-
data = data || this.rootValue;
|
2543
|
-
flags = flags || {};
|
2544
|
-
row = row || this.data;
|
2545
|
-
return this.calculateComponentValue(data, flags, row);
|
2546
|
-
}
|
2547
|
-
/**
|
2548
|
-
* Get this component's label text.
|
2549
|
-
*
|
2550
|
-
*/
|
2551
|
-
get label() {
|
2552
|
-
return this.component.label;
|
2553
|
-
}
|
2554
|
-
/**
|
2555
|
-
* Set this component's label text and render it.
|
2556
|
-
*
|
2557
|
-
* @param value - The new label text.
|
2558
|
-
*/
|
2559
|
-
set label(value) {
|
2560
|
-
this.component.label = value;
|
2561
|
-
if (this.labelElement) {
|
2562
|
-
this.labelElement.innerText = value;
|
2563
|
-
}
|
2564
|
-
}
|
2565
|
-
/**
|
2566
|
-
* Get FormioForm element at the root of this component tree.
|
2567
|
-
*
|
2568
|
-
*/
|
2569
|
-
getRoot() {
|
2570
|
-
return this.root;
|
2571
|
-
}
|
2572
|
-
/**
|
2573
|
-
* Returns the invalid message, or empty string if the component is valid.
|
2574
|
-
*
|
2575
|
-
* @param data
|
2576
|
-
* @param dirty
|
2577
|
-
* @return {*}
|
2578
|
-
*/
|
2579
|
-
invalidMessage(data, dirty, ignoreCondition, row) {
|
2580
|
-
if (!ignoreCondition && !this.checkCondition(row, data)) {
|
2581
|
-
return '';
|
2582
|
-
}
|
2583
|
-
// See if this is forced invalid.
|
2584
|
-
if (this.invalid) {
|
2585
|
-
return this.invalid;
|
2586
|
-
}
|
2587
|
-
// No need to check for errors if there is no input or if it is pristine.
|
2588
|
-
if (!this.hasInput || (!dirty && this.pristine)) {
|
2589
|
-
return '';
|
2590
|
-
}
|
2591
|
-
return lodash_1.default.map(Validator_1.default.checkComponent(this, data), 'message').join('\n\n');
|
2592
|
-
}
|
2593
|
-
/**
|
2594
|
-
* Returns if the component is valid or not.
|
2595
|
-
*
|
2596
|
-
* @param data
|
2597
|
-
* @param dirty
|
2598
|
-
* @return {boolean}
|
2599
|
-
*/
|
2600
|
-
isValid(data, dirty) {
|
2601
|
-
return !this.invalidMessage(data, dirty);
|
2602
|
-
}
|
2603
|
-
setComponentValidity(messages, dirty, silentCheck) {
|
2604
|
-
const hasErrors = !!messages.filter(message => message.level === 'error' && !message.fromServer).length;
|
2605
|
-
if (messages.length && (!silentCheck || this.error) && (!this.isEmpty(this.defaultValue) || dirty || !this.pristine)) {
|
2606
|
-
this.setCustomValidity(messages, dirty);
|
2607
|
-
}
|
2608
|
-
else if (!silentCheck) {
|
2609
|
-
this.setCustomValidity('');
|
2610
|
-
}
|
2611
|
-
return !hasErrors;
|
2612
|
-
}
|
2613
|
-
/**
|
2614
|
-
* Checks the validity of this component and sets the error message if it is invalid.
|
2615
|
-
*
|
2616
|
-
* @param data
|
2617
|
-
* @param dirty
|
2618
|
-
* @param row
|
2619
|
-
* @return {boolean}
|
2620
|
-
*/
|
2621
|
-
checkComponentValidity(data, dirty, row, options = {}) {
|
2622
|
-
var _a;
|
2623
|
-
data = data || this.rootValue;
|
2624
|
-
row = row || this.data;
|
2625
|
-
const { async = false, silentCheck = false } = options;
|
2626
|
-
if (this.shouldSkipValidation(data, dirty, row)) {
|
2627
|
-
this.setCustomValidity('');
|
2628
|
-
return async ? Promise.resolve(true) : true;
|
2629
|
-
}
|
2630
|
-
const check = Validator_1.default.checkComponent(this, data, row, true, async);
|
2631
|
-
let validations = check;
|
2632
|
-
if ((_a = this.serverErrors) === null || _a === void 0 ? void 0 : _a.length) {
|
2633
|
-
validations = check.concat(this.serverErrors);
|
2634
|
-
}
|
2635
|
-
return async ?
|
2636
|
-
validations.then((messages) => this.setComponentValidity(messages, dirty, silentCheck)) :
|
2637
|
-
this.setComponentValidity(validations, dirty, silentCheck);
|
2638
|
-
}
|
2639
|
-
checkValidity(data, dirty, row, silentCheck) {
|
2640
|
-
data = data || this.rootValue;
|
2641
|
-
row = row || this.data;
|
2642
|
-
const isValid = this.checkComponentValidity(data, dirty, row, { silentCheck });
|
2643
|
-
this.checkModal();
|
2644
|
-
return isValid;
|
2645
|
-
}
|
2646
|
-
checkAsyncValidity(data, dirty, row, silentCheck) {
|
2647
|
-
return Promise.resolve(this.checkComponentValidity(data, dirty, row, { async: true, silentCheck }));
|
2648
|
-
}
|
2649
|
-
/**
|
2650
|
-
* Check the conditions, calculations, and validity of a single component and triggers an update if
|
2651
|
-
* something changed.
|
2652
|
-
*
|
2653
|
-
* @param data - The root data of the change event.
|
2654
|
-
* @param flags - The flags from this change event.
|
2655
|
-
*
|
2656
|
-
* @return boolean - If component is valid or not.
|
2657
|
-
*/
|
2658
|
-
checkData(data, flags, row) {
|
2659
|
-
data = data || this.rootValue;
|
2660
|
-
flags = flags || {};
|
2661
|
-
row = row || this.data;
|
2662
|
-
// Needs for Nextgen Rules Engine
|
2663
|
-
this.resetCaches();
|
2664
|
-
// Do not trigger refresh if change was triggered on blur event since components with Refresh on Blur have their own listeners
|
2665
|
-
if (!flags.fromBlur) {
|
2666
|
-
this.checkRefreshOn(flags.changes, flags);
|
2667
|
-
}
|
2668
|
-
if (flags.noCheck) {
|
2669
|
-
return true;
|
2670
|
-
}
|
2671
|
-
this.checkComponentConditions(data, flags, row);
|
2672
|
-
if (this.id !== flags.triggeredComponentId) {
|
2673
|
-
this.calculateComponentValue(data, flags, row);
|
2674
|
-
}
|
2675
|
-
if (flags.noValidate && !flags.validateOnInit && !flags.fromIframe) {
|
2676
|
-
if (flags.fromSubmission && this.rootPristine && this.pristine && this.error && flags.changed) {
|
2677
|
-
this.checkComponentValidity(data, !!this.options.alwaysDirty, row, true);
|
2678
|
-
}
|
2679
|
-
return true;
|
2680
|
-
}
|
2681
|
-
let isDirty = false;
|
2682
|
-
// We need to set dirty if they explicitly set noValidate to false.
|
2683
|
-
if (this.options.alwaysDirty || flags.dirty) {
|
2684
|
-
isDirty = true;
|
2685
|
-
}
|
2686
|
-
// See if they explicitely set the values with setSubmission.
|
2687
|
-
if (flags.fromSubmission && this.hasValue(data)) {
|
2688
|
-
isDirty = true;
|
2689
|
-
}
|
2690
|
-
this.setDirty(isDirty);
|
2691
|
-
if (this.component.validateOn === 'blur' && flags.fromSubmission) {
|
2692
|
-
return true;
|
2693
|
-
}
|
2694
|
-
const isValid = this.checkComponentValidity(data, isDirty, row, flags);
|
2695
|
-
this.checkModal();
|
2696
|
-
return isValid;
|
2697
|
-
}
|
2698
|
-
checkModal(isValid = true, dirty = false) {
|
2699
|
-
if (!this.component.modalEdit || !this.componentModal) {
|
2700
|
-
return;
|
2701
|
-
}
|
2702
|
-
if (dirty && !isValid) {
|
2703
|
-
this.setErrorClasses([this.refs.openModal], dirty, !isValid, !!this.errors.length, this.refs.openModalWrapper);
|
2704
|
-
}
|
2705
|
-
else {
|
2706
|
-
this.clearErrorClasses(this.refs.openModalWrapper);
|
2707
|
-
}
|
2708
|
-
}
|
2709
|
-
get validationValue() {
|
2710
|
-
return this.dataValue;
|
2711
|
-
}
|
2712
|
-
isEmpty(value = this.dataValue) {
|
2713
|
-
const isEmptyArray = (lodash_1.default.isArray(value) && value.length === 1) ? lodash_1.default.isEqual(value[0], this.emptyValue) : false;
|
2714
|
-
return value == null || value.length === 0 || lodash_1.default.isEqual(value, this.emptyValue) || isEmptyArray;
|
2715
|
-
}
|
2716
|
-
isEqual(valueA, valueB = this.dataValue) {
|
2717
|
-
return (this.isEmpty(valueA) && this.isEmpty(valueB)) || lodash_1.default.isEqual(valueA, valueB);
|
2718
|
-
}
|
2719
|
-
/**
|
2720
|
-
* Check if a component is eligible for multiple validation
|
2721
|
-
*
|
2722
|
-
* @return {boolean}
|
2723
|
-
*/
|
2724
|
-
validateMultiple() {
|
2725
|
-
return true;
|
2726
|
-
}
|
2727
|
-
get errors() {
|
2728
|
-
return this.error ? [this.error] : [];
|
2729
|
-
}
|
2730
|
-
clearErrorClasses(element = this.element) {
|
2731
|
-
this.removeClass(element, this.options.componentErrorClass);
|
2732
|
-
this.removeClass(element, 'alert alert-danger');
|
2733
|
-
this.removeClass(element, 'has-error');
|
2734
|
-
this.removeClass(element, 'has-message');
|
2735
|
-
}
|
2736
|
-
setInputWidgetErrorClasses(inputRefs, hasErrors) {
|
2737
|
-
if (!this.isInputComponent || !this.component.widget || !(inputRefs === null || inputRefs === void 0 ? void 0 : inputRefs.length)) {
|
2738
|
-
return;
|
2739
|
-
}
|
2740
|
-
inputRefs.forEach((input) => {
|
2741
|
-
if ((input === null || input === void 0 ? void 0 : input.widget) && input.widget.setErrorClasses) {
|
2742
|
-
input.widget.setErrorClasses(hasErrors);
|
2743
|
-
}
|
2744
|
-
});
|
2745
|
-
}
|
2746
|
-
addFocusBlurEvents(element) {
|
2747
|
-
this.addEventListener(element, 'focus', () => {
|
2748
|
-
if (this.root.focusedComponent !== this) {
|
2749
|
-
if (this.root.pendingBlur) {
|
2750
|
-
this.root.pendingBlur();
|
2751
|
-
}
|
2752
|
-
this.root.focusedComponent = this;
|
2753
|
-
this.emit('focus', this);
|
2754
|
-
}
|
2755
|
-
else if (this.root.focusedComponent === this && this.root.pendingBlur) {
|
2756
|
-
this.root.pendingBlur.cancel();
|
2757
|
-
this.root.pendingBlur = null;
|
2758
|
-
}
|
2759
|
-
});
|
2760
|
-
this.addEventListener(element, 'blur', () => {
|
2761
|
-
this.root.pendingBlur = FormioUtils.delay(() => {
|
2762
|
-
this.emit('blur', this);
|
2763
|
-
if (this.component.validateOn === 'blur') {
|
2764
|
-
this.root.triggerChange({ fromBlur: true }, {
|
2765
|
-
instance: this,
|
2766
|
-
component: this.component,
|
2767
|
-
value: this.dataValue,
|
2768
|
-
flags: { fromBlur: true }
|
2769
|
-
});
|
2770
|
-
}
|
2771
|
-
this.root.focusedComponent = null;
|
2772
|
-
this.root.pendingBlur = null;
|
2773
|
-
});
|
2774
|
-
});
|
2775
|
-
}
|
2776
|
-
setCustomValidity(messages, dirty, external) {
|
2777
|
-
const inputRefs = this.isInputComponent ? this.refs.input || [] : null;
|
2778
|
-
if (typeof messages === 'string' && messages) {
|
2779
|
-
messages = {
|
2780
|
-
level: 'error',
|
2781
|
-
message: messages,
|
2782
|
-
};
|
2783
|
-
}
|
2784
|
-
if (!Array.isArray(messages)) {
|
2785
|
-
if (messages) {
|
2786
|
-
messages = [messages];
|
2787
|
-
}
|
2788
|
-
else {
|
2789
|
-
messages = [];
|
2790
|
-
}
|
2791
|
-
}
|
2792
|
-
const hasErrors = !!messages.filter(message => message.level === 'error').length;
|
2793
|
-
let invalidInputRefs = inputRefs;
|
2794
|
-
if (this.component.multiple) {
|
2795
|
-
const inputRefsArray = Array.from(inputRefs);
|
2796
|
-
inputRefsArray.forEach((input) => {
|
2797
|
-
this.setElementInvalid(this.performInputMapping(input), false);
|
2798
|
-
});
|
2799
|
-
this.setInputWidgetErrorClasses(inputRefsArray, false);
|
2800
|
-
invalidInputRefs = inputRefsArray.filter((ref) => {
|
2801
|
-
var _a;
|
2802
|
-
return (_a = messages.some) === null || _a === void 0 ? void 0 : _a.call(messages, (msg) => {
|
2803
|
-
var _a;
|
2804
|
-
return ((_a = msg === null || msg === void 0 ? void 0 : msg.context) === null || _a === void 0 ? void 0 : _a.input) === ref;
|
2805
|
-
});
|
2806
|
-
});
|
2807
|
-
}
|
2808
|
-
if (messages.length) {
|
2809
|
-
if (this.refs.messageContainer) {
|
2810
|
-
this.empty(this.refs.messageContainer);
|
2811
|
-
}
|
2812
|
-
this.error = {
|
2813
|
-
component: this.component,
|
2814
|
-
message: messages[0].message,
|
2815
|
-
messages,
|
2816
|
-
external: !!external,
|
2817
|
-
};
|
2818
|
-
this.emit('componentError', this.error);
|
2819
|
-
this.addMessages(messages, dirty, invalidInputRefs);
|
2820
|
-
if (invalidInputRefs) {
|
2821
|
-
this.setErrorClasses(invalidInputRefs, dirty, hasErrors, !!messages.length);
|
2822
|
-
}
|
2823
|
-
}
|
2824
|
-
else if (!this.error || (this.error && this.error.external === !!external)) {
|
2825
|
-
if (this.refs.messageContainer) {
|
2826
|
-
this.empty(this.refs.messageContainer);
|
2827
|
-
}
|
2828
|
-
if (this.refs.modalMessageContainer) {
|
2829
|
-
this.empty(this.refs.modalMessageContainer);
|
2830
|
-
}
|
2831
|
-
this.error = null;
|
2832
|
-
if (invalidInputRefs) {
|
2833
|
-
this.setErrorClasses(invalidInputRefs, dirty, hasErrors, !!messages.length);
|
2834
|
-
}
|
2835
|
-
this.clearErrorClasses();
|
2836
|
-
}
|
2837
|
-
// if (!this.refs.input) {
|
2838
|
-
// return;
|
2839
|
-
// }
|
2840
|
-
// this.refs.input.forEach(input => {
|
2841
|
-
// input = this.performInputMapping(input);
|
2842
|
-
// if (typeof input.setCustomValidity === 'function') {
|
2843
|
-
// input.setCustomValidity(message, dirty);
|
2844
|
-
// }
|
2845
|
-
// });
|
2846
|
-
}
|
2847
|
-
/**
|
2848
|
-
* Determines if the value of this component is hidden from the user as if it is coming from the server, but is
|
2849
|
-
* protected.
|
2850
|
-
*
|
2851
|
-
* @return {boolean|*}
|
2852
|
-
*/
|
2853
|
-
isValueHidden() {
|
2854
|
-
if (this.component.protected && this.root.editing) {
|
2855
|
-
return false;
|
2856
|
-
}
|
2857
|
-
if (!this.root || !this.root.hasOwnProperty('editing')) {
|
2858
|
-
return false;
|
2859
|
-
}
|
2860
|
-
if (!this.root || !this.root.editing) {
|
2861
|
-
return false;
|
2862
|
-
}
|
2863
|
-
return (this.component.protected || !this.component.persistent || (this.component.persistent === 'client-only'));
|
2864
|
-
}
|
2865
|
-
shouldSkipValidation(data, dirty, row) {
|
2866
|
-
const rules = [
|
2867
|
-
// Do not check custom validation for empty data if it is not required
|
2868
|
-
() => this.component.validate.custom && !this.dataValue && !this.component.validate.required,
|
2869
|
-
// Force valid if component is read-only
|
2870
|
-
() => this.options.readOnly,
|
2871
|
-
// Do not check validations if component is not an input component.
|
2872
|
-
() => !this.hasInput,
|
2873
|
-
// Check to see if we are editing and if so, check component persistence.
|
2874
|
-
() => this.isValueHidden(),
|
2875
|
-
// Force valid if component is hidden.
|
2876
|
-
() => !this.visible,
|
2877
|
-
// Force valid if component is conditionally hidden.
|
2878
|
-
() => !this.checkCondition(row, data)
|
2879
|
-
];
|
2880
|
-
return rules.some(pred => pred());
|
2881
|
-
}
|
2882
|
-
// Maintain reverse compatibility.
|
2883
|
-
whenReady() {
|
2884
|
-
console.warn('The whenReady() method has been deprecated. Please use the dataReady property instead.');
|
2885
|
-
return this.dataReady;
|
2886
|
-
}
|
2887
|
-
get dataReady() {
|
2888
|
-
return Promise.resolve();
|
2889
|
-
}
|
2890
|
-
/**
|
2891
|
-
* Prints out the value of this component as a string value.
|
2892
|
-
*/
|
2893
|
-
asString(value) {
|
2894
|
-
value = value || this.getValue();
|
2895
|
-
return (Array.isArray(value) ? value : [value]).map(lodash_1.default.toString).join(', ');
|
2896
|
-
}
|
2897
|
-
/**
|
2898
|
-
* Return if the component is disabled.
|
2899
|
-
* @return {boolean}
|
2900
|
-
*/
|
2901
|
-
get disabled() {
|
2902
|
-
return this._disabled || this.parentDisabled;
|
2903
|
-
}
|
2904
|
-
/**
|
2905
|
-
* Disable this component.
|
2906
|
-
*
|
2907
|
-
* @param {boolean} disabled
|
2908
|
-
*/
|
2909
|
-
set disabled(disabled) {
|
2910
|
-
this._disabled = disabled;
|
2911
|
-
}
|
2912
|
-
setDisabled(element, disabled) {
|
2913
|
-
if (!element) {
|
2914
|
-
return;
|
2915
|
-
}
|
2916
|
-
element.disabled = disabled;
|
2917
|
-
if (disabled) {
|
2918
|
-
element.setAttribute('disabled', 'disabled');
|
2919
|
-
}
|
2920
|
-
else {
|
2921
|
-
element.removeAttribute('disabled');
|
2922
|
-
}
|
2923
|
-
}
|
2924
|
-
setLoading(element, loading) {
|
2925
|
-
if (!element || (element.loading === loading)) {
|
2926
|
-
return;
|
2927
|
-
}
|
2928
|
-
element.loading = loading;
|
2929
|
-
if (!element.loader && loading) {
|
2930
|
-
element.loader = this.ce('i', {
|
2931
|
-
class: `${this.iconClass('refresh', true)} button-icon-right`
|
2932
|
-
});
|
2933
|
-
}
|
2934
|
-
if (element.loader) {
|
2935
|
-
if (loading) {
|
2936
|
-
this.appendTo(element.loader, element);
|
2937
|
-
}
|
2938
|
-
else {
|
2939
|
-
this.removeChildFrom(element.loader, element);
|
2940
|
-
}
|
2941
|
-
}
|
2942
|
-
}
|
2943
|
-
selectOptions(select, tag, options, defaultValue) {
|
2944
|
-
lodash_1.default.each(options, (option) => {
|
2945
|
-
const attrs = {
|
2946
|
-
value: option.value
|
2947
|
-
};
|
2948
|
-
if (defaultValue !== undefined && (option.value === defaultValue)) {
|
2949
|
-
attrs.selected = 'selected';
|
2950
|
-
}
|
2951
|
-
const optionElement = this.ce('option', attrs);
|
2952
|
-
optionElement.appendChild(this.text(option.label));
|
2953
|
-
select.appendChild(optionElement);
|
2954
|
-
});
|
2955
|
-
}
|
2956
|
-
setSelectValue(select, value) {
|
2957
|
-
const options = select.querySelectorAll('option');
|
2958
|
-
lodash_1.default.each(options, (option) => {
|
2959
|
-
if (option.value === value) {
|
2960
|
-
option.setAttribute('selected', 'selected');
|
2961
|
-
}
|
2962
|
-
else {
|
2963
|
-
option.removeAttribute('selected');
|
2964
|
-
}
|
2965
|
-
});
|
2966
|
-
if (select.onchange) {
|
2967
|
-
select.onchange();
|
2968
|
-
}
|
2969
|
-
if (select.onselect) {
|
2970
|
-
select.onselect();
|
2971
|
-
}
|
2972
|
-
}
|
2973
|
-
getRelativePath(path) {
|
2974
|
-
const keyPart = `.${this.key}`;
|
2975
|
-
const thisPath = this.isInputComponent ? this.path
|
2976
|
-
: this.path.slice(0).replace(keyPart, '');
|
2977
|
-
return path.replace(thisPath, '');
|
2978
|
-
}
|
2979
|
-
clear() {
|
2980
|
-
this.detach();
|
2981
|
-
this.empty(this.getElement());
|
2982
|
-
}
|
2983
|
-
append(element) {
|
2984
|
-
this.appendTo(element, this.element);
|
2985
|
-
}
|
2986
|
-
prepend(element) {
|
2987
|
-
this.prependTo(element, this.element);
|
2988
|
-
}
|
2989
|
-
removeChild(element) {
|
2990
|
-
this.removeChildFrom(element, this.element);
|
2991
|
-
}
|
2992
|
-
detachLogic() {
|
2993
|
-
this.logic.forEach(logic => {
|
2994
|
-
if (logic.trigger.type === 'event') {
|
2995
|
-
const event = this.interpolate(logic.trigger.event);
|
2996
|
-
this.off(event); // only applies to callbacks on this component
|
2997
|
-
}
|
2998
|
-
});
|
2999
|
-
}
|
3000
|
-
attachLogic() {
|
3001
|
-
// Do not attach logic during builder mode.
|
3002
|
-
if (this.builderMode) {
|
3003
|
-
return;
|
3004
|
-
}
|
3005
|
-
this.logic.forEach((logic) => {
|
3006
|
-
if (logic.trigger.type === 'event') {
|
3007
|
-
const event = this.interpolate(logic.trigger.event);
|
3008
|
-
this.on(event, (...args) => {
|
3009
|
-
const newComponent = (0, utils_1.fastCloneDeep)(this.originalComponent);
|
3010
|
-
if (this.applyActions(newComponent, logic.actions, args)) {
|
3011
|
-
// If component definition changed, replace it.
|
3012
|
-
if (!lodash_1.default.isEqual(this.component, newComponent)) {
|
3013
|
-
this.component = newComponent;
|
3014
|
-
const visible = this.conditionallyVisible(null, null);
|
3015
|
-
const disabled = this.shouldDisabled;
|
3016
|
-
// Change states which won't be recalculated during redrawing
|
3017
|
-
if (this.visible !== visible) {
|
3018
|
-
this.visible = visible;
|
3019
|
-
}
|
3020
|
-
if (this.disabled !== disabled) {
|
3021
|
-
this.disabled = disabled;
|
3022
|
-
}
|
3023
|
-
this.redraw();
|
3024
|
-
}
|
3025
|
-
}
|
3026
|
-
}, true);
|
3027
|
-
}
|
3028
|
-
});
|
3029
|
-
}
|
3030
|
-
/**
|
3031
|
-
* Get the element information.
|
3032
|
-
*/
|
3033
|
-
elementInfo() {
|
3034
|
-
const attributes = {
|
3035
|
-
name: this.options.name,
|
3036
|
-
type: this.component.inputType || 'text',
|
3037
|
-
class: 'form-control',
|
3038
|
-
lang: this.options.language
|
3039
|
-
};
|
3040
|
-
if (this.component.placeholder) {
|
3041
|
-
attributes.placeholder = this.t(this.component.placeholder, { _userInput: true });
|
3042
|
-
}
|
3043
|
-
if (this.component.tabindex) {
|
3044
|
-
attributes.tabindex = this.component.tabindex;
|
3045
|
-
}
|
3046
|
-
if (this.disabled) {
|
3047
|
-
attributes.disabled = 'disabled';
|
3048
|
-
}
|
3049
|
-
lodash_1.default.defaults(attributes, this.component.attributes);
|
3050
|
-
return {
|
3051
|
-
type: 'input',
|
3052
|
-
component: this.component,
|
3053
|
-
changeEvent: 'change',
|
3054
|
-
attr: attributes
|
3055
|
-
};
|
3056
|
-
}
|
3057
|
-
autofocus() {
|
3058
|
-
const hasAutofocus = this.component.autofocus && !this.builderMode && !this.options.preview;
|
3059
|
-
if (hasAutofocus) {
|
3060
|
-
this.on('render', () => this.focus(), true);
|
3061
|
-
}
|
3062
|
-
}
|
3063
|
-
scrollIntoView(element = this.element) {
|
3064
|
-
if (!element) {
|
3065
|
-
return;
|
3066
|
-
}
|
3067
|
-
const { left, top } = element.getBoundingClientRect();
|
3068
|
-
window.scrollTo(left + window.scrollX, top + window.scrollY);
|
3069
|
-
}
|
3070
|
-
focus(index) {
|
3071
|
-
var _a, _b;
|
3072
|
-
if ('beforeFocus' in this.parent) {
|
3073
|
-
this.parent.beforeFocus(this);
|
3074
|
-
}
|
3075
|
-
if ((_a = this.refs.input) === null || _a === void 0 ? void 0 : _a.length) {
|
3076
|
-
const focusingInput = typeof index === 'number' && this.refs.input[index]
|
3077
|
-
? this.refs.input[index]
|
3078
|
-
: this.refs.input[this.refs.input.length - 1];
|
3079
|
-
if (((_b = this.component.widget) === null || _b === void 0 ? void 0 : _b.type) === 'calendar') {
|
3080
|
-
const sibling = focusingInput.nextSibling;
|
3081
|
-
if (sibling) {
|
3082
|
-
sibling.focus();
|
3083
|
-
}
|
3084
|
-
}
|
3085
|
-
else {
|
3086
|
-
focusingInput.focus();
|
3087
|
-
}
|
3088
|
-
}
|
3089
|
-
if (this.refs.openModal) {
|
3090
|
-
this.refs.openModal.focus();
|
3091
|
-
}
|
3092
|
-
if (this.parent.refs.openModal) {
|
3093
|
-
this.parent.refs.openModal.focus();
|
3094
|
-
}
|
3095
|
-
}
|
3096
|
-
/**
|
3097
|
-
* Get `Formio` instance for working with files
|
3098
|
-
*/
|
3099
|
-
get fileService() {
|
3100
|
-
if (this.options.fileService) {
|
3101
|
-
return this.options.fileService;
|
3102
|
-
}
|
3103
|
-
if (this.options.formio) {
|
3104
|
-
return this.options.formio;
|
3105
|
-
}
|
3106
|
-
if (this.root && this.root.formio) {
|
3107
|
-
return this.root.formio;
|
3108
|
-
}
|
3109
|
-
const formio = new Formio_1.Formio();
|
3110
|
-
// If a form is loaded, then make sure to set the correct formUrl.
|
3111
|
-
if (this.root && this.root._form && this.root._form._id) {
|
3112
|
-
formio.formUrl = `${formio.projectUrl}/form/${this.root._form._id}`;
|
3113
|
-
}
|
3114
|
-
return formio;
|
3115
|
-
}
|
3116
|
-
resetCaches() { }
|
3117
|
-
get previewMode() {
|
3118
|
-
return false;
|
3119
|
-
}
|
3120
|
-
}
|
3121
|
-
exports.default = Component;
|
3122
|
-
Component.externalLibraries = {};
|
3123
|
-
Component.requireLibrary = function (name, property, src, polling) {
|
3124
|
-
if (!Component.externalLibraries.hasOwnProperty(name)) {
|
3125
|
-
Component.externalLibraries[name] = {};
|
3126
|
-
Component.externalLibraries[name].ready = new Promise((resolve, reject) => {
|
3127
|
-
Component.externalLibraries[name].resolve = resolve;
|
3128
|
-
Component.externalLibraries[name].reject = reject;
|
3129
|
-
});
|
3130
|
-
const callbackName = `${name}Callback`;
|
3131
|
-
if (!polling && !window[callbackName]) {
|
3132
|
-
window[callbackName] = function () {
|
3133
|
-
this.resolve();
|
3134
|
-
}.bind(Component.externalLibraries[name]);
|
3135
|
-
}
|
3136
|
-
// See if the plugin already exists.
|
3137
|
-
const plugin = lodash_1.default.get(window, property);
|
3138
|
-
if (plugin) {
|
3139
|
-
Component.externalLibraries[name].resolve(plugin);
|
3140
|
-
}
|
3141
|
-
else {
|
3142
|
-
src = Array.isArray(src) ? src : [src];
|
3143
|
-
src.forEach((lib) => {
|
3144
|
-
let attrs = {};
|
3145
|
-
let elementType = '';
|
3146
|
-
if (typeof lib === 'string') {
|
3147
|
-
lib = {
|
3148
|
-
type: 'script',
|
3149
|
-
src: lib
|
3150
|
-
};
|
3151
|
-
}
|
3152
|
-
switch (lib.type) {
|
3153
|
-
case 'script':
|
3154
|
-
elementType = 'script';
|
3155
|
-
attrs = {
|
3156
|
-
src: lib.src,
|
3157
|
-
type: 'text/javascript',
|
3158
|
-
defer: true,
|
3159
|
-
async: true
|
3160
|
-
};
|
3161
|
-
break;
|
3162
|
-
case 'styles':
|
3163
|
-
elementType = 'link';
|
3164
|
-
attrs = {
|
3165
|
-
href: lib.src,
|
3166
|
-
rel: 'stylesheet'
|
3167
|
-
};
|
3168
|
-
break;
|
3169
|
-
}
|
3170
|
-
// Add the script to the top page.
|
3171
|
-
const script = document.createElement(elementType);
|
3172
|
-
for (const attr in attrs) {
|
3173
|
-
script.setAttribute(attr, attrs[attr]);
|
3174
|
-
}
|
3175
|
-
document.getElementsByTagName('head')[0].appendChild(script);
|
3176
|
-
});
|
3177
|
-
// if no callback is provided, then check periodically for the script.
|
3178
|
-
if (polling) {
|
3179
|
-
setTimeout(function checkLibrary() {
|
3180
|
-
const plugin = lodash_1.default.get(window, property);
|
3181
|
-
if (plugin) {
|
3182
|
-
Component.externalLibraries[name].resolve(plugin);
|
3183
|
-
}
|
3184
|
-
else {
|
3185
|
-
// check again after 200 ms.
|
3186
|
-
setTimeout(checkLibrary, 200);
|
3187
|
-
}
|
3188
|
-
}, 200);
|
3189
|
-
}
|
3190
|
-
}
|
3191
|
-
}
|
3192
|
-
return Component.externalLibraries[name].ready;
|
3193
|
-
};
|
3194
|
-
Component.libraryReady = function (name) {
|
3195
|
-
if (Component.externalLibraries.hasOwnProperty(name) &&
|
3196
|
-
Component.externalLibraries[name].ready) {
|
3197
|
-
return Component.externalLibraries[name].ready;
|
3198
|
-
}
|
3199
|
-
return Promise.reject(`${name} library was not required.`);
|
3200
|
-
};
|