@titaui/pc 1.10.4 → 1.10.6-3.beta-2

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 (302) hide show
  1. package/.eslintrc.js +2 -2
  2. package/.prettierignore +1 -1
  3. package/lib/components/book-demo/utils.js +4 -0
  4. package/lib/components/button/default-button/index.css +10 -4
  5. package/lib/components/button/default-button/index.js +13 -2
  6. package/lib/components/change-okr-modal/index.js +108 -87
  7. package/lib/components/checkbox/index.css +1 -0
  8. package/lib/components/communication/CommunicationRecord.js +22 -16
  9. package/lib/components/communication/index.css +50 -10
  10. package/lib/components/communication/index.js +86 -30
  11. package/lib/components/communication/style.js +8 -6
  12. package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
  13. package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
  14. package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
  15. package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
  16. package/lib/components/dialog/index.css +4 -1
  17. package/lib/components/dialog/index.js +1 -1
  18. package/lib/components/dialog-confirm/index.css +1 -1
  19. package/lib/components/drawer-manager/index.js +6 -1
  20. package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
  21. package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
  22. package/lib/components/dynamic/components/obj-status/index.css +3 -19
  23. package/lib/components/dynamic/components/obj-status/index.js +7 -8
  24. package/lib/components/dynamic/components/obj-status/utils.js +37 -0
  25. package/lib/components/dynamic/components/percent/index.css +1 -1
  26. package/lib/components/dynamic/components/title/index.css +21 -22
  27. package/lib/components/dynamic/components/title/index.js +20 -8
  28. package/lib/components/dynamic/constant.js +12 -2
  29. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
  30. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
  31. package/lib/components/dynamic/dynamic-item/components/header/index.css +8 -7
  32. package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
  33. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
  34. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
  35. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
  36. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +44 -27
  37. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +43 -31
  38. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
  39. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
  40. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
  41. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +31 -21
  42. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
  43. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
  44. package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
  45. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +56 -44
  46. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +52 -44
  47. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
  48. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +25 -29
  49. package/lib/components/dynamic/dynamic-item/dynamic-learning/img/dynamic-share-course.png +0 -0
  50. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
  51. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
  52. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +10 -18
  53. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +15 -30
  54. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
  55. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
  56. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +14 -25
  57. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
  58. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
  59. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
  60. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
  61. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
  62. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +33 -80
  63. package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
  64. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
  65. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +13 -24
  66. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
  67. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
  68. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
  69. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
  70. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
  71. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +56 -31
  72. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +78 -34
  73. package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +29 -32
  74. package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +12 -18
  75. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
  76. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +42 -29
  77. package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
  78. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +8 -3
  79. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +23 -66
  80. package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
  81. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +8 -19
  82. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +59 -36
  83. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +32 -28
  84. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +11 -25
  85. package/lib/components/dynamic/dynamic-item/index.css +59 -4
  86. package/lib/components/dynamic/dynamic-item/index.js +148 -17
  87. package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
  88. package/lib/components/dynamic/dynamic-list/index.js +2 -1
  89. package/lib/components/dynamic/dynamic-topping/item.js +8 -4
  90. package/lib/components/dynamic/dynamic.js +1 -1
  91. package/lib/components/dynamic/img/dynamic-operate.png +0 -0
  92. package/lib/components/dynamic/img/dynamic-point.svg +13 -0
  93. package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
  94. package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
  95. package/lib/components/dynamic/util.js +41 -81
  96. package/lib/components/e-status-dropdown/index.css +3 -0
  97. package/lib/components/e-status-dropdown/index.js +94 -0
  98. package/lib/components/file-list/components/single-file/index.css +14 -12
  99. package/lib/components/file-list/components/single-file/index.js +1 -1
  100. package/lib/components/file-list/index.css +1 -0
  101. package/lib/components/follower-visitor/index.js +6 -4
  102. package/lib/components/grid-layout/okr-progress/index.js +20 -30
  103. package/lib/components/help-card/image/not-try.png +0 -0
  104. package/lib/components/help-card/image/try.png +0 -0
  105. package/lib/components/help-card/index.css +31 -2
  106. package/lib/components/help-card/index.js +54 -17
  107. package/lib/components/invite-people/img/invite-people.svg +62 -0
  108. package/lib/components/invite-people/index.css +1 -1
  109. package/lib/components/mblog/context.js +3 -1
  110. package/lib/components/mblog/index.css +7 -0
  111. package/lib/components/mblog/index.js +45 -9
  112. package/lib/components/mblog/style.js +4 -4
  113. package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
  114. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
  115. package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
  116. package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
  117. package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
  118. package/lib/components/menus/images/okr-gongsi.svg +17 -0
  119. package/lib/components/nav-top/components/menu/index.css +24 -0
  120. package/lib/components/nav-top/components/menu/index.js +9 -1
  121. package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
  122. package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
  123. package/lib/components/nav-top/components/user-message/index.css +4 -3
  124. package/lib/components/nav-top/components/user-message/index.js +33 -6
  125. package/lib/components/nav-top/request.apis.js +8 -2
  126. package/lib/components/nav-top/useGlobalValue.js +14 -0
  127. package/lib/components/okr-detail/components/header/o-score.js +4 -6
  128. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +1 -1
  129. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +27 -13
  130. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
  131. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
  132. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +7 -3
  133. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +20 -1
  134. package/lib/components/okr-detail/e-list/index.js +23 -7
  135. package/lib/components/okr-detail/e-list/util.js +7 -2
  136. package/lib/components/okr-detail/index.js +2 -0
  137. package/lib/components/okr-detail/okr-list/index.js +1 -5
  138. package/lib/components/okr-flow/export-modal/index.js +3 -3
  139. package/lib/components/okr-progress-detail/index.js +5 -1
  140. package/lib/components/okr-progress-modal/helper.js +20 -27
  141. package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
  142. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
  143. package/lib/components/open-data-painter/index.js +5 -1
  144. package/lib/components/progress/circle-progress/index.css +1 -0
  145. package/lib/components/progress/circle-progress/index.js +8 -3
  146. package/lib/components/rich-editor/basic/schema.js +47 -0
  147. package/lib/components/rich-editor/consts/events.js +12 -0
  148. package/lib/components/rich-editor/enums.js +42 -0
  149. package/lib/components/rich-editor/index.js +58 -0
  150. package/lib/components/rich-editor/keymap.js +119 -0
  151. package/lib/components/rich-editor/keymaps/index.js +241 -0
  152. package/lib/components/rich-editor/models/controller.js +18 -0
  153. package/lib/components/rich-editor/models/editor.js +47 -0
  154. package/lib/components/rich-editor/models/plugin.js +20 -0
  155. package/lib/components/rich-editor/models/schema.js +121 -0
  156. package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
  157. package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
  158. package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
  159. package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
  160. package/lib/components/rich-editor/plugins/block/index.js +57 -0
  161. package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
  162. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
  163. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
  164. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
  165. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
  166. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
  167. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
  168. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
  169. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
  170. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
  171. package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
  172. package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
  173. package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
  174. package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
  175. package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
  176. package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
  177. package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
  178. package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
  179. package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
  180. package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
  181. package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
  182. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
  183. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
  184. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
  185. package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
  186. package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
  187. package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
  188. package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
  189. package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
  190. package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
  191. package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
  192. package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
  193. package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
  194. package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
  195. package/lib/components/rich-editor/plugins/core/index.js +90 -0
  196. package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
  197. package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
  198. package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
  199. package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
  200. package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
  201. package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
  202. package/lib/components/rich-editor/plugins/extension/index.js +18 -0
  203. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
  204. package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
  205. package/lib/components/rich-editor/plugins/index.js +44 -0
  206. package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
  207. package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
  208. package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
  209. package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
  210. package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
  211. package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
  212. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
  213. package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
  214. package/lib/components/rich-editor/plugins/inline/index.js +83 -0
  215. package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
  216. package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
  217. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
  218. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
  219. package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
  220. package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
  221. package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
  222. package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
  223. package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
  224. package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
  225. package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
  226. package/lib/components/rich-editor/plugins/util.js +284 -0
  227. package/lib/components/rich-editor/react/reactNodeView.js +383 -0
  228. package/lib/components/rich-editor/react/uiProvider.js +185 -0
  229. package/lib/components/rich-editor/schemas/basic.js +309 -0
  230. package/lib/components/rich-editor/schemas/index.js +19 -0
  231. package/lib/components/rich-editor/schemas/list.js +342 -0
  232. package/lib/components/rich-editor/types/commond.js +5 -0
  233. package/lib/components/rich-editor/types/index.js +18 -0
  234. package/lib/components/rich-editor/ui/Popup/index.js +247 -0
  235. package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
  236. package/lib/components/rich-editor/ui/editor/index.css +178 -0
  237. package/lib/components/rich-editor/ui/editor/index.js +153 -0
  238. package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
  239. package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
  240. package/lib/components/rich-editor/utils/browser.js +35 -0
  241. package/lib/components/rich-editor/utils/commands.js +266 -0
  242. package/lib/components/rich-editor/utils/document.js +211 -0
  243. package/lib/components/rich-editor/utils/event.js +79 -0
  244. package/lib/components/rich-editor/utils/helpers.js +16 -0
  245. package/lib/components/rich-editor/utils/mark.js +168 -0
  246. package/lib/components/rich-editor/utils/slice.js +85 -0
  247. package/lib/components/rich-editor/utils/toolbar.js +228 -0
  248. package/lib/components/search-key-handle/index.js +7 -2
  249. package/lib/components/superset-charts/components/chart/index.js +54 -0
  250. package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
  251. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +131 -0
  252. package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
  253. package/lib/components/superset-charts/index.js +13 -0
  254. package/lib/components/superset-charts/interface.js +5 -0
  255. package/lib/components/superset-charts/utils/axios.js +94 -0
  256. package/lib/components/toast/index.js +5 -17
  257. package/lib/components/upload/index.js +4 -2
  258. package/lib/components/upload/util.js +2 -0
  259. package/lib/components/user-selector/empty/index.css +6 -6
  260. package/lib/components/user-selector/selected-panel/index.css +3 -3
  261. package/lib/components/video-modal/components/video-box/index.css +240 -0
  262. package/lib/components/video-modal/components/video-box/index.js +334 -0
  263. package/lib/components/video-modal/img/bigFaqi.png +0 -0
  264. package/lib/components/video-modal/img/close.png +0 -0
  265. package/lib/components/video-modal/img/full.svg +21 -0
  266. package/lib/components/video-modal/img/muted.svg +14 -0
  267. package/lib/components/video-modal/img/not-muted.svg +22 -0
  268. package/lib/components/video-modal/img/pause.svg +13 -0
  269. package/lib/components/video-modal/img/play.svg +18 -0
  270. package/lib/components/video-modal/img/small.svg +22 -0
  271. package/lib/components/video-modal/index.css +83 -0
  272. package/lib/components/video-modal/index.js +182 -0
  273. package/lib/components/video-modal/utils.js +25 -0
  274. package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
  275. package/lib/hooks/useGlobalState.js +63 -0
  276. package/lib/index.js +40 -0
  277. package/lib/pages/aha2021/img/canceled.svg +13 -0
  278. package/lib/pages/aha2021/img/not-try.png +0 -0
  279. package/lib/pages/aha2021/img/try.png +0 -0
  280. package/lib/pages/aha2021/index.css +52 -0
  281. package/lib/pages/aha2021/index.js +73 -14
  282. package/lib/pages/new-okr-list/header/index.js +2 -1
  283. package/lib/pages/new-okr-list/index.js +3 -3
  284. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
  285. package/lib/pages/pay/image/success.png +0 -0
  286. package/lib/pages/pay/index.css +79 -0
  287. package/lib/pages/pay/index.js +66 -0
  288. package/lib/utils/bs-global.js +13 -9
  289. package/lib/utils/helpers.js +7 -1
  290. package/lib/utils/open-data.js +2 -1
  291. package/lib/utils/tools.js +11 -2
  292. package/package.json +120 -101
  293. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
  294. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
  295. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
  296. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
  297. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
  298. package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
  299. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
  300. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
  301. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
  302. package/lib/components/invite-people/img/invite-people.png +0 -0
