comand-component-library 4.1.6 → 4.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +2037 -2017
- package/dist/comand-component-library.umd.cjs +26 -26
- package/dist/style.css +1 -1
- package/package.json +2 -3
- package/src/ComponentLibrary.vue +1 -6
- package/src/assets/styles/component-library-global-styles.scss +22 -17
- package/src/components/CmdBasicForm.vue +30 -19
- package/src/components/CmdFakeSelect.vue +3 -3
- package/src/components/CmdFancyBox.vue +68 -69
- package/src/components/CmdFormElement.vue +1 -1
- package/src/components/CmdInputGroup.vue +3 -3
- package/src/components/CmdPageFooter.vue +10 -2
- package/src/components/CmdTooltipForFormElements.vue +18 -13
- package/src/mixins/CmdFormElement/DefaultMessageProperties.js +0 -1
- package/src/mixins/FieldValidation.js +8 -12
@@ -10,7 +10,7 @@
|
|
10
10
|
novalidate="novalidate"
|
11
11
|
v-bind="cmdForm"
|
12
12
|
:legend="legend"
|
13
|
-
:submitButton="
|
13
|
+
:submitButton="submitButtonProperties"
|
14
14
|
:formAction="formAction"
|
15
15
|
>
|
16
16
|
<div v-if="configuration.salutation" class="flex-container no-flex order-male-female">
|
@@ -23,6 +23,7 @@
|
|
23
23
|
inputValue="m"
|
24
24
|
:replaceInputType="configuration.salutation?.replaceInputType"
|
25
25
|
v-model="formData.salutation.value"
|
26
|
+
:i18n="i18n"
|
26
27
|
@validate="onValidate"
|
27
28
|
/>
|
28
29
|
<!-- end cmd-form-element -->
|
@@ -36,6 +37,7 @@
|
|
36
37
|
inputValue="f"
|
37
38
|
:replaceInputType="configuration.salutation?.replaceInputType"
|
38
39
|
v-model="formData.salutation.value"
|
40
|
+
:i18n="i18n"
|
39
41
|
@validate="onValidate"
|
40
42
|
/>
|
41
43
|
<!-- end cmd-form-element -->
|
@@ -58,6 +60,7 @@
|
|
58
60
|
:placeholder="getMessage('basic_form.placeholder.last_name')"
|
59
61
|
v-model="formData.lastName.value"
|
60
62
|
:status="formData.lastName.error ? 'error' : ''"
|
63
|
+
:i18n="i18n"
|
61
64
|
@validate="onValidate"
|
62
65
|
/>
|
63
66
|
<!-- end cmd-form-element -->
|
@@ -74,6 +77,7 @@
|
|
74
77
|
:name="configuration.firstName?.name || 'first-name'"
|
75
78
|
v-model="formData.firstName.value"
|
76
79
|
:status="formData.firstName.error ? 'error' : ''"
|
80
|
+
:i18n="i18n"
|
77
81
|
@validate="onValidate"
|
78
82
|
/>
|
79
83
|
<!-- end cmd-form-element -->
|
@@ -91,6 +95,7 @@
|
|
91
95
|
:name="configuration.email?.name || 'email'"
|
92
96
|
v-model="formData.email.value"
|
93
97
|
:status="formData.email.error ? 'error' : ''"
|
98
|
+
:i18n="i18n"
|
94
99
|
@validate="onValidate"
|
95
100
|
/>
|
96
101
|
<!-- end cmd-form-element -->
|
@@ -107,6 +112,7 @@
|
|
107
112
|
:required="configuration.phone?.required"
|
108
113
|
:name="configuration.phone?.name || 'phone'"
|
109
114
|
:status="formData.phone.error ? 'error' : ''"
|
115
|
+
:i18n="i18n"
|
110
116
|
@validate="onValidate"
|
111
117
|
/>
|
112
118
|
<!-- end cmd-form-element -->
|
@@ -123,6 +129,7 @@
|
|
123
129
|
:name="configuration.country?.name || 'country'"
|
124
130
|
v-model="formData.country.value"
|
125
131
|
:status="formData.country.error ? 'error' : ''"
|
132
|
+
:i18n="i18n"
|
126
133
|
@validate="onValidate"
|
127
134
|
@update:modelValue="onCountrySelect"
|
128
135
|
/>
|
@@ -139,6 +146,7 @@
|
|
139
146
|
:name="configuration.streetNo?.name || 'street-no'"
|
140
147
|
v-model="formData.streetNo.value"
|
141
148
|
:status="formData.streetNo.error ? 'error' : ''"
|
149
|
+
:i18n="i18n"
|
142
150
|
@validate="onValidate"
|
143
151
|
/>
|
144
152
|
<!-- end cmd-form-element -->
|
@@ -154,6 +162,7 @@
|
|
154
162
|
:name="configuration.pobox?.name || 'pobox'"
|
155
163
|
v-model="formData.pobox.value"
|
156
164
|
:status="formData.pobox.error ? 'error' : ''"
|
165
|
+
:i18n="i18n"
|
157
166
|
@validate="onValidate"
|
158
167
|
/>
|
159
168
|
<!-- end cmd-form-element -->
|
@@ -171,6 +180,7 @@
|
|
171
180
|
:name="configuration.zip?.name || 'zip'"
|
172
181
|
v-model="formData.zip.value"
|
173
182
|
:status="formData.zip.error ? 'error' : ''"
|
183
|
+
:i18n="i18n"
|
174
184
|
@validate="onValidate"
|
175
185
|
/>
|
176
186
|
<!-- end cmd-form-element -->
|
@@ -186,6 +196,7 @@
|
|
186
196
|
:name="configuration.city?.name || 'city'"
|
187
197
|
v-model="formData.city.value"
|
188
198
|
:status="formData.city.error ? 'error' : ''"
|
199
|
+
:i18n="i18n"
|
189
200
|
@validate="onValidate"
|
190
201
|
/>
|
191
202
|
<!-- end cmd-form-element -->
|
@@ -202,6 +213,7 @@
|
|
202
213
|
:name="configuration.additionalAddressInfo?.name || 'additional-address-info'"
|
203
214
|
v-model="formData.additionalAddressInfo.value"
|
204
215
|
:status="formData.additionalAddressInfo.error ? 'error' : ''"
|
216
|
+
:i18n="i18n"
|
205
217
|
@validate="onValidate"
|
206
218
|
/>
|
207
219
|
<!-- end cmd-form-element -->
|
@@ -219,6 +231,7 @@
|
|
219
231
|
:maxlength="configuration.userMessage?.maxLength"
|
220
232
|
v-model="formData.userMessage.value"
|
221
233
|
:status="formData.userMessage.error ? 'error' : ''"
|
234
|
+
:i18n="i18n"
|
222
235
|
@validate="onValidate"
|
223
236
|
/>
|
224
237
|
<!-- end cmd-form-element -->
|
@@ -237,6 +250,7 @@
|
|
237
250
|
:replaceInputType="configuration.acceptPrivacy?.replaceInputType"
|
238
251
|
v-model="formData.acceptPrivacy.value"
|
239
252
|
:status="formData.acceptPrivacy.error ? 'error' : ''"
|
253
|
+
:i18n="i18n"
|
240
254
|
@validate="onValidate">
|
241
255
|
<template v-slot:labeltext>
|
242
256
|
<span ref="dataPrivacy" v-html="getMessage('basic_form.labeltext.data_privacy')"></span>
|
@@ -252,7 +266,6 @@
|
|
252
266
|
// import mixins
|
253
267
|
import I18n from "../mixins/I18n.js"
|
254
268
|
import DefaultMessageProperties from "../mixins/CmdBasicForm/DefaultMessageProperties.js"
|
255
|
-
import FieldValidation from "../mixins/FieldValidation.js"
|
256
269
|
import {ContactFormValidator} from "../utils/ContactFormValidation.js"
|
257
270
|
|
258
271
|
import {openFancyBox} from "./CmdFancyBox.vue"
|
@@ -261,8 +274,7 @@ export default {
|
|
261
274
|
emits: ["submit"],
|
262
275
|
mixins: [
|
263
276
|
I18n,
|
264
|
-
DefaultMessageProperties
|
265
|
-
FieldValidation
|
277
|
+
DefaultMessageProperties
|
266
278
|
],
|
267
279
|
inject: {
|
268
280
|
editModeContext: {
|
@@ -413,27 +425,14 @@ export default {
|
|
413
425
|
*/
|
414
426
|
submitButton: {
|
415
427
|
type: Object,
|
416
|
-
|
417
|
-
return {
|
418
|
-
iconClass: "icon-message-send",
|
419
|
-
text: "Send mail",
|
420
|
-
type: "submit",
|
421
|
-
position: "belowFieldset",
|
422
|
-
primary: true
|
423
|
-
}
|
424
|
-
}
|
428
|
+
required: false
|
425
429
|
},
|
426
430
|
/**
|
427
431
|
* properties for CmdHeadline-component
|
428
432
|
*/
|
429
433
|
cmdHeadline: {
|
430
434
|
type: Object,
|
431
|
-
|
432
|
-
return {
|
433
|
-
headlineText: "Basic Form",
|
434
|
-
headlineLevel: 3
|
435
|
-
}
|
436
|
-
}
|
435
|
+
required: false
|
437
436
|
},
|
438
437
|
/**
|
439
438
|
* properties for CmdForm-component
|
@@ -449,6 +448,18 @@ export default {
|
|
449
448
|
openFancyBox({url: event.target.getAttribute("href")})
|
450
449
|
})
|
451
450
|
},
|
451
|
+
computed: {
|
452
|
+
submitButtonProperties() {
|
453
|
+
return {
|
454
|
+
iconClass: "icon-message-send",
|
455
|
+
text: "Send mail",
|
456
|
+
type: "submit",
|
457
|
+
position: "belowFieldset",
|
458
|
+
primary: true,
|
459
|
+
...this.submitButton
|
460
|
+
}
|
461
|
+
}
|
462
|
+
},
|
452
463
|
methods: {
|
453
464
|
onSubmit(event) {
|
454
465
|
this.onValidate()
|
@@ -359,11 +359,11 @@ export default {
|
|
359
359
|
|
360
360
|
// set default-tooltip if customTooltip is not set
|
361
361
|
if (this.validationStatus === 'error') {
|
362
|
-
return this.getMessage("cmdformelement.
|
362
|
+
return this.getMessage("cmdformelement.validation_tooltip.an_error_occurred")
|
363
363
|
} else if (this.validationStatus === 'success') {
|
364
|
-
return this.getMessage("cmdformelement.
|
364
|
+
return this.getMessage("cmdformelement.validation_tooltip.information_is_filled_correctly")
|
365
365
|
}
|
366
|
-
return this.getMessage("cmdformelement.
|
366
|
+
return this.getMessage("cmdformelement.validation_tooltip.open_field_requirements")
|
367
367
|
},
|
368
368
|
// get the displayed option name
|
369
369
|
optionName() {
|
@@ -10,53 +10,52 @@
|
|
10
10
|
<CmdHeadline
|
11
11
|
v-if="cmdHeadline?.headlineText"
|
12
12
|
v-bind="cmdHeadline"
|
13
|
-
:id="htmlId"
|
14
13
|
/>
|
15
14
|
<!-- end CmdHeadline -->
|
16
15
|
|
17
16
|
<!-- begin button-wrapper -->
|
18
17
|
<div
|
19
|
-
v-if="(
|
18
|
+
v-if="(fancyboxOptionsProperties.printButtons?.color || fancyboxOptionsProperties.printButtons?.grayscale) || fancyboxOptionsProperties.closeIcon"
|
20
19
|
class="button-wrapper no-flex"
|
21
20
|
> <!-- begin print buttons -->
|
22
|
-
<a v-if="showPrintButtons &&
|
21
|
+
<a v-if="showPrintButtons && fancyboxOptionsProperties.printButtons?.color"
|
23
22
|
href="#"
|
24
23
|
class="button print-color"
|
25
|
-
:title="
|
24
|
+
:title="fancyboxOptionsProperties.printButtons.color?.tooltip"
|
26
25
|
@click.prevent="printInGrayscale = false">
|
27
26
|
<!-- begin CmdIcon -->
|
28
27
|
<CmdIcon
|
29
|
-
:iconClass="
|
30
|
-
:type="
|
28
|
+
:iconClass="fancyboxOptionsProperties.printButtons.color?.iconClass"
|
29
|
+
:type="fancyboxOptionsProperties.printButtons.color?.iconType"
|
31
30
|
/>
|
32
31
|
<!-- end CmdIcon -->
|
33
32
|
</a>
|
34
|
-
<a v-if="showPrintButtons &&
|
33
|
+
<a v-if="showPrintButtons && fancyboxOptionsProperties.printButtons?.grayscale"
|
35
34
|
href="#"
|
36
35
|
class="button print-grayscale"
|
37
|
-
:title="
|
36
|
+
:title="fancyboxOptionsProperties.printButtons.grayscale?.tooltip"
|
38
37
|
@click.prevent="printInGrayscale = true">
|
39
38
|
<!-- begin CmdIcon -->
|
40
39
|
<CmdIcon
|
41
|
-
:iconClass="
|
42
|
-
:type="
|
40
|
+
:iconClass="fancyboxOptionsProperties.printButtons.grayscale?.iconClass"
|
41
|
+
:type="fancyboxOptionsProperties.printButtons.grayscale?.iconType"
|
43
42
|
/>
|
44
43
|
<!-- end CmdIcon -->
|
45
44
|
</a>
|
46
45
|
<!-- end print buttons -->
|
47
46
|
|
48
47
|
<!-- begin close-icon -->
|
49
|
-
<a v-if="
|
48
|
+
<a v-if="fancyboxOptionsProperties.closeIcon"
|
50
49
|
href="#"
|
51
50
|
class="button"
|
52
51
|
id="close-dialog"
|
53
|
-
:title="
|
52
|
+
:title="fancyboxOptionsProperties.closeIcon.tooltip"
|
54
53
|
ref="close-dialog"
|
55
54
|
@click.prevent="close">
|
56
55
|
<!-- begin CmdIcon -->
|
57
56
|
<CmdIcon
|
58
|
-
:iconClass="
|
59
|
-
:type="
|
57
|
+
:iconClass="fancyboxOptionsProperties.closeIcon.iconClass"
|
58
|
+
:type="fancyboxOptionsProperties.closeIcon.iconType"
|
60
59
|
/>
|
61
60
|
<!-- end CmdIcon -->
|
62
61
|
</a>
|
@@ -94,34 +93,34 @@
|
|
94
93
|
</div>
|
95
94
|
</div>
|
96
95
|
|
97
|
-
<footer v-if="showSubmitButtons &&
|
96
|
+
<footer v-if="showSubmitButtons && fancyboxOptionsProperties.submitButtons" class="flex-container no-flex">
|
98
97
|
<!-- begin cancel-button -->
|
99
98
|
<button
|
100
|
-
v-if="
|
99
|
+
v-if="fancyboxOptionsProperties.submitButtons?.cancel"
|
101
100
|
@click="cancel"
|
102
|
-
:title="
|
101
|
+
:title="fancyboxOptionsProperties.submitButtons.cancel?.tooltip">
|
103
102
|
<CmdIcon
|
104
|
-
v-if="
|
105
|
-
:iconClass="
|
106
|
-
:type="
|
103
|
+
v-if="fancyboxOptionsProperties.submitButtons.cancel?.iconClass"
|
104
|
+
:iconClass="fancyboxOptionsProperties.submitButtons.cancel?.iconClass"
|
105
|
+
:type="fancyboxOptionsProperties.submitButtons.cancel?.iconType"
|
107
106
|
/>
|
108
107
|
<span
|
109
|
-
v-if="
|
108
|
+
v-if="fancyboxOptionsProperties.submitButtons.cancel?.buttonText">{{ fancyboxOptionsProperties.submitButtons.cancel?.buttonText }}</span>
|
110
109
|
</button>
|
111
110
|
<!-- end cancel-button -->
|
112
111
|
|
113
112
|
<!-- begin confirm-button -->
|
114
113
|
<button
|
115
|
-
v-if="
|
114
|
+
v-if="fancyboxOptionsProperties.submitButtons?.confirm"
|
116
115
|
@click="confirm"
|
117
|
-
:title="
|
116
|
+
:title="fancyboxOptionsProperties.submitButtons.cancel?.tooltip">
|
118
117
|
<CmdIcon
|
119
|
-
v-if="
|
120
|
-
:iconClass="
|
121
|
-
:type="
|
118
|
+
v-if="fancyboxOptionsProperties.submitButtons.confirm?.iconClass"
|
119
|
+
:iconClass="fancyboxOptionsProperties.submitButtons.confirm?.iconClass"
|
120
|
+
:type="fancyboxOptionsProperties.submitButtons.confirm?.iconType"
|
122
121
|
/>
|
123
122
|
<span
|
124
|
-
v-if="
|
123
|
+
v-if="fancyboxOptionsProperties.submitButtons.confirm?.buttonText">{{ fancyboxOptionsProperties.submitButtons.confirm?.buttonText }}</span>
|
125
124
|
</button>
|
126
125
|
<!-- end confirm-button -->
|
127
126
|
</footer>
|
@@ -141,9 +140,6 @@
|
|
141
140
|
<script>
|
142
141
|
import {defineComponent, createApp} from "vue"
|
143
142
|
|
144
|
-
// import mixins
|
145
|
-
import Identifier from "../mixins/Identifier"
|
146
|
-
|
147
143
|
const openFancyBox = (config) => {
|
148
144
|
const node = document.createElement("div");
|
149
145
|
document.querySelector("body").appendChild(node);
|
@@ -156,9 +152,6 @@ const openFancyBox = (config) => {
|
|
156
152
|
|
157
153
|
const FancyBox = defineComponent({
|
158
154
|
name: "CmdFancyBox",
|
159
|
-
mixins: [
|
160
|
-
Identifier
|
161
|
-
],
|
162
155
|
emits: ['cancel', 'confirm'],
|
163
156
|
data() {
|
164
157
|
return {
|
@@ -206,42 +199,7 @@ const FancyBox = defineComponent({
|
|
206
199
|
*/
|
207
200
|
fancyboxOptions: {
|
208
201
|
type: Object,
|
209
|
-
|
210
|
-
return {
|
211
|
-
closeIcon: {
|
212
|
-
iconClass: "icon-cancel",
|
213
|
-
iconType: "auto",
|
214
|
-
tooltip: "Close"
|
215
|
-
},
|
216
|
-
printButtons: {
|
217
|
-
color: {
|
218
|
-
iconClass: "icon-print",
|
219
|
-
iconType: "auto",
|
220
|
-
tooltip: "print in color"
|
221
|
-
},
|
222
|
-
grayscale: {
|
223
|
-
iconClass: "icon-print",
|
224
|
-
iconType: "auto",
|
225
|
-
tooltip: "print in grayscale"
|
226
|
-
}
|
227
|
-
},
|
228
|
-
submitButtons: {
|
229
|
-
cancel: {
|
230
|
-
iconClass: "icon-cancel",
|
231
|
-
iconType: "auto",
|
232
|
-
tooltip: "Cancel",
|
233
|
-
buttonText: "Cancel"
|
234
|
-
},
|
235
|
-
confirm: {
|
236
|
-
iconClass: "icon-check",
|
237
|
-
iconType: "auto",
|
238
|
-
buttonText: "Confirm",
|
239
|
-
tooltip: "Confirm",
|
240
|
-
buttonType: "primary"
|
241
|
-
}
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
202
|
+
required: false
|
245
203
|
},
|
246
204
|
/**
|
247
205
|
* allow closing fancybox by escape-key
|
@@ -333,6 +291,47 @@ const FancyBox = defineComponent({
|
|
333
291
|
}
|
334
292
|
},
|
335
293
|
computed: {
|
294
|
+
fancyboxOptionsProperties() {
|
295
|
+
return {
|
296
|
+
closeIcon: {
|
297
|
+
iconClass: "icon-cancel",
|
298
|
+
iconType: "auto",
|
299
|
+
tooltip: "Close",
|
300
|
+
...this.fancyboxOptions?.closeIcon
|
301
|
+
},
|
302
|
+
printButtons: {
|
303
|
+
color: {
|
304
|
+
iconClass: "icon-print",
|
305
|
+
iconType: "auto",
|
306
|
+
tooltip: "print in color",
|
307
|
+
...this.fancyboxOptions?.printButtons?.color
|
308
|
+
},
|
309
|
+
grayscale: {
|
310
|
+
iconClass: "icon-print",
|
311
|
+
iconType: "auto",
|
312
|
+
tooltip: "print in grayscale",
|
313
|
+
...this.fancyboxOptions?.printButtons?.grayscale
|
314
|
+
}
|
315
|
+
},
|
316
|
+
submitButtons: {
|
317
|
+
cancel: {
|
318
|
+
iconClass: "icon-cancel",
|
319
|
+
iconType: "auto",
|
320
|
+
tooltip: "Cancel",
|
321
|
+
buttonText: "Cancel",
|
322
|
+
...this.fancyboxOptions?.submitButtons?.cancel
|
323
|
+
},
|
324
|
+
confirm: {
|
325
|
+
iconClass: "icon-check",
|
326
|
+
iconType: "auto",
|
327
|
+
buttonText: "Confirm",
|
328
|
+
tooltip: "Confirm",
|
329
|
+
buttonType: "primary",
|
330
|
+
...this.fancyboxOptions?.submitButtons?.confirm
|
331
|
+
}
|
332
|
+
}
|
333
|
+
}
|
334
|
+
},
|
336
335
|
largeGalleryImage() {
|
337
336
|
// change src-key for a single item/image in gallery to fit CmdImage-properties
|
338
337
|
const fancyBoxItem = {...this.fancyBoxGallery[this.index].image}
|
@@ -759,7 +759,7 @@ export default {
|
|
759
759
|
// check if field is type "email"
|
760
760
|
if (this.$attrs.type === "email") {
|
761
761
|
requirements.push({
|
762
|
-
message: this.getMessage("cmdformelement.
|
762
|
+
message: this.getMessage("cmdformelement.validation_tooltip.is_valid_email"),
|
763
763
|
valid: () => this.$refs.input.checkValidity()
|
764
764
|
})
|
765
765
|
}
|
@@ -259,11 +259,11 @@ export default {
|
|
259
259
|
|
260
260
|
// set default-tooltip if customTooltip is not set
|
261
261
|
if (this.validationStatus === 'error') {
|
262
|
-
return this.getMessage("cmdformelement.
|
262
|
+
return this.getMessage("cmdformelement.validation_tooltip.an_error_occurred")
|
263
263
|
} else if (this.validationStatus === 'success') {
|
264
|
-
return this.getMessage("cmdformelement.
|
264
|
+
return this.getMessage("cmdformelement.validation_tooltip.information_is_filled_correctly")
|
265
265
|
}
|
266
|
-
return this.getMessage("cmdformelement.
|
266
|
+
return this.getMessage("cmdformelement.validation_tooltip.open_field_requirements")
|
267
267
|
},
|
268
268
|
inputValue: {
|
269
269
|
// read inputValue
|
@@ -16,6 +16,7 @@
|
|
16
16
|
<button
|
17
17
|
v-if="buttonPrintViewOptions?.show"
|
18
18
|
:class="['button', {'primary': buttonPrintViewOptions.primary}]"
|
19
|
+
id="print-view-button"
|
19
20
|
:title="buttonPrintViewOptions.text ? buttonPrintViewOptions.icon?.tooltip : null"
|
20
21
|
@click="showFancyBox"
|
21
22
|
>
|
@@ -110,7 +111,8 @@ export default {
|
|
110
111
|
cmdHeadline: this.cmdFancyBox.cmdHeadline,
|
111
112
|
showOverlay: this.cmdFancyBox.showOverlay,
|
112
113
|
showSubmitButtons: this.cmdFancyBox.showSubmitButtons,
|
113
|
-
allowEscapeKey: this.cmdFancyBox.allowEscapeKey
|
114
|
+
allowEscapeKey: this.cmdFancyBox.allowEscapeKey,
|
115
|
+
id: this.cmdFancyBox.id || "print-preview"
|
114
116
|
})
|
115
117
|
}
|
116
118
|
}
|
@@ -150,15 +152,21 @@ export default {
|
|
150
152
|
</style>
|
151
153
|
|
152
154
|
<style lang="scss">
|
155
|
+
/* begin cmd-page-footer -------------------------------------------------------------------------------------------- */
|
153
156
|
@import "../assets/styles/variables";
|
154
157
|
|
155
|
-
@media only screen and (
|
158
|
+
@media only screen and (width <= $small-max-width) {
|
156
159
|
.cmd-page-footer {
|
157
160
|
align-items: flex-start;
|
158
161
|
|
159
162
|
> .button-wrapper {
|
160
163
|
margin-left: 0;
|
164
|
+
|
165
|
+
#print-view-button {
|
166
|
+
display: none;
|
167
|
+
}
|
161
168
|
}
|
162
169
|
}
|
163
170
|
}
|
171
|
+
/* end cmd-page-footer -------------------------------------------------------------------------------------------- */
|
164
172
|
</style>
|
@@ -9,8 +9,8 @@
|
|
9
9
|
|
10
10
|
<!-- begin CmdListOfRequirements -->
|
11
11
|
<CmdListOfRequirements
|
12
|
-
v-if="
|
13
|
-
v-bind="
|
12
|
+
v-if="cmdListOfRequirementsProperties.showRequirements"
|
13
|
+
v-bind="cmdListOfRequirementsProperties"
|
14
14
|
/>
|
15
15
|
<!-- end CmdListOfRequirements -->
|
16
16
|
</CmdTooltip>
|
@@ -51,17 +51,21 @@ export default {
|
|
51
51
|
*/
|
52
52
|
cmdListOfRequirements: {
|
53
53
|
type: Object,
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
54
|
+
required: false
|
55
|
+
}
|
56
|
+
},
|
57
|
+
computed: {
|
58
|
+
cmdListOfRequirementsProperties() {
|
59
|
+
return {
|
60
|
+
showRequirements: true,
|
61
|
+
validationTooltip: "",
|
62
|
+
inputRequirements: [],
|
63
|
+
inputAttributes: {},
|
64
|
+
showHeadline: true,
|
65
|
+
inputModelValue: "",
|
66
|
+
helplink: {},
|
67
|
+
labelText: "",
|
68
|
+
...this.cmdListOfRequirements
|
65
69
|
}
|
66
70
|
}
|
67
71
|
},
|
@@ -87,5 +91,6 @@ export default {
|
|
87
91
|
}
|
88
92
|
}
|
89
93
|
}
|
94
|
+
|
90
95
|
/* end cmd-tooltip-for-form-elements ---------------------------------------------------------------------------------------- */
|
91
96
|
</style>
|
@@ -2,7 +2,6 @@ export default {
|
|
2
2
|
data() {
|
3
3
|
return {
|
4
4
|
defaultMessageProperties: {
|
5
|
-
"cmdformelement.headline.requirements_for_input": "Requirements for input",
|
6
5
|
"cmdformelement.validation_tooltip.an_error_occurred": "An error occurred!",
|
7
6
|
"cmdformelement.validation_tooltip.information_is_filled_correctly": "This information is filled correctly!",
|
8
7
|
"cmdformelement.validation_tooltip.caps_lock_is_activated": "Attention: Caps lock is activated!",
|
@@ -161,19 +161,15 @@ export default {
|
|
161
161
|
},
|
162
162
|
computed: {
|
163
163
|
listOfRequirements() {
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
helplink: {},
|
173
|
-
labelText: this.labelText
|
174
|
-
}
|
164
|
+
return {
|
165
|
+
validationTooltip: this.validationTooltip,
|
166
|
+
inputRequirements: this.inputRequirements,
|
167
|
+
inputAttributes: this.$attrs,
|
168
|
+
inputModelValue: this.modelValue,
|
169
|
+
labelText: this.labelText,
|
170
|
+
i18n: this.i18n,
|
171
|
+
...this.cmdListOfRequirements
|
175
172
|
}
|
176
|
-
return this.cmdListOfRequirements
|
177
173
|
},
|
178
174
|
getValidationMessage() {
|
179
175
|
// check if all requirements are valid
|