@gem-sdk/components 2.0.0-dev.394 → 2.0.0-dev.396
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/banner/components/common/getStyle.js +3 -1
- package/dist/cjs/banner/setting/setting.js +12 -16
- package/dist/cjs/banner/setting/uiV2.js +0 -26
- package/dist/cjs/product/components/ProductBundle/common/styles.js +17 -6
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +47 -415
- package/dist/cjs/product/components/ProductBundle/setting/uiV1.js +404 -0
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +728 -0
- package/dist/cjs/product/setting/product-badge/configs/settings.js +1 -1
- package/dist/cjs/product/setting/product-badge/configs/uiV2.js +2 -5
- package/dist/esm/banner/components/common/getStyle.js +4 -2
- package/dist/esm/banner/setting/setting.js +12 -16
- package/dist/esm/banner/setting/uiV2.js +0 -26
- package/dist/esm/product/components/ProductBundle/common/styles.js +17 -6
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +47 -415
- package/dist/esm/product/components/ProductBundle/setting/uiV1.js +400 -0
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +724 -0
- package/dist/esm/product/setting/product-badge/configs/settings.js +1 -1
- package/dist/esm/product/setting/product-badge/configs/uiV2.js +2 -5
- package/dist/types/index.d.ts +3 -1
- package/package.json +2 -2
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const ControlUIV2 = [
|
|
6
|
+
{
|
|
7
|
+
label: {
|
|
8
|
+
en: 'Bundle management'
|
|
9
|
+
},
|
|
10
|
+
controls: [
|
|
11
|
+
{
|
|
12
|
+
type: 'control',
|
|
13
|
+
layout: 'vertical',
|
|
14
|
+
setting: {
|
|
15
|
+
id: 'childItem'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
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
|
+
{
|
|
45
|
+
label: {
|
|
46
|
+
en: 'Item gap'
|
|
47
|
+
},
|
|
48
|
+
controls: [
|
|
49
|
+
{
|
|
50
|
+
label: {
|
|
51
|
+
en: 'Gap'
|
|
52
|
+
},
|
|
53
|
+
setting: {
|
|
54
|
+
id: 'itemSpacing'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
controls: [
|
|
61
|
+
{
|
|
62
|
+
type: 'control',
|
|
63
|
+
label: {
|
|
64
|
+
en: 'Radio icon'
|
|
65
|
+
},
|
|
66
|
+
setting: {
|
|
67
|
+
id: 'enableIcon'
|
|
68
|
+
},
|
|
69
|
+
options: {
|
|
70
|
+
labelVariant: 'primary',
|
|
71
|
+
toggleStyle: 'switch'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
conditionDisplay: 'enableIcon == true && layout == "vertical-layout"',
|
|
76
|
+
label: {
|
|
77
|
+
en: 'Position'
|
|
78
|
+
},
|
|
79
|
+
setting: {
|
|
80
|
+
id: 'iconPosition'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: 'control',
|
|
85
|
+
conditionDisplay: 'enableIcon == true && layout == "horizontal-layout"',
|
|
86
|
+
label: {
|
|
87
|
+
en: 'Position'
|
|
88
|
+
},
|
|
89
|
+
setting: {
|
|
90
|
+
id: 'iconHorizontalPosition'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'control',
|
|
95
|
+
label: {
|
|
96
|
+
en: 'Color'
|
|
97
|
+
},
|
|
98
|
+
setting: {
|
|
99
|
+
id: 'iconItemColor'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'control',
|
|
104
|
+
conditionDisplay: 'enableIcon == true',
|
|
105
|
+
label: {
|
|
106
|
+
en: 'Size'
|
|
107
|
+
},
|
|
108
|
+
setting: {
|
|
109
|
+
id: 'iconSize'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: 'control',
|
|
114
|
+
conditionDisplay: 'enableIcon == true',
|
|
115
|
+
label: {
|
|
116
|
+
en: 'Gap'
|
|
117
|
+
},
|
|
118
|
+
setting: {
|
|
119
|
+
id: 'iconSpacing'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
// {
|
|
125
|
+
// label: {
|
|
126
|
+
// en: 'Size',
|
|
127
|
+
// },
|
|
128
|
+
// controls: [
|
|
129
|
+
// {
|
|
130
|
+
// type: 'control',
|
|
131
|
+
// setting: {
|
|
132
|
+
// id: 'size',
|
|
133
|
+
// },
|
|
134
|
+
// },
|
|
135
|
+
// ],
|
|
136
|
+
// },
|
|
137
|
+
{
|
|
138
|
+
label: {
|
|
139
|
+
en: 'Item states'
|
|
140
|
+
},
|
|
141
|
+
controls: [
|
|
142
|
+
{
|
|
143
|
+
type: 'tab',
|
|
144
|
+
controls: [
|
|
145
|
+
{
|
|
146
|
+
type: 'group',
|
|
147
|
+
label: {
|
|
148
|
+
en: 'Default'
|
|
149
|
+
},
|
|
150
|
+
controls: [
|
|
151
|
+
{
|
|
152
|
+
type: 'control',
|
|
153
|
+
label: {
|
|
154
|
+
en: 'Icon'
|
|
155
|
+
},
|
|
156
|
+
setting: {
|
|
157
|
+
id: 'iconColor',
|
|
158
|
+
state: 'normal'
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
type: 'control',
|
|
163
|
+
label: {
|
|
164
|
+
en: 'Background'
|
|
165
|
+
},
|
|
166
|
+
setting: {
|
|
167
|
+
id: 'backgroundColor',
|
|
168
|
+
state: 'normal'
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
type: 'control',
|
|
173
|
+
label: {
|
|
174
|
+
en: 'Border'
|
|
175
|
+
},
|
|
176
|
+
setting: {
|
|
177
|
+
id: 'borderBundle',
|
|
178
|
+
state: 'normal'
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
type: 'control',
|
|
183
|
+
label: {
|
|
184
|
+
en: 'Corner'
|
|
185
|
+
},
|
|
186
|
+
setting: {
|
|
187
|
+
id: 'roundedBundle',
|
|
188
|
+
state: 'normal'
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
type: 'control',
|
|
193
|
+
label: {
|
|
194
|
+
en: 'Shadow'
|
|
195
|
+
},
|
|
196
|
+
setting: {
|
|
197
|
+
id: 'hasBoxShadowBundle',
|
|
198
|
+
state: 'normal'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
type: 'group',
|
|
203
|
+
conditionDisplay: 'hasBoxShadowBundle.normal == true',
|
|
204
|
+
controls: [
|
|
205
|
+
{
|
|
206
|
+
type: 'control',
|
|
207
|
+
layout: 'vertical',
|
|
208
|
+
setting: {
|
|
209
|
+
id: 'boxShadowBundle',
|
|
210
|
+
state: 'normal'
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: 'group',
|
|
219
|
+
label: {
|
|
220
|
+
en: 'Hover'
|
|
221
|
+
},
|
|
222
|
+
controls: [
|
|
223
|
+
{
|
|
224
|
+
type: 'control',
|
|
225
|
+
label: {
|
|
226
|
+
en: 'Icon'
|
|
227
|
+
},
|
|
228
|
+
setting: {
|
|
229
|
+
id: 'iconColor',
|
|
230
|
+
state: 'hover'
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
type: 'control',
|
|
235
|
+
label: {
|
|
236
|
+
en: 'Background'
|
|
237
|
+
},
|
|
238
|
+
setting: {
|
|
239
|
+
id: 'backgroundColor',
|
|
240
|
+
state: 'hover'
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
type: 'control',
|
|
245
|
+
label: {
|
|
246
|
+
en: 'Border'
|
|
247
|
+
},
|
|
248
|
+
setting: {
|
|
249
|
+
id: 'borderBundle',
|
|
250
|
+
state: 'hover'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
type: 'control',
|
|
255
|
+
label: {
|
|
256
|
+
en: 'Corner'
|
|
257
|
+
},
|
|
258
|
+
setting: {
|
|
259
|
+
id: 'roundedBundle',
|
|
260
|
+
state: 'hover'
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
type: 'control',
|
|
265
|
+
label: {
|
|
266
|
+
en: 'Shadow'
|
|
267
|
+
},
|
|
268
|
+
setting: {
|
|
269
|
+
id: 'hasBoxShadowBundle',
|
|
270
|
+
state: 'hover'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
type: 'group',
|
|
275
|
+
conditionDisplay: 'hasBoxShadowBundle.hover == true',
|
|
276
|
+
controls: [
|
|
277
|
+
{
|
|
278
|
+
type: 'control',
|
|
279
|
+
setting: {
|
|
280
|
+
id: 'boxShadowBundle',
|
|
281
|
+
state: 'hover'
|
|
282
|
+
},
|
|
283
|
+
layout: 'vertical'
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
type: 'group',
|
|
291
|
+
label: {
|
|
292
|
+
en: 'Active'
|
|
293
|
+
},
|
|
294
|
+
controls: [
|
|
295
|
+
{
|
|
296
|
+
type: 'control',
|
|
297
|
+
label: {
|
|
298
|
+
en: 'Icon'
|
|
299
|
+
},
|
|
300
|
+
setting: {
|
|
301
|
+
id: 'iconColor',
|
|
302
|
+
state: 'active'
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
type: 'control',
|
|
307
|
+
label: {
|
|
308
|
+
en: 'Background'
|
|
309
|
+
},
|
|
310
|
+
setting: {
|
|
311
|
+
id: 'backgroundColor',
|
|
312
|
+
state: 'active'
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: 'control',
|
|
317
|
+
label: {
|
|
318
|
+
en: 'Border'
|
|
319
|
+
},
|
|
320
|
+
setting: {
|
|
321
|
+
id: 'borderBundle',
|
|
322
|
+
state: 'active'
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
type: 'control',
|
|
327
|
+
label: {
|
|
328
|
+
en: 'Corner'
|
|
329
|
+
},
|
|
330
|
+
setting: {
|
|
331
|
+
id: 'roundedBundle',
|
|
332
|
+
state: 'active'
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
type: 'control',
|
|
337
|
+
label: {
|
|
338
|
+
en: 'Shadow'
|
|
339
|
+
},
|
|
340
|
+
setting: {
|
|
341
|
+
id: 'hasBoxShadowBundle',
|
|
342
|
+
state: 'active'
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
type: 'group',
|
|
347
|
+
conditionDisplay: 'hasBoxShadowBundle.active == true',
|
|
348
|
+
controls: [
|
|
349
|
+
{
|
|
350
|
+
type: 'control',
|
|
351
|
+
setting: {
|
|
352
|
+
id: 'boxShadowBundle',
|
|
353
|
+
state: 'active'
|
|
354
|
+
},
|
|
355
|
+
layout: 'vertical'
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
label: {
|
|
367
|
+
en: 'Item style'
|
|
368
|
+
},
|
|
369
|
+
controls: [
|
|
370
|
+
{
|
|
371
|
+
label: {
|
|
372
|
+
en: 'Background'
|
|
373
|
+
},
|
|
374
|
+
setting: {
|
|
375
|
+
id: 'backgroundColor',
|
|
376
|
+
state: 'normal'
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
label: {
|
|
381
|
+
en: 'Border'
|
|
382
|
+
},
|
|
383
|
+
setting: {
|
|
384
|
+
id: 'borderBundle',
|
|
385
|
+
state: 'normal'
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
label: {
|
|
390
|
+
en: 'Corner'
|
|
391
|
+
},
|
|
392
|
+
setting: {
|
|
393
|
+
id: 'roundedBundle',
|
|
394
|
+
state: 'normal'
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
label: {
|
|
399
|
+
en: 'Shadow'
|
|
400
|
+
},
|
|
401
|
+
setting: {
|
|
402
|
+
id: 'boxShadowBundle',
|
|
403
|
+
state: 'normal'
|
|
404
|
+
},
|
|
405
|
+
controlConfig: {
|
|
406
|
+
id: 'boxShadowBundle',
|
|
407
|
+
type: 'shadow-v2'
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
label: {
|
|
414
|
+
en: 'Hover effect'
|
|
415
|
+
},
|
|
416
|
+
controls: [
|
|
417
|
+
{
|
|
418
|
+
label: {
|
|
419
|
+
en: 'Background'
|
|
420
|
+
},
|
|
421
|
+
setting: {
|
|
422
|
+
id: 'backgroundColor',
|
|
423
|
+
state: 'hover'
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
label: {
|
|
428
|
+
en: 'Icon color'
|
|
429
|
+
},
|
|
430
|
+
setting: {
|
|
431
|
+
id: 'iconColor',
|
|
432
|
+
state: 'hover'
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
label: {
|
|
437
|
+
en: 'Border'
|
|
438
|
+
},
|
|
439
|
+
setting: {
|
|
440
|
+
id: 'borderBundle',
|
|
441
|
+
state: 'hover'
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
label: {
|
|
446
|
+
en: 'Corner'
|
|
447
|
+
},
|
|
448
|
+
setting: {
|
|
449
|
+
id: 'roundedBundle',
|
|
450
|
+
state: 'hover'
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
label: {
|
|
455
|
+
en: 'Shadow'
|
|
456
|
+
},
|
|
457
|
+
setting: {
|
|
458
|
+
id: 'boxShadowBundle',
|
|
459
|
+
state: 'hover'
|
|
460
|
+
},
|
|
461
|
+
controlConfig: {
|
|
462
|
+
id: 'boxShadowBundle',
|
|
463
|
+
type: 'shadow-v2'
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
label: {
|
|
470
|
+
en: 'Active state'
|
|
471
|
+
},
|
|
472
|
+
controls: [
|
|
473
|
+
{
|
|
474
|
+
label: {
|
|
475
|
+
en: 'Background'
|
|
476
|
+
},
|
|
477
|
+
setting: {
|
|
478
|
+
id: 'backgroundColor',
|
|
479
|
+
state: 'active'
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
label: {
|
|
484
|
+
en: 'Icon color'
|
|
485
|
+
},
|
|
486
|
+
setting: {
|
|
487
|
+
id: 'iconColor',
|
|
488
|
+
state: 'active'
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
label: {
|
|
493
|
+
en: 'Border'
|
|
494
|
+
},
|
|
495
|
+
setting: {
|
|
496
|
+
id: 'borderBundle',
|
|
497
|
+
state: 'active'
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
label: {
|
|
502
|
+
en: 'Corner'
|
|
503
|
+
},
|
|
504
|
+
setting: {
|
|
505
|
+
id: 'roundedBundle',
|
|
506
|
+
state: 'active'
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
label: {
|
|
511
|
+
en: 'Shadow'
|
|
512
|
+
},
|
|
513
|
+
setting: {
|
|
514
|
+
id: 'boxShadowBundle',
|
|
515
|
+
state: 'active'
|
|
516
|
+
},
|
|
517
|
+
controlConfig: {
|
|
518
|
+
id: 'boxShadowBundle',
|
|
519
|
+
type: 'shadow-v2'
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
label: {
|
|
526
|
+
en: 'Size'
|
|
527
|
+
},
|
|
528
|
+
controls: [
|
|
529
|
+
{
|
|
530
|
+
id: 'Width',
|
|
531
|
+
label: {
|
|
532
|
+
en: 'Width'
|
|
533
|
+
},
|
|
534
|
+
controlConfig: {
|
|
535
|
+
id: 'width',
|
|
536
|
+
type: 'dropdown:input',
|
|
537
|
+
label: 'Width',
|
|
538
|
+
inputType: 'number',
|
|
539
|
+
units: [
|
|
540
|
+
'px',
|
|
541
|
+
'%'
|
|
542
|
+
],
|
|
543
|
+
hideUnit: false,
|
|
544
|
+
linkWithSetting: {
|
|
545
|
+
name: 'size',
|
|
546
|
+
field: 'width'
|
|
547
|
+
},
|
|
548
|
+
displayOptions: [
|
|
549
|
+
{
|
|
550
|
+
label: 'Fit content',
|
|
551
|
+
value: 'Auto',
|
|
552
|
+
showValue: true
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
label: 'Full',
|
|
556
|
+
value: '100%',
|
|
557
|
+
showValue: true
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
label: 'Small',
|
|
561
|
+
value: '100px',
|
|
562
|
+
showValue: true
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
label: 'Medium',
|
|
566
|
+
value: '200px',
|
|
567
|
+
showValue: true
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
label: 'Large',
|
|
571
|
+
value: '300px',
|
|
572
|
+
showValue: true
|
|
573
|
+
}
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
layout: 'horizontal'
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
label: {
|
|
580
|
+
en: 'Padding'
|
|
581
|
+
},
|
|
582
|
+
controlConfig: {
|
|
583
|
+
id: 'padding',
|
|
584
|
+
type: 'padding-v2',
|
|
585
|
+
linkWithSetting: {
|
|
586
|
+
name: 'size',
|
|
587
|
+
field: 'padding'
|
|
588
|
+
},
|
|
589
|
+
compoDefaultValue: {
|
|
590
|
+
desktop: {
|
|
591
|
+
default: {
|
|
592
|
+
type: 'custom',
|
|
593
|
+
top: '12px',
|
|
594
|
+
bottom: '12px',
|
|
595
|
+
left: '32px',
|
|
596
|
+
right: '32px'
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
label: {
|
|
606
|
+
en: 'Shape',
|
|
607
|
+
cn: '形状',
|
|
608
|
+
es: 'Forma'
|
|
609
|
+
},
|
|
610
|
+
conditionDisplay: 'pageType != "POST_PURCHASE"',
|
|
611
|
+
controls: [
|
|
612
|
+
{
|
|
613
|
+
label: {
|
|
614
|
+
en: 'Border',
|
|
615
|
+
cn: '边界',
|
|
616
|
+
es: 'Borde'
|
|
617
|
+
},
|
|
618
|
+
setting: {
|
|
619
|
+
id: 'border',
|
|
620
|
+
state: 'normal'
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
label: {
|
|
625
|
+
en: 'Corner',
|
|
626
|
+
cn: '角落',
|
|
627
|
+
es: 'Esquina'
|
|
628
|
+
},
|
|
629
|
+
setting: {
|
|
630
|
+
id: 'rounded',
|
|
631
|
+
state: 'normal'
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
label: {
|
|
636
|
+
en: 'Shadow',
|
|
637
|
+
cn: '阴影',
|
|
638
|
+
es: 'Sombra'
|
|
639
|
+
},
|
|
640
|
+
setting: {
|
|
641
|
+
id: 'boxShadow',
|
|
642
|
+
state: 'normal'
|
|
643
|
+
},
|
|
644
|
+
options: {
|
|
645
|
+
updateFields: [
|
|
646
|
+
{
|
|
647
|
+
field: 'enable',
|
|
648
|
+
settingId: 'advanced.hasBoxShadow',
|
|
649
|
+
state: 'normal'
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
controlChangeTrigger: {
|
|
654
|
+
settings: [
|
|
655
|
+
{
|
|
656
|
+
condition: `boxShadow.normal.enable === true`,
|
|
657
|
+
source: [
|
|
658
|
+
'boxShadow',
|
|
659
|
+
'hasBoxShadow'
|
|
660
|
+
],
|
|
661
|
+
action: {
|
|
662
|
+
controlId: 'hasBoxShadow',
|
|
663
|
+
groupType: 'advanced',
|
|
664
|
+
controlType: 'advanced',
|
|
665
|
+
state: 'normal',
|
|
666
|
+
newValue: true
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
condition: `boxShadow.normal.enable === false`,
|
|
671
|
+
source: [
|
|
672
|
+
'boxShadow',
|
|
673
|
+
'hasBoxShadow'
|
|
674
|
+
],
|
|
675
|
+
action: {
|
|
676
|
+
controlId: 'hasBoxShadow',
|
|
677
|
+
groupType: 'advanced',
|
|
678
|
+
controlType: 'advanced',
|
|
679
|
+
state: 'normal',
|
|
680
|
+
newValue: false
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
],
|
|
684
|
+
options: {
|
|
685
|
+
noRecordHistory: true
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
controls: [
|
|
693
|
+
{
|
|
694
|
+
type: 'control',
|
|
695
|
+
label: {
|
|
696
|
+
en: 'Display condition'
|
|
697
|
+
},
|
|
698
|
+
options: {
|
|
699
|
+
labelVariant: 'primary',
|
|
700
|
+
toggleStyle: 'switch'
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
layout: 'vertical',
|
|
705
|
+
setting: {
|
|
706
|
+
id: 'selectItemDefault'
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
controls: [
|
|
713
|
+
{
|
|
714
|
+
label: {
|
|
715
|
+
en: 'Align'
|
|
716
|
+
},
|
|
717
|
+
setting: {
|
|
718
|
+
id: 'align'
|
|
719
|
+
},
|
|
720
|
+
options: {
|
|
721
|
+
labelVariant: 'primary'
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
];
|
|
727
|
+
|
|
728
|
+
exports.default = ControlUIV2;
|