@gem-sdk/components 2.0.0-dev.693 → 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 (176) hide show
  1. package/dist/cjs/builder.js +6 -12
  2. package/dist/cjs/index.js +32 -34
  3. package/dist/cjs/index.liquid.js +10 -16
  4. package/dist/cjs/next.js +1 -3
  5. package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
  6. package/dist/cjs/product/index.js +4 -6
  7. package/dist/cjs/product/next.js +0 -4
  8. package/dist/cjs/setting.js +76 -78
  9. package/dist/esm/builder.js +0 -6
  10. package/dist/esm/index.js +0 -1
  11. package/dist/esm/index.liquid.js +0 -3
  12. package/dist/esm/next.js +1 -3
  13. package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
  14. package/dist/esm/product/index.js +24 -26
  15. package/dist/esm/product/next.js +0 -4
  16. package/dist/esm/setting.js +0 -2
  17. package/dist/types/index.d.ts +116 -551
  18. package/package.json +1 -1
  19. package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
  20. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
  21. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
  22. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
  23. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
  24. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
  25. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
  26. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
  27. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
  28. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
  29. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
  30. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
  31. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
  32. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
  33. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
  34. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
  35. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
  36. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
  37. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
  38. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
  39. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
  40. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
  41. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
  42. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
  43. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
  44. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
  45. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
  46. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
  47. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
  48. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
  49. package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
  50. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
  51. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
  52. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
  53. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
  54. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
  55. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -519
  56. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -337
  57. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
  58. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
  59. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
  60. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
  61. package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
  62. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
  63. package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
  64. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
  65. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
  66. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
  67. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
  68. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
  69. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
  70. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
  71. package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
  72. package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
  73. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
  74. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
  75. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
  76. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
  77. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
  78. package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
  79. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
  80. package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
  81. package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
  82. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
  83. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
  84. package/dist/cjs/swiper-carousel/index.js +0 -17
  85. package/dist/cjs/swiper-carousel/next.js +0 -22
  86. package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
  87. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
  88. package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
  89. package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
  90. package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
  91. package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
  92. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
  93. package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
  94. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
  95. package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
  96. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -822
  97. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
  98. package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
  99. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
  100. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
  101. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
  102. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
  103. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
  104. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
  105. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
  106. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
  107. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
  108. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
  109. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
  110. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
  111. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
  112. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
  113. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
  114. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
  115. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
  116. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
  117. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
  118. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
  119. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
  120. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
  121. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
  122. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
  123. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
  124. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
  125. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
  126. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
  127. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
  128. package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
  129. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
  130. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
  131. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
  132. package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
  133. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
  134. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -516
  135. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -335
  136. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
  137. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
  138. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
  139. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
  140. package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
  141. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
  142. package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
  143. package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
  144. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
  145. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
  146. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
  147. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
  148. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
  149. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
  150. package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
  151. package/dist/esm/swiper-carousel/components/const/index.js +0 -3
  152. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
  153. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
  154. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
  155. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
  156. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
  157. package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
  158. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
  159. package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
  160. package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
  161. package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
  162. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
  163. package/dist/esm/swiper-carousel/index.js +0 -15
  164. package/dist/esm/swiper-carousel/next.js +0 -18
  165. package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
  166. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
  167. package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
  168. package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
  169. package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
  170. package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
  171. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
  172. package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
  173. package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
  174. package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
  175. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -818
  176. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
@@ -1,491 +0,0 @@
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;
@@ -1,52 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var jsxRuntime = require('react/jsx-runtime');
7
- var getClass = require('./common/getClass.js');
8
- var getStyle = require('./common/getStyle.js');
9
- var common = require('./common/common.js');
10
- var system = require('@gem-sdk/system');
11
-
12
- const Arrow = (props)=>{
13
- const { custom, left, onClick } = props;
14
- const { isRenderCustomIcon } = common.getData(props);
15
- const { buttonClass, buttonContentClass } = getClass.getClass(props);
16
- const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle.getStyle(props, 'react');
17
- const customIcon = system.If(isRenderCustomIcon, custom ?? '', /*#__PURE__*/ jsxRuntime.jsx("svg", {
18
- height: "100%",
19
- width: "100%",
20
- xmlns: "http://www.w3.org/2000/svg",
21
- viewBox: "0 0 24 24",
22
- fill: "currentColor",
23
- children: /*#__PURE__*/ jsxRuntime.jsx("path", {
24
- d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
25
- })
26
- }));
27
- const buttonContent = /*#__PURE__*/ jsxRuntime.jsx("div", {
28
- className: buttonContentClass,
29
- style: buttonContentStyle,
30
- dangerouslySetInnerHTML: {
31
- __html: customIcon || ''
32
- }
33
- });
34
- return /*#__PURE__*/ jsxRuntime.jsxs("button", {
35
- type: "button",
36
- "aria-label": `Carousel ${left ? 'Back' : 'Next'} Arrow`,
37
- className: buttonClass,
38
- style: buttonStyle,
39
- onClick: onClick,
40
- children: [
41
- /*#__PURE__*/ jsxRuntime.jsx("style", {
42
- type: "text/css",
43
- dangerouslySetInnerHTML: {
44
- __html: innerBorderCss
45
- }
46
- }),
47
- buttonContent
48
- ]
49
- });
50
- };
51
-
52
- exports.default = Arrow;
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var core = require('@gem-sdk/core');
6
- var getClass = require('./common/getClass.js');
7
- var getStyle = require('./common/getStyle.js');
8
- var common = require('./common/common.js');
9
- var system = require('@gem-sdk/system');
10
-
11
- const Arrow = (props)=>{
12
- const { custom, left } = props;
13
- const { isRenderCustomIcon } = common.getData(props);
14
- const { buttonClass, buttonContentClass } = getClass.getClass(props);
15
- const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle.getStyle(props);
16
- const customIcon = system.If(isRenderCustomIcon, custom ?? '', `<svg
17
- height="100%"
18
- width="100%"
19
- xmlns="http://www.w3.org/2000/svg"
20
- viewBox="0 0 24 24"
21
- fill="currentColor"
22
- >
23
- <path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
24
- </svg>`);
25
- const buttonContent = core.template`
26
- <div
27
- class="${buttonContentClass}"
28
- style="${buttonContentStyle}"
29
- >
30
- ${customIcon || ''}
31
- </div>
32
- `;
33
- return core.template`
34
- <button
35
- type="button"
36
- aria-label='Carousel ${left ? 'Back' : 'Next'} Arrow'
37
- class="${buttonClass}"
38
- style="${buttonStyle}"
39
- >
40
- <style type="text/css">${innerBorderCss}</style>
41
- ${buttonContent}
42
- </button>
43
- `;
44
- };
45
-
46
- exports.default = Arrow;