@vuer-ai/vuer-uikit 0.0.74 → 0.0.76
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/SyncScroll/SyncScroll.cjs +9 -9
- package/dist/SyncScroll/SyncScroll.mjs +2 -2
- package/dist/SyncScroll/index.cjs +9 -9
- package/dist/SyncScroll/index.mjs +2 -2
- package/dist/{chunk-MXXKPTX3.mjs → chunk-25RDJXX7.mjs} +1 -1
- package/dist/chunk-2DA6GE5K.mjs +184 -0
- package/dist/{chunk-YBC47MDX.cjs → chunk-2J75MYQA.cjs} +2 -2
- package/dist/{chunk-54AT7VFI.mjs → chunk-2SWBXWLK.mjs} +1 -1
- package/dist/{chunk-SYRAELOA.mjs → chunk-3DPQXJRL.mjs} +1 -1
- package/dist/{chunk-4MW4SKOD.mjs → chunk-3LO3AM25.mjs} +1 -1
- package/dist/chunk-3MINR6DU.cjs +21 -0
- package/dist/{chunk-FEUYP5OW.mjs → chunk-3THWK3HB.mjs} +1 -1
- package/dist/{chunk-KC7D4OEU.cjs → chunk-3TZL7ET3.cjs} +5 -6
- package/dist/{chunk-7LOOS5CJ.mjs → chunk-42UBHC2D.mjs} +1 -1
- package/dist/{chunk-7C24XIM4.mjs → chunk-4FLE5S5Z.mjs} +1 -1
- package/dist/chunk-5KPZP63X.cjs +36 -0
- package/dist/{chunk-QIOARRDT.cjs → chunk-5MNZYCN2.cjs} +5 -5
- package/dist/{chunk-PIRVEHSD.mjs → chunk-5T7MTIHW.mjs} +1 -1
- package/dist/{chunk-DKAPTFG3.cjs → chunk-5WDPNBQW.cjs} +8 -8
- package/dist/{chunk-SPSBYU5V.cjs → chunk-62VCQ2SU.cjs} +8 -8
- package/dist/{chunk-3TWD622T.cjs → chunk-6AWED2ZK.cjs} +4 -4
- package/dist/{chunk-Z2GGX66U.cjs → chunk-6SV2J2GC.cjs} +2 -2
- package/dist/chunk-6VB53UMO.mjs +35 -0
- package/dist/{chunk-3LO2GIJ4.cjs → chunk-76V4RD4V.cjs} +8 -8
- package/dist/{chunk-2JZMJ2ZP.mjs → chunk-7CTCK26U.mjs} +5 -5
- package/dist/{chunk-X6YX2NAS.cjs → chunk-7DFI7CUK.cjs} +2 -2
- package/dist/chunk-7LLDKYND.mjs +243 -0
- package/dist/{chunk-TCVTXU7U.cjs → chunk-A5LCX2UQ.cjs} +2 -2
- package/dist/{chunk-EWAKGFQG.mjs → chunk-ABLQ4QRY.mjs} +1 -2
- package/dist/{chunk-DLHTCOQO.cjs → chunk-AHNVEAOM.cjs} +18 -18
- package/dist/{chunk-ERN4HL5A.mjs → chunk-AZBJB6KC.mjs} +1 -1
- package/dist/{chunk-3GYDDYRD.mjs → chunk-B53A4WNW.mjs} +1 -1
- package/dist/{chunk-LHQALBTX.cjs → chunk-B55SNJJM.cjs} +4 -4
- package/dist/{chunk-LSZ54G6L.cjs → chunk-BAQY2ANP.cjs} +2 -2
- package/dist/{chunk-F6VF4JAI.mjs → chunk-BCBWIMPS.mjs} +1 -1
- package/dist/{chunk-EEKGYANW.mjs → chunk-BEJIZ56L.mjs} +1 -1
- package/dist/{chunk-NMSI7U5J.mjs → chunk-BGYHKHMQ.mjs} +1 -1
- package/dist/chunk-BWBBQCG2.mjs +217 -0
- package/dist/{chunk-T6NE6TOR.mjs → chunk-CO6EASQO.mjs} +1 -1
- package/dist/chunk-COVQAQYO.mjs +63 -0
- package/dist/{chunk-R2DTBJJV.mjs → chunk-D3IW2NW6.mjs} +1 -1
- package/dist/chunk-D4W2G6CY.cjs +494 -0
- package/dist/{chunk-G73SWE4J.mjs → chunk-DWWM2TV3.mjs} +1 -1
- package/dist/{chunk-IV6NCQWD.mjs → chunk-DYFJAD2K.mjs} +1 -1
- package/dist/{chunk-YIXNFI7D.cjs → chunk-E6D3BSYY.cjs} +22 -22
- package/dist/{chunk-PJJ7CR5M.mjs → chunk-EBBHJLUX.mjs} +1 -1
- package/dist/{chunk-VBIBT2KD.cjs → chunk-EKPJUR3U.cjs} +6 -6
- package/dist/{chunk-XATVREJU.mjs → chunk-ER54LTUC.mjs} +1 -1
- package/dist/{chunk-D57RTQ2Z.cjs → chunk-GWIACOMY.cjs} +10 -10
- package/dist/{chunk-2GLIFBNP.cjs → chunk-GZL34EJN.cjs} +2 -2
- package/dist/{chunk-M4YQQBHS.mjs → chunk-H4IDSUG5.mjs} +1 -1
- package/dist/{chunk-ME6B5H7U.cjs → chunk-HHP7ZB25.cjs} +2 -2
- package/dist/{chunk-KVFUDYD3.mjs → chunk-HMN4IKTG.mjs} +2 -1
- package/dist/{chunk-NQIPNYJK.cjs → chunk-HNTVTCNX.cjs} +2 -2
- package/dist/chunk-HTAFERCZ.mjs +1 -0
- package/dist/chunk-HVVT3D2T.mjs +1 -0
- package/dist/{chunk-HOC7GE4H.mjs → chunk-HWBRKGZJ.mjs} +1 -1
- package/dist/{chunk-CXD4LN7V.mjs → chunk-IBW26377.mjs} +1 -1
- package/dist/{chunk-UAVOCIHE.cjs → chunk-IFCNUMCY.cjs} +2 -2
- package/dist/{chunk-UV3EORBI.cjs → chunk-IJGCH57E.cjs} +2 -2
- package/dist/chunk-IMN6FIOY.cjs +187 -0
- package/dist/{chunk-3MSEMXKG.mjs → chunk-INHZ5D7P.mjs} +1 -1
- package/dist/{chunk-DR5AQ3WH.cjs → chunk-IQAZZPJD.cjs} +4 -4
- package/dist/{chunk-TCPOLLWA.mjs → chunk-IR334P7F.mjs} +1 -1
- package/dist/{chunk-5XHWH2UY.cjs → chunk-JA6XS5KY.cjs} +4 -4
- package/dist/{chunk-XKV3CDJ7.cjs → chunk-JBMXLVXM.cjs} +12 -12
- package/dist/chunk-JD4J3RDN.cjs +132 -0
- package/dist/chunk-JM6NBUDT.cjs +259 -0
- package/dist/{chunk-YTM334QC.mjs → chunk-JRBTIFM6.mjs} +1 -1
- package/dist/{chunk-TNARVKPU.mjs → chunk-JXALL32A.mjs} +1 -1
- package/dist/{chunk-FWH3ACEX.mjs → chunk-JY5TZBRK.mjs} +1 -1
- package/dist/chunk-K6KHDM35.cjs +37 -0
- package/dist/{chunk-WRR5LMHR.cjs → chunk-KAA4NEHL.cjs} +9 -9
- package/dist/{chunk-O7CV47DL.mjs → chunk-KBVBN5Q3.mjs} +1 -1
- package/dist/chunk-KFPS5CCR.cjs +2 -0
- package/dist/{chunk-C7WMCSNN.mjs → chunk-KY4I766B.mjs} +1 -1
- package/dist/{chunk-H5TEN4OP.mjs → chunk-L26ULDYM.mjs} +3 -3
- package/dist/{chunk-W3HZ6BW6.cjs → chunk-L5JZRGNH.cjs} +2 -2
- package/dist/{chunk-OPVNPU6U.cjs → chunk-L6LCOLOV.cjs} +9 -9
- package/dist/{chunk-SHHO7KA5.mjs → chunk-LBENVTO2.mjs} +3 -3
- package/dist/{chunk-MKKH4EGP.cjs → chunk-LCCNBVKZ.cjs} +21 -5
- package/dist/{chunk-7JYI3VUI.mjs → chunk-LG3PNH2P.mjs} +2 -2
- package/dist/{chunk-NW67ZQID.mjs → chunk-LKEPALXM.mjs} +1 -1
- package/dist/{chunk-VL72NS6K.cjs → chunk-LNKZATCP.cjs} +3 -3
- package/dist/{chunk-DQLLLY3Y.cjs → chunk-LPVBUX2J.cjs} +8 -8
- package/dist/{chunk-K6UUQ27N.cjs → chunk-M4IHJGJE.cjs} +2 -2
- package/dist/{chunk-EDLK6SIA.mjs → chunk-MDBCKCGI.mjs} +4 -4
- package/dist/{chunk-NVELFLAS.mjs → chunk-MDUGPQEK.mjs} +1 -1
- package/dist/{chunk-FCDHXWZT.mjs → chunk-MMT74K7A.mjs} +10 -10
- package/dist/{chunk-UYTWOSZB.mjs → chunk-N6DSPSMM.mjs} +1 -1
- package/dist/{chunk-ORNTGLPP.mjs → chunk-NO35POZW.mjs} +1 -1
- package/dist/{chunk-VEO4NX4C.cjs → chunk-NQVD3ZW4.cjs} +2 -2
- package/dist/{chunk-BHC7GX53.cjs → chunk-NSQOQD43.cjs} +2 -2
- package/dist/{chunk-JEIVAYVK.mjs → chunk-NTGUD2JN.mjs} +2 -2
- package/dist/{chunk-PWOICFNA.cjs → chunk-NZOZ3KKM.cjs} +4 -4
- package/dist/chunk-OEM5OJDP.mjs +489 -0
- package/dist/{chunk-DWD754BX.cjs → chunk-OHIB3TEN.cjs} +2 -1
- package/dist/{chunk-SBLDHRRT.cjs → chunk-OMZHB2FB.cjs} +3 -3
- package/dist/{chunk-OKAV7AZP.mjs → chunk-OWGKZAOO.mjs} +1 -1
- package/dist/{chunk-JZYL64WT.cjs → chunk-P3SKSMO7.cjs} +2 -2
- package/dist/{chunk-XSJ6XVTR.mjs → chunk-PCSY5IJ2.mjs} +19 -3
- package/dist/{chunk-5PDVUXZO.mjs → chunk-PO2LYHDO.mjs} +1 -1
- package/dist/chunk-PQEAXTVY.mjs +130 -0
- package/dist/{chunk-ARO7HIKD.cjs → chunk-PQZPTBQR.cjs} +46 -46
- package/dist/{chunk-347DAO5H.cjs → chunk-QBFIZ2VX.cjs} +2 -2
- package/dist/{chunk-6L7FIR3L.cjs → chunk-QCL6NV6L.cjs} +2 -2
- package/dist/{chunk-3BKTGDQM.mjs → chunk-R4JF2SWJ.mjs} +1 -1
- package/dist/chunk-RM7E3WGH.cjs +71 -0
- package/dist/{chunk-2BWTIS6U.cjs → chunk-RU423LFT.cjs} +7 -7
- package/dist/{chunk-CLGNOISX.mjs → chunk-S3HLSB3I.mjs} +1 -1
- package/dist/{chunk-5YXW3C3G.mjs → chunk-S3OW7I3O.mjs} +1 -1
- package/dist/{chunk-T4C3YYFC.mjs → chunk-SA5WKLYB.mjs} +1 -1
- package/dist/{chunk-L433A745.cjs → chunk-SPNDWTSX.cjs} +2 -2
- package/dist/{chunk-Q27ILZE6.mjs → chunk-SUSABE24.mjs} +1 -1
- package/dist/chunk-SYXRPCBO.cjs +220 -0
- package/dist/{chunk-2JDLZHCB.cjs → chunk-T2RTITL6.cjs} +37 -13
- package/dist/{chunk-3AVBTPE6.mjs → chunk-TSHZODTT.mjs} +3 -3
- package/dist/{chunk-IDEJBDZT.cjs → chunk-TUYG6BYZ.cjs} +3 -3
- package/dist/{chunk-PJYCN74V.cjs → chunk-TZC4ST5T.cjs} +20 -20
- package/dist/{chunk-J3ZWVQT7.mjs → chunk-U4OZ35J3.mjs} +1 -1
- package/dist/{chunk-WTUAR2X5.cjs → chunk-UCRLH44Q.cjs} +7 -7
- package/dist/{chunk-LH5AV54U.cjs → chunk-UULSGVNF.cjs} +7 -7
- package/dist/{chunk-LAZO5ZDT.mjs → chunk-V2IP7UUV.mjs} +1 -1
- package/dist/{chunk-JTLBOAN6.cjs → chunk-VADHV4S3.cjs} +9 -9
- package/dist/{chunk-FABHCVYU.cjs → chunk-VBBJSIY7.cjs} +8 -8
- package/dist/{chunk-XL2LLRL5.cjs → chunk-VGM5GQ6Z.cjs} +2 -2
- package/dist/{chunk-3DDKTHKM.cjs → chunk-VJN3GGLZ.cjs} +3 -3
- package/dist/chunk-VJWZW66V.cjs +67 -0
- package/dist/chunk-VOTZLQ6J.cjs +2 -0
- package/dist/{chunk-SCN6F2EN.mjs → chunk-VTEWRMGQ.mjs} +1 -1
- package/dist/chunk-W3J4QTKS.cjs +35 -0
- package/dist/{chunk-IUATO2BH.mjs → chunk-W3RJNSWQ.mjs} +1 -1
- package/dist/chunk-W4CDQ2RJ.mjs +69 -0
- package/dist/{chunk-623MBAXA.mjs → chunk-WHKKMUON.mjs} +7 -7
- package/dist/{chunk-ZNY7VYIN.mjs → chunk-WU3YZHOP.mjs} +29 -5
- package/dist/{chunk-GEV3OT4W.cjs → chunk-WW3RIVOI.cjs} +7 -7
- package/dist/{chunk-5T7CZMWF.mjs → chunk-WWGF6TBZ.mjs} +1 -1
- package/dist/{chunk-QQH3TSI4.cjs → chunk-X2A7TKER.cjs} +10 -10
- package/dist/{chunk-75PCMZP2.cjs → chunk-X5N56TUH.cjs} +2 -2
- package/dist/{chunk-DDPLVMRO.cjs → chunk-XGGAJUY3.cjs} +12 -12
- package/dist/{chunk-F6KFLIZX.cjs → chunk-XLXYQQXJ.cjs} +2 -2
- package/dist/{chunk-MYHEWN2R.cjs → chunk-XZV6ACRQ.cjs} +2 -2
- package/dist/{chunk-3XH7NAMK.mjs → chunk-Y3V6IUAR.mjs} +1 -1
- package/dist/{chunk-6LG57RUT.mjs → chunk-Y6WGGVT2.mjs} +1 -1
- package/dist/{chunk-MDDAL4L5.cjs → chunk-YO6X755G.cjs} +2 -2
- package/dist/{chunk-WVQ4FHYY.cjs → chunk-YQCSEMRB.cjs} +4 -4
- package/dist/{chunk-Z6VNBZYM.mjs → chunk-YTV7747H.mjs} +1 -1
- package/dist/{chunk-UCHEAJWW.cjs → chunk-YXFHJKNW.cjs} +8 -8
- package/dist/{chunk-2CJREAQO.cjs → chunk-ZAP4EHBO.cjs} +9 -9
- package/dist/{chunk-MLS3WBOH.mjs → chunk-ZLXUML4B.mjs} +1 -1
- package/dist/{chunk-TJIDHMTK.mjs → chunk-ZPH5LMEM.mjs} +1 -1
- package/dist/chunk-ZRYL32TK.mjs +34 -0
- package/dist/highlight-cursor/cursor-provider.cjs +3 -3
- package/dist/highlight-cursor/cursor-provider.mjs +2 -2
- package/dist/highlight-cursor/enhanced-components.cjs +12 -12
- package/dist/highlight-cursor/enhanced-components.mjs +7 -7
- package/dist/highlight-cursor/index.cjs +14 -14
- package/dist/highlight-cursor/index.mjs +8 -8
- package/dist/hooks/cn.cjs +2 -2
- package/dist/hooks/cn.mjs +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +351 -310
- package/dist/index.css +6 -2
- package/dist/index.d.cts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.mjs +77 -72
- package/dist/styles/theme.css +6 -2
- package/dist/styles/variables.css +1 -1
- package/dist/ui/UIKitBadge.cjs +6 -6
- package/dist/ui/UIKitBadge.mjs +2 -2
- package/dist/ui/avatar.cjs +12 -12
- package/dist/ui/avatar.mjs +2 -2
- package/dist/ui/badge.cjs +4 -4
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.mjs +2 -2
- package/dist/ui/button.cjs +4 -4
- package/dist/ui/button.mjs +2 -2
- package/dist/ui/card.cjs +9 -9
- package/dist/ui/card.mjs +2 -2
- package/dist/ui/checkbox.cjs +3 -3
- package/dist/ui/checkbox.mjs +2 -2
- package/dist/ui/collapsible.cjs +5 -5
- package/dist/ui/collapsible.mjs +2 -2
- package/dist/ui/drawer.cjs +12 -12
- package/dist/ui/drawer.mjs +2 -2
- package/dist/ui/dropdown.cjs +17 -17
- package/dist/ui/dropdown.mjs +2 -2
- package/dist/ui/index.cjs +335 -294
- package/dist/ui/index.d.cts +9 -5
- package/dist/ui/index.d.ts +9 -5
- package/dist/ui/index.mjs +75 -70
- package/dist/ui/inputs/color-input.cjs +4 -4
- package/dist/ui/inputs/color-input.mjs +3 -3
- package/dist/ui/inputs/index.cjs +48 -48
- package/dist/ui/inputs/index.mjs +19 -19
- package/dist/ui/inputs/input-numbers.cjs +4 -4
- package/dist/ui/inputs/input-numbers.mjs +3 -3
- package/dist/ui/inputs/input.cjs +5 -5
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/inputs/input.mjs +2 -2
- package/dist/ui/inputs/number-inputs/CmInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/CmInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/DegInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/DegInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/InchInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/InchInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/IntInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/IntInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/RadInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/RadInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +6 -6
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +5 -5
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/index.cjs +38 -38
- package/dist/ui/inputs/number-inputs/index.mjs +16 -16
- package/dist/ui/inputs/presets-input.cjs +6 -5
- package/dist/ui/inputs/presets-input.d.cts +7 -3
- package/dist/ui/inputs/presets-input.d.ts +7 -3
- package/dist/ui/inputs/presets-input.mjs +5 -4
- package/dist/ui/label.cjs +3 -3
- package/dist/ui/label.mjs +2 -2
- package/dist/ui/layout.cjs +3 -3
- package/dist/ui/layout.mjs +2 -2
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +3 -3
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +8 -8
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +2 -2
- package/dist/ui/layouts/dock-layout/index.cjs +10 -10
- package/dist/ui/layouts/dock-layout/index.mjs +3 -3
- package/dist/ui/layouts/index.cjs +16 -16
- package/dist/ui/layouts/index.mjs +5 -5
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +8 -8
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +2 -2
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +4 -4
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +3 -3
- package/dist/ui/layouts/liquid-layout/index.cjs +4 -4
- package/dist/ui/layouts/liquid-layout/index.mjs +3 -3
- package/dist/ui/modal.cjs +12 -12
- package/dist/ui/modal.mjs +2 -2
- package/dist/ui/navigation.cjs +4 -4
- package/dist/ui/navigation.mjs +3 -3
- package/dist/ui/pagination.cjs +10 -10
- package/dist/ui/pagination.mjs +3 -3
- package/dist/ui/panel.cjs +9 -9
- package/dist/ui/panel.mjs +2 -2
- package/dist/ui/popover.cjs +6 -6
- package/dist/ui/popover.mjs +2 -2
- package/dist/ui/radio-group.cjs +4 -4
- package/dist/ui/radio-group.mjs +2 -2
- package/dist/ui/resizable.cjs +5 -5
- package/dist/ui/resizable.mjs +2 -2
- package/dist/ui/select.cjs +13 -13
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.mjs +2 -2
- package/dist/ui/separator.cjs +3 -3
- package/dist/ui/separator.mjs +2 -2
- package/dist/ui/sheet.cjs +10 -10
- package/dist/ui/sheet.mjs +2 -2
- package/dist/ui/sidebar.cjs +32 -32
- package/dist/ui/sidebar.mjs +8 -8
- package/dist/ui/{tree-view.cjs → simple-tree-view.cjs} +4 -4
- package/dist/ui/{tree-view.d.cts → simple-tree-view.d.cts} +1 -1
- package/dist/ui/{tree-view.d.ts → simple-tree-view.d.ts} +1 -1
- package/dist/ui/{tree-view.mjs → simple-tree-view.mjs} +2 -2
- package/dist/ui/skeleton.cjs +3 -3
- package/dist/ui/skeleton.mjs +2 -2
- package/dist/ui/slider.cjs +3 -3
- package/dist/ui/slider.mjs +2 -2
- package/dist/ui/switch.cjs +3 -3
- package/dist/ui/switch.mjs +2 -2
- package/dist/ui/table.cjs +10 -10
- package/dist/ui/table.mjs +2 -2
- package/dist/ui/tabs.cjs +6 -6
- package/dist/ui/tabs.mjs +2 -2
- package/dist/ui/textarea.cjs +3 -3
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.mjs +2 -2
- package/dist/ui/theme/ThemeProvider.cjs +26 -14
- package/dist/ui/theme/ThemeProvider.d.cts +16 -4
- package/dist/ui/theme/ThemeProvider.d.ts +16 -4
- package/dist/ui/theme/ThemeProvider.mjs +2 -2
- package/dist/ui/theme/ThemeToggles.cjs +13 -9
- package/dist/ui/theme/ThemeToggles.d.cts +10 -4
- package/dist/ui/theme/ThemeToggles.d.ts +10 -4
- package/dist/ui/theme/ThemeToggles.mjs +6 -6
- package/dist/ui/theme/index.cjs +28 -12
- package/dist/ui/theme/index.d.cts +3 -3
- package/dist/ui/theme/index.d.ts +3 -3
- package/dist/ui/theme/index.mjs +6 -6
- package/dist/ui/theme/themeScript.cjs +2 -2
- package/dist/ui/theme/themeScript.mjs +1 -1
- package/dist/ui/theme/types.d.cts +34 -27
- package/dist/ui/theme/types.d.ts +34 -27
- package/dist/ui/timeline.cjs +7 -6
- package/dist/ui/timeline.d.cts +1 -1
- package/dist/ui/timeline.d.ts +1 -1
- package/dist/ui/timeline.mjs +6 -5
- package/dist/ui/toggle-buttons.cjs +7 -7
- package/dist/ui/toggle-buttons.mjs +2 -2
- package/dist/ui/toggle-group.cjs +5 -5
- package/dist/ui/toggle-group.mjs +2 -2
- package/dist/ui/toggle.cjs +4 -4
- package/dist/ui/toggle.mjs +2 -2
- package/dist/ui/toolbar.cjs +5 -5
- package/dist/ui/toolbar.mjs +2 -2
- package/dist/ui/tooltip.cjs +6 -6
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.mjs +2 -2
- package/dist/ui/tree-view/TreeSearchBar.cjs +22 -0
- package/dist/ui/tree-view/TreeSearchBar.d.cts +16 -0
- package/dist/ui/tree-view/TreeSearchBar.d.ts +16 -0
- package/dist/ui/tree-view/TreeSearchBar.mjs +13 -0
- package/dist/ui/tree-view/TreeView.cjs +24 -0
- package/dist/ui/tree-view/TreeView.d.cts +48 -0
- package/dist/ui/tree-view/TreeView.d.ts +48 -0
- package/dist/ui/tree-view/TreeView.mjs +11 -0
- package/dist/ui/tree-view/hooks.cjs +14 -0
- package/dist/ui/tree-view/hooks.d.cts +38 -0
- package/dist/ui/tree-view/hooks.d.ts +38 -0
- package/dist/ui/tree-view/hooks.mjs +1 -0
- package/dist/ui/tree-view/index.cjs +42 -0
- package/dist/ui/tree-view/index.d.cts +6 -0
- package/dist/ui/tree-view/index.d.ts +6 -0
- package/dist/ui/tree-view/index.mjs +17 -0
- package/dist/ui/tree-view/types.cjs +4 -0
- package/dist/ui/tree-view/types.d.cts +24 -0
- package/dist/ui/tree-view/types.d.ts +24 -0
- package/dist/ui/tree-view/types.mjs +1 -0
- package/dist/ui/tree-view-legacy.cjs +37 -0
- package/dist/ui/tree-view-legacy.d.cts +108 -0
- package/dist/ui/tree-view-legacy.d.ts +108 -0
- package/dist/ui/{tree-view-v2.mjs → tree-view-legacy.mjs} +5 -4
- package/dist/ui/waterfall/CursorOverlay.cjs +3 -3
- package/dist/ui/waterfall/CursorOverlay.mjs +2 -2
- package/dist/ui/waterfall/TimelineEvent.cjs +3 -3
- package/dist/ui/waterfall/TimelineEvent.d.cts +1 -1
- package/dist/ui/waterfall/TimelineEvent.d.ts +1 -1
- package/dist/ui/waterfall/TimelineEvent.mjs +2 -2
- package/dist/ui/waterfall/TimelineProcessBar.cjs +3 -3
- package/dist/ui/waterfall/TimelineProcessBar.d.cts +1 -1
- package/dist/ui/waterfall/TimelineProcessBar.d.ts +1 -1
- package/dist/ui/waterfall/TimelineProcessBar.mjs +2 -2
- package/dist/ui/waterfall/Wedges.cjs +4 -4
- package/dist/ui/waterfall/Wedges.d.cts +1 -1
- package/dist/ui/waterfall/Wedges.d.ts +1 -1
- package/dist/ui/waterfall/Wedges.mjs +2 -2
- package/dist/ui/waterfall/hooks/useTimelineState.d.cts +1 -2
- package/dist/ui/waterfall/hooks/useTimelineState.d.ts +1 -2
- package/dist/ui/waterfall/hooks/useViewport.d.cts +1 -2
- package/dist/ui/waterfall/hooks/useViewport.d.ts +1 -2
- package/dist/ui/waterfall/index.cjs +13 -12
- package/dist/ui/waterfall/index.d.cts +1 -1
- package/dist/ui/waterfall/index.d.ts +1 -1
- package/dist/ui/waterfall/index.mjs +12 -11
- package/dist/ui/waterfall/types.d.cts +1 -2
- package/dist/ui/waterfall/types.d.ts +1 -2
- package/package.json +1 -1
- package/dist/chunk-7PJS7VX3.mjs +0 -18
- package/dist/chunk-BMUCXNQH.cjs +0 -485
- package/dist/chunk-CWBLCQD7.mjs +0 -197
- package/dist/chunk-FOVIOX4K.mjs +0 -483
- package/dist/chunk-GC6LIMCT.mjs +0 -31
- package/dist/chunk-JT64WF26.cjs +0 -210
- package/dist/chunk-MBZTFLHH.cjs +0 -35
- package/dist/chunk-N3ERBIAQ.cjs +0 -20
- package/dist/chunk-NH3Y35ET.cjs +0 -102
- package/dist/chunk-NSI47INE.mjs +0 -77
- package/dist/chunk-OVXFWKYT.cjs +0 -21
- package/dist/chunk-UB6LW4IC.mjs +0 -99
- package/dist/chunk-UMTZY5KK.cjs +0 -33
- package/dist/chunk-YIPI6MEU.cjs +0 -79
- package/dist/ui/tree-view-v2.cjs +0 -24
- package/dist/ui/tree-view-v2.d.cts +0 -43
- package/dist/ui/tree-view-v2.d.ts +0 -43
- /package/dist/{chunk-XMUP5MIM.mjs → chunk-G3EIVAVR.mjs} +0 -0
- /package/dist/{chunk-OX2U5RAG.cjs → chunk-G5NT42YF.cjs} +0 -0
package/dist/chunk-CWBLCQD7.mjs
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { ThemeScript } from './chunk-NSI47INE.mjs';
|
|
2
|
-
import { createContext, useContext, useState, useCallback, useEffect, useMemo } from 'react';
|
|
3
|
-
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var colorSchemes = ["light", "dark"];
|
|
6
|
-
var MEDIA = "(prefers-color-scheme: dark)";
|
|
7
|
-
var isServer = typeof window === "undefined";
|
|
8
|
-
var ThemeContext = createContext(void 0);
|
|
9
|
-
var saveToLS = (storageKey, value) => {
|
|
10
|
-
try {
|
|
11
|
-
localStorage.setItem(storageKey, value);
|
|
12
|
-
} catch {
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var useTheme = () => {
|
|
16
|
-
const context = useContext(ThemeContext);
|
|
17
|
-
if (context === void 0) throw new Error("useTheme must be used within a ThemeProvider");
|
|
18
|
-
return context;
|
|
19
|
-
};
|
|
20
|
-
var ThemeProvider = (props) => {
|
|
21
|
-
const context = useContext(ThemeContext);
|
|
22
|
-
if (context) return /* @__PURE__ */ jsx(Fragment, { children: props.children });
|
|
23
|
-
return /* @__PURE__ */ jsx(Theme, { ...props });
|
|
24
|
-
};
|
|
25
|
-
var defaultThemes = ["light", "dark", "liquid-light", "liquid-dark"];
|
|
26
|
-
var Theme = ({
|
|
27
|
-
forcedTheme,
|
|
28
|
-
disableTransitionOnChange = false,
|
|
29
|
-
enableSystem = true,
|
|
30
|
-
enableColorScheme = false,
|
|
31
|
-
storageKey = "vuer-uikit-theme",
|
|
32
|
-
themes = defaultThemes,
|
|
33
|
-
defaultTheme = enableSystem ? "system" : "light",
|
|
34
|
-
attribute = "class",
|
|
35
|
-
value,
|
|
36
|
-
children,
|
|
37
|
-
nonce,
|
|
38
|
-
scriptProps
|
|
39
|
-
}) => {
|
|
40
|
-
const [theme, setThemeState] = useState(() => getTheme(storageKey, defaultTheme));
|
|
41
|
-
const [resolvedTheme, setResolvedTheme] = useState(
|
|
42
|
-
() => theme === "system" ? getSystemTheme() : theme
|
|
43
|
-
);
|
|
44
|
-
const attrs = !value ? themes : Object.values(value);
|
|
45
|
-
const applyTheme = useCallback(
|
|
46
|
-
(theme2) => {
|
|
47
|
-
let resolved = theme2;
|
|
48
|
-
if (!resolved) return;
|
|
49
|
-
if (theme2 === "system" && enableSystem) {
|
|
50
|
-
resolved = getSystemTheme();
|
|
51
|
-
}
|
|
52
|
-
const name = value ? value[resolved] : resolved;
|
|
53
|
-
const enable = disableTransitionOnChange ? disableAnimation(nonce) : null;
|
|
54
|
-
const d = document.documentElement;
|
|
55
|
-
const handleAttribute = (attr) => {
|
|
56
|
-
if (attr === "class") {
|
|
57
|
-
d.classList.remove(...attrs);
|
|
58
|
-
if (name) d.classList.add(name);
|
|
59
|
-
} else if (attr.startsWith("data-")) {
|
|
60
|
-
if (name) {
|
|
61
|
-
d.setAttribute(attr, name);
|
|
62
|
-
} else {
|
|
63
|
-
d.removeAttribute(attr);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
if (Array.isArray(attribute)) attribute.forEach(handleAttribute);
|
|
68
|
-
else handleAttribute(attribute);
|
|
69
|
-
if (enableColorScheme) {
|
|
70
|
-
const isDark = resolved.includes("dark");
|
|
71
|
-
d.style.colorScheme = isDark ? "dark" : "light";
|
|
72
|
-
}
|
|
73
|
-
enable?.();
|
|
74
|
-
},
|
|
75
|
-
[attribute, attrs, disableTransitionOnChange, enableColorScheme, enableSystem, nonce, value]
|
|
76
|
-
);
|
|
77
|
-
const setTheme = useCallback(
|
|
78
|
-
(value2) => {
|
|
79
|
-
if (typeof value2 === "function") {
|
|
80
|
-
setThemeState((prevTheme) => {
|
|
81
|
-
const newTheme = value2(prevTheme);
|
|
82
|
-
saveToLS(storageKey, newTheme);
|
|
83
|
-
return newTheme;
|
|
84
|
-
});
|
|
85
|
-
} else {
|
|
86
|
-
setThemeState(value2);
|
|
87
|
-
saveToLS(storageKey, value2);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
[storageKey]
|
|
91
|
-
);
|
|
92
|
-
const handleMediaQuery = useCallback(
|
|
93
|
-
(e) => {
|
|
94
|
-
const resolved = getSystemTheme(e);
|
|
95
|
-
setResolvedTheme(resolved);
|
|
96
|
-
if (theme === "system" && enableSystem && !forcedTheme) {
|
|
97
|
-
applyTheme(resolved);
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
[theme, enableSystem, forcedTheme, applyTheme]
|
|
101
|
-
);
|
|
102
|
-
useEffect(() => {
|
|
103
|
-
const media = window.matchMedia(MEDIA);
|
|
104
|
-
media.addListener(handleMediaQuery);
|
|
105
|
-
handleMediaQuery(media);
|
|
106
|
-
return () => media.removeListener(handleMediaQuery);
|
|
107
|
-
}, [handleMediaQuery]);
|
|
108
|
-
useEffect(() => {
|
|
109
|
-
const handleStorage = (e) => {
|
|
110
|
-
if (e.key !== storageKey) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
if (!e.newValue) {
|
|
114
|
-
setTheme(defaultTheme);
|
|
115
|
-
} else {
|
|
116
|
-
setThemeState(e.newValue);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
window.addEventListener("storage", handleStorage);
|
|
120
|
-
return () => window.removeEventListener("storage", handleStorage);
|
|
121
|
-
}, [defaultTheme, setTheme, storageKey]);
|
|
122
|
-
useEffect(() => {
|
|
123
|
-
applyTheme(forcedTheme ?? theme);
|
|
124
|
-
}, [applyTheme, forcedTheme, theme]);
|
|
125
|
-
return /* @__PURE__ */ jsxs(
|
|
126
|
-
ThemeContext.Provider,
|
|
127
|
-
{
|
|
128
|
-
value: useMemo(
|
|
129
|
-
() => ({
|
|
130
|
-
theme,
|
|
131
|
-
setTheme,
|
|
132
|
-
forcedTheme,
|
|
133
|
-
resolvedTheme: theme === "system" ? resolvedTheme : theme,
|
|
134
|
-
themes: enableSystem ? [...themes, "system"] : themes,
|
|
135
|
-
systemTheme: enableSystem ? resolvedTheme : void 0,
|
|
136
|
-
storageKey
|
|
137
|
-
}),
|
|
138
|
-
[theme, setTheme, forcedTheme, resolvedTheme, enableSystem, themes, storageKey]
|
|
139
|
-
),
|
|
140
|
-
children: [
|
|
141
|
-
/* @__PURE__ */ jsx(
|
|
142
|
-
ThemeScript,
|
|
143
|
-
{
|
|
144
|
-
...{
|
|
145
|
-
forcedTheme,
|
|
146
|
-
storageKey,
|
|
147
|
-
attribute,
|
|
148
|
-
enableSystem,
|
|
149
|
-
enableColorScheme,
|
|
150
|
-
defaultTheme,
|
|
151
|
-
value,
|
|
152
|
-
themes,
|
|
153
|
-
nonce,
|
|
154
|
-
scriptProps
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
),
|
|
158
|
-
children
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
};
|
|
163
|
-
var getTheme = (key, fallback) => {
|
|
164
|
-
if (isServer) return fallback;
|
|
165
|
-
let theme;
|
|
166
|
-
try {
|
|
167
|
-
theme = localStorage.getItem(key) || void 0;
|
|
168
|
-
} catch {
|
|
169
|
-
}
|
|
170
|
-
return theme || fallback;
|
|
171
|
-
};
|
|
172
|
-
var disableAnimation = (nonce) => {
|
|
173
|
-
const css = document.createElement("style");
|
|
174
|
-
if (nonce) css.setAttribute("nonce", nonce);
|
|
175
|
-
css.appendChild(
|
|
176
|
-
document.createTextNode(
|
|
177
|
-
`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`
|
|
178
|
-
)
|
|
179
|
-
);
|
|
180
|
-
document.head.appendChild(css);
|
|
181
|
-
return () => {
|
|
182
|
-
(() => window.getComputedStyle(document.body))();
|
|
183
|
-
setTimeout(() => {
|
|
184
|
-
if (css && css.parentNode) {
|
|
185
|
-
css.parentNode.removeChild(css);
|
|
186
|
-
}
|
|
187
|
-
}, 1);
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
var getSystemTheme = (e) => {
|
|
191
|
-
if (isServer) return "liquid-light";
|
|
192
|
-
if (!e) e = window.matchMedia(MEDIA);
|
|
193
|
-
const isDark = e.matches;
|
|
194
|
-
return isDark ? "liquid-dark" : "liquid-light";
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
export { MEDIA, Theme, ThemeContext, ThemeProvider, colorSchemes, defaultThemes, disableAnimation, getSystemTheme, getTheme, isServer, saveToLS, useTheme };
|
package/dist/chunk-FOVIOX4K.mjs
DELETED
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-XSJ6XVTR.mjs';
|
|
2
|
-
import { SyncScroll } from './chunk-EEKGYANW.mjs';
|
|
3
|
-
import { cn } from './chunk-KVFUDYD3.mjs';
|
|
4
|
-
import { Search, CaseSensitive, Regex, ChevronDown } from 'lucide-react';
|
|
5
|
-
import { useState, useMemo, useEffect } from 'react';
|
|
6
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
function TreeView({
|
|
9
|
-
data,
|
|
10
|
-
getIcon,
|
|
11
|
-
onVisibleDataChange,
|
|
12
|
-
onItemHover,
|
|
13
|
-
className,
|
|
14
|
-
hoveredId,
|
|
15
|
-
isSelectable = false,
|
|
16
|
-
selectedItemId,
|
|
17
|
-
onSelectChange,
|
|
18
|
-
isSearchable = true,
|
|
19
|
-
alwaysShowExpand = false,
|
|
20
|
-
useSyncScroll = false
|
|
21
|
-
}) {
|
|
22
|
-
const [expandedItems, setExpandedItems] = useState(() => {
|
|
23
|
-
const initial = /* @__PURE__ */ new Set();
|
|
24
|
-
data.forEach((item) => {
|
|
25
|
-
if (item.isCollapsible) initial.add(item.id);
|
|
26
|
-
});
|
|
27
|
-
return initial;
|
|
28
|
-
});
|
|
29
|
-
const [searchQuery, setSearchQuery] = useState("");
|
|
30
|
-
const [isCaseSensitive, setIsCaseSensitive] = useState(false);
|
|
31
|
-
const [isRegex, setIsRegex] = useState(false);
|
|
32
|
-
const [isRegexValid, setIsRegexValid] = useState(true);
|
|
33
|
-
const toggleItem = (id) => {
|
|
34
|
-
setExpandedItems((prev) => {
|
|
35
|
-
const newSet = new Set(prev);
|
|
36
|
-
if (newSet.has(id)) {
|
|
37
|
-
newSet.delete(id);
|
|
38
|
-
} else {
|
|
39
|
-
newSet.add(id);
|
|
40
|
-
}
|
|
41
|
-
return newSet;
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
const handleItemSelect = (id) => {
|
|
45
|
-
if (isSelectable && onSelectChange) {
|
|
46
|
-
onSelectChange(selectedItemId === id ? null : id);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const hasDescendants = (itemId) => {
|
|
50
|
-
return (childrenMap.get(itemId) || []).length > 0;
|
|
51
|
-
};
|
|
52
|
-
const childrenMap = useMemo(() => {
|
|
53
|
-
const map = /* @__PURE__ */ new Map();
|
|
54
|
-
data.forEach((item) => {
|
|
55
|
-
if (!map.has(item.parentId)) {
|
|
56
|
-
map.set(item.parentId, []);
|
|
57
|
-
}
|
|
58
|
-
map.get(item.parentId).push(item);
|
|
59
|
-
});
|
|
60
|
-
return map;
|
|
61
|
-
}, [data]);
|
|
62
|
-
const dataWithMeta = useMemo(() => {
|
|
63
|
-
const dataMap = new Map(data.map((item) => [item.id, item]));
|
|
64
|
-
const getAncestors = (item) => {
|
|
65
|
-
const ancestors = [];
|
|
66
|
-
let current = item.parentId;
|
|
67
|
-
while (current) {
|
|
68
|
-
const parent = dataMap.get(current);
|
|
69
|
-
if (parent) {
|
|
70
|
-
ancestors.unshift(parent);
|
|
71
|
-
current = parent.parentId;
|
|
72
|
-
} else {
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return ancestors;
|
|
77
|
-
};
|
|
78
|
-
const sortedData = [];
|
|
79
|
-
const visited = /* @__PURE__ */ new Set();
|
|
80
|
-
const traverseNode = (nodeId, depth = 0) => {
|
|
81
|
-
const children = childrenMap.get(nodeId) || [];
|
|
82
|
-
children.forEach((child) => {
|
|
83
|
-
if (!visited.has(child.id)) {
|
|
84
|
-
visited.add(child.id);
|
|
85
|
-
sortedData.push(child);
|
|
86
|
-
traverseNode(child.id, depth + 1);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
traverseNode(null);
|
|
91
|
-
return sortedData.map((item) => {
|
|
92
|
-
const siblings = childrenMap.get(item.parentId) || [];
|
|
93
|
-
const isLast = siblings.length > 0 && siblings[siblings.length - 1].id === item.id;
|
|
94
|
-
const ancestors = getAncestors(item);
|
|
95
|
-
const indent = ancestors.length;
|
|
96
|
-
return { ...item, indent, isLast, ancestors };
|
|
97
|
-
});
|
|
98
|
-
}, [data, childrenMap]);
|
|
99
|
-
const visibleData = useMemo(() => {
|
|
100
|
-
const dataMap = new Map(data.map((item) => [item.id, item]));
|
|
101
|
-
if (!searchQuery) {
|
|
102
|
-
const isVisible = (item) => {
|
|
103
|
-
return item.ancestors.every((ancestor) => expandedItems.has(ancestor.id));
|
|
104
|
-
};
|
|
105
|
-
return dataWithMeta.filter(isVisible);
|
|
106
|
-
}
|
|
107
|
-
const matchingAndAncestorIds = /* @__PURE__ */ new Set();
|
|
108
|
-
let regex = null;
|
|
109
|
-
if (isRegex) {
|
|
110
|
-
try {
|
|
111
|
-
regex = new RegExp(searchQuery, isCaseSensitive ? "" : "i");
|
|
112
|
-
if (!isRegexValid) setIsRegexValid(true);
|
|
113
|
-
} catch {
|
|
114
|
-
if (isRegexValid) setIsRegexValid(false);
|
|
115
|
-
return [];
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
data.forEach((item) => {
|
|
119
|
-
let labelMatches = false;
|
|
120
|
-
if (regex) {
|
|
121
|
-
labelMatches = regex.test(item.label);
|
|
122
|
-
} else {
|
|
123
|
-
const source = isCaseSensitive ? item.label : item.label.toLowerCase();
|
|
124
|
-
const query = isCaseSensitive ? searchQuery : searchQuery.toLowerCase();
|
|
125
|
-
labelMatches = source.includes(query);
|
|
126
|
-
}
|
|
127
|
-
if (labelMatches) {
|
|
128
|
-
matchingAndAncestorIds.add(item.id);
|
|
129
|
-
let current = item.parentId;
|
|
130
|
-
while (current) {
|
|
131
|
-
const parent = dataMap.get(current);
|
|
132
|
-
if (parent) {
|
|
133
|
-
matchingAndAncestorIds.add(parent.id);
|
|
134
|
-
current = parent.parentId;
|
|
135
|
-
} else {
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
return dataWithMeta.filter((item) => matchingAndAncestorIds.has(item.id));
|
|
142
|
-
}, [searchQuery, dataWithMeta, expandedItems, isCaseSensitive, isRegex, isRegexValid, data]);
|
|
143
|
-
const searchResultsCount = useMemo(() => {
|
|
144
|
-
if (!searchQuery || !isRegexValid) return 0;
|
|
145
|
-
let count = 0;
|
|
146
|
-
let regex = null;
|
|
147
|
-
if (isRegex) {
|
|
148
|
-
try {
|
|
149
|
-
regex = new RegExp(searchQuery, isCaseSensitive ? "" : "i");
|
|
150
|
-
} catch {
|
|
151
|
-
return 0;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
data.forEach((item) => {
|
|
155
|
-
let labelMatches = false;
|
|
156
|
-
if (regex) {
|
|
157
|
-
labelMatches = regex.test(item.label);
|
|
158
|
-
} else {
|
|
159
|
-
const source = isCaseSensitive ? item.label : item.label.toLowerCase();
|
|
160
|
-
const query = isCaseSensitive ? searchQuery : searchQuery.toLowerCase();
|
|
161
|
-
labelMatches = source.includes(query);
|
|
162
|
-
}
|
|
163
|
-
if (labelMatches) {
|
|
164
|
-
count++;
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
return count;
|
|
168
|
-
}, [searchQuery, data, isCaseSensitive, isRegex, isRegexValid]);
|
|
169
|
-
useEffect(() => {
|
|
170
|
-
onVisibleDataChange?.(visibleData);
|
|
171
|
-
}, [visibleData, onVisibleDataChange]);
|
|
172
|
-
const renderLabel = (label) => {
|
|
173
|
-
if (!searchQuery || !isRegexValid) {
|
|
174
|
-
return label;
|
|
175
|
-
}
|
|
176
|
-
let regex;
|
|
177
|
-
try {
|
|
178
|
-
regex = new RegExp(`(${searchQuery})`, isCaseSensitive ? "g" : "gi");
|
|
179
|
-
} catch {
|
|
180
|
-
return label;
|
|
181
|
-
}
|
|
182
|
-
const parts = label.split(regex);
|
|
183
|
-
return /* @__PURE__ */ jsx(Fragment, { children: parts.map(
|
|
184
|
-
(part, i) => i % 2 === 1 ? /* @__PURE__ */ jsx("span", { className: "rounded-uk-xs bg-yellow-300 dark:bg-yellow-700", children: part }, i) : part
|
|
185
|
-
) });
|
|
186
|
-
};
|
|
187
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col", className), children: [
|
|
188
|
-
isSearchable && /* @__PURE__ */ jsxs("div", { className: "border-line-primary/50 shrink-0 border-b", children: [
|
|
189
|
-
/* @__PURE__ */ jsxs("div", { className: "flex h-[32px] items-center gap-1 px-2", children: [
|
|
190
|
-
/* @__PURE__ */ jsx(Search, { className: "text-text-secondary size-4" }),
|
|
191
|
-
/* @__PURE__ */ jsx(
|
|
192
|
-
"input",
|
|
193
|
-
{
|
|
194
|
-
type: "text",
|
|
195
|
-
placeholder: "Search...",
|
|
196
|
-
className: cn(
|
|
197
|
-
"text-uk-md w-full bg-transparent focus:outline-none",
|
|
198
|
-
!isRegexValid && "text-red-500"
|
|
199
|
-
),
|
|
200
|
-
value: searchQuery,
|
|
201
|
-
onChange: (e) => setSearchQuery(e.target.value)
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
/* @__PURE__ */ jsxs(TooltipProvider, { delayDuration: 200, children: [
|
|
205
|
-
/* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
206
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
207
|
-
"button",
|
|
208
|
-
{
|
|
209
|
-
onClick: () => setIsCaseSensitive((prev) => !prev),
|
|
210
|
-
className: cn("rounded-uk-sm p-1", isCaseSensitive && "bg-bg-tertiary"),
|
|
211
|
-
children: /* @__PURE__ */ jsx(CaseSensitive, { className: "size-4" })
|
|
212
|
-
}
|
|
213
|
-
) }),
|
|
214
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Case Sensitive" }) })
|
|
215
|
-
] }),
|
|
216
|
-
/* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
217
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
218
|
-
"button",
|
|
219
|
-
{
|
|
220
|
-
onClick: () => setIsRegex((prev) => !prev),
|
|
221
|
-
className: cn("rounded-uk-sm p-1", isRegex && "bg-bg-tertiary"),
|
|
222
|
-
children: /* @__PURE__ */ jsx(Regex, { className: "size-4" })
|
|
223
|
-
}
|
|
224
|
-
) }),
|
|
225
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Use Regular Expression" }) })
|
|
226
|
-
] })
|
|
227
|
-
] })
|
|
228
|
-
] }),
|
|
229
|
-
searchQuery && isRegexValid && /* @__PURE__ */ jsx("div", { className: "flex justify-end px-2 pb-1", children: /* @__PURE__ */ jsxs("span", { className: "text-uk-xs text-text-secondary", children: [
|
|
230
|
-
searchResultsCount,
|
|
231
|
-
" result",
|
|
232
|
-
searchResultsCount !== 1 ? "s" : ""
|
|
233
|
-
] }) })
|
|
234
|
-
] }),
|
|
235
|
-
useSyncScroll ? /* @__PURE__ */ jsx(SyncScroll, { className: "scrollbar-track-transparent flex-1", children: visibleData.map((item) => /* @__PURE__ */ jsxs(
|
|
236
|
-
"div",
|
|
237
|
-
{
|
|
238
|
-
className: cn(
|
|
239
|
-
"group relative flex h-[32px] items-center",
|
|
240
|
-
isSelectable && "rounded-uk-md",
|
|
241
|
-
!item.disable && "cursor-pointer",
|
|
242
|
-
hoveredId === item.id && !item.disable && "bg-bg-secondary",
|
|
243
|
-
isSelectable && selectedItemId === item.id && "bg-brand-primary text-text-withbg"
|
|
244
|
-
),
|
|
245
|
-
onMouseEnter: () => onItemHover?.(item.id),
|
|
246
|
-
onMouseLeave: () => onItemHover?.(null),
|
|
247
|
-
onClick: () => !item.disable && handleItemSelect(item.id),
|
|
248
|
-
children: [
|
|
249
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute top-0 left-[-0.28rem] z-0 flex h-full items-center", children: [
|
|
250
|
-
item.ancestors.map((ancestor, index) => {
|
|
251
|
-
const parentIsLast = dataWithMeta.find((d) => d.id === ancestor.id)?.isLast;
|
|
252
|
-
return /* @__PURE__ */ jsx(
|
|
253
|
-
"div",
|
|
254
|
-
{
|
|
255
|
-
className: cn(
|
|
256
|
-
"h-full w-[1.25rem]",
|
|
257
|
-
parentIsLast ? "" : "border-l",
|
|
258
|
-
"border-line-primary"
|
|
259
|
-
)
|
|
260
|
-
},
|
|
261
|
-
index
|
|
262
|
-
);
|
|
263
|
-
}),
|
|
264
|
-
item.indent > 0 && /* @__PURE__ */ jsxs("div", { className: "relative h-full w-[1.24rem]", children: [
|
|
265
|
-
/* @__PURE__ */ jsx(
|
|
266
|
-
"div",
|
|
267
|
-
{
|
|
268
|
-
className: cn(
|
|
269
|
-
"absolute top-0 left-0 h-1/2 w-1/2 border-b border-l",
|
|
270
|
-
item.isLast ? "rounded-bl-md" : "",
|
|
271
|
-
"border-line-primary"
|
|
272
|
-
)
|
|
273
|
-
}
|
|
274
|
-
),
|
|
275
|
-
!item.isLast && /* @__PURE__ */ jsx("div", { className: "border-line-primary absolute top-1/2 left-0 h-1/2 w-1/2 border-l" })
|
|
276
|
-
] })
|
|
277
|
-
] }),
|
|
278
|
-
/* @__PURE__ */ jsxs(
|
|
279
|
-
"div",
|
|
280
|
-
{
|
|
281
|
-
className: "text-uk-md z-10 flex w-full items-center justify-between gap-2 px-2 whitespace-nowrap",
|
|
282
|
-
style: { paddingLeft: `${item.indent * 1.25 + 0.5}rem` },
|
|
283
|
-
children: [
|
|
284
|
-
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
285
|
-
alwaysShowExpand && hasDescendants(item.id) && !expandedItems.has(item.id) ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
286
|
-
/* @__PURE__ */ jsx(
|
|
287
|
-
"button",
|
|
288
|
-
{
|
|
289
|
-
onClick: (e) => {
|
|
290
|
-
e.stopPropagation();
|
|
291
|
-
toggleItem(item.id);
|
|
292
|
-
},
|
|
293
|
-
className: "flex size-4 cursor-pointer items-center justify-center",
|
|
294
|
-
children: /* @__PURE__ */ jsx(
|
|
295
|
-
ChevronDown,
|
|
296
|
-
{
|
|
297
|
-
className: cn(
|
|
298
|
-
"size-4 -rotate-90 transition-transform",
|
|
299
|
-
item.disable && "text-icon-tertiary"
|
|
300
|
-
)
|
|
301
|
-
}
|
|
302
|
-
)
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
/* @__PURE__ */ jsx(
|
|
306
|
-
"div",
|
|
307
|
-
{
|
|
308
|
-
className: cn(
|
|
309
|
-
"flex size-4 items-center justify-center",
|
|
310
|
-
item.disable && "text-icon-tertiary"
|
|
311
|
-
),
|
|
312
|
-
children: getIcon(item)
|
|
313
|
-
}
|
|
314
|
-
)
|
|
315
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "relative flex size-4 items-center justify-center", children: [
|
|
316
|
-
item.isCollapsible && /* @__PURE__ */ jsx(
|
|
317
|
-
"button",
|
|
318
|
-
{
|
|
319
|
-
onClick: (e) => {
|
|
320
|
-
e.stopPropagation();
|
|
321
|
-
toggleItem(item.id);
|
|
322
|
-
},
|
|
323
|
-
className: "absolute z-20 flex cursor-pointer items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",
|
|
324
|
-
children: /* @__PURE__ */ jsx(
|
|
325
|
-
ChevronDown,
|
|
326
|
-
{
|
|
327
|
-
className: cn(
|
|
328
|
-
"size-4 transition-transform",
|
|
329
|
-
!expandedItems.has(item.id) && "-rotate-90",
|
|
330
|
-
item.disable && "text-icon-tertiary"
|
|
331
|
-
)
|
|
332
|
-
}
|
|
333
|
-
)
|
|
334
|
-
}
|
|
335
|
-
),
|
|
336
|
-
/* @__PURE__ */ jsx(
|
|
337
|
-
"div",
|
|
338
|
-
{
|
|
339
|
-
className: cn(
|
|
340
|
-
"cursor-pointer transition-opacity",
|
|
341
|
-
item.isCollapsible && "group-hover:opacity-0",
|
|
342
|
-
item.disable && "text-icon-tertiary"
|
|
343
|
-
),
|
|
344
|
-
children: getIcon(item)
|
|
345
|
-
}
|
|
346
|
-
)
|
|
347
|
-
] }),
|
|
348
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate", item.disable && "text-text-tertiary"), children: renderLabel(item.label) })
|
|
349
|
-
] }),
|
|
350
|
-
item.actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", onClick: (e) => e.stopPropagation(), children: item.actions })
|
|
351
|
-
]
|
|
352
|
-
}
|
|
353
|
-
)
|
|
354
|
-
]
|
|
355
|
-
},
|
|
356
|
-
item.id
|
|
357
|
-
)) }) : /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: visibleData.map((item) => /* @__PURE__ */ jsxs(
|
|
358
|
-
"div",
|
|
359
|
-
{
|
|
360
|
-
className: cn(
|
|
361
|
-
"group relative flex h-[32px] items-center",
|
|
362
|
-
isSelectable && "rounded-uk-md",
|
|
363
|
-
!item.disable && "cursor-pointer",
|
|
364
|
-
hoveredId === item.id && !item.disable && "bg-bg-secondary",
|
|
365
|
-
isSelectable && selectedItemId === item.id && "bg-brand-primary text-text-withbg"
|
|
366
|
-
),
|
|
367
|
-
onMouseEnter: () => onItemHover?.(item.id),
|
|
368
|
-
onMouseLeave: () => onItemHover?.(null),
|
|
369
|
-
onClick: () => !item.disable && handleItemSelect(item.id),
|
|
370
|
-
children: [
|
|
371
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute top-0 left-[-0.28rem] z-0 flex h-full items-center", children: [
|
|
372
|
-
item.ancestors.map((ancestor, index) => {
|
|
373
|
-
const parentIsLast = dataWithMeta.find((d) => d.id === ancestor.id)?.isLast;
|
|
374
|
-
return /* @__PURE__ */ jsx(
|
|
375
|
-
"div",
|
|
376
|
-
{
|
|
377
|
-
className: cn(
|
|
378
|
-
"h-full w-[1.25rem]",
|
|
379
|
-
parentIsLast ? "" : "border-l",
|
|
380
|
-
"border-line-primary"
|
|
381
|
-
)
|
|
382
|
-
},
|
|
383
|
-
index
|
|
384
|
-
);
|
|
385
|
-
}),
|
|
386
|
-
item.indent > 0 && /* @__PURE__ */ jsxs("div", { className: "relative h-full w-[1.24rem]", children: [
|
|
387
|
-
/* @__PURE__ */ jsx(
|
|
388
|
-
"div",
|
|
389
|
-
{
|
|
390
|
-
className: cn(
|
|
391
|
-
"absolute top-0 left-0 h-1/2 w-1/2 border-b border-l",
|
|
392
|
-
item.isLast ? "rounded-bl-md" : "",
|
|
393
|
-
"border-line-primary"
|
|
394
|
-
)
|
|
395
|
-
}
|
|
396
|
-
),
|
|
397
|
-
!item.isLast && /* @__PURE__ */ jsx("div", { className: "border-line-primary absolute top-1/2 left-0 h-1/2 w-1/2 border-l" })
|
|
398
|
-
] })
|
|
399
|
-
] }),
|
|
400
|
-
/* @__PURE__ */ jsxs(
|
|
401
|
-
"div",
|
|
402
|
-
{
|
|
403
|
-
className: "text-uk-md z-10 flex w-full items-center justify-between gap-2 px-2 whitespace-nowrap",
|
|
404
|
-
style: { paddingLeft: `${item.indent * 1.25 + 0.5}rem` },
|
|
405
|
-
children: [
|
|
406
|
-
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
407
|
-
alwaysShowExpand && hasDescendants(item.id) && !expandedItems.has(item.id) ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
408
|
-
/* @__PURE__ */ jsx(
|
|
409
|
-
"button",
|
|
410
|
-
{
|
|
411
|
-
onClick: (e) => {
|
|
412
|
-
e.stopPropagation();
|
|
413
|
-
toggleItem(item.id);
|
|
414
|
-
},
|
|
415
|
-
className: "flex size-4 cursor-pointer items-center justify-center",
|
|
416
|
-
children: /* @__PURE__ */ jsx(
|
|
417
|
-
ChevronDown,
|
|
418
|
-
{
|
|
419
|
-
className: cn(
|
|
420
|
-
"size-4 -rotate-90 transition-transform",
|
|
421
|
-
item.disable && "text-icon-tertiary"
|
|
422
|
-
)
|
|
423
|
-
}
|
|
424
|
-
)
|
|
425
|
-
}
|
|
426
|
-
),
|
|
427
|
-
/* @__PURE__ */ jsx(
|
|
428
|
-
"div",
|
|
429
|
-
{
|
|
430
|
-
className: cn(
|
|
431
|
-
"flex size-4 items-center justify-center",
|
|
432
|
-
item.disable && "text-icon-tertiary"
|
|
433
|
-
),
|
|
434
|
-
children: getIcon(item)
|
|
435
|
-
}
|
|
436
|
-
)
|
|
437
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "relative flex size-4 items-center justify-center", children: [
|
|
438
|
-
item.isCollapsible && /* @__PURE__ */ jsx(
|
|
439
|
-
"button",
|
|
440
|
-
{
|
|
441
|
-
onClick: (e) => {
|
|
442
|
-
e.stopPropagation();
|
|
443
|
-
toggleItem(item.id);
|
|
444
|
-
},
|
|
445
|
-
className: "absolute z-20 flex cursor-pointer items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",
|
|
446
|
-
children: /* @__PURE__ */ jsx(
|
|
447
|
-
ChevronDown,
|
|
448
|
-
{
|
|
449
|
-
className: cn(
|
|
450
|
-
"size-4 transition-transform",
|
|
451
|
-
!expandedItems.has(item.id) && "-rotate-90",
|
|
452
|
-
item.disable && "text-icon-tertiary"
|
|
453
|
-
)
|
|
454
|
-
}
|
|
455
|
-
)
|
|
456
|
-
}
|
|
457
|
-
),
|
|
458
|
-
/* @__PURE__ */ jsx(
|
|
459
|
-
"div",
|
|
460
|
-
{
|
|
461
|
-
className: cn(
|
|
462
|
-
"cursor-pointer transition-opacity",
|
|
463
|
-
item.isCollapsible && "group-hover:opacity-0",
|
|
464
|
-
item.disable && "text-icon-tertiary"
|
|
465
|
-
),
|
|
466
|
-
children: getIcon(item)
|
|
467
|
-
}
|
|
468
|
-
)
|
|
469
|
-
] }),
|
|
470
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate", item.disable && "text-text-tertiary"), children: renderLabel(item.label) })
|
|
471
|
-
] }),
|
|
472
|
-
item.actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", onClick: (e) => e.stopPropagation(), children: item.actions })
|
|
473
|
-
]
|
|
474
|
-
}
|
|
475
|
-
)
|
|
476
|
-
]
|
|
477
|
-
},
|
|
478
|
-
item.id
|
|
479
|
-
)) })
|
|
480
|
-
] });
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export { TreeView };
|