@v-c/picker 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/LICENSE +21 -0
  2. package/dist/PickerInput/Popup/Footer.cjs +115 -0
  3. package/dist/PickerInput/Popup/Footer.d.ts +19 -0
  4. package/dist/PickerInput/Popup/Footer.js +109 -0
  5. package/dist/PickerInput/Popup/PopupPanel.cjs +413 -0
  6. package/dist/PickerInput/Popup/PopupPanel.d.ts +11 -0
  7. package/dist/PickerInput/Popup/PopupPanel.js +407 -0
  8. package/dist/PickerInput/Popup/PresetPanel.cjs +54 -0
  9. package/dist/PickerInput/Popup/PresetPanel.d.ts +16 -0
  10. package/dist/PickerInput/Popup/PresetPanel.js +48 -0
  11. package/dist/PickerInput/Popup/index.cjs +528 -0
  12. package/dist/PickerInput/Popup/index.d.ts +37 -0
  13. package/dist/PickerInput/Popup/index.js +522 -0
  14. package/dist/PickerInput/RangePicker.cjs +1910 -0
  15. package/dist/PickerInput/RangePicker.d.ts +57 -0
  16. package/dist/PickerInput/RangePicker.js +1901 -0
  17. package/dist/PickerInput/Selector/Icon.cjs +89 -0
  18. package/dist/PickerInput/Selector/Icon.d.ts +11 -0
  19. package/dist/PickerInput/Selector/Icon.js +83 -0
  20. package/dist/PickerInput/Selector/Input.cjs +376 -0
  21. package/dist/PickerInput/Selector/Input.d.ts +9 -0
  22. package/dist/PickerInput/Selector/Input.js +370 -0
  23. package/dist/PickerInput/Selector/MaskFormat.cjs +72 -0
  24. package/dist/PickerInput/Selector/MaskFormat.d.ts +22 -0
  25. package/dist/PickerInput/Selector/MaskFormat.js +68 -0
  26. package/dist/PickerInput/Selector/RangeSelector.cjs +1390 -0
  27. package/dist/PickerInput/Selector/RangeSelector.d.ts +28 -0
  28. package/dist/PickerInput/Selector/RangeSelector.js +1383 -0
  29. package/dist/PickerInput/Selector/SingleSelector/MultipleDates.cjs +110 -0
  30. package/dist/PickerInput/Selector/SingleSelector/MultipleDates.d.ts +13 -0
  31. package/dist/PickerInput/Selector/SingleSelector/MultipleDates.js +103 -0
  32. package/dist/PickerInput/Selector/SingleSelector/index.cjs +1358 -0
  33. package/dist/PickerInput/Selector/SingleSelector/index.d.ts +21 -0
  34. package/dist/PickerInput/Selector/SingleSelector/index.js +1352 -0
  35. package/dist/PickerInput/Selector/hooks/useClearIcon.cjs +17 -0
  36. package/dist/PickerInput/Selector/hooks/useClearIcon.d.ts +17 -0
  37. package/dist/PickerInput/Selector/hooks/useClearIcon.js +11 -0
  38. package/dist/PickerInput/Selector/hooks/useInputHooks.cjs +125 -0
  39. package/dist/PickerInput/Selector/hooks/useInputHooks.d.ts +56 -0
  40. package/dist/PickerInput/Selector/hooks/useInputHooks.js +120 -0
  41. package/dist/PickerInput/Selector/hooks/useRootProps.cjs +14 -0
  42. package/dist/PickerInput/Selector/hooks/useRootProps.d.ts +2 -0
  43. package/dist/PickerInput/Selector/hooks/useRootProps.js +9 -0
  44. package/dist/PickerInput/Selector/util.cjs +32 -0
  45. package/dist/PickerInput/Selector/util.d.ts +5 -0
  46. package/dist/PickerInput/Selector/util.js +30 -0
  47. package/dist/PickerInput/SinglePicker.cjs +1881 -0
  48. package/dist/PickerInput/SinglePicker.d.ts +46 -0
  49. package/dist/PickerInput/SinglePicker.js +1873 -0
  50. package/dist/PickerInput/context.cjs +12 -0
  51. package/dist/PickerInput/context.d.ts +16 -0
  52. package/dist/PickerInput/context.js +9 -0
  53. package/dist/PickerInput/hooks/useCellRender.cjs +25 -0
  54. package/dist/PickerInput/hooks/useCellRender.d.ts +3 -0
  55. package/dist/PickerInput/hooks/useCellRender.js +20 -0
  56. package/dist/PickerInput/hooks/useDelayState.cjs +34 -0
  57. package/dist/PickerInput/hooks/useDelayState.d.ts +2 -0
  58. package/dist/PickerInput/hooks/useDelayState.js +29 -0
  59. package/dist/PickerInput/hooks/useDisabledBoundary.cjs +15 -0
  60. package/dist/PickerInput/hooks/useDisabledBoundary.d.ts +8 -0
  61. package/dist/PickerInput/hooks/useDisabledBoundary.js +11 -0
  62. package/dist/PickerInput/hooks/useFieldFormat.cjs +17 -0
  63. package/dist/PickerInput/hooks/useFieldFormat.d.ts +3 -0
  64. package/dist/PickerInput/hooks/useFieldFormat.js +15 -0
  65. package/dist/PickerInput/hooks/useFieldsInvalidate.cjs +24 -0
  66. package/dist/PickerInput/hooks/useFieldsInvalidate.d.ts +6 -0
  67. package/dist/PickerInput/hooks/useFieldsInvalidate.js +19 -0
  68. package/dist/PickerInput/hooks/useFilledProps.cjs +103 -0
  69. package/dist/PickerInput/hooks/useFilledProps.d.ts +33 -0
  70. package/dist/PickerInput/hooks/useFilledProps.js +98 -0
  71. package/dist/PickerInput/hooks/useInputReadOnly.cjs +13 -0
  72. package/dist/PickerInput/hooks/useInputReadOnly.d.ts +3 -0
  73. package/dist/PickerInput/hooks/useInputReadOnly.js +8 -0
  74. package/dist/PickerInput/hooks/useInvalidate.cjs +34 -0
  75. package/dist/PickerInput/hooks/useInvalidate.d.ts +10 -0
  76. package/dist/PickerInput/hooks/useInvalidate.js +30 -0
  77. package/dist/PickerInput/hooks/useLockEffect.cjs +16 -0
  78. package/dist/PickerInput/hooks/useLockEffect.d.ts +6 -0
  79. package/dist/PickerInput/hooks/useLockEffect.js +11 -0
  80. package/dist/PickerInput/hooks/useOpen.cjs +15 -0
  81. package/dist/PickerInput/hooks/useOpen.d.ts +7 -0
  82. package/dist/PickerInput/hooks/useOpen.js +10 -0
  83. package/dist/PickerInput/hooks/usePresets.cjs +21 -0
  84. package/dist/PickerInput/hooks/usePresets.d.ts +3 -0
  85. package/dist/PickerInput/hooks/usePresets.js +16 -0
  86. package/dist/PickerInput/hooks/useRangeActive.cjs +57 -0
  87. package/dist/PickerInput/hooks/useRangeActive.d.ts +9 -0
  88. package/dist/PickerInput/hooks/useRangeActive.js +52 -0
  89. package/dist/PickerInput/hooks/useRangeDisabledDate.cjs +21 -0
  90. package/dist/PickerInput/hooks/useRangeDisabledDate.d.ts +9 -0
  91. package/dist/PickerInput/hooks/useRangeDisabledDate.js +17 -0
  92. package/dist/PickerInput/hooks/useRangePickerValue.cjs +100 -0
  93. package/dist/PickerInput/hooks/useRangePickerValue.d.ts +5 -0
  94. package/dist/PickerInput/hooks/useRangePickerValue.js +94 -0
  95. package/dist/PickerInput/hooks/useRangeValue.cjs +134 -0
  96. package/dist/PickerInput/hooks/useRangeValue.d.ts +21 -0
  97. package/dist/PickerInput/hooks/useRangeValue.js +128 -0
  98. package/dist/PickerInput/hooks/useShowNow.cjs +15 -0
  99. package/dist/PickerInput/hooks/useShowNow.d.ts +3 -0
  100. package/dist/PickerInput/hooks/useShowNow.js +10 -0
  101. package/dist/PickerPanel/DatePanel/index.cjs +294 -0
  102. package/dist/PickerPanel/DatePanel/index.d.ts +9 -0
  103. package/dist/PickerPanel/DatePanel/index.js +288 -0
  104. package/dist/PickerPanel/DateTimePanel/index.cjs +180 -0
  105. package/dist/PickerPanel/DateTimePanel/index.d.ts +3 -0
  106. package/dist/PickerPanel/DateTimePanel/index.js +174 -0
  107. package/dist/PickerPanel/DecadePanel/index.cjs +230 -0
  108. package/dist/PickerPanel/DecadePanel/index.d.ts +3 -0
  109. package/dist/PickerPanel/DecadePanel/index.js +224 -0
  110. package/dist/PickerPanel/MonthPanel/index.cjs +219 -0
  111. package/dist/PickerPanel/MonthPanel/index.d.ts +3 -0
  112. package/dist/PickerPanel/MonthPanel/index.js +213 -0
  113. package/dist/PickerPanel/PanelBody.cjs +157 -0
  114. package/dist/PickerPanel/PanelBody.d.ts +17 -0
  115. package/dist/PickerPanel/PanelBody.js +151 -0
  116. package/dist/PickerPanel/PanelHeader.cjs +132 -0
  117. package/dist/PickerPanel/PanelHeader.d.ts +9 -0
  118. package/dist/PickerPanel/PanelHeader.js +126 -0
  119. package/dist/PickerPanel/QuarterPanel/index.cjs +211 -0
  120. package/dist/PickerPanel/QuarterPanel/index.d.ts +3 -0
  121. package/dist/PickerPanel/QuarterPanel/index.js +205 -0
  122. package/dist/PickerPanel/TimePanel/TimePanelBody/TimeColumn.cjs +145 -0
  123. package/dist/PickerPanel/TimePanel/TimePanelBody/TimeColumn.d.ts +17 -0
  124. package/dist/PickerPanel/TimePanel/TimePanelBody/TimeColumn.js +139 -0
  125. package/dist/PickerPanel/TimePanel/TimePanelBody/index.cjs +286 -0
  126. package/dist/PickerPanel/TimePanel/TimePanelBody/index.d.ts +3 -0
  127. package/dist/PickerPanel/TimePanel/TimePanelBody/index.js +280 -0
  128. package/dist/PickerPanel/TimePanel/TimePanelBody/useScrollTo.cjs +65 -0
  129. package/dist/PickerPanel/TimePanel/TimePanelBody/useScrollTo.d.ts +1 -0
  130. package/dist/PickerPanel/TimePanel/TimePanelBody/useScrollTo.js +60 -0
  131. package/dist/PickerPanel/TimePanel/index.cjs +173 -0
  132. package/dist/PickerPanel/TimePanel/index.d.ts +3 -0
  133. package/dist/PickerPanel/TimePanel/index.js +167 -0
  134. package/dist/PickerPanel/WeekPanel/index.cjs +179 -0
  135. package/dist/PickerPanel/WeekPanel/index.d.ts +3 -0
  136. package/dist/PickerPanel/WeekPanel/index.js +173 -0
  137. package/dist/PickerPanel/YearPanel/index.cjs +239 -0
  138. package/dist/PickerPanel/YearPanel/index.d.ts +3 -0
  139. package/dist/PickerPanel/YearPanel/index.js +233 -0
  140. package/dist/PickerPanel/context.cjs +61 -0
  141. package/dist/PickerPanel/context.d.ts +26 -0
  142. package/dist/PickerPanel/context.js +53 -0
  143. package/dist/PickerPanel/index.cjs +473 -0
  144. package/dist/PickerPanel/index.d.ts +65 -0
  145. package/dist/PickerPanel/index.js +467 -0
  146. package/dist/PickerTrigger/index.cjs +137 -0
  147. package/dist/PickerTrigger/index.d.ts +18 -0
  148. package/dist/PickerTrigger/index.js +130 -0
  149. package/dist/PickerTrigger/util.cjs +13 -0
  150. package/dist/PickerTrigger/util.d.ts +2 -0
  151. package/dist/PickerTrigger/util.js +12 -0
  152. package/dist/_virtual/rolldown_runtime.cjs +21 -0
  153. package/dist/generate/dateFns.cjs +80 -0
  154. package/dist/generate/dateFns.d.ts +3 -0
  155. package/dist/generate/dateFns.js +73 -0
  156. package/dist/generate/dayjs.cjs +117 -0
  157. package/dist/generate/dayjs.d.ts +4 -0
  158. package/dist/generate/dayjs.js +104 -0
  159. package/dist/generate/index.cjs +1 -0
  160. package/dist/generate/index.d.ts +37 -0
  161. package/dist/generate/index.js +0 -0
  162. package/dist/generate/luxon.cjs +75 -0
  163. package/dist/generate/luxon.d.ts +4 -0
  164. package/dist/generate/luxon.js +69 -0
  165. package/dist/generate/moment.cjs +107 -0
  166. package/dist/generate/moment.d.ts +4 -0
  167. package/dist/generate/moment.js +100 -0
  168. package/dist/hooks/useLocale.cjs +45 -0
  169. package/dist/hooks/useLocale.d.ts +9 -0
  170. package/dist/hooks/useLocale.js +39 -0
  171. package/dist/hooks/useSemantic.cjs +18 -0
  172. package/dist/hooks/useSemantic.d.ts +14 -0
  173. package/dist/hooks/useSemantic.js +13 -0
  174. package/dist/hooks/useSyncState.cjs +29 -0
  175. package/dist/hooks/useSyncState.d.ts +7 -0
  176. package/dist/hooks/useSyncState.js +24 -0
  177. package/dist/hooks/useTimeConfig.cjs +161 -0
  178. package/dist/hooks/useTimeConfig.d.ts +18 -0
  179. package/dist/hooks/useTimeConfig.js +159 -0
  180. package/dist/hooks/useTimeInfo.cjs +113 -0
  181. package/dist/hooks/useTimeInfo.d.ts +12 -0
  182. package/dist/hooks/useTimeInfo.js +108 -0
  183. package/dist/hooks/useToggleDates.cjs +16 -0
  184. package/dist/hooks/useToggleDates.d.ts +9 -0
  185. package/dist/hooks/useToggleDates.js +12 -0
  186. package/dist/index.cjs +12 -0
  187. package/dist/index.d.ts +7 -0
  188. package/dist/index.js +5 -0
  189. package/dist/interface.cjs +1 -0
  190. package/dist/interface.d.ts +379 -0
  191. package/dist/interface.js +0 -0
  192. package/dist/locale/am_ET.cjs +34 -0
  193. package/dist/locale/am_ET.d.ts +3 -0
  194. package/dist/locale/am_ET.js +29 -0
  195. package/dist/locale/ar_EG.cjs +32 -0
  196. package/dist/locale/ar_EG.d.ts +3 -0
  197. package/dist/locale/ar_EG.js +27 -0
  198. package/dist/locale/az_AZ.cjs +33 -0
  199. package/dist/locale/az_AZ.d.ts +3 -0
  200. package/dist/locale/az_AZ.js +28 -0
  201. package/dist/locale/bg_BG.cjs +32 -0
  202. package/dist/locale/bg_BG.d.ts +3 -0
  203. package/dist/locale/bg_BG.js +27 -0
  204. package/dist/locale/bn_BD.cjs +33 -0
  205. package/dist/locale/bn_BD.d.ts +3 -0
  206. package/dist/locale/bn_BD.js +28 -0
  207. package/dist/locale/by_BY.cjs +33 -0
  208. package/dist/locale/by_BY.d.ts +3 -0
  209. package/dist/locale/by_BY.js +28 -0
  210. package/dist/locale/ca_ES.cjs +32 -0
  211. package/dist/locale/ca_ES.d.ts +3 -0
  212. package/dist/locale/ca_ES.js +27 -0
  213. package/dist/locale/common.cjs +8 -0
  214. package/dist/locale/common.d.ts +2 -0
  215. package/dist/locale/common.js +7 -0
  216. package/dist/locale/cs_CZ.cjs +32 -0
  217. package/dist/locale/cs_CZ.d.ts +3 -0
  218. package/dist/locale/cs_CZ.js +27 -0
  219. package/dist/locale/da_DK.cjs +32 -0
  220. package/dist/locale/da_DK.d.ts +3 -0
  221. package/dist/locale/da_DK.js +27 -0
  222. package/dist/locale/de_DE.cjs +32 -0
  223. package/dist/locale/de_DE.d.ts +3 -0
  224. package/dist/locale/de_DE.js +27 -0
  225. package/dist/locale/el_GR.cjs +32 -0
  226. package/dist/locale/el_GR.d.ts +3 -0
  227. package/dist/locale/el_GR.js +27 -0
  228. package/dist/locale/en_GB.cjs +32 -0
  229. package/dist/locale/en_GB.d.ts +3 -0
  230. package/dist/locale/en_GB.js +27 -0
  231. package/dist/locale/en_US.cjs +33 -0
  232. package/dist/locale/en_US.d.ts +3 -0
  233. package/dist/locale/en_US.js +28 -0
  234. package/dist/locale/es_ES.cjs +32 -0
  235. package/dist/locale/es_ES.d.ts +3 -0
  236. package/dist/locale/es_ES.js +27 -0
  237. package/dist/locale/es_MX.cjs +33 -0
  238. package/dist/locale/es_MX.d.ts +3 -0
  239. package/dist/locale/es_MX.js +28 -0
  240. package/dist/locale/et_EE.cjs +32 -0
  241. package/dist/locale/et_EE.d.ts +3 -0
  242. package/dist/locale/et_EE.js +27 -0
  243. package/dist/locale/eu_ES.cjs +34 -0
  244. package/dist/locale/eu_ES.d.ts +3 -0
  245. package/dist/locale/eu_ES.js +29 -0
  246. package/dist/locale/fa_IR.cjs +32 -0
  247. package/dist/locale/fa_IR.d.ts +3 -0
  248. package/dist/locale/fa_IR.js +27 -0
  249. package/dist/locale/fi_FI.cjs +32 -0
  250. package/dist/locale/fi_FI.d.ts +3 -0
  251. package/dist/locale/fi_FI.js +27 -0
  252. package/dist/locale/fr_BE.cjs +32 -0
  253. package/dist/locale/fr_BE.d.ts +3 -0
  254. package/dist/locale/fr_BE.js +27 -0
  255. package/dist/locale/fr_CA.cjs +33 -0
  256. package/dist/locale/fr_CA.d.ts +3 -0
  257. package/dist/locale/fr_CA.js +28 -0
  258. package/dist/locale/fr_FR.cjs +33 -0
  259. package/dist/locale/fr_FR.d.ts +3 -0
  260. package/dist/locale/fr_FR.js +28 -0
  261. package/dist/locale/ga_IE.cjs +33 -0
  262. package/dist/locale/ga_IE.d.ts +3 -0
  263. package/dist/locale/ga_IE.js +28 -0
  264. package/dist/locale/gl_ES.cjs +32 -0
  265. package/dist/locale/gl_ES.d.ts +3 -0
  266. package/dist/locale/gl_ES.js +27 -0
  267. package/dist/locale/he_IL.cjs +33 -0
  268. package/dist/locale/he_IL.d.ts +3 -0
  269. package/dist/locale/he_IL.js +28 -0
  270. package/dist/locale/hi_IN.cjs +33 -0
  271. package/dist/locale/hi_IN.d.ts +3 -0
  272. package/dist/locale/hi_IN.js +28 -0
  273. package/dist/locale/hr_HR.cjs +33 -0
  274. package/dist/locale/hr_HR.d.ts +3 -0
  275. package/dist/locale/hr_HR.js +28 -0
  276. package/dist/locale/hu_HU.cjs +33 -0
  277. package/dist/locale/hu_HU.d.ts +3 -0
  278. package/dist/locale/hu_HU.js +28 -0
  279. package/dist/locale/id_ID.cjs +33 -0
  280. package/dist/locale/id_ID.d.ts +3 -0
  281. package/dist/locale/id_ID.js +28 -0
  282. package/dist/locale/is_IS.cjs +32 -0
  283. package/dist/locale/is_IS.d.ts +3 -0
  284. package/dist/locale/is_IS.js +27 -0
  285. package/dist/locale/it_IT.cjs +55 -0
  286. package/dist/locale/it_IT.d.ts +3 -0
  287. package/dist/locale/it_IT.js +50 -0
  288. package/dist/locale/ja_JP.cjs +35 -0
  289. package/dist/locale/ja_JP.d.ts +3 -0
  290. package/dist/locale/ja_JP.js +30 -0
  291. package/dist/locale/ka_GE.cjs +33 -0
  292. package/dist/locale/ka_GE.d.ts +3 -0
  293. package/dist/locale/ka_GE.js +28 -0
  294. package/dist/locale/kk_KZ.cjs +32 -0
  295. package/dist/locale/kk_KZ.d.ts +3 -0
  296. package/dist/locale/kk_KZ.js +27 -0
  297. package/dist/locale/km_KH.cjs +34 -0
  298. package/dist/locale/km_KH.d.ts +3 -0
  299. package/dist/locale/km_KH.js +29 -0
  300. package/dist/locale/kmr_IQ.cjs +32 -0
  301. package/dist/locale/kmr_IQ.d.ts +3 -0
  302. package/dist/locale/kmr_IQ.js +27 -0
  303. package/dist/locale/kn_IN.cjs +33 -0
  304. package/dist/locale/kn_IN.d.ts +3 -0
  305. package/dist/locale/kn_IN.js +28 -0
  306. package/dist/locale/ko_KR.cjs +34 -0
  307. package/dist/locale/ko_KR.d.ts +3 -0
  308. package/dist/locale/ko_KR.js +29 -0
  309. package/dist/locale/lt_LT.cjs +34 -0
  310. package/dist/locale/lt_LT.d.ts +3 -0
  311. package/dist/locale/lt_LT.js +29 -0
  312. package/dist/locale/lv_LV.cjs +32 -0
  313. package/dist/locale/lv_LV.d.ts +3 -0
  314. package/dist/locale/lv_LV.js +27 -0
  315. package/dist/locale/mk_MK.cjs +32 -0
  316. package/dist/locale/mk_MK.d.ts +3 -0
  317. package/dist/locale/mk_MK.js +27 -0
  318. package/dist/locale/ml_IN.cjs +33 -0
  319. package/dist/locale/ml_IN.d.ts +3 -0
  320. package/dist/locale/ml_IN.js +28 -0
  321. package/dist/locale/mn_MN.cjs +34 -0
  322. package/dist/locale/mn_MN.d.ts +3 -0
  323. package/dist/locale/mn_MN.js +29 -0
  324. package/dist/locale/mr_IN.cjs +59 -0
  325. package/dist/locale/mr_IN.d.ts +3 -0
  326. package/dist/locale/mr_IN.js +54 -0
  327. package/dist/locale/ms_MY.cjs +34 -0
  328. package/dist/locale/ms_MY.d.ts +3 -0
  329. package/dist/locale/ms_MY.js +29 -0
  330. package/dist/locale/my_MM.cjs +33 -0
  331. package/dist/locale/my_MM.d.ts +3 -0
  332. package/dist/locale/my_MM.js +28 -0
  333. package/dist/locale/nb_NO.cjs +34 -0
  334. package/dist/locale/nb_NO.d.ts +3 -0
  335. package/dist/locale/nb_NO.js +29 -0
  336. package/dist/locale/ne_NP.cjs +33 -0
  337. package/dist/locale/ne_NP.d.ts +3 -0
  338. package/dist/locale/ne_NP.js +28 -0
  339. package/dist/locale/nl_BE.cjs +32 -0
  340. package/dist/locale/nl_BE.d.ts +3 -0
  341. package/dist/locale/nl_BE.js +27 -0
  342. package/dist/locale/nl_NL.cjs +32 -0
  343. package/dist/locale/nl_NL.d.ts +3 -0
  344. package/dist/locale/nl_NL.js +27 -0
  345. package/dist/locale/pl_PL.cjs +32 -0
  346. package/dist/locale/pl_PL.d.ts +3 -0
  347. package/dist/locale/pl_PL.js +27 -0
  348. package/dist/locale/pt_BR.cjs +56 -0
  349. package/dist/locale/pt_BR.d.ts +3 -0
  350. package/dist/locale/pt_BR.js +51 -0
  351. package/dist/locale/pt_PT.cjs +55 -0
  352. package/dist/locale/pt_PT.d.ts +3 -0
  353. package/dist/locale/pt_PT.js +50 -0
  354. package/dist/locale/ro_RO.cjs +33 -0
  355. package/dist/locale/ro_RO.d.ts +3 -0
  356. package/dist/locale/ro_RO.js +28 -0
  357. package/dist/locale/ru_RU.cjs +32 -0
  358. package/dist/locale/ru_RU.d.ts +3 -0
  359. package/dist/locale/ru_RU.js +27 -0
  360. package/dist/locale/si_LK.cjs +34 -0
  361. package/dist/locale/si_LK.d.ts +3 -0
  362. package/dist/locale/si_LK.js +29 -0
  363. package/dist/locale/sk_SK.cjs +32 -0
  364. package/dist/locale/sk_SK.d.ts +3 -0
  365. package/dist/locale/sk_SK.js +27 -0
  366. package/dist/locale/sl_SI.cjs +32 -0
  367. package/dist/locale/sl_SI.d.ts +3 -0
  368. package/dist/locale/sl_SI.js +27 -0
  369. package/dist/locale/sr_Cyrl_RS.cjs +32 -0
  370. package/dist/locale/sr_Cyrl_RS.d.ts +3 -0
  371. package/dist/locale/sr_Cyrl_RS.js +27 -0
  372. package/dist/locale/sr_RS.cjs +32 -0
  373. package/dist/locale/sr_RS.d.ts +3 -0
  374. package/dist/locale/sr_RS.js +27 -0
  375. package/dist/locale/sv_SE.cjs +32 -0
  376. package/dist/locale/sv_SE.d.ts +3 -0
  377. package/dist/locale/sv_SE.js +27 -0
  378. package/dist/locale/ta_IN.cjs +33 -0
  379. package/dist/locale/ta_IN.d.ts +3 -0
  380. package/dist/locale/ta_IN.js +28 -0
  381. package/dist/locale/te_IN.cjs +33 -0
  382. package/dist/locale/te_IN.d.ts +3 -0
  383. package/dist/locale/te_IN.js +28 -0
  384. package/dist/locale/th_TH.cjs +32 -0
  385. package/dist/locale/th_TH.d.ts +3 -0
  386. package/dist/locale/th_TH.js +27 -0
  387. package/dist/locale/tk_TK.cjs +32 -0
  388. package/dist/locale/tk_TK.d.ts +3 -0
  389. package/dist/locale/tk_TK.js +27 -0
  390. package/dist/locale/tr_TR.cjs +55 -0
  391. package/dist/locale/tr_TR.d.ts +3 -0
  392. package/dist/locale/tr_TR.js +50 -0
  393. package/dist/locale/ug_CN.cjs +35 -0
  394. package/dist/locale/ug_CN.d.ts +3 -0
  395. package/dist/locale/ug_CN.js +30 -0
  396. package/dist/locale/uk_UA.cjs +32 -0
  397. package/dist/locale/uk_UA.d.ts +3 -0
  398. package/dist/locale/uk_UA.js +27 -0
  399. package/dist/locale/ur_PK.cjs +33 -0
  400. package/dist/locale/ur_PK.d.ts +3 -0
  401. package/dist/locale/ur_PK.js +28 -0
  402. package/dist/locale/uz_UZ.cjs +33 -0
  403. package/dist/locale/uz_UZ.d.ts +3 -0
  404. package/dist/locale/uz_UZ.js +28 -0
  405. package/dist/locale/vi_VN.cjs +33 -0
  406. package/dist/locale/vi_VN.d.ts +3 -0
  407. package/dist/locale/vi_VN.js +28 -0
  408. package/dist/locale/zh_CN.cjs +36 -0
  409. package/dist/locale/zh_CN.d.ts +3 -0
  410. package/dist/locale/zh_CN.js +31 -0
  411. package/dist/locale/zh_TW.cjs +36 -0
  412. package/dist/locale/zh_TW.d.ts +3 -0
  413. package/dist/locale/zh_TW.js +31 -0
  414. package/dist/utils/dateUtil.cjs +105 -0
  415. package/dist/utils/dateUtil.d.ts +29 -0
  416. package/dist/utils/dateUtil.js +89 -0
  417. package/dist/utils/getClearIcon.cjs +7 -0
  418. package/dist/utils/getClearIcon.d.ts +6 -0
  419. package/dist/utils/getClearIcon.js +5 -0
  420. package/dist/utils/miscUtil.cjs +46 -0
  421. package/dist/utils/miscUtil.d.ts +14 -0
  422. package/dist/utils/miscUtil.js +40 -0
  423. package/dist/utils/uiUtil.cjs +6 -0
  424. package/dist/utils/uiUtil.d.ts +1 -0
  425. package/dist/utils/uiUtil.js +5 -0
  426. package/dist/utils/warnUtil.cjs +8 -0
  427. package/dist/utils/warnUtil.d.ts +5 -0
  428. package/dist/utils/warnUtil.js +6 -0
  429. package/package.json +82 -0
