@titaui/pc 1.17.3 → 1.17.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (995) hide show
  1. package/lib/components/attachments-preview/index.js +9 -4
  2. package/lib/components/auto-save/index.js +4 -2
  3. package/lib/components/avatar/default.js +6 -5
  4. package/lib/components/avatar/name-avatar/index.js +8 -5
  5. package/lib/components/avatar/text-avatar/index.js +5 -3
  6. package/lib/components/book-demo/components/pc/components/checkbox/index.js +5 -3
  7. package/lib/components/book-demo/components/pc/components/content/index.js +5 -3
  8. package/lib/components/book-demo/components/pc/components/drop-select/index.js +5 -3
  9. package/lib/components/book-demo/components/pc/components/input/index.js +5 -3
  10. package/lib/components/book-demo/components/pc/components/phone/index.js +5 -3
  11. package/lib/components/book-demo/components/pc/components/verify-code/index.js +5 -3
  12. package/lib/components/book-demo/components/pc/index.js +2 -2
  13. package/lib/components/book-demo/constant.js +130 -9
  14. package/lib/components/book-demo/interface.js +5 -4
  15. package/lib/components/book-demo/utils.js +4 -1
  16. package/lib/components/button/default-button/index.js +4 -1
  17. package/lib/components/button/icon-btn/index.css +8 -3
  18. package/lib/components/button/icon-btn/index.js +4 -1
  19. package/lib/components/button/rect-btn/index.css +5 -1
  20. package/lib/components/button/rect-btn/index.js +6 -1
  21. package/lib/components/button/text-btn/index.js +4 -1
  22. package/lib/components/card-template/index.css +74 -0
  23. package/lib/components/card-template/index.js +44 -0
  24. package/lib/components/carousel/index.css +70 -0
  25. package/lib/components/carousel/index.js +85 -0
  26. package/lib/components/cascader/index.js +2 -2
  27. package/lib/components/change-okr-modal/Filter.js +5 -3
  28. package/lib/components/change-okr-modal/Item.js +7 -3
  29. package/lib/components/change-okr-modal/filterTab.js +3 -1
  30. package/lib/components/change-okr-modal/index.js +82 -82
  31. package/lib/components/checkbox/index.js +10 -6
  32. package/lib/components/checkbox-list/index.js +1 -1
  33. package/lib/components/color-date-picker/index.js +5 -3
  34. package/lib/components/color-date-picker/interface.js +4 -4
  35. package/lib/components/common-share/index.js +2 -2
  36. package/lib/components/common-share/publishMblog.js +29 -29
  37. package/lib/components/communication/CommunicationAttachments.js +5 -1
  38. package/lib/components/communication/ConvertUserName.js +3 -1
  39. package/lib/components/communication/index.js +16 -4
  40. package/lib/components/confidence/index.js +4 -2
  41. package/lib/components/contact-kefu/index.js +5 -3
  42. package/lib/components/create-okr-modal/createCycle.js +5 -3
  43. package/lib/components/create-okr-modal/createSuccessCmp.js +2 -2
  44. package/lib/components/create-okr-modal/fields/date-cycle.js +2 -2
  45. package/lib/components/create-okr-modal/fields/o-new-name.js +2 -2
  46. package/lib/components/create-okr-modal/fields/okr-case.js +2 -2
  47. package/lib/components/create-okr-modal/fields/okr-create-suggest.js +4 -4
  48. package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +3 -3
  49. package/lib/components/create-okr-modal/fields/okr-parent.js +2 -2
  50. package/lib/components/create-okr-modal/fields/okr-type-detail.js +15 -17
  51. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +28 -30
  52. package/lib/components/create-okr-modal/index.js +136 -136
  53. package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +5 -3
  54. package/lib/components/create-okr-modal/kr-items/krDatas.js +5 -3
  55. package/lib/components/create-okr-modal/kr-items/krItem.js +4 -2
  56. package/lib/components/create-okr-modal/objectType.js +7 -3
  57. package/lib/components/create-okr-modal/request-api.js +73 -83
  58. package/lib/components/create-okr-modal/utils/helper.js +44 -44
  59. package/lib/components/date-picker/BodyItem.js +11 -4
  60. package/lib/components/date-picker/CalendarBody.js +9 -2
  61. package/lib/components/date-picker/CalendarHeader.js +11 -4
  62. package/lib/components/date-picker/index.js +9 -2
  63. package/lib/components/date-range-picker/index.js +11 -4
  64. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -1
  65. package/lib/components/dialog/index.js +4 -2
  66. package/lib/components/dialog-confirm/index.js +8 -3
  67. package/lib/components/dialog-qq-docs/index.js +109 -115
  68. package/lib/components/dialog-qq-docs/utils.js +32 -32
  69. package/lib/components/dialog-upload/index.js +34 -34
  70. package/lib/components/dialog-upload/util.js +4 -1
  71. package/lib/components/dingding-btn/index.js +5 -3
  72. package/lib/components/drawer/headerAction.js +5 -3
  73. package/lib/components/drawer/headerDrop.js +2 -2
  74. package/lib/components/drawer/index.js +3 -1
  75. package/lib/components/drawer/utils/dom.js +1 -1
  76. package/lib/components/drawer/utils/useForceUpdate.js +2 -2
  77. package/lib/components/drawer-manager/drawerWrapper.js +48 -48
  78. package/lib/components/drawer-manager/index.js +5 -2
  79. package/lib/components/drawer-manager/utils/dom.js +1 -1
  80. package/lib/components/drawer-manager/utils/useForceUpdate.js +2 -2
  81. package/lib/components/drop-selector/icon-item.js +4 -1
  82. package/lib/components/drop-selector/index.css +6 -4
  83. package/lib/components/drop-selector/index.js +5 -3
  84. package/lib/components/dynamic/components/comments-dialog/encourage.js +2 -2
  85. package/lib/components/dynamic/components/comments-dialog/index.js +29 -28
  86. package/lib/components/dynamic/components/comments-dialog/rate.js +2 -2
  87. package/lib/components/dynamic/components/percent/index.js +4 -1
  88. package/lib/components/dynamic/components/title/index.css +8 -0
  89. package/lib/components/dynamic/components/title/index.js +8 -3
  90. package/lib/components/dynamic/constant.js +76 -14
  91. package/lib/components/dynamic/dynamic-item/components/footer-left/index.js +2 -2
  92. package/lib/components/dynamic/dynamic-item/components/header/index.css +36 -0
  93. package/lib/components/dynamic/dynamic-item/components/header/index.js +112 -33
  94. package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +4 -4
  95. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +5 -3
  96. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +21 -21
  97. package/lib/components/dynamic/dynamic-item/components/progress/index.js +4 -2
  98. package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +4 -4
  99. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +43 -47
  100. package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +5 -2
  101. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +4 -1
  102. package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +4 -4
  103. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +5 -3
  104. package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +8 -8
  105. package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +2 -2
  106. package/lib/components/dynamic/dynamic-item/components/work-progress/constant.js +4 -4
  107. package/lib/components/dynamic/dynamic-item/components/work-progress/index.js +5 -3
  108. package/lib/components/dynamic/dynamic-item/components/work-progress/interface.js +8 -8
  109. package/lib/components/dynamic/dynamic-item/components/work-progress/utils.js +6 -3
  110. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +5 -3
  111. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +3 -1
  112. package/lib/components/dynamic/dynamic-item/dynamic-discovery/dynamic-footer.js +5 -3
  113. package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +2 -2
  114. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +2 -1
  115. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +2 -2
  116. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +31 -30
  117. package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +8 -8
  118. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +28 -12
  119. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +5 -3
  120. package/lib/components/dynamic/dynamic-item/dynamic-replay/constant.js +23 -0
  121. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +140 -0
  122. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +310 -0
  123. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +6 -5
  124. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +3 -1
  125. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +3 -1
  126. package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +4 -1
  127. package/lib/components/dynamic/dynamic-item/index.css +5 -0
  128. package/lib/components/dynamic/dynamic-item/index.js +55 -40
  129. package/lib/components/dynamic/request-api.js +16 -2
  130. package/lib/components/e-priority/index.js +2 -2
  131. package/lib/components/e-status-dropdown/index.js +2 -2
  132. package/lib/components/eReport/eReportListEmpty.js +3 -1
  133. package/lib/components/eReport/eReportLists/reportList.js +5 -1
  134. package/lib/components/eReport/eReportShare/index.js +4 -2
  135. package/lib/components/eReport/eReportShare/toast/index.js +3 -1
  136. package/lib/components/edit-kr-wight/EditKrWightModal.js +6 -2
  137. package/lib/components/edit-kr-wight/FormItemV2.js +10 -1
  138. package/lib/components/edit-kr-wight/utils.js +4 -1
  139. package/lib/components/emotions-selector/selector-content.js +6 -2
  140. package/lib/components/emotions-selector/selector-pop.js +3 -1
  141. package/lib/components/enps-answer/img/center-bg.jpg +0 -0
  142. package/lib/components/enps-answer/img/center-checked.png +0 -0
  143. package/lib/components/enps-answer/img/center-hover.svg +20 -0
  144. package/lib/components/enps-answer/img/high-bg.jpg +0 -0
  145. package/lib/components/enps-answer/img/high-checked.png +0 -0
  146. package/lib/components/enps-answer/img/high-hover.svg +20 -0
  147. package/lib/components/enps-answer/img/low-bg.jpg +0 -0
  148. package/lib/components/enps-answer/img/low-checked.png +0 -0
  149. package/lib/components/enps-answer/img/low-hover.svg +20 -0
  150. package/lib/components/enps-answer/index.css +169 -0
  151. package/lib/components/enps-answer/index.js +228 -0
  152. package/lib/components/enps-answer/request-api.js +102 -0
  153. package/lib/components/ereport-list/index.js +5 -1
  154. package/lib/components/error-boundary/index.js +3 -1
  155. package/lib/components/expiration-reminder/index.js +30 -7
  156. package/lib/components/expiration-reminder/utils.js +8 -8
  157. package/lib/components/file-list/components/single-file/index.js +2 -2
  158. package/lib/components/file-preview/index.js +4 -4
  159. package/lib/{pages/new-okr-list/header/filter.js → components/filter/index.js} +23 -11
  160. package/lib/components/filter-buttons/modular.js +5 -4
  161. package/lib/components/filter-buttons/name.js +2 -2
  162. package/lib/components/filter-buttons/search-dropdown/index.js +4 -1
  163. package/lib/components/firework/index.js +31 -31
  164. package/lib/components/focus/index.css +0 -0
  165. package/lib/components/focus/index.js +78 -0
  166. package/lib/components/follower-visitor/index.js +2 -2
  167. package/lib/components/form/form-fields/cycle/index.css +1 -1
  168. package/lib/components/form/form-fields/cycle/index.js +6 -4
  169. package/lib/components/form/form-fields/date/index.css +1 -0
  170. package/lib/components/form/form-fields/date/index.js +4 -1
  171. package/lib/components/form/form-fields/department/index.css +1 -0
  172. package/lib/components/form/form-fields/department/index.js +5 -3
  173. package/lib/components/form/form-fields/dropdown/index.js +2 -2
  174. package/lib/components/form/form-fields/duties/index.js +5 -3
  175. package/lib/components/form/form-fields/input/index.js +5 -3
  176. package/lib/components/form/form-fields/input-verification-code/index.js +35 -35
  177. package/lib/components/form/form-fields/password/index.js +5 -3
  178. package/lib/components/form/form-fields/radios/index.css +1 -0
  179. package/lib/components/form/form-fields/radios/index.js +11 -3
  180. package/lib/components/form/form-fields/textarea/index.js +5 -3
  181. package/lib/components/form/form-fields/user/index.js +5 -3
  182. package/lib/components/form/index.js +4 -2
  183. package/lib/components/grid-layout/commen-components/scroll-tips.js +2 -3
  184. package/lib/components/grid-layout/essay-component/index.js +2 -2
  185. package/lib/components/grid-layout/index.js +2 -0
  186. package/lib/components/grid-layout/near-visitors/index.js +2 -2
  187. package/lib/components/grid-layout/near-visitors/visitor.js +2 -2
  188. package/lib/components/grid-layout/okr-align/index.js +2 -2
  189. package/lib/components/grid-layout/okr-progress/index.js +2 -2
  190. package/lib/components/grid-layout/okr-target/index.js +2 -2
  191. package/lib/components/grid-layout/over-view/index.js +2 -2
  192. package/lib/components/grid-layout/personal-info/index.js +2 -2
  193. package/lib/components/grid-layout/sub-employee-okr/index.js +2 -2
  194. package/lib/components/grid-layout/sub-employee-okr/person-okr.js +2 -2
  195. package/lib/components/grid-layout/util/click-link.js +4 -1
  196. package/lib/components/grid-layout/util/network.js +47 -53
  197. package/lib/components/grid-layout/week-task/index.js +2 -2
  198. package/lib/components/grid-layout/words-cloud/index.js +2 -2
  199. package/lib/components/grid-page/commen-components/scroll-tips.js +2 -3
  200. package/lib/components/grid-page/near-visitors/visitor.js +2 -2
  201. package/lib/components/grid-page/personal-info/index.js +2 -2
  202. package/lib/components/guide-card/cover/replay/assets/cover-bg.jpg +0 -0
  203. package/lib/components/guide-card/cover/replay/assets/cover-cube-blue.png +0 -0
  204. package/lib/components/guide-card/cover/replay/assets/cover-cube-white.png +0 -0
  205. package/lib/components/guide-card/cover/replay/index.css +44 -0
  206. package/lib/components/guide-card/cover/replay/index.js +88 -0
  207. package/lib/components/guide-card/index.css +92 -0
  208. package/lib/components/guide-card/index.js +66 -0
  209. package/lib/components/guide-order/index.js +5 -3
  210. package/lib/components/guide-tip/index.js +7 -3
  211. package/lib/components/help-card/index.js +2 -2
  212. package/lib/components/help-card/interface.js +4 -4
  213. package/lib/components/hr-header/index.js +5 -3
  214. package/lib/components/icon-button-list/index.js +4 -1
  215. package/lib/components/img-viewer/index.js +5 -3
  216. package/lib/components/import-modal/helper.js +2 -2
  217. package/lib/components/import-modal/import-okr-modal/index.js +11 -5
  218. package/lib/components/import-modal/import-task-modal/index.js +5 -3
  219. package/lib/components/import-modal/import-task-modal/search-form.js +16 -15
  220. package/lib/components/import-modal/radio.js +5 -3
  221. package/lib/components/import-modal/request-api.js +5 -2
  222. package/lib/components/import-modal/search/category-select.js +2 -2
  223. package/lib/components/import-modal/search/okr-classify-select.js +2 -2
  224. package/lib/components/import-modal/search/okr-relation.js +63 -0
  225. package/lib/components/import-modal/search/okr-status-select.js +2 -2
  226. package/lib/components/import-modal/search/okr-type-select.js +3 -3
  227. package/lib/components/import-modal/search/principal.js +2 -2
  228. package/lib/components/import-modal/search/relation.js +2 -2
  229. package/lib/components/import-modal/search/task-relation.js +5 -2
  230. package/lib/components/import-modal/search/task-status-select.js +2 -2
  231. package/lib/components/import-modal/search/work-relation.js +2 -2
  232. package/lib/components/import-modal/search/work-status-select.js +2 -2
  233. package/lib/components/import-modal/tree/okr-tree/index.js +35 -30
  234. package/lib/components/import-modal/tree/okr-tree/new-search-form.js +140 -0
  235. package/lib/components/import-modal/tree/okr-tree/search-form.js +5 -3
  236. package/lib/components/import-modal/tree/task-work-tree/index.js +1 -1
  237. package/lib/components/import-modal/tree-node/kr-node/index.css +1 -1
  238. package/lib/components/import-modal/tree-node/o-node/index.css +1 -1
  239. package/lib/components/import-modal/tree-node/o-node/index.js +13 -5
  240. package/lib/components/keyword-search/index.js +5 -3
  241. package/lib/components/loading/index.js +5 -3
  242. package/lib/components/magnet/index.js +6 -9
  243. package/lib/components/mblog/components/ConfirmPop.js +3 -1
  244. package/lib/components/mblog/components/MblogAction.js +4 -2
  245. package/lib/components/mblog/components/MblogContent.js +31 -5
  246. package/lib/components/mblog/index.js +23 -3
  247. package/lib/components/menus/components/flip-menu-card/index.js +5 -3
  248. package/lib/components/menus/components/menu-card/index.js +5 -3
  249. package/lib/components/menus/components/menu-close-btn/index.js +4 -1
  250. package/lib/components/menus/components/menu-tree/images/research-menu/comment.svg +9 -0
  251. package/lib/components/menus/components/menu-tree/images/research-menu/eNPS.svg +12 -0
  252. package/lib/components/menus/components/menu-tree/images/skynet-dataset-menu/dataset-working-hours.svg +10 -0
  253. package/lib/components/menus/components/menu-tree/tree-node/assess-manage.js +2 -2
  254. package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +2 -2
  255. package/lib/components/menus/components/menu-tree/tree-node/depart/index.js +2 -2
  256. package/lib/components/menus/components/menu-tree/tree-node/index.css +112 -0
  257. package/lib/components/menus/components/menu-tree/tree-node/index.js +8 -1
  258. package/lib/components/menus/components/menu-tree/tree-node/menu-item.js +2 -2
  259. package/lib/components/menus/components/menu-tree/tree-node/sub-menu-item.js +2 -2
  260. package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +5 -3
  261. package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +5 -3
  262. package/lib/components/menus/components/menu-tree/tree-node/summary-tongji.js +5 -3
  263. package/lib/components/menus/components/menu-tree/tree-node/user/index.css +19 -1
  264. package/lib/components/menus/components/menu-tree/tree-node/user/index.js +7 -2
  265. package/lib/components/menus/components/search-colleague/index.css +24 -0
  266. package/lib/components/menus/components/search-colleague/index.js +13 -4
  267. package/lib/components/menus/export-modules/appraisal-menus/index.js +3 -3
  268. package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +47 -28
  269. package/lib/components/menus/export-modules/appraisal-menus/menus.js +48 -16
  270. package/lib/components/menus/export-modules/demo-menus/index.js +4 -3
  271. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +4 -1
  272. package/lib/components/menus/export-modules/demo-menus/menus.js +8 -5
  273. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +4 -1
  274. package/lib/components/menus/export-modules/interview-menus/index.js +2 -2
  275. package/lib/components/menus/export-modules/interview-menus/menus.js +4 -1
  276. package/lib/components/menus/export-modules/manage-menus/handle-highlight.js +4 -1
  277. package/lib/components/menus/export-modules/manage-menus/index.js +2 -2
  278. package/lib/components/menus/export-modules/okr-menus/depart-menus/helper.js +4 -1
  279. package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +3 -3
  280. package/lib/components/menus/export-modules/okr-menus/index.js +2 -2
  281. package/lib/components/menus/export-modules/okr-menus/menu-highlight.js +4 -1
  282. package/lib/components/menus/export-modules/okr-menus/menus.js +7 -2
  283. package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +2 -4
  284. package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +3 -3
  285. package/lib/components/menus/export-modules/pulse-research-menu/index.css +9 -0
  286. package/lib/components/menus/export-modules/pulse-research-menu/index.js +92 -0
  287. package/lib/components/menus/export-modules/pulse-research-menu/menu-highlight.js +55 -0
  288. package/lib/components/menus/export-modules/pulse-research-menu/menus.js +95 -0
  289. package/lib/components/menus/export-modules/pulse-research-menu/pulse-research-front-menus.js +126 -0
  290. package/lib/components/menus/export-modules/replay-menus/depart-menus/helper.js +51 -0
  291. package/lib/components/menus/export-modules/replay-menus/depart-menus/index.css +32 -0
  292. package/lib/components/menus/export-modules/replay-menus/depart-menus/index.js +210 -0
  293. package/lib/components/menus/export-modules/replay-menus/index.css +9 -0
  294. package/lib/components/menus/export-modules/replay-menus/index.js +129 -0
  295. package/lib/components/menus/export-modules/replay-menus/menu-highlight.js +93 -0
  296. package/lib/components/menus/export-modules/replay-menus/menus.js +358 -0
  297. package/lib/components/menus/export-modules/replay-menus/request-api.js +18 -0
  298. package/lib/components/menus/export-modules/replay-menus/review-front-menus.js +323 -0
  299. package/lib/components/menus/export-modules/replay-menus/subordinate-menus/helper.js +25 -0
  300. package/lib/components/menus/export-modules/replay-menus/subordinate-menus/index.css +14 -0
  301. package/lib/components/menus/export-modules/replay-menus/subordinate-menus/index.js +163 -0
  302. package/lib/components/menus/export-modules/research-menu/index.js +2 -2
  303. package/lib/components/menus/export-modules/research-menu/menu-highlight.js +4 -1
  304. package/lib/components/menus/export-modules/research-menu/menus.js +4 -1
  305. package/lib/components/menus/export-modules/research-menu/research-front-menus.js +2 -2
  306. package/lib/components/menus/export-modules/skynet-dashboard-menu/index.js +2 -2
  307. package/lib/components/menus/export-modules/skynet-dashboard-menu/menu-highlight.js +4 -1
  308. package/lib/components/menus/export-modules/skynet-dashboard-menu/menus.js +21 -3
  309. package/lib/components/menus/export-modules/skynet-dashboard-menu/survey-front-menus.js +2 -2
  310. package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +4 -1
  311. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +2 -2
  312. package/lib/components/menus/export-modules/summary-menus/index.js +2 -2
  313. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +4 -1
  314. package/lib/components/menus/export-modules/summary-menus/menus.js +5 -2
  315. package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +2 -2
  316. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +2 -5
  317. package/lib/components/menus/export-modules/survey-menu/index.js +2 -2
  318. package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +4 -1
  319. package/lib/components/menus/export-modules/survey-menu/menus.js +4 -1
  320. package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +2 -2
  321. package/lib/components/menus/i18n.js +10 -1
  322. package/lib/components/menus/index.js +8 -0
  323. package/lib/components/menus/request-apis.js +17 -1
  324. package/lib/components/mirroring/index.js +4 -1
  325. package/lib/components/modal-replay/api.js +32 -0
  326. package/lib/components/modal-replay/index.css +134 -0
  327. package/lib/components/modal-replay/index.js +369 -0
  328. package/lib/components/modal-replay/types.js +24 -0
  329. package/lib/components/modal-single-replay/index.css +9 -0
  330. package/lib/components/modal-single-replay/index.js +217 -0
  331. package/lib/components/mouse-move-block/index.css +15 -0
  332. package/lib/components/mouse-move-block/index.js +63 -0
  333. package/lib/components/mutation-observer/index.js +55 -0
  334. package/lib/components/nav-top/components/app-center/images/yuyue-award.png +0 -0
  335. package/lib/components/nav-top/components/app-center/index.js +2 -2
  336. package/lib/components/nav-top/components/app-center/interface.js +4 -4
  337. package/lib/components/nav-top/components/menu/index.js +5 -3
  338. package/lib/components/nav-top/components/user-message/components/inform/index.js +2 -2
  339. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +38 -33
  340. package/lib/components/nav-top/components/user-message/components/red-pack/index.js +2 -2
  341. package/lib/components/nav-top/components/user-message/components/remind/index.js +2 -2
  342. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +4 -1
  343. package/lib/components/nav-top/components/user-message/components/reply/index.js +2 -2
  344. package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +4 -1
  345. package/lib/components/nav-top/components/user-message/components/todos/index.js +2 -2
  346. package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +4 -1
  347. package/lib/components/nav-top/components/user-message/constant.js +4 -4
  348. package/lib/components/nav-top/components/user-message/hrMessage.js +2 -2
  349. package/lib/components/nav-top/components/user-message/index.js +5 -3
  350. package/lib/components/nav-top/components/user-message/msg/index.js +2 -2
  351. package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +5 -3
  352. package/lib/components/nav-top/components/user-own-menu/utils.js +4 -1
  353. package/lib/components/nav-top/components/version/index.js +5 -4
  354. package/lib/components/nav-top/constant.js +5 -2
  355. package/lib/components/nav-top/index.js +5 -3
  356. package/lib/components/nav-top/request.apis.js +1 -0
  357. package/lib/components/new-confidence/constant.js +8 -5
  358. package/lib/components/new-confidence/index.js +7 -4
  359. package/lib/components/okr-dash-filter/index.css +78 -0
  360. package/lib/components/okr-dash-filter/index.js +157 -0
  361. package/lib/components/okr-dashboard-filter-drawer/filter-form.js +206 -0
  362. package/lib/components/okr-dashboard-filter-drawer/index.css +63 -0
  363. package/lib/components/okr-dashboard-filter-drawer/index.js +38 -0
  364. package/lib/components/okr-detail/auth.js +4 -2
  365. package/lib/components/okr-detail/base-info/base-info.js +5 -3
  366. package/lib/components/okr-detail/base-info/o-desc/index.js +2 -2
  367. package/lib/components/okr-detail/base-info/other-infos/common/border-wrapper/index.js +2 -2
  368. package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +2 -2
  369. package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +2 -2
  370. package/lib/components/okr-detail/base-info/other-infos/other-infos.js +4 -2
  371. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +16 -18
  372. package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +2 -2
  373. package/lib/components/okr-detail/base-info/util.js +4 -1
  374. package/lib/components/okr-detail/components/ao-nice/index.js +47 -51
  375. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -1
  376. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +3 -1
  377. package/lib/components/okr-detail/components/base-okr-type/object-type.js +7 -3
  378. package/lib/components/okr-detail/components/editable-input/index.js +5 -3
  379. package/lib/components/okr-detail/components/header/edit-name.js +42 -42
  380. package/lib/components/okr-detail/components/header/index.js +3 -3
  381. package/lib/components/okr-detail/components/header/o-avatar.js +23 -25
  382. package/lib/components/okr-detail/components/header/o-classify.js +27 -29
  383. package/lib/components/okr-detail/components/header/o-score.js +5 -3
  384. package/lib/components/okr-detail/components/icon-text/index.js +5 -3
  385. package/lib/components/okr-detail/components/o-classify.js +31 -33
  386. package/lib/components/okr-detail/components/o-progress-update/index.js +28 -28
  387. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +48 -50
  388. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +2 -2
  389. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
  390. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +2 -2
  391. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +50 -50
  392. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +50 -50
  393. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +27 -27
  394. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +4 -2
  395. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +12 -2
  396. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +2 -2
  397. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +24 -26
  398. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +82 -86
  399. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +6 -4
  400. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +5 -3
  401. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +26 -28
  402. package/lib/components/okr-detail/components/okr-type.js +2 -2
  403. package/lib/components/okr-detail/detail-footer/index.js +29 -31
  404. package/lib/components/okr-detail/detail-header/actions.js +4 -1
  405. package/lib/components/okr-detail/detail-header/confirm.js +2 -2
  406. package/lib/components/okr-detail/detail-header/constant.js +8 -5
  407. package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +2 -2
  408. package/lib/components/okr-detail/detail-header/enums.js +8 -8
  409. package/lib/components/okr-detail/detail-header/index.js +128 -136
  410. package/lib/components/okr-detail/e-list/index.js +2 -2
  411. package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +6 -4
  412. package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +1 -1
  413. package/lib/components/okr-detail/e-list/search-form/index.js +2 -2
  414. package/lib/components/okr-detail/e-list/util.js +4 -1
  415. package/lib/components/okr-detail/helper.js +12 -12
  416. package/lib/components/okr-detail/index.js +5 -3
  417. package/lib/components/okr-detail/okr-list/create-kr-item/dom.js +1 -1
  418. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +5 -3
  419. package/lib/components/okr-detail/okr-list/drag-order-kr.js +4 -1
  420. package/lib/components/okr-detail/okr-list/index.js +31 -31
  421. package/lib/components/okr-detail/request-apis.js +11 -11
  422. package/lib/components/okr-detail/schedule/components/o-progress/index.js +4 -3
  423. package/lib/components/okr-detail/schedule/schedule.js +2 -2
  424. package/lib/components/okr-excel/case.js +221 -0
  425. package/lib/components/okr-excel/hooks.js +6 -3
  426. package/lib/components/okr-excel/index.js +4 -2
  427. package/lib/components/okr-excel/renders.js +29 -32
  428. package/lib/components/okr-excel-create/components/kr-confidence/index.js +2 -2
  429. package/lib/components/okr-excel-create/components/kr-weight/index.js +2 -2
  430. package/lib/components/okr-excel-create/components/okr-align/index.js +5 -3
  431. package/lib/components/okr-excel-create/components/okr-classify/index.js +5 -3
  432. package/lib/components/okr-excel-create/components/okr-cycle/index.js +2 -2
  433. package/lib/components/okr-excel-create/components/okr-name/index.js +5 -3
  434. package/lib/components/okr-excel-create/components/okr-principal/index.js +5 -3
  435. package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.js +4 -1
  436. package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.js +4 -1
  437. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +23 -23
  438. package/lib/components/okr-excel-create/components/okr-progress/index.js +4 -2
  439. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +3 -1
  440. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +3 -1
  441. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +7 -3
  442. package/lib/components/okr-excel-create/components/okr-type/index.js +2 -2
  443. package/lib/components/okr-excel-create/components/okr-visibility/index.js +2 -2
  444. package/lib/components/okr-excel-create/components-new/kr-confidence/index.js +2 -2
  445. package/lib/components/okr-excel-create/components-new/kr-weight/index.js +5 -3
  446. package/lib/components/okr-excel-create/components-new/okr-align/index.js +6 -4
  447. package/lib/components/okr-excel-create/components-new/okr-classify/index.js +5 -3
  448. package/lib/components/okr-excel-create/components-new/okr-cycle/index.js +5 -3
  449. package/lib/components/okr-excel-create/components-new/okr-name/index.js +5 -3
  450. package/lib/components/okr-excel-create/components-new/okr-principal/index.js +5 -3
  451. package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.js +4 -1
  452. package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.js +4 -1
  453. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +23 -23
  454. package/lib/components/okr-excel-create/components-new/okr-progress/index.js +4 -2
  455. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +3 -1
  456. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +3 -1
  457. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +7 -3
  458. package/lib/components/okr-excel-create/components-new/okr-type/index.js +5 -3
  459. package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +2 -2
  460. package/lib/components/okr-excel-create/hooks.js +6 -3
  461. package/lib/components/okr-excel-create/index-old.js +6 -4
  462. package/lib/components/okr-excel-create/index.js +5 -3
  463. package/lib/components/okr-excel-create/utils.js +5 -2
  464. package/lib/components/okr-filter-drawer/filter-form.js +65 -9
  465. package/lib/components/okr-filter-drawer/index.css +5 -1
  466. package/lib/components/okr-flow/child-node/fields/creator.js +24 -26
  467. package/lib/components/okr-flow/child-node/fields/okrClassify.js +4 -1
  468. package/lib/components/okr-flow/child-node/index.js +4 -2
  469. package/lib/components/okr-flow/child-node/work-node.js +53 -29
  470. package/lib/components/okr-flow/export-modal/index.js +135 -137
  471. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +145 -151
  472. package/lib/components/okr-flow/mini-map/index.js +5 -3
  473. package/lib/components/okr-flow/mini-map/map.js +2 -2
  474. package/lib/components/okr-flow/mini-map/utils.js +9 -6
  475. package/lib/components/okr-flow/okr-map/index.js +5 -3
  476. package/lib/components/okr-flow/open-data/index.js +4 -2
  477. package/lib/components/okr-flow/request-apis.js +14 -14
  478. package/lib/components/okr-flow/root-node/index.js +24 -26
  479. package/lib/components/okr-flow/utils/index.js +4 -1
  480. package/lib/components/okr-flow/utils/tree-handler.js +1 -1
  481. package/lib/components/okr-guide/index.js +5 -3
  482. package/lib/components/okr-period-selector/select-cycle.js +5 -3
  483. package/lib/components/okr-progress/components/o-progress/index.js +4 -3
  484. package/lib/components/okr-progress/components/o-progress-update/index.js +26 -26
  485. package/lib/components/okr-progress/okr-progress/index.js +2 -2
  486. package/lib/components/okr-progress/request-apis.js +4 -1
  487. package/lib/components/okr-progress-detail/index.js +8 -3
  488. package/lib/components/okr-progress-modal/index.js +20 -22
  489. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +51 -34
  490. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -1
  491. package/lib/components/okr-review/ReviewPop/index.js +17 -2
  492. package/lib/components/okr-review/components/ReviewItem/index.js +9 -3
  493. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -1
  494. package/lib/components/okr-review/index.js +50 -23
  495. package/lib/components/okr-share/common-painter/darwAvatar.js +56 -60
  496. package/lib/components/okr-share/common-painter/openDataPainter.js +32 -34
  497. package/lib/components/okr-share/common-painter/utils.js +113 -117
  498. package/lib/components/okr-share/index.js +2 -2
  499. package/lib/components/okr-share/pink-card/drawDepartmentName.js +19 -21
  500. package/lib/components/okr-share/pink-card/drawKrs.js +53 -55
  501. package/lib/components/okr-share/pink-card/drawQuote.js +10 -12
  502. package/lib/components/okr-share/pink-card/drawUserName.js +24 -26
  503. package/lib/components/okr-share/pink-card/index.js +67 -69
  504. package/lib/components/okr-share/publishMblog.js +29 -29
  505. package/lib/components/okr-share/shareCardSelector.js +28 -32
  506. package/lib/components/okrcase-library/index.js +2 -2
  507. package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +2 -2
  508. package/lib/components/okrcase-library/okrcases-components/caseLibrary-nav.js +2 -2
  509. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +14 -14
  510. package/lib/components/okrcase-library/server/network.js +122 -140
  511. package/lib/components/okrcase-library-card/index.js +2 -2
  512. package/lib/components/open-data-painter/index.js +32 -34
  513. package/lib/components/operation-records/OperationRecordItem.js +3 -1
  514. package/lib/components/operation-records/index.js +6 -2
  515. package/lib/components/order-have-award/img/award.png +0 -0
  516. package/lib/components/order-have-award/index.css +0 -2
  517. package/lib/components/order-have-award/index.js +2 -1
  518. package/lib/components/order-have-award/interface.js +4 -4
  519. package/lib/components/pagination/pagination.js +4 -1
  520. package/lib/components/part-notice/index.js +2 -2
  521. package/lib/components/password-input/index.js +4 -3
  522. package/lib/components/period-selector/common.js +4 -1
  523. package/lib/components/period-selector/components/selector/index.js +5 -3
  524. package/lib/components/period-selector/helper/index.js +49 -49
  525. package/lib/components/period-selector/index.js +4 -2
  526. package/lib/components/photo-card/components/card/index.js +5 -3
  527. package/lib/components/photo-card/index.js +2 -2
  528. package/lib/components/picker/components/panels/date-panel/date-rows.js +4 -2
  529. package/lib/components/picker/components/panels/date-panel/index.js +2 -2
  530. package/lib/components/picker/components/panels/date-panel/useRowsData.js +2 -2
  531. package/lib/components/picker/components/panels/month-panel/index.js +2 -2
  532. package/lib/components/picker/components/panels/month-panel/month-body.js +4 -1
  533. package/lib/components/picker/components/panels/month-panel/useRowsData.js +2 -2
  534. package/lib/components/picker/components/panels/panel-body/index.js +4 -2
  535. package/lib/components/picker/components/panels/week-panel/week-body.js +4 -1
  536. package/lib/components/picker/components/panels/year-panel/index.js +4 -1
  537. package/lib/components/picker/components/panels/year-panel/useRowsData.js +2 -2
  538. package/lib/components/picker/components/panels/year-panel/year-body.js +4 -2
  539. package/lib/components/picker/components/picker-trigger/index.js +4 -2
  540. package/lib/components/picker/context.js +4 -1
  541. package/lib/components/picker/picker-panels.js +2 -2
  542. package/lib/components/picker/picker.js +2 -2
  543. package/lib/components/picker/range-picker/components/picker-trigger/index.js +4 -2
  544. package/lib/components/picker/range-picker/components/select-input/index.js +4 -2
  545. package/lib/components/picker/range-picker/index.js +2 -2
  546. package/lib/components/picker/utils.js +8 -8
  547. package/lib/components/point-demo/drop-down-box/index.js +2 -2
  548. package/lib/components/point-demo/index.js +3 -3
  549. package/lib/components/point-demo/input/index.js +3 -1
  550. package/lib/components/point-demo/point-demo.js +2 -2
  551. package/lib/components/point-demo/popup/index.js +2 -2
  552. package/lib/components/point-demo/popup/placement.js +4 -1
  553. package/lib/components/popup/index.js +2 -2
  554. package/lib/components/popup/placement.js +4 -1
  555. package/lib/components/popup-btn/index.css +64 -0
  556. package/lib/components/popup-btn/index.js +100 -0
  557. package/lib/components/popup-select/index.css +28 -6
  558. package/lib/components/popup-select/index.js +16 -9
  559. package/lib/components/praise-record/PraiseRecordItem.js +3 -1
  560. package/lib/components/praise-record/index.js +7 -3
  561. package/lib/components/progress/okr-progress/index.css +13 -5
  562. package/lib/components/progress/okr-progress/index.js +37 -6
  563. package/lib/components/progress/utils.js +14 -2
  564. package/lib/components/promise-confirm/index.js +2 -2
  565. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +2 -2
  566. package/lib/components/publish-dynamic-modal/requist-api.js +4 -1
  567. package/lib/components/quick-entrance/index.js +2 -2
  568. package/lib/components/radio/radio.js +2 -2
  569. package/lib/components/radio/radioGroup.js +4 -1
  570. package/lib/components/range-picker-pop/index.js +12 -3
  571. package/lib/components/range-selector-pop/RangeList.js +3 -1
  572. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -1
  573. package/lib/components/rate/index.js +2 -2
  574. package/lib/components/regulation-setting-item/index.js +4 -1
  575. package/lib/components/rich-editor/enums.js +8 -8
  576. package/lib/components/rich-editor/index.js +2 -2
  577. package/lib/components/rich-editor/keymap.js +3 -5
  578. package/lib/components/rich-editor/models/controller.js +4 -1
  579. package/lib/components/rich-editor/models/editor.js +4 -1
  580. package/lib/components/rich-editor/models/plugin.js +4 -1
  581. package/lib/components/rich-editor/models/schema.js +4 -2
  582. package/lib/components/rich-editor/plugins/block/block-quote/index.js +3 -1
  583. package/lib/components/rich-editor/plugins/block/heading/commonds.js +4 -1
  584. package/lib/components/rich-editor/plugins/block/heading/index.js +3 -1
  585. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +2 -2
  586. package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +5 -15
  587. package/lib/components/rich-editor/plugins/block/lists/commond/index.js +12 -4
  588. package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +7 -5
  589. package/lib/components/rich-editor/plugins/block/lists/index.js +5 -3
  590. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +1 -1
  591. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +4 -1
  592. package/lib/components/rich-editor/plugins/block/lists/transforms.js +2 -2
  593. package/lib/components/rich-editor/plugins/block/lists/utils/node.js +4 -4
  594. package/lib/components/rich-editor/plugins/block/paragraph/index.js +3 -1
  595. package/lib/components/rich-editor/plugins/core/index.js +3 -1
  596. package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +4 -1
  597. package/lib/components/rich-editor/plugins/extension/alignment/commond.js +4 -1
  598. package/lib/components/rich-editor/plugins/extension/alignment/index.js +3 -1
  599. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +3 -1
  600. package/lib/components/rich-editor/plugins/inline/color/commond.js +2 -2
  601. package/lib/components/rich-editor/plugins/inline/color/consts.js +8 -8
  602. package/lib/components/rich-editor/plugins/inline/color/index.js +3 -1
  603. package/lib/components/rich-editor/plugins/inline/color/selector.js +10 -8
  604. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +3 -1
  605. package/lib/components/rich-editor/plugins/inline/em/index.js +3 -1
  606. package/lib/components/rich-editor/plugins/inline/link/commands.js +4 -1
  607. package/lib/components/rich-editor/plugins/inline/link/index.js +3 -1
  608. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +20 -17
  609. package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +5 -3
  610. package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +2 -2
  611. package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +2 -2
  612. package/lib/components/rich-editor/plugins/inline/strong/index.js +3 -1
  613. package/lib/components/rich-editor/plugins/inline/under-line/index.js +3 -1
  614. package/lib/components/rich-editor/plugins/util.js +1 -1
  615. package/lib/components/rich-editor/react/reactNodeView.js +4 -2
  616. package/lib/components/rich-editor/react/uiProvider.js +5 -3
  617. package/lib/components/rich-editor/schemas/list.js +5 -15
  618. package/lib/components/rich-editor/ui/Popup/index.js +4 -2
  619. package/lib/components/rich-editor/ui/Popup/utils.js +6 -3
  620. package/lib/components/rich-editor/ui/editor/index.js +4 -2
  621. package/lib/components/rich-editor/ui/normal-toolbar/index.js +5 -3
  622. package/lib/components/rich-editor/utils/commands.js +6 -3
  623. package/lib/components/rich-editor/utils/event.js +4 -1
  624. package/lib/components/rich-editor/utils/mark.js +2 -2
  625. package/lib/components/rich-editor/utils/slice.js +1 -1
  626. package/lib/components/rich-editor/utils/toolbar.js +2 -0
  627. package/lib/components/rich-editor-at/components/index.js +2 -2
  628. package/lib/components/rich-editor-at/index.js +2 -2
  629. package/lib/components/rich-editor-upload/index.js +8 -3
  630. package/lib/components/schedule/index.css +75 -0
  631. package/lib/components/schedule/index.js +223 -0
  632. package/lib/components/schedule/interface.js +5 -0
  633. package/lib/components/scroll-container/index.js +4 -2
  634. package/lib/components/scrollbar/index.js +7 -3
  635. package/lib/components/scrollbar/scroll-mask/index.js +5 -3
  636. package/lib/components/scrollbar/simplebar/simplebar.js +13 -2
  637. package/lib/components/scrollbar/simplebar-react.js +3 -1
  638. package/lib/components/search-input/index.js +5 -3
  639. package/lib/components/select/Option.js +11 -4
  640. package/lib/components/select/index.js +10 -3
  641. package/lib/components/select-layer/index.js +2 -2
  642. package/lib/components/select-tags/index.js +5 -3
  643. package/lib/components/selector-input/index.js +2 -2
  644. package/lib/components/slider-input/index.js +2 -2
  645. package/lib/components/status-time/index.js +2 -2
  646. package/lib/components/stop-taking-modal/index.js +2 -2
  647. package/lib/components/super-table/box/index.css +35 -0
  648. package/lib/components/super-table/box/index.js +62 -0
  649. package/lib/components/super-table/columnOptions/components/principal-user/index.css +17 -0
  650. package/lib/components/super-table/columnOptions/components/principal-user/index.js +37 -0
  651. package/lib/components/super-table/columnOptions/components/progress/index.css +33 -0
  652. package/lib/components/super-table/columnOptions/components/progress/index.js +36 -0
  653. package/lib/components/super-table/columnOptions/components/task-progress/index.css +33 -0
  654. package/lib/components/super-table/columnOptions/components/task-progress/index.js +37 -0
  655. package/lib/components/super-table/columnOptions/okr/index.js +95 -0
  656. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/base-okr-type/confirm/buttonv2.js +80 -0
  657. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/base-okr-type/confirm/confirm.js +129 -0
  658. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/base-okr-type/index.css +20 -0
  659. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/base-okr-type/index.js +63 -0
  660. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/base-okr-type/object-type.js +230 -0
  661. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/index.css +21 -0
  662. package/lib/components/super-table/columnOptions/okr/renderer/okr-type/index.js +159 -0
  663. package/lib/components/super-table/columnOptions/okr/renderer.css +202 -0
  664. package/lib/components/super-table/columnOptions/okr/renderer.js +323 -0
  665. package/lib/components/super-table/columnOptions/okr/type.js +5 -0
  666. package/lib/components/super-table/columnOptions/project/index.js +110 -0
  667. package/lib/components/super-table/columnOptions/project/renderer/project-name/index.css +44 -0
  668. package/lib/components/super-table/columnOptions/project/renderer/project-name/index.js +36 -0
  669. package/lib/components/super-table/columnOptions/project/renderer/table-row-o-project/index.css +34 -0
  670. package/lib/components/super-table/columnOptions/project/renderer/table-row-o-project/index.js +62 -0
  671. package/lib/components/super-table/columnOptions/project/renderer/table-row-o-project/interface.js +5 -0
  672. package/lib/components/super-table/columnOptions/task/index.js +110 -0
  673. package/lib/components/super-table/columnOptions/task/renderer/table-row-task/index.css +34 -0
  674. package/lib/components/super-table/columnOptions/task/renderer/table-row-task/index.js +62 -0
  675. package/lib/components/super-table/columnOptions/task/renderer/table-row-task/interface.js +5 -0
  676. package/lib/components/super-table/edit/index.css +161 -0
  677. package/lib/components/super-table/edit/index.js +189 -0
  678. package/lib/components/super-table/edit/tr.js +21 -0
  679. package/lib/components/super-table/index.css +25 -0
  680. package/lib/components/super-table/index.js +23 -0
  681. package/lib/components/super-table/resize/index.css +122 -0
  682. package/lib/components/super-table/resize/index.js +142 -0
  683. package/lib/components/super-table/super-cache-table.js +234 -0
  684. package/lib/components/super-table/table/index.css +127 -0
  685. package/lib/components/super-table/table/index.js +417 -0
  686. package/lib/components/super-table/title-input/index.css +16 -0
  687. package/lib/components/super-table/title-input/index.js +47 -0
  688. package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +4 -1
  689. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +29 -31
  690. package/lib/components/superset-charts/fetch-assets-and-append/index.js +22 -26
  691. package/lib/components/superset-charts/utils/axios.js +4 -1
  692. package/lib/components/survey-model/contact.js +2 -2
  693. package/lib/components/survey-model/index.js +5 -3
  694. package/lib/components/survey-model/request-api.js +9 -11
  695. package/lib/components/table/index.js +5 -3
  696. package/lib/components/table-excel-v2/index.js +6 -4
  697. package/lib/components/tabs/index.css +1 -0
  698. package/lib/components/tabs/index.js +3 -1
  699. package/lib/components/tabs/tabBtns.js +5 -3
  700. package/lib/components/tag/index.js +4 -1
  701. package/lib/components/task-relation-modal/index.js +56 -57
  702. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +5 -3
  703. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +5 -3
  704. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +17 -7
  705. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +1 -1
  706. package/lib/components/task-relation-modal/radio.js +5 -3
  707. package/lib/components/task-relation-modal/relation-single-okr/index.js +5 -3
  708. package/lib/components/task-relation-modal/request-api.js +4 -1
  709. package/lib/components/task-relation-modal/search/category-select.js +2 -2
  710. package/lib/components/task-relation-modal/search/okr-status-select.js +2 -2
  711. package/lib/components/task-relation-modal/search/okr-type-select.js +3 -3
  712. package/lib/components/task-relation-modal/search/principal.js +2 -2
  713. package/lib/components/task-relation-modal/search/relation.js +2 -2
  714. package/lib/components/task-relation-modal/search/task-relation.js +2 -2
  715. package/lib/components/task-relation-modal/search/task-status-select.js +2 -2
  716. package/lib/components/task-relation-modal/search/work-relation.js +2 -2
  717. package/lib/components/task-relation-modal/search/work-status-select.js +2 -2
  718. package/lib/components/task-relation-modal/tree/category-tree/index.js +24 -24
  719. package/lib/components/task-relation-modal/tree/category-tree/search-form.js +2 -2
  720. package/lib/components/task-relation-modal/tree/okr-tree/index.js +23 -23
  721. package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +5 -3
  722. package/lib/components/task-relation-modal/tree/work-list/index.js +10 -4
  723. package/lib/components/task-relation-modal/tree/work-list/search-form.js +2 -2
  724. package/lib/components/task-relation-modal/tree/work-tree/index.js +20 -20
  725. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +2 -2
  726. package/lib/components/task-relation-modal/tree-node/kr-node/index.css +1 -1
  727. package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +1 -1
  728. package/lib/components/task-relation-modal/tree-node/o-node/index.css +1 -1
  729. package/lib/components/task-relation-modal/tree-node/o-node/index.js +13 -5
  730. package/lib/components/task-relation-modal/tree-node/work-node/index.css +1 -1
  731. package/lib/components/task-relation-modal/work-relation/index.js +52 -56
  732. package/lib/components/task-tree/helper.js +4 -1
  733. package/lib/components/task-tree/task-item-node/constant.js +4 -4
  734. package/lib/components/task-tree/task-item-node/e-project.js +17 -19
  735. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +2 -2
  736. package/lib/components/task-tree/task-item-node/e-task.js +51 -51
  737. package/lib/components/template-modules/annex/index.js +145 -0
  738. package/lib/components/template-modules/apis.js +98 -0
  739. package/lib/components/template-modules/at/index.js +107 -0
  740. package/lib/components/template-modules/components/input-column-renderer/index.css +18 -0
  741. package/lib/components/template-modules/components/input-column-renderer/index.js +50 -0
  742. package/lib/components/template-modules/components/rich-editor/hooks.js +39 -0
  743. package/lib/components/template-modules/components/rich-editor/index.css +64 -0
  744. package/lib/components/template-modules/components/rich-editor/index.js +176 -0
  745. package/lib/components/template-modules/components/rich-editor/interface.js +5 -0
  746. package/lib/components/template-modules/constant.js +44 -0
  747. package/lib/components/template-modules/index.css +82 -0
  748. package/lib/components/template-modules/index.js +113 -0
  749. package/lib/components/template-modules/interface.js +52 -0
  750. package/lib/components/template-modules/okr/index.css +93 -0
  751. package/lib/components/template-modules/okr/index.js +363 -0
  752. package/lib/components/template-modules/okr/types.js +5 -0
  753. package/lib/components/template-modules/project/index.css +58 -0
  754. package/lib/components/template-modules/project/index.js +259 -0
  755. package/lib/components/template-modules/project/renderer/project-name/index.css +49 -0
  756. package/lib/components/template-modules/project/renderer/project-name/index.js +35 -0
  757. package/lib/components/template-modules/project/renderer/table-row-o-project/index.css +34 -0
  758. package/lib/components/template-modules/project/renderer/table-row-o-project/index.js +62 -0
  759. package/lib/components/template-modules/project/renderer/table-row-o-project/interface.js +5 -0
  760. package/lib/components/template-modules/richtext/index.js +127 -0
  761. package/lib/components/template-modules/task/index.css +58 -0
  762. package/lib/components/template-modules/task/index.js +228 -0
  763. package/lib/components/template-modules/task/interface.js +19 -0
  764. package/lib/components/template-modules/task/renderer/table-row-task/index.css +34 -0
  765. package/lib/components/template-modules/task/renderer/table-row-task/index.js +62 -0
  766. package/lib/components/template-modules/task/renderer/table-row-task/interface.js +5 -0
  767. package/lib/components/template-modules/task/renderer/task-name/index.css +49 -0
  768. package/lib/components/template-modules/task/renderer/task-name/index.js +50 -0
  769. package/lib/components/template-modules/utils.js +57 -0
  770. package/lib/components/textarea/index.js +5 -3
  771. package/lib/components/time-picker/time-picker-selector.js +3 -1
  772. package/lib/components/time-picker/time-picker.js +5 -3
  773. package/lib/components/time-picker/utils.js +4 -4
  774. package/lib/components/tita-chart/charts/liquid-ball.js +4 -2
  775. package/lib/components/tita-chart/charts/pie.js +4 -1
  776. package/lib/components/tita-chart/charts/words-cloud.js +5 -2
  777. package/lib/components/tita-chart/errorBoundary/index.js +3 -1
  778. package/lib/components/tita-chart/hooks/useChart.js +4 -2
  779. package/lib/components/toast/index.js +97 -103
  780. package/lib/components/tooltip/tooltip-rows/index.js +2 -2
  781. package/lib/components/tooltip/tooltip-text/index.js +2 -2
  782. package/lib/components/tree/index.css +94 -9
  783. package/lib/components/tree/index.js +7 -4
  784. package/lib/components/try-version-modal/index.js +2 -2
  785. package/lib/components/unchain-okr-modal/index.js +7 -6
  786. package/lib/components/update-modal/index.js +2 -2
  787. package/lib/components/upload/components/uploadedPreview.js +5 -1
  788. package/lib/components/upload/index.js +46 -26
  789. package/lib/components/upload/index2.js +24 -24
  790. package/lib/components/upload-modal/index.js +2 -2
  791. package/lib/components/upload-photo-modal/index.js +5 -3
  792. package/lib/components/upvote/index.js +77 -79
  793. package/lib/components/upvote/selector.js +2 -2
  794. package/lib/components/upvote/upvoteListModal.js +2 -2
  795. package/lib/components/user-selector/category-selector-panel/index.js +2 -2
  796. package/lib/components/user-selector/enum.js +4 -4
  797. package/lib/components/user-selector/export-modules/depart-search-selector/index.js +2 -2
  798. package/lib/components/user-selector/export-modules/duties-selector/index.js +6 -3
  799. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +92 -63
  800. package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +2 -2
  801. package/lib/components/user-selector/export-modules/field-tree-selector/selector-generater.js +4 -1
  802. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +5 -3
  803. package/lib/components/user-selector/export-modules/group-selector/index.js +2 -2
  804. package/lib/components/user-selector/export-modules/group-selector/searched-panel.js +2 -2
  805. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +2 -2
  806. package/lib/components/user-selector/export-modules/single-selector/index.js +2 -2
  807. package/lib/components/user-selector/request-apis.js +2 -2
  808. package/lib/components/user-selector/searched-panel/index.js +2 -2
  809. package/lib/components/user-selector/select-tree/choose-tree/index.js +2 -2
  810. package/lib/components/user-selector/select-tree/selected-tree/index.js +2 -2
  811. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +1 -1
  812. package/lib/components/user-selector/selected-panel/index.js +9 -3
  813. package/lib/components/user-selector/utils.js +4 -1
  814. package/lib/components/version-change-modal/constant.js +18 -69
  815. package/lib/components/version-change-modal/images/data-center.svg +36 -0
  816. package/lib/components/version-change-modal/images/logo-okre.png +0 -0
  817. package/lib/components/version-change-modal/images/logo-performance.png +0 -0
  818. package/lib/components/version-change-modal/images/logo-qijian.png +0 -0
  819. package/lib/components/version-change-modal/images/qijian.png +0 -0
  820. package/lib/components/version-change-modal/index.css +10 -14
  821. package/lib/components/version-change-modal/index.js +14 -16
  822. package/lib/components/version-change-modal/request-api.js +7 -9
  823. package/lib/components/version-change-modal-new/components/more-combination/img/hand.png +0 -0
  824. package/lib/components/version-change-modal-new/components/more-combination/img/hg.png +0 -0
  825. package/lib/components/version-change-modal-new/components/more-combination/img/jt1.png +0 -0
  826. package/lib/components/version-change-modal-new/components/more-combination/img/jt2.png +0 -0
  827. package/lib/components/version-change-modal-new/components/more-combination/img/jt3.png +0 -0
  828. package/lib/components/version-change-modal-new/components/more-combination/img/left.png +0 -0
  829. package/lib/components/version-change-modal-new/components/more-combination/img/new-jixiao.png +0 -0
  830. package/lib/components/version-change-modal-new/components/more-combination/img/okrs-e.png +0 -0
  831. package/lib/components/version-change-modal-new/components/more-combination/img/orange-sign.png +0 -0
  832. package/lib/components/version-change-modal-new/components/more-combination/img/qj.png +0 -0
  833. package/lib/components/version-change-modal-new/components/more-combination/img/qjzq.png +0 -0
  834. package/lib/components/version-change-modal-new/components/more-combination/img/right.png +0 -0
  835. package/lib/components/version-change-modal-new/components/more-combination/img/tita-people.png +0 -0
  836. package/lib/components/version-change-modal-new/components/more-combination/img/tita-qijian.png +0 -0
  837. package/lib/components/version-change-modal-new/components/more-combination/img/tuya-bg1.jpg +0 -0
  838. package/lib/components/version-change-modal-new/components/more-combination/img/tuya-bg2.jpg +0 -0
  839. package/lib/components/version-change-modal-new/components/more-combination/img/tuya-bg3.jpg +0 -0
  840. package/lib/components/version-change-modal-new/components/more-combination/img/tuya-bg4.png +0 -0
  841. package/lib/components/version-change-modal-new/components/more-combination/img/tuya-man.png +0 -0
  842. package/lib/components/version-change-modal-new/components/more-combination/img/tuya-pc-bg2.png +0 -0
  843. package/lib/components/version-change-modal-new/components/more-combination/img/xx.png +0 -0
  844. package/lib/components/version-change-modal-new/components/more-combination/img/yellow-sign.png +0 -0
  845. package/lib/components/version-change-modal-new/components/more-combination/img/zs.png +0 -0
  846. package/lib/components/version-change-modal-new/components/more-combination/index.css +256 -0
  847. package/lib/components/version-change-modal-new/components/more-combination/index.js +174 -0
  848. package/lib/components/version-change-modal-new/constant.js +53 -0
  849. package/lib/components/version-change-modal-new/images/data-center.svg +36 -0
  850. package/lib/components/version-change-modal-new/images/left-lv.png +0 -0
  851. package/lib/components/version-change-modal-new/images/logo-okre.png +0 -0
  852. package/lib/components/version-change-modal-new/images/logo-performance.png +0 -0
  853. package/lib/components/version-change-modal-new/images/logo-qijian.png +0 -0
  854. package/lib/components/version-change-modal-new/images/mini-okr.png +0 -0
  855. package/lib/components/version-change-modal-new/images/mini-performance.png +0 -0
  856. package/lib/components/version-change-modal-new/images/mini-project.png +0 -0
  857. package/lib/components/version-change-modal-new/images/mini-survey.png +0 -0
  858. package/lib/components/version-change-modal-new/images/okr.png +0 -0
  859. package/lib/components/version-change-modal-new/images/performance-e.png +0 -0
  860. package/lib/components/version-change-modal-new/images/performance.png +0 -0
  861. package/lib/components/version-change-modal-new/images/qijian.png +0 -0
  862. package/lib/components/version-change-modal-new/images/right-lv.png +0 -0
  863. package/lib/components/version-change-modal-new/images/senior-performance.png +0 -0
  864. package/lib/components/version-change-modal-new/images/senior-utimate.png +0 -0
  865. package/lib/components/version-change-modal-new/images/survey.png +0 -0
  866. package/lib/components/version-change-modal-new/images/title.png +0 -0
  867. package/lib/components/version-change-modal-new/images/utimate.png +0 -0
  868. package/lib/components/version-change-modal-new/index.css +165 -0
  869. package/lib/components/version-change-modal-new/index.js +83 -0
  870. package/lib/components/version-change-modal-new/request-api.js +32 -0
  871. package/lib/components/video-modal/components/video-box/index.js +5 -3
  872. package/lib/components/video-modal/index.js +2 -2
  873. package/lib/components/viewer/ImageListRender.js +4 -2
  874. package/lib/components/viewer/index.js +4 -2
  875. package/lib/components/wechat-btn/index.js +98 -50
  876. package/lib/components/wechat-project-btn/index.css +18 -0
  877. package/lib/components/wechat-project-btn/index.js +342 -0
  878. package/lib/components/weekly-report/card.js +39 -41
  879. package/lib/components/weekly-report/common-painter/darwAvatar.js +74 -80
  880. package/lib/components/weekly-report/common-painter/drawName.js +26 -28
  881. package/lib/components/weekly-report/common-painter/openDataPainter.js +32 -34
  882. package/lib/components/weekly-report/index.js +30 -34
  883. package/lib/components/word-cloud/index.js +2 -2
  884. package/lib/components/write-summary-modal/index.js +2 -2
  885. package/lib/components/write-summary-modal/interface.js +4 -4
  886. package/lib/components/write-summary-modal/utils.js +4 -1
  887. package/lib/components-v1/animate/AnimateChild.js +9 -2
  888. package/lib/components-v1/animate/animate.js +9 -2
  889. package/lib/components-v1/avatar/index.js +3 -1
  890. package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -1
  891. package/lib/components-v1/buttonv2/ButtonRounded.js +3 -1
  892. package/lib/components-v1/buttonv2/DefaultButton.js +3 -1
  893. package/lib/components-v1/confirm/index.js +3 -1
  894. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -1
  895. package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -1
  896. package/lib/components-v1/input/Enums.js +4 -4
  897. package/lib/components-v1/input/Input.js +4 -2
  898. package/lib/components-v1/input/InputNumber.js +6 -2
  899. package/lib/components-v1/placement/placement.js +9 -2
  900. package/lib/components-v1/placement/placementInner.js +10 -3
  901. package/lib/components-v1/pop/Pop.js +4 -2
  902. package/lib/components-v1/pop/PopInner.js +4 -2
  903. package/lib/components-v1/popConfirm/index.js +2 -2
  904. package/lib/components-v1/portals/Portals.js +3 -1
  905. package/lib/components-v1/progress/CircleProgress.js +3 -1
  906. package/lib/components-v1/progress/LineProgress.js +9 -2
  907. package/lib/components-v1/progress/index.js +9 -2
  908. package/lib/components-v1/radio/radio.js +4 -2
  909. package/lib/components-v1/radio/radioGroup.js +3 -1
  910. package/lib/components-v1/search/cache.js +5 -2
  911. package/lib/components-v1/search/index.js +3 -1
  912. package/lib/components-v1/select/Option.js +11 -4
  913. package/lib/components-v1/select/index.js +10 -3
  914. package/lib/components-v1/tabs/index.js +3 -1
  915. package/lib/components-v1/textarea/index.js +13 -1
  916. package/lib/components-v1/transition/index.js +8 -2
  917. package/lib/components-v1/userSelector/UserSelectorPop.js +5 -2
  918. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +3 -1
  919. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +5 -3
  920. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -1
  921. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -1
  922. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -1
  923. package/lib/components-v1/userSelector/components/SearchBar.js +3 -1
  924. package/lib/components-v1/userSelector/components/SingleMode.js +3 -1
  925. package/lib/components-v1/userSelector/components/UserItem.js +3 -1
  926. package/lib/components-v1/userSelector/index.js +4 -2
  927. package/lib/components-v1/utils/animate/animate.js +6 -1
  928. package/lib/hooks/useGlobalState.js +2 -2
  929. package/lib/hooks/useLocalStorage.js +2 -2
  930. package/lib/hooks/useTouch.js +2 -2
  931. package/lib/index.js +77 -0
  932. package/lib/pages/aha2021/index.css +24 -0
  933. package/lib/pages/aha2021/index.js +3 -3
  934. package/lib/pages/aha2021/new-menu-switcher/index.js +5 -3
  935. package/lib/pages/appointment-demo/drop-down-box/index.js +2 -2
  936. package/lib/pages/appointment-demo/index.js +3 -3
  937. package/lib/pages/appointment-demo/input/index.js +3 -1
  938. package/lib/pages/appointment-demo/popup/index.js +2 -2
  939. package/lib/pages/appointment-demo/popup/placement.js +4 -1
  940. package/lib/pages/group-management/components/input-form/index.js +3 -1
  941. package/lib/pages/group-management/components/openData/index.js +9 -2
  942. package/lib/pages/group-management/components/table/index.js +3 -3
  943. package/lib/pages/group-management/groupInterface.js +39 -39
  944. package/lib/pages/group-management/page-view/empty.js +2 -2
  945. package/lib/pages/group-management/page-view/group-empty.js +2 -2
  946. package/lib/pages/group-management/page-view/importGroupStaff/index.js +2 -2
  947. package/lib/pages/group-management/page-view/index.js +2 -2
  948. package/lib/pages/group-management/tree/add-group-dialog/index.js +2 -2
  949. package/lib/pages/group-management/tree/edit-group-dialog/index.js +2 -2
  950. package/lib/pages/group-management/tree/group-form/index.js +2 -2
  951. package/lib/pages/group-management/tree/index.js +2 -2
  952. package/lib/pages/group-management/tree/trigger-render.js +2 -2
  953. package/lib/pages/home/components/data-list/index.js +3 -3
  954. package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +2 -2
  955. package/lib/pages/home/components/data-list/table/index.js +2 -2
  956. package/lib/pages/home/components/data-list/table/utils-function.js +1 -1
  957. package/lib/pages/home/components/guide/index.js +2 -2
  958. package/lib/pages/home-page-data-list/index.js +3 -3
  959. package/lib/pages/like-ranking/index.js +5 -3
  960. package/lib/pages/new-okr-list/header/create-okr.js +2 -2
  961. package/lib/pages/new-okr-list/header/index.js +14 -12
  962. package/lib/pages/new-okr-list/header/okr-import.js +3 -3
  963. package/lib/pages/new-okr-list/header/operate-record.js +2 -2
  964. package/lib/pages/new-okr-list/index.js +8 -5
  965. package/lib/pages/new-okr-list/init-cycle-setting.js +2 -2
  966. package/lib/pages/new-okr-list/keyword-search/index.js +5 -3
  967. package/lib/pages/new-okr-list/list/index.js +1 -1
  968. package/lib/pages/new-okr-list/request-api.js +82 -94
  969. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +5 -3
  970. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +19 -19
  971. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +5 -3
  972. package/lib/pages/okr-map/hooks/useStorage.js +2 -2
  973. package/lib/pages/okr-map/level2-search/group.js +4 -2
  974. package/lib/pages/okr-map/number-select/index.js +6 -3
  975. package/lib/pages/okr-map/open-data/index.js +4 -2
  976. package/lib/pages/okr-map/request-apis.js +11 -13
  977. package/lib/pages/okr-map/share-dialog/index.js +2 -2
  978. package/lib/pages/okr-map/unsupport-ie/index.js +2 -2
  979. package/lib/pages/personal-info/components/base-info/index.js +5 -3
  980. package/lib/pages/personal-info/components/edit-base-info/index.js +5 -3
  981. package/lib/pages/personal-info/components/person-photo/index.js +2 -2
  982. package/lib/utils/auth.js +11 -2
  983. package/lib/utils/bs-global.js +1 -0
  984. package/lib/utils/editor.js +9 -5
  985. package/lib/utils/error-level.js +3 -3
  986. package/lib/utils/fetch.js +41 -0
  987. package/lib/utils/helpers.js +46 -15
  988. package/lib/utils/hooks.js +24 -3
  989. package/lib/utils/local-storage.js +4 -1
  990. package/lib/utils/open-data.js +89 -91
  991. package/lib/utils/request-v1.js +44 -44
  992. package/lib/utils/request.js +12 -14
  993. package/lib/utils/roundWeight.js +4 -1
  994. package/lib/utils/tools.js +87 -52
  995. package/package.json +5 -2
