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