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