@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
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
/* eslint-disable max-statements */
|
|
6
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
7
8
|
const Component_1 = __importDefault(require("../_classes/component/Component"));
|
|
8
9
|
const ComponentModal_1 = __importDefault(require("../_classes/componentModal/ComponentModal"));
|
|
@@ -30,20 +31,18 @@ class FormComponent extends Component_1.default {
|
|
|
30
31
|
group: 'premium',
|
|
31
32
|
documentation: '/userguide/form-building/premium-components#nested-form',
|
|
32
33
|
weight: 110,
|
|
33
|
-
schema: FormComponent.schema()
|
|
34
|
+
schema: FormComponent.schema()
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
static savedValueTypes() {
|
|
37
|
-
return [
|
|
38
|
-
utils_1.componentValueTypes.object,
|
|
39
|
-
];
|
|
38
|
+
return [utils_1.componentValueTypes.object];
|
|
40
39
|
}
|
|
41
40
|
init() {
|
|
42
41
|
super.init();
|
|
43
42
|
this.formObj = {
|
|
44
43
|
display: this.component.display,
|
|
45
44
|
settings: this.component.settings,
|
|
46
|
-
components: this.component.components
|
|
45
|
+
components: this.component.components
|
|
47
46
|
};
|
|
48
47
|
this.valueChanged = false;
|
|
49
48
|
this.subForm = null;
|
|
@@ -95,11 +94,9 @@ class FormComponent extends Component_1.default {
|
|
|
95
94
|
delete this.component.formRevision;
|
|
96
95
|
}
|
|
97
96
|
// Add revision version if set.
|
|
98
|
-
if (this.component.revision ||
|
|
99
|
-
this.component.
|
|
100
|
-
this.component.
|
|
101
|
-
this.component.formRevision === 0 ||
|
|
102
|
-
this.component.revisionId) {
|
|
97
|
+
if (this.component.revision || this.component.revision === 0 ||
|
|
98
|
+
this.component.formRevision || this.component.formRevision === 0
|
|
99
|
+
|| this.component.revisionId) {
|
|
103
100
|
this.setFormRevision(this.component.revisionId || this.component.revision || this.component.formRevision);
|
|
104
101
|
}
|
|
105
102
|
return this.createSubForm();
|
|
@@ -150,6 +147,7 @@ class FormComponent extends Component_1.default {
|
|
|
150
147
|
}
|
|
151
148
|
return this.subForm.getComponent(path);
|
|
152
149
|
}
|
|
150
|
+
/* eslint-disable max-statements */
|
|
153
151
|
getSubOptions(options = {}) {
|
|
154
152
|
options.events = this.createEmitter();
|
|
155
153
|
// Make sure to not show the submit button in wizards in the nested forms.
|
|
@@ -220,6 +218,7 @@ class FormComponent extends Component_1.default {
|
|
|
220
218
|
options.parent = this;
|
|
221
219
|
return options;
|
|
222
220
|
}
|
|
221
|
+
/* eslint-enable max-statements */
|
|
223
222
|
render() {
|
|
224
223
|
if (this.builderMode) {
|
|
225
224
|
return super.render(this.component.label || 'Nested form');
|
|
@@ -244,24 +243,24 @@ class FormComponent extends Component_1.default {
|
|
|
244
243
|
return 'No data provided';
|
|
245
244
|
}
|
|
246
245
|
if (options === null || options === void 0 ? void 0 : options.email) {
|
|
247
|
-
let result = `
|
|
246
|
+
let result = (`
|
|
248
247
|
<table border="1" style="width:100%">
|
|
249
248
|
<tbody>
|
|
250
|
-
|
|
249
|
+
`);
|
|
251
250
|
this.everyComponent((component) => {
|
|
252
251
|
if (component.isInputComponent && component.visible && !component.skipInEmail) {
|
|
253
|
-
result += `
|
|
252
|
+
result += (`
|
|
254
253
|
<tr>
|
|
255
254
|
<th style="padding: 5px 10px;">${component.label}</th>
|
|
256
255
|
<td style="width:100%;padding:5px 10px;">${component.getView(component.dataValue, options)}</td>
|
|
257
256
|
</tr>
|
|
258
|
-
|
|
257
|
+
`);
|
|
259
258
|
}
|
|
260
259
|
}, Object.assign(Object.assign({}, options), { fromRoot: true }));
|
|
261
|
-
result += `
|
|
260
|
+
result += (`
|
|
262
261
|
</tbody>
|
|
263
262
|
</table>
|
|
264
|
-
|
|
263
|
+
`);
|
|
265
264
|
return result;
|
|
266
265
|
}
|
|
267
266
|
if (lodash_1.default.isEmpty(value)) {
|
|
@@ -274,7 +273,8 @@ class FormComponent extends Component_1.default {
|
|
|
274
273
|
if (this.builderMode) {
|
|
275
274
|
return super.attach(element);
|
|
276
275
|
}
|
|
277
|
-
return super.attach(element)
|
|
276
|
+
return super.attach(element)
|
|
277
|
+
.then(() => {
|
|
278
278
|
if (this.isSubFormLazyLoad() && !this.hasLoadedForm && !this.subFormLoading) {
|
|
279
279
|
this.createSubForm(true);
|
|
280
280
|
}
|
|
@@ -282,10 +282,11 @@ class FormComponent extends Component_1.default {
|
|
|
282
282
|
return Promise.resolve();
|
|
283
283
|
}
|
|
284
284
|
return this.subFormReady.then(() => {
|
|
285
|
+
var _a;
|
|
285
286
|
this.empty(element);
|
|
286
287
|
if (this.options.builder) {
|
|
287
288
|
this.setContent(element, this.ce('div', {
|
|
288
|
-
class: 'text-muted text-center p-2'
|
|
289
|
+
class: 'text-muted text-center p-2'
|
|
289
290
|
}, this.text(this.formObj.title)));
|
|
290
291
|
return;
|
|
291
292
|
}
|
|
@@ -293,19 +294,16 @@ class FormComponent extends Component_1.default {
|
|
|
293
294
|
const postAttach = () => {
|
|
294
295
|
if (!this.builderMode && this.component.modalEdit) {
|
|
295
296
|
const modalShouldBeOpened = this.componentModal ? this.componentModal.isOpened : false;
|
|
296
|
-
const currentValue = modalShouldBeOpened
|
|
297
|
-
? this.componentModal.currentValue
|
|
298
|
-
: this.dataValue;
|
|
297
|
+
const currentValue = modalShouldBeOpened ? this.componentModal.currentValue : this.dataValue;
|
|
299
298
|
this.componentModal = new ComponentModal_1.default(this, element, modalShouldBeOpened, currentValue, this._referenceAttributeName);
|
|
300
|
-
this.subForm.element =
|
|
301
|
-
this.componentModal.refs.componentContent || this.subForm.element;
|
|
299
|
+
this.subForm.element = this.componentModal.refs.componentContent || this.subForm.element;
|
|
302
300
|
this.setOpenModalElement();
|
|
303
301
|
}
|
|
304
302
|
this.calculateValue();
|
|
305
303
|
};
|
|
306
304
|
if (this.subForm) {
|
|
307
305
|
if (this.isNestedWizard) {
|
|
308
|
-
element = this.root.element;
|
|
306
|
+
element = (_a = this.root) === null || _a === void 0 ? void 0 : _a.element;
|
|
309
307
|
}
|
|
310
308
|
return this.subForm.attach(element).then(() => {
|
|
311
309
|
this.valueChanged = this.hasSetValue;
|
|
@@ -335,24 +333,24 @@ class FormComponent extends Component_1.default {
|
|
|
335
333
|
return this._currentForm;
|
|
336
334
|
}
|
|
337
335
|
get hasLoadedForm() {
|
|
338
|
-
return
|
|
339
|
-
this.formObj.components
|
|
340
|
-
Array.isArray(this.formObj.components)
|
|
341
|
-
this.formObj.components.length
|
|
336
|
+
return this.formObj
|
|
337
|
+
&& this.formObj.components
|
|
338
|
+
&& Array.isArray(this.formObj.components)
|
|
339
|
+
&& this.formObj.components.length;
|
|
342
340
|
}
|
|
343
341
|
set currentForm(instance) {
|
|
344
342
|
this._currentForm = instance;
|
|
345
343
|
if (!this.subForm) {
|
|
346
344
|
return;
|
|
347
345
|
}
|
|
348
|
-
this.subForm.getComponents().forEach(
|
|
346
|
+
this.subForm.getComponents().forEach(component => {
|
|
349
347
|
component.currentForm = this;
|
|
350
348
|
});
|
|
351
349
|
}
|
|
352
350
|
get isRevisionChanged() {
|
|
353
|
-
return
|
|
354
|
-
lodash_1.default.isNumber(this.formObj._vid)
|
|
355
|
-
this.formObj._vid !== this.subFormRevision
|
|
351
|
+
return lodash_1.default.isNumber(this.subFormRevision)
|
|
352
|
+
&& lodash_1.default.isNumber(this.formObj._vid)
|
|
353
|
+
&& this.formObj._vid !== this.subFormRevision;
|
|
356
354
|
}
|
|
357
355
|
get subFormData() {
|
|
358
356
|
var _a;
|
|
@@ -389,7 +387,7 @@ class FormComponent extends Component_1.default {
|
|
|
389
387
|
updateSubWizards(subForm) {
|
|
390
388
|
var _a, _b;
|
|
391
389
|
if (this.isNestedWizard && ((_a = this.root) === null || _a === void 0 ? void 0 : _a.subWizards) && ((_b = subForm === null || subForm === void 0 ? void 0 : subForm._form) === null || _b === void 0 ? void 0 : _b.display) === 'wizard') {
|
|
392
|
-
const existedForm = this.root.subWizards.findIndex(
|
|
390
|
+
const existedForm = this.root.subWizards.findIndex(form => form.component.form === this.component.form);
|
|
393
391
|
if (existedForm !== -1) {
|
|
394
392
|
this.root.subWizards[existedForm] = this;
|
|
395
393
|
}
|
|
@@ -414,8 +412,7 @@ class FormComponent extends Component_1.default {
|
|
|
414
412
|
* @returns {*} - The subform instance.
|
|
415
413
|
*/
|
|
416
414
|
createSubForm(fromAttach, beforeSubmit) {
|
|
417
|
-
this.subFormReady = this.loadSubForm(fromAttach, beforeSubmit)
|
|
418
|
-
.then((form) => {
|
|
415
|
+
this.subFormReady = this.loadSubForm(fromAttach, beforeSubmit).then((form) => {
|
|
419
416
|
if (!form) {
|
|
420
417
|
return;
|
|
421
418
|
}
|
|
@@ -428,8 +425,7 @@ class FormComponent extends Component_1.default {
|
|
|
428
425
|
this.subForm.destroy();
|
|
429
426
|
}
|
|
430
427
|
// Render the form.
|
|
431
|
-
return new Form_1.default(form, this.getSubOptions()).ready
|
|
432
|
-
.then((instance) => {
|
|
428
|
+
return (new Form_1.default(form, this.getSubOptions())).ready.then((instance) => {
|
|
433
429
|
var _a, _b;
|
|
434
430
|
this.subForm = instance;
|
|
435
431
|
this.subForm.currentForm = this;
|
|
@@ -438,10 +434,11 @@ class FormComponent extends Component_1.default {
|
|
|
438
434
|
this.component.components = (_a = this.subForm._form) === null || _a === void 0 ? void 0 : _a.components;
|
|
439
435
|
this.component.display = (_b = this.subForm._form) === null || _b === void 0 ? void 0 : _b.display;
|
|
440
436
|
this.subForm.on('change', () => {
|
|
437
|
+
var _a;
|
|
441
438
|
if (this.subForm && !this.shouldConditionallyClear()) {
|
|
442
439
|
this.dataValue = this.subForm.getValue();
|
|
443
|
-
this.triggerChange({
|
|
444
|
-
noEmit: true
|
|
440
|
+
(_a = this.triggerChange) === null || _a === void 0 ? void 0 : _a.call(this, {
|
|
441
|
+
noEmit: true
|
|
445
442
|
});
|
|
446
443
|
}
|
|
447
444
|
});
|
|
@@ -453,12 +450,10 @@ class FormComponent extends Component_1.default {
|
|
|
453
450
|
this.valueChanged = this.hasSetValue;
|
|
454
451
|
this.onChange();
|
|
455
452
|
return this.subForm;
|
|
456
|
-
})
|
|
457
|
-
.catch((err) => {
|
|
453
|
+
}).catch((err) => {
|
|
458
454
|
console.log(err);
|
|
459
455
|
});
|
|
460
|
-
})
|
|
461
|
-
.then((subForm) => {
|
|
456
|
+
}).then((subForm) => {
|
|
462
457
|
this.updateSubWizards(subForm);
|
|
463
458
|
return subForm;
|
|
464
459
|
});
|
|
@@ -481,17 +476,11 @@ class FormComponent extends Component_1.default {
|
|
|
481
476
|
loadSubForm(fromAttach, beforeSubmit) {
|
|
482
477
|
var _a, _b, _c, _d, _e;
|
|
483
478
|
const loadHiddenForm = beforeSubmit && !this.component.clearOnHide;
|
|
484
|
-
if (this.builderMode ||
|
|
485
|
-
(this.conditionallyHidden() && !loadHiddenForm) ||
|
|
486
|
-
(this.isSubFormLazyLoad() && !fromAttach)) {
|
|
479
|
+
if (this.builderMode || (this.conditionallyHidden() && !loadHiddenForm) || (this.isSubFormLazyLoad() && !fromAttach)) {
|
|
487
480
|
return Promise.resolve();
|
|
488
481
|
}
|
|
489
|
-
if (this.hasLoadedForm &&
|
|
490
|
-
!this.
|
|
491
|
-
!(this.options.pdf &&
|
|
492
|
-
((_a = this.component) === null || _a === void 0 ? void 0 : _a.useOriginalRevision) &&
|
|
493
|
-
lodash_1.default.isNull(this.subForm) &&
|
|
494
|
-
!this.subFormLoading)) {
|
|
482
|
+
if (this.hasLoadedForm && !this.isRevisionChanged &&
|
|
483
|
+
!(this.options.pdf && ((_a = this.component) === null || _a === void 0 ? void 0 : _a.useOriginalRevision) && lodash_1.default.isNull(this.subForm) && !this.subFormLoading)) {
|
|
495
484
|
// Pass config down to sub forms.
|
|
496
485
|
if (this.root && this.root.form && this.root.form.config && !this.formObj.config) {
|
|
497
486
|
this.formObj.config = this.root.form.config;
|
|
@@ -506,8 +495,7 @@ class FormComponent extends Component_1.default {
|
|
|
506
495
|
project: this.root.formio.projectUrl,
|
|
507
496
|
}
|
|
508
497
|
: {};
|
|
509
|
-
return new Formio_1.Formio(this.formSrc, options)
|
|
510
|
-
.loadForm({ params: { live: 1 } })
|
|
498
|
+
return (new Formio_1.Formio(this.formSrc, options)).loadForm({ params: { live: 1 } })
|
|
511
499
|
.then((formObj) => {
|
|
512
500
|
this.formObj = formObj;
|
|
513
501
|
if (this.options.pdf && this.component.useOriginalRevision) {
|
|
@@ -562,7 +550,8 @@ class FormComponent extends Component_1.default {
|
|
|
562
550
|
get shouldSubmit() {
|
|
563
551
|
return (this.subFormReady &&
|
|
564
552
|
(!this.component.hasOwnProperty('reference') || this.component.reference) &&
|
|
565
|
-
!this.shouldConditionallyClear()
|
|
553
|
+
!this.shouldConditionallyClear() &&
|
|
554
|
+
!(this.component.hidden && this.component.clearOnHide));
|
|
566
555
|
}
|
|
567
556
|
/**
|
|
568
557
|
* Returns the data for the subform.
|
|
@@ -589,15 +578,12 @@ class FormComponent extends Component_1.default {
|
|
|
589
578
|
}
|
|
590
579
|
this.subForm.nosubmit = false;
|
|
591
580
|
this.subForm.submitted = true;
|
|
592
|
-
return this.subForm
|
|
593
|
-
.submitForm({}, true)
|
|
594
|
-
.then((result) => {
|
|
581
|
+
return this.subForm.submitForm({}, true).then(result => {
|
|
595
582
|
this.subForm.loading = false;
|
|
596
583
|
this.subForm.showAllErrors = false;
|
|
597
584
|
this.dataValue = result.submission;
|
|
598
585
|
return this.dataValue;
|
|
599
|
-
})
|
|
600
|
-
.catch((err) => {
|
|
586
|
+
}).catch(err => {
|
|
601
587
|
this.subForm.showAllErrors = true;
|
|
602
588
|
this.subForm.onSubmissionError(err);
|
|
603
589
|
return Promise.reject(err);
|
|
@@ -666,10 +652,10 @@ class FormComponent extends Component_1.default {
|
|
|
666
652
|
this.valueChanged = true;
|
|
667
653
|
if (this.subForm) {
|
|
668
654
|
const revisionPath = submission._frid ? '_frid' : '_vid';
|
|
669
|
-
const shouldLoadOriginalRevision = this.useOriginalRevision
|
|
670
|
-
(lodash_1.default.isNumber(submission[revisionPath]) || lodash_1.default.isNumber(submission._fvid))
|
|
671
|
-
lodash_1.default.isNumber((_a = this.subForm.form) === null || _a === void 0 ? void 0 : _a[revisionPath])
|
|
672
|
-
submission._fvid !== this.subForm.form[revisionPath];
|
|
655
|
+
const shouldLoadOriginalRevision = this.useOriginalRevision
|
|
656
|
+
&& (lodash_1.default.isNumber(submission[revisionPath]) || lodash_1.default.isNumber(submission._fvid))
|
|
657
|
+
&& lodash_1.default.isNumber((_a = this.subForm.form) === null || _a === void 0 ? void 0 : _a[revisionPath])
|
|
658
|
+
&& submission._fvid !== this.subForm.form[revisionPath];
|
|
673
659
|
if (shouldLoadOriginalRevision) {
|
|
674
660
|
this.setFormRevision(submission._frid || submission._fvid);
|
|
675
661
|
this.createSubForm().then(() => {
|
|
@@ -684,7 +670,10 @@ class FormComponent extends Component_1.default {
|
|
|
684
670
|
}
|
|
685
671
|
setSubFormValue(submission, flags) {
|
|
686
672
|
var _a, _b, _c, _d;
|
|
687
|
-
const shouldLoadSubmissionById = submission
|
|
673
|
+
const shouldLoadSubmissionById = submission
|
|
674
|
+
&& submission._id
|
|
675
|
+
&& this.subForm.formio
|
|
676
|
+
&& lodash_1.default.isEmpty(submission.data);
|
|
688
677
|
const shouldLoadDraftById = this.options.saveDraft && lodash_1.default.isEmpty(submission.data) && lodash_1.default.get(this.subForm, 'submission._id');
|
|
689
678
|
if (shouldLoadSubmissionById || shouldLoadDraftById) {
|
|
690
679
|
const formId = submission.form || this.formObj.form || this.component.form;
|
|
@@ -751,12 +740,13 @@ class FormComponent extends Component_1.default {
|
|
|
751
740
|
*/
|
|
752
741
|
get isNestedWizard() {
|
|
753
742
|
var _a, _b, _c, _d, _e;
|
|
754
|
-
return ((
|
|
743
|
+
return ((_b = (_a = this.subForm) === null || _a === void 0 ? void 0 : _a._form) === null || _b === void 0 ? void 0 : _b.display) === 'wizard' && ((_e = (_d = (_c = this.parent) === null || _c === void 0 ? void 0 : _c.parent) === null || _d === void 0 ? void 0 : _d._form) === null || _e === void 0 ? void 0 : _e.display) === 'wizard';
|
|
755
744
|
}
|
|
756
745
|
get visible() {
|
|
757
746
|
return super.visible;
|
|
758
747
|
}
|
|
759
748
|
set visible(value) {
|
|
749
|
+
var _a;
|
|
760
750
|
const isNestedWizard = this.isNestedWizard;
|
|
761
751
|
if (this._visible !== value) {
|
|
762
752
|
this._visible = value;
|
|
@@ -775,7 +765,7 @@ class FormComponent extends Component_1.default {
|
|
|
775
765
|
isNestedWizard ? this.rebuild() : this.redraw();
|
|
776
766
|
}
|
|
777
767
|
if (!value && isNestedWizard) {
|
|
778
|
-
this.root.redraw();
|
|
768
|
+
(_a = this.root) === null || _a === void 0 ? void 0 : _a.redraw();
|
|
779
769
|
}
|
|
780
770
|
}
|
|
781
771
|
get parentVisible() {
|
|
@@ -846,7 +836,7 @@ class FormComponent extends Component_1.default {
|
|
|
846
836
|
deleteValue() {
|
|
847
837
|
super.setValue(null, {
|
|
848
838
|
noUpdateEvent: true,
|
|
849
|
-
noDefault: true
|
|
839
|
+
noDefault: true
|
|
850
840
|
});
|
|
851
841
|
this.unset();
|
|
852
842
|
}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const utils_1 = __importDefault(require("../../_classes/component/editForm/utils"));
|
|
7
|
+
/* eslint-disable max-len */
|
|
7
8
|
exports.default = [
|
|
8
9
|
utils_1.default.javaScriptValue('Custom Default Value', 'customDefaultValue', 'customDefaultValue', 120, '<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>', '<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),
|
|
9
10
|
utils_1.default.javaScriptValue('Calculated Value', 'calculateValue', 'calculateValue', 130, '<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>', '<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="https://help.form.io/userguide/form-building/logic-and-conditions#calculated-values" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),
|
|
@@ -14,6 +15,7 @@ exports.default = [
|
|
|
14
15
|
key: 'clearOnHide',
|
|
15
16
|
defaultValue: true,
|
|
16
17
|
tooltip: 'When a field is hidden, clear the value.',
|
|
17
|
-
input: true
|
|
18
|
+
input: true
|
|
18
19
|
},
|
|
19
20
|
];
|
|
21
|
+
/* eslint-enable max-len */
|
|
@@ -3,26 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = [
|
|
4
4
|
{
|
|
5
5
|
key: 'labelPosition',
|
|
6
|
-
ignore: true
|
|
6
|
+
ignore: true
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
key: 'placeholder',
|
|
10
|
-
ignore: true
|
|
10
|
+
ignore: true
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
key: 'description',
|
|
14
|
-
ignore: true
|
|
14
|
+
ignore: true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
key: 'tooltip',
|
|
18
|
-
ignore: true
|
|
18
|
+
ignore: true
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
key: 'tabIndex',
|
|
22
|
-
ignore: true
|
|
22
|
+
ignore: true
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
key: 'autofocus',
|
|
26
|
-
ignore: true
|
|
26
|
+
ignore: true
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
+
/* eslint-enable max-len */
|
|
@@ -6,7 +6,7 @@ exports.default = [
|
|
|
6
6
|
input: true,
|
|
7
7
|
dataSrc: 'url',
|
|
8
8
|
data: {
|
|
9
|
-
url: '/form?limit=1000000&select=_id,title,display'
|
|
9
|
+
url: '/form?limit=1000000&select=_id,title,display'
|
|
10
10
|
},
|
|
11
11
|
searchField: 'title__regex',
|
|
12
12
|
template: '<span>{{ item.title }}</span>',
|
|
@@ -32,12 +32,10 @@ exports.default = [
|
|
|
32
32
|
tooltip: 'if it is checked, the subform is loaded after navigation to the page with this component within the wizard.',
|
|
33
33
|
input: true,
|
|
34
34
|
customConditional({ instance, data }) {
|
|
35
|
-
var _a, _b, _c;
|
|
36
|
-
const
|
|
37
|
-
const formInfo = formComp === null || formComp === void 0 ? void 0 : formComp.defaultDownloadedResources.find((res) => res._id === data.form);
|
|
35
|
+
var _a, _b, _c, _d;
|
|
36
|
+
const formInfo = (_b = (_a = instance.root) === null || _a === void 0 ? void 0 : _a.getComponent('form')) === null || _b === void 0 ? void 0 : _b.defaultDownloadedResources.find(res => res._id === data.form);
|
|
38
37
|
const displayMode = 'wizard';
|
|
39
|
-
return ((
|
|
40
|
-
((data.form && !formInfo) || (formInfo && formInfo.display !== displayMode)));
|
|
38
|
+
return ((_d = (_c = instance.options) === null || _c === void 0 ? void 0 : _c.editForm) === null || _d === void 0 ? void 0 : _d.display) === displayMode && formInfo && formInfo.display !== displayMode;
|
|
41
39
|
},
|
|
42
40
|
},
|
|
43
41
|
{
|
|
@@ -45,7 +43,7 @@ exports.default = [
|
|
|
45
43
|
input: true,
|
|
46
44
|
dataSrc: 'url',
|
|
47
45
|
data: {
|
|
48
|
-
url: '/form/{{ data.form }}/v'
|
|
46
|
+
url: '/form/{{ data.form }}/v'
|
|
49
47
|
},
|
|
50
48
|
searchField: 'title__regex',
|
|
51
49
|
template: '<span>{{ item._vid }}</span>',
|
|
@@ -56,7 +54,7 @@ exports.default = [
|
|
|
56
54
|
weight: 10,
|
|
57
55
|
lazyLoad: true,
|
|
58
56
|
tooltip: 'You can lock the nested form to a specific revision by choosing the revision number here.',
|
|
59
|
-
customConditional: 'show = !!data.form'
|
|
57
|
+
customConditional: 'show = !!data.form'
|
|
60
58
|
},
|
|
61
59
|
{
|
|
62
60
|
type: 'checkbox',
|
|
@@ -64,7 +62,7 @@ exports.default = [
|
|
|
64
62
|
weight: 19,
|
|
65
63
|
key: 'useOriginalRevision',
|
|
66
64
|
label: 'Use Original Revision while Submissions Viewing',
|
|
67
|
-
tooltip: 'Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission.'
|
|
65
|
+
tooltip: 'Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission.'
|
|
68
66
|
},
|
|
69
67
|
{
|
|
70
68
|
type: 'checkbox',
|
|
@@ -72,6 +70,6 @@ exports.default = [
|
|
|
72
70
|
weight: 20,
|
|
73
71
|
key: 'reference',
|
|
74
72
|
label: 'Save as reference',
|
|
75
|
-
tooltip: 'Using this option will save this field as a reference and link its value to the value of the origin record.'
|
|
76
|
-
}
|
|
73
|
+
tooltip: 'Using this option will save this field as a reference and link its value to the value of the origin record.'
|
|
74
|
+
}
|
|
77
75
|
];
|
|
@@ -15,19 +15,19 @@ function default_1(...extend) {
|
|
|
15
15
|
return Components_1.default.baseEditForm([
|
|
16
16
|
{
|
|
17
17
|
key: 'display',
|
|
18
|
-
components: Hidden_edit_display_1.default
|
|
18
|
+
components: Hidden_edit_display_1.default
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
key: 'data',
|
|
22
|
-
components: Hidden_edit_data_1.default
|
|
22
|
+
components: Hidden_edit_data_1.default
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
key: 'validation',
|
|
26
|
-
ignore: true
|
|
26
|
+
ignore: true
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
key: 'conditional',
|
|
30
|
-
ignore: true
|
|
30
|
+
ignore: true
|
|
31
31
|
},
|
|
32
32
|
], ...extend);
|
|
33
33
|
}
|
|
@@ -9,7 +9,7 @@ class HiddenComponent extends Input_1.default {
|
|
|
9
9
|
return Input_1.default.schema({
|
|
10
10
|
type: 'hidden',
|
|
11
11
|
tableView: false,
|
|
12
|
-
inputType: 'hidden'
|
|
12
|
+
inputType: 'hidden'
|
|
13
13
|
}, ...extend);
|
|
14
14
|
}
|
|
15
15
|
static get builderInfo() {
|
|
@@ -20,7 +20,7 @@ class HiddenComponent extends Input_1.default {
|
|
|
20
20
|
weight: 0,
|
|
21
21
|
documentation: '/userguide/form-building/data-components#hidden',
|
|
22
22
|
showPreview: false,
|
|
23
|
-
schema: HiddenComponent.schema()
|
|
23
|
+
schema: HiddenComponent.schema()
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
get defaultSchema() {
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = [
|
|
4
4
|
{
|
|
5
5
|
key: 'multiple',
|
|
6
|
-
ignore: true
|
|
6
|
+
ignore: true
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
key: 'clearOnHide',
|
|
10
|
-
ignore: true
|
|
10
|
+
ignore: true
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
key: 'allowCalculateOverride',
|
|
14
|
-
ignore: true
|
|
14
|
+
ignore: true
|
|
15
15
|
},
|
|
16
16
|
];
|
|
@@ -3,42 +3,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = [
|
|
4
4
|
{
|
|
5
5
|
key: 'labelPosition',
|
|
6
|
-
ignore: true
|
|
6
|
+
ignore: true
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
key: 'placeholder',
|
|
10
|
-
ignore: true
|
|
10
|
+
ignore: true
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
key: 'description',
|
|
14
|
-
ignore: true
|
|
14
|
+
ignore: true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
key: 'tooltip',
|
|
18
|
-
ignore: true
|
|
18
|
+
ignore: true
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
key: 'hideLabel',
|
|
22
|
-
ignore: true
|
|
22
|
+
ignore: true
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
key: 'autofocus',
|
|
26
|
-
ignore: true
|
|
26
|
+
ignore: true
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
key: 'tabindex',
|
|
30
|
-
ignore: true
|
|
30
|
+
ignore: true
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
key: 'hidden',
|
|
34
|
-
ignore: true
|
|
34
|
+
ignore: true
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
key: 'tableView',
|
|
38
|
-
ignore: true
|
|
38
|
+
ignore: true
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
key: 'disabled',
|
|
42
|
-
ignore: true
|
|
42
|
+
ignore: true
|
|
43
43
|
},
|
|
44
44
|
];
|
|
@@ -14,7 +14,7 @@ class HTMLComponent extends Component_1.default {
|
|
|
14
14
|
attrs: [],
|
|
15
15
|
content: '',
|
|
16
16
|
input: false,
|
|
17
|
-
persistent: false
|
|
17
|
+
persistent: false
|
|
18
18
|
}, ...extend);
|
|
19
19
|
}
|
|
20
20
|
static get builderInfo() {
|
|
@@ -25,7 +25,7 @@ class HTMLComponent extends Component_1.default {
|
|
|
25
25
|
weight: 0,
|
|
26
26
|
documentation: '/userguide/form-building/layout-components#html-element',
|
|
27
27
|
showPreview: false,
|
|
28
|
-
schema: HTMLComponent.schema()
|
|
28
|
+
schema: HTMLComponent.schema()
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
static savedValueTypes() {
|
|
@@ -43,34 +43,28 @@ class HTMLComponent extends Component_1.default {
|
|
|
43
43
|
return ` ${this.component.content} `;
|
|
44
44
|
}
|
|
45
45
|
const submission = lodash_1.default.get(this.root, 'submission', {});
|
|
46
|
-
const content = this.component.content
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
})
|
|
53
|
-
: '';
|
|
46
|
+
const content = this.component.content ? this.interpolate(this.sanitize(this.component.content, this.shouldSanitizeValue), {
|
|
47
|
+
metadata: submission.metadata || {},
|
|
48
|
+
submission: submission,
|
|
49
|
+
data: this.rootValue,
|
|
50
|
+
row: this.data
|
|
51
|
+
}) : '';
|
|
54
52
|
return content;
|
|
55
53
|
}
|
|
56
54
|
get singleTags() {
|
|
57
|
-
return [
|
|
58
|
-
'br',
|
|
59
|
-
'img',
|
|
60
|
-
'hr',
|
|
61
|
-
];
|
|
55
|
+
return ['br', 'img', 'hr'];
|
|
62
56
|
}
|
|
63
57
|
checkRefreshOn(changed) {
|
|
64
58
|
super.checkRefreshOn(changed);
|
|
65
59
|
const isVisible = () => {
|
|
66
60
|
return this.hasCondition() ? !this.conditionallyHidden() : !this.component.hidden;
|
|
67
61
|
};
|
|
68
|
-
const shouldSetContent = !this.builderMode
|
|
69
|
-
this.component.refreshOnChange
|
|
70
|
-
this.element
|
|
71
|
-
!lodash_1.default.isUndefined(changed)
|
|
72
|
-
((lodash_1.default.isBoolean(changed) && changed) || !lodash_1.default.isEmpty(changed))
|
|
73
|
-
isVisible();
|
|
62
|
+
const shouldSetContent = !this.builderMode
|
|
63
|
+
&& this.component.refreshOnChange
|
|
64
|
+
&& this.element
|
|
65
|
+
&& !lodash_1.default.isUndefined(changed)
|
|
66
|
+
&& ((lodash_1.default.isBoolean(changed) && changed) || !lodash_1.default.isEmpty(changed))
|
|
67
|
+
&& isVisible();
|
|
74
68
|
if (shouldSetContent) {
|
|
75
69
|
this.setContent(this.element, this.renderContent());
|
|
76
70
|
}
|
|
@@ -87,8 +81,8 @@ class HTMLComponent extends Component_1.default {
|
|
|
87
81
|
metadata: submission.metadata || {},
|
|
88
82
|
submission: submission,
|
|
89
83
|
data: this.rootValue,
|
|
90
|
-
row: this.data
|
|
91
|
-
})
|
|
84
|
+
row: this.data
|
|
85
|
+
})
|
|
92
86
|
};
|
|
93
87
|
}),
|
|
94
88
|
content: this.content,
|