@titaui/pc 1.11.4-1 → 1.11.4-10

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 +27 -27
  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,243 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
15
+
16
+ var _bsGlobal = require("../../../../utils/bs-global");
17
+
18
+ var _communication = _interopRequireDefault(require("../../../communication"));
19
+
20
+ var _avatar = _interopRequireDefault(require("../../../avatar"));
21
+
22
+ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
23
+
24
+ var _upvote = _interopRequireDefault(require("../../../upvote"));
25
+
26
+ var _upvoteListModal = _interopRequireDefault(require("../../../upvote/upvoteListModal"));
27
+
28
+ var _getLocale = require("../../../../utils/getLocale");
29
+
30
+ var _context = require("../../context");
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
+
34
+ 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); }
35
+
36
+ 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; }
37
+
38
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39
+
40
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
41
+
42
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
43
+
44
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
45
+
46
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
47
+
48
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
49
+
50
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
51
+
52
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
53
+
54
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
55
+
56
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
57
+
58
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
59
+
60
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
61
+
62
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
+
64
+ var prefix = 'titaui-dynamic-item';
65
+
66
+ var DynamicFooter = function DynamicFooter(_ref) {
67
+ var _getBSGlobal;
68
+
69
+ var data = _ref.data;
70
+ var feedId = data.feedId,
71
+ feedComments = data.feedComments,
72
+ praiseType = data.praiseType,
73
+ praiseUsers = data.praiseUsers,
74
+ feedType = data.feedType,
75
+ publishUser = data.publishUser;
76
+
77
+ var _useState = (0, _react.useState)(true),
78
+ _useState2 = _slicedToArray(_useState, 2),
79
+ usePropsComment = _useState2[0],
80
+ setUsePropsComment = _useState2[1];
81
+
82
+ var _useState3 = (0, _react.useState)(feedComments.total > 0),
83
+ _useState4 = _slicedToArray(_useState3, 2),
84
+ showComment = _useState4[0],
85
+ setShowComment = _useState4[1];
86
+
87
+ var _useState5 = (0, _react.useState)(praiseUsers || []),
88
+ _useState6 = _slicedToArray(_useState5, 2),
89
+ praiseData = _useState6[0],
90
+ setPraiseData = _useState6[1];
91
+
92
+ var _useState7 = (0, _react.useState)(false),
93
+ _useState8 = _slicedToArray(_useState7, 2),
94
+ upvoteModalVisible = _useState8[0],
95
+ setUpvoteModalVisible = _useState8[1];
96
+
97
+ var communicationRef = (0, _react.useRef)();
98
+ var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
99
+ return item.AppId === '950';
100
+ }));
101
+
102
+ var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
103
+ searchKeyWord = _useContext.searchKeyWord;
104
+
105
+ var handleCommentClick = function handleCommentClick() {
106
+ setShowComment(!showComment);
107
+ setUsePropsComment(false);
108
+ };
109
+
110
+ var onChangeParse = function onChangeParse(type) {
111
+ var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)('loginUserInfo'),
112
+ Id = _getBSGlobal2.Id;
113
+
114
+ var data = _toConsumableArray(praiseData).filter(function (item) {
115
+ return Number("".concat(item.userId)) !== Number("".concat(Id));
116
+ });
117
+
118
+ if (type) {
119
+ var avatar = (0, _bsGlobal.getBSGlobal)('loginUserInfo').UserAvatar;
120
+ var name = (0, _bsGlobal.getBSGlobal)('loginUserInfo').Name;
121
+ avatar.color = avatar.Color;
122
+ avatar.medium = avatar.Medium;
123
+ var parseUser = {
124
+ avatar: avatar,
125
+ name: name,
126
+ userId: Id,
127
+ praiseType: type
128
+ };
129
+ setPraiseData([parseUser].concat(_toConsumableArray(data)));
130
+ } else {
131
+ setPraiseData(data);
132
+ }
133
+ };
134
+
135
+ var handlePayReward = function handlePayReward() {
136
+ var data = {
137
+ multi: false,
138
+ toUserInfo: _objectSpread(_objectSpread({}, publishUser), {}, {
139
+ id: publishUser.userId
140
+ }),
141
+ objId: feedId,
142
+ objType: feedType
143
+ };
144
+
145
+ if (window.util) {
146
+ window.util.rewardGetFile(function (myReward) {
147
+ myReward.renderPayReward(data);
148
+ });
149
+ }
150
+ };
151
+
152
+ var renderUpvoteCount = function renderUpvoteCount(type, count) {
153
+ if (count === 0) {
154
+ return '';
155
+ }
156
+
157
+ return count || type;
158
+ };
159
+
160
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
161
+ className: (0, _classnames["default"])("".concat(prefix, "__footer"))
162
+ }, /*#__PURE__*/_react["default"].createElement("div", {
163
+ className: "".concat(prefix, "__footer-left")
164
+ }, praiseData.map(function (item, index) {
165
+ if (index >= 8) return /*#__PURE__*/_react["default"].createElement("span", null);
166
+ return /*#__PURE__*/_react["default"].createElement("div", {
167
+ className: "".concat(prefix, "__footer-left-item"),
168
+ key: item.userId
169
+ }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Icon, {
170
+ name: item.name,
171
+ userId: item.userId,
172
+ avatar: item.avatar,
173
+ type: item.praiseType,
174
+ size: {
175
+ width: 28,
176
+ textNum: 1,
177
+ fontSize: 12
178
+ }
179
+ }));
180
+ }), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
181
+ condition: praiseData && praiseData.length > 8
182
+ }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Num, {
183
+ onClick: function onClick() {
184
+ return setUpvoteModalVisible(true);
185
+ },
186
+ num: praiseData.length - 8
187
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
188
+ className: "".concat(prefix, "__footer-right")
189
+ }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
190
+ condition: hasRewardBtn
191
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
192
+ overlay: (0, _getLocale.getLocale)('Feed_Approval'),
193
+ align: {
194
+ offset: [0, 0]
195
+ },
196
+ placement: "top"
197
+ }, /*#__PURE__*/_react["default"].createElement("span", {
198
+ onClick: handlePayReward,
199
+ className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
200
+ }))), /*#__PURE__*/_react["default"].createElement("span", {
201
+ onClick: handleCommentClick,
202
+ className: (0, _classnames["default"])('tu-icon-pinglun-m', "".concat(prefix, "__footer-icon"))
203
+ }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
204
+ condition: feedComments.total > 0
205
+ }, /*#__PURE__*/_react["default"].createElement("span", {
206
+ className: "".concat(prefix, "__footer-number")
207
+ }, feedComments.total))), /*#__PURE__*/_react["default"].createElement(_upvote["default"], {
208
+ type: praiseType,
209
+ count: praiseUsers ? praiseUsers.length : 0,
210
+ feedId: feedId,
211
+ onChange: onChangeParse,
212
+ style: {
213
+ marginLeft: 30
214
+ },
215
+ buttonType: "tu-icon-tyle-column",
216
+ customUpvoteBtnCls: "".concat(prefix, "__upvote-btn"),
217
+ renderCount: renderUpvoteCount
218
+ }), /*#__PURE__*/_react["default"].createElement(_upvoteListModal["default"], {
219
+ feedId: feedId,
220
+ visible: upvoteModalVisible,
221
+ onClose: function onClose() {
222
+ return setUpvoteModalVisible(false);
223
+ }
224
+ }))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
225
+ condition: showComment
226
+ }, /*#__PURE__*/_react["default"].createElement("div", {
227
+ className: (0, _classnames["default"])("".concat(prefix, "__communication"))
228
+ }, /*#__PURE__*/_react["default"].createElement(_communication["default"], {
229
+ feedId: feedId,
230
+ commentCount: 3,
231
+ ref: communicationRef,
232
+ highLightKeyWord: searchKeyWord,
233
+ autoFocus: feedComments.total === 0,
234
+ usePropsComment: usePropsComment,
235
+ communication: feedComments.comments,
236
+ totalCommunicationNum: feedComments.total,
237
+ showUser: true,
238
+ showDefaultInput: true
239
+ }))));
240
+ };
241
+
242
+ var _default = DynamicFooter;
243
+ exports["default"] = _default;
@@ -11,11 +11,13 @@ var _supersetCharts = _interopRequireDefault(require("../../../superset-charts")
11
11
 
12
12
  var _utils = require("../dynamic-chart/utils");
13
13
 
14
+ var _dynamicFooter = _interopRequireDefault(require("./dynamic-footer"));
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
17
 
16
18
  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); }
