@titaui/pc 1.11.4-0 → 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 (292) 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/date-picker/BodyItem.js +3 -3
  234. package/lib/components/date-picker/CalendarHeader.js +3 -3
  235. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  236. package/lib/components/dynamic/constant.js +31 -31
  237. package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
  238. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +36 -0
  239. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +51 -0
  240. package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +53 -0
  241. package/lib/components/dynamic/dynamic-item/index.js +40 -32
  242. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  243. package/lib/components/emotions-selector/selector-pop.js +3 -3
  244. package/lib/components/ereport-list/index.js +3 -3
  245. package/lib/components/form/form-fields/date/index.css +24 -0
  246. package/lib/components/form/form-fields/date/index.js +98 -0
  247. package/lib/components/form/form-fields/user/index.css +1 -1
  248. package/lib/components/form/index.js +10 -3
  249. package/lib/components/mblog/components/MblogAction.js +3 -3
  250. package/lib/components/menus/export-modules/interview-menus/constant.js +23 -17
  251. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +5 -5
  252. package/lib/components/menus/export-modules/interview-menus/index.js +1 -2
  253. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  254. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  255. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  256. package/lib/components/picker/components/picker-trigger/index.css +16 -0
  257. package/lib/components/picker/components/picker-trigger/index.js +18 -9
  258. package/lib/components/picker/picker-panels.js +1 -1
  259. package/lib/components/picker/picker.js +12 -13
  260. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  261. package/lib/components/rich-editor/models/schema.js +6 -6
  262. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  263. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  264. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  265. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  266. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  267. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  268. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  269. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  270. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  271. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  272. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  273. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  274. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  275. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  276. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  277. package/lib/components/select/Option.js +3 -3
  278. package/lib/components/time-picker/index.css +18 -0
  279. package/lib/components/time-picker/time-picker-selector.js +8 -12
  280. package/lib/components/time-picker/time-picker.js +117 -100
  281. package/lib/components/time-picker/utils.js +13 -2
  282. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  283. package/lib/components-v1/animate/AnimateChild.js +3 -3
  284. package/lib/components-v1/avatar/index.js +3 -3
  285. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  286. package/lib/components-v1/progress/CircleProgress.js +3 -3
  287. package/lib/components-v1/select/Option.js +3 -3
  288. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  289. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  290. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  291. package/package.json +1 -1
  292. package/yarn-error.log +5424 -6356
@@ -24,3 +24,19 @@
24
24
  font-weight: normal;
25
25
  color: #3f4755;
26
26
  }
27
+
28
+ .tita-ui__picker-trigger__input--placeholder {
29
+ color: #bfc7d5;
30
+ }
31
+
32
+ .tita-ui__picker-trigger--disabled {
33
+ cursor: not-allowed;
34
+ }
35
+
36
+ .tita-ui__picker-trigger--disabled:hover {
37
+ border-color: #e9ecf0;
38
+ }
39
+
40
+ .tita-ui__picker-trigger--disabled .tita-ui__picker-trigger__input {
41
+ cursor: not-allowed;
42
+ }
@@ -23,6 +23,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  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; }
25
25
 
