@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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { init_ImagePreview, ImagePreview_exports } from './chunk-MMQ34S5M.mjs';
|
|
2
|
+
import { __toCommonJS } from './chunk-53M2BTB5.mjs';
|
|
3
|
+
import { defineComponent, ref, inject, onMounted, onBeforeUnmount, computed, h } from 'vue';
|
|
4
|
+
import { classNames, imageBaseClasses, imagePreviewCursorClass, coerceClassValue, toCSSSize, mergeStyleValues, getImageImgClasses, imageErrorClasses, imageErrorIconPath, imageLoadingClasses } from '@expcat/tigercat-core';
|
|
5
|
+
|
|
6
|
+
var IMAGE_GROUP_INJECTION_KEY = "tiger-image-group";
|
|
7
|
+
var Image = defineComponent({
|
|
8
|
+
name: "TigerImage",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
src: { type: String, default: void 0 },
|
|
12
|
+
alt: { type: String, default: "" },
|
|
13
|
+
width: { type: [Number, String], default: void 0 },
|
|
14
|
+
height: { type: [Number, String], default: void 0 },
|
|
15
|
+
fit: { type: String, default: "cover" },
|
|
16
|
+
fallbackSrc: { type: String, default: void 0 },
|
|
17
|
+
preview: { type: Boolean, default: true },
|
|
18
|
+
lazy: { type: Boolean, default: false },
|
|
19
|
+
className: { type: String, default: void 0 },
|
|
20
|
+
style: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: void 0
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: ["load", "error", "preview-visible-change"],
|
|
26
|
+
setup(props, { slots, emit, attrs }) {
|
|
27
|
+
const loading = ref(true);
|
|
28
|
+
const error = ref(false);
|
|
29
|
+
const actualSrc = ref(props.lazy ? "" : props.src);
|
|
30
|
+
const containerRef = ref(null);
|
|
31
|
+
const previewVisible = ref(false);
|
|
32
|
+
let observer = null;
|
|
33
|
+
const group = inject(IMAGE_GROUP_INJECTION_KEY, null);
|
|
34
|
+
const registeredIndex = ref(-1);
|
|
35
|
+
onMounted(() => {
|
|
36
|
+
if (group && props.src) {
|
|
37
|
+
registeredIndex.value = group.register(props.src);
|
|
38
|
+
}
|
|
39
|
+
if (props.lazy && containerRef.value) {
|
|
40
|
+
observer = new IntersectionObserver(
|
|
41
|
+
(entries) => {
|
|
42
|
+
if (entries[0]?.isIntersecting) {
|
|
43
|
+
actualSrc.value = props.src;
|
|
44
|
+
observer?.disconnect();
|
|
45
|
+
observer = null;
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{ threshold: 0.01 }
|
|
49
|
+
);
|
|
50
|
+
observer.observe(containerRef.value);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
onBeforeUnmount(() => {
|
|
54
|
+
observer?.disconnect();
|
|
55
|
+
if (group && props.src) {
|
|
56
|
+
group.unregister(props.src);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const handleLoad = () => {
|
|
60
|
+
loading.value = false;
|
|
61
|
+
error.value = false;
|
|
62
|
+
emit("load");
|
|
63
|
+
};
|
|
64
|
+
const handleError = () => {
|
|
65
|
+
loading.value = false;
|
|
66
|
+
error.value = true;
|
|
67
|
+
if (props.fallbackSrc && actualSrc.value !== props.fallbackSrc) {
|
|
68
|
+
actualSrc.value = props.fallbackSrc;
|
|
69
|
+
error.value = false;
|
|
70
|
+
loading.value = true;
|
|
71
|
+
}
|
|
72
|
+
emit("error");
|
|
73
|
+
};
|
|
74
|
+
const handleClick = () => {
|
|
75
|
+
if (!props.preview) return;
|
|
76
|
+
if (group) {
|
|
77
|
+
group.openPreview(registeredIndex.value >= 0 ? registeredIndex.value : 0);
|
|
78
|
+
} else {
|
|
79
|
+
previewVisible.value = true;
|
|
80
|
+
emit("preview-visible-change", true);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const containerClasses = computed(
|
|
84
|
+
() => classNames(
|
|
85
|
+
imageBaseClasses,
|
|
86
|
+
props.preview && imagePreviewCursorClass,
|
|
87
|
+
props.className,
|
|
88
|
+
coerceClassValue(attrs.class)
|
|
89
|
+
)
|
|
90
|
+
);
|
|
91
|
+
const containerStyle = computed(() => {
|
|
92
|
+
const base = {};
|
|
93
|
+
const w = toCSSSize(props.width);
|
|
94
|
+
const ht = toCSSSize(props.height);
|
|
95
|
+
if (w) base.width = w;
|
|
96
|
+
if (ht) base.height = ht;
|
|
97
|
+
return mergeStyleValues(attrs.style, props.style, base);
|
|
98
|
+
});
|
|
99
|
+
const imgClasses = computed(() => getImageImgClasses(props.fit));
|
|
100
|
+
return () => {
|
|
101
|
+
const forwardedAttrs = Object.fromEntries(
|
|
102
|
+
Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")
|
|
103
|
+
);
|
|
104
|
+
let content;
|
|
105
|
+
if (error.value && !props.fallbackSrc) {
|
|
106
|
+
content = slots.error ? slots.error() : h("div", { class: imageErrorClasses }, [
|
|
107
|
+
h(
|
|
108
|
+
"svg",
|
|
109
|
+
{
|
|
110
|
+
class: "w-8 h-8",
|
|
111
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
112
|
+
fill: "none",
|
|
113
|
+
viewBox: "0 0 24 24",
|
|
114
|
+
stroke: "currentColor"
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
h("path", {
|
|
118
|
+
"stroke-linecap": "round",
|
|
119
|
+
"stroke-linejoin": "round",
|
|
120
|
+
"stroke-width": "1.5",
|
|
121
|
+
d: imageErrorIconPath
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
)
|
|
125
|
+
]);
|
|
126
|
+
} else if (loading.value && !actualSrc.value) {
|
|
127
|
+
content = slots.placeholder ? slots.placeholder() : h("div", { class: imageLoadingClasses }, [
|
|
128
|
+
h(
|
|
129
|
+
"svg",
|
|
130
|
+
{
|
|
131
|
+
class: "w-8 h-8",
|
|
132
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
133
|
+
fill: "none",
|
|
134
|
+
viewBox: "0 0 24 24",
|
|
135
|
+
stroke: "currentColor"
|
|
136
|
+
},
|
|
137
|
+
[
|
|
138
|
+
h("path", {
|
|
139
|
+
"stroke-linecap": "round",
|
|
140
|
+
"stroke-linejoin": "round",
|
|
141
|
+
"stroke-width": "1.5",
|
|
142
|
+
d: imageErrorIconPath
|
|
143
|
+
})
|
|
144
|
+
]
|
|
145
|
+
)
|
|
146
|
+
]);
|
|
147
|
+
} else {
|
|
148
|
+
content = h("img", {
|
|
149
|
+
src: actualSrc.value,
|
|
150
|
+
alt: props.alt,
|
|
151
|
+
class: imgClasses.value,
|
|
152
|
+
onLoad: handleLoad,
|
|
153
|
+
onError: handleError
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
const previewEl = !group && previewVisible.value && props.src ? (() => {
|
|
157
|
+
const { ImagePreview } = (init_ImagePreview(), __toCommonJS(ImagePreview_exports));
|
|
158
|
+
return h(ImagePreview, {
|
|
159
|
+
visible: previewVisible.value,
|
|
160
|
+
images: [props.src],
|
|
161
|
+
currentIndex: 0,
|
|
162
|
+
"onUpdate:visible": (val) => {
|
|
163
|
+
previewVisible.value = val;
|
|
164
|
+
emit("preview-visible-change", val);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
})() : null;
|
|
168
|
+
return h(
|
|
169
|
+
"div",
|
|
170
|
+
{
|
|
171
|
+
...forwardedAttrs,
|
|
172
|
+
ref: containerRef,
|
|
173
|
+
class: containerClasses.value,
|
|
174
|
+
style: containerStyle.value,
|
|
175
|
+
role: props.preview ? "button" : void 0,
|
|
176
|
+
tabindex: props.preview ? 0 : void 0,
|
|
177
|
+
"aria-label": props.preview ? `Preview ${props.alt || "image"}` : void 0,
|
|
178
|
+
onClick: handleClick,
|
|
179
|
+
onKeydown: (e) => {
|
|
180
|
+
if (props.preview && (e.key === "Enter" || e.key === " ")) {
|
|
181
|
+
e.preventDefault();
|
|
182
|
+
handleClick();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
[content, previewEl]
|
|
187
|
+
);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
var Image_default = Image;
|
|
192
|
+
|
|
193
|
+
export { IMAGE_GROUP_INJECTION_KEY, Image, Image_default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, nextTick, h } from 'vue';
|
|
2
|
-
import { getSpinnerSVG, calculateCheckedState, getAllKeys, getVisibleTreeItems, filterTreeNodes, getAutoExpandKeys, classNames, treeBaseClasses, coerceClassValue, treeEmptyStateClasses, treeNodeIndentClasses, treeNodeCheckboxClasses, treeNodeIconClasses, treeNodeLabelClasses, treeNodeWrapperClasses, getTreeNodeClasses, getParentKeys, treeNodeChildrenClasses, treeLineClasses, treeLoadingClasses, normalizeSvgAttrs, findNode, getTreeNodeExpandIconClasses, handleNodeCheck, getCheckedKeysByStrategy } from '@expcat/tigercat-core';
|
|
2
|
+
import { getSpinnerSVG, calculateCheckedState, getAllKeys, checkedSetsFromState, getVisibleTreeItems, filterTreeNodes, getAutoExpandKeys, classNames, treeBaseClasses, coerceClassValue, treeEmptyStateClasses, treeNodeIndentClasses, treeNodeCheckboxClasses, treeNodeIconClasses, treeNodeLabelClasses, treeNodeWrapperClasses, getTreeNodeClasses, getParentKeys, treeNodeChildrenClasses, treeLineClasses, treeLoadingClasses, normalizeSvgAttrs, findNode, getTreeNodeExpandIconClasses, handleNodeCheck, getCheckedKeysByStrategy } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
// src/components/Tree.ts
|
|
5
5
|
var spinnerSvg = getSpinnerSVG("spinner");
|
|
@@ -265,6 +265,7 @@ var Tree = defineComponent({
|
|
|
265
265
|
}
|
|
266
266
|
return internalCheckedState.value;
|
|
267
267
|
});
|
|
268
|
+
const checkedSets = computed(() => checkedSetsFromState(computedCheckedState.value));
|
|
268
269
|
const visibleItems = computed(
|
|
269
270
|
() => getVisibleTreeItems(props.treeData, computedExpandedKeys.value, filteredNodeKeys.value)
|
|
270
271
|
);
|
|
@@ -411,12 +412,12 @@ var Tree = defineComponent({
|
|
|
411
412
|
}
|
|
412
413
|
return void 0;
|
|
413
414
|
}
|
|
414
|
-
function renderTreeNode(node, level
|
|
415
|
+
function renderTreeNode(node, level) {
|
|
415
416
|
const hasChildren = !!(node.children && node.children.length > 0);
|
|
416
417
|
const isExpanded = computedExpandedKeys.value.has(node.key);
|
|
417
418
|
const isSelected = computedSelectedKeys.value.has(node.key);
|
|
418
|
-
const isChecked =
|
|
419
|
-
const isHalfChecked =
|
|
419
|
+
const isChecked = checkedSets.value.checkedSet.has(node.key);
|
|
420
|
+
const isHalfChecked = checkedSets.value.halfCheckedSet.has(node.key);
|
|
420
421
|
const isLoading = loadingNodes.value.has(node.key);
|
|
421
422
|
const isFiltered = filteredNodeKeys.value.size > 0;
|
|
422
423
|
const isMatched = filteredNodeKeys.value.has(node.key);
|
|
@@ -599,7 +600,7 @@ var Tree = defineComponent({
|
|
|
599
600
|
{
|
|
600
601
|
class: classNames(treeNodeChildrenClasses, props.showLine && treeLineClasses)
|
|
601
602
|
},
|
|
602
|
-
node.children.map((child) => renderTreeNode(child, level + 1
|
|
603
|
+
node.children.map((child) => renderTreeNode(child, level + 1))
|
|
603
604
|
)
|
|
604
605
|
]
|
|
605
606
|
);
|
|
@@ -629,7 +630,7 @@ var Tree = defineComponent({
|
|
|
629
630
|
"aria-multiselectable": effectiveMultiple.value ? true : void 0,
|
|
630
631
|
ref: rootEl
|
|
631
632
|
},
|
|
632
|
-
|
|
633
|
+
props.treeData.map((node) => renderTreeNode(node, 0))
|
|
633
634
|
);
|
|
634
635
|
};
|
|
635
636
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed, nextTick, h } from 'vue';
|
|
1
|
+
import { defineComponent, ref, watch, computed, nextTick, onMounted, h } from 'vue';
|
|
2
2
|
import { classNames, getInputClasses, coerceClassValue, mergeStyleValues, autoResizeTextarea } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
// src/components/Textarea.ts
|
|
@@ -156,7 +156,7 @@ var Textarea = defineComponent({
|
|
|
156
156
|
const textareaClasses = computed(
|
|
157
157
|
() => classNames(
|
|
158
158
|
"block",
|
|
159
|
-
getInputClasses(props.size),
|
|
159
|
+
getInputClasses({ size: props.size }),
|
|
160
160
|
props.autoResize ? "resize-none" : "resize-y",
|
|
161
161
|
props.className,
|
|
162
162
|
coerceClassValue(attrs.class)
|
|
@@ -176,9 +176,6 @@ var Textarea = defineComponent({
|
|
|
176
176
|
localValue.value = value;
|
|
177
177
|
emit("update:modelValue", value);
|
|
178
178
|
emit("input", event);
|
|
179
|
-
if (props.autoResize) {
|
|
180
|
-
nextTick(adjustHeight);
|
|
181
|
-
}
|
|
182
179
|
};
|
|
183
180
|
const handleChange = (event) => {
|
|
184
181
|
emit("change", event);
|
|
@@ -189,17 +186,13 @@ var Textarea = defineComponent({
|
|
|
189
186
|
const handleBlur = (event) => {
|
|
190
187
|
emit("blur", event);
|
|
191
188
|
};
|
|
192
|
-
watch(
|
|
193
|
-
(
|
|
194
|
-
() => {
|
|
195
|
-
if (!props.autoResize) return;
|
|
196
|
-
nextTick(adjustHeight);
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
watch(textareaRef, (textarea) => {
|
|
200
|
-
if (!textarea || !props.autoResize) return;
|
|
189
|
+
watch([localValue, () => props.autoResize, () => props.minRows, () => props.maxRows], () => {
|
|
190
|
+
if (!props.autoResize) return;
|
|
201
191
|
nextTick(adjustHeight);
|
|
202
192
|
});
|
|
193
|
+
onMounted(() => {
|
|
194
|
+
if (props.autoResize) nextTick(adjustHeight);
|
|
195
|
+
});
|
|
203
196
|
return () => {
|
|
204
197
|
const children = [
|
|
205
198
|
h("textarea", {
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { __export, __esm } from './chunk-53M2BTB5.mjs';
|
|
2
|
+
import { defineComponent, ref, watch, computed, onMounted, onBeforeUnmount, h, Teleport } from 'vue';
|
|
3
|
+
import { getPreviewNavState, calculateTransform, imagePreviewMaskClasses, imagePreviewImgClasses, imagePreviewCloseBtnClasses, previewCloseIconPath, imagePreviewToolbarClasses, imagePreviewToolbarBtnClasses, zoomOutIconPath, resetIconPath, zoomInIconPath, imagePreviewCounterClasses, classNames, imagePreviewNavBtnClasses, prevIconPath, nextIconPath, imagePreviewWrapperClasses, clampScale } from '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
// src/components/ImagePreview.ts
|
|
6
|
+
var ImagePreview_exports = {};
|
|
7
|
+
__export(ImagePreview_exports, {
|
|
8
|
+
ImagePreview: () => ImagePreview,
|
|
9
|
+
default: () => ImagePreview_default
|
|
10
|
+
});
|
|
11
|
+
var svgIcon, ImagePreview, ImagePreview_default;
|
|
12
|
+
var init_ImagePreview = __esm({
|
|
13
|
+
"src/components/ImagePreview.ts"() {
|
|
14
|
+
svgIcon = (d, cls = "w-5 h-5") => h(
|
|
15
|
+
"svg",
|
|
16
|
+
{
|
|
17
|
+
class: cls,
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
fill: "none",
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
stroke: "currentColor"
|
|
22
|
+
},
|
|
23
|
+
[
|
|
24
|
+
h("path", {
|
|
25
|
+
"stroke-linecap": "round",
|
|
26
|
+
"stroke-linejoin": "round",
|
|
27
|
+
"stroke-width": "2",
|
|
28
|
+
d
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
);
|
|
32
|
+
ImagePreview = defineComponent({
|
|
33
|
+
name: "TigerImagePreview",
|
|
34
|
+
inheritAttrs: false,
|
|
35
|
+
props: {
|
|
36
|
+
visible: { type: Boolean, default: false },
|
|
37
|
+
images: { type: Array, default: () => [] },
|
|
38
|
+
currentIndex: { type: Number, default: 0 },
|
|
39
|
+
zIndex: { type: Number, default: 1050 },
|
|
40
|
+
maskClosable: { type: Boolean, default: true },
|
|
41
|
+
scaleStep: { type: Number, default: 0.5 },
|
|
42
|
+
minScale: { type: Number, default: 0.25 },
|
|
43
|
+
maxScale: { type: Number, default: 5 }
|
|
44
|
+
},
|
|
45
|
+
emits: ["update:visible", "update:currentIndex", "scale-change"],
|
|
46
|
+
setup(props, { emit }) {
|
|
47
|
+
const scale = ref(1);
|
|
48
|
+
const offsetX = ref(0);
|
|
49
|
+
const offsetY = ref(0);
|
|
50
|
+
const index = ref(props.currentIndex);
|
|
51
|
+
const dragging = ref(false);
|
|
52
|
+
const dragStart = ref({ x: 0, y: 0, ox: 0, oy: 0 });
|
|
53
|
+
const resetTransform = () => {
|
|
54
|
+
scale.value = 1;
|
|
55
|
+
offsetX.value = 0;
|
|
56
|
+
offsetY.value = 0;
|
|
57
|
+
};
|
|
58
|
+
watch(
|
|
59
|
+
() => props.currentIndex,
|
|
60
|
+
(val) => {
|
|
61
|
+
index.value = val;
|
|
62
|
+
resetTransform();
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
watch(
|
|
66
|
+
() => props.visible,
|
|
67
|
+
(val) => {
|
|
68
|
+
if (val) {
|
|
69
|
+
resetTransform();
|
|
70
|
+
index.value = props.currentIndex;
|
|
71
|
+
document.body.style.overflow = "hidden";
|
|
72
|
+
} else {
|
|
73
|
+
document.body.style.overflow = "";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
const navState = computed(() => getPreviewNavState(index.value, props.images.length));
|
|
78
|
+
const handleClose = () => {
|
|
79
|
+
emit("update:visible", false);
|
|
80
|
+
};
|
|
81
|
+
const handleZoomIn = () => {
|
|
82
|
+
scale.value = clampScale(scale.value + props.scaleStep, props.minScale, props.maxScale);
|
|
83
|
+
emit("scale-change", scale.value);
|
|
84
|
+
};
|
|
85
|
+
const handleZoomOut = () => {
|
|
86
|
+
scale.value = clampScale(scale.value - props.scaleStep, props.minScale, props.maxScale);
|
|
87
|
+
emit("scale-change", scale.value);
|
|
88
|
+
};
|
|
89
|
+
const handleReset = () => {
|
|
90
|
+
resetTransform();
|
|
91
|
+
emit("scale-change", 1);
|
|
92
|
+
};
|
|
93
|
+
const handlePrev = () => {
|
|
94
|
+
if (navState.value.hasPrev) {
|
|
95
|
+
index.value--;
|
|
96
|
+
resetTransform();
|
|
97
|
+
emit("update:currentIndex", index.value);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const handleNext = () => {
|
|
101
|
+
if (navState.value.hasNext) {
|
|
102
|
+
index.value++;
|
|
103
|
+
resetTransform();
|
|
104
|
+
emit("update:currentIndex", index.value);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const handleWheel = (e) => {
|
|
108
|
+
e.preventDefault();
|
|
109
|
+
const delta = e.deltaY > 0 ? -props.scaleStep : props.scaleStep;
|
|
110
|
+
scale.value = clampScale(scale.value + delta, props.minScale, props.maxScale);
|
|
111
|
+
emit("scale-change", scale.value);
|
|
112
|
+
};
|
|
113
|
+
const handleMouseDown = (e) => {
|
|
114
|
+
if (e.button !== 0) return;
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
dragging.value = true;
|
|
117
|
+
dragStart.value = {
|
|
118
|
+
x: e.clientX,
|
|
119
|
+
y: e.clientY,
|
|
120
|
+
ox: offsetX.value,
|
|
121
|
+
oy: offsetY.value
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
const handleMouseMove = (e) => {
|
|
125
|
+
if (!dragging.value) return;
|
|
126
|
+
offsetX.value = dragStart.value.ox + (e.clientX - dragStart.value.x);
|
|
127
|
+
offsetY.value = dragStart.value.oy + (e.clientY - dragStart.value.y);
|
|
128
|
+
};
|
|
129
|
+
const handleMouseUp = () => {
|
|
130
|
+
dragging.value = false;
|
|
131
|
+
};
|
|
132
|
+
const handleMaskClick = (e) => {
|
|
133
|
+
if (props.maskClosable && e.target === e.currentTarget) {
|
|
134
|
+
handleClose();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const handleKeyDown = (e) => {
|
|
138
|
+
if (!props.visible) return;
|
|
139
|
+
switch (e.key) {
|
|
140
|
+
case "Escape":
|
|
141
|
+
handleClose();
|
|
142
|
+
break;
|
|
143
|
+
case "ArrowLeft":
|
|
144
|
+
handlePrev();
|
|
145
|
+
break;
|
|
146
|
+
case "ArrowRight":
|
|
147
|
+
handleNext();
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
onMounted(() => {
|
|
152
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
153
|
+
});
|
|
154
|
+
onBeforeUnmount(() => {
|
|
155
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
156
|
+
document.body.style.overflow = "";
|
|
157
|
+
});
|
|
158
|
+
const transform = computed(() => calculateTransform(scale.value, offsetX.value, offsetY.value));
|
|
159
|
+
return () => {
|
|
160
|
+
if (!props.visible || !props.images.length) return null;
|
|
161
|
+
const currentSrc = props.images[index.value] || props.images[0];
|
|
162
|
+
const mask = h("div", {
|
|
163
|
+
class: imagePreviewMaskClasses,
|
|
164
|
+
"aria-hidden": "true"
|
|
165
|
+
});
|
|
166
|
+
const img = h("img", {
|
|
167
|
+
src: currentSrc,
|
|
168
|
+
class: imagePreviewImgClasses,
|
|
169
|
+
style: { transform: transform.value },
|
|
170
|
+
alt: `Preview image ${index.value + 1}`,
|
|
171
|
+
draggable: false,
|
|
172
|
+
onMousedown: handleMouseDown,
|
|
173
|
+
onMousemove: handleMouseMove,
|
|
174
|
+
onMouseup: handleMouseUp,
|
|
175
|
+
onMouseleave: handleMouseUp
|
|
176
|
+
});
|
|
177
|
+
const closeBtn = h(
|
|
178
|
+
"button",
|
|
179
|
+
{
|
|
180
|
+
class: imagePreviewCloseBtnClasses,
|
|
181
|
+
onClick: handleClose,
|
|
182
|
+
"aria-label": "Close preview",
|
|
183
|
+
type: "button"
|
|
184
|
+
},
|
|
185
|
+
[svgIcon(previewCloseIconPath)]
|
|
186
|
+
);
|
|
187
|
+
const toolbar = h("div", { class: imagePreviewToolbarClasses }, [
|
|
188
|
+
h(
|
|
189
|
+
"button",
|
|
190
|
+
{
|
|
191
|
+
class: imagePreviewToolbarBtnClasses,
|
|
192
|
+
onClick: handleZoomOut,
|
|
193
|
+
"aria-label": "Zoom out",
|
|
194
|
+
type: "button"
|
|
195
|
+
},
|
|
196
|
+
[svgIcon(zoomOutIconPath)]
|
|
197
|
+
),
|
|
198
|
+
h(
|
|
199
|
+
"button",
|
|
200
|
+
{
|
|
201
|
+
class: imagePreviewToolbarBtnClasses,
|
|
202
|
+
onClick: handleReset,
|
|
203
|
+
"aria-label": "Reset",
|
|
204
|
+
type: "button"
|
|
205
|
+
},
|
|
206
|
+
[svgIcon(resetIconPath)]
|
|
207
|
+
),
|
|
208
|
+
h(
|
|
209
|
+
"button",
|
|
210
|
+
{
|
|
211
|
+
class: imagePreviewToolbarBtnClasses,
|
|
212
|
+
onClick: handleZoomIn,
|
|
213
|
+
"aria-label": "Zoom in",
|
|
214
|
+
type: "button"
|
|
215
|
+
},
|
|
216
|
+
[svgIcon(zoomInIconPath)]
|
|
217
|
+
),
|
|
218
|
+
navState.value.counter ? h("span", { class: imagePreviewCounterClasses }, navState.value.counter) : null
|
|
219
|
+
]);
|
|
220
|
+
const prevBtn = props.images.length > 1 ? h(
|
|
221
|
+
"button",
|
|
222
|
+
{
|
|
223
|
+
class: classNames(imagePreviewNavBtnClasses, "left-4"),
|
|
224
|
+
onClick: handlePrev,
|
|
225
|
+
disabled: !navState.value.hasPrev,
|
|
226
|
+
"aria-label": "Previous image",
|
|
227
|
+
type: "button"
|
|
228
|
+
},
|
|
229
|
+
[svgIcon(prevIconPath)]
|
|
230
|
+
) : null;
|
|
231
|
+
const nextBtn = props.images.length > 1 ? h(
|
|
232
|
+
"button",
|
|
233
|
+
{
|
|
234
|
+
class: classNames(imagePreviewNavBtnClasses, "right-4"),
|
|
235
|
+
onClick: handleNext,
|
|
236
|
+
disabled: !navState.value.hasNext,
|
|
237
|
+
"aria-label": "Next image",
|
|
238
|
+
type: "button"
|
|
239
|
+
},
|
|
240
|
+
[svgIcon(nextIconPath)]
|
|
241
|
+
) : null;
|
|
242
|
+
const wrapper = h(
|
|
243
|
+
"div",
|
|
244
|
+
{
|
|
245
|
+
class: imagePreviewWrapperClasses,
|
|
246
|
+
style: { zIndex: props.zIndex },
|
|
247
|
+
role: "dialog",
|
|
248
|
+
"aria-modal": "true",
|
|
249
|
+
"aria-label": "Image preview",
|
|
250
|
+
onClick: handleMaskClick,
|
|
251
|
+
onWheel: handleWheel
|
|
252
|
+
},
|
|
253
|
+
[mask, img, closeBtn, prevBtn, nextBtn, toolbar]
|
|
254
|
+
);
|
|
255
|
+
return h(Teleport, { to: "body" }, [wrapper]);
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
ImagePreview_default = ImagePreview;
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
export { ImagePreview, ImagePreview_default, ImagePreview_exports, init_ImagePreview };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkI2BZURVP_js = require('./chunk-I2BZURVP.js');
|
|
4
|
+
var vue = require('vue');
|
|
5
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
|
+
|
|
7
|
+
var Col = vue.defineComponent({
|
|
8
|
+
name: "TigerCol",
|
|
9
|
+
props: {
|
|
10
|
+
/** Column span (1-24) or responsive object @default 24 */
|
|
11
|
+
span: {
|
|
12
|
+
type: [Number, Object],
|
|
13
|
+
default: 24
|
|
14
|
+
},
|
|
15
|
+
/** Column offset (0-24) or responsive object @default 0 */
|
|
16
|
+
offset: {
|
|
17
|
+
type: [Number, Object],
|
|
18
|
+
default: 0
|
|
19
|
+
},
|
|
20
|
+
/** Column order or responsive object */
|
|
21
|
+
order: {
|
|
22
|
+
type: [Number, Object]
|
|
23
|
+
},
|
|
24
|
+
/** Flex layout style */
|
|
25
|
+
flex: {
|
|
26
|
+
type: [String, Number]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(props, { slots, attrs }) {
|
|
30
|
+
const rowContext = vue.inject(chunkI2BZURVP_js.RowContextKey, null);
|
|
31
|
+
const gutter = vue.computed(() => rowContext?.gutter.value ?? 0);
|
|
32
|
+
const isFlexSpanMode = vue.computed(() => props.flex !== void 0 && props.span === 0);
|
|
33
|
+
const colClasses = vue.computed(
|
|
34
|
+
() => tigercatCore.classNames(
|
|
35
|
+
isFlexSpanMode.value ? "" : tigercatCore.getSpanClasses(props.span),
|
|
36
|
+
tigercatCore.getOffsetClasses(props.offset),
|
|
37
|
+
tigercatCore.getOrderClasses(props.order),
|
|
38
|
+
tigercatCore.getFlexClasses(props.flex)
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
const colMergedStyle = vue.computed(() => ({
|
|
42
|
+
...tigercatCore.getGutterStyles(gutter.value).colStyle,
|
|
43
|
+
...tigercatCore.getColMergedStyleVars(
|
|
44
|
+
isFlexSpanMode.value ? void 0 : props.span,
|
|
45
|
+
props.offset,
|
|
46
|
+
props.order,
|
|
47
|
+
props.flex
|
|
48
|
+
)
|
|
49
|
+
}));
|
|
50
|
+
return () => vue.h(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
...attrs,
|
|
54
|
+
class: [colClasses.value, attrs.class],
|
|
55
|
+
style: [colMergedStyle.value, attrs.style]
|
|
56
|
+
},
|
|
57
|
+
slots.default?.()
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
exports.Col = Col;
|
|
@@ -93,7 +93,7 @@ var Descriptions = defineComponent({
|
|
|
93
93
|
},
|
|
94
94
|
setup(props, { slots, attrs }) {
|
|
95
95
|
const descriptionsClasses = computed(() => {
|
|
96
|
-
return getDescriptionsClasses(props.
|
|
96
|
+
return getDescriptionsClasses(props.size);
|
|
97
97
|
});
|
|
98
98
|
const tableClasses = computed(() => {
|
|
99
99
|
return getDescriptionsTableClasses(props.bordered);
|
|
@@ -107,7 +107,7 @@ var Descriptions = defineComponent({
|
|
|
107
107
|
props.extra || slots.extra ? h(
|
|
108
108
|
"div",
|
|
109
109
|
{ class: descriptionsExtraClasses },
|
|
110
|
-
slots.extra?.() ||
|
|
110
|
+
slots.extra?.() || props.extra
|
|
111
111
|
) : null
|
|
112
112
|
]);
|
|
113
113
|
}
|
|
@@ -144,7 +144,7 @@ var Descriptions = defineComponent({
|
|
|
144
144
|
class: labelClass,
|
|
145
145
|
style: props.labelStyle
|
|
146
146
|
},
|
|
147
|
-
[item.label, props.colon
|
|
147
|
+
[item.label, props.colon ? ":" : ""]
|
|
148
148
|
)
|
|
149
149
|
);
|
|
150
150
|
cells.push(
|
|
@@ -155,7 +155,7 @@ var Descriptions = defineComponent({
|
|
|
155
155
|
style: props.contentStyle,
|
|
156
156
|
colspan: span > 1 ? span * 2 - 1 : 1
|
|
157
157
|
},
|
|
158
|
-
item.content
|
|
158
|
+
item.content
|
|
159
159
|
)
|
|
160
160
|
);
|
|
161
161
|
});
|
|
@@ -206,11 +206,11 @@ var Descriptions = defineComponent({
|
|
|
206
206
|
class: contentClass,
|
|
207
207
|
style: props.contentStyle
|
|
208
208
|
},
|
|
209
|
-
item.content
|
|
209
|
+
item.content
|
|
210
210
|
)
|
|
211
211
|
]);
|
|
212
212
|
}
|
|
213
|
-
const itemClasses = getDescriptionsVerticalItemClasses(props.
|
|
213
|
+
const itemClasses = getDescriptionsVerticalItemClasses(props.size);
|
|
214
214
|
return h("div", { class: itemClasses }, [
|
|
215
215
|
h(
|
|
216
216
|
"dt",
|
|
@@ -226,7 +226,7 @@ var Descriptions = defineComponent({
|
|
|
226
226
|
class: contentClass,
|
|
227
227
|
style: props.contentStyle
|
|
228
228
|
},
|
|
229
|
-
item.content
|
|
229
|
+
item.content
|
|
230
230
|
)
|
|
231
231
|
]);
|
|
232
232
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6MJBCXPO_js = require('./chunk-6MJBCXPO.js');
|
|
4
4
|
var vue = require('vue');
|
|
5
5
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
6
|
|
|
@@ -48,7 +48,7 @@ var DropdownItem = vue.defineComponent({
|
|
|
48
48
|
const attrsRecord = attrs;
|
|
49
49
|
const attrsClass = attrsRecord.class;
|
|
50
50
|
const attrsStyle = attrsRecord.style;
|
|
51
|
-
const context = vue.inject(
|
|
51
|
+
const context = vue.inject(chunk6MJBCXPO_js.DropdownContextKey, null);
|
|
52
52
|
const handleClick = (event) => {
|
|
53
53
|
if (props.disabled) {
|
|
54
54
|
event.preventDefault();
|