@titaui/pc 1.16.36 → 1.16.37

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 (324) hide show
  1. package/lib/components/avatar/icon-avatar/index.js +1 -1
  2. package/lib/components/avatar/num-avatar/index.js +1 -1
  3. package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
  4. package/lib/components/button/default-button/index.js +1 -1
  5. package/lib/components/button/icon-btn/index.js +1 -1
  6. package/lib/components/cascader/index.js +1 -1
  7. package/lib/components/cascader/time.js +1 -1
  8. package/lib/components/change-okr-modal/Filter.js +2 -2
  9. package/lib/components/change-okr-modal/Item.js +2 -2
  10. package/lib/components/change-okr-modal/filterTab.js +2 -2
  11. package/lib/components/change-okr-modal/index.js +4 -6
  12. package/lib/components/common-share/publishMblog.js +2 -4
  13. package/lib/components/communication/CommunicationAttachments.js +2 -2
  14. package/lib/components/communication/ConvertUserName.js +2 -2
  15. package/lib/components/communication/index.js +2 -2
  16. package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
  17. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
  18. package/lib/components/create-okr-modal/index.js +2 -4
  19. package/lib/components/create-okr-modal/objectType.js +2 -2
  20. package/lib/components/create-okr-modal/request-api.js +12 -16
  21. package/lib/components/create-okr-modal/utils/helper.js +2 -6
  22. package/lib/components/date-picker/BodyItem.js +6 -6
  23. package/lib/components/date-picker/CalendarBody.js +3 -3
  24. package/lib/components/date-picker/CalendarHeader.js +6 -6
  25. package/lib/components/date-picker/index.js +2 -2
  26. package/lib/components/date-range-picker/index.js +2 -2
  27. package/lib/components/delete-confirm-pop/ConfirmPop.js +5 -5
  28. package/lib/components/dialog/index.js +1 -1
  29. package/lib/components/dialog-confirm/index.js +1 -1
  30. package/lib/components/dialog-qq-docs/index.js +9 -11
  31. package/lib/components/dialog-qq-docs/utils.js +2 -6
  32. package/lib/components/dialog-select/index.js +1 -1
  33. package/lib/components/dialog-upload/index.js +2 -4
  34. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
  35. package/lib/components/dialog-upload-type/index.js +1 -1
  36. package/lib/components/drawer/headerDrop.js +1 -1
  37. package/lib/components/drawer/index.js +1 -1
  38. package/lib/components/drawer-manager/drawerWrapper.js +3 -5
  39. package/lib/components/drawer-manager/index.js +1 -1
  40. package/lib/components/drop-selector/index.js +1 -1
  41. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
  42. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +4 -6
  43. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  44. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  45. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  46. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  47. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  48. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  49. package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
  50. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  53. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
  54. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  55. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  56. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  57. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  58. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  59. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  62. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  63. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  64. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  65. package/lib/components/dynamic/dynamic-list/index.js +1 -1
  66. package/lib/components/eReport/eReportListEmpty.js +2 -2
  67. package/lib/components/eReport/eReportLists/reportList.js +5 -5
  68. package/lib/components/eReport/eReportShare/index.js +2 -2
  69. package/lib/components/eReport/eReportShare/toast/index.js +2 -2
  70. package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
  71. package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
  72. package/lib/components/emotions-selector/selector-content.js +2 -2
  73. package/lib/components/emotions-selector/selector-pop.js +5 -5
  74. package/lib/components/ereport-list/index.js +5 -5
  75. package/lib/components/error-boundary/index.js +2 -2
  76. package/lib/components/filter-buttons/department.js +1 -1
  77. package/lib/components/filter-buttons/index.js +1 -1
  78. package/lib/components/filter-buttons/name.js +1 -1
  79. package/lib/components/firework/index.js +2 -6
  80. package/lib/components/form/form-fields/date/index.js +1 -1
  81. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  82. package/lib/components/form/form-fields/input/index.js +1 -1
  83. package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
  84. package/lib/components/form/form-fields/user/index.js +1 -1
  85. package/lib/components/grid-layout/util/network.js +6 -10
  86. package/lib/components/guide-order/index.js +1 -1
  87. package/lib/components/guide-tip/index.js +1 -1
  88. package/lib/components/help-card/index.js +1 -1
  89. package/lib/components/import-modal/import-task-modal/index.js +1 -1
  90. package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
  91. package/lib/components/import-modal/tree-node/index.js +1 -1
  92. package/lib/components/keyword-search/index.css +45 -27
  93. package/lib/components/keyword-search/index.js +69 -38
  94. package/lib/components/magnet/index.js +1 -1
  95. package/lib/components/mblog/components/ConfirmPop.js +2 -2
  96. package/lib/components/mblog/components/MblogAction.js +5 -5
  97. package/lib/components/mblog/components/MblogContent.js +2 -2
  98. package/lib/components/mblog/index.js +2 -2
  99. package/lib/components/menus/components/menu-tree/index.js +1 -1
  100. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  101. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
  102. package/lib/components/okr-detail/auth.js +2 -2
  103. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
  104. package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
  105. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
  106. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
  107. package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
  108. package/lib/components/okr-detail/components/header/edit-name.js +2 -4
  109. package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
  110. package/lib/components/okr-detail/components/header/o-classify.js +2 -4
  111. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  112. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  113. package/lib/components/okr-detail/components/o-classify.js +2 -4
  114. package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
  115. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  116. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
  117. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
  118. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
  119. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  120. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
  121. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -5
  122. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
  123. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
  124. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
  125. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
  126. package/lib/components/okr-detail/detail-footer/index.js +2 -4
  127. package/lib/components/okr-detail/detail-header/index.js +10 -12
  128. package/lib/components/okr-detail/okr-list/index.js +2 -4
  129. package/lib/components/okr-detail/request-apis.js +2 -6
  130. package/lib/components/okr-excel/renders.js +4 -8
  131. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +2 -4
  132. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +2 -2
  133. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +2 -2
  134. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +2 -2
  135. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +2 -4
  136. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +2 -2
  137. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +2 -2
  138. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +2 -2
  139. package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
  140. package/lib/components/okr-flow/child-node/work-node.js +2 -4
  141. package/lib/components/okr-flow/export-modal/index.js +43 -6
  142. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
  143. package/lib/components/okr-flow/request-apis.js +2 -6
  144. package/lib/components/okr-flow/root-node/index.js +2 -4
  145. package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
  146. package/lib/components/okr-progress-modal/index.js +2 -4
  147. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +4 -6
  148. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
  149. package/lib/components/okr-review/ReviewPop/index.js +2 -2
  150. package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
  151. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +5 -5
  152. package/lib/components/okr-review/index.js +2 -2
  153. package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
  154. package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
  155. package/lib/components/okr-share/common-painter/utils.js +4 -8
  156. package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
  157. package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
  158. package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
  159. package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
  160. package/lib/components/okr-share/pink-card/index.js +2 -6
  161. package/lib/components/okr-share/publishMblog.js +2 -4
  162. package/lib/components/okr-share/shareCardSelector.js +4 -6
  163. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  164. package/lib/components/okrcase-library/server/network.js +20 -24
  165. package/lib/components/open-data-painter/index.js +2 -6
  166. package/lib/components/operation-records/OperationRecordItem.js +2 -2
  167. package/lib/components/operation-records/index.js +2 -2
  168. package/lib/components/pagination/pagination.js +1 -1
  169. package/lib/components/period-selector/components/button/index.js +1 -1
  170. package/lib/components/period-selector/components/selector/style.js +9 -9
  171. package/lib/components/period-selector/helper/index.js +2 -6
  172. package/lib/components/period-selector/index.js +11 -6
  173. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  174. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  175. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  176. package/lib/components/picker/components/panels/week-panel/index.js +1 -1
  177. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  178. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  179. package/lib/components/picker/picker.js +1 -1
  180. package/lib/components/picker/range-picker/index.js +1 -1
  181. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  182. package/lib/components/point-demo/input/index.js +3 -3
  183. package/lib/components/point-demo/popup/index.js +1 -1
  184. package/lib/components/popup/index.js +1 -1
  185. package/lib/components/popup-select/index.js +1 -1
  186. package/lib/components/praise-record/PraiseRecordItem.js +2 -2
  187. package/lib/components/praise-record/index.js +2 -2
  188. package/lib/components/range-picker-pop/index.js +3 -3
  189. package/lib/components/range-selector-pop/RangeList.js +2 -2
  190. package/lib/components/range-selector-pop/RangeSelectorPop.js +5 -5
  191. package/lib/components/rate/index.js +1 -1
  192. package/lib/components/rich-editor/models/schema.js +8 -8
  193. package/lib/components/rich-editor/plugins/block/block-quote/index.js +10 -10
  194. package/lib/components/rich-editor/plugins/block/heading/index.js +10 -10
  195. package/lib/components/rich-editor/plugins/block/lists/index.js +16 -16
  196. package/lib/components/rich-editor/plugins/block/paragraph/index.js +7 -7
  197. package/lib/components/rich-editor/plugins/core/index.js +6 -6
  198. package/lib/components/rich-editor/plugins/extension/alignment/index.js +7 -7
  199. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +6 -6
  200. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  201. package/lib/components/rich-editor/plugins/inline/color/index.js +13 -13
  202. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +10 -10
  203. package/lib/components/rich-editor/plugins/inline/em/index.js +7 -7
  204. package/lib/components/rich-editor/plugins/inline/link/index.js +10 -10
  205. package/lib/components/rich-editor/plugins/inline/strong/index.js +10 -10
  206. package/lib/components/rich-editor/plugins/inline/under-line/index.js +10 -10
  207. package/lib/components/rich-editor/react/reactNodeView.js +4 -4
  208. package/lib/components/rich-editor/react/uiProvider.js +5 -5
  209. package/lib/components/rich-editor/ui/Popup/index.js +5 -5
  210. package/lib/components/scroll-container/index.js +2 -2
  211. package/lib/components/scrollbar/index.js +1 -1
  212. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  213. package/lib/components/scrollbar/simplebar-react.js +1 -1
  214. package/lib/components/search-dropdown/index.js +1 -1
  215. package/lib/components/search-input/index.css +22 -27
  216. package/lib/components/search-input/index.js +48 -58
  217. package/lib/components/select/Option.js +6 -6
  218. package/lib/components/select/index.js +3 -3
  219. package/lib/components/select-layer/index.js +1 -1
  220. package/lib/components/select-tags/index.js +1 -1
  221. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
  222. package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
  223. package/lib/components/survey-model/request-api.js +2 -6
  224. package/lib/components/switch/index.js +1 -1
  225. package/lib/components/table/index.js +1 -1
  226. package/lib/components/table-excel-v2/index.js +1 -1
  227. package/lib/components/tabs/index.js +1 -1
  228. package/lib/components/tag/index.js +1 -1
  229. package/lib/components/task-relation-modal/index.js +5 -7
  230. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  231. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  232. package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
  233. package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
  234. package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
  235. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  236. package/lib/components/task-relation-modal/work-relation/index.js +5 -7
  237. package/lib/components/task-tree/task-item-node/e-project.js +2 -4
  238. package/lib/components/task-tree/task-item-node/e-task.js +2 -4
  239. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  240. package/lib/components/task-tree/task-tree.js +1 -1
  241. package/lib/components/textarea/index.js +1 -1
  242. package/lib/components/time-picker/time-picker-selector.js +1 -1
  243. package/lib/components/time-picker/time-picker.js +1 -1
  244. package/lib/components/time-picker/timer-picker-input.js +1 -1
  245. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  246. package/lib/components/tita-chart/charts/pie.js +1 -1
  247. package/lib/components/tita-chart/errorBoundary/index.js +5 -5
  248. package/lib/components/toast/index.js +8 -12
  249. package/lib/components/tooltip/error-tip.js +1 -1
  250. package/lib/components/tooltip/tooltip.js +1 -1
  251. package/lib/components/tree/index.js +1 -1
  252. package/lib/components/upload/components/uploadedPreview.js +2 -2
  253. package/lib/components/upload/index.js +4 -6
  254. package/lib/components/upload/index2.js +2 -4
  255. package/lib/components/upvote/index.js +5 -7
  256. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  257. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  258. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  259. package/lib/components/version-change-modal/index.js +4 -6
  260. package/lib/components/version-change-modal/request-api.js +2 -6
  261. package/lib/components/viewer/ImageListRender.js +2 -2
  262. package/lib/components/viewer/index.js +2 -2
  263. package/lib/components/weekly-report/card.js +12 -4
  264. package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
  265. package/lib/components/weekly-report/common-painter/drawName.js +2 -6
  266. package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
  267. package/lib/components/weekly-report/index.js +4 -6
  268. package/lib/components-v1/animate/AnimateChild.js +5 -5
  269. package/lib/components-v1/animate/animate.js +2 -2
  270. package/lib/components-v1/avatar/index.js +5 -5
  271. package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
  272. package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
  273. package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
  274. package/lib/components-v1/confirm/index.js +2 -2
  275. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +5 -5
  276. package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
  277. package/lib/components-v1/input/Input.js +3 -3
  278. package/lib/components-v1/input/InputNumber.js +2 -2
  279. package/lib/components-v1/placement/placement.js +2 -2
  280. package/lib/components-v1/placement/placementInner.js +2 -2
  281. package/lib/components-v1/pop/Pop.js +2 -2
  282. package/lib/components-v1/pop/PopInner.js +2 -2
  283. package/lib/components-v1/portals/Portals.js +2 -2
  284. package/lib/components-v1/progress/CircleProgress.js +5 -5
  285. package/lib/components-v1/progress/LineProgress.js +2 -2
  286. package/lib/components-v1/progress/index.js +2 -2
  287. package/lib/components-v1/radio/radio.js +2 -2
  288. package/lib/components-v1/radio/radioGroup.js +2 -2
  289. package/lib/components-v1/search/index.js +2 -2
  290. package/lib/components-v1/select/Option.js +6 -6
  291. package/lib/components-v1/select/index.js +3 -3
  292. package/lib/components-v1/tabs/index.js +2 -2
  293. package/lib/components-v1/textarea/index.js +2 -2
  294. package/lib/components-v1/transition/index.js +2 -2
  295. package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
  296. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
  297. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
  298. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
  299. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
  300. package/lib/components-v1/userSelector/components/MultiMode/index.js +5 -5
  301. package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
  302. package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
  303. package/lib/components-v1/userSelector/components/UserItem.js +5 -5
  304. package/lib/components-v1/userSelector/index.js +2 -2
  305. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  306. package/lib/pages/appointment-demo/input/index.js +3 -3
  307. package/lib/pages/appointment-demo/popup/index.js +1 -1
  308. package/lib/pages/group-management/components/input-form/index.js +3 -3
  309. package/lib/pages/group-management/components/radio/index.js +1 -1
  310. package/lib/pages/group-management/groupInterface.js +2 -6
  311. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  312. package/lib/pages/group-management/tree/index.js +1 -1
  313. package/lib/pages/new-okr-list/header/index.js +20 -20
  314. package/lib/pages/new-okr-list/request-api.js +14 -18
  315. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
  316. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  317. package/lib/pages/okr-map/request-apis.js +2 -6
  318. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  319. package/lib/utils/auth.js +2 -2
  320. package/lib/utils/helpers.js +2 -6
  321. package/lib/utils/open-data.js +4 -6
  322. package/lib/utils/request-v1.js +2 -6
  323. package/lib/utils/request.js +2 -6
  324. package/package.json +1 -1
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
30
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
40
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  var PLUGIN_NAME = 'underLine';
45
45
 
