@chaoswise/ui 2.5.1 → 2.5.3

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 (73) hide show
  1. package/lib/Ace/ace.js +6 -7
  2. package/lib/Ace/diff.js +6 -7
  3. package/lib/Ace/split.js +6 -7
  4. package/lib/Antd4Form/FormItemChildren.js +5 -6
  5. package/lib/CWSelect/antd-select.js +6 -7
  6. package/lib/CWTable/util.js +1 -1
  7. package/lib/CWTree/index.js +65 -64
  8. package/lib/CWUpload/upload/Upload.js +5 -6
  9. package/lib/CWUpload/upload/UploadList.js +5 -6
  10. package/lib/Checkbox/Checkbox.js +6 -7
  11. package/lib/Checkbox/Group.js +6 -7
  12. package/lib/ConfigProvider/useLocale.js +2 -1
  13. package/lib/ErrorBoundary/index.js +6 -7
  14. package/lib/FilterDropDown/drag.svg +17 -0
  15. package/lib/Mention/index.js +3 -3
  16. package/lib/Menu/index.js +0 -8
  17. package/lib/Menu/menu/MenuItem.js +5 -6
  18. package/lib/Menu/menu/SubMenu.js +5 -6
  19. package/lib/Menu/menu/index.js +6 -8
  20. package/lib/Modal/Modal.js +6 -7
  21. package/lib/ModuleFederation/ErrorBoundary/index.js +5 -6
  22. package/lib/QuickTransfer/CheckList.js +53 -0
  23. package/lib/QuickTransfer/TopicList.js +152 -0
  24. package/lib/Radio/Group.js +6 -7
  25. package/lib/Radio/Radio.js +6 -7
  26. package/lib/Select/index.js +3 -4
  27. package/lib/SiderMenu/Item.js +5 -6
  28. package/lib/SingleSpa/hooks/useErrorHandle.js +65 -0
  29. package/lib/SingleSpa/hooks/useModel.js +31 -0
  30. package/lib/SingleSpa/import-html/utils.js +14 -11
  31. package/lib/SingleSpa/index.js +35 -13
  32. package/lib/SingleSpa/singleSpa/single-spa.dev.js +11 -6
  33. package/lib/SingleSpa/system/amd.js +1 -0
  34. package/lib/SingleSpa/system/system.js +23 -16
  35. package/lib/SingleSpa/utils.js +15 -2
  36. package/lib/Table/index.js +29 -2
  37. package/lib/Table/util.js +15 -0
  38. package/lib/TimeRangeSlider/Refresh/index.js +161 -0
  39. package/lib/TimeRangeSlider/Refresh/index.less +26 -0
  40. package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/LimitAreaSvg.js +110 -0
  41. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomPlaceholder.js +70 -0
  42. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomTimeDateProcess.js +36 -0
  43. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.js +38 -0
  44. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.less +113 -0
  45. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopDateProcess.js +36 -0
  46. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopPlaceholder.js +36 -0
  47. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.js +31 -0
  48. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.less +79 -0
  49. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useHover.js +31 -0
  50. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +325 -0
  51. package/lib/TimeRangeSlider/TimeRangeSliderCmp/index.js +73 -0
  52. package/lib/TimeRangeSlider/TimeRangeSliderCmp/utils/index.js +227 -0
  53. package/lib/TimeRangeSlider/TimeSpan/index.js +81 -0
  54. package/lib/TimeRangeSlider/TimeSpan/index.less +12 -0
  55. package/lib/TimeRangeSlider/assets/Calendar.js +15 -0
  56. package/lib/TimeRangeSlider/assets/Calendar2.js +15 -0
  57. package/lib/TimeRangeSlider/assets/Recover.js +18 -0
  58. package/lib/TimeRangeSlider/assets/Refresh1.js +14 -0
  59. package/lib/TimeRangeSlider/assets/Refresh2.js +14 -0
  60. package/lib/TimeRangeSlider/assets/Refresh3.js +14 -0
  61. package/lib/TimeRangeSlider/assets/live.js +19 -0
  62. package/lib/TimeRangeSlider/assets/more.js +23 -0
  63. package/lib/TimeRangeSlider/index.js +480 -0
  64. package/lib/TimeRangeSlider/index.less +122 -0
  65. package/lib/TimeRangeSlider/locale/en_US.js +29 -0
  66. package/lib/TimeRangeSlider/locale/index.js +11 -0
  67. package/lib/TimeRangeSlider/locale/zh_CN.js +29 -0
  68. package/lib/TimeRangeSlider/locale/zh_TW.js +29 -0
  69. package/lib/TimeRangeSlider/utils/index.js +712 -0
  70. package/lib/TooltipText/ResizeObserverManager.js +56 -0
  71. package/lib/TooltipText/index.js +50 -60
  72. package/lib/Tree/index.js +3 -4
  73. package/package.json +3 -2
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="7px" height="12px" viewBox="0 0 7 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>形状</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.65">
5
+ <g id="4.2请求列表下钻-—快照请求列表页" transform="translate(-1368.000000, -705.000000)" fill="#000000" fill-rule="nonzero">
6
+ <g id="编组-11" transform="translate(232.000000, 554.000000)">
7
+ <g id="默认" transform="translate(857.000000, 10.000000)">
8
+ <g id="源列表" transform="translate(143.000000, 34.000000)">
9
+ <g id="拖拽备份-3" transform="translate(132.000000, 105.000000)">
10
+ <path d="M9.91111111,2 C9.37777778,2 8.97777778,2.4 8.97777778,2.93333333 C8.97777778,3.46666666 9.42222222,3.86666667 9.91111111,3.86666667 C10.4444444,3.86666667 10.8444444,3.46666667 10.8444444,2.93333333 C10.8888889,2.4 10.4444444,2 9.91111111,2 Z M9.91111111,6.71111111 C9.37777778,6.71111111 8.97777778,7.11111111 8.97777778,7.64444444 C8.97777778,8.17777777 9.42222222,8.57777778 9.91111111,8.57777778 C10.4444444,8.57777778 10.8444444,8.17777778 10.8444444,7.64444444 C10.8888889,7.11111111 10.4444444,6.71111111 9.91111111,6.71111111 Z M9.91111111,11.4222222 C9.37777778,11.4222222 8.97777778,11.8222222 8.97777778,12.3555556 C8.97777778,12.8888889 9.42222222,13.2888889 9.91111111,13.2888889 C10.4444444,13.2888889 10.8444444,12.8888889 10.8444444,12.3555556 C10.8888889,11.8222222 10.4444444,11.4222222 9.91111111,11.4222222 C9.42222222,11.4222222 9.91111111,11.4222222 9.91111111,11.4222222 Z M5.82222222,2 C5.33333333,2 4.88888889,2.4 4.88888889,2.93333333 C4.88888889,3.46666666 5.33333333,3.86666667 5.82222222,3.86666667 C6.35555555,3.86666667 6.75555555,3.46666667 6.75555556,2.93333333 C6.8,2.4 6.35555556,2 5.82222222,2 Z M5.82222222,6.71111111 C5.28888889,6.71111111 4.88888889,7.11111111 4.88888889,7.64444444 C4.88888889,8.17777777 5.33333333,8.57777778 5.82222222,8.57777778 C6.35555555,8.57777778 6.75555555,8.17777778 6.75555556,7.64444444 C6.8,7.11111111 6.35555556,6.71111111 5.82222222,6.71111111 Z M5.82222222,11.4222222 C5.28888889,11.4222222 4.88888889,11.8222222 4.88888889,12.3555556 C4.88888889,12.8888889 5.33333333,13.2888889 5.82222222,13.2888889 C6.35555555,13.2888889 6.75555555,12.8888889 6.75555556,12.3555556 C6.8,11.8222222 6.35555556,11.4222222 5.82222222,11.4222222 Z" id="形状"></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -1,3 +1,3 @@
1
- import "antd/es/mentions/style";
2
- import _Mentions from "antd/es/mentions";
3
- export default _Mentions;
1
+ import "antd/es/mention/style";
2
+ import _Mention from "antd/es/mention";
3
+ export default _Mention;
package/lib/Menu/index.js CHANGED
@@ -1,12 +1,4 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- /*
3
- * @Author: andrew.qiao andrew.qiao@cloudwise.com
4
- * @Date: 2022-05-19 18:52:13
5
- * @LastEditors: andrew.qiao andrew.qiao@cloudwise.com
6
- * @LastEditTime: 2023-02-28 16:26:57
7
- * @FilePath: /change_01/aops_web_commons/packages/ui/components/Menu/index.js
8
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
9
- */
10
2
  import React, { forwardRef } from "react";
