@titaui/pc 1.10.7 → 1.10.8-2.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 (299) hide show
  1. package/.eslintrc.js +2 -2
  2. package/.prettierignore +4 -4
  3. package/lib/components/book-demo/utils.js +4 -0
  4. package/lib/components/button/default-button/index.css +10 -4
  5. package/lib/components/button/default-button/index.js +13 -2
  6. package/lib/components/change-okr-modal/index.js +3 -2
  7. package/lib/components/checkbox/index.css +1 -0
  8. package/lib/components/communication/CommunicationRecord.js +16 -16
  9. package/lib/components/communication/index.css +16 -15
  10. package/lib/components/communication/index.js +23 -6
  11. package/lib/components/communication/style.js +4 -4
  12. package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
  13. package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
  14. package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
  15. package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
  16. package/lib/components/dialog/index.css +4 -1
  17. package/lib/components/dialog/index.js +1 -1
  18. package/lib/components/dialog-confirm/index.css +1 -1
  19. package/lib/components/drawer/index.js +3 -2
  20. package/lib/components/drawer-manager/index.js +6 -1
  21. package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
  22. package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
  23. package/lib/components/dynamic/components/obj-status/index.css +1 -0
  24. package/lib/components/dynamic/components/obj-status/utils.js +1 -1
  25. package/lib/components/dynamic/constant.js +12 -2
  26. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
  27. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
  28. package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
  29. package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
  30. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
  31. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
  32. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
  33. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
  34. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
  35. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
  36. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
  37. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
  38. package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
  39. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
  40. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
  41. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
  42. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
  43. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
  44. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
  45. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
  46. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
  47. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
  48. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
  49. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
  50. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
  51. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
  53. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
  54. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
  55. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
  56. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
  57. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
  58. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
  59. package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
  60. package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
  62. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
  63. package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
  64. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
  65. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
  66. package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
  67. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
  68. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
  69. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
  70. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  71. package/lib/components/dynamic/dynamic-item/index.css +58 -3
  72. package/lib/components/dynamic/dynamic-item/index.js +124 -23
  73. package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
  74. package/lib/components/dynamic/dynamic-list/index.js +11 -2
  75. package/lib/components/dynamic/dynamic-topping/item.js +8 -4
  76. package/lib/components/dynamic/dynamic.js +5 -2
  77. package/lib/components/dynamic/img/dynamic-operate.png +0 -0
  78. package/lib/components/dynamic/img/dynamic-point.svg +13 -0
  79. package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
  80. package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
  81. package/lib/components/dynamic/online-broadcast/data.js +13 -1
  82. package/lib/components/e-status-dropdown/index.css +3 -0
  83. package/lib/components/e-status-dropdown/index.js +94 -0
  84. package/lib/components/edit-kr-wight/style/index.js +2 -2
  85. package/lib/components/file-list/components/single-file/index.css +6 -5
  86. package/lib/components/file-list/components/single-file/index.js +1 -1
  87. package/lib/components/file-list/index.css +1 -0
  88. package/lib/components/follower-visitor/index.js +6 -4
  89. package/lib/components/grid-layout/okr-progress/index.js +20 -30
  90. package/lib/components/help-card/image/not-try.png +0 -0
  91. package/lib/components/help-card/image/try.png +0 -0
  92. package/lib/components/help-card/index.css +31 -2
  93. package/lib/components/help-card/index.js +54 -17
  94. package/lib/components/invite-people/img/invite-people.svg +62 -0
  95. package/lib/components/invite-people/index.css +1 -1
  96. package/lib/components/mblog/index.js +14 -5
  97. package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
  98. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
  99. package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
  100. package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
  101. package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
  102. package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +34 -12
  103. package/lib/components/menus/images/okr-gongsi.svg +17 -0
  104. package/lib/components/nav-top/components/menu/index.css +24 -0
  105. package/lib/components/nav-top/components/menu/index.js +9 -1
  106. package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
  107. package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
  108. package/lib/components/nav-top/components/user-message/index.css +4 -3
  109. package/lib/components/nav-top/components/user-message/index.js +33 -6
  110. package/lib/components/nav-top/request.apis.js +22 -8
  111. package/lib/components/nav-top/useGlobalValue.js +14 -0
  112. package/lib/components/okr-detail/components/header/o-name.js +11 -4
  113. package/lib/components/okr-detail/components/header/o-score.js +4 -6
  114. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
  115. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
  116. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
  117. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
  118. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
  119. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
  120. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
  121. package/lib/components/okr-detail/detail-header/actions.js +40 -44
  122. package/lib/components/okr-detail/detail-header/index.css +2 -2
  123. package/lib/components/okr-detail/detail-header/index.js +207 -195
  124. package/lib/components/okr-detail/e-list/index.js +70 -24
  125. package/lib/components/okr-detail/e-list/util.js +11 -2
  126. package/lib/components/okr-detail/index.js +4 -0
  127. package/lib/components/okr-detail/okr-list/index.js +1 -5
  128. package/lib/components/okr-flow/export-modal/index.js +3 -3
  129. package/lib/components/okr-flow/root-node/index.js +14 -1
  130. package/lib/components/okr-progress-detail/index.css +11 -10
  131. package/lib/components/okr-progress-detail/index.js +5 -1
  132. package/lib/components/okr-progress-detail/utils.js +4 -4
  133. package/lib/components/okr-progress-modal/helper.js +20 -27
  134. package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
  135. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
  136. package/lib/components/open-data-painter/index.js +5 -1
  137. package/lib/components/progress/circle-progress/index.js +1 -1
  138. package/lib/components/rich-editor/basic/schema.js +47 -0
  139. package/lib/components/rich-editor/consts/events.js +12 -0
  140. package/lib/components/rich-editor/enums.js +42 -0
  141. package/lib/components/rich-editor/index.js +58 -0
  142. package/lib/components/rich-editor/keymap.js +119 -0
  143. package/lib/components/rich-editor/keymaps/index.js +241 -0
  144. package/lib/components/rich-editor/models/controller.js +18 -0
  145. package/lib/components/rich-editor/models/editor.js +47 -0
  146. package/lib/components/rich-editor/models/plugin.js +20 -0
  147. package/lib/components/rich-editor/models/schema.js +121 -0
  148. package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
  149. package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
  150. package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
  151. package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
  152. package/lib/components/rich-editor/plugins/block/index.js +57 -0
  153. package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
  154. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
  155. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
  156. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
  157. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
  158. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
  159. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
  160. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
  161. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
  162. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
  163. package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
  164. package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
  165. package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
  166. package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
  167. package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
  168. package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
  169. package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
  170. package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
  171. package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
  172. package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
  173. package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
  174. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
  175. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
  176. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
  177. package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
  178. package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
  179. package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
  180. package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
  181. package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
  182. package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
  183. package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
  184. package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
  185. package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
  186. package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
  187. package/lib/components/rich-editor/plugins/core/index.js +90 -0
  188. package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
  189. package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
  190. package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
  191. package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
  192. package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
  193. package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
  194. package/lib/components/rich-editor/plugins/extension/index.js +18 -0
  195. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
  196. package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
  197. package/lib/components/rich-editor/plugins/index.js +44 -0
  198. package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
  199. package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
  200. package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
  201. package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
  202. package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
  203. package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
  204. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
  205. package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
  206. package/lib/components/rich-editor/plugins/inline/index.js +83 -0
  207. package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
  208. package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
  209. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
  210. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
  211. package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
  212. package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
  213. package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
  214. package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
  215. package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
  216. package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
  217. package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
  218. package/lib/components/rich-editor/plugins/util.js +284 -0
  219. package/lib/components/rich-editor/react/reactNodeView.js +383 -0
  220. package/lib/components/rich-editor/react/uiProvider.js +185 -0
  221. package/lib/components/rich-editor/schemas/basic.js +309 -0
  222. package/lib/components/rich-editor/schemas/index.js +19 -0
  223. package/lib/components/rich-editor/schemas/list.js +342 -0
  224. package/lib/components/rich-editor/types/commond.js +5 -0
  225. package/lib/components/rich-editor/types/index.js +18 -0
  226. package/lib/components/rich-editor/ui/Popup/index.js +247 -0
  227. package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
  228. package/lib/components/rich-editor/ui/editor/index.css +178 -0
  229. package/lib/components/rich-editor/ui/editor/index.js +153 -0
  230. package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
  231. package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
  232. package/lib/components/rich-editor/utils/browser.js +35 -0
  233. package/lib/components/rich-editor/utils/commands.js +266 -0
  234. package/lib/components/rich-editor/utils/document.js +211 -0
  235. package/lib/components/rich-editor/utils/event.js +79 -0
  236. package/lib/components/rich-editor/utils/helpers.js +16 -0
  237. package/lib/components/rich-editor/utils/mark.js +168 -0
  238. package/lib/components/rich-editor/utils/slice.js +85 -0
  239. package/lib/components/rich-editor/utils/toolbar.js +228 -0
  240. package/lib/components/scrollbar/index.js +67 -9
  241. package/lib/components/scrollbar/scroll-mask/index.css +29 -0
  242. package/lib/components/scrollbar/scroll-mask/index.js +152 -0
  243. package/lib/components/superset-charts/components/chart/index.js +54 -0
  244. package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
  245. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
  246. package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
  247. package/lib/components/superset-charts/index.js +13 -0
  248. package/lib/components/superset-charts/interface.js +5 -0
  249. package/lib/components/superset-charts/utils/axios.js +102 -0
  250. package/lib/components/toast/index.js +5 -17
  251. package/lib/components/tree/index.css +3 -2
  252. package/lib/components/upload/index.js +4 -2
  253. package/lib/components/upload/util.js +2 -0
  254. package/lib/components/upload-photo-modal/request-api.js +1 -17
  255. package/lib/components/user-selector/empty/index.css +6 -6
  256. package/lib/components/user-selector/selected-panel/index.css +3 -3
  257. package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
  258. package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
  259. package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
  260. package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
  261. package/lib/components/video-modal/img/muted.svg +8 -10
  262. package/lib/components/video-modal/img/not-muted.svg +17 -11
  263. package/lib/components/video-modal/img/pause.svg +7 -11
  264. package/lib/components/video-modal/img/play.svg +13 -11
  265. package/lib/components/video-modal/index.css +38 -168
  266. package/lib/components/video-modal/index.js +104 -244
  267. package/lib/components/video-modal/utils.js +2 -2
  268. package/lib/components/wechat-btn/index.css +10 -0
  269. package/lib/components/wechat-btn/index.js +232 -0
  270. package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
  271. package/lib/hooks/useGlobalState.js +63 -0
  272. package/lib/index.js +39 -7
  273. package/lib/pages/aha2021/img/canceled.svg +13 -0
  274. package/lib/pages/aha2021/img/not-try.png +0 -0
  275. package/lib/pages/aha2021/img/try.png +0 -0
  276. package/lib/pages/aha2021/index.css +52 -0
  277. package/lib/pages/aha2021/index.js +73 -14
  278. package/lib/pages/group-management/tree/group-form/index.js +1 -1
  279. package/lib/pages/new-okr-list/header/index.js +2 -1
  280. package/lib/pages/new-okr-list/index.js +10 -13
  281. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
  282. package/lib/pages/pay/image/success.png +0 -0
  283. package/lib/pages/pay/index.css +79 -0
  284. package/lib/pages/pay/index.js +66 -0
  285. package/lib/pages/personal-info/request-api.js +1 -1
  286. package/lib/utils/auth.js +15 -5
  287. package/lib/utils/bs-global.js +8 -8
  288. package/lib/utils/helpers.js +7 -1
  289. package/lib/utils/open-data.js +82 -2
  290. package/package.json +121 -101
  291. package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
  292. package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
  293. package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
  294. package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
  295. package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
  296. package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
  297. package/lib/components/float-fixed-video-modal/utils.js +0 -25
  298. package/lib/components/invite-people/img/invite-people.png +0 -0
  299. package/lib/components/video-modal/img/play.png +0 -0
