@formio/js 5.0.0-rc.27 → 5.0.0-rc.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +957 -2270
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +4 -2
- package/dist/formio.full.css +100 -3
- package/dist/formio.full.js +961 -2231
- package/dist/formio.full.min.css +2 -2
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +4 -2
- package/dist/formio.js +101 -1966
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -3
- package/dist/formio.utils.js +145 -104
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +4 -2
- package/lib/cjs/CDN.d.ts +1 -1
- package/lib/cjs/CDN.js +2 -2
- package/lib/cjs/Embed.d.ts +16 -7
- package/lib/cjs/Embed.js +76 -24
- package/lib/cjs/Formio.d.ts +0 -1
- package/lib/cjs/Formio.js +27 -19
- package/lib/cjs/PDF.js +2 -2
- package/lib/cjs/Webform.d.ts +6 -9
- package/lib/cjs/Webform.js +59 -81
- package/lib/cjs/WebformBuilder.d.ts +1 -1
- package/lib/cjs/WebformBuilder.js +33 -16
- package/lib/cjs/Wizard.d.ts +5 -4
- 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 +3 -38
- package/lib/cjs/index.d.ts +2 -1
- package/lib/cjs/index.js +3 -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/templates/Templates.d.ts +1 -11
- package/lib/cjs/templates/Templates.js +4 -41
- 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/index.d.ts +1 -0
- package/lib/cjs/utils/index.js +2 -0
- package/lib/cjs/utils/utils.d.ts +2 -1
- package/lib/cjs/utils/utils.js +27 -9
- package/lib/mjs/CDN.d.ts +1 -1
- package/lib/mjs/CDN.js +2 -2
- package/lib/mjs/Embed.d.ts +16 -7
- package/lib/mjs/Embed.js +75 -18
- package/lib/mjs/Formio.d.ts +0 -1
- package/lib/mjs/Formio.js +11 -3
- package/lib/mjs/PDF.js +2 -2
- package/lib/mjs/Webform.d.ts +6 -9
- package/lib/mjs/Webform.js +58 -82
- package/lib/mjs/WebformBuilder.d.ts +1 -1
- package/lib/mjs/WebformBuilder.js +31 -10
- package/lib/mjs/Wizard.d.ts +5 -4
- 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 +3 -32
- package/lib/mjs/index.d.ts +2 -1
- package/lib/mjs/index.js +2 -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/templates/Templates.d.ts +1 -11
- package/lib/mjs/templates/Templates.js +4 -40
- 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/index.d.ts +1 -0
- package/lib/mjs/utils/index.js +1 -0
- package/lib/mjs/utils/utils.d.ts +2 -1
- package/lib/mjs/utils/utils.js +24 -7
- package/package.json +13 -13
- 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
@@ -44,7 +44,6 @@ declare namespace _default {
|
|
44
44
|
export { TextAreaComponent as textarea };
|
45
45
|
export { TextFieldComponent as textfield };
|
46
46
|
export { TimeComponent as time };
|
47
|
-
export { TreeComponent as tree };
|
48
47
|
export { UnknownComponent as unknown };
|
49
48
|
export { UrlComponent as url };
|
50
49
|
export { WellComponent as well };
|
@@ -94,7 +93,6 @@ import TagsComponent from './tags/Tags';
|
|
94
93
|
import TextAreaComponent from './textarea/TextArea';
|
95
94
|
import TextFieldComponent from './textfield/TextField';
|
96
95
|
import TimeComponent from './time/Time';
|
97
|
-
import TreeComponent from './tree/Tree';
|
98
96
|
import UnknownComponent from './unknown/Unknown';
|
99
97
|
import UrlComponent from './url/Url';
|
100
98
|
import WellComponent from './well/Well';
|
@@ -47,7 +47,6 @@ const Tags_1 = __importDefault(require("./tags/Tags"));
|
|
47
47
|
const TextArea_1 = __importDefault(require("./textarea/TextArea"));
|
48
48
|
const TextField_1 = __importDefault(require("./textfield/TextField"));
|
49
49
|
const Time_1 = __importDefault(require("./time/Time"));
|
50
|
-
const Tree_1 = __importDefault(require("./tree/Tree"));
|
51
50
|
const Unknown_1 = __importDefault(require("./unknown/Unknown"));
|
52
51
|
const Url_1 = __importDefault(require("./url/Url"));
|
53
52
|
const Well_1 = __importDefault(require("./well/Well"));
|
@@ -97,7 +96,6 @@ exports.default = {
|
|
97
96
|
textarea: TextArea_1.default,
|
98
97
|
textfield: TextField_1.default,
|
99
98
|
time: Time_1.default,
|
100
|
-
tree: Tree_1.default,
|
101
99
|
unknown: Unknown_1.default,
|
102
100
|
url: Url_1.default,
|
103
101
|
well: Well_1.default,
|
@@ -31,10 +31,9 @@ export default class NumberComponent extends Input {
|
|
31
31
|
};
|
32
32
|
static savedValueTypes(schema: any): string[];
|
33
33
|
constructor(...args: any[]);
|
34
|
-
|
34
|
+
decimalSeparator: any;
|
35
35
|
delimiter: any;
|
36
36
|
decimalLimit: any;
|
37
|
-
decimalSeparator: any;
|
38
37
|
numberMask: any;
|
39
38
|
/**
|
40
39
|
* Creates the number mask for normal numbers.
|
@@ -47,22 +47,21 @@ class NumberComponent extends Input_1.default {
|
|
47
47
|
constructor(...args) {
|
48
48
|
var _a, _b;
|
49
49
|
super(...args);
|
50
|
-
this.validators = this.validators.concat(['min', 'max']);
|
51
50
|
const separators = (0, utils_1.getNumberSeparators)(this.options.language || navigator.language);
|
52
|
-
|
51
|
+
this.decimalSeparator = this.options.decimalSeparator = this.options.decimalSeparator
|
52
|
+
|| ((_a = this.options.properties) === null || _a === void 0 ? void 0 : _a.decimalSeparator)
|
53
|
+
|| separators.decimalSeparator;
|
53
54
|
if (this.component.delimiter) {
|
54
55
|
if (this.options.hasOwnProperty('thousandsSeparator')) {
|
55
56
|
console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter.");
|
56
57
|
}
|
57
|
-
this.delimiter = ((
|
58
|
+
this.delimiter = ((_b = this.options.properties) === null || _b === void 0 ? void 0 : _b.thousandsSeparator) || this.options.thousandsSeparator || separators.delimiter;
|
58
59
|
}
|
59
60
|
else {
|
60
61
|
this.delimiter = '';
|
61
62
|
}
|
63
|
+
const requireDecimal = lodash_1.default.get(this.component, 'requireDecimal', false);
|
62
64
|
this.decimalLimit = (0, utils_1.getNumberDecimalLimit)(this.component, requireDecimal ? 2 : 20);
|
63
|
-
this.decimalSeparator = this.decimalLimit !== 0 ?
|
64
|
-
this.options.decimalSeparator || ((_b = this.options.properties) === null || _b === void 0 ? void 0 : _b.decimalSeparator) || separators.decimalSeparator :
|
65
|
-
'';
|
66
65
|
// Currencies to override BrowserLanguage Config. Object key {}
|
67
66
|
if (lodash_1.default.has(this.options, `languageOverride.${this.options.language}`)) {
|
68
67
|
const override = lodash_1.default.get(this.options, `languageOverride.${this.options.language}`);
|
@@ -10,6 +10,5 @@ export default class PanelComponent extends NestedComponent {
|
|
10
10
|
static savedValueTypes(): never[];
|
11
11
|
constructor(...args: any[]);
|
12
12
|
noField: boolean;
|
13
|
-
getComponent(path: any, fn: any, originalPath: any): Object;
|
14
13
|
}
|
15
14
|
import NestedComponent from '../_classes/nested/NestedComponent';
|
@@ -44,19 +44,12 @@ class PanelComponent extends NestedComponent_1.default {
|
|
44
44
|
constructor(...args) {
|
45
45
|
super(...args);
|
46
46
|
this.noField = true;
|
47
|
-
this.on('componentError', () => {
|
47
|
+
this.on('componentError', (err) => {
|
48
48
|
//change collapsed value only when the panel is collapsed to avoid additional redrawing that prevents validation messages
|
49
|
-
if ((0, utils_1.
|
49
|
+
if ((0, utils_1.isChildOf)(err.instance, this) && this.collapsed) {
|
50
50
|
this.collapsed = false;
|
51
51
|
}
|
52
52
|
});
|
53
53
|
}
|
54
|
-
getComponent(path, fn, originalPath) {
|
55
|
-
var _a;
|
56
|
-
if (((_a = this.root) === null || _a === void 0 ? void 0 : _a.parent) instanceof Form_1.default) {
|
57
|
-
path = path.replace(this._parentPath, '');
|
58
|
-
}
|
59
|
-
return super.getComponent(path, fn, originalPath);
|
60
|
-
}
|
61
54
|
}
|
62
55
|
exports.default = PanelComponent;
|
@@ -79,42 +79,17 @@ declare const _default: ({
|
|
79
79
|
type: string;
|
80
80
|
input: boolean;
|
81
81
|
components: ({
|
82
|
-
type: string;
|
83
|
-
input: boolean;
|
84
|
-
label: string;
|
85
|
-
key: string;
|
86
|
-
dataSrc: string;
|
87
|
-
data: {
|
88
|
-
values: {
|
89
|
-
label: string;
|
90
|
-
value: string;
|
91
|
-
}[];
|
92
|
-
};
|
93
|
-
defaultValue?: undefined;
|
94
|
-
conditional?: undefined;
|
95
|
-
tooltip?: undefined;
|
96
|
-
weight?: undefined;
|
97
|
-
optionsLabelPosition?: undefined;
|
98
|
-
values?: undefined;
|
99
|
-
inline?: undefined;
|
100
|
-
inputType?: undefined;
|
101
|
-
} | {
|
102
82
|
input: boolean;
|
103
83
|
type: string;
|
104
84
|
label: string;
|
105
85
|
key: string;
|
106
86
|
defaultValue: boolean;
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
})[];
|
112
|
-
'==='?: undefined;
|
113
|
-
};
|
114
|
-
};
|
115
|
-
dataSrc?: undefined;
|
116
|
-
data?: undefined;
|
87
|
+
customConditional({ data, buildingForm }: {
|
88
|
+
data?: {} | undefined;
|
89
|
+
buildingForm?: {} | undefined;
|
90
|
+
}): boolean;
|
117
91
|
tooltip?: undefined;
|
92
|
+
conditional?: undefined;
|
118
93
|
weight?: undefined;
|
119
94
|
optionsLabelPosition?: undefined;
|
120
95
|
values?: undefined;
|
@@ -132,11 +107,8 @@ declare const _default: ({
|
|
132
107
|
'===': (boolean | {
|
133
108
|
var: string;
|
134
109
|
})[];
|
135
|
-
'!=='?: undefined;
|
136
110
|
};
|
137
111
|
};
|
138
|
-
dataSrc?: undefined;
|
139
|
-
data?: undefined;
|
140
112
|
weight?: undefined;
|
141
113
|
optionsLabelPosition?: undefined;
|
142
114
|
values?: undefined;
|
@@ -160,10 +132,8 @@ declare const _default: ({
|
|
160
132
|
cancel: boolean;
|
161
133
|
next: boolean;
|
162
134
|
};
|
163
|
-
dataSrc?: undefined;
|
164
|
-
data?: undefined;
|
165
|
-
conditional?: undefined;
|
166
135
|
tooltip?: undefined;
|
136
|
+
conditional?: undefined;
|
167
137
|
} | {
|
168
138
|
weight: number;
|
169
139
|
label: string;
|
@@ -173,8 +143,6 @@ declare const _default: ({
|
|
173
143
|
inputType: string;
|
174
144
|
defaultValue: boolean;
|
175
145
|
tooltip: string;
|
176
|
-
dataSrc?: undefined;
|
177
|
-
data?: undefined;
|
178
146
|
conditional?: undefined;
|
179
147
|
optionsLabelPosition?: undefined;
|
180
148
|
values?: undefined;
|
@@ -80,28 +80,15 @@ exports.default = [
|
|
80
80
|
type: 'fieldset',
|
81
81
|
input: false,
|
82
82
|
components: [
|
83
|
-
{
|
84
|
-
type: 'select',
|
85
|
-
input: true,
|
86
|
-
label: 'Breadcrumb Type',
|
87
|
-
key: 'breadcrumb',
|
88
|
-
dataSrc: 'values',
|
89
|
-
data: {
|
90
|
-
values: [
|
91
|
-
{ label: 'Default', value: 'default' },
|
92
|
-
{ label: 'Condensed', value: 'condensed' },
|
93
|
-
{ label: 'Hidden', value: 'none' },
|
94
|
-
]
|
95
|
-
}
|
96
|
-
},
|
97
83
|
{
|
98
84
|
input: true,
|
99
85
|
type: 'checkbox',
|
100
86
|
label: 'Allow click on Breadcrumb',
|
101
87
|
key: 'breadcrumbClickable',
|
102
88
|
defaultValue: true,
|
103
|
-
|
104
|
-
|
89
|
+
customConditional({ data = {}, buildingForm = {} }) {
|
90
|
+
const formSettings = buildingForm.settings || {};
|
91
|
+
return ![data.breadcrumb, formSettings.wizardBreadcrumbsType].includes('none');
|
105
92
|
}
|
106
93
|
},
|
107
94
|
{
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const TextField_1 = __importDefault(require("../textfield/TextField"));
|
7
|
+
const lodash_1 = __importDefault(require("lodash"));
|
7
8
|
class PhoneNumberComponent extends TextField_1.default {
|
8
9
|
static schema(...extend) {
|
9
10
|
return TextField_1.default.schema({
|
@@ -29,5 +30,21 @@ class PhoneNumberComponent extends TextField_1.default {
|
|
29
30
|
get defaultSchema() {
|
30
31
|
return PhoneNumberComponent.schema();
|
31
32
|
}
|
33
|
+
getValueAsString(value, options) {
|
34
|
+
if ((options === null || options === void 0 ? void 0 : options.email) && this.visible && !this.skipInEmail && lodash_1.default.isObject(value)) {
|
35
|
+
const result = (`
|
36
|
+
<table border="1" style="width:100%">
|
37
|
+
<tbody>
|
38
|
+
<tr>
|
39
|
+
<th style="padding: 5px 10px;">${value.maskName}</th>
|
40
|
+
<td style="width:100%;padding:5px 10px;">${value.value}</td>
|
41
|
+
</tr>
|
42
|
+
</tbody>
|
43
|
+
</table>
|
44
|
+
`);
|
45
|
+
return result;
|
46
|
+
}
|
47
|
+
return super.getValueAsString(value, options);
|
48
|
+
}
|
32
49
|
}
|
33
50
|
exports.default = PhoneNumberComponent;
|
@@ -100,7 +100,6 @@ class RadioComponent extends ListComponent_1.default {
|
|
100
100
|
init() {
|
101
101
|
super.init();
|
102
102
|
this.templateData = {};
|
103
|
-
this.validators = this.validators.concat(['select', 'onlyAvailableItems', 'availableValueProperty']);
|
104
103
|
// Trigger an update.//
|
105
104
|
let updateArgs = [];
|
106
105
|
const triggerUpdate = lodash_1.default.debounce((...args) => {
|
@@ -256,7 +255,6 @@ class RadioComponent extends ListComponent_1.default {
|
|
256
255
|
Formio_1.Formio.makeRequest(this.options.formio, 'select', url, method, body, options)
|
257
256
|
.then((response) => {
|
258
257
|
this.loading = false;
|
259
|
-
this.error = null;
|
260
258
|
this.setItems(response);
|
261
259
|
this.optionsLoaded = true;
|
262
260
|
this.redraw();
|
@@ -17,7 +17,7 @@ export default class ReCaptchaComponent extends Component {
|
|
17
17
|
recaptchaVerifiedPromise: Promise<void> | undefined;
|
18
18
|
isLoading: boolean | undefined;
|
19
19
|
sendVerificationRequest(token: any): any;
|
20
|
-
checkComponentValidity(data: any, dirty: any, row: any, options?: {}): any;
|
20
|
+
checkComponentValidity(data: any, dirty: any, row: any, options?: {}, errors?: any[]): any;
|
21
21
|
normalizeValue(newValue: any): any;
|
22
22
|
}
|
23
23
|
import Component from '../_classes/component/Component';
|
@@ -110,13 +110,13 @@ class ReCaptchaComponent extends Component_1.default {
|
|
110
110
|
return Formio_1.Formio.makeStaticRequest(`${Formio_1.Formio.projectUrl}/recaptcha?recaptchaToken=${token}`)
|
111
111
|
.then((verificationResult) => ({ verificationResult, token }));
|
112
112
|
}
|
113
|
-
checkComponentValidity(data, dirty, row, options = {}) {
|
113
|
+
checkComponentValidity(data, dirty, row, options = {}, errors = []) {
|
114
114
|
data = data || this.rootValue;
|
115
115
|
row = row || this.data;
|
116
116
|
const { async = false } = options;
|
117
117
|
// Verification could be async only
|
118
118
|
if (!async) {
|
119
|
-
return super.checkComponentValidity(data, dirty, row, options);
|
119
|
+
return super.checkComponentValidity(data, dirty, row, options, errors);
|
120
120
|
}
|
121
121
|
const componentData = row[this.component.key];
|
122
122
|
if (!componentData || !componentData.token) {
|
@@ -88,7 +88,6 @@ class SelectComponent extends ListComponent_1.default {
|
|
88
88
|
init() {
|
89
89
|
super.init();
|
90
90
|
this.templateData = {};
|
91
|
-
this.validators = this.validators.concat(['select', 'onlyAvailableItems']);
|
92
91
|
// Trigger an update.
|
93
92
|
let updateArgs = [];
|
94
93
|
const triggerUpdate = lodash_1.default.debounce((...args) => {
|
@@ -546,7 +545,6 @@ class SelectComponent extends ListComponent_1.default {
|
|
546
545
|
Formio_1.Formio.makeRequest(this.options.formio, 'select', url, method, body, options)
|
547
546
|
.then((response) => {
|
548
547
|
this.loading = false;
|
549
|
-
this.error = null;
|
550
548
|
this.setItems(response, !!search);
|
551
549
|
})
|
552
550
|
.catch((err) => {
|
@@ -1432,6 +1430,9 @@ class SelectComponent extends ListComponent_1.default {
|
|
1432
1430
|
return '-';
|
1433
1431
|
}
|
1434
1432
|
}
|
1433
|
+
if (this.isEntireObjectDisplay() && lodash_1.default.isObject(value)) {
|
1434
|
+
return JSON.stringify(value);
|
1435
|
+
}
|
1435
1436
|
return !lodash_1.default.isNil(value)
|
1436
1437
|
? this.itemTemplate(value)
|
1437
1438
|
: '-';
|
@@ -37,7 +37,6 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
37
37
|
};
|
38
38
|
static savedValueTypes(schema: any): string[];
|
39
39
|
constructor(...args: any[]);
|
40
|
-
validators: string[];
|
41
40
|
get emptyValue(): any;
|
42
41
|
/**
|
43
42
|
* Only empty if the values are all false.
|
@@ -47,6 +46,6 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
47
46
|
*/
|
48
47
|
isEmpty(value?: any): boolean;
|
49
48
|
setInputsDisabled(value: any, onlyUnchecked: any): void;
|
50
|
-
checkComponentValidity(data: any, dirty: any, rowData: any, options: any): boolean;
|
49
|
+
checkComponentValidity(data: any, dirty: any, rowData: any, options: any, errors?: any[]): boolean;
|
51
50
|
}
|
52
51
|
import RadioComponent from '../radio/Radio';
|
@@ -46,7 +46,6 @@ class SelectBoxesComponent extends Radio_1.default {
|
|
46
46
|
}
|
47
47
|
constructor(...args) {
|
48
48
|
super(...args);
|
49
|
-
this.validators = this.validators.concat('minSelectedCount', 'maxSelectedCount', 'availableValueProperty');
|
50
49
|
}
|
51
50
|
init() {
|
52
51
|
super.init();
|
@@ -211,10 +210,10 @@ class SelectBoxesComponent extends Radio_1.default {
|
|
211
210
|
});
|
212
211
|
}
|
213
212
|
}
|
214
|
-
checkComponentValidity(data, dirty, rowData, options) {
|
213
|
+
checkComponentValidity(data, dirty, rowData, options, errors = []) {
|
215
214
|
const minCount = this.component.validate.minSelectedCount;
|
216
215
|
const maxCount = this.component.validate.maxSelectedCount;
|
217
|
-
if (!this.shouldSkipValidation(data,
|
216
|
+
if (!this.shouldSkipValidation(data, rowData, options)) {
|
218
217
|
const isValid = this.isValid(data, dirty);
|
219
218
|
if ((maxCount || minCount)) {
|
220
219
|
const count = Object.keys(this.validationValue).reduce((total, key) => {
|
@@ -231,19 +230,21 @@ class SelectBoxesComponent extends Radio_1.default {
|
|
231
230
|
this.setInputsDisabled(false);
|
232
231
|
}
|
233
232
|
if (!isValid && maxCount && count > maxCount) {
|
234
|
-
const message = this.t(this.component.maxSelectedCountMessage || 'You
|
233
|
+
const message = this.t(this.component.maxSelectedCountMessage || 'You may only select up to {{maxCount}} items', { maxCount });
|
234
|
+
this.errors.push({ message });
|
235
235
|
this.setCustomValidity(message, dirty);
|
236
236
|
return false;
|
237
237
|
}
|
238
238
|
else if (!isValid && minCount && count < minCount) {
|
239
239
|
this.setInputsDisabled(false);
|
240
|
-
const message = this.t(this.component.minSelectedCountMessage || 'You must select at least {{minCount}} items
|
240
|
+
const message = this.t(this.component.minSelectedCountMessage || 'You must select at least {{minCount}} items', { minCount });
|
241
|
+
this.errors.push({ message });
|
241
242
|
this.setCustomValidity(message, dirty);
|
242
243
|
return false;
|
243
244
|
}
|
244
245
|
}
|
245
246
|
}
|
246
|
-
return super.checkComponentValidity(data, dirty, rowData, options);
|
247
|
+
return super.checkComponentValidity(data, dirty, rowData, options, errors);
|
247
248
|
}
|
248
249
|
validateValueAvailability(setting, value) {
|
249
250
|
if (!(0, utils_1.boolValue)(setting) || !value) {
|
@@ -1,12 +1,32 @@
|
|
1
1
|
declare const _default: ({
|
2
2
|
key: string;
|
3
3
|
ignore: boolean;
|
4
|
+
weight?: undefined;
|
4
5
|
type?: undefined;
|
5
|
-
label?: undefined;
|
6
6
|
input?: undefined;
|
7
|
-
|
7
|
+
label?: undefined;
|
8
8
|
placeholder?: undefined;
|
9
9
|
tooltip?: undefined;
|
10
|
+
validate?: undefined;
|
11
|
+
autofocus?: undefined;
|
12
|
+
overrideEditForm?: undefined;
|
13
|
+
dataSrc?: undefined;
|
14
|
+
data?: undefined;
|
15
|
+
defaultValue?: undefined;
|
16
|
+
} | {
|
17
|
+
weight: number;
|
18
|
+
type: string;
|
19
|
+
input: boolean;
|
20
|
+
key: string;
|
21
|
+
label: string;
|
22
|
+
placeholder: string;
|
23
|
+
tooltip: string;
|
24
|
+
validate: {
|
25
|
+
required: boolean;
|
26
|
+
};
|
27
|
+
autofocus: boolean;
|
28
|
+
overrideEditForm: boolean;
|
29
|
+
ignore?: undefined;
|
10
30
|
dataSrc?: undefined;
|
11
31
|
data?: undefined;
|
12
32
|
defaultValue?: undefined;
|
@@ -19,6 +39,9 @@ declare const _default: ({
|
|
19
39
|
placeholder: string;
|
20
40
|
tooltip: string;
|
21
41
|
ignore?: undefined;
|
42
|
+
validate?: undefined;
|
43
|
+
autofocus?: undefined;
|
44
|
+
overrideEditForm?: undefined;
|
22
45
|
dataSrc?: undefined;
|
23
46
|
data?: undefined;
|
24
47
|
defaultValue?: undefined;
|
@@ -31,6 +54,9 @@ declare const _default: ({
|
|
31
54
|
tooltip: string;
|
32
55
|
ignore?: undefined;
|
33
56
|
placeholder?: undefined;
|
57
|
+
validate?: undefined;
|
58
|
+
autofocus?: undefined;
|
59
|
+
overrideEditForm?: undefined;
|
34
60
|
dataSrc?: undefined;
|
35
61
|
data?: undefined;
|
36
62
|
defaultValue?: undefined;
|
@@ -51,5 +77,8 @@ declare const _default: ({
|
|
51
77
|
weight: number;
|
52
78
|
ignore?: undefined;
|
53
79
|
placeholder?: undefined;
|
80
|
+
validate?: undefined;
|
81
|
+
autofocus?: undefined;
|
82
|
+
overrideEditForm?: undefined;
|
54
83
|
})[];
|
55
84
|
export default _default;
|
@@ -33,6 +33,24 @@ exports.default = [
|
|
33
33
|
key: 'tableView',
|
34
34
|
ignore: true
|
35
35
|
},
|
36
|
+
{
|
37
|
+
key: 'hideLabel',
|
38
|
+
ignore: true
|
39
|
+
},
|
40
|
+
{
|
41
|
+
weight: 0,
|
42
|
+
type: 'textfield',
|
43
|
+
input: true,
|
44
|
+
key: 'label',
|
45
|
+
label: 'Label',
|
46
|
+
placeholder: 'Field Label',
|
47
|
+
tooltip: 'The label for this field.',
|
48
|
+
validate: {
|
49
|
+
required: true
|
50
|
+
},
|
51
|
+
autofocus: true,
|
52
|
+
overrideEditForm: true
|
53
|
+
},
|
36
54
|
{
|
37
55
|
type: 'number',
|
38
56
|
label: 'Number of Rows',
|
@@ -108,4 +126,8 @@ exports.default = [
|
|
108
126
|
tooltip: 'Condense the size of the table.',
|
109
127
|
weight: 704
|
110
128
|
},
|
129
|
+
{
|
130
|
+
key: 'hideLabel',
|
131
|
+
ignore: true
|
132
|
+
},
|
111
133
|
];
|
@@ -1,13 +1,33 @@
|
|
1
1
|
declare const _default: ({
|
2
2
|
key: string;
|
3
3
|
ignore: boolean;
|
4
|
+
weight?: undefined;
|
4
5
|
type?: undefined;
|
5
6
|
input?: undefined;
|
6
7
|
label?: undefined;
|
7
|
-
|
8
|
+
placeholder?: undefined;
|
9
|
+
tooltip?: undefined;
|
10
|
+
validate?: undefined;
|
11
|
+
autofocus?: undefined;
|
12
|
+
overrideEditForm?: undefined;
|
13
|
+
reorder?: undefined;
|
14
|
+
components?: undefined;
|
15
|
+
} | {
|
16
|
+
weight: number;
|
17
|
+
type: string;
|
18
|
+
input: boolean;
|
19
|
+
key: string;
|
20
|
+
label: string;
|
21
|
+
placeholder: string;
|
22
|
+
tooltip: string;
|
23
|
+
validate: {
|
24
|
+
required: boolean;
|
25
|
+
};
|
26
|
+
autofocus: boolean;
|
27
|
+
overrideEditForm: boolean;
|
28
|
+
ignore?: undefined;
|
8
29
|
reorder?: undefined;
|
9
30
|
components?: undefined;
|
10
|
-
tooltip?: undefined;
|
11
31
|
} | {
|
12
32
|
key: string;
|
13
33
|
type: string;
|
@@ -34,7 +54,11 @@ declare const _default: ({
|
|
34
54
|
};
|
35
55
|
})[];
|
36
56
|
ignore?: undefined;
|
57
|
+
placeholder?: undefined;
|
37
58
|
tooltip?: undefined;
|
59
|
+
validate?: undefined;
|
60
|
+
autofocus?: undefined;
|
61
|
+
overrideEditForm?: undefined;
|
38
62
|
} | {
|
39
63
|
weight: number;
|
40
64
|
type: string;
|
@@ -43,6 +67,10 @@ declare const _default: ({
|
|
43
67
|
key: string;
|
44
68
|
input: boolean;
|
45
69
|
ignore?: undefined;
|
70
|
+
placeholder?: undefined;
|
71
|
+
validate?: undefined;
|
72
|
+
autofocus?: undefined;
|
73
|
+
overrideEditForm?: undefined;
|
46
74
|
reorder?: undefined;
|
47
75
|
components?: undefined;
|
48
76
|
})[];
|
@@ -33,6 +33,24 @@ exports.default = [
|
|
33
33
|
key: 'tableView',
|
34
34
|
ignore: true
|
35
35
|
},
|
36
|
+
{
|
37
|
+
key: 'hideLabel',
|
38
|
+
ignore: true
|
39
|
+
},
|
40
|
+
{
|
41
|
+
weight: 0,
|
42
|
+
type: 'textfield',
|
43
|
+
input: true,
|
44
|
+
key: 'label',
|
45
|
+
label: 'Label',
|
46
|
+
placeholder: 'Field Label',
|
47
|
+
tooltip: 'The label for this field.',
|
48
|
+
validate: {
|
49
|
+
required: true
|
50
|
+
},
|
51
|
+
autofocus: true,
|
52
|
+
overrideEditForm: true
|
53
|
+
},
|
36
54
|
{
|
37
55
|
key: 'components',
|
38
56
|
type: 'datagrid',
|
@@ -65,4 +83,8 @@ exports.default = [
|
|
65
83
|
key: 'verticalLayout',
|
66
84
|
input: true
|
67
85
|
},
|
86
|
+
{
|
87
|
+
key: 'hideLabel',
|
88
|
+
ignore: true
|
89
|
+
},
|
68
90
|
];
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const Input_1 = __importDefault(require("../_classes/input/Input"));
|
30
30
|
const vanilla_text_mask_1 = require("@formio/vanilla-text-mask");
|
31
31
|
const FormioUtils = __importStar(require("../../utils/utils"));
|
32
|
+
const lodash_1 = __importDefault(require("lodash"));
|
32
33
|
class TextFieldComponent extends Input_1.default {
|
33
34
|
static schema(...extend) {
|
34
35
|
return Input_1.default.schema({
|
@@ -207,12 +208,6 @@ class TextFieldComponent extends Input_1.default {
|
|
207
208
|
maskName: maskInput ? maskInput.value : undefined
|
208
209
|
};
|
209
210
|
}
|
210
|
-
getValueAsString(value, options) {
|
211
|
-
if (value && this.component.inputFormat === 'plain' && /<[^<>]+>/g.test(value)) {
|
212
|
-
value = value.replaceAll('<', '<').replaceAll('>', '>');
|
213
|
-
}
|
214
|
-
return super.getValueAsString(value, options);
|
215
|
-
}
|
216
211
|
isHtmlRenderMode() {
|
217
212
|
return super.isHtmlRenderMode() ||
|
218
213
|
((this.options.readOnly || this.disabled) &&
|
@@ -247,5 +242,24 @@ class TextFieldComponent extends Input_1.default {
|
|
247
242
|
this.dataValue = value;
|
248
243
|
return Promise.resolve(value).then(() => super.beforeSubmit());
|
249
244
|
}
|
245
|
+
getValueAsString(value, options) {
|
246
|
+
if ((options === null || options === void 0 ? void 0 : options.email) && this.visible && !this.skipInEmail && lodash_1.default.isObject(value)) {
|
247
|
+
const result = (`
|
248
|
+
<table border="1" style="width:100%">
|
249
|
+
<tbody>
|
250
|
+
<tr>
|
251
|
+
<th style="padding: 5px 10px;">${value.maskName}</th>
|
252
|
+
<td style="width:100%;padding:5px 10px;">${value.value}</td>
|
253
|
+
</tr>
|
254
|
+
</tbody>
|
255
|
+
</table>
|
256
|
+
`);
|
257
|
+
return result;
|
258
|
+
}
|
259
|
+
if (value && this.component.inputFormat === 'plain' && /<[^<>]+>/g.test(value)) {
|
260
|
+
value = value.replaceAll('<', '<').replaceAll('>', '>');
|
261
|
+
}
|
262
|
+
return super.getValueAsString(value, options);
|
263
|
+
}
|
250
264
|
}
|
251
265
|
exports.default = TextFieldComponent;
|
@@ -32,12 +32,6 @@ class TimeComponent extends TextField_1.default {
|
|
32
32
|
: (this.component.inputType || 'time');
|
33
33
|
this.rawData = this.component.multiple ? [] : this.emptyValue;
|
34
34
|
}
|
35
|
-
init() {
|
36
|
-
super.init();
|
37
|
-
if (this.component.inputType === 'text') {
|
38
|
-
this.validators.push('time');
|
39
|
-
}
|
40
|
-
}
|
41
35
|
static get builderInfo() {
|
42
36
|
return {
|
43
37
|
title: 'Time',
|
@@ -1,5 +1,28 @@
|
|
1
|
-
declare const _default: {
|
1
|
+
declare const _default: ({
|
2
2
|
key: string;
|
3
3
|
ignore: boolean;
|
4
|
-
|
4
|
+
weight?: undefined;
|
5
|
+
type?: undefined;
|
6
|
+
input?: undefined;
|
7
|
+
label?: undefined;
|
8
|
+
placeholder?: undefined;
|
9
|
+
tooltip?: undefined;
|
10
|
+
validate?: undefined;
|
11
|
+
autofocus?: undefined;
|
12
|
+
overrideEditForm?: undefined;
|
13
|
+
} | {
|
14
|
+
weight: number;
|
15
|
+
type: string;
|
16
|
+
input: boolean;
|
17
|
+
key: string;
|
18
|
+
label: string;
|
19
|
+
placeholder: string;
|
20
|
+
tooltip: string;
|
21
|
+
validate: {
|
22
|
+
required: boolean;
|
23
|
+
};
|
24
|
+
autofocus: boolean;
|
25
|
+
overrideEditForm: boolean;
|
26
|
+
ignore?: undefined;
|
27
|
+
})[];
|
5
28
|
export default _default;
|