@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
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var PickerContext = /*#__PURE__*/_react["default"].createContext({});
13
+
14
+ var _default = PickerContext;
15
+ exports["default"] = _default;
@@ -0,0 +1,121 @@
1
+ .tita-ui__picker {
2
+ width: 276px;
3
+ max-height: 282px;
4
+ padding: 15px 18px 16px;
5
+ border-radius: 16px;
6
+ box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
7
+ background-color: #ffffff;
8
+ box-sizing: border-box;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .tita-ui__picker-unit {
13
+ font-weight: 600;
14
+ color: #141c28;
15
+ }
16
+
17
+ .tita-ui__picker-cell {
18
+ width: 24px;
19
+ height: 24px;
20
+ padding: 4px 6px;
21
+ font-size: 12px;
22
+ line-height: 18px;
23
+ color: #6f7886;
24
+ }
25
+
26
+ .tita-ui__picker-cell--in-view .tita-ui__picker-cell__inner {
27
+ color: #141c28;
28
+ }
29
+
30
+ .tita-ui__picker-cell--tody .tita-ui__picker-cell__inner, .tita-ui__picker-cell:hover .tita-ui__picker-cell__inner {
31
+ background-color: #f0f4fa;
32
+ color: #2879ff;
33
+ }
34
+
35
+ .tita-ui__picker-cell--selected .tita-ui__picker-cell__inner {
36
+ background-color: #2879ff;
37
+ color: #ffffff;
38
+ }
39
+
40
+ .tita-ui__picker-cell__inner {
41
+ width: 100%;
42
+ height: 100%;
43
+ font-size: 12px;
44
+ line-height: 18px;
45
+ border-radius: 8px;
46
+ transition: all 0.3s ease;
47
+ color: #a4acb9;
48
+ cursor: pointer;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ white-space: nowrap;
53
+ }
54
+
55
+ .tita-ui__picker-content thead th:first-child,
56
+ .tita-ui__picker-content tbody tr:first-child,
57
+ .tita-ui__picker-content tbody tr td:first-child {
58
+ padding-left: 0;
59
+ }
60
+
61
+ .tita-ui__picker-content thead th:last-child,
62
+ .tita-ui__picker-content tbody tr:last-child,
63
+ .tita-ui__picker-content tbody tr td:last-child {
64
+ padding-right: 0;
65
+ }
66
+
67
+ .tita-ui__picker-content thead th:last-child td,
68
+ .tita-ui__picker-content tbody tr:last-child td,
69
+ .tita-ui__picker-content tbody tr td:last-child td {
70
+ padding-bottom: 0;
71
+ }
72
+
73
+ .tita-ui__picker-head {
74
+ background-color: #ffffff;
75
+ display: flex;
76
+ align-items: center;
77
+ position: relative;
78
+ z-index: 1;
79
+ }
80
+
81
+ .tita-ui__picker-head__view {
82
+ flex: 1;
83
+ }
84
+
85
+ .tita-ui__picker-head-btn__prev, .tita-ui__picker-head-btn__next, .tita-ui__picker-head-btn__year, .tita-ui__picker-head-btn__month {
86
+ min-width: 24px;
87
+ height: 24px;
88
+ border-radius: 8px;
89
+ transition: all 0.3s ease;
90
+ background-color: transparent;
91
+ border: none;
92
+ color: #141c28;
93
+ display: inline-block;
94
+ }
95
+
96
+ .tita-ui__picker-head-btn__prev:hover, .tita-ui__picker-head-btn__next:hover, .tita-ui__picker-head-btn__year:hover, .tita-ui__picker-head-btn__month:hover {
97
+ background-color: #f0f4fa;
98
+ color: #2879ff;
99
+ }
100
+
101
+ .tita-ui__picker-head-btn__prev, .tita-ui__picker-head-btn__next {
102
+ padding: 0;
103
+ font-size: 12px;
104
+ line-height: 18px;
105
+ }
106
+
107
+ .tita-ui__picker-head-btn__year, .tita-ui__picker-head-btn__month {
108
+ padding: 1px 2px;
109
+ font-size: 14px;
110
+ font-weight: 600;
111
+ line-height: 22px;
112
+ }
113
+
114
+ .tita-ui__picker-head-btn--readonly {
115
+ cursor: text;
116
+ }
117
+
118
+ .tita-ui__picker-head-btn--readonly:hover {
119
+ background-color: #ffffff;
120
+ color: #141c28;
121
+ }
@@ -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 _picker = _interopRequireDefault(require("./picker"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = _picker["default"];
13
+ exports["default"] = _default;
@@ -0,0 +1,182 @@
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 _moment = _interopRequireDefault(require("moment"));
13
+
14
+ var _datePanel = _interopRequireDefault(require("./components/panels/date-panel"));
15
+
16
+ var _monthPanel = _interopRequireDefault(require("./components/panels/month-panel"));
17
+
18
+ var _yearPanel = _interopRequireDefault(require("./components/panels/year-panel"));
19
+
20
+ var _utils = require("./utils");
21
+
22
+ require("./index.css");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ 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); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
+
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
+
36
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
+
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
+
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+
42
+ var PickerPanels = function PickerPanels(props) {
43
+ var _props$mode = props.mode,
44
+ mode = _props$mode === void 0 ? "date" : _props$mode,
45
+ onChange = props.onChange,
46
+ onClose = props.onClose,
47
+ _props$value = props.value,
48
+ value = _props$value === void 0 ? (0, _moment["default"])() : _props$value;
49
+
50
+ var _useState = (0, _react.useState)(mode),
51
+ _useState2 = _slicedToArray(_useState, 2),
52
+ pickerMode = _useState2[0],
53
+ setPickerMode = _useState2[1];
54
+
55
+ var _useState3 = (0, _react.useState)(value ? (0, _moment["default"])(value) : (0, _moment["default"])()),
56
+ _useState4 = _slicedToArray(_useState3, 2),
57
+ viewDate = _useState4[0],
58
+ setViewDate = _useState4[1];
59
+
60
+ var onViewDateChange = function onViewDateChange(date) {
61
+ setViewDate(function () {
62
+ return date;
63
+ });
64
+ };
65
+
66
+ var onPanelChange = function onPanelChange(viewDate, type) {
67
+ setPickerMode(function () {
68
+ return type;
69
+ });
70
+ };
71
+
72
+ var onCloseHandler = function onCloseHandler() {
73
+ if (pickerMode === mode) {
74
+ if (onClose) {
75
+ onClose();
76
+ }
77
+ }
78
+ };
79
+
80
+ var onDateSelect = function onDateSelect(date) {
81
+ if (onChange) {
82
+ onChange(date);
83
+ }
84
+
85
+ onCloseHandler();
86
+ };
87
+
88
+ var onMonthSelect = function onMonthSelect(date) {
89
+ setViewDate(function () {
90
+ return date;
91
+ });
92
+
93
+ if (mode !== "month") {
94
+ onPanelChange(date, "date");
95
+ }
96
+
97
+ if (onChange) {
98
+ onChange(date);
99
+ }
100
+
101
+ onCloseHandler();
102
+ };
103
+
104
+ var onYearSelect = function onYearSelect(date) {
105
+ setViewDate(function () {
106
+ return date;
107
+ });
108
+
109
+ if (mode !== "year") {
110
+ onPanelChange(date, "month");
111
+ }
112
+
113
+ if (onChange) {
114
+ onChange(date);
115
+ }
116
+
117
+ onCloseHandler();
118
+ };
119
+
120
+ var onSelectChange = function onSelectChange(date, type) {
121
+ switch (type) {
122
+ case "date":
123
+ onDateSelect(date);
124
+ break;
125
+
126
+ case "month":
127
+ onMonthSelect(date);
128
+ break;
129
+
130
+ case "year":
131
+ onYearSelect(date);
132
+ break;
133
+
134
+ default:
135
+ break;
136
+ }
137
+ };
138
+
139
+ var panel;
140
+
141
+ switch (pickerMode) {
142
+ case "date":
143
+ panel = /*#__PURE__*/_react["default"].createElement(_datePanel["default"], {
144
+ viewDate: viewDate,
145
+ onSelect: onSelectChange,
146
+ onViewDateChange: onViewDateChange,
147
+ onPanelChange: onPanelChange
148
+ });
149
+ break;
150
+
151
+ case "month":
152
+ panel = /*#__PURE__*/_react["default"].createElement(_monthPanel["default"], {
153
+ viewDate: viewDate,
154
+ onSelect: onSelectChange,
155
+ onViewDateChange: onViewDateChange,
156
+ onPanelChange: onPanelChange
157
+ });
158
+ break;
159
+
160
+ case "year":
161
+ panel = /*#__PURE__*/_react["default"].createElement(_yearPanel["default"], {
162
+ viewDate: viewDate,
163
+ onSelect: onSelectChange,
164
+ onViewDateChange: onViewDateChange
165
+ });
166
+ break;
167
+
168
+ default:
169
+ break;
170
+ }
171
+
172
+ return /*#__PURE__*/_react["default"].createElement("div", {
173
+ className: _utils.PickerClass
174
+ }, panel);
175
+ };
176
+
177
+ PickerPanels.defaultProps = {
178
+ mode: "date",
179
+ value: (0, _moment["default"])()
180
+ };
181
+ var _default = PickerPanels;
182
+ exports["default"] = _default;
@@ -0,0 +1,132 @@
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 _moment = _interopRequireDefault(require("moment"));
15
+
16
+ var _popup = _interopRequireDefault(require("../popup"));
17
+
18
+ var _pickerPanels = _interopRequireDefault(require("./picker-panels"));
19
+
20
+ var _pickerTrigger = _interopRequireDefault(require("./components/picker-trigger"));
21
+
22
+ var _context = _interopRequireDefault(require("./context"));
23
+
24
+ var _utils = require("./utils");
25
+
26
+ require("./index.css");
27
+
28
+ var _excluded = ["onChange", "format", "value", "mode", "children", "popupPlacement", "direction", "onPopupVisibleChange", "visible"];
29
+
30
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
+
32
+ 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); }
33
+
34
+ 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; }
35
+
36
+ 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); }
37
+
38
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
+
40
+ 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."); }
41
+
42
+ 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); }
43
+
44
+ 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; }
45
+
46
+ 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; }
47
+
48
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49
+
50
+ 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; }
51
+
52
+ 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; }
53
+
54
+ var Picker = function Picker(props) {
55
+ var onChange = props.onChange,
56
+ format = props.format,
57
+ value = props.value,
58
+ mode = props.mode,
59
+ children = props.children,
60
+ popupPlacement = props.popupPlacement,
61
+ direction = props.direction,
62
+ onPopupVisibleChange = props.onPopupVisibleChange,
63
+ _props$visible = props.visible,
64
+ visible = _props$visible === void 0 ? false : _props$visible,
65
+ restProps = _objectWithoutProperties(props, _excluded);
66
+
67
+ var _useState = (0, _react.useState)(visible),
68
+ _useState2 = _slicedToArray(_useState, 2),
69
+ popupVisible = _useState2[0],
70
+ setPopupVisible = _useState2[1];
71
+
72
+ var getPopupPlacement = function getPopupPlacement() {
73
+ if (popupPlacement !== undefined) {
74
+ return popupPlacement;
75
+ }
76
+
77
+ return direction === "rtl" ? "bottomRight" : "bottomLeft";
78
+ };
79
+
80
+ var onChangeHandler = function onChangeHandler(date) {
81
+ if (onChange) {
82
+ onChange(date);
83
+ }
84
+ };
85
+
86
+ var onCloseHandler = function onCloseHandler() {
87
+ setPopupVisible(false);
88
+ };
89
+
90
+ var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
91
+ setPopupVisible(visible);
92
+ onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(visible);
93
+ };
94
+
95
+ return /*#__PURE__*/_react["default"].createElement(_context["default"].Provider, {
96
+ value: {
97
+ value: value,
98
+ mode: mode || "date",
99
+ format: format
100
+ }
101
+ }, /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({
102
+ extraClass: (0, _classnames["default"])(_utils.PickerDropdownClass),
103
+ popup: /*#__PURE__*/_react["default"].createElement(_pickerPanels["default"], _extends({
104
+ value: value,
105
+ mode: mode
106
+ }, restProps, {
107
+ onChange: onChangeHandler,
108
+ onClose: onCloseHandler
109
+ })),
110
+ popupVisible: popupVisible,
111
+ popupPlacement: getPopupPlacement(),
112
+ onPopupVisibleChange: handlePopupVisibleChange
113
+ }, restProps), /*#__PURE__*/_react["default"].createElement(_pickerTrigger["default"], _extends({
114
+ viewDate: (0, _moment["default"])(value),
115
+ onClick: function onClick() {
116
+ return setPopupVisible(true);
117
+ }
118
+ }, restProps), children)));
119
+ };
120
+
121
+ Picker.defaultProps = {
122
+ children: null,
123
+ value: (0, _moment["default"])(),
124
+ mode: "date",
125
+ format: "YYYY/MM/DD",
126
+ popupStyle: {},
127
+ popupPlacement: "bottomLeft",
128
+ direction: "ltr",
129
+ visible: false
130
+ };
131
+ var _default = Picker;
132
+ exports["default"] = _default;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.YEAR_DECADE_COUNT = exports.WEEK_DAYS_COUNT = exports.PickerTriggerClass = exports.PickerPanelClass = exports.PickerHeadClass = exports.PickerDropdownClass = exports.PickerClass = exports.PickerCellClass = exports.PickerBodyClass = exports.MONTHDATAMAPEN = exports.MONTHDATAMAP = void 0;
7
+ var PickerClass = "tita-ui__picker";
8
+ exports.PickerClass = PickerClass;
9
+ var PickerHeadClass = "tita-ui__picker-head";
10
+ exports.PickerHeadClass = PickerHeadClass;
11
+ var PickerBodyClass = "tita-ui__picker-body";
12
+ exports.PickerBodyClass = PickerBodyClass;
13
+ var PickerPanelClass = "tita-ui__picker-panel";
14
+ exports.PickerPanelClass = PickerPanelClass;
15
+ var PickerCellClass = "tita-ui__picker-cell";
16
+ exports.PickerCellClass = PickerCellClass;
17
+ var PickerTriggerClass = "tita-ui__picker-trigger";
18
+ exports.PickerTriggerClass = PickerTriggerClass;
19
+ var PickerDropdownClass = "tita-ui__picker-dropdown";
20
+ exports.PickerDropdownClass = PickerDropdownClass;
21
+ var MONTHDATAMAP = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"];
22
+ exports.MONTHDATAMAP = MONTHDATAMAP;
23
+ var MONTHDATAMAPEN = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
24
+ exports.MONTHDATAMAPEN = MONTHDATAMAPEN;
25
+ var WEEK_DAYS_COUNT = 7;
26
+ exports.WEEK_DAYS_COUNT = WEEK_DAYS_COUNT;
27
+ var YEAR_DECADE_COUNT = 10;
28
+ exports.YEAR_DECADE_COUNT = YEAR_DECADE_COUNT;
@@ -45,7 +45,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
45
45
  var _super = _createSuper(RangeSelectorPop);
