@titaui/pc 1.11.47 → 1.12.0-beta.1

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 (81) hide show
  1. package/lib/components/avatar/name-avatar/index.css +0 -1
  2. package/lib/components/avatar/name-avatar/index.js +13 -22
  3. package/lib/components/avatar/text-avatar/index.css +2 -2
  4. package/lib/components/avatar/text-avatar/index.js +6 -6
  5. package/lib/components/button/rect-btn/index.css +11 -45
  6. package/lib/components/button/rect-btn/index.js +6 -12
  7. package/lib/components/change-okr-modal/index.js +6 -7
  8. package/lib/components/checkbox/index.css +3 -3
  9. package/lib/components/create-okr-modal/index.js +41 -45
  10. package/lib/components/create-okr-modal/request-api.js +1 -1
  11. package/lib/components/dialog-confirm/index.css +2 -2
  12. package/lib/components/drawer/headerAction.js +1 -5
  13. package/lib/components/drawer/headerDrop.js +4 -42
  14. package/lib/components/drawer/index.css +0 -33
  15. package/lib/components/drawer/index.js +3 -26
  16. package/lib/components/dynamic/constant.js +33 -38
  17. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +10 -48
  18. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +2 -4
  19. package/lib/components/dynamic/new-ui.css +4 -4
  20. package/lib/components/dynamic/online-broadcast/data.js +1 -19
  21. package/lib/components/e-priority/index.css +4 -4
  22. package/lib/components/e-priority/index.js +2 -10
  23. package/lib/components/mblog/components/MblogContent.js +2 -5
  24. package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
  25. package/lib/components/nav-top/components/menu/index.css +0 -91
  26. package/lib/components/nav-top/components/menu/index.js +24 -72
  27. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -2
  28. package/lib/components/nav-top/components/user-message/components/todos/index.css +0 -1
  29. package/lib/components/nav-top/index.js +2 -6
  30. package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
  31. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
  32. package/lib/components/okr-detail/components/header/index.js +3 -10
  33. package/lib/components/okr-detail/components/header/o-name.js +3 -10
  34. package/lib/components/okr-detail/components/o-classify.js +1 -5
  35. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +16 -16
  36. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -10
  37. package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +54 -111
  38. package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
  39. package/lib/components/okr-detail/detail-header/index.css +0 -11
  40. package/lib/components/okr-detail/detail-header/index.js +234 -228
  41. package/lib/components/okr-detail/index.js +4 -21
  42. package/lib/components/okr-detail/okr-list/index.js +6 -13
  43. package/lib/components/okr-detail/request-apis.js +8 -14
  44. package/lib/components/okr-flow/child-node/index.css +1 -1
  45. package/lib/components/okr-flow/export-modal/index.js +3 -66
  46. package/lib/components/okr-period-selector/index.js +5 -9
  47. package/lib/components/okr-period-selector/select-cycle.js +19 -23
  48. package/lib/components/operation-records/index.js +1 -1
  49. package/lib/components/operation-records/style.js +1 -1
  50. package/lib/components/survey-model/index.js +0 -3
  51. package/lib/components/task-relation-modal/index.js +1 -0
  52. package/lib/components/task-relation-modal/request-api.js +1 -2
  53. package/lib/components/task-tree/index.js +7 -1
  54. package/lib/components/task-tree/mock.js +944 -0
  55. package/lib/components/task-tree/task-item-node/constant.js +22 -39
  56. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +8 -38
  57. package/lib/components/task-tree/task-item-node/e-task.js +24 -24
  58. package/lib/components/task-tree/task-item-node/index.css +18 -28
  59. package/lib/components/task-tree/task-tree.css +1 -1
  60. package/lib/components/time-picker/time-picker.js +102 -34
  61. package/lib/components/time-picker/timer-picker-input.js +6 -0
  62. package/lib/components/toast/index.js +3 -5
  63. package/lib/index.js +0 -40
  64. package/lib/pages/new-okr-list/header/index.css +0 -45
  65. package/lib/pages/new-okr-list/header/index.js +16 -40
  66. package/lib/pages/new-okr-list/index.js +2 -4
  67. package/lib/pages/new-okr-list/list/index.js +2 -19
  68. package/lib/pages/new-okr-list/request-api.js +2 -8
  69. package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
  70. package/lib/utils/format-time.js +1 -8
  71. package/lib/utils/open-data.js +1 -5
  72. package/package.json +1 -1
  73. package/lib/components/nav-top/components/menu/img/new.svg +0 -30
  74. package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
  75. package/lib/components/okr-detail/detail-header/constant.js +0 -53
  76. package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -59
  77. package/lib/components/okr-detail/helper.js +0 -108
  78. package/lib/components/textarea/index.css +0 -142
  79. package/lib/components/textarea/index.js +0 -259
  80. package/lib/pages/new-okr-list/header/common.js +0 -52
  81. package/lib/pages/new-okr-list/header/operate-record.js +0 -136
