@gem-sdk/components 2.0.0-dev.479 → 2.0.0-dev.481
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/ArticleReadMore/settings.js +1 -1
- package/dist/cjs/banner/setting/setting.js +6 -0
- package/dist/cjs/banner/setting/uiV2.js +13 -3
- package/dist/cjs/countdown-timer/setting/configs/settings.js +51 -6
- package/dist/cjs/countdown-timer/setting/configs/uiV2.js +177 -100
- package/dist/cjs/dialog/components/Dialog.liquid.js +5 -8
- package/dist/cjs/dialog/setting/configs/settings.js +9 -9
- package/dist/cjs/sticky/components/Sticky.liquid.js +6 -0
- package/dist/cjs/tab/setting/configs/settings.js +9 -6
- package/dist/cjs/tab/setting/configs/uiV2.js +207 -82
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +1 -1
- package/dist/esm/banner/setting/setting.js +6 -0
- package/dist/esm/banner/setting/uiV2.js +13 -3
- package/dist/esm/countdown-timer/setting/configs/settings.js +51 -6
- package/dist/esm/countdown-timer/setting/configs/uiV2.js +177 -100
- package/dist/esm/dialog/components/Dialog.liquid.js +5 -8
- package/dist/esm/dialog/setting/configs/settings.js +9 -9
- package/dist/esm/sticky/components/Sticky.liquid.js +6 -0
- package/dist/esm/tab/setting/configs/settings.js +9 -6
- package/dist/esm/tab/setting/configs/uiV2.js +207 -82
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -28,24 +28,27 @@ const TabsSettings = [
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
id: 'position',
|
|
31
|
-
type: 'layout-
|
|
31
|
+
type: 'layout-selector',
|
|
32
32
|
label: 'Layout',
|
|
33
|
-
|
|
33
|
+
iconViewBox: '0 0 74 48',
|
|
34
|
+
enableItemBackground: true,
|
|
35
|
+
itemPerRow: 2,
|
|
36
|
+
itemSpacing: 'large',
|
|
34
37
|
options: [
|
|
35
38
|
{
|
|
36
39
|
value: 'top',
|
|
37
40
|
label: 'Top',
|
|
38
|
-
|
|
41
|
+
iconName: 'gp-tab-top'
|
|
39
42
|
},
|
|
40
43
|
{
|
|
41
44
|
value: 'left',
|
|
42
45
|
label: 'Left',
|
|
43
|
-
|
|
46
|
+
iconName: 'gp-tab-top'
|
|
44
47
|
},
|
|
45
48
|
{
|
|
46
49
|
value: 'right',
|
|
47
50
|
label: 'Right',
|
|
48
|
-
|
|
51
|
+
iconName: 'gp-tab-top'
|
|
49
52
|
}
|
|
50
53
|
],
|
|
51
54
|
devices: {
|
|
@@ -142,7 +145,7 @@ const TabsSettings = [
|
|
|
142
145
|
],
|
|
143
146
|
devices: {
|
|
144
147
|
desktop: {
|
|
145
|
-
default: '
|
|
148
|
+
default: 'auto'
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
151
|
},
|
|
@@ -16,32 +16,17 @@ const SettingUIV2 = [
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
label: {
|
|
19
|
-
en: '
|
|
19
|
+
en: 'Tabs'
|
|
20
20
|
},
|
|
21
21
|
controls: [
|
|
22
22
|
{
|
|
23
23
|
label: {
|
|
24
|
-
en: '
|
|
24
|
+
en: 'Order'
|
|
25
25
|
},
|
|
26
26
|
setting: {
|
|
27
27
|
id: 'childItem'
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
{
|
|
31
|
-
label: {
|
|
32
|
-
en: 'Default active tab'
|
|
33
|
-
},
|
|
34
|
-
setting: {
|
|
35
|
-
id: 'activeKey'
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: {
|
|
42
|
-
en: 'Tab item style'
|
|
43
|
-
},
|
|
44
|
-
controls: [
|
|
45
30
|
{
|
|
46
31
|
label: {
|
|
47
32
|
en: 'Text style'
|
|
@@ -83,8 +68,8 @@ const SettingUIV2 = [
|
|
|
83
68
|
action: {
|
|
84
69
|
controlId: 'labelColor',
|
|
85
70
|
valueFromField: 'attrs.color',
|
|
86
|
-
groupType: '
|
|
87
|
-
controlType: '
|
|
71
|
+
groupType: 'setting',
|
|
72
|
+
controlType: 'setting',
|
|
88
73
|
removeDevice: true,
|
|
89
74
|
state: 'normal'
|
|
90
75
|
}
|
|
@@ -105,112 +90,252 @@ const SettingUIV2 = [
|
|
|
105
90
|
setting: {
|
|
106
91
|
id: 'panelWidth'
|
|
107
92
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
moreSettings: {
|
|
96
|
+
type: 'collapse',
|
|
97
|
+
controls: [
|
|
98
|
+
{
|
|
99
|
+
id: 'Width',
|
|
100
|
+
label: {
|
|
101
|
+
en: 'Width'
|
|
102
|
+
},
|
|
103
|
+
conditionDisplay: 'position != "top"',
|
|
104
|
+
controlConfig: {
|
|
105
|
+
id: 'width',
|
|
106
|
+
type: 'dropdown:input',
|
|
107
|
+
label: 'Width',
|
|
108
|
+
inputType: 'number',
|
|
109
|
+
units: [
|
|
110
|
+
'px',
|
|
111
|
+
'%'
|
|
112
|
+
],
|
|
113
|
+
hideUnit: false,
|
|
114
|
+
fallbackValue: 'Auto',
|
|
115
|
+
linkWithSetting: {
|
|
116
|
+
name: 'labelWidth'
|
|
117
|
+
},
|
|
118
|
+
displayOptions: [
|
|
119
|
+
{
|
|
120
|
+
label: 'Fit content',
|
|
121
|
+
value: 'Auto',
|
|
122
|
+
showValue: true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: 'Full',
|
|
126
|
+
value: '100%',
|
|
127
|
+
showValue: true
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
layout: 'horizontal'
|
|
113
132
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
133
|
+
{
|
|
134
|
+
label: {
|
|
135
|
+
en: 'Background'
|
|
136
|
+
},
|
|
137
|
+
setting: {
|
|
138
|
+
id: 'labelBgColor',
|
|
139
|
+
state: 'normal'
|
|
140
|
+
}
|
|
121
141
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
142
|
+
{
|
|
143
|
+
label: {
|
|
144
|
+
en: 'Border'
|
|
145
|
+
},
|
|
146
|
+
setting: {
|
|
147
|
+
id: 'borderTab',
|
|
148
|
+
state: 'normal'
|
|
149
|
+
}
|
|
130
150
|
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
151
|
+
{
|
|
152
|
+
conditionDisplay: 'position == "top" && labelWidth != "100%"',
|
|
153
|
+
label: {
|
|
154
|
+
en: 'Tabs align'
|
|
155
|
+
},
|
|
156
|
+
setting: {
|
|
157
|
+
id: 'panelAlign'
|
|
158
|
+
}
|
|
137
159
|
},
|
|
138
|
-
|
|
139
|
-
{
|
|
140
|
-
|
|
141
|
-
en: 'Background color'
|
|
142
|
-
},
|
|
143
|
-
setting: {
|
|
144
|
-
id: 'labelBgColor',
|
|
145
|
-
state: 'hover'
|
|
146
|
-
}
|
|
160
|
+
{
|
|
161
|
+
label: {
|
|
162
|
+
en: 'Hover effect'
|
|
147
163
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
164
|
+
type: 'combo',
|
|
165
|
+
iconName: 'polaris-edit',
|
|
166
|
+
fixedValue: 'Enabled',
|
|
167
|
+
isHideClear: true,
|
|
168
|
+
popoverLabel: {
|
|
169
|
+
en: 'Tabs hover effect'
|
|
170
|
+
},
|
|
171
|
+
controls: [
|
|
172
|
+
{
|
|
173
|
+
label: {
|
|
174
|
+
en: 'Text color'
|
|
175
|
+
},
|
|
176
|
+
setting: {
|
|
177
|
+
id: 'labelColor',
|
|
178
|
+
state: 'hover'
|
|
179
|
+
}
|
|
151
180
|
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
181
|
+
{
|
|
182
|
+
label: {
|
|
183
|
+
en: 'Border'
|
|
184
|
+
},
|
|
185
|
+
setting: {
|
|
186
|
+
id: 'borderTab',
|
|
187
|
+
state: 'hover'
|
|
188
|
+
}
|
|
155
189
|
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
label: {
|
|
194
|
+
en: 'Active state'
|
|
156
195
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
196
|
+
type: 'combo',
|
|
197
|
+
iconName: 'polaris-edit',
|
|
198
|
+
fixedValue: 'Enabled',
|
|
199
|
+
isHideClear: true,
|
|
200
|
+
popoverLabel: {
|
|
201
|
+
en: 'Tabs active state'
|
|
202
|
+
},
|
|
203
|
+
controls: [
|
|
204
|
+
{
|
|
205
|
+
label: {
|
|
206
|
+
en: 'Text color'
|
|
207
|
+
},
|
|
208
|
+
setting: {
|
|
209
|
+
id: 'labelColor',
|
|
210
|
+
state: 'active'
|
|
211
|
+
}
|
|
160
212
|
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
213
|
+
{
|
|
214
|
+
label: {
|
|
215
|
+
en: 'Background'
|
|
216
|
+
},
|
|
217
|
+
setting: {
|
|
218
|
+
id: 'labelBgColor',
|
|
219
|
+
state: 'active'
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: {
|
|
224
|
+
en: 'Border'
|
|
225
|
+
},
|
|
226
|
+
setting: {
|
|
227
|
+
id: 'borderTab',
|
|
228
|
+
state: 'active'
|
|
229
|
+
}
|
|
164
230
|
}
|
|
165
|
-
|
|
166
|
-
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
label: {
|
|
238
|
+
en: 'Background'
|
|
239
|
+
},
|
|
240
|
+
controls: [
|
|
241
|
+
{
|
|
242
|
+
setting: {
|
|
243
|
+
id: 'background'
|
|
244
|
+
},
|
|
245
|
+
layout: 'vertical'
|
|
167
246
|
}
|
|
168
247
|
]
|
|
169
248
|
},
|
|
170
249
|
{
|
|
171
250
|
label: {
|
|
172
|
-
en: '
|
|
251
|
+
en: 'Shape'
|
|
173
252
|
},
|
|
174
253
|
controls: [
|
|
175
254
|
{
|
|
176
255
|
label: {
|
|
177
|
-
en: '
|
|
256
|
+
en: 'Border'
|
|
178
257
|
},
|
|
179
258
|
setting: {
|
|
180
|
-
id: '
|
|
181
|
-
state: '
|
|
259
|
+
id: 'border',
|
|
260
|
+
state: 'normal'
|
|
182
261
|
}
|
|
183
262
|
},
|
|
184
263
|
{
|
|
185
264
|
label: {
|
|
186
|
-
en: '
|
|
265
|
+
en: 'Corner'
|
|
187
266
|
},
|
|
188
267
|
setting: {
|
|
189
|
-
id: '
|
|
190
|
-
state: '
|
|
268
|
+
id: 'rounded',
|
|
269
|
+
state: 'normal'
|
|
191
270
|
}
|
|
192
271
|
},
|
|
193
272
|
{
|
|
194
273
|
label: {
|
|
195
|
-
en: '
|
|
274
|
+
en: 'Shadow'
|
|
196
275
|
},
|
|
197
276
|
setting: {
|
|
198
|
-
id: '
|
|
199
|
-
state: '
|
|
277
|
+
id: 'boxShadow',
|
|
278
|
+
state: 'normal'
|
|
279
|
+
},
|
|
280
|
+
options: {
|
|
281
|
+
updateFields: [
|
|
282
|
+
{
|
|
283
|
+
field: 'enable',
|
|
284
|
+
settingId: 'advanced.hasBoxShadow',
|
|
285
|
+
state: 'normal'
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
controlChangeTrigger: {
|
|
290
|
+
settings: [
|
|
291
|
+
{
|
|
292
|
+
condition: `boxShadow.normal.enable === true`,
|
|
293
|
+
source: [
|
|
294
|
+
'boxShadow',
|
|
295
|
+
'hasBoxShadow'
|
|
296
|
+
],
|
|
297
|
+
action: {
|
|
298
|
+
controlId: 'hasBoxShadow',
|
|
299
|
+
groupType: 'advanced',
|
|
300
|
+
controlType: 'advanced',
|
|
301
|
+
state: 'normal',
|
|
302
|
+
newValue: true
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
condition: `boxShadow.normal.enable === false`,
|
|
307
|
+
source: [
|
|
308
|
+
'boxShadow',
|
|
309
|
+
'hasBoxShadow'
|
|
310
|
+
],
|
|
311
|
+
action: {
|
|
312
|
+
controlId: 'hasBoxShadow',
|
|
313
|
+
groupType: 'advanced',
|
|
314
|
+
controlType: 'advanced',
|
|
315
|
+
state: 'normal',
|
|
316
|
+
newValue: false
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
options: {
|
|
321
|
+
noRecordHistory: true
|
|
322
|
+
}
|
|
200
323
|
}
|
|
201
324
|
}
|
|
202
325
|
]
|
|
203
326
|
},
|
|
204
327
|
{
|
|
205
328
|
label: {
|
|
206
|
-
en: '
|
|
329
|
+
en: 'Display option'
|
|
207
330
|
},
|
|
208
331
|
controls: [
|
|
209
332
|
{
|
|
210
|
-
|
|
211
|
-
|
|
333
|
+
label: {
|
|
334
|
+
en: 'Default active'
|
|
212
335
|
},
|
|
213
|
-
|
|
336
|
+
setting: {
|
|
337
|
+
id: 'activeKey'
|
|
338
|
+
}
|
|
214
339
|
}
|
|
215
340
|
]
|
|
216
341
|
}
|
|
@@ -328,11 +328,21 @@ const SettingUIV2 = [
|
|
|
328
328
|
]
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
|
-
label: {
|
|
332
|
-
en: 'Link'
|
|
333
|
-
},
|
|
334
331
|
controls: [
|
|
335
332
|
{
|
|
333
|
+
label: {
|
|
334
|
+
en: 'Link'
|
|
335
|
+
},
|
|
336
|
+
setting: {
|
|
337
|
+
id: 'enableLink'
|
|
338
|
+
},
|
|
339
|
+
options: {
|
|
340
|
+
labelVariant: 'primary',
|
|
341
|
+
toggleStyle: 'switch'
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
conditionDisplay: 'enableLink == true',
|
|
336
346
|
setting: {
|
|
337
347
|
id: 'link'
|
|
338
348
|
},
|
|
@@ -17,7 +17,7 @@ const CountdownSettings = [
|
|
|
17
17
|
id: 'behaviour',
|
|
18
18
|
label: 'Type',
|
|
19
19
|
type: 'select',
|
|
20
|
-
default: '
|
|
20
|
+
default: 'evergreen',
|
|
21
21
|
options: [
|
|
22
22
|
{
|
|
23
23
|
label: 'To specific date',
|
|
@@ -378,6 +378,18 @@ const CountdownSettings = [
|
|
|
378
378
|
{
|
|
379
379
|
id: 'style',
|
|
380
380
|
controls: [
|
|
381
|
+
{
|
|
382
|
+
id: 'enableLabelTextStyle',
|
|
383
|
+
label: '',
|
|
384
|
+
type: 'toggle',
|
|
385
|
+
default: true
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
id: 'enableNumberTextStyle',
|
|
389
|
+
label: '',
|
|
390
|
+
type: 'toggle',
|
|
391
|
+
default: true
|
|
392
|
+
},
|
|
381
393
|
{
|
|
382
394
|
id: 'textNumberGroup',
|
|
383
395
|
label: 'Text Number',
|
|
@@ -470,6 +482,36 @@ const CountdownSettings = [
|
|
|
470
482
|
}
|
|
471
483
|
}
|
|
472
484
|
},
|
|
485
|
+
{
|
|
486
|
+
id: 'padding',
|
|
487
|
+
type: 'padding-v2',
|
|
488
|
+
devices: {
|
|
489
|
+
desktop: {
|
|
490
|
+
default: {
|
|
491
|
+
padding: {
|
|
492
|
+
type: 'custom',
|
|
493
|
+
top: '12px',
|
|
494
|
+
left: '24px',
|
|
495
|
+
bottom: '12px',
|
|
496
|
+
right: '24px'
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
compoDefaultValue: {
|
|
502
|
+
desktop: {
|
|
503
|
+
default: {
|
|
504
|
+
padding: {
|
|
505
|
+
type: 'custom',
|
|
506
|
+
top: '12px',
|
|
507
|
+
left: '24px',
|
|
508
|
+
bottom: '12px',
|
|
509
|
+
right: '24px'
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
},
|
|
473
515
|
{
|
|
474
516
|
id: 'itemSettingGroup',
|
|
475
517
|
type: 'group',
|
|
@@ -484,7 +526,9 @@ const CountdownSettings = [
|
|
|
484
526
|
{
|
|
485
527
|
id: 'verticalGap',
|
|
486
528
|
label: 'Vertical Gap',
|
|
487
|
-
type: 'input:
|
|
529
|
+
type: 'input:slider',
|
|
530
|
+
min: 0,
|
|
531
|
+
max: 120,
|
|
488
532
|
units: [
|
|
489
533
|
'px'
|
|
490
534
|
],
|
|
@@ -494,17 +538,18 @@ const CountdownSettings = [
|
|
|
494
538
|
{
|
|
495
539
|
id: 'horizontalGap',
|
|
496
540
|
label: 'Horizontal Gap',
|
|
497
|
-
type: 'input:
|
|
541
|
+
type: 'input:slider',
|
|
542
|
+
min: 0,
|
|
543
|
+
max: 120,
|
|
498
544
|
units: [
|
|
499
545
|
'px'
|
|
500
546
|
],
|
|
501
|
-
default: '8px'
|
|
502
|
-
placeholder: 'Auto'
|
|
547
|
+
default: '8px'
|
|
503
548
|
},
|
|
504
549
|
{
|
|
505
550
|
id: 'itemPadding',
|
|
506
551
|
label: 'Padding',
|
|
507
|
-
type: '
|
|
552
|
+
type: 'padding-v2',
|
|
508
553
|
default: {
|
|
509
554
|
type: 'medium'
|
|
510
555
|
},
|