@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.
- 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/index.js +710 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
- 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/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -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/decorator/compositeDecorator.js +1 -1
- 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/index.js +710 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
- 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/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -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/decorator/compositeDecorator.js +1 -1
- package/package.json +1 -1
|
@@ -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;
|