@titaui/pc 1.11.2 → 1.11.4-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/es/components/cascader/time.js +31 -0
  2. package/es/components/common-share/request-apis.js +56 -0
  3. package/es/components/confidence/heart.js +66 -0
  4. package/es/components/create-okr-modal/fields/index.js +17 -0
  5. package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +154 -0
  6. package/es/components/date-picker/BodyItem.js +121 -0
  7. package/es/components/date-picker/CalendarBody.js +157 -0
  8. package/es/components/date-picker/CalendarHeader.js +187 -0
  9. package/es/components/date-picker/index.js +157 -0
  10. package/es/components/date-range-picker/index.js +210 -0
  11. package/es/components/dialog/index.js +119 -0
  12. package/es/components/dialog-confirm/index.js +154 -0
  13. package/es/components/drop-selector/icon-item.js +40 -0
  14. package/es/components/drop-selector/index.js +179 -0
  15. package/es/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  16. package/es/components/dynamic/dynamic-liking/mock.js +83 -0
  17. package/es/components/dynamic/dynamic-topping/request-api.js +36 -0
  18. package/es/components/e-priority/index.js +88 -0
  19. package/es/components/e-status-dropdown/index.js +94 -0
  20. package/es/components/grid-layout/commen-components/index.js +73 -0
  21. package/es/components/grid-layout/image/could.js +8 -0
  22. package/es/components/grid-layout/image/lv.js +8 -0
  23. package/es/components/grid-layout/image/tita-mask.js +8 -0
  24. package/es/components/help-card/request-api.js +35 -0
  25. package/es/components/icon-button-list/index.js +65 -0
  26. package/es/components/menus/context.js +18 -0
  27. package/es/components/menus/precls.js +8 -0
  28. package/es/components/okr-detail/auth.js +197 -0
  29. package/es/components/okr-detail/components/ao-nice/index.js +245 -0
  30. package/es/components/okr-detail/components/block-line/index.js +20 -0
  31. package/es/components/okr-detail/components/header/index.js +211 -0
  32. package/es/components/okr-detail/components/icon-text/index.js +116 -0
  33. package/es/components/okr-detail/components/okr-tree/index.js +48 -0
  34. package/es/components/okr-detail/components/okr-tree/precls.js +8 -0
  35. package/es/components/okr-detail/components/okr-tree/tree-node/default-node.js +22 -0
  36. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +88 -0
  37. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +200 -0
  38. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +98 -0
  39. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +412 -0
  40. package/es/components/okr-detail/components/okr-tree/tree-node/get-process-color.js +62 -0
  41. package/es/components/okr-detail/components/okr-tree/tree-node/index.js +90 -0
  42. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +46 -0
  43. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +421 -0
  44. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +54 -0
  45. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +62 -0
  46. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +94 -0
  47. package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +273 -0
  48. package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +207 -0
  49. package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +236 -0
  50. package/es/components/okr-detail/components/padding-layout.js +22 -0
  51. package/es/components/okr-detail/components/tab-panel-content/index.js +27 -0
  52. package/es/components/okr-detail/context.js +30 -0
  53. package/es/components/okr-detail/e-list/index.js +243 -0
  54. package/es/components/okr-detail/e-list/precls.js +8 -0
  55. package/es/components/okr-detail/e-list/search-form/fields/e-order.js +172 -0
  56. package/es/components/okr-detail/e-list/search-form/fields/e-status.js +99 -0
  57. package/es/components/okr-detail/e-list/search-form/fields/e-user.js +49 -0
  58. package/es/components/okr-detail/e-list/search-form/index.js +143 -0
  59. package/es/components/okr-detail/error-page/index.js +33 -0
  60. package/es/components/okr-detail/index.js +428 -0
  61. package/es/components/okr-detail/loading/index.js +28 -0
  62. package/es/components/okr-detail/okr-list/add-parent-okr.js +37 -0
  63. package/es/components/okr-detail/okr-list/create-kr-item/heart.js +38 -0
  64. package/es/components/okr-detail/okr-list/drag-order-kr.js +62 -0
  65. package/es/components/okr-detail/okr-list/empty/index.js +48 -0
  66. package/es/components/okr-detail/okr-list/index.js +524 -0
  67. package/es/components/okr-detail/okr-list/warp-parent-okr.js +21 -0
  68. package/es/components/okr-detail/store.js +1 -0
  69. package/es/components/okr-flow/child-node/fields/creator.js +175 -0
  70. package/es/components/okr-flow/child-node/fields/okrClassify.js +31 -0
  71. package/es/components/okr-flow/child-node/fields/okrType.js +21 -0
  72. package/es/components/okr-flow/child-node/helper.js +35 -0
  73. package/es/components/okr-flow/child-node/index.js +110 -0
  74. package/es/components/okr-flow/child-node/kr-node.js +75 -0
  75. package/es/components/okr-flow/child-node/work-node.js +242 -0
  76. package/es/components/okr-flow/context.js +14 -0
  77. package/es/components/okr-flow/empty/index.js +29 -0
  78. package/es/components/okr-flow/export-modules/okr-search-panel/index.js +394 -0
  79. package/es/components/okr-flow/index.js +24 -0
  80. package/es/components/okr-flow/mini-map/index.js +112 -0
  81. package/es/components/okr-flow/mini-map/map.js +145 -0
  82. package/es/components/okr-flow/mini-map/mini-node.js +57 -0
  83. package/es/components/okr-flow/mini-map/utils.js +79 -0
  84. package/es/components/okr-flow/okr-map/index.js +192 -0
  85. package/es/components/okr-flow/open-data/index.js +115 -0
  86. package/es/components/okr-flow/precls.js +8 -0
  87. package/es/components/okr-flow/request-apis.js +118 -0
  88. package/es/components/okr-flow/root-node/index.js +229 -0
  89. package/es/components/okr-flow/utils/config.js +18 -0
  90. package/es/components/okr-flow/utils/helper.js +36 -0
  91. package/es/components/okr-flow/utils/index.js +66 -0
  92. package/es/components/okr-flow/utils/tree-handler.js +323 -0
  93. package/es/components/okr-progress-modal/helper.js +156 -0
  94. package/es/components/okr-progress-modal/request-apis.js +34 -0
  95. package/es/components/okr-share/request-apis.js +56 -0
  96. package/es/components/okrcase-library/server/network.js +407 -0
  97. package/es/components/pagination/locale/en_US.js +22 -0
  98. package/es/components/pagination/locale/zh_CN.js +22 -0
  99. package/es/components/point-demo/drop-down-box/index.js +159 -0
  100. package/es/components/point-demo/index.js +533 -0
  101. package/es/components/point-demo/input/index.js +176 -0
  102. package/es/components/point-demo/point-demo.js +75 -0
  103. package/es/components/point-demo/popup/index.js +113 -0
  104. package/es/components/point-demo/popup/placement.js +44 -0
  105. package/es/components/range-picker-pop/index.js +273 -0
  106. package/es/components/scrollbar/simplebar/helpers.js +59 -0
  107. package/es/components/scrollbar/simplebar/index.js +91 -0
  108. package/es/components/scrollbar/simplebar/scrollbar-width.js +47 -0
  109. package/es/components/scrollbar/simplebar/simplebar.js +852 -0
  110. package/es/components/scrollbar/simplebar-react.js +163 -0
  111. package/es/components/search-dropdown/index.js +40 -0
  112. package/es/components/search-input/index.js +126 -0
  113. package/es/components/select/Option.js +94 -0
  114. package/es/components/select/index.js +330 -0
  115. package/es/components/selector-input/debounce.js +36 -0
  116. package/es/components/selector-input/index.js +109 -0
  117. package/es/components/slider-input/index.js +119 -0
  118. package/es/components/switch/index.js +39 -0
  119. package/es/components/table/index.js +275 -0
  120. package/es/components/tabs/index.js +63 -0
  121. package/es/components/task-relation-modal/tree-node/index.js +58 -0
  122. package/es/components/tita-chart/charts/img/could.js +8 -0
  123. package/es/components/tooltip/error-tip.js +24 -0
  124. package/es/components/tooltip/index.js +21 -0
  125. package/es/components/tree/index.js +79 -0
  126. package/es/components/tree/precls.js +8 -0
  127. package/es/components/upvote/request-apis.js +45 -0
  128. package/es/components/user-selector/action-btns/btn-cancel.js +21 -0
  129. package/es/components/user-selector/action-btns/btn-ok.js +21 -0
  130. package/es/components/user-selector/action-btns/index.js +27 -0
  131. package/es/components/user-selector/context.js +18 -0
  132. package/es/components/user-selector/empty/group.js +55 -0
  133. package/es/components/user-selector/empty/index.js +28 -0
  134. package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +41 -0
  135. package/es/components/user-selector/export-modules/group-selector/index.js +170 -0
  136. package/es/components/user-selector/export-modules/group-selector/searched-panel.js +68 -0
  137. package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +246 -0
  138. package/es/components/user-selector/index.js +25 -0
  139. package/es/components/user-selector/layout/index.js +25 -0
  140. package/es/components/user-selector/loading/index.js +18 -0
  141. package/es/components/user-selector/request-apis.js +180 -0
  142. package/es/components/user-selector/searched-panel/index.js +139 -0
  143. package/es/components/user-selector/searched-panel/result-part.js +43 -0
  144. package/es/components/user-selector/select-tree/selected-tree/index.js +91 -0
  145. package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +48 -0
  146. package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +27 -0
  147. package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +57 -0
  148. package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +93 -0
  149. package/es/components/user-selector/utils.js +139 -0
  150. package/es/components/viewer/ImageListRender.js +143 -0
  151. package/es/components/viewer/index.js +168 -0
  152. package/es/components/word-cloud/index.js +109 -0
  153. package/es/components/word-cloud/request-apis.js +26 -0
  154. package/es/components-v1/animate/AnimateChild.js +76 -0
  155. package/es/components-v1/animate/animate.js +148 -0
  156. package/es/components-v1/animate/index.js +13 -0
  157. package/es/components-v1/dom/index.js +30 -0
  158. package/es/components-v1/placement/index.js +13 -0
  159. package/es/components-v1/placement/placement.js +111 -0
  160. package/es/components-v1/placement/placementInner.js +139 -0
  161. package/es/components-v1/pop/Pop.js +246 -0
  162. package/es/components-v1/pop/PopInner.js +163 -0
  163. package/es/components-v1/pop/index.js +13 -0
  164. package/es/components-v1/progress/CircleProgress.js +152 -0
  165. package/es/components-v1/progress/LineProgress.js +83 -0
  166. package/es/components-v1/progress/index.js +80 -0
  167. package/es/components-v1/select/Option.js +94 -0
  168. package/es/components-v1/select/index.js +330 -0
  169. package/es/components-v1/utils/animate/animate.js +103 -0
  170. package/es/components-v1/utils/animate/event.js +79 -0
  171. package/es/components-v1/utils/dom/index.js +30 -0
  172. package/es/components-v1/utils/placement/autoAdjustPlacement.js +93 -0
  173. package/es/components-v1/utils/placement/getContainerVisibleArea.js +22 -0
  174. package/es/components-v1/utils/placement/getExpectPlacement.js +49 -0
  175. package/es/components-v1/utils/placement/getPlacementInContainer.js +26 -0
  176. package/es/components-v1/utils/placement/placement.js +76 -0
  177. package/es/index.js +777 -0
  178. package/es/pages/appointment-demo/drop-down-box/index.js +159 -0
  179. package/es/pages/appointment-demo/index.js +649 -0
  180. package/es/pages/appointment-demo/input/index.js +176 -0
  181. package/es/pages/appointment-demo/popup/index.js +113 -0
  182. package/es/pages/appointment-demo/popup/placement.js +44 -0
  183. package/es/pages/group-management/components/checkbox/index.js +28 -0
  184. package/es/pages/group-management/components/input-form/index.js +174 -0
  185. package/es/pages/group-management/components/radio/index.js +21 -0
  186. package/es/pages/group-management/components/table/index.js +174 -0
  187. package/es/pages/group-management/groupInterface.js +293 -0
  188. package/es/pages/group-management/index.js +13 -0
  189. package/es/pages/group-management/page-view/empty.js +111 -0
  190. package/es/pages/group-management/page-view/group-empty.js +66 -0
  191. package/es/pages/group-management/page-view/importGroupStaff/index.js +208 -0
  192. package/es/pages/group-management/page-view/index.js +412 -0
  193. package/es/pages/group-management/page-view/loading/index.js +32 -0
  194. package/es/pages/group-management/table/index.js +104 -0
  195. package/es/pages/group-management/tree/add-group-dialog/index.js +153 -0
  196. package/es/pages/group-management/tree/delete-group-dialog/index.js +82 -0
  197. package/es/pages/group-management/tree/edit-group-dialog/index.js +155 -0
  198. package/es/pages/group-management/tree/group-form/index.js +207 -0
  199. package/es/pages/group-management/tree/index.js +168 -0
  200. package/es/pages/group-management/tree/operation-panel.js +41 -0
  201. package/es/pages/group-management/tree/trigger-render.js +99 -0
  202. package/es/pages/like-ranking/mock.js +366 -0
  203. package/es/pages/okr-map/export-modules/index.js +1 -0
  204. package/es/pages/okr-map/export-modules/okr-map/header/index.js +182 -0
  205. package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +47 -0
  206. package/es/pages/okr-map/export-modules/okr-map/okr-map.js +497 -0
  207. package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +69 -0
  208. package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +168 -0
  209. package/es/pages/okr-map/hooks/useStorage.js +96 -0
  210. package/es/pages/okr-map/index.js +18 -0
  211. package/es/pages/okr-map/level2-search/depart.js +53 -0
  212. package/es/pages/okr-map/level2-search/group.js +69 -0
  213. package/es/pages/okr-map/level2-search/index.js +51 -0
  214. package/es/pages/okr-map/level2-search/level2-input.js +46 -0
  215. package/es/pages/okr-map/level2-search/user.js +54 -0
  216. package/es/pages/okr-map/no-okr/index.js +24 -0
  217. package/es/pages/okr-map/number-select/index.js +81 -0
  218. package/es/pages/okr-map/open-data/index.js +115 -0
  219. package/es/pages/okr-map/precls.js +8 -0
  220. package/es/pages/okr-map/request-apis.js +76 -0
  221. package/es/pages/okr-map/share-dialog/index.js +122 -0
  222. package/es/pages/okr-map/unsupport-ie/index.js +83 -0
  223. package/es/pages/okr-map/utils.js +51 -0
  224. package/es/utils/auth.js +294 -0
  225. package/es/utils/bs-global.js +114 -0
  226. package/es/utils/local-storage.js +42 -0
  227. package/es/utils/mblog.js +33 -0
  228. package/es/utils/mock-bsglobal.js +1837 -0
  229. package/es/utils/open-data.js +341 -0
  230. package/es/utils/request-v1.js +115 -0
  231. package/es/utils/request.js +183 -0
  232. package/es/utils/tools.js +286 -0
  233. package/lib/components/button/icon-btn/index.js +17 -8
  234. package/lib/components/date-picker/BodyItem.js +3 -3
  235. package/lib/components/date-picker/CalendarHeader.js +3 -3
  236. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  237. package/lib/components/drop-selector/index.js +25 -10
  238. package/lib/components/dynamic/constant.js +31 -31
  239. package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
  240. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +36 -0
  241. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +51 -0
  242. package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +53 -0
  243. package/lib/components/dynamic/dynamic-item/index.js +40 -32
  244. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  245. package/lib/components/emotions-selector/selector-pop.js +3 -3
  246. package/lib/components/ereport-list/index.js +3 -3
  247. package/lib/components/form/form-fields/date/index.css +24 -0
  248. package/lib/components/form/form-fields/date/index.js +98 -0
  249. package/lib/components/form/form-fields/user/index.css +1 -1
  250. package/lib/components/form/index.js +10 -3
  251. package/lib/components/mblog/components/MblogAction.js +3 -3
  252. package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
  253. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
  254. package/lib/components/menus/export-modules/interview-menus/index.js +126 -0
  255. package/lib/components/menus/index.js +11 -5
  256. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  257. package/lib/components/okr-progress-modal/index.css +1 -1
  258. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  259. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  260. package/lib/components/picker/components/panels/date-panel/date-body.js +116 -0
  261. package/lib/components/picker/components/panels/date-panel/date-head.js +66 -0
  262. package/lib/components/picker/components/panels/date-panel/index.css +14 -0
  263. package/lib/components/picker/components/panels/date-panel/index.js +49 -0
  264. package/lib/components/picker/components/panels/month-panel/index.css +27 -0
  265. package/lib/components/picker/components/panels/month-panel/index.js +63 -0
  266. package/lib/components/picker/components/panels/month-panel/month-body.js +87 -0
  267. package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
  268. package/lib/components/picker/components/panels/panel-body/index.js +53 -0
  269. package/lib/components/picker/components/panels/panel-head/index.js +48 -0
  270. package/lib/components/picker/components/panels/year-panel/index.css +23 -0
  271. package/lib/components/picker/components/panels/year-panel/index.js +65 -0
  272. package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
  273. package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
  274. package/lib/components/picker/components/picker-trigger/index.css +42 -0
  275. package/lib/components/picker/components/picker-trigger/index.js +94 -0
  276. package/lib/components/picker/context.js +15 -0
  277. package/lib/components/picker/index.css +121 -0
  278. package/lib/components/picker/index.js +13 -0
  279. package/lib/components/picker/picker-panels.js +182 -0
  280. package/lib/components/picker/picker.js +132 -0
  281. package/lib/components/picker/type.js +5 -0
  282. package/lib/components/picker/utils.js +28 -0
  283. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  284. package/lib/components/rich-editor/models/schema.js +6 -6
  285. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  286. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  287. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  288. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  289. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  290. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  291. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  292. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  293. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  294. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  295. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  296. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  297. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  298. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  299. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  300. package/lib/components/select/Option.js +3 -3
  301. package/lib/components/time-picker/index.css +117 -0
  302. package/lib/components/time-picker/index.js +13 -0
  303. package/lib/components/time-picker/time-picker-selector.js +138 -0
  304. package/lib/components/time-picker/time-picker.js +324 -0
  305. package/lib/components/time-picker/timer-picker-input.js +94 -0
  306. package/lib/components/time-picker/utils.js +52 -0
  307. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  308. package/lib/components-v1/animate/AnimateChild.js +3 -3
  309. package/lib/components-v1/avatar/index.js +3 -3
  310. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  311. package/lib/components-v1/progress/CircleProgress.js +3 -3
  312. package/lib/components-v1/select/Option.js +3 -3
  313. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  314. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  315. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  316. package/lib/index.js +16 -0
  317. package/lib/pages/aha2021/index.js +5 -1
  318. package/lib/utils/hooks.js +72 -0
  319. package/package.json +1 -1
  320. package/yarn-error.log +21252 -0