@@ -33,13 +33,13 @@
33
33
 
34
34
  .titaui-dialog-confirm__btn-cancel {
35
35
  background: #ffffff;
36
- border: 1px solid #dfe3ea !important;
36
+ border: 1px solid #dfe3ea;
37
37
  color: #6f7886;
38
38
  }
39
39
 
40
40
  .titaui-dialog-confirm__btn-cancel:hover {
41
41
  color: #2879ff;
42
- border: 1px solid #2879ff !important;
42
+ border: 1px solid #2879ff;
43
43
  }
44
44
 
45
45
  .titaui-dialog-confirm__btn-cancel-text {
@@ -49,9 +49,7 @@ function HeaderAction(_ref) {
49
49
  _onClick = _ref.onClick,
50
50
  className = _ref.className,
51
51
  title = _ref.title,
52
- children = _ref.children,
53
- approvalSetting = _ref.approvalSetting,
54
- detailInfo = _ref.detailInfo;
52
+ children = _ref.children;
55
53
 
56
54
  var _useState = (0, _react.useState)(false),
57
55
  _useState2 = _slicedToArray(_useState, 2),
@@ -101,8 +99,6 @@ function HeaderAction(_ref) {
101
99
  if (children && children.length > 0) {
102
100
  content = /*#__PURE__*/_react["default"].createElement(_headerDrop["default"], {
103
101
  visible: dropVisible,
104
- detailInfo: detailInfo,
105
- approvalSetting: approvalSetting,
106
102
  onVisibleChange: function onVisibleChange(visible) {
107
103
  active.current = visible;
108
104
  !visible && setDropVisible(false);
@@ -9,8 +9,6 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _helper = require("../okr-detail/helper");
13
-
14
12
  var _popup = _interopRequireDefault(require("../popup"));
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -46,9 +44,7 @@ var HeaderDropItem = function HeaderDropItem(_ref) {
46
44
  colorInDrop = _ref.colorInDrop,
47
45
  hoverColorInDrop = _ref.hoverColorInDrop,
48
46
  _onClick = _ref.onClick,
49
- onClose = _ref.onClose,
50
- approvalSetting = _ref.approvalSetting,
51
- detailInfo = _ref.detailInfo;
47
+ onClose = _ref.onClose;
52
48
 
53
49
  var _useState = (0, _react.useState)(false),
54
50
  _useState2 = _slicedToArray(_useState, 2),
@@ -56,37 +52,7 @@ var HeaderDropItem = function HeaderDropItem(_ref) {
56
52
  setHover = _useState2[1];
57
53
 
58
54
  var hasIcon = !!icon && typeof icon === "string";
59
- var applyState = detailInfo === null || detailInfo === void 0 ? void 0 : detailInfo.applyState;
60
- var OkrAndKrApprovalTypes = detailInfo === null || detailInfo === void 0 ? void 0 : detailInfo.OkrAndKrApprovalTypes;
61
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, icon === 'tu-icon-del' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (0, _helper.getApprovalOkr)(approvalSetting, 'deleteOkr', applyState, OkrAndKrApprovalTypes) ? /*#__PURE__*/_react["default"].createElement("div", {
62
- className: "header-drop-item",
63
- style: {
64
- color: hover ? hoverColorInDrop || hoverColor : colorInDrop || color
65
- },
66
- onClick: function onClick(e) {
67
- _onClick && _onClick(e);
68
- onClose(false);
69
- },
70
- onMouseOver: function onMouseOver() {
71
- return setHover(true);
72
- },
73
- onMouseOut: function onMouseOut() {
74
- return setHover(false);
75
- }
76
- }, hasIcon && /*#__PURE__*/_react["default"].createElement("div", {
77
- className: "header-drop-item-icon",
78
- style: {
79
- color: hover ? hoverIconColorInDrop || hoverColorInDrop || hoverColor : iconColorInDrop || colorInDrop || color
80
- }
81
- }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("span", {
82
- className: icon
83
- }) : icon), title) : /*#__PURE__*/_react["default"].createElement("div", {
84
- className: "header-drop-item-approval"
85
- }, hasIcon && /*#__PURE__*/_react["default"].createElement("div", {
86
- className: "header-drop-item-icon"
87
- }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("span", {
88
- className: icon
89
- }) : icon), title)) : /*#__PURE__*/_react["default"].createElement("div", {
55
+ return /*#__PURE__*/_react["default"].createElement("div", {
90
56
  className: "header-drop-item",
91
57
  style: {
92
58
  color: hover ? hoverColorInDrop || hoverColor : colorInDrop || color
@@ -108,23 +74,19 @@ var HeaderDropItem = function HeaderDropItem(_ref) {
108
74
  }
109
75
  }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("span", {
110
76
  className: icon
111
- }) : icon), title));
77
+ }) : icon), title);
112
78
  };
113
79
 
114
80
  var HeaderDrop = function HeaderDrop(_ref2) {
115
81
  var visible = _ref2.visible,
116
82
  onVisibleChange = _ref2.onVisibleChange,
117
83
  items = _ref2.items,
118
- children = _ref2.children,
119
- approvalSetting = _ref2.approvalSetting,
120
- detailInfo = _ref2.detailInfo;
84
+ children = _ref2.children;
121
85
  var renderDrop = (0, _react.useMemo)(function () {
122
86
  return /*#__PURE__*/_react["default"].createElement("div", {
123
87
  className: "titaui-drawer-header-action-drop-wrapper"
124
88
  }, items.map(function (item) {
125
89
  return /*#__PURE__*/_react["default"].createElement(HeaderDropItem, _extends({}, item, {
126
- detailInfo: detailInfo,
127
- approvalSetting: approvalSetting,
128
90
  onClose: function onClose() {
129
91
  return onVisibleChange(false);
130
92
  }
@@ -164,39 +164,6 @@
164
164
  background-repeat: no-repeat;
165
165
  }
166
166
 
167
- .titaui-drawer-header-action-drop-wrapper .header-drop-item-approval {
168
- height: 32px;
169
- display: flex;
170
- align-items: center;
171
- padding: 0 23px;
172
- cursor: pointer;
173
- color: #BFC7D5;
174
- }
175
-
176
- .titaui-drawer-header-action-drop-wrapper .header-drop-item-approval-icon {
177
- font-size: 18px;
178
- color: inherit;
179
- width: 18px;
180
- height: 18px;
181
- cursor: pointer;
182
- margin-right: 10px;
183
- background-size: contain;
184
- background-position: center center;
185
- background-repeat: no-repeat;
186
- }
187
-
188
- .titaui-drawer-header-action-drop-wrapper .header-drop-item-approval-icon > span {
189
- display: flex;
190
- align-items: center;
191
- justify-content: center;
192
- color: inherit;
193
- width: 18px;
194
- height: 18px;
195
- background-size: contain;
196
- background-position: center center;
197
- background-repeat: no-repeat;
198
- }
199
-
200
167
  .drawer-left .drawer-content-wrapper,
201
168
  .drawer-right .drawer-content-wrapper,
202
169
  .drawer-left .drawer-content,
@@ -25,9 +25,7 @@ require("./index.css");
25
25
 
26
26
  var _context = _interopRequireDefault(require("../drawer-manager/context"));
27
27
 
28
- var _dom = require("./utils/dom");
29
-
30
- var _excluded = ["visible", "placement", "children", "mask", "width", "className", "contentWrapperStyle", "onClose", "style", "afterVisibleChange", "destroyOnClose", "bodyStyle", "zIndex", "autoClosable"];
28
+ var _excluded = ["visible", "placement", "children", "mask", "width", "className", "contentWrapperStyle", "onClose", "style", "afterVisibleChange", "destroyOnClose", "bodyStyle", "zIndex"];
31
29
 
32
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
31
 
@@ -72,8 +70,6 @@ var Drawer = function Drawer(props) {
72
70
  bodyStyle = props.bodyStyle,
73
71
  _props$zIndex = props.zIndex,
74
72
  zIndex = _props$zIndex === void 0 ? 1200 : _props$zIndex,
75
- _props$autoClosable = props.autoClosable,
76
- autoClosable = _props$autoClosable === void 0 ? false : _props$autoClosable,
77
73
  rest = _objectWithoutProperties(props, _excluded);
78
74
 
79
75
  var handleAfterVisibleChange = (0, _react.useCallback)(function (opened) {
@@ -93,20 +89,6 @@ var Drawer = function Drawer(props) {
93
89
  return children;
94
90
  }
95
91
 
96
- var autoClose = function autoClose(e) {
97
- if ((0, _dom.hasAncestorElement)(e.target, 'document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add')) return;
98
- onClose();
99
- };
100
-
101
- (0, _react.useEffect)(function () {
102
- if (autoClosable) {
103
- document.addEventListener('mousedown', autoClose);
104
- }
105
-
106
- return function () {
107
- document.removeEventListener('mousedown', autoClose);
108
- };
109
- }, []);
110
92
  return /*#__PURE__*/_react["default"].createElement(DrawerContext.Provider, {
111
93
  value: {
112
94
  close: function close() {
@@ -141,10 +123,7 @@ function DrawerHeader(_ref) {
141
123
  content = _ref.content,
142
124
  style = _ref.style,
143
125
  onClose = _ref.onClose,
144
- actionComponent = _ref.actionComponent,
145
- onlyShowContent = _ref.onlyShowContent,
146
- approvalSetting = _ref.approvalSetting,
147
- detailInfo = _ref.detailInfo;
126
+ actionComponent = _ref.actionComponent;
148
127
  var drawer = (0, _react.useContext)(DrawerContext);
149
128
  var manager = (0, _react.useContext)(_context["default"]);
150
129
  var showClose = closable && (!!onClose || !!drawer);
@@ -173,11 +152,9 @@ function DrawerHeader(_ref) {
173
152
  style: {
174
153
  flex: 1
175
154
  }
176
- }), /*#__PURE__*/_react["default"].createElement("div", null, onlyShowContent), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
155
+ }), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
177
156
  return /*#__PURE__*/_react["default"].createElement(_headerAction["default"], action);
178
157
  }), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
179
- approvalSetting: approvalSetting,
180
- detailInfo: detailInfo,
181
158
  title: (0, _getLocale.getLocale)('Mod_MoreOperate'),
182
159
  icon: "tu-icon-10",
183
160
  children: collapsedActions
@@ -3,26 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getObjTypeMapText = exports.PlanReportType = exports.PlanReportTrackActionNameMap = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
6
+ exports.getObjTypeMapText = exports.PlanReportType = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
7
7
 
8
8
  var _getLocale = require("../../utils/getLocale");
9
9
 
10
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
 
12
12
  var OkrRiskMapping = {
13
- 0: "normal",
13
+ 0: 'normal',
14
14
  // 正常推进
15
- 1: "normal",
15
+ 1: 'normal',
16
16
  // 正常推进
17
- 2: "risk",
17
+ 2: 'risk',
18
18
  // 注意风险
19
- 3: "delay",
19
+ 3: 'delay',
20
20
  // 已有风险
21
- 4: "end",
21
+ 4: 'end',
22
22
  // kr及o全都完成
23
- 5: "delay",
23
+ 5: 'delay',
24
24
  // 延期完成
25
- 6: "normal" // 正常推进
25
+ 6: 'normal' // 正常推进
26
26
 
27
27
  };
28
28
  exports.OkrRiskMapping = OkrRiskMapping;
@@ -82,7 +82,7 @@ exports.EObjType = EObjType;
82
82
  var getObjTypeMapText = function getObjTypeMapText(key) {
83
83
  var _data;
84
84
 
85
- var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_data, EObjType.Report, "总结"), _data);
85
+ var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)('Menu_Title_Projects')), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)('Mod_Tasks')), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)('Mod_Objective')), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)('Mod_KeyResults')), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)('Pro_page_Plan_Milestone')), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)('Pro_page_V_Tab_Kanban')), _defineProperty(_data, EObjType.Report, '总结'), _data);
86
86
  return data[key];
87
87
  };
