@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,713 @@
1
+ const carouselNavigationSettings = {
2
+ controls: [
3
+ {
4
+ label: {
5
+ en: 'Navigation'
6
+ },
7
+ setting: {
8
+ id: 'navigationEnable'
9
+ },
10
+ options: {
11
+ labelVariant: 'primary',
12
+ toggleStyle: 'switch'
13
+ }
14
+ },
15
+ {
16
+ conditionDisplay: `navigationEnable === true`,
17
+ label: {
18
+ en: 'Position'
19
+ },
20
+ setting: {
21
+ id: 'navigationStyle'
22
+ }
23
+ },
24
+ {
25
+ conditionDisplay: `navigationEnable === true`,
26
+ label: {
27
+ en: 'Icon'
28
+ },
29
+ setting: {
30
+ id: 'arrowCustom'
31
+ }
32
+ },
33
+ {
34
+ conditionDisplay: `navigationEnable === true`,
35
+ label: {
36
+ en: 'Icon size'
37
+ },
38
+ setting: {
39
+ id: 'arrowIconSize'
40
+ }
41
+ },
42
+ {
43
+ conditionDisplay: `navigationEnable === true`,
44
+ label: {
45
+ en: 'Icon color'
46
+ },
47
+ setting: {
48
+ id: 'arrowCustomColor'
49
+ }
50
+ }
51
+ ],
52
+ moreSettings: {
53
+ controls: [
54
+ {
55
+ type: 'combo',
56
+ conditionDisplay: `navigationEnable === true`,
57
+ label: {
58
+ en: 'Button size'
59
+ },
60
+ fixedValue: 'Edit',
61
+ iconName: 'polaris-measurement-size',
62
+ controls: [
63
+ {
64
+ setting: {
65
+ id: 'arrowButtonSize'
66
+ },
67
+ layout: 'vertical'
68
+ },
69
+ {
70
+ label: {
71
+ en: 'Padding'
72
+ },
73
+ controlConfig: {
74
+ id: 'padding',
75
+ type: 'padding-v2',
76
+ linkWithSetting: {
77
+ name: 'arrowButtonSize',
78
+ field: 'padding'
79
+ },
80
+ compoDefaultValue: {
81
+ desktop: {
82
+ default: {
83
+ type: 'custom',
84
+ top: '4px',
85
+ bottom: '4px',
86
+ left: '4px',
87
+ right: '4px'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ conditionDisplay: `navigationEnable === true`,
97
+ label: {
98
+ en: 'Background'
99
+ },
100
+ setting: {
101
+ id: 'arrowBackgroundColor'
102
+ }
103
+ },
104
+ {
105
+ conditionDisplay: `navigationEnable === true`,
106
+ label: {
107
+ en: 'Border'
108
+ },
109
+ setting: {
110
+ id: 'arrowBorder'
111
+ }
112
+ },
113
+ {
114
+ conditionDisplay: `navigationEnable === true`,
115
+ label: {
116
+ en: 'Corner'
117
+ },
118
+ setting: {
119
+ id: 'roundedArrow'
120
+ }
121
+ },
122
+ {
123
+ conditionDisplay: `navigationEnable === true`,
124
+ label: {
125
+ en: 'Shadow'
126
+ },
127
+ setting: {
128
+ id: 'arrowShadow'
129
+ }
130
+ },
131
+ {
132
+ conditionDisplay: `navigationEnable === true`,
133
+ label: {
134
+ en: 'Gap to edge'
135
+ },
136
+ setting: {
137
+ id: 'arrowGapToEachSide'
138
+ }
139
+ },
140
+ {
141
+ conditionDisplay: `navigationEnable === true`,
142
+ label: {
143
+ en: 'Show on hover'
144
+ },
145
+ setting: {
146
+ id: 'showWhenHover'
147
+ }
148
+ }
149
+ ]
150
+ }
151
+ };
152
+ const carouselDotsSettings = {
153
+ controls: [
154
+ {
155
+ label: {
156
+ en: 'Dots'
157
+ },
158
+ setting: {
159
+ id: 'dot'
160
+ },
161
+ options: {
162
+ labelVariant: 'primary',
163
+ toggleStyle: 'switch'
164
+ }
165
+ },
166
+ {
167
+ conditionDisplay: `dot === true`,
168
+ label: {
169
+ en: 'Position'
170
+ },
171
+ setting: {
172
+ id: 'dotStyle'
173
+ }
174
+ },
175
+ {
176
+ conditionDisplay: `dot === true`,
177
+ label: {
178
+ en: 'Active color'
179
+ },
180
+ setting: {
181
+ id: 'dotActiveColor'
182
+ }
183
+ },
184
+ {
185
+ conditionDisplay: `dot === true`,
186
+ label: {
187
+ en: 'Inactive color'
188
+ },
189
+ setting: {
190
+ id: 'dotColor'
191
+ }
192
+ }
193
+ ],
194
+ moreSettings: {
195
+ controls: [
196
+ {
197
+ conditionDisplay: `dot === true`,
198
+ label: {
199
+ en: 'Dots size'
200
+ },
201
+ setting: {
202
+ id: 'dotSize'
203
+ }
204
+ },
205
+ {
206
+ conditionDisplay: `dot === true`,
207
+ label: {
208
+ en: 'Gap to edge'
209
+ },
210
+ setting: {
211
+ id: 'dotGapToCarousel'
212
+ }
213
+ }
214
+ ]
215
+ }
216
+ };
217
+ const carouselEffectsSettings = {
218
+ label: {
219
+ en: 'Slide effect'
220
+ },
221
+ controls: [
222
+ {
223
+ label: {
224
+ en: 'Autoplay'
225
+ },
226
+ setting: {
227
+ id: 'autoplay'
228
+ }
229
+ },
230
+ {
231
+ label: {
232
+ en: 'Delay'
233
+ },
234
+ setting: {
235
+ id: 'autoplayTimeout'
236
+ },
237
+ conditionDisplay: 'autoplay === true'
238
+ },
239
+ {
240
+ label: {
241
+ en: 'Pause On Hover'
242
+ },
243
+ setting: {
244
+ id: 'pauseOnHover'
245
+ },
246
+ conditionDisplay: 'autoplay == true'
247
+ },
248
+ {
249
+ label: {
250
+ en: 'Slide direction'
251
+ },
252
+ setting: {
253
+ id: 'rtl'
254
+ }
255
+ },
256
+ {
257
+ label: {
258
+ en: 'Infinity loop'
259
+ },
260
+ setting: {
261
+ id: 'loop'
262
+ }
263
+ }
264
+ ],
265
+ moreSettings: {
266
+ controls: [
267
+ {
268
+ label: {
269
+ en: 'Drag / swipe'
270
+ },
271
+ setting: {
272
+ id: 'enableDrag'
273
+ }
274
+ },
275
+ {
276
+ label: {
277
+ en: 'Slide speed'
278
+ },
279
+ setting: {
280
+ id: 'playSpeed'
281
+ }
282
+ },
283
+ {
284
+ label: {
285
+ en: 'Animation'
286
+ },
287
+ setting: {
288
+ id: 'animationMode'
289
+ }
290
+ },
291
+ {
292
+ setting: {
293
+ id: 'runPreview'
294
+ },
295
+ layout: 'vertical',
296
+ conditionDisplay: 'autoplay === true'
297
+ }
298
+ ]
299
+ }
300
+ };
301
+ const SettingUIV2 = [
302
+ {
303
+ label: {
304
+ en: 'Items per slide'
305
+ },
306
+ controls: [
307
+ {
308
+ setting: {
309
+ id: 'itemNumber'
310
+ },
311
+ layout: 'vertical',
312
+ popoverLabel: {
313
+ en: 'Items per slide'
314
+ }
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ label: {
320
+ en: 'Display'
321
+ },
322
+ controls: [
323
+ {
324
+ label: {
325
+ en: 'Sneak peak'
326
+ },
327
+ type: 'combo',
328
+ setting: {
329
+ id: 'sneakPeak'
330
+ },
331
+ fixedValue: 'Styled',
332
+ iconName: 'gp-sneak-peek-left',
333
+ conditionEnable: 'itemNumber > 1',
334
+ options: {
335
+ disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
336
+ },
337
+ controls: [
338
+ {
339
+ layout: 'vertical',
340
+ label: {
341
+ en: 'style'
342
+ },
343
+ setting: {
344
+ id: 'sneakPeakType'
345
+ }
346
+ },
347
+ {
348
+ conditionDisplay: 'sneakPeakType == "forward"',
349
+ label: {
350
+ en: 'Ratio'
351
+ },
352
+ setting: {
353
+ id: 'sneakPeakOffsetForward'
354
+ }
355
+ },
356
+ {
357
+ conditionDisplay: 'sneakPeakType == "center"',
358
+ label: {
359
+ en: 'Ratio'
360
+ },
361
+ setting: {
362
+ id: 'sneakPeakOffsetCenter'
363
+ }
364
+ }
365
+ ]
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ label: {
371
+ en: 'Item management'
372
+ },
373
+ controls: [
374
+ {
375
+ label: {
376
+ en: 'Order'
377
+ },
378
+ setting: {
379
+ id: 'childItem'
380
+ }
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ label: {
386
+ en: 'Item spacing'
387
+ },
388
+ controls: [
389
+ {
390
+ label: {
391
+ en: 'Gap'
392
+ },
393
+ setting: {
394
+ id: 'spacing'
395
+ }
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ label: {
401
+ en: 'Item style'
402
+ },
403
+ controls: [
404
+ {
405
+ label: {
406
+ en: 'Padding'
407
+ },
408
+ controlConfig: {
409
+ id: 'itemPadding',
410
+ type: 'padding-v2',
411
+ linkWithSetting: {
412
+ name: 'itemPadding',
413
+ field: 'padding'
414
+ },
415
+ compoDefaultValue: {
416
+ desktop: {
417
+ default: {
418
+ type: 'custom',
419
+ top: '16px',
420
+ bottom: '16px',
421
+ left: '16px',
422
+ right: '16px'
423
+ }
424
+ }
425
+ }
426
+ }
427
+ },
428
+ {
429
+ label: {
430
+ en: 'Background'
431
+ },
432
+ setting: {
433
+ id: 'background'
434
+ }
435
+ }
436
+ ],
437
+ moreSettings: {
438
+ controls: [
439
+ {
440
+ label: {
441
+ en: 'Border'
442
+ },
443
+ setting: {
444
+ id: 'borderContent'
445
+ }
446
+ },
447
+ {
448
+ label: {
449
+ en: 'Corner'
450
+ },
451
+ setting: {
452
+ id: 'roundedContent'
453
+ }
454
+ },
455
+ {
456
+ label: {
457
+ en: 'Shadow'
458
+ },
459
+ setting: {
460
+ id: 'carouselShadow'
461
+ },
462
+ options: {
463
+ updateFields: [
464
+ {
465
+ field: 'enable',
466
+ settingId: 'hasActiveShadow'
467
+ }
468
+ ]
469
+ },
470
+ controlChangeTrigger: {
471
+ settings: [
472
+ {
473
+ condition: `carouselShadow.enable === true`,
474
+ source: [
475
+ 'carouselShadow'
476
+ ],
477
+ action: {
478
+ controlId: 'hasActiveShadow',
479
+ groupType: 'style',
480
+ controlType: 'style',
481
+ newValue: true
482
+ }
483
+ },
484
+ {
485
+ condition: `carouselShadow.enable === false`,
486
+ source: [
487
+ 'carouselShadow'
488
+ ],
489
+ action: {
490
+ controlId: 'hasActiveShadow',
491
+ groupType: 'style',
492
+ controlType: 'style',
493
+ newValue: false
494
+ }
495
+ }
496
+ ],
497
+ options: {
498
+ noRecordHistory: true
499
+ }
500
+ }
501
+ }
502
+ ]
503
+ }
504
+ },
505
+ carouselNavigationSettings,
506
+ carouselDotsSettings,
507
+ carouselEffectsSettings,
508
+ {
509
+ label: {
510
+ en: 'Size'
511
+ },
512
+ controls: [
513
+ {
514
+ id: 'Width',
515
+ label: {
516
+ en: 'Width'
517
+ },
518
+ controlConfig: {
519
+ id: 'width',
520
+ type: 'dropdown:input',
521
+ label: 'Width',
522
+ inputType: 'number',
523
+ units: [
524
+ 'px',
525
+ '%'
526
+ ],
527
+ hideUnit: false,
528
+ fallbackValue: 'Auto',
529
+ linkWithSetting: {
530
+ name: 'sizeSetting',
531
+ field: 'width'
532
+ },
533
+ displayOptions: [
534
+ {
535
+ label: 'Default',
536
+ value: 'default',
537
+ showValue: true
538
+ },
539
+ {
540
+ label: 'Full',
541
+ value: '100%',
542
+ showValue: true
543
+ }
544
+ ]
545
+ },
546
+ layout: 'horizontal'
547
+ },
548
+ {
549
+ id: 'Height',
550
+ label: {
551
+ en: 'Height'
552
+ },
553
+ controlConfig: {
554
+ id: 'height',
555
+ type: 'dropdown:input',
556
+ label: 'height',
557
+ inputType: 'number',
558
+ units: [
559
+ 'px'
560
+ ],
561
+ hideUnit: false,
562
+ fallbackValue: 'Auto',
563
+ linkWithSetting: {
564
+ name: 'sizeSetting',
565
+ field: 'height'
566
+ },
567
+ displayOptions: [
568
+ {
569
+ label: 'Fit content',
570
+ value: 'Auto',
571
+ showValue: true
572
+ }
573
+ ]
574
+ },
575
+ layout: 'horizontal'
576
+ },
577
+ {
578
+ label: {
579
+ en: 'Padding'
580
+ },
581
+ conditionDisplay: `pageType != "POST_PURCHASE"`,
582
+ controlConfig: {
583
+ id: 'slider-padding',
584
+ type: 'padding-v2',
585
+ linkWithSetting: {
586
+ name: 'spacing-setting',
587
+ field: 'padding'
588
+ }
589
+ }
590
+ }
591
+ ]
592
+ },
593
+ {
594
+ label: {
595
+ en: 'Background'
596
+ },
597
+ controls: [
598
+ {
599
+ label: {
600
+ en: 'Color'
601
+ },
602
+ setting: {
603
+ id: 'backgroundColor'
604
+ }
605
+ },
606
+ {
607
+ label: {
608
+ en: 'Image'
609
+ },
610
+ setting: {
611
+ id: 'backgroundImage'
612
+ }
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ label: {
618
+ en: 'Shape'
619
+ },
620
+ conditionDisplay: 'pageType != "POST_PURCHASE"',
621
+ controls: [
622
+ {
623
+ label: {
624
+ en: 'Border'
625
+ },
626
+ setting: {
627
+ id: 'border',
628
+ state: 'normal'
629
+ }
630
+ },
631
+ {
632
+ label: {
633
+ en: 'Corner'
634
+ },
635
+ setting: {
636
+ id: 'rounded',
637
+ state: 'normal'
638
+ }
639
+ },
640
+ {
641
+ label: {
642
+ en: 'Shadow'
643
+ },
644
+ setting: {
645
+ id: 'boxShadow',
646
+ state: 'normal'
647
+ },
648
+ options: {
649
+ updateFields: [
650
+ {
651
+ field: 'enable',
652
+ settingId: 'hasBoxShadow',
653
+ state: 'normal'
654
+ }
655
+ ]
656
+ },
657
+ controlChangeTrigger: {
658
+ settings: [
659
+ {
660
+ condition: `boxShadow.normal.enable === true`,
661
+ source: [
662
+ 'boxShadow',
663
+ 'hasBoxShadow'
664
+ ],
665
+ action: {
666
+ controlId: 'hasBoxShadow',
667
+ groupType: 'advanced',
668
+ controlType: 'advanced',
669
+ state: 'normal',
670
+ newValue: true
671
+ }
672
+ },
673
+ {
674
+ condition: `boxShadow.normal.enable === false`,
675
+ source: [
676
+ 'boxShadow',
677
+ 'hasBoxShadow'
678
+ ],
679
+ action: {
680
+ controlId: 'hasBoxShadow',
681
+ groupType: 'advanced',
682
+ controlType: 'advanced',
683
+ state: 'normal',
684
+ newValue: false
685
+ }
686
+ }
687
+ ],
688
+ options: {
689
+ noRecordHistory: true
690
+ }
691
+ }
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ controls: [
697
+ {
698
+ conditionEnable: '!(parseInt(sizeSetting.width) >= 100 && sizeSetting.width?.includes("%"))',
699
+ setting: {
700
+ id: 'align'
701
+ },
702
+ label: {
703
+ en: 'Align'
704
+ },
705
+ options: {
706
+ labelVariant: 'primary'
707
+ }
708
+ }
709
+ ]
710
+ }
711
+ ];
712
+
713
+ export { SettingUIV2, carouselDotsSettings, carouselEffectsSettings, carouselNavigationSettings };