@@ -0,0 +1,182 @@
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 _dialog = _interopRequireDefault(require("../dialog"));
13
+
14
+ var _videoBox = _interopRequireDefault(require("./components/video-box"));
15
+
16
+ var _conditionRender = _interopRequireDefault(require("../condition-render"));
17
+
18
+ var _bsGlobal = require("../../utils/bs-global");
19
+
20
+ var _full = _interopRequireDefault(require("./img/full.svg"));
21
+
22
+ var _small = _interopRequireDefault(require("./img/small.svg"));
23
+
24
+ var _close = _interopRequireDefault(require("./img/close.png"));
25
+
26
+ require("./index.css");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
+
30
+ 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); }
31
+
32
+ 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; }
33
+
34
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
+
36
+ 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."); }
37
+
38
+ 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); }
39
+
40
+ 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; }
41
+
42
+ 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; }
43
+
44
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
+
46
+ var preCls = "titaui-pc-video-modal";
47
+ var userId = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Id;
48
+ var VideoModal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
49
+ var videoSrc = props.videoSrc,
50
+ title = props.title,
51
+ videoPoster = props.videoPoster,
52
+ visible = props.visible,
53
+ onClose = props.onClose,
54
+ onOpen = props.onOpen,
55
+ _props$hasextraButton = props.hasextraButton,
56
+ hasextraButton = _props$hasextraButton === void 0 ? true : _props$hasextraButton;
57
+
58
+ var _useState = (0, _react.useState)(true),
59
+ _useState2 = _slicedToArray(_useState, 2),
60
+ smallVideoVisible = _useState2[0],
61
+ setSmallVideoVisible = _useState2[1];
62
+
63
+ var _useState3 = (0, _react.useState)("0"),
64
+ _useState4 = _slicedToArray(_useState3, 2),
65
+ time = _useState4[0],
66
+ setTime = _useState4[1];
67
+
68
+ var modalVideoRef = (0, _react.useRef)(document.createElement("div"));
69
+ var smallVideoRef = (0, _react.useRef)(document.createElement("div")); // 关闭小窗口视频
70
+
71
+ var handleClickCloseSmallVideo = function handleClickCloseSmallVideo() {
72
+ setSmallVideoVisible(false); // @ts-ignore
73
+
74
+ smallVideoRef.current.closeVideo();
75
+ localStorage.setItem("hide_performance_small_video_".concat(userId), "true");
76
+ }; // 打开dialog弹层 关闭小窗口
77
+
78
+
79
+ var handleClickToFull = function handleClickToFull() {
80
+ // @ts-ignore
81
+ setTime(smallVideoRef.current.getCurrentTime());
82
+ onOpen(); // @ts-ignore
83
+
84
+ smallVideoRef.current.closeVideo();
85
+ setSmallVideoVisible(false);
86
+ }; // 关闭dialog弹层 打开小窗口
87
+
88
+
89
+ var handleClickToSmall = function handleClickToSmall() {
90
+ onClose(); // @ts-ignore
91
+
92
+ setTime(modalVideoRef.current.getCurrentTime());
93
+ setSmallVideoVisible(true);
94
+ }; // 关闭过一次自动播放小窗口 之后不再出现
95
+
96
+
97
+ (0, _react.useEffect)(function () {
98
+ if (localStorage.getItem("hide_performance_small_video_".concat(userId)) === "true") {
99
+ setSmallVideoVisible(false); // @ts-ignore
100
+
101
+ smallVideoRef.current.closeVideo();
102
+ }
103
+ }, []);
104
+ (0, _react.useEffect)(function () {
105
+ if (visible) {
106
+ setSmallVideoVisible(false);
107
+ }
108
+ }, [visible]); // *---提供给父组件调用(因为有时间的联动,视频默认从0开始需要手动调用此方法)---*
109
+
110
+ var handleSetDefaultTime = function handleSetDefaultTime() {
111
+ setTime("0");
112
+ };
113
+
114
+ (0, _react.useImperativeHandle)(ref, function () {
115
+ return {
116
+ setDefaultTime: handleSetDefaultTime
117
+ };
118
+ });
119
+ (0, _react.useEffect)(function () {
120
+ if (!hasextraButton) {
121
+ setSmallVideoVisible(false);
122
+ }
123
+ }, []);
124
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
125
+ condition: !smallVideoVisible
126
+ }, /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
127
+ visible: visible,
128
+ title: title,
129
+ onClose: onClose,
130
+ style: {
131
+ width: "840px",
132
+ borderRadius: "24px"
133
+ },
134
+ noHeadLine: true,
135
+ noFooterLine: true,
136
+ noFooter: true,
137
+ destroyOnClose: true
138
+ }, /*#__PURE__*/_react["default"].createElement("div", {
139
+ className: "".concat(preCls, "__full")
140
+ }, /*#__PURE__*/_react["default"].createElement(_videoBox["default"], {
141
+ videoSrc: videoSrc,
142
+ containerWidth: 840,
143
+ ref: modalVideoRef,
144
+ extraButton: hasextraButton ? /*#__PURE__*/_react["default"].createElement("div", {
145
+ className: "".concat(preCls, "__full-control"),
146
+ onClick: handleClickToSmall
147
+ }, /*#__PURE__*/_react["default"].createElement("img", {
148
+ src: _small["default"],
149
+ alt: "\u7F29\u5C0F"
150
+ })) : "",
151
+ videoPoster: videoPoster,
152
+ time: time
153
+ })))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
154
+ condition: smallVideoVisible
155
+ }, /*#__PURE__*/_react["default"].createElement("div", {
156
+ className: "".concat(preCls, "__small")
157
+ }, /*#__PURE__*/_react["default"].createElement(_videoBox["default"], {
158
+ videoSrc: videoSrc,
159
+ containerWidth: 360,
160
+ hasHead: true,
161
+ title: title,
162
+ extraButton: /*#__PURE__*/_react["default"].createElement("div", {
163
+ className: "".concat(preCls, "__small-enlarge"),
164
+ onClick: handleClickToFull
165
+ }, /*#__PURE__*/_react["default"].createElement("img", {
166
+ src: _full["default"],
167
+ alt: "\u5168\u5C4F"
168
+ })),
169
+ videoPoster: videoPoster,
170
+ headButton: /*#__PURE__*/_react["default"].createElement("div", {
171
+ className: "".concat(preCls, "__small-close"),
172
+ onClick: handleClickCloseSmallVideo
173
+ }, /*#__PURE__*/_react["default"].createElement("img", {
174
+ src: _close["default"],
175
+ alt: "\u5173\u95ED"
176
+ })),
177
+ ref: smallVideoRef,
178
+ time: time
179
+ }))));
180
+ });
181
+ var _default = VideoModal;
182
+ exports["default"] = _default;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var formatSecToTime = function formatSecToTime(value) {
9
+ var result = parseInt(value, 10);
10
+ var m = Math.floor(result / 60 % 60) < 10 ? "0".concat(Math.floor(result / 60 % 60)) : Math.floor(result / 60 % 60);
11
+ var s = Math.floor(result % 60) < 10 ? "0".concat(Math.floor(result % 60)) : Math.floor(result % 60);
12
+ var res = "";
13
+
14
+ if (m !== "00") {
15
+ res += "".concat(m, ":");
16
+ } else {
17
+ res += "00:";
18
+ }
19
+
20
+ res += "".concat(s);
21
+ return res;
22
+ };
23
+
24
+ var _default = formatSecToTime;
25
+ exports["default"] = _default;
@@ -89,7 +89,11 @@ var getOpenData = function getOpenData(_ref2) {
89
89
  return reject(err);
90
90
  }