88
88
 
@@ -90,39 +90,34 @@ exports.getObjTypeMapText = getObjTypeMapText;
90
90
 
91
91
  var ObjectType = function ObjectType() {
92
92
  return {
93
- 1: (0, _getLocale.getLocale)("Mod_sannouncement"),
94
- 4: (0, _getLocale.getLocale)("Menu_Title_Projects"),
95
- 5: (0, _getLocale.getLocale)("Mod_sPerformanceForm"),
96
- 6: (0, _getLocale.getLocale)("Mod_sPerformanceGoals"),
97
- 7: (0, _getLocale.getLocale)("Mod_stasks"),
98
- 8: (0, _getLocale.getLocale)("Mod_sDailySummary"),
99
- 10: (0, _getLocale.getLocale)("Feed_sFeed"),
100
- 11: (0, _getLocale.getLocale)("Pro_page_Plan"),
101
- 12: (0, _getLocale.getLocale)("Feed_OperationTasks"),
102
- 62: (0, _getLocale.getLocale)("Mod_sobjective"),
103
- 65: (0, _getLocale.getLocale)("Feed_Keyresults"),
104
- 70: (0, _getLocale.getLocale)("OKR_MyO_KRP_Review"),
105
- 79: (0, _getLocale.getLocale)("Mod_skeyprogress"),
106
- 80: (0, _getLocale.getLocale)("Feed_sAnnouncement"),
107
- 42: (0, _getLocale.getLocale)("OKR_MyO_E_Reward")
93
+ 1: (0, _getLocale.getLocale)('Mod_sannouncement'),
94
+ 4: (0, _getLocale.getLocale)('Menu_Title_Projects'),
95
+ 5: (0, _getLocale.getLocale)('Mod_sPerformanceForm'),
96
+ 6: (0, _getLocale.getLocale)('Mod_sPerformanceGoals'),
97
+ 7: (0, _getLocale.getLocale)('Mod_stasks'),
98
+ 8: (0, _getLocale.getLocale)('Mod_sDailySummary'),
99
+ 10: (0, _getLocale.getLocale)('Feed_sFeed'),
100
+ 11: (0, _getLocale.getLocale)('Pro_page_Plan'),
101
+ 12: (0, _getLocale.getLocale)('Feed_OperationTasks'),
102
+ 62: (0, _getLocale.getLocale)('Mod_sobjective'),
103
+ 65: (0, _getLocale.getLocale)('Feed_Keyresults'),
104
+ 70: (0, _getLocale.getLocale)('OKR_MyO_KRP_Review'),
105
+ 79: (0, _getLocale.getLocale)('Mod_skeyprogress'),
106
+ 80: (0, _getLocale.getLocale)('Feed_sAnnouncement'),
107
+ 42: (0, _getLocale.getLocale)('OKR_MyO_E_Reward')
108
108
  };
109
109
  };