@@ -20,12 +20,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
20
20
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
21
  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."); }
22
22
  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); }
23
- 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; }
24
- 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; }
23
+ 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; }
24
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
29
31
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
33
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -33,6 +35,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
33
35
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
37
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ // 干脆把数据封闭起来, 通过ref取状态
39
+
36
40
  var getRadios = function getRadios() {
37
41
  return [{
38
42
  label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Company"),
@@ -16,8 +16,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
16
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
17
  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."); }
18
18
  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); }
19
- 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; }
20
- 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; }
19
+ 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; }
20
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
21
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
  var prefix = 'tita-okr-excel-create-okr-type';
23
23
  var typeMapColor = {
@@ -17,8 +17,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
18
  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."); }
19
19
  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); }
20
- 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; }
21
- 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
+ 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; }
21
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  var prefix = 'tita-okr-excel-create-visibility';
24
24
  var getVisibilityList = function getVisibilityList() {
@@ -14,8 +14,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
14
14
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
15
  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."); }
16
16
  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); }
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
- 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; }
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
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
19
19
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  var preCls = 'tita-okr-excel-create-kr-confidence';
21
21
  var ConfidenceRenderer = function ConfidenceRenderer(update) {
@@ -15,12 +15,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  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; }
17
17
  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; }
18
- 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; }
18
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
22
  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."); }
