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

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 (174) hide show
  1. package/dist/cjs/builder.js +12 -6
  2. package/dist/cjs/index.js +34 -32
  3. package/dist/cjs/index.liquid.js +16 -10
  4. package/dist/cjs/next.js +3 -1
  5. package/dist/cjs/product/components/ProductImagesV3/common/common.js +360 -0
  6. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +192 -0
  7. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +26 -0
  8. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +94 -0
  9. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +303 -0
  10. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +95 -0
  11. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +59 -0
  12. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +266 -0
  13. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +63 -0
  14. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +36 -0
  15. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +109 -0
  16. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +139 -0
  17. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +100 -0
  18. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +77 -0
  19. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +300 -0
  20. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +44 -0
  21. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +83 -0
  22. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +182 -0
  23. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +30 -0
  24. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +239 -0
  25. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +28 -0
  26. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +144 -0
  27. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +14 -0
  28. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +54 -0
  29. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +53 -0
  30. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +55 -0
  31. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +41 -0
  32. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +134 -0
  33. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +203 -0
  34. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +87 -0
  35. package/dist/cjs/product/components/ProductImagesV3/index.js +291 -0
  36. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +153 -0
  37. package/dist/cjs/product/index.js +6 -4
  38. package/dist/cjs/product/next.js +4 -0
  39. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +252 -0
  40. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +251 -0
  41. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +74 -0
  42. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +388 -0
  43. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +518 -0
  44. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +336 -0
  45. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +118 -0
  46. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +119 -0
  47. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +237 -0
  48. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +491 -0
  49. package/dist/cjs/setting.js +97 -95
  50. package/dist/cjs/swiper-carousel/arrow/Arrow.js +52 -0
  51. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +46 -0
  52. package/dist/cjs/swiper-carousel/arrow/common/common.js +119 -0
  53. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +50 -0
  54. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +84 -0
  55. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +34 -0
  56. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +38 -0
  57. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +29 -0
  58. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +79 -0
  59. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +22 -0
  60. package/dist/cjs/swiper-carousel/components/common/carousel.js +98 -0
  61. package/dist/cjs/swiper-carousel/components/const/index.js +5 -0
  62. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +34 -0
  63. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +42 -0
  64. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +105 -0
  65. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +15 -0
  66. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +45 -0
  67. package/dist/cjs/swiper-carousel/dots/Dots.js +51 -0
  68. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +26 -0
  69. package/dist/cjs/swiper-carousel/dots/common/common.js +28 -0
  70. package/dist/cjs/swiper-carousel/dots/common/getClass.js +40 -0
  71. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +33 -0
  72. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +21 -0
  73. package/dist/cjs/swiper-carousel/index.js +17 -0
  74. package/dist/cjs/swiper-carousel/next.js +22 -0
  75. package/dist/cjs/swiper-carousel/root/Swiper.js +128 -0
  76. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +104 -0
  77. package/dist/cjs/swiper-carousel/root/common/getAttr.js +25 -0
  78. package/dist/cjs/swiper-carousel/root/common/getClass.js +135 -0
  79. package/dist/cjs/swiper-carousel/root/common/getData.js +56 -0
  80. package/dist/cjs/swiper-carousel/root/common/getStyle.js +64 -0
  81. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +482 -0
  82. package/dist/cjs/swiper-carousel/setting/Swiper.js +42 -0
  83. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +40 -0
  84. package/dist/cjs/swiper-carousel/setting/configs/presets.js +87 -0
  85. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +819 -0
  86. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +718 -0
  87. package/dist/esm/builder.js +6 -0
  88. package/dist/esm/index.js +1 -0
  89. package/dist/esm/index.liquid.js +3 -0
  90. package/dist/esm/next.js +3 -1
  91. package/dist/esm/product/components/ProductImagesV3/common/common.js +344 -0
  92. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +189 -0
  93. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +24 -0
  94. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +83 -0
  95. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +292 -0
  96. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +92 -0
  97. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +53 -0
  98. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +251 -0
  99. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +59 -0
  100. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +32 -0
  101. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +105 -0
  102. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +135 -0
  103. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +96 -0
  104. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +73 -0
  105. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +296 -0
  106. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +40 -0
  107. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +79 -0
  108. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +178 -0
  109. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +26 -0
  110. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +235 -0
  111. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +24 -0
  112. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +140 -0
  113. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +12 -0
  114. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +52 -0
  115. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +51 -0
  116. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +53 -0
  117. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +39 -0
  118. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +132 -0
  119. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +201 -0
  120. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +85 -0
  121. package/dist/esm/product/components/ProductImagesV3/index.js +287 -0
  122. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +149 -0
  123. package/dist/esm/product/index.js +26 -24
  124. package/dist/esm/product/next.js +4 -0
  125. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +248 -0
  126. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +248 -0
  127. package/dist/esm/product/setting/product-image-v3/ProductImages.js +70 -0
  128. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +384 -0
  129. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +515 -0
  130. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +334 -0
  131. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +116 -0
  132. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +117 -0
  133. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +235 -0
  134. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +489 -0
  135. package/dist/esm/setting.js +2 -0
  136. package/dist/esm/swiper-carousel/arrow/Arrow.js +48 -0
  137. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +42 -0
  138. package/dist/esm/swiper-carousel/arrow/common/common.js +111 -0
  139. package/dist/esm/swiper-carousel/arrow/common/getClass.js +48 -0
  140. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +82 -0
  141. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +30 -0
  142. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +34 -0
  143. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +27 -0
  144. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +77 -0
  145. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +20 -0
  146. package/dist/esm/swiper-carousel/components/common/carousel.js +93 -0
  147. package/dist/esm/swiper-carousel/components/const/index.js +3 -0
  148. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +30 -0
  149. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +35 -0
  150. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +103 -0
  151. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +13 -0
  152. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +43 -0
  153. package/dist/esm/swiper-carousel/dots/Dots.js +47 -0
  154. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +22 -0
  155. package/dist/esm/swiper-carousel/dots/common/common.js +26 -0
  156. package/dist/esm/swiper-carousel/dots/common/getClass.js +38 -0
  157. package/dist/esm/swiper-carousel/dots/common/getStyle.js +31 -0
  158. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +19 -0
  159. package/dist/esm/swiper-carousel/index.js +15 -0
  160. package/dist/esm/swiper-carousel/next.js +18 -0
  161. package/dist/esm/swiper-carousel/root/Swiper.js +124 -0
  162. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +100 -0
  163. package/dist/esm/swiper-carousel/root/common/getAttr.js +23 -0
  164. package/dist/esm/swiper-carousel/root/common/getClass.js +133 -0
  165. package/dist/esm/swiper-carousel/root/common/getData.js +54 -0
  166. package/dist/esm/swiper-carousel/root/common/getStyle.js +62 -0
  167. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +480 -0
  168. package/dist/esm/swiper-carousel/setting/Swiper.js +38 -0
  169. package/dist/esm/swiper-carousel/setting/SwiperItem.js +36 -0
  170. package/dist/esm/swiper-carousel/setting/configs/presets.js +85 -0
  171. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +815 -0
  172. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +713 -0
  173. package/dist/types/index.d.ts +551 -116
  174. package/package.json +2 -2