11
3
  import Menu from "./menu";
12
4
  import 'antd/es/menu/style/index.less';
@@ -4,13 +4,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- 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); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
8
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
9
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
11
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
14
  var __rest = this && this.__rest || function (s, e) {
15
15
  var t = {};
16
16
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -35,11 +35,10 @@ import Tooltip from 'antd/es/tooltip';
35
35
  import { SiderContext } from 'antd/es/layout/Sider';
36
36
  var MenuItem = /*#__PURE__*/function (_React$Component) {
37
37
  _inherits(MenuItem, _React$Component);
38
- var _super = _createSuper(MenuItem);
39
38
  function MenuItem() {
40
39
  var _this;
41
40
  _classCallCheck(this, MenuItem);
42
- _this = _super.apply(this, arguments);
41
+ _this = _callSuper(this, MenuItem, arguments);
43
42
  _this.onKeyDown = function (e) {
44
43
  _this.menuItem.onKeyDown(e);
45
44
  };
@@ -4,13 +4,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- 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); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
8
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
9
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
11
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
14
  /*
15
15
  * @Author: andrew.qiao andrew.qiao@cloudwise.com
16
16
  * @Date: 2022-12-12 15:56:53
@@ -27,11 +27,10 @@ import classNames from 'classnames';
27
27
  import MenuContext from './MenuContext';
28
28
  var SubMenu = /*#__PURE__*/function (_React$Component) {
29
29
  _inherits(SubMenu, _React$Component);
30
- var _super = _createSuper(SubMenu);
31
30
  function SubMenu() {
32
31
  var _this;
33
32
  _classCallCheck(this, SubMenu);
34
- _this = _super.apply(this, arguments);
33
+ _this = _callSuper(this, SubMenu, arguments);
35
34
  _this.onKeyDown = function (e) {
36
35
  _this.subMenu.onKeyDown(e);
37
36
  };
@@ -5,13 +5,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5
5
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
9
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
10
- 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); }; }
8
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
9
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
12
10
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
12
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
13
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
15
  // @ts-nocheck
16
16
  import * as React from 'react';
17
17
  import RcMenu, { Divider, ItemGroup } from 'rc-menu';
@@ -28,11 +28,10 @@ import collapseMotion from 'antd/es/_util/motion';
28
28
  import MenuContext from './MenuContext';
29
29
  var InternalMenu = /*#__PURE__*/function (_React$Component) {
30
30
  _inherits(InternalMenu, _React$Component);
31
- var _super = _createSuper(InternalMenu);
32
31
  function InternalMenu(props) {
33
32
  var _this;
34
33
  _classCallCheck(this, InternalMenu);
35
- _this = _super.call(this, props);
34
+ _this = _callSuper(this, InternalMenu, [props]);
36
35
  // Restore vertical mode when menu is collapsed responsively when mounted
37
36
  // https://github.com/ant-design/ant-design/issues/13104
38
37
  // TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
@@ -263,10 +262,9 @@ polyfill(InternalMenu);
263
262
  // We should keep this as ref-able
264
263
  var Menu = /*#__PURE__*/function (_React$Component2) {
265
264
  _inherits(Menu, _React$Component2);
266
- var _super2 = _createSuper(Menu);
267
265
  function Menu() {
268
266
  _classCallCheck(this, Menu);
269
- return _super2.apply(this, arguments);
267
+ return _callSuper(this, Menu, arguments);
270
268
  }
271
269
  _createClass(Menu, [{
272
270
  key: "render",
@@ -9,13 +9,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
- 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); }; }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
15
13
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
16
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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; } }
14
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
15
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
16
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
19
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
20
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21
21
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -23,11 +23,10 @@ import React, { Component } from 'react';
23
23
  import CloseSvg from './assets/Close';
24
24
  var AntDraggableModal = /*#__PURE__*/function (_Component) {
25
25
  _inherits(AntDraggableModal, _Component);
26
- var _super = _createSuper(AntDraggableModal);
27
26
  function AntDraggableModal(props) {
28
27
  var _this;
29
28
  _classCallCheck(this, AntDraggableModal);
30
- _this = _super.call(this, props);
29
+ _this = _callSuper(this, AntDraggableModal, [props]);
31
30
  _defineProperty(_assertThisInitialized(_this), "handleMove", function (event) {
32
31
  var deltaX = event.pageX - _this.mouseDownX;
33
32
  var deltaY = event.pageY - _this.mouseDownY;
@@ -4,21 +4,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- 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); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
8
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
9
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
11
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
14
  import React from 'react';
15
15
  var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
16
16
  _inherits(ErrorBoundary, _React$Component);
17
- var _super = _createSuper(ErrorBoundary);
18
17
  function ErrorBoundary(props) {
19
18
  var _this;
20
19
  _classCallCheck(this, ErrorBoundary);
21
- _this = _super.call(this, props);
20
+ _this = _callSuper(this, ErrorBoundary, [props]);
22
21
  _this.state = {
23
22
  hasError: false
24
23
  };
@@ -0,0 +1,53 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+ import React, { Fragment } from 'react';
9
+ import TopicList from './TopicList';
10
+ import { DndProvider } from "react-dnd";
11
+ import { HTML5Backend } from "react-dnd-html5-backend";
12
+ var CheckList = function CheckList(props) {
13
+ var checkValue = props.checkValue,
14
+ handleDelete = props.handleDelete,
15
+ handlePreviewList = props.handlePreviewList,
16
+ type = props.type,
17
+ render = props.render,
18
+ renderColumns = props.renderColumns,
19
+ dragList = props.dragList,
20
+ useDndProvider = props.useDndProvider;
21
+ var moveList = function moveList(dragIndex, hoverIndex) {
22
+ var tmp = checkValue[dragIndex]; //临时储存文件
23
+ checkValue.splice(dragIndex, 1); //移除拖拽项
24
+ checkValue.splice(hoverIndex, 0, tmp); //插入放置项
25
+ handlePreviewList(_toConsumableArray(checkValue)); //更新修改后的列表
26
+ };
27
+ var isLockSort = type === "list" && checkValue.filter(function (item) {
28
+ return item.disabled;
29
+ }).length;
30
+ var renderList = function renderList(item, index) {
31
+ return /*#__PURE__*/React.createElement(TopicList, _extends({
32
+ labelValue: item,
33
+ type: type,
34
+ renderColumns: renderColumns,
35
+ label: item.key,
36
+ value: item.title && item.title,
37
+ index: index,
38
+ render: render,
39
+ key: item.key,
40
+ handleDelete: handleDelete,
41
+ moveList: moveList,
42
+ dragList: dragList,
43
+ useDndProvider: useDndProvider,
44
+ isLockSort: isLockSort
45
+ }, item));
46
+ };
47
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(DndProvider, {
48
+ backend: HTML5Backend
49
+ }, checkValue.map(function (item, index) {
50
+ return renderList(item, index);
51
+ })));
52
+ };
53
+ export default CheckList;
@@ -0,0 +1,152 @@
1
+ import _Icon from "@chaoswise/ui/lib/Antd/Icon";
2
+ import "@chaoswise/ui/lib/Tooltip/index.less";
3
+ import _Tooltip from "@chaoswise/ui/lib/Tooltip";
4
+ import _ConfigProvider from "@chaoswise/ui/lib/ConfigProvider";
5
+ var _excluded = ["label", "value", "index", "handleDelete", "labelValue", "moveList", "type", "renderColumns", "render", "dragList", "disabled", "isLockSort"];
6
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+ import React, { Fragment, useRef } from "react";
16
+ import { useDrag, useDrop } from "react-dnd";
17
+ import classnames from "classnames";
18
+ import { getLocale } from "./locale";
19
+ import LockSvg from "./assets/LockSvg";
20
+ import DragSvg from "./assets/DragSvg";
21
+ var TopicList = function TopicList(_ref) {
22
+ var label = _ref.label,
23
+ value = _ref.value,
24
+ index = _ref.index,
25
+ handleDelete = _ref.handleDelete,
26
+ labelValue = _ref.labelValue,
27
+ moveList = _ref.moveList,
28
+ type = _ref.type,
29
+ renderColumns = _ref.renderColumns,
30
+ render = _ref.render,
31
+ dragList = _ref.dragList,
32
+ disabled = _ref.disabled,
33
+ isLockSort = _ref.isLockSort,
34
+ rest = _objectWithoutProperties(_ref, _excluded);
35
+ // 获取当前语言
36
+ var _ConfigProvider$useLo = _ConfigProvider.useLocale(),
37
+ _ConfigProvider$useLo2 = _ConfigProvider$useLo.locale,
38
+ locale = _ConfigProvider$useLo2 === void 0 ? "zh" : _ConfigProvider$useLo2;
39
+ var localeObj = getLocale(locale);
40
+ var dragRef = useRef(null);
41
+ var _useDrag = useDrag({
42
+ item: {
43
+ type: "child",
44
+ value: value,
45
+ index: index,
46
+ label: label,
47
+ labelValue: labelValue
48
+ }
49
+ }),
50
+ _useDrag2 = _slicedToArray(_useDrag, 2),
51
+ drag = _useDrag2[1];
52
+ var _useDrop = useDrop({
53
+ accept: "child",
54
+ hover: function hover(item, monitor) {
55
+ //拖拽目标的Index
56
+ var dragIndex = item.index;
57
+ //放置目标Index
58
+ var hoverIndex = index;
59
+ // 如果拖拽目标和放置目标相同的话,停止执行
60
+ if (dragIndex === hoverIndex) {
61
+ return;
62
+ }
63
+ //如果不做以下处理,则卡片移动到另一个卡片上就会进行交换,下方处理使得卡片能够在跨过中心线后进行交换.
64
+ //获取卡片的边框矩形
65
+ // const hoverBoundingRect = dragRef.current.getBoundingClientRect();
66
+ // //获取X轴中点
67
+ // const hoverMiddleY =
68
+ // (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
69
+ // //获取拖拽目标偏移量
70
+ // const clientOffset = monitor.getClientOffset();
71
+ // const hoverClientY = clientOffset.y - hoverBoundingRect.top;
72
+ // 从上往下放置
73
+ // if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {
74
+ // return;
75
+ // }
76
+ // // 从下往上放置
77
+ // if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {
78
+ // return;
79
+ // }
80
+ moveList(dragIndex, hoverIndex); //调用方法完成交换
81
+ item.index = hoverIndex; //重新赋值index,否则会出现无限交换情况
82
+ },
83
+ collect: function collect(monitor) {
84
+ var _ref2 = monitor.getItem() || {},
85
+ dragIndex = _ref2.index;
86
+ if (dragIndex === index) {
87
+ return {};
88
+ }
89
+ return {
90
+ isOver: monitor.isOver(),
91
+ dropClassName: dragIndex < index ? "drop-over-downward" : "drop-over-upward"
92
+ };
93
+ }
94
+ // drop: (item) => {
95
+ // moveList(item.index, index);
96
+ // },
97
+ }),
98
+ _useDrop2 = _slicedToArray(_useDrop, 2),
99
+ _useDrop2$ = _useDrop2[0],
100
+ isOver = _useDrop2$.isOver,
101
+ dropClassName = _useDrop2$.dropClassName,
102
+ drop = _useDrop2[1];
103
+ var handleDeleted = function handleDeleted(labelValue) {
104
+ handleDelete(labelValue);
105
+ };
106
+ var renderTable = function renderTable(labelValue) {
107
+ return /*#__PURE__*/React.createElement("div", null, renderColumns.map(function (item, index) {
108
+ return /*#__PURE__*/React.createElement("span", {
109
+ style: {
110
+ marginRight: "8px"
111
+ },
112
+ key: index
113
+ }, render(labelValue[item]));
114
+ }));
115
+ };
116
+ var dragProps = dragList && !disabled ? {
117
+ ref: drag(drop(dragRef)),
118
+ style: {
119
+ cursor: "move"
120
+ }
121
+ } : {};
122
+ var listLockSortContent = /*#__PURE__*/React.createElement("div", {
123
+ className: "cw-transfer-right-content-item"
124
+ }, /*#__PURE__*/React.createElement("div", {
125
+ className: "cw-transfer-right-content-item-drag-wrapper"
126
+ }, disabled ? /*#__PURE__*/React.createElement(LockSvg, null) : /*#__PURE__*/React.createElement(_Tooltip, {
127
+ title: localeObj["dragAndDrop"]
128
+ }, /*#__PURE__*/React.createElement(DragSvg, null))), /*#__PURE__*/React.createElement("div", {
129
+ className: "cw-transfer-right-content-item-text-wrapper"
130
+ }, render(value)), !disabled && /*#__PURE__*/React.createElement(_Icon, {
131
+ type: "close",
132
+ className: "cw-transfer-right-content-del",
133
+ onClick: function onClick() {
134
+ return handleDeleted(labelValue);
135
+ }
136
+ }));
137
+ var renderItemContent = type == "list" && isLockSort ? listLockSortContent : /*#__PURE__*/React.createElement(Fragment, null, dragList && /*#__PURE__*/React.createElement(_Tooltip, {
138
+ title: localeObj["dragAndDrop"]
139
+ }, /*#__PURE__*/React.createElement(DragSvg, {
140
+ className: "cw-transfer-right-content-drag"
141
+ })), /*#__PURE__*/React.createElement("div", null, type === "table" ? renderTable(labelValue) : render(value)), /*#__PURE__*/React.createElement(_Icon, {
142
+ type: "close",
143
+ className: "cw-transfer-right-content-del",
144
+ onClick: function onClick() {
145
+ return handleDeleted(labelValue);
146
+ }
147
+ }));
148
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
149
+ className: classnames("cw-transfer-right-content-main")
150
+ }, dragProps), renderItemContent));
151
+ };
152
+ export default TopicList;
@@ -2,13 +2,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
3
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
6
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7
- 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); }; }
5
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
6
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
- 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; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
8
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -34,11 +34,10 @@ function getCheckedValue(children) {
34
34
  }