@@ -49,7 +49,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
49
49
  var _super = _createSuper(StrongSchema);
50
50
 
51
51
  function StrongSchema() {
52
- var _this;
52
+ var _temp, _this;
53
53
 
54
54
  _classCallCheck(this, StrongSchema);
55
55
 
@@ -57,7 +57,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
57
57
  args[_key] = arguments[_key];
58
58
  }
59
59
 
60
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
60
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
61
61
  tag: "strong"
62
62
  }, {
63
63
  tag: "b",
@@ -69,7 +69,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
69
69
  getAttrs: function getAttrs(value) {
70
70
  return /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null;
71
71
  }
72
- }], _assertThisInitialized(_this)));
72
+ }], _temp));
73
73
  }
74
74
 
75
75
  _createClass(StrongSchema, [{
@@ -90,7 +90,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
90
90
  var _super2 = _createSuper(StrongController);
91
91
 
92
92
  function StrongController() {
93
- var _this2;
93
+ var _temp2, _this2;
94
94
 
95
95
  _classCallCheck(this, StrongController);
96
96
 
@@ -98,7 +98,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
98
98
  args[_key2] = arguments[_key2];
99
99
  }
100
100
 
101
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
101
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
102
102
  title: (0, _getLocale.getLocale)('Rtx_Bold'),
103
103
  icon: 'tu-icon-text-blod',
104
104
  handler: function handler(editor) {
@@ -108,7 +108,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
108
108
  active: function active(state) {
109
109
  return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
110
110
  }
111
- }, _assertThisInitialized(_this2)));
111
+ }, _temp2));
112
112
  }
