@gem-sdk/components 2.0.0-dev.469 → 2.0.0-dev.471
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/article/setting/configs/ArticleDate/settings.js +1 -6
- package/dist/cjs/carousel/setting/configs/settingV2.js +19 -6
- package/dist/cjs/carousel/setting/configs/uiV2.js +208 -193
- package/dist/cjs/dialog/setting/configs/settings.js +1 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +4 -4
- package/dist/cjs/product/components/ProductProperties/ProductProperties.js +1 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +2 -2
- package/dist/esm/article/setting/configs/ArticleDate/settings.js +1 -6
- package/dist/esm/carousel/setting/configs/settingV2.js +19 -6
- package/dist/esm/carousel/setting/configs/uiV2.js +208 -193
- package/dist/esm/dialog/setting/configs/settings.js +1 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +4 -4
- package/dist/esm/product/components/ProductProperties/ProductProperties.js +1 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +2 -2
- package/package.json +1 -1
|
@@ -84,15 +84,10 @@ const ArticleDateSettings = [
|
|
|
84
84
|
default: {
|
|
85
85
|
type: 'subheading-3',
|
|
86
86
|
custom: {
|
|
87
|
-
lineHeight: {
|
|
88
|
-
desktop: '120%',
|
|
89
|
-
tablet: '120%',
|
|
90
|
-
mobile: '120%'
|
|
91
|
-
},
|
|
92
87
|
letterSpacing: '0px'
|
|
93
88
|
},
|
|
94
89
|
attrs: {
|
|
95
|
-
color: '
|
|
90
|
+
color: 'text-1'
|
|
96
91
|
}
|
|
97
92
|
},
|
|
98
93
|
ignoreReRender: true
|
|
@@ -136,15 +136,22 @@ const CarouselSettingsV2 = [
|
|
|
136
136
|
{
|
|
137
137
|
id: 'dotStyle',
|
|
138
138
|
label: 'Dot style',
|
|
139
|
-
type: 'option:
|
|
139
|
+
type: 'option:illustration',
|
|
140
|
+
iconViewBox: '0 0 77 48',
|
|
141
|
+
enableItemBackground: true,
|
|
142
|
+
enableTooltip: true,
|
|
140
143
|
options: [
|
|
141
144
|
{
|
|
142
145
|
label: 'Inside',
|
|
143
|
-
value: 'inside'
|
|
146
|
+
value: 'inside',
|
|
147
|
+
type: 'carousel-dot',
|
|
148
|
+
svgName: 'gp-carousel-dot-inside'
|
|
144
149
|
},
|
|
145
150
|
{
|
|
146
151
|
label: 'Outside',
|
|
147
|
-
value: 'outside'
|
|
152
|
+
value: 'outside',
|
|
153
|
+
type: 'carousel-dot',
|
|
154
|
+
svgName: 'gp-carousel-dot-outside'
|
|
148
155
|
}
|
|
149
156
|
],
|
|
150
157
|
devices: {
|
|
@@ -404,7 +411,9 @@ const CarouselSettingsV2 = [
|
|
|
404
411
|
{
|
|
405
412
|
id: 'arrowGapToEachSide',
|
|
406
413
|
label: 'Gap to each side',
|
|
407
|
-
type: 'input:
|
|
414
|
+
type: 'input:slider',
|
|
415
|
+
min: 0,
|
|
416
|
+
max: 120,
|
|
408
417
|
default: '16'
|
|
409
418
|
},
|
|
410
419
|
{
|
|
@@ -596,12 +605,16 @@ const CarouselSettingsV2 = [
|
|
|
596
605
|
{
|
|
597
606
|
id: 'playSpeed',
|
|
598
607
|
label: 'Slide speed',
|
|
599
|
-
type: 'input:
|
|
608
|
+
type: 'input:slider',
|
|
600
609
|
useOnlyUnitInit: true,
|
|
601
|
-
min:
|
|
610
|
+
min: 100,
|
|
611
|
+
max: 5000,
|
|
612
|
+
step: 50,
|
|
602
613
|
units: [
|
|
603
614
|
'ms'
|
|
604
615
|
],
|
|
616
|
+
showDefaultUnit: true,
|
|
617
|
+
isNumber: true,
|
|
605
618
|
default: 500
|
|
606
619
|
},
|
|
607
620
|
{
|
|
@@ -73,6 +73,21 @@ const SettingUIV2 = [
|
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
|
+
{
|
|
77
|
+
label: {
|
|
78
|
+
en: 'Item spacing'
|
|
79
|
+
},
|
|
80
|
+
controls: [
|
|
81
|
+
{
|
|
82
|
+
label: {
|
|
83
|
+
en: 'Gap'
|
|
84
|
+
},
|
|
85
|
+
setting: {
|
|
86
|
+
id: 'spacing'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
76
91
|
{
|
|
77
92
|
label: {
|
|
78
93
|
en: 'Item style'
|
|
@@ -109,86 +124,75 @@ const SettingUIV2 = [
|
|
|
109
124
|
setting: {
|
|
110
125
|
id: 'background'
|
|
111
126
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
en: 'Corner'
|
|
124
|
-
},
|
|
125
|
-
setting: {
|
|
126
|
-
id: 'roundedContent'
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: {
|
|
131
|
-
en: 'Shadow'
|
|
132
|
-
},
|
|
133
|
-
setting: {
|
|
134
|
-
id: 'carouselShadow'
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
moreSettings: {
|
|
130
|
+
controls: [
|
|
131
|
+
{
|
|
132
|
+
label: {
|
|
133
|
+
en: 'Border'
|
|
134
|
+
},
|
|
135
|
+
setting: {
|
|
136
|
+
id: 'borderContent'
|
|
137
|
+
}
|
|
135
138
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
{
|
|
140
|
+
label: {
|
|
141
|
+
en: 'Corner'
|
|
142
|
+
},
|
|
143
|
+
setting: {
|
|
144
|
+
id: 'roundedContent'
|
|
145
|
+
}
|
|
143
146
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
{
|
|
148
|
+
label: {
|
|
149
|
+
en: 'Shadow'
|
|
150
|
+
},
|
|
151
|
+
setting: {
|
|
152
|
+
id: 'carouselShadow'
|
|
153
|
+
},
|
|
154
|
+
options: {
|
|
155
|
+
updateFields: [
|
|
156
|
+
{
|
|
157
|
+
field: 'enable',
|
|
158
|
+
settingId: 'hasActiveShadow'
|
|
156
159
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
controlChangeTrigger: {
|
|
163
|
+
settings: [
|
|
164
|
+
{
|
|
165
|
+
condition: `carouselShadow.enable === true`,
|
|
166
|
+
source: [
|
|
167
|
+
'carouselShadow'
|
|
168
|
+
],
|
|
169
|
+
action: {
|
|
170
|
+
controlId: 'hasActiveShadow',
|
|
171
|
+
groupType: 'style',
|
|
172
|
+
controlType: 'style',
|
|
173
|
+
newValue: true
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
condition: `carouselShadow.enable === false`,
|
|
178
|
+
source: [
|
|
179
|
+
'carouselShadow'
|
|
180
|
+
],
|
|
181
|
+
action: {
|
|
182
|
+
controlId: 'hasActiveShadow',
|
|
183
|
+
groupType: 'style',
|
|
184
|
+
controlType: 'style',
|
|
185
|
+
newValue: false
|
|
186
|
+
}
|
|
168
187
|
}
|
|
188
|
+
],
|
|
189
|
+
options: {
|
|
190
|
+
noRecordHistory: true
|
|
169
191
|
}
|
|
170
|
-
],
|
|
171
|
-
options: {
|
|
172
|
-
noRecordHistory: true
|
|
173
192
|
}
|
|
174
193
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
label: {
|
|
180
|
-
en: 'Item spacing'
|
|
181
|
-
},
|
|
182
|
-
controls: [
|
|
183
|
-
{
|
|
184
|
-
label: {
|
|
185
|
-
en: 'Gap'
|
|
186
|
-
},
|
|
187
|
-
setting: {
|
|
188
|
-
id: 'spacing'
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
]
|
|
194
|
+
]
|
|
195
|
+
}
|
|
192
196
|
},
|
|
193
197
|
{
|
|
194
198
|
controls: [
|
|
@@ -207,7 +211,7 @@ const SettingUIV2 = [
|
|
|
207
211
|
{
|
|
208
212
|
conditionDisplay: `navigationEnable === true`,
|
|
209
213
|
label: {
|
|
210
|
-
en: '
|
|
214
|
+
en: 'Position'
|
|
211
215
|
},
|
|
212
216
|
setting: {
|
|
213
217
|
id: 'navigationStyle'
|
|
@@ -249,7 +253,8 @@ const SettingUIV2 = [
|
|
|
249
253
|
label: {
|
|
250
254
|
en: 'Size'
|
|
251
255
|
},
|
|
252
|
-
fixedValue: 'Edit
|
|
256
|
+
fixedValue: 'Edit',
|
|
257
|
+
iconName: 'polaris-measurement-size',
|
|
253
258
|
controls: [
|
|
254
259
|
{
|
|
255
260
|
setting: {
|
|
@@ -322,7 +327,7 @@ const SettingUIV2 = [
|
|
|
322
327
|
{
|
|
323
328
|
conditionDisplay: `navigationEnable === true`,
|
|
324
329
|
label: {
|
|
325
|
-
en: 'Gap to
|
|
330
|
+
en: 'Gap to edge'
|
|
326
331
|
},
|
|
327
332
|
setting: {
|
|
328
333
|
id: 'arrowGapToEachSide'
|
|
@@ -357,7 +362,16 @@ const SettingUIV2 = [
|
|
|
357
362
|
{
|
|
358
363
|
conditionDisplay: `dot === true`,
|
|
359
364
|
label: {
|
|
360
|
-
en: '
|
|
365
|
+
en: 'Position'
|
|
366
|
+
},
|
|
367
|
+
setting: {
|
|
368
|
+
id: 'dotStyle'
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
conditionDisplay: `dot === true`,
|
|
373
|
+
label: {
|
|
374
|
+
en: 'Active icon'
|
|
361
375
|
},
|
|
362
376
|
setting: {
|
|
363
377
|
id: 'dotActiveColor'
|
|
@@ -366,7 +380,7 @@ const SettingUIV2 = [
|
|
|
366
380
|
{
|
|
367
381
|
conditionDisplay: `dot === true`,
|
|
368
382
|
label: {
|
|
369
|
-
en: 'Inactive
|
|
383
|
+
en: 'Inactive icon'
|
|
370
384
|
},
|
|
371
385
|
setting: {
|
|
372
386
|
id: 'dotColor'
|
|
@@ -380,26 +394,99 @@ const SettingUIV2 = [
|
|
|
380
394
|
setting: {
|
|
381
395
|
id: 'dotSize'
|
|
382
396
|
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
conditionDisplay: `dot === true`,
|
|
400
|
+
label: {
|
|
401
|
+
en: 'Gap to edge'
|
|
402
|
+
},
|
|
403
|
+
setting: {
|
|
404
|
+
id: 'dotGapToCarousel'
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
label: {
|
|
411
|
+
en: 'Slide effect'
|
|
412
|
+
},
|
|
413
|
+
controls: [
|
|
414
|
+
{
|
|
415
|
+
label: {
|
|
416
|
+
en: 'Slide direction'
|
|
417
|
+
},
|
|
418
|
+
setting: {
|
|
419
|
+
id: 'rtl'
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
label: {
|
|
424
|
+
en: 'Autoplay'
|
|
425
|
+
},
|
|
426
|
+
setting: {
|
|
427
|
+
id: 'autoplay'
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
label: {
|
|
432
|
+
en: 'Time out'
|
|
433
|
+
},
|
|
434
|
+
setting: {
|
|
435
|
+
id: 'autoplayTimeout'
|
|
436
|
+
},
|
|
437
|
+
conditionDisplay: 'autoplay === true'
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
label: {
|
|
441
|
+
en: 'Pause On Hover'
|
|
442
|
+
},
|
|
443
|
+
setting: {
|
|
444
|
+
id: 'pauseOnHover'
|
|
445
|
+
},
|
|
446
|
+
conditionDisplay: 'autoplay == true'
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
label: {
|
|
450
|
+
en: 'Preview'
|
|
451
|
+
},
|
|
452
|
+
setting: {
|
|
453
|
+
id: 'runPreview'
|
|
454
|
+
},
|
|
455
|
+
conditionDisplay: 'autoplay === true'
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
label: {
|
|
459
|
+
en: 'Infinity loop'
|
|
460
|
+
},
|
|
461
|
+
setting: {
|
|
462
|
+
id: 'loop'
|
|
463
|
+
}
|
|
383
464
|
}
|
|
384
465
|
],
|
|
385
466
|
moreSettings: {
|
|
386
467
|
controls: [
|
|
387
468
|
{
|
|
388
|
-
conditionDisplay: `dot === true`,
|
|
389
469
|
label: {
|
|
390
|
-
en: '
|
|
470
|
+
en: 'Drag / swipe'
|
|
391
471
|
},
|
|
392
472
|
setting: {
|
|
393
|
-
id: '
|
|
473
|
+
id: 'enableDrag'
|
|
394
474
|
}
|
|
395
475
|
},
|
|
396
476
|
{
|
|
397
|
-
conditionDisplay: `dot === true`,
|
|
398
477
|
label: {
|
|
399
|
-
en: '
|
|
478
|
+
en: 'Slide speed'
|
|
479
|
+
},
|
|
480
|
+
setting: {
|
|
481
|
+
id: 'playSpeed'
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
label: {
|
|
486
|
+
en: 'Animation'
|
|
400
487
|
},
|
|
401
488
|
setting: {
|
|
402
|
-
id: '
|
|
489
|
+
id: 'animationMode'
|
|
403
490
|
}
|
|
404
491
|
}
|
|
405
492
|
]
|
|
@@ -415,6 +502,43 @@ const SettingUIV2 = [
|
|
|
415
502
|
id: 'sizeSetting'
|
|
416
503
|
},
|
|
417
504
|
layout: 'vertical'
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
label: {
|
|
508
|
+
en: 'Padding'
|
|
509
|
+
},
|
|
510
|
+
conditionDisplay: `pageType != "POST_PURCHASE"`,
|
|
511
|
+
controlConfig: {
|
|
512
|
+
id: 'padding',
|
|
513
|
+
type: 'padding-v2',
|
|
514
|
+
linkWithSetting: {
|
|
515
|
+
name: 'spacing-setting',
|
|
516
|
+
field: 'padding'
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
label: {
|
|
524
|
+
en: 'Background'
|
|
525
|
+
},
|
|
526
|
+
controls: [
|
|
527
|
+
{
|
|
528
|
+
label: {
|
|
529
|
+
en: 'Color'
|
|
530
|
+
},
|
|
531
|
+
setting: {
|
|
532
|
+
id: 'backgroundColor'
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
label: {
|
|
537
|
+
en: 'Image'
|
|
538
|
+
},
|
|
539
|
+
setting: {
|
|
540
|
+
id: 'backgroundImage'
|
|
541
|
+
}
|
|
418
542
|
}
|
|
419
543
|
]
|
|
420
544
|
},
|
|
@@ -497,115 +621,6 @@ const SettingUIV2 = [
|
|
|
497
621
|
}
|
|
498
622
|
]
|
|
499
623
|
},
|
|
500
|
-
{
|
|
501
|
-
label: {
|
|
502
|
-
en: 'Background'
|
|
503
|
-
},
|
|
504
|
-
controls: [
|
|
505
|
-
{
|
|
506
|
-
label: {
|
|
507
|
-
en: 'Color'
|
|
508
|
-
},
|
|
509
|
-
setting: {
|
|
510
|
-
id: 'backgroundColor'
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
label: {
|
|
515
|
-
en: 'Image'
|
|
516
|
-
},
|
|
517
|
-
setting: {
|
|
518
|
-
id: 'backgroundImage'
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
]
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
label: {
|
|
525
|
-
en: 'Slide effect'
|
|
526
|
-
},
|
|
527
|
-
controls: [
|
|
528
|
-
{
|
|
529
|
-
label: {
|
|
530
|
-
en: 'Slide direction'
|
|
531
|
-
},
|
|
532
|
-
setting: {
|
|
533
|
-
id: 'rtl'
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
label: {
|
|
538
|
-
en: 'Autoplay'
|
|
539
|
-
},
|
|
540
|
-
setting: {
|
|
541
|
-
id: 'autoplay'
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
label: {
|
|
546
|
-
en: 'Time out'
|
|
547
|
-
},
|
|
548
|
-
setting: {
|
|
549
|
-
id: 'autoplayTimeout'
|
|
550
|
-
},
|
|
551
|
-
conditionDisplay: 'autoplay === true'
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
label: {
|
|
555
|
-
en: 'Pause On Hover'
|
|
556
|
-
},
|
|
557
|
-
setting: {
|
|
558
|
-
id: 'pauseOnHover'
|
|
559
|
-
},
|
|
560
|
-
conditionDisplay: 'autoplay == true'
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
label: {
|
|
564
|
-
en: 'Preview'
|
|
565
|
-
},
|
|
566
|
-
setting: {
|
|
567
|
-
id: 'runPreview'
|
|
568
|
-
},
|
|
569
|
-
conditionDisplay: 'autoplay === true'
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
label: {
|
|
573
|
-
en: 'Infinity loop'
|
|
574
|
-
},
|
|
575
|
-
setting: {
|
|
576
|
-
id: 'loop'
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
],
|
|
580
|
-
moreSettings: {
|
|
581
|
-
controls: [
|
|
582
|
-
{
|
|
583
|
-
label: {
|
|
584
|
-
en: 'Drag / swipe'
|
|
585
|
-
},
|
|
586
|
-
setting: {
|
|
587
|
-
id: 'enableDrag'
|
|
588
|
-
}
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
label: {
|
|
592
|
-
en: 'Slide speed'
|
|
593
|
-
},
|
|
594
|
-
setting: {
|
|
595
|
-
id: 'playSpeed'
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
label: {
|
|
600
|
-
en: 'Animation'
|
|
601
|
-
},
|
|
602
|
-
setting: {
|
|
603
|
-
id: 'animationMode'
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
]
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
624
|
{
|
|
610
625
|
controls: [
|
|
611
626
|
{
|
|
@@ -114,18 +114,18 @@ const SettingUIV2 = [
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
label: {
|
|
117
|
-
en: '
|
|
117
|
+
en: 'Opacity'
|
|
118
118
|
},
|
|
119
119
|
setting: {
|
|
120
|
-
id: '
|
|
120
|
+
id: 'overlayOpacity'
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
label: {
|
|
125
|
-
en: '
|
|
125
|
+
en: 'Click to close'
|
|
126
126
|
},
|
|
127
127
|
setting: {
|
|
128
|
-
id: '
|
|
128
|
+
id: 'closeOnClickOutside'
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
]
|
package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js
CHANGED
|
@@ -10,11 +10,11 @@ var getProductPropertiesChoiceStyles = require('./common/getProductPropertiesCho
|
|
|
10
10
|
var getProductPropertiesChoiceInlineCss = require('./common/getProductPropertiesChoiceInlineCss.js');
|
|
11
11
|
var system = require('@gem-sdk/system');
|
|
12
12
|
|
|
13
|
-
const ProductPropertyChoice = ({ setting, styles, defaultName })=>{
|
|
13
|
+
const ProductPropertyChoice = ({ setting, styles, defaultName, currentProductId })=>{
|
|
14
14
|
const uniqId = core.useUniqProductID();
|
|
15
15
|
const { name, type, handleChange, childItem } = setting ?? {};
|
|
16
16
|
const { specialValueTextColor } = styles ?? {};
|
|
17
|
-
const inputName = name || defaultName
|
|
17
|
+
const inputName = `${(name || defaultName) ?? ''}-${currentProductId}`;
|
|
18
18
|
const activeChoiceCss = getProductPropertiesChoiceInlineCss.getPPCInlineStyleChoice(defaultName, specialValueTextColor);
|
|
19
19
|
const wrapperClasses = system.createClass({
|
|
20
20
|
...getProductPropertiesChoiceClasses.getPPCWrapperClasses()
|
|
@@ -82,15 +82,10 @@ const ArticleDateSettings = [
|
|
|
82
82
|
default: {
|
|
83
83
|
type: 'subheading-3',
|
|
84
84
|
custom: {
|
|
85
|
-
lineHeight: {
|
|
86
|
-
desktop: '120%',
|
|
87
|
-
tablet: '120%',
|
|
88
|
-
mobile: '120%'
|
|
89
|
-
},
|
|
90
85
|
letterSpacing: '0px'
|
|
91
86
|
},
|
|
92
87
|
attrs: {
|
|
93
|
-
color: '
|
|
88
|
+
color: 'text-1'
|
|
94
89
|
}
|
|
95
90
|
},
|
|
96
91
|
ignoreReRender: true
|
|
@@ -134,15 +134,22 @@ const CarouselSettingsV2 = [
|
|
|
134
134
|
{
|
|
135
135
|
id: 'dotStyle',
|
|
136
136
|
label: 'Dot style',
|
|
137
|
-
type: 'option:
|
|
137
|
+
type: 'option:illustration',
|
|
138
|
+
iconViewBox: '0 0 77 48',
|
|
139
|
+
enableItemBackground: true,
|
|
140
|
+
enableTooltip: true,
|
|
138
141
|
options: [
|
|
139
142
|
{
|
|
140
143
|
label: 'Inside',
|
|
141
|
-
value: 'inside'
|
|
144
|
+
value: 'inside',
|
|
145
|
+
type: 'carousel-dot',
|
|
146
|
+
svgName: 'gp-carousel-dot-inside'
|
|
142
147
|
},
|
|
143
148
|
{
|
|
144
149
|
label: 'Outside',
|
|
145
|
-
value: 'outside'
|
|
150
|
+
value: 'outside',
|
|
151
|
+
type: 'carousel-dot',
|
|
152
|
+
svgName: 'gp-carousel-dot-outside'
|
|
146
153
|
}
|
|
147
154
|
],
|
|
148
155
|
devices: {
|
|
@@ -402,7 +409,9 @@ const CarouselSettingsV2 = [
|
|
|
402
409
|
{
|
|
403
410
|
id: 'arrowGapToEachSide',
|
|
404
411
|
label: 'Gap to each side',
|
|
405
|
-
type: 'input:
|
|
412
|
+
type: 'input:slider',
|
|
413
|
+
min: 0,
|
|
414
|
+
max: 120,
|
|
406
415
|
default: '16'
|
|
407
416
|
},
|
|
408
417
|
{
|
|
@@ -594,12 +603,16 @@ const CarouselSettingsV2 = [
|
|
|
594
603
|
{
|
|
595
604
|
id: 'playSpeed',
|
|
596
605
|
label: 'Slide speed',
|
|
597
|
-
type: 'input:
|
|
606
|
+
type: 'input:slider',
|
|
598
607
|
useOnlyUnitInit: true,
|
|
599
|
-
min:
|
|
608
|
+
min: 100,
|
|
609
|
+
max: 5000,
|
|
610
|
+
step: 50,
|
|
600
611
|
units: [
|
|
601
612
|
'ms'
|
|
602
613
|
],
|
|
614
|
+
showDefaultUnit: true,
|
|
615
|
+
isNumber: true,
|
|
603
616
|
default: 500
|
|
604
617
|
},
|
|
605
618
|
{
|
|
@@ -71,6 +71,21 @@ const SettingUIV2 = [
|
|
|
71
71
|
}
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
label: {
|
|
76
|
+
en: 'Item spacing'
|
|
77
|
+
},
|
|
78
|
+
controls: [
|
|
79
|
+
{
|
|
80
|
+
label: {
|
|
81
|
+
en: 'Gap'
|
|
82
|
+
},
|
|
83
|
+
setting: {
|
|
84
|
+
id: 'spacing'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
74
89
|
{
|
|
75
90
|
label: {
|
|
76
91
|
en: 'Item style'
|
|
@@ -107,86 +122,75 @@ const SettingUIV2 = [
|
|
|
107
122
|
setting: {
|
|
108
123
|
id: 'background'
|
|
109
124
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
en: 'Corner'
|
|
122
|
-
},
|
|
123
|
-
setting: {
|
|
124
|
-
id: 'roundedContent'
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: {
|
|
129
|
-
en: 'Shadow'
|
|
130
|
-
},
|
|
131
|
-
setting: {
|
|
132
|
-
id: 'carouselShadow'
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
moreSettings: {
|
|
128
|
+
controls: [
|
|
129
|
+
{
|
|
130
|
+
label: {
|
|
131
|
+
en: 'Border'
|
|
132
|
+
},
|
|
133
|
+
setting: {
|
|
134
|
+
id: 'borderContent'
|
|
135
|
+
}
|
|
133
136
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
{
|
|
138
|
+
label: {
|
|
139
|
+
en: 'Corner'
|
|
140
|
+
},
|
|
141
|
+
setting: {
|
|
142
|
+
id: 'roundedContent'
|
|
143
|
+
}
|
|
141
144
|
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
{
|
|
146
|
+
label: {
|
|
147
|
+
en: 'Shadow'
|
|
148
|
+
},
|
|
149
|
+
setting: {
|
|
150
|
+
id: 'carouselShadow'
|
|
151
|
+
},
|
|
152
|
+
options: {
|
|
153
|
+
updateFields: [
|
|
154
|
+
{
|
|
155
|
+
field: 'enable',
|
|
156
|
+
settingId: 'hasActiveShadow'
|
|
154
157
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
controlChangeTrigger: {
|
|
161
|
+
settings: [
|
|
162
|
+
{
|
|
163
|
+
condition: `carouselShadow.enable === true`,
|
|
164
|
+
source: [
|
|
165
|
+
'carouselShadow'
|
|
166
|
+
],
|
|
167
|
+
action: {
|
|
168
|
+
controlId: 'hasActiveShadow',
|
|
169
|
+
groupType: 'style',
|
|
170
|
+
controlType: 'style',
|
|
171
|
+
newValue: true
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
condition: `carouselShadow.enable === false`,
|
|
176
|
+
source: [
|
|
177
|
+
'carouselShadow'
|
|
178
|
+
],
|
|
179
|
+
action: {
|
|
180
|
+
controlId: 'hasActiveShadow',
|
|
181
|
+
groupType: 'style',
|
|
182
|
+
controlType: 'style',
|
|
183
|
+
newValue: false
|
|
184
|
+
}
|
|
166
185
|
}
|
|
186
|
+
],
|
|
187
|
+
options: {
|
|
188
|
+
noRecordHistory: true
|
|
167
189
|
}
|
|
168
|
-
],
|
|
169
|
-
options: {
|
|
170
|
-
noRecordHistory: true
|
|
171
190
|
}
|
|
172
191
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
label: {
|
|
178
|
-
en: 'Item spacing'
|
|
179
|
-
},
|
|
180
|
-
controls: [
|
|
181
|
-
{
|
|
182
|
-
label: {
|
|
183
|
-
en: 'Gap'
|
|
184
|
-
},
|
|
185
|
-
setting: {
|
|
186
|
-
id: 'spacing'
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
]
|
|
192
|
+
]
|
|
193
|
+
}
|
|
190
194
|
},
|
|
191
195
|
{
|
|
192
196
|
controls: [
|
|
@@ -205,7 +209,7 @@ const SettingUIV2 = [
|
|
|
205
209
|
{
|
|
206
210
|
conditionDisplay: `navigationEnable === true`,
|
|
207
211
|
label: {
|
|
208
|
-
en: '
|
|
212
|
+
en: 'Position'
|
|
209
213
|
},
|
|
210
214
|
setting: {
|
|
211
215
|
id: 'navigationStyle'
|
|
@@ -247,7 +251,8 @@ const SettingUIV2 = [
|
|
|
247
251
|
label: {
|
|
248
252
|
en: 'Size'
|
|
249
253
|
},
|
|
250
|
-
fixedValue: 'Edit
|
|
254
|
+
fixedValue: 'Edit',
|
|
255
|
+
iconName: 'polaris-measurement-size',
|
|
251
256
|
controls: [
|
|
252
257
|
{
|
|
253
258
|
setting: {
|
|
@@ -320,7 +325,7 @@ const SettingUIV2 = [
|
|
|
320
325
|
{
|
|
321
326
|
conditionDisplay: `navigationEnable === true`,
|
|
322
327
|
label: {
|
|
323
|
-
en: 'Gap to
|
|
328
|
+
en: 'Gap to edge'
|
|
324
329
|
},
|
|
325
330
|
setting: {
|
|
326
331
|
id: 'arrowGapToEachSide'
|
|
@@ -355,7 +360,16 @@ const SettingUIV2 = [
|
|
|
355
360
|
{
|
|
356
361
|
conditionDisplay: `dot === true`,
|
|
357
362
|
label: {
|
|
358
|
-
en: '
|
|
363
|
+
en: 'Position'
|
|
364
|
+
},
|
|
365
|
+
setting: {
|
|
366
|
+
id: 'dotStyle'
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
conditionDisplay: `dot === true`,
|
|
371
|
+
label: {
|
|
372
|
+
en: 'Active icon'
|
|
359
373
|
},
|
|
360
374
|
setting: {
|
|
361
375
|
id: 'dotActiveColor'
|
|
@@ -364,7 +378,7 @@ const SettingUIV2 = [
|
|
|
364
378
|
{
|
|
365
379
|
conditionDisplay: `dot === true`,
|
|
366
380
|
label: {
|
|
367
|
-
en: 'Inactive
|
|
381
|
+
en: 'Inactive icon'
|
|
368
382
|
},
|
|
369
383
|
setting: {
|
|
370
384
|
id: 'dotColor'
|
|
@@ -378,26 +392,99 @@ const SettingUIV2 = [
|
|
|
378
392
|
setting: {
|
|
379
393
|
id: 'dotSize'
|
|
380
394
|
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
conditionDisplay: `dot === true`,
|
|
398
|
+
label: {
|
|
399
|
+
en: 'Gap to edge'
|
|
400
|
+
},
|
|
401
|
+
setting: {
|
|
402
|
+
id: 'dotGapToCarousel'
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
label: {
|
|
409
|
+
en: 'Slide effect'
|
|
410
|
+
},
|
|
411
|
+
controls: [
|
|
412
|
+
{
|
|
413
|
+
label: {
|
|
414
|
+
en: 'Slide direction'
|
|
415
|
+
},
|
|
416
|
+
setting: {
|
|
417
|
+
id: 'rtl'
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
label: {
|
|
422
|
+
en: 'Autoplay'
|
|
423
|
+
},
|
|
424
|
+
setting: {
|
|
425
|
+
id: 'autoplay'
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
label: {
|
|
430
|
+
en: 'Time out'
|
|
431
|
+
},
|
|
432
|
+
setting: {
|
|
433
|
+
id: 'autoplayTimeout'
|
|
434
|
+
},
|
|
435
|
+
conditionDisplay: 'autoplay === true'
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
label: {
|
|
439
|
+
en: 'Pause On Hover'
|
|
440
|
+
},
|
|
441
|
+
setting: {
|
|
442
|
+
id: 'pauseOnHover'
|
|
443
|
+
},
|
|
444
|
+
conditionDisplay: 'autoplay == true'
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
label: {
|
|
448
|
+
en: 'Preview'
|
|
449
|
+
},
|
|
450
|
+
setting: {
|
|
451
|
+
id: 'runPreview'
|
|
452
|
+
},
|
|
453
|
+
conditionDisplay: 'autoplay === true'
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
label: {
|
|
457
|
+
en: 'Infinity loop'
|
|
458
|
+
},
|
|
459
|
+
setting: {
|
|
460
|
+
id: 'loop'
|
|
461
|
+
}
|
|
381
462
|
}
|
|
382
463
|
],
|
|
383
464
|
moreSettings: {
|
|
384
465
|
controls: [
|
|
385
466
|
{
|
|
386
|
-
conditionDisplay: `dot === true`,
|
|
387
467
|
label: {
|
|
388
|
-
en: '
|
|
468
|
+
en: 'Drag / swipe'
|
|
389
469
|
},
|
|
390
470
|
setting: {
|
|
391
|
-
id: '
|
|
471
|
+
id: 'enableDrag'
|
|
392
472
|
}
|
|
393
473
|
},
|
|
394
474
|
{
|
|
395
|
-
conditionDisplay: `dot === true`,
|
|
396
475
|
label: {
|
|
397
|
-
en: '
|
|
476
|
+
en: 'Slide speed'
|
|
477
|
+
},
|
|
478
|
+
setting: {
|
|
479
|
+
id: 'playSpeed'
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
label: {
|
|
484
|
+
en: 'Animation'
|
|
398
485
|
},
|
|
399
486
|
setting: {
|
|
400
|
-
id: '
|
|
487
|
+
id: 'animationMode'
|
|
401
488
|
}
|
|
402
489
|
}
|
|
403
490
|
]
|
|
@@ -413,6 +500,43 @@ const SettingUIV2 = [
|
|
|
413
500
|
id: 'sizeSetting'
|
|
414
501
|
},
|
|
415
502
|
layout: 'vertical'
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
label: {
|
|
506
|
+
en: 'Padding'
|
|
507
|
+
},
|
|
508
|
+
conditionDisplay: `pageType != "POST_PURCHASE"`,
|
|
509
|
+
controlConfig: {
|
|
510
|
+
id: 'padding',
|
|
511
|
+
type: 'padding-v2',
|
|
512
|
+
linkWithSetting: {
|
|
513
|
+
name: 'spacing-setting',
|
|
514
|
+
field: 'padding'
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
label: {
|
|
522
|
+
en: 'Background'
|
|
523
|
+
},
|
|
524
|
+
controls: [
|
|
525
|
+
{
|
|
526
|
+
label: {
|
|
527
|
+
en: 'Color'
|
|
528
|
+
},
|
|
529
|
+
setting: {
|
|
530
|
+
id: 'backgroundColor'
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
label: {
|
|
535
|
+
en: 'Image'
|
|
536
|
+
},
|
|
537
|
+
setting: {
|
|
538
|
+
id: 'backgroundImage'
|
|
539
|
+
}
|
|
416
540
|
}
|
|
417
541
|
]
|
|
418
542
|
},
|
|
@@ -495,115 +619,6 @@ const SettingUIV2 = [
|
|
|
495
619
|
}
|
|
496
620
|
]
|
|
497
621
|
},
|
|
498
|
-
{
|
|
499
|
-
label: {
|
|
500
|
-
en: 'Background'
|
|
501
|
-
},
|
|
502
|
-
controls: [
|
|
503
|
-
{
|
|
504
|
-
label: {
|
|
505
|
-
en: 'Color'
|
|
506
|
-
},
|
|
507
|
-
setting: {
|
|
508
|
-
id: 'backgroundColor'
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
label: {
|
|
513
|
-
en: 'Image'
|
|
514
|
-
},
|
|
515
|
-
setting: {
|
|
516
|
-
id: 'backgroundImage'
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
]
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
label: {
|
|
523
|
-
en: 'Slide effect'
|
|
524
|
-
},
|
|
525
|
-
controls: [
|
|
526
|
-
{
|
|
527
|
-
label: {
|
|
528
|
-
en: 'Slide direction'
|
|
529
|
-
},
|
|
530
|
-
setting: {
|
|
531
|
-
id: 'rtl'
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
label: {
|
|
536
|
-
en: 'Autoplay'
|
|
537
|
-
},
|
|
538
|
-
setting: {
|
|
539
|
-
id: 'autoplay'
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
label: {
|
|
544
|
-
en: 'Time out'
|
|
545
|
-
},
|
|
546
|
-
setting: {
|
|
547
|
-
id: 'autoplayTimeout'
|
|
548
|
-
},
|
|
549
|
-
conditionDisplay: 'autoplay === true'
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
label: {
|
|
553
|
-
en: 'Pause On Hover'
|
|
554
|
-
},
|
|
555
|
-
setting: {
|
|
556
|
-
id: 'pauseOnHover'
|
|
557
|
-
},
|
|
558
|
-
conditionDisplay: 'autoplay == true'
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
label: {
|
|
562
|
-
en: 'Preview'
|
|
563
|
-
},
|
|
564
|
-
setting: {
|
|
565
|
-
id: 'runPreview'
|
|
566
|
-
},
|
|
567
|
-
conditionDisplay: 'autoplay === true'
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
label: {
|
|
571
|
-
en: 'Infinity loop'
|
|
572
|
-
},
|
|
573
|
-
setting: {
|
|
574
|
-
id: 'loop'
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
],
|
|
578
|
-
moreSettings: {
|
|
579
|
-
controls: [
|
|
580
|
-
{
|
|
581
|
-
label: {
|
|
582
|
-
en: 'Drag / swipe'
|
|
583
|
-
},
|
|
584
|
-
setting: {
|
|
585
|
-
id: 'enableDrag'
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
label: {
|
|
590
|
-
en: 'Slide speed'
|
|
591
|
-
},
|
|
592
|
-
setting: {
|
|
593
|
-
id: 'playSpeed'
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
label: {
|
|
598
|
-
en: 'Animation'
|
|
599
|
-
},
|
|
600
|
-
setting: {
|
|
601
|
-
id: 'animationMode'
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
]
|
|
605
|
-
}
|
|
606
|
-
},
|
|
607
622
|
{
|
|
608
623
|
controls: [
|
|
609
624
|
{
|
|
@@ -112,18 +112,18 @@ const SettingUIV2 = [
|
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
label: {
|
|
115
|
-
en: '
|
|
115
|
+
en: 'Opacity'
|
|
116
116
|
},
|
|
117
117
|
setting: {
|
|
118
|
-
id: '
|
|
118
|
+
id: 'overlayOpacity'
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
label: {
|
|
123
|
-
en: '
|
|
123
|
+
en: 'Click to close'
|
|
124
124
|
},
|
|
125
125
|
setting: {
|
|
126
|
-
id: '
|
|
126
|
+
id: 'closeOnClickOutside'
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
]
|
package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js
CHANGED
|
@@ -6,11 +6,11 @@ import { getPPCWrapperStyles, getPPCContainerStyles, getPPCLabelStyles } from '.
|
|
|
6
6
|
import { getPPCInlineStyleChoice } from './common/getProductPropertiesChoiceInlineCss.js';
|
|
7
7
|
import { createClass, createStyle } from '@gem-sdk/system';
|
|
8
8
|
|
|
9
|
-
const ProductPropertyChoice = ({ setting, styles, defaultName })=>{
|
|
9
|
+
const ProductPropertyChoice = ({ setting, styles, defaultName, currentProductId })=>{
|
|
10
10
|
const uniqId = useUniqProductID();
|
|
11
11
|
const { name, type, handleChange, childItem } = setting ?? {};
|
|
12
12
|
const { specialValueTextColor } = styles ?? {};
|
|
13
|
-
const inputName = name || defaultName
|
|
13
|
+
const inputName = `${(name || defaultName) ?? ''}-${currentProductId}`;
|
|
14
14
|
const activeChoiceCss = getPPCInlineStyleChoice(defaultName, specialValueTextColor);
|
|
15
15
|
const wrapperClasses = createClass({
|
|
16
16
|
...getPPCWrapperClasses()
|