46
46
 
47
47
  function RangeSelectorPop() {
48
- var _this;
48
+ var _temp, _this;
49
49
 
50
50
  _classCallCheck(this, RangeSelectorPop);
51
51
 
@@ -53,7 +53,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
53
53
  args[_key] = arguments[_key];
54
54
  }
55
55
 
56
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
56
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
57
57
  var isDisabled = _this.props.isDisabled;
58
58
  if (isDisabled) return; // @ts-ignore
59
59
 
@@ -61,7 +61,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
61
61
  }, _this.handleHide = function () {
62
62
  // @ts-ignore
63
63
  _this.refs.pop.hide();
64
- }, _assertThisInitialized(_this)));
64
+ }, _temp));
65
65
  }
66
66
 
67
67
  _createClass(RangeSelectorPop, [{
@@ -46,7 +46,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
46
46
  var _super = _createSuper(BlockSchema);
47
47
 
48
48
  function BlockSchema() {
49
- var _this;
49
+ var _temp, _this;
50
50
 
51
51
  _classCallCheck(this, BlockSchema);
52
52
 
@@ -54,7 +54,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
54
54
  args[_key] = arguments[_key];
55
55
  }
56
56
 
57
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _assertThisInitialized(_this)));
57
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _temp));
58
58
  }
