@titaui/pc 1.12.13 → 1.12.16

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 (95) hide show
  1. package/lib/components/communication/index.js +6 -0
  2. package/lib/components/drawer/index.css +9 -0
  3. package/lib/components/drawer/index.js +11 -8
  4. package/lib/components/dynamic/dynamic-item/index.js +9 -1
  5. package/lib/components/dynamic/dynamic-list/index.js +19 -2
  6. package/lib/components/form/form-fields/date/index.js +13 -13
  7. package/lib/components/help-card/image/liaojie1.svg +50 -0
  8. package/lib/components/help-card/index.css +4 -4
  9. package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
  10. package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
  11. package/lib/components/menus/export-modules/appraisal-menus/menus.js +110 -9
  12. package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
  13. package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
  14. package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
  15. package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
  16. package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
  17. package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
  18. package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
  19. package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
  20. package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
  21. package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
  22. package/lib/components/nav-top/components/app-center/images/yuyue.png +0 -0
  23. package/lib/components/nav-top/components/app-center/index.css +170 -0
  24. package/lib/components/nav-top/components/app-center/index.js +211 -0
  25. package/lib/components/nav-top/components/app-center/interface.js +19 -0
  26. package/lib/components/nav-top/components/menu/index.js +2 -6
  27. package/lib/components/nav-top/components/user-message/images/bell-1.svg +13 -0
  28. package/lib/components/nav-top/components/user-message/index.js +21 -21
  29. package/lib/components/nav-top/images/app-center.png +0 -0
  30. package/lib/components/nav-top/images/home.svg +16 -0
  31. package/lib/components/nav-top/index.css +61 -8
  32. package/lib/components/nav-top/index.js +56 -35
  33. package/lib/components/nav-top/utils.js +464 -1
  34. package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
  35. package/lib/components/okr-flow/export-modal/color.png +0 -0
  36. package/lib/components/okr-flow/export-modal/index.css +28 -13
  37. package/lib/components/okr-flow/export-modal/index.js +82 -34
  38. package/lib/components/okr-flow/export-modal/trans1.png +0 -0
  39. package/lib/components/order-have-award/img/award.png +0 -0
  40. package/lib/components/order-have-award/index.css +5 -0
  41. package/lib/components/order-have-award/index.js +83 -0
  42. package/lib/components/order-have-award/interface.js +19 -0
  43. package/lib/components/period-selector/components/button/style.js +1 -1
  44. package/lib/components/period-selector/index.css +1 -0
  45. package/lib/components/period-selector/index.js +7 -2
  46. package/lib/components/picker/components/panels/date-panel/date-body.js +19 -31
  47. package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
  48. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  49. package/lib/components/picker/components/panels/month-panel/index.css +0 -5
  50. package/lib/components/picker/components/panels/month-panel/index.js +2 -2
  51. package/lib/components/picker/components/panels/month-panel/month-body.js +5 -4
  52. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  53. package/lib/components/picker/components/panels/year-panel/index.css +0 -5
  54. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  55. package/lib/components/picker/components/panels/year-panel/year-body.js +3 -10
  56. package/lib/components/picker/components/picker-trigger/index.css +1 -6
  57. package/lib/components/picker/components/picker-trigger/index.js +11 -16
  58. package/lib/components/picker/context.js +2 -17
  59. package/lib/components/picker/index.css +1 -29
  60. package/lib/components/picker/index.js +0 -3
  61. package/lib/components/picker/picker-panels.js +64 -79
  62. package/lib/components/picker/picker.js +30 -44
  63. package/lib/components/picker/utils.js +11 -168
  64. package/lib/components/select-layer/index.js +22 -8
  65. package/lib/components/task-relation-modal/helper.js +1 -56
  66. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
  67. package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
  68. package/lib/components/task-relation-modal/request-api.js +5 -2
  69. package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
  70. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
  71. package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
  72. package/lib/components/tooltip/tooltip.js +9 -4
  73. package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
  74. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
  75. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
  76. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
  77. package/lib/components/user-selector/request-apis.js +39 -9
  78. package/lib/components/user-selector/searched-panel/index.js +7 -1
  79. package/lib/pages/aha2021/index.css +7 -0
  80. package/lib/pages/aha2021/index.js +14 -8
  81. package/lib/pages/aha2021/new-menu-switcher/index.css +44 -0
  82. package/lib/pages/aha2021/new-menu-switcher/index.js +85 -0
  83. package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
  84. package/lib/pages/aha2021/request-api.js +15 -0
  85. package/lib/pages/okr-map/level2-search/user.js +1 -0
  86. package/package.json +1 -1
  87. package/lib/components/picker/components/cross.svg +0 -17
  88. package/lib/components/picker/range-picker/components/picker-trigger/index.css +0 -97
  89. package/lib/components/picker/range-picker/components/picker-trigger/index.js +0 -109
  90. package/lib/components/picker/range-picker/components/placeholder/index.js +0 -91
  91. package/lib/components/picker/range-picker/components/select-input/index.js +0 -72
  92. package/lib/components/picker/range-picker/components/shortcuts/index.js +0 -45
  93. package/lib/components/picker/range-picker/index.css +0 -158
  94. package/lib/components/picker/range-picker/index.js +0 -263
  95. package/lib/utils/planDataJson.js +0 -11115
