@unicom-cloud/ui 0.8.41

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 (978) hide show
  1. package/Affix.js +124 -0
  2. package/Alert.js +112 -0
  3. package/Anchor.js +6 -0
  4. package/AutoComplete.js +155 -0
  5. package/Avatar.js +157 -0
  6. package/BackTop.js +85 -0
  7. package/Badge.js +178 -0
  8. package/Breadcrumb.js +144 -0
  9. package/Button.js +141 -0
  10. package/Calendar.js +577 -0
  11. package/Card.js +139 -0
  12. package/Carousel.js +382 -0
  13. package/Cascader.js +10 -0
  14. package/Checkbox.js +5 -0
  15. package/Collapse.js +5 -0
  16. package/ColorPicker.js +588 -0
  17. package/Comment.js +74 -0
  18. package/ConfigProvider.js +8 -0
  19. package/Copy.js +65 -0
  20. package/DatePicker.js +2006 -0
  21. package/Descriptions.js +179 -0
  22. package/Divider.js +41 -0
  23. package/Draggable.js +92 -0
  24. package/Drawer.js +6 -0
  25. package/Dropdown.js +186 -0
  26. package/Empty.js +10 -0
  27. package/Form.js +1420 -0
  28. package/Grid.js +250 -0
  29. package/Icon.js +57 -0
  30. package/IconHover.js +8 -0
  31. package/Image.js +6 -0
  32. package/Input.js +7 -0
  33. package/InputNumber.js +19 -0
  34. package/InputTag.js +6 -0
  35. package/Layout.js +57 -0
  36. package/Link.js +63 -0
  37. package/List.js +320 -0
  38. package/Loading.js +62 -0
  39. package/Mentions.js +172 -0
  40. package/Menu.js +9 -0
  41. package/Message.js +12 -0
  42. package/Modal.js +6 -0
  43. package/Notice.js +15 -0
  44. package/Notification.js +13 -0
  45. package/NotificationBase.js +54 -0
  46. package/OverflowEllipsis.js +99 -0
  47. package/PageHeader.js +121 -0
  48. package/Pagination.js +13 -0
  49. package/Picker.js +6 -0
  50. package/Popconfirm.js +134 -0
  51. package/Popover.js +81 -0
  52. package/Portal.js +35 -0
  53. package/Progress.js +367 -0
  54. package/Radio.js +7 -0
  55. package/Rate.js +129 -0
  56. package/ResizeBox.js +559 -0
  57. package/Result.js +1437 -0
  58. package/Select.js +10 -0
  59. package/SelectView.js +347 -0
  60. package/Skeleton.js +97 -0
  61. package/Slider.js +784 -0
  62. package/Space.js +93 -0
  63. package/SpeechSynthesis.js +53 -0
  64. package/Spin.js +97 -0
  65. package/Statistic.js +192 -0
  66. package/Steps.js +149 -0
  67. package/SuspenseFallbackTest.js +11 -0
  68. package/Switch.js +116 -0
  69. package/Table.js +2001 -0
  70. package/Tabs.js +10 -0
  71. package/Tag.js +108 -0
  72. package/TimePicker.js +278 -0
  73. package/Timeline.js +5 -0
  74. package/Tooltip.js +127 -0
  75. package/Transfer.js +461 -0
  76. package/Tree.js +6 -0
  77. package/TreeSelect.js +9 -0
  78. package/Trigger.js +858 -0
  79. package/Typography.js +723 -0
  80. package/Upload.js +10 -0
  81. package/VerificationCode.js +7 -0
  82. package/Version.js +5 -0
  83. package/VirtualList.js +5 -0
  84. package/Watermark.js +4 -0
  85. package/chunk/B-h-HjBo.js +1000 -0
  86. package/chunk/BGGDhLVD.js +966 -0
  87. package/chunk/BGzBxiWE.js +517 -0
  88. package/chunk/BTvIp2Ol.js +229 -0
  89. package/chunk/BVC51EZ7.js +232 -0
  90. package/chunk/BdWYJb9B.js +769 -0
  91. package/chunk/BdYAMaw9.js +6 -0
  92. package/chunk/Bl5t8Z6F.js +946 -0
  93. package/chunk/C6Kfwj0f.js +1 -0
  94. package/chunk/CA-kzjHQ.js +66 -0
  95. package/chunk/CEMQTMlX.js +798 -0
  96. package/chunk/CICfjLap.js +605 -0
  97. package/chunk/CUK6MU72.js +694 -0
  98. package/chunk/Cpp8T23i.js +271 -0
  99. package/chunk/CuIVS4do.js +277 -0
  100. package/chunk/CwIyJM0N.js +261 -0
  101. package/chunk/CwewmGEF.js +516 -0
  102. package/chunk/DF-4xm4m.js +375 -0
  103. package/chunk/DP2rzg_V.js +1 -0
  104. package/chunk/DQ_eXwj8.js +877 -0
  105. package/chunk/DYwvc9zo.js +165 -0
  106. package/chunk/Da4Rq2D4.js +226 -0
  107. package/chunk/Dc_89PVN.js +736 -0
  108. package/chunk/DdK6eiNS.js +240 -0
  109. package/chunk/DhodcKwW.js +167 -0
  110. package/chunk/GfGTdWbJ.js +162 -0
  111. package/chunk/I4RV9SKZ.js +135 -0
  112. package/chunk/K6Dvbx-E.js +1 -0
  113. package/chunk/Kt5-772l.js +450 -0
  114. package/chunk/RnTpOC5-.js +1 -0
  115. package/chunk/TXCrI0jN.js +20 -0
  116. package/chunk/cRoKuTbN.js +129 -0
  117. package/chunk/ehTyphn0.js +335 -0
  118. package/chunk/kAbgUN-k.js +80 -0
  119. package/chunk/l0sNRNKZ.js +1 -0
  120. package/chunk/vpaTr5dz.js +984 -0
  121. package/hooks/index.js +6 -0
  122. package/hooks/use-verification-code.js +72 -0
  123. package/hooks/use-watermark.js +175 -0
  124. package/hooks/useAsync.js +13 -0
  125. package/hooks/useAsyncFn.js +15 -0
  126. package/hooks/useAsyncRetry.js +17 -0
  127. package/hooks/useAudio.js +5 -0
  128. package/hooks/useBeforeUnload.js +18 -0
  129. package/hooks/useBoolean.js +4 -0
  130. package/hooks/useClickAway.js +22 -0
  131. package/hooks/useComputedState.js +11 -0
  132. package/hooks/useCopyToClipboard.js +51 -0
  133. package/hooks/useCounter.js +45 -0
  134. package/hooks/useCreate.js +8 -0
  135. package/hooks/useCreation.js +19 -0
  136. package/hooks/useCustomCompareEffect.js +15 -0
  137. package/hooks/useDebounce.js +9 -0
  138. package/hooks/useDefault.js +10 -0
  139. package/hooks/useDrop.js +44 -0
  140. package/hooks/useDropArea.js +45 -0
  141. package/hooks/useEffectOnce.js +7 -0
  142. package/hooks/useEffectState.js +9 -0
  143. package/hooks/useEnsuredForwardedRef.js +17 -0
  144. package/hooks/useError.js +13 -0
  145. package/hooks/useEvent.js +13 -0
  146. package/hooks/useEventListener.js +41 -0
  147. package/hooks/useFavicon.js +17 -0
  148. package/hooks/useFirstMountState.js +8 -0
  149. package/hooks/useForceUpdate.js +8 -0
  150. package/hooks/useFullscreen.js +40 -0
  151. package/hooks/useGeolocation.js +38 -0
  152. package/hooks/useGetSet.js +18 -0
  153. package/hooks/useGetSetState.js +12 -0
  154. package/hooks/useHash.js +26 -0
  155. package/hooks/useHover.js +16 -0
  156. package/hooks/useHoverDirty.js +17 -0
  157. package/hooks/useId.js +11 -0
  158. package/hooks/useIdle.js +34 -0
  159. package/hooks/useInView.js +31 -0
  160. package/hooks/useIntersection.js +19 -0
  161. package/hooks/useIntersectionObserver.js +23 -0
  162. package/hooks/useInterval.js +19 -0
  163. package/hooks/useIsFirstRender.js +10 -0
  164. package/hooks/useIsomorphicLayoutEffect.js +6 -0
  165. package/hooks/useIsomorphicLayoutEffect2.js +6 -0
  166. package/hooks/useKey.js +16 -0
  167. package/hooks/useKeyPress.js +13 -0
  168. package/hooks/useKeyPressEvent.js +11 -0
  169. package/hooks/useKeyboardEvent.js +17 -0
  170. package/hooks/useLatest.js +8 -0
  171. package/hooks/useLifecycles.js +9 -0
  172. package/hooks/useList.js +67 -0
  173. package/hooks/useLocalStorage.js +41 -0
  174. package/hooks/useLocation.js +51 -0
  175. package/hooks/useLockBodyScroll.js +56 -0
  176. package/hooks/useLogger.js +10 -0
  177. package/hooks/useLongPress.js +24 -0
  178. package/hooks/useMap.js +31 -0
  179. package/hooks/useMeasure.js +34 -0
  180. package/hooks/useMeasureDirty.js +24 -0
  181. package/hooks/useMedia.js +19 -0
  182. package/hooks/useMediaDevices.js +26 -0
  183. package/hooks/useMediatedState.js +14 -0
  184. package/hooks/useMergeProps.js +19 -0
  185. package/hooks/useMergeValue.js +18 -0
  186. package/hooks/useMethods.js +14 -0
  187. package/hooks/useMotion.js +56 -0
  188. package/hooks/useMount.js +9 -0
  189. package/hooks/useMountedState.js +10 -0
  190. package/hooks/useMouse.js +44 -0
  191. package/hooks/useMouseHovered.js +9 -0
  192. package/hooks/useMouseWheel.js +14 -0
  193. package/hooks/useMultiStateValidator.js +19 -0
  194. package/hooks/useNetworkState.js +31 -0
  195. package/hooks/useNumber.js +4 -0
  196. package/hooks/useObservable.js +12 -0
  197. package/hooks/useOrientation.js +31 -0
  198. package/hooks/useOverflowHidden.js +26 -0
  199. package/hooks/usePageLeave.js +19 -0
  200. package/hooks/usePermission.js +19 -0
  201. package/hooks/usePinchZoom.js +40 -0
  202. package/hooks/usePrevious.js +10 -0
  203. package/hooks/usePreviousDistinct.js +10 -0
  204. package/hooks/usePromise.js +19 -0
  205. package/hooks/useQueue.js +25 -0
  206. package/hooks/useRaf.js +24 -0
  207. package/hooks/useRafLoop.js +24 -0
  208. package/hooks/useRafState.js +15 -0
  209. package/hooks/useReactive.js +21 -0
  210. package/hooks/useRefs.js +10 -0
  211. package/hooks/useRendersCount.js +7 -0
  212. package/hooks/useScroll.js +27 -0
  213. package/hooks/useScrolling.js +23 -0
  214. package/hooks/useSearchParam.js +18 -0
  215. package/hooks/useSessionStorage.js +28 -0
  216. package/hooks/useSet.js +15 -0
  217. package/hooks/useSetState.js +16 -0
  218. package/hooks/useSize.js +58 -0
  219. package/hooks/useSlider.js +48 -0
  220. package/hooks/useSpeech.js +45 -0
  221. package/hooks/useStartTyping.js +30 -0
  222. package/hooks/useStateCallback.js +16 -0
  223. package/hooks/useStateList.js +38 -0
  224. package/hooks/useStateValidator.js +17 -0
  225. package/hooks/useStateWithHistory.js +46 -0
  226. package/hooks/useStateWithPromise.js +25 -0
  227. package/hooks/useSyncState.js +14 -0
  228. package/hooks/useThrottle.js +21 -0
  229. package/hooks/useThrottleFn.js +21 -0
  230. package/hooks/useTimeout.js +18 -0
  231. package/hooks/useTimeoutFn.js +16 -0
  232. package/hooks/useTitle.js +18 -0
  233. package/hooks/useToggle.js +5 -0
  234. package/hooks/useTween.js +11 -0
  235. package/hooks/useUnmount.js +9 -0
  236. package/hooks/useUnmountPromise.js +20 -0
  237. package/hooks/useUpdate.js +10 -0
  238. package/hooks/useUpdateEffect.js +12 -0
  239. package/hooks/useUpdateTimeout.js +9 -0
  240. package/hooks/useUpsert.js +16 -0
  241. package/hooks/useVibrate.js +21 -0
  242. package/hooks/useVideo.js +5 -0
  243. package/hooks/useWatch.js +11 -0
  244. package/hooks/useWindowScroll.js +29 -0
  245. package/hooks/useWindowSize.js +25 -0
  246. package/index.js +397 -0
  247. package/locale/ar-EG.js +167 -0
  248. package/locale/de-DE.js +167 -0
  249. package/locale/default.js +4 -0
  250. package/locale/en-US.js +174 -0
  251. package/locale/es-ES.js +167 -0
  252. package/locale/fr-FR.js +167 -0
  253. package/locale/id-ID.js +167 -0
  254. package/locale/interface.js +1 -0
  255. package/locale/it-IT.js +167 -0
  256. package/locale/ja-JP.js +220 -0
  257. package/locale/ko-KR.js +167 -0
  258. package/locale/ms-MY.js +167 -0
  259. package/locale/pt-BR.js +167 -0
  260. package/locale/pt-PT.js +167 -0
  261. package/locale/ru-RU.js +167 -0
  262. package/locale/th-TH.js +167 -0
  263. package/locale/tr-TR.js +169 -0
  264. package/locale/vi-VN.js +167 -0
  265. package/locale/zh-CN.js +221 -0
  266. package/locale/zh-HK.js +221 -0
  267. package/locale/zh-TW.js +220 -0
  268. package/package.json +25 -0
  269. package/style.css +1 -0
  270. package/types/Popover/index.d.ts +7 -0
  271. package/types/Popover/interface.d.ts +8 -0
  272. package/types/Popover/style/index.d.ts +3 -0
  273. package/types/affix/index.d.ts +9 -0
  274. package/types/affix/interface.d.ts +12 -0
  275. package/types/affix/style/index.d.ts +2 -0
  276. package/types/alert/index.d.ts +5 -0
  277. package/types/alert/interface.d.ts +17 -0
  278. package/types/alert/style/index.d.ts +2 -0
  279. package/types/anchor/Anchor.d.ts +9 -0
  280. package/types/anchor/Link.d.ts +6 -0
  281. package/types/anchor/context.d.ts +11 -0
  282. package/types/anchor/index.d.ts +4 -0
  283. package/types/anchor/interface.d.ts +24 -0
  284. package/types/anchor/style/index.d.ts +3 -0
  285. package/types/anchor/util.d.ts +4 -0
  286. package/types/auto-complete/index.d.ts +11 -0
  287. package/types/auto-complete/interface.d.ts +36 -0
  288. package/types/auto-complete/style/index.d.ts +4 -0
  289. package/types/avatar/Avatar.d.ts +6 -0
  290. package/types/avatar/Group.d.ts +6 -0
  291. package/types/avatar/context.d.ts +3 -0
  292. package/types/avatar/index.d.ts +9 -0
  293. package/types/avatar/interface.d.ts +24 -0
  294. package/types/avatar/style/index.d.ts +3 -0
  295. package/types/back-top/index.d.ts +8 -0
  296. package/types/back-top/interface.d.ts +11 -0
  297. package/types/back-top/style/index.d.ts +2 -0
  298. package/types/badge/Count.d.ts +7 -0
  299. package/types/badge/index.d.ts +7 -0
  300. package/types/badge/interface.d.ts +17 -0
  301. package/types/badge/style/index.d.ts +2 -0
  302. package/types/breadcrumb/Item.d.ts +8 -0
  303. package/types/breadcrumb/index.d.ts +9 -0
  304. package/types/breadcrumb/interface.d.ts +31 -0
  305. package/types/breadcrumb/style/index.d.ts +3 -0
  306. package/types/button/Group.d.ts +5 -0
  307. package/types/button/index.d.ts +16 -0
  308. package/types/button/interface.d.ts +37 -0
  309. package/types/button/style/index.d.ts +2 -0
  310. package/types/calendar/Month.d.ts +15 -0
  311. package/types/calendar/WeekList.d.ts +10 -0
  312. package/types/calendar/Year.d.ts +13 -0
  313. package/types/calendar/header/Panel.d.ts +2 -0
  314. package/types/calendar/header/index.d.ts +2 -0
  315. package/types/calendar/hook/useCellClassName.d.ts +1 -0
  316. package/types/calendar/index.d.ts +8 -0
  317. package/types/calendar/interface.d.ts +41 -0
  318. package/types/calendar/style/index.d.ts +4 -0
  319. package/types/card/Grid.d.ts +5 -0
  320. package/types/card/Meta.d.ts +5 -0
  321. package/types/card/index.d.ts +11 -0
  322. package/types/card/interface.d.ts +32 -0
  323. package/types/card/style/index.d.ts +3 -0
  324. package/types/carousel/Arrow.d.ts +4 -0
  325. package/types/carousel/Indicator.d.ts +4 -0
  326. package/types/carousel/index.d.ts +6 -0
  327. package/types/carousel/interface.d.ts +52 -0
  328. package/types/carousel/style/index.d.ts +2 -0
  329. package/types/cascader/Cascader.d.ts +17 -0
  330. package/types/cascader/base/node.d.ts +48 -0
  331. package/types/cascader/base/store.d.ts +26 -0
  332. package/types/cascader/hook/useRefCurrent.d.ts +3 -0
  333. package/types/cascader/index.d.ts +5 -0
  334. package/types/cascader/interface.d.ts +105 -0
  335. package/types/cascader/panel/List.d.ts +4 -0
  336. package/types/cascader/panel/Option.d.ts +23 -0
  337. package/types/cascader/panel/Search.d.ts +28 -0
  338. package/types/cascader/style/index.d.ts +6 -0
  339. package/types/cascader/util.d.ts +23 -0
  340. package/types/checkbox/Checkbox.d.ts +14 -0
  341. package/types/checkbox/Group.d.ts +17 -0
  342. package/types/checkbox/index.d.ts +5 -0
  343. package/types/checkbox/interface.d.ts +36 -0
  344. package/types/checkbox/style/index.d.ts +2 -0
  345. package/types/checkbox/useCheckbox.d.ts +13 -0
  346. package/types/collapse/Collapse.d.ts +14 -0
  347. package/types/collapse/Item.d.ts +7 -0
  348. package/types/collapse/index.d.ts +4 -0
  349. package/types/collapse/interface.d.ts +27 -0
  350. package/types/collapse/style/index.d.ts +2 -0
  351. package/types/color-picker/ControlBar.d.ts +11 -0
  352. package/types/color-picker/InputAlpha.d.ts +7 -0
  353. package/types/color-picker/InputHex.d.ts +11 -0
  354. package/types/color-picker/InputRgb.d.ts +10 -0
  355. package/types/color-picker/Palette.d.ts +7 -0
  356. package/types/color-picker/Panel.d.ts +20 -0
  357. package/types/color-picker/colors.d.ts +2 -0
  358. package/types/color-picker/hooks/useColorPicker.d.ts +37 -0
  359. package/types/color-picker/hooks/useControlBlock.d.ts +11 -0
  360. package/types/color-picker/index.d.ts +6 -0
  361. package/types/color-picker/interface.d.ts +49 -0
  362. package/types/color-picker/style/index.d.ts +4 -0
  363. package/types/comment/index.d.ts +7 -0
  364. package/types/comment/interface.d.ts +14 -0
  365. package/types/comment/style/index.d.ts +2 -0
  366. package/types/config-provider/ConfigProvider.d.ts +10 -0
  367. package/types/config-provider/context.d.ts +3 -0
  368. package/types/config-provider/index.d.ts +5 -0
  369. package/types/config-provider/interface.d.ts +168 -0
  370. package/types/config-provider/style/index.d.ts +1 -0
  371. package/types/copy/index.d.ts +8 -0
  372. package/types/copy/interface.d.ts +9 -0
  373. package/types/copy/style/index.d.ts +3 -0
  374. package/types/date-picker/Picker.d.ts +18 -0
  375. package/types/date-picker/PickerRange.d.ts +7 -0
  376. package/types/date-picker/context.d.ts +7 -0
  377. package/types/date-picker/hook/useCellClassName.d.ts +1 -0
  378. package/types/date-picker/index.d.ts +5 -0
  379. package/types/date-picker/interface.d.ts +159 -0
  380. package/types/date-picker/panel/Body.d.ts +30 -0
  381. package/types/date-picker/panel/Footer.d.ts +1 -0
  382. package/types/date-picker/panel/Header.d.ts +20 -0
  383. package/types/date-picker/panel/Shortcut.d.ts +3 -0
  384. package/types/date-picker/panel/WeekList.d.ts +8 -0
  385. package/types/date-picker/panel/date/index.d.ts +24 -0
  386. package/types/date-picker/panel/month/index.d.ts +17 -0
  387. package/types/date-picker/panel/quarter/index.d.ts +17 -0
  388. package/types/date-picker/panel/range/index.d.ts +28 -0
  389. package/types/date-picker/panel/week/index.d.ts +16 -0
  390. package/types/date-picker/panel/year/index.d.ts +16 -0
  391. package/types/date-picker/style/index.d.ts +7 -0
  392. package/types/date-picker/util.d.ts +9 -0
  393. package/types/descriptions/index.d.ts +8 -0
  394. package/types/descriptions/interface.d.ts +29 -0
  395. package/types/descriptions/style/index.d.ts +2 -0
  396. package/types/divider/index.d.ts +6 -0
  397. package/types/divider/interface.d.ts +8 -0
  398. package/types/divider/style/index.d.ts +2 -0
  399. package/types/draggable/Item.d.ts +3 -0
  400. package/types/draggable/index.d.ts +4 -0
  401. package/types/draggable/interface.d.ts +22 -0
  402. package/types/draggable/style/index.d.ts +2 -0
  403. package/types/drawer/Drawer.d.ts +5 -0
  404. package/types/drawer/index.d.ts +4 -0
  405. package/types/drawer/interface.d.ts +36 -0
  406. package/types/drawer/style/index.d.ts +3 -0
  407. package/types/dropdown/Button.d.ts +4 -0
  408. package/types/dropdown/index.d.ts +9 -0
  409. package/types/dropdown/interface.d.ts +28 -0
  410. package/types/dropdown/style/index.d.ts +4 -0
  411. package/types/empty/index.d.ts +6 -0
  412. package/types/empty/interface.d.ts +8 -0
  413. package/types/empty/style/index.d.ts +2 -0
  414. package/types/form/Control.d.ts +55 -0
  415. package/types/form/Form.d.ts +6 -0
  416. package/types/form/FormItem.d.ts +7 -0
  417. package/types/form/FormItemTip.d.ts +8 -0
  418. package/types/form/FormLabel.d.ts +9 -0
  419. package/types/form/FormList.d.ts +6 -0
  420. package/types/form/FormProvider.d.ts +4 -0
  421. package/types/form/IconSymbol.d.ts +3 -0
  422. package/types/form/context.d.ts +15 -0
  423. package/types/form/hook/useContext.d.ts +7 -0
  424. package/types/form/hook/useState.d.ts +3 -0
  425. package/types/form/hook/useWatch.d.ts +3 -0
  426. package/types/form/index.d.ts +26 -0
  427. package/types/form/interface.d.ts +228 -0
  428. package/types/form/promisify.d.ts +2 -0
  429. package/types/form/store.d.ts +89 -0
  430. package/types/form/style/index.d.ts +3 -0
  431. package/types/form/useForm.d.ts +3 -0
  432. package/types/form/util.d.ts +14 -0
  433. package/types/grid/Col.d.ts +4 -0
  434. package/types/grid/Row.d.ts +4 -0
  435. package/types/grid/context.d.ts +19 -0
  436. package/types/grid/grid-item.d.ts +7 -0
  437. package/types/grid/grid.d.ts +5 -0
  438. package/types/grid/hook/useResponsiveState.d.ts +2 -0
  439. package/types/grid/index.d.ts +11 -0
  440. package/types/grid/interface.d.ts +76 -0
  441. package/types/grid/style/index.d.ts +2 -0
  442. package/types/grid/util.d.ts +11 -0
  443. package/types/hooks/component/UseKey.d.ts +2 -0
  444. package/types/hooks/factory/createBreakpoint.d.ts +4 -0
  445. package/types/hooks/factory/createGlobalState.d.ts +7 -0
  446. package/types/hooks/factory/createHTMLMediaHook.d.ts +33 -0
  447. package/types/hooks/factory/createMemo.d.ts +2 -0
  448. package/types/hooks/factory/createReducer.d.ts +8 -0
  449. package/types/hooks/factory/createReducerContext.d.ts +5 -0
  450. package/types/hooks/factory/createRenderProp.d.ts +1 -0
  451. package/types/hooks/factory/createRouter.d.ts +7 -0
  452. package/types/hooks/factory/createStateContext.d.ts +5 -0
  453. package/types/hooks/index.d.ts +2 -0
  454. package/types/hooks/misc/hookState.d.ts +8 -0
  455. package/types/hooks/misc/parseTimeRanges.d.ts +4 -0
  456. package/types/hooks/misc/types.d.ts +2 -0
  457. package/types/hooks/misc/util.d.ts +5 -0
  458. package/types/hooks/use-verification-code/index.d.ts +2 -0
  459. package/types/hooks/use-verification-code/interface.d.ts +22 -0
  460. package/types/hooks/use-watermark/index.d.ts +2 -0
  461. package/types/hooks/use-watermark/interface.d.ts +22 -0
  462. package/types/hooks/use-watermark/utils.d.ts +1 -0
  463. package/types/hooks/useAsync.d.ts +20 -0
  464. package/types/hooks/useAsyncFn.d.ts +23 -0
  465. package/types/hooks/useAsyncRetry.d.ts +27 -0
  466. package/types/hooks/useAudio.d.ts +11 -0
  467. package/types/hooks/useBeforeUnload.d.ts +2 -0
  468. package/types/hooks/useBoolean.d.ts +2 -0
  469. package/types/hooks/useClickAway.d.ts +3 -0
  470. package/types/hooks/useComputedState.d.ts +4 -0
  471. package/types/hooks/useCopyToClipboard.d.ts +10 -0
  472. package/types/hooks/useCounter.d.ts +9 -0
  473. package/types/hooks/useCreate.d.ts +1 -0
  474. package/types/hooks/useCreation.d.ts +2 -0
  475. package/types/hooks/useCustomCompareEffect.d.ts +4 -0
  476. package/types/hooks/useDebounce.d.ts +3 -0
  477. package/types/hooks/useDefault.d.ts +2 -0
  478. package/types/hooks/useDrop.d.ts +17 -0
  479. package/types/hooks/useDropArea.d.ts +17 -0
  480. package/types/hooks/useEffectOnce.d.ts +3 -0
  481. package/types/hooks/useEffectState.d.ts +2 -0
  482. package/types/hooks/useEnsuredForwardedRef.d.ts +3 -0
  483. package/types/hooks/useError.d.ts +2 -0
  484. package/types/hooks/useEvent.d.ts +13 -0
  485. package/types/hooks/useEventListener.d.ts +2 -0
  486. package/types/hooks/useFavicon.d.ts +2 -0
  487. package/types/hooks/useFirstMountState.d.ts +1 -0
  488. package/types/hooks/useForceUpdate.d.ts +2 -0
  489. package/types/hooks/useFullscreen.d.ts +10 -0
  490. package/types/hooks/useGeolocation.d.ts +21 -0
  491. package/types/hooks/useGetSet.d.ts +3 -0
  492. package/types/hooks/useGetSetState.d.ts +2 -0
  493. package/types/hooks/useHash.d.ts +2 -0
  494. package/types/hooks/useHover.d.ts +4 -0
  495. package/types/hooks/useHoverDirty.d.ts +3 -0
  496. package/types/hooks/useId.d.ts +1 -0
  497. package/types/hooks/useIdle.d.ts +2 -0
  498. package/types/hooks/useInView.d.ts +11 -0
  499. package/types/hooks/useIntersection.d.ts +3 -0
  500. package/types/hooks/useIntersectionObserver.d.ts +7 -0
  501. package/types/hooks/useInterval.d.ts +2 -0
  502. package/types/hooks/useIsFirstRender.d.ts +1 -0
  503. package/types/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  504. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +3 -0
  505. package/types/hooks/useKey.d.ts +12 -0
  506. package/types/hooks/useKeyPress.d.ts +3 -0
  507. package/types/hooks/useKeyPressEvent.d.ts +3 -0
  508. package/types/hooks/useKeyboardEvent.d.ts +14 -0
  509. package/types/hooks/useLatest.d.ts +4 -0
  510. package/types/hooks/useLifecycles.d.ts +2 -0
  511. package/types/hooks/useList.d.ts +18 -0
  512. package/types/hooks/useLocalStorage.d.ts +10 -0
  513. package/types/hooks/useLocation.d.ts +16 -0
  514. package/types/hooks/useLockBodyScroll.d.ts +8 -0
  515. package/types/hooks/useLogger.d.ts +2 -0
  516. package/types/hooks/useLongPress.d.ts +12 -0
  517. package/types/hooks/useMap.d.ts +11 -0
  518. package/types/hooks/useMeasure.d.ts +9 -0
  519. package/types/hooks/useMeasureDirty.d.ts +11 -0
  520. package/types/hooks/useMedia.d.ts +2 -0
  521. package/types/hooks/useMediaDevices.d.ts +2 -0
  522. package/types/hooks/useMediatedState.d.ts +9 -0
  523. package/types/hooks/useMergeProps.d.ts +4 -0
  524. package/types/hooks/useMergeValue.d.ts +5 -0
  525. package/types/hooks/useMethods.d.ts +8 -0
  526. package/types/hooks/useMotion.d.ts +20 -0
  527. package/types/hooks/useMount.d.ts +2 -0
  528. package/types/hooks/useMountedState.d.ts +1 -0
  529. package/types/hooks/useMouse.d.ts +13 -0
  530. package/types/hooks/useMouseHovered.d.ts +8 -0
  531. package/types/hooks/useMouseWheel.d.ts +2 -0
  532. package/types/hooks/useMultiStateValidator.d.ts +9 -0
  533. package/types/hooks/useNetworkState.d.ts +22 -0
  534. package/types/hooks/useNumber.d.ts +2 -0
  535. package/types/hooks/useObservable.d.ts +8 -0
  536. package/types/hooks/useOrientation.d.ts +6 -0
  537. package/types/hooks/useOverflowHidden.d.ts +5 -0
  538. package/types/hooks/usePageLeave.d.ts +2 -0
  539. package/types/hooks/usePermission.d.ts +16 -0
  540. package/types/hooks/usePinchZoom.d.ts +18 -0
  541. package/types/hooks/usePrevious.d.ts +2 -0
  542. package/types/hooks/usePreviousDistinct.d.ts +2 -0
  543. package/types/hooks/usePromise.d.ts +3 -0
  544. package/types/hooks/useQueue.d.ts +9 -0
  545. package/types/hooks/useRaf.d.ts +2 -0
  546. package/types/hooks/useRafLoop.d.ts +2 -0
  547. package/types/hooks/useRafState.d.ts +3 -0
  548. package/types/hooks/useReactive.d.ts +2 -0
  549. package/types/hooks/useRefs.d.ts +1 -0
  550. package/types/hooks/useRendersCount.d.ts +1 -0
  551. package/types/hooks/useScroll.d.ts +7 -0
  552. package/types/hooks/useScrolling.d.ts +3 -0
  553. package/types/hooks/useSearchParam.d.ts +3 -0
  554. package/types/hooks/useSessionStorage.d.ts +2 -0
  555. package/types/hooks/useSet.d.ts +11 -0
  556. package/types/hooks/useSetState.d.ts +2 -0
  557. package/types/hooks/useSize.d.ts +8 -0
  558. package/types/hooks/useSlider.d.ts +15 -0
  559. package/types/hooks/useSpeech.d.ts +16 -0
  560. package/types/hooks/useStartTyping.d.ts +2 -0
  561. package/types/hooks/useStateCallback.d.ts +5 -0
  562. package/types/hooks/useStateList.d.ts +9 -0
  563. package/types/hooks/useStateValidator.d.ts +8 -0
  564. package/types/hooks/useStateWithHistory.d.ts +18 -0
  565. package/types/hooks/useStateWithPromise.d.ts +2 -0
  566. package/types/hooks/useSyncState.d.ts +3 -0
  567. package/types/hooks/useThrottle.d.ts +2 -0
  568. package/types/hooks/useThrottleFn.d.ts +2 -0
  569. package/types/hooks/useTimeout.d.ts +2 -0
  570. package/types/hooks/useTimeoutFn.d.ts +2 -0
  571. package/types/hooks/useTitle.d.ts +6 -0
  572. package/types/hooks/useToggle.d.ts +2 -0
  573. package/types/hooks/useTween.d.ts +3 -0
  574. package/types/hooks/useUnmount.d.ts +2 -0
  575. package/types/hooks/useUnmountPromise.d.ts +3 -0
  576. package/types/hooks/useUpdate.d.ts +2 -0
  577. package/types/hooks/useUpdateEffect.d.ts +3 -0
  578. package/types/hooks/useUpdateTimeout.d.ts +2 -0
  579. package/types/hooks/useUpsert.d.ts +6 -0
  580. package/types/hooks/useVibrate.d.ts +4 -0
  581. package/types/hooks/useVideo.d.ts +11 -0
  582. package/types/hooks/useWatch.d.ts +2 -0
  583. package/types/hooks/useWindowScroll.d.ts +6 -0
  584. package/types/hooks/useWindowSize.d.ts +5 -0
  585. package/types/icon/addFromIconFontCn.d.ts +9 -0
  586. package/types/icon/index.d.ts +18 -0
  587. package/types/icon/style/index.d.ts +0 -0
  588. package/types/icon-hover/index.d.ts +11 -0
  589. package/types/icon-hover/style/index.d.ts +2 -0
  590. package/types/image/Image.d.ts +11 -0
  591. package/types/image/ImageFooter.d.ts +13 -0
  592. package/types/image/ImagePreview.d.ts +6 -0
  593. package/types/image/ImagePreviewArrow.d.ts +9 -0
  594. package/types/image/ImagePreviewGroup.d.ts +10 -0
  595. package/types/image/ImagePreviewToolbar.d.ts +14 -0
  596. package/types/image/TriggerForToolbar.d.ts +10 -0
  597. package/types/image/index.d.ts +4 -0
  598. package/types/image/interface.d.ts +58 -0
  599. package/types/image/previewGroupContext.d.ts +24 -0
  600. package/types/image/style/index.d.ts +2 -0
  601. package/types/image/util/getFixTranslate.d.ts +1 -0
  602. package/types/image/util/getScale.d.ts +13 -0
  603. package/types/image/util/hook/useImageStatus.d.ts +11 -0
  604. package/types/image/util/hook/useShowFooter.d.ts +8 -0
  605. package/types/index.d.ts +197 -0
  606. package/types/input/Group.d.ts +7 -0
  607. package/types/input/Input.d.ts +23 -0
  608. package/types/input/InputElement.d.ts +4 -0
  609. package/types/input/Number.d.ts +2 -0
  610. package/types/input/Password.d.ts +5 -0
  611. package/types/input/Search.d.ts +5 -0
  612. package/types/input/Tag.d.ts +2 -0
  613. package/types/input/Textarea.d.ts +9 -0
  614. package/types/input/autoSizeTextAreaHeight.d.ts +5 -0
  615. package/types/input/index.d.ts +8 -0
  616. package/types/input/interface.d.ts +93 -0
  617. package/types/input/style/index.d.ts +3 -0
  618. package/types/input/useComposition.d.ts +17 -0
  619. package/types/input-number/decimal.d.ts +16 -0
  620. package/types/input-number/index.d.ts +7 -0
  621. package/types/input-number/interface.d.ts +37 -0
  622. package/types/input-number/style/index.d.ts +3 -0
  623. package/types/input-number/useSelectionRange.d.ts +4 -0
  624. package/types/input-number/util.d.ts +13 -0
  625. package/types/input-tag/InputTag.d.ts +9 -0
  626. package/types/input-tag/index.d.ts +4 -0
  627. package/types/input-tag/interface.d.ts +60 -0
  628. package/types/input-tag/style/index.d.ts +3 -0
  629. package/types/layout/Content.d.ts +3 -0
  630. package/types/layout/Footer.d.ts +3 -0
  631. package/types/layout/Header.d.ts +3 -0
  632. package/types/layout/Sider.d.ts +10 -0
  633. package/types/layout/index.d.ts +18 -0
  634. package/types/layout/interface.d.ts +39 -0
  635. package/types/layout/style/index.d.ts +4 -0
  636. package/types/link/index.d.ts +7 -0
  637. package/types/link/interface.d.ts +9 -0
  638. package/types/link/style/index.d.ts +2 -0
  639. package/types/list/Item.d.ts +7 -0
  640. package/types/list/Meta.d.ts +4 -0
  641. package/types/list/index.d.ts +13 -0
  642. package/types/list/interface.d.ts +57 -0
  643. package/types/list/style/index.d.ts +6 -0
  644. package/types/loading/index.d.ts +3 -0
  645. package/types/loading/style/index.d.ts +2 -0
  646. package/types/locale/ar-EG.d.ts +228 -0
  647. package/types/locale/de-DE.d.ts +228 -0
  648. package/types/locale/default.d.ts +2 -0
  649. package/types/locale/en-US.d.ts +279 -0
  650. package/types/locale/es-ES.d.ts +228 -0
  651. package/types/locale/fr-FR.d.ts +228 -0
  652. package/types/locale/id-ID.d.ts +228 -0
  653. package/types/locale/interface.d.ts +39 -0
  654. package/types/locale/it-IT.d.ts +228 -0
  655. package/types/locale/ja-JP.d.ts +281 -0
  656. package/types/locale/ko-KR.d.ts +228 -0
  657. package/types/locale/ms-MY.d.ts +228 -0
  658. package/types/locale/pt-BR.d.ts +228 -0
  659. package/types/locale/pt-PT.d.ts +228 -0
  660. package/types/locale/ru-RU.d.ts +228 -0
  661. package/types/locale/th-TH.d.ts +228 -0
  662. package/types/locale/tr-TR.d.ts +274 -0
  663. package/types/locale/vi-VN.d.ts +228 -0
  664. package/types/locale/zh-CN.d.ts +281 -0
  665. package/types/locale/zh-HK.d.ts +281 -0
  666. package/types/locale/zh-TW.d.ts +281 -0
  667. package/types/mentions/index.d.ts +6 -0
  668. package/types/mentions/interface.d.ts +26 -0
  669. package/types/mentions/style/index.d.ts +2 -0
  670. package/types/mentions/util.d.ts +9 -0
  671. package/types/menu/Indent.d.ts +5 -0
  672. package/types/menu/Item.d.ts +5 -0
  673. package/types/menu/ItemGroup.d.ts +5 -0
  674. package/types/menu/Menu.d.ts +12 -0
  675. package/types/menu/OverflowWrap.d.ts +9 -0
  676. package/types/menu/context.d.ts +15 -0
  677. package/types/menu/index.d.ts +4 -0
  678. package/types/menu/interface.d.ts +77 -0
  679. package/types/menu/style/index.d.ts +4 -0
  680. package/types/menu/sub-menu/Inline.d.ts +5 -0
  681. package/types/menu/sub-menu/Pop.d.ts +5 -0
  682. package/types/menu/sub-menu/index.d.ts +5 -0
  683. package/types/menu/util.d.ts +16 -0
  684. package/types/message/index.d.ts +33 -0
  685. package/types/message/interface.d.ts +30 -0
  686. package/types/message/style/index.d.ts +2 -0
  687. package/types/message/useMessage.d.ts +6 -0
  688. package/types/modal/Confirm.d.ts +14 -0
  689. package/types/modal/Modal.d.ts +19 -0
  690. package/types/modal/config.d.ts +10 -0
  691. package/types/modal/index.d.ts +4 -0
  692. package/types/modal/interface.d.ts +55 -0
  693. package/types/modal/style/index.d.ts +3 -0
  694. package/types/modal/use-modal/Hook.d.ts +7 -0
  695. package/types/modal/use-modal/index.d.ts +4 -0
  696. package/types/notice/index.d.ts +48 -0
  697. package/types/notice/style/index.d.ts +2 -0
  698. package/types/notification/index.d.ts +29 -0
  699. package/types/notification/interface.d.ts +26 -0
  700. package/types/notification/style/index.d.ts +2 -0
  701. package/types/notification/useNotification.d.ts +6 -0
  702. package/types/notification-base/index.d.ts +16 -0
  703. package/types/notification-base/style/index.d.ts +2 -0
  704. package/types/overflow-ellipsis/OverflowItem.d.ts +10 -0
  705. package/types/overflow-ellipsis/index.d.ts +11 -0
  706. package/types/page-header/index.d.ts +8 -0
  707. package/types/page-header/interface.d.ts +14 -0
  708. package/types/page-header/style/index.d.ts +3 -0
  709. package/types/pagination/PageItem.d.ts +52 -0
  710. package/types/pagination/PageJumper.d.ts +13 -0
  711. package/types/pagination/PageOption.d.ts +15 -0
  712. package/types/pagination/Pagination.d.ts +11 -0
  713. package/types/pagination/index.d.ts +4 -0
  714. package/types/pagination/interface.d.ts +34 -0
  715. package/types/pagination/style/index.d.ts +4 -0
  716. package/types/picker/Input.d.ts +31 -0
  717. package/types/picker/InputRange.d.ts +35 -0
  718. package/types/picker/index.d.ts +4 -0
  719. package/types/picker/style/index.d.ts +2 -0
  720. package/types/popconfirm/index.d.ts +7 -0
  721. package/types/popconfirm/interface.d.ts +28 -0
  722. package/types/popconfirm/style/index.d.ts +5 -0
  723. package/types/portal/Portal.d.ts +7 -0
  724. package/types/portal/index.d.ts +10 -0
  725. package/types/progress/CircleProgress.d.ts +8 -0
  726. package/types/progress/LineProgess.d.ts +2 -0
  727. package/types/progress/StepProgress.d.ts +2 -0
  728. package/types/progress/index.d.ts +5 -0
  729. package/types/progress/interface.d.ts +22 -0
  730. package/types/progress/style/index.d.ts +3 -0
  731. package/types/radio/Group.d.ts +10 -0
  732. package/types/radio/Radio.d.ts +11 -0
  733. package/types/radio/index.d.ts +6 -0
  734. package/types/radio/interface.d.ts +39 -0
  735. package/types/radio/style/index.d.ts +2 -0
  736. package/types/rate/index.d.ts +6 -0
  737. package/types/rate/interface.d.ts +17 -0
  738. package/types/rate/style/index.d.ts +3 -0
  739. package/types/resize-box/ResizeTrigger.d.ts +24 -0
  740. package/types/resize-box/Split.d.ts +4 -0
  741. package/types/resize-box/SplitGroup.d.ts +4 -0
  742. package/types/resize-box/index.d.ts +13 -0
  743. package/types/resize-box/interface.d.ts +73 -0
  744. package/types/resize-box/style/index.d.ts +2 -0
  745. package/types/result/403.d.ts +1 -0
  746. package/types/result/404.d.ts +1 -0
  747. package/types/result/500.d.ts +1 -0
  748. package/types/result/index.d.ts +7 -0
  749. package/types/result/interface.d.ts +11 -0
  750. package/types/result/style/index.d.ts +2 -0
  751. package/types/select/OptGroup.d.ts +6 -0
  752. package/types/select/Option.d.ts +6 -0
  753. package/types/select/Select.d.ts +10 -0
  754. package/types/select/index.d.ts +4 -0
  755. package/types/select/interface.d.ts +102 -0
  756. package/types/select/style/index.d.ts +6 -0
  757. package/types/select/util.d.ts +26 -0
  758. package/types/select-view/Core.d.ts +12 -0
  759. package/types/select-view/index.d.ts +12 -0
  760. package/types/select-view/interface.d.ts +60 -0
  761. package/types/select-view/style/index.d.ts +2 -0
  762. package/types/skeleton/Image.d.ts +2 -0
  763. package/types/skeleton/Text.d.ts +2 -0
  764. package/types/skeleton/index.d.ts +8 -0
  765. package/types/skeleton/interface.d.ts +24 -0
  766. package/types/skeleton/style/index.d.ts +2 -0
  767. package/types/slider/Button.d.ts +21 -0
  768. package/types/slider/Dot.d.ts +17 -0
  769. package/types/slider/Input.d.ts +15 -0
  770. package/types/slider/Mark.d.ts +16 -0
  771. package/types/slider/Tick.d.ts +14 -0
  772. package/types/slider/hook/useInterval.d.ts +24 -0
  773. package/types/slider/hook/useLegalValue.d.ts +15 -0
  774. package/types/slider/index.d.ts +6 -0
  775. package/types/slider/interface.d.ts +32 -0
  776. package/types/slider/style/index.d.ts +5 -0
  777. package/types/slider/util.d.ts +11 -0
  778. package/types/space/index.d.ts +5 -0
  779. package/types/space/interface.d.ts +12 -0
  780. package/types/space/style/index.d.ts +2 -0
  781. package/types/space/toArray.d.ts +1 -0
  782. package/types/speech-synthesis/index.d.ts +1 -0
  783. package/types/spin/DotLoading.d.ts +5 -0
  784. package/types/spin/index.d.ts +6 -0
  785. package/types/spin/interface.d.ts +14 -0
  786. package/types/spin/style/index.d.ts +2 -0
  787. package/types/statistic/Countdown.d.ts +4 -0
  788. package/types/statistic/index.d.ts +8 -0
  789. package/types/statistic/interface.d.ts +33 -0
  790. package/types/statistic/style/index.d.ts +3 -0
  791. package/types/statistic/util.d.ts +1 -0
  792. package/types/steps/Step.d.ts +4 -0
  793. package/types/steps/index.d.ts +9 -0
  794. package/types/steps/interface.d.ts +42 -0
  795. package/types/steps/style/index.d.ts +2 -0
  796. package/types/suspense-fallback-test/index.d.ts +3 -0
  797. package/types/suspense-fallback-test/style/index.d.ts +2 -0
  798. package/types/switch/index.d.ts +11 -0
  799. package/types/switch/interface.d.ts +17 -0
  800. package/types/switch/style/index.d.ts +2 -0
  801. package/types/table/ColGroup.d.ts +13 -0
  802. package/types/table/Table.d.ts +10 -0
  803. package/types/table/constant.d.ts +2 -0
  804. package/types/table/hook/useColumns.d.ts +3 -0
  805. package/types/table/hook/useComponent.d.ts +30 -0
  806. package/types/table/hook/useExpand.d.ts +3 -0
  807. package/types/table/hook/useRowSelection.d.ts +12 -0
  808. package/types/table/hook/useSorter.d.ts +7 -0
  809. package/types/table/hook/useStickyClassNames.d.ts +3 -0
  810. package/types/table/hook/useStickyOffsets.d.ts +3 -0
  811. package/types/table/index.d.ts +9 -0
  812. package/types/table/interface.d.ts +295 -0
  813. package/types/table/style/index.d.ts +11 -0
  814. package/types/table/summary/Cell.d.ts +12 -0
  815. package/types/table/summary/Row.d.ts +7 -0
  816. package/types/table/summary/context.d.ts +9 -0
  817. package/types/table/summary/index.d.ts +8 -0
  818. package/types/table/tbody/Td.d.ts +25 -0
  819. package/types/table/tbody/Tr.d.ts +16 -0
  820. package/types/table/tbody/index.d.ts +3 -0
  821. package/types/table/tfoot/index.d.ts +3 -0
  822. package/types/table/thead/Column.d.ts +3 -0
  823. package/types/table/thead/index.d.ts +3 -0
  824. package/types/table/util.d.ts +17 -0
  825. package/types/tabs/Tab.d.ts +18 -0
  826. package/types/tabs/TabContent.d.ts +9 -0
  827. package/types/tabs/TabPane.d.ts +8 -0
  828. package/types/tabs/hook/useDomSize.d.ts +11 -0
  829. package/types/tabs/hook/useHeaderScroll.d.ts +9 -0
  830. package/types/tabs/index.d.ts +4 -0
  831. package/types/tabs/interface.d.ts +66 -0
  832. package/types/tabs/style/index.d.ts +3 -0
  833. package/types/tabs/tab-header/DropdownIcon.d.ts +1 -0
  834. package/types/tabs/tab-header/TabInk.d.ts +11 -0
  835. package/types/tabs/tab-header/TabNavIcon.d.ts +17 -0
  836. package/types/tabs/tab-header/TabTitle.d.ts +17 -0
  837. package/types/tabs/tab-header/index.d.ts +4 -0
  838. package/types/tabs/util.d.ts +12 -0
  839. package/types/tag/index.d.ts +5 -0
  840. package/types/tag/interface.d.ts +19 -0
  841. package/types/tag/style/index.d.ts +2 -0
  842. package/types/time-picker/Picker.d.ts +15 -0
  843. package/types/time-picker/RangePicker.d.ts +12 -0
  844. package/types/time-picker/TimeColumn.d.ts +17 -0
  845. package/types/time-picker/TimePicker.d.ts +24 -0
  846. package/types/time-picker/context.d.ts +6 -0
  847. package/types/time-picker/index.d.ts +5 -0
  848. package/types/time-picker/interface.d.ts +62 -0
  849. package/types/time-picker/style/index.d.ts +5 -0
  850. package/types/time-picker/util.d.ts +7 -0
  851. package/types/timeline/Item.d.ts +7 -0
  852. package/types/timeline/Timeline.d.ts +10 -0
  853. package/types/timeline/index.d.ts +4 -0
  854. package/types/timeline/interface.d.ts +26 -0
  855. package/types/timeline/style/index.d.ts +2 -0
  856. package/types/tooltip/index.d.ts +10 -0
  857. package/types/tooltip/interface.d.ts +23 -0
  858. package/types/tooltip/style/index.d.ts +3 -0
  859. package/types/transfer/Item.d.ts +3 -0
  860. package/types/transfer/List.d.ts +5 -0
  861. package/types/transfer/index.d.ts +6 -0
  862. package/types/transfer/interface.d.ts +91 -0
  863. package/types/transfer/style/index.d.ts +6 -0
  864. package/types/tree/Animation.d.ts +4 -0
  865. package/types/tree/Context.d.ts +28 -0
  866. package/types/tree/Node.d.ts +12 -0
  867. package/types/tree/NodeList.d.ts +2 -0
  868. package/types/tree/Tree.d.ts +73 -0
  869. package/types/tree/index.d.ts +8 -0
  870. package/types/tree/interface.d.ts +152 -0
  871. package/types/tree/style/index.d.ts +3 -0
  872. package/types/tree/util.d.ts +13 -0
  873. package/types/tree-select/List.d.ts +11 -0
  874. package/types/tree-select/Select.d.ts +12 -0
  875. package/types/tree-select/hook/useKeyCache.d.ts +6 -0
  876. package/types/tree-select/hook/useStateValue.d.ts +22 -0
  877. package/types/tree-select/hook/useTreeData.d.ts +3 -0
  878. package/types/tree-select/index.d.ts +4 -0
  879. package/types/tree-select/interface.d.ts +79 -0
  880. package/types/tree-select/style/index.d.ts +5 -0
  881. package/types/tree-select/util.d.ts +1 -0
  882. package/types/trigger/Portal.d.ts +7 -0
  883. package/types/trigger/getPopupStyle.d.ts +20 -0
  884. package/types/trigger/index.d.ts +125 -0
  885. package/types/trigger/interface.d.ts +71 -0
  886. package/types/trigger/style/index.d.ts +2 -0
  887. package/types/typography/Base.d.ts +7 -0
  888. package/types/typography/EditContent.d.ts +2 -0
  889. package/types/typography/Ellipsis.d.ts +6 -0
  890. package/types/typography/Operations.d.ts +3 -0
  891. package/types/typography/Paragraph.d.ts +6 -0
  892. package/types/typography/Text.d.ts +6 -0
  893. package/types/typography/Title.d.ts +6 -0
  894. package/types/typography/Typography.d.ts +3 -0
  895. package/types/typography/index.d.ts +12 -0
  896. package/types/typography/interface.d.ts +97 -0
  897. package/types/typography/style/index.d.ts +5 -0
  898. package/types/typography/useCssEllipsis.d.ts +6 -0
  899. package/types/typography/useEllipsis.d.ts +21 -0
  900. package/types/upload/TriggerNode.d.ts +4 -0
  901. package/types/upload/Upload.d.ts +12 -0
  902. package/types/upload/Uploader.d.ts +15 -0
  903. package/types/upload/index.d.ts +4 -0
  904. package/types/upload/interface.d.ts +126 -0
  905. package/types/upload/list/PictureItem.d.ts +8 -0
  906. package/types/upload/list/TextItem.d.ts +8 -0
  907. package/types/upload/list/UploadProgress.d.ts +14 -0
  908. package/types/upload/list/index.d.ts +6 -0
  909. package/types/upload/request.d.ts +3 -0
  910. package/types/upload/style/index.d.ts +6 -0
  911. package/types/upload/util.d.ts +4 -0
  912. package/types/utils/className.d.ts +2 -0
  913. package/types/utils/constant.d.ts +3 -0
  914. package/types/utils/contextHolder.d.ts +9 -0
  915. package/types/utils/dayjs.d.ts +21 -0
  916. package/types/utils/dom.d.ts +6 -0
  917. package/types/utils/fillNBSP.d.ts +1 -0
  918. package/types/utils/getHighlightText.d.ts +5 -0
  919. package/types/utils/getHotkeyHandler.d.ts +8 -0
  920. package/types/utils/getStringLength.d.ts +1 -0
  921. package/types/utils/include.d.ts +1 -0
  922. package/types/utils/is.d.ts +23 -0
  923. package/types/utils/keyCode.d.ts +45 -0
  924. package/types/utils/mergeProp.d.ts +1 -0
  925. package/types/utils/mergedToString.d.ts +1 -0
  926. package/types/utils/omit.d.ts +1 -0
  927. package/types/utils/pad.d.ts +2 -0
  928. package/types/utils/pick.d.ts +4 -0
  929. package/types/utils/raf.d.ts +3 -0
  930. package/types/utils/reactDOM.d.ts +5 -0
  931. package/types/utils/responsiveObserve.d.ts +15 -0
  932. package/types/utils/scrollIntoView.d.ts +2 -0
  933. package/types/utils/style.d.ts +3 -0
  934. package/types/utils/throttleByRaf.d.ts +4 -0
  935. package/types/utils/throttleByRafV2.d.ts +4 -0
  936. package/types/utils/type.d.ts +4 -0
  937. package/types/utils/warning.d.ts +1 -0
  938. package/types/verification-code/VerificationCode.d.ts +7 -0
  939. package/types/verification-code/index.d.ts +5 -0
  940. package/types/verification-code/interface.d.ts +25 -0
  941. package/types/verification-code/style/index.d.ts +3 -0
  942. package/types/version/index.d.ts +2 -0
  943. package/types/virtual-list/Filler.d.ts +10 -0
  944. package/types/virtual-list/VirtualList.d.ts +39 -0
  945. package/types/virtual-list/index.d.ts +4 -0
  946. package/types/virtual-list/style/index.d.ts +2 -0
  947. package/types/virtual-list/util/algorithm.d.ts +6 -0
  948. package/types/virtual-list/util/item.d.ts +44 -0
  949. package/types/watermark/Watermark.d.ts +4 -0
  950. package/types/watermark/index.d.ts +5 -0
  951. package/types/watermark/interface.d.ts +21 -0
  952. package/types/watermark/style/index.d.ts +1 -0
  953. package/utils/className.js +5 -0
  954. package/utils/constant.js +23 -0
  955. package/utils/contextHolder.js +6 -0
  956. package/utils/dayjs.js +174 -0
  957. package/utils/dom.js +47 -0
  958. package/utils/fillNBSP.js +6 -0
  959. package/utils/getHighlightText.js +41 -0
  960. package/utils/getHotkeyHandler.js +27 -0
  961. package/utils/getStringLength.js +9 -0
  962. package/utils/include.js +9 -0
  963. package/utils/is.js +94 -0
  964. package/utils/keyCode.js +48 -0
  965. package/utils/mergeProp.js +11 -0
  966. package/utils/mergedToString.js +14 -0
  967. package/utils/omit.js +11 -0
  968. package/utils/pad.js +18 -0
  969. package/utils/pick.js +17 -0
  970. package/utils/raf.js +19 -0
  971. package/utils/reactDOM.js +36 -0
  972. package/utils/responsiveObserve.js +65 -0
  973. package/utils/scrollIntoView.js +22 -0
  974. package/utils/style.js +39 -0
  975. package/utils/throttleByRaf.js +15 -0
  976. package/utils/throttleByRafV2.js +16 -0
  977. package/utils/type.js +1 -0
  978. package/utils/warning.js +6 -0
