@titaui/pc 1.11.4-1 → 1.11.4-12

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 (406) hide show
  1. package/lib/components/avatar/text-avatar/index.css +7 -0
  2. package/lib/components/avatar/text-avatar/index.js +32 -7
  3. package/lib/components/button/rect-btn/index.js +7 -7
  4. package/lib/components/change-okr-modal/Item.js +15 -15
  5. package/lib/components/communication/index.js +30 -29
  6. package/lib/components/date-picker/BodyItem.js +3 -3
  7. package/lib/components/date-picker/CalendarHeader.js +3 -3
  8. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  9. package/lib/components/drawer/index.js +7 -6
  10. package/lib/components/dynamic/constant.js +13 -6
  11. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
  12. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
  13. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
  14. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
  15. package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
  16. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
  17. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
  18. package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
  19. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
  20. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
  21. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
  22. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
  23. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
  24. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
  25. package/lib/components/dynamic/dynamic-item/index.js +34 -13
  26. package/lib/components/dynamic/dynamic-list/index.js +5 -13
  27. package/lib/components/e-priority/index.js +18 -12
  28. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  29. package/lib/components/eReport/eReportShare/index.js +11 -11
  30. package/lib/components/emotions-selector/selector-pop.js +3 -3
  31. package/lib/components/ereport-list/index.js +3 -3
  32. package/lib/components/file-list/components/single-file/index.js +11 -11
  33. package/lib/components/form/form-fields/date/index.js +15 -11
  34. package/lib/components/form/form-fields/input/index.js +10 -10
  35. package/lib/components/form/form-fields/user/index.css +22 -2
  36. package/lib/components/form/form-fields/user/index.js +18 -8
  37. package/lib/components/form/form-fields/user/user-input.js +15 -6
  38. package/lib/components/icon-button-list/index.css +2 -57
  39. package/lib/components/icon-button-list/index.js +10 -7
  40. package/lib/components/img-viewer/index.css +10 -3
  41. package/lib/components/img-viewer/index.js +57 -18
  42. package/lib/components/mblog/components/MblogAction.js +3 -3
  43. package/lib/components/mblog/index.js +31 -30
  44. package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
  45. package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
  46. package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
  47. package/lib/components/menus/components/menu-tree/index.css +4 -2
  48. package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
  49. package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
  50. package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
  51. package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
  52. package/lib/components/nav-top/components/menu/index.js +14 -14
  53. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
  54. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
  55. package/lib/components/nav-top/components/user-message/constant.js +1 -0
  56. package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
  57. package/lib/components/nav-top/components/user-message/index.js +23 -20
  58. package/lib/components/nav-top/request.apis.js +3 -1
  59. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
  60. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  61. package/lib/components/okr-detail/detail-header/actions.js +62 -66
  62. package/lib/components/okr-detail/detail-header/index.css +2 -2
  63. package/lib/components/okr-detail/detail-header/index.js +205 -194
  64. package/lib/components/okr-detail/index.js +21 -19
  65. package/lib/components/okr-flow/child-node/index.css +67 -21
  66. package/lib/components/okr-flow/child-node/work-node.js +61 -24
  67. package/lib/components/okr-flow/empty/index.css +8 -1
  68. package/lib/components/okr-flow/export-modal/index.js +42 -18
  69. package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
  70. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
  71. package/lib/components/okr-flow/images/loading-light.gif +0 -0
  72. package/lib/components/okr-flow/okr-map/index.js +43 -22
  73. package/lib/components/okr-flow/request-apis.js +15 -8
  74. package/lib/components/okr-flow/root-node/index.css +2 -2
  75. package/lib/components/okr-flow/root-node/index.js +26 -25
  76. package/lib/components/okr-flow/utils/index.js +45 -29
  77. package/lib/components/okr-flow/utils/tree-handler.js +29 -18
  78. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  79. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  80. package/lib/components/okrcase-library/index.css +6 -4
  81. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
  82. package/lib/components/pagination/index.css +3 -3
  83. package/lib/components/pagination/select.css +58 -23
  84. package/lib/components/period-selector/index.css +9 -3
  85. package/lib/components/period-selector/index.js +14 -11
  86. package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
  87. package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
  88. package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
  89. package/lib/components/picker/components/picker-trigger/index.css +15 -0
  90. package/lib/components/picker/components/picker-trigger/index.js +8 -8
  91. package/lib/components/popup/index.js +4 -4
  92. package/lib/components/radio/index.css +9 -9
  93. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  94. package/lib/components/rich-editor/models/schema.js +6 -6
  95. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  96. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  97. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  98. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  99. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  100. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  101. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  102. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  103. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  104. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  105. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  106. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  107. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  108. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  109. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  110. package/lib/components/scroll-container/index.js +423 -0
  111. package/lib/components/scroll-container/style.css +35 -0
  112. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  113. package/lib/components/select/Option.js +3 -3
  114. package/lib/components/superset-charts/components/chart/index.js +1 -1
  115. package/lib/components/superset-charts/utils/axios.js +5 -13
  116. package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
  117. package/lib/components/survey-model/index.css +141 -0
  118. package/lib/components/survey-model/index.js +265 -0
  119. package/lib/components/survey-model/instance.js +86 -0
  120. package/lib/components/survey-model/request-api.js +80 -0
  121. package/lib/components/task-tree/helper.js +61 -0
  122. package/lib/components/task-tree/images/P1.svg +15 -0
  123. package/lib/components/task-tree/images/P2.svg +15 -0
  124. package/lib/components/task-tree/images/P3.svg +15 -0
  125. package/lib/components/task-tree/images/P4.svg +15 -0
  126. package/lib/components/task-tree/images/P5.svg +15 -0
  127. package/lib/components/task-tree/images/arrow.svg +9 -0
  128. package/lib/components/task-tree/images/empty-131.png +0 -0
  129. package/lib/components/task-tree/images/followed.svg +33 -0
  130. package/lib/components/task-tree/images/nice.svg +108 -0
  131. package/lib/components/task-tree/images/struc12.png +0 -0
  132. package/lib/components/task-tree/images/struc2.png +0 -0
  133. package/lib/components/task-tree/images/xialat-s.svg +13 -0
  134. package/lib/components/task-tree/index.js +22 -0
  135. package/lib/components/task-tree/mock.js +944 -0
  136. package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
  137. package/lib/components/task-tree/request-apis.js +88 -0
  138. package/lib/components/task-tree/task-item-node/constant.js +45 -0
  139. package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
  140. package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
  141. package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
  142. package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
  143. package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
  144. package/lib/components/task-tree/task-item-node/index.css +289 -0
  145. package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
  146. package/lib/components/task-tree/task-tree.css +16 -0
  147. package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
  148. package/lib/components/time-picker/index.css +6 -0
  149. package/lib/components/time-picker/time-picker.js +45 -33
  150. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  151. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
  152. package/lib/components/wechat-btn/index.css +14 -0
  153. package/lib/components/wechat-btn/index.js +338 -0
  154. package/lib/components-v1/animate/AnimateChild.js +3 -3
  155. package/lib/components-v1/avatar/index.js +3 -3
  156. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  157. package/lib/components-v1/progress/CircleProgress.js +3 -3
  158. package/lib/components-v1/radio/radio.js +3 -3
  159. package/lib/components-v1/radio/style/index.css +8 -8
  160. package/lib/components-v1/select/Option.js +3 -3
  161. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  162. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  163. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  164. package/lib/index.js +99 -91
  165. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
  166. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
  167. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
  168. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
  169. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
  170. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
  171. package/lib/pages/okr-map/number-select/index.css +12 -9
  172. package/lib/pages/okr-map/number-select/index.js +3 -3
  173. package/lib/utils/auth.js +65 -8
  174. package/lib/utils/bs-global.js +18 -6
  175. package/lib/utils/open-data.js +63 -43
  176. package/package.json +6 -2
  177. package/.eslintignore +0 -3
  178. package/.eslintrc.js +0 -223
  179. package/.husky/pre-commit +0 -4
  180. package/.prettierignore +0 -31
  181. package/.prettierrc.js +0 -90
  182. package/.vscode/settings.json +0 -5
  183. package/es/components/cascader/time.js +0 -31
  184. package/es/components/common-share/request-apis.js +0 -56
  185. package/es/components/confidence/heart.js +0 -66
  186. package/es/components/create-okr-modal/fields/index.js +0 -17
  187. package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
  188. package/es/components/date-picker/BodyItem.js +0 -121
  189. package/es/components/date-picker/CalendarBody.js +0 -157
  190. package/es/components/date-picker/CalendarHeader.js +0 -187
  191. package/es/components/date-picker/index.js +0 -157
  192. package/es/components/date-range-picker/index.js +0 -210
  193. package/es/components/dialog/index.js +0 -119
  194. package/es/components/dialog-confirm/index.js +0 -154
  195. package/es/components/drop-selector/icon-item.js +0 -40
  196. package/es/components/drop-selector/index.js +0 -179
  197. package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  198. package/es/components/dynamic/dynamic-liking/mock.js +0 -83
  199. package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
  200. package/es/components/e-priority/index.js +0 -88
  201. package/es/components/grid-layout/commen-components/index.js +0 -73
  202. package/es/components/grid-layout/image/could.js +0 -8
  203. package/es/components/grid-layout/image/lv.js +0 -8
  204. package/es/components/grid-layout/image/tita-mask.js +0 -8
  205. package/es/components/help-card/request-api.js +0 -35
  206. package/es/components/icon-button-list/index.js +0 -65
  207. package/es/components/menus/context.js +0 -18
  208. package/es/components/menus/precls.js +0 -8
  209. package/es/components/okr-detail/auth.js +0 -197
  210. package/es/components/okr-detail/components/ao-nice/index.js +0 -245
  211. package/es/components/okr-detail/components/block-line/index.js +0 -20
  212. package/es/components/okr-detail/components/header/index.js +0 -211
  213. package/es/components/okr-detail/components/icon-text/index.js +0 -116
  214. package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
  215. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
  216. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
  217. package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
  218. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
  219. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
  220. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
  221. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
  222. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
  223. package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
  224. package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
  225. package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
  226. package/es/components/okr-detail/components/padding-layout.js +0 -22
  227. package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
  228. package/es/components/okr-detail/context.js +0 -30
  229. package/es/components/okr-detail/e-list/index.js +0 -243
  230. package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
  231. package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
  232. package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
  233. package/es/components/okr-detail/e-list/search-form/index.js +0 -143
  234. package/es/components/okr-detail/error-page/index.js +0 -33
  235. package/es/components/okr-detail/index.js +0 -428
  236. package/es/components/okr-detail/loading/index.js +0 -28
  237. package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
  238. package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
  239. package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
  240. package/es/components/okr-detail/okr-list/empty/index.js +0 -48
  241. package/es/components/okr-detail/okr-list/index.js +0 -524
  242. package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
  243. package/es/components/okr-detail/store.js +0 -1
  244. package/es/components/okr-flow/child-node/fields/creator.js +0 -175
  245. package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
  246. package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
  247. package/es/components/okr-flow/child-node/helper.js +0 -35
  248. package/es/components/okr-flow/child-node/index.js +0 -110
  249. package/es/components/okr-flow/child-node/kr-node.js +0 -75
  250. package/es/components/okr-flow/child-node/work-node.js +0 -242
  251. package/es/components/okr-flow/context.js +0 -14
  252. package/es/components/okr-flow/empty/index.js +0 -29
  253. package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
  254. package/es/components/okr-flow/index.js +0 -24
  255. package/es/components/okr-flow/mini-map/index.js +0 -112
  256. package/es/components/okr-flow/mini-map/map.js +0 -145
  257. package/es/components/okr-flow/mini-map/mini-node.js +0 -57
  258. package/es/components/okr-flow/mini-map/utils.js +0 -79
  259. package/es/components/okr-flow/okr-map/index.js +0 -192
  260. package/es/components/okr-flow/open-data/index.js +0 -115
  261. package/es/components/okr-flow/precls.js +0 -8
  262. package/es/components/okr-flow/request-apis.js +0 -118
  263. package/es/components/okr-flow/root-node/index.js +0 -229
  264. package/es/components/okr-flow/utils/config.js +0 -18
  265. package/es/components/okr-flow/utils/helper.js +0 -36
  266. package/es/components/okr-flow/utils/index.js +0 -66
  267. package/es/components/okr-flow/utils/tree-handler.js +0 -323
  268. package/es/components/okr-progress-modal/helper.js +0 -156
  269. package/es/components/okr-progress-modal/request-apis.js +0 -34
  270. package/es/components/okr-share/request-apis.js +0 -56
  271. package/es/components/okrcase-library/server/network.js +0 -407
  272. package/es/components/pagination/locale/en_US.js +0 -22
  273. package/es/components/pagination/locale/zh_CN.js +0 -22
  274. package/es/components/point-demo/drop-down-box/index.js +0 -159
  275. package/es/components/point-demo/index.js +0 -533
  276. package/es/components/point-demo/input/index.js +0 -176
  277. package/es/components/point-demo/point-demo.js +0 -75
  278. package/es/components/point-demo/popup/index.js +0 -113
  279. package/es/components/point-demo/popup/placement.js +0 -44
  280. package/es/components/range-picker-pop/index.js +0 -273
  281. package/es/components/scrollbar/simplebar/helpers.js +0 -59
  282. package/es/components/scrollbar/simplebar/index.js +0 -91
  283. package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
  284. package/es/components/scrollbar/simplebar/simplebar.js +0 -852
  285. package/es/components/scrollbar/simplebar-react.js +0 -163
  286. package/es/components/search-dropdown/index.js +0 -40
  287. package/es/components/search-input/index.js +0 -126
  288. package/es/components/select/Option.js +0 -94
  289. package/es/components/select/index.js +0 -330
  290. package/es/components/selector-input/debounce.js +0 -36
  291. package/es/components/selector-input/index.js +0 -109
  292. package/es/components/slider-input/index.js +0 -119
  293. package/es/components/switch/index.js +0 -39
  294. package/es/components/table/index.js +0 -275
  295. package/es/components/tabs/index.js +0 -63
  296. package/es/components/task-relation-modal/tree-node/index.js +0 -58
  297. package/es/components/tita-chart/charts/img/could.js +0 -8
  298. package/es/components/tooltip/error-tip.js +0 -24
  299. package/es/components/tooltip/index.js +0 -21
  300. package/es/components/tree/index.js +0 -79
  301. package/es/components/tree/precls.js +0 -8
  302. package/es/components/upvote/request-apis.js +0 -45
  303. package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
  304. package/es/components/user-selector/action-btns/btn-ok.js +0 -21
  305. package/es/components/user-selector/action-btns/index.js +0 -27
  306. package/es/components/user-selector/context.js +0 -18
  307. package/es/components/user-selector/empty/group.js +0 -55
  308. package/es/components/user-selector/empty/index.js +0 -28
  309. package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
  310. package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
  311. package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
  312. package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
  313. package/es/components/user-selector/index.js +0 -25
  314. package/es/components/user-selector/layout/index.js +0 -25
  315. package/es/components/user-selector/loading/index.js +0 -18
  316. package/es/components/user-selector/request-apis.js +0 -180
  317. package/es/components/user-selector/searched-panel/index.js +0 -139
  318. package/es/components/user-selector/searched-panel/result-part.js +0 -43
  319. package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
  320. package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
  321. package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
  322. package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
  323. package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
  324. package/es/components/user-selector/utils.js +0 -139
  325. package/es/components/viewer/ImageListRender.js +0 -143
  326. package/es/components/viewer/index.js +0 -168
  327. package/es/components/word-cloud/index.js +0 -109
  328. package/es/components/word-cloud/request-apis.js +0 -26
  329. package/es/components-v1/animate/AnimateChild.js +0 -76
  330. package/es/components-v1/animate/animate.js +0 -148
  331. package/es/components-v1/animate/index.js +0 -13
  332. package/es/components-v1/dom/index.js +0 -30
  333. package/es/components-v1/placement/index.js +0 -13
  334. package/es/components-v1/placement/placement.js +0 -111
  335. package/es/components-v1/placement/placementInner.js +0 -139
  336. package/es/components-v1/pop/Pop.js +0 -246
  337. package/es/components-v1/pop/PopInner.js +0 -163
  338. package/es/components-v1/pop/index.js +0 -13
  339. package/es/components-v1/progress/CircleProgress.js +0 -152
  340. package/es/components-v1/progress/LineProgress.js +0 -83
  341. package/es/components-v1/progress/index.js +0 -80
  342. package/es/components-v1/select/Option.js +0 -94
  343. package/es/components-v1/select/index.js +0 -330
  344. package/es/components-v1/utils/animate/animate.js +0 -103
  345. package/es/components-v1/utils/animate/event.js +0 -79
  346. package/es/components-v1/utils/dom/index.js +0 -30
  347. package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
  348. package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
  349. package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
  350. package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
  351. package/es/components-v1/utils/placement/placement.js +0 -76
  352. package/es/index.js +0 -777
  353. package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
  354. package/es/pages/appointment-demo/index.js +0 -649
  355. package/es/pages/appointment-demo/input/index.js +0 -176
  356. package/es/pages/appointment-demo/popup/index.js +0 -113
  357. package/es/pages/appointment-demo/popup/placement.js +0 -44
  358. package/es/pages/group-management/components/checkbox/index.js +0 -28
  359. package/es/pages/group-management/components/input-form/index.js +0 -174
  360. package/es/pages/group-management/components/radio/index.js +0 -21
  361. package/es/pages/group-management/components/table/index.js +0 -174
  362. package/es/pages/group-management/groupInterface.js +0 -293
  363. package/es/pages/group-management/index.js +0 -13
  364. package/es/pages/group-management/page-view/empty.js +0 -111
  365. package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
  366. package/es/pages/group-management/page-view/index.js +0 -412
  367. package/es/pages/group-management/table/index.js +0 -104
  368. package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
  369. package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
  370. package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
  371. package/es/pages/group-management/tree/group-form/index.js +0 -207
  372. package/es/pages/group-management/tree/index.js +0 -168
  373. package/es/pages/group-management/tree/operation-panel.js +0 -41
  374. package/es/pages/group-management/tree/trigger-render.js +0 -99
  375. package/es/pages/like-ranking/mock.js +0 -366
  376. package/es/pages/okr-map/export-modules/index.js +0 -1
  377. package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
  378. package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
  379. package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
  380. package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
  381. package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
  382. package/es/pages/okr-map/hooks/useStorage.js +0 -96
  383. package/es/pages/okr-map/index.js +0 -18
  384. package/es/pages/okr-map/level2-search/depart.js +0 -53
  385. package/es/pages/okr-map/level2-search/group.js +0 -69
  386. package/es/pages/okr-map/level2-search/index.js +0 -51
  387. package/es/pages/okr-map/level2-search/level2-input.js +0 -46
  388. package/es/pages/okr-map/level2-search/user.js +0 -54
  389. package/es/pages/okr-map/no-okr/index.js +0 -24
  390. package/es/pages/okr-map/number-select/index.js +0 -81
  391. package/es/pages/okr-map/open-data/index.js +0 -115
  392. package/es/pages/okr-map/precls.js +0 -8
  393. package/es/pages/okr-map/request-apis.js +0 -76
  394. package/es/pages/okr-map/share-dialog/index.js +0 -122
  395. package/es/pages/okr-map/unsupport-ie/index.js +0 -83
  396. package/es/pages/okr-map/utils.js +0 -51
  397. package/es/utils/auth.js +0 -294
  398. package/es/utils/bs-global.js +0 -114
  399. package/es/utils/local-storage.js +0 -42
  400. package/es/utils/mblog.js +0 -33
  401. package/es/utils/mock-bsglobal.js +0 -1837
  402. package/es/utils/open-data.js +0 -341
  403. package/es/utils/request-v1.js +0 -115
  404. package/es/utils/request.js +0 -183
  405. package/es/utils/tools.js +0 -286
  406. package/yarn-error.log +0 -21252