113
113
 
114
114
  return _createClass(StrongController);
@@ -122,7 +122,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
122
122
  var _super3 = _createSuper(StrongPlugin);
123
123
 
124
124
  function StrongPlugin() {
125
- var _this3;
125
+ var _temp3, _this3;
126
126
 
127
127
  _classCallCheck(this, StrongPlugin);
128
128
 
@@ -130,7 +130,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
130
130
  args[_key3] = arguments[_key3];
131
131
  }
132
132
 
133
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController, _assertThisInitialized(_this3)));
133
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController, _temp3));
134
134
  }
135
135
 
136
136
  return _createClass(StrongPlugin);
@@ -60,7 +60,7 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
60
60
  var _super = _createSuper(UnderLineSchema);
61
61
 
62
62
  function UnderLineSchema() {
63
- var _this;
63
+ var _temp, _this;
64
64
 
65
65
  _classCallCheck(this, UnderLineSchema);
66
66
 
@@ -68,14 +68,14 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
68
68
  args[_key] = arguments[_key];
69
69
  }
70
70
 
71
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
71
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
72
72
  tag: 'ins'
73
73
  }, {
74
74
  tag: 'u'
75
75
  }, {
76
76
  tag: 'span',
77
77
  getAttrs: getAttrs
78
- }], _assertThisInitialized(_this)));
78
+ }], _temp));
79
79
  }