@@ -60,7 +60,7 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
60
60
  var _super = _createSuper(UnderLineSchema);
61
61
 
62
62
  function UnderLineSchema() {
63
- var _this;
63
+ var _temp, _this;
64
64
 
65
65
  _classCallCheck(this, UnderLineSchema);
66
66
 
@@ -68,14 +68,14 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
68
68
  args[_key] = arguments[_key];
69
69
  }
70
70
 
71
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
71
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
72
72
  tag: 'ins'
73
73
  }, {
74
74
  tag: 'u'
75
75
  }, {
76
76
  tag: 'span',
77
77
  getAttrs: getAttrs
78
- }], _assertThisInitialized(_this)));
78
+ }], _temp));
79
79
  }
80
80
 
81
81
  _createClass(UnderLineSchema, [{
@@ -98,7 +98,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
98
98
  var _super2 = _createSuper(UnderLineController);
99
99
 
100
100
  function UnderLineController() {
101
- var _this2;
101
+ var _temp2, _this2;
102
102
 
103
103
  _classCallCheck(this, UnderLineController);
104
104
 
@@ -106,7 +106,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
106
106
  args[_key2] = arguments[_key2];
107
107
  }
108
108
 
109
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
109
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
110
110
  title: (0, _getLocale.getLocale)('Rtx_Underline'),
111
111
  icon: 'tu-icon-text-underline',
112
112
  handler: function handler(editor) {
@@ -116,7 +116,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
116
116
  active: function active(state) {
117
117
  return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
118
118
  }
119
- }, _assertThisInitialized(_this2)));
119
+ }, _temp2));
120
120
  }
