@expcat/tigercat-react 1.3.4 → 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-CY5GRTAX.js → chunk-24NDLFPK.js} +46 -33
- package/dist/{chunk-3SV6J7I5.mjs → chunk-2L7QEOFD.mjs} +34 -25
- package/dist/{chunk-NMKFR435.js → chunk-2LKX6CE7.js} +7 -4
- package/dist/{chunk-MB6U72CI.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-NPTXXUXF.mjs → chunk-3RBRWBUG.mjs} +9 -7
- package/dist/{chunk-SIY6FDKJ.js → chunk-3RQ3FHJ7.js} +341 -316
- package/dist/{chunk-ELRZ2ZHM.mjs → chunk-4DRJA5ZK.mjs} +15 -17
- package/dist/{chunk-J3N24I7A.mjs → chunk-4F3UTDFE.mjs} +24 -6
- package/dist/{chunk-3CJFNG54.mjs → chunk-4HMMH4XS.mjs} +24 -11
- package/dist/{chunk-IG75YSX3.mjs → chunk-4MONGWU5.mjs} +4 -6
- package/dist/{chunk-CHBUNQIJ.mjs → chunk-4MREOFVE.mjs} +26 -9
- 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-TMON4MPO.js → chunk-5ALMTE35.js} +9 -7
- package/dist/{chunk-AUW7DCXL.js → chunk-5JYVN65W.js} +24 -6
- package/dist/{chunk-3MRP3XYI.js → chunk-5QLSTNA3.js} +13 -2
- package/dist/chunk-5SX2M3LU.mjs +319 -0
- package/dist/{chunk-FI53LYZ6.js → chunk-5UREMEDS.js} +24 -8
- package/dist/{chunk-MSHCPJIJ.mjs → chunk-6BOSSZM3.mjs} +8 -9
- package/dist/chunk-6LGCAGNG.js +312 -0
- package/dist/{chunk-A42OLED6.mjs → chunk-6REMGSLS.mjs} +35 -13
- package/dist/{chunk-PNAWOJ32.js → chunk-6S5QOTXZ.js} +14 -2
- package/dist/{chunk-PUZDW7NR.js → chunk-6SG2N4WF.js} +135 -21
- package/dist/{chunk-5XE5VBDS.mjs → chunk-6UIVNRAR.mjs} +15 -2
- package/dist/{chunk-F6IXIH6B.mjs → chunk-7RI5W465.mjs} +43 -30
- package/dist/{chunk-DCKBVRLI.js → chunk-7UZ7O7KX.js} +63 -16
- package/dist/{chunk-ONTRGV5T.js → chunk-7YI5TAPT.js} +8 -19
- package/dist/chunk-AI4V7L6K.mjs +230 -0
- package/dist/chunk-AQOXANET.mjs +222 -0
- package/dist/{chunk-YOAYDEWW.mjs → chunk-ATSI3UKS.mjs} +5 -21
- package/dist/{chunk-ZRHDNGWO.js → chunk-BR3WLDH7.js} +16 -2
- package/dist/{chunk-2Y5NIPHB.mjs → chunk-BRPOEVRT.mjs} +32 -3
- package/dist/{chunk-LRPPXU74.mjs → chunk-CR4QBH46.mjs} +47 -8
- package/dist/{chunk-7U6VWD4H.mjs → chunk-CSJGNEHR.mjs} +2 -2
- package/dist/{chunk-OZD75CLT.js → chunk-CXXOZLP4.js} +34 -24
- package/dist/{chunk-7QZ4XT2P.mjs → chunk-D4X3NBAI.mjs} +11 -11
- package/dist/{chunk-RQXY2MGX.mjs → chunk-D7UR526A.mjs} +231 -184
- package/dist/{chunk-CBYJXDW4.js → chunk-DBMC6FPU.js} +16 -4
- package/dist/{chunk-WQ4FOHOU.mjs → chunk-DEIVWO2D.mjs} +3 -5
- package/dist/{chunk-WNLUUD5N.mjs → chunk-DEQZZKY5.mjs} +20 -19
- package/dist/{chunk-ITRYKHQJ.js → chunk-DH4B2COV.js} +121 -47
- package/dist/{chunk-BONUUJU3.mjs → chunk-DJOFM2VO.mjs} +1 -8
- package/dist/chunk-DO3MVZZN.mjs +698 -0
- package/dist/{chunk-6GIJ7NFV.mjs → chunk-E355NVP7.mjs} +38 -19
- package/dist/{chunk-KQ5I7PRM.js → chunk-ENJMHEQU.js} +48 -9
- package/dist/{chunk-UHFHOTNI.js → chunk-FBIBHTBG.js} +8 -9
- package/dist/{chunk-P36GX65N.js → chunk-FCCHM2B4.js} +40 -4
- package/dist/{chunk-4LIDROT4.js → chunk-FFDK6PEP.js} +7 -4
- package/dist/{chunk-KYP7U6FK.js → chunk-FZHBVHQ6.js} +34 -25
- 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-GN3TSQWW.mjs → chunk-GOUSXJEY.mjs} +2 -2
- package/dist/{chunk-WVVXZKNI.js → chunk-GPAY5F7D.js} +14 -14
- package/dist/{chunk-KGSDDVRC.mjs → chunk-GQPKHMHA.mjs} +4 -4
- package/dist/{chunk-NKSYX4R7.mjs → chunk-GTDLZF7K.mjs} +2 -2
- package/dist/{chunk-2GQCFTD7.mjs → chunk-H4MPPCTB.mjs} +23 -4
- package/dist/{chunk-3ZNZLGQO.mjs → chunk-H7D7UBDC.mjs} +8 -9
- package/dist/{chunk-BBLVRLXT.js → chunk-HFGTJEQW.js} +301 -164
- package/dist/{chunk-GQFVVAEF.js → chunk-HVAG26CK.js} +5 -5
- package/dist/{chunk-L5AMVEQL.mjs → chunk-HWZSMV2M.mjs} +61 -19
- package/dist/{chunk-TC6JLEGZ.js → chunk-I5UB4FN3.js} +27 -10
- package/dist/{chunk-4U5HSR2H.js → chunk-I6VHGILW.js} +24 -13
- package/dist/{chunk-EOU6WZTS.js → chunk-I7OSNH5T.js} +34 -5
- package/dist/{chunk-M73NMNZX.js → chunk-IFB3OECJ.js} +18 -5
- package/dist/{chunk-Y5RQN5BO.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-I373B74W.js → chunk-KSXGH3FO.js} +105 -44
- package/dist/{chunk-X7JAYXPY.js → chunk-KVWSVDAJ.js} +4 -4
- package/dist/chunk-L3WPA2RP.js +25 -0
- package/dist/{chunk-NVEIVIAW.mjs → chunk-LACDTZTE.mjs} +134 -20
- package/dist/{chunk-WI4N5DD3.mjs → chunk-LAKPYMBZ.mjs} +17 -4
- package/dist/{chunk-6GU5NH5F.mjs → chunk-LBXNMCXN.mjs} +33 -5
- package/dist/{chunk-4LX5UGPQ.js → chunk-LJRCEB7F.js} +168 -121
- package/dist/{chunk-BJQIYELW.mjs → chunk-LOM6NNQK.mjs} +34 -21
- package/dist/{chunk-KXNWY2Q7.mjs → chunk-LUABLBKS.mjs} +308 -171
- package/dist/{chunk-F7H4ALKN.js → chunk-LZG24TDB.js} +8 -9
- package/dist/{chunk-K2TXT5HQ.js → chunk-M577W3TS.js} +101 -85
- package/dist/{chunk-UXUYCWQC.js → chunk-MOYZF62V.js} +34 -21
- package/dist/{chunk-6TR7JB6C.js → chunk-MQIVMK24.js} +4 -4
- package/dist/{chunk-DKT2EYVM.mjs → chunk-MV2JQ6XQ.mjs} +3 -6
- package/dist/{chunk-WMPCN7OF.mjs → chunk-MZCGQED3.mjs} +15 -3
- package/dist/{chunk-IGAMV6ML.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-6GYT3EZD.mjs → chunk-P2WQIVXD.mjs} +25 -14
- package/dist/{chunk-NMEVQPOD.js → chunk-PHAJXRGE.js} +2 -4
- package/dist/{chunk-WG3YS2QV.js → chunk-PQF5VLNX.js} +35 -13
- package/dist/chunk-PQOUWJAT.mjs +211 -0
- package/dist/{chunk-AW5M3EL4.js → chunk-PSCPLUGP.js} +63 -21
- package/dist/{chunk-ITVLIR7T.mjs → chunk-PZB24FST.mjs} +23 -25
- 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-5OHVTGHS.mjs → chunk-QKNORS26.mjs} +385 -319
- package/dist/{chunk-ZFMMAYSX.js → chunk-QLATA4UB.js} +4 -6
- 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-RF2BA2N6.js → chunk-RRO752KE.js} +11 -10
- package/dist/{chunk-2TZ3SBMU.mjs → chunk-S4NGDDAM.mjs} +120 -46
- package/dist/{chunk-EF5ZTNHX.js → chunk-SA3N2LUB.js} +37 -20
- package/dist/{chunk-M7HBWFQO.js → chunk-SFBSI3J7.js} +14 -1
- package/dist/{chunk-G5USITWF.js → chunk-SH4BZYXO.js} +27 -8
- package/dist/{chunk-RVO6R37N.mjs → chunk-SHDQJ5BJ.mjs} +1 -1
- package/dist/{chunk-N2JYU4JI.js → chunk-SHU7L4NM.js} +52 -2
- package/dist/{chunk-I2AUOICV.mjs → chunk-SI3P3V75.mjs} +19 -9
- 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-JLRRXRZO.js → chunk-SQONS5PH.js} +4 -7
- package/dist/{chunk-NQNHM4OL.mjs → chunk-SRC7JHME.mjs} +1 -1
- package/dist/{chunk-EEWHWEYO.js → chunk-SXTMVZ4W.js} +25 -12
- package/dist/{chunk-LMTUM3J3.js → chunk-SYJJKI7U.js} +37 -18
- package/dist/{chunk-3QPCQH62.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-TSJYAEFZ.js → chunk-TIDVBSXR.js} +371 -305
- package/dist/{chunk-ZJI2VLIL.js → chunk-TLDTBCT6.js} +15 -3
- package/dist/{chunk-XFPJYKBQ.js → chunk-TN7GMDME.js} +13 -9
- package/dist/{chunk-ZYJTHGQW.js → chunk-TO4SSBAJ.js} +26 -25
- package/dist/{chunk-N4PP3ENO.js → chunk-TPU6S7G7.js} +2 -2
- package/dist/{chunk-PU7KEYLP.mjs → chunk-TRXNHYWB.mjs} +9 -9
- package/dist/{chunk-H6NC6SBX.js → chunk-TVEO2CFD.js} +2 -2
- package/dist/{chunk-6QQBMZQ6.mjs → chunk-U2ZXZ2KQ.mjs} +74 -10
- package/dist/{chunk-FB34UWF7.mjs → chunk-U337RHJB.mjs} +103 -42
- package/dist/{chunk-XRNKHQTL.js → chunk-UEAXYZSE.js} +3 -2
- package/dist/{chunk-7ISEWLA3.js → chunk-UKQMF3JV.js} +21 -6
- package/dist/chunk-UQZ4RLTI.js +698 -0
- package/dist/{chunk-PXO2F2CS.mjs → chunk-V23KR23W.mjs} +47 -4
- package/dist/{chunk-6I6X255M.js → chunk-V3QEV3TL.js} +12 -12
- package/dist/{chunk-M5GSLKUX.mjs → chunk-VAIWWELW.mjs} +15 -3
- 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-WHYHLUXG.mjs +25 -0
- 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-SDZOVRVR.mjs → chunk-WT72F56O.mjs} +351 -326
- package/dist/{chunk-7Z64GEMN.js → chunk-WTASPL6V.js} +3 -1
- package/dist/{chunk-FNJDBFKM.mjs → chunk-WTIEJCRV.mjs} +12 -1
- package/dist/{chunk-V4JIZN3E.mjs → chunk-WYPTAUCX.mjs} +6 -17
- package/dist/{chunk-BFAZZUD6.js → chunk-XKMZ5AMS.js} +7 -23
- package/dist/{chunk-SKMZTW3K.js → chunk-XMD7CQQ2.js} +24 -26
- package/dist/{chunk-7DUHHRAU.mjs → chunk-Y5X3G2LD.mjs} +41 -5
- package/dist/{chunk-XATXFVKR.mjs → chunk-Y7K27DVV.mjs} +4 -3
- 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-LQT6ZGME.mjs → chunk-ZLP4XEAO.mjs} +36 -19
- package/dist/{chunk-QQFLRNI3.mjs → chunk-ZRZB3C5J.mjs} +18 -3
- package/dist/{chunk-YID7J6ZK.js → chunk-ZXVLZKLT.js} +1 -1
- package/dist/components/ActivityFeed.js +6 -5
- package/dist/components/ActivityFeed.mjs +5 -4
- 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.d.mts +3 -1
- package/dist/components/Cascader.d.ts +3 -1
- package/dist/components/Cascader.js +3 -2
- package/dist/components/Cascader.mjs +2 -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 +9 -7
- package/dist/components/ChatWindow.mjs +8 -6
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/Checkbox.mjs +3 -3
- package/dist/components/CheckboxGroup.js +3 -3
- package/dist/components/CheckboxGroup.mjs +2 -2
- package/dist/components/CodeEditor.js +2 -2
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/CommentThread.js +7 -5
- package/dist/components/CommentThread.mjs +6 -4
- package/dist/components/CropUpload.d.mts +6 -2
- package/dist/components/CropUpload.d.ts +6 -2
- package/dist/components/CropUpload.js +5 -5
- package/dist/components/CropUpload.mjs +4 -4
- package/dist/components/DataTableWithToolbar.d.mts +2 -3
- package/dist/components/DataTableWithToolbar.d.ts +2 -3
- package/dist/components/DataTableWithToolbar.js +13 -12
- package/dist/components/DataTableWithToolbar.mjs +12 -11
- package/dist/components/DatePicker.d.mts +1 -0
- package/dist/components/DatePicker.d.ts +1 -0
- package/dist/components/DatePicker.js +4 -2
- package/dist/components/DatePicker.mjs +3 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Drawer.mjs +2 -2
- package/dist/components/Empty.js +3 -2
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +3 -22
- package/dist/components/FileManager.d.ts +3 -22
- package/dist/components/FileManager.js +3 -2
- package/dist/components/FileManager.mjs +2 -1
- package/dist/components/FloatButton.js +2 -2
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.js +3 -2
- package/dist/components/Form.mjs +2 -1
- package/dist/components/FormItem.js +4 -3
- package/dist/components/FormItem.mjs +3 -2
- package/dist/components/FormWizard.js +4 -4
- package/dist/components/FormWizard.mjs +3 -3
- 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 +3 -1
- package/dist/components/ImageViewer.d.ts +3 -1
- package/dist/components/ImageViewer.js +3 -2
- package/dist/components/ImageViewer.mjs +2 -1
- package/dist/components/InfiniteScroll.d.mts +2 -0
- package/dist/components/InfiniteScroll.d.ts +2 -0
- package/dist/components/InfiniteScroll.js +3 -2
- package/dist/components/InfiniteScroll.mjs +2 -1
- package/dist/components/Input.js +4 -2
- package/dist/components/Input.mjs +3 -1
- package/dist/components/InputNumber.js +4 -2
- package/dist/components/InputNumber.mjs +3 -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 +6 -3
- package/dist/components/List.d.ts +6 -3
- package/dist/components/List.js +4 -3
- package/dist/components/List.mjs +3 -2
- package/dist/components/Loading.js +3 -2
- package/dist/components/Loading.mjs +2 -1
- package/dist/components/MarkdownEditor.js +3 -3
- package/dist/components/MarkdownEditor.mjs +2 -2
- package/dist/components/Mentions.js +2 -2
- package/dist/components/Mentions.mjs +1 -1
- package/dist/components/Menu.d.mts +8 -80
- package/dist/components/Menu.d.ts +8 -80
- package/dist/components/Menu.js +2 -2
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/MenuItem.d.mts +6 -2
- package/dist/components/MenuItem.d.ts +6 -2
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItemGroup.d.mts +6 -2
- package/dist/components/MenuItemGroup.d.ts +6 -2
- package/dist/components/MenuItemGroup.js +2 -2
- package/dist/components/MenuItemGroup.mjs +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 +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Notification.mjs +1 -1
- package/dist/components/NotificationCenter.js +7 -6
- package/dist/components/NotificationCenter.mjs +6 -5
- package/dist/components/NumberKeyboard.js +3 -2
- package/dist/components/NumberKeyboard.mjs +2 -1
- 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/Radio.js +4 -4
- package/dist/components/Radio.mjs +3 -3
- package/dist/components/RadioGroup.js +3 -3
- package/dist/components/RadioGroup.mjs +2 -2
- 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 +3 -3
- package/dist/components/RichTextEditor.mjs +2 -2
- 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.d.mts +3 -1
- package/dist/components/Select.d.ts +3 -1
- package/dist/components/Select.js +3 -2
- package/dist/components/Select.mjs +2 -1
- package/dist/components/Signature.d.mts +1 -0
- package/dist/components/Signature.d.ts +1 -0
- package/dist/components/Signature.js +3 -2
- package/dist/components/Signature.mjs +2 -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/Spotlight.js +4 -2
- package/dist/components/Spotlight.mjs +3 -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 +6 -2
- package/dist/components/SubMenu.d.ts +6 -2
- package/dist/components/SubMenu.js +2 -2
- package/dist/components/SubMenu.mjs +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 +3 -3
- package/dist/components/Table.d.ts +3 -3
- package/dist/components/Table.js +9 -9
- package/dist/components/Table.mjs +8 -8
- 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 +4 -3
- package/dist/components/Textarea.mjs +3 -2
- package/dist/components/TimePicker.d.mts +1 -0
- package/dist/components/TimePicker.d.ts +1 -0
- package/dist/components/TimePicker.js +4 -2
- package/dist/components/TimePicker.mjs +3 -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 -2
- package/dist/components/Tour.mjs +3 -1
- package/dist/components/Transfer.d.mts +3 -1
- package/dist/components/Transfer.d.ts +3 -1
- package/dist/components/Transfer.js +3 -2
- package/dist/components/Transfer.mjs +2 -1
- package/dist/components/Tree.d.mts +3 -1
- package/dist/components/Tree.d.ts +3 -1
- package/dist/components/Tree.js +4 -3
- package/dist/components/Tree.mjs +3 -2
- package/dist/components/TreeMapChart.js +4 -4
- package/dist/components/TreeMapChart.mjs +3 -3
- package/dist/components/TreeSelect.d.mts +3 -1
- package/dist/components/TreeSelect.d.ts +3 -1
- package/dist/components/TreeSelect.js +3 -2
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.js +3 -2
- package/dist/components/Upload.mjs +2 -1
- package/dist/components/VirtualList.js +2 -2
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +9 -3
- package/dist/components/VirtualTable.d.ts +9 -3
- package/dist/components/VirtualTable.js +3 -2
- package/dist/components/VirtualTable.mjs +2 -1
- package/dist/index.d.mts +81 -56
- package/dist/index.d.ts +81 -56
- package/dist/index.js +92 -92
- package/dist/index.mjs +93 -93
- package/dist/{types-CHmCMNEM.d.ts → types-0oVwMXtR.d.mts} +1 -1
- package/dist/{types-CHmCMNEM.d.mts → types-0oVwMXtR.d.ts} +1 -1
- package/dist/types-CcgZY0mv.d.mts +80 -0
- package/dist/types-CcgZY0mv.d.ts +80 -0
- package/package.json +6 -6
- package/dist/chunk-4GITZKAH.mjs +0 -153
- package/dist/chunk-4SO4LANY.js +0 -626
- package/dist/chunk-5EVHVZG5.js +0 -131
- package/dist/chunk-5HFHHFQS.mjs +0 -168
- package/dist/chunk-CDRQSKXT.mjs +0 -195
- package/dist/chunk-DLKUDB2R.js +0 -153
- package/dist/chunk-GYQ2DN6Z.mjs +0 -174
- package/dist/chunk-HR5GBE3P.js +0 -168
- package/dist/chunk-S5Y6UHAK.mjs +0 -131
- package/dist/chunk-T7KO6EVK.js +0 -174
- package/dist/chunk-UKGQ7256.js +0 -12
- package/dist/chunk-UQMPEMY7.mjs +0 -12
- package/dist/chunk-VNVGSPBI.mjs +0 -626
- package/dist/{chunk-UMZ3PMUJ.js → chunk-SXHCMZ6U.js} +2 -2
- package/dist/{chunk-BWDQZSAB.mjs → chunk-WTSG7QXK.mjs} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkL3WPA2RPjs = require('./chunk-L3WPA2RP.js');
|
|
4
4
|
|
|
5
5
|
// src/components/RichTextEditor.tsx
|
|
6
6
|
var _react = require('react');
|
|
@@ -25,7 +25,7 @@ var RichTextEditor = ({
|
|
|
25
25
|
value,
|
|
26
26
|
defaultValue = "",
|
|
27
27
|
placeholder,
|
|
28
|
-
mode
|
|
28
|
+
mode = "html",
|
|
29
29
|
toolbar,
|
|
30
30
|
height = 300,
|
|
31
31
|
readOnly = false,
|
|
@@ -37,31 +37,24 @@ var RichTextEditor = ({
|
|
|
37
37
|
}) => {
|
|
38
38
|
const editorRef = _react.useRef.call(void 0, null);
|
|
39
39
|
const engineRef = _react.useRef.call(void 0, null);
|
|
40
|
-
const [currentContent,
|
|
40
|
+
const [currentContent, setContent] = _chunkL3WPA2RPjs.useControlledState.call(void 0, value, defaultValue, onChange);
|
|
41
|
+
const isControlled = value !== void 0;
|
|
41
42
|
const [activeFormats, setActiveFormats] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
42
43
|
const toolbarItems = _nullishCoalesce(toolbar, () => ( _tigercatcore.defaultToolbar));
|
|
43
44
|
const empty = _tigercatcore.isContentEmpty.call(void 0, currentContent);
|
|
44
|
-
const onChangeRef = _react.useRef.call(void 0, onChange);
|
|
45
|
-
const setInternalValueRef = _react.useRef.call(void 0, setInternalValue);
|
|
46
|
-
const isControlledRef = _react.useRef.call(void 0, isControlled);
|
|
47
|
-
_react.useEffect.call(void 0, () => {
|
|
48
|
-
onChangeRef.current = onChange;
|
|
49
|
-
setInternalValueRef.current = setInternalValue;
|
|
50
|
-
isControlledRef.current = isControlled;
|
|
51
|
-
}, [onChange, setInternalValue, isControlled]);
|
|
52
45
|
_react.useEffect.call(void 0, () => {
|
|
53
46
|
if (!editorRef.current) return;
|
|
54
47
|
const factory = _nullishCoalesce(engine, () => ( _tigercatcore.builtinRichTextEngine));
|
|
55
48
|
const instance = factory.create({
|
|
56
49
|
element: editorRef.current,
|
|
57
50
|
initialValue: isControlled ? value : defaultValue,
|
|
51
|
+
mode,
|
|
58
52
|
readOnly,
|
|
59
53
|
disabled,
|
|
60
54
|
placeholder,
|
|
61
55
|
toolbar: toolbarItems,
|
|
62
56
|
notifyChange(html) {
|
|
63
|
-
|
|
64
|
-
_optionalChain([onChangeRef, 'access', _ => _.current, 'optionalCall', _2 => _2(html)]);
|
|
57
|
+
setContent(html);
|
|
65
58
|
},
|
|
66
59
|
notifyActiveFormats(next) {
|
|
67
60
|
setActiveFormats(next);
|
|
@@ -79,16 +72,12 @@ var RichTextEditor = ({
|
|
|
79
72
|
}
|
|
80
73
|
}, [value, isControlled]);
|
|
81
74
|
_react.useEffect.call(void 0, () => {
|
|
82
|
-
_optionalChain([engineRef, 'access',
|
|
75
|
+
_optionalChain([engineRef, 'access', _ => _.current, 'optionalAccess', _2 => _2.setReadOnly, 'call', _3 => _3(readOnly, disabled)]);
|
|
83
76
|
}, [readOnly, disabled]);
|
|
84
77
|
const execButtonAction = _react.useCallback.call(void 0,
|
|
85
78
|
(btn) => {
|
|
86
79
|
if (readOnly || disabled) return;
|
|
87
|
-
|
|
88
|
-
btn.action(editorRef.current);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
_optionalChain([engineRef, 'access', _6 => _6.current, 'optionalAccess', _7 => _7.exec, 'call', _8 => _8(btn.name)]);
|
|
80
|
+
_optionalChain([engineRef, 'access', _4 => _4.current, 'optionalAccess', _5 => _5.exec, 'call', _6 => _6(btn.name)]);
|
|
92
81
|
},
|
|
93
82
|
[readOnly, disabled]
|
|
94
83
|
);
|
|
@@ -0,0 +1,230 @@
|
|
|
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
|
+
isActivationKey,
|
|
10
|
+
resolveLocaleText,
|
|
11
|
+
mergeTigerLocale,
|
|
12
|
+
calculateVirtualRange,
|
|
13
|
+
calculateVirtualColumnRange,
|
|
14
|
+
getVirtualTableContainerClasses,
|
|
15
|
+
getVirtualTableRowClasses,
|
|
16
|
+
getVirtualRowKey,
|
|
17
|
+
getVirtualTableFixedInfo,
|
|
18
|
+
getVirtualTableFixedCellStyle,
|
|
19
|
+
getTableFixedCellClasses,
|
|
20
|
+
getTableFixedHeaderCellClasses,
|
|
21
|
+
getTableColgroup,
|
|
22
|
+
tableBaseClasses,
|
|
23
|
+
virtualTableHeaderClasses,
|
|
24
|
+
virtualTableHeaderCellClasses,
|
|
25
|
+
virtualTableCellClasses,
|
|
26
|
+
virtualTableEmptyClasses,
|
|
27
|
+
virtualTableLoadingClasses,
|
|
28
|
+
virtualTableFixedCellSelectedClasses
|
|
29
|
+
} from "@expcat/tigercat-core";
|
|
30
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
31
|
+
var DEFAULT_VIRTUAL_COLUMN_WIDTH = 150;
|
|
32
|
+
var VirtualTable = ({
|
|
33
|
+
data = [],
|
|
34
|
+
columns = [],
|
|
35
|
+
rowHeight = 48,
|
|
36
|
+
height = 400,
|
|
37
|
+
width = "auto",
|
|
38
|
+
overscan = 5,
|
|
39
|
+
stickyHeader = true,
|
|
40
|
+
virtualizeColumns = false,
|
|
41
|
+
rowKey,
|
|
42
|
+
rowClassName,
|
|
43
|
+
loading = false,
|
|
44
|
+
emptyText,
|
|
45
|
+
locale,
|
|
46
|
+
selectable = false,
|
|
47
|
+
selectedKeys = [],
|
|
48
|
+
striped = false,
|
|
49
|
+
bordered = false,
|
|
50
|
+
className,
|
|
51
|
+
onRowClick,
|
|
52
|
+
onSelect,
|
|
53
|
+
renderCell,
|
|
54
|
+
...rest
|
|
55
|
+
}) => {
|
|
56
|
+
const config = useTigerConfig();
|
|
57
|
+
const mergedLocale = useMemo(
|
|
58
|
+
() => mergeTigerLocale(config.locale, locale),
|
|
59
|
+
[config.locale, locale]
|
|
60
|
+
);
|
|
61
|
+
const containerRef = useRef(null);
|
|
62
|
+
const [scrollTop, setScrollTop] = useState(0);
|
|
63
|
+
const [scrollLeft, setScrollLeft] = useState(0);
|
|
64
|
+
const range = useMemo(
|
|
65
|
+
() => calculateVirtualRange(scrollTop, height, data.length, rowHeight, overscan),
|
|
66
|
+
[scrollTop, height, data.length, rowHeight, overscan]
|
|
67
|
+
);
|
|
68
|
+
const visibleData = useMemo(
|
|
69
|
+
() => data.slice(range.start, range.end),
|
|
70
|
+
[data, range.start, range.end]
|
|
71
|
+
);
|
|
72
|
+
const selectedSet = useMemo(() => new Set(selectedKeys), [selectedKeys]);
|
|
73
|
+
const onScroll = useCallback(() => {
|
|
74
|
+
if (containerRef.current) {
|
|
75
|
+
setScrollTop(containerRef.current.scrollTop);
|
|
76
|
+
setScrollLeft(containerRef.current.scrollLeft);
|
|
77
|
+
}
|
|
78
|
+
}, []);
|
|
79
|
+
const containerClasses = useMemo(
|
|
80
|
+
() => getVirtualTableContainerClasses(bordered, className),
|
|
81
|
+
[bordered, className]
|
|
82
|
+
);
|
|
83
|
+
const fixedInfo = useMemo(() => getVirtualTableFixedInfo(columns), [columns]);
|
|
84
|
+
const columnWidths = useMemo(
|
|
85
|
+
() => columns.map((c) => typeof c.width === "number" ? c.width : DEFAULT_VIRTUAL_COLUMN_WIDTH),
|
|
86
|
+
[columns]
|
|
87
|
+
);
|
|
88
|
+
const colVirtualActive = virtualizeColumns && !fixedInfo.hasFixedColumns && width !== "auto";
|
|
89
|
+
const colRange = useMemo(
|
|
90
|
+
() => colVirtualActive ? calculateVirtualColumnRange(scrollLeft, width, columnWidths) : void 0,
|
|
91
|
+
[colVirtualActive, scrollLeft, width, columnWidths]
|
|
92
|
+
);
|
|
93
|
+
const visibleColumns = colRange ? columns.slice(colRange.start, colRange.end) : columns;
|
|
94
|
+
const colIndexOffset = colRange ? colRange.start : 0;
|
|
95
|
+
const colgroupEntries = useMemo(
|
|
96
|
+
() => fixedInfo.hasFixedColumns ? getTableColgroup({
|
|
97
|
+
columns: visibleColumns,
|
|
98
|
+
size: "md",
|
|
99
|
+
hasSelectionColumn: false,
|
|
100
|
+
expand: false
|
|
101
|
+
}) : [],
|
|
102
|
+
[fixedInfo.hasFixedColumns, visibleColumns]
|
|
103
|
+
);
|
|
104
|
+
const resolveRowClassName = (row, index) => typeof rowClassName === "function" ? rowClassName(row, index) : rowClassName;
|
|
105
|
+
const bottomHeight = Math.max(0, range.totalHeight - range.end * rowHeight);
|
|
106
|
+
return /* @__PURE__ */ jsxs(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
ref: containerRef,
|
|
110
|
+
className: classNames(
|
|
111
|
+
containerClasses,
|
|
112
|
+
rest.className
|
|
113
|
+
),
|
|
114
|
+
style: {
|
|
115
|
+
height: `${height}px`,
|
|
116
|
+
...width !== "auto" ? { width: `${width}px` } : {}
|
|
117
|
+
},
|
|
118
|
+
onScroll,
|
|
119
|
+
role: "grid",
|
|
120
|
+
"aria-rowcount": data.length,
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ jsxs("table", { className: classNames(tableBaseClasses, "table-fixed"), children: [
|
|
123
|
+
colgroupEntries.length > 0 && /* @__PURE__ */ jsx("colgroup", { children: colgroupEntries.map((entry) => /* @__PURE__ */ jsx(
|
|
124
|
+
"col",
|
|
125
|
+
{
|
|
126
|
+
"data-tiger-table-col": entry.key,
|
|
127
|
+
style: entry.width ? { width: entry.width } : void 0
|
|
128
|
+
},
|
|
129
|
+
entry.key
|
|
130
|
+
)) }),
|
|
131
|
+
/* @__PURE__ */ jsx("thead", { className: stickyHeader ? virtualTableHeaderClasses : void 0, children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
132
|
+
colRange && colRange.leftPad > 0 && /* @__PURE__ */ jsx("th", { "aria-hidden": true, style: { width: `${colRange.leftPad}px`, padding: 0 } }),
|
|
133
|
+
visibleColumns.map((col) => {
|
|
134
|
+
const widthStyle = col.width ? { width: typeof col.width === "number" ? `${col.width}px` : col.width } : {};
|
|
135
|
+
const stickyStyle = getVirtualTableFixedCellStyle(col.key, fixedInfo);
|
|
136
|
+
return /* @__PURE__ */ jsx(
|
|
137
|
+
"th",
|
|
138
|
+
{
|
|
139
|
+
className: classNames(
|
|
140
|
+
virtualTableHeaderCellClasses,
|
|
141
|
+
getTableFixedHeaderCellClasses({
|
|
142
|
+
view: "virtual-table",
|
|
143
|
+
column: col,
|
|
144
|
+
stickyHeader,
|
|
145
|
+
fixedInfo
|
|
146
|
+
})
|
|
147
|
+
),
|
|
148
|
+
style: { ...widthStyle, ...stickyStyle },
|
|
149
|
+
children: col.title ?? ""
|
|
150
|
+
},
|
|
151
|
+
col.key
|
|
152
|
+
);
|
|
153
|
+
}),
|
|
154
|
+
colRange && colRange.rightPad > 0 && /* @__PURE__ */ jsx("th", { "aria-hidden": true, style: { width: `${colRange.rightPad}px`, padding: 0 } })
|
|
155
|
+
] }) }),
|
|
156
|
+
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
157
|
+
/* @__PURE__ */ jsx("tr", { style: { height: `${range.offsetTop}px` }, "aria-hidden": true }),
|
|
158
|
+
visibleData.map((row, localIdx) => {
|
|
159
|
+
const globalIdx = range.start + localIdx;
|
|
160
|
+
const key = getVirtualRowKey(row, globalIdx, rowKey);
|
|
161
|
+
const isSelected = selectedSet.has(key);
|
|
162
|
+
const isInteractive = !!onRowClick || selectable;
|
|
163
|
+
const activate = () => {
|
|
164
|
+
onRowClick?.(row, globalIdx);
|
|
165
|
+
if (selectable) onSelect?.(key, row, globalIdx);
|
|
166
|
+
};
|
|
167
|
+
return /* @__PURE__ */ jsxs(
|
|
168
|
+
"tr",
|
|
169
|
+
{
|
|
170
|
+
className: classNames(
|
|
171
|
+
getVirtualTableRowClasses(globalIdx, striped, isSelected),
|
|
172
|
+
resolveRowClassName(row, globalIdx)
|
|
173
|
+
),
|
|
174
|
+
"aria-rowindex": globalIdx + 2,
|
|
175
|
+
"aria-selected": selectable ? isSelected : void 0,
|
|
176
|
+
tabIndex: isInteractive ? 0 : void 0,
|
|
177
|
+
onClick: isInteractive ? activate : void 0,
|
|
178
|
+
onKeyDown: isInteractive ? (e) => {
|
|
179
|
+
if (isActivationKey(e)) {
|
|
180
|
+
e.preventDefault();
|
|
181
|
+
activate();
|
|
182
|
+
}
|
|
183
|
+
} : void 0,
|
|
184
|
+
children: [
|
|
185
|
+
colRange && colRange.leftPad > 0 && /* @__PURE__ */ jsx("td", { "aria-hidden": true, style: { width: `${colRange.leftPad}px`, padding: 0 } }),
|
|
186
|
+
visibleColumns.map((col, colIdx) => /* @__PURE__ */ jsx(
|
|
187
|
+
"td",
|
|
188
|
+
{
|
|
189
|
+
"aria-colindex": colIndexOffset + colIdx + 1,
|
|
190
|
+
className: classNames(
|
|
191
|
+
virtualTableCellClasses,
|
|
192
|
+
getTableFixedCellClasses({
|
|
193
|
+
view: "virtual-table",
|
|
194
|
+
column: col,
|
|
195
|
+
record: row,
|
|
196
|
+
rowIndex: globalIdx,
|
|
197
|
+
striped,
|
|
198
|
+
stripedActive: striped && globalIdx % 2 === 1,
|
|
199
|
+
selected: isSelected,
|
|
200
|
+
hoverable: true,
|
|
201
|
+
fixedInfo,
|
|
202
|
+
selectedClassName: virtualTableFixedCellSelectedClasses
|
|
203
|
+
})
|
|
204
|
+
),
|
|
205
|
+
style: getVirtualTableFixedCellStyle(col.key, fixedInfo),
|
|
206
|
+
children: renderCell ? renderCell(row[col.key], row, col) : String(row[col.key] ?? "")
|
|
207
|
+
},
|
|
208
|
+
col.key
|
|
209
|
+
)),
|
|
210
|
+
colRange && colRange.rightPad > 0 && /* @__PURE__ */ jsx("td", { "aria-hidden": true, style: { width: `${colRange.rightPad}px`, padding: 0 } })
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
key
|
|
214
|
+
);
|
|
215
|
+
}),
|
|
216
|
+
bottomHeight > 0 && /* @__PURE__ */ jsx("tr", { style: { height: `${bottomHeight}px` }, "aria-hidden": true })
|
|
217
|
+
] })
|
|
218
|
+
] }),
|
|
219
|
+
data.length === 0 && !loading && /* @__PURE__ */ jsx("div", { className: virtualTableEmptyClasses, children: resolveLocaleText("No data", emptyText, mergedLocale?.common?.emptyText) }),
|
|
220
|
+
loading && /* @__PURE__ */ jsx("div", { className: virtualTableLoadingClasses, children: resolveLocaleText("Loading...", mergedLocale?.common?.loadingText) })
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
};
|
|
225
|
+
var VirtualTable_default = VirtualTable;
|
|
226
|
+
|
|
227
|
+
export {
|
|
228
|
+
VirtualTable,
|
|
229
|
+
VirtualTable_default
|
|
230
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChartTooltip
|
|
3
|
+
} from "./chunk-O6YIPNXX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ChartCanvas
|
|
6
|
+
} from "./chunk-DKNVSQSV.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/GaugeChart.tsx
|
|
9
|
+
import React, { useId, useMemo, useState, useRef, useEffect } from "react";
|
|
10
|
+
import {
|
|
11
|
+
classNames,
|
|
12
|
+
createGaugeArcPath,
|
|
13
|
+
createGaugeNeedlePath,
|
|
14
|
+
valueToGaugeAngle,
|
|
15
|
+
computeGaugeTicks,
|
|
16
|
+
getChartInnerRect,
|
|
17
|
+
chartAxisTickTextClasses,
|
|
18
|
+
getStableChartGradientPrefix,
|
|
19
|
+
createGaugeAnimation
|
|
20
|
+
} from "@expcat/tigercat-core";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
var GaugeChart = ({
|
|
23
|
+
width = 280,
|
|
24
|
+
height = 200,
|
|
25
|
+
padding = 24,
|
|
26
|
+
value,
|
|
27
|
+
min = 0,
|
|
28
|
+
max = 100,
|
|
29
|
+
startAngle = 135,
|
|
30
|
+
endAngle = 405,
|
|
31
|
+
arcWidth = 20,
|
|
32
|
+
showTicks = true,
|
|
33
|
+
tickCount = 5,
|
|
34
|
+
valueFormatter,
|
|
35
|
+
tooltipFormatter,
|
|
36
|
+
label,
|
|
37
|
+
segments,
|
|
38
|
+
trackColor = "var(--tiger-border,#e5e7eb)",
|
|
39
|
+
color = "var(--tiger-primary,#2563eb)",
|
|
40
|
+
gradient = false,
|
|
41
|
+
showTooltip = true,
|
|
42
|
+
title: chartTitle,
|
|
43
|
+
desc,
|
|
44
|
+
className
|
|
45
|
+
}) => {
|
|
46
|
+
const innerRect = useMemo(
|
|
47
|
+
() => getChartInnerRect(width, height, padding),
|
|
48
|
+
[width, height, padding]
|
|
49
|
+
);
|
|
50
|
+
const radius = useMemo(
|
|
51
|
+
() => Math.min(innerRect.width, innerRect.height) / 2 - 4,
|
|
52
|
+
[innerRect.width, innerRect.height]
|
|
53
|
+
);
|
|
54
|
+
const cx = innerRect.width / 2;
|
|
55
|
+
const cy = innerRect.height / 2;
|
|
56
|
+
const needleAngle = useMemo(
|
|
57
|
+
() => valueToGaugeAngle(value, min, max, startAngle, endAngle),
|
|
58
|
+
[value, min, max, startAngle, endAngle]
|
|
59
|
+
);
|
|
60
|
+
const [animatedAngle, setAnimatedAngle] = useState(needleAngle);
|
|
61
|
+
const prevAngleRef = useRef(needleAngle);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
const from = prevAngleRef.current;
|
|
64
|
+
const to = needleAngle;
|
|
65
|
+
prevAngleRef.current = to;
|
|
66
|
+
if (from === to) return;
|
|
67
|
+
const ctrl = createGaugeAnimation({
|
|
68
|
+
from,
|
|
69
|
+
to,
|
|
70
|
+
onUpdate: (v) => setAnimatedAngle(v)
|
|
71
|
+
});
|
|
72
|
+
return () => ctrl.stop();
|
|
73
|
+
}, [needleAngle]);
|
|
74
|
+
const ticks = useMemo(
|
|
75
|
+
() => showTicks ? computeGaugeTicks(cx, cy, radius, min, max, startAngle, endAngle, tickCount) : [],
|
|
76
|
+
[showTicks, cx, cy, radius, min, max, startAngle, endAngle, tickCount]
|
|
77
|
+
);
|
|
78
|
+
const trackPath = createGaugeArcPath(cx, cy, radius, startAngle, endAngle, arcWidth);
|
|
79
|
+
const valuePath = animatedAngle > startAngle ? createGaugeArcPath(cx, cy, radius, startAngle, animatedAngle, arcWidth) : null;
|
|
80
|
+
const needlePath = createGaugeNeedlePath(cx, cy, radius - arcWidth - 6, animatedAngle);
|
|
81
|
+
const formattedValue = valueFormatter ? valueFormatter(value) : `${value}`;
|
|
82
|
+
const [tooltip, setTooltip] = useState({
|
|
83
|
+
visible: false,
|
|
84
|
+
x: 0,
|
|
85
|
+
y: 0
|
|
86
|
+
});
|
|
87
|
+
const tooltipContent = tooltipFormatter ? tooltipFormatter(value) : label ? `${label}: ${formattedValue}` : formattedValue;
|
|
88
|
+
const handleTooltipMove = (e) => {
|
|
89
|
+
if (!showTooltip) return;
|
|
90
|
+
setTooltip({ visible: true, x: e.clientX, y: e.clientY });
|
|
91
|
+
};
|
|
92
|
+
const handleTooltipLeave = () => setTooltip((t) => ({ ...t, visible: false }));
|
|
93
|
+
const gradientId = useId();
|
|
94
|
+
const gradientPrefix = useMemo(
|
|
95
|
+
() => getStableChartGradientPrefix("gauge", gradientId),
|
|
96
|
+
[gradientId]
|
|
97
|
+
);
|
|
98
|
+
const valueGradientId = `${gradientPrefix}-value`;
|
|
99
|
+
const wrapperRef = useRef(null);
|
|
100
|
+
const handleTooltipFocus = () => {
|
|
101
|
+
if (!showTooltip) return;
|
|
102
|
+
const rect = wrapperRef.current?.getBoundingClientRect();
|
|
103
|
+
if (rect)
|
|
104
|
+
setTooltip({ visible: true, x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 });
|
|
105
|
+
};
|
|
106
|
+
return /* @__PURE__ */ jsxs(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
ref: wrapperRef,
|
|
110
|
+
className: "inline-block relative",
|
|
111
|
+
tabIndex: showTooltip ? 0 : void 0,
|
|
112
|
+
role: "img",
|
|
113
|
+
"aria-label": label ? `${label}: ${formattedValue}` : formattedValue,
|
|
114
|
+
onMouseMove: handleTooltipMove,
|
|
115
|
+
onMouseLeave: handleTooltipLeave,
|
|
116
|
+
onFocus: handleTooltipFocus,
|
|
117
|
+
onBlur: handleTooltipLeave,
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsxs(
|
|
120
|
+
ChartCanvas,
|
|
121
|
+
{
|
|
122
|
+
width,
|
|
123
|
+
height,
|
|
124
|
+
padding,
|
|
125
|
+
title: chartTitle,
|
|
126
|
+
desc,
|
|
127
|
+
className: classNames(className),
|
|
128
|
+
children: [
|
|
129
|
+
gradient && !segments && valuePath && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: valueGradientId, x1: 0, y1: 0, x2: 0, y2: 1, children: [
|
|
130
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: color, stopOpacity: 1 }),
|
|
131
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: color, stopOpacity: 0.55 })
|
|
132
|
+
] }) }),
|
|
133
|
+
/* @__PURE__ */ jsx("path", { d: trackPath, fill: trackColor, strokeWidth: 0 }),
|
|
134
|
+
segments ? segments.map((seg, i) => {
|
|
135
|
+
const sStart = valueToGaugeAngle(seg.range[0], min, max, startAngle, endAngle);
|
|
136
|
+
const sEnd = valueToGaugeAngle(seg.range[1], min, max, startAngle, endAngle);
|
|
137
|
+
return /* @__PURE__ */ jsx(
|
|
138
|
+
"path",
|
|
139
|
+
{
|
|
140
|
+
d: createGaugeArcPath(cx, cy, radius, sStart, sEnd, arcWidth),
|
|
141
|
+
fill: seg.color,
|
|
142
|
+
strokeWidth: 0
|
|
143
|
+
},
|
|
144
|
+
`seg-${i}`
|
|
145
|
+
);
|
|
146
|
+
}) : valuePath && /* @__PURE__ */ jsx(
|
|
147
|
+
"path",
|
|
148
|
+
{
|
|
149
|
+
d: valuePath,
|
|
150
|
+
fill: gradient ? `url(#${valueGradientId})` : color,
|
|
151
|
+
strokeWidth: 0
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
ticks.map((tick, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
155
|
+
/* @__PURE__ */ jsx(
|
|
156
|
+
"line",
|
|
157
|
+
{
|
|
158
|
+
x1: tick.x1,
|
|
159
|
+
y1: tick.y1,
|
|
160
|
+
x2: tick.x2,
|
|
161
|
+
y2: tick.y2,
|
|
162
|
+
stroke: "var(--tiger-text-secondary,#6b7280)",
|
|
163
|
+
strokeWidth: 1
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
"text",
|
|
168
|
+
{
|
|
169
|
+
x: tick.x2 + (tick.x2 - tick.x1) * 1.5,
|
|
170
|
+
y: tick.y2 + (tick.y2 - tick.y1) * 1.5,
|
|
171
|
+
className: chartAxisTickTextClasses,
|
|
172
|
+
textAnchor: "middle",
|
|
173
|
+
dominantBaseline: "middle",
|
|
174
|
+
style: { fontSize: "10px" },
|
|
175
|
+
children: tick.label
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] }, `tick-${i}`)),
|
|
179
|
+
/* @__PURE__ */ jsx("path", { d: needlePath, fill: "var(--tiger-text,#374151)" }),
|
|
180
|
+
/* @__PURE__ */ jsx("circle", { cx, cy, r: 5, fill: "var(--tiger-text,#374151)" }),
|
|
181
|
+
/* @__PURE__ */ jsx(
|
|
182
|
+
"text",
|
|
183
|
+
{
|
|
184
|
+
x: cx,
|
|
185
|
+
y: cy + radius * 0.35,
|
|
186
|
+
className: "fill-[color:var(--tiger-text,#374151)] text-lg font-semibold tabular-nums",
|
|
187
|
+
textAnchor: "middle",
|
|
188
|
+
dominantBaseline: "middle",
|
|
189
|
+
children: formattedValue
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
label && /* @__PURE__ */ jsx(
|
|
193
|
+
"text",
|
|
194
|
+
{
|
|
195
|
+
x: cx,
|
|
196
|
+
y: cy + radius * 0.35 + 20,
|
|
197
|
+
className: chartAxisTickTextClasses,
|
|
198
|
+
textAnchor: "middle",
|
|
199
|
+
dominantBaseline: "middle",
|
|
200
|
+
children: label
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
showTooltip && /* @__PURE__ */ jsx(
|
|
207
|
+
ChartTooltip,
|
|
208
|
+
{
|
|
209
|
+
content: tooltipContent,
|
|
210
|
+
visible: tooltip.visible && tooltipContent !== "",
|
|
211
|
+
x: tooltip.x,
|
|
212
|
+
y: tooltip.y
|
|
213
|
+
}
|
|
214
|
+
)
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export {
|
|
221
|
+
GaugeChart
|
|
222
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useControlledState
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WHYHLUXG.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/MarkdownEditor.tsx
|
|
6
6
|
import { useCallback, useMemo, useRef } from "react";
|
|
@@ -53,11 +53,8 @@ var MarkdownEditor = ({
|
|
|
53
53
|
...restProps
|
|
54
54
|
}) => {
|
|
55
55
|
const textareaRef = useRef(null);
|
|
56
|
-
const [currentValue,
|
|
57
|
-
|
|
58
|
-
defaultValue
|
|
59
|
-
);
|
|
60
|
-
const [currentMode, setInternalMode, isModeControlled] = useControlledState(mode, defaultMode);
|
|
56
|
+
const [currentValue, commitValue] = useControlledState(value, defaultValue, onChange);
|
|
57
|
+
const [currentMode, commitMode] = useControlledState(mode, defaultMode, onModeChange);
|
|
61
58
|
const toolbarItems = useMemo(
|
|
62
59
|
() => toolbar === false ? [] : toolbar ?? defaultMarkdownToolbar,
|
|
63
60
|
[toolbar]
|
|
@@ -70,20 +67,6 @@ var MarkdownEditor = ({
|
|
|
70
67
|
const parsedHeight = parseMarkdownHeight(height);
|
|
71
68
|
return { ...parsedHeight ? { height: parsedHeight } : {}, ...style };
|
|
72
69
|
}, [height, style]);
|
|
73
|
-
const commitValue = useCallback(
|
|
74
|
-
(nextValue) => {
|
|
75
|
-
if (!isValueControlled) setInternalValue(nextValue);
|
|
76
|
-
onChange?.(nextValue);
|
|
77
|
-
},
|
|
78
|
-
[isValueControlled, onChange, setInternalValue]
|
|
79
|
-
);
|
|
80
|
-
const commitMode = useCallback(
|
|
81
|
-
(nextMode) => {
|
|
82
|
-
if (!isModeControlled) setInternalMode(nextMode);
|
|
83
|
-
onModeChange?.(nextMode);
|
|
84
|
-
},
|
|
85
|
-
[isModeControlled, onModeChange, setInternalMode]
|
|
86
|
-
);
|
|
87
70
|
const applyToolbarButton = useCallback(
|
|
88
71
|
(button) => {
|
|
89
72
|
if (readOnly || disabled) return;
|
|
@@ -137,7 +120,8 @@ var MarkdownEditor = ({
|
|
|
137
120
|
),
|
|
138
121
|
role: "region",
|
|
139
122
|
"aria-label": "Markdown preview",
|
|
140
|
-
dangerouslySetInnerHTML: { __html:
|
|
123
|
+
...currentValue ? { dangerouslySetInnerHTML: { __html: previewHtml } } : {},
|
|
124
|
+
children: currentValue ? null : placeholder
|
|
141
125
|
}
|
|
142
126
|
);
|
|
143
127
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
4
|
+
|
|
5
|
+
// src/components/Empty.tsx
|
|
2
6
|
var _react = require('react');
|
|
3
7
|
|
|
4
8
|
|
|
@@ -9,6 +13,7 @@ var _react = require('react');
|
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
|
|
16
|
+
|
|
12
17
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
13
18
|
var _jsxruntime = require('react/jsx-runtime');
|
|
14
19
|
var Empty = ({
|
|
@@ -19,9 +24,18 @@ var Empty = ({
|
|
|
19
24
|
extra,
|
|
20
25
|
className,
|
|
21
26
|
children,
|
|
27
|
+
locale,
|
|
22
28
|
...props
|
|
23
29
|
}) => {
|
|
24
|
-
const
|
|
30
|
+
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
31
|
+
const mergedLocale = _react.useMemo.call(void 0,
|
|
32
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
33
|
+
[config.locale, locale]
|
|
34
|
+
);
|
|
35
|
+
const descText = _react.useMemo.call(void 0,
|
|
36
|
+
() => _nullishCoalesce(description, () => ( _tigercatcore.getEmptyDescription.call(void 0, preset, mergedLocale))),
|
|
37
|
+
[description, preset, mergedLocale]
|
|
38
|
+
);
|
|
25
39
|
const wrapperClasses = _react.useMemo.call(void 0, () => _tigercatcore.classNames.call(void 0, _tigercatcore.emptyBaseClasses, className), [className]);
|
|
26
40
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: wrapperClasses, ...props, children: [
|
|
27
41
|
showImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.emptyImageClasses, children: image !== void 0 ? image : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-6QML6T3Y.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ChartLegend
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZG2W4HS5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ChartSeries
|
|
9
9
|
} from "./chunk-SDLMB34Y.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ChartTooltip
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O6YIPNXX.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ChartCanvas
|
|
15
15
|
} from "./chunk-DKNVSQSV.mjs";
|
|
@@ -158,6 +158,18 @@ var RadarChart = ({
|
|
|
158
158
|
setHoveredPoint(null);
|
|
159
159
|
handleHoverLeave();
|
|
160
160
|
}, [handleHoverLeave]);
|
|
161
|
+
const showPointTooltipFromElement = useCallback(
|
|
162
|
+
(el, seriesIndex, pointIndex) => {
|
|
163
|
+
if (!hoverable) return;
|
|
164
|
+
const rect = el.getBoundingClientRect();
|
|
165
|
+
setHoveredPoint({ seriesIndex, pointIndex });
|
|
166
|
+
handleHoverEnter(seriesIndex, {
|
|
167
|
+
clientX: rect.left + rect.width / 2,
|
|
168
|
+
clientY: rect.top + rect.height / 2
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
[hoverable, handleHoverEnter]
|
|
172
|
+
);
|
|
161
173
|
const innerRect = useMemo(
|
|
162
174
|
() => getChartInnerRect(width, height, padding),
|
|
163
175
|
[width, height, padding]
|
|
@@ -562,13 +574,30 @@ var RadarChart = ({
|
|
|
562
574
|
showTooltip && hoverable ? "cursor-pointer" : void 0,
|
|
563
575
|
"transition-[r] duration-150 ease-out"
|
|
564
576
|
),
|
|
577
|
+
role: showTooltip && hoverable ? "button" : "img",
|
|
578
|
+
"aria-label": point.data.label ?? String(point.data.value),
|
|
579
|
+
tabIndex: showTooltip && hoverable ? 0 : void 0,
|
|
565
580
|
"data-radar-point": "true",
|
|
566
581
|
"data-series-index": seriesIndex,
|
|
567
582
|
"data-series-key": item.seriesKey,
|
|
568
583
|
"data-point-index": point.index,
|
|
569
584
|
onMouseEnter: showTooltip && hoverable ? (e) => handlePointEnter(seriesIndex, point.index, e) : void 0,
|
|
570
585
|
onMouseMove: showTooltip && hoverable ? handlePointMove : void 0,
|
|
571
|
-
onMouseLeave: showTooltip && hoverable ? handlePointLeave : void 0
|
|
586
|
+
onMouseLeave: showTooltip && hoverable ? handlePointLeave : void 0,
|
|
587
|
+
onFocus: showTooltip && hoverable ? (e) => showPointTooltipFromElement(e.currentTarget, seriesIndex, point.index) : void 0,
|
|
588
|
+
onBlur: showTooltip && hoverable ? handlePointLeave : void 0,
|
|
589
|
+
onKeyDown: showTooltip && hoverable ? (e) => {
|
|
590
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
591
|
+
e.preventDefault();
|
|
592
|
+
showPointTooltipFromElement(
|
|
593
|
+
e.currentTarget,
|
|
594
|
+
seriesIndex,
|
|
595
|
+
point.index
|
|
596
|
+
);
|
|
597
|
+
} else if (e.key === "Escape") {
|
|
598
|
+
handlePointLeave();
|
|
599
|
+
}
|
|
600
|
+
} : void 0
|
|
572
601
|
},
|
|
573
602
|
`point-${item.seriesKey}-${point.index}`
|
|
574
603
|
);
|