21
23
  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); }
22
- 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; }
23
- 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; }
24
+ 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; }
25
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
27
  var prefix = 'tita-okr-excel-create-kr-weight';
26
28
  var KRWeight = function KRWeight(_ref) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
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
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -16,15 +15,18 @@ var _helper = require("../../../create-okr-modal/utils/helper");
16
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
16
  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); }
18
17
  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; }
18
+ 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); }
19
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
20
  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."); }
21
21
  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); }
22
- 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; }
23
- 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; }
22
+ 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; }
23
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
25
  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; }
26
26
  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; }
27
- 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; }
27
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
29
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
30
  var preCls = 'tita-okr-excel-create-okr-align';
29
31
  var alignOKRRender = function alignOKRRender(update) {
30
32
  return function (_ref) {
@@ -15,12 +15,14 @@ require("./index.css");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  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); }
17
17
  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; }
18
- 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; }
18
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
22
  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."); }
21
23
  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); }
22
- 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; }
23
- 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; }
24
+ 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; }
25
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
27
  var prefix = 'okr-excel-create-classify';
26
28
  var IconMap = {
@@ -13,12 +13,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
13
  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; }
14
14
  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; }
15
15
  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; }
16
- 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; }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
20
  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."); }
19
21
  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); }
20
- 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; }
21
- 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; }
22
+ 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; }
23
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
25
  var preCls = 'tita-okr-excel-create-okr-cycle';
