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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/cjs/accordion/setting/configs/uiV2.js +1 -0
  2. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +2 -0
  3. package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -0
  4. package/dist/cjs/builder.js +6 -12
  5. package/dist/cjs/button/setting/configs/settings.js +1 -0
  6. package/dist/cjs/carousel/setting/configs/settingV2.js +3 -0
  7. package/dist/cjs/collection/setting/collection-banner/configs/settings.js +2 -2
  8. package/dist/cjs/countdown-timer/setting/configs/settings.js +2 -0
  9. package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -0
  10. package/dist/cjs/grid/row/setting/configs/settings.js +5 -0
  11. package/dist/cjs/grid/section/setting/configs/settings.js +3 -0
  12. package/dist/cjs/icon-list/setting/configs/settings.js +2 -0
  13. package/dist/cjs/icon-list-hoz/setting/configs/settings.js +1 -0
  14. package/dist/cjs/index.js +32 -34
  15. package/dist/cjs/index.liquid.js +10 -16
  16. package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -0
  17. package/dist/cjs/next.js +1 -3
  18. package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +1 -0
  19. package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
  20. package/dist/cjs/product/index.js +4 -6
  21. package/dist/cjs/product/next.js +0 -4
  22. package/dist/cjs/product/setting/product/configs/settings.js +3 -0
  23. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
  24. package/dist/cjs/product/setting/product-variant/configs/settings.js +2 -0
  25. package/dist/cjs/product/setting/product-view-more/configs/settings.js +1 -0
  26. package/dist/cjs/setting.js +76 -78
  27. package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +2 -1
  28. package/dist/cjs/third-party/components/Bogos.liquid.js +2 -0
  29. package/dist/cjs/third-party/setting/Bogos/index.js +5 -1
  30. package/dist/esm/accordion/setting/configs/uiV2.js +1 -0
  31. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +2 -0
  32. package/dist/esm/breadcrumb/setting/configs/settings.js +1 -0
  33. package/dist/esm/builder.js +0 -6
  34. package/dist/esm/button/setting/configs/settings.js +1 -0
  35. package/dist/esm/carousel/setting/configs/settingV2.js +3 -0
  36. package/dist/esm/collection/setting/collection-banner/configs/settings.js +2 -2
  37. package/dist/esm/countdown-timer/setting/configs/settings.js +2 -0
  38. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -0
  39. package/dist/esm/grid/row/setting/configs/settings.js +5 -0
  40. package/dist/esm/grid/section/setting/configs/settings.js +3 -0
  41. package/dist/esm/icon-list/setting/configs/settings.js +2 -0
  42. package/dist/esm/icon-list-hoz/setting/configs/settings.js +1 -0
  43. package/dist/esm/index.js +0 -1
  44. package/dist/esm/index.liquid.js +0 -3
  45. package/dist/esm/marquee/setting/configs/settingsV2.js +1 -0
  46. package/dist/esm/next.js +1 -3
  47. package/dist/esm/product/components/ProductBundle/setting/uiV2.js +1 -0
  48. package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
  49. package/dist/esm/product/index.js +24 -26
  50. package/dist/esm/product/next.js +0 -4
  51. package/dist/esm/product/setting/product/configs/settings.js +3 -0
  52. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
  53. package/dist/esm/product/setting/product-variant/configs/settings.js +2 -0
  54. package/dist/esm/product/setting/product-view-more/configs/settings.js +1 -0
  55. package/dist/esm/setting.js +0 -2
  56. package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +2 -1
  57. package/dist/esm/third-party/components/Bogos.liquid.js +2 -0
  58. package/dist/esm/third-party/setting/Bogos/index.js +5 -1
  59. package/dist/types/index.d.ts +116 -551
  60. package/package.json +2 -2
  61. package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
  62. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
  63. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
  64. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
  65. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
  66. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
  67. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
  68. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
  69. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
  70. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
  71. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
  72. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
  73. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
  74. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
  75. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
  76. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
  77. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
  78. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
  79. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
  80. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
  81. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
  82. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
  83. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
  84. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
  85. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
  86. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
  87. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
  88. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
  89. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
  90. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
  91. package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
  92. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
  93. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
  94. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
  95. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
  96. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
  97. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -518
  98. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -336
  99. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
  100. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
  101. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
  102. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
  103. package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
  104. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
  105. package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
  106. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
  107. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
  108. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
  109. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
  110. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
  111. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
  112. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
  113. package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
  114. package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
  115. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
  116. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
  117. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
  118. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
  119. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
  120. package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
  121. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
  122. package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
  123. package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
  124. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
  125. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
  126. package/dist/cjs/swiper-carousel/index.js +0 -17
  127. package/dist/cjs/swiper-carousel/next.js +0 -22
  128. package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
  129. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
  130. package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
  131. package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
  132. package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
  133. package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
  134. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
  135. package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
  136. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
  137. package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
  138. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -819
  139. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
  140. package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
  141. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
  142. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
  143. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
  144. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
  145. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
  146. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
  147. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
  148. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
  149. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
  150. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
  151. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
  152. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
  153. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
  154. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
  155. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
  156. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
  157. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
  158. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
  159. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
  160. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
  161. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
  162. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
  163. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
  164. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
  165. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
  166. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
  167. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
  168. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
  169. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
  170. package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
  171. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
  172. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
  173. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
  174. package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
  175. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
  176. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -515
  177. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -334
  178. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
  179. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
  180. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
  181. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
  182. package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
  183. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
  184. package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
  185. package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
  186. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
  187. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
  188. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
  189. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
  190. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
  191. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
  192. package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
  193. package/dist/esm/swiper-carousel/components/const/index.js +0 -3
  194. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
  195. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
  196. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
  197. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
  198. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
  199. package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
  200. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
  201. package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
  202. package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
  203. package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
  204. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
  205. package/dist/esm/swiper-carousel/index.js +0 -15
  206. package/dist/esm/swiper-carousel/next.js +0 -18
  207. package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
  208. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
  209. package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
  210. package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
  211. package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
  212. package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
  213. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
  214. package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
  215. package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
  216. package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
  217. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -815
  218. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
@@ -1,718 +0,0 @@
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;