@gem-sdk/components 2.0.0-dev.463 → 2.0.0-dev.465
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/article/setting/configs/ArticleImage/settings.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +2 -6
- package/dist/cjs/article/setting/configs/ArticleTag/uiV2.js +15 -0
- package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +1 -1
- package/dist/cjs/estimate-delivery/setting/configs/settings.js +113 -6
- package/dist/cjs/estimate-delivery/setting/configs/uiV2.js +167 -21
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +6 -0
- package/dist/cjs/icon-list/setting/configs/ItemTemplate.js +3 -3
- package/dist/cjs/product/components/ProductViewMore/common/data.js +2 -1
- package/dist/cjs/product/setting/product-button/configs/settings.js +9 -4
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +2 -6
- package/dist/esm/article/setting/configs/ArticleTag/uiV2.js +15 -0
- package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +1 -1
- package/dist/esm/estimate-delivery/setting/configs/settings.js +113 -6
- package/dist/esm/estimate-delivery/setting/configs/uiV2.js +167 -21
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +6 -0
- package/dist/esm/icon-list/setting/configs/ItemTemplate.js +3 -3
- package/dist/esm/product/components/ProductViewMore/common/data.js +2 -1
- package/dist/esm/product/setting/product-button/configs/settings.js +9 -4
- package/dist/types/index.d.ts +4 -0
- package/package.json +4 -4
|
@@ -145,7 +145,7 @@ const uiV2 = [
|
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
type: 'control',
|
|
148
|
-
conditionDisplay: "linkArticle === 'scroll-to'",
|
|
148
|
+
conditionDisplay: "linkArticle === 'scroll-to' && enableLink == true",
|
|
149
149
|
layout: 'vertical',
|
|
150
150
|
setting: {
|
|
151
151
|
id: 'customURL'
|
|
@@ -180,11 +180,7 @@ const uiV2 = [
|
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
label: {
|
|
183
|
-
en: '
|
|
184
|
-
},
|
|
185
|
-
messageConfig: {
|
|
186
|
-
type: 'info',
|
|
187
|
-
message: 'You can optimize image size with our partnered app'
|
|
183
|
+
en: 'Quality'
|
|
188
184
|
},
|
|
189
185
|
controls: [
|
|
190
186
|
{
|
|
@@ -166,6 +166,18 @@ const EstimateDateSettings = [
|
|
|
166
166
|
type: 'size-setting',
|
|
167
167
|
devices: {
|
|
168
168
|
desktop: {
|
|
169
|
+
default: {
|
|
170
|
+
width: 'Auto',
|
|
171
|
+
padding: {
|
|
172
|
+
type: 'medium',
|
|
173
|
+
top: '12px',
|
|
174
|
+
bottom: '12px',
|
|
175
|
+
left: '24px',
|
|
176
|
+
right: '24px'
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
mobile: {
|
|
169
181
|
default: {
|
|
170
182
|
width: '100%'
|
|
171
183
|
}
|
|
@@ -175,17 +187,19 @@ const EstimateDateSettings = [
|
|
|
175
187
|
width: {
|
|
176
188
|
displayOptions: [
|
|
177
189
|
'full',
|
|
178
|
-
'auto'
|
|
179
|
-
|
|
180
|
-
|
|
190
|
+
'auto'
|
|
191
|
+
],
|
|
192
|
+
sizeConfig: {
|
|
193
|
+
small: '100px',
|
|
194
|
+
medium: '116px',
|
|
195
|
+
large: '132px'
|
|
196
|
+
}
|
|
181
197
|
}
|
|
182
198
|
},
|
|
183
199
|
hiddenSettings: [
|
|
184
200
|
'shape',
|
|
185
|
-
'height',
|
|
186
201
|
'gap',
|
|
187
|
-
'
|
|
188
|
-
'padding'
|
|
202
|
+
'height'
|
|
189
203
|
]
|
|
190
204
|
},
|
|
191
205
|
{
|
|
@@ -302,6 +316,99 @@ const EstimateDateSettings = [
|
|
|
302
316
|
textAlign: true,
|
|
303
317
|
textShadow: true
|
|
304
318
|
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
id: 'border',
|
|
322
|
+
type: 'border-v2',
|
|
323
|
+
devices: {
|
|
324
|
+
desktop: {
|
|
325
|
+
default: undefined
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
compoDefaultValue: {
|
|
329
|
+
desktop: {
|
|
330
|
+
default: {
|
|
331
|
+
normal: {
|
|
332
|
+
border: 'solid',
|
|
333
|
+
color: '#121212',
|
|
334
|
+
width: '1px',
|
|
335
|
+
borderWidth: '1px'
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: 'rounded',
|
|
343
|
+
type: 'corner-v2',
|
|
344
|
+
devices: {
|
|
345
|
+
desktop: {
|
|
346
|
+
default: {
|
|
347
|
+
normal: undefined
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
compoDefaultValue: {
|
|
352
|
+
desktop: {
|
|
353
|
+
default: {
|
|
354
|
+
normal: {
|
|
355
|
+
btrr: '8px',
|
|
356
|
+
bblr: '8px',
|
|
357
|
+
bbrr: '8px',
|
|
358
|
+
btlr: '8px',
|
|
359
|
+
radiusType: 'rounded'
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id: 'padding',
|
|
367
|
+
type: 'padding-v2',
|
|
368
|
+
devices: {
|
|
369
|
+
desktop: {
|
|
370
|
+
default: {
|
|
371
|
+
padding: {
|
|
372
|
+
type: 'small',
|
|
373
|
+
top: '4px',
|
|
374
|
+
left: '4px',
|
|
375
|
+
bottom: '4px',
|
|
376
|
+
right: '4px'
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
compoDefaultValue: {
|
|
382
|
+
desktop: {
|
|
383
|
+
default: {
|
|
384
|
+
padding: {
|
|
385
|
+
type: 'small',
|
|
386
|
+
top: '4px',
|
|
387
|
+
left: '4px',
|
|
388
|
+
bottom: '4px',
|
|
389
|
+
right: '4px'
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
id: 'boxShadow',
|
|
397
|
+
type: 'shadow-v2',
|
|
398
|
+
devices: {
|
|
399
|
+
desktop: {
|
|
400
|
+
default: {
|
|
401
|
+
normal: {}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
compoDefaultValue: {
|
|
406
|
+
desktop: {
|
|
407
|
+
default: {
|
|
408
|
+
normal: {}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
305
412
|
}
|
|
306
413
|
]
|
|
307
414
|
}
|
|
@@ -50,39 +50,24 @@ const SettingUIV2 = [
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
label: {
|
|
53
|
-
en: '
|
|
53
|
+
en: 'Date format'
|
|
54
54
|
},
|
|
55
55
|
controls: [
|
|
56
56
|
{
|
|
57
57
|
label: {
|
|
58
|
-
en: '
|
|
58
|
+
en: 'Format'
|
|
59
59
|
},
|
|
60
|
-
layout: 'vertical',
|
|
61
60
|
setting: {
|
|
62
|
-
id: '
|
|
61
|
+
id: 'typeFormat'
|
|
63
62
|
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
setting: {
|
|
67
|
-
id: 'typoCustom'
|
|
68
|
-
},
|
|
69
|
-
layout: 'vertical'
|
|
70
63
|
}
|
|
71
64
|
]
|
|
72
65
|
},
|
|
73
66
|
{
|
|
74
67
|
label: {
|
|
75
|
-
en: 'Date text
|
|
68
|
+
en: 'Date text'
|
|
76
69
|
},
|
|
77
70
|
controls: [
|
|
78
|
-
{
|
|
79
|
-
label: {
|
|
80
|
-
en: 'Date format'
|
|
81
|
-
},
|
|
82
|
-
setting: {
|
|
83
|
-
id: 'typeFormat'
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
71
|
{
|
|
87
72
|
conditionDisplay: `typeFormat === 'Custom'`,
|
|
88
73
|
label: {
|
|
@@ -102,17 +87,91 @@ const SettingUIV2 = [
|
|
|
102
87
|
},
|
|
103
88
|
{
|
|
104
89
|
label: {
|
|
105
|
-
en: '
|
|
90
|
+
en: 'Custom text'
|
|
106
91
|
},
|
|
107
92
|
controls: [
|
|
93
|
+
{
|
|
94
|
+
type: 'combo',
|
|
95
|
+
label: {
|
|
96
|
+
en: 'Content'
|
|
97
|
+
},
|
|
98
|
+
iconName: 'polaris-text-title',
|
|
99
|
+
fixedValue: 'Estimate delivery between',
|
|
100
|
+
getValueFromSettingID: 'customText',
|
|
101
|
+
isHideClear: true,
|
|
102
|
+
controls: [
|
|
103
|
+
{
|
|
104
|
+
label: {
|
|
105
|
+
en: 'Content'
|
|
106
|
+
},
|
|
107
|
+
layout: 'vertical',
|
|
108
|
+
setting: {
|
|
109
|
+
id: 'customText'
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
108
114
|
{
|
|
109
115
|
setting: {
|
|
110
|
-
id: '
|
|
116
|
+
id: 'typoCustom'
|
|
111
117
|
},
|
|
112
118
|
layout: 'vertical'
|
|
113
119
|
}
|
|
114
120
|
]
|
|
115
121
|
},
|
|
122
|
+
{
|
|
123
|
+
label: {
|
|
124
|
+
en: 'Size'
|
|
125
|
+
},
|
|
126
|
+
controls: [
|
|
127
|
+
{
|
|
128
|
+
id: 'Width',
|
|
129
|
+
label: {
|
|
130
|
+
en: 'Width'
|
|
131
|
+
},
|
|
132
|
+
controlConfig: {
|
|
133
|
+
id: 'width',
|
|
134
|
+
type: 'input',
|
|
135
|
+
label: 'Width',
|
|
136
|
+
units: [
|
|
137
|
+
'px',
|
|
138
|
+
'%'
|
|
139
|
+
],
|
|
140
|
+
hideUnit: false,
|
|
141
|
+
fallbackValue: 'Auto',
|
|
142
|
+
linkWithSetting: {
|
|
143
|
+
name: 'globalSize',
|
|
144
|
+
field: 'width'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
layout: 'horizontal'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: {
|
|
151
|
+
en: 'Padding'
|
|
152
|
+
},
|
|
153
|
+
controlConfig: {
|
|
154
|
+
id: 'padding',
|
|
155
|
+
type: 'padding-v2',
|
|
156
|
+
linkWithSetting: {
|
|
157
|
+
name: 'globalSize',
|
|
158
|
+
field: 'padding'
|
|
159
|
+
},
|
|
160
|
+
compoDefaultValue: {
|
|
161
|
+
desktop: {
|
|
162
|
+
default: {
|
|
163
|
+
type: 'medium',
|
|
164
|
+
top: '4px',
|
|
165
|
+
bottom: '4px',
|
|
166
|
+
left: '12px',
|
|
167
|
+
right: '12px'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
116
175
|
{
|
|
117
176
|
label: {
|
|
118
177
|
en: 'Background'
|
|
@@ -146,6 +205,93 @@ const SettingUIV2 = [
|
|
|
146
205
|
}
|
|
147
206
|
]
|
|
148
207
|
},
|
|
208
|
+
{
|
|
209
|
+
label: {
|
|
210
|
+
en: 'Shape',
|
|
211
|
+
cn: '形状',
|
|
212
|
+
es: 'Forma'
|
|
213
|
+
},
|
|
214
|
+
conditionDisplay: 'pageType != "POST_PURCHASE"',
|
|
215
|
+
controls: [
|
|
216
|
+
{
|
|
217
|
+
label: {
|
|
218
|
+
en: 'Border',
|
|
219
|
+
cn: '边界',
|
|
220
|
+
es: 'Borde'
|
|
221
|
+
},
|
|
222
|
+
setting: {
|
|
223
|
+
id: 'border',
|
|
224
|
+
state: 'normal'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: {
|
|
229
|
+
en: 'Corner',
|
|
230
|
+
cn: '角落',
|
|
231
|
+
es: 'Esquina'
|
|
232
|
+
},
|
|
233
|
+
setting: {
|
|
234
|
+
id: 'rounded',
|
|
235
|
+
state: 'normal'
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: {
|
|
240
|
+
en: 'Shadow',
|
|
241
|
+
cn: '阴影',
|
|
242
|
+
es: 'Sombra'
|
|
243
|
+
},
|
|
244
|
+
setting: {
|
|
245
|
+
id: 'boxShadow',
|
|
246
|
+
state: 'normal'
|
|
247
|
+
},
|
|
248
|
+
options: {
|
|
249
|
+
updateFields: [
|
|
250
|
+
{
|
|
251
|
+
field: 'enable',
|
|
252
|
+
settingId: 'advanced.hasBoxShadow',
|
|
253
|
+
state: 'normal'
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
controlChangeTrigger: {
|
|
258
|
+
settings: [
|
|
259
|
+
{
|
|
260
|
+
condition: `boxShadow.normal.enable === true`,
|
|
261
|
+
source: [
|
|
262
|
+
'boxShadow',
|
|
263
|
+
'hasBoxShadow'
|
|
264
|
+
],
|
|
265
|
+
action: {
|
|
266
|
+
controlId: 'hasBoxShadow',
|
|
267
|
+
groupType: 'advanced',
|
|
268
|
+
controlType: 'advanced',
|
|
269
|
+
state: 'normal',
|
|
270
|
+
newValue: true
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
condition: `boxShadow.normal.enable === false`,
|
|
275
|
+
source: [
|
|
276
|
+
'boxShadow',
|
|
277
|
+
'hasBoxShadow'
|
|
278
|
+
],
|
|
279
|
+
action: {
|
|
280
|
+
controlId: 'hasBoxShadow',
|
|
281
|
+
groupType: 'advanced',
|
|
282
|
+
controlType: 'advanced',
|
|
283
|
+
state: 'normal',
|
|
284
|
+
newValue: false
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
options: {
|
|
289
|
+
noRecordHistory: true
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
149
295
|
{
|
|
150
296
|
controls: [
|
|
151
297
|
{
|
|
@@ -139,13 +139,13 @@ const itemControlTemplateCol = {
|
|
|
139
139
|
childrens: [
|
|
140
140
|
{
|
|
141
141
|
tag: 'Text',
|
|
142
|
-
label: 'Text',
|
|
142
|
+
label: 'Text block',
|
|
143
143
|
settings: {
|
|
144
144
|
text: 'Your custom text goes here',
|
|
145
|
-
htmlTag: '
|
|
145
|
+
htmlTag: 'p'
|
|
146
146
|
},
|
|
147
147
|
styles: {
|
|
148
|
-
|
|
148
|
+
typo: {
|
|
149
149
|
type: 'paragraph-1'
|
|
150
150
|
},
|
|
151
151
|
textAlign: {
|
|
@@ -745,8 +745,7 @@ const ProductButtonSettings = [
|
|
|
745
745
|
}
|
|
746
746
|
},
|
|
747
747
|
hiddenSetting: {
|
|
748
|
-
textAlign: true
|
|
749
|
-
transform: true
|
|
748
|
+
textAlign: true
|
|
750
749
|
},
|
|
751
750
|
ignoreReRender: true
|
|
752
751
|
},
|
|
@@ -909,7 +908,10 @@ const ProductButtonSettings = [
|
|
|
909
908
|
color: 'success'
|
|
910
909
|
}
|
|
911
910
|
},
|
|
912
|
-
ignoreReRender: true
|
|
911
|
+
ignoreReRender: true,
|
|
912
|
+
hiddenSetting: {
|
|
913
|
+
textAlign: true
|
|
914
|
+
}
|
|
913
915
|
},
|
|
914
916
|
{
|
|
915
917
|
id: 'successColor',
|
|
@@ -934,7 +936,10 @@ const ProductButtonSettings = [
|
|
|
934
936
|
color: 'error'
|
|
935
937
|
}
|
|
936
938
|
},
|
|
937
|
-
ignoreReRender: true
|
|
939
|
+
ignoreReRender: true,
|
|
940
|
+
hiddenSetting: {
|
|
941
|
+
textAlign: true
|
|
942
|
+
}
|
|
938
943
|
},
|
|
939
944
|
{
|
|
940
945
|
id: 'errorColor',
|
|
@@ -143,7 +143,7 @@ const uiV2 = [
|
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
type: 'control',
|
|
146
|
-
conditionDisplay: "linkArticle === 'scroll-to'",
|
|
146
|
+
conditionDisplay: "linkArticle === 'scroll-to' && enableLink == true",
|
|
147
147
|
layout: 'vertical',
|
|
148
148
|
setting: {
|
|
149
149
|
id: 'customURL'
|
|
@@ -178,11 +178,7 @@ const uiV2 = [
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
label: {
|
|
181
|
-
en: '
|
|
182
|
-
},
|
|
183
|
-
messageConfig: {
|
|
184
|
-
type: 'info',
|
|
185
|
-
message: 'You can optimize image size with our partnered app'
|
|
181
|
+
en: 'Quality'
|
|
186
182
|
},
|
|
187
183
|
controls: [
|
|
188
184
|
{
|
|
@@ -164,6 +164,18 @@ const EstimateDateSettings = [
|
|
|
164
164
|
type: 'size-setting',
|
|
165
165
|
devices: {
|
|
166
166
|
desktop: {
|
|
167
|
+
default: {
|
|
168
|
+
width: 'Auto',
|
|
169
|
+
padding: {
|
|
170
|
+
type: 'medium',
|
|
171
|
+
top: '12px',
|
|
172
|
+
bottom: '12px',
|
|
173
|
+
left: '24px',
|
|
174
|
+
right: '24px'
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
mobile: {
|
|
167
179
|
default: {
|
|
168
180
|
width: '100%'
|
|
169
181
|
}
|
|
@@ -173,17 +185,19 @@ const EstimateDateSettings = [
|
|
|
173
185
|
width: {
|
|
174
186
|
displayOptions: [
|
|
175
187
|
'full',
|
|
176
|
-
'auto'
|
|
177
|
-
|
|
178
|
-
|
|
188
|
+
'auto'
|
|
189
|
+
],
|
|
190
|
+
sizeConfig: {
|
|
191
|
+
small: '100px',
|
|
192
|
+
medium: '116px',
|
|
193
|
+
large: '132px'
|
|
194
|
+
}
|
|
179
195
|
}
|
|
180
196
|
},
|
|
181
197
|
hiddenSettings: [
|
|
182
198
|
'shape',
|
|
183
|
-
'height',
|
|
184
199
|
'gap',
|
|
185
|
-
'
|
|
186
|
-
'padding'
|
|
200
|
+
'height'
|
|
187
201
|
]
|
|
188
202
|
},
|
|
189
203
|
{
|
|
@@ -300,6 +314,99 @@ const EstimateDateSettings = [
|
|
|
300
314
|
textAlign: true,
|
|
301
315
|
textShadow: true
|
|
302
316
|
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: 'border',
|
|
320
|
+
type: 'border-v2',
|
|
321
|
+
devices: {
|
|
322
|
+
desktop: {
|
|
323
|
+
default: undefined
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
compoDefaultValue: {
|
|
327
|
+
desktop: {
|
|
328
|
+
default: {
|
|
329
|
+
normal: {
|
|
330
|
+
border: 'solid',
|
|
331
|
+
color: '#121212',
|
|
332
|
+
width: '1px',
|
|
333
|
+
borderWidth: '1px'
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
id: 'rounded',
|
|
341
|
+
type: 'corner-v2',
|
|
342
|
+
devices: {
|
|
343
|
+
desktop: {
|
|
344
|
+
default: {
|
|
345
|
+
normal: undefined
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
compoDefaultValue: {
|
|
350
|
+
desktop: {
|
|
351
|
+
default: {
|
|
352
|
+
normal: {
|
|
353
|
+
btrr: '8px',
|
|
354
|
+
bblr: '8px',
|
|
355
|
+
bbrr: '8px',
|
|
356
|
+
btlr: '8px',
|
|
357
|
+
radiusType: 'rounded'
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: 'padding',
|
|
365
|
+
type: 'padding-v2',
|
|
366
|
+
devices: {
|
|
367
|
+
desktop: {
|
|
368
|
+
default: {
|
|
369
|
+
padding: {
|
|
370
|
+
type: 'small',
|
|
371
|
+
top: '4px',
|
|
372
|
+
left: '4px',
|
|
373
|
+
bottom: '4px',
|
|
374
|
+
right: '4px'
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
compoDefaultValue: {
|
|
380
|
+
desktop: {
|
|
381
|
+
default: {
|
|
382
|
+
padding: {
|
|
383
|
+
type: 'small',
|
|
384
|
+
top: '4px',
|
|
385
|
+
left: '4px',
|
|
386
|
+
bottom: '4px',
|
|
387
|
+
right: '4px'
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
id: 'boxShadow',
|
|
395
|
+
type: 'shadow-v2',
|
|
396
|
+
devices: {
|
|
397
|
+
desktop: {
|
|
398
|
+
default: {
|
|
399
|
+
normal: {}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
compoDefaultValue: {
|
|
404
|
+
desktop: {
|
|
405
|
+
default: {
|
|
406
|
+
normal: {}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
303
410
|
}
|
|
304
411
|
]
|
|
305
412
|
}
|
|
@@ -48,39 +48,24 @@ const SettingUIV2 = [
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
label: {
|
|
51
|
-
en: '
|
|
51
|
+
en: 'Date format'
|
|
52
52
|
},
|
|
53
53
|
controls: [
|
|
54
54
|
{
|
|
55
55
|
label: {
|
|
56
|
-
en: '
|
|
56
|
+
en: 'Format'
|
|
57
57
|
},
|
|
58
|
-
layout: 'vertical',
|
|
59
58
|
setting: {
|
|
60
|
-
id: '
|
|
59
|
+
id: 'typeFormat'
|
|
61
60
|
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
setting: {
|
|
65
|
-
id: 'typoCustom'
|
|
66
|
-
},
|
|
67
|
-
layout: 'vertical'
|
|
68
61
|
}
|
|
69
62
|
]
|
|
70
63
|
},
|
|
71
64
|
{
|
|
72
65
|
label: {
|
|
73
|
-
en: 'Date text
|
|
66
|
+
en: 'Date text'
|
|
74
67
|
},
|
|
75
68
|
controls: [
|
|
76
|
-
{
|
|
77
|
-
label: {
|
|
78
|
-
en: 'Date format'
|
|
79
|
-
},
|
|
80
|
-
setting: {
|
|
81
|
-
id: 'typeFormat'
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
69
|
{
|
|
85
70
|
conditionDisplay: `typeFormat === 'Custom'`,
|
|
86
71
|
label: {
|
|
@@ -100,17 +85,91 @@ const SettingUIV2 = [
|
|
|
100
85
|
},
|
|
101
86
|
{
|
|
102
87
|
label: {
|
|
103
|
-
en: '
|
|
88
|
+
en: 'Custom text'
|
|
104
89
|
},
|
|
105
90
|
controls: [
|
|
91
|
+
{
|
|
92
|
+
type: 'combo',
|
|
93
|
+
label: {
|
|
94
|
+
en: 'Content'
|
|
95
|
+
},
|
|
96
|
+
iconName: 'polaris-text-title',
|
|
97
|
+
fixedValue: 'Estimate delivery between',
|
|
98
|
+
getValueFromSettingID: 'customText',
|
|
99
|
+
isHideClear: true,
|
|
100
|
+
controls: [
|
|
101
|
+
{
|
|
102
|
+
label: {
|
|
103
|
+
en: 'Content'
|
|
104
|
+
},
|
|
105
|
+
layout: 'vertical',
|
|
106
|
+
setting: {
|
|
107
|
+
id: 'customText'
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
106
112
|
{
|
|
107
113
|
setting: {
|
|
108
|
-
id: '
|
|
114
|
+
id: 'typoCustom'
|
|
109
115
|
},
|
|
110
116
|
layout: 'vertical'
|
|
111
117
|
}
|
|
112
118
|
]
|
|
113
119
|
},
|
|
120
|
+
{
|
|
121
|
+
label: {
|
|
122
|
+
en: 'Size'
|
|
123
|
+
},
|
|
124
|
+
controls: [
|
|
125
|
+
{
|
|
126
|
+
id: 'Width',
|
|
127
|
+
label: {
|
|
128
|
+
en: 'Width'
|
|
129
|
+
},
|
|
130
|
+
controlConfig: {
|
|
131
|
+
id: 'width',
|
|
132
|
+
type: 'input',
|
|
133
|
+
label: 'Width',
|
|
134
|
+
units: [
|
|
135
|
+
'px',
|
|
136
|
+
'%'
|
|
137
|
+
],
|
|
138
|
+
hideUnit: false,
|
|
139
|
+
fallbackValue: 'Auto',
|
|
140
|
+
linkWithSetting: {
|
|
141
|
+
name: 'globalSize',
|
|
142
|
+
field: 'width'
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
layout: 'horizontal'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: {
|
|
149
|
+
en: 'Padding'
|
|
150
|
+
},
|
|
151
|
+
controlConfig: {
|
|
152
|
+
id: 'padding',
|
|
153
|
+
type: 'padding-v2',
|
|
154
|
+
linkWithSetting: {
|
|
155
|
+
name: 'globalSize',
|
|
156
|
+
field: 'padding'
|
|
157
|
+
},
|
|
158
|
+
compoDefaultValue: {
|
|
159
|
+
desktop: {
|
|
160
|
+
default: {
|
|
161
|
+
type: 'medium',
|
|
162
|
+
top: '4px',
|
|
163
|
+
bottom: '4px',
|
|
164
|
+
left: '12px',
|
|
165
|
+
right: '12px'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
114
173
|
{
|
|
115
174
|
label: {
|
|
116
175
|
en: 'Background'
|
|
@@ -144,6 +203,93 @@ const SettingUIV2 = [
|
|
|
144
203
|
}
|
|
145
204
|
]
|
|
146
205
|
},
|
|
206
|
+
{
|
|
207
|
+
label: {
|
|
208
|
+
en: 'Shape',
|
|
209
|
+
cn: '形状',
|
|
210
|
+
es: 'Forma'
|
|
211
|
+
},
|
|
212
|
+
conditionDisplay: 'pageType != "POST_PURCHASE"',
|
|
213
|
+
controls: [
|
|
214
|
+
{
|
|
215
|
+
label: {
|
|
216
|
+
en: 'Border',
|
|
217
|
+
cn: '边界',
|
|
218
|
+
es: 'Borde'
|
|
219
|
+
},
|
|
220
|
+
setting: {
|
|
221
|
+
id: 'border',
|
|
222
|
+
state: 'normal'
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
label: {
|
|
227
|
+
en: 'Corner',
|
|
228
|
+
cn: '角落',
|
|
229
|
+
es: 'Esquina'
|
|
230
|
+
},
|
|
231
|
+
setting: {
|
|
232
|
+
id: 'rounded',
|
|
233
|
+
state: 'normal'
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
label: {
|
|
238
|
+
en: 'Shadow',
|
|
239
|
+
cn: '阴影',
|
|
240
|
+
es: 'Sombra'
|
|
241
|
+
},
|
|
242
|
+
setting: {
|
|
243
|
+
id: 'boxShadow',
|
|
244
|
+
state: 'normal'
|
|
245
|
+
},
|
|
246
|
+
options: {
|
|
247
|
+
updateFields: [
|
|
248
|
+
{
|
|
249
|
+
field: 'enable',
|
|
250
|
+
settingId: 'advanced.hasBoxShadow',
|
|
251
|
+
state: 'normal'
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
controlChangeTrigger: {
|
|
256
|
+
settings: [
|
|
257
|
+
{
|
|
258
|
+
condition: `boxShadow.normal.enable === true`,
|
|
259
|
+
source: [
|
|
260
|
+
'boxShadow',
|
|
261
|
+
'hasBoxShadow'
|
|
262
|
+
],
|
|
263
|
+
action: {
|
|
264
|
+
controlId: 'hasBoxShadow',
|
|
265
|
+
groupType: 'advanced',
|
|
266
|
+
controlType: 'advanced',
|
|
267
|
+
state: 'normal',
|
|
268
|
+
newValue: true
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
condition: `boxShadow.normal.enable === false`,
|
|
273
|
+
source: [
|
|
274
|
+
'boxShadow',
|
|
275
|
+
'hasBoxShadow'
|
|
276
|
+
],
|
|
277
|
+
action: {
|
|
278
|
+
controlId: 'hasBoxShadow',
|
|
279
|
+
groupType: 'advanced',
|
|
280
|
+
controlType: 'advanced',
|
|
281
|
+
state: 'normal',
|
|
282
|
+
newValue: false
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
options: {
|
|
287
|
+
noRecordHistory: true
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
147
293
|
{
|
|
148
294
|
controls: [
|
|
149
295
|
{
|
|
@@ -137,13 +137,13 @@ const itemControlTemplateCol = {
|
|
|
137
137
|
childrens: [
|
|
138
138
|
{
|
|
139
139
|
tag: 'Text',
|
|
140
|
-
label: 'Text',
|
|
140
|
+
label: 'Text block',
|
|
141
141
|
settings: {
|
|
142
142
|
text: 'Your custom text goes here',
|
|
143
|
-
htmlTag: '
|
|
143
|
+
htmlTag: 'p'
|
|
144
144
|
},
|
|
145
145
|
styles: {
|
|
146
|
-
|
|
146
|
+
typo: {
|
|
147
147
|
type: 'paragraph-1'
|
|
148
148
|
},
|
|
149
149
|
textAlign: {
|
|
@@ -743,8 +743,7 @@ const ProductButtonSettings = [
|
|
|
743
743
|
}
|
|
744
744
|
},
|
|
745
745
|
hiddenSetting: {
|
|
746
|
-
textAlign: true
|
|
747
|
-
transform: true
|
|
746
|
+
textAlign: true
|
|
748
747
|
},
|
|
749
748
|
ignoreReRender: true
|
|
750
749
|
},
|
|
@@ -907,7 +906,10 @@ const ProductButtonSettings = [
|
|
|
907
906
|
color: 'success'
|
|
908
907
|
}
|
|
909
908
|
},
|
|
910
|
-
ignoreReRender: true
|
|
909
|
+
ignoreReRender: true,
|
|
910
|
+
hiddenSetting: {
|
|
911
|
+
textAlign: true
|
|
912
|
+
}
|
|
911
913
|
},
|
|
912
914
|
{
|
|
913
915
|
id: 'successColor',
|
|
@@ -932,7 +934,10 @@ const ProductButtonSettings = [
|
|
|
932
934
|
color: 'error'
|
|
933
935
|
}
|
|
934
936
|
},
|
|
935
|
-
ignoreReRender: true
|
|
937
|
+
ignoreReRender: true,
|
|
938
|
+
hiddenSetting: {
|
|
939
|
+
textAlign: true
|
|
940
|
+
}
|
|
936
941
|
},
|
|
937
942
|
{
|
|
938
943
|
id: 'errorColor',
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1446,6 +1446,10 @@ type EstimateDateProps = BasePropsWrap<{
|
|
|
1446
1446
|
hasTextShadow?: StateProp<boolean>;
|
|
1447
1447
|
textShadow?: StateProp<ShadowProps$1>;
|
|
1448
1448
|
align?: ObjectDevices$1<AlignProp>;
|
|
1449
|
+
padding?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1450
|
+
border?: ObjectDevices$1<StateProp<Border>>;
|
|
1451
|
+
rounded?: ObjectDevices$1<StateProp<CornerRadius>>;
|
|
1452
|
+
boxShadow?: ObjectDevices$1<StateProp<ShadowProps$1>>;
|
|
1449
1453
|
}> & Omit<React.ComponentPropsWithoutRef<'h1'>, 'children'> & {
|
|
1450
1454
|
children: React.ReactNode;
|
|
1451
1455
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.465",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
27
|
-
"@gem-sdk/styles": "2.0.0-dev.
|
|
28
|
-
"@gem-sdk/system": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.464",
|
|
27
|
+
"@gem-sdk/styles": "2.0.0-dev.464",
|
|
28
|
+
"@gem-sdk/system": "2.0.0-dev.464",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|