@gem-sdk/components 2.0.0-dev.622 → 2.0.0-dev.624

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