@titaui/pc 1.6.25 → 1.6.29

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 (76) hide show
  1. package/lib/components/drawer/index.js +1 -1
  2. package/lib/components/dynamic/constant.js +30 -30
  3. package/lib/components/dynamic/dynamic-item/components/header/index.js +1 -1
  4. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +5 -7
  5. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  6. package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
  7. package/lib/components/dynamic/dynamic-liking/index.css +1 -0
  8. package/lib/components/dynamic/dynamic-list/index.js +2 -2
  9. package/lib/components/dynamic/dynamic-topping/index.css +1 -0
  10. package/lib/components/dynamic/dynamic.css +2 -2
  11. package/lib/components/dynamic/dynamic.js +3 -4
  12. package/lib/components/dynamic/new-ui.css +3 -3
  13. package/lib/components/help-card/index.css +3 -1
  14. package/lib/components/help-card/index.js +23 -8
  15. package/lib/components/help-card/request-api.js +2 -1
  16. package/lib/components/invite-people/index.css +3 -3
  17. package/lib/components/menus/components/flip-menu-card/index.css +39 -0
  18. package/lib/components/menus/components/flip-menu-card/index.js +31 -11
  19. package/lib/components/menus/components/menu-card/index.css +0 -18
  20. package/lib/components/menus/components/menu-card/index.js +6 -19
  21. package/lib/components/menus/components/menu-close-btn/index.js +2 -1
  22. package/lib/components/menus/components/menu-tree/index.css +2 -0
  23. package/lib/components/menus/components/menu-tree/index.js +3 -1
  24. package/lib/components/menus/components/menu-tree/tree-node/index.css +3 -3
  25. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +1 -1
  26. package/lib/components/menus/export-modules/appraisal-menus/index.js +35 -8
  27. package/lib/components/menus/export-modules/{depart-menus → okr-menus/depart-menus}/helper.js +0 -0
  28. package/lib/components/menus/export-modules/{depart-menus → okr-menus/depart-menus}/index.css +0 -0
  29. package/lib/components/menus/export-modules/{depart-menus → okr-menus/depart-menus}/index.js +16 -27
  30. package/lib/components/menus/export-modules/okr-menus/index.js +38 -25
  31. package/lib/components/menus/export-modules/{subordinate-menus → okr-menus/subordinate-menus}/helper.js +0 -0
  32. package/lib/components/menus/export-modules/{subordinate-menus → okr-menus/subordinate-menus}/index.js +7 -16
  33. package/lib/components/menus/index.js +2 -6
  34. package/lib/components/menus/request-apis.js +2 -3
  35. package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
  36. package/lib/components/nav-top/components/user-message/components/inform/index.js +2 -2
  37. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +90 -16
  38. package/lib/components/nav-top/components/user-message/components/remind/index.js +1 -1
  39. package/lib/components/nav-top/components/user-message/components/reply/index.js +2 -1
  40. package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +1 -1
  41. package/lib/components/nav-top/components/user-message/components/tab-title/index.css +1 -0
  42. package/lib/components/nav-top/components/user-message/components/tab-title/index.js +1 -1
  43. package/lib/components/nav-top/components/user-message/components/todos/index.js +1 -1
  44. package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +1 -1
  45. package/lib/components/nav-top/components/user-message/constant.js +25 -2
  46. package/lib/components/nav-top/components/user-message/index.js +4 -4
  47. package/lib/components/nav-top/components/user-message/utils.js +9 -3
  48. package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.css +1 -0
  49. package/lib/components/okr-filter-drawer/filter-form.js +1 -0
  50. package/lib/components/okrcase-library/new-ui.css +5 -2
  51. package/lib/components/photo-card/components/card/index.js +1 -1
  52. package/lib/components/photo-card/index.css +6 -0
  53. package/lib/components/photo-card/index.js +14 -9
  54. package/lib/components/scrollbar/index.css +3 -0
  55. package/lib/components/scrollbar/index.js +29 -0
  56. package/lib/components/scrollbar/simplebar/helpers.js +59 -0
  57. package/lib/components/scrollbar/simplebar/index.js +89 -0
  58. package/lib/components/scrollbar/simplebar/scrollbar-width.js +45 -0
  59. package/lib/components/scrollbar/simplebar/simplebar.js +852 -0
  60. package/lib/components/scrollbar/simplebar-react.js +163 -0
  61. package/lib/pages/aha2021/index.css +2 -2
  62. package/lib/pages/aha2021/index.js +5 -21
  63. package/lib/pages/like-ranking/index.js +6 -2
  64. package/lib/pages/like-ranking/new-ui.css +202 -0
  65. package/lib/pages/new-okr-list/header/comments.js +9 -2
  66. package/lib/pages/new-okr-list/header/create-okr.js +5 -0
  67. package/lib/pages/new-okr-list/header/filter.js +9 -3
  68. package/lib/pages/new-okr-list/header/index.css +8 -2
  69. package/lib/pages/new-okr-list/header/index.js +9 -1
  70. package/lib/pages/new-okr-list/index.js +49 -3
  71. package/lib/pages/new-okr-list/list/index.js +1 -2
  72. package/lib/pages/personal-info/components/base-info/index.css +5 -0
  73. package/lib/pages/personal-info/components/base-info/index.js +3 -1
  74. package/lib/pages/personal-info/index.css +1 -0
  75. package/package.json +1 -1
  76. package/lib/components/dynamic/components/condition-render/index.js +0 -20
@@ -13,6 +13,12 @@ var _reactRouter = require("react-router");
13
13
 
14
14
  var _moment = _interopRequireDefault(require("moment"));
15
15
 