17
19
 
18
- var prefixCls = "titaui-dynamic-item";
20
+ var prefixCls = 'titaui-dynamic-item';
19
21
 
20
22
  var DynamicAIDialy = function DynamicAIDialy(_ref) {
21
23
  var data = _ref.data;
@@ -28,7 +30,9 @@ var DynamicAIDialy = function DynamicAIDialy(_ref) {
28
30
  className: prefixCls
29
31
  }, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], _extends({
30
32
  feedData: data
31
- }, chartQuery)));
33
+ }, chartQuery)), /*#__PURE__*/_react["default"].createElement(_dynamicFooter["default"], {
34
+ data: data
35
+ }));
32
36
  };
33
37
 
34
38
  var _default = /*#__PURE__*/_react["default"].memo(DynamicAIDialy);
@@ -1,4 +1,4 @@
1
- .titaui-dynamic-milestone-item__operate-desc {
1
+ .titaui-dynamic-interview__operate-desc {
2
2
  font-size: 14px;
3
3
  font-weight: 400;
4
4
  color: #89919f;
@@ -7,30 +7,45 @@
7
7
  overflow: hidden;
8
8
  }
9
9
 
10
- .titaui-dynamic-milestone-item__content {
10
+ .titaui-dynamic-interview__content {
11
11
  height: 56px;
12
12
  background: rgba(40, 121, 255, 0.06);
13
13
  border-radius: 18px;
14
14
  display: flex;
15
15
  padding: 0 12px;
16
16
  align-items: center;
17
+ margin-left: 88px;
17
18
  }
18
19
 
19
- .titaui-dynamic-milestone-item__wifi {
20
+ .titaui-dynamic-interview__content .titaui-pc-avator-container {
21
+ height: 32px;
22
+ }
23
+
24
+ .titaui-dynamic-interview__wifi {
20
25
  margin: 0 8px;
21
26
  }
22
27
 
23
- .titaui-dynamic-milestone-item__name {
28
+ .titaui-dynamic-interview__name {
24
29
  margin-left: 12px;
25
30
  flex: 1;
26
31
  width: 0;
27
32
  font-size: 16px;
28
33
  font-weight: normal;
29
- color: #141c28;
30
34
  line-height: 24px;
31
35
  font-weight: 600;
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap;
32
39
  }
33
40
 
34
- .titaui-dynamic-milestone-item .titaui-pc-avator-container {
35
- height: 32px;
41
+ .titaui-dynamic-interview__name div {
42
+ max-width: 100%;
43
+ }
44
+
45
+ .titaui-dynamic-interview__name a {
46
+ color: #141c28;
47
+ }
48
+
49
+ .titaui-dynamic-interview__name a:hover {
50
+ color: #2879ff;
36
51
  }
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
 
10
- var _getLocale = require("../../../../utils/getLocale");
11
-
12
10
  var _react = _interopRequireWildcard(require("react"));
13
11
 
12
+ var _getLocale = require("../../../../utils/getLocale");
13
+
14
14
  var _header = _interopRequireDefault(require("../components/header"));
15
15
 
16
16
  var _interviewContent = _interopRequireDefault(require("./interview-content"));
@@ -23,17 +23,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  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; }
25
25
 
26
- var preCls = 'titaui-dynamic-milestone-item';
26
+ var preCls = "titaui-dynamic-interview";
27
27
 
28
28
  function DynamicInterview(_ref) {
29
29
  var data = _ref.data,
30
30
  onDeleteFeed = _ref.onDeleteFeed;
31
- var principalUser = data.principalUser,
32
- publishUser = data.publishUser;
31
+ var publishUser = data.publishUser;
33
32
  var renderDesc = (0, _react.useMemo)(function () {
34
33
  return /*#__PURE__*/_react["default"].createElement("span", {
35
34
  className: "".concat(preCls, "__operate-desc")
36
- }, (0, _getLocale.getLocale)('Ooo_Feed_Initiated11'));
35
+ }, (0, _getLocale.getLocale)("Ooo_Feed_Initiated11"));
37
36
  }, []);
38
37
  return /*#__PURE__*/_react["default"].createElement("div", {
39
38
  className: preCls
@@ -41,7 +40,7 @@ function DynamicInterview(_ref) {
41
40
  data: data,
42
41
  onDeleteFeed: onDeleteFeed,
43
42
  desc: renderDesc,
44
- user: principalUser || publishUser
43
+ user: publishUser
45
44
  }), /*#__PURE__*/_react["default"].createElement(_interviewContent["default"], {
46
45
  data: data
47
46
  }));
@@ -9,18 +9,25 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _avatar = _interopRequireDefault(require("../../../../components/avatar"));
11
11
 
12
+ var _wifi = _interopRequireDefault(require("./img/wifi.svg"));
13
+
12
14
  require("./index.css");
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
17
 
16
- var preCls = 'titaui-dynamic-milestone-item';
18
+ var preCls = "titaui-dynamic-interview";
17
19
 
18
20
  function InterviewContent(_ref) {
19
21
  var data = _ref.data;
20
22
  var principalUser = data.principalUser,
21
- publishUser = data.publishUser;
23
+ publishUser = data.publishUser,
24
+ interviewName = data.interviewName,
25
+ interviewId = data.interviewId;
26
+ var _window$location = window.location,
27
+ host = _window$location.host,
28
+ pathname = _window$location.pathname;
22
29
  return /*#__PURE__*/_react["default"].createElement("div", {
23
- className: preCls + '__content'
30
+ className: "".concat(preCls, "__content")
24
31
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
25
32
  name: publishUser.name,
26
33
  userId: publishUser.userId,
@@ -32,8 +39,9 @@ function InterviewContent(_ref) {
32
39
  fontSize: 12
33
40
  }
34
41
  }), /*#__PURE__*/_react["default"].createElement("img", {
35
- className: preCls + '__wifi',
36
- src: require("./img/wifi.svg")
42
+ className: "".concat(preCls, "__wifi"),
43
+ src: _wifi["default"],
44
+ alt: "wifi"
37
45
  }), principalUser && /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
38
46
  name: principalUser.name,
39
47
  userId: principalUser.userId,
@@ -45,8 +53,12 @@ function InterviewContent(_ref) {
45
53
  fontSize: 12
46
54
  }
47
55
  }), /*#__PURE__*/_react["default"].createElement("div", {
48
- className: preCls + '__name'
49
- }));
56
+ className: "".concat(preCls, "__name")
57
+ }, /*#__PURE__*/_react["default"].createElement("a", {
58
+ href: "//".concat(host).concat(pathname, "#/interview?hideNavTop=true&reactRouterName=detail&recordId=").concat(interviewId, "&toUserId=").concat(principalUser.userId),
59
+ target: "_blank",
60
+ rel: "noreferrer"
61
+ }, interviewName || "")));
50
62
  }
