@fonixtree/magic-design 1.0.126 → 1.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/magic-box-iconfont.css +7 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +58 -4
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +137 -7
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +95 -8
- package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/es/constants/component-types.js +3 -9
- package/es/constants/index.js +0 -4
- package/es/core/Designer/ConfigPanel/index.js +18 -1
- package/es/decorator/compositeDecorator.js +1 -1
- package/es/decorator/metaDecorator.js +1 -2
- package/es/mobx/Store.js +12 -0
- package/lib/assets/fonts/magic-box-iconfont.css +7 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +58 -4
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +137 -7
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +95 -8
- package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/lib/constants/component-types.js +3 -9
- package/lib/constants/index.js +0 -4
- package/lib/core/Designer/ConfigPanel/index.js +18 -1
- package/lib/decorator/compositeDecorator.js +1 -1
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/mobx/Store.js +12 -0
- package/package.json +1 -1
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/es/composite-comp/dito/components/Orders/index.js +0 -84
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/lib/composite-comp/dito/components/Orders/index.js +0 -84
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
- /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
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 _ConfigGroup = _interopRequireDefault(require("./ConfigGroup"));
|
|
11
|
-
|
|
12
|
-
var _locale = require("../../../../locale");
|
|
13
|
-
|
|
14
|
-
var _common = require("../../../../common");
|
|
15
|
-
|
|
16
|
-
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
|
-
|
|
18
|
-
var _coreUtil = require("../../../../utils/coreUtil");
|
|
19
|
-
|
|
20
|
-
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 OrdersConfig =
|
|
51
|
-
/** @class */
|
|
52
|
-
function (_super) {
|
|
53
|
-
__extends(OrdersConfig, _super);
|
|
54
|
-
|
|
55
|
-
function OrdersConfig() {
|
|
56
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
|
|
58
|
-
_this.getContentPanel = function () {
|
|
59
|
-
var data = _this.props.data;
|
|
60
|
-
var source = [{
|
|
61
|
-
key: 1,
|
|
62
|
-
name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
|
|
63
|
-
metaOption: data.login
|
|
64
|
-
}];
|
|
65
|
-
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
66
|
-
headerSize: "middle",
|
|
67
|
-
onRefresh: function onRefresh() {
|
|
68
|
-
return (0, _coreUtil.renderPreview)();
|
|
69
|
-
},
|
|
70
|
-
source: source,
|
|
71
|
-
type: "switch"
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return _this;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
OrdersConfig.prototype.render = function () {
|
|
79
|
-
var data = this.props.data;
|
|
80
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
81
|
-
divider: "bold",
|
|
82
|
-
headerSize: "large",
|
|
83
|
-
source: [{
|
|
84
|
-
key: 'Orders1',
|
|
85
|
-
name: (0, _locale.i18n)('Content'),
|
|
86
|
-
value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
|
|
87
|
-
maxNum: 5,
|
|
88
|
-
source: data.groupSource
|
|
89
|
-
}),
|
|
90
|
-
metaOption: data.groupSource
|
|
91
|
-
}, {
|
|
92
|
-
key: 'Orders2',
|
|
93
|
-
name: (0, _locale.i18n)('SPACING'),
|
|
94
|
-
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
95
|
-
data: data.spacing
|
|
96
|
-
})
|
|
97
|
-
}, {
|
|
98
|
-
key: 'Orders3',
|
|
99
|
-
name: (0, _locale.i18n)('BACKGROUND'),
|
|
100
|
-
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
101
|
-
data: data.background
|
|
102
|
-
})
|
|
103
|
-
}]
|
|
104
|
-
}));
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
OrdersConfig.defaultProps = {
|
|
108
|
-
data: {}
|
|
109
|
-
};
|
|
110
|
-
return OrdersConfig;
|
|
111
|
-
}(_react["default"].Component);
|
|
112
|
-
|
|
113
|
-
var _default = OrdersConfig;
|
|
114
|
-
exports["default"] = _default;
|
|
@@ -1,148 +0,0 @@
|
|
|
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 _index = require("../../../../constants/index");
|
|
21
|
-
|
|
22
|
-
var _locale = require("../../../../locale");
|
|
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 OrdersSecondConfig =
|
|
55
|
-
/** @class */
|
|
56
|
-
function (_super) {
|
|
57
|
-
__extends(OrdersSecondConfig, _super);
|
|
58
|
-
|
|
59
|
-
function OrdersSecondConfig() {
|
|
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: (0, _locale.i18n)('Icon'),
|
|
74
|
-
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
75
|
-
data: data.image
|
|
76
|
-
}),
|
|
77
|
-
metaOption: data.image
|
|
78
|
-
}, {
|
|
79
|
-
key: 'secondContent2',
|
|
80
|
-
name: /*#__PURE__*/_react["default"].createElement("span", {
|
|
81
|
-
dangerouslySetInnerHTML: {
|
|
82
|
-
__html: data.title.text
|
|
83
|
-
}
|
|
84
|
-
}),
|
|
85
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
86
|
-
data: data.title
|
|
87
|
-
}),
|
|
88
|
-
metaOption: data.title
|
|
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
|
-
data.title.text = v;
|
|
106
|
-
|
|
107
|
-
_this.selfRender();
|
|
108
|
-
},
|
|
109
|
-
value: data.sourceType
|
|
110
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
111
|
-
value: _index.orderStatusType.PAY
|
|
112
|
-
}, (0, _locale.i18n)('TO_PAY')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
113
|
-
value: _index.orderStatusType.SHIP
|
|
114
|
-
}, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
115
|
-
value: _index.orderStatusType.RECEIVE
|
|
116
|
-
}, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
117
|
-
value: _index.orderStatusType.DONE
|
|
118
|
-
}, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
119
|
-
value: _index.orderStatusType.CANCELLED
|
|
120
|
-
}, (0, _locale.i18n)('CANCELLED'))))));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
return _this;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
OrdersSecondConfig.prototype.render = function () {
|
|
127
|
-
var panelProps = this.props.panelProps;
|
|
128
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
-
className: "orders_second_conf_wrap"
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
131
|
-
divider: "bold",
|
|
132
|
-
headerSize: "large",
|
|
133
|
-
source: [{
|
|
134
|
-
key: 'secondConfig1',
|
|
135
|
-
name: (0, _locale.i18n)('CONTENT'),
|
|
136
|
-
value: this.getContentPanel(panelProps, true)
|
|
137
|
-
}]
|
|
138
|
-
}));
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
OrdersSecondConfig.defaultProps = {
|
|
142
|
-
panelProps: {}
|
|
143
|
-
};
|
|
144
|
-
return OrdersSecondConfig;
|
|
145
|
-
}(_react["default"].Component);
|
|
146
|
-
|
|
147
|
-
var _default = OrdersSecondConfig;
|
|
148
|
-
exports["default"] = _default;
|
|
File without changes
|