@fonixtree/magic-design 1.0.116 → 1.0.118
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/es/assets/images/base64/index.js +8 -2
- package/es/common/FontStyles/index.less +3 -1
- package/es/composite-comp/common/components/ImageLabel/index.less +7 -0
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +19 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +11 -3
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -1
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +64 -10
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +13 -28
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +3 -18
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +10 -2
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +37 -49
- package/es/locale/en/en.json +2 -1
- package/es/locale/es/es.json +2 -1
- package/es/locale/id/id.json +2 -1
- package/lib/assets/images/base64/index.js +8 -2
- package/lib/common/FontStyles/index.less +3 -1
- package/lib/composite-comp/common/components/ImageLabel/index.less +7 -0
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +19 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +11 -3
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -1
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +64 -10
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +13 -28
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +3 -18
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +10 -2
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +37 -49
- package/lib/locale/en/en.json +2 -1
- package/lib/locale/es/es.json +2 -1
- package/lib/locale/id/id.json +2 -1
- package/package.json +1 -1
|
@@ -9,8 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
12
|
var _common = require("../../../../../common");
|
|
15
13
|
|
|
16
14
|
var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
|
|
@@ -67,6 +65,42 @@ function (_super) {
|
|
|
67
65
|
_this.setState({});
|
|
68
66
|
};
|
|
69
67
|
|
|
68
|
+
_this.getIconPanel = function () {
|
|
69
|
+
var _a, _b, _c;
|
|
70
|
+
|
|
71
|
+
var panelProps = _this.props.panelProps;
|
|
72
|
+
var source = [{
|
|
73
|
+
key: (_a = panelProps.icon.cartIcon) === null || _a === void 0 ? void 0 : _a.id,
|
|
74
|
+
name: (0, _locale.i18n)('CART_ICON'),
|
|
75
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
76
|
+
data: panelProps.icon.cartIcon
|
|
77
|
+
}),
|
|
78
|
+
metaOption: panelProps.icon.cartIcon
|
|
79
|
+
}, {
|
|
80
|
+
key: (_b = panelProps.icon.chatbotIcon) === null || _b === void 0 ? void 0 : _b.id,
|
|
81
|
+
name: (0, _locale.i18n)('CHATBOT_ICON'),
|
|
82
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
83
|
+
data: panelProps.icon.chatbotIcon
|
|
84
|
+
}),
|
|
85
|
+
metaOption: panelProps.icon.chatbotIcon
|
|
86
|
+
}, {
|
|
87
|
+
key: (_c = panelProps.icon.messageIcon) === null || _c === void 0 ? void 0 : _c.id,
|
|
88
|
+
name: (0, _locale.i18n)('MESSAGE_ICON'),
|
|
89
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
90
|
+
data: panelProps.icon.messageIcon
|
|
91
|
+
}),
|
|
92
|
+
metaOption: panelProps.icon.messageIcon
|
|
93
|
+
}];
|
|
94
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
95
|
+
headerSize: "middle",
|
|
96
|
+
onRefresh: function onRefresh() {
|
|
97
|
+
return (0, _coreUtil.renderPreview)();
|
|
98
|
+
},
|
|
99
|
+
source: source,
|
|
100
|
+
type: "switch"
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
70
104
|
return _this;
|
|
71
105
|
}
|
|
72
106
|
|
|
@@ -127,53 +161,7 @@ function (_super) {
|
|
|
127
161
|
key: 'search3',
|
|
128
162
|
name: (0, _locale.i18n)('ICON'),
|
|
129
163
|
toggleType: 'triangle',
|
|
130
|
-
value:
|
|
131
|
-
style: {
|
|
132
|
-
marginTop: 10
|
|
133
|
-
}
|
|
134
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
135
|
-
colorType: "rgba",
|
|
136
|
-
onChange: function onChange(v) {
|
|
137
|
-
if ((0, _coreUtil.isPc)()) {
|
|
138
|
-
panelProps.icon.color.pc = v;
|
|
139
|
-
} else {
|
|
140
|
-
panelProps.icon.color.mobile = v;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
_this.selfRender();
|
|
144
|
-
},
|
|
145
|
-
value: (0, _coreUtil.isPc)() ? panelProps.icon.color.pc : panelProps.icon.color.mobile
|
|
146
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
-
style: {
|
|
148
|
-
background: '#F5F6F7',
|
|
149
|
-
padding: '14px 12px 1px'
|
|
150
|
-
}
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
152
|
-
layout: "horizontal",
|
|
153
|
-
title: (0, _locale.i18n)('CHATBOT_ICON')
|
|
154
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
155
|
-
checked: (0, _coreUtil.isPc)() ? panelProps.icon.cartIcon.pc : panelProps.icon.cartIcon.mobile,
|
|
156
|
-
onChange: function onChange(e) {
|
|
157
|
-
if ((0, _coreUtil.isPc)()) {
|
|
158
|
-
panelProps.icon.cartIcon.pc = e.target.checked;
|
|
159
|
-
} else {
|
|
160
|
-
panelProps.icon.cartIcon.mobile = e.target.checked;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
_this.selfRender();
|
|
164
|
-
}
|
|
165
|
-
})), !(0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
166
|
-
layout: "horizontal",
|
|
167
|
-
title: (0, _locale.i18n)('MESSAGE_ICON')
|
|
168
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
169
|
-
checked: panelProps.icon.messageIcon.mobile,
|
|
170
|
-
onChange: function onChange(e) {
|
|
171
|
-
panelProps.icon.messageIcon.mobile = e.target.checked;
|
|
172
|
-
|
|
173
|
-
_this.selfRender();
|
|
174
|
-
}
|
|
175
|
-
})))),
|
|
176
|
-
metaOption: panelProps.icon
|
|
164
|
+
value: this.getIconPanel()
|
|
177
165
|
}];
|
|
178
166
|
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
179
167
|
headerSize: "middle",
|
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/id/id.json
CHANGED