26
+ 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; }
27
+
26
28
  var PickerTrigger = function PickerTrigger(props) {
27
29
  var children = props.children,
28
30
  viewDate = props.viewDate,
@@ -30,11 +32,13 @@ var PickerTrigger = function PickerTrigger(props) {
30
32
  disabled = _props$disabled === void 0 ? false : _props$disabled,
31
33
  _props$allowClear = props.allowClear,
32
34
  allowClear = _props$allowClear === void 0 ? false : _props$allowClear,
33
- onClick = props.onClick;
35
+ placeholder = props.placeholder,
36
+ _onClick = props.onClick;
34
37
 
35
38
  var _useContext = (0, _react.useContext)(_context["default"]),
36
39
  mode = _useContext.mode,
37
- format = _useContext.format;
40
+ format = _useContext.format,
41
+ value = _useContext.value;
38
42
 
39
43
  var currFormat = format;
40
44
 
@@ -60,16 +64,20 @@ var PickerTrigger = function PickerTrigger(props) {
60
64
  /*#__PURE__*/
61
65
  // eslint-disable-next-line react/jsx-no-useless-fragment
62
66
  _react["default"].createElement(_react["default"].Fragment, null, children ? /*#__PURE__*/_react["default"].createElement("div", {
63
- onClick: onClick
67
+ onClick: function onClick() {
68
+ return !disabled && _onClick();
69
+ }
64
70
  }, children) : /*#__PURE__*/_react["default"].createElement("div", {
65
- className: (0, _classnames["default"])(_utils.PickerTriggerClass),
66
- onClick: onClick
71
+ className: (0, _classnames["default"])(_utils.PickerTriggerClass, _defineProperty({}, "".concat(_utils.PickerTriggerClass, "--disabled"), disabled)),
72
+ onClick: function onClick() {
73
+ return !disabled && _onClick();
74
+ }
67
75
  }, /*#__PURE__*/_react["default"].createElement("div", {
68
- className: (0, _classnames["default"])("".concat(_utils.PickerTriggerClass, "__input"))
69
- }, viewDate.format(currFormat)), /*#__PURE__*/_react["default"].createElement("div", {
76
+ className: (0, _classnames["default"])("".concat(_utils.PickerTriggerClass, "__input"), _defineProperty({}, "".concat(_utils.PickerTriggerClass, "__input--placeholder"), !value && placeholder))
77
+ }, value ? viewDate.format(currFormat) : placeholder), /*#__PURE__*/_react["default"].createElement("div", {
70
78
  className: (0, _classnames["default"])("".concat(_utils.PickerTriggerClass, "__operation"))
71
79
  }, !disabled && /*#__PURE__*/_react["default"].createElement("span", {
72
- className: "tu-icon-sort-up"
80
+ className: "tu-icon-sort-down"
73
81
  }), allowClear && !disabled && /*#__PURE__*/_react["default"].createElement("span", {
74
82
  className: "tu-icon-circle"
75
83
  }))))
@@ -79,7 +87,8 @@ var PickerTrigger = function PickerTrigger(props) {
79
87
  PickerTrigger.defaultProps = {
80
88
  children: null,
81
89
  disabled: false,
82
- allowClear: false
90
+ allowClear: false,
91
+ placeholder: "请选择"
83
92
  };
84
93
  var _default = PickerTrigger;
85
94
  exports["default"] = _default;
@@ -52,7 +52,7 @@ var PickerPanels = function PickerPanels(props) {
52
52
  pickerMode = _useState2[0],
53
53
  setPickerMode = _useState2[1];
54
54
 
55
- var _useState3 = (0, _react.useState)((0, _moment["default"])(value)),
55
+ var _useState3 = (0, _react.useState)(value ? (0, _moment["default"])(value) : (0, _moment["default"])()),
56
56
  _useState4 = _slicedToArray(_useState3, 2),
57
57
  viewDate = _useState4[0],
58
58
  setViewDate = _useState4[1];
@@ -25,7 +25,7 @@ var _utils = require("./utils");
25
25
 
26
26
  require("./index.css");
27
27
 
28
- var _excluded = ["onChange", "format", "value", "mode", "children", "popupPlacement", "direction", "visible"];
28
+ var _excluded = ["onChange", "format", "value", "mode", "children", "popupPlacement", "direction", "onPopupVisibleChange", "visible"];
29
29
 
30
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
31
 
@@ -35,12 +35,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
35
35
 
36
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
37
 
38
- 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; }
39
-
40
- 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; }
41
-
42
- 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; }
43
-
44
38
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
39
 
46
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."); }
@@ -65,6 +59,7 @@ var Picker = function Picker(props) {
65
59
  children = props.children,
66
60
  popupPlacement = props.popupPlacement,
67
61
  direction = props.direction,
62
+ onPopupVisibleChange = props.onPopupVisibleChange,
68
63
  _props$visible = props.visible,
69
64
  visible = _props$visible === void 0 ? false : _props$visible,
70
65
  restProps = _objectWithoutProperties(props, _excluded);
@@ -92,15 +87,18 @@ var Picker = function Picker(props) {
92
87
  setPopupVisible(false);
93
88
  };
94
89
 
90
+ var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
91
+ setPopupVisible(visible);
92
+ onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(visible);
93
+ };
94
+
95
95
  return /*#__PURE__*/_react["default"].createElement(_context["default"].Provider, {
96
96
  value: {
97
97
  value: value,
98
98
  mode: mode || "date",
99
99
  format: format
100
100
  }
101
- }, /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({}, _objectSpread(_objectSpread({}, restProps), {}, {
102
- viewDate: (0, _moment["default"])(value)
103
- }), {
101
+ }, /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({
104
102
  extraClass: (0, _classnames["default"])(_utils.PickerDropdownClass),
105
103
  popup: /*#__PURE__*/_react["default"].createElement(_pickerPanels["default"], _extends({
106
104
  value: value,
@@ -111,16 +109,17 @@ var Picker = function Picker(props) {
111
109
  })),
112
110
  popupVisible: popupVisible,
113
111
  popupPlacement: getPopupPlacement(),
114
- onPopupVisibleChange: setPopupVisible
115
- }), /*#__PURE__*/_react["default"].createElement(_pickerTrigger["default"], {
112
+ onPopupVisibleChange: handlePopupVisibleChange
113
+ }, restProps), /*#__PURE__*/_react["default"].createElement(_pickerTrigger["default"], _extends({
116
114
  viewDate: (0, _moment["default"])(value),
117
115
  onClick: function onClick() {
118
116
  return setPopupVisible(true);
119
117
  }
120
- }, children)));
118
+ }, restProps), children)));
121
119
  };