@@ -0,0 +1,26 @@
1
+ import { Ref } from 'vue';
2
+ import { FilledPanelClassNames, FilledPanelStyles } from '../hooks/useSemantic';
3
+ import { PanelMode, SharedPanelProps } from '../interface';
4
+ export interface SharedPanelContextProps {
5
+ classNames: FilledPanelClassNames;
6
+ styles: FilledPanelStyles;
7
+ }
8
+ export declare function provideSharedPanelContext(context: Ref<SharedPanelContextProps>): void;
9
+ export declare function useSharedPanelContext(): Ref<SharedPanelContextProps> | null;
10
+ export interface PanelContextProps<DateType extends object = any> extends Pick<SharedPanelProps<DateType>, 'prefixCls' | 'cellRender' | 'generateConfig' | 'locale' | 'onSelect' | 'hoverValue' | 'hoverRangeValue' | 'onHover' | 'values' | 'pickerValue' | 'disabledDate' | 'minDate' | 'maxDate' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'> {
11
+ panelType: PanelMode;
12
+ now: DateType;
13
+ classNames: FilledPanelClassNames;
14
+ styles: FilledPanelStyles;
15
+ }
16
+ export declare function providePanelContext<DateType extends object = any>(context: Ref<PanelContextProps<DateType>>): void;
17
+ export declare function usePanelContext<DateType extends object = any>(): Ref<PanelContextProps<DateType>> | null;
18
+ export declare function useInfo<DateType extends object = any>(props: SharedPanelProps<DateType>, panelType: PanelMode, sharedContext?: Ref<SharedPanelContextProps> | null): [sharedProps: PanelContextProps<DateType>, now: DateType];
19
+ export interface PickerHackContextProps {
20
+ hidePrev?: boolean;
21
+ hideNext?: boolean;
22
+ hideHeader?: boolean;
23
+ onCellDblClick?: () => void;
24
+ }
25
+ export declare function providePickerHackContext(context: Ref<PickerHackContextProps>): void;
26
+ export declare function usePickerHackContext(): Ref<PickerHackContextProps> | null;
@@ -0,0 +1,53 @@
1
+ import { inject, provide } from "vue";
2
+ var SharedPanelContextKey = Symbol("SharedPanelContext");
3
+ function provideSharedPanelContext(context) {
4
+ provide(SharedPanelContextKey, context);
5
+ }
6
+ function useSharedPanelContext() {
7
+ return inject(SharedPanelContextKey, null);
8
+ }
9
+ var PanelContextKey = Symbol("PanelContext");
10
+ function providePanelContext(context) {
11
+ provide(PanelContextKey, context);
12
+ }
13
+ function usePanelContext() {
14
+ return inject(PanelContextKey, null);
15
+ }
16
+ function useInfo(props, panelType, sharedContext) {
17
+ const ctx = sharedContext ?? useSharedPanelContext();
18
+ const classNames = ctx?.value.classNames;
19
+ const styles = ctx?.value.styles;
20
+ const { prefixCls, generateConfig, locale, disabledDate, minDate, maxDate, cellRender, hoverValue, hoverRangeValue, onHover, values, pickerValue, onSelect, prevIcon, nextIcon, superPrevIcon, superNextIcon } = props;
21
+ const now = generateConfig.getNow();
22
+ return [{
23
+ now,
24
+ values,
25
+ pickerValue,
26
+ prefixCls,
27
+ classNames,
28
+ styles,
29
+ disabledDate,
30
+ minDate,
31
+ maxDate,
32
+ cellRender,
33
+ hoverValue,
34
+ hoverRangeValue,
35
+ onHover,
36
+ locale,
37
+ generateConfig,
38
+ onSelect,
39
+ panelType,
40
+ prevIcon,
41
+ nextIcon,
42
+ superPrevIcon,
43
+ superNextIcon
44
+ }, now];
45
+ }
46
+ var PickerHackContextKey = Symbol("PickerHackContext");
47
+ function providePickerHackContext(context) {
48
+ provide(PickerHackContextKey, context);
49
+ }
50
+ function usePickerHackContext() {
51
+ return inject(PickerHackContextKey, null);
52
+ }
53
+ export { providePanelContext, providePickerHackContext, provideSharedPanelContext, useInfo, usePanelContext, usePickerHackContext, useSharedPanelContext };
@@ -0,0 +1,473 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ const require_rolldown_runtime = require("../_virtual/rolldown_runtime.cjs");
6
+ const require_context = require("../PickerInput/context.cjs");
7
+ const require_miscUtil = require("../utils/miscUtil.cjs");
8
+ const require_useCellRender = require("../PickerInput/hooks/useCellRender.cjs");
9
+ const require_en_US = require("../locale/en_US.cjs");
10
+ const require_useLocale = require("../hooks/useLocale.cjs");
11
+ const require_useTimeConfig = require("../hooks/useTimeConfig.cjs");
12
+ const require_dateUtil = require("../utils/dateUtil.cjs");
13
+ const require_useToggleDates = require("../hooks/useToggleDates.cjs");
14
+ const require_context$1 = require("./context.cjs");
15
+ const require_index = require("./DatePanel/index.cjs");
16
+ const require_index$1 = require("./TimePanel/index.cjs");
17
+ const require_index$2 = require("./DateTimePanel/index.cjs");
18
+ const require_index$3 = require("./DecadePanel/index.cjs");
19
+ const require_index$4 = require("./MonthPanel/index.cjs");
20
+ const require_index$5 = require("./QuarterPanel/index.cjs");
21
+ const require_index$6 = require("./WeekPanel/index.cjs");
22
+ const require_index$7 = require("./YearPanel/index.cjs");
23
+ let vue = require("vue");
24
+ let _v_c_util = require("@v-c/util");
25
+ var DefaultComponents = {
26
+ date: require_index.default,
27
+ datetime: require_index$2.default,
28
+ week: require_index$6.default,
29
+ month: require_index$4.default,
30
+ quarter: require_index$5.default,
31
+ year: require_index$7.default,
32
+ decade: require_index$3.default,
33
+ time: require_index$1.default
34
+ };
35
+ var PickerPanel = /* @__PURE__ */ (0, vue.defineComponent)((props, { attrs }) => {
36
+ const pickerContext = require_context.usePickerContext();
37
+ const rootRef = (0, vue.ref)();
38
+ const mergedPrefixCls = (0, vue.computed)(() => pickerContext.value.prefixCls || props.prefixCls || "vc-picker");
39
+ const mergedGenerateConfig = (0, vue.computed)(() => props.generateConfig || pickerContext.value.generateConfig);
40
+ const mergedLocale = (0, vue.computed)(() => props.locale || pickerContext.value.locale || require_en_US.default);
41
+ const timePropsInfo = (0, vue.computed)(() => require_useTimeConfig.getTimeProps({
42
+ ...props,
43
+ locale: mergedLocale.value,
44
+ format: void 0,
45
+ picker: props.picker
46
+ }));
47
+ const localeTimeProps = (0, vue.computed)(() => timePropsInfo.value[1]);
48
+ const showTimeFormat = (0, vue.computed)(() => timePropsInfo.value[2]);
49
+ const propFormat = (0, vue.computed)(() => timePropsInfo.value[3]);
50
+ const timeProps = (0, vue.computed)(() => timePropsInfo.value[0]);
51
+ const filledLocale = require_useLocale.default(mergedLocale, localeTimeProps);
52
+ const internalPicker = (0, vue.computed)(() => {
53
+ if (props.picker === "date" && props.showTime) return "datetime";
54
+ return props.picker || "date";
55
+ });
56
+ const mergedShowTime = (0, vue.computed)(() => require_useTimeConfig.fillShowTimeConfig(internalPicker.value, showTimeFormat.value, propFormat.value, timeProps.value, filledLocale.value));
57
+ const now = (0, vue.computed)(() => mergedGenerateConfig.value?.getNow?.());
58
+ const internalModeState = (0, vue.ref)(props.picker || "date");
59
+ const mergedMode = (0, vue.computed)(() => props.mode || internalModeState.value);
60
+ const setMergedMode = (m) => {
61
+ internalModeState.value = m;
62
+ };
63
+ const internalMode = (0, vue.computed)(() => mergedMode.value === "date" && mergedShowTime.value ? "datetime" : mergedMode.value);
64
+ const toggleDates = require_useToggleDates.default(mergedGenerateConfig, filledLocale, internalPicker);
65
+ const internalValueState = (0, vue.ref)(props.defaultValue);
66
+ const innerValue = (0, vue.computed)(() => props.value !== void 0 ? props.value : internalValueState.value);
67
+ const setMergedValue = (val) => {
68
+ internalValueState.value = val;
69
+ };
70
+ const mergedValue = (0, vue.computed)(() => {
71
+ const vals = require_miscUtil.toArray(innerValue.value).filter((val) => val);
72
+ return props.multiple ? vals : vals.slice(0, 1);
73
+ });
74
+ const triggerChange = (nextValue) => {
75
+ setMergedValue(nextValue);
76
+ if (props.onChange && (nextValue === null || mergedValue.value.length !== nextValue.length || mergedValue.value.some((ori, index) => !require_dateUtil.isSame(mergedGenerateConfig.value, filledLocale.value, ori, nextValue[index], internalPicker.value)))) props.onChange(props.multiple ? nextValue : nextValue?.[0]);
77
+ };
78
+ const onInternalSelect = (newDate) => {
79
+ props.onSelect?.(newDate);
80
+ if (mergedMode.value === props.picker) triggerChange(props.multiple ? toggleDates(mergedValue.value, newDate) : [newDate]);
81
+ };
82
+ const internalPickerValueState = (0, vue.ref)(props.defaultPickerValue || mergedValue.value[0] || now.value);
83
+ const mergedPickerValue = (0, vue.computed)(() => props.pickerValue !== void 0 ? props.pickerValue : internalPickerValueState.value);
84
+ const setInternalPickerValue = (val) => {
85
+ internalPickerValueState.value = val;
86
+ };
87
+ (0, vue.watch)(() => mergedValue.value[0], (val) => {
88
+ if (val && props.pickerValue === void 0) setInternalPickerValue(val);
89
+ });
90
+ const triggerPanelChange = (viewDate, nextMode) => {
91
+ props.onPanelChange?.(viewDate || mergedPickerValue.value, nextMode || mergedMode.value);
92
+ };
93
+ const setPickerValue = (nextPickerValue, triggerPanelEvent = false) => {
94
+ setInternalPickerValue(nextPickerValue);
95
+ props.onPickerValueChange?.(nextPickerValue);
96
+ if (triggerPanelEvent) triggerPanelChange(nextPickerValue);
97
+ };
98
+ const triggerModeChange = (nextMode, viewDate) => {
99
+ setMergedMode(nextMode);
100
+ if (viewDate) setPickerValue(viewDate);
101
+ triggerPanelChange(viewDate, nextMode);
102
+ };
103
+ const onPanelValueSelect = (nextValue) => {
104
+ onInternalSelect(nextValue);
105
+ setPickerValue(nextValue);
106
+ if (mergedMode.value !== props.picker) {
107
+ const decadeYearQueue = ["decade", "year"];
108
+ const decadeYearMonthQueue = [...decadeYearQueue, "month"];
109
+ const queue = {
110
+ quarter: [...decadeYearQueue, "quarter"],
111
+ week: [...decadeYearMonthQueue, "week"],
112
+ date: [...decadeYearMonthQueue, "date"]
113
+ }[props.picker || "date"] || decadeYearMonthQueue;
114
+ const nextMode = queue[queue.indexOf(mergedMode.value) + 1];
115
+ if (nextMode) triggerModeChange(nextMode, nextValue);
116
+ }
117
+ };
118
+ const hoverRangeDate = (0, vue.computed)(() => {
119
+ let start;
120
+ let end;
121
+ if (Array.isArray(props.hoverRangeValue)) [start, end] = props.hoverRangeValue;
122
+ else start = props.hoverRangeValue;
123
+ if (!start && !end) return null;
124
+ start = start || end;
125
+ end = end || start;
126
+ return mergedGenerateConfig.value.isAfter(start, end) ? [end, start] : [start, end];
127
+ });
128
+ const onInternalCellRender = require_useCellRender.default((0, vue.toRef)(props, "cellRender"), (0, vue.toRef)(props, "dateRender"), (0, vue.toRef)(props, "monthCellRender"));
129
+ require_context$1.provideSharedPanelContext((0, vue.computed)(() => ({
130
+ classNames: pickerContext.value.classNames?.popup ?? props.classNames ?? {},
131
+ styles: pickerContext.value.styles?.popup ?? props.styles ?? {}
132
+ })));
133
+ const parentHackContext = require_context$1.usePickerHackContext();
134
+ require_context$1.providePickerHackContext((0, vue.computed)(() => ({
135
+ ...parentHackContext?.value || {},
136
+ hideHeader: props.hideHeader
137
+ })));
138
+ if (process.env.NODE_ENV !== "production") (0, _v_c_util.warning)(!mergedValue.value || mergedValue.value.every((val) => mergedGenerateConfig.value.isValidate(val)), "Invalidate date pass to `value` or `defaultValue`.");
139
+ return () => {
140
+ const PanelComponent = props.components?.[internalMode.value] || DefaultComponents[internalMode.value] || require_index.default;
141
+ const panelCls = `${mergedPrefixCls.value}-panel`;
142
+ const panelProps = require_miscUtil.pickProps(props, [
143
+ "showWeek",
144
+ "prevIcon",
145
+ "nextIcon",
146
+ "superPrevIcon",
147
+ "superNextIcon",
148
+ "disabledDate",
149
+ "minDate",
150
+ "maxDate",
151
+ "onHover"
152
+ ]);
153
+ return (0, vue.createVNode)("div", (0, vue.mergeProps)({
154
+ "ref": rootRef,
155
+ "tabindex": props.tabindex,
156
+ "class": (0, _v_c_util.clsx)(panelCls, { [`${panelCls}-rtl`]: props.direction === "rtl" })
157
+ }, attrs), [(0, vue.createVNode)(PanelComponent, (0, vue.mergeProps)(panelProps, {
158
+ "showTime": mergedShowTime.value,
159
+ "prefixCls": mergedPrefixCls.value,
160
+ "locale": filledLocale.value,
161
+ "generateConfig": mergedGenerateConfig.value,
162
+ "onModeChange": triggerModeChange,
163
+ "pickerValue": mergedPickerValue.value,
164
+ "onPickerValueChange": (nextPickerValue) => {
165
+ setPickerValue(nextPickerValue, true);
166
+ },
167
+ "value": mergedValue.value[0],
168
+ "onSelect": onPanelValueSelect,
169
+ "values": mergedValue.value,
170
+ "cellRender": onInternalCellRender,
171
+ "hoverRangeValue": hoverRangeDate.value,
172
+ "hoverValue": props.hoverValue
173
+ }), null)]);
174
+ };
175
+ }, {
176
+ props: {
177
+ prefixCls: {
178
+ type: String,
179
+ required: false,
180
+ default: void 0
181
+ },
182
+ direction: {
183
+ type: String,
184
+ required: false,
185
+ default: void 0
186
+ },
187
+ onSelect: {
188
+ type: Function,
189
+ required: false,
190
+ default: void 0
191
+ },
192
+ defaultPickerValue: {
193
+ required: false,
194
+ default: void 0
195
+ },
196
+ pickerValue: {
197
+ required: false,
198
+ default: void 0
199
+ },
200
+ onPickerValueChange: {
201
+ type: Function,
202
+ required: false,
203
+ default: void 0
204
+ },
205
+ mode: {
206
+ type: String,
207
+ required: false,
208
+ default: void 0
209
+ },
210
+ onPanelChange: {
211
+ type: Function,
212
+ required: false,
213
+ default: void 0
214
+ },
215
+ picker: {
216
+ type: String,
217
+ required: false,
218
+ default: void 0
219
+ },
220
+ showTime: {
221
+ type: [Boolean, Object],
222
+ required: false,
223
+ default: void 0
224
+ },
225
+ showWeek: {
226
+ type: Boolean,
227
+ required: false,
228
+ default: void 0
229
+ },
230
+ cellRender: {
231
+ type: Function,
232
+ required: false,
233
+ default: void 0
234
+ },
235
+ dateRender: {
236
+ type: Function,
237
+ required: false,
238
+ default: void 0
239
+ },
240
+ monthCellRender: {
241
+ type: Function,
242
+ required: false,
243
+ default: void 0
244
+ },
245
+ hoverValue: {
246
+ type: Array,
247
+ required: false,
248
+ default: void 0
249
+ },
250
+ hoverRangeValue: {
251
+ type: Array,
252
+ required: false,
253
+ default: void 0
254
+ },
255
+ onHover: {
256
+ type: Function,
257
+ required: false,
258
+ default: void 0
259
+ },
260
+ components: {
261
+ type: Object,
262
+ required: false,
263
+ default: void 0
264
+ },
265
+ hideHeader: {
266
+ type: Boolean,
267
+ required: false,
268
+ default: void 0
269
+ },
270
+ locale: {
271
+ type: Object,
272
+ required: false,
273
+ default: void 0
274
+ },
275
+ generateConfig: {
276
+ type: Object,
277
+ required: false,
278
+ default: void 0
279
+ },
280
+ disabledDate: {
281
+ type: Function,
282
+ required: false,
283
+ default: void 0
284
+ },
285
+ minDate: {
286
+ required: false,
287
+ default: void 0
288
+ },
289
+ maxDate: {
290
+ required: false,
291
+ default: void 0
292
+ },
293
+ prevIcon: {
294
+ type: [
295
+ Object,
296
+ Function,
297
+ String,
298
+ Number,
299
+ null,
300
+ Boolean,
301
+ Array
302
+ ],
303
+ required: false,
304
+ default: void 0
305
+ },
306
+ nextIcon: {
307
+ type: [
308
+ Object,
309
+ Function,
310
+ String,
311
+ Number,
312
+ null,
313
+ Boolean,
314
+ Array
315
+ ],
316
+ required: false,
317
+ default: void 0
318
+ },
319
+ superPrevIcon: {
320
+ type: [
321
+ Object,
322
+ Function,
323
+ String,
324
+ Number,
325
+ null,
326
+ Boolean,
327
+ Array
328
+ ],
329
+ required: false,
330
+ default: void 0
331
+ },
332
+ superNextIcon: {
333
+ type: [
334
+ Object,
335
+ Function,
336
+ String,
337
+ Number,
338
+ null,
339
+ Boolean,
340
+ Array
341
+ ],
342
+ required: false,
343
+ default: void 0
344
+ },
345
+ format: {
346
+ type: String,
347
+ required: false,
348
+ default: void 0
349
+ },
350
+ showNow: {
351
+ type: Boolean,
352
+ required: false,
353
+ default: void 0
354
+ },
355
+ showHour: {
356
+ type: Boolean,
357
+ required: false,
358
+ default: void 0
359
+ },
360
+ showMinute: {
361
+ type: Boolean,
362
+ required: false,
363
+ default: void 0
364
+ },
365
+ showSecond: {
366
+ type: Boolean,
367
+ required: false,
368
+ default: void 0
369
+ },
370
+ showMillisecond: {
371
+ type: Boolean,
372
+ required: false,
373
+ default: void 0
374
+ },
375
+ use12Hours: {
376
+ type: Boolean,
377
+ required: false,
378
+ default: void 0
379
+ },
380
+ hourStep: {
381
+ required: false,
382
+ default: void 0
383
+ },
384
+ minuteStep: {
385
+ required: false,
386
+ default: void 0
387
+ },
388
+ secondStep: {
389
+ required: false,
390
+ default: void 0
391
+ },
392
+ millisecondStep: {
393
+ required: false,
394
+ default: void 0
395
+ },
396
+ hideDisabledOptions: {
397
+ type: Boolean,
398
+ required: false,
399
+ default: void 0
400
+ },
401
+ defaultValue: {
402
+ type: [Array, null],
403
+ required: false,
404
+ default: void 0
405
+ },
406
+ defaultOpenValue: {
407
+ required: false,
408
+ default: void 0
409
+ },
410
+ disabledHours: {
411
+ type: Function,
412
+ required: false,
413
+ default: void 0
414
+ },
415
+ disabledMinutes: {
416
+ type: Function,
417
+ required: false,
418
+ default: void 0
419
+ },
420
+ disabledSeconds: {
421
+ type: Function,
422
+ required: false,
423
+ default: void 0
424
+ },
425
+ disabledTime: {
426
+ type: Function,
427
+ required: false,
428
+ default: void 0
429
+ },
430
+ changeOnScroll: {
431
+ type: Boolean,
432
+ required: false,
433
+ default: void 0
434
+ },
435
+ tabindex: {
436
+ type: [
437
+ Number,
438
+ String,
439
+ null
440
+ ],
441
+ required: false,
442
+ default: void 0
443
+ },
444
+ multiple: {
445
+ type: Boolean,
446
+ required: false,
447
+ default: void 0
448
+ },
449
+ value: {
450
+ required: false,
451
+ default: void 0
452
+ },
453
+ onChange: {
454
+ type: Function,
455
+ required: false,
456
+ default: void 0
457
+ },
458
+ styles: {
459
+ type: Object,
460
+ required: false,
461
+ default: void 0
462
+ },
463
+ classNames: {
464
+ type: Object,
465
+ required: false,
466
+ default: void 0
467
+ }
468
+ },
469
+ name: "PickerPanel",
470
+ inheritAttrs: false
471
+ });
472
+ var PickerPanel_default = PickerPanel;
473
+ exports.default = PickerPanel_default;
@@ -0,0 +1,65 @@
1
+ import { VueNode } from '../../../util/src/type';
2
+ import { CSSProperties, HTMLAttributes } from 'vue';
3
+ import { CellRender, Components, Locale, OnPanelChange, PanelMode, PanelSemanticName, PickerMode, SharedPanelProps, SharedTimeProps } from '../interface';
4
+ export interface PickerPanelRef {
5
+ nativeElement: HTMLDivElement;
6
+ }
7
+ export interface BasePickerPanelProps<DateType extends object = any> extends Pick<SharedPanelProps<DateType>, 'locale' | 'generateConfig' | 'disabledDate' | 'minDate' | 'maxDate' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'>, SharedTimeProps<DateType>, Pick<HTMLAttributes, 'tabindex'> {
8
+ prefixCls?: string;
9
+ direction?: 'ltr' | 'rtl';
10
+ onSelect?: (date: DateType) => void;
11
+ defaultPickerValue?: DateType | null;
12
+ pickerValue?: DateType | null;
13
+ onPickerValueChange?: (date: DateType) => void;
14
+ mode?: PanelMode;
15
+ /**
16
+ * Compatible with origin API.
17
+ * Not mean the PickerPanel `onChange` event.
18
+ */
19
+ onPanelChange?: OnPanelChange<DateType>;
20
+ picker?: PickerMode;
21
+ showTime?: true | SharedTimeProps<DateType>;
22
+ /**
23
+ * Only worked in `date` mode. Show the current week
24
+ */
25
+ showWeek?: boolean;
26
+ cellRender?: CellRender<DateType>;
27
+ /** @deprecated use cellRender instead of dateRender */
28
+ dateRender?: (currentDate: DateType, today: DateType) => VueNode;
29
+ /** @deprecated use cellRender instead of monthCellRender */
30
+ monthCellRender?: (currentDate: DateType, locale: Locale) => VueNode;
31
+ /** @private Used for Picker passing */
32
+ hoverValue?: DateType[];
33
+ /** @private Used for Picker passing */
34
+ hoverRangeValue?: [start: DateType, end: DateType];
35
+ /** @private Used for Picker passing */
36
+ onHover?: (date: DateType) => void;
37
+ components?: Components;
38
+ /** @private This is internal usage. Do not use in your production env */
39
+ hideHeader?: boolean;
40
+ }
41
+ export interface SinglePickerPanelProps<DateType extends object = any> extends BasePickerPanelProps<DateType> {
42
+ multiple?: false;
43
+ defaultValue?: DateType;
44
+ value?: DateType | null;
45
+ onChange?: (date: DateType) => void;
46
+ }
47
+ export type PickerPanelProps<DateType extends object = any> = BasePickerPanelProps<DateType> & {
48
+ /** multiple selection. Not support time or datetime picker */
49
+ multiple?: boolean;
50
+ defaultValue?: DateType | DateType[] | null;
51
+ value?: DateType | DateType[] | null;
52
+ onChange?: (date: DateType | DateType[]) => void;
53
+ styles?: Partial<Record<PanelSemanticName, CSSProperties>>;
54
+ classNames?: Partial<Record<PanelSemanticName, string>>;
55
+ };
56
+ declare const PickerPanel: import('vue').DefineSetupFnComponent<PickerPanelProps<any>, {}, {}, BasePickerPanelProps<any> & {
57
+ /** multiple selection. Not support time or datetime picker */
58
+ multiple?: boolean;
59
+ defaultValue?: any;
60
+ value?: any;
61
+ onChange?: ((date: any) => void) | undefined;
62
+ styles?: Partial<Record<PanelSemanticName, CSSProperties>>;
63
+ classNames?: Partial<Record<PanelSemanticName, string>>;
64
+ } & {}, import('vue').PublicProps>;
65
+ export default PickerPanel;