@gem-sdk/components 2.0.0-dev.376 → 2.0.0-dev.378
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/collection/setting/collection-paginator/configs/settings.js +1 -1
- package/dist/cjs/dialog/components/common/getStyle.js +5 -4
- package/dist/cjs/dialog/setting/configs/settings.js +1 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +106 -1
- package/dist/cjs/form/components/textinput/TextInput.js +25 -30
- package/dist/cjs/form/components/textinput/TextInput.liquid.js +3 -3
- package/dist/cjs/form/components/textinput/common/composeClasses.js +0 -6
- package/dist/cjs/form/components/textinput/common/composeStyles.js +8 -2
- package/dist/cjs/form/setting/text-input/configs/settings.js +23 -48
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +72 -11
- package/dist/cjs/marquee/setting/configs/settings.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +3 -3
- package/dist/cjs/product/setting/product-list/configs/settings.js +2 -2
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +1 -1
- package/dist/esm/collection/setting/collection-paginator/configs/settings.js +1 -1
- package/dist/esm/dialog/components/common/getStyle.js +6 -5
- package/dist/esm/dialog/setting/configs/settings.js +1 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +106 -1
- package/dist/esm/form/components/textinput/TextInput.js +28 -33
- package/dist/esm/form/components/textinput/TextInput.liquid.js +5 -5
- package/dist/esm/form/components/textinput/common/composeClasses.js +1 -6
- package/dist/esm/form/components/textinput/common/composeStyles.js +9 -4
- package/dist/esm/form/setting/text-input/configs/settings.js +23 -48
- package/dist/esm/form/setting/text-input/configs/uiV2.js +72 -11
- package/dist/esm/marquee/setting/configs/settings.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +3 -3
- package/dist/esm/product/setting/product-list/configs/settings.js +2 -2
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +1 -1
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -88,10 +88,11 @@ const getBodyContentStyle = (setting, style)=>{
|
|
|
88
88
|
...common.getInnerStyle(style),
|
|
89
89
|
...common.removeHeightPercentForContent(common.heightStyle(fullScreen, height)),
|
|
90
90
|
'border-radius': 'inherit',
|
|
91
|
-
...core.getStyleBackgroundByDevice(background,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
...core.getStyleBackgroundByDevice(background),
|
|
92
|
+
...core.getGradientBgrStyleByDevice(background, {
|
|
93
|
+
desktop: true,
|
|
94
|
+
tablet: true,
|
|
95
|
+
mobile: true
|
|
95
96
|
})
|
|
96
97
|
};
|
|
97
98
|
return filterTruthyStyles(composeStyles);
|
|
@@ -76,6 +76,9 @@ const SettingUIV2 = [
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
+
label: {
|
|
80
|
+
en: 'Overlay'
|
|
81
|
+
},
|
|
79
82
|
controls: [
|
|
80
83
|
{
|
|
81
84
|
label: {
|
|
@@ -133,6 +136,30 @@ const SettingUIV2 = [
|
|
|
133
136
|
setting: {
|
|
134
137
|
id: 'height'
|
|
135
138
|
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: {
|
|
142
|
+
en: 'Padding'
|
|
143
|
+
},
|
|
144
|
+
controlConfig: {
|
|
145
|
+
id: 'padding',
|
|
146
|
+
type: 'padding-v2',
|
|
147
|
+
linkWithSetting: {
|
|
148
|
+
name: 'spacing-setting',
|
|
149
|
+
field: 'padding'
|
|
150
|
+
},
|
|
151
|
+
compoDefaultValue: {
|
|
152
|
+
desktop: {
|
|
153
|
+
default: {
|
|
154
|
+
type: 'medium',
|
|
155
|
+
top: '32px',
|
|
156
|
+
bottom: '32px',
|
|
157
|
+
left: '32px',
|
|
158
|
+
right: '32px'
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
136
163
|
}
|
|
137
164
|
]
|
|
138
165
|
},
|
|
@@ -149,6 +176,84 @@ const SettingUIV2 = [
|
|
|
149
176
|
}
|
|
150
177
|
]
|
|
151
178
|
},
|
|
179
|
+
{
|
|
180
|
+
label: {
|
|
181
|
+
en: 'Shape'
|
|
182
|
+
},
|
|
183
|
+
controls: [
|
|
184
|
+
{
|
|
185
|
+
label: {
|
|
186
|
+
en: 'Border'
|
|
187
|
+
},
|
|
188
|
+
setting: {
|
|
189
|
+
id: 'border',
|
|
190
|
+
state: 'normal'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: {
|
|
195
|
+
en: 'Corner'
|
|
196
|
+
},
|
|
197
|
+
setting: {
|
|
198
|
+
id: 'rounded',
|
|
199
|
+
state: 'normal'
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: {
|
|
204
|
+
en: 'Shadow'
|
|
205
|
+
},
|
|
206
|
+
setting: {
|
|
207
|
+
id: 'boxShadow',
|
|
208
|
+
state: 'normal'
|
|
209
|
+
},
|
|
210
|
+
options: {
|
|
211
|
+
updateFields: [
|
|
212
|
+
{
|
|
213
|
+
field: 'enable',
|
|
214
|
+
settingId: 'advanced.hasBoxShadow',
|
|
215
|
+
state: 'normal'
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
controlChangeTrigger: {
|
|
220
|
+
settings: [
|
|
221
|
+
{
|
|
222
|
+
condition: `boxShadow.normal.enable === true`,
|
|
223
|
+
source: [
|
|
224
|
+
'boxShadow',
|
|
225
|
+
'hasBoxShadow'
|
|
226
|
+
],
|
|
227
|
+
action: {
|
|
228
|
+
controlId: 'hasBoxShadow',
|
|
229
|
+
groupType: 'advanced',
|
|
230
|
+
controlType: 'advanced',
|
|
231
|
+
state: 'normal',
|
|
232
|
+
newValue: true
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
condition: `boxShadow.normal.enable === false`,
|
|
237
|
+
source: [
|
|
238
|
+
'boxShadow',
|
|
239
|
+
'hasBoxShadow'
|
|
240
|
+
],
|
|
241
|
+
action: {
|
|
242
|
+
controlId: 'hasBoxShadow',
|
|
243
|
+
groupType: 'advanced',
|
|
244
|
+
controlType: 'advanced',
|
|
245
|
+
state: 'normal',
|
|
246
|
+
newValue: false
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
options: {
|
|
251
|
+
noRecordHistory: true
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
152
257
|
{
|
|
153
258
|
label: {
|
|
154
259
|
en: 'Position'
|
|
@@ -194,7 +299,7 @@ const SettingUIV2 = [
|
|
|
194
299
|
}
|
|
195
300
|
},
|
|
196
301
|
{
|
|
197
|
-
conditionDisplay: `trigger === 'show-after-time'`,
|
|
302
|
+
conditionDisplay: `trigger === 'show-after-time' || trigger === 'show-on-page-load'`,
|
|
198
303
|
label: {
|
|
199
304
|
en: 'Time'
|
|
200
305
|
},
|
|
@@ -16,42 +16,37 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, c
|
|
|
16
16
|
const composedTextFieldClasses = system.createClass(composeClasses.composeTextFieldClasses(setting, builderProps, className ?? ''));
|
|
17
17
|
const composedTextFieldStyles = system.createStyle(composeStyles.composeTextareaStyles(advanced, setting, styles));
|
|
18
18
|
const composedTextAreaClasses = system.createClass({
|
|
19
|
-
composedTextFieldClasses: true
|
|
20
|
-
...composeClasses.composeTextAreaClasses()
|
|
19
|
+
composedTextFieldClasses: true
|
|
21
20
|
});
|
|
21
|
+
const rowsTextArea = composeStyles.getRowsTextArea(setting);
|
|
22
22
|
const isTextArea = formType === 'textarea';
|
|
23
|
-
return /*#__PURE__*/ jsxRuntime.
|
|
23
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
24
24
|
...builderAttrs,
|
|
25
25
|
"data-id": builderProps?.uid,
|
|
26
26
|
className: composedContainerClasses,
|
|
27
27
|
style: composedContainerStyles,
|
|
28
|
-
children:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
})),
|
|
51
|
-
children
|
|
52
|
-
]
|
|
53
|
-
})
|
|
54
|
-
]
|
|
28
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
29
|
+
children: [
|
|
30
|
+
system.If(!isTextArea, /*#__PURE__*/ jsxRuntime.jsx("input", {
|
|
31
|
+
type: formType,
|
|
32
|
+
className: composedTextFieldClasses,
|
|
33
|
+
style: composedTextFieldStyles,
|
|
34
|
+
placeholder: placeholder,
|
|
35
|
+
required: required,
|
|
36
|
+
name: defaultName,
|
|
37
|
+
value: text
|
|
38
|
+
}), /*#__PURE__*/ jsxRuntime.jsx("textarea", {
|
|
39
|
+
rows: rowsTextArea,
|
|
40
|
+
className: composedTextAreaClasses,
|
|
41
|
+
placeholder: placeholder,
|
|
42
|
+
style: composedTextFieldStyles,
|
|
43
|
+
required: required,
|
|
44
|
+
name: defaultName,
|
|
45
|
+
value: text
|
|
46
|
+
})),
|
|
47
|
+
children
|
|
48
|
+
]
|
|
49
|
+
})
|
|
55
50
|
});
|
|
56
51
|
};
|
|
57
52
|
|
|
@@ -23,9 +23,9 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
23
23
|
const composedTextFieldClasses = system.createClass(composeClasses.composeTextFieldClasses(setting, builderProps, className ?? ''));
|
|
24
24
|
const composedTextFieldStyles = system.createStyle(composeStyles.composeTextareaStyles(advanced, setting, styles));
|
|
25
25
|
const composedTextAreaClasses = system.createClass({
|
|
26
|
-
composedTextFieldClasses: true
|
|
27
|
-
...composeClasses.composeTextAreaClasses()
|
|
26
|
+
composedTextFieldClasses: true
|
|
28
27
|
});
|
|
28
|
+
const rowsTextArea = composeStyles.getRowsTextArea(setting);
|
|
29
29
|
const isTextArea = formType === 'textarea';
|
|
30
30
|
return core.template`
|
|
31
31
|
<div
|
|
@@ -34,7 +34,6 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
34
34
|
class="${composedContainerClasses}"
|
|
35
35
|
style="${composedContainerStyles}"
|
|
36
36
|
>
|
|
37
|
-
<span class="gp-text-16 gp-text-[#121212]">${placeholder}</span>
|
|
38
37
|
<div>
|
|
39
38
|
${system.If(!isTextArea, core.template`<input
|
|
40
39
|
type="text"
|
|
@@ -45,6 +44,7 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
45
44
|
name="${defaultName}"
|
|
46
45
|
value="${text}"
|
|
47
46
|
></input>`, core.template`<textarea
|
|
47
|
+
rows="${rowsTextArea}"
|
|
48
48
|
class="${composedTextAreaClasses}"
|
|
49
49
|
style="${composedTextFieldStyles}"
|
|
50
50
|
placeholder="${placeholderVal}"
|
|
@@ -22,12 +22,6 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
|
|
|
22
22
|
'gp-form-item !gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none !gp-border-box': true
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
const composeTextAreaClasses = ()=>{
|
|
26
|
-
return composeClasses({
|
|
27
|
-
'gp-min-h-[150px]': true
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
25
|
|
|
31
26
|
exports.composeContainerClasses = composeContainerClasses;
|
|
32
|
-
exports.composeTextAreaClasses = composeTextAreaClasses;
|
|
33
27
|
exports.composeTextFieldClasses = composeTextFieldClasses;
|
|
@@ -28,7 +28,7 @@ const composeContainerStyles = (advanced, setting)=>{
|
|
|
28
28
|
const composeTextareaStyles = (advanced, setting, styles)=>{
|
|
29
29
|
const { wrapperBorder, borderRadius, shadow, globalSize } = styles ?? {};
|
|
30
30
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
31
|
-
const { typography } = setting ?? {};
|
|
31
|
+
const { typography, background } = setting ?? {};
|
|
32
32
|
const composeGlobalSize = core.makeGlobalSize(globalSize);
|
|
33
33
|
const appendTypoStyle = core.composeTypographyStyle(setting?.typo, typography);
|
|
34
34
|
const inputStyle = core.composeAdvanceStyle({
|
|
@@ -60,9 +60,15 @@ const composeTextareaStyles = (advanced, setting, styles)=>{
|
|
|
60
60
|
value: shadow,
|
|
61
61
|
styleAppliedFor: 'box-shadow',
|
|
62
62
|
isEnableShadow: shadow?.type !== 'none'
|
|
63
|
-
})
|
|
63
|
+
}),
|
|
64
|
+
...core.getStyleBackgroundByDevice(background),
|
|
65
|
+
...core.getGradientBgrStyleByDevice(background)
|
|
64
66
|
});
|
|
65
67
|
};
|
|
68
|
+
const getRowsTextArea = (setting)=>{
|
|
69
|
+
return setting?.textLine;
|
|
70
|
+
};
|
|
66
71
|
|
|
67
72
|
exports.composeContainerStyles = composeContainerStyles;
|
|
68
73
|
exports.composeTextareaStyles = composeTextareaStyles;
|
|
74
|
+
exports.getRowsTextArea = getRowsTextArea;
|
|
@@ -27,6 +27,12 @@ const TextInputSettings = [
|
|
|
27
27
|
placeholder: 'Enter text',
|
|
28
28
|
default: 'Enter text'
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
id: 'placeholderColor',
|
|
32
|
+
type: 'color-picker-v2',
|
|
33
|
+
label: 'Color',
|
|
34
|
+
default: '#A3A3A3'
|
|
35
|
+
},
|
|
30
36
|
{
|
|
31
37
|
id: 'translate',
|
|
32
38
|
type: 'input',
|
|
@@ -83,7 +89,6 @@ const TextInputSettings = [
|
|
|
83
89
|
type: 'paragraph-1'
|
|
84
90
|
},
|
|
85
91
|
hiddenSetting: {
|
|
86
|
-
color: true,
|
|
87
92
|
textAlign: true,
|
|
88
93
|
textShadow: true
|
|
89
94
|
},
|
|
@@ -156,23 +161,12 @@ const TextInputSettings = [
|
|
|
156
161
|
id: 'background',
|
|
157
162
|
type: 'background-media',
|
|
158
163
|
ignoreReRender: true,
|
|
164
|
+
hideImage: true,
|
|
159
165
|
devices: {
|
|
160
166
|
desktop: {
|
|
161
167
|
default: {
|
|
162
168
|
type: 'color',
|
|
163
|
-
color: 'transparent'
|
|
164
|
-
image: {
|
|
165
|
-
src: '',
|
|
166
|
-
width: 0,
|
|
167
|
-
height: 0
|
|
168
|
-
},
|
|
169
|
-
size: 'cover',
|
|
170
|
-
position: {
|
|
171
|
-
x: 50,
|
|
172
|
-
y: 50
|
|
173
|
-
},
|
|
174
|
-
repeat: 'no-repeat',
|
|
175
|
-
attachment: 'scroll'
|
|
169
|
+
color: 'transparent'
|
|
176
170
|
}
|
|
177
171
|
}
|
|
178
172
|
},
|
|
@@ -180,23 +174,17 @@ const TextInputSettings = [
|
|
|
180
174
|
desktop: {
|
|
181
175
|
default: {
|
|
182
176
|
type: 'color',
|
|
183
|
-
color: '#
|
|
184
|
-
image: {
|
|
185
|
-
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
186
|
-
width: 1200,
|
|
187
|
-
height: 480
|
|
188
|
-
},
|
|
189
|
-
size: 'cover',
|
|
190
|
-
position: {
|
|
191
|
-
x: 50,
|
|
192
|
-
y: 50
|
|
193
|
-
},
|
|
194
|
-
repeat: 'no-repeat',
|
|
195
|
-
attachment: 'scroll',
|
|
196
|
-
preload: false
|
|
177
|
+
color: '#FFFFFF'
|
|
197
178
|
}
|
|
198
179
|
}
|
|
199
180
|
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: 'textLine',
|
|
184
|
+
type: 'input:stepper',
|
|
185
|
+
label: 'Visible text lines',
|
|
186
|
+
default: 3,
|
|
187
|
+
min: 1
|
|
200
188
|
}
|
|
201
189
|
]
|
|
202
190
|
},
|
|
@@ -209,14 +197,14 @@ const TextInputSettings = [
|
|
|
209
197
|
devices: {
|
|
210
198
|
desktop: {
|
|
211
199
|
default: {
|
|
212
|
-
width: '
|
|
200
|
+
width: 'Auto',
|
|
213
201
|
height: 'Auto',
|
|
214
202
|
padding: {
|
|
215
203
|
type: 'medium',
|
|
216
|
-
top: '
|
|
217
|
-
bottom: '
|
|
218
|
-
left: '
|
|
219
|
-
right: '
|
|
204
|
+
top: '12px',
|
|
205
|
+
bottom: '12px',
|
|
206
|
+
left: '24px',
|
|
207
|
+
right: '24px'
|
|
220
208
|
}
|
|
221
209
|
}
|
|
222
210
|
}
|
|
@@ -257,14 +245,14 @@ const TextInputSettings = [
|
|
|
257
245
|
},
|
|
258
246
|
{
|
|
259
247
|
id: 'wrapperBorder',
|
|
260
|
-
type: 'border',
|
|
248
|
+
type: 'border-v2',
|
|
261
249
|
label: 'Border',
|
|
262
250
|
default: {
|
|
263
251
|
border: 'solid',
|
|
264
252
|
width: '1px 1px 1px 1px',
|
|
265
253
|
position: 'all',
|
|
266
254
|
borderWidth: '1px',
|
|
267
|
-
color: '#
|
|
255
|
+
color: '#7D7D7D',
|
|
268
256
|
isCustom: true
|
|
269
257
|
}
|
|
270
258
|
},
|
|
@@ -288,19 +276,6 @@ const TextInputSettings = [
|
|
|
288
276
|
type: 'toggle',
|
|
289
277
|
label: 'Enable Button Shadow',
|
|
290
278
|
default: false
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
id: 'shadow',
|
|
294
|
-
type: 'boxShadow',
|
|
295
|
-
label: 'Button Shadow',
|
|
296
|
-
default: {
|
|
297
|
-
type: 'none',
|
|
298
|
-
distance: '10px',
|
|
299
|
-
blur: '12px',
|
|
300
|
-
spread: '10px',
|
|
301
|
-
color: 'rgba(18, 18, 18, 0.77)',
|
|
302
|
-
angle: 40
|
|
303
|
-
}
|
|
304
279
|
}
|
|
305
280
|
]
|
|
306
281
|
}
|
|
@@ -17,9 +17,20 @@ const SettingUIV2 = [
|
|
|
17
17
|
controls: [
|
|
18
18
|
{
|
|
19
19
|
layout: 'vertical',
|
|
20
|
+
label: {
|
|
21
|
+
en: 'Content'
|
|
22
|
+
},
|
|
20
23
|
setting: {
|
|
21
24
|
id: 'placeholder'
|
|
22
25
|
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'placeholderColor'
|
|
30
|
+
},
|
|
31
|
+
label: {
|
|
32
|
+
en: 'Color'
|
|
33
|
+
}
|
|
23
34
|
}
|
|
24
35
|
]
|
|
25
36
|
},
|
|
@@ -165,23 +176,61 @@ const SettingUIV2 = [
|
|
|
165
176
|
label: {
|
|
166
177
|
en: 'Corner'
|
|
167
178
|
},
|
|
168
|
-
|
|
169
|
-
id: '
|
|
170
|
-
|
|
171
|
-
linkWithSetting: {
|
|
172
|
-
name: 'borderRadius'
|
|
173
|
-
}
|
|
179
|
+
setting: {
|
|
180
|
+
id: 'rounded',
|
|
181
|
+
state: 'normal'
|
|
174
182
|
}
|
|
175
183
|
},
|
|
176
184
|
{
|
|
177
185
|
label: {
|
|
178
186
|
en: 'Shadow'
|
|
179
187
|
},
|
|
180
|
-
|
|
181
|
-
id: '
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
setting: {
|
|
189
|
+
id: 'boxShadow',
|
|
190
|
+
state: 'normal'
|
|
191
|
+
},
|
|
192
|
+
options: {
|
|
193
|
+
updateFields: [
|
|
194
|
+
{
|
|
195
|
+
field: 'enable',
|
|
196
|
+
settingId: 'hasBoxShadow',
|
|
197
|
+
state: 'normal'
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
controlChangeTrigger: {
|
|
202
|
+
settings: [
|
|
203
|
+
{
|
|
204
|
+
condition: `boxShadow.normal.enable === true`,
|
|
205
|
+
source: [
|
|
206
|
+
'boxShadow',
|
|
207
|
+
'hasBoxShadow'
|
|
208
|
+
],
|
|
209
|
+
action: {
|
|
210
|
+
controlId: 'hasBoxShadow',
|
|
211
|
+
groupType: 'advanced',
|
|
212
|
+
controlType: 'advanced',
|
|
213
|
+
state: 'normal',
|
|
214
|
+
newValue: true
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
condition: `boxShadow.normal.enable === false`,
|
|
219
|
+
source: [
|
|
220
|
+
'boxShadow',
|
|
221
|
+
'hasBoxShadow'
|
|
222
|
+
],
|
|
223
|
+
action: {
|
|
224
|
+
controlId: 'hasBoxShadow',
|
|
225
|
+
groupType: 'advanced',
|
|
226
|
+
controlType: 'advanced',
|
|
227
|
+
state: 'normal',
|
|
228
|
+
newValue: false
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
options: {
|
|
233
|
+
noRecordHistory: true
|
|
185
234
|
}
|
|
186
235
|
}
|
|
187
236
|
}
|
|
@@ -200,6 +249,15 @@ const SettingUIV2 = [
|
|
|
200
249
|
id: 'formType'
|
|
201
250
|
}
|
|
202
251
|
},
|
|
252
|
+
{
|
|
253
|
+
label: {
|
|
254
|
+
en: 'Visible text lines'
|
|
255
|
+
},
|
|
256
|
+
setting: {
|
|
257
|
+
id: 'textLine'
|
|
258
|
+
},
|
|
259
|
+
conditionDisplay: `formType === 'textarea'`
|
|
260
|
+
},
|
|
203
261
|
{
|
|
204
262
|
label: {
|
|
205
263
|
en: 'Required'
|
|
@@ -212,6 +270,9 @@ const SettingUIV2 = [
|
|
|
212
270
|
label: {
|
|
213
271
|
en: 'Field name'
|
|
214
272
|
},
|
|
273
|
+
help: {
|
|
274
|
+
content: 'Identify the information submitted via this element.'
|
|
275
|
+
},
|
|
215
276
|
conditionDisplay: `formType === 'text'`,
|
|
216
277
|
controlConfig: {
|
|
217
278
|
id: 'name_text',
|
|
@@ -126,7 +126,7 @@ const SettingV2 = [
|
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
id: 'ftItemPerSlide',
|
|
129
|
-
type: 'input:
|
|
129
|
+
type: 'input:stepper',
|
|
130
130
|
min: 1,
|
|
131
131
|
hide: true,
|
|
132
132
|
default: 1
|
|
@@ -356,14 +356,14 @@ const SettingV2 = [
|
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
id: 'ilItemPerSlide',
|
|
359
|
-
type: 'input:
|
|
359
|
+
type: 'input:stepper',
|
|
360
360
|
min: 1,
|
|
361
361
|
hide: true,
|
|
362
362
|
default: 5
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
id: 'ilNumberPerRow',
|
|
366
|
-
type: 'input:
|
|
366
|
+
type: 'input:stepper',
|
|
367
367
|
label: 'Item per row',
|
|
368
368
|
hide: true,
|
|
369
369
|
default: 5
|
|
@@ -181,7 +181,7 @@ const ProductListSettings = [
|
|
|
181
181
|
{
|
|
182
182
|
id: 'dotSize',
|
|
183
183
|
label: 'Dots size',
|
|
184
|
-
type: 'input:
|
|
184
|
+
type: 'input:stepper',
|
|
185
185
|
min: 1,
|
|
186
186
|
devices: {
|
|
187
187
|
desktop: {
|
|
@@ -269,7 +269,7 @@ const ProductListSettings = [
|
|
|
269
269
|
{
|
|
270
270
|
id: 'speed',
|
|
271
271
|
label: 'Speed(s)',
|
|
272
|
-
type: 'input:
|
|
272
|
+
type: 'input:stepper',
|
|
273
273
|
min: 0,
|
|
274
274
|
max: 60,
|
|
275
275
|
default: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyle, getGlobalColorResponsiveStyle, makeStyleResponsive, makeWidth, composeRadius, getStyleBackgroundByDevice } from '@gem-sdk/core';
|
|
1
|
+
import { makeStyle, getGlobalColorResponsiveStyle, makeStyleResponsive, makeWidth, composeRadius, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import { ELEMENT_Z_INDEX } from '../../../common/const.js';
|
|
@@ -86,10 +86,11 @@ const getBodyContentStyle = (setting, style)=>{
|
|
|
86
86
|
...getInnerStyle(style),
|
|
87
87
|
...removeHeightPercentForContent(heightStyle(fullScreen, height)),
|
|
88
88
|
'border-radius': 'inherit',
|
|
89
|
-
...getStyleBackgroundByDevice(background,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
...getStyleBackgroundByDevice(background),
|
|
90
|
+
...getGradientBgrStyleByDevice(background, {
|
|
91
|
+
desktop: true,
|
|
92
|
+
tablet: true,
|
|
93
|
+
mobile: true
|
|
93
94
|
})
|
|
94
95
|
};
|
|
95
96
|
return filterTruthyStyles(composeStyles);
|