51
63
 
52
64
  var _default = InterviewContent;
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="26px" height="21px" viewBox="0 0 26 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>wife</title>
4
+ <g id="面谈" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="5-面谈详情页" transform="translate(-106.000000, -17.000000)" fill="#2879FF" fill-rule="nonzero">
6
+ <g id="面谈人员" transform="translate(58.000000, 8.000000)">
7
+ <g id="wife" transform="translate(48.000000, 9.000000)">
8
+ <g id="编组-7">
9
+ <path d="M12.9658057,9.52816561 C12.2775701,9.52816561 11.7154472,10.0876457 11.7154472,10.7794706 C11.7154472,11.4687707 12.2775701,12.0281656 12.9658057,12.0281656 C13.6566846,12.0281656 14.2150114,11.4687707 14.2150114,10.7794706 C14.2150114,10.0876456 13.6567127,9.52816561 12.9658057,9.52816561 Z" id="路径" transform="translate(12.965229, 10.778166) scale(-1, 1) rotate(-270.000000) translate(-12.965229, -10.778166) "></path>
10
+ <path d="M9.13463077,9.00453638 C7.22941357,9.00453638 5.46172542,9.94655067 4.4067363,11.531305 C4.21117005,11.8188062 4.28841241,12.2143692 4.56884115,12.4134588 C4.67951673,12.488903 4.8030426,12.5227718 4.92136651,12.5227718 C5.12207849,12.5227718 5.31891006,12.4238384 5.44114247,12.2443421 C6.26193014,11.0108739 7.64371594,10.2770207 9.13463077,10.2770207 C10.6051595,10.2770207 11.975276,10.9978496 12.7974415,12.1987571 C12.9930077,12.488903 13.3866146,12.5578919 13.6696865,12.3562145 C13.9527303,12.1584046 14.019625,11.7576376 13.8202346,11.4714161 C12.766567,9.92573457 11.0116729,9.00453638 9.13463077,9.00453638 Z" id="路径" opacity="0.75" transform="translate(9.116567, 10.763654) scale(-1, 1) rotate(-270.000000) translate(-9.116567, -10.763654) "></path>
11
+ <path d="M6.05410015,8.5147913 C3.20198248,8.5147913 0.543996987,9.78992023 -1.2301585,12.0095944 C-1.45015998,12.2828485 -1.40899404,12.6836155 -1.13880053,12.9047724 C-0.873780866,13.1272944 -0.480089595,13.0869418 -0.261409722,12.8137162 C1.27472015,10.8919513 3.58023651,9.78733243 6.05410012,9.78733243 C8.52942591,9.78733243 10.8310057,10.8919513 12.3723094,12.8137162 C12.4932483,12.9711167 12.675908,13.0479259 12.8560371,13.0479259 C12.994972,13.0479259 13.1326135,13.0010612 13.2484349,12.9073887 C13.5198937,12.6861749 13.555942,12.2854647 13.3371778,12.0122106 C11.5643439,9.78992023 8.91150413,8.5147913 6.05410015,8.5147913 Z" id="路径" fill-opacity="0.5" transform="translate(6.053981, 10.781599) scale(-1, 1) rotate(-270.000000) translate(-6.053981, -10.781599) "></path>
12
+ <path d="M12.8458611,12.5083657 C10.3885313,9.64071899 6.80164139,8 2.99995194,8 C-0.796479272,8 -4.38722148,9.64069054 -6.84325778,12.5070575 C-7.07222913,12.7724914 -7.0477939,13.1745381 -6.78662652,13.4048234 C-6.52804606,13.6351656 -6.13050251,13.609117 -5.9053553,13.346271 C-3.68352045,10.757054 -0.438836284,9.26858839 2.99992386,9.26858839 C6.43882458,9.26858839 9.6860957,10.757054 11.9040782,13.346271 C12.0301629,13.4894244 12.202503,13.5635889 12.3749556,13.5635889 C12.5190645,13.5635889 12.6708497,13.5128283 12.7866429,13.4048234 C13.0465168,13.1745665 13.0722737,12.7737995 12.8458611,12.5083657 Z" id="路径" fill-opacity="0.25" transform="translate(3.000000, 10.781794) scale(-1, 1) rotate(-270.000000) translate(-3.000000, -10.781794) "></path>
13
+ </g>
14
+ <g id="编组-7" transform="translate(18.500000, 10.500000) scale(-1, 1) translate(-18.500000, -10.500000) translate(11.000000, 0.000000)">
15
+ <path d="M12.9658057,9.52816561 C12.2775701,9.52816561 11.7154472,10.0876457 11.7154472,10.7794706 C11.7154472,11.4687707 12.2775701,12.0281656 12.9658057,12.0281656 C13.6566846,12.0281656 14.2150114,11.4687707 14.2150114,10.7794706 C14.2150114,10.0876456 13.6567127,9.52816561 12.9658057,9.52816561 Z" id="路径" transform="translate(12.965229, 10.778166) scale(-1, 1) rotate(-270.000000) translate(-12.965229, -10.778166) "></path>
16
+ <path d="M9.13463077,9.00453638 C7.22941357,9.00453638 5.46172542,9.94655067 4.4067363,11.531305 C4.21117005,11.8188062 4.28841241,12.2143692 4.56884115,12.4134588 C4.67951673,12.488903 4.8030426,12.5227718 4.92136651,12.5227718 C5.12207849,12.5227718 5.31891006,12.4238384 5.44114247,12.2443421 C6.26193014,11.0108739 7.64371594,10.2770207 9.13463077,10.2770207 C10.6051595,10.2770207 11.975276,10.9978496 12.7974415,12.1987571 C12.9930077,12.488903 13.3866146,12.5578919 13.6696865,12.3562145 C13.9527303,12.1584046 14.019625,11.7576376 13.8202346,11.4714161 C12.766567,9.92573457 11.0116729,9.00453638 9.13463077,9.00453638 Z" id="路径" opacity="0.75" transform="translate(9.116567, 10.763654) scale(-1, 1) rotate(-270.000000) translate(-9.116567, -10.763654) "></path>
17
+ <path d="M6.05410015,8.5147913 C3.20198248,8.5147913 0.543996987,9.78992023 -1.2301585,12.0095944 C-1.45015998,12.2828485 -1.40899404,12.6836155 -1.13880053,12.9047724 C-0.873780866,13.1272944 -0.480089595,13.0869418 -0.261409722,12.8137162 C1.27472015,10.8919513 3.58023651,9.78733243 6.05410012,9.78733243 C8.52942591,9.78733243 10.8310057,10.8919513 12.3723094,12.8137162 C12.4932483,12.9711167 12.675908,13.0479259 12.8560371,13.0479259 C12.994972,13.0479259 13.1326135,13.0010612 13.2484349,12.9073887 C13.5198937,12.6861749 13.555942,12.2854647 13.3371778,12.0122106 C11.5643439,9.78992023 8.91150413,8.5147913 6.05410015,8.5147913 Z" id="路径" fill-opacity="0.5" transform="translate(6.053981, 10.781599) scale(-1, 1) rotate(-270.000000) translate(-6.053981, -10.781599) "></path>
18
+ <path d="M12.8458611,12.5083657 C10.3885313,9.64071899 6.80164139,8 2.99995194,8 C-0.796479272,8 -4.38722148,9.64069054 -6.84325778,12.5070575 C-7.07222913,12.7724914 -7.0477939,13.1745381 -6.78662652,13.4048234 C-6.52804606,13.6351656 -6.13050251,13.609117 -5.9053553,13.346271 C-3.68352045,10.757054 -0.438836284,9.26858839 2.99992386,9.26858839 C6.43882458,9.26858839 9.6860957,10.757054 11.9040782,13.346271 C12.0301629,13.4894244 12.202503,13.5635889 12.3749556,13.5635889 C12.5190645,13.5635889 12.6708497,13.5128283 12.7866429,13.4048234 C13.0465168,13.1745665 13.0722737,12.7737995 12.8458611,12.5083657 Z" id="路径" fill-opacity="0.25" transform="translate(3.000000, 10.781794) scale(-1, 1) rotate(-270.000000) translate(-3.000000, -10.781794) "></path>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </svg>
@@ -0,0 +1,61 @@
1
+ .titaui-dynamic-interview-share__text {
2
+ font-size: 14px;
3
+ font-weight: 400;
4
+ color: #3f4755;
5
+ line-height: 24px;
6
+ margin-left: 88px;
7
+ margin-bottom: 12px;
8
+ }
9
+
10
+ .titaui-dynamic-interview-share__operate-desc {
11
+ font-size: 14px;
12
+ font-weight: 400;
13
+ color: #89919f;
14
+ line-height: 24px;
15
+ margin-left: 4px;
16
+ overflow: hidden;
17
+ }
18
+
19
+ .titaui-dynamic-interview-share__content {
20
+ height: 56px;
21
+ background: rgba(40, 121, 255, 0.06);
22
+ border-radius: 18px;
23
+ display: flex;
24
+ padding: 0 12px;
25
+ align-items: center;
26
+ margin-left: 88px;
27
+ }
28
+
29
+ .titaui-dynamic-interview-share__wifi {
30
+ margin: 0 8px;
31
+ }
32
+
33
+ .titaui-dynamic-interview-share__name {
34
+ margin-left: 12px;
35
+ flex: 1;
36
+ width: 0;
37
+ font-size: 16px;
38
+ font-weight: normal;
39
+ color: #141c28;
40
+ line-height: 24px;
41
+ font-weight: 600;
42
+ overflow: hidden;
43
+ text-overflow: ellipsis;
44
+ white-space: nowrap;
45
+ }
46
+
47
+ .titaui-dynamic-interview-share__name div {
48
+ max-width: 100%;
49
+ }
50
+
51
+ .titaui-dynamic-interview-share__name a {
52
+ color: #141c28;
53
+ }
54
+
55
+ .titaui-dynamic-interview-share__name a:hover {
56
+ color: #2879ff;
57
+ }
58
+
59
+ .titaui-dynamic-interview-share .titaui-pc-avator-container {
60
+ height: 32px;
61
+ }
@@ -5,15 +5,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = _default;
8
+ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _classnames = _interopRequireDefault(require("classnames"));
12
+ var _getLocale = require("../../../../utils/getLocale");
13
13
 
