comand-component-library 3.3.28 → 3.3.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="['cmd-thumbnail-scroller', {'gallery-scroller' : !allowOpenFancyBox, 'full-width' : fullWidth}]">
2
+ <div :class="['cmd-thumbnail-scroller', {'gallery-scroller' : !allowOpenFancyBox, 'full-width' : fullWidth, 'large-icons': largeIcons}]">
3
3
  <!-- begin CmdSlideButton -->
4
4
  <CmdSlideButton
5
5
  @click.prevent="showPrevItem"
@@ -71,6 +71,15 @@ export default {
71
71
  type: Boolean,
72
72
  default: false
73
73
  },
74
+ /**
75
+ * activate if large icons should be displayed above link text
76
+ *
77
+ * @affectsStyling: true
78
+ */
79
+ largeIcons: {
80
+ type: Boolean,
81
+ default: false
82
+ },
74
83
  /**
75
84
  * set content-type
76
85
  *
@@ -180,8 +189,6 @@ export default {
180
189
  this.emitCurrentItemId(index)
181
190
  },
182
191
  emitCurrentItemId(index) {
183
- console.log("index", index)
184
- console.log("this.items[index]", this.items[index])
185
192
  // emit id of current/clicked item
186
193
  this.$emit("click", this.items[index].id)
187
194
  },
@@ -342,6 +349,25 @@ export default {
342
349
  }
343
350
  }
344
351
 
352
+ &.large-icons {
353
+ li a {
354
+ display: flex;
355
+ flex-direction: column;
356
+ gap: calc(var(--default-gap) / 4);
357
+ text-decoration: none;
358
+ align-items: center;
359
+ justify-content: center;
360
+
361
+ span {
362
+ margin: 0;
363
+ }
364
+
365
+ [class*="icon-"] {
366
+ font-size: 5rem;
367
+ }
368
+ }
369
+ }
370
+
345
371
  @media only screen and (max-width: $medium-max-width) {
346
372
  & > ul > li {
347
373
  flex: none;
@@ -361,6 +387,12 @@ export default {
361
387
  }
362
388
  }
363
389
 
390
+ @media only screen and (width <= #{$small-max-width}) {
391
+ .cmd-thumbnail-scroller {
392
+ display: block;
393
+ }
394
+ }
395
+
364
396
  @container (width <= #{$small-max-width}) {
365
397
  .cmd-thumbnail-scroller {
366
398
  display: block;
@@ -11,7 +11,7 @@
11
11
  <CmdIcon
12
12
  :iconClass="iconClass"
13
13
  :type="iconType"
14
- :tooltip="!showLabel ? labelText: ''"
14
+ :tooltip="iconTooltip"
15
15
  />
16
16
  <!-- end CmdIcon -->
17
17
  </a>
@@ -56,11 +56,12 @@ export default {
56
56
  *
57
57
  * (styledAsButton-property must be activated)
58
58
  */
59
- iconDarkMode: {
59
+ iconDarkModeActivated: {
60
60
  default() {
61
61
  return {
62
- iconClass: "icon-home",
63
- iconType: "auto"
62
+ iconClass: "icon-sun",
63
+ iconType: "auto",
64
+ tooltip: "Activate light mode"
64
65
  }
65
66
  }
66
67
  },
@@ -69,11 +70,12 @@ export default {
69
70
  *
70
71
  * (styledAsButton-property must be activated)
71
72
  */
72
- iconLightMode: {
73
+ iconLightModeActivated: {
73
74
  default() {
74
75
  return {
75
- iconClass: "icon-globe",
76
- iconType: "auto"
76
+ iconClass: "icon-moon",
77
+ iconType: "auto",
78
+ tooltip: "Activate dark mode"
77
79
  }
78
80
  }
79
81
  },
@@ -157,10 +159,13 @@ export default {
157
159
  return this.darkMode ? this.labelTextDarkMode : this.labelTextLightMode
158
160
  },
159
161
  iconClass() {
160
- return this.darkMode ? this.iconDarkMode.iconClass : this.iconLightMode.iconClass
162
+ return this.darkMode ? this.iconDarkModeActivated.iconClass : this.iconLightModeActivated.iconClass
161
163
  },
162
164
  iconType() {
163
- return this.darkMode ? this.iconDarkMode.iconType : this.iconLightMode.iconType
165
+ return this.darkMode ? this.iconDarkModeActivated.iconType : this.iconLightModeActivated.iconType
166
+ },
167
+ iconTooltip() {
168
+ return this.darkMode ? this.iconDarkModeActivated.tooltip : this.iconLightModeActivated.tooltip
164
169
  }
165
170
  },
166
171
  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.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)"
13
+ "cmdaddressdata.tooltip.open_address_on_google_maps:": "Open address on GoogleMaps™ (in new tab)",
14
+ "cmdaddressdata.tooltip.call_number": "Call number",
15
+ "cmdaddressdata.tooltip.send_email": "Send email",
16
+ "cmdaddressdata.tooltip.visit_website": "Visit web site (in new tab)"
17
17
  }
18
18
  }
19
19
  }