@formio/js 5.0.0-rc.27 → 5.0.0-rc.29
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 +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
@@ -10,9 +10,11 @@
|
|
10
10
|
* MIT licensed
|
11
11
|
*/
|
12
12
|
|
13
|
-
/*! @license DOMPurify
|
13
|
+
/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */
|
14
14
|
|
15
|
-
/*!
|
15
|
+
/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */
|
16
|
+
|
17
|
+
/*! formiojs v5.0.0-rc.29 | https://unpkg.com/formiojs@5.0.0-rc.29/LICENSE.txt */
|
16
18
|
|
17
19
|
/**
|
18
20
|
* @license
|
package/lib/cjs/CDN.d.ts
CHANGED
package/lib/cjs/CDN.js
CHANGED
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
// like Formio.cdn.ace === 'http://cdn.form.io/ace/1.4.12'.
|
6
6
|
// For latest version use empty string
|
7
7
|
class CDN {
|
8
|
-
constructor(baseUrl) {
|
8
|
+
constructor(baseUrl, overrides = {}) {
|
9
9
|
this.baseUrl = baseUrl || 'https://cdn.form.io';
|
10
|
-
this.overrides =
|
10
|
+
this.overrides = overrides;
|
11
11
|
this.libs = {
|
12
12
|
'js': '',
|
13
13
|
'ace': '1.4.12',
|
package/lib/cjs/Embed.d.ts
CHANGED
@@ -1,22 +1,30 @@
|
|
1
1
|
export class Formio {
|
2
|
+
static FormioClass: null;
|
2
3
|
static baseUrl: any;
|
3
4
|
static projectUrl: any;
|
5
|
+
static pathType: any;
|
4
6
|
static language: any;
|
5
7
|
static config: {};
|
6
|
-
static cdn:
|
7
|
-
static
|
8
|
+
static cdn: CDN;
|
9
|
+
static modules: any[];
|
10
|
+
static icons: string;
|
11
|
+
static formioReady: Promise<any>;
|
8
12
|
static version: string;
|
9
|
-
static setBaseUrl(url: any):
|
10
|
-
static
|
13
|
+
static setBaseUrl(url: any, norecurse: any): void;
|
14
|
+
static setApiUrl(url: any, norecurse: any): void;
|
15
|
+
static setProjectUrl(url: any, norecurse: any): void;
|
16
|
+
static setAppUrl(url: any, norecurse: any): void;
|
17
|
+
static setPathType(type: any, norecurse: any): void;
|
11
18
|
static debug(...args: any[]): void;
|
12
19
|
static clearCache(): void;
|
13
|
-
static global(prop: any): any;
|
20
|
+
static global(prop: any, flag?: string): any;
|
21
|
+
static use(module: any): void;
|
14
22
|
static createElement(type: any, attrs: any, children: any): any;
|
15
|
-
static addScript(wrapper: any, src: any, name: any): Promise<any>;
|
23
|
+
static addScript(wrapper: any, src: any, name: any, flag?: string): Promise<any>;
|
16
24
|
static addStyles(wrapper: any, href: any): Promise<void>;
|
17
25
|
static submitDone(instance: any, submission: any): Promise<void>;
|
18
26
|
static formioScript(script: any, builder: any): any;
|
19
|
-
static init(element: any, builder?: boolean): Promise<any>;
|
27
|
+
static init(element: any, options?: {}, builder?: boolean): Promise<any>;
|
20
28
|
static createForm(element: any, form: any, options: any): Promise<any>;
|
21
29
|
static builder(element: any, form: any, options: any): Promise<any>;
|
22
30
|
}
|
@@ -41,3 +49,4 @@ export class Form {
|
|
41
49
|
}
|
42
50
|
export class FormBuilder extends Form {
|
43
51
|
}
|
52
|
+
import CDN from './CDN.js';
|
package/lib/cjs/Embed.js
CHANGED
@@ -15,15 +15,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.FormBuilder = exports.Form = exports.Formio = void 0;
|
16
16
|
const CDN_js_1 = __importDefault(require("./CDN.js"));
|
17
17
|
class Formio {
|
18
|
-
static setBaseUrl(url) {
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
static setBaseUrl(url, norecurse) {
|
19
|
+
Formio.baseUrl = url;
|
20
|
+
if (!norecurse && Formio.FormioClass) {
|
21
|
+
Formio.FormioClass.setBaseUrl(url);
|
22
|
+
}
|
22
23
|
}
|
23
|
-
static
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
static setApiUrl(url, norecurse) {
|
25
|
+
Formio.baseUrl = url;
|
26
|
+
if (!norecurse && Formio.FormioClass) {
|
27
|
+
Formio.FormioClass.setApiUrl(url);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
static setProjectUrl(url, norecurse) {
|
31
|
+
Formio.projectUrl = url;
|
32
|
+
if (!norecurse && Formio.FormioClass) {
|
33
|
+
Formio.FormioClass.setProjectUrl(url);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
static setAppUrl(url, norecurse) {
|
37
|
+
Formio.projectUrl = url;
|
38
|
+
if (!norecurse && Formio.FormioClass) {
|
39
|
+
Formio.FormioClass.setAppUrl(url);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
static setPathType(type, norecurse) {
|
43
|
+
Formio.pathType = type;
|
44
|
+
if (!norecurse && Formio.FormioClass) {
|
45
|
+
Formio.FormioClass.setPathType(type);
|
46
|
+
}
|
27
47
|
}
|
28
48
|
static debug(...args) {
|
29
49
|
if (Formio.config.debug) {
|
@@ -35,14 +55,22 @@ class Formio {
|
|
35
55
|
Formio.FormioClass.clearCache();
|
36
56
|
}
|
37
57
|
}
|
38
|
-
static global(prop) {
|
58
|
+
static global(prop, flag = '') {
|
39
59
|
const globalValue = window[prop];
|
40
|
-
if (globalValue && globalValue
|
60
|
+
if (flag && globalValue && !globalValue[flag]) {
|
41
61
|
return null;
|
42
62
|
}
|
43
63
|
Formio.debug(`Getting global ${prop}`, globalValue);
|
44
64
|
return globalValue;
|
45
65
|
}
|
66
|
+
static use(module) {
|
67
|
+
if (Formio.FormioClass && Formio.FormioClass.isRenderer) {
|
68
|
+
Formio.FormioClass.use(module);
|
69
|
+
}
|
70
|
+
else {
|
71
|
+
Formio.modules.push(module);
|
72
|
+
}
|
73
|
+
}
|
46
74
|
static createElement(type, attrs, children) {
|
47
75
|
const element = document.createElement(type);
|
48
76
|
Object.keys(attrs).forEach(key => {
|
@@ -53,7 +81,7 @@ class Formio {
|
|
53
81
|
});
|
54
82
|
return element;
|
55
83
|
}
|
56
|
-
static addScript(wrapper, src, name) {
|
84
|
+
static addScript(wrapper, src, name, flag = '') {
|
57
85
|
return __awaiter(this, void 0, void 0, function* () {
|
58
86
|
if (!src) {
|
59
87
|
return Promise.resolve();
|
@@ -61,7 +89,7 @@ class Formio {
|
|
61
89
|
if (typeof src !== 'string' && src.length) {
|
62
90
|
return Promise.all(src.map(ref => Formio.addScript(wrapper, ref)));
|
63
91
|
}
|
64
|
-
if (name && Formio.global(name)) {
|
92
|
+
if (name && Formio.global(name, flag)) {
|
65
93
|
Formio.debug(`${name} already loaded.`);
|
66
94
|
return Promise.resolve(Formio.global(name));
|
67
95
|
}
|
@@ -75,7 +103,7 @@ class Formio {
|
|
75
103
|
return new Promise((resolve) => {
|
76
104
|
Formio.debug(`Waiting to load ${name}`);
|
77
105
|
const wait = setInterval(() => {
|
78
|
-
if (Formio.global(name)) {
|
106
|
+
if (Formio.global(name, flag)) {
|
79
107
|
clearInterval(wait);
|
80
108
|
Formio.debug(`${name} loaded.`);
|
81
109
|
resolve(Formio.global(name));
|
@@ -143,9 +171,9 @@ class Formio {
|
|
143
171
|
return script;
|
144
172
|
}
|
145
173
|
// eslint-disable-next-line max-statements
|
146
|
-
static init(element, builder = false) {
|
174
|
+
static init(element, options = {}, builder = false) {
|
147
175
|
return __awaiter(this, void 0, void 0, function* () {
|
148
|
-
Formio.cdn = new CDN_js_1.default(Formio.config.cdn);
|
176
|
+
Formio.cdn = new CDN_js_1.default(Formio.config.cdn, Formio.config.cdnUrls || {});
|
149
177
|
Formio.config.libs = Formio.config.libs || {
|
150
178
|
uswds: {
|
151
179
|
fa: true,
|
@@ -161,10 +189,17 @@ class Formio {
|
|
161
189
|
};
|
162
190
|
const id = Formio.config.id || `formio-${Math.random().toString(36).substring(7)}`;
|
163
191
|
// Create a new wrapper and add the element inside of a new wrapper.
|
164
|
-
|
192
|
+
let wrapper = Formio.createElement('div', {
|
165
193
|
'id': `"${id}-wrapper"`
|
166
194
|
});
|
167
195
|
element.parentNode.insertBefore(wrapper, element);
|
196
|
+
// If we include the libraries, then we will attempt to run this in shadow dom.
|
197
|
+
if (Formio.config.includeLibs && (typeof wrapper.attachShadow === 'function') && !Formio.config.premium) {
|
198
|
+
wrapper = wrapper.attachShadow({
|
199
|
+
mode: 'open'
|
200
|
+
});
|
201
|
+
options.shadowRoot = wrapper;
|
202
|
+
}
|
168
203
|
element.parentNode.removeChild(element);
|
169
204
|
wrapper.appendChild(element);
|
170
205
|
// Load the renderer styles.
|
@@ -184,10 +219,20 @@ class Formio {
|
|
184
219
|
}
|
185
220
|
}]
|
186
221
|
}]));
|
187
|
-
|
188
|
-
Formio.FormioClass.
|
189
|
-
Formio.FormioClass.
|
222
|
+
const renderer = Formio.config.debug ? 'formio.form' : 'formio.form.min';
|
223
|
+
Formio.FormioClass = yield Formio.addScript(wrapper, Formio.formioScript(Formio.config.script || `${Formio.cdn.js}/${renderer}.js`, builder), 'Formio', builder ? 'isBuilder' : 'isRenderer');
|
224
|
+
Formio.FormioClass.setBaseUrl(options.baseUrl || Formio.baseUrl || Formio.config.base);
|
225
|
+
Formio.FormioClass.setProjectUrl(options.projectUrl || Formio.projectUrl || Formio.config.project);
|
190
226
|
Formio.FormioClass.language = Formio.language;
|
227
|
+
Formio.modules.forEach((module) => {
|
228
|
+
Formio.FormioClass.use(module);
|
229
|
+
});
|
230
|
+
if (Formio.icons) {
|
231
|
+
Formio.FormioClass.icons = Formio.icons;
|
232
|
+
}
|
233
|
+
if (Formio.pathType) {
|
234
|
+
Formio.FormioClass.setPathType(Formio.pathType);
|
235
|
+
}
|
191
236
|
// Add premium modules
|
192
237
|
if (Formio.global('premium')) {
|
193
238
|
Formio.debug('Using premium module.');
|
@@ -226,17 +271,18 @@ class Formio {
|
|
226
271
|
Formio.debug('Using premium');
|
227
272
|
Formio.FormioClass.use(yield Formio.addScript(wrapper, Formio.config.premium.js, 'premium'));
|
228
273
|
}
|
229
|
-
yield Formio.addStyles(wrapper, Formio.formioScript(Formio.config.style || `${Formio.cdn.js}
|
274
|
+
yield Formio.addStyles(wrapper, Formio.formioScript(Formio.config.style || `${Formio.cdn.js}/${renderer}.css`, builder));
|
230
275
|
if (Formio.config.before) {
|
231
276
|
yield Formio.config.before(Formio.FormioClass, element, Formio.config);
|
232
277
|
}
|
233
278
|
Formio.FormioClass.license = true;
|
279
|
+
Formio._formioReady(Formio.FormioClass);
|
234
280
|
return wrapper;
|
235
281
|
});
|
236
282
|
}
|
237
283
|
static createForm(element, form, options) {
|
238
284
|
return __awaiter(this, void 0, void 0, function* () {
|
239
|
-
const wrapper = yield Formio.init(element);
|
285
|
+
const wrapper = yield Formio.init(element, options);
|
240
286
|
return Formio.FormioClass.createForm(element, form, Object.assign(Object.assign({}, options), { noLoader: true })).then((instance) => {
|
241
287
|
Formio.debug('Form created', instance);
|
242
288
|
// Remove the loader.
|
@@ -261,7 +307,7 @@ class Formio {
|
|
261
307
|
}
|
262
308
|
static builder(element, form, options) {
|
263
309
|
return __awaiter(this, void 0, void 0, function* () {
|
264
|
-
const wrapper = yield Formio.init(element, true);
|
310
|
+
const wrapper = yield Formio.init(element, options, true);
|
265
311
|
return Formio.FormioClass.builder(element, form, options).then((instance) => {
|
266
312
|
Formio.debug('Builder created', instance);
|
267
313
|
Formio.debug('Removing loader');
|
@@ -277,9 +323,15 @@ class Formio {
|
|
277
323
|
});
|
278
324
|
}
|
279
325
|
}
|
326
|
+
Formio.FormioClass = null;
|
280
327
|
Formio.config = {};
|
281
|
-
Formio.cdn =
|
282
|
-
Formio.
|
328
|
+
Formio.cdn = new CDN_js_1.default();
|
329
|
+
Formio.modules = [];
|
330
|
+
Formio.icons = '';
|
331
|
+
Formio.formioReady = new Promise((ready, reject) => {
|
332
|
+
Formio._formioReady = ready;
|
333
|
+
Formio._formioReadyReject = reject;
|
334
|
+
});
|
283
335
|
Formio.version = 'FORMIO_VERSION';
|
284
336
|
exports.Formio = Formio;
|
285
337
|
class Form {
|
package/lib/cjs/Formio.d.ts
CHANGED
package/lib/cjs/Formio.js
CHANGED
@@ -4,15 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.Formio = void 0;
|
7
|
-
const
|
8
|
-
Object.defineProperty(exports, "Formio", { enumerable: true, get: function () { return
|
7
|
+
const sdk_1 = require("@formio/core/sdk");
|
8
|
+
Object.defineProperty(exports, "Formio", { enumerable: true, get: function () { return sdk_1.Formio; } });
|
9
|
+
const Embed_1 = require("./Embed");
|
9
10
|
const CDN_1 = __importDefault(require("./CDN"));
|
10
11
|
const providers_1 = __importDefault(require("./providers"));
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
sdk_1.Formio.cdn = new CDN_1.default();
|
13
|
+
sdk_1.Formio.Providers = providers_1.default;
|
14
|
+
sdk_1.Formio.version = 'FORMIO_VERSION';
|
14
15
|
const isNil = (val) => val === null || val === undefined;
|
15
|
-
|
16
|
+
sdk_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, uploadStartCallback, abortCallback, multipartOptions) {
|
16
17
|
const requestArgs = {
|
17
18
|
provider: storage,
|
18
19
|
method: 'upload',
|
@@ -21,9 +22,9 @@ core_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, pro
|
|
21
22
|
dir: dir
|
22
23
|
};
|
23
24
|
fileKey = fileKey || 'file';
|
24
|
-
const request =
|
25
|
+
const request = sdk_1.Formio.pluginWait('preRequest', requestArgs)
|
25
26
|
.then(() => {
|
26
|
-
return
|
27
|
+
return sdk_1.Formio.pluginGet('fileRequest', requestArgs)
|
27
28
|
.then((result) => {
|
28
29
|
if (storage && isNil(result)) {
|
29
30
|
const Provider = providers_1.default.getProvider('storage', storage);
|
@@ -32,7 +33,7 @@ core_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, pro
|
|
32
33
|
if (uploadStartCallback) {
|
33
34
|
uploadStartCallback();
|
34
35
|
}
|
35
|
-
return provider.uploadFile(file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, abortCallback);
|
36
|
+
return provider.uploadFile(file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, abortCallback, multipartOptions);
|
36
37
|
}
|
37
38
|
else {
|
38
39
|
throw ('Storage provider not found');
|
@@ -41,16 +42,16 @@ core_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, pro
|
|
41
42
|
return result || { url: '' };
|
42
43
|
});
|
43
44
|
});
|
44
|
-
return
|
45
|
+
return sdk_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);
|
45
46
|
};
|
46
|
-
|
47
|
+
sdk_1.Formio.prototype.downloadFile = function (file, options) {
|
47
48
|
const requestArgs = {
|
48
49
|
method: 'download',
|
49
50
|
file: file
|
50
51
|
};
|
51
|
-
const request =
|
52
|
+
const request = sdk_1.Formio.pluginWait('preRequest', requestArgs)
|
52
53
|
.then(() => {
|
53
|
-
return
|
54
|
+
return sdk_1.Formio.pluginGet('fileRequest', requestArgs)
|
54
55
|
.then((result) => {
|
55
56
|
if (file.storage && isNil(result)) {
|
56
57
|
const Provider = providers_1.default.getProvider('storage', file.storage);
|
@@ -65,16 +66,16 @@ core_1.Formio.prototype.downloadFile = function (file, options) {
|
|
65
66
|
return result || { url: '' };
|
66
67
|
});
|
67
68
|
});
|
68
|
-
return
|
69
|
+
return sdk_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);
|
69
70
|
};
|
70
|
-
|
71
|
+
sdk_1.Formio.prototype.deleteFile = function (file, options) {
|
71
72
|
const requestArgs = {
|
72
73
|
method: 'delete',
|
73
74
|
file: file
|
74
75
|
};
|
75
|
-
const request =
|
76
|
+
const request = sdk_1.Formio.pluginWait('preRequest', requestArgs)
|
76
77
|
.then(() => {
|
77
|
-
return
|
78
|
+
return sdk_1.Formio.pluginGet('fileRequest', requestArgs)
|
78
79
|
.then((result) => {
|
79
80
|
if (file.storage && isNil(result)) {
|
80
81
|
const Provider = providers_1.default.getProvider('storage', file.storage);
|
@@ -89,7 +90,14 @@ core_1.Formio.prototype.deleteFile = function (file, options) {
|
|
89
90
|
return result || { url: '' };
|
90
91
|
});
|
91
92
|
});
|
92
|
-
return
|
93
|
+
return sdk_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);
|
93
94
|
};
|
94
95
|
// For reverse compatability.
|
95
|
-
|
96
|
+
sdk_1.Formio.Promise = Promise;
|
97
|
+
sdk_1.Formio.formioReady = Embed_1.Formio.formioReady;
|
98
|
+
sdk_1.Formio.config = Embed_1.Formio.config;
|
99
|
+
sdk_1.Formio.builder = Embed_1.Formio.builder;
|
100
|
+
sdk_1.Formio.Form = Embed_1.Formio.Form;
|
101
|
+
sdk_1.Formio.FormBuilder = Embed_1.Formio.FormBuilder;
|
102
|
+
sdk_1.Formio.use = Embed_1.Formio.use;
|
103
|
+
sdk_1.Formio.createForm = Embed_1.Formio.createForm;
|
package/lib/cjs/PDF.js
CHANGED
@@ -241,7 +241,7 @@ class PDF extends Webform_1.default {
|
|
241
241
|
const helpBlock = document.getElementById('submit-error');
|
242
242
|
const submitError = this.t('submitError');
|
243
243
|
const isSubmitErrorShown = ((_a = this.refs.buttonMessage) === null || _a === void 0 ? void 0 : _a.textContent.trim()) === submitError;
|
244
|
-
if (!helpBlock &&
|
244
|
+
if (!helpBlock && error.length && !isSubmitErrorShown) {
|
245
245
|
const p = this.ce('p', { class: 'help-block' });
|
246
246
|
this.setContent(p, submitError);
|
247
247
|
p.addEventListener('click', () => {
|
@@ -251,7 +251,7 @@ class PDF extends Webform_1.default {
|
|
251
251
|
this.appendTo(p, div);
|
252
252
|
this.appendTo(div, this.element);
|
253
253
|
}
|
254
|
-
if (!
|
254
|
+
if (!error.length && helpBlock) {
|
255
255
|
helpBlock.remove();
|
256
256
|
}
|
257
257
|
super.showErrors(error, triggerEvent);
|
package/lib/cjs/Webform.d.ts
CHANGED
@@ -20,7 +20,6 @@ declare class Webform extends NestedDataComponent {
|
|
20
20
|
draftEnabled: boolean;
|
21
21
|
savingDraft: boolean;
|
22
22
|
triggerSaveDraft: any;
|
23
|
-
customErrors: any[];
|
24
23
|
set nosubmit(arg: any);
|
25
24
|
get nosubmit(): any;
|
26
25
|
/**
|
@@ -327,7 +326,7 @@ declare class Webform extends NestedDataComponent {
|
|
327
326
|
* @param {Object} error - An optional additional error to display along with the component errors.
|
328
327
|
* @returns {*}
|
329
328
|
*/
|
330
|
-
showErrors(
|
329
|
+
showErrors(errors: any, triggerEvent: any, onChange: any): any;
|
331
330
|
/**
|
332
331
|
* Called when the submission has completed, or if the submission needs to be sent to an external library.
|
333
332
|
*
|
@@ -342,7 +341,7 @@ declare class Webform extends NestedDataComponent {
|
|
342
341
|
*
|
343
342
|
* @param {Object} error - The error that occured.
|
344
343
|
*/
|
345
|
-
onSubmissionError(error: Object):
|
344
|
+
onSubmissionError(error: Object): false | undefined;
|
346
345
|
/**
|
347
346
|
* Trigger the change event for this form.
|
348
347
|
*
|
@@ -350,7 +349,6 @@ declare class Webform extends NestedDataComponent {
|
|
350
349
|
* @param flags
|
351
350
|
*/
|
352
351
|
onChange(flags: any, changed: any, modified: any, changes: any): void;
|
353
|
-
checkData(data: any, flags?: {}): any;
|
354
352
|
/**
|
355
353
|
* Send a delete request to the server.
|
356
354
|
*/
|
@@ -388,7 +386,7 @@ declare class Webform extends NestedDataComponent {
|
|
388
386
|
*
|
389
387
|
* @returns {Promise} - A promise when the form is done submitting.
|
390
388
|
*/
|
391
|
-
submit(before: boolean, options
|
389
|
+
submit(before: boolean, options?: {}): Promise<any>;
|
392
390
|
submitUrl(URL: any, headers: any): void;
|
393
391
|
triggerRecaptcha(): void;
|
394
392
|
_nosubmit: any;
|
@@ -396,10 +394,9 @@ declare class Webform extends NestedDataComponent {
|
|
396
394
|
get variables(): any;
|
397
395
|
}
|
398
396
|
declare namespace Webform {
|
399
|
-
const setBaseUrl:
|
400
|
-
const setApiUrl:
|
401
|
-
const setAppUrl:
|
397
|
+
const setBaseUrl: any;
|
398
|
+
const setApiUrl: any;
|
399
|
+
const setAppUrl: any;
|
402
400
|
}
|
403
401
|
export default Webform;
|
404
402
|
import NestedDataComponent from './components/_classes/nesteddata/NestedDataComponent';
|
405
|
-
import { Formio } from './Formio';
|