@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,4 +1,8 @@
|
|
|
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; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
4
|
+
|
|
5
|
+
// src/components/TreeSelect.tsx
|
|
2
6
|
var _react = require('react');
|
|
3
7
|
|
|
4
8
|
|
|
@@ -18,6 +22,8 @@ var _react = require('react');
|
|
|
18
22
|
|
|
19
23
|
|
|
20
24
|
|
|
25
|
+
|
|
26
|
+
|
|
21
27
|
|
|
22
28
|
|
|
23
29
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
@@ -45,12 +51,18 @@ var TreeSelect = (props) => {
|
|
|
45
51
|
clearable = false,
|
|
46
52
|
multiple = false,
|
|
47
53
|
showSearch = false,
|
|
48
|
-
notFoundText
|
|
54
|
+
notFoundText,
|
|
49
55
|
defaultExpandAll = false,
|
|
50
56
|
className,
|
|
51
57
|
onChange,
|
|
58
|
+
locale,
|
|
52
59
|
...rest
|
|
53
60
|
} = props;
|
|
61
|
+
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
62
|
+
const mergedLocale = _react.useMemo.call(void 0,
|
|
63
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
64
|
+
[config.locale, locale]
|
|
65
|
+
);
|
|
54
66
|
const divProps = {};
|
|
55
67
|
for (const key of Object.keys(rest)) {
|
|
56
68
|
if (!TREESELECT_KEYS.has(key)) {
|
|
@@ -204,7 +216,7 @@ var TreeSelect = (props) => {
|
|
|
204
216
|
{
|
|
205
217
|
type: "text",
|
|
206
218
|
className: _tigercatcore.treeSelectSearchClasses,
|
|
207
|
-
placeholder: "Search...",
|
|
219
|
+
placeholder: _tigercatcore.resolveLocaleText.call(void 0, "Search...", _optionalChain([mergedLocale, 'optionalAccess', _4 => _4.common, 'optionalAccess', _5 => _5.searchPlaceholder])),
|
|
208
220
|
value: searchQuery,
|
|
209
221
|
"aria-label": "Search tree",
|
|
210
222
|
onChange: (e) => setSearchQuery(e.target.value)
|
|
@@ -248,7 +260,7 @@ var TreeSelect = (props) => {
|
|
|
248
260
|
},
|
|
249
261
|
String(node.key)
|
|
250
262
|
);
|
|
251
|
-
}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.treeSelectEmptyClasses, children: notFoundText })
|
|
263
|
+
}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.treeSelectEmptyClasses, children: _tigercatcore.resolveLocaleText.call(void 0, "No data", notFoundText, _optionalChain([mergedLocale, 'optionalAccess', _6 => _6.common, 'optionalAccess', _7 => _7.emptyText])) })
|
|
252
264
|
] })
|
|
253
265
|
] });
|
|
254
266
|
};
|
|
@@ -22,7 +22,8 @@ import {
|
|
|
22
22
|
createNotificationStackUpdateScheduler,
|
|
23
23
|
isBrowser,
|
|
24
24
|
ANIMATION_DURATION_MS,
|
|
25
|
-
normalizeStringOption
|
|
25
|
+
normalizeStringOption,
|
|
26
|
+
createInstanceCounter
|
|
26
27
|
} from "@expcat/tigercat-core";
|
|
27
28
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
29
|
var NOTIFICATION_CONTAINER_ID_PREFIX = "tiger-notification-container";
|
|
@@ -32,7 +33,6 @@ var notificationInstancesByPosition = {
|
|
|
32
33
|
"bottom-left": [],
|
|
33
34
|
"bottom-right": []
|
|
34
35
|
};
|
|
35
|
-
var instanceIdCounter = 0;
|
|
36
36
|
var containerRoots = {
|
|
37
37
|
"top-left": null,
|
|
38
38
|
"top-right": null,
|
|
@@ -51,9 +51,7 @@ function scheduleNotificationStackUpdate(position) {
|
|
|
51
51
|
if (!callback) return;
|
|
52
52
|
stackUpdateScheduler.schedule(position, callback);
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
return ++instanceIdCounter;
|
|
56
|
-
}
|
|
54
|
+
var getNextInstanceId = createInstanceCounter();
|
|
57
55
|
var NotificationItem = ({ notification: notification2, onClose }) => {
|
|
58
56
|
const [isVisible, setIsVisible] = useState(false);
|
|
59
57
|
useEffect(() => {
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useInputGroupContext
|
|
3
|
+
} from "./chunk-34VGG7AK.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useControlledState
|
|
6
|
+
} from "./chunk-WHYHLUXG.mjs";
|
|
7
|
+
|
|
1
8
|
// src/components/Input.tsx
|
|
2
9
|
import { useState, useEffect, useRef, useCallback, useId } from "react";
|
|
3
10
|
import {
|
|
@@ -15,7 +22,7 @@ import {
|
|
|
15
22
|
} from "@expcat/tigercat-core";
|
|
16
23
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
24
|
var Input = ({
|
|
18
|
-
size
|
|
25
|
+
size,
|
|
19
26
|
type = "text",
|
|
20
27
|
status = "default",
|
|
21
28
|
errorMessage,
|
|
@@ -47,11 +54,13 @@ var Input = ({
|
|
|
47
54
|
...props
|
|
48
55
|
}) => {
|
|
49
56
|
injectShakeStyle();
|
|
57
|
+
const inputGroup = useInputGroupContext();
|
|
58
|
+
const effectiveSize = size ?? inputGroup?.size ?? "md";
|
|
50
59
|
const wrapperRef = useRef(null);
|
|
51
60
|
const inputRef = useRef(null);
|
|
52
61
|
const reactId = useId();
|
|
53
62
|
const errorMsgId = `tiger-input-error-${reactId}`;
|
|
54
|
-
const [
|
|
63
|
+
const [inputValue, setInputValue] = useControlledState(value, defaultValue ?? "");
|
|
55
64
|
const [passwordVisible, setPasswordVisible] = useState(false);
|
|
56
65
|
useEffect(() => {
|
|
57
66
|
if (status === "error" && wrapperRef.current) {
|
|
@@ -64,25 +73,17 @@ var Input = ({
|
|
|
64
73
|
const handleAnimationEnd = useCallback(() => {
|
|
65
74
|
wrapperRef.current?.classList.remove(SHAKE_CLASS);
|
|
66
75
|
}, []);
|
|
67
|
-
const isControlled = value !== void 0;
|
|
68
|
-
const inputValue = isControlled ? value : internalValue;
|
|
69
76
|
const currentValStr = String(inputValue);
|
|
70
77
|
const handleInput = (event) => {
|
|
71
|
-
|
|
72
|
-
setInternalValue(parseInputValue(event.currentTarget, type));
|
|
73
|
-
}
|
|
78
|
+
setInputValue(parseInputValue(event.currentTarget, type));
|
|
74
79
|
onInput?.(event);
|
|
75
80
|
};
|
|
76
81
|
const handleChange = (event) => {
|
|
77
|
-
|
|
78
|
-
setInternalValue(parseInputValue(event.currentTarget, type));
|
|
79
|
-
}
|
|
82
|
+
setInputValue(parseInputValue(event.currentTarget, type));
|
|
80
83
|
onChange?.(event);
|
|
81
84
|
};
|
|
82
85
|
const handleClear = () => {
|
|
83
|
-
|
|
84
|
-
setInternalValue("");
|
|
85
|
-
}
|
|
86
|
+
setInputValue("");
|
|
86
87
|
onClear?.();
|
|
87
88
|
inputRef.current?.focus();
|
|
88
89
|
};
|
|
@@ -96,21 +97,21 @@ var Input = ({
|
|
|
96
97
|
const showPasswordToggle = showPassword && type === "password" && !disabled;
|
|
97
98
|
const effectiveType = showPassword && type === "password" ? passwordVisible ? "text" : "password" : type;
|
|
98
99
|
const inputClasses = getInputClasses({
|
|
99
|
-
size,
|
|
100
|
+
size: effectiveSize,
|
|
100
101
|
status,
|
|
101
102
|
hasPrefix,
|
|
102
103
|
hasSuffix
|
|
103
104
|
});
|
|
104
105
|
const renderSuffix = () => {
|
|
105
106
|
if (activeError) {
|
|
106
|
-
return /* @__PURE__ */ jsx("div", { id: errorMsgId, className: getInputErrorClasses(
|
|
107
|
+
return /* @__PURE__ */ jsx("div", { id: errorMsgId, className: getInputErrorClasses(effectiveSize), children: errorMessage });
|
|
107
108
|
}
|
|
108
109
|
if (showClear) {
|
|
109
110
|
return /* @__PURE__ */ jsx(
|
|
110
111
|
"button",
|
|
111
112
|
{
|
|
112
113
|
type: "button",
|
|
113
|
-
className: getInputClearButtonClasses(
|
|
114
|
+
className: getInputClearButtonClasses(effectiveSize),
|
|
114
115
|
onClick: handleClear,
|
|
115
116
|
"aria-label": "Clear input",
|
|
116
117
|
tabIndex: -1,
|
|
@@ -123,7 +124,7 @@ var Input = ({
|
|
|
123
124
|
"button",
|
|
124
125
|
{
|
|
125
126
|
type: "button",
|
|
126
|
-
className: getInputPasswordToggleClasses(
|
|
127
|
+
className: getInputPasswordToggleClasses(effectiveSize),
|
|
127
128
|
onClick: togglePasswordVisibility,
|
|
128
129
|
"aria-label": passwordVisible ? "Hide password" : "Show password",
|
|
129
130
|
tabIndex: -1,
|
|
@@ -132,7 +133,7 @@ var Input = ({
|
|
|
132
133
|
);
|
|
133
134
|
}
|
|
134
135
|
if (suffix) {
|
|
135
|
-
return /* @__PURE__ */ jsx("div", { className: getInputAffixClasses("suffix",
|
|
136
|
+
return /* @__PURE__ */ jsx("div", { className: getInputAffixClasses("suffix", effectiveSize), children: suffix });
|
|
136
137
|
}
|
|
137
138
|
return null;
|
|
138
139
|
};
|
|
@@ -144,7 +145,7 @@ var Input = ({
|
|
|
144
145
|
style,
|
|
145
146
|
onAnimationEnd: handleAnimationEnd,
|
|
146
147
|
children: [
|
|
147
|
-
hasPrefix && /* @__PURE__ */ jsx("div", { className: getInputAffixClasses("prefix",
|
|
148
|
+
hasPrefix && /* @__PURE__ */ jsx("div", { className: getInputAffixClasses("prefix", effectiveSize), children: prefix }),
|
|
148
149
|
/* @__PURE__ */ jsx(
|
|
149
150
|
"input",
|
|
150
151
|
{
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkHFGTJEQWjs = require('./chunk-HFGTJEQW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5ALMTE35js = require('./chunk-5ALMTE35.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBR3WLDH7js = require('./chunk-BR3WLDH7.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkLZG24TDBjs = require('./chunk-LZG24TDB.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
16
16
|
|
|
17
17
|
// src/components/Table.tsx
|
|
18
18
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -38,6 +38,7 @@ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
@@ -123,6 +124,9 @@ var LoadingSpinner = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
|
123
124
|
|
|
124
125
|
|
|
125
126
|
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
126
130
|
function useTableState(input) {
|
|
127
131
|
const {
|
|
128
132
|
columns,
|
|
@@ -150,7 +154,7 @@ function useTableState(input) {
|
|
|
150
154
|
onSelectionChange,
|
|
151
155
|
onSortChange,
|
|
152
156
|
onFilterChange,
|
|
153
|
-
|
|
157
|
+
onHiddenColumnKeysChange,
|
|
154
158
|
onPageChange,
|
|
155
159
|
onExpandChange,
|
|
156
160
|
onCellChange,
|
|
@@ -238,7 +242,7 @@ function useTableState(input) {
|
|
|
238
242
|
}, [columns, fixedOverrides, effectiveHiddenColumnKeys]);
|
|
239
243
|
const totalColumnCount = _react.useMemo.call(void 0, () => {
|
|
240
244
|
let count = displayColumns.length;
|
|
241
|
-
if (
|
|
245
|
+
if (_tigercatcore.hasTableSelectionColumn.call(void 0, rowSelection)) count++;
|
|
242
246
|
if (expandable) count++;
|
|
243
247
|
return count;
|
|
244
248
|
}, [displayColumns.length, rowSelection, expandable]);
|
|
@@ -263,7 +267,7 @@ function useTableState(input) {
|
|
|
263
267
|
if (!isHiddenColumnsControlled) {
|
|
264
268
|
setUncontrolledHiddenColumnKeys(hiddenKeys);
|
|
265
269
|
}
|
|
266
|
-
_optionalChain([
|
|
270
|
+
_optionalChain([onHiddenColumnKeysChange, 'optionalCall', _21 => _21(hiddenKeys)]);
|
|
267
271
|
}
|
|
268
272
|
function toggleColumnLock(columnKey) {
|
|
269
273
|
setFixedOverrides((prev) => {
|
|
@@ -281,14 +285,14 @@ function useTableState(input) {
|
|
|
281
285
|
if (filterMode === "advanced" && advancedFilterRules.length > 0) {
|
|
282
286
|
data = _tigercatcore.filterDataAdvanced.call(void 0, data, advancedFilterRules);
|
|
283
287
|
} else {
|
|
284
|
-
data = _tigercatcore.
|
|
288
|
+
data = _tigercatcore.filterTableData.call(void 0, data, columns, filterState);
|
|
285
289
|
}
|
|
286
290
|
if (sortState.key && sortState.direction) {
|
|
287
291
|
const column = columnByKey[sortState.key];
|
|
288
292
|
data = _tigercatcore.sortData.call(void 0, data, sortState.key, sortState.direction, _optionalChain([column, 'optionalAccess', _25 => _25.sortFn]));
|
|
289
293
|
}
|
|
290
294
|
return data;
|
|
291
|
-
}, [dataSource, filterState, sortState, columnByKey, filterMode, advancedFilterRules]);
|
|
295
|
+
}, [dataSource, columns, filterState, sortState, columnByKey, filterMode, advancedFilterRules]);
|
|
292
296
|
const paginatedData = _react.useMemo.call(void 0, () => {
|
|
293
297
|
if (pagination === false) {
|
|
294
298
|
return processedData;
|
|
@@ -406,28 +410,28 @@ function useTableState(input) {
|
|
|
406
410
|
}
|
|
407
411
|
_optionalChain([onSelectionChange, 'optionalCall', _41 => _41(newKeys)]);
|
|
408
412
|
}
|
|
413
|
+
const selectionState = _react.useMemo.call(void 0,
|
|
414
|
+
() => _tigercatcore.getTableSelectionState.call(void 0, {
|
|
415
|
+
records: paginatedData,
|
|
416
|
+
rowKeys: pageRowKeys,
|
|
417
|
+
selectedRowKeys,
|
|
418
|
+
getCheckboxProps: _optionalChain([rowSelection, 'optionalAccess', _42 => _42.getCheckboxProps])
|
|
419
|
+
}),
|
|
420
|
+
[paginatedData, pageRowKeys, selectedRowKeys, rowSelection]
|
|
421
|
+
);
|
|
409
422
|
function handleSelectAll(checked) {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
if (!isSelectionControlled) {
|
|
418
|
-
setUncontrolledSelectedRowKeys([]);
|
|
419
|
-
}
|
|
420
|
-
_optionalChain([onSelectionChange, 'optionalCall', _43 => _43([])]);
|
|
423
|
+
const newKeys = _tigercatcore.getNextTableSelectAllKeys.call(void 0,
|
|
424
|
+
selectedRowKeys,
|
|
425
|
+
selectionState.selectableRowKeys,
|
|
426
|
+
checked
|
|
427
|
+
);
|
|
428
|
+
if (!isSelectionControlled) {
|
|
429
|
+
setUncontrolledSelectedRowKeys(newKeys);
|
|
421
430
|
}
|
|
431
|
+
_optionalChain([onSelectionChange, 'optionalCall', _43 => _43(newKeys)]);
|
|
422
432
|
}
|
|
423
|
-
const allSelected =
|
|
424
|
-
|
|
425
|
-
return pageRowKeys.every((key) => selectedRowKeySet.has(key));
|
|
426
|
-
}, [pageRowKeys, selectedRowKeySet]);
|
|
427
|
-
const someSelected = _react.useMemo.call(void 0,
|
|
428
|
-
() => selectedRowKeys.length > 0 && !allSelected,
|
|
429
|
-
[selectedRowKeys.length, allSelected]
|
|
430
|
-
);
|
|
433
|
+
const allSelected = selectionState.allSelected;
|
|
434
|
+
const someSelected = selectionState.someSelected;
|
|
431
435
|
const [editingCell, setEditingCell] = _react.useState.call(void 0,
|
|
432
436
|
null
|
|
433
437
|
);
|
|
@@ -557,9 +561,10 @@ function renderTableHeader(ctx, view) {
|
|
|
557
561
|
columnLockable,
|
|
558
562
|
columnDraggable,
|
|
559
563
|
lockColumnAriaLabel,
|
|
560
|
-
unlockColumnAriaLabel
|
|
564
|
+
unlockColumnAriaLabel,
|
|
565
|
+
labels
|
|
561
566
|
} = view;
|
|
562
|
-
const expandHeaderTh = expandable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { className: _tigercatcore.getExpandIconCellClasses.call(void 0, size), "aria-label":
|
|
567
|
+
const expandHeaderTh = expandable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { className: _tigercatcore.getExpandIconCellClasses.call(void 0, size), "aria-label": labels.expandText }) : null;
|
|
563
568
|
const expandAtStart = _optionalChain([expandable, 'optionalAccess', _52 => _52.expandIconPosition]) !== "end";
|
|
564
569
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { className: _tigercatcore.getTableHeaderClasses.call(void 0, stickyHeader), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { children: [
|
|
565
570
|
expandAtStart && expandHeaderTh,
|
|
@@ -640,7 +645,7 @@ function renderTableHeader(ctx, view) {
|
|
|
640
645
|
onChange: (e) => ctx.handleFilter(column.key, e.target.value),
|
|
641
646
|
onClick: (e) => e.stopPropagation(),
|
|
642
647
|
children: [
|
|
643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "option", { value: "", children:
|
|
648
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "option", { value: "", children: labels.allText }),
|
|
644
649
|
column.filter.options.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "option", { value: opt.value, children: opt.label }, opt.value))
|
|
645
650
|
]
|
|
646
651
|
}
|
|
@@ -649,7 +654,7 @@ function renderTableHeader(ctx, view) {
|
|
|
649
654
|
{
|
|
650
655
|
type: "text",
|
|
651
656
|
className: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
652
|
-
placeholder: column.filter.placeholder ||
|
|
657
|
+
placeholder: column.filter.placeholder || labels.filterPlaceholder,
|
|
653
658
|
onInput: (e) => ctx.handleFilter(column.key, e.target.value),
|
|
654
659
|
onClick: (e) => e.stopPropagation()
|
|
655
660
|
}
|
|
@@ -682,6 +687,7 @@ function renderTableHeader(ctx, view) {
|
|
|
682
687
|
|
|
683
688
|
|
|
684
689
|
|
|
690
|
+
|
|
685
691
|
function renderTableBody(ctx, view) {
|
|
686
692
|
const {
|
|
687
693
|
size,
|
|
@@ -691,8 +697,11 @@ function renderTableBody(ctx, view) {
|
|
|
691
697
|
emptyText,
|
|
692
698
|
rowSelection,
|
|
693
699
|
expandable,
|
|
700
|
+
labels,
|
|
694
701
|
rowClassName,
|
|
695
|
-
rowDraggable
|
|
702
|
+
rowDraggable,
|
|
703
|
+
interactiveRows,
|
|
704
|
+
virtualWindow
|
|
696
705
|
} = view;
|
|
697
706
|
if (loading) {
|
|
698
707
|
return null;
|
|
@@ -744,7 +753,7 @@ function renderTableBody(ctx, view) {
|
|
|
744
753
|
{
|
|
745
754
|
type: "button",
|
|
746
755
|
className: "inline-flex items-center justify-center",
|
|
747
|
-
"aria-label": isExpanded ?
|
|
756
|
+
"aria-label": isExpanded ? labels.collapseRowAriaLabel : labels.expandRowAriaLabel,
|
|
748
757
|
"aria-expanded": isExpanded,
|
|
749
758
|
onClick: (e) => {
|
|
750
759
|
e.stopPropagation();
|
|
@@ -762,6 +771,15 @@ function renderTableBody(ctx, view) {
|
|
|
762
771
|
_tigercatcore.getTableRowClasses.call(void 0, hoverable, striped, index % 2 === 0, rowClass),
|
|
763
772
|
ctx.fixedColumnsInfo.hasFixedColumns && "group"
|
|
764
773
|
),
|
|
774
|
+
"aria-selected": rowSelection ? isSelected : void 0,
|
|
775
|
+
tabIndex: interactiveRows ? 0 : void 0,
|
|
776
|
+
onKeyDown: interactiveRows ? (e) => {
|
|
777
|
+
if (e.target !== e.currentTarget) return;
|
|
778
|
+
if (_tigercatcore.isActivationKey.call(void 0, e)) {
|
|
779
|
+
e.preventDefault();
|
|
780
|
+
ctx.handleRowClick(record, index, key);
|
|
781
|
+
}
|
|
782
|
+
} : void 0,
|
|
765
783
|
draggable: rowDraggable ? true : void 0,
|
|
766
784
|
children: [
|
|
767
785
|
expandAtStart && expandToggleCell,
|
|
@@ -862,6 +880,33 @@ function renderTableBody(ctx, view) {
|
|
|
862
880
|
}
|
|
863
881
|
);
|
|
864
882
|
}
|
|
883
|
+
if (virtualWindow && virtualWindow.endIndex >= virtualWindow.startIndex) {
|
|
884
|
+
const { startIndex, endIndex, topPad, bottomPad } = virtualWindow;
|
|
885
|
+
const windowed = [];
|
|
886
|
+
if (topPad > 0) {
|
|
887
|
+
windowed.push(
|
|
888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { colSpan: ctx.totalColumnCount, style: { height: `${topPad}px`, padding: 0 } }) }, "virtual-top")
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
for (let index = startIndex; index <= endIndex; index++) {
|
|
892
|
+
windowed.push(renderDataRow(ctx.paginatedData[index], index));
|
|
893
|
+
}
|
|
894
|
+
if (bottomPad > 0) {
|
|
895
|
+
windowed.push(
|
|
896
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { colSpan: ctx.totalColumnCount, style: { height: `${bottomPad}px`, padding: 0 } }) }, "virtual-bottom")
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
900
|
+
"tbody",
|
|
901
|
+
{
|
|
902
|
+
onClick: handleBodyClick,
|
|
903
|
+
onDragStart: rowDraggable ? handleBodyDragStart : void 0,
|
|
904
|
+
onDragOver: rowDraggable ? handleBodyDragOver : void 0,
|
|
905
|
+
onDrop: rowDraggable ? handleBodyDrop : void 0,
|
|
906
|
+
children: windowed
|
|
907
|
+
}
|
|
908
|
+
);
|
|
909
|
+
}
|
|
865
910
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
866
911
|
"tbody",
|
|
867
912
|
{
|
|
@@ -927,7 +972,12 @@ function renderPagination(ctx, view) {
|
|
|
927
972
|
);
|
|
928
973
|
const finalPrevAriaLabel = view.disableI18n ? finalPrevText : labels.prevPageAriaLabel;
|
|
929
974
|
const finalNextAriaLabel = view.disableI18n ? finalNextText : labels.nextPageAriaLabel;
|
|
930
|
-
const normalizedPageSizeOptions = paginationConfig.pageSizeOptions || [
|
|
975
|
+
const normalizedPageSizeOptions = paginationConfig.pageSizeOptions || [
|
|
976
|
+
10,
|
|
977
|
+
20,
|
|
978
|
+
50,
|
|
979
|
+
100
|
|
980
|
+
];
|
|
931
981
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _tigercatcore.getSimplePaginationContainerClasses.call(void 0, ), children: [
|
|
932
982
|
paginationConfig.showTotal !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.getSimplePaginationTotalClasses.call(void 0, ), children: finalTotalText }),
|
|
933
983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _tigercatcore.getSimplePaginationControlsClasses.call(void 0, ), children: [
|
|
@@ -1026,7 +1076,7 @@ function Table({
|
|
|
1026
1076
|
virtual = false,
|
|
1027
1077
|
autoVirtual = true,
|
|
1028
1078
|
virtualHeight = 400,
|
|
1029
|
-
virtualItemHeight
|
|
1079
|
+
virtualItemHeight = 40,
|
|
1030
1080
|
autoVirtualThreshold = 1e4,
|
|
1031
1081
|
virtualThreshold = 1e3,
|
|
1032
1082
|
editable = false,
|
|
@@ -1045,7 +1095,7 @@ function Table({
|
|
|
1045
1095
|
onSelectionChange,
|
|
1046
1096
|
onSortChange,
|
|
1047
1097
|
onFilterChange,
|
|
1048
|
-
|
|
1098
|
+
onHiddenColumnKeysChange,
|
|
1049
1099
|
onPageChange,
|
|
1050
1100
|
onExpandChange,
|
|
1051
1101
|
onCellChange,
|
|
@@ -1148,7 +1198,7 @@ function Table({
|
|
|
1148
1198
|
onSelectionChange,
|
|
1149
1199
|
onSortChange,
|
|
1150
1200
|
onFilterChange,
|
|
1151
|
-
|
|
1201
|
+
onHiddenColumnKeysChange,
|
|
1152
1202
|
onPageChange,
|
|
1153
1203
|
onExpandChange,
|
|
1154
1204
|
onCellChange,
|
|
@@ -1179,6 +1229,16 @@ function Table({
|
|
|
1179
1229
|
[autoVirtual, autoVirtualThreshold, dataSource.length, virtual, virtualThreshold]
|
|
1180
1230
|
);
|
|
1181
1231
|
const effectiveVirtual = virtualRecommendation.enabled;
|
|
1232
|
+
const [virtualScrollTop, setVirtualScrollTop] = _react.useState.call(void 0, 0);
|
|
1233
|
+
const virtualWindow = _react.useMemo.call(void 0,
|
|
1234
|
+
() => effectiveVirtual ? _tigercatcore.getTableVirtualWindow.call(void 0,
|
|
1235
|
+
virtualScrollTop,
|
|
1236
|
+
typeof virtualHeight === "number" ? virtualHeight : 400,
|
|
1237
|
+
virtualItemHeight,
|
|
1238
|
+
ctx.paginatedData.length
|
|
1239
|
+
) : void 0,
|
|
1240
|
+
[effectiveVirtual, virtualScrollTop, virtualHeight, virtualItemHeight, ctx.paginatedData.length]
|
|
1241
|
+
);
|
|
1182
1242
|
const wrapperStyle = _react.useMemo.call(void 0, () => {
|
|
1183
1243
|
if (effectiveVirtual) {
|
|
1184
1244
|
return {
|
|
@@ -1217,6 +1277,7 @@ function Table({
|
|
|
1217
1277
|
maxHeight || (virtual ? virtualHeight : void 0)
|
|
1218
1278
|
),
|
|
1219
1279
|
style: wrapperStyle,
|
|
1280
|
+
onScroll: effectiveVirtual ? (e) => setVirtualScrollTop(e.target.scrollTop) : void 0,
|
|
1220
1281
|
"data-tiger-virtual": virtualRecommendation.enabled ? "enabled" : void 0,
|
|
1221
1282
|
"data-tiger-virtual-auto": virtualRecommendation.autoEnabled ? "true" : void 0,
|
|
1222
1283
|
"data-tiger-virtual-recommended": virtualRecommendation.recommended ? "true" : void 0,
|
|
@@ -1224,7 +1285,16 @@ function Table({
|
|
|
1224
1285
|
"data-tiger-measured-row-height": measuredRowHeights[0] || void 0,
|
|
1225
1286
|
"aria-busy": loading,
|
|
1226
1287
|
children: [
|
|
1227
|
-
exportable && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-2 flex justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1288
|
+
exportable && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-2 flex justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1289
|
+
"button",
|
|
1290
|
+
{
|
|
1291
|
+
type: "button",
|
|
1292
|
+
className: _tigercatcore.tableExportButtonClasses,
|
|
1293
|
+
"aria-label": exportFormat === "excel" ? tableLabels.exportExcelAriaLabel : tableLabels.exportCsvAriaLabel,
|
|
1294
|
+
onClick: ctx.handleExport,
|
|
1295
|
+
children: exportFormat === "excel" ? tableLabels.exportExcelText : tableLabels.exportCsvText
|
|
1296
|
+
}
|
|
1297
|
+
) }),
|
|
1228
1298
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1229
1299
|
"table",
|
|
1230
1300
|
{
|
|
@@ -1262,7 +1332,8 @@ function Table({
|
|
|
1262
1332
|
columnLockable,
|
|
1263
1333
|
columnDraggable,
|
|
1264
1334
|
lockColumnAriaLabel: tableLabels.lockColumnAriaLabel,
|
|
1265
|
-
unlockColumnAriaLabel: tableLabels.unlockColumnAriaLabel
|
|
1335
|
+
unlockColumnAriaLabel: tableLabels.unlockColumnAriaLabel,
|
|
1336
|
+
labels: tableLabels
|
|
1266
1337
|
}),
|
|
1267
1338
|
renderTableBody(ctx, {
|
|
1268
1339
|
size,
|
|
@@ -1272,8 +1343,11 @@ function Table({
|
|
|
1272
1343
|
emptyText: tableLabels.emptyText,
|
|
1273
1344
|
rowSelection: internalRowSelection,
|
|
1274
1345
|
expandable: internalExpandable,
|
|
1346
|
+
labels: tableLabels,
|
|
1275
1347
|
rowClassName: internalRowClassName,
|
|
1276
|
-
rowDraggable
|
|
1348
|
+
rowDraggable,
|
|
1349
|
+
interactiveRows: !!onRowClick || !!internalRowSelection,
|
|
1350
|
+
virtualWindow
|
|
1277
1351
|
}),
|
|
1278
1352
|
renderSummaryRow(ctx, {
|
|
1279
1353
|
size,
|
|
@@ -1291,7 +1365,7 @@ function Table({
|
|
|
1291
1365
|
"data-tiger-table-mobile": "card",
|
|
1292
1366
|
children: [
|
|
1293
1367
|
_optionalChain([internalRowSelection, 'optionalAccess', _68 => _68.type]) !== "radio" && _optionalChain([internalRowSelection, 'optionalAccess', _69 => _69.showCheckbox]) !== false && internalRowSelection && ctx.paginatedData.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-between rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface,#ffffff)] px-3 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1294
|
-
|
|
1368
|
+
_chunkLZG24TDBjs.Checkbox,
|
|
1295
1369
|
{
|
|
1296
1370
|
size: "sm",
|
|
1297
1371
|
checked: ctx.allSelected,
|
|
@@ -1301,7 +1375,7 @@ function Table({
|
|
|
1301
1375
|
}
|
|
1302
1376
|
) }) : null,
|
|
1303
1377
|
ctx.displayColumns.some((column) => column.sortable) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface,#ffffff)] px-3 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1304
|
-
|
|
1378
|
+
_chunkHFGTJEQWjs.Select,
|
|
1305
1379
|
{
|
|
1306
1380
|
size: "sm",
|
|
1307
1381
|
value: ctx.sortState.key && ctx.sortState.direction ? `${ctx.sortState.key}:${ctx.sortState.direction}` : "",
|
|
@@ -1332,7 +1406,7 @@ function Table({
|
|
|
1332
1406
|
}
|
|
1333
1407
|
}
|
|
1334
1408
|
) }) : null,
|
|
1335
|
-
ctx.paginatedData.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.getTableResponsiveCardClasses.call(void 0, cardPadding), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1409
|
+
ctx.paginatedData.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.getTableResponsiveCardClasses.call(void 0, cardPadding), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBR3WLDH7js.Empty, { showImage: false, description: tableLabels.emptyText }) }) : ctx.paginatedData.map((record, index) => {
|
|
1336
1410
|
const key = ctx.pageRowKeys[index];
|
|
1337
1411
|
const isExpanded = ctx.expandedRowKeySet.has(key);
|
|
1338
1412
|
const isSelected = ctx.selectedRowKeySet.has(key);
|
|
@@ -1352,7 +1426,7 @@ function Table({
|
|
|
1352
1426
|
const resolvedCardClassName = typeof cardClassName === "function" ? cardClassName(record, index) : cardClassName;
|
|
1353
1427
|
const controlsNode = _optionalChain([internalRowSelection, 'optionalAccess', _73 => _73.showCheckbox]) !== false && internalRowSelection || internalExpandable && isRowExpandable ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1354
1428
|
internalRowSelection && internalRowSelection.showCheckbox !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { onClick: (event) => event.stopPropagation(), children: internalRowSelection.type === "radio" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1355
|
-
|
|
1429
|
+
_chunk5ALMTE35js.Radio,
|
|
1356
1430
|
{
|
|
1357
1431
|
value: key,
|
|
1358
1432
|
checked: isSelected,
|
|
@@ -1365,7 +1439,7 @@ function Table({
|
|
|
1365
1439
|
onChange: () => ctx.handleSelectRow(key, true)
|
|
1366
1440
|
}
|
|
1367
1441
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1368
|
-
|
|
1442
|
+
_chunkLZG24TDBjs.Checkbox,
|
|
1369
1443
|
{
|
|
1370
1444
|
size: "sm",
|
|
1371
1445
|
checked: isSelected,
|
|
@@ -43,14 +43,7 @@ var Splitter = ({
|
|
|
43
43
|
const totalGutter = (paneCount2 - 1) * gutterSize;
|
|
44
44
|
const total = direction === "horizontal" ? el.clientWidth - totalGutter : el.clientHeight - totalGutter;
|
|
45
45
|
if (controlledSizes && controlledSizes.length > 0) {
|
|
46
|
-
|
|
47
|
-
const sum = controlledSizes.reduce((a, b) => a + b, 0);
|
|
48
|
-
if (sum > 0) {
|
|
49
|
-
setPaneSizes(controlledSizes.map((s) => s / sum * total));
|
|
50
|
-
}
|
|
51
|
-
} else {
|
|
52
|
-
setPaneSizes([...controlledSizes]);
|
|
53
|
-
}
|
|
46
|
+
setPaneSizes([...controlledSizes]);
|
|
54
47
|
} else {
|
|
55
48
|
if (total > 0) {
|
|
56
49
|
const eachSize = total / paneCount2;
|