@titaui/pc 1.12.7-beta.1 → 1.12.9

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 (325) hide show
  1. package/lib/components/change-okr-modal/Item.js +19 -18
  2. package/lib/components/change-okr-modal/index.js +4 -2
  3. package/lib/components/change-okr-modal/styledComponents.js +9 -9
  4. package/lib/components/common-share/publishMblog.js +4 -2
  5. package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
  6. package/lib/components/create-okr-modal/fields/index.css +14 -3
  7. package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
  8. package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
  9. package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
  10. package/lib/components/create-okr-modal/fields/okr-type-detail.js +4 -2
  11. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
  12. package/lib/components/create-okr-modal/index.js +219 -144
  13. package/lib/components/create-okr-modal/kr-items/index.css +23 -13
  14. package/lib/components/create-okr-modal/kr-items/krDatas.js +96 -76
  15. package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
  16. package/lib/components/create-okr-modal/request-api.js +16 -12
  17. package/lib/components/create-okr-modal/style.js +5 -5
  18. package/lib/components/create-okr-modal/utils/helper.js +6 -2
  19. package/lib/components/drawer-manager/drawerWrapper.js +4 -2
  20. package/lib/components/dynamic/components/title/index.js +1 -1
  21. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
  22. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
  23. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
  24. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
  25. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
  26. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
  27. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
  28. package/lib/components/dynamic/dynamic-item/index.js +3 -4
  29. package/lib/components/eReport/eReportLists/reportList.js +29 -30
  30. package/lib/components/eReport/eReportShare/style.js +1 -1
  31. package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
  32. package/lib/components/firework/index.js +6 -2
  33. package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
  34. package/lib/components/grid-layout/util/network.js +10 -6
  35. package/lib/components/menus/components/menu-tree/tree-node/index.css +0 -120
  36. package/lib/components/menus/components/menu-tree/tree-node/index.js +2 -22
  37. package/lib/components/menus/i18n.js +0 -8
  38. package/lib/components/menus/index.js +0 -6
  39. package/lib/components/nav-top/components/menu/index.js +4 -4
  40. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
  41. package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
  42. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
  43. package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
  44. package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
  45. package/lib/components/okr-detail/components/header/edit-name.js +80 -41
  46. package/lib/components/okr-detail/components/header/index.css +122 -41
  47. package/lib/components/okr-detail/components/header/index.js +45 -48
  48. package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
  49. package/lib/components/okr-detail/components/header/o-classify.js +154 -0
  50. package/lib/components/okr-detail/components/header/o-name.js +7 -5
  51. package/lib/components/okr-detail/components/o-classify.js +4 -2
  52. package/lib/components/okr-detail/components/o-progress-update/index.js +6 -4
  53. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +7 -3
  54. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
  55. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
  56. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
  57. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +178 -66
  58. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
  59. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
  60. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
  61. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +19 -15
  62. package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
  63. package/lib/components/okr-detail/detail-footer/index.js +4 -2
  64. package/lib/components/okr-detail/detail-header/index.js +23 -15
  65. package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
  66. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
  67. package/lib/components/okr-detail/okr-list/index.css +9 -0
  68. package/lib/components/okr-detail/okr-list/index.js +29 -27
  69. package/lib/components/okr-detail/request-apis.js +79 -71
  70. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
  71. package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
  72. package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
  73. package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
  74. package/lib/components/okr-flow/child-node/kr-node.js +3 -1
  75. package/lib/components/okr-flow/child-node/work-node.js +7 -3
  76. package/lib/components/okr-flow/export-modal/index.js +10 -29
  77. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
  78. package/lib/components/okr-flow/request-apis.js +6 -2
  79. package/lib/components/okr-flow/root-node/index.js +4 -2
  80. package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
  81. package/lib/components/okr-progress/components/o-progress/index.js +3 -1
  82. package/lib/components/okr-progress/components/o-progress-update/index.js +6 -4
  83. package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
  84. package/lib/components/okr-progress-modal/index.js +4 -2
  85. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +7 -5
  86. package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
  87. package/lib/components/okr-share/common-painter/openDataPainter.js +15 -8
  88. package/lib/components/okr-share/common-painter/utils.js +187 -36
  89. package/lib/components/okr-share/index.css +5 -4
  90. package/lib/components/okr-share/pink-card/card.js +3 -3
  91. package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
  92. package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
  93. package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
  94. package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
  95. package/lib/components/okr-share/pink-card/index.js +26 -14
  96. package/lib/components/okr-share/publishMblog.js +4 -2
  97. package/lib/components/okr-share/shareCardSelector.js +6 -4
  98. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  99. package/lib/components/okrcase-library/server/network.js +24 -20
  100. package/lib/components/open-data-painter/index.js +12 -7
  101. package/lib/components/period-selector/helper/index.js +6 -2
  102. package/lib/components/picker/components/picker-trigger/index.js +2 -3
  103. package/lib/components/picker/picker-panels.js +4 -45
  104. package/lib/components/picker/picker.js +3 -7
  105. package/lib/components/search-input/index.js +0 -5
  106. package/lib/components/search-key-handle/index.js +12 -10
  107. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
  108. package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
  109. package/lib/components/survey-model/request-api.js +6 -2
  110. package/lib/components/task-relation-modal/index.js +6 -4
  111. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
  112. package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
  113. package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
  114. package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
  115. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
  116. package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
  117. package/lib/components/task-relation-modal/work-relation/index.js +6 -4
  118. package/lib/components/task-tree/task-item-node/e-project.js +4 -2
  119. package/lib/components/task-tree/task-item-node/e-task.js +4 -2
  120. package/lib/components/textarea/index.js +5 -7
  121. package/lib/components/toast/index.js +12 -8
  122. package/lib/components/upload/components/uploadedPreview.js +17 -17
  123. package/lib/components/upload/index.js +23 -23
  124. package/lib/components/upvote/index.js +6 -4
  125. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +14 -14
  126. package/lib/components/user-selector/searched-panel/index.js +4 -4
  127. package/lib/components/version-change-modal/index.js +6 -4
  128. package/lib/components/version-change-modal/request-api.js +6 -2
  129. package/lib/components/wechat-btn/index.css +5 -1
  130. package/lib/components/weekly-report/card.js +4 -12
  131. package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
  132. package/lib/components/weekly-report/common-painter/drawName.js +6 -2
  133. package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
  134. package/lib/components/weekly-report/index.js +6 -4
  135. package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
  136. package/lib/index.js +0 -40
  137. package/lib/pages/group-management/groupInterface.js +6 -2
  138. package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
  139. package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
  140. package/lib/pages/new-okr-list/header/index.js +15 -15
  141. package/lib/pages/new-okr-list/request-api.js +18 -14
  142. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +4 -2
  143. package/lib/pages/okr-map/request-apis.js +6 -2
  144. package/lib/utils/bs-global.js +1 -1
  145. package/lib/utils/helpers.js +0 -8
  146. package/lib/utils/hooks.js +5 -5
  147. package/lib/utils/open-data.js +216 -66
  148. package/lib/utils/request-v1.js +6 -2
  149. package/lib/utils/request.js +6 -2
  150. package/lib/utils/tita-okr-cycle.js +3 -3
  151. package/package.json +2 -2
  152. package/lib/components/attachments-preview/index.css +0 -11
  153. package/lib/components/attachments-preview/index.js +0 -112
  154. package/lib/components/auto-save/img/failed.svg +0 -17
  155. package/lib/components/auto-save/img/success.svg +0 -16
  156. package/lib/components/auto-save/index.css +0 -39
  157. package/lib/components/auto-save/index.js +0 -78
  158. package/lib/components/auto-save/interface.js +0 -5
  159. package/lib/components/dialog-upload/img/doc.svg +0 -1
  160. package/lib/components/dialog-upload/img/other.svg +0 -1
  161. package/lib/components/dialog-upload/img/pdf.svg +0 -1
  162. package/lib/components/dialog-upload/img/ppt.svg +0 -1
  163. package/lib/components/dialog-upload/img/radio.svg +0 -1
  164. package/lib/components/dialog-upload/img/video.svg +0 -1
  165. package/lib/components/dialog-upload/img/xls.svg +0 -1
  166. package/lib/components/dialog-upload/index.css +0 -77
  167. package/lib/components/dialog-upload/index.js +0 -330
  168. package/lib/components/dialog-upload/type.js +0 -35
  169. package/lib/components/dialog-upload/uploaded-preview.css +0 -77
  170. package/lib/components/dialog-upload/uploaded-preview.js +0 -132
  171. package/lib/components/dialog-upload/util.js +0 -131
  172. package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +0 -119
  173. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
  174. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
  175. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
  176. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
  177. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
  178. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
  179. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
  180. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
  181. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
  182. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
  183. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
  184. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +0 -14
  185. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +0 -68
  186. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +0 -116
  187. package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +0 -143
  188. package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
  189. package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
  190. package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
  191. package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
  192. package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
  193. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +0 -170
  194. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -120
  195. package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +0 -5
  196. package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +0 -10
  197. package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +0 -10
  198. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +0 -8
  199. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +0 -26
  200. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +0 -8
  201. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +0 -26
  202. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +0 -197
  203. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +0 -220
  204. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +0 -20
  205. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +0 -134
  206. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +0 -10
  207. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +0 -60
  208. package/lib/components/dynamic/dynamic-item/components/progress/index.css +0 -25
  209. package/lib/components/dynamic/dynamic-item/components/progress/index.js +0 -71
  210. package/lib/components/dynamic/dynamic-item/components/progress/interface.js +0 -5
  211. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -31
  212. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -59
  213. package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +0 -5
  214. package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
  215. package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
  216. package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
  217. package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
  218. package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
  219. package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +0 -136
  220. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -348
  221. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -24
  222. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -52
  223. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +0 -5
  224. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -50
  225. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +0 -65
  226. package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +0 -5
  227. package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -201
  228. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -95
  229. package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -5
  230. package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -10
  231. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
  232. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
  233. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
  234. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
  235. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
  236. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
  237. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
  238. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -32
  239. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -43
  240. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -37
  241. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -79
  242. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
  243. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
  244. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
  245. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
  246. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
  247. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +0 -155
  248. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -155
  249. package/lib/components/import-modal/helper.js +0 -179
  250. package/lib/components/import-modal/image/loading.gif +0 -0
  251. package/lib/components/import-modal/import-okr-modal/index.css +0 -18
  252. package/lib/components/import-modal/import-okr-modal/index.js +0 -132
  253. package/lib/components/import-modal/import-task-modal/index.css +0 -18
  254. package/lib/components/import-modal/import-task-modal/index.js +0 -240
  255. package/lib/components/import-modal/import-task-modal/search-form.js +0 -135
  256. package/lib/components/import-modal/index.css +0 -30
  257. package/lib/components/import-modal/index.js +0 -20
  258. package/lib/components/import-modal/radio.js +0 -62
  259. package/lib/components/import-modal/request-api.js +0 -204
  260. package/lib/components/import-modal/search/category-select.js +0 -74
  261. package/lib/components/import-modal/search/okr-classify-select.js +0 -74
  262. package/lib/components/import-modal/search/okr-status-select.js +0 -74
  263. package/lib/components/import-modal/search/okr-type-select.js +0 -87
  264. package/lib/components/import-modal/search/principal.js +0 -135
  265. package/lib/components/import-modal/search/relation.js +0 -77
  266. package/lib/components/import-modal/search/search-dropdown/index.css +0 -50
  267. package/lib/components/import-modal/search/search-dropdown/index.js +0 -32
  268. package/lib/components/import-modal/search/task-relation.js +0 -83
  269. package/lib/components/import-modal/search/task-status-select.js +0 -87
  270. package/lib/components/import-modal/search/work-relation.js +0 -83
  271. package/lib/components/import-modal/search/work-status-select.js +0 -74
  272. package/lib/components/import-modal/tree/okr-tree/index.css +0 -61
  273. package/lib/components/import-modal/tree/okr-tree/index.js +0 -265
  274. package/lib/components/import-modal/tree/okr-tree/search-form.js +0 -161
  275. package/lib/components/import-modal/tree/task-work-tree/index.css +0 -123
  276. package/lib/components/import-modal/tree/task-work-tree/index.js +0 -187
  277. package/lib/components/import-modal/tree-node/index.css +0 -0
  278. package/lib/components/import-modal/tree-node/index.js +0 -51
  279. package/lib/components/import-modal/tree-node/kr-node/index.css +0 -58
  280. package/lib/components/import-modal/tree-node/kr-node/index.js +0 -108
  281. package/lib/components/import-modal/tree-node/milestone-node/index.css +0 -61
  282. package/lib/components/import-modal/tree-node/milestone-node/index.js +0 -118
  283. package/lib/components/import-modal/tree-node/o-node/index.css +0 -46
  284. package/lib/components/import-modal/tree-node/o-node/index.js +0 -138
  285. package/lib/components/import-modal/tree-node/work-node/index.css +0 -51
  286. package/lib/components/import-modal/tree-node/work-node/index.js +0 -108
  287. package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +0 -14
  288. package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +0 -18
  289. package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +0 -15
  290. package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +0 -15
  291. package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +0 -74
  292. package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -74
  293. package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +0 -56
  294. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +0 -32
  295. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +0 -201
  296. package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
  297. package/lib/components/menus/export-modules/summary-menus/index.js +0 -134
  298. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
  299. package/lib/components/menus/export-modules/summary-menus/menus.js +0 -199
  300. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -199
  301. package/lib/components/new-confidence/constant.js +0 -53
  302. package/lib/components/new-confidence/img/1.svg +0 -40
  303. package/lib/components/new-confidence/img/10.svg +0 -33
  304. package/lib/components/new-confidence/img/2.svg +0 -40
  305. package/lib/components/new-confidence/img/3.svg +0 -40
  306. package/lib/components/new-confidence/img/4.svg +0 -40
  307. package/lib/components/new-confidence/img/5.svg +0 -40
  308. package/lib/components/new-confidence/img/6.svg +0 -40
  309. package/lib/components/new-confidence/img/7.svg +0 -40
  310. package/lib/components/new-confidence/img/8.svg +0 -40
  311. package/lib/components/new-confidence/img/9.svg +0 -40
  312. package/lib/components/new-confidence/index.css +0 -62
  313. package/lib/components/new-confidence/index.js +0 -115
  314. package/lib/components/new-confidence/interface.js +0 -5
  315. package/lib/components/picker/components/panels/week-panel/index.css +0 -42
  316. package/lib/components/picker/components/panels/week-panel/index.js +0 -49
  317. package/lib/components/picker/components/panels/week-panel/week-body.js +0 -127
  318. package/lib/components/picker/components/panels/week-panel/week-head.js +0 -80
  319. package/lib/components/rate/index.js +0 -52
  320. package/lib/components/rich-editor-at/components/index.css +0 -66
  321. package/lib/components/rich-editor-at/components/index.js +0 -188
  322. package/lib/components/rich-editor-at/index.css +0 -40
  323. package/lib/components/rich-editor-at/index.js +0 -108
  324. package/lib/components/rich-editor-upload/index.css +0 -11
  325. package/lib/components/rich-editor-upload/index.js +0 -84
