@expcat/tigercat-vue 1.0.7 → 1.2.0
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.
- package/README.md +1 -1
- package/dist/chunk-25EYT2CB.js +139 -0
- package/dist/chunk-27T3QDSF.js +61 -48
- package/dist/chunk-2BNQGU7E.mjs +22 -4
- package/dist/{chunk-WBY2ILFK.js → chunk-2C5TOAYI.js} +12 -9
- package/dist/{chunk-YFD6RD7P.mjs → chunk-2GQE47OY.mjs} +86 -19
- package/dist/chunk-2KDSHEZT.js +41 -28
- package/dist/chunk-2LNNB55E.js +222 -0
- package/dist/{chunk-EZ6GXQMP.mjs → chunk-2PFP44AI.mjs} +61 -30
- package/dist/chunk-2R5HISQA.mjs +16 -4
- package/dist/chunk-2S5CNU36.js +40 -31
- package/dist/chunk-2TNZ4JNT.mjs +14 -4
- package/dist/{chunk-5G5Q3TTH.js → chunk-2VBUCW5G.js} +116 -88
- package/dist/chunk-2VOZFFW6.js +138 -0
- package/dist/chunk-2WJADO6O.mjs +19 -4
- package/dist/{chunk-RB7KVVWE.mjs → chunk-2X3ZPH2H.mjs} +50 -31
- package/dist/chunk-2YFXJUBT.js +40 -25
- package/dist/chunk-2ZUEXCVJ.mjs +9 -4
- package/dist/{chunk-TDL4BUUB.js → chunk-33YTJPF7.js} +81 -53
- package/dist/{chunk-HXLCWM2J.mjs → chunk-3A7H2CTW.mjs} +183 -14
- package/dist/chunk-3G4VPV4D.mjs +20 -4
- package/dist/chunk-3MC45EXP.mjs +13 -4
- package/dist/chunk-3QV2D54H.js +55 -37
- package/dist/{chunk-QDNTISP7.mjs → chunk-3W4CM7KO.mjs} +31 -32
- package/dist/chunk-43BLH7DE.js +49 -37
- package/dist/chunk-44N7LE3Q.js +568 -0
- package/dist/chunk-46DEQQMB.mjs +11 -4
- package/dist/{chunk-243JSTYQ.mjs → chunk-4CWRNKPE.mjs} +36 -5
- package/dist/chunk-4DWOTV7J.js +369 -0
- package/dist/chunk-4K2CCBFT.mjs +30 -4
- package/dist/chunk-4OOR4524.js +910 -0
- package/dist/chunk-4YHOD7LT.mjs +13 -4
- package/dist/chunk-5436FG3B.js +136 -0
- package/dist/chunk-54VVFMYI.js +13 -14
- package/dist/chunk-57MJTNDL.js +25 -20
- package/dist/{chunk-JGUXQMYL.mjs → chunk-5D2UAWWP.mjs} +57 -8
- package/dist/chunk-5F6P5Y4K.js +115 -0
- package/dist/chunk-5JKQPOG2.js +133 -0
- package/dist/chunk-5PXTMXXS.js +27 -20
- package/dist/chunk-5UOAWXOQ.js +243 -0
- package/dist/{chunk-W5A4E4C7.js → chunk-5VSKQLK3.js} +216 -105
- package/dist/chunk-5WG4OFXH.mjs +133 -0
- package/dist/{chunk-LW3LFCRZ.mjs → chunk-5X3GXNGM.mjs} +83 -15
- package/dist/{chunk-PLGYRHPX.mjs → chunk-5ZAIW5W3.mjs} +9 -3
- package/dist/{chunk-3PQ2I5IQ.mjs → chunk-6DVWLGSZ.mjs} +43 -18
- package/dist/chunk-6FXYRDYH.js +30 -25
- package/dist/chunk-6HM77SWE.js +392 -0
- package/dist/chunk-6V7XCCXN.mjs +8 -4
- package/dist/chunk-7ADONGSB.js +49 -0
- package/dist/chunk-7LUATGJU.mjs +27 -4
- package/dist/{chunk-MADOTDW7.mjs → chunk-7PY6OQVE.mjs} +37 -30
- package/dist/chunk-7QX4QWWN.js +194 -0
- package/dist/{chunk-CU4M5ABS.mjs → chunk-7RIWAO2A.mjs} +55 -7
- package/dist/chunk-7SFB77JR.mjs +192 -0
- package/dist/chunk-7W3NALIL.mjs +165 -0
- package/dist/chunk-A5HHG53Z.js +135 -0
- package/dist/{chunk-Q57TYGO4.js → chunk-A5HRX7EG.js} +44 -27
- package/dist/chunk-A7FN3S4I.js +150 -0
- package/dist/{chunk-BKTQ6RWR.js → chunk-ACYYQJ6M.js} +20 -20
- package/dist/chunk-AGVXMB4Q.js +164 -0
- package/dist/{chunk-T52TU2RW.mjs → chunk-AXDBME5A.mjs} +43 -21
- package/dist/{chunk-D6AWPRGV.js → chunk-B2RH4CMG.js} +157 -36
- package/dist/chunk-B67RJSXR.mjs +142 -0
- package/dist/chunk-BEIPGX74.mjs +233 -0
- package/dist/chunk-BEIZXMHW.js +470 -0
- package/dist/{chunk-PBWSBNDS.js → chunk-BGMAWKWV.js} +208 -101
- package/dist/chunk-BGMQIUPP.js +409 -0
- package/dist/{chunk-564LMZQL.mjs → chunk-BMT5PGAQ.mjs} +40 -22
- package/dist/chunk-BPAN6T7H.mjs +16 -4
- package/dist/chunk-BYNMOQBB.js +54 -42
- package/dist/chunk-BZBVSB43.js +37 -28
- package/dist/{chunk-GMYSHJCU.mjs → chunk-C7VGTRHE.mjs} +31 -10
- package/dist/chunk-CBECE4ZO.mjs +373 -0
- package/dist/chunk-CKXZONMO.js +18 -14
- package/dist/{chunk-J7VTGSHX.mjs → chunk-CN7HFUFN.mjs} +97 -189
- package/dist/chunk-COCECPMG.mjs +17 -4
- package/dist/chunk-CPV7INZ4.mjs +10 -4
- package/dist/{chunk-2SK6T4WB.js → chunk-CSJQKBDJ.js} +90 -45
- package/dist/chunk-CWNEDREV.js +165 -0
- package/dist/chunk-CWQOEU6G.js +373 -0
- package/dist/{chunk-Z2NMFYF4.mjs → chunk-CZALMJH3.mjs} +31 -9
- package/dist/chunk-D3U2NJ32.mjs +154 -0
- package/dist/{chunk-YYZBVHVC.mjs → chunk-D74XCQCK.mjs} +78 -12
- package/dist/{chunk-6A57RY3H.mjs → chunk-DBTS5QBX.mjs} +15 -5
- package/dist/{chunk-M6PEW6V5.mjs → chunk-DDNRF5U7.mjs} +96 -20
- package/dist/{chunk-46XPSPG4.js → chunk-DE5WMG6P.js} +69 -53
- package/dist/{chunk-T77L326M.mjs → chunk-DEJKRMMU.mjs} +81 -6
- package/dist/{chunk-XYYZAQ6Z.mjs → chunk-DIQGHFAT.mjs} +8 -6
- package/dist/{chunk-S276SM7L.mjs → chunk-DMV26JNR.mjs} +44 -29
- package/dist/{chunk-7DGAOCPX.mjs → chunk-DQFTTJJ5.mjs} +209 -134
- package/dist/{chunk-EJCHNSVG.mjs → chunk-DTUTHYQY.mjs} +10 -7
- package/dist/chunk-DUQ7Q2GO.js +10 -9
- package/dist/chunk-DYSLYJ2W.js +29 -25
- package/dist/chunk-DZXZ3YEL.js +137 -0
- package/dist/chunk-E2GQSWHK.mjs +14 -4
- package/dist/{chunk-LRHJZP2C.mjs → chunk-E6RGBYI3.mjs} +138 -32
- package/dist/chunk-EJNPSYTS.js +44 -0
- package/dist/{chunk-TW64ZNZY.mjs → chunk-EKWJTB5H.mjs} +92 -10
- package/dist/chunk-EL2224DN.js +291 -0
- package/dist/chunk-EQDCFOWR.mjs +243 -0
- package/dist/chunk-ETTYERGO.js +23 -17
- package/dist/chunk-EZXW4HIZ.mjs +19 -4
- package/dist/{chunk-4BMFV4CH.mjs → chunk-F7G7K3TF.mjs} +79 -86
- package/dist/{chunk-S2PMAXBQ.js → chunk-FAYSOSR7.js} +127 -59
- package/dist/chunk-FC7RXQTM.js +30 -20
- package/dist/{chunk-WB6JGQWN.js → chunk-FE2HR4E5.js} +68 -48
- package/dist/chunk-FIV4PKWT.js +26 -20
- package/dist/{chunk-I5K3R4FN.mjs → chunk-FMH4CLSA.mjs} +37 -5
- package/dist/chunk-FP7SBCPO.js +253 -0
- package/dist/chunk-FQWEOBQ4.mjs +231 -0
- package/dist/{chunk-SEKYX56R.js → chunk-FRI62O2J.js} +104 -69
- package/dist/chunk-FUGSQXFR.js +65 -42
- package/dist/{chunk-VITTXNTD.js → chunk-FUI6WG2F.js} +248 -110
- package/dist/chunk-FXS5GHQZ.js +388 -0
- package/dist/{chunk-MKLJ2LJW.mjs → chunk-G36MH6G4.mjs} +57 -19
- package/dist/chunk-G3SWTL27.js +45 -29
- package/dist/{chunk-LFV3KYO2.js → chunk-GDKYQ7U6.js} +94 -75
- package/dist/{chunk-U2K7CF67.js → chunk-GIQQOHDA.js} +60 -64
- package/dist/{chunk-D2I2NNYI.js → chunk-GL6KRUVO.js} +71 -49
- package/dist/chunk-GOBWUEHV.js +197 -0
- package/dist/{chunk-665NGSV3.mjs → chunk-GQAVLQEZ.mjs} +19 -12
- package/dist/chunk-GQPSQJ5I.mjs +6 -4
- package/dist/{chunk-IOBJYUUO.mjs → chunk-GVZRR2WP.mjs} +49 -29
- package/dist/chunk-H4F4G2E4.mjs +84 -0
- package/dist/chunk-HBFFINAI.js +13 -11
- package/dist/chunk-HKRMZODL.mjs +246 -0
- package/dist/chunk-HVVPFQW2.mjs +19 -4
- package/dist/chunk-I4LQXUMW.js +13 -14
- package/dist/chunk-IGSAOYXD.mjs +11 -4
- package/dist/{chunk-MYFQ3B2D.mjs → chunk-IKEZDGRO.mjs} +48 -14
- package/dist/chunk-IZF4VHJ2.mjs +23 -4
- package/dist/{chunk-TG4PXQKX.mjs → chunk-J73M5UTG.mjs} +101 -8
- package/dist/{chunk-4DJ2HAYO.js → chunk-JAAIL4XS.js} +24 -16
- package/dist/chunk-JCMGBKS6.js +23 -17
- package/dist/chunk-JDCVS4SJ.js +162 -0
- package/dist/{chunk-BFS7XO3E.js → chunk-JFIVDZFK.js} +85 -67
- package/dist/{chunk-6XU5PSC2.js → chunk-JKEF7NB3.js} +94 -46
- package/dist/chunk-JKZ5ZRDG.js +136 -0
- package/dist/{chunk-P4X7GS2X.mjs → chunk-JL526HSV.mjs} +66 -17
- package/dist/{chunk-CODQKVQV.js → chunk-K2DJDJZR.js} +25 -22
- package/dist/{chunk-MX2KCWM2.js → chunk-K3CIXMN4.js} +65 -46
- package/dist/{chunk-5XF5IAUD.mjs → chunk-K5ZZZ4TL.mjs} +112 -52
- package/dist/{chunk-2J54DRDA.js → chunk-KA7DILCI.js} +208 -99
- package/dist/chunk-KDA4XDXT.js +67 -0
- package/dist/chunk-KOTSKHPQ.mjs +19 -4
- package/dist/{chunk-4L5UYIV6.mjs → chunk-KU2Q5V3L.mjs} +54 -8
- package/dist/{chunk-UWL2XUAH.mjs → chunk-KVJIJJ4M.mjs} +116 -8
- package/dist/chunk-KY3O3FWK.mjs +367 -0
- package/dist/{chunk-YH7N5GZF.mjs → chunk-KZP3B3FQ.mjs} +41 -20
- package/dist/chunk-LBGTABIU.mjs +20 -4
- package/dist/chunk-LDDGBB3V.mjs +910 -0
- package/dist/{chunk-WNF7XUX4.mjs → chunk-LFKY2QRD.mjs} +140 -15
- package/dist/chunk-LG6KGO5D.js +161 -0
- package/dist/{chunk-LV3BMS4U.mjs → chunk-LILAZ4UJ.mjs} +146 -37
- package/dist/{chunk-EXQSRZJX.mjs → chunk-LL4ASJ4O.mjs} +39 -18
- package/dist/chunk-LWDA7ABQ.js +121 -0
- package/dist/{chunk-5NOZXKMU.js → chunk-M2XA7VU5.js} +107 -75
- package/dist/{chunk-2SCIJ2RW.mjs → chunk-M3G6LJKZ.mjs} +14 -5
- package/dist/{chunk-FK2XBMC3.mjs → chunk-M5PGWW25.mjs} +158 -17
- package/dist/chunk-M7EBWJZ5.mjs +9 -4
- package/dist/{chunk-ECUROLZ7.js → chunk-MFYBHMQL.js} +277 -205
- package/dist/chunk-MHNCH2YI.js +231 -0
- package/dist/chunk-MI6TL3CQ.mjs +12 -4
- package/dist/chunk-MKBIVETW.mjs +12 -4
- package/dist/chunk-MNH3KNSN.js +49 -37
- package/dist/chunk-MQ23PX3S.js +218 -0
- package/dist/chunk-MSKAWM7K.js +73 -0
- package/dist/{chunk-JN63Z5E5.js → chunk-MUJLT2YG.js} +224 -119
- package/dist/{chunk-LAAPLTP3.js → chunk-NCFY3VXA.js} +14 -15
- package/dist/{chunk-NVJRZYES.mjs → chunk-NDS2DLUS.mjs} +79 -14
- package/dist/{chunk-W2WGLETE.mjs → chunk-NHBN6VAY.mjs} +98 -37
- package/dist/chunk-NMVKDWMK.mjs +1324 -0
- package/dist/{chunk-WLKOJFOC.mjs → chunk-NNNG6NIA.mjs} +25 -5
- package/dist/chunk-NOZ65AMO.js +32 -22
- package/dist/{chunk-TYFUO6PE.mjs → chunk-NWS45JQP.mjs} +139 -25
- package/dist/{chunk-NHCCPMLC.mjs → chunk-NZUQ2KCW.mjs} +103 -20
- package/dist/{chunk-LGVPLGK3.mjs → chunk-OCL22D5E.mjs} +49 -34
- package/dist/chunk-ODQOYMUQ.js +72 -0
- package/dist/{chunk-FXGIIFGN.mjs → chunk-OK4PVFQG.mjs} +12 -10
- package/dist/{chunk-UNR5RUET.mjs → chunk-OKR3GRG5.mjs} +137 -25
- package/dist/chunk-OW5D4LU6.js +1324 -0
- package/dist/chunk-OXIODAJS.js +192 -0
- package/dist/{chunk-4Y2SJZB5.js → chunk-P7RXZVLT.js} +78 -62
- package/dist/chunk-PCJHGWTU.js +269 -0
- package/dist/{chunk-Q6OYCTQO.mjs → chunk-PCUUTKQZ.mjs} +43 -4
- package/dist/{chunk-RSBAFDUA.mjs → chunk-PENI3H3I.mjs} +39 -13
- package/dist/chunk-PQMZ3YN3.js +37 -25
- package/dist/{chunk-BQEVLY2O.mjs → chunk-PUSTYAMS.mjs} +166 -22
- package/dist/chunk-PVPLDEC5.mjs +6 -4
- package/dist/chunk-PXRF4IJO.mjs +17 -4
- package/dist/chunk-PY6P4N2Q.js +393 -0
- package/dist/{chunk-QNODDATK.mjs → chunk-PYT5DTQQ.mjs} +149 -39
- package/dist/{chunk-XNORTTVQ.mjs → chunk-PZH2RTSS.mjs} +92 -3
- package/dist/chunk-Q4MH333P.js +18 -16
- package/dist/{chunk-AGAJJYP2.js → chunk-QO2JYX6Q.js} +142 -62
- package/dist/chunk-QRAV345L.js +88 -0
- package/dist/{chunk-THEYWGOT.js → chunk-QUIRQ7OA.js} +127 -65
- package/dist/chunk-QY6PYAJA.js +73 -53
- package/dist/chunk-QYSFZA5V.js +353 -0
- package/dist/chunk-QZ5OPNL4.mjs +88 -0
- package/dist/{chunk-DU2NXX75.mjs → chunk-R2HO74FE.mjs} +19 -5
- package/dist/chunk-RDJZOMI6.js +84 -0
- package/dist/{chunk-GTSS7RAT.mjs → chunk-RFFPMC22.mjs} +149 -10
- package/dist/{chunk-3ICMBQPM.mjs → chunk-RHAIJVMW.mjs} +86 -14
- package/dist/chunk-RKZN3URO.js +181 -0
- package/dist/chunk-RY2I56HB.js +36 -24
- package/dist/{chunk-GA5S2KNZ.js → chunk-S6K6IR3Y.js} +225 -119
- package/dist/{chunk-AAO2B46J.js → chunk-S6Q7TD6H.js} +153 -67
- package/dist/{chunk-FDYZ7NTQ.mjs → chunk-SC3WTLKG.mjs} +94 -24
- package/dist/{chunk-YYRJA6VQ.mjs → chunk-SCRSO3ES.mjs} +61 -22
- package/dist/chunk-SCSGLSPY.mjs +393 -0
- package/dist/{chunk-HSXB2ASL.mjs → chunk-SEDENBOO.mjs} +125 -16
- package/dist/chunk-SGRUGYQ6.mjs +568 -0
- package/dist/chunk-SLYUQ67P.js +39 -30
- package/dist/{chunk-35VYCSVH.js → chunk-SVWZOIBI.js} +101 -70
- package/dist/chunk-SWOQMMOT.js +18 -14
- package/dist/chunk-T4DF24UV.js +26 -20
- package/dist/{chunk-RQREJGY3.js → chunk-TAU447CL.js} +53 -34
- package/dist/{chunk-OXOCGMPN.mjs → chunk-TGIXSJI3.mjs} +39 -5
- package/dist/chunk-TLXEFLPA.js +13 -14
- package/dist/chunk-TOE2XSEO.js +119 -0
- package/dist/{chunk-SAMKKXAW.mjs → chunk-TOOENSVT.mjs} +15 -4
- package/dist/{chunk-DBPY5M7Y.mjs → chunk-TSF5O3MA.mjs} +25 -6
- package/dist/chunk-U36NBQWP.js +192 -0
- package/dist/{chunk-HFCVHAQ6.mjs → chunk-UAD2XROX.mjs} +47 -12
- package/dist/{chunk-URYEEQD7.mjs → chunk-UANF7XE5.mjs} +41 -14
- package/dist/chunk-UHVUKLHF.js +112 -0
- package/dist/chunk-UI7N2ZDU.js +142 -0
- package/dist/chunk-ULUH6UNV.js +238 -0
- package/dist/{chunk-M7JUNLA7.mjs → chunk-UM5GGKIX.mjs} +34 -20
- package/dist/{chunk-ABPOLQLE.mjs → chunk-UMQUWX7U.mjs} +37 -15
- package/dist/{chunk-ZA2PLF7O.mjs → chunk-UNTTADHL.mjs} +19 -6
- package/dist/chunk-UQK22ZMC.mjs +19 -4
- package/dist/{chunk-HK2TAPQX.js → chunk-UUJ7A3CN.js} +126 -61
- package/dist/{chunk-KFE7T7CN.js → chunk-V32X2OEO.js} +64 -34
- package/dist/chunk-VAXO5NEM.js +320 -0
- package/dist/chunk-VG6E4NX6.mjs +139 -0
- package/dist/chunk-VIIGYWUY.mjs +13 -4
- package/dist/chunk-VJ6YM2EW.mjs +192 -0
- package/dist/chunk-VL7GENWD.mjs +6 -4
- package/dist/chunk-VPNIZPIF.js +356 -0
- package/dist/{chunk-F5HOHSFH.mjs → chunk-VVS2CQS4.mjs} +10 -7
- package/dist/chunk-VXULMOIW.js +374 -0
- package/dist/{chunk-BUTNEKFD.js → chunk-W55GCQ2D.js} +73 -56
- package/dist/chunk-W5RZPTFD.mjs +112 -0
- package/dist/{chunk-NAHD6ZRR.mjs → chunk-W6ZFHHD3.mjs} +23 -16
- package/dist/{chunk-DVFDA2P2.mjs → chunk-WE4DGU2T.mjs} +14 -7
- package/dist/chunk-WFISP42H.mjs +17 -4
- package/dist/chunk-WGNJHM34.js +230 -0
- package/dist/chunk-WM4ESIHG.mjs +13 -4
- package/dist/chunk-WPIDP6IG.js +35 -25
- package/dist/chunk-WQXZ3234.mjs +19 -4
- package/dist/{chunk-K2U3FEL7.js → chunk-WUEP3PFN.js} +133 -61
- package/dist/chunk-X5CFXNVK.js +246 -0
- package/dist/chunk-X6FG4RPF.js +367 -0
- package/dist/chunk-XGXGAK27.js +40 -28
- package/dist/chunk-XH4ZZ6KJ.js +427 -0
- package/dist/chunk-XJXGVNNF.js +120 -0
- package/dist/chunk-XSMDZOBF.js +154 -0
- package/dist/chunk-XTMGF5YP.js +27 -21
- package/dist/chunk-XUOGT4HG.js +76 -0
- package/dist/{chunk-QK3KKTYV.js → chunk-XY4A73TK.js} +23 -25
- package/dist/chunk-XZMU7B54.js +230 -0
- package/dist/{chunk-KYQAAQKV.mjs → chunk-Y3BQSELH.mjs} +62 -11
- package/dist/chunk-Y4V7BOVR.mjs +18 -4
- package/dist/chunk-YEHKQ3JZ.mjs +13 -4
- package/dist/{chunk-JM3ZZYTE.mjs → chunk-YSUT2GRP.mjs} +62 -13
- package/dist/chunk-YZP4K6KI.mjs +25 -4
- package/dist/{chunk-W3Y22PMU.mjs → chunk-Z2ZECCGD.mjs} +9 -8
- package/dist/{chunk-AGQNHT65.mjs → chunk-Z4SG7REU.mjs} +64 -6
- package/dist/{chunk-NMGH5YTV.mjs → chunk-Z7ETXBOL.mjs} +31 -8
- package/dist/chunk-ZED7TU62.js +22 -16
- package/dist/chunk-ZIOGRGN5.mjs +120 -0
- package/dist/chunk-ZMGNQKXL.js +233 -0
- package/dist/{chunk-I2B4CO22.mjs → chunk-ZMNX4SCS.mjs} +14 -13
- package/dist/chunk-ZNVQ2OFX.js +13 -11
- package/dist/{chunk-EPE6OOV7.js → chunk-ZOUJFFG4.js} +21 -22
- package/dist/{chunk-U5ABMOOV.js → chunk-ZSCOAOJJ.js} +106 -94
- package/dist/{chunk-OMYSFPX6.mjs → chunk-ZSQ5I2KL.mjs} +54 -33
- package/dist/chunk-ZUPVK5L7.js +838 -0
- package/dist/chunk-ZWVA7HT3.mjs +14 -4
- package/dist/components/ActivityFeed.d.mts +3 -3
- package/dist/components/ActivityFeed.d.ts +3 -3
- package/dist/components/ActivityFeed.js +5 -13
- package/dist/components/ActivityFeed.mjs +16 -9
- package/dist/components/Affix.d.mts +1 -1
- package/dist/components/Affix.d.ts +1 -1
- package/dist/components/Affix.js +3 -12
- package/dist/components/Affix.mjs +8 -2
- package/dist/components/Alert.d.mts +3 -3
- package/dist/components/Alert.d.ts +3 -3
- package/dist/components/Alert.js +3 -12
- package/dist/components/Alert.mjs +9 -3
- package/dist/components/Anchor.d.mts +74 -9
- package/dist/components/Anchor.d.ts +74 -9
- package/dist/components/Anchor.js +7 -16
- package/dist/components/Anchor.mjs +12 -2
- package/dist/components/AnchorLink.d.mts +6 -67
- package/dist/components/AnchorLink.d.ts +6 -67
- package/dist/components/AnchorLink.js +5 -13
- package/dist/components/AnchorLink.mjs +10 -3
- package/dist/components/AreaChart.d.mts +21 -3
- package/dist/components/AreaChart.d.ts +21 -3
- package/dist/components/AreaChart.js +7 -16
- package/dist/components/AreaChart.mjs +15 -9
- package/dist/components/AutoComplete.d.mts +1 -1
- package/dist/components/AutoComplete.d.ts +1 -1
- package/dist/components/AutoComplete.js +3 -12
- package/dist/components/AutoComplete.mjs +8 -2
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +3 -12
- package/dist/components/Avatar.mjs +8 -2
- package/dist/components/AvatarGroup.js +5 -16
- package/dist/components/AvatarGroup.mjs +10 -2
- package/dist/components/BackTop.d.mts +3 -3
- package/dist/components/BackTop.d.ts +3 -3
- package/dist/components/BackTop.js +3 -12
- package/dist/components/BackTop.mjs +8 -2
- package/dist/components/Badge.d.mts +2 -2
- package/dist/components/Badge.d.ts +2 -2
- package/dist/components/Badge.js +3 -12
- package/dist/components/Badge.mjs +8 -2
- package/dist/components/BarChart.d.mts +1 -1
- package/dist/components/BarChart.d.ts +1 -1
- package/dist/components/BarChart.js +7 -16
- package/dist/components/BarChart.mjs +15 -9
- package/dist/components/Breadcrumb.d.mts +135 -4
- package/dist/components/Breadcrumb.d.ts +135 -4
- package/dist/components/Breadcrumb.js +7 -16
- package/dist/components/Breadcrumb.mjs +12 -2
- package/dist/components/BreadcrumbItem.d.mts +6 -135
- package/dist/components/BreadcrumbItem.d.ts +6 -135
- package/dist/components/BreadcrumbItem.js +5 -13
- package/dist/components/BreadcrumbItem.mjs +10 -3
- package/dist/components/Button.d.mts +2 -2
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +3 -12
- package/dist/components/Button.mjs +8 -2
- package/dist/components/ButtonGroup.js +5 -16
- package/dist/components/ButtonGroup.mjs +10 -2
- package/dist/components/Calendar.js +3 -12
- package/dist/components/Calendar.mjs +8 -2
- package/dist/components/Card.d.mts +3 -3
- package/dist/components/Card.d.ts +3 -3
- package/dist/components/Card.js +3 -12
- package/dist/components/Card.mjs +8 -2
- package/dist/components/Carousel.d.mts +2 -2
- package/dist/components/Carousel.d.ts +2 -2
- package/dist/components/Carousel.js +3 -12
- package/dist/components/Carousel.mjs +8 -2
- package/dist/components/Cascader.d.mts +1 -1
- package/dist/components/Cascader.d.ts +1 -1
- package/dist/components/Cascader.js +3 -12
- package/dist/components/Cascader.mjs +8 -2
- package/dist/components/ChartAxis.js +3 -12
- package/dist/components/ChartAxis.mjs +8 -2
- package/dist/components/ChartCanvas.d.mts +9 -0
- package/dist/components/ChartCanvas.d.ts +9 -0
- package/dist/components/ChartCanvas.js +3 -12
- package/dist/components/ChartCanvas.mjs +8 -2
- package/dist/components/ChartGrid.d.mts +1 -1
- package/dist/components/ChartGrid.d.ts +1 -1
- package/dist/components/ChartGrid.js +3 -12
- package/dist/components/ChartGrid.mjs +8 -2
- package/dist/components/ChartLegend.js +3 -12
- package/dist/components/ChartLegend.mjs +8 -2
- package/dist/components/ChartSeries.js +3 -12
- package/dist/components/ChartSeries.mjs +8 -2
- package/dist/components/ChartTooltip.js +3 -12
- package/dist/components/ChartTooltip.mjs +8 -2
- package/dist/components/ChatWindow.d.mts +37 -1
- package/dist/components/ChatWindow.d.ts +37 -1
- package/dist/components/ChatWindow.js +5 -13
- package/dist/components/ChatWindow.mjs +13 -6
- package/dist/components/Checkbox.js +3 -12
- package/dist/components/Checkbox.mjs +9 -3
- package/dist/components/CheckboxGroup.d.mts +1 -1
- package/dist/components/CheckboxGroup.d.ts +1 -1
- package/dist/components/CheckboxGroup.js +5 -16
- package/dist/components/CheckboxGroup.mjs +10 -2
- package/dist/components/Code.d.mts +1 -1
- package/dist/components/Code.d.ts +1 -1
- package/dist/components/Code.js +3 -12
- package/dist/components/Code.mjs +8 -2
- package/dist/components/CodeEditor.d.mts +18 -2
- package/dist/components/CodeEditor.d.ts +18 -2
- package/dist/components/CodeEditor.js +3 -12
- package/dist/components/CodeEditor.mjs +8 -2
- package/dist/components/Col.js +4 -9
- package/dist/components/Col.mjs +7 -3
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/Collapse.js +5 -16
- package/dist/components/Collapse.mjs +10 -2
- package/dist/components/CollapsePanel.d.mts +2 -2
- package/dist/components/CollapsePanel.d.ts +2 -2
- package/dist/components/CollapsePanel.js +4 -13
- package/dist/components/CollapsePanel.mjs +9 -3
- package/dist/components/ColorPicker.d.mts +1 -1
- package/dist/components/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker.js +3 -12
- package/dist/components/ColorPicker.mjs +8 -2
- package/dist/components/ColorSwatch.d.mts +79 -0
- package/dist/components/ColorSwatch.d.ts +79 -0
- package/dist/components/ColorSwatch.js +8 -0
- package/dist/components/ColorSwatch.mjs +8 -0
- package/dist/components/CommentThread.d.mts +2 -2
- package/dist/components/CommentThread.d.ts +2 -2
- package/dist/components/CommentThread.js +4 -13
- package/dist/components/CommentThread.mjs +13 -7
- package/dist/components/ConfigProvider.d.mts +38 -8
- package/dist/components/ConfigProvider.d.ts +38 -8
- package/dist/components/ConfigProvider.js +14 -25
- package/dist/components/ConfigProvider.mjs +14 -2
- package/dist/components/Container.d.mts +8 -2
- package/dist/components/Container.d.ts +8 -2
- package/dist/components/Container.js +3 -12
- package/dist/components/Container.mjs +8 -2
- package/dist/components/Content.d.mts +1 -1
- package/dist/components/Content.d.ts +1 -1
- package/dist/components/Content.js +3 -12
- package/dist/components/Content.mjs +8 -2
- package/dist/components/Countdown.d.mts +107 -0
- package/dist/components/Countdown.d.ts +107 -0
- package/dist/components/Countdown.js +8 -0
- package/dist/components/Countdown.mjs +8 -0
- package/dist/components/CronEditor.d.mts +80 -0
- package/dist/components/CronEditor.d.ts +80 -0
- package/dist/components/CronEditor.js +8 -0
- package/dist/components/CronEditor.mjs +8 -0
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/CropUpload.d.ts +1 -1
- package/dist/components/CropUpload.js +7 -15
- package/dist/components/CropUpload.mjs +12 -5
- package/dist/components/DataTableWithToolbar.d.mts +9 -9
- package/dist/components/DataTableWithToolbar.d.ts +9 -9
- package/dist/components/DataTableWithToolbar.js +6 -16
- package/dist/components/DataTableWithToolbar.mjs +12 -7
- package/dist/components/DatePicker.d.mts +8 -8
- package/dist/components/DatePicker.d.ts +8 -8
- package/dist/components/DatePicker.js +3 -12
- package/dist/components/DatePicker.mjs +9 -3
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/Descriptions.d.ts +2 -2
- package/dist/components/Descriptions.js +3 -12
- package/dist/components/Descriptions.mjs +8 -2
- package/dist/components/Divider.d.mts +8 -1
- package/dist/components/Divider.d.ts +8 -1
- package/dist/components/Divider.js +3 -12
- package/dist/components/Divider.mjs +8 -2
- package/dist/components/DonutChart.d.mts +11 -2
- package/dist/components/DonutChart.d.ts +11 -2
- package/dist/components/DonutChart.js +8 -17
- package/dist/components/DonutChart.mjs +14 -8
- package/dist/components/Drawer.d.mts +6 -8
- package/dist/components/Drawer.d.ts +6 -8
- package/dist/components/Drawer.js +4 -13
- package/dist/components/Drawer.mjs +9 -3
- package/dist/components/Dropdown.d.mts +36 -4
- package/dist/components/Dropdown.d.ts +36 -4
- package/dist/components/Dropdown.js +8 -18
- package/dist/components/Dropdown.mjs +13 -4
- package/dist/components/DropdownItem.d.mts +1 -1
- package/dist/components/DropdownItem.d.ts +1 -1
- package/dist/components/DropdownItem.js +5 -15
- package/dist/components/DropdownItem.mjs +10 -5
- package/dist/components/DropdownMenu.d.mts +6 -36
- package/dist/components/DropdownMenu.d.ts +6 -36
- package/dist/components/DropdownMenu.js +6 -12
- package/dist/components/DropdownMenu.mjs +11 -2
- package/dist/components/Empty.d.mts +1 -1
- package/dist/components/Empty.d.ts +1 -1
- package/dist/components/Empty.js +3 -12
- package/dist/components/Empty.mjs +8 -2
- package/dist/components/FileManager.d.mts +1 -1
- package/dist/components/FileManager.d.ts +1 -1
- package/dist/components/FileManager.js +3 -12
- package/dist/components/FileManager.mjs +8 -2
- package/dist/components/FloatButton.d.mts +4 -4
- package/dist/components/FloatButton.d.ts +4 -4
- package/dist/components/FloatButton.js +5 -16
- package/dist/components/FloatButton.mjs +10 -2
- package/dist/components/Footer.d.mts +1 -1
- package/dist/components/Footer.d.ts +1 -1
- package/dist/components/Footer.js +3 -12
- package/dist/components/Footer.mjs +8 -2
- package/dist/components/Form.d.mts +41 -3
- package/dist/components/Form.d.ts +41 -3
- package/dist/components/Form.js +5 -16
- package/dist/components/Form.mjs +10 -2
- package/dist/components/FormItem.d.mts +24 -3
- package/dist/components/FormItem.d.ts +24 -3
- package/dist/components/FormItem.js +4 -13
- package/dist/components/FormItem.mjs +9 -3
- package/dist/components/FormWizard.d.mts +6 -6
- package/dist/components/FormWizard.d.ts +6 -6
- package/dist/components/FormWizard.js +6 -16
- package/dist/components/FormWizard.mjs +11 -6
- package/dist/components/FunnelChart.d.mts +10 -1
- package/dist/components/FunnelChart.d.ts +10 -1
- package/dist/components/FunnelChart.js +7 -16
- package/dist/components/FunnelChart.mjs +13 -7
- package/dist/components/Gantt.d.mts +231 -0
- package/dist/components/Gantt.d.ts +231 -0
- package/dist/components/Gantt.js +9 -0
- package/dist/components/Gantt.mjs +9 -0
- package/dist/components/GaugeChart.d.mts +10 -1
- package/dist/components/GaugeChart.d.ts +10 -1
- package/dist/components/GaugeChart.js +4 -13
- package/dist/components/GaugeChart.mjs +9 -3
- package/dist/components/Header.d.mts +1 -1
- package/dist/components/Header.d.ts +1 -1
- package/dist/components/Header.js +3 -12
- package/dist/components/Header.mjs +8 -2
- package/dist/components/HeatmapChart.d.mts +24 -0
- package/dist/components/HeatmapChart.d.ts +24 -0
- package/dist/components/HeatmapChart.js +6 -15
- package/dist/components/HeatmapChart.mjs +11 -5
- package/dist/components/Icon.js +3 -12
- package/dist/components/Icon.mjs +8 -2
- package/dist/components/Image.d.mts +2 -3
- package/dist/components/Image.d.ts +2 -3
- package/dist/components/Image.js +6 -17
- package/dist/components/Image.mjs +11 -3
- package/dist/components/ImageAnnotation.d.mts +179 -0
- package/dist/components/ImageAnnotation.d.ts +179 -0
- package/dist/components/ImageAnnotation.js +8 -0
- package/dist/components/ImageAnnotation.mjs +8 -0
- package/dist/components/ImageCropper.d.mts +2 -2
- package/dist/components/ImageCropper.d.ts +2 -2
- package/dist/components/ImageCropper.js +3 -12
- package/dist/components/ImageCropper.mjs +8 -2
- package/dist/components/ImageGroup.js +6 -17
- package/dist/components/ImageGroup.mjs +11 -3
- package/dist/components/ImagePreview.d.mts +2 -2
- package/dist/components/ImagePreview.d.ts +2 -2
- package/dist/components/ImagePreview.js +4 -13
- package/dist/components/ImagePreview.mjs +8 -5
- package/dist/components/ImageViewer.js +3 -12
- package/dist/components/ImageViewer.mjs +8 -2
- package/dist/components/InfiniteScroll.d.mts +2 -2
- package/dist/components/InfiniteScroll.d.ts +2 -2
- package/dist/components/InfiniteScroll.js +3 -12
- package/dist/components/InfiniteScroll.mjs +8 -2
- package/dist/components/Input.d.mts +2 -2
- package/dist/components/Input.d.ts +2 -2
- package/dist/components/Input.js +3 -12
- package/dist/components/Input.mjs +8 -2
- package/dist/components/InputGroup.js +12 -25
- package/dist/components/InputGroup.mjs +12 -2
- package/dist/components/InputNumber.d.mts +3 -3
- package/dist/components/InputNumber.d.ts +3 -3
- package/dist/components/InputNumber.js +3 -12
- package/dist/components/InputNumber.mjs +8 -2
- package/dist/components/Kanban.d.mts +1 -1
- package/dist/components/Kanban.d.ts +1 -1
- package/dist/components/Kanban.js +5 -14
- package/dist/components/Kanban.mjs +10 -4
- package/dist/components/Layout.d.mts +1 -1
- package/dist/components/Layout.d.ts +1 -1
- package/dist/components/Layout.js +3 -12
- package/dist/components/Layout.mjs +8 -2
- package/dist/components/LineChart.d.mts +19 -1
- package/dist/components/LineChart.d.ts +19 -1
- package/dist/components/LineChart.js +7 -16
- package/dist/components/LineChart.mjs +15 -9
- package/dist/components/Link.d.mts +11 -2
- package/dist/components/Link.d.ts +11 -2
- package/dist/components/Link.js +3 -12
- package/dist/components/Link.mjs +8 -2
- package/dist/components/List.d.mts +65 -3
- package/dist/components/List.d.ts +65 -3
- package/dist/components/List.js +4 -12
- package/dist/components/List.mjs +9 -2
- package/dist/components/Loading.d.mts +23 -5
- package/dist/components/Loading.d.ts +23 -5
- package/dist/components/Loading.js +4 -12
- package/dist/components/Loading.mjs +9 -2
- package/dist/components/MarkdownEditor.d.mts +149 -0
- package/dist/components/MarkdownEditor.d.ts +149 -0
- package/dist/components/MarkdownEditor.js +8 -0
- package/dist/components/MarkdownEditor.mjs +8 -0
- package/dist/components/Mentions.d.mts +1 -1
- package/dist/components/Mentions.d.ts +1 -1
- package/dist/components/Mentions.js +3 -12
- package/dist/components/Mentions.mjs +8 -2
- package/dist/components/Menu.d.mts +335 -6
- package/dist/components/Menu.d.ts +335 -6
- package/dist/components/Menu.js +11 -16
- package/dist/components/Menu.mjs +16 -2
- package/dist/components/MenuItem.d.mts +6 -95
- package/dist/components/MenuItem.d.ts +6 -95
- package/dist/components/MenuItem.js +5 -13
- package/dist/components/MenuItem.mjs +10 -3
- package/dist/components/MenuItemGroup.d.mts +6 -57
- package/dist/components/MenuItemGroup.d.ts +6 -57
- package/dist/components/MenuItemGroup.js +5 -12
- package/dist/components/MenuItemGroup.mjs +10 -2
- package/dist/components/Message.d.mts +6 -1
- package/dist/components/Message.d.ts +6 -1
- package/dist/components/Message.js +5 -16
- package/dist/components/Message.mjs +11 -3
- package/dist/components/Modal.d.mts +26 -10
- package/dist/components/Modal.d.ts +26 -10
- package/dist/components/Modal.js +5 -13
- package/dist/components/Modal.mjs +10 -3
- package/dist/components/Notification.d.mts +6 -1
- package/dist/components/Notification.d.ts +6 -1
- package/dist/components/Notification.js +5 -16
- package/dist/components/Notification.mjs +11 -3
- package/dist/components/NotificationCenter.d.mts +4 -4
- package/dist/components/NotificationCenter.d.ts +4 -4
- package/dist/components/NotificationCenter.js +9 -17
- package/dist/components/NotificationCenter.mjs +16 -9
- package/dist/components/NumberKeyboard.d.mts +145 -0
- package/dist/components/NumberKeyboard.d.ts +145 -0
- package/dist/components/NumberKeyboard.js +8 -0
- package/dist/components/NumberKeyboard.mjs +8 -0
- package/dist/components/OrgChart.d.mts +195 -0
- package/dist/components/OrgChart.d.ts +195 -0
- package/dist/components/OrgChart.js +9 -0
- package/dist/components/OrgChart.mjs +9 -0
- package/dist/components/Pagination.d.mts +31 -9
- package/dist/components/Pagination.d.ts +31 -9
- package/dist/components/Pagination.js +3 -12
- package/dist/components/Pagination.mjs +8 -2
- package/dist/components/PieChart.d.mts +11 -2
- package/dist/components/PieChart.d.ts +11 -2
- package/dist/components/PieChart.js +7 -16
- package/dist/components/PieChart.mjs +13 -7
- package/dist/components/Popconfirm.d.mts +7 -7
- package/dist/components/Popconfirm.d.ts +7 -7
- package/dist/components/Popconfirm.js +5 -14
- package/dist/components/Popconfirm.mjs +10 -4
- package/dist/components/Popover.d.mts +4 -4
- package/dist/components/Popover.d.ts +4 -4
- package/dist/components/Popover.js +5 -14
- package/dist/components/Popover.mjs +10 -4
- package/dist/components/PrintLayout.js +5 -16
- package/dist/components/PrintLayout.mjs +10 -2
- package/dist/components/Progress.d.mts +4 -4
- package/dist/components/Progress.d.ts +4 -4
- package/dist/components/Progress.js +3 -12
- package/dist/components/Progress.mjs +8 -2
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/QRCode.d.ts +1 -1
- package/dist/components/QRCode.js +3 -12
- package/dist/components/QRCode.mjs +8 -2
- package/dist/components/RadarChart.d.mts +31 -4
- package/dist/components/RadarChart.d.ts +31 -4
- package/dist/components/RadarChart.js +7 -16
- package/dist/components/RadarChart.mjs +13 -7
- package/dist/components/Radio.js +3 -12
- package/dist/components/Radio.mjs +9 -3
- package/dist/components/RadioGroup.d.mts +1 -1
- package/dist/components/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup.js +5 -16
- package/dist/components/RadioGroup.mjs +10 -2
- package/dist/components/Rate.d.mts +1 -1
- package/dist/components/Rate.d.ts +1 -1
- package/dist/components/Rate.js +3 -12
- package/dist/components/Rate.mjs +8 -2
- package/dist/components/Resizable.d.mts +1 -1
- package/dist/components/Resizable.d.ts +1 -1
- package/dist/components/Resizable.js +3 -12
- package/dist/components/Resizable.mjs +8 -2
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/Result.d.ts +1 -1
- package/dist/components/Result.js +3 -12
- package/dist/components/Result.mjs +9 -3
- package/dist/components/RichTextEditor.d.mts +21 -5
- package/dist/components/RichTextEditor.d.ts +21 -5
- package/dist/components/RichTextEditor.js +3 -12
- package/dist/components/RichTextEditor.mjs +8 -2
- package/dist/components/Row.d.mts +2 -2
- package/dist/components/Row.d.ts +2 -2
- package/dist/components/Row.js +4 -11
- package/dist/components/Row.mjs +8 -2
- package/dist/components/ScatterChart.d.mts +1 -1
- package/dist/components/ScatterChart.d.ts +1 -1
- package/dist/components/ScatterChart.js +7 -16
- package/dist/components/ScatterChart.mjs +15 -9
- package/dist/components/ScrollSpy.d.mts +125 -0
- package/dist/components/ScrollSpy.d.ts +125 -0
- package/dist/components/ScrollSpy.js +8 -0
- package/dist/components/ScrollSpy.mjs +8 -0
- package/dist/components/Segmented.d.mts +1 -1
- package/dist/components/Segmented.d.ts +1 -1
- package/dist/components/Segmented.js +3 -12
- package/dist/components/Segmented.mjs +8 -2
- package/dist/components/Select.d.mts +75 -3
- package/dist/components/Select.d.ts +75 -3
- package/dist/components/Select.js +3 -12
- package/dist/components/Select.mjs +8 -2
- package/dist/components/Sidebar.d.mts +1 -1
- package/dist/components/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar.js +3 -12
- package/dist/components/Sidebar.mjs +8 -2
- package/dist/components/Signature.d.mts +154 -0
- package/dist/components/Signature.d.ts +154 -0
- package/dist/components/Signature.js +8 -0
- package/dist/components/Signature.mjs +8 -0
- package/dist/components/Skeleton.d.mts +2 -2
- package/dist/components/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton.js +3 -12
- package/dist/components/Skeleton.mjs +8 -2
- package/dist/components/Slider.d.mts +2 -2
- package/dist/components/Slider.d.ts +2 -2
- package/dist/components/Slider.js +3 -12
- package/dist/components/Slider.mjs +8 -2
- package/dist/components/Space.d.mts +2 -2
- package/dist/components/Space.d.ts +2 -2
- package/dist/components/Space.js +3 -12
- package/dist/components/Space.mjs +8 -2
- package/dist/components/Splitter.d.mts +2 -2
- package/dist/components/Splitter.d.ts +2 -2
- package/dist/components/Splitter.js +3 -12
- package/dist/components/Splitter.mjs +8 -2
- package/dist/components/Spotlight.d.mts +198 -0
- package/dist/components/Spotlight.d.ts +198 -0
- package/dist/components/Spotlight.js +9 -0
- package/dist/components/Spotlight.mjs +9 -0
- package/dist/components/Statistic.d.mts +20 -2
- package/dist/components/Statistic.d.ts +20 -2
- package/dist/components/Statistic.js +3 -12
- package/dist/components/Statistic.mjs +8 -2
- package/dist/components/Stepper.d.mts +1 -1
- package/dist/components/Stepper.d.ts +1 -1
- package/dist/components/Stepper.js +3 -12
- package/dist/components/Stepper.mjs +8 -2
- package/dist/components/Steps.d.mts +140 -3
- package/dist/components/Steps.d.ts +140 -3
- package/dist/components/Steps.js +7 -16
- package/dist/components/Steps.mjs +12 -2
- package/dist/components/StepsItem.d.mts +6 -141
- package/dist/components/StepsItem.d.ts +6 -141
- package/dist/components/StepsItem.js +5 -13
- package/dist/components/StepsItem.mjs +10 -3
- package/dist/components/SubMenu.d.mts +6 -117
- package/dist/components/SubMenu.d.ts +6 -117
- package/dist/components/SubMenu.js +5 -13
- package/dist/components/SubMenu.mjs +10 -3
- package/dist/components/SunburstChart.d.mts +10 -1
- package/dist/components/SunburstChart.d.ts +10 -1
- package/dist/components/SunburstChart.js +7 -16
- package/dist/components/SunburstChart.mjs +13 -7
- package/dist/components/Switch.d.mts +1 -1
- package/dist/components/Switch.d.ts +1 -1
- package/dist/components/Switch.js +3 -12
- package/dist/components/Switch.mjs +8 -2
- package/dist/components/TabPane.d.mts +6 -169
- package/dist/components/TabPane.d.ts +6 -169
- package/dist/components/TabPane.js +5 -13
- package/dist/components/TabPane.mjs +10 -3
- package/dist/components/Table.d.mts +326 -396
- package/dist/components/Table.d.ts +326 -396
- package/dist/components/Table.js +3 -12
- package/dist/components/Table.mjs +8 -2
- package/dist/components/Tabs.d.mts +187 -2
- package/dist/components/Tabs.d.ts +187 -2
- package/dist/components/Tabs.js +7 -16
- package/dist/components/Tabs.mjs +12 -2
- package/dist/components/Tag.d.mts +3 -3
- package/dist/components/Tag.d.ts +3 -3
- package/dist/components/Tag.js +3 -12
- package/dist/components/Tag.mjs +8 -2
- package/dist/components/TaskBoard.d.mts +1 -1
- package/dist/components/TaskBoard.d.ts +1 -1
- package/dist/components/TaskBoard.js +4 -13
- package/dist/components/TaskBoard.mjs +9 -3
- package/dist/components/Text.d.mts +2 -2
- package/dist/components/Text.d.ts +2 -2
- package/dist/components/Text.js +3 -12
- package/dist/components/Text.mjs +8 -2
- package/dist/components/Textarea.d.mts +2 -2
- package/dist/components/Textarea.d.ts +2 -2
- package/dist/components/Textarea.js +3 -12
- package/dist/components/Textarea.mjs +8 -2
- package/dist/components/TimePicker.d.mts +4 -4
- package/dist/components/TimePicker.d.ts +4 -4
- package/dist/components/TimePicker.js +3 -12
- package/dist/components/TimePicker.mjs +9 -3
- package/dist/components/Timeline.d.mts +1 -1
- package/dist/components/Timeline.d.ts +1 -1
- package/dist/components/Timeline.js +3 -12
- package/dist/components/Timeline.mjs +8 -2
- package/dist/components/Tooltip.d.mts +3 -3
- package/dist/components/Tooltip.d.ts +3 -3
- package/dist/components/Tooltip.js +5 -14
- package/dist/components/Tooltip.mjs +10 -4
- package/dist/components/Tour.d.mts +15 -5
- package/dist/components/Tour.d.ts +15 -5
- package/dist/components/Tour.js +3 -12
- package/dist/components/Tour.mjs +9 -3
- package/dist/components/Transfer.d.mts +1 -1
- package/dist/components/Transfer.d.ts +1 -1
- package/dist/components/Transfer.js +3 -12
- package/dist/components/Transfer.mjs +8 -2
- package/dist/components/Tree.d.mts +51 -2
- package/dist/components/Tree.d.ts +51 -2
- package/dist/components/Tree.js +4 -12
- package/dist/components/Tree.mjs +9 -2
- package/dist/components/TreeMapChart.d.mts +10 -1
- package/dist/components/TreeMapChart.d.ts +10 -1
- package/dist/components/TreeMapChart.js +7 -16
- package/dist/components/TreeMapChart.mjs +13 -7
- package/dist/components/TreeSelect.d.mts +1 -1
- package/dist/components/TreeSelect.d.ts +1 -1
- package/dist/components/TreeSelect.js +3 -12
- package/dist/components/TreeSelect.mjs +8 -2
- package/dist/components/Upload.d.mts +48 -4
- package/dist/components/Upload.d.ts +48 -4
- package/dist/components/Upload.js +4 -13
- package/dist/components/Upload.mjs +9 -3
- package/dist/components/VirtualList.d.mts +29 -0
- package/dist/components/VirtualList.d.ts +29 -0
- package/dist/components/VirtualList.js +3 -12
- package/dist/components/VirtualList.mjs +8 -2
- package/dist/components/VirtualTable.d.mts +3 -3
- package/dist/components/VirtualTable.d.ts +3 -3
- package/dist/components/VirtualTable.js +3 -12
- package/dist/components/VirtualTable.mjs +8 -2
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/components/Watermark.d.ts +1 -1
- package/dist/components/Watermark.js +3 -12
- package/dist/components/Watermark.mjs +8 -2
- package/dist/index.d.mts +50 -27
- package/dist/index.d.ts +50 -27
- package/dist/index.js +766 -729
- package/dist/index.mjs +755 -151
- package/package.json +15 -10
- package/dist/chunk-2WZGK7XJ.js +0 -113
- package/dist/chunk-34ZZLKQ4.js +0 -184
- package/dist/chunk-3AM6WEUE.mjs +0 -174
- package/dist/chunk-3FVWZYBQ.js +0 -196
- package/dist/chunk-3G7QYQYL.js +0 -95
- package/dist/chunk-53M2BTB5.mjs +0 -22
- package/dist/chunk-5AXCKK6Z.js +0 -290
- package/dist/chunk-5JSU44MQ.js +0 -242
- package/dist/chunk-5WHLXWWT.mjs +0 -68
- package/dist/chunk-5Y3HYEQD.js +0 -64
- package/dist/chunk-6DP7XE77.js +0 -267
- package/dist/chunk-6VG6ARQG.js +0 -206
- package/dist/chunk-7UU4PULK.mjs +0 -138
- package/dist/chunk-7VSD3NPI.js +0 -397
- package/dist/chunk-AFKNO6SF.js +0 -76
- package/dist/chunk-AN3HKOCS.mjs +0 -50
- package/dist/chunk-BMW2Z3G3.mjs +0 -94
- package/dist/chunk-BNIUWON3.js +0 -243
- package/dist/chunk-CG3AMK5U.mjs +0 -38
- package/dist/chunk-CQPHZU3H.mjs +0 -73
- package/dist/chunk-DN5GU5PC.js +0 -186
- package/dist/chunk-EBQ4WSQS.js +0 -97
- package/dist/chunk-ELEAQEMV.mjs +0 -61
- package/dist/chunk-ESALMEHU.js +0 -343
- package/dist/chunk-EZZG57TK.js +0 -44
- package/dist/chunk-FCV4ML6I.js +0 -71
- package/dist/chunk-FLAJKB2O.js +0 -126
- package/dist/chunk-FOF7UBMU.js +0 -180
- package/dist/chunk-G4ZD6COW.js +0 -324
- package/dist/chunk-GHPSCR6M.js +0 -69
- package/dist/chunk-GJFT5IQR.js +0 -118
- package/dist/chunk-GLW3P75K.js +0 -72
- package/dist/chunk-HKYYO326.mjs +0 -238
- package/dist/chunk-HRIKUP6R.js +0 -106
- package/dist/chunk-HTG6ISVH.mjs +0 -1094
- package/dist/chunk-I2BZURVP.js +0 -70
- package/dist/chunk-I6RGE7XQ.js +0 -152
- package/dist/chunk-IVTBNUKQ.js +0 -118
- package/dist/chunk-JHY57P4P.mjs +0 -69
- package/dist/chunk-JIMDJWZZ.js +0 -52
- package/dist/chunk-JSIQIWYP.js +0 -41
- package/dist/chunk-KI35GUL5.js +0 -184
- package/dist/chunk-LHPBK4MG.js +0 -92
- package/dist/chunk-LLU76X6I.js +0 -245
- package/dist/chunk-MVIHUPCX.js +0 -62
- package/dist/chunk-N5I5Y5JG.js +0 -53
- package/dist/chunk-NOTJRUAK.js +0 -142
- package/dist/chunk-NXGCLBVG.js +0 -268
- package/dist/chunk-O2Q4UYDA.js +0 -504
- package/dist/chunk-O2SABM5H.js +0 -178
- package/dist/chunk-PCGHIFIJ.js +0 -140
- package/dist/chunk-PICYE2CM.js +0 -176
- package/dist/chunk-PNKVD2UK.js +0 -26
- package/dist/chunk-Q6CGPWQF.js +0 -104
- package/dist/chunk-QDFUM2QT.js +0 -672
- package/dist/chunk-R77ZKZ5F.js +0 -251
- package/dist/chunk-RDV4BMTK.js +0 -64
- package/dist/chunk-TT5LWQIZ.js +0 -1097
- package/dist/chunk-TTDBR2B4.mjs +0 -340
- package/dist/chunk-U6WHPSWN.mjs +0 -83
- package/dist/chunk-U7CCKZAG.js +0 -125
- package/dist/chunk-UHGRUTGW.js +0 -175
- package/dist/chunk-UPPRQ3ZS.js +0 -132
- package/dist/chunk-UUGAOKYR.js +0 -113
- package/dist/chunk-V4PBWEAU.js +0 -62
- package/dist/chunk-VDNAGLQJ.js +0 -176
- package/dist/chunk-VTLTKTCK.js +0 -87
- package/dist/chunk-W6TMZ7ZT.js +0 -207
- package/dist/chunk-WCZGYU7M.js +0 -215
- package/dist/chunk-XCJONKFL.mjs +0 -173
- package/dist/chunk-XFZZWZ6Q.js +0 -149
- package/dist/chunk-XGJWUZWS.js +0 -356
- package/dist/chunk-XP5M2GK7.mjs +0 -57
- package/dist/chunk-XQKIMRRF.js +0 -146
- package/dist/chunk-XV5DEK27.js +0 -360
- package/dist/chunk-YUEBMBOH.mjs +0 -103
- package/dist/chunk-ZUVR5UZL.mjs +0 -264
- package/dist/chunk-ZXR4DAAO.mjs +0 -240
|
@@ -0,0 +1,838 @@
|
|
|
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
|
+
// src/components/DatePicker.ts
|
|
6
|
+
var _vue = require('vue');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
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
|
+
var _tigercatcore = require('@expcat/tigercat-core');
|
|
45
|
+
var CalendarIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.CalendarIconPath, "w-5 h-5");
|
|
46
|
+
var CloseIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.CloseIconPath, "w-4 h-4");
|
|
47
|
+
var ChevronLeftIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.ChevronLeftIconPath, "w-5 h-5");
|
|
48
|
+
var ChevronRightIcon = _chunkJCMGBKS6js.createFilledIcon.call(void 0, _tigercatcore.ChevronRightIconPath, "w-5 h-5");
|
|
49
|
+
var isDateLike = (value) => value === null || value instanceof Date || typeof value === "string";
|
|
50
|
+
var isModelValue = (value) => {
|
|
51
|
+
if (isDateLike(value)) return true;
|
|
52
|
+
if (Array.isArray(value) && value.length === 2) {
|
|
53
|
+
return isDateLike(value[0]) && isDateLike(value[1]);
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
};
|
|
57
|
+
var DatePicker = _vue.defineComponent.call(void 0, {
|
|
58
|
+
name: "TigerDatePicker",
|
|
59
|
+
inheritAttrs: false,
|
|
60
|
+
props: {
|
|
61
|
+
/**
|
|
62
|
+
* Enable range selection (start/end).
|
|
63
|
+
* When true, v-model uses a tuple: [start, end].
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
range: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: false
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* Locale used for month/day names in the calendar UI.
|
|
72
|
+
* Example: 'zh-CN', 'en-US'
|
|
73
|
+
*/
|
|
74
|
+
locale: {
|
|
75
|
+
type: [String, Object]
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* UI labels for i18n.
|
|
79
|
+
*/
|
|
80
|
+
labels: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Selected date value (for v-model)
|
|
86
|
+
*/
|
|
87
|
+
modelValue: {
|
|
88
|
+
type: [Date, String, Array, null],
|
|
89
|
+
default: null
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* Date picker size
|
|
93
|
+
* @default 'md'
|
|
94
|
+
*/
|
|
95
|
+
size: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: "md"
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* Date format string
|
|
101
|
+
* @default 'yyyy-MM-dd'
|
|
102
|
+
*/
|
|
103
|
+
format: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "yyyy-MM-dd"
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* Placeholder text
|
|
109
|
+
*/
|
|
110
|
+
placeholder: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: void 0
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* Whether the date picker is disabled
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
disabled: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: false
|
|
121
|
+
},
|
|
122
|
+
/**
|
|
123
|
+
* Whether the date picker is readonly
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
readonly: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
* Whether the date picker is required
|
|
132
|
+
* @default false
|
|
133
|
+
*/
|
|
134
|
+
required: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Minimum selectable date
|
|
140
|
+
*/
|
|
141
|
+
minDate: {
|
|
142
|
+
type: [Date, String, null],
|
|
143
|
+
default: null
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
* Maximum selectable date
|
|
147
|
+
*/
|
|
148
|
+
maxDate: {
|
|
149
|
+
type: [Date, String, null],
|
|
150
|
+
default: null
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* Show clear button
|
|
154
|
+
* @default true
|
|
155
|
+
*/
|
|
156
|
+
clearable: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: true
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* Input name attribute
|
|
162
|
+
*/
|
|
163
|
+
name: {
|
|
164
|
+
type: String
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Input id attribute
|
|
168
|
+
*/
|
|
169
|
+
id: {
|
|
170
|
+
type: String
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* Additional CSS classes
|
|
174
|
+
*/
|
|
175
|
+
className: {
|
|
176
|
+
type: String,
|
|
177
|
+
default: ""
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* Custom styles
|
|
181
|
+
*/
|
|
182
|
+
style: {
|
|
183
|
+
type: Object,
|
|
184
|
+
default: void 0
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Shortcut presets for quick date selection
|
|
188
|
+
*/
|
|
189
|
+
shortcuts: {
|
|
190
|
+
type: Array,
|
|
191
|
+
default: void 0
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
emits: {
|
|
195
|
+
/**
|
|
196
|
+
* Emitted when date changes (for v-model)
|
|
197
|
+
*/
|
|
198
|
+
"update:modelValue": (value) => {
|
|
199
|
+
return isModelValue(value);
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
* Emitted when date changes
|
|
203
|
+
*/
|
|
204
|
+
change: (value) => {
|
|
205
|
+
return isModelValue(value);
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* Emitted when clear button is clicked
|
|
209
|
+
*/
|
|
210
|
+
clear: () => true
|
|
211
|
+
},
|
|
212
|
+
setup(props, { emit, attrs }) {
|
|
213
|
+
const isOpen = _vue.ref.call(void 0, false);
|
|
214
|
+
const calendarRef = _vue.ref.call(void 0, null);
|
|
215
|
+
const mobileCalendarRef = _vue.ref.call(void 0, null);
|
|
216
|
+
const inputWrapperRef = _vue.ref.call(void 0, null);
|
|
217
|
+
const inputRef = _vue.ref.call(void 0, null);
|
|
218
|
+
const activeDateIso = _vue.ref.call(void 0, null);
|
|
219
|
+
const activeRangePart = _vue.ref.call(void 0, "start");
|
|
220
|
+
const pendingFocusIso = _vue.ref.call(void 0, null);
|
|
221
|
+
const restoreFocusEl = _vue.ref.call(void 0, null);
|
|
222
|
+
const isRangeMode = _vue.computed.call(void 0, () => props.range);
|
|
223
|
+
const selectedDate = _vue.computed.call(void 0, () => {
|
|
224
|
+
if (isRangeMode.value) return null;
|
|
225
|
+
return _tigercatcore.parseDate.call(void 0, props.modelValue);
|
|
226
|
+
});
|
|
227
|
+
const selectedRange = _vue.computed.call(void 0, () => {
|
|
228
|
+
if (!isRangeMode.value) return [null, null];
|
|
229
|
+
const raw = props.modelValue;
|
|
230
|
+
if (!raw || !Array.isArray(raw)) return [null, null];
|
|
231
|
+
return [_tigercatcore.parseDate.call(void 0, raw[0]), _tigercatcore.parseDate.call(void 0, raw[1])];
|
|
232
|
+
});
|
|
233
|
+
const minDateParsed = _vue.computed.call(void 0, () => _tigercatcore.parseDate.call(void 0, props.minDate));
|
|
234
|
+
const maxDateParsed = _vue.computed.call(void 0, () => _tigercatcore.parseDate.call(void 0, props.maxDate));
|
|
235
|
+
const localeCode = _vue.computed.call(void 0, () => _tigercatcore.getDatePickerLocaleCode.call(void 0, props.locale));
|
|
236
|
+
const viewingMonth = _vue.ref.call(void 0,
|
|
237
|
+
_nullishCoalesce(_optionalChain([(_nullishCoalesce(selectedDate.value, () => ( selectedRange.value[0]))), 'optionalAccess', _2 => _2.getMonth, 'call', _3 => _3()]), () => ( (/* @__PURE__ */ new Date()).getMonth()))
|
|
238
|
+
);
|
|
239
|
+
const viewingYear = _vue.ref.call(void 0,
|
|
240
|
+
_nullishCoalesce(_optionalChain([(_nullishCoalesce(selectedDate.value, () => ( selectedRange.value[0]))), 'optionalAccess', _4 => _4.getFullYear, 'call', _5 => _5()]), () => ( (/* @__PURE__ */ new Date()).getFullYear()))
|
|
241
|
+
);
|
|
242
|
+
const displayValue = _vue.computed.call(void 0, () => {
|
|
243
|
+
if (!isRangeMode.value) {
|
|
244
|
+
return selectedDate.value ? _tigercatcore.formatDate.call(void 0, selectedDate.value, props.format, localeCode.value) : "";
|
|
245
|
+
}
|
|
246
|
+
const [start, end] = selectedRange.value;
|
|
247
|
+
const startText = start ? _tigercatcore.formatDate.call(void 0, start, props.format, localeCode.value) : "";
|
|
248
|
+
const endText = end ? _tigercatcore.formatDate.call(void 0, end, props.format, localeCode.value) : "";
|
|
249
|
+
if (!startText && !endText) return "";
|
|
250
|
+
if (startText && endText) return `${startText} - ${endText}`;
|
|
251
|
+
return startText ? `${startText} - ` : ` - ${endText}`;
|
|
252
|
+
});
|
|
253
|
+
const placeholderText = _vue.computed.call(void 0,
|
|
254
|
+
() => _nullishCoalesce(props.placeholder, () => ( (props.range ? "Select date range" : "Select date")))
|
|
255
|
+
);
|
|
256
|
+
const showClearButton = _vue.computed.call(void 0, () => {
|
|
257
|
+
if (!props.clearable || props.disabled || props.readonly) return false;
|
|
258
|
+
if (!isRangeMode.value) return selectedDate.value !== null;
|
|
259
|
+
const [start, end] = selectedRange.value;
|
|
260
|
+
return start !== null || end !== null;
|
|
261
|
+
});
|
|
262
|
+
const calendarDays = _vue.computed.call(void 0, () => {
|
|
263
|
+
return _tigercatcore.getCalendarDays.call(void 0, viewingYear.value, viewingMonth.value);
|
|
264
|
+
});
|
|
265
|
+
const dayNames = _vue.computed.call(void 0, () => _tigercatcore.getShortDayNames.call(void 0, localeCode.value));
|
|
266
|
+
const isRtl = _vue.computed.call(void 0, () => _tigercatcore.getLocaleDirection.call(void 0, localeCode.value) === "rtl");
|
|
267
|
+
const previousMonthIcon = _vue.computed.call(void 0, () => isRtl.value ? ChevronRightIcon : ChevronLeftIcon);
|
|
268
|
+
const nextMonthIcon = _vue.computed.call(void 0, () => isRtl.value ? ChevronLeftIcon : ChevronRightIcon);
|
|
269
|
+
const labels = _vue.computed.call(void 0, () => _tigercatcore.getDatePickerLabels.call(void 0, props.locale, props.labels));
|
|
270
|
+
const mobileDate = _vue.computed.call(void 0, () => {
|
|
271
|
+
if (!isRangeMode.value) return _nullishCoalesce(selectedDate.value, () => ( _tigercatcore.normalizeDate.call(void 0, /* @__PURE__ */ new Date())));
|
|
272
|
+
const [start, end] = selectedRange.value;
|
|
273
|
+
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce((activeRangePart.value === "start" ? start : end), () => ( start)), () => ( end)), () => ( _tigercatcore.normalizeDate.call(void 0, /* @__PURE__ */ new Date())));
|
|
274
|
+
});
|
|
275
|
+
const mobileYears = _vue.computed.call(void 0, () => {
|
|
276
|
+
const baseYear = mobileDate.value.getFullYear();
|
|
277
|
+
return Array.from({ length: 101 }, (_, index) => baseYear - 50 + index);
|
|
278
|
+
});
|
|
279
|
+
const mobileDays = _vue.computed.call(void 0, () => {
|
|
280
|
+
const date = mobileDate.value;
|
|
281
|
+
const daysInMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
|
|
282
|
+
return Array.from({ length: daysInMonth }, (_, index) => index + 1);
|
|
283
|
+
});
|
|
284
|
+
const emitValue = (value) => {
|
|
285
|
+
emit("update:modelValue", value);
|
|
286
|
+
emit("change", value);
|
|
287
|
+
};
|
|
288
|
+
const addDays = (date, days) => {
|
|
289
|
+
const next = new Date(date);
|
|
290
|
+
next.setDate(next.getDate() + days);
|
|
291
|
+
return next;
|
|
292
|
+
};
|
|
293
|
+
const focusDateButtonByIso = (iso) => {
|
|
294
|
+
const button = _optionalChain([calendarRef, 'access', _6 => _6.value, 'optionalAccess', _7 => _7.querySelector, 'call', _8 => _8(
|
|
295
|
+
`button[data-date="${iso}"]`
|
|
296
|
+
)]);
|
|
297
|
+
if (!button || button.disabled) return false;
|
|
298
|
+
button.focus();
|
|
299
|
+
activeDateIso.value = iso;
|
|
300
|
+
return true;
|
|
301
|
+
};
|
|
302
|
+
const getFirstEnabledIsoInView = () => {
|
|
303
|
+
for (const date of calendarDays.value) {
|
|
304
|
+
if (!date) continue;
|
|
305
|
+
const iso = _tigercatcore.formatDate.call(void 0, date, "yyyy-MM-dd");
|
|
306
|
+
if (!isDateDisabled(date)) return iso;
|
|
307
|
+
}
|
|
308
|
+
return null;
|
|
309
|
+
};
|
|
310
|
+
const getPreferredFocusIso = () => {
|
|
311
|
+
const focusDate = isRangeMode.value ? _nullishCoalesce(selectedRange.value[0], () => ( selectedRange.value[1])) : selectedDate.value;
|
|
312
|
+
if (focusDate) return _tigercatcore.formatDate.call(void 0, focusDate, "yyyy-MM-dd");
|
|
313
|
+
const today = _tigercatcore.normalizeDate.call(void 0, /* @__PURE__ */ new Date());
|
|
314
|
+
if (_tigercatcore.isDateInRange.call(void 0, today, minDateParsed.value, maxDateParsed.value)) {
|
|
315
|
+
return _tigercatcore.formatDate.call(void 0, today, "yyyy-MM-dd");
|
|
316
|
+
}
|
|
317
|
+
return getFirstEnabledIsoInView();
|
|
318
|
+
};
|
|
319
|
+
const restoreFocus = () => {
|
|
320
|
+
const target = _nullishCoalesce(restoreFocusEl.value, () => ( inputRef.value));
|
|
321
|
+
if (!target) return;
|
|
322
|
+
if (typeof target.focus === "function") {
|
|
323
|
+
;
|
|
324
|
+
target.focus();
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
const moveFocus = async (deltaDays) => {
|
|
328
|
+
const activeEl = document.activeElement;
|
|
329
|
+
const currentIso = _nullishCoalesce(_nullishCoalesce(_optionalChain([activeEl, 'optionalAccess', _9 => _9.getAttribute, 'call', _10 => _10("data-date")]), () => ( activeDateIso.value)), () => ( null));
|
|
330
|
+
const baseIso = _nullishCoalesce(currentIso, () => ( getPreferredFocusIso()));
|
|
331
|
+
if (!baseIso) return;
|
|
332
|
+
const baseDate = _tigercatcore.parseDate.call(void 0, baseIso);
|
|
333
|
+
if (!baseDate) return;
|
|
334
|
+
let candidate = addDays(baseDate, deltaDays);
|
|
335
|
+
for (let attempts = 0; attempts < 42; attempts++) {
|
|
336
|
+
const iso = _tigercatcore.formatDate.call(void 0, candidate, "yyyy-MM-dd");
|
|
337
|
+
const el = _optionalChain([calendarRef, 'access', _11 => _11.value, 'optionalAccess', _12 => _12.querySelector, 'call', _13 => _13(
|
|
338
|
+
`button[data-date="${iso}"]`
|
|
339
|
+
)]);
|
|
340
|
+
if (el && !el.disabled) {
|
|
341
|
+
el.focus();
|
|
342
|
+
activeDateIso.value = iso;
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
if (!el) {
|
|
346
|
+
pendingFocusIso.value = iso;
|
|
347
|
+
viewingYear.value = candidate.getFullYear();
|
|
348
|
+
viewingMonth.value = candidate.getMonth();
|
|
349
|
+
activeDateIso.value = iso;
|
|
350
|
+
await _vue.nextTick.call(void 0, );
|
|
351
|
+
if (pendingFocusIso.value) {
|
|
352
|
+
const nextIso = pendingFocusIso.value;
|
|
353
|
+
pendingFocusIso.value = null;
|
|
354
|
+
if (focusDateButtonByIso(nextIso)) return;
|
|
355
|
+
}
|
|
356
|
+
const fallback = getFirstEnabledIsoInView();
|
|
357
|
+
if (fallback) focusDateButtonByIso(fallback);
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
candidate = addDays(candidate, deltaDays);
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
const handleCalendarKeyDown = async (event) => {
|
|
364
|
+
if (!isOpen.value) return;
|
|
365
|
+
switch (event.key) {
|
|
366
|
+
case "Escape": {
|
|
367
|
+
event.preventDefault();
|
|
368
|
+
closeCalendar();
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
case "ArrowRight": {
|
|
372
|
+
event.preventDefault();
|
|
373
|
+
await moveFocus(1);
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
case "ArrowLeft": {
|
|
377
|
+
event.preventDefault();
|
|
378
|
+
await moveFocus(-1);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
case "ArrowDown": {
|
|
382
|
+
event.preventDefault();
|
|
383
|
+
await moveFocus(7);
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
case "ArrowUp": {
|
|
387
|
+
event.preventDefault();
|
|
388
|
+
await moveFocus(-7);
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
case "Enter":
|
|
392
|
+
case " ": {
|
|
393
|
+
const activeEl = document.activeElement;
|
|
394
|
+
if (_optionalChain([activeEl, 'optionalAccess', _14 => _14.tagName]) === "BUTTON" && activeEl.dataset.date) {
|
|
395
|
+
event.preventDefault();
|
|
396
|
+
if (!activeEl.disabled) activeEl.click();
|
|
397
|
+
}
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
function toggleCalendar() {
|
|
403
|
+
if (!props.disabled && !props.readonly) {
|
|
404
|
+
isOpen.value = !isOpen.value;
|
|
405
|
+
if (isOpen.value) {
|
|
406
|
+
restoreFocusEl.value = _nullishCoalesce(inputRef.value, () => ( null));
|
|
407
|
+
const baseDate = _nullishCoalesce(selectedDate.value, () => ( selectedRange.value[0]));
|
|
408
|
+
if (baseDate) {
|
|
409
|
+
viewingMonth.value = baseDate.getMonth();
|
|
410
|
+
viewingYear.value = baseDate.getFullYear();
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function closeCalendar() {
|
|
416
|
+
isOpen.value = false;
|
|
417
|
+
}
|
|
418
|
+
function setToday() {
|
|
419
|
+
selectDate(/* @__PURE__ */ new Date());
|
|
420
|
+
}
|
|
421
|
+
function handleShortcut(shortcut) {
|
|
422
|
+
const val = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
|
|
423
|
+
emitValue(val);
|
|
424
|
+
closeCalendar();
|
|
425
|
+
}
|
|
426
|
+
function selectDate(date) {
|
|
427
|
+
if (!date) return;
|
|
428
|
+
const normalizedDate = _tigercatcore.normalizeDate.call(void 0, date);
|
|
429
|
+
if (!_tigercatcore.isDateInRange.call(void 0, normalizedDate, minDateParsed.value, maxDateParsed.value)) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (!isRangeMode.value) {
|
|
433
|
+
emitValue(normalizedDate);
|
|
434
|
+
closeCalendar();
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
const [start, end] = selectedRange.value;
|
|
438
|
+
if (!start || start && end) {
|
|
439
|
+
emitValue([normalizedDate, null]);
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
emitValue([start, normalizedDate < start ? start : normalizedDate]);
|
|
443
|
+
}
|
|
444
|
+
function commitMobileDate(date) {
|
|
445
|
+
const normalized = _tigercatcore.normalizeDate.call(void 0, date);
|
|
446
|
+
if (!_tigercatcore.isDateInRange.call(void 0, normalized, minDateParsed.value, maxDateParsed.value)) return;
|
|
447
|
+
viewingYear.value = normalized.getFullYear();
|
|
448
|
+
viewingMonth.value = normalized.getMonth();
|
|
449
|
+
if (!isRangeMode.value) {
|
|
450
|
+
emitValue(normalized);
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
const [start, end] = selectedRange.value;
|
|
454
|
+
if (activeRangePart.value === "start") {
|
|
455
|
+
emitValue([normalized, end && end < normalized ? normalized : end]);
|
|
456
|
+
activeRangePart.value = "end";
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
emitValue([_nullishCoalesce(start, () => ( normalized)), start && normalized < start ? start : normalized]);
|
|
460
|
+
}
|
|
461
|
+
function updateMobileDate(part, value) {
|
|
462
|
+
const base = mobileDate.value;
|
|
463
|
+
const nextYear = part === "year" ? value : base.getFullYear();
|
|
464
|
+
const nextMonth2 = part === "month" ? value : base.getMonth();
|
|
465
|
+
const maxDay = new Date(nextYear, nextMonth2 + 1, 0).getDate();
|
|
466
|
+
const nextDay = Math.min(part === "day" ? value : base.getDate(), maxDay);
|
|
467
|
+
commitMobileDate(new Date(nextYear, nextMonth2, nextDay));
|
|
468
|
+
}
|
|
469
|
+
function clearDate(event) {
|
|
470
|
+
event.stopPropagation();
|
|
471
|
+
emitValue(!isRangeMode.value ? null : [null, null]);
|
|
472
|
+
emit("clear");
|
|
473
|
+
}
|
|
474
|
+
function previousMonth() {
|
|
475
|
+
if (viewingMonth.value === 0) {
|
|
476
|
+
viewingMonth.value = 11;
|
|
477
|
+
viewingYear.value--;
|
|
478
|
+
} else {
|
|
479
|
+
viewingMonth.value--;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function nextMonth() {
|
|
483
|
+
if (viewingMonth.value === 11) {
|
|
484
|
+
viewingMonth.value = 0;
|
|
485
|
+
viewingYear.value++;
|
|
486
|
+
} else {
|
|
487
|
+
viewingMonth.value++;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function isDateDisabled(date) {
|
|
491
|
+
if (!date) return true;
|
|
492
|
+
return !_tigercatcore.isDateInRange.call(void 0, date, minDateParsed.value, maxDateParsed.value);
|
|
493
|
+
}
|
|
494
|
+
function isCurrentMonth(date) {
|
|
495
|
+
if (!date) return false;
|
|
496
|
+
return date.getMonth() === viewingMonth.value;
|
|
497
|
+
}
|
|
498
|
+
function handleClickOutside(event) {
|
|
499
|
+
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)) {
|
|
500
|
+
closeCalendar();
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function handleInputClick() {
|
|
504
|
+
toggleCalendar();
|
|
505
|
+
}
|
|
506
|
+
_vue.watch.call(void 0, isOpen, (newValue) => {
|
|
507
|
+
if (newValue) {
|
|
508
|
+
document.addEventListener("click", handleClickOutside);
|
|
509
|
+
const preferred = _nullishCoalesce(pendingFocusIso.value, () => ( getPreferredFocusIso()));
|
|
510
|
+
pendingFocusIso.value = null;
|
|
511
|
+
_vue.nextTick.call(void 0, ).then(() => {
|
|
512
|
+
if (preferred && focusDateButtonByIso(preferred)) return;
|
|
513
|
+
const fallback = getFirstEnabledIsoInView();
|
|
514
|
+
if (fallback) focusDateButtonByIso(fallback);
|
|
515
|
+
});
|
|
516
|
+
} else {
|
|
517
|
+
document.removeEventListener("click", handleClickOutside);
|
|
518
|
+
_vue.nextTick.call(void 0, ).then(() => {
|
|
519
|
+
restoreFocus();
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
_vue.onBeforeUnmount.call(void 0, () => {
|
|
524
|
+
document.removeEventListener("click", handleClickOutside);
|
|
525
|
+
});
|
|
526
|
+
const rootClass = _vue.computed.call(void 0,
|
|
527
|
+
() => _tigercatcore.classNames.call(void 0, _tigercatcore.datePickerBaseClasses, props.className, _tigercatcore.coerceClassValue.call(void 0, attrs.class))
|
|
528
|
+
);
|
|
529
|
+
const rootStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
|
|
530
|
+
const forwardedAttrs = _vue.computed.call(void 0, () => {
|
|
531
|
+
const { class: _class, style: _style, ...rest } = _nullishCoalesce(attrs, () => ( {}));
|
|
532
|
+
return rest;
|
|
533
|
+
});
|
|
534
|
+
return () => {
|
|
535
|
+
const inputClasses = _tigercatcore.getDatePickerInputClasses.call(void 0, props.size, props.disabled || props.readonly);
|
|
536
|
+
const iconButtonClasses = _tigercatcore.getDatePickerIconButtonClasses.call(void 0, props.size);
|
|
537
|
+
return _vue.h.call(void 0,
|
|
538
|
+
"div",
|
|
539
|
+
{
|
|
540
|
+
...forwardedAttrs.value,
|
|
541
|
+
class: rootClass.value,
|
|
542
|
+
style: rootStyle.value
|
|
543
|
+
},
|
|
544
|
+
[
|
|
545
|
+
// Input wrapper
|
|
546
|
+
_vue.h.call(void 0,
|
|
547
|
+
"div",
|
|
548
|
+
{
|
|
549
|
+
ref: inputWrapperRef,
|
|
550
|
+
class: _tigercatcore.datePickerInputWrapperClasses
|
|
551
|
+
},
|
|
552
|
+
[
|
|
553
|
+
// Input field for date display
|
|
554
|
+
_vue.h.call(void 0, "input", {
|
|
555
|
+
ref: inputRef,
|
|
556
|
+
type: "text",
|
|
557
|
+
class: inputClasses,
|
|
558
|
+
value: displayValue.value,
|
|
559
|
+
placeholder: placeholderText.value,
|
|
560
|
+
disabled: props.disabled,
|
|
561
|
+
readonly: true,
|
|
562
|
+
// Always readonly to prevent manual text input and ensure date selection via calendar only
|
|
563
|
+
required: props.required,
|
|
564
|
+
name: props.name,
|
|
565
|
+
id: props.id,
|
|
566
|
+
onClick: handleInputClick,
|
|
567
|
+
"aria-label": placeholderText.value
|
|
568
|
+
}),
|
|
569
|
+
// Clear button
|
|
570
|
+
showClearButton.value && _vue.h.call(void 0,
|
|
571
|
+
"button",
|
|
572
|
+
{
|
|
573
|
+
type: "button",
|
|
574
|
+
class: _tigercatcore.datePickerClearButtonClasses,
|
|
575
|
+
onClick: clearDate,
|
|
576
|
+
"aria-label": labels.value.clearDate
|
|
577
|
+
},
|
|
578
|
+
CloseIcon
|
|
579
|
+
),
|
|
580
|
+
// Calendar icon button
|
|
581
|
+
_vue.h.call(void 0,
|
|
582
|
+
"button",
|
|
583
|
+
{
|
|
584
|
+
type: "button",
|
|
585
|
+
class: iconButtonClasses,
|
|
586
|
+
disabled: props.disabled || props.readonly,
|
|
587
|
+
onClick: toggleCalendar,
|
|
588
|
+
"aria-label": labels.value.toggleCalendar
|
|
589
|
+
},
|
|
590
|
+
CalendarIcon
|
|
591
|
+
)
|
|
592
|
+
]
|
|
593
|
+
),
|
|
594
|
+
// Calendar dropdown
|
|
595
|
+
isOpen.value && _vue.h.call(void 0,
|
|
596
|
+
"div",
|
|
597
|
+
{
|
|
598
|
+
ref: mobileCalendarRef,
|
|
599
|
+
class: _tigercatcore.datePickerMobileWheelClasses,
|
|
600
|
+
role: "group",
|
|
601
|
+
"aria-label": labels.value.calendar
|
|
602
|
+
},
|
|
603
|
+
[
|
|
604
|
+
isRangeMode.value ? _vue.h.call(void 0, "div", { class: "mb-3 flex items-center gap-2" }, [
|
|
605
|
+
_vue.h.call(void 0,
|
|
606
|
+
"button",
|
|
607
|
+
{
|
|
608
|
+
type: "button",
|
|
609
|
+
class: _tigercatcore.datePickerFooterButtonClasses,
|
|
610
|
+
"aria-selected": activeRangePart.value === "start",
|
|
611
|
+
onClick: () => activeRangePart.value = "start"
|
|
612
|
+
},
|
|
613
|
+
"Start"
|
|
614
|
+
),
|
|
615
|
+
_vue.h.call(void 0,
|
|
616
|
+
"button",
|
|
617
|
+
{
|
|
618
|
+
type: "button",
|
|
619
|
+
class: _tigercatcore.datePickerFooterButtonClasses,
|
|
620
|
+
"aria-selected": activeRangePart.value === "end",
|
|
621
|
+
onClick: () => activeRangePart.value = "end"
|
|
622
|
+
},
|
|
623
|
+
"End"
|
|
624
|
+
)
|
|
625
|
+
]) : null,
|
|
626
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.datePickerMobileWheelGridClasses }, [
|
|
627
|
+
_vue.h.call(void 0,
|
|
628
|
+
"select",
|
|
629
|
+
{
|
|
630
|
+
class: _tigercatcore.datePickerMobileWheelSelectClasses,
|
|
631
|
+
value: mobileDate.value.getFullYear(),
|
|
632
|
+
"aria-label": "Year",
|
|
633
|
+
onChange: (event) => updateMobileDate("year", Number(event.target.value))
|
|
634
|
+
},
|
|
635
|
+
mobileYears.value.map((year) => _vue.h.call(void 0, "option", { value: year }, year))
|
|
636
|
+
),
|
|
637
|
+
_vue.h.call(void 0,
|
|
638
|
+
"select",
|
|
639
|
+
{
|
|
640
|
+
class: _tigercatcore.datePickerMobileWheelSelectClasses,
|
|
641
|
+
value: mobileDate.value.getMonth(),
|
|
642
|
+
"aria-label": "Month",
|
|
643
|
+
onChange: (event) => updateMobileDate("month", Number(event.target.value))
|
|
644
|
+
},
|
|
645
|
+
Array.from(
|
|
646
|
+
{ length: 12 },
|
|
647
|
+
(_, month) => _vue.h.call(void 0, "option", { value: month }, month + 1)
|
|
648
|
+
)
|
|
649
|
+
),
|
|
650
|
+
_vue.h.call(void 0,
|
|
651
|
+
"select",
|
|
652
|
+
{
|
|
653
|
+
class: _tigercatcore.datePickerMobileWheelSelectClasses,
|
|
654
|
+
value: mobileDate.value.getDate(),
|
|
655
|
+
"aria-label": "Day",
|
|
656
|
+
onChange: (event) => updateMobileDate("day", Number(event.target.value))
|
|
657
|
+
},
|
|
658
|
+
mobileDays.value.map((day) => _vue.h.call(void 0, "option", { value: day }, day))
|
|
659
|
+
)
|
|
660
|
+
]),
|
|
661
|
+
_vue.h.call(void 0, "div", { class: "mt-4 flex justify-end gap-2" }, [
|
|
662
|
+
_vue.h.call(void 0,
|
|
663
|
+
"button",
|
|
664
|
+
{
|
|
665
|
+
type: "button",
|
|
666
|
+
class: _tigercatcore.datePickerFooterButtonClasses,
|
|
667
|
+
"aria-label": `Mobile ${labels.value.ok}`,
|
|
668
|
+
onClick: closeCalendar
|
|
669
|
+
},
|
|
670
|
+
labels.value.ok
|
|
671
|
+
)
|
|
672
|
+
])
|
|
673
|
+
]
|
|
674
|
+
),
|
|
675
|
+
isOpen.value && _vue.h.call(void 0,
|
|
676
|
+
"div",
|
|
677
|
+
{
|
|
678
|
+
ref: calendarRef,
|
|
679
|
+
class: _tigercatcore.datePickerCalendarClasses,
|
|
680
|
+
role: "dialog",
|
|
681
|
+
"aria-modal": "true",
|
|
682
|
+
"aria-label": labels.value.calendar,
|
|
683
|
+
onKeydown: handleCalendarKeyDown
|
|
684
|
+
},
|
|
685
|
+
[
|
|
686
|
+
// Calendar header
|
|
687
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.datePickerCalendarHeaderClasses }, [
|
|
688
|
+
_vue.h.call(void 0,
|
|
689
|
+
"button",
|
|
690
|
+
{
|
|
691
|
+
type: "button",
|
|
692
|
+
class: _tigercatcore.datePickerNavButtonClasses,
|
|
693
|
+
onClick: previousMonth,
|
|
694
|
+
"aria-label": labels.value.previousMonth
|
|
695
|
+
},
|
|
696
|
+
previousMonthIcon.value
|
|
697
|
+
),
|
|
698
|
+
_vue.h.call(void 0,
|
|
699
|
+
"div",
|
|
700
|
+
{ class: _tigercatcore.datePickerMonthYearClasses },
|
|
701
|
+
_tigercatcore.formatMonthYear.call(void 0, viewingYear.value, viewingMonth.value, localeCode.value)
|
|
702
|
+
),
|
|
703
|
+
_vue.h.call(void 0,
|
|
704
|
+
"button",
|
|
705
|
+
{
|
|
706
|
+
type: "button",
|
|
707
|
+
class: _tigercatcore.datePickerNavButtonClasses,
|
|
708
|
+
onClick: nextMonth,
|
|
709
|
+
"aria-label": labels.value.nextMonth
|
|
710
|
+
},
|
|
711
|
+
nextMonthIcon.value
|
|
712
|
+
)
|
|
713
|
+
]),
|
|
714
|
+
// Day names header
|
|
715
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.datePickerCalendarGridClasses, role: "row" }, [
|
|
716
|
+
...dayNames.value.map(
|
|
717
|
+
(day) => _vue.h.call(void 0,
|
|
718
|
+
"div",
|
|
719
|
+
{
|
|
720
|
+
class: _tigercatcore.datePickerDayNameClasses,
|
|
721
|
+
key: day,
|
|
722
|
+
role: "columnheader"
|
|
723
|
+
},
|
|
724
|
+
day
|
|
725
|
+
)
|
|
726
|
+
)
|
|
727
|
+
]),
|
|
728
|
+
// Calendar grid
|
|
729
|
+
(() => {
|
|
730
|
+
const [rangeStart, rangeEnd] = selectedRange.value;
|
|
731
|
+
const normStart = rangeStart ? _tigercatcore.normalizeDate.call(void 0, rangeStart) : null;
|
|
732
|
+
const normEnd = rangeEnd ? _tigercatcore.normalizeDate.call(void 0, rangeEnd) : null;
|
|
733
|
+
const isSelectingEnd = isRangeMode.value && Boolean(rangeStart) && !rangeEnd;
|
|
734
|
+
return _vue.h.call(void 0,
|
|
735
|
+
"div",
|
|
736
|
+
{
|
|
737
|
+
class: _tigercatcore.datePickerCalendarGridClasses,
|
|
738
|
+
role: "grid",
|
|
739
|
+
"aria-rowcount": 6,
|
|
740
|
+
"aria-colcount": 7
|
|
741
|
+
},
|
|
742
|
+
[
|
|
743
|
+
...calendarDays.value.map((date, index) => {
|
|
744
|
+
if (!date) return null;
|
|
745
|
+
const normDate = _tigercatcore.normalizeDate.call(void 0, date);
|
|
746
|
+
const isRangeStart = isRangeMode.value && rangeStart ? _tigercatcore.isSameDay.call(void 0, date, rangeStart) : false;
|
|
747
|
+
const isRangeEnd = isRangeMode.value && rangeEnd ? _tigercatcore.isSameDay.call(void 0, date, rangeEnd) : false;
|
|
748
|
+
const isInRange = isRangeMode.value && normStart && normEnd && normDate >= normStart && normDate <= normEnd;
|
|
749
|
+
const isSelected = !isRangeMode.value ? selectedDate.value ? _tigercatcore.isSameDay.call(void 0, date, selectedDate.value) : false : isRangeStart || isRangeEnd;
|
|
750
|
+
const isCurrentMonthDay = isCurrentMonth(date);
|
|
751
|
+
const isTodayDay = _tigercatcore.isToday.call(void 0, date);
|
|
752
|
+
const isBeforeRangeStart = isSelectingEnd && normStart && normDate < normStart;
|
|
753
|
+
const isDisabled = isDateDisabled(date) || Boolean(isBeforeRangeStart);
|
|
754
|
+
const iso = _tigercatcore.formatDate.call(void 0, date, "yyyy-MM-dd");
|
|
755
|
+
return _vue.h.call(void 0,
|
|
756
|
+
"button",
|
|
757
|
+
{
|
|
758
|
+
key: index,
|
|
759
|
+
type: "button",
|
|
760
|
+
class: _tigercatcore.getDatePickerDayCellClasses.call(void 0,
|
|
761
|
+
isCurrentMonthDay,
|
|
762
|
+
isSelected,
|
|
763
|
+
isTodayDay,
|
|
764
|
+
isDisabled,
|
|
765
|
+
Boolean(isInRange),
|
|
766
|
+
Boolean(isRangeStart),
|
|
767
|
+
Boolean(isRangeEnd)
|
|
768
|
+
),
|
|
769
|
+
disabled: isDisabled,
|
|
770
|
+
onClick: () => selectDate(date),
|
|
771
|
+
role: "gridcell",
|
|
772
|
+
"data-date": iso,
|
|
773
|
+
onFocus: () => {
|
|
774
|
+
activeDateIso.value = iso;
|
|
775
|
+
},
|
|
776
|
+
tabindex: activeDateIso.value === iso && !isDisabled ? 0 : -1,
|
|
777
|
+
"aria-label": iso,
|
|
778
|
+
"aria-selected": isSelected,
|
|
779
|
+
"aria-current": isTodayDay ? "date" : void 0
|
|
780
|
+
},
|
|
781
|
+
date.getDate()
|
|
782
|
+
);
|
|
783
|
+
})
|
|
784
|
+
]
|
|
785
|
+
);
|
|
786
|
+
})(),
|
|
787
|
+
// Shortcuts panel
|
|
788
|
+
_optionalChain([props, 'access', _21 => _21.shortcuts, 'optionalAccess', _22 => _22.length]) ? _vue.h.call(void 0,
|
|
789
|
+
"div",
|
|
790
|
+
{
|
|
791
|
+
class: "flex flex-wrap gap-1 px-3 py-2 border-t border-[var(--tiger-border,#e5e7eb)]"
|
|
792
|
+
},
|
|
793
|
+
props.shortcuts.map(
|
|
794
|
+
(sc) => _vue.h.call(void 0,
|
|
795
|
+
"button",
|
|
796
|
+
{
|
|
797
|
+
type: "button",
|
|
798
|
+
class: _tigercatcore.datePickerFooterButtonClasses,
|
|
799
|
+
onClick: () => handleShortcut(sc)
|
|
800
|
+
},
|
|
801
|
+
sc.label
|
|
802
|
+
)
|
|
803
|
+
)
|
|
804
|
+
) : null,
|
|
805
|
+
// Footer (range mode only)
|
|
806
|
+
isRangeMode.value ? _vue.h.call(void 0, "div", { class: _tigercatcore.datePickerFooterClasses }, [
|
|
807
|
+
_vue.h.call(void 0,
|
|
808
|
+
"button",
|
|
809
|
+
{
|
|
810
|
+
type: "button",
|
|
811
|
+
class: _tigercatcore.datePickerFooterButtonClasses,
|
|
812
|
+
onClick: setToday
|
|
813
|
+
},
|
|
814
|
+
labels.value.today
|
|
815
|
+
),
|
|
816
|
+
_vue.h.call(void 0,
|
|
817
|
+
"button",
|
|
818
|
+
{
|
|
819
|
+
type: "button",
|
|
820
|
+
class: _tigercatcore.datePickerFooterButtonClasses,
|
|
821
|
+
onClick: closeCalendar
|
|
822
|
+
},
|
|
823
|
+
labels.value.ok
|
|
824
|
+
)
|
|
825
|
+
]) : null
|
|
826
|
+
]
|
|
827
|
+
)
|
|
828
|
+
]
|
|
829
|
+
);
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
var DatePicker_default = DatePicker;
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
exports.DatePicker = DatePicker; exports.DatePicker_default = DatePicker_default;
|