@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,489 @@
1
+ import { ImageListNavigation } from './ui/ImageListNavigation.js';
2
+ import { FeatureNavigation } from './ui/FeatureNavigation.js';
3
+
4
+ const showGallerySliderSetting = '((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")';
5
+ const showFeaturedImage = '(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))';
6
+ const showGalleryHoverAction = '(position == "one-col" || position == "two-col")';
7
+ const showImageListSetting = '(position !== "only-feature")';
8
+ const SettingUIV2 = [
9
+ {
10
+ label: {
11
+ en: 'Layout'
12
+ },
13
+ controls: [
14
+ {
15
+ layout: 'vertical',
16
+ setting: {
17
+ id: 'position'
18
+ },
19
+ options: {
20
+ isComboLayout: true
21
+ },
22
+ controls: [
23
+ {
24
+ label: {
25
+ en: 'Ratio'
26
+ },
27
+ type: 'control',
28
+ setting: {
29
+ id: 'ratioLayout'
30
+ },
31
+ layout: 'vertical',
32
+ conditionDisplay: 'position == "left"'
33
+ },
34
+ {
35
+ label: {
36
+ en: 'Ratio'
37
+ },
38
+ type: 'control',
39
+ setting: {
40
+ id: 'ratioLayoutRight'
41
+ },
42
+ layout: 'vertical',
43
+ conditionDisplay: 'position == "right"'
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ label: {
51
+ en: 'Featured image'
52
+ },
53
+ conditionDisplay: showFeaturedImage,
54
+ controls: [
55
+ {
56
+ setting: {
57
+ id: 'ftShape'
58
+ },
59
+ layout: 'vertical',
60
+ controlChangeTrigger: {
61
+ settings: [
62
+ {
63
+ condition: "ftShape.shape === 'original'",
64
+ source: [
65
+ 'ftShape'
66
+ ],
67
+ action: {
68
+ controlId: 'ftLayout',
69
+ newValue: 'contain',
70
+ groupType: 'style',
71
+ controlType: 'style'
72
+ }
73
+ }
74
+ ],
75
+ options: {
76
+ noRecordHistory: true
77
+ }
78
+ }
79
+ },
80
+ {
81
+ conditionDisplay: "ftShape.shape !== 'original'",
82
+ label: {
83
+ en: 'Image scale'
84
+ },
85
+ setting: {
86
+ id: 'ftLayout'
87
+ }
88
+ },
89
+ {
90
+ ...FeatureNavigation,
91
+ conditionDisplay: `${showFeaturedImage}`
92
+ }
93
+ ],
94
+ moreSettings: {
95
+ type: 'collapse',
96
+ controls: [
97
+ {
98
+ label: {
99
+ en: 'Corner'
100
+ },
101
+ setting: {
102
+ id: 'ftCorner'
103
+ }
104
+ },
105
+ {
106
+ type: 'combo',
107
+ label: {
108
+ en: 'Hover action'
109
+ },
110
+ conditionDisplay: showFeaturedImage,
111
+ iconName: 'gp-trigger-action-hover',
112
+ getValueFromSettingID: 'hoverEffect',
113
+ isShowSettingTitle: true,
114
+ defaultValueWhenClear: 'none',
115
+ compoDefaultValue: 'zoom',
116
+ controls: [
117
+ {
118
+ label: {
119
+ en: 'When hover'
120
+ },
121
+ setting: {
122
+ id: 'hoverEffect'
123
+ }
124
+ },
125
+ {
126
+ label: {
127
+ en: 'Zoom type'
128
+ },
129
+ conditionDisplay: 'hoverEffect == "zoom"',
130
+ setting: {
131
+ id: 'zoomType'
132
+ }
133
+ },
134
+ {
135
+ label: {
136
+ en: 'Zoom value'
137
+ },
138
+ conditionDisplay: 'hoverEffect == "zoom"',
139
+ setting: {
140
+ id: 'zoom'
141
+ }
142
+ },
143
+ {
144
+ label: {
145
+ en: 'Other image'
146
+ },
147
+ conditionDisplay: 'hoverEffect == "other"',
148
+ setting: {
149
+ id: 'otherImage'
150
+ }
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ type: 'combo',
156
+ label: {
157
+ en: 'Click action'
158
+ },
159
+ iconName: 'gp-trigger-action-click',
160
+ conditionDisplay: showFeaturedImage,
161
+ getValueFromSettingID: 'ftClickOpenLightBox',
162
+ isShowSettingTitle: true,
163
+ defaultValueWhenClear: 'none',
164
+ compoDefaultValue: 'popup',
165
+ controls: [
166
+ {
167
+ label: {
168
+ en: 'After click'
169
+ },
170
+ setting: {
171
+ id: 'ftClickOpenLightBox'
172
+ }
173
+ },
174
+ {
175
+ label: {
176
+ en: 'Open new tab'
177
+ },
178
+ setting: {
179
+ id: 'ftClickOpenNewTab'
180
+ },
181
+ conditionDisplay: `ftClickOpenLightBox === "product-link"`
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ type: 'control',
187
+ label: {
188
+ en: 'Slide speed'
189
+ },
190
+ setting: {
191
+ id: 'ftAnimationSpeed'
192
+ }
193
+ },
194
+ {
195
+ type: 'control',
196
+ label: {
197
+ en: 'Animation'
198
+ },
199
+ setting: {
200
+ id: 'ftAnimationMode'
201
+ }
202
+ },
203
+ {
204
+ label: {
205
+ en: 'Drag / swipe'
206
+ },
207
+ setting: {
208
+ id: 'ftDragToScroll'
209
+ }
210
+ },
211
+ {
212
+ label: {
213
+ en: 'Infinity loop'
214
+ },
215
+ setting: {
216
+ id: 'ftLoop'
217
+ }
218
+ }
219
+ ]
220
+ }
221
+ },
222
+ {
223
+ label: {
224
+ en: 'Image list'
225
+ },
226
+ conditionDisplay: showImageListSetting,
227
+ controls: [
228
+ {
229
+ label: {
230
+ en: 'Display'
231
+ },
232
+ conditionDisplay: 'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',
233
+ setting: {
234
+ id: 'type'
235
+ }
236
+ },
237
+ {
238
+ setting: {
239
+ id: 'shape'
240
+ },
241
+ layout: 'vertical',
242
+ conditionDisplay: '["left", "right"].includes(position)'
243
+ },
244
+ {
245
+ setting: {
246
+ id: 'shapeForBottom'
247
+ },
248
+ layout: 'vertical',
249
+ conditionDisplay: '["bottom-left", "bottom-center"].includes(position)'
250
+ },
251
+ {
252
+ setting: {
253
+ id: 'shapeForInsideBottom'
254
+ },
255
+ layout: 'vertical',
256
+ conditionDisplay: '["inside-bottom"].includes(position)'
257
+ },
258
+ {
259
+ setting: {
260
+ id: 'shapeForInside'
261
+ },
262
+ layout: 'vertical',
263
+ conditionDisplay: '["inside-left", "inside-right"].includes(position)'
264
+ },
265
+ {
266
+ setting: {
267
+ id: 'shapeForFtOnly'
268
+ },
269
+ layout: 'vertical',
270
+ conditionDisplay: 'position == "only-feature"'
271
+ },
272
+ {
273
+ setting: {
274
+ id: 'shapeFor2Col'
275
+ },
276
+ layout: 'vertical',
277
+ conditionDisplay: 'position == "two-col"'
278
+ },
279
+ {
280
+ setting: {
281
+ id: 'shapeFor1Col'
282
+ },
283
+ layout: 'vertical',
284
+ conditionDisplay: 'position == "one-col"'
285
+ },
286
+ {
287
+ label: {
288
+ en: 'Image gap'
289
+ },
290
+ setting: {
291
+ id: 'itemSpacing'
292
+ }
293
+ },
294
+ {
295
+ conditionDisplay: `(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')`,
296
+ label: {
297
+ en: 'Image scale'
298
+ },
299
+ setting: {
300
+ id: 'layout'
301
+ }
302
+ },
303
+ {
304
+ ...ImageListNavigation,
305
+ conditionDisplay: showGallerySliderSetting
306
+ }
307
+ ],
308
+ moreSettings: {
309
+ type: 'collapse',
310
+ controls: [
311
+ {
312
+ label: {
313
+ en: 'Corner'
314
+ },
315
+ setting: {
316
+ id: 'corner'
317
+ }
318
+ },
319
+ {
320
+ label: {
321
+ en: 'Active border'
322
+ },
323
+ conditionDisplay: '!["one-col", "two-col"].includes(position)',
324
+ setting: {
325
+ id: 'borderActive'
326
+ }
327
+ },
328
+ {
329
+ type: 'combo',
330
+ label: {
331
+ en: 'Hover action'
332
+ },
333
+ conditionDisplay: showGalleryHoverAction,
334
+ iconName: 'gp-trigger-action-hover',
335
+ getValueFromSettingID: 'galleryHoverEffect',
336
+ defaultValueWhenClear: 'none',
337
+ compoDefaultValue: 'zoom',
338
+ controls: [
339
+ {
340
+ label: {
341
+ en: 'When hover'
342
+ },
343
+ setting: {
344
+ id: 'galleryHoverEffect'
345
+ },
346
+ conditionDisplay: 'galleryHoverEffect == "none"'
347
+ },
348
+ {
349
+ label: {
350
+ en: 'Zoom type'
351
+ },
352
+ conditionDisplay: 'galleryHoverEffect == "zoom"',
353
+ setting: {
354
+ id: 'galleryZoomType'
355
+ }
356
+ },
357
+ {
358
+ label: {
359
+ en: 'Zoom value'
360
+ },
361
+ conditionDisplay: 'galleryHoverEffect == "zoom"',
362
+ setting: {
363
+ id: 'galleryZoom'
364
+ }
365
+ },
366
+ {
367
+ label: {
368
+ en: 'Other image'
369
+ },
370
+ conditionDisplay: 'galleryHoverEffect == "other"',
371
+ setting: {
372
+ id: 'otherImage'
373
+ }
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ label: {
379
+ en: 'Click action'
380
+ },
381
+ setting: {
382
+ id: 'clickOpenLightBox'
383
+ }
384
+ },
385
+ {
386
+ conditionDisplay: showGallerySliderSetting,
387
+ label: {
388
+ en: 'Drag / swipe'
389
+ },
390
+ setting: {
391
+ id: 'dragToScroll'
392
+ }
393
+ },
394
+ {
395
+ conditionDisplay: showGallerySliderSetting,
396
+ label: {
397
+ en: 'Infinity loop'
398
+ },
399
+ setting: {
400
+ id: 'loop'
401
+ }
402
+ }
403
+ ]
404
+ }
405
+ },
406
+ {
407
+ label: {
408
+ en: 'Item spacing'
409
+ },
410
+ conditionDisplay: '["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',
411
+ controls: [
412
+ {
413
+ label: {
414
+ en: 'Gap'
415
+ },
416
+ setting: {
417
+ id: 'spacing'
418
+ }
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ label: {
424
+ en: 'Display condition'
425
+ },
426
+ conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
427
+ controls: [
428
+ {
429
+ label: {
430
+ en: 'Default item'
431
+ },
432
+ setting: {
433
+ id: 'preDisplay'
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ label: {
440
+ en: 'Optimize LCP'
441
+ },
442
+ controls: [
443
+ {
444
+ label: {
445
+ en: 'Quality'
446
+ },
447
+ setting: {
448
+ id: 'qualityType'
449
+ }
450
+ },
451
+ {
452
+ layout: 'horizontal',
453
+ label: {
454
+ en: ' '
455
+ },
456
+ conditionDisplay: 'qualityType == "custom"',
457
+ setting: {
458
+ id: 'qualityPercent'
459
+ }
460
+ },
461
+ {
462
+ label: {
463
+ en: 'Preload'
464
+ },
465
+ conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
466
+ setting: {
467
+ id: 'preload'
468
+ }
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ controls: [
474
+ {
475
+ label: {
476
+ en: 'Align'
477
+ },
478
+ setting: {
479
+ id: 'align'
480
+ },
481
+ options: {
482
+ labelVariant: 'primary'
483
+ }
484
+ }
485
+ ]
486
+ }
487
+ ];
488
+
489
+ export { SettingUIV2 };
@@ -4,6 +4,7 @@ import { bannerSetting } from './banner/index.js';
4
4
  import { breadcrumbSetting } from './breadcrumb/index.js';
5
5
  import { buttonSetting } from './button/index.js';
6
6
  import { carouselSetting } from './carousel/index.js';
7
+ import { swiperCarouselSetting } from './swiper-carousel/index.js';
7
8
  import { cartSetting } from './cart/index.js';
8
9
  import { codeSetting } from './code/index.js';
9
10
  import { collectionSetting } from './collection/index.js';
@@ -59,6 +60,7 @@ var setting = {
59
60
  ...breadcrumbSetting,
60
61
  ...buttonSetting,
61
62
  ...carouselSetting,
63
+ ...swiperCarouselSetting,
62
64
  ...cartSetting,
63
65
  ...codeSetting,
64
66
  ...collectionSetting,
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { getClass } from './common/getClass.js';
4
+ import { getStyle } from './common/getStyle.js';
5
+ import { getData } from './common/common.js';
6
+ import { If } from '@gem-sdk/system';
7
+
8
+ const Arrow = (props)=>{
9
+ const { custom, left, onClick } = props;
10
+ const { isRenderCustomIcon } = getData(props);
11
+ const { buttonClass, buttonContentClass } = getClass(props);
12
+ const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle(props, 'react');
13
+ const customIcon = If(isRenderCustomIcon, custom ?? '', /*#__PURE__*/ jsx("svg", {
14
+ height: "100%",
15
+ width: "100%",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ viewBox: "0 0 24 24",
18
+ fill: "currentColor",
19
+ children: /*#__PURE__*/ jsx("path", {
20
+ d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
21
+ })
22
+ }));
23
+ const buttonContent = /*#__PURE__*/ jsx("div", {
24
+ className: buttonContentClass,
25
+ style: buttonContentStyle,
26
+ dangerouslySetInnerHTML: {
27
+ __html: customIcon || ''
28
+ }
29
+ });
30
+ return /*#__PURE__*/ jsxs("button", {
31
+ type: "button",
32
+ "aria-label": `Carousel ${left ? 'Back' : 'Next'} Arrow`,
33
+ className: buttonClass,
34
+ style: buttonStyle,
35
+ onClick: onClick,
36
+ children: [
37
+ /*#__PURE__*/ jsx("style", {
38
+ type: "text/css",
39
+ dangerouslySetInnerHTML: {
40
+ __html: innerBorderCss
41
+ }
42
+ }),
43
+ buttonContent
44
+ ]
45
+ });
46
+ };
47
+
48
+ export { Arrow as default };
@@ -0,0 +1,42 @@
1
+ import { template } from '@gem-sdk/core';
2
+ import { getClass } from './common/getClass.js';
3
+ import { getStyle } from './common/getStyle.js';
4
+ import { getData } from './common/common.js';
5
+ import { If } from '@gem-sdk/system';
6
+
7
+ const Arrow = (props)=>{
8
+ const { custom, left } = props;
9
+ const { isRenderCustomIcon } = getData(props);
10
+ const { buttonClass, buttonContentClass } = getClass(props);
11
+ const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle(props);
12
+ const customIcon = If(isRenderCustomIcon, custom ?? '', `<svg
13
+ height="100%"
14
+ width="100%"
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ viewBox="0 0 24 24"
17
+ fill="currentColor"
18
+ >
19
+ <path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
20
+ </svg>`);
21
+ const buttonContent = template`
22
+ <div
23
+ class="${buttonContentClass}"
24
+ style="${buttonContentStyle}"
25
+ >
26
+ ${customIcon || ''}
27
+ </div>
28
+ `;
29
+ return template`
30
+ <button
31
+ type="button"
32
+ aria-label='Carousel ${left ? 'Back' : 'Next'} Arrow'
33
+ class="${buttonClass}"
34
+ style="${buttonStyle}"
35
+ >
36
+ <style type="text/css">${innerBorderCss}</style>
37
+ ${buttonContent}
38
+ </button>
39
+ `;
40
+ };
41
+
42
+ export { Arrow as default };