cloud-b2b 1.1.63 → 1.1.65

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 (80) hide show
  1. package/es/Area/Area.js +11 -8
  2. package/es/CodeInput/CodeInput.js +19 -16
  3. package/es/Enhance/Dialogs.js +14 -11
  4. package/es/Enhance/Loading.js +18 -15
  5. package/es/Header/Header.js +20 -17
  6. package/es/Header/Vertical.js +14 -11
  7. package/es/ImageView/ImageView.js +13 -10
  8. package/es/InpurCascader/InputCascader.js +14 -11
  9. package/es/InputEditor/InputEditor.js +18 -16
  10. package/es/InputSearch/InputSearch.js +22 -19
  11. package/es/InputSelect/InputSelect.js +17 -14
  12. package/es/InputTreeSelect/InputTreeSelect.js +13 -10
  13. package/es/InputWriting/InputWriting.js +15 -12
  14. package/es/Layout/Layout.js +17 -14
  15. package/es/Link/Link.js +10 -7
  16. package/es/NumberInput/NumberInput.js +16 -13
  17. package/es/Search/Search.js +55 -52
  18. package/es/Search2/Search.js +110 -109
  19. package/es/Search2/Search.less +64 -64
  20. package/es/Search2/package.json +6 -6
  21. package/es/Sidebar/Sidebar.js +14 -11
  22. package/es/Sidebar2/Sidebar.js +16 -13
  23. package/es/SuperForm/SuperForm.js +79 -74
  24. package/es/SuperForm2/SuperForm.js +100 -96
  25. package/es/SuperPagination/SuperPagination.js +11 -8
  26. package/es/SuperTab/SuperTab.js +15 -12
  27. package/es/SuperTab2/SuperTab2.js +16 -13
  28. package/es/SuperTable/DragSortRow.js +15 -12
  29. package/es/SuperTable/FilterDropDown.js +14 -11
  30. package/es/SuperTable/SuperTable.js +71 -68
  31. package/es/SuperTable2/SuperTable2.js +88 -85
  32. package/es/SuperTable2/SuperTableCell.js +30 -27
  33. package/es/SuperTable3/FilterDropDown.js +14 -11
  34. package/es/SuperTable3/SuperTable.js +61 -58
  35. package/es/SuperToolbar/SuperToolbar.js +14 -11
  36. package/es/SuperUpload/SuperUpload.js +74 -74
  37. package/es/Viewer/ImageViews.js +19 -16
  38. package/es/Viewer/Viewer.js +14 -11
  39. package/es/helper.js +17 -18
  40. package/lib/Area/Area.js +11 -8
  41. package/lib/CodeInput/CodeInput.js +19 -16
  42. package/lib/Enhance/Dialogs.js +14 -11
  43. package/lib/Enhance/Loading.js +18 -15
  44. package/lib/Header/Header.js +20 -17
  45. package/lib/Header/Vertical.js +14 -11
  46. package/lib/ImageView/ImageView.js +13 -10
  47. package/lib/InpurCascader/InputCascader.js +14 -11
  48. package/lib/InputEditor/InputEditor.js +18 -16
  49. package/lib/InputSearch/InputSearch.js +22 -19
  50. package/lib/InputSelect/InputSelect.js +17 -14
  51. package/lib/InputTreeSelect/InputTreeSelect.js +13 -10
  52. package/lib/InputWriting/InputWriting.js +15 -12
  53. package/lib/Layout/Layout.js +17 -14
  54. package/lib/LayoutLink/LayoutLink.js +2 -1
  55. package/lib/Link/Link.js +10 -7
  56. package/lib/NumberInput/NumberInput.js +16 -13
  57. package/lib/Search/Search.js +57 -53
  58. package/lib/Search2/Search.js +112 -110
  59. package/lib/Search2/Search.less +64 -64
  60. package/lib/Search2/package.json +6 -6
  61. package/lib/Sidebar/Sidebar.js +14 -11
  62. package/lib/Sidebar2/Sidebar.js +16 -13
  63. package/lib/SuperForm/SuperForm.js +81 -75
  64. package/lib/SuperForm2/SuperForm.js +102 -97
  65. package/lib/SuperPagination/SuperPagination.js +11 -8
  66. package/lib/SuperTab/SuperTab.js +15 -12
  67. package/lib/SuperTab2/SuperTab2.js +16 -13
  68. package/lib/SuperTable/DragSortRow.js +15 -12
  69. package/lib/SuperTable/FilterDropDown.js +14 -11
  70. package/lib/SuperTable/SuperTable.js +71 -68
  71. package/lib/SuperTable2/SuperTable2.js +90 -86
  72. package/lib/SuperTable2/SuperTableCell.js +30 -27
  73. package/lib/SuperTable3/FilterDropDown.js +14 -11
  74. package/lib/SuperTable3/SuperTable.js +61 -58
  75. package/lib/SuperToolbar/SuperToolbar.js +14 -11
  76. package/lib/SuperUpload/SuperUpload.js +76 -75
  77. package/lib/Viewer/ImageViews.js +19 -16
  78. package/lib/Viewer/Viewer.js +14 -11
  79. package/lib/helper.js +17 -18
  80. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- {
2
- "name": "Search",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./Search.js"
6
- }
1
+ {
2
+ "name": "Search",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./Search.js"
6
+ }
@@ -1,15 +1,16 @@
1
1
  import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
