@gem-sdk/components 2.0.0-dev.460 → 2.0.0-dev.461
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/marquee/setting/Marquee.js +1 -3
- package/dist/cjs/marquee/setting/configs/presets.js +10 -10
- package/dist/cjs/marquee/setting/configs/settingsV2.js +42 -40
- package/dist/cjs/marquee/setting/configs/uiV2.js +137 -34
- package/dist/cjs/product/components/ProductVariants/components/variants/index.js +4 -1
- package/dist/cjs/product/setting/product-variant/configs/settings.js +9 -7
- package/dist/cjs/product/setting/product-variant/configs/uiV2.js +0 -3
- package/dist/esm/marquee/setting/Marquee.js +1 -3
- package/dist/esm/marquee/setting/configs/presets.js +10 -10
- package/dist/esm/marquee/setting/configs/settingsV2.js +42 -40
- package/dist/esm/marquee/setting/configs/uiV2.js +137 -34
- package/dist/esm/product/components/ProductVariants/components/variants/index.js +4 -1
- package/dist/esm/product/setting/product-variant/configs/settings.js +9 -7
- package/dist/esm/product/setting/product-variant/configs/uiV2.js +0 -3
- package/package.json +1 -1
- package/dist/cjs/marquee/setting/configs/settings.js +0 -318
- package/dist/esm/marquee/setting/configs/settings.js +0 -316
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var presets = require('./configs/presets.js');
|
|
6
|
-
var settings = require('./configs/settings.js');
|
|
7
6
|
var settingsV2 = require('./configs/settingsV2.js');
|
|
8
7
|
var uiV1 = require('./configs/uiV1.js');
|
|
9
8
|
var uiV2 = require('./configs/uiV2.js');
|
|
@@ -16,8 +15,7 @@ const config = {
|
|
|
16
15
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.96586 7.25C4.96586 6.14543 5.86129 5.25 6.96586 5.25H17.0346C18.1391 5.25 19.0346 6.14543 19.0346 7.25V16.7484C19.0346 17.853 18.1391 18.7484 17.0346 18.7484H6.96586C5.86129 18.7484 4.96586 17.853 4.96586 16.7484V7.25ZM9.36039 6.25H6.96586C6.41357 6.25 5.96586 6.69772 5.96586 7.25V16.7484C5.96586 17.3007 6.41357 17.7484 6.96586 17.7484H9.36039L9.36039 6.25ZM10.3604 17.7484V6.25H14.1455V17.7484H10.3604ZM15.1455 17.7484H17.0346C17.5869 17.7484 18.0346 17.3007 18.0346 16.7484V7.25C18.0346 6.69771 17.5869 6.25 17.0346 6.25H15.1455V17.7484ZM3.31666 10.5447C3.51708 10.7346 3.52555 11.0511 3.33558 11.2515L2.61349 12.0133L3.33449 12.7691C3.52509 12.969 3.51762 13.2854 3.31781 13.4761C3.118 13.6667 2.8015 13.6592 2.6109 13.4594L1.693 12.4971C1.43561 12.2273 1.43493 11.803 1.69148 11.5324L2.60981 10.5636C2.79978 10.3632 3.11625 10.3547 3.31666 10.5447ZM20.6827 10.5458C20.8825 10.3552 21.199 10.3627 21.3896 10.5625L22.3075 11.5247C22.5649 11.7946 22.5656 12.2188 22.309 12.4894L21.3907 13.4583C21.2007 13.6587 20.8843 13.6672 20.6839 13.4772C20.4834 13.2872 20.475 12.9707 20.6649 12.7703L21.387 12.0085L20.666 11.2527C20.4754 11.0529 20.4829 10.7364 20.6827 10.5458ZM21.5839 12.215C21.5838 12.2149 21.584 12.2151 21.5839 12.215V12.215Z" fill="white"/>
|
|
17
16
|
</svg>
|
|
18
17
|
`,
|
|
19
|
-
settings:
|
|
20
|
-
settingsV2: settingsV2.MarqueeSettingsV2,
|
|
18
|
+
settings: settingsV2.MarqueeSettingsV2,
|
|
21
19
|
ui: uiV1.SettingUIV1,
|
|
22
20
|
uiV2: uiV2.SettingUIV2,
|
|
23
21
|
editorConfigs: {
|
|
@@ -41,11 +41,11 @@ const MarqueePresets = [
|
|
|
41
41
|
'spacing-setting': {
|
|
42
42
|
desktop: {
|
|
43
43
|
padding: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
type: 'custom',
|
|
45
|
+
top: '16px',
|
|
46
|
+
bottom: '16px',
|
|
47
|
+
left: '0px',
|
|
48
|
+
right: '0px'
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -123,11 +123,11 @@ const MarqueePresets = [
|
|
|
123
123
|
'spacing-setting': {
|
|
124
124
|
desktop: {
|
|
125
125
|
padding: {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
type: 'custom',
|
|
127
|
+
top: '16px',
|
|
128
|
+
bottom: '16px',
|
|
129
|
+
left: '0px',
|
|
130
|
+
right: '0px'
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -6,6 +6,40 @@ const MarqueeSettingsV2 = [
|
|
|
6
6
|
{
|
|
7
7
|
id: 'setting',
|
|
8
8
|
controls: [
|
|
9
|
+
{
|
|
10
|
+
id: 'itemWidthType',
|
|
11
|
+
type: 'select',
|
|
12
|
+
label: 'Aspect Ratio',
|
|
13
|
+
isFullWidth: true,
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
label: 'Fit to content',
|
|
17
|
+
value: 'FIT_CONTENT',
|
|
18
|
+
note: 'Match the width of the element inside'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'Based on the item count',
|
|
22
|
+
value: 'BASE_ON_NUMBER_OF_ITEMS',
|
|
23
|
+
note: 'Max item width is screen width divided by the number of items'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Custom',
|
|
27
|
+
value: 'CUSTOM',
|
|
28
|
+
note: 'Set the max width as you want'
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
devices: {
|
|
32
|
+
desktop: {
|
|
33
|
+
default: 'FIT_CONTENT'
|
|
34
|
+
},
|
|
35
|
+
tablet: {
|
|
36
|
+
default: 'FIT_CONTENT'
|
|
37
|
+
},
|
|
38
|
+
mobile: {
|
|
39
|
+
default: 'CUSTOM'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
9
43
|
{
|
|
10
44
|
id: 'activeItem',
|
|
11
45
|
type: 'input',
|
|
@@ -45,7 +79,7 @@ const MarqueeSettingsV2 = [
|
|
|
45
79
|
id: 'stopOnHover',
|
|
46
80
|
label: 'stopOnHover',
|
|
47
81
|
type: 'toggle',
|
|
48
|
-
default:
|
|
82
|
+
default: true
|
|
49
83
|
},
|
|
50
84
|
{
|
|
51
85
|
id: 'speed',
|
|
@@ -90,40 +124,6 @@ const MarqueeSettingsV2 = [
|
|
|
90
124
|
label: 'hasItemShadow',
|
|
91
125
|
type: 'toggle',
|
|
92
126
|
default: false
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: 'itemWidthType',
|
|
96
|
-
type: 'select',
|
|
97
|
-
label: 'Aspect Ratio',
|
|
98
|
-
isFullWidth: true,
|
|
99
|
-
options: [
|
|
100
|
-
{
|
|
101
|
-
label: 'Fit to content',
|
|
102
|
-
value: 'FIT_CONTENT',
|
|
103
|
-
note: 'Match the width of the element inside'
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
label: 'Based on the item count',
|
|
107
|
-
value: 'BASE_ON_NUMBER_OF_ITEMS',
|
|
108
|
-
note: 'Max item width is screen width divided by the number of items'
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: 'Custom',
|
|
112
|
-
value: 'CUSTOM',
|
|
113
|
-
note: 'Set the max width as you want'
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
devices: {
|
|
117
|
-
desktop: {
|
|
118
|
-
default: 'BASE_ON_NUMBER_OF_ITEMS'
|
|
119
|
-
},
|
|
120
|
-
tablet: {
|
|
121
|
-
default: 'BASE_ON_NUMBER_OF_ITEMS'
|
|
122
|
-
},
|
|
123
|
-
mobile: {
|
|
124
|
-
default: 'CUSTOM'
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
127
|
}
|
|
128
128
|
]
|
|
129
129
|
},
|
|
@@ -155,15 +155,17 @@ const MarqueeSettingsV2 = [
|
|
|
155
155
|
{
|
|
156
156
|
id: 'itemSpacing',
|
|
157
157
|
label: 'Spacing',
|
|
158
|
-
type: 'input:
|
|
158
|
+
type: 'input:slider',
|
|
159
159
|
units: [
|
|
160
160
|
'px'
|
|
161
161
|
],
|
|
162
|
-
placeholder: 'Auto',
|
|
163
162
|
min: 0,
|
|
163
|
+
max: 100,
|
|
164
|
+
step: 1,
|
|
165
|
+
placeholder: 'Auto',
|
|
164
166
|
devices: {
|
|
165
167
|
desktop: {
|
|
166
|
-
default: '
|
|
168
|
+
default: '60px'
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
},
|
|
@@ -221,9 +223,9 @@ const MarqueeSettingsV2 = [
|
|
|
221
223
|
}
|
|
222
224
|
},
|
|
223
225
|
hiddenSettings: [
|
|
224
|
-
'padding',
|
|
225
226
|
'gap',
|
|
226
|
-
'shape'
|
|
227
|
+
'shape',
|
|
228
|
+
'padding'
|
|
227
229
|
]
|
|
228
230
|
},
|
|
229
231
|
{
|
|
@@ -8,7 +8,7 @@ const SettingUIV2 = [
|
|
|
8
8
|
controls: [
|
|
9
9
|
{
|
|
10
10
|
label: {
|
|
11
|
-
en: '
|
|
11
|
+
en: 'Order'
|
|
12
12
|
},
|
|
13
13
|
setting: {
|
|
14
14
|
id: 'childItem'
|
|
@@ -18,7 +18,22 @@ const SettingUIV2 = [
|
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
label: {
|
|
21
|
-
en: 'Item'
|
|
21
|
+
en: 'Item spacing'
|
|
22
|
+
},
|
|
23
|
+
controls: [
|
|
24
|
+
{
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Gap'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'itemSpacing'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: {
|
|
36
|
+
en: 'Item style'
|
|
22
37
|
},
|
|
23
38
|
controls: [
|
|
24
39
|
{
|
|
@@ -27,8 +42,7 @@ const SettingUIV2 = [
|
|
|
27
42
|
},
|
|
28
43
|
label: {
|
|
29
44
|
en: 'Max width'
|
|
30
|
-
}
|
|
31
|
-
layout: 'vertical'
|
|
45
|
+
}
|
|
32
46
|
},
|
|
33
47
|
{
|
|
34
48
|
layout: 'vertical',
|
|
@@ -79,26 +93,11 @@ const SettingUIV2 = [
|
|
|
79
93
|
]
|
|
80
94
|
}
|
|
81
95
|
},
|
|
82
|
-
{
|
|
83
|
-
label: {
|
|
84
|
-
en: 'Item spacing'
|
|
85
|
-
},
|
|
86
|
-
controls: [
|
|
87
|
-
{
|
|
88
|
-
label: {
|
|
89
|
-
en: 'Gap'
|
|
90
|
-
},
|
|
91
|
-
setting: {
|
|
92
|
-
id: 'itemSpacing'
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
96
|
{
|
|
98
97
|
controls: [
|
|
99
98
|
{
|
|
100
99
|
label: {
|
|
101
|
-
en: '
|
|
100
|
+
en: 'Separator'
|
|
102
101
|
},
|
|
103
102
|
setting: {
|
|
104
103
|
id: 'isShowIconSeparator'
|
|
@@ -114,7 +113,7 @@ const SettingUIV2 = [
|
|
|
114
113
|
},
|
|
115
114
|
conditionDisplay: 'isShowIconSeparator == true',
|
|
116
115
|
label: {
|
|
117
|
-
en: '
|
|
116
|
+
en: 'Icon'
|
|
118
117
|
}
|
|
119
118
|
},
|
|
120
119
|
{
|
|
@@ -137,6 +136,43 @@ const SettingUIV2 = [
|
|
|
137
136
|
}
|
|
138
137
|
]
|
|
139
138
|
},
|
|
139
|
+
{
|
|
140
|
+
label: {
|
|
141
|
+
en: 'Marquee effect'
|
|
142
|
+
},
|
|
143
|
+
controls: [
|
|
144
|
+
{
|
|
145
|
+
label: {
|
|
146
|
+
en: 'Direction'
|
|
147
|
+
},
|
|
148
|
+
setting: {
|
|
149
|
+
id: 'direction'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: {
|
|
154
|
+
en: 'Stop on hover'
|
|
155
|
+
},
|
|
156
|
+
setting: {
|
|
157
|
+
id: 'stopOnHover'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: {
|
|
162
|
+
en: 'Speed'
|
|
163
|
+
},
|
|
164
|
+
setting: {
|
|
165
|
+
id: 'speed'
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
setting: {
|
|
170
|
+
id: 'isPreview'
|
|
171
|
+
},
|
|
172
|
+
layout: 'vertical'
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
140
176
|
{
|
|
141
177
|
label: {
|
|
142
178
|
en: 'Size'
|
|
@@ -200,6 +236,32 @@ const SettingUIV2 = [
|
|
|
200
236
|
}
|
|
201
237
|
]
|
|
202
238
|
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
label: {
|
|
242
|
+
en: 'Padding'
|
|
243
|
+
},
|
|
244
|
+
controlConfig: {
|
|
245
|
+
id: 'padding',
|
|
246
|
+
type: 'padding-v2',
|
|
247
|
+
linkWithSetting: {
|
|
248
|
+
name: 'spacing-setting',
|
|
249
|
+
field: 'padding'
|
|
250
|
+
},
|
|
251
|
+
compoDefaultValue: {
|
|
252
|
+
desktop: {
|
|
253
|
+
default: {
|
|
254
|
+
padding: {
|
|
255
|
+
type: 'custom',
|
|
256
|
+
top: '16px',
|
|
257
|
+
bottom: '16px',
|
|
258
|
+
left: '0px',
|
|
259
|
+
right: '0px'
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
203
265
|
}
|
|
204
266
|
]
|
|
205
267
|
},
|
|
@@ -220,38 +282,79 @@ const SettingUIV2 = [
|
|
|
220
282
|
},
|
|
221
283
|
{
|
|
222
284
|
label: {
|
|
223
|
-
en: '
|
|
285
|
+
en: 'Shape'
|
|
224
286
|
},
|
|
225
287
|
controls: [
|
|
226
288
|
{
|
|
227
289
|
label: {
|
|
228
|
-
en: '
|
|
290
|
+
en: 'Border'
|
|
229
291
|
},
|
|
230
292
|
setting: {
|
|
231
|
-
id: '
|
|
293
|
+
id: 'border',
|
|
294
|
+
state: 'normal'
|
|
232
295
|
}
|
|
233
296
|
},
|
|
234
297
|
{
|
|
235
298
|
label: {
|
|
236
|
-
en: '
|
|
299
|
+
en: 'Corner'
|
|
237
300
|
},
|
|
238
301
|
setting: {
|
|
239
|
-
id: '
|
|
302
|
+
id: 'rounded',
|
|
303
|
+
state: 'normal'
|
|
240
304
|
}
|
|
241
305
|
},
|
|
242
306
|
{
|
|
243
307
|
label: {
|
|
244
|
-
en: '
|
|
308
|
+
en: 'Shadow'
|
|
245
309
|
},
|
|
246
310
|
setting: {
|
|
247
|
-
id: '
|
|
248
|
-
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
setting: {
|
|
252
|
-
id: 'isPreview'
|
|
311
|
+
id: 'boxShadow',
|
|
312
|
+
state: 'normal'
|
|
253
313
|
},
|
|
254
|
-
|
|
314
|
+
options: {
|
|
315
|
+
updateFields: [
|
|
316
|
+
{
|
|
317
|
+
field: 'enable',
|
|
318
|
+
settingId: 'hasBoxShadow',
|
|
319
|
+
state: 'normal'
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
controlChangeTrigger: {
|
|
324
|
+
settings: [
|
|
325
|
+
{
|
|
326
|
+
condition: `boxShadow.normal.enable === true`,
|
|
327
|
+
source: [
|
|
328
|
+
'boxShadow',
|
|
329
|
+
'hasBoxShadow'
|
|
330
|
+
],
|
|
331
|
+
action: {
|
|
332
|
+
controlId: 'hasBoxShadow',
|
|
333
|
+
groupType: 'advanced',
|
|
334
|
+
controlType: 'advanced',
|
|
335
|
+
state: 'normal',
|
|
336
|
+
newValue: true
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
condition: `boxShadow.normal.enable === false`,
|
|
341
|
+
source: [
|
|
342
|
+
'boxShadow',
|
|
343
|
+
'hasBoxShadow'
|
|
344
|
+
],
|
|
345
|
+
action: {
|
|
346
|
+
controlId: 'hasBoxShadow',
|
|
347
|
+
groupType: 'advanced',
|
|
348
|
+
controlType: 'advanced',
|
|
349
|
+
state: 'normal',
|
|
350
|
+
newValue: false
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
options: {
|
|
355
|
+
noRecordHistory: true
|
|
356
|
+
}
|
|
357
|
+
}
|
|
255
358
|
}
|
|
256
359
|
]
|
|
257
360
|
},
|
|
@@ -75,7 +75,10 @@ const VariantItem = (props)=>{
|
|
|
75
75
|
window.dispatchEvent(changeSelectedOptionEvent);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
const labelClass = system.createClass(classes.getVariantItemLabelClass(
|
|
78
|
+
const labelClass = system.createClass(classes.getVariantItemLabelClass({
|
|
79
|
+
...props,
|
|
80
|
+
available
|
|
81
|
+
}));
|
|
79
82
|
const tooltipClass = system.createClass(classes.getTooltipClass());
|
|
80
83
|
const tooltipSvgClass = system.createClass(classes.getTooltipSvgClass());
|
|
81
84
|
const variantOptionClass = system.createClass(classes.getVariantOptionClass());
|
|
@@ -183,7 +183,7 @@ const ProductVariantSettings = [
|
|
|
183
183
|
{
|
|
184
184
|
id: 'layout',
|
|
185
185
|
label: 'Layout',
|
|
186
|
-
type: '
|
|
186
|
+
type: 'option:illustration',
|
|
187
187
|
iconViewBox: '0 0 66 45',
|
|
188
188
|
enableItemBackground: true,
|
|
189
189
|
devices: {
|
|
@@ -192,15 +192,17 @@ const ProductVariantSettings = [
|
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
options: [
|
|
195
|
-
{
|
|
196
|
-
label: 'Horizontal',
|
|
197
|
-
value: 'horizontal',
|
|
198
|
-
type: 'arrange'
|
|
199
|
-
},
|
|
200
195
|
{
|
|
201
196
|
label: 'Vertical',
|
|
202
197
|
value: 'vertical',
|
|
203
|
-
type: 'arrange'
|
|
198
|
+
type: 'arrange',
|
|
199
|
+
svgName: 'gp-arrange-vertical'
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
label: 'Horizontal',
|
|
203
|
+
value: 'horizontal',
|
|
204
|
+
type: 'arrange',
|
|
205
|
+
svgName: 'gp-arrange-horizontal'
|
|
204
206
|
}
|
|
205
207
|
]
|
|
206
208
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MarqueePresets } from './configs/presets.js';
|
|
2
|
-
import { MarqueeSettings } from './configs/settings.js';
|
|
3
2
|
import { MarqueeSettingsV2 } from './configs/settingsV2.js';
|
|
4
3
|
import { SettingUIV1 } from './configs/uiV1.js';
|
|
5
4
|
import { SettingUIV2 } from './configs/uiV2.js';
|
|
@@ -12,8 +11,7 @@ const config = {
|
|
|
12
11
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.96586 7.25C4.96586 6.14543 5.86129 5.25 6.96586 5.25H17.0346C18.1391 5.25 19.0346 6.14543 19.0346 7.25V16.7484C19.0346 17.853 18.1391 18.7484 17.0346 18.7484H6.96586C5.86129 18.7484 4.96586 17.853 4.96586 16.7484V7.25ZM9.36039 6.25H6.96586C6.41357 6.25 5.96586 6.69772 5.96586 7.25V16.7484C5.96586 17.3007 6.41357 17.7484 6.96586 17.7484H9.36039L9.36039 6.25ZM10.3604 17.7484V6.25H14.1455V17.7484H10.3604ZM15.1455 17.7484H17.0346C17.5869 17.7484 18.0346 17.3007 18.0346 16.7484V7.25C18.0346 6.69771 17.5869 6.25 17.0346 6.25H15.1455V17.7484ZM3.31666 10.5447C3.51708 10.7346 3.52555 11.0511 3.33558 11.2515L2.61349 12.0133L3.33449 12.7691C3.52509 12.969 3.51762 13.2854 3.31781 13.4761C3.118 13.6667 2.8015 13.6592 2.6109 13.4594L1.693 12.4971C1.43561 12.2273 1.43493 11.803 1.69148 11.5324L2.60981 10.5636C2.79978 10.3632 3.11625 10.3547 3.31666 10.5447ZM20.6827 10.5458C20.8825 10.3552 21.199 10.3627 21.3896 10.5625L22.3075 11.5247C22.5649 11.7946 22.5656 12.2188 22.309 12.4894L21.3907 13.4583C21.2007 13.6587 20.8843 13.6672 20.6839 13.4772C20.4834 13.2872 20.475 12.9707 20.6649 12.7703L21.387 12.0085L20.666 11.2527C20.4754 11.0529 20.4829 10.7364 20.6827 10.5458ZM21.5839 12.215C21.5838 12.2149 21.584 12.2151 21.5839 12.215V12.215Z" fill="white"/>
|
|
13
12
|
</svg>
|
|
14
13
|
`,
|
|
15
|
-
settings:
|
|
16
|
-
settingsV2: MarqueeSettingsV2,
|
|
14
|
+
settings: MarqueeSettingsV2,
|
|
17
15
|
ui: SettingUIV1,
|
|
18
16
|
uiV2: SettingUIV2,
|
|
19
17
|
editorConfigs: {
|
|
@@ -39,11 +39,11 @@ const MarqueePresets = [
|
|
|
39
39
|
'spacing-setting': {
|
|
40
40
|
desktop: {
|
|
41
41
|
padding: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
type: 'custom',
|
|
43
|
+
top: '16px',
|
|
44
|
+
bottom: '16px',
|
|
45
|
+
left: '0px',
|
|
46
|
+
right: '0px'
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -121,11 +121,11 @@ const MarqueePresets = [
|
|
|
121
121
|
'spacing-setting': {
|
|
122
122
|
desktop: {
|
|
123
123
|
padding: {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
type: 'custom',
|
|
125
|
+
top: '16px',
|
|
126
|
+
bottom: '16px',
|
|
127
|
+
left: '0px',
|
|
128
|
+
right: '0px'
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -4,6 +4,40 @@ const MarqueeSettingsV2 = [
|
|
|
4
4
|
{
|
|
5
5
|
id: 'setting',
|
|
6
6
|
controls: [
|
|
7
|
+
{
|
|
8
|
+
id: 'itemWidthType',
|
|
9
|
+
type: 'select',
|
|
10
|
+
label: 'Aspect Ratio',
|
|
11
|
+
isFullWidth: true,
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
label: 'Fit to content',
|
|
15
|
+
value: 'FIT_CONTENT',
|
|
16
|
+
note: 'Match the width of the element inside'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: 'Based on the item count',
|
|
20
|
+
value: 'BASE_ON_NUMBER_OF_ITEMS',
|
|
21
|
+
note: 'Max item width is screen width divided by the number of items'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'Custom',
|
|
25
|
+
value: 'CUSTOM',
|
|
26
|
+
note: 'Set the max width as you want'
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
devices: {
|
|
30
|
+
desktop: {
|
|
31
|
+
default: 'FIT_CONTENT'
|
|
32
|
+
},
|
|
33
|
+
tablet: {
|
|
34
|
+
default: 'FIT_CONTENT'
|
|
35
|
+
},
|
|
36
|
+
mobile: {
|
|
37
|
+
default: 'CUSTOM'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
7
41
|
{
|
|
8
42
|
id: 'activeItem',
|
|
9
43
|
type: 'input',
|
|
@@ -43,7 +77,7 @@ const MarqueeSettingsV2 = [
|
|
|
43
77
|
id: 'stopOnHover',
|
|
44
78
|
label: 'stopOnHover',
|
|
45
79
|
type: 'toggle',
|
|
46
|
-
default:
|
|
80
|
+
default: true
|
|
47
81
|
},
|
|
48
82
|
{
|
|
49
83
|
id: 'speed',
|
|
@@ -88,40 +122,6 @@ const MarqueeSettingsV2 = [
|
|
|
88
122
|
label: 'hasItemShadow',
|
|
89
123
|
type: 'toggle',
|
|
90
124
|
default: false
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: 'itemWidthType',
|
|
94
|
-
type: 'select',
|
|
95
|
-
label: 'Aspect Ratio',
|
|
96
|
-
isFullWidth: true,
|
|
97
|
-
options: [
|
|
98
|
-
{
|
|
99
|
-
label: 'Fit to content',
|
|
100
|
-
value: 'FIT_CONTENT',
|
|
101
|
-
note: 'Match the width of the element inside'
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
label: 'Based on the item count',
|
|
105
|
-
value: 'BASE_ON_NUMBER_OF_ITEMS',
|
|
106
|
-
note: 'Max item width is screen width divided by the number of items'
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
label: 'Custom',
|
|
110
|
-
value: 'CUSTOM',
|
|
111
|
-
note: 'Set the max width as you want'
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
devices: {
|
|
115
|
-
desktop: {
|
|
116
|
-
default: 'BASE_ON_NUMBER_OF_ITEMS'
|
|
117
|
-
},
|
|
118
|
-
tablet: {
|
|
119
|
-
default: 'BASE_ON_NUMBER_OF_ITEMS'
|
|
120
|
-
},
|
|
121
|
-
mobile: {
|
|
122
|
-
default: 'CUSTOM'
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
125
|
}
|
|
126
126
|
]
|
|
127
127
|
},
|
|
@@ -153,15 +153,17 @@ const MarqueeSettingsV2 = [
|
|
|
153
153
|
{
|
|
154
154
|
id: 'itemSpacing',
|
|
155
155
|
label: 'Spacing',
|
|
156
|
-
type: 'input:
|
|
156
|
+
type: 'input:slider',
|
|
157
157
|
units: [
|
|
158
158
|
'px'
|
|
159
159
|
],
|
|
160
|
-
placeholder: 'Auto',
|
|
161
160
|
min: 0,
|
|
161
|
+
max: 100,
|
|
162
|
+
step: 1,
|
|
163
|
+
placeholder: 'Auto',
|
|
162
164
|
devices: {
|
|
163
165
|
desktop: {
|
|
164
|
-
default: '
|
|
166
|
+
default: '60px'
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
},
|
|
@@ -219,9 +221,9 @@ const MarqueeSettingsV2 = [
|
|
|
219
221
|
}
|
|
220
222
|
},
|
|
221
223
|
hiddenSettings: [
|
|
222
|
-
'padding',
|
|
223
224
|
'gap',
|
|
224
|
-
'shape'
|
|
225
|
+
'shape',
|
|
226
|
+
'padding'
|
|
225
227
|
]
|
|
226
228
|
},
|
|
227
229
|
{
|