110
110
 
111
111
  exports.ObjectType = ObjectType;
112
112
  var EStatusStatus2ClassType = {
113
- 2: "tu-icon-finished",
114
- 1: "tu-icon-running",
115
- 4: "tu-icon-canceled",
116
- 3: "tu-icon-deferred",
117
- 6: "tu-icon-paused",
118
- 0: "tu-icon-notstart",
119
- 5: "tu-icon-jiantou-right"
113
+ 2: 'tu-icon-finished',
114
+ 1: 'tu-icon-running',
115
+ 4: 'tu-icon-canceled',
116
+ 3: 'tu-icon-deferred',
117
+ 6: 'tu-icon-paused',
118
+ 0: 'tu-icon-notstart',
119
+ 5: 'tu-icon-jiantou-right'
120
120
  };
121
121
  exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
122
- var PlanReportType = ["titaPlanReport", "titaPlanManagerReport"];
123
- exports.PlanReportType = PlanReportType;
124
- var PlanReportTrackActionNameMap = {
125
- titaPlanReport: "动态日报推送",
126
- titaPlanManagerReport: "动态日报推送-管理者"
127
- };
128
- exports.PlanReportTrackActionNameMap = PlanReportTrackActionNameMap;
122
+ var PlanReportType = ['titaPlanReport', 'titaPlanManagerReport'];
123
+ exports.PlanReportType = PlanReportType;
@@ -29,8 +29,6 @@ var _getLocale = require("../../../../utils/getLocale");
29
29
 
