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