121
121
 
122
122
  return _createClass(UnderLineController);
@@ -130,7 +130,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
130
130
  var _super3 = _createSuper(UnderLinePlugin);
131
131
 
132
132
  function UnderLinePlugin() {
133
- var _this3;
133
+ var _temp3, _this3;
134
134
 
135
135
  _classCallCheck(this, UnderLinePlugin);
136
136
 
@@ -138,7 +138,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
138
138
  args[_key3] = arguments[_key3];
139
139
  }
140
140
 
141
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _assertThisInitialized(_this3)));
141
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _temp3));
142
142
  }
143
143
 
144
144
  return _createClass(UnderLinePlugin);
@@ -17,13 +17,13 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  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; }
19
19
 
20
- function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
20
+ function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
21
21
 
22
22
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
23
23
 
24
24
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
28
28
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
29
 
@@ -33,9 +33,9 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
33
33
 
34
34
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
35
 
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
37
 
38
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
38
+ 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); }
39
39
 
40
40
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
41
41
 
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
37
37
 
38
38
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
39
 
40
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
40
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
42
42
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
43
43
 
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
47
47
 
48
48
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
49
49
 
50
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
50
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
51
 
52
52
  var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
53
53
  _inherits(PortalProviderAPI, _EventDispatcher);
@@ -55,7 +55,7 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
55
55
  var _super = _createSuper(PortalProviderAPI);