30
30
  var _context = require("../../context");
31
31
 
32
- var _constant = require("../../constant");
33
-
34
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
33
 
36
34
  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); }
@@ -63,13 +61,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
63
61
 
64
62
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
65
63
 
66
- var prefix = "titaui-dynamic-item";
64
+ var prefix = 'titaui-dynamic-item';
67
65
 
68
66
  var DynamicFooter = function DynamicFooter(_ref) {
69
67
  var _getBSGlobal;
70
68
 
71
- var data = _ref.data,
72
- dailyReportType = _ref.dailyReportType;
69
+ var data = _ref.data;
73
70
  var feedId = data.feedId,
74
71
  feedComments = data.feedComments,
75
72
  praiseType = data.praiseType,
@@ -98,9 +95,8 @@ var DynamicFooter = function DynamicFooter(_ref) {
98
95
  setUpvoteModalVisible = _useState8[1];
99
96
 
100
97
  var communicationRef = (0, _react.useRef)();
101
- var productName = _constant.PlanReportTrackActionNameMap[dailyReportType];
102
- var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)("WebHead")) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
103
- return item.AppId === "950";
98
+ var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
99
+ return item.AppId === '950';
104
100
  }));
105
101
 
106
102
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
@@ -112,18 +108,16 @@ var DynamicFooter = function DynamicFooter(_ref) {
112
108
  };
