@fonixtree/magic-design 1.0.175 → 1.0.176

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.
Files changed (33) hide show
  1. package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  2. package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  3. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  4. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +710 -0
  5. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
  6. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  7. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  8. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  9. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  10. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  11. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  12. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  13. package/es/constants/component-types.js +10 -4
  14. package/es/constants/index.js +4 -0
  15. package/es/core/Designer/ConfigPanel/index.js +1 -0
  16. package/es/decorator/compositeDecorator.js +1 -1
  17. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  18. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  19. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  20. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +710 -0
  21. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
  22. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  23. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  24. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  25. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  26. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  27. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  28. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  29. package/lib/constants/component-types.js +10 -4
  30. package/lib/constants/index.js +4 -0
  31. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  32. package/lib/decorator/compositeDecorator.js +1 -1
  33. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,9 @@
1
+ .personal_info_second_conf_wrap {
2
+
3
+ .sourceOfAmount {
4
+ border-top: 1px dashed #D2D9E5;
5
+ border-bottom: 1px dashed #D2D9E5;
6
+ padding-top: 20px;
7
+ padding-bottom: 10px;
8
+ }
9
+ }
@@ -55,6 +55,8 @@ var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/com
55
55
 
56
56
  var _PersonalInformation = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformation"));
57
57
 
58
+ var _PersonalInformationSecond = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformationSecond"));
59
+
58
60
  var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
59
61
 
60
62
  var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components/Bargain"));
@@ -121,6 +123,8 @@ var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/di
121
123
 
122
124
  var _PersonalInformationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationConfig"));
123
125
 
126
+ var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationSecondConfig"));
127
+
124
128
  var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
125
129
 
126
130
  var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/BargainConfig"));
@@ -169,7 +173,9 @@ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-c
169
173
 
170
174
  var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
171
175
 
172
- var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
176
+ var _PersonalInformationSecondConfig2 = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
177
+
178
+ var _PersonalInformationSecondSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig"));
173
179
 
174
180
  var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
175
181
 
@@ -193,17 +199,17 @@ var _a, _b, _c; // 组件
193
199
  /**
194
200
  * 渲染组件索引
195
201
  */
