@titaui/pc 1.15.69-beta.3 → 1.15.71

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 (366) hide show
  1. package/lib/components/avatar/icon-avatar/index.js +1 -1
  2. package/lib/components/avatar/name-avatar/index.css +2 -3
  3. package/lib/components/avatar/name-avatar/index.js +14 -24
  4. package/lib/components/avatar/num-avatar/index.js +1 -1
  5. package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
  6. package/lib/components/book-demo/constant.js +118 -0
  7. package/lib/components/book-demo/interface.js +1 -0
  8. package/lib/components/button/default-button/index.js +1 -1
  9. package/lib/components/button/icon-btn/index.css +19 -1
  10. package/lib/components/button/icon-btn/index.js +5 -3
  11. package/lib/components/button/text-btn/index.css +2 -2
  12. package/lib/components/cascader/index.js +1 -1
  13. package/lib/components/cascader/time.js +1 -1
  14. package/lib/components/change-okr-modal/Filter.js +3 -3
  15. package/lib/components/change-okr-modal/Item.js +3 -3
  16. package/lib/components/change-okr-modal/filterTab.js +3 -3
  17. package/lib/components/change-okr-modal/index.js +5 -7
  18. package/lib/components/checkbox/index.css +1 -0
  19. package/lib/components/common-share/publishMblog.js +2 -4
  20. package/lib/components/communication/CommunicationAttachments.js +3 -3
  21. package/lib/components/communication/ConvertUserName.js +3 -3
  22. package/lib/components/communication/index.js +3 -3
  23. package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
  24. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
  25. package/lib/components/create-okr-modal/index.js +2 -4
  26. package/lib/components/create-okr-modal/objectType.js +3 -3
  27. package/lib/components/create-okr-modal/request-api.js +12 -16
  28. package/lib/components/create-okr-modal/utils/helper.js +2 -6
  29. package/lib/components/date-picker/BodyItem.js +7 -7
  30. package/lib/components/date-picker/CalendarBody.js +4 -4
  31. package/lib/components/date-picker/CalendarHeader.js +7 -7
  32. package/lib/components/date-picker/index.js +3 -3
  33. package/lib/components/date-range-picker/index.js +3 -3
  34. package/lib/components/delete-confirm-pop/ConfirmPop.js +6 -6
  35. package/lib/components/dialog/index.js +1 -1
  36. package/lib/components/dialog-confirm/index.css +8 -2
  37. package/lib/components/dialog-confirm/index.js +27 -17
  38. package/lib/components/dialog-qq-docs/index.js +9 -11
  39. package/lib/components/dialog-qq-docs/utils.js +2 -6
  40. package/lib/components/dialog-select/index.js +1 -1
  41. package/lib/components/dialog-upload/index.js +2 -4
  42. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
  43. package/lib/components/dialog-upload-type/index.js +1 -1
  44. package/lib/components/drawer/headerDrop.js +1 -1
  45. package/lib/components/drawer/index.css +4 -0
  46. package/lib/components/drawer/index.js +1 -1
  47. package/lib/components/drawer-manager/drawerWrapper.js +3 -5
  48. package/lib/components/drawer-manager/index.js +1 -1
  49. package/lib/components/drop-selector/index.js +1 -1
  50. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +4 -6
  51. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
  52. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -1
  53. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +8 -21
  54. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +5 -6
  55. package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +4 -23
  56. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  57. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  58. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  59. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  62. package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
  63. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  64. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  65. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  66. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
  67. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  68. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  69. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  70. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  71. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  72. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  73. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  74. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  75. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  76. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  77. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  78. package/lib/components/dynamic/dynamic-list/index.js +1 -1
  79. package/lib/components/eReport/eReportListEmpty.js +3 -3
  80. package/lib/components/eReport/eReportLists/reportList.js +6 -6
  81. package/lib/components/eReport/eReportShare/index.js +3 -3
  82. package/lib/components/eReport/eReportShare/toast/index.js +3 -3
  83. package/lib/components/edit-kr-wight/EditKrWightModal.js +3 -3
  84. package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
  85. package/lib/components/emotions-selector/selector-content.js +3 -3
  86. package/lib/components/emotions-selector/selector-pop.js +6 -6
  87. package/lib/components/ereport-list/index.js +6 -6
  88. package/lib/components/error-boundary/index.js +3 -3
  89. package/lib/{pages/like-ranking → components}/filter-buttons/department.js +20 -6
  90. package/lib/{pages/like-ranking → components}/filter-buttons/group.js +2 -2
  91. package/lib/{pages/like-ranking → components}/filter-buttons/index.css +4 -0
  92. package/lib/components/filter-buttons/index.js +85 -0
  93. package/lib/{pages/like-ranking → components}/filter-buttons/modular.js +3 -3
  94. package/lib/components/filter-buttons/name.js +86 -0
  95. package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.css +5 -0
  96. package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.js +1 -1
  97. package/lib/{pages/like-ranking → components}/filter-buttons/timer.js +3 -3
  98. package/lib/components/firework/index.js +2 -6
  99. package/lib/components/form/form-fields/cycle/index.css +135 -0
  100. package/lib/components/form/form-fields/cycle/index.js +190 -0
  101. package/lib/components/form/form-fields/cycle/interface.js +5 -0
  102. package/lib/components/form/form-fields/cycle/utils.js +47 -0
  103. package/lib/components/form/form-fields/date/index.js +1 -1
  104. package/lib/components/form/form-fields/dropdown/index.css +9 -0
  105. package/lib/components/form/form-fields/dropdown/index.js +9 -4
  106. package/lib/components/form/form-fields/input/index.js +22 -11
  107. package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
  108. package/lib/components/form/form-fields/user/index.js +1 -1
  109. package/lib/components/form/index.js +4 -1
  110. package/lib/components/grid-layout/util/network.js +6 -10
  111. package/lib/components/guide-order/index.css +228 -0
  112. package/lib/components/guide-order/index.js +295 -0
  113. package/lib/components/guide-tip/index.js +1 -1
  114. package/lib/components/help-card/index.js +1 -1
  115. package/lib/components/import-modal/import-task-modal/index.js +1 -1
  116. package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
  117. package/lib/components/import-modal/tree-node/index.js +1 -1
  118. package/lib/components/mblog/components/ConfirmPop.js +3 -3
  119. package/lib/components/mblog/components/MblogAction.js +6 -6
  120. package/lib/components/mblog/components/MblogContent.js +3 -3
  121. package/lib/components/mblog/index.js +3 -3
  122. package/lib/components/menus/components/menu-tree/images/survey-menu/involved.svg +8 -0
  123. package/lib/components/menus/components/menu-tree/images/survey-menu/manage.svg +11 -0
  124. package/lib/components/menus/components/menu-tree/index.js +1 -1
  125. package/lib/components/menus/components/menu-tree/tree-node/index.css +56 -0
  126. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  127. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
  128. package/lib/components/menus/export-modules/summary-menus/menus.js +1 -10
  129. package/lib/components/menus/export-modules/summary-menus/request-api.js +2 -8
  130. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +7 -26
  131. package/lib/components/menus/export-modules/survey-menu/index.css +9 -0
  132. package/lib/components/menus/export-modules/survey-menu/index.js +120 -0
  133. package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +52 -0
  134. package/lib/components/menus/export-modules/survey-menu/menus.js +87 -0
  135. package/lib/components/menus/export-modules/survey-menu/request-api.js +5 -0
  136. package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +178 -0
  137. package/lib/components/menus/i18n.js +0 -1
  138. package/lib/components/menus/index.js +6 -0
  139. package/lib/components/nav-top/components/app-center/images/survey.svg +20 -0
  140. package/lib/components/nav-top/components/app-center/index.css +8 -0
  141. package/lib/components/nav-top/components/menu/index.js +2 -1
  142. package/lib/components/nav-top/components/user-message/index.js +12 -9
  143. package/lib/components/nav-top/useGlobalValue.js +4 -1
  144. package/lib/components/okr-detail/auth.js +3 -3
  145. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
  146. package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
  147. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
  148. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +3 -3
  149. package/lib/components/okr-detail/components/base-okr-type/object-type.js +3 -3
  150. package/lib/components/okr-detail/components/header/edit-name.js +2 -4
  151. package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
  152. package/lib/components/okr-detail/components/header/o-classify.js +2 -4
  153. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  154. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  155. package/lib/components/okr-detail/components/o-classify.js +2 -4
  156. package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
  157. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  158. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
  159. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
  160. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
  161. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  162. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
  163. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +6 -6
  164. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +4 -4
  165. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
  166. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
  167. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
  168. package/lib/components/okr-detail/detail-footer/index.js +2 -4
  169. package/lib/components/okr-detail/detail-header/index.js +10 -12
  170. package/lib/components/okr-detail/okr-list/index.js +2 -4
  171. package/lib/components/okr-detail/request-apis.js +2 -6
  172. package/lib/components/okr-excel/renders.js +4 -8
  173. package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
  174. package/lib/components/okr-flow/child-node/work-node.js +2 -4
  175. package/lib/components/okr-flow/export-modal/index.js +43 -6
  176. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
  177. package/lib/components/okr-flow/request-apis.js +2 -6
  178. package/lib/components/okr-flow/root-node/index.js +2 -4
  179. package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
  180. package/lib/components/okr-progress-modal/index.js +2 -4
  181. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -7
  182. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
  183. package/lib/components/okr-review/ReviewPop/index.js +3 -3
  184. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  185. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +6 -6
  186. package/lib/components/okr-review/index.js +3 -3
  187. package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
  188. package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
  189. package/lib/components/okr-share/common-painter/utils.js +4 -8
  190. package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
  191. package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
  192. package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
  193. package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
  194. package/lib/components/okr-share/pink-card/index.js +2 -6
  195. package/lib/components/okr-share/publishMblog.js +2 -4
  196. package/lib/components/okr-share/shareCardSelector.js +4 -6
  197. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  198. package/lib/components/okrcase-library/server/network.js +20 -24
  199. package/lib/components/open-data-painter/index.js +2 -6
  200. package/lib/components/operation-records/OperationRecordItem.js +3 -3
  201. package/lib/components/operation-records/index.js +11 -59
  202. package/lib/components/pagination/index.css +5 -0
  203. package/lib/components/pagination/pagination.js +9 -9
  204. package/lib/components/pagination/select.css +0 -1
  205. package/lib/components/period-selector/components/button/index.js +1 -1
  206. package/lib/components/period-selector/helper/index.js +2 -6
  207. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  208. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  209. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  210. package/lib/components/picker/components/panels/week-panel/index.js +1 -1
  211. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  212. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  213. package/lib/components/picker/picker.js +1 -1
  214. package/lib/components/picker/range-picker/index.js +1 -1
  215. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  216. package/lib/components/point-demo/input/index.js +4 -4
  217. package/lib/components/point-demo/popup/index.js +1 -1
  218. package/lib/components/popup/index.js +1 -1
  219. package/lib/components/popup-select/index.js +1 -1
  220. package/lib/components/praise-record/PraiseRecordItem.js +3 -3
  221. package/lib/components/praise-record/index.js +3 -3
  222. package/lib/components/promise-confirm/index.js +2 -5
  223. package/lib/components/radio/index.css +4 -0
  224. package/lib/components/radio/radio.js +11 -4
  225. package/lib/components/range-picker-pop/index.js +4 -4
  226. package/lib/components/range-selector-pop/RangeList.js +3 -3
  227. package/lib/components/range-selector-pop/RangeSelectorPop.js +6 -6
  228. package/lib/components/rate/index.js +1 -1
  229. package/lib/components/rich-editor/models/schema.js +9 -9
  230. package/lib/components/rich-editor/plugins/block/block-quote/index.js +11 -11
  231. package/lib/components/rich-editor/plugins/block/heading/index.js +11 -11
  232. package/lib/components/rich-editor/plugins/block/lists/index.js +17 -17
  233. package/lib/components/rich-editor/plugins/block/paragraph/index.js +8 -8
  234. package/lib/components/rich-editor/plugins/core/index.js +7 -7
  235. package/lib/components/rich-editor/plugins/extension/alignment/index.js +8 -8
  236. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +7 -7
  237. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  238. package/lib/components/rich-editor/plugins/inline/color/index.js +14 -14
  239. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +11 -11
  240. package/lib/components/rich-editor/plugins/inline/em/index.js +8 -8
  241. package/lib/components/rich-editor/plugins/inline/link/index.js +11 -11
  242. package/lib/components/rich-editor/plugins/inline/strong/index.js +11 -11
  243. package/lib/components/rich-editor/plugins/inline/under-line/index.js +11 -11
  244. package/lib/components/rich-editor/react/reactNodeView.js +5 -5
  245. package/lib/components/rich-editor/react/uiProvider.js +6 -6
  246. package/lib/components/rich-editor/ui/Popup/index.js +6 -6
  247. package/lib/components/scroll-container/index.js +3 -3
  248. package/lib/components/scrollbar/index.js +1 -1
  249. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  250. package/lib/components/scrollbar/simplebar-react.js +1 -1
  251. package/lib/components/search-dropdown/index.js +1 -1
  252. package/lib/components/select/Option.js +7 -7
  253. package/lib/components/select/index.js +4 -4
  254. package/lib/components/select-layer/index.js +1 -1
  255. package/lib/components/select-tags/index.js +1 -1
  256. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
  257. package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
  258. package/lib/components/survey-model/request-api.js +2 -6
  259. package/lib/components/switch/index.js +1 -1
  260. package/lib/components/table/index.css +5 -10
  261. package/lib/components/table/index.js +55 -19
  262. package/lib/components/tabs/index.css +20 -0
  263. package/lib/components/tabs/index.js +5 -2
  264. package/lib/{pages/like-ranking/filter-buttons/name.js → components/tabs/tabBtns.js} +30 -36
  265. package/lib/components/tag/index.js +1 -1
  266. package/lib/components/task-relation-modal/index.js +5 -7
  267. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  268. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  269. package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
  270. package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
  271. package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
  272. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  273. package/lib/components/task-relation-modal/work-relation/index.js +5 -7
  274. package/lib/components/task-tree/task-item-node/e-project.js +2 -4
  275. package/lib/components/task-tree/task-item-node/e-task.js +2 -4
  276. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  277. package/lib/components/task-tree/task-tree.js +1 -1
  278. package/lib/components/textarea/index.js +1 -1
  279. package/lib/components/time-picker/time-picker-selector.js +1 -1
  280. package/lib/components/time-picker/time-picker.js +1 -1
  281. package/lib/components/time-picker/timer-picker-input.js +1 -1
  282. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  283. package/lib/components/tita-chart/charts/pie.js +1 -1
  284. package/lib/components/tita-chart/errorBoundary/index.js +6 -6
  285. package/lib/components/toast/index.js +8 -12
  286. package/lib/components/tooltip/error-tip.js +1 -1
  287. package/lib/components/tooltip/tooltip-text/index.js +2 -1
  288. package/lib/components/tooltip/tooltip.js +1 -1
  289. package/lib/components/tree/index.js +1 -1
  290. package/lib/components/upload/components/uploadedPreview.js +3 -3
  291. package/lib/components/upload/index.js +5 -7
  292. package/lib/components/upload/index2.js +2 -4
  293. package/lib/components/upvote/index.js +5 -7
  294. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  295. package/lib/components/user-selector/request-apis.js +8 -3
  296. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  297. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  298. package/lib/components/version-change-modal/index.js +4 -6
  299. package/lib/components/version-change-modal/request-api.js +2 -6
  300. package/lib/components/viewer/ImageListRender.js +3 -3
  301. package/lib/components/viewer/index.js +3 -3
  302. package/lib/components/weekly-report/card.js +12 -4
  303. package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
  304. package/lib/components/weekly-report/common-painter/drawName.js +2 -6
  305. package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
  306. package/lib/components/weekly-report/index.js +4 -6
  307. package/lib/components-v1/animate/AnimateChild.js +6 -6
  308. package/lib/components-v1/animate/animate.js +3 -3
  309. package/lib/components-v1/avatar/index.js +6 -6
  310. package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
  311. package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
  312. package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
  313. package/lib/components-v1/confirm/index.js +3 -3
  314. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +6 -6
  315. package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
  316. package/lib/components-v1/input/Input.js +4 -4
  317. package/lib/components-v1/input/InputNumber.js +3 -3
  318. package/lib/components-v1/placement/placement.js +3 -3
  319. package/lib/components-v1/placement/placementInner.js +3 -3
  320. package/lib/components-v1/pop/Pop.js +3 -3
  321. package/lib/components-v1/pop/PopInner.js +3 -3
  322. package/lib/components-v1/portals/Portals.js +3 -3
  323. package/lib/components-v1/progress/CircleProgress.js +6 -6
  324. package/lib/components-v1/progress/LineProgress.js +3 -3
  325. package/lib/components-v1/progress/index.js +3 -3
  326. package/lib/components-v1/radio/radio.js +3 -3
  327. package/lib/components-v1/radio/radioGroup.js +3 -3
  328. package/lib/components-v1/search/index.js +3 -3
  329. package/lib/components-v1/select/Option.js +7 -7
  330. package/lib/components-v1/select/index.js +4 -4
  331. package/lib/components-v1/tabs/index.js +3 -3
  332. package/lib/components-v1/textarea/index.js +3 -3
  333. package/lib/components-v1/transition/index.js +3 -3
  334. package/lib/components-v1/userSelector/UserSelectorPop.js +6 -6
  335. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +3 -3
  336. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +3 -3
  337. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
  338. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
  339. package/lib/components-v1/userSelector/components/MultiMode/index.js +6 -6
  340. package/lib/components-v1/userSelector/components/SearchBar.js +3 -3
  341. package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
  342. package/lib/components-v1/userSelector/components/UserItem.js +6 -6
  343. package/lib/components-v1/userSelector/index.js +3 -3
  344. package/lib/index.js +32 -0
  345. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  346. package/lib/pages/appointment-demo/input/index.js +4 -4
  347. package/lib/pages/appointment-demo/popup/index.js +1 -1
  348. package/lib/pages/group-management/components/input-form/index.js +4 -4
  349. package/lib/pages/group-management/components/radio/index.js +1 -1
  350. package/lib/pages/group-management/components/table/index.js +2 -2
  351. package/lib/pages/group-management/groupInterface.js +2 -6
  352. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  353. package/lib/pages/group-management/tree/index.js +1 -1
  354. package/lib/pages/like-ranking/index.js +1 -1
  355. package/lib/pages/new-okr-list/request-api.js +14 -18
  356. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
  357. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  358. package/lib/pages/okr-map/request-apis.js +2 -6
  359. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  360. package/lib/utils/auth.js +8 -3
  361. package/lib/utils/helpers.js +2 -6
  362. package/lib/utils/open-data.js +4 -6
  363. package/lib/utils/request-v1.js +2 -6
  364. package/lib/utils/request.js +2 -6
  365. package/package.json +4 -4
  366. package/lib/pages/like-ranking/filter-buttons/index.js +0 -36
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -13,8 +11,6 @@ var _requestV = require("../../../utils/request-v1");
13
11
 
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
13
 
