@gem-sdk/components 2.0.0-dev.480 → 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/setting/configs/settings.js +2 -2
- package/dist/cjs/sticky/components/Sticky.liquid.js +6 -0
- 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/setting/configs/settings.js +2 -2
- package/dist/esm/sticky/components/Sticky.liquid.js +6 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -330,11 +330,21 @@ const SettingUIV2 = [
|
|
|
330
330
|
]
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
label: {
|
|
334
|
-
en: 'Link'
|
|
335
|
-
},
|
|
336
333
|
controls: [
|
|
337
334
|
{
|
|
335
|
+
label: {
|
|
336
|
+
en: 'Link'
|
|
337
|
+
},
|
|
338
|
+
setting: {
|
|
339
|
+
id: 'enableLink'
|
|
340
|
+
},
|
|
341
|
+
options: {
|
|
342
|
+
labelVariant: 'primary',
|
|
343
|
+
toggleStyle: 'switch'
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
conditionDisplay: 'enableLink == true',
|
|
338
348
|
setting: {
|
|
339
349
|
id: 'link'
|
|
340
350
|
},
|
|
@@ -19,7 +19,7 @@ const CountdownSettings = [
|
|
|
19
19
|
id: 'behaviour',
|
|
20
20
|
label: 'Type',
|
|
21
21
|
type: 'select',
|
|
22
|
-
default: '
|
|
22
|
+
default: 'evergreen',
|
|
23
23
|
options: [
|
|
24
24
|
{
|
|
25
25
|
label: 'To specific date',
|
|
@@ -380,6 +380,18 @@ const CountdownSettings = [
|
|
|
380
380
|
{
|
|
381
381
|
id: 'style',
|
|
382
382
|
controls: [
|
|
383
|
+
{
|
|
384
|
+
id: 'enableLabelTextStyle',
|
|
385
|
+
label: '',
|
|
386
|
+
type: 'toggle',
|
|
387
|
+
default: true
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
id: 'enableNumberTextStyle',
|
|
391
|
+
label: '',
|
|
392
|
+
type: 'toggle',
|
|
393
|
+
default: true
|
|
394
|
+
},
|
|
383
395
|
{
|
|
384
396
|
id: 'textNumberGroup',
|
|
385
397
|
label: 'Text Number',
|
|
@@ -472,6 +484,36 @@ const CountdownSettings = [
|
|
|
472
484
|
}
|
|
473
485
|
}
|
|
474
486
|
},
|
|
487
|
+
{
|
|
488
|
+
id: 'padding',
|
|
489
|
+
type: 'padding-v2',
|
|
490
|
+
devices: {
|
|
491
|
+
desktop: {
|
|
492
|
+
default: {
|
|
493
|
+
padding: {
|
|
494
|
+
type: 'custom',
|
|
495
|
+
top: '12px',
|
|
496
|
+
left: '24px',
|
|
497
|
+
bottom: '12px',
|
|
498
|
+
right: '24px'
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
compoDefaultValue: {
|
|
504
|
+
desktop: {
|
|
505
|
+
default: {
|
|
506
|
+
padding: {
|
|
507
|
+
type: 'custom',
|
|
508
|
+
top: '12px',
|
|
509
|
+
left: '24px',
|
|
510
|
+
bottom: '12px',
|
|
511
|
+
right: '24px'
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
475
517
|
{
|
|
476
518
|
id: 'itemSettingGroup',
|
|
477
519
|
type: 'group',
|
|
@@ -486,7 +528,9 @@ const CountdownSettings = [
|
|
|
486
528
|
{
|
|
487
529
|
id: 'verticalGap',
|
|
488
530
|
label: 'Vertical Gap',
|
|
489
|
-
type: 'input:
|
|
531
|
+
type: 'input:slider',
|
|
532
|
+
min: 0,
|
|
533
|
+
max: 120,
|
|
490
534
|
units: [
|
|
491
535
|
'px'
|
|
492
536
|
],
|
|
@@ -496,17 +540,18 @@ const CountdownSettings = [
|
|
|
496
540
|
{
|
|
497
541
|
id: 'horizontalGap',
|
|
498
542
|
label: 'Horizontal Gap',
|
|
499
|
-
type: 'input:
|
|
543
|
+
type: 'input:slider',
|
|
544
|
+
min: 0,
|
|
545
|
+
max: 120,
|
|
500
546
|
units: [
|
|
501
547
|
'px'
|
|
502
548
|
],
|
|
503
|
-
default: '8px'
|
|
504
|
-
placeholder: 'Auto'
|
|
549
|
+
default: '8px'
|
|
505
550
|
},
|
|
506
551
|
{
|
|
507
552
|
id: 'itemPadding',
|
|
508
553
|
label: 'Padding',
|
|
509
|
-
type: '
|
|
554
|
+
type: 'padding-v2',
|
|
510
555
|
default: {
|
|
511
556
|
type: 'medium'
|
|
512
557
|
},
|
|
@@ -1,6 +1,62 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const SettingUIV2 = [
|
|
4
|
+
{
|
|
5
|
+
label: {
|
|
6
|
+
en: 'Countdown time'
|
|
7
|
+
},
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
label: {
|
|
11
|
+
en: 'Run type'
|
|
12
|
+
},
|
|
13
|
+
setting: {
|
|
14
|
+
id: 'behaviour'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
conditionDisplay: 'behaviour === "standard"',
|
|
19
|
+
label: {
|
|
20
|
+
en: 'Date'
|
|
21
|
+
},
|
|
22
|
+
setting: {
|
|
23
|
+
id: 'dateStandard'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
conditionDisplay: 'behaviour === "standard"',
|
|
28
|
+
label: {
|
|
29
|
+
en: 'Time zone'
|
|
30
|
+
},
|
|
31
|
+
setting: {
|
|
32
|
+
id: 'timeZone'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
conditionDisplay: 'behaviour === "daily"',
|
|
37
|
+
setting: {
|
|
38
|
+
id: 'timerDaily'
|
|
39
|
+
},
|
|
40
|
+
layout: 'vertical'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
conditionDisplay: 'behaviour === "evergreen"',
|
|
44
|
+
setting: {
|
|
45
|
+
id: 'timerEverygreen'
|
|
46
|
+
},
|
|
47
|
+
layout: 'vertical'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
conditionDisplay: 'behaviour === "evergreen"',
|
|
51
|
+
label: {
|
|
52
|
+
en: 'Loop (refresh after finish)'
|
|
53
|
+
},
|
|
54
|
+
setting: {
|
|
55
|
+
id: 'loopAfterFinish'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
4
60
|
{
|
|
5
61
|
label: {
|
|
6
62
|
en: 'Item management'
|
|
@@ -9,7 +65,7 @@ const SettingUIV2 = [
|
|
|
9
65
|
{
|
|
10
66
|
type: 'combo',
|
|
11
67
|
label: {
|
|
12
|
-
en: '
|
|
68
|
+
en: 'Items'
|
|
13
69
|
},
|
|
14
70
|
fixedValue: 'Edit...',
|
|
15
71
|
iconName: 'polaris-list-bulleted',
|
|
@@ -109,184 +165,162 @@ const SettingUIV2 = [
|
|
|
109
165
|
},
|
|
110
166
|
{
|
|
111
167
|
label: {
|
|
112
|
-
en: '
|
|
168
|
+
en: 'Hover effect'
|
|
113
169
|
},
|
|
114
170
|
controls: [
|
|
115
171
|
{
|
|
116
172
|
label: {
|
|
117
|
-
en: '
|
|
173
|
+
en: 'Border'
|
|
118
174
|
},
|
|
119
175
|
setting: {
|
|
120
|
-
id: '
|
|
176
|
+
id: 'borderState',
|
|
177
|
+
state: 'hover'
|
|
121
178
|
}
|
|
122
179
|
},
|
|
123
180
|
{
|
|
124
|
-
conditionDisplay: 'behaviour === "standard"',
|
|
125
181
|
label: {
|
|
126
|
-
en: '
|
|
182
|
+
en: 'Corner'
|
|
127
183
|
},
|
|
128
184
|
setting: {
|
|
129
|
-
id: '
|
|
185
|
+
id: 'roundedState',
|
|
186
|
+
state: 'hover'
|
|
130
187
|
}
|
|
131
|
-
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: {
|
|
193
|
+
en: 'Item style'
|
|
194
|
+
},
|
|
195
|
+
controls: [
|
|
132
196
|
{
|
|
133
|
-
conditionDisplay: 'behaviour === "standard"',
|
|
134
197
|
label: {
|
|
135
|
-
en: '
|
|
198
|
+
en: 'Item gap'
|
|
136
199
|
},
|
|
137
200
|
setting: {
|
|
138
|
-
id: '
|
|
201
|
+
id: 'horizontalGap'
|
|
139
202
|
}
|
|
140
203
|
},
|
|
141
204
|
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
id: 'timerDaily'
|
|
205
|
+
label: {
|
|
206
|
+
en: 'Padding'
|
|
145
207
|
},
|
|
146
|
-
|
|
208
|
+
setting: {
|
|
209
|
+
id: 'itemPadding'
|
|
210
|
+
}
|
|
147
211
|
},
|
|
148
212
|
{
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
id: 'timerEverygreen'
|
|
213
|
+
label: {
|
|
214
|
+
en: 'Background'
|
|
152
215
|
},
|
|
153
|
-
|
|
216
|
+
setting: {
|
|
217
|
+
id: 'backgroundItemColor'
|
|
218
|
+
}
|
|
154
219
|
},
|
|
155
220
|
{
|
|
156
|
-
conditionDisplay: 'behaviour === "evergreen"',
|
|
157
221
|
label: {
|
|
158
|
-
en: '
|
|
222
|
+
en: 'Border'
|
|
159
223
|
},
|
|
160
224
|
setting: {
|
|
161
|
-
id: '
|
|
225
|
+
id: 'borderState',
|
|
226
|
+
state: 'normal'
|
|
162
227
|
}
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: {
|
|
168
|
-
en: 'Items gap'
|
|
169
|
-
},
|
|
170
|
-
controls: [
|
|
228
|
+
},
|
|
171
229
|
{
|
|
172
230
|
label: {
|
|
173
|
-
en: '
|
|
231
|
+
en: 'Corner'
|
|
174
232
|
},
|
|
175
233
|
setting: {
|
|
176
|
-
id: '
|
|
234
|
+
id: 'roundedState',
|
|
235
|
+
state: 'normal'
|
|
177
236
|
}
|
|
178
237
|
}
|
|
179
238
|
]
|
|
180
239
|
},
|
|
181
240
|
{
|
|
182
|
-
label: {
|
|
183
|
-
en: 'Countdown item'
|
|
184
|
-
},
|
|
185
241
|
controls: [
|
|
186
242
|
{
|
|
187
243
|
label: {
|
|
188
|
-
en: '
|
|
244
|
+
en: 'Item style'
|
|
189
245
|
},
|
|
190
246
|
setting: {
|
|
191
|
-
id: '
|
|
247
|
+
id: 'enableLabelTextStyle'
|
|
248
|
+
},
|
|
249
|
+
options: {
|
|
250
|
+
labelVariant: 'primary',
|
|
251
|
+
toggleStyle: 'switch'
|
|
192
252
|
}
|
|
193
253
|
},
|
|
194
254
|
{
|
|
195
255
|
label: {
|
|
196
|
-
en: '
|
|
256
|
+
en: 'Time'
|
|
197
257
|
},
|
|
258
|
+
conditionDisplay: 'enableLabelTextStyle == true',
|
|
198
259
|
type: 'combo',
|
|
199
260
|
iconName: 'polaris-text-title',
|
|
200
|
-
|
|
261
|
+
getValueFromSettingID: 'labelTypo.type',
|
|
201
262
|
isHideClear: true,
|
|
202
263
|
controls: [
|
|
203
264
|
{
|
|
204
265
|
setting: {
|
|
205
|
-
id: '
|
|
266
|
+
id: 'labelTypo'
|
|
206
267
|
},
|
|
207
268
|
layout: 'vertical'
|
|
208
269
|
}
|
|
209
270
|
]
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
controls: [
|
|
276
|
+
{
|
|
277
|
+
label: {
|
|
278
|
+
en: 'Caption'
|
|
279
|
+
},
|
|
280
|
+
setting: {
|
|
281
|
+
id: 'enableNumberTextStyle'
|
|
282
|
+
},
|
|
283
|
+
options: {
|
|
284
|
+
labelVariant: 'primary',
|
|
285
|
+
toggleStyle: 'switch'
|
|
286
|
+
}
|
|
210
287
|
},
|
|
211
288
|
{
|
|
212
289
|
label: {
|
|
213
|
-
en: '
|
|
290
|
+
en: 'Text style'
|
|
214
291
|
},
|
|
292
|
+
conditionDisplay: 'enableNumberTextStyle == true',
|
|
215
293
|
type: 'combo',
|
|
216
294
|
iconName: 'polaris-text-title',
|
|
217
|
-
fixedValue: 'Edit...',
|
|
218
295
|
isHideClear: true,
|
|
296
|
+
getValueFromSettingID: 'numTypo.type',
|
|
219
297
|
controls: [
|
|
220
298
|
{
|
|
221
299
|
setting: {
|
|
222
|
-
id: '
|
|
300
|
+
id: 'numTypo'
|
|
223
301
|
},
|
|
224
302
|
layout: 'vertical'
|
|
225
303
|
}
|
|
226
304
|
]
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
label: {
|
|
230
|
-
en: 'Gap to digit'
|
|
231
|
-
},
|
|
232
|
-
setting: {
|
|
233
|
-
id: 'verticalGap'
|
|
234
|
-
}
|
|
235
305
|
}
|
|
236
|
-
]
|
|
237
|
-
moreSettings: {
|
|
238
|
-
type: 'collapse',
|
|
239
|
-
controls: [
|
|
240
|
-
{
|
|
241
|
-
label: {
|
|
242
|
-
en: 'Background'
|
|
243
|
-
},
|
|
244
|
-
setting: {
|
|
245
|
-
id: 'backgroundItemColor'
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
label: {
|
|
250
|
-
en: 'Border'
|
|
251
|
-
},
|
|
252
|
-
setting: {
|
|
253
|
-
id: 'borderState',
|
|
254
|
-
state: 'normal'
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
label: {
|
|
259
|
-
en: 'Corner'
|
|
260
|
-
},
|
|
261
|
-
setting: {
|
|
262
|
-
id: 'roundedState',
|
|
263
|
-
state: 'normal'
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
}
|
|
306
|
+
]
|
|
268
307
|
},
|
|
269
308
|
{
|
|
270
309
|
label: {
|
|
271
|
-
en: '
|
|
310
|
+
en: 'Size'
|
|
272
311
|
},
|
|
273
312
|
controls: [
|
|
274
313
|
{
|
|
275
314
|
label: {
|
|
276
|
-
en: '
|
|
277
|
-
},
|
|
278
|
-
setting: {
|
|
279
|
-
id: 'borderState',
|
|
280
|
-
state: 'hover'
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
label: {
|
|
285
|
-
en: 'Corner'
|
|
315
|
+
en: 'Padding'
|
|
286
316
|
},
|
|
287
|
-
|
|
288
|
-
id: '
|
|
289
|
-
|
|
317
|
+
controlConfig: {
|
|
318
|
+
id: 'padding',
|
|
319
|
+
type: 'padding-v2',
|
|
320
|
+
linkWithSetting: {
|
|
321
|
+
name: 'spacing-setting',
|
|
322
|
+
field: 'padding'
|
|
323
|
+
}
|
|
290
324
|
}
|
|
291
325
|
}
|
|
292
326
|
]
|
|
@@ -295,14 +329,13 @@ const SettingUIV2 = [
|
|
|
295
329
|
label: {
|
|
296
330
|
en: 'Shape'
|
|
297
331
|
},
|
|
298
|
-
conditionDisplay: 'pageType != "POST_PURCHASE"',
|
|
299
332
|
controls: [
|
|
300
333
|
{
|
|
301
334
|
label: {
|
|
302
335
|
en: 'Border'
|
|
303
336
|
},
|
|
304
337
|
setting: {
|
|
305
|
-
id: '
|
|
338
|
+
id: 'borderState',
|
|
306
339
|
state: 'normal'
|
|
307
340
|
}
|
|
308
341
|
},
|
|
@@ -311,7 +344,7 @@ const SettingUIV2 = [
|
|
|
311
344
|
en: 'Corner'
|
|
312
345
|
},
|
|
313
346
|
setting: {
|
|
314
|
-
id: '
|
|
347
|
+
id: 'roundedState',
|
|
315
348
|
state: 'normal'
|
|
316
349
|
}
|
|
317
350
|
},
|
|
@@ -322,6 +355,50 @@ const SettingUIV2 = [
|
|
|
322
355
|
setting: {
|
|
323
356
|
id: 'boxShadow',
|
|
324
357
|
state: 'normal'
|
|
358
|
+
},
|
|
359
|
+
options: {
|
|
360
|
+
updateFields: [
|
|
361
|
+
{
|
|
362
|
+
field: 'enable',
|
|
363
|
+
settingId: 'advanced.hasBoxShadow',
|
|
364
|
+
state: 'normal'
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
controlChangeTrigger: {
|
|
369
|
+
settings: [
|
|
370
|
+
{
|
|
371
|
+
condition: `boxShadow.normal.enable === true`,
|
|
372
|
+
source: [
|
|
373
|
+
'boxShadow',
|
|
374
|
+
'hasBoxShadow'
|
|
375
|
+
],
|
|
376
|
+
action: {
|
|
377
|
+
controlId: 'hasBoxShadow',
|
|
378
|
+
groupType: 'advanced',
|
|
379
|
+
controlType: 'advanced',
|
|
380
|
+
state: 'normal',
|
|
381
|
+
newValue: true
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
condition: `boxShadow.normal.enable === false`,
|
|
386
|
+
source: [
|
|
387
|
+
'boxShadow',
|
|
388
|
+
'hasBoxShadow'
|
|
389
|
+
],
|
|
390
|
+
action: {
|
|
391
|
+
controlId: 'hasBoxShadow',
|
|
392
|
+
groupType: 'advanced',
|
|
393
|
+
controlType: 'advanced',
|
|
394
|
+
state: 'normal',
|
|
395
|
+
newValue: false
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
options: {
|
|
400
|
+
noRecordHistory: true
|
|
401
|
+
}
|
|
325
402
|
}
|
|
326
403
|
}
|
|
327
404
|
]
|
|
@@ -340,7 +340,7 @@ const DialogSettings = [
|
|
|
340
340
|
desktop: {
|
|
341
341
|
default: {
|
|
342
342
|
type: 'color',
|
|
343
|
-
color: 'bg-
|
|
343
|
+
color: 'bg-1',
|
|
344
344
|
image: {
|
|
345
345
|
src: '',
|
|
346
346
|
width: 0,
|
|
@@ -360,7 +360,7 @@ const DialogSettings = [
|
|
|
360
360
|
desktop: {
|
|
361
361
|
default: {
|
|
362
362
|
type: 'color',
|
|
363
|
-
color: 'bg-
|
|
363
|
+
color: 'bg-1',
|
|
364
364
|
image: {
|
|
365
365
|
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
366
366
|
width: 1200,
|
|
@@ -36,6 +36,11 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
|
|
|
36
36
|
d: advancedDisplay
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
+
// Fix for drawer page content theme 1.0
|
|
40
|
+
const styleInline = `.drawer-page-content {
|
|
41
|
+
transform: none !important;
|
|
42
|
+
-webkit-transform: none !important;
|
|
43
|
+
}`;
|
|
39
44
|
return core.template`
|
|
40
45
|
${core.RenderIf(!!preloadBgImage, `${core.RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
|
|
41
46
|
<gp-sticky
|
|
@@ -46,6 +51,7 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
|
|
|
46
51
|
class="${computedContainerClasses} ${helpers.getSettingPreloadData('gps-lazy')}"
|
|
47
52
|
style="${computedContainerStyles}"
|
|
48
53
|
>
|
|
54
|
+
<style>${styleInline}</style>
|
|
49
55
|
<div ${{
|
|
50
56
|
...builderAttrs
|
|
51
57
|
}} style="${{
|
|
@@ -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
|
},
|
|
@@ -1,4 +1,60 @@
|
|
|
1
1
|
const SettingUIV2 = [
|
|
2
|
+
{
|
|
3
|
+
label: {
|
|
4
|
+
en: 'Countdown time'
|
|
5
|
+
},
|
|
6
|
+
controls: [
|
|
7
|
+
{
|
|
8
|
+
label: {
|
|
9
|
+
en: 'Run type'
|
|
10
|
+
},
|
|
11
|
+
setting: {
|
|
12
|
+
id: 'behaviour'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
conditionDisplay: 'behaviour === "standard"',
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Date'
|
|
19
|
+
},
|
|
20
|
+
setting: {
|
|
21
|
+
id: 'dateStandard'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
conditionDisplay: 'behaviour === "standard"',
|
|
26
|
+
label: {
|
|
27
|
+
en: 'Time zone'
|
|
28
|
+
},
|
|
29
|
+
setting: {
|
|
30
|
+
id: 'timeZone'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
conditionDisplay: 'behaviour === "daily"',
|
|
35
|
+
setting: {
|
|
36
|
+
id: 'timerDaily'
|
|
37
|
+
},
|
|
38
|
+
layout: 'vertical'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
conditionDisplay: 'behaviour === "evergreen"',
|
|
42
|
+
setting: {
|
|
43
|
+
id: 'timerEverygreen'
|
|
44
|
+
},
|
|
45
|
+
layout: 'vertical'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
conditionDisplay: 'behaviour === "evergreen"',
|
|
49
|
+
label: {
|
|
50
|
+
en: 'Loop (refresh after finish)'
|
|
51
|
+
},
|
|
52
|
+
setting: {
|
|
53
|
+
id: 'loopAfterFinish'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
2
58
|
{
|
|
3
59
|
label: {
|
|
4
60
|
en: 'Item management'
|
|
@@ -7,7 +63,7 @@ const SettingUIV2 = [
|
|
|
7
63
|
{
|
|
8
64
|
type: 'combo',
|
|
9
65
|
label: {
|
|
10
|
-
en: '
|
|
66
|
+
en: 'Items'
|
|
11
67
|
},
|
|
12
68
|
fixedValue: 'Edit...',
|
|
13
69
|
iconName: 'polaris-list-bulleted',
|
|
@@ -107,184 +163,162 @@ const SettingUIV2 = [
|
|
|
107
163
|
},
|
|
108
164
|
{
|
|
109
165
|
label: {
|
|
110
|
-
en: '
|
|
166
|
+
en: 'Hover effect'
|
|
111
167
|
},
|
|
112
168
|
controls: [
|
|
113
169
|
{
|
|
114
170
|
label: {
|
|
115
|
-
en: '
|
|
171
|
+
en: 'Border'
|
|
116
172
|
},
|
|
117
173
|
setting: {
|
|
118
|
-
id: '
|
|
174
|
+
id: 'borderState',
|
|
175
|
+
state: 'hover'
|
|
119
176
|
}
|
|
120
177
|
},
|
|
121
178
|
{
|
|
122
|
-
conditionDisplay: 'behaviour === "standard"',
|
|
123
179
|
label: {
|
|
124
|
-
en: '
|
|
180
|
+
en: 'Corner'
|
|
125
181
|
},
|
|
126
182
|
setting: {
|
|
127
|
-
id: '
|
|
183
|
+
id: 'roundedState',
|
|
184
|
+
state: 'hover'
|
|
128
185
|
}
|
|
129
|
-
}
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
label: {
|
|
191
|
+
en: 'Item style'
|
|
192
|
+
},
|
|
193
|
+
controls: [
|
|
130
194
|
{
|
|
131
|
-
conditionDisplay: 'behaviour === "standard"',
|
|
132
195
|
label: {
|
|
133
|
-
en: '
|
|
196
|
+
en: 'Item gap'
|
|
134
197
|
},
|
|
135
198
|
setting: {
|
|
136
|
-
id: '
|
|
199
|
+
id: 'horizontalGap'
|
|
137
200
|
}
|
|
138
201
|
},
|
|
139
202
|
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
id: 'timerDaily'
|
|
203
|
+
label: {
|
|
204
|
+
en: 'Padding'
|
|
143
205
|
},
|
|
144
|
-
|
|
206
|
+
setting: {
|
|
207
|
+
id: 'itemPadding'
|
|
208
|
+
}
|
|
145
209
|
},
|
|
146
210
|
{
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
id: 'timerEverygreen'
|
|
211
|
+
label: {
|
|
212
|
+
en: 'Background'
|
|
150
213
|
},
|
|
151
|
-
|
|
214
|
+
setting: {
|
|
215
|
+
id: 'backgroundItemColor'
|
|
216
|
+
}
|
|
152
217
|
},
|
|
153
218
|
{
|
|
154
|
-
conditionDisplay: 'behaviour === "evergreen"',
|
|
155
219
|
label: {
|
|
156
|
-
en: '
|
|
220
|
+
en: 'Border'
|
|
157
221
|
},
|
|
158
222
|
setting: {
|
|
159
|
-
id: '
|
|
223
|
+
id: 'borderState',
|
|
224
|
+
state: 'normal'
|
|
160
225
|
}
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
label: {
|
|
166
|
-
en: 'Items gap'
|
|
167
|
-
},
|
|
168
|
-
controls: [
|
|
226
|
+
},
|
|
169
227
|
{
|
|
170
228
|
label: {
|
|
171
|
-
en: '
|
|
229
|
+
en: 'Corner'
|
|
172
230
|
},
|
|
173
231
|
setting: {
|
|
174
|
-
id: '
|
|
232
|
+
id: 'roundedState',
|
|
233
|
+
state: 'normal'
|
|
175
234
|
}
|
|
176
235
|
}
|
|
177
236
|
]
|
|
178
237
|
},
|
|
179
238
|
{
|
|
180
|
-
label: {
|
|
181
|
-
en: 'Countdown item'
|
|
182
|
-
},
|
|
183
239
|
controls: [
|
|
184
240
|
{
|
|
185
241
|
label: {
|
|
186
|
-
en: '
|
|
242
|
+
en: 'Item style'
|
|
187
243
|
},
|
|
188
244
|
setting: {
|
|
189
|
-
id: '
|
|
245
|
+
id: 'enableLabelTextStyle'
|
|
246
|
+
},
|
|
247
|
+
options: {
|
|
248
|
+
labelVariant: 'primary',
|
|
249
|
+
toggleStyle: 'switch'
|
|
190
250
|
}
|
|
191
251
|
},
|
|
192
252
|
{
|
|
193
253
|
label: {
|
|
194
|
-
en: '
|
|
254
|
+
en: 'Time'
|
|
195
255
|
},
|
|
256
|
+
conditionDisplay: 'enableLabelTextStyle == true',
|
|
196
257
|
type: 'combo',
|
|
197
258
|
iconName: 'polaris-text-title',
|
|
198
|
-
|
|
259
|
+
getValueFromSettingID: 'labelTypo.type',
|
|
199
260
|
isHideClear: true,
|
|
200
261
|
controls: [
|
|
201
262
|
{
|
|
202
263
|
setting: {
|
|
203
|
-
id: '
|
|
264
|
+
id: 'labelTypo'
|
|
204
265
|
},
|
|
205
266
|
layout: 'vertical'
|
|
206
267
|
}
|
|
207
268
|
]
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
controls: [
|
|
274
|
+
{
|
|
275
|
+
label: {
|
|
276
|
+
en: 'Caption'
|
|
277
|
+
},
|
|
278
|
+
setting: {
|
|
279
|
+
id: 'enableNumberTextStyle'
|
|
280
|
+
},
|
|
281
|
+
options: {
|
|
282
|
+
labelVariant: 'primary',
|
|
283
|
+
toggleStyle: 'switch'
|
|
284
|
+
}
|
|
208
285
|
},
|
|
209
286
|
{
|
|
210
287
|
label: {
|
|
211
|
-
en: '
|
|
288
|
+
en: 'Text style'
|
|
212
289
|
},
|
|
290
|
+
conditionDisplay: 'enableNumberTextStyle == true',
|
|
213
291
|
type: 'combo',
|
|
214
292
|
iconName: 'polaris-text-title',
|
|
215
|
-
fixedValue: 'Edit...',
|
|
216
293
|
isHideClear: true,
|
|
294
|
+
getValueFromSettingID: 'numTypo.type',
|
|
217
295
|
controls: [
|
|
218
296
|
{
|
|
219
297
|
setting: {
|
|
220
|
-
id: '
|
|
298
|
+
id: 'numTypo'
|
|
221
299
|
},
|
|
222
300
|
layout: 'vertical'
|
|
223
301
|
}
|
|
224
302
|
]
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
label: {
|
|
228
|
-
en: 'Gap to digit'
|
|
229
|
-
},
|
|
230
|
-
setting: {
|
|
231
|
-
id: 'verticalGap'
|
|
232
|
-
}
|
|
233
303
|
}
|
|
234
|
-
]
|
|
235
|
-
moreSettings: {
|
|
236
|
-
type: 'collapse',
|
|
237
|
-
controls: [
|
|
238
|
-
{
|
|
239
|
-
label: {
|
|
240
|
-
en: 'Background'
|
|
241
|
-
},
|
|
242
|
-
setting: {
|
|
243
|
-
id: 'backgroundItemColor'
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
label: {
|
|
248
|
-
en: 'Border'
|
|
249
|
-
},
|
|
250
|
-
setting: {
|
|
251
|
-
id: 'borderState',
|
|
252
|
-
state: 'normal'
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
label: {
|
|
257
|
-
en: 'Corner'
|
|
258
|
-
},
|
|
259
|
-
setting: {
|
|
260
|
-
id: 'roundedState',
|
|
261
|
-
state: 'normal'
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
]
|
|
265
|
-
}
|
|
304
|
+
]
|
|
266
305
|
},
|
|
267
306
|
{
|
|
268
307
|
label: {
|
|
269
|
-
en: '
|
|
308
|
+
en: 'Size'
|
|
270
309
|
},
|
|
271
310
|
controls: [
|
|
272
311
|
{
|
|
273
312
|
label: {
|
|
274
|
-
en: '
|
|
275
|
-
},
|
|
276
|
-
setting: {
|
|
277
|
-
id: 'borderState',
|
|
278
|
-
state: 'hover'
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
label: {
|
|
283
|
-
en: 'Corner'
|
|
313
|
+
en: 'Padding'
|
|
284
314
|
},
|
|
285
|
-
|
|
286
|
-
id: '
|
|
287
|
-
|
|
315
|
+
controlConfig: {
|
|
316
|
+
id: 'padding',
|
|
317
|
+
type: 'padding-v2',
|
|
318
|
+
linkWithSetting: {
|
|
319
|
+
name: 'spacing-setting',
|
|
320
|
+
field: 'padding'
|
|
321
|
+
}
|
|
288
322
|
}
|
|
289
323
|
}
|
|
290
324
|
]
|
|
@@ -293,14 +327,13 @@ const SettingUIV2 = [
|
|
|
293
327
|
label: {
|
|
294
328
|
en: 'Shape'
|
|
295
329
|
},
|
|
296
|
-
conditionDisplay: 'pageType != "POST_PURCHASE"',
|
|
297
330
|
controls: [
|
|
298
331
|
{
|
|
299
332
|
label: {
|
|
300
333
|
en: 'Border'
|
|
301
334
|
},
|
|
302
335
|
setting: {
|
|
303
|
-
id: '
|
|
336
|
+
id: 'borderState',
|
|
304
337
|
state: 'normal'
|
|
305
338
|
}
|
|
306
339
|
},
|
|
@@ -309,7 +342,7 @@ const SettingUIV2 = [
|
|
|
309
342
|
en: 'Corner'
|
|
310
343
|
},
|
|
311
344
|
setting: {
|
|
312
|
-
id: '
|
|
345
|
+
id: 'roundedState',
|
|
313
346
|
state: 'normal'
|
|
314
347
|
}
|
|
315
348
|
},
|
|
@@ -320,6 +353,50 @@ const SettingUIV2 = [
|
|
|
320
353
|
setting: {
|
|
321
354
|
id: 'boxShadow',
|
|
322
355
|
state: 'normal'
|
|
356
|
+
},
|
|
357
|
+
options: {
|
|
358
|
+
updateFields: [
|
|
359
|
+
{
|
|
360
|
+
field: 'enable',
|
|
361
|
+
settingId: 'advanced.hasBoxShadow',
|
|
362
|
+
state: 'normal'
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
controlChangeTrigger: {
|
|
367
|
+
settings: [
|
|
368
|
+
{
|
|
369
|
+
condition: `boxShadow.normal.enable === true`,
|
|
370
|
+
source: [
|
|
371
|
+
'boxShadow',
|
|
372
|
+
'hasBoxShadow'
|
|
373
|
+
],
|
|
374
|
+
action: {
|
|
375
|
+
controlId: 'hasBoxShadow',
|
|
376
|
+
groupType: 'advanced',
|
|
377
|
+
controlType: 'advanced',
|
|
378
|
+
state: 'normal',
|
|
379
|
+
newValue: true
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
condition: `boxShadow.normal.enable === false`,
|
|
384
|
+
source: [
|
|
385
|
+
'boxShadow',
|
|
386
|
+
'hasBoxShadow'
|
|
387
|
+
],
|
|
388
|
+
action: {
|
|
389
|
+
controlId: 'hasBoxShadow',
|
|
390
|
+
groupType: 'advanced',
|
|
391
|
+
controlType: 'advanced',
|
|
392
|
+
state: 'normal',
|
|
393
|
+
newValue: false
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
options: {
|
|
398
|
+
noRecordHistory: true
|
|
399
|
+
}
|
|
323
400
|
}
|
|
324
401
|
}
|
|
325
402
|
]
|
|
@@ -338,7 +338,7 @@ const DialogSettings = [
|
|
|
338
338
|
desktop: {
|
|
339
339
|
default: {
|
|
340
340
|
type: 'color',
|
|
341
|
-
color: 'bg-
|
|
341
|
+
color: 'bg-1',
|
|
342
342
|
image: {
|
|
343
343
|
src: '',
|
|
344
344
|
width: 0,
|
|
@@ -358,7 +358,7 @@ const DialogSettings = [
|
|
|
358
358
|
desktop: {
|
|
359
359
|
default: {
|
|
360
360
|
type: 'color',
|
|
361
|
-
color: 'bg-
|
|
361
|
+
color: 'bg-1',
|
|
362
362
|
image: {
|
|
363
363
|
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
364
364
|
width: 1200,
|
|
@@ -32,6 +32,11 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
|
|
|
32
32
|
d: advancedDisplay
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
+
// Fix for drawer page content theme 1.0
|
|
36
|
+
const styleInline = `.drawer-page-content {
|
|
37
|
+
transform: none !important;
|
|
38
|
+
-webkit-transform: none !important;
|
|
39
|
+
}`;
|
|
35
40
|
return template`
|
|
36
41
|
${RenderIf(!!preloadBgImage, `${RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
|
|
37
42
|
<gp-sticky
|
|
@@ -42,6 +47,7 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
|
|
|
42
47
|
class="${computedContainerClasses} ${getSettingPreloadData('gps-lazy')}"
|
|
43
48
|
style="${computedContainerStyles}"
|
|
44
49
|
>
|
|
50
|
+
<style>${styleInline}</style>
|
|
45
51
|
<div ${{
|
|
46
52
|
...builderAttrs
|
|
47
53
|
}} style="${{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -717,6 +717,7 @@ type Setting$4 = {
|
|
|
717
717
|
title?: string;
|
|
718
718
|
aspectRatio?: ObjectDevices$1<string>;
|
|
719
719
|
ratioOptions?: ObjectDevices$1<Ratio>;
|
|
720
|
+
enableLink?: boolean;
|
|
720
721
|
} & Pick<NonNullable<RowProps['setting']>, 'layout' | 'horizontalAlign'>;
|
|
721
722
|
type Styles$2 = {
|
|
722
723
|
height?: ObjectDevices$1<string>;
|
|
@@ -1331,6 +1332,9 @@ type CountdownProps = BaseProps<{
|
|
|
1331
1332
|
minWidth?: string;
|
|
1332
1333
|
colorNumber?: ColorValueType$1;
|
|
1333
1334
|
colorLabel?: ColorValueType$1;
|
|
1335
|
+
enableNumberTextStyle?: boolean;
|
|
1336
|
+
enableLabelTextStyle?: boolean;
|
|
1337
|
+
padding?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1334
1338
|
/**
|
|
1335
1339
|
* @deprecated use `numTypo` instead
|
|
1336
1340
|
*/
|