2
2
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
4
+ import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
5
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
4
6
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
5
7
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
7
8
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
8
9
  import _Menu from "antd/es/menu";
9
10
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
10
11
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
11
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
+ 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; } }
13
14
  import React from 'react';
14
15
  import PropTypes from 'prop-types';
15
16
  import Link from '../Link';
@@ -52,6 +53,8 @@ var ItemType = {
52
53
  * style: 样式
53
54
  */
54
55
  var Sidebar = /*#__PURE__*/function (_React$Component) {
56
+ _inherits(Sidebar, _React$Component);
57
+ var _super = _createSuper(Sidebar);
55
58
  function Sidebar() {
56
59
  var _context;
57
60
  var _this;
@@ -59,14 +62,14 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
59
62
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
60
63
  args[_key] = arguments[_key];
61
64
  }
62
- _this = _callSuper(this, Sidebar, _concatInstanceProperty(_context = []).call(_context, args));
63
- _defineProperty(_this, "onOpenChange", function (openKeys) {
65
+ _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
66
+ _defineProperty(_assertThisInitialized(_this), "onOpenChange", function (openKeys) {
64
67
  var onOpenChange = _this.props.onOpenChange;
65
68
  if (onOpenChange) {
66
69
  onOpenChange(openKeys);
67
70
  }
68
71
  });
69
- _defineProperty(_this, "toIcon", function (type) {
72
+ _defineProperty(_assertThisInitialized(_this), "toIcon", function (type) {
70
73
  if (type) {
71
74
  return /*#__PURE__*/React.createElement(SuperIcon, {
72
75
  type: type,
@@ -79,7 +82,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
79
82
  return null;
80
83
  }
81
84
  });
82
- _defineProperty(_this, "toItem", function (_ref) {
85
+ _defineProperty(_assertThisInitialized(_this), "toItem", function (_ref) {
83
86
  var key = _ref.key,
84
87
  title = _ref.title,
85
88
  isFolder = _ref.isFolder,
@@ -105,10 +108,10 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
105
108
  }, unreadTotal)));
106
109
  }
107
110
  });
108
- _defineProperty(_this, "toItems", function (items) {
111
+ _defineProperty(_assertThisInitialized(_this), "toItems", function (items) {
109
112
  return _mapInstanceProperty(items).call(items, _this.toItem);
110
113
  });
111
- _defineProperty(_this, "getProps", function () {
114
+ _defineProperty(_assertThisInitialized(_this), "getProps", function () {
112
115
  var _this$props = _this.props,
113
116
  style = _this$props.style,
114
117
  activeKey = _this$props.activeKey,
@@ -125,13 +128,13 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
125
128
  });
126
129
  return _this;
127
130
  }
128
- _inherits(Sidebar, _React$Component);
129
- return _createClass(Sidebar, [{
131
+ _createClass(Sidebar, [{
130
132
  key: "render",
131
133
  value: function render() {
132
134
  return /*#__PURE__*/React.createElement(_Menu, this.getProps(), this.toItems(this.props.items));
133
135
  }
134
136
  }]);
137
+ return Sidebar;
135
138
  }(React.Component);
136
139
  _defineProperty(Sidebar, "propTypes", {
137
140
  activeKey: PropTypes.string.isRequired,
@@ -4,16 +4,17 @@ import _extends from "@babel/runtime-corejs3/helpers/extends";
4
4
  import _toConsumableArray from "@babel/runtime-corejs3/helpers/toConsumableArray";
5
5
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
6
6
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
7
+ import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
8
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
7
9
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
8
10
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
9
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
10
11
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
11
12
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
12
13
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
13
14
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
14
15
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
15
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
16
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
17
+ 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; } }
17
18
  import React from 'react';
18
19
  import PropTypes from 'prop-types';
19
20
  import Link from '../Link';
@@ -57,6 +58,8 @@ var ItemType = {
57
58
  * onModeChange: 模式改变时触发,原型为func(mode)
58
59
  */
59
60
  var Sidebar = /*#__PURE__*/function (_React$Component) {
61
+ _inherits(Sidebar, _React$Component);
62
+ var _super = _createSuper(Sidebar);
60
63
  function Sidebar() {
61
64
  var _context;
62
65
  var _this;
@@ -64,26 +67,26 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
64
67
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
65
68
  args[_key] = arguments[_key];
66
69
  }
67
- _this = _callSuper(this, Sidebar, _concatInstanceProperty(_context = []).call(_context, args));
68
- _defineProperty(_this, "onModeChange", function () {
70
+ _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
71
+ _defineProperty(_assertThisInitialized(_this), "onModeChange", function () {
69
72
  var mode = _this.props.mode || 'expand';
70
73
  _this.props.onModeChange(mode === 'expand' ? 'collapse' : 'expand');
71
74
  });
72
- _defineProperty(_this, "isSelect", function (item) {
75
+ _defineProperty(_assertThisInitialized(_this), "isSelect", function (item) {
73
76
  return _this.props.activeKey === item.key;
74
77
  });
75
- _defineProperty(_this, "isOpen", function (item) {
78
+ _defineProperty(_assertThisInitialized(_this), "isOpen", function (item) {
76
79
  var _context2;
77
80
  return _includesInstanceProperty(_context2 = _this.props.openKeys).call(_context2, item.key);
78
81
  });
79
- _defineProperty(_this, "getHeight", function (item) {
82
+ _defineProperty(_assertThisInitialized(_this), "getHeight", function (item) {
80
83
  if (item.isFolder && _this.isOpen(item)) {
81
84
  return (item.children.length + 1) * ITEM_HEIGHT;
82
85
  } else {
83
86
  return ITEM_HEIGHT;
84
87
  }
85
88
  });
86
- _defineProperty(_this, "linkProps", function (item) {
89
+ _defineProperty(_assertThisInitialized(_this), "linkProps", function (item) {
87
90
  if (item.isFolder) {
88
91
  return {
89
92
  title: item.title,
@@ -107,7 +110,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
107
110
  };
108
111
  }
109
112
  });
110
- _defineProperty(_this, "renderChild", function (item, index) {
113
+ _defineProperty(_assertThisInitialized(_this), "renderChild", function (item, index) {
111
114
  return /*#__PURE__*/React.createElement("li", {
112
115
  key: index
113
116
  }, /*#__PURE__*/React.createElement(Link, _extends({}, _this.linkProps(item), {
@@ -116,7 +119,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
116
119
  className: variables('Sidebar2').unreadTotal
117
120
  }, item.unreadTotal)));
118
121
  });
119
- _defineProperty(_this, "renderItem", function (item, index) {
122
+ _defineProperty(_assertThisInitialized(_this), "renderItem", function (item, index) {
120
123
  var _context5;
121
124
  return /*#__PURE__*/React.createElement("li", {
122
125
  key: index,
@@ -132,8 +135,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
132
135
  });
133
136
  return _this;
134
137
  }
135
- _inherits(Sidebar, _React$Component);
136
- return _createClass(Sidebar, [{
138
+ _createClass(Sidebar, [{
137
139
  key: "render",
138
140
  value: function render() {
139
141
  var _context6;
@@ -148,6 +150,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
148
150
  })))));
149
151
  }
150
152
  }]);
153
+ return Sidebar;
151
154
  }(React.Component);
152
155
  _defineProperty(Sidebar, "propTypes", {
153
156
  title: PropTypes.string,