@gem-sdk/components 2.0.0-dev.457 → 2.0.0-dev.458
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/button/setting/configs/settings.js +2 -1
- package/dist/cjs/coupon/common/classes.js +16 -2
- package/dist/cjs/coupon/common/index.js +2 -2
- package/dist/cjs/coupon/common/styles.js +44 -26
- package/dist/cjs/coupon/components/Coupon.js +3 -6
- package/dist/cjs/coupon/components/Coupon.liquid.js +4 -7
- package/dist/cjs/coupon/setting/config/settings.js +198 -124
- package/dist/cjs/coupon/setting/config/uiV2.js +349 -142
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +15 -0
- package/dist/esm/button/setting/configs/settings.js +2 -1
- package/dist/esm/coupon/common/classes.js +16 -2
- package/dist/esm/coupon/common/index.js +2 -2
- package/dist/esm/coupon/common/styles.js +45 -26
- package/dist/esm/coupon/components/Coupon.js +5 -8
- package/dist/esm/coupon/components/Coupon.liquid.js +6 -9
- package/dist/esm/coupon/setting/config/settings.js +198 -124
- package/dist/esm/coupon/setting/config/uiV2.js +349 -142
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +15 -0
- package/package.json +1 -1
|
@@ -1,17 +1,48 @@
|
|
|
1
1
|
const SettingUIV2 = [
|
|
2
2
|
{
|
|
3
3
|
label: {
|
|
4
|
-
en: '
|
|
4
|
+
en: 'Layout'
|
|
5
5
|
},
|
|
6
6
|
controls: [
|
|
7
7
|
{
|
|
8
8
|
type: 'control',
|
|
9
|
+
setting: {
|
|
10
|
+
id: 'couponLayout'
|
|
11
|
+
},
|
|
12
|
+
layout: 'vertical'
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Coupon code'
|
|
19
|
+
},
|
|
20
|
+
controls: [
|
|
21
|
+
{
|
|
22
|
+
type: 'combo',
|
|
9
23
|
label: {
|
|
10
|
-
en: '
|
|
24
|
+
en: 'Code'
|
|
11
25
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
26
|
+
iconName: 'polaris-text-block',
|
|
27
|
+
getValueFromSettingID: 'copyContent',
|
|
28
|
+
isHideClear: true,
|
|
29
|
+
popoverLabel: {
|
|
30
|
+
en: 'Code'
|
|
31
|
+
},
|
|
32
|
+
controls: [
|
|
33
|
+
{
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Content'
|
|
36
|
+
},
|
|
37
|
+
options: {
|
|
38
|
+
fullWidth: true
|
|
39
|
+
},
|
|
40
|
+
layout: 'vertical',
|
|
41
|
+
setting: {
|
|
42
|
+
id: 'copyContent'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
15
46
|
}
|
|
16
47
|
]
|
|
17
48
|
},
|
|
@@ -28,39 +59,212 @@ const SettingUIV2 = [
|
|
|
28
59
|
setting: {
|
|
29
60
|
id: 'defaultLabel'
|
|
30
61
|
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: {
|
|
67
|
+
en: 'Size'
|
|
68
|
+
},
|
|
69
|
+
controls: [
|
|
70
|
+
{
|
|
71
|
+
id: 'Width',
|
|
72
|
+
label: {
|
|
73
|
+
en: 'Width'
|
|
74
|
+
},
|
|
75
|
+
controlConfig: {
|
|
76
|
+
id: 'width',
|
|
77
|
+
type: 'dropdown:input',
|
|
78
|
+
label: 'Width',
|
|
79
|
+
inputType: 'number',
|
|
80
|
+
units: [
|
|
81
|
+
'px',
|
|
82
|
+
'%'
|
|
83
|
+
],
|
|
84
|
+
hideUnit: false,
|
|
85
|
+
linkWithSetting: {
|
|
86
|
+
name: 'globalSize',
|
|
87
|
+
field: 'width'
|
|
88
|
+
},
|
|
89
|
+
displayOptions: [
|
|
90
|
+
{
|
|
91
|
+
label: 'Fit content',
|
|
92
|
+
value: 'Auto',
|
|
93
|
+
showValue: true
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'Full',
|
|
97
|
+
value: '100%',
|
|
98
|
+
showValue: true
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
layout: 'horizontal'
|
|
31
103
|
},
|
|
32
104
|
{
|
|
33
|
-
|
|
105
|
+
id: 'Height',
|
|
34
106
|
label: {
|
|
35
|
-
en: '
|
|
107
|
+
en: 'Height'
|
|
36
108
|
},
|
|
37
|
-
|
|
38
|
-
id: '
|
|
109
|
+
controlConfig: {
|
|
110
|
+
id: 'height',
|
|
111
|
+
type: 'dropdown:input',
|
|
112
|
+
label: 'height',
|
|
113
|
+
inputType: 'number',
|
|
114
|
+
units: [
|
|
115
|
+
'px'
|
|
116
|
+
],
|
|
117
|
+
hideUnit: false,
|
|
118
|
+
linkWithSetting: {
|
|
119
|
+
name: 'globalSize',
|
|
120
|
+
field: 'height'
|
|
121
|
+
},
|
|
122
|
+
displayOptions: [
|
|
123
|
+
{
|
|
124
|
+
label: 'Fit content',
|
|
125
|
+
value: 'Auto',
|
|
126
|
+
showValue: true
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
layout: 'horizontal'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: {
|
|
134
|
+
en: 'Padding'
|
|
135
|
+
},
|
|
136
|
+
controlConfig: {
|
|
137
|
+
id: 'padding',
|
|
138
|
+
type: 'padding-v2',
|
|
139
|
+
linkWithSetting: {
|
|
140
|
+
name: 'globalSize',
|
|
141
|
+
field: 'padding'
|
|
142
|
+
},
|
|
143
|
+
compoDefaultValue: {
|
|
144
|
+
desktop: {
|
|
145
|
+
default: {
|
|
146
|
+
type: 'custom',
|
|
147
|
+
top: '12px',
|
|
148
|
+
bottom: '12px',
|
|
149
|
+
left: '24px',
|
|
150
|
+
right: '24px'
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
39
154
|
}
|
|
40
155
|
}
|
|
41
156
|
]
|
|
42
157
|
},
|
|
43
158
|
{
|
|
44
159
|
label: {
|
|
45
|
-
en: '
|
|
160
|
+
en: 'Background'
|
|
46
161
|
},
|
|
47
162
|
controls: [
|
|
48
163
|
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
id: 'couponLayout'
|
|
164
|
+
label: {
|
|
165
|
+
en: 'Color'
|
|
52
166
|
},
|
|
53
|
-
|
|
167
|
+
setting: {
|
|
168
|
+
id: 'backgroundColorV2',
|
|
169
|
+
state: 'normal'
|
|
170
|
+
}
|
|
54
171
|
}
|
|
55
172
|
]
|
|
56
173
|
},
|
|
57
174
|
{
|
|
58
175
|
label: {
|
|
59
|
-
en: '
|
|
176
|
+
en: 'Shape'
|
|
60
177
|
},
|
|
61
|
-
conditionDisplay: 'couponLayout == "icon"',
|
|
62
178
|
controls: [
|
|
63
179
|
{
|
|
180
|
+
label: {
|
|
181
|
+
en: 'Border'
|
|
182
|
+
},
|
|
183
|
+
setting: {
|
|
184
|
+
id: 'borderBtnV2',
|
|
185
|
+
state: 'normal'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: {
|
|
190
|
+
en: 'Corner'
|
|
191
|
+
},
|
|
192
|
+
setting: {
|
|
193
|
+
id: 'roundedBtnV2',
|
|
194
|
+
state: 'normal'
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: {
|
|
199
|
+
en: 'Shadow'
|
|
200
|
+
},
|
|
201
|
+
setting: {
|
|
202
|
+
id: 'boxShadowBtnV2',
|
|
203
|
+
state: 'normal'
|
|
204
|
+
},
|
|
205
|
+
options: {
|
|
206
|
+
updateFields: [
|
|
207
|
+
{
|
|
208
|
+
field: 'enable',
|
|
209
|
+
settingId: 'hasBoxShadow',
|
|
210
|
+
state: 'normal'
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
controlChangeTrigger: {
|
|
215
|
+
settings: [
|
|
216
|
+
{
|
|
217
|
+
condition: `boxShadow.normal.enable === true`,
|
|
218
|
+
source: [
|
|
219
|
+
'boxShadow',
|
|
220
|
+
'hasBoxShadow'
|
|
221
|
+
],
|
|
222
|
+
action: {
|
|
223
|
+
controlId: 'hasBoxShadow',
|
|
224
|
+
groupType: 'style',
|
|
225
|
+
controlType: 'style',
|
|
226
|
+
state: 'normal',
|
|
227
|
+
newValue: true
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
condition: `boxShadow.normal.enable === false`,
|
|
232
|
+
source: [
|
|
233
|
+
'boxShadow',
|
|
234
|
+
'hasBoxShadow'
|
|
235
|
+
],
|
|
236
|
+
action: {
|
|
237
|
+
controlId: 'hasBoxShadow',
|
|
238
|
+
groupType: 'style',
|
|
239
|
+
controlType: 'style',
|
|
240
|
+
state: 'normal',
|
|
241
|
+
newValue: false
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
options: {
|
|
246
|
+
noRecordHistory: true
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
controls: [
|
|
254
|
+
{
|
|
255
|
+
label: {
|
|
256
|
+
en: 'Icon'
|
|
257
|
+
},
|
|
258
|
+
setting: {
|
|
259
|
+
id: 'iconVisible'
|
|
260
|
+
},
|
|
261
|
+
options: {
|
|
262
|
+
labelVariant: 'primary',
|
|
263
|
+
toggleStyle: 'switch'
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
conditionDisplay: 'couponLayout == "icon" && iconVisible == true',
|
|
64
268
|
type: 'control',
|
|
65
269
|
setting: {
|
|
66
270
|
id: 'iconSvg'
|
|
@@ -70,6 +274,7 @@ const SettingUIV2 = [
|
|
|
70
274
|
}
|
|
71
275
|
},
|
|
72
276
|
{
|
|
277
|
+
conditionDisplay: 'couponLayout == "icon" && iconVisible == true',
|
|
73
278
|
type: 'control',
|
|
74
279
|
label: {
|
|
75
280
|
en: 'Icon position'
|
|
@@ -79,6 +284,7 @@ const SettingUIV2 = [
|
|
|
79
284
|
}
|
|
80
285
|
},
|
|
81
286
|
{
|
|
287
|
+
conditionDisplay: 'couponLayout == "icon" && iconVisible == true',
|
|
82
288
|
type: 'control',
|
|
83
289
|
label: {
|
|
84
290
|
en: 'Spacing'
|
|
@@ -90,220 +296,235 @@ const SettingUIV2 = [
|
|
|
90
296
|
]
|
|
91
297
|
},
|
|
92
298
|
{
|
|
93
|
-
label: {
|
|
94
|
-
en: 'Size'
|
|
95
|
-
},
|
|
96
299
|
controls: [
|
|
300
|
+
{
|
|
301
|
+
label: {
|
|
302
|
+
en: 'Text'
|
|
303
|
+
},
|
|
304
|
+
setting: {
|
|
305
|
+
id: 'enableTextStyle'
|
|
306
|
+
},
|
|
307
|
+
options: {
|
|
308
|
+
labelVariant: 'primary',
|
|
309
|
+
toggleStyle: 'switch'
|
|
310
|
+
}
|
|
311
|
+
},
|
|
97
312
|
{
|
|
98
313
|
type: 'control',
|
|
314
|
+
layout: 'vertical',
|
|
99
315
|
setting: {
|
|
100
|
-
id: '
|
|
316
|
+
id: 'typo'
|
|
101
317
|
},
|
|
102
|
-
|
|
318
|
+
conditionDisplay: 'enableTextStyle == true',
|
|
319
|
+
options: {
|
|
320
|
+
updateFields: [
|
|
321
|
+
{
|
|
322
|
+
field: 'attrs.color',
|
|
323
|
+
settingId: 'textColor',
|
|
324
|
+
state: 'normal'
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
controlChangeTrigger: {
|
|
329
|
+
settings: [
|
|
330
|
+
{
|
|
331
|
+
action: {
|
|
332
|
+
controlId: 'textColor',
|
|
333
|
+
valueFromField: 'attrs.color',
|
|
334
|
+
groupType: 'style',
|
|
335
|
+
controlType: 'style',
|
|
336
|
+
removeDevice: true,
|
|
337
|
+
state: 'normal'
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
options: {
|
|
342
|
+
noRecordHistory: true
|
|
343
|
+
}
|
|
344
|
+
}
|
|
103
345
|
}
|
|
104
346
|
]
|
|
105
347
|
},
|
|
106
348
|
{
|
|
107
349
|
label: {
|
|
108
|
-
en: '
|
|
350
|
+
en: 'Effect'
|
|
109
351
|
},
|
|
110
352
|
controls: [
|
|
111
353
|
{
|
|
112
|
-
|
|
354
|
+
label: {
|
|
355
|
+
en: 'Hover'
|
|
356
|
+
},
|
|
357
|
+
type: 'combo',
|
|
358
|
+
iconName: 'polaris-check-hover',
|
|
359
|
+
fixedValue: 'Enabled',
|
|
360
|
+
isHideClear: true,
|
|
361
|
+
popoverLabel: {
|
|
362
|
+
en: 'Hover'
|
|
363
|
+
},
|
|
113
364
|
controls: [
|
|
114
365
|
{
|
|
366
|
+
type: 'group',
|
|
115
367
|
label: {
|
|
116
|
-
en: '
|
|
368
|
+
en: 'Background'
|
|
117
369
|
},
|
|
118
370
|
controls: [
|
|
119
371
|
{
|
|
120
|
-
type: 'control',
|
|
121
|
-
label: {
|
|
122
|
-
en: 'Background color'
|
|
123
|
-
},
|
|
124
|
-
setting: {
|
|
125
|
-
id: 'backgroundColor',
|
|
126
|
-
state: 'normal'
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
type: 'control',
|
|
131
|
-
label: {
|
|
132
|
-
en: 'Text color'
|
|
133
|
-
},
|
|
134
|
-
setting: {
|
|
135
|
-
id: 'textColor',
|
|
136
|
-
state: 'normal'
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
type: 'control',
|
|
141
372
|
label: {
|
|
142
|
-
en: '
|
|
373
|
+
en: 'Color'
|
|
143
374
|
},
|
|
144
375
|
setting: {
|
|
145
|
-
id: '
|
|
146
|
-
state: '
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
type: 'control',
|
|
151
|
-
label: {
|
|
152
|
-
en: 'Corner'
|
|
153
|
-
},
|
|
154
|
-
setting: {
|
|
155
|
-
id: 'roundedBtn',
|
|
156
|
-
state: 'normal'
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
type: 'control',
|
|
161
|
-
label: {
|
|
162
|
-
en: 'Shadow'
|
|
163
|
-
},
|
|
164
|
-
setting: {
|
|
165
|
-
id: 'hasBoxShadowBtn',
|
|
166
|
-
state: 'normal'
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
conditionDisplay: 'hasBoxShadowBtn.normal == true',
|
|
171
|
-
type: 'control',
|
|
172
|
-
layout: 'vertical',
|
|
173
|
-
setting: {
|
|
174
|
-
id: 'boxShadowBtn',
|
|
175
|
-
state: 'normal'
|
|
376
|
+
id: 'backgroundColorV2',
|
|
377
|
+
state: 'hover'
|
|
176
378
|
}
|
|
177
379
|
}
|
|
178
380
|
]
|
|
179
381
|
},
|
|
180
382
|
{
|
|
383
|
+
type: 'group',
|
|
181
384
|
label: {
|
|
182
|
-
en: '
|
|
385
|
+
en: 'Text'
|
|
183
386
|
},
|
|
184
387
|
controls: [
|
|
185
388
|
{
|
|
186
|
-
type: 'control',
|
|
187
389
|
label: {
|
|
188
|
-
en: '
|
|
390
|
+
en: 'Color'
|
|
189
391
|
},
|
|
190
392
|
setting: {
|
|
191
|
-
id: '
|
|
393
|
+
id: 'textColorHover',
|
|
192
394
|
state: 'hover'
|
|
193
395
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
},
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
type: 'group',
|
|
401
|
+
label: {
|
|
402
|
+
en: 'Shape'
|
|
403
|
+
},
|
|
404
|
+
controls: [
|
|
205
405
|
{
|
|
206
|
-
type: 'control',
|
|
207
406
|
label: {
|
|
208
407
|
en: 'Border'
|
|
209
408
|
},
|
|
210
409
|
setting: {
|
|
211
|
-
id: '
|
|
410
|
+
id: 'borderBtnV2',
|
|
212
411
|
state: 'hover'
|
|
213
412
|
}
|
|
214
413
|
},
|
|
215
414
|
{
|
|
216
|
-
type: 'control',
|
|
217
415
|
label: {
|
|
218
416
|
en: 'Corner'
|
|
219
417
|
},
|
|
220
418
|
setting: {
|
|
221
|
-
id: '
|
|
419
|
+
id: 'roundedBtnV2',
|
|
222
420
|
state: 'hover'
|
|
223
421
|
}
|
|
224
422
|
},
|
|
225
423
|
{
|
|
226
|
-
type: 'control',
|
|
227
424
|
label: {
|
|
228
425
|
en: 'Shadow'
|
|
229
426
|
},
|
|
230
427
|
setting: {
|
|
231
|
-
id: '
|
|
428
|
+
id: 'boxShadowBtnV2',
|
|
232
429
|
state: 'hover'
|
|
233
430
|
}
|
|
234
|
-
}
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
label: {
|
|
438
|
+
en: 'Clicked'
|
|
439
|
+
},
|
|
440
|
+
type: 'combo',
|
|
441
|
+
iconName: 'polaris-check-clicked',
|
|
442
|
+
fixedValue: 'Enabled',
|
|
443
|
+
isHideClear: true,
|
|
444
|
+
popoverLabel: {
|
|
445
|
+
en: 'Clicked'
|
|
446
|
+
},
|
|
447
|
+
controls: [
|
|
448
|
+
{
|
|
449
|
+
type: 'group',
|
|
450
|
+
label: {
|
|
451
|
+
en: 'Content'
|
|
452
|
+
},
|
|
453
|
+
controls: [
|
|
235
454
|
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
455
|
+
label: {
|
|
456
|
+
en: 'After click'
|
|
457
|
+
},
|
|
239
458
|
setting: {
|
|
240
|
-
id: '
|
|
241
|
-
state: 'hover'
|
|
459
|
+
id: 'clickedLabel'
|
|
242
460
|
}
|
|
243
461
|
}
|
|
244
462
|
]
|
|
245
463
|
},
|
|
246
464
|
{
|
|
465
|
+
type: 'group',
|
|
247
466
|
label: {
|
|
248
|
-
en: '
|
|
467
|
+
en: 'Background'
|
|
249
468
|
},
|
|
250
469
|
controls: [
|
|
251
470
|
{
|
|
252
|
-
type: 'control',
|
|
253
471
|
label: {
|
|
254
|
-
en: '
|
|
472
|
+
en: 'Color'
|
|
255
473
|
},
|
|
256
474
|
setting: {
|
|
257
|
-
id: '
|
|
475
|
+
id: 'backgroundColorV2',
|
|
258
476
|
state: 'active'
|
|
259
477
|
}
|
|
260
|
-
}
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
type: 'group',
|
|
483
|
+
label: {
|
|
484
|
+
en: 'Text'
|
|
485
|
+
},
|
|
486
|
+
controls: [
|
|
261
487
|
{
|
|
262
|
-
type: 'control',
|
|
263
488
|
label: {
|
|
264
|
-
en: '
|
|
489
|
+
en: 'Color'
|
|
265
490
|
},
|
|
266
491
|
setting: {
|
|
267
|
-
id: '
|
|
492
|
+
id: 'textColorHover',
|
|
268
493
|
state: 'active'
|
|
269
494
|
}
|
|
270
|
-
}
|
|
495
|
+
}
|
|
496
|
+
]
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
type: 'group',
|
|
500
|
+
label: {
|
|
501
|
+
en: 'Shape'
|
|
502
|
+
},
|
|
503
|
+
controls: [
|
|
271
504
|
{
|
|
272
|
-
type: 'control',
|
|
273
505
|
label: {
|
|
274
506
|
en: 'Border'
|
|
275
507
|
},
|
|
276
508
|
setting: {
|
|
277
|
-
id: '
|
|
509
|
+
id: 'borderBtnV2',
|
|
278
510
|
state: 'active'
|
|
279
511
|
}
|
|
280
512
|
},
|
|
281
513
|
{
|
|
282
|
-
type: 'control',
|
|
283
514
|
label: {
|
|
284
515
|
en: 'Corner'
|
|
285
516
|
},
|
|
286
517
|
setting: {
|
|
287
|
-
id: '
|
|
518
|
+
id: 'roundedBtnV2',
|
|
288
519
|
state: 'active'
|
|
289
520
|
}
|
|
290
521
|
},
|
|
291
522
|
{
|
|
292
|
-
type: 'control',
|
|
293
523
|
label: {
|
|
294
524
|
en: 'Shadow'
|
|
295
525
|
},
|
|
296
526
|
setting: {
|
|
297
|
-
id: '
|
|
298
|
-
state: 'active'
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
conditionDisplay: 'hasBoxShadowBtn.active == true',
|
|
303
|
-
type: 'control',
|
|
304
|
-
layout: 'vertical',
|
|
305
|
-
setting: {
|
|
306
|
-
id: 'boxShadowBtn',
|
|
527
|
+
id: 'boxShadowBtnV2',
|
|
307
528
|
state: 'active'
|
|
308
529
|
}
|
|
309
530
|
}
|
|
@@ -313,20 +534,6 @@ const SettingUIV2 = [
|
|
|
313
534
|
}
|
|
314
535
|
]
|
|
315
536
|
},
|
|
316
|
-
{
|
|
317
|
-
label: {
|
|
318
|
-
en: 'Text'
|
|
319
|
-
},
|
|
320
|
-
controls: [
|
|
321
|
-
{
|
|
322
|
-
type: 'control',
|
|
323
|
-
layout: 'vertical',
|
|
324
|
-
setting: {
|
|
325
|
-
id: 'typo'
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
]
|
|
329
|
-
},
|
|
330
537
|
{
|
|
331
538
|
conditionDisplay: `globalSize.width !== '100%'`,
|
|
332
539
|
controls: [
|
|
@@ -350,12 +350,27 @@ const SettingUIV2 = [
|
|
|
350
350
|
{
|
|
351
351
|
field: 'attrs.textAlign',
|
|
352
352
|
settingId: 'textAlign'
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
field: 'attrs.color',
|
|
356
|
+
settingId: 'textColor',
|
|
357
|
+
state: 'normal'
|
|
353
358
|
}
|
|
354
359
|
]
|
|
355
360
|
},
|
|
356
361
|
layout: 'vertical',
|
|
357
362
|
controlChangeTrigger: {
|
|
358
363
|
settings: [
|
|
364
|
+
{
|
|
365
|
+
action: {
|
|
366
|
+
controlId: 'textColor',
|
|
367
|
+
valueFromField: 'attrs.color',
|
|
368
|
+
groupType: 'style',
|
|
369
|
+
controlType: 'style',
|
|
370
|
+
removeDevice: true,
|
|
371
|
+
state: 'normal'
|
|
372
|
+
}
|
|
373
|
+
},
|
|
359
374
|
{
|
|
360
375
|
action: {
|
|
361
376
|
controlId: 'textAlign',
|