cloud-b2b 1.1.26 → 1.1.28
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/Area/Area.js +16 -45
- package/es/Card/Card.js +3 -4
- package/es/CodeInput/CodeInput.js +30 -59
- package/es/Control/Control.js +47 -94
- package/es/Control/event.js +0 -14
- package/es/Enhance/Dialogs.js +0 -15
- package/es/Enhance/Loading.js +16 -36
- package/es/Enhance/index.js +0 -2
- package/es/Header/Header.js +3 -35
- package/es/Header/Vertical.js +1 -24
- package/es/ImageView/ImageView.js +5 -22
- package/es/Indent/Indent.js +3 -7
- package/es/InpurCascader/InputCascader.js +10 -36
- package/es/InputEditor/InputEditor.js +55 -55
- package/es/InputSearch/InputSearch.js +26 -71
- package/es/InputSelect/InputSelect.js +17 -48
- package/es/InputWriting/InputWriting.js +6 -28
- package/es/Layout/Layout.js +28 -59
- package/es/LayoutLink/LayoutLink.js +11 -20
- package/es/Link/Link.js +4 -27
- package/es/Loading/Loading.js +1 -3
- package/es/Loading2/Loading2.js +0 -2
- package/es/ModalWithDrag/ModalWithDrag.js +3 -8
- package/es/ModalWithDrag/drag.js +12 -29
- package/es/NumberInput/NumberInput.js +24 -63
- package/es/Search/Search.js +53 -149
- package/es/Sidebar/Sidebar.js +13 -34
- package/es/Sidebar2/Sidebar.js +3 -30
- package/es/SuperForm/SuperForm.js +27 -150
- package/es/SuperForm2/SuperForm.js +31 -165
- package/es/SuperIcon/SuperIcon.js +3 -6
- package/es/SuperPagination/SuperPagination.js +15 -32
- package/es/SuperTab/SuperTab.js +4 -27
- package/es/SuperTab2/SuperTab2.js +11 -33
- package/es/SuperTable/DragSortRow.js +6 -34
- package/es/SuperTable/FilterDropDown.js +10 -34
- package/es/SuperTable/SuperTable.js +91 -216
- package/es/SuperTable/fixed.js +1 -9
- package/es/SuperTable2/SuperTable2.js +104 -206
- package/es/SuperTable2/SuperTableCell.js +16 -55
- package/es/SuperTable3/FilterDropDown.js +10 -34
- package/es/SuperTable3/SuperTable.js +57 -175
- package/es/SuperTable3/fixed.js +1 -9
- package/es/SuperToolbar/SuperToolbar.js +21 -49
- package/es/SuperUpload/SuperUpload.js +73 -110
- package/es/Title/Title.js +12 -15
- package/es/Viewer/ImageViews.js +7 -60
- package/es/Viewer/Viewer.js +7 -34
- package/es/WingBlank/WingBlank.js +2 -6
- package/es/helper.js +36 -23
- package/es/history.js +3 -2
- package/lib/Area/Area.js +16 -64
- package/lib/Card/Card.js +3 -13
- package/lib/CodeInput/CodeInput.js +30 -77
- package/lib/Control/Control.js +47 -135
- package/lib/Control/event.js +0 -16
- package/lib/Enhance/Dialogs.js +0 -26
- package/lib/Enhance/Loading.js +16 -52
- package/lib/Enhance/index.js +0 -9
- package/lib/Header/Header.js +3 -48
- package/lib/Header/Vertical.js +1 -36
- package/lib/ImageView/ImageView.js +5 -30
- package/lib/Indent/Indent.js +3 -13
- package/lib/InpurCascader/InputCascader.js +11 -50
- package/lib/InputEditor/InputEditor.js +55 -64
- package/lib/InputSearch/InputSearch.js +26 -78
- package/lib/InputSelect/InputSelect.js +17 -62
- package/lib/InputWriting/InputWriting.js +6 -35
- package/lib/Layout/Layout.js +28 -76
- package/lib/LayoutLink/LayoutLink.js +11 -38
- package/lib/Link/Link.js +4 -40
- package/lib/Loading/Loading.js +1 -9
- package/lib/Loading2/Loading2.js +0 -8
- package/lib/ModalWithDrag/ModalWithDrag.js +3 -18
- package/lib/ModalWithDrag/drag.js +12 -34
- package/lib/NumberInput/NumberInput.js +24 -76
- package/lib/Search/Search.js +53 -157
- package/lib/Sidebar/Sidebar.js +13 -46
- package/lib/Sidebar2/Sidebar.js +3 -42
- package/lib/SuperForm/SuperForm.js +27 -149
- package/lib/SuperForm2/SuperForm.js +31 -160
- package/lib/SuperIcon/SuperIcon.js +3 -14
- package/lib/SuperPagination/SuperPagination.js +15 -42
- package/lib/SuperTab/SuperTab.js +4 -34
- package/lib/SuperTab2/SuperTab2.js +11 -48
- package/lib/SuperTable/DragSortRow.js +6 -42
- package/lib/SuperTable/FilterDropDown.js +10 -42
- package/lib/SuperTable/SuperTable.js +90 -210
- package/lib/SuperTable/fixed.js +1 -13
- package/lib/SuperTable2/SuperTable2.js +104 -222
- package/lib/SuperTable2/SuperTableCell.js +13 -62
- package/lib/SuperTable3/FilterDropDown.js +10 -42
- package/lib/SuperTable3/SuperTable.js +56 -169
- package/lib/SuperTable3/fixed.js +1 -13
- package/lib/SuperToolbar/SuperToolbar.js +20 -64
- package/lib/SuperUpload/SuperUpload.js +73 -140
- package/lib/Title/Title.js +12 -24
- package/lib/Viewer/ImageViews.js +7 -63
- package/lib/Viewer/Viewer.js +7 -43
- package/lib/WingBlank/WingBlank.js +2 -14
- package/lib/helper.js +36 -37
- package/lib/history.js +0 -5
- package/lib/index.js +0 -76
- package/lib/variables.js +0 -4
- package/package.json +1 -1
|
@@ -1,107 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _typeof3 = require("@babel/runtime-corejs3/helpers/typeof");
|
|
4
|
-
|
|
5
4
|
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
6
|
-
|
|
7
5
|
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
8
|
-
|
|
9
6
|
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
10
|
-
|
|
11
7
|
var _filterInstanceProperty2 = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
12
|
-
|
|
13
8
|
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
14
|
-
|
|
15
9
|
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
16
|
-
|
|
17
10
|
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
18
|
-
|
|
19
11
|
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
20
|
-
|
|
21
12
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
22
|
-
|
|
23
13
|
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
24
|
-
|
|
25
14
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
26
|
-
|
|
27
15
|
_Object$defineProperty(exports, "__esModule", {
|
|
28
16
|
value: true
|
|
29
17
|
});
|
|
30
|
-
|
|
31
18
|
exports["default"] = void 0;
|
|
32
|
-
|
|
33
19
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
34
|
-
|
|
35
20
|
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
36
|
-
|
|
37
21
|
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
38
|
-
|
|
39
22
|
var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some"));
|
|
40
|
-
|
|
41
23
|
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
42
|
-
|
|
43
24
|
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
44
|
-
|
|
45
25
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
46
|
-
|
|
47
26
|
var _row = _interopRequireDefault(require("antd/lib/row"));
|
|
48
|
-
|
|
49
27
|
var _col = _interopRequireDefault(require("antd/lib/col"));
|
|
50
|
-
|
|
51
28
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
52
|
-
|
|
53
29
|
var _tooltip = _interopRequireDefault(require("antd/lib/tooltip"));
|
|
54
|
-
|
|
55
30
|
var _icon = _interopRequireDefault(require("antd/lib/icon"));
|
|
56
|
-
|
|
57
31
|
var _checkbox = _interopRequireDefault(require("antd/lib/checkbox"));
|
|
58
|
-
|
|
59
32
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
|
|
60
|
-
|
|
61
33
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
62
|
-
|
|
63
34
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
64
|
-
|
|
65
35
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
66
|
-
|
|
67
36
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
68
|
-
|
|
69
37
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
70
|
-
|
|
71
38
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
72
|
-
|
|
73
39
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
74
|
-
|
|
75
40
|
var _form = _interopRequireDefault(require("antd/lib/form"));
|
|
76
|
-
|
|
77
41
|
var _react = _interopRequireDefault(require("react"));
|
|
78
|
-
|
|
79
42
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
80
|
-
|
|
81
43
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
82
|
-
|
|
83
44
|
var _helper = _interopRequireDefault(require("../helper"));
|
|
84
|
-
|
|
85
45
|
var _Control = _interopRequireWildcard(require("../Control"));
|
|
86
|
-
|
|
87
46
|
var _variables = _interopRequireDefault(require("../variables"));
|
|
88
|
-
|
|
89
47
|
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); }
|
|
90
|
-
|
|
91
48
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(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; }
|
|
92
|
-
|
|
93
49
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
94
|
-
|
|
95
50
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context24, _context25; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context24 = ownKeys(Object(source), !0)).call(_context24, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context25 = ownKeys(Object(source))).call(_context25, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
96
|
-
|
|
97
51
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
98
|
-
|
|
99
52
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
100
|
-
|
|
101
53
|
var FormItem = _form["default"].Item;
|
|
102
54
|
var defaultSize = 'large';
|
|
103
55
|
var defaultColNum = 4;
|
|
104
56
|
var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'captcha', 'area', 'uploadImg', 'cascader', 'checkbox'];
|
|
57
|
+
|
|
105
58
|
/**
|
|
106
59
|
* key:[必须],用于唯一标识该Form下的一个表单元素
|
|
107
60
|
* title:[必须],表单元素的标签
|
|
@@ -112,7 +65,6 @@ var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText',
|
|
|
112
65
|
* showAdd: [可选],是否显示+号,点击+号会触发onAdd事件,默认为false
|
|
113
66
|
* rule: [可选],用于设置校验规则
|
|
114
67
|
*/
|
|
115
|
-
|
|
116
68
|
var ControlType = {
|
|
117
69
|
key: _propTypes["default"].string.isRequired,
|
|
118
70
|
title: _propTypes["default"].string,
|
|
@@ -125,24 +77,18 @@ var ControlType = {
|
|
|
125
77
|
rule: _propTypes["default"].object,
|
|
126
78
|
props: _propTypes["default"].object
|
|
127
79
|
};
|
|
128
|
-
|
|
129
80
|
var Controlled = /*#__PURE__*/function (_React$Component) {
|
|
130
81
|
(0, _inherits2["default"])(Controlled, _React$Component);
|
|
131
|
-
|
|
132
82
|
var _super = _createSuper(Controlled);
|
|
133
|
-
|
|
134
83
|
function Controlled(props) {
|
|
135
84
|
var _this;
|
|
136
|
-
|
|
137
85
|
(0, _classCallCheck2["default"])(this, Controlled);
|
|
138
86
|
_this = _super.call(this, props);
|
|
139
87
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value) {
|
|
140
88
|
var onChange = _this.props.onChange;
|
|
141
|
-
|
|
142
89
|
_this.setState({
|
|
143
90
|
value: value
|
|
144
91
|
});
|
|
145
|
-
|
|
146
92
|
onChange && onChange(value);
|
|
147
93
|
});
|
|
148
94
|
_this.state = {
|
|
@@ -150,7 +96,6 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
|
|
|
150
96
|
};
|
|
151
97
|
return _this;
|
|
152
98
|
}
|
|
153
|
-
|
|
154
99
|
(0, _createClass2["default"])(Controlled, [{
|
|
155
100
|
key: "componentWillReceiveProps",
|
|
156
101
|
value: function componentWillReceiveProps(nextProps) {
|
|
@@ -168,7 +113,6 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
|
|
|
168
113
|
value: this.state.value,
|
|
169
114
|
onChange: this.onChange
|
|
170
115
|
});
|
|
171
|
-
|
|
172
116
|
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
173
117
|
}
|
|
174
118
|
}]);
|
|
@@ -187,24 +131,16 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
|
|
|
187
131
|
* onAreaSearch:联级选择器触发,原型为func(key - 当前联级key, title - 输入值, parentKey - 主体联级key)
|
|
188
132
|
* onFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
|
|
189
133
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
134
|
var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
193
135
|
(0, _inherits2["default"])(SuperForm2, _React$Component2);
|
|
194
|
-
|
|
195
136
|
var _super2 = _createSuper(SuperForm2);
|
|
196
|
-
|
|
197
137
|
function SuperForm2() {
|
|
198
138
|
var _context;
|
|
199
|
-
|
|
200
139
|
var _this2;
|
|
201
|
-
|
|
202
140
|
(0, _classCallCheck2["default"])(this, SuperForm2);
|
|
203
|
-
|
|
204
141
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
205
142
|
args[_key] = arguments[_key];
|
|
206
143
|
}
|
|
207
|
-
|
|
208
144
|
_this2 = _super2.call.apply(_super2, (0, _concat["default"])(_context = [this]).call(_context, args));
|
|
209
145
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onAdd", function (key, title) {
|
|
210
146
|
var onAdd = _this2.props.onAdd;
|
|
@@ -217,10 +153,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
217
153
|
});
|
|
218
154
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onChange", function (key, value) {
|
|
219
155
|
var onChange = _this2.props.onChange;
|
|
220
|
-
|
|
221
156
|
if (onChange) {
|
|
222
157
|
_this2.onExitValid(key);
|
|
223
|
-
|
|
224
158
|
onChange(key, value);
|
|
225
159
|
}
|
|
226
160
|
});
|
|
@@ -230,35 +164,29 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
230
164
|
});
|
|
231
165
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onBlur", function (key, value) {
|
|
232
166
|
var onChange = _this2.props.onChange;
|
|
233
|
-
|
|
234
167
|
if (onChange) {
|
|
235
168
|
_this2.onExitValid(key);
|
|
236
|
-
|
|
237
169
|
onChange(key, value);
|
|
238
170
|
}
|
|
239
171
|
});
|
|
240
172
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onExitValid", function (key, value) {
|
|
241
173
|
if (key === _this2.validKey) {
|
|
242
174
|
_this2.validKey = '';
|
|
243
|
-
|
|
244
175
|
_this2.props.onExitValid();
|
|
245
176
|
}
|
|
246
|
-
|
|
247
177
|
_this2.props.onChangeOperate && _this2.props.onChangeOperate(key, value);
|
|
248
178
|
});
|
|
179
|
+
// 动态生成getValidState方法
|
|
249
180
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "initValidState", function () {
|
|
250
181
|
var _this2$props = _this2.props,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
182
|
+
value = _this2$props.value,
|
|
183
|
+
valid = _this2$props.valid;
|
|
254
184
|
var invalid = function invalid() {
|
|
255
185
|
return null;
|
|
256
186
|
};
|
|
257
|
-
|
|
258
187
|
var _valid = function _valid(_ref2) {
|
|
259
188
|
var key = _ref2.key,
|
|
260
|
-
|
|
261
|
-
|
|
189
|
+
required = _ref2.required;
|
|
262
190
|
if (required) {
|
|
263
191
|
if (!value || _helper["default"].isEmpty2(value[key]) || !(0, _isArray["default"])(value[key]) && (0, _typeof2["default"])(value[key]) === 'object' && _helper["default"].isEmpty(value[key].value)) {
|
|
264
192
|
_this2.getValidState = invalid;
|
|
@@ -266,19 +194,16 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
266
194
|
return 'error';
|
|
267
195
|
}
|
|
268
196
|
}
|
|
269
|
-
|
|
270
197
|
return null;
|
|
271
198
|
};
|
|
272
|
-
|
|
273
199
|
_this2.getValidState = valid ? _valid : invalid;
|
|
274
200
|
});
|
|
275
201
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "validDate", function (_ref3) {
|
|
276
202
|
var key = _ref3.key,
|
|
277
|
-
|
|
203
|
+
type = _ref3.type;
|
|
278
204
|
return function (date) {
|
|
279
205
|
var _this2$props$value = _this2.props.value,
|
|
280
|
-
|
|
281
|
-
|
|
206
|
+
value = _this2$props$value === void 0 ? {} : _this2$props$value;
|
|
282
207
|
if (!date || !value[key]) {
|
|
283
208
|
return false;
|
|
284
209
|
} else {
|
|
@@ -294,7 +219,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
294
219
|
});
|
|
295
220
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getPopupContainer", function () {
|
|
296
221
|
var container = _this2.props.container;
|
|
297
|
-
|
|
298
222
|
if (typeof container === 'undefined') {
|
|
299
223
|
return _reactDom["default"].findDOMNode((0, _assertThisInitialized2["default"])(_this2));
|
|
300
224
|
} else if (typeof container === 'boolean') {
|
|
@@ -305,7 +229,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
305
229
|
});
|
|
306
230
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getMaxWidth", function () {
|
|
307
231
|
var _this2$props$colNum = _this2.props.colNum,
|
|
308
|
-
|
|
232
|
+
colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
|
|
309
233
|
return colNum * 1200;
|
|
310
234
|
});
|
|
311
235
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getContainer", function () {
|
|
@@ -313,9 +237,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
313
237
|
});
|
|
314
238
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControls", function () {
|
|
315
239
|
var _this2$props2 = _this2.props,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
240
|
+
hideControls = _this2$props2.hideControls,
|
|
241
|
+
controls = _this2$props2.controls;
|
|
319
242
|
if (!hideControls) {
|
|
320
243
|
return controls;
|
|
321
244
|
} else {
|
|
@@ -328,11 +251,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
328
251
|
});
|
|
329
252
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getType", function (_ref4) {
|
|
330
253
|
var _context2;
|
|
331
|
-
|
|
332
254
|
var key = _ref4.key,
|
|
333
|
-
|
|
255
|
+
type = _ref4.type;
|
|
334
256
|
var readonly = _this2.props.readonly;
|
|
335
|
-
|
|
336
257
|
if ((0, _includes["default"])(_context2 = ['area', 'uploadImg']).call(_context2, type)) {
|
|
337
258
|
return type;
|
|
338
259
|
} else if (!readonly) {
|
|
@@ -349,14 +270,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
349
270
|
});
|
|
350
271
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "specialProps", function (type, _ref5) {
|
|
351
272
|
var key = _ref5.key,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
273
|
+
_ref5$props = _ref5.props,
|
|
274
|
+
props = _ref5$props === void 0 ? {} : _ref5$props,
|
|
275
|
+
originType = _ref5.type;
|
|
356
276
|
if (type === 'readonly') {
|
|
357
277
|
if (originType === 'textArea') {
|
|
358
278
|
var _context3;
|
|
359
|
-
|
|
360
279
|
return {
|
|
361
280
|
type: 'textArea',
|
|
362
281
|
readonly: true,
|
|
@@ -364,7 +283,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
364
283
|
};
|
|
365
284
|
} else if (originType === 'uploadImg') {
|
|
366
285
|
var _context4;
|
|
367
|
-
|
|
368
286
|
var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
|
|
369
287
|
return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
|
|
370
288
|
readonly: true,
|
|
@@ -372,36 +290,29 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
372
290
|
});
|
|
373
291
|
} else {
|
|
374
292
|
var _context5;
|
|
375
|
-
|
|
376
293
|
return {
|
|
377
294
|
onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, (0, _assertThisInitialized2["default"])(_this2), key)
|
|
378
295
|
};
|
|
379
296
|
}
|
|
380
297
|
} else if (type === 'text' || type === 'textArea') {
|
|
381
298
|
var _context6, _context7;
|
|
382
|
-
|
|
383
299
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
384
300
|
onChange: (0, _bind["default"])(_context6 = _this2.onExitValid).call(_context6, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
385
301
|
onBlur: (0, _bind["default"])(_context7 = _this2.onChange).call(_context7, (0, _assertThisInitialized2["default"])(_this2), key)
|
|
386
302
|
});
|
|
387
303
|
} else if (type === 'date') {
|
|
388
304
|
var _context8, _context9;
|
|
389
|
-
|
|
390
305
|
var propsObj = _objectSpread(_objectSpread({}, props), {}, {
|
|
391
306
|
onChange: (0, _bind["default"])(_context8 = _this2.onBlur).call(_context8, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
392
307
|
onBlur: (0, _bind["default"])(_context9 = _this2.onExitValid).call(_context9, (0, _assertThisInitialized2["default"])(_this2), key)
|
|
393
308
|
});
|
|
394
|
-
|
|
395
309
|
if (_this2.props.onOpenChange && typeof _this2.props.onOpenChange === 'function') {
|
|
396
310
|
var _context10;
|
|
397
|
-
|
|
398
311
|
propsObj.onOpenChange = (0, _bind["default"])(_context10 = _this2.props.onOpenChange).call(_context10, (0, _assertThisInitialized2["default"])(_this2), key);
|
|
399
312
|
}
|
|
400
|
-
|
|
401
313
|
return propsObj;
|
|
402
314
|
} else if (type === 'captcha') {
|
|
403
315
|
var _context11, _context12, _context13;
|
|
404
|
-
|
|
405
316
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
406
317
|
onChange: (0, _bind["default"])(_context11 = _this2.onBlur).call(_context11, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
407
318
|
onBlur: (0, _bind["default"])(_context12 = _this2.onExitValid).call(_context12, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
@@ -409,7 +320,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
409
320
|
});
|
|
410
321
|
} else if (type === 'area') {
|
|
411
322
|
var _context14, _context15;
|
|
412
|
-
|
|
413
323
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
414
324
|
onChange: (0, _bind["default"])(_context14 = _this2.onBlur).call(_context14, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
415
325
|
onBlur: (0, _bind["default"])(_context15 = _this2.onExitValid).call(_context15, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
@@ -417,16 +327,13 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
417
327
|
});
|
|
418
328
|
} else if (type === 'uploadImg') {
|
|
419
329
|
var _context16, _context17;
|
|
420
|
-
|
|
421
330
|
var _commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
|
|
422
|
-
|
|
423
331
|
return _objectSpread(_objectSpread(_objectSpread({}, props), _commonProps), {}, {
|
|
424
332
|
onChange: (0, _bind["default"])(_context16 = _this2.onBlur).call(_context16, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
425
333
|
onBlur: (0, _bind["default"])(_context17 = _this2.onExitValid).call(_context17, (0, _assertThisInitialized2["default"])(_this2), key)
|
|
426
334
|
});
|
|
427
335
|
} else {
|
|
428
336
|
var _context18, _context19;
|
|
429
|
-
|
|
430
337
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
431
338
|
onChange: (0, _bind["default"])(_context18 = _this2.onBlur).call(_context18, (0, _assertThisInitialized2["default"])(_this2), key),
|
|
432
339
|
onBlur: (0, _bind["default"])(_context19 = _this2.onExitValid).call(_context19, (0, _assertThisInitialized2["default"])(_this2), key)
|
|
@@ -435,14 +342,11 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
435
342
|
});
|
|
436
343
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControlProps", function (control, status) {
|
|
437
344
|
var _this2$props3 = _this2.props,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
345
|
+
_this2$props3$value = _this2$props3.value,
|
|
346
|
+
value = _this2$props3$value === void 0 ? {} : _this2$props3$value,
|
|
347
|
+
readonly = _this2$props3.readonly;
|
|
442
348
|
var type = _this2.getType(control);
|
|
443
|
-
|
|
444
349
|
var props = _this2.specialProps(type, control);
|
|
445
|
-
|
|
446
350
|
return _objectSpread(_objectSpread({
|
|
447
351
|
autoFocus: !!status,
|
|
448
352
|
type: type
|
|
@@ -482,7 +386,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
482
386
|
maxRows: 5
|
|
483
387
|
};
|
|
484
388
|
}
|
|
485
|
-
|
|
486
389
|
return /*#__PURE__*/_react["default"].createElement(Controlled, props);
|
|
487
390
|
});
|
|
488
391
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toNumber", function (props) {
|
|
@@ -492,7 +395,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
492
395
|
});
|
|
493
396
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSelect", function (props, _ref6) {
|
|
494
397
|
var options = _ref6.options,
|
|
495
|
-
|
|
398
|
+
key = _ref6.key;
|
|
496
399
|
props.getPopupContainer = _this2.getPopupContainer;
|
|
497
400
|
props.options = _this2.getOptions(key, options);
|
|
498
401
|
props.dropdownMatchSelectWidth = false;
|
|
@@ -535,7 +438,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
535
438
|
});
|
|
536
439
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toRadioGroup", function (props, _ref8) {
|
|
537
440
|
var key = _ref8.key,
|
|
538
|
-
|
|
441
|
+
options = _ref8.options;
|
|
539
442
|
props.options = _this2.getOptions(key, options);
|
|
540
443
|
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
541
444
|
});
|
|
@@ -545,7 +448,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
545
448
|
});
|
|
546
449
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toReadonly", function (props, _ref9) {
|
|
547
450
|
var options = _ref9.options,
|
|
548
|
-
|
|
451
|
+
key = _ref9.key;
|
|
549
452
|
props.value = (0, _Control.getTitle)(props.value, _this2.getOptions(key, options));
|
|
550
453
|
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
551
454
|
});
|
|
@@ -558,7 +461,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
558
461
|
});
|
|
559
462
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "area", function (props, _ref10) {
|
|
560
463
|
var key = _ref10.key,
|
|
561
|
-
|
|
464
|
+
options = _ref10.options;
|
|
562
465
|
var readonly = _this2.props.readonly;
|
|
563
466
|
props.parentKey = key;
|
|
564
467
|
props.options = _this2.getOptions(key, options);
|
|
@@ -570,7 +473,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
570
473
|
});
|
|
571
474
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "uploadImg", function (props, control) {
|
|
572
475
|
var _context20;
|
|
573
|
-
|
|
574
476
|
var readonly = _this2.props.readonly;
|
|
575
477
|
props.required = control.required || false;
|
|
576
478
|
props.onFileChange = (0, _bind["default"])(_context20 = _this2.onFileChange).call(_context20, (0, _assertThisInitialized2["default"])(_this2), control);
|
|
@@ -581,7 +483,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
581
483
|
});
|
|
582
484
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCascader", function (props, control) {
|
|
583
485
|
var container = _this2.getContainer();
|
|
584
|
-
|
|
585
486
|
container && (props.getPopupContainer = container);
|
|
586
487
|
props.options = control.options || [];
|
|
587
488
|
props.onSearch = _this2.createSearchEvent(control);
|
|
@@ -591,7 +492,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
591
492
|
});
|
|
592
493
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCheckbox", function (props, control) {
|
|
593
494
|
var _context21;
|
|
594
|
-
|
|
595
495
|
var options = control.options || [];
|
|
596
496
|
return /*#__PURE__*/_react["default"].createElement(_checkbox["default"].Group, {
|
|
597
497
|
options: options,
|
|
@@ -603,74 +503,54 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
603
503
|
switch (props.type) {
|
|
604
504
|
case 'readonly':
|
|
605
505
|
return _this2.toReadonly(props, control);
|
|
606
|
-
|
|
607
506
|
case 'text':
|
|
608
507
|
return _this2.toText(props, control);
|
|
609
|
-
|
|
610
508
|
case 'number':
|
|
611
509
|
return _this2.toNumber(props, control);
|
|
612
|
-
|
|
613
510
|
case 'select':
|
|
614
511
|
case 'selectText':
|
|
615
512
|
return _this2.toSelect(props, control);
|
|
616
|
-
|
|
617
513
|
case 'search':
|
|
618
514
|
case 'searchText':
|
|
619
515
|
return _this2.toSearch(props, control);
|
|
620
|
-
|
|
621
516
|
case 'date':
|
|
622
517
|
return _this2.toDate(props, control);
|
|
623
|
-
|
|
624
518
|
case 'radioGroup':
|
|
625
519
|
return _this2.toRadioGroup(props, control);
|
|
626
|
-
|
|
627
520
|
case 'textArea':
|
|
628
521
|
return _this2.toTextArea(props, control);
|
|
629
|
-
|
|
630
522
|
case 'password':
|
|
631
523
|
return _this2.toPassword(props, control);
|
|
632
|
-
|
|
633
524
|
case 'editor':
|
|
634
525
|
return _this2.toEditor(props, control);
|
|
635
|
-
|
|
636
526
|
case 'selectWriting':
|
|
637
527
|
return _this2.toSelectWriting(props, control);
|
|
638
|
-
|
|
639
528
|
case 'selectSearch':
|
|
640
529
|
return _this2.selectSearch(props, control);
|
|
641
|
-
|
|
642
530
|
case 'empty':
|
|
643
531
|
return _this2.toEmpty(props, control);
|
|
644
|
-
|
|
645
532
|
case 'captcha':
|
|
646
533
|
return _this2.captcha(props, control);
|
|
647
|
-
|
|
648
534
|
case 'area':
|
|
649
535
|
return _this2.area(props, control);
|
|
650
|
-
|
|
651
536
|
case 'uploadImg':
|
|
652
537
|
return _this2.uploadImg(props, control);
|
|
653
|
-
|
|
654
538
|
case 'cascader':
|
|
655
539
|
return _this2.toCascader(props, control);
|
|
656
|
-
|
|
657
540
|
case 'checkbox':
|
|
658
541
|
return _this2.toCheckbox(props, control);
|
|
659
|
-
|
|
660
542
|
default:
|
|
661
543
|
return 'type error';
|
|
662
544
|
}
|
|
663
545
|
});
|
|
664
546
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toLabel", function (_ref11, type) {
|
|
665
547
|
var title = _ref11.title,
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
548
|
+
showAdd = _ref11.showAdd,
|
|
549
|
+
key = _ref11.key,
|
|
550
|
+
showInfo = _ref11.showInfo,
|
|
551
|
+
showInfoTitle = _ref11.showInfoTitle;
|
|
671
552
|
if (showAdd && type !== 'readonly') {
|
|
672
553
|
var _context22;
|
|
673
|
-
|
|
674
554
|
var onClick = (0, _bind["default"])(_context22 = _this2.onAdd).call(_context22, (0, _assertThisInitialized2["default"])(_this2), key, title);
|
|
675
555
|
return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
676
556
|
role: "add",
|
|
@@ -689,19 +569,16 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
689
569
|
});
|
|
690
570
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCol", function (span, control) {
|
|
691
571
|
var factor = control.span || 1;
|
|
692
|
-
|
|
693
572
|
var status = _this2.getValidState(control);
|
|
694
|
-
|
|
695
573
|
var controlProps = _this2.getControlProps(control, status);
|
|
696
|
-
|
|
697
574
|
var itemProps = {
|
|
698
575
|
label: _this2.toLabel(control, controlProps.type),
|
|
699
576
|
required: control.required,
|
|
700
577
|
validateStatus: status
|
|
701
578
|
};
|
|
702
579
|
var _this2$props4 = _this2.props,
|
|
703
|
-
|
|
704
|
-
|
|
580
|
+
checkable = _this2$props4.checkable,
|
|
581
|
+
onCheckItem = _this2$props4.onCheckItem;
|
|
705
582
|
return control.type !== 'empty' ? /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
706
583
|
span: span * factor,
|
|
707
584
|
key: control.key
|
|
@@ -737,34 +614,29 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
737
614
|
});
|
|
738
615
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCols", function () {
|
|
739
616
|
var _context23;
|
|
740
|
-
|
|
741
617
|
var _this2$props5 = _this2.props,
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
618
|
+
_this2$props5$colNum = _this2$props5.colNum,
|
|
619
|
+
colNum = _this2$props5$colNum === void 0 ? defaultColNum : _this2$props5$colNum,
|
|
620
|
+
allFullFather = _this2$props5.allFullFather;
|
|
746
621
|
if (allFullFather) {
|
|
747
622
|
colNum = 1;
|
|
748
623
|
}
|
|
749
|
-
|
|
750
624
|
var span = 24 / colNum;
|
|
751
625
|
return (0, _map["default"])(_context23 = _this2.getControls()).call(_context23, function (control) {
|
|
752
626
|
if (allFullFather) {
|
|
753
627
|
control.allFullFather = allFullFather;
|
|
754
628
|
}
|
|
755
|
-
|
|
756
629
|
return _this2.toCol(span, control);
|
|
757
630
|
});
|
|
758
631
|
});
|
|
759
632
|
return _this2;
|
|
760
633
|
}
|
|
761
|
-
|
|
762
634
|
(0, _createClass2["default"])(SuperForm2, [{
|
|
763
635
|
key: "render",
|
|
764
636
|
value: function render() {
|
|
765
637
|
this.initValidState();
|
|
766
638
|
var _this$props$layout = this.props.layout,
|
|
767
|
-
|
|
639
|
+
layout = _this$props$layout === void 0 ? 'horizontal' : _this$props$layout;
|
|
768
640
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
769
641
|
className: (0, _variables["default"])('SuperForm2')
|
|
770
642
|
}, /*#__PURE__*/_react["default"].createElement(_form["default"], {
|
|
@@ -779,7 +651,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
779
651
|
}]);
|
|
780
652
|
return SuperForm2;
|
|
781
653
|
}(_react["default"].Component);
|
|
782
|
-
|
|
783
654
|
(0, _defineProperty2["default"])(SuperForm2, "propTypes", {
|
|
784
655
|
controls: _propTypes["default"].arrayOf(_propTypes["default"].shape(ControlType)).isRequired,
|
|
785
656
|
value: _propTypes["default"].object,
|
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports["default"] = void 0;
|
|
12
|
-
|
|
13
9
|
var _icon = _interopRequireDefault(require("antd/lib/icon"));
|
|
14
|
-
|
|
15
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
16
|
-
|
|
17
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
|
18
|
-
|
|
19
12
|
var _react = _interopRequireDefault(require("react"));
|
|
20
|
-
|
|
21
13
|
var _excluded = ["type", "style"];
|
|
22
|
-
|
|
23
14
|
var SuperIcon = function SuperIcon(_ref) {
|
|
24
15
|
var type = _ref.type,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
_ref$style = _ref.style,
|
|
17
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
18
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
29
19
|
if (!type) {
|
|
30
20
|
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
31
21
|
style: style
|
|
@@ -42,6 +32,5 @@ var SuperIcon = function SuperIcon(_ref) {
|
|
|
42
32
|
});
|
|
43
33
|
}
|
|
44
34
|
};
|
|
45
|
-
|
|
46
35
|
var _default = SuperIcon;
|
|
47
36
|
exports["default"] = _default;
|