comand-component-library 3.1.28 → 3.1.29
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/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
</a>
|
13
13
|
<a v-else href="#" :title="tooltip" @click.prevent="toggleContentVisibility(accordionContent)">
|
14
14
|
<slot :name="'customHeadline' + index"><p>{{ accordionContent.headline }}</p></slot>
|
15
|
-
<span class="toggle-icon" :class="[accordionContent.status ?
|
15
|
+
<span class="toggle-icon" :class="[accordionContent.status ? iconOpen.icon.iconClass : iconClosed.icon.iconClass]"></span>
|
16
16
|
</a>
|
17
17
|
<transition :name="toggleTransition">
|
18
18
|
<div class="accordion-content" v-if="accordionContent.status" aria-expanded="true">
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<template>
|
2
2
|
<a href="#"
|
3
3
|
@click.prevent
|
4
|
-
:class="['cmd-slide-button', 'button',
|
5
|
-
:title="
|
4
|
+
:class="['cmd-slide-button', 'button', slideButtons.next ? 'next' : 'previous']"
|
5
|
+
:title="slideButtons.next ? slideButtons.next.tooltip : slideButtons.prev.tooltip">
|
6
6
|
<span
|
7
|
-
:class="
|
7
|
+
:class="slideButtons.next ? slideButtons.next.iconClass : slideButtons.prev.iconClass"></span>
|
8
8
|
</a>
|
9
9
|
</template>
|
10
10
|
|
@@ -15,9 +15,20 @@ export default {
|
|
15
15
|
/**
|
16
16
|
* set slide-button to "next" (= right), else it will be displayed as previous (=left) button
|
17
17
|
*/
|
18
|
-
|
18
|
+
slideButtons: {
|
19
19
|
type: Object,
|
20
|
-
|
20
|
+
default: function() {
|
21
|
+
return {
|
22
|
+
prev: {
|
23
|
+
iconClass: "icon-single-arrow-left",
|
24
|
+
tooltip: "Previous"
|
25
|
+
},
|
26
|
+
next: {
|
27
|
+
iconClass: "icon-single-arrow-right",
|
28
|
+
tooltip: "Next"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
21
32
|
}
|
22
33
|
}
|
23
34
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="cmd-slideshow" :class="{'full-width': fullWidth}">
|
3
3
|
<div class="inner-slideshow-wrapper" @mouseenter="pause = true" @mouseleave="pause = false">
|
4
|
-
<CmdSlideButton @click.prevent="showPrevItem" :
|
4
|
+
<CmdSlideButton @click.prevent="showPrevItem" :slideButtons="slideButtons.prev"/>
|
5
5
|
<transition name="fade">
|
6
6
|
<a v-if="currentItem.href" :href="currentItem.href" :key="index" :title="currentItem.title">
|
7
7
|
<figure v-if="currentItem && !useSlot" class="slideshow-item">
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<slot :name="'item' + currentSlotItem"></slot>
|
23
23
|
</div>
|
24
24
|
</transition>
|
25
|
-
<CmdSlideButton @click.prevent="showNextItem" :
|
25
|
+
<CmdSlideButton @click.prevent="showNextItem" :slideButtons="slideButtons.next"/>
|
26
26
|
<ol v-if="showQuickLinkIcons">
|
27
27
|
<li v-for="(item, i) in slideshowItems" :key="i" :class="{active: i === index }">
|
28
28
|
<a href="#" @click.prevent="index = i" :aria-label="index"></a>
|
@@ -104,15 +104,18 @@ export default {
|
|
104
104
|
type: Object,
|
105
105
|
default() {
|
106
106
|
return {
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
107
|
+
next: {
|
108
|
+
next: {
|
109
|
+
"iconClass": "icon-single-arrow-right",
|
110
|
+
"tooltip": "Next"
|
111
|
+
}
|
111
112
|
},
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
113
|
+
prev: {
|
114
|
+
prev: {
|
115
|
+
"type": "prev",
|
116
|
+
"iconClass": "icon-single-arrow-left",
|
117
|
+
"tooltip": "Previous"
|
118
|
+
}
|
116
119
|
}
|
117
120
|
}
|
118
121
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div :class="['cmd-thumbnail-scroller', {'gallery-scroller' : !allowOpenFancyBox}]">
|
3
|
-
<CmdSlideButton @click.prevent="showPrevItem" :
|
3
|
+
<CmdSlideButton @click.prevent="showPrevItem" :slideButtons="cmdSlideButtons.prev"/>
|
4
4
|
<transition-group name="slide" tag="ul">
|
5
5
|
<li v-for="(image, index) in thumbnails" :key="image.imgId" :class="{'active' : imgIndex === index}">
|
6
6
|
<a href="#" @click.prevent="showFancyBox(index)">
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</a>
|
13
13
|
</li>
|
14
14
|
</transition-group>
|
15
|
-
<CmdSlideButton @click.prevent="showNextItem" :
|
15
|
+
<CmdSlideButton @click.prevent="showNextItem" :slideButtons="cmdSlideButtons.next"/>
|
16
16
|
</div>
|
17
17
|
</template>
|
18
18
|
|
@@ -72,14 +72,18 @@ export default {
|
|
72
72
|
default() {
|
73
73
|
return {
|
74
74
|
"next": {
|
75
|
-
"
|
76
|
-
|
77
|
-
|
75
|
+
"next": {
|
76
|
+
type: "next",
|
77
|
+
"iconClass": "icon-single-arrow-right",
|
78
|
+
"tooltip": "Next"
|
79
|
+
}
|
78
80
|
},
|
79
|
-
"
|
80
|
-
"
|
81
|
-
|
82
|
-
|
81
|
+
"prev": {
|
82
|
+
"prev": {
|
83
|
+
type: "prev",
|
84
|
+
"iconClass": "icon-single-arrow-left",
|
85
|
+
"tooltip": "Previous"
|
86
|
+
}
|
83
87
|
}
|
84
88
|
}
|
85
89
|
}
|