package/DatePicker.js ADDED
@@ -0,0 +1,2006 @@
1
+ import { jsxs as X, jsx as n, Fragment as ge } from "react/jsx-runtime";
2
+ import "./chunk/DP2rzg_V.js";
3
+ import "./chunk/C6Kfwj0f.js";
4
+ import Gn from "./Link.js";
5
+ import { I as Xn, a as Zn } from "./chunk/CwIyJM0N.js";
6
+ import "./chunk/RnTpOC5-.js";
7
+ import Dn from "./Trigger.js";
8
+ import { T as eo } from "./chunk/ehTyphn0.js";
9
+ import Nn from "@unicom-cloud/icons/IconUiCalendar";
10
+ import bn from "@unicom-cloud/icons/IconUiCalendarClock";
11
+ import to, { isDayjs as Ue } from "dayjs";
12
+ import ee from "lodash/isArray";
13
+ import Nt from "lodash/isPlainObject";
14
+ import xn from "lodash/isUndefined";
15
+ import rn, { createContext as no, forwardRef as oo, useContext as ye, useRef as Oe, useState as se, useEffect as Ct, useMemo as Vn } from "react";
16
+ import { a as et } from "./chunk/Dc_89PVN.js";
17
+ import Tn from "./hooks/useMergeProps.js";
18
+ import $t from "./hooks/usePrevious.js";
19
+ import Xt from "./hooks/useUpdateEffect.js";
20
+ import $e from "@unicom-cloud/utils/class-name";
21
+ import { methods as oe, getDayjsValue as ne, getNow as ce, toLocal as qe, toTimezone as Zt, isDayjsChange as ro, getValueWithTime as Ze, dayjs as bt, getSortedDayjsArray as Dt, getTimeFormat as ao, isDayjsArrayChange as so, isValidTimeString as io } from "./utils/dayjs.js";
22
+ import Ln from "./utils/omit.js";
23
+ import { pickDataAttributes as Yn } from "./utils/pick.js";
24
+ import Et from "./Button.js";
25
+ import At from "lodash/merge";
26
+ import vn from "@unicom-cloud/icons/IconUiDoubleLeft";
27
+ import Pn from "@unicom-cloud/icons/IconUiDoubleRight";
28
+ import Sn from "@unicom-cloud/icons/IconUiLeft";
29
+ import wn from "@unicom-cloud/icons/IconUiRight";
30
+ import { newArray as Rt } from "./utils/constant.js";
31
+ import { padStart as $n } from "./utils/pad.js";
32
+ const tt = no({});
33
+ function co(r, t) {
34
+ const {
35
+ prefixCls: a,
36
+ shortcuts: d = [],
37
+ onSelectNow: c,
38
+ nowText: u,
39
+ showNowBtn: s,
40
+ showTime: m,
41
+ onMouseEnterShortcut: l,
42
+ onMouseLeaveShortcut: b
43
+ } = r;
44
+ function C(P) {
45
+ l == null || l(P);
46
+ }
47
+ function $(P) {
48
+ b == null || b(P);
49
+ }
50
+ function p(P, I) {
51
+ const { onSelectShortcut: D } = r;
52
+ D == null || D(P, I);
53
+ }
54
+ const M = ee(d) && d.length > 0, S = s && m && !M;
55
+ return /* @__PURE__ */ X("div", { ref: t, className: `${a}-shortcuts`, children: [
56
+ S && /* @__PURE__ */ n(Et, { size: "mini", onClick: c, children: u }),
57
+ M && d.map((P, I) => /* @__PURE__ */ n(
58
+ Et,
59
+ {
60
+ size: "mini",
61
+ onMouseEnter: () => C(P),
62
+ onMouseLeave: () => $(P),
63
+ onClick: (D) => p(P, D),
64
+ children: P.text
65
+ },
66
+ I
67
+ ))
68
+ ] });
69
+ }
70
+ const an = oo(co);
71
+ function En(r) {
72
+ const {
73
+ showTime: t,
74
+ prefixCls: a,
75
+ DATEPICKER_LOCALE: d,
76
+ disabled: c,
77
+ onClickConfirmBtn: u,
78
+ onClickSelectTimeBtn: s,
79
+ isTimePanel: m,
80
+ onSelectNow: l,
81
+ showNowBtn: b,
82
+ shortcuts: C,
83
+ onMouseEnterShortcut: $,
84
+ onMouseLeaveShortcut: p,
85
+ onSelectShortcut: M,
86
+ extra: S,
87
+ mode: P,
88
+ shortcutsPlacementLeft: I
89
+ } = r, D = ee(C) && C.length > 0, w = b && t && !D || D && !I;
90
+ return /* @__PURE__ */ X("div", { className: `${a}-footer`, children: [
91
+ S && /* @__PURE__ */ n("div", { className: `${a}-footer-extra-wrapper`, children: S }),
92
+ !t && b && P === "date" && /* @__PURE__ */ n("div", { className: `${a}-footer-now-wrapper`, children: /* @__PURE__ */ n(Gn, { onClick: l, children: d.today }) }),
93
+ w || t ? /* @__PURE__ */ X("div", { className: `${a}-footer-btn-wrapper`, children: [
94
+ I ? /* @__PURE__ */ n("div", {}) : /* @__PURE__ */ n(
95
+ an,
96
+ {
97
+ shortcuts: C,
98
+ prefixCls: a,
99
+ onSelectNow: l,
100
+ nowText: d.now,
101
+ showNowBtn: b,
102
+ onMouseEnterShortcut: $,
103
+ onMouseLeaveShortcut: p,
104
+ onSelectShortcut: M,
105
+ showTime: t
106
+ }
107
+ ),
108
+ t && /* @__PURE__ */ X(ge, { children: [
109
+ /* @__PURE__ */ n(
110
+ Et,
111
+ {
112
+ type: "text",
113
+ size: "mini",
114
+ onClick: s,
115
+ className: m ? `${a}-btn-select-date` : `${a}-btn-select-time`,
116
+ children: m ? d.selectDate : d.selectTime
117
+ }
118
+ ),
119
+ /* @__PURE__ */ n(
120
+ Et,
121
+ {
122
+ className: `${a}-btn-confirm`,
123
+ type: "primary",
124
+ size: "mini",
125
+ disabled: c,
126
+ onClick: u,
127
+ children: d.ok
128
+ }
129
+ )
130
+ ] })
131
+ ] }) : null
132
+ ] });
133
+ }
134
+ function Mt(r) {
135
+ return r && ee(r) ? Ue(r[0]) && Ue(r[1]) ? 2 : !Ue(r[0]) && !Ue(r[1]) ? 0 : 1 : 0;
136
+ }
137
+ function en(r, t, a) {
138
+ if (typeof t != "function")
139
+ return !1;
140
+ const d = (c, u, s) => {
141
+ let m = u;
142
+ for (; m <= s; ) {
143
+ let l;
144
+ switch (c) {
145
+ case "date": {
146
+ if (l = oe.set(r, "date", m), !t(l))
147
+ return !1;
148
+ break;
149
+ }
150
+ case "month": {
151
+ if (l = oe.set(r, "month", m), !en(l, t, "month"))
152
+ return !1;
153
+ break;
154
+ }
155
+ case "year": {
156
+ if (l = oe.set(r, "year", m), !en(l, t, "year"))
157
+ return !1;
158
+ break;
159
+ }
160
+ }
161
+ m += 1;
162
+ }
163
+ return !0;
164
+ };
165
+ switch (a) {
166
+ case "date":
167
+ case "week":
168
+ return t(r);
169
+ case "month": {
170
+ const u = r.endOf("month").get("date");
171
+ return d("date", 1, u);
172
+ }
173
+ case "quarter": {
174
+ const c = Math.floor(r.get("month") / 3) * 3, u = c + 2;
175
+ return d("month", c, u);
176
+ }
177
+ case "year":
178
+ return d("month", 0, 11);
179
+ default:
180
+ return !1;
181
+ }
182
+ }
183
+ function Rn(r) {
184
+ var t, a;
185
+ return ((a = (t = to.Ls) == null ? void 0 : t[r]) == null ? void 0 : a.weekStart) || 0;
186
+ }
187
+ function Ae(r, t) {
188
+ return r && r.locale(t);
189
+ }
190
+ function Ie(r, t) {
191
+ return ee(r) ? r[t] : r;
192
+ }
193
+ function lo(r) {
194
+ const { format: t, picker: a, showTime: d } = r;
195
+ let c;
196
+ switch (r.mode || a.props.pickerType) {
197
+ case "date":
198
+ c = d ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
199
+ break;
200
+ case "month":
201
+ c = "YYYY-MM";
202
+ break;
203
+ case "year":
204
+ c = "YYYY";
205
+ break;
206
+ case "week":
207
+ c = "gggg-wo";
208
+ break;
209
+ case "quarter":
210
+ c = "YYYY-[Q]Q";
211
+ break;
212
+ default:
213
+ c = "YYYY-MM-DD";
214
+ }
215
+ return t && (c = t), c;
216
+ }
217
+ const yn = {
218
+ allowClear: !0,
219
+ unmountOnExit: !0,
220
+ position: "bl",
221
+ editable: !0,
222
+ showNowBtn: !0
223
+ }, uo = { bottom: 4 }, fo = (r) => {
224
+ const {
225
+ getPrefixCls: t,
226
+ locale: a,
227
+ size: d,
228
+ componentConfig: c,
229
+ rtl: u
230
+ } = ye(et);
231
+ u && (yn.position = "br");
232
+ const s = Tn(
233
+ r,
234
+ yn,
235
+ c == null ? void 0 : c.DatePicker
236
+ ), {
237
+ allowClear: m,
238
+ className: l,
239
+ style: b,
240
+ placeholder: C,
241
+ getPopupContainer: $,
242
+ disabled: p,
243
+ position: M,
244
+ error: S,
245
+ status: P,
246
+ unmountOnExit: I,
247
+ editable: D,
248
+ triggerProps: T,
249
+ picker: w,
250
+ shortcuts: v,
251
+ onSelect: k,
252
+ onVisibleChange: E,
253
+ value: j,
254
+ onChange: L,
255
+ icons: O,
256
+ disabledDate: q,
257
+ showTime: h,
258
+ showNowBtn: A,
259
+ onSelectShortcut: K,
260
+ extra: re,
261
+ shortcutsPlacementLeft: H,
262
+ onOk: U,
263
+ defaultPickerValue: Z,
264
+ pickerValue: x,
265
+ onPickerValueChange: B,
266
+ triggerElement: Q,
267
+ utcOffset: _,
268
+ timezone: W,
269
+ panelRender: ve,
270
+ inputProps: R
271
+ } = s, N = t("picker"), He = a.DatePicker, ke = xn(s.dayStartOfWeek) ? Rn(a.dayjsLocale) : s.dayStartOfWeek, Ce = s.mode || w.props.pickerType, z = Oe(null), fe = Oe(null), J = Oe(null), F = lo(s);
272
+ let Y = F;
273
+ typeof Y == "function" && (Y = h ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
274
+ function y() {
275
+ let i;
276
+ return s.value ? i = ne(s.value, Y, _, W) : i = ne(s.defaultValue, Y, _, W), i;
277
+ }
278
+ const [De, te] = se(y()), [le, _t] = se(s.popupVisible), [ue, nt] = se(!1), [Qe, Ee] = se(), de = "popupVisible" in s ? s.popupVisible : le, Be = "value" in s ? ne(j, Y, _, W) : De, Ke = Be || ne(Z, Y) || ce(), [ut, _e] = se(), [Pe, Se] = se(), [Wt, Re] = se(), [Vt, Ne] = se(Ke), ft = ne(x, Y) || Vt, Te = Wt || Pe || Be, [We, ot] = se(Ce), dt = Nt(h) && ne(
279
+ h.defaultValue,
280
+ h.format || "HH:mm:ss"
281
+ ) || ce(_, W), rt = Te || dt;
282
+ function Le() {
283
+ z.current && z.current.blur && z.current.focus();
284
+ }
285
+ function Ye() {
286
+ var i, g;
287
+ (g = (i = z.current) == null ? void 0 : i.blur) == null || g.call(i);
288
+ }
289
+ const we = $t(_), G = $t(W);
290
+ Xt(() => {
291
+ if (De && (we !== _ || W !== G)) {
292
+ const i = qe(De, we, G);
293
+ te(Zt(i, _, W));
294
+ }
295
+ }, [_, we, W, G]), Ct(() => {
296
+ _e(void 0), Ee(void 0), de ? (Ne(Ke), H && (J.current.style.maxHeight = `${fe.current.clientHeight}px`)) : (Se(void 0), Re(void 0), setTimeout(() => {
297
+ nt(!1), ot(Ce), Ye();
298
+ }, 100));
299
+ }, [de]);
300
+ function pe(i) {
301
+ i ? xe(i, () => {
302
+ Le();
303
+ }) : xe(!1);
304
+ }
305
+ function be(i) {
306
+ B == null || B(i.format(Y), i);
307
+ }
308
+ function xe(i, g) {
309
+ _t(i), E == null || E(i), g == null || g();
310
+ }
311
+ function Tt(i) {
312
+ var g;
313
+ i.stopPropagation(), te(void 0), Se(void 0), ze(void 0), (g = s.onClear) == null || g.call(s);
314
+ }
315
+ function zt() {
316
+ const i = Ae(Te, a.dayjsLocale);
317
+ Je(), U == null || U(i && i.format(Y), i);
318
+ }
319
+ function Je() {
320
+ te(Te), ze(Te), xe(!1);
321
+ }
322
+ function mt(i, g, me) {
323
+ if (_e(void 0), Ee(void 0), h) {
324
+ const ae = me ? g : Ze(g, rt);
325
+ Se(ae), Ne(ae);
326
+ const Ve = Ae(
327
+ qe(ae, _, W),
328
+ a.dayjsLocale
329
+ );
330
+ k == null || k(Ve.format(Y), Ve);
331
+ } else {
332
+ const ae = Ae(
333
+ qe(g, _, W).locale(a.dayjsLocale),
334
+ a.dayjsLocale
335
+ );
336
+ k == null || k(ae ? ae.format(Y) : void 0, ae), te(g), ze(g), xe(!1);
337
+ }
338
+ }
339
+ function ze(i) {
340
+ if (ro(i, Be)) {
341
+ const g = Ae(
342
+ qe(i, _, W),
343
+ a.dayjsLocale
344
+ );
345
+ L == null || L(
346
+ g ? g.format(Y) : void 0,
347
+ g
348
+ );
349
+ }
350
+ }
351
+ function pt(i, g) {
352
+ const me = Te || ce(_, W), ae = Ze(me, g);
353
+ Se(ae);
354
+ const Ve = Ae(
355
+ qe(ae, _, W),
356
+ a.dayjsLocale
357
+ );
358
+ k == null || k(Ve.format(Y), Ve);
359
+ }
360
+ function Ft(i) {
361
+ return typeof i == "string" && bt(i, Y).format(Y) === i && (typeof q == "function" ? !q(bt(i, Y)) : !0);
362
+ }
363
+ function ht(i) {
364
+ const g = i.target.value;
365
+ if (_e(g), de || xe(!0), Ft(g)) {
366
+ const me = ne(g, Y);
367
+ Se(me), Ne(me), _e(void 0);
368
+ }
369
+ }
370
+ function Lt() {
371
+ Te ? (Je(), Ye()) : de && xe(!1);
372
+ }
373
+ function he(i, g, me = 1) {
374
+ let ae;
375
+ i === "prev" && (ae = oe.subtract(ft, me, g)), i === "next" && (ae = oe.add(ft, me, g)), be(ae), Ne(ae);
376
+ }
377
+ function Ge(i = Ce) {
378
+ if (i === "date" || i === "week")
379
+ return {
380
+ onPrev: () => he("prev", "month"),
381
+ onNext: () => he("next", "month"),
382
+ onSuperPrev: () => he("prev", "year"),
383
+ onSuperNext: () => he("next", "year")
384
+ };
385
+ if (i === "month" || i === "quarter")
386
+ return {
387
+ onSuperPrev: () => he("prev", "year"),
388
+ onSuperNext: () => he("next", "year")
389
+ };
390
+ if (i === "year")
391
+ return {
392
+ onSuperPrev: () => he("prev", "year", 10),
393
+ onSuperNext: () => he("next", "year", 10)
394
+ };
395
+ }
396
+ function at() {
397
+ const i = Ae(
398
+ ce(_, W),
399
+ a.dayjsLocale
400
+ );
401
+ be(i), mt(i.format(Y), i, !0);
402
+ }
403
+ function gt(i, g) {
404
+ if (!g) {
405
+ const me = h ? Ze(i, rt) : i;
406
+ Ee(
407
+ typeof F == "function" ? F(i) : me.locale(a.dayjsLocale).format(Y)
408
+ );
409
+ }
410
+ }
411
+ function jt() {
412
+ Ee(void 0);
413
+ }
414
+ function qt(i) {
415
+ if (typeof i.value == "function" && Ue(i.value())) {
416
+ const g = ne(
417
+ i.value(),
418
+ Y,
419
+ _,
420
+ W
421
+ );
422
+ Ne(g), be(g), Re(g);
423
+ }
424
+ }
425
+ function Xe() {
426
+ const i = Pe || Be || ce(_, W);
427
+ Re(void 0), Ne(i), be(i);
428
+ }
429
+ function vt(i) {
430
+ if (K == null || K(i), typeof i.value == "function" && Ue(i.value())) {
431
+ const g = ne(
432
+ i.value(),
433
+ Y,
434
+ _,
435
+ W
436
+ );
437
+ te(g), ze(g), xe(!1);
438
+ }
439
+ }
440
+ function Fe() {
441
+ nt(!ue);
442
+ }
443
+ function Pt(i) {
444
+ const g = $e(
445
+ `${N}-container`,
446
+ {
447
+ [`${N}-panel-only`]: i,
448
+ [`${N}-container-shortcuts-placement-left`]: ee(v) && H,
449
+ [`${N}-container-rtl`]: u
450
+ },
451
+ i ? l : ""
452
+ ), me = {
453
+ prefixCls: N,
454
+ showTime: h,
455
+ shortcuts: v,
456
+ onSelectNow: at,
457
+ showNowBtn: A,
458
+ onMouseEnterShortcut: qt,
459
+ onMouseLeaveShortcut: Xe,
460
+ onSelectShortcut: vt
461
+ }, ae = h && We === "date" || re || ee(v) && v.length && !H || !h && We === "date" && A, Ve = /* @__PURE__ */ X(ge, { children: [
462
+ rn.cloneElement(w, {
463
+ ...Ln(s, ["style"]),
464
+ ...Ge(),
465
+ getHeaderOperations: Ge,
466
+ onSelect: mt,
467
+ onTimePickerSelect: pt,
468
+ onSelectNow: at,
469
+ popupVisible: de,
470
+ format: Y,
471
+ value: Te,
472
+ pageShowDate: ft,
473
+ localeName: a.dayjsLocale,
474
+ setPageShowDate: (Me) => {
475
+ Ne(Me), be(Me);
476
+ },
477
+ timeValue: rt,
478
+ isTimePanel: ue,
479
+ panelMode: We,
480
+ setPanelMode: ot,
481
+ onMouseEnterCell: gt,
482
+ onMouseLeaveCell: jt
483
+ }),
484
+ !!ae && /* @__PURE__ */ n(
485
+ En,
486
+ {
487
+ ...me,
488
+ DATEPICKER_LOCALE: He,
489
+ disabled: !Te,
490
+ onClickConfirmBtn: zt,
491
+ extra: re,
492
+ mode: We,
493
+ shortcutsPlacementLeft: H,
494
+ onClickSelectTimeBtn: Fe,
495
+ isTimePanel: ue
496
+ }
497
+ )
498
+ ] }), wt = H ? /* @__PURE__ */ X(ge, { children: [
499
+ /* @__PURE__ */ n(an, { ref: J, ...me }),
500
+ /* @__PURE__ */ n("div", { ref: fe, className: `${N}-panel-wrapper`, children: Ve })
501
+ ] }) : Ve, Qt = typeof ve == "function" ? ve(wt) : wt;
502
+ return /* @__PURE__ */ n(
503
+ "div",
504
+ {
505
+ className: g,
506
+ onClick: () => {
507
+ var Me, yt;
508
+ (yt = (Me = z.current) == null ? void 0 : Me.focus) == null || yt.call(Me);
509
+ },
510
+ style: i ? b : {},
511
+ children: Qt
512
+ }
513
+ );
514
+ }
515
+ const st = s.size || d, St = O && O.inputSuffix === null ? null : O && O.inputSuffix || (h ? /* @__PURE__ */ n(bn, {}) : /* @__PURE__ */ n(Nn, {})), Ut = {
516
+ style: b,
517
+ className: l,
518
+ popupVisible: de,
519
+ format: F,
520
+ disabled: p,
521
+ error: S,
522
+ status: P,
523
+ size: st,
524
+ onPressEnter: Lt,
525
+ onClear: Tt,
526
+ prefix: s.prefix,
527
+ suffixIcon: St,
528
+ editable: D && typeof F != "function",
529
+ allowClear: m
530
+ };
531
+ return /* @__PURE__ */ n(tt.Provider, { value: { utcOffset: _, timezone: W, weekStart: ke }, children: Q === null ? Pt(!0) : /* @__PURE__ */ n(
532
+ Dn,
533
+ {
534
+ popup: Pt,
535
+ trigger: "click",
536
+ clickToClose: !1,
537
+ position: M,
538
+ disabled: p,
539
+ popupAlign: uo,
540
+ getPopupContainer: $,
541
+ onVisibleChange: pe,
542
+ popupVisible: de,
543
+ classNames: "slideDynamicOrigin",
544
+ unmountOnExit: I,
545
+ ...T,
546
+ children: Q || /* @__PURE__ */ n(
547
+ Xn,
548
+ {
549
+ ...Yn(s),
550
+ ...Ut,
551
+ ref: z,
552
+ placeholder: C || He.placeholder[Ce],
553
+ popupVisible: de,
554
+ value: Pe || Be,
555
+ inputValue: Qe || ut,
556
+ prefixCls: N,
557
+ onChange: ht,
558
+ isPlaceholder: !!Qe,
559
+ inputProps: R
560
+ }
561
+ )
562
+ }
563
+ ) });
564
+ };
565
+ function ct(r, t) {
566
+ if (r && ee(r))
567
+ return r[t];
568
+ }
569
+ function mo(r) {
570
+ const {
571
+ prefixCls: t,
572
+ value: a,
573
+ rangeValues: d,
574
+ valueShowHover: c,
575
+ isSameTime: u,
576
+ mode: s,
577
+ hideNotInViewDates: m
578
+ } = r, l = Mt(d), b = Mt(c), C = l !== 2 && b === 2 ? Dt(c) : d, $ = l === 2 ? Dt(c) : [];
579
+ function p(M, S, P) {
580
+ if (S && P)
581
+ return u(M, S) || u(M, P) || M.isBetween(S, P, null);
582
+ }
583
+ return function(S, P, I, D) {
584
+ const T = ct(C, 0), w = ct(C, 1), v = ct($, 0), k = ct($, 1), E = !S.isPrev && !S.isNext, j = a && u(S.time, a);
585
+ let L = u(S.time, ce(I, D));
586
+ const O = s !== "week" ? E : !0;
587
+ s === "week" && (L = ce(I, D).isSame(S.time, "date")), s === "quarter" && (L = ce(I, D).isSame(S.time, "quarter"));
588
+ function q(B) {
589
+ return O && !P && B && u(S.time, B);
590
+ }
591
+ const h = q(T), A = q(w), K = q(
592
+ ct(d, 0)
593
+ ), re = q(
594
+ ct(d, 1)
595
+ ), H = q(v), U = q(k);
596
+ let Z = !1;
597
+ h ? Z = v && T && v.isBefore(T) && p(T, v, k) : A && (Z = k && w && k.isAfter(w) && p(w, v, k));
598
+ let x = !1;
599
+ return H ? x = v && T && T.isBefore(v) && p(v, T, w) : U && (x = k && w && w.isAfter(k) && p(k, T, w)), $e(`${t}-cell`, {
600
+ [`${t}-cell-disabled`]: P,
601
+ [`${t}-cell-hidden`]: m && !E,
602
+ [`${t}-cell-in-view`]: E,
603
+ [`${t}-cell-today`]: L && E,
604
+ [`${t}-cell-selected`]: j || K || re,
605
+ [`${t}-cell-range-start`]: h,
606
+ [`${t}-cell-range-end`]: A,
607
+ [`${t}-cell-in-range`]: O && !P && p(S.time, T, w),
608
+ [`${t}-cell-hover-range-start`]: H,
609
+ [`${t}-cell-hover-range-end`]: U,
610
+ [`${t}-cell-hover-in-range`]: O && !P && p(S.time, v, k),
611
+ [`${t}-cell-range-edge-in-hover-range`]: Z,
612
+ [`${t}-cell-hover-range-edge-in-range`]: x
613
+ });
614
+ };
615
+ }
616
+ function po(r) {
617
+ const { prefixCls: t, weekStart: a, isWeek: d, CALENDAR_LOCALE: c } = r;
618
+ let u = [
619
+ "sunday",
620
+ "monday",
621
+ "tuesday",
622
+ "wednesday",
623
+ "thursday",
624
+ "friday",
625
+ "saturday"
626
+ ];
627
+ u = u.slice(a).concat(u.slice(0, a)), d && u.unshift("");
628
+ const s = c.week.short;
629
+ return /* @__PURE__ */ n("div", { className: `${t}-week-list`, children: u.map((m) => /* @__PURE__ */ n("div", { className: `${t}-week-list-item`, children: m && s[m] }, m)) });
630
+ }
631
+ function Ht(r) {
632
+ const {
633
+ prefixCls: t,
634
+ isWeek: a,
635
+ disabledDate: d,
636
+ onSelectDate: c,
637
+ dateRender: u,
638
+ onMouseEnterCell: s,
639
+ onMouseLeaveCell: m,
640
+ CALENDAR_LOCALE: l,
641
+ rows: b,
642
+ showWeekList: C,
643
+ isSameTime: $,
644
+ format: p,
645
+ mode: M
646
+ } = r, { utcOffset: S, timezone: P, weekStart: I } = ye(tt), D = mo({
647
+ ...r,
648
+ isSameTime: $
649
+ });
650
+ function T(w) {
651
+ return w.map((v, k) => {
652
+ if (v.time) {
653
+ const E = en(v.time, d, M), j = () => !E && c(v.time.format(p), v.time);
654
+ return /* @__PURE__ */ n(
655
+ "div",
656
+ {
657
+ className: D(v, E, S, P),
658
+ onMouseEnter: () => s == null ? void 0 : s(v.time, E),
659
+ onMouseLeave: () => m == null ? void 0 : m(v.time, E),
660
+ onClick: j,
661
+ children: u ? rn.cloneElement(u(v.time)) : /* @__PURE__ */ n("div", { className: `${t}-date`, children: /* @__PURE__ */ n("div", { className: `${t}-date-value`, children: v.name }) })
662
+ },
663
+ k
664
+ );
665
+ }
666
+ if ("weekOfYear" in v)
667
+ return /* @__PURE__ */ n(
668
+ "div",
669
+ {
670
+ className: $e(`${t}-cell`, `${t}-cell-week`),
671
+ children: /* @__PURE__ */ n("div", { className: `${t}-date`, children: /* @__PURE__ */ n("div", { className: `${t}-date-value`, children: v.weekOfYear }) })
672
+ },
673
+ k
674
+ );
675
+ });
676
+ }
677
+ return /* @__PURE__ */ X(ge, { children: [
678
+ C && /* @__PURE__ */ n(
679
+ po,
680
+ {
681
+ prefixCls: t,
682
+ weekStart: I,
683
+ isWeek: a,
684
+ CALENDAR_LOCALE: l
685
+ }
686
+ ),
687
+ /* @__PURE__ */ n("div", { className: `${t}-body`, children: b.map((w, v) => /* @__PURE__ */ n(
688
+ "div",
689
+ {
690
+ className: $e(`${t}-row`, {
691
+ [`${t}-row-week`]: a
692
+ }),
693
+ children: T(w)
694
+ },
695
+ v
696
+ )) })
697
+ ] });
698
+ }
699
+ function Bt(r) {
700
+ const {
701
+ prefixCls: t,
702
+ title: a,
703
+ onPrev: d,
704
+ onNext: c,
705
+ onSuperPrev: u,
706
+ onSuperNext: s,
707
+ mode: m,
708
+ value: l,
709
+ onChangePanel: b,
710
+ icons: C = {},
711
+ rtl: $,
712
+ DATEPICKER_LOCALE: p
713
+ } = r, M = typeof d == "function", S = typeof u == "function", P = typeof c == "function", I = typeof s == "function", D = (j) => $e(`${t}-header-icon`, {
714
+ [`${t}-header-icon-hidden`]: !j
715
+ });
716
+ function T() {
717
+ if (a)
718
+ return a;
719
+ if (m === "date" || m === "week") {
720
+ const { monthBeforeYear: j } = (p == null ? void 0 : p.Calendar) || {}, L = /* @__PURE__ */ n(
721
+ "span",
722
+ {
723
+ className: `${t}-header-label`,
724
+ onClick: () => b("year"),
725
+ children: l.format("YYYY")
726
+ }
727
+ ), O = /* @__PURE__ */ n(
728
+ "span",
729
+ {
730
+ className: `${t}-header-label`,
731
+ onClick: () => b("month"),
732
+ children: l.format("MM")
733
+ }
734
+ );
735
+ return j ? /* @__PURE__ */ X(ge, { children: [
736
+ O,
737
+ "/",
738
+ L
739
+ ] }) : /* @__PURE__ */ X(ge, { children: [
740
+ L,
741
+ "-",
742
+ O
743
+ ] });
744
+ }
745
+ if (m === "month" || m === "quarter")
746
+ return /* @__PURE__ */ n(
747
+ "span",
748
+ {
749
+ className: `${t}-header-label`,
750
+ onClick: () => b("year"),
751
+ children: l.format("YYYY")
752
+ }
753
+ );
754
+ }
755
+ const w = C.prevDouble === null, v = C.prev === null, k = C.next === null, E = C.nextDouble === null;
756
+ return /* @__PURE__ */ X("div", { className: `${t}-header`, children: [
757
+ !w && /* @__PURE__ */ n("div", { className: D(S), onClick: u, children: S && (w ? null : C.prevDouble || ($ ? /* @__PURE__ */ n(Pn, {}) : /* @__PURE__ */ n(vn, {}))) }),
758
+ !v && /* @__PURE__ */ n("div", { className: D(M), onClick: d, children: M && (v ? null : C.prev || ($ ? /* @__PURE__ */ n(wn, {}) : /* @__PURE__ */ n(Sn, {}))) }),
759
+ /* @__PURE__ */ n("div", { className: `${t}-header-value`, children: T() }),
760
+ !k && /* @__PURE__ */ n("div", { className: D(P), onClick: c, children: P && (k ? null : C.next || ($ ? /* @__PURE__ */ n(Sn, {}) : /* @__PURE__ */ n(wn, {}))) }),
761
+ !E && /* @__PURE__ */ n("div", { className: D(I), onClick: s, children: I && (E ? null : C.nextDouble || ($ ? /* @__PURE__ */ n(vn, {}) : /* @__PURE__ */ n(Pn, {}))) })
762
+ ] });
763
+ }
764
+ function lt(r) {
765
+ const {
766
+ pageShowDate: t,
767
+ style: a,
768
+ onMouseEnterCell: d,
769
+ onMouseLeaveCell: c,
770
+ dateRender: u,
771
+ disabledDate: s,
772
+ value: m,
773
+ locale: l,
774
+ isRangePicker: b,
775
+ onSelect: C,
776
+ rangeValues: $,
777
+ onSuperPrev: p,
778
+ onSuperNext: M,
779
+ format: S,
780
+ icons: P,
781
+ ...I
782
+ } = r, { locale: D, getPrefixCls: T, rtl: w } = ye(et), k = At(D.DatePicker, l).Calendar, { utcOffset: E, timezone: j } = ye(tt), L = T("panel-year"), O = $e(L), q = b ? { rangeValues: $ } : { value: m }, h = t ? t.year() : ce(E, j).year(), A = Math.floor(h / 10) * 10 - 1, K = Rt(3).map((Z) => ""), re = Rt(4).map((Z) => K).map((Z, x) => Z.map((B, Q) => ({
783
+ name: A + x * 3 + Q,
784
+ time: bt(`${A + x * 3 + Q}`, "YYYY").endOf("year"),
785
+ isPrev: x === 0 && Q === 0,
786
+ isNext: x === 3 && Q === 2
787
+ })));
788
+ function H() {
789
+ return /* @__PURE__ */ n(
790
+ Ht,
791
+ {
792
+ ...I,
793
+ ...q,
794
+ prefixCls: T("picker"),
795
+ rows: re,
796
+ onSelectDate: C,
797
+ isSameTime: (Z, x) => Z.isSame(x, "year"),
798
+ onMouseEnterCell: d,
799
+ onMouseLeaveCell: c,
800
+ dateRender: u,
801
+ disabledDate: s,
802
+ CALENDAR_LOCALE: k,
803
+ mode: "year",
804
+ format: S
805
+ }
806
+ );
807
+ }
808
+ const U = { onSuperPrev: p, onSuperNext: M };
809
+ return /* @__PURE__ */ X("div", { className: O, style: a, children: [
810
+ /* @__PURE__ */ n(
811
+ Bt,
812
+ {
813
+ prefixCls: T("picker"),
814
+ icons: P,
815
+ title: `${re[0][1].name} - ${re[3][2].name}`,
816
+ rtl: w,
817
+ ...U
818
+ }
819
+ ),
820
+ H()
821
+ ] });
822
+ }
823
+ function It(r) {
824
+ const {
825
+ pageShowDate: t,
826
+ style: a,
827
+ onMouseEnterCell: d,
828
+ onMouseLeaveCell: c,
829
+ dateRender: u,
830
+ disabledDate: s,
831
+ value: m,
832
+ locale: l,
833
+ isRangePicker: b,
834
+ onSelect: C,
835
+ rangeValues: $,
836
+ onSuperPrev: p,
837
+ onSuperNext: M,
838
+ format: S,
839
+ getHeaderOperations: P,
840
+ setPageShowDate: I,
841
+ icons: D,
842
+ panelMode: T,
843
+ setPanelMode: w,
844
+ ...v
845
+ } = r, { locale: k, getPrefixCls: E, rtl: j } = ye(et), L = At(k.DatePicker, l), O = L.Calendar, q = E("panel-month"), h = $e(q), A = b ? { rangeValues: $ } : { value: m }, K = t.year(), re = Vn(() => {
846
+ const x = [
847
+ "January",
848
+ "February",
849
+ "March",
850
+ "April",
851
+ "May",
852
+ "June",
853
+ "July",
854
+ "August",
855
+ "September",
856
+ "October",
857
+ "November",
858
+ "December"
859
+ ].map((Q, _) => ({
860
+ name: O.month.short[Q],
861
+ time: bt(
862
+ `${K}-${$n(_ + 1, 2, "0")}`,
863
+ "YYYY-MM"
864
+ ).endOf("month")
865
+ })), B = Array(4);
866
+ for (let Q = 0; Q < 4; Q++)
867
+ B[Q] = x.slice(Q * 3, 3 * (Q + 1));
868
+ return B;
869
+ }, [K, O]);
870
+ function H() {
871
+ return /* @__PURE__ */ n(
872
+ Ht,
873
+ {
874
+ ...v,
875
+ ...A,
876
+ prefixCls: E("picker"),
877
+ rows: re,
878
+ onSelectDate: C,
879
+ isSameTime: (x, B) => x.isSame(B, "month"),
880
+ onMouseEnterCell: d,
881
+ onMouseLeaveCell: c,
882
+ dateRender: u,
883
+ disabledDate: s,
884
+ CALENDAR_LOCALE: O,
885
+ mode: "month",
886
+ format: S
887
+ }
888
+ );
889
+ }
890
+ const U = { onSuperPrev: p, onSuperNext: M };
891
+ function Z(x) {
892
+ w(x);
893
+ }
894
+ return T === "year" ? /* @__PURE__ */ n(
895
+ lt,
896
+ {
897
+ ...P(T),
898
+ pageShowDate: t,
899
+ onSelect: (x, B) => {
900
+ w("month"), I(B);
901
+ },
902
+ disabledDate: s
903
+ }
904
+ ) : /* @__PURE__ */ X("div", { className: h, style: a, children: [
905
+ /* @__PURE__ */ n(
906
+ Bt,
907
+ {
908
+ ...U,
909
+ DATEPICKER_LOCALE: L,
910
+ icons: D,
911
+ prefixCls: E("picker"),
912
+ value: t,
913
+ mode: T,
914
+ onChangePanel: Z,
915
+ rtl: j
916
+ }
917
+ ),
918
+ H()
919
+ ] });
920
+ }
921
+ const kn = 6 * 7, tn = (r) => ({
922
+ year: r.year(),
923
+ month: r.month() + 1,
924
+ day: r.day(),
925
+ name: r.date(),
926
+ time: r
927
+ }), ho = (r) => ({
928
+ ...tn(oe.startOf(r, "month")),
929
+ days: r.daysInMonth()
930
+ });
931
+ function go(r, t) {
932
+ const { dayStartOfWeek: a, isWeek: d } = r, c = ho(t), u = Rt(kn).map(() => ({})), s = c.day - a < 0 ? 7 + (c.day - a) : c.day - a;
933
+ u[s] = {
934
+ ...c
935
+ };
936
+ for (let l = 0; l < s; l++)
937
+ u[s - l - 1] = {
938
+ ...tn(oe.subtract(c.time, l + 1, "day")),
939
+ isPrev: !0
940
+ };
941
+ for (let l = 0; l < kn - s - 1; l++)
942
+ u[s + l + 1] = {
943
+ ...tn(oe.add(c.time, l + 1, "day")),
944
+ isNext: l >= c.days - 1
945
+ };
946
+ const m = Rt(6).map(() => []);
947
+ for (let l = 0; l < 6; l++)
948
+ if (m[l] = u.slice(l * 7, 7 * (l + 1)), d) {
949
+ const b = m[l][0].time, C = [...m[l]];
950
+ m[l].unshift({
951
+ weekRows: C,
952
+ weekOfYear: b.week()
953
+ });
954
+ }
955
+ return m;
956
+ }
957
+ function Ot(r) {
958
+ const {
959
+ isWeek: t,
960
+ popupVisible: a,
961
+ format: d,
962
+ pageShowDate: c,
963
+ showTime: u,
964
+ style: s,
965
+ timepickerProps: m,
966
+ onMouseEnterCell: l,
967
+ onMouseLeaveCell: b,
968
+ dateRender: C,
969
+ disabledDate: $,
970
+ disabledTime: p,
971
+ value: M,
972
+ rangeValues: S,
973
+ locale: P,
974
+ isRangePicker: I,
975
+ onSelect: D,
976
+ onTimePickerSelect: T,
977
+ onPrev: w,
978
+ onNext: v,
979
+ onSuperPrev: k,
980
+ onSuperNext: E,
981
+ isSameTime: j,
982
+ index: L,
983
+ getHeaderOperations: O,
984
+ setPageShowDate: q,
985
+ timeValue: h,
986
+ hideNotInViewDates: A,
987
+ icons: K,
988
+ isTimePanel: re,
989
+ panelMode: H,
990
+ setPanelMode: U,
991
+ ...Z
992
+ } = r, { locale: x, getPrefixCls: B, rtl: Q } = ye(et), { utcOffset: _, timezone: W, weekStart: ve } = ye(tt), R = At(x.DatePicker, P), N = B(t ? "panel-week" : "panel-date"), He = $e(N), ke = I ? { rangeValues: S } : { value: M }, Ce = Nt(u) && u.format || ao(d), z = x.dayjsLocale, fe = Vn(() => go(
993
+ { ...r, dayStartOfWeek: ve },
994
+ c.locale(z)
995
+ ), [c.toString(), ve, z]);
996
+ let J;
997
+ I ? J = typeof p == "function" ? p(
998
+ S[L],
999
+ L === 0 ? "start" : "end"
1000
+ ) : {} : J = typeof p == "function" ? p(ne(M, d)) : {};
1001
+ function F() {
1002
+ return /* @__PURE__ */ n(
1003
+ Ht,
1004
+ {
1005
+ ...Z,
1006
+ ...ke,
1007
+ showWeekList: !0,
1008
+ isWeek: t,
1009
+ prefixCls: B("picker"),
1010
+ rows: fe,
1011
+ isSameTime: j || ((te, le) => te.isSame(le, "day")),
1012
+ onSelectDate: D,
1013
+ onMouseEnterCell: l,
1014
+ onMouseLeaveCell: b,
1015
+ dateRender: C,
1016
+ disabledDate: $,
1017
+ CALENDAR_LOCALE: R.Calendar,
1018
+ mode: t ? "week" : "date",
1019
+ format: d,
1020
+ hideNotInViewDates: A
1021
+ }
1022
+ );
1023
+ }
1024
+ function Y() {
1025
+ const te = Nt(u) ? u : {};
1026
+ return /* @__PURE__ */ X("div", { className: `${N}-timepicker`, children: [
1027
+ /* @__PURE__ */ n("header", { className: `${N}-timepicker-title`, children: R.selectTime }),
1028
+ /* @__PURE__ */ n(
1029
+ eo,
1030
+ {
1031
+ ...Ln(m, ["disableConfirm"]),
1032
+ ...te,
1033
+ ...J,
1034
+ hideFooter: !0,
1035
+ format: Ce,
1036
+ valueShow: h.format(Ce),
1037
+ onSelect: T,
1038
+ popupVisible: a,
1039
+ utcOffset: _,
1040
+ timezone: W
1041
+ }
1042
+ )
1043
+ ] });
1044
+ }
1045
+ const y = {
1046
+ onPrev: w,
1047
+ onSuperPrev: k,
1048
+ onNext: v,
1049
+ onSuperNext: E,
1050
+ DATEPICKER_LOCALE: R
1051
+ };
1052
+ function De(te) {
1053
+ U(te);
1054
+ }
1055
+ return H === "year" ? /* @__PURE__ */ n(
1056
+ lt,
1057
+ {
1058
+ ...O(H),
1059
+ pageShowDate: c,
1060
+ onSelect: (te, le) => {
1061
+ U("month"), q(le);
1062
+ },
1063
+ disabledDate: $
1064
+ }
1065
+ ) : H === "month" ? /* @__PURE__ */ n(
1066
+ It,
1067
+ {
1068
+ ...O(H),
1069
+ setPageShowDate: q,
1070
+ pageShowDate: c,
1071
+ panelMode: H,
1072
+ getHeaderOperations: O,
1073
+ onSelect: (te, le) => {
1074
+ U("date"), q(le);
1075
+ },
1076
+ disabledDate: $,
1077
+ setPanelMode: U
1078
+ }
1079
+ ) : /* @__PURE__ */ n("div", { className: He, style: s, children: u && re ? Y() : /* @__PURE__ */ X("div", { className: `${N}-inner`, children: [
1080
+ /* @__PURE__ */ n(
1081
+ Bt,
1082
+ {
1083
+ ...y,
1084
+ icons: K,
1085
+ prefixCls: B("picker"),
1086
+ value: c,
1087
+ mode: H,
1088
+ onChangePanel: De,
1089
+ rtl: Q
1090
+ }
1091
+ ),
1092
+ F()
1093
+ ] }) });
1094
+ }
1095
+ function nn(r) {
1096
+ const {
1097
+ pageShowDate: t,
1098
+ style: a,
1099
+ onMouseEnterCell: d,
1100
+ onMouseLeaveCell: c,
1101
+ dateRender: u,
1102
+ disabledDate: s,
1103
+ value: m,
1104
+ locale: l,
1105
+ isRangePicker: b,
1106
+ onSelect: C,
1107
+ rangeValues: $,
1108
+ onSuperPrev: p,
1109
+ onSuperNext: M,
1110
+ format: S,
1111
+ getHeaderOperations: P,
1112
+ setPageShowDate: I,
1113
+ icons: D,
1114
+ panelMode: T,
1115
+ setPanelMode: w,
1116
+ ...v
1117
+ } = r, { locale: k, getPrefixCls: E, rtl: j } = ye(et), O = At(k.DatePicker, l).Calendar, q = E("panel-quarter"), h = $e(q), A = b ? { rangeValues: $ } : { value: m }, K = t.year(), re = [
1118
+ [1, 2, 3, 4].map((x) => ({
1119
+ name: `Q${x}`,
1120
+ time: bt(`${K}-${$n((x - 1) * 3 + 1, 2, "0")}-01`)
1121
+ }))
1122
+ ];
1123
+ function H() {
1124
+ return /* @__PURE__ */ n(
1125
+ Ht,
1126
+ {
1127
+ ...v,
1128
+ ...A,
1129
+ prefixCls: E("picker"),
1130
+ rows: re,
1131
+ onSelectDate: C,
1132
+ isSameTime: (x, B) => x.isSame(B, "month"),
1133
+ onMouseEnterCell: d,
1134
+ onMouseLeaveCell: c,
1135
+ dateRender: u,
1136
+ disabledDate: s,
1137
+ CALENDAR_LOCALE: O,
1138
+ mode: "quarter",
1139
+ format: S
1140
+ }
1141
+ );
1142
+ }
1143
+ const U = { onSuperPrev: p, onSuperNext: M };
1144
+ function Z(x) {
1145
+ w(x);
1146
+ }
1147
+ return T === "year" ? /* @__PURE__ */ n(
1148
+ lt,
1149
+ {
1150
+ ...P(T),
1151
+ pageShowDate: t,
1152
+ onSelect: (x, B) => {
1153
+ w("quarter"), I(B);
1154
+ },
1155
+ disabledDate: s
1156
+ }
1157
+ ) : /* @__PURE__ */ X("div", { className: h, style: a, children: [
1158
+ /* @__PURE__ */ n(
1159
+ Bt,
1160
+ {
1161
+ ...U,
1162
+ icons: D,
1163
+ prefixCls: E("picker"),
1164
+ value: t,
1165
+ mode: T,
1166
+ onChangePanel: Z,
1167
+ rtl: j
1168
+ }
1169
+ ),
1170
+ /* @__PURE__ */ n("div", { className: `${q}-wrapper`, children: H() })
1171
+ ] });
1172
+ }
1173
+ function on(r) {
1174
+ const {
1175
+ value: t,
1176
+ isRangePicker: a,
1177
+ rangeValues: d,
1178
+ onPrev: c,
1179
+ onNext: u,
1180
+ onSuperPrev: s,
1181
+ onSuperNext: m,
1182
+ localeName: l,
1183
+ ...b
1184
+ } = r, { weekStart: C } = ye(tt), $ = a ? { rangeValues: d } : { value: t }, p = { onPrev: c, onNext: u, onSuperPrev: s, onSuperNext: m };
1185
+ function M(S, P) {
1186
+ return oe.isSameWeek(S, P, C, l);
1187
+ }
1188
+ return /* @__PURE__ */ n(
1189
+ Ot,
1190
+ {
1191
+ ...b,
1192
+ ...$,
1193
+ ...p,
1194
+ isWeek: !0,
1195
+ isSameTime: M,
1196
+ isRangePicker: a
1197
+ }
1198
+ );
1199
+ }
1200
+ function Gt(r, t) {
1201
+ const a = [];
1202
+ for (let d = r; d < t; d++)
1203
+ a.push(d);
1204
+ return a;
1205
+ }
1206
+ function vo(r) {
1207
+ const {
1208
+ mode: t = "date",
1209
+ showTime: a,
1210
+ disabledDate: d,
1211
+ disabledTime: c,
1212
+ format: u,
1213
+ dateRender: s,
1214
+ value: m,
1215
+ timeValues: l,
1216
+ icons: b,
1217
+ locale: C,
1218
+ pageShowDates: $,
1219
+ onMouseEnterCell: p,
1220
+ onMouseLeaveCell: M,
1221
+ onTimePickerSelect: S,
1222
+ onSelectPanel: P,
1223
+ onPrev: I,
1224
+ onSuperPrev: D,
1225
+ onNext: T,
1226
+ onSuperNext: w,
1227
+ localeName: v,
1228
+ popupVisible: k,
1229
+ timepickerProps: E,
1230
+ getHeaderOperations: j,
1231
+ setRangePageShowDates: L,
1232
+ disabledTimePickerIndex: O,
1233
+ hideNotInViewDates: q,
1234
+ isTimePanel: h,
1235
+ valueShowHover: A,
1236
+ panelModes: K,
1237
+ setPanelModes: re
1238
+ } = r, { getPrefixCls: H } = ye(et), U = H("picker-range"), { utcOffset: Z, timezone: x } = ye(tt), B = $[0] || ce(Z, x), Q = $[1] || ce(Z, x), W = {
1239
+ isRangePicker: !0,
1240
+ rangeValues: ne(m, u),
1241
+ onMouseEnterCell: p,
1242
+ onMouseLeaveCell: M,
1243
+ locale: C,
1244
+ disabledDate: d,
1245
+ onSelect: P,
1246
+ dateRender: s,
1247
+ getHeaderOperations: j,
1248
+ icons: b,
1249
+ valueShowHover: A
1250
+ }, ve = {
1251
+ pageShowDate: B,
1252
+ panelMode: K[0],
1253
+ setPanelMode: (z) => re([z, K[1]]),
1254
+ format: Ie(u, 0)
1255
+ }, R = {
1256
+ pageShowDate: Q,
1257
+ panelMode: K[1],
1258
+ setPanelMode: (z) => re([K[0], z]),
1259
+ format: Ie(u, 1)
1260
+ };
1261
+ function N() {
1262
+ const z = {
1263
+ onPrev: I,
1264
+ onSuperPrev: D
1265
+ }, fe = {
1266
+ onNext: T,
1267
+ onSuperNext: w
1268
+ }, J = {
1269
+ ...W,
1270
+ localeName: v,
1271
+ popupVisible: k,
1272
+ timepickerProps: E,
1273
+ getHeaderOperations: j,
1274
+ hideNotInViewDates: q,
1275
+ isTimePanel: h
1276
+ };
1277
+ if (t === "week")
1278
+ return /* @__PURE__ */ X(ge, { children: [
1279
+ /* @__PURE__ */ n(
1280
+ on,
1281
+ {
1282
+ setPageShowDate: (y) => L([y, y], 0),
1283
+ ...z,
1284
+ ...J,
1285
+ ...ve
1286
+ }
1287
+ ),
1288
+ /* @__PURE__ */ n(
1289
+ on,
1290
+ {
1291
+ setPageShowDate: (y) => L([oe.subtract(y, 1, "month"), y], 1),
1292
+ ...fe,
1293
+ ...J,
1294
+ ...R
1295
+ }
1296
+ )
1297
+ ] });
1298
+ const F = {
1299
+ disabledTime: c,
1300
+ showTime: a
1301
+ }, Y = {};
1302
+ if (typeof O == "number" && (Y.disabledTime = () => ({
1303
+ disabledHours: () => Gt(0, 24),
1304
+ disabledMinutes: () => Gt(0, 60),
1305
+ disabledSeconds: () => Gt(0, 60)
1306
+ }), Nt(a))) {
1307
+ const y = { ...a, defaultValue: void 0 };
1308
+ Y.showTime = {
1309
+ ...y,
1310
+ hideDisabledOptions: !1
1311
+ };
1312
+ }
1313
+ return /* @__PURE__ */ X(ge, { children: [
1314
+ /* @__PURE__ */ n(
1315
+ Ot,
1316
+ {
1317
+ ...z,
1318
+ ...J,
1319
+ ...F,
1320
+ ...O === 0 ? Y : {},
1321
+ onTimePickerSelect: (y, De) => {
1322
+ S(0, y, De);
1323
+ },
1324
+ index: 0,
1325
+ setPageShowDate: (y) => L([y, y], 0),
1326
+ timeValue: l[0],
1327
+ ...ve
1328
+ }
1329
+ ),
1330
+ /* @__PURE__ */ n(
1331
+ Ot,
1332
+ {
1333
+ ...fe,
1334
+ ...J,
1335
+ ...F,
1336
+ ...O === 1 ? Y : {},
1337
+ onTimePickerSelect: (y, De) => {
1338
+ S(1, y, De);
1339
+ },
1340
+ index: 1,
1341
+ setPageShowDate: (y) => L([oe.subtract(y, 1, "month"), y], 1),
1342
+ timeValue: l[1],
1343
+ ...R
1344
+ }
1345
+ )
1346
+ ] });
1347
+ }
1348
+ function He() {
1349
+ const z = {
1350
+ onSuperPrev: D
1351
+ }, fe = {
1352
+ onSuperNext: w
1353
+ }, J = W;
1354
+ return /* @__PURE__ */ X(ge, { children: [
1355
+ /* @__PURE__ */ n(
1356
+ It,
1357
+ {
1358
+ setPageShowDate: (F) => L([F, F], 0),
1359
+ ...z,
1360
+ ...J,
1361
+ ...ve
1362
+ }
1363
+ ),
1364
+ /* @__PURE__ */ n(
1365
+ It,
1366
+ {
1367
+ setPageShowDate: (F) => L([oe.subtract(F, 1, "year"), F], 1),
1368
+ ...fe,
1369
+ ...J,
1370
+ ...R
1371
+ }
1372
+ )
1373
+ ] });
1374
+ }
1375
+ function ke() {
1376
+ const z = {
1377
+ onSuperPrev: D
1378
+ }, fe = {
1379
+ onSuperNext: w
1380
+ }, J = W;
1381
+ return /* @__PURE__ */ X(ge, { children: [
1382
+ /* @__PURE__ */ n(
1383
+ lt,
1384
+ {
1385
+ ...z,
1386
+ ...J,
1387
+ pageShowDate: B
1388
+ }
1389
+ ),
1390
+ /* @__PURE__ */ n(
1391
+ lt,
1392
+ {
1393
+ ...fe,
1394
+ ...J,
1395
+ pageShowDate: Q
1396
+ }
1397
+ )
1398
+ ] });
1399
+ }
1400
+ function Ce() {
1401
+ const z = {
1402
+ onSuperPrev: D
1403
+ }, fe = {
1404
+ onSuperNext: w
1405
+ }, J = W;
1406
+ return /* @__PURE__ */ X(ge, { children: [
1407
+ /* @__PURE__ */ n(
1408
+ nn,
1409
+ {
1410
+ setPageShowDate: (F) => L([F, F], 0),
1411
+ ...z,
1412
+ ...J,
1413
+ ...ve
1414
+ }
1415
+ ),
1416
+ /* @__PURE__ */ n(
1417
+ nn,
1418
+ {
1419
+ setPageShowDate: (F) => L([oe.subtract(F, 1, "year"), F], 1),
1420
+ ...fe,
1421
+ ...J,
1422
+ ...R
1423
+ }
1424
+ )
1425
+ ] });
1426
+ }
1427
+ return /* @__PURE__ */ n("div", { className: U, children: /* @__PURE__ */ X("div", { className: `${U}-wrapper`, children: [
1428
+ (t === "date" || t === "week") && N(),
1429
+ t === "month" && He(),
1430
+ t === "year" && ke(),
1431
+ t === "quarter" && Ce()
1432
+ ] }) });
1433
+ }
1434
+ function Po(r) {
1435
+ const { format: t, showTime: a, mode: d } = r;
1436
+ let c;
1437
+ switch (d) {
1438
+ case "date":
1439
+ c = a ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
1440
+ break;
1441
+ case "month":
1442
+ c = "YYYY-MM";
1443
+ break;
1444
+ case "year":
1445
+ c = "YYYY";
1446
+ break;
1447
+ case "week":
1448
+ c = "YYYY-wo";
1449
+ break;
1450
+ case "quarter":
1451
+ c = "YYYY-[Q]Q";
1452
+ break;
1453
+ default:
1454
+ c = "YYYY-MM-DD";
1455
+ }
1456
+ return t && (c = t), c;
1457
+ }
1458
+ const Cn = {
1459
+ allowClear: !0,
1460
+ unmountOnExit: !0,
1461
+ position: "bl",
1462
+ editable: !0,
1463
+ mode: "date"
1464
+ }, So = { bottom: 4 }, Mn = (r) => {
1465
+ var hn, gn;
1466
+ const {
1467
+ getPrefixCls: t,
1468
+ locale: a,
1469
+ size: d,
1470
+ componentConfig: c,
1471
+ rtl: u
1472
+ } = ye(et);
1473
+ u && (Cn.position = "br");
1474
+ const s = Tn(
1475
+ r,
1476
+ Cn,
1477
+ c == null ? void 0 : c.DatePicker
1478
+ ), {
1479
+ allowClear: m,
1480
+ className: l,
1481
+ style: b,
1482
+ placeholder: C,
1483
+ getPopupContainer: $,
1484
+ disabled: p,
1485
+ position: M,
1486
+ error: S,
1487
+ status: P,
1488
+ unmountOnExit: I,
1489
+ editable: D,
1490
+ triggerProps: T,
1491
+ shortcuts: w,
1492
+ onSelect: v,
1493
+ onVisibleChange: k,
1494
+ value: E,
1495
+ onChange: j,
1496
+ icons: L,
1497
+ disabledDate: O,
1498
+ disabledTime: q,
1499
+ mode: h,
1500
+ showTime: A,
1501
+ onSelectShortcut: K,
1502
+ extra: re,
1503
+ shortcutsPlacementLeft: H,
1504
+ onOk: U,
1505
+ defaultPickerValue: Z,
1506
+ pickerValue: x,
1507
+ panelRender: B,
1508
+ onPickerValueChange: Q,
1509
+ triggerElement: _,
1510
+ clearRangeOnReselect: W,
1511
+ separator: ve,
1512
+ utcOffset: R,
1513
+ timezone: N,
1514
+ inputProps: He
1515
+ } = s, ke = t("picker-range"), Ce = xn(s.dayStartOfWeek) ? Rn(a.dayjsLocale) : s.dayStartOfWeek, z = Oe(null), fe = Oe(null), J = Oe(null), F = Oe(null), Y = Oe(null), y = Po(s);
1516
+ function De() {
1517
+ if (ee(p)) {
1518
+ if (p[0] && !p[1])
1519
+ return 1;
1520
+ if (p[1] && !p[0])
1521
+ return 0;
1522
+ }
1523
+ }
1524
+ const te = De(), le = typeof te == "number", _t = le ? 1 ^ te : void 0, [ue, nt] = se(
1525
+ le ? te : 0
1526
+ );
1527
+ Ct(() => {
1528
+ le && nt(te);
1529
+ }, [p]);
1530
+ const Qe = 1 ^ ue, [Ee, de] = se(), [Be, Ke] = se(), [ut, _e] = se(Ft()), [Pe, Se] = se(), [Wt, Re] = se(), [Vt, Ne] = se(), [ft, Te] = se(s.popupVisible), [We, ot] = se([h, h]), [dt, rt] = se(!1), Le = "popupVisible" in s ? s.popupVisible : ft, Ye = ne(
1531
+ E,
1532
+ y,
1533
+ R,
1534
+ N
1535
+ ), we = "value" in s ? Ye : ut, G = Vt || Pe || we || [], pe = Mt(Pe || we), be = Oe(!0), xe = ce(), Tt = Zt(xe, R, N);
1536
+ function zt() {
1537
+ const e = [], o = Nt(A) && A.defaultValue ? ne(A.defaultValue, A.format || "HH:mm:ss") : [];
1538
+ return e[0] = G[0] || o[0] || Tt, e[1] = G[1] || o[1] || Tt, e;
1539
+ }
1540
+ const Je = zt(), mt = le ? (e) => te === 0 ? e.isAfter(G[1], h) : e.isBefore(G[0], h) : void 0, ze = _ !== void 0, pt = ze || W;
1541
+ function Ft() {
1542
+ let e;
1543
+ if (s.value ? e = ne(s.value, y, R, N) : e = ne(s.defaultValue, y, R, N), le && (!e || e && !e[Qe])) {
1544
+ const o = [];
1545
+ return o[Qe] = ce(R, N), o;
1546
+ }
1547
+ return e;
1548
+ }
1549
+ const ht = we || ne(Z, y) || [xe, xe], [Lt, he] = se(
1550
+ Fe(ht)
1551
+ ), Ge = Fe(
1552
+ ne(x, y, R, N)
1553
+ ) || Lt, at = $t(R), gt = $t(N);
1554
+ Xt(() => {
1555
+ if (ee(ut) && (at !== R || N !== gt)) {
1556
+ const o = ut.map(
1557
+ (f) => qe(f, at, gt)
1558
+ ).map(
1559
+ (f) => Zt(f, R, N)
1560
+ );
1561
+ _e(o);
1562
+ }
1563
+ }, [R, at, N, gt]), Xt(() => {
1564
+ he(Fe(ht));
1565
+ }, [h]), Ct(() => {
1566
+ ot([h, h]);
1567
+ }, [h]), Ct(() => {
1568
+ if (Ke(void 0), de(void 0), Le) {
1569
+ const e = Fe(ht);
1570
+ rt(!1), ot([h, h]), he(e), vt(e), Se(we), H && (J.current.style.maxHeight = `${fe.current.clientHeight}px`);
1571
+ } else
1572
+ Se(void 0), Re(void 0), Ne(void 0), Ut();
1573
+ be.current = Le;
1574
+ }, [Le]);
1575
+ const jt = (hn = Ye == null ? void 0 : Ye[0]) == null ? void 0 : hn.format(Ie(y, 0)), qt = (gn = Ye == null ? void 0 : Ye[1]) == null ? void 0 : gn.format(Ie(y, 1));
1576
+ Ct(() => {
1577
+ Se(void 0), Re(void 0);
1578
+ }, [jt, qt]);
1579
+ function Xe(e, o = ue) {
1580
+ const f = Fe(e, o);
1581
+ he(f), vt(f);
1582
+ }
1583
+ function vt(e) {
1584
+ Pt([e[0], Lt[0]], h) || Q == null || Q(
1585
+ ee(e) ? e.map((o, f) => o && o.format(Ie(y, f))) : void 0,
1586
+ e
1587
+ );
1588
+ }
1589
+ function Fe(e, o = ue) {
1590
+ const f = o === 0 || Pt(e, h);
1591
+ if (ee(e) && e.length < 2)
1592
+ return st(
1593
+ e[0] || ce(R, N),
1594
+ h,
1595
+ "prev"
1596
+ );
1597
+ if (ee(e) && e.length === 2)
1598
+ return e[o] ? st(
1599
+ e[o],
1600
+ h,
1601
+ f ? "prev" : "next"
1602
+ ) : st(
1603
+ e[o === 0 ? 1 : 0] || ce(R, N),
1604
+ h,
1605
+ f && !e[o === 0 ? 1 : 0] ? "prev" : "next"
1606
+ );
1607
+ }
1608
+ function Pt(e, o) {
1609
+ if (e && e.length === 2 && un(e))
1610
+ return (o === "date" || o === "week") && e[0].isSame(e[1], "month") || (o === "month" || o === "quarter") && e[0].isSame(e[1], "year") || o === "year" && Math.floor(e[0].year() / 10) === Math.floor(e[1].year() / 10);
1611
+ }
1612
+ function st(e = ce(R, N), o = h, f = "prev") {
1613
+ const V = f === "prev";
1614
+ switch (o) {
1615
+ case "date":
1616
+ case "week":
1617
+ return V ? [e, oe.add(e, 1, "month")] : [oe.subtract(e, 1, "month"), e];
1618
+ case "month":
1619
+ case "quarter":
1620
+ return V ? [e, oe.add(e, 1, "year")] : [oe.subtract(e, 1, "year"), e];
1621
+ case "year":
1622
+ return V ? [e, oe.add(e, 10, "year")] : [oe.subtract(e, 10, "year"), e];
1623
+ default:
1624
+ return [];
1625
+ }
1626
+ }
1627
+ function St(e) {
1628
+ var o, f;
1629
+ (f = (o = z.current) == null ? void 0 : o.focus) == null || f.call(o, le ? te : e);
1630
+ }
1631
+ function Ut() {
1632
+ var e, o;
1633
+ (o = (e = z.current) == null ? void 0 : e.blur) == null || o.call(e);
1634
+ }
1635
+ function i(e) {
1636
+ e ? (setTimeout(() => St()), g(e)) : g(!1);
1637
+ }
1638
+ function g(e) {
1639
+ k == null || k(e), Te(e);
1640
+ }
1641
+ function me(e) {
1642
+ var f;
1643
+ e.stopPropagation();
1644
+ let o = [...G];
1645
+ le ? o[te] = void 0 : o = void 0, _e(o), Se(o), yt(o), (f = s.onClear) == null || f.call(s);
1646
+ }
1647
+ function ae(e, o) {
1648
+ if (nt(e), G && G.length && !o) {
1649
+ const f = Fe(G, e);
1650
+ he(f), vt(f);
1651
+ }
1652
+ }
1653
+ function Ve(e) {
1654
+ const o = typeof mt == "function" ? mt(e) : !1;
1655
+ return (typeof O == "function" ? O(e) : !1) || o;
1656
+ }
1657
+ function wt(e) {
1658
+ return io(e, y, ue) && !Ve(ne(e, y));
1659
+ }
1660
+ function Qt(e) {
1661
+ const o = [...G || []], f = e.target.value;
1662
+ de(f), Le || g(!0), wt(f) && (o[ue] = ne(f, y), Se(o), Xe(o), de(void 0));
1663
+ }
1664
+ function Me() {
1665
+ Ee && de(void 0);
1666
+ }
1667
+ function yt(e) {
1668
+ if (so(we, e)) {
1669
+ const o = ee(e) ? e.map(
1670
+ (f) => Ae(
1671
+ qe(f, R, N),
1672
+ a.dayjsLocale
1673
+ )
1674
+ ) : void 0;
1675
+ j == null || j(
1676
+ ee(o) ? o.map((f, V) => f && f.format(Ie(y, V))) : void 0,
1677
+ o
1678
+ );
1679
+ }
1680
+ }
1681
+ function In() {
1682
+ ee(Pe) && Pe.length ? Ee && !wt(Ee) ? de(void 0) : pe !== 2 ? Yt() : pe === 2 && it(Pe) : Le && g(!1);
1683
+ }
1684
+ function it(e, o) {
1685
+ const f = e || G;
1686
+ if (!f || !f[0] || !f[1])
1687
+ return;
1688
+ const V = Dt(f);
1689
+ _e(V), yt(V), _ !== null && !o && g(!1);
1690
+ }
1691
+ function On() {
1692
+ it();
1693
+ const e = G.map(
1694
+ (o) => Ae(o, a.dayjsLocale)
1695
+ );
1696
+ U == null || U(
1697
+ e.map(
1698
+ (o, f) => o && o.format(Ie(y, f))
1699
+ ),
1700
+ e
1701
+ );
1702
+ }
1703
+ function sn() {
1704
+ switch (h) {
1705
+ case "date":
1706
+ case "week":
1707
+ return "date";
1708
+ case "month":
1709
+ return "month";
1710
+ case "year":
1711
+ return "year";
1712
+ default:
1713
+ return;
1714
+ }
1715
+ }
1716
+ function cn(e) {
1717
+ if (pe !== 2)
1718
+ return !1;
1719
+ const o = Pe || we;
1720
+ return !!(ue === 0 && e.isAfter(o[1], sn()) || ue === 1 && e.isBefore(o[0], sn()));
1721
+ }
1722
+ function An(e, o) {
1723
+ const f = cn(o) && be.current, V = pt && pe === 2 && !le ? [] : [...G], ie = ze ? pe === 0 || pe === 2 ? 0 : 1 : ue, kt = A ? Ze(o, Je[ie]) : o;
1724
+ f ? (V[ie] = kt, V[1 ^ ie] = void 0) : V[ie] = kt;
1725
+ const Kt = Dt(V);
1726
+ ln(Kt), de(void 0), Ke(void 0);
1727
+ const Jt = Mt(V);
1728
+ pt ? pe === 0 || pe === 2 && !le ? ze ? nt(1) : Yt(!0) : A || it(V) : Jt <= 1 ? Yt(!0) : pe === 2 && be.current && !le ? (be.current = !1, Yt(!0), !A && !f && it(V, !0)) : (be.current = !1, !A && !f && it(V));
1729
+ }
1730
+ function Hn(e, o, f) {
1731
+ const V = ee(G) ? [...G] : [], ie = Ze(
1732
+ V[e] || ce(R, N),
1733
+ f
1734
+ );
1735
+ V[e] = ie, ln(V);
1736
+ }
1737
+ function ln(e) {
1738
+ Se(e), Re(void 0);
1739
+ const f = Dt(e).map(
1740
+ (V) => Ae(qe(V, R, N), a.dayjsLocale)
1741
+ );
1742
+ v == null || v(
1743
+ f.map((V, ie) => V && V.format(Ie(y, ie))),
1744
+ f,
1745
+ { type: ue === 1 ? "end" : "start" }
1746
+ );
1747
+ }
1748
+ function Yt(e) {
1749
+ ae(Qe, e), setTimeout(() => St(Qe));
1750
+ }
1751
+ function Bn(e, o) {
1752
+ const f = [...G || []];
1753
+ if (!o && (pt ? pe === 1 : pe !== 0) && !cn(e) && (f[ue] = Ze(
1754
+ e,
1755
+ Je[ue]
1756
+ ), Re(f), de(void 0)), !o) {
1757
+ const ie = A ? Ze(e, Je[ue]) : e;
1758
+ Ke(
1759
+ ie.locale(a.dayjsLocale).format(Ie(y, ue))
1760
+ );
1761
+ }
1762
+ }
1763
+ function _n() {
1764
+ Re(void 0), Ke(void 0);
1765
+ }
1766
+ function un(e) {
1767
+ return e && ee(e) && e.length === 2 && Ue(e[0]) && Ue(e[1]);
1768
+ }
1769
+ function fn(e) {
1770
+ const o = typeof e.value == "function" && e.value();
1771
+ return un(o);
1772
+ }
1773
+ function dn() {
1774
+ clearTimeout(F.current), clearTimeout(Y.current), F.current = null, Y.current = null;
1775
+ }
1776
+ function Wn(e) {
1777
+ dn(), F.current = setTimeout(() => {
1778
+ if (fn(e)) {
1779
+ const o = ne(
1780
+ e.value(),
1781
+ y,
1782
+ R,
1783
+ N
1784
+ );
1785
+ Ne(o), Xe(o);
1786
+ }
1787
+ }, 50);
1788
+ }
1789
+ function zn() {
1790
+ dn(), Y.current = setTimeout(() => {
1791
+ Ne(void 0), Xe(
1792
+ Pe || we || [
1793
+ ce(R, N),
1794
+ ce(R, N)
1795
+ ]
1796
+ );
1797
+ }, 50);
1798
+ }
1799
+ function Fn(e) {
1800
+ if (K == null || K(e), fn(e)) {
1801
+ const o = ne(
1802
+ e.value(),
1803
+ y,
1804
+ R,
1805
+ N
1806
+ );
1807
+ it(o);
1808
+ }
1809
+ }
1810
+ function je(e, o, f = 1) {
1811
+ const V = e === "prev" ? 0 : 1;
1812
+ let ie = [...Ge];
1813
+ e === "prev" && (ie[V] = oe.subtract(
1814
+ Ge[V],
1815
+ f,
1816
+ o
1817
+ )), e === "next" && (ie[V] = oe.add(
1818
+ Ge[V],
1819
+ f,
1820
+ o
1821
+ )), ie = st(
1822
+ ie[V],
1823
+ h,
1824
+ e
1825
+ ), Xe(ie);
1826
+ }
1827
+ function mn(e = h) {
1828
+ if (e === "date" || e === "week")
1829
+ return {
1830
+ onPrev: () => je("prev", "month"),
1831
+ onNext: () => je("next", "month"),
1832
+ onSuperPrev: () => je("prev", "year"),
1833
+ onSuperNext: () => je("next", "year")
1834
+ };
1835
+ if (e === "month" || e === "quarter")
1836
+ return {
1837
+ onSuperPrev: () => je("prev", "year"),
1838
+ onSuperNext: () => je("next", "year")
1839
+ };
1840
+ if (e === "year")
1841
+ return {
1842
+ onSuperPrev: () => je("prev", "year", 10),
1843
+ onSuperNext: () => je("next", "year", 10)
1844
+ };
1845
+ }
1846
+ function jn() {
1847
+ rt(!dt);
1848
+ }
1849
+ function pn(e) {
1850
+ const o = $e(
1851
+ `${ke}-container`,
1852
+ {
1853
+ [`${ke}-panel-only`]: e,
1854
+ [`${ke}-container-shortcuts-placement-left`]: ee(w) && H,
1855
+ [`${ke}-container-rtl`]: u
1856
+ },
1857
+ e ? l : ""
1858
+ ), f = {
1859
+ prefixCls: t("picker"),
1860
+ showTime: A,
1861
+ shortcuts: w,
1862
+ onMouseEnterShortcut: Wn,
1863
+ onMouseLeaveShortcut: zn,
1864
+ onSelectShortcut: Fn
1865
+ }, V = A && We[0] === "date" && We[1] === "date" || re || ee(w) && w.length && !H, ie = /* @__PURE__ */ X(ge, { children: [
1866
+ /* @__PURE__ */ n(
1867
+ vo,
1868
+ {
1869
+ ...s,
1870
+ ...mn(),
1871
+ getHeaderOperations: mn,
1872
+ setRangePageShowDates: Xe,
1873
+ pageShowDates: Ge,
1874
+ value: G,
1875
+ format: y,
1876
+ onSelectPanel: An,
1877
+ onMouseEnterCell: Bn,
1878
+ onMouseLeaveCell: _n,
1879
+ disabledDate: (Jt) => Ve(Jt),
1880
+ disabledTime: q,
1881
+ mode: h,
1882
+ localeName: a.dayjsLocale,
1883
+ showTime: A,
1884
+ timeValues: Vt || Je,
1885
+ onTimePickerSelect: Hn,
1886
+ popupVisible: Le,
1887
+ disabledTimePickerIndex: _t,
1888
+ isTimePanel: dt,
1889
+ valueShowHover: Wt,
1890
+ panelModes: We,
1891
+ setPanelModes: ot
1892
+ }
1893
+ ),
1894
+ !!V && /* @__PURE__ */ n(
1895
+ En,
1896
+ {
1897
+ ...f,
1898
+ DATEPICKER_LOCALE: a.DatePicker,
1899
+ disabled: !(ee(G) && G[0] && G[1]),
1900
+ onClickConfirmBtn: On,
1901
+ extra: re,
1902
+ shortcutsPlacementLeft: H,
1903
+ onClickSelectTimeBtn: jn,
1904
+ isTimePanel: dt
1905
+ }
1906
+ )
1907
+ ] }), kt = H ? /* @__PURE__ */ X(ge, { children: [
1908
+ /* @__PURE__ */ n(an, { ref: J, ...f }),
1909
+ /* @__PURE__ */ n("div", { ref: fe, className: `${ke}-panel-wrapper`, children: ie })
1910
+ ] }) : ie, Kt = typeof B == "function" ? B(kt) : kt;
1911
+ return /* @__PURE__ */ n(
1912
+ "div",
1913
+ {
1914
+ className: o,
1915
+ onClick: () => St(),
1916
+ style: e ? b : {},
1917
+ children: Kt
1918
+ }
1919
+ );
1920
+ }
1921
+ const qn = s.size || d, Un = ee(C) ? C : a.DatePicker.placeholders[h], Qn = L && L.inputSuffix === null ? null : L && L.inputSuffix || (A ? /* @__PURE__ */ n(bn, {}) : /* @__PURE__ */ n(Nn, {})), Kn = {
1922
+ style: b,
1923
+ className: l,
1924
+ popupVisible: Le,
1925
+ format: y,
1926
+ disabled: p,
1927
+ error: S,
1928
+ status: P,
1929
+ size: qn,
1930
+ onPressEnter: In,
1931
+ onClear: me,
1932
+ suffixIcon: Qn,
1933
+ editable: D,
1934
+ allowClear: m,
1935
+ prefix: s.prefix
1936
+ }, Jn = ee(p) ? p[0] && p[1] : p;
1937
+ return /* @__PURE__ */ n(tt.Provider, { value: { utcOffset: R, timezone: N, weekStart: Ce }, children: _ === null ? pn(!0) : /* @__PURE__ */ n(
1938
+ Dn,
1939
+ {
1940
+ popup: pn,
1941
+ trigger: "click",
1942
+ clickToClose: !1,
1943
+ position: M,
1944
+ disabled: Jn,
1945
+ popupAlign: So,
1946
+ getPopupContainer: $,
1947
+ onVisibleChange: i,
1948
+ popupVisible: Le,
1949
+ classNames: "slideDynamicOrigin",
1950
+ unmountOnExit: I,
1951
+ ...T,
1952
+ children: _ || /* @__PURE__ */ n(
1953
+ Zn,
1954
+ {
1955
+ ...Yn(s),
1956
+ ...Kn,
1957
+ inputProps: He,
1958
+ ref: z,
1959
+ placeholder: Un,
1960
+ value: Pe || we,
1961
+ onChange: Qt,
1962
+ inputValue: Be || Ee,
1963
+ changeFocusedInputIndex: ae,
1964
+ focusedInputIndex: ue,
1965
+ isPlaceholder: !!Be,
1966
+ separator: ve,
1967
+ onBlur: Me
1968
+ }
1969
+ )
1970
+ }
1971
+ ) });
1972
+ };
1973
+ Mn.displayName = "RangePicker";
1974
+ const wo = rn.memo(Mn);
1975
+ function xt(r, t) {
1976
+ function a(d) {
1977
+ return /* @__PURE__ */ n(fo, { ...d, picker: r, mode: t.mode });
1978
+ }
1979
+ return a.displayName = t.displayName, a;
1980
+ }
1981
+ const yo = xt(/* @__PURE__ */ n(Ot, {}), {
1982
+ displayName: "DatePicker",
1983
+ mode: "date"
1984
+ }), ko = xt(/* @__PURE__ */ n(It, {}), {
1985
+ displayName: "MonthPicker",
1986
+ mode: "month"
1987
+ }), Co = xt(/* @__PURE__ */ n(lt, {}), {
1988
+ displayName: "YearPicker",
1989
+ mode: "year"
1990
+ }), Do = xt(/* @__PURE__ */ n(on, {}), {
1991
+ displayName: "WeekPicker",
1992
+ mode: "week"
1993
+ }), No = xt(/* @__PURE__ */ n(nn, {}), {
1994
+ displayName: "QuarterPicker",
1995
+ mode: "quarter"
1996
+ }), bo = wo;
1997
+ Object.assign(yo, {
1998
+ MonthPicker: ko,
1999
+ YearPicker: Co,
2000
+ WeekPicker: Do,
2001
+ QuarterPicker: No,
2002
+ RangePicker: bo
2003
+ });
2004
+ export {
2005
+ yo as default
2006
+ };