@titaui/pc 1.5.78 → 1.5.82

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 (316) hide show
  1. package/lib/components/avatar/index.js +1 -9
  2. package/lib/components/change-okr/Filter.js +65 -133
  3. package/lib/components/change-okr/Item.js +0 -6
  4. package/lib/components/change-okr/filterTab.js +0 -2
  5. package/lib/components/change-okr/index.js +2 -2
  6. package/lib/components/checkbox/index.js +3 -4
  7. package/lib/components/communication/CommunicationRecord.js +161 -116
  8. package/lib/components/communication/ConvertUserName.js +1 -1
  9. package/lib/components/communication/index.js +28 -53
  10. package/lib/components/communication/style.js +25 -21
  11. package/lib/components/dropdown-layer/icon-item.js +3 -5
  12. package/lib/components/dropdown-layer/index.css +0 -16
  13. package/lib/components/dropdown-layer/index.js +14 -21
  14. package/lib/components/emotionsSelector/style.js +1 -1
  15. package/lib/components/form/form-fields/input/index.css +0 -11
  16. package/lib/components/form/form-fields/input/index.js +1 -3
  17. package/lib/components/grid-page/personal-info/index.js +4 -4
  18. package/lib/components/mblog/components/MblogAction.js +6 -10
  19. package/lib/components/mblog/index.js +11 -24
  20. package/lib/components/mblog/style.js +8 -8
  21. package/lib/components/okr-detail/components/header/index.css +0 -4
  22. package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
  23. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +8 -15
  24. package/lib/components/okr-flow/child-node/work-node.js +1 -7
  25. package/lib/components/okr-period-selector/select-cycle.js +151 -139
  26. package/lib/components/okr-progress-detail/index.css +0 -1
  27. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
  28. package/lib/components/okr-review/ReviewPop/index.js +4 -4
  29. package/lib/components/period-selector/common.js +4 -149
  30. package/lib/components/period-selector/components/selector/index.js +38 -103
  31. package/lib/components/period-selector/components/selector/style.js +9 -23
  32. package/lib/components/period-selector/index.js +28 -29
  33. package/lib/components/popup/index.js +1 -3
  34. package/lib/components/radio/index.css +0 -5
  35. package/lib/components/radio/radio.js +4 -12
  36. package/lib/components/table/index.css +1 -0
  37. package/lib/components/upload/components/uploadedPreview.js +54 -62
  38. package/lib/components/upload/index.js +57 -89
  39. package/lib/components/upload/style.js +7 -7
  40. package/lib/components/upload/type.js +15 -15
  41. package/lib/components/upvote/index.js +14 -37
  42. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +0 -4
  43. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +24 -50
  44. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +2 -11
  45. package/lib/components/user-selector/layout/index.css +1 -1
  46. package/lib/index.js +5 -49
  47. package/lib/pages/home-page/components/data-list/nav-selector/index.js +0 -18
  48. package/lib/pages/home-page/components/data-list/table/utils-function.js +3 -6
  49. package/lib/utils/auth.js +5 -46
  50. package/lib/utils/bs-global.js +2 -26
  51. package/lib/utils/tools.js +20 -140
  52. package/package.json +2 -2
  53. package/lib/components/avatar/icon-avatar/index.css +0 -15
  54. package/lib/components/avatar/icon-avatar/index.js +0 -50
  55. package/lib/components/avatar/num-avatar/index.css +0 -12
  56. package/lib/components/avatar/num-avatar/index.js +0 -34
  57. package/lib/components/button/admin-button/default.js +0 -35
  58. package/lib/components/button/admin-button/drop-down-arrow.js +0 -93
  59. package/lib/components/button/admin-button/index.css +0 -86
  60. package/lib/components/button/admin-button/index.js +0 -40
  61. package/lib/components/button/admin-button/primary.js +0 -33
  62. package/lib/components/button/admin-button/secondary.js +0 -35
  63. package/lib/components/button/default-button/index.css +0 -49
  64. package/lib/components/button/default-button/index.js +0 -51
  65. package/lib/components/button/export-button/index.css +0 -51
  66. package/lib/components/button/export-button/index.js +0 -81
  67. package/lib/components/button/images/daoru.svg +0 -18
  68. package/lib/components/button/index.js +0 -23
  69. package/lib/components/button/interface.js +0 -5
  70. package/lib/components/communication/index.css +0 -63
  71. package/lib/components/create-okr/animation/check-animation.js +0 -2746
  72. package/lib/components/create-okr/constant.js +0 -27
  73. package/lib/components/create-okr/createCycle.js +0 -171
  74. package/lib/components/create-okr/createSuccessCmp.js +0 -233
  75. package/lib/components/create-okr/createSuccessCmpWrapper.js +0 -20
  76. package/lib/components/create-okr/fields/date-cycle.js +0 -98
  77. package/lib/components/create-okr/fields/index.css +0 -346
  78. package/lib/components/create-okr/fields/index.js +0 -17
  79. package/lib/components/create-okr/fields/input-with-err-popup.js +0 -57
  80. package/lib/components/create-okr/fields/o-new-name.js +0 -197
  81. package/lib/components/create-okr/fields/okr-case.js +0 -98
  82. package/lib/components/create-okr/fields/okr-classify.js +0 -51
  83. package/lib/components/create-okr/fields/okr-create-suggest.js +0 -147
  84. package/lib/components/create-okr/fields/okr-new-user-selector.js +0 -106
  85. package/lib/components/create-okr/fields/okr-parent.js +0 -157
  86. package/lib/components/create-okr/fields/okr-type-detail.js +0 -196
  87. package/lib/components/create-okr/fields/okr-type.js +0 -131
  88. package/lib/components/create-okr/fields/okr-visibility-detail.js +0 -224
  89. package/lib/components/create-okr/fields/okr-visibility.js +0 -169
  90. package/lib/components/create-okr/img/check-normal.svg +0 -29
  91. package/lib/components/create-okr/img/check-right.svg +0 -16
  92. package/lib/components/create-okr/img/check-wrong.svg +0 -29
  93. package/lib/components/create-okr/img/create-success-head.png +0 -0
  94. package/lib/components/create-okr/img/create-success-left-quotation.svg +0 -14
  95. package/lib/components/create-okr/img/create-success-message.svg +0 -1
  96. package/lib/components/create-okr/img/create-success-right-quotation.svg +0 -14
  97. package/lib/components/create-okr/img/create-success-shadow.svg +0 -23
  98. package/lib/components/create-okr/img/example.svg +0 -11
  99. package/lib/components/create-okr/img/hand.svg +0 -12
  100. package/lib/components/create-okr/img/kr-add.svg +0 -12
  101. package/lib/components/create-okr/img/left-quotation.svg +0 -12
  102. package/lib/components/create-okr/img/light.svg +0 -1
  103. package/lib/components/create-okr/img/pack-up.js +0 -28
  104. package/lib/components/create-okr/img/qr-code.png +0 -0
  105. package/lib/components/create-okr/img/right-quotation.svg +0 -12
  106. package/lib/components/create-okr/img/shower.png +0 -0
  107. package/lib/components/create-okr/img/target.svg +0 -19
  108. package/lib/components/create-okr/img/teach-okr.svg +0 -17
  109. package/lib/components/create-okr/img/wave.png +0 -0
  110. package/lib/components/create-okr/img/weight.svg +0 -12
  111. package/lib/components/create-okr/index.css +0 -446
  112. package/lib/components/create-okr/index.js +0 -911
  113. package/lib/components/create-okr/interface.js +0 -5
  114. package/lib/components/create-okr/kr-items/index.css +0 -180
  115. package/lib/components/create-okr/kr-items/kr-item-weight.js +0 -194
  116. package/lib/components/create-okr/kr-items/krDatas.js +0 -299
  117. package/lib/components/create-okr/kr-items/krItem.js +0 -167
  118. package/lib/components/create-okr/objectType.js +0 -273
  119. package/lib/components/create-okr/request-api.js +0 -220
  120. package/lib/components/create-okr/style.js +0 -100
  121. package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +0 -124
  122. package/lib/components/create-okr/utils/helper.js +0 -99
  123. package/lib/components/create-okr/utils/index.js +0 -23
  124. package/lib/components/dynamic/components/condition-render/index.js +0 -20
  125. package/lib/components/dynamic/components/dangerous-html/index.js +0 -22
  126. package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -78
  127. package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -192
  128. package/lib/components/dynamic/components/obj-status/index.css +0 -22
  129. package/lib/components/dynamic/components/obj-status/index.js +0 -38
  130. package/lib/components/dynamic/components/percent/index.css +0 -21
  131. package/lib/components/dynamic/components/percent/index.js +0 -38
  132. package/lib/components/dynamic/components/title/index.css +0 -35
  133. package/lib/components/dynamic/components/title/index.js +0 -59
  134. package/lib/components/dynamic/constant.js +0 -96
  135. package/lib/components/dynamic/context/index.js +0 -13
  136. package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -101
  137. package/lib/components/dynamic/dynamic-item/components/header/index.js +0 -294
  138. package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
  139. package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
  140. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
  141. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
  142. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +0 -95
  143. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +0 -173
  144. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +0 -54
  145. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +0 -107
  146. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +0 -48
  147. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +0 -89
  148. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +0 -96
  149. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +0 -171
  150. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +0 -67
  151. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +0 -110
  152. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +0 -16
  153. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  154. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +0 -111
  155. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +0 -158
  156. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +0 -95
  157. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +0 -215
  158. package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +0 -16
  159. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  160. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +0 -91
  161. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +0 -125
  162. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
  163. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +0 -95
  164. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +0 -192
  165. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +0 -138
  166. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +0 -183
  167. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +0 -153
  168. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +0 -138
  169. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +0 -97
  170. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +0 -207
  171. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +0 -54
  172. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +0 -107
  173. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +0 -50
  174. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  175. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  176. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  177. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  178. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  179. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  180. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  181. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +0 -111
  182. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +0 -164
  183. package/lib/components/dynamic/dynamic-item/index.css +0 -128
  184. package/lib/components/dynamic/dynamic-item/index.js +0 -352
  185. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
  186. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  187. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  188. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  189. package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -126
  190. package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -157
  191. package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -107
  192. package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  193. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
  194. package/lib/components/dynamic/dynamic-liking/index.css +0 -81
  195. package/lib/components/dynamic/dynamic-liking/index.js +0 -76
  196. package/lib/components/dynamic/dynamic-liking/item.js +0 -90
  197. package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
  198. package/lib/components/dynamic/dynamic-list/index.css +0 -36
  199. package/lib/components/dynamic/dynamic-list/index.js +0 -61
  200. package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +0 -16
  201. package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +0 -30
  202. package/lib/components/dynamic/dynamic-topping/index.css +0 -130
  203. package/lib/components/dynamic/dynamic-topping/index.js +0 -78
  204. package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
  205. package/lib/components/dynamic/dynamic-topping/item.js +0 -138
  206. package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
  207. package/lib/components/dynamic/dynamic.css +0 -204
  208. package/lib/components/dynamic/dynamic.js +0 -391
  209. package/lib/components/dynamic/export-module/index.js +0 -33
  210. package/lib/components/dynamic/img/dynamic-P1.svg +0 -15
  211. package/lib/components/dynamic/img/dynamic-P2.svg +0 -15
  212. package/lib/components/dynamic/img/dynamic-P3.svg +0 -15
  213. package/lib/components/dynamic/img/dynamic-P4.svg +0 -15
  214. package/lib/components/dynamic/img/dynamic-P5.svg +0 -15
  215. package/lib/components/dynamic/img/dynamic-delay.svg +0 -17
  216. package/lib/components/dynamic/img/dynamic-desire.svg +0 -61
  217. package/lib/components/dynamic/img/dynamic-empty.png +0 -0
  218. package/lib/components/dynamic/img/dynamic-end.svg +0 -17
  219. package/lib/components/dynamic/img/dynamic-left-quoto.svg +0 -13
  220. package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
  221. package/lib/components/dynamic/img/dynamic-normal.svg +0 -17
  222. package/lib/components/dynamic/img/dynamic-promise.svg +0 -61
  223. package/lib/components/dynamic/img/dynamic-reword.svg +0 -24
  224. package/lib/components/dynamic/img/dynamic-right-quoto.svg +0 -13
  225. package/lib/components/dynamic/img/dynamic-risk.svg +0 -17
  226. package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
  227. package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
  228. package/lib/components/dynamic/img/dynamic-top.svg +0 -14
  229. package/lib/components/dynamic/index.js +0 -27
  230. package/lib/components/dynamic/interface.js +0 -5
  231. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
  232. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -37
  233. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
  234. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -37
  235. package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
  236. package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -37
  237. package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
  238. package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -42
  239. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  240. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  241. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  242. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  243. package/lib/components/dynamic/quick-operation/index.css +0 -51
  244. package/lib/components/dynamic/quick-operation/index.js +0 -112
  245. package/lib/components/dynamic/request-api.js +0 -92
  246. package/lib/components/dynamic/util.js +0 -140
  247. package/lib/components/file-list/components/single-file/index.css +0 -84
  248. package/lib/components/file-list/components/single-file/index.js +0 -115
  249. package/lib/components/file-list/img/new-file-list-doc.svg +0 -1
  250. package/lib/components/file-list/img/new-file-list-other.svg +0 -1
  251. package/lib/components/file-list/img/new-file-list-pdf.svg +0 -1
  252. package/lib/components/file-list/img/new-file-list-ppt.svg +0 -1
  253. package/lib/components/file-list/img/new-file-list-radio.svg +0 -1
  254. package/lib/components/file-list/img/new-file-list-video.svg +0 -1
  255. package/lib/components/file-list/img/new-file-list-xls.svg +0 -1
  256. package/lib/components/file-list/index.css +0 -5
  257. package/lib/components/file-list/index.js +0 -61
  258. package/lib/components/file-list/interface.js +0 -5
  259. package/lib/components/file-list/util.js +0 -78
  260. package/lib/components/img-viewer/icon/enlarge.js +0 -30
  261. package/lib/components/img-viewer/icon/left-rotate.js +0 -46
  262. package/lib/components/img-viewer/icon/right-rotate.js +0 -44
  263. package/lib/components/img-viewer/icon/shrink.js +0 -37
  264. package/lib/components/img-viewer/image/loading.gif +0 -0
  265. package/lib/components/img-viewer/index.css +0 -155
  266. package/lib/components/img-viewer/index.js +0 -228
  267. package/lib/components/img-viewer/interface.js +0 -5
  268. package/lib/components/img-viewer/util.js +0 -16
  269. package/lib/components/publish-dynamic-modal/index.js +0 -13
  270. package/lib/components/publish-dynamic-modal/interface.js +0 -5
  271. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +0 -3
  272. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +0 -191
  273. package/lib/components/publish-dynamic-modal/requist-api.js +0 -48
  274. package/lib/components/search-key-handle/index.js +0 -39
  275. package/lib/components/upload/img/doc.svg +0 -1
  276. package/lib/components/upload/img/other.svg +0 -1
  277. package/lib/components/upload/img/pdf.svg +0 -1
  278. package/lib/components/upload/img/ppt.svg +0 -1
  279. package/lib/components/upload/img/radio.svg +0 -1
  280. package/lib/components/upload/img/video.svg +0 -1
  281. package/lib/components/upload/img/xls.svg +0 -1
  282. package/lib/components/upload/index.css +0 -26
  283. package/lib/components/upload/util.js +0 -102
  284. package/lib/components-v1/buttonv2/ButtonLinked.js +0 -35
  285. package/lib/components-v1/buttonv2/ButtonOutlined.js +0 -64
  286. package/lib/components-v1/buttonv2/ButtonRounded.js +0 -101
  287. package/lib/components-v1/buttonv2/DefaultButton.js +0 -86
  288. package/lib/components-v1/buttonv2/index.js +0 -37
  289. package/lib/components-v1/buttonv2/style/style.js +0 -53
  290. package/lib/components-v1/buttonv2/style/theme.css +0 -3
  291. package/lib/components-v1/confirm/index.js +0 -158
  292. package/lib/pages/dynamic/index.css +0 -5
  293. package/lib/pages/dynamic/index.js +0 -25
  294. package/lib/pages/like-ranking/column.js +0 -141
  295. package/lib/pages/like-ranking/filter-buttons/department.js +0 -44
  296. package/lib/pages/like-ranking/filter-buttons/group.js +0 -34
  297. package/lib/pages/like-ranking/filter-buttons/index.css +0 -19
  298. package/lib/pages/like-ranking/filter-buttons/index.js +0 -44
  299. package/lib/pages/like-ranking/filter-buttons/modular.js +0 -110
  300. package/lib/pages/like-ranking/filter-buttons/name.js +0 -73
  301. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +0 -27
  302. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +0 -38
  303. package/lib/pages/like-ranking/filter-buttons/timer.js +0 -56
  304. package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
  305. package/lib/pages/like-ranking/image/loading.gif +0 -0
  306. package/lib/pages/like-ranking/image/ranking-1.png +0 -0
  307. package/lib/pages/like-ranking/image/ranking-2.png +0 -0
  308. package/lib/pages/like-ranking/image/ranking-3.png +0 -0
  309. package/lib/pages/like-ranking/index.css +0 -185
  310. package/lib/pages/like-ranking/index.js +0 -252
  311. package/lib/pages/like-ranking/mock.js +0 -366
  312. package/lib/pages/like-ranking/request-api.js +0 -15
  313. package/lib/utils/format-time.js +0 -161
  314. package/lib/utils/helpers.js +0 -41
  315. package/lib/utils/roundWeight.js +0 -105
  316. package/yarn-error.log +0 -15894