56
56
 
57
57
  function PortalProviderAPI() {
58
- var _this;
58
+ var _temp, _this;
59
59
 
60
60
  _classCallCheck(this, PortalProviderAPI);
61
61
 
@@ -63,9 +63,9 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
63
63
  args[_key] = arguments[_key];
64
64
  }
65
65
 
66
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
66
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
67
67
  _this.context = context;
68
- }, _assertThisInitialized(_this)));
68
+ }, _temp));
69
69
  }
70
70
 
71
71
  _createClass(PortalProviderAPI, [{
@@ -35,7 +35,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
35
35
 
36
36
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
37
 
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
40
40
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
41
 
@@ -45,7 +45,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
45
45
 
46
46
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
47
 
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
48
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
49
 
50
50
  var EditorPopup = /*#__PURE__*/function (_React$Component) {
51
51
  _inherits(EditorPopup, _React$Component);
@@ -53,7 +53,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
53
53
  var _super = _createSuper(EditorPopup);
54
54
 
55
55
  function EditorPopup() {
56
- var _this;
56
+ var _temp, _this;
57
57
 
58
58
  _classCallCheck(this, EditorPopup);
59
59
 
@@ -61,7 +61,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
61
61
  args[_key] = arguments[_key];
62
62
  }
63
63
 
64
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
64
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
65
65
  overflowScrollParent: false,
66
66
  validPosition: true
67
67
  }, _this.placement = ['', ''], _this.handleRef = function (popup) {
@@ -74,7 +74,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
74
74
  return _this.updatePosition(props);
75
75
  }), _this.onResize = function () {
76
76
  return _this.scheduledUpdatePosition();
77
- }, _assertThisInitialized(_this)));
77
+ }, _temp));
78
78
  }
