comand-component-library 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.2.03",
3
+ "version": "3.2.04",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,87 +1,87 @@
1
1
  <template>
2
- <!-- <transition name="fade">-->
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 -->
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 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 -->
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
- <div v-else class="content">
69
- <!-- begin slot-content -->
70
- <slot></slot>
71
- <!-- end slot-content -->
72
- </div>
73
- </div>
74
- </dialog>
75
- <!-- begin CmdThumbnailScroller -->
76
- <CmdThumbnailScroller
77
- v-if="fancyBoxGallery"
78
- :thumbnailScrollerItems="[...fancyBoxGallery]"
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>