@gem-sdk/components 2.0.0-dev.351 → 2.0.0-dev.353
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/ArticleAuthor/uiV2.js +9 -2
- package/dist/cjs/article/setting/configs/ArticleDate/uiV2.js +13 -6
- package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleExcerpt/uiV2.js +11 -1
- package/dist/cjs/article/setting/configs/ArticleImage/presets.js +3 -3
- package/dist/cjs/article/setting/configs/ArticleReadMore/presets.js +9 -9
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +4 -4
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +16 -12
- package/dist/cjs/stock-counter/components/StockCounter.js +104 -112
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +116 -141
- package/dist/cjs/stock-counter/components/common/getAttrs.js +44 -0
- package/dist/cjs/stock-counter/components/common/getClasses.js +68 -0
- package/dist/cjs/stock-counter/components/common/getContent.js +71 -0
- package/dist/cjs/stock-counter/components/common/getInlineCss.js +39 -0
- package/dist/cjs/stock-counter/components/common/getStyles.js +73 -0
- package/dist/cjs/stock-counter/components/hook/useStockCounter.js +37 -0
- package/dist/cjs/stock-counter/const.js +0 -6
- package/dist/cjs/stock-counter/helpers.js +0 -14
- package/dist/cjs/stock-counter/index.js +3 -1
- package/dist/cjs/stock-counter/setting/StockCounter.js +2 -2
- package/dist/cjs/stock-counter/setting/configs/presets.js +3 -0
- package/dist/cjs/stock-counter/setting/configs/{settings.js → settingsV2.js} +211 -42
- package/dist/cjs/stock-counter/setting/configs/uiV2.js +228 -41
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +9 -2
- package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +13 -6
- package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleExcerpt/uiV2.js +11 -1
- package/dist/esm/article/setting/configs/ArticleImage/presets.js +3 -3
- package/dist/esm/article/setting/configs/ArticleReadMore/presets.js +9 -9
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +4 -4
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +16 -12
- package/dist/esm/stock-counter/components/StockCounter.js +106 -114
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +116 -141
- package/dist/esm/stock-counter/components/common/getAttrs.js +39 -0
- package/dist/esm/stock-counter/components/common/getClasses.js +60 -0
- package/dist/esm/stock-counter/components/common/getContent.js +68 -0
- package/dist/esm/stock-counter/components/common/getInlineCss.js +37 -0
- package/dist/esm/stock-counter/components/common/getStyles.js +67 -0
- package/dist/esm/stock-counter/components/hook/useStockCounter.js +35 -0
- package/dist/esm/stock-counter/const.js +1 -4
- package/dist/esm/stock-counter/helpers.js +1 -14
- package/dist/esm/stock-counter/index.js +3 -1
- package/dist/esm/stock-counter/setting/StockCounter.js +2 -2
- package/dist/esm/stock-counter/setting/configs/presets.js +3 -0
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +438 -0
- package/dist/esm/stock-counter/setting/configs/uiV2.js +228 -41
- package/dist/types/index.d.ts +13 -5
- package/package.json +1 -1
- package/dist/esm/stock-counter/setting/configs/settings.js +0 -269
|
@@ -2,52 +2,129 @@
|
|
|
2
2
|
|
|
3
3
|
const SettingUIV2 = [
|
|
4
4
|
{
|
|
5
|
+
label: {
|
|
6
|
+
en: 'layout'
|
|
7
|
+
},
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
setting: {
|
|
11
|
+
id: 'layout'
|
|
12
|
+
},
|
|
13
|
+
layout: 'vertical',
|
|
14
|
+
controlChangeTrigger: {
|
|
15
|
+
settings: [
|
|
16
|
+
{
|
|
17
|
+
action: {
|
|
18
|
+
controlId: 'displayProgressBar',
|
|
19
|
+
newValue: true,
|
|
20
|
+
groupType: 'style',
|
|
21
|
+
controlType: 'style'
|
|
22
|
+
},
|
|
23
|
+
source: [
|
|
24
|
+
'layout'
|
|
25
|
+
],
|
|
26
|
+
condition: `layout !== 'icon-and-text' && layout !== 'text-only'`
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
action: {
|
|
30
|
+
controlId: 'displayProgressBar',
|
|
31
|
+
newValue: false,
|
|
32
|
+
groupType: 'style',
|
|
33
|
+
controlType: 'style'
|
|
34
|
+
},
|
|
35
|
+
source: [
|
|
36
|
+
'layout'
|
|
37
|
+
],
|
|
38
|
+
condition: `layout === 'icon-and-text' || layout === 'text-only'`
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
action: {
|
|
42
|
+
controlId: 'showIcon',
|
|
43
|
+
newValue: true,
|
|
44
|
+
groupType: 'setting',
|
|
45
|
+
controlType: 'setting'
|
|
46
|
+
},
|
|
47
|
+
source: [
|
|
48
|
+
'layout'
|
|
49
|
+
],
|
|
50
|
+
condition: `layout === 'full' || layout === 'icon-and-text'`
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
action: {
|
|
54
|
+
controlId: 'showIcon',
|
|
55
|
+
newValue: false,
|
|
56
|
+
groupType: 'setting',
|
|
57
|
+
controlType: 'setting'
|
|
58
|
+
},
|
|
59
|
+
source: [
|
|
60
|
+
'layout'
|
|
61
|
+
],
|
|
62
|
+
condition: `layout === 'text-and-progress-bar' || layout === 'progress-bar' || layout === 'text-only'`
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
options: {
|
|
66
|
+
noRecordHistory: true
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: {
|
|
74
|
+
en: 'Stock'
|
|
75
|
+
},
|
|
5
76
|
controls: [
|
|
6
77
|
{
|
|
7
78
|
label: {
|
|
8
|
-
en: '
|
|
79
|
+
en: 'Source'
|
|
9
80
|
},
|
|
10
81
|
setting: {
|
|
11
|
-
id: '
|
|
82
|
+
id: 'source'
|
|
12
83
|
},
|
|
13
|
-
|
|
14
|
-
labelVariant: 'primary'
|
|
15
|
-
}
|
|
84
|
+
layout: 'horizontal'
|
|
16
85
|
},
|
|
17
86
|
{
|
|
18
|
-
conditionDisplay: '
|
|
87
|
+
conditionDisplay: 'source === "custom"',
|
|
19
88
|
label: {
|
|
20
|
-
en: '
|
|
89
|
+
en: 'Remaining'
|
|
21
90
|
},
|
|
22
91
|
setting: {
|
|
23
|
-
id: '
|
|
24
|
-
}
|
|
25
|
-
|
|
92
|
+
id: 'remaining'
|
|
93
|
+
},
|
|
94
|
+
layout: 'horizontal'
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
controls: [
|
|
26
100
|
{
|
|
27
|
-
conditionDisplay: 'displayProgressBar == true',
|
|
28
101
|
label: {
|
|
29
|
-
en: '
|
|
102
|
+
en: 'Progress bar'
|
|
30
103
|
},
|
|
31
104
|
setting: {
|
|
32
|
-
id: '
|
|
105
|
+
id: 'displayProgressBar'
|
|
106
|
+
},
|
|
107
|
+
options: {
|
|
108
|
+
labelVariant: 'primary',
|
|
109
|
+
toggleStyle: 'switch'
|
|
33
110
|
}
|
|
34
111
|
},
|
|
35
112
|
{
|
|
36
113
|
conditionDisplay: 'displayProgressBar == true',
|
|
37
114
|
label: {
|
|
38
|
-
en: '
|
|
115
|
+
en: 'Percentage left'
|
|
39
116
|
},
|
|
40
117
|
setting: {
|
|
41
|
-
id: '
|
|
118
|
+
id: 'remainingPercentage'
|
|
42
119
|
}
|
|
43
120
|
},
|
|
44
121
|
{
|
|
45
122
|
conditionDisplay: 'displayProgressBar == true',
|
|
46
123
|
label: {
|
|
47
|
-
en: '
|
|
124
|
+
en: 'Color'
|
|
48
125
|
},
|
|
49
126
|
setting: {
|
|
50
|
-
id: '
|
|
127
|
+
id: 'color'
|
|
51
128
|
}
|
|
52
129
|
},
|
|
53
130
|
{
|
|
@@ -59,7 +136,39 @@ const SettingUIV2 = [
|
|
|
59
136
|
id: 'effect'
|
|
60
137
|
}
|
|
61
138
|
}
|
|
62
|
-
]
|
|
139
|
+
],
|
|
140
|
+
moreSettings: {
|
|
141
|
+
type: 'collapse',
|
|
142
|
+
controls: [
|
|
143
|
+
{
|
|
144
|
+
conditionDisplay: 'displayProgressBar == true',
|
|
145
|
+
label: {
|
|
146
|
+
en: 'Height'
|
|
147
|
+
},
|
|
148
|
+
setting: {
|
|
149
|
+
id: 'progressBarHeight'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
conditionDisplay: 'displayProgressBar == true',
|
|
154
|
+
label: {
|
|
155
|
+
en: 'Position'
|
|
156
|
+
},
|
|
157
|
+
setting: {
|
|
158
|
+
id: 'progressBarPosition'
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
conditionDisplay: 'displayProgressBar == true',
|
|
163
|
+
label: {
|
|
164
|
+
en: 'Corner'
|
|
165
|
+
},
|
|
166
|
+
setting: {
|
|
167
|
+
id: 'borderRadius'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
63
172
|
},
|
|
64
173
|
{
|
|
65
174
|
controls: [
|
|
@@ -76,20 +185,58 @@ const SettingUIV2 = [
|
|
|
76
185
|
}
|
|
77
186
|
},
|
|
78
187
|
{
|
|
188
|
+
label: {
|
|
189
|
+
en: 'Icon'
|
|
190
|
+
},
|
|
79
191
|
conditionDisplay: 'showIcon == true',
|
|
80
192
|
setting: {
|
|
81
193
|
id: 'icon'
|
|
82
194
|
},
|
|
83
|
-
layout: '
|
|
195
|
+
layout: 'horizontal'
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: {
|
|
199
|
+
en: 'Size'
|
|
200
|
+
},
|
|
201
|
+
conditionDisplay: 'showIcon == true',
|
|
202
|
+
setting: {
|
|
203
|
+
id: 'iconSize'
|
|
204
|
+
},
|
|
205
|
+
layout: 'horizontal'
|
|
84
206
|
},
|
|
85
207
|
{
|
|
86
208
|
conditionDisplay: 'showIcon == true',
|
|
87
209
|
label: {
|
|
88
|
-
en: '
|
|
210
|
+
en: 'Color'
|
|
89
211
|
},
|
|
90
212
|
setting: {
|
|
91
213
|
id: 'iconColor'
|
|
92
214
|
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
label: {
|
|
218
|
+
en: 'Position'
|
|
219
|
+
},
|
|
220
|
+
conditionDisplay: 'showIcon == true',
|
|
221
|
+
setting: {
|
|
222
|
+
id: 'iconPosition'
|
|
223
|
+
},
|
|
224
|
+
layout: 'horizontal'
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: {
|
|
230
|
+
en: 'Size'
|
|
231
|
+
},
|
|
232
|
+
controls: [
|
|
233
|
+
{
|
|
234
|
+
label: {
|
|
235
|
+
en: 'Width'
|
|
236
|
+
},
|
|
237
|
+
setting: {
|
|
238
|
+
id: 'width'
|
|
239
|
+
}
|
|
93
240
|
}
|
|
94
241
|
]
|
|
95
242
|
},
|
|
@@ -98,6 +245,26 @@ const SettingUIV2 = [
|
|
|
98
245
|
en: 'Text styles'
|
|
99
246
|
},
|
|
100
247
|
controls: [
|
|
248
|
+
{
|
|
249
|
+
label: {
|
|
250
|
+
en: 'Content'
|
|
251
|
+
},
|
|
252
|
+
type: 'combo',
|
|
253
|
+
iconName: 'polaris-text-block',
|
|
254
|
+
getValueFromSettingID: 'template',
|
|
255
|
+
isHideClear: true,
|
|
256
|
+
controls: [
|
|
257
|
+
{
|
|
258
|
+
label: {
|
|
259
|
+
en: 'Content'
|
|
260
|
+
},
|
|
261
|
+
setting: {
|
|
262
|
+
id: 'template'
|
|
263
|
+
},
|
|
264
|
+
layout: 'vertical'
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
101
268
|
{
|
|
102
269
|
setting: {
|
|
103
270
|
id: 'typo'
|
|
@@ -121,73 +288,93 @@ const SettingUIV2 = [
|
|
|
121
288
|
},
|
|
122
289
|
{
|
|
123
290
|
label: {
|
|
124
|
-
en: '
|
|
291
|
+
en: 'Stock'
|
|
125
292
|
},
|
|
126
293
|
conditionDisplay: 'displayByDefault == false',
|
|
127
294
|
setting: {
|
|
128
295
|
id: 'scarcityThreshold'
|
|
129
296
|
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
label: {
|
|
133
|
-
en: 'Hide counter when out of stock'
|
|
134
|
-
},
|
|
135
|
-
setting: {
|
|
136
|
-
id: 'hiddenCounterWhenOutOfStock'
|
|
137
|
-
}
|
|
138
297
|
}
|
|
139
298
|
]
|
|
140
299
|
},
|
|
141
300
|
{
|
|
142
301
|
label: {
|
|
143
|
-
en: '
|
|
302
|
+
en: 'Out of stock state'
|
|
144
303
|
},
|
|
145
304
|
controls: [
|
|
146
305
|
{
|
|
147
306
|
label: {
|
|
148
|
-
en: '
|
|
307
|
+
en: 'Action'
|
|
149
308
|
},
|
|
150
309
|
setting: {
|
|
151
|
-
id: '
|
|
310
|
+
id: 'hiddenCounterWhenOutOfStock'
|
|
152
311
|
}
|
|
153
312
|
},
|
|
154
313
|
{
|
|
155
314
|
label: {
|
|
156
|
-
en: '
|
|
315
|
+
en: 'Icon'
|
|
157
316
|
},
|
|
158
317
|
setting: {
|
|
159
|
-
id: '
|
|
318
|
+
id: 'oosIcon'
|
|
160
319
|
}
|
|
161
320
|
},
|
|
162
321
|
{
|
|
163
322
|
label: {
|
|
164
|
-
en: '
|
|
323
|
+
en: 'Content'
|
|
324
|
+
},
|
|
325
|
+
type: 'combo',
|
|
326
|
+
iconName: 'polaris-text-block',
|
|
327
|
+
getValueFromSettingID: 'outOfStockMessage',
|
|
328
|
+
isHideClear: true,
|
|
329
|
+
controls: [
|
|
330
|
+
{
|
|
331
|
+
label: {
|
|
332
|
+
en: 'Content'
|
|
333
|
+
},
|
|
334
|
+
setting: {
|
|
335
|
+
id: 'outOfStockMessage'
|
|
336
|
+
},
|
|
337
|
+
layout: 'vertical'
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
label: {
|
|
343
|
+
en: 'Icon Color'
|
|
165
344
|
},
|
|
166
345
|
setting: {
|
|
167
|
-
id: '
|
|
346
|
+
id: 'oosIconColor'
|
|
168
347
|
}
|
|
169
348
|
},
|
|
170
349
|
{
|
|
171
350
|
label: {
|
|
172
|
-
en: '
|
|
351
|
+
en: 'Text Color'
|
|
173
352
|
},
|
|
174
353
|
setting: {
|
|
175
|
-
id: '
|
|
354
|
+
id: 'oosTextColor'
|
|
176
355
|
}
|
|
177
356
|
}
|
|
178
357
|
]
|
|
179
358
|
},
|
|
180
359
|
{
|
|
181
360
|
label: {
|
|
182
|
-
en: '
|
|
361
|
+
en: 'Message'
|
|
183
362
|
},
|
|
184
363
|
controls: [
|
|
185
364
|
{
|
|
186
365
|
label: {
|
|
187
|
-
en: '
|
|
366
|
+
en: 'Out of stock sell'
|
|
188
367
|
},
|
|
189
368
|
setting: {
|
|
190
|
-
id: '
|
|
369
|
+
id: 'continueSelling'
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
label: {
|
|
374
|
+
en: 'Unlimited quantity'
|
|
375
|
+
},
|
|
376
|
+
setting: {
|
|
377
|
+
id: 'unlimitedQuantityMessage'
|
|
191
378
|
}
|
|
192
379
|
}
|
|
193
380
|
]
|
|
@@ -38,28 +38,35 @@ const uiV2 = [
|
|
|
38
38
|
noRecordHistory: true
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: {
|
|
46
|
+
en: 'Display option'
|
|
47
|
+
},
|
|
48
|
+
controls: [
|
|
42
49
|
{
|
|
43
50
|
label: {
|
|
44
|
-
en: '
|
|
51
|
+
en: 'Date format'
|
|
45
52
|
},
|
|
46
53
|
setting: {
|
|
47
|
-
id: '
|
|
54
|
+
id: 'dateFormat'
|
|
48
55
|
}
|
|
49
56
|
}
|
|
50
57
|
]
|
|
51
58
|
},
|
|
52
59
|
{
|
|
53
60
|
label: {
|
|
54
|
-
en: '
|
|
61
|
+
en: 'SEO'
|
|
55
62
|
},
|
|
56
63
|
controls: [
|
|
57
64
|
{
|
|
58
65
|
label: {
|
|
59
|
-
en: '
|
|
66
|
+
en: 'SEO tag'
|
|
60
67
|
},
|
|
61
68
|
setting: {
|
|
62
|
-
id: '
|
|
69
|
+
id: 'htmlTag'
|
|
63
70
|
}
|
|
64
71
|
}
|
|
65
72
|
]
|
|
@@ -49,7 +49,17 @@ const uiV2 = [
|
|
|
49
49
|
{
|
|
50
50
|
id: 'hasLineClamp',
|
|
51
51
|
label: {
|
|
52
|
-
en: 'Max
|
|
52
|
+
en: 'Max lines'
|
|
53
|
+
},
|
|
54
|
+
setting: {
|
|
55
|
+
id: 'hasLineClamp'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'lineClamp',
|
|
60
|
+
conditionDisplay: 'hasLineClamp === true',
|
|
61
|
+
label: {
|
|
62
|
+
en: 'Number of lines'
|
|
53
63
|
},
|
|
54
64
|
setting: {
|
|
55
65
|
id: 'lineClamp'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const ArticleImagePresets = [
|
|
2
2
|
{
|
|
3
|
-
id: 'article-
|
|
3
|
+
id: 'article-image',
|
|
4
4
|
name: {
|
|
5
|
-
en: 'Article
|
|
5
|
+
en: 'Article Image'
|
|
6
6
|
},
|
|
7
7
|
icon: {
|
|
8
8
|
desktop: `<svg width="84" height="13" viewBox="0 0 84 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -13,7 +13,7 @@ const ArticleImagePresets = [
|
|
|
13
13
|
},
|
|
14
14
|
components: [
|
|
15
15
|
{
|
|
16
|
-
tag: '
|
|
16
|
+
tag: 'ArticleImage',
|
|
17
17
|
settings: {
|
|
18
18
|
htmlTag: 'h1',
|
|
19
19
|
linkArticle: true
|
|
@@ -37,10 +37,10 @@ const ArticleReadMorePresets = [
|
|
|
37
37
|
height: 'Auto',
|
|
38
38
|
padding: {
|
|
39
39
|
type: 'custom',
|
|
40
|
-
top: 'var(--g-s-
|
|
41
|
-
bottom: 'var(--g-s-
|
|
42
|
-
left: 'var(--g-s-
|
|
43
|
-
right: 'var(--g-s-
|
|
40
|
+
top: 'var(--g-s-m)',
|
|
41
|
+
bottom: 'var(--g-s-m)',
|
|
42
|
+
left: 'var(--g-s-xl)',
|
|
43
|
+
right: 'var(--g-s-xl)'
|
|
44
44
|
},
|
|
45
45
|
gap: ''
|
|
46
46
|
}
|
|
@@ -71,11 +71,11 @@ const ArticleReadMorePresets = [
|
|
|
71
71
|
width: 'Auto',
|
|
72
72
|
height: 'Auto',
|
|
73
73
|
padding: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
type: 'custom',
|
|
75
|
+
top: 'var(--g-s-m)',
|
|
76
|
+
bottom: 'var(--g-s-m)',
|
|
77
|
+
left: 'var(--g-s-xl)',
|
|
78
|
+
right: 'var(--g-s-xl)'
|
|
79
79
|
},
|
|
80
80
|
gap: ''
|
|
81
81
|
}
|
|
@@ -392,7 +392,7 @@ const ArticleReadMoreSettings = [
|
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
id: 'alignBtn',
|
|
395
|
-
label: '
|
|
395
|
+
label: 'Align',
|
|
396
396
|
type: 'option:value',
|
|
397
397
|
options: [
|
|
398
398
|
{
|
|
@@ -419,7 +419,7 @@ const ArticleReadMoreSettings = [
|
|
|
419
419
|
],
|
|
420
420
|
devices: {
|
|
421
421
|
desktop: {
|
|
422
|
-
default: '
|
|
422
|
+
default: 'center'
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
},
|
|
@@ -669,7 +669,7 @@ const ArticleReadMoreSettings = [
|
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
671
|
id: 'alignText',
|
|
672
|
-
label: '
|
|
672
|
+
label: 'Align',
|
|
673
673
|
type: 'option:value',
|
|
674
674
|
options: [
|
|
675
675
|
{
|
|
@@ -696,7 +696,7 @@ const ArticleReadMoreSettings = [
|
|
|
696
696
|
],
|
|
697
697
|
devices: {
|
|
698
698
|
desktop: {
|
|
699
|
-
default: '
|
|
699
|
+
default: 'center'
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
},
|
|
@@ -93,10 +93,10 @@ const uiV2 = [
|
|
|
93
93
|
},
|
|
94
94
|
compoDefaultValue: {
|
|
95
95
|
default: {
|
|
96
|
-
top: '
|
|
97
|
-
right: '
|
|
98
|
-
bottom: '
|
|
99
|
-
left: '
|
|
96
|
+
top: '12px',
|
|
97
|
+
right: '24px',
|
|
98
|
+
bottom: '12px',
|
|
99
|
+
left: '24px',
|
|
100
100
|
linked: false
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -274,10 +274,10 @@ const uiV2 = [
|
|
|
274
274
|
},
|
|
275
275
|
compoDefaultValue: {
|
|
276
276
|
default: {
|
|
277
|
-
top: '
|
|
278
|
-
right: '
|
|
279
|
-
bottom: '
|
|
280
|
-
left: '
|
|
277
|
+
top: '12px',
|
|
278
|
+
right: '24px',
|
|
279
|
+
bottom: '12px',
|
|
280
|
+
left: '24px',
|
|
281
281
|
linked: false
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -421,7 +421,6 @@ const uiV2 = [
|
|
|
421
421
|
]
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
|
-
conditionDisplay: `readMoreType == 'button'`,
|
|
425
424
|
controls: [
|
|
426
425
|
{
|
|
427
426
|
label: {
|
|
@@ -430,15 +429,17 @@ const uiV2 = [
|
|
|
430
429
|
setting: {
|
|
431
430
|
id: 'alignBtn'
|
|
432
431
|
},
|
|
432
|
+
conditionDisplay: `readMoreType == 'button'`,
|
|
433
|
+
conditionEnable: "globalSizeBtn.width !== '100%'",
|
|
433
434
|
options: {
|
|
434
435
|
labelVariant: 'primary',
|
|
435
|
-
fullWidth: true
|
|
436
|
+
fullWidth: true,
|
|
437
|
+
disableMessage: `This option is disabled because the width is set to 100%`
|
|
436
438
|
}
|
|
437
439
|
}
|
|
438
440
|
]
|
|
439
441
|
},
|
|
440
442
|
{
|
|
441
|
-
conditionDisplay: `readMoreType == 'text'`,
|
|
442
443
|
controls: [
|
|
443
444
|
{
|
|
444
445
|
label: {
|
|
@@ -447,9 +448,12 @@ const uiV2 = [
|
|
|
447
448
|
setting: {
|
|
448
449
|
id: 'alignText'
|
|
449
450
|
},
|
|
451
|
+
conditionDisplay: `readMoreType == 'text'`,
|
|
452
|
+
conditionEnable: "globalSizeText.width !== '100%'",
|
|
450
453
|
options: {
|
|
451
454
|
labelVariant: 'primary',
|
|
452
|
-
fullWidth: true
|
|
455
|
+
fullWidth: true,
|
|
456
|
+
disableMessage: `This option is disabled because the width is set to 100%`
|
|
453
457
|
}
|
|
454
458
|
}
|
|
455
459
|
]
|