@@ -62,12 +62,18 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
62
62
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
63
 
64
64
  function _default(props) {
65
- var _data$principalUser, _data$principalUser2;
65
+ var _okrInfo$authority, _data$principalUser, _data$principalUser2;
66
66
 
67
67
  var index = props.index,
68
68
  title = props.title,
69
69
  data = props.data,
70
- createUserId = props.createUserId;
70
+ createUserId = props.createUserId,
71
+ _props$hasProgress = props.hasProgress,
72
+ hasProgress = _props$hasProgress === void 0 ? true : _props$hasProgress,
73
+ _props$hasRelation = props.hasRelation,
74
+ hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
75
+ _props$hasPrinciple = props.hasPrinciple,
76
+ hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
71
77
 
72
78
  var _useState = (0, _react.useState)(false),
73
79
  _useState2 = _slicedToArray(_useState, 2),
@@ -84,7 +90,7 @@ function _default(props) {
84
90
  var _useContext2 = (0, _react.useContext)(_context.EListContext),
85
91
  refreshEList = _useContext2.refreshEList;
86
92
 
87
- var isParticipant = okrInfo.authority.roleRelation && okrInfo.authority.roleRelation.roleType === 2;
93
+ var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
88
94
  var hasRelativeAuth = new _auth.KRAuth({
89
95
  user: data.user,
90
96
  createUserId: createUserId
@@ -120,6 +126,9 @@ function _default(props) {
120
126
  window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(data.id)));
121
127
  };
122
128
 
129
+ var workApplyType = data.workApplyType,
130
+ workApplyStatus = data.workApplyStatus;
131
+ var isCreate = (workApplyStatus === 1 || workApplyStatus === 3 || workApplyStatus === 4) && workApplyType === 48;
123
132
  return /*#__PURE__*/_react["default"].createElement("div", {
124
133
  key: index,
125
134
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node"))
@@ -130,12 +139,16 @@ function _default(props) {
130
139
  })), /*#__PURE__*/_react["default"].createElement("span", {
131
140
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title ")),
132
141
  onClick: openProjectDetail
142
+ }, /*#__PURE__*/_react["default"].createElement("span", {
143
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-name "))
133
144
  }, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
134
145
  text: (0, _helpers.escapeHtml)(title),
135
146
  isPercent: true
136
- })), /*#__PURE__*/_react["default"].createElement("div", {
147
+ })), isCreate && /*#__PURE__*/_react["default"].createElement("span", {
148
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-approvaling"))
149
+ }, (0, _getLocale.getLocale)('Pro_MyS_Establishment'))), /*#__PURE__*/_react["default"].createElement("div", {
137
150
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions"))
138
- }, /*#__PURE__*/_react["default"].createElement("span", {
151
+ }, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
139
152
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-user"))
140
153
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
141
154
  name: data === null || data === void 0 ? void 0 : (_data$principalUser = data.principalUser) === null || _data$principalUser === void 0 ? void 0 : _data$principalUser.name,
@@ -147,7 +160,7 @@ function _default(props) {
147
160
  }, /*#__PURE__*/_react["default"].createElement(_statusTime["default"], {
148
161
  deadLine: data.deadLine,
149
162
  isComplete: data.status === 2
150
- })), /*#__PURE__*/_react["default"].createElement("span", {
163
+ })), hasProgress && /*#__PURE__*/_react["default"].createElement("span", {
151
164
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-progress ").concat(isGray && "".concat(_precls["default"], "__e-project-node-gray")))
152
165
  }, /*#__PURE__*/_react["default"].createElement(_progress["default"].Circle, {
153
166
  size: 22,
@@ -158,7 +171,7 @@ function _default(props) {
158
171
  linearStartColor: (0, _getProcessColor["default"])(data.riskLevel, "linearStartColor", data.status),
159
172
  linearEndColor: (0, _getProcessColor["default"])(data.riskLevel, "linearEndColor", data.status),
160
173
  backgroundColor: (0, _getProcessColor["default"])(data.riskLevel, "backgroundColor", data.status)
161
- })), okrInfo.status === 1 && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
174
+ })), okrInfo.status === 1 && hasRelation && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
162
175
  overlay: (0, _getLocale.getLocale)("OKR_MyO_Text_Cancel"),
