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