@gem-sdk/components 2.0.0-dev.480 → 2.0.0-dev.482
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/components/ArticleList.js +1 -2
- package/dist/cjs/article/components/ArticleList.liquid.js +1 -1
- package/dist/cjs/article/setting/ArticleList.js +7 -591
- package/dist/cjs/article/setting/configs/ArticleList/presets.js +346 -0
- package/dist/cjs/article/setting/configs/ArticleList/settings.js +315 -0
- package/dist/cjs/article/setting/configs/ArticleList/uiV2.js +201 -0
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +1 -1
- package/dist/cjs/banner/components/HeroBanner.liquid.js +2 -2
- package/dist/cjs/banner/components/HeroBannerItem.js +15 -7
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +13 -11
- package/dist/cjs/banner/components/common/common.js +13 -29
- package/dist/cjs/banner/components/common/getClasses.js +2 -1
- package/dist/cjs/banner/components/common/getStyle.js +2 -0
- package/dist/cjs/banner/components/hooks/useHeroBanner.js +2 -7
- package/dist/cjs/banner/setting/setting.js +12 -0
- package/dist/cjs/banner/setting/uiV2.js +28 -6
- 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/product/components/ProductDiscountTag/index.liquid.js +3 -2
- package/dist/cjs/product/components/ProductSKU/Sku.liquid.js +3 -2
- package/dist/cjs/product/setting/product-price/configs/uiV2.js +1 -1
- package/dist/cjs/sticky/components/Sticky.liquid.js +6 -0
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +7 -6
- package/dist/cjs/stock-counter/setting/configs/uiV2.js +36 -6
- package/dist/esm/article/components/ArticleList.js +1 -2
- package/dist/esm/article/components/ArticleList.liquid.js +1 -1
- package/dist/esm/article/setting/ArticleList.js +7 -591
- package/dist/esm/article/setting/configs/ArticleList/presets.js +344 -0
- package/dist/esm/article/setting/configs/ArticleList/settings.js +313 -0
- package/dist/esm/article/setting/configs/ArticleList/uiV2.js +199 -0
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +1 -1
- package/dist/esm/banner/components/HeroBanner.liquid.js +2 -2
- package/dist/esm/banner/components/HeroBannerItem.js +16 -8
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +12 -10
- package/dist/esm/banner/components/common/common.js +15 -30
- package/dist/esm/banner/components/common/getClasses.js +2 -1
- package/dist/esm/banner/components/common/getStyle.js +2 -0
- package/dist/esm/banner/components/hooks/useHeroBanner.js +4 -9
- package/dist/esm/banner/setting/setting.js +12 -0
- package/dist/esm/banner/setting/uiV2.js +28 -6
- 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/product/components/ProductDiscountTag/index.liquid.js +3 -2
- package/dist/esm/product/components/ProductSKU/Sku.liquid.js +4 -3
- package/dist/esm/product/setting/product-price/configs/uiV2.js +1 -1
- package/dist/esm/sticky/components/Sticky.liquid.js +6 -0
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +8 -7
- package/dist/esm/stock-counter/setting/configs/uiV2.js +36 -6
- package/dist/types/index.d.ts +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ArticleListPresets = [
|
|
4
|
+
{
|
|
5
|
+
id: 'article-list',
|
|
6
|
+
name: {
|
|
7
|
+
en: 'Article List'
|
|
8
|
+
},
|
|
9
|
+
icon: {
|
|
10
|
+
desktop: `
|
|
11
|
+
<svg width="94" height="48" viewBox="0 0 94 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
+
<rect y="2.83499" width="28.6667" height="29.33" rx="3" fill="#424242"/>
|
|
13
|
+
<circle cx="9" cy="13.9991" r="2" fill="#F9F9F9"/>
|
|
14
|
+
<path d="M7.19685 22.6443L9.40968 20.0585C9.4846 19.9708 9.57719 19.8999 9.68141 19.8503C9.78562 19.8007 9.89913 19.7737 10.0145 19.7709C10.1299 19.7681 10.2446 19.7896 10.3511 19.8341C10.4576 19.8785 10.5535 19.9449 10.6326 20.0289L11.6673 21.1262L15.712 16.2937C15.7912 16.199 15.8908 16.1234 16.0033 16.0724C16.1157 16.0214 16.2383 15.9964 16.3618 15.9993C16.4852 16.0021 16.6065 16.0327 16.7165 16.0888C16.8265 16.145 16.9224 16.2251 16.9972 16.3233L21.8329 22.6762C21.9254 22.798 21.982 22.9431 21.9964 23.0953C22.0107 23.2475 21.9823 23.4006 21.9144 23.5375C21.8464 23.6745 21.7415 23.7897 21.6115 23.8704C21.4815 23.951 21.3316 23.9938 21.1786 23.994L7.82205 23.9991C7.66495 23.999 7.51115 23.954 7.37885 23.8693C7.24656 23.7847 7.1413 23.664 7.07553 23.5215C7.00976 23.379 6.98624 23.2206 7.00774 23.0652C7.02924 22.9097 7.09487 22.7637 7.19685 22.6443Z" fill="#F9F9F9"/>
|
|
15
|
+
<rect y="36.165" width="28.6667" height="3" rx="1" fill="#424242"/>
|
|
16
|
+
<rect y="41.165" width="14" height="4" rx="1" fill="#424242"/>
|
|
17
|
+
<rect x="32.6665" y="2.83499" width="28.6667" height="29.33" rx="3" fill="#424242"/>
|
|
18
|
+
<circle cx="41.333" cy="13.9991" r="2" fill="#F9F9F9"/>
|
|
19
|
+
<path d="M39.5299 22.6443L41.7427 20.0585C41.8176 19.9708 41.9102 19.8999 42.0144 19.8503C42.1186 19.8007 42.2321 19.7737 42.3475 19.7709C42.4629 19.7681 42.5776 19.7896 42.6841 19.8341C42.7906 19.8785 42.8865 19.9449 42.9656 20.0289L44.0003 21.1262L48.0451 16.2937C48.1242 16.199 48.2238 16.1234 48.3363 16.0724C48.4487 16.0214 48.5713 15.9964 48.6948 15.9993C48.8183 16.0021 48.9395 16.0327 49.0495 16.0888C49.1595 16.145 49.2555 16.2251 49.3302 16.3233L54.1659 22.6762C54.2584 22.798 54.315 22.9431 54.3294 23.0953C54.3438 23.2475 54.3154 23.4006 54.2474 23.5375C54.1794 23.6745 54.0745 23.7897 53.9445 23.8704C53.8145 23.951 53.6646 23.9938 53.5116 23.994L40.1551 23.9991C39.998 23.999 39.8442 23.954 39.7119 23.8693C39.5796 23.7847 39.4743 23.664 39.4085 23.5215C39.3428 23.379 39.3192 23.2206 39.3407 23.0652C39.3622 22.9097 39.4279 22.7637 39.5299 22.6443Z" fill="#F9F9F9"/>
|
|
20
|
+
<rect x="32.6665" y="36.165" width="28.6667" height="3" rx="1" fill="#424242"/>
|
|
21
|
+
<rect x="32.6665" y="41.165" width="14" height="4" rx="1" fill="#424242"/>
|
|
22
|
+
<rect x="65.3335" y="2.83499" width="28.6667" height="29.33" rx="3" fill="#424242"/>
|
|
23
|
+
<circle cx="73.667" cy="13.9991" r="2" fill="#F9F9F9"/>
|
|
24
|
+
<path d="M71.8638 22.6443L74.0767 20.0585C74.1516 19.9708 74.2442 19.8999 74.3484 19.8503C74.4526 19.8007 74.5661 19.7737 74.6815 19.7709C74.7969 19.7681 74.9116 19.7896 75.0181 19.8341C75.1246 19.8785 75.2205 19.9449 75.2996 20.0289L76.3343 21.1262L80.379 16.2937C80.4582 16.199 80.5578 16.1234 80.6702 16.0724C80.7827 16.0214 80.9053 15.9964 81.0288 15.9993C81.1522 16.0021 81.2735 16.0327 81.3835 16.0888C81.4935 16.145 81.5894 16.2251 81.6642 16.3233L86.4999 22.6762C86.5923 22.798 86.649 22.9431 86.6633 23.0953C86.6777 23.2475 86.6493 23.4006 86.5814 23.5375C86.5134 23.6745 86.4085 23.7897 86.2785 23.8704C86.1485 23.951 85.9986 23.9938 85.8456 23.994L72.489 23.9991C72.3319 23.999 72.1781 23.954 72.0458 23.8693C71.9135 23.7847 71.8083 23.664 71.7425 23.5215C71.6768 23.379 71.6532 23.2206 71.6747 23.0652C71.6962 22.9097 71.7619 22.7637 71.8638 22.6443Z" fill="#F9F9F9"/>
|
|
25
|
+
<rect x="65.3335" y="36.165" width="28.6667" height="3" rx="1" fill="#424242"/>
|
|
26
|
+
<rect x="65.3335" y="41.165" width="14" height="4" rx="1" fill="#424242"/>
|
|
27
|
+
</svg>
|
|
28
|
+
`
|
|
29
|
+
},
|
|
30
|
+
components: [
|
|
31
|
+
{
|
|
32
|
+
tag: 'ArticleList',
|
|
33
|
+
label: 'Article List',
|
|
34
|
+
settings: {
|
|
35
|
+
columns: {
|
|
36
|
+
desktop: 4,
|
|
37
|
+
tablet: 2,
|
|
38
|
+
mobile: 1
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
advanced: {
|
|
42
|
+
'spacing-setting': {
|
|
43
|
+
padding: {
|
|
44
|
+
top: 'var(--g-s-s)',
|
|
45
|
+
bottom: 'var(--g-s-s)'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
childrens: [
|
|
50
|
+
{
|
|
51
|
+
tag: 'ArticleImage',
|
|
52
|
+
label: 'Article Image',
|
|
53
|
+
settings: {
|
|
54
|
+
linkArticle: 'go-to-article'
|
|
55
|
+
},
|
|
56
|
+
styles: {
|
|
57
|
+
position: {
|
|
58
|
+
desktop: 'only-feature'
|
|
59
|
+
},
|
|
60
|
+
shape: {
|
|
61
|
+
desktop: {
|
|
62
|
+
default: {
|
|
63
|
+
shape: 'square',
|
|
64
|
+
width: '100%'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
advanced: {
|
|
70
|
+
'spacing-setting': {
|
|
71
|
+
desktop: {
|
|
72
|
+
margin: {
|
|
73
|
+
bottom: 'var(--g-s-s)'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
tag: 'Row',
|
|
81
|
+
label: 'Row',
|
|
82
|
+
settings: {
|
|
83
|
+
layout: {
|
|
84
|
+
desktop: {
|
|
85
|
+
cols: [
|
|
86
|
+
4,
|
|
87
|
+
4,
|
|
88
|
+
4
|
|
89
|
+
],
|
|
90
|
+
display: 'fit'
|
|
91
|
+
},
|
|
92
|
+
mobile: {
|
|
93
|
+
cols: [
|
|
94
|
+
12
|
|
95
|
+
],
|
|
96
|
+
display: 'fill'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
styles: {
|
|
101
|
+
verticalGutter: {
|
|
102
|
+
desktop: '8px'
|
|
103
|
+
},
|
|
104
|
+
columnGap: {
|
|
105
|
+
desktop: '1%'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
advanced: {
|
|
109
|
+
'spacing-setting': {
|
|
110
|
+
desktop: {
|
|
111
|
+
margin: {
|
|
112
|
+
bottom: 0
|
|
113
|
+
},
|
|
114
|
+
link: true
|
|
115
|
+
},
|
|
116
|
+
tablet: {
|
|
117
|
+
link: true
|
|
118
|
+
},
|
|
119
|
+
mobile: {
|
|
120
|
+
link: true
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
rounded: {
|
|
124
|
+
desktop: {
|
|
125
|
+
normal: {
|
|
126
|
+
btrr: '0px',
|
|
127
|
+
bblr: '0px',
|
|
128
|
+
bbrr: '0px',
|
|
129
|
+
btlr: '0px',
|
|
130
|
+
radiusType: 'none'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
childrens: [
|
|
136
|
+
{
|
|
137
|
+
tag: 'Col',
|
|
138
|
+
label: 'Block',
|
|
139
|
+
settings: {},
|
|
140
|
+
styles: {},
|
|
141
|
+
advanced: {},
|
|
142
|
+
childrens: [
|
|
143
|
+
{
|
|
144
|
+
tag: 'ArticleAuthor',
|
|
145
|
+
label: 'Article Author',
|
|
146
|
+
settings: {
|
|
147
|
+
htmlTag: 'div'
|
|
148
|
+
},
|
|
149
|
+
styles: {
|
|
150
|
+
typo: {
|
|
151
|
+
type: 'paragraph-3',
|
|
152
|
+
attrs: {
|
|
153
|
+
color: 'text-1'
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
color: {
|
|
157
|
+
normal: 'text-2'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
advanced: {
|
|
161
|
+
'spacing-setting': {
|
|
162
|
+
desktop: {
|
|
163
|
+
padding: {
|
|
164
|
+
right: 'var(--g-s-s)',
|
|
165
|
+
top: '0px'
|
|
166
|
+
},
|
|
167
|
+
margin: {
|
|
168
|
+
bottom: 'var(--g-s-s)'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
border: {
|
|
173
|
+
desktop: {
|
|
174
|
+
normal: {
|
|
175
|
+
borderType: 'none',
|
|
176
|
+
border: 'solid',
|
|
177
|
+
borderWidth: 'Mixed',
|
|
178
|
+
width: '0px 1px 0px 0px',
|
|
179
|
+
color: '#DDDDDD',
|
|
180
|
+
isCustom: true
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
tag: 'Col',
|
|
190
|
+
label: 'Block',
|
|
191
|
+
settings: {},
|
|
192
|
+
styles: {},
|
|
193
|
+
advanced: {},
|
|
194
|
+
childrens: [
|
|
195
|
+
{
|
|
196
|
+
tag: 'ArticleCategory',
|
|
197
|
+
label: 'Article Category',
|
|
198
|
+
settings: {
|
|
199
|
+
htmlTag: 'div'
|
|
200
|
+
},
|
|
201
|
+
styles: {
|
|
202
|
+
typo: {
|
|
203
|
+
type: 'paragraph-3',
|
|
204
|
+
attrs: {
|
|
205
|
+
color: 'text-1'
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
color: {
|
|
209
|
+
normal: 'text-2'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
advanced: {
|
|
213
|
+
'spacing-setting': {
|
|
214
|
+
desktop: {
|
|
215
|
+
padding: {
|
|
216
|
+
right: 'var(--g-s-s)',
|
|
217
|
+
top: '0px'
|
|
218
|
+
},
|
|
219
|
+
margin: {
|
|
220
|
+
bottom: 'var(--g-s-s)'
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
border: {
|
|
225
|
+
desktop: {
|
|
226
|
+
normal: {
|
|
227
|
+
borderType: 'none',
|
|
228
|
+
border: 'solid',
|
|
229
|
+
borderWidth: 'Mixed',
|
|
230
|
+
width: '0px 1px 0px 0px',
|
|
231
|
+
color: '#DDDDDD',
|
|
232
|
+
isCustom: true
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
tag: 'Col',
|
|
242
|
+
label: 'Block',
|
|
243
|
+
settings: {},
|
|
244
|
+
styles: {},
|
|
245
|
+
advanced: {},
|
|
246
|
+
childrens: [
|
|
247
|
+
{
|
|
248
|
+
tag: 'ArticleDate',
|
|
249
|
+
label: 'Article Date',
|
|
250
|
+
settings: {
|
|
251
|
+
htmlTag: 'div'
|
|
252
|
+
},
|
|
253
|
+
styles: {
|
|
254
|
+
typo: {
|
|
255
|
+
type: 'paragraph-3',
|
|
256
|
+
attrs: {
|
|
257
|
+
color: 'text-1'
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
color: {
|
|
261
|
+
normal: 'text-2'
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
tag: 'ArticleTitle',
|
|
271
|
+
settings: {
|
|
272
|
+
htmlTag: 'h2',
|
|
273
|
+
linkArticle: 'go-to-article'
|
|
274
|
+
},
|
|
275
|
+
styles: {
|
|
276
|
+
typo: {
|
|
277
|
+
type: 'subheading-3',
|
|
278
|
+
attrs: {
|
|
279
|
+
color: 'text-1'
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
color: {
|
|
283
|
+
normal: 'text-2'
|
|
284
|
+
},
|
|
285
|
+
textAlign: {
|
|
286
|
+
desktop: 'left'
|
|
287
|
+
},
|
|
288
|
+
hasLineClamp: {
|
|
289
|
+
desktop: false
|
|
290
|
+
},
|
|
291
|
+
lineClamp: {
|
|
292
|
+
desktop: 2
|
|
293
|
+
},
|
|
294
|
+
hasTextShadow: {
|
|
295
|
+
normal: false,
|
|
296
|
+
hover: false
|
|
297
|
+
},
|
|
298
|
+
textShadow: {
|
|
299
|
+
normal: {
|
|
300
|
+
type: 'shadow-1'
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
advanced: {
|
|
305
|
+
'spacing-setting': {
|
|
306
|
+
desktop: {
|
|
307
|
+
margin: {
|
|
308
|
+
bottom: 'var(--g-s-l)'
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
tag: 'ArticleContent',
|
|
316
|
+
label: 'Article Content',
|
|
317
|
+
settings: {
|
|
318
|
+
ftClickOpenLightBox: {
|
|
319
|
+
desktop: 'product-link'
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
styles: {
|
|
323
|
+
typo: {
|
|
324
|
+
type: 'paragraph-1'
|
|
325
|
+
},
|
|
326
|
+
color: {
|
|
327
|
+
normal: 'text-1'
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
advanced: {
|
|
331
|
+
'spacing-setting': {
|
|
332
|
+
desktop: {
|
|
333
|
+
margin: {
|
|
334
|
+
bottom: 'var(--g-s-s)'
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
];
|
|
345
|
+
|
|
346
|
+
exports.ArticleListPresets = ArticleListPresets;
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ArticleListSettings = [
|
|
4
|
+
{
|
|
5
|
+
id: 'setting',
|
|
6
|
+
controls: [
|
|
7
|
+
{
|
|
8
|
+
id: 'articleSetting',
|
|
9
|
+
type: 'article-list',
|
|
10
|
+
label: 'Select article list',
|
|
11
|
+
default: {
|
|
12
|
+
articleIds: [],
|
|
13
|
+
numOfSelectedArticles: 4,
|
|
14
|
+
articlePickType: 'manually'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'slideToShow',
|
|
19
|
+
type: 'input:slider',
|
|
20
|
+
min: 1,
|
|
21
|
+
max: 6,
|
|
22
|
+
label: 'Blogs per rows',
|
|
23
|
+
hideUnit: true,
|
|
24
|
+
useOnlyUnitInit: true,
|
|
25
|
+
devices: {
|
|
26
|
+
desktop: {
|
|
27
|
+
default: 4
|
|
28
|
+
},
|
|
29
|
+
tablet: {
|
|
30
|
+
default: 3
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
default: 2
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'articleOrderBy',
|
|
39
|
+
type: 'select',
|
|
40
|
+
label: 'Order',
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
label: 'Article title (A-Z)',
|
|
44
|
+
value: 'TITLE'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Article title (Z-A)',
|
|
48
|
+
value: 'TITLE_REVERSE'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'Published (Newest)',
|
|
52
|
+
value: 'PUBLISHED_AT_REVERSE'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Published (Oldest)',
|
|
56
|
+
value: 'PUBLISHED_AT'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Edited (Newest)',
|
|
60
|
+
value: 'UPDATED_AT_REVERSE'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Edited (Oldest)',
|
|
64
|
+
value: 'UPDATED_AT'
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
default: 'UPDATED_AT_REVERSE'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 'numberOfArticle',
|
|
71
|
+
type: 'input:slider',
|
|
72
|
+
min: 1,
|
|
73
|
+
max: 50,
|
|
74
|
+
label: 'Number of article',
|
|
75
|
+
default: 3,
|
|
76
|
+
hide: true,
|
|
77
|
+
hideUnit: true,
|
|
78
|
+
useOnlyUnitInit: true
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'background',
|
|
82
|
+
type: 'background-media',
|
|
83
|
+
devices: {
|
|
84
|
+
desktop: {
|
|
85
|
+
default: {
|
|
86
|
+
type: 'color',
|
|
87
|
+
color: 'transparent',
|
|
88
|
+
image: {
|
|
89
|
+
src: '',
|
|
90
|
+
width: 0,
|
|
91
|
+
height: 0
|
|
92
|
+
},
|
|
93
|
+
size: 'cover',
|
|
94
|
+
position: {
|
|
95
|
+
x: 50,
|
|
96
|
+
y: 50
|
|
97
|
+
},
|
|
98
|
+
repeat: 'no-repeat',
|
|
99
|
+
attachment: 'scroll'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
compoDefaultValue: {
|
|
104
|
+
desktop: {
|
|
105
|
+
default: {
|
|
106
|
+
type: 'color',
|
|
107
|
+
color: '#E2E2E2',
|
|
108
|
+
image: {
|
|
109
|
+
src: '',
|
|
110
|
+
width: 1200,
|
|
111
|
+
height: 480
|
|
112
|
+
},
|
|
113
|
+
size: 'cover',
|
|
114
|
+
position: {
|
|
115
|
+
x: 50,
|
|
116
|
+
y: 50
|
|
117
|
+
},
|
|
118
|
+
repeat: 'no-repeat',
|
|
119
|
+
attachment: 'scroll'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
hideImage: true
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'style',
|
|
129
|
+
controls: [
|
|
130
|
+
{
|
|
131
|
+
id: 'padding',
|
|
132
|
+
type: 'padding-v2',
|
|
133
|
+
compoDefaultValue: {
|
|
134
|
+
desktop: {
|
|
135
|
+
default: {
|
|
136
|
+
padding: {
|
|
137
|
+
type: 'custom',
|
|
138
|
+
top: '0px',
|
|
139
|
+
left: '24px',
|
|
140
|
+
bottom: '0px',
|
|
141
|
+
right: '24px'
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: 'dimensions',
|
|
149
|
+
label: 'Dimensions',
|
|
150
|
+
type: 'group',
|
|
151
|
+
controls: [
|
|
152
|
+
{
|
|
153
|
+
id: 'fullWidth',
|
|
154
|
+
label: 'Full Width',
|
|
155
|
+
type: 'toggle',
|
|
156
|
+
devices: {
|
|
157
|
+
desktop: {
|
|
158
|
+
default: true
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: 'width',
|
|
164
|
+
label: 'Width',
|
|
165
|
+
type: 'input:unit',
|
|
166
|
+
emptyOnClear: true,
|
|
167
|
+
units: [
|
|
168
|
+
'px',
|
|
169
|
+
'%'
|
|
170
|
+
],
|
|
171
|
+
devices: {
|
|
172
|
+
desktop: {
|
|
173
|
+
default: 'default'
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
hide: true
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: 'adaptiveHeight',
|
|
180
|
+
label: 'Fit height to content',
|
|
181
|
+
type: 'toggle',
|
|
182
|
+
devices: {
|
|
183
|
+
desktop: {
|
|
184
|
+
default: true
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
hide: true
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: 'height',
|
|
191
|
+
label: 'Height',
|
|
192
|
+
type: 'input:unit',
|
|
193
|
+
units: [
|
|
194
|
+
'px'
|
|
195
|
+
],
|
|
196
|
+
devices: {
|
|
197
|
+
desktop: {
|
|
198
|
+
default: '400px'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
hide: true
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'horizontalGutter',
|
|
207
|
+
label: 'Row gap',
|
|
208
|
+
type: 'input:unit',
|
|
209
|
+
units: [
|
|
210
|
+
'px'
|
|
211
|
+
],
|
|
212
|
+
devices: {
|
|
213
|
+
desktop: {
|
|
214
|
+
default: '24px'
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'verticalGutter',
|
|
220
|
+
label: 'Column gap',
|
|
221
|
+
type: 'input:unit-spacing',
|
|
222
|
+
units: [
|
|
223
|
+
'px'
|
|
224
|
+
],
|
|
225
|
+
devices: {
|
|
226
|
+
desktop: {
|
|
227
|
+
default: '16px'
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: 'grid',
|
|
233
|
+
label: 'Grid',
|
|
234
|
+
type: 'group',
|
|
235
|
+
controls: [
|
|
236
|
+
{
|
|
237
|
+
id: 'horizontalGutter',
|
|
238
|
+
label: 'Row gap',
|
|
239
|
+
type: 'input:unit',
|
|
240
|
+
units: [
|
|
241
|
+
'px'
|
|
242
|
+
],
|
|
243
|
+
devices: {
|
|
244
|
+
desktop: {
|
|
245
|
+
default: '16px'
|
|
246
|
+
},
|
|
247
|
+
mobile: {
|
|
248
|
+
default: '16px'
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: 'verticalGutter',
|
|
254
|
+
label: 'Column gap',
|
|
255
|
+
type: 'input:unit-spacing',
|
|
256
|
+
units: [
|
|
257
|
+
'px'
|
|
258
|
+
],
|
|
259
|
+
devices: {
|
|
260
|
+
desktop: {
|
|
261
|
+
default: '16px'
|
|
262
|
+
},
|
|
263
|
+
mobile: {
|
|
264
|
+
default: '8px'
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: 'wrapperBorder',
|
|
272
|
+
type: 'border',
|
|
273
|
+
label: 'Border',
|
|
274
|
+
default: {
|
|
275
|
+
borderType: 'none',
|
|
276
|
+
border: 'none',
|
|
277
|
+
width: '1px 1px 1px 1px',
|
|
278
|
+
position: 'all',
|
|
279
|
+
borderWidth: '1px',
|
|
280
|
+
color: '#000000',
|
|
281
|
+
isCustom: true
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
id: 'borderRadius',
|
|
286
|
+
type: 'radius-preset',
|
|
287
|
+
label: 'Corner',
|
|
288
|
+
default: {
|
|
289
|
+
radiusType: 'none'
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: 'hasActiveShadow',
|
|
294
|
+
type: 'toggle',
|
|
295
|
+
label: 'Enable Button Shadow',
|
|
296
|
+
default: false
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
id: 'shadow',
|
|
300
|
+
type: 'boxShadow',
|
|
301
|
+
label: 'Button Shadow',
|
|
302
|
+
default: {
|
|
303
|
+
type: 'custom',
|
|
304
|
+
distance: '10px',
|
|
305
|
+
blur: '12px',
|
|
306
|
+
spread: '10px',
|
|
307
|
+
color: 'rgba(18, 18, 18, 0.77)',
|
|
308
|
+
angle: 40
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
];
|
|
314
|
+
|
|
315
|
+
exports.ArticleListSettings = ArticleListSettings;
|