@expcat/tigercat-vue 1.5.0 → 2.0.0-preview.2

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 (680) hide show
  1. package/dist/{chunk-OSPHI5TV.mjs → chunk-2JW3TOXM.mjs} +4 -9
  2. package/dist/{chunk-MF7BKYGN.mjs → chunk-2QWGVJW6.mjs} +29 -15
  3. package/dist/{chunk-LGDJDBE3.mjs → chunk-2R3SOQSW.mjs} +4 -7
  4. package/dist/{chunk-WWB7VKKH.mjs → chunk-36WSYHJU.mjs} +53 -7
  5. package/dist/chunk-4RKBXGHQ.mjs +52 -0
  6. package/dist/{chunk-ALFEFDVG.mjs → chunk-4ZKSTL5P.mjs} +47 -21
  7. package/dist/{chunk-YZP4K6KI.mjs → chunk-6BDDX2R4.mjs} +9 -9
  8. package/dist/{chunk-Y4V7BOVR.mjs → chunk-6TTICJR4.mjs} +9 -7
  9. package/dist/{chunk-S4Z77VIB.mjs → chunk-AZXS4QWC.mjs} +8 -8
  10. package/dist/{chunk-RD2NFAB6.mjs → chunk-BGO2ILHM.mjs} +9 -9
  11. package/dist/{chunk-6CS3EEQU.mjs → chunk-BNNTDSLJ.mjs} +83 -0
  12. package/dist/{chunk-5CHHWMES.mjs → chunk-DOVBKVTB.mjs} +1 -1
  13. package/dist/chunk-ESBUNMIG.mjs +49 -0
  14. package/dist/{chunk-KJ6VISRW.mjs → chunk-EUSODI5E.mjs} +1 -1
  15. package/dist/{chunk-LHOSPU6V.mjs → chunk-FDKJOVXG.mjs} +9 -18
  16. package/dist/{chunk-LHZ5MRFQ.mjs → chunk-FHJ3R57L.mjs} +9 -9
  17. package/dist/{chunk-PMN2MQ26.mjs → chunk-FIVVKBBF.mjs} +3 -3
  18. package/dist/{chunk-JGW7R7AZ.mjs → chunk-G7MOTNJO.mjs} +8 -8
  19. package/dist/{chunk-WSUCJHJX.mjs → chunk-GAEO66NY.mjs} +2 -2
  20. package/dist/chunk-GMIKUE67.mjs +201 -0
  21. package/dist/chunk-GTFAC625.mjs +120 -0
  22. package/dist/{chunk-QH3YF5B6.mjs → chunk-GVLLO45Y.mjs} +61 -31
  23. package/dist/{chunk-LSWTZHBV.mjs → chunk-HGXD57QM.mjs} +23 -2
  24. package/dist/{chunk-X43QLJ5E.mjs → chunk-IGT4QB7O.mjs} +4 -4
  25. package/dist/{chunk-3VFZB5ZK.mjs → chunk-IQNZ4UEA.mjs} +10 -13
  26. package/dist/{chunk-UTGFGMZT.mjs → chunk-JPCMI3A4.mjs} +8 -8
  27. package/dist/{chunk-SMCOBLF6.mjs → chunk-KBJANUZZ.mjs} +6 -6
  28. package/dist/{chunk-M4EP4OVR.mjs → chunk-KE6RGD4Y.mjs} +2 -1
  29. package/dist/chunk-KIPTVKU2.mjs +104 -0
  30. package/dist/{chunk-VYBRLIKF.mjs → chunk-MJRFB6ZA.mjs} +8 -8
  31. package/dist/{chunk-UKMOWUYH.mjs → chunk-MYKKKVGK.mjs} +2 -2
  32. package/dist/{chunk-3AF4VRCD.mjs → chunk-N3C6YI7I.mjs} +8 -8
  33. package/dist/{chunk-57VPT3MN.mjs → chunk-NYWIBDO6.mjs} +8 -8
  34. package/dist/{chunk-PJX2DHO5.mjs → chunk-O4F75KHL.mjs} +8 -8
  35. package/dist/{chunk-CIDINFA2.mjs → chunk-ODDPVS27.mjs} +35 -10
  36. package/dist/{chunk-64EZRIJL.mjs → chunk-QD5ZCKPR.mjs} +1 -1
  37. package/dist/{chunk-4RK5BDGR.mjs → chunk-RAO7ZJWR.mjs} +9 -9
  38. package/dist/{chunk-G2LB4QCL.mjs → chunk-SPFL55TF.mjs} +4 -4
  39. package/dist/{chunk-6OQLZCQK.mjs → chunk-SYRRMZT2.mjs} +1 -1
  40. package/dist/{chunk-IJL7YYT7.mjs → chunk-TQDN67YN.mjs} +29 -3
  41. package/dist/{chunk-SC3WTLKG.mjs → chunk-UD4FNMJN.mjs} +22 -5
  42. package/dist/{chunk-CVFXUYH2.mjs → chunk-VFUBOKGT.mjs} +4 -4
  43. package/dist/{chunk-XMGNMKWW.mjs → chunk-VMYV5EWI.mjs} +4 -3
  44. package/dist/{chunk-TRN5PL5D.mjs → chunk-WYJ5WOT2.mjs} +28 -12
  45. package/dist/chunk-Y2HO4IBQ.mjs +150 -0
  46. package/dist/{chunk-XJ5VGC5V.mjs → chunk-YJSWHGAR.mjs} +24 -10
  47. package/dist/{chunk-N2QGYEOQ.mjs → chunk-YSKG5FSX.mjs} +1 -1
  48. package/dist/{chunk-BRGQXIKA.mjs → chunk-Z4NJJ7NI.mjs} +9 -9
  49. package/dist/components/ActivityFeed.d.mts +6 -6
  50. package/dist/components/ActivityFeed.mjs +3 -3
  51. package/dist/components/Alert.d.mts +3 -3
  52. package/dist/components/Anchor.d.mts +1 -1
  53. package/dist/components/AreaChart.d.mts +9 -9
  54. package/dist/components/AreaChart.mjs +5 -5
  55. package/dist/components/AutoComplete.d.mts +29 -10
  56. package/dist/components/AutoComplete.mjs +1 -1
  57. package/dist/components/Avatar.d.mts +1 -1
  58. package/dist/components/BackTop.d.mts +28 -1
  59. package/dist/components/BackTop.mjs +1 -1
  60. package/dist/components/Badge.d.mts +4 -4
  61. package/dist/components/BarChart.d.mts +2 -2
  62. package/dist/components/BarChart.mjs +5 -5
  63. package/dist/components/Breadcrumb.d.mts +3 -3
  64. package/dist/components/Button.d.mts +3 -3
  65. package/dist/components/ButtonGroup.d.mts +1 -1
  66. package/dist/components/Calendar.d.mts +2 -2
  67. package/dist/components/Card.d.mts +8 -8
  68. package/dist/components/Carousel.d.mts +24 -7
  69. package/dist/components/Carousel.mjs +1 -1
  70. package/dist/components/Cascader.d.mts +38 -16
  71. package/dist/components/Cascader.mjs +1 -1
  72. package/dist/components/ChartCanvas.d.mts +1 -1
  73. package/dist/components/ChartGrid.d.mts +1 -1
  74. package/dist/components/ChartTooltip.d.mts +4 -4
  75. package/dist/components/ChartTooltip.mjs +1 -1
  76. package/dist/components/ChatWindow.d.mts +3 -3
  77. package/dist/components/ChatWindow.mjs +1 -1
  78. package/dist/components/Checkbox.d.mts +8 -8
  79. package/dist/components/Checkbox.mjs +1 -1
  80. package/dist/components/CheckboxGroup.d.mts +8 -8
  81. package/dist/components/CodeEditor.d.mts +2 -2
  82. package/dist/components/Collapse.d.mts +1 -1
  83. package/dist/components/CollapsePanel.d.mts +1 -1
  84. package/dist/components/ColorPicker.d.mts +4 -4
  85. package/dist/components/ColorSwatch.d.mts +6 -6
  86. package/dist/components/CommentThread.d.mts +2 -2
  87. package/dist/components/CommentThread.mjs +1 -1
  88. package/dist/components/ConfigProvider.d.mts +1 -1
  89. package/dist/components/Container.d.mts +1 -1
  90. package/dist/components/Countdown.d.mts +2 -2
  91. package/dist/components/CronEditor.d.mts +1 -1
  92. package/dist/components/CropUpload.d.mts +1 -1
  93. package/dist/components/CropUpload.mjs +2 -2
  94. package/dist/components/DataTableWithToolbar.d.mts +12 -22
  95. package/dist/components/DataTableWithToolbar.mjs +8 -8
  96. package/dist/components/DatePicker.d.mts +9 -9
  97. package/dist/components/DatePicker.mjs +1 -1
  98. package/dist/components/Descriptions.d.mts +9 -9
  99. package/dist/components/DonutChart.d.mts +14 -14
  100. package/dist/components/DonutChart.mjs +5 -5
  101. package/dist/components/Drawer.d.mts +12 -31
  102. package/dist/components/Drawer.mjs +1 -1
  103. package/dist/components/Dropdown.d.mts +69 -2
  104. package/dist/components/Dropdown.mjs +3 -1
  105. package/dist/components/Empty.d.mts +1 -1
  106. package/dist/components/FileManager.d.mts +2 -2
  107. package/dist/components/FloatButton.d.mts +35 -5
  108. package/dist/components/FloatButton.mjs +1 -1
  109. package/dist/components/Form.d.mts +9 -9
  110. package/dist/components/FormItem.d.mts +4 -4
  111. package/dist/components/FormWizard.d.mts +5 -5
  112. package/dist/components/FunnelChart.d.mts +3 -3
  113. package/dist/components/FunnelChart.mjs +4 -4
  114. package/dist/components/Gantt.d.mts +2 -2
  115. package/dist/components/GaugeChart.d.mts +2 -2
  116. package/dist/components/GaugeChart.mjs +2 -2
  117. package/dist/components/HeatmapChart.d.mts +3 -3
  118. package/dist/components/HeatmapChart.mjs +3 -3
  119. package/dist/components/Icon.d.mts +1 -1
  120. package/dist/components/Image.d.mts +2 -2
  121. package/dist/components/Image.mjs +3 -3
  122. package/dist/components/ImageAnnotation.d.mts +5 -5
  123. package/dist/components/ImageCropper.d.mts +1 -1
  124. package/dist/components/ImageGroup.d.mts +2 -2
  125. package/dist/components/ImageGroup.mjs +2 -2
  126. package/dist/components/ImagePreview.d.mts +22 -12
  127. package/dist/components/ImagePreview.mjs +1 -1
  128. package/dist/components/ImageViewer.d.mts +7 -17
  129. package/dist/components/ImageViewer.mjs +1 -1
  130. package/dist/components/InfiniteScroll.d.mts +3 -3
  131. package/dist/components/Input.d.mts +8 -8
  132. package/dist/components/InputGroup.d.mts +7 -7
  133. package/dist/components/InputNumber.d.mts +6 -6
  134. package/dist/components/Kanban.d.mts +1 -1
  135. package/dist/components/LineChart.d.mts +2 -2
  136. package/dist/components/LineChart.mjs +5 -5
  137. package/dist/components/Link.d.mts +1 -1
  138. package/dist/components/List.d.mts +13 -13
  139. package/dist/components/Loading.d.mts +6 -6
  140. package/dist/components/MarkdownEditor.d.mts +2 -2
  141. package/dist/components/Mentions.d.mts +2 -2
  142. package/dist/components/Menu.d.mts +9 -9
  143. package/dist/components/Message.d.mts +4 -39
  144. package/dist/components/Message.mjs +139 -4
  145. package/dist/components/{Message.d.ts → MessageContainer.d.mts} +5 -18
  146. package/dist/components/MessageContainer.mjs +9 -0
  147. package/dist/components/MessageRoot.d.mts +9 -0
  148. package/dist/components/MessageRoot.mjs +6 -0
  149. package/dist/components/Modal.d.mts +8 -26
  150. package/dist/components/Modal.mjs +1 -1
  151. package/dist/components/Notification.d.mts +4 -29
  152. package/dist/components/Notification.mjs +189 -4
  153. package/dist/components/NotificationCenter.d.mts +5 -5
  154. package/dist/components/{Notification.d.ts → NotificationContainer.d.mts} +15 -17
  155. package/dist/components/NotificationContainer.mjs +9 -0
  156. package/dist/components/NotificationRoot.d.mts +9 -0
  157. package/dist/components/NotificationRoot.mjs +6 -0
  158. package/dist/components/NumberKeyboard.d.mts +5 -5
  159. package/dist/components/OrgChart.d.mts +3 -3
  160. package/dist/components/Pagination.d.mts +4 -4
  161. package/dist/components/PieChart.d.mts +3 -3
  162. package/dist/components/PieChart.mjs +4 -4
  163. package/dist/components/Popconfirm.d.mts +2 -2
  164. package/dist/components/Popconfirm.mjs +2 -2
  165. package/dist/components/Popover.d.mts +1 -1
  166. package/dist/components/Popover.mjs +2 -2
  167. package/dist/components/Progress.d.mts +3 -3
  168. package/dist/components/QRCode.d.mts +3 -3
  169. package/dist/components/RadarChart.d.mts +3 -3
  170. package/dist/components/RadarChart.mjs +4 -4
  171. package/dist/components/Radio.d.mts +15 -15
  172. package/dist/components/Radio.mjs +2 -2
  173. package/dist/components/RadioGroup.d.mts +16 -16
  174. package/dist/components/RadioGroup.mjs +1 -1
  175. package/dist/components/Result.d.mts +1 -1
  176. package/dist/components/RichTextEditor.d.mts +1 -1
  177. package/dist/components/Row.d.mts +1 -1
  178. package/dist/components/ScatterChart.d.mts +2 -2
  179. package/dist/components/ScatterChart.mjs +5 -5
  180. package/dist/components/ScrollSpy.d.mts +3 -3
  181. package/dist/components/Segmented.d.mts +4 -4
  182. package/dist/components/Select.d.mts +53 -36
  183. package/dist/components/Select.mjs +1 -1
  184. package/dist/components/Signature.d.mts +5 -5
  185. package/dist/components/Skeleton.d.mts +1 -1
  186. package/dist/components/Slider.d.mts +7 -7
  187. package/dist/components/Space.d.mts +11 -11
  188. package/dist/components/Splitter.d.mts +1 -1
  189. package/dist/components/Spotlight.d.mts +3 -3
  190. package/dist/components/Statistic.d.mts +4 -4
  191. package/dist/components/Stepper.d.mts +4 -4
  192. package/dist/components/Steps.d.mts +3 -3
  193. package/dist/components/SunburstChart.d.mts +2 -2
  194. package/dist/components/SunburstChart.mjs +4 -4
  195. package/dist/components/Switch.d.mts +14 -14
  196. package/dist/components/Switch.mjs +1 -1
  197. package/dist/components/Table.d.mts +5 -15
  198. package/dist/components/Table.mjs +5 -5
  199. package/dist/components/Tabs.d.mts +2 -2
  200. package/dist/components/Tag.d.mts +2 -2
  201. package/dist/components/TaskBoard.d.mts +2 -2
  202. package/dist/components/Text.d.mts +3 -3
  203. package/dist/components/Textarea.d.mts +9 -9
  204. package/dist/components/TimePicker.d.mts +12 -12
  205. package/dist/components/TimePicker.mjs +1 -1
  206. package/dist/components/Timeline.d.mts +4 -4
  207. package/dist/components/Tooltip.d.mts +1 -1
  208. package/dist/components/Tooltip.mjs +2 -2
  209. package/dist/components/Tour.d.mts +2 -2
  210. package/dist/components/Transfer.d.mts +31 -11
  211. package/dist/components/Transfer.mjs +1 -1
  212. package/dist/components/Tree.d.mts +4 -4
  213. package/dist/components/TreeMapChart.d.mts +2 -2
  214. package/dist/components/TreeMapChart.mjs +4 -4
  215. package/dist/components/TreeSelect.d.mts +32 -12
  216. package/dist/components/TreeSelect.mjs +1 -1
  217. package/dist/components/Upload.d.mts +4 -4
  218. package/dist/components/VirtualTable.d.mts +27 -36
  219. package/dist/components/VirtualTable.mjs +1 -1
  220. package/dist/components/Watermark.d.mts +1 -1
  221. package/dist/composables/useChartInteraction.d.mts +84 -0
  222. package/dist/composables/useChartInteraction.mjs +6 -0
  223. package/dist/composables/useDrag.d.mts +40 -0
  224. package/dist/composables/useDrag.mjs +6 -0
  225. package/dist/composables/useFormController.d.mts +23 -0
  226. package/dist/composables/useFormController.mjs +6 -0
  227. package/dist/index.d.mts +11 -144
  228. package/dist/index.mjs +2158 -826
  229. package/package.json +743 -13
  230. package/dist/chunk-2DC3BMED.js +0 -92
  231. package/dist/chunk-2FYVPPTD.js +0 -315
  232. package/dist/chunk-2RCBEBBR.js +0 -376
  233. package/dist/chunk-2VOZFFW6.js +0 -138
  234. package/dist/chunk-37LDNXLO.js +0 -243
  235. package/dist/chunk-3QV2D54H.js +0 -207
  236. package/dist/chunk-43BLH7DE.js +0 -166
  237. package/dist/chunk-54VVFMYI.js +0 -69
  238. package/dist/chunk-55BSMMUN.js +0 -202
  239. package/dist/chunk-57MJTNDL.js +0 -128
  240. package/dist/chunk-5FTM7R3P.js +0 -142
  241. package/dist/chunk-5PVDNJA5.js +0 -103
  242. package/dist/chunk-5PXTMXXS.js +0 -159
  243. package/dist/chunk-5UOAWXOQ.js +0 -243
  244. package/dist/chunk-67RSRWWY.js +0 -451
  245. package/dist/chunk-6WFFP4K2.mjs +0 -325
  246. package/dist/chunk-72DDCIVL.js +0 -68
  247. package/dist/chunk-75TB3YIJ.js +0 -124
  248. package/dist/chunk-7ADONGSB.js +0 -49
  249. package/dist/chunk-7CR6MLD5.js +0 -141
  250. package/dist/chunk-7FWZIAFP.js +0 -482
  251. package/dist/chunk-7GYYIDMA.js +0 -325
  252. package/dist/chunk-7J7JIIHX.js +0 -230
  253. package/dist/chunk-7KYGVEHF.js +0 -364
  254. package/dist/chunk-7RMBEWN2.js +0 -360
  255. package/dist/chunk-A7FN3S4I.js +0 -150
  256. package/dist/chunk-AF7JZUTA.js +0 -755
  257. package/dist/chunk-ANQRW442.js +0 -468
  258. package/dist/chunk-APBWQGXW.js +0 -250
  259. package/dist/chunk-AWXSJNNP.js +0 -267
  260. package/dist/chunk-AYQER5UD.js +0 -96
  261. package/dist/chunk-BNUR72YP.js +0 -142
  262. package/dist/chunk-BPJOIFND.js +0 -305
  263. package/dist/chunk-BV6XWFRF.js +0 -360
  264. package/dist/chunk-BYNTPLGC.js +0 -79
  265. package/dist/chunk-BZ56UKUK.js +0 -483
  266. package/dist/chunk-CFJST2X2.js +0 -808
  267. package/dist/chunk-CGZFRSI5.mjs +0 -98
  268. package/dist/chunk-CTAQ5WEN.js +0 -95
  269. package/dist/chunk-CWNEDREV.js +0 -165
  270. package/dist/chunk-D43IFX7J.js +0 -196
  271. package/dist/chunk-D6Y3KVJF.js +0 -211
  272. package/dist/chunk-DE5WMG6P.js +0 -291
  273. package/dist/chunk-DYSLYJ2W.js +0 -92
  274. package/dist/chunk-E36I27WK.js +0 -362
  275. package/dist/chunk-EG7XX6U4.js +0 -98
  276. package/dist/chunk-EQW6IUHG.js +0 -163
  277. package/dist/chunk-ETTYERGO.js +0 -83
  278. package/dist/chunk-F5TZIFMW.js +0 -145
  279. package/dist/chunk-FC7RXQTM.js +0 -153
  280. package/dist/chunk-GBYNY77G.js +0 -342
  281. package/dist/chunk-GJ5HJOQP.js +0 -859
  282. package/dist/chunk-GV3LRZSR.js +0 -257
  283. package/dist/chunk-H2XEJHGR.js +0 -327
  284. package/dist/chunk-H7GAWNOW.js +0 -787
  285. package/dist/chunk-HA5QZ76M.js +0 -143
  286. package/dist/chunk-HBFFINAI.js +0 -58
  287. package/dist/chunk-HI45DI7S.js +0 -404
  288. package/dist/chunk-IUPNDTUF.js +0 -119
  289. package/dist/chunk-IXTYS3EK.js +0 -140
  290. package/dist/chunk-J77GQQEC.js +0 -318
  291. package/dist/chunk-JCMGBKS6.js +0 -59
  292. package/dist/chunk-JCPTFBLY.js +0 -112
  293. package/dist/chunk-JICPYKCT.js +0 -297
  294. package/dist/chunk-JKZ5ZRDG.js +0 -136
  295. package/dist/chunk-JMRR4KDB.js +0 -736
  296. package/dist/chunk-JTVFVAM3.js +0 -47
  297. package/dist/chunk-K2DJDJZR.js +0 -139
  298. package/dist/chunk-K2NJI5MW.js +0 -67
  299. package/dist/chunk-K3CIXMN4.js +0 -212
  300. package/dist/chunk-K6DYTMBE.js +0 -111
  301. package/dist/chunk-KGDRA475.js +0 -119
  302. package/dist/chunk-KLOUOXNA.js +0 -111
  303. package/dist/chunk-KTNT2JHB.js +0 -351
  304. package/dist/chunk-LKRT27JW.js +0 -149
  305. package/dist/chunk-LODEICSN.js +0 -253
  306. package/dist/chunk-LPHDX3UU.js +0 -279
  307. package/dist/chunk-LUBUJUSH.js +0 -45
  308. package/dist/chunk-MNVMGJUF.js +0 -341
  309. package/dist/chunk-MPVL53GP.js +0 -472
  310. package/dist/chunk-MQ23PX3S.js +0 -218
  311. package/dist/chunk-MSKAWM7K.js +0 -73
  312. package/dist/chunk-NCLUMDZB.js +0 -100
  313. package/dist/chunk-NQYE64IF.js +0 -130
  314. package/dist/chunk-OOMZBTHW.js +0 -328
  315. package/dist/chunk-OQBWITHA.js +0 -387
  316. package/dist/chunk-OQOJI5Q7.js +0 -158
  317. package/dist/chunk-OVXDO6KJ.js +0 -426
  318. package/dist/chunk-OXIODAJS.js +0 -192
  319. package/dist/chunk-PFWRFHSB.js +0 -164
  320. package/dist/chunk-PFZFPN7M.js +0 -383
  321. package/dist/chunk-PH6ERFC7.js +0 -545
  322. package/dist/chunk-QKJATAJP.js +0 -788
  323. package/dist/chunk-QOMWROWE.js +0 -136
  324. package/dist/chunk-QY6PYAJA.js +0 -194
  325. package/dist/chunk-RAUERIPS.js +0 -100
  326. package/dist/chunk-RBWJSHKR.js +0 -233
  327. package/dist/chunk-SIVMTPDY.js +0 -741
  328. package/dist/chunk-SJSZHQWX.js +0 -486
  329. package/dist/chunk-SOSHYDIX.js +0 -547
  330. package/dist/chunk-SWOQMMOT.js +0 -60
  331. package/dist/chunk-T4DF24UV.js +0 -114
  332. package/dist/chunk-TCB3WFYM.js +0 -374
  333. package/dist/chunk-TGHB5XST.js +0 -91
  334. package/dist/chunk-TLXEFLPA.js +0 -39
  335. package/dist/chunk-TNKULOHK.js +0 -476
  336. package/dist/chunk-TOD67L2E.js +0 -182
  337. package/dist/chunk-TXMPLBWW.js +0 -213
  338. package/dist/chunk-TYYJPEWG.js +0 -119
  339. package/dist/chunk-U36NBQWP.js +0 -192
  340. package/dist/chunk-U5TSCS34.js +0 -527
  341. package/dist/chunk-UFY654LD.js +0 -1005
  342. package/dist/chunk-UG6O4F2A.js +0 -150
  343. package/dist/chunk-UHVUKLHF.js +0 -112
  344. package/dist/chunk-UI7N2ZDU.js +0 -142
  345. package/dist/chunk-UKR3IJF3.js +0 -374
  346. package/dist/chunk-VDKUKZS2.js +0 -1866
  347. package/dist/chunk-VH2GDZBH.js +0 -284
  348. package/dist/chunk-VJ72Y54M.js +0 -241
  349. package/dist/chunk-VJJ7RAC6.mjs +0 -257
  350. package/dist/chunk-VQXDF6CB.js +0 -192
  351. package/dist/chunk-VUGFSHU2.js +0 -164
  352. package/dist/chunk-VXRFE72I.js +0 -852
  353. package/dist/chunk-W34IV4EC.js +0 -401
  354. package/dist/chunk-WF7KVMBY.js +0 -380
  355. package/dist/chunk-X73BZFBH.js +0 -238
  356. package/dist/chunk-X7PQRYUS.js +0 -697
  357. package/dist/chunk-XH4ZZ6KJ.js +0 -427
  358. package/dist/chunk-XMCYKHT4.js +0 -307
  359. package/dist/chunk-XSJKSUED.js +0 -139
  360. package/dist/chunk-XSMDZOBF.js +0 -154
  361. package/dist/chunk-XTMGF5YP.js +0 -103
  362. package/dist/chunk-XUOGT4HG.js +0 -76
  363. package/dist/chunk-XV6IYXAP.js +0 -140
  364. package/dist/chunk-XVNN6D55.js +0 -394
  365. package/dist/chunk-YI25YL5W.js +0 -283
  366. package/dist/chunk-YLMQZR6F.js +0 -430
  367. package/dist/chunk-YMUYN4IR.js +0 -434
  368. package/dist/chunk-YTE45DNC.js +0 -571
  369. package/dist/chunk-YVSINGGE.js +0 -320
  370. package/dist/chunk-ZHSXICH7.js +0 -264
  371. package/dist/chunk-ZMGNQKXL.js +0 -233
  372. package/dist/chunk-ZNVQ2OFX.js +0 -46
  373. package/dist/components/ActivityFeed.d.ts +0 -124
  374. package/dist/components/ActivityFeed.js +0 -18
  375. package/dist/components/Affix.d.ts +0 -75
  376. package/dist/components/Affix.js +0 -8
  377. package/dist/components/Alert.d.ts +0 -221
  378. package/dist/components/Alert.js +0 -9
  379. package/dist/components/Anchor.d.ts +0 -251
  380. package/dist/components/Anchor.js +0 -12
  381. package/dist/components/AnchorLink.d.mts +0 -8
  382. package/dist/components/AnchorLink.d.ts +0 -8
  383. package/dist/components/AnchorLink.js +0 -10
  384. package/dist/components/AnchorLink.mjs +0 -10
  385. package/dist/components/AreaChart.d.ts +0 -443
  386. package/dist/components/AreaChart.js +0 -15
  387. package/dist/components/AutoComplete.d.ts +0 -117
  388. package/dist/components/AutoComplete.js +0 -9
  389. package/dist/components/Avatar.d.ts +0 -162
  390. package/dist/components/Avatar.js +0 -9
  391. package/dist/components/AvatarGroup.d.ts +0 -49
  392. package/dist/components/AvatarGroup.js +0 -10
  393. package/dist/components/BackTop.d.ts +0 -88
  394. package/dist/components/BackTop.js +0 -8
  395. package/dist/components/Badge.d.ts +0 -116
  396. package/dist/components/Badge.js +0 -9
  397. package/dist/components/BarChart.d.ts +0 -400
  398. package/dist/components/BarChart.js +0 -15
  399. package/dist/components/Breadcrumb.d.ts +0 -235
  400. package/dist/components/Breadcrumb.js +0 -12
  401. package/dist/components/BreadcrumbItem.d.mts +0 -8
  402. package/dist/components/BreadcrumbItem.d.ts +0 -8
  403. package/dist/components/BreadcrumbItem.js +0 -10
  404. package/dist/components/BreadcrumbItem.mjs +0 -10
  405. package/dist/components/Button.d.ts +0 -146
  406. package/dist/components/Button.js +0 -9
  407. package/dist/components/ButtonGroup.d.ts +0 -42
  408. package/dist/components/ButtonGroup.js +0 -10
  409. package/dist/components/Calendar.d.ts +0 -78
  410. package/dist/components/Calendar.js +0 -9
  411. package/dist/components/Card.d.ts +0 -170
  412. package/dist/components/Card.js +0 -8
  413. package/dist/components/Carousel.d.ts +0 -247
  414. package/dist/components/Carousel.js +0 -8
  415. package/dist/components/Cascader.d.ts +0 -143
  416. package/dist/components/Cascader.js +0 -9
  417. package/dist/components/ChartAxis.d.ts +0 -110
  418. package/dist/components/ChartAxis.js +0 -8
  419. package/dist/components/ChartCanvas.d.ts +0 -69
  420. package/dist/components/ChartCanvas.js +0 -8
  421. package/dist/components/ChartGrid.d.ts +0 -109
  422. package/dist/components/ChartGrid.js +0 -8
  423. package/dist/components/ChartLegend.d.ts +0 -74
  424. package/dist/components/ChartLegend.js +0 -8
  425. package/dist/components/ChartSeries.d.ts +0 -52
  426. package/dist/components/ChartSeries.js +0 -8
  427. package/dist/components/ChartTooltip.d.ts +0 -58
  428. package/dist/components/ChartTooltip.js +0 -8
  429. package/dist/components/ChatWindow.d.ts +0 -255
  430. package/dist/components/ChatWindow.js +0 -18
  431. package/dist/components/Checkbox.d.ts +0 -144
  432. package/dist/components/Checkbox.js +0 -9
  433. package/dist/components/CheckboxGroup.d.ts +0 -126
  434. package/dist/components/CheckboxGroup.js +0 -10
  435. package/dist/components/Code.d.ts +0 -71
  436. package/dist/components/Code.js +0 -8
  437. package/dist/components/CodeEditor.d.ts +0 -183
  438. package/dist/components/CodeEditor.js +0 -8
  439. package/dist/components/Col.d.ts +0 -52
  440. package/dist/components/Col.js +0 -7
  441. package/dist/components/Collapse.d.ts +0 -162
  442. package/dist/components/Collapse.js +0 -10
  443. package/dist/components/CollapsePanel.d.ts +0 -112
  444. package/dist/components/CollapsePanel.js +0 -9
  445. package/dist/components/ColorPicker.d.ts +0 -70
  446. package/dist/components/ColorPicker.js +0 -8
  447. package/dist/components/ColorSwatch.d.ts +0 -79
  448. package/dist/components/ColorSwatch.js +0 -8
  449. package/dist/components/CommentThread.d.ts +0 -225
  450. package/dist/components/CommentThread.js +0 -17
  451. package/dist/components/ConfigProvider.d.ts +0 -76
  452. package/dist/components/ConfigProvider.js +0 -14
  453. package/dist/components/Container.d.ts +0 -86
  454. package/dist/components/Container.js +0 -8
  455. package/dist/components/Content.d.ts +0 -63
  456. package/dist/components/Content.js +0 -8
  457. package/dist/components/Countdown.d.ts +0 -107
  458. package/dist/components/Countdown.js +0 -8
  459. package/dist/components/CronEditor.d.ts +0 -80
  460. package/dist/components/CronEditor.js +0 -8
  461. package/dist/components/CropUpload.d.ts +0 -107
  462. package/dist/components/CropUpload.js +0 -14
  463. package/dist/components/DataTableWithToolbar.d.ts +0 -588
  464. package/dist/components/DataTableWithToolbar.js +0 -23
  465. package/dist/components/DatePicker.d.ts +0 -333
  466. package/dist/components/DatePicker.js +0 -10
  467. package/dist/components/Descriptions.d.ts +0 -204
  468. package/dist/components/Descriptions.js +0 -8
  469. package/dist/components/Divider.d.ts +0 -50
  470. package/dist/components/Divider.js +0 -8
  471. package/dist/components/DonutChart.d.ts +0 -332
  472. package/dist/components/DonutChart.js +0 -14
  473. package/dist/components/Drawer.d.ts +0 -396
  474. package/dist/components/Drawer.js +0 -10
  475. package/dist/components/Dropdown.d.ts +0 -241
  476. package/dist/components/Dropdown.js +0 -13
  477. package/dist/components/DropdownItem.d.mts +0 -73
  478. package/dist/components/DropdownItem.d.ts +0 -73
  479. package/dist/components/DropdownItem.js +0 -10
  480. package/dist/components/DropdownItem.mjs +0 -10
  481. package/dist/components/DropdownMenu.d.mts +0 -8
  482. package/dist/components/DropdownMenu.d.ts +0 -8
  483. package/dist/components/DropdownMenu.js +0 -11
  484. package/dist/components/DropdownMenu.mjs +0 -11
  485. package/dist/components/Empty.d.ts +0 -74
  486. package/dist/components/Empty.js +0 -9
  487. package/dist/components/FileManager.d.ts +0 -171
  488. package/dist/components/FileManager.js +0 -9
  489. package/dist/components/FloatButton.d.ts +0 -156
  490. package/dist/components/FloatButton.js +0 -10
  491. package/dist/components/Footer.d.ts +0 -63
  492. package/dist/components/Footer.js +0 -8
  493. package/dist/components/Form.d.ts +0 -291
  494. package/dist/components/Form.js +0 -11
  495. package/dist/components/FormItem.d.ts +0 -152
  496. package/dist/components/FormItem.js +0 -10
  497. package/dist/components/FormWizard.d.ts +0 -206
  498. package/dist/components/FormWizard.js +0 -12
  499. package/dist/components/FunnelChart.d.ts +0 -221
  500. package/dist/components/FunnelChart.js +0 -13
  501. package/dist/components/Gantt.d.ts +0 -231
  502. package/dist/components/Gantt.js +0 -9
  503. package/dist/components/GaugeChart.d.ts +0 -197
  504. package/dist/components/GaugeChart.js +0 -10
  505. package/dist/components/Header.d.ts +0 -82
  506. package/dist/components/Header.js +0 -8
  507. package/dist/components/HeatmapChart.d.ts +0 -233
  508. package/dist/components/HeatmapChart.js +0 -11
  509. package/dist/components/Icon.d.ts +0 -68
  510. package/dist/components/Icon.js +0 -8
  511. package/dist/components/Image.d.ts +0 -129
  512. package/dist/components/Image.js +0 -14
  513. package/dist/components/ImageAnnotation.d.ts +0 -189
  514. package/dist/components/ImageAnnotation.js +0 -9
  515. package/dist/components/ImageCropper.d.ts +0 -116
  516. package/dist/components/ImageCropper.js +0 -9
  517. package/dist/components/ImageGroup.d.ts +0 -30
  518. package/dist/components/ImageGroup.js +0 -12
  519. package/dist/components/ImagePreview.d.ts +0 -108
  520. package/dist/components/ImagePreview.js +0 -9
  521. package/dist/components/ImageViewer.d.ts +0 -137
  522. package/dist/components/ImageViewer.js +0 -9
  523. package/dist/components/InfiniteScroll.d.ts +0 -116
  524. package/dist/components/InfiniteScroll.js +0 -9
  525. package/dist/components/Input.d.ts +0 -268
  526. package/dist/components/Input.js +0 -9
  527. package/dist/components/InputGroup.d.ts +0 -77
  528. package/dist/components/InputGroup.js +0 -12
  529. package/dist/components/InputNumber.d.ts +0 -190
  530. package/dist/components/InputNumber.js +0 -9
  531. package/dist/components/Kanban.d.ts +0 -200
  532. package/dist/components/Kanban.js +0 -10
  533. package/dist/components/Layout.d.ts +0 -45
  534. package/dist/components/Layout.js +0 -8
  535. package/dist/components/LineChart.d.ts +0 -434
  536. package/dist/components/LineChart.js +0 -15
  537. package/dist/components/Link.d.ts +0 -89
  538. package/dist/components/Link.js +0 -8
  539. package/dist/components/List.d.ts +0 -342
  540. package/dist/components/List.js +0 -10
  541. package/dist/components/Loading.d.ts +0 -133
  542. package/dist/components/Loading.js +0 -10
  543. package/dist/components/MarkdownEditor.d.ts +0 -149
  544. package/dist/components/MarkdownEditor.js +0 -8
  545. package/dist/components/Mentions.d.ts +0 -88
  546. package/dist/components/Mentions.js +0 -8
  547. package/dist/components/Menu.d.ts +0 -554
  548. package/dist/components/Menu.js +0 -17
  549. package/dist/components/MenuItem.d.mts +0 -8
  550. package/dist/components/MenuItem.d.ts +0 -8
  551. package/dist/components/MenuItem.js +0 -11
  552. package/dist/components/MenuItem.mjs +0 -11
  553. package/dist/components/MenuItemGroup.d.mts +0 -8
  554. package/dist/components/MenuItemGroup.d.ts +0 -8
  555. package/dist/components/MenuItemGroup.js +0 -11
  556. package/dist/components/MenuItemGroup.mjs +0 -11
  557. package/dist/components/Message.js +0 -11
  558. package/dist/components/Modal.d.ts +0 -381
  559. package/dist/components/Modal.js +0 -12
  560. package/dist/components/Notification.js +0 -11
  561. package/dist/components/NotificationCenter.d.ts +0 -213
  562. package/dist/components/NotificationCenter.js +0 -18
  563. package/dist/components/NumberKeyboard.d.ts +0 -154
  564. package/dist/components/NumberKeyboard.js +0 -9
  565. package/dist/components/OrgChart.d.ts +0 -195
  566. package/dist/components/OrgChart.js +0 -9
  567. package/dist/components/Pagination.d.ts +0 -392
  568. package/dist/components/Pagination.js +0 -9
  569. package/dist/components/PieChart.d.ts +0 -305
  570. package/dist/components/PieChart.js +0 -13
  571. package/dist/components/Popconfirm.d.ts +0 -173
  572. package/dist/components/Popconfirm.js +0 -10
  573. package/dist/components/Popover.d.ts +0 -138
  574. package/dist/components/Popover.js +0 -10
  575. package/dist/components/PrintLayout.d.ts +0 -97
  576. package/dist/components/PrintLayout.js +0 -10
  577. package/dist/components/Progress.d.ts +0 -150
  578. package/dist/components/Progress.js +0 -8
  579. package/dist/components/QRCode.d.ts +0 -95
  580. package/dist/components/QRCode.js +0 -9
  581. package/dist/components/RadarChart.d.ts +0 -454
  582. package/dist/components/RadarChart.js +0 -13
  583. package/dist/components/Radio.d.ts +0 -143
  584. package/dist/components/Radio.js +0 -9
  585. package/dist/components/RadioGroup.d.ts +0 -135
  586. package/dist/components/RadioGroup.js +0 -10
  587. package/dist/components/Rate.d.ts +0 -80
  588. package/dist/components/Rate.js +0 -8
  589. package/dist/components/Resizable.d.ts +0 -138
  590. package/dist/components/Resizable.js +0 -8
  591. package/dist/components/Result.d.ts +0 -64
  592. package/dist/components/Result.js +0 -9
  593. package/dist/components/RichTextEditor.d.ts +0 -123
  594. package/dist/components/RichTextEditor.js +0 -8
  595. package/dist/components/Row.d.ts +0 -90
  596. package/dist/components/Row.js +0 -8
  597. package/dist/components/ScatterChart.d.ts +0 -391
  598. package/dist/components/ScatterChart.js +0 -15
  599. package/dist/components/ScrollSpy.d.ts +0 -125
  600. package/dist/components/ScrollSpy.js +0 -8
  601. package/dist/components/Segmented.d.ts +0 -70
  602. package/dist/components/Segmented.js +0 -8
  603. package/dist/components/Select.d.ts +0 -292
  604. package/dist/components/Select.js +0 -9
  605. package/dist/components/Sidebar.d.ts +0 -101
  606. package/dist/components/Sidebar.js +0 -8
  607. package/dist/components/Signature.d.ts +0 -163
  608. package/dist/components/Signature.js +0 -9
  609. package/dist/components/Skeleton.d.ts +0 -96
  610. package/dist/components/Skeleton.js +0 -8
  611. package/dist/components/Slider.d.ts +0 -228
  612. package/dist/components/Slider.js +0 -8
  613. package/dist/components/Space.d.ts +0 -49
  614. package/dist/components/Space.js +0 -8
  615. package/dist/components/Splitter.d.ts +0 -99
  616. package/dist/components/Splitter.js +0 -8
  617. package/dist/components/Spotlight.d.ts +0 -206
  618. package/dist/components/Spotlight.js +0 -10
  619. package/dist/components/Statistic.d.ts +0 -103
  620. package/dist/components/Statistic.js +0 -8
  621. package/dist/components/Stepper.d.ts +0 -79
  622. package/dist/components/Stepper.js +0 -8
  623. package/dist/components/Steps.d.ts +0 -298
  624. package/dist/components/Steps.js +0 -12
  625. package/dist/components/StepsItem.d.mts +0 -8
  626. package/dist/components/StepsItem.d.ts +0 -8
  627. package/dist/components/StepsItem.js +0 -10
  628. package/dist/components/StepsItem.mjs +0 -10
  629. package/dist/components/SubMenu.d.mts +0 -8
  630. package/dist/components/SubMenu.d.ts +0 -8
  631. package/dist/components/SubMenu.js +0 -11
  632. package/dist/components/SubMenu.mjs +0 -11
  633. package/dist/components/SunburstChart.d.ts +0 -212
  634. package/dist/components/SunburstChart.js +0 -13
  635. package/dist/components/Switch.d.ts +0 -94
  636. package/dist/components/Switch.js +0 -8
  637. package/dist/components/TabPane.d.mts +0 -8
  638. package/dist/components/TabPane.d.ts +0 -8
  639. package/dist/components/TabPane.js +0 -10
  640. package/dist/components/TabPane.mjs +0 -10
  641. package/dist/components/Table.d.ts +0 -509
  642. package/dist/components/Table.js +0 -15
  643. package/dist/components/Tabs.d.ts +0 -410
  644. package/dist/components/Tabs.js +0 -12
  645. package/dist/components/Tag.d.ts +0 -130
  646. package/dist/components/Tag.js +0 -9
  647. package/dist/components/TaskBoard.d.ts +0 -210
  648. package/dist/components/TaskBoard.js +0 -9
  649. package/dist/components/Text.d.ts +0 -161
  650. package/dist/components/Text.js +0 -8
  651. package/dist/components/Textarea.d.ts +0 -308
  652. package/dist/components/Textarea.js +0 -9
  653. package/dist/components/TimePicker.d.ts +0 -372
  654. package/dist/components/TimePicker.js +0 -10
  655. package/dist/components/Timeline.d.ts +0 -124
  656. package/dist/components/Timeline.js +0 -9
  657. package/dist/components/Tooltip.d.ts +0 -116
  658. package/dist/components/Tooltip.js +0 -10
  659. package/dist/components/Tour.d.ts +0 -127
  660. package/dist/components/Tour.js +0 -11
  661. package/dist/components/Transfer.d.ts +0 -129
  662. package/dist/components/Transfer.js +0 -9
  663. package/dist/components/Tree.d.ts +0 -485
  664. package/dist/components/Tree.js +0 -10
  665. package/dist/components/TreeMapChart.d.ts +0 -221
  666. package/dist/components/TreeMapChart.js +0 -13
  667. package/dist/components/TreeSelect.d.ts +0 -121
  668. package/dist/components/TreeSelect.js +0 -9
  669. package/dist/components/Upload.d.ts +0 -355
  670. package/dist/components/Upload.js +0 -9
  671. package/dist/components/VirtualList.d.ts +0 -89
  672. package/dist/components/VirtualList.js +0 -8
  673. package/dist/components/VirtualTable.d.ts +0 -196
  674. package/dist/components/VirtualTable.js +0 -9
  675. package/dist/components/Watermark.d.ts +0 -144
  676. package/dist/components/Watermark.js +0 -8
  677. package/dist/index.d.ts +0 -286
  678. package/dist/index.js +0 -838
  679. package/dist/{chunk-2HRJGOAV.mjs → chunk-B47QLHVW.mjs} +3 -3
  680. /package/dist/{chunk-R2HO74FE.mjs → chunk-PE5OA4YG.mjs} +0 -0
