@titaui/pc 1.9.87 → 1.9.88

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 (121) hide show
  1. package/lib/components/change-okr-modal/Filter.js +1 -1
  2. package/lib/components/change-okr-modal/Item.js +91 -121
  3. package/lib/components/change-okr-modal/filterTab.js +1 -1
  4. package/lib/components/change-okr-modal/index.js +1 -1
  5. package/lib/components/communication/CommunicationAttachments.js +1 -1
  6. package/lib/components/communication/ConvertUserName.js +1 -1
  7. package/lib/components/communication/index.js +1 -1
  8. package/lib/components/create-okr-modal/objectType.js +1 -1
  9. package/lib/components/date-picker/BodyItem.js +1 -1
  10. package/lib/components/date-picker/CalendarBody.js +1 -1
  11. package/lib/components/date-picker/CalendarHeader.js +1 -1
  12. package/lib/components/date-picker/index.js +1 -1
  13. package/lib/components/date-range-picker/index.js +1 -1
  14. package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
  15. package/lib/components/eReport/eReportListEmpty.js +1 -1
  16. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  17. package/lib/components/eReport/eReportShare/index.js +1 -1
  18. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  19. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  20. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  21. package/lib/components/emotions-selector/selector-content.js +1 -1
  22. package/lib/components/emotions-selector/selector-pop.js +1 -1
  23. package/lib/components/ereport-list/index.js +1 -1
  24. package/lib/components/error-boundary/index.js +1 -1
  25. package/lib/components/mblog/components/ConfirmPop.js +1 -1
  26. package/lib/components/mblog/components/MblogAction.js +1 -1
  27. package/lib/components/mblog/components/MblogContent.js +1 -1
  28. package/lib/components/mblog/index.js +1 -1
  29. package/lib/components/menus/export-modules/demo-menus/index.js +117 -0
  30. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +74 -0
  31. package/lib/components/menus/export-modules/demo-menus/menus.js +154 -0
  32. package/lib/components/menus/index.js +6 -0
  33. package/lib/components/nav-top/constant.js +26 -2
  34. package/lib/components/nav-top/utils.js +10 -1
  35. package/lib/components/okr-detail/auth.js +1 -1
  36. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  37. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  38. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  39. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  40. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  41. package/lib/components/okr-flow/export-modal/index.js +1 -1
  42. package/lib/components/okr-period-selector/select-cycle.js +0 -7
  43. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  44. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  45. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  46. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  47. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  48. package/lib/components/okr-review/index.js +1 -1
  49. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  50. package/lib/components/operation-records/index.js +1 -1
  51. package/lib/components/point-demo/input/index.js +1 -1
  52. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  53. package/lib/components/praise-record/index.js +1 -1
  54. package/lib/components/range-picker-pop/index.js +1 -1
  55. package/lib/components/range-selector-pop/RangeList.js +1 -1
  56. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  57. package/lib/components/select/Option.js +1 -1
  58. package/lib/components/select/index.js +1 -1
  59. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  60. package/lib/components/upload/components/uploadedPreview.js +1 -1
  61. package/lib/components/upload/index.js +1 -1
  62. package/lib/components/viewer/ImageListRender.js +1 -1
  63. package/lib/components/viewer/index.js +1 -1
  64. package/lib/components-v1/animate/AnimateChild.js +1 -1
  65. package/lib/components-v1/animate/animate.js +1 -1
  66. package/lib/components-v1/avatar/index.js +1 -1
  67. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  68. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  69. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  70. package/lib/components-v1/confirm/index.js +1 -1
  71. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  72. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  73. package/lib/components-v1/input/Input.js +1 -1
  74. package/lib/components-v1/input/InputNumber.js +1 -1
  75. package/lib/components-v1/placement/placement.js +1 -1
  76. package/lib/components-v1/placement/placementInner.js +1 -1
  77. package/lib/components-v1/pop/Pop.js +1 -1
  78. package/lib/components-v1/pop/PopInner.js +1 -1
  79. package/lib/components-v1/portals/Portals.js +1 -1
  80. package/lib/components-v1/progress/CircleProgress.js +1 -1
  81. package/lib/components-v1/progress/LineProgress.js +1 -1
  82. package/lib/components-v1/progress/index.js +1 -1
  83. package/lib/components-v1/radio/radio.js +1 -1
  84. package/lib/components-v1/radio/radioGroup.js +1 -1
  85. package/lib/components-v1/search/index.js +1 -1
  86. package/lib/components-v1/select/Option.js +1 -1
  87. package/lib/components-v1/select/index.js +1 -1
  88. package/lib/components-v1/tabs/index.js +1 -1
  89. package/lib/components-v1/textarea/index.js +1 -1
  90. package/lib/components-v1/transition/index.js +1 -1
  91. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  92. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  93. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  94. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  95. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  96. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  97. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  98. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  99. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  100. package/lib/components-v1/userSelector/index.js +1 -1
  101. package/lib/index.js +14 -6
  102. package/lib/pages/appointment-demo/input/index.js +1 -1
  103. package/lib/pages/demo-free/index.css +0 -0
  104. package/lib/pages/demo-free/index.js +31 -0
  105. package/lib/pages/group-management/components/input-form/index.js +1 -1
  106. package/lib/pages/new-okr-list/init-cycle-setting.js +2 -4
  107. package/lib/pages/new-okr-list/request-api.js +57 -32
  108. package/lib/utils/auth.js +1 -1
  109. package/package.json +2 -1
  110. package/src/components/menus/export-modules/demo-menus/index.tsx +80 -0
  111. package/src/components/menus/export-modules/demo-menus/menu-highlight.ts +53 -0
  112. package/src/components/menus/export-modules/demo-menus/menus.tsx +136 -0
  113. package/src/components/menus/index.tsx +9 -5
  114. package/src/components/nav-top/constant.ts +24 -0
  115. package/src/components/nav-top/index.tsx +10 -9
  116. package/src/components/nav-top/request.apis.ts +5 -5
  117. package/src/components/nav-top/utils.ts +15 -2
  118. package/src/index.d.ts +1 -0
  119. package/src/index.js +2 -1
  120. package/src/pages/demo-free/index.tsx +15 -0
  121. package/yarn-error.log +0 -103
