@formio/js 5.2.4-rc.0 → 5.2.5
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/formio.builder.css +50 -161
- package/dist/formio.builder.min.css +1 -1
- 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.css +49 -158
- package/dist/formio.form.js +108 -152
- package/dist/formio.form.min.css +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.css +50 -161
- package/dist/formio.full.js +227 -401
- package/dist/formio.full.min.css +1 -1
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +18 -51
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +14 -47
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/CDN.js +12 -12
- package/lib/cjs/Element.d.ts +2 -3
- package/lib/cjs/Element.js +26 -29
- package/lib/cjs/Embed.js +42 -75
- package/lib/cjs/EventEmitter.js +1 -1
- package/lib/cjs/Form.d.ts +341 -371
- package/lib/cjs/Form.js +39 -153
- package/lib/cjs/FormBuilder.d.ts +3 -3
- package/lib/cjs/FormBuilder.js +3 -2
- package/lib/cjs/Formio.js +23 -26
- package/lib/cjs/InlineEmbed.js +17 -23
- package/lib/cjs/PDF.d.ts +0 -1
- package/lib/cjs/PDF.js +15 -18
- package/lib/cjs/PDFBuilder.js +36 -51
- package/lib/cjs/Webform.d.ts +366 -8
- package/lib/cjs/Webform.js +238 -177
- package/lib/cjs/WebformBuilder.js +152 -221
- package/lib/cjs/Wizard.js +65 -95
- package/lib/cjs/WizardBuilder.js +19 -27
- package/lib/cjs/addons/FormioAddon.js +1 -1
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +57 -59
- package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +16 -24
- package/lib/cjs/addons/index.js +3 -3
- package/lib/cjs/components/Components.js +4 -0
- package/lib/cjs/components/_classes/component/Component.form.js +11 -11
- package/lib/cjs/components/_classes/component/Component.js +198 -309
- package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +4 -2
- package/lib/cjs/components/_classes/component/editForm/Component.edit.api.js +5 -5
- package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +11 -9
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -37
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +25 -39
- package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +29 -47
- package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.js +9 -9
- package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +7 -5
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +34 -37
- package/lib/cjs/components/_classes/component/editForm/utils.js +16 -12
- package/lib/cjs/components/_classes/componentModal/ComponentModal.js +6 -6
- package/lib/cjs/components/_classes/field/Field.js +1 -7
- package/lib/cjs/components/_classes/input/Input.js +26 -30
- package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
- package/lib/cjs/components/_classes/list/ListComponent.js +18 -27
- package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.js +9 -36
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +13 -32
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -3
- package/lib/cjs/components/_classes/nested/NestedComponent.js +75 -67
- package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +14 -19
- package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +17 -19
- package/lib/cjs/components/address/Address.d.ts +0 -1
- package/lib/cjs/components/address/Address.js +52 -57
- package/lib/cjs/components/address/editForm/Address.edit.data.js +2 -2
- package/lib/cjs/components/address/editForm/Address.edit.display.js +2 -2
- package/lib/cjs/components/address/editForm/Address.edit.provider.js +11 -53
- package/lib/cjs/components/alert/Alert.js +15 -21
- package/lib/cjs/components/button/Button.form.js +1 -1
- package/lib/cjs/components/button/Button.js +47 -64
- package/lib/cjs/components/button/editForm/Button.edit.display.js +9 -49
- package/lib/cjs/components/checkbox/Checkbox.d.ts +1 -1
- package/lib/cjs/components/checkbox/Checkbox.form.js +3 -3
- package/lib/cjs/components/checkbox/Checkbox.js +20 -28
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.js +1 -1
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.js +3 -13
- package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.js +2 -2
- package/lib/cjs/components/columns/Columns.form.js +1 -1
- package/lib/cjs/components/columns/Columns.js +12 -24
- package/lib/cjs/components/columns/editForm/Columns.edit.display.js +17 -17
- package/lib/cjs/components/container/Container.form.js +2 -2
- package/lib/cjs/components/container/Container.js +4 -6
- package/lib/cjs/components/container/editForm/Container.edit.data.js +3 -3
- package/lib/cjs/components/container/editForm/Container.edit.display.js +4 -4
- package/lib/cjs/components/content/Content.form.js +2 -4
- package/lib/cjs/components/content/Content.js +8 -10
- package/lib/cjs/components/content/editForm/Content.edit.display.js +10 -10
- package/lib/cjs/components/currency/Currency.form.js +3 -3
- package/lib/cjs/components/currency/Currency.js +10 -19
- package/lib/cjs/components/currency/editForm/Currency.edit.data.js +5 -5
- package/lib/cjs/components/currency/editForm/Currency.edit.display.js +8 -8
- package/lib/cjs/components/datagrid/DataGrid.form.js +3 -3
- package/lib/cjs/components/datagrid/DataGrid.js +42 -92
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.js +1 -1
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.js +14 -14
- package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.js +3 -3
- package/lib/cjs/components/datamap/DataMap.form.js +2 -2
- package/lib/cjs/components/datamap/DataMap.js +35 -46
- package/lib/cjs/components/datamap/editForm/DataMap.edit.data.js +1 -1
- package/lib/cjs/components/datamap/editForm/DataMap.edit.display.js +8 -8
- package/lib/cjs/components/datetime/DateTime.form.js +5 -5
- package/lib/cjs/components/datetime/DateTime.js +15 -30
- package/lib/cjs/components/datetime/editForm/DateTime.edit.data.js +3 -4
- package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +10 -10
- package/lib/cjs/components/datetime/editForm/DateTime.edit.display.js +17 -22
- package/lib/cjs/components/datetime/editForm/DateTime.edit.time.js +5 -5
- package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +3 -3
- package/lib/cjs/components/day/Day.form.js +5 -5
- package/lib/cjs/components/day/Day.js +58 -147
- package/lib/cjs/components/day/editForm/Day.edit.day.js +9 -13
- package/lib/cjs/components/day/editForm/Day.edit.display.js +7 -7
- package/lib/cjs/components/day/editForm/Day.edit.month.js +8 -12
- package/lib/cjs/components/day/editForm/Day.edit.validation.js +7 -7
- package/lib/cjs/components/day/editForm/Day.edit.year.js +8 -8
- package/lib/cjs/components/editgrid/EditGrid.form.js +2 -2
- package/lib/cjs/components/editgrid/EditGrid.js +96 -142
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.js +2 -2
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -7
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +16 -16
- package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.js +3 -3
- package/lib/cjs/components/email/Email.js +4 -4
- package/lib/cjs/components/email/editForm/Email.edit.display.js +3 -3
- package/lib/cjs/components/email/editForm/Email.edit.validation.js +6 -6
- package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
- package/lib/cjs/components/fieldset/Fieldset.js +2 -2
- package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +8 -8
- package/lib/cjs/components/file/File.form.js +4 -4
- package/lib/cjs/components/file/File.js +90 -131
- package/lib/cjs/components/file/editForm/File.edit.display.js +5 -9
- package/lib/cjs/components/file/editForm/File.edit.file.js +53 -97
- package/lib/cjs/components/file/editForm/File.edit.validation.js +2 -2
- package/lib/cjs/components/form/Form.form.js +3 -3
- package/lib/cjs/components/form/Form.js +58 -68
- package/lib/cjs/components/form/editForm/Form.edit.data.js +3 -1
- package/lib/cjs/components/form/editForm/Form.edit.display.js +7 -6
- package/lib/cjs/components/form/editForm/Form.edit.form.js +9 -11
- package/lib/cjs/components/hidden/Hidden.form.js +4 -4
- package/lib/cjs/components/hidden/Hidden.js +2 -2
- package/lib/cjs/components/hidden/editForm/Hidden.edit.data.js +3 -3
- package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +10 -10
- package/lib/cjs/components/html/HTML.js +17 -23
- package/lib/cjs/components/html/editForm/HTML.edit.display.js +17 -17
- package/lib/cjs/components/html/editForm/HTML.edit.logic.js +2 -2
- package/lib/cjs/components/number/Number.form.js +3 -3
- package/lib/cjs/components/number/Number.js +11 -27
- package/lib/cjs/components/number/editForm/Number.edit.data.js +3 -3
- package/lib/cjs/components/number/editForm/Number.edit.display.js +4 -4
- package/lib/cjs/components/number/editForm/Number.edit.validation.js +9 -9
- package/lib/cjs/components/panel/Panel.form.js +1 -1
- package/lib/cjs/components/panel/Panel.js +2 -2
- package/lib/cjs/components/panel/editForm/Panel.edit.conditional.js +7 -5
- package/lib/cjs/components/panel/editForm/Panel.edit.display.js +29 -55
- package/lib/cjs/components/password/Password.form.js +3 -3
- package/lib/cjs/components/password/Password.js +2 -5
- package/lib/cjs/components/password/editForm/Password.edit.data.js +11 -11
- package/lib/cjs/components/password/editForm/Password.edit.display.js +3 -3
- package/lib/cjs/components/password/editForm/Password.edit.validation.js +3 -3
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +8 -8
- package/lib/cjs/components/phonenumber/PhoneNumber.js +3 -3
- package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +6 -6
- package/lib/cjs/components/radio/Radio.form.js +3 -3
- package/lib/cjs/components/radio/Radio.js +32 -58
- package/lib/cjs/components/radio/editForm/Radio.edit.data.js +9 -23
- package/lib/cjs/components/radio/editForm/Radio.edit.display.js +6 -6
- package/lib/cjs/components/radio/editForm/Radio.edit.validation.js +2 -2
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -5
- package/lib/cjs/components/recaptcha/ReCaptcha.js +10 -10
- package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +24 -24
- package/lib/cjs/components/select/Select.form.js +3 -3
- package/lib/cjs/components/select/Select.js +140 -235
- package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +1 -1
- package/lib/cjs/components/select/editForm/Select.edit.data.js +57 -191
- package/lib/cjs/components/select/editForm/Select.edit.display.js +2 -2
- package/lib/cjs/components/select/editForm/Select.edit.validation.js +4 -4
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -3
- package/lib/cjs/components/selectboxes/SelectBoxes.js +16 -29
- package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +5 -5
- package/lib/cjs/components/signature/Signature.form.js +3 -3
- package/lib/cjs/components/signature/Signature.js +17 -26
- package/lib/cjs/components/signature/editForm/Signature.edit.display.js +10 -19
- package/lib/cjs/components/survey/Survey.form.js +3 -3
- package/lib/cjs/components/survey/Survey.js +17 -30
- package/lib/cjs/components/survey/editForm/Survey.edit.data.js +11 -23
- package/lib/cjs/components/survey/editForm/Survey.edit.display.js +1 -1
- package/lib/cjs/components/survey/editForm/Survey.edit.validation.js +1 -1
- package/lib/cjs/components/table/Table.form.js +1 -1
- package/lib/cjs/components/table/Table.js +7 -8
- package/lib/cjs/components/table/editForm/Table.edit.display.js +22 -22
- package/lib/cjs/components/tabs/Tabs.form.js +1 -1
- package/lib/cjs/components/tabs/Tabs.js +10 -27
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +17 -21
- package/lib/cjs/components/tags/Tags.form.js +1 -1
- package/lib/cjs/components/tags/Tags.js +12 -28
- package/lib/cjs/components/tags/editForm/Tags.edit.data.js +7 -7
- package/lib/cjs/components/textarea/TextArea.form.js +2 -2
- package/lib/cjs/components/textarea/TextArea.js +45 -63
- package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +72 -96
- package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.js +3 -3
- package/lib/cjs/components/textfield/TextField.form.js +3 -3
- package/lib/cjs/components/textfield/TextField.js +21 -32
- package/lib/cjs/components/textfield/editForm/TextField.edit.data.js +13 -15
- package/lib/cjs/components/textfield/editForm/TextField.edit.display.js +21 -31
- package/lib/cjs/components/textfield/editForm/TextField.edit.validation.js +6 -6
- package/lib/cjs/components/time/Time.js +10 -17
- package/lib/cjs/components/time/editForm/Time.edit.display.js +2 -2
- package/lib/cjs/components/unknown/Unknown.form.js +5 -5
- package/lib/cjs/components/unknown/Unknown.js +2 -2
- package/lib/cjs/components/unknown/editForm/Unknown.edit.display.js +3 -3
- package/lib/cjs/components/url/Url.form.js +3 -3
- package/lib/cjs/components/url/Url.js +2 -2
- package/lib/cjs/components/url/editForm/Url.edit.display.js +3 -3
- package/lib/cjs/components/url/editForm/Url.edit.validation.js +1 -1
- package/lib/cjs/components/well/Well.form.js +1 -1
- package/lib/cjs/components/well/Well.js +2 -2
- package/lib/cjs/components/well/editForm/Well.edit.display.js +10 -10
- package/lib/cjs/formio.form.d.ts +1 -2
- package/lib/cjs/formio.form.js +12 -38
- package/lib/cjs/i18n.d.ts +0 -4
- package/lib/cjs/i18n.js +3 -7
- package/lib/cjs/package.json +1 -1
- package/lib/cjs/pdf.image.d.ts +2 -0
- package/lib/cjs/pdf.image.js +94 -0
- package/lib/cjs/providers/address/AddressProvider.js +5 -8
- package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +3 -3
- package/lib/cjs/providers/address/GoogleAddressProvider.js +13 -24
- package/lib/cjs/providers/processor/fileProcessor.js +1 -3
- package/lib/cjs/providers/storage/azure.js +2 -5
- package/lib/cjs/providers/storage/dropbox.js +5 -4
- package/lib/cjs/providers/storage/googleDrive.js +4 -3
- package/lib/cjs/providers/storage/index.js +1 -1
- package/lib/cjs/providers/storage/indexeddb.js +6 -16
- package/lib/cjs/providers/storage/s3.js +6 -17
- package/lib/cjs/providers/storage/uploadAdapter.js +11 -17
- package/lib/cjs/providers/storage/url.js +11 -13
- package/lib/cjs/providers/storage/xhr.js +9 -17
- package/lib/cjs/templates/index.js +1 -1
- package/lib/cjs/translations/en.d.ts +2 -0
- package/lib/cjs/translations/en.js +9 -7
- package/lib/cjs/utils/ChoicesWrapper.js +2 -2
- package/lib/cjs/utils/builder.js +7 -31
- package/lib/cjs/utils/calendarUtils.js +5 -7
- package/lib/cjs/utils/conditionOperators/ConditionOperator.js +1 -1
- package/lib/cjs/utils/conditionOperators/DateGreaterThan.js +4 -12
- package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +1 -3
- package/lib/cjs/utils/conditionOperators/IsEqualTo.js +6 -10
- package/lib/cjs/utils/conditionOperators/index.js +1 -1
- package/lib/cjs/utils/formUtils.js +1 -1
- package/lib/cjs/utils/i18n.js +1 -7
- package/lib/cjs/utils/index.d.ts +1 -2
- package/lib/cjs/utils/index.js +2 -2
- package/lib/cjs/utils/jsonlogic/operators.d.ts +1 -0
- package/lib/cjs/utils/jsonlogic/operators.js +265 -0
- package/lib/cjs/utils/utils.d.ts +1 -10
- package/lib/cjs/utils/utils.js +92 -175
- package/lib/cjs/widgets/CalendarWidget.js +49 -66
- package/lib/cjs/widgets/InputWidget.js +4 -6
- package/lib/cjs/widgets/index.js +1 -1
- package/lib/mjs/CDN.js +12 -12
- package/lib/mjs/Element.d.ts +2 -3
- package/lib/mjs/Element.js +23 -29
- package/lib/mjs/Embed.js +43 -77
- package/lib/mjs/EventEmitter.js +1 -1
- package/lib/mjs/Form.d.ts +341 -371
- package/lib/mjs/Form.js +126 -142
- package/lib/mjs/FormBuilder.d.ts +3 -3
- package/lib/mjs/FormBuilder.js +3 -2
- package/lib/mjs/Formio.js +23 -26
- package/lib/mjs/InlineEmbed.js +17 -23
- package/lib/mjs/PDF.d.ts +0 -1
- package/lib/mjs/PDF.js +15 -18
- package/lib/mjs/PDFBuilder.js +36 -51
- package/lib/mjs/Webform.d.ts +366 -8
- package/lib/mjs/Webform.js +251 -184
- package/lib/mjs/WebformBuilder.js +151 -224
- package/lib/mjs/Wizard.js +64 -94
- package/lib/mjs/WizardBuilder.js +19 -27
- package/lib/mjs/addons/FormioAddon.js +1 -1
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +57 -59
- package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +16 -24
- package/lib/mjs/addons/index.js +3 -3
- package/lib/mjs/components/Components.js +4 -0
- package/lib/mjs/components/_classes/component/Component.form.js +11 -11
- package/lib/mjs/components/_classes/component/Component.js +194 -313
- package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +4 -2
- package/lib/mjs/components/_classes/component/editForm/Component.edit.api.js +5 -5
- package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +11 -9
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -37
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +25 -39
- package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +29 -47
- package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.js +9 -9
- package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +7 -5
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +34 -37
- package/lib/mjs/components/_classes/component/editForm/utils.js +16 -12
- package/lib/mjs/components/_classes/componentModal/ComponentModal.js +2 -2
- package/lib/mjs/components/_classes/field/Field.js +2 -8
- package/lib/mjs/components/_classes/input/Input.js +23 -27
- package/lib/mjs/components/_classes/list/ListComponent.form.js +1 -1
- package/lib/mjs/components/_classes/list/ListComponent.js +18 -27
- package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.js +9 -36
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +13 -32
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -3
- package/lib/mjs/components/_classes/nested/NestedComponent.js +33 -41
- package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +15 -20
- package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +17 -19
- package/lib/mjs/components/address/Address.d.ts +0 -1
- package/lib/mjs/components/address/Address.js +49 -60
- package/lib/mjs/components/address/editForm/Address.edit.data.js +2 -2
- package/lib/mjs/components/address/editForm/Address.edit.display.js +2 -2
- package/lib/mjs/components/address/editForm/Address.edit.provider.js +11 -53
- package/lib/mjs/components/alert/Alert.js +16 -22
- package/lib/mjs/components/button/Button.form.js +1 -1
- package/lib/mjs/components/button/Button.js +42 -65
- package/lib/mjs/components/button/editForm/Button.edit.display.js +9 -49
- package/lib/mjs/components/checkbox/Checkbox.d.ts +1 -1
- package/lib/mjs/components/checkbox/Checkbox.form.js +3 -3
- package/lib/mjs/components/checkbox/Checkbox.js +21 -29
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.js +1 -1
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.js +3 -13
- package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.js +2 -2
- package/lib/mjs/components/columns/Columns.form.js +1 -1
- package/lib/mjs/components/columns/Columns.js +12 -24
- package/lib/mjs/components/columns/editForm/Columns.edit.display.js +17 -17
- package/lib/mjs/components/container/Container.form.js +2 -2
- package/lib/mjs/components/container/Container.js +4 -6
- package/lib/mjs/components/container/editForm/Container.edit.data.js +3 -3
- package/lib/mjs/components/container/editForm/Container.edit.display.js +4 -4
- package/lib/mjs/components/content/Content.form.js +2 -4
- package/lib/mjs/components/content/Content.js +8 -10
- package/lib/mjs/components/content/editForm/Content.edit.display.js +10 -10
- package/lib/mjs/components/currency/Currency.form.js +3 -3
- package/lib/mjs/components/currency/Currency.js +10 -19
- package/lib/mjs/components/currency/editForm/Currency.edit.data.js +5 -5
- package/lib/mjs/components/currency/editForm/Currency.edit.display.js +8 -8
- package/lib/mjs/components/datagrid/DataGrid.form.js +3 -3
- package/lib/mjs/components/datagrid/DataGrid.js +41 -92
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.js +1 -1
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.js +14 -14
- package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.js +3 -3
- package/lib/mjs/components/datamap/DataMap.form.js +2 -2
- package/lib/mjs/components/datamap/DataMap.js +33 -46
- package/lib/mjs/components/datamap/editForm/DataMap.edit.data.js +1 -1
- package/lib/mjs/components/datamap/editForm/DataMap.edit.display.js +8 -8
- package/lib/mjs/components/datetime/DateTime.form.js +5 -5
- package/lib/mjs/components/datetime/DateTime.js +16 -31
- package/lib/mjs/components/datetime/editForm/DateTime.edit.data.js +3 -4
- package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +10 -10
- package/lib/mjs/components/datetime/editForm/DateTime.edit.display.js +17 -22
- package/lib/mjs/components/datetime/editForm/DateTime.edit.time.js +5 -5
- package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +3 -3
- package/lib/mjs/components/day/Day.form.js +5 -5
- package/lib/mjs/components/day/Day.js +58 -148
- package/lib/mjs/components/day/editForm/Day.edit.day.js +9 -13
- package/lib/mjs/components/day/editForm/Day.edit.display.js +7 -7
- package/lib/mjs/components/day/editForm/Day.edit.month.js +8 -12
- package/lib/mjs/components/day/editForm/Day.edit.validation.js +7 -7
- package/lib/mjs/components/day/editForm/Day.edit.year.js +8 -8
- package/lib/mjs/components/editgrid/EditGrid.form.js +2 -2
- package/lib/mjs/components/editgrid/EditGrid.js +92 -140
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.js +2 -2
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -7
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +16 -16
- package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.js +3 -3
- package/lib/mjs/components/email/Email.js +4 -4
- package/lib/mjs/components/email/editForm/Email.edit.display.js +3 -3
- package/lib/mjs/components/email/editForm/Email.edit.validation.js +6 -6
- package/lib/mjs/components/fieldset/Fieldset.form.js +1 -1
- package/lib/mjs/components/fieldset/Fieldset.js +2 -2
- package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +8 -8
- package/lib/mjs/components/file/File.form.js +4 -4
- package/lib/mjs/components/file/File.js +89 -136
- package/lib/mjs/components/file/editForm/File.edit.display.js +5 -9
- package/lib/mjs/components/file/editForm/File.edit.file.js +53 -97
- package/lib/mjs/components/file/editForm/File.edit.validation.js +2 -2
- package/lib/mjs/components/form/Form.form.js +3 -3
- package/lib/mjs/components/form/Form.js +55 -68
- package/lib/mjs/components/form/editForm/Form.edit.data.js +3 -1
- package/lib/mjs/components/form/editForm/Form.edit.display.js +7 -6
- package/lib/mjs/components/form/editForm/Form.edit.form.js +8 -10
- package/lib/mjs/components/hidden/Hidden.form.js +4 -4
- package/lib/mjs/components/hidden/Hidden.js +2 -2
- package/lib/mjs/components/hidden/editForm/Hidden.edit.data.js +3 -3
- package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +10 -10
- package/lib/mjs/components/html/HTML.js +17 -23
- package/lib/mjs/components/html/editForm/HTML.edit.display.js +17 -17
- package/lib/mjs/components/html/editForm/HTML.edit.logic.js +2 -2
- package/lib/mjs/components/number/Number.form.js +3 -3
- package/lib/mjs/components/number/Number.js +12 -28
- package/lib/mjs/components/number/editForm/Number.edit.data.js +3 -3
- package/lib/mjs/components/number/editForm/Number.edit.display.js +4 -4
- package/lib/mjs/components/number/editForm/Number.edit.validation.js +9 -9
- package/lib/mjs/components/panel/Panel.form.js +1 -1
- package/lib/mjs/components/panel/Panel.js +2 -2
- package/lib/mjs/components/panel/editForm/Panel.edit.conditional.js +8 -6
- package/lib/mjs/components/panel/editForm/Panel.edit.display.js +29 -55
- package/lib/mjs/components/password/Password.form.js +3 -3
- package/lib/mjs/components/password/Password.js +2 -5
- package/lib/mjs/components/password/editForm/Password.edit.data.js +11 -11
- package/lib/mjs/components/password/editForm/Password.edit.display.js +3 -3
- package/lib/mjs/components/password/editForm/Password.edit.validation.js +3 -3
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +8 -8
- package/lib/mjs/components/phonenumber/PhoneNumber.js +3 -3
- package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +6 -6
- package/lib/mjs/components/radio/Radio.form.js +3 -3
- package/lib/mjs/components/radio/Radio.js +30 -59
- package/lib/mjs/components/radio/editForm/Radio.edit.data.js +9 -23
- package/lib/mjs/components/radio/editForm/Radio.edit.display.js +6 -6
- package/lib/mjs/components/radio/editForm/Radio.edit.validation.js +2 -2
- package/lib/mjs/components/recaptcha/ReCaptcha.form.js +5 -5
- package/lib/mjs/components/recaptcha/ReCaptcha.js +8 -10
- package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +24 -24
- package/lib/mjs/components/select/Select.form.js +3 -3
- package/lib/mjs/components/select/Select.js +145 -240
- package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +1 -1
- package/lib/mjs/components/select/editForm/Select.edit.data.js +57 -191
- package/lib/mjs/components/select/editForm/Select.edit.display.js +2 -2
- package/lib/mjs/components/select/editForm/Select.edit.validation.js +4 -4
- package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -3
- package/lib/mjs/components/selectboxes/SelectBoxes.js +16 -30
- package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +5 -5
- package/lib/mjs/components/signature/Signature.form.js +3 -3
- package/lib/mjs/components/signature/Signature.js +16 -26
- package/lib/mjs/components/signature/editForm/Signature.edit.display.js +10 -19
- package/lib/mjs/components/survey/Survey.form.js +3 -3
- package/lib/mjs/components/survey/Survey.js +17 -30
- package/lib/mjs/components/survey/editForm/Survey.edit.data.js +11 -23
- package/lib/mjs/components/survey/editForm/Survey.edit.display.js +1 -1
- package/lib/mjs/components/survey/editForm/Survey.edit.validation.js +1 -1
- package/lib/mjs/components/table/Table.form.js +1 -1
- package/lib/mjs/components/table/Table.js +6 -8
- package/lib/mjs/components/table/editForm/Table.edit.display.js +22 -22
- package/lib/mjs/components/tabs/Tabs.form.js +1 -1
- package/lib/mjs/components/tabs/Tabs.js +9 -27
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +17 -21
- package/lib/mjs/components/tags/Tags.form.js +1 -1
- package/lib/mjs/components/tags/Tags.js +12 -28
- package/lib/mjs/components/tags/editForm/Tags.edit.data.js +7 -7
- package/lib/mjs/components/textarea/TextArea.form.js +2 -2
- package/lib/mjs/components/textarea/TextArea.js +51 -75
- package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +72 -96
- package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.js +3 -3
- package/lib/mjs/components/textfield/TextField.form.js +3 -3
- package/lib/mjs/components/textfield/TextField.js +23 -34
- package/lib/mjs/components/textfield/editForm/TextField.edit.data.js +13 -15
- package/lib/mjs/components/textfield/editForm/TextField.edit.display.js +21 -31
- package/lib/mjs/components/textfield/editForm/TextField.edit.validation.js +6 -6
- package/lib/mjs/components/time/Time.js +10 -17
- package/lib/mjs/components/time/editForm/Time.edit.display.js +2 -2
- package/lib/mjs/components/unknown/Unknown.form.js +5 -5
- package/lib/mjs/components/unknown/Unknown.js +2 -2
- package/lib/mjs/components/unknown/editForm/Unknown.edit.display.js +3 -3
- package/lib/mjs/components/url/Url.form.js +3 -3
- package/lib/mjs/components/url/Url.js +2 -2
- package/lib/mjs/components/url/editForm/Url.edit.display.js +3 -3
- package/lib/mjs/components/url/editForm/Url.edit.validation.js +1 -1
- package/lib/mjs/components/well/Well.form.js +1 -1
- package/lib/mjs/components/well/Well.js +2 -2
- package/lib/mjs/components/well/editForm/Well.edit.display.js +10 -10
- package/lib/mjs/formio.form.d.ts +1 -2
- package/lib/mjs/formio.form.js +8 -10
- package/lib/mjs/i18n.d.ts +0 -4
- package/lib/mjs/i18n.js +3 -7
- package/lib/mjs/package.json +1 -1
- package/lib/mjs/pdf.image.d.ts +2 -0
- package/lib/mjs/pdf.image.js +94 -0
- package/lib/mjs/providers/address/AddressProvider.js +5 -8
- package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +3 -3
- package/lib/mjs/providers/address/GoogleAddressProvider.js +13 -24
- package/lib/mjs/providers/processor/fileProcessor.js +1 -3
- package/lib/mjs/providers/storage/azure.js +2 -5
- package/lib/mjs/providers/storage/dropbox.js +5 -4
- package/lib/mjs/providers/storage/googleDrive.js +4 -3
- package/lib/mjs/providers/storage/index.js +1 -1
- package/lib/mjs/providers/storage/indexeddb.js +6 -16
- package/lib/mjs/providers/storage/s3.js +8 -19
- package/lib/mjs/providers/storage/uploadAdapter.js +11 -17
- package/lib/mjs/providers/storage/url.js +11 -13
- package/lib/mjs/providers/storage/xhr.js +9 -17
- package/lib/mjs/templates/index.js +1 -1
- package/lib/mjs/translations/en.d.ts +2 -0
- package/lib/mjs/translations/en.js +9 -7
- package/lib/mjs/utils/ChoicesWrapper.js +2 -2
- package/lib/mjs/utils/builder.js +7 -31
- package/lib/mjs/utils/calendarUtils.js +5 -7
- package/lib/mjs/utils/conditionOperators/ConditionOperator.js +1 -1
- package/lib/mjs/utils/conditionOperators/DateGreaterThan.js +5 -16
- package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +1 -3
- package/lib/mjs/utils/conditionOperators/IsEqualTo.js +6 -10
- package/lib/mjs/utils/conditionOperators/index.js +1 -1
- package/lib/mjs/utils/formUtils.js +2 -2
- package/lib/mjs/utils/i18n.js +1 -7
- package/lib/mjs/utils/index.d.ts +1 -2
- package/lib/mjs/utils/index.js +3 -3
- package/lib/mjs/utils/jsonlogic/operators.d.ts +1 -0
- package/lib/mjs/utils/jsonlogic/operators.js +262 -0
- package/lib/mjs/utils/utils.d.ts +1 -10
- package/lib/mjs/utils/utils.js +91 -178
- package/lib/mjs/widgets/CalendarWidget.js +50 -67
- package/lib/mjs/widgets/InputWidget.js +4 -6
- package/lib/mjs/widgets/index.js +1 -1
- package/package.json +3 -3
- package/lib/cjs/translations/de.d.ts +0 -80
- package/lib/cjs/translations/de.js +0 -81
- package/lib/mjs/translations/de.d.ts +0 -80
- package/lib/mjs/translations/de.js +0 -79
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Formio } from '../Formio';
|
|
2
2
|
import InputWidget from './InputWidget';
|
|
3
|
-
import { convertFormatToFlatpickr, convertFormatToMask, convertFormatToMoment, formatDate, formatOffset, getBrowserInfo, getDateSetting, getLocaleDateFormatInfo, momentDate, zonesLoaded, shouldLoadZones, loadZones
|
|
3
|
+
import { convertFormatToFlatpickr, convertFormatToMask, convertFormatToMoment, formatDate, formatOffset, getBrowserInfo, getDateSetting, getLocaleDateFormatInfo, momentDate, zonesLoaded, shouldLoadZones, loadZones } from '../utils';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
const DEFAULT_FORMAT = 'yyyy-MM-dd hh:mm a';
|
|
7
7
|
const ISO_8601_FORMAT = 'yyyy-MM-ddTHH:mm:ssZ';
|
|
8
8
|
const isIEBrowser = getBrowserInfo().ie;
|
|
9
9
|
export default class CalendarWidget extends InputWidget {
|
|
10
|
+
/* eslint-disable camelcase */
|
|
10
11
|
static get defaultSettings() {
|
|
11
12
|
return {
|
|
12
13
|
type: 'calendar',
|
|
@@ -29,9 +30,10 @@ export default class CalendarWidget extends InputWidget {
|
|
|
29
30
|
timezone: '',
|
|
30
31
|
disable: [],
|
|
31
32
|
minDate: '',
|
|
32
|
-
maxDate: ''
|
|
33
|
+
maxDate: ''
|
|
33
34
|
};
|
|
34
35
|
}
|
|
36
|
+
/* eslint-enable camelcase */
|
|
35
37
|
constructor(settings, component, instance, index) {
|
|
36
38
|
super(settings, component, instance, index);
|
|
37
39
|
// Change the format to map to the settings.
|
|
@@ -73,24 +75,20 @@ export default class CalendarWidget extends InputWidget {
|
|
|
73
75
|
const dateFormatInfo = getLocaleDateFormatInfo(this.settings.language);
|
|
74
76
|
this.defaultFormat = {
|
|
75
77
|
date: dateFormatInfo.dayFirst ? 'd/m/Y ' : 'm/d/Y ',
|
|
76
|
-
time: 'G:i K'
|
|
78
|
+
time: 'G:i K'
|
|
77
79
|
};
|
|
78
80
|
this.closedOn = 0;
|
|
79
|
-
this.valueFormat =
|
|
80
|
-
this.settings.saveAs === 'date'
|
|
81
|
-
? ISO_8601_FORMAT
|
|
82
|
-
: this.settings.dateFormat || ISO_8601_FORMAT;
|
|
81
|
+
this.valueFormat = (this.settings.saveAs === 'date') ? ISO_8601_FORMAT : this.settings.dateFormat || ISO_8601_FORMAT;
|
|
83
82
|
this.valueMomentFormat = convertFormatToMoment(this.valueFormat);
|
|
84
83
|
const isReadOnly = this.settings.readOnly;
|
|
85
84
|
this.settings.minDate = isReadOnly ? null : getDateSetting(this.settings.minDate);
|
|
86
85
|
this.settings.maxDate = isReadOnly ? null : getDateSetting(this.settings.maxDate);
|
|
87
|
-
if (this.settings.maxDate || this.settings.minDate) {
|
|
88
|
-
this.settings.allowInvalidPreload = true;
|
|
89
|
-
}
|
|
90
86
|
this.settings.disable = this.disabledDates;
|
|
91
87
|
this.settings.disableWeekends ? this.settings.disable.push(this.disableWeekends) : '';
|
|
92
88
|
this.settings.disableWeekdays ? this.settings.disable.push(this.disableWeekdays) : '';
|
|
93
89
|
this.settings.disableFunction ? this.settings.disable.push(this.disableFunction) : '';
|
|
90
|
+
this.settings.wasDefaultValueChanged = false;
|
|
91
|
+
this.settings.defaultValue = '';
|
|
94
92
|
this.settings.manualInputValue = '';
|
|
95
93
|
this.settings.isManuallyOverriddenValue = false;
|
|
96
94
|
this.settings.currentValue = '';
|
|
@@ -118,22 +116,23 @@ export default class CalendarWidget extends InputWidget {
|
|
|
118
116
|
this.settings.isManuallyOverriddenValue = false;
|
|
119
117
|
this.emit('update');
|
|
120
118
|
}
|
|
119
|
+
if (this.settings.wasDefaultValueChanged) {
|
|
120
|
+
this.calendar._input.value = this.settings.defaultValue;
|
|
121
|
+
this.settings.wasDefaultValueChanged = false;
|
|
122
|
+
}
|
|
121
123
|
if (this.calendar) {
|
|
122
124
|
this.emit('blur');
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
127
|
Formio.requireLibrary('flatpickr-css', 'flatpickr', [
|
|
126
|
-
{ type: 'styles', src: `${Formio.cdn['flatpickr-formio']}/flatpickr.min.css` }
|
|
128
|
+
{ type: 'styles', src: `${Formio.cdn['flatpickr-formio']}/flatpickr.min.css` }
|
|
127
129
|
], true);
|
|
128
130
|
if (this.component.shortcutButtons) {
|
|
129
131
|
this.component.shortcutButtons = this.component.shortcutButtons.filter((btn) => btn.label && btn.onClick);
|
|
130
132
|
}
|
|
131
133
|
if (this.component.shortcutButtons?.length) {
|
|
132
134
|
Formio.requireLibrary('shortcut-buttons-flatpickr-css', 'ShortcutButtonsPlugin', [
|
|
133
|
-
{
|
|
134
|
-
type: 'styles',
|
|
135
|
-
src: `${Formio.cdn['shortcut-buttons-flatpickr']}/themes/light.min.css`,
|
|
136
|
-
},
|
|
135
|
+
{ type: 'styles', src: `${Formio.cdn['shortcut-buttons-flatpickr']}/themes/light.min.css` }
|
|
137
136
|
], true);
|
|
138
137
|
}
|
|
139
138
|
return superAttach
|
|
@@ -143,7 +142,8 @@ export default class CalendarWidget extends InputWidget {
|
|
|
143
142
|
}
|
|
144
143
|
})
|
|
145
144
|
.then((ShortcutButtonsPlugin) => {
|
|
146
|
-
return Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio.cdn['flatpickr-formio']}/flatpickr.min.js`, true)
|
|
145
|
+
return Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio.cdn['flatpickr-formio']}/flatpickr.min.js`, true)
|
|
146
|
+
.then((Flatpickr) => {
|
|
147
147
|
if (this.component.shortcutButtons?.length && ShortcutButtonsPlugin) {
|
|
148
148
|
this.initShortcutButtonsPlugin(ShortcutButtonsPlugin);
|
|
149
149
|
}
|
|
@@ -172,7 +172,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
172
172
|
}
|
|
173
173
|
get disableWeekends() {
|
|
174
174
|
return function (date) {
|
|
175
|
-
return date.getDay() === 0 || date.getDay() === 6;
|
|
175
|
+
return (date.getDay() === 0 || date.getDay() === 6);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
get disableWeekdays() {
|
|
@@ -180,7 +180,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
180
180
|
}
|
|
181
181
|
get disableFunction() {
|
|
182
182
|
return (date) => this.evaluate(`return ${this.settings.disableFunction}`, {
|
|
183
|
-
date
|
|
183
|
+
date
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
get timezone() {
|
|
@@ -193,7 +193,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
193
193
|
this.addEventListener(suffix, 'click', () => {
|
|
194
194
|
setTimeout(() => {
|
|
195
195
|
if (this.calendar) {
|
|
196
|
-
if (!this.calendar.isOpen && Date.now() - this.closedOn > 200) {
|
|
196
|
+
if (!this.calendar.isOpen && ((Date.now() - this.closedOn) > 200)) {
|
|
197
197
|
this.calendar.open();
|
|
198
198
|
}
|
|
199
199
|
else if (this.calendar.isOpen) {
|
|
@@ -227,12 +227,10 @@ export default class CalendarWidget extends InputWidget {
|
|
|
227
227
|
const dateMask = /\d{4}-\d{2}-\d{2}/g;
|
|
228
228
|
const dates = item.match(dateMask);
|
|
229
229
|
if (dates && dates.length) {
|
|
230
|
-
return dates.length === 1
|
|
231
|
-
|
|
232
|
-
:
|
|
233
|
-
|
|
234
|
-
to: item.match(dateMask)[1],
|
|
235
|
-
};
|
|
230
|
+
return dates.length === 1 ? item.match(dateMask)[0] : {
|
|
231
|
+
from: item.match(dateMask)[0],
|
|
232
|
+
to: item.match(dateMask)[1],
|
|
233
|
+
};
|
|
236
234
|
}
|
|
237
235
|
});
|
|
238
236
|
}
|
|
@@ -249,9 +247,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
249
247
|
return format;
|
|
250
248
|
}
|
|
251
249
|
get dateTimeFormat() {
|
|
252
|
-
return this.settings.useLocaleSettings
|
|
253
|
-
? this.localeFormat
|
|
254
|
-
: convertFormatToFlatpickr(this.dateFormat);
|
|
250
|
+
return this.settings.useLocaleSettings ? this.localeFormat : convertFormatToFlatpickr(this.dateFormat);
|
|
255
251
|
}
|
|
256
252
|
get dateFormat() {
|
|
257
253
|
return _.get(this.settings, 'format', DEFAULT_FORMAT);
|
|
@@ -286,10 +282,10 @@ export default class CalendarWidget extends InputWidget {
|
|
|
286
282
|
if (!(dates[0] instanceof Date)) {
|
|
287
283
|
return 'Invalid Date';
|
|
288
284
|
}
|
|
289
|
-
return this.getDateValue(dates[0], this.valueFormat, this.settings.saveAs === 'date');
|
|
285
|
+
return this.getDateValue(dates[0], this.valueFormat, (this.settings.saveAs === 'date'));
|
|
290
286
|
}
|
|
291
287
|
isValueISO8601(value) {
|
|
292
|
-
return value && typeof value === 'string' && value.match(/-[0-9]{2}T[0-9]{2}:/);
|
|
288
|
+
return value && (typeof value === 'string') && value.match(/-[0-9]{2}T[0-9]{2}:/);
|
|
293
289
|
}
|
|
294
290
|
/**
|
|
295
291
|
* Set the selected date value.
|
|
@@ -297,16 +293,11 @@ export default class CalendarWidget extends InputWidget {
|
|
|
297
293
|
* @returns {void}
|
|
298
294
|
*/
|
|
299
295
|
setValue(value) {
|
|
300
|
-
const saveAsText = this.settings.saveAs === 'text';
|
|
296
|
+
const saveAsText = (this.settings.saveAs === 'text');
|
|
301
297
|
if (!this.calendar) {
|
|
302
|
-
value = value
|
|
303
|
-
? formatDate(this.timezonesUrl, value, convertFormatToMoment(this.settings.format), this.timezone, convertFormatToMoment(this.valueMomentFormat))
|
|
304
|
-
: value;
|
|
298
|
+
value = value ? formatDate(this.timezonesUrl, value, convertFormatToMoment(this.settings.format), this.timezone, convertFormatToMoment(this.valueMomentFormat)) : value;
|
|
305
299
|
return super.setValue(value);
|
|
306
300
|
}
|
|
307
|
-
// If the component is a textfield that does not have timezone information included in the string value then skip
|
|
308
|
-
// the timezone offset
|
|
309
|
-
this.settings.skipOffset = this.component.type === 'textfield' && !hasEncodedTimezone(value);
|
|
310
301
|
const zonesLoading = this.loadZones();
|
|
311
302
|
if (value) {
|
|
312
303
|
if (!saveAsText && this.settings.readOnly && !zonesLoading) {
|
|
@@ -326,9 +317,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
326
317
|
getValueAsString(value, format = '') {
|
|
327
318
|
const inputFormat = format || this.dateFormat;
|
|
328
319
|
const valueFormat = this.calendar ? this.valueFormat : this.settings.dateFormat;
|
|
329
|
-
if (this.settings.saveAs === 'text' &&
|
|
330
|
-
this.componentInstance.parent &&
|
|
331
|
-
!this.settings.readOnly) {
|
|
320
|
+
if (this.settings.saveAs === 'text' && this.componentInstance.parent && !this.settings.readOnly) {
|
|
332
321
|
return moment(value, convertFormatToMoment(valueFormat)).format(convertFormatToMoment(valueFormat));
|
|
333
322
|
}
|
|
334
323
|
return formatDate(this.timezonesUrl, value, inputFormat, this.timezone, convertFormatToMoment(valueFormat));
|
|
@@ -351,7 +340,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
351
340
|
if (typeof value === 'string') {
|
|
352
341
|
return new Date(value);
|
|
353
342
|
}
|
|
354
|
-
return value.map(
|
|
343
|
+
return value.map(val => new Date(val));
|
|
355
344
|
}
|
|
356
345
|
isCalendarElement(element) {
|
|
357
346
|
if (!element) {
|
|
@@ -371,6 +360,14 @@ export default class CalendarWidget extends InputWidget {
|
|
|
371
360
|
this.settings.isManuallyOverriddenValue = true;
|
|
372
361
|
this.settings.currentValue = event.target.value;
|
|
373
362
|
}
|
|
363
|
+
if (event.target.value === '' && this.calendar.selectedDates.length > 0) {
|
|
364
|
+
this.settings.wasDefaultValueChanged = true;
|
|
365
|
+
this.settings.defaultValue = event.target.value;
|
|
366
|
+
this.calendar.clear();
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
this.settings.wasDefaultValueChanged = false;
|
|
370
|
+
}
|
|
374
371
|
});
|
|
375
372
|
// Move input attributes to altInput.
|
|
376
373
|
const labelledbyIds = this.calendar.input.getAttribute('aria-labelledby');
|
|
@@ -381,11 +378,8 @@ export default class CalendarWidget extends InputWidget {
|
|
|
381
378
|
this._input.removeAttribute('id');
|
|
382
379
|
this._input.removeAttribute('aria-labelledby');
|
|
383
380
|
this._input.removeAttribute('aria-required');
|
|
384
|
-
const excludedFromMaskFormats = [
|
|
385
|
-
|
|
386
|
-
];
|
|
387
|
-
if (!this.settings.readOnly &&
|
|
388
|
-
!_.some(excludedFromMaskFormats, (format) => _.includes(this.settings.format, format))) {
|
|
381
|
+
const excludedFromMaskFormats = ['MMMM'];
|
|
382
|
+
if (!this.settings.readOnly && !_.some(excludedFromMaskFormats, format => _.includes(this.settings.format, format))) {
|
|
389
383
|
// Enforce the input mask of the format.
|
|
390
384
|
this.setInputMask(this.calendar._input, convertFormatToMask(this.settings.format));
|
|
391
385
|
}
|
|
@@ -397,9 +391,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
397
391
|
this.calendar._input.removeEventListener('blur', originalBlurListener.handler);
|
|
398
392
|
// Add the same event listener as in the original library, but with workaround for IE11 issue
|
|
399
393
|
this.addEventListener(this.calendar._input, 'blur', (event) => {
|
|
400
|
-
const activeElement = this.settings.shadowRoot
|
|
401
|
-
? this.settings.shadowRoot.activeElement
|
|
402
|
-
: document.activeElement;
|
|
394
|
+
const activeElement = this.settings.shadowRoot ? this.settings.shadowRoot.activeElement : document.activeElement;
|
|
403
395
|
const relatedTarget = event.relatedTarget ? event.relatedTarget : activeElement;
|
|
404
396
|
const isInput = event.target === this.calendar._input;
|
|
405
397
|
if (isInput && !this.isCalendarElement(relatedTarget)) {
|
|
@@ -411,22 +403,15 @@ export default class CalendarWidget extends InputWidget {
|
|
|
411
403
|
}
|
|
412
404
|
// Make sure we commit the value after a blur event occurs.
|
|
413
405
|
this.addEventListener(this.calendar._input, 'blur', (event) => {
|
|
414
|
-
const activeElement = this.settings.shadowRoot
|
|
415
|
-
? this.settings.shadowRoot.activeElement
|
|
416
|
-
: document.activeElement;
|
|
406
|
+
const activeElement = this.settings.shadowRoot ? this.settings.shadowRoot.activeElement : document.activeElement;
|
|
417
407
|
const relatedTarget = event.relatedTarget ? event.relatedTarget : activeElement;
|
|
418
408
|
if (!(isIEBrowser && !relatedTarget) && !this.isCalendarElement(relatedTarget)) {
|
|
419
409
|
const inputValue = this.calendar.input.value;
|
|
420
|
-
const dateValue = inputValue
|
|
421
|
-
? moment(this.calendar.input.value, convertFormatToMoment(this.valueFormat)).toDate()
|
|
422
|
-
: inputValue;
|
|
410
|
+
const dateValue = inputValue ? moment(this.calendar.input.value, convertFormatToMoment(this.valueFormat)).toDate() : inputValue;
|
|
423
411
|
this.calendar.setDate(dateValue, true, this.settings.altFormat);
|
|
424
412
|
}
|
|
425
413
|
else if (!this.calendar.input.value && this.calendar.config.noCalendar) {
|
|
426
|
-
const value = moment({
|
|
427
|
-
hour: this.calendar?.config?.defaultHour,
|
|
428
|
-
minute: this.calendar?.config?.defaultMinute,
|
|
429
|
-
}).toDate();
|
|
414
|
+
const value = moment({ hour: this.calendar?.config?.defaultHour, minute: this.calendar?.config?.defaultMinute }).toDate();
|
|
430
415
|
this.calendar.setDate(value, true, this.settings.format);
|
|
431
416
|
}
|
|
432
417
|
});
|
|
@@ -453,17 +438,15 @@ export default class CalendarWidget extends InputWidget {
|
|
|
453
438
|
}
|
|
454
439
|
initShortcutButtonsPlugin(ShortcutButtonsPlugin) {
|
|
455
440
|
this.settings.plugins = [
|
|
441
|
+
// eslint-disable-next-line new-cap
|
|
456
442
|
ShortcutButtonsPlugin({
|
|
457
|
-
button: this.component.shortcutButtons.map((btn) => ({
|
|
458
|
-
label: btn.label,
|
|
459
|
-
attributes: btn.attribute,
|
|
460
|
-
})),
|
|
443
|
+
button: this.component.shortcutButtons.map((btn) => ({ label: btn.label, attributes: btn.attribute })),
|
|
461
444
|
onClick: (index) => {
|
|
462
445
|
const getValue = this.component.shortcutButtons[index].onClick;
|
|
463
446
|
const date = this.evaluate(getValue, { date: new Date() }, 'date');
|
|
464
447
|
this.calendar.setDate(date, true);
|
|
465
|
-
}
|
|
466
|
-
})
|
|
448
|
+
}
|
|
449
|
+
})
|
|
467
450
|
];
|
|
468
451
|
}
|
|
469
452
|
get componentValue() {
|
|
@@ -476,8 +459,8 @@ export default class CalendarWidget extends InputWidget {
|
|
|
476
459
|
getFlatpickrFormatDate(Flatpickr) {
|
|
477
460
|
return (date, format) => {
|
|
478
461
|
// Only format this if this is the altFormat and the form is readOnly.
|
|
479
|
-
if (this.settings.readOnly && format === this.settings.altFormat) {
|
|
480
|
-
if (!this.settings.enableTime || this.loadZones()
|
|
462
|
+
if (this.settings.readOnly && (format === this.settings.altFormat)) {
|
|
463
|
+
if (!this.settings.enableTime || this.loadZones()) {
|
|
481
464
|
return Flatpickr.formatDate(date, format);
|
|
482
465
|
}
|
|
483
466
|
const currentValue = new Date(this.getValue());
|
|
@@ -3,7 +3,7 @@ import Element from '../Element';
|
|
|
3
3
|
export default class InputWidget extends Element {
|
|
4
4
|
static get defaultSettings() {
|
|
5
5
|
return {
|
|
6
|
-
type: 'input'
|
|
6
|
+
type: 'input'
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
constructor(settings, component, instance, index) {
|
|
@@ -58,11 +58,9 @@ export default class InputWidget extends Element {
|
|
|
58
58
|
data: this.componentInstance.rootValue,
|
|
59
59
|
value: this.componentInstance.dataValue,
|
|
60
60
|
t: this.t.bind(this),
|
|
61
|
-
submission: this.componentInstance.root
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
data: this.componentInstance.rootValue,
|
|
65
|
-
},
|
|
61
|
+
submission: (this.componentInstance.root ? this.componentInstance.root._submission : {
|
|
62
|
+
data: this.componentInstance.rootValue
|
|
63
|
+
}),
|
|
66
64
|
form: this.componentInstance.root ? this.componentInstance.root._form : {},
|
|
67
65
|
options: this.options,
|
|
68
66
|
}, additional));
|
package/lib/mjs/widgets/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/js",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"tippy.js": "^6.3.7",
|
|
92
92
|
"uuid": "^9.0.0",
|
|
93
93
|
"vanilla-picker": "^2.12.3",
|
|
94
|
-
"@formio/
|
|
95
|
-
"@formio/
|
|
94
|
+
"@formio/bootstrap": "^3.1.3",
|
|
95
|
+
"@formio/core": "^2.5.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/node": "^22.15.19",
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
let unsavedRowsError: string;
|
|
3
|
-
let invalidRowsError: string;
|
|
4
|
-
let invalidRowError: string;
|
|
5
|
-
let invalidOption: string;
|
|
6
|
-
let invalidDay: string;
|
|
7
|
-
let complete: string;
|
|
8
|
-
let error: string;
|
|
9
|
-
let errorListHotkey: string;
|
|
10
|
-
let errorsListNavigationMessage: string;
|
|
11
|
-
let submitError: string;
|
|
12
|
-
let required: string;
|
|
13
|
-
let unique: string;
|
|
14
|
-
let array: string;
|
|
15
|
-
let array_nonempty: string;
|
|
16
|
-
let nonarray: string;
|
|
17
|
-
let select: string;
|
|
18
|
-
let pattern: string;
|
|
19
|
-
let minLength: string;
|
|
20
|
-
let maxLength: string;
|
|
21
|
-
let minWords: string;
|
|
22
|
-
let maxWords: string;
|
|
23
|
-
let min: string;
|
|
24
|
-
let max: string;
|
|
25
|
-
let maxDate: string;
|
|
26
|
-
let minDate: string;
|
|
27
|
-
let maxYear: string;
|
|
28
|
-
let minYear: string;
|
|
29
|
-
let minSelectedCount: string;
|
|
30
|
-
let maxSelectedCount: string;
|
|
31
|
-
let invalid_email: string;
|
|
32
|
-
let invalid_url: string;
|
|
33
|
-
let invalid_regex: string;
|
|
34
|
-
let invalid_date: string;
|
|
35
|
-
let invalid_day: string;
|
|
36
|
-
let invalidValueProperty: string;
|
|
37
|
-
let mask: string;
|
|
38
|
-
let valueIsNotAvailable: string;
|
|
39
|
-
let stripe: string;
|
|
40
|
-
let month: string;
|
|
41
|
-
let day: string;
|
|
42
|
-
let year: string;
|
|
43
|
-
let january: string;
|
|
44
|
-
let february: string;
|
|
45
|
-
let march: string;
|
|
46
|
-
let april: string;
|
|
47
|
-
let may: string;
|
|
48
|
-
let june: string;
|
|
49
|
-
let july: string;
|
|
50
|
-
let august: string;
|
|
51
|
-
let september: string;
|
|
52
|
-
let october: string;
|
|
53
|
-
let november: string;
|
|
54
|
-
let december: string;
|
|
55
|
-
let next: string;
|
|
56
|
-
let previous: string;
|
|
57
|
-
let cancel: string;
|
|
58
|
-
let submit: string;
|
|
59
|
-
let confirmCancel: string;
|
|
60
|
-
let saveDraftInstanceError: string;
|
|
61
|
-
let saveDraftAuthError: string;
|
|
62
|
-
let restoreDraftInstanceError: string;
|
|
63
|
-
let saveDraftError: string;
|
|
64
|
-
let restoreDraftError: string;
|
|
65
|
-
let time: string;
|
|
66
|
-
let cancelButtonAriaLabel: string;
|
|
67
|
-
let previousButtonAriaLabel: string;
|
|
68
|
-
let nextButtonAriaLabel: string;
|
|
69
|
-
let submitButtonAriaLabel: string;
|
|
70
|
-
let reCaptchaTokenValidationError: string;
|
|
71
|
-
let reCaptchaTokenNotSpecifiedError: string;
|
|
72
|
-
let apiKey: string;
|
|
73
|
-
let typeRemaining: string;
|
|
74
|
-
let typeCount: string;
|
|
75
|
-
let requiredDayField: string;
|
|
76
|
-
let requiredDayEmpty: string;
|
|
77
|
-
let requiredMonthField: string;
|
|
78
|
-
let requiredYearField: string;
|
|
79
|
-
}
|
|
80
|
-
export default _default;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
unsavedRowsError: 'Bitte speichern Sie alle Zeilen, bevor Sie fortfahren.',
|
|
5
|
-
invalidRowsError: 'Bitte korrigieren Sie ungültige Zeilen, bevor Sie fortfahren.',
|
|
6
|
-
invalidRowError: 'Ungültige Zeile. Bitte korrigieren oder löschen Sie diese.',
|
|
7
|
-
invalidOption: '{{field}} ist ein ungültiger Wert.',
|
|
8
|
-
invalidDay: '{{field}} ist kein gültiger Tag.',
|
|
9
|
-
complete: 'Übermittlung abgeschlossen',
|
|
10
|
-
error: 'Bitte beheben Sie die folgenden Fehler vor dem Absenden.',
|
|
11
|
-
errorListHotkey: 'Drücken Sie Strg + Alt + X, um zur Fehlerliste zurückzukehren.',
|
|
12
|
-
errorsListNavigationMessage: 'Klicken Sie, um zum Feld mit folgendem Fehler zu navigieren.',
|
|
13
|
-
submitError: 'Bitte überprüfen Sie das Formular und korrigieren Sie alle Fehler vor dem Absenden.',
|
|
14
|
-
required: '{{field}} ist erforderlich',
|
|
15
|
-
unique: '{{field}} muss eindeutig sein',
|
|
16
|
-
array: '{{field}} muss ein Array sein',
|
|
17
|
-
array_nonempty: '{{field}} muss ein nicht-leeres Array sein',
|
|
18
|
-
nonarray: '{{field}} darf kein Array sein',
|
|
19
|
-
select: '{{field}} enthält eine ungültige Auswahl',
|
|
20
|
-
pattern: '{{field}} entspricht nicht dem Muster {{pattern}}',
|
|
21
|
-
minLength: '{{field}} muss mindestens {{length}} Zeichen enthalten.',
|
|
22
|
-
maxLength: '{{field}} darf maximal {{length}} Zeichen enthalten.',
|
|
23
|
-
minWords: '{{field}} muss mindestens {{length}} Wörter enthalten.',
|
|
24
|
-
maxWords: '{{field}} darf maximal {{length}} Wörter enthalten.',
|
|
25
|
-
min: '{{field}} darf nicht kleiner als {{min}} sein.',
|
|
26
|
-
max: '{{field}} darf nicht größer als {{max}} sein.',
|
|
27
|
-
maxDate: '{{field}} darf kein Datum nach dem {{maxDate}} enthalten',
|
|
28
|
-
minDate: '{{field}} darf kein Datum vor dem {{minDate}} enthalten',
|
|
29
|
-
maxYear: '{{field}} darf kein Jahr größer als {{maxYear}} enthalten',
|
|
30
|
-
minYear: '{{field}} darf kein Jahr kleiner als {{minYear}} enthalten',
|
|
31
|
-
minSelectedCount: 'Sie müssen mindestens {{minCount}} Elemente auswählen',
|
|
32
|
-
maxSelectedCount: 'Sie dürfen maximal {{maxCount}} Elemente auswählen',
|
|
33
|
-
invalid_email: '{{field}} muss eine gültige E-Mail-Adresse sein.',
|
|
34
|
-
invalid_url: '{{field}} muss eine gültige URL sein.',
|
|
35
|
-
invalid_regex: '{{field}} entspricht nicht dem Muster {{regex}}.',
|
|
36
|
-
invalid_date: '{{field}} ist kein gültiges Datum.',
|
|
37
|
-
invalid_day: '{{field}} ist kein gültiger Tag.',
|
|
38
|
-
invalidValueProperty: 'Ungültige Werteigenschaft',
|
|
39
|
-
mask: '{{field}} entspricht nicht der Maske.',
|
|
40
|
-
valueIsNotAvailable: '{{ field }} ist ein ungültiger Wert.',
|
|
41
|
-
stripe: '{{stripe}}',
|
|
42
|
-
month: 'Monat',
|
|
43
|
-
day: 'Tag',
|
|
44
|
-
year: 'Jahr',
|
|
45
|
-
january: 'Januar',
|
|
46
|
-
february: 'Februar',
|
|
47
|
-
march: 'März',
|
|
48
|
-
april: 'April',
|
|
49
|
-
may: 'Mai',
|
|
50
|
-
june: 'Juni',
|
|
51
|
-
july: 'Juli',
|
|
52
|
-
august: 'August',
|
|
53
|
-
september: 'September',
|
|
54
|
-
october: 'Oktober',
|
|
55
|
-
november: 'November',
|
|
56
|
-
december: 'Dezember',
|
|
57
|
-
next: 'Weiter',
|
|
58
|
-
previous: 'Zurück',
|
|
59
|
-
cancel: 'Abbrechen',
|
|
60
|
-
submit: 'Formular absenden',
|
|
61
|
-
confirmCancel: 'Möchten Sie wirklich abbrechen?',
|
|
62
|
-
saveDraftInstanceError: 'Entwurf kann nicht gespeichert werden, da keine Formio-Instanz vorhanden ist.',
|
|
63
|
-
saveDraftAuthError: 'Entwurf kann nicht gespeichert werden, solange kein Benutzer authentifiziert ist.',
|
|
64
|
-
restoreDraftInstanceError: 'Entwurf kann nicht wiederhergestellt werden, da keine Formio-Instanz vorhanden ist.',
|
|
65
|
-
saveDraftError: 'Entwurf konnte nicht gespeichert werden.',
|
|
66
|
-
restoreDraftError: 'Entwurf konnte nicht wiederhergestellt werden.',
|
|
67
|
-
time: 'Ungültige Zeitangabe',
|
|
68
|
-
cancelButtonAriaLabel: 'Abbrechen-Schaltfläche. Klicken Sie hier, um das Formular zurückzusetzen',
|
|
69
|
-
previousButtonAriaLabel: 'Zurück-Schaltfläche. Klicken Sie hier, um zur vorherigen Registerkarte zu gelangen',
|
|
70
|
-
nextButtonAriaLabel: 'Weiter-Schaltfläche. Klicken Sie hier, um zur nächsten Registerkarte zu gelangen',
|
|
71
|
-
submitButtonAriaLabel: 'Formular absenden-Schaltfläche. Klicken Sie hier, um das Formular abzusenden',
|
|
72
|
-
reCaptchaTokenValidationError: 'ReCAPTCHA: Fehler bei der Token-Validierung',
|
|
73
|
-
reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token ist in der Übermittlung nicht angegeben',
|
|
74
|
-
apiKey: 'API-Schlüssel ist nicht eindeutig: {{key}}',
|
|
75
|
-
typeRemaining: '{{ remaining }} {{ type }} verbleibend.',
|
|
76
|
-
typeCount: '{{ count }} {{ type }}',
|
|
77
|
-
requiredDayField: '{{ field }} ist erforderlich',
|
|
78
|
-
requiredDayEmpty: '{{ field }} ist erforderlich',
|
|
79
|
-
requiredMonthField: '{{ field }} ist erforderlich',
|
|
80
|
-
requiredYearField: '{{ field }} ist erforderlich',
|
|
81
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
let unsavedRowsError: string;
|
|
3
|
-
let invalidRowsError: string;
|
|
4
|
-
let invalidRowError: string;
|
|
5
|
-
let invalidOption: string;
|
|
6
|
-
let invalidDay: string;
|
|
7
|
-
let complete: string;
|
|
8
|
-
let error: string;
|
|
9
|
-
let errorListHotkey: string;
|
|
10
|
-
let errorsListNavigationMessage: string;
|
|
11
|
-
let submitError: string;
|
|
12
|
-
let required: string;
|
|
13
|
-
let unique: string;
|
|
14
|
-
let array: string;
|
|
15
|
-
let array_nonempty: string;
|
|
16
|
-
let nonarray: string;
|
|
17
|
-
let select: string;
|
|
18
|
-
let pattern: string;
|
|
19
|
-
let minLength: string;
|
|
20
|
-
let maxLength: string;
|
|
21
|
-
let minWords: string;
|
|
22
|
-
let maxWords: string;
|
|
23
|
-
let min: string;
|
|
24
|
-
let max: string;
|
|
25
|
-
let maxDate: string;
|
|
26
|
-
let minDate: string;
|
|
27
|
-
let maxYear: string;
|
|
28
|
-
let minYear: string;
|
|
29
|
-
let minSelectedCount: string;
|
|
30
|
-
let maxSelectedCount: string;
|
|
31
|
-
let invalid_email: string;
|
|
32
|
-
let invalid_url: string;
|
|
33
|
-
let invalid_regex: string;
|
|
34
|
-
let invalid_date: string;
|
|
35
|
-
let invalid_day: string;
|
|
36
|
-
let invalidValueProperty: string;
|
|
37
|
-
let mask: string;
|
|
38
|
-
let valueIsNotAvailable: string;
|
|
39
|
-
let stripe: string;
|
|
40
|
-
let month: string;
|
|
41
|
-
let day: string;
|
|
42
|
-
let year: string;
|
|
43
|
-
let january: string;
|
|
44
|
-
let february: string;
|
|
45
|
-
let march: string;
|
|
46
|
-
let april: string;
|
|
47
|
-
let may: string;
|
|
48
|
-
let june: string;
|
|
49
|
-
let july: string;
|
|
50
|
-
let august: string;
|
|
51
|
-
let september: string;
|
|
52
|
-
let october: string;
|
|
53
|
-
let november: string;
|
|
54
|
-
let december: string;
|
|
55
|
-
let next: string;
|
|
56
|
-
let previous: string;
|
|
57
|
-
let cancel: string;
|
|
58
|
-
let submit: string;
|
|
59
|
-
let confirmCancel: string;
|
|
60
|
-
let saveDraftInstanceError: string;
|
|
61
|
-
let saveDraftAuthError: string;
|
|
62
|
-
let restoreDraftInstanceError: string;
|
|
63
|
-
let saveDraftError: string;
|
|
64
|
-
let restoreDraftError: string;
|
|
65
|
-
let time: string;
|
|
66
|
-
let cancelButtonAriaLabel: string;
|
|
67
|
-
let previousButtonAriaLabel: string;
|
|
68
|
-
let nextButtonAriaLabel: string;
|
|
69
|
-
let submitButtonAriaLabel: string;
|
|
70
|
-
let reCaptchaTokenValidationError: string;
|
|
71
|
-
let reCaptchaTokenNotSpecifiedError: string;
|
|
72
|
-
let apiKey: string;
|
|
73
|
-
let typeRemaining: string;
|
|
74
|
-
let typeCount: string;
|
|
75
|
-
let requiredDayField: string;
|
|
76
|
-
let requiredDayEmpty: string;
|
|
77
|
-
let requiredMonthField: string;
|
|
78
|
-
let requiredYearField: string;
|
|
79
|
-
}
|
|
80
|
-
export default _default;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
unsavedRowsError: 'Bitte speichern Sie alle Zeilen, bevor Sie fortfahren.',
|
|
3
|
-
invalidRowsError: 'Bitte korrigieren Sie ungültige Zeilen, bevor Sie fortfahren.',
|
|
4
|
-
invalidRowError: 'Ungültige Zeile. Bitte korrigieren oder löschen Sie diese.',
|
|
5
|
-
invalidOption: '{{field}} ist ein ungültiger Wert.',
|
|
6
|
-
invalidDay: '{{field}} ist kein gültiger Tag.',
|
|
7
|
-
complete: 'Übermittlung abgeschlossen',
|
|
8
|
-
error: 'Bitte beheben Sie die folgenden Fehler vor dem Absenden.',
|
|
9
|
-
errorListHotkey: 'Drücken Sie Strg + Alt + X, um zur Fehlerliste zurückzukehren.',
|
|
10
|
-
errorsListNavigationMessage: 'Klicken Sie, um zum Feld mit folgendem Fehler zu navigieren.',
|
|
11
|
-
submitError: 'Bitte überprüfen Sie das Formular und korrigieren Sie alle Fehler vor dem Absenden.',
|
|
12
|
-
required: '{{field}} ist erforderlich',
|
|
13
|
-
unique: '{{field}} muss eindeutig sein',
|
|
14
|
-
array: '{{field}} muss ein Array sein',
|
|
15
|
-
array_nonempty: '{{field}} muss ein nicht-leeres Array sein',
|
|
16
|
-
nonarray: '{{field}} darf kein Array sein',
|
|
17
|
-
select: '{{field}} enthält eine ungültige Auswahl',
|
|
18
|
-
pattern: '{{field}} entspricht nicht dem Muster {{pattern}}',
|
|
19
|
-
minLength: '{{field}} muss mindestens {{length}} Zeichen enthalten.',
|
|
20
|
-
maxLength: '{{field}} darf maximal {{length}} Zeichen enthalten.',
|
|
21
|
-
minWords: '{{field}} muss mindestens {{length}} Wörter enthalten.',
|
|
22
|
-
maxWords: '{{field}} darf maximal {{length}} Wörter enthalten.',
|
|
23
|
-
min: '{{field}} darf nicht kleiner als {{min}} sein.',
|
|
24
|
-
max: '{{field}} darf nicht größer als {{max}} sein.',
|
|
25
|
-
maxDate: '{{field}} darf kein Datum nach dem {{maxDate}} enthalten',
|
|
26
|
-
minDate: '{{field}} darf kein Datum vor dem {{minDate}} enthalten',
|
|
27
|
-
maxYear: '{{field}} darf kein Jahr größer als {{maxYear}} enthalten',
|
|
28
|
-
minYear: '{{field}} darf kein Jahr kleiner als {{minYear}} enthalten',
|
|
29
|
-
minSelectedCount: 'Sie müssen mindestens {{minCount}} Elemente auswählen',
|
|
30
|
-
maxSelectedCount: 'Sie dürfen maximal {{maxCount}} Elemente auswählen',
|
|
31
|
-
invalid_email: '{{field}} muss eine gültige E-Mail-Adresse sein.',
|
|
32
|
-
invalid_url: '{{field}} muss eine gültige URL sein.',
|
|
33
|
-
invalid_regex: '{{field}} entspricht nicht dem Muster {{regex}}.',
|
|
34
|
-
invalid_date: '{{field}} ist kein gültiges Datum.',
|
|
35
|
-
invalid_day: '{{field}} ist kein gültiger Tag.',
|
|
36
|
-
invalidValueProperty: 'Ungültige Werteigenschaft',
|
|
37
|
-
mask: '{{field}} entspricht nicht der Maske.',
|
|
38
|
-
valueIsNotAvailable: '{{ field }} ist ein ungültiger Wert.',
|
|
39
|
-
stripe: '{{stripe}}',
|
|
40
|
-
month: 'Monat',
|
|
41
|
-
day: 'Tag',
|
|
42
|
-
year: 'Jahr',
|
|
43
|
-
january: 'Januar',
|
|
44
|
-
february: 'Februar',
|
|
45
|
-
march: 'März',
|
|
46
|
-
april: 'April',
|
|
47
|
-
may: 'Mai',
|
|
48
|
-
june: 'Juni',
|
|
49
|
-
july: 'Juli',
|
|
50
|
-
august: 'August',
|
|
51
|
-
september: 'September',
|
|
52
|
-
october: 'Oktober',
|
|
53
|
-
november: 'November',
|
|
54
|
-
december: 'Dezember',
|
|
55
|
-
next: 'Weiter',
|
|
56
|
-
previous: 'Zurück',
|
|
57
|
-
cancel: 'Abbrechen',
|
|
58
|
-
submit: 'Formular absenden',
|
|
59
|
-
confirmCancel: 'Möchten Sie wirklich abbrechen?',
|
|
60
|
-
saveDraftInstanceError: 'Entwurf kann nicht gespeichert werden, da keine Formio-Instanz vorhanden ist.',
|
|
61
|
-
saveDraftAuthError: 'Entwurf kann nicht gespeichert werden, solange kein Benutzer authentifiziert ist.',
|
|
62
|
-
restoreDraftInstanceError: 'Entwurf kann nicht wiederhergestellt werden, da keine Formio-Instanz vorhanden ist.',
|
|
63
|
-
saveDraftError: 'Entwurf konnte nicht gespeichert werden.',
|
|
64
|
-
restoreDraftError: 'Entwurf konnte nicht wiederhergestellt werden.',
|
|
65
|
-
time: 'Ungültige Zeitangabe',
|
|
66
|
-
cancelButtonAriaLabel: 'Abbrechen-Schaltfläche. Klicken Sie hier, um das Formular zurückzusetzen',
|
|
67
|
-
previousButtonAriaLabel: 'Zurück-Schaltfläche. Klicken Sie hier, um zur vorherigen Registerkarte zu gelangen',
|
|
68
|
-
nextButtonAriaLabel: 'Weiter-Schaltfläche. Klicken Sie hier, um zur nächsten Registerkarte zu gelangen',
|
|
69
|
-
submitButtonAriaLabel: 'Formular absenden-Schaltfläche. Klicken Sie hier, um das Formular abzusenden',
|
|
70
|
-
reCaptchaTokenValidationError: 'ReCAPTCHA: Fehler bei der Token-Validierung',
|
|
71
|
-
reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token ist in der Übermittlung nicht angegeben',
|
|
72
|
-
apiKey: 'API-Schlüssel ist nicht eindeutig: {{key}}',
|
|
73
|
-
typeRemaining: '{{ remaining }} {{ type }} verbleibend.',
|
|
74
|
-
typeCount: '{{ count }} {{ type }}',
|
|
75
|
-
requiredDayField: '{{ field }} ist erforderlich',
|
|
76
|
-
requiredDayEmpty: '{{ field }} ist erforderlich',
|
|
77
|
-
requiredMonthField: '{{ field }} ist erforderlich',
|
|
78
|
-
requiredYearField: '{{ field }} ist erforderlich',
|
|
79
|
-
};
|