@gem-sdk/components 2.0.0-dev.504 → 2.0.0-dev.505
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/product/components/ProductBundle/setting/ProductBundleDiscount.js +26 -20
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +156 -72
- package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +26 -20
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +156 -72
- package/package.json +1 -1
|
@@ -43,8 +43,18 @@ const config = {
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
id: 'hideNoDiscountItem',
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
default: false,
|
|
47
|
+
type: 'select',
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
label: 'All bundle',
|
|
51
|
+
value: false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Hide all no-discount bundles',
|
|
55
|
+
value: true
|
|
56
|
+
}
|
|
57
|
+
]
|
|
48
58
|
},
|
|
49
59
|
{
|
|
50
60
|
id: 'bundleItems',
|
|
@@ -58,8 +68,18 @@ const config = {
|
|
|
58
68
|
},
|
|
59
69
|
{
|
|
60
70
|
id: 'useProductCompareAtPrice',
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
default: false,
|
|
72
|
+
type: 'select',
|
|
73
|
+
options: [
|
|
74
|
+
{
|
|
75
|
+
label: 'Total product price',
|
|
76
|
+
value: false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Total product compare-at price',
|
|
80
|
+
value: true
|
|
81
|
+
}
|
|
82
|
+
]
|
|
63
83
|
},
|
|
64
84
|
{
|
|
65
85
|
id: 'selectItemDefault',
|
|
@@ -137,7 +157,7 @@ const config = {
|
|
|
137
157
|
},
|
|
138
158
|
{
|
|
139
159
|
id: 'iconSize',
|
|
140
|
-
type: 'input:
|
|
160
|
+
type: 'input:stepper',
|
|
141
161
|
devices: {
|
|
142
162
|
desktop: {
|
|
143
163
|
default: 18
|
|
@@ -351,21 +371,7 @@ const config = {
|
|
|
351
371
|
{
|
|
352
372
|
id: 'boxShadowBundle',
|
|
353
373
|
type: 'shadow-v2',
|
|
354
|
-
|
|
355
|
-
normal: true,
|
|
356
|
-
hover: true,
|
|
357
|
-
active: true
|
|
358
|
-
},
|
|
359
|
-
default: {
|
|
360
|
-
normal: {
|
|
361
|
-
type: 'shadow-1',
|
|
362
|
-
distance: '4px',
|
|
363
|
-
blur: '12px',
|
|
364
|
-
spread: '0px',
|
|
365
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
366
|
-
angle: 90
|
|
367
|
-
}
|
|
368
|
-
},
|
|
374
|
+
default: {},
|
|
369
375
|
state: {
|
|
370
376
|
normal: true,
|
|
371
377
|
hover: true,
|
|
@@ -17,30 +17,6 @@ const ControlUIV2 = [
|
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
-
{
|
|
21
|
-
controls: [
|
|
22
|
-
{
|
|
23
|
-
label: {
|
|
24
|
-
en: 'Use product compare-at price'
|
|
25
|
-
},
|
|
26
|
-
setting: {
|
|
27
|
-
id: 'useProductCompareAtPrice'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
controls: [
|
|
34
|
-
{
|
|
35
|
-
label: {
|
|
36
|
-
en: 'Hide no-discount items'
|
|
37
|
-
},
|
|
38
|
-
setting: {
|
|
39
|
-
id: 'hideNoDiscountItem'
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
20
|
{
|
|
45
21
|
label: {
|
|
46
22
|
en: 'Item gap'
|
|
@@ -189,28 +165,57 @@ const ControlUIV2 = [
|
|
|
189
165
|
}
|
|
190
166
|
},
|
|
191
167
|
{
|
|
192
|
-
type: 'control',
|
|
193
168
|
label: {
|
|
194
169
|
en: 'Shadow'
|
|
195
170
|
},
|
|
196
171
|
setting: {
|
|
197
|
-
id: '
|
|
172
|
+
id: 'boxShadowBundle',
|
|
198
173
|
state: 'normal'
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
{
|
|
206
|
-
type: 'control',
|
|
207
|
-
layout: 'vertical',
|
|
208
|
-
setting: {
|
|
209
|
-
id: 'boxShadowBundle',
|
|
174
|
+
},
|
|
175
|
+
options: {
|
|
176
|
+
updateFields: [
|
|
177
|
+
{
|
|
178
|
+
field: 'normal.enable',
|
|
179
|
+
settingId: 'hasBoxShadowBundle',
|
|
210
180
|
state: 'normal'
|
|
211
181
|
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
controlChangeTrigger: {
|
|
185
|
+
settings: [
|
|
186
|
+
{
|
|
187
|
+
condition: `boxShadowBundle.normal.enable === true`,
|
|
188
|
+
source: [
|
|
189
|
+
'boxShadowBundle',
|
|
190
|
+
'hasBoxShadowBundle'
|
|
191
|
+
],
|
|
192
|
+
action: {
|
|
193
|
+
controlId: 'hasBoxShadowBundle',
|
|
194
|
+
groupType: 'style',
|
|
195
|
+
controlType: 'style',
|
|
196
|
+
state: 'normal',
|
|
197
|
+
newValue: true
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
condition: `boxShadowBundle.normal.enable === false`,
|
|
202
|
+
source: [
|
|
203
|
+
'boxShadowBundle',
|
|
204
|
+
'hasBoxShadowBundle'
|
|
205
|
+
],
|
|
206
|
+
action: {
|
|
207
|
+
controlId: 'hasBoxShadowBundle',
|
|
208
|
+
groupType: 'style',
|
|
209
|
+
controlType: 'style',
|
|
210
|
+
state: 'normal',
|
|
211
|
+
newValue: false
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
options: {
|
|
216
|
+
noRecordHistory: true
|
|
212
217
|
}
|
|
213
|
-
|
|
218
|
+
}
|
|
214
219
|
}
|
|
215
220
|
]
|
|
216
221
|
},
|
|
@@ -261,28 +266,57 @@ const ControlUIV2 = [
|
|
|
261
266
|
}
|
|
262
267
|
},
|
|
263
268
|
{
|
|
264
|
-
type: 'control',
|
|
265
269
|
label: {
|
|
266
270
|
en: 'Shadow'
|
|
267
271
|
},
|
|
268
272
|
setting: {
|
|
269
|
-
id: '
|
|
273
|
+
id: 'boxShadowBundle',
|
|
270
274
|
state: 'hover'
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
{
|
|
278
|
-
type: 'control',
|
|
279
|
-
setting: {
|
|
280
|
-
id: 'boxShadowBundle',
|
|
275
|
+
},
|
|
276
|
+
options: {
|
|
277
|
+
updateFields: [
|
|
278
|
+
{
|
|
279
|
+
field: 'hover.enable',
|
|
280
|
+
settingId: 'hasBoxShadowBundle',
|
|
281
281
|
state: 'hover'
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
controlChangeTrigger: {
|
|
286
|
+
settings: [
|
|
287
|
+
{
|
|
288
|
+
condition: `boxShadowBundle.hover.enable === true`,
|
|
289
|
+
source: [
|
|
290
|
+
'boxShadowBundle',
|
|
291
|
+
'hasBoxShadowBundle'
|
|
292
|
+
],
|
|
293
|
+
action: {
|
|
294
|
+
controlId: 'hasBoxShadowBundle',
|
|
295
|
+
groupType: 'style',
|
|
296
|
+
controlType: 'style',
|
|
297
|
+
state: 'hover',
|
|
298
|
+
newValue: true
|
|
299
|
+
}
|
|
282
300
|
},
|
|
283
|
-
|
|
301
|
+
{
|
|
302
|
+
condition: `boxShadowBundle.hover.enable === false`,
|
|
303
|
+
source: [
|
|
304
|
+
'boxShadowBundle',
|
|
305
|
+
'hasBoxShadowBundle'
|
|
306
|
+
],
|
|
307
|
+
action: {
|
|
308
|
+
controlId: 'hasBoxShadowBundle',
|
|
309
|
+
groupType: 'style',
|
|
310
|
+
controlType: 'style',
|
|
311
|
+
state: 'hover',
|
|
312
|
+
newValue: false
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
options: {
|
|
317
|
+
noRecordHistory: true
|
|
284
318
|
}
|
|
285
|
-
|
|
319
|
+
}
|
|
286
320
|
}
|
|
287
321
|
]
|
|
288
322
|
},
|
|
@@ -333,28 +367,57 @@ const ControlUIV2 = [
|
|
|
333
367
|
}
|
|
334
368
|
},
|
|
335
369
|
{
|
|
336
|
-
type: 'control',
|
|
337
370
|
label: {
|
|
338
371
|
en: 'Shadow'
|
|
339
372
|
},
|
|
340
373
|
setting: {
|
|
341
|
-
id: '
|
|
374
|
+
id: 'boxShadowBundle',
|
|
342
375
|
state: 'active'
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
{
|
|
350
|
-
type: 'control',
|
|
351
|
-
setting: {
|
|
352
|
-
id: 'boxShadowBundle',
|
|
376
|
+
},
|
|
377
|
+
options: {
|
|
378
|
+
updateFields: [
|
|
379
|
+
{
|
|
380
|
+
field: 'active.enable',
|
|
381
|
+
settingId: 'hasBoxShadowBundle',
|
|
353
382
|
state: 'active'
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
controlChangeTrigger: {
|
|
387
|
+
settings: [
|
|
388
|
+
{
|
|
389
|
+
condition: `boxShadowBundle.active.enable === true`,
|
|
390
|
+
source: [
|
|
391
|
+
'boxShadowBundle',
|
|
392
|
+
'hasBoxShadowBundle'
|
|
393
|
+
],
|
|
394
|
+
action: {
|
|
395
|
+
controlId: 'hasBoxShadowBundle',
|
|
396
|
+
groupType: 'style',
|
|
397
|
+
controlType: 'style',
|
|
398
|
+
state: 'active',
|
|
399
|
+
newValue: true
|
|
400
|
+
}
|
|
354
401
|
},
|
|
355
|
-
|
|
402
|
+
{
|
|
403
|
+
condition: `boxShadowBundle.active.enable === false`,
|
|
404
|
+
source: [
|
|
405
|
+
'boxShadowBundle',
|
|
406
|
+
'hasBoxShadowBundle'
|
|
407
|
+
],
|
|
408
|
+
action: {
|
|
409
|
+
controlId: 'hasBoxShadowBundle',
|
|
410
|
+
groupType: 'style',
|
|
411
|
+
controlType: 'style',
|
|
412
|
+
state: 'active',
|
|
413
|
+
newValue: false
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
options: {
|
|
418
|
+
noRecordHistory: true
|
|
356
419
|
}
|
|
357
|
-
|
|
420
|
+
}
|
|
358
421
|
}
|
|
359
422
|
]
|
|
360
423
|
}
|
|
@@ -689,21 +752,39 @@ const ControlUIV2 = [
|
|
|
689
752
|
]
|
|
690
753
|
},
|
|
691
754
|
{
|
|
755
|
+
label: {
|
|
756
|
+
en: 'Display condition'
|
|
757
|
+
},
|
|
692
758
|
controls: [
|
|
693
759
|
{
|
|
694
|
-
type: 'control',
|
|
695
760
|
label: {
|
|
696
|
-
en: '
|
|
761
|
+
en: 'Default item'
|
|
697
762
|
},
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
toggleStyle: 'switch'
|
|
763
|
+
setting: {
|
|
764
|
+
id: 'hasPreSelectItem'
|
|
701
765
|
}
|
|
702
766
|
},
|
|
703
767
|
{
|
|
704
768
|
layout: 'vertical',
|
|
705
769
|
setting: {
|
|
706
770
|
id: 'selectItemDefault'
|
|
771
|
+
},
|
|
772
|
+
conditionDisplay: 'hasPreSelectItem == true'
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
label: {
|
|
776
|
+
en: 'Compare price'
|
|
777
|
+
},
|
|
778
|
+
setting: {
|
|
779
|
+
id: 'useProductCompareAtPrice'
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
label: {
|
|
784
|
+
en: 'Display item'
|
|
785
|
+
},
|
|
786
|
+
setting: {
|
|
787
|
+
id: 'hideNoDiscountItem'
|
|
707
788
|
}
|
|
708
789
|
}
|
|
709
790
|
]
|
|
@@ -714,11 +795,14 @@ const ControlUIV2 = [
|
|
|
714
795
|
label: {
|
|
715
796
|
en: 'Align'
|
|
716
797
|
},
|
|
798
|
+
conditionEnable: '!(parseInt(size.width) >= 100 && size.width?.includes("%"))',
|
|
717
799
|
setting: {
|
|
718
800
|
id: 'align'
|
|
719
801
|
},
|
|
720
802
|
options: {
|
|
721
|
-
labelVariant: 'primary'
|
|
803
|
+
labelVariant: 'primary',
|
|
804
|
+
fullWidth: true,
|
|
805
|
+
disableMessage: `Align is not supported when width is 100%`
|
|
722
806
|
}
|
|
723
807
|
}
|
|
724
808
|
]
|
|
@@ -39,8 +39,18 @@ const config = {
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: 'hideNoDiscountItem',
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
default: false,
|
|
43
|
+
type: 'select',
|
|
44
|
+
options: [
|
|
45
|
+
{
|
|
46
|
+
label: 'All bundle',
|
|
47
|
+
value: false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: 'Hide all no-discount bundles',
|
|
51
|
+
value: true
|
|
52
|
+
}
|
|
53
|
+
]
|
|
44
54
|
},
|
|
45
55
|
{
|
|
46
56
|
id: 'bundleItems',
|
|
@@ -54,8 +64,18 @@ const config = {
|
|
|
54
64
|
},
|
|
55
65
|
{
|
|
56
66
|
id: 'useProductCompareAtPrice',
|
|
57
|
-
|
|
58
|
-
|
|
67
|
+
default: false,
|
|
68
|
+
type: 'select',
|
|
69
|
+
options: [
|
|
70
|
+
{
|
|
71
|
+
label: 'Total product price',
|
|
72
|
+
value: false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Total product compare-at price',
|
|
76
|
+
value: true
|
|
77
|
+
}
|
|
78
|
+
]
|
|
59
79
|
},
|
|
60
80
|
{
|
|
61
81
|
id: 'selectItemDefault',
|
|
@@ -133,7 +153,7 @@ const config = {
|
|
|
133
153
|
},
|
|
134
154
|
{
|
|
135
155
|
id: 'iconSize',
|
|
136
|
-
type: 'input:
|
|
156
|
+
type: 'input:stepper',
|
|
137
157
|
devices: {
|
|
138
158
|
desktop: {
|
|
139
159
|
default: 18
|
|
@@ -347,21 +367,7 @@ const config = {
|
|
|
347
367
|
{
|
|
348
368
|
id: 'boxShadowBundle',
|
|
349
369
|
type: 'shadow-v2',
|
|
350
|
-
|
|
351
|
-
normal: true,
|
|
352
|
-
hover: true,
|
|
353
|
-
active: true
|
|
354
|
-
},
|
|
355
|
-
default: {
|
|
356
|
-
normal: {
|
|
357
|
-
type: 'shadow-1',
|
|
358
|
-
distance: '4px',
|
|
359
|
-
blur: '12px',
|
|
360
|
-
spread: '0px',
|
|
361
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
362
|
-
angle: 90
|
|
363
|
-
}
|
|
364
|
-
},
|
|
370
|
+
default: {},
|
|
365
371
|
state: {
|
|
366
372
|
normal: true,
|
|
367
373
|
hover: true,
|
|
@@ -13,30 +13,6 @@ const ControlUIV2 = [
|
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
controls: [
|
|
18
|
-
{
|
|
19
|
-
label: {
|
|
20
|
-
en: 'Use product compare-at price'
|
|
21
|
-
},
|
|
22
|
-
setting: {
|
|
23
|
-
id: 'useProductCompareAtPrice'
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
controls: [
|
|
30
|
-
{
|
|
31
|
-
label: {
|
|
32
|
-
en: 'Hide no-discount items'
|
|
33
|
-
},
|
|
34
|
-
setting: {
|
|
35
|
-
id: 'hideNoDiscountItem'
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
16
|
{
|
|
41
17
|
label: {
|
|
42
18
|
en: 'Item gap'
|
|
@@ -185,28 +161,57 @@ const ControlUIV2 = [
|
|
|
185
161
|
}
|
|
186
162
|
},
|
|
187
163
|
{
|
|
188
|
-
type: 'control',
|
|
189
164
|
label: {
|
|
190
165
|
en: 'Shadow'
|
|
191
166
|
},
|
|
192
167
|
setting: {
|
|
193
|
-
id: '
|
|
168
|
+
id: 'boxShadowBundle',
|
|
194
169
|
state: 'normal'
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
{
|
|
202
|
-
type: 'control',
|
|
203
|
-
layout: 'vertical',
|
|
204
|
-
setting: {
|
|
205
|
-
id: 'boxShadowBundle',
|
|
170
|
+
},
|
|
171
|
+
options: {
|
|
172
|
+
updateFields: [
|
|
173
|
+
{
|
|
174
|
+
field: 'normal.enable',
|
|
175
|
+
settingId: 'hasBoxShadowBundle',
|
|
206
176
|
state: 'normal'
|
|
207
177
|
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
controlChangeTrigger: {
|
|
181
|
+
settings: [
|
|
182
|
+
{
|
|
183
|
+
condition: `boxShadowBundle.normal.enable === true`,
|
|
184
|
+
source: [
|
|
185
|
+
'boxShadowBundle',
|
|
186
|
+
'hasBoxShadowBundle'
|
|
187
|
+
],
|
|
188
|
+
action: {
|
|
189
|
+
controlId: 'hasBoxShadowBundle',
|
|
190
|
+
groupType: 'style',
|
|
191
|
+
controlType: 'style',
|
|
192
|
+
state: 'normal',
|
|
193
|
+
newValue: true
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
condition: `boxShadowBundle.normal.enable === false`,
|
|
198
|
+
source: [
|
|
199
|
+
'boxShadowBundle',
|
|
200
|
+
'hasBoxShadowBundle'
|
|
201
|
+
],
|
|
202
|
+
action: {
|
|
203
|
+
controlId: 'hasBoxShadowBundle',
|
|
204
|
+
groupType: 'style',
|
|
205
|
+
controlType: 'style',
|
|
206
|
+
state: 'normal',
|
|
207
|
+
newValue: false
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
options: {
|
|
212
|
+
noRecordHistory: true
|
|
208
213
|
}
|
|
209
|
-
|
|
214
|
+
}
|
|
210
215
|
}
|
|
211
216
|
]
|
|
212
217
|
},
|
|
@@ -257,28 +262,57 @@ const ControlUIV2 = [
|
|
|
257
262
|
}
|
|
258
263
|
},
|
|
259
264
|
{
|
|
260
|
-
type: 'control',
|
|
261
265
|
label: {
|
|
262
266
|
en: 'Shadow'
|
|
263
267
|
},
|
|
264
268
|
setting: {
|
|
265
|
-
id: '
|
|
269
|
+
id: 'boxShadowBundle',
|
|
266
270
|
state: 'hover'
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
{
|
|
274
|
-
type: 'control',
|
|
275
|
-
setting: {
|
|
276
|
-
id: 'boxShadowBundle',
|
|
271
|
+
},
|
|
272
|
+
options: {
|
|
273
|
+
updateFields: [
|
|
274
|
+
{
|
|
275
|
+
field: 'hover.enable',
|
|
276
|
+
settingId: 'hasBoxShadowBundle',
|
|
277
277
|
state: 'hover'
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
controlChangeTrigger: {
|
|
282
|
+
settings: [
|
|
283
|
+
{
|
|
284
|
+
condition: `boxShadowBundle.hover.enable === true`,
|
|
285
|
+
source: [
|
|
286
|
+
'boxShadowBundle',
|
|
287
|
+
'hasBoxShadowBundle'
|
|
288
|
+
],
|
|
289
|
+
action: {
|
|
290
|
+
controlId: 'hasBoxShadowBundle',
|
|
291
|
+
groupType: 'style',
|
|
292
|
+
controlType: 'style',
|
|
293
|
+
state: 'hover',
|
|
294
|
+
newValue: true
|
|
295
|
+
}
|
|
278
296
|
},
|
|
279
|
-
|
|
297
|
+
{
|
|
298
|
+
condition: `boxShadowBundle.hover.enable === false`,
|
|
299
|
+
source: [
|
|
300
|
+
'boxShadowBundle',
|
|
301
|
+
'hasBoxShadowBundle'
|
|
302
|
+
],
|
|
303
|
+
action: {
|
|
304
|
+
controlId: 'hasBoxShadowBundle',
|
|
305
|
+
groupType: 'style',
|
|
306
|
+
controlType: 'style',
|
|
307
|
+
state: 'hover',
|
|
308
|
+
newValue: false
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
options: {
|
|
313
|
+
noRecordHistory: true
|
|
280
314
|
}
|
|
281
|
-
|
|
315
|
+
}
|
|
282
316
|
}
|
|
283
317
|
]
|
|
284
318
|
},
|
|
@@ -329,28 +363,57 @@ const ControlUIV2 = [
|
|
|
329
363
|
}
|
|
330
364
|
},
|
|
331
365
|
{
|
|
332
|
-
type: 'control',
|
|
333
366
|
label: {
|
|
334
367
|
en: 'Shadow'
|
|
335
368
|
},
|
|
336
369
|
setting: {
|
|
337
|
-
id: '
|
|
370
|
+
id: 'boxShadowBundle',
|
|
338
371
|
state: 'active'
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
{
|
|
346
|
-
type: 'control',
|
|
347
|
-
setting: {
|
|
348
|
-
id: 'boxShadowBundle',
|
|
372
|
+
},
|
|
373
|
+
options: {
|
|
374
|
+
updateFields: [
|
|
375
|
+
{
|
|
376
|
+
field: 'active.enable',
|
|
377
|
+
settingId: 'hasBoxShadowBundle',
|
|
349
378
|
state: 'active'
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
controlChangeTrigger: {
|
|
383
|
+
settings: [
|
|
384
|
+
{
|
|
385
|
+
condition: `boxShadowBundle.active.enable === true`,
|
|
386
|
+
source: [
|
|
387
|
+
'boxShadowBundle',
|
|
388
|
+
'hasBoxShadowBundle'
|
|
389
|
+
],
|
|
390
|
+
action: {
|
|
391
|
+
controlId: 'hasBoxShadowBundle',
|
|
392
|
+
groupType: 'style',
|
|
393
|
+
controlType: 'style',
|
|
394
|
+
state: 'active',
|
|
395
|
+
newValue: true
|
|
396
|
+
}
|
|
350
397
|
},
|
|
351
|
-
|
|
398
|
+
{
|
|
399
|
+
condition: `boxShadowBundle.active.enable === false`,
|
|
400
|
+
source: [
|
|
401
|
+
'boxShadowBundle',
|
|
402
|
+
'hasBoxShadowBundle'
|
|
403
|
+
],
|
|
404
|
+
action: {
|
|
405
|
+
controlId: 'hasBoxShadowBundle',
|
|
406
|
+
groupType: 'style',
|
|
407
|
+
controlType: 'style',
|
|
408
|
+
state: 'active',
|
|
409
|
+
newValue: false
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
options: {
|
|
414
|
+
noRecordHistory: true
|
|
352
415
|
}
|
|
353
|
-
|
|
416
|
+
}
|
|
354
417
|
}
|
|
355
418
|
]
|
|
356
419
|
}
|
|
@@ -685,21 +748,39 @@ const ControlUIV2 = [
|
|
|
685
748
|
]
|
|
686
749
|
},
|
|
687
750
|
{
|
|
751
|
+
label: {
|
|
752
|
+
en: 'Display condition'
|
|
753
|
+
},
|
|
688
754
|
controls: [
|
|
689
755
|
{
|
|
690
|
-
type: 'control',
|
|
691
756
|
label: {
|
|
692
|
-
en: '
|
|
757
|
+
en: 'Default item'
|
|
693
758
|
},
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
toggleStyle: 'switch'
|
|
759
|
+
setting: {
|
|
760
|
+
id: 'hasPreSelectItem'
|
|
697
761
|
}
|
|
698
762
|
},
|
|
699
763
|
{
|
|
700
764
|
layout: 'vertical',
|
|
701
765
|
setting: {
|
|
702
766
|
id: 'selectItemDefault'
|
|
767
|
+
},
|
|
768
|
+
conditionDisplay: 'hasPreSelectItem == true'
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
label: {
|
|
772
|
+
en: 'Compare price'
|
|
773
|
+
},
|
|
774
|
+
setting: {
|
|
775
|
+
id: 'useProductCompareAtPrice'
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
label: {
|
|
780
|
+
en: 'Display item'
|
|
781
|
+
},
|
|
782
|
+
setting: {
|
|
783
|
+
id: 'hideNoDiscountItem'
|
|
703
784
|
}
|
|
704
785
|
}
|
|
705
786
|
]
|
|
@@ -710,11 +791,14 @@ const ControlUIV2 = [
|
|
|
710
791
|
label: {
|
|
711
792
|
en: 'Align'
|
|
712
793
|
},
|
|
794
|
+
conditionEnable: '!(parseInt(size.width) >= 100 && size.width?.includes("%"))',
|
|
713
795
|
setting: {
|
|
714
796
|
id: 'align'
|
|
715
797
|
},
|
|
716
798
|
options: {
|
|
717
|
-
labelVariant: 'primary'
|
|
799
|
+
labelVariant: 'primary',
|
|
800
|
+
fullWidth: true,
|
|
801
|
+
disableMessage: `Align is not supported when width is 100%`
|
|
718
802
|
}
|
|
719
803
|
}
|
|
720
804
|
]
|