@fonixtree/magic-design 2.0.207 → 2.0.209
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/common/GroupList/index.js +6 -2
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +8 -2
- package/es/composite-comp/bol/components/Banner/pc/index.js +8 -2
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
- package/es/composite-comp/bol/components/Carousel/pc/index.js +12 -6
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
- package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
- package/es/composite-comp/common/components/MonpayProductItem/index.js +4 -0
- package/es/composite-comp/common/components/ProductItem/index.js +29 -5
- package/es/composite-comp/common/components/ProductItem/index.less +15 -1
- package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
- package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
- package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- package/es/constants/component-types.js +10 -4
- package/es/constants/index.js +4 -0
- package/es/core/Designer/ConfigPanel/index.js +1 -0
- package/es/core/Designer/index.js +9 -3
- package/es/core/Renderer/index.js +4 -2
- package/es/decorator/compositeDecorator.js +1 -1
- package/es/locale/ar/ar.json +4 -0
- package/es/locale/en/en.json +4 -0
- package/es/locale/es/es.json +4 -0
- package/es/locale/mn/mn.json +18 -1
- package/es/meta-comp/components/Text/index.js +17 -4
- package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
- package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
- package/es/utils/commonUtil.js +17 -1
- package/es/utils/coreUtil.js +1 -1
- package/lib/common/GroupList/index.js +6 -2
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
- package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
- package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
- package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
- package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
- package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- package/lib/constants/component-types.js +10 -4
- package/lib/constants/index.js +4 -0
- package/lib/core/Designer/ConfigPanel/index.js +1 -0
- package/lib/core/Designer/index.js +9 -3
- package/lib/core/Renderer/index.js +4 -2
- package/lib/decorator/compositeDecorator.js +1 -1
- package/lib/locale/ar/ar.json +4 -0
- package/lib/locale/en/en.json +4 -0
- package/lib/locale/es/es.json +4 -0
- package/lib/locale/mn/mn.json +18 -1
- package/lib/meta-comp/components/Text/index.js +17 -4
- package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
- package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
- package/lib/utils/commonUtil.js +17 -1
- package/lib/utils/coreUtil.js +1 -1
- package/package.json +1 -1
package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
13
|
+
|
|
14
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
15
|
+
|
|
16
|
+
var _common = require("../../../../common");
|
|
17
|
+
|
|
18
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
19
|
+
|
|
20
|
+
var _locale = require("../../../../locale");
|
|
21
|
+
|
|
22
|
+
var _index = require("../../../../constants/index");
|
|
23
|
+
|
|
24
|
+
require("./index.less");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var PersonalInfoSecondConfig =
|
|
55
|
+
/** @class */
|
|
56
|
+
function (_super) {
|
|
57
|
+
__extends(PersonalInfoSecondConfig, _super);
|
|
58
|
+
|
|
59
|
+
function PersonalInfoSecondConfig() {
|
|
60
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
+
|
|
62
|
+
_this.state = {};
|
|
63
|
+
|
|
64
|
+
_this.selfRender = function () {
|
|
65
|
+
(0, _coreUtil.renderPreview)();
|
|
66
|
+
|
|
67
|
+
_this.setState({});
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_this.getContentPanel = function (data) {
|
|
71
|
+
var source = [{
|
|
72
|
+
key: 'secondContent1',
|
|
73
|
+
name: /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
|
+
dangerouslySetInnerHTML: {
|
|
75
|
+
__html: data.title.text
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
79
|
+
data: data.title
|
|
80
|
+
}),
|
|
81
|
+
metaOption: data.title
|
|
82
|
+
}, {
|
|
83
|
+
key: 'secondContent2',
|
|
84
|
+
name: (0, _locale.i18n)('Number'),
|
|
85
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
86
|
+
data: data.number
|
|
87
|
+
}),
|
|
88
|
+
metaOption: data.number
|
|
89
|
+
}];
|
|
90
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
91
|
+
headerSize: "middle",
|
|
92
|
+
onRefresh: function onRefresh() {
|
|
93
|
+
return (0, _coreUtil.renderPreview)();
|
|
94
|
+
},
|
|
95
|
+
showActiveColor: true,
|
|
96
|
+
source: source,
|
|
97
|
+
type: "switch"
|
|
98
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
+
className: "sourceOfAmount"
|
|
100
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
101
|
+
title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
|
|
102
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
103
|
+
onChange: function onChange(v) {
|
|
104
|
+
data.sourceType = v;
|
|
105
|
+
|
|
106
|
+
_this.selfRender();
|
|
107
|
+
},
|
|
108
|
+
value: data.sourceType
|
|
109
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
110
|
+
value: _index.personalInfoType.WISHLIST
|
|
111
|
+
}, (0, _locale.i18n)('WISHLIST')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
112
|
+
value: _index.personalInfoType.STORES
|
|
113
|
+
}, (0, _locale.i18n)('STORES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
114
|
+
value: _index.personalInfoType.VOUCHERS
|
|
115
|
+
}, (0, _locale.i18n)('VOUCHERS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
116
|
+
value: _index.personalInfoType.VIEWED
|
|
117
|
+
}, (0, _locale.i18n)('RECENTLY_VIEWED'))))));
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
_this.getOrdersPanel = function (data) {
|
|
121
|
+
var source = [{
|
|
122
|
+
key: 'secondContent3',
|
|
123
|
+
name: (0, _locale.i18n)('Icon'),
|
|
124
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
125
|
+
data: data.image
|
|
126
|
+
}),
|
|
127
|
+
metaOption: data.image
|
|
128
|
+
}, {
|
|
129
|
+
key: 'secondContent4',
|
|
130
|
+
name: /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
|
+
dangerouslySetInnerHTML: {
|
|
132
|
+
__html: data.title.text
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
136
|
+
data: data.title
|
|
137
|
+
}),
|
|
138
|
+
metaOption: data.title
|
|
139
|
+
}];
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
141
|
+
headerSize: "middle",
|
|
142
|
+
onRefresh: function onRefresh() {
|
|
143
|
+
return (0, _coreUtil.renderPreview)();
|
|
144
|
+
},
|
|
145
|
+
showActiveColor: true,
|
|
146
|
+
source: source,
|
|
147
|
+
type: "switch"
|
|
148
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
+
className: "sourceOfAmount"
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
151
|
+
title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
|
|
152
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
153
|
+
onChange: function onChange(v) {
|
|
154
|
+
data.sourceType = v;
|
|
155
|
+
data.title.text = v;
|
|
156
|
+
|
|
157
|
+
_this.selfRender();
|
|
158
|
+
},
|
|
159
|
+
value: data.sourceType
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
161
|
+
value: _index.orderStatusType.PAY
|
|
162
|
+
}, (0, _locale.i18n)('TO_PAY')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
163
|
+
value: _index.orderStatusType.SHIP
|
|
164
|
+
}, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
165
|
+
value: _index.orderStatusType.RECEIVE
|
|
166
|
+
}, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
167
|
+
value: _index.orderStatusType.DONE
|
|
168
|
+
}, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
169
|
+
value: _index.orderStatusType.CANCELLED
|
|
170
|
+
}, (0, _locale.i18n)('CANCELLED'))))));
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
return _this;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
PersonalInfoSecondConfig.prototype.render = function () {
|
|
177
|
+
var panelProps = this.props.panelProps;
|
|
178
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
179
|
+
className: "personal_info_second_conf_wrap"
|
|
180
|
+
}, panelProps.image ? /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
181
|
+
divider: "bold",
|
|
182
|
+
headerSize: "large",
|
|
183
|
+
source: [{
|
|
184
|
+
key: 'secondConfig2',
|
|
185
|
+
name: (0, _locale.i18n)('ORDERS'),
|
|
186
|
+
value: this.getOrdersPanel(panelProps, true)
|
|
187
|
+
}]
|
|
188
|
+
}) : /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
189
|
+
divider: "bold",
|
|
190
|
+
headerSize: "large",
|
|
191
|
+
source: [{
|
|
192
|
+
key: 'secondConfig1',
|
|
193
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
194
|
+
value: this.getContentPanel(panelProps, true)
|
|
195
|
+
}]
|
|
196
|
+
}));
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
PersonalInfoSecondConfig.defaultProps = {
|
|
200
|
+
panelProps: {}
|
|
201
|
+
};
|
|
202
|
+
return PersonalInfoSecondConfig;
|
|
203
|
+
}(_react["default"].Component);
|
|
204
|
+
|
|
205
|
+
var _default = PersonalInfoSecondConfig;
|
|
206
|
+
exports["default"] = _default;
|
|
@@ -207,6 +207,20 @@ function (_super) {
|
|
|
207
207
|
return _this;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
SlideImageSecondConfig.prototype.componentDidMount = function () {
|
|
211
|
+
var panelProps = this.props.panelProps;
|
|
212
|
+
|
|
213
|
+
if (!panelProps.background) {
|
|
214
|
+
panelProps.background = {
|
|
215
|
+
opacity: 100,
|
|
216
|
+
color: '#fff',
|
|
217
|
+
image: '',
|
|
218
|
+
bgType: 'image'
|
|
219
|
+
};
|
|
220
|
+
this.reRender();
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
|
|
210
224
|
SlideImageSecondConfig.prototype.render = function () {
|
|
211
225
|
var panelProps = this.props.panelProps;
|
|
212
226
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -53,6 +53,8 @@ var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/com
|
|
|
53
53
|
|
|
54
54
|
var _PersonalInformation = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformation"));
|
|
55
55
|
|
|
56
|
+
var _PersonalInformationSecond = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformationSecond"));
|
|
57
|
+
|
|
56
58
|
var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
|
|
57
59
|
|
|
58
60
|
var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components/Bargain"));
|
|
@@ -135,6 +137,8 @@ var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/di
|
|
|
135
137
|
|
|
136
138
|
var _PersonalInformationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationConfig"));
|
|
137
139
|
|
|
140
|
+
var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationSecondConfig"));
|
|
141
|
+
|
|
138
142
|
var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
|
|
139
143
|
|
|
140
144
|
var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/BargainConfig"));
|
|
@@ -201,7 +205,9 @@ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-c
|
|
|
201
205
|
|
|
202
206
|
var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
|
|
203
207
|
|
|
204
|
-
var
|
|
208
|
+
var _PersonalInformationSecondConfig2 = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
|
|
209
|
+
|
|
210
|
+
var _PersonalInformationSecondSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig"));
|
|
205
211
|
|
|
206
212
|
var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
|
|
207
213
|
|
|
@@ -229,17 +235,17 @@ var _a, _b, _c; // 组件
|
|
|
229
235
|
/**
|
|
230
236
|
* 渲染组件索引
|
|
231
237
|
*/
|
|
232
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_WalletAshita["default"].type] = _WalletAshita["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Stores["default"].type] = _Stores["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_MonpaySignBoard["default"].type] = _MonpaySignBoard["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a[_Campaign["default"].type] = _Campaign["default"], _a);
|
|
238
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_PersonalInformationSecond["default"].type] = _PersonalInformationSecond["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_WalletAshita["default"].type] = _WalletAshita["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Stores["default"].type] = _Stores["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_MonpaySignBoard["default"].type] = _MonpaySignBoard["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a[_Campaign["default"].type] = _Campaign["default"], _a);
|
|
233
239
|
/**
|
|
234
240
|
* 一级配置面板索引
|
|
235
241
|
*/
|
|
236
242
|
|
|
237
243
|
exports.componentMap = componentMap;
|
|
238
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_WalletAshita["default"].type] = _WalletAshitaConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Stores["default"].type] = _StoresConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_MonpaySignBoard["default"].type] = _MonpaySignBoardConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b[_Campaign["default"].type] = _CampaignConfig["default"], _b);
|
|
244
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_WalletAshita["default"].type] = _WalletAshitaConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Stores["default"].type] = _StoresConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_MonpaySignBoard["default"].type] = _MonpaySignBoardConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b[_Campaign["default"].type] = _CampaignConfig["default"], _b);
|
|
239
245
|
/**
|
|
240
246
|
* 二级配置面板索引
|
|
241
247
|
*/
|
|
242
248
|
|
|
243
249
|
exports.configPanelMap = configPanelMap;
|
|
244
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] =
|
|
250
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig2["default"], _c[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_WalletAshita["default"].type] = _WalletAshitaSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c[_Campaign["default"].type] = _CampaignSecondConfig["default"], _c);
|
|
245
251
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/lib/constants/index.js
CHANGED
|
@@ -348,6 +348,10 @@ var compInfoMap = {
|
|
|
348
348
|
name: 'Personal Information',
|
|
349
349
|
icon: 'icon-account'
|
|
350
350
|
},
|
|
351
|
+
PERSONAL_INFOMATION_SECOND: {
|
|
352
|
+
name: 'Personal Information',
|
|
353
|
+
icon: 'icon-account'
|
|
354
|
+
},
|
|
351
355
|
COMMON_FUNCTIONS: {
|
|
352
356
|
name: 'Common Functions',
|
|
353
357
|
icon: 'icon-function'
|
|
@@ -31,6 +31,8 @@ var _History = _interopRequireDefault(require("./History"));
|
|
|
31
31
|
|
|
32
32
|
var _AppointmentModal = _interopRequireDefault(require("./AppointmentModal"));
|
|
33
33
|
|
|
34
|
+
var _LeftTitle = _interopRequireDefault(require("./LeftTitle"));
|
|
35
|
+
|
|
34
36
|
var _RenderHtml = _interopRequireDefault(require("./RenderHtml"));
|
|
35
37
|
|
|
36
38
|
var _ToolBarModal = _interopRequireDefault(require("./ToolBarModal"));
|
|
@@ -784,9 +786,13 @@ function (_super) {
|
|
|
784
786
|
leftTitle = _b.leftTitle,
|
|
785
787
|
outputType = _b.outputType,
|
|
786
788
|
pageType = _b.pageType;
|
|
787
|
-
var renderPagesManage = pagesManager;
|
|
788
|
-
|
|
789
|
-
|
|
789
|
+
var renderPagesManage = pagesManager;
|
|
790
|
+
|
|
791
|
+
if (outputType == 'html') {
|
|
792
|
+
renderPagesManage = /*#__PURE__*/_react["default"].createElement(_LeftTitle["default"], {
|
|
793
|
+
title: leftTitle
|
|
794
|
+
});
|
|
795
|
+
}
|
|
790
796
|
|
|
791
797
|
return /*#__PURE__*/_react["default"].createElement(_mobxReact.Provider, {
|
|
792
798
|
store: _mobx.store
|
|
@@ -46,7 +46,8 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
46
46
|
device = props.device,
|
|
47
47
|
isPreview = props.isPreview,
|
|
48
48
|
projectCode = props.projectCode,
|
|
49
|
-
showRecommendAds = props.showRecommendAds
|
|
49
|
+
showRecommendAds = props.showRecommendAds,
|
|
50
|
+
h5JumpUrlConfig = props.h5JumpUrlConfig;
|
|
50
51
|
window.magicDesign = __assign(__assign({
|
|
51
52
|
pageBackground: '#f2f2f2',
|
|
52
53
|
mode: 'renderer',
|
|
@@ -57,7 +58,8 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
57
58
|
projectCode: projectCode,
|
|
58
59
|
compSpacing: Number(config.compSpacing),
|
|
59
60
|
compWidth: Number(config.compWidth),
|
|
60
|
-
showRecommendAds: showRecommendAds
|
|
61
|
+
showRecommendAds: showRecommendAds,
|
|
62
|
+
h5JumpUrlConfig: h5JumpUrlConfig
|
|
61
63
|
});
|
|
62
64
|
};
|
|
63
65
|
/**
|
|
@@ -151,7 +151,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
151
151
|
} // 解决pc导航hover上去,类目被下面组件遮罩的问题
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION') {
|
|
154
|
+
if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION' || nodeData.type === 'PERSONAL_INFOMATION_SECOND') {
|
|
155
155
|
zIndex = '2';
|
|
156
156
|
}
|
|
157
157
|
|
package/lib/locale/ar/ar.json
CHANGED
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/mn/mn.json
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"ADULT": "Adult",
|
|
3
|
+
"ENDS_IN": "Ends in",
|
|
4
|
+
"STARTS_IN": "Starts in",
|
|
5
|
+
"ICON_COLOR": "Icon Color",
|
|
6
|
+
"COLLECT_VOUCHER_SUCCESS": "Voucher collection successful!",
|
|
7
|
+
"MOVE_IN_LOGO": "Move In Logo",
|
|
8
|
+
"SEARCH_BAR_BACKGROUND": "Search Bar Background",
|
|
9
|
+
"CONFIRM_TO_LOGOUT": "Confirm to Logout",
|
|
10
|
+
"LOG_OUT": "Log Out",
|
|
11
|
+
"MY_ACCOUNT": "My Account",
|
|
12
|
+
"LOGIN_BUTTON": "Login Button",
|
|
13
|
+
"SEARCH_ICON": "Search Icon",
|
|
14
|
+
"NAVIGATION": "Navigation",
|
|
15
|
+
"COLUMN_SPACING": "Column spacing",
|
|
16
|
+
"LINE_SPACING": "Мөр хоорондын зай",
|
|
17
|
+
"CHATBOT_ICON": "Chatbot icon",
|
|
18
|
+
"FESTIVAL_DECORATION": "Festival Decoration",
|
|
19
|
+
"PRICE_REDUCTION": "Price Reduction",
|
|
2
20
|
"PRODUCT_LABEL": "Product Label",
|
|
3
21
|
"LABELS": "Labels",
|
|
4
22
|
"TAB_BACKGROUND": "Tab Background",
|
|
@@ -294,7 +312,6 @@
|
|
|
294
312
|
"FONT_FAMILY": "Фонтын гэр бүл",
|
|
295
313
|
"FONT_WEIGHT": "Фонтын жин",
|
|
296
314
|
"FONT_SIZE": "Үсгийн хэмжээ",
|
|
297
|
-
"LINE_SPACING": "Мөр хоорондын зай",
|
|
298
315
|
"LINE_COLOR": "Шугамын өнгө",
|
|
299
316
|
"LINE_WEIGHT": "Шугамын жин",
|
|
300
317
|
"LINE_STYLE": "Шугамын хэв маяг",
|
|
@@ -139,6 +139,7 @@ function (_super) {
|
|
|
139
139
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
140
140
|
|
|
141
141
|
_this.textRef = /*#__PURE__*/_react["default"].createRef();
|
|
142
|
+
_this.quillWrapRef = /*#__PURE__*/_react["default"].createRef();
|
|
142
143
|
_this.quillRef = null;
|
|
143
144
|
_this.state = {
|
|
144
145
|
editabled: false
|
|
@@ -175,10 +176,22 @@ function (_super) {
|
|
|
175
176
|
close: _this.onEditorClose
|
|
176
177
|
}
|
|
177
178
|
});
|
|
179
|
+
|
|
180
|
+
document.addEventListener('mousedown', _this.onEditorBlur);
|
|
178
181
|
}, 100);
|
|
179
182
|
});
|
|
180
183
|
};
|
|
181
184
|
|
|
185
|
+
_this.onEditorBlur = function (event) {
|
|
186
|
+
var _a, _b;
|
|
187
|
+
|
|
188
|
+
var toolbarDom = document.querySelector('.toolbar-wrap');
|
|
189
|
+
|
|
190
|
+
if (((_a = _this.quillWrapRef) === null || _a === void 0 ? void 0 : _a.current) && !((_b = _this.quillWrapRef) === null || _b === void 0 ? void 0 : _b.current.contains(event.target)) && !toolbarDom.contains(event.target)) {
|
|
191
|
+
_this.onEditorClose();
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
182
195
|
_this.onContentClick = function () {
|
|
183
196
|
var data = _this.props.data;
|
|
184
197
|
|
|
@@ -190,6 +203,7 @@ function (_super) {
|
|
|
190
203
|
};
|
|
191
204
|
|
|
192
205
|
_this.onEditorClose = function () {
|
|
206
|
+
document.removeEventListener('mousedown', _this.onEditorBlur);
|
|
193
207
|
_this.props.data.html = _this.quillRef.root.innerHTML;
|
|
194
208
|
|
|
195
209
|
_this.setState({
|
|
@@ -253,10 +267,9 @@ function (_super) {
|
|
|
253
267
|
}
|
|
254
268
|
|
|
255
269
|
if (editabled) {
|
|
256
|
-
return /*#__PURE__*/_react["default"].createElement("div",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
270
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
271
|
+
ref: this.quillWrapRef
|
|
272
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
260
273
|
className: "quill-text-content-wrap",
|
|
261
274
|
style: {
|
|
262
275
|
zIndex: 3
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = void 0;
|
|
6
|
+
exports.imageJson = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,6 +11,8 @@ var _antd = require("antd4");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _uuid = require("uuid");
|
|
15
|
+
|
|
14
16
|
var _HotAreaConfig = _interopRequireDefault(require("./HotAreaConfig"));
|
|
15
17
|
|
|
16
18
|
var _commonUtil = require("../../../utils/commonUtil");
|
|
@@ -194,6 +196,26 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
194
196
|
}
|
|
195
197
|
};
|
|
196
198
|
|
|
199
|
+
var imageJson = {
|
|
200
|
+
id: (0, _uuid.v4)(),
|
|
201
|
+
open: true,
|
|
202
|
+
type: 'IMAGE',
|
|
203
|
+
content: {
|
|
204
|
+
clickUrl: '',
|
|
205
|
+
pcImgSrc: '',
|
|
206
|
+
h5ImgSrc: '',
|
|
207
|
+
name: ''
|
|
208
|
+
},
|
|
209
|
+
hover: {
|
|
210
|
+
open: false,
|
|
211
|
+
backgroundType: 'enlarge',
|
|
212
|
+
h5ImgHoverUrl: '',
|
|
213
|
+
pcImgHoverUrl: '',
|
|
214
|
+
magnification: 1
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
exports.imageJson = imageJson;
|
|
218
|
+
|
|
197
219
|
var ImageConfig =
|
|
198
220
|
/** @class */
|
|
199
221
|
function (_super) {
|
|
@@ -422,21 +444,7 @@ function (_super) {
|
|
|
422
444
|
};
|
|
423
445
|
|
|
424
446
|
ImageConfig.defaultProps = {
|
|
425
|
-
data:
|
|
426
|
-
content: {
|
|
427
|
-
clickUrl: '',
|
|
428
|
-
pcImgSrc: '',
|
|
429
|
-
h5ImgSrc: '',
|
|
430
|
-
name: ''
|
|
431
|
-
},
|
|
432
|
-
hover: {
|
|
433
|
-
open: false,
|
|
434
|
-
backgroundType: 'enlarge',
|
|
435
|
-
h5ImgHoverUrl: '',
|
|
436
|
-
pcImgHoverUrl: '',
|
|
437
|
-
magnification: 1
|
|
438
|
-
}
|
|
439
|
-
},
|
|
447
|
+
data: imageJson,
|
|
440
448
|
needHover: true,
|
|
441
449
|
needClickArea: true,
|
|
442
450
|
needURL: true
|
|
@@ -151,6 +151,15 @@ function (_super) {
|
|
|
151
151
|
|
|
152
152
|
_this.state = {};
|
|
153
153
|
_this.containerRef = /*#__PURE__*/_react["default"].createRef();
|
|
154
|
+
_this.editInputRef = /*#__PURE__*/_react["default"].createRef();
|
|
155
|
+
|
|
156
|
+
_this.onEditInputBlur = function (event) {
|
|
157
|
+
var _a, _b;
|
|
158
|
+
|
|
159
|
+
if (((_a = _this.editInputRef) === null || _a === void 0 ? void 0 : _a.current) && !((_b = _this.editInputRef) === null || _b === void 0 ? void 0 : _b.current.contains(event.target))) {
|
|
160
|
+
_this.selfRender();
|
|
161
|
+
}
|
|
162
|
+
};
|
|
154
163
|
|
|
155
164
|
_this.onSizeTypeChange = function (v, obj) {
|
|
156
165
|
_extends(obj, sizeTypeMap[v]);
|
|
@@ -165,11 +174,23 @@ function (_super) {
|
|
|
165
174
|
}
|
|
166
175
|
|
|
167
176
|
TextConfig.prototype.componentDidMount = function () {
|
|
177
|
+
var _a, _b;
|
|
178
|
+
|
|
179
|
+
var data = this.props.data;
|
|
168
180
|
window.document.addEventListener('text-render', this.selfRender);
|
|
181
|
+
(_b = (_a = this.editInputRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.addEventListener('input', function () {
|
|
182
|
+
if (data.html) {
|
|
183
|
+
data.html = this.textContent;
|
|
184
|
+
} else {
|
|
185
|
+
data.text = this.textContent;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
document.addEventListener('mousedown', this.onEditInputBlur);
|
|
169
189
|
};
|
|
170
190
|
|
|
171
191
|
TextConfig.prototype.componentWillUnmount = function () {
|
|
172
192
|
window.document.removeEventListener('text-render', this.selfRender);
|
|
193
|
+
document.removeEventListener('mousedown', this.onEditInputBlur);
|
|
173
194
|
};
|
|
174
195
|
|
|
175
196
|
TextConfig.prototype.render = function () {
|
|
@@ -367,13 +388,13 @@ function (_super) {
|
|
|
367
388
|
className: "text-input",
|
|
368
389
|
split: "solid",
|
|
369
390
|
title: (0, _locale.i18n)('TEXT')
|
|
370
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
391
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
392
|
+
ref: this.editInputRef,
|
|
393
|
+
className: "edit-input",
|
|
394
|
+
contentEditable: "true",
|
|
395
|
+
dangerouslySetInnerHTML: {
|
|
396
|
+
__html: data.html || data.text
|
|
397
|
+
}
|
|
377
398
|
})), /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
|
|
378
399
|
// headerSize="small"
|
|
379
400
|
, {
|