comand-component-library 4.3.26 → 4.3.27
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/comand-component-library.css +1 -1
- package/dist/comand-component-library.js +8552 -8431
- package/dist/styles/demopage-only.css +24 -0
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +1923 -1881
- package/src/assets/data/text-image-block.json +3 -1
- package/src/assets/data/thumbnail-scroller-images.json +1 -1
- package/src/components/CmdAccordion.vue +1 -1
- package/src/components/CmdAddressData.vue +60 -72
- package/src/components/CmdBankAccountData.vue +55 -33
- package/src/components/CmdBasicForm.vue +19 -7
- package/src/components/CmdBox.vue +2 -0
- package/src/components/CmdBoxWrapper.vue +10 -0
- package/src/components/CmdBreadcrumbs.vue +10 -27
- package/src/components/CmdCompanyLogo.vue +3 -0
- package/src/components/CmdContainer.vue +8 -1
- package/src/components/CmdCookieDisclaimer.vue +5 -5
- package/src/components/CmdFakeSelect.vue +12 -1
- package/src/components/CmdFancyBox.vue +73 -85
- package/src/components/CmdFootnote.vue +2 -1
- package/src/components/CmdForm.vue +118 -160
- package/src/components/CmdFormFilters.vue +1 -0
- package/src/components/CmdGoogleMaps.vue +9 -2
- package/src/components/CmdHeadline.vue +10 -9
- package/src/components/CmdImage.vue +32 -17
- package/src/components/CmdImageGallery.vue +13 -8
- package/src/components/CmdLink.vue +20 -5
- package/src/components/CmdList.vue +7 -2
- package/src/components/CmdLoginForm.vue +156 -255
- package/src/components/CmdMailToolEntry.vue +2 -1
- package/src/components/CmdMultistepFormProgressBar.vue +2 -2
- package/src/components/CmdMultistepFormWrapper.vue +2 -6
- package/src/components/CmdOpeningHours.vue +14 -2
- package/src/components/CmdSidebar.vue +2 -2
- package/src/components/CmdSiteWrapper.vue +66 -58
- package/src/components/CmdSlideshow.vue +5 -0
- package/src/components/CmdSocialNetworks.vue +27 -17
- package/src/components/CmdSwitchLanguage.vue +16 -19
- package/src/components/CmdSystemMessage.vue +71 -66
- package/src/components/CmdTable.vue +42 -24
- package/src/components/CmdTabs.vue +15 -7
- package/src/components/CmdTag.vue +28 -23
- package/src/components/CmdTextImageBlock.vue +62 -53
- package/src/components/CmdThumbnailScroller.vue +18 -6
- package/src/components/CmdToast.vue +60 -17
- package/src/components/CmdToggleDarkMode.vue +31 -32
- package/src/components/CmdTooltip.vue +33 -20
- package/src/components/CmdUploadForm.vue +212 -183
- package/src/components/CmdWidthLimitationWrapper.vue +19 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition :name="transition">
|
|
3
3
|
<!-- begin CmdCookieDisclaimer ---------------------------------------------------------------------------------------- -->
|
|
4
|
-
<div class="cmd-cookie-disclaimer flex-container
|
|
4
|
+
<div class="cmd-cookie-disclaimer flex-container flex-direction-column">
|
|
5
5
|
<!-- begin slot -->
|
|
6
6
|
<template v-if="useSlot">
|
|
7
7
|
<slot></slot>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<!-- begin slot for cookie-options -->
|
|
21
21
|
<slot name="cookie-options">
|
|
22
22
|
<!-- begin required cookies -->
|
|
23
|
-
<div v-if="cookieOptions?.required" class="flex-container
|
|
23
|
+
<div v-if="cookieOptions?.required" class="flex-container flex-direction-column">
|
|
24
24
|
<!-- begin CmdHeadline -->
|
|
25
25
|
<CmdHeadline
|
|
26
26
|
v-if="defaultCmdBoxRequiredCookies().showHeadline && defaultCmdBoxRequiredCookies().headlineText"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<!-- end icon to toggle box-body -->
|
|
54
54
|
</header>
|
|
55
55
|
<div v-show="boxIsOpen(cookie.id)" class="collapsible-box-body">
|
|
56
|
-
<
|
|
56
|
+
<CmdParagraph v-if="cookie.description" :content="cookie.description"/>
|
|
57
57
|
<p v-if="cookie.linkDataPrivacy">
|
|
58
58
|
{{ cookie.linkDataPrivacy.label }}
|
|
59
59
|
<a @click="openDataPrivacy"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<hr/>
|
|
72
72
|
|
|
73
73
|
<!-- begin optional cookies -->
|
|
74
|
-
<div v-if="cookieOptions?.optional" class="flex-container
|
|
74
|
+
<div v-if="cookieOptions?.optional" class="flex-container flex-direction-column">
|
|
75
75
|
<!-- begin CmdHeadline -->
|
|
76
76
|
<CmdHeadline
|
|
77
77
|
v-if="defaultCmdBoxOptionalCookies().showHeadline && defaultCmdBoxOptionalCookies().headlineText"
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<!-- end icon to toggle box-body -->
|
|
105
105
|
</header>
|
|
106
106
|
<div v-show="boxIsOpen(cookie.id)" class="collapsible-box-body">
|
|
107
|
-
<
|
|
107
|
+
<CmdParagraph v-if="cookie.description" :content="cookie.description "/>
|
|
108
108
|
<p v-if="cookie.linkDataPrivacy">
|
|
109
109
|
{{ cookie.linkDataPrivacy.label }}
|
|
110
110
|
<a @click="openDataPrivacy"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
<template v-if="showLabel">
|
|
20
20
|
<!-- begin label -->
|
|
21
21
|
<span class="label-text">
|
|
22
|
-
<span :id="htmlId">{{ labelText }}<sup v-if="$attrs.required !== undefined" aria-hidden="true">*</sup
|
|
22
|
+
<span :id="htmlId">{{ labelText }}<sup v-if="$attrs.required !== undefined" aria-hidden="true">*</sup>
|
|
23
|
+
</span>
|
|
23
24
|
|
|
24
25
|
<!-- begin status-icon (linked with tooltip) -->
|
|
25
26
|
<button v-if="($attrs.required || inputRequirements.length) && showStatusIcon"
|
|
@@ -671,6 +672,16 @@ export default {
|
|
|
671
672
|
}
|
|
672
673
|
|
|
673
674
|
&.open {
|
|
675
|
+
border-bottom-left-radius: 0;
|
|
676
|
+
border-bottom-right-radius: 0;
|
|
677
|
+
|
|
678
|
+
> li:first-child {
|
|
679
|
+
a {
|
|
680
|
+
border-bottom-left-radius: 0;
|
|
681
|
+
border-bottom-right-radius: 0;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
674
685
|
ul {
|
|
675
686
|
border-bottom-left-radius: var(--default-border-radius);
|
|
676
687
|
border-bottom-right-radius: var(--default-border-radius);
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<header class="flex-container">
|
|
10
10
|
<!-- begin CmdHeadline -->
|
|
11
11
|
<CmdHeadline
|
|
12
|
-
v-if="
|
|
13
|
-
v-bind="
|
|
12
|
+
v-if="cmdHeadlineProperties?.show && cmdHeadlineProperties?.headlineText"
|
|
13
|
+
v-bind="cmdHeadlineProperties"
|
|
14
14
|
/>
|
|
15
15
|
<!-- end CmdHeadline -->
|
|
16
16
|
|
|
@@ -19,46 +19,29 @@
|
|
|
19
19
|
v-if="(fancyBoxOptionsProperties.printButtons?.color || fancyBoxOptionsProperties.printButtons?.grayscale) || fancyBoxOptionsProperties.closeIcon"
|
|
20
20
|
class="button-wrapper flex-none"
|
|
21
21
|
> <!-- begin print buttons -->
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
href="#"
|
|
36
|
-
class="button print-grayscale"
|
|
37
|
-
:title="fancyBoxOptionsProperties.printButtons.grayscale?.tooltip"
|
|
38
|
-
@click.prevent="printPage('grayscale')">
|
|
39
|
-
<!-- begin CmdIcon -->
|
|
40
|
-
<CmdIcon
|
|
41
|
-
:iconClass="fancyBoxOptionsProperties.printButtons.grayscale?.iconClass"
|
|
42
|
-
:type="fancyBoxOptionsProperties.printButtons.grayscale?.iconType"
|
|
43
|
-
/>
|
|
44
|
-
<!-- end CmdIcon -->
|
|
45
|
-
</a>
|
|
22
|
+
<CmdLink
|
|
23
|
+
v-if="showPrintButtons && fancyBoxOptionsProperties.printButtons?.color"
|
|
24
|
+
class="print-color"
|
|
25
|
+
v-bind="fancyBoxOptionsProperties.printButtons.color"
|
|
26
|
+
@click="printPage('color')"
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
<CmdLink
|
|
30
|
+
v-if="showPrintButtons && fancyBoxOptionsProperties.printButtons?.grayscale"
|
|
31
|
+
class="print-grayscale"
|
|
32
|
+
v-bind="fancyBoxOptionsProperties.printButtons.grayscale"
|
|
33
|
+
@click="printPage('grayscale')"
|
|
34
|
+
/>
|
|
46
35
|
<!-- end print buttons -->
|
|
47
36
|
|
|
48
37
|
<!-- begin close-icon -->
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<CmdIcon
|
|
57
|
-
:iconClass="fancyBoxOptionsProperties.closeIcon?.iconClass"
|
|
58
|
-
:type="fancyBoxOptionsProperties.closeIcon?.iconType"
|
|
59
|
-
/>
|
|
60
|
-
<!-- end CmdIcon -->
|
|
61
|
-
</a>
|
|
38
|
+
<CmdLink
|
|
39
|
+
v-if="fancyBoxOptionsProperties.closeIcon?.show"
|
|
40
|
+
id="close-dialog"
|
|
41
|
+
ref="close-dialog"
|
|
42
|
+
v-bind="fancyBoxOptionsProperties.closeIcon"
|
|
43
|
+
@click="close"
|
|
44
|
+
/>
|
|
62
45
|
<!-- end close-icon -->
|
|
63
46
|
</div>
|
|
64
47
|
<!-- end button-wrapper -->
|
|
@@ -94,33 +77,19 @@
|
|
|
94
77
|
</div>
|
|
95
78
|
<footer v-if="showSubmitButtons && fancyBoxOptionsProperties.submitButtons" class="flex-container flex-items-flex-none">
|
|
96
79
|
<!-- begin cancel-button -->
|
|
97
|
-
<
|
|
98
|
-
v-if="fancyBoxOptionsProperties.submitButtons?.cancel"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
v-if="fancyBoxOptionsProperties.submitButtons.cancel?.iconClass"
|
|
103
|
-
:iconClass="fancyBoxOptionsProperties.submitButtons.cancel?.iconClass"
|
|
104
|
-
:type="fancyBoxOptionsProperties.submitButtons.cancel?.iconType"
|
|
105
|
-
/>
|
|
106
|
-
<span
|
|
107
|
-
v-if="fancyBoxOptionsProperties.submitButtons.cancel?.buttonText">{{ fancyBoxOptionsProperties.submitButtons.cancel?.buttonText }}</span>
|
|
108
|
-
</button>
|
|
80
|
+
<CmdLink
|
|
81
|
+
v-if="fancyBoxOptionsProperties.submitButtons?.cancel.show"
|
|
82
|
+
v-bind="fancyBoxOptionsProperties.submitButtons.cancel"
|
|
83
|
+
@click="cancel"
|
|
84
|
+
/>
|
|
109
85
|
<!-- end cancel-button -->
|
|
110
86
|
|
|
111
87
|
<!-- begin confirm-button -->
|
|
112
|
-
<
|
|
113
|
-
v-if="fancyBoxOptionsProperties.submitButtons?.confirm"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
v-if="fancyBoxOptionsProperties.submitButtons.confirm?.iconClass"
|
|
118
|
-
:iconClass="fancyBoxOptionsProperties.submitButtons.confirm?.iconClass"
|
|
119
|
-
:type="fancyBoxOptionsProperties.submitButtons.confirm?.iconType"
|
|
120
|
-
/>
|
|
121
|
-
<span
|
|
122
|
-
v-if="fancyBoxOptionsProperties.submitButtons.confirm?.buttonText">{{ fancyBoxOptionsProperties.submitButtons.confirm?.buttonText }}</span>
|
|
123
|
-
</button>
|
|
88
|
+
<CmdLink
|
|
89
|
+
v-if="fancyBoxOptionsProperties.submitButtons?.confirm.show"
|
|
90
|
+
v-bind="fancyBoxOptionsProperties.submitButtons.confirm"
|
|
91
|
+
@click="confirm"
|
|
92
|
+
/>
|
|
124
93
|
<!-- end confirm-button -->
|
|
125
94
|
</footer>
|
|
126
95
|
|
|
@@ -152,7 +121,7 @@ const openFancyBox = (config) => {
|
|
|
152
121
|
|
|
153
122
|
const FancyBox = defineComponent({
|
|
154
123
|
name: "CmdFancyBox",
|
|
155
|
-
emits: [
|
|
124
|
+
emits: ["cancel", "confirm", "update:show"],
|
|
156
125
|
data() {
|
|
157
126
|
return {
|
|
158
127
|
fancyBoxContent: null,
|
|
@@ -291,43 +260,62 @@ const FancyBox = defineComponent({
|
|
|
291
260
|
}
|
|
292
261
|
},
|
|
293
262
|
computed: {
|
|
263
|
+
cmdHeadlineProperties() {
|
|
264
|
+
return {
|
|
265
|
+
show: true,
|
|
266
|
+
headlineLevel: 3,
|
|
267
|
+
...this.cmdHeadline
|
|
268
|
+
}
|
|
269
|
+
},
|
|
294
270
|
fancyBoxOptionsProperties() {
|
|
295
271
|
return {
|
|
296
272
|
closeIcon: {
|
|
297
273
|
show: true,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
274
|
+
styleAsButton: true,
|
|
275
|
+
icon: {
|
|
276
|
+
iconClass: "icon-cancel",
|
|
277
|
+
tooltip: "Close dialog"
|
|
278
|
+
},
|
|
301
279
|
...this.fancyBoxOptions?.closeIcon
|
|
302
280
|
},
|
|
303
281
|
printButtons: {
|
|
304
282
|
color: {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
283
|
+
styleAsButton: true,
|
|
284
|
+
icon: {
|
|
285
|
+
iconClass: "icon-print",
|
|
286
|
+
tooltip: "Print in color",
|
|
287
|
+
},
|
|
308
288
|
...this.fancyBoxOptions?.printButtons?.color
|
|
309
289
|
},
|
|
310
290
|
grayscale: {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
291
|
+
styleAsButton: true,
|
|
292
|
+
icon: {
|
|
293
|
+
iconClass: "icon-print",
|
|
294
|
+
tooltip: "Print in grayscale",
|
|
295
|
+
},
|
|
314
296
|
...this.fancyBoxOptions?.printButtons?.grayscale
|
|
315
297
|
}
|
|
316
298
|
},
|
|
317
299
|
submitButtons: {
|
|
318
300
|
cancel: {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
301
|
+
show: true,
|
|
302
|
+
linkType: "button",
|
|
303
|
+
icon: {
|
|
304
|
+
iconClass: "icon-cancel",
|
|
305
|
+
tooltip: "Cancel",
|
|
306
|
+
},
|
|
307
|
+
text: "Confirm",
|
|
323
308
|
...this.fancyBoxOptions?.submitButtons?.cancel
|
|
324
309
|
},
|
|
325
310
|
confirm: {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
311
|
+
show: true,
|
|
312
|
+
linkType: "button",
|
|
313
|
+
icon: {
|
|
314
|
+
iconClass: "icon-check",
|
|
315
|
+
tooltip: "Confirm",
|
|
316
|
+
},
|
|
317
|
+
text: "Confirm",
|
|
318
|
+
highlightLevel: "primary",
|
|
331
319
|
...this.fancyBoxOptions?.submitButtons?.confirm
|
|
332
320
|
}
|
|
333
321
|
}
|
|
@@ -409,7 +397,7 @@ const FancyBox = defineComponent({
|
|
|
409
397
|
showDialog() {
|
|
410
398
|
// avoid scrolling if fancybox is shown
|
|
411
399
|
document.querySelector("body").classList.add("avoid-scrolling")
|
|
412
|
-
this.$refs.dialog.showModal()
|
|
400
|
+
this.$refs.dialog.showModal() // invoke native method for dialog-element
|
|
413
401
|
|
|
414
402
|
// overwrite default behavior of dialog-element, which sets focus on first focusable element inside
|
|
415
403
|
this.$refs["close-dialog"]?.focus()
|
|
@@ -463,7 +451,7 @@ const FancyBox = defineComponent({
|
|
|
463
451
|
this.index = 0;
|
|
464
452
|
}
|
|
465
453
|
},
|
|
466
|
-
// close fancybox (by button
|
|
454
|
+
// close fancybox (by button or escape-key)
|
|
467
455
|
close() {
|
|
468
456
|
this.showFancyBox = false
|
|
469
457
|
this.$emit("update:show", false)
|
|
@@ -652,7 +640,7 @@ export default FancyBox
|
|
|
652
640
|
.outer-content-wrapper {
|
|
653
641
|
max-height: 85vh;
|
|
654
642
|
overflow-x: hidden;
|
|
655
|
-
flex: none
|
|
643
|
+
/*flex: none;*/
|
|
656
644
|
|
|
657
645
|
.content {
|
|
658
646
|
> img, > video {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="cmd-footnote">
|
|
3
|
-
<CmdHeadline v-if="
|
|
3
|
+
<CmdHeadline v-if="cmdHeadlineProperties?.show && cmdHeadlineProperties?.headlineText" v-bind="cmdHeadlineProperties" />
|
|
4
4
|
<CmdList listType="description" :items="items" :class="'type-' + descriptionTermType" />
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
computed: {
|
|
41
41
|
cmdHeadlineProperties() {
|
|
42
42
|
return {
|
|
43
|
+
show: true,
|
|
43
44
|
headlineLevel: 6,
|
|
44
45
|
...this.cmdHeadline
|
|
45
46
|
}
|