@titaui/pc 1.15.34 → 1.15.35

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 (326) 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/button/default-button/index.js +1 -1
  5. package/lib/components/button/icon-btn/index.js +1 -1
  6. package/lib/components/cascader/index.js +1 -1
  7. package/lib/components/cascader/time.js +1 -1
  8. package/lib/components/change-okr-modal/Filter.js +2 -2
  9. package/lib/components/change-okr-modal/Item.js +2 -2
  10. package/lib/components/change-okr-modal/filterTab.js +2 -2
  11. package/lib/components/change-okr-modal/index.js +4 -6
  12. package/lib/components/common-share/publishMblog.js +2 -4
  13. package/lib/components/communication/CommunicationAttachments.js +2 -2
  14. package/lib/components/communication/ConvertUserName.js +2 -2
  15. package/lib/components/communication/index.js +2 -2
  16. package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
  17. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
  18. package/lib/components/create-okr-modal/index.js +2 -4
  19. package/lib/components/create-okr-modal/objectType.js +2 -2
  20. package/lib/components/create-okr-modal/request-api.js +12 -16
  21. package/lib/components/create-okr-modal/utils/helper.js +2 -6
  22. package/lib/components/date-picker/BodyItem.js +3 -3
  23. package/lib/components/date-picker/CalendarBody.js +3 -3
  24. package/lib/components/date-picker/CalendarHeader.js +3 -3
  25. package/lib/components/date-picker/index.js +2 -2
  26. package/lib/components/date-range-picker/index.js +2 -2
  27. package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
  28. package/lib/components/dialog/index.js +1 -1
  29. package/lib/components/dialog-confirm/index.js +1 -1
  30. package/lib/components/dialog-qq-docs/index.js +9 -11
  31. package/lib/components/dialog-qq-docs/utils.js +2 -6
  32. package/lib/components/dialog-select/index.js +1 -1
  33. package/lib/components/dialog-upload/index.js +2 -4
  34. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
  35. package/lib/components/dialog-upload-type/index.js +1 -1
  36. package/lib/components/drawer/headerDrop.js +1 -1
  37. package/lib/components/drawer/index.js +1 -1
  38. package/lib/components/drawer-manager/drawerWrapper.js +3 -5
  39. package/lib/components/drawer-manager/index.js +1 -1
  40. package/lib/components/drop-selector/index.js +1 -1
  41. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
  42. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +4 -6
  43. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  44. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  45. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  46. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  47. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  48. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  49. package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
  50. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  53. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
  54. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  55. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  56. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  57. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  58. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  59. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  62. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  63. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  64. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  65. package/lib/components/dynamic/dynamic-list/index.js +1 -1
  66. package/lib/components/eReport/eReportListEmpty.js +2 -2
  67. package/lib/components/eReport/eReportLists/reportList.js +2 -2
  68. package/lib/components/eReport/eReportShare/index.js +2 -2
  69. package/lib/components/eReport/eReportShare/toast/index.js +2 -2
  70. package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
  71. package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
  72. package/lib/components/emotions-selector/selector-content.js +2 -2
  73. package/lib/components/emotions-selector/selector-pop.js +2 -2
  74. package/lib/components/ereport-list/index.js +2 -2
  75. package/lib/components/error-boundary/index.js +2 -2
  76. package/lib/components/expiration-reminder/img/close.png +0 -0
  77. package/lib/components/expiration-reminder/img/close.svg +16 -0
  78. package/lib/components/expiration-reminder/img/emoji.svg +16 -0
  79. package/lib/components/expiration-reminder/img/qrcode-official.png +0 -0
  80. package/lib/components/expiration-reminder/img/qrcode-trial.png +0 -0
  81. package/lib/components/expiration-reminder/img/reminder.png +0 -0
  82. package/lib/components/expiration-reminder/index.css +112 -0
  83. package/lib/components/expiration-reminder/index.js +304 -0
  84. package/lib/components/expiration-reminder/utils.js +58 -0
  85. package/lib/components/firework/index.js +2 -6
  86. package/lib/components/form/form-fields/date/index.js +1 -1
  87. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  88. package/lib/components/form/form-fields/input/index.js +1 -1
  89. package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
  90. package/lib/components/form/form-fields/user/index.js +1 -1
  91. package/lib/components/grid-layout/util/network.js +6 -10
  92. package/lib/components/guide-tip/index.js +1 -1
  93. package/lib/components/help-card/index.js +1 -1
  94. package/lib/components/import-modal/import-task-modal/index.js +1 -1
  95. package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
  96. package/lib/components/import-modal/tree-node/index.js +1 -1
  97. package/lib/components/mblog/components/ConfirmPop.js +2 -2
  98. package/lib/components/mblog/components/MblogAction.js +2 -2
  99. package/lib/components/mblog/components/MblogContent.js +2 -2
  100. package/lib/components/mblog/index.js +2 -2
  101. package/lib/components/menus/components/menu-tree/index.js +1 -1
  102. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  103. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
  104. package/lib/components/mirroring/index.css +67 -0
  105. package/lib/components/mirroring/index.js +39 -0
  106. package/lib/components/nav-top/components/app-center/images/quick.svg +30 -0
  107. package/lib/components/nav-top/components/app-center/index.css +33 -0
  108. package/lib/components/nav-top/components/app-center/index.js +130 -3
  109. package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +12 -1
  110. package/lib/components/nav-top/index.js +2 -2
  111. package/lib/components/okr-detail/auth.js +2 -2
  112. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
  113. package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
  114. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
  115. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
  116. package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
  117. package/lib/components/okr-detail/components/header/edit-name.js +2 -4
  118. package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
  119. package/lib/components/okr-detail/components/header/o-classify.js +2 -4
  120. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  121. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  122. package/lib/components/okr-detail/components/o-classify.js +2 -4
  123. package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
  124. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  125. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
  126. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
  127. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
  128. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  129. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
  130. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
  131. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
  132. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
  133. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
  134. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
  135. package/lib/components/okr-detail/detail-footer/index.js +2 -4
  136. package/lib/components/okr-detail/detail-header/index.js +10 -12
  137. package/lib/components/okr-detail/okr-list/index.js +2 -4
  138. package/lib/components/okr-detail/request-apis.js +2 -6
  139. package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
  140. package/lib/components/okr-flow/child-node/work-node.js +2 -4
  141. package/lib/components/okr-flow/export-modal/index.js +43 -6
  142. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
  143. package/lib/components/okr-flow/request-apis.js +2 -6
  144. package/lib/components/okr-flow/root-node/index.js +2 -4
  145. package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
  146. package/lib/components/okr-progress-modal/index.js +2 -4
  147. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +4 -6
  148. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
  149. package/lib/components/okr-review/ReviewPop/index.js +2 -2
  150. package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
  151. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
  152. package/lib/components/okr-review/index.js +2 -2
  153. package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
  154. package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
  155. package/lib/components/okr-share/common-painter/utils.js +4 -8
  156. package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
  157. package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
  158. package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
  159. package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
  160. package/lib/components/okr-share/pink-card/index.js +2 -6
  161. package/lib/components/okr-share/publishMblog.js +2 -4
  162. package/lib/components/okr-share/shareCardSelector.js +4 -6
  163. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  164. package/lib/components/okrcase-library/server/network.js +20 -24
  165. package/lib/components/open-data-painter/index.js +2 -6
  166. package/lib/components/operation-records/OperationRecordItem.js +2 -2
  167. package/lib/components/operation-records/index.js +2 -2
  168. package/lib/components/pagination/pagination.js +1 -1
  169. package/lib/components/period-selector/components/button/index.js +1 -1
  170. package/lib/components/period-selector/helper/index.js +2 -6
  171. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  172. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  173. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  174. package/lib/components/picker/components/panels/week-panel/index.js +1 -1
  175. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  176. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  177. package/lib/components/picker/picker.js +1 -1
  178. package/lib/components/picker/range-picker/index.js +1 -1
  179. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  180. package/lib/components/point-demo/input/index.js +3 -3
  181. package/lib/components/point-demo/popup/index.js +1 -1
  182. package/lib/components/popup/index.js +1 -1
  183. package/lib/components/praise-record/PraiseRecordItem.js +2 -2
  184. package/lib/components/praise-record/index.js +2 -2
  185. package/lib/components/quick-entrance/img/canceled.svg +15 -0
  186. package/lib/components/quick-entrance/img/drag-icon.svg +18 -0
  187. package/lib/components/quick-entrance/img/ork.svg +20 -0
  188. package/lib/components/quick-entrance/img/performance.svg +20 -0
  189. package/lib/components/quick-entrance/img/project.svg +21 -0
  190. package/lib/components/quick-entrance/index.css +172 -0
  191. package/lib/components/quick-entrance/index.js +317 -0
  192. package/lib/components/quick-entrance/render-item.js +36 -0
  193. package/lib/components/quick-entrance/request-api.js +22 -0
  194. package/lib/components/range-picker-pop/index.js +3 -3
  195. package/lib/components/range-selector-pop/RangeList.js +2 -2
  196. package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
  197. package/lib/components/rate/index.js +1 -1
  198. package/lib/components/rich-editor/models/schema.js +2 -2
  199. package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
  200. package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
  201. package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
  202. package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
  203. package/lib/components/rich-editor/plugins/core/index.js +2 -2
  204. package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
  205. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
  206. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  207. package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
  208. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
  209. package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
  210. package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
  211. package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
  212. package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
  213. package/lib/components/rich-editor/react/reactNodeView.js +4 -4
  214. package/lib/components/rich-editor/react/uiProvider.js +2 -2
  215. package/lib/components/rich-editor/ui/Popup/index.js +2 -2
  216. package/lib/components/scroll-container/index.js +2 -2
  217. package/lib/components/scrollbar/index.js +1 -1
  218. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  219. package/lib/components/scrollbar/simplebar-react.js +1 -1
  220. package/lib/components/search-dropdown/index.js +1 -1
  221. package/lib/components/select/Option.js +3 -3
  222. package/lib/components/select/index.js +3 -3
  223. package/lib/components/select-layer/index.js +1 -1
  224. package/lib/components/select-tags/index.js +1 -1
  225. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
  226. package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
  227. package/lib/components/survey-model/request-api.js +2 -6
  228. package/lib/components/switch/index.js +1 -1
  229. package/lib/components/table/index.js +1 -1
  230. package/lib/components/tabs/index.js +1 -1
  231. package/lib/components/task-relation-modal/index.js +5 -7
  232. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  233. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  234. package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
  235. package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
  236. package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
  237. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  238. package/lib/components/task-relation-modal/work-relation/index.js +5 -7
  239. package/lib/components/task-tree/task-item-node/e-project.js +2 -4
  240. package/lib/components/task-tree/task-item-node/e-task.js +2 -4
  241. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  242. package/lib/components/task-tree/task-tree.js +1 -1
  243. package/lib/components/textarea/index.js +1 -1
  244. package/lib/components/time-picker/time-picker-selector.js +1 -1
  245. package/lib/components/time-picker/time-picker.js +1 -1
  246. package/lib/components/time-picker/timer-picker-input.js +1 -1
  247. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  248. package/lib/components/tita-chart/charts/pie.js +1 -1
  249. package/lib/components/tita-chart/errorBoundary/index.js +2 -2
  250. package/lib/components/toast/index.js +8 -12
  251. package/lib/components/tooltip/error-tip.js +1 -1
  252. package/lib/components/tooltip/tooltip.js +1 -1
  253. package/lib/components/tree/index.js +1 -1
  254. package/lib/components/upload/components/uploadedPreview.js +2 -2
  255. package/lib/components/upload/index.js +4 -6
  256. package/lib/components/upload/index2.js +2 -4
  257. package/lib/components/upvote/index.js +5 -7
  258. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  259. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  260. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  261. package/lib/components/version-change-modal/index.js +4 -6
  262. package/lib/components/version-change-modal/request-api.js +2 -6
  263. package/lib/components/viewer/ImageListRender.js +2 -2
  264. package/lib/components/viewer/index.js +2 -2
  265. package/lib/components/weekly-report/card.js +12 -4
  266. package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
  267. package/lib/components/weekly-report/common-painter/drawName.js +2 -6
  268. package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
  269. package/lib/components/weekly-report/index.js +4 -6
  270. package/lib/components-v1/animate/AnimateChild.js +2 -2
  271. package/lib/components-v1/animate/animate.js +2 -2
  272. package/lib/components-v1/avatar/index.js +2 -2
  273. package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
  274. package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
  275. package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
  276. package/lib/components-v1/confirm/index.js +2 -2
  277. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
  278. package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
  279. package/lib/components-v1/input/Input.js +3 -3
  280. package/lib/components-v1/input/InputNumber.js +2 -2
  281. package/lib/components-v1/placement/placement.js +2 -2
  282. package/lib/components-v1/placement/placementInner.js +2 -2
  283. package/lib/components-v1/pop/Pop.js +2 -2
  284. package/lib/components-v1/pop/PopInner.js +2 -2
  285. package/lib/components-v1/portals/Portals.js +2 -2
  286. package/lib/components-v1/progress/CircleProgress.js +2 -2
  287. package/lib/components-v1/progress/LineProgress.js +2 -2
  288. package/lib/components-v1/progress/index.js +2 -2
  289. package/lib/components-v1/radio/radio.js +2 -2
  290. package/lib/components-v1/radio/radioGroup.js +2 -2
  291. package/lib/components-v1/search/index.js +2 -2
  292. package/lib/components-v1/select/Option.js +3 -3
  293. package/lib/components-v1/select/index.js +3 -3
  294. package/lib/components-v1/tabs/index.js +2 -2
  295. package/lib/components-v1/textarea/index.js +2 -2
  296. package/lib/components-v1/transition/index.js +2 -2
  297. package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
  298. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
  299. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
  300. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
  301. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
  302. package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
  303. package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
  304. package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
  305. package/lib/components-v1/userSelector/components/UserItem.js +2 -2
  306. package/lib/components-v1/userSelector/index.js +2 -2
  307. package/lib/index.js +8 -0
  308. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  309. package/lib/pages/appointment-demo/input/index.js +3 -3
  310. package/lib/pages/appointment-demo/popup/index.js +1 -1
  311. package/lib/pages/group-management/components/input-form/index.js +3 -3
  312. package/lib/pages/group-management/components/radio/index.js +1 -1
  313. package/lib/pages/group-management/groupInterface.js +2 -6
  314. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  315. package/lib/pages/group-management/tree/index.js +1 -1
  316. package/lib/pages/new-okr-list/request-api.js +14 -18
  317. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
  318. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  319. package/lib/pages/okr-map/request-apis.js +2 -6
  320. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  321. package/lib/utils/auth.js +2 -2
  322. package/lib/utils/helpers.js +2 -6
  323. package/lib/utils/open-data.js +4 -6
  324. package/lib/utils/request-v1.js +2 -6
  325. package/lib/utils/request.js +2 -6
  326. package/package.json +3 -1
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
25
25
 
