@titaui/pc 1.12.15 → 1.12.17-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/lib/components/avatar/icon-avatar/index.js +1 -1
  2. package/lib/components/avatar/num-avatar/index.js +1 -1
  3. package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
  4. package/lib/components/book-demo-award/components/pc/components/checkbox/index.css +54 -0
  5. package/lib/components/book-demo-award/components/pc/components/checkbox/index.js +126 -0
  6. package/lib/components/book-demo-award/components/pc/components/content/index.css +124 -0
  7. package/lib/components/book-demo-award/components/pc/components/content/index.js +372 -0
  8. package/lib/components/book-demo-award/components/pc/components/drop-select/index.css +41 -0
  9. package/lib/components/book-demo-award/components/pc/components/drop-select/index.js +86 -0
  10. package/lib/components/book-demo-award/components/pc/components/error-info/index.css +6 -0
  11. package/lib/components/book-demo-award/components/pc/components/error-info/index.js +24 -0
  12. package/lib/components/book-demo-award/components/pc/components/input/index.css +56 -0
  13. package/lib/components/book-demo-award/components/pc/components/input/index.js +94 -0
  14. package/lib/components/book-demo-award/components/pc/components/phone/index.css +68 -0
  15. package/lib/components/book-demo-award/components/pc/components/phone/index.js +95 -0
  16. package/lib/components/book-demo-award/components/pc/components/verify-code/index.css +45 -0
  17. package/lib/components/book-demo-award/components/pc/components/verify-code/index.js +139 -0
  18. package/lib/components/book-demo-award/components/pc/index.css +22 -0
  19. package/lib/components/book-demo-award/components/pc/index.js +174 -0
  20. package/lib/components/book-demo-award/constant.js +812 -0
  21. package/lib/components/book-demo-award/img/demo-close.svg +16 -0
  22. package/lib/components/book-demo-award/img/demo-down.svg +7 -0
  23. package/lib/components/book-demo-award/img/demo-learning.jpg +0 -0
  24. package/lib/components/book-demo-award/img/demo-okr.jpg +0 -0
  25. package/lib/components/book-demo-award/img/demo-performance.jpg +0 -0
  26. package/lib/components/book-demo-award/img/demo-universal.jpg +0 -0
  27. package/lib/components/book-demo-award/img/order-award.png +0 -0
  28. package/lib/components/book-demo-award/index.js +22 -0
  29. package/lib/components/book-demo-award/interface.js +17 -0
  30. package/lib/components/book-demo-award/request.js +50 -0
  31. package/lib/components/book-demo-award/utils.js +82 -0
  32. package/lib/components/button/default-button/index.js +1 -1
  33. package/lib/components/button/icon-btn/index.js +1 -1
  34. package/lib/components/cascader/index.js +1 -1
  35. package/lib/components/cascader/time.js +1 -1
  36. package/lib/components/change-okr-modal/Filter.js +2 -2
  37. package/lib/components/change-okr-modal/Item.js +2 -2
  38. package/lib/components/change-okr-modal/filterTab.js +2 -2
  39. package/lib/components/change-okr-modal/index.js +6 -4
  40. package/lib/components/common-share/publishMblog.js +4 -2
  41. package/lib/components/communication/CommunicationAttachments.js +2 -2
  42. package/lib/components/communication/ConvertUserName.js +2 -2
  43. package/lib/components/communication/index.js +2 -2
  44. package/lib/components/create-okr-modal/fields/okr-type-detail.js +4 -2
  45. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
  46. package/lib/components/create-okr-modal/index.js +4 -2
  47. package/lib/components/create-okr-modal/objectType.js +2 -2
  48. package/lib/components/create-okr-modal/request-api.js +16 -12
  49. package/lib/components/create-okr-modal/utils/helper.js +6 -2
  50. package/lib/components/date-picker/BodyItem.js +3 -3
  51. package/lib/components/date-picker/CalendarBody.js +3 -3
  52. package/lib/components/date-picker/CalendarHeader.js +3 -3
  53. package/lib/components/date-picker/index.js +2 -2
  54. package/lib/components/date-range-picker/index.js +2 -2
  55. package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
  56. package/lib/components/dialog/index.js +1 -1
  57. package/lib/components/dialog-confirm/index.js +1 -1
  58. package/lib/components/drawer/headerDrop.js +1 -1
  59. package/lib/components/drawer/index.js +1 -1
  60. package/lib/components/drawer-manager/drawerWrapper.js +5 -3
  61. package/lib/components/drawer-manager/index.js +1 -1
  62. package/lib/components/drop-selector/index.js +1 -1
  63. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  64. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  65. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  66. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  67. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  68. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  69. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  70. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  71. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  72. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  73. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  74. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  75. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  76. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  77. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  78. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  79. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  80. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  81. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  82. package/lib/components/eReport/eReportListEmpty.js +2 -2
  83. package/lib/components/eReport/eReportLists/reportList.js +2 -2
  84. package/lib/components/eReport/eReportShare/index.js +2 -2
  85. package/lib/components/eReport/eReportShare/toast/index.js +2 -2
  86. package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
  87. package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
  88. package/lib/components/emotions-selector/selector-content.js +2 -2
  89. package/lib/components/emotions-selector/selector-pop.js +2 -2
  90. package/lib/components/ereport-list/index.js +2 -2
  91. package/lib/components/error-boundary/index.js +2 -2
  92. package/lib/components/firework/index.js +6 -2
  93. package/lib/components/form/form-fields/date/index.js +1 -1
  94. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  95. package/lib/components/form/form-fields/input/index.js +1 -1
  96. package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
  97. package/lib/components/form/form-fields/user/index.js +1 -1
  98. package/lib/components/grid-layout/util/network.js +10 -6
  99. package/lib/components/help-card/image/liaojie1.svg +50 -0
  100. package/lib/components/help-card/index.css +4 -4
  101. package/lib/components/help-card/index.js +1 -1
  102. package/lib/components/mblog/components/ConfirmPop.js +2 -2
  103. package/lib/components/mblog/components/MblogAction.js +2 -2
  104. package/lib/components/mblog/components/MblogContent.js +2 -2
  105. package/lib/components/mblog/index.js +2 -2
  106. package/lib/components/menus/components/menu-tree/index.js +1 -1
  107. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  108. package/lib/components/menus/export-modules/appraisal-menus/menus.js +6 -0
  109. package/lib/components/nav-top/components/app-center/images/yuyue-award.png +0 -0
  110. package/lib/components/nav-top/components/app-center/images/yuyue.png +0 -0
  111. package/lib/components/nav-top/components/app-center/index.css +28 -6
  112. package/lib/components/nav-top/components/app-center/index.js +59 -5
  113. package/lib/components/nav-top/components/app-center/interface.js +19 -0
  114. package/lib/components/nav-top/components/menu/index.js +6 -2
  115. package/lib/components/nav-top/components/user-message/images/bell-1.svg +13 -0
  116. package/lib/components/nav-top/components/user-message/index.css +4 -4
  117. package/lib/components/nav-top/components/user-message/index.js +21 -21
  118. package/lib/components/nav-top/images/app-center.png +0 -0
  119. package/lib/components/nav-top/images/app-center.svg +21 -0
  120. package/lib/components/nav-top/images/home.svg +16 -0
  121. package/lib/components/nav-top/index.css +22 -6
  122. package/lib/components/nav-top/index.js +5 -5
  123. package/lib/components/okr-detail/auth.js +2 -2
  124. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
  125. package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
  126. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
  127. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
  128. package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
  129. package/lib/components/okr-detail/components/header/edit-name.js +4 -2
  130. package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
  131. package/lib/components/okr-detail/components/header/o-classify.js +4 -2
  132. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  133. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  134. package/lib/components/okr-detail/components/o-classify.js +4 -2
  135. package/lib/components/okr-detail/components/o-progress-update/index.js +4 -2
  136. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  137. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +4 -2
  138. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
  139. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
  140. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  141. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +4 -2
  142. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
  143. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
  144. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
  145. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
  146. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +4 -2
  147. package/lib/components/okr-detail/detail-footer/index.js +4 -2
  148. package/lib/components/okr-detail/detail-header/index.js +12 -10
  149. package/lib/components/okr-detail/okr-list/index.js +4 -2
  150. package/lib/components/okr-detail/request-apis.js +6 -2
  151. package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
  152. package/lib/components/okr-flow/child-node/work-node.js +4 -2
  153. package/lib/components/okr-flow/export-modal/index.js +4 -12
  154. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
  155. package/lib/components/okr-flow/request-apis.js +6 -2
  156. package/lib/components/okr-flow/root-node/index.js +4 -2
  157. package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
  158. package/lib/components/okr-progress-modal/index.js +4 -2
  159. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +6 -4
  160. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
  161. package/lib/components/okr-review/ReviewPop/index.js +2 -2
  162. package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
  163. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
  164. package/lib/components/okr-review/index.js +2 -2
  165. package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
  166. package/lib/components/okr-share/common-painter/openDataPainter.js +6 -2
  167. package/lib/components/okr-share/common-painter/utils.js +8 -4
  168. package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
  169. package/lib/components/okr-share/pink-card/drawKrs.js +6 -2
  170. package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
  171. package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
  172. package/lib/components/okr-share/pink-card/index.js +6 -2
  173. package/lib/components/okr-share/publishMblog.js +4 -2
  174. package/lib/components/okr-share/shareCardSelector.js +6 -4
  175. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  176. package/lib/components/okrcase-library/server/network.js +24 -20
  177. package/lib/components/open-data-painter/index.js +6 -2
  178. package/lib/components/operation-records/OperationRecordItem.js +2 -2
  179. package/lib/components/operation-records/index.js +2 -2
  180. package/lib/components/order-have-award/img/award.png +0 -0
  181. package/lib/components/order-have-award/index.css +5 -0
  182. package/lib/components/order-have-award/index.js +83 -0
  183. package/lib/components/order-have-award/interface.js +19 -0
  184. package/lib/components/pagination/pagination.js +1 -1
  185. package/lib/components/period-selector/components/button/index.js +1 -1
  186. package/lib/components/period-selector/helper/index.js +6 -2
  187. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  188. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  189. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  190. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  191. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  192. package/lib/components/picker/picker.js +1 -1
  193. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  194. package/lib/components/point-demo/input/index.js +3 -3
  195. package/lib/components/point-demo/popup/index.js +1 -1
  196. package/lib/components/popup/index.js +1 -1
  197. package/lib/components/praise-record/PraiseRecordItem.js +2 -2
  198. package/lib/components/praise-record/index.js +2 -2
  199. package/lib/components/range-picker-pop/index.js +3 -3
  200. package/lib/components/range-selector-pop/RangeList.js +2 -2
  201. package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
  202. package/lib/components/rich-editor/models/schema.js +2 -2
  203. package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
  204. package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
  205. package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
  206. package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
  207. package/lib/components/rich-editor/plugins/core/index.js +2 -2
  208. package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
  209. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
  210. package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
  211. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
  212. package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
  213. package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
  214. package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
  215. package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
  216. package/lib/components/rich-editor/react/reactNodeView.js +4 -4
  217. package/lib/components/rich-editor/react/uiProvider.js +2 -2
  218. package/lib/components/rich-editor/ui/Popup/index.js +2 -2
  219. package/lib/components/scroll-container/index.js +2 -2
  220. package/lib/components/scrollbar/index.js +1 -1
  221. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  222. package/lib/components/scrollbar/simplebar-react.js +1 -1
  223. package/lib/components/search-dropdown/index.js +1 -1
  224. package/lib/components/select/Option.js +3 -3
  225. package/lib/components/select/index.js +3 -3
  226. package/lib/components/select-layer/index.js +1 -1
  227. package/lib/components/select-tags/index.js +1 -1
  228. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
  229. package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
  230. package/lib/components/survey-model/request-api.js +6 -2
  231. package/lib/components/switch/index.js +1 -1
  232. package/lib/components/table/index.js +1 -1
  233. package/lib/components/tabs/index.js +1 -1
  234. package/lib/components/task-relation-modal/index.js +7 -5
  235. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  236. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  237. package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
  238. package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
  239. package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
  240. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  241. package/lib/components/task-relation-modal/work-relation/index.js +7 -5
  242. package/lib/components/task-tree/task-item-node/e-project.js +4 -2
  243. package/lib/components/task-tree/task-item-node/e-task.js +4 -2
  244. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  245. package/lib/components/task-tree/task-tree.js +1 -1
  246. package/lib/components/textarea/index.js +1 -1
  247. package/lib/components/time-picker/time-picker-selector.js +1 -1
  248. package/lib/components/time-picker/time-picker.js +1 -1
  249. package/lib/components/time-picker/timer-picker-input.js +1 -1
  250. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  251. package/lib/components/tita-chart/charts/pie.js +1 -1
  252. package/lib/components/tita-chart/errorBoundary/index.js +2 -2
  253. package/lib/components/toast/index.js +12 -8
  254. package/lib/components/tooltip/error-tip.js +1 -1
  255. package/lib/components/tooltip/tooltip.js +1 -1
  256. package/lib/components/tree/index.js +1 -1
  257. package/lib/components/upload/components/uploadedPreview.js +2 -2
  258. package/lib/components/upload/index.js +2 -2
  259. package/lib/components/upvote/index.js +7 -5
  260. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  261. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  262. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  263. package/lib/components/version-change-modal/index.js +6 -4
  264. package/lib/components/version-change-modal/request-api.js +6 -2
  265. package/lib/components/viewer/ImageListRender.js +2 -2
  266. package/lib/components/viewer/index.js +2 -2
  267. package/lib/components/weekly-report/card.js +4 -12
  268. package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
  269. package/lib/components/weekly-report/common-painter/drawName.js +6 -2
  270. package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
  271. package/lib/components/weekly-report/index.js +6 -4
  272. package/lib/components-v1/animate/AnimateChild.js +2 -2
  273. package/lib/components-v1/animate/animate.js +2 -2
  274. package/lib/components-v1/avatar/index.js +2 -2
  275. package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
  276. package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
  277. package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
  278. package/lib/components-v1/confirm/index.js +2 -2
  279. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
  280. package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
  281. package/lib/components-v1/input/Input.js +3 -3
  282. package/lib/components-v1/input/InputNumber.js +2 -2
  283. package/lib/components-v1/placement/placement.js +2 -2
  284. package/lib/components-v1/placement/placementInner.js +2 -2
  285. package/lib/components-v1/pop/Pop.js +2 -2
  286. package/lib/components-v1/pop/PopInner.js +2 -2
  287. package/lib/components-v1/portals/Portals.js +2 -2
  288. package/lib/components-v1/progress/CircleProgress.js +2 -2
  289. package/lib/components-v1/progress/LineProgress.js +2 -2
  290. package/lib/components-v1/progress/index.js +2 -2
  291. package/lib/components-v1/radio/radio.js +2 -2
  292. package/lib/components-v1/radio/radioGroup.js +2 -2
  293. package/lib/components-v1/search/index.js +2 -2
  294. package/lib/components-v1/select/Option.js +3 -3
  295. package/lib/components-v1/select/index.js +3 -3
  296. package/lib/components-v1/tabs/index.js +2 -2
  297. package/lib/components-v1/textarea/index.js +2 -2
  298. package/lib/components-v1/transition/index.js +2 -2
  299. package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
  300. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
  301. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
  302. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
  303. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
  304. package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
  305. package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
  306. package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
  307. package/lib/components-v1/userSelector/components/UserItem.js +2 -2
  308. package/lib/components-v1/userSelector/index.js +2 -2
  309. package/lib/pages/aha2021/index.css +7 -0
  310. package/lib/pages/aha2021/index.js +10 -4
  311. package/lib/pages/aha2021/new-menu-switcher/index.css +5 -1
  312. package/lib/pages/aha2021/new-menu-switcher/index.js +9 -5
  313. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  314. package/lib/pages/appointment-demo/input/index.js +3 -3
  315. package/lib/pages/appointment-demo/popup/index.js +1 -1
  316. package/lib/pages/group-management/components/input-form/index.js +3 -3
  317. package/lib/pages/group-management/components/radio/index.js +1 -1
  318. package/lib/pages/group-management/groupInterface.js +6 -2
  319. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  320. package/lib/pages/group-management/tree/index.js +1 -1
  321. package/lib/pages/new-okr-list/request-api.js +18 -14
  322. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +5 -3
  323. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  324. package/lib/pages/okr-map/request-apis.js +6 -2
  325. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  326. package/lib/utils/auth.js +2 -2
  327. package/lib/utils/open-data.js +6 -4
  328. package/lib/utils/request-v1.js +6 -2
  329. package/lib/utils/request.js +6 -2
  330. package/package.json +1 -1
