@gem-sdk/components 2.0.0-dev.732 → 2.0.0-dev.734
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/product/components/FileUpload/components/config/setting.js +78 -84
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +99 -46
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +8 -1
- package/dist/esm/product/components/FileUpload/components/config/setting.js +78 -84
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +99 -46
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +8 -1
- package/package.json +2 -2
|
@@ -15,107 +15,101 @@ const Settings = [
|
|
|
15
15
|
default: 'textContent'
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
id: '
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
id: 'fileUploadLayout',
|
|
19
|
+
label: 'Layout',
|
|
20
|
+
type: 'layout-selector',
|
|
21
|
+
iconViewBox: '0 0 72 72',
|
|
22
|
+
enableItemBackground: true,
|
|
23
|
+
itemSpacing: 'large',
|
|
24
|
+
itemPerRow: 2,
|
|
25
|
+
options: [
|
|
21
26
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
iconViewBox: '0 0 120 72',
|
|
26
|
-
enableItemBackground: true,
|
|
27
|
-
enableTooltip: false,
|
|
28
|
-
default: 'vertical',
|
|
29
|
-
options: [
|
|
30
|
-
{
|
|
31
|
-
label: 'File upload layout vertical',
|
|
32
|
-
value: 'vertical',
|
|
33
|
-
type: 'file-upload-layout'
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: 'File upload layout horizontal',
|
|
37
|
-
value: 'horizontal',
|
|
38
|
-
type: 'file-upload-layout'
|
|
39
|
-
}
|
|
40
|
-
]
|
|
27
|
+
label: 'Vertical',
|
|
28
|
+
value: 'vertical',
|
|
29
|
+
iconName: 'gp-product-file-upload-vertical-layout'
|
|
41
30
|
},
|
|
42
31
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
32
|
+
label: 'Horizontal',
|
|
33
|
+
value: 'horizontal',
|
|
34
|
+
iconName: 'gp-product-file-upload-horizontal-layout'
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'arrangeContent',
|
|
40
|
+
label: 'Arrange content',
|
|
41
|
+
type: 'segment',
|
|
42
|
+
default: 'center',
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
label: 'Left',
|
|
46
|
+
value: 'start',
|
|
47
|
+
type: 'align-v',
|
|
48
|
+
icon: `<svg width="42" height="28" viewBox="0 0 42 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
53
49
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8867 22.375C11.8867 22.7202 12.1665 23 12.5117 23C12.8569 23 13.1367 22.7202 13.1367 22.375L13.1367 18.7683C13.3322 18.8374 13.5426 18.875 13.7617 18.875L21.2617 18.875C22.2973 18.875 23.1367 18.0355 23.1367 17L23.1367 11.5C23.1367 10.4645 22.2973 9.625 21.2617 9.625L13.7617 9.625C13.5426 9.625 13.3322 9.6626 13.1367 9.7317L13.1367 6.12408C13.1367 5.77891 12.8569 5.49908 12.5117 5.49908C12.1665 5.49908 11.8867 5.77891 11.8867 6.12408L11.8867 22.375ZM13.7617 17.625C13.4166 17.625 13.1367 17.3452 13.1367 17L13.1367 11.5C13.1367 11.1548 13.4166 10.875 13.7617 10.875L21.2617 10.875C21.6069 10.875 21.8867 11.1548 21.8867 11.5L21.8867 17C21.8867 17.3452 21.6069 17.625 21.2617 17.625L13.7617 17.625Z" fill="currentColor"/>
|
|
54
50
|
</svg>
|
|
55
51
|
`
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Center',
|
|
55
|
+
value: 'center',
|
|
56
|
+
type: 'align-v',
|
|
57
|
+
icon: `<svg width="42" height="28" viewBox="0 0 42 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
62
58
|
<path d="M0.333496 6C0.333496 2.68629 3.01979 0 6.3335 0H35.6668C38.9805 0 41.6668 2.68629 41.6668 6V22C41.6668 25.3137 38.9805 28 35.6668 28H6.33349C3.01978 28 0.333496 25.3137 0.333496 22V6Z" />
|
|
63
59
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.4937 16.7258C15.4937 17.7614 16.3331 18.6008 17.3687 18.6008L20.4937 18.6008L20.4937 22.1844C20.4937 22.5296 20.7735 22.8094 21.1187 22.8094C21.4638 22.8094 21.7437 22.5296 21.7437 22.1844L21.7437 18.6008L24.8687 18.6008C25.9042 18.6008 26.7437 17.7614 26.7437 16.7258L26.7437 11.2258C26.7437 10.1903 25.9042 9.35083 24.8687 9.35083L21.7437 9.35083L21.7437 5.81549C21.7437 5.47031 21.4638 5.19049 21.1187 5.19049C20.7735 5.19049 20.4937 5.47031 20.4937 5.81549L20.4937 9.35083L17.3687 9.35083C16.3331 9.35083 15.4937 10.1903 15.4937 11.2258L15.4937 16.7258ZM17.3687 17.3508C17.0235 17.3508 16.7437 17.071 16.7437 16.7258L16.7437 11.2258C16.7437 10.8807 17.0235 10.6008 17.3687 10.6008L24.8687 10.6008C25.2138 10.6008 25.4937 10.8807 25.4937 11.2258L25.4937 16.7258C25.4937 17.071 25.2138 17.3508 24.8687 17.3508L17.3687 17.3508Z" fill="currentColor"/>
|
|
64
60
|
</svg>
|
|
65
61
|
`
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Right',
|
|
65
|
+
value: 'end',
|
|
66
|
+
icon: `<svg width="42" height="28" viewBox="0 0 42 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
71
67
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.8628 17C18.8628 18.0355 19.7023 18.875 20.7378 18.875L28.2378 18.875C28.457 18.875 28.6673 18.8374 28.8628 18.7683L28.8628 22.375C28.8628 22.7202 29.1426 23 29.4878 23C29.833 23 30.1128 22.7202 30.1128 22.375L30.1128 6.12408C30.1128 5.77891 29.833 5.49908 29.4878 5.49908C29.1426 5.49908 28.8628 5.77891 28.8628 6.12408L28.8628 9.7317C28.6673 9.6626 28.457 9.625 28.2378 9.625L20.7378 9.625C19.7023 9.625 18.8628 10.4645 18.8628 11.5L18.8628 17ZM20.7378 17.625C20.3926 17.625 20.1128 17.3452 20.1128 17L20.1128 11.5C20.1128 11.1548 20.3926 10.875 20.7378 10.875L28.2378 10.875C28.583 10.875 28.8628 11.1548 28.8628 11.5L28.8628 17C28.8628 17.3452 28.583 17.625 28.2378 17.625L20.7378 17.625Z" fill="currentColor"/>
|
|
72
68
|
</svg>
|
|
73
69
|
`,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
type: 'align-v'
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'positionVertical',
|
|
76
|
+
type: 'layout-segment',
|
|
77
|
+
iconViewBox: '0 0 66 48',
|
|
78
|
+
enableItemBackground: true,
|
|
79
|
+
enableTooltip: true,
|
|
80
|
+
label: 'Position',
|
|
81
|
+
default: 'center',
|
|
82
|
+
options: [
|
|
83
|
+
{
|
|
84
|
+
label: 'Align center',
|
|
85
|
+
value: 'center',
|
|
86
|
+
type: 'file-upload-position-vertical'
|
|
77
87
|
},
|
|
78
88
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
label: 'Align left',
|
|
90
|
+
value: 'start',
|
|
91
|
+
type: 'file-upload-position-vertical'
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: 'positionHorizontal',
|
|
97
|
+
type: 'layout-segment',
|
|
98
|
+
iconViewBox: '0 0 66 48',
|
|
99
|
+
enableItemBackground: true,
|
|
100
|
+
enableTooltip: true,
|
|
101
|
+
label: 'Position',
|
|
102
|
+
default: 'center',
|
|
103
|
+
options: [
|
|
104
|
+
{
|
|
105
|
+
label: 'Align center',
|
|
106
|
+
value: 'center',
|
|
107
|
+
type: 'file-upload-position-horizontal'
|
|
98
108
|
},
|
|
99
109
|
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
enableItemBackground: true,
|
|
104
|
-
enableTooltip: true,
|
|
105
|
-
label: 'Position',
|
|
106
|
-
default: 'center',
|
|
107
|
-
options: [
|
|
108
|
-
{
|
|
109
|
-
label: 'Align center',
|
|
110
|
-
value: 'center',
|
|
111
|
-
type: 'file-upload-position-horizontal'
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: 'Align start',
|
|
115
|
-
value: 'start',
|
|
116
|
-
type: 'file-upload-position-horizontal'
|
|
117
|
-
}
|
|
118
|
-
]
|
|
110
|
+
label: 'Align start',
|
|
111
|
+
value: 'start',
|
|
112
|
+
type: 'file-upload-position-horizontal'
|
|
119
113
|
}
|
|
120
114
|
]
|
|
121
115
|
},
|
|
@@ -7,43 +7,96 @@ const SettingUIV2 = [
|
|
|
7
7
|
},
|
|
8
8
|
controls: [
|
|
9
9
|
{
|
|
10
|
-
type: 'control',
|
|
11
10
|
setting: {
|
|
12
11
|
id: 'fileUploadLayout'
|
|
13
12
|
},
|
|
14
|
-
layout: 'vertical'
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type: 'control',
|
|
18
|
-
label: {
|
|
19
|
-
en: 'Arrange content'
|
|
20
|
-
},
|
|
21
|
-
setting: {
|
|
22
|
-
id: 'arrangeContent'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
type: 'control',
|
|
27
|
-
label: {
|
|
28
|
-
en: 'Icon position'
|
|
29
|
-
},
|
|
30
|
-
setting: {
|
|
31
|
-
id: 'positionVertical'
|
|
32
|
-
},
|
|
33
|
-
conditionDisplay: "fileUploadLayout === 'vertical'"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
type: 'control',
|
|
37
|
-
label: {
|
|
38
|
-
en: 'Icon position'
|
|
39
|
-
},
|
|
40
|
-
setting: {
|
|
41
|
-
id: 'positionHorizontal'
|
|
13
|
+
layout: 'vertical',
|
|
14
|
+
options: {
|
|
15
|
+
isComboLayout: true
|
|
42
16
|
},
|
|
43
|
-
|
|
17
|
+
controls: [
|
|
18
|
+
{
|
|
19
|
+
label: {
|
|
20
|
+
en: 'Arrange content'
|
|
21
|
+
},
|
|
22
|
+
setting: {
|
|
23
|
+
id: 'arrangeContent'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: {
|
|
28
|
+
en: 'Icon position'
|
|
29
|
+
},
|
|
30
|
+
setting: {
|
|
31
|
+
id: 'positionVertical'
|
|
32
|
+
},
|
|
33
|
+
conditionDisplay: "fileUploadLayout === 'vertical'"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: {
|
|
37
|
+
en: 'Icon position'
|
|
38
|
+
},
|
|
39
|
+
setting: {
|
|
40
|
+
id: 'positionHorizontal'
|
|
41
|
+
},
|
|
42
|
+
conditionDisplay: "fileUploadLayout !== 'vertical'"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: 'control',
|
|
46
|
+
label: {
|
|
47
|
+
en: 'Spacing'
|
|
48
|
+
},
|
|
49
|
+
setting: {
|
|
50
|
+
id: 'spacing'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
44
54
|
}
|
|
45
55
|
]
|
|
46
56
|
},
|
|
57
|
+
// {
|
|
58
|
+
// label: {
|
|
59
|
+
// en: 'Layout',
|
|
60
|
+
// },
|
|
61
|
+
// controls: [
|
|
62
|
+
// {
|
|
63
|
+
// type: 'control',
|
|
64
|
+
// setting: {
|
|
65
|
+
// id: 'fileUploadLayout',
|
|
66
|
+
// },
|
|
67
|
+
// layout: 'vertical',
|
|
68
|
+
// },
|
|
69
|
+
// {
|
|
70
|
+
// type: 'control',
|
|
71
|
+
// label: {
|
|
72
|
+
// en: 'Arrange content',
|
|
73
|
+
// },
|
|
74
|
+
// setting: {
|
|
75
|
+
// id: 'arrangeContent',
|
|
76
|
+
// },
|
|
77
|
+
// },
|
|
78
|
+
// {
|
|
79
|
+
// type: 'control',
|
|
80
|
+
// label: {
|
|
81
|
+
// en: 'Icon position',
|
|
82
|
+
// },
|
|
83
|
+
// setting: {
|
|
84
|
+
// id: 'positionVertical',
|
|
85
|
+
// },
|
|
86
|
+
// conditionDisplay: "fileUploadLayout === 'vertical'",
|
|
87
|
+
// },
|
|
88
|
+
// {
|
|
89
|
+
// type: 'control',
|
|
90
|
+
// label: {
|
|
91
|
+
// en: 'Icon position',
|
|
92
|
+
// },
|
|
93
|
+
// setting: {
|
|
94
|
+
// id: 'positionHorizontal',
|
|
95
|
+
// },
|
|
96
|
+
// conditionDisplay: "fileUploadLayout !== 'vertical'",
|
|
97
|
+
// },
|
|
98
|
+
// ],
|
|
99
|
+
// },
|
|
47
100
|
{
|
|
48
101
|
label: {
|
|
49
102
|
en: 'Upload setting'
|
|
@@ -452,22 +505,22 @@ const SettingUIV2 = [
|
|
|
452
505
|
}
|
|
453
506
|
]
|
|
454
507
|
},
|
|
455
|
-
{
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
},
|
|
508
|
+
// {
|
|
509
|
+
// label: {
|
|
510
|
+
// en: 'Spacing',
|
|
511
|
+
// },
|
|
512
|
+
// controls: [
|
|
513
|
+
// {
|
|
514
|
+
// type: 'control',
|
|
515
|
+
// label: {
|
|
516
|
+
// en: 'Icon & text',
|
|
517
|
+
// },
|
|
518
|
+
// setting: {
|
|
519
|
+
// id: 'spacing',
|
|
520
|
+
// },
|
|
521
|
+
// },
|
|
522
|
+
// ],
|
|
523
|
+
// },
|
|
471
524
|
{
|
|
472
525
|
controls: [
|
|
473
526
|
{
|
|
@@ -202,13 +202,20 @@ const ProductListSettingsV2 = [
|
|
|
202
202
|
compoDefaultValue: {
|
|
203
203
|
desktop: {
|
|
204
204
|
default: {
|
|
205
|
+
type: 'image',
|
|
205
206
|
image: {
|
|
206
207
|
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
207
208
|
width: 1200,
|
|
208
209
|
height: 480
|
|
209
210
|
},
|
|
210
211
|
repeat: 'no-repeat',
|
|
211
|
-
size: 'cover'
|
|
212
|
+
size: 'cover',
|
|
213
|
+
position: {
|
|
214
|
+
x: 50,
|
|
215
|
+
y: 50
|
|
216
|
+
},
|
|
217
|
+
attachment: 'scroll',
|
|
218
|
+
preload: false
|
|
212
219
|
}
|
|
213
220
|
}
|
|
214
221
|
}
|
|
@@ -13,107 +13,101 @@ const Settings = [
|
|
|
13
13
|
default: 'textContent'
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
id: '
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
id: 'fileUploadLayout',
|
|
17
|
+
label: 'Layout',
|
|
18
|
+
type: 'layout-selector',
|
|
19
|
+
iconViewBox: '0 0 72 72',
|
|
20
|
+
enableItemBackground: true,
|
|
21
|
+
itemSpacing: 'large',
|
|
22
|
+
itemPerRow: 2,
|
|
23
|
+
options: [
|
|
19
24
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
iconViewBox: '0 0 120 72',
|
|
24
|
-
enableItemBackground: true,
|
|
25
|
-
enableTooltip: false,
|
|
26
|
-
default: 'vertical',
|
|
27
|
-
options: [
|
|
28
|
-
{
|
|
29
|
-
label: 'File upload layout vertical',
|
|
30
|
-
value: 'vertical',
|
|
31
|
-
type: 'file-upload-layout'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
label: 'File upload layout horizontal',
|
|
35
|
-
value: 'horizontal',
|
|
36
|
-
type: 'file-upload-layout'
|
|
37
|
-
}
|
|
38
|
-
]
|
|
25
|
+
label: 'Vertical',
|
|
26
|
+
value: 'vertical',
|
|
27
|
+
iconName: 'gp-product-file-upload-vertical-layout'
|
|
39
28
|
},
|
|
40
29
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
30
|
+
label: 'Horizontal',
|
|
31
|
+
value: 'horizontal',
|
|
32
|
+
iconName: 'gp-product-file-upload-horizontal-layout'
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'arrangeContent',
|
|
38
|
+
label: 'Arrange content',
|
|
39
|
+
type: 'segment',
|
|
40
|
+
default: 'center',
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
label: 'Left',
|
|
44
|
+
value: 'start',
|
|
45
|
+
type: 'align-v',
|
|
46
|
+
icon: `<svg width="42" height="28" viewBox="0 0 42 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
51
47
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8867 22.375C11.8867 22.7202 12.1665 23 12.5117 23C12.8569 23 13.1367 22.7202 13.1367 22.375L13.1367 18.7683C13.3322 18.8374 13.5426 18.875 13.7617 18.875L21.2617 18.875C22.2973 18.875 23.1367 18.0355 23.1367 17L23.1367 11.5C23.1367 10.4645 22.2973 9.625 21.2617 9.625L13.7617 9.625C13.5426 9.625 13.3322 9.6626 13.1367 9.7317L13.1367 6.12408C13.1367 5.77891 12.8569 5.49908 12.5117 5.49908C12.1665 5.49908 11.8867 5.77891 11.8867 6.12408L11.8867 22.375ZM13.7617 17.625C13.4166 17.625 13.1367 17.3452 13.1367 17L13.1367 11.5C13.1367 11.1548 13.4166 10.875 13.7617 10.875L21.2617 10.875C21.6069 10.875 21.8867 11.1548 21.8867 11.5L21.8867 17C21.8867 17.3452 21.6069 17.625 21.2617 17.625L13.7617 17.625Z" fill="currentColor"/>
|
|
52
48
|
</svg>
|
|
53
49
|
`
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: 'Center',
|
|
53
|
+
value: 'center',
|
|
54
|
+
type: 'align-v',
|
|
55
|
+
icon: `<svg width="42" height="28" viewBox="0 0 42 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
60
56
|
<path d="M0.333496 6C0.333496 2.68629 3.01979 0 6.3335 0H35.6668C38.9805 0 41.6668 2.68629 41.6668 6V22C41.6668 25.3137 38.9805 28 35.6668 28H6.33349C3.01978 28 0.333496 25.3137 0.333496 22V6Z" />
|
|
61
57
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.4937 16.7258C15.4937 17.7614 16.3331 18.6008 17.3687 18.6008L20.4937 18.6008L20.4937 22.1844C20.4937 22.5296 20.7735 22.8094 21.1187 22.8094C21.4638 22.8094 21.7437 22.5296 21.7437 22.1844L21.7437 18.6008L24.8687 18.6008C25.9042 18.6008 26.7437 17.7614 26.7437 16.7258L26.7437 11.2258C26.7437 10.1903 25.9042 9.35083 24.8687 9.35083L21.7437 9.35083L21.7437 5.81549C21.7437 5.47031 21.4638 5.19049 21.1187 5.19049C20.7735 5.19049 20.4937 5.47031 20.4937 5.81549L20.4937 9.35083L17.3687 9.35083C16.3331 9.35083 15.4937 10.1903 15.4937 11.2258L15.4937 16.7258ZM17.3687 17.3508C17.0235 17.3508 16.7437 17.071 16.7437 16.7258L16.7437 11.2258C16.7437 10.8807 17.0235 10.6008 17.3687 10.6008L24.8687 10.6008C25.2138 10.6008 25.4937 10.8807 25.4937 11.2258L25.4937 16.7258C25.4937 17.071 25.2138 17.3508 24.8687 17.3508L17.3687 17.3508Z" fill="currentColor"/>
|
|
62
58
|
</svg>
|
|
63
59
|
`
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: 'Right',
|
|
63
|
+
value: 'end',
|
|
64
|
+
icon: `<svg width="42" height="28" viewBox="0 0 42 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
69
65
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.8628 17C18.8628 18.0355 19.7023 18.875 20.7378 18.875L28.2378 18.875C28.457 18.875 28.6673 18.8374 28.8628 18.7683L28.8628 22.375C28.8628 22.7202 29.1426 23 29.4878 23C29.833 23 30.1128 22.7202 30.1128 22.375L30.1128 6.12408C30.1128 5.77891 29.833 5.49908 29.4878 5.49908C29.1426 5.49908 28.8628 5.77891 28.8628 6.12408L28.8628 9.7317C28.6673 9.6626 28.457 9.625 28.2378 9.625L20.7378 9.625C19.7023 9.625 18.8628 10.4645 18.8628 11.5L18.8628 17ZM20.7378 17.625C20.3926 17.625 20.1128 17.3452 20.1128 17L20.1128 11.5C20.1128 11.1548 20.3926 10.875 20.7378 10.875L28.2378 10.875C28.583 10.875 28.8628 11.1548 28.8628 11.5L28.8628 17C28.8628 17.3452 28.583 17.625 28.2378 17.625L20.7378 17.625Z" fill="currentColor"/>
|
|
70
66
|
</svg>
|
|
71
67
|
`,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
type: 'align-v'
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'positionVertical',
|
|
74
|
+
type: 'layout-segment',
|
|
75
|
+
iconViewBox: '0 0 66 48',
|
|
76
|
+
enableItemBackground: true,
|
|
77
|
+
enableTooltip: true,
|
|
78
|
+
label: 'Position',
|
|
79
|
+
default: 'center',
|
|
80
|
+
options: [
|
|
81
|
+
{
|
|
82
|
+
label: 'Align center',
|
|
83
|
+
value: 'center',
|
|
84
|
+
type: 'file-upload-position-vertical'
|
|
75
85
|
},
|
|
76
86
|
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
label: 'Align left',
|
|
88
|
+
value: 'start',
|
|
89
|
+
type: 'file-upload-position-vertical'
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 'positionHorizontal',
|
|
95
|
+
type: 'layout-segment',
|
|
96
|
+
iconViewBox: '0 0 66 48',
|
|
97
|
+
enableItemBackground: true,
|
|
98
|
+
enableTooltip: true,
|
|
99
|
+
label: 'Position',
|
|
100
|
+
default: 'center',
|
|
101
|
+
options: [
|
|
102
|
+
{
|
|
103
|
+
label: 'Align center',
|
|
104
|
+
value: 'center',
|
|
105
|
+
type: 'file-upload-position-horizontal'
|
|
96
106
|
},
|
|
97
107
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
enableItemBackground: true,
|
|
102
|
-
enableTooltip: true,
|
|
103
|
-
label: 'Position',
|
|
104
|
-
default: 'center',
|
|
105
|
-
options: [
|
|
106
|
-
{
|
|
107
|
-
label: 'Align center',
|
|
108
|
-
value: 'center',
|
|
109
|
-
type: 'file-upload-position-horizontal'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: 'Align start',
|
|
113
|
-
value: 'start',
|
|
114
|
-
type: 'file-upload-position-horizontal'
|
|
115
|
-
}
|
|
116
|
-
]
|
|
108
|
+
label: 'Align start',
|
|
109
|
+
value: 'start',
|
|
110
|
+
type: 'file-upload-position-horizontal'
|
|
117
111
|
}
|
|
118
112
|
]
|
|
119
113
|
},
|
|
@@ -5,43 +5,96 @@ const SettingUIV2 = [
|
|
|
5
5
|
},
|
|
6
6
|
controls: [
|
|
7
7
|
{
|
|
8
|
-
type: 'control',
|
|
9
8
|
setting: {
|
|
10
9
|
id: 'fileUploadLayout'
|
|
11
10
|
},
|
|
12
|
-
layout: 'vertical'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type: 'control',
|
|
16
|
-
label: {
|
|
17
|
-
en: 'Arrange content'
|
|
18
|
-
},
|
|
19
|
-
setting: {
|
|
20
|
-
id: 'arrangeContent'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
type: 'control',
|
|
25
|
-
label: {
|
|
26
|
-
en: 'Icon position'
|
|
27
|
-
},
|
|
28
|
-
setting: {
|
|
29
|
-
id: 'positionVertical'
|
|
30
|
-
},
|
|
31
|
-
conditionDisplay: "fileUploadLayout === 'vertical'"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
type: 'control',
|
|
35
|
-
label: {
|
|
36
|
-
en: 'Icon position'
|
|
37
|
-
},
|
|
38
|
-
setting: {
|
|
39
|
-
id: 'positionHorizontal'
|
|
11
|
+
layout: 'vertical',
|
|
12
|
+
options: {
|
|
13
|
+
isComboLayout: true
|
|
40
14
|
},
|
|
41
|
-
|
|
15
|
+
controls: [
|
|
16
|
+
{
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Arrange content'
|
|
19
|
+
},
|
|
20
|
+
setting: {
|
|
21
|
+
id: 'arrangeContent'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Icon position'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'positionVertical'
|
|
30
|
+
},
|
|
31
|
+
conditionDisplay: "fileUploadLayout === 'vertical'"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Icon position'
|
|
36
|
+
},
|
|
37
|
+
setting: {
|
|
38
|
+
id: 'positionHorizontal'
|
|
39
|
+
},
|
|
40
|
+
conditionDisplay: "fileUploadLayout !== 'vertical'"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: 'control',
|
|
44
|
+
label: {
|
|
45
|
+
en: 'Spacing'
|
|
46
|
+
},
|
|
47
|
+
setting: {
|
|
48
|
+
id: 'spacing'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
42
52
|
}
|
|
43
53
|
]
|
|
44
54
|
},
|
|
55
|
+
// {
|
|
56
|
+
// label: {
|
|
57
|
+
// en: 'Layout',
|
|
58
|
+
// },
|
|
59
|
+
// controls: [
|
|
60
|
+
// {
|
|
61
|
+
// type: 'control',
|
|
62
|
+
// setting: {
|
|
63
|
+
// id: 'fileUploadLayout',
|
|
64
|
+
// },
|
|
65
|
+
// layout: 'vertical',
|
|
66
|
+
// },
|
|
67
|
+
// {
|
|
68
|
+
// type: 'control',
|
|
69
|
+
// label: {
|
|
70
|
+
// en: 'Arrange content',
|
|
71
|
+
// },
|
|
72
|
+
// setting: {
|
|
73
|
+
// id: 'arrangeContent',
|
|
74
|
+
// },
|
|
75
|
+
// },
|
|
76
|
+
// {
|
|
77
|
+
// type: 'control',
|
|
78
|
+
// label: {
|
|
79
|
+
// en: 'Icon position',
|
|
80
|
+
// },
|
|
81
|
+
// setting: {
|
|
82
|
+
// id: 'positionVertical',
|
|
83
|
+
// },
|
|
84
|
+
// conditionDisplay: "fileUploadLayout === 'vertical'",
|
|
85
|
+
// },
|
|
86
|
+
// {
|
|
87
|
+
// type: 'control',
|
|
88
|
+
// label: {
|
|
89
|
+
// en: 'Icon position',
|
|
90
|
+
// },
|
|
91
|
+
// setting: {
|
|
92
|
+
// id: 'positionHorizontal',
|
|
93
|
+
// },
|
|
94
|
+
// conditionDisplay: "fileUploadLayout !== 'vertical'",
|
|
95
|
+
// },
|
|
96
|
+
// ],
|
|
97
|
+
// },
|
|
45
98
|
{
|
|
46
99
|
label: {
|
|
47
100
|
en: 'Upload setting'
|
|
@@ -450,22 +503,22 @@ const SettingUIV2 = [
|
|
|
450
503
|
}
|
|
451
504
|
]
|
|
452
505
|
},
|
|
453
|
-
{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
},
|
|
506
|
+
// {
|
|
507
|
+
// label: {
|
|
508
|
+
// en: 'Spacing',
|
|
509
|
+
// },
|
|
510
|
+
// controls: [
|
|
511
|
+
// {
|
|
512
|
+
// type: 'control',
|
|
513
|
+
// label: {
|
|
514
|
+
// en: 'Icon & text',
|
|
515
|
+
// },
|
|
516
|
+
// setting: {
|
|
517
|
+
// id: 'spacing',
|
|
518
|
+
// },
|
|
519
|
+
// },
|
|
520
|
+
// ],
|
|
521
|
+
// },
|
|
469
522
|
{
|
|
470
523
|
controls: [
|
|
471
524
|
{
|
|
@@ -200,13 +200,20 @@ const ProductListSettingsV2 = [
|
|
|
200
200
|
compoDefaultValue: {
|
|
201
201
|
desktop: {
|
|
202
202
|
default: {
|
|
203
|
+
type: 'image',
|
|
203
204
|
image: {
|
|
204
205
|
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
205
206
|
width: 1200,
|
|
206
207
|
height: 480
|
|
207
208
|
},
|
|
208
209
|
repeat: 'no-repeat',
|
|
209
|
-
size: 'cover'
|
|
210
|
+
size: 'cover',
|
|
211
|
+
position: {
|
|
212
|
+
x: 50,
|
|
213
|
+
y: 50
|
|
214
|
+
},
|
|
215
|
+
attachment: 'scroll',
|
|
216
|
+
preload: false
|
|
210
217
|
}
|
|
211
218
|
}
|
|
212
219
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.734",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-dev.733",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-dev.703",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-dev.695",
|
|
31
31
|
"@types/react-transition-group": "^4.4.5",
|