@gem-sdk/components 2.0.0-dev.332 → 2.0.0-dev.334
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/post-purchase/product/settings/product-image/ProductFeatureImage.js +33 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +85 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +69 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +3 -1
- package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +42 -0
- package/dist/cjs/product/components/ProductBadge/common/getAttrs.js +74 -0
- package/dist/cjs/product/components/ProductBadge/common/getClasses.js +79 -0
- package/dist/cjs/product/components/ProductBadge/common/getStyles.js +144 -0
- package/dist/cjs/product/components/ProductBadge/constants.js +1 -9
- package/dist/cjs/product/components/ProductBadge/index.js +125 -117
- package/dist/cjs/product/components/ProductBadge/index.liquid.js +97 -111
- package/dist/cjs/product/components/ProductBadge/utils/common.js +11 -0
- package/dist/cjs/product/components/ProductBadge/utils/getRotateShape.js +10 -5
- package/dist/cjs/product/components/ProductBadge/utils/shape.js +14 -1
- package/dist/cjs/product/index.js +1 -1
- package/dist/cjs/product/setting/product-badge/configs/settings.js +72 -93
- package/dist/cjs/product/setting/product-badge/configs/uiV2.js +93 -15
- package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +31 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +83 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +67 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +3 -1
- package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +40 -0
- package/dist/esm/product/components/ProductBadge/common/getAttrs.js +67 -0
- package/dist/esm/product/components/ProductBadge/common/getClasses.js +70 -0
- package/dist/esm/product/components/ProductBadge/common/getStyles.js +137 -0
- package/dist/esm/product/components/ProductBadge/constants.js +2 -5
- package/dist/esm/product/components/ProductBadge/index.js +128 -120
- package/dist/esm/product/components/ProductBadge/index.liquid.js +99 -113
- package/dist/esm/product/components/ProductBadge/utils/common.js +12 -2
- package/dist/esm/product/components/ProductBadge/utils/getRotateShape.js +10 -5
- package/dist/esm/product/components/ProductBadge/utils/shape.js +14 -1
- package/dist/esm/product/index.js +1 -1
- package/dist/esm/product/setting/product-badge/configs/settings.js +72 -93
- package/dist/esm/product/setting/product-badge/configs/uiV2.js +93 -15
- package/dist/types/index.d.ts +1 -3
- package/package.json +2 -2
- package/dist/cjs/product/components/ProductBadge/hooks/useProductBadgeStyles.js +0 -83
- package/dist/esm/product/components/ProductBadge/hooks/useProductBadgeStyles.js +0 -81
|
@@ -33,20 +33,68 @@ const ProductBadgeSettings = [
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
id: '
|
|
37
|
-
type: '
|
|
36
|
+
id: 'shape',
|
|
37
|
+
type: 'badge-style',
|
|
38
38
|
label: 'Content',
|
|
39
|
-
iconViewBox: '0 0
|
|
39
|
+
iconViewBox: '0 0 80 48',
|
|
40
40
|
enableItemBackground: true,
|
|
41
|
-
|
|
41
|
+
itemPerRow: 2,
|
|
42
|
+
itemSpacing: 'large',
|
|
43
|
+
default: 'horizontal_rectangle',
|
|
42
44
|
options: [
|
|
43
45
|
{
|
|
44
|
-
value: '
|
|
45
|
-
|
|
46
|
+
value: 'image',
|
|
47
|
+
label: 'Image',
|
|
48
|
+
type: 'badge-layout',
|
|
49
|
+
iconName: 'gp-product-badge-image'
|
|
46
50
|
},
|
|
47
51
|
{
|
|
48
|
-
value: '
|
|
49
|
-
|
|
52
|
+
value: 'horizontal_rectangle',
|
|
53
|
+
label: 'Text horizontal',
|
|
54
|
+
type: 'badge-layout',
|
|
55
|
+
iconName: 'gp-product-badge-horizontal-rectangle'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: 'ribbon',
|
|
59
|
+
label: 'Text corner 1',
|
|
60
|
+
type: 'badge-layout',
|
|
61
|
+
iconName: 'gp-product-badge-ribbon'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
value: 'ribbon_2',
|
|
65
|
+
label: 'Text ribbon 1',
|
|
66
|
+
type: 'badge-layout',
|
|
67
|
+
iconName: 'gp-product-badge-ribbon-2'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
value: 'triangle',
|
|
71
|
+
label: 'Text corner 2',
|
|
72
|
+
type: 'badge-layout',
|
|
73
|
+
iconName: 'gp-product-badge-triangle'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
value: 'ribbon_3',
|
|
77
|
+
label: 'Text ribbon 2',
|
|
78
|
+
type: 'badge-layout',
|
|
79
|
+
iconName: 'gp-product-badge-ribbon-3'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
value: 'square',
|
|
83
|
+
label: 'Text square',
|
|
84
|
+
type: 'badge-layout',
|
|
85
|
+
iconName: 'gp-product-badge-square'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
value: 'star',
|
|
89
|
+
label: 'Text star',
|
|
90
|
+
type: 'badge-layout',
|
|
91
|
+
iconName: 'gp-product-badge-star'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: 'vertical_rectangle',
|
|
95
|
+
label: 'Text vertical',
|
|
96
|
+
type: 'badge-layout',
|
|
97
|
+
iconName: 'gp-product-badge-vertical-rectangle'
|
|
50
98
|
}
|
|
51
99
|
]
|
|
52
100
|
},
|
|
@@ -80,10 +128,10 @@ const ProductBadgeSettings = [
|
|
|
80
128
|
]
|
|
81
129
|
},
|
|
82
130
|
{
|
|
83
|
-
id: '
|
|
131
|
+
id: 'contentType',
|
|
84
132
|
label: 'Shape',
|
|
85
|
-
type: '
|
|
86
|
-
default: '
|
|
133
|
+
type: 'input',
|
|
134
|
+
default: 'text'
|
|
87
135
|
}
|
|
88
136
|
]
|
|
89
137
|
},
|
|
@@ -106,10 +154,18 @@ const ProductBadgeSettings = [
|
|
|
106
154
|
custom: {
|
|
107
155
|
fontSize: {
|
|
108
156
|
desktop: '15px'
|
|
157
|
+
},
|
|
158
|
+
lineHeight: {
|
|
159
|
+
desktop: '120%'
|
|
160
|
+
},
|
|
161
|
+
fontWeight: '400',
|
|
162
|
+
fontFamily: 'Assistant',
|
|
163
|
+
textShadow: {
|
|
164
|
+
type: 'none'
|
|
109
165
|
}
|
|
110
166
|
},
|
|
111
167
|
attrs: {
|
|
112
|
-
color: '
|
|
168
|
+
color: '#121212'
|
|
113
169
|
}
|
|
114
170
|
},
|
|
115
171
|
hiddenSetting: {
|
|
@@ -362,19 +418,13 @@ const ProductBadgeSettings = [
|
|
|
362
418
|
default: false
|
|
363
419
|
},
|
|
364
420
|
{
|
|
365
|
-
id: '
|
|
421
|
+
id: 'textSizeV2',
|
|
366
422
|
type: 'size-setting',
|
|
367
|
-
label: '',
|
|
368
|
-
disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
|
|
369
423
|
devices: {
|
|
370
424
|
desktop: {
|
|
371
425
|
default: {
|
|
372
426
|
width: 'auto',
|
|
373
427
|
height: 'auto',
|
|
374
|
-
shapeLinked: false,
|
|
375
|
-
disableShapeLinked: true,
|
|
376
|
-
hiddenShape: true,
|
|
377
|
-
shape: 'custom',
|
|
378
428
|
padding: {
|
|
379
429
|
top: '8px',
|
|
380
430
|
bottom: '8px',
|
|
@@ -384,41 +434,6 @@ const ProductBadgeSettings = [
|
|
|
384
434
|
}
|
|
385
435
|
}
|
|
386
436
|
},
|
|
387
|
-
settingConfig: {
|
|
388
|
-
width: {
|
|
389
|
-
displayOptions: [
|
|
390
|
-
'auto'
|
|
391
|
-
]
|
|
392
|
-
},
|
|
393
|
-
height: {
|
|
394
|
-
displayOptions: [
|
|
395
|
-
'auto'
|
|
396
|
-
]
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
hiddenSettings: [
|
|
400
|
-
'gap',
|
|
401
|
-
'proportion'
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
id: 'textSizeV2',
|
|
406
|
-
type: 'size-setting',
|
|
407
|
-
devices: {
|
|
408
|
-
desktop: {
|
|
409
|
-
default: {
|
|
410
|
-
width: 'Auto',
|
|
411
|
-
height: 'Auto',
|
|
412
|
-
padding: {
|
|
413
|
-
type: 'medium',
|
|
414
|
-
top: '4px',
|
|
415
|
-
bottom: '4px',
|
|
416
|
-
left: '16px',
|
|
417
|
-
right: '16px'
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
437
|
settingConfig: {
|
|
423
438
|
width: {
|
|
424
439
|
displayOptions: [
|
|
@@ -454,9 +469,8 @@ const ProductBadgeSettings = [
|
|
|
454
469
|
]
|
|
455
470
|
},
|
|
456
471
|
{
|
|
457
|
-
id: '
|
|
472
|
+
id: 'imageSizeV2',
|
|
458
473
|
type: 'size-setting',
|
|
459
|
-
label: '',
|
|
460
474
|
disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
|
|
461
475
|
devices: {
|
|
462
476
|
desktop: {
|
|
@@ -469,42 +483,6 @@ const ProductBadgeSettings = [
|
|
|
469
483
|
}
|
|
470
484
|
}
|
|
471
485
|
},
|
|
472
|
-
settingConfig: {
|
|
473
|
-
width: {
|
|
474
|
-
displayOptions: [
|
|
475
|
-
'auto'
|
|
476
|
-
]
|
|
477
|
-
},
|
|
478
|
-
height: {
|
|
479
|
-
displayOptions: [
|
|
480
|
-
'auto'
|
|
481
|
-
]
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
hiddenSettings: [
|
|
485
|
-
'gap',
|
|
486
|
-
'proportion',
|
|
487
|
-
'padding'
|
|
488
|
-
]
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
id: 'imageSizeV2',
|
|
492
|
-
type: 'size-setting',
|
|
493
|
-
devices: {
|
|
494
|
-
desktop: {
|
|
495
|
-
default: {
|
|
496
|
-
width: 'Auto',
|
|
497
|
-
height: 'Auto',
|
|
498
|
-
padding: {
|
|
499
|
-
type: 'medium',
|
|
500
|
-
top: '4px',
|
|
501
|
-
bottom: '4px',
|
|
502
|
-
left: '16px',
|
|
503
|
-
right: '16px'
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
486
|
settingConfig: {
|
|
509
487
|
width: {
|
|
510
488
|
displayOptions: [
|
|
@@ -536,7 +514,8 @@ const ProductBadgeSettings = [
|
|
|
536
514
|
},
|
|
537
515
|
hiddenSettings: [
|
|
538
516
|
'shape',
|
|
539
|
-
'gap'
|
|
517
|
+
'gap',
|
|
518
|
+
'padding'
|
|
540
519
|
]
|
|
541
520
|
},
|
|
542
521
|
{
|
|
@@ -3,14 +3,45 @@
|
|
|
3
3
|
const SettingUIV2 = [
|
|
4
4
|
{
|
|
5
5
|
label: {
|
|
6
|
-
en: '
|
|
6
|
+
en: 'Style'
|
|
7
7
|
},
|
|
8
8
|
controls: [
|
|
9
9
|
{
|
|
10
10
|
setting: {
|
|
11
|
-
id: '
|
|
11
|
+
id: 'shape'
|
|
12
12
|
},
|
|
13
|
-
layout: 'vertical'
|
|
13
|
+
layout: 'vertical',
|
|
14
|
+
controlChangeTrigger: {
|
|
15
|
+
settings: [
|
|
16
|
+
{
|
|
17
|
+
condition: "shape.includes('image')",
|
|
18
|
+
source: [
|
|
19
|
+
'shape'
|
|
20
|
+
],
|
|
21
|
+
action: {
|
|
22
|
+
controlId: 'contentType',
|
|
23
|
+
newValue: 'image',
|
|
24
|
+
groupType: 'setting',
|
|
25
|
+
controlType: 'setting'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
condition: "!shape.includes('image')",
|
|
30
|
+
source: [
|
|
31
|
+
'shape'
|
|
32
|
+
],
|
|
33
|
+
action: {
|
|
34
|
+
controlId: 'contentType',
|
|
35
|
+
newValue: 'text',
|
|
36
|
+
groupType: 'setting',
|
|
37
|
+
controlType: 'setting'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
options: {
|
|
42
|
+
noRecordHistory: true
|
|
43
|
+
}
|
|
44
|
+
}
|
|
14
45
|
}
|
|
15
46
|
]
|
|
16
47
|
},
|
|
@@ -39,12 +70,33 @@ const SettingUIV2 = [
|
|
|
39
70
|
conditionDisplay: 'contentType === "text"',
|
|
40
71
|
controls: [
|
|
41
72
|
{
|
|
42
|
-
id: '
|
|
73
|
+
id: 'content-badge',
|
|
74
|
+
type: 'combo',
|
|
75
|
+
iconName: 'polaris-plus',
|
|
76
|
+
isHideClear: true,
|
|
77
|
+
fixedValue: 'Edit',
|
|
78
|
+
popoverLabel: {
|
|
79
|
+
en: 'Content'
|
|
80
|
+
},
|
|
81
|
+
label: {
|
|
82
|
+
en: 'Content'
|
|
83
|
+
},
|
|
43
84
|
setting: {
|
|
44
85
|
id: 'displayContent'
|
|
45
86
|
},
|
|
46
87
|
layout: 'vertical',
|
|
47
|
-
conditionDisplay: 'contentType == "text"'
|
|
88
|
+
conditionDisplay: 'contentType == "text"',
|
|
89
|
+
controls: [
|
|
90
|
+
{
|
|
91
|
+
label: {
|
|
92
|
+
en: 'Content'
|
|
93
|
+
},
|
|
94
|
+
layout: 'vertical',
|
|
95
|
+
setting: {
|
|
96
|
+
id: 'displayContent'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
]
|
|
48
100
|
},
|
|
49
101
|
{
|
|
50
102
|
id: 'typo',
|
|
@@ -89,15 +141,6 @@ const SettingUIV2 = [
|
|
|
89
141
|
},
|
|
90
142
|
conditionDisplay: 'contentType == "text"',
|
|
91
143
|
controls: [
|
|
92
|
-
{
|
|
93
|
-
label: {
|
|
94
|
-
en: 'Shape'
|
|
95
|
-
},
|
|
96
|
-
setting: {
|
|
97
|
-
id: 'shape'
|
|
98
|
-
},
|
|
99
|
-
conditionDisplay: 'contentType == "text"'
|
|
100
|
-
},
|
|
101
144
|
{
|
|
102
145
|
label: {
|
|
103
146
|
en: 'Color'
|
|
@@ -187,7 +230,7 @@ const SettingUIV2 = [
|
|
|
187
230
|
{
|
|
188
231
|
type: 'control',
|
|
189
232
|
setting: {
|
|
190
|
-
id: '
|
|
233
|
+
id: 'imageSizeV2'
|
|
191
234
|
},
|
|
192
235
|
layout: 'vertical'
|
|
193
236
|
},
|
|
@@ -236,6 +279,11 @@ const SettingUIV2 = [
|
|
|
236
279
|
label: 'Fit content',
|
|
237
280
|
value: 'Auto',
|
|
238
281
|
showValue: true
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
label: 'Default',
|
|
285
|
+
value: 'default',
|
|
286
|
+
showValue: true
|
|
239
287
|
}
|
|
240
288
|
]
|
|
241
289
|
},
|
|
@@ -285,6 +333,36 @@ const SettingUIV2 = [
|
|
|
285
333
|
}
|
|
286
334
|
]
|
|
287
335
|
},
|
|
336
|
+
{
|
|
337
|
+
label: {
|
|
338
|
+
en: 'Position'
|
|
339
|
+
},
|
|
340
|
+
controls: [
|
|
341
|
+
{
|
|
342
|
+
id: 'badge-position',
|
|
343
|
+
type: 'combo',
|
|
344
|
+
iconName: 'polaris-plus',
|
|
345
|
+
isHideClear: true,
|
|
346
|
+
fixedValue: 'Edit',
|
|
347
|
+
popoverLabel: {
|
|
348
|
+
en: 'Position'
|
|
349
|
+
},
|
|
350
|
+
label: {
|
|
351
|
+
en: 'Position'
|
|
352
|
+
},
|
|
353
|
+
layout: 'vertical',
|
|
354
|
+
controls: [
|
|
355
|
+
{
|
|
356
|
+
layout: 'vertical',
|
|
357
|
+
setting: {
|
|
358
|
+
id: 'position'
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
conditionDisplay: 'positionWithImage === "inside"'
|
|
365
|
+
},
|
|
288
366
|
{
|
|
289
367
|
controls: [
|
|
290
368
|
{
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const productFeatureImageUI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
setting: {
|
|
5
|
+
id: 'ftAspectRatio'
|
|
6
|
+
},
|
|
7
|
+
label: {
|
|
8
|
+
en: 'Shape'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: 'control',
|
|
13
|
+
setting: {
|
|
14
|
+
id: 'ftWidth'
|
|
15
|
+
},
|
|
16
|
+
label: {
|
|
17
|
+
en: 'Width'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: 'control',
|
|
22
|
+
label: {
|
|
23
|
+
en: 'Image scale'
|
|
24
|
+
},
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'ftObjectFit'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
export { productFeatureImageUI };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const productGalleryImageUI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
label: {
|
|
5
|
+
en: 'Display type'
|
|
6
|
+
},
|
|
7
|
+
condition: 'layoutType === "bottom-center"',
|
|
8
|
+
setting: {
|
|
9
|
+
id: 'displayType'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
type: 'control',
|
|
14
|
+
label: {
|
|
15
|
+
en: 'Item per slide'
|
|
16
|
+
},
|
|
17
|
+
condition: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
|
|
18
|
+
setting: {
|
|
19
|
+
id: 'ilItemPerSlide'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'control',
|
|
24
|
+
label: {
|
|
25
|
+
en: 'Item per line'
|
|
26
|
+
},
|
|
27
|
+
condition: 'displayType === "grid" && layoutType === "bottom-center"',
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'ilNumberPerRow'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'control',
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Shape'
|
|
36
|
+
},
|
|
37
|
+
setting: {
|
|
38
|
+
id: 'ilAspectRatio'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: 'control',
|
|
43
|
+
label: {
|
|
44
|
+
en: 'Image scale'
|
|
45
|
+
},
|
|
46
|
+
setting: {
|
|
47
|
+
id: 'ilObjectFit'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'control',
|
|
52
|
+
label: {
|
|
53
|
+
en: 'Active border'
|
|
54
|
+
},
|
|
55
|
+
setting: {
|
|
56
|
+
id: 'ilBorder'
|
|
57
|
+
},
|
|
58
|
+
isMoreSetting: true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'control',
|
|
62
|
+
label: {
|
|
63
|
+
en: 'Spacing'
|
|
64
|
+
},
|
|
65
|
+
setting: {
|
|
66
|
+
id: 'ilSpacing'
|
|
67
|
+
},
|
|
68
|
+
isMoreSetting: true
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: 'control',
|
|
72
|
+
label: {
|
|
73
|
+
en: 'Navigation'
|
|
74
|
+
},
|
|
75
|
+
setting: {
|
|
76
|
+
id: 'ilNavigation'
|
|
77
|
+
},
|
|
78
|
+
layout: 'vertical',
|
|
79
|
+
isMoreSetting: true
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
|
|
83
|
+
export { productGalleryImageUI };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const productLayoutUI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
label: {
|
|
5
|
+
en: ''
|
|
6
|
+
},
|
|
7
|
+
setting: {
|
|
8
|
+
id: 'layoutType'
|
|
9
|
+
},
|
|
10
|
+
layout: 'vertical'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
type: 'control',
|
|
14
|
+
label: {
|
|
15
|
+
en: 'Ratio'
|
|
16
|
+
},
|
|
17
|
+
setting: {
|
|
18
|
+
id: 'ratioLayoutLeft'
|
|
19
|
+
},
|
|
20
|
+
layout: 'vertical',
|
|
21
|
+
condition: "layoutType === 'left'"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'control',
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Ratio'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'ratioLayoutRight'
|
|
30
|
+
},
|
|
31
|
+
layout: 'vertical',
|
|
32
|
+
condition: "layoutType === 'right'"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'control',
|
|
36
|
+
label: {
|
|
37
|
+
en: 'Spacing'
|
|
38
|
+
},
|
|
39
|
+
setting: {
|
|
40
|
+
id: 'spacingHoz'
|
|
41
|
+
},
|
|
42
|
+
condition: "layoutType === 'left' || layoutType === 'right'",
|
|
43
|
+
isMoreSetting: true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'control',
|
|
47
|
+
label: {
|
|
48
|
+
en: 'Spacing'
|
|
49
|
+
},
|
|
50
|
+
setting: {
|
|
51
|
+
id: 'spacingVertical'
|
|
52
|
+
},
|
|
53
|
+
condition: "layoutType === 'bottom-center'"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'control',
|
|
57
|
+
label: {
|
|
58
|
+
en: 'Spacing'
|
|
59
|
+
},
|
|
60
|
+
setting: {
|
|
61
|
+
id: 'ilSpacing'
|
|
62
|
+
},
|
|
63
|
+
condition: "layoutType === 'two-col' || layoutType === 'one-col'"
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
export { productLayoutUI };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SettingUIV2 } from './uiV2.js';
|
|
2
2
|
import { SettingV2 } from './setting-v2.js';
|
|
3
|
+
import { SettingUIV1 } from './uiV1.js';
|
|
3
4
|
|
|
4
5
|
const config = {
|
|
5
6
|
tag: 'PostPurchaseProductImages',
|
|
@@ -10,6 +11,7 @@ const config = {
|
|
|
10
11
|
</svg>
|
|
11
12
|
`,
|
|
12
13
|
settings: SettingV2,
|
|
14
|
+
ui: SettingUIV1,
|
|
13
15
|
uiV2: SettingUIV2,
|
|
14
16
|
editorConfigs: {
|
|
15
17
|
placeholder: {
|
|
@@ -32,7 +34,7 @@ const config = {
|
|
|
32
34
|
<rect x="10" y="24" width="10" height="10" rx="3" transform="rotate(90 10 24)" fill="#494949"/>
|
|
33
35
|
<rect x="14" width="56" height="48" rx="3" fill="#494949"/>
|
|
34
36
|
<path d="M34.5 18.766L39.495 17.0288C39.495 17.0288 40.1024 18.4454 42.005 18.4454C43.9076 18.4454 44.5083 17 44.5083 17L49.5 18.766L48.6692 23.1222H46.1642V31H37.825V23.1196H35.3325L34.5 18.766Z" fill="#D6D6D6"/>
|
|
35
|
-
</svg>
|
|
37
|
+
</svg>
|
|
36
38
|
`
|
|
37
39
|
},
|
|
38
40
|
components: [
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { productLayoutUI } from './ProductImageLayoutSetting.js';
|
|
2
|
+
import { productFeatureImageUI } from './ProductFeatureImage.js';
|
|
3
|
+
import { productGalleryImageUI } from './ProductGalleryImage.js';
|
|
4
|
+
|
|
5
|
+
const SettingUIV1 = [
|
|
6
|
+
{
|
|
7
|
+
type: 'group',
|
|
8
|
+
label: {
|
|
9
|
+
en: 'Layout'
|
|
10
|
+
},
|
|
11
|
+
controls: productLayoutUI
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'group',
|
|
15
|
+
label: {
|
|
16
|
+
en: 'Featured image'
|
|
17
|
+
},
|
|
18
|
+
condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
|
|
19
|
+
controls: productFeatureImageUI
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'group',
|
|
23
|
+
label: {
|
|
24
|
+
en: 'Image list'
|
|
25
|
+
},
|
|
26
|
+
condition: "layoutType !== 'only-feature'",
|
|
27
|
+
controls: productGalleryImageUI
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'control',
|
|
31
|
+
setting: {
|
|
32
|
+
id: 'align'
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Align'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
export { SettingUIV1 };
|