24
26
  var OKRCycle = function OKRCycle(update) {
@@ -18,17 +18,19 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
18
18
  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; }
19
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
20
  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."); }
21
- 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; }
21
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  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; }
24
24
  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; }
25
- 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; }
25
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26
28
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
27
29
  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."); }
28
30
  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); }
29
31
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
30
32
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
31
- 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; }
33
+ 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; }
32
34
  var preCls = 'tita-okr-excel-create-okr-name';
33
35
  var OkrNameRenderer = function OkrNameRenderer(update, isO) {
34
36
  return function (_ref) {
@@ -15,12 +15,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
  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; }
16
16
  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; }
17
17
  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; }
18
- 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; }
18
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
22
  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."); }
21
23
  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); }
22
- 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; }
23
- 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; }
24
+ 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; }
25
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
27
  var preCls = 'tita-okr-excel-create-okr-principal';
26
28
  var loginUser = (0, _bsGlobal.getUserInfo)();
@@ -9,7 +9,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _okrProgress = _interopRequireDefault(require("../okr-progress"));
10
10
  require("./index.css");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- 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; }
12
+ 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); }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
16
  var prefix = 'tita-okr-excel-progress-kr';
14
17
  var KRProgress = function KRProgress(_ref) {
15
18
  var id = _ref.id,
@@ -9,7 +9,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _okrProgress = _interopRequireDefault(require("../okr-progress"));
10
10
  require("./index.css");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- 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; }