196
- 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[_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[_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[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["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);
202
+ 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[_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[_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[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["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);
197
203
  /**
198
204
  * 一级配置面板索引
199
205
  */
200
206
 
201
207
  exports.componentMap = componentMap;
202
- 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[_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[_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[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["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);
208
+ 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[_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[_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[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["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);
203
209
  /**
204
210
  * 二级配置面板索引
205
211
  */
206
212
 
207
213
  exports.configPanelMap = configPanelMap;
208
- 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[_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] = _PersonalInformationSecondConfig["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[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["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);
214
+ 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[_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[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["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);
209
215
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -258,6 +258,10 @@ var compInfoMap = {
258
258
  name: 'Personal Information',
259
259
  icon: 'icon-account'
260
260
  },
261
+ PERSONAL_INFOMATION_SECOND: {
262
+ name: 'Personal Information',
263
+ icon: 'icon-account'
264
+ },
261
265
  COMMON_FUNCTIONS: {
262
266
  name: 'Common Functions',
263
267
  icon: 'icon-function'
@@ -142,6 +142,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
142
142
  break;
143
143
 
144
144
  case 'PERSONAL_INFOMATION':
145
+ case 'PERSONAL_INFOMATION_SECOND':
145
146
  groupName = panelProps.sourceType;
146
147
  break;
147
148
 
@@ -149,7 +149,7 @@ function compositeDecorator(WrappedComponent) {
149
149
  } // 解决pc导航hover上去,类目被下面组件遮罩的问题
150
150
 
151
151
 
152
- if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION') {
152
+ if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION' || nodeData.type === 'PERSONAL_INFOMATION_SECOND') {
153
153
  zIndex = '2';
154
154
  }
155
155
 
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = exports.PersonalInfoGroupSourceJSON = exports.OrdersGroupSourceJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
11
+ var groupId = (0, _uuid.v4)();
12
+ return {
13
+ id: groupId,
14
+ title: {
15
+ parentId: groupId,
16
+ id: (0, _uuid.v4)(),
17
+ open: true,
18
+ type: 'TEXT',
19
+ specialContent: [],
20
+ text: text || 'Name',
21
+ content: {
22
+ sizeType: 'Customize font styles',
23
+ fontFamily: 'Montserrat',
24
+ fontWeight: 500,
25
+ fontSize: 10,
26
+ color: '#fff',
27
+ width: 0,
28
+ textAlign: 'center'
29
+ },
30
+ underline: {
31
+ open: false,
32
+ textDecorationColor: '',
33
+ textDecorationStyle: 'solid'
34
+ },
35
+ vertical: {}
36
+ },
37
+ number: {
38
+ parentId: groupId,
39
+ id: (0, _uuid.v4)(),
40
+ open: true,
41
+ type: 'TEXT',
42
+ specialContent: [],
43
+ text: 0,
44
+ content: {
45
+ sizeType: 'Customize font styles',
46
+ fontFamily: 'Montserrat',
47
+ fontWeight: 600,
48
+ fontSize: 18,
49
+ color: '#fff',
50
+ width: 0,
51
+ textAlign: 'center'
52
+ },
53
+ underline: {
54
+ open: false,
55
+ textDecorationColor: '',
56
+ textDecorationStyle: 'solid'
57
+ },
58
+ vertical: {}
59
+ },
60
+ sourceType: text
61
+ };
62
+ };
63
+
64
+ exports.PersonalInfoGroupSourceJSON = PersonalInfoGroupSourceJSON;
65
+
66
+ var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
67
+ var groupId = (0, _uuid.v4)();
68
+ return {
69
+ id: groupId,
70
+ title: {
71
+ parentId: groupId,
72
+ id: (0, _uuid.v4)(),
73
+ open: true,
74
+ type: 'TEXT',
75
+ specialContent: [],
76
+ text: text || 'Name',
77
+ content: {
78
+ sizeType: 'Customize font styles',
79
+ fontFamily: 'Montserrat',
80
+ fontWeight: 600,
81
+ fontSize: 10,
82
+ color: '#3E3E3E',
83
+ width: 0,
84
+ textAlign: 'center'
85
+ },
86
+ underline: {
87
+ open: false,
88
+ textDecorationColor: '',
89
+ textDecorationStyle: 'solid'
90
+ },
91
+ vertical: {}
92
+ },
93
+ image: {
94
+ parentId: groupId,
95
+ id: (0, _uuid.v4)(),
96
+ open: true,
97
+ type: 'IMAGE',
98
+ content: {
99
+ h5Name: 'name2',
100
+ pcName: 'name2',
101
+ h5ImgSrc: '',
102
+ pcImgSrc: '',
103
+ clickUrl: ''
104
+ },
105
+ hover: {
106
+ open: false,
107
+ backgroundType: 'enlarge',
108
+ magnification: 1.5,
109
+ pcImgHoverUrl: '',
110
+ h5ImgHoverUrl: ''
111
+ }
112
+ },
113
+ sourceType: text
114
+ };
115
+ };
116
+
117
+ exports.OrdersGroupSourceJSON = OrdersGroupSourceJSON;
118
+
119
+ var getDefaultJSON = function getDefaultJSON() {
120
+ return {
121
+ id: (0, _uuid.v4)(),
122
+ type: 'PERSONAL_INFOMATION_SECOND',
123
+ login: {
124
+ open: true
125
+ },
126
+ decorationIcon: {
127
+ id: (0, _uuid.v4)(),
128
+ open: true,
129
+ type: 'IMAGE',
130
+ content: {
131
+ h5Name: 'name2',
132
+ pcName: 'name2',
133
+ h5ImgSrc: '',
134
+ pcImgSrc: '',
135
+ clickUrl: ''
136
+ },
137
+ hover: {
138
+ open: false,
139
+ backgroundType: 'enlarge',
140
+ magnification: 1.5,
141
+ pcImgHoverUrl: '',
142
+ h5ImgHoverUrl: ''
143
+ }
144
+ },
145
+ groupSource: [],
146
+ groupSource2: [OrdersGroupSourceJSON('To Pay'), OrdersGroupSourceJSON('To Ship'), OrdersGroupSourceJSON('To Receive')],
147
+ spacing: {
148
+ pc: {
149
+ paddingTop: 0,
150
+ paddingBottom: 0,
151
+ marginBottom: 0
152
+ },
153
+ mobile: {
154
+ paddingTop: 0,
155
+ paddingBottom: 0,
156
+ marginBottom: 0
157
+ }
158
+ },
159
+ background: {
160
+ opacity: 100,
161
+ color: '#fff',
162
+ image: '',
163
+ bgType: 'color'
164
+ }
165
+ };
166
+ };
167
+
168
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _mobile = _interopRequireDefault(require("./mobile"));
11
+
12
+ var _defaultJSON = require("./defaultJSON");
13
+
14
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
+ var c = arguments.length,
52
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
+ d;
54
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ }
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ };
59
+
60
+ var PersonalInformation =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(PersonalInformation, _super);
64
+
65
+ function PersonalInformation() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+
69
+ PersonalInformation.prototype.render = function () {
70
+ var nodeData = this.props.nodeData;
71
+ return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
+ data: nodeData
73
+ }));
74
+ };
75
+
76
+ PersonalInformation.defaultProps = {};
77
+ PersonalInformation.type = 'PERSONAL_INFOMATION_SECOND';
78
+ PersonalInformation.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
+ PersonalInformation = __decorate([_compositeDecorator["default"]], PersonalInformation);
80
+ return PersonalInformation;
81
+ }(_react.Component);
82
+
83
+ var _default = PersonalInformation;
84
+ exports["default"] = _default;