@gem-sdk/components 2.0.0-dev.693 → 2.0.0-dev.694

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.
Files changed (176) hide show
  1. package/dist/cjs/builder.js +6 -12
  2. package/dist/cjs/index.js +32 -34
  3. package/dist/cjs/index.liquid.js +10 -16
  4. package/dist/cjs/next.js +1 -3
  5. package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
  6. package/dist/cjs/product/index.js +4 -6
  7. package/dist/cjs/product/next.js +0 -4
  8. package/dist/cjs/setting.js +76 -78
  9. package/dist/esm/builder.js +0 -6
  10. package/dist/esm/index.js +0 -1
  11. package/dist/esm/index.liquid.js +0 -3
  12. package/dist/esm/next.js +1 -3
  13. package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
  14. package/dist/esm/product/index.js +24 -26
  15. package/dist/esm/product/next.js +0 -4
  16. package/dist/esm/setting.js +0 -2
  17. package/dist/types/index.d.ts +116 -551
  18. package/package.json +1 -1
  19. package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
  20. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
  21. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
  22. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
  23. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
  24. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
  25. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
  26. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
  27. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
  28. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
  29. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
  30. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
  31. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
  32. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
  33. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
  34. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
  35. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
  36. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
  37. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
  38. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
  39. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
  40. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
  41. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
  42. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
  43. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
  44. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
  45. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
  46. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
  47. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
  48. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
  49. package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
  50. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
  51. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
  52. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
  53. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
  54. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
  55. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -519
  56. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -337
  57. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
  58. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
  59. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
  60. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
  61. package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
  62. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
  63. package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
  64. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
  65. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
  66. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
  67. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
  68. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
  69. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
  70. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
  71. package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
  72. package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
  73. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
  74. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
  75. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
  76. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
  77. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
  78. package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
  79. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
  80. package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
  81. package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
  82. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
  83. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
  84. package/dist/cjs/swiper-carousel/index.js +0 -17
  85. package/dist/cjs/swiper-carousel/next.js +0 -22
  86. package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
  87. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
  88. package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
  89. package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
  90. package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
  91. package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
  92. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
  93. package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
  94. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
  95. package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
  96. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -822
  97. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
  98. package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
  99. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
  100. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
  101. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
  102. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
  103. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
  104. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
  105. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
  106. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
  107. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
  108. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
  109. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
  110. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
  111. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
  112. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
  113. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
  114. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
  115. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
  116. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
  117. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
  118. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
  119. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
  120. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
  121. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
  122. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
  123. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
  124. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
  125. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
  126. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
  127. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
  128. package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
  129. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
  130. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
  131. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
  132. package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
  133. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
  134. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -516
  135. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -335
  136. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
  137. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
  138. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
  139. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
  140. package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
  141. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
  142. package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
  143. package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
  144. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
  145. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
  146. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
  147. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
  148. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
  149. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
  150. package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
  151. package/dist/esm/swiper-carousel/components/const/index.js +0 -3
  152. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
  153. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
  154. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
  155. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
  156. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
  157. package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
  158. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
  159. package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
  160. package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
  161. package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
  162. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
  163. package/dist/esm/swiper-carousel/index.js +0 -15
  164. package/dist/esm/swiper-carousel/next.js +0 -18
  165. package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
  166. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
  167. package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
  168. package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
  169. package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
  170. package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
  171. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
  172. package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
  173. package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
  174. package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
  175. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -818
  176. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