79
79
 
80
80
  _createClass(EditorPopup, [{
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
37
37
 
38
38
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
39
 
40
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
40
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
42
42
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
43
43
 
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
47
47
 
48
48
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
49
49
 
50
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
50
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
51
 
52
52
  var cn = (0, _easyBem["default"])('indiana-scroll-container');
53
53
  var SCROLL_END_DEBOUNCE = 300;
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
 
28
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
29
 
30
30
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
31
 
@@ -25,7 +25,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
25
25
 
26
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
27
 
28
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
29
 
30
30
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
31
 
@@ -23,7 +23,7 @@ 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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
26
+ 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); }
27
27
 
28
28
  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; }
29
29
 
@@ -21,7 +21,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
23
 
24
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
+ 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); }
25
25
 
26
26
  function SearchDropDown(props) {
27
27
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -3,63 +3,58 @@
3
3
  }
4
4
 
5
5
  .search-input-box .search-input-icon {
6
- position: absolute;
7
6
  font-size: 14px;
7
+ color: rgba(0, 0, 0, 0.3);
8
+ cursor: pointer;
9
+ position: absolute;
8
10
  right: 10px;
9
11
  top: 50%;
10
12
  transform: translate(0, -50%);
11
- color: rgba(0, 0, 0, 0.3);
12
13
  }