16
+ var _popDownNotification = require("../../components/pop-down-notification");
17
+
18
+ var _okrcaseLibrary = _interopRequireDefault(require("../../components/okrcase-library"));
19
+
20
+ var _dialog = _interopRequireDefault(require("../../components/dialog"));
21
+
16
22
  var _bsGlobal = require("../../utils/bs-global");
17
23
 
18
24
  var _tools = require("../../utils/tools");
@@ -125,6 +131,12 @@ var NewOkrList = function NewOkrList(props) {
125
131
 
126
132
  var okrsRef = (0, _react.useRef)(okrs);
127
133
  var headerRef = (0, _react.useRef)();
134
+
135
+ var _useState13 = (0, _react.useState)(false),
136
+ _useState14 = _slicedToArray(_useState13, 2),
137
+ casesVisible = _useState14[0],
138
+ setCasesVisible = _useState14[1];
139
+
128
140
  var routerData = (0, _tools.getQueryString)();
129
141
  var departmentName = routerData.departmentName,
130
142
  departmentId = routerData.departmentId,
@@ -206,6 +218,18 @@ var NewOkrList = function NewOkrList(props) {
206
218
  headerRef && headerRef.current.openCreateModal();
207
219
  };
208
220
 
221
+ var handleCaseChoosed = function handleCaseChoosed(data) {
222
+ headerRef && headerRef.current.openCreateModal();
223
+ headerRef.current && headerRef.current.setCase(data);
224
+ setCasesVisible(false);
225
+
226
+ _popDownNotification.Toast.Success("成功套用");
227
+ };
228
+
229
+ var onCasesCloseHandler = function onCasesCloseHandler() {
230
+ return setCasesVisible(false);
231
+ };
232
+
209
233
  return /*#__PURE__*/_react["default"].createElement(_context.Context.Provider, {
210
234
  value: _objectSpread({
211
235
  OkrCommunicationPush: OkrCommunicationPush,
@@ -241,8 +265,10 @@ var NewOkrList = function NewOkrList(props) {
241
265
  openCreate: function openCreate() {
242
266
  return openCreateModal();
243
267
  },
244
- toUserId: toUserId,
245
- openCases: function openCases() {},
268
+ toUserId: toUserId || (0, _bsGlobal.getUserInfo)().Id,
269
+ openCases: function openCases() {
270
+ return setCasesVisible(true);
271
+ },
246
272
  relation: relation,
247
273
  cycle: {
248
274
  annualNum: query.annualNum,
@@ -251,7 +277,27 @@ var NewOkrList = function NewOkrList(props) {
251
277
  }
252
278
  })), /*#__PURE__*/_react["default"].createElement(_initCycleSetting["default"], {
253
279
  SetCycleModal: SetCycleModal
254
- })));
280
+ }), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
281
+ zIndex: 99999,
282
+ noHeadLine: true,
283
+ visible: casesVisible,
284
+ onClose: onCasesCloseHandler,
285
+ animation: "slide-fade-up",
286
+ noFooter: true,
287
+ noCloseIcon: true,
288
+ destroyOnClose: true,
289
+ style: {
290
+ width: "100%",
291
+ height: "100%"
292
+ },
293
+ maskClosable: true
294
+ }, /*#__PURE__*/_react["default"].createElement(_okrcaseLibrary["default"], {
295
+ onClose: function onClose() {
296
+ return setCasesVisible(false);
297
+ },
298
+ closeable: true,
299
+ onApplyTpl: handleCaseChoosed
300
+ }))));
255
301
  };
256
302
 
257
303
  var _default = (0, _reactRouter.withRouter)(NewOkrList);
@@ -36,8 +36,7 @@ var List = function List(props) {
36
36
  onpenCreateModalWithData: function onpenCreateModalWithData(data) {
37
37
  debugger; // createModalRef.current && createModalRef.current.setData(data);
38
38
  // setVisible(true);
39
- } // replaceOkr={replaceOkr}
40
- ,
39
+ },
41
40
  openCreateModal: openCreateModal,
42
41
  isShowPrincple: isShowPrincple,
43
42
  isShowPeriod: isShowPeriod
@@ -4,6 +4,7 @@
4
4
  border-radius: 12px;
5
5
  padding: 20px 32px;
6
6
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
7
+ height: 100%;
7
8
  }
8
9
 
9
10
  .titaui-personal-info-base-info__header {
@@ -34,3 +35,7 @@
34
35
  left: -8px;
35
36
  top: 3px;
36
37
  }
38
+
39
+ .titaui-personal-info-base-info__form {
40
+ width: 342px;
41
+ }
@@ -128,7 +128,9 @@ var BaseInfo = function BaseInfo() {
128
128
  text: "保存",
129
129
  disabled: isDisable,
130
130
  onClick: handleSaveInfo
131
- })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_form["default"], {
131
+ })), /*#__PURE__*/_react["default"].createElement("div", {
132
+ className: "".concat(prefix, "__form")
133
+ }, /*#__PURE__*/_react["default"].createElement(_form["default"], {
132
134
  ref: formRef
133
135
  }, /*#__PURE__*/_react["default"].createElement(_form.FormFields.Input, {
134
136
  name: "name",
@@ -1,3 +1,4 @@
1
1
  .titaui-personal-info {
2
2
  margin-top: 20px;
3
+ height: 100%;
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.6.25",
3
+ "version": "1.6.29",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var ConditionRender = function ConditionRender(_ref) {
9
- var condition = _ref.condition,
10
- children = _ref.children;
11
-
12
- if (!condition) {
13
- return null;
14
- }
15
-
16
- return children;
17
- };
18
-
19
- var _default = ConditionRender;
20
- exports["default"] = _default;