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.
Files changed (109) hide show
  1. package/es/Area/Area.js +45 -16
  2. package/es/Card/Card.js +4 -3
  3. package/es/CodeInput/CodeInput.js +59 -30
  4. package/es/Control/Control.js +117 -58
  5. package/es/Control/event.js +14 -0
  6. package/es/Enhance/Dialogs.js +21 -6
  7. package/es/Enhance/Loading.js +46 -26
  8. package/es/Enhance/index.js +2 -0
  9. package/es/Header/Header.js +35 -3
  10. package/es/Header/Vertical.js +24 -1
  11. package/es/ImageView/ImageView.js +22 -5
  12. package/es/Indent/Indent.js +7 -3
  13. package/es/InpurCascader/InputCascader.js +36 -10
  14. package/es/InputEditor/InputEditor.js +52 -53
  15. package/es/InputSearch/InputSearch.js +71 -26
  16. package/es/InputSelect/InputSelect.js +48 -17
  17. package/es/InputTreeSelect/InputTreeSelect.js +147 -0
  18. package/es/InputTreeSelect/package.json +6 -0
  19. package/es/InputWriting/InputWriting.js +28 -6
  20. package/es/Layout/Layout.js +59 -28
  21. package/es/LayoutLink/LayoutLink.js +20 -11
  22. package/es/Link/Link.js +27 -4
  23. package/es/Loading/Loading.js +3 -1
  24. package/es/Loading2/Loading2.js +2 -0
  25. package/es/ModalWithDrag/ModalWithDrag.js +8 -3
  26. package/es/ModalWithDrag/drag.js +29 -12
  27. package/es/NumberInput/NumberInput.js +64 -24
  28. package/es/Search/Search.js +164 -54
  29. package/es/Sidebar/Sidebar.js +34 -13
  30. package/es/Sidebar2/Sidebar.js +30 -3
  31. package/es/SuperForm/SuperForm.js +164 -27
  32. package/es/SuperForm2/SuperForm.js +182 -31
  33. package/es/SuperIcon/SuperIcon.js +6 -3
  34. package/es/SuperPagination/SuperPagination.js +32 -15
  35. package/es/SuperTab/SuperTab.js +27 -4
  36. package/es/SuperTab2/SuperTab2.js +33 -11
  37. package/es/SuperTable/DragSortRow.js +34 -6
  38. package/es/SuperTable/FilterDropDown.js +34 -10
  39. package/es/SuperTable/SuperTable.js +216 -84
  40. package/es/SuperTable/fixed.js +9 -1
  41. package/es/SuperTable2/SuperTable2.js +226 -101
  42. package/es/SuperTable2/SuperTableCell.js +60 -16
  43. package/es/SuperTable3/FilterDropDown.js +34 -10
  44. package/es/SuperTable3/SuperTable.js +175 -50
  45. package/es/SuperTable3/fixed.js +9 -1
  46. package/es/SuperToolbar/SuperToolbar.js +49 -21
  47. package/es/SuperUpload/SuperUpload.js +233 -156
  48. package/es/Title/Title.js +15 -12
  49. package/es/Viewer/ImageViews.js +60 -7
  50. package/es/Viewer/Viewer.js +32 -5
  51. package/es/WingBlank/WingBlank.js +6 -2
  52. package/es/helper.js +29 -7
  53. package/es/history.js +2 -3
  54. package/lib/Area/Area.js +64 -16
  55. package/lib/Card/Card.js +13 -3
  56. package/lib/CodeInput/CodeInput.js +77 -30
  57. package/lib/Control/Control.js +160 -58
  58. package/lib/Control/event.js +16 -0
  59. package/lib/Enhance/Dialogs.js +32 -6
  60. package/lib/Enhance/Loading.js +62 -26
  61. package/lib/Enhance/index.js +9 -0
  62. package/lib/Header/Header.js +48 -3
  63. package/lib/Header/Vertical.js +36 -1
  64. package/lib/ImageView/ImageView.js +30 -5
  65. package/lib/Indent/Indent.js +13 -3
  66. package/lib/InpurCascader/InputCascader.js +50 -11
  67. package/lib/InputEditor/InputEditor.js +61 -53
  68. package/lib/InputSearch/InputSearch.js +78 -26
  69. package/lib/InputSelect/InputSelect.js +62 -17
  70. package/lib/InputTreeSelect/InputTreeSelect.js +169 -0
  71. package/lib/InputTreeSelect/package.json +6 -0
  72. package/lib/InputWriting/InputWriting.js +35 -6
  73. package/lib/Layout/Layout.js +76 -28
  74. package/lib/LayoutLink/LayoutLink.js +38 -11
  75. package/lib/Link/Link.js +40 -4
  76. package/lib/Loading/Loading.js +9 -1
  77. package/lib/Loading2/Loading2.js +8 -0
  78. package/lib/ModalWithDrag/ModalWithDrag.js +18 -3
  79. package/lib/ModalWithDrag/drag.js +34 -12
  80. package/lib/NumberInput/NumberInput.js +77 -24
  81. package/lib/Search/Search.js +171 -54
  82. package/lib/Sidebar/Sidebar.js +46 -13
  83. package/lib/Sidebar2/Sidebar.js +42 -3
  84. package/lib/SuperForm/SuperForm.js +162 -27
  85. package/lib/SuperForm2/SuperForm.js +175 -31
  86. package/lib/SuperIcon/SuperIcon.js +14 -3
  87. package/lib/SuperPagination/SuperPagination.js +42 -15
  88. package/lib/SuperTab/SuperTab.js +34 -4
  89. package/lib/SuperTab2/SuperTab2.js +48 -11
  90. package/lib/SuperTable/DragSortRow.js +42 -6
  91. package/lib/SuperTable/FilterDropDown.js +42 -10
  92. package/lib/SuperTable/SuperTable.js +211 -83
  93. package/lib/SuperTable/fixed.js +13 -1
  94. package/lib/SuperTable2/SuperTable2.js +240 -101
  95. package/lib/SuperTable2/SuperTableCell.js +67 -13
  96. package/lib/SuperTable3/FilterDropDown.js +42 -10
  97. package/lib/SuperTable3/SuperTable.js +170 -49
  98. package/lib/SuperTable3/fixed.js +13 -1
  99. package/lib/SuperToolbar/SuperToolbar.js +64 -20
  100. package/lib/SuperUpload/SuperUpload.js +267 -156
  101. package/lib/Title/Title.js +24 -12
  102. package/lib/Viewer/ImageViews.js +63 -7
  103. package/lib/Viewer/Viewer.js +41 -5
  104. package/lib/WingBlank/WingBlank.js +14 -2
  105. package/lib/helper.js +47 -6
  106. package/lib/history.js +5 -0
  107. package/lib/index.js +76 -0
  108. package/lib/variables.js +4 -0
  109. 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
- onSearch = _this$props.onSearch,
44
- isDateFilterByStartAndEnd = _this$props.isDateFilterByStartAndEnd;
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
- _ref$start = _ref.start,
112
- start = _ref$start === void 0 ? '' : _ref$start,
113
- _ref$end = _ref.end,
114
- end = _ref$end === void 0 ? '' : _ref$end;
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
- _ref2$start = _ref2.start,
132
- start = _ref2$start === void 0 ? '' : _ref2$start,
133
- _ref2$end = _ref2.end,
134
- end = _ref2$end === void 0 ? '' : _ref2$end;
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,