comand-component-library 4.0.47 → 4.0.48

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": "4.0.47",
3
+ "version": "4.0.48",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1471,8 +1471,8 @@
1471
1471
  Image-Zoom
1472
1472
  </h2>
1473
1473
  <CmdImageZoom
1474
- :imageSmall="imageData[2]"
1475
- :imageLarge="imageData[3]"
1474
+ :imageSmall="imageZoomData.imageSmall"
1475
+ :imageLarge="imageZoomData.imageLarge"
1476
1476
  />
1477
1477
  </CmdWidthLimitationWrapper>
1478
1478
  <!-- end image-zoom ------------------------------------------------------------------------------------------------------------------------------------------------------->
@@ -2046,6 +2046,7 @@ import fakeSelectFilterOptionsData from '@/assets/data/fake-select-filter-option
2046
2046
  import fakeSelectOptionsData from '@/assets/data/fake-select-options.json'
2047
2047
  import formElementsData from '@/assets/data/form-elements.json'
2048
2048
  import imageData from '@/assets/data/image.json'
2049
+ import imageZoomData from '@/assets/data/image-zoom.json'
2049
2050
  import imageGalleryData from '@/assets/data/image-gallery.json'
2050
2051
  import inputGroupRadiobuttonsData from '@/assets/data/input-group-radiobuttons.json'
2051
2052
  import inputGroupReplacedRadiobuttonsData from '@/assets/data/input-group-replaced-radiobuttons.json'
@@ -2218,6 +2219,7 @@ export default {
2218
2219
  fakeSelectOptionsData,
2219
2220
  formElementsData,
2220
2221
  imageData,
2222
+ imageZoomData,
2221
2223
  imageGalleryData,
2222
2224
  inputGroupReplacedRadiobuttonsData,
2223
2225
  inputGroupToggleSwitchRadiobuttonsData,
@@ -0,0 +1,28 @@
1
+ {
2
+ "imageSmall": {
3
+ "image": {
4
+ "src": "media/images/demo-images/small/landscape-06.jpg",
5
+ "alt": "Alternative text",
6
+ "tooltip": "Tooltip"
7
+ },
8
+ "figcaption": {
9
+ "show": true,
10
+ "position": "top",
11
+ "text": "Figcaption above image (centered)",
12
+ "textAlign": "center"
13
+ }
14
+ },
15
+ "imageLarge": {
16
+ "image": {
17
+ "src": "media/images/demo-images/landscape-2x.jpg",
18
+ "alt": "Alternative text",
19
+ "tooltip": "Tooltip"
20
+ },
21
+ "figcaption": {
22
+ "show": true,
23
+ "position": "top",
24
+ "text": "Figcaption above image (centered)",
25
+ "textAlign": "center"
26
+ }
27
+ }
28
+ }
@@ -27,7 +27,7 @@
27
27
  v-model="editableFigcaptionText"
28
28
  />
29
29
  <!-- end CmdFormElement -->
30
- <figcaption v-else-if="figcaption?.text" v-html="figcaption?.text" />
30
+ <figcaption v-else-if="figcaption?.text" v-html="figcaption?.text"/>
31
31
  </template>
32
32
  <!-- end figcaption above image -->
33
33
 
@@ -77,7 +77,7 @@
77
77
  placeholder="figcaption"
78
78
  />
79
79
  <!-- end CmdFormElement -->
80
- <figcaption v-else-if="figcaption?.text" v-html="figcaption?.text" />
80
+ <figcaption v-else-if="figcaption?.text" v-html="figcaption?.text"/>
81
81
  </template>
82
82
  <!-- end figcaption below image -->
83
83
 
@@ -96,14 +96,19 @@
96
96
  <!-- end edit-mode -->
97
97
 
98
98
  <!-- begin default-view -->
99
- <figure v-else :class="['cmd-image', textAlign]">
100
- <figcaption v-if="figcaption?.show && figcaption?.position === 'top'" v-html="figcaption?.text" />
101
- <img :src="imageSource" :alt="image?.alt" :title="image?.tooltip" @load="onImageLoaded" />
102
- <figcaption v-if="figcaption?.show && figcaption?.position !== 'top'" v-html="figcaption?.text" />
99
+ <!-- begin image with figure/figcaption -->
100
+ <figure v-else-if="figcaption?.show" :class="['cmd-image', textAlign]">
101
+ <figcaption v-if="figcaption?.position === 'top'" v-html="figcaption?.text"/>
102
+ <img :src="imageSource" :alt="image?.alt" :title="image?.tooltip" @load="onImageLoaded"/>
103
+ <figcaption v-if="figcaption?.position !== 'top'" v-html="figcaption?.text"/>
103
104
  </figure>
105
+ <!-- end image with figure/figcaption -->
106
+
107
+ <!-- begin image without figure/figcaption -->
108
+ <img v-else :src="imageSource" :alt="image?.alt" :title="image?.tooltip" @load="onImageLoaded"/>
109
+ <!-- end image without figure/figcaption -->
104
110
  <!-- end default-view -->
105
111
  </template>
106
-
107
112
  <script>
108
113
  import {createUuid} from "../utils/common.js"
109
114
  import {checkAndUploadFile} from "../utils/checkAndUploadFile"
@@ -13,12 +13,12 @@
13
13
  <!-- end small image -->
14
14
 
15
15
  <!-- begin large image -->
16
- <div v-if="showLargeImage" class="zoom-container">
16
+ <div class="zoom-container">
17
17
  <!-- begin CmdImage for large image -->
18
18
  <CmdImage v-bind="imageLarge" :figcaption="{}" />
19
19
  <!-- end CmdImage for large image -->
20
20
  </div>
21
- <div v-if="showLargeImage" class="zoom-overlay"></div>
21
+ <div class="zoom-overlay"></div>
22
22
  <!-- end large image -->
23
23
  </div>
24
24
  </template>
package/src/index.js CHANGED
@@ -66,4 +66,7 @@ export { createUuid, createHtmlId } from '@/utils/common'
66
66
  export { getFileExtension } from '@/utils/getFileExtension'
67
67
 
68
68
  // export composables
69
- export { useSequence } from '@/composables/sequence'
69
+ export { useSequence } from '@/composables/sequence'
70
+
71
+ // export mixins
72
+ export { default as I18n } from '@/mixins/I18n.js'