80
80
 
81
81
  _createClass(UnderLineSchema, [{
@@ -98,7 +98,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
98
98
  var _super2 = _createSuper(UnderLineController);
99
99
 
100
100
  function UnderLineController() {
101
- var _this2;
101
+ var _temp2, _this2;
102
102
 
103
103
  _classCallCheck(this, UnderLineController);
104
104
 
@@ -106,7 +106,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
106
106
  args[_key2] = arguments[_key2];
107
107
  }
108
108
 
109
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
109
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
110
110
  title: (0, _getLocale.getLocale)('Rtx_Underline'),
111
111
  icon: 'tu-icon-text-underline',
112
112
  handler: function handler(editor) {
@@ -116,7 +116,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
116
116
  active: function active(state) {
117
117
  return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
118
118
  }
119
- }, _assertThisInitialized(_this2)));
119
+ }, _temp2));
120
120
  }
121
121
 
122
122
  return _createClass(UnderLineController);
@@ -130,7 +130,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
130
130
  var _super3 = _createSuper(UnderLinePlugin);
131
131
 
132
132
  function UnderLinePlugin() {
133
- var _this3;
133
+ var _temp3, _this3;
134
134
 
135
135
  _classCallCheck(this, UnderLinePlugin);
136
136
 
@@ -138,7 +138,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
138
138
  args[_key3] = arguments[_key3];
139
139
  }