@@ -1,859 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
- var _chunkJCMGBKS6js = require('./chunk-JCMGBKS6.js');
4
-
5
-
6
- var _chunkIXTYS3EKjs = require('./chunk-IXTYS3EK.js');
7
-
8
- // src/components/DatePicker.ts
9
- var _vue = require('vue');
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
- var _tigercatcore = require('@expcat/tigercat-core');
50
- var CalendarIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.CalendarIconPath, "w-5 h-5");
51
- var CloseIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.CloseIconPath, "w-4 h-4");
52
- var ChevronLeftIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.ChevronLeftIconPath, "w-5 h-5");
53
- var ChevronRightIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.ChevronRightIconPath, "w-5 h-5");
54
- function normalizeDatePickerLocale(locale) {
55
- if (!locale) return void 0;
56
- if (typeof locale === "string") return { locale };
57
- if ("datePicker" in locale) return locale;
58
- const preset = locale;
59
- return {
60
- locale: hasDatePickerLocaleCode(preset) ? preset.locale : void 0,
61
- datePicker: preset
62
- };
63
- }
64
- function hasDatePickerLocaleCode(locale) {
65
- return typeof locale.locale === "string";
66
- }
67
- var isDateLike = (value) => value === null || value instanceof Date || typeof value === "string";
68
- var isModelValue = (value) => {
69
- if (isDateLike(value)) return true;
70
- if (Array.isArray(value) && value.length === 2) {
71
- return isDateLike(value[0]) && isDateLike(value[1]);
72
- }
73
- return false;
74
- };
75
- var DatePicker = _vue.defineComponent.call(void 0, {
76
- name: "TigerDatePicker",
77
- inheritAttrs: false,
78
- props: {
79
- /**
80
- * Enable range selection (start/end).
81
- * When true, v-model uses a tuple: [start, end].
82
- * @default false
83
- */
84
- range: {
85
- type: Boolean,
86
- default: false
87
- },
88
- /**
89
- * Locale used for month/day names in the calendar UI.
90
- * Example: 'zh-CN', 'en-US'
91
- */
92
- locale: {
93
- type: [String, Object]
94
- },
95
- /**
96
- * UI labels for i18n.
97
- */
98
- labels: {
99
- type: Object,
100
- default: void 0
101
- },
102
- /**
103
- * Selected date value (for v-model)
104
- */
105
- modelValue: {
106
- type: [Date, String, Array, null],
107
- default: null
108
- },
109
- /**
110
- * Date picker size
111
- * @default 'md'
112
- */
113
- size: {
114
- type: String,
115
- default: "md"
116
- },
117
- /**
118
- * Date format string
119
- * @default 'yyyy-MM-dd'
120
- */
121
- format: {
122
- type: String,
123
- default: "yyyy-MM-dd"
124
- },
125
- /**
126
- * Placeholder text
127
- */
128
- placeholder: {
129
- type: String,
130
- default: void 0
131
- },
132
- /**
133
- * Whether the date picker is disabled
134
- * @default false
135
- */
136
- disabled: {
137
- type: Boolean,
138
- default: false
139
- },
140
- /**
141
- * Whether the date picker is readonly
142
- * @default false
143
- */
144
- readonly: {
145
- type: Boolean,
146
- default: false
147
- },
148
- /**
149
- * Whether the date picker is required
150
- * @default false
151
- */
152
- required: {
153
- type: Boolean,
154
- default: false
155
- },
156
- /**
157
- * Minimum selectable date
158
- */
159
- minDate: {
160
- type: [Date, String, null],
161
- default: null
162
- },
163
- /**
164
- * Maximum selectable date
165
- */
166
- maxDate: {
167
- type: [Date, String, null],
168
- default: null
169
- },
170
- /**
171
- * Show clear button
172
- * @default true
173
- */
174
- clearable: {
175
- type: Boolean,
176
- default: true
177
- },
178
- /**
179
- * Input name attribute
180
- */
181
- name: {
182
- type: String
183
- },
184
- /**
185
- * Input id attribute
186
- */
187
- id: {
188
- type: String
189
- },
190
- /**
191
- * Additional CSS classes
192
- */
193
- className: {
194
- type: String,
195
- default: ""
196
- },
197
- /**
198
- * Custom styles
199
- */
200
- style: {
201
- type: Object,
202
- default: void 0
203
- },
204
- /**
205
- * Shortcut presets for quick date selection
206
- */
207
- shortcuts: {
208
- type: Array,
209
- default: void 0
210
- }
211
- },
212
- emits: {
213
- /**
214
- * Emitted when date changes (for v-model)
215
- */
216
- "update:modelValue": (value) => {
217
- return isModelValue(value);
218
- },
219
- /**
220
- * Convenience event emitted alongside `update:modelValue` on every value
221
- * change. This is an intentional, non-v-model event (the idiomatic Vue
222
- * pattern); it always carries the same normalized value as
223
- * `update:modelValue`. Prefer `v-model` for two-way binding and use
224
- * `@change` only for side effects.
225
- */
226
- change: (value) => {
227
- return isModelValue(value);
228
- },
229
- /**
230
- * Emitted when clear button is clicked
231
- */
232
- clear: () => true
233
- },
234
- setup(props, { emit, attrs }) {
235
- const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
236
- const isOpen = _vue.ref.call(void 0, false);
237
- const calendarRef = _vue.ref.call(void 0, null);
238
- const mobileCalendarRef = _vue.ref.call(void 0, null);
239
- const inputWrapperRef = _vue.ref.call(void 0, null);
240
- const inputRef = _vue.ref.call(void 0, null);
241
- const activeDateIso = _vue.ref.call(void 0, null);
242
- const activeRangePart = _vue.ref.call(void 0, "start");
243
- const pendingFocusIso = _vue.ref.call(void 0, null);
244
- const restoreFocusEl = _vue.ref.call(void 0, null);
245
- const isRangeMode = _vue.computed.call(void 0, () => props.range);
246
- const selectedDate = _vue.computed.call(void 0, () => {
247
- if (isRangeMode.value) return null;
248
- return _tigercatcore.parseDate.call(void 0, props.modelValue);
249
- });
250
- const selectedRange = _vue.computed.call(void 0, () => {
251
- if (!isRangeMode.value) return [null, null];
252
- const raw = props.modelValue;
253
- if (!raw || !Array.isArray(raw)) return [null, null];
254
- return [_tigercatcore.parseDate.call(void 0, raw[0]), _tigercatcore.parseDate.call(void 0, raw[1])];
255
- });
256
- const minDateParsed = _vue.computed.call(void 0, () => _tigercatcore.parseDate.call(void 0, props.minDate));
257
- const maxDateParsed = _vue.computed.call(void 0, () => _tigercatcore.parseDate.call(void 0, props.maxDate));
258
- const mergedLocale = _vue.computed.call(void 0,
259
- () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, normalizeDatePickerLocale(props.locale))
260
- );
261
- const localeCode = _vue.computed.call(void 0, () => _tigercatcore.getDatePickerLocaleCode.call(void 0, mergedLocale.value));
262
- const viewingMonth = _vue.ref.call(void 0,
263
- _nullishCoalesce(_optionalChain([(_nullishCoalesce(selectedDate.value, () => ( selectedRange.value[0]))), 'optionalAccess', _2 => _2.getMonth, 'call', _3 => _3()]), () => ( (/* @__PURE__ */ new Date()).getMonth()))
264
- );
265
- const viewingYear = _vue.ref.call(void 0,
266
- _nullishCoalesce(_optionalChain([(_nullishCoalesce(selectedDate.value, () => ( selectedRange.value[0]))), 'optionalAccess', _4 => _4.getFullYear, 'call', _5 => _5()]), () => ( (/* @__PURE__ */ new Date()).getFullYear()))
267
- );
268
- const displayValue = _vue.computed.call(void 0, () => {
269
- if (!isRangeMode.value) {
270
- return selectedDate.value ? _tigercatcore.formatDate.call(void 0, selectedDate.value, props.format, localeCode.value) : "";
271
- }
272
- const [start, end] = selectedRange.value;
273
- const startText = start ? _tigercatcore.formatDate.call(void 0, start, props.format, localeCode.value) : "";
274
- const endText = end ? _tigercatcore.formatDate.call(void 0, end, props.format, localeCode.value) : "";
275
- if (!startText && !endText) return "";
276
- if (startText && endText) return `${startText} - ${endText}`;
277
- return startText ? `${startText} - ` : ` - ${endText}`;
278
- });
279
- const placeholderText = _vue.computed.call(void 0,
280
- () => _nullishCoalesce(props.placeholder, () => ( (props.range ? "Select date range" : "Select date")))
281
- );
282
- const showClearButton = _vue.computed.call(void 0, () => {
283
- if (!props.clearable || props.disabled || props.readonly) return false;
284
- if (!isRangeMode.value) return selectedDate.value !== null;
285
- const [start, end] = selectedRange.value;
286
- return start !== null || end !== null;
287
- });
288
- const calendarDays = _vue.computed.call(void 0, () => {
289
- return _tigercatcore.getCalendarDays.call(void 0, viewingYear.value, viewingMonth.value);
290
- });
291
- const dayNames = _vue.computed.call(void 0, () => _tigercatcore.getShortDayNames.call(void 0, localeCode.value));
292
- const isRtl = _vue.computed.call(void 0, () => _tigercatcore.getLocaleDirection.call(void 0, localeCode.value) === "rtl");
293
- const previousMonthIcon = _vue.computed.call(void 0, () => isRtl.value ? ChevronRightIcon : ChevronLeftIcon);
294
- const nextMonthIcon = _vue.computed.call(void 0, () => isRtl.value ? ChevronLeftIcon : ChevronRightIcon);
295
- const labels = _vue.computed.call(void 0, () => _tigercatcore.getDatePickerLabels.call(void 0, mergedLocale.value, props.labels));
296
- const mobileDate = _vue.computed.call(void 0, () => {
297
- if (!isRangeMode.value) return _nullishCoalesce(selectedDate.value, () => ( _tigercatcore.normalizeDate.call(void 0, /* @__PURE__ */ new Date())));
298
- const [start, end] = selectedRange.value;
299
- return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce((activeRangePart.value === "start" ? start : end), () => ( start)), () => ( end)), () => ( _tigercatcore.normalizeDate.call(void 0, /* @__PURE__ */ new Date())));
300
- });
301
- const mobileYears = _vue.computed.call(void 0, () => {
302
- const baseYear = mobileDate.value.getFullYear();
303
- return Array.from({ length: 101 }, (_, index) => baseYear - 50 + index);
304
- });
305
- const mobileDays = _vue.computed.call(void 0, () => {
306
- const date = mobileDate.value;
307
- const daysInMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
308
- return Array.from({ length: daysInMonth }, (_, index) => index + 1);
309
- });
310
- const emitValue = (value) => {
311
- emit("update:modelValue", value);
312
- emit("change", value);
313
- };
314
- const focusDateButtonByIso = (iso) => {
315
- const button = _optionalChain([calendarRef, 'access', _6 => _6.value, 'optionalAccess', _7 => _7.querySelector, 'call', _8 => _8(
316
- `button[data-date="${iso}"]`
317
- )]);
318
- if (!button || button.disabled) return false;
319
- button.focus();
320
- activeDateIso.value = iso;
321
- return true;
322
- };
323
- const getFirstEnabledIsoInView = () => {
324
- for (const date of calendarDays.value) {
325
- if (!date) continue;
326
- const iso = _tigercatcore.formatDate.call(void 0, date, "yyyy-MM-dd");
327
- if (!isDateDisabled(date)) return iso;
328
- }
329
- return null;
330
- };
331
- const getPreferredFocusIso = () => {
332
- const focusDate = isRangeMode.value ? _nullishCoalesce(selectedRange.value[0], () => ( selectedRange.value[1])) : selectedDate.value;
333
- if (focusDate) return _tigercatcore.formatDate.call(void 0, focusDate, "yyyy-MM-dd");
334
- const today = _tigercatcore.normalizeDate.call(void 0, /* @__PURE__ */ new Date());
335
- if (_tigercatcore.isDateInRange.call(void 0, today, minDateParsed.value, maxDateParsed.value)) {
336
- return _tigercatcore.formatDate.call(void 0, today, "yyyy-MM-dd");
337
- }
338
- return getFirstEnabledIsoInView();
339
- };
340
- const restoreFocus = () => {
341
- const target = _nullishCoalesce(restoreFocusEl.value, () => ( inputRef.value));
342
- if (!target) return;
343
- if (typeof target.focus === "function") {
344
- ;
345
- target.focus();
346
- }
347
- };
348
- const moveFocus = async (deltaDays) => {
349
- const activeEl = document.activeElement;
350
- const currentIso = _nullishCoalesce(_nullishCoalesce(_optionalChain([activeEl, 'optionalAccess', _9 => _9.getAttribute, 'call', _10 => _10("data-date")]), () => ( activeDateIso.value)), () => ( null));
351
- const baseIso = _nullishCoalesce(currentIso, () => ( getPreferredFocusIso()));
352
- if (!baseIso) return;
353
- const baseDate = _tigercatcore.parseDate.call(void 0, baseIso);
354
- if (!baseDate) return;
355
- let candidate = _tigercatcore.addDays.call(void 0, baseDate, deltaDays);
356
- for (let attempts = 0; attempts < 42; attempts++) {
357
- const iso = _tigercatcore.formatDate.call(void 0, candidate, "yyyy-MM-dd");
358
- const el = _optionalChain([calendarRef, 'access', _11 => _11.value, 'optionalAccess', _12 => _12.querySelector, 'call', _13 => _13(
359
- `button[data-date="${iso}"]`
360
- )]);
361
- if (el && !el.disabled) {
362
- el.focus();
363
- activeDateIso.value = iso;
364
- return;
365
- }
366
- if (!el) {
367
- pendingFocusIso.value = iso;
368
- viewingYear.value = candidate.getFullYear();
369
- viewingMonth.value = candidate.getMonth();
370
- activeDateIso.value = iso;
371
- await _vue.nextTick.call(void 0, );
372
- if (pendingFocusIso.value) {
373
- const nextIso = pendingFocusIso.value;
374
- pendingFocusIso.value = null;
375
- if (focusDateButtonByIso(nextIso)) return;
376
- }
377
- const fallback = getFirstEnabledIsoInView();
378
- if (fallback) focusDateButtonByIso(fallback);
379
- return;
380
- }
381
- candidate = _tigercatcore.addDays.call(void 0, candidate, deltaDays);
382
- }
383
- };
384
- const handleCalendarKeyDown = async (event) => {
385
- if (!isOpen.value) return;
386
- switch (event.key) {
387
- case "Escape": {
388
- event.preventDefault();
389
- closeCalendar();
390
- return;
391
- }
392
- case "ArrowRight": {
393
- event.preventDefault();
394
- await moveFocus(1);
395
- return;
396
- }
397
- case "ArrowLeft": {
398
- event.preventDefault();
399
- await moveFocus(-1);
400
- return;
401
- }
402
- case "ArrowDown": {
403
- event.preventDefault();
404
- await moveFocus(7);
405
- return;
406
- }
407
- case "ArrowUp": {
408
- event.preventDefault();
409
- await moveFocus(-7);
410
- return;
411
- }
412
- case "Enter":
413
- case " ": {
414
- const activeEl = document.activeElement;
415
- if (_optionalChain([activeEl, 'optionalAccess', _14 => _14.tagName]) === "BUTTON" && activeEl.dataset.date) {
416
- event.preventDefault();
417
- if (!activeEl.disabled) activeEl.click();
418
- }
419
- return;
420
- }
421
- }
422
- };
423
- function toggleCalendar() {
424
- if (!props.disabled && !props.readonly) {
425
- isOpen.value = !isOpen.value;
426
- if (isOpen.value) {
427
- restoreFocusEl.value = _nullishCoalesce(inputRef.value, () => ( null));
428
- const baseDate = _nullishCoalesce(selectedDate.value, () => ( selectedRange.value[0]));
429
- if (baseDate) {
430
- viewingMonth.value = baseDate.getMonth();
431
- viewingYear.value = baseDate.getFullYear();
432
- }
433
- }
434
- }
435
- }
436
- function closeCalendar() {
437
- isOpen.value = false;
438
- }
439
- function setToday() {
440
- selectDate(/* @__PURE__ */ new Date());
441
- }
442
- function handleShortcut(shortcut) {
443
- const val = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
444
- if (!isRangeMode.value) {
445
- const date = val instanceof Date ? _tigercatcore.normalizeDate.call(void 0, val) : val ? _tigercatcore.normalizeDate.call(void 0, _tigercatcore.parseDate.call(void 0, val)) : null;
446
- emitValue(date);
447
- } else {
448
- const range = val;
449
- if (range && Array.isArray(range)) {
450
- emitValue([
451
- range[0] ? _tigercatcore.normalizeDate.call(void 0, range[0] instanceof Date ? range[0] : _tigercatcore.parseDate.call(void 0, range[0])) : null,
452
- range[1] ? _tigercatcore.normalizeDate.call(void 0, range[1] instanceof Date ? range[1] : _tigercatcore.parseDate.call(void 0, range[1])) : null
453
- ]);
454
- }
455
- }
456
- closeCalendar();
457
- }
458
- function selectDate(date) {
459
- if (!date) return;
460
- const normalizedDate = _tigercatcore.normalizeDate.call(void 0, date);
461
- if (!_tigercatcore.isDateInRange.call(void 0, normalizedDate, minDateParsed.value, maxDateParsed.value)) {
462
- return;
463
- }
464
- if (!isRangeMode.value) {
465
- emitValue(normalizedDate);
466
- closeCalendar();
467
- return;
468
- }
469
- const [start, end] = selectedRange.value;
470
- if (!start || start && end) {
471
- emitValue([normalizedDate, null]);
472
- return;
473
- }
474
- emitValue([start, normalizedDate < start ? start : normalizedDate]);
475
- }
476
- function commitMobileDate(date) {
477
- const normalized = _tigercatcore.normalizeDate.call(void 0, date);
478
- if (!_tigercatcore.isDateInRange.call(void 0, normalized, minDateParsed.value, maxDateParsed.value)) return;
479
- viewingYear.value = normalized.getFullYear();
480
- viewingMonth.value = normalized.getMonth();
481
- if (!isRangeMode.value) {
482
- emitValue(normalized);
483
- return;
484
- }
485
- const [start, end] = selectedRange.value;
486
- if (activeRangePart.value === "start") {
487
- emitValue([normalized, end && end < normalized ? normalized : end]);
488
- activeRangePart.value = "end";
489
- return;
490
- }
491
- emitValue([_nullishCoalesce(start, () => ( normalized)), start && normalized < start ? start : normalized]);
492
- }
493
- function updateMobileDate(part, value) {
494
- const base = mobileDate.value;
495
- const nextYear = part === "year" ? value : base.getFullYear();
496
- const nextMonth2 = part === "month" ? value : base.getMonth();
497
- const maxDay = new Date(nextYear, nextMonth2 + 1, 0).getDate();
498
- const nextDay = Math.min(part === "day" ? value : base.getDate(), maxDay);
499
- commitMobileDate(new Date(nextYear, nextMonth2, nextDay));
500
- }
501
- function clearDate(event) {
502
- event.stopPropagation();
503
- emitValue(!isRangeMode.value ? null : [null, null]);
504
- emit("clear");
505
- }
506
- function stepViewingMonth(delta) {
507
- const next = _tigercatcore.addMonths.call(void 0, new Date(viewingYear.value, viewingMonth.value, 1), delta);
508
- viewingYear.value = next.getFullYear();
509
- viewingMonth.value = next.getMonth();
510
- }
511
- function previousMonth() {
512
- stepViewingMonth(-1);
513
- }
514
- function nextMonth() {
515
- stepViewingMonth(1);
516
- }
517
- function isDateDisabled(date) {
518
- if (!date) return true;
519
- return !_tigercatcore.isDateInRange.call(void 0, date, minDateParsed.value, maxDateParsed.value);
520
- }
521
- function isCurrentMonth(date) {
522
- if (!date) return false;
523
- return date.getMonth() === viewingMonth.value;
524
- }
525
- function handleClickOutside(event) {
526
- if (inputWrapperRef.value && !_optionalChain([calendarRef, 'access', _15 => _15.value, 'optionalAccess', _16 => _16.contains, 'call', _17 => _17(event.target)]) && !_optionalChain([mobileCalendarRef, 'access', _18 => _18.value, 'optionalAccess', _19 => _19.contains, 'call', _20 => _20(event.target)]) && !inputWrapperRef.value.contains(event.target)) {
527
- closeCalendar();
528
- }
529
- }
530
- function handleInputClick() {
531
- toggleCalendar();
532
- }
533
- _vue.watch.call(void 0, isOpen, (newValue) => {
534
- if (newValue) {
535
- document.addEventListener("click", handleClickOutside);
536
- const preferred = _nullishCoalesce(pendingFocusIso.value, () => ( getPreferredFocusIso()));
537
- pendingFocusIso.value = null;
538
- _vue.nextTick.call(void 0, ).then(() => {
539
- if (preferred && focusDateButtonByIso(preferred)) return;
540
- const fallback = getFirstEnabledIsoInView();
541
- if (fallback) focusDateButtonByIso(fallback);
542
- });
543
- } else {
544
- document.removeEventListener("click", handleClickOutside);
545
- _vue.nextTick.call(void 0, ).then(() => {
546
- restoreFocus();
547
- });
548
- }
549
- });
550
- _vue.onBeforeUnmount.call(void 0, () => {
551
- document.removeEventListener("click", handleClickOutside);
552
- });
553
- const rootClass = _vue.computed.call(void 0,
554
- () => _tigercatcore.classNames.call(void 0, _tigercatcore.datePickerBaseClasses, props.className, _tigercatcore.coerceClassValue.call(void 0, attrs.class))
555
- );
556
- const rootStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
557
- const forwardedAttrs = _vue.computed.call(void 0, () => {
558
- const { class: _class, style: _style, ...rest } = _nullishCoalesce(attrs, () => ( {}));
559
- return rest;
560
- });
561
- return () => {
562
- const inputClasses = _tigercatcore.getDatePickerInputClasses.call(void 0, props.size, props.disabled || props.readonly);
563
- const iconButtonClasses = _tigercatcore.getDatePickerIconButtonClasses.call(void 0, props.size);
564
- return _vue.h.call(void 0,
565
- "div",
566
- {
567
- ...forwardedAttrs.value,
568
- class: rootClass.value,
569
- style: rootStyle.value
570
- },
571
- [
572
- // Input wrapper
573
- _vue.h.call(void 0,
574
- "div",
575
- {
576
- ref: inputWrapperRef,
577
- class: _tigercatcore.datePickerInputWrapperClasses
578
- },
579
- [
580
- // Input field for date display
581
- _vue.h.call(void 0, "input", {
582
- ref: inputRef,
583
- type: "text",
584
- class: inputClasses,
585
- value: displayValue.value,
586
- placeholder: placeholderText.value,
587
- disabled: props.disabled,
588
- readonly: true,
589
- // Always readonly to prevent manual text input and ensure date selection via calendar only
590
- required: props.required,
591
- name: props.name,
592
- id: props.id,
593
- onClick: handleInputClick,
594
- "aria-label": placeholderText.value
595
- }),
596
- // Clear button
597
- showClearButton.value && _vue.h.call(void 0,
598
- "button",
599
- {
600
- type: "button",
601
- class: _tigercatcore.datePickerClearButtonClasses,
602
- onClick: clearDate,
603
- "aria-label": labels.value.clearDate
604
- },
605
- CloseIcon
606
- ),
607
- // Calendar icon button
608
- _vue.h.call(void 0,
609
- "button",
610
- {
611
- type: "button",
612
- class: iconButtonClasses,
613
- disabled: props.disabled || props.readonly,
614
- onClick: toggleCalendar,
615
- "aria-label": labels.value.toggleCalendar
616
- },
617
- CalendarIcon
618
- )
619
- ]
620
- ),
621
- // Calendar dropdown
622
- isOpen.value && _vue.h.call(void 0,
623
- "div",
624
- {
625
- ref: mobileCalendarRef,
626
- class: _tigercatcore.datePickerMobileWheelClasses,
627
- role: "group",
628
- "aria-label": labels.value.calendar
629
- },
630
- [
631
- isRangeMode.value ? _vue.h.call(void 0, "div", { class: "mb-3 flex items-center gap-2" }, [
632
- _vue.h.call(void 0,
633
- "button",
634
- {
635
- type: "button",
636
- class: _tigercatcore.datePickerFooterButtonClasses,
637
- "aria-selected": activeRangePart.value === "start",
638
- onClick: () => activeRangePart.value = "start"
639
- },
640
- "Start"
641
- ),
642
- _vue.h.call(void 0,
643
- "button",
644
- {
645
- type: "button",
646
- class: _tigercatcore.datePickerFooterButtonClasses,
647
- "aria-selected": activeRangePart.value === "end",
648
- onClick: () => activeRangePart.value = "end"
649
- },
650
- "End"
651
- )
652
- ]) : null,
653
- _vue.h.call(void 0, "div", { class: _tigercatcore.datePickerMobileWheelGridClasses }, [
654
- _vue.h.call(void 0,
655
- "select",
656
- {
657
- class: _tigercatcore.datePickerMobileWheelSelectClasses,
658
- value: mobileDate.value.getFullYear(),
659
- "aria-label": "Year",
660
- onChange: (event) => updateMobileDate("year", Number(event.target.value))
661
- },
662
- mobileYears.value.map((year) => _vue.h.call(void 0, "option", { value: year }, year))
663
- ),
664
- _vue.h.call(void 0,
665
- "select",
666
- {
667
- class: _tigercatcore.datePickerMobileWheelSelectClasses,
668
- value: mobileDate.value.getMonth(),
669
- "aria-label": "Month",
670
- onChange: (event) => updateMobileDate("month", Number(event.target.value))
671
- },
672
- Array.from(
673
- { length: 12 },
674
- (_, month) => _vue.h.call(void 0, "option", { value: month }, month + 1)
675
- )
676
- ),
677
- _vue.h.call(void 0,
678
- "select",
679
- {
680
- class: _tigercatcore.datePickerMobileWheelSelectClasses,
681
- value: mobileDate.value.getDate(),
682
- "aria-label": "Day",
683
- onChange: (event) => updateMobileDate("day", Number(event.target.value))
684
- },
685
- mobileDays.value.map((day) => _vue.h.call(void 0, "option", { value: day }, day))
686
- )
687
- ]),
688
- _vue.h.call(void 0, "div", { class: "mt-4 flex justify-end gap-2" }, [
689
- _vue.h.call(void 0,
690
- "button",
691
- {
692
- type: "button",
693
- class: _tigercatcore.datePickerFooterButtonClasses,
694
- "aria-label": `Mobile ${labels.value.ok}`,
695
- onClick: closeCalendar
696
- },
697
- labels.value.ok
698
- )
699
- ])
700
- ]
701
- ),
702
- isOpen.value && _vue.h.call(void 0,
703
- "div",
704
- {
705
- ref: calendarRef,
706
- class: _tigercatcore.datePickerCalendarClasses,
707
- role: "dialog",
708
- "aria-modal": "true",
709
- "aria-label": labels.value.calendar,
710
- onKeydown: handleCalendarKeyDown
711
- },
712
- [
713
- // Calendar header
714
- _vue.h.call(void 0, "div", { class: _tigercatcore.datePickerCalendarHeaderClasses }, [
715
- _vue.h.call(void 0,
716
- "button",
717
- {
718
- type: "button",
719
- class: _tigercatcore.datePickerNavButtonClasses,
720
- onClick: previousMonth,
721
- "aria-label": labels.value.previousMonth
722
- },
723
- previousMonthIcon.value
724
- ),
725
- _vue.h.call(void 0,
726
- "div",
727
- { class: _tigercatcore.datePickerMonthYearClasses },
728
- _tigercatcore.formatMonthYear.call(void 0, viewingYear.value, viewingMonth.value, localeCode.value)
729
- ),
730
- _vue.h.call(void 0,
731
- "button",
732
- {
733
- type: "button",
734
- class: _tigercatcore.datePickerNavButtonClasses,
735
- onClick: nextMonth,
736
- "aria-label": labels.value.nextMonth
737
- },
738
- nextMonthIcon.value
739
- )
740
- ]),
741
- // Day names header
742
- _vue.h.call(void 0, "div", { class: _tigercatcore.datePickerCalendarGridClasses, role: "row" }, [
743
- ...dayNames.value.map(
744
- (day) => _vue.h.call(void 0,
745
- "div",
746
- {
747
- class: _tigercatcore.datePickerDayNameClasses,
748
- key: day,
749
- role: "columnheader"
750
- },
751
- day
752
- )
753
- )
754
- ]),
755
- // Calendar grid
756
- (() => {
757
- return _vue.h.call(void 0,
758
- "div",
759
- {
760
- class: _tigercatcore.datePickerCalendarGridClasses,
761
- role: "grid",
762
- "aria-rowcount": 6,
763
- "aria-colcount": 7
764
- },
765
- [
766
- ...calendarDays.value.map((date, index) => {
767
- if (!date) return null;
768
- const cell = _tigercatcore.getDatePickerCalendarCellState.call(void 0, {
769
- date,
770
- selectedDate: selectedDate.value,
771
- selectedRange: selectedRange.value,
772
- isRangeMode: isRangeMode.value,
773
- isCurrentMonth,
774
- isDateDisabled
775
- });
776
- return _vue.h.call(void 0,
777
- "button",
778
- {
779
- key: index,
780
- type: "button",
781
- class: _tigercatcore.getDatePickerDayCellClasses.call(void 0,
782
- cell.isCurrentMonthDay,
783
- cell.isSelected,
784
- cell.isTodayDay,
785
- cell.isDisabled,
786
- cell.isInRange,
787
- cell.isRangeStart,
788
- cell.isRangeEnd
789
- ),
790
- disabled: cell.isDisabled,
791
- onClick: () => selectDate(date),
792
- role: "gridcell",
793
- "data-date": cell.iso,
794
- onFocus: () => {
795
- activeDateIso.value = cell.iso;
796
- },
797
- tabindex: activeDateIso.value === cell.iso && !cell.isDisabled ? 0 : -1,
798
- "aria-label": cell.iso,
799
- "aria-selected": cell.isSelected,
800
- "aria-current": cell.isTodayDay ? "date" : void 0
801
- },
802
- date.getDate()
803
- );
804
- })
805
- ]
806
- );
807
- })(),
808
- // Shortcuts panel
809
- _optionalChain([props, 'access', _21 => _21.shortcuts, 'optionalAccess', _22 => _22.length]) ? _vue.h.call(void 0,
810
- "div",
811
- {
812
- class: "flex flex-wrap gap-1 px-3 py-2 border-t border-[var(--tiger-border,#e5e7eb)]"
813
- },
814
- props.shortcuts.map(
815
- (sc) => _vue.h.call(void 0,
816
- "button",
817
- {
818
- type: "button",
819
- class: _tigercatcore.datePickerFooterButtonClasses,
820
- onClick: () => handleShortcut(sc)
821
- },
822
- sc.label
823
- )
824
- )
825
- ) : null,
826
- // Footer (range mode only)
827
- isRangeMode.value ? _vue.h.call(void 0, "div", { class: _tigercatcore.datePickerFooterClasses }, [
828
- _vue.h.call(void 0,
829
- "button",
830
- {
831
- type: "button",
832
- class: _tigercatcore.datePickerFooterButtonClasses,
833
- onClick: setToday
834
- },
835
- labels.value.today
836
- ),
837
- _vue.h.call(void 0,
838
- "button",
839
- {
840
- type: "button",
841
- class: _tigercatcore.datePickerFooterButtonClasses,
842
- onClick: closeCalendar
843
- },
844
- labels.value.ok
845
- )
846
- ]) : null
847
- ]
848
- )
849
- ]
850
- );
851
- };
852
- }
853
- });
854
- var DatePicker_default = DatePicker;
855
-
856
-
857
-
858
-
859
- exports.DatePicker = DatePicker; exports.DatePicker_default = DatePicker_default;