26
26
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
30
30
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
31
 
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
35
35
 
36
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
37
 
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
39
 
40
40
  var Toast = /*#__PURE__*/function (_PureComponent) {
41
41
  _inherits(Toast, _PureComponent);
@@ -51,7 +51,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
51
51
 
52
52
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
53
53
 
54
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
54
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
55
55
 
56
56
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
57
57
 
@@ -61,7 +61,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
61
61
 
62
62
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
63
63
 
64
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
64
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
65
65
 
66
66
  function totalWeightCalculator(milepostData) {
67
67
  return milepostData.reduce(function (acc, curr) {
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
27
27
 
28
28
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
32
32
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
33
 
@@ -37,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
37
37
 
38
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
39
 
40
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
41
 
42
42
  // formitem 应该是 stateless , 验证不在这里面做, 外面控制验证, 并且动态修改验证参数
43
43
  var FormItemV2 = /*#__PURE__*/function (_Component) {
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
27
27
 
28
28
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
32
32
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
33
 
@@ -37,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
37
37
 
38
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
39
 
40
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
41
 
42
42
  var EmotionsSelector = /*#__PURE__*/function (_PureComponent) {
43
43
  _inherits(EmotionsSelector, _PureComponent);
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
30
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
40
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
45
45
  _inherits(EmotionsSelectorPop, _PureComponent);
@@ -39,7 +39,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
39
39
 
40
40
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
41
 
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
42
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
44
44
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
45
45
 
@@ -49,7 +49,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
49
49
 
50
50
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
51
 
52
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
52
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
53
 
54
54
  var EReportList = /*#__PURE__*/function (_React$Component) {
55
55
  _inherits(EReportList, _React$Component);
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
25
25
 
26
26
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
30
30
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
31
 
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
35
35
 
36
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
37
 
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
39
 
40
40
  var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
41
41
  _inherits(ErrorBoundary, _React$Component);
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>canceled</title>
4
+ <defs>
5
+ <filter color-interpolation-filters="auto" id="filter-1">
6
+ <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
7
+ </filter>
8
+ </defs>
9
+ <g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
+ <g id="canceled" transform="translate(-2.000000, -2.000000)" filter="url(#filter-1)">
11
+ <g>
12
+ <path d="M10.7368897,2.44585438 C10.9646956,2.21804854 11.3340418,2.21804854 11.5618476,2.44585438 C11.7896535,2.67366021 11.7896535,3.04300645 11.5618476,3.27081229 L11.5618476,3.27081229 L7.82,7.012 L11.5203914,10.7123106 C11.7481972,10.9401164 11.7481972,11.3094627 11.5203914,11.5372685 C11.2925856,11.7650743 10.9232393,11.7650743 10.6954335,11.5372685 L6.995,7.837 L3.31226851,11.5203914 C3.10977444,11.7228855 2.79544597,11.7453848 2.5680998,11.5878894 L2.4873106,11.5203914 C2.25950476,11.2925856 2.25950476,10.9232393 2.4873106,10.6954335 L2.4873106,10.6954335 L6.17,7.012 L2.44585438,3.2876894 C2.21804854,3.05988356 2.21804854,2.69053732 2.44585438,2.46273149 C2.67366021,2.23492565 3.04300645,2.23492565 3.27081229,2.46273149 L6.995,6.187 Z" id="形状结合" fill="#444444"></path>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="34px" height="34px" viewBox="0 0 34 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 27</title>
4
+ <g id="到期时间页面优化" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="合作客户---已过期" transform="translate(-424.000000, -362.000000)">
6
+ <g id="编组-27备份-2" transform="translate(390.000000, 167.000000)">
7
+ <g id="编组-27" transform="translate(34.000000, 195.000000)">
8
+ <rect id="矩形" fill-opacity="0" fill="#FFFFFF" x="0" y="0" width="34" height="34"></rect>
9
+ <text id="😭" font-family="AppleColorEmoji, Apple Color Emoji" font-size="28" font-weight="normal" line-spacing="28" fill="#141C28">
10
+ <tspan x="3" y="31.2419314">😭</tspan>
11
+ </text>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,112 @@
1
+ .titaui-expiration-reminder {
2
+ width: 420px;
3
+ min-height: 430px;
4
+ max-height: 466px;
5
+ margin: 0 auto;
6
+ padding-top: 195px;
7
+ border-radius: 40px;
8
+ background-color: #ffffff;
9
+ background-image: url("./img/reminder.png");
10
+ background-size: 100% 160px;
11
+ background-repeat: no-repeat;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ .titaui-expiration-reminder__close {
16
+ width: 32px;
17
+ height: 32px;
18
+ background-image: url("./img/close.png");
19
+ background-size: 100%;
20
+ background-repeat: no-repeat;
21
+ cursor: pointer;
22
+ position: absolute;
23
+ top: 0;
24
+ right: -42px;
25
+ }
26
+
27
+ .titaui-expiration-reminder__contact {
28
+ font-size: 12px;
29
+ line-height: 18px;
30
+ color: #89919F;
31
+ }
32
+
33
+ .titaui-expiration-reminder__contact-number::selection {
34
+ background-color: #2879ff;
35
+ color: #ffffff;
36
+ }
37
+
38
+ .titaui-expiration-reminder__description {
39
+ margin: 24px 0 28px;
40
+ font-size: 18px;
41
+ line-height: 36px;
42
+ color: #141C28;
43
+ text-align: center;
44
+ }
45
+
46
+ .titaui-expiration-reminder__description .titaui-text-btn {
47
+ font-size: 18px;
48
+ line-height: 36px;
49
+ }
50
+
51
+ .titaui-expiration-reminder__footer {
52
+ text-align: center;
53
+ }
54
+
55
+ .titaui-expiration-reminder__footer .titaui-rect-btn {
56
+ width: 356px;
57
+ height: 52px;
58
+ margin: 0 auto 10px;
59
+ font-size: 18px;
60
+ line-height: 24px;
61
+ border-radius: 26px;
62
+ }
63
+
64
+ .titaui-expiration-reminder__qrcode {
65
+ padding-top: 74px;
66
+ background-image: none;
67
+ text-align: center;
68
+ position: relative;
69
+ }
70
+
71
+ .titaui-expiration-reminder__qrcode-title {
72
+ font-size: 26px;
73
+ font-weight: 600;
74
+ line-height: 40px;
75
+ color: #141C28;
76
+ }
77
+
78
+ .titaui-expiration-reminder__qrcode-subtitle {
79
+ margin-top: 8px;
80
+ font-size: 18px;
81
+ line-height: 24px;
82
+ color: #89919F;
83
+ }
84
+
85
+ .titaui-expiration-reminder__qrcode-img {
86
+ margin-top: 28px;
87
+ }
88
+
89
+ .titaui-expiration-reminder__qrcode .titaui-text-btn {
90
+ position: absolute;
91
+ top: 28px;
92
+ left: 32px;
93
+ }
94
+
95
+ .titaui-expiration-reminder__remain-day {
96
+ font-size: 36px;
97
+ color: #2879ff;
98
+ }
99
+
100
+ .titaui-expiration-reminder__title {
101
+ font-size: 28px;
102
+ font-weight: 600;
103
+ line-height: 34px;
104
+ color: #141C28;
105
+ text-align: center;
106
+ }
107
+
108
+ .titaui-expiration-reminder__title img {
109
+ position: relative;
110
+ top: -4px;
111
+ left: -4px;
112
+ }
@@ -0,0 +1,304 @@
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 _axios = _interopRequireDefault(require("axios"));
13
+
14
+ var _copyToClipboard = _interopRequireDefault(require("copy-to-clipboard"));
15
+
16
+ var _selectionRanges = require("selection-ranges");
17
+
18
+ var _bsGlobal = require("../../utils/bs-global");
19
+
20
+ var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
21
+
22
+ var _bookDemo = _interopRequireDefault(require("../book-demo"));
23
+
24
+ var _button = _interopRequireDefault(require("../button"));
25
+
26
+ var _dialog = _interopRequireDefault(require("../dialog"));
27
+
28
+ var _errorBoundary = _interopRequireDefault(require("../error-boundary"));
29
+
30
+ var _mirroring = _interopRequireDefault(require("../mirroring"));
31
+
32
+ var _toast = _interopRequireDefault(require("../toast"));
33
+
34
+ var _emoji = _interopRequireDefault(require("./img/emoji.svg"));
35
+
36
+ var _qrcodeTrial = _interopRequireDefault(require("./img/qrcode-trial.png"));
37
+
38
+ var _qrcodeOfficial = _interopRequireDefault(require("./img/qrcode-official.png"));
39
+
40
+ var _utils = require("./utils");
41
+
42
+ require("./index.css");
43
+
44
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
+
46
+ 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); }
47
+
48
+ 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; }
49
+
50
+ 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; }
51
+
52
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
53
+
54
+ 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."); }
55
+
56
+ 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); }
57
+
58
+ 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; }
59
+
60
+ 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; }
61
+
62
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
+
64
+ var prefixCls = 'titaui-expiration-reminder';
65
+
66
+ var ExpirationReminder = function ExpirationReminder() {
67
+ var _trialVersion, _officialVersion;
68
+
69
+ var _getBSGlobal = (0, _bsGlobal.getBSGlobal)('tenantAuthentication'),
70
+ Day = _getBSGlobal.Day,
71
+ ExpireType = _getBSGlobal.ExpireType,
72
+ Version = _getBSGlobal.Version;
73
+
74
+ var deadLineRemind = (0, _bsGlobal.getBSGlobal)('deadLineRemind');
75
+ var reminderEnable = ExpireType === _utils.ApplicationState.Expired || ExpireType === _utils.ApplicationState.WillExpire && deadLineRemind;
76
+ var appVersion = Version === _utils.ApplicationVersion.Trial ? 'trialVersion' : 'officialVersion';
77
+
78
+ var _useState = (0, _react.useState)(),
79
+ _useState2 = _slicedToArray(_useState, 2),
80
+ mirrorSwitch = _useState2[0],
81
+ setMirrorSwitch = _useState2[1];
82
+
83
+ var _useState3 = (0, _react.useState)(reminderEnable),
84
+ _useState4 = _slicedToArray(_useState3, 2),
85
+ visible = _useState4[0],
86
+ setVisible = _useState4[1];
87
+
88
+ var bookDemoRef = (0, _react.useRef)();
89
+ var telRef = (0, _react.useRef)();
90
+
91
+ var deleteCache = function deleteCache() {
92
+ var UserId = (0, _bsGlobal.getUserInfo)().Id; // eslint-disable-next-line no-restricted-globals
93
+
94
+ var url = "".concat(location.origin, "/").concat(UserId, "/CacheDeleteHome");
95
+
96
+ _axios["default"].get(url)["finally"](function () {
97
+ return setVisible(false);
98
+ });
99
+ };
100
+
101
+ var showBookDemo = function showBookDemo() {
102
+ var _bookDemoRef$current;
103
+
104
+ deleteCache();
105
+ bookDemoRef === null || bookDemoRef === void 0 ? void 0 : (_bookDemoRef$current = bookDemoRef.current) === null || _bookDemoRef$current === void 0 ? void 0 : _bookDemoRef$current.show();
106
+
107
+ if (window.titaTracker) {
108
+ window.titaTracker('action').record({
109
+ actionName: '申请演示',
110
+ actionGroup: '试用版-申请演示',
111
+ productName: '系统内-申请演示'
112
+ });
113
+ }
114
+ };
115
+
116
+ var onBookDemoVisibleChange = function onBookDemoVisibleChange(visibility) {
117
+ if (!visibility && ExpireType === _utils.ApplicationState.Expired) {
118
+ setMirrorSwitch(undefined);
119
+ setVisible(true);
120
+ }
121
+ };
122
+
123
+ var onCopy = function onCopy() {
124
+ (0, _selectionRanges.setRange)(telRef.current, {
125
+ start: 0,
126
+ end: _utils.ContactNumber.length
127
+ });
128
+ (0, _copyToClipboard["default"])(_utils.ContactNumber);
129
+
130
+ _toast["default"].Success('复制成功');
131
+ }; // useEffect(() => {
132
+ // document.addEventListener('keydown', (e) => {
133
+ // e.preventDefault()
134
+ // })
135
+ // document.addEventListener('contextmenu', (e) => {
136
+ // e.preventDefault()
137
+ // })
138
+ // })
139
+
140
+
141
+ var reminderInfo = {
142
+ trialVersion: (_trialVersion = {}, _defineProperty(_trialVersion, _utils.ApplicationState.Normal, {
143
+ closeEnable: true,
144
+ height: 466,
145
+ qrcodeSize: 240,
146
+ title: null,
147
+ content: null
148
+ }), _defineProperty(_trialVersion, _utils.ApplicationState.WillExpire, {
149
+ closeEnable: true,
150
+ height: 466,
151
+ qrcodeSize: 240,
152
+ title: /*#__PURE__*/_react["default"].createElement("h2", {
153
+ className: "".concat(prefixCls, "__title")
154
+ }, "\u60A8\u7684 Tita \u8BD5\u7528\u671F\u8FD8\u5269\u4F59", /*#__PURE__*/_react["default"].createElement("span", {
155
+ className: "".concat(prefixCls, "__remain-day")
156
+ }, " ", Day, " "), "\u5929"),
157
+ content: /*#__PURE__*/_react["default"].createElement("div", {
158
+ className: "".concat(prefixCls, "__description")
159
+ }, /*#__PURE__*/_react["default"].createElement("p", null, "\u52A0\u901F\u719F\u6089\u4EA7\u54C1 \u9884\u7EA6\u4EA7\u54C1\u6F14\u793A"), /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement("span", null, "\u5347\u7EA7\u4E3A\u4ED8\u8D39\u7248"), /*#__PURE__*/_react["default"].createElement(_button["default"].Text, {
160
+ onClick: function onClick() {
161
+ return setMirrorSwitch('on');
162
+ },
163
+ type: "primary",
164
+ text: " \u8054\u7CFB\u987E\u95EE "
165
+ }), /*#__PURE__*/_react["default"].createElement("span", null, "\u7D22\u53D6\u4F18\u60E0~")))
166
+ }), _defineProperty(_trialVersion, _utils.ApplicationState.Expired, {
167
+ closeEnable: false,
168
+ height: 466,
169
+ qrcodeSize: 240,
170
+ title: /*#__PURE__*/_react["default"].createElement("h2", {
171
+ className: "".concat(prefixCls, "__title")
172
+ }, /*#__PURE__*/_react["default"].createElement("img", {
173
+ src: _emoji["default"],
174
+ alt: "Emoji"
175
+ }), "\u60A8\u7684 Tita \u8BD5\u7528\u5DF2\u5230\u671F"),
176
+ content: /*#__PURE__*/_react["default"].createElement("div", {
177
+ className: "".concat(prefixCls, "__description")
178
+ }, /*#__PURE__*/_react["default"].createElement("p", null, "\u4F7F\u7528 Tita\uFF0C\u91CA\u653E35%+\u7684\u7BA1\u7406\u7CBE\u529B"), /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement("span", null, "\u7EE7\u7EED\u4F7F\u7528"), /*#__PURE__*/_react["default"].createElement(_button["default"].Text, {
179
+ onClick: function onClick() {
180
+ return setMirrorSwitch('on');
181
+ },
182
+ type: "primary",
183
+ text: " \u8054\u7CFB\u987E\u95EE"
184
+ })))
185
+ }), _defineProperty(_trialVersion, "button", /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
186
+ onClick: showBookDemo,
187
+ type: "primary"
188
+ }, "\u9884\u7EA6\u6F14\u793A")), _defineProperty(_trialVersion, "qrCode", _qrcodeTrial["default"]), _trialVersion),
189
+ officialVersion: (_officialVersion = {}, _defineProperty(_officialVersion, _utils.ApplicationState.Normal, {
190
+ height: 466,
191
+ qrcodeSize: 240,
192
+ title: null,
193
+ content: null,
194
+ closeEnable: true
195
+ }), _defineProperty(_officialVersion, _utils.ApplicationState.WillExpire, {
196
+ closeEnable: true,
197
+ height: 430,
198
+ qrcodeSize: 210,
199
+ title: /*#__PURE__*/_react["default"].createElement("h2", {
200
+ className: "".concat(prefixCls, "__title")
201
+ }, "\u60A8\u7684 Tita \u4F7F\u7528\u671F\u8FD8\u5269\u4F59", /*#__PURE__*/_react["default"].createElement("span", {
202
+ className: "".concat(prefixCls, "__remain-day")
203
+ }, " ", Day, " "), "\u5929"),
204
+ content: /*#__PURE__*/_react["default"].createElement("div", {
205
+ className: "".concat(prefixCls, "__description")
206
+ }, /*#__PURE__*/_react["default"].createElement("p", null, "\u7EED\u8D39\u670D\u52A1 \u8054\u7CFB\u987E\u95EE"))
207
+ }), _defineProperty(_officialVersion, _utils.ApplicationState.Expired, {
208
+ closeEnable: false,
209
+ height: 466,
210
+ qrcodeSize: 240,
211
+ title: /*#__PURE__*/_react["default"].createElement("h2", {
212
+ className: "".concat(prefixCls, "__title")
213
+ }, /*#__PURE__*/_react["default"].createElement("img", {
214
+ src: _emoji["default"],
215
+ alt: "Emoji"
216
+ }), "\u60A8\u7684 Tita \u7CFB\u7EDF\u4F7F\u7528\u5DF2\u5230\u671F"),
217
+ content: /*#__PURE__*/_react["default"].createElement("div", {
218
+ className: "".concat(prefixCls, "__description")
219
+ }, /*#__PURE__*/_react["default"].createElement("p", null, "\u9519\u8FC7\u4E86\u4E00\u5927\u6CE2\u4EA7\u54C1\u5347\u7EA7\u54E6~"), /*#__PURE__*/_react["default"].createElement("p", null, "\u4E86\u89E3 Tita \u65B0\u529F\u80FD \u9884\u7EA6\u987E\u95EE\u6F14\u793A"))
220
+ }), _defineProperty(_officialVersion, "button", /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
221
+ onClick: function onClick() {
222
+ return setMirrorSwitch('on');
223
+ },
224
+ type: "primary"
225
+ }, "\u8054\u7CFB\u5BA2\u670D")), _defineProperty(_officialVersion, "qrCode", _qrcodeOfficial["default"]), _officialVersion)
226
+ };
227
+ var modalRender = (0, _react.useCallback)(function () {
228
+ if (!reminderEnable) return null;
229
+ var _reminderInfo$appVers = reminderInfo[appVersion],
230
+ button = _reminderInfo$appVers.button,
231
+ qrCode = _reminderInfo$appVers.qrCode;
232
+ var _reminderInfo$appVers2 = reminderInfo[appVersion][ExpireType],
233
+ closeEnable = _reminderInfo$appVers2.closeEnable,
234
+ content = _reminderInfo$appVers2.content,
235
+ height = _reminderInfo$appVers2.height,
236
+ qrcodeSize = _reminderInfo$appVers2.qrcodeSize,
237
+ title = _reminderInfo$appVers2.title;
238
+ return /*#__PURE__*/_react["default"].createElement(_mirroring["default"], {
239
+ mirrorSwitch: mirrorSwitch,
240
+ style: {
241
+ width: 420,
242
+ height: height,
243
+ margin: '0 auto'
244
+ }
245
+ }, /*#__PURE__*/_react["default"].createElement("div", {
246
+ className: prefixCls,
247
+ style: {
248
+ height: height
249
+ }
250
+ }, title, content, /*#__PURE__*/_react["default"].createElement("div", {
251
+ className: "".concat(prefixCls, "__footer")
252
+ }, /*#__PURE__*/_react["default"].createElement("p", null, button), /*#__PURE__*/_react["default"].createElement("p", {
253
+ className: "".concat(prefixCls, "__contact"),
254
+ onClick: onCopy
255
+ }, "\u8054\u7CFB\u7535\u8BDD:", /*#__PURE__*/_react["default"].createElement("span", {
256
+ className: "".concat(prefixCls, "__contact-number"),
257
+ ref: telRef
258
+ }, _utils.ContactNumber))), closeEnable && /*#__PURE__*/_react["default"].createElement("div", {
259
+ className: "".concat(prefixCls, "__close"),
260
+ onClick: deleteCache
261
+ }), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
262
+ errorLevel: _errorLevel["default"].P0,
263
+ errorTag: "\u7533\u8BF7\u9884\u7EA6\u6F14\u793A\u5F02\u5E38"
264
+ }, /*#__PURE__*/_react["default"].createElement(_bookDemo["default"].BookDemoPC, {
265
+ ref: bookDemoRef,
266
+ type: (0, _utils.getBookDemoVersion)(),
267
+ visible: false,
268
+ visibleChange: onBookDemoVisibleChange
269
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
270
+ className: "".concat(prefixCls, " ").concat(prefixCls, "__qrcode"),
271
+ style: {
272
+ height: height
273
+ }
274
+ }, /*#__PURE__*/_react["default"].createElement(_button["default"].Text, {
275
+ icon: "tu-icon-fanhui",
276
+ text: "\u8FD4\u56DE",
277
+ type: "primary",
278
+ onClick: function onClick() {
279
+ return setMirrorSwitch('off');
280
+ }
281
+ }), /*#__PURE__*/_react["default"].createElement("h2", {
282
+ className: "".concat(prefixCls, "__qrcode-title")
283
+ }, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("h3", {
284
+ className: "".concat(prefixCls, "__qrcode-subtitle")
285
+ }, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
286
+ className: "".concat(prefixCls, "__qrcode-img"),
287
+ src: qrCode,
288
+ alt: "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B",
289
+ width: qrcodeSize,
290
+ height: qrcodeSize
291
+ })));
292
+ }, [mirrorSwitch]);
293
+ return /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
294
+ modalRender: modalRender,
295
+ noCloseIcon: true,
296
+ noFooter: true,
297
+ noHeadLine: true,
298
+ visible: visible
299
+ });
300
+ };
301
+
302
+ var _default = /*#__PURE__*/(0, _react.memo)(ExpirationReminder);
303
+
304
+ exports["default"] = _default;