@hi-ui/hiui 2.15.11 → 2.15.12

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 (344) hide show
  1. package/es/_util/SwitchVersion.js +40 -0
  2. package/es/_util/depreactedPropsCompat.js +58 -0
  3. package/es/_util/index.js +31 -0
  4. package/es/_util/warning.js +2 -2
  5. package/es/alert/Alert.js +126 -0
  6. package/es/alert/__tests__/index.test.js +84 -0
  7. package/es/alert/index.js +6 -147
  8. package/es/alert/style/index.css +1 -1
  9. package/es/badge/Badge.js +82 -0
  10. package/es/badge/__tests__/index.test.js +82 -0
  11. package/es/badge/index.js +9 -87
  12. package/es/badge/style/index.css +1 -1
  13. package/es/badge/style/index.js +0 -0
  14. package/es/breadcrumb/__tests__/index.test.js +61 -0
  15. package/es/breadcrumb/index.js +85 -0
  16. package/es/breadcrumb/style/index.css +1 -0
  17. package/es/button/Button.js +62 -60
  18. package/es/button/ButtonGroup.js +24 -40
  19. package/es/button/IconLoading.js +6 -6
  20. package/es/button/__tests__/index.test.js +221 -0
  21. package/es/button/index.js +3 -2
  22. package/es/button/style/index.css +1 -1
  23. package/es/card/__tests__/index.test.js +179 -0
  24. package/es/card/index.js +61 -57
  25. package/es/card/style/index.css +1 -1
  26. package/es/carousel/__tests__/index.test.js +104 -0
  27. package/es/carousel/index.js +219 -0
  28. package/es/carousel/style/index.css +1 -0
  29. package/es/carousel/style/index.js +3 -0
  30. package/es/cascader/Cascader.js +190 -133
  31. package/es/cascader/Menu.js +168 -0
  32. package/es/cascader/__tests__/index.test.js +392 -0
  33. package/es/cascader/index.js +5 -2
  34. package/es/cascader/style/cascader.css +1 -1
  35. package/es/cascader/style/menu.css +1 -1
  36. package/es/checkbox/Checkbox.js +136 -0
  37. package/es/checkbox/Group.js +194 -0
  38. package/es/checkbox/__tests__/index.test.js +226 -0
  39. package/es/checkbox/checkbox-legacy/Base.js +212 -0
  40. package/es/checkbox/checkbox-legacy/CheckBox.js +157 -0
  41. package/es/checkbox/checkbox-legacy/index.js +15 -0
  42. package/es/checkbox/checkbox-legacy/style/index.css +1 -0
  43. package/es/checkbox/checkbox-legacy/style/index.js +3 -0
  44. package/es/checkbox/index.js +13 -4
  45. package/es/checkbox/style/index.css +1 -1
  46. package/es/collapse/__tests__/index.test.js +111 -0
  47. package/es/collapse/index.js +88 -110
  48. package/es/collapse/style/index.css +1 -1
  49. package/es/confirm/index.js +39 -60
  50. package/es/context/index.js +45 -51
  51. package/es/counter/Counter.js +339 -0
  52. package/es/counter/__tests__/index.test.js +134 -0
  53. package/es/counter/counter-legacy/index.js +267 -0
  54. package/es/counter/index.js +6 -270
  55. package/es/counter/style/index.css +1 -1
  56. package/es/date-picker/BasePicker.js +380 -302
  57. package/es/date-picker/Calender.js +326 -98
  58. package/es/date-picker/DatePanel.js +194 -213
  59. package/es/date-picker/DatePicker.js +143 -47
  60. package/es/date-picker/DateRangePanel.js +272 -208
  61. package/es/date-picker/Modal.js +18 -32
  62. package/es/date-picker/Time.js +231 -345
  63. package/es/date-picker/TimeList.js +246 -0
  64. package/es/date-picker/TimePanel.js +28 -41
  65. package/es/date-picker/TimePeriodPanel.js +27 -46
  66. package/es/date-picker/TimePicker.js +44 -46
  67. package/es/date-picker/TimeRangePanel.js +33 -51
  68. package/es/date-picker/Type.js +5 -1
  69. package/es/date-picker/WeekRangePanel.js +254 -175
  70. package/es/date-picker/YMRangePanel.js +364 -0
  71. package/es/date-picker/__tests__/index.test.js +956 -0
  72. package/es/date-picker/constants.js +14 -28
  73. package/es/date-picker/dateUtil.js +221 -52
  74. package/es/date-picker/datepicker-legacy/BasePicker.js +511 -0
  75. package/es/date-picker/datepicker-legacy/Calender.js +422 -0
  76. package/es/date-picker/datepicker-legacy/DatePanel.js +455 -0
  77. package/es/date-picker/datepicker-legacy/DatePicker.js +103 -0
  78. package/es/date-picker/datepicker-legacy/DateRangePanel.js +488 -0
  79. package/es/date-picker/datepicker-legacy/Modal.js +67 -0
  80. package/es/date-picker/datepicker-legacy/Time.js +405 -0
  81. package/es/date-picker/datepicker-legacy/TimePanel.js +85 -0
  82. package/es/date-picker/datepicker-legacy/TimePeriodPanel.js +118 -0
  83. package/es/date-picker/datepicker-legacy/TimePicker.js +78 -0
  84. package/es/date-picker/datepicker-legacy/TimeRangePanel.js +90 -0
  85. package/es/date-picker/datepicker-legacy/Type.js +31 -0
  86. package/es/date-picker/datepicker-legacy/WeekRangePanel.js +337 -0
  87. package/es/date-picker/datepicker-legacy/constants.js +79 -0
  88. package/es/date-picker/datepicker-legacy/dateUtil.js +258 -0
  89. package/es/date-picker/datepicker-legacy/index.js +15 -0
  90. package/es/date-picker/datepicker-legacy/local.js +11 -0
  91. package/es/date-picker/datepicker-legacy/style/index.css +1 -0
  92. package/es/date-picker/datepicker-legacy/style/index.js +3 -0
  93. package/es/date-picker/datepicker-legacy/style/timepicker.css +1 -0
  94. package/es/date-picker/datepicker-legacy/util.js +60 -0
  95. package/es/date-picker/index.js +5 -2
  96. package/es/date-picker/style/index.css +1 -1
  97. package/es/date-picker/toLunar.js +172 -0
  98. package/es/date-picker/util.js +101 -8
  99. package/es/dropdown/Dropdown.js +191 -203
  100. package/es/dropdown/DropdownButton.js +102 -0
  101. package/es/dropdown/DropdownMenu.js +107 -0
  102. package/es/dropdown/DropdownMenuItem.js +172 -0
  103. package/es/dropdown/__tests__/index.test.js +313 -0
  104. package/es/dropdown/index.js +69 -4
  105. package/es/dropdown/style/index.css +1 -1
  106. package/es/dropdown/style/index.js +0 -2
  107. package/es/dropdown/{__test__ → tests}/index.test.js +7 -7
  108. package/es/dropdown/utils.js +35 -0
  109. package/es/ficon/index.js +16 -30
  110. package/es/form/Form.js +176 -0
  111. package/es/form/{item.js → Item.js} +52 -60
  112. package/es/form/__tests__/index.test.js +571 -0
  113. package/es/form/index.js +6 -171
  114. package/es/form/style/index.css +1 -1
  115. package/es/grid/__tests__/index.test.js +100 -0
  116. package/es/grid/index.js +36 -56
  117. package/es/icon/index.js +23 -38
  118. package/es/index.js +61 -9
  119. package/es/input/Input.js +400 -0
  120. package/es/input/__tests__/index.test.js +376 -0
  121. package/es/input/index.js +26 -347
  122. package/es/input/input-legacy/index.js +341 -0
  123. package/es/input/input-legacy/util.js +176 -0
  124. package/es/input/style/index.css +1 -1
  125. package/es/input/util.js +26 -18
  126. package/es/lib/withDragDropContext.js +2 -2
  127. package/es/loading/Loading.js +173 -0
  128. package/es/loading/__tests__/index.test.js +110 -0
  129. package/es/loading/index.js +5 -129
  130. package/es/loading/style/index.css +0 -0
  131. package/es/loading/style/index.js +0 -0
  132. package/es/locales/en-US.js +45 -9
  133. package/es/locales/index.js +16 -2
  134. package/es/locales/zh-CN.js +46 -10
  135. package/es/locales/zh-Hant-HK.js +123 -0
  136. package/es/locales/zh-Hant-TW.js +125 -0
  137. package/es/menu/Item.js +34 -51
  138. package/es/menu/Menu.js +414 -0
  139. package/es/menu/SubMenu.js +63 -90
  140. package/es/menu/Title.js +37 -51
  141. package/es/menu/__tests__/index.test.js +274 -0
  142. package/es/menu/index.js +12 -419
  143. package/es/menu/style/index.css +1 -1
  144. package/es/message/__tests__/index.test.js +71 -0
  145. package/es/message/index.js +58 -0
  146. package/es/message/style/index.css +1 -0
  147. package/es/message/style/index.js +5 -0
  148. package/es/modal/__tests__/index.test.js +178 -0
  149. package/es/modal/index.js +85 -77
  150. package/es/modal/style/index.css +1 -1
  151. package/es/nav-menu/NavMenu.js +44 -61
  152. package/es/nav-menu/__test__/index.test.js +8 -8
  153. package/es/nav-menu/__tests__/index.test.js +23 -0
  154. package/es/nav-menu/index.js +2 -2
  155. package/es/notice/Notice.js +136 -0
  156. package/es/notice/NoticeContainer.js +107 -0
  157. package/es/notice/__tests__/index.test.js +174 -0
  158. package/es/notice/index.js +66 -0
  159. package/es/notice/style/index.css +1 -0
  160. package/es/notice/style/index.js +5 -0
  161. package/es/notification/HandleNotification/index.js +216 -0
  162. package/es/notification/HandleNotification/style/index.css +1 -0
  163. package/es/notification/HandleNotification/style/index.js +5 -0
  164. package/es/notification/__tests__/index.test.js +114 -0
  165. package/es/notification/index.js +68 -231
  166. package/es/notification/style/index.css +1 -1
  167. package/es/notification/style/index.js +0 -0
  168. package/es/pagination/Pager.js +7 -9
  169. package/es/pagination/Pagination.js +134 -133
  170. package/es/pagination/__tests__/index.test.js +244 -0
  171. package/es/pagination/index.js +9 -8
  172. package/es/pagination/style/index.css +1 -1
  173. package/es/panel/index.js +28 -46
  174. package/es/popover/__test__/index.test.js +10 -10
  175. package/es/popover/__tests__/index.test.js +152 -0
  176. package/es/popover/index.js +77 -83
  177. package/es/popper/index.js +68 -64
  178. package/es/popper/style/index.css +1 -1
  179. package/es/preview/index.js +529 -0
  180. package/es/preview/style/index.css +1 -0
  181. package/es/preview/style/index.js +3 -0
  182. package/es/progress/BarProgress.js +107 -43
  183. package/es/progress/CircleProgress.js +13 -14
  184. package/es/progress/DashboardProgress.js +11 -13
  185. package/es/progress/Progress.js +102 -0
  186. package/es/progress/__tests__/index.test.js +131 -0
  187. package/es/progress/index.js +8 -100
  188. package/es/progress/style/index.css +1 -1
  189. package/es/radio/Group.js +199 -0
  190. package/es/radio/Radio.js +147 -0
  191. package/es/radio/__tests__/index.test.js +127 -0
  192. package/es/radio/index.js +10 -216
  193. package/es/radio/{__test__ → radio-legacy/__test__}/index.test.js +13 -13
  194. package/es/radio/radio-legacy/index.js +214 -0
  195. package/es/radio/radio-legacy/style/index.css +1 -0
  196. package/es/radio/radio-legacy/style/index.js +3 -0
  197. package/es/radio/style/index.css +1 -1
  198. package/es/rate/Icons.js +70 -70
  199. package/es/rate/Rate.js +75 -108
  200. package/es/rate/__tests__/index.test.js +124 -0
  201. package/es/rate/index.js +5 -2
  202. package/es/rate/style/index.css +1 -1
  203. package/es/select/Select.js +330 -265
  204. package/es/select/SelectDropdown.js +223 -79
  205. package/es/select/SelectInput.js +120 -91
  206. package/es/select/__tests__/index.test.js +505 -0
  207. package/es/select/index.js +6 -4
  208. package/es/select/select-legacy/Option.js +78 -0
  209. package/es/select/select-legacy/Select.js +702 -0
  210. package/es/select/select-legacy/SelectDropdown.js +157 -0
  211. package/es/select/select-legacy/SelectInput.js +308 -0
  212. package/es/select/select-legacy/common.js +19 -0
  213. package/es/select/select-legacy/index.js +16 -0
  214. package/es/select/style/select-dropdown.css +1 -1
  215. package/es/select/style/select-input.css +1 -1
  216. package/es/stepper/Stepper.js +147 -0
  217. package/es/stepper/__tests__/index.test.js +161 -0
  218. package/es/stepper/index.js +21 -127
  219. package/es/stepper/style/index.css +1 -1
  220. package/es/style/icon/diyIcon.css +1 -1
  221. package/es/style/icon/index.css +1 -1
  222. package/es/switch/__tests__/index.test.js +68 -0
  223. package/es/switch/index.js +26 -46
  224. package/es/switch/style/index.css +1 -1
  225. package/es/table/Body.js +294 -0
  226. package/es/table/ClickOuterside.js +95 -0
  227. package/es/table/Footer.js +171 -0
  228. package/es/table/Header.js +320 -0
  229. package/es/table/TableContent.js +101 -0
  230. package/es/table/__tests__/index.test.js +129 -0
  231. package/es/table/checkbox/index.js +36 -47
  232. package/es/table/checkbox/style/index.css +1 -0
  233. package/es/table/checkbox/style/index.js +3 -0
  234. package/es/table/index.js +269 -314
  235. package/es/table/menu/index.js +34 -44
  236. package/es/table/prefix.js +2 -2
  237. package/es/table/style/Table.css +1 -1
  238. package/es/table/style/index.css +1 -1
  239. package/es/tabs/ItemDropdown.js +45 -65
  240. package/es/tabs/TabPane.js +26 -44
  241. package/es/tabs/Tabs.js +110 -111
  242. package/es/tabs/__tests__/index.test.js +329 -0
  243. package/es/tabs/index.js +9 -3
  244. package/es/tabs/style/index.css +1 -1
  245. package/es/tabs/tabs-legacy/ItemDropdown.js +162 -0
  246. package/es/tabs/tabs-legacy/TabPane.js +70 -0
  247. package/es/tabs/tabs-legacy/Tabs.js +291 -0
  248. package/es/tabs/tabs-legacy/index.js +18 -0
  249. package/es/tabs/tabs-legacy/style/index.css +1 -0
  250. package/es/tabs/tabs-legacy/style/index.js +3 -0
  251. package/es/tag/__tests__/index.test.js +46 -0
  252. package/es/tag/index.js +86 -0
  253. package/es/tag/style/index.css +1 -0
  254. package/es/tag/style/index.js +3 -0
  255. package/es/timeline/__tests__/index.test.js +198 -0
  256. package/es/timeline/index.js +206 -136
  257. package/es/timeline/style/index.css +1 -1
  258. package/es/tooltip/__tests__/index.test.js +166 -0
  259. package/es/tooltip/index.js +93 -52
  260. package/es/tooltip/style/index.css +1 -1
  261. package/es/transfer/Item.js +73 -71
  262. package/es/transfer/Transfer.js +558 -0
  263. package/es/transfer/__tests__/index.test.js +210 -0
  264. package/es/transfer/index.js +4 -443
  265. package/es/transfer/style/index.css +1 -1
  266. package/es/tree/IconLoading.js +38 -0
  267. package/es/tree/Tree.js +94 -111
  268. package/es/tree/TreeDivider.js +6 -6
  269. package/es/tree/TreeItem.js +217 -123
  270. package/es/tree/TreeNode.js +472 -333
  271. package/es/tree/__tests__/index.test.js +599 -0
  272. package/es/tree/index.js +9 -2
  273. package/es/tree/style/index.css +1 -1
  274. package/es/tree/tree-legacy/Tree.js +330 -0
  275. package/es/tree/tree-legacy/TreeDivider.js +25 -0
  276. package/es/tree/tree-legacy/TreeItem.js +326 -0
  277. package/es/tree/tree-legacy/TreeNode.js +711 -0
  278. package/es/tree/tree-legacy/index.js +13 -0
  279. package/es/tree/tree-legacy/style/index.css +1 -0
  280. package/es/tree/tree-legacy/style/index.js +3 -0
  281. package/es/tree/tree-legacy/util.js +434 -0
  282. package/es/tree/util.js +8 -256
  283. package/es/upload/Upload.js +292 -200
  284. package/es/upload/UploadAvatar.js +61 -79
  285. package/es/upload/UploadClick.js +62 -60
  286. package/es/upload/UploadDrag.js +63 -66
  287. package/es/upload/UploadPhoto.js +86 -75
  288. package/es/upload/UploadPictureCard.js +53 -60
  289. package/es/upload/__tests__/index.test.js +760 -0
  290. package/es/upload/index.js +8 -71
  291. package/es/upload/main.js +83 -0
  292. package/es/upload/style/index.css +1 -1
  293. package/es/upload/tool.js +0 -1
  294. package/es/upload/{Preview.js → upload-legacy/Preview.js} +48 -62
  295. package/es/upload/upload-legacy/Upload.js +431 -0
  296. package/es/upload/upload-legacy/UploadAvatar.js +318 -0
  297. package/es/upload/upload-legacy/UploadClick.js +121 -0
  298. package/es/upload/upload-legacy/UploadDrag.js +176 -0
  299. package/es/upload/upload-legacy/UploadPhoto.js +179 -0
  300. package/es/upload/upload-legacy/UploadPictureCard.js +122 -0
  301. package/es/upload/upload-legacy/index.js +67 -0
  302. package/es/upload/upload-legacy/style/index.css +1 -0
  303. package/es/upload/upload-legacy/style/index.js +5 -0
  304. package/es/upload/upload-legacy/tool.js +84 -0
  305. package/es/watermark/index.js +97 -0
  306. package/es/watermark/watermark.js +263 -0
  307. package/package.json +1 -1
  308. package/es/alert/__test__/index.test.js +0 -67
  309. package/es/button/__test__/index.test.js +0 -29
  310. package/es/cascader/__test__/index.test.js +0 -283
  311. package/es/cascader/menu.js +0 -155
  312. package/es/checkbox/Base.js +0 -205
  313. package/es/checkbox/CheckBox.js +0 -185
  314. package/es/collapse/__test__/index.test.js +0 -58
  315. package/es/counter/__test__/index.test.js +0 -52
  316. package/es/menu/ItemGroup.js +0 -81
  317. package/es/modal/__test__/index.test.js +0 -123
  318. package/es/notification/__test__/index.test.js +0 -56
  319. package/es/pagination/__test__/index.test.js +0 -140
  320. package/es/rate/__test__/index.test.js +0 -54
  321. package/es/select/Option.js +0 -93
  322. package/es/select/__test__/index.test.js +0 -429
  323. package/es/style/color/colors.css +0 -0
  324. package/es/style/index.css +0 -0
  325. package/es/style/mixins/colors.css +0 -0
  326. package/es/style/mixins/index.css +0 -0
  327. package/es/style/theme/dark.css +0 -0
  328. package/es/style/theme/default.css +0 -0
  329. package/es/switch/__test__/index.test.js +0 -39
  330. package/es/table/__test__/index.test.js +0 -73
  331. package/es/table/body.js +0 -318
  332. package/es/table/clickOuterside.js +0 -115
  333. package/es/table/footer.js +0 -196
  334. package/es/table/header.js +0 -337
  335. package/es/table/pover.js +0 -154
  336. package/es/table/tableContent.js +0 -120
  337. package/es/timeline/__test__/index.test.js +0 -49
  338. package/es/timeline/foldingItem.js +0 -82
  339. package/es/tooltip/__test__/index.test.js +0 -67
  340. package/es/transfer/__test__/index.test.js +0 -11
  341. /package/es/{style → breadcrumb/style}/index.js +0 -0
  342. /package/es/checkbox/{common.js → checkbox-legacy/common.js} +0 -0
  343. /package/es/upload/{style → upload-legacy/style}/preview.css +0 -0
  344. /package/es/upload/{style → upload-legacy/style}/preview.js +0 -0
