@titaui/pc 1.12.45 → 1.12.48-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/lib/components/attachments-preview/index.css +4 -0
  2. package/lib/components/attachments-preview/index.js +116 -0
  3. package/lib/components/auto-save/img/failed.svg +17 -0
  4. package/lib/components/auto-save/img/success.svg +16 -0
  5. package/lib/components/auto-save/index.css +39 -0
  6. package/lib/components/auto-save/index.js +78 -0
  7. package/lib/components/auto-save/interface.js +5 -0
  8. package/lib/components/avatar/default.js +5 -2
  9. package/lib/components/avatar/index.css +2 -0
  10. package/lib/components/color-date-picker/index.css +69 -0
  11. package/lib/components/color-date-picker/index.js +129 -0
  12. package/lib/components/color-date-picker/interface.js +14 -0
  13. package/lib/components/dialog-confirm/index.css +1 -0
  14. package/lib/components/dialog-confirm/index.js +8 -4
  15. package/lib/components/dialog-upload/img/doc.svg +1 -0
  16. package/lib/components/dialog-upload/img/other.svg +1 -0
  17. package/lib/components/dialog-upload/img/pdf.svg +1 -0
  18. package/lib/components/dialog-upload/img/ppt.svg +1 -0
  19. package/lib/components/dialog-upload/img/radio.svg +1 -0
  20. package/lib/components/dialog-upload/img/video.svg +1 -0
  21. package/lib/components/dialog-upload/img/xls.svg +1 -0
  22. package/lib/components/dialog-upload/index.css +77 -0
  23. package/lib/components/dialog-upload/index.js +330 -0
  24. package/lib/components/dialog-upload/type.js +35 -0
  25. package/lib/components/dialog-upload/uploaded-preview.css +80 -0
  26. package/lib/components/dialog-upload/uploaded-preview.js +134 -0
  27. package/lib/components/dialog-upload/util.js +131 -0
  28. package/lib/components/drawer/index.css +5 -5
  29. package/lib/components/drawer/index.js +7 -7
  30. package/lib/components/drop-selector/index.js +7 -4
  31. package/lib/components/dynamic/components/comments-dialog/api.js +27 -0
  32. package/lib/components/dynamic/components/comments-dialog/encourage.js +127 -0
  33. package/lib/components/dynamic/components/comments-dialog/img/APP-shoucang-m.png +0 -0
  34. package/lib/components/dynamic/components/comments-dialog/img/ascore.png +0 -0
  35. package/lib/components/dynamic/components/comments-dialog/img/curEfforts.png +0 -0
  36. package/lib/components/dynamic/components/comments-dialog/img/curGood.png +0 -0
  37. package/lib/components/dynamic/components/comments-dialog/img/curGreat.png +0 -0
  38. package/lib/components/dynamic/components/comments-dialog/img/efforts.png +0 -0
  39. package/lib/components/dynamic/components/comments-dialog/img/good.png +0 -0
  40. package/lib/components/dynamic/components/comments-dialog/img/great.png +0 -0
  41. package/lib/components/dynamic/components/comments-dialog/img/halfscore.png +0 -0
  42. package/lib/components/dynamic/components/comments-dialog/img/loading.gif +0 -0
  43. package/lib/components/dynamic/components/comments-dialog/img/score.png +0 -0
  44. package/lib/components/dynamic/components/comments-dialog/img/top.svg +14 -0
  45. package/lib/components/dynamic/components/comments-dialog/index.css +116 -0
  46. package/lib/components/dynamic/components/comments-dialog/index.js +208 -0
  47. package/lib/components/dynamic/components/comments-dialog/rate.js +143 -0
  48. package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
  49. package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
  50. package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
  51. package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
  52. package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
  53. package/lib/components/dynamic/dynamic-item/components/header/index.js +49 -47
  54. package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
  55. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +175 -0
  56. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +158 -0
  57. package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +5 -0
  58. package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +10 -0
  59. package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +27 -0
  60. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +8 -0
  61. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +26 -0
  62. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +8 -0
  63. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +26 -0
  64. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +197 -0
  65. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +220 -0
  66. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +20 -0
  67. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +134 -0
  68. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +10 -0
  69. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +60 -0
  70. package/lib/components/dynamic/dynamic-item/components/progress/index.css +25 -0
  71. package/lib/components/dynamic/dynamic-item/components/progress/index.js +71 -0
  72. package/lib/components/dynamic/dynamic-item/components/progress/interface.js +5 -0
  73. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +36 -0
  74. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +31 -0
  75. package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +5 -0
  76. package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
  77. package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
  78. package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
  79. package/lib/components/dynamic/dynamic-item/components/summary-header/img/guide-img.png +0 -0
  80. package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
  81. package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
  82. package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
  83. package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +177 -0
  84. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +423 -0
  85. package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +49 -0
  86. package/lib/components/dynamic/dynamic-item/components/summary-header/request-api.js +17 -0
  87. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +30 -0
  88. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +57 -0
  89. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +5 -0
  90. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +50 -0
  91. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +67 -0
  92. package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +5 -0
  93. package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +29 -0
  94. package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +264 -0
  95. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +179 -0
  96. package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +22 -0
  97. package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +80 -0
  98. package/lib/components/dynamic/dynamic-item/components/task-progress/request-api.js +16 -0
  99. package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +158 -0
  100. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  101. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +3 -2
  102. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -2
  103. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +3 -2
  104. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
  105. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
  106. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-write.png +0 -0
  107. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
  108. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
  109. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
  110. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-write.png +0 -0
  111. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
  112. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
  113. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-write.png +0 -0
  114. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +102 -0
  115. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +210 -0
  116. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +43 -0
  117. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +49 -0
  118. package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +61 -0
  119. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
  120. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
  121. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
  122. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
  123. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
  124. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +110 -0
  125. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +235 -0
  126. package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +30 -0
  127. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -2
  128. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +4 -21
  129. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +2 -4
  130. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -2
  131. package/lib/components/dynamic/dynamic-item/index.css +2 -1
  132. package/lib/components/dynamic/dynamic-item/index.js +52 -33
  133. package/lib/components/dynamic/dynamic-list/index.js +8 -8
  134. package/lib/components/form/form-fields/date/index.js +13 -12
  135. package/lib/components/guide-tip/index.css +68 -0
  136. package/lib/components/guide-tip/index.js +127 -0
  137. package/lib/components/import-modal/helper.js +170 -0
  138. package/lib/components/import-modal/image/loading.gif +0 -0
  139. package/lib/components/import-modal/import-okr-modal/index.css +18 -0
  140. package/lib/components/import-modal/import-okr-modal/index.js +146 -0
  141. package/lib/components/import-modal/import-task-modal/index.css +18 -0
  142. package/lib/components/import-modal/import-task-modal/index.js +251 -0
  143. package/lib/components/import-modal/import-task-modal/search-form.js +142 -0
  144. package/lib/components/import-modal/index.css +30 -0
  145. package/lib/components/import-modal/index.js +20 -0
  146. package/lib/components/import-modal/radio.js +62 -0
  147. package/lib/components/import-modal/request-api.js +206 -0
  148. package/lib/components/import-modal/search/category-select.js +74 -0
  149. package/lib/components/import-modal/search/okr-classify-select.js +74 -0
  150. package/lib/components/import-modal/search/okr-status-select.js +74 -0
  151. package/lib/components/import-modal/search/okr-type-select.js +87 -0
  152. package/lib/components/import-modal/search/principal.js +135 -0
  153. package/lib/components/import-modal/search/relation.js +89 -0
  154. package/lib/components/import-modal/search/search-dropdown/index.css +50 -0
  155. package/lib/components/import-modal/search/search-dropdown/index.js +32 -0
  156. package/lib/components/import-modal/search/task-relation.js +84 -0
  157. package/lib/components/import-modal/search/task-status-select.js +87 -0
  158. package/lib/components/import-modal/search/work-relation.js +83 -0
  159. package/lib/components/import-modal/search/work-status-select.js +74 -0
  160. package/lib/components/import-modal/tree/okr-tree/index.css +61 -0
  161. package/lib/components/import-modal/tree/okr-tree/index.js +267 -0
  162. package/lib/components/import-modal/tree/okr-tree/search-form.js +169 -0
  163. package/lib/components/import-modal/tree/task-work-tree/index.css +124 -0
  164. package/lib/components/import-modal/tree/task-work-tree/index.js +190 -0
  165. package/lib/components/import-modal/tree-node/index.css +0 -0
  166. package/lib/components/import-modal/tree-node/index.js +51 -0
  167. package/lib/components/import-modal/tree-node/kr-node/index.css +65 -0
  168. package/lib/components/import-modal/tree-node/kr-node/index.js +112 -0
  169. package/lib/components/import-modal/tree-node/milestone-node/index.css +61 -0
  170. package/lib/components/import-modal/tree-node/milestone-node/index.js +118 -0
  171. package/lib/components/import-modal/tree-node/o-node/index.css +53 -0
  172. package/lib/components/import-modal/tree-node/o-node/index.js +142 -0
  173. package/lib/components/import-modal/tree-node/work-node/index.css +51 -0
  174. package/lib/components/import-modal/tree-node/work-node/index.js +108 -0
  175. package/lib/components/menus/components/menu-tree/images/interview-menu/setting.svg +16 -0
  176. package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +14 -0
  177. package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +18 -0
  178. package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +15 -0
  179. package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +15 -0
  180. package/lib/components/menus/components/menu-tree/tree-node/index.css +148 -0
  181. package/lib/components/menus/components/menu-tree/tree-node/index.js +22 -2
  182. package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +78 -0
  183. package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +78 -0
  184. package/lib/components/menus/components/search-colleague/index.js +3 -1
  185. package/lib/components/menus/export-modules/appraisal-menus/index.js +6 -6
  186. package/lib/components/menus/export-modules/appraisal-menus/menus.js +69 -69
  187. package/lib/components/menus/export-modules/interview-menus/constant.js +45 -34
  188. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +20 -0
  189. package/lib/components/menus/export-modules/interview-menus/index.js +29 -28
  190. package/lib/components/menus/export-modules/interview-menus/menus.js +164 -0
  191. package/lib/components/menus/export-modules/okr-menus/index.js +6 -6
  192. package/lib/components/menus/export-modules/okr-menus/menus.js +60 -60
  193. package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +2 -2
  194. package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +56 -0
  195. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +32 -0
  196. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +233 -0
  197. package/lib/components/menus/export-modules/summary-menus/index.css +9 -0
  198. package/lib/components/menus/export-modules/summary-menus/index.js +136 -0
  199. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +76 -0
  200. package/lib/components/menus/export-modules/summary-menus/menus.js +201 -0
  201. package/lib/components/menus/export-modules/summary-menus/request-api.js +17 -0
  202. package/lib/components/menus/export-modules/summary-menus/subordinate-menus/helper.js +28 -0
  203. package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.css +14 -0
  204. package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +201 -0
  205. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +243 -0
  206. package/lib/components/menus/i18n.js +8 -0
  207. package/lib/components/menus/index.js +6 -0
  208. package/lib/components/menus/request-apis.js +8 -2
  209. package/lib/components/nav-top/components/app-center/images/demo.png +0 -0
  210. package/lib/components/nav-top/components/app-center/index.css +4 -0
  211. package/lib/components/nav-top/components/app-center/index.js +9 -9
  212. package/lib/components/nav-top/components/menu/index.js +4 -0
  213. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +28 -17
  214. package/lib/components/nav-top/components/user-message/index.js +19 -19
  215. package/lib/components/nav-top/index.js +18 -18
  216. package/lib/components/new-confidence/constant.js +53 -0
  217. package/lib/components/new-confidence/img/1.svg +40 -0
  218. package/lib/components/new-confidence/img/10.svg +33 -0
  219. package/lib/components/new-confidence/img/2.svg +40 -0
  220. package/lib/components/new-confidence/img/3.svg +40 -0
  221. package/lib/components/new-confidence/img/4.svg +40 -0
  222. package/lib/components/new-confidence/img/5.svg +40 -0
  223. package/lib/components/new-confidence/img/6.svg +40 -0
  224. package/lib/components/new-confidence/img/7.svg +40 -0
  225. package/lib/components/new-confidence/img/8.svg +40 -0
  226. package/lib/components/new-confidence/img/9.svg +40 -0
  227. package/lib/components/new-confidence/index.css +62 -0
  228. package/lib/components/new-confidence/index.js +120 -0
  229. package/lib/components/new-confidence/interface.js +5 -0
  230. package/lib/components/okr-detail/components/header/o-avatar.js +6 -6
  231. package/lib/components/okr-flow/export-modal/index.css +3 -3
  232. package/lib/components/okr-flow/export-modal/index.js +95 -48
  233. package/lib/components/order-have-award/index.js +6 -6
  234. package/lib/components/period-selector/components/button/style.js +5 -5
  235. package/lib/components/picker/components/cross.svg +17 -0
  236. package/lib/components/picker/components/panels/date-panel/date-body.js +31 -19
  237. package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
  238. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  239. package/lib/components/picker/components/panels/month-panel/index.css +5 -0
  240. package/lib/components/picker/components/panels/month-panel/index.js +35 -4
  241. package/lib/components/picker/components/panels/month-panel/month-body.js +4 -5
  242. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  243. package/lib/components/picker/components/panels/week-panel/index.css +51 -0
  244. package/lib/components/picker/components/panels/week-panel/index.js +63 -0
  245. package/lib/components/picker/components/panels/week-panel/utils.js +153 -0
  246. package/lib/components/picker/components/panels/week-panel/week-body.js +79 -0
  247. package/lib/components/picker/components/panels/week-panel/week-head.js +80 -0
  248. package/lib/components/picker/components/panels/year-panel/index.css +5 -0
  249. package/lib/components/picker/components/panels/year-panel/index.js +34 -3
  250. package/lib/components/picker/components/panels/year-panel/year-body.js +10 -3
  251. package/lib/components/picker/components/picker-trigger/index.css +6 -1
  252. package/lib/components/picker/components/picker-trigger/index.js +16 -11
  253. package/lib/components/picker/context.js +17 -2
  254. package/lib/components/picker/index.css +29 -1
  255. package/lib/components/picker/index.js +3 -0
  256. package/lib/components/picker/picker-panels.js +106 -60
  257. package/lib/components/picker/picker.js +44 -30
  258. package/lib/components/picker/range-picker/components/picker-trigger/index.css +97 -0
  259. package/lib/components/picker/range-picker/components/picker-trigger/index.js +109 -0
  260. package/lib/components/picker/range-picker/components/placeholder/index.js +91 -0
  261. package/lib/components/picker/range-picker/components/select-input/index.js +79 -0
  262. package/lib/components/picker/range-picker/components/shortcuts/index.js +45 -0
  263. package/lib/components/picker/range-picker/index.css +158 -0
  264. package/lib/components/picker/range-picker/index.js +273 -0
  265. package/lib/components/picker/utils.js +175 -11
  266. package/lib/components/promise-confirm/index.css +0 -0
  267. package/lib/components/promise-confirm/index.js +117 -0
  268. package/lib/components/promise-confirm/interface.js +5 -0
  269. package/lib/components/rate/index.css +111 -0
  270. package/lib/components/rate/index.js +52 -0
  271. package/lib/components/regulation-setting-item/index.css +33 -0
  272. package/lib/components/regulation-setting-item/index.js +37 -0
  273. package/lib/components/rich-editor/schemas/list.js +0 -1
  274. package/lib/components/rich-editor/ui/editor/index.css +32 -32
  275. package/lib/components/rich-editor/ui/editor/index.js +1 -1
  276. package/lib/components/rich-editor-at/components/index.css +67 -0
  277. package/lib/components/rich-editor-at/components/index.js +189 -0
  278. package/lib/components/rich-editor-at/index.css +40 -0
  279. package/lib/components/rich-editor-at/index.js +113 -0
  280. package/lib/components/rich-editor-upload/index.css +11 -0
  281. package/lib/components/rich-editor-upload/index.js +87 -0
  282. package/lib/components/search-input/index.js +5 -0
  283. package/lib/components/select-tags/index.js +10 -2
  284. package/lib/components/task-relation-modal/helper.js +6 -6
  285. package/lib/components/task-relation-modal/request-api.js +9 -9
  286. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +4 -4
  287. package/lib/components/task-relation-modal/tree-node/work-node/index.js +5 -5
  288. package/lib/components/textarea/index.css +61 -66
  289. package/lib/components/textarea/index.js +23 -18
  290. package/lib/components/toast/index.js +1 -1
  291. package/lib/components/tooltip/tooltip.js +2 -2
  292. package/lib/components/upvote/index.js +10 -4
  293. package/lib/components/upvote/selector.js +2 -3
  294. package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
  295. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +1 -1
  296. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +3 -3
  297. package/lib/components/user-selector/request-apis.js +13 -13
  298. package/lib/components/write-summary-modal/constants.js +21 -0
  299. package/lib/components/write-summary-modal/index.css +80 -0
  300. package/lib/components/write-summary-modal/index.js +167 -0
  301. package/lib/components/write-summary-modal/interface.js +19 -0
  302. package/lib/components/write-summary-modal/request-api.js +18 -0
  303. package/lib/components/write-summary-modal/utils.js +32 -0
  304. package/lib/components-v1/radio/style/index.css +1 -1
  305. package/lib/index.js +64 -0
  306. package/lib/pages/aha2021/index.js +3 -3
  307. package/lib/pages/aha2021/new-menu-switcher/index.js +4 -4
  308. package/lib/pages/aha2021/request-api.js +1 -1
  309. package/lib/utils/auth.js +5 -0
  310. package/lib/utils/bs-global.js +1 -1
  311. package/lib/utils/constant.js +14 -2
  312. package/lib/utils/helpers.js +112 -12
  313. package/lib/utils/open-data.js +41 -42
  314. package/lib/utils/planDataJson.js +1 -0
  315. package/package.json +3 -2
  316. package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
  317. package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>6</title>
