@titaui/pc 1.16.51 → 1.16.52

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 (339) hide show
  1. package/lib/components/avatar/icon-avatar/index.js +1 -1
  2. package/lib/components/avatar/num-avatar/index.js +1 -1
  3. package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
  4. package/lib/components/button/default-button/index.js +1 -1
  5. package/lib/components/button/icon-btn/index.js +1 -1
  6. package/lib/components/cascader/index.js +1 -1
  7. package/lib/components/cascader/time.js +1 -1
  8. package/lib/components/change-okr-modal/Filter.js +3 -3
  9. package/lib/components/change-okr-modal/Item.js +3 -3
  10. package/lib/components/change-okr-modal/filterTab.js +3 -3
  11. package/lib/components/change-okr-modal/index.js +5 -7
  12. package/lib/components/common-share/publishMblog.js +2 -4
  13. package/lib/components/communication/CommunicationAttachments.js +3 -3
  14. package/lib/components/communication/ConvertUserName.js +3 -3
  15. package/lib/components/communication/index.js +3 -3
  16. package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
  17. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
  18. package/lib/components/create-okr-modal/index.js +2 -4
  19. package/lib/components/create-okr-modal/objectType.js +3 -3
  20. package/lib/components/create-okr-modal/request-api.js +12 -16
  21. package/lib/components/create-okr-modal/utils/helper.js +2 -6
  22. package/lib/components/date-picker/BodyItem.js +7 -7
  23. package/lib/components/date-picker/CalendarBody.js +4 -4
  24. package/lib/components/date-picker/CalendarHeader.js +7 -7
  25. package/lib/components/date-picker/index.js +3 -3
  26. package/lib/components/date-range-picker/index.js +3 -3
  27. package/lib/components/delete-confirm-pop/ConfirmPop.js +6 -6
  28. package/lib/components/dialog/index.js +1 -1
  29. package/lib/components/dialog-confirm/index.js +1 -1
  30. package/lib/components/dialog-qq-docs/index.js +9 -11
  31. package/lib/components/dialog-qq-docs/utils.js +2 -6
  32. package/lib/components/dialog-select/index.js +1 -1
  33. package/lib/components/dialog-upload/index.js +2 -4
  34. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
  35. package/lib/components/dialog-upload-type/index.js +1 -1
  36. package/lib/components/drawer/headerDrop.js +1 -1
  37. package/lib/components/drawer/index.js +1 -1
  38. package/lib/components/drawer-manager/drawerWrapper.js +3 -5
  39. package/lib/components/drawer-manager/index.js +1 -1
  40. package/lib/components/drop-selector/index.js +1 -1
  41. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
  42. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +9 -2
  43. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +1 -7
  44. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +4 -6
  45. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +2 -2
  46. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +1 -1
  47. package/lib/components/dynamic/dynamic-item/components/work-progress/constant.js +30 -0
  48. package/lib/components/dynamic/dynamic-item/components/work-progress/index.css +428 -0
  49. package/lib/components/dynamic/dynamic-item/components/work-progress/index.js +133 -0
  50. package/lib/components/dynamic/dynamic-item/components/work-progress/interface.js +22 -0
  51. package/lib/components/dynamic/dynamic-item/components/work-progress/mile-stone.js +70 -0
  52. package/lib/components/dynamic/dynamic-item/components/work-progress/render-row.js +85 -0
  53. package/lib/components/dynamic/dynamic-item/components/work-progress/request-api.js +35 -0
  54. package/lib/components/dynamic/dynamic-item/components/work-progress/utils.js +163 -0
  55. package/lib/components/dynamic/dynamic-item/components/work-progress/work-task.js +52 -0
  56. package/lib/components/dynamic/dynamic-item/components/work-progress/work.js +59 -0
  57. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  58. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  59. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  62. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  63. package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
  64. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  65. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  66. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  67. package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +1 -0
  68. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +13 -1
  69. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  70. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  71. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  72. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  73. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  74. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  75. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  76. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  77. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  78. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  79. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  80. package/lib/components/dynamic/dynamic-list/index.js +1 -1
  81. package/lib/components/eReport/eReportListEmpty.js +3 -3
  82. package/lib/components/eReport/eReportLists/reportList.js +6 -6
  83. package/lib/components/eReport/eReportShare/index.js +3 -3
  84. package/lib/components/eReport/eReportShare/toast/index.js +3 -3
  85. package/lib/components/edit-kr-wight/EditKrWightModal.js +3 -3
  86. package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
  87. package/lib/components/emotions-selector/selector-content.js +3 -3
  88. package/lib/components/emotions-selector/selector-pop.js +6 -6
  89. package/lib/components/ereport-list/index.js +6 -6
  90. package/lib/components/error-boundary/index.js +3 -3
  91. package/lib/components/filter-buttons/department.js +1 -1
  92. package/lib/components/filter-buttons/index.js +1 -1
  93. package/lib/components/filter-buttons/name.js +1 -1
  94. package/lib/components/firework/index.js +2 -6
  95. package/lib/components/form/form-fields/date/index.js +1 -1
  96. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  97. package/lib/components/form/form-fields/input/index.js +1 -1
  98. package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
  99. package/lib/components/form/form-fields/user/index.js +1 -1
  100. package/lib/components/grid-layout/util/network.js +6 -10
  101. package/lib/components/guide-order/index.js +1 -1
  102. package/lib/components/guide-tip/index.js +1 -1
  103. package/lib/components/help-card/index.js +1 -1
  104. package/lib/components/import-modal/import-task-modal/index.js +1 -1
  105. package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
  106. package/lib/components/import-modal/tree-node/index.js +1 -1
  107. package/lib/components/magnet/index.js +1 -1
  108. package/lib/components/mblog/components/ConfirmPop.js +3 -3
  109. package/lib/components/mblog/components/MblogAction.js +6 -6
  110. package/lib/components/mblog/components/MblogContent.js +3 -3
  111. package/lib/components/mblog/index.js +3 -3
  112. package/lib/components/menus/components/menu-tree/index.js +1 -1
  113. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  114. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +19 -3
  115. package/lib/components/menus/export-modules/summary-menus/index.js +11 -1
  116. package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +11 -1
  117. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +11 -1
  118. package/lib/components/okr-detail/auth.js +3 -3
  119. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
  120. package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
  121. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
  122. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +3 -3
  123. package/lib/components/okr-detail/components/base-okr-type/object-type.js +3 -3
  124. package/lib/components/okr-detail/components/header/edit-name.js +2 -4
  125. package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
  126. package/lib/components/okr-detail/components/header/o-classify.js +2 -4
  127. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  128. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  129. package/lib/components/okr-detail/components/o-classify.js +2 -4
  130. package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
  131. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  132. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
  133. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
  134. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
  135. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  136. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
  137. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +6 -6
  138. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +4 -4
  139. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
  140. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
  141. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
  142. package/lib/components/okr-detail/detail-footer/index.js +2 -4
  143. package/lib/components/okr-detail/detail-header/index.js +10 -12
  144. package/lib/components/okr-detail/okr-list/index.js +2 -4
  145. package/lib/components/okr-detail/request-apis.js +2 -6
  146. package/lib/components/okr-excel/renders.js +4 -8
  147. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +2 -4
  148. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +3 -3
  149. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +3 -3
  150. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +3 -3
  151. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +2 -4
  152. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +3 -3
  153. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +3 -3
  154. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +3 -3
  155. package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
  156. package/lib/components/okr-flow/child-node/work-node.js +2 -4
  157. package/lib/components/okr-flow/export-modal/index.js +43 -6
  158. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
  159. package/lib/components/okr-flow/request-apis.js +2 -6
  160. package/lib/components/okr-flow/root-node/index.js +2 -4
  161. package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
  162. package/lib/components/okr-progress-modal/index.js +2 -4
  163. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -7
  164. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
  165. package/lib/components/okr-review/ReviewPop/index.js +3 -3
  166. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  167. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +6 -6
  168. package/lib/components/okr-review/index.js +3 -3
  169. package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
  170. package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
  171. package/lib/components/okr-share/common-painter/utils.js +4 -8
  172. package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
  173. package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
  174. package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
  175. package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
  176. package/lib/components/okr-share/pink-card/index.js +2 -6
  177. package/lib/components/okr-share/publishMblog.js +2 -4
  178. package/lib/components/okr-share/shareCardSelector.js +4 -6
  179. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  180. package/lib/components/okrcase-library/server/network.js +20 -24
  181. package/lib/components/open-data-painter/index.js +2 -6
  182. package/lib/components/operation-records/OperationRecordItem.js +3 -3
  183. package/lib/components/operation-records/index.js +3 -3
  184. package/lib/components/pagination/index.css +1 -0
  185. package/lib/components/pagination/pagination.js +1 -1
  186. package/lib/components/period-selector/components/button/index.js +1 -1
  187. package/lib/components/period-selector/helper/index.js +2 -6
  188. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  189. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  190. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  191. package/lib/components/picker/components/panels/week-panel/index.js +1 -1
  192. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  193. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  194. package/lib/components/picker/picker.js +1 -1
  195. package/lib/components/picker/range-picker/index.js +1 -1
  196. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  197. package/lib/components/point-demo/input/index.js +4 -4
  198. package/lib/components/point-demo/popup/index.js +1 -1
  199. package/lib/components/popup/index.js +1 -1
  200. package/lib/components/popup-select/index.js +1 -1
  201. package/lib/components/praise-record/PraiseRecordItem.js +3 -3
  202. package/lib/components/praise-record/index.js +3 -3
  203. package/lib/components/range-picker-pop/index.js +4 -4
  204. package/lib/components/range-selector-pop/RangeList.js +3 -3
  205. package/lib/components/range-selector-pop/RangeSelectorPop.js +6 -6
  206. package/lib/components/rate/index.js +1 -1
  207. package/lib/components/rich-editor/models/schema.js +9 -9
  208. package/lib/components/rich-editor/plugins/block/block-quote/index.js +11 -11
  209. package/lib/components/rich-editor/plugins/block/heading/index.js +11 -11
  210. package/lib/components/rich-editor/plugins/block/lists/index.js +17 -17
  211. package/lib/components/rich-editor/plugins/block/paragraph/index.js +8 -8
  212. package/lib/components/rich-editor/plugins/core/index.js +7 -7
  213. package/lib/components/rich-editor/plugins/extension/alignment/index.js +8 -8
  214. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +7 -7
  215. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  216. package/lib/components/rich-editor/plugins/inline/color/index.js +14 -14
  217. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +11 -11
  218. package/lib/components/rich-editor/plugins/inline/em/index.js +8 -8
  219. package/lib/components/rich-editor/plugins/inline/link/index.js +11 -11
  220. package/lib/components/rich-editor/plugins/inline/strong/index.js +11 -11
  221. package/lib/components/rich-editor/plugins/inline/under-line/index.js +11 -11
  222. package/lib/components/rich-editor/react/reactNodeView.js +5 -5
  223. package/lib/components/rich-editor/react/uiProvider.js +6 -6
  224. package/lib/components/rich-editor/ui/Popup/index.js +6 -6
  225. package/lib/components/scroll-container/index.js +3 -3
  226. package/lib/components/scrollbar/index.js +1 -1
  227. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  228. package/lib/components/scrollbar/simplebar-react.js +1 -1
  229. package/lib/components/search-dropdown/index.js +1 -1
  230. package/lib/components/select/Option.js +7 -7
  231. package/lib/components/select/index.js +4 -4
  232. package/lib/components/select-layer/index.js +1 -1
  233. package/lib/components/select-tags/index.js +1 -1
  234. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
  235. package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
  236. package/lib/components/survey-model/request-api.js +2 -6
  237. package/lib/components/switch/index.js +1 -1
  238. package/lib/components/table/index.js +1 -1
  239. package/lib/components/table-excel-v2/index.js +1 -1
  240. package/lib/components/tabs/index.js +1 -1
  241. package/lib/components/tag/index.js +1 -1
  242. package/lib/components/task-relation-modal/index.js +5 -7
  243. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  244. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +15 -5
  245. package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
  246. package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
  247. package/lib/components/task-relation-modal/tree/work-list/index.css +4 -0
  248. package/lib/components/task-relation-modal/tree/work-list/index.js +7 -10
  249. package/lib/components/task-relation-modal/tree/work-list/search-form.js +7 -6
  250. package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
  251. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  252. package/lib/components/task-relation-modal/work-relation/index.js +5 -7
  253. package/lib/components/task-tree/task-item-node/e-project.js +2 -4
  254. package/lib/components/task-tree/task-item-node/e-task.js +2 -4
  255. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  256. package/lib/components/task-tree/task-tree.js +1 -1
  257. package/lib/components/textarea/index.js +1 -1
  258. package/lib/components/time-picker/time-picker-selector.js +1 -1
  259. package/lib/components/time-picker/time-picker.js +1 -1
  260. package/lib/components/time-picker/timer-picker-input.js +1 -1
  261. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  262. package/lib/components/tita-chart/charts/pie.js +1 -1
  263. package/lib/components/tita-chart/errorBoundary/index.js +6 -6
  264. package/lib/components/toast/index.js +8 -12
  265. package/lib/components/tooltip/error-tip.js +1 -1
  266. package/lib/components/tooltip/tooltip.js +1 -1
  267. package/lib/components/tree/index.js +1 -1
  268. package/lib/components/upload/components/uploadedPreview.js +3 -3
  269. package/lib/components/upload/index.js +5 -7
  270. package/lib/components/upload/index2.js +2 -4
  271. package/lib/components/upvote/index.js +5 -7
  272. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  273. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  274. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  275. package/lib/components/version-change-modal/index.js +4 -6
  276. package/lib/components/version-change-modal/request-api.js +2 -6
  277. package/lib/components/viewer/ImageListRender.js +3 -3
  278. package/lib/components/viewer/index.js +3 -3
  279. package/lib/components/weekly-report/card.js +12 -4
  280. package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
  281. package/lib/components/weekly-report/common-painter/drawName.js +2 -6
  282. package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
  283. package/lib/components/weekly-report/index.js +4 -6
  284. package/lib/components-v1/animate/AnimateChild.js +6 -6
  285. package/lib/components-v1/animate/animate.js +3 -3
  286. package/lib/components-v1/avatar/index.js +6 -6
  287. package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
  288. package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
  289. package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
  290. package/lib/components-v1/confirm/index.js +3 -3
  291. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +6 -6
  292. package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
  293. package/lib/components-v1/input/Input.js +4 -4
  294. package/lib/components-v1/input/InputNumber.js +3 -3
  295. package/lib/components-v1/placement/placement.js +3 -3
  296. package/lib/components-v1/placement/placementInner.js +3 -3
  297. package/lib/components-v1/pop/Pop.js +3 -3
  298. package/lib/components-v1/pop/PopInner.js +3 -3
  299. package/lib/components-v1/portals/Portals.js +3 -3
  300. package/lib/components-v1/progress/CircleProgress.js +6 -6
  301. package/lib/components-v1/progress/LineProgress.js +3 -3
  302. package/lib/components-v1/progress/index.js +3 -3
  303. package/lib/components-v1/radio/radio.js +3 -3
  304. package/lib/components-v1/radio/radioGroup.js +3 -3
  305. package/lib/components-v1/search/index.js +3 -3
  306. package/lib/components-v1/select/Option.js +7 -7
  307. package/lib/components-v1/select/index.js +4 -4
  308. package/lib/components-v1/tabs/index.js +3 -3
  309. package/lib/components-v1/textarea/index.js +3 -3
  310. package/lib/components-v1/transition/index.js +3 -3
  311. package/lib/components-v1/userSelector/UserSelectorPop.js +6 -6
  312. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +3 -3
  313. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +3 -3
  314. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
  315. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
  316. package/lib/components-v1/userSelector/components/MultiMode/index.js +6 -6
  317. package/lib/components-v1/userSelector/components/SearchBar.js +3 -3
  318. package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
  319. package/lib/components-v1/userSelector/components/UserItem.js +6 -6
  320. package/lib/components-v1/userSelector/index.js +3 -3
  321. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  322. package/lib/pages/appointment-demo/input/index.js +4 -4
  323. package/lib/pages/appointment-demo/popup/index.js +1 -1
  324. package/lib/pages/group-management/components/input-form/index.js +4 -4
  325. package/lib/pages/group-management/components/radio/index.js +1 -1
  326. package/lib/pages/group-management/groupInterface.js +2 -6
  327. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  328. package/lib/pages/group-management/tree/index.js +1 -1
  329. package/lib/pages/new-okr-list/request-api.js +14 -18
  330. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
  331. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  332. package/lib/pages/okr-map/request-apis.js +2 -6
  333. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  334. package/lib/utils/auth.js +3 -3
  335. package/lib/utils/helpers.js +2 -6
  336. package/lib/utils/open-data.js +4 -6
  337. package/lib/utils/request-v1.js +2 -6
  338. package/lib/utils/request.js +2 -6
  339. package/package.json +1 -1
