@expcat/tigercat-react 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-WV5XHYW6.js → chunk-23XPDNCA.js} +6 -4
- package/dist/{chunk-UAM3RQY4.js → chunk-24NDLFPK.js} +22 -28
- package/dist/{chunk-NMKFR435.js → chunk-2LKX6CE7.js} +7 -4
- package/dist/{chunk-BEZO5IE4.js → chunk-2PV3F47T.js} +2 -2
- package/dist/{chunk-ANN5P7TJ.js → chunk-2ZA4MUO2.js} +72 -29
- package/dist/{chunk-H4AR4GXH.js → chunk-3NVMKDMH.js} +1 -8
- package/dist/{chunk-7CHTTM6D.js → chunk-3RQ3FHJ7.js} +2 -2
- package/dist/{chunk-ELRZ2ZHM.mjs → chunk-4DRJA5ZK.mjs} +15 -17
- package/dist/{chunk-J3N24I7A.mjs → chunk-4F3UTDFE.mjs} +24 -6
- package/dist/{chunk-56CTXEJS.mjs → chunk-4HMMH4XS.mjs} +24 -11
- package/dist/{chunk-ZQSMJS2Q.mjs → chunk-4MREOFVE.mjs} +3 -3
- package/dist/{chunk-EEF26RBA.mjs → chunk-4SU6D2E7.mjs} +15 -3
- package/dist/{chunk-ZZAR4IDS.js → chunk-4TPRBVW7.js} +19 -2
- package/dist/{chunk-NSEO2B74.mjs → chunk-4V5RL25M.mjs} +8 -5
- package/dist/{chunk-AUW7DCXL.js → chunk-5JYVN65W.js} +24 -6
- package/dist/{chunk-YRVAF2ID.js → chunk-5QLSTNA3.js} +7 -1
- package/dist/chunk-5SX2M3LU.mjs +319 -0
- package/dist/{chunk-FI53LYZ6.js → chunk-5UREMEDS.js} +24 -8
- package/dist/chunk-6LGCAGNG.js +312 -0
- package/dist/{chunk-KED5S2WG.mjs → chunk-6REMGSLS.mjs} +22 -11
- package/dist/{chunk-PNAWOJ32.js → chunk-6S5QOTXZ.js} +14 -2
- package/dist/{chunk-4AMSYFYC.js → chunk-6SG2N4WF.js} +7 -7
- package/dist/{chunk-YSGM22AH.mjs → chunk-6UIVNRAR.mjs} +7 -4
- package/dist/{chunk-IZGXDHPB.mjs → chunk-7RI5W465.mjs} +19 -25
- package/dist/{chunk-DCKBVRLI.js → chunk-7UZ7O7KX.js} +63 -16
- package/dist/{chunk-WZUADPYB.js → chunk-7YI5TAPT.js} +2 -5
- package/dist/chunk-AI4V7L6K.mjs +230 -0
- package/dist/chunk-AQOXANET.mjs +222 -0
- package/dist/{chunk-HHMYERHY.mjs → chunk-ATSI3UKS.mjs} +2 -1
- package/dist/{chunk-ZRHDNGWO.js → chunk-BR3WLDH7.js} +16 -2
- package/dist/{chunk-2Y5NIPHB.mjs → chunk-BRPOEVRT.mjs} +32 -3
- package/dist/{chunk-I7FEGKX2.mjs → chunk-CR4QBH46.mjs} +36 -11
- package/dist/{chunk-7U6VWD4H.mjs → chunk-CSJGNEHR.mjs} +2 -2
- package/dist/{chunk-ANBNSUSR.js → chunk-CXXOZLP4.js} +31 -21
- package/dist/{chunk-DVEK5SO6.mjs → chunk-D4X3NBAI.mjs} +8 -3
- package/dist/{chunk-QIL24WZD.mjs → chunk-DEQZZKY5.mjs} +12 -7
- package/dist/{chunk-TEYL5X56.js → chunk-DH4B2COV.js} +105 -36
- package/dist/{chunk-BONUUJU3.mjs → chunk-DJOFM2VO.mjs} +1 -8
- package/dist/{chunk-SQTOVSDU.mjs → chunk-DO3MVZZN.mjs} +12 -6
- package/dist/{chunk-SDZKL3IB.mjs → chunk-E355NVP7.mjs} +35 -14
- package/dist/{chunk-CNNEUJR2.js → chunk-ENJMHEQU.js} +44 -19
- package/dist/{chunk-BRA3PO53.js → chunk-FBIBHTBG.js} +2 -2
- package/dist/{chunk-P36GX65N.js → chunk-FCCHM2B4.js} +40 -4
- package/dist/{chunk-4LIDROT4.js → chunk-FFDK6PEP.js} +7 -4
- package/dist/{chunk-R2KUNFDN.mjs → chunk-GA4YOE57.mjs} +2 -2
- package/dist/{chunk-3E76U2RG.js → chunk-GADCSCH2.js} +33 -5
- package/dist/{chunk-JOB47R6Q.mjs → chunk-GCOA4AO6.mjs} +72 -29
- package/dist/{chunk-M6YXUNOU.mjs → chunk-GOUSXJEY.mjs} +2 -2
- package/dist/{chunk-GDPU5MYA.js → chunk-GPAY5F7D.js} +11 -6
- package/dist/{chunk-TNTOSFGN.mjs → chunk-GQPKHMHA.mjs} +1 -1
- package/dist/{chunk-NKSYX4R7.mjs → chunk-GTDLZF7K.mjs} +2 -2
- package/dist/{chunk-OXQOKKTP.mjs → chunk-H7D7UBDC.mjs} +2 -2
- package/dist/{chunk-KYNWNTGO.js → chunk-HFGTJEQW.js} +82 -29
- package/dist/{chunk-J6OZWT3P.js → chunk-HVAG26CK.js} +3 -3
- package/dist/{chunk-SLEXEH7R.mjs → chunk-HWZSMV2M.mjs} +3 -11
- package/dist/{chunk-EJKOUI26.js → chunk-I5UB4FN3.js} +3 -3
- package/dist/{chunk-NVI2P7VH.js → chunk-I6VHGILW.js} +21 -9
- package/dist/{chunk-EOU6WZTS.js → chunk-I7OSNH5T.js} +34 -5
- package/dist/{chunk-L24PPXLV.js → chunk-IFB3OECJ.js} +1 -0
- package/dist/{chunk-376X7SDZ.mjs → chunk-IXAPFTTD.mjs} +7 -6
- package/dist/{chunk-EHIXCFD7.js → chunk-JHRFG5PG.js} +57 -12
- package/dist/{chunk-3EB42WFR.mjs → chunk-KCPGFO5R.mjs} +2 -2
- package/dist/{chunk-G3PBQ4B4.mjs → chunk-KQ4ZKXXN.mjs} +52 -2
- package/dist/{chunk-MC26ORSN.js → chunk-KSXGH3FO.js} +7 -7
- package/dist/{chunk-X7JAYXPY.js → chunk-KVWSVDAJ.js} +4 -4
- package/dist/{chunk-OFRKYQOZ.mjs → chunk-LACDTZTE.mjs} +4 -4
- package/dist/{chunk-YH57D4AV.mjs → chunk-LAKPYMBZ.mjs} +1 -0
- package/dist/{chunk-6GU5NH5F.mjs → chunk-LBXNMCXN.mjs} +33 -5
- package/dist/{chunk-KGMVRIYC.mjs → chunk-LOM6NNQK.mjs} +29 -16
- package/dist/{chunk-WFWEMXO7.mjs → chunk-LUABLBKS.mjs} +83 -30
- package/dist/{chunk-K2TXT5HQ.js → chunk-M577W3TS.js} +101 -85
- package/dist/{chunk-3EDASNTG.js → chunk-MOYZF62V.js} +29 -16
- package/dist/{chunk-ZDNQGS4O.js → chunk-MQIVMK24.js} +4 -4
- package/dist/{chunk-WMPCN7OF.mjs → chunk-MZCGQED3.mjs} +15 -3
- package/dist/{chunk-KDXKF6B2.mjs → chunk-MZPKFMQC.mjs} +1 -1
- package/dist/{chunk-AG4HRAW2.mjs → chunk-NEHSCSQP.mjs} +2 -2
- package/dist/chunk-NG3OBMKV.js +319 -0
- package/dist/{chunk-RFHPG4KN.js → chunk-NGSJGXUZ.js} +15 -17
- package/dist/{chunk-WIWTY74F.mjs → chunk-NJHZQBA7.mjs} +16 -2
- package/dist/{chunk-EQD2U4KM.js → chunk-O2N7ITWQ.js} +63 -16
- package/dist/{chunk-NASC6XHN.mjs → chunk-O6YIPNXX.mjs} +24 -15
- package/dist/{chunk-VHGCWZ6V.mjs → chunk-OTRPN5ZG.mjs} +58 -13
- package/dist/{chunk-QIKR5EFI.js → chunk-OVJO5NYW.js} +4 -4
- package/dist/{chunk-KXT2TP6A.mjs → chunk-P2WQIVXD.mjs} +22 -10
- package/dist/{chunk-PT5T5F4H.js → chunk-PQF5VLNX.js} +22 -11
- package/dist/chunk-PQOUWJAT.mjs +211 -0
- package/dist/{chunk-OS6M3IZF.js → chunk-PSCPLUGP.js} +5 -13
- package/dist/{chunk-ULWT6W6M.mjs → chunk-PZB24FST.mjs} +10 -5
- package/dist/{chunk-BO45CU4Q.js → chunk-PZWI4YNN.js} +6 -4
- package/dist/{chunk-PFYK2V3E.js → chunk-Q2OXQNWU.js} +73 -9
- package/dist/{chunk-VM4ZQHT5.mjs → chunk-QANWBRNU.mjs} +59 -12
- package/dist/{chunk-XBM76P27.mjs → chunk-QFUIGOOM.mjs} +4 -2
- package/dist/{chunk-BN4ZKCAI.mjs → chunk-QKNORS26.mjs} +49 -36
- package/dist/{chunk-LROHXQWX.js → chunk-R4PMBWU3.js} +2 -2
- package/dist/chunk-R56UOY6C.js +222 -0
- package/dist/chunk-RNHC7BON.js +230 -0
- package/dist/{chunk-7PXALKLM.js → chunk-RRO752KE.js} +11 -10
- package/dist/{chunk-RVLV63SI.mjs → chunk-S4NGDDAM.mjs} +105 -36
- package/dist/{chunk-D5MQBUP2.js → chunk-SA3N2LUB.js} +22 -17
- package/dist/{chunk-BROIZ266.js → chunk-SFBSI3J7.js} +6 -3
- package/dist/{chunk-RVO6R37N.mjs → chunk-SHDQJ5BJ.mjs} +1 -1
- package/dist/{chunk-N2JYU4JI.js → chunk-SHU7L4NM.js} +52 -2
- package/dist/{chunk-M3MOSUZO.mjs → chunk-SI3P3V75.mjs} +16 -6
- package/dist/{chunk-UVMQJOTX.js → chunk-SK7PXSVE.js} +23 -14
- package/dist/{chunk-U356F7GU.js → chunk-SO2ADQTB.js} +52 -11
- package/dist/{chunk-NKKIJQMV.mjs → chunk-SPIPFOGD.mjs} +4 -2
- package/dist/{chunk-NQNHM4OL.mjs → chunk-SRC7JHME.mjs} +1 -1
- package/dist/{chunk-2RBHQBSG.js → chunk-SXTMVZ4W.js} +25 -12
- package/dist/{chunk-BEM7XG2L.js → chunk-SYJJKI7U.js} +35 -14
- package/dist/{chunk-RYNLPRUM.mjs → chunk-SYVMCKPR.mjs} +1 -1
- package/dist/{chunk-SY23FAXK.mjs → chunk-T6HNFCOW.mjs} +24 -8
- package/dist/{chunk-ZITBUGBH.mjs → chunk-TBMDIAZI.mjs} +59 -12
- package/dist/{chunk-B63GEB2Y.js → chunk-TIDVBSXR.js} +47 -34
- package/dist/{chunk-ZJI2VLIL.js → chunk-TLDTBCT6.js} +15 -3
- package/dist/{chunk-XFPJYKBQ.js → chunk-TN7GMDME.js} +13 -9
- package/dist/{chunk-M3FVPPMM.js → chunk-TO4SSBAJ.js} +17 -12
- package/dist/{chunk-XTQUPDRI.js → chunk-TPU6S7G7.js} +2 -2
- package/dist/{chunk-NEZ445D4.mjs → chunk-TRXNHYWB.mjs} +3 -3
- package/dist/{chunk-H6NC6SBX.js → chunk-TVEO2CFD.js} +2 -2
- package/dist/{chunk-6QQBMZQ6.mjs → chunk-U2ZXZ2KQ.mjs} +74 -10
- package/dist/{chunk-AVLIUHOS.mjs → chunk-U337RHJB.mjs} +4 -4
- package/dist/{chunk-VC26SAXB.js → chunk-UQZ4RLTI.js} +12 -6
- package/dist/{chunk-PXO2F2CS.mjs → chunk-V23KR23W.mjs} +47 -4
- package/dist/{chunk-BA6TJQZL.js → chunk-V3QEV3TL.js} +6 -6
- package/dist/{chunk-GG72T6JK.js → chunk-VOSN3IQC.js} +47 -4
- package/dist/{chunk-J4OQ2VRH.mjs → chunk-W6T3CG7U.mjs} +45 -4
- package/dist/{chunk-OTEM4FVX.mjs → chunk-WGKNAOW7.mjs} +11 -7
- package/dist/chunk-WLFLQB4R.mjs +312 -0
- package/dist/{chunk-W6AWN7BC.js → chunk-WLORVPTR.js} +4 -4
- package/dist/{chunk-J5N5OQWB.mjs → chunk-WOEX4S6J.mjs} +5 -2
- package/dist/{chunk-CAQPYJFA.mjs → chunk-WT72F56O.mjs} +1 -1
- package/dist/{chunk-7Z64GEMN.js → chunk-WTASPL6V.js} +3 -1
- package/dist/{chunk-2LYV6NBJ.mjs → chunk-WTIEJCRV.mjs} +7 -1
- package/dist/{chunk-L6KSO66F.mjs → chunk-WYPTAUCX.mjs} +2 -5
- package/dist/{chunk-CC5GFX6F.js → chunk-XKMZ5AMS.js} +2 -1
- package/dist/{chunk-WCTNQYXO.js → chunk-XMD7CQQ2.js} +12 -7
- package/dist/{chunk-7DUHHRAU.mjs → chunk-Y5X3G2LD.mjs} +41 -5
- package/dist/{chunk-ZA5EFHET.mjs → chunk-Z6BDNV3S.mjs} +18 -1
- package/dist/{chunk-UBP7HZSU.mjs → chunk-ZG2W4HS5.mjs} +6 -4
- package/dist/{chunk-UIIOZEUP.js → chunk-ZLCVJXGL.js} +4 -4
- package/dist/{chunk-CME2IFUT.mjs → chunk-ZLP4XEAO.mjs} +21 -16
- package/dist/{chunk-YID7J6ZK.js → chunk-ZXVLZKLT.js} +1 -1
- package/dist/components/ActivityFeed.js +6 -6
- package/dist/components/ActivityFeed.mjs +5 -5
- package/dist/components/AreaChart.js +4 -4
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.js +3 -2
- package/dist/components/AutoComplete.mjs +2 -1
- package/dist/components/BackTop.js +2 -2
- package/dist/components/BackTop.mjs +1 -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.d.mts +1 -1
- package/dist/components/Breadcrumb.d.ts +1 -1
- package/dist/components/Calendar.d.mts +2 -10
- package/dist/components/Calendar.d.ts +2 -10
- 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/ChartAxis.d.mts +1 -2
- package/dist/components/ChartAxis.d.ts +1 -2
- package/dist/components/ChartGrid.d.mts +1 -2
- package/dist/components/ChartGrid.d.ts +1 -2
- package/dist/components/ChartLegend.js +2 -2
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartSeries.d.mts +1 -2
- package/dist/components/ChartSeries.d.ts +1 -2
- package/dist/components/ChartTooltip.js +2 -2
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.js +8 -6
- package/dist/components/ChatWindow.mjs +7 -5
- package/dist/components/CodeEditor.js +2 -2
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/CommentThread.js +6 -4
- package/dist/components/CommentThread.mjs +5 -3
- package/dist/components/CropUpload.d.mts +6 -2
- package/dist/components/CropUpload.d.ts +6 -2
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.d.mts +1 -2
- package/dist/components/DataTableWithToolbar.d.ts +1 -2
- package/dist/components/DataTableWithToolbar.js +7 -6
- package/dist/components/DataTableWithToolbar.mjs +6 -5
- package/dist/components/DatePicker.js +3 -2
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Empty.js +3 -2
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +3 -23
- package/dist/components/FileManager.d.ts +3 -23
- package/dist/components/FileManager.js +2 -2
- package/dist/components/FileManager.mjs +1 -1
- 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/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/Image.js +5 -4
- package/dist/components/Image.mjs +4 -3
- package/dist/components/ImageAnnotation.d.mts +1 -1
- package/dist/components/ImageAnnotation.d.ts +1 -1
- package/dist/components/ImageAnnotation.js +3 -2
- package/dist/components/ImageAnnotation.mjs +2 -1
- 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.js +3 -2
- package/dist/components/ImagePreview.mjs +2 -1
- package/dist/components/ImageViewer.d.mts +2 -0
- package/dist/components/ImageViewer.d.ts +2 -0
- package/dist/components/ImageViewer.js +3 -2
- package/dist/components/ImageViewer.mjs +2 -1
- package/dist/components/InfiniteScroll.js +2 -2
- package/dist/components/InfiniteScroll.mjs +1 -1
- package/dist/components/Input.js +3 -2
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputNumber.js +3 -2
- package/dist/components/InputNumber.mjs +2 -1
- package/dist/components/Kanban.d.mts +5 -1
- package/dist/components/Kanban.d.ts +5 -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.d.mts +1 -2
- package/dist/components/List.d.ts +1 -2
- package/dist/components/List.js +3 -3
- package/dist/components/List.mjs +2 -2
- package/dist/components/Loading.js +2 -2
- package/dist/components/Loading.mjs +1 -1
- package/dist/components/MarkdownEditor.js +2 -2
- package/dist/components/MarkdownEditor.mjs +1 -1
- package/dist/components/Menu.d.mts +2 -2
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/MenuItem.d.mts +1 -1
- package/dist/components/MenuItem.d.ts +1 -1
- package/dist/components/MenuItemGroup.d.mts +1 -1
- package/dist/components/MenuItemGroup.d.ts +1 -1
- package/dist/components/Message.d.mts +2 -1
- package/dist/components/Message.d.ts +2 -1
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.js +2 -2
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/NotificationCenter.js +6 -6
- package/dist/components/NotificationCenter.mjs +5 -5
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +3 -3
- package/dist/components/QRCode.d.mts +2 -1
- package/dist/components/QRCode.d.ts +2 -1
- package/dist/components/QRCode.js +3 -2
- package/dist/components/QRCode.mjs +2 -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.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/Segmented.d.mts +1 -1
- package/dist/components/Segmented.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/Slider.js +2 -2
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Splitter.js +2 -2
- package/dist/components/Splitter.mjs +1 -1
- package/dist/components/Steps.js +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/StepsItem.js +2 -2
- package/dist/components/StepsItem.mjs +1 -1
- package/dist/components/SubMenu.d.mts +1 -1
- package/dist/components/SubMenu.d.ts +1 -1
- package/dist/components/SunburstChart.js +4 -4
- package/dist/components/SunburstChart.mjs +3 -3
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +2 -2
- package/dist/components/Table.d.ts +2 -2
- package/dist/components/Table.js +4 -4
- package/dist/components/Table.mjs +3 -3
- package/dist/components/Tabs.d.mts +0 -4
- package/dist/components/Tabs.d.ts +0 -4
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.js +3 -2
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/TaskBoard.d.mts +3 -1
- package/dist/components/TaskBoard.d.ts +3 -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.d.mts +5 -1
- package/dist/components/Timeline.d.ts +5 -1
- package/dist/components/Timeline.js +3 -2
- package/dist/components/Timeline.mjs +2 -1
- package/dist/components/Tour.js +4 -3
- package/dist/components/Tour.mjs +3 -2
- package/dist/components/Transfer.js +2 -2
- package/dist/components/Transfer.mjs +1 -1
- 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.js +2 -2
- package/dist/components/Upload.mjs +1 -1
- package/dist/components/VirtualList.js +2 -2
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +7 -2
- package/dist/components/VirtualTable.d.ts +7 -2
- package/dist/components/VirtualTable.js +2 -2
- package/dist/components/VirtualTable.mjs +1 -1
- package/dist/index.d.mts +52 -53
- package/dist/index.d.ts +52 -53
- package/dist/index.js +81 -81
- package/dist/index.mjs +80 -80
- package/dist/{types-DaC4a0Ny.d.ts → types-CcgZY0mv.d.mts} +2 -2
- package/dist/{types-DaC4a0Ny.d.mts → types-CcgZY0mv.d.ts} +2 -2
- package/package.json +6 -6
- package/dist/chunk-5EVHVZG5.js +0 -131
- package/dist/chunk-AF2AEZKM.js +0 -165
- package/dist/chunk-CDRQSKXT.mjs +0 -195
- package/dist/chunk-EPJ6W4VI.mjs +0 -165
- package/dist/chunk-GYQ2DN6Z.mjs +0 -174
- package/dist/chunk-MTIGGMHG.mjs +0 -180
- package/dist/chunk-NDGA3N6H.js +0 -180
- package/dist/chunk-S5Y6UHAK.mjs +0 -131
- package/dist/chunk-T7KO6EVK.js +0 -174
package/dist/chunk-AF2AEZKM.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
4
|
-
|
|
5
|
-
// src/components/VirtualTable.tsx
|
|
6
|
-
var _react = require('react');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var _tigercatcore = require('@expcat/tigercat-core');
|
|
26
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
27
|
-
var VirtualTable = ({
|
|
28
|
-
data = [],
|
|
29
|
-
columns = [],
|
|
30
|
-
rowHeight = 48,
|
|
31
|
-
height = 400,
|
|
32
|
-
overscan = 5,
|
|
33
|
-
stickyHeader = true,
|
|
34
|
-
rowKey,
|
|
35
|
-
loading = false,
|
|
36
|
-
emptyText,
|
|
37
|
-
locale,
|
|
38
|
-
selectable = false,
|
|
39
|
-
selectedKeys = [],
|
|
40
|
-
striped = false,
|
|
41
|
-
bordered = false,
|
|
42
|
-
className,
|
|
43
|
-
onRowClick,
|
|
44
|
-
onSelect,
|
|
45
|
-
renderCell,
|
|
46
|
-
...rest
|
|
47
|
-
}) => {
|
|
48
|
-
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
49
|
-
const mergedLocale = _react.useMemo.call(void 0,
|
|
50
|
-
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
51
|
-
[config.locale, locale]
|
|
52
|
-
);
|
|
53
|
-
const containerRef = _react.useRef.call(void 0, null);
|
|
54
|
-
const [scrollTop, setScrollTop] = _react.useState.call(void 0, 0);
|
|
55
|
-
const range = _react.useMemo.call(void 0,
|
|
56
|
-
() => _tigercatcore.calculateVirtualRange.call(void 0, scrollTop, height, data.length, rowHeight, overscan),
|
|
57
|
-
[scrollTop, height, data.length, rowHeight, overscan]
|
|
58
|
-
);
|
|
59
|
-
const visibleData = _react.useMemo.call(void 0,
|
|
60
|
-
() => data.slice(range.start, range.end),
|
|
61
|
-
[data, range.start, range.end]
|
|
62
|
-
);
|
|
63
|
-
const selectedSet = _react.useMemo.call(void 0, () => new Set(selectedKeys), [selectedKeys]);
|
|
64
|
-
const onScroll = _react.useCallback.call(void 0, () => {
|
|
65
|
-
if (containerRef.current) {
|
|
66
|
-
setScrollTop(containerRef.current.scrollTop);
|
|
67
|
-
}
|
|
68
|
-
}, []);
|
|
69
|
-
const containerClasses = _react.useMemo.call(void 0,
|
|
70
|
-
() => _tigercatcore.getVirtualTableContainerClasses.call(void 0, bordered, className),
|
|
71
|
-
[bordered, className]
|
|
72
|
-
);
|
|
73
|
-
const fixedInfo = _react.useMemo.call(void 0, () => _tigercatcore.getVirtualTableFixedInfo.call(void 0, columns), [columns]);
|
|
74
|
-
const bottomHeight = Math.max(0, range.totalHeight - range.end * rowHeight);
|
|
75
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
ref: containerRef,
|
|
79
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
80
|
-
containerClasses,
|
|
81
|
-
rest.className
|
|
82
|
-
),
|
|
83
|
-
style: { height: `${height}px` },
|
|
84
|
-
onScroll,
|
|
85
|
-
role: "grid",
|
|
86
|
-
"aria-rowcount": data.length,
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full table-fixed", children: [
|
|
89
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { className: stickyHeader ? _tigercatcore.virtualTableHeaderClasses : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((col) => {
|
|
90
|
-
const widthStyle = col.width ? { width: typeof col.width === "number" ? `${col.width}px` : col.width } : {};
|
|
91
|
-
const stickyStyle = _tigercatcore.getVirtualTableFixedCellStyle.call(void 0, col.key, fixedInfo);
|
|
92
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
93
|
-
"th",
|
|
94
|
-
{
|
|
95
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
96
|
-
_tigercatcore.virtualTableHeaderCellClasses,
|
|
97
|
-
_tigercatcore.getTableFixedHeaderCellClasses.call(void 0, {
|
|
98
|
-
view: "virtual-table",
|
|
99
|
-
column: col,
|
|
100
|
-
stickyHeader,
|
|
101
|
-
fixedInfo
|
|
102
|
-
})
|
|
103
|
-
),
|
|
104
|
-
style: { ...widthStyle, ...stickyStyle },
|
|
105
|
-
children: _nullishCoalesce(col.title, () => ( ""))
|
|
106
|
-
},
|
|
107
|
-
col.key
|
|
108
|
-
);
|
|
109
|
-
}) }) }),
|
|
110
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tbody", { children: [
|
|
111
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { style: { height: `${range.offsetTop}px` }, "aria-hidden": true }),
|
|
112
|
-
visibleData.map((row, localIdx) => {
|
|
113
|
-
const globalIdx = range.start + localIdx;
|
|
114
|
-
const key = _tigercatcore.getVirtualRowKey.call(void 0, row, globalIdx, rowKey);
|
|
115
|
-
const isSelected = selectedSet.has(key);
|
|
116
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
117
|
-
"tr",
|
|
118
|
-
{
|
|
119
|
-
className: _tigercatcore.getVirtualTableRowClasses.call(void 0, globalIdx, striped, isSelected),
|
|
120
|
-
onClick: () => {
|
|
121
|
-
_optionalChain([onRowClick, 'optionalCall', _ => _(row, globalIdx)]);
|
|
122
|
-
if (selectable) _optionalChain([onSelect, 'optionalCall', _2 => _2(key, row, globalIdx)]);
|
|
123
|
-
},
|
|
124
|
-
children: columns.map((col) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
125
|
-
"td",
|
|
126
|
-
{
|
|
127
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
128
|
-
_tigercatcore.virtualTableCellClasses,
|
|
129
|
-
_tigercatcore.getTableFixedCellClasses.call(void 0, {
|
|
130
|
-
view: "virtual-table",
|
|
131
|
-
column: col,
|
|
132
|
-
record: row,
|
|
133
|
-
rowIndex: globalIdx,
|
|
134
|
-
striped,
|
|
135
|
-
stripedActive: striped && globalIdx % 2 === 1,
|
|
136
|
-
selected: isSelected,
|
|
137
|
-
hoverable: true,
|
|
138
|
-
fixedInfo,
|
|
139
|
-
selectedClassName: _tigercatcore.virtualTableFixedCellSelectedClasses
|
|
140
|
-
})
|
|
141
|
-
),
|
|
142
|
-
style: _tigercatcore.getVirtualTableFixedCellStyle.call(void 0, col.key, fixedInfo),
|
|
143
|
-
children: renderCell ? renderCell(row[col.key], row, col) : String(_nullishCoalesce(row[col.key], () => ( "")))
|
|
144
|
-
},
|
|
145
|
-
col.key
|
|
146
|
-
))
|
|
147
|
-
},
|
|
148
|
-
key
|
|
149
|
-
);
|
|
150
|
-
}),
|
|
151
|
-
bottomHeight > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { style: { height: `${bottomHeight}px` }, "aria-hidden": true })
|
|
152
|
-
] })
|
|
153
|
-
] }),
|
|
154
|
-
data.length === 0 && !loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.virtualTableEmptyClasses, children: _tigercatcore.resolveLocaleText.call(void 0, "No data", emptyText, _optionalChain([mergedLocale, 'optionalAccess', _3 => _3.common, 'optionalAccess', _4 => _4.emptyText])) }),
|
|
155
|
-
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.virtualTableLoadingClasses, children: "Loading..." })
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
};
|
|
160
|
-
var VirtualTable_default = VirtualTable;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
exports.VirtualTable = VirtualTable; exports.VirtualTable_default = VirtualTable_default;
|
package/dist/chunk-CDRQSKXT.mjs
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PieChart
|
|
3
|
-
} from "./chunk-XBM76P27.mjs";
|
|
4
|
-
|
|
5
|
-
// src/components/DonutChart.tsx
|
|
6
|
-
import { useMemo } from "react";
|
|
7
|
-
import {
|
|
8
|
-
classNames,
|
|
9
|
-
getChartInnerRect,
|
|
10
|
-
normalizeChartPadding
|
|
11
|
-
} from "@expcat/tigercat-core";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
var DONUT_PALETTE = [
|
|
14
|
-
"var(--tiger-chart-1,#5470c6)",
|
|
15
|
-
"var(--tiger-chart-2,#91cc75)",
|
|
16
|
-
"var(--tiger-chart-3,#fac858)",
|
|
17
|
-
"var(--tiger-chart-4,#ee6666)",
|
|
18
|
-
"var(--tiger-chart-5,#73c0de)",
|
|
19
|
-
"var(--tiger-chart-6,#3ba272)",
|
|
20
|
-
"var(--tiger-chart-1,#fc8452)",
|
|
21
|
-
"var(--tiger-chart-2,#9a60b4)",
|
|
22
|
-
"var(--tiger-chart-3,#ea7ccc)"
|
|
23
|
-
];
|
|
24
|
-
var DonutChart = ({
|
|
25
|
-
width = 320,
|
|
26
|
-
height = 240,
|
|
27
|
-
padding = 24,
|
|
28
|
-
data,
|
|
29
|
-
innerRadius,
|
|
30
|
-
innerRadiusRatio = 0.62,
|
|
31
|
-
outerRadius,
|
|
32
|
-
startAngle = 0,
|
|
33
|
-
endAngle = Math.PI * 2,
|
|
34
|
-
padAngle = 0.04,
|
|
35
|
-
colors,
|
|
36
|
-
showLabels = false,
|
|
37
|
-
labelFormatter,
|
|
38
|
-
labelPosition = "inside",
|
|
39
|
-
borderWidth = 0,
|
|
40
|
-
borderColor = "var(--tiger-surface,#ffffff)",
|
|
41
|
-
hoverOffset = 10,
|
|
42
|
-
shadow = true,
|
|
43
|
-
// Interaction props
|
|
44
|
-
hoverable = false,
|
|
45
|
-
hoveredIndex,
|
|
46
|
-
activeOpacity = 1,
|
|
47
|
-
inactiveOpacity = 0.3,
|
|
48
|
-
selectable = false,
|
|
49
|
-
selectedIndex,
|
|
50
|
-
// Legend props
|
|
51
|
-
showLegend = false,
|
|
52
|
-
legendPosition = "bottom",
|
|
53
|
-
legendMarkerSize = 10,
|
|
54
|
-
legendGap = 8,
|
|
55
|
-
// Tooltip props
|
|
56
|
-
showTooltip = true,
|
|
57
|
-
tooltipFormatter,
|
|
58
|
-
// Accessibility
|
|
59
|
-
title,
|
|
60
|
-
desc,
|
|
61
|
-
className,
|
|
62
|
-
// DonutChart-specific
|
|
63
|
-
centerValue,
|
|
64
|
-
centerLabel,
|
|
65
|
-
animated: _animated = false,
|
|
66
|
-
// Visual modes (forwarded to PieChart, opt-in per PR-19k(b6/b7))
|
|
67
|
-
gradient = false,
|
|
68
|
-
// Callbacks
|
|
69
|
-
onHoveredIndexChange,
|
|
70
|
-
onSelectedIndexChange,
|
|
71
|
-
onSliceClick,
|
|
72
|
-
onSliceHover
|
|
73
|
-
}) => {
|
|
74
|
-
const innerRect = useMemo(
|
|
75
|
-
() => getChartInnerRect(width, height, padding),
|
|
76
|
-
[width, height, padding]
|
|
77
|
-
);
|
|
78
|
-
const pad = useMemo(() => normalizeChartPadding(padding), [padding]);
|
|
79
|
-
const resolvedOuterRadius = useMemo(() => {
|
|
80
|
-
if (typeof outerRadius === "number") return Math.max(0, outerRadius);
|
|
81
|
-
return Math.max(0, Math.min(innerRect.width, innerRect.height) / 2);
|
|
82
|
-
}, [outerRadius, innerRect.width, innerRect.height]);
|
|
83
|
-
const resolvedInnerRadius = useMemo(() => {
|
|
84
|
-
if (typeof innerRadius === "number") {
|
|
85
|
-
return Math.min(Math.max(0, innerRadius), resolvedOuterRadius);
|
|
86
|
-
}
|
|
87
|
-
const ratio = Math.min(Math.max(innerRadiusRatio ?? 0.62, 0), 1);
|
|
88
|
-
return resolvedOuterRadius * ratio;
|
|
89
|
-
}, [innerRadius, innerRadiusRatio, resolvedOuterRadius]);
|
|
90
|
-
const resolvedColors = useMemo(
|
|
91
|
-
() => colors && colors.length > 0 ? colors : DONUT_PALETTE,
|
|
92
|
-
[colors]
|
|
93
|
-
);
|
|
94
|
-
const donutTooltipFormatter = useMemo(() => {
|
|
95
|
-
if (tooltipFormatter) return tooltipFormatter;
|
|
96
|
-
const total = data.reduce((s, d) => s + d.value, 0);
|
|
97
|
-
return (datum, index) => {
|
|
98
|
-
const pct = total > 0 ? (datum.value / total * 100).toFixed(1) : "0";
|
|
99
|
-
const label = datum.label ?? `#${index + 1}`;
|
|
100
|
-
return `${label}: ${datum.value} (${pct}%)`;
|
|
101
|
-
};
|
|
102
|
-
}, [tooltipFormatter, data]);
|
|
103
|
-
const hasCenterContent = centerValue !== void 0 || centerLabel !== void 0;
|
|
104
|
-
const centerX = pad.left + innerRect.width / 2;
|
|
105
|
-
const centerY = pad.top + innerRect.height / 2;
|
|
106
|
-
return /* @__PURE__ */ jsxs("div", { className: "inline-block relative", "data-donut-chart": "true", children: [
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
-
PieChart,
|
|
109
|
-
{
|
|
110
|
-
width,
|
|
111
|
-
height,
|
|
112
|
-
padding,
|
|
113
|
-
data,
|
|
114
|
-
innerRadius: resolvedInnerRadius,
|
|
115
|
-
outerRadius,
|
|
116
|
-
startAngle,
|
|
117
|
-
endAngle,
|
|
118
|
-
padAngle,
|
|
119
|
-
colors: resolvedColors,
|
|
120
|
-
showLabels,
|
|
121
|
-
labelFormatter,
|
|
122
|
-
labelPosition,
|
|
123
|
-
borderWidth,
|
|
124
|
-
borderColor,
|
|
125
|
-
hoverOffset,
|
|
126
|
-
shadow,
|
|
127
|
-
gradient,
|
|
128
|
-
hoverable,
|
|
129
|
-
hoveredIndex,
|
|
130
|
-
activeOpacity,
|
|
131
|
-
inactiveOpacity,
|
|
132
|
-
selectable,
|
|
133
|
-
selectedIndex,
|
|
134
|
-
showLegend,
|
|
135
|
-
legendPosition,
|
|
136
|
-
legendMarkerSize,
|
|
137
|
-
legendGap,
|
|
138
|
-
showTooltip,
|
|
139
|
-
tooltipFormatter: donutTooltipFormatter,
|
|
140
|
-
title,
|
|
141
|
-
desc,
|
|
142
|
-
className: classNames(className),
|
|
143
|
-
onHoveredIndexChange,
|
|
144
|
-
onSelectedIndexChange,
|
|
145
|
-
onSliceClick,
|
|
146
|
-
onSliceHover
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
hasCenterContent && /* @__PURE__ */ jsxs(
|
|
150
|
-
"div",
|
|
151
|
-
{
|
|
152
|
-
"data-donut-center": "true",
|
|
153
|
-
style: {
|
|
154
|
-
position: "absolute",
|
|
155
|
-
left: `${centerX}px`,
|
|
156
|
-
top: `${centerY}px`,
|
|
157
|
-
transform: "translate(-50%, -50%)",
|
|
158
|
-
textAlign: "center",
|
|
159
|
-
pointerEvents: "none",
|
|
160
|
-
lineHeight: "1.3",
|
|
161
|
-
padding: "var(--tiger-chart-donut-center-padding, 0)",
|
|
162
|
-
borderRadius: "var(--tiger-radius-pill, 9999px)",
|
|
163
|
-
background: "var(--tiger-chart-donut-center-bg, transparent)",
|
|
164
|
-
boxShadow: "var(--tiger-chart-donut-center-shadow, none)",
|
|
165
|
-
backdropFilter: "var(--tiger-chart-donut-center-backdrop, none)",
|
|
166
|
-
WebkitBackdropFilter: "var(--tiger-chart-donut-center-backdrop, none)"
|
|
167
|
-
},
|
|
168
|
-
children: [
|
|
169
|
-
centerValue !== void 0 && /* @__PURE__ */ jsx(
|
|
170
|
-
"div",
|
|
171
|
-
{
|
|
172
|
-
className: "text-xl font-semibold text-[color:var(--tiger-text,#1f2937)]",
|
|
173
|
-
style: { lineHeight: "1.2" },
|
|
174
|
-
children: `${centerValue}`
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
centerLabel !== void 0 && /* @__PURE__ */ jsx(
|
|
178
|
-
"div",
|
|
179
|
-
{
|
|
180
|
-
className: "text-xs text-[color:var(--tiger-text-secondary,#6b7280)]",
|
|
181
|
-
style: { marginTop: "2px" },
|
|
182
|
-
children: centerLabel
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
] });
|
|
189
|
-
};
|
|
190
|
-
var DonutChart_default = DonutChart;
|
|
191
|
-
|
|
192
|
-
export {
|
|
193
|
-
DonutChart,
|
|
194
|
-
DonutChart_default
|
|
195
|
-
};
|
package/dist/chunk-EPJ6W4VI.mjs
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useTigerConfig
|
|
3
|
-
} from "./chunk-QAIBQHIO.mjs";
|
|
4
|
-
|
|
5
|
-
// src/components/VirtualTable.tsx
|
|
6
|
-
import { useCallback, useMemo, useRef, useState } from "react";
|
|
7
|
-
import {
|
|
8
|
-
classNames,
|
|
9
|
-
resolveLocaleText,
|
|
10
|
-
mergeTigerLocale,
|
|
11
|
-
calculateVirtualRange,
|
|
12
|
-
getVirtualTableContainerClasses,
|
|
13
|
-
getVirtualTableRowClasses,
|
|
14
|
-
getVirtualRowKey,
|
|
15
|
-
getVirtualTableFixedInfo,
|
|
16
|
-
getVirtualTableFixedCellStyle,
|
|
17
|
-
getTableFixedCellClasses,
|
|
18
|
-
getTableFixedHeaderCellClasses,
|
|
19
|
-
virtualTableHeaderClasses,
|
|
20
|
-
virtualTableHeaderCellClasses,
|
|
21
|
-
virtualTableCellClasses,
|
|
22
|
-
virtualTableEmptyClasses,
|
|
23
|
-
virtualTableLoadingClasses,
|
|
24
|
-
virtualTableFixedCellSelectedClasses
|
|
25
|
-
} from "@expcat/tigercat-core";
|
|
26
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
-
var VirtualTable = ({
|
|
28
|
-
data = [],
|
|
29
|
-
columns = [],
|
|
30
|
-
rowHeight = 48,
|
|
31
|
-
height = 400,
|
|
32
|
-
overscan = 5,
|
|
33
|
-
stickyHeader = true,
|
|
34
|
-
rowKey,
|
|
35
|
-
loading = false,
|
|
36
|
-
emptyText,
|
|
37
|
-
locale,
|
|
38
|
-
selectable = false,
|
|
39
|
-
selectedKeys = [],
|
|
40
|
-
striped = false,
|
|
41
|
-
bordered = false,
|
|
42
|
-
className,
|
|
43
|
-
onRowClick,
|
|
44
|
-
onSelect,
|
|
45
|
-
renderCell,
|
|
46
|
-
...rest
|
|
47
|
-
}) => {
|
|
48
|
-
const config = useTigerConfig();
|
|
49
|
-
const mergedLocale = useMemo(
|
|
50
|
-
() => mergeTigerLocale(config.locale, locale),
|
|
51
|
-
[config.locale, locale]
|
|
52
|
-
);
|
|
53
|
-
const containerRef = useRef(null);
|
|
54
|
-
const [scrollTop, setScrollTop] = useState(0);
|
|
55
|
-
const range = useMemo(
|
|
56
|
-
() => calculateVirtualRange(scrollTop, height, data.length, rowHeight, overscan),
|
|
57
|
-
[scrollTop, height, data.length, rowHeight, overscan]
|
|
58
|
-
);
|
|
59
|
-
const visibleData = useMemo(
|
|
60
|
-
() => data.slice(range.start, range.end),
|
|
61
|
-
[data, range.start, range.end]
|
|
62
|
-
);
|
|
63
|
-
const selectedSet = useMemo(() => new Set(selectedKeys), [selectedKeys]);
|
|
64
|
-
const onScroll = useCallback(() => {
|
|
65
|
-
if (containerRef.current) {
|
|
66
|
-
setScrollTop(containerRef.current.scrollTop);
|
|
67
|
-
}
|
|
68
|
-
}, []);
|
|
69
|
-
const containerClasses = useMemo(
|
|
70
|
-
() => getVirtualTableContainerClasses(bordered, className),
|
|
71
|
-
[bordered, className]
|
|
72
|
-
);
|
|
73
|
-
const fixedInfo = useMemo(() => getVirtualTableFixedInfo(columns), [columns]);
|
|
74
|
-
const bottomHeight = Math.max(0, range.totalHeight - range.end * rowHeight);
|
|
75
|
-
return /* @__PURE__ */ jsxs(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
ref: containerRef,
|
|
79
|
-
className: classNames(
|
|
80
|
-
containerClasses,
|
|
81
|
-
rest.className
|
|
82
|
-
),
|
|
83
|
-
style: { height: `${height}px` },
|
|
84
|
-
onScroll,
|
|
85
|
-
role: "grid",
|
|
86
|
-
"aria-rowcount": data.length,
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ jsxs("table", { className: "w-full table-fixed", children: [
|
|
89
|
-
/* @__PURE__ */ jsx("thead", { className: stickyHeader ? virtualTableHeaderClasses : void 0, children: /* @__PURE__ */ jsx("tr", { children: columns.map((col) => {
|
|
90
|
-
const widthStyle = col.width ? { width: typeof col.width === "number" ? `${col.width}px` : col.width } : {};
|
|
91
|
-
const stickyStyle = getVirtualTableFixedCellStyle(col.key, fixedInfo);
|
|
92
|
-
return /* @__PURE__ */ jsx(
|
|
93
|
-
"th",
|
|
94
|
-
{
|
|
95
|
-
className: classNames(
|
|
96
|
-
virtualTableHeaderCellClasses,
|
|
97
|
-
getTableFixedHeaderCellClasses({
|
|
98
|
-
view: "virtual-table",
|
|
99
|
-
column: col,
|
|
100
|
-
stickyHeader,
|
|
101
|
-
fixedInfo
|
|
102
|
-
})
|
|
103
|
-
),
|
|
104
|
-
style: { ...widthStyle, ...stickyStyle },
|
|
105
|
-
children: col.title ?? ""
|
|
106
|
-
},
|
|
107
|
-
col.key
|
|
108
|
-
);
|
|
109
|
-
}) }) }),
|
|
110
|
-
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
111
|
-
/* @__PURE__ */ jsx("tr", { style: { height: `${range.offsetTop}px` }, "aria-hidden": true }),
|
|
112
|
-
visibleData.map((row, localIdx) => {
|
|
113
|
-
const globalIdx = range.start + localIdx;
|
|
114
|
-
const key = getVirtualRowKey(row, globalIdx, rowKey);
|
|
115
|
-
const isSelected = selectedSet.has(key);
|
|
116
|
-
return /* @__PURE__ */ jsx(
|
|
117
|
-
"tr",
|
|
118
|
-
{
|
|
119
|
-
className: getVirtualTableRowClasses(globalIdx, striped, isSelected),
|
|
120
|
-
onClick: () => {
|
|
121
|
-
onRowClick?.(row, globalIdx);
|
|
122
|
-
if (selectable) onSelect?.(key, row, globalIdx);
|
|
123
|
-
},
|
|
124
|
-
children: columns.map((col) => /* @__PURE__ */ jsx(
|
|
125
|
-
"td",
|
|
126
|
-
{
|
|
127
|
-
className: classNames(
|
|
128
|
-
virtualTableCellClasses,
|
|
129
|
-
getTableFixedCellClasses({
|
|
130
|
-
view: "virtual-table",
|
|
131
|
-
column: col,
|
|
132
|
-
record: row,
|
|
133
|
-
rowIndex: globalIdx,
|
|
134
|
-
striped,
|
|
135
|
-
stripedActive: striped && globalIdx % 2 === 1,
|
|
136
|
-
selected: isSelected,
|
|
137
|
-
hoverable: true,
|
|
138
|
-
fixedInfo,
|
|
139
|
-
selectedClassName: virtualTableFixedCellSelectedClasses
|
|
140
|
-
})
|
|
141
|
-
),
|
|
142
|
-
style: getVirtualTableFixedCellStyle(col.key, fixedInfo),
|
|
143
|
-
children: renderCell ? renderCell(row[col.key], row, col) : String(row[col.key] ?? "")
|
|
144
|
-
},
|
|
145
|
-
col.key
|
|
146
|
-
))
|
|
147
|
-
},
|
|
148
|
-
key
|
|
149
|
-
);
|
|
150
|
-
}),
|
|
151
|
-
bottomHeight > 0 && /* @__PURE__ */ jsx("tr", { style: { height: `${bottomHeight}px` }, "aria-hidden": true })
|
|
152
|
-
] })
|
|
153
|
-
] }),
|
|
154
|
-
data.length === 0 && !loading && /* @__PURE__ */ jsx("div", { className: virtualTableEmptyClasses, children: resolveLocaleText("No data", emptyText, mergedLocale?.common?.emptyText) }),
|
|
155
|
-
loading && /* @__PURE__ */ jsx("div", { className: virtualTableLoadingClasses, children: "Loading..." })
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
};
|
|
160
|
-
var VirtualTable_default = VirtualTable;
|
|
161
|
-
|
|
162
|
-
export {
|
|
163
|
-
VirtualTable,
|
|
164
|
-
VirtualTable_default
|
|
165
|
-
};
|
package/dist/chunk-GYQ2DN6Z.mjs
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChartCanvas
|
|
3
|
-
} from "./chunk-DKNVSQSV.mjs";
|
|
4
|
-
|
|
5
|
-
// src/components/GaugeChart.tsx
|
|
6
|
-
import React, { useId, useMemo, useState, useRef, useEffect } from "react";
|
|
7
|
-
import {
|
|
8
|
-
classNames,
|
|
9
|
-
createGaugeArcPath,
|
|
10
|
-
createGaugeNeedlePath,
|
|
11
|
-
valueToGaugeAngle,
|
|
12
|
-
computeGaugeTicks,
|
|
13
|
-
getChartInnerRect,
|
|
14
|
-
chartAxisTickTextClasses,
|
|
15
|
-
getStableChartGradientPrefix,
|
|
16
|
-
createGaugeAnimation
|
|
17
|
-
} from "@expcat/tigercat-core";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
var GaugeChart = ({
|
|
20
|
-
width = 280,
|
|
21
|
-
height = 200,
|
|
22
|
-
padding = 24,
|
|
23
|
-
value,
|
|
24
|
-
min = 0,
|
|
25
|
-
max = 100,
|
|
26
|
-
startAngle = 135,
|
|
27
|
-
endAngle = 405,
|
|
28
|
-
arcWidth = 20,
|
|
29
|
-
showTicks = true,
|
|
30
|
-
tickCount = 5,
|
|
31
|
-
valueFormatter,
|
|
32
|
-
label,
|
|
33
|
-
segments,
|
|
34
|
-
trackColor = "var(--tiger-border,#e5e7eb)",
|
|
35
|
-
color = "var(--tiger-primary,#2563eb)",
|
|
36
|
-
gradient = false,
|
|
37
|
-
title: chartTitle,
|
|
38
|
-
desc,
|
|
39
|
-
className
|
|
40
|
-
}) => {
|
|
41
|
-
const innerRect = useMemo(
|
|
42
|
-
() => getChartInnerRect(width, height, padding),
|
|
43
|
-
[width, height, padding]
|
|
44
|
-
);
|
|
45
|
-
const radius = useMemo(
|
|
46
|
-
() => Math.min(innerRect.width, innerRect.height) / 2 - 4,
|
|
47
|
-
[innerRect.width, innerRect.height]
|
|
48
|
-
);
|
|
49
|
-
const cx = innerRect.width / 2;
|
|
50
|
-
const cy = innerRect.height / 2;
|
|
51
|
-
const needleAngle = useMemo(
|
|
52
|
-
() => valueToGaugeAngle(value, min, max, startAngle, endAngle),
|
|
53
|
-
[value, min, max, startAngle, endAngle]
|
|
54
|
-
);
|
|
55
|
-
const [animatedAngle, setAnimatedAngle] = useState(needleAngle);
|
|
56
|
-
const prevAngleRef = useRef(needleAngle);
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
const from = prevAngleRef.current;
|
|
59
|
-
const to = needleAngle;
|
|
60
|
-
prevAngleRef.current = to;
|
|
61
|
-
if (from === to) return;
|
|
62
|
-
const ctrl = createGaugeAnimation({
|
|
63
|
-
from,
|
|
64
|
-
to,
|
|
65
|
-
onUpdate: (v) => setAnimatedAngle(v)
|
|
66
|
-
});
|
|
67
|
-
return () => ctrl.stop();
|
|
68
|
-
}, [needleAngle]);
|
|
69
|
-
const ticks = useMemo(
|
|
70
|
-
() => showTicks ? computeGaugeTicks(cx, cy, radius, min, max, startAngle, endAngle, tickCount) : [],
|
|
71
|
-
[showTicks, cx, cy, radius, min, max, startAngle, endAngle, tickCount]
|
|
72
|
-
);
|
|
73
|
-
const trackPath = createGaugeArcPath(cx, cy, radius, startAngle, endAngle, arcWidth);
|
|
74
|
-
const valuePath = animatedAngle > startAngle ? createGaugeArcPath(cx, cy, radius, startAngle, animatedAngle, arcWidth) : null;
|
|
75
|
-
const needlePath = createGaugeNeedlePath(cx, cy, radius - arcWidth - 6, animatedAngle);
|
|
76
|
-
const formattedValue = valueFormatter ? valueFormatter(value) : `${value}`;
|
|
77
|
-
const gradientId = useId();
|
|
78
|
-
const gradientPrefix = useMemo(
|
|
79
|
-
() => getStableChartGradientPrefix("gauge", gradientId),
|
|
80
|
-
[gradientId]
|
|
81
|
-
);
|
|
82
|
-
const valueGradientId = `${gradientPrefix}-value`;
|
|
83
|
-
return /* @__PURE__ */ jsxs(
|
|
84
|
-
ChartCanvas,
|
|
85
|
-
{
|
|
86
|
-
width,
|
|
87
|
-
height,
|
|
88
|
-
padding,
|
|
89
|
-
title: chartTitle,
|
|
90
|
-
desc,
|
|
91
|
-
className: classNames(className),
|
|
92
|
-
children: [
|
|
93
|
-
gradient && !segments && valuePath && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: valueGradientId, x1: 0, y1: 0, x2: 0, y2: 1, children: [
|
|
94
|
-
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: color, stopOpacity: 1 }),
|
|
95
|
-
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: color, stopOpacity: 0.55 })
|
|
96
|
-
] }) }),
|
|
97
|
-
/* @__PURE__ */ jsx("path", { d: trackPath, fill: trackColor, strokeWidth: 0 }),
|
|
98
|
-
segments ? segments.map((seg, i) => {
|
|
99
|
-
const sStart = valueToGaugeAngle(seg.range[0], min, max, startAngle, endAngle);
|
|
100
|
-
const sEnd = valueToGaugeAngle(seg.range[1], min, max, startAngle, endAngle);
|
|
101
|
-
return /* @__PURE__ */ jsx(
|
|
102
|
-
"path",
|
|
103
|
-
{
|
|
104
|
-
d: createGaugeArcPath(cx, cy, radius, sStart, sEnd, arcWidth),
|
|
105
|
-
fill: seg.color,
|
|
106
|
-
strokeWidth: 0
|
|
107
|
-
},
|
|
108
|
-
`seg-${i}`
|
|
109
|
-
);
|
|
110
|
-
}) : valuePath && /* @__PURE__ */ jsx(
|
|
111
|
-
"path",
|
|
112
|
-
{
|
|
113
|
-
d: valuePath,
|
|
114
|
-
fill: gradient ? `url(#${valueGradientId})` : color,
|
|
115
|
-
strokeWidth: 0
|
|
116
|
-
}
|
|
117
|
-
),
|
|
118
|
-
ticks.map((tick, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
119
|
-
/* @__PURE__ */ jsx(
|
|
120
|
-
"line",
|
|
121
|
-
{
|
|
122
|
-
x1: tick.x1,
|
|
123
|
-
y1: tick.y1,
|
|
124
|
-
x2: tick.x2,
|
|
125
|
-
y2: tick.y2,
|
|
126
|
-
stroke: "var(--tiger-text-secondary,#6b7280)",
|
|
127
|
-
strokeWidth: 1
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ jsx(
|
|
131
|
-
"text",
|
|
132
|
-
{
|
|
133
|
-
x: tick.x2 + (tick.x2 - tick.x1) * 1.5,
|
|
134
|
-
y: tick.y2 + (tick.y2 - tick.y1) * 1.5,
|
|
135
|
-
className: chartAxisTickTextClasses,
|
|
136
|
-
textAnchor: "middle",
|
|
137
|
-
dominantBaseline: "middle",
|
|
138
|
-
style: { fontSize: "10px" },
|
|
139
|
-
children: tick.label
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] }, `tick-${i}`)),
|
|
143
|
-
/* @__PURE__ */ jsx("path", { d: needlePath, fill: "var(--tiger-text,#374151)" }),
|
|
144
|
-
/* @__PURE__ */ jsx("circle", { cx, cy, r: 5, fill: "var(--tiger-text,#374151)" }),
|
|
145
|
-
/* @__PURE__ */ jsx(
|
|
146
|
-
"text",
|
|
147
|
-
{
|
|
148
|
-
x: cx,
|
|
149
|
-
y: cy + radius * 0.35,
|
|
150
|
-
className: "fill-[color:var(--tiger-text,#374151)] text-lg font-semibold tabular-nums",
|
|
151
|
-
textAnchor: "middle",
|
|
152
|
-
dominantBaseline: "middle",
|
|
153
|
-
children: formattedValue
|
|
154
|
-
}
|
|
155
|
-
),
|
|
156
|
-
label && /* @__PURE__ */ jsx(
|
|
157
|
-
"text",
|
|
158
|
-
{
|
|
159
|
-
x: cx,
|
|
160
|
-
y: cy + radius * 0.35 + 20,
|
|
161
|
-
className: chartAxisTickTextClasses,
|
|
162
|
-
textAnchor: "middle",
|
|
163
|
-
dominantBaseline: "middle",
|
|
164
|
-
children: label
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
);
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
export {
|
|
173
|
-
GaugeChart
|
|
174
|
-
};
|