@expcat/tigercat-react 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WV5XHYW6.js → chunk-23XPDNCA.js} +6 -4
- package/dist/{chunk-UAM3RQY4.js → chunk-24NDLFPK.js} +22 -28
- package/dist/{chunk-NMKFR435.js → chunk-2LKX6CE7.js} +7 -4
- package/dist/{chunk-BEZO5IE4.js → chunk-2PV3F47T.js} +2 -2
- package/dist/{chunk-ANN5P7TJ.js → chunk-2ZA4MUO2.js} +72 -29
- package/dist/{chunk-H4AR4GXH.js → chunk-3NVMKDMH.js} +1 -8
- package/dist/{chunk-7CHTTM6D.js → chunk-3RQ3FHJ7.js} +2 -2
- package/dist/{chunk-ELRZ2ZHM.mjs → chunk-4DRJA5ZK.mjs} +15 -17
- package/dist/{chunk-J3N24I7A.mjs → chunk-4F3UTDFE.mjs} +24 -6
- package/dist/{chunk-56CTXEJS.mjs → chunk-4HMMH4XS.mjs} +24 -11
- package/dist/{chunk-ZQSMJS2Q.mjs → chunk-4MREOFVE.mjs} +3 -3
- package/dist/{chunk-EEF26RBA.mjs → chunk-4SU6D2E7.mjs} +15 -3
- package/dist/{chunk-ZZAR4IDS.js → chunk-4TPRBVW7.js} +19 -2
- package/dist/{chunk-NSEO2B74.mjs → chunk-4V5RL25M.mjs} +8 -5
- package/dist/{chunk-AUW7DCXL.js → chunk-5JYVN65W.js} +24 -6
- package/dist/{chunk-YRVAF2ID.js → chunk-5QLSTNA3.js} +7 -1
- package/dist/chunk-5SX2M3LU.mjs +319 -0
- package/dist/{chunk-FI53LYZ6.js → chunk-5UREMEDS.js} +24 -8
- package/dist/chunk-6LGCAGNG.js +312 -0
- package/dist/{chunk-KED5S2WG.mjs → chunk-6REMGSLS.mjs} +22 -11
- package/dist/{chunk-PNAWOJ32.js → chunk-6S5QOTXZ.js} +14 -2
- package/dist/{chunk-4AMSYFYC.js → chunk-6SG2N4WF.js} +7 -7
- package/dist/{chunk-YSGM22AH.mjs → chunk-6UIVNRAR.mjs} +7 -4
- package/dist/{chunk-IZGXDHPB.mjs → chunk-7RI5W465.mjs} +19 -25
- package/dist/{chunk-DCKBVRLI.js → chunk-7UZ7O7KX.js} +63 -16
- package/dist/{chunk-WZUADPYB.js → chunk-7YI5TAPT.js} +2 -5
- package/dist/chunk-AI4V7L6K.mjs +230 -0
- package/dist/chunk-AQOXANET.mjs +222 -0
- package/dist/{chunk-HHMYERHY.mjs → chunk-ATSI3UKS.mjs} +2 -1
- package/dist/{chunk-ZRHDNGWO.js → chunk-BR3WLDH7.js} +16 -2
- package/dist/{chunk-2Y5NIPHB.mjs → chunk-BRPOEVRT.mjs} +32 -3
- package/dist/{chunk-I7FEGKX2.mjs → chunk-CR4QBH46.mjs} +36 -11
- package/dist/{chunk-7U6VWD4H.mjs → chunk-CSJGNEHR.mjs} +2 -2
- package/dist/{chunk-ANBNSUSR.js → chunk-CXXOZLP4.js} +31 -21
- package/dist/{chunk-DVEK5SO6.mjs → chunk-D4X3NBAI.mjs} +8 -3
- package/dist/{chunk-QIL24WZD.mjs → chunk-DEQZZKY5.mjs} +12 -7
- package/dist/{chunk-TEYL5X56.js → chunk-DH4B2COV.js} +105 -36
- package/dist/{chunk-BONUUJU3.mjs → chunk-DJOFM2VO.mjs} +1 -8
- package/dist/{chunk-SQTOVSDU.mjs → chunk-DO3MVZZN.mjs} +12 -6
- package/dist/{chunk-SDZKL3IB.mjs → chunk-E355NVP7.mjs} +35 -14
- package/dist/{chunk-CNNEUJR2.js → chunk-ENJMHEQU.js} +44 -19
- package/dist/{chunk-BRA3PO53.js → chunk-FBIBHTBG.js} +2 -2
- package/dist/{chunk-P36GX65N.js → chunk-FCCHM2B4.js} +40 -4
- package/dist/{chunk-4LIDROT4.js → chunk-FFDK6PEP.js} +7 -4
- package/dist/{chunk-R2KUNFDN.mjs → chunk-GA4YOE57.mjs} +2 -2
- package/dist/{chunk-3E76U2RG.js → chunk-GADCSCH2.js} +33 -5
- package/dist/{chunk-JOB47R6Q.mjs → chunk-GCOA4AO6.mjs} +72 -29
- package/dist/{chunk-M6YXUNOU.mjs → chunk-GOUSXJEY.mjs} +2 -2
- package/dist/{chunk-GDPU5MYA.js → chunk-GPAY5F7D.js} +11 -6
- package/dist/{chunk-TNTOSFGN.mjs → chunk-GQPKHMHA.mjs} +1 -1
- package/dist/{chunk-NKSYX4R7.mjs → chunk-GTDLZF7K.mjs} +2 -2
- package/dist/{chunk-OXQOKKTP.mjs → chunk-H7D7UBDC.mjs} +2 -2
- package/dist/{chunk-KYNWNTGO.js → chunk-HFGTJEQW.js} +82 -29
- package/dist/{chunk-J6OZWT3P.js → chunk-HVAG26CK.js} +3 -3
- package/dist/{chunk-SLEXEH7R.mjs → chunk-HWZSMV2M.mjs} +3 -11
- package/dist/{chunk-EJKOUI26.js → chunk-I5UB4FN3.js} +3 -3
- package/dist/{chunk-NVI2P7VH.js → chunk-I6VHGILW.js} +21 -9
- package/dist/{chunk-EOU6WZTS.js → chunk-I7OSNH5T.js} +34 -5
- package/dist/{chunk-L24PPXLV.js → chunk-IFB3OECJ.js} +1 -0
- package/dist/{chunk-376X7SDZ.mjs → chunk-IXAPFTTD.mjs} +7 -6
- package/dist/{chunk-EHIXCFD7.js → chunk-JHRFG5PG.js} +57 -12
- package/dist/{chunk-3EB42WFR.mjs → chunk-KCPGFO5R.mjs} +2 -2
- package/dist/{chunk-G3PBQ4B4.mjs → chunk-KQ4ZKXXN.mjs} +52 -2
- package/dist/{chunk-MC26ORSN.js → chunk-KSXGH3FO.js} +7 -7
- package/dist/{chunk-X7JAYXPY.js → chunk-KVWSVDAJ.js} +4 -4
- package/dist/{chunk-OFRKYQOZ.mjs → chunk-LACDTZTE.mjs} +4 -4
- package/dist/{chunk-YH57D4AV.mjs → chunk-LAKPYMBZ.mjs} +1 -0
- package/dist/{chunk-6GU5NH5F.mjs → chunk-LBXNMCXN.mjs} +33 -5
- package/dist/{chunk-KGMVRIYC.mjs → chunk-LOM6NNQK.mjs} +29 -16
- package/dist/{chunk-WFWEMXO7.mjs → chunk-LUABLBKS.mjs} +83 -30
- package/dist/{chunk-K2TXT5HQ.js → chunk-M577W3TS.js} +101 -85
- package/dist/{chunk-3EDASNTG.js → chunk-MOYZF62V.js} +29 -16
- package/dist/{chunk-ZDNQGS4O.js → chunk-MQIVMK24.js} +4 -4
- package/dist/{chunk-WMPCN7OF.mjs → chunk-MZCGQED3.mjs} +15 -3
- package/dist/{chunk-KDXKF6B2.mjs → chunk-MZPKFMQC.mjs} +1 -1
- package/dist/{chunk-AG4HRAW2.mjs → chunk-NEHSCSQP.mjs} +2 -2
- package/dist/chunk-NG3OBMKV.js +319 -0
- package/dist/{chunk-RFHPG4KN.js → chunk-NGSJGXUZ.js} +15 -17
- package/dist/{chunk-WIWTY74F.mjs → chunk-NJHZQBA7.mjs} +16 -2
- package/dist/{chunk-EQD2U4KM.js → chunk-O2N7ITWQ.js} +63 -16
- package/dist/{chunk-NASC6XHN.mjs → chunk-O6YIPNXX.mjs} +24 -15
- package/dist/{chunk-VHGCWZ6V.mjs → chunk-OTRPN5ZG.mjs} +58 -13
- package/dist/{chunk-QIKR5EFI.js → chunk-OVJO5NYW.js} +4 -4
- package/dist/{chunk-KXT2TP6A.mjs → chunk-P2WQIVXD.mjs} +22 -10
- package/dist/{chunk-PT5T5F4H.js → chunk-PQF5VLNX.js} +22 -11
- package/dist/chunk-PQOUWJAT.mjs +211 -0
- package/dist/{chunk-OS6M3IZF.js → chunk-PSCPLUGP.js} +5 -13
- package/dist/{chunk-ULWT6W6M.mjs → chunk-PZB24FST.mjs} +10 -5
- package/dist/{chunk-BO45CU4Q.js → chunk-PZWI4YNN.js} +6 -4
- package/dist/{chunk-PFYK2V3E.js → chunk-Q2OXQNWU.js} +73 -9
- package/dist/{chunk-VM4ZQHT5.mjs → chunk-QANWBRNU.mjs} +59 -12
- package/dist/{chunk-XBM76P27.mjs → chunk-QFUIGOOM.mjs} +4 -2
- package/dist/{chunk-BN4ZKCAI.mjs → chunk-QKNORS26.mjs} +49 -36
- package/dist/{chunk-LROHXQWX.js → chunk-R4PMBWU3.js} +2 -2
- package/dist/chunk-R56UOY6C.js +222 -0
- package/dist/chunk-RNHC7BON.js +230 -0
- package/dist/{chunk-7PXALKLM.js → chunk-RRO752KE.js} +11 -10
- package/dist/{chunk-RVLV63SI.mjs → chunk-S4NGDDAM.mjs} +105 -36
- package/dist/{chunk-D5MQBUP2.js → chunk-SA3N2LUB.js} +22 -17
- package/dist/{chunk-BROIZ266.js → chunk-SFBSI3J7.js} +6 -3
- package/dist/{chunk-RVO6R37N.mjs → chunk-SHDQJ5BJ.mjs} +1 -1
- package/dist/{chunk-N2JYU4JI.js → chunk-SHU7L4NM.js} +52 -2
- package/dist/{chunk-M3MOSUZO.mjs → chunk-SI3P3V75.mjs} +16 -6
- package/dist/{chunk-UVMQJOTX.js → chunk-SK7PXSVE.js} +23 -14
- package/dist/{chunk-U356F7GU.js → chunk-SO2ADQTB.js} +52 -11
- package/dist/{chunk-NKKIJQMV.mjs → chunk-SPIPFOGD.mjs} +4 -2
- package/dist/{chunk-NQNHM4OL.mjs → chunk-SRC7JHME.mjs} +1 -1
- package/dist/{chunk-2RBHQBSG.js → chunk-SXTMVZ4W.js} +25 -12
- package/dist/{chunk-BEM7XG2L.js → chunk-SYJJKI7U.js} +35 -14
- package/dist/{chunk-RYNLPRUM.mjs → chunk-SYVMCKPR.mjs} +1 -1
- package/dist/{chunk-SY23FAXK.mjs → chunk-T6HNFCOW.mjs} +24 -8
- package/dist/{chunk-ZITBUGBH.mjs → chunk-TBMDIAZI.mjs} +59 -12
- package/dist/{chunk-B63GEB2Y.js → chunk-TIDVBSXR.js} +47 -34
- package/dist/{chunk-ZJI2VLIL.js → chunk-TLDTBCT6.js} +15 -3
- package/dist/{chunk-XFPJYKBQ.js → chunk-TN7GMDME.js} +13 -9
- package/dist/{chunk-M3FVPPMM.js → chunk-TO4SSBAJ.js} +17 -12
- package/dist/{chunk-XTQUPDRI.js → chunk-TPU6S7G7.js} +2 -2
- package/dist/{chunk-NEZ445D4.mjs → chunk-TRXNHYWB.mjs} +3 -3
- package/dist/{chunk-H6NC6SBX.js → chunk-TVEO2CFD.js} +2 -2
- package/dist/{chunk-6QQBMZQ6.mjs → chunk-U2ZXZ2KQ.mjs} +74 -10
- package/dist/{chunk-AVLIUHOS.mjs → chunk-U337RHJB.mjs} +4 -4
- package/dist/{chunk-VC26SAXB.js → chunk-UQZ4RLTI.js} +12 -6
- package/dist/{chunk-PXO2F2CS.mjs → chunk-V23KR23W.mjs} +47 -4
- package/dist/{chunk-BA6TJQZL.js → chunk-V3QEV3TL.js} +6 -6
- package/dist/{chunk-GG72T6JK.js → chunk-VOSN3IQC.js} +47 -4
- package/dist/{chunk-J4OQ2VRH.mjs → chunk-W6T3CG7U.mjs} +45 -4
- package/dist/{chunk-OTEM4FVX.mjs → chunk-WGKNAOW7.mjs} +11 -7
- package/dist/chunk-WLFLQB4R.mjs +312 -0
- package/dist/{chunk-W6AWN7BC.js → chunk-WLORVPTR.js} +4 -4
- package/dist/{chunk-J5N5OQWB.mjs → chunk-WOEX4S6J.mjs} +5 -2
- package/dist/{chunk-CAQPYJFA.mjs → chunk-WT72F56O.mjs} +1 -1
- package/dist/{chunk-7Z64GEMN.js → chunk-WTASPL6V.js} +3 -1
- package/dist/{chunk-2LYV6NBJ.mjs → chunk-WTIEJCRV.mjs} +7 -1
- package/dist/{chunk-L6KSO66F.mjs → chunk-WYPTAUCX.mjs} +2 -5
- package/dist/{chunk-CC5GFX6F.js → chunk-XKMZ5AMS.js} +2 -1
- package/dist/{chunk-WCTNQYXO.js → chunk-XMD7CQQ2.js} +12 -7
- package/dist/{chunk-7DUHHRAU.mjs → chunk-Y5X3G2LD.mjs} +41 -5
- package/dist/{chunk-ZA5EFHET.mjs → chunk-Z6BDNV3S.mjs} +18 -1
- package/dist/{chunk-UBP7HZSU.mjs → chunk-ZG2W4HS5.mjs} +6 -4
- package/dist/{chunk-UIIOZEUP.js → chunk-ZLCVJXGL.js} +4 -4
- package/dist/{chunk-CME2IFUT.mjs → chunk-ZLP4XEAO.mjs} +21 -16
- package/dist/{chunk-YID7J6ZK.js → chunk-ZXVLZKLT.js} +1 -1
- package/dist/components/ActivityFeed.js +6 -6
- package/dist/components/ActivityFeed.mjs +5 -5
- package/dist/components/AreaChart.js +4 -4
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.js +3 -2
- package/dist/components/AutoComplete.mjs +2 -1
- package/dist/components/BackTop.js +2 -2
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Badge.js +3 -2
- package/dist/components/Badge.mjs +2 -1
- package/dist/components/BarChart.js +4 -4
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Breadcrumb.d.mts +1 -1
- package/dist/components/Breadcrumb.d.ts +1 -1
- package/dist/components/Calendar.d.mts +2 -10
- package/dist/components/Calendar.d.ts +2 -10
- package/dist/components/Calendar.js +3 -2
- package/dist/components/Calendar.mjs +2 -1
- package/dist/components/Cascader.js +2 -2
- package/dist/components/Cascader.mjs +1 -1
- package/dist/components/ChartAxis.d.mts +1 -2
- package/dist/components/ChartAxis.d.ts +1 -2
- package/dist/components/ChartGrid.d.mts +1 -2
- package/dist/components/ChartGrid.d.ts +1 -2
- package/dist/components/ChartLegend.js +2 -2
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartSeries.d.mts +1 -2
- package/dist/components/ChartSeries.d.ts +1 -2
- package/dist/components/ChartTooltip.js +2 -2
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.js +8 -6
- package/dist/components/ChatWindow.mjs +7 -5
- package/dist/components/CodeEditor.js +2 -2
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/CommentThread.js +6 -4
- package/dist/components/CommentThread.mjs +5 -3
- package/dist/components/CropUpload.d.mts +6 -2
- package/dist/components/CropUpload.d.ts +6 -2
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.d.mts +1 -2
- package/dist/components/DataTableWithToolbar.d.ts +1 -2
- package/dist/components/DataTableWithToolbar.js +7 -6
- package/dist/components/DataTableWithToolbar.mjs +6 -5
- package/dist/components/DatePicker.js +3 -2
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Empty.js +3 -2
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +3 -23
- package/dist/components/FileManager.d.ts +3 -23
- package/dist/components/FileManager.js +2 -2
- package/dist/components/FileManager.mjs +1 -1
- package/dist/components/FloatButton.js +2 -2
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.js +2 -2
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.js +3 -3
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.js +3 -3
- package/dist/components/FormWizard.mjs +2 -2
- package/dist/components/FunnelChart.js +4 -4
- package/dist/components/FunnelChart.mjs +3 -3
- package/dist/components/GaugeChart.js +3 -2
- package/dist/components/GaugeChart.mjs +2 -1
- package/dist/components/HeatmapChart.js +3 -3
- package/dist/components/HeatmapChart.mjs +2 -2
- package/dist/components/Image.js +5 -4
- package/dist/components/Image.mjs +4 -3
- package/dist/components/ImageAnnotation.d.mts +1 -1
- package/dist/components/ImageAnnotation.d.ts +1 -1
- package/dist/components/ImageAnnotation.js +3 -2
- package/dist/components/ImageAnnotation.mjs +2 -1
- package/dist/components/ImageCropper.js +3 -2
- package/dist/components/ImageCropper.mjs +2 -1
- package/dist/components/ImageGroup.js +4 -3
- package/dist/components/ImageGroup.mjs +3 -2
- package/dist/components/ImagePreview.js +3 -2
- package/dist/components/ImagePreview.mjs +2 -1
- package/dist/components/ImageViewer.d.mts +2 -0
- package/dist/components/ImageViewer.d.ts +2 -0
- package/dist/components/ImageViewer.js +3 -2
- package/dist/components/ImageViewer.mjs +2 -1
- package/dist/components/InfiniteScroll.js +2 -2
- package/dist/components/InfiniteScroll.mjs +1 -1
- package/dist/components/Input.js +3 -2
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputNumber.js +3 -2
- package/dist/components/InputNumber.mjs +2 -1
- package/dist/components/Kanban.d.mts +5 -1
- package/dist/components/Kanban.d.ts +5 -1
- package/dist/components/Kanban.js +3 -3
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/LineChart.js +4 -4
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/List.d.mts +1 -2
- package/dist/components/List.d.ts +1 -2
- package/dist/components/List.js +3 -3
- package/dist/components/List.mjs +2 -2
- package/dist/components/Loading.js +2 -2
- package/dist/components/Loading.mjs +1 -1
- package/dist/components/MarkdownEditor.js +2 -2
- package/dist/components/MarkdownEditor.mjs +1 -1
- package/dist/components/Menu.d.mts +2 -2
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/MenuItem.d.mts +1 -1
- package/dist/components/MenuItem.d.ts +1 -1
- package/dist/components/MenuItemGroup.d.mts +1 -1
- package/dist/components/MenuItemGroup.d.ts +1 -1
- package/dist/components/Message.d.mts +2 -1
- package/dist/components/Message.d.ts +2 -1
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.js +2 -2
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/NotificationCenter.js +6 -6
- package/dist/components/NotificationCenter.mjs +5 -5
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +3 -3
- package/dist/components/QRCode.d.mts +2 -1
- package/dist/components/QRCode.d.ts +2 -1
- package/dist/components/QRCode.js +3 -2
- package/dist/components/QRCode.mjs +2 -1
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +3 -3
- package/dist/components/Rate.js +2 -2
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/Resizable.js +2 -2
- package/dist/components/Resizable.mjs +1 -1
- package/dist/components/Result.js +2 -2
- package/dist/components/Result.mjs +1 -1
- package/dist/components/RichTextEditor.js +2 -2
- package/dist/components/RichTextEditor.mjs +1 -1
- package/dist/components/ScatterChart.js +4 -4
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/Segmented.d.mts +1 -1
- package/dist/components/Segmented.d.ts +1 -1
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Segmented.mjs +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Slider.js +2 -2
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Splitter.js +2 -2
- package/dist/components/Splitter.mjs +1 -1
- package/dist/components/Steps.js +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/StepsItem.js +2 -2
- package/dist/components/StepsItem.mjs +1 -1
- package/dist/components/SubMenu.d.mts +1 -1
- package/dist/components/SubMenu.d.ts +1 -1
- package/dist/components/SunburstChart.js +4 -4
- package/dist/components/SunburstChart.mjs +3 -3
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +2 -2
- package/dist/components/Table.d.ts +2 -2
- package/dist/components/Table.js +4 -4
- package/dist/components/Table.mjs +3 -3
- package/dist/components/Tabs.d.mts +0 -4
- package/dist/components/Tabs.d.ts +0 -4
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.js +3 -2
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/TaskBoard.d.mts +3 -1
- package/dist/components/TaskBoard.d.ts +3 -1
- package/dist/components/TaskBoard.js +2 -2
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/TimePicker.js +2 -2
- package/dist/components/TimePicker.mjs +1 -1
- package/dist/components/Timeline.d.mts +5 -1
- package/dist/components/Timeline.d.ts +5 -1
- package/dist/components/Timeline.js +3 -2
- package/dist/components/Timeline.mjs +2 -1
- package/dist/components/Tour.js +4 -3
- package/dist/components/Tour.mjs +3 -2
- package/dist/components/Transfer.js +2 -2
- package/dist/components/Transfer.mjs +1 -1
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +2 -2
- package/dist/components/TreeMapChart.js +4 -4
- package/dist/components/TreeMapChart.mjs +3 -3
- package/dist/components/Upload.js +2 -2
- package/dist/components/Upload.mjs +1 -1
- package/dist/components/VirtualList.js +2 -2
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +7 -2
- package/dist/components/VirtualTable.d.ts +7 -2
- package/dist/components/VirtualTable.js +2 -2
- package/dist/components/VirtualTable.mjs +1 -1
- package/dist/index.d.mts +52 -53
- package/dist/index.d.ts +52 -53
- package/dist/index.js +81 -81
- package/dist/index.mjs +80 -80
- package/dist/{types-DaC4a0Ny.d.ts → types-CcgZY0mv.d.mts} +2 -2
- package/dist/{types-DaC4a0Ny.d.mts → types-CcgZY0mv.d.ts} +2 -2
- package/package.json +6 -6
- package/dist/chunk-5EVHVZG5.js +0 -131
- package/dist/chunk-AF2AEZKM.js +0 -165
- package/dist/chunk-CDRQSKXT.mjs +0 -195
- package/dist/chunk-EPJ6W4VI.mjs +0 -165
- package/dist/chunk-GYQ2DN6Z.mjs +0 -174
- package/dist/chunk-MTIGGMHG.mjs +0 -180
- package/dist/chunk-NDGA3N6H.js +0 -180
- package/dist/chunk-S5Y6UHAK.mjs +0 -131
- package/dist/chunk-T7KO6EVK.js +0 -174
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-QAIBQHIO.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/ImageAnnotation.tsx
|
|
2
6
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
7
|
import {
|
|
4
8
|
classNames,
|
|
9
|
+
isActivationKey,
|
|
5
10
|
createImageAnnotationBox,
|
|
6
11
|
createImageAnnotationPath,
|
|
7
12
|
defaultImageAnnotationTools,
|
|
@@ -11,7 +16,7 @@ import {
|
|
|
11
16
|
getImageAnnotationShapeAriaLabel,
|
|
12
17
|
getImageAnnotationStrokeColor,
|
|
13
18
|
getImageAnnotationToolButtonClasses,
|
|
14
|
-
|
|
19
|
+
getImageEditorLabels,
|
|
15
20
|
imageAnnotationContainerClasses,
|
|
16
21
|
imageAnnotationDeleteButtonClasses,
|
|
17
22
|
imageAnnotationImageClasses,
|
|
@@ -20,10 +25,12 @@ import {
|
|
|
20
25
|
imageAnnotationReadonlyOverlayClasses,
|
|
21
26
|
imageAnnotationStageClasses,
|
|
22
27
|
imageAnnotationToolbarClasses,
|
|
23
|
-
shouldCommitImageAnnotationBox
|
|
28
|
+
shouldCommitImageAnnotationBox,
|
|
29
|
+
mergeTigerLocale
|
|
24
30
|
} from "@expcat/tigercat-core";
|
|
25
31
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
26
32
|
function ImageAnnotation({
|
|
33
|
+
locale,
|
|
27
34
|
src,
|
|
28
35
|
alt = "Image to annotate",
|
|
29
36
|
value,
|
|
@@ -45,6 +52,22 @@ function ImageAnnotation({
|
|
|
45
52
|
onToolChange,
|
|
46
53
|
onReady
|
|
47
54
|
}) {
|
|
55
|
+
const config = useTigerConfig();
|
|
56
|
+
const mergedLocale = useMemo(
|
|
57
|
+
() => mergeTigerLocale(config.locale, locale),
|
|
58
|
+
[config.locale, locale]
|
|
59
|
+
);
|
|
60
|
+
const labels = useMemo(() => getImageEditorLabels(mergedLocale), [mergedLocale]);
|
|
61
|
+
const toolLabels = useMemo(
|
|
62
|
+
() => ({
|
|
63
|
+
select: labels.selectToolText,
|
|
64
|
+
rectangle: labels.rectangleToolText,
|
|
65
|
+
ellipse: labels.ellipseToolText,
|
|
66
|
+
polygon: labels.polygonToolText,
|
|
67
|
+
freehand: labels.freehandToolText
|
|
68
|
+
}),
|
|
69
|
+
[labels]
|
|
70
|
+
);
|
|
48
71
|
const containerRef = useRef(null);
|
|
49
72
|
const overlayRef = useRef(null);
|
|
50
73
|
const idSeedRef = useRef(0);
|
|
@@ -183,13 +206,20 @@ function ImageAnnotation({
|
|
|
183
206
|
},
|
|
184
207
|
[activeTool, canEdit, getPointFromEvent]
|
|
185
208
|
);
|
|
209
|
+
const removeAnnotation = useCallback(
|
|
210
|
+
(annotation) => {
|
|
211
|
+
if (!canEdit) return;
|
|
212
|
+
const next = annotations.filter((item) => item.id !== annotation.id);
|
|
213
|
+
commitAnnotations(next, { type: "remove", annotation });
|
|
214
|
+
selectAnnotation(null);
|
|
215
|
+
},
|
|
216
|
+
[annotations, canEdit, commitAnnotations, selectAnnotation]
|
|
217
|
+
);
|
|
186
218
|
const removeSelectedAnnotation = useCallback(() => {
|
|
187
219
|
if (!canEdit || !activeSelectedId) return;
|
|
188
220
|
const removed = annotations.find((annotation) => annotation.id === activeSelectedId);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
selectAnnotation(null);
|
|
192
|
-
}, [activeSelectedId, annotations, canEdit, commitAnnotations, selectAnnotation]);
|
|
221
|
+
if (removed) removeAnnotation(removed);
|
|
222
|
+
}, [activeSelectedId, annotations, canEdit, removeAnnotation]);
|
|
193
223
|
const handleKeyDown = useCallback(
|
|
194
224
|
(event) => {
|
|
195
225
|
if (event.key === "Escape") {
|
|
@@ -212,6 +242,20 @@ function ImageAnnotation({
|
|
|
212
242
|
(annotation, isDraft = false) => {
|
|
213
243
|
const selected = !isDraft && annotation.id === activeSelectedId;
|
|
214
244
|
const stroke = getImageAnnotationStrokeColor(annotation);
|
|
245
|
+
const onKeyDown = (event) => {
|
|
246
|
+
if (isDraft) return;
|
|
247
|
+
if (isActivationKey(event)) {
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
event.stopPropagation();
|
|
250
|
+
selectAnnotation(annotation);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
if (event.key === "Delete" || event.key === "Backspace") {
|
|
254
|
+
event.preventDefault();
|
|
255
|
+
event.stopPropagation();
|
|
256
|
+
removeAnnotation(annotation);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
215
259
|
const commonProps = {
|
|
216
260
|
stroke,
|
|
217
261
|
strokeWidth: selected ? strokeWidth + 1 : strokeWidth,
|
|
@@ -220,7 +264,8 @@ function ImageAnnotation({
|
|
|
220
264
|
role: "button",
|
|
221
265
|
tabIndex: isDraft ? -1 : 0,
|
|
222
266
|
"aria-label": getImageAnnotationShapeAriaLabel(annotation),
|
|
223
|
-
className: classNames(!isDraft && "cursor-pointer focus:outline-none")
|
|
267
|
+
className: classNames(!isDraft && "cursor-pointer focus:outline-none"),
|
|
268
|
+
onKeyDown: isDraft ? void 0 : onKeyDown
|
|
224
269
|
};
|
|
225
270
|
const onClick = (event) => {
|
|
226
271
|
if (isDraft) return;
|
|
@@ -267,7 +312,7 @@ function ImageAnnotation({
|
|
|
267
312
|
annotation.id
|
|
268
313
|
);
|
|
269
314
|
},
|
|
270
|
-
[activeSelectedId, displayHeight, displayWidth, selectAnnotation, strokeWidth]
|
|
315
|
+
[activeSelectedId, displayHeight, displayWidth, removeAnnotation, selectAnnotation, strokeWidth]
|
|
271
316
|
);
|
|
272
317
|
const renderedAnnotations = useMemo(
|
|
273
318
|
() => annotations.map((annotation) => renderAnnotation(annotation)),
|
|
@@ -290,7 +335,7 @@ function ImageAnnotation({
|
|
|
290
335
|
}) : null;
|
|
291
336
|
const containerClasses = classNames(imageAnnotationContainerClasses, className);
|
|
292
337
|
return /* @__PURE__ */ jsxs("div", { className: containerClasses, style, onKeyDown: handleKeyDown, children: [
|
|
293
|
-
/* @__PURE__ */ jsxs("div", { className: imageAnnotationToolbarClasses, "aria-label":
|
|
338
|
+
/* @__PURE__ */ jsxs("div", { className: imageAnnotationToolbarClasses, "aria-label": labels.annotationToolbarAriaLabel, children: [
|
|
294
339
|
tools.map((item) => /* @__PURE__ */ jsx(
|
|
295
340
|
"button",
|
|
296
341
|
{
|
|
@@ -299,7 +344,7 @@ function ImageAnnotation({
|
|
|
299
344
|
disabled: disabled || readonly,
|
|
300
345
|
"aria-pressed": activeTool === item,
|
|
301
346
|
onClick: () => setActiveTool(item),
|
|
302
|
-
children:
|
|
347
|
+
children: toolLabels[item]
|
|
303
348
|
},
|
|
304
349
|
item
|
|
305
350
|
)),
|
|
@@ -310,7 +355,7 @@ function ImageAnnotation({
|
|
|
310
355
|
className: imageAnnotationDeleteButtonClasses,
|
|
311
356
|
disabled: !canEdit || !activeSelectedId,
|
|
312
357
|
onClick: removeSelectedAnnotation,
|
|
313
|
-
children:
|
|
358
|
+
children: labels.deleteText
|
|
314
359
|
}
|
|
315
360
|
)
|
|
316
361
|
] }),
|
|
@@ -321,7 +366,7 @@ function ImageAnnotation({
|
|
|
321
366
|
className: imageAnnotationStageClasses,
|
|
322
367
|
style: { width: imageLoaded ? `${displayWidth}px` : void 0 },
|
|
323
368
|
role: imageLoaded ? "application" : "img",
|
|
324
|
-
"aria-label": imageLoaded ?
|
|
369
|
+
"aria-label": imageLoaded ? labels.annotationEditorAriaLabel : labels.loadingAnnotationImageAriaLabel,
|
|
325
370
|
children: !imageLoaded ? /* @__PURE__ */ jsx("div", { className: "flex min-h-[200px] min-w-[240px] items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-[var(--tiger-border,#d1d5db)] border-t-[var(--tiger-primary,#2563eb)]" }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
326
371
|
/* @__PURE__ */ jsx(
|
|
327
372
|
"img",
|
|
@@ -344,7 +389,7 @@ function ImageAnnotation({
|
|
|
344
389
|
width: displayWidth,
|
|
345
390
|
height: displayHeight,
|
|
346
391
|
viewBox: `0 0 ${displayWidth} ${displayHeight}`,
|
|
347
|
-
"aria-label":
|
|
392
|
+
"aria-label": labels.annotationCanvasAriaLabel,
|
|
348
393
|
onMouseDown: handleStageMouseDown,
|
|
349
394
|
onClick: handleStageClick,
|
|
350
395
|
onDoubleClick: commitPolygon,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkXTV5JLLCjs = require('./chunk-XTV5JLLC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk23XPDNCAjs = require('./chunk-23XPDNCA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSK7PXSVEjs = require('./chunk-SK7PXSVE.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkUKLVOR4Ejs = require('./chunk-UKLVOR4E.js');
|
|
@@ -192,7 +192,7 @@ var FunnelChart = ({
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
const tooltip = showTooltip && hoverable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
195
|
-
|
|
195
|
+
_chunkSK7PXSVEjs.ChartTooltip,
|
|
196
196
|
{
|
|
197
197
|
content: tooltipContent,
|
|
198
198
|
visible: resolvedHoveredIndex !== null && tooltipContent !== "",
|
|
@@ -209,7 +209,7 @@ var FunnelChart = ({
|
|
|
209
209
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: wrapperClasses, children: [
|
|
210
210
|
chart,
|
|
211
211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
-
|
|
212
|
+
_chunk23XPDNCAjs.ChartLegend,
|
|
213
213
|
{
|
|
214
214
|
items: legendItems,
|
|
215
215
|
position: legendPosition,
|
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
renderBodyPortal,
|
|
3
3
|
useEscapeKey
|
|
4
4
|
} from "./chunk-SEWNVIHH.mjs";
|
|
5
|
+
import {
|
|
6
|
+
useTigerConfig
|
|
7
|
+
} from "./chunk-QAIBQHIO.mjs";
|
|
5
8
|
|
|
6
9
|
// src/components/ImagePreview.tsx
|
|
7
10
|
import { useState, useRef, useEffect, useMemo, useCallback } from "react";
|
|
@@ -31,7 +34,9 @@ import {
|
|
|
31
34
|
movePan,
|
|
32
35
|
createPinchState,
|
|
33
36
|
startPinch,
|
|
34
|
-
movePinch
|
|
37
|
+
movePinch,
|
|
38
|
+
getImageViewerLabels,
|
|
39
|
+
mergeTigerLocale
|
|
35
40
|
} from "@expcat/tigercat-core";
|
|
36
41
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
37
42
|
var SvgIcon = ({ d, cls = "w-5 h-5" }) => /* @__PURE__ */ jsx(
|
|
@@ -54,10 +59,17 @@ var ImagePreview = ({
|
|
|
54
59
|
scaleStep = 0.5,
|
|
55
60
|
minScale = 0.25,
|
|
56
61
|
maxScale = 5,
|
|
62
|
+
locale,
|
|
57
63
|
onOpenChange,
|
|
58
64
|
onCurrentIndexChange,
|
|
59
65
|
onScaleChange
|
|
60
66
|
}) => {
|
|
67
|
+
const config = useTigerConfig();
|
|
68
|
+
const mergedLocale = useMemo(
|
|
69
|
+
() => mergeTigerLocale(config.locale, locale),
|
|
70
|
+
[config.locale, locale]
|
|
71
|
+
);
|
|
72
|
+
const labels = useMemo(() => getImageViewerLabels(mergedLocale), [mergedLocale]);
|
|
61
73
|
const isOpen = open ?? false;
|
|
62
74
|
const [scale, setScale] = useState(1);
|
|
63
75
|
const [rotation, setRotation] = useState(0);
|
|
@@ -231,7 +243,7 @@ var ImagePreview = ({
|
|
|
231
243
|
style: { zIndex },
|
|
232
244
|
role: "dialog",
|
|
233
245
|
"aria-modal": "true",
|
|
234
|
-
"aria-label":
|
|
246
|
+
"aria-label": labels.previewDialogAriaLabel,
|
|
235
247
|
onClick: handleMaskClick,
|
|
236
248
|
onWheel: handleWheel,
|
|
237
249
|
children: [
|
|
@@ -259,7 +271,7 @@ var ImagePreview = ({
|
|
|
259
271
|
{
|
|
260
272
|
className: imagePreviewCloseBtnClasses,
|
|
261
273
|
onClick: handleClose,
|
|
262
|
-
"aria-label":
|
|
274
|
+
"aria-label": labels.closePreviewAriaLabel,
|
|
263
275
|
type: "button",
|
|
264
276
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: previewCloseIconPath })
|
|
265
277
|
}
|
|
@@ -270,7 +282,7 @@ var ImagePreview = ({
|
|
|
270
282
|
className: classNames(imagePreviewNavBtnClasses, "left-4"),
|
|
271
283
|
onClick: handlePrev,
|
|
272
284
|
disabled: !navState.hasPrev,
|
|
273
|
-
"aria-label":
|
|
285
|
+
"aria-label": labels.previousImageAriaLabel,
|
|
274
286
|
type: "button",
|
|
275
287
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: prevIconPath })
|
|
276
288
|
}
|
|
@@ -281,7 +293,7 @@ var ImagePreview = ({
|
|
|
281
293
|
className: classNames(imagePreviewNavBtnClasses, "right-4"),
|
|
282
294
|
onClick: handleNext,
|
|
283
295
|
disabled: !navState.hasNext,
|
|
284
|
-
"aria-label":
|
|
296
|
+
"aria-label": labels.nextImageAriaLabel,
|
|
285
297
|
type: "button",
|
|
286
298
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: nextIconPath })
|
|
287
299
|
}
|
|
@@ -292,7 +304,7 @@ var ImagePreview = ({
|
|
|
292
304
|
{
|
|
293
305
|
className: imagePreviewToolbarBtnClasses,
|
|
294
306
|
onClick: handleZoomOut,
|
|
295
|
-
"aria-label":
|
|
307
|
+
"aria-label": labels.zoomOutAriaLabel,
|
|
296
308
|
type: "button",
|
|
297
309
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: zoomOutIconPath })
|
|
298
310
|
}
|
|
@@ -302,7 +314,7 @@ var ImagePreview = ({
|
|
|
302
314
|
{
|
|
303
315
|
className: imagePreviewToolbarBtnClasses,
|
|
304
316
|
onClick: handleReset,
|
|
305
|
-
"aria-label":
|
|
317
|
+
"aria-label": labels.resetAriaLabel,
|
|
306
318
|
type: "button",
|
|
307
319
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: resetIconPath })
|
|
308
320
|
}
|
|
@@ -312,7 +324,7 @@ var ImagePreview = ({
|
|
|
312
324
|
{
|
|
313
325
|
className: imagePreviewToolbarBtnClasses,
|
|
314
326
|
onClick: handleZoomIn,
|
|
315
|
-
"aria-label":
|
|
327
|
+
"aria-label": labels.zoomInAriaLabel,
|
|
316
328
|
type: "button",
|
|
317
329
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: zoomInIconPath })
|
|
318
330
|
}
|
|
@@ -322,7 +334,7 @@ var ImagePreview = ({
|
|
|
322
334
|
{
|
|
323
335
|
className: imagePreviewToolbarBtnClasses,
|
|
324
336
|
onClick: handleRotateLeft,
|
|
325
|
-
"aria-label":
|
|
337
|
+
"aria-label": labels.rotateLeftAriaLabel,
|
|
326
338
|
type: "button",
|
|
327
339
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: imageViewerIcons.rotateLeft })
|
|
328
340
|
}
|
|
@@ -332,7 +344,7 @@ var ImagePreview = ({
|
|
|
332
344
|
{
|
|
333
345
|
className: imagePreviewToolbarBtnClasses,
|
|
334
346
|
onClick: handleRotateRight,
|
|
335
|
-
"aria-label":
|
|
347
|
+
"aria-label": labels.rotateRightAriaLabel,
|
|
336
348
|
type: "button",
|
|
337
349
|
children: /* @__PURE__ */ jsx(SvgIcon, { d: imageViewerIcons.rotateRight })
|
|
338
350
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkFCCHM2B4js = require('./chunk-FCCHM2B4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
@@ -33,6 +33,9 @@ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
36
39
|
|
|
37
40
|
|
|
38
41
|
|
|
@@ -259,7 +262,7 @@ var List = ({
|
|
|
259
262
|
}
|
|
260
263
|
if (virtual) {
|
|
261
264
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
262
|
-
|
|
265
|
+
_chunkFCCHM2B4js.VirtualList,
|
|
263
266
|
{
|
|
264
267
|
itemCount: paginatedData.length,
|
|
265
268
|
itemHeight: virtualItemHeight,
|
|
@@ -278,8 +281,15 @@ var List = ({
|
|
|
278
281
|
const { totalPages, startIndex, endIndex, hasNext, hasPrev } = paginationInfo;
|
|
279
282
|
const total = dataSource.length;
|
|
280
283
|
const paginationConfig = pagination;
|
|
284
|
+
const paginationLabels = _tigercatcore.getPaginationLabels.call(void 0, mergedLocale);
|
|
285
|
+
const localeCode = _optionalChain([mergedLocale, 'optionalAccess', _7 => _7.locale]);
|
|
281
286
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _tigercatcore.getSimplePaginationContainerClasses.call(void 0, ), children: [
|
|
282
|
-
paginationConfig.showTotal !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.getSimplePaginationTotalClasses.call(void 0, ), children: paginationConfig.totalText ? paginationConfig.totalText(total, [startIndex, endIndex]) :
|
|
287
|
+
paginationConfig.showTotal !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.getSimplePaginationTotalClasses.call(void 0, ), children: paginationConfig.totalText ? paginationConfig.totalText(total, [startIndex, endIndex]) : _tigercatcore.formatPaginationTotal.call(void 0,
|
|
288
|
+
paginationLabels.totalText,
|
|
289
|
+
total,
|
|
290
|
+
[startIndex, endIndex],
|
|
291
|
+
localeCode
|
|
292
|
+
) }),
|
|
283
293
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _tigercatcore.getSimplePaginationControlsClasses.call(void 0, ), children: [
|
|
284
294
|
paginationConfig.showSizeChanger !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
285
295
|
"select",
|
|
@@ -289,7 +299,8 @@ var List = ({
|
|
|
289
299
|
onChange: (e) => handlePageSizeChange(Number(e.target.value)),
|
|
290
300
|
children: (paginationConfig.pageSizeOptions || [10, 20, 50, 100]).map((size2) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "option", { value: size2, children: [
|
|
291
301
|
size2,
|
|
292
|
-
"
|
|
302
|
+
" ",
|
|
303
|
+
paginationLabels.itemsPerPageText
|
|
293
304
|
] }, size2))
|
|
294
305
|
}
|
|
295
306
|
),
|
|
@@ -300,22 +311,22 @@ var List = ({
|
|
|
300
311
|
className: _tigercatcore.getSimplePaginationButtonClasses.call(void 0, !hasPrev),
|
|
301
312
|
disabled: !hasPrev,
|
|
302
313
|
onClick: () => handlePageChange(currentPage - 1),
|
|
303
|
-
children:
|
|
314
|
+
children: paginationLabels.prevPageAriaLabel
|
|
304
315
|
}
|
|
305
316
|
),
|
|
306
|
-
/* @__PURE__ */ _jsxruntime.
|
|
307
|
-
|
|
317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _tigercatcore.getSimplePaginationPageIndicatorClasses.call(void 0, ), children: _tigercatcore.formatPaginationPageIndicator.call(void 0,
|
|
318
|
+
paginationLabels.pageIndicatorText,
|
|
308
319
|
currentPage,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
320
|
+
totalPages,
|
|
321
|
+
localeCode
|
|
322
|
+
) }),
|
|
312
323
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
313
324
|
"button",
|
|
314
325
|
{
|
|
315
326
|
className: _tigercatcore.getSimplePaginationButtonClasses.call(void 0, !hasNext),
|
|
316
327
|
disabled: !hasNext,
|
|
317
328
|
onClick: () => handlePageChange(currentPage + 1),
|
|
318
|
-
children:
|
|
329
|
+
children: paginationLabels.nextPageAriaLabel
|
|
319
330
|
}
|
|
320
331
|
)
|
|
321
332
|
] })
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PieChart
|
|
3
|
+
} from "./chunk-QFUIGOOM.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/DonutChart.tsx
|
|
6
|
+
import { useEffect, useMemo, useState } from "react";
|
|
7
|
+
import {
|
|
8
|
+
classNames,
|
|
9
|
+
getChartInnerRect,
|
|
10
|
+
normalizeChartPadding,
|
|
11
|
+
DONUT_ENTRANCE_KEYFRAMES,
|
|
12
|
+
DONUT_ENTRANCE_CLASS
|
|
13
|
+
} from "@expcat/tigercat-core";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var DONUT_PALETTE = [
|
|
16
|
+
"var(--tiger-chart-1,#5470c6)",
|
|
17
|
+
"var(--tiger-chart-2,#91cc75)",
|
|
18
|
+
"var(--tiger-chart-3,#fac858)",
|
|
19
|
+
"var(--tiger-chart-4,#ee6666)",
|
|
20
|
+
"var(--tiger-chart-5,#73c0de)",
|
|
21
|
+
"var(--tiger-chart-6,#3ba272)",
|
|
22
|
+
"var(--tiger-chart-1,#fc8452)",
|
|
23
|
+
"var(--tiger-chart-2,#9a60b4)",
|
|
24
|
+
"var(--tiger-chart-3,#ea7ccc)"
|
|
25
|
+
];
|
|
26
|
+
var DonutChart = ({
|
|
27
|
+
width = 320,
|
|
28
|
+
height = 240,
|
|
29
|
+
padding = 24,
|
|
30
|
+
data,
|
|
31
|
+
innerRadius,
|
|
32
|
+
innerRadiusRatio = 0.62,
|
|
33
|
+
outerRadius,
|
|
34
|
+
startAngle = 0,
|
|
35
|
+
endAngle = Math.PI * 2,
|
|
36
|
+
padAngle = 0.04,
|
|
37
|
+
colors,
|
|
38
|
+
showLabels = false,
|
|
39
|
+
labelFormatter,
|
|
40
|
+
labelPosition = "inside",
|
|
41
|
+
borderWidth = 0,
|
|
42
|
+
borderColor = "var(--tiger-surface,#ffffff)",
|
|
43
|
+
hoverOffset = 10,
|
|
44
|
+
shadow = true,
|
|
45
|
+
// Interaction props
|
|
46
|
+
hoverable = false,
|
|
47
|
+
hoveredIndex,
|
|
48
|
+
activeOpacity = 1,
|
|
49
|
+
inactiveOpacity = 0.3,
|
|
50
|
+
selectable = false,
|
|
51
|
+
selectedIndex,
|
|
52
|
+
// Legend props
|
|
53
|
+
showLegend = false,
|
|
54
|
+
legendPosition = "bottom",
|
|
55
|
+
legendMarkerSize = 10,
|
|
56
|
+
legendGap = 8,
|
|
57
|
+
legendFormatter,
|
|
58
|
+
// Tooltip props
|
|
59
|
+
showTooltip = true,
|
|
60
|
+
tooltipFormatter,
|
|
61
|
+
// Accessibility
|
|
62
|
+
title,
|
|
63
|
+
desc,
|
|
64
|
+
className,
|
|
65
|
+
// DonutChart-specific
|
|
66
|
+
centerValue,
|
|
67
|
+
centerLabel,
|
|
68
|
+
animated = false,
|
|
69
|
+
// Visual modes (forwarded to PieChart, opt-in per PR-19k(b6/b7))
|
|
70
|
+
gradient = false,
|
|
71
|
+
// Callbacks
|
|
72
|
+
onHoveredIndexChange,
|
|
73
|
+
onSelectedIndexChange,
|
|
74
|
+
onSliceClick,
|
|
75
|
+
onSliceHover
|
|
76
|
+
}) => {
|
|
77
|
+
const innerRect = useMemo(
|
|
78
|
+
() => getChartInnerRect(width, height, padding),
|
|
79
|
+
[width, height, padding]
|
|
80
|
+
);
|
|
81
|
+
const pad = useMemo(() => normalizeChartPadding(padding), [padding]);
|
|
82
|
+
const resolvedOuterRadius = useMemo(() => {
|
|
83
|
+
if (typeof outerRadius === "number") return Math.max(0, outerRadius);
|
|
84
|
+
return Math.max(0, Math.min(innerRect.width, innerRect.height) / 2);
|
|
85
|
+
}, [outerRadius, innerRect.width, innerRect.height]);
|
|
86
|
+
const resolvedInnerRadius = useMemo(() => {
|
|
87
|
+
if (typeof innerRadius === "number") {
|
|
88
|
+
return Math.min(Math.max(0, innerRadius), resolvedOuterRadius);
|
|
89
|
+
}
|
|
90
|
+
const ratio = Math.min(Math.max(innerRadiusRatio ?? 0.62, 0), 1);
|
|
91
|
+
return resolvedOuterRadius * ratio;
|
|
92
|
+
}, [innerRadius, innerRadiusRatio, resolvedOuterRadius]);
|
|
93
|
+
const resolvedColors = useMemo(
|
|
94
|
+
() => colors && colors.length > 0 ? colors : DONUT_PALETTE,
|
|
95
|
+
[colors]
|
|
96
|
+
);
|
|
97
|
+
const donutTooltipFormatter = useMemo(() => {
|
|
98
|
+
if (tooltipFormatter) return tooltipFormatter;
|
|
99
|
+
const total = data.reduce((s, d) => s + d.value, 0);
|
|
100
|
+
return (datum, index) => {
|
|
101
|
+
const pct = total > 0 ? (datum.value / total * 100).toFixed(1) : "0";
|
|
102
|
+
const label = datum.label ?? `#${index + 1}`;
|
|
103
|
+
return `${label}: ${datum.value} (${pct}%)`;
|
|
104
|
+
};
|
|
105
|
+
}, [tooltipFormatter, data]);
|
|
106
|
+
const hasCenterContent = centerValue !== void 0 || centerLabel !== void 0;
|
|
107
|
+
const centerX = pad.left + innerRect.width / 2;
|
|
108
|
+
const centerY = pad.top + innerRect.height / 2;
|
|
109
|
+
const [entered, setEntered] = useState(false);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (animated) setEntered(true);
|
|
112
|
+
}, [animated]);
|
|
113
|
+
return /* @__PURE__ */ jsxs(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: classNames("inline-block relative", animated && entered && DONUT_ENTRANCE_CLASS),
|
|
117
|
+
"data-donut-chart": "true",
|
|
118
|
+
children: [
|
|
119
|
+
animated && entered && /* @__PURE__ */ jsx("style", { children: DONUT_ENTRANCE_KEYFRAMES }),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
PieChart,
|
|
122
|
+
{
|
|
123
|
+
width,
|
|
124
|
+
height,
|
|
125
|
+
padding,
|
|
126
|
+
data,
|
|
127
|
+
innerRadius: resolvedInnerRadius,
|
|
128
|
+
outerRadius,
|
|
129
|
+
startAngle,
|
|
130
|
+
endAngle,
|
|
131
|
+
padAngle,
|
|
132
|
+
colors: resolvedColors,
|
|
133
|
+
showLabels,
|
|
134
|
+
labelFormatter,
|
|
135
|
+
labelPosition,
|
|
136
|
+
borderWidth,
|
|
137
|
+
borderColor,
|
|
138
|
+
hoverOffset,
|
|
139
|
+
shadow,
|
|
140
|
+
gradient,
|
|
141
|
+
hoverable,
|
|
142
|
+
hoveredIndex,
|
|
143
|
+
activeOpacity,
|
|
144
|
+
inactiveOpacity,
|
|
145
|
+
selectable,
|
|
146
|
+
selectedIndex,
|
|
147
|
+
showLegend,
|
|
148
|
+
legendPosition,
|
|
149
|
+
legendMarkerSize,
|
|
150
|
+
legendGap,
|
|
151
|
+
legendFormatter,
|
|
152
|
+
showTooltip,
|
|
153
|
+
tooltipFormatter: donutTooltipFormatter,
|
|
154
|
+
title,
|
|
155
|
+
desc,
|
|
156
|
+
className: classNames(className),
|
|
157
|
+
onHoveredIndexChange,
|
|
158
|
+
onSelectedIndexChange,
|
|
159
|
+
onSliceClick,
|
|
160
|
+
onSliceHover
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
hasCenterContent && /* @__PURE__ */ jsxs(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
"data-donut-center": "true",
|
|
167
|
+
style: {
|
|
168
|
+
position: "absolute",
|
|
169
|
+
left: `${centerX}px`,
|
|
170
|
+
top: `${centerY}px`,
|
|
171
|
+
transform: "translate(-50%, -50%)",
|
|
172
|
+
textAlign: "center",
|
|
173
|
+
pointerEvents: "none",
|
|
174
|
+
lineHeight: "1.3",
|
|
175
|
+
padding: "var(--tiger-chart-donut-center-padding, 0)",
|
|
176
|
+
borderRadius: "var(--tiger-radius-pill, 9999px)",
|
|
177
|
+
background: "var(--tiger-chart-donut-center-bg, transparent)",
|
|
178
|
+
boxShadow: "var(--tiger-chart-donut-center-shadow, none)",
|
|
179
|
+
backdropFilter: "var(--tiger-chart-donut-center-backdrop, none)",
|
|
180
|
+
WebkitBackdropFilter: "var(--tiger-chart-donut-center-backdrop, none)"
|
|
181
|
+
},
|
|
182
|
+
children: [
|
|
183
|
+
centerValue !== void 0 && /* @__PURE__ */ jsx(
|
|
184
|
+
"div",
|
|
185
|
+
{
|
|
186
|
+
className: "text-xl font-semibold text-[color:var(--tiger-text,#1f2937)]",
|
|
187
|
+
style: { lineHeight: "1.2" },
|
|
188
|
+
children: `${centerValue}`
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
centerLabel !== void 0 && /* @__PURE__ */ jsx(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
className: "text-xs text-[color:var(--tiger-text-secondary,#6b7280)]",
|
|
195
|
+
style: { marginTop: "2px" },
|
|
196
|
+
children: centerLabel
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
};
|
|
206
|
+
var DonutChart_default = DonutChart;
|
|
207
|
+
|
|
208
|
+
export {
|
|
209
|
+
DonutChart,
|
|
210
|
+
DonutChart_default
|
|
211
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNGSJGXUZjs = require('./chunk-NGSJGXUZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPQF5VLNXjs = require('./chunk-PQF5VLNX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkZLNBE4ISjs = require('./chunk-ZLNBE4IS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk5QLSTNA3js = require('./chunk-5QLSTNA3.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkUF3DXKCIjs = require('./chunk-UF3DXKCI.js');
|
|
@@ -89,14 +89,6 @@ var NotificationCenter = ({
|
|
|
89
89
|
setInternalGroupKey(keys[0]);
|
|
90
90
|
}
|
|
91
91
|
}, [activeGroupKey, currentGroupKey, resolvedGroups]);
|
|
92
|
-
const _currentGroup = _react.useMemo.call(void 0, () => {
|
|
93
|
-
if (resolvedGroups.length === 0) return void 0;
|
|
94
|
-
if (currentGroupKey === void 0) return resolvedGroups[0];
|
|
95
|
-
const index = resolvedGroups.findIndex(
|
|
96
|
-
(group, groupIndex) => getGroupKey(group, groupIndex) === currentGroupKey
|
|
97
|
-
);
|
|
98
|
-
return index >= 0 ? resolvedGroups[index] : resolvedGroups[0];
|
|
99
|
-
}, [currentGroupKey, resolvedGroups]);
|
|
100
92
|
const [readStateOverrides, setReadStateOverrides] = _react.useState.call(void 0,
|
|
101
93
|
() => /* @__PURE__ */ new Map()
|
|
102
94
|
);
|
|
@@ -291,7 +283,7 @@ var NotificationCenter = ({
|
|
|
291
283
|
] });
|
|
292
284
|
}
|
|
293
285
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
-
|
|
286
|
+
_chunkPQF5VLNXjs.List,
|
|
295
287
|
{
|
|
296
288
|
dataSource: listItems,
|
|
297
289
|
split: true,
|
|
@@ -303,7 +295,7 @@ var NotificationCenter = ({
|
|
|
303
295
|
}
|
|
304
296
|
);
|
|
305
297
|
};
|
|
306
|
-
const content = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center py-16", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
298
|
+
const content = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center py-16", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLSTNA3js.Loading, { text: loadingText, className: "text-blue-500 dark:text-blue-400 font-medium" }) }) : resolvedGroups.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "-mx-4 -mb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNGSJGXUZjs.Tabs, { type: "line", size: "small", activeKey: currentGroupKey, onChange: handleGroupChange, children: groupTabData.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNGSJGXUZjs.TabPane, { tabKey: tab.key, label: tab.label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-h-[380px] overflow-y-auto", children: renderList(tab.filteredItems) }) }, String(tab.key))) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "-mx-4 -mb-4 max-h-[380px] overflow-y-auto", children: renderList(filteredFlatItems) });
|
|
307
299
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
308
300
|
"div",
|
|
309
301
|
{
|