16
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
17
-
18
14
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
19
15
 
20
16
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -40,9 +36,9 @@ var queryParams = function queryParams() {
40
36
  exports.queryParams = queryParams;
41
37
 
42
38
  var _default = /*#__PURE__*/function () {
43
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ComponentId) {
39
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(ComponentId) {
44
40
  var componentUrl, res;
45
- return _regeneratorRuntime().wrap(function _callee$(_context) {
41
+ return regeneratorRuntime.wrap(function _callee$(_context) {
46
42
  while (1) {
47
43
  switch (_context.prev = _context.next) {
48
44
  case 0:
@@ -87,12 +83,12 @@ var _default = /*#__PURE__*/function () {
87
83
  exports["default"] = _default;
88
84
 
89
85
  var getEssay = /*#__PURE__*/function () {
90
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
86
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
91
87
  var typeId,
92
88
  EssayUrl,
93
89
  res,
94
90
  _args2 = arguments;
95
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
91
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
96
92
  while (1) {
97
93
  switch (_context2.prev = _context2.next) {
98
94
  case 0:
@@ -125,9 +121,9 @@ var getEssay = /*#__PURE__*/function () {
125
121
  exports.getEssay = getEssay;
126
122
 
127
123
  var getIsCompanyOKREmpty = /*#__PURE__*/function () {
128
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
124
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
129
125
  var OKREmptyUrl, res;
130
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
126
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
131
127
  while (1) {
132
128
  switch (_context3.prev = _context3.next) {
133
129
  case 0:
@@ -0,0 +1,228 @@
1
+ .titaui-pc__guide-order {
2
+ position: relative;
3
+ }
4
+
5
+ .titaui-pc__guide-order__mask {
6
+ position: fixed;
7
+ left: 0px !important;
8
+ top: 0px !important;
9
+ right: 0px !important;
10
+ bottom: 0px;
11
+ z-index: -10 !important;
12
+ background-color: rgba(114, 117, 124, 0);
13
+ }
14
+
15
+ .titaui-pc__guide-order__border-mask {
16
+ width: 200px;
17
+ height: 80px;
18
+ color: #FFF;
19
+ line-height: 1.5;
20
+ background: #5b8b7b;
21
+ margin: 100px 0 0 100px;
22
+ }
23
+
24
+ .titaui-pc__guide-order__popup__content {
25
+ position: relative;
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-content: center;
29
+ align-items: flex-start;
30
+ background: #5c8eff;
31
+ box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.3);
32
+ border: 1px solid #ffffff;
33
+ padding: 16px 20px;
34
+ box-sizing: border-box;
35
+ border-radius: 12px;
36
+ z-index: 10;
37
+ }
38
+
39
+ .titaui-pc__guide-order__popup__content--button {
40
+ flex-direction: column;
41
+ align-items: flex-start;
42
+ margin-top: 8px;
43
+ }
44
+
45
+ .titaui-pc__guide-order__popup__content-close-icon {
46
+ font-size: 12px;
47
+ color: #fff;
48
+ margin-left: 10px;
49
+ cursor: pointer;
50
+ }
51
+
52
+ .titaui-pc__guide-order__popup__content__title {
53
+ font-size: 14px;
54
+ font-weight: 500;
55
+ color: #FFFFFF;
56
+ line-height: 22px;
57
+ }
58
+
59
+ .titaui-pc__guide-order__popup__content__desc {
60
+ font-size: 12px;
61
+ font-weight: 400;
62
+ color: #FFFFFF;
63
+ line-height: 17px;
64
+ margin-top: 10px;
65
+ }
66
+
67
+ .titaui-pc__guide-order__popup__content__bottom {
68
+ width: 100%;
69
+ display: flex;
70
+ flex-direction: row;
71
+ justify-content: space-between;
72
+ align-items: center;
73
+ position: absolute;
74
+ bottom: 16px;
75
+ left: 0;
76
+ padding: 0 20px;
77
+ box-sizing: border-box;
78
+ }
79
+
80
+ .titaui-pc__guide-order__popup__content__bottom__step {
81
+ font-size: 12px;
82
+ font-weight: 400;
83
+ color: #FFFFFF;
84
+ line-height: 17px;
85
+ }
86
+
87
+ .titaui-pc__guide-order__popup__content__main {
88
+ position: absolute;
89
+ left: 50%;
90
+ transform: translateX(-50%);
91
+ bottom: -33px;
92
+ }
93
+
94
+ .titaui-pc__guide-order__popup__content__border-mask__inner {
95
+ position: absolute;
96
+ box-sizing: border-box;
97
+ outline: rgba(0, 0, 0, 0.5) 1000000px solid;
98
+ display: flex;
99
+ justify-content: center;
100
+ align-items: center;
101
+ pointer-events: none;
102
+ }
103
+
104
+ .titaui-pc__guide-order__popup__content-triangle {
105
+ position: absolute;
106
+ bottom: -5px;
107
+ left: 50%;
108
+ margin-left: -4px;
109
+ width: 0;
110
+ height: 0;
111
+ border-left: 5px solid transparent;
112
+ border-right: 5px solid transparent;
113
+ border-top: 5px solid #fff;
114
+ }
115
+
116
+ .titaui-pc__guide-order__popup__content-triangle::after {
117
+ content: '';
118
+ width: 0;
119
+ height: 0;
120
+ position: absolute;
121
+ left: -4px;
122
+ bottom: 1px;
123
+ border-left: solid 4px transparent;
124
+ border-right: solid 4px transparent;
125
+ border-top: solid 4px #5c8eff;
126
+ z-index: 99;
127
+ }
128
+
129
+ .titaui-pc__guide-order__popup__content-triangle--bottom {
130
+ top: -5px;
131
+ transform: rotate(180deg);
132
+ }
133
+
134
+ .titaui-pc__guide-order__popup__content-triangle--left {
135
+ top: 50%;
136
+ margin-top: -4px;
137
+ left: 100.5%;
138
+ transform: rotate(-90deg);
139
+ }
140
+
141
+ .titaui-pc__guide-order__popup__content-triangle--right {
142
+ left: -4px;
143
+ top: 50%;
144
+ margin-top: -4px;
145
+ transform: rotate(90deg);
146
+ }
147
+
148
+ .titaui-pc__guide-order__popup__content-triangle--bottomLeft {
149
+ top: -5px;
150
+ left: 230px;
151
+ transform: rotate(180deg);
152
+ }
153
+
154
+ .titaui-pc__guide-order__popup__content-point {
155
+ position: absolute;
156
+ width: 19px;
157
+ height: 19px;
158
+ border-radius: 50%;
159
+ }
160
+
161
+ .titaui-pc__guide-order__popup__content-point::before {
162
+ content: '';
163
+ position: absolute;
164
+ width: 19px;
165
+ height: 19px;
166
+ background: rgba(240, 163, 40, 0.2);
167
+ border-radius: 50%;
168
+ animation-name: point;
169
+ animation-duration: 1s;
170
+ animation-iteration-count: 500;
171
+ }
172
+
173
+ .titaui-pc__guide-order__popup__content-point::after {
174
+ content: '';
175
+ width: 9px;
176
+ height: 9px;
177
+ background: #F0A328;
178
+ opacity: 0.82;
179
+ position: absolute;
180
+ left: 5px;
181
+ top: 5px;
182
+ border-radius: 50%;
183
+ z-index: 99;
184
+ }
185
+
186
+ .titaui-pc__guide-order__popup__content-point--bottom {
187
+ top: -26px;
188
+ transform: translateX(-50%);
189
+ }
190
+
191
+ .titaui-pc__guide-order__popup__content-point--left {
192
+ top: 50%;
193
+ transform: translateY(-50%);
194
+ right: -26px;
195
+ }
196
+
197
+ .titaui-pc__guide-order__popup__content-point--right {
198
+ left: -26px;
199
+ top: 50%;
200
+ transform: translateY(-50%);
201
+ }
202
+
203
+ .titaui-pc__guide-order__popup__content-point--top {
204
+ left: 50%;
205
+ transform: translateX(-50%);
206
+ bottom: -26px;
207
+ }
208
+
209
+ .titaui-pc__guide-order__popup__content-point--bottom {
210
+ left: 50%;
211
+ transform: translateX(-50%);
212
+ top: -26px;
213
+ }
214
+
215
+ .titaui-pc__guide-order__popup__content-point--bottomLeft {
216
+ top: -26px;
217
+ left: 222px;
218
+ }
219
+
220
+ @keyframes point {
221
+ from {
222
+ transform: scale(0.3);
223
+ }
224
+
225
+ to {
226
+ transform: scale(1);
227
+ }
228
+ }
@@ -0,0 +1,295 @@
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 _button = _interopRequireDefault(require("../button"));
17
+
18
+ require("./index.css");
19
+
20
+ var _excluded = ["type", "width", "height", "time", "children", "popupPlacement", "classnames", "title", "desc", "step", "total", "mask", "onClickClose", "buttonTitle", "visible", "innerBorderRadius", "displayType", "handleGoNextStep", "background", "innerStyle"];
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 _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); }
29
+
30
+ 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; }
31
+
32
+ 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; }
33
+
34
+ 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; }
35
+
36
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
+
38
+ 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."); }
39
+
40
+ 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); }
41
+
42
+ 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; }
43
+
44
+ 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; }
45
+
46
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
+
48
+ 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; }
49
+
50
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
51
+
52
+ var preCls = 'titaui-pc__guide-order';
53
+ var GuideOrder = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
54
+ var _props$type = props.type,
55
+ type = _props$type === void 0 ? 'button' : _props$type,
56
+ _props$width = props.width,
57
+ width = _props$width === void 0 ? 280 : _props$width,
58
+ _props$height = props.height,
59
+ height = _props$height === void 0 ? 124 : _props$height,
60
+ _props$time = props.time,
61
+ time = _props$time === void 0 ? 3000 : _props$time,
62
+ children = props.children,
63
+ _props$popupPlacement = props.popupPlacement,
64
+ popupPlacement = _props$popupPlacement === void 0 ? 'top' : _props$popupPlacement,
65
+ _props$classnames = props.classnames,
66
+ classnames = _props$classnames === void 0 ? "".concat(preCls, "__popup") : _props$classnames,
67
+ _props$title = props.title,
68
+ title = _props$title === void 0 ? '标题' : _props$title,
69
+ _props$desc = props.desc,
70
+ desc = _props$desc === void 0 ? '描述' : _props$desc,
71
+ _props$step = props.step,
72
+ step = _props$step === void 0 ? '1' : _props$step,
73
+ _props$total = props.total,
74
+ total = _props$total === void 0 ? '5' : _props$total,
75
+ _props$mask = props.mask,
76
+ mask = _props$mask === void 0 ? true : _props$mask,
77
+ _props$onClickClose = props.onClickClose,
78
+ onClickClose = _props$onClickClose === void 0 ? function () {} : _props$onClickClose,
79
+ _props$buttonTitle = props.buttonTitle,
80
+ buttonTitle = _props$buttonTitle === void 0 ? '下一步' : _props$buttonTitle,
81
+ _props$visible = props.visible,
82
+ visible = _props$visible === void 0 ? false : _props$visible,
83
+ _props$innerBorderRad = props.innerBorderRadius,
84
+ innerBorderRadius = _props$innerBorderRad === void 0 ? '16px' : _props$innerBorderRad,
85
+ _props$displayType = props.displayType,
86
+ displayType = _props$displayType === void 0 ? 'inline-block' : _props$displayType,
87
+ _props$handleGoNextSt = props.handleGoNextStep,
88
+ handleGoNextStep = _props$handleGoNextSt === void 0 ? function () {} : _props$handleGoNextSt,
89
+ background = props.background,
90
+ innerStyle = props.innerStyle,
91
+ restProps = _objectWithoutProperties(props, _excluded);
92
+
93
+ var popupRef = (0, _react.useRef)({
94
+ open: function open() {},
95
+ close: function close() {}
96
+ });
97
+
98
+ var _useState = (0, _react.useState)(props.innerWidth || 0),
99
+ _useState2 = _slicedToArray(_useState, 2),
100
+ innerWidth = _useState2[0],
101
+ setInnerWidth = _useState2[1];
102
+
103
+ var _useState3 = (0, _react.useState)(props.innerHeight || 0),
104
+ _useState4 = _slicedToArray(_useState3, 2),
105
+ innerHeight = _useState4[0],
106
+ setInnerHeight = _useState4[1];
107
+
108
+ var node = (0, _react.useRef)(null);
109
+
110
+ var goNextStep = function goNextStep() {
111
+ popupRef.current.close();
112
+ console.log(popupRef);
113
+ handleGoNextStep && handleGoNextStep();
114
+ };
115
+
116
+ var popupAlignMap = {
117
+ bottom: {
118
+ offset: [0, 30],
119
+ overflow: {
120
+ adjustX: true,
121
+ adjustY: true
122
+ },
123
+ targetOffset: [0, 0]
124
+ },
125
+ top: {
126
+ offset: [0, -30],
127
+ overflow: {
128
+ adjustX: true,
129
+ adjustY: true
130
+ },
131
+ targetOffset: [0, 0]
132
+ },
133
+ bottomLeft: {
134
+ offset: [0, 30],
135
+ overflow: {
136
+ adjustX: true,
137
+ adjustY: true
138
+ },
139
+ targetOffset: [0, 0]
140
+ },
141
+ right: {
142
+ offset: [30, 0],
143
+ overflow: {
144
+ adjustX: true,
145
+ adjustY: true
146
+ },
147
+ targetOffset: [0, 0]
148
+ },
149
+ left: {
150
+ offset: [-30, 0],
151
+ overflow: {
152
+ adjustX: true,
153
+ adjustY: true
154
+ },
155
+ targetOffset: [0, 0]
156
+ }
157
+ };
158
+ var placementMap = {
159
+ top: _objectSpread({
160
+ width: innerWidth + 'px',
161
+ height: innerHeight + 'px',
162
+ bottom: "-".concat(innerHeight + 30, "px"),
163
+ left: "50%",
164
+ transform: "translateX(-50%)",
165
+ borderRadius: innerBorderRadius,
166
+ background: background
167
+ }, innerStyle),
168
+ bottom: _objectSpread({
169
+ width: innerWidth + 'px',
170
+ height: innerHeight + 'px',
171
+ top: "-".concat(innerHeight + 28, "px"),
172
+ left: "50%",
173
+ transform: "translateX(-50%)",
174
+ borderRadius: innerBorderRadius,
175
+ background: background
176
+ }, innerStyle),
177
+ left: _objectSpread({
178
+ width: innerWidth + 'px',
179
+ height: innerHeight + 'px',
180
+ right: "-".concat(innerWidth + 30, "px"),
181
+ top: '50%',
182
+ transform: "translateY(-50%)",
183
+ borderRadius: innerBorderRadius,
184
+ background: background
185
+ }, innerStyle),
186
+ right: _objectSpread({
187
+ width: innerWidth + 'px',
188
+ height: innerHeight + 'px',
189
+ top: "50%",
190
+ left: "-".concat(innerWidth + 30, "px"),
191
+ transform: "translateY(-50%)",
192
+ borderRadius: innerBorderRadius,
193
+ background: background
194
+ }, innerStyle),
195
+ bottomLeft: _objectSpread({
196
+ width: innerWidth + 'px',
197
+ height: innerHeight + 'px',
198
+ top: "-".concat(innerHeight + 30, "px"),
199
+ right: 0,
200
+ borderRadius: innerBorderRadius,
201
+ background: background
202
+ }, innerStyle)
203
+ };
204
+
205
+ var renderPopupContent = function renderPopupContent() {
206
+ return /*#__PURE__*/_react["default"].createElement("div", {
207
+ className: (0, _classnames["default"])("".concat(preCls, "__popup")),
208
+ onClick: function onClick(e) {
209
+ e.stopPropagation();
210
+ }
211
+ }, /*#__PURE__*/_react["default"].createElement("div", {
212
+ className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__mask"), mask))
213
+ }, /*#__PURE__*/_react["default"].createElement("div", {
214
+ style: {
215
+ position: 'absolute',
216
+ cursor: 'not-allowed',
217
+ pointerEvents: 'none'
218
+ }
219
+ })), /*#__PURE__*/_react["default"].createElement("div", {
220
+ className: "".concat(preCls, "__popup__content"),
221
+ style: {
222
+ width: "".concat(width, "px"),
223
+ height: "".concat(height, "px")
224
+ }
225
+ }, /*#__PURE__*/_react["default"].createElement("div", {
226
+ className: "".concat(preCls, "__popup__content__title")
227
+ }, title), /*#__PURE__*/_react["default"].createElement("div", {
228
+ className: "".concat(preCls, "__popup__content__desc")
229
+ }, desc), /*#__PURE__*/_react["default"].createElement("div", {
230
+ className: "".concat(preCls, "__popup__content__bottom")
231
+ }, /*#__PURE__*/_react["default"].createElement("div", {
232
+ className: "".concat(preCls, "__popup__content__bottom__step")
233
+ }, "".concat(step, "/").concat(total)), /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
234
+ text: buttonTitle,
235
+ size: "small",
236
+ onClick: goNextStep,
237
+ style: {
238
+ border: '0px'
239
+ }
240
+ })), /*#__PURE__*/_react["default"].createElement("div", {
241
+ className: (0, _classnames["default"])("".concat(preCls, "__popup__content-triangle"), "".concat(preCls, "__popup__content-triangle--").concat(popupPlacement))
242
+ }), /*#__PURE__*/_react["default"].createElement("div", {
243
+ className: (0, _classnames["default"])("".concat(preCls, "__popup__content-point"), "".concat(preCls, "__popup__content-point--").concat(popupPlacement))
244
+ })), /*#__PURE__*/_react["default"].createElement("div", {
245
+ className: "".concat(preCls, "__popup__content__border-mask__inner "),
246
+ style: placementMap[popupPlacement]
247
+ }, children));
248
+ };
249
+
250
+ (0, _react.useImperativeHandle)(ref, function () {
251
+ return {
252
+ showGuideTip: function showGuideTip() {
253
+ return popupRef.current.open();
254
+ },
255
+ hideGuideTip: function hideGuideTip() {
256
+ return popupRef.current.close();
257
+ }
258
+ };
259
+ });
260
+ (0, _react.useEffect)(function () {
261
+ !innerWidth && !innerHeight && handlerResize();
262
+
263
+ function handlerResize() {
264
+ var nodeRect = node.current.getBoundingClientRect();
265
+ var width = nodeRect.width,
266
+ height = nodeRect.height;
267
+ setInnerWidth(width);
268
+ setInnerHeight(height);
269
+ }
270
+
271
+ !innerWidth && !innerHeight && window.addEventListener('resize', handlerResize);
272
+ return function () {
273
+ window.removeEventListener('resize', handlerResize);
274
+ };
275
+ }, []);
276
+ return /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({
277
+ ref: popupRef,
278
+ action: ['focus'],
279
+ mask: false,
280
+ maskClosable: true,
281
+ popupPlacement: popupPlacement,
282
+ popup: renderPopupContent(),
283
+ popupVisible: visible,
284
+ visible: true,
285
+ popupAlign: popupAlignMap[popupPlacement]
286
+ }, restProps), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
287
+ ref: node,
288
+ className: classnames,
289
+ style: {
290
+ display: displayType
291
+ }
292
+ }, children)));
293
+ });
294
+ var _default = GuideOrder;
295
+ exports["default"] = _default;
@@ -27,7 +27,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  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; }
29
29
 
30
- 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); }
30
+ 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); }
31
31
 
32
32
  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; }
33
33
 
@@ -67,7 +67,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
67
67
 
68
68
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
69
69
 
70
- 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); }
70
+ 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); }
71
71
 
72
72
  var preCls = "help-card";
73
73
  var isTry = (0, _bsGlobal.getVersion)() === 1;
@@ -37,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
37
37
 
38
38
  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; }
39
39
 
40
- 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); }
40
+ 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); }
41
41
 
42
42
  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; }
43
43