59
59
 
60
60
  _createClass(BlockSchema, [{
@@ -75,7 +75,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
75
75
  var _super2 = _createSuper(InlineSchema);
76
76
 
77
77
  function InlineSchema() {
78
- var _this2;
78
+ var _temp2, _this2;
79
79
 
80
80
  _classCallCheck(this, InlineSchema);
81
81
 
@@ -83,7 +83,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
83
83
  args[_key2] = arguments[_key2];
84
84
  }
85
85
 
86
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _assertThisInitialized(_this2)));
86
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _temp2));
87
87
  }
88
88
 
89
89
  _createClass(InlineSchema, [{
@@ -104,7 +104,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
104
104
  var _super3 = _createSuper(AtomSchema);
105
105
 
106
106
  function AtomSchema() {
107
- var _this3;
107
+ var _temp3, _this3;
108
108
 
109
109
  _classCallCheck(this, AtomSchema);
110
110
 
@@ -112,7 +112,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
112
112
  args[_key3] = arguments[_key3];
113
113
  }
114
114
 
115
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _assertThisInitialized(_this3)));
115
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _temp3));
116
116
  }
117
117
 
118
118
  return _createClass(AtomSchema);
@@ -49,7 +49,7 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
49
49
  var _super = _createSuper(BlockquoteSchema);