91
91
 
92
- resolve(data.items[0].data);
92
+ if (data && data.items[0]) {
93
+ resolve(data.items[0].data);
94
+ } else {
95
+ resolve(name);
96
+ }
93
97
  });
94
98
  });
95
99
  };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createGlobalState = createGlobalState;
7
+ exports["default"] = void 0;
8
+
9
+ var _react = require("react");
10
+
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
+
13
+ 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."); }
14
+
15
+ 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); }
16
+
17
+ 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; }
18
+
19
+ 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; }
20
+
21
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
+
23
+ function createGlobalState(initialState) {
24
+ var store = {
25
+ state: initialState,
26
+ setState: function setState(state) {
27
+ if (Object.prototype.toString.call(state) === "[object Function]") {
28
+ var stateFunc = state;
29
+ store.state = stateFunc(store.state);
30
+ } else {
31
+ store.state = state;
32
+ }
33
+
34
+ store.setters.forEach(function (setter) {
35
+ return setter(store.state);
36
+ });
37
+ },
38
+ setters: []
39
+ };
40
+ return function () {
41
+ var _useState = (0, _react.useState)(store.state),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ globalState = _useState2[0],
44
+ stateSetter = _useState2[1];
45
+
46
+ (0, _react.useEffect)(function () {
47
+ return function () {
48
+ store.setters = store.setters.filter(function (setter) {
49
+ return setter !== stateSetter;
50
+ });
51
+ };
52
+ }, []);
53
+ (0, _react.useLayoutEffect)(function () {
54
+ if (!store.setters.includes(stateSetter)) {
55
+ store.setters.push(stateSetter);
56
+ }
57
+ });
58
+ return [globalState, store.setState];
59
+ };
60
+ }
61
+
62
+ var _default = createGlobalState;
63
+ exports["default"] = _default;
package/lib/index.js CHANGED
@@ -117,6 +117,12 @@ Object.defineProperty(exports, "ERROR_LEVEL", {
117
117
  return _errorLevel["default"];
118
118
  }
119
119
  });