35
35
  var RadioGroup = /*#__PURE__*/function (_Component) {
36
36
  _inherits(RadioGroup, _Component);
37
- var _super = _createSuper(RadioGroup);
38
37
  function RadioGroup(_props) {
39
38
  var _this;
40
39
  _classCallCheck(this, RadioGroup);
41
- _this = _super.call(this, _props);
40
+ _this = _callSuper(this, RadioGroup, [_props]);
42
41
  _defineProperty(_assertThisInitialized(_this), "onRadioChange", function (ev) {
43
42
  var lastValue = _this.state.value;
44
43
  var value = ev.target.value;
@@ -8,13 +8,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
8
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
9
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
12
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13
- 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); }; }
11
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
12
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
15
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
- 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
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
14
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
15
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
17
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
18
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -27,14 +27,13 @@ import PropTypes from "prop-types";
27
27
  import "./index.less";
28
28
  var Radio = /*#__PURE__*/function (_Component) {
29
29
  _inherits(Radio, _Component);
30
- var _super = _createSuper(Radio);
31
30
  function Radio() {
32
31
  var _this;
33
32
  _classCallCheck(this, Radio);
34
33
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
35
34
  args[_key] = arguments[_key];
36
35
  }
37
- _this = _super.call.apply(_super, [this].concat(args));
36
+ _this = _callSuper(this, Radio, [].concat(args));
38
37
  _defineProperty(_assertThisInitialized(_this), "saveCheckbox", function (node) {
39
38
  _this.rcCheckbox = node;
40
39
  });
@@ -1,4 +1,3 @@
1
- import "antd/es/tree-select/style";
2
- import _TreeSelect from "antd/es/tree-select";
3
- import './TreeSelect.less';
4
- export default _TreeSelect;
1
+ import "antd/es/select/style";
2
+ import _Select from "antd/es/select";
3
+ export default _Select;
@@ -9,13 +9,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9
9
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10
10
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
11
11
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
- 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); }; }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
15
13
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
16
14
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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; } }
15
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
16
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
17
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
19
  /*
20
20
  * @Author: andrew.qiao andrew.qiao@cloudwise.com
21
21
  * @Date: 2022-12-08 16:09:20
@@ -30,10 +30,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
30
30
  import React from 'react';
31
31
  var Item = /*#__PURE__*/function (_Menu$Item) {
32
32
  _inherits(Item, _Menu$Item);
33
- var _super = _createSuper(Item);
34
33
  function Item(props) {
35
34
  _classCallCheck(this, Item);
36
- return _super.call(this, props);
35
+ return _callSuper(this, Item, [props]);
37
36
  }
38
37
  _createClass(Item, [{
39
38
  key: "render",