@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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 antdv-community
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,115 @@
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("../context.cjs");
7
+ const require_useTimeInfo = require("../../hooks/useTimeInfo.cjs");
8
+ let vue = require("vue");
9
+ let _v_c_util = require("@v-c/util");
10
+ var Footer = /* @__PURE__ */ (0, vue.defineComponent)((props) => {
11
+ const mode = (0, vue.computed)(() => props.mode);
12
+ const internalMode = (0, vue.computed)(() => props.internalMode);
13
+ const renderExtraFooter = (0, vue.computed)(() => props.renderExtraFooter);
14
+ const showNow = (0, vue.computed)(() => props.showNow);
15
+ const showTime = (0, vue.computed)(() => props.showTime);
16
+ const onSubmit = (0, vue.computed)(() => props.onSubmit);
17
+ const onNow = (0, vue.computed)(() => props.onNow);
18
+ const invalid = (0, vue.computed)(() => props.invalid);
19
+ const needConfirm = (0, vue.computed)(() => props.needConfirm);
20
+ const pickerCtx = require_context.usePickerContext();
21
+ const generateConfig = (0, vue.computed)(() => props.generateConfig || pickerCtx.value.generateConfig);
22
+ const disabledDate = (0, vue.computed)(() => props.disabledDate);
23
+ const now = (0, vue.computed)(() => generateConfig.value.getNow());
24
+ const [getValidTime] = require_useTimeInfo.default(generateConfig, showTime, now);
25
+ const nowDisabled = (0, vue.computed)(() => disabledDate.value(now.value, { type: mode.value }));
26
+ const onInternalNow = () => {
27
+ if (!nowDisabled.value) {
28
+ const validateNow = getValidTime(now.value);
29
+ onNow.value(validateNow);
30
+ }
31
+ };
32
+ return () => {
33
+ const { prefixCls, locale, button: Button = "button", classNames, styles } = pickerCtx.value;
34
+ const extraNode = renderExtraFooter.value?.(mode.value);
35
+ const nowPrefixCls = `${prefixCls}-now`;
36
+ const nowBtnPrefixCls = `${nowPrefixCls}-btn`;
37
+ const presetNode = showNow.value && (0, vue.createVNode)("li", { "class": nowPrefixCls }, [(0, vue.createVNode)("a", {
38
+ "class": (0, _v_c_util.clsx)(nowBtnPrefixCls, nowDisabled.value && `${nowBtnPrefixCls}-disabled`),
39
+ "aria-disabled": nowDisabled.value,
40
+ "onClick": onInternalNow
41
+ }, [internalMode.value === "date" ? locale.today : locale.now])]);
42
+ const okNode = needConfirm.value && (0, vue.createVNode)("li", { "class": `${prefixCls}-ok` }, [(0, vue.createVNode)(Button, {
43
+ "disabled": invalid.value,
44
+ "onClick": onSubmit.value
45
+ }, { default: () => [locale.ok] })]);
46
+ const rangeNode = (presetNode || okNode) && (0, vue.createVNode)("ul", { "class": `${prefixCls}-ranges` }, [presetNode, okNode]);
47
+ if (!extraNode && !rangeNode) return null;
48
+ return (0, vue.createVNode)("div", {
49
+ "class": (0, _v_c_util.clsx)(`${prefixCls}-footer`, classNames.popup?.footer),
50
+ "style": styles.popup?.footer
51
+ }, [extraNode && (0, vue.createVNode)("div", { "class": `${prefixCls}-footer-extra` }, [extraNode]), rangeNode]);
52
+ };
53
+ }, {
54
+ props: {
55
+ mode: {
56
+ type: String,
57
+ required: true,
58
+ default: void 0
59
+ },
60
+ internalMode: {
61
+ type: String,
62
+ required: true,
63
+ default: void 0
64
+ },
65
+ renderExtraFooter: {
66
+ type: Function,
67
+ required: false,
68
+ default: void 0
69
+ },
70
+ showNow: {
71
+ type: Boolean,
72
+ required: true,
73
+ default: void 0
74
+ },
75
+ generateConfig: {
76
+ type: Object,
77
+ required: true,
78
+ default: void 0
79
+ },
80
+ disabledDate: {
81
+ type: Function,
82
+ required: true,
83
+ default: void 0
84
+ },
85
+ showTime: {
86
+ type: Object,
87
+ required: false,
88
+ default: void 0
89
+ },
90
+ invalid: {
91
+ type: Boolean,
92
+ required: false,
93
+ default: void 0
94
+ },
95
+ onSubmit: {
96
+ type: Function,
97
+ required: true,
98
+ default: void 0
99
+ },
100
+ needConfirm: {
101
+ type: Boolean,
102
+ required: true,
103
+ default: void 0
104
+ },
105
+ onNow: {
106
+ type: Function,
107
+ required: true,
108
+ default: void 0
109
+ }
110
+ },
111
+ name: "Footer",
112
+ inheritAttrs: false
113
+ });
114
+ var Footer_default = Footer;
115
+ exports.default = Footer_default;
@@ -0,0 +1,19 @@
1
+ import { PopupShowTimeConfig } from '.';
2
+ import { GenerateConfig } from '../../generate';
3
+ import { DisabledDate, InternalMode, PanelMode, SharedPickerProps } from '../../interface';
4
+ export interface FooterProps<DateType extends object = any> {
5
+ mode: PanelMode;
6
+ internalMode: InternalMode;
7
+ renderExtraFooter?: SharedPickerProps['renderExtraFooter'];
8
+ showNow: boolean;
9
+ generateConfig: GenerateConfig<DateType>;
10
+ disabledDate: DisabledDate<DateType>;
11
+ showTime?: PopupShowTimeConfig<DateType>;
12
+ /** From Footer component used only. Check if can OK button click */
13
+ invalid?: boolean;
14
+ onSubmit: (date?: DateType) => void;
15
+ needConfirm: boolean;
16
+ onNow: (now: DateType) => void;
17
+ }
18
+ declare const Footer: import('vue').DefineSetupFnComponent<FooterProps<any>, {}, {}, FooterProps<any> & {}, import('vue').PublicProps>;
19
+ export default Footer;
@@ -0,0 +1,109 @@
1
+ import { usePickerContext } from "../context.js";
2
+ import useTimeInfo from "../../hooks/useTimeInfo.js";
3
+ import { computed, createVNode, defineComponent } from "vue";
4
+ import { clsx } from "@v-c/util";
5
+ var Footer_default = /* @__PURE__ */ defineComponent((props) => {
6
+ const mode = computed(() => props.mode);
7
+ const internalMode = computed(() => props.internalMode);
8
+ const renderExtraFooter = computed(() => props.renderExtraFooter);
9
+ const showNow = computed(() => props.showNow);
10
+ const showTime = computed(() => props.showTime);
11
+ const onSubmit = computed(() => props.onSubmit);
12
+ const onNow = computed(() => props.onNow);
13
+ const invalid = computed(() => props.invalid);
14
+ const needConfirm = computed(() => props.needConfirm);
15
+ const pickerCtx = usePickerContext();
16
+ const generateConfig = computed(() => props.generateConfig || pickerCtx.value.generateConfig);
17
+ const disabledDate = computed(() => props.disabledDate);
18
+ const now = computed(() => generateConfig.value.getNow());
19
+ const [getValidTime] = useTimeInfo(generateConfig, showTime, now);
20
+ const nowDisabled = computed(() => disabledDate.value(now.value, { type: mode.value }));
21
+ const onInternalNow = () => {
22
+ if (!nowDisabled.value) {
23
+ const validateNow = getValidTime(now.value);
24
+ onNow.value(validateNow);
25
+ }
26
+ };
27
+ return () => {
28
+ const { prefixCls, locale, button: Button = "button", classNames, styles } = pickerCtx.value;
29
+ const extraNode = renderExtraFooter.value?.(mode.value);
30
+ const nowPrefixCls = `${prefixCls}-now`;
31
+ const nowBtnPrefixCls = `${nowPrefixCls}-btn`;
32
+ const presetNode = showNow.value && createVNode("li", { "class": nowPrefixCls }, [createVNode("a", {
33
+ "class": clsx(nowBtnPrefixCls, nowDisabled.value && `${nowBtnPrefixCls}-disabled`),
34
+ "aria-disabled": nowDisabled.value,
35
+ "onClick": onInternalNow
36
+ }, [internalMode.value === "date" ? locale.today : locale.now])]);
37
+ const okNode = needConfirm.value && createVNode("li", { "class": `${prefixCls}-ok` }, [createVNode(Button, {
38
+ "disabled": invalid.value,
39
+ "onClick": onSubmit.value
40
+ }, { default: () => [locale.ok] })]);
41
+ const rangeNode = (presetNode || okNode) && createVNode("ul", { "class": `${prefixCls}-ranges` }, [presetNode, okNode]);
42
+ if (!extraNode && !rangeNode) return null;
43
+ return createVNode("div", {
44
+ "class": clsx(`${prefixCls}-footer`, classNames.popup?.footer),
45
+ "style": styles.popup?.footer
46
+ }, [extraNode && createVNode("div", { "class": `${prefixCls}-footer-extra` }, [extraNode]), rangeNode]);
47
+ };
48
+ }, {
49
+ props: {
50
+ mode: {
51
+ type: String,
52
+ required: true,
53
+ default: void 0
54
+ },
55
+ internalMode: {
56
+ type: String,
57
+ required: true,
58
+ default: void 0
59
+ },
60
+ renderExtraFooter: {
61
+ type: Function,
62
+ required: false,
63
+ default: void 0
64
+ },
65
+ showNow: {
66
+ type: Boolean,
67
+ required: true,
68
+ default: void 0
69
+ },
70
+ generateConfig: {
71
+ type: Object,
72
+ required: true,
73
+ default: void 0
74
+ },
75
+ disabledDate: {
76
+ type: Function,
77
+ required: true,
78
+ default: void 0
79
+ },
80
+ showTime: {
81
+ type: Object,
82
+ required: false,
83
+ default: void 0
84
+ },
85
+ invalid: {
86
+ type: Boolean,
87
+ required: false,
88
+ default: void 0
89
+ },
90
+ onSubmit: {
91
+ type: Function,
92
+ required: true,
93
+ default: void 0
94
+ },
95
+ needConfirm: {
96
+ type: Boolean,
97
+ required: true,
98
+ default: void 0
99
+ },
100
+ onNow: {
101
+ type: Function,
102
+ required: true,
103
+ default: void 0
104
+ }
105
+ },
106
+ name: "Footer",
107
+ inheritAttrs: false
108
+ });
109
+ export { Footer_default as default };
@@ -0,0 +1,413 @@
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("../context.cjs");
7
+ const require_useRangePickerValue = require("../hooks/useRangePickerValue.cjs");
8
+ const require_context$1 = require("../../PickerPanel/context.cjs");
9
+ const require_index = require("../../PickerPanel/index.cjs");
10
+ let vue = require("vue");
11
+ let _v_c_util = require("@v-c/util");
12
+ var PickerPanelProvider = /* @__PURE__ */ (0, vue.defineComponent)((props, { slots }) => {
13
+ require_context$1.providePickerHackContext((0, vue.computed)(() => props.value));
14
+ return () => {
15
+ return slots.default?.();
16
+ };
17
+ }, {
18
+ props: { value: {
19
+ type: Object,
20
+ required: true,
21
+ default: void 0
22
+ } },
23
+ name: "PickerPanelProvider",
24
+ inheritAttrs: false
25
+ });
26
+ var PopupPanel = /* @__PURE__ */ (0, vue.defineComponent)((props) => {
27
+ const ctx = require_context.usePickerContext();
28
+ const picker = (0, vue.computed)(() => props.picker);
29
+ const pickerValue = (0, vue.computed)(() => props.pickerValue);
30
+ const needConfirm = (0, vue.computed)(() => props.needConfirm);
31
+ const onSubmit = (0, vue.computed)(() => props.onSubmit);
32
+ const range = (0, vue.computed)(() => props.range);
33
+ const hoverValue = (0, vue.computed)(() => props.hoverValue);
34
+ const multiplePanel = (0, vue.computed)(() => props.multiplePanel);
35
+ const onPickerValueChange = (0, vue.computed)(() => props.onPickerValueChange);
36
+ const internalOffsetDate = (date, offset) => {
37
+ const { generateConfig } = ctx.value || {};
38
+ return require_useRangePickerValue.offsetPanelDate(generateConfig, picker?.value, date, offset);
39
+ };
40
+ const nextPickerValue = (0, vue.computed)(() => {
41
+ return internalOffsetDate(pickerValue?.value, 1);
42
+ });
43
+ const onSecondPickerValueChange = (nextDate) => {
44
+ onPickerValueChange.value(internalOffsetDate(nextDate, -1));
45
+ };
46
+ const sharedContext = { onCellDblClick: () => {
47
+ if (needConfirm.value) onSubmit.value();
48
+ } };
49
+ const hideHeader = (0, vue.computed)(() => picker?.value === "time");
50
+ const pickerProps = (0, vue.computed)(() => {
51
+ const baseProps = {
52
+ ...props,
53
+ hoverValue: null,
54
+ hoverRangeValue: null,
55
+ hideHeader: hideHeader.value
56
+ };
57
+ if (range?.value) baseProps.hoverRangeValue = hoverValue?.value;
58
+ else baseProps.hoverValue = hoverValue?.value;
59
+ return baseProps;
60
+ });
61
+ return () => {
62
+ const { prefixCls } = ctx.value;
63
+ if (multiplePanel?.value) return (0, vue.createVNode)("div", { "class": `${prefixCls}-panels` }, [(0, vue.createVNode)(PickerPanelProvider, { "value": {
64
+ ...sharedContext,
65
+ hideNext: true
66
+ } }, { default: () => [(0, vue.createVNode)(require_index.default, pickerProps.value, null)] }), (0, vue.createVNode)(PickerPanelProvider, { "value": {
67
+ ...sharedContext,
68
+ hidePrev: true
69
+ } }, { default: () => [(0, vue.createVNode)(require_index.default, (0, vue.mergeProps)((0, _v_c_util.omit)(pickerProps.value, ["onPickerValueChange"]), {
70
+ "pickerValue": nextPickerValue.value,
71
+ "onPickerValueChange": onSecondPickerValueChange
72
+ }), null)] })]);
73
+ return (0, vue.createVNode)(PickerPanelProvider, { "value": { ...sharedContext } }, { default: () => [(0, vue.createVNode)(require_index.default, pickerProps.value, null)] });
74
+ };
75
+ }, {
76
+ props: {
77
+ multiplePanel: {
78
+ type: Boolean,
79
+ required: false,
80
+ default: void 0
81
+ },
82
+ range: {
83
+ type: Boolean,
84
+ required: false,
85
+ default: void 0
86
+ },
87
+ onPickerValueChange: {
88
+ type: Function,
89
+ required: true,
90
+ default: void 0
91
+ },
92
+ mode: {
93
+ type: String,
94
+ required: false,
95
+ default: void 0
96
+ },
97
+ onPanelChange: {
98
+ type: Function,
99
+ required: false,
100
+ default: void 0
101
+ },
102
+ prefixCls: {
103
+ type: String,
104
+ required: false,
105
+ default: void 0
106
+ },
107
+ direction: {
108
+ type: String,
109
+ required: false,
110
+ default: void 0
111
+ },
112
+ onSelect: {
113
+ type: Function,
114
+ required: false,
115
+ default: void 0
116
+ },
117
+ defaultPickerValue: {
118
+ required: false,
119
+ default: void 0
120
+ },
121
+ pickerValue: {
122
+ required: false,
123
+ default: void 0
124
+ },
125
+ picker: {
126
+ type: String,
127
+ required: false,
128
+ default: void 0
129
+ },
130
+ showWeek: {
131
+ type: Boolean,
132
+ required: false,
133
+ default: void 0
134
+ },
135
+ cellRender: {
136
+ type: Function,
137
+ required: false,
138
+ default: void 0
139
+ },
140
+ dateRender: {
141
+ type: Function,
142
+ required: false,
143
+ default: void 0
144
+ },
145
+ monthCellRender: {
146
+ type: Function,
147
+ required: false,
148
+ default: void 0
149
+ },
150
+ hoverValue: {
151
+ type: Array,
152
+ required: false,
153
+ default: void 0
154
+ },
155
+ hoverRangeValue: {
156
+ type: Array,
157
+ required: false,
158
+ default: void 0
159
+ },
160
+ onHover: {
161
+ type: Function,
162
+ required: false,
163
+ default: void 0
164
+ },
165
+ components: {
166
+ type: Object,
167
+ required: false,
168
+ default: void 0
169
+ },
170
+ hideHeader: {
171
+ type: Boolean,
172
+ required: false,
173
+ default: void 0
174
+ },
175
+ locale: {
176
+ type: Object,
177
+ required: false,
178
+ default: void 0
179
+ },
180
+ generateConfig: {
181
+ type: Object,
182
+ required: false,
183
+ default: void 0
184
+ },
185
+ disabledDate: {
186
+ type: Function,
187
+ required: false,
188
+ default: void 0
189
+ },
190
+ minDate: {
191
+ required: false,
192
+ default: void 0
193
+ },
194
+ maxDate: {
195
+ required: false,
196
+ default: void 0
197
+ },
198
+ prevIcon: {
199
+ type: [
200
+ Object,
201
+ Function,
202
+ String,
203
+ Number,
204
+ null,
205
+ Boolean,
206
+ Array
207
+ ],
208
+ required: false,
209
+ default: void 0
210
+ },
211
+ nextIcon: {
212
+ type: [
213
+ Object,
214
+ Function,
215
+ String,
216
+ Number,
217
+ null,
218
+ Boolean,
219
+ Array
220
+ ],
221
+ required: false,
222
+ default: void 0
223
+ },
224
+ superPrevIcon: {
225
+ type: [
226
+ Object,
227
+ Function,
228
+ String,
229
+ Number,
230
+ null,
231
+ Boolean,
232
+ Array
233
+ ],
234
+ required: false,
235
+ default: void 0
236
+ },
237
+ superNextIcon: {
238
+ type: [
239
+ Object,
240
+ Function,
241
+ String,
242
+ Number,
243
+ null,
244
+ Boolean,
245
+ Array
246
+ ],
247
+ required: false,
248
+ default: void 0
249
+ },
250
+ format: {
251
+ type: String,
252
+ required: false,
253
+ default: void 0
254
+ },
255
+ showNow: {
256
+ type: Boolean,
257
+ required: false,
258
+ default: void 0
259
+ },
260
+ showHour: {
261
+ type: Boolean,
262
+ required: false,
263
+ default: void 0
264
+ },
265
+ showMinute: {
266
+ type: Boolean,
267
+ required: false,
268
+ default: void 0
269
+ },
270
+ showSecond: {
271
+ type: Boolean,
272
+ required: false,
273
+ default: void 0
274
+ },
275
+ showMillisecond: {
276
+ type: Boolean,
277
+ required: false,
278
+ default: void 0
279
+ },
280
+ use12Hours: {
281
+ type: Boolean,
282
+ required: false,
283
+ default: void 0
284
+ },
285
+ hourStep: {
286
+ required: false,
287
+ default: void 0
288
+ },
289
+ minuteStep: {
290
+ required: false,
291
+ default: void 0
292
+ },
293
+ secondStep: {
294
+ required: false,
295
+ default: void 0
296
+ },
297
+ millisecondStep: {
298
+ required: false,
299
+ default: void 0
300
+ },
301
+ hideDisabledOptions: {
302
+ type: Boolean,
303
+ required: false,
304
+ default: void 0
305
+ },
306
+ defaultValue: {
307
+ type: [Array, null],
308
+ required: false,
309
+ default: void 0
310
+ },
311
+ defaultOpenValue: {
312
+ required: false,
313
+ default: void 0
314
+ },
315
+ disabledHours: {
316
+ type: Function,
317
+ required: false,
318
+ default: void 0
319
+ },
320
+ disabledMinutes: {
321
+ type: Function,
322
+ required: false,
323
+ default: void 0
324
+ },
325
+ disabledSeconds: {
326
+ type: Function,
327
+ required: false,
328
+ default: void 0
329
+ },
330
+ disabledTime: {
331
+ type: Function,
332
+ required: false,
333
+ default: void 0
334
+ },
335
+ changeOnScroll: {
336
+ type: Boolean,
337
+ required: false,
338
+ default: void 0
339
+ },
340
+ tabindex: {
341
+ type: [
342
+ Number,
343
+ String,
344
+ null
345
+ ],
346
+ required: false,
347
+ default: void 0
348
+ },
349
+ multiple: {
350
+ type: Boolean,
351
+ required: false,
352
+ default: void 0
353
+ },
354
+ value: {
355
+ required: false,
356
+ default: void 0
357
+ },
358
+ onChange: {
359
+ type: Function,
360
+ required: false,
361
+ default: void 0
362
+ },
363
+ styles: {
364
+ type: Object,
365
+ required: false,
366
+ default: void 0
367
+ },
368
+ classNames: {
369
+ type: Object,
370
+ required: false,
371
+ default: void 0
372
+ },
373
+ internalMode: {
374
+ type: String,
375
+ required: true,
376
+ default: void 0
377
+ },
378
+ renderExtraFooter: {
379
+ type: Function,
380
+ required: false,
381
+ default: void 0
382
+ },
383
+ showTime: {
384
+ type: Object,
385
+ required: false,
386
+ default: void 0
387
+ },
388
+ invalid: {
389
+ type: Boolean,
390
+ required: false,
391
+ default: void 0
392
+ },
393
+ onSubmit: {
394
+ type: Function,
395
+ required: true,
396
+ default: void 0
397
+ },
398
+ needConfirm: {
399
+ type: Boolean,
400
+ required: true,
401
+ default: void 0
402
+ },
403
+ onNow: {
404
+ type: Function,
405
+ required: true,
406
+ default: void 0
407
+ }
408
+ },
409
+ name: "PopupPanel",
410
+ inheritAttrs: false
411
+ });
412
+ var PopupPanel_default = PopupPanel;
413
+ exports.default = PopupPanel_default;
@@ -0,0 +1,11 @@
1
+ import { PickerPanelProps } from '../../PickerPanel';
2
+ import { FooterProps } from './Footer';
3
+ export type MustProp<DateType extends object> = Required<Pick<PickerPanelProps<DateType>, 'mode' | 'onPanelChange'>>;
4
+ type PopupPanelPropsWrapper<DateType extends object = any> = MustProp<DateType> & Omit<PickerPanelProps<DateType>, 'onPickerValueChange' | 'showTime'> & FooterProps<DateType>;
5
+ export interface PopupPanelProps<DateType extends object = any> extends PopupPanelPropsWrapper<DateType> {
6
+ multiplePanel?: boolean;
7
+ range?: boolean;
8
+ onPickerValueChange: (date: DateType) => void;
9
+ }
10
+ declare const PopupPanel: import('vue').DefineSetupFnComponent<PopupPanelProps<any>, {}, {}, PopupPanelProps<any> & {}, import('vue').PublicProps>;
11
+ export default PopupPanel;