@gem-sdk/components 2.0.0-dev.561 → 2.0.0-dev.563
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/accordion/setting/Accordion.js +4 -12
- package/dist/cjs/accordion/setting/configs/settings.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +4 -2
- package/dist/cjs/article/setting/configs/ArticleList/settings.js +1 -4
- package/dist/cjs/article/setting/configs/ArticleList/uiV2.js +17 -23
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +0 -18
- package/dist/esm/accordion/setting/Accordion.js +4 -12
- package/dist/esm/accordion/setting/configs/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +4 -2
- package/dist/esm/article/setting/configs/ArticleList/settings.js +1 -4
- package/dist/esm/article/setting/configs/ArticleList/uiV2.js +17 -23
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +0 -18
- package/package.json +1 -1
|
@@ -181,24 +181,16 @@ const config = {
|
|
|
181
181
|
},
|
|
182
182
|
styles: {
|
|
183
183
|
bgColor: {
|
|
184
|
-
normal: '#333333'
|
|
185
|
-
active: '#333333',
|
|
186
|
-
hover: '#333333'
|
|
184
|
+
normal: '#333333'
|
|
187
185
|
},
|
|
188
186
|
iconColor: {
|
|
189
|
-
normal: '#EAEAEA'
|
|
190
|
-
active: '#EAEAEA',
|
|
191
|
-
hover: '#EAEAEA'
|
|
187
|
+
normal: '#EAEAEA'
|
|
192
188
|
},
|
|
193
189
|
textColor: {
|
|
194
|
-
normal: '#EAEAEA'
|
|
195
|
-
active: '#EAEAEA',
|
|
196
|
-
hover: '#EAEAEA'
|
|
190
|
+
normal: '#EAEAEA'
|
|
197
191
|
},
|
|
198
192
|
color: {
|
|
199
|
-
normal: '#EAEAEA'
|
|
200
|
-
active: '#EAEAEA',
|
|
201
|
-
hover: '#EAEAEA'
|
|
193
|
+
normal: '#EAEAEA'
|
|
202
194
|
},
|
|
203
195
|
itemGap: '16px'
|
|
204
196
|
},
|
|
@@ -13,7 +13,7 @@ const ArticleImageSettings = [
|
|
|
13
13
|
id: 'alt',
|
|
14
14
|
label: 'Alt Text',
|
|
15
15
|
type: 'textarea',
|
|
16
|
-
minHeight:
|
|
16
|
+
minHeight: 56,
|
|
17
17
|
autoHeight: true,
|
|
18
18
|
placeholder: 'E.g: This is a very long value for text area field'
|
|
19
19
|
},
|
|
@@ -21,7 +21,9 @@ const ArticleImageSettings = [
|
|
|
21
21
|
id: 'title',
|
|
22
22
|
label: 'Image title',
|
|
23
23
|
info: 'Show title when hover to image',
|
|
24
|
-
type: '
|
|
24
|
+
type: 'textarea',
|
|
25
|
+
minHeight: 56,
|
|
26
|
+
autoHeight: true,
|
|
25
27
|
placeholder: 'E.g: White t-shirt'
|
|
26
28
|
}
|
|
27
29
|
]
|
|
@@ -153,8 +153,7 @@ const uiV2 = [
|
|
|
153
153
|
en: 'Border'
|
|
154
154
|
},
|
|
155
155
|
setting: {
|
|
156
|
-
id: 'wrapperBorder'
|
|
157
|
-
state: 'normal'
|
|
156
|
+
id: 'wrapperBorder'
|
|
158
157
|
}
|
|
159
158
|
},
|
|
160
159
|
{
|
|
@@ -162,8 +161,7 @@ const uiV2 = [
|
|
|
162
161
|
en: 'Corner'
|
|
163
162
|
},
|
|
164
163
|
setting: {
|
|
165
|
-
id: 'borderRadius'
|
|
166
|
-
state: 'normal'
|
|
164
|
+
id: 'borderRadius'
|
|
167
165
|
}
|
|
168
166
|
},
|
|
169
167
|
{
|
|
@@ -171,45 +169,41 @@ const uiV2 = [
|
|
|
171
169
|
en: 'Shadow'
|
|
172
170
|
},
|
|
173
171
|
setting: {
|
|
174
|
-
id: '
|
|
175
|
-
state: 'normal'
|
|
172
|
+
id: 'shadow'
|
|
176
173
|
},
|
|
177
174
|
options: {
|
|
178
175
|
updateFields: [
|
|
179
176
|
{
|
|
180
|
-
field: '
|
|
181
|
-
settingId: '
|
|
182
|
-
state: 'normal'
|
|
177
|
+
field: 'enable',
|
|
178
|
+
settingId: 'hasActiveShadow'
|
|
183
179
|
}
|
|
184
180
|
]
|
|
185
181
|
},
|
|
186
182
|
controlChangeTrigger: {
|
|
187
183
|
settings: [
|
|
188
184
|
{
|
|
189
|
-
condition: `
|
|
185
|
+
condition: `shadow.enable === true`,
|
|
190
186
|
source: [
|
|
191
|
-
'
|
|
192
|
-
'
|
|
187
|
+
'shadow',
|
|
188
|
+
'hasActiveShadow'
|
|
193
189
|
],
|
|
194
190
|
action: {
|
|
195
|
-
controlId: '
|
|
196
|
-
groupType: '
|
|
197
|
-
controlType: '
|
|
198
|
-
state: 'normal',
|
|
191
|
+
controlId: 'hasActiveShadow',
|
|
192
|
+
groupType: 'style',
|
|
193
|
+
controlType: 'style',
|
|
199
194
|
newValue: true
|
|
200
195
|
}
|
|
201
196
|
},
|
|
202
197
|
{
|
|
203
|
-
condition: `
|
|
198
|
+
condition: `shadow.enable === false`,
|
|
204
199
|
source: [
|
|
205
|
-
'
|
|
206
|
-
'
|
|
200
|
+
'shadow',
|
|
201
|
+
'hasActiveShadow'
|
|
207
202
|
],
|
|
208
203
|
action: {
|
|
209
|
-
controlId: '
|
|
210
|
-
groupType: '
|
|
211
|
-
controlType: '
|
|
212
|
-
state: 'normal',
|
|
204
|
+
controlId: 'hasActiveShadow',
|
|
205
|
+
groupType: 'style',
|
|
206
|
+
controlType: 'style',
|
|
213
207
|
newValue: false
|
|
214
208
|
}
|
|
215
209
|
}
|
|
@@ -387,24 +387,6 @@ const StockCounterSettingsV2 = [
|
|
|
387
387
|
btlr: '99999px',
|
|
388
388
|
radiusType: 'circle'
|
|
389
389
|
}
|
|
390
|
-
},
|
|
391
|
-
tablet: {
|
|
392
|
-
default: {
|
|
393
|
-
btrr: '99999px',
|
|
394
|
-
bblr: '99999px',
|
|
395
|
-
bbrr: '99999px',
|
|
396
|
-
btlr: '99999px',
|
|
397
|
-
radiusType: 'circle'
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
mobile: {
|
|
401
|
-
default: {
|
|
402
|
-
btrr: '99999px',
|
|
403
|
-
bblr: '99999px',
|
|
404
|
-
bbrr: '99999px',
|
|
405
|
-
btlr: '99999px',
|
|
406
|
-
radiusType: 'circle'
|
|
407
|
-
}
|
|
408
390
|
}
|
|
409
391
|
},
|
|
410
392
|
compoDefaultValue: {
|
|
@@ -177,24 +177,16 @@ const config = {
|
|
|
177
177
|
},
|
|
178
178
|
styles: {
|
|
179
179
|
bgColor: {
|
|
180
|
-
normal: '#333333'
|
|
181
|
-
active: '#333333',
|
|
182
|
-
hover: '#333333'
|
|
180
|
+
normal: '#333333'
|
|
183
181
|
},
|
|
184
182
|
iconColor: {
|
|
185
|
-
normal: '#EAEAEA'
|
|
186
|
-
active: '#EAEAEA',
|
|
187
|
-
hover: '#EAEAEA'
|
|
183
|
+
normal: '#EAEAEA'
|
|
188
184
|
},
|
|
189
185
|
textColor: {
|
|
190
|
-
normal: '#EAEAEA'
|
|
191
|
-
active: '#EAEAEA',
|
|
192
|
-
hover: '#EAEAEA'
|
|
186
|
+
normal: '#EAEAEA'
|
|
193
187
|
},
|
|
194
188
|
color: {
|
|
195
|
-
normal: '#EAEAEA'
|
|
196
|
-
active: '#EAEAEA',
|
|
197
|
-
hover: '#EAEAEA'
|
|
189
|
+
normal: '#EAEAEA'
|
|
198
190
|
},
|
|
199
191
|
itemGap: '16px'
|
|
200
192
|
},
|
|
@@ -11,7 +11,7 @@ const ArticleImageSettings = [
|
|
|
11
11
|
id: 'alt',
|
|
12
12
|
label: 'Alt Text',
|
|
13
13
|
type: 'textarea',
|
|
14
|
-
minHeight:
|
|
14
|
+
minHeight: 56,
|
|
15
15
|
autoHeight: true,
|
|
16
16
|
placeholder: 'E.g: This is a very long value for text area field'
|
|
17
17
|
},
|
|
@@ -19,7 +19,9 @@ const ArticleImageSettings = [
|
|
|
19
19
|
id: 'title',
|
|
20
20
|
label: 'Image title',
|
|
21
21
|
info: 'Show title when hover to image',
|
|
22
|
-
type: '
|
|
22
|
+
type: 'textarea',
|
|
23
|
+
minHeight: 56,
|
|
24
|
+
autoHeight: true,
|
|
23
25
|
placeholder: 'E.g: White t-shirt'
|
|
24
26
|
}
|
|
25
27
|
]
|
|
@@ -151,8 +151,7 @@ const uiV2 = [
|
|
|
151
151
|
en: 'Border'
|
|
152
152
|
},
|
|
153
153
|
setting: {
|
|
154
|
-
id: 'wrapperBorder'
|
|
155
|
-
state: 'normal'
|
|
154
|
+
id: 'wrapperBorder'
|
|
156
155
|
}
|
|
157
156
|
},
|
|
158
157
|
{
|
|
@@ -160,8 +159,7 @@ const uiV2 = [
|
|
|
160
159
|
en: 'Corner'
|
|
161
160
|
},
|
|
162
161
|
setting: {
|
|
163
|
-
id: 'borderRadius'
|
|
164
|
-
state: 'normal'
|
|
162
|
+
id: 'borderRadius'
|
|
165
163
|
}
|
|
166
164
|
},
|
|
167
165
|
{
|
|
@@ -169,45 +167,41 @@ const uiV2 = [
|
|
|
169
167
|
en: 'Shadow'
|
|
170
168
|
},
|
|
171
169
|
setting: {
|
|
172
|
-
id: '
|
|
173
|
-
state: 'normal'
|
|
170
|
+
id: 'shadow'
|
|
174
171
|
},
|
|
175
172
|
options: {
|
|
176
173
|
updateFields: [
|
|
177
174
|
{
|
|
178
|
-
field: '
|
|
179
|
-
settingId: '
|
|
180
|
-
state: 'normal'
|
|
175
|
+
field: 'enable',
|
|
176
|
+
settingId: 'hasActiveShadow'
|
|
181
177
|
}
|
|
182
178
|
]
|
|
183
179
|
},
|
|
184
180
|
controlChangeTrigger: {
|
|
185
181
|
settings: [
|
|
186
182
|
{
|
|
187
|
-
condition: `
|
|
183
|
+
condition: `shadow.enable === true`,
|
|
188
184
|
source: [
|
|
189
|
-
'
|
|
190
|
-
'
|
|
185
|
+
'shadow',
|
|
186
|
+
'hasActiveShadow'
|
|
191
187
|
],
|
|
192
188
|
action: {
|
|
193
|
-
controlId: '
|
|
194
|
-
groupType: '
|
|
195
|
-
controlType: '
|
|
196
|
-
state: 'normal',
|
|
189
|
+
controlId: 'hasActiveShadow',
|
|
190
|
+
groupType: 'style',
|
|
191
|
+
controlType: 'style',
|
|
197
192
|
newValue: true
|
|
198
193
|
}
|
|
199
194
|
},
|
|
200
195
|
{
|
|
201
|
-
condition: `
|
|
196
|
+
condition: `shadow.enable === false`,
|
|
202
197
|
source: [
|
|
203
|
-
'
|
|
204
|
-
'
|
|
198
|
+
'shadow',
|
|
199
|
+
'hasActiveShadow'
|
|
205
200
|
],
|
|
206
201
|
action: {
|
|
207
|
-
controlId: '
|
|
208
|
-
groupType: '
|
|
209
|
-
controlType: '
|
|
210
|
-
state: 'normal',
|
|
202
|
+
controlId: 'hasActiveShadow',
|
|
203
|
+
groupType: 'style',
|
|
204
|
+
controlType: 'style',
|
|
211
205
|
newValue: false
|
|
212
206
|
}
|
|
213
207
|
}
|
|
@@ -385,24 +385,6 @@ const StockCounterSettingsV2 = [
|
|
|
385
385
|
btlr: '99999px',
|
|
386
386
|
radiusType: 'circle'
|
|
387
387
|
}
|
|
388
|
-
},
|
|
389
|
-
tablet: {
|
|
390
|
-
default: {
|
|
391
|
-
btrr: '99999px',
|
|
392
|
-
bblr: '99999px',
|
|
393
|
-
bbrr: '99999px',
|
|
394
|
-
btlr: '99999px',
|
|
395
|
-
radiusType: 'circle'
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
mobile: {
|
|
399
|
-
default: {
|
|
400
|
-
btrr: '99999px',
|
|
401
|
-
bblr: '99999px',
|
|
402
|
-
bbrr: '99999px',
|
|
403
|
-
btlr: '99999px',
|
|
404
|
-
radiusType: 'circle'
|
|
405
|
-
}
|
|
406
388
|
}
|
|
407
389
|
},
|
|
408
390
|
compoDefaultValue: {
|