@fonixtree/magic-design 1.0.175 → 1.0.178

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 (55) 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/components/SearchBanner/defaultJSON.js +4 -0
  7. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +17 -5
  8. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +0 -2
  9. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  10. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  11. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  12. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  13. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  14. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  15. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +21 -5
  16. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  17. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  18. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  19. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  20. package/es/constants/component-types.js +10 -4
  21. package/es/constants/index.js +4 -0
  22. package/es/core/Designer/ConfigPanel/index.js +1 -0
  23. package/es/decorator/compositeDecorator.js +1 -1
  24. package/es/locale/en/en.json +1 -0
  25. package/es/locale/es/es.json +1 -0
  26. package/es/locale/id/id.json +1 -0
  27. package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
  28. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  29. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  30. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  31. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +710 -0
  32. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
  33. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  34. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +17 -5
  35. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +0 -2
  36. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  37. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  38. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  39. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  40. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  41. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  42. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +21 -5
  43. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  44. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  45. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  46. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  47. package/lib/constants/component-types.js +10 -4
  48. package/lib/constants/index.js +4 -0
  49. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  50. package/lib/decorator/compositeDecorator.js +1 -1
  51. package/lib/locale/en/en.json +1 -0
  52. package/lib/locale/es/es.json +1 -0
  53. package/lib/locale/id/id.json +1 -0
  54. package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
  55. package/package.json +1 -1
@@ -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("antd");
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
@@ -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;