@expcat/tigercat-react 0.4.3 → 1.0.4
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-24RUEJWB.js +293 -0
- package/dist/{chunk-WGRYO5HX.mjs → chunk-2UQC3WOI.mjs} +63 -49
- package/dist/{chunk-V5NIFF2F.mjs → chunk-2WBPUW75.mjs} +7 -7
- package/dist/{chunk-QL6UEG3U.js → chunk-2XOFRGY6.js} +16 -3
- package/dist/chunk-32PAZTVF.mjs +123 -0
- package/dist/{chunk-IGE44BIS.mjs → chunk-34DLDOGP.mjs} +105 -19
- package/dist/chunk-34VGG7AK.mjs +40 -0
- package/dist/chunk-3EB42WFR.mjs +35 -0
- package/dist/{chunk-Z7SXK2KO.js → chunk-3JGOTJZM.js} +10 -7
- package/dist/{chunk-ENSLMM3L.mjs → chunk-3KMKMAE3.mjs} +15 -10
- package/dist/{chunk-SFALTVPS.js → chunk-3USEV7EV.js} +2 -2
- package/dist/chunk-45H3JEI3.js +155 -0
- package/dist/chunk-4APNERYR.js +212 -0
- package/dist/chunk-4GV7UQJJ.js +96 -0
- package/dist/chunk-4MKMM2OI.js +112 -0
- package/dist/{chunk-XKDWDANG.js → chunk-4Q4GADHJ.js} +7 -7
- package/dist/{chunk-QM4GOQDT.js → chunk-4QJZT6QK.js} +44 -6
- package/dist/chunk-4QQZ5H4V.mjs +213 -0
- package/dist/chunk-5CGXFQND.mjs +100 -0
- package/dist/chunk-5EVHVZG5.js +119 -0
- package/dist/{chunk-LXX2ZDJN.js → chunk-5MALB34H.js} +9 -9
- package/dist/chunk-5ZYZQXEM.mjs +167 -0
- package/dist/{chunk-PEGJ2KHC.js → chunk-65VXCN5N.js} +50 -68
- package/dist/{chunk-6PXNWGR5.mjs → chunk-6744DTEB.mjs} +9 -4
- package/dist/chunk-6E7FPBRR.mjs +192 -0
- package/dist/{chunk-NQFHS4W2.mjs → chunk-6KKUJT6B.mjs} +1 -1
- package/dist/{chunk-OXT5RN55.mjs → chunk-6P3JIUSI.mjs} +3 -3
- package/dist/chunk-73BP3WQN.mjs +210 -0
- package/dist/{chunk-77PE7OFK.mjs → chunk-7MASYF4S.mjs} +1 -1
- package/dist/{chunk-VCNZEQEB.mjs → chunk-7QZ4XT2P.mjs} +6 -5
- package/dist/chunk-7YLVAZJQ.mjs +47 -0
- package/dist/{chunk-NV3JUZ3N.js → chunk-AGR3FM3V.js} +4 -4
- package/dist/{chunk-EHYSER2Z.js → chunk-AHF6JE43.js} +7 -7
- package/dist/{chunk-MWH6FCSE.js → chunk-AJQPGAYL.js} +8 -8
- package/dist/{chunk-3PV2MDST.mjs → chunk-AMOH5AMN.mjs} +8 -8
- package/dist/chunk-AOZLBASY.mjs +38 -0
- package/dist/chunk-ASALMHFI.js +34 -0
- package/dist/chunk-AUW7DCXL.js +61 -0
- package/dist/{chunk-QFYS5QIZ.mjs → chunk-AYDTXJOR.mjs} +4 -4
- package/dist/{chunk-LLHUBM6E.mjs → chunk-B3MNIAM5.mjs} +4 -4
- package/dist/chunk-B53R2U2R.mjs +86 -0
- package/dist/chunk-BALJCZ62.mjs +147 -0
- package/dist/{chunk-F24IF2QL.js → chunk-BCNKTT5C.js} +14 -9
- package/dist/{chunk-JNLX47UL.mjs → chunk-BJ2GUKPU.mjs} +74 -36
- package/dist/chunk-BKYE77F2.js +171 -0
- package/dist/chunk-BR5OSUZT.mjs +55 -0
- package/dist/chunk-BZ3AXFLG.js +149 -0
- package/dist/{chunk-SOC74QA2.js → chunk-C6WJ4GQW.js} +8 -8
- package/dist/{chunk-LXQOQJMU.js → chunk-CDT3P2ZN.js} +5 -12
- package/dist/chunk-CHH7DWIO.js +121 -0
- package/dist/{chunk-3T7L3MHX.js → chunk-CKFE2B36.js} +76 -38
- package/dist/{chunk-QNRAM3CM.js → chunk-CMGI5WHZ.js} +3 -2
- package/dist/chunk-CQGAZ5JQ.js +61 -0
- package/dist/chunk-CRSMECWE.mjs +33 -0
- package/dist/{chunk-KAWE5LQZ.js → chunk-D6BHFGTN.js} +29 -0
- package/dist/chunk-DAR2BMMV.js +150 -0
- package/dist/{chunk-OCVQ3LOT.mjs → chunk-DKT2EYVM.mjs} +3 -5
- package/dist/chunk-DZGDCRBH.mjs +30 -0
- package/dist/{chunk-S4GNTA7V.mjs → chunk-EBLAM3YP.mjs} +2 -2
- package/dist/chunk-EEF26RBA.mjs +48 -0
- package/dist/{chunk-PJCY45UP.mjs → chunk-EHU3J4B2.mjs} +1 -1
- package/dist/{chunk-RKB2VUQO.js → chunk-EOYJLBFD.js} +24 -21
- package/dist/{chunk-DTQZPZSJ.mjs → chunk-EPN7QWP6.mjs} +16 -2
- package/dist/{chunk-M46L73HR.js → chunk-ET5YJELZ.js} +14 -14
- package/dist/{chunk-NTODO3Q3.mjs → chunk-EV6KRX6F.mjs} +38 -8
- package/dist/{chunk-GB5G2CJY.js → chunk-F2OF6XZ6.js} +36 -6
- package/dist/chunk-F6KHZNRS.js +32 -0
- package/dist/{chunk-URM7QDHH.js → chunk-F7H4ALKN.js} +2 -2
- package/dist/chunk-FHE4D56E.js +188 -0
- package/dist/chunk-FNK4ZATV.js +94 -0
- package/dist/{chunk-RGFSY3S2.mjs → chunk-FPURO6QB.mjs} +16 -3
- package/dist/chunk-GBTKAKUD.mjs +300 -0
- package/dist/chunk-GOUMB34F.mjs +168 -0
- package/dist/chunk-H3NLKNR4.mjs +192 -0
- package/dist/{chunk-6W6CRBBG.mjs → chunk-HCZA4LV6.mjs} +8 -5
- package/dist/{chunk-5CLXOFRZ.mjs → chunk-HLJQZUIY.mjs} +11 -10
- package/dist/chunk-HLS4CHWX.mjs +29 -0
- package/dist/{chunk-MTL2QUM3.mjs → chunk-HSHVLIEL.mjs} +2 -2
- package/dist/{chunk-XWNVBCJA.js → chunk-HU3VDVH6.js} +14 -15
- package/dist/{chunk-SW4I4X6E.mjs → chunk-HUCBHFSL.mjs} +24 -21
- package/dist/{chunk-Q57BYUUW.js → chunk-HWWNBCFB.js} +39 -8
- package/dist/{chunk-MDZDPGRK.mjs → chunk-HZ5Z5Y2J.mjs} +29 -10
- package/dist/chunk-HZHFFVP7.mjs +63 -0
- package/dist/chunk-I3CDTF4U.js +45 -0
- package/dist/chunk-I4SKKEU3.js +151 -0
- package/dist/{chunk-RCNTRSUA.mjs → chunk-INBSKSZG.mjs} +51 -69
- package/dist/chunk-IOHPB4CF.js +148 -0
- package/dist/{chunk-QIJG42YQ.mjs → chunk-IPLK4AIE.mjs} +3 -3
- package/dist/{chunk-XWRJVNB6.js → chunk-IWP22YTF.js} +104 -18
- package/dist/chunk-J3N24I7A.mjs +58 -0
- package/dist/chunk-JB33A4S6.js +125 -0
- package/dist/{chunk-DQNA57CA.js → chunk-JLM4LBUS.js} +5 -12
- package/dist/{chunk-TJFS44SH.js → chunk-JLRRXRZO.js} +2 -4
- package/dist/{chunk-GNMOOYHG.js → chunk-KNBNE74O.js} +11 -10
- package/dist/chunk-LODDAS62.js +173 -0
- package/dist/{chunk-LL6B4BHF.mjs → chunk-LPNHBHS2.mjs} +4 -4
- package/dist/{chunk-KBTFBEPE.mjs → chunk-MB7CJ32C.mjs} +153 -16
- package/dist/{chunk-IP3MAJSH.mjs → chunk-MQ5ZP5RW.mjs} +5 -12
- package/dist/{chunk-KMTERPME.mjs → chunk-MSHCPJIJ.mjs} +1 -1
- package/dist/chunk-N66WEQ6M.js +240 -0
- package/dist/{chunk-TDRINUMH.js → chunk-NZNSUKPT.js} +29 -10
- package/dist/{chunk-EFLIFXZH.js → chunk-P3XVLJYD.js} +15 -1
- package/dist/chunk-P6E3DILH.mjs +51 -0
- package/dist/{chunk-HPXLUJFJ.mjs → chunk-PN33UCWB.mjs} +3 -5
- package/dist/chunk-PNAWOJ32.js +54 -0
- package/dist/{chunk-72MWKUBC.js → chunk-PUYT62KC.js} +17 -4
- package/dist/chunk-Q4JMAQXJ.js +41 -0
- package/dist/chunk-QBZODEIG.js +49 -0
- package/dist/chunk-QHG7KJH6.js +302 -0
- package/dist/chunk-QIXQYLH5.js +44 -0
- package/dist/chunk-QO3GGQAV.mjs +148 -0
- package/dist/{chunk-RGZYYVQF.mjs → chunk-QPGL4YEO.mjs} +39 -11
- package/dist/{chunk-6IH5QPTR.mjs → chunk-QPOH6SOO.mjs} +44 -6
- package/dist/chunk-QVZTZHCJ.mjs +148 -0
- package/dist/{chunk-C7UKFKVY.js → chunk-QYGBT4NL.js} +40 -12
- package/dist/chunk-QYLNPHKG.mjs +87 -0
- package/dist/chunk-R3QWJ7GT.mjs +186 -0
- package/dist/chunk-R5P72RIT.js +180 -0
- package/dist/chunk-R5XY4EQL.js +56 -0
- package/dist/chunk-RRJTIKU6.mjs +238 -0
- package/dist/{chunk-ZFHTSHXS.mjs → chunk-RUROWRB5.mjs} +30 -1
- package/dist/{chunk-SAZ6V6DX.js → chunk-RVCUNEBU.js} +2 -4
- package/dist/chunk-RWZIWKZR.js +188 -0
- package/dist/{chunk-HB2UYJBY.js → chunk-RYW4CV7U.js} +61 -47
- package/dist/chunk-S5Y6UHAK.mjs +116 -0
- package/dist/{chunk-YV6Y7C43.js → chunk-SDWJSALH.js} +8 -3
- package/dist/chunk-SQK2CPSV.mjs +59 -0
- package/dist/{chunk-NJCKTIWB.mjs → chunk-SWF7GJYT.mjs} +6 -7
- package/dist/chunk-T5FAKJ6C.mjs +49 -0
- package/dist/chunk-TFPIRBHL.js +103 -0
- package/dist/chunk-TKZO5UBH.js +65 -0
- package/dist/chunk-TMQA74FM.js +215 -0
- package/dist/chunk-TQEIMVJD.mjs +94 -0
- package/dist/chunk-TYCRDHE6.mjs +143 -0
- package/dist/chunk-TZNTHABR.js +58 -0
- package/dist/chunk-UBKOITHT.mjs +142 -0
- package/dist/{chunk-RDIEZKV2.js → chunk-UEJHVPE2.js} +2 -2
- package/dist/chunk-UF3DXKCI.js +35 -0
- package/dist/chunk-UIO6O4MI.js +57 -0
- package/dist/chunk-UKGQ7256.js +13 -0
- package/dist/chunk-UPQGB5NQ.mjs +38 -0
- package/dist/chunk-UQMPEMY7.mjs +11 -0
- package/dist/chunk-V3P4ZAGL.mjs +110 -0
- package/dist/{chunk-TGPQ4KET.mjs → chunk-VAQDUVBP.mjs} +29 -2
- package/dist/chunk-VHHEP5G7.js +123 -0
- package/dist/{chunk-J3HKED4B.js → chunk-VHWTMNQN.js} +8 -8
- package/dist/{chunk-56KTCMRE.mjs → chunk-VONFSF4S.mjs} +5 -12
- package/dist/{chunk-JWFEJ4XG.js → chunk-WGPUGPYE.js} +2 -2
- package/dist/chunk-WIWTY74F.mjs +44 -0
- package/dist/chunk-WNLUUD5N.mjs +179 -0
- package/dist/{chunk-VCOBBJLP.js → chunk-WVVXZKNI.js} +5 -4
- package/dist/chunk-XEYP62CR.js +194 -0
- package/dist/chunk-XFJ5Q5PF.mjs +30 -0
- package/dist/{chunk-ZBVFM3GJ.js → chunk-XO6NSGV3.js} +152 -15
- package/dist/{chunk-FMF2G6BJ.js → chunk-XR6B2URW.js} +3 -3
- package/dist/chunk-Y3NDP56G.mjs +174 -0
- package/dist/chunk-YHFBPSMF.js +198 -0
- package/dist/chunk-YID7J6ZK.js +37 -0
- package/dist/chunk-YJ4W6DMX.mjs +186 -0
- package/dist/chunk-YLZEOXFS.mjs +116 -0
- package/dist/chunk-YPHOVEVU.mjs +118 -0
- package/dist/chunk-YXWRSEP5.mjs +286 -0
- package/dist/chunk-Z6CRXABX.js +88 -0
- package/dist/{chunk-24U2DQRP.mjs → chunk-ZD4BVRYG.mjs} +2 -1
- package/dist/chunk-ZRHDNGWO.js +46 -0
- package/dist/chunk-ZYJTHGQW.js +181 -0
- package/dist/components/ActivityFeed.js +5 -5
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/Affix.d.mts +11 -0
- package/dist/components/Affix.d.ts +11 -0
- package/dist/components/Affix.js +10 -0
- package/dist/components/Affix.mjs +1 -0
- package/dist/components/Alert.js +2 -2
- package/dist/components/Alert.mjs +1 -1
- package/dist/components/AreaChart.js +5 -5
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.d.mts +16 -0
- package/dist/components/AutoComplete.d.ts +16 -0
- package/dist/components/AutoComplete.js +10 -0
- package/dist/components/AutoComplete.mjs +1 -0
- package/dist/components/AvatarGroup.d.mts +14 -0
- package/dist/components/AvatarGroup.d.ts +14 -0
- package/dist/components/AvatarGroup.js +14 -0
- package/dist/components/AvatarGroup.mjs +1 -0
- package/dist/components/Badge.js +2 -2
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/BarChart.js +5 -5
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Button.d.mts +2 -1
- package/dist/components/Button.d.ts +2 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.mjs +1 -1
- package/dist/components/ButtonGroup.d.mts +15 -0
- package/dist/components/ButtonGroup.d.ts +15 -0
- package/dist/components/ButtonGroup.js +18 -0
- package/dist/components/ButtonGroup.mjs +1 -0
- package/dist/components/Calendar.d.mts +15 -0
- package/dist/components/Calendar.d.ts +15 -0
- package/dist/components/Calendar.js +16 -0
- package/dist/components/Calendar.mjs +1 -0
- package/dist/components/Card.js +2 -2
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Cascader.d.mts +15 -0
- package/dist/components/Cascader.d.ts +15 -0
- package/dist/components/Cascader.js +10 -0
- package/dist/components/Cascader.mjs +1 -0
- package/dist/components/ChatWindow.js +7 -6
- package/dist/components/ChatWindow.mjs +5 -4
- package/dist/components/Checkbox.js +4 -3
- package/dist/components/Checkbox.mjs +3 -2
- package/dist/components/CheckboxGroup.js +4 -3
- package/dist/components/CheckboxGroup.mjs +2 -1
- package/dist/components/CodeEditor.d.mts +11 -0
- package/dist/components/CodeEditor.d.ts +11 -0
- package/dist/components/CodeEditor.js +16 -0
- package/dist/components/CodeEditor.mjs +1 -0
- package/dist/components/ColorPicker.d.mts +12 -0
- package/dist/components/ColorPicker.d.ts +12 -0
- package/dist/components/ColorPicker.js +10 -0
- package/dist/components/ColorPicker.mjs +1 -0
- package/dist/components/CommentThread.js +7 -6
- package/dist/components/CommentThread.mjs +5 -4
- package/dist/components/ConfigProvider.d.mts +5 -1
- package/dist/components/ConfigProvider.d.ts +5 -1
- package/dist/components/ConfigProvider.js +3 -3
- package/dist/components/ConfigProvider.mjs +1 -1
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.js +7 -7
- package/dist/components/DataTableWithToolbar.mjs +5 -5
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/Descriptions.d.mts +3 -3
- package/dist/components/Descriptions.d.ts +3 -3
- package/dist/components/Descriptions.js +3 -3
- package/dist/components/Descriptions.mjs +1 -1
- package/dist/components/Divider.js +2 -2
- package/dist/components/Divider.mjs +1 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Drawer.mjs +1 -1
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/Empty.d.mts +14 -0
- package/dist/components/Empty.d.ts +14 -0
- package/dist/components/Empty.js +10 -0
- package/dist/components/Empty.mjs +1 -0
- package/dist/components/FileManager.d.mts +29 -0
- package/dist/components/FileManager.d.ts +29 -0
- package/dist/components/FileManager.js +16 -0
- package/dist/components/FileManager.mjs +1 -0
- package/dist/components/FloatButton.d.mts +21 -0
- package/dist/components/FloatButton.d.ts +21 -0
- package/dist/components/FloatButton.js +14 -0
- package/dist/components/FloatButton.mjs +1 -0
- package/dist/components/Form.d.mts +24 -0
- package/dist/components/Form.d.ts +24 -0
- package/dist/components/Form.js +3 -3
- 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.d.mts +1 -1
- package/dist/components/FormWizard.d.ts +1 -1
- package/dist/components/FormWizard.js +5 -5
- package/dist/components/FormWizard.mjs +3 -3
- package/dist/components/FunnelChart.d.mts +15 -0
- package/dist/components/FunnelChart.d.ts +15 -0
- package/dist/components/FunnelChart.js +14 -0
- package/dist/components/FunnelChart.mjs +5 -0
- package/dist/components/GaugeChart.d.mts +9 -0
- package/dist/components/GaugeChart.d.ts +9 -0
- package/dist/components/GaugeChart.js +11 -0
- package/dist/components/GaugeChart.mjs +2 -0
- package/dist/components/HeatmapChart.d.mts +13 -0
- package/dist/components/HeatmapChart.d.ts +13 -0
- package/dist/components/HeatmapChart.js +13 -0
- package/dist/components/HeatmapChart.mjs +4 -0
- package/dist/components/Image.d.mts +4 -0
- package/dist/components/Image.d.ts +4 -0
- package/dist/components/Image.js +4 -4
- package/dist/components/Image.mjs +3 -3
- package/dist/components/ImageGroup.js +4 -4
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.d.mts +3 -2
- package/dist/components/ImagePreview.d.ts +3 -2
- package/dist/components/ImagePreview.js +2 -2
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/ImageViewer.d.mts +20 -0
- package/dist/components/ImageViewer.d.ts +20 -0
- package/dist/components/ImageViewer.js +10 -0
- package/dist/components/ImageViewer.mjs +1 -0
- package/dist/components/InfiniteScroll.d.mts +20 -0
- package/dist/components/InfiniteScroll.d.ts +20 -0
- package/dist/components/InfiniteScroll.js +16 -0
- package/dist/components/InfiniteScroll.mjs +1 -0
- package/dist/components/Input.d.mts +5 -0
- package/dist/components/Input.d.ts +5 -0
- package/dist/components/Input.js +2 -2
- package/dist/components/Input.mjs +1 -1
- package/dist/components/InputGroup.d.mts +20 -0
- package/dist/components/InputGroup.d.ts +20 -0
- package/dist/components/InputGroup.js +22 -0
- package/dist/components/InputGroup.mjs +1 -0
- package/dist/components/InputNumber.js +2 -2
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/Kanban.d.mts +46 -0
- package/dist/components/Kanban.d.ts +46 -0
- package/dist/components/Kanban.js +17 -0
- package/dist/components/Kanban.mjs +2 -0
- package/dist/components/LineChart.js +5 -5
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/List.d.mts +9 -1
- package/dist/components/List.d.ts +9 -1
- package/dist/components/List.js +2 -2
- package/dist/components/List.mjs +1 -1
- package/dist/components/Mentions.d.mts +18 -0
- package/dist/components/Mentions.d.ts +18 -0
- package/dist/components/Mentions.js +16 -0
- package/dist/components/Mentions.mjs +1 -0
- package/dist/components/Modal.d.mts +2 -2
- package/dist/components/Modal.d.ts +2 -2
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/NotificationCenter.js +8 -8
- package/dist/components/NotificationCenter.mjs +6 -6
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +1 -1
- package/dist/components/Popconfirm.d.ts +1 -1
- package/dist/components/Popconfirm.js +3 -3
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.d.mts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/Popover.js +3 -3
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/PrintLayout.d.mts +22 -0
- package/dist/components/PrintLayout.d.ts +22 -0
- package/dist/components/PrintLayout.js +14 -0
- package/dist/components/PrintLayout.mjs +1 -0
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.mjs +1 -1
- package/dist/components/QRCode.d.mts +16 -0
- package/dist/components/QRCode.d.ts +16 -0
- package/dist/components/QRCode.js +16 -0
- package/dist/components/QRCode.mjs +1 -0
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Radio.js +4 -3
- package/dist/components/Radio.mjs +3 -2
- package/dist/components/RadioGroup.js +4 -3
- package/dist/components/RadioGroup.mjs +2 -1
- package/dist/components/Rate.d.mts +14 -0
- package/dist/components/Rate.d.ts +14 -0
- package/dist/components/Rate.js +10 -0
- package/dist/components/Rate.mjs +1 -0
- package/dist/components/Resizable.d.mts +13 -0
- package/dist/components/Resizable.d.ts +13 -0
- package/dist/components/Resizable.js +16 -0
- package/dist/components/Resizable.mjs +1 -0
- package/dist/components/Result.d.mts +14 -0
- package/dist/components/Result.d.ts +14 -0
- package/dist/components/Result.js +11 -0
- package/dist/components/Result.mjs +2 -0
- package/dist/components/RichTextEditor.d.mts +26 -0
- package/dist/components/RichTextEditor.d.ts +26 -0
- package/dist/components/RichTextEditor.js +17 -0
- package/dist/components/RichTextEditor.mjs +2 -0
- package/dist/components/ScatterChart.js +5 -5
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/Segmented.d.mts +12 -0
- package/dist/components/Segmented.d.ts +12 -0
- package/dist/components/Segmented.js +10 -0
- package/dist/components/Segmented.mjs +1 -0
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Splitter.d.mts +18 -0
- package/dist/components/Splitter.d.ts +18 -0
- package/dist/components/Splitter.js +16 -0
- package/dist/components/Splitter.mjs +1 -0
- package/dist/components/Statistic.d.mts +8 -0
- package/dist/components/Statistic.d.ts +8 -0
- package/dist/components/Statistic.js +10 -0
- package/dist/components/Statistic.mjs +1 -0
- package/dist/components/Stepper.d.mts +12 -0
- package/dist/components/Stepper.d.ts +12 -0
- package/dist/components/Stepper.js +10 -0
- package/dist/components/Stepper.mjs +1 -0
- package/dist/components/SunburstChart.d.mts +15 -0
- package/dist/components/SunburstChart.d.ts +15 -0
- package/dist/components/SunburstChart.js +14 -0
- package/dist/components/SunburstChart.mjs +5 -0
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +13 -1
- package/dist/components/Table.d.ts +13 -1
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/Tabs.d.mts +7 -0
- package/dist/components/Tabs.d.ts +7 -0
- package/dist/components/Tabs.js +3 -3
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TaskBoard.js +4 -4
- package/dist/components/TaskBoard.mjs +2 -2
- package/dist/components/Text.js +2 -2
- package/dist/components/Text.mjs +1 -1
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/Tooltip.d.mts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.d.mts +14 -0
- package/dist/components/Tour.d.ts +14 -0
- package/dist/components/Tour.js +11 -0
- package/dist/components/Tour.mjs +2 -0
- package/dist/components/Transfer.d.mts +12 -0
- package/dist/components/Transfer.d.ts +12 -0
- package/dist/components/Transfer.js +10 -0
- package/dist/components/Transfer.mjs +1 -0
- package/dist/components/Tree.d.mts +18 -0
- package/dist/components/Tree.d.ts +18 -0
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeMapChart.d.mts +15 -0
- package/dist/components/TreeMapChart.d.ts +15 -0
- package/dist/components/TreeMapChart.js +14 -0
- package/dist/components/TreeMapChart.mjs +5 -0
- package/dist/components/TreeSelect.d.mts +12 -0
- package/dist/components/TreeSelect.d.ts +12 -0
- package/dist/components/TreeSelect.js +10 -0
- package/dist/components/TreeSelect.mjs +1 -0
- package/dist/components/Upload.js +3 -3
- package/dist/components/Upload.mjs +2 -2
- package/dist/components/VirtualList.d.mts +14 -0
- package/dist/components/VirtualList.d.ts +14 -0
- package/dist/components/VirtualList.js +10 -0
- package/dist/components/VirtualList.mjs +1 -0
- package/dist/components/VirtualTable.d.mts +26 -0
- package/dist/components/VirtualTable.d.ts +26 -0
- package/dist/components/VirtualTable.js +16 -0
- package/dist/components/VirtualTable.mjs +1 -0
- package/dist/components/Watermark.d.mts +9 -0
- package/dist/components/Watermark.d.ts +9 -0
- package/dist/components/Watermark.js +10 -0
- package/dist/components/Watermark.mjs +1 -0
- package/dist/index.d.mts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +504 -181
- package/dist/index.mjs +223 -64
- package/package.json +2 -2
- package/dist/chunk-3M2IG6IN.mjs +0 -34
- package/dist/chunk-4Y7YH32A.mjs +0 -157
- package/dist/chunk-FPNT7FV5.mjs +0 -44
- package/dist/chunk-FSDZJD7M.js +0 -159
- package/dist/chunk-I5TCE5E7.js +0 -32
- package/dist/chunk-LIV33O73.mjs +0 -26
- package/dist/chunk-O3W3OZ6V.js +0 -37
- package/dist/chunk-OYCMGKQ7.js +0 -111
- package/dist/chunk-RPTLVIBF.mjs +0 -109
- package/dist/chunk-RYWGELJ7.js +0 -46
- package/dist/chunk-SSQOCZ6O.js +0 -36
- package/dist/chunk-UZ7SBFQV.mjs +0 -35
- package/dist/chunk-VEGBO77D.mjs +0 -20
- package/dist/{chunk-2DW3WFZI.mjs → chunk-2LUDQBVY.mjs} +2 -2
- package/dist/{chunk-JQNKI2ZZ.js → chunk-C443YA4U.js} +2 -2
- package/dist/{chunk-QGCQAJGL.mjs → chunk-DEQWHJLQ.mjs} +2 -2
- package/dist/{chunk-N4EMXCRQ.mjs → chunk-FXX3GD35.mjs} +1 -1
- package/dist/{chunk-GASFXURT.js → chunk-KQJYSG23.js} +2 -2
- package/dist/{chunk-NEP3CS6S.js → chunk-OE6WTZES.js} +2 -2
- package/dist/{chunk-SH6O6LDJ.mjs → chunk-QQDKQLHJ.mjs} +1 -1
- package/dist/{chunk-F4Q5QMX2.js → chunk-TVJZB7ZC.js} +1 -1
- package/dist/{chunk-SM7RDJFB.js → chunk-VILZFNR7.js} +2 -2
- package/dist/{chunk-W4TFISRK.js → chunk-WK5QJO57.js} +1 -1
- package/dist/{chunk-CYZLGYY4.mjs → chunk-XNMSECO4.mjs} +2 -2
- package/dist/{chunk-763M6U5U.mjs → chunk-ZDL3GE3Q.mjs} +2 -2
|
@@ -85,6 +85,19 @@ function Table({
|
|
|
85
85
|
stickyHeader = false,
|
|
86
86
|
maxHeight,
|
|
87
87
|
tableLayout = "auto",
|
|
88
|
+
// v0.6.0 props
|
|
89
|
+
virtual = false,
|
|
90
|
+
virtualHeight = 400,
|
|
91
|
+
virtualItemHeight: _virtualItemHeight = 40,
|
|
92
|
+
editable = false,
|
|
93
|
+
editableCells,
|
|
94
|
+
filterMode = "basic",
|
|
95
|
+
advancedFilterRules = [],
|
|
96
|
+
columnDraggable = false,
|
|
97
|
+
summaryRow,
|
|
98
|
+
groupBy,
|
|
99
|
+
exportable = false,
|
|
100
|
+
exportFilename = "export",
|
|
88
101
|
onChange,
|
|
89
102
|
onRowClick,
|
|
90
103
|
onSelectionChange,
|
|
@@ -92,6 +105,9 @@ function Table({
|
|
|
92
105
|
onFilterChange,
|
|
93
106
|
onPageChange,
|
|
94
107
|
onExpandChange,
|
|
108
|
+
onCellChange,
|
|
109
|
+
onColumnOrderChange,
|
|
110
|
+
onExport,
|
|
95
111
|
className,
|
|
96
112
|
...props
|
|
97
113
|
}) {
|
|
@@ -194,13 +210,17 @@ function Table({
|
|
|
194
210
|
);
|
|
195
211
|
const processedData = React.useMemo(() => {
|
|
196
212
|
let data = dataSource;
|
|
197
|
-
|
|
213
|
+
if (filterMode === "advanced" && advancedFilterRules.length > 0) {
|
|
214
|
+
data = tigercatCore.filterDataAdvanced(data, advancedFilterRules);
|
|
215
|
+
} else {
|
|
216
|
+
data = tigercatCore.filterData(data, filterState);
|
|
217
|
+
}
|
|
198
218
|
if (sortState.key && sortState.direction) {
|
|
199
219
|
const column = columnByKey[sortState.key];
|
|
200
220
|
data = tigercatCore.sortData(data, sortState.key, sortState.direction, column?.sortFn);
|
|
201
221
|
}
|
|
202
222
|
return data;
|
|
203
|
-
}, [dataSource, filterState, sortState, columnByKey]);
|
|
223
|
+
}, [dataSource, filterState, sortState, columnByKey, filterMode, advancedFilterRules]);
|
|
204
224
|
const paginatedData = React.useMemo(() => {
|
|
205
225
|
if (pagination === false) {
|
|
206
226
|
return processedData;
|
|
@@ -399,6 +419,59 @@ function Table({
|
|
|
399
419
|
const someSelected = React.useMemo(() => {
|
|
400
420
|
return selectedRowKeys.length > 0 && !allSelected;
|
|
401
421
|
}, [selectedRowKeys.length, allSelected]);
|
|
422
|
+
const [editingCell, setEditingCell] = React.useState(
|
|
423
|
+
null
|
|
424
|
+
);
|
|
425
|
+
const [editingValue, setEditingValue] = React.useState("");
|
|
426
|
+
const isCellEditable = React.useCallback(
|
|
427
|
+
(columnKey, rowIndex) => {
|
|
428
|
+
if (!editable) return false;
|
|
429
|
+
if (!editableCells) return true;
|
|
430
|
+
return !!editableCells.get(columnKey)?.has(rowIndex);
|
|
431
|
+
},
|
|
432
|
+
[editable, editableCells]
|
|
433
|
+
);
|
|
434
|
+
const startEditing = React.useCallback((rowIndex, columnKey, currentValue) => {
|
|
435
|
+
setEditingCell({ rowIndex, columnKey });
|
|
436
|
+
setEditingValue(String(currentValue ?? ""));
|
|
437
|
+
}, []);
|
|
438
|
+
const commitEdit = React.useCallback(() => {
|
|
439
|
+
if (editingCell) {
|
|
440
|
+
onCellChange?.(editingCell.rowIndex, editingCell.columnKey, editingValue);
|
|
441
|
+
setEditingCell(null);
|
|
442
|
+
}
|
|
443
|
+
}, [editingCell, editingValue, onCellChange]);
|
|
444
|
+
const cancelEdit = React.useCallback(() => {
|
|
445
|
+
setEditingCell(null);
|
|
446
|
+
}, []);
|
|
447
|
+
const handleExport = React.useCallback(() => {
|
|
448
|
+
const csv = tigercatCore.exportTableToCsv(displayColumns, processedData);
|
|
449
|
+
tigercatCore.downloadCsv(csv, exportFilename);
|
|
450
|
+
onExport?.(csv);
|
|
451
|
+
}, [displayColumns, processedData, exportFilename, onExport]);
|
|
452
|
+
const [dragColumnKey, setDragColumnKey] = React.useState(null);
|
|
453
|
+
const handleDragStart = React.useCallback((columnKey) => {
|
|
454
|
+
setDragColumnKey(columnKey);
|
|
455
|
+
}, []);
|
|
456
|
+
const handleDrop = React.useCallback(
|
|
457
|
+
(targetKey) => {
|
|
458
|
+
if (!dragColumnKey || dragColumnKey === targetKey) return;
|
|
459
|
+
const cols = [...displayColumns];
|
|
460
|
+
const fromIdx = cols.findIndex((c) => c.key === dragColumnKey);
|
|
461
|
+
const toIdx = cols.findIndex((c) => c.key === targetKey);
|
|
462
|
+
if (fromIdx >= 0 && toIdx >= 0) {
|
|
463
|
+
const [moved] = cols.splice(fromIdx, 1);
|
|
464
|
+
cols.splice(toIdx, 0, moved);
|
|
465
|
+
onColumnOrderChange?.(cols);
|
|
466
|
+
}
|
|
467
|
+
setDragColumnKey(null);
|
|
468
|
+
},
|
|
469
|
+
[dragColumnKey, displayColumns, onColumnOrderChange]
|
|
470
|
+
);
|
|
471
|
+
const groupedData = React.useMemo(() => {
|
|
472
|
+
if (!groupBy) return null;
|
|
473
|
+
return tigercatCore.groupDataByColumn(paginatedData, groupBy);
|
|
474
|
+
}, [groupBy, paginatedData]);
|
|
402
475
|
const renderTableHeader = React.useCallback(() => {
|
|
403
476
|
const expandHeaderTh = expandable ? /* @__PURE__ */ jsxRuntime.jsx("th", { className: tigercatCore.getExpandIconCellClasses(size), "aria-label": "Expand" }) : null;
|
|
404
477
|
const expandAtStart = expandable?.expandIconPosition !== "end";
|
|
@@ -449,6 +522,10 @@ function Table({
|
|
|
449
522
|
(isFixedLeft || isFixedRight) && "bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
450
523
|
),
|
|
451
524
|
style,
|
|
525
|
+
draggable: columnDraggable ? true : void 0,
|
|
526
|
+
onDragStart: columnDraggable ? () => handleDragStart(column.key) : void 0,
|
|
527
|
+
onDragOver: columnDraggable ? (e) => e.preventDefault() : void 0,
|
|
528
|
+
onDrop: columnDraggable ? () => handleDrop(column.key) : void 0,
|
|
452
529
|
onClick: column.sortable ? () => handleSort(column.key) : void 0,
|
|
453
530
|
children: [
|
|
454
531
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -513,7 +590,10 @@ function Table({
|
|
|
513
590
|
handleSelectAll,
|
|
514
591
|
columnLockable,
|
|
515
592
|
toggleColumnLock,
|
|
516
|
-
fixedColumnsInfo
|
|
593
|
+
fixedColumnsInfo,
|
|
594
|
+
columnDraggable,
|
|
595
|
+
handleDragStart,
|
|
596
|
+
handleDrop
|
|
517
597
|
]);
|
|
518
598
|
const renderTableBody = React.useCallback(() => {
|
|
519
599
|
if (loading) {
|
|
@@ -522,7 +602,7 @@ function Table({
|
|
|
522
602
|
if (paginatedData.length === 0) {
|
|
523
603
|
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: totalColumnCount, className: tigercatCore.tableEmptyStateClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", "aria-live": "polite", children: emptyText }) }) }) });
|
|
524
604
|
}
|
|
525
|
-
|
|
605
|
+
const renderDataRow = (record, index) => {
|
|
526
606
|
const key = pageRowKeys[index];
|
|
527
607
|
const isSelected = selectedRowKeySet.has(key);
|
|
528
608
|
const isExpanded = expandedRowKeySet.has(key);
|
|
@@ -587,15 +667,32 @@ function Table({
|
|
|
587
667
|
stickyBgClass,
|
|
588
668
|
hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
589
669
|
) : void 0;
|
|
670
|
+
const isEditing = editingCell?.rowIndex === index && editingCell?.columnKey === column.key;
|
|
671
|
+
const cellEditable = isCellEditable(column.key, index);
|
|
590
672
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
591
673
|
"td",
|
|
592
674
|
{
|
|
593
675
|
className: tigercatCore.classNames(
|
|
594
676
|
tigercatCore.getTableCellClasses(size, column.align || "left", column.className),
|
|
595
|
-
stickyCellClass
|
|
677
|
+
stickyCellClass,
|
|
678
|
+
cellEditable && tigercatCore.getEditableCellClasses(!!isEditing)
|
|
596
679
|
),
|
|
597
680
|
style,
|
|
598
|
-
|
|
681
|
+
onDoubleClick: cellEditable ? () => startEditing(index, column.key, cellValue) : void 0,
|
|
682
|
+
children: isEditing ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
683
|
+
"input",
|
|
684
|
+
{
|
|
685
|
+
className: tigercatCore.editableCellInputClasses,
|
|
686
|
+
value: editingValue,
|
|
687
|
+
onChange: (e) => setEditingValue(e.target.value),
|
|
688
|
+
onBlur: commitEdit,
|
|
689
|
+
onKeyDown: (e) => {
|
|
690
|
+
if (e.key === "Enter") commitEdit();
|
|
691
|
+
if (e.key === "Escape") cancelEdit();
|
|
692
|
+
},
|
|
693
|
+
autoFocus: true
|
|
694
|
+
}
|
|
695
|
+
) : column.render ? column.render(record, index) : cellValue
|
|
599
696
|
},
|
|
600
697
|
column.key
|
|
601
698
|
);
|
|
@@ -613,7 +710,22 @@ function Table({
|
|
|
613
710
|
] }, key);
|
|
614
711
|
}
|
|
615
712
|
return rowNode;
|
|
616
|
-
}
|
|
713
|
+
};
|
|
714
|
+
if (groupedData) {
|
|
715
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: Array.from(groupedData.entries()).map(([groupKey, groupItems]) => /* @__PURE__ */ jsxRuntime.jsxs(React__default.default.Fragment, { children: [
|
|
716
|
+
/* @__PURE__ */ jsxRuntime.jsx("tr", { className: tigercatCore.tableGroupHeaderClasses, children: /* @__PURE__ */ jsxRuntime.jsxs("td", { colSpan: totalColumnCount, className: tigercatCore.getGroupHeaderCellClasses(size), children: [
|
|
717
|
+
groupKey,
|
|
718
|
+
" (",
|
|
719
|
+
groupItems.length,
|
|
720
|
+
")"
|
|
721
|
+
] }) }),
|
|
722
|
+
groupItems.map((record, idx) => {
|
|
723
|
+
const globalIndex = paginatedData.indexOf(record);
|
|
724
|
+
return renderDataRow(record, globalIndex >= 0 ? globalIndex : idx);
|
|
725
|
+
})
|
|
726
|
+
] }, `group-${groupKey}`)) });
|
|
727
|
+
}
|
|
728
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: paginatedData.map((record, index) => renderDataRow(record, index)) });
|
|
617
729
|
}, [
|
|
618
730
|
loading,
|
|
619
731
|
paginatedData,
|
|
@@ -632,7 +744,14 @@ function Table({
|
|
|
632
744
|
handleRowClick,
|
|
633
745
|
handleSelectRow,
|
|
634
746
|
handleToggleExpand,
|
|
635
|
-
fixedColumnsInfo
|
|
747
|
+
fixedColumnsInfo,
|
|
748
|
+
groupedData,
|
|
749
|
+
editingCell,
|
|
750
|
+
editingValue,
|
|
751
|
+
isCellEditable,
|
|
752
|
+
startEditing,
|
|
753
|
+
commitEdit,
|
|
754
|
+
cancelEdit
|
|
636
755
|
]);
|
|
637
756
|
const renderPagination = React.useCallback(() => {
|
|
638
757
|
if (pagination === false || !paginationInfo) {
|
|
@@ -693,19 +812,36 @@ function Table({
|
|
|
693
812
|
handlePageChange,
|
|
694
813
|
handlePageSizeChange
|
|
695
814
|
]);
|
|
696
|
-
const
|
|
697
|
-
()
|
|
815
|
+
const renderSummaryRow = React.useCallback(() => {
|
|
816
|
+
if (!summaryRow?.show) return null;
|
|
817
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tfoot", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: tigercatCore.tableSummaryRowClasses, children: [
|
|
818
|
+
rowSelection && rowSelection.showCheckbox !== false && /* @__PURE__ */ jsxRuntime.jsx("td", { className: tigercatCore.getTableCellClasses(size, "left") }),
|
|
819
|
+
expandable && /* @__PURE__ */ jsxRuntime.jsx("td", { className: tigercatCore.getTableCellClasses(size, "left") }),
|
|
820
|
+
displayColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx("td", { className: tigercatCore.getTableCellClasses(size, column.align || "left"), children: summaryRow.data[column.dataKey || column.key] ?? "" }, column.key))
|
|
821
|
+
] }) });
|
|
822
|
+
}, [summaryRow, displayColumns, size, rowSelection, expandable]);
|
|
823
|
+
const wrapperStyle = React.useMemo(() => {
|
|
824
|
+
if (virtual) {
|
|
825
|
+
return {
|
|
826
|
+
height: typeof virtualHeight === "number" ? `${virtualHeight}px` : virtualHeight,
|
|
827
|
+
overflow: "auto"
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
return maxHeight ? {
|
|
698
831
|
maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
|
|
699
|
-
} : void 0
|
|
700
|
-
|
|
701
|
-
);
|
|
832
|
+
} : void 0;
|
|
833
|
+
}, [maxHeight, virtual, virtualHeight]);
|
|
702
834
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
703
835
|
"div",
|
|
704
836
|
{
|
|
705
|
-
className: tigercatCore.getTableWrapperClasses(
|
|
837
|
+
className: tigercatCore.getTableWrapperClasses(
|
|
838
|
+
bordered,
|
|
839
|
+
maxHeight || (virtual ? virtualHeight : void 0)
|
|
840
|
+
),
|
|
706
841
|
style: wrapperStyle,
|
|
707
842
|
"aria-busy": loading,
|
|
708
843
|
children: [
|
|
844
|
+
exportable && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 flex justify-end", children: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: tigercatCore.tableExportButtonClasses, onClick: handleExport, children: "Export CSV" }) }),
|
|
709
845
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
710
846
|
"table",
|
|
711
847
|
{
|
|
@@ -721,7 +857,8 @@ function Table({
|
|
|
721
857
|
} : props.style,
|
|
722
858
|
children: [
|
|
723
859
|
renderTableHeader(),
|
|
724
|
-
renderTableBody()
|
|
860
|
+
renderTableBody(),
|
|
861
|
+
renderSummaryRow()
|
|
725
862
|
]
|
|
726
863
|
}
|
|
727
864
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWK5QJO57_js = require('./chunk-WK5QJO57.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -57,7 +57,7 @@ var DonutChart = ({
|
|
|
57
57
|
// DonutChart-specific
|
|
58
58
|
centerValue,
|
|
59
59
|
centerLabel,
|
|
60
|
-
animated = false,
|
|
60
|
+
animated: _animated = false,
|
|
61
61
|
// Callbacks
|
|
62
62
|
onHoveredIndexChange,
|
|
63
63
|
onSelectedIndexChange,
|
|
@@ -98,7 +98,7 @@ var DonutChart = ({
|
|
|
98
98
|
const centerY = pad.top + innerRect.height / 2;
|
|
99
99
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-block relative", "data-donut-chart": "true", children: [
|
|
100
100
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
-
|
|
101
|
+
chunkWK5QJO57_js.PieChart,
|
|
102
102
|
{
|
|
103
103
|
width,
|
|
104
104
|
height,
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { useChartInteraction } from './chunk-3CDAG4HD.mjs';
|
|
2
|
+
import { ChartTooltip } from './chunk-LVC43YX2.mjs';
|
|
3
|
+
import { ChartCanvas } from './chunk-IS467WAO.mjs';
|
|
4
|
+
import React, { useMemo } from 'react';
|
|
5
|
+
import { getChartInnerRect, computeHeatmapCells, resolveChartTooltipContent, classNames, chartAxisTickTextClasses, getChartElementOpacity } from '@expcat/tigercat-core';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var HeatmapChart = ({
|
|
9
|
+
width = 400,
|
|
10
|
+
height = 300,
|
|
11
|
+
padding = 40,
|
|
12
|
+
data,
|
|
13
|
+
xLabels,
|
|
14
|
+
yLabels,
|
|
15
|
+
minColor = "#f0f9ff",
|
|
16
|
+
maxColor = "#2563eb",
|
|
17
|
+
cellRadius = 2,
|
|
18
|
+
cellGap = 1,
|
|
19
|
+
showValues = false,
|
|
20
|
+
valueFormatter,
|
|
21
|
+
hoverable = false,
|
|
22
|
+
hoveredIndex: hoveredIndexProp,
|
|
23
|
+
activeOpacity = 1,
|
|
24
|
+
inactiveOpacity = 0.25,
|
|
25
|
+
selectable = false,
|
|
26
|
+
selectedIndex: selectedIndexProp,
|
|
27
|
+
showTooltip = true,
|
|
28
|
+
title,
|
|
29
|
+
desc,
|
|
30
|
+
className,
|
|
31
|
+
onHoveredIndexChange,
|
|
32
|
+
onSelectedIndexChange,
|
|
33
|
+
onCellClick,
|
|
34
|
+
onCellHover
|
|
35
|
+
}) => {
|
|
36
|
+
const {
|
|
37
|
+
tooltipPosition,
|
|
38
|
+
resolvedHoveredIndex,
|
|
39
|
+
activeIndex,
|
|
40
|
+
handleMouseEnter,
|
|
41
|
+
handleMouseMove,
|
|
42
|
+
handleMouseLeave,
|
|
43
|
+
handleClick
|
|
44
|
+
} = useChartInteraction({
|
|
45
|
+
hoverable,
|
|
46
|
+
hoveredIndexProp,
|
|
47
|
+
selectable,
|
|
48
|
+
selectedIndexProp,
|
|
49
|
+
activeOpacity,
|
|
50
|
+
inactiveOpacity,
|
|
51
|
+
getData: (index) => data[index],
|
|
52
|
+
onHoveredIndexChange: (index) => {
|
|
53
|
+
onHoveredIndexChange?.(index);
|
|
54
|
+
onCellHover?.(index, index !== null ? data[index] : null);
|
|
55
|
+
},
|
|
56
|
+
onSelectedIndexChange,
|
|
57
|
+
callbacks: { onClick: onCellClick }
|
|
58
|
+
});
|
|
59
|
+
const innerRect = useMemo(
|
|
60
|
+
() => getChartInnerRect(width, height, padding),
|
|
61
|
+
[width, height, padding]
|
|
62
|
+
);
|
|
63
|
+
const cells = useMemo(
|
|
64
|
+
() => computeHeatmapCells(data, {
|
|
65
|
+
xLabels,
|
|
66
|
+
yLabels,
|
|
67
|
+
width: innerRect.width,
|
|
68
|
+
height: innerRect.height,
|
|
69
|
+
cellGap,
|
|
70
|
+
minColor,
|
|
71
|
+
maxColor
|
|
72
|
+
}),
|
|
73
|
+
[data, xLabels, yLabels, innerRect.width, innerRect.height, cellGap, minColor, maxColor]
|
|
74
|
+
);
|
|
75
|
+
const tooltipContent = useMemo(
|
|
76
|
+
() => resolveChartTooltipContent(resolvedHoveredIndex, cells, void 0, (cell) => {
|
|
77
|
+
const val = valueFormatter ? valueFormatter(cell.value) : `${cell.value}`;
|
|
78
|
+
return `${cell.xLabel} \xD7 ${cell.yLabel}: ${val}`;
|
|
79
|
+
}),
|
|
80
|
+
[resolvedHoveredIndex, cells, valueFormatter]
|
|
81
|
+
);
|
|
82
|
+
const interactive = hoverable || selectable;
|
|
83
|
+
const rect = innerRect;
|
|
84
|
+
const cellW = (rect.width - cellGap * (xLabels.length - 1)) / xLabels.length;
|
|
85
|
+
const cellH = (rect.height - cellGap * (yLabels.length - 1)) / yLabels.length;
|
|
86
|
+
const chart = /* @__PURE__ */ jsxs(
|
|
87
|
+
ChartCanvas,
|
|
88
|
+
{
|
|
89
|
+
width,
|
|
90
|
+
height,
|
|
91
|
+
padding,
|
|
92
|
+
title,
|
|
93
|
+
desc,
|
|
94
|
+
className: classNames(className),
|
|
95
|
+
children: [
|
|
96
|
+
xLabels.map((lbl, i) => /* @__PURE__ */ jsx(
|
|
97
|
+
"text",
|
|
98
|
+
{
|
|
99
|
+
x: i * (cellW + cellGap) + cellW / 2,
|
|
100
|
+
y: rect.height + 16,
|
|
101
|
+
className: chartAxisTickTextClasses,
|
|
102
|
+
textAnchor: "middle",
|
|
103
|
+
children: lbl
|
|
104
|
+
},
|
|
105
|
+
`x-${i}`
|
|
106
|
+
)),
|
|
107
|
+
yLabels.map((lbl, i) => /* @__PURE__ */ jsx(
|
|
108
|
+
"text",
|
|
109
|
+
{
|
|
110
|
+
x: -8,
|
|
111
|
+
y: i * (cellH + cellGap) + cellH / 2,
|
|
112
|
+
className: chartAxisTickTextClasses,
|
|
113
|
+
textAnchor: "end",
|
|
114
|
+
dominantBaseline: "middle",
|
|
115
|
+
children: lbl
|
|
116
|
+
},
|
|
117
|
+
`y-${i}`
|
|
118
|
+
)),
|
|
119
|
+
cells.map((cell, idx) => {
|
|
120
|
+
const opacity = getChartElementOpacity(idx, activeIndex, {
|
|
121
|
+
activeOpacity,
|
|
122
|
+
inactiveOpacity
|
|
123
|
+
});
|
|
124
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
"rect",
|
|
127
|
+
{
|
|
128
|
+
x: cell.x,
|
|
129
|
+
y: cell.y,
|
|
130
|
+
width: cell.w,
|
|
131
|
+
height: cell.h,
|
|
132
|
+
rx: cellRadius,
|
|
133
|
+
fill: cell.fill,
|
|
134
|
+
opacity,
|
|
135
|
+
className: classNames(interactive && "cursor-pointer"),
|
|
136
|
+
style: { transition: "opacity 0.2s ease-out" },
|
|
137
|
+
onMouseEnter: (e) => handleMouseEnter(idx, e),
|
|
138
|
+
onMouseMove: handleMouseMove,
|
|
139
|
+
onMouseLeave: handleMouseLeave,
|
|
140
|
+
onClick: () => handleClick(idx)
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
showValues && /* @__PURE__ */ jsx(
|
|
144
|
+
"text",
|
|
145
|
+
{
|
|
146
|
+
x: cell.x + cell.w / 2,
|
|
147
|
+
y: cell.y + cell.h / 2,
|
|
148
|
+
className: "fill-[color:var(--tiger-text,#374151)] text-[10px]",
|
|
149
|
+
textAnchor: "middle",
|
|
150
|
+
dominantBaseline: "middle",
|
|
151
|
+
children: valueFormatter ? valueFormatter(cell.value) : `${cell.value}`
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] }, `cell-${idx}`);
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
const tooltip = showTooltip && hoverable ? /* @__PURE__ */ jsx(
|
|
160
|
+
ChartTooltip,
|
|
161
|
+
{
|
|
162
|
+
content: tooltipContent,
|
|
163
|
+
visible: resolvedHoveredIndex !== null && tooltipContent !== "",
|
|
164
|
+
x: tooltipPosition.x,
|
|
165
|
+
y: tooltipPosition.y
|
|
166
|
+
}
|
|
167
|
+
) : null;
|
|
168
|
+
return /* @__PURE__ */ jsxs("div", { className: "inline-block relative", children: [
|
|
169
|
+
chart,
|
|
170
|
+
tooltip
|
|
171
|
+
] });
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export { HeatmapChart };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKQZ4F7FZ_js = require('./chunk-KQZ4F7FZ.js');
|
|
4
|
+
var chunk6PBNFLM7_js = require('./chunk-6PBNFLM7.js');
|
|
5
|
+
var chunkM375I56K_js = require('./chunk-M375I56K.js');
|
|
6
|
+
var chunkDUWAV47E_js = require('./chunk-DUWAV47E.js');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
9
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
10
|
+
|
|
11
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
|
+
|
|
15
|
+
var TreeMapChart = ({
|
|
16
|
+
width = 400,
|
|
17
|
+
height = 300,
|
|
18
|
+
padding = 8,
|
|
19
|
+
data,
|
|
20
|
+
gap = 2,
|
|
21
|
+
showLabels = true,
|
|
22
|
+
minLabelSize = 10,
|
|
23
|
+
colors,
|
|
24
|
+
hoverable = false,
|
|
25
|
+
hoveredIndex: hoveredIndexProp,
|
|
26
|
+
activeOpacity = 1,
|
|
27
|
+
inactiveOpacity = 0.25,
|
|
28
|
+
selectable = false,
|
|
29
|
+
selectedIndex: selectedIndexProp,
|
|
30
|
+
showLegend = false,
|
|
31
|
+
legendPosition = "bottom",
|
|
32
|
+
legendMarkerSize = 10,
|
|
33
|
+
legendGap = 8,
|
|
34
|
+
showTooltip = true,
|
|
35
|
+
tooltipFormatter: _tooltipFormatter,
|
|
36
|
+
title,
|
|
37
|
+
desc,
|
|
38
|
+
className,
|
|
39
|
+
onHoveredIndexChange,
|
|
40
|
+
onSelectedIndexChange,
|
|
41
|
+
onNodeClick,
|
|
42
|
+
onNodeHover
|
|
43
|
+
}) => {
|
|
44
|
+
const innerRect = React.useMemo(
|
|
45
|
+
() => tigercatCore.getChartInnerRect(width, height, padding),
|
|
46
|
+
[width, height, padding]
|
|
47
|
+
);
|
|
48
|
+
const palette = React.useMemo(() => tigercatCore.resolveChartPalette(colors), [colors]);
|
|
49
|
+
const nodes = React.useMemo(
|
|
50
|
+
() => tigercatCore.computeTreeMapNodes(data, {
|
|
51
|
+
width: innerRect.width,
|
|
52
|
+
height: innerRect.height,
|
|
53
|
+
gap,
|
|
54
|
+
colors: palette
|
|
55
|
+
}),
|
|
56
|
+
[data, innerRect.width, innerRect.height, gap, palette]
|
|
57
|
+
);
|
|
58
|
+
const {
|
|
59
|
+
tooltipPosition,
|
|
60
|
+
resolvedHoveredIndex,
|
|
61
|
+
activeIndex,
|
|
62
|
+
handleMouseEnter,
|
|
63
|
+
handleMouseMove,
|
|
64
|
+
handleMouseLeave,
|
|
65
|
+
handleClick,
|
|
66
|
+
handleLegendClick,
|
|
67
|
+
handleLegendHover,
|
|
68
|
+
handleLegendLeave,
|
|
69
|
+
wrapperClasses
|
|
70
|
+
} = chunkKQZ4F7FZ_js.useChartInteraction({
|
|
71
|
+
hoverable,
|
|
72
|
+
hoveredIndexProp,
|
|
73
|
+
selectable,
|
|
74
|
+
selectedIndexProp,
|
|
75
|
+
activeOpacity,
|
|
76
|
+
inactiveOpacity,
|
|
77
|
+
legendPosition,
|
|
78
|
+
getData: (index) => {
|
|
79
|
+
const node = nodes[index];
|
|
80
|
+
return node ? { label: node.label, value: node.value } : {};
|
|
81
|
+
},
|
|
82
|
+
onHoveredIndexChange: (index) => {
|
|
83
|
+
onHoveredIndexChange?.(index);
|
|
84
|
+
const node = index !== null ? nodes[index] : null;
|
|
85
|
+
onNodeHover?.(
|
|
86
|
+
index,
|
|
87
|
+
node ? { label: node.label, value: node.value } : null
|
|
88
|
+
);
|
|
89
|
+
},
|
|
90
|
+
onSelectedIndexChange,
|
|
91
|
+
callbacks: { onClick: onNodeClick }
|
|
92
|
+
});
|
|
93
|
+
const total = React.useMemo(() => nodes.reduce((s, n) => s + n.value, 0), [nodes]);
|
|
94
|
+
const legendItems = React.useMemo(
|
|
95
|
+
() => tigercatCore.buildChartLegendItems({
|
|
96
|
+
data: nodes,
|
|
97
|
+
palette,
|
|
98
|
+
activeIndex,
|
|
99
|
+
getLabel: (d) => d.label,
|
|
100
|
+
getColor: (d) => d.color
|
|
101
|
+
}),
|
|
102
|
+
[nodes, palette, activeIndex]
|
|
103
|
+
);
|
|
104
|
+
const tooltipContent = React.useMemo(
|
|
105
|
+
() => tigercatCore.resolveChartTooltipContent(resolvedHoveredIndex, nodes, void 0, (node) => {
|
|
106
|
+
const pct = total > 0 ? (node.value / total * 100).toFixed(1) : "0";
|
|
107
|
+
return `${node.label}: ${node.value} (${pct}%)`;
|
|
108
|
+
}),
|
|
109
|
+
[resolvedHoveredIndex, nodes, total]
|
|
110
|
+
);
|
|
111
|
+
const interactive = hoverable || selectable;
|
|
112
|
+
const chart = /* @__PURE__ */ jsxRuntime.jsx(
|
|
113
|
+
chunkDUWAV47E_js.ChartCanvas,
|
|
114
|
+
{
|
|
115
|
+
width,
|
|
116
|
+
height,
|
|
117
|
+
padding,
|
|
118
|
+
title,
|
|
119
|
+
desc,
|
|
120
|
+
className: tigercatCore.classNames(className),
|
|
121
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("g", { "data-series-type": "treemap", children: nodes.map((node) => {
|
|
122
|
+
const opacity = tigercatCore.getChartElementOpacity(node.index, activeIndex, {
|
|
123
|
+
activeOpacity,
|
|
124
|
+
inactiveOpacity
|
|
125
|
+
});
|
|
126
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React__default.default.Fragment, { children: [
|
|
127
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
128
|
+
"rect",
|
|
129
|
+
{
|
|
130
|
+
x: node.x,
|
|
131
|
+
y: node.y,
|
|
132
|
+
width: node.w,
|
|
133
|
+
height: node.h,
|
|
134
|
+
rx: 2,
|
|
135
|
+
fill: node.color,
|
|
136
|
+
opacity,
|
|
137
|
+
className: tigercatCore.classNames(interactive && "cursor-pointer"),
|
|
138
|
+
style: { transition: "opacity 0.2s ease-out" },
|
|
139
|
+
onMouseEnter: (e) => handleMouseEnter(node.index, e),
|
|
140
|
+
onMouseMove: handleMouseMove,
|
|
141
|
+
onMouseLeave: handleMouseLeave,
|
|
142
|
+
onClick: () => handleClick(node.index)
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
showLabels && node.w > 30 && node.h > minLabelSize + 4 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
+
"text",
|
|
147
|
+
{
|
|
148
|
+
x: node.x + node.w / 2,
|
|
149
|
+
y: node.y + node.h / 2,
|
|
150
|
+
className: "fill-white text-xs",
|
|
151
|
+
textAnchor: "middle",
|
|
152
|
+
dominantBaseline: "middle",
|
|
153
|
+
style: {
|
|
154
|
+
pointerEvents: "none",
|
|
155
|
+
fontSize: `${Math.min(12, node.h * 0.3)}px`
|
|
156
|
+
},
|
|
157
|
+
children: node.label
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
] }, `node-${node.index}`);
|
|
161
|
+
}) })
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
const tooltip = showTooltip && hoverable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
165
|
+
chunkM375I56K_js.ChartTooltip,
|
|
166
|
+
{
|
|
167
|
+
content: tooltipContent,
|
|
168
|
+
visible: resolvedHoveredIndex !== null && tooltipContent !== "",
|
|
169
|
+
x: tooltipPosition.x,
|
|
170
|
+
y: tooltipPosition.y
|
|
171
|
+
}
|
|
172
|
+
) : null;
|
|
173
|
+
if (!showLegend) {
|
|
174
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-block relative", children: [
|
|
175
|
+
chart,
|
|
176
|
+
tooltip
|
|
177
|
+
] });
|
|
178
|
+
}
|
|
179
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClasses, children: [
|
|
180
|
+
chart,
|
|
181
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
182
|
+
chunk6PBNFLM7_js.ChartLegend,
|
|
183
|
+
{
|
|
184
|
+
items: legendItems,
|
|
185
|
+
position: legendPosition,
|
|
186
|
+
markerSize: legendMarkerSize,
|
|
187
|
+
gap: legendGap,
|
|
188
|
+
interactive,
|
|
189
|
+
onItemClick: handleLegendClick,
|
|
190
|
+
onItemHover: handleLegendHover,
|
|
191
|
+
onItemLeave: handleLegendLeave
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
tooltip
|
|
195
|
+
] });
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
exports.TreeMapChart = TreeMapChart;
|