@gem-sdk/components 2.0.0-dev.622 → 2.0.0-dev.624

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 (180) hide show
  1. package/dist/cjs/builder.js +12 -6
  2. package/dist/cjs/collection/components/collection-paginator/common/styles.js +3 -4
  3. package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +2 -1
  4. package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +2 -3
  5. package/dist/cjs/index.js +34 -32
  6. package/dist/cjs/index.liquid.js +16 -10
  7. package/dist/cjs/next.js +3 -1
  8. package/dist/cjs/product/components/ProductImagesV3/common/common.js +360 -0
  9. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +192 -0
  10. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +26 -0
  11. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +94 -0
  12. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +303 -0
  13. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +95 -0
  14. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +59 -0
  15. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +266 -0
  16. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +63 -0
  17. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +36 -0
  18. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +109 -0
  19. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +139 -0
  20. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +100 -0
  21. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +77 -0
  22. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +300 -0
  23. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +44 -0
  24. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +83 -0
  25. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +182 -0
  26. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +30 -0
  27. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +239 -0
  28. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +28 -0
  29. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +144 -0
  30. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +14 -0
  31. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +54 -0
  32. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +53 -0
  33. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +55 -0
  34. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +41 -0
  35. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +134 -0
  36. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +203 -0
  37. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +87 -0
  38. package/dist/cjs/product/components/ProductImagesV3/index.js +291 -0
  39. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +153 -0
  40. package/dist/cjs/product/index.js +6 -4
  41. package/dist/cjs/product/next.js +4 -0
  42. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +252 -0
  43. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +251 -0
  44. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +74 -0
  45. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +388 -0
  46. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +518 -0
  47. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +336 -0
  48. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +118 -0
  49. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +119 -0
  50. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +237 -0
  51. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +491 -0
  52. package/dist/cjs/setting.js +97 -95
  53. package/dist/cjs/swiper-carousel/arrow/Arrow.js +52 -0
  54. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +46 -0
  55. package/dist/cjs/swiper-carousel/arrow/common/common.js +119 -0
  56. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +50 -0
  57. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +84 -0
  58. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +34 -0
  59. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +38 -0
  60. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +29 -0
  61. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +79 -0
  62. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +22 -0
  63. package/dist/cjs/swiper-carousel/components/common/carousel.js +98 -0
  64. package/dist/cjs/swiper-carousel/components/const/index.js +5 -0
  65. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +34 -0
  66. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +42 -0
  67. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +105 -0
  68. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +15 -0
  69. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +45 -0
  70. package/dist/cjs/swiper-carousel/dots/Dots.js +51 -0
  71. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +26 -0
  72. package/dist/cjs/swiper-carousel/dots/common/common.js +28 -0
  73. package/dist/cjs/swiper-carousel/dots/common/getClass.js +40 -0
  74. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +33 -0
  75. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +21 -0
  76. package/dist/cjs/swiper-carousel/index.js +17 -0
  77. package/dist/cjs/swiper-carousel/next.js +22 -0
  78. package/dist/cjs/swiper-carousel/root/Swiper.js +128 -0
  79. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +104 -0
  80. package/dist/cjs/swiper-carousel/root/common/getAttr.js +25 -0
  81. package/dist/cjs/swiper-carousel/root/common/getClass.js +135 -0
  82. package/dist/cjs/swiper-carousel/root/common/getData.js +56 -0
  83. package/dist/cjs/swiper-carousel/root/common/getStyle.js +64 -0
  84. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +482 -0
  85. package/dist/cjs/swiper-carousel/setting/Swiper.js +42 -0
  86. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +40 -0
  87. package/dist/cjs/swiper-carousel/setting/configs/presets.js +87 -0
  88. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +819 -0
  89. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +718 -0
  90. package/dist/esm/builder.js +6 -0
  91. package/dist/esm/collection/components/collection-paginator/common/styles.js +3 -4
  92. package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +2 -1
  93. package/dist/esm/collection/setting/collection-paginator/configs/settings.js +2 -3
  94. package/dist/esm/index.js +1 -0
  95. package/dist/esm/index.liquid.js +3 -0
  96. package/dist/esm/next.js +3 -1
  97. package/dist/esm/product/components/ProductImagesV3/common/common.js +344 -0
  98. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +189 -0
  99. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +24 -0
  100. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +83 -0
  101. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +292 -0
  102. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +92 -0
  103. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +53 -0
  104. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +251 -0
  105. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +59 -0
  106. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +32 -0
  107. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +105 -0
  108. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +135 -0
  109. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +96 -0
  110. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +73 -0
  111. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +296 -0
  112. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +40 -0
  113. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +79 -0
  114. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +178 -0
  115. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +26 -0
  116. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +235 -0
  117. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +24 -0
  118. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +140 -0
  119. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +12 -0
  120. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +52 -0
  121. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +51 -0
  122. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +53 -0
  123. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +39 -0
  124. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +132 -0
  125. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +201 -0
  126. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +85 -0
  127. package/dist/esm/product/components/ProductImagesV3/index.js +287 -0
  128. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +149 -0
  129. package/dist/esm/product/index.js +26 -24
  130. package/dist/esm/product/next.js +4 -0
  131. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +248 -0
  132. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +248 -0
  133. package/dist/esm/product/setting/product-image-v3/ProductImages.js +70 -0
  134. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +384 -0
  135. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +515 -0
  136. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +334 -0
  137. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +116 -0
  138. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +117 -0
  139. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +235 -0
  140. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +489 -0
  141. package/dist/esm/setting.js +2 -0
  142. package/dist/esm/swiper-carousel/arrow/Arrow.js +48 -0
  143. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +42 -0
  144. package/dist/esm/swiper-carousel/arrow/common/common.js +111 -0
  145. package/dist/esm/swiper-carousel/arrow/common/getClass.js +48 -0
  146. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +82 -0
  147. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +30 -0
  148. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +34 -0
  149. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +27 -0
  150. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +77 -0
  151. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +20 -0
  152. package/dist/esm/swiper-carousel/components/common/carousel.js +93 -0
  153. package/dist/esm/swiper-carousel/components/const/index.js +3 -0
  154. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +30 -0
  155. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +35 -0
  156. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +103 -0
  157. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +13 -0
  158. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +43 -0
  159. package/dist/esm/swiper-carousel/dots/Dots.js +47 -0
  160. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +22 -0
  161. package/dist/esm/swiper-carousel/dots/common/common.js +26 -0
  162. package/dist/esm/swiper-carousel/dots/common/getClass.js +38 -0
  163. package/dist/esm/swiper-carousel/dots/common/getStyle.js +31 -0
  164. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +19 -0
  165. package/dist/esm/swiper-carousel/index.js +15 -0
  166. package/dist/esm/swiper-carousel/next.js +18 -0
  167. package/dist/esm/swiper-carousel/root/Swiper.js +124 -0
  168. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +100 -0
  169. package/dist/esm/swiper-carousel/root/common/getAttr.js +23 -0
  170. package/dist/esm/swiper-carousel/root/common/getClass.js +133 -0
  171. package/dist/esm/swiper-carousel/root/common/getData.js +54 -0
  172. package/dist/esm/swiper-carousel/root/common/getStyle.js +62 -0
  173. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +480 -0
  174. package/dist/esm/swiper-carousel/setting/Swiper.js +38 -0
  175. package/dist/esm/swiper-carousel/setting/SwiperItem.js +36 -0
  176. package/dist/esm/swiper-carousel/setting/configs/presets.js +85 -0
  177. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +815 -0
  178. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +713 -0
  179. package/dist/types/index.d.ts +551 -116
  180. package/package.json +2 -2