122
120
 
123
121
  Picker.defaultProps = {
122
+ children: null,
124
123
  value: (0, _moment["default"])(),
125
124
  mode: "date",
126
125
  format: "YYYY/MM/DD",
@@ -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);
@@ -49,7 +49,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
49
49
  var _super = _createSuper(HeadingSchema);
50
50
 
51
51
  function HeadingSchema() {
52
- var _this;
52
+ var _temp, _this;
53
53
 
54
54
  _classCallCheck(this, HeadingSchema);
55
55
 
@@ -57,7 +57,7 @@ var HeadingSchema = /*#__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.attrs = {
60
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
61
61
  level: {
62
62
  "default": 1
63
63
  },
@@ -94,7 +94,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
94
94
  attrs: {
95
95
  level: 6
96
96
  }
97
- }], _assertThisInitialized(_this)));
97
+ }], _temp));
98
98
  }
99
99
 
100
100
  _createClass(HeadingSchema, [{
@@ -117,7 +117,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
117
117
  var _super2 = _createSuper(HeadingController);
118
118
 
119
119
  function HeadingController() {
120
- var _this2;
120
+ var _temp2, _this2;
121
121
 
122
122
  _classCallCheck(this, HeadingController);
123
123
 
@@ -125,7 +125,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
125
125
  args[_key2] = arguments[_key2];
126
126
  }
127
127
 
128
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
128
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
129
129
  title: (0, _getLocale.getLocale)('Rtx_HeadingONE'),
130
130
  icon: 'tu-icon-text-H1',
131
131
  handler: function handler(editor) {
@@ -161,7 +161,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
161
161
  level: 3
162
162
  });
163
163
  }
164
- }], _assertThisInitialized(_this2)));
164
+ }], _temp2));
165
165
  }
166
166
 
167
167
  return _createClass(HeadingController);
@@ -173,7 +173,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
173
173
  var _super3 = _createSuper(HeadingPlugin);
174
174
 
175
175
  function HeadingPlugin() {
176
- var _this3;
176
+ var _temp3, _this3;
177
177
 
178
178
  _classCallCheck(this, HeadingPlugin);
179
179
 
@@ -181,7 +181,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
181
181
  args[_key3] = arguments[_key3];
182
182
  }
183
183
 
184
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _assertThisInitialized(_this3)));
184
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _temp3));
185
185
  }
186
186
 
187
187
  return _createClass(HeadingPlugin);
@@ -56,7 +56,7 @@ var BulletListSchema = /*#__PURE__*/function (_BlockSchema) {
56
56
  var _super = _createSuper(BulletListSchema);
57
57
 
58
58
  function BulletListSchema() {
59
- var _this;
59
+ var _temp, _this;
60
60
 
61
61
  _classCallCheck(this, BulletListSchema);
62
62
 
@@ -64,9 +64,9 @@ var BulletListSchema = /*#__PURE__*/function (_BlockSchema) {
64
64
  args[_key] = arguments[_key];
65
65
  }
66
66
 
67
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = 'bulletList', _this.content = 'listItem+', _this.parseDOM = [{
67
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = 'bulletList', _this.content = 'listItem+', _this.parseDOM = [{
68
68
  tag: "ul"
69
- }], _assertThisInitialized(_this)));
69
+ }], _temp));
70
70
  }