@@ -0,0 +1,289 @@
1
+ .titaui-task-tree__e-task-node {
2
+ display: flex;
3
+ align-items: center;
4
+ padding: 2px 0;
5
+ width: 100%;
6
+ }
7
+
8
+ .titaui-task-tree__e-task-node-prefix {
9
+ position: relative;
10
+ top: 2px;
11
+ display: inline-block;
12
+ vertical-align: top;
13
+ }
14
+
15
+ .titaui-task-tree__e-task-node-prefix .tu-icon-jiantou-right:before {
16
+ color: #89919f;
17
+ }
18
+
19
+ .titaui-task-tree__e-task-node-title {
20
+ height: 22px;
21
+ font-size: 14px;
22
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
23
+ color: #3f4755;
24
+ line-height: 22px;
25
+ overflow: hidden;
26
+ white-space: nowrap;
27
+ word-break: keep-all;
28
+ padding-top: 1px;
29
+ flex: 1;
30
+ }
31
+
32
+ .titaui-task-tree__e-task-node-priority {
33
+ display: inline-block;
34
+ margin-right: 4px;
35
+ vertical-align: top;
36
+ }
37
+
38
+ .titaui-task-tree__e-task-node-priority > span {
39
+ position: relative;
40
+ top: 1px;
41
+ display: inline-block;
42
+ vertical-align: text-bottom;
43
+ height: 16px;
44
+ width: 16px;
45
+ }
46
+
47
+ .titaui-task-tree__e-task-node-priority-p1 {
48
+ background: url(../images/P1.svg) transparent no-repeat 50% 50%;
49
+ }
50
+
51
+ .titaui-task-tree__e-task-node-priority-p2 {
52
+ background: url(../images/P2.svg) transparent no-repeat 50% 50%;
53
+ }
54
+
55
+ .titaui-task-tree__e-task-node-priority-p3 {
56
+ background: url(../images/P3.svg) transparent no-repeat 50% 50%;
57
+ }
58
+
59
+ .titaui-task-tree__e-task-node-priority-p4 {
60
+ background: url(../images/P4.svg) transparent no-repeat 50% 50%;
61
+ }
62
+
63
+ .titaui-task-tree__e-task-node-priority-p5 {
64
+ background: url(../images/P5.svg) transparent no-repeat 50% 50%;
65
+ }
66
+
67
+ .titaui-task-tree__e-task-node-actions {
68
+ display: flex;
69
+ align-items: center;
70
+ float: right;
71
+ }
72
+
73
+ .titaui-task-tree__e-task-node-actions-user {
74
+ display: inline-block;
75
+ width: 64px;
76
+ margin-left: 16px;
77
+ }
78
+
79
+ .titaui-task-tree__e-task-node-actions-date {
80
+ font-size: 12px;
81
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
82
+ color: #89919f;
83
+ line-height: 18px;
84
+ display: inline-flex;
85
+ align-items: center;
86
+ justify-content: flex-end;
87
+ box-sizing: border-box;
88
+ width: 78px;
89
+ height: 26px;
90
+ padding: 4px;
91
+ text-align: left;
92
+ line-height: 26px;
93
+ }
94
+
95
+ .titaui-task-tree__e-task-node-actions-date > span {
96
+ vertical-align: text-bottom;
97
+ }
98
+
99
+ .titaui-task-tree__e-task-node-actions-progress {
100
+ position: relative;
101
+ top: 3px;
102
+ color: #89919f;
103
+ cursor: auto;
104
+ width: 64px;
105
+ margin-left: 16px;
106
+ margin-right: 4px;
107
+ }
108
+
109
+ .titaui-task-tree__e-task-node-actions-progress .tooltip-text-wrapper {
110
+ margin-left: 4px;
111
+ }
112
+
113
+ .titaui-task-tree__e-task-node-actions-connect {
114
+ display: inline-block;
115
+ color: #cccccc;
116
+ margin-left: 27px;
117
+ margin-right: 10px;
118
+ }
119
+
120
+ .titaui-task-tree__e-task-node-actions-connect:hover {
121
+ color: #2879ff;
122
+ }
123
+
124
+ .titaui-task-tree__e-task-node-select-priority {
125
+ display: inline-block;
126
+ width: 16px;
127
+ height: 16px;
128
+ margin-right: 10px;
129
+ vertical-align: text-bottom;
130
+ }
131
+
132
+ .titaui-task-tree__e-project-node {
133
+ position: relative;
134
+ display: flex;
135
+ align-items: center;
136
+ width: 100%;
137
+ padding: 2px 0;
138
+ }
139
+
140
+ .titaui-task-tree__e-project-node-prefix {
141
+ display: inline-block;
142
+ font-size: 14px;
143
+ width: 21px;
144
+ color: #89919f;
145
+ line-height: 1;
146
+ }
147
+
148
+ .titaui-task-tree__e-project-node-title {
149
+ display: inline-flex;
150
+ font-size: 14px;
151
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
152
+ color: #3f4755;
153
+ line-height: 22px;
154
+ overflow: hidden;
155
+ white-space: nowrap;
156
+ word-break: keep-all;
157
+ flex: 1;
158
+ }
159
+
160
+ .titaui-task-tree__e-project-node-title-name {
161
+ overflow: hidden;
162
+ }
163
+
164
+ .titaui-task-tree__e-project-node-title-approvaling {
165
+ display: inline-flex;
166
+ align-items: center;
167
+ justify-content: center;
168
+ min-width: 36px;
169
+ padding: 0 6px;
170
+ height: 20px;
171
+ font-size: 12px;
172
+ font-weight: 400;
173
+ color: #f05e5e;
174
+ background: rgba(240, 94, 94, 0.1);
175
+ border-radius: 10px;
176
+ margin-left: 8px;
177
+ }
178
+
179
+ .titaui-task-tree__e-project-node-gray {
180
+ color: #bfc7d5 !important;
181
+ }
182
+
183
+ .titaui-task-tree__e-project-node-priority {
184
+ display: inline-block;
185
+ margin-right: 4px;
186
+ vertical-align: top;
187
+ }
188
+
189
+ .titaui-task-tree__e-project-node-priority > span {
190
+ position: relative;
191
+ top: 1px;
192
+ display: inline-block;
193
+ vertical-align: text-bottom;
194
+ height: 16px;
195
+ width: 16px;
196
+ }
197
+
198
+ .titaui-task-tree__e-project-node-priority-p1 {
199
+ background: url(../images/P1.svg) transparent no-repeat 50% 50%;
200
+ }
201
+
202
+ .titaui-task-tree__e-project-node-priority-p2 {
203
+ background: url(../images/P2.svg) transparent no-repeat 50% 50%;
204
+ }
205
+
206
+ .titaui-task-tree__e-project-node-priority-p3 {
207
+ background: url(../images/P3.svg) transparent no-repeat 50% 50%;
208
+ }
209
+
210
+ .titaui-task-tree__e-project-node-priority-p4 {
211
+ background: url(../images/P4.svg) transparent no-repeat 50% 50%;
212
+ }
213
+
214
+ .titaui-task-tree__e-project-node-priority-p5 {
215
+ background: url(../images/P5.svg) transparent no-repeat 50% 50%;
216
+ }
217
+
218
+ .titaui-task-tree__e-project-node-actions {
219
+ display: flex;
220
+ align-items: center;
221
+ float: right;
222
+ }
223
+
224
+ .titaui-task-tree__e-project-node-actions-user {
225
+ display: inline-block;
226
+ width: 64px;
227
+ margin-left: 16px;
228
+ }
229
+
230
+ .titaui-task-tree__e-project-node-actions-date {
231
+ font-size: 12px;
232
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
233
+ color: #89919f;
234
+ line-height: 18px;
235
+ display: inline-flex;
236
+ align-items: center;
237
+ justify-content: flex-end;
238
+ box-sizing: border-box;
239
+ width: 78px;
240
+ height: 26px;
241
+ padding: 4px;
242
+ text-align: left;
243
+ line-height: 26px;
244
+ }
245
+
246
+ .titaui-task-tree__e-project-node-actions-date > span {
247
+ vertical-align: text-bottom;
248
+ }
249
+
250
+ .titaui-task-tree__e-project-node-actions-progress {
251
+ position: relative;
252
+ top: 3px;
253
+ color: #89919f;
254
+ cursor: auto;
255
+ width: 64px;
256
+ margin-left: 16px;
257
+ margin-right: 4px;
258
+ }
259
+
260
+ .titaui-task-tree__e-project-node-actions-progress .tooltip-text-wrapper {
261
+ margin-left: 4px;
262
+ }
263
+
264
+ .titaui-task-tree__e-project-node-actions-connect {
265
+ display: inline-block;
266
+ color: #cccccc;
267
+ margin-left: 27px;
268
+ margin-right: 10px;
269
+ }
270
+
271
+ .titaui-task-tree__e-project-node-actions-connect:hover {
272
+ color: #2879ff;
273
+ }
274
+
275
+ .titaui-task-tree__e-empty-node {
276
+ font-size: 12px;
277
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
278
+ color: #a4acb9;
279
+ line-height: 18px;
280
+ padding-left: 12px;
281
+ }
282
+
283
+ .titaui-task-tree__e-empty-node:hover {
284
+ cursor: text;
285
+ }
286
+
287
+ .e-node-status-icon {
288
+ color: #89919f;
289
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _eTask = _interopRequireDefault(require("./e-task"));
11
+
12
+ var _eProject = _interopRequireDefault(require("./e-project"));
13
+
14
+ var _eEmpty = _interopRequireDefault(require("./e-empty"));
15
+
16
+ require("./index.css");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ var _default = function _default(node, level) {
23
+ switch (node.nodeType) {
24
+ case "e-task":
25
+ return /*#__PURE__*/_react["default"].createElement(_eTask["default"], _extends({}, node, {
26
+ level: level
27
+ }));
28
+
29
+ case "e-project":
30
+ return /*#__PURE__*/_react["default"].createElement(_eProject["default"], _extends({}, node, {
31
+ level: level
32
+ }));
33
+
34
+ case "e-empty":
35
+ return /*#__PURE__*/_react["default"].createElement(_eEmpty["default"], _extends({}, node, {
36
+ level: level
37
+ }));
38
+
39
+ default:
40
+ }
41
+ };
42
+
43
+ exports["default"] = _default;
@@ -0,0 +1,16 @@
1
+ .titaui-task-tree {
2
+ position: relative;
3
+ overflow: hidden;
4
+ }
5
+
6
+ .titaui-task-tree .rc-tree-treenode {
7
+ padding: 0 4px;
8
+ }
9
+
10
+ .titaui-task-tree .rc-tree-treenode .rc-tree-node-content-wrapper {
11
+ width: 100% !important;
12
+ }
13
+
14
+ .titaui-task-tree .rc-tree-treenode-switcher-close:hover {
15
+ background: #f7f8fa;
16
+ }
@@ -3,21 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = _default;
6
+ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _classnames = _interopRequireDefault(require("classnames"));
10
+ var _taskNodeRender = _interopRequireDefault(require("./task-item-node/task-node-render"));
11
11
 
12
- var _tree = _interopRequireDefault(require("../../../tree"));
13
-
14
- var _treeNode = _interopRequireDefault(require("./tree-node"));
12
+ var _tree = _interopRequireDefault(require("../tree"));
15
13
 
16
14
  var _precls = _interopRequireDefault(require("./precls"));
17
15
 
18
- require("./index.scss");
16
+ require("./task-tree.css");
19
17
 
20
- var _excluded = ["data", "defaultExpandedKeys", "draggable"];
18
+ var _excluded = ["dataSource", "defaultExpandedKeys", "draggable"];
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
21
 
@@ -27,22 +25,25 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
27
25
 
28
26
  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; }