12
+ 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); }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
16
  var prefix = 'tita-okr-excel-progress-o';
14
17
  var OProgress = function OProgress(_ref) {
15
18
  var id = _ref.id,
@@ -18,15 +18,17 @@ require("./index.css");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
  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); }
20
20
  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; }
21
- 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; }
22
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
21
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
23
25
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
24
26
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
25
27
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
26
28
  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."); }
27
29
  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); }
28
- 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; }
29
- 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; }
30
+ 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; }
31
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
30
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
33
  var prefix = 'tita-okr-excel-progress-okr';
32
34
  var OKRProgress = function OKRProgress(_ref) {
@@ -85,25 +87,23 @@ var OKRProgress = function OKRProgress(_ref) {
85
87
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
86
88
  var getRecommandHandler, data, _data$Data, UpdateProgressWay, Progress;
87
89
  return _regeneratorRuntime().wrap(function _callee$(_context) {
88
- while (1) {
89
- switch (_context.prev = _context.next) {
90
- case 0:
91
- getRecommandHandler = isO ? _requestApi.getORecommandProgress : _requestApi.getKrRecommandProgress;
92
- _context.next = 3;
93
- return getRecommandHandler(id);
94
- case 3:
95
- data = _context.sent;
96
- if (data.Code === 1) {
97
- _data$Data = data.Data, UpdateProgressWay = _data$Data.UpdateProgressWay, Progress = _data$Data.Progress;
98
- setRecommandProgressObj(data.Data);
99
- setUpdateOpen(UpdateProgressWay !== 0);
100
- setUpdateWay(UpdateProgressWay === 0 ? 1 : UpdateProgressWay);
101
- setProgress(Progress);
102
- }
103
- case 5:
104
- case "end":
105
- return _context.stop();
106
- }
90
+ while (1) switch (_context.prev = _context.next) {
91
+ case 0:
92
+ getRecommandHandler = isO ? _requestApi.getORecommandProgress : _requestApi.getKrRecommandProgress;
93
+ _context.next = 3;
94
+ return getRecommandHandler(id);
95
+ case 3:
96
+ data = _context.sent;
97
+ if (data.Code === 1) {
98
+ _data$Data = data.Data, UpdateProgressWay = _data$Data.UpdateProgressWay, Progress = _data$Data.Progress;
99
+ setRecommandProgressObj(data.Data);
100
+ setUpdateOpen(UpdateProgressWay !== 0);
101
+ setUpdateWay(UpdateProgressWay === 0 ? 1 : UpdateProgressWay);
102
+ setProgress(Progress);
103
+ }
104
+ case 5:
105
+ case "end":
106
+ return _context.stop();
107
107
  }
108
108
  }, _callee);
109
109
  }));
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
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
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -13,7 +12,10 @@ require("./index.css");
13
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
13
  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); }
15
14
  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; }
16
- 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; }
15
+ 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); }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
19
  var prefix = "tita-okr-excel-progress";
18
20
  var Progress = function Progress(_ref) {
19
21
  var _classNames;
@@ -11,8 +11,10 @@ var _templateObject, _templateObject2;
11
11
  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); }
12
12
  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; }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
14
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
15
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
18
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
17
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -15,8 +15,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
15
15
  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); }
16
16
  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; }
17
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
19
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
22
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
23
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -20,12 +20,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
20
20
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
21
  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."); }
22
22
  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); }
23
- 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; }
24
- 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; }
23
+ 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; }
24
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
29
31
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
33
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -33,6 +35,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
33
35
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
37
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ // 干脆把数据封闭起来, 通过ref取状态
39
+
36
40
  var getRadios = function getRadios() {
37
41
  return [{
38
42
  label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Company"),
@@ -15,12 +15,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
  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; }
16
16
  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; }
17
17
  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; }
18
- 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; }
18
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
22
  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."); }
21
23
  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); }
22
- 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; }
23
- 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; }
24
+ 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; }
25
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
27
  var prefix = 'tita-okr-excel-create-okr-type';
26
28
  var typeMapColor = {