@@ -0,0 +1,248 @@
1
+ const productFeatureImageUI = [
2
+ {
3
+ type: 'control',
4
+ setting: {
5
+ id: 'ftShape'
6
+ },
7
+ layout: 'vertical',
8
+ controlChangeTrigger: {
9
+ settings: [
10
+ {
11
+ condition: "ftShape.shape === 'original'",
12
+ source: [
13
+ 'ftShape'
14
+ ],
15
+ action: {
16
+ controlId: 'ftLayout',
17
+ newValue: 'contain',
18
+ groupType: 'style',
19
+ controlType: 'style'
20
+ }
21
+ }
22
+ ],
23
+ options: {
24
+ noRecordHistory: true
25
+ }
26
+ }
27
+ },
28
+ {
29
+ type: 'control',
30
+ condition: "ftShape.shape !== 'original'",
31
+ label: {
32
+ en: 'Image scale'
33
+ },
34
+ setting: {
35
+ id: 'ftLayout'
36
+ },
37
+ isMoreSetting: true
38
+ },
39
+ {
40
+ type: 'control',
41
+ label: {
42
+ en: 'Hover effect'
43
+ },
44
+ setting: {
45
+ id: 'hoverEffect'
46
+ },
47
+ isMoreSetting: true
48
+ },
49
+ {
50
+ type: 'control',
51
+ label: {
52
+ en: 'Zoom type'
53
+ },
54
+ condition: 'hoverEffect == "zoom"',
55
+ setting: {
56
+ id: 'zoomType'
57
+ },
58
+ isMoreSetting: true
59
+ },
60
+ {
61
+ type: 'control',
62
+ label: {
63
+ en: 'Zoom value'
64
+ },
65
+ condition: 'hoverEffect == "zoom"',
66
+ setting: {
67
+ id: 'zoom'
68
+ },
69
+ isMoreSetting: true
70
+ },
71
+ {
72
+ type: 'control',
73
+ label: {
74
+ en: 'Other image'
75
+ },
76
+ condition: 'hoverEffect == "other"',
77
+ setting: {
78
+ id: 'otherImage'
79
+ },
80
+ isMoreSetting: true
81
+ },
82
+ {
83
+ type: 'control',
84
+ label: {
85
+ en: 'Click effect'
86
+ },
87
+ setting: {
88
+ id: 'ftClickOpenLightBox'
89
+ },
90
+ isMoreSetting: true
91
+ },
92
+ {
93
+ type: 'control',
94
+ label: {
95
+ en: 'Open link in'
96
+ },
97
+ setting: {
98
+ id: 'ftClickOpenNewTab'
99
+ },
100
+ condition: `ftClickOpenLightBox === "product-link"`,
101
+ isMoreSetting: true
102
+ },
103
+ {
104
+ type: 'control',
105
+ label: {
106
+ en: 'Corner'
107
+ },
108
+ setting: {
109
+ id: 'ftCorner'
110
+ },
111
+ isMoreSetting: true
112
+ },
113
+ {
114
+ type: 'control',
115
+ label: {
116
+ en: 'Drag to scroll'
117
+ },
118
+ setting: {
119
+ id: 'ftDragToScroll'
120
+ },
121
+ isMoreSetting: true
122
+ },
123
+ {
124
+ type: 'control',
125
+ label: {
126
+ en: 'Loop'
127
+ },
128
+ setting: {
129
+ id: 'ftLoop'
130
+ },
131
+ isMoreSetting: true
132
+ },
133
+ {
134
+ type: 'control',
135
+ label: {
136
+ en: 'Slide speed'
137
+ },
138
+ setting: {
139
+ id: 'ftAnimationSpeed'
140
+ },
141
+ isMoreSetting: true
142
+ },
143
+ {
144
+ type: 'control',
145
+ label: {
146
+ en: 'Animation'
147
+ },
148
+ setting: {
149
+ id: 'ftAnimationMode'
150
+ },
151
+ isMoreSetting: true
152
+ }
153
+ ];
154
+ const productSelectImage = [
155
+ // tạm ẩn khi hỗ trợ đủ 2 option sẽ mở
156
+ // {
157
+ // type: 'control',
158
+ // setting: {
159
+ // id: 'typeDisplay',
160
+ // },
161
+ // layout: 'vertical',
162
+ // },
163
+ {
164
+ type: 'control',
165
+ label: {
166
+ en: 'Pre-display'
167
+ },
168
+ setting: {
169
+ id: 'preDisplay'
170
+ }
171
+ },
172
+ {
173
+ type: 'control',
174
+ label: {
175
+ en: 'Preload'
176
+ },
177
+ setting: {
178
+ id: 'preload'
179
+ }
180
+ }
181
+ ];
182
+ const productFeatureImageNavigationUI = [
183
+ {
184
+ type: 'control',
185
+ label: {
186
+ en: 'Navigation'
187
+ },
188
+ setting: {
189
+ id: 'ftNavigationPosition'
190
+ },
191
+ layout: 'vertical'
192
+ },
193
+ {
194
+ type: 'control',
195
+ layout: 'vertical',
196
+ condition: 'ftNavigationPosition !== "none"',
197
+ setting: {
198
+ id: 'ftArrowIcon'
199
+ },
200
+ isMoreSetting: true
201
+ },
202
+ {
203
+ type: 'control',
204
+ condition: 'ftNavigationPosition !== "none"',
205
+ label: {
206
+ en: 'Icon color'
207
+ },
208
+ setting: {
209
+ id: 'ftArrowIconColor'
210
+ },
211
+ isMoreSetting: true
212
+ },
213
+ {
214
+ type: 'control',
215
+ condition: 'ftNavigationPosition !== "none"',
216
+ label: {
217
+ en: 'Nav. color'
218
+ },
219
+ setting: {
220
+ id: 'ftArrowNavColor'
221
+ },
222
+ isMoreSetting: true
223
+ },
224
+ {
225
+ type: 'control',
226
+ condition: 'ftNavigationPosition !== "none"',
227
+ label: {
228
+ en: 'Nav. border'
229
+ },
230
+ setting: {
231
+ id: 'ftArrowNavBorder'
232
+ },
233
+ isMoreSetting: true
234
+ },
235
+ {
236
+ type: 'control',
237
+ condition: 'ftNavigationPosition !== "none"',
238
+ label: {
239
+ en: 'Nav. corner'
240
+ },
241
+ setting: {
242
+ id: 'ftArrowNavRadius'
243
+ },
244
+ isMoreSetting: true
245
+ }
246
+ ];
247
+
248
+ export { productFeatureImageNavigationUI, productFeatureImageUI, productSelectImage };
@@ -0,0 +1,248 @@
1
+ const showSliderSetting = '(type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col"';
2
+ const productGalleryImageUI = [
3
+ {
4
+ type: 'control',
5
+ label: {
6
+ en: 'Display type'
7
+ },
8
+ condition: 'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',
9
+ setting: {
10
+ id: 'type'
11
+ }
12
+ },
13
+ {
14
+ type: 'control',
15
+ setting: {
16
+ id: 'shape'
17
+ },
18
+ layout: 'vertical',
19
+ condition: '["left", "right"].includes(position)'
20
+ },
21
+ {
22
+ type: 'control',
23
+ setting: {
24
+ id: 'shapeForBottom'
25
+ },
26
+ layout: 'vertical',
27
+ condition: '["bottom-left", "bottom-center"].includes(position)'
28
+ },
29
+ {
30
+ type: 'control',
31
+ setting: {
32
+ id: 'shapeForInsideBottom'
33
+ },
34
+ layout: 'vertical',
35
+ condition: '["inside-bottom"].includes(position)'
36
+ },
37
+ {
38
+ type: 'control',
39
+ setting: {
40
+ id: 'shapeForInside'
41
+ },
42
+ layout: 'vertical',
43
+ condition: '["inside-left", "inside-right"].includes(position)'
44
+ },
45
+ {
46
+ type: 'control',
47
+ setting: {
48
+ id: 'shapeForFtOnly'
49
+ },
50
+ layout: 'vertical',
51
+ condition: 'position == "only-feature"'
52
+ },
53
+ {
54
+ type: 'control',
55
+ setting: {
56
+ id: 'shapeFor2Col'
57
+ },
58
+ layout: 'vertical',
59
+ condition: 'position == "two-col"'
60
+ },
61
+ {
62
+ type: 'control',
63
+ setting: {
64
+ id: 'shapeFor1Col'
65
+ },
66
+ layout: 'vertical',
67
+ condition: 'position == "one-col"'
68
+ },
69
+ {
70
+ type: 'control',
71
+ 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')`,
72
+ label: {
73
+ en: 'Image scale'
74
+ },
75
+ setting: {
76
+ id: 'layout'
77
+ },
78
+ isMoreSetting: true
79
+ },
80
+ {
81
+ type: 'control',
82
+ label: {
83
+ en: 'Hover effect'
84
+ },
85
+ setting: {
86
+ id: 'galleryHoverEffect'
87
+ },
88
+ condition: 'position == "one-col" || position == "two-col"',
89
+ isMoreSetting: true
90
+ },
91
+ {
92
+ type: 'control',
93
+ label: {
94
+ en: 'Zoom type'
95
+ },
96
+ condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
97
+ setting: {
98
+ id: 'galleryZoomType'
99
+ },
100
+ isMoreSetting: true
101
+ },
102
+ {
103
+ type: 'control',
104
+ label: {
105
+ en: 'Click effect'
106
+ },
107
+ setting: {
108
+ id: 'clickOpenLightBox'
109
+ },
110
+ isMoreSetting: true
111
+ },
112
+ {
113
+ type: 'control',
114
+ label: {
115
+ en: 'Zoom value'
116
+ },
117
+ condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
118
+ setting: {
119
+ id: 'galleryZoom'
120
+ },
121
+ isMoreSetting: true
122
+ },
123
+ {
124
+ type: 'control',
125
+ label: {
126
+ en: 'Active border'
127
+ },
128
+ options: {
129
+ labelPosition: 'start'
130
+ },
131
+ setting: {
132
+ id: 'borderActive'
133
+ },
134
+ condition: '!["one-col", "two-col"].includes(position)',
135
+ isMoreSetting: true
136
+ },
137
+ {
138
+ type: 'control',
139
+ label: {
140
+ en: 'Corner'
141
+ },
142
+ setting: {
143
+ id: 'corner'
144
+ },
145
+ isMoreSetting: true
146
+ },
147
+ {
148
+ type: 'control',
149
+ label: {
150
+ en: 'Spacing'
151
+ },
152
+ setting: {
153
+ id: 'itemSpacing'
154
+ },
155
+ isMoreSetting: true,
156
+ condition: '!["one-col", "two-col"].includes(position)'
157
+ },
158
+ {
159
+ type: 'control',
160
+ label: {
161
+ en: 'Drag to scroll'
162
+ },
163
+ condition: showSliderSetting,
164
+ setting: {
165
+ id: 'dragToScroll'
166
+ },
167
+ isMoreSetting: true
168
+ },
169
+ {
170
+ type: 'control',
171
+ label: {
172
+ en: 'Loop'
173
+ },
174
+ condition: showSliderSetting,
175
+ setting: {
176
+ id: 'loop'
177
+ },
178
+ isMoreSetting: true
179
+ }
180
+ ];
181
+ const productGalleryImageNavigationUI = [
182
+ {
183
+ type: 'control',
184
+ label: {
185
+ en: 'Navigation'
186
+ },
187
+ condition: showSliderSetting,
188
+ setting: {
189
+ id: 'navigationPosition'
190
+ },
191
+ layout: 'vertical'
192
+ },
193
+ {
194
+ type: 'control',
195
+ layout: 'vertical',
196
+ condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
197
+ setting: {
198
+ id: 'arrowIcon'
199
+ },
200
+ isMoreSetting: true
201
+ },
202
+ {
203
+ condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
204
+ type: 'control',
205
+ label: {
206
+ en: 'Icon color'
207
+ },
208
+ setting: {
209
+ id: 'arrowIconColor'
210
+ },
211
+ isMoreSetting: true
212
+ },
213
+ {
214
+ condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
215
+ type: 'control',
216
+ label: {
217
+ en: 'Nav. color'
218
+ },
219
+ setting: {
220
+ id: 'arrowNavColor'
221
+ },
222
+ isMoreSetting: true
223
+ },
224
+ {
225
+ condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
226
+ type: 'control',
227
+ label: {
228
+ en: 'Nav. border'
229
+ },
230
+ setting: {
231
+ id: 'arrowNavBorder'
232
+ },
233
+ isMoreSetting: true
234
+ },
235
+ {
236
+ condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
237
+ type: 'control',
238
+ label: {
239
+ en: 'Nav. corner'
240
+ },
241
+ setting: {
242
+ id: 'arrowNavRadius'
243
+ },
244
+ isMoreSetting: true
245
+ }
246
+ ];
247
+
248
+ export { productGalleryImageNavigationUI, productGalleryImageUI };
@@ -0,0 +1,70 @@
1
+ import { SettingUIV1 } from './configs/uiV1.js';
2
+ import { SettingUIV2 } from './configs/uiV2.js';
3
+ import { ProductImageSettingsV2 } from './configs/setting-v2/index.js';
4
+
5
+ const config = {
6
+ tag: 'ProductImagesV3',
7
+ label: 'Product Images New Carousel',
8
+ icon: `
9
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
10
+ <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"/>
11
+ </svg>
12
+ `,
13
+ settings: ProductImageSettingsV2,
14
+ ui: SettingUIV1,
15
+ uiV2: SettingUIV2,
16
+ editorConfigs: {
17
+ placeholder: {
18
+ flowTag: [
19
+ 'Product'
20
+ ],
21
+ allowAppendTags: [
22
+ 'ProductBadge'
23
+ ]
24
+ },
25
+ slots: {
26
+ children: true
27
+ }
28
+ },
29
+ presets: [
30
+ {
31
+ id: 'product-image-v3',
32
+ name: {
33
+ en: 'Product Images New Carousel'
34
+ },
35
+ icon: {
36
+ desktop: `
37
+ <svg width="96" height="56" viewBox="0 0 96 56" fill="none" xmlns="http://www.w3.org/2000/svg">
38
+ <rect x="24.5" width="47" height="42" rx="3" fill="#494949"/>
39
+ <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"/>
40
+ <rect x="31" y="46" width="10" height="10" rx="3" fill="#494949"/>
41
+ <rect x="43" y="46" width="10" height="10" rx="3" fill="#494949"/>
42
+ <rect x="55" y="46" width="10" height="10" rx="3" fill="#494949"/>
43
+ </svg>
44
+ `
45
+ },
46
+ components: [
47
+ {
48
+ tag: 'ProductImagesV3',
49
+ styles: {
50
+ position: {
51
+ desktop: 'bottom-center',
52
+ mobile: 'bottom-center'
53
+ }
54
+ },
55
+ advanced: {
56
+ 'spacing-setting': {
57
+ desktop: {
58
+ margin: {
59
+ bottom: 'var(--g-s-l)'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ ]
68
+ };
69
+
70
+ export { config as default };