@@ -39,6 +39,8 @@ var _utils = require("../../../../../progress/utils");
39
39
 
40
40
  var _getLocale = require("../../../../../../utils/getLocale");
41
41
 
42
+ var _openData = require("../../../../../../utils/open-data");
43
+
42
44
  require("./index.css");
43
45
 
44
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -47,6 +49,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
47
49
 
48
50
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
49
51
 
52
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
53
+
50
54
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
51
55
 
52
56
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -65,10 +69,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
65
69
 
66
70
  var getSeasonTectMap = function getSeasonTectMap() {
67
71
  return {
68
- 1: "",
69
- 2: "",
70
- 3: "",
71
- 4: ""
72
+ 1: '',
73
+ 2: '',
74
+ 3: '',
75
+ 4: ''
72
76
  };
73
77
  };
74
78
 
@@ -125,12 +129,12 @@ function _default(props) {
125
129
  };
126
130
 
127
131
  var onSelectorChangeHandler = /*#__PURE__*/function () {
128
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(name) {
129
- return regeneratorRuntime.wrap(function _callee$(_context) {
132
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(name) {
133
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
130
134
  while (1) {
131
135
  switch (_context.prev = _context.next) {
132
136
  case 0:
133
- if (!(name == "modifyParent")) {
137
+ if (!(name == 'modifyParent')) {
134
138
  _context.next = 4;
135
139
  break;
136
140
  }
@@ -140,7 +144,7 @@ function _default(props) {
140
144
  break;
141
145
 
142
146
  case 4:
143
- if (!(name == "cancelParent")) {
147
+ if (!(name == 'cancelParent')) {
144
148
  _context.next = 9;
145
149
  break;
146
150
  }
@@ -149,7 +153,7 @@ function _default(props) {
149
153
  return (0, _requestApis.cancelParentOkr)(okrInfo.workId);
150
154
 
151
155
  case 7:
152
- _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"));
156
+ _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
153
157
 
154
158
  removeParent();
155
159
 
@@ -179,11 +183,11 @@ function _default(props) {
179
183
  }), /*#__PURE__*/_react["default"].createElement("span", {
180
184
  className: (0, _classnames["default"])("".concat(_precls["default"], "__o-parent-node-title")),
181
185
  onClick: function onClick() {
182
- _drawerManager["default"].open("okrDetail", {
186
+ _drawerManager["default"].open('okrDetail', {
183
187
  okrId: data.workId
184
188
  });
185
189
  }
186
- }, title), /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
190
+ }, (0, _openData.parseString)(title)), /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
187
191
  editable: false,
188
192
  okrClassify: data.okrClassify,
189
193
  okrId: data.workId
@@ -216,8 +220,8 @@ function _default(props) {
216
220
  percent: data.progress,
217
221
  backgroundColor: "#F7F8FA",
218
222
  width: 40,
219
- textColor: data.status === 2 ? "#89919f" : _utils.OkrRiskMapping[data.manualRiskLevel].textColor,
220
- color: data.status === 2 ? "linear-gradient(270deg, #BFC7D5, #E1E5EC)" : _utils.OkrRiskMapping[data.manualRiskLevel].line
223
+ textColor: data.status === 2 ? '#89919f' : _utils.OkrRiskMapping[data.manualRiskLevel].textColor,
224
+ color: data.status === 2 ? 'linear-gradient(270deg, #BFC7D5, #E1E5EC)' : _utils.OkrRiskMapping[data.manualRiskLevel].line
221
225
  })), canEditOkr && /*#__PURE__*/_react["default"].createElement("div", {
222
226
  className: (0, _classnames["default"])("".concat(_precls["default"], "__o-parent-node-actions"))
223
227
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
@@ -229,8 +233,8 @@ function _default(props) {
229
233
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
230
234
  icon: "tu-icon-bianji3",
231
235
  name: "modifyParent"
232
- }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_Butt_ModifyAlig"))), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
236
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Butt_ModifyAlig'))), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
233
237
  icon: "tu-icon-liebiao-duiqinubiao",
234
238
  name: "cancelParent"
235
- }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_Butt_CancelAlig"))))))));
239
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Butt_CancelAlig'))))))));
236
240
  }
@@ -1,5 +1,6 @@
1
1
  .okr-detail__tabpanel-content {
2
2
  height: 100%;
3
+ padding-bottom: 52px;
3
4
  overflow-y: auto;
4
5
  }
5
6
 
@@ -27,6 +27,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
29
 
30
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
31
+
30
32
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
31
33
 
32
34
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -92,8 +94,8 @@ function OKrDetailBottomComment(_ref, ref) {
92
94
  };
93
95
  }, []);
94
96
  var onMblogSubmit = (0, _react.useCallback)( /*#__PURE__*/function () {
95
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(submitType, sentData) {
96
- return regeneratorRuntime.wrap(function _callee$(_context) {
97
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitType, sentData) {
98
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
97
99
  while (1) {
98
100
  switch (_context.prev = _context.next) {
99
101
  case 0:
@@ -35,6 +35,8 @@ var _drawerManager = _interopRequireDefault(require("../../drawer-manager"));
35
35
 
36
36
  var _getLocale = require("../../../utils/getLocale");
37
37
 
38
+ var _openData = require("../../../utils/open-data");
39
+
38
40
  require("./index.css");
39
41
 
40
42
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,6 +45,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
43
45
 
44
46
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
45
47
 
48
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
49
+
46
50
  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; }
47
51
 
48
52
  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; }
@@ -65,6 +69,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
65
69
 
66
70
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
67
71
 
72
+ var StrRreg = /@\$(userName|departmentName)\=(.+?)\$(\s|$)/g;
73
+
68
74
  function OkrDetailHeader(_ref) {
69
75
  var detailInfo = _ref.detailInfo;
70
76
 
@@ -89,10 +95,10 @@ function OkrDetailHeader(_ref) {
89
95
  okrInfo = commonContext.okrInfo;
90
96
  var approveStatusColor = (0, _constant.ApproveStatusColor)(okrInfo.applyState);
91
97
  var changVisiblity = (0, _react.useCallback)( /*#__PURE__*/function () {
92
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(workId, visibility) {
98
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workId, visibility) {
93
99
  var visibilityScope,
94
100
  _args = arguments;
95
- return regeneratorRuntime.wrap(function _callee$(_context) {
101
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
96
102
  while (1) {
97
103
  switch (_context.prev = _context.next) {
98
104
  case 0:
@@ -165,9 +171,9 @@ function OkrDetailHeader(_ref) {
165
171
  visibility: context.generalVisibility.visibility,
166
172
  detailInfo: detailInfo,
167
173
  openShareModal: function () {
168
- var _openShareModal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
174
+ var _openShareModal = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
169
175
  var krss;
170
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
176
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
171
177
  while (1) {
172
178
  switch (_context2.prev = _context2.next) {
173
179
  case 0:
@@ -217,9 +223,9 @@ function OkrDetailHeader(_ref) {
217
223
  });
218
224
  },
219
225
  onChangeOkrFollow: function () {
220
- var _onChangeOkrFollow = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(follow) {
226
+ var _onChangeOkrFollow = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(follow) {
221
227
  var res;
222
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
228
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
223
229
  while (1) {
224
230
  switch (_context3.prev = _context3.next) {
225
231
  case 0:
@@ -274,9 +280,9 @@ function OkrDetailHeader(_ref) {
274
280
  return onChangeOkrFollow;
275
281
  }(),
276
282
  onFinishOrReOpen: function () {
277
- var _onFinishOrReOpen = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(isFinish) {
283
+ var _onFinishOrReOpen = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(isFinish) {
278
284
  var res;
279
- return regeneratorRuntime.wrap(function _callee4$(_context4) {
285
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
280
286
  while (1) {
281
287
  switch (_context4.prev = _context4.next) {
282
288
  case 0:
@@ -327,9 +333,9 @@ function OkrDetailHeader(_ref) {
327
333
  return onFinishOrReOpen;
328
334
  }(),
329
335
  onQuit: function () {
330
- var _onQuit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
336
+ var _onQuit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
331
337
  var res;
332
- return regeneratorRuntime.wrap(function _callee5$(_context5) {
338
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
333
339
  while (1) {
334
340
  switch (_context5.prev = _context5.next) {
335
341
  case 0:
@@ -394,10 +400,10 @@ function OkrDetailHeader(_ref) {
394
400
  actionComponent: /*#__PURE__*/_react["default"].createElement(_wechatBtn["default"], {
395
401
  id: detailInfo.workId,
396
402
  objType: 62,
397
- name: detailInfo.workName,
403
+ name: detailInfo.workName.replace(StrRreg, ''),
398
404
  principalUser: detailInfo.principalUser
399
405
  }),
400
- content: parent ? /*#__PURE__*/_react["default"].createElement("span", {
406
+ content: parent && /*#__PURE__*/_react["default"].createElement("span", {
401
407
  className: "okr-detail-head-parent"
402
408
  }, /*#__PURE__*/_react["default"].createElement("i", {
403
409
  className: "tu-icon-liebiao-duiqinubiao"
@@ -409,14 +415,16 @@ function OkrDetailHeader(_ref) {
409
415
  krId: parent.id
410
416
  });
411
417
  }
412
- }, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), parent.name)) : null,
413
- onlyShowContent: approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
418
+ }, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), (0, _openData.parseString)(parent.name))),
419
+ onlyShowContent: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
414
420
  className: "okr-detail-header-status",
415
421
  style: {
416
422
  color: approveStatusColor.color,
417
423
  backgroundColor: approveStatusColor.bgColor
418
424
  }
419
- }, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null
425
+ }, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null, Number(detailInfo.status) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
426
+ className: "okr-drawer-header__over-tag"
427
+ }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended')))
420
428
  }), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
421
429
  visible: shareVisible,
422
430
  onClose: closeShareModal,
@@ -63,3 +63,20 @@
63
63
  color: #2879ff;
64
64
  margin-left: 10px;
65
65
  }
66
+
67
+ .okr-list-create-kr__input .tita-rich-editor {
68
+ height: 36px;
69
+ border: 1px solid #2879ff;
70
+ border-radius: 8px;
71
+ box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3) inset;
72
+ transition: all 0.3s ease;
73
+ box-sizing: border-box;
74
+ }
75
+
76
+ .okr-list-create-kr__input .tita-rich-editor .ProseMirror {
77
+ width: calc(100% - 76px);
78
+ }
79
+
80
+ .okr-list-create-kr__input .tita-rich-editor .ProseMirror p {
81
+ font-size: 14px;
82
+ }
@@ -9,18 +9,18 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _titaUi = require("tita-ui");
13
-
14
12
  var _classnames = _interopRequireDefault(require("classnames"));
15
13
 
14
+ var _richEditor = require("@titaui/rich-editor");
15
+
16
+ var _titaUi = require("tita-ui");
17
+
16
18
  var _userSelector = _interopRequireDefault(require("../../../user-selector"));
17
19
 
18
20
  var _confidence = _interopRequireDefault(require("../../../confidence"));
19
21
 
20
22
  var _bsGlobal = require("../../../../utils/bs-global");
21
23
 
22
- var _dom = require("./dom");
23
-
24
24
  var _requestApis = require("../../request-apis");
25
25
 
26
26
  var _getLocale = require("../../../../utils/getLocale");
@@ -51,7 +51,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
51
51
 
52
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
 
54
- var preCls = "okr-list-create-kr";
54
+ var preCls = 'okr-list-create-kr';
55
55
 
56
56
  function CreateKr(_ref) {
57
57
  var startDate = _ref.startDate,
@@ -62,17 +62,22 @@ function CreateKr(_ref) {
62
62
  onHide = _ref.onHide;
63
63
  var dataRef = (0, _react.useRef)();
64
64
 
65
- var _useState = (0, _react.useState)(""),
65
+ var _useState = (0, _react.useState)({
66
+ pureText: '',
67
+ pureTextExcludeAt: '',
68
+ mentionUsers: [],
69
+ richText: undefined
70
+ }),
66
71
  _useState2 = _slicedToArray(_useState, 2),
67
- krName = _useState2[0],
68
- setKrName = _useState2[1];
72
+ krNameData = _useState2[0],
73
+ setKrNameData = _useState2[1];
69
74
 
70
75
  var _useState3 = (0, _react.useState)(false),
71
76
  _useState4 = _slicedToArray(_useState3, 2),
72
77
  showTip = _useState4[0],
73
78
  setShowTip = _useState4[1];
74
79
 
75
- var tipsEnable = localStorage.getItem("list_create_kr_tips_".concat((0, _bsGlobal.getUserInfo)().Id)) != "false";
80
+ var tipsEnable = localStorage.getItem("list_create_kr_tips_".concat((0, _bsGlobal.getUserInfo)().Id)) != 'false';
76
81
 
77
82
  var _useState5 = (0, _react.useState)(5),
78
83
  _useState6 = _slicedToArray(_useState5, 2),
@@ -97,11 +102,14 @@ function CreateKr(_ref) {
97
102
  }),
98
103
  _useState8 = _slicedToArray(_useState7, 2),
99
104
  user = _useState8[0],
100
- setUser = _useState8[1];
105
+ setUser = _useState8[1]; // const inputRef =
106
+ // useRef<HTMLInputElement>() as React.RefObject<HTMLInputElement>
107
+
101
108
 
102
- var inputRef = (0, _react.useRef)();
109
+ var mentionInputRef = (0, _react.useRef)();
110
+ var pendingRef = (0, _react.useRef)(false);
103
111
  dataRef.current = _objectSpread(_objectSpread({}, dataRef.current), {}, {
104
- krName: krName,
112
+ krNameData: krNameData,
105
113
  user: user,
106
114
  startDate: startDate,
107
115
  endDate: endDate,
@@ -110,23 +118,34 @@ function CreateKr(_ref) {
110
118
  getWrapperRef: getWrapperRef,
111
119
  onHide: onHide
112
120
  });
113
- var create = (0, _react.useCallback)(function (e) {
121
+ var createKr = (0, _react.useCallback)(function () {
114
122
  // 选中了选人组件中的item
115
- if ((0, _dom.hasAncestorElement)(e.target, "titaui-popup")) return;
116
-
117
- if (dataRef.current.getWrapperRef().current && dataRef.current.getWrapperRef().current.contains(e.target)) {
118
- return;
119
- }
120
-
121
- if (dataRef.current.krName.trim()) {
123
+ // if (hasAncestorElement(e.target, 'titaui-popup')) return
124
+ // if (
125
+ // dataRef.current.getWrapperRef().current &&
126
+ // dataRef.current.getWrapperRef().current.contains(e.target as Node)
127
+ // ) {
128
+ // return
129
+ // }
130
+ var _dataRef$current$krNa = dataRef.current.krNameData,
131
+ mentionUsers = _dataRef$current$krNa.mentionUsers,
132
+ pureText = _dataRef$current$krNa.pureText,
133
+ richText = _dataRef$current$krNa.richText;
134
+
135
+ if (pureText.trim()) {
122
136
  (0, _requestApis.createNewKr)({
123
137
  PrincipalId: dataRef.current.user.id,
124
- mileStoneName: dataRef.current.krName,
138
+ mileStoneName: pureText,
139
+ mileStoneNameRichText: richText,
140
+ aiteUsers: mentionUsers === null || mentionUsers === void 0 ? void 0 : mentionUsers.map(function (user) {
141
+ return user.mentionId;
142
+ }),
125
143
  startDate: dataRef.current.startDate,
126
144
  endDate: dataRef.current.endDate,
127
145
  workId: dataRef.current.workId,
128
146
  confidenceIndex: confidenceIndex
129
147
  }).then(function (res) {
148
+ setShowTip(false);
130
149
  dataRef.current.addKr(res);
131
150
  dataRef.current.onHide();
132
151
  });
@@ -137,26 +156,35 @@ function CreateKr(_ref) {
137
156
 
138
157
  var focus = function focus() {
139
158
  setTimeout(function () {
140
- inputRef.current && inputRef.current.focus();
159
+ var _mentionInputRef$curr, _mentionInputRef$curr2;
160
+
161
+ (_mentionInputRef$curr = mentionInputRef.current) === null || _mentionInputRef$curr === void 0 ? void 0 : (_mentionInputRef$curr2 = _mentionInputRef$curr.methods()) === null || _mentionInputRef$curr2 === void 0 ? void 0 : _mentionInputRef$curr2.focus();
141
162
  }, 0);
142
- };
163
+ }; // useEffect(() => {
164
+ // document.addEventListener('click', create, false)
165
+ // return () => document.removeEventListener('click', create)
166
+ // }, [])
167
+
143
168
 
144
- (0, _react.useEffect)(function () {
145
- document.addEventListener("click", create, false);
146
- return function () {
147
- return document.removeEventListener("click", create);
148
- };
149
- }, []);
150
169
  (0, _react.useEffect)(function () {
151
170
  focus();
152
171
  }, []);
153
172
 
154
173
  var onInputKeyDown = function onInputKeyDown(e) {
155
- if (e.key.toLocaleLowerCase() == "enter") {
156
- if (krName.trim()) {
174
+ if (e.key.toLocaleLowerCase() == 'enter' && !pendingRef.current) {
175
+ pendingRef.current = true;
176
+ var mentionUsers = krNameData.mentionUsers,
177
+ pureText = krNameData.pureText,
178
+ richText = krNameData.richText;
179
+
180
+ if (pureText.trim()) {
157
181
  (0, _requestApis.createNewKr)({
158
182
  PrincipalId: user.id,
159
- mileStoneName: krName,
183
+ mileStoneName: pureText,
184
+ mileStoneNameRichText: richText,
185
+ aiteUsers: mentionUsers === null || mentionUsers === void 0 ? void 0 : mentionUsers.map(function (user) {
186
+ return user.mentionId;
187
+ }),
160
188
  startDate: startDate,
161
189
  endDate: endDate,
162
190
  workId: workId,
@@ -164,19 +192,15 @@ function CreateKr(_ref) {
164
192
  }).then(function (res) {
165
193
  addKr(res);
166
194
  onHide();
195
+ pendingRef.current = false;
167
196
  });
168
197
  } else {
169
198
  onHide();
199
+ pendingRef.current = false;
170
200
  }
171
201
  }
172
202
  };
173
203
 
174
- var onBlur = function onBlur() {
175
- setTimeout(function () {
176
- setShowTip(false);
177
- }, 200);
178
- };
179
-
180
204
  var onFocus = function onFocus() {
181
205
  tipsEnable && !dataRef.current.hideTips && setShowTip(true);
182
206
  };
@@ -193,7 +217,7 @@ function CreateKr(_ref) {
193
217
 
194
218
  var onNoMoreShow = function onNoMoreShow() {
195
219
  setShowTip(false);
196
- localStorage.setItem("list_create_kr_tips_".concat((0, _bsGlobal.getUserInfo)().Id), "false");
220
+ localStorage.setItem("list_create_kr_tips_".concat((0, _bsGlobal.getUserInfo)().Id), 'false');
197
221
  };
198
222
 
199
223
  var onUserSubmit = function onUserSubmit(_ref2) {
@@ -216,33 +240,31 @@ function CreateKr(_ref) {
216
240
  className: preCls
217
241
  }, /*#__PURE__*/_react["default"].createElement("div", {
218
242
  className: (0, _classnames["default"])("".concat(preCls, "__input"))
219
- }, /*#__PURE__*/_react["default"].createElement(_titaUi.Input, {
220
- placeholder: (0, _getLocale.getLocale)("OKR_MyO_Text_Createkeyr"),
221
- inputRef: inputRef,
222
- value: krName,
223
- onChange: function onChange(e) {
224
- return setKrName(e.target.value);
225
- },
243
+ }, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
244
+ initialState: undefined,
245
+ onDocChange: setKrNameData,
246
+ onBlur: createKr,
226
247
  onFocus: onFocus,
227
- onBlur: onBlur,
228
- onKeyDown: onInputKeyDown
248
+ onKeyDown: onInputKeyDown,
249
+ placeholder: (0, _getLocale.getLocale)('OKR_MyO_Text_Createkeyr'),
250
+ ref: mentionInputRef
229
251
  }), /*#__PURE__*/_react["default"].createElement("p", {
230
252
  style: {
231
- display: showTip ? "block" : "none",
253
+ display: showTip ? 'block' : 'none',
232
254
  zIndex: 1
233
255
  },
234
256
  onClick: stopPropagation
235
- }, (0, _getLocale.getLocale)("OKR_MyO_Text_Recommendation"), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("p", null, (0, _getLocale.getLocale)("OKR_MyO_Text_ExampleC")), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("a", {
257
+ }, (0, _getLocale.getLocale)('OKR_MyO_Text_Recommendation'), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("p", null, (0, _getLocale.getLocale)('OKR_MyO_Text_ExampleC')), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("a", {
236
258
  onClick: onNextTalk
237
- }, (0, _getLocale.getLocale)("OKR_MyO_Butt_Nexttime")), /*#__PURE__*/_react["default"].createElement("a", {
259
+ }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Nexttime')), /*#__PURE__*/_react["default"].createElement("a", {
238
260
  onClick: onNoMoreShow
239
- }, (0, _getLocale.getLocale)("OKR_MyO_Butt_Nomor")))), /*#__PURE__*/_react["default"].createElement("span", {
261
+ }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Nomor')))), /*#__PURE__*/_react["default"].createElement("span", {
240
262
  className: (0, _classnames["default"])("".concat(preCls, "__heart"))
241
263
  }, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
242
264
  content: "\u4FEE\u65391"
243
265
  }, /*#__PURE__*/_react["default"].createElement("span", {
244
266
  style: {
245
- display: "inline-flex"
267
+ display: 'inline-flex'
246
268
  }
247
269
  }, /*#__PURE__*/_react["default"].createElement(_confidence["default"], {
248
270
  editable: true,
@@ -120,3 +120,12 @@
120
120
  color: #a4acb9;
121
121
  line-height: 22px;
122
122
  }
123
+
124
+ .okr-detail-okrs-list .tita-okrdt-tree {
125
+ overflow: visible;
126
+ }
127
+
128
+ .okr-detail-okrs-list .tita-okrdt-tree .titaui-tree,
129
+ .okr-detail-okrs-list .tita-okrdt-tree .rc-tree-list-holder {
130
+ overflow: visible;
131
+ }