71
71
 
72
72
  _createClass(BulletListSchema, [{
@@ -89,7 +89,7 @@ var OrderedListSchema = /*#__PURE__*/function (_BlockSchema2) {
89
89
  var _super2 = _createSuper(OrderedListSchema);
90
90
 
91
91
  function OrderedListSchema() {
92
- var _this2;
92
+ var _temp2, _this2;
93
93
 
94
94
  _classCallCheck(this, OrderedListSchema);
95
95
 
@@ -97,7 +97,7 @@ var OrderedListSchema = /*#__PURE__*/function (_BlockSchema2) {
97
97
  args[_key2] = arguments[_key2];
98
98
  }
99
99
 
100
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = 'orderedList', _this2.content = 'listItem+', _this2.attrs = {
100
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = 'orderedList', _this2.content = 'listItem+', _this2.attrs = {
101
101
  order: {
102
102
  "default": 1
103
103
  }
@@ -112,7 +112,7 @@ var OrderedListSchema = /*#__PURE__*/function (_BlockSchema2) {
112
112
  return node.attrs.order == 1 ? ["ol", 0] : ["ol", {
113
113
  start: node.attrs.order
114
114
  }, 0];
115
- }, _assertThisInitialized(_this2)));
115
+ }, _temp2));
116
116
  }
117
117
 
118
118
  return _createClass(OrderedListSchema);
@@ -126,7 +126,7 @@ var ListItemSchema = /*#__PURE__*/function (_BlockSchema3) {
126
126
  var _super3 = _createSuper(ListItemSchema);
127
127
 
128
128
  function ListItemSchema() {
129
- var _this3;
129
+ var _temp3, _this3;
130
130
 
131
131
  _classCallCheck(this, ListItemSchema);
132
132
 
@@ -134,9 +134,9 @@ var ListItemSchema = /*#__PURE__*/function (_BlockSchema3) {
134
134
  args[_key3] = arguments[_key3];
135
135
  }
136
136
 
137
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = 'listItem', _this3.group = 'listItem', _this3.content = 'paragraph block*', _this3.parseDOM = [{
137
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = 'listItem', _this3.group = 'listItem', _this3.content = 'paragraph block*', _this3.parseDOM = [{
138
138
  tag: "li"
139
- }], _assertThisInitialized(_this3)));
139
+ }], _temp3));
140
140
  }
141
141
 