113
109
 
114
110
  var onChangeParse = function onChangeParse(type) {
115
- var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)("loginUserInfo"),
111
+ var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)('loginUserInfo'),
116
112
  Id = _getBSGlobal2.Id;
117
113
 
118
114
  var data = _toConsumableArray(praiseData).filter(function (item) {
119
115
  return Number("".concat(item.userId)) !== Number("".concat(Id));
120
116
  });
121
117
 
122
- var actionName = "";
123
-
124
118
  if (type) {
125
- var avatar = (0, _bsGlobal.getBSGlobal)("loginUserInfo").UserAvatar;
126
- var name = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Name;
119
+ var avatar = (0, _bsGlobal.getBSGlobal)('loginUserInfo').UserAvatar;
120
+ var name = (0, _bsGlobal.getBSGlobal)('loginUserInfo').Name;
127
121
  avatar.color = avatar.Color;
128
122
  avatar.medium = avatar.Medium;
129
123
  var parseUser = {
@@ -133,18 +127,8 @@ var DynamicFooter = function DynamicFooter(_ref) {
133
127
  praiseType: type
134
128
  };
135
129
  setPraiseData([parseUser].concat(_toConsumableArray(data)));
136
- actionName = "点赞";
137
130
  } else {
138
131
  setPraiseData(data);
139
- actionName = "取消点赞";
140
- }
141
-
142
- if (window.titaTracker) {
143
- window.titaTracker("action").record({
144
- actionName: actionName,
145
- actionGroup: "互动",
146
- productName: productName
147
- });
148
132
  }
149
133
  };
150
134
 
@@ -159,14 +143,6 @@ var DynamicFooter = function DynamicFooter(_ref) {
159
143
  };
160
144
 
161
145
  if (window.util) {
162
- if (window.titaTracker) {
163
- window.titaTracker("action").record({
164
- actionName: "打开打赏弹层",
165
- actionGroup: "互动",
166
- productName: productName
167
- });
168
- }
169
-
170
146
  window.util.rewardGetFile(function (myReward) {
171
147
  myReward.renderPayReward(data);
172
148
  });
@@ -175,25 +151,12 @@ var DynamicFooter = function DynamicFooter(_ref) {
175
151
 
176
152
  var renderUpvoteCount = function renderUpvoteCount(type, count) {
177
153
  if (count === 0) {
178
- return "";
154
+ return '';
179
155
  }
180
156
 
181
157
  return count || type;
182
158
  };
183
159
 
184
- var handleReply = function handleReply(_ref2) {
185
- var submitType = _ref2.submitType;
186
- var actionName = submitType === "delete" ? "删除评论" : "评论";
187
-
188
- if (window.titaTracker) {
189
- window.titaTracker("action").record({
190
- actionName: actionName,
191
- actionGroup: "互动",
192
- productName: productName
193
- });
194
- }
195
- };
196
-
197
160
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
198
161
  className: (0, _classnames["default"])("".concat(prefix, "__footer"))
199
162
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -226,7 +189,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
226
189
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
227
190
  condition: hasRewardBtn
228
191
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
229
- overlay: (0, _getLocale.getLocale)("Feed_Approval"),
192
+ overlay: (0, _getLocale.getLocale)('Feed_Approval'),
230
193
  align: {
231
194
  offset: [0, 0]
232
195
  },
@@ -236,7 +199,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
236
199
  className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
237
200
  }))), /*#__PURE__*/_react["default"].createElement("span", {
238
201
  onClick: handleCommentClick,
239
- className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
202
+ className: (0, _classnames["default"])('tu-icon-pinglun-m', "".concat(prefix, "__footer-icon"))
240
203
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
241
204
  condition: feedComments.total > 0
242
205
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -271,7 +234,6 @@ var DynamicFooter = function DynamicFooter(_ref) {
271
234
  usePropsComment: usePropsComment,
272
235
  communication: feedComments.comments,
273
236
  totalCommunicationNum: feedComments.total,
274
- onReplyChange: handleReply,
275
237
  showUser: true,
276
238
  showDefaultInput: true
277
239
  }))));
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
17
17
 