@@ -17,7 +17,470 @@ var getMenus = function getMenus() {
17
17
  navs.sort(function (pre, next) {
18
18
  return pre.orderId - next.orderId;
19
19
  });
20
- return navs;
20
+ return navs; // const newNavigation = [
21
+ // {
22
+ // id: 21817,
23
+ // tenantId: 0,
24
+ // title: "发现",
25
+ // href: "#dynamic",
26
+ // iconName: "",
27
+ // type: "hash",
28
+ // orderId: 1,
29
+ // code: "dynamic",
30
+ // appId: 119,
31
+ // appCode: null,
32
+ // status: 0,
33
+ // groupId: 0,
34
+ // signUrl: null,
35
+ // domain: "",
36
+ // labelName: null,
37
+ // DataSource: null,
38
+ // defaultExpand: false,
39
+ // menuPoint: null,
40
+ // },
41
+ // {
42
+ // id: 21818,
43
+ // tenantId: 0,
44
+ // title: "OKR",
45
+ // href: "#okr/manage?relation=1",
46
+ // iconName: "okr",
47
+ // type: "hash",
48
+ // orderId: 2,
49
+ // code: "okr",
50
+ // appId: 113,
51
+ // appCode: null,
52
+ // status: 0,
53
+ // groupId: 0,
54
+ // signUrl: null,
55
+ // domain: "",
56
+ // labelName: null,
57
+ // DataSource: null,
58
+ // defaultExpand: false,
59
+ // subTitle: "目标对齐、复盘、案例库",
60
+ // children: [
61
+ // {
62
+ // id: 21001,
63
+ // tenantId: 0,
64
+ // title: "OKR",
65
+ // href: "#okr/manage?relation=1",
66
+ // iconName: "",
67
+ // type: "hash",
68
+ // orderId: 3,
69
+ // code: "",
70
+ // appId: 666,
71
+ // appCode: null,
72
+ // status: 0,
73
+ // groupId: 0,
74
+ // signUrl: null,
75
+ // domain: "",
76
+ // labelName: null,
77
+ // DataSource: null,
78
+ // defaultExpand: false,
79
+ // children: [
80
+ // ],
81
+ // menuPoint: null,
82
+ // }, {
83
+ // id: 21002,
84
+ // tenantId: 0,
85
+ // title: "对齐",
86
+ // href: "#okr/map",
87
+ // iconName: "",
88
+ // type: "hash",
89
+ // orderId: 3,
90
+ // code: "",
91
+ // appId: 666,
92
+ // appCode: null,
93
+ // status: 0,
94
+ // groupId: 0,
95
+ // signUrl: null,
96
+ // domain: "",
97
+ // labelName: null,
98
+ // DataSource: null,
99
+ // defaultExpand: false,
100
+ // children: [
101
+ // ],
102
+ // menuPoint: null,
103
+ // }, {
104
+ // id: 21003,
105
+ // tenantId: 0,
106
+ // title: "工作法",
107
+ // href: "#okr/panel",
108
+ // iconName: "",
109
+ // type: "hash",
110
+ // orderId: 3,
111
+ // code: "",
112
+ // appId: 666,
113
+ // appCode: null,
114
+ // status: 0,
115
+ // groupId: 0,
116
+ // signUrl: null,
117
+ // domain: "",
118
+ // labelName: null,
119
+ // DataSource: null,
120
+ // defaultExpand: false,
121
+ // children: [
122
+ // ],
123
+ // menuPoint: null,
124
+ // }, {
125
+ // id: 21004,
126
+ // tenantId: 0,
127
+ // title: "仪表盘",
128
+ // href: "#okr/chart",
129
+ // iconName: "",
130
+ // type: "hash",
131
+ // orderId: 3,
132
+ // code: "",
133
+ // appId: 666,
134
+ // appCode: null,
135
+ // status: 0,
136
+ // groupId: 0,
137
+ // signUrl: null,
138
+ // domain: "",
139
+ // labelName: null,
140
+ // DataSource: null,
141
+ // defaultExpand: false,
142
+ // children: [
143
+ // ],
144
+ // menuPoint: null,
145
+ // },
146
+ // ],
147
+ // menuPoint: null,
148
+ // },
149
+ // {
150
+ // id: 21819,
151
+ // tenantId: 0,
152
+ // title: "绩效考核",
153
+ // href: "#performance",
154
+ // iconName: "performance",
155
+ // type: "hash",
156
+ // orderId: 3,
157
+ // code: "performance",
158
+ // appId: 666,
159
+ // appCode: null,
160
+ // status: 0,
161
+ // groupId: 0,
162
+ // signUrl: null,
163
+ // domain: "",
164
+ // labelName: null,
165
+ // DataSource: null,
166
+ // defaultExpand: false,
167
+ // subTitle: "KPI/价值观/OKR 全场景考核",
168
+ // children: [
169
+ // {
170
+ // id: 22001,
171
+ // tenantId: 0,
172
+ // title: "我的考核",
173
+ // href: "#performance/my",
174
+ // iconName: "",
175
+ // type: "hash",
176
+ // orderId: 3,
177
+ // code: "",
178
+ // appId: 666,
179
+ // appCode: null,
180
+ // status: 0,
181
+ // groupId: 0,
182
+ // signUrl: null,
183
+ // domain: "",
184
+ // labelName: null,
185
+ // DataSource: null,
186
+ // defaultExpand: false,
187
+ // children: [
188
+ // ],
189
+ // menuPoint: null,
190
+ // }, {
191
+ // id: 22002,
192
+ // tenantId: 0,
193
+ // title: "考核管理",
194
+ // href: "#performance/manage",
195
+ // iconName: "",
196
+ // type: "hash",
197
+ // orderId: 3,
198
+ // code: "",
199
+ // appId: 666,
200
+ // appCode: null,
201
+ // status: 0,
202
+ // groupId: 0,
203
+ // signUrl: null,
204
+ // domain: "",
205
+ // labelName: null,
206
+ // DataSource: null,
207
+ // defaultExpand: false,
208
+ // children: [
209
+ // ],
210
+ // menuPoint: null,
211
+ // }, {
212
+ // id: 22003,
213
+ // tenantId: 0,
214
+ // title: "仪表盘",
215
+ // href: "#performance/dashboard",
216
+ // iconName: "",
217
+ // type: "hash",
218
+ // orderId: 3,
219
+ // code: "",
220
+ // appId: 666,
221
+ // appCode: null,
222
+ // status: 0,
223
+ // groupId: 0,
224
+ // signUrl: null,
225
+ // domain: "",
226
+ // labelName: null,
227
+ // DataSource: null,
228
+ // defaultExpand: false,
229
+ // children: [
230
+ // ],
231
+ // menuPoint: null,
232
+ // },
233
+ // ],
234
+ // menuPoint: null,
235
+ // },
236
+ // {
237
+ // id: 21820,
238
+ // tenantId: 0,
239
+ // title: "项目",
240
+ // href: "#work",
241
+ // iconName: "project",
242
+ // type: "hash",
243
+ // orderId: 4,
244
+ // code: "work",
245
+ // appId: 112,
246
+ // appCode: null,
247
+ // status: 0,
248
+ // groupId: 0,
249
+ // signUrl: null,
250
+ // domain: "",
251
+ // labelName: null,
252
+ // DataSource: null,
253
+ // defaultExpand: false,
254
+ // subTitle: "里程碑、甘特图、看板灵活管理",
255
+ // children: [
256
+ // {
257
+ // id: 21820,
258
+ // tenantId: 0,
259
+ // title: "项目",
260
+ // href: "#work",
261
+ // iconName: "project",
262
+ // type: "hash",
263
+ // orderId: 4,
264
+ // code: "",
265
+ // appId: 112,
266
+ // appCode: null,
267
+ // status: 0,
268
+ // groupId: 0,
269
+ // signUrl: null,
270
+ // domain: "",
271
+ // labelName: null,
272
+ // DataSource: null,
273
+ // defaultExpand: false,
274
+ // children: [
275
+ // ],
276
+ // menuPoint: null,
277
+ // },
278
+ // ],
279
+ // menuPoint: null,
280
+ // },
281
+ // {
282
+ // id: 21823,
283
+ // tenantId: 0,
284
+ // title: "计划表",
285
+ // href: "#plan",
286
+ // iconName: "plan",
287
+ // type: "hash",
288
+ // orderId: 5,
289
+ // code: "plan",
290
+ // appId: 116,
291
+ // appCode: null,
292
+ // status: 0,
293
+ // groupId: 0,
294
+ // signUrl: null,
295
+ // domain: "",
296
+ // labelName: null,
297
+ // DataSource: null,
298
+ // defaultExpand: false,
299
+ // subTitle: "按日周月追踪工作任务",
300
+ // children: [
301
+ // {
302
+ // id: 21823,
303
+ // tenantId: 0,
304
+ // title: "计划表",
305
+ // href: "#plan",
306
+ // iconName: "plan",
307
+ // type: "hash",
308
+ // orderId: 5,
309
+ // code: "",
310
+ // appId: 116,
311
+ // appCode: null,
312
+ // status: 0,
313
+ // groupId: 0,
314
+ // signUrl: null,
315
+ // domain: "",
316
+ // labelName: null,
317
+ // DataSource: null,
318
+ // defaultExpand: false,
319
+ // children: [
320
+ // ],
321
+ // menuPoint: null,
322
+ // key: "plan",
323
+ // },
324
+ // ],
325
+ // menuPoint: null,
326
+ // },
327
+ // {
328
+ // id: 21821,
329
+ // tenantId: 0,
330
+ // title: "总结",
331
+ // href: "#daily",
332
+ // iconName: "summary",
333
+ // type: "hash",
334
+ // orderId: 6,
335
+ // code: "",
336
+ // appId: 115,
337
+ // appCode: null,
338
+ // status: 0,
339
+ // groupId: 0,
340
+ // signUrl: null,
341
+ // domain: "",
342
+ // labelName: null,
343
+ // DataSource: null,
344
+ // defaultExpand: false,
345
+ // subTitle: "日报/周报/月报",
346
+ // children: [
347
+ // {
348
+ // id: 21821,
349
+ // tenantId: 0,
350
+ // title: "总结",
351
+ // href: "#daily",
352
+ // iconName: "summary",
353
+ // type: "hash",
354
+ // orderId: 6,
355
+ // code: "",
356
+ // appId: 115,
357
+ // appCode: null,
358
+ // status: 0,
359
+ // groupId: 0,
360
+ // signUrl: null,
361
+ // domain: "",
362
+ // labelName: null,
363
+ // DataSource: null,
364
+ // defaultExpand: false,
365
+ // children: [
366
+ // ],
367
+ // menuPoint: null,
368
+ // key: "summary",
369
+ // },
370
+ // ],
371
+ // menuPoint: null,
372
+ // key: "daily",
373
+ // },
374
+ // {
375
+ // id: 21822,
376
+ // tenantId: 0,
377
+ // title: "报表",
378
+ // href: "#report",
379
+ // iconName: "chart",
380
+ // type: "hash",
381
+ // orderId: 7,
382
+ // code: "",
383
+ // appId: 118,
384
+ // appCode: null,
385
+ // status: 0,
386
+ // groupId: 0,
387
+ // signUrl: null,
388
+ // domain: "",
389
+ // labelName: null,
390
+ // DataSource: null,
391
+ // defaultExpand: false,
392
+ // subTitle: "查看与导出全员数据",
393
+ // children: [
394
+ // {
395
+ // id: 21822,
396
+ // tenantId: 0,
397
+ // title: "报表",
398
+ // href: "#report",
399
+ // iconName: "chart",
400
+ // type: "hash",
401
+ // orderId: 7,
402
+ // code: "",
403
+ // appId: 118,
404
+ // appCode: null,
405
+ // status: 0,
406
+ // groupId: 0,
407
+ // signUrl: null,
408
+ // domain: "",
409
+ // labelName: null,
410
+ // DataSource: null,
411
+ // defaultExpand: false,
412
+ // children: [
413
+ // ],
414
+ // menuPoint: null,
415
+ // key: "report",
416
+ // },
417
+ // ],
418
+ // menuPoint: null,
419
+ // key: "report",
420
+ // },
421
+ // {
422
+ // id: 21831,
423
+ // tenantId: 0,
424
+ // title: "Learning",
425
+ // href: "500000126/eLearningHome#learning",
426
+ // iconName: "learning",
427
+ // type: "page",
428
+ // orderId: 8,
429
+ // code: "",
430
+ // appId: 120,
431
+ // appCode: null,
432
+ // status: 0,
433
+ // groupId: 0,
434
+ // signUrl: null,
435
+ // domain: "",
436
+ // labelName: null,
437
+ // DataSource: null,
438
+ // defaultExpand: false,
439
+ // subTitle: "OKR 和 Tita 使用学习中心",
440
+ // children: [
441
+ // ],
442
+ // menuPoint: null,
443
+ // key: "learning",
444
+ // },
445
+ // {
446
+ // appId: 101,
447
+ // children: [{
448
+ // id: 21831,
449
+ // tenantId: 0,
450
+ // title: "我的面谈",
451
+ // href: "#/interview",
452
+ // iconName: "learning",
453
+ // type: "hash",
454
+ // orderId: 8,
455
+ // code: "",
456
+ // appId: 120,
457
+ // appCode: null,
458
+ // status: 0,
459
+ // groupId: 0,
460
+ // signUrl: null,
461
+ // domain: "",
462
+ // labelName: null,
463
+ // DataSource: null,
464
+ // defaultExpand: false,
465
+ // children: [
466
+ // ],
467
+ // menuPoint: null,
468
+ // key: "learning",
469
+ // }],
470
+ // code: "interview",
471
+ // domain: "",
472
+ // href: "#/interview",
473
+ // iconName: "interview",
474
+ // id: 22827,
475
+ // menuPoint: null,
476
+ // orderId: 9,
477
+ // signUrl: null,
478
+ // tenantId: 0,
479
+ // title: "1 on 1",
480
+ // key: "interview",
481
+ // },
482
+ // ];
483
+ // return newNavigation;
21
484
  };