29
27
 
30
- function _default(props) {
31
- var data = props.data,
28
+ var TaskTree = function TaskTree(props) {
29
+ var dataSource = props.dataSource,
32
30
  defaultExpandedKeys = props.defaultExpandedKeys,
33
- draggable = props.draggable,
31
+ _props$draggable = props.draggable,
32
+ draggable = _props$draggable === void 0 ? false : _props$draggable,
34
33
  restProps = _objectWithoutProperties(props, _excluded);
35
34
 
36
35
  return /*#__PURE__*/_react["default"].createElement("div", {
37
- className: (0, _classnames["default"])(_precls["default"])
36
+ className: _precls["default"]
38
37
  }, /*#__PURE__*/_react["default"].createElement(_tree["default"], _extends({
39
38
  draggable: draggable,
40
39
  defaultExpandedKeys: defaultExpandedKeys,
41
- treeData: data,
42
- titleRender: _treeNode["default"],
40
+ treeData: dataSource,
41
+ titleRender: _taskNodeRender["default"],
43
42
  allowDrop: function allowDrop() {
44
43
  return true;
45
- },
46
- className: "okr-list-tree"
44
+ }
47
45
  }, restProps)));
48
- }
46
+ };
47
+
48
+ var _default = TaskTree;
49
+ exports["default"] = _default;
@@ -62,9 +62,15 @@
62
62
 