18
18
  function _extends() { _extends = Object.assign || 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); }
19
19
 
20
- var prefixCls = "titaui-dynamic-item";
20
+ var prefixCls = 'titaui-dynamic-item';
21
21
 
22
22
  var DynamicAIDialy = function DynamicAIDialy(_ref) {
23
23
  var data = _ref.data;
@@ -26,14 +26,12 @@ var DynamicAIDialy = function DynamicAIDialy(_ref) {
26
26
  return (0, _utils.getChartProps)(data.biId);
27
27
  }, [data.biId]);
28
28
 
29
- var type = chartQuery.type;
30
29
  return /*#__PURE__*/_react["default"].createElement("div", {
31
30
  className: prefixCls
32
31
  }, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], _extends({
33
32
  feedData: data
34
33
  }, chartQuery)), /*#__PURE__*/_react["default"].createElement(_dynamicFooter["default"], {
35
- data: data,
36
- dailyReportType: type
34
+ data: data
37
35
  }));
38
36
  };
39
37
 
@@ -129,7 +129,7 @@
129
129
  }
130
130
 
131
131
  .titaui-new-ui-dynamic__no-more-data::before {
132
- content: '';
132
+ content: "";
133
133
  display: inline-block;
134
134
  margin-right: 12px;
135
135
  width: 192px;
@@ -139,7 +139,7 @@
139
139
  }
140
140
 
