@gem-sdk/components 2.0.0-dev.530 → 2.0.0-dev.532
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/carousel/setting/configs/presets.js +29 -11
- package/dist/cjs/carousel/setting/configs/settingV2.js +18 -8
- package/dist/cjs/carousel/setting/configs/uiV2.js +31 -24
- package/dist/esm/carousel/setting/configs/presets.js +29 -11
- package/dist/esm/carousel/setting/configs/settingV2.js +18 -8
- package/dist/esm/carousel/setting/configs/uiV2.js +31 -24
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,8 +24,11 @@ const CarouselPreset = [
|
|
|
24
24
|
label: 'Carousel',
|
|
25
25
|
settings: {
|
|
26
26
|
childItem: [
|
|
27
|
-
'
|
|
28
|
-
'
|
|
27
|
+
'Item 1',
|
|
28
|
+
'Item 2',
|
|
29
|
+
'Item 3',
|
|
30
|
+
'Item 4',
|
|
31
|
+
'Item 5'
|
|
29
32
|
],
|
|
30
33
|
itemNumber: {
|
|
31
34
|
desktop: 1,
|
|
@@ -50,6 +53,21 @@ const CarouselPreset = [
|
|
|
50
53
|
}
|
|
51
54
|
},
|
|
52
55
|
childrens: [
|
|
56
|
+
{
|
|
57
|
+
tag: 'CarouselItem',
|
|
58
|
+
label: 'Carousel Item',
|
|
59
|
+
childrens: []
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
tag: 'CarouselItem',
|
|
63
|
+
label: 'Carousel Item',
|
|
64
|
+
childrens: []
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
tag: 'CarouselItem',
|
|
68
|
+
label: 'Carousel Item',
|
|
69
|
+
childrens: []
|
|
70
|
+
},
|
|
53
71
|
{
|
|
54
72
|
tag: 'CarouselItem',
|
|
55
73
|
label: 'Carousel Item',
|
|
@@ -87,10 +105,10 @@ const CarouselPreset = [
|
|
|
87
105
|
label: 'Carousel',
|
|
88
106
|
settings: {
|
|
89
107
|
childItem: [
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
108
|
+
'Item 1',
|
|
109
|
+
'Item 2',
|
|
110
|
+
'Item 3',
|
|
111
|
+
'Item 4'
|
|
94
112
|
],
|
|
95
113
|
itemNumber: {
|
|
96
114
|
desktop: 4,
|
|
@@ -198,8 +216,8 @@ const CarouselPreset = [
|
|
|
198
216
|
label: 'Carousel',
|
|
199
217
|
settings: {
|
|
200
218
|
childItem: [
|
|
201
|
-
'
|
|
202
|
-
'
|
|
219
|
+
'Item 1',
|
|
220
|
+
'Item 2'
|
|
203
221
|
],
|
|
204
222
|
itemNumber: {
|
|
205
223
|
desktop: 2,
|
|
@@ -318,9 +336,9 @@ const CarouselPreset = [
|
|
|
318
336
|
label: 'Carousel',
|
|
319
337
|
settings: {
|
|
320
338
|
childItem: [
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
339
|
+
'Item 1',
|
|
340
|
+
'Item 2',
|
|
341
|
+
'Item 3'
|
|
324
342
|
],
|
|
325
343
|
itemNumber: {
|
|
326
344
|
desktop: 3,
|
|
@@ -59,6 +59,11 @@ const CarouselSettingsV2Setting = [
|
|
|
59
59
|
type: 'input:slider',
|
|
60
60
|
min: 1,
|
|
61
61
|
max: 100,
|
|
62
|
+
showDefaultUnit: true,
|
|
63
|
+
isNumber: true,
|
|
64
|
+
units: [
|
|
65
|
+
'%'
|
|
66
|
+
],
|
|
62
67
|
devices: {
|
|
63
68
|
desktop: {
|
|
64
69
|
default: 50
|
|
@@ -71,6 +76,11 @@ const CarouselSettingsV2Setting = [
|
|
|
71
76
|
type: 'input:slider',
|
|
72
77
|
min: 1,
|
|
73
78
|
max: 100,
|
|
79
|
+
showDefaultUnit: true,
|
|
80
|
+
isNumber: true,
|
|
81
|
+
units: [
|
|
82
|
+
'%'
|
|
83
|
+
],
|
|
74
84
|
devices: {
|
|
75
85
|
desktop: {
|
|
76
86
|
default: 50
|
|
@@ -82,12 +92,12 @@ const CarouselSettingsV2Setting = [
|
|
|
82
92
|
label: 'Item management',
|
|
83
93
|
type: 'child-item',
|
|
84
94
|
default: [
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
95
|
+
'Item 1',
|
|
96
|
+
'Item 2',
|
|
97
|
+
'Item 3',
|
|
98
|
+
'Item 4',
|
|
99
|
+
'Item 5',
|
|
100
|
+
'Item 6'
|
|
91
101
|
]
|
|
92
102
|
},
|
|
93
103
|
{
|
|
@@ -537,7 +547,7 @@ const CarouselSettingsV2Setting = [
|
|
|
537
547
|
desktop: {
|
|
538
548
|
default: {
|
|
539
549
|
type: 'color',
|
|
540
|
-
color: '
|
|
550
|
+
color: 'bg-2',
|
|
541
551
|
image: {
|
|
542
552
|
src: '',
|
|
543
553
|
width: 0,
|
|
@@ -572,7 +582,7 @@ const CarouselSettingsV2Style = [
|
|
|
572
582
|
},
|
|
573
583
|
compoDefaultValue: {
|
|
574
584
|
desktop: {
|
|
575
|
-
default: '#
|
|
585
|
+
default: '#DDDDDD'
|
|
576
586
|
}
|
|
577
587
|
},
|
|
578
588
|
enableGradient: true
|
|
@@ -57,7 +57,7 @@ const carouselNavigationSettings = {
|
|
|
57
57
|
type: 'combo',
|
|
58
58
|
conditionDisplay: `navigationEnable === true`,
|
|
59
59
|
label: {
|
|
60
|
-
en: '
|
|
60
|
+
en: 'Button size'
|
|
61
61
|
},
|
|
62
62
|
fixedValue: 'Edit',
|
|
63
63
|
iconName: 'polaris-measurement-size',
|
|
@@ -177,7 +177,7 @@ const carouselDotsSettings = {
|
|
|
177
177
|
{
|
|
178
178
|
conditionDisplay: `dot === true`,
|
|
179
179
|
label: {
|
|
180
|
-
en: 'Active
|
|
180
|
+
en: 'Active color'
|
|
181
181
|
},
|
|
182
182
|
setting: {
|
|
183
183
|
id: 'dotActiveColor'
|
|
@@ -186,31 +186,35 @@ const carouselDotsSettings = {
|
|
|
186
186
|
{
|
|
187
187
|
conditionDisplay: `dot === true`,
|
|
188
188
|
label: {
|
|
189
|
-
en: 'Inactive
|
|
189
|
+
en: 'Inactive color'
|
|
190
190
|
},
|
|
191
191
|
setting: {
|
|
192
192
|
id: 'dotColor'
|
|
193
193
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
label: {
|
|
207
|
-
en: 'Gap to edge'
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
moreSettings: {
|
|
197
|
+
controls: [
|
|
198
|
+
{
|
|
199
|
+
conditionDisplay: `dot === true`,
|
|
200
|
+
label: {
|
|
201
|
+
en: 'Dots size'
|
|
202
|
+
},
|
|
203
|
+
setting: {
|
|
204
|
+
id: 'dotSize'
|
|
205
|
+
}
|
|
208
206
|
},
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
{
|
|
208
|
+
conditionDisplay: `dot === true`,
|
|
209
|
+
label: {
|
|
210
|
+
en: 'Gap to edge'
|
|
211
|
+
},
|
|
212
|
+
setting: {
|
|
213
|
+
id: 'dotGapToCarousel'
|
|
214
|
+
}
|
|
211
215
|
}
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
]
|
|
217
|
+
}
|
|
214
218
|
};
|
|
215
219
|
const carouselEffectsSettings = {
|
|
216
220
|
label: {
|
|
@@ -301,7 +305,7 @@ const carouselEffectsSettings = {
|
|
|
301
305
|
const SettingUIV2 = [
|
|
302
306
|
{
|
|
303
307
|
label: {
|
|
304
|
-
en: '
|
|
308
|
+
en: 'Items per slide'
|
|
305
309
|
},
|
|
306
310
|
controls: [
|
|
307
311
|
{
|
|
@@ -325,11 +329,14 @@ const SettingUIV2 = [
|
|
|
325
329
|
setting: {
|
|
326
330
|
id: 'sneakPeak'
|
|
327
331
|
},
|
|
328
|
-
fixedValue: '
|
|
332
|
+
fixedValue: 'Enable',
|
|
329
333
|
iconName: 'polaris-edit',
|
|
330
334
|
controls: [
|
|
331
335
|
{
|
|
332
336
|
layout: 'vertical',
|
|
337
|
+
label: {
|
|
338
|
+
en: 'style'
|
|
339
|
+
},
|
|
333
340
|
setting: {
|
|
334
341
|
id: 'sneakPeakType'
|
|
335
342
|
}
|
|
@@ -363,7 +370,7 @@ const SettingUIV2 = [
|
|
|
363
370
|
controls: [
|
|
364
371
|
{
|
|
365
372
|
label: {
|
|
366
|
-
en: '
|
|
373
|
+
en: 'Order'
|
|
367
374
|
},
|
|
368
375
|
setting: {
|
|
369
376
|
id: 'childItem'
|
|
@@ -22,8 +22,11 @@ const CarouselPreset = [
|
|
|
22
22
|
label: 'Carousel',
|
|
23
23
|
settings: {
|
|
24
24
|
childItem: [
|
|
25
|
-
'
|
|
26
|
-
'
|
|
25
|
+
'Item 1',
|
|
26
|
+
'Item 2',
|
|
27
|
+
'Item 3',
|
|
28
|
+
'Item 4',
|
|
29
|
+
'Item 5'
|
|
27
30
|
],
|
|
28
31
|
itemNumber: {
|
|
29
32
|
desktop: 1,
|
|
@@ -48,6 +51,21 @@ const CarouselPreset = [
|
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
childrens: [
|
|
54
|
+
{
|
|
55
|
+
tag: 'CarouselItem',
|
|
56
|
+
label: 'Carousel Item',
|
|
57
|
+
childrens: []
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
tag: 'CarouselItem',
|
|
61
|
+
label: 'Carousel Item',
|
|
62
|
+
childrens: []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
tag: 'CarouselItem',
|
|
66
|
+
label: 'Carousel Item',
|
|
67
|
+
childrens: []
|
|
68
|
+
},
|
|
51
69
|
{
|
|
52
70
|
tag: 'CarouselItem',
|
|
53
71
|
label: 'Carousel Item',
|
|
@@ -85,10 +103,10 @@ const CarouselPreset = [
|
|
|
85
103
|
label: 'Carousel',
|
|
86
104
|
settings: {
|
|
87
105
|
childItem: [
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
106
|
+
'Item 1',
|
|
107
|
+
'Item 2',
|
|
108
|
+
'Item 3',
|
|
109
|
+
'Item 4'
|
|
92
110
|
],
|
|
93
111
|
itemNumber: {
|
|
94
112
|
desktop: 4,
|
|
@@ -196,8 +214,8 @@ const CarouselPreset = [
|
|
|
196
214
|
label: 'Carousel',
|
|
197
215
|
settings: {
|
|
198
216
|
childItem: [
|
|
199
|
-
'
|
|
200
|
-
'
|
|
217
|
+
'Item 1',
|
|
218
|
+
'Item 2'
|
|
201
219
|
],
|
|
202
220
|
itemNumber: {
|
|
203
221
|
desktop: 2,
|
|
@@ -316,9 +334,9 @@ const CarouselPreset = [
|
|
|
316
334
|
label: 'Carousel',
|
|
317
335
|
settings: {
|
|
318
336
|
childItem: [
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
337
|
+
'Item 1',
|
|
338
|
+
'Item 2',
|
|
339
|
+
'Item 3'
|
|
322
340
|
],
|
|
323
341
|
itemNumber: {
|
|
324
342
|
desktop: 3,
|
|
@@ -57,6 +57,11 @@ const CarouselSettingsV2Setting = [
|
|
|
57
57
|
type: 'input:slider',
|
|
58
58
|
min: 1,
|
|
59
59
|
max: 100,
|
|
60
|
+
showDefaultUnit: true,
|
|
61
|
+
isNumber: true,
|
|
62
|
+
units: [
|
|
63
|
+
'%'
|
|
64
|
+
],
|
|
60
65
|
devices: {
|
|
61
66
|
desktop: {
|
|
62
67
|
default: 50
|
|
@@ -69,6 +74,11 @@ const CarouselSettingsV2Setting = [
|
|
|
69
74
|
type: 'input:slider',
|
|
70
75
|
min: 1,
|
|
71
76
|
max: 100,
|
|
77
|
+
showDefaultUnit: true,
|
|
78
|
+
isNumber: true,
|
|
79
|
+
units: [
|
|
80
|
+
'%'
|
|
81
|
+
],
|
|
72
82
|
devices: {
|
|
73
83
|
desktop: {
|
|
74
84
|
default: 50
|
|
@@ -80,12 +90,12 @@ const CarouselSettingsV2Setting = [
|
|
|
80
90
|
label: 'Item management',
|
|
81
91
|
type: 'child-item',
|
|
82
92
|
default: [
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
93
|
+
'Item 1',
|
|
94
|
+
'Item 2',
|
|
95
|
+
'Item 3',
|
|
96
|
+
'Item 4',
|
|
97
|
+
'Item 5',
|
|
98
|
+
'Item 6'
|
|
89
99
|
]
|
|
90
100
|
},
|
|
91
101
|
{
|
|
@@ -535,7 +545,7 @@ const CarouselSettingsV2Setting = [
|
|
|
535
545
|
desktop: {
|
|
536
546
|
default: {
|
|
537
547
|
type: 'color',
|
|
538
|
-
color: '
|
|
548
|
+
color: 'bg-2',
|
|
539
549
|
image: {
|
|
540
550
|
src: '',
|
|
541
551
|
width: 0,
|
|
@@ -570,7 +580,7 @@ const CarouselSettingsV2Style = [
|
|
|
570
580
|
},
|
|
571
581
|
compoDefaultValue: {
|
|
572
582
|
desktop: {
|
|
573
|
-
default: '#
|
|
583
|
+
default: '#DDDDDD'
|
|
574
584
|
}
|
|
575
585
|
},
|
|
576
586
|
enableGradient: true
|
|
@@ -55,7 +55,7 @@ const carouselNavigationSettings = {
|
|
|
55
55
|
type: 'combo',
|
|
56
56
|
conditionDisplay: `navigationEnable === true`,
|
|
57
57
|
label: {
|
|
58
|
-
en: '
|
|
58
|
+
en: 'Button size'
|
|
59
59
|
},
|
|
60
60
|
fixedValue: 'Edit',
|
|
61
61
|
iconName: 'polaris-measurement-size',
|
|
@@ -175,7 +175,7 @@ const carouselDotsSettings = {
|
|
|
175
175
|
{
|
|
176
176
|
conditionDisplay: `dot === true`,
|
|
177
177
|
label: {
|
|
178
|
-
en: 'Active
|
|
178
|
+
en: 'Active color'
|
|
179
179
|
},
|
|
180
180
|
setting: {
|
|
181
181
|
id: 'dotActiveColor'
|
|
@@ -184,31 +184,35 @@ const carouselDotsSettings = {
|
|
|
184
184
|
{
|
|
185
185
|
conditionDisplay: `dot === true`,
|
|
186
186
|
label: {
|
|
187
|
-
en: 'Inactive
|
|
187
|
+
en: 'Inactive color'
|
|
188
188
|
},
|
|
189
189
|
setting: {
|
|
190
190
|
id: 'dotColor'
|
|
191
191
|
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
label: {
|
|
205
|
-
en: 'Gap to edge'
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
moreSettings: {
|
|
195
|
+
controls: [
|
|
196
|
+
{
|
|
197
|
+
conditionDisplay: `dot === true`,
|
|
198
|
+
label: {
|
|
199
|
+
en: 'Dots size'
|
|
200
|
+
},
|
|
201
|
+
setting: {
|
|
202
|
+
id: 'dotSize'
|
|
203
|
+
}
|
|
206
204
|
},
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
{
|
|
206
|
+
conditionDisplay: `dot === true`,
|
|
207
|
+
label: {
|
|
208
|
+
en: 'Gap to edge'
|
|
209
|
+
},
|
|
210
|
+
setting: {
|
|
211
|
+
id: 'dotGapToCarousel'
|
|
212
|
+
}
|
|
209
213
|
}
|
|
210
|
-
|
|
211
|
-
|
|
214
|
+
]
|
|
215
|
+
}
|
|
212
216
|
};
|
|
213
217
|
const carouselEffectsSettings = {
|
|
214
218
|
label: {
|
|
@@ -299,7 +303,7 @@ const carouselEffectsSettings = {
|
|
|
299
303
|
const SettingUIV2 = [
|
|
300
304
|
{
|
|
301
305
|
label: {
|
|
302
|
-
en: '
|
|
306
|
+
en: 'Items per slide'
|
|
303
307
|
},
|
|
304
308
|
controls: [
|
|
305
309
|
{
|
|
@@ -323,11 +327,14 @@ const SettingUIV2 = [
|
|
|
323
327
|
setting: {
|
|
324
328
|
id: 'sneakPeak'
|
|
325
329
|
},
|
|
326
|
-
fixedValue: '
|
|
330
|
+
fixedValue: 'Enable',
|
|
327
331
|
iconName: 'polaris-edit',
|
|
328
332
|
controls: [
|
|
329
333
|
{
|
|
330
334
|
layout: 'vertical',
|
|
335
|
+
label: {
|
|
336
|
+
en: 'style'
|
|
337
|
+
},
|
|
331
338
|
setting: {
|
|
332
339
|
id: 'sneakPeakType'
|
|
333
340
|
}
|
|
@@ -361,7 +368,7 @@ const SettingUIV2 = [
|
|
|
361
368
|
controls: [
|
|
362
369
|
{
|
|
363
370
|
label: {
|
|
364
|
-
en: '
|
|
371
|
+
en: 'Order'
|
|
365
372
|
},
|
|
366
373
|
setting: {
|
|
367
374
|
id: 'childItem'
|
package/dist/types/index.d.ts
CHANGED
|
@@ -889,7 +889,7 @@ type CarouselStyles$1 = {
|
|
|
889
889
|
sizeSetting?: ObjectDevices$1<SizeSettingGlobal>;
|
|
890
890
|
playSpeed?: number;
|
|
891
891
|
itemPadding?: ObjectDevices$1<SizeSettingGlobal>;
|
|
892
|
-
backgroundColor?: ObjectDevices$1<
|
|
892
|
+
backgroundColor?: ObjectDevices$1<string>;
|
|
893
893
|
backgroundImage?: ObjectDevices$1<BackgroundImageValue>;
|
|
894
894
|
};
|
|
895
895
|
type CarouselProps$1 = BasePropsWrap<CarouselSettings$1, CarouselStyles$1> & {
|