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
|
@@ -60,14 +60,12 @@ import {buildComponentPath, updateHandlerProvider} from "../utils/editmode.js"
|
|
|
60
60
|
export default {
|
|
61
61
|
name: "CmdImageGallery",
|
|
62
62
|
mixins: [EditMode],
|
|
63
|
+
inject: {
|
|
64
|
+
editModeContext: {
|
|
65
|
+
default: null
|
|
66
|
+
}
|
|
67
|
+
},
|
|
63
68
|
props: {
|
|
64
|
-
/**
|
|
65
|
-
* properties for CmdHeadline-component
|
|
66
|
-
*/
|
|
67
|
-
cmdHeadline: {
|
|
68
|
-
type: Object,
|
|
69
|
-
required: false
|
|
70
|
-
},
|
|
71
69
|
/**
|
|
72
70
|
* set if large version of images can be opened in a fancybox
|
|
73
71
|
*/
|
|
@@ -96,7 +94,14 @@ export default {
|
|
|
96
94
|
return value === "top" ||
|
|
97
95
|
value === "bottom"
|
|
98
96
|
}
|
|
99
|
-
}
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* properties for CmdHeadline-component
|
|
100
|
+
*/
|
|
101
|
+
cmdHeadline: {
|
|
102
|
+
type: Object,
|
|
103
|
+
required: false
|
|
104
|
+
},
|
|
100
105
|
},
|
|
101
106
|
methods: {
|
|
102
107
|
itemProvider() {
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
<!-- begin CmdLink ---------------------------------------------------------------------------------------- -->
|
|
3
3
|
<!-- begin href -->
|
|
4
4
|
<a v-if="linkType === 'href'"
|
|
5
|
+
ref="cmd-link"
|
|
5
6
|
:href="!disabled ? path : null"
|
|
6
7
|
:target="target"
|
|
7
8
|
:class="['cmd-link', highlightLevel, {'button': styleAsButton, 'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
|
8
9
|
@click.prevent="emitClick($event, 'href')"
|
|
9
10
|
:title="icon?.tooltip"
|
|
11
|
+
:role="styleAsButton ? 'button' : null"
|
|
10
12
|
>
|
|
11
13
|
<!-- begin CmdInnterLink -->
|
|
12
14
|
<CmdInnerLink :text="text" :icon="icon" :image="image">
|
|
@@ -23,7 +25,8 @@
|
|
|
23
25
|
:to="!disabled ? path : {}"
|
|
24
26
|
exact-active-class="router-link-exact-active active"
|
|
25
27
|
:class="['cmd-link', highlightLevel, {'button': styleAsButton, 'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
|
26
|
-
@click="emitClick($event, 'router')"
|
|
28
|
+
@click="emitClick($event, 'router')"
|
|
29
|
+
:role="styleAsButton ? 'button' : null"
|
|
27
30
|
:title="icon?.tooltip">
|
|
28
31
|
<!-- begin CmdInnterLink -->
|
|
29
32
|
<CmdInnerLink :text="text" :icon="icon" :image="image">
|
|
@@ -37,6 +40,7 @@
|
|
|
37
40
|
|
|
38
41
|
<!-- begin button -->
|
|
39
42
|
<button v-else-if="linkType === 'button' || linkType === 'submit'"
|
|
43
|
+
ref="cmd-link"
|
|
40
44
|
:class="['cmd-link button', highlightLevel, {'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
|
41
45
|
type="submit"
|
|
42
46
|
:disabled="disabled"
|
|
@@ -125,13 +129,13 @@ export default {
|
|
|
125
129
|
},
|
|
126
130
|
/**
|
|
127
131
|
* set highlight-level for link/button
|
|
128
|
-
* null
|
|
132
|
+
* null, "primary", "secondary", "tertiary"
|
|
129
133
|
*/
|
|
130
134
|
highlightLevel: {
|
|
131
135
|
type: String,
|
|
132
136
|
default: "primary",
|
|
133
137
|
validator(value) {
|
|
134
|
-
return value === null||
|
|
138
|
+
return value === null ||
|
|
135
139
|
value === "primary" ||
|
|
136
140
|
value === "secondary" ||
|
|
137
141
|
value === "tertiary"
|
|
@@ -160,6 +164,19 @@ export default {
|
|
|
160
164
|
}
|
|
161
165
|
},
|
|
162
166
|
methods: {
|
|
167
|
+
/**
|
|
168
|
+
* public function to enable calling foucs() on main-component from outside
|
|
169
|
+
*/
|
|
170
|
+
focus() {
|
|
171
|
+
const link = this.$refs["cmd-link"]
|
|
172
|
+
// check if link provides native function focus() (for a/button)
|
|
173
|
+
if(typeof link.focus === "function" ) {
|
|
174
|
+
link.focus()
|
|
175
|
+
} else {
|
|
176
|
+
// set focus for router-link
|
|
177
|
+
link.$el.focus()
|
|
178
|
+
}
|
|
179
|
+
},
|
|
163
180
|
emitClick(event, linkType) {
|
|
164
181
|
this.$emit("click", {originalEvent: event, linkType: linkType})
|
|
165
182
|
}
|
|
@@ -182,8 +199,6 @@ export default {
|
|
|
182
199
|
|
|
183
200
|
img {
|
|
184
201
|
max-height: 4rem;
|
|
185
|
-
aspect-ratio: 1/1;
|
|
186
|
-
border-radius: var(--full-circle);
|
|
187
202
|
margin: 0;
|
|
188
203
|
}
|
|
189
204
|
|
|
@@ -127,6 +127,11 @@ export default {
|
|
|
127
127
|
name: "CmdListOfLinks",
|
|
128
128
|
emits: ["click"],
|
|
129
129
|
mixins: [EditMode],
|
|
130
|
+
inject: {
|
|
131
|
+
editModeContext: {
|
|
132
|
+
default: null
|
|
133
|
+
}
|
|
134
|
+
},
|
|
130
135
|
data() {
|
|
131
136
|
return {
|
|
132
137
|
listOfTagItems: [...(this.items || [])]
|
|
@@ -392,7 +397,7 @@ export default {
|
|
|
392
397
|
.cmd-list {
|
|
393
398
|
> ul {
|
|
394
399
|
flex-direction: column;
|
|
395
|
-
gap: var(
|
|
400
|
+
gap: var(---gap-small);
|
|
396
401
|
margin: 0;
|
|
397
402
|
|
|
398
403
|
li {
|
|
@@ -402,7 +407,7 @@ export default {
|
|
|
402
407
|
|
|
403
408
|
&:has(.tag) {
|
|
404
409
|
.tag {
|
|
405
|
-
gap: var(
|
|
410
|
+
gap: var(---gap-small);
|
|
406
411
|
|
|
407
412
|
&.primary, &.secondary, &.tertiary {
|
|
408
413
|
[class*="icon-"] {
|