4
+ <defs>
5
+ <linearGradient x1="97.5204612%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
6
+ <stop stop-color="#FF5555" offset="0%"></stop>
7
+ <stop stop-color="#FFA5A5" offset="100%"></stop>
8
+ </linearGradient>
9
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" id="path-2"></path>
10
+ <linearGradient x1="35.6067299%" y1="-7.3874199%" x2="39.8232883%" y2="80.1176065%" id="linearGradient-4">
11
+ <stop stop-color="#FFFFFF" stop-opacity="0.300000012" offset="5.24306633%"></stop>
12
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="81.7708313%"></stop>
13
+ </linearGradient>
14
+ <linearGradient x1="109.201964%" y1="-32.6093597%" x2="-34.6017883%" y2="143.225568%" id="linearGradient-5">
15
+ <stop stop-color="#FFFFFF" offset="7.84609392%"></stop>
16
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
17
+ </linearGradient>
18
+ </defs>
19
+ <g id="信心指数" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
20
+ <g transform="translate(-466.000000, -220.000000)" id="6">
21
+ <g transform="translate(466.000000, 220.000000)">
22
+ <rect id="矩形" x="0" y="0" width="24" height="24"></rect>
23
+ <g id="编组" transform="translate(1.000000, 2.000000)">
24
+ <g id="Union" transform="translate(0.219714, 0.216712)">
25
+ <g id="路径-3">
26
+ <mask id="mask-3" fill="white">
27
+ <use xlink:href="#path-2"></use>
28
+ </mask>
29
+ <use id="蒙版" fill="url(#linearGradient-1)" xlink:href="#path-2"></use>
30
+ <path d="M-0.226151355,9.76130429 C3.23143816,7.07878153 7.34806197,6.62372076 12.1237201,8.39612201 C16.8993782,10.1685232 20.7295233,8.93603078 23.6141555,4.6986446 L23.6141555,-2.96191136 L-0.226151355,-2.96191136 L-0.226151355,9.76130429 Z" fill="#FFD3D3" mask="url(#mask-3)"></path>
31
+ </g>
32
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" stroke-opacity="0.3" stroke="#FFFFFF" stroke-width="0.5" stroke-dasharray="0"></path>
33
+ </g>
34
+ <path d="M6.8869768,1.71651047 C4.04105067,1.70395203 1.74386871,3.9927455 1.75648263,6.83153261 C1.76918964,9.66782078 4.08688702,11.9770628 6.93281315,11.9897248 C9.77622299,12.0022722 12.0734049,9.71347873 12.0608021,6.87719056 C12.048084,4.03840345 9.73038664,1.72916147 6.8869768,1.71651047 Z" id="Ellipse-170" fill="url(#linearGradient-4)" transform="translate(6.908642, 6.853118) rotate(-26.050000) translate(-6.908642, -6.853118) "></path>
35
+ <path d="M6.71275953,3.87516411 C5.4467279,4.12903387 4.758381,5.77118001 4.58781188,6.81893961" id="Vector-120" stroke="url(#linearGradient-5)" stroke-width="2.52174201" stroke-dasharray="0" transform="translate(5.650286, 5.347052) rotate(8.070000) translate(-5.650286, -5.347052) "></path>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>7</title>
4
+ <defs>
5
+ <linearGradient x1="97.5204612%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
6
+ <stop stop-color="#FF5555" offset="0%"></stop>
7
+ <stop stop-color="#FFA5A5" offset="100%"></stop>
8
+ </linearGradient>
9
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" id="path-2"></path>
10
+ <linearGradient x1="35.6067299%" y1="-7.3874199%" x2="39.8232883%" y2="80.1176065%" id="linearGradient-4">
11
+ <stop stop-color="#FFFFFF" stop-opacity="0.300000012" offset="5.24306633%"></stop>
12
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="81.7708313%"></stop>
13
+ </linearGradient>
14
+ <linearGradient x1="109.201964%" y1="-32.6093597%" x2="-34.6017883%" y2="143.225568%" id="linearGradient-5">
15
+ <stop stop-color="#FFFFFF" offset="7.84609392%"></stop>
16
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
17
+ </linearGradient>
18
+ </defs>
19
+ <g id="信心指数" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
20
+ <g transform="translate(-466.000000, -256.000000)" id="7">
21
+ <g transform="translate(466.000000, 256.000000)">
22
+ <rect id="矩形" x="0" y="0" width="24" height="24"></rect>
23
+ <g id="编组" transform="translate(1.000000, 2.000000)">
24
+ <g id="Union" transform="translate(0.219714, 0.216712)">
25
+ <g id="路径-3">
26
+ <mask id="mask-3" fill="white">
27
+ <use xlink:href="#path-2"></use>
28
+ </mask>
29
+ <use id="蒙版" fill="url(#linearGradient-1)" xlink:href="#path-2"></use>
30
+ <path d="M-0.226151355,7.94370205 C3.23143816,5.26117929 7.34806197,4.80611853 12.1237201,6.57851977 C16.8993782,8.35092101 20.7295233,7.11842854 23.6141555,2.88104237 L23.6141555,-4.7795136 L-0.226151355,-4.7795136 L-0.226151355,7.94370205 Z" fill="#FFD3D3" mask="url(#mask-3)"></path>
31
+ </g>
32
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" stroke-opacity="0.3" stroke="#FFFFFF" stroke-width="0.5" stroke-dasharray="0"></path>
33
+ </g>
34
+ <path d="M6.8869768,1.71651047 C4.04105067,1.70395203 1.74386871,3.9927455 1.75648263,6.83153261 C1.76918964,9.66782078 4.08688702,11.9770628 6.93281315,11.9897248 C9.77622299,12.0022722 12.0734049,9.71347873 12.0608021,6.87719056 C12.048084,4.03840345 9.73038664,1.72916147 6.8869768,1.71651047 Z" id="Ellipse-170" fill="url(#linearGradient-4)" transform="translate(6.908642, 6.853118) rotate(-26.050000) translate(-6.908642, -6.853118) "></path>
35
+ <path d="M6.71275953,3.87516411 C5.4467279,4.12903387 4.758381,5.77118001 4.58781188,6.81893961" id="Vector-120" stroke="url(#linearGradient-5)" stroke-width="2.52174201" stroke-dasharray="0" transform="translate(5.650286, 5.347052) rotate(8.070000) translate(-5.650286, -5.347052) "></path>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>8</title>
4
+ <defs>
5
+ <linearGradient x1="97.5204612%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
6
+ <stop stop-color="#FF5555" offset="0%"></stop>
7
+ <stop stop-color="#FFA5A5" offset="100%"></stop>
8
+ </linearGradient>
9
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" id="path-2"></path>
10
+ <linearGradient x1="35.6067299%" y1="-7.3874199%" x2="39.8232883%" y2="80.1176065%" id="linearGradient-4">
11
+ <stop stop-color="#FFFFFF" stop-opacity="0.300000012" offset="5.24306633%"></stop>
12
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="81.7708313%"></stop>
13
+ </linearGradient>
14
+ <linearGradient x1="109.201964%" y1="-32.6093597%" x2="-34.6017883%" y2="143.225568%" id="linearGradient-5">
15
+ <stop stop-color="#FFFFFF" offset="7.84609392%"></stop>
16
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
17
+ </linearGradient>
18
+ </defs>
19
+ <g id="信心指数" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
20
+ <g transform="translate(-466.000000, -292.000000)" id="8">
21
+ <g transform="translate(466.000000, 292.000000)">
22
+ <rect id="矩形" x="0" y="0" width="24" height="24"></rect>
23
+ <g id="编组" transform="translate(1.000000, 2.000000)">
24
+ <g id="Union" transform="translate(0.219714, 0.216712)">
25
+ <g id="路径-3">
26
+ <mask id="mask-3" fill="white">
27
+ <use xlink:href="#path-2"></use>
28
+ </mask>
29
+ <use id="蒙版" fill="url(#linearGradient-1)" xlink:href="#path-2"></use>
30
+ <path d="M-0.226151355,6.12609982 C3.23143816,3.44357705 7.34806197,2.98851629 12.1237201,4.76091753 C16.8993782,6.53331878 20.7295233,5.30082631 23.6141555,1.06344013 L23.6141555,-6.59711583 L-0.226151355,-6.59711583 L-0.226151355,6.12609982 Z" fill="#FFD3D3" mask="url(#mask-3)"></path>
31
+ </g>
32
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" stroke-opacity="0.3" stroke="#FFFFFF" stroke-width="0.5" stroke-dasharray="0"></path>
33
+ </g>
34
+ <path d="M6.8869768,1.71651047 C4.04105067,1.70395203 1.74386871,3.9927455 1.75648263,6.83153261 C1.76918964,9.66782078 4.08688702,11.9770628 6.93281315,11.9897248 C9.77622299,12.0022722 12.0734049,9.71347873 12.0608021,6.87719056 C12.048084,4.03840345 9.73038664,1.72916147 6.8869768,1.71651047 Z" id="Ellipse-170" fill="url(#linearGradient-4)" transform="translate(6.908642, 6.853118) rotate(-26.050000) translate(-6.908642, -6.853118) "></path>
35
+ <path d="M6.71275953,3.87516411 C5.4467279,4.12903387 4.758381,5.77118001 4.58781188,6.81893961" id="Vector-120" stroke="url(#linearGradient-5)" stroke-width="2.52174201" stroke-dasharray="0" transform="translate(5.650286, 5.347052) rotate(8.070000) translate(-5.650286, -5.347052) "></path>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>9</title>
4
+ <defs>
5
+ <linearGradient x1="97.5204612%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
6
+ <stop stop-color="#FF5555" offset="0%"></stop>
7
+ <stop stop-color="#FFA5A5" offset="100%"></stop>
8
+ </linearGradient>
9
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" id="path-2"></path>
10
+ <linearGradient x1="35.6067299%" y1="-7.3874199%" x2="39.8232883%" y2="80.1176065%" id="linearGradient-4">
11
+ <stop stop-color="#FFFFFF" stop-opacity="0.300000012" offset="5.24306633%"></stop>
12
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="81.7708313%"></stop>
13
+ </linearGradient>
14
+ <linearGradient x1="109.201964%" y1="-32.6093597%" x2="-34.6017883%" y2="143.225568%" id="linearGradient-5">
15
+ <stop stop-color="#FFFFFF" offset="7.84609392%"></stop>
16
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
17
+ </linearGradient>
18
+ </defs>
19
+ <g id="信心指数" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
20
+ <g transform="translate(-466.000000, -328.000000)" id="9">
21
+ <g transform="translate(466.000000, 328.000000)">
22
+ <rect id="矩形" x="0" y="0" width="24" height="24"></rect>
23
+ <g id="编组" transform="translate(1.000000, 2.000000)">
24
+ <g id="Union" transform="translate(0.219714, 0.216712)">
25
+ <g id="路径-3">
26
+ <mask id="mask-3" fill="white">
27
+ <use xlink:href="#path-2"></use>
28
+ </mask>
29
+ <use id="蒙版" fill="url(#linearGradient-1)" xlink:href="#path-2"></use>
30
+ <path d="M-0.226151355,4.30849758 C3.23143816,1.62597482 7.34806197,1.17091406 12.1237201,2.9433153 C16.8993782,4.71571654 20.7295233,3.48322407 23.6141555,-0.754162104 L23.6141555,-8.41471807 L-0.226151355,-8.41471807 L-0.226151355,4.30849758 Z" fill="#FFD3D3" mask="url(#mask-3)"></path>
31
+ </g>
32
+ <path d="M6.38000728,0 C2.8873946,0 0,2.79020658 0,6.26612077 C0,7.06403507 0.17652194,7.99659741 0.448870077,8.69726591 C1.51052346,12.2130758 6.44305083,18.2198744 11.3427955,19.7832878 C18.2246295,15.544368 20.4941973,11.8739622 21.4575027,8.78453779 C21.7071552,7.98662348 21.7802857,7.24107231 21.7802857,6.33344478 C21.7802857,2.8575306 18.7592388,0 15.2666261,0 C13.5341893,0 11.9656658,0.693188051 10.8233167,1.81525504 C9.68096756,0.693188051 8.11244403,0 6.38000728,0 Z" stroke-opacity="0.3" stroke="#FFFFFF" stroke-width="0.5" stroke-dasharray="0"></path>
33
+ </g>
34
+ <path d="M6.8869768,1.71651047 C4.04105067,1.70395203 1.74386871,3.9927455 1.75648263,6.83153261 C1.76918964,9.66782078 4.08688702,11.9770628 6.93281315,11.9897248 C9.77622299,12.0022722 12.0734049,9.71347873 12.0608021,6.87719056 C12.048084,4.03840345 9.73038664,1.72916147 6.8869768,1.71651047 Z" id="Ellipse-170" fill="url(#linearGradient-4)" transform="translate(6.908642, 6.853118) rotate(-26.050000) translate(-6.908642, -6.853118) "></path>
35
+ <path d="M6.71275953,3.87516411 C5.4467279,4.12903387 4.758381,5.77118001 4.58781188,6.81893961" id="Vector-120" stroke="url(#linearGradient-5)" stroke-width="2.52174201" stroke-dasharray="0" transform="translate(5.650286, 5.347052) rotate(8.070000) translate(-5.650286, -5.347052) "></path>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,62 @@
1
+ .tita-ui-new-confidence {
2
+ height: 100%;
3
+ }
4
+
5
+ .tita-ui-new-confidence--editable {
6
+ cursor: pointer;
7
+ }
8
+
9
+ .tita-ui-new-confidence__icon {
10
+ width: 24px;
11
+ height: 24px;
12
+ min-width: 24px;
13
+ }
14
+
15
+ .tita-ui-new-confidence__value {
16
+ margin-left: 6px;
17
+ font-size: 14px;
18
+ color: #3f4755;
19
+ line-height: 22px;
20
+ }
21
+
22
+ .tita-ui-new-confidence__pop-content {
23
+ width: 104px;
24
+ height: 192px;
25
+ background: #ffffff;
26
+ box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
27
+ overflow: auto;
28
+ overflow: overlay;
29
+ padding: 16px 6px;
30
+ box-sizing: border-box;
31
+ border-radius: 12px;
32
+ }
33
+
34
+ .tita-ui-new-confidence__pop-content-item {
35
+ width: 92px;
36
+ height: 32px;
37
+ border-radius: 8px;
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ padding: 6px;
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ .tita-ui-new-confidence__pop-content-item:hover {
46
+ cursor: pointer;
47
+ background: #f7f8fa;
48
+ color: #2879ff;
49
+ }
50
+
51
+ .tita-ui-new-confidence__pop-content-item-icon {
52
+ width: 20px;
53
+ height: 20px;
54
+ min-width: 20px;
55
+ }
56
+
57
+ .tita-ui-new-confidence__pop-content-item-text {
58
+ font-size: 14px;
59
+ color: #3f4755;
60
+ line-height: 22px;
61
+ margin-left: 12px;
62
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _popup = _interopRequireDefault(require("../popup"));
15
+
16
+ var _constant = require("./constant");
17
+
18
+ var _getLocale = require("../../utils/getLocale");
19
+
20
+ require("./index.css");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ 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); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ 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; }
29
+
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+
32
+ 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."); }
33
+
34
+ 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); }
35
+
36
+ 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; }
37
+
38
+ 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; }
39
+
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+
42
+ var prefix = 'tita-ui-new-confidence';
43
+
44
+ var NewConfidence = function NewConfidence(_ref) {
45
+ var value = _ref.value,
46
+ _ref$editable = _ref.editable,
47
+ editable = _ref$editable === void 0 ? true : _ref$editable,
48
+ onChange = _ref.onChange,
49
+ _ref$getPopupContaine = _ref.getPopupContainer,
50
+ getPopupContainer = _ref$getPopupContaine === void 0 ? function () {
51
+ return document.body;
52
+ } : _ref$getPopupContaine;
53
+
54
+ var _useState = (0, _react.useState)(value),
55
+ _useState2 = _slicedToArray(_useState, 2),
56
+ confidence = _useState2[0],
57
+ setConfidence = _useState2[1];
58
+
59
+ var popupRef = (0, _react.useRef)({
60
+ open: function open() {},
61
+ close: function close() {}
62
+ });
63
+
64
+ var handleChangeConfidence = function handleChangeConfidence(point) {
65
+ setConfidence(point);
66
+ popupRef.current.close();
67
+
68
+ if (onChange) {
69
+ onChange(point);
70
+ }
71
+ };
72
+
73
+ (0, _react.useEffect)(function () {
74
+ setConfidence(value);
75
+ }, [value]);
76
+ var renderPopContent = (0, _react.useMemo)(function () {
77
+ if (!editable) return null;
78
+ return /*#__PURE__*/_react["default"].createElement("div", {
79
+ className: "".concat(prefix, "__pop-content")
80
+ }, _constant.ConfidencePointArr.map(function (point) {
81
+ return /*#__PURE__*/_react["default"].createElement("div", {
82
+ onClick: function onClick() {
83
+ handleChangeConfidence(point);
84
+ },
85
+ className: "".concat(prefix, "__pop-content-item")
86
+ }, /*#__PURE__*/_react["default"].createElement("img", {
87
+ className: "".concat(prefix, "__pop-content-item-icon"),
88
+ alt: "",
89
+ src: _constant.ConfidenceMapIcon[point]
90
+ }), /*#__PURE__*/_react["default"].createElement("span", {
91
+ className: "".concat(prefix, "__pop-content-item-text")
92
+ }, point, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('Per_Set_Form_Quantifier_Points'))));
93
+ }));
94
+ }, [editable]);
95
+ return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
96
+ popup: renderPopContent,
97
+ popupPlacement: "bottom",
98
+ ref: popupRef,
99
+ popupAlign: {
100
+ offset: [0, 5],
101
+ overflow: {
102
+ adjustX: true,
103
+ adjustY: true
104
+ },
105
+ targetOffset: [0, 0]
106
+ },
107
+ getPopupContainer: getPopupContainer
108
+ }, /*#__PURE__*/_react["default"].createElement("div", {
109
+ className: (0, _classnames["default"])(prefix, _defineProperty({}, "".concat(prefix, "--editable"), editable))
110
+ }, confidence > 0 && /*#__PURE__*/_react["default"].createElement("img", {
111
+ className: "".concat(prefix, "__icon"),
112
+ alt: "",
113
+ src: _constant.ConfidenceMapIcon[confidence]
114
+ }), /*#__PURE__*/_react["default"].createElement("span", {
115
+ className: "".concat(prefix, "__value")
116
+ }, confidence)));
117
+ };
118
+
119
+ var _default = NewConfidence;
120
+ exports["default"] = _default;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -91,7 +91,7 @@ function OAvatar(props) {
91
91
  case 0:
92
92
  _context.next = 2;
93
93
  return (0, _requestApis.updateOkrPrincipal)({
94
- email: selectedUser.email || "",
94
+ email: selectedUser.email || '',
95
95
  to_user_id: selectedUser.id,
96
96
  work_id: okrId
97
97
  });
@@ -103,7 +103,7 @@ function OAvatar(props) {
103
103
  setGeneralPrincipalUser(selectedUser);
104
104
  popConfirmRef.current && popConfirmRef.current.getRef().hide();
105
105
 
106
- _toast["default"].Success("负责人转交成功");
106
+ _toast["default"].Success('负责人转交成功');
107
107
  } else {
108
108
  _toast["default"].Error(data.Message);
109
109
  }
@@ -125,8 +125,8 @@ function OAvatar(props) {
125
125
  return /*#__PURE__*/_react["default"].createElement(_default2["default"], {
126
126
  userId: generalPrincipalUser.userId,
127
127
  name: generalPrincipalUser.name,
128
- color: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.color : "",
129
- src: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.original : "",
128
+ color: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.color : '',
129
+ src: generalPrincipalUser.avatar ? generalPrincipalUser.avatar.original : '',
130
130
  nameTips: function nameTips(name) {
131
131
  return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
132
132
  },
@@ -142,7 +142,7 @@ function OAvatar(props) {
142
142
  return /*#__PURE__*/_react["default"].createElement("span", {
143
143
  ref: avatarRef,
144
144
  style: {
145
- cursor: "pointer"
145
+ cursor: 'pointer'
146
146
  }
147
147
  }, /*#__PURE__*/_react["default"].createElement(_popConfirm["default"], {
148
148
  ref: popConfirmRef,
@@ -150,7 +150,7 @@ function OAvatar(props) {
150
150
  style: {
151
151
  width: 300
152
152
  },
153
- title: (0, _getLocale.getLocale)("OKR_MyO_Err_Transfer"),
153
+ title: (0, _getLocale.getLocale)('OKR_MyO_Err_Transfer'),
154
154
  onCancel: cancelHandler,
155
155
  onConfirm: confirmHandler
156
156
  }, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
@@ -22,12 +22,12 @@
22
22
  display: flex;
23
23
  align-items: center;
24
24
  padding: 0 12px;
25
- background: #FFFFFF;
25
+ background: #ffffff;
26
26
  border-radius: 16px;
27
- border: 1px solid #E9ECF0;
27
+ border: 1px solid #e9ecf0;
28
28
  font-size: 14px;
29
29
  font-weight: 400;
30
- color: #141C28;
30
+ color: #141c28;
31
31
  margin-right: 12px;
32
32
  }
33
33
 
@@ -27,7 +27,7 @@ var _selectLayer = _interopRequireDefault(require("../../select-layer"));
27
27
 
28
28
  var _utils = require("../utils");
29
29
 
30
- var _context2 = require("../context");
30
+ var _context3 = require("../context");
31
31
 
32
32
  var _bsGlobal = require("../../../utils/bs-global");
33
33
 
@@ -140,11 +140,11 @@ var ExportMapModal = function ExportMapModal(props) {
140
140
  }, [visible, mapInstance]);
141
141
 
142
142
  var downloadImg = /*#__PURE__*/function () {
143
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
143
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
144
144
  var okrMapRef, width, height, canvas, scale, opts;
145
- return regeneratorRuntime.wrap(function _callee$(_context) {
145
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
146
146
  while (1) {
147
- switch (_context.prev = _context.next) {
147
+ switch (_context2.prev = _context2.next) {
148
148
  case 0:
149
149
  okrMapRef = document.querySelector('.titaui-okr-flow__export') || document.createElement('div');
150
150
  width = okrMapRef.clientWidth; // 获取dom 宽度
@@ -176,7 +176,7 @@ var ExportMapModal = function ExportMapModal(props) {
176
176
  useCORS: true // 【重要】开启跨域配置
177
177
 
178
178
  };
179
- _context.next = 12;
179
+ _context2.next = 12;
180
180
  return (0, _html2canvas["default"])(okrMapRef, opts).then(function (result) {
181
181
  var _window, _window$BSGlobal, _window$BSGlobal$logi, _window2, _window2$BSGlobal, _window2$BSGlobal$ten;
182
182
 
@@ -240,7 +240,13 @@ var ExportMapModal = function ExportMapModal(props) {
240
240
  scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
241
241
  });
242
242
  (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
243
- // const image = new Image()
243
+ var image = new Image(); // @ts-ignore
244
+ // window.titaTracker && window.titaTracker("action").record({
245
+ // actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
246
+ // actionGroup: 'okr地图接口',
247
+ // productName: 'okr地图导出',
248
+ // });
249
+
244
250
  // @ts-ignore
245
251
  // window.titaTracker && window.titaTracker("action").record({
246
252
  // actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
@@ -251,46 +257,87 @@ var ExportMapModal = function ExportMapModal(props) {
251
257
  scope.setTag('error-level', "P0");
252
258
  scope.setTag('error-type', '地图导出-图片地址');
253
259
  scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
254
- });
255
- var newUrl = url.Data.obj;
256
- var x = new XMLHttpRequest();
257
- x.open("GET", newUrl, true);
258
- x.responseType = 'blob';
259
-
260
- x.onload = function (e) {
261
- var url = window.URL.createObjectURL(x.response);
262
- var a = document.createElement('a');
263
- a.href = url;
264
- a.download = model.value === 20 ? '高清图片' : '标清图片';
265
- a.click();
266
-
267
- _toast["default"].Success('导出成功');
268
-
269
- setIsExport(false);
270
-
271
- if (onCloseHandler) {
272
- onCloseHandler();
273
- }
274
- };
275
-
276
- x.send(); // image.setAttribute('crossOrigin', 'anonymous')
277
- // image.onload = async() => {
278
- // if (!url.Data.obj) {
279
- // Toast.Error('导出失败,请稍后重试', { canClose: false })
280
- // }
281
- // await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
282
- // // const a = document.createElement('a') // 生成一个a元素
283
- // // const event = new MouseEvent('click') // 创建一个单击事件
284
- // // a.download = '123' // 设置图片名称
285
- // // a.href = url.Data.obj // 将生成的URL设置为a
286
- // // a.dispatchEvent(event) // 触发a的单击事件
287
- // Toast.Success('导出成功')
288
- // setIsExport(false)
289
- // if (onCloseHandler) {
290
- // onCloseHandler()
291
- // }
260
+ }); // var newUrl = url.Data.obj
261
+ // var x = new XMLHttpRequest();
262
+ // x.open("GET", newUrl, true);
263
+ // x.responseType = 'blob';
264
+ // x.onload=function(e) {
265
+ // var url = window.URL.createObjectURL(x.response)
266
+ // var a = document.createElement('a');
267
+ // a.href = url
268
+ // a.download = model.value===20?'高清图片':'标清图片';
269
+ // a.click()
270
+ // Toast.Success('导出成功')
271
+ // setIsExport(false)
272
+ // if (onCloseHandler) {
273
+ // onCloseHandler()
274
+ // }
275
+ // }
276
+ // x.send();
277
+
278
+ // var newUrl = url.Data.obj
279
+ // var x = new XMLHttpRequest();
280
+ // x.open("GET", newUrl, true);
281
+ // x.responseType = 'blob';
282
+ // x.onload=function(e) {
283
+ // var url = window.URL.createObjectURL(x.response)
284
+ // var a = document.createElement('a');
285
+ // a.href = url
286
+ // a.download = model.value===20?'高清图片':'标清图片';
287
+ // a.click()
288
+ // Toast.Success('导出成功')
289
+ // setIsExport(false)
290
+ // if (onCloseHandler) {
291
+ // onCloseHandler()
292
+ // }
292
293
  // }
293
- // image.src = imgUrl
294
+ // x.send();
295
+ image.setAttribute('crossOrigin', 'anonymous');
296
+ image.onload = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
297
+ var a, event;
298
+ return regeneratorRuntime.wrap(function _callee$(_context) {
299
+ while (1) {
300
+ switch (_context.prev = _context.next) {
301
+ case 0:
302
+ if (!url.Data.obj) {
303
+ _toast["default"].Error('导出失败,请稍后重试', {
304
+ canClose: false
305
+ });
306
+ } // await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
307
+
308
+
309
+ // await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
310
+ a = document.createElement('a'); // 生成一个a元素
311
+
312
+ // 生成一个a元素
313
+ event = new MouseEvent('click'); // 创建一个单击事件
314
+
315
+ // 创建一个单击事件
316
+ a.download = '分享图片'; // 设置图片名称
317
+
318
+ // 设置图片名称
319
+ a.href = url.Data.obj; // 将生成的URL设置为a
320
+
321
+ // 将生成的URL设置为a
322
+ a.dispatchEvent(event); // 触发a的单击事件
323
+
324
+ // 触发a的单击事件
325
+ _toast["default"].Success('导出成功');
326
+
327
+ setIsExport(false);
328
+
329
+ if (onCloseHandler) {
330
+ onCloseHandler();
331
+ }
332
+
333
+ case 9:
334
+ case "end":
335
+ return _context.stop();
336
+ }
337
+ }
338
+ }, _callee);
339
+ }));
340
+ image.src = imgUrl;
294
341
  });
295
342
  })["catch"](function (err) {
296
343
  setIsExport(false);
@@ -302,10 +349,10 @@ var ExportMapModal = function ExportMapModal(props) {
302
349
 
303
350
  case 12:
304
351
  case "end":
305
- return _context.stop();
352
+ return _context2.stop();
306
353
  }
307
354
  }
308
- }, _callee);
355
+ }, _callee2);
309
356
  }));
310
357
 
311
358
  return function downloadImg() {
@@ -398,7 +445,7 @@ var ExportMapModal = function ExportMapModal(props) {
398
445
  className: "titaui-search-dropdown__text"
399
446
  }, model.label), /*#__PURE__*/_react["default"].createElement("span", {
400
447
  className: "tu-icon-sort-down"
401
- })))), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
448
+ })))), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context3.CommonContext.Provider, {
402
449
  value: {
403
450
  direction: direction,
404
451
  showkr: showkr,