@gem-sdk/components 2.0.0-dev.253 → 2.0.0-dev.255
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/post-purchase/text/settings/text/uiV2.js +16 -2
- package/dist/cjs/product/components/FileUpload/components/common/style.js +2 -2
- package/dist/cjs/product/components/FileUpload/components/config/presets.js +27 -0
- package/dist/cjs/product/components/FileUpload/components/config/setting.js +522 -0
- package/dist/cjs/product/components/FileUpload/components/config/uiV1.js +402 -0
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +643 -0
- package/dist/cjs/product/components/FileUpload/components/setting/index.js +9 -939
- package/dist/cjs/product/components/ProductImages.js +1 -1
- package/dist/esm/post-purchase/text/settings/text/uiV2.js +16 -2
- package/dist/esm/product/components/FileUpload/components/common/style.js +2 -2
- package/dist/esm/product/components/FileUpload/components/config/presets.js +25 -0
- package/dist/esm/product/components/FileUpload/components/config/setting.js +520 -0
- package/dist/esm/product/components/FileUpload/components/config/uiV1.js +400 -0
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +641 -0
- package/dist/esm/product/components/FileUpload/components/setting/index.js +9 -939
- package/dist/esm/product/components/ProductImages.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SettingUIV1 = [
|
|
4
|
+
{
|
|
5
|
+
type: 'group',
|
|
6
|
+
label: {
|
|
7
|
+
en: 'Layout'
|
|
8
|
+
},
|
|
9
|
+
controls: [
|
|
10
|
+
{
|
|
11
|
+
type: 'control',
|
|
12
|
+
setting: {
|
|
13
|
+
id: 'fileUploadLayout'
|
|
14
|
+
},
|
|
15
|
+
layout: 'vertical'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: 'control',
|
|
19
|
+
label: {
|
|
20
|
+
en: 'Arrange content'
|
|
21
|
+
},
|
|
22
|
+
setting: {
|
|
23
|
+
id: 'arrangeContent'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: 'control',
|
|
28
|
+
label: {
|
|
29
|
+
en: 'Icon position'
|
|
30
|
+
},
|
|
31
|
+
setting: {
|
|
32
|
+
id: 'positionVertical'
|
|
33
|
+
},
|
|
34
|
+
isMoreSetting: true,
|
|
35
|
+
condition: "fileUploadLayout === 'vertical'"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: 'control',
|
|
39
|
+
label: {
|
|
40
|
+
en: 'Icon position'
|
|
41
|
+
},
|
|
42
|
+
setting: {
|
|
43
|
+
id: 'positionHorizontal'
|
|
44
|
+
},
|
|
45
|
+
isMoreSetting: true,
|
|
46
|
+
condition: "fileUploadLayout !== 'vertical'"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'group',
|
|
52
|
+
label: {
|
|
53
|
+
en: 'Upload setting'
|
|
54
|
+
},
|
|
55
|
+
controls: [
|
|
56
|
+
{
|
|
57
|
+
type: 'control',
|
|
58
|
+
label: {
|
|
59
|
+
en: 'Required'
|
|
60
|
+
},
|
|
61
|
+
setting: {
|
|
62
|
+
id: 'isRequired'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: 'control',
|
|
67
|
+
label: {
|
|
68
|
+
en: 'Click image to preview'
|
|
69
|
+
},
|
|
70
|
+
setting: {
|
|
71
|
+
id: 'isShowPreviewImage'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: 'control',
|
|
76
|
+
label: {
|
|
77
|
+
en: 'Number of files'
|
|
78
|
+
},
|
|
79
|
+
setting: {
|
|
80
|
+
id: 'numberOfFiles'
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: 'group',
|
|
87
|
+
controls: [
|
|
88
|
+
{
|
|
89
|
+
type: 'control',
|
|
90
|
+
label: {
|
|
91
|
+
en: 'Icon'
|
|
92
|
+
},
|
|
93
|
+
setting: {
|
|
94
|
+
id: 'iconVisible'
|
|
95
|
+
},
|
|
96
|
+
options: {
|
|
97
|
+
label: 'large'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: 'control',
|
|
102
|
+
label: {
|
|
103
|
+
en: 'Choose icon'
|
|
104
|
+
},
|
|
105
|
+
setting: {
|
|
106
|
+
id: 'iconSvg'
|
|
107
|
+
},
|
|
108
|
+
condition: 'iconVisible === true'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: 'control',
|
|
112
|
+
label: {
|
|
113
|
+
en: 'Size'
|
|
114
|
+
},
|
|
115
|
+
setting: {
|
|
116
|
+
id: 'iconSize'
|
|
117
|
+
},
|
|
118
|
+
condition: 'iconVisible === true'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: 'control',
|
|
122
|
+
label: {
|
|
123
|
+
en: 'Position'
|
|
124
|
+
},
|
|
125
|
+
setting: {
|
|
126
|
+
id: 'iconAlignVertical'
|
|
127
|
+
},
|
|
128
|
+
condition: 'iconVisible === true && fileUploadLayout === "vertical"'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: 'control',
|
|
132
|
+
label: {
|
|
133
|
+
en: 'Position'
|
|
134
|
+
},
|
|
135
|
+
setting: {
|
|
136
|
+
id: 'iconAlignHorizontal'
|
|
137
|
+
},
|
|
138
|
+
condition: 'iconVisible === true && fileUploadLayout === "horizontal"'
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: 'group',
|
|
144
|
+
label: {
|
|
145
|
+
en: 'Size'
|
|
146
|
+
},
|
|
147
|
+
controls: [
|
|
148
|
+
{
|
|
149
|
+
type: 'control',
|
|
150
|
+
setting: {
|
|
151
|
+
id: 'size'
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: 'control',
|
|
156
|
+
setting: {
|
|
157
|
+
id: 'paddingSize'
|
|
158
|
+
},
|
|
159
|
+
layout: 'vertical',
|
|
160
|
+
isMoreSetting: true
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: 'control',
|
|
164
|
+
label: {
|
|
165
|
+
en: 'Content width'
|
|
166
|
+
},
|
|
167
|
+
setting: {
|
|
168
|
+
id: 'contentWidth'
|
|
169
|
+
},
|
|
170
|
+
isMoreSetting: true
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: 'group',
|
|
176
|
+
label: {
|
|
177
|
+
en: 'States'
|
|
178
|
+
},
|
|
179
|
+
options: {
|
|
180
|
+
labelSpacing: 'small'
|
|
181
|
+
},
|
|
182
|
+
controls: [
|
|
183
|
+
{
|
|
184
|
+
type: 'tab',
|
|
185
|
+
controls: [
|
|
186
|
+
{
|
|
187
|
+
type: 'group',
|
|
188
|
+
label: {
|
|
189
|
+
en: 'Normal'
|
|
190
|
+
},
|
|
191
|
+
controls: [
|
|
192
|
+
{
|
|
193
|
+
type: 'control',
|
|
194
|
+
label: {
|
|
195
|
+
en: 'Background color'
|
|
196
|
+
},
|
|
197
|
+
setting: {
|
|
198
|
+
id: 'backgroundColor',
|
|
199
|
+
state: 'normal'
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
type: 'control',
|
|
204
|
+
label: {
|
|
205
|
+
en: 'Text color'
|
|
206
|
+
},
|
|
207
|
+
setting: {
|
|
208
|
+
id: 'textColor',
|
|
209
|
+
state: 'normal'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
type: 'control',
|
|
214
|
+
options: {
|
|
215
|
+
labelPosition: 'start'
|
|
216
|
+
},
|
|
217
|
+
label: {
|
|
218
|
+
en: 'Border'
|
|
219
|
+
},
|
|
220
|
+
setting: {
|
|
221
|
+
id: 'borderBtn',
|
|
222
|
+
state: 'normal'
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
type: 'control',
|
|
227
|
+
label: {
|
|
228
|
+
en: 'Corner'
|
|
229
|
+
},
|
|
230
|
+
setting: {
|
|
231
|
+
id: 'roundedBtn',
|
|
232
|
+
state: 'normal'
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: 'control',
|
|
237
|
+
label: {
|
|
238
|
+
en: 'Shadow'
|
|
239
|
+
},
|
|
240
|
+
setting: {
|
|
241
|
+
id: 'hasBoxShadowBtn',
|
|
242
|
+
state: 'normal'
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
type: 'control',
|
|
247
|
+
label: {
|
|
248
|
+
en: ''
|
|
249
|
+
},
|
|
250
|
+
condition: 'hasBoxShadowBtn.normal == true',
|
|
251
|
+
layout: 'vertical',
|
|
252
|
+
setting: {
|
|
253
|
+
id: 'boxShadowBtn',
|
|
254
|
+
state: 'normal'
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
type: 'group',
|
|
261
|
+
label: {
|
|
262
|
+
en: 'Hover'
|
|
263
|
+
},
|
|
264
|
+
controls: [
|
|
265
|
+
{
|
|
266
|
+
type: 'control',
|
|
267
|
+
label: {
|
|
268
|
+
en: 'Background color'
|
|
269
|
+
},
|
|
270
|
+
setting: {
|
|
271
|
+
id: 'backgroundColor',
|
|
272
|
+
state: 'hover'
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
type: 'control',
|
|
277
|
+
label: {
|
|
278
|
+
en: 'Text color'
|
|
279
|
+
},
|
|
280
|
+
setting: {
|
|
281
|
+
id: 'textColor',
|
|
282
|
+
state: 'hover'
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
type: 'control',
|
|
287
|
+
options: {
|
|
288
|
+
labelPosition: 'start'
|
|
289
|
+
},
|
|
290
|
+
label: {
|
|
291
|
+
en: 'Border'
|
|
292
|
+
},
|
|
293
|
+
setting: {
|
|
294
|
+
id: 'borderBtn',
|
|
295
|
+
state: 'hover'
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
type: 'control',
|
|
300
|
+
label: {
|
|
301
|
+
en: 'Corner'
|
|
302
|
+
},
|
|
303
|
+
setting: {
|
|
304
|
+
id: 'roundedBtn',
|
|
305
|
+
state: 'hover'
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
type: 'control',
|
|
310
|
+
label: {
|
|
311
|
+
en: 'Shadow'
|
|
312
|
+
},
|
|
313
|
+
setting: {
|
|
314
|
+
id: 'hasBoxShadowBtn',
|
|
315
|
+
state: 'hover'
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
type: 'control',
|
|
320
|
+
label: {
|
|
321
|
+
en: ''
|
|
322
|
+
},
|
|
323
|
+
layout: 'vertical',
|
|
324
|
+
condition: 'hasBoxShadowBtn.hover == true',
|
|
325
|
+
setting: {
|
|
326
|
+
id: 'boxShadowBtn',
|
|
327
|
+
state: 'hover'
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
type: 'group',
|
|
338
|
+
label: {
|
|
339
|
+
en: 'Text'
|
|
340
|
+
},
|
|
341
|
+
controls: [
|
|
342
|
+
{
|
|
343
|
+
type: 'control',
|
|
344
|
+
label: {
|
|
345
|
+
en: 'Content'
|
|
346
|
+
},
|
|
347
|
+
layout: 'horizontal',
|
|
348
|
+
setting: {
|
|
349
|
+
id: 'textContent'
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: 'control',
|
|
354
|
+
setting: {
|
|
355
|
+
id: 'typo'
|
|
356
|
+
},
|
|
357
|
+
layout: 'vertical'
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
type: 'group',
|
|
363
|
+
label: {
|
|
364
|
+
en: 'Spacing'
|
|
365
|
+
},
|
|
366
|
+
controls: [
|
|
367
|
+
{
|
|
368
|
+
type: 'control',
|
|
369
|
+
label: {
|
|
370
|
+
en: 'Icon & text'
|
|
371
|
+
},
|
|
372
|
+
setting: {
|
|
373
|
+
id: 'spacing'
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
type: 'control',
|
|
380
|
+
label: {
|
|
381
|
+
en: 'Text align'
|
|
382
|
+
},
|
|
383
|
+
setting: {
|
|
384
|
+
id: 'textAlign'
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
type: 'control',
|
|
389
|
+
label: {
|
|
390
|
+
en: 'Align'
|
|
391
|
+
},
|
|
392
|
+
condition: `size.width !== '100%'`,
|
|
393
|
+
options: {
|
|
394
|
+
label: 'large'
|
|
395
|
+
},
|
|
396
|
+
setting: {
|
|
397
|
+
id: 'align'
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
];
|
|
401
|
+
|
|
402
|
+
exports.SettingUIV1 = SettingUIV1;
|