comand-component-library 3.3.48 → 3.3.50
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.js +1001 -1045
- package/dist/comand-component-library.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +40 -40
- package/src/App.vue +27 -16
- package/src/assets/data/address-data.json +2 -3
- package/src/assets/data/list-of-links.json +1 -2
- package/src/assets/data/main-navigation.json +1 -1
- package/src/assets/data/tabs.json +1 -1
- package/src/assets/styles/logos-iconfont.css +0 -1
- package/src/components/CmdAddressData.vue +63 -74
- package/src/components/CmdBackToTopButton.vue +11 -36
- package/src/components/CmdBankAccountData.vue +4 -10
- package/src/components/CmdBox.vue +19 -30
- package/src/components/CmdCompanyLogo.vue +7 -14
- package/src/components/CmdFancyBox.vue +1 -3
- package/src/components/CmdFormElement.vue +1 -8
- package/src/components/CmdImageZoom.vue +4 -8
- package/src/components/CmdListOfLinks.vue +2 -17
- package/src/components/CmdMainNavigation.vue +6 -0
- package/src/components/CmdPager.vue +4 -0
- package/src/components/CmdSiteHeader.vue +24 -42
- package/src/components/CmdTabs.vue +1 -9
- package/src/components/CmdTextBlock.vue +1 -1
- package/src/components/CmdThumbnailScroller.vue +0 -6
- package/src/components/CmdToggleDarkMode.vue +9 -14
- package/src/mixins/CmdAddressData/DefaultMessageProperties.js +4 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div :class="['cmd-site-header', {sticky: sticky, 'navigation-inline': navigationInline}]" role="banner">
|
2
|
+
<div :class="['cmd-site-header', {sticky: sticky, 'navigation-inline': navigationInline, 'off-canvas-right': cmdMainNavigation?.offcanvasPosition === 'right'}]" role="banner">
|
3
3
|
<!-- begin slot for elements above header -->
|
4
4
|
<div v-if="$slots.topheader" class="top-header">
|
5
5
|
<slot name="topheader"></slot>
|
@@ -31,8 +31,10 @@
|
|
31
31
|
<!-- begin CmdMainNavigation -->
|
32
32
|
<CmdMainNavigation
|
33
33
|
v-if="cmdMainNavigation?.navigationEntries?.length && navigationInline"
|
34
|
+
:navigationEntries="cmdMainNavigation.navigationEntries"
|
35
|
+
:offcanvasPosition="cmdMainNavigation.offcanvasPosition"
|
34
36
|
:closeOffcanvas="closeOffcanvas"
|
35
|
-
|
37
|
+
@offcanvas="emitOffcanvasStatus"
|
36
38
|
/>
|
37
39
|
<!-- end CmdMainNavigation -->
|
38
40
|
</template>
|
@@ -43,7 +45,9 @@
|
|
43
45
|
<CmdMainNavigation
|
44
46
|
v-if="cmdMainNavigation?.navigationEntries?.length && !navigationInline"
|
45
47
|
:navigationEntries="cmdMainNavigation.navigationEntries"
|
48
|
+
:offcanvasPosition="cmdMainNavigation.offcanvasPosition"
|
46
49
|
:closeOffcanvas="closeOffcanvas"
|
50
|
+
@offcanvas="emitOffcanvasStatus"
|
47
51
|
/>
|
48
52
|
<!-- end CmdMainNavigation -->
|
49
53
|
</div>
|
@@ -52,6 +56,7 @@
|
|
52
56
|
<script>
|
53
57
|
export default {
|
54
58
|
name: "CmdSiteHeader",
|
59
|
+
emits: ["offcanvas"],
|
55
60
|
props: {
|
56
61
|
/**
|
57
62
|
* use only if default-button of inner navigation-component should not be used
|
@@ -99,6 +104,11 @@ export default {
|
|
99
104
|
type: Object,
|
100
105
|
required: false
|
101
106
|
}
|
107
|
+
},
|
108
|
+
methods: {
|
109
|
+
emitOffcanvasStatus(event){
|
110
|
+
this.$emit("offcanvas", event)
|
111
|
+
}
|
102
112
|
}
|
103
113
|
}
|
104
114
|
</script>
|
@@ -185,7 +195,7 @@ export default {
|
|
185
195
|
header {
|
186
196
|
&.has-navigation {
|
187
197
|
grid-template-rows: 1fr;
|
188
|
-
grid-template-areas: "company-logo
|
198
|
+
grid-template-areas: "main-navigation company-logo";
|
189
199
|
padding-bottom: calc(var(--default-padding) * 2);
|
190
200
|
}
|
191
201
|
|
@@ -220,15 +230,21 @@ export default {
|
|
220
230
|
}
|
221
231
|
}
|
222
232
|
}
|
233
|
+
|
234
|
+
&.off-canvas-right {
|
235
|
+
header {
|
236
|
+
&.has-navigation {
|
237
|
+
grid-template-areas: "company-logo main-navigation";
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
223
241
|
}
|
224
242
|
}
|
225
243
|
|
226
244
|
@media only screen and (max-width: $medium-max-width) {
|
227
|
-
.cmd-site-header{
|
228
|
-
|
229
|
-
|
230
|
-
padding-bottom: calc(var(--default-padding) * 2);
|
231
|
-
}
|
245
|
+
.cmd-site-header {
|
246
|
+
padding-top: calc(var(--default-padding) * 2);
|
247
|
+
padding-bottom: calc(var(--default-padding) * 2);
|
232
248
|
|
233
249
|
header {
|
234
250
|
grid-auto-rows: auto; /* items should be as large as their content */
|
@@ -241,46 +257,12 @@ export default {
|
|
241
257
|
}
|
242
258
|
|
243
259
|
&.navigation-inline {
|
244
|
-
header {
|
245
|
-
&.has-navigation {
|
246
|
-
grid-template-areas: "main-navigation company-logo";
|
247
|
-
}
|
248
|
-
|
249
|
-
.cmd-company-logo {
|
250
|
-
grid-column: span var(--grid-small-span);
|
251
|
-
grid-column-end: -1
|
252
|
-
}
|
253
|
-
}
|
254
|
-
|
255
260
|
.cmd-main-navigation#main-navigation-wrapper {
|
256
|
-
grid-column: 1;
|
257
|
-
|
258
261
|
&:not(.persist-on-mobile) {
|
259
262
|
padding-left: var(--default-padding);
|
260
263
|
}
|
261
264
|
}
|
262
265
|
}
|
263
|
-
|
264
|
-
&.navigation-inline.off-canvas-right {
|
265
|
-
header {
|
266
|
-
&.has-navigation {
|
267
|
-
grid-template-areas: "company-logo main-navigation";
|
268
|
-
}
|
269
|
-
|
270
|
-
.cmd-company-logo {
|
271
|
-
grid-column: span var(--grid-large-span);
|
272
|
-
}
|
273
|
-
}
|
274
|
-
|
275
|
-
.cmd-main-navigation#main-navigation-wrapper {
|
276
|
-
grid-column: -1;
|
277
|
-
|
278
|
-
&:not(.persist-on-mobile) {
|
279
|
-
padding-right: var(--default-padding);
|
280
|
-
padding-left: 0;
|
281
|
-
}
|
282
|
-
}
|
283
|
-
}
|
284
266
|
}
|
285
267
|
}
|
286
268
|
|
@@ -130,10 +130,6 @@ export default {
|
|
130
130
|
border-top-right-radius: var(--border-radius);
|
131
131
|
text-decoration: none;
|
132
132
|
|
133
|
-
span, [class*="icon-"] {
|
134
|
-
line-height: 100%;
|
135
|
-
}
|
136
|
-
|
137
133
|
&:hover, &:active, &:focus {
|
138
134
|
cursor: pointer;
|
139
135
|
color: var(--hyperlink-color-highlighted);
|
@@ -145,16 +141,12 @@ export default {
|
|
145
141
|
}
|
146
142
|
|
147
143
|
&.active {
|
148
|
-
span, [class*="icon-"] {
|
149
|
-
color: var(--pure-white);
|
150
|
-
}
|
151
|
-
|
152
144
|
&:hover, &:active, &:focus {
|
153
145
|
color: var(--hyperlink-color);
|
154
146
|
background: var(--pure-white);
|
155
147
|
|
156
148
|
span, [class*="icon-"] {
|
157
|
-
color:
|
149
|
+
color: inherit;
|
158
150
|
}
|
159
151
|
}
|
160
152
|
}
|
@@ -387,12 +387,6 @@ export default {
|
|
387
387
|
}
|
388
388
|
}
|
389
389
|
|
390
|
-
@media only screen and (width <= #{$small-max-width}) {
|
391
|
-
.cmd-thumbnail-scroller {
|
392
|
-
display: block;
|
393
|
-
}
|
394
|
-
}
|
395
|
-
|
396
390
|
@container (width <= #{$small-max-width}) {
|
397
391
|
.cmd-thumbnail-scroller {
|
398
392
|
display: block;
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<CmdIcon
|
12
12
|
:iconClass="iconClass"
|
13
13
|
:type="iconType"
|
14
|
-
:tooltip="
|
14
|
+
:tooltip="!showLabel ? labelText: ''"
|
15
15
|
/>
|
16
16
|
<!-- end CmdIcon -->
|
17
17
|
</a>
|
@@ -56,12 +56,11 @@ export default {
|
|
56
56
|
*
|
57
57
|
* (styledAsButton-property must be activated)
|
58
58
|
*/
|
59
|
-
|
59
|
+
iconDarkMode: {
|
60
60
|
default() {
|
61
61
|
return {
|
62
|
-
iconClass: "icon-
|
63
|
-
iconType: "auto"
|
64
|
-
tooltip: "Activate light mode"
|
62
|
+
iconClass: "icon-home",
|
63
|
+
iconType: "auto"
|
65
64
|
}
|
66
65
|
}
|
67
66
|
},
|
@@ -70,12 +69,11 @@ export default {
|
|
70
69
|
*
|
71
70
|
* (styledAsButton-property must be activated)
|
72
71
|
*/
|
73
|
-
|
72
|
+
iconLightMode: {
|
74
73
|
default() {
|
75
74
|
return {
|
76
|
-
iconClass: "icon-
|
77
|
-
iconType: "auto"
|
78
|
-
tooltip: "Activate dark mode"
|
75
|
+
iconClass: "icon-globe",
|
76
|
+
iconType: "auto"
|
79
77
|
}
|
80
78
|
}
|
81
79
|
},
|
@@ -159,13 +157,10 @@ export default {
|
|
159
157
|
return this.darkMode ? this.labelTextDarkMode : this.labelTextLightMode
|
160
158
|
},
|
161
159
|
iconClass() {
|
162
|
-
return this.darkMode ? this.
|
160
|
+
return this.darkMode ? this.iconDarkMode.iconClass : this.iconLightMode.iconClass
|
163
161
|
},
|
164
162
|
iconType() {
|
165
|
-
return this.darkMode ? this.
|
166
|
-
},
|
167
|
-
iconTooltip() {
|
168
|
-
return this.darkMode ? this.iconDarkModeActivated.tooltip : this.iconLightModeActivated.tooltip
|
163
|
+
return this.darkMode ? this.iconDarkMode.iconType : this.iconLightMode.iconType
|
169
164
|
}
|
170
165
|
},
|
171
166
|
watch: {
|
@@ -10,10 +10,10 @@ export default {
|
|
10
10
|
"cmdaddressdata.labeltext.email": "Email:",
|
11
11
|
"cmdaddressdata.labeltext.website": "Web site:",
|
12
12
|
"cmdaddressdata.labeltext.custom": "Custom:",
|
13
|
-
"cmdaddressdata.
|
14
|
-
"cmdaddressdata.
|
15
|
-
"cmdaddressdata.
|
16
|
-
"cmdaddressdata.
|
13
|
+
"cmdaddressdata.title.open_address_on_google_maps:": "Open address on GoogleMaps™ (in new tab)",
|
14
|
+
"cmdaddressdata.title.call_number": "Call number",
|
15
|
+
"cmdaddressdata.title.send_email": "Send email",
|
16
|
+
"cmdaddressdata.title.visit_website": "Visit web site (in new tab)"
|
17
17
|
}
|
18
18
|
}
|
19
19
|
}
|