@@ -0,0 +1,428 @@
1
+ .tita-summary-work-progress:hover .tita-summary-work-progress__title-arrow {
2
+ opacity: 1;
3
+ }
4
+
5
+ .tita-summary-work-progress__title {
6
+ position: relative;
7
+ font-size: 18px;
8
+ font-weight: 600;
9
+ color: #141c28;
10
+ line-height: 26px;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ }
15
+
16
+ .tita-summary-work-progress__title-arrow {
17
+ opacity: 0;
18
+ transition: all 0.3s;
19
+ position: absolute;
20
+ left: -28px;
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ width: 24px;
25
+ height: 24px;
26
+ border-radius: 8px;
27
+ cursor: pointer;
28
+ }
29
+
30
+ .tita-summary-work-progress__title-arrow--show {
31
+ opacity: 1;
32
+ }
33
+
34
+ .tita-summary-work-progress__title-arrow:hover {
35
+ background: #F0F4FA;
36
+ }
37
+
38
+ .tita-summary-work-progress__title-arrow-icon {
39
+ font-size: 16px;
40
+ transform: scale(0.5);
41
+ transition: all 0.3s;
42
+ }
43
+
44
+ .tita-summary-work-progress__title-arrow-icon--rotate {
45
+ transform: rotate(-90deg) scale(0.5);
46
+ transition: all 0.3s;
47
+ }
48
+
49
+ .tita-summary-work-progress__title-update {
50
+ font-size: 14px;
51
+ font-weight: 400;
52
+ color: #2879ff;
53
+ line-height: 22px;
54
+ display: inline-flex;
55
+ align-items: center;
56
+ }
57
+
58
+ .tita-summary-work-progress__title-update-icon {
59
+ margin-right: 4px;
60
+ }
61
+
62
+ .tita-summary-work-progress__title-update:hover {
63
+ cursor: pointer;
64
+ opacity: 0.8;
65
+ }
66
+
67
+ .tita-summary-work-progress__table {
68
+ border: 1px solid #dfe3ea;
69
+ border-radius: 12px;
70
+ margin-top: 12px;
71
+ }
72
+
73
+ .tita-summary-work-progress__table--hide {
74
+ display: none;
75
+ }
76
+
77
+ .tita-summary-work-progress__table-td--editable:hover {
78
+ border: 1px solid #2879ff;
79
+ }
80
+
81
+ .tita-summary-work-progress__table-obj {
82
+ padding: 8px 4px;
83
+ }
84
+
85
+ .tita-summary-work-progress__table-mile-title {
86
+ padding: 8px 12px;
87
+ font-weight: 400;
88
+ }
89
+
90
+ .tita-summary-work-progress__table-mile-title-text {
91
+ font-size: 14px;
92
+ color: #141c28;
93
+ line-height: 22px;
94
+ margin-right: 4px;
95
+ }
96
+
97
+ .tita-summary-work-progress__table-mile-title-text:hover {
98
+ cursor: pointer;
99
+ color: #2879ff;
100
+ }
101
+
102
+ .tita-summary-work-progress__table-task-title {
103
+ font-weight: 400;
104
+ }
105
+
106
+ .tita-summary-work-progress__table-task-title-text {
107
+ font-size: 14px;
108
+ color: #141c28;
109
+ line-height: 22px;
110
+ margin-right: 4px;
111
+ }
112
+
113
+ .tita-summary-work-progress__table-task-title-text:hover {
114
+ cursor: pointer;
115
+ color: #2879ff;
116
+ }
117
+
118
+ .tita-summary-work-progress__table-row-title {
119
+ font-size: 14px;
120
+ color: #141c28;
121
+ padding: 8px 0;
122
+ }
123
+
124
+ .tita-summary-work-progress__table-row-title-remain {
125
+ background: rgba(240, 94, 94, 0.16);
126
+ border-radius: 12px;
127
+ padding: 0 8px;
128
+ height: 20px;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ font-size: 12px;
132
+ color: #3f4755;
133
+ line-height: 18px;
134
+ margin-left: 0px;
135
+ }
136
+
137
+ .tita-summary-work-progress__table-row-title-worktime {
138
+ margin-left: 4px;
139
+ display: inline-flex;
140
+ align-items: center;
141
+ height: 20px;
142
+ padding: 0 8px;
143
+ border-radius: 12px;
144
+ background: rgba(240, 163, 38, 0.16);
145
+ font-size: 12px;
146
+ color: #3f4755;
147
+ line-height: 18px;
148
+ }
149
+
150
+ .tita-summary-work-progress__table-row-title-icon {
151
+ margin-right: 4px;
152
+ vertical-align: -1px;
153
+ }
154
+
155
+ .tita-summary-work-progress__table-row-title-text {
156
+ font-size: 14px;
157
+ font-weight: 600;
158
+ color: #141c28;
159
+ line-height: 22px;
160
+ margin-right: 4px;
161
+ }
162
+
163
+ .tita-summary-work-progress__table-row-title-text:hover {
164
+ cursor: pointer;
165
+ color: #2879ff;
166
+ }
167
+
168
+ .tita-summary-work-progress__table table {
169
+ width: 100%;
170
+ }
171
+
172
+ .tita-summary-work-progress__table table thead {
173
+ width: 100%;
174
+ }
175
+
176
+ .tita-summary-work-progress__table table tbody {
177
+ width: 100%;
178
+ }
179
+
180
+ .tita-summary-work-progress__table table tbody tr {
181
+ position: relative;
182
+ border-bottom: 1px solid #dfe3ea;
183
+ }
184
+
185
+ .tita-summary-work-progress__table table tbody tr:hover {
186
+ background: rgba(240, 244, 250, 0.6);
187
+ }
188
+
189
+ .tita-summary-work-progress__table table tbody tr:hover .tita-summary-task-progress__table-row-del {
190
+ display: flex;
191
+ }
192
+
193
+ .tita-summary-work-progress__table table tbody tr:last-child {
194
+ border-bottom: unset;
195
+ }
196
+
197
+ .tita-summary-work-progress__table table tbody tr td {
198
+ box-sizing: border-box;
199
+ padding: 0 12px;
200
+ border-left: 1px solid #dfe3ea;
201
+ }
202
+
203
+ .tita-summary-work-progress__table table tbody tr td:first-child {
204
+ overflow: hidden;
205
+ width: 282px;
206
+ max-width: 282px;
207
+ }
208
+
209
+ .tita-summary-work-progress__table table tbody tr td:first-child {
210
+ border-left: unset;
211
+ }
212
+
213
+ .tita-summary-work-progress__table table tbody tr td:nth-child(2) {
214
+ padding: 0;
215
+ }
216
+
217
+ .tita-summary-work-progress__table-title {
218
+ height: 40px;
219
+ background: #f0f4fa;
220
+ font-size: 13px;
221
+ color: #89919f;
222
+ line-height: 18px;
223
+ }
224
+
225
+ .tita-summary-work-progress__table-title td {
226
+ text-align: center;
227
+ padding: 0 12px;
228
+ box-sizing: border-box;
229
+ border-right: 1px solid #dfe3ea;
230
+ }
231
+
232
+ .tita-summary-work-progress__table-title td:last-child {
233
+ border-right: none;
234
+ }
235
+
236
+ .tita-summary-work-progress__table-title-okrs {
237
+ overflow: hidden;
238
+ border-top-left-radius: 12px;
239
+ width: 282px;
240
+ }
241
+
242
+ .tita-summary-work-progress__table-title-progress {
243
+ width: 102px;
244
+ }
245
+
246
+ .tita-summary-work-progress__table-title-progress-desc {
247
+ overflow: hidden;
248
+ border-top-right-radius: 12px;
249
+ }
250
+
251
+ .tita-summary-work-progress__table-title-progress-desc-icon {
252
+ font-size: 14px;
253
+ margin-left: 4px;
254
+ vertical-align: text-top;
255
+ color: #BFC7D5;
256
+ }
257
+
258
+ .tita-summary-work-progress__table-row-del {
259
+ width: 32px;
260
+ height: 32px;
261
+ background: #ffffff;
262
+ box-shadow: 0px 4px 8px 0px rgba(127, 145, 180, 0.2);
263
+ border-radius: 50%;
264
+ display: none;
265
+ align-items: center;
266
+ justify-content: center;
267
+ position: absolute;
268
+ right: -15px;
269
+ top: 50%;
270
+ transform: translateY(-50%);
271
+ }
272
+
273
+ .tita-summary-work-progress__table-row-del-icon {
274
+ color: #141c28;
275
+ font-size: 16px;
276
+ }
277
+
278
+ .tita-summary-work-progress__table-row-del-icon:hover {
279
+ cursor: pointer;
280
+ color: #f05e5e;
281
+ }
282
+
283
+ .tita-summary-work-progress__statistic {
284
+ display: flex;
285
+ margin-top: 12px;
286
+ }
287
+
288
+ .tita-summary-work-progress__statistic--hide {
289
+ display: none;
290
+ }
291
+
292
+ .tita-summary-work-progress__statistic-item {
293
+ max-width: 320px;
294
+ flex: 1;
295
+ height: 48px;
296
+ border-radius: 12px;
297
+ display: flex;
298
+ align-items: center;
299
+ justify-content: space-between;
300
+ margin-right: 10px;
301
+ padding: 0 16px;
302
+ font-size: 14px;
303
+ font-weight: 600;
304
+ color: #141c28;
305
+ line-height: 22px;
306
+ position: relative;
307
+ overflow: hidden;
308
+ }
309
+
310
+ .tita-summary-work-progress__statistic-item:last-child {
311
+ margin-right: 0;
312
+ }
313
+
314
+ .tita-summary-work-progress__statistic-item--finished {
315
+ background: rgba(0, 214, 133, 0.1);
316
+ }
317
+
318
+ .tita-summary-work-progress__statistic-item--finished-text {
319
+ color: #00d685;
320
+ font-size: 16px;
321
+ }
322
+
323
+ .tita-summary-work-progress__statistic-item--finished-active {
324
+ background: rgba(0, 214, 133, 0.3);
325
+ }
326
+
327
+ .tita-summary-work-progress__statistic-item--finished-active::before {
328
+ content: "";
329
+ position: absolute;
330
+ top: 0;
331
+ left: 0;
332
+ width: 4px;
333
+ height: 48px;
334
+ background: rgba(0, 214, 133, 0.3);
335
+ border-radius: 12px 0 0 12px;
336
+ }
337
+
338
+ .tita-summary-work-progress__statistic-item--processing {
339
+ background: rgba(40, 121, 255, 0.1);
340
+ }
341
+
342
+ .tita-summary-work-progress__statistic-item--processing-text {
343
+ color: #2879ff;
344
+ font-size: 16px;
345
+ }
346
+
347
+ .tita-summary-work-progress__statistic-item--processing-active {
348
+ background: rgba(40, 121, 255, 0.3);
349
+ }
350
+
351
+ .tita-summary-work-progress__statistic-item--processing-active::before {
352
+ content: "";
353
+ position: absolute;
354
+ top: 0;
355
+ left: 0;
356
+ width: 4px;
357
+ height: 48px;
358
+ background: rgba(40, 121, 255, 0.3);
359
+ border-radius: 12px 0 0 12px;
360
+ }
361
+
362
+ .tita-summary-work-progress__statistic-item--overdue {
363
+ background: rgba(240, 94, 94, 0.1);
364
+ }
365
+
366
+ .tita-summary-work-progress__statistic-item--overdue-text {
367
+ color: #f05e5e;
368
+ font-size: 16px;
369
+ }
370
+
371
+ .tita-summary-work-progress__statistic-item--overdue-active {
372
+ background: rgba(240, 94, 94, 0.3);
373
+ }
374
+
375
+ .tita-summary-work-progress__statistic-item--overdue-active::before {
376
+ content: "";
377
+ position: absolute;
378
+ top: 0;
379
+ left: 0;
380
+ width: 4px;
381
+ height: 48px;
382
+ background: rgba(240, 94, 94, 0.3);
383
+ border-radius: 12px 0 0 12px;
384
+ }
385
+
386
+ .tita-summary-work-progress__import {
387
+ margin-top: 10px;
388
+ width: 60px;
389
+ height: 60px;
390
+ border-radius: 8px;
391
+ border: 1px solid #e9ecf0;
392
+ display: flex;
393
+ align-items: center;
394
+ justify-content: center;
395
+ }
396
+
397
+ .tita-summary-work-progress__import-icon {
398
+ font-size: 24px;
399
+ color: #bfc7d5;
400
+ }
401
+
402
+ .tita-summary-work-progress__import:hover {
403
+ cursor: pointer;
404
+ border: 1px solid #2879ff;
405
+ }
406
+
407
+ .tita-summary-work-progress__import:hover .tu-icon-add1 {
408
+ color: #2879ff;
409
+ }
410
+
411
+ .tita-summary-work-progress__schedule-td {
412
+ position: relative;
413
+ }
414
+
415
+ .tita-summary-work-progress__schedule-td:hover {
416
+ border: 1px solid #2879FF;
417
+ }
418
+
419
+ .tita-summary-work-progress__schedule-td--border {
420
+ border: 1px solid #2879FF !important;
421
+ border-left: 2px solid #2879ff;
422
+ }
423
+
424
+ @media screen and (min-width: 1366px) {
425
+ .tita-summary-task-progress__statistic-item {
426
+ max-width: 350px;
427
+ }
428
+ }
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
13
+
14
+ var _renderRow = _interopRequireDefault(require("./render-row"));
15
+
16
+ var _classnames = _interopRequireDefault(require("classnames"));
17
+
18
+ var _getLocale = require("../../../../../utils/getLocale");
19
+
20
+ var _utils = require("./utils");
21
+
22
+ require("./index.css");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
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
+
30
+ 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; }
31
+
32
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+
34
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
+
36
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
+
38
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
39
+
40
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
41
+
42
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
+
44
+ var prefix = "tita-summary-work-progress";
45
+
46
+ var Item = function Item(props) {
47
+ var children = props.children,
48
+ openWorkMileSetting = props.openWorkMileSetting,
49
+ openWorkTaskSetting = props.openWorkTaskSetting;
50
+ return /*#__PURE__*/_react["default"].createElement("div", null, children.map(function (item) {
51
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_renderRow["default"], {
52
+ item: item,
53
+ openWorkMileSetting: openWorkMileSetting,
54
+ openWorkTaskSetting: openWorkTaskSetting
55
+ }), item.children && item.children.length !== 0 && /*#__PURE__*/_react["default"].createElement(Item, null, item.children));
56
+ }));
57
+ };
58
+
59
+ var WorkProgress = function WorkProgress(_ref) {
60
+ var _tableData$Rows, _tableData$Rows2;
61
+
62
+ var data = _ref.data,
63
+ title = _ref.title,
64
+ reportType = _ref.reportType,
65
+ openWorkMileSetting = _ref.openWorkMileSetting,
66
+ openWorkTaskSetting = _ref.openWorkTaskSetting;
67
+
68
+ var _useState = (0, _react.useState)(true),
69
+ _useState2 = _slicedToArray(_useState, 2),
70
+ tableVisible = _useState2[0],
71
+ setTableVisible = _useState2[1];
72
+
73
+ var _useState3 = (0, _react.useState)(),
74
+ _useState4 = _slicedToArray(_useState3, 2),
75
+ tableData = _useState4[0],
76
+ setTableData = _useState4[1];
77
+
78
+ var handleClickToHideTable = function handleClickToHideTable() {
79
+ setTableVisible(!tableVisible);
80
+ };
81
+
82
+ var renderTable = (0, _react.useMemo)(function () {
83
+ var _toTree;
84
+
85
+ return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
86
+ className: "".concat(prefix, "__table-title")
87
+ }, /*#__PURE__*/_react["default"].createElement("td", {
88
+ className: "".concat(prefix, "__table-title-okrs")
89
+ }, (0, _getLocale.getLocale)("OKR_MyO_Title_Taskname")), /*#__PURE__*/_react["default"].createElement("td", {
90
+ className: "".concat(prefix, "__table-title-progress")
91
+ }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("td", {
92
+ className: "".concat(prefix, "__table-title-progress-desc")
93
+ }, (0, _getLocale.getLocale)("Feed_Tab_Title_Progress"), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
94
+ overlay: (0, _getLocale.getLocale)("Rep_NewS_PrgreTask"),
95
+ placement: "top",
96
+ align: {
97
+ offset: [0, 5]
98
+ }
99
+ }, /*#__PURE__*/_react["default"].createElement("i", {
100
+ className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
101
+ }))))), /*#__PURE__*/_react["default"].createElement("tbody", null, (_toTree = (0, _utils.toTree)(tableData === null || tableData === void 0 ? void 0 : tableData.Rows)) === null || _toTree === void 0 ? void 0 : _toTree.map(function (item) {
102
+ return /*#__PURE__*/_react["default"].createElement(_renderRow["default"], {
103
+ item: item,
104
+ openWorkMileSetting: openWorkMileSetting,
105
+ openWorkTaskSetting: openWorkTaskSetting
106
+ });
107
+ })));
108
+ }, [tableData]);
109
+ (0, _react.useEffect)(function () {
110
+ setTableData(JSON.parse(data || '{}'));
111
+ }, [data]);
112
+ return /*#__PURE__*/_react["default"].createElement("div", {
113
+ className: prefix
114
+ }, /*#__PURE__*/_react["default"].createElement("div", {
115
+ className: "".concat(prefix, "__title"),
116
+ onClick: handleClickToHideTable
117
+ }, (tableData === null || tableData === void 0 ? void 0 : (_tableData$Rows = tableData.Rows) === null || _tableData$Rows === void 0 ? void 0 : _tableData$Rows.length) > 0 && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
118
+ overlay: tableVisible ? (0, _getLocale.getLocale)('Mod_Fold') : (0, _getLocale.getLocale)('Mod_Unfold'),
119
+ placement: "top",
120
+ align: {
121
+ offset: [0, 5]
122
+ }
123
+ }, /*#__PURE__*/_react["default"].createElement("div", {
124
+ className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible))
125
+ }, /*#__PURE__*/_react["default"].createElement("i", {
126
+ className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
127
+ }))), title), (tableData === null || tableData === void 0 ? void 0 : (_tableData$Rows2 = tableData.Rows) === null || _tableData$Rows2 === void 0 ? void 0 : _tableData$Rows2.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
128
+ className: (0, _classnames["default"])("".concat(prefix, "__table"), _defineProperty({}, "".concat(prefix, "__table--hide"), !tableVisible))
129
+ }, renderTable));
130
+ };
131
+
132
+ var _default = WorkProgress;
133
+ exports["default"] = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EReportType = exports.EImportType = void 0;
7
+ var EReportType;
8
+ exports.EReportType = EReportType;
9
+
10
+ (function (EReportType) {
11
+ EReportType[EReportType["Daily"] = 8] = "Daily";
12
+ EReportType[EReportType["Weekly"] = 26] = "Weekly";
13
+ EReportType[EReportType["Month"] = 27] = "Month";
14
+ })(EReportType || (exports.EReportType = EReportType = {}));
15
+
16
+ var EImportType;
17
+ exports.EImportType = EImportType;
18
+
19
+ (function (EImportType) {
20
+ EImportType[EImportType["Imported"] = 1] = "Imported";
21
+ EImportType[EImportType["NotImported"] = 0] = "NotImported";
22
+ })(EImportType || (exports.EImportType = EImportType = {}));
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _openData = _interopRequireDefault(require("../../../../../utils/open-data"));
13
+
14
+ var _progress = _interopRequireDefault(require("../progress"));
15
+
16
+ var _schedule = _interopRequireDefault(require("../schedule"));
17
+
18
+ var _tools = require("../../../../../utils/tools");
19
+
20
+ var _constant = require("../../../constant");
21
+
22
+ require("./index.css");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
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
+
30
+ var preCls = "tita-summary-work-progress";
31
+
32
+ var MileStone = function MileStone(_ref) {
33
+ var _data$LastRichContent;
34
+
35
+ var data = _ref.data;
36
+ var scheduleRef = (0, _react.useRef)({
37
+ focus: function focus() {}
38
+ });
39
+
40
+ var handleShowWork = function handleShowWork(data) {
41
+ window.open("#/work?&work_id=".concat(data.id));
42
+ };
43
+
44
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
45
+ className: "".concat(preCls, "__table-mile-title"),
46
+ onClick: function onClick() {
47
+ return handleShowWork(data);
48
+ }
49
+ }, /*#__PURE__*/_react["default"].createElement("i", {
50
+ className: "".concat(preCls, "__table-row-title-icon tu-icon-licheng-s")
51
+ }), /*#__PURE__*/_react["default"].createElement("span", {
52
+ className: "".concat(preCls, "__table-mile-title-text")
53
+ }, _openData["default"].parseString((0, _tools.htmlDecodeByRegExp)(data.MilestoneName))), data.IsDeadLine === true && /*#__PURE__*/_react["default"].createElement("span", {
54
+ className: "".concat(preCls, "__table-row-title-remain")
55
+ }, data.RemainingContent))), /*#__PURE__*/_react["default"].createElement("td", null, !!data.MilestoneId && /*#__PURE__*/_react["default"].createElement(_progress["default"], {
56
+ id: "".concat(data.MilestoneId),
57
+ type: "task",
58
+ status: _constant.OkrRiskMapping[data.RiskLevel],
59
+ value: Number(data.Progress),
60
+ editable: false
61
+ })), /*#__PURE__*/_react["default"].createElement("td", null, !!data.MilestoneId && /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
62
+ ref: scheduleRef,
63
+ curContent: (data === null || data === void 0 ? void 0 : (_data$LastRichContent = data.LastRichContent) === null || _data$LastRichContent === void 0 ? void 0 : _data$LastRichContent.trim()) || (data === null || data === void 0 ? void 0 : data.LastContent) || "",
64
+ value: data === null || data === void 0 ? void 0 : data.LastContents,
65
+ id: data.MilestoneId
66
+ }))));
67
+ };
68
+
69
+ var _default = MileStone;
70
+ exports["default"] = _default;