140
140
 
141
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _assertThisInitialized(_this3)));
141
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _temp3));
142
142
  }
143
143
 
144
144
  return _createClass(UnderLinePlugin);
@@ -55,7 +55,7 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
55
55
  var _super = _createSuper(PortalProviderAPI);
56
56
 
57
57
  function PortalProviderAPI() {
58
- var _this;
58
+ var _temp, _this;
59
59
 
60
60
  _classCallCheck(this, PortalProviderAPI);
61
61
 
@@ -63,9 +63,9 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
63
63
  args[_key] = arguments[_key];
64
64
  }
65
65
 
66
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
66
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
67
67
  _this.context = context;
68
- }, _assertThisInitialized(_this)));
68
+ }, _temp));
69
69
  }
70
70
 
71
71
  _createClass(PortalProviderAPI, [{
@@ -53,7 +53,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
53
53
  var _super = _createSuper(EditorPopup);
54
54
 
55
55
  function EditorPopup() {
56
- var _this;
56
+ var _temp, _this;
57
57
 
58
58
  _classCallCheck(this, EditorPopup);
59
59
 
@@ -61,7 +61,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
61
61
  args[_key] = arguments[_key];
62
62
  }
63
63
 
64
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
64
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
65
65
  overflowScrollParent: false,
66
66
  validPosition: true
67
67
  }, _this.placement = ['', ''], _this.handleRef = function (popup) {
@@ -74,7 +74,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
74
74
  return _this.updatePosition(props);
75
75
  }), _this.onResize = function () {
76
76
  return _this.scheduledUpdatePosition();
77
- }, _assertThisInitialized(_this)));
77
+ }, _temp));
78
78
  }