22
485
 
23
486
  exports.getMenus = getMenus;
@@ -157,6 +157,12 @@ function OAvatar(props) {
157
157
  onConfirm: confirmHandler
158
158
  }, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
159
159
  multiple: false,
160
+ panes: {
161
+ depart: true,
162
+ group: false,
163
+ subordinate: false
164
+ },
165
+ searchUserOnly: true,
160
166
  selectNodes: {},
161
167
  onSelect: onEditUserHandler,
162
168
  position: "bottomLeft",
@@ -15,28 +15,43 @@
15
15
  display: flex;
16
16
  align-items: center;
17
17
  padding: 0 32px 10px;
18
- color: #89919F;
19
18
  }
20
19
 
21
- .export-map-modal__color-trigger {
22
- border-radius: 4px;
23
- display: inline-block;
24
- width: 30px;
20
+ .export-map-modal__setting-color {
25
21
  height: 30px;
22
+ display: flex;
23
+ align-items: center;
24
+ padding: 0 12px;
25
+ background: #FFFFFF;
26
+ border-radius: 16px;
27
+ border: 1px solid #E9ECF0;
28
+ font-size: 14px;
29
+ font-weight: 400;
30
+ color: #141C28;
31
+ margin-right: 12px;
32
+ }
33
+
34
+ .export-map-modal__setting-color:hover {
35
+ border: 1px solid #2879ff;
36
+ }
37
+
38
+ .export-map-modal__setting-color-trigger {
39
+ cursor: pointer;
40
+ width: 20px;
41
+ height: 20px;
26
42
  background: url("./color.png") no-repeat;
27
43
  background-size: cover;
28
- cursor: pointer;
44
+ border-radius: 16px;
45
+ margin-right: 4px;
29
46
  }
30
47
 
31
- .export-map-modal__color-trans {
32
- border-radius: 4px;
33
- display: inline-block;
34
- width: 30px;
35
- height: 30px;
48
+ .export-map-modal__setting-color-trans {
49
+ cursor: pointer;
50
+ width: 20px;
51
+ height: 20px;
36
52
  background: url("./trans1.png") no-repeat;
37
53
  background-size: cover;
38
- margin-left: 10px;
39
- cursor: pointer;
54
+ border-radius: 16px;
40
55
  }
41
56
 
42
57
  .export-map-modal .titaui-color-picker {