@gem-sdk/components 2.0.0-dev.555 → 2.0.0-dev.556
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.
- package/dist/cjs/carousel/carousel-item/CarouselItem.js +4 -2
- package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +10 -2
- package/dist/cjs/carousel/setting/configs/settingV2.js +6 -4
- package/dist/cjs/carousel/setting/configs/uiV2.js +4 -1
- package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -23
- package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +29 -7
- package/dist/cjs/product/components/ProductImagesV2/common/getStyle.js +3 -3
- package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
- package/dist/cjs/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
- package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/index.js +2 -4
- package/dist/cjs/product/components/ProductImagesV2/index.liquid.js +1 -1
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
- package/dist/cjs/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +118 -0
- package/dist/cjs/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +119 -0
- package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +193 -415
- package/dist/esm/carousel/carousel-item/CarouselItem.js +4 -2
- package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +10 -2
- package/dist/esm/carousel/setting/configs/settingV2.js +6 -4
- package/dist/esm/carousel/setting/configs/uiV2.js +4 -1
- package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -23
- package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +29 -7
- package/dist/esm/product/components/ProductImagesV2/common/getStyle.js +3 -3
- package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
- package/dist/esm/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
- package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/index.js +2 -4
- package/dist/esm/product/components/ProductImagesV2/index.liquid.js +1 -1
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
- package/dist/esm/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +116 -0
- package/dist/esm/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +117 -0
- package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +193 -415
- package/dist/types/index.d.ts +4 -8
- package/package.json +2 -2
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ImageListNavigation } from './ui/ImageListNavigation.js';
|
|
2
|
+
import { FeatureNavigation } from './ui/FeatureNavigation.js';
|
|
3
|
+
|
|
1
4
|
const showGallerySliderSetting = '((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")';
|
|
2
5
|
const showFeaturedImage = '(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))';
|
|
3
6
|
const showGalleryHoverAction = '(position == "one-col" || position == "two-col")';
|
|
@@ -49,14 +52,6 @@ const SettingUIV2 = [
|
|
|
49
52
|
},
|
|
50
53
|
conditionDisplay: showFeaturedImage,
|
|
51
54
|
controls: [
|
|
52
|
-
{
|
|
53
|
-
label: {
|
|
54
|
-
en: 'Slider'
|
|
55
|
-
},
|
|
56
|
-
setting: {
|
|
57
|
-
id: 'ftSlidesEnable'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
55
|
{
|
|
61
56
|
setting: {
|
|
62
57
|
id: 'ftShape'
|
|
@@ -81,57 +76,145 @@ const SettingUIV2 = [
|
|
|
81
76
|
noRecordHistory: true
|
|
82
77
|
}
|
|
83
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}`
|
|
84
92
|
}
|
|
85
93
|
],
|
|
86
94
|
moreSettings: {
|
|
87
95
|
type: 'collapse',
|
|
88
96
|
controls: [
|
|
89
97
|
{
|
|
90
|
-
conditionDisplay: "ftShape.shape !== 'original'",
|
|
91
98
|
label: {
|
|
92
|
-
en: '
|
|
99
|
+
en: 'Corner'
|
|
93
100
|
},
|
|
94
101
|
setting: {
|
|
95
|
-
id: '
|
|
102
|
+
id: 'ftCorner'
|
|
96
103
|
}
|
|
97
104
|
},
|
|
98
105
|
{
|
|
106
|
+
type: 'combo',
|
|
99
107
|
label: {
|
|
100
|
-
en: '
|
|
108
|
+
en: 'Hover action'
|
|
101
109
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
+
]
|
|
105
153
|
},
|
|
106
154
|
{
|
|
107
155
|
type: 'combo',
|
|
108
|
-
fixedValue: 'Custom',
|
|
109
|
-
iconName: 'polaris-edit',
|
|
110
156
|
label: {
|
|
111
|
-
en: '
|
|
157
|
+
en: 'Click action'
|
|
112
158
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
159
|
+
iconName: 'gp-trigger-action-click',
|
|
160
|
+
conditionDisplay: showFeaturedImage,
|
|
161
|
+
getValueFromSettingID: 'ftClickOpenLightBox',
|
|
162
|
+
isShowSettingTitle: true,
|
|
163
|
+
defaultValueWhenClear: 'none',
|
|
164
|
+
compoDefaultValue: 'popup',
|
|
117
165
|
controls: [
|
|
118
166
|
{
|
|
119
167
|
label: {
|
|
120
|
-
en: '
|
|
168
|
+
en: 'After click'
|
|
121
169
|
},
|
|
122
170
|
setting: {
|
|
123
|
-
id: '
|
|
171
|
+
id: 'ftClickOpenLightBox'
|
|
124
172
|
}
|
|
125
173
|
},
|
|
126
174
|
{
|
|
127
175
|
label: {
|
|
128
|
-
en: '
|
|
176
|
+
en: 'Open new tab'
|
|
129
177
|
},
|
|
130
178
|
setting: {
|
|
131
|
-
id: '
|
|
132
|
-
}
|
|
179
|
+
id: 'ftClickOpenNewTab'
|
|
180
|
+
},
|
|
181
|
+
conditionDisplay: `ftClickOpenLightBox === "product-link"`
|
|
133
182
|
}
|
|
134
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
|
+
}
|
|
135
218
|
}
|
|
136
219
|
]
|
|
137
220
|
}
|
|
@@ -206,80 +289,116 @@ const SettingUIV2 = [
|
|
|
206
289
|
},
|
|
207
290
|
setting: {
|
|
208
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'
|
|
209
298
|
},
|
|
210
|
-
|
|
299
|
+
setting: {
|
|
300
|
+
id: 'layout'
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
...ImageListNavigation,
|
|
305
|
+
conditionDisplay: showGallerySliderSetting
|
|
211
306
|
}
|
|
212
307
|
],
|
|
213
308
|
moreSettings: {
|
|
214
309
|
type: 'collapse',
|
|
215
310
|
controls: [
|
|
216
311
|
{
|
|
217
|
-
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')`,
|
|
218
312
|
label: {
|
|
219
|
-
en: '
|
|
313
|
+
en: 'Corner'
|
|
220
314
|
},
|
|
221
315
|
setting: {
|
|
222
|
-
id: '
|
|
316
|
+
id: 'corner'
|
|
223
317
|
}
|
|
224
318
|
},
|
|
225
319
|
{
|
|
226
320
|
label: {
|
|
227
|
-
en: '
|
|
321
|
+
en: 'Active border'
|
|
228
322
|
},
|
|
323
|
+
conditionDisplay: '!["one-col", "two-col"].includes(position)',
|
|
229
324
|
setting: {
|
|
230
|
-
id: '
|
|
325
|
+
id: 'borderActive'
|
|
231
326
|
}
|
|
232
327
|
},
|
|
233
328
|
{
|
|
234
329
|
type: 'combo',
|
|
235
330
|
label: {
|
|
236
|
-
en: '
|
|
331
|
+
en: 'Hover action'
|
|
237
332
|
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
333
|
+
conditionDisplay: showGalleryHoverAction,
|
|
334
|
+
iconName: 'gp-trigger-action-hover',
|
|
335
|
+
getValueFromSettingID: 'galleryHoverEffect',
|
|
336
|
+
defaultValueWhenClear: 'none',
|
|
337
|
+
compoDefaultValue: 'zoom',
|
|
243
338
|
controls: [
|
|
244
339
|
{
|
|
245
340
|
label: {
|
|
246
|
-
en: '
|
|
341
|
+
en: 'When hover'
|
|
342
|
+
},
|
|
343
|
+
setting: {
|
|
344
|
+
id: 'galleryHoverEffect'
|
|
345
|
+
},
|
|
346
|
+
conditionDisplay: 'galleryHoverEffect == "none"'
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
label: {
|
|
350
|
+
en: 'Zoom type'
|
|
247
351
|
},
|
|
352
|
+
conditionDisplay: 'galleryHoverEffect == "zoom"',
|
|
248
353
|
setting: {
|
|
249
|
-
id: '
|
|
354
|
+
id: 'galleryZoomType'
|
|
250
355
|
}
|
|
251
|
-
}
|
|
252
|
-
]
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
type: 'combo',
|
|
256
|
-
fixedValue: 'Custom',
|
|
257
|
-
iconName: 'polaris-edit',
|
|
258
|
-
label: {
|
|
259
|
-
en: 'Image list slider'
|
|
260
|
-
},
|
|
261
|
-
setting: {
|
|
262
|
-
id: 'slidesActionEnable'
|
|
263
|
-
},
|
|
264
|
-
conditionDisplay: showGallerySliderSetting,
|
|
265
|
-
controls: [
|
|
356
|
+
},
|
|
266
357
|
{
|
|
267
358
|
label: {
|
|
268
|
-
en: '
|
|
359
|
+
en: 'Zoom value'
|
|
269
360
|
},
|
|
361
|
+
conditionDisplay: 'galleryHoverEffect == "zoom"',
|
|
270
362
|
setting: {
|
|
271
|
-
id: '
|
|
363
|
+
id: 'galleryZoom'
|
|
272
364
|
}
|
|
273
365
|
},
|
|
274
366
|
{
|
|
275
367
|
label: {
|
|
276
|
-
en: '
|
|
368
|
+
en: 'Other image'
|
|
277
369
|
},
|
|
370
|
+
conditionDisplay: 'galleryHoverEffect == "other"',
|
|
278
371
|
setting: {
|
|
279
|
-
id: '
|
|
372
|
+
id: 'otherImage'
|
|
280
373
|
}
|
|
281
374
|
}
|
|
282
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
|
+
}
|
|
283
402
|
}
|
|
284
403
|
]
|
|
285
404
|
}
|
|
@@ -288,6 +407,7 @@ const SettingUIV2 = [
|
|
|
288
407
|
label: {
|
|
289
408
|
en: 'Item spacing'
|
|
290
409
|
},
|
|
410
|
+
conditionDisplay: '["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',
|
|
291
411
|
controls: [
|
|
292
412
|
{
|
|
293
413
|
label: {
|
|
@@ -295,222 +415,7 @@ const SettingUIV2 = [
|
|
|
295
415
|
},
|
|
296
416
|
setting: {
|
|
297
417
|
id: 'spacing'
|
|
298
|
-
}
|
|
299
|
-
conditionDisplay: '["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)'
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
label: {
|
|
303
|
-
en: 'Gap'
|
|
304
|
-
},
|
|
305
|
-
setting: {
|
|
306
|
-
id: 'itemSpacing'
|
|
307
|
-
},
|
|
308
|
-
conditionDisplay: '["one-col", "two-col"].includes(position)'
|
|
309
|
-
}
|
|
310
|
-
]
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
label: {
|
|
314
|
-
en: 'Navigation'
|
|
315
|
-
},
|
|
316
|
-
conditionDisplay: `${showFeaturedImage} && ${showGallerySliderSetting}`,
|
|
317
|
-
controls: [
|
|
318
|
-
{
|
|
319
|
-
type: 'combo',
|
|
320
|
-
iconName: 'polaris-edit',
|
|
321
|
-
getValueFromSettingID: 'ftNavigationPosition',
|
|
322
|
-
getIconFromSettingID: 'ftArrowIcon',
|
|
323
|
-
defaultValueWhenClear: 'none',
|
|
324
|
-
compoDefaultValue: 'outside',
|
|
325
|
-
label: {
|
|
326
|
-
en: 'Navigation'
|
|
327
|
-
},
|
|
328
|
-
conditionDisplay: `ftSlidesEnable === true && ${showFeaturedImage}`,
|
|
329
|
-
controls: [
|
|
330
|
-
{
|
|
331
|
-
type: 'group',
|
|
332
|
-
label: {
|
|
333
|
-
en: 'Layout'
|
|
334
|
-
},
|
|
335
|
-
controls: [
|
|
336
|
-
{
|
|
337
|
-
label: {
|
|
338
|
-
en: 'Choose'
|
|
339
|
-
},
|
|
340
|
-
setting: {
|
|
341
|
-
id: 'ftNavigationPosition'
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
]
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
type: 'group',
|
|
348
|
-
label: {
|
|
349
|
-
en: 'Icon'
|
|
350
|
-
},
|
|
351
|
-
conditionDisplay: 'ftNavigationPosition !== "none"',
|
|
352
|
-
controls: [
|
|
353
|
-
{
|
|
354
|
-
label: {
|
|
355
|
-
en: 'Choose'
|
|
356
|
-
},
|
|
357
|
-
setting: {
|
|
358
|
-
id: 'ftArrowIcon'
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
label: {
|
|
363
|
-
en: 'Color'
|
|
364
|
-
},
|
|
365
|
-
setting: {
|
|
366
|
-
id: 'ftArrowIconColor'
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
type: 'group',
|
|
373
|
-
label: {
|
|
374
|
-
en: 'Button'
|
|
375
|
-
},
|
|
376
|
-
conditionDisplay: 'ftNavigationPosition !== "none"',
|
|
377
|
-
controls: [
|
|
378
|
-
{
|
|
379
|
-
label: {
|
|
380
|
-
en: 'Background'
|
|
381
|
-
},
|
|
382
|
-
setting: {
|
|
383
|
-
id: 'ftArrowNavColor'
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
]
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
type: 'group',
|
|
390
|
-
label: {
|
|
391
|
-
en: 'Shape'
|
|
392
|
-
},
|
|
393
|
-
conditionDisplay: 'ftNavigationPosition !== "none"',
|
|
394
|
-
controls: [
|
|
395
|
-
{
|
|
396
|
-
label: {
|
|
397
|
-
en: 'Border'
|
|
398
|
-
},
|
|
399
|
-
setting: {
|
|
400
|
-
id: 'ftArrowNavBorder'
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
label: {
|
|
405
|
-
en: 'Corner'
|
|
406
|
-
},
|
|
407
|
-
setting: {
|
|
408
|
-
id: 'ftArrowNavRadius'
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
]
|
|
412
|
-
}
|
|
413
|
-
]
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
type: 'combo',
|
|
417
|
-
iconName: 'polaris-edit',
|
|
418
|
-
getValueFromSettingID: 'navigationPosition',
|
|
419
|
-
getIconFromSettingID: 'arrowIcon',
|
|
420
|
-
defaultValueWhenClear: 'none',
|
|
421
|
-
compoDefaultValue: 'outside',
|
|
422
|
-
label: {
|
|
423
|
-
en: 'Image list'
|
|
424
|
-
},
|
|
425
|
-
popoverLabel: {
|
|
426
|
-
en: 'Navigation'
|
|
427
|
-
},
|
|
428
|
-
conditionDisplay: `${showGallerySliderSetting} && ${showImageListSetting}`,
|
|
429
|
-
controls: [
|
|
430
|
-
{
|
|
431
|
-
type: 'group',
|
|
432
|
-
label: {
|
|
433
|
-
en: 'Layout'
|
|
434
|
-
},
|
|
435
|
-
controls: [
|
|
436
|
-
{
|
|
437
|
-
label: {
|
|
438
|
-
en: 'Choose'
|
|
439
|
-
},
|
|
440
|
-
setting: {
|
|
441
|
-
id: 'navigationPosition'
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
]
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
type: 'group',
|
|
448
|
-
label: {
|
|
449
|
-
en: 'Icon'
|
|
450
|
-
},
|
|
451
|
-
conditionDisplay: `navigationPosition !== "none" & ${showGallerySliderSetting}`,
|
|
452
|
-
controls: [
|
|
453
|
-
{
|
|
454
|
-
label: {
|
|
455
|
-
en: 'Choose'
|
|
456
|
-
},
|
|
457
|
-
setting: {
|
|
458
|
-
id: 'arrowIcon'
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
label: {
|
|
463
|
-
en: 'Color'
|
|
464
|
-
},
|
|
465
|
-
setting: {
|
|
466
|
-
id: 'arrowIconColor'
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
]
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
type: 'group',
|
|
473
|
-
label: {
|
|
474
|
-
en: 'Button'
|
|
475
|
-
},
|
|
476
|
-
conditionDisplay: `navigationPosition !== "none" & ${showGallerySliderSetting}`,
|
|
477
|
-
controls: [
|
|
478
|
-
{
|
|
479
|
-
label: {
|
|
480
|
-
en: 'Background'
|
|
481
|
-
},
|
|
482
|
-
setting: {
|
|
483
|
-
id: 'arrowNavColor'
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
]
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
type: 'group',
|
|
490
|
-
label: {
|
|
491
|
-
en: 'Shape'
|
|
492
|
-
},
|
|
493
|
-
conditionDisplay: `navigationPosition !== "none" & ${showGallerySliderSetting}`,
|
|
494
|
-
controls: [
|
|
495
|
-
{
|
|
496
|
-
label: {
|
|
497
|
-
en: 'Border'
|
|
498
|
-
},
|
|
499
|
-
setting: {
|
|
500
|
-
id: 'arrowNavBorder'
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
label: {
|
|
505
|
-
en: 'Corner'
|
|
506
|
-
},
|
|
507
|
-
setting: {
|
|
508
|
-
id: 'arrowNavRadius'
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
]
|
|
512
|
-
}
|
|
513
|
-
]
|
|
418
|
+
}
|
|
514
419
|
}
|
|
515
420
|
]
|
|
516
421
|
},
|
|
@@ -518,6 +423,7 @@ const SettingUIV2 = [
|
|
|
518
423
|
label: {
|
|
519
424
|
en: 'Pre-display product image'
|
|
520
425
|
},
|
|
426
|
+
conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
|
|
521
427
|
controls: [
|
|
522
428
|
{
|
|
523
429
|
label: {
|
|
@@ -526,154 +432,17 @@ const SettingUIV2 = [
|
|
|
526
432
|
setting: {
|
|
527
433
|
id: 'preDisplay'
|
|
528
434
|
}
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
label: {
|
|
532
|
-
en: 'Preload'
|
|
533
|
-
},
|
|
534
|
-
setting: {
|
|
535
|
-
id: 'preload'
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)'
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
label: {
|
|
543
|
-
en: 'Action'
|
|
544
|
-
},
|
|
545
|
-
controls: [
|
|
546
|
-
{
|
|
547
|
-
type: 'combo',
|
|
548
|
-
label: {
|
|
549
|
-
en: 'Featured'
|
|
550
|
-
},
|
|
551
|
-
popoverLabel: {
|
|
552
|
-
en: 'Feature image action'
|
|
553
|
-
},
|
|
554
|
-
setting: {
|
|
555
|
-
id: 'ftActionEnable'
|
|
556
|
-
},
|
|
557
|
-
fixedValue: 'Enable',
|
|
558
|
-
iconName: 'polaris-edit',
|
|
559
|
-
conditionDisplay: showFeaturedImage,
|
|
560
|
-
controls: [
|
|
561
|
-
{
|
|
562
|
-
label: {
|
|
563
|
-
en: 'When hover'
|
|
564
|
-
},
|
|
565
|
-
setting: {
|
|
566
|
-
id: 'hoverEffect'
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
label: {
|
|
571
|
-
en: 'Zoom type'
|
|
572
|
-
},
|
|
573
|
-
conditionDisplay: 'hoverEffect == "zoom"',
|
|
574
|
-
setting: {
|
|
575
|
-
id: 'zoomType'
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
label: {
|
|
580
|
-
en: 'Zoom value'
|
|
581
|
-
},
|
|
582
|
-
conditionDisplay: 'hoverEffect == "zoom"',
|
|
583
|
-
setting: {
|
|
584
|
-
id: 'zoom'
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
label: {
|
|
589
|
-
en: 'Other image'
|
|
590
|
-
},
|
|
591
|
-
conditionDisplay: 'hoverEffect == "other"',
|
|
592
|
-
setting: {
|
|
593
|
-
id: 'otherImage'
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
label: {
|
|
598
|
-
en: 'After click'
|
|
599
|
-
},
|
|
600
|
-
setting: {
|
|
601
|
-
id: 'ftClickOpenLightBox'
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
label: {
|
|
606
|
-
en: 'Open link in'
|
|
607
|
-
},
|
|
608
|
-
setting: {
|
|
609
|
-
id: 'ftClickOpenNewTab'
|
|
610
|
-
},
|
|
611
|
-
conditionDisplay: `ftClickOpenLightBox === "product-link"`
|
|
612
|
-
}
|
|
613
|
-
]
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
type: 'combo',
|
|
617
|
-
label: {
|
|
618
|
-
en: 'Image list'
|
|
619
|
-
},
|
|
620
|
-
popoverLabel: {
|
|
621
|
-
en: 'Image list action'
|
|
622
|
-
},
|
|
623
|
-
conditionDisplay: showImageListSetting,
|
|
624
|
-
setting: {
|
|
625
|
-
id: 'actionEnable'
|
|
626
|
-
},
|
|
627
|
-
fixedValue: 'Enable',
|
|
628
|
-
iconName: 'polaris-edit',
|
|
629
|
-
controls: [
|
|
630
|
-
{
|
|
631
|
-
label: {
|
|
632
|
-
en: 'When hover'
|
|
633
|
-
},
|
|
634
|
-
setting: {
|
|
635
|
-
id: 'galleryHoverEffect'
|
|
636
|
-
},
|
|
637
|
-
conditionDisplay: showGalleryHoverAction
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
label: {
|
|
641
|
-
en: 'Zoom type'
|
|
642
|
-
},
|
|
643
|
-
conditionDisplay: `galleryHoverEffect == "zoom" && ${showGalleryHoverAction}`,
|
|
644
|
-
setting: {
|
|
645
|
-
id: 'galleryZoomType'
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
label: {
|
|
650
|
-
en: 'Zoom value'
|
|
651
|
-
},
|
|
652
|
-
conditionDisplay: `galleryHoverEffect == "zoom" && ${showGalleryHoverAction}`,
|
|
653
|
-
setting: {
|
|
654
|
-
id: 'galleryZoom'
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
label: {
|
|
659
|
-
en: 'Click'
|
|
660
|
-
},
|
|
661
|
-
setting: {
|
|
662
|
-
id: 'clickOpenLightBox'
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
]
|
|
666
435
|
}
|
|
667
436
|
]
|
|
668
437
|
},
|
|
669
438
|
{
|
|
670
439
|
label: {
|
|
671
|
-
en: '
|
|
440
|
+
en: 'Optimize LCP'
|
|
672
441
|
},
|
|
673
442
|
controls: [
|
|
674
443
|
{
|
|
675
444
|
label: {
|
|
676
|
-
en: '
|
|
445
|
+
en: 'Quality'
|
|
677
446
|
},
|
|
678
447
|
setting: {
|
|
679
448
|
id: 'qualityType'
|
|
@@ -688,6 +457,15 @@ const SettingUIV2 = [
|
|
|
688
457
|
setting: {
|
|
689
458
|
id: 'qualityPercent'
|
|
690
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
|
+
}
|
|
691
469
|
}
|
|
692
470
|
]
|
|
693
471
|
},
|