141
141
  .titaui-new-ui-dynamic__no-more-data::after {
142
- content: '';
142
+ content: "";
143
143
  display: inline-block;
144
144
  margin-left: 12px;
145
145
  width: 192px;
@@ -150,8 +150,8 @@
150
150
 
151
151
  .titaui-new-ui-dynamic__go-to-top {
152
152
  position: fixed;
153
- bottom: 20px;
154
- right: 86px;
153
+ bottom: 128px;
154
+ right: 24px;
155
155
  display: flex;
156
156
  align-items: center;
157
157
  justify-content: center;
@@ -18,28 +18,10 @@ exports.onlineBroadcastData = exports["default"] = void 0;
18
18
  // href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
19
19
  // }
20
20
  var onlineBroadcastData = [{
21
- hasOnline: true,
22
- preContent: "「OKR」支持上级审批,管理更规范",
23
- preHref: "https://wiki.tita.com/x/F4SeAQ",
24
- isNew: true,
25
- date: "5/05"
26
- }, {
27
- hasOnline: true,
28
- preContent: "「考核」更多位置支持离职人员筛选啦",
29
- preHref: "https://wiki.tita.com/x/pwDQAQ",
30
- isNew: true,
31
- date: "4/29"
32
- }, {
33
- hasOnline: true,
34
- preContent: "「1 on 1」面谈全新上线",
35
- preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=27165723",
36
- isNew: true,
37
- date: "4/27"
38
- }, {
39
21
  hasOnline: true,
40
22
  preContent: "「考核」OKR 维度支持按 KR 评分啦",
41
23
  preHref: "https://wiki.tita.com/x/JYOeAQ",
42
- isNew: false,
24
+ isNew: true,
43
25
  date: "4/11"
44
26
  }, {
45
27
  hasOnline: true,
@@ -34,7 +34,7 @@
34
34
  vertical-align: top;
35
35
  }
36
36
 
37
- .tita-okrdt-tree__e-task-node-priority-label span {
37
+ .tita-okrdt-tree__e-task-node-priority > span {
38
38
  display: inline-block;
39
39
  vertical-align: text-bottom;
40
40
  height: 16px;
@@ -103,7 +103,7 @@
103
103
  vertical-align: top;
104
104
  }
105
105
 
106
- .tita-okrdt-tree__e-project-node-priority-label span {
106
+ .tita-okrdt-tree__e-project-node-priority > span {
107
107
  display: inline-block;
108
108
  vertical-align: text-bottom;
109
109
  height: 16px;
@@ -164,7 +164,7 @@
164
164
  vertical-align: top;
165
165
  }
166
166
 
167
- .tita-okrdt-tree__e-task-level2-node-priority-label span {
167
+ .tita-okrdt-tree__e-task-level2-node-priority > span {
168
168
  display: inline-block;
169
169
  vertical-align: text-bottom;
170
170
  height: 16px;
@@ -194,7 +194,7 @@
194
194
  .tita-okrdt-tree__e-empty-node {
195
195
  font-size: 12px;
196
196
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
197
- color: #f6bd16;
197
+ color: #F6BD16;
198
198
  line-height: 18px;
199
199
  padding-left: 12px;
200
200
  }
@@ -11,14 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _titaUi = require("tita-ui");
15
-
16
14
  var _dropSelector = _interopRequireDefault(require("../drop-selector"));
17
15
 
18
16
  var _getLocale = require("../../utils/getLocale");
19
17
 
20
- var _constant = require("../task-tree/task-item-node/constant");
21
-
22
18
  require("./index.css");
23
19
 
24
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -68,13 +64,9 @@ var EPriority = function EPriority(props) {
68
64
  checked: level,
69
65
  canEdit: hasAuth && status !== '5',
70
66
  limitHeight: false,
71
- trigger: /*#__PURE__*/_react["default"].createElement("div", {
72
- className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-label"))
73
- }, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
74
- content: (0, _constant.getPriorityTextMapping)()[level]
75
- }, /*#__PURE__*/_react["default"].createElement("span", {
67
+ trigger: /*#__PURE__*/_react["default"].createElement("span", {
76
68
  className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p").concat(level))
77
- })))
69
+ })
78
70
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
79
71
  name: "1"
80
72
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -208,16 +208,14 @@ var MblogContent = /*#__PURE__*/function (_PureComponent) {
208
208
  style: {
209
209
  opacity: isFocus ? "0.8" : "1"
210
210
  }
211
- }, placeholderText)), /*#__PURE__*/_react["default"].createElement(_style.TextareaWrapper, {
212
- className: "textarea-wrap"
213
- }, /*#__PURE__*/_react["default"].createElement(_style.Textarea, {
211
+ }, placeholderText)), /*#__PURE__*/_react["default"].createElement(_style.TextareaWrapper, null, /*#__PURE__*/_react["default"].createElement(_style.Textarea, {
214
212
  ref: "textareaSetHeight",
215
213
  value: textareaValue,
216
214
  onChange: function onChange() {},
217
215
  className: "textarea-setheight"
218
216
  }), /*#__PURE__*/_react["default"].createElement(_style.Textarea, {
219
217
  ref: "textareaInput",
220
- className: "textarea-details ".concat(visibility === 1 ? "" : "private__bg"),
218
+ className: "".concat(visibility === 1 ? "" : "private__bg"),
221
219
  value: textareaValue,
222
220
  onFocus: this._handlerFocus,
223
221
  onBlur: this._handlerBlur,
@@ -226,7 +224,6 @@ var MblogContent = /*#__PURE__*/function (_PureComponent) {
226
224
  onPaste: this._handlerPaste,
227
225
  onChange: this._handleInputChange
228
226
  })), /*#__PURE__*/_react["default"].createElement(_style.Tips, {
229
- className: "textarea-tips",
230
227
  onMouseDown: this._handlerTipsLabelClick,
231
228
  color: maxLength && textareaValueLen > maxLength ? "#EB4447" : textareaValueLen > 0 ? "#2879ff" : "#BFC3C7"
232
229
  }, textareaValueLen, "/", maxLength));