163
176
  placement: "top"
164
177
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -82,6 +82,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
82
82
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
83
83
 
84
84
  function _default(props) {
85
+ var _okrInfo$authority;
86
+
85
87
  var index = props.index,
86
88
  title = props.title,
87
89
  data = props.data,
@@ -147,7 +149,7 @@ function _default(props) {
147
149
  principalUser: okrInfo.principalUser,
148
150
  createUserId: okrInfo.createUserId
149
151
  }).hasAuth()) && data.status !== 5;
150
- var isParticipant = okrInfo.authority.roleRelation && okrInfo.authority.roleRelation.roleType === 2;
152
+ var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
151
153
  var hasRelativeAuth = new _auth.KRAuth({
152
154
  user: data.user,
153
155
  createUserId: createUserId
@@ -83,11 +83,21 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
83
83
 
84
84
  // status=3 已过期 status=2 已完成
85
85
  function ETaskNode(props) {
86
+ var _okrInfo$authority;
87
+
86
88
  var index = props.index,
87
89
  title = props.title,
88
90
  data = props.data,
89
91
  createUserId = props.createUserId,
90
- krUser = props.krUser;
92
+ krUser = props.krUser,
93
+ _props$hasProgress = props.hasProgress,
94
+ hasProgress = _props$hasProgress === void 0 ? true : _props$hasProgress,
95
+ _props$hasRelation = props.hasRelation,
96
+ hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
97
+ _props$isPushScreen = props.isPushScreen,
98
+ isPushScreen = _props$isPushScreen === void 0 ? false : _props$isPushScreen,
99
+ _props$hasPrinciple = props.hasPrinciple,
100
+ hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
91
101
 
92
102
  var _useState = (0, _react.useState)(false),
93
103
  _useState2 = _slicedToArray(_useState, 2),
@@ -150,7 +160,7 @@ function ETaskNode(props) {
150
160
  principalUser: okrInfo.principalUser,
151
161
  createUserId: okrInfo.createUserId
152
162
  }).hasAuth()) && data.status !== 5;
153
- var isParticipant = okrInfo.authority.roleRelation && okrInfo.authority.roleRelation.roleType === 2;
163
+ var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
154
164
  var hasRelativeAuth = new _auth.KRAuth({
155
165
  user: krUser,
156
166
  createUserId: createUserId
@@ -324,7 +334,18 @@ function ETaskNode(props) {
324
334
  _drawerManager["default"].close();
325
335
  }
326
336
 
327
- window.open("//".concat(window.location.host).concat(window.location.pathname, "#more/taskinfo?id=").concat(data.taskId));
337
+ if (isPushScreen) {
338
+ var _window$Talent, _window$Talent2;
339
+
340
+ (_window$Talent = window.Talent) === null || _window$Talent === void 0 ? void 0 : _window$Talent.app.vent.off("global-pull-screen:closed:".concat(data.taskId));
341
+ (_window$Talent2 = window.Talent) === null || _window$Talent2 === void 0 ? void 0 : _window$Talent2.app.vent.on("global-pull-screen:closed:".concat(data.taskId), function () {
342
+ refreshEList && refreshEList();
343
+ }); // 任务:打开推屏
344
+
345
+ window.Talent.app.vent.trigger('global-pull-screen', data.taskId, 'task');
346
+ } else {
347
+ window.open("//".concat(window.location.host).concat(window.location.pathname, "#more/taskinfo?id=").concat(data.taskId));
348
+ }
328
349
  };
329
350
 
330
351
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -351,7 +372,7 @@ function ETaskNode(props) {
351
372
  isPercent: true
352
373
  })), /*#__PURE__*/_react["default"].createElement("span", {
353
374
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions"))
354
- }, /*#__PURE__*/_react["default"].createElement("span", {
375
+ }, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
355
376
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-user"))
356
377
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
357
378
  name: user === null || user === void 0 ? void 0 : user.name,
@@ -369,7 +390,7 @@ function ETaskNode(props) {
369
390
  isLongTerm: dataInfo.isLongTerm,
370
391
  isCancel: dataInfo.status === 4,
371
392
  isComplete: dataInfo.status === 2
372
- })), /*#__PURE__*/_react["default"].createElement("span", {
393
+ })), hasProgress && /*#__PURE__*/_react["default"].createElement("span", {
373
394
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-progress ").concat((isGray || isCancel) && "".concat(_precls["default"], "__e-project-node-gray")))
374
395
  }, /*#__PURE__*/_react["default"].createElement(_progress["default"].Circle, {
375
396
  size: 22,
@@ -380,7 +401,7 @@ function ETaskNode(props) {
380
401
  linearStartColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "linearStartColor", dataInfo.status),
381
402
  linearEndColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "linearEndColor", dataInfo.status),
382
403
  backgroundColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "backgroundColor", dataInfo.status)
383
- })), okrInfo.status === 1 && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
404
+ })), okrInfo.status === 1 && hasRelation && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
384
405
  overlay: (0, _getLocale.getLocale)("OKR_MyO_Text_Cancel"),
