@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,248 +0,0 @@
1
- const showSliderSetting = '(type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col"';
2
- const productGalleryImageUI = [
3
- {
4
- type: 'control',
5
- label: {
6
- en: 'Display type'
7
- },
8
- condition: 'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',
9
- setting: {
10
- id: 'type'
11
- }
12
- },
13
- {
14
- type: 'control',
15
- setting: {
16
- id: 'shape'
17
- },
18
- layout: 'vertical',
19
- condition: '["left", "right"].includes(position)'
20
- },
21
- {
22
- type: 'control',
23
- setting: {
24
- id: 'shapeForBottom'
25
- },
26
- layout: 'vertical',
27
- condition: '["bottom-left", "bottom-center"].includes(position)'
28
- },
29
- {
30
- type: 'control',
31
- setting: {
32
- id: 'shapeForInsideBottom'
33
- },
34
- layout: 'vertical',
35
- condition: '["inside-bottom"].includes(position)'
36
- },
37
- {
38
- type: 'control',
39
- setting: {
40
- id: 'shapeForInside'
41
- },
42
- layout: 'vertical',
43
- condition: '["inside-left", "inside-right"].includes(position)'
44
- },
45
- {
46
- type: 'control',
47
- setting: {
48
- id: 'shapeForFtOnly'
49
- },
50
- layout: 'vertical',
51
- condition: 'position == "only-feature"'
52
- },
53
- {
54
- type: 'control',
55
- setting: {
56
- id: 'shapeFor2Col'
57
- },
58
- layout: 'vertical',
59
- condition: 'position == "two-col"'
60
- },
61
- {
62
- type: 'control',
63
- setting: {
64
- id: 'shapeFor1Col'
65
- },
66
- layout: 'vertical',
67
- condition: 'position == "one-col"'
68
- },
69
- {
70
- type: 'control',
71
- condition: `(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || (["inside-left", "inside-right"].includes(position) && shapeForInside.shape !== 'original') || (["inside-bottom"].includes(position) && shapeForInsideBottom.shape !== 'original') || (["bottom-left", "bottom-center"].includes(position) && shapeForBottom.shape !== 'original') || (["left", "right"].includes(position) && shape.shape !== 'original')`,
72
- label: {
73
- en: 'Image scale'
74
- },
75
- setting: {
76
- id: 'layout'
77
- },
78
- isMoreSetting: true
79
- },
80
- {
81
- type: 'control',
82
- label: {
83
- en: 'Hover effect'
84
- },
85
- setting: {
86
- id: 'galleryHoverEffect'
87
- },
88
- condition: 'position == "one-col" || position == "two-col"',
89
- isMoreSetting: true
90
- },
91
- {
92
- type: 'control',
93
- label: {
94
- en: 'Zoom type'
95
- },
96
- condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
97
- setting: {
98
- id: 'galleryZoomType'
99
- },
100
- isMoreSetting: true
101
- },
102
- {
103
- type: 'control',
104
- label: {
105
- en: 'Click effect'
106
- },
107
- setting: {
108
- id: 'clickOpenLightBox'
109
- },
110
- isMoreSetting: true
111
- },
112
- {
113
- type: 'control',
114
- label: {
115
- en: 'Zoom value'
116
- },
117
- condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
118
- setting: {
119
- id: 'galleryZoom'
120
- },
121
- isMoreSetting: true
122
- },
123
- {
124
- type: 'control',
125
- label: {
126
- en: 'Active border'
127
- },
128
- options: {
129
- labelPosition: 'start'
130
- },
131
- setting: {
132
- id: 'borderActive'
133
- },
134
- condition: '!["one-col", "two-col"].includes(position)',
135
- isMoreSetting: true
136
- },
137
- {
138
- type: 'control',
139
- label: {
140
- en: 'Corner'
141
- },
142
- setting: {
143
- id: 'corner'
144
- },
145
- isMoreSetting: true
146
- },
147
- {
148
- type: 'control',
149
- label: {
150
- en: 'Spacing'
151
- },
152
- setting: {
153
- id: 'itemSpacing'
154
- },
155
- isMoreSetting: true,
156
- condition: '!["one-col", "two-col"].includes(position)'
157
- },
158
- {
159
- type: 'control',
160
- label: {
161
- en: 'Drag to scroll'
162
- },
163
- condition: showSliderSetting,
164
- setting: {
165
- id: 'dragToScroll'
166
- },
167
- isMoreSetting: true
168
- },
169
- {
170
- type: 'control',
171
- label: {
172
- en: 'Loop'
173
- },
174
- condition: showSliderSetting,
175
- setting: {
176
- id: 'loop'
177
- },
178
- isMoreSetting: true
179
- }
180
- ];
181
- const productGalleryImageNavigationUI = [
182
- {
183
- type: 'control',
184
- label: {
185
- en: 'Navigation'
186
- },
187
- condition: showSliderSetting,
188
- setting: {
189
- id: 'navigationPosition'
190
- },
191
- layout: 'vertical'
192
- },
193
- {
194
- type: 'control',
195
- layout: 'vertical',
196
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
197
- setting: {
198
- id: 'arrowIcon'
199
- },
200
- isMoreSetting: true
201
- },
202
- {
203
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
204
- type: 'control',
205
- label: {
206
- en: 'Icon color'
207
- },
208
- setting: {
209
- id: 'arrowIconColor'
210
- },
211
- isMoreSetting: true
212
- },
213
- {
214
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
215
- type: 'control',
216
- label: {
217
- en: 'Nav. color'
218
- },
219
- setting: {
220
- id: 'arrowNavColor'
221
- },
222
- isMoreSetting: true
223
- },
224
- {
225
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
226
- type: 'control',
227
- label: {
228
- en: 'Nav. border'
229
- },
230
- setting: {
231
- id: 'arrowNavBorder'
232
- },
233
- isMoreSetting: true
234
- },
235
- {
236
- condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
237
- type: 'control',
238
- label: {
239
- en: 'Nav. corner'
240
- },
241
- setting: {
242
- id: 'arrowNavRadius'
243
- },
244
- isMoreSetting: true
245
- }
246
- ];
247
-
248
- export { productGalleryImageNavigationUI, productGalleryImageUI };
@@ -1,70 +0,0 @@
1
- import { SettingUIV1 } from './configs/uiV1.js';
2
- import { SettingUIV2 } from './configs/uiV2.js';
3
- import { ProductImageSettingsV2 } from './configs/setting-v2/index.js';
4
-
5
- const config = {
6
- tag: 'ProductImagesV3',
7
- label: 'Product Images New Carousel',
8
- icon: `
9
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
10
- <path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
11
- </svg>
12
- `,
13
- settings: ProductImageSettingsV2,
14
- ui: SettingUIV1,
15
- uiV2: SettingUIV2,
16
- editorConfigs: {
17
- placeholder: {
18
- flowTag: [
19
- 'Product'
20
- ],
21
- allowAppendTags: [
22
- 'ProductBadge'
23
- ]
24
- },
25
- slots: {
26
- children: true
27
- }
28
- },
29
- presets: [
30
- {
31
- id: 'product-image-v3',
32
- name: {
33
- en: 'Product Images New Carousel'
34
- },
35
- icon: {
36
- desktop: `
37
- <svg width="96" height="56" viewBox="0 0 96 56" fill="none" xmlns="http://www.w3.org/2000/svg">
38
- <rect x="24.5" width="47" height="42" rx="3" fill="#494949"/>
39
- <path d="M40.5 15.766L45.495 14.0288C45.495 14.0288 46.1024 15.4454 48.005 15.4454C49.9076 15.4454 50.5083 14 50.5083 14L55.5 15.766L54.6692 20.1222H52.1642V28H43.825V20.1196H41.3325L40.5 15.766Z" fill="#D6D6D6"/>
40
- <rect x="31" y="46" width="10" height="10" rx="3" fill="#494949"/>
41
- <rect x="43" y="46" width="10" height="10" rx="3" fill="#494949"/>
42
- <rect x="55" y="46" width="10" height="10" rx="3" fill="#494949"/>
43
- </svg>
44
- `
45
- },
46
- components: [
47
- {
48
- tag: 'ProductImagesV3',
49
- styles: {
50
- position: {
51
- desktop: 'bottom-center',
52
- mobile: 'bottom-center'
53
- }
54
- },
55
- advanced: {
56
- 'spacing-setting': {
57
- desktop: {
58
- margin: {
59
- bottom: 'var(--g-s-l)'
60
- }
61
- }
62
- }
63
- }
64
- }
65
- ]
66
- }
67
- ]
68
- };
69
-
70
- export { config as default };
@@ -1,384 +0,0 @@
1
- import { CAROUSEL_ANIMATION } from '../../../../../carousel/components/plugins/AnimationPlugin.js';
2
-
3
- const getDefaultResponsive = (defaultValue)=>{
4
- return {
5
- desktop: {
6
- default: defaultValue
7
- }
8
- };
9
- };
10
- const productFeatureImageSetting = [
11
- {
12
- id: 'hoverEffect',
13
- label: 'Hover Effect',
14
- type: 'select',
15
- hide: true,
16
- hideOnMode: {
17
- mobileOnly: true
18
- },
19
- options: [
20
- {
21
- title: 'Zoom',
22
- value: 'zoom'
23
- },
24
- {
25
- title: 'Show other image',
26
- value: 'other'
27
- }
28
- ],
29
- default: 'none'
30
- },
31
- {
32
- id: 'zoomType',
33
- type: 'option:value',
34
- label: 'Zoom Type',
35
- hide: true,
36
- default: 'default',
37
- hideOnMode: {
38
- mobileOnly: true
39
- },
40
- options: [
41
- {
42
- label: 'Default',
43
- value: 'default'
44
- },
45
- {
46
- label: 'Glasses',
47
- value: 'glasses'
48
- }
49
- ]
50
- },
51
- {
52
- id: 'zoom',
53
- type: 'input:slider',
54
- label: 'Zoom Value',
55
- min: 100,
56
- max: 200,
57
- step: 10,
58
- default: 150,
59
- units: [
60
- '%'
61
- ],
62
- showDefaultUnit: true,
63
- useOnlyUnitInit: true,
64
- isNumber: true
65
- },
66
- {
67
- id: 'otherImage',
68
- label: 'Other image',
69
- type: 'select',
70
- options: [
71
- {
72
- title: 'Image 1',
73
- value: 0
74
- },
75
- {
76
- title: 'Image 2',
77
- value: 1
78
- },
79
- {
80
- title: 'Image 3',
81
- value: 2
82
- },
83
- {
84
- title: 'Image 4',
85
- value: 3
86
- },
87
- {
88
- title: 'Last image',
89
- value: -1
90
- }
91
- ],
92
- default: 0
93
- },
94
- {
95
- id: 'ftClickOpenLightBox',
96
- label: 'Click Effect',
97
- type: 'select',
98
- options: [
99
- {
100
- title: 'Open gallery',
101
- value: 'popup'
102
- },
103
- {
104
- title: 'Open product',
105
- value: 'product-link'
106
- }
107
- ],
108
- devices: getDefaultResponsive('none')
109
- },
110
- {
111
- id: 'ftClickOpenNewTab',
112
- type: 'option:value',
113
- options: [
114
- {
115
- label: 'Yes',
116
- value: true
117
- },
118
- {
119
- label: 'No',
120
- value: false
121
- }
122
- ],
123
- default: false
124
- },
125
- {
126
- id: 'ftNavigationPosition',
127
- label: 'Navigation',
128
- type: 'option:illustration',
129
- enableTooltip: true,
130
- options: [
131
- {
132
- label: 'No navigation',
133
- value: 'none',
134
- type: 'slide-control',
135
- hide: true
136
- },
137
- {
138
- label: 'Display outside navigation',
139
- value: 'outside',
140
- type: 'slide-control',
141
- svgName: 'gp-slide-control-outside'
142
- },
143
- {
144
- label: 'Display inside navigation',
145
- value: 'inside',
146
- type: 'slide-control',
147
- svgName: 'gp-slide-control-inside'
148
- }
149
- ],
150
- devices: getDefaultResponsive('none')
151
- },
152
- {
153
- id: 'ftLoop',
154
- type: 'toggle',
155
- devices: getDefaultResponsive(false)
156
- },
157
- {
158
- id: 'ftPauseOnHover',
159
- label: 'Pause On Hover',
160
- type: 'toggle',
161
- hide: true,
162
- default: true
163
- },
164
- {
165
- id: 'ftAnimationSpeed',
166
- label: 'Slide speed',
167
- type: 'input:slider',
168
- useOnlyUnitInit: true,
169
- min: 100,
170
- max: 5000,
171
- step: 50,
172
- units: [
173
- 'ms'
174
- ],
175
- showDefaultUnit: true,
176
- isNumber: true,
177
- default: 500
178
- },
179
- {
180
- id: 'ftAnimationMode',
181
- label: 'Animation',
182
- type: 'select',
183
- default: CAROUSEL_ANIMATION.EASE_IN.value,
184
- options: [
185
- {
186
- label: 'Ease in',
187
- value: CAROUSEL_ANIMATION.EASE_IN.value
188
- },
189
- {
190
- label: 'Ease out',
191
- value: CAROUSEL_ANIMATION.EASE_OUT.value
192
- },
193
- {
194
- label: 'Ease in out',
195
- value: CAROUSEL_ANIMATION.EASE_IN_OUT.value
196
- }
197
- ]
198
- },
199
- {
200
- id: 'ftArrowIcon',
201
- type: 'icon',
202
- hide: true,
203
- label: 'Custom Arrow',
204
- info: 'Choose from list or paste any SVG icon',
205
- default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
206
- <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"/>
207
- </svg>`
208
- },
209
- {
210
- id: 'ftArrowIconColor',
211
- label: 'Icon color',
212
- type: 'color-picker-v2',
213
- default: '#000000'
214
- },
215
- {
216
- id: 'ftArrowIconSize',
217
- label: 'Number per show',
218
- type: 'input:stepper',
219
- min: 1,
220
- devices: {
221
- desktop: {
222
- default: 24
223
- }
224
- }
225
- },
226
- {
227
- id: 'ftDragToScroll',
228
- label: 'Drag to scroll',
229
- type: 'toggle',
230
- hide: true,
231
- default: false
232
- },
233
- {
234
- id: 'ftArrowNavColor',
235
- label: 'Nav. color',
236
- type: 'color-picker-v2'
237
- },
238
- {
239
- id: 'ftArrowNavBorder',
240
- label: 'Nav. border',
241
- type: 'border',
242
- default: {
243
- borderType: 'none',
244
- border: 'none',
245
- borderWidth: '1px',
246
- width: '1px 1px 1px 1px',
247
- isCustom: false
248
- }
249
- },
250
- {
251
- id: 'ftArrowNavRadius',
252
- label: 'Nav. corner',
253
- type: 'radius-preset',
254
- default: {
255
- btrr: '0px',
256
- bblr: '0px',
257
- bbrr: '0px',
258
- btlr: '0px',
259
- radiusType: 'none'
260
- }
261
- },
262
- {
263
- id: 'ftArrowNavShadow',
264
- type: 'shadow-v2',
265
- default: {
266
- type: 'shadow-1',
267
- distance: '4px',
268
- blur: '12px',
269
- spread: '0px',
270
- color: 'rgba(0, 0, 0, 0.20)',
271
- angle: 90,
272
- enable: false
273
- }
274
- }
275
- ];
276
- const productSelectDisplaySetting = [
277
- {
278
- id: 'typeDisplay',
279
- type: 'select',
280
- options: [
281
- {
282
- title: 'All images',
283
- value: 'all-images'
284
- },
285
- {
286
- title: 'Select manually',
287
- value: 'select-manual'
288
- }
289
- ],
290
- default: 'all-images'
291
- },
292
- {
293
- id: 'preDisplay',
294
- type: 'select',
295
- label: 'Pre-display',
296
- default: '1st-available-variant',
297
- options: [
298
- {
299
- title: '1st available variant',
300
- value: '1st-available-variant'
301
- },
302
- {
303
- title: '1st image',
304
- value: '1st-images'
305
- },
306
- {
307
- title: '1st video',
308
- value: '1st-video'
309
- },
310
- {
311
- title: '1st 3D model',
312
- value: '1st-3d-mode'
313
- }
314
- ]
315
- }
316
- ];
317
- const productFeatureImageStyle = [
318
- {
319
- id: 'ftShape',
320
- type: 'size-setting',
321
- label: '',
322
- devices: {
323
- desktop: {
324
- default: {
325
- shape: 'square',
326
- shapeValue: '1/1',
327
- width: '100%',
328
- height: undefined,
329
- shapeLinked: true
330
- }
331
- }
332
- },
333
- settingConfig: {
334
- width: {
335
- displayOptions: [
336
- 'full'
337
- ]
338
- }
339
- },
340
- hiddenSettings: [
341
- 'padding',
342
- 'gap'
343
- ]
344
- },
345
- {
346
- id: 'ftLayout',
347
- type: 'option:illustration',
348
- enableTooltip: true,
349
- label: 'Image scale',
350
- options: [
351
- {
352
- label: 'Fill image',
353
- value: 'cover',
354
- type: 'image',
355
- svgName: 'gp-image-cover'
356
- },
357
- {
358
- label: 'Fit image',
359
- value: 'contain',
360
- type: 'image',
361
- svgName: 'gp-image-contain'
362
- }
363
- ],
364
- devices: getDefaultResponsive('cover')
365
- },
366
- {
367
- id: 'ftCorner',
368
- type: 'radius-preset',
369
- label: 'Corner',
370
- default: {
371
- btrr: '0px',
372
- bblr: '0px',
373
- bbrr: '0px',
374
- btlr: '0px',
375
- radiusType: 'none'
376
- },
377
- state: {
378
- hover: true,
379
- normal: true
380
- }
381
- }
382
- ];
383
-
384
- export { productFeatureImageSetting, productFeatureImageStyle, productSelectDisplaySetting };