79
79
 
80
80
  _createClass(EditorPopup, [{
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
47
47
  var _super = _createSuper(Option);
48
48
 
49
49
  function Option() {
50
- var _this;
50
+ var _temp, _this;
51
51
 
52
52
  _classCallCheck(this, Option);
53
53
 
@@ -55,7 +55,7 @@ var Option = /*#__PURE__*/function (_Component) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
58
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
59
59
  e.stopPropagation();
60
60
  e.nativeEvent.stopImmediatePropagation();
61
61
  var onSelect = _this.props.onSelect;
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
65
65
  height: _this.props.height,
66
66
  lineHeight: _this.props.height
67
67
  };
68
- }, _assertThisInitialized(_this)));
68
+ }, _temp));
69
69
  }
70
70
 
71
71
  _createClass(Option, [{
@@ -0,0 +1,117 @@
1
+ .tita-ui__time-picker-trigger {
2
+ width: 100px;
3
+ height: 32px;
4
+ padding: 0 12px;
5
+ font-size: 13px;
6
+ font-weight: 400;
7
+ line-height: 18px;
8
+ border: 1px solid #e9ecf0;
9
+ border-radius: 8px;
10
+ transition: all 0.3s ease;
11
+ background: #ffffff;
12
+ box-sizing: border-box;
13
+ color: #3f4755;
14
+ display: flex;
15
+ align-items: center;
16
+ }
17
+
18
+ .tita-ui__time-picker-trigger:hover {
19
+ border-color: #2879ff;
20
+ }
21
+
22
+ .tita-ui__time-picker-trigger--disabled {
23
+ cursor: not-allowed;
24
+ }
25
+
26
+ .tita-ui__time-picker-trigger--disabled .tita-ui__time-picker-input {
27
+ cursor: not-allowed;
28
+ }
29
+
30
+ .tita-ui__time-picker-trigger--disabled:hover {
31
+ border-color: #e9ecf0;
32
+ }
33
+
34
+ .tita-ui__time-picker-inputs {
35
+ flex: 1;
36
+ }
37
+
38
+ .tita-ui__time-picker-inputs--placeholder input,
39
+ .tita-ui__time-picker-inputs--placeholder span {
40
+ text-shadow: 0 0 0 #bfc7d5;
41
+ color: transparent;
42
+ }
43
+
44
+ .tita-ui__time-picker-input {
45
+ width: 16px;
46
+ padding: 0;
47
+ text-shadow: 0 0 0 #3f4755;
48
+ border: none;
49
+ color: transparent;
50
+ outline: none;
51
+ text-align: right;
52
+ }
53
+
54
+ .tita-ui__time-picker-input.active {
55
+ background-color: #2879ff;
56
+ text-shadow: 0 0 0 #ffffff;
57
+ }
58
+
59
+ .tita-ui__time-picker-input::selection {
60
+ background-color: transparent;
61
+ }
62
+
63
+ .tita-ui__time-picker-icon {
64
+ font-size: 16px;
65
+ cursor: pointer;
66
+ }
67
+
68
+ .tita-ui__time-picker-icon:hover {
69
+ color: #2879ff;
70
+ }
71
+
72
+ .tita-ui__time-picker-menu {
73
+ width: 100px;
74
+ border-radius: 8px;
75
+ box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.1);
76
+ background: #ffffff;
77
+ box-sizing: border-box;
78
+ }
79
+
80
+ .tita-ui__time-picker-menu-item {
81
+ margin: 0;
82
+ padding: 7px 12px;
83
+ font-size: 14px;
84
+ font-weight: 400;
85
+ line-height: 18px;
86
+ color: #3f4755;
87
+ cursor: pointer;
88
+ }
89
+
90
+ .tita-ui__time-picker-menu-item:hover {
91
+ color: #2879ff;
92
+ background: #f7f8fa;
93
+ }
94
+
95
+ .tita-ui__time-picker-menu-item.active {
96
+ color: #2879ff;
97
+ }
98
+
99
+ .tita-ui__time-picker-menu-item--sticky {
100
+ height: 16px;
101
+ border-radius: 8px;
102
+ background-color: #ffffff;
103
+ position: sticky;
104
+ z-index: 10;
105
+ }
106
+
107
+ .tita-ui__time-picker-menu-item--sticky.top {
108
+ top: 0;
109
+ }
110
+
111
+ .tita-ui__time-picker-menu-item--sticky.bottom {
112
+ bottom: 0;
113
+ }
114
+
115
+ .tita-ui__time-picker-menu-item--sticky.shadow {
116
+ box-shadow: 0px 0px 8px 0px #e9eef3;
117
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _timePicker = _interopRequireDefault(require("./time-picker"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = _timePicker["default"];
13
+ exports["default"] = _default;
@@ -0,0 +1,138 @@
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 _scrollbar = _interopRequireDefault(require("../scrollbar"));
17
+
18
+ var _utils = require("./utils");
19
+
20
+ var _excluded = ["children", "popupStyle", "timeData", "timeSetting", "visibleSetting"];
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 _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; }
37
+
38
+ 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; }
39
+
40
+ var PICKERITEM_HEIGHT = 32;
41
+
42
+ var TimePickerSelector = function TimePickerSelector(props) {
43
+ var children = props.children,
44
+ popupStyle = props.popupStyle,
45
+ _props$timeData = props.timeData,
46
+ hours = _props$timeData.hours,
47
+ minutes = _props$timeData.minutes,
48
+ _props$timeSetting = props.timeSetting,
49
+ hour = _props$timeSetting.hour,
50
+ minute = _props$timeSetting.minute,
51
+ setTime = _props$timeSetting.setTime,
52
+ _props$visibleSetting = props.visibleSetting,
53
+ visible = _props$visibleSetting.visible,
54
+ setVisible = _props$visibleSetting.setVisible,
55
+ restProps = _objectWithoutProperties(props, _excluded);
56
+
57
+ var pickerMenuRef = (0, _react.useRef)();
58
+ var pickerMenuItemActiveIndexRef = (0, _react.useRef)(0);
59
+ var timerRef = (0, _react.useRef)();
60
+
61
+ var onItemClickHandler = function onItemClickHandler(time) {
62
+ // setHour(hour);
63
+ // setMinute(minute);
64
+ setTime(time);
65
+ setVisible(false);
66
+ };
67
+
68
+ var renderContent = function renderContent() {
69
+ return /*#__PURE__*/_react["default"].createElement("div", {
70
+ className: "".concat(_utils.TimePickerClass, "-menu")
71
+ }, /*#__PURE__*/_react["default"].createElement(_scrollbar["default"], {
72
+ style: {
73
+ maxHeight: 192
74
+ }
75
+ }, /*#__PURE__*/_react["default"].createElement("p", {
76
+ className: "".concat(_utils.TimePickerClass, "-menu-item--sticky top")
77
+ }), hours.map(function (h, hIndex) {
78
+ return minutes.map(function (m, mIndex) {
79
+ var isCurrentTime = Number(h) === Number(hour) && Number(m) === Number(minute);
80
+
81
+ if (isCurrentTime) {
82
+ pickerMenuItemActiveIndexRef.current = hIndex + mIndex + 1 + hIndex * (minutes.length - 1);
83
+ }
84
+
85
+ var time = "".concat(h, ":").concat(m);
86
+ return (
87
+ /*#__PURE__*/
88
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
89
+ _react["default"].createElement("p", {
90
+ className: (0, _classnames["default"])("".concat(_utils.TimePickerClass, "-menu-item"), {
91
+ active: isCurrentTime
92
+ }),
93
+ key: m,
94
+ onClick: function onClick() {
95
+ return onItemClickHandler(time);
96
+ }
97
+ }, time)
98
+ );
99
+ });
100
+ }), /*#__PURE__*/_react["default"].createElement("p", {
101
+ className: "".concat(_utils.TimePickerClass, "-menu-item--sticky bottom")
102
+ })));
103
+ };
104
+
105
+ (0, _react.useEffect)(function () {
106
+ timerRef.current = setTimeout(function () {
107
+ if (visible && pickerMenuRef.current) {
108
+ pickerMenuRef.current.scrollTop = pickerMenuItemActiveIndexRef.current * PICKERITEM_HEIGHT - PICKERITEM_HEIGHT; // 32: pickerItem height, 23: pickerMenu paddingTop + pickerItem paddingTop
109
+ }
110
+ }, 10);
111
+ return function () {
112
+ clearTimeout(timerRef.current);
113
+ };
114
+ }, [visible]);
115
+ return /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({
116
+ popup: renderContent(),
117
+ popupVisible: visible,
118
+ onPopupVisibleChange: setVisible,
119
+ popupStyle: _objectSpread(_objectSpread({}, popupStyle), {}, {
120
+ zIndex: 2000
121
+ })
122
+ }, restProps), children);
123
+ };
124
+
125
+ TimePickerSelector.defaultProps = {
126
+ children: null,
127
+ popupStyle: {},
128
+ popupAlign: {
129
+ offset: [0, 0],
130
+ overflow: {
131
+ adjustX: true,
132
+ adjustY: true
133
+ },
134
+ targetOffset: [0, 0]
135
+ }
136
+ };
137
+ var _default = TimePickerSelector;
138
+ exports["default"] = _default;