385
406
  placement: "top"
386
407
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -84,13 +84,13 @@
84
84
  line-height: 18px;
85
85
  display: inline-flex;
86
86
  align-items: center;
87
+ justify-content: flex-end;
87
88
  box-sizing: border-box;
88
89
  width: 78px;
89
90
  height: 26px;
90
91
  padding: 4px;
91
92
  text-align: left;
92
93
  line-height: 26px;
93
- margin-left: 16px;
94
94
  }
95
95
 
96
96
  .tita-okrdt-tree__e-task-node-actions-date > span {
@@ -103,7 +103,7 @@
103
103
  color: #89919f;
104
104
  cursor: auto;
105
105
  width: 64px;
106
- margin-left: 4px;
106
+ margin-left: 16px;
107
107
  margin-right: 4px;
108
108
  }
109
109
 
@@ -147,7 +147,7 @@
147
147
  }
148
148
 
149
149
  .tita-okrdt-tree__e-project-node-title {
150
- display: inline-block;
150
+ display: inline-flex;
151
151
  font-size: 14px;
152
152
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
153
153
  color: #3f4755;
@@ -158,8 +158,27 @@
158
158
  flex: 1;
159
159
  }
160
160
 
161
+ .tita-okrdt-tree__e-project-node-title-name {
162
+ overflow: hidden;
163
+ }
164
+
165
+ .tita-okrdt-tree__e-project-node-title-approvaling {
166
+ display: inline-flex;
167
+ align-items: center;
168
+ justify-content: center;
169
+ min-width: 36px;
170
+ padding: 0 6px;
171
+ height: 20px;
172
+ font-size: 12px;
173
+ font-weight: 400;
174
+ color: #f05e5e;
175
+ background: rgba(240, 94, 94, 0.1);
176
+ border-radius: 10px;
177
+ margin-left: 8px;
178
+ }
179
+
161
180
  .tita-okrdt-tree__e-project-node-gray {
162
- color: #BFC7D5 !important;
181
+ color: #bfc7d5 !important;
163
182
  }