@@ -17,7 +17,7 @@ var _excluded = ["userId", "avatar", "name", "type"];
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
 
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
22
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
23
 
@@ -15,7 +15,7 @@ var _excluded = ["num"];
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
 
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
 
20
20
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
21
 
@@ -43,7 +43,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
43
43
 
44
44
  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; }
45
45
 
46
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
46
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
47
47
 
48
48
  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; }
49
49
 
@@ -0,0 +1,54 @@
1
+ .titaui-book-demo-checkbox {
2
+ display: flex;
3
+ flex-direction: column;
4
+ word-break: keep-all;
5
+ position: relative;
6
+ }
7
+
8
+ .titaui-book-demo-checkbox--full-row {
9
+ grid-column-start: 1;
10
+ grid-column-end: 3;
11
+ }
12
+
13
+ .titaui-book-demo-checkbox__name {
14
+ font-size: 14px;
15
+ color: #89919f;
16
+ line-height: 22px;
17
+ white-space: nowrap;
18
+ }
19
+
20
+ .titaui-book-demo-checkbox__name--required::after {
21
+ content: '*';
22
+ display: inline-block;
23
+ color: #f05e5e;
24
+ }
25
+
26
+ .titaui-book-demo-checkbox__options-item {
27
+ font-size: 14px;
28
+ cursor: pointer;
29
+ margin-top: 8px;
30
+ display: inline-flex;
31
+ align-items: center;
32
+ word-break: keep-all;
33
+ white-space: nowrap;
34
+ background: #ffffff;
35
+ border-radius: 8px;
36
+ border: 1px solid #e9ecf0;
37
+ padding: 0 12px;
38
+ line-height: 22px;
39
+ box-sizing: border-box;
40
+ height: 32px;
41
+ margin-right: 10px;
42
+ user-select: none;
43
+ color: #3f4755;
44
+ }
45
+
46
+ .titaui-book-demo-checkbox__options-item:hover {
47
+ border: 1px solid #2879ff;
48
+ color: #2879ff;
49
+ }
50
+
51
+ .titaui-book-demo-checkbox__options-item--selected {
52
+ border: 1px solid #2879ff;
53
+ color: #2879ff;
54
+ }
@@ -0,0 +1,126 @@
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
+ require("./index.css");
15
+
16
+ var _errorInfo = _interopRequireDefault(require("../error-info"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ 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; }
25
+
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
+
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 preCls = "titaui-book-demo-checkbox";
43
+
44
+ var BookDemoCheckbox = function BookDemoCheckbox(_ref) {
45
+ var name = _ref.name,
46
+ id = _ref.id,
47
+ required = _ref.required,
48
+ halfWidth = _ref.halfWidth,
49
+ option = _ref.option,
50
+ multiSelect = _ref.multiSelect,
51
+ onChange = _ref.onChange;
52
+
53
+ var _useState = (0, _react.useState)(false),
54
+ _useState2 = _slicedToArray(_useState, 2),
55
+ hasErr = _useState2[0],
56
+ setHasErr = _useState2[1];
57
+
58
+ var _useState3 = (0, _react.useState)({}),
59
+ _useState4 = _slicedToArray(_useState3, 2),
60
+ result = _useState4[0],
61
+ setResult = _useState4[1];
62
+
63
+ var handleChangeInputValue = function handleChangeInputValue(selectedId) {
64
+ var tempResult;
65
+
66
+ if (!multiSelect) {
67
+ tempResult = _objectSpread({}, result);
68
+ Object.keys(result).forEach(function (key) {
69
+ tempResult[key].isSelected = false;
70
+ });
71
+ tempResult[selectedId].isSelected = true;
72
+ setHasErr(false);
73
+ setResult(tempResult);
74
+
75
+ if (onChange) {
76
+ onChange(name, id, tempResult, false);
77
+ }
78
+
79
+ return;
80
+ }
81
+
82
+ tempResult = _objectSpread({}, result);
83
+ tempResult[selectedId].isSelected = !tempResult[selectedId].isSelected;
84
+ var selectedLength = Object.values(tempResult).filter(function (item) {
85
+ return item.isSelected;
86
+ }).length;
87
+ setHasErr(required && selectedLength === 0);
88
+ setResult(tempResult);
89
+
90
+ if (onChange) {
91
+ onChange(name, id, tempResult, required && selectedLength === 0);
92
+ }
93
+ };
94
+
95
+ (0, _react.useEffect)(function () {
96
+ var tempResult = {};
97
+ option.forEach(function (item) {
98
+ tempResult[item.value] = {
99
+ text: item.text,
100
+ isSelected: false
101
+ };
102
+ });
103
+ setResult(tempResult);
104
+ }, []);
105
+ return /*#__PURE__*/_react["default"].createElement("div", {
106
+ className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "--full-row"), !halfWidth))
107
+ }, /*#__PURE__*/_react["default"].createElement("span", {
108
+ className: (0, _classnames["default"])("".concat(preCls, "__name"), _defineProperty({}, "".concat(preCls, "__name--required"), required))
109
+ }, name), /*#__PURE__*/_react["default"].createElement("div", {
110
+ className: "".concat(preCls, "__options")
111
+ }, option.map(function (item) {
112
+ var _result$item$value;
113
+
114
+ return /*#__PURE__*/_react["default"].createElement("span", {
115
+ className: (0, _classnames["default"])("".concat(preCls, "__options-item"), _defineProperty({}, "".concat(preCls, "__options-item--selected"), (_result$item$value = result[item.value]) === null || _result$item$value === void 0 ? void 0 : _result$item$value.isSelected)),
116
+ onClick: function onClick() {
117
+ handleChangeInputValue(item.value);
118
+ }
119
+ }, item.text);
120
+ })), /*#__PURE__*/_react["default"].createElement(_errorInfo["default"], {
121
+ errMsg: hasErr ? "请至少选择一项" : ""
122
+ }));
123
+ };
124
+
125
+ var _default = BookDemoCheckbox;
126
+ exports["default"] = _default;
@@ -0,0 +1,124 @@
1
+ .titaui-book-demo-pc-content {
2
+ display: flex;
3
+ background-color: #ffffff;
4
+ border-radius: 24px;
5
+ }
6
+
7
+ .titaui-book-demo-pc-content__left {
8
+ width: 358px;
9
+ height: 502px;
10
+ background: linear-gradient(135deg, #FFC04E 0%, #FF0041 100%);
11
+ border-radius: 24px 0px 0px 24px;
12
+ position: relative;
13
+ overflow: hidden;
14
+ }
15
+
16
+ .titaui-book-demo-pc-content__left__bg {
17
+ position: absolute;
18
+ left: 0;
19
+ right: 0;
20
+ bottom: 0;
21
+ top: 0;
22
+ background-image: url("../../../../img/order-award.png");
23
+ background-size: cover;
24
+ height: 100%;
25
+ }
26
+
27
+ .titaui-book-demo-pc-content__left-title {
28
+ margin: 36px 0 0 32px;
29
+ font-size: 26px;
30
+ font-weight: 600;
31
+ color: #ffffff;
32
+ line-height: 40px;
33
+ }
34
+
35
+ .titaui-book-demo-pc-content__left-desc {
36
+ margin: 4px 0 0 32px;
37
+ font-size: 14px;
38
+ color: #ffffff;
39
+ line-height: 22px;
40
+ }
41
+
42
+ .titaui-book-demo-pc-content__right {
43
+ flex: 1;
44
+ margin: 48px 0 0 32px;
45
+ }
46
+
47
+ .titaui-book-demo-pc-content__right-form {
48
+ display: grid;
49
+ grid-template-columns: 1fr 1fr;
50
+ column-gap: 12px;
51
+ row-gap: 20px;
52
+ padding-right: 22px;
53
+ }
54
+
55
+ .titaui-book-demo-pc-content__right-commit {
56
+ height: 88px;
57
+ background: #ffffff;
58
+ border-radius: 0px 0px 24px 0px;
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ flex-direction: column;
63
+ position: absolute;
64
+ bottom: 0;
65
+ }
66
+
67
+ .titaui-book-demo-pc-content__right-commit-btn {
68
+ margin-top: 12px;
69
+ width: 310px;
70
+ height: 40px;
71
+ background: #2879ff;
72
+ border: none;
73
+ outline: none;
74
+ color: #ffffff;
75
+ border-radius: 20px;
76
+ }
77
+
78
+ .titaui-book-demo-pc-content__right-commit-btn:hover {
79
+ cursor: pointer;
80
+ background: #5c8eff;
81
+ }
82
+
83
+ .titaui-book-demo-pc-content__right-commit-btn--disabled {
84
+ background: rgba(40, 121, 255, 0.4);
85
+ }
86
+
87
+ .titaui-book-demo-pc-content__right-commit-btn--disabled:hover {
88
+ background: rgba(40, 121, 255, 0.4);
89
+ cursor: not-allowed;
90
+ }
91
+
92
+ .titaui-book-demo-pc-content__right-commit--shadow::before {
93
+ content: '';
94
+ position: absolute;
95
+ width: 302px;
96
+ height: 16px;
97
+ background: #f0f2f5;
98
+ border-radius: 8px;
99
+ filter: blur(4px);
100
+ bottom: 76px;
101
+ right: 44px;
102
+ }
103
+
104
+ .titaui-book-demo-pc-content__privacy {
105
+ margin-top: 12px;
106
+ display: flex;
107
+ align-items: center;
108
+ grid-column-start: 1;
109
+ grid-column-end: 3;
110
+ font-size: 12px;
111
+ line-height: 18px;
112
+ padding-bottom: 8px;
113
+ position: relative;
114
+ }
115
+
116
+ .titaui-book-demo-pc-content__privacy-aggre {
117
+ margin-left: 4px;
118
+ color: #3f4755;
119
+ }
120
+
121
+ .titaui-book-demo-pc-content__privacy-link {
122
+ margin-left: 4px;
123
+ color: #2879ff;
124
+ }