142
142
  _createClass(ListItemSchema, [{
@@ -159,7 +159,7 @@ var ListController = /*#__PURE__*/function (_BaseController) {
159
159
  var _super4 = _createSuper(ListController);
160
160
 
161
161
  function ListController() {
162
- var _this4;
162
+ var _temp4, _this4;
163
163
 
164
164
  _classCallCheck(this, ListController);
165
165
 
@@ -167,7 +167,7 @@ var ListController = /*#__PURE__*/function (_BaseController) {
167
167
  args[_key4] = arguments[_key4];
168
168
  }
169
169
 
170
- return _possibleConstructorReturn(_this4, (_this4 = _super4.call.apply(_super4, [this].concat(args)), _this4.toolbar = [{
170
+ return _possibleConstructorReturn(_this4, (_temp4 = _this4 = _super4.call.apply(_super4, [this].concat(args)), _this4.toolbar = [{
171
171
  title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Numberedlist'),
172
172
  icon: 'tu-icon-text-bullet-list',
173
173
  handler: function handler(editor) {
@@ -193,7 +193,7 @@ var ListController = /*#__PURE__*/function (_BaseController) {
193
193
  disabled: function disabled(state) {
194
194
  return _main.pluginKey.getState(state).orderedListDisabled;
195
195
  }
196
- }], _this4.pmPlugins = [_main["default"], _keymap["default"]], _assertThisInitialized(_this4)));
196
+ }], _this4.pmPlugins = [_main["default"], _keymap["default"]], _temp4));
197
197
  }
198
198
 
199
199
  return _createClass(ListController);
@@ -207,7 +207,7 @@ var ListPlugin = /*#__PURE__*/function (_BasePlugin) {
207
207
  var _super5 = _createSuper(ListPlugin);
208
208
 
209
209
  function ListPlugin() {
210
- var _this5;
210
+ var _temp5, _this5;
211
211
 
212
212
  _classCallCheck(this, ListPlugin);
213
213
 
@@ -215,7 +215,7 @@ var ListPlugin = /*#__PURE__*/function (_BasePlugin) {
215
215
  args[_key5] = arguments[_key5];
216
216
  }
217
217
 
218
- return _possibleConstructorReturn(_this5, (_this5 = _super5.call.apply(_super5, [this].concat(args)), _this5.name = PLUGIN_NAME, _this5.schema = [BulletListSchema, OrderedListSchema, ListItemSchema], _this5.controller = ListController, _assertThisInitialized(_this5)));
218
+ return _possibleConstructorReturn(_this5, (_temp5 = _this5 = _super5.call.apply(_super5, [this].concat(args)), _this5.name = PLUGIN_NAME, _this5.schema = [BulletListSchema, OrderedListSchema, ListItemSchema], _this5.controller = ListController, _temp5));
219
219
  }
220
220
 
221
221
  return _createClass(ListPlugin);
@@ -41,7 +41,7 @@ var ParagraphSchema = /*#__PURE__*/function (_BlockSchema) {
41
41
  var _super = _createSuper(ParagraphSchema);
42
42
 
43
43
  function ParagraphSchema() {
44
- var _this;
44
+ var _temp, _this;
45
45
 
46
46
  _classCallCheck(this, ParagraphSchema);
47
47
 
@@ -49,9 +49,9 @@ var ParagraphSchema = /*#__PURE__*/function (_BlockSchema) {
49
49
  args[_key] = arguments[_key];
50
50
  }
51
51
 
52
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "inline*", _this.parseDOM = [{
52
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "inline*", _this.parseDOM = [{
53
53
  tag: "p"
54
- }], _assertThisInitialized(_this)));
54
+ }], _temp));
55
55
  }
56
56
 
57
57
  _createClass(ParagraphSchema, [{
@@ -74,7 +74,7 @@ var ParagraphPlugin = /*#__PURE__*/function (_BasePlugin) {
74
74
  var _super2 = _createSuper(ParagraphPlugin);
75
75
 
76
76
  function ParagraphPlugin() {
77
- var _this2;
77
+ var _temp2, _this2;
78
78
 
79
79
  _classCallCheck(this, ParagraphPlugin);
80
80
 
@@ -82,7 +82,7 @@ var ParagraphPlugin = /*#__PURE__*/function (_BasePlugin) {
82
82
  args[_key2] = arguments[_key2];
83
83
  }
84
84
 
85
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = ParagraphSchema, _assertThisInitialized(_this2)));
85
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = ParagraphSchema, _temp2));
86
86
  }
87
87
 
88
88
  return _createClass(ParagraphPlugin);
@@ -51,7 +51,7 @@ var CorePluginController = /*#__PURE__*/function (_BaseController) {
51
51
  var _super = _createSuper(CorePluginController);
52
52
 
53
53
  function CorePluginController() {
54
- var _this;
54
+ var _temp, _this;
55
55
 
56
56
  _classCallCheck(this, CorePluginController);
57
57
 
@@ -59,7 +59,7 @@ var CorePluginController = /*#__PURE__*/function (_BaseController) {
59
59
  args[_key] = arguments[_key];
60
60
  }
61
61
 
62
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [_focusHandler["default"], (0, _prosemirrorHistory.history)(), (0, _keymap["default"])(), (0, _prosemirrorKeymap.keymap)(_prosemirrorCommands.baseKeymap)], _assertThisInitialized(_this)));
62
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [_focusHandler["default"], (0, _prosemirrorHistory.history)(), (0, _keymap["default"])(), (0, _prosemirrorKeymap.keymap)(_prosemirrorCommands.baseKeymap)], _temp));
63
63
  }
64
64
 
65
65
  return _createClass(CorePluginController);
@@ -73,7 +73,7 @@ var CorePlugin = /*#__PURE__*/function (_BasePlugin) {
73
73
  var _super2 = _createSuper(CorePlugin);
74
74
 
75
75
  function CorePlugin() {
76
- var _this2;
76
+ var _temp2, _this2;
77
77
 
78
78
  _classCallCheck(this, CorePlugin);
79
79
 
@@ -81,7 +81,7 @@ var CorePlugin = /*#__PURE__*/function (_BasePlugin) {
81
81
  args[_key2] = arguments[_key2];
82
82
  }
83
83
 
84
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = CorePluginController, _assertThisInitialized(_this2)));
84
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = CorePluginController, _temp2));
85
85
  }
