@expcat/tigercat-vue 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-EIH6ABOR.js → chunk-2FYVPPTD.js} +44 -15
- package/dist/{chunk-KY6AJRGT.mjs → chunk-2HRJGOAV.mjs} +4 -4
- package/dist/{chunk-MKBIVETW.mjs → chunk-2OI6GWOT.mjs} +22 -2
- package/dist/{chunk-NCT5FXQB.js → chunk-2RCBEBBR.js} +6 -3
- package/dist/{chunk-6K4UE5MK.mjs → chunk-2YPPXZ4I.mjs} +59 -5
- package/dist/{chunk-HCANI7ZG.mjs → chunk-36ZFDXKU.mjs} +10 -1
- package/dist/{chunk-JKEF7NB3.js → chunk-37LDNXLO.js} +4 -4
- package/dist/{chunk-DEJKRMMU.mjs → chunk-4IZUJJUO.mjs} +32 -9
- package/dist/{chunk-L6ZD3ZCO.mjs → chunk-4QCJUILG.mjs} +1 -1
- package/dist/{chunk-NWS45JQP.mjs → chunk-4RK5BDGR.mjs} +58 -10
- package/dist/{chunk-RKZN3URO.js → chunk-55BSMMUN.js} +27 -6
- package/dist/{chunk-NHBN6VAY.mjs → chunk-57VPT3MN.mjs} +2 -2
- package/dist/{chunk-7VSNXYFM.mjs → chunk-5CHHWMES.mjs} +27 -9
- package/dist/chunk-5FTM7R3P.js +142 -0
- package/dist/{chunk-CGZPOI6H.js → chunk-5PVDNJA5.js} +12 -2
- package/dist/{chunk-UMQUWX7U.mjs → chunk-64EZRIJL.mjs} +26 -4
- package/dist/{chunk-FSGD24HV.mjs → chunk-6CS3EEQU.mjs} +9 -1
- package/dist/{chunk-BYX756N5.mjs → chunk-6FV2OMB7.mjs} +22 -7
- package/dist/{chunk-VN4SKDFO.mjs → chunk-6G5FEZLT.mjs} +2 -12
- package/dist/{chunk-PQMZ3YN3.js → chunk-75TB3YIJ.js} +16 -2
- package/dist/{chunk-OTNVA2UT.js → chunk-7J7JIIHX.js} +28 -10
- package/dist/{chunk-M2XA7VU5.js → chunk-7KYGVEHF.js} +4 -4
- package/dist/{chunk-BPAN6T7H.mjs → chunk-7LCUVR63.mjs} +40 -5
- package/dist/{chunk-Z6MMA7ZE.js → chunk-7RMBEWN2.js} +2 -2
- package/dist/{chunk-SYTYUC67.js → chunk-AF7JZUTA.js} +2 -2
- package/dist/{chunk-3UQECWNL.mjs → chunk-ALFEFDVG.mjs} +103 -12
- package/dist/{chunk-E6RGBYI3.mjs → chunk-ALIUAGJO.mjs} +7 -0
- package/dist/{chunk-WUEP3PFN.js → chunk-ANQRW442.js} +31 -8
- package/dist/{chunk-X5CFXNVK.js → chunk-APBWQGXW.js} +14 -10
- package/dist/{chunk-IZF4VHJ2.mjs → chunk-ASOJXXU6.mjs} +2 -2
- package/dist/{chunk-6FXYRDYH.js → chunk-AWXSJNNP.js} +22 -2
- package/dist/{chunk-ZOUJFFG4.js → chunk-AYQER5UD.js} +17 -14
- package/dist/{chunk-GRP54POG.mjs → chunk-BJV62I73.mjs} +5 -5
- package/dist/{chunk-PGOTPYRG.js → chunk-BNUR72YP.js} +1 -0
- package/dist/{chunk-W5DLRGQL.js → chunk-BPJOIFND.js} +28 -19
- package/dist/{chunk-OKR3GRG5.mjs → chunk-BRGQXIKA.mjs} +58 -10
- package/dist/{chunk-QYSFZA5V.js → chunk-BV6XWFRF.js} +14 -7
- package/dist/{chunk-ODQOYMUQ.js → chunk-BYNTPLGC.js} +8 -1
- package/dist/{chunk-SVWZOIBI.js → chunk-BZ56UKUK.js} +4 -4
- package/dist/{chunk-6NJXI66G.mjs → chunk-CF4GX6BD.mjs} +36 -4
- package/dist/{chunk-RLPSCEBP.js → chunk-CFJST2X2.js} +98 -26
- package/dist/{chunk-NUABW6IB.mjs → chunk-CGZFRSI5.mjs} +1 -1
- package/dist/{chunk-DSNPEWYP.mjs → chunk-CIDINFA2.mjs} +31 -3
- package/dist/{chunk-WZRC7PJH.mjs → chunk-CVFXUYH2.mjs} +38 -5
- package/dist/{chunk-QKP5C26H.mjs → chunk-CW5TEG7N.mjs} +2 -2
- package/dist/{chunk-OUBJHKWX.js → chunk-D43IFX7J.js} +1 -4
- package/dist/{chunk-TXQEHRQB.js → chunk-D6Y3KVJF.js} +5 -1
- package/dist/{chunk-MOLGN476.mjs → chunk-DMQLA35L.mjs} +11 -1
- package/dist/{chunk-2WJADO6O.mjs → chunk-DZFM7H3M.mjs} +21 -7
- package/dist/{chunk-62ZSNASF.mjs → chunk-E7NE5HEC.mjs} +140 -7
- package/dist/{chunk-AP42636I.js → chunk-EG7XX6U4.js} +2 -2
- package/dist/{chunk-RHLP2ED5.mjs → chunk-EVIZXEB2.mjs} +15 -8
- package/dist/{chunk-SGRUGYQ6.mjs → chunk-EYR27UIE.mjs} +13 -10
- package/dist/{chunk-PPEAQDD5.mjs → chunk-FAQL7HFW.mjs} +8 -0
- package/dist/{chunk-PTAWLJCV.mjs → chunk-FT2HWF7P.mjs} +1 -1
- package/dist/{chunk-OK4PVFQG.mjs → chunk-G2LB4QCL.mjs} +18 -15
- package/dist/{chunk-WGRNO4PB.js → chunk-GBYNY77G.js} +3 -3
- package/dist/{chunk-NTZ7LQTY.js → chunk-GJ5HJOQP.js} +61 -32
- package/dist/{chunk-QZQYKC2N.js → chunk-GV3LRZSR.js} +35 -9
- package/dist/{chunk-W6ZFHHD3.mjs → chunk-GZWZP5AL.mjs} +9 -2
- package/dist/{chunk-BYNMOQBB.js → chunk-H2XEJHGR.js} +23 -9
- package/dist/{chunk-FMH4CLSA.mjs → chunk-H6FZBFRT.mjs} +27 -6
- package/dist/{chunk-FUI6WG2F.js → chunk-H7GAWNOW.js} +35 -5
- package/dist/{chunk-HMYVPBWI.js → chunk-HI45DI7S.js} +2 -2
- package/dist/{chunk-HKRMZODL.mjs → chunk-HIXWZVE5.mjs} +14 -10
- package/dist/{chunk-VVS2CQS4.mjs → chunk-HLPSHCXO.mjs} +8 -3
- package/dist/{chunk-PENI3H3I.mjs → chunk-HS4YQGZQ.mjs} +45 -11
- package/dist/{chunk-6Y4NWO4I.mjs → chunk-HWL36OCD.mjs} +7 -4
- package/dist/{chunk-UANF7XE5.mjs → chunk-IJL7YYT7.mjs} +6 -4
- package/dist/{chunk-G3SWTL27.js → chunk-IUPNDTUF.js} +1 -1
- package/dist/{chunk-HZBE2RY4.js → chunk-J77GQQEC.js} +31 -3
- package/dist/{chunk-TUSWQVI2.mjs → chunk-JCGWN7WV.mjs} +1 -0
- package/dist/{chunk-K5ZZZ4TL.mjs → chunk-JGW7R7AZ.mjs} +2 -2
- package/dist/{chunk-WYVA3JBH.js → chunk-JICPYKCT.js} +103 -12
- package/dist/{chunk-2MLORMN2.js → chunk-JMRR4KDB.js} +2 -2
- package/dist/{chunk-KDA4XDXT.js → chunk-K2NJI5MW.js} +2 -2
- package/dist/{chunk-ACYYQJ6M.js → chunk-KLOUOXNA.js} +8 -3
- package/dist/{chunk-G6ULKE6H.mjs → chunk-KRWKO2JQ.mjs} +17 -3
- package/dist/{chunk-PJ66WE62.js → chunk-KTNT2JHB.js} +143 -10
- package/dist/{chunk-KH2CF6JU.mjs → chunk-LGDJDBE3.mjs} +90 -35
- package/dist/{chunk-IKEZDGRO.mjs → chunk-LHZ5MRFQ.mjs} +2 -2
- package/dist/{chunk-5F6P5Y4K.js → chunk-LKRT27JW.js} +45 -11
- package/dist/{chunk-FP7SBCPO.js → chunk-LODEICSN.js} +4 -4
- package/dist/{chunk-DOBGVCZJ.mjs → chunk-LOX2KCML.mjs} +7 -6
- package/dist/{chunk-XZMU7B54.js → chunk-LPHDX3UU.js} +51 -2
- package/dist/{chunk-PXRF4IJO.mjs → chunk-LSWTZHBV.mjs} +23 -3
- package/dist/{chunk-M2ECZQ2D.mjs → chunk-MF7BKYGN.mjs} +27 -18
- package/dist/chunk-MNVMGJUF.js +341 -0
- package/dist/{chunk-LYF6AAQ7.js → chunk-MPVL53GP.js} +59 -5
- package/dist/{chunk-BHNBLQ5S.mjs → chunk-N2QGYEOQ.mjs} +17 -19
- package/dist/{chunk-SGXLMKMO.js → chunk-NQYE64IF.js} +15 -8
- package/dist/{chunk-TAU447CL.js → chunk-OOMZBTHW.js} +25 -3
- package/dist/{chunk-DUMPRNDR.js → chunk-OQBWITHA.js} +17 -19
- package/dist/{chunk-Z6HBM73W.js → chunk-OQOJI5Q7.js} +2 -2
- package/dist/{chunk-RKL4Y7CW.mjs → chunk-OSPHI5TV.mjs} +110 -3
- package/dist/{chunk-QUIRQ7OA.js → chunk-OVXDO6KJ.js} +9 -5
- package/dist/{chunk-DMV26JNR.mjs → chunk-PD2PKYJE.mjs} +58 -6
- package/dist/{chunk-LG55VN6B.js → chunk-PFZFPN7M.js} +7 -7
- package/dist/{chunk-SJIW7SNA.js → chunk-PH6ERFC7.js} +22 -7
- package/dist/{chunk-Y3BQSELH.mjs → chunk-PJX2DHO5.mjs} +2 -2
- package/dist/{chunk-HVVPFQW2.mjs → chunk-PLUABMUD.mjs} +16 -2
- package/dist/{chunk-RFFPMC22.mjs → chunk-PMN2MQ26.mjs} +1 -1
- package/dist/{chunk-QAMXVTNN.mjs → chunk-QH3YF5B6.mjs} +95 -23
- package/dist/{chunk-FGM7KB2Q.js → chunk-QKJATAJP.js} +113 -6
- package/dist/{chunk-UAD2XROX.mjs → chunk-RD2NFAB6.mjs} +2 -2
- package/dist/{chunk-DOJPPVAN.mjs → chunk-RTZUIWCN.mjs} +5 -1
- package/dist/{chunk-NDS2DLUS.mjs → chunk-S4Z77VIB.mjs} +7 -3
- package/dist/{chunk-5VSKQLK3.js → chunk-SIVMTPDY.js} +61 -13
- package/dist/{chunk-YSUT2GRP.mjs → chunk-SMCOBLF6.mjs} +50 -1
- package/dist/{chunk-GY75BFAV.js → chunk-SOSHYDIX.js} +9 -9
- package/dist/{chunk-KN64NDJS.js → chunk-TCB3WFYM.js} +12 -11
- package/dist/{chunk-A6T2IHFC.mjs → chunk-TM73IWEY.mjs} +51 -11
- package/dist/{chunk-24CBIC75.js → chunk-TNKULOHK.js} +8 -0
- package/dist/{chunk-BZBVSB43.js → chunk-TOD67L2E.js} +40 -5
- package/dist/{chunk-RPWKAGN5.mjs → chunk-TRN5PL5D.mjs} +2 -2
- package/dist/{chunk-LG6KGO5D.js → chunk-TXMPLBWW.js} +57 -5
- package/dist/{chunk-NOZ65AMO.js → chunk-TYYJPEWG.js} +15 -2
- package/dist/{chunk-NEVDRG6C.js → chunk-U5TSCS34.js} +5 -15
- package/dist/{chunk-SLYUQ67P.js → chunk-UKR3IJF3.js} +3 -1
- package/dist/{chunk-M5PGWW25.mjs → chunk-UTGFGMZT.mjs} +33 -3
- package/dist/chunk-V5ANPH5R.mjs +341 -0
- package/dist/{chunk-AZ6SASY5.mjs → chunk-V5ZEPAWV.mjs} +44 -15
- package/dist/{chunk-2R5HISQA.mjs → chunk-VCCK4CDT.mjs} +4 -2
- package/dist/{chunk-RUXIQ5EP.js → chunk-VDKUKZS2.js} +110 -55
- package/dist/{chunk-ZQD2MCNX.mjs → chunk-VJJ7RAC6.mjs} +34 -8
- package/dist/{chunk-2S5CNU36.js → chunk-VQXDF6CB.js} +23 -3
- package/dist/{chunk-BPAZBRCR.js → chunk-VUGFSHU2.js} +17 -3
- package/dist/{chunk-NHNJUBYZ.js → chunk-VXRFE72I.js} +38 -5
- package/dist/{chunk-OOS3QQFK.mjs → chunk-VYBRLIKF.mjs} +64 -35
- package/dist/{chunk-UWZSTI3E.js → chunk-W34IV4EC.js} +9 -1
- package/dist/{chunk-E363N2BJ.mjs → chunk-WBT3WSRE.mjs} +1 -4
- package/dist/{chunk-X6FG4RPF.js → chunk-WF7KVMBY.js} +24 -11
- package/dist/{chunk-WFISP42H.mjs → chunk-WLHOWOAY.mjs} +15 -2
- package/dist/{chunk-J6YCXMVY.mjs → chunk-WSUCJHJX.mjs} +1 -1
- package/dist/{chunk-KY3O3FWK.mjs → chunk-WWB7VKKH.mjs} +24 -11
- package/dist/{chunk-GQAVLQEZ.mjs → chunk-X43QLJ5E.mjs} +1 -1
- package/dist/{chunk-ULUH6UNV.js → chunk-X73BZFBH.js} +4 -4
- package/dist/{chunk-KA7DILCI.js → chunk-X7PQRYUS.js} +61 -13
- package/dist/chunk-XFNHZ7SV.mjs +142 -0
- package/dist/{chunk-EJZBG5RT.js → chunk-XMCYKHT4.js} +10 -1
- package/dist/{chunk-DZXZ3YEL.js → chunk-XSJKSUED.js} +5 -3
- package/dist/{chunk-ZCT56WB7.mjs → chunk-XZYFVOOS.mjs} +1 -1
- package/dist/{chunk-T5N2UHVP.js → chunk-YI25YL5W.js} +2 -2
- package/dist/{chunk-TAAHD4R7.js → chunk-YLMQZR6F.js} +36 -4
- package/dist/{chunk-WNYWWGNM.js → chunk-YMUYN4IR.js} +51 -11
- package/dist/{chunk-44N7LE3Q.js → chunk-YTE45DNC.js} +13 -10
- package/dist/{chunk-VAXO5NEM.js → chunk-YVSINGGE.js} +2 -2
- package/dist/{chunk-VPHM5WEL.mjs → chunk-YZATP4VF.mjs} +1 -1
- package/dist/components/ActivityFeed.js +6 -6
- package/dist/components/ActivityFeed.mjs +5 -5
- package/dist/components/Anchor.js +2 -2
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/AnchorLink.js +3 -3
- package/dist/components/AnchorLink.mjs +1 -1
- package/dist/components/AreaChart.js +4 -4
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.d.mts +2 -2
- package/dist/components/AutoComplete.d.ts +2 -2
- package/dist/components/AutoComplete.js +2 -2
- package/dist/components/AutoComplete.mjs +1 -1
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Avatar.mjs +2 -2
- package/dist/components/AvatarGroup.js +2 -2
- package/dist/components/AvatarGroup.mjs +1 -1
- package/dist/components/BackTop.d.mts +2 -2
- package/dist/components/BackTop.d.ts +2 -2
- package/dist/components/BackTop.js +2 -2
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Badge.d.mts +10 -1
- package/dist/components/Badge.d.ts +10 -1
- package/dist/components/Badge.js +3 -2
- package/dist/components/Badge.mjs +2 -1
- package/dist/components/BarChart.js +4 -4
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb.mjs +1 -1
- package/dist/components/BreadcrumbItem.js +3 -3
- package/dist/components/BreadcrumbItem.mjs +1 -1
- package/dist/components/Calendar.d.mts +16 -6
- package/dist/components/Calendar.d.ts +16 -6
- package/dist/components/Calendar.js +3 -2
- package/dist/components/Calendar.mjs +2 -1
- package/dist/components/Cascader.js +2 -2
- package/dist/components/Cascader.mjs +1 -1
- package/dist/components/ChartLegend.js +2 -2
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartTooltip.js +2 -2
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.d.mts +7 -7
- package/dist/components/ChatWindow.d.ts +7 -7
- package/dist/components/ChatWindow.js +10 -8
- package/dist/components/ChatWindow.mjs +9 -7
- package/dist/components/CodeEditor.js +2 -2
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/ColorSwatch.d.mts +1 -1
- package/dist/components/ColorSwatch.d.ts +1 -1
- package/dist/components/CommentThread.d.mts +5 -1
- package/dist/components/CommentThread.d.ts +5 -1
- package/dist/components/CommentThread.js +8 -6
- package/dist/components/CommentThread.mjs +7 -5
- package/dist/components/Countdown.d.mts +1 -1
- package/dist/components/Countdown.d.ts +1 -1
- package/dist/components/CronEditor.d.mts +1 -1
- package/dist/components/CronEditor.d.ts +1 -1
- package/dist/components/CropUpload.d.mts +13 -3
- package/dist/components/CropUpload.d.ts +13 -3
- package/dist/components/CropUpload.js +3 -3
- package/dist/components/CropUpload.mjs +2 -2
- package/dist/components/DataTableWithToolbar.d.mts +223 -1
- package/dist/components/DataTableWithToolbar.d.ts +223 -1
- package/dist/components/DataTableWithToolbar.js +7 -6
- package/dist/components/DataTableWithToolbar.mjs +6 -5
- package/dist/components/DatePicker.d.mts +6 -1
- package/dist/components/DatePicker.d.ts +6 -1
- package/dist/components/DatePicker.js +3 -2
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/DonutChart.d.mts +9 -0
- package/dist/components/DonutChart.d.ts +9 -0
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/DropdownMenu.js +3 -3
- package/dist/components/DropdownMenu.mjs +1 -1
- package/dist/components/Empty.d.mts +11 -1
- package/dist/components/Empty.d.ts +11 -1
- package/dist/components/Empty.js +3 -2
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +19 -19
- package/dist/components/FileManager.d.ts +19 -19
- package/dist/components/FileManager.js +2 -2
- package/dist/components/FileManager.mjs +1 -1
- package/dist/components/FloatButton.d.mts +3 -3
- package/dist/components/FloatButton.d.ts +3 -3
- package/dist/components/FloatButton.js +2 -2
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.js +2 -2
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.js +3 -3
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.js +3 -3
- package/dist/components/FormWizard.mjs +2 -2
- package/dist/components/FunnelChart.js +4 -4
- package/dist/components/FunnelChart.mjs +3 -3
- package/dist/components/Gantt.d.mts +1 -1
- package/dist/components/Gantt.d.ts +1 -1
- package/dist/components/GaugeChart.d.mts +15 -0
- package/dist/components/GaugeChart.d.ts +15 -0
- package/dist/components/GaugeChart.js +3 -2
- package/dist/components/GaugeChart.mjs +2 -1
- package/dist/components/HeatmapChart.js +3 -3
- package/dist/components/HeatmapChart.mjs +2 -2
- package/dist/components/Icon.d.mts +1 -1
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Image.js +4 -3
- package/dist/components/Image.mjs +3 -2
- package/dist/components/ImageAnnotation.d.mts +11 -1
- package/dist/components/ImageAnnotation.d.ts +11 -1
- package/dist/components/ImageAnnotation.js +3 -2
- package/dist/components/ImageAnnotation.mjs +2 -1
- package/dist/components/ImageCropper.d.mts +11 -0
- package/dist/components/ImageCropper.d.ts +11 -0
- package/dist/components/ImageCropper.js +3 -2
- package/dist/components/ImageCropper.mjs +2 -1
- package/dist/components/ImageGroup.js +4 -3
- package/dist/components/ImageGroup.mjs +3 -2
- package/dist/components/ImagePreview.d.mts +11 -0
- package/dist/components/ImagePreview.d.ts +11 -0
- package/dist/components/ImagePreview.js +3 -2
- package/dist/components/ImagePreview.mjs +2 -1
- package/dist/components/ImageViewer.d.mts +1 -0
- package/dist/components/ImageViewer.d.ts +1 -0
- package/dist/components/ImageViewer.js +2 -2
- package/dist/components/ImageViewer.mjs +1 -1
- package/dist/components/InfiniteScroll.js +2 -2
- package/dist/components/InfiniteScroll.mjs +1 -1
- package/dist/components/Input.d.mts +1 -1
- package/dist/components/Input.d.ts +1 -1
- package/dist/components/Input.js +3 -2
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputNumber.d.mts +21 -1
- package/dist/components/InputNumber.d.ts +21 -1
- package/dist/components/InputNumber.js +3 -2
- package/dist/components/InputNumber.mjs +2 -1
- package/dist/components/Kanban.d.mts +21 -1
- package/dist/components/Kanban.d.ts +21 -1
- package/dist/components/Kanban.js +3 -3
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/LineChart.js +4 -4
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/List.js +3 -3
- package/dist/components/List.mjs +2 -2
- package/dist/components/MarkdownEditor.js +2 -2
- package/dist/components/MarkdownEditor.mjs +1 -1
- package/dist/components/Message.d.mts +11 -1
- package/dist/components/Message.d.ts +11 -1
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/NotificationCenter.js +5 -5
- package/dist/components/NotificationCenter.mjs +4 -4
- package/dist/components/NumberKeyboard.d.mts +2 -2
- package/dist/components/NumberKeyboard.d.ts +2 -2
- package/dist/components/OrgChart.d.mts +1 -1
- package/dist/components/OrgChart.d.ts +1 -1
- package/dist/components/PieChart.d.mts +9 -0
- package/dist/components/PieChart.d.ts +9 -0
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +3 -3
- package/dist/components/Progress.d.mts +1 -1
- package/dist/components/Progress.d.ts +1 -1
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/QRCode.d.ts +1 -1
- package/dist/components/QRCode.js +2 -2
- package/dist/components/QRCode.mjs +1 -1
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +3 -3
- package/dist/components/Rate.js +2 -2
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/Resizable.js +2 -2
- package/dist/components/Resizable.mjs +1 -1
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/Result.d.ts +1 -1
- package/dist/components/Result.js +2 -2
- package/dist/components/Result.mjs +1 -1
- package/dist/components/RichTextEditor.js +2 -2
- package/dist/components/RichTextEditor.mjs +1 -1
- package/dist/components/ScatterChart.js +4 -4
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/ScrollSpy.d.mts +1 -1
- package/dist/components/ScrollSpy.d.ts +1 -1
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Segmented.mjs +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Signature.d.mts +1 -1
- package/dist/components/Signature.d.ts +1 -1
- package/dist/components/Slider.js +2 -2
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Steps.d.mts +2 -2
- package/dist/components/Steps.d.ts +2 -2
- package/dist/components/Steps.js +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/StepsItem.js +3 -3
- package/dist/components/StepsItem.mjs +1 -1
- package/dist/components/SunburstChart.js +4 -4
- package/dist/components/SunburstChart.mjs +3 -3
- package/dist/components/TabPane.js +3 -3
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.js +4 -4
- package/dist/components/Table.mjs +3 -3
- package/dist/components/Tabs.d.mts +2 -0
- package/dist/components/Tabs.d.ts +2 -0
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.d.mts +13 -3
- package/dist/components/Tag.d.ts +13 -3
- package/dist/components/Tag.js +3 -2
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/TaskBoard.d.mts +21 -1
- package/dist/components/TaskBoard.d.ts +21 -1
- package/dist/components/TaskBoard.js +2 -2
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/TimePicker.js +2 -2
- package/dist/components/TimePicker.mjs +1 -1
- package/dist/components/Timeline.js +2 -2
- package/dist/components/Timeline.mjs +1 -1
- package/dist/components/Tour.d.mts +1 -3
- package/dist/components/Tour.d.ts +1 -3
- package/dist/components/Tour.js +3 -2
- package/dist/components/Tour.mjs +2 -1
- package/dist/components/Transfer.d.mts +19 -2
- package/dist/components/Transfer.d.ts +19 -2
- package/dist/components/Transfer.js +2 -2
- package/dist/components/Transfer.mjs +1 -1
- package/dist/components/Tree.d.mts +2 -2
- package/dist/components/Tree.d.ts +2 -2
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +2 -2
- package/dist/components/TreeMapChart.js +4 -4
- package/dist/components/TreeMapChart.mjs +3 -3
- package/dist/components/Upload.d.mts +1 -1
- package/dist/components/Upload.d.ts +1 -1
- package/dist/components/Upload.js +2 -2
- package/dist/components/Upload.mjs +1 -1
- package/dist/components/VirtualList.d.mts +11 -0
- package/dist/components/VirtualList.d.ts +11 -0
- package/dist/components/VirtualList.js +2 -2
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +30 -0
- package/dist/components/VirtualTable.d.ts +30 -0
- package/dist/components/VirtualTable.js +2 -2
- package/dist/components/VirtualTable.mjs +1 -1
- package/dist/index.d.mts +134 -134
- package/dist/index.d.ts +134 -134
- package/dist/index.js +80 -80
- package/dist/index.mjs +79 -79
- package/package.json +6 -6
- package/dist/chunk-DJCTERZH.js +0 -92
- package/dist/chunk-LD7ZJCTO.mjs +0 -167
- package/dist/chunk-XAQID5IO.js +0 -167
- package/dist/chunk-ZYCOHZCM.mjs +0 -92
package/dist/chunk-LD7ZJCTO.mjs
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
// src/components/Calendar.ts
|
|
2
|
-
import { defineComponent, h, ref, computed } from "vue";
|
|
3
|
-
import { classNames, coerceClassValue } from "@expcat/tigercat-core";
|
|
4
|
-
import {
|
|
5
|
-
getCalendarContainerClasses,
|
|
6
|
-
calendarHeaderClasses,
|
|
7
|
-
calendarNavButtonClasses,
|
|
8
|
-
calendarTitleClasses,
|
|
9
|
-
calendarWeekdayClasses,
|
|
10
|
-
getCalendarDayClasses,
|
|
11
|
-
getCalendarMonthClasses,
|
|
12
|
-
WEEKDAYS,
|
|
13
|
-
MONTHS,
|
|
14
|
-
isSameDay,
|
|
15
|
-
getMonthDays
|
|
16
|
-
} from "@expcat/tigercat-core";
|
|
17
|
-
var Calendar = defineComponent({
|
|
18
|
-
name: "TigerCalendar",
|
|
19
|
-
inheritAttrs: false,
|
|
20
|
-
props: {
|
|
21
|
-
modelValue: { type: Date, default: void 0 },
|
|
22
|
-
mode: { type: String, default: "month" },
|
|
23
|
-
fullscreen: { type: Boolean, default: false },
|
|
24
|
-
disabledDate: { type: Function, default: void 0 },
|
|
25
|
-
className: { type: String, default: void 0 }
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:modelValue", "change", "panel-change"],
|
|
28
|
-
setup(props, { emit, attrs }) {
|
|
29
|
-
const today = /* @__PURE__ */ new Date();
|
|
30
|
-
const viewYear = ref(props.modelValue?.getFullYear() ?? today.getFullYear());
|
|
31
|
-
const viewMonth = ref(props.modelValue?.getMonth() ?? today.getMonth());
|
|
32
|
-
const days = computed(() => getMonthDays(viewYear.value, viewMonth.value));
|
|
33
|
-
function prevMonth() {
|
|
34
|
-
if (viewMonth.value === 0) {
|
|
35
|
-
viewMonth.value = 11;
|
|
36
|
-
viewYear.value--;
|
|
37
|
-
} else {
|
|
38
|
-
viewMonth.value--;
|
|
39
|
-
}
|
|
40
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
41
|
-
}
|
|
42
|
-
function nextMonth() {
|
|
43
|
-
if (viewMonth.value === 11) {
|
|
44
|
-
viewMonth.value = 0;
|
|
45
|
-
viewYear.value++;
|
|
46
|
-
} else {
|
|
47
|
-
viewMonth.value++;
|
|
48
|
-
}
|
|
49
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
50
|
-
}
|
|
51
|
-
function prevYear() {
|
|
52
|
-
viewYear.value--;
|
|
53
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
54
|
-
}
|
|
55
|
-
function nextYear() {
|
|
56
|
-
viewYear.value++;
|
|
57
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
58
|
-
}
|
|
59
|
-
function selectDay(date) {
|
|
60
|
-
if (props.disabledDate?.(date)) return;
|
|
61
|
-
emit("update:modelValue", date);
|
|
62
|
-
emit("change", date);
|
|
63
|
-
}
|
|
64
|
-
function selectMonth(monthIdx) {
|
|
65
|
-
viewMonth.value = monthIdx;
|
|
66
|
-
emit("panel-change", new Date(viewYear.value, monthIdx, 1), props.mode);
|
|
67
|
-
}
|
|
68
|
-
return () => {
|
|
69
|
-
const containerClass = classNames(
|
|
70
|
-
getCalendarContainerClasses(!!props.fullscreen),
|
|
71
|
-
props.className,
|
|
72
|
-
coerceClassValue(attrs.class)
|
|
73
|
-
);
|
|
74
|
-
const header = h("div", { class: calendarHeaderClasses }, [
|
|
75
|
-
h(
|
|
76
|
-
"button",
|
|
77
|
-
{
|
|
78
|
-
type: "button",
|
|
79
|
-
class: calendarNavButtonClasses,
|
|
80
|
-
"aria-label": props.mode === "month" ? "Previous month" : "Previous year",
|
|
81
|
-
onClick: props.mode === "month" ? prevMonth : prevYear
|
|
82
|
-
},
|
|
83
|
-
"\u2039"
|
|
84
|
-
),
|
|
85
|
-
h(
|
|
86
|
-
"span",
|
|
87
|
-
{ class: calendarTitleClasses },
|
|
88
|
-
props.mode === "month" ? `${MONTHS[viewMonth.value]} ${viewYear.value}` : `${viewYear.value}`
|
|
89
|
-
),
|
|
90
|
-
h(
|
|
91
|
-
"button",
|
|
92
|
-
{
|
|
93
|
-
type: "button",
|
|
94
|
-
class: calendarNavButtonClasses,
|
|
95
|
-
"aria-label": props.mode === "month" ? "Next month" : "Next year",
|
|
96
|
-
onClick: props.mode === "month" ? nextMonth : nextYear
|
|
97
|
-
},
|
|
98
|
-
"\u203A"
|
|
99
|
-
)
|
|
100
|
-
]);
|
|
101
|
-
let body;
|
|
102
|
-
if (props.mode === "year") {
|
|
103
|
-
body = h(
|
|
104
|
-
"div",
|
|
105
|
-
{ class: "grid grid-cols-3 gap-2" },
|
|
106
|
-
MONTHS.map(
|
|
107
|
-
(m, i) => h(
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
key: i,
|
|
111
|
-
class: getCalendarMonthClasses(viewMonth.value === i),
|
|
112
|
-
onClick: () => selectMonth(i)
|
|
113
|
-
},
|
|
114
|
-
m
|
|
115
|
-
)
|
|
116
|
-
)
|
|
117
|
-
);
|
|
118
|
-
} else {
|
|
119
|
-
const weekdayRow = h(
|
|
120
|
-
"div",
|
|
121
|
-
{ class: "grid grid-cols-7" },
|
|
122
|
-
WEEKDAYS.map((wd) => h("div", { key: wd, class: calendarWeekdayClasses }, wd))
|
|
123
|
-
);
|
|
124
|
-
const dayGrid = h(
|
|
125
|
-
"div",
|
|
126
|
-
{ class: "grid grid-cols-7" },
|
|
127
|
-
days.value.map((date, i) => {
|
|
128
|
-
const isCurrentMonth = date.getMonth() === viewMonth.value;
|
|
129
|
-
const isSelected = props.modelValue ? isSameDay(date, props.modelValue) : false;
|
|
130
|
-
const isTodayDate = isSameDay(date, today);
|
|
131
|
-
const isDisabled = !!props.disabledDate?.(date);
|
|
132
|
-
return h(
|
|
133
|
-
"div",
|
|
134
|
-
{
|
|
135
|
-
key: i,
|
|
136
|
-
class: "flex items-center justify-center py-0.5"
|
|
137
|
-
},
|
|
138
|
-
[
|
|
139
|
-
h(
|
|
140
|
-
"div",
|
|
141
|
-
{
|
|
142
|
-
class: getCalendarDayClasses(
|
|
143
|
-
isSelected,
|
|
144
|
-
isTodayDate,
|
|
145
|
-
isCurrentMonth,
|
|
146
|
-
isDisabled
|
|
147
|
-
),
|
|
148
|
-
onClick: () => selectDay(date)
|
|
149
|
-
},
|
|
150
|
-
date.getDate()
|
|
151
|
-
)
|
|
152
|
-
]
|
|
153
|
-
);
|
|
154
|
-
})
|
|
155
|
-
);
|
|
156
|
-
body = h("div", {}, [weekdayRow, dayGrid]);
|
|
157
|
-
}
|
|
158
|
-
return h("div", { ...attrs, class: containerClass, role: "group" }, [header, body]);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
var Calendar_default = Calendar;
|
|
163
|
-
|
|
164
|
-
export {
|
|
165
|
-
Calendar,
|
|
166
|
-
Calendar_default
|
|
167
|
-
};
|
package/dist/chunk-XAQID5IO.js
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/components/Calendar.ts
|
|
2
|
-
var _vue = require('vue');
|
|
3
|
-
var _tigercatcore = require('@expcat/tigercat-core');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var Calendar = _vue.defineComponent.call(void 0, {
|
|
18
|
-
name: "TigerCalendar",
|
|
19
|
-
inheritAttrs: false,
|
|
20
|
-
props: {
|
|
21
|
-
modelValue: { type: Date, default: void 0 },
|
|
22
|
-
mode: { type: String, default: "month" },
|
|
23
|
-
fullscreen: { type: Boolean, default: false },
|
|
24
|
-
disabledDate: { type: Function, default: void 0 },
|
|
25
|
-
className: { type: String, default: void 0 }
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:modelValue", "change", "panel-change"],
|
|
28
|
-
setup(props, { emit, attrs }) {
|
|
29
|
-
const today = /* @__PURE__ */ new Date();
|
|
30
|
-
const viewYear = _vue.ref.call(void 0, _nullishCoalesce(_optionalChain([props, 'access', _ => _.modelValue, 'optionalAccess', _2 => _2.getFullYear, 'call', _3 => _3()]), () => ( today.getFullYear())));
|
|
31
|
-
const viewMonth = _vue.ref.call(void 0, _nullishCoalesce(_optionalChain([props, 'access', _4 => _4.modelValue, 'optionalAccess', _5 => _5.getMonth, 'call', _6 => _6()]), () => ( today.getMonth())));
|
|
32
|
-
const days = _vue.computed.call(void 0, () => _tigercatcore.getMonthDays.call(void 0, viewYear.value, viewMonth.value));
|
|
33
|
-
function prevMonth() {
|
|
34
|
-
if (viewMonth.value === 0) {
|
|
35
|
-
viewMonth.value = 11;
|
|
36
|
-
viewYear.value--;
|
|
37
|
-
} else {
|
|
38
|
-
viewMonth.value--;
|
|
39
|
-
}
|
|
40
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
41
|
-
}
|
|
42
|
-
function nextMonth() {
|
|
43
|
-
if (viewMonth.value === 11) {
|
|
44
|
-
viewMonth.value = 0;
|
|
45
|
-
viewYear.value++;
|
|
46
|
-
} else {
|
|
47
|
-
viewMonth.value++;
|
|
48
|
-
}
|
|
49
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
50
|
-
}
|
|
51
|
-
function prevYear() {
|
|
52
|
-
viewYear.value--;
|
|
53
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
54
|
-
}
|
|
55
|
-
function nextYear() {
|
|
56
|
-
viewYear.value++;
|
|
57
|
-
emit("panel-change", new Date(viewYear.value, viewMonth.value, 1), props.mode);
|
|
58
|
-
}
|
|
59
|
-
function selectDay(date) {
|
|
60
|
-
if (_optionalChain([props, 'access', _7 => _7.disabledDate, 'optionalCall', _8 => _8(date)])) return;
|
|
61
|
-
emit("update:modelValue", date);
|
|
62
|
-
emit("change", date);
|
|
63
|
-
}
|
|
64
|
-
function selectMonth(monthIdx) {
|
|
65
|
-
viewMonth.value = monthIdx;
|
|
66
|
-
emit("panel-change", new Date(viewYear.value, monthIdx, 1), props.mode);
|
|
67
|
-
}
|
|
68
|
-
return () => {
|
|
69
|
-
const containerClass = _tigercatcore.classNames.call(void 0,
|
|
70
|
-
_tigercatcore.getCalendarContainerClasses.call(void 0, !!props.fullscreen),
|
|
71
|
-
props.className,
|
|
72
|
-
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
73
|
-
);
|
|
74
|
-
const header = _vue.h.call(void 0, "div", { class: _tigercatcore.calendarHeaderClasses }, [
|
|
75
|
-
_vue.h.call(void 0,
|
|
76
|
-
"button",
|
|
77
|
-
{
|
|
78
|
-
type: "button",
|
|
79
|
-
class: _tigercatcore.calendarNavButtonClasses,
|
|
80
|
-
"aria-label": props.mode === "month" ? "Previous month" : "Previous year",
|
|
81
|
-
onClick: props.mode === "month" ? prevMonth : prevYear
|
|
82
|
-
},
|
|
83
|
-
"\u2039"
|
|
84
|
-
),
|
|
85
|
-
_vue.h.call(void 0,
|
|
86
|
-
"span",
|
|
87
|
-
{ class: _tigercatcore.calendarTitleClasses },
|
|
88
|
-
props.mode === "month" ? `${_tigercatcore.MONTHS[viewMonth.value]} ${viewYear.value}` : `${viewYear.value}`
|
|
89
|
-
),
|
|
90
|
-
_vue.h.call(void 0,
|
|
91
|
-
"button",
|
|
92
|
-
{
|
|
93
|
-
type: "button",
|
|
94
|
-
class: _tigercatcore.calendarNavButtonClasses,
|
|
95
|
-
"aria-label": props.mode === "month" ? "Next month" : "Next year",
|
|
96
|
-
onClick: props.mode === "month" ? nextMonth : nextYear
|
|
97
|
-
},
|
|
98
|
-
"\u203A"
|
|
99
|
-
)
|
|
100
|
-
]);
|
|
101
|
-
let body;
|
|
102
|
-
if (props.mode === "year") {
|
|
103
|
-
body = _vue.h.call(void 0,
|
|
104
|
-
"div",
|
|
105
|
-
{ class: "grid grid-cols-3 gap-2" },
|
|
106
|
-
_tigercatcore.MONTHS.map(
|
|
107
|
-
(m, i) => _vue.h.call(void 0,
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
key: i,
|
|
111
|
-
class: _tigercatcore.getCalendarMonthClasses.call(void 0, viewMonth.value === i),
|
|
112
|
-
onClick: () => selectMonth(i)
|
|
113
|
-
},
|
|
114
|
-
m
|
|
115
|
-
)
|
|
116
|
-
)
|
|
117
|
-
);
|
|
118
|
-
} else {
|
|
119
|
-
const weekdayRow = _vue.h.call(void 0,
|
|
120
|
-
"div",
|
|
121
|
-
{ class: "grid grid-cols-7" },
|
|
122
|
-
_tigercatcore.WEEKDAYS.map((wd) => _vue.h.call(void 0, "div", { key: wd, class: _tigercatcore.calendarWeekdayClasses }, wd))
|
|
123
|
-
);
|
|
124
|
-
const dayGrid = _vue.h.call(void 0,
|
|
125
|
-
"div",
|
|
126
|
-
{ class: "grid grid-cols-7" },
|
|
127
|
-
days.value.map((date, i) => {
|
|
128
|
-
const isCurrentMonth = date.getMonth() === viewMonth.value;
|
|
129
|
-
const isSelected = props.modelValue ? _tigercatcore.isSameDay.call(void 0, date, props.modelValue) : false;
|
|
130
|
-
const isTodayDate = _tigercatcore.isSameDay.call(void 0, date, today);
|
|
131
|
-
const isDisabled = !!_optionalChain([props, 'access', _9 => _9.disabledDate, 'optionalCall', _10 => _10(date)]);
|
|
132
|
-
return _vue.h.call(void 0,
|
|
133
|
-
"div",
|
|
134
|
-
{
|
|
135
|
-
key: i,
|
|
136
|
-
class: "flex items-center justify-center py-0.5"
|
|
137
|
-
},
|
|
138
|
-
[
|
|
139
|
-
_vue.h.call(void 0,
|
|
140
|
-
"div",
|
|
141
|
-
{
|
|
142
|
-
class: _tigercatcore.getCalendarDayClasses.call(void 0,
|
|
143
|
-
isSelected,
|
|
144
|
-
isTodayDate,
|
|
145
|
-
isCurrentMonth,
|
|
146
|
-
isDisabled
|
|
147
|
-
),
|
|
148
|
-
onClick: () => selectDay(date)
|
|
149
|
-
},
|
|
150
|
-
date.getDate()
|
|
151
|
-
)
|
|
152
|
-
]
|
|
153
|
-
);
|
|
154
|
-
})
|
|
155
|
-
);
|
|
156
|
-
body = _vue.h.call(void 0, "div", {}, [weekdayRow, dayGrid]);
|
|
157
|
-
}
|
|
158
|
-
return _vue.h.call(void 0, "div", { ...attrs, class: containerClass, role: "group" }, [header, body]);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
var Calendar_default = Calendar;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
exports.Calendar = Calendar; exports.Calendar_default = Calendar_default;
|
package/dist/chunk-ZYCOHZCM.mjs
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
// src/components/Segmented.ts
|
|
2
|
-
import { defineComponent, h } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
getSegmentedContainerClasses,
|
|
5
|
-
getSegmentedContainerStyle,
|
|
6
|
-
getSegmentedIndicatorClasses,
|
|
7
|
-
getSegmentedIndicatorStyle,
|
|
8
|
-
getSegmentedOptionClasses,
|
|
9
|
-
classNames,
|
|
10
|
-
coerceClassValue,
|
|
11
|
-
mergeStyleValues
|
|
12
|
-
} from "@expcat/tigercat-core";
|
|
13
|
-
var Segmented = defineComponent({
|
|
14
|
-
name: "TigerSegmented",
|
|
15
|
-
inheritAttrs: false,
|
|
16
|
-
props: {
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: [String, Number],
|
|
19
|
-
default: void 0
|
|
20
|
-
},
|
|
21
|
-
options: {
|
|
22
|
-
type: Array,
|
|
23
|
-
default: () => []
|
|
24
|
-
},
|
|
25
|
-
disabled: { type: Boolean, default: false },
|
|
26
|
-
size: { type: String, default: "md" },
|
|
27
|
-
block: { type: Boolean, default: false },
|
|
28
|
-
className: { type: String, default: void 0 }
|
|
29
|
-
},
|
|
30
|
-
emits: ["update:modelValue", "change"],
|
|
31
|
-
setup(props, { emit, attrs }) {
|
|
32
|
-
function handleSelect(option) {
|
|
33
|
-
if (option.disabled || props.disabled) return;
|
|
34
|
-
if (option.value === props.modelValue) return;
|
|
35
|
-
emit("update:modelValue", option.value);
|
|
36
|
-
emit("change", option.value);
|
|
37
|
-
}
|
|
38
|
-
return () => h(
|
|
39
|
-
"div",
|
|
40
|
-
{
|
|
41
|
-
...attrs,
|
|
42
|
-
class: classNames(
|
|
43
|
-
getSegmentedContainerClasses(props.size, props.block),
|
|
44
|
-
props.className,
|
|
45
|
-
coerceClassValue(attrs.class)
|
|
46
|
-
),
|
|
47
|
-
style: mergeStyleValues(
|
|
48
|
-
attrs.style,
|
|
49
|
-
getSegmentedContainerStyle(props.options.length)
|
|
50
|
-
),
|
|
51
|
-
role: "radiogroup"
|
|
52
|
-
},
|
|
53
|
-
[
|
|
54
|
-
h("div", {
|
|
55
|
-
"data-tiger-segmented-indicator": "true",
|
|
56
|
-
"aria-hidden": "true",
|
|
57
|
-
class: getSegmentedIndicatorClasses(props.size),
|
|
58
|
-
style: getSegmentedIndicatorStyle(
|
|
59
|
-
props.options.findIndex((opt) => opt.value === props.modelValue),
|
|
60
|
-
props.options.length,
|
|
61
|
-
props.size
|
|
62
|
-
)
|
|
63
|
-
}),
|
|
64
|
-
...props.options.map((opt) => {
|
|
65
|
-
const selected = opt.value === props.modelValue;
|
|
66
|
-
const isDisabled = !!opt.disabled || props.disabled;
|
|
67
|
-
return h(
|
|
68
|
-
"label",
|
|
69
|
-
{
|
|
70
|
-
key: opt.value,
|
|
71
|
-
class: classNames(
|
|
72
|
-
getSegmentedOptionClasses(props.size, selected, isDisabled),
|
|
73
|
-
props.block ? "flex-1 text-center" : ""
|
|
74
|
-
),
|
|
75
|
-
role: "radio",
|
|
76
|
-
"aria-checked": selected,
|
|
77
|
-
"aria-disabled": isDisabled,
|
|
78
|
-
onClick: () => handleSelect(opt)
|
|
79
|
-
},
|
|
80
|
-
[h("span", null, opt.label)]
|
|
81
|
-
);
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
var Segmented_default = Segmented;
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
Segmented,
|
|
91
|
-
Segmented_default
|
|
92
|
-
};
|