120
+ Object.defineProperty(exports, "EStatusDropdown", {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _eStatusDropdown["default"];
124
+ }
125
+ });
120
126
  Object.defineProperty(exports, "EmotionsSelector", {
121
127
  enumerable: true,
122
128
  get: function get() {
@@ -327,6 +333,12 @@ Object.defineProperty(exports, "PasswordInput", {
327
333
  return _passwordInput["default"];
328
334
  }
329
335
  });
336
+ Object.defineProperty(exports, "PayPage", {
337
+ enumerable: true,
338
+ get: function get() {
339
+ return _pay["default"];
340
+ }
341
+ });
330
342
  Object.defineProperty(exports, "PeriodSelector", {
331
343
  enumerable: true,
332
344
  get: function get() {
@@ -375,6 +387,12 @@ Object.defineProperty(exports, "RangePickerPop", {
375
387
  return _rangePickerPop["default"];
376
388
  }
377
389
  });
390
+ Object.defineProperty(exports, "RichEditor", {
391
+ enumerable: true,
392
+ get: function get() {
393
+ return _richEditor["default"];
394
+ }
395
+ });
378
396
  Object.defineProperty(exports, "Scrollbar", {
379
397
  enumerable: true,
380
398
  get: function get() {
@@ -417,6 +435,12 @@ Object.defineProperty(exports, "StatusTime", {
417
435
  return _statusTime["default"];
418
436
  }
419
437
  });
438
+ Object.defineProperty(exports, "SupersetCharts", {
439
+ enumerable: true,
440
+ get: function get() {
441
+ return _supersetCharts["default"];
442
+ }
443
+ });
420
444
  Object.defineProperty(exports, "Switch", {
421
445
  enumerable: true,
422
446
  get: function get() {
@@ -501,6 +525,12 @@ Object.defineProperty(exports, "VersionChangeModal", {
501
525
  return _versionChangeModal["default"];
502
526
  }
503
527
  });
528
+ Object.defineProperty(exports, "VideoModal", {
529
+ enumerable: true,
530
+ get: function get() {
531
+ return _videoModal["default"];
532
+ }
533
+ });
504
534
  Object.defineProperty(exports, "WeeklyReport", {
505
535
  enumerable: true,
506
536
  get: function get() {
@@ -566,6 +596,8 @@ var _progress = _interopRequireDefault(require("./components/progress"));
566
596
 
567
597
  var _ePriority = _interopRequireDefault(require("./components/e-priority"));
568
598
 
599
+ var _eStatusDropdown = _interopRequireDefault(require("./components/e-status-dropdown"));
600
+
569
601
  var _statusTime = _interopRequireDefault(require("./components/status-time"));
570
602
 
571
603
  var _tree = _interopRequireDefault(require("./components/tree"));
@@ -726,4 +758,12 @@ var _uploadPhotoModal = _interopRequireDefault(require("./components/upload-phot
726
758
 
727
759
  var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
728
760
 
761
+ var _pay = _interopRequireDefault(require("./pages/pay"));
762
+
763
+ var _richEditor = _interopRequireDefault(require("./components/rich-editor"));
764
+
765
+ var _videoModal = _interopRequireDefault(require("./components/video-modal"));
766
+
767
+ var _supersetCharts = _interopRequireDefault(require("./components/superset-charts"));
768
+
729
769
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>切片</title>
4
+ <g id="整体框架" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="二级菜单-交互说明" transform="translate(-1895.000000, -977.000000)" fill="#141C28">
6
+ <g id="弹层1" transform="translate(1881.000000, 467.000000)">
7
+ <g id="canceled" transform="translate(14.000000, 510.000000)">
8
+ <path d="M18.5178716,4.33431458 C18.8693434,3.98284271 19.4391919,3.98284271 19.7906638,4.33431458 C20.1421356,4.68578644 20.1421356,5.25563492 19.7906638,5.60710678 L19.7906638,5.60710678 L13.2847107,12.1117107 L19.7906638,18.6178716 C20.1421356,18.9693434 20.1421356,19.5391919 19.7906638,19.8906638 C19.4391919,20.2421356 18.8693434,20.2421356 18.5178716,19.8906638 L12.0117107,13.3847107 L5.50710678,19.8906638 C5.18492424,20.2128463 4.67924468,20.2396948 4.3264793,19.9712094 L4.23431458,19.8906638 C3.88284271,19.5391919 3.88284271,18.9693434 4.23431458,18.6178716 L4.23431458,18.6178716 L10.7397107,12.1117107 L4.23431458,5.60710678 C3.88284271,5.25563492 3.88284271,4.68578644 4.23431458,4.33431458 C4.58578644,3.98284271 5.15563492,3.98284271 5.50710678,4.33431458 L12.0117107,10.8397107 Z" id="形状结合"></path>
9
+ </g>
10
+ </g>
11
+ </g>
12
+ </g>
13
+ </svg>
Binary file
@@ -25,10 +25,18 @@
25
25
  z-index: 2;
26
26
  }
27
27
 
28
+ .titaui-aha-2021__try-kefu {
29
+ position: absolute;
30
+ bottom: 134px;
31
+ right: 24px;
32
+ z-index: 2;
33
+ }
34
+
28
35
  .titaui-aha-2021__kefu {
29
36
  width: 42px;
30
37
  height: 42px;
31
38
  background: url("./img/kefu.svg") no-repeat;
39
+ background-color: #fff;
32
40
  background-size: 42px;
33
41
  box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
34
42
  cursor: pointer;
@@ -84,6 +92,50 @@
84
92
  animation: contentOpacity 0.7s 1 forwards;
85
93
  }
86
94
 
95
+ .titaui-aha-2021__hidden {
96
+ background-image: none;
97
+ }
98
+
99
+ .titaui-aha-2021__cancel {
100
+ height: 100%;
101
+ background: url("./img/canceled.svg") 50% 50% no-repeat;
102
+ animation-duration: 0.3s;
103
+ animation-name: kefuActive;
104
+ }
105
+
106
+ .titaui-aha-2021__popup {
107
+ width: 332px;
108
+ height: 376px;
109
+ display: flex;
110
+ flex-direction: column;
111
+ justify-content: center;
112
+ align-items: center;
113
+ background: #ffffff;
114
+ box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
115
+ border-radius: 24px;
116
+ }
117
+
118
+ .titaui-aha-2021__popup-title {
119
+ font-size: 20px;
120
+ font-weight: 600;
121
+ color: #141c28;
122
+ line-height: 30px;
123
+ }
124
+
125
+ .titaui-aha-2021__popup-content {
126
+ margin-top: 4px;
127
+ font-size: 14px;
128
+ font-weight: normal;
129
+ color: #6f7886;
130
+ line-height: 22px;
131
+ }
132
+
133
+ .titaui-aha-2021__popup-img {
134
+ width: 200px;
135
+ height: 200px;
136
+ margin-top: 24px;
137
+ }
138
+
87
139
  @keyframes contentOpacity {
88
140
  from {
89
141
  opacity: 0;
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  var _tooltip = _interopRequireDefault(require("../../components/tooltip"));
15
15
 
16
+ var _popup = _interopRequireDefault(require("../../components/popup"));
17
+
16
18
  var _navTop = _interopRequireDefault(require("../../components/nav-top"));
17
19
 
18
20
  var _followerVisitor = _interopRequireDefault(require("../../components/follower-visitor"));
@@ -25,8 +27,6 @@ var _bookDemo = _interopRequireDefault(require("../../components/book-demo"));
25
27
 
26
28
  var _platform = require("../../utils/platform");
27
29
 
28
- require("./index.css");
29
-
30
30
  var _helpers = require("../../utils/helpers");
31
31
 
32
32
  var _hrHeader = _interopRequireDefault(require("../../components/hr-header"));
@@ -39,12 +39,32 @@ var _errorBoundary = _interopRequireDefault(require("../../components/error-boun
39
39
 
40
40
  var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
41
41
 
42
+ var _notTry = _interopRequireDefault(require("./img/not-try.png"));
43
+
44
+ var _try = _interopRequireDefault(require("./img/try.png"));
45
+
46
+ require("./index.css");
47
+
42
48
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
43
49
 
44
50
  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); }
45
51
 
46
52
  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; }
47
53
 
54
+ 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; }
55
+
56
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
57
+
58
+ 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."); }
59
+
60
+ 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); }
61
+
62
+ 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; }
63
+
64
+ 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; }
65
+
66
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
67
+
48
68
  var preCls = "titaui-aha-2021";
49
69
 
50
70
  function ContentTemplate(props) {
@@ -70,19 +90,29 @@ function ContentTemplate(props) {
70
90
 
71
91
  function PageLayout(props) {
72
92
  var children = props.children;
73
- var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
74
- var isTencentHr = window.BSGlobal.tenantInfo.Source === 964;
75
93
 
76
- var onClickKefu = function onClickKefu() {
77
- var kefuUrl = isTrial ? "https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true" : "https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true";
78
- window.open(kefuUrl);
79
- }; // const onClickNotice = () => {
94
+ var _useState = (0, _react.useState)(false),
95
+ _useState2 = _slicedToArray(_useState, 2),
96
+ visible = _useState2[0],
97
+ setVisible = _useState2[1];
98
+
99
+ var handleShowCode = function handleShowCode() {
100
+ setVisible(true);
101
+ };
102
+
103
+ var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
104
+ var isTencentHr = window.BSGlobal.tenantInfo.Source === 964; // const onClickKefu = () => {
105
+ // const kefuUrl = isTrial
106
+ // ? 'https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true'
107
+ // : 'https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true'
108
+ // window.open(kefuUrl)
109
+ // }
110
+ // const onClickNotice = () => {
80
111
  // let domain = `//${location.host}/u/${window.BSGlobal.loginUserInfo.Id}/Home`;
81
112
  // let hash = `#more/messages?messageType=1&isRead=2&messageSubNav=1`
82
113
  // window.open(domain + hash);
83
114
  // };
84
115
 
85
-
86
116
  var getBookDemoVersion = function getBookDemoVersion() {
87
117
  var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
88
118
 
@@ -97,6 +127,18 @@ function PageLayout(props) {
97
127
  return _bookDemo["default"].DemoType.UniversalBookDemo;
98
128
  };
99
129
 
130
+ var popup = /*#__PURE__*/_react["default"].createElement("div", {
131
+ className: "".concat(preCls, "__popup")
132
+ }, /*#__PURE__*/_react["default"].createElement("div", {
133
+ className: "".concat(preCls, "__popup-title")
134
+ }, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
135
+ className: "".concat(preCls, "__popup-content")
136
+ }, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
137
+ src: isTrial ? _try["default"] : _notTry["default"],
138
+ className: "".concat(preCls, "__popup-img"),
139
+ alt: "\u5FAE\u4FE1\u626B\u7801"
140
+ }));
141
+
100
142
  return /*#__PURE__*/_react["default"].createElement("div", {
101
143
  className: (0, _classnames["default"])(preCls)
102
144
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -110,16 +152,33 @@ function PageLayout(props) {
110
152
  }
111
153
  }, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
112
154
  className: (0, _classnames["default"])("".concat(preCls, "__help"))
113
- }, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTrial && !isTencentHr && !(0, _helpers.isDingDing)() && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
155
+ }, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTencentHr && !(0, _helpers.isDingDing)() && !(0, _helpers.isFeishu)() && /*#__PURE__*/_react["default"].createElement(_popup["default"], {
156
+ popup: popup,
157
+ popupTransitionName: "tita-popup-zoom-left-bottom",
158
+ placement: "topLeft",
159
+ popupAlign: {
160
+ offset: [-32, -10],
161
+ overflow: {
162
+ adjustX: 1,
163
+ adjustY: 1
164
+ }
165
+ },
166
+ popupVisible: visible,
167
+ onPopupVisibleChange: function onPopupVisibleChange(bol) {
168
+ return setVisible(bol);
169
+ }
170
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
114
171
  overlay: "\u8054\u7CFB\u5BA2\u670D",
115
- placement: "left",
172
+ placement: "right",
116
173
  align: {
117
174
  offset: [0, 0]
118
175
  }
119
176
  }, /*#__PURE__*/_react["default"].createElement("div", {
120
- className: "".concat(preCls, "__kefu"),
121
- onClick: onClickKefu
122
- })), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
177
+ className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
178
+ onClick: handleShowCode
179
+ }, /*#__PURE__*/_react["default"].createElement("div", {
180
+ className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
181
+ })))), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
123
182
  className: "".concat(preCls, "__invite")
124
183
  }, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
125
184
  errorLevel: _errorLevel["default"].P0,
@@ -154,7 +154,8 @@ function Header(props, ref) {
154
154
  annualNum: annualNum,
155
155
  yqmNum: yqmNum
156
156
  })), "rootNode=".concat(JSON.stringify(rootNode)), "level2Selected=".concat(JSON.stringify(level2Selected))].join("&");
157
- window.location.href = "".concat(window.location.origin, "/#okr/map?").concat(urlQuery);
157
+ var origin = window.location.href.split('#')[0];
158
+ window.location.href = "".concat(origin, "/#okr/map?").concat(urlQuery);
158
159
  };