86
86
 
87
87
  return _createClass(CorePlugin);
@@ -47,7 +47,7 @@ var AlignmentController = /*#__PURE__*/function (_BaseController) {
47
47
  var _super = _createSuper(AlignmentController);
48
48
 
49
49
  function AlignmentController() {
50
- var _this;
50
+ var _temp, _this;
51
51
 
52
52
  _classCallCheck(this, AlignmentController);
53
53
 
@@ -55,7 +55,7 @@ var AlignmentController = /*#__PURE__*/function (_BaseController) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.toolbar = [{
58
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.toolbar = [{
59
59
  title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Alignleft'),
60
60
  icon: 'tu-icon-text-left',
61
61
  handler: function handler(editor) {
@@ -82,7 +82,7 @@ var AlignmentController = /*#__PURE__*/function (_BaseController) {
82
82
  active: function active(state) {
83
83
  return (0, _utils.hasAlignment)(state, 'right');
84
84
  }
85
- }], _assertThisInitialized(_this)));
85
+ }], _temp));
86
86
  }
87
87
 
88
88
  return _createClass(AlignmentController);
@@ -96,7 +96,7 @@ var AlignmentPlugin = /*#__PURE__*/function (_BasePlugin) {
96
96
  var _super2 = _createSuper(AlignmentPlugin);
97
97
 
98
98
  function AlignmentPlugin() {
99
- var _this2;
99
+ var _temp2, _this2;
100
100
 
101
101
  _classCallCheck(this, AlignmentPlugin);
102
102
 
@@ -104,7 +104,7 @@ var AlignmentPlugin = /*#__PURE__*/function (_BasePlugin) {
104
104
  args[_key2] = arguments[_key2];
105
105
  }
106
106
 
107
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = AlignmentController, _assertThisInitialized(_this2)));
107
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = AlignmentController, _temp2));
108
108
  }
109
109
 
110
110
  return _createClass(AlignmentPlugin);
@@ -85,7 +85,7 @@ var PlaceholderController = /*#__PURE__*/function (_BaseController) {
85
85
  var _super = _createSuper(PlaceholderController);
86
86
 
87
87
  function PlaceholderController() {
88
- var _this;
88
+ var _temp, _this;
89
89
 
90
90
  _classCallCheck(this, PlaceholderController);
91
91
 
@@ -93,7 +93,7 @@ var PlaceholderController = /*#__PURE__*/function (_BaseController) {
93
93
  args[_key] = arguments[_key];
94
94
  }
95
95
 
96
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [placeHolderPlugin], _assertThisInitialized(_this)));
96
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [placeHolderPlugin], _temp));
97
97
  }
98
98
 
99
99
  return _createClass(PlaceholderController);
@@ -107,7 +107,7 @@ var PlaceholderPlugin = /*#__PURE__*/function (_BasePlugin) {
107
107
  var _super2 = _createSuper(PlaceholderPlugin);
108
108
 
109
109
  function PlaceholderPlugin() {
110
- var _this2;
110
+ var _temp2, _this2;
111
111
 
112
112
  _classCallCheck(this, PlaceholderPlugin);
113
113
 
@@ -115,7 +115,7 @@ var PlaceholderPlugin = /*#__PURE__*/function (_BasePlugin) {
115
115
  args[_key2] = arguments[_key2];
116
116
  }
117
117
 
118
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = PlaceholderController, _assertThisInitialized(_this2)));
118
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = PlaceholderController, _temp2));
119
119
  }
120
120
 
121
121
  return _createClass(PlaceholderPlugin);