@gem-sdk/components 2.0.0-dev.384 → 2.0.0-dev.386
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/icon/setting/configs/settings.js +5 -2
- package/dist/cjs/icon-list-hoz/components/common/getStyle.js +5 -0
- package/dist/cjs/icon-list-hoz/setting/configs/settings.js +1 -1
- package/dist/cjs/icon-list-hoz/setting/configs/uiV2.js +44 -0
- package/dist/cjs/product/components/ProductBadge/common/getStyles.js +3 -2
- package/dist/cjs/product/components/ProductProperties/ProductProperties.liquid.js +1 -1
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +2 -2
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +2 -2
- package/dist/cjs/product/components/ProductProperties/common/getAttrs.js +2 -2
- package/dist/cjs/product/components/ProductQuantity/common/getStyles.js +19 -16
- package/dist/cjs/product/components/ProductQuantity/index.js +5 -3
- package/dist/cjs/product/setting/product-badge/configs/settings.js +8 -4
- package/dist/cjs/product/setting/product-badge/configs/uiV2.js +3 -3
- package/dist/cjs/product/setting/product-properties/configs/settingsV2.js +5 -20
- package/dist/cjs/product/setting/product-properties/configs/uiV2.js +169 -6
- package/dist/cjs/product/setting/product-quantity/configs/settings.js +48 -28
- package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +54 -19
- package/dist/esm/icon/setting/configs/settings.js +5 -2
- package/dist/esm/icon-list-hoz/components/common/getStyle.js +6 -1
- package/dist/esm/icon-list-hoz/setting/configs/settings.js +1 -1
- package/dist/esm/icon-list-hoz/setting/configs/uiV2.js +44 -0
- package/dist/esm/product/components/ProductBadge/common/getStyles.js +3 -2
- package/dist/esm/product/components/ProductProperties/ProductProperties.liquid.js +1 -1
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +3 -3
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +3 -3
- package/dist/esm/product/components/ProductProperties/common/getAttrs.js +2 -2
- package/dist/esm/product/components/ProductQuantity/common/getStyles.js +20 -17
- package/dist/esm/product/components/ProductQuantity/index.js +5 -3
- package/dist/esm/product/setting/product-badge/configs/settings.js +8 -4
- package/dist/esm/product/setting/product-badge/configs/uiV2.js +3 -3
- package/dist/esm/product/setting/product-properties/configs/settingsV2.js +5 -20
- package/dist/esm/product/setting/product-properties/configs/uiV2.js +169 -6
- package/dist/esm/product/setting/product-quantity/configs/settings.js +48 -28
- package/dist/esm/product/setting/product-quantity/configs/uiV2.js +54 -19
- package/dist/types/index.d.ts +4 -3
- package/package.json +2 -2
|
@@ -116,7 +116,9 @@ const IconSettings = [
|
|
|
116
116
|
type: 'shadow-v2',
|
|
117
117
|
devices: {
|
|
118
118
|
desktop: {
|
|
119
|
-
default: {
|
|
119
|
+
default: {
|
|
120
|
+
enable: false
|
|
121
|
+
}
|
|
120
122
|
}
|
|
121
123
|
},
|
|
122
124
|
compoDefaultValue: {
|
|
@@ -127,7 +129,8 @@ const IconSettings = [
|
|
|
127
129
|
blur: '12px',
|
|
128
130
|
spread: '0px',
|
|
129
131
|
color: 'rgba(18, 18, 18, 0.2)',
|
|
130
|
-
angle: 45
|
|
132
|
+
angle: 45,
|
|
133
|
+
enable: true
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
}
|
|
@@ -10,6 +10,11 @@ const getWrapperStyle = (style, background)=>{
|
|
|
10
10
|
...style,
|
|
11
11
|
...core.getStyleBackgroundByDevice(background, {
|
|
12
12
|
liquid: true
|
|
13
|
+
}),
|
|
14
|
+
...core.getGradientBgrStyleByDevice(background, {
|
|
15
|
+
desktop: true,
|
|
16
|
+
tablet: true,
|
|
17
|
+
mobile: true
|
|
13
18
|
})
|
|
14
19
|
};
|
|
15
20
|
return filterTruthyStyles(composeStyles);
|
|
@@ -79,6 +79,50 @@ const SettingUIV2 = [
|
|
|
79
79
|
setting: {
|
|
80
80
|
id: 'boxShadow',
|
|
81
81
|
state: 'normal'
|
|
82
|
+
},
|
|
83
|
+
options: {
|
|
84
|
+
updateFields: [
|
|
85
|
+
{
|
|
86
|
+
field: 'enable',
|
|
87
|
+
settingId: 'advanced.hasBoxShadow',
|
|
88
|
+
state: 'normal'
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
controlChangeTrigger: {
|
|
93
|
+
settings: [
|
|
94
|
+
{
|
|
95
|
+
condition: `boxShadow.normal.enable === true`,
|
|
96
|
+
source: [
|
|
97
|
+
'boxShadow',
|
|
98
|
+
'hasBoxShadow'
|
|
99
|
+
],
|
|
100
|
+
action: {
|
|
101
|
+
controlId: 'hasBoxShadow',
|
|
102
|
+
groupType: 'advanced',
|
|
103
|
+
controlType: 'advanced',
|
|
104
|
+
state: 'normal',
|
|
105
|
+
newValue: true
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
condition: `boxShadow.normal.enable === false`,
|
|
110
|
+
source: [
|
|
111
|
+
'boxShadow',
|
|
112
|
+
'hasBoxShadow'
|
|
113
|
+
],
|
|
114
|
+
action: {
|
|
115
|
+
controlId: 'hasBoxShadow',
|
|
116
|
+
groupType: 'advanced',
|
|
117
|
+
controlType: 'advanced',
|
|
118
|
+
state: 'normal',
|
|
119
|
+
newValue: false
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
options: {
|
|
124
|
+
noRecordHistory: true
|
|
125
|
+
}
|
|
82
126
|
}
|
|
83
127
|
}
|
|
84
128
|
]
|
|
@@ -54,7 +54,7 @@ const getTextContentStyle = ({ styles, setting })=>{
|
|
|
54
54
|
...core.getStyleShadow({
|
|
55
55
|
value: styles?.typo?.custom?.textShadow,
|
|
56
56
|
styleAppliedFor: 'text-shadow',
|
|
57
|
-
isEnableShadow: styles?.typo?.custom?.
|
|
57
|
+
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
58
58
|
}),
|
|
59
59
|
...stylesV2.getStyleBackground(!!shape$1?.backgroundColorInText, styles?.badgeColorV2),
|
|
60
60
|
...textBadgePadding
|
|
@@ -87,7 +87,8 @@ const getTextBadgeWrapperStyles = ({ styles, setting })=>{
|
|
|
87
87
|
...cornerStyles,
|
|
88
88
|
...getRotateShape.composeShapeStyleByPosition(shape$1, styles?.position, isDropOutsideProductImage),
|
|
89
89
|
...stylesV2.getStyleBackground(!shape$1?.backgroundColorInText, styles?.badgeColorV2),
|
|
90
|
-
...paddingShape
|
|
90
|
+
...paddingShape,
|
|
91
|
+
height: shape$1?.ratio === 1 ? '0px' : '100%'
|
|
91
92
|
};
|
|
92
93
|
};
|
|
93
94
|
const getImageContainerStyles = ({ styles, setting })=>{
|
|
@@ -59,7 +59,7 @@ const ProductProperties = ({ setting, styles, builderProps, advanced, pageContex
|
|
|
59
59
|
}} class="${liquidTagClasses}"
|
|
60
60
|
style="${wrapperStyles}"
|
|
61
61
|
>
|
|
62
|
-
${core.RenderIf(isDisplayLabel, `<div class="${labelWrapperClasses}">
|
|
62
|
+
${core.RenderIf(isDisplayLabel, core.template`<div class="${labelWrapperClasses}">
|
|
63
63
|
<label htmlFor="${uniqId}-${name}" class="${labelClasses}" style="${labelStyles}}">
|
|
64
64
|
${displayLabel}
|
|
65
65
|
<span style="${labelContentStyles}">${labelContent}</span>
|
package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var core = require('@gem-sdk/core');
|
|
4
4
|
|
|
5
5
|
const getStyles = (styles)=>{
|
|
6
|
-
const { valueBgColor, valueTextColor, valueTypography, valueTypo, fullWidth, width, height, borderInput, borderRadius, shadowInput } = styles ?? {};
|
|
6
|
+
const { valueBgColor, valueTextColor, valueTypography, valueTypo, fullWidth, width, height, borderInput, borderRadius, hasShadowInput, shadowInput } = styles ?? {};
|
|
7
7
|
const appendTypoStyle = core.composeTypographyStyle(valueTypo, valueTypography);
|
|
8
8
|
const widthStyle = core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
|
|
9
9
|
const heightStyle = height ? core.makeStyleResponsive('h', height) : {};
|
|
@@ -16,7 +16,7 @@ const getStyles = (styles)=>{
|
|
|
16
16
|
...core.getGlobalColorStateStyle('c', valueTextColor),
|
|
17
17
|
...heightStyle,
|
|
18
18
|
...core.composeRadius(borderRadius),
|
|
19
|
-
...core.
|
|
19
|
+
...core.getStyleShadowState(shadowInput, 'box-shadow', hasShadowInput),
|
|
20
20
|
...appendTypoStyle
|
|
21
21
|
};
|
|
22
22
|
};
|
package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var core = require('@gem-sdk/core');
|
|
4
4
|
|
|
5
5
|
const getSelectStyles = (styles)=>{
|
|
6
|
-
const { fullWidth, width, height, borderInput, borderRadius, shadowInput } = styles ?? {};
|
|
6
|
+
const { fullWidth, width, height, borderInput, borderRadius, hasShadowInput, shadowInput } = styles ?? {};
|
|
7
7
|
const widthStyle = core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
|
|
8
8
|
const heightStyle = height ? core.makeStyleResponsive('h', height) : {};
|
|
9
9
|
return {
|
|
@@ -13,7 +13,7 @@ const getSelectStyles = (styles)=>{
|
|
|
13
13
|
...core.handleConvertBorderWidth(borderInput),
|
|
14
14
|
...core.handleConvertBorderColor(borderInput),
|
|
15
15
|
...core.composeRadius(borderRadius),
|
|
16
|
-
...core.
|
|
16
|
+
...core.getStyleShadowState(shadowInput, 'box-shadow', hasShadowInput)
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
const getOptionStyles = (styles)=>{
|
|
@@ -7,13 +7,13 @@ const getWrapperLiquidAttrs = (uniqId, pageContext, setting)=>{
|
|
|
7
7
|
return {
|
|
8
8
|
'data-id': uniqId ?? '',
|
|
9
9
|
'data-invalid': false,
|
|
10
|
-
'data-gp-setting': JSON.stringify(setting).replaceAll("
|
|
10
|
+
'data-gp-setting': JSON.stringify(setting).replaceAll(`"`, '"'),
|
|
11
11
|
'data-translate-setting': JSON.stringify({
|
|
12
12
|
requiredMessage: requiredMessageDisplay,
|
|
13
13
|
invalidEmailMessage: invalidEmailMessageDisplay,
|
|
14
14
|
invalidLengthMessage: invalidLengthMessageDisplay,
|
|
15
15
|
invalidNumberMessage: invalidNumberMessageDisplay
|
|
16
|
-
})
|
|
16
|
+
}).replaceAll(`"`, '"')
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
const getWrapperTSXAttrs = (uniqId, currentProductId)=>{
|
|
@@ -36,16 +36,19 @@ const getInputBorderRadius = ({ qtyStyle, corner })=>{
|
|
|
36
36
|
};
|
|
37
37
|
const getInputStyle = (props)=>{
|
|
38
38
|
const { styles, setting } = props;
|
|
39
|
-
const { borderBtn, inputBackgroundColor, textColor, dividerColor, dividerStroke, corner } = styles ?? {};
|
|
39
|
+
const { borderBtn, inputBackgroundColor, textColor, dividerColor, dividerStroke, corner, inputBoxShadow } = styles ?? {};
|
|
40
40
|
const { qtyStyle } = setting ?? {};
|
|
41
|
-
const appendTypoStyle = core.composeTypographyStyle(styles?.typo
|
|
42
|
-
const appendTypoHover = core.composeTypoHover(styles?.typo?.hover?.attrs);
|
|
41
|
+
const appendTypoStyle = core.composeTypographyStyle(styles?.typo, styles?.typography);
|
|
43
42
|
const dividerWidth = getDividerWidth(dividerStroke);
|
|
44
43
|
const dividerColorStyle = getDividerColorStyle(dividerColor);
|
|
44
|
+
const styleShadow = core.getResponsiveStyleShadow(inputBoxShadow, 'box-shadow', {
|
|
45
|
+
desktop: inputBoxShadow?.desktop ?? {},
|
|
46
|
+
tablet: inputBoxShadow?.tablet ?? inputBoxShadow?.desktop ?? {},
|
|
47
|
+
mobile: inputBoxShadow?.mobile ?? inputBoxShadow?.tablet ?? inputBoxShadow?.desktop ?? {}
|
|
48
|
+
});
|
|
45
49
|
return {
|
|
46
50
|
...core.makeStyle({}),
|
|
47
51
|
...appendTypoStyle,
|
|
48
|
-
...appendTypoHover,
|
|
49
52
|
...core.getGlobalColorStateStyle('bg', inputBackgroundColor),
|
|
50
53
|
...core.getGlobalColorStateStyle('c', textColor),
|
|
51
54
|
...core.handleConvertBorderStyle(borderBtn),
|
|
@@ -54,21 +57,15 @@ const getInputStyle = (props)=>{
|
|
|
54
57
|
...qtyStyle === 'standard' ? dividerWidth : {},
|
|
55
58
|
...dividerColorStyle,
|
|
56
59
|
...core.getStyleShadow({
|
|
57
|
-
value: styles?.typo?.
|
|
60
|
+
value: styles?.typo?.custom?.textShadow,
|
|
58
61
|
styleAppliedFor: 'text-shadow',
|
|
59
|
-
isEnableShadow: styles?.typo?.
|
|
60
|
-
state: 'normal'
|
|
61
|
-
}),
|
|
62
|
-
...core.getStyleShadow({
|
|
63
|
-
value: styles?.typo?.hover?.attrs?.textShadow,
|
|
64
|
-
styleAppliedFor: 'text-shadow',
|
|
65
|
-
isEnableShadow: styles?.typo?.normal?.custom?.textShadow?.type !== 'none',
|
|
66
|
-
state: 'hover'
|
|
62
|
+
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
67
63
|
}),
|
|
68
64
|
...getInputBorderRadius({
|
|
69
65
|
qtyStyle,
|
|
70
66
|
corner
|
|
71
|
-
})
|
|
67
|
+
}),
|
|
68
|
+
...styleShadow
|
|
72
69
|
};
|
|
73
70
|
};
|
|
74
71
|
const getDeviceRadius = (device, buttonSide, corner)=>{
|
|
@@ -93,7 +90,12 @@ const getDeviceRadius = (device, buttonSide, corner)=>{
|
|
|
93
90
|
}
|
|
94
91
|
};
|
|
95
92
|
};
|
|
96
|
-
const getButtonStyle = ({ borderBtn, buttonWidth, buttonBackgroundColor, iconColor, corner, buttonSide })=>{
|
|
93
|
+
const getButtonStyle = ({ borderBtn, buttonWidth, buttonBackgroundColor, iconColor, corner, buttonSide, buttonBoxShadow })=>{
|
|
94
|
+
const styleShadow = core.getResponsiveStyleShadow(buttonBoxShadow, 'box-shadow', {
|
|
95
|
+
desktop: buttonBoxShadow?.desktop ?? {},
|
|
96
|
+
tablet: buttonBoxShadow?.tablet ?? buttonBoxShadow?.desktop ?? {},
|
|
97
|
+
mobile: buttonBoxShadow?.mobile ?? buttonBoxShadow?.tablet ?? buttonBoxShadow?.desktop ?? {}
|
|
98
|
+
});
|
|
97
99
|
return {
|
|
98
100
|
...core.makeStyleResponsive('w', buttonWidth),
|
|
99
101
|
...core.getGlobalColorStateStyle('bg', buttonBackgroundColor),
|
|
@@ -105,7 +107,8 @@ const getButtonStyle = ({ borderBtn, buttonWidth, buttonBackgroundColor, iconCol
|
|
|
105
107
|
...getDeviceRadius('desktop', buttonSide, corner),
|
|
106
108
|
...getDeviceRadius('tablet', buttonSide, corner),
|
|
107
109
|
...getDeviceRadius('mobile', buttonSide, corner)
|
|
108
|
-
})
|
|
110
|
+
}),
|
|
111
|
+
...styleShadow
|
|
109
112
|
};
|
|
110
113
|
};
|
|
111
114
|
const getContainerStyles = ({ inputHeight, align })=>{
|
|
@@ -19,7 +19,7 @@ const ProductQuantity = (props)=>{
|
|
|
19
19
|
const { isInStock, ref } = index.useProductQuantity(props);
|
|
20
20
|
const { qtyStyle, plusIcon, minusIcon } = setting;
|
|
21
21
|
const defaultQty = setting.defaultQtyValue || 1;
|
|
22
|
-
const { inputHeight, buttonBackgroundColor, backgroundColor, iconColor, inputBackgroundColor, textColor, align, borderBtn, buttonWidth, iconSizeCustom, corner } = styles;
|
|
22
|
+
const { inputHeight, buttonBackgroundColor, backgroundColor, iconColor, inputBackgroundColor, textColor, align, borderBtn, buttonWidth, iconSizeCustom, corner, buttonBoxShadow } = styles;
|
|
23
23
|
const containerAttrs = system.createAttr({
|
|
24
24
|
...getAttrs.getContainerAttrs({
|
|
25
25
|
isDisabled: !isInStock,
|
|
@@ -80,7 +80,8 @@ const ProductQuantity = (props)=>{
|
|
|
80
80
|
buttonBackgroundColor,
|
|
81
81
|
iconColor,
|
|
82
82
|
corner,
|
|
83
|
-
buttonSide: 'left'
|
|
83
|
+
buttonSide: 'left',
|
|
84
|
+
buttonBoxShadow
|
|
84
85
|
})
|
|
85
86
|
});
|
|
86
87
|
const buttonLeftAttrs = system.createAttr({
|
|
@@ -104,7 +105,8 @@ const ProductQuantity = (props)=>{
|
|
|
104
105
|
buttonBackgroundColor,
|
|
105
106
|
iconColor,
|
|
106
107
|
corner,
|
|
107
|
-
buttonSide: 'right'
|
|
108
|
+
buttonSide: 'right',
|
|
109
|
+
buttonBoxShadow
|
|
108
110
|
})
|
|
109
111
|
});
|
|
110
112
|
const buttonRightAttrs = system.createAttr({
|
|
@@ -105,6 +105,7 @@ const ProductBadgeSettings = [
|
|
|
105
105
|
default: 'Sale {percent_discount} off',
|
|
106
106
|
minHeight: 72,
|
|
107
107
|
inputClass: '!pr-36',
|
|
108
|
+
isFallback: true,
|
|
108
109
|
autoHeight: true,
|
|
109
110
|
showPlusBtn: true,
|
|
110
111
|
defaultRows: 1,
|
|
@@ -161,8 +162,9 @@ const ProductBadgeSettings = [
|
|
|
161
162
|
},
|
|
162
163
|
fontWeight: '400',
|
|
163
164
|
fontFamily: 'Assistant',
|
|
165
|
+
hasShadowText: false,
|
|
164
166
|
textShadow: {
|
|
165
|
-
|
|
167
|
+
enable: false
|
|
166
168
|
}
|
|
167
169
|
},
|
|
168
170
|
attrs: {
|
|
@@ -464,6 +466,7 @@ const ProductBadgeSettings = [
|
|
|
464
466
|
{
|
|
465
467
|
id: 'imageSizeV2',
|
|
466
468
|
type: 'size-setting',
|
|
469
|
+
hiddenShowMore: true,
|
|
467
470
|
disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
|
|
468
471
|
devices: {
|
|
469
472
|
desktop: {
|
|
@@ -471,7 +474,8 @@ const ProductBadgeSettings = [
|
|
|
471
474
|
width: '20%',
|
|
472
475
|
height: 'auto',
|
|
473
476
|
shapeLinked: true,
|
|
474
|
-
|
|
477
|
+
hiddenShape: true,
|
|
478
|
+
shape: 'custom',
|
|
475
479
|
disableShapeLinked: true
|
|
476
480
|
}
|
|
477
481
|
}
|
|
@@ -506,9 +510,9 @@ const ProductBadgeSettings = [
|
|
|
506
510
|
}
|
|
507
511
|
},
|
|
508
512
|
hiddenSettings: [
|
|
509
|
-
'shape',
|
|
510
513
|
'gap',
|
|
511
|
-
'padding'
|
|
514
|
+
'padding',
|
|
515
|
+
'proportion'
|
|
512
516
|
]
|
|
513
517
|
},
|
|
514
518
|
{
|
|
@@ -72,9 +72,9 @@ const SettingUIV2 = [
|
|
|
72
72
|
{
|
|
73
73
|
id: 'content-badge',
|
|
74
74
|
type: 'combo',
|
|
75
|
-
iconName: 'polaris-
|
|
75
|
+
iconName: 'polaris-edit',
|
|
76
76
|
isHideClear: true,
|
|
77
|
-
fixedValue: '
|
|
77
|
+
fixedValue: 'Add...',
|
|
78
78
|
popoverLabel: {
|
|
79
79
|
en: 'Content'
|
|
80
80
|
},
|
|
@@ -358,7 +358,7 @@ const SettingUIV2 = [
|
|
|
358
358
|
en: 'Position'
|
|
359
359
|
},
|
|
360
360
|
label: {
|
|
361
|
-
en: '
|
|
361
|
+
en: 'Choose'
|
|
362
362
|
},
|
|
363
363
|
layout: 'vertical',
|
|
364
364
|
controls: [
|
|
@@ -284,7 +284,7 @@ const ProductPropertiesSettingsV2 = [
|
|
|
284
284
|
placeholder: 'Auto',
|
|
285
285
|
devices: {
|
|
286
286
|
desktop: {
|
|
287
|
-
default: '
|
|
287
|
+
default: '100%'
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
290
|
hide: true
|
|
@@ -477,25 +477,10 @@ const ProductPropertiesSettingsV2 = [
|
|
|
477
477
|
{
|
|
478
478
|
id: 'shadowInput',
|
|
479
479
|
type: 'shadow-v2',
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
compoDefaultValue: {
|
|
488
|
-
desktop: {
|
|
489
|
-
default: {
|
|
490
|
-
normal: {
|
|
491
|
-
type: 'shadow-1',
|
|
492
|
-
distance: '4px',
|
|
493
|
-
blur: '4px',
|
|
494
|
-
spread: '0px',
|
|
495
|
-
color: '#121212',
|
|
496
|
-
angle: 45
|
|
497
|
-
}
|
|
498
|
-
}
|
|
480
|
+
default: {
|
|
481
|
+
normal: {
|
|
482
|
+
type: 'shadow-1',
|
|
483
|
+
enable: false
|
|
499
484
|
}
|
|
500
485
|
}
|
|
501
486
|
},
|
|
@@ -177,6 +177,50 @@ const SettingUIV2 = [
|
|
|
177
177
|
setting: {
|
|
178
178
|
id: 'shadowInput',
|
|
179
179
|
state: 'normal'
|
|
180
|
+
},
|
|
181
|
+
options: {
|
|
182
|
+
updateFields: [
|
|
183
|
+
{
|
|
184
|
+
field: 'normal.enable',
|
|
185
|
+
settingId: 'hasShadowInput',
|
|
186
|
+
state: 'normal'
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
controlChangeTrigger: {
|
|
191
|
+
settings: [
|
|
192
|
+
{
|
|
193
|
+
condition: `shadowInput.normal.enable === true`,
|
|
194
|
+
source: [
|
|
195
|
+
'shadowInput',
|
|
196
|
+
'hasShadowInput'
|
|
197
|
+
],
|
|
198
|
+
action: {
|
|
199
|
+
controlId: 'hasShadowInput',
|
|
200
|
+
groupType: 'style',
|
|
201
|
+
controlType: 'style',
|
|
202
|
+
state: 'normal',
|
|
203
|
+
newValue: true
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
condition: `shadowInput.normal.enable === false`,
|
|
208
|
+
source: [
|
|
209
|
+
'shadowInput',
|
|
210
|
+
'hasShadowInput'
|
|
211
|
+
],
|
|
212
|
+
action: {
|
|
213
|
+
controlId: 'hasShadowInput',
|
|
214
|
+
groupType: 'style',
|
|
215
|
+
controlType: 'style',
|
|
216
|
+
state: 'normal',
|
|
217
|
+
newValue: false
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
options: {
|
|
222
|
+
noRecordHistory: true
|
|
223
|
+
}
|
|
180
224
|
}
|
|
181
225
|
}
|
|
182
226
|
]
|
|
@@ -220,6 +264,9 @@ const SettingUIV2 = [
|
|
|
220
264
|
label: {
|
|
221
265
|
en: 'Placeholder'
|
|
222
266
|
},
|
|
267
|
+
popoverLabel: {
|
|
268
|
+
en: 'Content'
|
|
269
|
+
},
|
|
223
270
|
iconName: 'polaris-text-block',
|
|
224
271
|
getValueFromSettingID: 'placeholder',
|
|
225
272
|
isHideClear: true,
|
|
@@ -230,7 +277,8 @@ const SettingUIV2 = [
|
|
|
230
277
|
},
|
|
231
278
|
setting: {
|
|
232
279
|
id: 'placeholder'
|
|
233
|
-
}
|
|
280
|
+
},
|
|
281
|
+
layout: 'vertical'
|
|
234
282
|
}
|
|
235
283
|
]
|
|
236
284
|
},
|
|
@@ -337,7 +385,8 @@ const SettingUIV2 = [
|
|
|
337
385
|
},
|
|
338
386
|
setting: {
|
|
339
387
|
id: 'label'
|
|
340
|
-
}
|
|
388
|
+
},
|
|
389
|
+
layout: 'vertical'
|
|
341
390
|
}
|
|
342
391
|
]
|
|
343
392
|
},
|
|
@@ -426,6 +475,50 @@ const SettingUIV2 = [
|
|
|
426
475
|
setting: {
|
|
427
476
|
id: 'shadowInput',
|
|
428
477
|
state: 'hover'
|
|
478
|
+
},
|
|
479
|
+
options: {
|
|
480
|
+
updateFields: [
|
|
481
|
+
{
|
|
482
|
+
field: 'hover.enable',
|
|
483
|
+
settingId: 'hasShadowInput',
|
|
484
|
+
state: 'hover'
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
controlChangeTrigger: {
|
|
489
|
+
settings: [
|
|
490
|
+
{
|
|
491
|
+
condition: `shadowInput.hover.enable === true`,
|
|
492
|
+
source: [
|
|
493
|
+
'shadowInput',
|
|
494
|
+
'hasShadowInput'
|
|
495
|
+
],
|
|
496
|
+
action: {
|
|
497
|
+
controlId: 'hasShadowInput',
|
|
498
|
+
groupType: 'style',
|
|
499
|
+
controlType: 'style',
|
|
500
|
+
state: 'hover',
|
|
501
|
+
newValue: true
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
condition: `shadowInput.hover.enable === false`,
|
|
506
|
+
source: [
|
|
507
|
+
'shadowInput',
|
|
508
|
+
'hasShadowInput'
|
|
509
|
+
],
|
|
510
|
+
action: {
|
|
511
|
+
controlId: 'hasShadowInput',
|
|
512
|
+
groupType: 'style',
|
|
513
|
+
controlType: 'style',
|
|
514
|
+
state: 'hover',
|
|
515
|
+
newValue: false
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
options: {
|
|
520
|
+
noRecordHistory: true
|
|
521
|
+
}
|
|
429
522
|
}
|
|
430
523
|
}
|
|
431
524
|
]
|
|
@@ -507,6 +600,50 @@ const SettingUIV2 = [
|
|
|
507
600
|
setting: {
|
|
508
601
|
id: 'shadowInput',
|
|
509
602
|
state: 'focus'
|
|
603
|
+
},
|
|
604
|
+
options: {
|
|
605
|
+
updateFields: [
|
|
606
|
+
{
|
|
607
|
+
field: 'focus.enable',
|
|
608
|
+
settingId: 'hasShadowInput',
|
|
609
|
+
state: 'focus'
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
|
+
},
|
|
613
|
+
controlChangeTrigger: {
|
|
614
|
+
settings: [
|
|
615
|
+
{
|
|
616
|
+
condition: `shadowInput.focus.enable === true`,
|
|
617
|
+
source: [
|
|
618
|
+
'shadowInput',
|
|
619
|
+
'hasShadowInput'
|
|
620
|
+
],
|
|
621
|
+
action: {
|
|
622
|
+
controlId: 'hasShadowInput',
|
|
623
|
+
groupType: 'style',
|
|
624
|
+
controlType: 'style',
|
|
625
|
+
state: 'focus',
|
|
626
|
+
newValue: true
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
condition: `shadowInput.focus.enable === false`,
|
|
631
|
+
source: [
|
|
632
|
+
'shadowInput',
|
|
633
|
+
'hasShadowInput'
|
|
634
|
+
],
|
|
635
|
+
action: {
|
|
636
|
+
controlId: 'hasShadowInput',
|
|
637
|
+
groupType: 'style',
|
|
638
|
+
controlType: 'style',
|
|
639
|
+
state: 'focus',
|
|
640
|
+
newValue: false
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
options: {
|
|
645
|
+
noRecordHistory: true
|
|
646
|
+
}
|
|
510
647
|
}
|
|
511
648
|
}
|
|
512
649
|
]
|
|
@@ -540,8 +677,12 @@ const SettingUIV2 = [
|
|
|
540
677
|
type: 'combo',
|
|
541
678
|
isHideClear: true,
|
|
542
679
|
getValueFromSettingID: 'name',
|
|
680
|
+
iconName: 'polaris-text-block',
|
|
543
681
|
controls: [
|
|
544
682
|
{
|
|
683
|
+
label: {
|
|
684
|
+
en: 'Content'
|
|
685
|
+
},
|
|
545
686
|
setting: {
|
|
546
687
|
id: 'name'
|
|
547
688
|
},
|
|
@@ -585,6 +726,24 @@ const SettingUIV2 = [
|
|
|
585
726
|
id: 'maxChar'
|
|
586
727
|
}
|
|
587
728
|
},
|
|
729
|
+
{
|
|
730
|
+
label: {
|
|
731
|
+
en: 'Min number value'
|
|
732
|
+
},
|
|
733
|
+
conditionDisplay: 'numberOnly === true && ["text", "textarea"].includes(type)',
|
|
734
|
+
setting: {
|
|
735
|
+
id: 'minNumber'
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
label: {
|
|
740
|
+
en: 'Max number value'
|
|
741
|
+
},
|
|
742
|
+
conditionDisplay: 'numberOnly === true && ["text", "textarea"].includes(type)',
|
|
743
|
+
setting: {
|
|
744
|
+
id: 'maxNumber'
|
|
745
|
+
}
|
|
746
|
+
},
|
|
588
747
|
{
|
|
589
748
|
label: {
|
|
590
749
|
en: 'Predefine value'
|
|
@@ -625,7 +784,8 @@ const SettingUIV2 = [
|
|
|
625
784
|
},
|
|
626
785
|
setting: {
|
|
627
786
|
id: 'invalidLengthMessage'
|
|
628
|
-
}
|
|
787
|
+
},
|
|
788
|
+
layout: 'vertical'
|
|
629
789
|
}
|
|
630
790
|
]
|
|
631
791
|
},
|
|
@@ -645,7 +805,8 @@ const SettingUIV2 = [
|
|
|
645
805
|
},
|
|
646
806
|
setting: {
|
|
647
807
|
id: 'invalidNumberMessage'
|
|
648
|
-
}
|
|
808
|
+
},
|
|
809
|
+
layout: 'vertical'
|
|
649
810
|
}
|
|
650
811
|
]
|
|
651
812
|
},
|
|
@@ -665,7 +826,8 @@ const SettingUIV2 = [
|
|
|
665
826
|
},
|
|
666
827
|
setting: {
|
|
667
828
|
id: 'invalidEmailMessage'
|
|
668
|
-
}
|
|
829
|
+
},
|
|
830
|
+
layout: 'vertical'
|
|
669
831
|
}
|
|
670
832
|
]
|
|
671
833
|
},
|
|
@@ -685,7 +847,8 @@ const SettingUIV2 = [
|
|
|
685
847
|
},
|
|
686
848
|
setting: {
|
|
687
849
|
id: 'requiredMessage'
|
|
688
|
-
}
|
|
850
|
+
},
|
|
851
|
+
layout: 'vertical'
|
|
689
852
|
}
|
|
690
853
|
]
|
|
691
854
|
}
|