@gem-sdk/components 2.0.0-dev.576 → 2.0.0-dev.578
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/ArticleReadMore/settings.js +48 -51
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +19 -25
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +6 -23
- package/dist/cjs/tab/setting/configs/settings.js +1 -4
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +48 -51
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +19 -25
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +6 -23
- package/dist/esm/tab/setting/configs/settings.js +1 -4
- package/package.json +1 -1
|
@@ -175,6 +175,53 @@ const ArticleReadMoreSettings = [
|
|
|
175
175
|
default: 'div'
|
|
176
176
|
}
|
|
177
177
|
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: 'background',
|
|
181
|
+
type: 'background-media',
|
|
182
|
+
ignoreReRender: true,
|
|
183
|
+
showVideo: false,
|
|
184
|
+
devices: {
|
|
185
|
+
desktop: {
|
|
186
|
+
default: {
|
|
187
|
+
type: 'color',
|
|
188
|
+
color: 'transparent',
|
|
189
|
+
image: {
|
|
190
|
+
src: '',
|
|
191
|
+
width: 0,
|
|
192
|
+
height: 0
|
|
193
|
+
},
|
|
194
|
+
size: 'cover',
|
|
195
|
+
position: {
|
|
196
|
+
x: 50,
|
|
197
|
+
y: 50
|
|
198
|
+
},
|
|
199
|
+
repeat: 'no-repeat',
|
|
200
|
+
attachment: 'scroll'
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
compoDefaultValue: {
|
|
205
|
+
desktop: {
|
|
206
|
+
default: {
|
|
207
|
+
type: 'color',
|
|
208
|
+
color: 'brand',
|
|
209
|
+
image: {
|
|
210
|
+
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
211
|
+
width: 1200,
|
|
212
|
+
height: 480
|
|
213
|
+
},
|
|
214
|
+
size: 'cover',
|
|
215
|
+
position: {
|
|
216
|
+
x: 50,
|
|
217
|
+
y: 50
|
|
218
|
+
},
|
|
219
|
+
repeat: 'no-repeat',
|
|
220
|
+
attachment: 'scroll',
|
|
221
|
+
preload: false
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
178
225
|
}
|
|
179
226
|
]
|
|
180
227
|
},
|
|
@@ -261,53 +308,6 @@ const ArticleReadMoreSettings = [
|
|
|
261
308
|
}
|
|
262
309
|
}
|
|
263
310
|
},
|
|
264
|
-
{
|
|
265
|
-
id: 'background',
|
|
266
|
-
type: 'background-media',
|
|
267
|
-
ignoreReRender: true,
|
|
268
|
-
showVideo: false,
|
|
269
|
-
devices: {
|
|
270
|
-
desktop: {
|
|
271
|
-
default: {
|
|
272
|
-
type: 'color',
|
|
273
|
-
color: 'transparent',
|
|
274
|
-
image: {
|
|
275
|
-
src: '',
|
|
276
|
-
width: 0,
|
|
277
|
-
height: 0
|
|
278
|
-
},
|
|
279
|
-
size: 'cover',
|
|
280
|
-
position: {
|
|
281
|
-
x: 50,
|
|
282
|
-
y: 50
|
|
283
|
-
},
|
|
284
|
-
repeat: 'no-repeat',
|
|
285
|
-
attachment: 'scroll'
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
compoDefaultValue: {
|
|
290
|
-
desktop: {
|
|
291
|
-
default: {
|
|
292
|
-
type: 'color',
|
|
293
|
-
color: 'brand',
|
|
294
|
-
image: {
|
|
295
|
-
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
296
|
-
width: 1200,
|
|
297
|
-
height: 480
|
|
298
|
-
},
|
|
299
|
-
size: 'cover',
|
|
300
|
-
position: {
|
|
301
|
-
x: 50,
|
|
302
|
-
y: 50
|
|
303
|
-
},
|
|
304
|
-
repeat: 'no-repeat',
|
|
305
|
-
attachment: 'scroll',
|
|
306
|
-
preload: false
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
311
|
{
|
|
312
312
|
id: 'backgroundColorV2',
|
|
313
313
|
type: 'color-picker-v2',
|
|
@@ -765,10 +765,7 @@ const ArticleReadMoreSettings = [
|
|
|
765
765
|
color: 'text-3'
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
|
-
ignoreReRender: true
|
|
769
|
-
hiddenSetting: {
|
|
770
|
-
textAlign: true
|
|
771
|
-
}
|
|
768
|
+
ignoreReRender: true
|
|
772
769
|
},
|
|
773
770
|
{
|
|
774
771
|
id: 'alignText',
|
|
@@ -351,30 +351,9 @@ const uiV2 = [
|
|
|
351
351
|
conditionDisplay: `readMoreType !== 'text' && enableTextStyle == true`,
|
|
352
352
|
options: {
|
|
353
353
|
hideLabel: true,
|
|
354
|
-
fullWidth: true
|
|
355
|
-
updateFields: [
|
|
356
|
-
{
|
|
357
|
-
field: 'attrs.textAlign',
|
|
358
|
-
settingId: 'textAlign'
|
|
359
|
-
}
|
|
360
|
-
]
|
|
354
|
+
fullWidth: true
|
|
361
355
|
},
|
|
362
|
-
layout: 'vertical'
|
|
363
|
-
controlChangeTrigger: {
|
|
364
|
-
settings: [
|
|
365
|
-
{
|
|
366
|
-
action: {
|
|
367
|
-
controlId: 'textAlign',
|
|
368
|
-
valueFromField: 'attrs.textAlign',
|
|
369
|
-
groupType: 'style',
|
|
370
|
-
controlType: 'style'
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
],
|
|
374
|
-
options: {
|
|
375
|
-
noRecordHistory: true
|
|
376
|
-
}
|
|
377
|
-
}
|
|
356
|
+
layout: 'vertical'
|
|
378
357
|
}
|
|
379
358
|
]
|
|
380
359
|
},
|
|
@@ -419,9 +398,14 @@ const uiV2 = [
|
|
|
419
398
|
hideLabel: true,
|
|
420
399
|
fullWidth: true,
|
|
421
400
|
updateFields: [
|
|
401
|
+
{
|
|
402
|
+
field: 'attrs.color',
|
|
403
|
+
settingId: 'textColorTextState',
|
|
404
|
+
state: 'normal'
|
|
405
|
+
},
|
|
422
406
|
{
|
|
423
407
|
field: 'attrs.textAlign',
|
|
424
|
-
settingId: '
|
|
408
|
+
settingId: 'alignText'
|
|
425
409
|
}
|
|
426
410
|
]
|
|
427
411
|
},
|
|
@@ -430,11 +414,21 @@ const uiV2 = [
|
|
|
430
414
|
settings: [
|
|
431
415
|
{
|
|
432
416
|
action: {
|
|
433
|
-
controlId: '
|
|
417
|
+
controlId: 'alignText',
|
|
434
418
|
valueFromField: 'attrs.textAlign',
|
|
435
419
|
groupType: 'style',
|
|
436
420
|
controlType: 'style'
|
|
437
421
|
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
action: {
|
|
425
|
+
controlId: 'textColorTextState',
|
|
426
|
+
valueFromField: 'attrs.color',
|
|
427
|
+
groupType: 'style',
|
|
428
|
+
controlType: 'style',
|
|
429
|
+
removeDevice: true,
|
|
430
|
+
state: 'normal'
|
|
431
|
+
}
|
|
438
432
|
}
|
|
439
433
|
],
|
|
440
434
|
options: {
|
|
@@ -125,30 +125,13 @@ const ControlUIV2 = [
|
|
|
125
125
|
setting: {
|
|
126
126
|
id: 'iconItemColor'
|
|
127
127
|
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
groupType: 'setting',
|
|
135
|
-
controlType: 'setting',
|
|
136
|
-
state: 'normal'
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
options: {
|
|
141
|
-
noRecordHistory: true
|
|
128
|
+
controlConfig: {
|
|
129
|
+
id: 'icon-radio-color',
|
|
130
|
+
type: 'color-picker-v2',
|
|
131
|
+
linkWithSetting: {
|
|
132
|
+
name: 'iconColor',
|
|
133
|
+
field: 'normal'
|
|
142
134
|
}
|
|
143
|
-
},
|
|
144
|
-
options: {
|
|
145
|
-
updateFields: [
|
|
146
|
-
{
|
|
147
|
-
field: 'iconItemColor',
|
|
148
|
-
settingId: 'iconColor',
|
|
149
|
-
state: 'normal'
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
135
|
}
|
|
153
136
|
},
|
|
154
137
|
{
|
|
@@ -173,6 +173,53 @@ const ArticleReadMoreSettings = [
|
|
|
173
173
|
default: 'div'
|
|
174
174
|
}
|
|
175
175
|
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: 'background',
|
|
179
|
+
type: 'background-media',
|
|
180
|
+
ignoreReRender: true,
|
|
181
|
+
showVideo: false,
|
|
182
|
+
devices: {
|
|
183
|
+
desktop: {
|
|
184
|
+
default: {
|
|
185
|
+
type: 'color',
|
|
186
|
+
color: 'transparent',
|
|
187
|
+
image: {
|
|
188
|
+
src: '',
|
|
189
|
+
width: 0,
|
|
190
|
+
height: 0
|
|
191
|
+
},
|
|
192
|
+
size: 'cover',
|
|
193
|
+
position: {
|
|
194
|
+
x: 50,
|
|
195
|
+
y: 50
|
|
196
|
+
},
|
|
197
|
+
repeat: 'no-repeat',
|
|
198
|
+
attachment: 'scroll'
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
compoDefaultValue: {
|
|
203
|
+
desktop: {
|
|
204
|
+
default: {
|
|
205
|
+
type: 'color',
|
|
206
|
+
color: 'brand',
|
|
207
|
+
image: {
|
|
208
|
+
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
209
|
+
width: 1200,
|
|
210
|
+
height: 480
|
|
211
|
+
},
|
|
212
|
+
size: 'cover',
|
|
213
|
+
position: {
|
|
214
|
+
x: 50,
|
|
215
|
+
y: 50
|
|
216
|
+
},
|
|
217
|
+
repeat: 'no-repeat',
|
|
218
|
+
attachment: 'scroll',
|
|
219
|
+
preload: false
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
176
223
|
}
|
|
177
224
|
]
|
|
178
225
|
},
|
|
@@ -259,53 +306,6 @@ const ArticleReadMoreSettings = [
|
|
|
259
306
|
}
|
|
260
307
|
}
|
|
261
308
|
},
|
|
262
|
-
{
|
|
263
|
-
id: 'background',
|
|
264
|
-
type: 'background-media',
|
|
265
|
-
ignoreReRender: true,
|
|
266
|
-
showVideo: false,
|
|
267
|
-
devices: {
|
|
268
|
-
desktop: {
|
|
269
|
-
default: {
|
|
270
|
-
type: 'color',
|
|
271
|
-
color: 'transparent',
|
|
272
|
-
image: {
|
|
273
|
-
src: '',
|
|
274
|
-
width: 0,
|
|
275
|
-
height: 0
|
|
276
|
-
},
|
|
277
|
-
size: 'cover',
|
|
278
|
-
position: {
|
|
279
|
-
x: 50,
|
|
280
|
-
y: 50
|
|
281
|
-
},
|
|
282
|
-
repeat: 'no-repeat',
|
|
283
|
-
attachment: 'scroll'
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
compoDefaultValue: {
|
|
288
|
-
desktop: {
|
|
289
|
-
default: {
|
|
290
|
-
type: 'color',
|
|
291
|
-
color: 'brand',
|
|
292
|
-
image: {
|
|
293
|
-
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
294
|
-
width: 1200,
|
|
295
|
-
height: 480
|
|
296
|
-
},
|
|
297
|
-
size: 'cover',
|
|
298
|
-
position: {
|
|
299
|
-
x: 50,
|
|
300
|
-
y: 50
|
|
301
|
-
},
|
|
302
|
-
repeat: 'no-repeat',
|
|
303
|
-
attachment: 'scroll',
|
|
304
|
-
preload: false
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
309
|
{
|
|
310
310
|
id: 'backgroundColorV2',
|
|
311
311
|
type: 'color-picker-v2',
|
|
@@ -763,10 +763,7 @@ const ArticleReadMoreSettings = [
|
|
|
763
763
|
color: 'text-3'
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
|
-
ignoreReRender: true
|
|
767
|
-
hiddenSetting: {
|
|
768
|
-
textAlign: true
|
|
769
|
-
}
|
|
766
|
+
ignoreReRender: true
|
|
770
767
|
},
|
|
771
768
|
{
|
|
772
769
|
id: 'alignText',
|
|
@@ -349,30 +349,9 @@ const uiV2 = [
|
|
|
349
349
|
conditionDisplay: `readMoreType !== 'text' && enableTextStyle == true`,
|
|
350
350
|
options: {
|
|
351
351
|
hideLabel: true,
|
|
352
|
-
fullWidth: true
|
|
353
|
-
updateFields: [
|
|
354
|
-
{
|
|
355
|
-
field: 'attrs.textAlign',
|
|
356
|
-
settingId: 'textAlign'
|
|
357
|
-
}
|
|
358
|
-
]
|
|
352
|
+
fullWidth: true
|
|
359
353
|
},
|
|
360
|
-
layout: 'vertical'
|
|
361
|
-
controlChangeTrigger: {
|
|
362
|
-
settings: [
|
|
363
|
-
{
|
|
364
|
-
action: {
|
|
365
|
-
controlId: 'textAlign',
|
|
366
|
-
valueFromField: 'attrs.textAlign',
|
|
367
|
-
groupType: 'style',
|
|
368
|
-
controlType: 'style'
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
],
|
|
372
|
-
options: {
|
|
373
|
-
noRecordHistory: true
|
|
374
|
-
}
|
|
375
|
-
}
|
|
354
|
+
layout: 'vertical'
|
|
376
355
|
}
|
|
377
356
|
]
|
|
378
357
|
},
|
|
@@ -417,9 +396,14 @@ const uiV2 = [
|
|
|
417
396
|
hideLabel: true,
|
|
418
397
|
fullWidth: true,
|
|
419
398
|
updateFields: [
|
|
399
|
+
{
|
|
400
|
+
field: 'attrs.color',
|
|
401
|
+
settingId: 'textColorTextState',
|
|
402
|
+
state: 'normal'
|
|
403
|
+
},
|
|
420
404
|
{
|
|
421
405
|
field: 'attrs.textAlign',
|
|
422
|
-
settingId: '
|
|
406
|
+
settingId: 'alignText'
|
|
423
407
|
}
|
|
424
408
|
]
|
|
425
409
|
},
|
|
@@ -428,11 +412,21 @@ const uiV2 = [
|
|
|
428
412
|
settings: [
|
|
429
413
|
{
|
|
430
414
|
action: {
|
|
431
|
-
controlId: '
|
|
415
|
+
controlId: 'alignText',
|
|
432
416
|
valueFromField: 'attrs.textAlign',
|
|
433
417
|
groupType: 'style',
|
|
434
418
|
controlType: 'style'
|
|
435
419
|
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
action: {
|
|
423
|
+
controlId: 'textColorTextState',
|
|
424
|
+
valueFromField: 'attrs.color',
|
|
425
|
+
groupType: 'style',
|
|
426
|
+
controlType: 'style',
|
|
427
|
+
removeDevice: true,
|
|
428
|
+
state: 'normal'
|
|
429
|
+
}
|
|
436
430
|
}
|
|
437
431
|
],
|
|
438
432
|
options: {
|
|
@@ -121,30 +121,13 @@ const ControlUIV2 = [
|
|
|
121
121
|
setting: {
|
|
122
122
|
id: 'iconItemColor'
|
|
123
123
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
groupType: 'setting',
|
|
131
|
-
controlType: 'setting',
|
|
132
|
-
state: 'normal'
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
options: {
|
|
137
|
-
noRecordHistory: true
|
|
124
|
+
controlConfig: {
|
|
125
|
+
id: 'icon-radio-color',
|
|
126
|
+
type: 'color-picker-v2',
|
|
127
|
+
linkWithSetting: {
|
|
128
|
+
name: 'iconColor',
|
|
129
|
+
field: 'normal'
|
|
138
130
|
}
|
|
139
|
-
},
|
|
140
|
-
options: {
|
|
141
|
-
updateFields: [
|
|
142
|
-
{
|
|
143
|
-
field: 'iconItemColor',
|
|
144
|
-
settingId: 'iconColor',
|
|
145
|
-
state: 'normal'
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
131
|
}
|
|
149
132
|
},
|
|
150
133
|
{
|