@@ -0,0 +1,251 @@
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;
@@ -0,0 +1,74 @@
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;
@@ -0,0 +1,388 @@
1
+ 'use strict';
2
+
3
+ var AnimationPlugin = require('../../../../../carousel/components/plugins/AnimationPlugin.js');
4
+
5
+ const getDefaultResponsive = (defaultValue)=>{
6
+ return {
7
+ desktop: {
8
+ default: defaultValue
9
+ }
10
+ };
11
+ };
12
+ const productFeatureImageSetting = [
13
+ {
14
+ id: 'hoverEffect',
15
+ label: 'Hover Effect',
16
+ type: 'select',
17
+ hide: true,
18
+ hideOnMode: {
19
+ mobileOnly: true
20
+ },
21
+ options: [
22
+ {
23
+ title: 'Zoom',
24
+ value: 'zoom'
25
+ },
26
+ {
27
+ title: 'Show other image',
28
+ value: 'other'
29
+ }
30
+ ],
31
+ default: 'none'
32
+ },
33
+ {
34
+ id: 'zoomType',
35
+ type: 'option:value',
36
+ label: 'Zoom Type',
37
+ hide: true,
38
+ default: 'default',
39
+ hideOnMode: {
40
+ mobileOnly: true
41
+ },
42
+ options: [
43
+ {
44
+ label: 'Default',
45
+ value: 'default'
46
+ },
47
+ {
48
+ label: 'Glasses',
49
+ value: 'glasses'
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ id: 'zoom',
55
+ type: 'input:slider',
56
+ label: 'Zoom Value',
57
+ min: 100,
58
+ max: 200,
59
+ step: 10,
60
+ default: 150,
61
+ units: [
62
+ '%'
63
+ ],
64
+ showDefaultUnit: true,
65
+ useOnlyUnitInit: true,
66
+ isNumber: true
67
+ },
68
+ {
69
+ id: 'otherImage',
70
+ label: 'Other image',
71
+ type: 'select',
72
+ options: [
73
+ {
74
+ title: 'Image 1',
75
+ value: 0
76
+ },
77
+ {
78
+ title: 'Image 2',
79
+ value: 1
80
+ },
81
+ {
82
+ title: 'Image 3',
83
+ value: 2
84
+ },
85
+ {
86
+ title: 'Image 4',
87
+ value: 3
88
+ },
89
+ {
90
+ title: 'Last image',
91
+ value: -1
92
+ }
93
+ ],
94
+ default: 0
95
+ },
96
+ {
97
+ id: 'ftClickOpenLightBox',
98
+ label: 'Click Effect',
99
+ type: 'select',
100
+ options: [
101
+ {
102
+ title: 'Open gallery',
103
+ value: 'popup'
104
+ },
105
+ {
106
+ title: 'Open product',
107
+ value: 'product-link'
108
+ }
109
+ ],
110
+ devices: getDefaultResponsive('none')
111
+ },
112
+ {
113
+ id: 'ftClickOpenNewTab',
114
+ type: 'option:value',
115
+ options: [
116
+ {
117
+ label: 'Yes',
118
+ value: true
119
+ },
120
+ {
121
+ label: 'No',
122
+ value: false
123
+ }
124
+ ],
125
+ default: false
126
+ },
127
+ {
128
+ id: 'ftNavigationPosition',
129
+ label: 'Navigation',
130
+ type: 'option:illustration',
131
+ enableTooltip: true,
132
+ options: [
133
+ {
134
+ label: 'No navigation',
135
+ value: 'none',
136
+ type: 'slide-control',
137
+ hide: true
138
+ },
139
+ {
140
+ label: 'Display outside navigation',
141
+ value: 'outside',
142
+ type: 'slide-control',
143
+ svgName: 'gp-slide-control-outside'
144
+ },
145
+ {
146
+ label: 'Display inside navigation',
147
+ value: 'inside',
148
+ type: 'slide-control',
149
+ svgName: 'gp-slide-control-inside'
150
+ }
151
+ ],
152
+ devices: getDefaultResponsive('none')
153
+ },
154
+ {
155
+ id: 'ftLoop',
156
+ type: 'toggle',
157
+ devices: getDefaultResponsive(false)
158
+ },
159
+ {
160
+ id: 'ftPauseOnHover',
161
+ label: 'Pause On Hover',
162
+ type: 'toggle',
163
+ hide: true,
164
+ default: true
165
+ },
166
+ {
167
+ id: 'ftAnimationSpeed',
168
+ label: 'Slide speed',
169
+ type: 'input:slider',
170
+ useOnlyUnitInit: true,
171
+ min: 100,
172
+ max: 5000,
173
+ step: 50,
174
+ units: [
175
+ 'ms'
176
+ ],
177
+ showDefaultUnit: true,
178
+ isNumber: true,
179
+ default: 500
180
+ },
181
+ {
182
+ id: 'ftAnimationMode',
183
+ label: 'Animation',
184
+ type: 'select',
185
+ default: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value,
186
+ options: [
187
+ {
188
+ label: 'Ease in',
189
+ value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value
190
+ },
191
+ {
192
+ label: 'Ease out',
193
+ value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
194
+ },
195
+ {
196
+ label: 'Ease in out',
197
+ value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ id: 'ftArrowIcon',
203
+ type: 'icon',
204
+ hide: true,
205
+ label: 'Custom Arrow',
206
+ info: 'Choose from list or paste any SVG icon',
207
+ default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
208
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM10.6828 8.13017C10.5266 7.95661 10.2734 7.95661 10.1172 8.13017C9.96095 8.30374 9.96095 8.58515 10.1172 8.75871L13.0343 12L10.1172 15.2413C9.96095 15.4149 9.96095 15.6963 10.1172 15.8698C10.2734 16.0434 10.5266 16.0434 10.6828 15.8698L13.8828 12.3143C14.0391 12.1407 14.0391 11.8593 13.8828 11.6857L10.6828 8.13017Z" fill="currentColor"/>
209
+ </svg>`
210
+ },
211
+ {
212
+ id: 'ftArrowIconColor',
213
+ label: 'Icon color',
214
+ type: 'color-picker-v2',
215
+ default: '#000000'
216
+ },
217
+ {
218
+ id: 'ftArrowIconSize',
219
+ label: 'Number per show',
220
+ type: 'input:stepper',
221
+ min: 1,
222
+ devices: {
223
+ desktop: {
224
+ default: 24
225
+ }
226
+ }
227
+ },
228
+ {
229
+ id: 'ftDragToScroll',
230
+ label: 'Drag to scroll',
231
+ type: 'toggle',
232
+ hide: true,
233
+ default: false
234
+ },
235
+ {
236
+ id: 'ftArrowNavColor',
237
+ label: 'Nav. color',
238
+ type: 'color-picker-v2'
239
+ },
240
+ {
241
+ id: 'ftArrowNavBorder',
242
+ label: 'Nav. border',
243
+ type: 'border',
244
+ default: {
245
+ borderType: 'none',
246
+ border: 'none',
247
+ borderWidth: '1px',
248
+ width: '1px 1px 1px 1px',
249
+ isCustom: false
250
+ }
251
+ },
252
+ {
253
+ id: 'ftArrowNavRadius',
254
+ label: 'Nav. corner',
255
+ type: 'radius-preset',
256
+ default: {
257
+ btrr: '0px',
258
+ bblr: '0px',
259
+ bbrr: '0px',
260
+ btlr: '0px',
261
+ radiusType: 'none'
262
+ }
263
+ },
264
+ {
265
+ id: 'ftArrowNavShadow',
266
+ type: 'shadow-v2',
267
+ default: {
268
+ type: 'shadow-1',
269
+ distance: '4px',
270
+ blur: '12px',
271
+ spread: '0px',
272
+ color: 'rgba(0, 0, 0, 0.20)',
273
+ angle: 90,
274
+ enable: false
275
+ }
276
+ }
277
+ ];
278
+ const productSelectDisplaySetting = [
279
+ {
280
+ id: 'typeDisplay',
281
+ type: 'select',
282
+ options: [
283
+ {
284
+ title: 'All images',
285
+ value: 'all-images'
286
+ },
287
+ {
288
+ title: 'Select manually',
289
+ value: 'select-manual'
290
+ }
291
+ ],
292
+ default: 'all-images'
293
+ },
294
+ {
295
+ id: 'preDisplay',
296
+ type: 'select',
297
+ label: 'Pre-display',
298
+ default: '1st-available-variant',
299
+ options: [
300
+ {
301
+ title: '1st available variant',
302
+ value: '1st-available-variant'
303
+ },
304
+ {
305
+ title: '1st image',
306
+ value: '1st-images'
307
+ },
308
+ {
309
+ title: '1st video',
310
+ value: '1st-video'
311
+ },
312
+ {
313
+ title: '1st 3D model',
314
+ value: '1st-3d-mode'
315
+ }
316
+ ]
317
+ }
318
+ ];
319
+ const productFeatureImageStyle = [
320
+ {
321
+ id: 'ftShape',
322
+ type: 'size-setting',
323
+ label: '',
324
+ devices: {
325
+ desktop: {
326
+ default: {
327
+ shape: 'square',
328
+ shapeValue: '1/1',
329
+ width: '100%',
330
+ height: undefined,
331
+ shapeLinked: true
332
+ }
333
+ }
334
+ },
335
+ settingConfig: {
336
+ width: {
337
+ displayOptions: [
338
+ 'full'
339
+ ]
340
+ }
341
+ },
342
+ hiddenSettings: [
343
+ 'padding',
344
+ 'gap'
345
+ ]
346
+ },
347
+ {
348
+ id: 'ftLayout',
349
+ type: 'option:illustration',
350
+ enableTooltip: true,
351
+ label: 'Image scale',
352
+ options: [
353
+ {
354
+ label: 'Fill image',
355
+ value: 'cover',
356
+ type: 'image',
357
+ svgName: 'gp-image-cover'
358
+ },
359
+ {
360
+ label: 'Fit image',
361
+ value: 'contain',
362
+ type: 'image',
363
+ svgName: 'gp-image-contain'
364
+ }
365
+ ],
366
+ devices: getDefaultResponsive('cover')
367
+ },
368
+ {
369
+ id: 'ftCorner',
370
+ type: 'radius-preset',
371
+ label: 'Corner',
372
+ default: {
373
+ btrr: '0px',
374
+ bblr: '0px',
375
+ bbrr: '0px',
376
+ btlr: '0px',
377
+ radiusType: 'none'
378
+ },
379
+ state: {
380
+ hover: true,
381
+ normal: true
382
+ }
383
+ }
384
+ ];
385
+
386
+ exports.productFeatureImageSetting = productFeatureImageSetting;
387
+ exports.productFeatureImageStyle = productFeatureImageStyle;
388
+ exports.productSelectDisplaySetting = productSelectDisplaySetting;