63
63
  .tita-ui__time-picker-icon {
64
64
  font-size: 16px;
65
+ color: #3f4755;
65
66
  cursor: pointer;
66
67
  }
67
68
 
69
+ .tita-ui__time-picker-icon::before {
70
+ transform: scale(0.5);
71
+ display: inline-block;
72
+ }
73
+
68
74
  .tita-ui__time-picker-icon:hover {
69
75
  color: #2879ff;
70
76
  }
@@ -52,30 +52,30 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
52
52
  var TimePicker = function TimePicker(props) {
53
53
  var disabled = props.disabled,
54
54
  _props$timeFormat = props.timeFormat,
55
- timeFormat = _props$timeFormat === void 0 ? "hh:mm" : _props$timeFormat,
55
+ timeFormat = _props$timeFormat === void 0 ? 'hh:mm' : _props$timeFormat,
56
56
  _props$hourStep = props.hourStep,
57
57
  hourStep = _props$hourStep === void 0 ? 1 : _props$hourStep,
58
58
  _props$minuteStep = props.minuteStep,
59
59
  minuteStep = _props$minuteStep === void 0 ? 1 : _props$minuteStep,
60
60
  onChange = props.onChange,
61
61
  _props$value = props.value,
62
- value = _props$value === void 0 ? "00:00" : _props$value,
62
+ value = _props$value === void 0 ? '00:00' : _props$value,
63
63
  restProps = _objectWithoutProperties(props, _excluded);
64
64
 
65
- var _useState = (0, _react.useState)(""),
65
+ var _useState = (0, _react.useState)(''),
66
66
  _useState2 = _slicedToArray(_useState, 2),
67
- timeSetType = _useState2[0],
68
- setTimeSetType = _useState2[1];
67
+ timeSetingtType = _useState2[0],
68
+ setTimeSettingType = _useState2[1];
69
69
 
70
70
  var _useState3 = (0, _react.useState)(false),
71
71
  _useState4 = _slicedToArray(_useState3, 2),
72
72
  visible = _useState4[0],
73
73
  setVisible = _useState4[1];
74
74
 
75
- var hourRef = (0, _react.useRef)((0, _moment["default"])(value || "00:00", timeFormat).format("HH"));
75
+ var hourRef = (0, _react.useRef)((0, _moment["default"])(value || '00:00', timeFormat).format('HH'));
76
76
  var hInputRef = (0, _react.useRef)();
77
77
  var mInputRef = (0, _react.useRef)();
78
- var minuteRef = (0, _react.useRef)((0, _moment["default"])(value || "00:00", timeFormat).format("mm"));
78
+ var minuteRef = (0, _react.useRef)((0, _moment["default"])(value || '00:00', timeFormat).format('mm'));
79
79
  var triggerRef = (0, _react.useRef)();
80
80
  var timerRef = (0, _react.useRef)();
81
81
  var hours = (0, _utils.getHours)(hourStep);
@@ -88,7 +88,7 @@ var TimePicker = function TimePicker(props) {
88
88
  var onInputClick = function onInputClick(type) {
89
89
  clearTimeout(timerRef.current);
90
90
  timerRef.current = setTimeout(function () {
91
- if (type === "hour") {
91
+ if (type === 'hour') {
92
92
  var _hInputRef$current;
93
93
 
94
94
  (_hInputRef$current = hInputRef.current) === null || _hInputRef$current === void 0 ? void 0 : _hInputRef$current.focus();
@@ -98,12 +98,18 @@ var TimePicker = function TimePicker(props) {
98
98
  (_mInputRef$current = mInputRef.current) === null || _mInputRef$current === void 0 ? void 0 : _mInputRef$current.focus();
99
99
  }
100
100
 
101
- setTimeSetType(function () {
101
+ setTimeSettingType(function () {
102
102
  return type;
103
103
  });
104
104
  }, 0);
105
105
  };
106
106
 
107
+ var onFocusHandler = function onFocusHandler(type) {
108
+ setTimeSettingType(function () {
109
+ return type;
110
+ });
111
+ };
112
+
107
113
  var onHourInputBlur = function onHourInputBlur() {
108
114
  // setHour((prevHour) => {
109
115
  // const prevHour = hourRef.current;
@@ -117,7 +123,7 @@ var TimePicker = function TimePicker(props) {
117
123
  // hInputRef.current.focus();
118
124
  // }
119
125
  // onTimeChange();
120
- setTimeSetType("");
126
+ setTimeSettingType('');
121
127
  };
122
128
 
123
129
  var onHourInputChange = function onHourInputChange(e) {
@@ -158,7 +164,7 @@ var TimePicker = function TimePicker(props) {
158
164
  // mInputRef.current.focus();
159
165
  // }
160
166
  // onTimeChange();
161
- setTimeSetType("");
167
+ setTimeSettingType('');
162
168
  };
163
169
 
164
170
  var onMinuteInputChange = function onMinuteInputChange(e) {
@@ -177,7 +183,7 @@ var TimePicker = function TimePicker(props) {
177
183
  };
178
184
 
179
185
  var setTimeOnKeyboardDirectionChange = function setTimeOnKeyboardDirectionChange(keyCode, type, currTime) {
180
- var datas = JSON.parse(JSON.stringify(type === "hour" ? hours : minutes));
186
+ var datas = JSON.parse(JSON.stringify(type === 'hour' ? hours : minutes));
181
187
  var currentTimeIndex;
182
188
  datas.forEach(function (item, index) {
183
189
  if (item === currTime) {
@@ -198,8 +204,8 @@ var TimePicker = function TimePicker(props) {
198
204
  var nextValue = datas[nextIndex];
199
205
 
200
206
  if (currentTimeIndex > -1 && !!nextValue) {
201
- if (type === "minute" && nextValue === datas[0]) {
202
- hourRef.current = setTimeOnKeyboardDirectionChange(keyCode, "hour", hourRef.current);
207
+ if (type === 'minute' && nextValue === datas[0]) {
208
+ hourRef.current = setTimeOnKeyboardDirectionChange(keyCode, 'hour', hourRef.current);
203
209
  }
204
210
 
205
211
  return nextValue;
@@ -210,8 +216,8 @@ var TimePicker = function TimePicker(props) {
210
216
  var prevValue = datas[prevIndex];
211
217
 
212
218
  if (currentTimeIndex > -1 && !!prevValue) {
213
- if (type === "minute" && prevValue === datas[datas.length - 1]) {
214
- hourRef.current = setTimeOnKeyboardDirectionChange(keyCode, "hour", hourRef.current);
219
+ if (type === 'minute' && prevValue === datas[datas.length - 1]) {
220
+ hourRef.current = setTimeOnKeyboardDirectionChange(keyCode, 'hour', hourRef.current);
215
221
  }
216
222
 
217
223
  return prevValue;
@@ -225,18 +231,18 @@ var TimePicker = function TimePicker(props) {
225
231
  var keyCode = e.keyCode;
226
232
 
227
233
  if ([_utils.KEYCODE.directionLeft, _utils.KEYCODE.directionRight].includes(keyCode)) {
228
- setTimeSetType(_utils.TargetMapByKeyCode[keyCode]);
234
+ setTimeSettingType(_utils.TargetMapByKeyCode[keyCode]);
229
235
  }
230
236
 
231
237
  if ([_utils.KEYCODE.directionUp, _utils.KEYCODE.directionDown].indexOf(keyCode) === -1) return;
232
238
 
233
- switch (timeSetType) {
234
- case "hour":
235
- hourRef.current = setTimeOnKeyboardDirectionChange(keyCode, "hour", hourRef.current);
239
+ switch (timeSetingtType) {
240
+ case 'hour':
241
+ hourRef.current = setTimeOnKeyboardDirectionChange(keyCode, 'hour', hourRef.current);
236
242
  break;
237
243
 
238
- case "minute":
239
- minuteRef.current = setTimeOnKeyboardDirectionChange(keyCode, "minute", minuteRef.current);
244
+ case 'minute':
245
+ minuteRef.current = setTimeOnKeyboardDirectionChange(keyCode, 'minute', minuteRef.current);
240
246
  break;
241
247
 
242
248
  default:
@@ -247,12 +253,12 @@ var TimePicker = function TimePicker(props) {
247
253
  };
248
254
 
249
255
  (0, _react.useEffect)(function () {
250
- document.removeEventListener("keydown", handleKeyDown);
251
- document.addEventListener("keydown", handleKeyDown);
256
+ document.removeEventListener('keydown', handleKeyDown);
257
+ timeSetingtType && document.addEventListener('keydown', handleKeyDown);
252
258
  return function () {
253
- document.removeEventListener("keydown", handleKeyDown);
259
+ document.removeEventListener('keydown', handleKeyDown);
254
260
  };
255
- }, [timeSetType]);
261
+ }, [timeSetingtType]);
256
262
  return /*#__PURE__*/_react["default"].createElement("div", {
257
263
  className: _utils.TimePickerClass
258
264
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -262,27 +268,33 @@ var TimePicker = function TimePicker(props) {
262
268
  className: (0, _classnames["default"])("".concat(_utils.TimePickerClass, "-inputs"), _defineProperty({}, "".concat(_utils.TimePickerClass, "-inputs--placeholder"), !value))
263
269
  }, /*#__PURE__*/_react["default"].createElement(_timerPickerInput["default"], {
264
270
  className: (0, _classnames["default"])("".concat(_utils.TimePickerClass, "-input"), {
265
- active: timeSetType === "hour"
271
+ active: timeSetingtType === 'hour'
266
272
  }),
267
273
  disabled: disabled,
268
274
  maxLength: 2,
269
275
  onBlur: onHourInputBlur,
270
276
  onChange: onHourInputChange,
271
277
  onClick: function onClick() {
272
- return onInputClick("hour");
278
+ return onInputClick('hour');
279
+ },
280
+ onFocus: function onFocus() {
281
+ return onFocusHandler('hour');
273
282
  },
274
283
  ref: hInputRef,
275
284
  value: hourRef.current
276
285
  }), /*#__PURE__*/_react["default"].createElement("span", null, ":"), /*#__PURE__*/_react["default"].createElement(_timerPickerInput["default"], {
277
286
  className: (0, _classnames["default"])("".concat(_utils.TimePickerClass, "-input"), {
278
- active: timeSetType === "minute"
287
+ active: timeSetingtType === 'minute'
279
288
  }),
280
289
  disabled: disabled,
281
290
  maxLength: 2,
282
291
  onBlur: onMinuteInputBlur,
283
292
  onChange: onMinuteInputChange,
284
293
  onClick: function onClick() {
285
- return onInputClick("minute");
294
+ return onInputClick('minute');
295
+ },
296
+ onFocus: function onFocus() {
297
+ return onFocusHandler('minute');
286
298
  },
287
299
  ref: mInputRef,
288
300
  value: minuteRef.current
@@ -303,8 +315,8 @@ var TimePicker = function TimePicker(props) {
303
315
  hour: hourRef.current,
304
316
  minute: minuteRef.current,
305
317
  setTime: function setTime(time) {
306
- hourRef.current = (0, _moment["default"])(time, "HH:mm").format("HH");
307
- minuteRef.current = (0, _moment["default"])(time, "HH:mm").format("mm");
318
+ hourRef.current = (0, _moment["default"])(time, 'HH:mm').format('HH');
319
+ minuteRef.current = (0, _moment["default"])(time, 'HH:mm').format('mm');
308
320
  onChange(time);
309
321
  }
310
322
  },
@@ -313,7 +325,7 @@ var TimePicker = function TimePicker(props) {
313
325
  setVisible: setVisible
314
326
  }
315
327
  }, restProps), /*#__PURE__*/_react["default"].createElement("span", {
316
- className: "".concat(_utils.TimePickerClass, "-icon tu-icon-arrow-down"),
328
+ className: "".concat(_utils.TimePickerClass, "-icon tu-icon-caret-down"),
317
329
  onClick: function onClick() {
318
330
  setVisible(true);
319
331
  }
@@ -37,7 +37,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
37
37
  var _super = _createSuper(ErrorBoundary);
38
38
 
39
39
  function ErrorBoundary() {
40
- var _temp, _this;
40
+ var _this;
41
41
 
42
42
  _classCallCheck(this, ErrorBoundary);
43
43
 
@@ -45,7 +45,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
45
45
  args[_key] = arguments[_key];
46
46
  }
47
47
 
48
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
48
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
49
49
  hasError: false
50
50
  }, _this.renderError = function (e) {
51
51
  var errorTemplate = _this.props.errorTemplate;
@@ -55,7 +55,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
55
55
  // fallback
56
56
  return errorTemplate && typeof errorTemplate === "function" ? errorTemplate(e) : /*#__PURE__*/_react["default"].createElement("h5", null, "\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A", e.message);
57
57
  }
58
- }, _temp));
58
+ }, _assertThisInitialized(_this)));
59
59
  }
60
60
 
61
61
  _createClass(ErrorBoundary, [{
@@ -14,6 +14,7 @@
14
14
  line-height: 28px;
15
15
  border-radius: 50%;
16
16
  overflow: hidden;
17
+ display: flex;
17
18
  }
18
19
 
19
20
  .perspm-person--small .perspm-person__info {
@@ -0,0 +1,14 @@
1
+ .titaui-wechat-btn {
2
+ font-size: 18px;
3
+ color: #a4acb9;
4
+ margin: 0 8px;
5
+ cursor: pointer;
6
+ }
7
+
8
+ .titaui-wechat-btn:hover {
9
+ color: #2879ff;
10
+ }
11
+
12
+ .titaui-wechat-btn__chat {
13
+ color: #2879ff;
14
+ }