164
183
 
165
184
  .tita-okrdt-tree__e-project-node-priority {
@@ -216,13 +235,13 @@
216
235
  line-height: 18px;
217
236
  display: inline-flex;
218
237
  align-items: center;
238
+ justify-content: flex-end;
219
239
  box-sizing: border-box;
220
240
  width: 78px;
221
241
  height: 26px;
222
242
  padding: 4px;
223
243
  text-align: left;
224
244
  line-height: 26px;
225
- margin-left: 16px;
226
245
  }
227
246
 
228
247
  .tita-okrdt-tree__e-project-node-actions-date > span {
@@ -235,7 +254,7 @@
235
254
  color: #89919f;
236
255
  cursor: auto;
237
256
  width: 64px;
238
- margin-left: 4px;
257
+ margin-left: 16px;
239
258
  margin-right: 4px;
240
259
  }
241
260
 
@@ -338,13 +357,13 @@
338
357
  line-height: 18px;
339
358
  display: inline-flex;
340
359
  align-items: center;
360
+ justify-content: flex-end;
341
361
  box-sizing: border-box;
342
362
  width: 78px;
343
363
  height: 26px;
344
364
  padding: 4px;
345
365
  text-align: left;
346
366
  line-height: 26px;
347
- margin-left: 16px;
348
367
  }