159
160
 
160
161
  var getTitle = function getTitle() {
@@ -205,8 +205,8 @@ var NewOkrList = function NewOkrList(props) {
205
205
  params.Searchpage = 2;
206
206
  }
207
207
 
208
- if (departmentId != 0) {
209
- params.keyWords = '';
208
+ if (departmentId !== 0 && departmentId !== "0") {
209
+ params.keyWords = "";
210
210
  }
211
211
 
212
212
  var request;
@@ -363,7 +363,7 @@ var NewOkrList = function NewOkrList(props) {
363
363
  className: "okr-list__check-filter-btn",
364
364
  onClick: triggerAnimation
365
365
  }, (0, _getLocale.getLocale)("OKR_MyO_Text_Check")), (0, _getLocale.getLocale)("OKR_MyO_Text_Topfiltercriteria")), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
366
- zIndex: 99999,
366
+ zIndex: 1200,
367
367
  noHeadLine: true,
368
368
  visible: casesVisible,
369
369
  onClose: onCasesCloseHandler,
@@ -59,11 +59,6 @@ function _default(props) {
59
59
  return setShowKr(checked);
60
60
  }
61
61
  })), /*#__PURE__*/_react["default"].createElement("span", {
62
- className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-dark")),
63
- onClick: function onClick() {
64
- return setDarkTheme(!darkTheme);
65
- }
66
- }, "\u5207\u6362", darkTheme ? "浅色" : "深色", "\u6A21\u5F0F"), /*#__PURE__*/_react["default"].createElement("span", {
67
62
  className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-direction"))
68
63
  }, /*#__PURE__*/_react["default"].createElement(_iconButtonList["default"], {
69
64
  items: iconButtons,
Binary file