@formio/js 5.0.0-rc.27 → 5.0.0-rc.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/fonts/bootstrap-icons.woff +0 -0
- package/dist/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +710 -689
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +2 -2
- package/dist/formio.full.css +100 -3
- package/dist/formio.full.js +715 -727
- package/dist/formio.full.min.css +2 -2
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +2 -2
- package/dist/formio.js +659 -264
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +2 -2
- package/dist/formio.utils.js +29 -8
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +2 -2
- package/lib/cjs/Embed.d.ts +1 -1
- package/lib/cjs/Embed.js +14 -6
- package/lib/cjs/PDF.js +2 -2
- package/lib/cjs/Webform.d.ts +3 -5
- package/lib/cjs/Webform.js +59 -81
- package/lib/cjs/WebformBuilder.d.ts +1 -1
- package/lib/cjs/WebformBuilder.js +27 -10
- package/lib/cjs/Wizard.d.ts +2 -0
- package/lib/cjs/Wizard.js +37 -26
- package/lib/cjs/WizardBuilder.d.ts +1 -0
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +1 -2
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +11 -12
- package/lib/cjs/addons/index.d.ts +1 -0
- package/lib/cjs/addons/index.js +5 -1
- package/lib/cjs/components/Components.d.ts +7 -0
- package/lib/cjs/components/Components.js +30 -0
- package/lib/cjs/components/_classes/component/Component.d.ts +57 -27
- package/lib/cjs/components/_classes/component/Component.js +193 -119
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +8 -0
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +31 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +28 -11
- package/lib/cjs/components/_classes/nested/NestedComponent.js +88 -57
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +4 -3
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +17 -4
- package/lib/cjs/components/builder.js +0 -2
- package/lib/cjs/components/button/Button.js +2 -1
- package/lib/cjs/components/columns/Columns.d.ts +1 -0
- package/lib/cjs/components/columns/Columns.js +2 -3
- package/lib/cjs/components/columns/editForm/Columns.edit.display.d.ts +30 -1
- package/lib/cjs/components/columns/editForm/Columns.edit.display.js +23 -1
- package/lib/cjs/components/container/Container.d.ts +1 -0
- package/lib/cjs/components/container/Container.js +2 -6
- package/lib/cjs/components/content/Content.d.ts +1 -0
- package/lib/cjs/components/content/Content.js +1 -0
- package/lib/cjs/components/datagrid/DataGrid.d.ts +0 -8
- package/lib/cjs/components/datagrid/DataGrid.js +9 -26
- package/lib/cjs/components/datamap/DataMap.js +2 -1
- package/lib/cjs/components/datetime/DateTime.js +0 -2
- package/lib/cjs/components/day/Day.js +2 -3
- package/lib/cjs/components/editgrid/EditGrid.d.ts +8 -4
- package/lib/cjs/components/editgrid/EditGrid.js +96 -73
- package/lib/cjs/components/email/Email.js +0 -1
- package/lib/cjs/components/file/File.js +1 -1
- package/lib/cjs/components/file/fixtures/comp3.d.ts +29 -0
- package/lib/cjs/components/file/fixtures/comp3.js +31 -0
- package/lib/cjs/components/form/Form.d.ts +2 -6
- package/lib/cjs/components/form/Form.js +43 -14
- package/lib/cjs/components/index.d.ts +0 -2
- package/lib/cjs/components/index.js +0 -2
- package/lib/cjs/components/number/Number.d.ts +1 -2
- package/lib/cjs/components/number/Number.js +5 -6
- package/lib/cjs/components/panel/Panel.d.ts +0 -1
- package/lib/cjs/components/panel/Panel.js +2 -9
- package/lib/cjs/components/panel/editForm/Panel.edit.display.d.ts +6 -38
- package/lib/cjs/components/panel/editForm/Panel.edit.display.js +3 -16
- package/lib/cjs/components/phonenumber/PhoneNumber.js +17 -0
- package/lib/cjs/components/radio/Radio.js +0 -2
- package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.js +2 -2
- package/lib/cjs/components/select/Select.js +3 -2
- package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +1 -2
- package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
- package/lib/cjs/components/table/editForm/Table.edit.display.d.ts +31 -2
- package/lib/cjs/components/table/editForm/Table.edit.display.js +22 -0
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.d.ts +30 -2
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +22 -0
- package/lib/cjs/components/textfield/TextField.js +20 -6
- package/lib/cjs/components/time/Time.js +0 -6
- package/lib/cjs/components/url/Url.js +0 -1
- package/lib/cjs/components/well/editForm/Well.edit.display.d.ts +25 -2
- package/lib/cjs/components/well/editForm/Well.edit.display.js +18 -0
- package/lib/cjs/formio.embed.js +5 -3
- package/lib/cjs/formio.form.d.ts +1 -7
- package/lib/cjs/formio.form.js +2 -38
- package/lib/cjs/index.d.ts +2 -1
- package/lib/cjs/index.js +2 -1
- package/lib/cjs/providers/Providers.d.ts +0 -4
- package/lib/cjs/providers/storage/azure.d.ts +0 -2
- package/lib/cjs/providers/storage/azure.js +1 -6
- package/lib/cjs/providers/storage/googleDrive.d.ts +0 -1
- package/lib/cjs/providers/storage/googleDrive.js +0 -4
- package/lib/cjs/providers/storage/s3.d.ts +0 -1
- package/lib/cjs/providers/storage/s3.js +0 -4
- package/lib/cjs/translations/en.d.ts +5 -0
- package/lib/cjs/translations/en.js +5 -0
- package/lib/cjs/utils/formUtils.js +1 -0
- package/lib/cjs/utils/utils.d.ts +2 -1
- package/lib/cjs/utils/utils.js +27 -9
- package/lib/mjs/Embed.d.ts +1 -1
- package/lib/mjs/Embed.js +14 -6
- package/lib/mjs/PDF.js +2 -2
- package/lib/mjs/Webform.d.ts +3 -5
- package/lib/mjs/Webform.js +58 -82
- package/lib/mjs/WebformBuilder.d.ts +1 -1
- package/lib/mjs/WebformBuilder.js +28 -7
- package/lib/mjs/Wizard.d.ts +2 -0
- package/lib/mjs/Wizard.js +36 -27
- package/lib/mjs/WizardBuilder.d.ts +1 -0
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +1 -2
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +11 -12
- package/lib/mjs/addons/index.d.ts +1 -0
- package/lib/mjs/addons/index.js +5 -1
- package/lib/mjs/components/Components.d.ts +7 -0
- package/lib/mjs/components/Components.js +29 -0
- package/lib/mjs/components/_classes/component/Component.d.ts +57 -27
- package/lib/mjs/components/_classes/component/Component.js +191 -118
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +8 -0
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +31 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +28 -11
- package/lib/mjs/components/_classes/nested/NestedComponent.js +88 -57
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +4 -3
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +18 -5
- package/lib/mjs/components/builder.js +0 -2
- package/lib/mjs/components/button/Button.js +2 -1
- package/lib/mjs/components/columns/Columns.d.ts +1 -0
- package/lib/mjs/components/columns/Columns.js +2 -3
- package/lib/mjs/components/columns/editForm/Columns.edit.display.d.ts +30 -1
- package/lib/mjs/components/columns/editForm/Columns.edit.display.js +23 -1
- package/lib/mjs/components/container/Container.d.ts +1 -0
- package/lib/mjs/components/container/Container.js +2 -6
- package/lib/mjs/components/content/Content.d.ts +1 -0
- package/lib/mjs/components/content/Content.js +1 -0
- package/lib/mjs/components/datagrid/DataGrid.d.ts +0 -8
- package/lib/mjs/components/datagrid/DataGrid.js +9 -26
- package/lib/mjs/components/datamap/DataMap.js +2 -1
- package/lib/mjs/components/datetime/DateTime.js +0 -2
- package/lib/mjs/components/day/Day.js +2 -3
- package/lib/mjs/components/editgrid/EditGrid.d.ts +8 -4
- package/lib/mjs/components/editgrid/EditGrid.js +97 -76
- package/lib/mjs/components/email/Email.js +0 -1
- package/lib/mjs/components/file/File.js +1 -1
- package/lib/mjs/components/file/fixtures/comp3.d.ts +29 -0
- package/lib/mjs/components/file/fixtures/comp3.js +29 -0
- package/lib/mjs/components/form/Form.d.ts +2 -6
- package/lib/mjs/components/form/Form.js +45 -14
- package/lib/mjs/components/index.d.ts +0 -2
- package/lib/mjs/components/index.js +0 -2
- package/lib/mjs/components/number/Number.d.ts +1 -2
- package/lib/mjs/components/number/Number.js +4 -5
- package/lib/mjs/components/panel/Panel.d.ts +0 -1
- package/lib/mjs/components/panel/Panel.js +3 -9
- package/lib/mjs/components/panel/editForm/Panel.edit.display.d.ts +6 -38
- package/lib/mjs/components/panel/editForm/Panel.edit.display.js +3 -16
- package/lib/mjs/components/phonenumber/PhoneNumber.js +17 -0
- package/lib/mjs/components/radio/Radio.js +0 -2
- package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.js +2 -2
- package/lib/mjs/components/select/Select.js +3 -2
- package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +1 -2
- package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
- package/lib/mjs/components/table/editForm/Table.edit.display.d.ts +31 -2
- package/lib/mjs/components/table/editForm/Table.edit.display.js +22 -0
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.d.ts +30 -2
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +22 -0
- package/lib/mjs/components/textfield/TextField.js +20 -6
- package/lib/mjs/components/time/Time.js +0 -6
- package/lib/mjs/components/url/Url.js +0 -1
- package/lib/mjs/components/well/editForm/Well.edit.display.d.ts +25 -2
- package/lib/mjs/components/well/editForm/Well.edit.display.js +18 -0
- package/lib/mjs/formio.embed.js +5 -3
- package/lib/mjs/formio.form.d.ts +1 -7
- package/lib/mjs/formio.form.js +2 -32
- package/lib/mjs/index.d.ts +2 -1
- package/lib/mjs/index.js +1 -1
- package/lib/mjs/providers/Providers.d.ts +0 -4
- package/lib/mjs/providers/storage/azure.d.ts +0 -2
- package/lib/mjs/providers/storage/azure.js +1 -6
- package/lib/mjs/providers/storage/googleDrive.d.ts +0 -1
- package/lib/mjs/providers/storage/googleDrive.js +0 -4
- package/lib/mjs/providers/storage/s3.d.ts +0 -1
- package/lib/mjs/providers/storage/s3.js +0 -4
- package/lib/mjs/translations/en.d.ts +5 -0
- package/lib/mjs/translations/en.js +5 -0
- package/lib/mjs/utils/formUtils.js +1 -0
- package/lib/mjs/utils/utils.d.ts +2 -1
- package/lib/mjs/utils/utils.js +24 -7
- package/package.json +5 -5
- 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/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/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/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
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const Component_form_1 = __importDefault(require("../_classes/component/Component.form"));
|
7
|
-
const Tree_edit_data_1 = __importDefault(require("./editForm/Tree.edit.data"));
|
8
|
-
const Tree_edit_display_1 = __importDefault(require("./editForm/Tree.edit.display"));
|
9
|
-
function default_1(...extend) {
|
10
|
-
return (0, Component_form_1.default)([
|
11
|
-
{
|
12
|
-
key: 'display',
|
13
|
-
components: Tree_edit_display_1.default,
|
14
|
-
},
|
15
|
-
{
|
16
|
-
key: 'data',
|
17
|
-
components: Tree_edit_data_1.default,
|
18
|
-
},
|
19
|
-
], ...extend);
|
20
|
-
}
|
21
|
-
exports.default = default_1;
|
@@ -1,383 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const lodash_1 = __importDefault(require("lodash"));
|
7
|
-
const Component_1 = __importDefault(require("../_classes/component/Component"));
|
8
|
-
const Components_1 = __importDefault(require("../Components"));
|
9
|
-
const NestedDataComponent_1 = __importDefault(require("../_classes/nesteddata/NestedDataComponent"));
|
10
|
-
const Node_1 = __importDefault(require("./Node"));
|
11
|
-
class TreeComponent extends NestedDataComponent_1.default {
|
12
|
-
static schema(...extend) {
|
13
|
-
return NestedDataComponent_1.default.schema({
|
14
|
-
label: 'Tree',
|
15
|
-
key: 'tree',
|
16
|
-
type: 'tree',
|
17
|
-
clearOnHide: true,
|
18
|
-
input: true,
|
19
|
-
tree: true,
|
20
|
-
components: [],
|
21
|
-
multiple: false,
|
22
|
-
}, ...extend);
|
23
|
-
}
|
24
|
-
static get builderInfo() {
|
25
|
-
return {
|
26
|
-
title: 'Tree',
|
27
|
-
icon: 'indent',
|
28
|
-
weight: 40,
|
29
|
-
documentation: '/userguide/form-building/data-components#tree',
|
30
|
-
showPreview: false,
|
31
|
-
schema: TreeComponent.schema(),
|
32
|
-
};
|
33
|
-
}
|
34
|
-
constructor(...args) {
|
35
|
-
super(...args);
|
36
|
-
this.type = 'tree';
|
37
|
-
}
|
38
|
-
get emptyValue() {
|
39
|
-
return {};
|
40
|
-
}
|
41
|
-
get viewComponents() {
|
42
|
-
if (!this.viewComponentsInstantiated) {
|
43
|
-
this.viewComponentsInstantiated = true;
|
44
|
-
this._viewComponents = this.createComponents({});
|
45
|
-
}
|
46
|
-
return this._viewComponents;
|
47
|
-
}
|
48
|
-
init() {
|
49
|
-
if (this.builderMode) {
|
50
|
-
return super.init();
|
51
|
-
}
|
52
|
-
this.components = [];
|
53
|
-
this.componentOptions = Object.assign(Object.assign({}, this.options), { parent: this, root: this.root || this });
|
54
|
-
this.disabled = this.shouldDisabled;
|
55
|
-
this.setRoot();
|
56
|
-
this.viewComponentsInstantiated = false;
|
57
|
-
this._viewComponents = [];
|
58
|
-
}
|
59
|
-
get disabled() {
|
60
|
-
return super.disabled;
|
61
|
-
}
|
62
|
-
set disabled(disabled) {
|
63
|
-
super.disabled = disabled;
|
64
|
-
this.viewComponents.forEach((component) => component.parentDisabled = disabled);
|
65
|
-
}
|
66
|
-
get isDefaultValueComponent() {
|
67
|
-
return !!this.options.editComponent && !!this.options.editForm && this.component.key === 'defaultValue';
|
68
|
-
}
|
69
|
-
destroy(all = false) {
|
70
|
-
if (!this.builderMode) {
|
71
|
-
this.removeComponents(this._viewComponents, all);
|
72
|
-
}
|
73
|
-
super.destroy(all);
|
74
|
-
}
|
75
|
-
createComponents(data, node) {
|
76
|
-
const components = this.componentComponents.map((component) => {
|
77
|
-
const componentInstance = Components_1.default.create(component, this.componentOptions, data);
|
78
|
-
componentInstance.init();
|
79
|
-
componentInstance.parentDisabled = this.disabled;
|
80
|
-
return componentInstance;
|
81
|
-
});
|
82
|
-
if (node) {
|
83
|
-
this.checkNode(this.data, node);
|
84
|
-
}
|
85
|
-
return components;
|
86
|
-
}
|
87
|
-
removeComponents(components, all = false) {
|
88
|
-
return components.map((component) => component.destroy(all));
|
89
|
-
}
|
90
|
-
render() {
|
91
|
-
if (this.builderMode) {
|
92
|
-
return super.render();
|
93
|
-
}
|
94
|
-
return super.render(this.renderTree(this.treeRoot));
|
95
|
-
}
|
96
|
-
renderTree(node = {}, odd = true) {
|
97
|
-
const childNodes = (node.hasChildren && !node.collapsed)
|
98
|
-
? this.renderChildNodes(node.children, !odd)
|
99
|
-
: [];
|
100
|
-
const content = node.changing
|
101
|
-
? this.renderEdit(node)
|
102
|
-
: this.renderView(node);
|
103
|
-
return this.renderTemplate('tree', {
|
104
|
-
odd,
|
105
|
-
childNodes,
|
106
|
-
content,
|
107
|
-
node,
|
108
|
-
});
|
109
|
-
}
|
110
|
-
renderChildNodes(nodes = [], odd) {
|
111
|
-
return nodes.map((node) => this.renderTree(node, odd));
|
112
|
-
}
|
113
|
-
renderEdit(node = {}) {
|
114
|
-
return this.renderTemplate('treeEdit', {
|
115
|
-
children: this.renderComponents(node.components),
|
116
|
-
node,
|
117
|
-
});
|
118
|
-
}
|
119
|
-
renderView(node = {}) {
|
120
|
-
return this.renderTemplate('treeView', {
|
121
|
-
values: this.viewComponents.map((component) => {
|
122
|
-
component.data = node.data;
|
123
|
-
component.checkComponentConditions(node.data);
|
124
|
-
return component.getView(component.dataValue);
|
125
|
-
}),
|
126
|
-
nodeData: node.data,
|
127
|
-
node,
|
128
|
-
});
|
129
|
-
}
|
130
|
-
attach(element) {
|
131
|
-
if (this.builderMode) {
|
132
|
-
return super.attach(element);
|
133
|
-
}
|
134
|
-
this.loadRefs(element, {
|
135
|
-
root: 'single',
|
136
|
-
});
|
137
|
-
return Promise.all([
|
138
|
-
super.attach(element),
|
139
|
-
this.attachNode(this.refs.root, this.treeRoot),
|
140
|
-
]);
|
141
|
-
}
|
142
|
-
attachNode(element, node) {
|
143
|
-
if (!element) {
|
144
|
-
return Promise.resolve();
|
145
|
-
}
|
146
|
-
let componentsPromise = Promise.resolve();
|
147
|
-
let childrenPromise = Promise.resolve();
|
148
|
-
node.refs = lodash_1.default.reduce(element.children, (refs, child) => (child.hasAttribute('ref')
|
149
|
-
? Object.assign(Object.assign({}, refs), { [child.getAttribute('ref')]: child }) : refs), {});
|
150
|
-
if (node.refs.content) {
|
151
|
-
this.attachActions(node);
|
152
|
-
componentsPromise = this.attachComponents(node);
|
153
|
-
}
|
154
|
-
if (node.refs.childNodes) {
|
155
|
-
childrenPromise = this.attachChildren(node);
|
156
|
-
}
|
157
|
-
return Promise.all([
|
158
|
-
componentsPromise,
|
159
|
-
childrenPromise,
|
160
|
-
]);
|
161
|
-
}
|
162
|
-
attachActions(node) {
|
163
|
-
var _a;
|
164
|
-
if (!node.editing) {
|
165
|
-
this.loadRefs.call(node, node.refs.content, {
|
166
|
-
addChild: 'single',
|
167
|
-
editNode: 'single',
|
168
|
-
removeNode: 'single',
|
169
|
-
revertNode: 'single',
|
170
|
-
toggleNode: 'single',
|
171
|
-
});
|
172
|
-
}
|
173
|
-
//load refs correctly (if there is nested tree)
|
174
|
-
this.loadRefs.call(node, ((_a = node.refs.content.children[0]) === null || _a === void 0 ? void 0 : _a.children[1]) || node.refs.content, {
|
175
|
-
cancelNode: 'single',
|
176
|
-
saveNode: 'single',
|
177
|
-
});
|
178
|
-
if (node.refs.addChild) {
|
179
|
-
this.addEventListener(node.refs.addChild, 'click', () => {
|
180
|
-
this.addChild(node);
|
181
|
-
});
|
182
|
-
}
|
183
|
-
if (node.refs.cancelNode) {
|
184
|
-
this.addEventListener(node.refs.cancelNode, 'click', () => {
|
185
|
-
this.cancelNode(node);
|
186
|
-
});
|
187
|
-
}
|
188
|
-
if (node.refs.editNode) {
|
189
|
-
this.addEventListener(node.refs.editNode, 'click', () => {
|
190
|
-
this.editNode(node);
|
191
|
-
});
|
192
|
-
}
|
193
|
-
if (node.refs.removeNode) {
|
194
|
-
this.addEventListener(node.refs.removeNode, 'click', () => {
|
195
|
-
this.removeNode(node);
|
196
|
-
});
|
197
|
-
}
|
198
|
-
if (node.refs.revertNode) {
|
199
|
-
this.addEventListener(node.refs.revertNode, 'click', () => {
|
200
|
-
this.revertNode(node);
|
201
|
-
});
|
202
|
-
}
|
203
|
-
if (node.refs.saveNode) {
|
204
|
-
this.addEventListener(node.refs.saveNode, 'click', () => {
|
205
|
-
this.saveNode(node);
|
206
|
-
});
|
207
|
-
}
|
208
|
-
if (node.refs.toggleNode) {
|
209
|
-
this.addEventListener(node.refs.toggleNode, 'click', () => {
|
210
|
-
this.toggleNode(node);
|
211
|
-
});
|
212
|
-
}
|
213
|
-
}
|
214
|
-
attachComponents(node, ...args) {
|
215
|
-
if (this.builderMode) {
|
216
|
-
return super.attachComponents.call(this, node, ...args);
|
217
|
-
}
|
218
|
-
this.loadRefs.call(node, node.refs.content, {
|
219
|
-
nodeEdit: 'single',
|
220
|
-
});
|
221
|
-
return node.refs.nodeEdit
|
222
|
-
? super.attachComponents(node.refs.nodeEdit, node.components)
|
223
|
-
: Promise.resolve();
|
224
|
-
}
|
225
|
-
attachChildren(node) {
|
226
|
-
const childElements = node.refs.childNodes.children;
|
227
|
-
return Promise.all(lodash_1.default.map(childElements, (childElement, index) => this.attachNode(childElement, node.children[index])));
|
228
|
-
}
|
229
|
-
setValue(value, flags = {}) {
|
230
|
-
const changed = this.updateValue(value, flags);
|
231
|
-
this.setRoot();
|
232
|
-
return changed;
|
233
|
-
}
|
234
|
-
addChild(parent) {
|
235
|
-
if (this.options.readOnly || parent.new) {
|
236
|
-
return;
|
237
|
-
}
|
238
|
-
this.hook('tree.addChild', {
|
239
|
-
parent,
|
240
|
-
component: this,
|
241
|
-
}, () => {
|
242
|
-
const child = parent.addChild();
|
243
|
-
this.redraw();
|
244
|
-
return child;
|
245
|
-
});
|
246
|
-
}
|
247
|
-
cancelNode(node) {
|
248
|
-
if (this.options.readOnly) {
|
249
|
-
return;
|
250
|
-
}
|
251
|
-
this.hook('tree.cancelNode', {
|
252
|
-
node,
|
253
|
-
component: this,
|
254
|
-
}, () => {
|
255
|
-
if (node.isRoot) {
|
256
|
-
if (node.persistentData && !lodash_1.default.isEmpty(node.persistentData)) {
|
257
|
-
node.cancel();
|
258
|
-
this.redraw();
|
259
|
-
}
|
260
|
-
else {
|
261
|
-
this.removeRoot();
|
262
|
-
}
|
263
|
-
}
|
264
|
-
else {
|
265
|
-
node.cancel();
|
266
|
-
this.redraw();
|
267
|
-
}
|
268
|
-
return node;
|
269
|
-
});
|
270
|
-
}
|
271
|
-
editNode(node) {
|
272
|
-
if (this.options.readOnly || node.new) {
|
273
|
-
return;
|
274
|
-
}
|
275
|
-
this.hook('tree.editNode', {
|
276
|
-
node,
|
277
|
-
component: this,
|
278
|
-
}, () => {
|
279
|
-
node.edit();
|
280
|
-
this.redraw();
|
281
|
-
return node;
|
282
|
-
});
|
283
|
-
}
|
284
|
-
removeNode(node) {
|
285
|
-
if (this.options.readOnly || node.new) {
|
286
|
-
return;
|
287
|
-
}
|
288
|
-
this.hook('tree.removeNode', {
|
289
|
-
node,
|
290
|
-
component: this,
|
291
|
-
}, () => {
|
292
|
-
if (node.isRoot) {
|
293
|
-
this.removeRoot();
|
294
|
-
}
|
295
|
-
else {
|
296
|
-
node.remove();
|
297
|
-
this.updateTree();
|
298
|
-
}
|
299
|
-
return node;
|
300
|
-
});
|
301
|
-
}
|
302
|
-
revertNode(node) {
|
303
|
-
if (this.options.readOnly || !node.revertAvailable) {
|
304
|
-
return;
|
305
|
-
}
|
306
|
-
this.hook('tree.revertNode', {
|
307
|
-
node,
|
308
|
-
component: this,
|
309
|
-
}, () => {
|
310
|
-
node.revert();
|
311
|
-
this.updateTree();
|
312
|
-
return node;
|
313
|
-
});
|
314
|
-
}
|
315
|
-
saveNode(node) {
|
316
|
-
if (this.options.readOnly) {
|
317
|
-
return;
|
318
|
-
}
|
319
|
-
this.hook('tree.saveNode', {
|
320
|
-
node,
|
321
|
-
component: this,
|
322
|
-
}, () => {
|
323
|
-
const isSaved = node.save();
|
324
|
-
if (isSaved) {
|
325
|
-
this.updateTree();
|
326
|
-
}
|
327
|
-
return node;
|
328
|
-
});
|
329
|
-
}
|
330
|
-
toggleNode(node) {
|
331
|
-
this.hook('tree.toggleNode', {
|
332
|
-
node,
|
333
|
-
component: this,
|
334
|
-
}, () => {
|
335
|
-
node.collapsed = !node.collapsed;
|
336
|
-
this.redraw();
|
337
|
-
return node;
|
338
|
-
});
|
339
|
-
}
|
340
|
-
removeRoot() {
|
341
|
-
if (this.options.readOnly) {
|
342
|
-
return;
|
343
|
-
}
|
344
|
-
this.dataValue = this.defaultValue;
|
345
|
-
this.setRoot();
|
346
|
-
this.redraw();
|
347
|
-
}
|
348
|
-
setRoot() {
|
349
|
-
const value = this.getValue();
|
350
|
-
this.treeRoot = new Node_1.default(null, value, {
|
351
|
-
isNew: this.builderMode ? true : !value.data,
|
352
|
-
createComponents: this.createComponents.bind(this),
|
353
|
-
checkNode: this.checkNode.bind(this, this.data),
|
354
|
-
removeComponents: this.removeComponents,
|
355
|
-
parentPath: this.isDefaultValueComponent ? (this.path || this.component.key) : null,
|
356
|
-
});
|
357
|
-
this.hook('tree.setRoot', {
|
358
|
-
root: this.treeRoot,
|
359
|
-
component: this,
|
360
|
-
});
|
361
|
-
this.redraw();
|
362
|
-
}
|
363
|
-
getValue() {
|
364
|
-
return this.dataValue || {};
|
365
|
-
}
|
366
|
-
updateTree() {
|
367
|
-
this.updateValue(this.treeRoot.value);
|
368
|
-
this.redraw();
|
369
|
-
}
|
370
|
-
checkData(data, flags, row) {
|
371
|
-
return this.checkNode(data, this.treeRoot, flags, row);
|
372
|
-
}
|
373
|
-
checkNode(data, node, flags, row) {
|
374
|
-
return node.children.reduce((result, child) => this.checkNode(data, child, flags, row) && result, super.checkData(data, flags, node.data, node.components) && !node.editing && !node.new);
|
375
|
-
}
|
376
|
-
getComponents() {
|
377
|
-
return this.treeRoot && (this.isDefaultValueComponent || (!this.isDefaultValueComponent && !this.builderMode))
|
378
|
-
? this.treeRoot.getComponents()
|
379
|
-
: super.getComponents();
|
380
|
-
}
|
381
|
-
}
|
382
|
-
exports.default = TreeComponent;
|
383
|
-
TreeComponent.prototype.hasChanged = Component_1.default.prototype.hasChanged;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = [
|
4
|
-
{
|
5
|
-
key: 'treeInfo',
|
6
|
-
weight: -10,
|
7
|
-
type: 'htmlelement',
|
8
|
-
tag: 'div',
|
9
|
-
className: 'alert alert-danger',
|
10
|
-
content: 'This component has been deprecated and will be removed in a future version of Formio.js.',
|
11
|
-
}
|
12
|
-
];
|
@@ -1,23 +0,0 @@
|
|
1
|
-
declare namespace _default {
|
2
|
-
const label: string;
|
3
|
-
const tableView: boolean;
|
4
|
-
const calculateServer: boolean;
|
5
|
-
const key: string;
|
6
|
-
const type: string;
|
7
|
-
const input: boolean;
|
8
|
-
const tree: boolean;
|
9
|
-
const components: {
|
10
|
-
label: string;
|
11
|
-
mask: boolean;
|
12
|
-
spellcheck: boolean;
|
13
|
-
tableView: boolean;
|
14
|
-
delimiter: boolean;
|
15
|
-
requireDecimal: boolean;
|
16
|
-
inputFormat: string;
|
17
|
-
calculateServer: boolean;
|
18
|
-
key: string;
|
19
|
-
type: string;
|
20
|
-
input: boolean;
|
21
|
-
}[];
|
22
|
-
}
|
23
|
-
export default _default;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = {
|
4
|
-
'label': 'Tree',
|
5
|
-
'tableView': true,
|
6
|
-
'calculateServer': false,
|
7
|
-
'key': 'tree',
|
8
|
-
'type': 'tree',
|
9
|
-
'input': true,
|
10
|
-
'tree': true,
|
11
|
-
'components': [{
|
12
|
-
'label': 'Number',
|
13
|
-
'mask': false,
|
14
|
-
'spellcheck': true,
|
15
|
-
'tableView': false,
|
16
|
-
'delimiter': false,
|
17
|
-
'requireDecimal': false,
|
18
|
-
'inputFormat': 'plain',
|
19
|
-
'calculateServer': false,
|
20
|
-
'key': 'number',
|
21
|
-
'type': 'number',
|
22
|
-
'input': true
|
23
|
-
}]
|
24
|
-
};
|
@@ -1,116 +0,0 @@
|
|
1
|
-
declare namespace _default {
|
2
|
-
const label: string;
|
3
|
-
const tableView: boolean;
|
4
|
-
const key: string;
|
5
|
-
const type: string;
|
6
|
-
const input: boolean;
|
7
|
-
const tree: boolean;
|
8
|
-
const components: ({
|
9
|
-
label: string;
|
10
|
-
autoExpand: boolean;
|
11
|
-
tableView: boolean;
|
12
|
-
key: string;
|
13
|
-
type: string;
|
14
|
-
input: boolean;
|
15
|
-
widget?: undefined;
|
16
|
-
data?: undefined;
|
17
|
-
selectThreshold?: undefined;
|
18
|
-
validate?: undefined;
|
19
|
-
indexeddb?: undefined;
|
20
|
-
collapsible?: undefined;
|
21
|
-
components?: undefined;
|
22
|
-
reorder?: undefined;
|
23
|
-
addAnotherPosition?: undefined;
|
24
|
-
layoutFixed?: undefined;
|
25
|
-
enableRowGroups?: undefined;
|
26
|
-
initEmpty?: undefined;
|
27
|
-
defaultValue?: undefined;
|
28
|
-
} | {
|
29
|
-
label: string;
|
30
|
-
widget: string;
|
31
|
-
tableView: boolean;
|
32
|
-
data: {
|
33
|
-
values: {
|
34
|
-
label: string;
|
35
|
-
value: string;
|
36
|
-
}[];
|
37
|
-
};
|
38
|
-
selectThreshold: number;
|
39
|
-
validate: {
|
40
|
-
onlyAvailableItems: boolean;
|
41
|
-
};
|
42
|
-
key: string;
|
43
|
-
type: string;
|
44
|
-
indexeddb: {
|
45
|
-
filter: {};
|
46
|
-
};
|
47
|
-
input: boolean;
|
48
|
-
autoExpand?: undefined;
|
49
|
-
collapsible?: undefined;
|
50
|
-
components?: undefined;
|
51
|
-
reorder?: undefined;
|
52
|
-
addAnotherPosition?: undefined;
|
53
|
-
layoutFixed?: undefined;
|
54
|
-
enableRowGroups?: undefined;
|
55
|
-
initEmpty?: undefined;
|
56
|
-
defaultValue?: undefined;
|
57
|
-
} | {
|
58
|
-
collapsible: boolean;
|
59
|
-
key: string;
|
60
|
-
type: string;
|
61
|
-
label: string;
|
62
|
-
input: boolean;
|
63
|
-
tableView: boolean;
|
64
|
-
components: {
|
65
|
-
label: string;
|
66
|
-
mask: boolean;
|
67
|
-
spellcheck: boolean;
|
68
|
-
tableView: boolean;
|
69
|
-
delimiter: boolean;
|
70
|
-
requireDecimal: boolean;
|
71
|
-
inputFormat: string;
|
72
|
-
key: string;
|
73
|
-
type: string;
|
74
|
-
input: boolean;
|
75
|
-
}[];
|
76
|
-
autoExpand?: undefined;
|
77
|
-
widget?: undefined;
|
78
|
-
data?: undefined;
|
79
|
-
selectThreshold?: undefined;
|
80
|
-
validate?: undefined;
|
81
|
-
indexeddb?: undefined;
|
82
|
-
reorder?: undefined;
|
83
|
-
addAnotherPosition?: undefined;
|
84
|
-
layoutFixed?: undefined;
|
85
|
-
enableRowGroups?: undefined;
|
86
|
-
initEmpty?: undefined;
|
87
|
-
defaultValue?: undefined;
|
88
|
-
} | {
|
89
|
-
label: string;
|
90
|
-
reorder: boolean;
|
91
|
-
addAnotherPosition: string;
|
92
|
-
layoutFixed: boolean;
|
93
|
-
enableRowGroups: boolean;
|
94
|
-
initEmpty: boolean;
|
95
|
-
tableView: boolean;
|
96
|
-
defaultValue: {}[];
|
97
|
-
key: string;
|
98
|
-
type: string;
|
99
|
-
input: boolean;
|
100
|
-
components: {
|
101
|
-
label: string;
|
102
|
-
tableView: boolean;
|
103
|
-
key: string;
|
104
|
-
type: string;
|
105
|
-
input: boolean;
|
106
|
-
}[];
|
107
|
-
autoExpand?: undefined;
|
108
|
-
widget?: undefined;
|
109
|
-
data?: undefined;
|
110
|
-
selectThreshold?: undefined;
|
111
|
-
validate?: undefined;
|
112
|
-
indexeddb?: undefined;
|
113
|
-
collapsible?: undefined;
|
114
|
-
})[];
|
115
|
-
}
|
116
|
-
export default _default;
|
@@ -1,82 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = {
|
4
|
-
'label': 'Tree',
|
5
|
-
'tableView': false,
|
6
|
-
'key': 'tree',
|
7
|
-
'type': 'tree',
|
8
|
-
'input': true,
|
9
|
-
'tree': true,
|
10
|
-
'components': [{
|
11
|
-
'label': 'Text Area',
|
12
|
-
'autoExpand': false,
|
13
|
-
'tableView': true,
|
14
|
-
'key': 'textArea',
|
15
|
-
'type': 'textarea',
|
16
|
-
'input': true
|
17
|
-
}, {
|
18
|
-
'label': 'Select',
|
19
|
-
'widget': 'choicesjs',
|
20
|
-
'tableView': true,
|
21
|
-
'data': {
|
22
|
-
'values': [{
|
23
|
-
'label': 'a',
|
24
|
-
'value': 'a'
|
25
|
-
}, {
|
26
|
-
'label': 'b',
|
27
|
-
'value': 'b'
|
28
|
-
}, {
|
29
|
-
'label': 'c',
|
30
|
-
'value': 'c'
|
31
|
-
}]
|
32
|
-
},
|
33
|
-
'selectThreshold': 0.3,
|
34
|
-
'validate': {
|
35
|
-
'onlyAvailableItems': false
|
36
|
-
},
|
37
|
-
'key': 'select',
|
38
|
-
'type': 'select',
|
39
|
-
'indexeddb': {
|
40
|
-
'filter': {}
|
41
|
-
},
|
42
|
-
'input': true
|
43
|
-
}, {
|
44
|
-
'collapsible': false,
|
45
|
-
'key': 'panel',
|
46
|
-
'type': 'panel',
|
47
|
-
'label': 'Panel',
|
48
|
-
'input': false,
|
49
|
-
'tableView': false,
|
50
|
-
'components': [{
|
51
|
-
'label': 'Number',
|
52
|
-
'mask': false,
|
53
|
-
'spellcheck': true,
|
54
|
-
'tableView': false,
|
55
|
-
'delimiter': false,
|
56
|
-
'requireDecimal': false,
|
57
|
-
'inputFormat': 'plain',
|
58
|
-
'key': 'number',
|
59
|
-
'type': 'number',
|
60
|
-
'input': true
|
61
|
-
}]
|
62
|
-
}, {
|
63
|
-
'label': 'Data Grid',
|
64
|
-
'reorder': false,
|
65
|
-
'addAnotherPosition': 'bottom',
|
66
|
-
'layoutFixed': false,
|
67
|
-
'enableRowGroups': false,
|
68
|
-
'initEmpty': false,
|
69
|
-
'tableView': false,
|
70
|
-
'defaultValue': [{}],
|
71
|
-
'key': 'dataGrid',
|
72
|
-
'type': 'datagrid',
|
73
|
-
'input': true,
|
74
|
-
'components': [{
|
75
|
-
'label': 'Text Field',
|
76
|
-
'tableView': true,
|
77
|
-
'key': 'textField',
|
78
|
-
'type': 'textfield',
|
79
|
-
'input': true
|
80
|
-
}]
|
81
|
-
}]
|
82
|
-
};
|