349
368
 
350
369
  .tita-okrdt-tree__e-task-level2-node-actions-date > span {
@@ -357,7 +376,7 @@
357
376
  color: #89919f;
358
377
  cursor: auto;
359
378
  width: 64px;
360
- margin-left: 4px;
379
+ margin-left: 16px;
361
380
  margin-right: 4px;
362
381
  }
363
382
 
@@ -379,7 +398,7 @@
379
398
  .tita-okrdt-tree__e-empty-node {
380
399
  font-size: 12px;
381
400
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
382
- color: #A4ACB9;
401
+ color: #a4acb9;
383
402
  line-height: 18px;
384
403
  padding-left: 12px;
385
404
  }
@@ -389,5 +408,5 @@
389
408
  }
390
409
 
391
410
  .e-node-status-icon {
392
- color: #89919F;
411
+ color: #89919f;
393
412
  }
@@ -332,7 +332,7 @@ function _default(props) {
332
332
  editable: krCanEdit,
333
333
  onEditUser: onEditUserHandler,
334
334
  nameTips: function nameTips(name) {
335
- return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A");
335
+ return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
336
336
  }
337
337
  })), showKrWeight && /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
338
338
  width: 60,
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getOkrHeadActions = getOkrHeadActions;
7
7
 
8
- var _dayjs = _interopRequireDefault(require("dayjs"));
9
-
10
8
  var _bsGlobal = require("../../../utils/bs-global");