13
14
 
14
15
  .search-input-box .search-input-icon:hover {
15
16
  color: #2879ff;
16
- cursor: pointer;
17
- }
18
-
19
- .search-input-box .search-input-icon-focus {
20
- color: #2879ff;
21
17
  }
22
18
 
23
19
  .search-input-box .clear-input-icon {
20
+ font-size: 16px;
21
+ opacity: 0;
22
+ transition: all .3s ease;
24
23
  color: #c2cbd1;
24
+ cursor: pointer;
25
+ visibility: 0;
25
26
  position: absolute;
26
- font-size: 16px;
27
27
  right: 32px;
28
28
  top: 50%;
29
- transform: translate(0, -50%);
29
+ transform: translate(0, -50%) scale(0);
30
30
  }
31
31
 
32
32
  .search-input-box .clear-input-icon:hover {
33
33
  color: #F05E5E;
34
- cursor: pointer;
35
34
  }
36
35
 
37
- .search-input-box .search-input-focus {
38
- border: 1px solid #2879ff !important;
36
+ .search-input-box .clear-input-icon--visible {
37
+ opacity: 1;
38
+ transform: translate(0, -50%) scale(1);
39
+ visibility: visible;
39
40
  }
40
41
 
41
- .search-input-box > input {
42
- background: #ffffff;
43
- border: 1px solid #e9edf0;
44
- border-radius: 18px;
42
+ .search-input-box__input {
45
43
  width: 100%;
46
44
  height: 100%;
47
- padding: 0 44px 0 11px;
48
- box-sizing: border-box;
45
+ padding: 0 50px 0 11px;
49
46
  font-size: 12px;
50
- transition: border 0.3s;
51
- -moz-transition: border 0.3s;
52
- /* Firefox 4 */
53
- -webkit-transition: border 0.3s;
54
- /* Safari and Chrome */
55
- -o-transition: border 0.3s;
56
- /* Opera */
47
+ border: 1px solid #e9edf0;
48
+ border-radius: 18px;
49
+ transition: all 0.3s ease;
50
+ background-color: #ffffff;
51
+ box-sizing: border-box;
57
52
  }
58
53
 
59
- .search-input-box > input:hover {
54
+ .search-input-box__input:hover, .search-input-box__input:focus {
60
55
  border: 1px solid #2879ff;
61
56
  }
62
57
 
63
- .search-input-box > input::placeholder {
58
+ .search-input-box__input::placeholder {
64
59
  color: #bfc7d5;
65
60
  }
@@ -5,12 +5,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = _default;
8
+ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
12
14
  require("./index.css");
13
15
 
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
14
18
  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); }
15
19
 
16
20
  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; }
@@ -33,28 +37,29 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
33
37
 
34
38
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
39
 
36
- function _default(props) {
37
- var onSearch = props.onSearch,
40
+ var prefixCls = 'search-input-box';
41
+
42
+ var SearchInput = function SearchInput(props) {
43
+ var _props$autoFocus = props.autoFocus,
44
+ autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,
45
+ onSearch = props.onSearch,
38
46
  placeholder = props.placeholder,
39
47
  setSearchKey = props.setSearchKey,
40
- propsValue = props.value,
41
48
  _props$style = props.style,
42
- style = _props$style === void 0 ? {} : _props$style;
49
+ style = _props$style === void 0 ? {} : _props$style,
50
+ propsValue = props.value;
43
51
 
44
- var _useState = (0, _react.useState)(''),
52
+ var _useState = (0, _react.useState)(false),
45
53
  _useState2 = _slicedToArray(_useState, 2),
46
- value = _useState2[0],
47
- setValue = _useState2[1];
54
+ searchWhenClear = _useState2[0],
55
+ setSearchWhenClear = _useState2[1];
48
56
 
49
- var _useState3 = (0, _react.useState)(false),
57
+ var _useState3 = (0, _react.useState)(''),
50
58
  _useState4 = _slicedToArray(_useState3, 2),
51
- focus = _useState4[0],
52
- setFocus = _useState4[1];
59
+ value = _useState4[0],
60
+ setValue = _useState4[1];
53
61
 
54
- var _useState5 = (0, _react.useState)(false),
55
- _useState6 = _slicedToArray(_useState5, 2),
56
- clearIconState = _useState6[0],
57
- setClearIconState = _useState6[1];
62
+ var inputRef = (0, _react.useRef)();
58
63
 
59
64
  var defaultStyle = _objectSpread({
60
65
  width: 230,
@@ -63,23 +68,18 @@ function _default(props) {
63
68
 
64
69
  (0, _react.useEffect)(function () {
65
70
  setValue(propsValue);
66
- if (!propsValue) setClearIconState(false);
67
71
  }, [propsValue]);
68
- var inputClassName = focus ? 'search-input-focus' : '';
69
- var iconClassName = focus ? 'search-input-icon-focus' : '';
70
- var clearIconStyle = {
71
- display: clearIconState ? 'inline' : 'none'
72
- };
73
72
 
74
73
  var handleInputChange = function handleInputChange(e) {
75
74
  var evalue = e.target.value;
76
75
  setValue(evalue);
77
76
  setSearchKey === null || setSearchKey === void 0 ? void 0 : setSearchKey(evalue);
78
- setClearIconState(evalue != '');
79
77
  };
80
78
 
81
- var handleFocusBlur = function handleFocusBlur(e) {
82
- setFocus(e.target === document.activeElement);
79
+ var handleSearch = function handleSearch() {
80
+ var searchKey = value === null || value === void 0 ? void 0 : value.trim();
81
+ setSearchWhenClear(!!searchKey);
82
+ onSearch === null || onSearch === void 0 ? void 0 : onSearch(searchKey);
83
83
  };
84
84
 
85
85
  var handleKeyPress = function handleKeyPress(e) {
@@ -88,51 +88,41 @@ function _default(props) {
88
88
  }
89
89
  };
90
90
 
91
- var handleSearch = function handleSearch() {
92
- onSearch === null || onSearch === void 0 ? void 0 : onSearch(value === null || value === void 0 ? void 0 : value.trim());
93
- };
94
-
95
- var clearValue = function clearValue(e) {
91
+ var clearValue = function clearValue() {
96
92
  setValue('');
97
93
  setSearchKey === null || setSearchKey === void 0 ? void 0 : setSearchKey('');
94
+ inputRef.current.focus();
98
95
 
99
- if (onSearch) {
100
- onSearch('');
96
+ if (propsValue || searchWhenClear) {
97
+ onSearch === null || onSearch === void 0 ? void 0 : onSearch('');
101
98
  }
102
-
103
- setClearIconState(false);
104
- };
105
-
106
- var onMouseOver = function onMouseOver(e) {
107
- setFocus(true);
108
- };
109
-
110
- var onMouseLeave = function onMouseLeave(e) {
111
- setFocus(false);
112
99
  };
113
100
 
114
101
  return /*#__PURE__*/_react["default"].createElement("div", {
115
- className: "search-input-box",
102
+ className: prefixCls,
116
103
  style: defaultStyle
117
104
  }, /*#__PURE__*/_react["default"].createElement("input", {
118
- className: inputClassName,
119
- onFocus: handleFocusBlur,
120
- onBlur: handleFocusBlur,
105
+ // eslint-disable-next-line jsx-a11y/no-autofocus
106
+ autoFocus: autoFocus,
107
+ className: "".concat(prefixCls, "__input"),
108
+ key: "input",
121
109
  onKeyPress: handleKeyPress,
122
- placeholder: placeholder,
123
110
  onChange: handleInputChange,
124
- value: value,
125
- key: "input"
111
+ placeholder: placeholder,
112
+ ref: inputRef,
113
+ value: value
126
114
  }), /*#__PURE__*/_react["default"].createElement("span", {
127
- className: "tu-icon-cross clear-input-icon",
128
- onClick: clearValue,
129
- style: clearIconStyle,
130
- key: "clear"
115
+ className: (0, _classnames["default"])('tu-icon-cross', 'clear-input-icon', {
116
+ 'clear-input-icon--visible': !!value
117
+ }),
118
+ key: "clear",
119
+ onClick: clearValue
131
120
  }), /*#__PURE__*/_react["default"].createElement("span", {
132
- onClick: handleSearch,
133
- className: "tu-icon-search search-input-icon ".concat(iconClassName),
134
- onMouseOver: onMouseOver,
135
- onMouseLeave: onMouseLeave,
136
- key: "search"
121
+ className: "tu-icon-search search-input-icon",
122
+ key: "search",
123
+ onClick: handleSearch
137
124
  }));
138
- }
125
+ };
126
+
127
+ var _default = SearchInput;
128
+ exports["default"] = _default;
@@ -13,7 +13,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
13
 
14
14
  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; }
15
15
 
16
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
+ 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); }
17
17
 
18
18
  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; }
19
19
 
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
30
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
40
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  var Option = /*#__PURE__*/function (_Component) {
45
45
  _inherits(Option, _Component);
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
47
47
  var _super = _createSuper(Option);
48
48
 
49
49
  function Option() {
50
- var _this;
50
+ var _temp, _this;
51
51
 
52
52
  _classCallCheck(this, Option);
53
53
 
@@ -55,7 +55,7 @@ var Option = /*#__PURE__*/function (_Component) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
58
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
59
59
  e.stopPropagation();
60
60
  e.nativeEvent.stopImmediatePropagation();
61
61
  var onSelect = _this.props.onSelect;
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
65
65
  height: _this.props.height,
66
66
  lineHeight: _this.props.height
67
67
  };
68
- }, _assertThisInitialized(_this)));
68
+ }, _temp));
69
69
  }
70
70
 
71
71
  _createClass(Option, [{
@@ -21,7 +21,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  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; }
23
23
 
24
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
+ 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); }
25
25
 
26
26
  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; }
27
27
 
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
37
37
 
38
38
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
39
 
40
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
40
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
42
42
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
43
43
 
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
47
47
 
48
48
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
49
49
 
50
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
50
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
51
 
52
52
  var index = /*#__PURE__*/function (_Component) {
53
53
  _inherits(index, _Component);
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
 
28
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
29
 
30
30
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
31