14
- var _ = _interopRequireDefault(require("./image/111.gif"));
14
+ var _header = _interopRequireDefault(require("../components/header"));
15
15
 
16
- require("./index.scss");
16
+ var _interviewContent = _interopRequireDefault(require("./interview-content"));
17
+
18
+ require("./index.css");
19
+
20
+ var _openData = require("../../../../utils/open-data");
17
21
 
18
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
23
 
@@ -21,12 +25,37 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
25
 
22
26
  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; }
23
27
 
24
- var preCls = "user-group-page";
25
-
26
- function _default(props) {
28
+ var preCls = "titaui-dynamic-interview-share";
29
+
30
+ function DynamicInterviewShare(_ref) {
31
+ var data = _ref.data,
32
+ onDeleteFeed = _ref.onDeleteFeed,
33
+ _ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
34
+ hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea;
35
+ var publishUser = data.publishUser,
36
+ content = data.content,
37
+ shareFeedSource = data.shareFeedSource;
38
+ var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
39
+ var renderDesc = (0, _react.useMemo)(function () {
40
+ return /*#__PURE__*/_react["default"].createElement("span", {
41
+ className: "".concat(preCls, "__operate-desc")
42
+ }, (0, _getLocale.getLocale)("Ooo_Mo_Sharedconver"));
43
+ }, []);
27
44
  return /*#__PURE__*/_react["default"].createElement("div", {
28
- className: (0, _classnames["default"])("".concat(preCls, "__loading"))
29
- }, /*#__PURE__*/_react["default"].createElement("img", {
30
- src: _["default"]
45
+ className: preCls
46
+ }, /*#__PURE__*/_react["default"].createElement(_header["default"], {
47
+ data: data,
48
+ onDeleteFeed: onDeleteFeed,
49
+ desc: renderDesc,
50
+ user: publishUser,
51
+ showDelete: hasDynamicOpereateAuth || isPublisher,
52
+ showTopping: hasDynamicOpereateAuth
53
+ }), /*#__PURE__*/_react["default"].createElement("div", {
54
+ className: "".concat(preCls, "__text")
55
+ }, (0, _openData.parseTag)(content)), /*#__PURE__*/_react["default"].createElement(_interviewContent["default"], {
56
+ data: shareFeedSource
31
57
  }));
32
- }
58
+ }
59
+
60
+ var _default = DynamicInterviewShare;
61
+ exports["default"] = _default;
@@ -0,0 +1,69 @@
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 _avatar = _interopRequireDefault(require("../../../../components/avatar"));
11
+
12
+ var _wifi = _interopRequireDefault(require("./img/wifi.svg"));
13
+
14
+ require("./index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ var preCls = "titaui-dynamic-interview-share";
19
+
20
+ function InterviewContent(_ref) {
21
+ var data = _ref.data;
22
+ if (!data) return null;
23
+
24
+ var _ref2 = data || {},
25
+ toUser = _ref2.toUser,
26
+ fromUser = _ref2.fromUser,
27
+ content = _ref2.content,
28
+ objId = _ref2.objId;
29
+
30
+ var _window$location = window.location,
31
+ host = _window$location.host,
32
+ pathname = _window$location.pathname;
33
+ return /*#__PURE__*/_react["default"].createElement("div", {
34
+ className: "".concat(preCls, "__content")
35
+ }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
36
+ name: fromUser.name,
37
+ userId: fromUser.userId,
38
+ color: fromUser.avatar.color,
39
+ src: fromUser.avatar.medium,
40
+ size: {
41
+ width: 32,
42
+ textNum: 1,
43
+ fontSize: 12
44
+ }
45
+ }), /*#__PURE__*/_react["default"].createElement("img", {
46
+ className: "".concat(preCls, "__wifi"),
47
+ src: _wifi["default"],
48
+ alt: "wifi"
49
+ }), toUser && /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
50
+ name: toUser.name,
51
+ userId: toUser.userId,
52
+ color: toUser.avatar.color,
53
+ src: toUser.avatar.medium,
54
+ size: {
55
+ width: 32,
56
+ textNum: 1,
57
+ fontSize: 12
58
+ }
59
+ }), /*#__PURE__*/_react["default"].createElement("div", {
60
+ className: "".concat(preCls, "__name")
61
+ }, /*#__PURE__*/_react["default"].createElement("a", {
62
+ href: "//".concat(host).concat(pathname, "#/interview?hideNavTop=true&reactRouterName=detail&recordId=").concat(objId, "&toUserId=").concat(toUser.userId),
63
+ target: "_blank",
64
+ rel: "noreferrer"
65
+ }, content || "")));
66
+ }
67
+
68
+ var _default = InterviewContent;
69
+ exports["default"] = _default;