cloud-b2b 1.1.46 → 1.1.50
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 +45 -16
- package/es/Card/Card.js +4 -3
- package/es/CodeInput/CodeInput.js +59 -30
- package/es/Control/Control.js +117 -58
- package/es/Control/event.js +14 -0
- package/es/Enhance/Dialogs.js +21 -6
- package/es/Enhance/Loading.js +46 -26
- package/es/Enhance/index.js +2 -0
- package/es/Header/Header.js +35 -3
- package/es/Header/Vertical.js +24 -1
- package/es/ImageView/ImageView.js +22 -5
- package/es/Indent/Indent.js +7 -3
- package/es/InpurCascader/InputCascader.js +36 -10
- package/es/InputEditor/InputEditor.js +52 -53
- package/es/InputSearch/InputSearch.js +71 -26
- package/es/InputSelect/InputSelect.js +48 -17
- package/es/InputTreeSelect/InputTreeSelect.js +147 -0
- package/es/InputTreeSelect/package.json +6 -0
- package/es/InputWriting/InputWriting.js +28 -6
- package/es/Layout/Layout.js +59 -28
- package/es/LayoutLink/LayoutLink.js +20 -11
- package/es/Link/Link.js +27 -4
- package/es/Loading/Loading.js +3 -1
- package/es/Loading2/Loading2.js +2 -0
- package/es/ModalWithDrag/ModalWithDrag.js +8 -3
- package/es/ModalWithDrag/drag.js +29 -12
- package/es/NumberInput/NumberInput.js +64 -24
- package/es/Search/Search.js +164 -54
- package/es/Sidebar/Sidebar.js +34 -13
- package/es/Sidebar2/Sidebar.js +30 -3
- package/es/SuperForm/SuperForm.js +164 -27
- package/es/SuperForm2/SuperForm.js +182 -31
- package/es/SuperIcon/SuperIcon.js +6 -3
- package/es/SuperPagination/SuperPagination.js +32 -15
- package/es/SuperTab/SuperTab.js +27 -4
- package/es/SuperTab2/SuperTab2.js +33 -11
- package/es/SuperTable/DragSortRow.js +34 -6
- package/es/SuperTable/FilterDropDown.js +34 -10
- package/es/SuperTable/SuperTable.js +216 -84
- package/es/SuperTable/fixed.js +9 -1
- package/es/SuperTable2/SuperTable2.js +226 -101
- package/es/SuperTable2/SuperTableCell.js +60 -16
- package/es/SuperTable3/FilterDropDown.js +34 -10
- package/es/SuperTable3/SuperTable.js +175 -50
- package/es/SuperTable3/fixed.js +9 -1
- package/es/SuperToolbar/SuperToolbar.js +49 -21
- package/es/SuperUpload/SuperUpload.js +233 -156
- package/es/Title/Title.js +15 -12
- package/es/Viewer/ImageViews.js +60 -7
- package/es/Viewer/Viewer.js +32 -5
- package/es/WingBlank/WingBlank.js +6 -2
- package/es/helper.js +29 -7
- package/es/history.js +2 -3
- package/lib/Area/Area.js +64 -16
- package/lib/Card/Card.js +13 -3
- package/lib/CodeInput/CodeInput.js +77 -30
- package/lib/Control/Control.js +160 -58
- package/lib/Control/event.js +16 -0
- package/lib/Enhance/Dialogs.js +32 -6
- package/lib/Enhance/Loading.js +62 -26
- package/lib/Enhance/index.js +9 -0
- package/lib/Header/Header.js +48 -3
- package/lib/Header/Vertical.js +36 -1
- package/lib/ImageView/ImageView.js +30 -5
- package/lib/Indent/Indent.js +13 -3
- package/lib/InpurCascader/InputCascader.js +50 -11
- package/lib/InputEditor/InputEditor.js +61 -53
- package/lib/InputSearch/InputSearch.js +78 -26
- package/lib/InputSelect/InputSelect.js +62 -17
- package/lib/InputTreeSelect/InputTreeSelect.js +169 -0
- package/lib/InputTreeSelect/package.json +6 -0
- package/lib/InputWriting/InputWriting.js +35 -6
- package/lib/Layout/Layout.js +76 -28
- package/lib/LayoutLink/LayoutLink.js +38 -11
- package/lib/Link/Link.js +40 -4
- package/lib/Loading/Loading.js +9 -1
- package/lib/Loading2/Loading2.js +8 -0
- package/lib/ModalWithDrag/ModalWithDrag.js +18 -3
- package/lib/ModalWithDrag/drag.js +34 -12
- package/lib/NumberInput/NumberInput.js +77 -24
- package/lib/Search/Search.js +171 -54
- package/lib/Sidebar/Sidebar.js +46 -13
- package/lib/Sidebar2/Sidebar.js +42 -3
- package/lib/SuperForm/SuperForm.js +162 -27
- package/lib/SuperForm2/SuperForm.js +175 -31
- package/lib/SuperIcon/SuperIcon.js +14 -3
- package/lib/SuperPagination/SuperPagination.js +42 -15
- package/lib/SuperTab/SuperTab.js +34 -4
- package/lib/SuperTab2/SuperTab2.js +48 -11
- package/lib/SuperTable/DragSortRow.js +42 -6
- package/lib/SuperTable/FilterDropDown.js +42 -10
- package/lib/SuperTable/SuperTable.js +211 -83
- package/lib/SuperTable/fixed.js +13 -1
- package/lib/SuperTable2/SuperTable2.js +240 -101
- package/lib/SuperTable2/SuperTableCell.js +67 -13
- package/lib/SuperTable3/FilterDropDown.js +42 -10
- package/lib/SuperTable3/SuperTable.js +170 -49
- package/lib/SuperTable3/fixed.js +13 -1
- package/lib/SuperToolbar/SuperToolbar.js +64 -20
- package/lib/SuperUpload/SuperUpload.js +267 -156
- package/lib/Title/Title.js +24 -12
- package/lib/Viewer/ImageViews.js +63 -7
- package/lib/Viewer/Viewer.js +41 -5
- package/lib/WingBlank/WingBlank.js +14 -2
- package/lib/helper.js +47 -6
- package/lib/history.js +5 -0
- package/lib/index.js +76 -0
- package/lib/variables.js +4 -0
- package/package.json +2 -2
|
@@ -1,33 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
4
|
+
|
|
4
5
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
6
|
+
|
|
5
7
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
8
|
+
|
|
6
9
|
_Object$defineProperty(exports, "__esModule", {
|
|
7
10
|
value: true
|
|
8
11
|
});
|
|
12
|
+
|
|
9
13
|
exports["default"] = void 0;
|
|
14
|
+
|
|
10
15
|
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
16
|
+
|
|
11
17
|
var _input = _interopRequireDefault(require("antd/lib/input"));
|
|
18
|
+
|
|
12
19
|
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
20
|
+
|
|
13
21
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
22
|
+
|
|
14
23
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
24
|
+
|
|
15
25
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
26
|
+
|
|
16
27
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
28
|
+
|
|
17
29
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
30
|
+
|
|
18
31
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
32
|
+
|
|
19
33
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
34
|
+
|
|
20
35
|
var _react = _interopRequireDefault(require("react"));
|
|
36
|
+
|
|
21
37
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
38
|
+
|
|
22
39
|
var _Control = _interopRequireDefault(require("../Control/Control"));
|
|
40
|
+
|
|
23
41
|
var _variables = _interopRequireDefault(require("../variables"));
|
|
42
|
+
|
|
24
43
|
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); }; }
|
|
44
|
+
|
|
25
45
|
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; } }
|
|
46
|
+
|
|
26
47
|
var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
27
48
|
(0, _inherits2["default"])(FilterDropDown, _React$Component);
|
|
49
|
+
|
|
28
50
|
var _super = _createSuper(FilterDropDown);
|
|
51
|
+
|
|
29
52
|
function FilterDropDown(_props) {
|
|
30
53
|
var _this;
|
|
54
|
+
|
|
31
55
|
(0, _classCallCheck2["default"])(this, FilterDropDown);
|
|
32
56
|
_this = _super.call(this, _props);
|
|
33
57
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (e) {
|
|
@@ -40,8 +64,9 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
40
64
|
});
|
|
41
65
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSearch", function () {
|
|
42
66
|
var _this$props = _this.props,
|
|
43
|
-
|
|
44
|
-
|
|
67
|
+
onSearch = _this$props.onSearch,
|
|
68
|
+
isDateFilterByStartAndEnd = _this$props.isDateFilterByStartAndEnd;
|
|
69
|
+
|
|
45
70
|
if (onSearch) {
|
|
46
71
|
var value = !_this.state.start && !_this.state.end ? "" : _this.state;
|
|
47
72
|
var val = isDateFilterByStartAndEnd ? value : _this.state.value;
|
|
@@ -50,6 +75,7 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
50
75
|
});
|
|
51
76
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "DateInputCreator", function () {
|
|
52
77
|
var _context, _context2, _context3;
|
|
78
|
+
|
|
53
79
|
var props = _this.props.props;
|
|
54
80
|
var propsStart = {
|
|
55
81
|
type: "date",
|
|
@@ -106,12 +132,14 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
106
132
|
_this.state = {
|
|
107
133
|
value: _props.value || ''
|
|
108
134
|
};
|
|
135
|
+
|
|
109
136
|
if (_props.isDateFilterByStartAndEnd) {
|
|
110
137
|
var _ref = _props.value || {},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
138
|
+
_ref$start = _ref.start,
|
|
139
|
+
start = _ref$start === void 0 ? '' : _ref$start,
|
|
140
|
+
_ref$end = _ref.end,
|
|
141
|
+
end = _ref$end === void 0 ? '' : _ref$end;
|
|
142
|
+
|
|
115
143
|
_this.state = {
|
|
116
144
|
start: start,
|
|
117
145
|
end: end
|
|
@@ -121,17 +149,20 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
121
149
|
value: _props.value || ''
|
|
122
150
|
};
|
|
123
151
|
}
|
|
152
|
+
|
|
124
153
|
return _this;
|
|
125
154
|
}
|
|
155
|
+
|
|
126
156
|
(0, _createClass2["default"])(FilterDropDown, [{
|
|
127
157
|
key: "componentWillReceiveProps",
|
|
128
158
|
value: function componentWillReceiveProps(newProps) {
|
|
129
159
|
if (newProps.isDateFilterByStartAndEnd) {
|
|
130
160
|
var _ref2 = newProps.value || {},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
161
|
+
_ref2$start = _ref2.start,
|
|
162
|
+
start = _ref2$start === void 0 ? '' : _ref2$start,
|
|
163
|
+
_ref2$end = _ref2.end,
|
|
164
|
+
end = _ref2$end === void 0 ? '' : _ref2$end;
|
|
165
|
+
|
|
135
166
|
this.setState({
|
|
136
167
|
start: start,
|
|
137
168
|
end: end
|
|
@@ -164,6 +195,7 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
164
195
|
}]);
|
|
165
196
|
return FilterDropDown;
|
|
166
197
|
}(_react["default"].Component);
|
|
198
|
+
|
|
167
199
|
(0, _defineProperty2["default"])(FilterDropDown, "propTypes", {
|
|
168
200
|
value: _propTypes["default"].any,
|
|
169
201
|
onSearch: _propTypes["default"].func,
|