@gem-sdk/components 2.0.0-dev.397 → 2.0.0-dev.399
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/form/setting/submit-button/configs/settings.js +104 -3
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +124 -60
- package/dist/cjs/image/setting/configs/settings.js +1 -1
- package/dist/cjs/image/setting/configs/uiV2.js +4 -8
- package/dist/cjs/product/setting/product-properties/configs/uiV2.js +24 -2
- package/dist/esm/form/setting/submit-button/configs/settings.js +104 -3
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +124 -60
- package/dist/esm/image/setting/configs/settings.js +1 -1
- package/dist/esm/image/setting/configs/uiV2.js +4 -8
- package/dist/esm/product/setting/product-properties/configs/uiV2.js +24 -2
- package/package.json +1 -1
|
@@ -101,6 +101,105 @@ const SubmitButtonSettings = [
|
|
|
101
101
|
{
|
|
102
102
|
id: 'style',
|
|
103
103
|
controls: [
|
|
104
|
+
{
|
|
105
|
+
id: 'borderBtnV2',
|
|
106
|
+
type: 'border-v2',
|
|
107
|
+
devices: {
|
|
108
|
+
desktop: {
|
|
109
|
+
default: {
|
|
110
|
+
normal: {
|
|
111
|
+
borderType: 'none',
|
|
112
|
+
border: 'none',
|
|
113
|
+
borderWidth: '1px',
|
|
114
|
+
width: '1px 1px 1px 1px',
|
|
115
|
+
color: '#121212',
|
|
116
|
+
isCustom: true
|
|
117
|
+
},
|
|
118
|
+
hover: {
|
|
119
|
+
borderType: 'none',
|
|
120
|
+
border: 'none',
|
|
121
|
+
borderWidth: '1px',
|
|
122
|
+
width: '1px 1px 1px 1px',
|
|
123
|
+
color: '#121212',
|
|
124
|
+
isCustom: true
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
compoDefaultValue: {
|
|
130
|
+
desktop: {
|
|
131
|
+
default: {
|
|
132
|
+
normal: {
|
|
133
|
+
border: 'solid',
|
|
134
|
+
color: '#121212',
|
|
135
|
+
width: '1px',
|
|
136
|
+
borderWidth: '1px'
|
|
137
|
+
},
|
|
138
|
+
hover: {
|
|
139
|
+
border: 'solid',
|
|
140
|
+
color: '#121212',
|
|
141
|
+
width: '1px',
|
|
142
|
+
borderWidth: '1px'
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
id: 'roundedBtnV2',
|
|
150
|
+
type: 'corner-v2',
|
|
151
|
+
devices: {
|
|
152
|
+
desktop: {
|
|
153
|
+
default: {
|
|
154
|
+
normal: {
|
|
155
|
+
btrr: '0px',
|
|
156
|
+
bblr: '0px',
|
|
157
|
+
bbrr: '0px',
|
|
158
|
+
btlr: '0px',
|
|
159
|
+
radiusType: 'none'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
compoDefaultValue: {
|
|
165
|
+
desktop: {
|
|
166
|
+
default: {
|
|
167
|
+
normal: {
|
|
168
|
+
btrr: '8px',
|
|
169
|
+
bblr: '8px',
|
|
170
|
+
bbrr: '8px',
|
|
171
|
+
btlr: '8px',
|
|
172
|
+
radiusType: 'rounded'
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: 'boxShadowBtnV2',
|
|
180
|
+
type: 'shadow-v2',
|
|
181
|
+
devices: {
|
|
182
|
+
desktop: {
|
|
183
|
+
default: {
|
|
184
|
+
normal: {}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
compoDefaultValue: {
|
|
189
|
+
desktop: {
|
|
190
|
+
default: {
|
|
191
|
+
normal: {
|
|
192
|
+
type: 'shadow-1',
|
|
193
|
+
distance: '4px',
|
|
194
|
+
blur: '4px',
|
|
195
|
+
spread: '0px',
|
|
196
|
+
color: '#121212',
|
|
197
|
+
angle: 45
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
104
203
|
{
|
|
105
204
|
id: 'borderBtn',
|
|
106
205
|
type: 'border',
|
|
@@ -244,8 +343,8 @@ const SubmitButtonSettings = [
|
|
|
244
343
|
},
|
|
245
344
|
hiddenSetting: {
|
|
246
345
|
// color: true,
|
|
247
|
-
|
|
248
|
-
|
|
346
|
+
transform: true,
|
|
347
|
+
textAlign: true
|
|
249
348
|
},
|
|
250
349
|
ignoreReRender: true
|
|
251
350
|
},
|
|
@@ -412,10 +511,12 @@ const SubmitButtonSettings = [
|
|
|
412
511
|
},
|
|
413
512
|
{
|
|
414
513
|
id: 'iconSpacing',
|
|
415
|
-
type: 'input:
|
|
514
|
+
type: 'input:slider',
|
|
416
515
|
units: [
|
|
417
516
|
'px'
|
|
418
517
|
],
|
|
518
|
+
step: 1,
|
|
519
|
+
max: 40,
|
|
419
520
|
devices: {
|
|
420
521
|
desktop: {
|
|
421
522
|
default: '8px'
|
|
@@ -48,21 +48,6 @@ const SettingUIV2 = [
|
|
|
48
48
|
label: 'Full',
|
|
49
49
|
value: '100%',
|
|
50
50
|
showValue: true
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: 'Small',
|
|
54
|
-
value: '100px',
|
|
55
|
-
showValue: true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
label: 'Medium',
|
|
59
|
-
value: '116px',
|
|
60
|
-
showValue: true
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: 'Large',
|
|
64
|
-
value: '132px',
|
|
65
|
-
showValue: true
|
|
66
51
|
}
|
|
67
52
|
]
|
|
68
53
|
},
|
|
@@ -88,21 +73,6 @@ const SettingUIV2 = [
|
|
|
88
73
|
label: 'Fit content',
|
|
89
74
|
value: 'Auto',
|
|
90
75
|
showValue: true
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: 'Small',
|
|
94
|
-
value: '28px',
|
|
95
|
-
showValue: true
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: 'Medium',
|
|
99
|
-
value: '36px',
|
|
100
|
-
showValue: true
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: 'Large',
|
|
104
|
-
value: '44px',
|
|
105
|
-
showValue: true
|
|
106
76
|
}
|
|
107
77
|
]
|
|
108
78
|
}
|
|
@@ -148,7 +118,7 @@ const SettingUIV2 = [
|
|
|
148
118
|
en: 'Border'
|
|
149
119
|
},
|
|
150
120
|
setting: {
|
|
151
|
-
id: '
|
|
121
|
+
id: 'borderBtnV2',
|
|
152
122
|
state: 'normal'
|
|
153
123
|
}
|
|
154
124
|
},
|
|
@@ -157,7 +127,7 @@ const SettingUIV2 = [
|
|
|
157
127
|
en: 'Corner'
|
|
158
128
|
},
|
|
159
129
|
setting: {
|
|
160
|
-
id: '
|
|
130
|
+
id: 'roundedBtnV2',
|
|
161
131
|
state: 'normal'
|
|
162
132
|
}
|
|
163
133
|
},
|
|
@@ -166,8 +136,52 @@ const SettingUIV2 = [
|
|
|
166
136
|
en: 'Shadow'
|
|
167
137
|
},
|
|
168
138
|
setting: {
|
|
169
|
-
id: '
|
|
139
|
+
id: 'boxShadowBtnV2',
|
|
170
140
|
state: 'normal'
|
|
141
|
+
},
|
|
142
|
+
options: {
|
|
143
|
+
updateFields: [
|
|
144
|
+
{
|
|
145
|
+
field: 'enable',
|
|
146
|
+
settingId: 'hasBoxShadowBtn',
|
|
147
|
+
state: 'normal'
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
controlChangeTrigger: {
|
|
152
|
+
settings: [
|
|
153
|
+
{
|
|
154
|
+
condition: `boxShadowBtnV2.normal.enable === true`,
|
|
155
|
+
source: [
|
|
156
|
+
'boxShadowBtnV2',
|
|
157
|
+
'hasBoxShadowBtn'
|
|
158
|
+
],
|
|
159
|
+
action: {
|
|
160
|
+
controlId: 'hasBoxShadowBtn',
|
|
161
|
+
groupType: 'advanced',
|
|
162
|
+
controlType: 'advanced',
|
|
163
|
+
state: 'normal',
|
|
164
|
+
newValue: true
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
condition: `boxShadowBtnV2.normal.enable === false`,
|
|
169
|
+
source: [
|
|
170
|
+
'boxShadowBtnV2',
|
|
171
|
+
'hasBoxShadowBtn'
|
|
172
|
+
],
|
|
173
|
+
action: {
|
|
174
|
+
controlId: 'hasBoxShadowBtn',
|
|
175
|
+
groupType: 'advanced',
|
|
176
|
+
controlType: 'advanced',
|
|
177
|
+
state: 'normal',
|
|
178
|
+
newValue: false
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
options: {
|
|
183
|
+
noRecordHistory: true
|
|
184
|
+
}
|
|
171
185
|
}
|
|
172
186
|
}
|
|
173
187
|
]
|
|
@@ -205,8 +219,9 @@ const SettingUIV2 = [
|
|
|
205
219
|
conditionDisplay: 'iconVisible == true'
|
|
206
220
|
},
|
|
207
221
|
{
|
|
222
|
+
type: 'control',
|
|
208
223
|
label: {
|
|
209
|
-
en: '
|
|
224
|
+
en: 'Gap'
|
|
210
225
|
},
|
|
211
226
|
setting: {
|
|
212
227
|
id: 'iconSpacing'
|
|
@@ -278,35 +293,84 @@ const SettingUIV2 = [
|
|
|
278
293
|
id: 'textColor',
|
|
279
294
|
state: 'hover'
|
|
280
295
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
moreSettings: {
|
|
299
|
+
type: 'collapse',
|
|
300
|
+
controls: [
|
|
301
|
+
{
|
|
302
|
+
label: {
|
|
303
|
+
en: 'Border'
|
|
304
|
+
},
|
|
305
|
+
setting: {
|
|
306
|
+
id: 'borderBtnV2',
|
|
307
|
+
state: 'hover'
|
|
308
|
+
}
|
|
294
309
|
},
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
310
|
+
{
|
|
311
|
+
label: {
|
|
312
|
+
en: 'Corner'
|
|
313
|
+
},
|
|
314
|
+
setting: {
|
|
315
|
+
id: 'roundedBtnV2',
|
|
316
|
+
state: 'hover'
|
|
317
|
+
}
|
|
303
318
|
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
319
|
+
{
|
|
320
|
+
label: {
|
|
321
|
+
en: 'Shadow'
|
|
322
|
+
},
|
|
323
|
+
setting: {
|
|
324
|
+
id: 'boxShadowBtnV2',
|
|
325
|
+
state: 'hover'
|
|
326
|
+
},
|
|
327
|
+
options: {
|
|
328
|
+
updateFields: [
|
|
329
|
+
{
|
|
330
|
+
field: 'enable',
|
|
331
|
+
settingId: 'hasBoxShadowBtn',
|
|
332
|
+
state: 'hover'
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
controlChangeTrigger: {
|
|
337
|
+
settings: [
|
|
338
|
+
{
|
|
339
|
+
condition: `boxShadowBtnV2.hover.enable === true`,
|
|
340
|
+
source: [
|
|
341
|
+
'boxShadowBtnV2',
|
|
342
|
+
'hasBoxShadowBtn'
|
|
343
|
+
],
|
|
344
|
+
action: {
|
|
345
|
+
controlId: 'hasBoxShadowBtn',
|
|
346
|
+
groupType: 'advanced',
|
|
347
|
+
controlType: 'advanced',
|
|
348
|
+
state: 'hover',
|
|
349
|
+
newValue: true
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
condition: `boxShadowBtnV2.hover.enable === false`,
|
|
354
|
+
source: [
|
|
355
|
+
'boxShadowBtnV2',
|
|
356
|
+
'hasBoxShadowBtn'
|
|
357
|
+
],
|
|
358
|
+
action: {
|
|
359
|
+
controlId: 'hasBoxShadowBtn',
|
|
360
|
+
groupType: 'advanced',
|
|
361
|
+
controlType: 'advanced',
|
|
362
|
+
state: 'hover',
|
|
363
|
+
newValue: false
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
options: {
|
|
368
|
+
noRecordHistory: true
|
|
369
|
+
}
|
|
370
|
+
}
|
|
307
371
|
}
|
|
308
|
-
|
|
309
|
-
|
|
372
|
+
]
|
|
373
|
+
}
|
|
310
374
|
},
|
|
311
375
|
{
|
|
312
376
|
controls: [
|
|
@@ -226,22 +226,20 @@ const SettingUIV2 = [
|
|
|
226
226
|
en: 'Shadow'
|
|
227
227
|
},
|
|
228
228
|
setting: {
|
|
229
|
-
id: 'shadow'
|
|
230
|
-
state: 'normal'
|
|
229
|
+
id: 'shadow'
|
|
231
230
|
},
|
|
232
231
|
options: {
|
|
233
232
|
updateFields: [
|
|
234
233
|
{
|
|
235
234
|
field: 'enable',
|
|
236
|
-
settingId: 'hasActiveShadow'
|
|
237
|
-
state: 'normal'
|
|
235
|
+
settingId: 'hasActiveShadow'
|
|
238
236
|
}
|
|
239
237
|
]
|
|
240
238
|
},
|
|
241
239
|
controlChangeTrigger: {
|
|
242
240
|
settings: [
|
|
243
241
|
{
|
|
244
|
-
condition: `shadow.
|
|
242
|
+
condition: `shadow.enable === true`,
|
|
245
243
|
source: [
|
|
246
244
|
'shadow',
|
|
247
245
|
'hasActiveShadow'
|
|
@@ -250,12 +248,11 @@ const SettingUIV2 = [
|
|
|
250
248
|
controlId: 'hasActiveShadow',
|
|
251
249
|
groupType: 'advanced',
|
|
252
250
|
controlType: 'advanced',
|
|
253
|
-
state: 'normal',
|
|
254
251
|
newValue: true
|
|
255
252
|
}
|
|
256
253
|
},
|
|
257
254
|
{
|
|
258
|
-
condition: `shadow.
|
|
255
|
+
condition: `shadow.enable === false`,
|
|
259
256
|
source: [
|
|
260
257
|
'shadow',
|
|
261
258
|
'hasActiveShadow'
|
|
@@ -264,7 +261,6 @@ const SettingUIV2 = [
|
|
|
264
261
|
controlId: 'hasActiveShadow',
|
|
265
262
|
groupType: 'advanced',
|
|
266
263
|
controlType: 'advanced',
|
|
267
|
-
state: 'normal',
|
|
268
264
|
newValue: false
|
|
269
265
|
}
|
|
270
266
|
}
|
|
@@ -10,7 +10,27 @@ const SettingUIV2 = [
|
|
|
10
10
|
setting: {
|
|
11
11
|
id: 'type'
|
|
12
12
|
},
|
|
13
|
-
layout: 'vertical'
|
|
13
|
+
layout: 'vertical',
|
|
14
|
+
controlChangeTrigger: {
|
|
15
|
+
settings: [
|
|
16
|
+
{
|
|
17
|
+
action: {
|
|
18
|
+
controlId: 'required',
|
|
19
|
+
newValue: false,
|
|
20
|
+
groupType: 'setting',
|
|
21
|
+
controlType: 'style'
|
|
22
|
+
},
|
|
23
|
+
condition: `type === 'hidden'`,
|
|
24
|
+
source: [
|
|
25
|
+
'required',
|
|
26
|
+
'type'
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
options: {
|
|
31
|
+
noRecordHistory: true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
14
34
|
}
|
|
15
35
|
]
|
|
16
36
|
},
|
|
@@ -751,6 +771,8 @@ const SettingUIV2 = [
|
|
|
751
771
|
type: 'combo',
|
|
752
772
|
isHideClear: true,
|
|
753
773
|
conditionDisplay: 'type === "hidden"',
|
|
774
|
+
iconName: 'polaris-text-block',
|
|
775
|
+
getValueFromSettingID: 'valueHidden',
|
|
754
776
|
controls: [
|
|
755
777
|
{
|
|
756
778
|
setting: {
|
|
@@ -766,7 +788,7 @@ const SettingUIV2 = [
|
|
|
766
788
|
label: {
|
|
767
789
|
en: 'Error message'
|
|
768
790
|
},
|
|
769
|
-
conditionDisplay: 'type
|
|
791
|
+
conditionDisplay: '["text", "textarea", "email"].includes(type) || (["checkbox", "radio", "dropdown"].includes(type) && required)',
|
|
770
792
|
controls: [
|
|
771
793
|
{
|
|
772
794
|
type: 'combo',
|
|
@@ -97,6 +97,105 @@ const SubmitButtonSettings = [
|
|
|
97
97
|
{
|
|
98
98
|
id: 'style',
|
|
99
99
|
controls: [
|
|
100
|
+
{
|
|
101
|
+
id: 'borderBtnV2',
|
|
102
|
+
type: 'border-v2',
|
|
103
|
+
devices: {
|
|
104
|
+
desktop: {
|
|
105
|
+
default: {
|
|
106
|
+
normal: {
|
|
107
|
+
borderType: 'none',
|
|
108
|
+
border: 'none',
|
|
109
|
+
borderWidth: '1px',
|
|
110
|
+
width: '1px 1px 1px 1px',
|
|
111
|
+
color: '#121212',
|
|
112
|
+
isCustom: true
|
|
113
|
+
},
|
|
114
|
+
hover: {
|
|
115
|
+
borderType: 'none',
|
|
116
|
+
border: 'none',
|
|
117
|
+
borderWidth: '1px',
|
|
118
|
+
width: '1px 1px 1px 1px',
|
|
119
|
+
color: '#121212',
|
|
120
|
+
isCustom: true
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
compoDefaultValue: {
|
|
126
|
+
desktop: {
|
|
127
|
+
default: {
|
|
128
|
+
normal: {
|
|
129
|
+
border: 'solid',
|
|
130
|
+
color: '#121212',
|
|
131
|
+
width: '1px',
|
|
132
|
+
borderWidth: '1px'
|
|
133
|
+
},
|
|
134
|
+
hover: {
|
|
135
|
+
border: 'solid',
|
|
136
|
+
color: '#121212',
|
|
137
|
+
width: '1px',
|
|
138
|
+
borderWidth: '1px'
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'roundedBtnV2',
|
|
146
|
+
type: 'corner-v2',
|
|
147
|
+
devices: {
|
|
148
|
+
desktop: {
|
|
149
|
+
default: {
|
|
150
|
+
normal: {
|
|
151
|
+
btrr: '0px',
|
|
152
|
+
bblr: '0px',
|
|
153
|
+
bbrr: '0px',
|
|
154
|
+
btlr: '0px',
|
|
155
|
+
radiusType: 'none'
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
compoDefaultValue: {
|
|
161
|
+
desktop: {
|
|
162
|
+
default: {
|
|
163
|
+
normal: {
|
|
164
|
+
btrr: '8px',
|
|
165
|
+
bblr: '8px',
|
|
166
|
+
bbrr: '8px',
|
|
167
|
+
btlr: '8px',
|
|
168
|
+
radiusType: 'rounded'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: 'boxShadowBtnV2',
|
|
176
|
+
type: 'shadow-v2',
|
|
177
|
+
devices: {
|
|
178
|
+
desktop: {
|
|
179
|
+
default: {
|
|
180
|
+
normal: {}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
compoDefaultValue: {
|
|
185
|
+
desktop: {
|
|
186
|
+
default: {
|
|
187
|
+
normal: {
|
|
188
|
+
type: 'shadow-1',
|
|
189
|
+
distance: '4px',
|
|
190
|
+
blur: '4px',
|
|
191
|
+
spread: '0px',
|
|
192
|
+
color: '#121212',
|
|
193
|
+
angle: 45
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
100
199
|
{
|
|
101
200
|
id: 'borderBtn',
|
|
102
201
|
type: 'border',
|
|
@@ -240,8 +339,8 @@ const SubmitButtonSettings = [
|
|
|
240
339
|
},
|
|
241
340
|
hiddenSetting: {
|
|
242
341
|
// color: true,
|
|
243
|
-
|
|
244
|
-
|
|
342
|
+
transform: true,
|
|
343
|
+
textAlign: true
|
|
245
344
|
},
|
|
246
345
|
ignoreReRender: true
|
|
247
346
|
},
|
|
@@ -408,10 +507,12 @@ const SubmitButtonSettings = [
|
|
|
408
507
|
},
|
|
409
508
|
{
|
|
410
509
|
id: 'iconSpacing',
|
|
411
|
-
type: 'input:
|
|
510
|
+
type: 'input:slider',
|
|
412
511
|
units: [
|
|
413
512
|
'px'
|
|
414
513
|
],
|
|
514
|
+
step: 1,
|
|
515
|
+
max: 40,
|
|
415
516
|
devices: {
|
|
416
517
|
desktop: {
|
|
417
518
|
default: '8px'
|
|
@@ -46,21 +46,6 @@ const SettingUIV2 = [
|
|
|
46
46
|
label: 'Full',
|
|
47
47
|
value: '100%',
|
|
48
48
|
showValue: true
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: 'Small',
|
|
52
|
-
value: '100px',
|
|
53
|
-
showValue: true
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
label: 'Medium',
|
|
57
|
-
value: '116px',
|
|
58
|
-
showValue: true
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: 'Large',
|
|
62
|
-
value: '132px',
|
|
63
|
-
showValue: true
|
|
64
49
|
}
|
|
65
50
|
]
|
|
66
51
|
},
|
|
@@ -86,21 +71,6 @@ const SettingUIV2 = [
|
|
|
86
71
|
label: 'Fit content',
|
|
87
72
|
value: 'Auto',
|
|
88
73
|
showValue: true
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: 'Small',
|
|
92
|
-
value: '28px',
|
|
93
|
-
showValue: true
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: 'Medium',
|
|
97
|
-
value: '36px',
|
|
98
|
-
showValue: true
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: 'Large',
|
|
102
|
-
value: '44px',
|
|
103
|
-
showValue: true
|
|
104
74
|
}
|
|
105
75
|
]
|
|
106
76
|
}
|
|
@@ -146,7 +116,7 @@ const SettingUIV2 = [
|
|
|
146
116
|
en: 'Border'
|
|
147
117
|
},
|
|
148
118
|
setting: {
|
|
149
|
-
id: '
|
|
119
|
+
id: 'borderBtnV2',
|
|
150
120
|
state: 'normal'
|
|
151
121
|
}
|
|
152
122
|
},
|
|
@@ -155,7 +125,7 @@ const SettingUIV2 = [
|
|
|
155
125
|
en: 'Corner'
|
|
156
126
|
},
|
|
157
127
|
setting: {
|
|
158
|
-
id: '
|
|
128
|
+
id: 'roundedBtnV2',
|
|
159
129
|
state: 'normal'
|
|
160
130
|
}
|
|
161
131
|
},
|
|
@@ -164,8 +134,52 @@ const SettingUIV2 = [
|
|
|
164
134
|
en: 'Shadow'
|
|
165
135
|
},
|
|
166
136
|
setting: {
|
|
167
|
-
id: '
|
|
137
|
+
id: 'boxShadowBtnV2',
|
|
168
138
|
state: 'normal'
|
|
139
|
+
},
|
|
140
|
+
options: {
|
|
141
|
+
updateFields: [
|
|
142
|
+
{
|
|
143
|
+
field: 'enable',
|
|
144
|
+
settingId: 'hasBoxShadowBtn',
|
|
145
|
+
state: 'normal'
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
controlChangeTrigger: {
|
|
150
|
+
settings: [
|
|
151
|
+
{
|
|
152
|
+
condition: `boxShadowBtnV2.normal.enable === true`,
|
|
153
|
+
source: [
|
|
154
|
+
'boxShadowBtnV2',
|
|
155
|
+
'hasBoxShadowBtn'
|
|
156
|
+
],
|
|
157
|
+
action: {
|
|
158
|
+
controlId: 'hasBoxShadowBtn',
|
|
159
|
+
groupType: 'advanced',
|
|
160
|
+
controlType: 'advanced',
|
|
161
|
+
state: 'normal',
|
|
162
|
+
newValue: true
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
condition: `boxShadowBtnV2.normal.enable === false`,
|
|
167
|
+
source: [
|
|
168
|
+
'boxShadowBtnV2',
|
|
169
|
+
'hasBoxShadowBtn'
|
|
170
|
+
],
|
|
171
|
+
action: {
|
|
172
|
+
controlId: 'hasBoxShadowBtn',
|
|
173
|
+
groupType: 'advanced',
|
|
174
|
+
controlType: 'advanced',
|
|
175
|
+
state: 'normal',
|
|
176
|
+
newValue: false
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
options: {
|
|
181
|
+
noRecordHistory: true
|
|
182
|
+
}
|
|
169
183
|
}
|
|
170
184
|
}
|
|
171
185
|
]
|
|
@@ -203,8 +217,9 @@ const SettingUIV2 = [
|
|
|
203
217
|
conditionDisplay: 'iconVisible == true'
|
|
204
218
|
},
|
|
205
219
|
{
|
|
220
|
+
type: 'control',
|
|
206
221
|
label: {
|
|
207
|
-
en: '
|
|
222
|
+
en: 'Gap'
|
|
208
223
|
},
|
|
209
224
|
setting: {
|
|
210
225
|
id: 'iconSpacing'
|
|
@@ -276,35 +291,84 @@ const SettingUIV2 = [
|
|
|
276
291
|
id: 'textColor',
|
|
277
292
|
state: 'hover'
|
|
278
293
|
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
moreSettings: {
|
|
297
|
+
type: 'collapse',
|
|
298
|
+
controls: [
|
|
299
|
+
{
|
|
300
|
+
label: {
|
|
301
|
+
en: 'Border'
|
|
302
|
+
},
|
|
303
|
+
setting: {
|
|
304
|
+
id: 'borderBtnV2',
|
|
305
|
+
state: 'hover'
|
|
306
|
+
}
|
|
292
307
|
},
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
308
|
+
{
|
|
309
|
+
label: {
|
|
310
|
+
en: 'Corner'
|
|
311
|
+
},
|
|
312
|
+
setting: {
|
|
313
|
+
id: 'roundedBtnV2',
|
|
314
|
+
state: 'hover'
|
|
315
|
+
}
|
|
301
316
|
},
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
317
|
+
{
|
|
318
|
+
label: {
|
|
319
|
+
en: 'Shadow'
|
|
320
|
+
},
|
|
321
|
+
setting: {
|
|
322
|
+
id: 'boxShadowBtnV2',
|
|
323
|
+
state: 'hover'
|
|
324
|
+
},
|
|
325
|
+
options: {
|
|
326
|
+
updateFields: [
|
|
327
|
+
{
|
|
328
|
+
field: 'enable',
|
|
329
|
+
settingId: 'hasBoxShadowBtn',
|
|
330
|
+
state: 'hover'
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
controlChangeTrigger: {
|
|
335
|
+
settings: [
|
|
336
|
+
{
|
|
337
|
+
condition: `boxShadowBtnV2.hover.enable === true`,
|
|
338
|
+
source: [
|
|
339
|
+
'boxShadowBtnV2',
|
|
340
|
+
'hasBoxShadowBtn'
|
|
341
|
+
],
|
|
342
|
+
action: {
|
|
343
|
+
controlId: 'hasBoxShadowBtn',
|
|
344
|
+
groupType: 'advanced',
|
|
345
|
+
controlType: 'advanced',
|
|
346
|
+
state: 'hover',
|
|
347
|
+
newValue: true
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
condition: `boxShadowBtnV2.hover.enable === false`,
|
|
352
|
+
source: [
|
|
353
|
+
'boxShadowBtnV2',
|
|
354
|
+
'hasBoxShadowBtn'
|
|
355
|
+
],
|
|
356
|
+
action: {
|
|
357
|
+
controlId: 'hasBoxShadowBtn',
|
|
358
|
+
groupType: 'advanced',
|
|
359
|
+
controlType: 'advanced',
|
|
360
|
+
state: 'hover',
|
|
361
|
+
newValue: false
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
options: {
|
|
366
|
+
noRecordHistory: true
|
|
367
|
+
}
|
|
368
|
+
}
|
|
305
369
|
}
|
|
306
|
-
|
|
307
|
-
|
|
370
|
+
]
|
|
371
|
+
}
|
|
308
372
|
},
|
|
309
373
|
{
|
|
310
374
|
controls: [
|
|
@@ -224,22 +224,20 @@ const SettingUIV2 = [
|
|
|
224
224
|
en: 'Shadow'
|
|
225
225
|
},
|
|
226
226
|
setting: {
|
|
227
|
-
id: 'shadow'
|
|
228
|
-
state: 'normal'
|
|
227
|
+
id: 'shadow'
|
|
229
228
|
},
|
|
230
229
|
options: {
|
|
231
230
|
updateFields: [
|
|
232
231
|
{
|
|
233
232
|
field: 'enable',
|
|
234
|
-
settingId: 'hasActiveShadow'
|
|
235
|
-
state: 'normal'
|
|
233
|
+
settingId: 'hasActiveShadow'
|
|
236
234
|
}
|
|
237
235
|
]
|
|
238
236
|
},
|
|
239
237
|
controlChangeTrigger: {
|
|
240
238
|
settings: [
|
|
241
239
|
{
|
|
242
|
-
condition: `shadow.
|
|
240
|
+
condition: `shadow.enable === true`,
|
|
243
241
|
source: [
|
|
244
242
|
'shadow',
|
|
245
243
|
'hasActiveShadow'
|
|
@@ -248,12 +246,11 @@ const SettingUIV2 = [
|
|
|
248
246
|
controlId: 'hasActiveShadow',
|
|
249
247
|
groupType: 'advanced',
|
|
250
248
|
controlType: 'advanced',
|
|
251
|
-
state: 'normal',
|
|
252
249
|
newValue: true
|
|
253
250
|
}
|
|
254
251
|
},
|
|
255
252
|
{
|
|
256
|
-
condition: `shadow.
|
|
253
|
+
condition: `shadow.enable === false`,
|
|
257
254
|
source: [
|
|
258
255
|
'shadow',
|
|
259
256
|
'hasActiveShadow'
|
|
@@ -262,7 +259,6 @@ const SettingUIV2 = [
|
|
|
262
259
|
controlId: 'hasActiveShadow',
|
|
263
260
|
groupType: 'advanced',
|
|
264
261
|
controlType: 'advanced',
|
|
265
|
-
state: 'normal',
|
|
266
262
|
newValue: false
|
|
267
263
|
}
|
|
268
264
|
}
|
|
@@ -8,7 +8,27 @@ const SettingUIV2 = [
|
|
|
8
8
|
setting: {
|
|
9
9
|
id: 'type'
|
|
10
10
|
},
|
|
11
|
-
layout: 'vertical'
|
|
11
|
+
layout: 'vertical',
|
|
12
|
+
controlChangeTrigger: {
|
|
13
|
+
settings: [
|
|
14
|
+
{
|
|
15
|
+
action: {
|
|
16
|
+
controlId: 'required',
|
|
17
|
+
newValue: false,
|
|
18
|
+
groupType: 'setting',
|
|
19
|
+
controlType: 'style'
|
|
20
|
+
},
|
|
21
|
+
condition: `type === 'hidden'`,
|
|
22
|
+
source: [
|
|
23
|
+
'required',
|
|
24
|
+
'type'
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
options: {
|
|
29
|
+
noRecordHistory: true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
12
32
|
}
|
|
13
33
|
]
|
|
14
34
|
},
|
|
@@ -749,6 +769,8 @@ const SettingUIV2 = [
|
|
|
749
769
|
type: 'combo',
|
|
750
770
|
isHideClear: true,
|
|
751
771
|
conditionDisplay: 'type === "hidden"',
|
|
772
|
+
iconName: 'polaris-text-block',
|
|
773
|
+
getValueFromSettingID: 'valueHidden',
|
|
752
774
|
controls: [
|
|
753
775
|
{
|
|
754
776
|
setting: {
|
|
@@ -764,7 +786,7 @@ const SettingUIV2 = [
|
|
|
764
786
|
label: {
|
|
765
787
|
en: 'Error message'
|
|
766
788
|
},
|
|
767
|
-
conditionDisplay: 'type
|
|
789
|
+
conditionDisplay: '["text", "textarea", "email"].includes(type) || (["checkbox", "radio", "dropdown"].includes(type) && required)',
|
|
768
790
|
controls: [
|
|
769
791
|
{
|
|
770
792
|
type: 'combo',
|