@expcat/tigercat-vue 0.3.0 → 0.3.70
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/dist/{chunk-WO332QT2.js → chunk-27T3QDSF.js} +3 -3
- package/dist/{chunk-YLP24JN3.mjs → chunk-2BNQGU7E.mjs} +19 -22
- package/dist/{chunk-CCI3RIZU.js → chunk-2KDSHEZT.js} +9 -7
- package/dist/{chunk-NF7ADPEN.mjs → chunk-2R5HISQA.mjs} +19 -28
- package/dist/{chunk-74P7RUAY.mjs → chunk-2SCIJ2RW.mjs} +9 -11
- package/dist/{chunk-KQOJTNUP.js → chunk-2YFXJUBT.js} +19 -22
- package/dist/{chunk-ENBDEPNV.mjs → chunk-327O6FN7.mjs} +67 -74
- package/dist/{chunk-UAMYOMEU.mjs → chunk-37WD7WPC.mjs} +6 -8
- package/dist/{chunk-FKON56SN.mjs → chunk-3AM6WEUE.mjs} +14 -27
- package/dist/{chunk-LNQYYW3E.mjs → chunk-3G4VPV4D.mjs} +9 -7
- package/dist/{chunk-ZFDUZQML.js → chunk-3L36R3UN.js} +107 -45
- package/dist/{chunk-CGJTYURK.js → chunk-3PQIZBT5.js} +54 -91
- package/dist/{chunk-JHOTXOGL.js → chunk-3QV2D54H.js} +18 -19
- package/dist/chunk-3WM7WK7E.js +122 -0
- package/dist/chunk-3ZHQJ4W6.mjs +119 -0
- package/dist/{chunk-X5BEVY5O.mjs → chunk-46DEQQMB.mjs} +14 -15
- package/dist/{chunk-QVMU7OT7.mjs → chunk-4L5UYIV6.mjs} +1 -1
- package/dist/{chunk-CDZHYIXG.js → chunk-4NSRGKRB.js} +132 -66
- package/dist/chunk-4YHOD7LT.mjs +82 -0
- package/dist/chunk-53M2BTB5.mjs +22 -0
- package/dist/{chunk-CKC7W6BL.mjs → chunk-5BAN4GHQ.mjs} +1 -1
- package/dist/{chunk-TTZDVYGX.mjs → chunk-5XY7MXWC.mjs} +57 -39
- package/dist/{chunk-SF63KE5T.js → chunk-6FXYRDYH.js} +6 -13
- package/dist/{chunk-UBMNR3BJ.js → chunk-6MJBCXPO.js} +47 -48
- package/dist/{chunk-6SC33HJA.js → chunk-6PZZNM3S.js} +2 -9
- package/dist/{chunk-BWKN2DGI.mjs → chunk-6V7XCCXN.mjs} +3 -24
- package/dist/chunk-7AFJ7TKW.js +266 -0
- package/dist/{chunk-CJYWTPAS.mjs → chunk-7FCHU5KV.mjs} +28 -69
- package/dist/{chunk-2EMI5OHM.mjs → chunk-7J44XQKW.mjs} +2 -9
- package/dist/chunk-7LUATGJU.mjs +171 -0
- package/dist/chunk-7RRA3TIG.mjs +31 -0
- package/dist/{chunk-L44HKVK5.js → chunk-7TGLZQV5.js} +6 -8
- package/dist/{chunk-BCMEJAC7.mjs → chunk-7UU4PULK.mjs} +15 -35
- package/dist/{chunk-E3FDI3Y5.js → chunk-AGAJJYP2.js} +46 -120
- package/dist/{chunk-ROM2NNJX.mjs → chunk-AO4QQVBB.mjs} +7 -7
- package/dist/chunk-ATGOHL6L.mjs +251 -0
- package/dist/{chunk-QIS3MLLN.js → chunk-ATOLZW76.js} +56 -38
- package/dist/{chunk-DONDDWQU.js → chunk-B6ER2B2D.js} +7 -4
- package/dist/chunk-BFNHRBWN.js +113 -0
- package/dist/{chunk-Y4KDPUTV.mjs → chunk-BMW2Z3G3.mjs} +1 -1
- package/dist/{chunk-5CGS2CPE.mjs → chunk-BQEVLY2O.mjs} +9 -32
- package/dist/{chunk-DCW4EFNZ.mjs → chunk-BS45PHVI.mjs} +124 -46
- package/dist/{chunk-BR7FIC54.js → chunk-CEAMHLIL.js} +78 -109
- package/dist/{chunk-3JANYZE3.js → chunk-CKXZONMO.js} +14 -15
- package/dist/{chunk-U5ZMB6RE.mjs → chunk-COCECPMG.mjs} +1 -15
- package/dist/{chunk-NTXRWISS.js → chunk-CODQKVQV.js} +15 -21
- package/dist/{chunk-JUIOGBBB.mjs → chunk-D5CR2P7K.mjs} +49 -50
- package/dist/{chunk-YMIO4A2U.mjs → chunk-D6MR5YRE.mjs} +11 -17
- package/dist/{chunk-HRTL6ZTJ.mjs → chunk-D7VMY6WX.mjs} +7 -7
- package/dist/{chunk-DPWYCNNS.mjs → chunk-DATFV22V.mjs} +107 -45
- package/dist/{chunk-2ONL76L4.js → chunk-DELTFEEJ.js} +11 -17
- package/dist/{chunk-ZK26QLSW.js → chunk-DN5GU5PC.js} +1 -37
- package/dist/{chunk-264DR3I2.mjs → chunk-DU2NXX75.mjs} +12 -10
- package/dist/{chunk-I7GSAVM7.js → chunk-DUQ7Q2GO.js} +2 -23
- package/dist/{chunk-OVFGETP7.mjs → chunk-DVFDA2P2.mjs} +16 -22
- package/dist/{chunk-4DCSGWCJ.js → chunk-EAMHOEAJ.js} +16 -16
- package/dist/{chunk-SUZB7IAA.js → chunk-EBQ4WSQS.js} +2 -2
- package/dist/chunk-EJCHNSVG.mjs +41 -0
- package/dist/chunk-ENVHCXM5.js +287 -0
- package/dist/{chunk-V2F7IOSD.mjs → chunk-EVOLGCGW.mjs} +20 -36
- package/dist/chunk-EZZG57TK.js +44 -0
- package/dist/{chunk-FA2BQGLO.js → chunk-F5AI7CPC.js} +20 -36
- package/dist/{chunk-U5VOJ4G2.js → chunk-FC7RXQTM.js} +2 -15
- package/dist/{chunk-4QIOLPLB.mjs → chunk-FDYZ7NTQ.mjs} +33 -56
- package/dist/{chunk-JFZDIY7D.js → chunk-FLAJKB2O.js} +12 -10
- package/dist/{chunk-7WLOYIVN.mjs → chunk-GALASVSG.mjs} +31 -75
- package/dist/{chunk-LFJQD3ZJ.js → chunk-GCKACSWD.js} +124 -46
- package/dist/chunk-GNKXBRXH.js +189 -0
- package/dist/{chunk-SZD2UCM5.mjs → chunk-GQPSQJ5I.mjs} +7 -14
- package/dist/{chunk-3VTOJCER.js → chunk-GWJSBFLF.js} +7 -7
- package/dist/{chunk-Y4W6MMYO.js → chunk-HNQZ5JRB.js} +30 -74
- package/dist/chunk-HTMTOXUO.mjs +186 -0
- package/dist/{chunk-H4NZLUJ4.mjs → chunk-HVVPFQW2.mjs} +14 -64
- package/dist/{chunk-SUM4V2WN.mjs → chunk-I2B4CO22.mjs} +22 -26
- package/dist/{chunk-IQA52MC4.js → chunk-I2BZURVP.js} +9 -11
- package/dist/{chunk-QKKXUTDF.js → chunk-I4LQXUMW.js} +6 -13
- package/dist/{chunk-WSMKQUNB.mjs → chunk-IGSAOYXD.mjs} +14 -15
- package/dist/{chunk-Y4QBDL7S.mjs → chunk-IIU6FINW.mjs} +180 -87
- package/dist/{chunk-6NWG6SG3.mjs → chunk-J5J4UYGP.mjs} +4 -24
- package/dist/chunk-K2U3FEL7.js +373 -0
- package/dist/chunk-K6HDRMPN.js +197 -0
- package/dist/{chunk-JYGZCLJH.js → chunk-KCJPJQIS.js} +19 -19
- package/dist/{chunk-P2DJR6YG.js → chunk-KUJ75OHX.js} +28 -69
- package/dist/{chunk-HSXPJCRK.js → chunk-KVZLGW45.js} +15 -15
- package/dist/{chunk-YLILPFDU.js → chunk-LAAPLTP3.js} +2 -5
- package/dist/{chunk-ZCPYALXT.mjs → chunk-LBGTABIU.mjs} +3 -3
- package/dist/chunk-LDCTSE6Y.mjs +60 -0
- package/dist/{chunk-LQYBXAL4.mjs → chunk-LDN2MZEU.mjs} +132 -66
- package/dist/{chunk-OTTMBYP2.mjs → chunk-LLK2OK3K.mjs} +5 -5
- package/dist/chunk-LNWRZKX2.js +64 -0
- package/dist/{chunk-74PW5YAR.mjs → chunk-LRHJZP2C.mjs} +20 -19
- package/dist/chunk-M7EBWJZ5.mjs +41 -0
- package/dist/chunk-MB7W46IY.mjs +193 -0
- package/dist/{chunk-TT2SIKZ2.mjs → chunk-MJ7RGL34.mjs} +7 -6
- package/dist/{chunk-E6LSCXQM.mjs → chunk-MKBIVETW.mjs} +7 -14
- package/dist/chunk-MMQ34S5M.mjs +263 -0
- package/dist/chunk-MVIHUPCX.js +62 -0
- package/dist/{chunk-EK7Z226S.mjs → chunk-MYF3ZRV3.mjs} +7 -7
- package/dist/{chunk-36KWP3NX.js → chunk-N3T6BQGK.js} +2 -2
- package/dist/{chunk-AYNQTRO4.mjs → chunk-ND4XDRYR.mjs} +60 -84
- package/dist/{chunk-3G2QV4TL.js → chunk-NGW5UMAN.js} +19 -19
- package/dist/{chunk-XMBCYUDD.mjs → chunk-NHCCPMLC.mjs} +47 -121
- package/dist/{chunk-5XW532JA.js → chunk-NOTJRUAK.js} +14 -34
- package/dist/{chunk-UYWPZDRU.mjs → chunk-NTUGEHEI.mjs} +4 -4
- package/dist/{chunk-CQJQJERX.mjs → chunk-NV6GZPJP.mjs} +4 -11
- package/dist/{chunk-WEFTEDUS.js → chunk-O2SABM5H.js} +13 -26
- package/dist/{chunk-42ILM3BR.js → chunk-OO5UMN5M.js} +131 -155
- package/dist/chunk-OOKS4KMK.js +34 -0
- package/dist/{chunk-YZM7I5AM.mjs → chunk-P2ASDGNV.mjs} +120 -35
- package/dist/{chunk-25P4HFCO.mjs → chunk-P47EXOAW.mjs} +8 -17
- package/dist/{chunk-ZLMJ3SZQ.js → chunk-PCGHIFIJ.js} +3 -4
- package/dist/{chunk-HOJP5HTJ.js → chunk-PICYE2CM.js} +12 -45
- package/dist/chunk-PNKVD2UK.js +26 -0
- package/dist/{chunk-F6TZCXCL.js → chunk-PQMZ3YN3.js} +13 -63
- package/dist/{chunk-VWPHAKBA.mjs → chunk-PVPLDEC5.mjs} +7 -14
- package/dist/{chunk-6E73XACM.mjs → chunk-Q6OYCTQO.mjs} +1 -37
- package/dist/{chunk-L5QECL5P.mjs → chunk-QERCB3HM.mjs} +36 -55
- package/dist/{chunk-4FUWM7WP.js → chunk-QK3KKTYV.js} +21 -25
- package/dist/{chunk-4VHNAGSP.js → chunk-QLK4ZC2B.js} +8 -8
- package/dist/chunk-QY6PYAJA.js +174 -0
- package/dist/{chunk-I3Z247PO.js → chunk-R77ZKZ5F.js} +19 -18
- package/dist/{chunk-3ZXOARGD.mjs → chunk-R7DMRLHV.mjs} +10 -64
- package/dist/{chunk-6AZFL3WJ.js → chunk-R7S7O3YU.js} +180 -87
- package/dist/{chunk-XS7OPLPB.mjs → chunk-RKPYLBPU.mjs} +15 -15
- package/dist/{chunk-HXHMGLWX.js → chunk-ROKUXJBS.js} +9 -63
- package/dist/{chunk-IE57VDN4.js → chunk-RY2I56HB.js} +11 -38
- package/dist/{chunk-3F2QHERR.js → chunk-S4GFEADD.js} +36 -55
- package/dist/{chunk-GGV4STQD.js → chunk-SKV2HHBC.js} +3 -23
- package/dist/{chunk-FJ2ZZHIW.js → chunk-SLYUQ67P.js} +17 -26
- package/dist/{chunk-LGKMVPIB.js → chunk-SWOQMMOT.js} +14 -15
- package/dist/chunk-T4DF24UV.js +108 -0
- package/dist/chunk-T77L326M.mjs +370 -0
- package/dist/{chunk-GO3JWOB6.mjs → chunk-TG4PXQKX.mjs} +2 -3
- package/dist/{chunk-RZ6K7TWA.js → chunk-TGLAMZ4N.js} +120 -35
- package/dist/{chunk-U2JWZTDN.js → chunk-TLXEFLPA.js} +6 -13
- package/dist/chunk-TQOMX62N.js +104 -0
- package/dist/{chunk-LFIZI5Z4.mjs → chunk-U6WHPSWN.mjs} +6 -19
- package/dist/{chunk-JBSSXJZ2.mjs → chunk-U7MDGSCQ.mjs} +80 -111
- package/dist/{chunk-54IA7YWJ.js → chunk-UHGRUTGW.js} +2 -2
- package/dist/{chunk-YS2WMH5I.js → chunk-UKJSG75K.js} +10 -57
- package/dist/{chunk-W57RIOYG.mjs → chunk-URYEEQD7.mjs} +4 -5
- package/dist/{chunk-JQ73I2Q6.js → chunk-UUGAOKYR.js} +3 -4
- package/dist/{chunk-UZMGKLJE.js → chunk-UWVUDZVA.js} +4 -11
- package/dist/chunk-VBXPDCRX.js +254 -0
- package/dist/{chunk-IK3ZLVPR.js → chunk-VTLTKTCK.js} +6 -19
- package/dist/{chunk-G6YTJ7IE.mjs → chunk-VURU7TLN.mjs} +30 -53
- package/dist/{chunk-JSERNUJX.mjs → chunk-W2OCMRRH.mjs} +11 -58
- package/dist/{chunk-RBZ7ADKL.js → chunk-W36SYMVH.js} +9 -18
- package/dist/{chunk-ZAEX6EMJ.js → chunk-WC4B72TZ.js} +29 -52
- package/dist/{chunk-R2DKSTP4.js → chunk-WCZGYU7M.js} +9 -32
- package/dist/{chunk-SKUTVXHP.js → chunk-WEFQCJAG.js} +5 -8
- package/dist/chunk-WIPPSHI6.mjs +111 -0
- package/dist/{chunk-3JWW6FIN.mjs → chunk-WMM3FR3W.mjs} +7 -4
- package/dist/{chunk-U65XZCPB.js → chunk-WPIDP6IG.js} +1 -15
- package/dist/{chunk-VP4ZSIY3.mjs → chunk-WQXZ3234.mjs} +12 -39
- package/dist/{chunk-CF5D36KB.mjs → chunk-XCJONKFL.mjs} +12 -45
- package/dist/{chunk-HWHMM3QE.js → chunk-XEU42TLP.js} +6 -5
- package/dist/{chunk-TKTAGTDP.js → chunk-XV5DEK27.js} +32 -55
- package/dist/{chunk-HPTXW2VK.mjs → chunk-XYYZAQ6Z.mjs} +2 -5
- package/dist/{chunk-SHXM2ZXC.mjs → chunk-Y4V7BOVR.mjs} +3 -16
- package/dist/{chunk-YRFK5X43.js → chunk-Y5AZNO2W.js} +60 -71
- package/dist/chunk-YCI7GRQY.mjs +101 -0
- package/dist/{chunk-FVL7HDPG.mjs → chunk-YCUO6ZKS.mjs} +61 -72
- package/dist/chunk-YEHKQ3JZ.mjs +105 -0
- package/dist/{chunk-WNLRR2NM.mjs → chunk-YXN3YY5Y.mjs} +6 -9
- package/dist/{chunk-ZMU5PLEQ.js → chunk-YZK2HXRT.js} +63 -87
- package/dist/{chunk-I77ACTTI.mjs → chunk-YZP4K6KI.mjs} +18 -19
- package/dist/chunk-ZA2PLF7O.mjs +60 -0
- package/dist/chunk-ZED7TU62.js +85 -0
- package/dist/{chunk-6NHAWLQA.mjs → chunk-ZLYXAZUY.mjs} +132 -156
- package/dist/chunk-ZNVQ2OFX.js +44 -0
- package/dist/chunk-ZREPAOSW.mjs +284 -0
- package/dist/{chunk-PZOSCHRV.mjs → chunk-ZTJTIQZY.mjs} +54 -91
- package/dist/{chunk-WPWMXSXK.js → chunk-ZZ5LMO3X.js} +66 -73
- package/dist/components/ActivityFeed.js +11 -10
- package/dist/components/ActivityFeed.mjs +9 -8
- package/dist/components/Alert.js +5 -3
- package/dist/components/Alert.mjs +3 -1
- package/dist/components/Anchor.js +5 -4
- package/dist/components/Anchor.mjs +2 -1
- package/dist/components/AnchorLink.js +5 -4
- package/dist/components/AnchorLink.mjs +3 -2
- package/dist/components/AreaChart.d.mts +29 -2
- package/dist/components/AreaChart.d.ts +29 -2
- package/dist/components/AreaChart.js +5 -4
- package/dist/components/AreaChart.mjs +3 -2
- package/dist/components/Avatar.js +4 -3
- package/dist/components/Avatar.mjs +2 -1
- package/dist/components/BackTop.js +4 -3
- package/dist/components/BackTop.mjs +2 -1
- package/dist/components/Badge.d.mts +10 -93
- package/dist/components/Badge.d.ts +10 -93
- package/dist/components/Badge.js +4 -3
- package/dist/components/Badge.mjs +2 -1
- package/dist/components/BarChart.d.mts +58 -1
- package/dist/components/BarChart.d.ts +58 -1
- package/dist/components/BarChart.js +5 -4
- package/dist/components/BarChart.mjs +3 -2
- package/dist/components/Breadcrumb.js +5 -4
- package/dist/components/Breadcrumb.mjs +2 -1
- package/dist/components/BreadcrumbItem.d.mts +8 -6
- package/dist/components/BreadcrumbItem.d.ts +8 -6
- package/dist/components/BreadcrumbItem.js +5 -4
- package/dist/components/BreadcrumbItem.mjs +3 -2
- package/dist/components/Button.d.mts +4 -4
- package/dist/components/Button.d.ts +4 -4
- package/dist/components/Button.js +4 -3
- package/dist/components/Button.mjs +2 -1
- package/dist/components/Card.js +4 -3
- package/dist/components/Card.mjs +2 -1
- package/dist/components/Carousel.js +4 -3
- package/dist/components/Carousel.mjs +2 -1
- package/dist/components/ChartAxis.js +1 -0
- package/dist/components/ChartAxis.mjs +1 -0
- package/dist/components/ChartCanvas.js +1 -0
- package/dist/components/ChartCanvas.mjs +1 -0
- package/dist/components/ChartGrid.js +1 -0
- package/dist/components/ChartGrid.mjs +1 -0
- package/dist/components/ChartLegend.d.mts +1 -1
- package/dist/components/ChartLegend.d.ts +1 -1
- package/dist/components/ChartLegend.js +1 -0
- package/dist/components/ChartLegend.mjs +1 -0
- package/dist/components/ChartSeries.js +1 -0
- package/dist/components/ChartSeries.mjs +1 -0
- package/dist/components/ChartTooltip.js +1 -0
- package/dist/components/ChartTooltip.mjs +1 -0
- package/dist/components/ChatWindow.js +8 -7
- package/dist/components/ChatWindow.mjs +6 -5
- package/dist/components/Checkbox.js +4 -3
- package/dist/components/Checkbox.mjs +2 -1
- package/dist/components/CheckboxGroup.js +1 -0
- package/dist/components/CheckboxGroup.mjs +1 -0
- package/dist/components/Code.js +4 -3
- package/dist/components/Code.mjs +2 -1
- package/dist/components/Col.d.mts +8 -28
- package/dist/components/Col.d.ts +8 -28
- package/dist/components/Col.js +4 -3
- package/dist/components/Col.mjs +3 -2
- package/dist/components/Collapse.js +5 -4
- package/dist/components/Collapse.mjs +2 -1
- package/dist/components/CollapsePanel.js +5 -4
- package/dist/components/CollapsePanel.mjs +3 -2
- package/dist/components/CommentThread.js +9 -8
- package/dist/components/CommentThread.mjs +7 -6
- package/dist/components/ConfigProvider.js +1 -0
- package/dist/components/ConfigProvider.mjs +1 -0
- package/dist/components/Container.js +1 -0
- package/dist/components/Container.mjs +1 -0
- package/dist/components/Content.js +4 -3
- package/dist/components/Content.mjs +2 -1
- package/dist/components/CropUpload.d.mts +97 -0
- package/dist/components/CropUpload.d.ts +97 -0
- package/dist/components/CropUpload.js +20 -0
- package/dist/components/CropUpload.mjs +5 -0
- package/dist/components/DataTableWithToolbar.d.mts +2 -2
- package/dist/components/DataTableWithToolbar.d.ts +2 -2
- package/dist/components/DataTableWithToolbar.js +9 -11
- package/dist/components/DataTableWithToolbar.mjs +7 -9
- package/dist/components/DatePicker.js +4 -3
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/Descriptions.d.ts +2 -2
- package/dist/components/Descriptions.js +4 -3
- package/dist/components/Descriptions.mjs +2 -1
- package/dist/components/Divider.d.mts +10 -18
- package/dist/components/Divider.d.ts +10 -18
- package/dist/components/Divider.js +4 -3
- package/dist/components/Divider.mjs +2 -1
- package/dist/components/DonutChart.d.mts +66 -0
- package/dist/components/DonutChart.d.ts +66 -0
- package/dist/components/DonutChart.js +6 -5
- package/dist/components/DonutChart.mjs +4 -3
- package/dist/components/Drawer.d.mts +2 -2
- package/dist/components/Drawer.d.ts +2 -2
- package/dist/components/Drawer.js +4 -3
- package/dist/components/Drawer.mjs +2 -1
- package/dist/components/Dropdown.d.mts +18 -1
- package/dist/components/Dropdown.d.ts +18 -1
- package/dist/components/Dropdown.js +5 -4
- package/dist/components/Dropdown.mjs +2 -1
- package/dist/components/DropdownItem.js +5 -4
- package/dist/components/DropdownItem.mjs +3 -2
- package/dist/components/DropdownMenu.js +1 -0
- package/dist/components/DropdownMenu.mjs +1 -0
- package/dist/components/Footer.js +4 -3
- package/dist/components/Footer.mjs +2 -1
- package/dist/components/Form.js +5 -4
- package/dist/components/Form.mjs +2 -1
- package/dist/components/FormItem.js +5 -4
- package/dist/components/FormItem.mjs +3 -2
- package/dist/components/FormWizard.d.mts +17 -7
- package/dist/components/FormWizard.d.ts +17 -7
- package/dist/components/FormWizard.js +8 -7
- package/dist/components/FormWizard.mjs +6 -5
- package/dist/components/Header.js +4 -3
- package/dist/components/Header.mjs +2 -1
- package/dist/components/Icon.d.mts +1 -33
- package/dist/components/Icon.d.ts +1 -33
- package/dist/components/Icon.js +4 -3
- package/dist/components/Icon.mjs +2 -1
- package/dist/components/Image.d.mts +119 -0
- package/dist/components/Image.d.ts +119 -0
- package/dist/components/Image.js +22 -0
- package/dist/components/Image.mjs +3 -0
- package/dist/components/ImageCropper.d.mts +105 -0
- package/dist/components/ImageCropper.d.ts +105 -0
- package/dist/components/ImageCropper.js +17 -0
- package/dist/components/ImageCropper.mjs +2 -0
- package/dist/components/ImageGroup.d.mts +30 -0
- package/dist/components/ImageGroup.d.ts +30 -0
- package/dist/components/ImageGroup.js +22 -0
- package/dist/components/ImageGroup.mjs +3 -0
- package/dist/components/ImagePreview.d.mts +97 -0
- package/dist/components/ImagePreview.d.ts +97 -0
- package/dist/components/ImagePreview.js +17 -0
- package/dist/components/ImagePreview.mjs +5 -0
- package/dist/components/Input.d.mts +43 -70
- package/dist/components/Input.d.ts +43 -70
- package/dist/components/Input.js +4 -3
- package/dist/components/Input.mjs +2 -1
- package/dist/components/Layout.js +4 -3
- package/dist/components/Layout.mjs +2 -1
- package/dist/components/LineChart.d.mts +37 -1
- package/dist/components/LineChart.d.ts +37 -1
- package/dist/components/LineChart.js +5 -4
- package/dist/components/LineChart.mjs +3 -2
- package/dist/components/Link.d.mts +11 -83
- package/dist/components/Link.d.ts +11 -83
- package/dist/components/Link.js +4 -3
- package/dist/components/Link.mjs +2 -1
- package/dist/components/List.js +4 -3
- package/dist/components/List.mjs +2 -1
- package/dist/components/Loading.d.mts +5 -86
- package/dist/components/Loading.d.ts +5 -86
- package/dist/components/Loading.js +4 -3
- package/dist/components/Loading.mjs +2 -1
- package/dist/components/Menu.d.mts +4 -4
- package/dist/components/Menu.d.ts +4 -4
- package/dist/components/Menu.js +5 -4
- package/dist/components/Menu.mjs +2 -1
- package/dist/components/MenuItem.js +5 -4
- package/dist/components/MenuItem.mjs +3 -2
- package/dist/components/MenuItemGroup.js +1 -0
- package/dist/components/MenuItemGroup.mjs +1 -0
- package/dist/components/Message.d.mts +0 -18
- package/dist/components/Message.d.ts +0 -18
- package/dist/components/Message.js +6 -4
- package/dist/components/Message.mjs +3 -1
- package/dist/components/Modal.d.mts +2 -2
- package/dist/components/Modal.d.ts +2 -2
- package/dist/components/Modal.js +5 -4
- package/dist/components/Modal.mjs +3 -2
- package/dist/components/Notification.d.mts +0 -15
- package/dist/components/Notification.d.ts +0 -15
- package/dist/components/Notification.js +6 -4
- package/dist/components/Notification.mjs +3 -1
- package/dist/components/NotificationCenter.js +11 -10
- package/dist/components/NotificationCenter.mjs +9 -8
- package/dist/components/Pagination.js +4 -3
- package/dist/components/Pagination.mjs +2 -1
- package/dist/components/PieChart.d.mts +45 -0
- package/dist/components/PieChart.d.ts +45 -0
- package/dist/components/PieChart.js +5 -4
- package/dist/components/PieChart.mjs +3 -2
- package/dist/components/Popconfirm.d.mts +26 -96
- package/dist/components/Popconfirm.d.ts +26 -96
- package/dist/components/Popconfirm.js +5 -3
- package/dist/components/Popconfirm.mjs +3 -1
- package/dist/components/Popover.d.mts +20 -72
- package/dist/components/Popover.d.ts +20 -72
- package/dist/components/Popover.js +5 -3
- package/dist/components/Popover.mjs +3 -1
- package/dist/components/Progress.d.mts +6 -130
- package/dist/components/Progress.d.ts +6 -130
- package/dist/components/Progress.js +4 -3
- package/dist/components/Progress.mjs +2 -1
- package/dist/components/RadarChart.d.mts +71 -8
- package/dist/components/RadarChart.d.ts +71 -8
- package/dist/components/RadarChart.js +6 -4
- package/dist/components/RadarChart.mjs +4 -2
- package/dist/components/Radio.js +5 -4
- package/dist/components/Radio.mjs +3 -2
- package/dist/components/RadioGroup.js +5 -4
- package/dist/components/RadioGroup.mjs +2 -1
- package/dist/components/Row.js +4 -3
- package/dist/components/Row.mjs +2 -1
- package/dist/components/ScatterChart.d.mts +45 -0
- package/dist/components/ScatterChart.d.ts +45 -0
- package/dist/components/ScatterChart.js +5 -4
- package/dist/components/ScatterChart.mjs +3 -2
- package/dist/components/Select.js +4 -3
- package/dist/components/Select.mjs +2 -1
- package/dist/components/Sidebar.js +4 -3
- package/dist/components/Sidebar.mjs +2 -1
- package/dist/components/Skeleton.d.mts +3 -79
- package/dist/components/Skeleton.d.ts +3 -79
- package/dist/components/Skeleton.js +4 -3
- package/dist/components/Skeleton.mjs +2 -1
- package/dist/components/Slider.js +4 -3
- package/dist/components/Slider.mjs +2 -1
- package/dist/components/Space.d.mts +2 -7
- package/dist/components/Space.d.ts +2 -7
- package/dist/components/Space.js +4 -3
- package/dist/components/Space.mjs +2 -1
- package/dist/components/Steps.js +5 -4
- package/dist/components/Steps.mjs +2 -1
- package/dist/components/StepsItem.js +5 -4
- package/dist/components/StepsItem.mjs +3 -2
- package/dist/components/SubMenu.js +5 -4
- package/dist/components/SubMenu.mjs +3 -2
- package/dist/components/Switch.js +4 -3
- package/dist/components/Switch.mjs +2 -1
- package/dist/components/TabPane.d.mts +8 -6
- package/dist/components/TabPane.d.ts +8 -6
- package/dist/components/TabPane.js +5 -4
- package/dist/components/TabPane.mjs +3 -2
- package/dist/components/Table.d.mts +1 -1
- package/dist/components/Table.d.ts +1 -1
- package/dist/components/Table.js +4 -3
- package/dist/components/Table.mjs +2 -1
- package/dist/components/Tabs.js +5 -4
- package/dist/components/Tabs.mjs +2 -1
- package/dist/components/Tag.d.mts +4 -4
- package/dist/components/Tag.d.ts +4 -4
- package/dist/components/Tag.js +4 -3
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/Text.d.mts +2 -12
- package/dist/components/Text.d.ts +2 -12
- package/dist/components/Text.js +4 -3
- package/dist/components/Text.mjs +2 -1
- package/dist/components/Textarea.js +4 -3
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/TimePicker.js +4 -3
- package/dist/components/TimePicker.mjs +2 -1
- package/dist/components/Timeline.js +4 -3
- package/dist/components/Timeline.mjs +2 -1
- package/dist/components/Tooltip.d.mts +16 -58
- package/dist/components/Tooltip.d.ts +16 -58
- package/dist/components/Tooltip.js +5 -3
- package/dist/components/Tooltip.mjs +3 -1
- package/dist/components/Tree.js +4 -3
- package/dist/components/Tree.mjs +2 -1
- package/dist/components/Upload.js +4 -3
- package/dist/components/Upload.mjs +2 -1
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +225 -195
- package/dist/index.mjs +90 -79
- package/package.json +2 -2
- package/dist/chunk-5MKAKQK6.mjs +0 -124
- package/dist/chunk-6WIVOHTB.mjs +0 -157
- package/dist/chunk-7SCADPTJ.mjs +0 -79
- package/dist/chunk-BXFYOGMO.js +0 -59
- package/dist/chunk-D45QLF65.js +0 -270
- package/dist/chunk-H6CUKJYY.mjs +0 -300
- package/dist/chunk-J7OYLV6I.mjs +0 -447
- package/dist/chunk-K6NKVCEO.js +0 -57
- package/dist/chunk-PQQUAUFM.mjs +0 -54
- package/dist/chunk-QJWFKTRQ.js +0 -160
- package/dist/chunk-R3YK5LUH.mjs +0 -267
- package/dist/chunk-RN25EUD2.js +0 -303
- package/dist/chunk-RUD3FPP2.js +0 -301
- package/dist/chunk-T3TN26BD.mjs +0 -56
- package/dist/chunk-U6JCAP2C.js +0 -188
- package/dist/chunk-W2CCYPSO.mjs +0 -185
- package/dist/chunk-WH6OTVYF.js +0 -450
- package/dist/chunk-XLSGZUPU.mjs +0 -298
- package/dist/chunk-Y6C455RB.js +0 -81
- package/dist/chunk-YFMXWX6H.js +0 -127
|
@@ -107,43 +107,74 @@ var Form = vue.defineComponent({
|
|
|
107
107
|
};
|
|
108
108
|
return Object.keys(merged).length > 0 ? merged : void 0;
|
|
109
109
|
};
|
|
110
|
-
const
|
|
111
|
-
|
|
110
|
+
const resolveFieldRules = (fieldName, rulesOverride) => {
|
|
111
|
+
return rulesOverride ?? fieldRules[fieldName] ?? props.rules?.[fieldName];
|
|
112
|
+
};
|
|
113
|
+
const runFieldValidation = async (fieldName, rulesOverride, trigger) => {
|
|
114
|
+
const effectiveFieldRules = resolveFieldRules(fieldName, rulesOverride);
|
|
112
115
|
if (!effectiveFieldRules) {
|
|
113
|
-
return;
|
|
116
|
+
return null;
|
|
114
117
|
}
|
|
115
118
|
const value = tigercatCore.getValueByPath(props.model, fieldName);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
);
|
|
123
|
-
const index = errors.findIndex((e) => e.field === fieldName);
|
|
124
|
-
if (index !== -1) {
|
|
125
|
-
errors.splice(index, 1);
|
|
119
|
+
return tigercatCore.validateField(fieldName, value, effectiveFieldRules, props.model, trigger);
|
|
120
|
+
};
|
|
121
|
+
const validateField = async (fieldName, rulesOverride, trigger) => {
|
|
122
|
+
const effectiveFieldRules = resolveFieldRules(fieldName, rulesOverride);
|
|
123
|
+
if (!effectiveFieldRules) {
|
|
124
|
+
return;
|
|
126
125
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
const error = await runFieldValidation(fieldName, rulesOverride, trigger);
|
|
127
|
+
const existingIndex = errors.findIndex((e) => e.field === fieldName);
|
|
128
|
+
const existingMessage = existingIndex !== -1 ? errors[existingIndex].message : null;
|
|
129
|
+
if (!error && existingMessage === null) ; else if (error && error === existingMessage) ; else {
|
|
130
|
+
if (existingIndex !== -1) {
|
|
131
|
+
errors.splice(existingIndex, 1);
|
|
132
|
+
}
|
|
133
|
+
if (error) {
|
|
134
|
+
errors.push({
|
|
135
|
+
field: fieldName,
|
|
136
|
+
message: error
|
|
137
|
+
});
|
|
138
|
+
}
|
|
132
139
|
}
|
|
133
140
|
emit("validate", fieldName, !error, error || void 0);
|
|
134
141
|
};
|
|
135
142
|
const validate = async () => {
|
|
143
|
+
errors.splice(0, errors.length);
|
|
136
144
|
const effectiveRules = getEffectiveRules();
|
|
137
145
|
if (!effectiveRules) {
|
|
138
146
|
return true;
|
|
139
147
|
}
|
|
140
148
|
const result = await tigercatCore.validateForm(props.model, effectiveRules);
|
|
141
|
-
errors.
|
|
142
|
-
if (result.errors.length > 0) {
|
|
143
|
-
errors.push(...result.errors);
|
|
144
|
-
}
|
|
149
|
+
errors.push(...result.errors);
|
|
145
150
|
return result.valid;
|
|
146
151
|
};
|
|
152
|
+
const validateFields = async (fieldNames) => {
|
|
153
|
+
if (!fieldNames || fieldNames.length === 0) {
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
const nextErrors = [];
|
|
157
|
+
const fieldSet = new Set(fieldNames);
|
|
158
|
+
for (const fieldName of fieldNames) {
|
|
159
|
+
const effectiveFieldRules = resolveFieldRules(fieldName);
|
|
160
|
+
if (!effectiveFieldRules) {
|
|
161
|
+
emit("validate", fieldName, true, void 0);
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
const error = await runFieldValidation(fieldName);
|
|
165
|
+
if (error) {
|
|
166
|
+
nextErrors.push({ field: fieldName, message: error });
|
|
167
|
+
}
|
|
168
|
+
emit("validate", fieldName, !error, error || void 0);
|
|
169
|
+
}
|
|
170
|
+
for (let i = errors.length - 1; i >= 0; i--) {
|
|
171
|
+
if (fieldSet.has(errors[i].field)) {
|
|
172
|
+
errors.splice(i, 1);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
errors.push(...nextErrors);
|
|
176
|
+
return nextErrors.length === 0;
|
|
177
|
+
};
|
|
147
178
|
const clearValidate = (fieldNames) => {
|
|
148
179
|
if (!fieldNames) {
|
|
149
180
|
errors.splice(0, errors.length);
|
|
@@ -162,22 +193,8 @@ var Form = vue.defineComponent({
|
|
|
162
193
|
};
|
|
163
194
|
const handleSubmit = async (event) => {
|
|
164
195
|
event.preventDefault();
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
errors.splice(0, errors.length);
|
|
168
|
-
emit("submit", { valid: true, values: props.model, errors });
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
const result = await tigercatCore.validateForm(props.model, effectiveRules);
|
|
172
|
-
errors.splice(0, errors.length);
|
|
173
|
-
if (result.errors.length > 0) {
|
|
174
|
-
errors.push(...result.errors);
|
|
175
|
-
}
|
|
176
|
-
emit("submit", {
|
|
177
|
-
valid: result.valid,
|
|
178
|
-
values: props.model,
|
|
179
|
-
errors
|
|
180
|
-
});
|
|
196
|
+
const valid = await validate();
|
|
197
|
+
emit("submit", { valid, values: props.model, errors });
|
|
181
198
|
};
|
|
182
199
|
const formContextValue = vue.computed(() => ({
|
|
183
200
|
model: props.model,
|
|
@@ -197,6 +214,7 @@ var Form = vue.defineComponent({
|
|
|
197
214
|
vue.provide(FormContextKey, formContextValue);
|
|
198
215
|
expose({
|
|
199
216
|
validate,
|
|
217
|
+
validateFields,
|
|
200
218
|
validateField,
|
|
201
219
|
clearValidate,
|
|
202
220
|
resetFields
|
|
@@ -160,7 +160,6 @@ var Upload = vue.defineComponent({
|
|
|
160
160
|
setup(props, { emit, slots, attrs }) {
|
|
161
161
|
const inputRef = vue.ref(null);
|
|
162
162
|
const isDragging = vue.ref(false);
|
|
163
|
-
const attrsRecord = attrs;
|
|
164
163
|
const spinnerSvg = tigercatCore.getSpinnerSVG("spinner");
|
|
165
164
|
const config = chunkLUN3PRLX_js.useTigerConfig();
|
|
166
165
|
const mergedLocale = vue.computed(() => tigercatCore.mergeTigerLocale(config.value.locale, props.locale));
|
|
@@ -349,7 +348,7 @@ var Upload = vue.defineComponent({
|
|
|
349
348
|
"button",
|
|
350
349
|
{
|
|
351
350
|
type: "button",
|
|
352
|
-
class: tigercatCore.getUploadButtonClasses(props.
|
|
351
|
+
class: tigercatCore.getUploadButtonClasses(props.disabled),
|
|
353
352
|
onClick: handleClick,
|
|
354
353
|
disabled: props.disabled,
|
|
355
354
|
"aria-label": labels.value.buttonAriaLabel
|
|
@@ -613,8 +612,12 @@ var Upload = vue.defineComponent({
|
|
|
613
612
|
"div",
|
|
614
613
|
{
|
|
615
614
|
...attrs,
|
|
616
|
-
class: tigercatCore.classNames(
|
|
617
|
-
|
|
615
|
+
class: tigercatCore.classNames(
|
|
616
|
+
"tiger-upload",
|
|
617
|
+
props.className,
|
|
618
|
+
tigercatCore.coerceClassValue(attrs.class)
|
|
619
|
+
),
|
|
620
|
+
style: tigercatCore.mergeStyleValues(attrs.style, props.style)
|
|
618
621
|
},
|
|
619
622
|
[renderInput(), renderUploadButton(), renderFileList()]
|
|
620
623
|
);
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkIVTBNUKQ_js = require('./chunk-IVTBNUKQ.js');
|
|
4
|
+
var vue = require('vue');
|
|
5
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
|
+
|
|
7
|
+
function useFloatingPopup(options) {
|
|
8
|
+
const { props, emit, multiTrigger = true } = options;
|
|
9
|
+
const internalVisible = vue.ref(props.visible ?? props.defaultVisible ?? false);
|
|
10
|
+
const isControlled = vue.computed(() => props.visible !== void 0);
|
|
11
|
+
vue.watch(
|
|
12
|
+
() => props.visible,
|
|
13
|
+
(next) => {
|
|
14
|
+
if (next !== void 0) internalVisible.value = next;
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
const currentVisible = vue.computed(
|
|
18
|
+
() => isControlled.value ? Boolean(props.visible) : internalVisible.value
|
|
19
|
+
);
|
|
20
|
+
const setVisible = (next) => {
|
|
21
|
+
if (props.disabled && next) return;
|
|
22
|
+
if (!isControlled.value) internalVisible.value = next;
|
|
23
|
+
emit("update:visible", next);
|
|
24
|
+
emit("visible-change", next);
|
|
25
|
+
};
|
|
26
|
+
const containerRef = vue.ref(null);
|
|
27
|
+
const triggerRef = vue.ref(null);
|
|
28
|
+
const floatingRef = vue.ref(null);
|
|
29
|
+
const {
|
|
30
|
+
x,
|
|
31
|
+
y,
|
|
32
|
+
placement: actualPlacement
|
|
33
|
+
} = chunkIVTBNUKQ_js.useVueFloating({
|
|
34
|
+
referenceRef: triggerRef,
|
|
35
|
+
floatingRef,
|
|
36
|
+
enabled: currentVisible,
|
|
37
|
+
placement: props.placement ?? "top",
|
|
38
|
+
offset: props.offset ?? 8
|
|
39
|
+
});
|
|
40
|
+
let outsideClickCleanup;
|
|
41
|
+
let escapeKeyCleanup;
|
|
42
|
+
const effectiveTrigger = vue.computed(
|
|
43
|
+
() => multiTrigger ? props.trigger ?? "click" : "click"
|
|
44
|
+
);
|
|
45
|
+
vue.watch(
|
|
46
|
+
[currentVisible, effectiveTrigger],
|
|
47
|
+
([visible, trigger]) => {
|
|
48
|
+
outsideClickCleanup?.();
|
|
49
|
+
escapeKeyCleanup?.();
|
|
50
|
+
outsideClickCleanup = void 0;
|
|
51
|
+
escapeKeyCleanup = void 0;
|
|
52
|
+
if (visible && trigger === "click") {
|
|
53
|
+
outsideClickCleanup = chunkIVTBNUKQ_js.useVueClickOutside({
|
|
54
|
+
enabled: currentVisible,
|
|
55
|
+
containerRef,
|
|
56
|
+
onOutsideClick: () => setVisible(false),
|
|
57
|
+
defer: true
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (visible && trigger !== "manual") {
|
|
61
|
+
escapeKeyCleanup = chunkIVTBNUKQ_js.useVueEscapeKey({
|
|
62
|
+
enabled: currentVisible,
|
|
63
|
+
onEscape: () => setVisible(false)
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{ immediate: true }
|
|
68
|
+
);
|
|
69
|
+
vue.onBeforeUnmount(() => {
|
|
70
|
+
outsideClickCleanup?.();
|
|
71
|
+
escapeKeyCleanup?.();
|
|
72
|
+
});
|
|
73
|
+
const floatingStyles = vue.computed(() => ({
|
|
74
|
+
position: "absolute",
|
|
75
|
+
left: `${x.value}px`,
|
|
76
|
+
top: `${y.value}px`,
|
|
77
|
+
transformOrigin: tigercatCore.getTransformOrigin(actualPlacement.value),
|
|
78
|
+
zIndex: 1e3
|
|
79
|
+
}));
|
|
80
|
+
const handleToggle = () => {
|
|
81
|
+
if (!props.disabled) setVisible(!currentVisible.value);
|
|
82
|
+
};
|
|
83
|
+
const handleShow = () => {
|
|
84
|
+
if (!props.disabled) setVisible(true);
|
|
85
|
+
};
|
|
86
|
+
const handleHide = () => {
|
|
87
|
+
if (!props.disabled) setVisible(false);
|
|
88
|
+
};
|
|
89
|
+
const triggerHandlers = vue.computed(() => {
|
|
90
|
+
if (!multiTrigger) {
|
|
91
|
+
return { onClick: handleToggle };
|
|
92
|
+
}
|
|
93
|
+
return tigercatCore.buildTriggerHandlerMap(
|
|
94
|
+
effectiveTrigger.value,
|
|
95
|
+
{ toggle: handleToggle, show: handleShow, hide: handleHide },
|
|
96
|
+
"vue"
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
return {
|
|
100
|
+
currentVisible,
|
|
101
|
+
setVisible,
|
|
102
|
+
containerRef,
|
|
103
|
+
triggerRef,
|
|
104
|
+
floatingRef,
|
|
105
|
+
x,
|
|
106
|
+
y,
|
|
107
|
+
actualPlacement,
|
|
108
|
+
floatingStyles,
|
|
109
|
+
triggerHandlers
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
exports.useFloatingPopup = useFloatingPopup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnchorContextKey } from './chunk-
|
|
1
|
+
import { AnchorContextKey } from './chunk-LRHJZP2C.mjs';
|
|
2
2
|
import { defineComponent, inject, onMounted, onBeforeUnmount, computed, h } from 'vue';
|
|
3
3
|
import { classNames, getAnchorLinkClasses, coerceClassValue } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StepsContextKey } from './chunk-
|
|
1
|
+
import { StepsContextKey } from './chunk-7UU4PULK.mjs';
|
|
2
2
|
import { defineComponent, inject, computed, h } from 'vue';
|
|
3
|
-
import { calculateStepStatus, classNames, getStepItemClasses, coerceClassValue, getStepIconClasses, getStepTailClasses, getStepContentClasses, getStepTitleClasses, getStepDescriptionClasses, mergeStyleValues,
|
|
3
|
+
import { calculateStepStatus, classNames, getStepItemClasses, coerceClassValue, getStepIconClasses, getStepTailClasses, getStepContentClasses, getStepTitleClasses, getStepDescriptionClasses, mergeStyleValues, stepFinishChar } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
var StepsItem = defineComponent({
|
|
6
6
|
name: "TigerStepsItem",
|
|
@@ -73,9 +73,6 @@ var StepsItem = defineComponent({
|
|
|
73
73
|
simple: false,
|
|
74
74
|
clickable: false
|
|
75
75
|
});
|
|
76
|
-
const attrsRecord = attrs;
|
|
77
|
-
const attrsClass = attrsRecord.class;
|
|
78
|
-
const attrsStyle = attrsRecord.style;
|
|
79
76
|
const stepStatus = computed(() => {
|
|
80
77
|
return calculateStepStatus(
|
|
81
78
|
props.stepIndex,
|
|
@@ -86,9 +83,9 @@ var StepsItem = defineComponent({
|
|
|
86
83
|
});
|
|
87
84
|
const itemClasses = computed(() => {
|
|
88
85
|
return classNames(
|
|
89
|
-
getStepItemClasses(stepsContext.direction, props.isLast
|
|
86
|
+
getStepItemClasses(stepsContext.direction, props.isLast),
|
|
90
87
|
props.className,
|
|
91
|
-
coerceClassValue(
|
|
88
|
+
coerceClassValue(attrs.class)
|
|
92
89
|
);
|
|
93
90
|
});
|
|
94
91
|
const iconClasses = computed(() => {
|
|
@@ -101,10 +98,10 @@ var StepsItem = defineComponent({
|
|
|
101
98
|
);
|
|
102
99
|
});
|
|
103
100
|
const tailClasses = computed(() => {
|
|
104
|
-
return getStepTailClasses(stepsContext.direction, stepStatus.value, props.isLast);
|
|
101
|
+
return getStepTailClasses(stepsContext.direction, stepStatus.value, props.isLast, stepsContext.size, stepsContext.simple);
|
|
105
102
|
});
|
|
106
103
|
const contentClasses = computed(() => {
|
|
107
|
-
return getStepContentClasses(stepsContext.direction
|
|
104
|
+
return getStepContentClasses(stepsContext.direction);
|
|
108
105
|
});
|
|
109
106
|
const titleClasses = computed(() => {
|
|
110
107
|
return getStepTitleClasses(
|
|
@@ -130,27 +127,7 @@ var StepsItem = defineComponent({
|
|
|
130
127
|
return h("div", { class: iconClasses.value }, props.icon);
|
|
131
128
|
}
|
|
132
129
|
if (stepStatus.value === "finish") {
|
|
133
|
-
return h(
|
|
134
|
-
"div",
|
|
135
|
-
{ class: iconClasses.value },
|
|
136
|
-
h(
|
|
137
|
-
"svg",
|
|
138
|
-
{
|
|
139
|
-
class: stepFinishIconSvgClasses,
|
|
140
|
-
fill: "none",
|
|
141
|
-
stroke: "currentColor",
|
|
142
|
-
viewBox: stepFinishIconViewBox,
|
|
143
|
-
"aria-hidden": "true",
|
|
144
|
-
focusable: "false"
|
|
145
|
-
},
|
|
146
|
-
h("path", {
|
|
147
|
-
"stroke-linecap": stepFinishIconPathStrokeLinecap,
|
|
148
|
-
"stroke-linejoin": stepFinishIconPathStrokeLinejoin,
|
|
149
|
-
"stroke-width": stepFinishIconPathStrokeWidth,
|
|
150
|
-
d: stepFinishIconPathD
|
|
151
|
-
})
|
|
152
|
-
)
|
|
153
|
-
);
|
|
130
|
+
return h("div", { class: iconClasses.value, "aria-hidden": "true" }, stepFinishChar);
|
|
154
131
|
}
|
|
155
132
|
return h("div", { class: iconClasses.value }, String(props.stepIndex + 1));
|
|
156
133
|
};
|
|
@@ -184,13 +161,13 @@ var StepsItem = defineComponent({
|
|
|
184
161
|
}
|
|
185
162
|
return h("div", { class: contentClasses.value }, children);
|
|
186
163
|
};
|
|
187
|
-
const mergedStyle = computed(() => mergeStyleValues(
|
|
164
|
+
const mergedStyle = computed(() => mergeStyleValues(attrs.style, props.style));
|
|
188
165
|
return () => {
|
|
189
166
|
const {
|
|
190
167
|
class: _class,
|
|
191
168
|
style: _style,
|
|
192
169
|
...restAttrs
|
|
193
|
-
} =
|
|
170
|
+
} = attrs;
|
|
194
171
|
if (stepsContext.direction === "vertical") {
|
|
195
172
|
return h(
|
|
196
173
|
"li",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useChartInteraction } from './chunk-
|
|
1
|
+
import { useChartInteraction } from './chunk-DU2NXX75.mjs';
|
|
2
2
|
import { ChartCanvas } from './chunk-5WHLXWWT.mjs';
|
|
3
3
|
import { ChartGrid } from './chunk-MI6TL3CQ.mjs';
|
|
4
4
|
import { ChartLegend } from './chunk-F5HOHSFH.mjs';
|
|
@@ -6,7 +6,7 @@ import { ChartSeries } from './chunk-2ZUEXCVJ.mjs';
|
|
|
6
6
|
import { ChartTooltip } from './chunk-FXGIIFGN.mjs';
|
|
7
7
|
import { ChartAxis } from './chunk-ZWVA7HT3.mjs';
|
|
8
8
|
import { defineComponent, ref, computed, h } from 'vue';
|
|
9
|
-
import { getChartInnerRect, getNumberExtent, createLinearScale, createPointScale,
|
|
9
|
+
import { getLineGradientPrefix, getChartInnerRect, resolveSeriesData, getNumberExtent, createLinearScale, createPointScale, resolveChartPalette, createLinePath, createAreaPath, getChartElementOpacity, buildChartLegendItems, resolveMultiSeriesTooltipContent, defaultSeriesXYTooltipFormatter, classNames } from '@expcat/tigercat-core';
|
|
10
10
|
|
|
11
11
|
var LineChart = defineComponent({
|
|
12
12
|
name: "TigerLineChart",
|
|
@@ -157,6 +157,25 @@ var LineChart = defineComponent({
|
|
|
157
157
|
type: Number,
|
|
158
158
|
default: 8
|
|
159
159
|
},
|
|
160
|
+
// Area fill props
|
|
161
|
+
showArea: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: false
|
|
164
|
+
},
|
|
165
|
+
areaOpacity: {
|
|
166
|
+
type: Number,
|
|
167
|
+
default: 0.15
|
|
168
|
+
},
|
|
169
|
+
// Point styling
|
|
170
|
+
pointHollow: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: false
|
|
173
|
+
},
|
|
174
|
+
// Animation
|
|
175
|
+
animated: {
|
|
176
|
+
type: Boolean,
|
|
177
|
+
default: false
|
|
178
|
+
},
|
|
160
179
|
// Tooltip props
|
|
161
180
|
showTooltip: {
|
|
162
181
|
type: Boolean,
|
|
@@ -190,12 +209,11 @@ var LineChart = defineComponent({
|
|
|
190
209
|
setup(props, { emit }) {
|
|
191
210
|
const hoveredPointInfo = ref(null);
|
|
192
211
|
const tooltipPosition = ref({ x: 0, y: 0 });
|
|
212
|
+
const gradientPrefix = getLineGradientPrefix();
|
|
193
213
|
const innerRect = computed(() => getChartInnerRect(props.width, props.height, props.padding));
|
|
194
|
-
const resolvedSeries = computed(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
return [];
|
|
198
|
-
});
|
|
214
|
+
const resolvedSeries = computed(
|
|
215
|
+
() => resolveSeriesData(props.series, props.data)
|
|
216
|
+
);
|
|
199
217
|
const {
|
|
200
218
|
activeIndex,
|
|
201
219
|
handleMouseEnter: handleSeriesHoverEnter,
|
|
@@ -207,9 +225,9 @@ var LineChart = defineComponent({
|
|
|
207
225
|
wrapperClasses
|
|
208
226
|
} = useChartInteraction({
|
|
209
227
|
hoverable: computed(() => props.hoverable),
|
|
210
|
-
hoveredIndexProp: props.hoveredIndex,
|
|
228
|
+
hoveredIndexProp: () => props.hoveredIndex,
|
|
211
229
|
selectable: computed(() => props.selectable),
|
|
212
|
-
selectedIndexProp: props.selectedIndex,
|
|
230
|
+
selectedIndexProp: () => props.selectedIndex,
|
|
213
231
|
activeOpacity: computed(() => props.activeOpacity),
|
|
214
232
|
inactiveOpacity: computed(() => props.inactiveOpacity),
|
|
215
233
|
legendPosition: computed(() => props.legendPosition),
|
|
@@ -231,7 +249,7 @@ var LineChart = defineComponent({
|
|
|
231
249
|
return createLinearScale(extent, [0, innerRect.value.width]);
|
|
232
250
|
} else {
|
|
233
251
|
const categories = [...new Set(xValues.value.map(String))];
|
|
234
|
-
return createPointScale(categories, [0, innerRect.value.width], { padding: 0
|
|
252
|
+
return createPointScale(categories, [0, innerRect.value.width], { padding: 0 });
|
|
235
253
|
}
|
|
236
254
|
});
|
|
237
255
|
const resolvedYScale = computed(() => {
|
|
@@ -239,11 +257,9 @@ var LineChart = defineComponent({
|
|
|
239
257
|
const extent = getNumberExtent(yValues.value, { includeZero: props.includeZero });
|
|
240
258
|
return createLinearScale(extent, [innerRect.value.height, 0]);
|
|
241
259
|
});
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
const palette = computed(
|
|
245
|
-
() => props.colors && props.colors.length > 0 ? props.colors : [...DEFAULT_CHART_COLORS]
|
|
246
|
-
);
|
|
260
|
+
const shouldShowXAxis = computed(() => props.showAxis && props.showXAxis);
|
|
261
|
+
const shouldShowYAxis = computed(() => props.showAxis && props.showYAxis);
|
|
262
|
+
const palette = computed(() => resolveChartPalette(props.colors));
|
|
247
263
|
const seriesData = computed(
|
|
248
264
|
() => resolvedSeries.value.map((series, seriesIndex) => {
|
|
249
265
|
const color = series.color ?? palette.value[seriesIndex % palette.value.length];
|
|
@@ -254,6 +270,8 @@ var LineChart = defineComponent({
|
|
|
254
270
|
pointIndex
|
|
255
271
|
}));
|
|
256
272
|
const linePath = createLinePath(points, props.curve);
|
|
273
|
+
const seriesShowArea = series.showArea ?? props.showArea;
|
|
274
|
+
const areaPath = seriesShowArea ? createAreaPath(points, innerRect.value.height, props.curve) : "";
|
|
257
275
|
const opacity = getChartElementOpacity(seriesIndex, activeIndex.value, {
|
|
258
276
|
activeOpacity: props.activeOpacity,
|
|
259
277
|
inactiveOpacity: props.inactiveOpacity
|
|
@@ -263,38 +281,37 @@ var LineChart = defineComponent({
|
|
|
263
281
|
seriesIndex,
|
|
264
282
|
color,
|
|
265
283
|
linePath,
|
|
284
|
+
areaPath,
|
|
285
|
+
showArea: seriesShowArea,
|
|
286
|
+
areaOpacity: series.areaOpacity ?? props.areaOpacity,
|
|
266
287
|
points,
|
|
267
288
|
opacity,
|
|
268
289
|
strokeWidth: series.strokeWidth ?? props.strokeWidth,
|
|
269
290
|
strokeDasharray: series.strokeDasharray,
|
|
270
291
|
showPoints: series.showPoints ?? props.showPoints,
|
|
271
292
|
pointSize: series.pointSize ?? props.pointSize,
|
|
272
|
-
pointColor: series.pointColor ?? color
|
|
293
|
+
pointColor: series.pointColor ?? color,
|
|
294
|
+
pointHollow: series.pointHollow ?? props.pointHollow
|
|
273
295
|
};
|
|
274
296
|
})
|
|
275
297
|
);
|
|
276
298
|
const legendItems = computed(
|
|
277
|
-
() =>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
);
|
|
284
|
-
const formatTooltip = computed(
|
|
285
|
-
() => props.tooltipFormatter ?? ((datum, seriesIndex, _pointIndex, series) => {
|
|
286
|
-
const seriesName = series?.name ?? `Series ${seriesIndex + 1}`;
|
|
287
|
-
const label = datum.label ?? String(datum.x);
|
|
288
|
-
return `${seriesName} \xB7 ${label}: ${datum.y}`;
|
|
299
|
+
() => buildChartLegendItems({
|
|
300
|
+
data: resolvedSeries.value,
|
|
301
|
+
palette: palette.value,
|
|
302
|
+
activeIndex: activeIndex.value,
|
|
303
|
+
getLabel: (s, i) => props.legendFormatter ? props.legendFormatter(s, i) : s.name ?? `Series ${i + 1}`,
|
|
304
|
+
getColor: (s, i) => s.color ?? palette.value[i % palette.value.length]
|
|
289
305
|
})
|
|
290
306
|
);
|
|
291
|
-
const tooltipContent = computed(
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
307
|
+
const tooltipContent = computed(
|
|
308
|
+
() => resolveMultiSeriesTooltipContent(
|
|
309
|
+
hoveredPointInfo.value,
|
|
310
|
+
resolvedSeries.value,
|
|
311
|
+
props.tooltipFormatter,
|
|
312
|
+
defaultSeriesXYTooltipFormatter
|
|
313
|
+
)
|
|
314
|
+
);
|
|
298
315
|
const handlePointMouseEnter = (seriesIndex, pointIndex, event) => {
|
|
299
316
|
hoveredPointInfo.value = { seriesIndex, pointIndex };
|
|
300
317
|
tooltipPosition.value = { x: event.clientX, y: event.clientY };
|
|
@@ -351,7 +368,7 @@ var LineChart = defineComponent({
|
|
|
351
368
|
lineStyle: props.gridLineStyle,
|
|
352
369
|
strokeWidth: props.gridStrokeWidth
|
|
353
370
|
}) : null,
|
|
354
|
-
|
|
371
|
+
shouldShowXAxis.value ? h(ChartAxis, {
|
|
355
372
|
scale: resolvedXScale.value,
|
|
356
373
|
orientation: "bottom",
|
|
357
374
|
y: innerRect.value.height,
|
|
@@ -360,7 +377,7 @@ var LineChart = defineComponent({
|
|
|
360
377
|
tickFormat: props.xTickFormat,
|
|
361
378
|
label: props.xAxisLabel
|
|
362
379
|
}) : null,
|
|
363
|
-
|
|
380
|
+
shouldShowYAxis.value ? h(ChartAxis, {
|
|
364
381
|
scale: resolvedYScale.value,
|
|
365
382
|
orientation: "left",
|
|
366
383
|
ticks: props.yTicks,
|
|
@@ -368,6 +385,49 @@ var LineChart = defineComponent({
|
|
|
368
385
|
tickFormat: props.yTickFormat,
|
|
369
386
|
label: props.yAxisLabel
|
|
370
387
|
}) : null,
|
|
388
|
+
// Gradient defs and animation styles
|
|
389
|
+
seriesData.value.some((sd) => sd.showArea) || props.animated ? h("defs", null, [
|
|
390
|
+
// Animation keyframes
|
|
391
|
+
props.animated ? h(
|
|
392
|
+
"style",
|
|
393
|
+
null,
|
|
394
|
+
`
|
|
395
|
+
.tiger-line-animated {
|
|
396
|
+
animation: tiger-line-draw 1.2s cubic-bezier(.4,0,.2,1) forwards;
|
|
397
|
+
}
|
|
398
|
+
@keyframes tiger-line-draw {
|
|
399
|
+
from { stroke-dashoffset: 1; }
|
|
400
|
+
to { stroke-dashoffset: 0; }
|
|
401
|
+
}
|
|
402
|
+
`
|
|
403
|
+
) : null,
|
|
404
|
+
// Area fill gradients
|
|
405
|
+
...seriesData.value.filter((sd) => sd.showArea).map(
|
|
406
|
+
(sd) => h(
|
|
407
|
+
"linearGradient",
|
|
408
|
+
{
|
|
409
|
+
key: `area-grad-${sd.seriesIndex}`,
|
|
410
|
+
id: `${gradientPrefix}-${sd.seriesIndex}`,
|
|
411
|
+
x1: "0",
|
|
412
|
+
y1: "0",
|
|
413
|
+
x2: "0",
|
|
414
|
+
y2: "1"
|
|
415
|
+
},
|
|
416
|
+
[
|
|
417
|
+
h("stop", {
|
|
418
|
+
offset: "0%",
|
|
419
|
+
"stop-color": sd.color,
|
|
420
|
+
"stop-opacity": sd.areaOpacity
|
|
421
|
+
}),
|
|
422
|
+
h("stop", {
|
|
423
|
+
offset: "100%",
|
|
424
|
+
"stop-color": sd.color,
|
|
425
|
+
"stop-opacity": 0.02
|
|
426
|
+
})
|
|
427
|
+
]
|
|
428
|
+
)
|
|
429
|
+
)
|
|
430
|
+
]) : null,
|
|
371
431
|
// Render each series
|
|
372
432
|
...seriesData.value.map(
|
|
373
433
|
(sd) => h(
|
|
@@ -390,27 +450,45 @@ var LineChart = defineComponent({
|
|
|
390
450
|
},
|
|
391
451
|
{
|
|
392
452
|
default: () => [
|
|
453
|
+
// Area fill path
|
|
454
|
+
sd.showArea && sd.areaPath ? h("path", {
|
|
455
|
+
d: sd.areaPath,
|
|
456
|
+
fill: `url(#${gradientPrefix}-${sd.seriesIndex})`,
|
|
457
|
+
stroke: "none",
|
|
458
|
+
class: "transition-opacity duration-300",
|
|
459
|
+
"data-area-series": sd.seriesIndex
|
|
460
|
+
}) : null,
|
|
393
461
|
// Line path
|
|
394
462
|
h("path", {
|
|
395
463
|
d: sd.linePath,
|
|
396
464
|
fill: "none",
|
|
397
465
|
stroke: sd.color,
|
|
398
466
|
"stroke-width": sd.strokeWidth,
|
|
399
|
-
"stroke-dasharray": sd.strokeDasharray,
|
|
467
|
+
"stroke-dasharray": props.animated ? sd.strokeDasharray ?? "1" : sd.strokeDasharray,
|
|
468
|
+
"stroke-dashoffset": props.animated ? "1" : void 0,
|
|
400
469
|
"stroke-linecap": "round",
|
|
401
470
|
"stroke-linejoin": "round",
|
|
402
|
-
|
|
471
|
+
pathLength: props.animated ? 1 : void 0,
|
|
472
|
+
class: classNames(
|
|
473
|
+
"transition-opacity duration-200",
|
|
474
|
+
props.animated && "tiger-line-animated"
|
|
475
|
+
),
|
|
403
476
|
"data-line-series": sd.seriesIndex
|
|
404
477
|
}),
|
|
405
478
|
// Data points
|
|
406
|
-
sd.showPoints ? sd.points.map(
|
|
407
|
-
|
|
479
|
+
sd.showPoints ? sd.points.map((point) => {
|
|
480
|
+
const isHovered = hoveredPointInfo.value?.seriesIndex === sd.seriesIndex && hoveredPointInfo.value?.pointIndex === point.pointIndex;
|
|
481
|
+
const hoverSize = sd.pointSize + 2;
|
|
482
|
+
return h("circle", {
|
|
408
483
|
key: `point-${sd.seriesIndex}-${point.pointIndex}`,
|
|
409
484
|
cx: point.x,
|
|
410
485
|
cy: point.y,
|
|
411
|
-
r: sd.pointSize,
|
|
412
|
-
fill: sd.pointColor,
|
|
413
|
-
|
|
486
|
+
r: isHovered ? hoverSize : sd.pointSize,
|
|
487
|
+
fill: sd.pointHollow ? "white" : sd.pointColor,
|
|
488
|
+
stroke: sd.pointHollow ? sd.pointColor : "none",
|
|
489
|
+
"stroke-width": sd.pointHollow ? 2 : 0,
|
|
490
|
+
class: "transition-all duration-200 ease-out",
|
|
491
|
+
style: isHovered ? `filter: drop-shadow(0 0 4px ${sd.color})` : void 0,
|
|
414
492
|
"data-point-index": point.pointIndex,
|
|
415
493
|
onMouseenter: (e) => handlePointMouseEnter(sd.seriesIndex, point.pointIndex, e),
|
|
416
494
|
onMousemove: handlePointMouseMove,
|
|
@@ -419,8 +497,8 @@ var LineChart = defineComponent({
|
|
|
419
497
|
e.stopPropagation();
|
|
420
498
|
handlePointClick(sd.seriesIndex, point.pointIndex);
|
|
421
499
|
}
|
|
422
|
-
})
|
|
423
|
-
) : null
|
|
500
|
+
});
|
|
501
|
+
}) : null
|
|
424
502
|
]
|
|
425
503
|
}
|
|
426
504
|
)
|