@@ -55,7 +55,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
55
55
 
56
56
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
57
57
 
58
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
58
+ 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); }
59
59
 
60
60
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
61
61
 
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ 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); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -37,7 +37,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
37
37
 
38
38
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
39
 
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ 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); }
41
41
 
42
42
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _reactRouter = require("react-router");
15
+
16
+ var _flipMenuCard = _interopRequireDefault(require("../../components/flip-menu-card"));
17
+
18
+ var _menuTree = _interopRequireDefault(require("../../components/menu-tree"));
19
+
20
+ var _scrollbar = _interopRequireDefault(require("../../../scrollbar"));
21
+
22
+ var _menus = _interopRequireWildcard(require("./menus"));
23
+
24
+ var _menuHighlight = _interopRequireDefault(require("./menu-highlight"));
25
+
26
+ var _precls = _interopRequireDefault(require("../../precls"));
27
+
28
+ var _getLocale = require("../../../../utils/getLocale");
29
+
30
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
+
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
+
34
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+
36
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
+
38
+ 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."); }
39
+
40
+ 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); }
41
+
42
+ 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; }
43
+
44
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
45
+
46
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
+
48
+ var DemoMenus = function DemoMenus(props) {
49
+ var _props$onSelect = props.onSelect,
50
+ onSelect = _props$onSelect === void 0 ? function () {} : _props$onSelect,
51
+ history = props.history;
52
+ console.log({
53
+ history: history
54
+ });
55
+ var menuRef = (0, _react.useRef)();
56
+ var okrMenusData = (0, _react.useRef)(_menus.defaultRefObject);
57
+
58
+ var _useState = (0, _react.useState)([]),
59
+ _useState2 = _slicedToArray(_useState, 2),
60
+ selectedMenuKeys = _useState2[0],
61
+ setSelectedMenuKeys = _useState2[1];
62
+
63
+ var _useState3 = (0, _react.useState)(function () {
64
+ okrMenusData.current = new _menus["default"]();
65
+ return okrMenusData.current.getMenus();
66
+ }),
67
+ _useState4 = _slicedToArray(_useState3, 1),
68
+ menus = _useState4[0];
69
+
70
+ var flipRef = (0, _react.useRef)({
71
+ next: function next() {},
72
+ goback: function goback() {}
73
+ });
74
+
75
+ var collapseMenu = function collapseMenu(isHide) {
76
+ if (isHide) {
77
+ menuRef.current.style.width = "0px";
78
+ } else {
79
+ menuRef.current.style.width = "";
80
+ }
81
+ }; // 判断路由高亮菜单
82
+
83
+
84
+ (0, _react.useEffect)(function () {
85
+ var menuHighlight = new _menuHighlight["default"](history);
86
+ menuHighlight.highlight(function (menu) {
87
+ return setSelectedMenuKeys([menu]);
88
+ });
89
+ }, [history.location.pathname, history.location.search]);
90
+
91
+ var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
92
+ var node = _ref.node;
93
+ onSelect(node); // 处理菜单选中
94
+
95
+ if (!selectedKyes.length) return;
96
+ setSelectedMenuKeys(selectedKyes);
97
+ };
98
+
99
+ return /*#__PURE__*/_react["default"].createElement("div", {
100
+ ref: menuRef,
101
+ className: (0, _classnames["default"])(_precls["default"], "".concat(_precls["default"], "-appraisal-menus"))
102
+ }, /*#__PURE__*/_react["default"].createElement(_flipMenuCard["default"], {
103
+ collapseMenu: collapseMenu,
104
+ ref: flipRef,
105
+ defaultWidth: _getLocale.isEn ? 210 : 180
106
+ }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
107
+ className: (0, _classnames["default"])("".concat(_precls["default"], "-appraisal-menus-tree"))
108
+ }, /*#__PURE__*/_react["default"].createElement(_scrollbar["default"], null, /*#__PURE__*/_react["default"].createElement(_menuTree["default"], {
109
+ data: menus,
110
+ selectedKeys: selectedMenuKeys,
111
+ onSelect: onSelectHandler
112
+ })))), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null)));
113
+ };
114
+
115
+ var _default = (0, _reactRouter.withRouter)(DemoMenus);
116
+
117
+ exports["default"] = _default;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _menus = require("./menus");
9
+
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+
12
+ 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, descriptor.key, descriptor); } }
13
+
14
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+
16
+ var _default = /*#__PURE__*/function () {
17
+ function _default(history) {
18
+ _classCallCheck(this, _default);
19
+
20
+ this.history = null;
21
+ this.history = history;
22
+ }
23
+
24
+ _createClass(_default, [{
25
+ key: "highlight",
26
+ value: function highlight(cb) {
27
+ if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);
28
+ }
29
+ }, {
30
+ key: "isUnAssigned",
31
+ value: function isUnAssigned() {
32
+ var _this$history$locatio = this.history.location,
33
+ pathname = _this$history$locatio.pathname,
34
+ search = _this$history$locatio.search;
35
+ return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
36
+ }
37
+ }, {
38
+ key: "isAssigned",
39
+ value: function isAssigned() {
40
+ var _this$history$locatio2 = this.history.location,
41
+ pathname = _this$history$locatio2.pathname,
42
+ search = _this$history$locatio2.search;
43
+ return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?assigned/);
44
+ }
45
+ }, {
46
+ key: "isReserved",
47
+ value: function isReserved() {
48
+ var _this$history$locatio3 = this.history.location,
49
+ pathname = _this$history$locatio3.pathname,
50
+ search = _this$history$locatio3.search;
51
+ return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?reserved/);
52
+ }
53
+ }, {
54
+ key: "isDone",
55
+ value: function isDone() {
56
+ var _this$history$locatio4 = this.history.location,
57
+ pathname = _this$history$locatio4.pathname,
58
+ search = _this$history$locatio4.search;
59
+ return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?done/);
60
+ }
61
+ }, {
62
+ key: "isIgnore",
63
+ value: function isIgnore() {
64
+ var _this$history$locatio5 = this.history.location,
65
+ pathname = _this$history$locatio5.pathname,
66
+ search = _this$history$locatio5.search;
67
+ return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?ignore/);
68
+ }
69
+ }]);
70
+
71
+ return _default;
72
+ }();
73
+
74
+ exports["default"] = _default;
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
7
+
8
+ var _index = require("../../components/menu-tree/tree-node/index");
9
+
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+
12
+ 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, descriptor.key, descriptor); } }
13
+
14
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+
16
+ var defaultRefObject = {
17
+ menus: [],
18
+ getMenus: function getMenus() {}
19
+ };
20
+ exports.defaultRefObject = defaultRefObject;
21
+ var PAGE_UNASSIGNED_DEMOFREE = "unassigned";
22
+ exports.PAGE_UNASSIGNED_DEMOFREE = PAGE_UNASSIGNED_DEMOFREE;
23
+ var PAGE_ASSIGNED_DEMOFREE = "assigned";
24
+ exports.PAGE_ASSIGNED_DEMOFREE = PAGE_ASSIGNED_DEMOFREE;
25
+ var PAGE_RESERVED_DEMOFREE = "reserved";
26
+ exports.PAGE_RESERVED_DEMOFREE = PAGE_RESERVED_DEMOFREE;
27
+ var PAGE_DONE_DEMOFREE = "done";
28
+ exports.PAGE_DONE_DEMOFREE = PAGE_DONE_DEMOFREE;
29
+ var PAGE_IGNORED_DEMOFREE = "ignore";
30
+ exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
31
+
32
+ var DemoMenuData = /*#__PURE__*/function () {
33
+ function DemoMenuData() {
34
+ _classCallCheck(this, DemoMenuData);
35
+
36
+ this.isManager = localStorage.getItem('DEMO_USER_IS_MANAGER') === '1';
37
+ this.menus = [{
38
+ icon: "kaohe",
39
+ label: "demofree",
40
+ key: 'demofree',
41
+ href: this.isManager ? "#/demofree/list?selected=unassigned" : "#/demofree/list?selected=assigned",
42
+ isShow: true,
43
+ children: [{
44
+ icon: "",
45
+ label: "未分配",
46
+ key: "unAssigned",
47
+ href: "#/demofree/list?selected=unassigned",
48
+ isShow: this.isManager
49
+ }, {
50
+ icon: "",
51
+ label: "已分配",
52
+ key: "assigned",
53
+ href: "#/demofree/list?selected=assigned",
54
+ isShow: true
55
+ }, {
56
+ icon: "",
57
+ label: "已预约",
58
+ key: "observed",
59
+ href: "#/demofree/list?selected=reserved",
60
+ isShow: true
61
+ }, {
62
+ icon: "",
63
+ label: "已完成",
64
+ key: "done",
65
+ href: "#/demofree/list?selected=done",
66
+ isShow: true
67
+ }, {
68
+ icon: "",
69
+ label: "已忽略",
70
+ key: "ignore",
71
+ href: "#/demofree/list?selected=ignore",
72
+ isShow: this.isManager
73
+ }]
74
+ } // {
75
+ // icon: "KH-help",
76
+ // label: "客户续费情况",
77
+ // key: "custom",
78
+ // href: "#/custom",
79
+ // isShow: true,
80
+ // type: MENU_ITEM_NOE,
81
+ // children:[{
82
+ // icon: "",
83
+ // label: "未处理",
84
+ // key: "ignore",
85
+ // href: "#/demofree/custom?selected=未处理",
86
+ // isShow: true,
87
+ // },{
88
+ // icon: "",
89
+ // label: "待定",
90
+ // key: "ignore",
91
+ // href: "#/demofree/custom?selected=待定",
92
+ // isShow: true,
93
+ // },{
94
+ // icon: "",
95
+ // label: "已续费",
96
+ // key: "ignore",
97
+ // href: "#/demofree/custom?selected=已续费",
98
+ // isShow: true,
99
+ // },{
100
+ // icon: "",
101
+ // label: "未续费",
102
+ // key: "ignore",
103
+ // href: "#/demofree/custom?selected=未续费",
104
+ // isShow: true,
105
+ // }]
106
+ // },
107
+ ];
108
+ }
109
+
110
+ _createClass(DemoMenuData, [{
111
+ key: "getMenus",
112
+ value: function getMenus() {
113
+ var menus = this.formateToTreeNodeData(this.menus);
114
+ return menus;
115
+ }
116
+ }, {
117
+ key: "formateToTreeNodeData",
118
+ value: function formateToTreeNodeData(menus) {
119
+ var pid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
120
+ var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
121
+ var treeNodes = [];
122
+
123
+ for (var i = 0; i < menus.length; i++) {
124
+ var menu = menus[i];
125
+ console.log(menu);
126
+ var hasChildren = !!(menu.children && menu.children.length);
127
+ console.log({
128
+ hasChildren: hasChildren,
129
+ name: menu.label
130
+ });
131
+ var isLeaf = menu.isLeaf !== undefined ? menu.isLeaf : !hasChildren;
132
+ var nodeType = menu.type;
133
+ if (!nodeType) nodeType = !isLeaf ? _index.PARENT_MENU_NODE : _index.SUB_MENU_ITEM_NOE;
134
+
135
+ if (menu.isShow) {
136
+ treeNodes.push({
137
+ key: "".concat(menu.key),
138
+ title: menu.label,
139
+ data: menu,
140
+ isLeaf: isLeaf,
141
+ children: this.formateToTreeNodeData(menu.children || [], level + 1, menu.key),
142
+ nodeType: nodeType
143
+ });
144
+ }
145
+ }
146
+
147
+ return treeNodes;
148
+ }
149
+ }]);
150
+
151
+ return DemoMenuData;
152
+ }();
153
+
154
+ exports["default"] = DemoMenuData;
@@ -17,6 +17,8 @@ var _manageMenus = _interopRequireDefault(require("./export-modules/manage-menus
17
17
 
18
18
  require("./index.css");
19
19
 
20
+ var _demoMenus = _interopRequireDefault(require("./export-modules/demo-menus"));
21
+
20
22
  var _excluded = ["type"];
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -44,6 +46,10 @@ function _default(props) {
44
46
  return /*#__PURE__*/_react["default"].createElement(_manageMenus["default"], restProps);
45
47
  }
46
48
 
49
+ if (type == 'demofree') {
50
+ return /*#__PURE__*/_react["default"].createElement(_demoMenus["default"], restProps);
51
+ }
52
+
47
53
  return undefined;
48
54
  };
49
55
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.userId = exports.tm = exports.popupAlignPhoto = exports.getVersionTextMap = exports.apiServer = void 0;
6
+ exports.userId = exports.tm = exports.popupAlignPhoto = exports.getVersionTextMap = exports.apiServer = exports.DEMO_FREE_MENU_CONFIG = void 0;
7
7
 
8
8
  var _getLocale = require("../../utils/getLocale");
9
9
 
@@ -35,4 +35,28 @@ var getVersionTextMap = function getVersionTextMap() {
35
35
  return _ref = {}, _defineProperty(_ref, _constant.Versions.Standard, (0, _getLocale.getLocale)("Sw_ProEdit")), _defineProperty(_ref, _constant.Versions.WeixinAssess, (0, _getLocale.getLocale)("Sw_PerEdit")), _defineProperty(_ref, _constant.Versions.Professional, (0, _getLocale.getLocale)("Sw_OKREdit")), _defineProperty(_ref, _constant.Versions.Flagship, (0, _getLocale.getLocale)("Sw_Flagship")), _ref;
36
36
  };
37
37
 
38
- exports.getVersionTextMap = getVersionTextMap;
38
+ exports.getVersionTextMap = getVersionTextMap;
39
+ var DEMO_FREE_MENU_CONFIG = {
40
+ DataSource: null,
41
+ appCode: null,
42
+ appId: 119,
43
+ children: [],
44
+ code: "",
45
+ color: "#F28D49",
46
+ defaultExpand: false,
47
+ domain: "",
48
+ groupId: 0,
49
+ href: "#demofree/list?selected=assigned",
50
+ iconName: "",
51
+ id: 99998,
52
+ labelName: null,
53
+ menuPoint: null,
54
+ orderId: 2000,
55
+ originUrl: null,
56
+ signUrl: '',
57
+ status: 0,
58
+ tenantId: 0,
59
+ title: "demofree",
60
+ type: "hash"
61
+ };
62
+ exports.DEMO_FREE_MENU_CONFIG = DEMO_FREE_MENU_CONFIG;
@@ -9,11 +9,20 @@ var _bsGlobal = require("../../utils/bs-global");
9
9
 
10
10
  var _logoWhite = _interopRequireDefault(require("./images/logo-white.png"));
11
11
 
12
+ var _constant = require("./constant");
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
14
16
  var getMenus = function getMenus() {
15
17
  // @ts-ignore
16
- var navs = BSGlobal.newNavigation;
18
+ var navs = BSGlobal.newNavigation; // @ts-ignore
19
+ // 352728 561583
20
+
21
+ if (BSGlobal.tenantInfo.Id === 352728) {
22
+ localStorage.getItem("DEMOFREE_LOGIN_USER") === '1' && (_constant.DEMO_FREE_MENU_CONFIG.href = '#demofree/list?selected=unassigned');
23
+ navs = navs.concat(_constant.DEMO_FREE_MENU_CONFIG);
24
+ }
25
+
17
26
  navs.sort(function (pre, next) {
18
27
  return pre.orderId - next.orderId;
19
28
  });
@@ -9,7 +9,7 @@ exports.OAuth = exports.KRAuth = exports.EAuth = exports.BaseAuth = void 0;
9
9
 
10
10
  var _bsGlobal = require("../../utils/bs-global");
11
11
 
12
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
13
 
14
14
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
15
 
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ 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); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
@@ -31,7 +31,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
31
31
 
32
32
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
33
 
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ 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); }
35
35
 
