@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,489 +0,0 @@
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 };
@@ -1,48 +0,0 @@
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 };
@@ -1,42 +0,0 @@
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 };
@@ -1,111 +0,0 @@
1
- import { getResponsiveValueByScreen } from '@gem-sdk/core';
2
-
3
- const devices = [
4
- 'desktop',
5
- 'tablet',
6
- 'mobile'
7
- ];
8
- const getResponsiveSetting = (setting)=>{
9
- const desktop = setting.desktop;
10
- const tablet = setting.tablet ? setting.tablet : desktop;
11
- const mobile = setting.mobile ? setting.mobile : tablet;
12
- return {
13
- desktop,
14
- tablet,
15
- mobile
16
- };
17
- };
18
- const getArrowPositionStyle = ({ vertical, arrowType, gapToEachSize, left })=>{
19
- const result = {};
20
- devices.forEach((item)=>{
21
- const verticalResponsive = getResponsiveValueByScreen(vertical, item, false);
22
- const deviceType = item === 'desktop' ? '' : `-${item}`;
23
- if (!verticalResponsive) {
24
- result[`left${deviceType}`] = arrowType[item] === 'inside' && left ? gapToEachSize + 'px' : 'initial';
25
- result[`top${deviceType}`] = left ? 'initial' : '';
26
- result[`right${deviceType}`] = arrowType[item] === 'inside' && !left ? gapToEachSize + 'px' : 'initial';
27
- result[`bottom${deviceType}`] = !left ? 'initial' : '';
28
- } else {
29
- result[`top${deviceType}`] = arrowType[item] === 'inside' && left ? gapToEachSize + 'px' : 'initial';
30
- result[`left${deviceType}`] = left ? 'initial' : '';
31
- result[`bottom${deviceType}`] = arrowType[item] === 'inside' && !left ? gapToEachSize + 'px' : 'initial';
32
- result[`right${deviceType}`] = !left ? 'initial' : '';
33
- }
34
- });
35
- return result;
36
- };
37
- const getClassArrowRotate = (left, vertical)=>{
38
- const result = {};
39
- devices.forEach((item)=>{
40
- const verticalResponsive = getResponsiveValueByScreen(vertical, item, false);
41
- const deviceType = item === 'desktop' ? '' : `${item}:`;
42
- result[`${deviceType}gp-rotate-[-90deg]`] = left && !!verticalResponsive;
43
- result[`${deviceType}gp-rotate-90`] = !left && !!verticalResponsive;
44
- result[`${deviceType}gp-rotate-180`] = left && !verticalResponsive;
45
- result[`${deviceType}gp-rotate-0`] = !left && !verticalResponsive;
46
- });
47
- return result;
48
- };
49
- const getClassArrowDisplay = (arrowType, vertical)=>{
50
- const result = {};
51
- devices.forEach((device)=>{
52
- const verticalResponsive = getResponsiveValueByScreen(vertical, device, false);
53
- const deviceRes = device === 'desktop' ? '' : `${device}:`;
54
- result[`${deviceRes}!gp-flex ${deviceRes}!gp-absolute ${deviceRes}gp-z-2`] = arrowType[device] === 'inside' || !!verticalResponsive;
55
- result[`${deviceRes}!gp-flex ${deviceRes}!gp-relative `] = arrowType[device] === 'outside';
56
- result[`${deviceRes}!gp-hidden`] = arrowType[device] === 'none';
57
- });
58
- return result;
59
- };
60
- const getArrowDisplayStyle = (arrowType)=>{
61
- let result = {};
62
- devices.forEach((device)=>{
63
- const arrowTypeResponsive = getResponsiveValueByScreen(arrowType, device, 'none');
64
- result = {
65
- ...result,
66
- [device]: arrowTypeResponsive === 'none' ? 'none' : 'flex'
67
- };
68
- });
69
- return result;
70
- };
71
- const mappingNavigationCarousel = (setting)=>{
72
- const generateValueByDevices = (value)=>{
73
- const newValue = {
74
- ...value
75
- };
76
- const deviceNotExits = devices.filter((x)=>!Object.keys(newValue).includes(x));
77
- deviceNotExits.forEach((el)=>{
78
- if (el === 'tablet') {
79
- newValue[el] = newValue['desktop'];
80
- }
81
- if (el === 'mobile') {
82
- newValue[el] = newValue['tablet'];
83
- }
84
- });
85
- return newValue;
86
- };
87
- if (setting?.layout === 'vertical') {
88
- const { controlOverContent, arrow } = setting;
89
- const newArrow = generateValueByDevices(arrow);
90
- const newControlOverContent = generateValueByDevices(controlOverContent);
91
- const navigationStyle = {};
92
- devices.forEach((el)=>{
93
- if (!newArrow[el]) navigationStyle[el] = 'none';
94
- else if (newArrow[el] && newControlOverContent[el]) navigationStyle[el] = 'inside';
95
- else navigationStyle[el] = 'outside';
96
- });
97
- return {
98
- ...setting,
99
- navigationStyle
100
- };
101
- }
102
- return setting;
103
- };
104
- const getData = (props)=>{
105
- const isRenderCustomIcon = !!props.custom && props.custom !== '';
106
- return {
107
- isRenderCustomIcon
108
- };
109
- };
110
-
111
- export { getArrowDisplayStyle, getArrowPositionStyle, getClassArrowDisplay, getClassArrowRotate, getData, getResponsiveSetting, mappingNavigationCarousel };