@@ -1,252 +0,0 @@
1
- 'use strict';
2
-
3
- const productFeatureImageUI = [
4
- {
5
- type: 'control',
6
- setting: {
7
- id: 'ftShape'
8
- },
9
- layout: 'vertical',
10
- controlChangeTrigger: {
11
- settings: [
12
- {
13
- condition: "ftShape.shape === 'original'",
14
- source: [
15
- 'ftShape'
16
- ],
17
- action: {
18
- controlId: 'ftLayout',
19
- newValue: 'contain',
20
- groupType: 'style',
21
- controlType: 'style'
22
- }
23
- }
24
- ],
25
- options: {
26
- noRecordHistory: true
27
- }
28
- }
29
- },
30
- {
31
- type: 'control',
32
- condition: "ftShape.shape !== 'original'",
33
- label: {
34
- en: 'Image scale'
35
- },
36
- setting: {
37
- id: 'ftLayout'
38
- },
39
- isMoreSetting: true
40
- },
41
- {
42
- type: 'control',
43
- label: {
44
- en: 'Hover effect'
45
- },
46
- setting: {
47
- id: 'hoverEffect'
48
- },
49
- isMoreSetting: true
50
- },
51
- {
52
- type: 'control',
53
- label: {
54
- en: 'Zoom type'
55
- },
56
- condition: 'hoverEffect == "zoom"',
57
- setting: {
58
- id: 'zoomType'
59
- },
60
- isMoreSetting: true
61
- },
62
- {
63
- type: 'control',
64
- label: {
65
- en: 'Zoom value'
66
- },
67
- condition: 'hoverEffect == "zoom"',
68
- setting: {
69
- id: 'zoom'
70
- },
71
- isMoreSetting: true
72
- },
73
- {
74
- type: 'control',
75
- label: {
76
- en: 'Other image'
77
- },
78
- condition: 'hoverEffect == "other"',
79
- setting: {
80
- id: 'otherImage'
81
- },
82
- isMoreSetting: true
83
- },
84
- {
85
- type: 'control',
86
- label: {
87
- en: 'Click effect'
88
- },
89
- setting: {
90
- id: 'ftClickOpenLightBox'
91
- },
92
- isMoreSetting: true
93
- },
94
- {
95
- type: 'control',
96
- label: {
97
- en: 'Open link in'
98
- },
99
- setting: {
100
- id: 'ftClickOpenNewTab'
101
- },
102
- condition: `ftClickOpenLightBox === "product-link"`,
103
- isMoreSetting: true
104
- },
105
- {
106
- type: 'control',
107
- label: {
108
- en: 'Corner'
109
- },
110
- setting: {
111
- id: 'ftCorner'
112
- },
113
- isMoreSetting: true
114
- },
115
- {
116
- type: 'control',
117
- label: {
118
- en: 'Drag to scroll'
119
- },
120
- setting: {
121
- id: 'ftDragToScroll'
122
- },
123
- isMoreSetting: true
124
- },
125
- {
126
- type: 'control',
127
- label: {
128
- en: 'Loop'
129
- },
130
- setting: {
131
- id: 'ftLoop'
132
- },
133
- isMoreSetting: true
134
- },
135
- {
136
- type: 'control',
137
- label: {
138
- en: 'Slide speed'
139
- },
140
- setting: {
141
- id: 'ftAnimationSpeed'
142
- },
143
- isMoreSetting: true
144
- },
145
- {
146
- type: 'control',
147
- label: {
148
- en: 'Animation'
149
- },
150
- setting: {
151
- id: 'ftAnimationMode'
152
- },
153
- isMoreSetting: true
154
- }
155
- ];
156
- const productSelectImage = [
157
- // tạm ẩn khi hỗ trợ đủ 2 option sẽ mở
158
- // {
159
- // type: 'control',
160
- // setting: {
161
- // id: 'typeDisplay',
162
- // },
163
- // layout: 'vertical',
164
- // },
165
- {
166
- type: 'control',
167
- label: {
168
- en: 'Pre-display'
169
- },
170
- setting: {
171
- id: 'preDisplay'
172
- }
173
- },
174
- {
175
- type: 'control',
176
- label: {
177
- en: 'Preload'
178
- },
179
- setting: {
180
- id: 'preload'
181
- }
182
- }
183
- ];
184
- const productFeatureImageNavigationUI = [
185
- {
186
- type: 'control',
187
- label: {
188
- en: 'Navigation'
189
- },
190
- setting: {
191
- id: 'ftNavigationPosition'
192
- },
193
- layout: 'vertical'
194
- },
195
- {
196
- type: 'control',
197
- layout: 'vertical',
198
- condition: 'ftNavigationPosition !== "none"',
199
- setting: {
200
- id: 'ftArrowIcon'
201
- },
202
- isMoreSetting: true
203
- },
204
- {
205
- type: 'control',
206
- condition: 'ftNavigationPosition !== "none"',
207
- label: {
208
- en: 'Icon color'
209
- },
210
- setting: {
211
- id: 'ftArrowIconColor'
212
- },
213
- isMoreSetting: true
214
- },
215
- {
216
- type: 'control',
217
- condition: 'ftNavigationPosition !== "none"',
218
- label: {
219
- en: 'Nav. color'
220
- },
221
- setting: {
222
- id: 'ftArrowNavColor'
223
- },
224
- isMoreSetting: true
225
- },
226
- {
227
- type: 'control',
228
- condition: 'ftNavigationPosition !== "none"',
229
- label: {
230
- en: 'Nav. border'
231
- },
232
- setting: {
233
- id: 'ftArrowNavBorder'
234
- },
235
- isMoreSetting: true
236
- },
237
- {
238
- type: 'control',
239
- condition: 'ftNavigationPosition !== "none"',
240
- label: {
241
- en: 'Nav. corner'
242
- },
243
- setting: {
244
- id: 'ftArrowNavRadius'
245
- },
246
- isMoreSetting: true
247
- }
248
- ];
249
-
250
- exports.productFeatureImageNavigationUI = productFeatureImageNavigationUI;
251
- exports.productFeatureImageUI = productFeatureImageUI;
252
- exports.productSelectImage = productSelectImage;
@@ -1,251 +0,0 @@
1
- 'use strict';
2
-
3
- const showSliderSetting = '(type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col"';
4
- const productGalleryImageUI = [
5
- {
6
- type: 'control',
7
- label: {
8
- en: 'Display type'
9
- },
10
- condition: 'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',
11
- setting: {
12
- id: 'type'
13
- }
14
- },
15
- {
16
- type: 'control',
17
- setting: {
18
- id: 'shape'
19
- },
20
- layout: 'vertical',
21
- condition: '["left", "right"].includes(position)'
22
- },
23
- {
24
- type: 'control',
25
- setting: {
26
- id: 'shapeForBottom'
27
- },
28
- layout: 'vertical',
29
- condition: '["bottom-left", "bottom-center"].includes(position)'
30
- },
31
- {
32
- type: 'control',
33
- setting: {
34
- id: 'shapeForInsideBottom'
35
- },
36
- layout: 'vertical',
37
- condition: '["inside-bottom"].includes(position)'
38
- },
39
- {
40
- type: 'control',
41
- setting: {
42
- id: 'shapeForInside'
43
- },
44
- layout: 'vertical',
45
- condition: '["inside-left", "inside-right"].includes(position)'
46
- },
47
- {
48
- type: 'control',
49
- setting: {
50
- id: 'shapeForFtOnly'
51
- },
52
- layout: 'vertical',
53
- condition: 'position == "only-feature"'
54
- },
55
- {
56
- type: 'control',
57
- setting: {
58
- id: 'shapeFor2Col'
59
- },
60
- layout: 'vertical',
61
- condition: 'position == "two-col"'
62
- },
63
- {
64
- type: 'control',
65
- setting: {
66
- id: 'shapeFor1Col'
67
- },
68
- layout: 'vertical',
69
- condition: 'position == "one-col"'
70
- },
71
- {
72
- type: 'control',
73
- condition: `(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || (["inside-left", "inside-right"].includes(position) && shapeForInside.shape !== 'original') || (["inside-bottom"].includes(position) && shapeForInsideBottom.shape !== 'original') || (["bottom-left", "bottom-center"].includes(position) && shapeForBottom.shape !== 'original') || (["left", "right"].includes(position) && shape.shape !== 'original')`,
74
- label: {
75
- en: 'Image scale'
76
- },
77
- setting: {
78
- id: 'layout'
79
- },
80
- isMoreSetting: true
81
- },
82
- {
83
- type: 'control',
84
- label: {
85
- en: 'Hover effect'
86
- },
87
- setting: {
88
- id: 'galleryHoverEffect'
89
- },
90
- condition: 'position == "one-col" || position == "two-col"',
91
- isMoreSetting: true
92
- },
93
- {
94
- type: 'control',
95
- label: {
96
- en: 'Zoom type'
97
- },
98
- condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
99
- setting: {
100
- id: 'galleryZoomType'
101
- },
102
- isMoreSetting: true
103
- },
104
- {
105
- type: 'control',
106
- label: {
107
- en: 'Click effect'
108
- },
109
- setting: {
110
- id: 'clickOpenLightBox'
111
- },
112
- isMoreSetting: true
113
- },
114
- {
115
- type: 'control',
116
- label: {
117
- en: 'Zoom value'
118
- },
119
- condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
120
- setting: {
121
- id: 'galleryZoom'
122
- },
123
- isMoreSetting: true
124
- },
125
- {
126
- type: 'control',
127
- label: {
128
- en: 'Active border'
129
- },
130
- options: {
131
- labelPosition: 'start'
132
- },
133
- setting: {
134
- id: 'borderActive'
135
- },
136
- condition: '!["one-col", "two-col"].includes(position)',
137
- isMoreSetting: true
138
- },
139
- {
140
- type: 'control',
141
- label: {
142
- en: 'Corner'
143
- },
144
- setting: {
145
- id: 'corner'
146
- },
147
- isMoreSetting: true
148
- },
149
- {
150
- type: 'control',
151
- label: {
152
- en: 'Spacing'
153
- },
154
- setting: {
155
- id: 'itemSpacing'
156
- },
157
- isMoreSetting: true,
158
- condition: '!["one-col", "two-col"].includes(position)'
159
- },
160
- {
161
- type: 'control',
162
- label: {
163
- en: 'Drag to scroll'
164
- },
165
- condition: showSliderSetting,
166
- setting: {
167
- id: 'dragToScroll'
168
- },
169
- isMoreSetting: true
170
- },
171
- {
172
- type: 'control',
173
- label: {
174
- en: 'Loop'
175
- },
176
- condition: showSliderSetting,
177
- setting: {
178
- id: 'loop'
179
- },
180
- isMoreSetting: true
181
- }
182
- ];
183
- const productGalleryImageNavigationUI = [
184
- {
185
- type: 'control',
186
- label: {
187
- en: 'Navigation'
188
- },
189
- condition: showSliderSetting,
190
- setting: {
191
- id: 'navigationPosition'
192
- },
193
- layout: 'vertical'
194
- },
195
- {
196
- type: 'control',
197
- layout: 'vertical',
198
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
199
- setting: {
200
- id: 'arrowIcon'
201
- },
202
- isMoreSetting: true
203
- },
204
- {
205
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
206
- type: 'control',
207
- label: {
208
- en: 'Icon color'
209
- },
210
- setting: {
211
- id: 'arrowIconColor'
212
- },
213
- isMoreSetting: true
214
- },
215
- {
216
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
217
- type: 'control',
218
- label: {
219
- en: 'Nav. color'
220
- },
221
- setting: {
222
- id: 'arrowNavColor'
223
- },
224
- isMoreSetting: true
225
- },
226
- {
227
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
228
- type: 'control',
229
- label: {
230
- en: 'Nav. border'
231
- },
232
- setting: {
233
- id: 'arrowNavBorder'
234
- },
235
- isMoreSetting: true
236
- },
237
- {
238
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
239
- type: 'control',
240
- label: {
241
- en: 'Nav. corner'
242
- },
243
- setting: {
244
- id: 'arrowNavRadius'
245
- },
246
- isMoreSetting: true
247
- }
248
- ];
249
-
250
- exports.productGalleryImageNavigationUI = productGalleryImageNavigationUI;
251
- exports.productGalleryImageUI = productGalleryImageUI;
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var uiV1 = require('./configs/uiV1.js');
6
- var uiV2 = require('./configs/uiV2.js');
7
- var index = require('./configs/setting-v2/index.js');
8
-
9
- const config = {
10
- tag: 'ProductImagesV3',
11
- label: 'Product Images New Carousel',
12
- icon: `
13
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
14
- <path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
15
- </svg>
16
- `,
17
- settings: index.ProductImageSettingsV2,
18
- ui: uiV1.SettingUIV1,
19
- uiV2: uiV2.SettingUIV2,
20
- editorConfigs: {
21
- placeholder: {
22
- flowTag: [
23
- 'Product'
24
- ],
25
- allowAppendTags: [
26
- 'ProductBadge'
27
- ]
28
- },
29
- slots: {
30
- children: true
31
- }
32
- },
33
- presets: [
34
- {
35
- id: 'product-image-v3',
36
- name: {
37
- en: 'Product Images New Carousel'
38
- },
39
- icon: {
40
- desktop: `
41
- <svg width="96" height="56" viewBox="0 0 96 56" fill="none" xmlns="http://www.w3.org/2000/svg">
42
- <rect x="24.5" width="47" height="42" rx="3" fill="#494949"/>
43
- <path d="M40.5 15.766L45.495 14.0288C45.495 14.0288 46.1024 15.4454 48.005 15.4454C49.9076 15.4454 50.5083 14 50.5083 14L55.5 15.766L54.6692 20.1222H52.1642V28H43.825V20.1196H41.3325L40.5 15.766Z" fill="#D6D6D6"/>
44
- <rect x="31" y="46" width="10" height="10" rx="3" fill="#494949"/>
45
- <rect x="43" y="46" width="10" height="10" rx="3" fill="#494949"/>
46
- <rect x="55" y="46" width="10" height="10" rx="3" fill="#494949"/>
47
- </svg>
48
- `
49
- },
50
- components: [
51
- {
52
- tag: 'ProductImagesV3',
53
- styles: {
54
- position: {
55
- desktop: 'bottom-center',
56
- mobile: 'bottom-center'
57
- }
58
- },
59
- advanced: {
60
- 'spacing-setting': {
61
- desktop: {
62
- margin: {
63
- bottom: 'var(--g-s-l)'
64
- }
65
- }
66
- }
67
- }
68
- }
69
- ]
70
- }
71
- ]
72
- };
73
-
74
- exports.default = config;