36
36
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
37
 
@@ -49,7 +49,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
49
49
 
50
50
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
51
51
 
52
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
52
+ 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); }
53
53
 
54
54
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
55
55
 
@@ -37,7 +37,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
37
37
 
38
38
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
39
 
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ 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); }
41
41
 
42
42
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
@@ -51,7 +51,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
51
51
 
52
52
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
53
53
 
54
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
54
+ 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); }
55
55
 
56
56
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
57
 
@@ -119,7 +119,7 @@ var ExportMapModal = function ExportMapModal(props) {
119
119
 
120
120
  canvas = document.createElement("canvas"); // 创建一个canvas节点
121
121
 
122
- scale = 20; // 定义任意放大倍数 支持小数
122
+ scale = 10; // 定义任意放大倍数 支持小数 设置成20之后企业微信工作台导出不了
123
123
 
124
124
  canvas.width = width * scale; // 定义canvas 宽度 * 缩放
125
125
 
@@ -94,13 +94,6 @@ function CreateCycle(_ref) {
94
94
  setCycleSetting = _useState4[1];
95
95
 
96
96
  (0, _react.useEffect)(function () {
97
- var settings = localStorage.getItem("OKR_CYCLE_SETTING");
98
-
99
- if (settings) {
100
- setCycleSetting(JSON.parse(settings));
101
- return;
102
- }
103
-
104
97
  var url = (0, _helper.getApiUrl)("okr/cycleSetting");
105
98
  (0, _helper.taker)(url, "GET").then(function (res) {
106
99
  if (res.Code == 1) {
@@ -65,7 +65,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
65
65
 
66
66
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
67
67
 
68
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
68
+ 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); }
69
69
 
70
70
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
71
71
 
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ 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); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
39
39
 
40
40
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
41
41
 
42
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
42
+ 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); }
43
43
 
44
44
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
45
 
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
25
 
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ 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); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ 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); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -43,7 +43,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
43
43
 
44
44
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
45
45
 
46
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
46
+ 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); }
47
47
 
48
48
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
49