comand-component-library 3.2.3 → 3.2.4
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
@@ -1,87 +1,87 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
</div>
|
36
|
-
<div :class="{'grayscale' : printInGrayscale}">
|
37
|
-
<!-- begin CmdHeadline -->
|
38
|
-
<CmdHeadline
|
39
|
-
v-if="cmdHeadline?.show"
|
40
|
-
:headlineText="cmdHeadline?.headlineText"
|
41
|
-
:headlineLevel="cmdHeadline?.headlineLevel"
|
42
|
-
:id="htmlId"
|
43
|
-
/>
|
44
|
-
<!-- end CmdHeadline -->
|
45
|
-
|
46
|
-
<div v-if="fancyBoxImageUrl" class="content">
|
47
|
-
<img :src="fancyBoxImageUrl" :alt="altText"/>
|
2
|
+
<teleport to="body">
|
3
|
+
<dialog
|
4
|
+
ref="dialog"
|
5
|
+
:class="['cmd-fancybox', {'show-overlay': showOverlay, 'image' : fancyBoxImageUrl || fancyBoxGallery}]"
|
6
|
+
:aria-label="ariaLabelText"
|
7
|
+
>
|
8
|
+
<!-- begin print buttons -->
|
9
|
+
<div class="button-wrapper no-flex"
|
10
|
+
v-if="(fancyboxOptions.printButtons && (fancyboxOptions.printButtons.color || fancyboxOptions.printButtons.grayscale)) || fancyboxOptions.closeIcon">
|
11
|
+
<a href="#"
|
12
|
+
v-if="fancyboxOptions.printButtons && fancyboxOptions.printButtons.color && fancyboxOptions.printButtons.color.show"
|
13
|
+
:class="['button', fancyboxOptions.printButtons.color.iconClass]"
|
14
|
+
:title="fancyboxOptions.printButtons.color.tooltip"
|
15
|
+
id="print-color"
|
16
|
+
@click.prevent="printInGrayscale = false">
|
17
|
+
</a>
|
18
|
+
<a href="#"
|
19
|
+
v-if="fancyboxOptions.printButtons && fancyboxOptions.printButtons.grayscale && fancyboxOptions.printButtons.grayscale.show"
|
20
|
+
:class="['button', fancyboxOptions.printButtons.grayscale.iconClass]"
|
21
|
+
:title="fancyboxOptions.printButtons.grayscale.tooltip"
|
22
|
+
id="print-grayscale"
|
23
|
+
@click.prevent="printInGrayscale = true">
|
24
|
+
</a>
|
25
|
+
<!-- end print buttons -->
|
26
|
+
|
27
|
+
<!-- begin close-icon -->
|
28
|
+
<a href="#"
|
29
|
+
v-if="fancyboxOptions.closeIcon"
|
30
|
+
:class="fancyboxOptions.closeIcon.iconClass"
|
31
|
+
:title="fancyboxOptions.closeIcon.tooltip"
|
32
|
+
@click.prevent="close">
|
33
|
+
</a>
|
34
|
+
<!-- end close-icon -->
|
48
35
|
</div>
|
49
|
-
<div
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<!--
|
58
|
-
|
59
|
-
|
60
|
-
<
|
61
|
-
</
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
36
|
+
<div :class="{'grayscale' : printInGrayscale}">
|
37
|
+
<!-- begin CmdHeadline -->
|
38
|
+
<CmdHeadline
|
39
|
+
v-if="cmdHeadline?.show"
|
40
|
+
:headlineText="cmdHeadline?.headlineText"
|
41
|
+
:headlineLevel="cmdHeadline?.headlineLevel"
|
42
|
+
:id="htmlId"
|
43
|
+
/>
|
44
|
+
<!-- end CmdHeadline -->
|
45
|
+
|
46
|
+
<div v-if="fancyBoxImageUrl" class="content">
|
47
|
+
<img :src="fancyBoxImageUrl" :alt="altText"/>
|
48
|
+
</div>
|
49
|
+
<div v-else-if="fancyBoxContent" class="content" v-html="fancyBoxContent"></div>
|
50
|
+
<div v-else-if="fancyBoxElements" class="content"></div>
|
51
|
+
<div v-else-if="fancyBoxGallery" class="content">
|
52
|
+
|
53
|
+
<!-- begin CmdSlideButton -->
|
54
|
+
<CmdSlideButton @click.prevent="showPrevItem" slideButtonType="prev"/>
|
55
|
+
<!-- end CmdSlideButton -->
|
56
|
+
|
57
|
+
<!-- begin enlarged image -->
|
58
|
+
<figure>
|
59
|
+
<img :src="fancyBoxGallery[index].srcImageLarge" :alt="fancyBoxGallery[index].alt"/>
|
60
|
+
<figcaption>{{ fancyBoxGallery[index].figcaption }}</figcaption>
|
61
|
+
</figure>
|
62
|
+
<!-- end enlarged image -->
|
63
|
+
|
64
|
+
<!-- begin CmdSlideButton -->
|
65
|
+
<CmdSlideButton @click.prevent="showNextItem"/>
|
66
|
+
<!-- end CmdSlideButton -->
|
67
|
+
</div>
|
68
|
+
<div v-else class="content">
|
69
|
+
<!-- begin slot-content -->
|
70
|
+
<slot></slot>
|
71
|
+
<!-- end slot-content -->
|
72
|
+
</div>
|
67
73
|
</div>
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
:allowOpenFancyBox="false"
|
80
|
-
@click="showItem"
|
81
|
-
:imgIndex="index"
|
82
|
-
/>
|
83
|
-
<!-- end CmdThumbnailScroller -->
|
84
|
-
<!-- </transition>-->
|
74
|
+
<!-- begin CmdThumbnailScroller -->
|
75
|
+
<CmdThumbnailScroller
|
76
|
+
v-if="fancyBoxGallery"
|
77
|
+
:thumbnailScrollerItems="[...fancyBoxGallery]"
|
78
|
+
:allowOpenFancyBox="false"
|
79
|
+
@click="showItem"
|
80
|
+
:imgIndex="index"
|
81
|
+
/>
|
82
|
+
<!-- end CmdThumbnailScroller -->
|
83
|
+
</dialog>
|
84
|
+
</teleport>
|
85
85
|
</template>
|
86
86
|
|
87
87
|
<script>
|