11
9
 
12
10
  var _auth = require("../../../utils/auth");
@@ -15,36 +13,12 @@ var _enums = require("./enums");
15
13
 
16
14
  var _getLocale = require("../../../utils/getLocale");
17
15
 
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
16
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
17
 
22
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
19
 
24
20
  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; }
25
21
 
26
- function getOkrHeadActions(data) {
27
- var actions = [];
28
- var auth = new _auth.OAuth({
29
- principalUser: data.principalUser,
30
- createUserId: data.detailInfo.createUserId
31
- });
32
-
33
- var dataWithAuth = _objectSpread(_objectSpread({}, data), {}, {
34
- auth: auth
35
- });
36
-
37
- addShareButton(dataWithAuth, actions);
38
- addVisibilityButton(dataWithAuth, actions);
39
- addFollowButton(dataWithAuth, actions);
40
- addExitButton(dataWithAuth, actions);
41
- addFinishOrReopenButton(dataWithAuth, actions);
42
- addCopyButton(dataWithAuth, actions);
43
- addDeleteButton(dataWithAuth, actions); // addDetailButton(dataWithAuth,actions)
44
-
45
- return actions;
46
- }
47
-
48
22
  var addShareButton = function addShareButton(_ref, actions) {
49
23
  var openShareModal = _ref.openShareModal;
50
24
  actions.push({
@@ -81,10 +55,10 @@ var addVisibilityButton = function addVisibilityButton(_ref2, actions) {
81
55
  }
82
56
  }];
83
57
 
84
- var editable = auth.hasAuth() && detailInfo.status == _enums.OkrStatus.inProgress;
58
+ var editable = auth.hasAuth() && detailInfo.status === _enums.OkrStatus.inProgress;
85
59
 
86
60
  actions.push({
87
- icon: visibility != 1 ? "tu-icon-simi-icon" : "tu-icon-gongkai",
61
+ icon: visibility !== 1 ? "tu-icon-simi-icon" : "tu-icon-gongkai",
88
62
  title: children[visibility - 1].title + (0, _getLocale.getLocale)("OKR_MyO_Text_Visible"),
89
63
  children: editable ? children : null
90
64
  });
@@ -92,7 +66,6 @@ var addVisibilityButton = function addVisibilityButton(_ref2, actions) {
92
66
 
93
67
  var addFollowButton = function addFollowButton(_ref3, actions) {
94
68
  var roleType = _ref3.roleType,
95
- detailInfo = _ref3.detailInfo,
96
69
  onChangeOkrFollow = _ref3.onChangeOkrFollow;
97
70
 
98
71
  // 未开启关注目标功能
@@ -101,12 +74,12 @@ var addFollowButton = function addFollowButton(_ref3, actions) {
101
74
  } // 是负责人或是内部成员不能关注目标
102
75
 
103
76
 
104
- if (roleType == _enums.OkrRole.principal || roleType == _enums.OkrRole.member) {
77
+ if (roleType === _enums.OkrRole.principal || roleType === _enums.OkrRole.member) {
105
78
  return;
106
79
  } // 已关注目标
107
80
 
108
81
 
109
- if (roleType == _enums.OkrRole.follower) {
82
+ if (roleType === _enums.OkrRole.follower) {
110
83
  actions.push({
111
84
  icon: "okr-drawer-header-followed",
112
85
  title: (0, _getLocale.getLocale)("OKR_MyO_Butt_Unfollow"),
@@ -131,7 +104,7 @@ var addExitButton = function addExitButton(_ref4, actions) {
131
104
  var roleType = _ref4.roleType,
132
105
  onQuit = _ref4.onQuit;
133
106
 
134
- if (roleType == _enums.OkrRole.member) {
107
+ if (roleType === _enums.OkrRole.member) {
135
108
  actions.push({
136
109
  icon: "tu-icon-tuichu",
137
110
  title: (0, _getLocale.getLocale)("Pro_Admin_pop_Withdraw"),
@@ -146,7 +119,7 @@ var addFinishOrReopenButton = function addFinishOrReopenButton(_ref5, actions) {
146
119
  onFinishOrReOpen = _ref5.onFinishOrReOpen;
147
120
  if (!auth.hasAuth()) return;
148
121
 
149
- if (detailInfo.status == _enums.OkrStatus.inProgress) {
122
+ if (detailInfo.status === _enums.OkrStatus.inProgress) {
150
123
  actions.push({
151
124
  icon: "tu-icon-liebiao-jieshu",
152
125
  title: (0, _getLocale.getLocale)("OKR_MyO_EndObjective"),
@@ -185,16 +158,39 @@ var addDeleteButton = function addDeleteButton(_ref7, actions) {
185
158
  title: (0, _getLocale.getLocale)("OKR_MyO_Butt_DeleteO"),
186
159
  onClick: onDeleteOkr
187
160
  });
188
- };
161
+ }; // const addDetailButton: ActionDealFunction = ({ detailInfo }, actions) => {
162
+ // const registerDate = window.BSGlobal.tenantAuthentication.StartDate;
163
+ // dayjs(registerDate).year() < 2021
164
+ // && actions.push({
165
+ // icon: "tu-icon-xiangqing1",
166
+ // title: "目标详情",
167
+ // onClick: () => {
168
+ // window.open(
169
+ // `${location.pathname}#okr/manage?work_id=${detailInfo.workId}`,
170
+ // );
171
+ // },
172
+ // });
173
+ // };
189
174
 
190
- var addDetailButton = function addDetailButton(_ref8, actions) {
191
- var detailInfo = _ref8.detailInfo;
192
- var registerDate = window.BSGlobal.tenantAuthentication.StartDate;
193
- (0, _dayjs["default"])(registerDate).year() < 2021 && actions.push({
194
- icon: "tu-icon-xiangqing1",
195
- title: "目标详情",
196
- onClick: function onClick() {
197
- window.open("".concat(location.pathname, "#okr/manage?work_id=").concat(detailInfo.workId));
198
- }
175
+
176
+ function getOkrHeadActions(data) {
177
+ var actions = [];
178
+ var auth = new _auth.OAuth({
179
+ principalUser: data.principalUser,
180
+ createUserId: data.detailInfo.createUserId
199
181
  });
200
- };
182
+
183
+ var dataWithAuth = _objectSpread(_objectSpread({}, data), {}, {
184
+ auth: auth
185
+ });
186
+
187
+ addShareButton(dataWithAuth, actions);
188
+ addVisibilityButton(dataWithAuth, actions);
189
+ addFollowButton(dataWithAuth, actions);
190
+ addExitButton(dataWithAuth, actions);
191
+ addFinishOrReopenButton(dataWithAuth, actions);
192
+ addCopyButton(dataWithAuth, actions);
193
+ addDeleteButton(dataWithAuth, actions); // addDetailButton(dataWithAuth,actions)
194
+
195
+ return actions;
196
+ }
@@ -5,7 +5,7 @@
5
5
  .okr-detail-head-parent {
6
6
  display: flex;
7
7
  align-items: center;
8
- color: #89919F;
8
+ color: #89919f;
9
9
  }
10
10
 
11
11
  .okr-detail-head-parent .tu-icon-liebiao-duiqinubiao {
@@ -23,5 +23,5 @@
23
23
  }
24
24
 
25
25
  .okr-detail-head-parent > span:hover {
26
- color: #2879FF;
26
+ color: #2879ff;
27
27
  }