50
50
 
51
51
  function BlockquoteSchema() {
52
- var _this;
52
+ var _temp, _this;
53
53
 
54
54
  _classCallCheck(this, BlockquoteSchema);
55
55
 
@@ -57,9 +57,9 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
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.content = "block+", _this.parseDOM = [{
60
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
61
61
  tag: "blockquote"
62
- }], _assertThisInitialized(_this)));
62
+ }], _temp));
63
63
  }
64
64
 
65
65
  _createClass(BlockquoteSchema, [{
@@ -80,7 +80,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
80
80
  var _super2 = _createSuper(BlockquoteController);
81
81
 
82
82
  function BlockquoteController() {
83
- var _this2;
83
+ var _temp2, _this2;
84
84
 
85
85
  _classCallCheck(this, BlockquoteController);
86
86
 
@@ -88,7 +88,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
88
88
  args[_key2] = arguments[_key2];
89
89
  }
90
90
 
91
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
91
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
92
92
  title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Quote'),
93
93
  icon: 'tu-icon-text-quotel',
94
94
  handler: function handler(editor) {
@@ -97,7 +97,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
97
97
  active: function active(state) {
98
98
  return (0, _util.isBlockActive)(state, PLUGIN_NAME);
99
99
  }
100
- }, _assertThisInitialized(_this2)));
100
+ }, _temp2));
101
101
  }
102
102
 
103
103
  return _createClass(BlockquoteController);
@@ -111,7 +111,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
111
111
  var _super3 = _createSuper(BlockquotePlugin);
112
112
 
113
113
  function BlockquotePlugin() {
114
- var _this3;
114
+ var _temp3, _this3;
115
115
 
116
116
  _classCallCheck(this, BlockquotePlugin);
117
117
 
@@ -119,7 +119,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
119
119
  args[_key3] = arguments[_key3];
120
120
  }
121
121
 
122
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _assertThisInitialized(_this3)));
122
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _temp3));
123
123
  }
124
124
 
125
125
  return _createClass(BlockquotePlugin);