@@ -1,10 +1,26 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
3
7
  Object.defineProperty(exports, "__esModule", {
4
8
  value: true
5
9
  });
6
10
  exports["default"] = void 0;
7
11
 
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
+
20
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
+
22
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
23
+
8
24
  var _react = _interopRequireWildcard(require("react"));
9
25
 
10
26
  var _Calender = _interopRequireDefault(require("./Calender"));
@@ -17,103 +33,48 @@ var _icon = _interopRequireDefault(require("../icon"));
17
33
 
18
34
  var _classnames = _interopRequireDefault(require("classnames"));
19
35
 
20
- var _context = _interopRequireDefault(require("../context"));
21
-
22
36
  var _TimePeriodPanel = _interopRequireDefault(require("./TimePeriodPanel"));
23
37
 
24
38
  var _dateUtil = require("./dateUtil");
25
39
 
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
-
28
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
29
-
30
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
31
-
32
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
33
-
34
- 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); }
35
-
36
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
37
-
38
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
39
-
40
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
41
-
42
- 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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
43
-
44
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
-
46
- 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); }; }
47
-
48
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
49
-
50
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
51
-
52
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
53
-
54
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
55
-
56
- var DatePanel = /*#__PURE__*/function (_Component) {
57
- _inherits(DatePanel, _Component);
58
-
59
- var _super = _createSuper(DatePanel);
40
+ var DatePanel =
41
+ /*#__PURE__*/
42
+ function (_Component) {
43
+ (0, _inherits2["default"])(DatePanel, _Component);
60
44
 
61
45
  function DatePanel(props) {
62
46
  var _this;
63
47
 
64
- _classCallCheck(this, DatePanel);
65
-
66
- _this = _super.call(this, props);
48
+ (0, _classCallCheck2["default"])(this, DatePanel);
49
+ _this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(DatePanel).call(this, props));
67
50
  _this.state = {
68
- date: props.date,
69
51
  currentView: props.type,
70
52
  yearData: [],
71
- monthData: []
53
+ monthData: [],
54
+ staticDate: (0, _dateUtil.getStartDate)(props.date)
72
55
  };
73
56
  return _this;
74
57
  }
58
+ /**
59
+ * 改变月份事件
60
+ * @param {Number} num 加减值
61
+ */
75
62
 
76
- _createClass(DatePanel, [{
77
- key: "componentWillReceiveProps",
78
- value: function componentWillReceiveProps(nextProps) {
79
- this.setState({
80
- date: nextProps.date
81
- });
82
- }
83
- /**
84
- * 改变月份事件
85
- * @param {Number} num 加减值
86
- */
87
63
 
88
- }, {
64
+ (0, _createClass2["default"])(DatePanel, [{
89
65
  key: "changeMonth",
90
66
  value: function changeMonth(flag) {
91
- var date = this.state.date;
92
-
93
- var _deconstructDate = (0, _util.deconstructDate)(date),
94
- year = _deconstructDate.year,
95
- month = _deconstructDate.month;
67
+ var staticDate = this.state.staticDate;
68
+ var cDate = (0, _dateUtil.getValidDate)(staticDate);
96
69
 
97
70
  if (flag) {
98
- month -= 1;
99
-
100
- if (month < 0) {
101
- month = 12;
102
- year -= 1;
103
- }
71
+ cDate = (0, _dateUtil.subMonths)(cDate, 1);
104
72
  } else {
105
- month += 1;
106
-
107
- if (month > 12) {
108
- month = 1;
109
- year += 1;
110
- }
73
+ cDate = (0, _dateUtil.addMonths)(cDate, 1);
111
74
  }
112
75
 
113
- date.setFullYear(year);
114
- date.setMonth(month - 1);
115
76
  this.setState({
116
- date: date
77
+ staticDate: cDate
117
78
  });
118
79
  }
119
80
  /**
@@ -124,12 +85,12 @@ var DatePanel = /*#__PURE__*/function (_Component) {
124
85
  }, {
125
86
  key: "changeYear",
126
87
  value: function changeYear(flag) {
127
- var _this$state = this.state,
128
- date = _this$state.date,
129
- currentView = _this$state.currentView;
88
+ var currentView = this.state.currentView;
89
+ var staticDate = this.state.staticDate;
90
+ var cDate = (0, _dateUtil.getValidDate)(staticDate);
130
91
 
131
- var _deconstructDate2 = (0, _util.deconstructDate)(date),
132
- year = _deconstructDate2.year;
92
+ var _deconstructDate = (0, _util.deconstructDate)(cDate),
93
+ year = _deconstructDate.year;
133
94
 
134
95
  var num = currentView === 'year' ? 10 : 1;
135
96
 
@@ -137,33 +98,16 @@ var DatePanel = /*#__PURE__*/function (_Component) {
137
98
  year -= num;
138
99
  } else {
139
100
  year += num;
140
- } // day = this.calcDayCount(year, month)
141
-
101
+ }
142
102
 
143
- date.setFullYear(year);
103
+ cDate.setFullYear(year);
144
104
  this.setState({
145
- date: date
146
- });
147
- }
148
- }, {
149
- key: "renderInput",
150
- value: function renderInput() {
151
- var _this2 = this;
152
-
153
- return /*#__PURE__*/_react["default"].createElement("input", {
154
- type: "text",
155
- className: "dp-input",
156
- onClick: function onClick() {
157
- _this2.setState({
158
- show: !_this2.state.show
159
- });
160
- },
161
- value: this.state.value
105
+ staticDate: cDate
162
106
  });
163
107
  }
164
108
  }, {
165
109
  key: "getYearOrMonthData",
166
- value: function getYearOrMonthData(val, type) {
110
+ value: function getYearOrMonthData(val, type, _year) {
167
111
  var start = type === 'year' ? val - 4 : 1;
168
112
  var trs = [[], [], [], []];
169
113
  var num = 0;
@@ -187,7 +131,7 @@ var DatePanel = /*#__PURE__*/function (_Component) {
187
131
  col.type = 'current';
188
132
  }
189
133
 
190
- type === 'year' ? col.text = y : col.text = this.props.localeDatas.datePicker.month[y - 1];
134
+ col = (0, _util.colDisabled)(type, col, _year, this.props, y);
191
135
  col.value = y;
192
136
  num++;
193
137
  }
@@ -208,18 +152,22 @@ var DatePanel = /*#__PURE__*/function (_Component) {
208
152
  var _this$props = this.props,
209
153
  localeDatas = _this$props.localeDatas,
210
154
  locale = _this$props.locale;
211
- var _this$state2 = this.state,
212
- date = _this$state2.date,
213
- currentView = _this$state2.currentView;
155
+ var _this$state = this.state,
156
+ staticDate = _this$state.staticDate,
157
+ currentView = _this$state.currentView;
214
158
 
215
- var _deconstructDate3 = (0, _util.deconstructDate)(date),
216
- year = _deconstructDate3.year,
217
- month = _deconstructDate3.month;
159
+ var _deconstructDate2 = (0, _util.deconstructDate)((0, _dateUtil.getValidDate)(staticDate)),
160
+ year = _deconstructDate2.year,
161
+ month = _deconstructDate2.month;
218
162
 
219
163
  if (currentView === 'year') {
220
164
  return year - 4 + '~' + (year + 7);
221
165
  }
222
166
 
167
+ if (currentView === 'month') {
168
+ return year;
169
+ }
170
+
223
171
  var arr = [localeDatas.datePicker.monthShort[month - 1]];
224
172
 
225
173
  if (locale === 'zh-CN') {
@@ -242,45 +190,45 @@ var DatePanel = /*#__PURE__*/function (_Component) {
242
190
 
243
191
  }, {
244
192
  key: "renderHeader",
245
- value: function renderHeader(type, value) {
246
- var _this3 = this;
193
+ value: function renderHeader(type) {
194
+ var _this2 = this;
247
195
 
248
- return /*#__PURE__*/_react["default"].createElement("div", {
196
+ return _react["default"].createElement("div", {
249
197
  className: "hi-datepicker__header"
250
- }, /*#__PURE__*/_react["default"].createElement("div", {
198
+ }, _react["default"].createElement("div", {
251
199
  className: "hi-datepicker__header-btns"
252
- }, /*#__PURE__*/_react["default"].createElement("span", {
200
+ }, _react["default"].createElement("span", {
253
201
  onClick: function onClick() {
254
- return _this3.changeYear(true);
202
+ return _this2.changeYear(true);
255
203
  }
256
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
204
+ }, _react["default"].createElement(_icon["default"], {
257
205
  name: "double-left"
258
- })), type !== 'month' && type !== 'year' && /*#__PURE__*/_react["default"].createElement("span", {
206
+ })), type !== 'month' && type !== 'year' && _react["default"].createElement("span", {
259
207
  onClick: function onClick() {
260
- return _this3.changeMonth(true);
208
+ return _this2.changeMonth(true);
261
209
  }
262
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
210
+ }, _react["default"].createElement(_icon["default"], {
263
211
  name: "left"
264
- }))), /*#__PURE__*/_react["default"].createElement("span", {
212
+ }))), _react["default"].createElement("span", {
265
213
  className: "hi-datepicker__header-text",
266
214
  onClick: function onClick() {
267
- return _this3.setState({
215
+ return _this2.setState({
268
216
  currentView: 'year'
269
217
  });
270
218
  }
271
- }, this.getHeaderCenterContent()), /*#__PURE__*/_react["default"].createElement("div", {
219
+ }, this.getHeaderCenterContent()), _react["default"].createElement("div", {
272
220
  className: "hi-datepicker__header-btns"
273
- }, type !== 'month' && type !== 'year' && /*#__PURE__*/_react["default"].createElement("span", {
221
+ }, type !== 'month' && type !== 'year' && _react["default"].createElement("span", {
274
222
  onClick: function onClick() {
275
- return _this3.changeMonth(false);
223
+ return _this2.changeMonth(false);
276
224
  }
277
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
225
+ }, _react["default"].createElement(_icon["default"], {
278
226
  name: "right"
279
- })), /*#__PURE__*/_react["default"].createElement("span", {
227
+ })), _react["default"].createElement("span", {
280
228
  onClick: function onClick() {
281
- return _this3.changeYear(false);
229
+ return _this2.changeYear(false);
282
230
  }
283
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
231
+ }, _react["default"].createElement(_icon["default"], {
284
232
  name: "double-right"
285
233
  }))));
286
234
  }
@@ -295,100 +243,121 @@ var DatePanel = /*#__PURE__*/function (_Component) {
295
243
  onPick(date);
296
244
  } else {
297
245
  this.setState({
298
- date: date,
299
- currentView: 'month'
246
+ currentView: 'month',
247
+ staticDate: date
300
248
  });
301
249
  }
302
250
  }
303
251
  }, {
304
252
  key: "monthPick",
305
253
  value: function monthPick(_date) {
254
+ var _this3 = this;
255
+
306
256
  var _this$props3 = this.props,
307
257
  type = _this$props3.type,
308
258
  onPick = _this$props3.onPick;
309
- var date = this.state.date;
259
+ var currentView = this.state.currentView;
310
260
 
311
261
  if (type === 'month') {
312
262
  onPick(_date);
263
+ } else if (type === 'week') {
264
+ this.setState({
265
+ currentView: 'week'
266
+ });
267
+ onPick(_date, true);
313
268
  } else {
314
- date.setFullYear(_date.getFullYear());
315
- date.setMonth(_date.getMonth());
316
269
  this.setState({
317
- date: date,
318
270
  currentView: 'date'
271
+ }, function () {
272
+ if (currentView === type) {
273
+ onPick(_date, true);
274
+ } else {
275
+ _this3.setState({
276
+ staticDate: _date
277
+ });
278
+ }
319
279
  });
320
280
  }
321
281
  }
322
282
  }, {
323
283
  key: "onDatePick",
324
- value: function onDatePick(date) {
284
+ value: function onDatePick(_date) {
325
285
  var _this$props4 = this.props,
326
286
  type = _this$props4.type,
327
- showTime = _this$props4.showTime;
328
-
329
- var _deconstructDate4 = (0, _util.deconstructDate)(this.state.date),
330
- hours = _deconstructDate4.hours,
331
- minutes = _deconstructDate4.minutes,
332
- seconds = _deconstructDate4.seconds;
287
+ showTime = _this$props4.showTime,
288
+ onPick = _this$props4.onPick,
289
+ timeInterval = _this$props4.timeInterval,
290
+ weekOffset = _this$props4.weekOffset;
291
+
292
+ if (type === 'week') {
293
+ var _weekOffset = {
294
+ weekStartsOn: weekOffset
295
+ };
296
+ var weekStart = (0, _dateUtil.startOfWeek)(_date, _weekOffset);
297
+ var weekEnd = (0, _dateUtil.endOfWeek)(_date, _weekOffset);
298
+ onPick({
299
+ startDate: weekStart,
300
+ endDate: weekEnd
301
+ }, false);
302
+ return;
303
+ }
333
304
 
334
305
  if (type === 'timeperiod') {
335
- this.props.onPick({
336
- startDate: date,
337
- endDate: (0, _dateUtil.addHours)(this.state.date, 4)
306
+ onPick({
307
+ startDate: _date,
308
+ endDate: new Date(_date.getTime() + timeInterval * 60 * 1000)
338
309
  }, true);
339
310
  } else {
340
- date.setHours(hours, minutes, seconds);
341
- this.props.onPick(date, showTime);
311
+ // date.setHours(hours, minutes, seconds)
312
+ onPick(_date, showTime);
342
313
  }
314
+
315
+ this.setState({
316
+ staticDate: _date
317
+ });
343
318
  }
344
319
  }, {
345
320
  key: "onTimePeriodPick",
346
321
  value: function onTimePeriodPick(periodS, periodE) {
347
- var currentDate = (0, _dateUtil.dateFormat)(this.state.date, 'YYYY-MM-DD');
348
- var _endCurrentDate = currentDate;
349
- if (periodE === '24:00') _endCurrentDate = (0, _dateUtil.dateFormat)((0, _dateUtil.addDays)(currentDate, 1), 'YYYY-MM-DD');
322
+ var date = (0, _dateUtil.getStartDate)(this.props.date);
323
+ var currentDate = (0, _dateUtil.dateFormat)(date, 'yyyy-MM-dd');
350
324
  this.props.onPick({
351
- startDate: (0, _dateUtil.parse)("".concat(currentDate, " ").concat(periodS)),
352
- endDate: (0, _dateUtil.parse)("".concat(_endCurrentDate, " ").concat(periodE))
325
+ startDate: (0, _dateUtil.parseISO)("".concat(currentDate, " ").concat(periodS)),
326
+ endDate: (0, _dateUtil.parseISO)("".concat(currentDate, " ").concat(periodE))
353
327
  }, true);
354
328
  }
355
329
  }, {
356
330
  key: "onTimePick",
357
331
  value: function onTimePick(date, bol) {
358
332
  this.setState({
359
- date: date
360
- }); // if (showTime) {
361
- // this.setState({date})
362
- // } else {
363
- // this.props.onPick(date)
364
- // }
365
-
333
+ date: date,
334
+ staticDate: date
335
+ });
366
336
  this.props.onPick(date, bol);
367
337
  }
368
- }, {
369
- key: "timeConfirm",
370
- value: function timeConfirm() {
371
- this.props.timeConfirm(this.state.date);
372
- }
373
- }, {
374
- key: "timeCancel",
375
- value: function timeCancel() {}
376
338
  }, {
377
339
  key: "_getNormalComponent",
378
340
  value: function _getNormalComponent() {
379
- var _this4 = this;
380
-
381
- var _this$state3 = this.state,
382
- currentView = _this$state3.currentView,
383
- date = _this$state3.date;
341
+ var currentView = this.state.currentView;
384
342
  var _this$props5 = this.props,
385
- minDate = _this$props5.minDate,
386
- maxDate = _this$props5.maxDate,
387
- weekOffset = _this$props5.weekOffset;
388
-
389
- var _deconstructDate5 = (0, _util.deconstructDate)(date),
390
- year = _deconstructDate5.year,
391
- month = _deconstructDate5.month;
343
+ min = _this$props5.min,
344
+ max = _this$props5.max,
345
+ weekOffset = _this$props5.weekOffset,
346
+ disabledDate = _this$props5.disabledDate,
347
+ showLunar = _this$props5.showLunar,
348
+ altCalendar = _this$props5.altCalendar,
349
+ altCalendarPreset = _this$props5.altCalendarPreset,
350
+ dateMarkRender = _this$props5.dateMarkRender,
351
+ dateMarkPreset = _this$props5.dateMarkPreset,
352
+ altCalendarPresetData = _this$props5.altCalendarPresetData,
353
+ dateMarkPresetData = _this$props5.dateMarkPresetData,
354
+ onSelect = _this$props5.onSelect;
355
+ var staticDate = this.state.staticDate;
356
+ var validDate = (0, _dateUtil.getValidDate)(staticDate);
357
+
358
+ var _deconstructDate3 = (0, _util.deconstructDate)(validDate),
359
+ year = _deconstructDate3.year,
360
+ month = _deconstructDate3.month;
392
361
 
393
362
  var component = null;
394
363
 
@@ -396,20 +365,37 @@ var DatePanel = /*#__PURE__*/function (_Component) {
396
365
  case 'date':
397
366
  case 'timeperiod':
398
367
  case 'week':
399
- component = /*#__PURE__*/_react["default"].createElement(_Calender["default"], {
400
- date: date,
368
+ component = _react["default"].createElement(_Calender["default"], {
369
+ altCalendarPresetData: altCalendarPresetData,
370
+ dateMarkPresetData: dateMarkPresetData,
371
+ altCalendar: altCalendar,
372
+ onSelect: onSelect,
373
+ altCalendarPreset: altCalendarPreset,
374
+ dateMarkRender: dateMarkRender,
375
+ dateMarkPreset: dateMarkPreset,
376
+ showLunar: showLunar,
377
+ date: validDate,
401
378
  weekOffset: weekOffset,
402
- minDate: minDate,
403
- maxDate: maxDate,
379
+ minDate: min,
380
+ maxDate: max,
381
+ disabledDate: disabledDate,
404
382
  type: currentView,
405
383
  onPick: this.onDatePick.bind(this)
406
384
  });
407
385
  break;
408
386
 
409
387
  case 'year':
410
- var yearData = this.getYearOrMonthData(year, 'year');
411
- component = /*#__PURE__*/_react["default"].createElement(_Calender["default"], {
412
- date: date,
388
+ var yearData = this.getYearOrMonthData(year, 'year', year);
389
+ component = _react["default"].createElement(_Calender["default"], {
390
+ altCalendarPresetData: altCalendarPresetData,
391
+ dateMarkPresetData: dateMarkPresetData,
392
+ altCalendar: altCalendar,
393
+ altCalendarPreset: altCalendarPreset,
394
+ dateMarkRender: dateMarkRender,
395
+ onSelect: onSelect,
396
+ dateMarkPreset: dateMarkPreset,
397
+ showLunar: showLunar,
398
+ date: validDate,
413
399
  data: yearData,
414
400
  type: currentView,
415
401
  onPick: this.yearPick.bind(this)
@@ -417,23 +403,22 @@ var DatePanel = /*#__PURE__*/function (_Component) {
417
403
  break;
418
404
 
419
405
  case 'month':
420
- var monthData = this.getYearOrMonthData(month, 'month');
421
- component = /*#__PURE__*/_react["default"].createElement(_Calender["default"], {
422
- date: date,
406
+ var monthData = this.getYearOrMonthData(month, 'month', year);
407
+ component = _react["default"].createElement(_Calender["default"], {
408
+ altCalendarPresetData: altCalendarPresetData,
409
+ dateMarkPresetData: dateMarkPresetData,
410
+ altCalendar: altCalendar,
411
+ altCalendarPreset: altCalendarPreset,
412
+ dateMarkRender: dateMarkRender,
413
+ dateMarkPreset: dateMarkPreset,
414
+ onSelect: onSelect,
415
+ showLunar: showLunar,
416
+ date: validDate,
423
417
  data: monthData,
424
418
  type: currentView,
425
419
  onPick: this.monthPick.bind(this)
426
420
  });
427
421
  break;
428
-
429
- default:
430
- component = /*#__PURE__*/_react["default"].createElement(_Calender["default"], _extends({}, this.props, {
431
- date: date,
432
- onClick: function onClick(data) {
433
- _this4.changeDay(data.value);
434
- }
435
- }));
436
- break;
437
422
  }
438
423
 
439
424
  return component;
@@ -441,9 +426,9 @@ var DatePanel = /*#__PURE__*/function (_Component) {
441
426
  }, {
442
427
  key: "render",
443
428
  value: function render() {
444
- var _this$state4 = this.state,
445
- date = _this$state4.date,
446
- currentView = _this$state4.currentView;
429
+ var _this$state2 = this.state,
430
+ date = _this$state2.date,
431
+ currentView = _this$state2.currentView;
447
432
  var _this$props6 = this.props,
448
433
  theme = _this$props6.theme,
449
434
  showTime = _this$props6.showTime,
@@ -452,32 +437,28 @@ var DatePanel = /*#__PURE__*/function (_Component) {
452
437
 
453
438
  var _c = (0, _classnames["default"])('hi-datepicker', theme && 'theme__' + theme);
454
439
 
455
- var bodyCls = (0, _classnames["default"])('hi-datepicker__body', showTime && 'hi-datepicker__body--hastime', type === 'timeperiod' && 'hi-datepicker__body--period');
456
- return /*#__PURE__*/_react["default"].createElement("div", {
440
+ var bodyCls = (0, _classnames["default"])('hi-datepicker__body', showTime && 'hi-datepicker__body--hastime', type === 'timeperiod' && 'hi-datepicker__body--period', (0, _util.showLargeCalendar)(this.props) && 'hi-datepicker__body--large');
441
+ return _react["default"].createElement("div", {
457
442
  style: this.props.style,
458
443
  className: _c
459
- }, /*#__PURE__*/_react["default"].createElement("div", {
444
+ }, _react["default"].createElement("div", {
460
445
  className: bodyCls
461
- }, /*#__PURE__*/_react["default"].createElement("div", {
446
+ }, _react["default"].createElement("div", {
462
447
  className: "hi-datepicker__panel hi-datepicker__panel--left"
463
- }, currentView !== 'time' && this.renderHeader(currentView, date), /*#__PURE__*/_react["default"].createElement("div", {
448
+ }, currentView !== 'time' && this.renderHeader(currentView, date), _react["default"].createElement("div", {
464
449
  className: "hi-datepicker__calender-container hi-datepicker__calender-container--".concat(currentView)
465
- }, this._getNormalComponent())), showTime && /*#__PURE__*/_react["default"].createElement(_TimePanel["default"], _extends({}, this.props, {
466
- onPick: this.onTimePick.bind(this) // date={date}
467
- ,
468
- timeConfirm: this.timeConfirm.bind(this),
469
- timeCancel: this.timeCancel.bind(this)
470
- })), type === 'timeperiod' && /*#__PURE__*/_react["default"].createElement(_TimePeriodPanel["default"], {
450
+ }, this._getNormalComponent())), showTime && _react["default"].createElement(_TimePanel["default"], (0, _extends2["default"])({}, this.props, {
451
+ onPick: this.onTimePick.bind(this),
452
+ date: (0, _dateUtil.getStartDate)(this.props.date)
453
+ })), type === 'timeperiod' && _react["default"].createElement(_TimePeriodPanel["default"], (0, _extends2["default"])({}, this.props, {
471
454
  timeInterval: timeInterval,
472
455
  onTimePeriodPick: this.onTimePeriodPick.bind(this),
473
- date: date
474
- })));
456
+ date: (0, _dateUtil.getStartDate)(this.props.date)
457
+ }))));
475
458
  }
476
459
  }]);
477
-
478
460
  return DatePanel;
479
461
  }(_react.Component);
480
462
 
481
- var _default = (0, _context["default"])(DatePanel);
482
-
463
+ var _default = DatePanel;
483
464
  exports["default"] = _default;