@@ -1,110 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _manager = _interopRequireDefault(require("../../../drawer/manager"));
15
-
16
- var _header = _interopRequireDefault(require("../components/header"));
17
-
18
- var _title = _interopRequireDefault(require("../../components/title"));
19
-
20
- var _util = require("../../util");
21
-
22
- var _constant = require("../../constant");
23
-
24
- var _tooltip = require("../../../tooltip");
25
-
26
- require("./index.css");
27
-
28
- var _excluded = ["data"];
29
-
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
-
32
- 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); }
33
-
34
- 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; }
35
-
36
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
37
-
38
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
39
-
40
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
41
-
42
- var prefix = "titaui-dynamic-kr-item";
43
-
44
- var DynamicKr = function DynamicKr(_ref) {
45
- var data = _ref.data,
46
- restProps = _objectWithoutProperties(_ref, _excluded);
47
-
48
- var endDate = data.endDate,
49
- startDate = data.startDate,
50
- name = data.name,
51
- krId = data.krId,
52
- principalUser = data.principalUser;
53
-
54
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
55
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
56
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
57
-
58
- var handleClickKrTitle = function handleClickKrTitle() {
59
- _manager["default"].open("krDetail", {
60
- krId: krId
61
- });
62
- };
63
-
64
- var handleClickOTitle = function handleClickOTitle() {
65
- _manager["default"].open("okrDetail", {
66
- okrId: data.obj.objId
67
- });
68
- };
69
-
70
- var renderDesc = (0, _react.useMemo)(function () {
71
- return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
72
- className: prefix + "__operate-desc"
73
- }, /*#__PURE__*/_react["default"].createElement("span", {
74
- className: prefix + "__operate-desc-wrapper"
75
- }, "\u8D1F\u8D23\u4E86", _constant.ObjTypeMapText[data.obj.objType], /*#__PURE__*/_react["default"].createElement("span", {
76
- className: prefix + "__object-name",
77
- onClick: handleClickOTitle
78
- }, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
79
- text: data.obj.objName,
80
- isPercent: true
81
- })), "\u4E0B\u5173\u952E\u6210\u679C")), /*#__PURE__*/_react["default"].createElement("span", {
82
- className: prefix + "-desc-operate-type",
83
- style: {
84
- background: feedTypeColor
85
- }
86
- }, feedTypeText));
87
- }, []);
88
- return /*#__PURE__*/_react["default"].createElement("div", {
89
- className: prefix
90
- }, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
91
- data: data
92
- }, restProps, {
93
- desc: renderDesc,
94
- user: principalUser
95
- })), /*#__PURE__*/_react["default"].createElement("div", {
96
- className: prefix + "__content"
97
- }, /*#__PURE__*/_react["default"].createElement("div", {
98
- className: prefix + "__title"
99
- }, /*#__PURE__*/_react["default"].createElement(_title["default"], {
100
- content: "KR\uFF1A".concat(name),
101
- onClickTitle: handleClickKrTitle
102
- })), /*#__PURE__*/_react["default"].createElement("div", {
103
- className: "".concat(prefix, "__content-time-range")
104
- }, /*#__PURE__*/_react["default"].createElement("i", {
105
- className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__content-time-range-icon"))
106
- }), /*#__PURE__*/_react["default"].createElement("span", null, startDate, "-", endDate))));
107
- };
108
-
109
- var _default = DynamicKr;
110
- exports["default"] = _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EStatusClass2StatusTypeText = void 0;
7
- var EStatusClass2StatusTypeText = {
8
- 2: '已完成',
9
- 1: '进行中',
10
- 4: '已取消',
11
- 3: '已延迟',
12
- 6: '暂停中',
13
- 0: '未开始',
14
- 5: '未接受'
15
- };
16
- exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
@@ -1,111 +0,0 @@
1
- .titaui-dynamic-milestone-item {
2
- border-radius: 12px;
3
- box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
4
- background: #ffffff;
5
- box-sizing: border-box;
6
- overflow: hidden;
7
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
8
- }
9
-
10
- .titaui-dynamic-milestone-item__content {
11
- height: 78px;
12
- display: flex;
13
- align-items: center;
14
- border-radius: 8px;
15
- background: #f6f7f9;
16
- padding: 16px 12px 16px 16px;
17
- box-sizing: border-box;
18
- margin-left: 69px;
19
- }
20
-
21
- .titaui-dynamic-milestone-item__content-info {
22
- flex: 1;
23
- display: flex;
24
- flex-direction: column;
25
- margin-left: 16px;
26
- overflow: hidden;
27
- }
28
-
29
- .titaui-dynamic-milestone-item__content-status-and-time-range {
30
- display: flex;
31
- align-items: center;
32
- font-size: 12px;
33
- font-weight: 400;
34
- color: #89919f;
35
- line-height: 18px;
36
- }
37
-
38
- .titaui-dynamic-milestone-item__content-status-text {
39
- margin-left: 4px;
40
- margin-right: 20px;
41
- }
42
-
43
- .titaui-dynamic-milestone-item__content-time-range {
44
- margin-left: 4px;
45
- }
46
-
47
- .titaui-dynamic-milestone-item__content-title {
48
- flex: 1;
49
- word-break: keep-all;
50
- white-space: nowrap;
51
- overflow: hidden;
52
- font-size: 16px;
53
- font-weight: 600;
54
- color: #3f4755;
55
- line-height: 24px;
56
- }
57
-
58
- .titaui-dynamic-milestone-item__content-title-text {
59
- cursor: pointer;
60
- }
61
-
62
- .titaui-dynamic-milestone-item__content-title-text:hover {
63
- color: #2879ff;
64
- }
65
-
66
- .titaui-dynamic-milestone-item__content-title-priority {
67
- width: 18px;
68
- height: 26px;
69
- margin-right: 4px;
70
- }
71
-
72
- .titaui-dynamic-milestone-item__object-name {
73
- font-size: 14px;
74
- color: #2879ff;
75
- line-height: 22px;
76
- margin: 0 4px;
77
- overflow: hidden;
78
- }
79
-
80
- .titaui-dynamic-milestone-item__object-name:hover {
81
- cursor: pointer;
82
- color: #5c8eff;
83
- }
84
-
85
- .titaui-dynamic-milestone-item__operate-desc {
86
- font-size: 14px;
87
- font-weight: 400;
88
- color: #89919f;
89
- line-height: 22px;
90
- margin: 0 8px 0 4px;
91
- overflow: hidden;
92
- }
93
-
94
- .titaui-dynamic-milestone-item__operate-desc-wrapper {
95
- display: flex;
96
- }
97
-
98
- .titaui-dynamic-milestone-item-desc-operate-type {
99
- display: inline-flex;
100
- align-items: center;
101
- justify-content: center;
102
- padding: 0 6px;
103
- height: 18px;
104
- min-width: 40px;
105
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
106
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
107
- border-radius: 14px 10px 10px 4px;
108
- font-size: 12px;
109
- color: #ffffff;
110
- line-height: 18px;
111
- }
@@ -1,158 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _header = _interopRequireDefault(require("../components/header"));
15
-
16
- var _icon = _interopRequireDefault(require("../components/icon"));
17
-
18
- var _constant = require("./constant");
19
-
20
- var _constant2 = require("../../constant");
21
-
22
- var _context = require("../../context");
23
-
24
- var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
25
-
26
- var _tooltip = require("../../../tooltip");
27
-
28
- var _util = require("../../util");
29
-
30
- var _manager = _interopRequireDefault(require("../../../drawer/manager"));
31
-
32
- var _milestone = _interopRequireDefault(require("./img/milestone.png"));
33
-
34
- require("./index.css");
35
-
36
- var _excluded = ["data"];
37
-
38
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
39
-
40
- 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); }
41
-
42
- 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; }
43
-
44
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45
-
46
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
47
-
48
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
49
-
50
- var prefix = "titaui-dynamic-milestone-item";
51
-
52
- var DynamicMilestone = function DynamicMilestone(_ref) {
53
- var data = _ref.data,
54
- restProps = _objectWithoutProperties(_ref, _excluded);
55
-
56
- var status = data.status,
57
- name = data.name,
58
- startDate = data.startDate,
59
- endDate = data.endDate,
60
- feedType = data.feedType,
61
- obj = data.obj,
62
- principalUser = data.principalUser;
63
-
64
- var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
65
- searchKeyWord = _useContext.searchKeyWord;
66
-
67
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
68
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
69
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
70
-
71
- var handleClickTaskTitle = function handleClickTaskTitle() {
72
- window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
73
- };
74
-
75
- var handleClickTitle = function handleClickTitle() {
76
- var objType = obj.objType,
77
- objId = obj.objId;
78
-
79
- if (objType === _constant2.EObjType.Kr) {
80
- _manager["default"].open("krDetail", {
81
- krId: objId
82
- });
83
- }
84
-
85
- if (objType === _constant2.EObjType.O) {
86
- _manager["default"].open("okrDetail", {
87
- okrId: objId
88
- });
89
- }
90
-
91
- if (objType === _constant2.EObjType.Project) {
92
- window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + objId));
93
- }
94
- };
95
-
96
- var renderName = (0, _react.useMemo)(function () {
97
- return /*#__PURE__*/_react["default"].createElement("span", {
98
- className: prefix + "__content-title-text",
99
- onClick: handleClickTaskTitle
100
- }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
101
- str: name,
102
- keyWord: searchKeyWord
103
- }));
104
- }, [name, searchKeyWord]);
105
- var renderDesc = (0, _react.useMemo)(function () {
106
- return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
107
- className: prefix + "__operate-desc"
108
- }, /*#__PURE__*/_react["default"].createElement("span", {
109
- className: prefix + "__operate-desc-wrapper"
110
- }, "\u8D1F\u8D23\u4E86\u9879\u76EE", /*#__PURE__*/_react["default"].createElement("span", {
111
- className: prefix + "__object-name",
112
- onClick: handleClickTitle
113
- }, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
114
- text: obj.objName,
115
- isPercent: true
116
- })), "\u4E0B\u91CC\u7A0B\u7891")), /*#__PURE__*/_react["default"].createElement("span", {
117
- className: prefix + "-desc-operate-type",
118
- style: {
119
- background: feedTypeColor
120
- }
121
- }, feedTypeText));
122
- }, []);
123
- return /*#__PURE__*/_react["default"].createElement("div", {
124
- className: prefix
125
- }, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
126
- data: data
127
- }, restProps, {
128
- desc: renderDesc,
129
- user: principalUser
130
- })), /*#__PURE__*/_react["default"].createElement("div", {
131
- className: "".concat(prefix, "__content")
132
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
133
- background: "#5C8EFF",
134
- boxShadow: "0px 2px 6px 0px rgba(92, 142, 255, 0.4)",
135
- imgUrl: _milestone["default"]
136
- }), /*#__PURE__*/_react["default"].createElement("div", {
137
- className: prefix + "__content-info"
138
- }, /*#__PURE__*/_react["default"].createElement("div", {
139
- className: prefix + "__content-title"
140
- }, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
141
- isPercent: true,
142
- text: renderName,
143
- minusWidth: 30
144
- })), /*#__PURE__*/_react["default"].createElement("div", {
145
- className: prefix + "__content-status-and-time-range"
146
- }, /*#__PURE__*/_react["default"].createElement("i", {
147
- className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
148
- }), /*#__PURE__*/_react["default"].createElement("span", {
149
- className: prefix + "__content-status-text"
150
- }, _constant.EStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
151
- className: (0, _classnames["default"])("tu-icon-deferred")
152
- }), /*#__PURE__*/_react["default"].createElement("span", {
153
- className: prefix + "__content-time-range"
154
- }, startDate, "-", endDate)))));
155
- };
156
-
157
- var _default = DynamicMilestone;
158
- exports["default"] = _default;
@@ -1,95 +0,0 @@
1
- .titaui-dynamic-progress-item {
2
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
3
- }
4
-
5
- .titaui-dynamic-progress-item__content {
6
- margin-left: 69px;
7
- }
8
-
9
- .titaui-dynamic-progress-item__title {
10
- display: flex;
11
- align-items: center;
12
- overflow: hidden;
13
- }
14
-
15
- .titaui-dynamic-progress-item__description {
16
- font-size: 14px;
17
- color: #3F4755;
18
- line-height: 22px;
19
- display: flex;
20
- margin-top: 12px;
21
- }
22
-
23
- .titaui-dynamic-progress-item__description-quoto {
24
- width: 12px;
25
- height: 12px;
26
- }
27
-
28
- .titaui-dynamic-progress-item__description-quoto--left {
29
- margin-right: 8px;
30
- margin-top: -6px;
31
- }
32
-
33
- .titaui-dynamic-progress-item__description-quoto--right {
34
- margin-left: 8px;
35
- margin-top: 4px;
36
- }
37
-
38
- .titaui-dynamic-progress-item__status-left {
39
- margin-left: 12px;
40
- }
41
-
42
- .titaui-dynamic-progress-item__percent-left {
43
- margin-left: 8px;
44
- }
45
-
46
- .titaui-dynamic-progress-item__classify {
47
- display: flex;
48
- width: 18px;
49
- margin-left: 8px;
50
- }
51
-
52
- .titaui-dynamic-progress-item__classify--desire {
53
- background: url("../../img/dynamic-desire.svg") no-repeat;
54
- }
55
-
56
- .titaui-dynamic-progress-item__classify--promise {
57
- background: url("../../img/dynamic-promise.svg") no-repeat;
58
- }
59
-
60
- .titaui-dynamic-progress-item__object-name {
61
- font-size: 14px;
62
- color: #2879ff;
63
- line-height: 22px;
64
- margin: 0 4px;
65
- overflow: hidden;
66
- }
67
-
68
- .titaui-dynamic-progress-item__object-name:hover {
69
- cursor: pointer;
70
- color: #5c8eff;
71
- }
72
-
73
- .titaui-dynamic-progress-item__operate-desc {
74
- font-size: 14px;
75
- font-weight: 400;
76
- color: #89919f;
77
- line-height: 22px;
78
- margin: 0 8px 0 4px;
79
- overflow: hidden;
80
- }
81
-
82
- .titaui-dynamic-progress-item-desc-operate-type {
83
- display: inline-flex;
84
- align-items: center;
85
- justify-content: center;
86
- padding: 0 2px;
87
- height: 18px;
88
- min-width: 40px;
89
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
90
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
91
- border-radius: 14px 10px 10px 4px;
92
- font-size: 12px;
93
- color: #ffffff;
94
- line-height: 18px;
95
- }