@vuer-ai/vuer-uikit 0.0.121 → 0.1.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/README.md +28 -0
- package/dist/SyncScroll/SyncScroll.cjs +4 -4
- package/dist/SyncScroll/SyncScroll.mjs +4 -4
- package/dist/SyncScroll/index.cjs +4 -4
- package/dist/SyncScroll/index.mjs +4 -4
- package/dist/SyncScroll/useSyncScroll.d.cts +5 -5
- package/dist/SyncScroll/useSyncScroll.d.ts +5 -5
- package/dist/{chunk-3SUV56TH.mjs → chunk-2IMCDH5J.mjs} +2 -2
- package/dist/{chunk-3P2OP4KO.mjs → chunk-2J466BYZ.mjs} +2 -1
- package/dist/{chunk-QF3JWGWX.cjs → chunk-2KBNQ5PY.cjs} +2 -2
- package/dist/{chunk-D5WTSBUX.cjs → chunk-3UQ323EB.cjs} +6 -40
- package/dist/{chunk-G45SP3DA.mjs → chunk-44U6VC46.mjs} +480 -62
- package/dist/{chunk-VW2NEQHK.cjs → chunk-4FIP3EXW.cjs} +2 -2
- package/dist/chunk-4SI4QV5R.cjs +14 -0
- package/dist/{chunk-O5YP3JQ4.mjs → chunk-4W7JKZVN.mjs} +2 -1
- package/dist/chunk-52GNIM6H.mjs +12 -0
- package/dist/{chunk-6ZLK2RYS.mjs → chunk-5GBMVMLS.mjs} +4 -4
- package/dist/{chunk-MMQR4IEY.cjs → chunk-753HUOAI.cjs} +6 -6
- package/dist/chunk-7MKCWXNV.cjs +32 -0
- package/dist/{chunk-ZQ2DPA2M.mjs → chunk-7WJ73FEI.mjs} +1 -1
- package/dist/{chunk-XMVARRN6.cjs → chunk-AFALU3AK.cjs} +2 -2
- package/dist/{chunk-XDIHVSZ5.cjs → chunk-BNXJ5VBE.cjs} +2 -2
- package/dist/{chunk-YBUMQX6M.mjs → chunk-BPCD4L7T.mjs} +1 -1
- package/dist/{chunk-BDFUHPX2.mjs → chunk-BTGAKK3B.mjs} +1 -1
- package/dist/{chunk-4G2LN6XU.cjs → chunk-BXJTOIRR.cjs} +513 -93
- package/dist/{chunk-B6CIRZI4.cjs → chunk-BZI74LKX.cjs} +1 -0
- package/dist/{chunk-KWSH253U.cjs → chunk-CMO3SLOU.cjs} +2 -2
- package/dist/{chunk-HGN7J4CP.mjs → chunk-D2LUQKPM.mjs} +128 -89
- package/dist/chunk-DF7WIFZK.cjs +316 -0
- package/dist/{chunk-HVACIZB5.cjs → chunk-DKLVWYTC.cjs} +29 -12
- package/dist/chunk-DKWLF3KW.mjs +149 -0
- package/dist/{chunk-4WKFVKFF.cjs → chunk-DPJPOBUT.cjs} +2 -2
- package/dist/{chunk-XHNM6XE3.mjs → chunk-EG6JETUN.mjs} +1 -1
- package/dist/{chunk-QYYMLZFE.mjs → chunk-EXM6QMNR.mjs} +1 -1
- package/dist/{chunk-2KQXKQNU.mjs → chunk-EYMZP5PL.mjs} +1 -1
- package/dist/chunk-FRM27RLN.cjs +264 -0
- package/dist/chunk-FTB337IJ.cjs +143 -0
- package/dist/{chunk-PZDC5ZKG.mjs → chunk-G35PQKU5.mjs} +3 -3
- package/dist/{chunk-BLG4IPRR.mjs → chunk-GAAP5JO4.mjs} +1 -1
- package/dist/{chunk-LOMLR5AA.mjs → chunk-HI4LO6IJ.mjs} +1 -1
- package/dist/{chunk-FUMJBAQI.mjs → chunk-HNW2DRPV.mjs} +2 -6
- package/dist/{chunk-YAFKQ5ZV.cjs → chunk-HSUL5OUG.cjs} +2 -1
- package/dist/{chunk-KKGDRIR2.cjs → chunk-I2COLDHC.cjs} +2 -2
- package/dist/{chunk-E7ACJ3NX.cjs → chunk-IAWMCOHS.cjs} +2 -2
- package/dist/{chunk-PC42NEBI.mjs → chunk-ITOTSGSL.mjs} +1 -1
- package/dist/{chunk-CEYNTMQP.mjs → chunk-IYTGWOZY.mjs} +1 -1
- package/dist/chunk-J74A5LNZ.cjs +179 -0
- package/dist/{chunk-CV2EDA3W.cjs → chunk-JDEZ6NNG.cjs} +2 -2
- package/dist/chunk-JEWTYDLX.cjs +119 -0
- package/dist/{chunk-UTHAZV2T.cjs → chunk-JTFQFULL.cjs} +2 -6
- package/dist/{chunk-GJKFQHUX.mjs → chunk-KXKUQSNY.mjs} +1 -1
- package/dist/chunk-L2AKG4VJ.mjs +258 -0
- package/dist/{chunk-7MR3M2HW.mjs → chunk-L2DME42Q.mjs} +1 -1
- package/dist/{chunk-Z7PWETGZ.mjs → chunk-LHP7FLGK.mjs} +1 -1
- package/dist/{chunk-LJYIEOGQ.mjs → chunk-LLFE3UHZ.mjs} +5 -5
- package/dist/chunk-NUBFD3YP.mjs +117 -0
- package/dist/{chunk-COL2MXGC.cjs → chunk-OX5FXH6W.cjs} +2 -2
- package/dist/{chunk-COJRGW3A.cjs → chunk-P7J7XHDE.cjs} +2 -2
- package/dist/chunk-PHRZ5JE6.mjs +1 -0
- package/dist/chunk-PMYOKSO3.mjs +30 -0
- package/dist/chunk-PTUZYCOY.mjs +314 -0
- package/dist/{chunk-WQT7JQN4.cjs → chunk-PZZW3E5D.cjs} +2 -2
- package/dist/chunk-Q3UN25WC.mjs +141 -0
- package/dist/{chunk-JVZ6J2UX.cjs → chunk-QS6WNNLM.cjs} +2 -2
- package/dist/{chunk-S4BL7C3Y.mjs → chunk-QSDYNIZB.mjs} +1 -0
- package/dist/{chunk-WYD3KNAT.cjs → chunk-QTLUPDLH.cjs} +5 -4
- package/dist/{chunk-NC2U7QTW.cjs → chunk-RHVKIZMQ.cjs} +2 -2
- package/dist/{chunk-67H3OSM3.mjs → chunk-RR76Z6OK.mjs} +2 -2
- package/dist/chunk-SBAVMK7J.cjs +181 -0
- package/dist/{chunk-GBRIW266.cjs → chunk-SOHGIAGF.cjs} +2 -2
- package/dist/{chunk-4YVKJKWV.mjs → chunk-TCCFFSXM.mjs} +27 -10
- package/dist/{chunk-EMZEL54F.cjs → chunk-THE6FZKP.cjs} +2 -0
- package/dist/{chunk-DGJ7E77I.mjs → chunk-TQOGGHSJ.mjs} +1 -1
- package/dist/{chunk-XC25ZQ7H.mjs → chunk-UBGNADCN.mjs} +1 -1
- package/dist/chunk-UEHPZIQB.cjs +2 -0
- package/dist/{chunk-DG2EVWIW.cjs → chunk-UZTOUPJ7.cjs} +128 -89
- package/dist/{chunk-HUPECWNG.mjs → chunk-V4THHKSO.mjs} +1 -1
- package/dist/chunk-VDYJAOMN.mjs +177 -0
- package/dist/{chunk-6NSLYQ35.mjs → chunk-VLNU7Y2K.mjs} +7 -42
- package/dist/{chunk-Z42BBOSG.cjs → chunk-VT6E2N6C.cjs} +2 -2
- package/dist/{chunk-RS4T6S3Z.mjs → chunk-VWLZKPDB.mjs} +5 -4
- package/dist/{chunk-OON7LFBQ.cjs → chunk-W22SQYEO.cjs} +6 -6
- package/dist/{chunk-42DBXENE.cjs → chunk-WGY33IHV.cjs} +2 -2
- package/dist/{chunk-EOTGD64D.cjs → chunk-WX3VWVWD.cjs} +2 -2
- package/dist/{chunk-UFYHIDMC.cjs → chunk-WZQ2BT3P.cjs} +25 -6
- package/dist/{chunk-KR7VBV3B.cjs → chunk-XIDCYS6G.cjs} +2 -1
- package/dist/chunk-YDF6VWBW.cjs +151 -0
- package/dist/{chunk-FB3M2JJV.cjs → chunk-YQL6JDVP.cjs} +5 -5
- package/dist/{chunk-7RRQ2HHL.mjs → chunk-YRNI7ZJ7.mjs} +25 -6
- package/dist/{chunk-FK6ZROZE.mjs → chunk-ZJYPKTF4.mjs} +2 -1
- package/dist/chunk-ZMRODJ3I.mjs +149 -0
- package/dist/dial/DialPanel.cjs +66 -56
- package/dist/dial/DialPanel.d.cts +4 -3
- package/dist/dial/DialPanel.d.ts +4 -3
- package/dist/dial/DialPanel.mjs +65 -55
- package/dist/dial/DialProvider.d.cts +3 -3
- package/dist/dial/DialProvider.d.ts +3 -3
- package/dist/dial/IconRenderer.d.cts +2 -2
- package/dist/dial/IconRenderer.d.ts +2 -2
- package/dist/dial/components/DialButton.cjs +22 -0
- package/dist/dial/components/DialButton.d.cts +28 -0
- package/dist/dial/components/DialButton.d.ts +28 -0
- package/dist/dial/components/DialButton.mjs +13 -0
- package/dist/dial/components/DialCustom.cjs +11 -0
- package/dist/dial/components/DialCustom.d.cts +34 -0
- package/dist/dial/components/DialCustom.d.ts +34 -0
- package/dist/dial/components/DialCustom.mjs +2 -0
- package/dist/dial/components/index.cjs +29 -0
- package/dist/dial/components/index.d.cts +4 -0
- package/dist/dial/components/index.d.ts +4 -0
- package/dist/dial/components/index.mjs +16 -0
- package/dist/dial/index.cjs +90 -72
- package/dist/dial/index.d.cts +4 -1
- package/dist/dial/index.d.ts +4 -1
- package/dist/dial/index.mjs +65 -55
- package/dist/dial/types.d.cts +4 -93
- package/dist/dial/types.d.ts +4 -93
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +70 -60
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +7 -6
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +7 -6
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +65 -55
- package/dist/{auth/components/index.cjs → dial/wrapped-inputs/DialArrayInput.cjs} +67 -57
- package/dist/dial/wrapped-inputs/DialArrayInput.d.cts +20 -0
- package/dist/dial/wrapped-inputs/DialArrayInput.d.ts +20 -0
- package/dist/{auth/components/index.mjs → dial/wrapped-inputs/DialArrayInput.mjs} +65 -55
- package/dist/dial/wrapped-inputs/DialInputs.cjs +79 -69
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +18 -15
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +18 -15
- package/dist/dial/wrapped-inputs/DialInputs.mjs +65 -55
- package/dist/dial/wrapped-inputs/DialInterfaceInput.cjs +66 -56
- package/dist/dial/wrapped-inputs/DialInterfaceInput.d.cts +7 -2
- package/dist/dial/wrapped-inputs/DialInterfaceInput.d.ts +7 -2
- package/dist/dial/wrapped-inputs/DialInterfaceInput.mjs +65 -55
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +56 -49
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +3 -2
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +3 -2
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +55 -48
- package/dist/dial/wrapped-inputs/DialTupleInput.cjs +139 -0
- package/dist/dial/wrapped-inputs/DialTupleInput.d.cts +18 -0
- package/dist/dial/wrapped-inputs/DialTupleInput.d.ts +18 -0
- package/dist/dial/wrapped-inputs/DialTupleInput.mjs +130 -0
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +66 -56
- package/dist/dial/wrapped-inputs/DialVectorInput.d.cts +2 -2
- package/dist/dial/wrapped-inputs/DialVectorInput.d.ts +2 -2
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +65 -55
- package/dist/dial/wrapped-inputs/index.cjs +94 -76
- package/dist/dial/wrapped-inputs/index.d.cts +3 -0
- package/dist/dial/wrapped-inputs/index.d.ts +3 -0
- package/dist/dial/wrapped-inputs/index.mjs +65 -55
- package/dist/highlight-cursor/cursor-context.d.cts +2 -2
- package/dist/highlight-cursor/cursor-context.d.ts +2 -2
- package/dist/highlight-cursor/cursor-provider.cjs +2 -2
- package/dist/highlight-cursor/cursor-provider.d.cts +1 -1
- package/dist/highlight-cursor/cursor-provider.d.ts +1 -1
- package/dist/highlight-cursor/cursor-provider.mjs +1 -1
- package/dist/highlight-cursor/enhanced-components.cjs +14 -14
- package/dist/highlight-cursor/enhanced-components.d.cts +4 -4
- package/dist/highlight-cursor/enhanced-components.d.ts +4 -4
- package/dist/highlight-cursor/enhanced-components.mjs +9 -9
- package/dist/highlight-cursor/index.cjs +16 -16
- package/dist/highlight-cursor/index.mjs +10 -10
- package/dist/highlight-cursor/types.d.cts +2 -1
- package/dist/highlight-cursor/types.d.ts +2 -1
- package/dist/highlight-cursor/with-cursor.d.cts +2 -2
- package/dist/highlight-cursor/with-cursor.d.ts +2 -2
- package/dist/hooks/clientOnly.d.cts +4 -4
- package/dist/hooks/clientOnly.d.ts +4 -4
- package/dist/hooks/index.cjs +20 -20
- package/dist/hooks/index.mjs +4 -4
- package/dist/index.cjs +340 -254
- package/dist/index.css +13 -13
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.mjs +65 -55
- package/dist/schema-types-D9b7Dc1G.d.cts +163 -0
- package/dist/schema-types-D9b7Dc1G.d.ts +163 -0
- package/dist/styles/theme.css +1 -1
- package/dist/ui/DialBadge.cjs +9 -9
- package/dist/ui/DialBadge.mjs +5 -5
- package/dist/ui/UIKitBadge.cjs +9 -9
- package/dist/ui/UIKitBadge.mjs +5 -5
- package/dist/ui/alert-dialog.cjs +60 -0
- package/dist/ui/alert-dialog.d.cts +17 -0
- package/dist/ui/alert-dialog.d.ts +17 -0
- package/dist/ui/alert-dialog.mjs +11 -0
- package/dist/ui/avatar.cjs +4 -4
- package/dist/ui/avatar.d.cts +2 -2
- package/dist/ui/avatar.d.ts +2 -2
- package/dist/ui/avatar.mjs +4 -4
- package/dist/ui/badge.cjs +7 -7
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.mjs +5 -5
- package/dist/ui/button.cjs +4 -4
- package/dist/ui/button.d.cts +2 -2
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.mjs +4 -4
- package/dist/ui/card.cjs +12 -12
- package/dist/ui/card.mjs +5 -5
- package/dist/ui/checkbox.cjs +4 -4
- package/dist/ui/checkbox.mjs +4 -4
- package/dist/ui/collapsible.cjs +4 -4
- package/dist/ui/collapsible.mjs +4 -4
- package/dist/ui/context-menu.cjs +4 -4
- package/dist/ui/context-menu.mjs +4 -4
- package/dist/ui/drag-selectable/createSelectable.d.cts +2 -2
- package/dist/ui/drag-selectable/createSelectable.d.ts +2 -2
- package/dist/ui/drawer.cjs +4 -4
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.ts +11 -11
- package/dist/ui/drawer.mjs +4 -4
- package/dist/ui/dropdown.cjs +4 -4
- package/dist/ui/dropdown.mjs +4 -4
- package/dist/ui/icons/index.cjs +9 -9
- package/dist/ui/icons/index.mjs +1 -1
- package/dist/ui/index.cjs +246 -171
- package/dist/ui/index.d.cts +10 -2
- package/dist/ui/index.d.ts +10 -2
- package/dist/ui/index.mjs +52 -45
- package/dist/ui/inputs/color-input.cjs +6 -6
- package/dist/ui/inputs/color-input.d.cts +7 -3
- package/dist/ui/inputs/color-input.d.ts +7 -3
- package/dist/ui/inputs/color-input.mjs +5 -5
- package/dist/ui/inputs/index.cjs +50 -50
- package/dist/ui/inputs/index.mjs +21 -21
- package/dist/ui/inputs/input-numbers.cjs +6 -6
- package/dist/ui/inputs/input-numbers.d.cts +7 -3
- package/dist/ui/inputs/input-numbers.d.ts +7 -3
- package/dist/ui/inputs/input-numbers.mjs +5 -5
- package/dist/ui/inputs/input.cjs +4 -4
- package/dist/ui/inputs/input.d.cts +4 -4
- package/dist/ui/inputs/input.d.ts +4 -4
- package/dist/ui/inputs/input.mjs +4 -4
- package/dist/ui/inputs/number-inputs/CmInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/CmInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/CmInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/CmInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/DegInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/DegInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/DegInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/DegInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/EulerDegInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/EulerDegInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/EulerInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerRadInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/EulerRadInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/InchInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/InchInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/InchInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/InchInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/IntInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/IntInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/IntInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/IntInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/KVectorInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/KVectorInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/QuaternionInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/QuaternionInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/RadInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/RadInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/RadInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/RadInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/TimeInput.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/TimeInput.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +8 -8
- package/dist/ui/inputs/number-inputs/Vec3Input.d.cts +2 -2
- package/dist/ui/inputs/number-inputs/Vec3Input.d.ts +2 -2
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +7 -7
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/VectorInput.d.cts +4 -2
- package/dist/ui/inputs/number-inputs/VectorInput.d.ts +4 -2
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/index.cjs +41 -41
- package/dist/ui/inputs/number-inputs/index.mjs +18 -18
- package/dist/ui/inputs/presets-input.cjs +7 -7
- package/dist/ui/inputs/presets-input.d.cts +2 -2
- package/dist/ui/inputs/presets-input.d.ts +2 -2
- package/dist/ui/inputs/presets-input.mjs +6 -6
- package/dist/ui/inputs/presets-rad-input.cjs +8 -8
- package/dist/ui/inputs/presets-rad-input.d.cts +2 -2
- package/dist/ui/inputs/presets-rad-input.d.ts +2 -2
- package/dist/ui/inputs/presets-rad-input.mjs +7 -7
- package/dist/ui/inputs/text-input.cjs +4 -4
- package/dist/ui/inputs/text-input.d.cts +2 -2
- package/dist/ui/inputs/text-input.d.ts +2 -2
- package/dist/ui/inputs/text-input.mjs +4 -4
- package/dist/ui/label.cjs +4 -4
- package/dist/ui/label.d.cts +4 -4
- package/dist/ui/label.d.ts +4 -4
- package/dist/ui/label.mjs +4 -4
- package/dist/ui/layout.cjs +4 -4
- package/dist/ui/layout.mjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +4 -4
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +4 -4
- package/dist/ui/layouts/dock-layout/LayoutSlots.d.cts +3 -3
- package/dist/ui/layouts/dock-layout/LayoutSlots.d.ts +3 -3
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +4 -4
- package/dist/ui/layouts/dock-layout/index.cjs +4 -4
- package/dist/ui/layouts/dock-layout/index.mjs +4 -4
- package/dist/ui/layouts/index.cjs +5 -5
- package/dist/ui/layouts/index.mjs +5 -5
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +4 -4
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +4 -4
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +4 -4
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +4 -4
- package/dist/ui/layouts/liquid-layout/index.cjs +4 -4
- package/dist/ui/layouts/liquid-layout/index.mjs +4 -4
- package/dist/ui/modal.cjs +4 -4
- package/dist/ui/modal.mjs +4 -4
- package/dist/ui/navigation.cjs +4 -4
- package/dist/ui/navigation.d.cts +2 -2
- package/dist/ui/navigation.d.ts +2 -2
- package/dist/ui/navigation.mjs +4 -4
- package/dist/ui/pagination.cjs +4 -4
- package/dist/ui/pagination.mjs +4 -4
- package/dist/ui/popover.cjs +13 -9
- package/dist/ui/popover.d.cts +18 -8
- package/dist/ui/popover.d.ts +18 -8
- package/dist/ui/popover.mjs +5 -5
- package/dist/ui/progress.cjs +4 -4
- package/dist/ui/progress.mjs +4 -4
- package/dist/ui/radio-group.cjs +4 -4
- package/dist/ui/radio-group.mjs +4 -4
- package/dist/ui/resizable.cjs +4 -4
- package/dist/ui/resizable.d.cts +2 -2
- package/dist/ui/resizable.d.ts +2 -2
- package/dist/ui/resizable.mjs +4 -4
- package/dist/ui/select.cjs +16 -16
- package/dist/ui/select.d.cts +3 -2
- package/dist/ui/select.d.ts +3 -2
- package/dist/ui/select.mjs +5 -5
- package/dist/ui/separator.cjs +4 -4
- package/dist/ui/separator.mjs +4 -4
- package/dist/ui/sheet.cjs +4 -4
- package/dist/ui/sheet.mjs +4 -4
- package/dist/ui/sidebar.cjs +4 -4
- package/dist/ui/sidebar.mjs +4 -4
- package/dist/ui/simple-tree-view.cjs +4 -4
- package/dist/ui/simple-tree-view.d.cts +2 -2
- package/dist/ui/simple-tree-view.d.ts +2 -2
- package/dist/ui/simple-tree-view.mjs +4 -4
- package/dist/ui/skeleton.cjs +4 -4
- package/dist/ui/skeleton.mjs +4 -4
- package/dist/ui/slider.cjs +4 -4
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/slider.mjs +4 -4
- package/dist/ui/switch.cjs +6 -6
- package/dist/ui/switch.d.cts +4 -1
- package/dist/ui/switch.d.ts +4 -1
- package/dist/ui/switch.mjs +5 -5
- package/dist/ui/table.cjs +4 -4
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/table.mjs +4 -4
- package/dist/ui/tabs.cjs +13 -9
- package/dist/ui/tabs.d.cts +4 -1
- package/dist/ui/tabs.d.ts +4 -1
- package/dist/ui/tabs.mjs +5 -5
- package/dist/ui/textarea.cjs +4 -4
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.mjs +4 -4
- package/dist/ui/theme/ThemeProvider.cjs +15 -15
- package/dist/ui/theme/ThemeProvider.d.cts +2 -2
- package/dist/ui/theme/ThemeProvider.d.ts +2 -2
- package/dist/ui/theme/ThemeProvider.mjs +1 -1
- package/dist/ui/theme/ThemeToggles.cjs +8 -8
- package/dist/ui/theme/ThemeToggles.d.cts +18 -3
- package/dist/ui/theme/ThemeToggles.d.ts +18 -3
- package/dist/ui/theme/ThemeToggles.mjs +6 -6
- package/dist/ui/theme/index.cjs +12 -12
- package/dist/ui/theme/index.mjs +6 -6
- package/dist/ui/theme/themeScript.d.cts +2 -2
- package/dist/ui/theme/themeScript.d.ts +2 -2
- package/dist/ui/toast.cjs +9 -9
- package/dist/ui/toast.mjs +7 -7
- package/dist/ui/toggle-buttons.cjs +4 -4
- package/dist/ui/toggle-buttons.d.cts +7 -7
- package/dist/ui/toggle-buttons.d.ts +7 -7
- package/dist/ui/toggle-buttons.mjs +4 -4
- package/dist/ui/toggle-group.cjs +4 -4
- package/dist/ui/toggle-group.d.cts +3 -3
- package/dist/ui/toggle-group.d.ts +3 -3
- package/dist/ui/toggle-group.mjs +4 -4
- package/dist/ui/toggle.cjs +4 -4
- package/dist/ui/toggle.mjs +4 -4
- package/dist/ui/toolbar.cjs +4 -4
- package/dist/ui/toolbar.mjs +4 -4
- package/dist/ui/tooltip.cjs +4 -4
- package/dist/ui/tooltip.mjs +4 -4
- package/dist/ui/tree-view/TreeSearchBar.cjs +4 -4
- package/dist/ui/tree-view/TreeSearchBar.mjs +4 -4
- package/dist/ui/tree-view/TreeView.cjs +7 -7
- package/dist/ui/tree-view/TreeView.mjs +5 -5
- package/dist/ui/tree-view/index.cjs +12 -12
- package/dist/ui/tree-view/index.mjs +6 -6
- package/dist/ui/tree-view/types.d.cts +1 -0
- package/dist/ui/tree-view/types.d.ts +1 -0
- package/dist/ui/tree-view-legacy.cjs +4 -4
- package/dist/ui/tree-view-legacy.mjs +4 -4
- package/dist/ui/virtual-grid/VirtualGrid.cjs +21 -0
- package/dist/ui/virtual-grid/VirtualGrid.d.cts +10 -0
- package/dist/ui/virtual-grid/VirtualGrid.d.ts +10 -0
- package/dist/ui/virtual-grid/VirtualGrid.mjs +12 -0
- package/dist/ui/virtual-grid/index.cjs +26 -0
- package/dist/ui/virtual-grid/index.d.cts +4 -0
- package/dist/ui/virtual-grid/index.d.ts +4 -0
- package/dist/ui/virtual-grid/index.mjs +13 -0
- package/dist/ui/virtual-grid/types.cjs +2 -0
- package/dist/ui/virtual-grid/types.d.cts +70 -0
- package/dist/ui/virtual-grid/types.d.ts +70 -0
- package/dist/ui/virtual-grid/types.mjs +1 -0
- package/dist/ui/virtual-grid/useVirtualGrid.cjs +10 -0
- package/dist/ui/virtual-grid/useVirtualGrid.d.cts +9 -0
- package/dist/ui/virtual-grid/useVirtualGrid.d.ts +9 -0
- package/dist/ui/virtual-grid/useVirtualGrid.mjs +1 -0
- package/dist/ui/virtual-list/VirtualList.cjs +21 -0
- package/dist/ui/virtual-list/VirtualList.d.cts +10 -0
- package/dist/ui/virtual-list/VirtualList.d.ts +10 -0
- package/dist/ui/virtual-list/VirtualList.mjs +12 -0
- package/dist/ui/virtual-list/index.cjs +26 -0
- package/dist/ui/virtual-list/index.d.cts +4 -0
- package/dist/ui/virtual-list/index.d.ts +4 -0
- package/dist/ui/virtual-list/index.mjs +13 -0
- package/dist/ui/virtual-list/types.cjs +2 -0
- package/dist/ui/virtual-list/types.d.cts +54 -0
- package/dist/ui/virtual-list/types.d.ts +54 -0
- package/dist/ui/virtual-list/types.mjs +1 -0
- package/dist/ui/virtual-list/useVirtualList.cjs +10 -0
- package/dist/ui/virtual-list/useVirtualList.d.cts +9 -0
- package/dist/ui/virtual-list/useVirtualList.d.ts +9 -0
- package/dist/ui/virtual-list/useVirtualList.mjs +1 -0
- package/dist/ui/waterfall/CursorOverlay.cjs +4 -4
- package/dist/ui/waterfall/CursorOverlay.mjs +4 -4
- package/dist/ui/waterfall/NavigationControls.d.cts +2 -2
- package/dist/ui/waterfall/NavigationControls.d.ts +2 -2
- package/dist/ui/waterfall/TimelineEvent.cjs +4 -4
- package/dist/ui/waterfall/TimelineEvent.mjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.cjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.mjs +4 -4
- package/dist/ui/waterfall/Wedges.cjs +4 -4
- package/dist/ui/waterfall/Wedges.mjs +4 -4
- package/dist/ui/waterfall/WheelZoomContext.d.cts +2 -2
- package/dist/ui/waterfall/WheelZoomContext.d.ts +2 -2
- package/dist/ui/waterfall/hooks/useTimelineState.d.cts +4 -3
- package/dist/ui/waterfall/hooks/useTimelineState.d.ts +4 -3
- package/dist/ui/waterfall/hooks/useViewport.d.cts +4 -4
- package/dist/ui/waterfall/hooks/useViewport.d.ts +4 -4
- package/dist/ui/waterfall/index.cjs +13 -13
- package/dist/ui/waterfall/index.d.cts +2 -2
- package/dist/ui/waterfall/index.d.ts +2 -2
- package/dist/ui/waterfall/index.mjs +12 -12
- package/package.json +5 -9
- package/src/dial/DialPanel.tsx +118 -6
- package/src/dial/components/DialButton.tsx +52 -0
- package/src/dial/components/DialCustom.tsx +45 -0
- package/src/dial/components/index.ts +3 -0
- package/src/dial/index.ts +4 -1
- package/src/dial/types.ts +4 -12
- package/src/dial/wrapped-inputs/ControlledInputs.tsx +16 -11
- package/src/dial/wrapped-inputs/DialArrayInput.tsx +175 -0
- package/src/dial/wrapped-inputs/DialInputs.tsx +117 -22
- package/src/dial/wrapped-inputs/DialInterfaceInput.tsx +48 -12
- package/src/dial/wrapped-inputs/DialPresetsInput.tsx +1 -1
- package/src/dial/wrapped-inputs/DialTupleInput.tsx +102 -0
- package/src/dial/wrapped-inputs/DialVectorInput.tsx +9 -4
- package/src/dial/wrapped-inputs/index.ts +6 -0
- package/src/highlight-cursor/cursor-provider.tsx +279 -131
- package/src/highlight-cursor/types.ts +2 -1
- package/src/styles/theme.css +2 -2
- package/src/ui/alert-dialog.tsx +168 -0
- package/src/ui/badge.tsx +1 -0
- package/src/ui/card.tsx +1 -5
- package/src/ui/index.ts +4 -0
- package/src/ui/inputs/color-input.tsx +92 -8
- package/src/ui/inputs/input-numbers.tsx +148 -92
- package/src/ui/inputs/number-inputs/VectorInput.tsx +2 -0
- package/src/ui/popover.tsx +10 -49
- package/src/ui/select.tsx +5 -2
- package/src/ui/switch.tsx +7 -2
- package/src/ui/tabs.tsx +2 -1
- package/src/ui/theme/ThemeProvider.tsx +4 -3
- package/src/ui/theme/ThemeToggles.tsx +48 -12
- package/src/ui/toast.tsx +1 -3
- package/src/ui/tree-view/TreeView.tsx +37 -8
- package/src/ui/tree-view/types.ts +1 -0
- package/src/ui/virtual-grid/VirtualGrid.tsx +345 -0
- package/src/ui/virtual-grid/index.ts +10 -0
- package/src/ui/virtual-grid/types.ts +72 -0
- package/src/ui/virtual-grid/useVirtualGrid.ts +243 -0
- package/src/ui/virtual-list/VirtualList.tsx +207 -0
- package/src/ui/virtual-list/index.ts +8 -0
- package/src/ui/virtual-list/types.ts +54 -0
- package/src/ui/virtual-list/useVirtualList.ts +203 -0
- package/dist/auth/components/index.d.cts +0 -2
- package/dist/auth/components/index.d.ts +0 -2
- package/dist/auth/components/user-avatar/index.cjs +0 -128
- package/dist/auth/components/user-avatar/index.d.cts +0 -8
- package/dist/auth/components/user-avatar/index.d.ts +0 -8
- package/dist/auth/components/user-avatar/index.mjs +0 -119
- package/dist/auth/context/user-context.cjs +0 -10
- package/dist/auth/context/user-context.d.cts +0 -13
- package/dist/auth/context/user-context.d.ts +0 -13
- package/dist/auth/context/user-context.mjs +0 -1
- package/dist/auth/handler/fetch-auth.cjs +0 -11
- package/dist/auth/handler/fetch-auth.d.cts +0 -3
- package/dist/auth/handler/fetch-auth.d.ts +0 -3
- package/dist/auth/handler/fetch-auth.mjs +0 -2
- package/dist/auth/handler/fetch-server.cjs +0 -11
- package/dist/auth/handler/fetch-server.d.cts +0 -3
- package/dist/auth/handler/fetch-server.d.ts +0 -3
- package/dist/auth/handler/fetch-server.mjs +0 -2
- package/dist/auth/handler/get-session.cjs +0 -12
- package/dist/auth/handler/get-session.d.cts +0 -21
- package/dist/auth/handler/get-session.d.ts +0 -21
- package/dist/auth/handler/get-session.mjs +0 -3
- package/dist/auth/handler/get-sessions.cjs +0 -12
- package/dist/auth/handler/get-sessions.d.cts +0 -21
- package/dist/auth/handler/get-sessions.d.ts +0 -21
- package/dist/auth/handler/get-sessions.mjs +0 -3
- package/dist/auth/handler/sign-in-handler.cjs +0 -11
- package/dist/auth/handler/sign-in-handler.d.cts +0 -6
- package/dist/auth/handler/sign-in-handler.d.ts +0 -6
- package/dist/auth/handler/sign-in-handler.mjs +0 -2
- package/dist/auth/handler/sign-out-handler.cjs +0 -12
- package/dist/auth/handler/sign-out-handler.d.cts +0 -5
- package/dist/auth/handler/sign-out-handler.d.ts +0 -5
- package/dist/auth/handler/sign-out-handler.mjs +0 -3
- package/dist/auth/hooks/use-sign-in.cjs +0 -14
- package/dist/auth/hooks/use-sign-in.d.cts +0 -9
- package/dist/auth/hooks/use-sign-in.d.ts +0 -9
- package/dist/auth/hooks/use-sign-in.mjs +0 -5
- package/dist/auth/hooks/use-sign-out.cjs +0 -15
- package/dist/auth/hooks/use-sign-out.d.cts +0 -6
- package/dist/auth/hooks/use-sign-out.d.ts +0 -6
- package/dist/auth/hooks/use-sign-out.mjs +0 -6
- package/dist/auth/hooks/use-user.cjs +0 -11
- package/dist/auth/hooks/use-user.d.cts +0 -8
- package/dist/auth/hooks/use-user.d.ts +0 -8
- package/dist/auth/hooks/use-user.mjs +0 -2
- package/dist/auth/hooks/use-vuer-sessions.cjs +0 -15
- package/dist/auth/hooks/use-vuer-sessions.d.cts +0 -9
- package/dist/auth/hooks/use-vuer-sessions.d.ts +0 -9
- package/dist/auth/hooks/use-vuer-sessions.mjs +0 -6
- package/dist/auth/index.cjs +0 -166
- package/dist/auth/index.d.cts +0 -13
- package/dist/auth/index.d.ts +0 -13
- package/dist/auth/index.mjs +0 -125
- package/dist/auth/localstorage-key.cjs +0 -14
- package/dist/auth/localstorage-key.d.cts +0 -4
- package/dist/auth/localstorage-key.d.ts +0 -4
- package/dist/auth/localstorage-key.mjs +0 -1
- package/dist/auth/types.d.cts +0 -27
- package/dist/auth/types.d.ts +0 -27
- package/dist/auth/vuer-user-provider.cjs +0 -14
- package/dist/auth/vuer-user-provider.d.cts +0 -9
- package/dist/auth/vuer-user-provider.d.ts +0 -9
- package/dist/auth/vuer-user-provider.mjs +0 -5
- package/dist/chunk-2DXJJLJL.mjs +0 -51
- package/dist/chunk-3WMO5QJJ.cjs +0 -8
- package/dist/chunk-4TRHQ7MJ.cjs +0 -68
- package/dist/chunk-5OHAV55L.mjs +0 -24
- package/dist/chunk-6GJM7TPE.cjs +0 -28
- package/dist/chunk-7E5Y224I.cjs +0 -14
- package/dist/chunk-7R5HY3IM.cjs +0 -12
- package/dist/chunk-C4U5BMQH.mjs +0 -206
- package/dist/chunk-EMVKGL5D.mjs +0 -28
- package/dist/chunk-EMXEFZEB.cjs +0 -30
- package/dist/chunk-F4Z5KATZ.cjs +0 -8
- package/dist/chunk-FROQ45MN.mjs +0 -6
- package/dist/chunk-HOMAESTR.mjs +0 -12
- package/dist/chunk-HZBP6QTE.cjs +0 -208
- package/dist/chunk-IKSER6BF.mjs +0 -66
- package/dist/chunk-KIZEJMW4.cjs +0 -15
- package/dist/chunk-MO5V43Z3.mjs +0 -13
- package/dist/chunk-MRMSCW3P.cjs +0 -19
- package/dist/chunk-OOHCJIRV.cjs +0 -26
- package/dist/chunk-PX2H7Z4D.mjs +0 -26
- package/dist/chunk-PXDT5GFJ.mjs +0 -13
- package/dist/chunk-Q76WU4DL.cjs +0 -17
- package/dist/chunk-RSBVQ7SJ.cjs +0 -54
- package/dist/chunk-RTZNHV43.cjs +0 -58
- package/dist/chunk-SO2UTKSV.mjs +0 -17
- package/dist/chunk-SQJL67BU.mjs +0 -56
- package/dist/chunk-UT7B4TLZ.mjs +0 -5
- package/dist/chunk-V4KDK3BN.mjs +0 -52
- package/dist/chunk-VSFPXAGN.mjs +0 -10
- package/dist/chunk-VSIOXWSI.cjs +0 -53
- package/dist/chunk-X3H6FYAM.cjs +0 -15
- package/dist/chunk-Z7BZFZEV.mjs +0 -15
- package/src/auth/components/index.ts +0 -1
- package/src/auth/components/user-avatar/index.tsx +0 -94
- package/src/auth/context/user-context.ts +0 -15
- package/src/auth/handler/fetch-auth.ts +0 -10
- package/src/auth/handler/fetch-server.ts +0 -10
- package/src/auth/handler/get-session.ts +0 -19
- package/src/auth/handler/get-sessions.ts +0 -16
- package/src/auth/handler/sign-in-handler.ts +0 -64
- package/src/auth/handler/sign-out-handler.ts +0 -9
- package/src/auth/hooks/use-sign-in.ts +0 -33
- package/src/auth/hooks/use-sign-out.ts +0 -30
- package/src/auth/hooks/use-user.ts +0 -10
- package/src/auth/hooks/use-vuer-sessions.ts +0 -29
- package/src/auth/index.ts +0 -12
- package/src/auth/localstorage-key.ts +0 -3
- package/src/auth/types.ts +0 -38
- package/src/auth/vuer-user-provider.tsx +0 -58
- /package/dist/{auth/types.mjs → chunk-6NZ5VXK7.mjs} +0 -0
- /package/dist/{auth/types.cjs → chunk-AS3GNGJN.cjs} +0 -0
- /package/dist/{chunk-NK7L5H2Y.cjs → chunk-DPILGC4Y.cjs} +0 -0
- /package/dist/{chunk-OBWKFURE.cjs → chunk-IM5QVMGO.cjs} +0 -0
- /package/dist/{chunk-U4AANBRZ.mjs → chunk-NU5W73NH.mjs} +0 -0
- /package/dist/{chunk-UXWS62ZO.mjs → chunk-O57DAVOQ.mjs} +0 -0
|
@@ -13,11 +13,7 @@ var cardVariants = cva(
|
|
|
13
13
|
"rounded-uk-xl",
|
|
14
14
|
"bg-bg-primary",
|
|
15
15
|
"liquid-dark:liquid-dark-bg",
|
|
16
|
-
"liquid-
|
|
17
|
-
"liquid-dark:border-[rgba(85,85,85,100)]",
|
|
18
|
-
"liquid-light:liquid-light-bg",
|
|
19
|
-
"liquid-light:border-[0.8px]",
|
|
20
|
-
"liquid-light:border-[white]"
|
|
16
|
+
"liquid-light:liquid-light-bg"
|
|
21
17
|
],
|
|
22
18
|
{
|
|
23
19
|
variants: {
|
|
@@ -53,7 +49,7 @@ function Card({
|
|
|
53
49
|
...props,
|
|
54
50
|
children: [
|
|
55
51
|
collapsedContent,
|
|
56
|
-
/* @__PURE__ */ jsx("div", { className: "right-lg absolute top-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsx(
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "right-lg absolute top-1/2 h-6 -translate-y-1/2", children: /* @__PURE__ */ jsx(
|
|
57
53
|
Button,
|
|
58
54
|
{
|
|
59
55
|
variant: "ghost",
|
|
@@ -101,6 +101,7 @@ function SelectTrigger({
|
|
|
101
101
|
state,
|
|
102
102
|
font,
|
|
103
103
|
align,
|
|
104
|
+
icon,
|
|
104
105
|
...props
|
|
105
106
|
}) {
|
|
106
107
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -121,7 +122,7 @@ function SelectTrigger({
|
|
|
121
122
|
...props,
|
|
122
123
|
children: [
|
|
123
124
|
children,
|
|
124
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "opacity-50" }) })
|
|
125
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: icon || /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "opacity-50" }) })
|
|
125
126
|
]
|
|
126
127
|
}
|
|
127
128
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUZTOUPJ7_cjs = require('./chunk-UZTOUPJ7.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
7
7
|
var InchInput = react.forwardRef(function InchInput2({ value = 0, onChange, ...props }, ref) {
|
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
|
|
9
|
+
chunkUZTOUPJ7_cjs.InputNumbers,
|
|
10
10
|
{
|
|
11
11
|
ref,
|
|
12
12
|
value: [value],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2KBNQ5PY_cjs = require('./chunk-2KBNQ5PY.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var EulerRadInput = react.forwardRef(function EulerRadInput2({ value, onValuesCh
|
|
|
31
31
|
}, [display]);
|
|
32
32
|
const labels = [`x${unitSymbol}`, `y${unitSymbol}`, `z${unitSymbol}`];
|
|
33
33
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
-
|
|
34
|
+
chunk2KBNQ5PY_cjs.VectorInput,
|
|
35
35
|
{
|
|
36
36
|
ref,
|
|
37
37
|
value: displayValues,
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
|
|
5
|
+
// src/ui/virtual-grid/useVirtualGrid.ts
|
|
6
|
+
function getHeight(rowHeight, rowIndex) {
|
|
7
|
+
return typeof rowHeight === "function" ? rowHeight(rowIndex) : rowHeight;
|
|
8
|
+
}
|
|
9
|
+
function getWidth(columnWidth, colIndex) {
|
|
10
|
+
return typeof columnWidth === "function" ? columnWidth(colIndex) : columnWidth;
|
|
11
|
+
}
|
|
12
|
+
function findStartIndex(count, scrollOffset, getSize) {
|
|
13
|
+
if (count === 0) return 0;
|
|
14
|
+
let offset = 0;
|
|
15
|
+
let low = 0;
|
|
16
|
+
let high = count - 1;
|
|
17
|
+
while (low <= high) {
|
|
18
|
+
const mid = Math.floor((low + high) / 2);
|
|
19
|
+
let midOffset = 0;
|
|
20
|
+
for (let i = 0; i < mid; i++) {
|
|
21
|
+
midOffset += getSize(i);
|
|
22
|
+
}
|
|
23
|
+
if (midOffset < scrollOffset) {
|
|
24
|
+
low = mid + 1;
|
|
25
|
+
offset = midOffset;
|
|
26
|
+
} else if (midOffset > scrollOffset) {
|
|
27
|
+
high = mid - 1;
|
|
28
|
+
} else {
|
|
29
|
+
return mid;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
let index = Math.max(0, low - 1);
|
|
33
|
+
offset = 0;
|
|
34
|
+
for (let i = 0; i < index; i++) {
|
|
35
|
+
offset += getSize(i);
|
|
36
|
+
}
|
|
37
|
+
while (index < count - 1 && offset + getSize(index) <= scrollOffset) {
|
|
38
|
+
offset += getSize(index);
|
|
39
|
+
index++;
|
|
40
|
+
}
|
|
41
|
+
return index;
|
|
42
|
+
}
|
|
43
|
+
function useVirtualGrid({
|
|
44
|
+
rowCount,
|
|
45
|
+
columnCount,
|
|
46
|
+
rowHeight,
|
|
47
|
+
columnWidth,
|
|
48
|
+
containerWidth,
|
|
49
|
+
containerHeight,
|
|
50
|
+
scrollTop,
|
|
51
|
+
scrollLeft,
|
|
52
|
+
overscanRows,
|
|
53
|
+
overscanColumns,
|
|
54
|
+
getColSpan = () => 1,
|
|
55
|
+
getRowSpan = () => 1
|
|
56
|
+
}) {
|
|
57
|
+
const getRowHeightFn = react.useCallback((index) => getHeight(rowHeight, index), [rowHeight]);
|
|
58
|
+
const getColumnWidthFn = react.useCallback(
|
|
59
|
+
(index) => getWidth(columnWidth, index),
|
|
60
|
+
[columnWidth]
|
|
61
|
+
);
|
|
62
|
+
const totalHeight = react.useMemo(() => {
|
|
63
|
+
let height = 0;
|
|
64
|
+
for (let i = 0; i < rowCount; i++) {
|
|
65
|
+
height += getRowHeightFn(i);
|
|
66
|
+
}
|
|
67
|
+
return height;
|
|
68
|
+
}, [rowCount, getRowHeightFn]);
|
|
69
|
+
const totalWidth = react.useMemo(() => {
|
|
70
|
+
let width = 0;
|
|
71
|
+
for (let i = 0; i < columnCount; i++) {
|
|
72
|
+
width += getColumnWidthFn(i);
|
|
73
|
+
}
|
|
74
|
+
return width;
|
|
75
|
+
}, [columnCount, getColumnWidthFn]);
|
|
76
|
+
const rowOffsets = react.useMemo(() => {
|
|
77
|
+
const offsets = [0];
|
|
78
|
+
for (let i = 0; i < rowCount; i++) {
|
|
79
|
+
offsets.push(offsets[i] + getRowHeightFn(i));
|
|
80
|
+
}
|
|
81
|
+
return offsets;
|
|
82
|
+
}, [rowCount, getRowHeightFn]);
|
|
83
|
+
const columnOffsets = react.useMemo(() => {
|
|
84
|
+
const offsets = [0];
|
|
85
|
+
for (let i = 0; i < columnCount; i++) {
|
|
86
|
+
offsets.push(offsets[i] + getColumnWidthFn(i));
|
|
87
|
+
}
|
|
88
|
+
return offsets;
|
|
89
|
+
}, [columnCount, getColumnWidthFn]);
|
|
90
|
+
const getRowOffset = react.useCallback((rowIndex) => rowOffsets[rowIndex] ?? 0, [rowOffsets]);
|
|
91
|
+
const getColumnOffset = react.useCallback(
|
|
92
|
+
(colIndex) => columnOffsets[colIndex] ?? 0,
|
|
93
|
+
[columnOffsets]
|
|
94
|
+
);
|
|
95
|
+
const visibleRange = react.useMemo(() => {
|
|
96
|
+
if (rowCount === 0 || columnCount === 0) {
|
|
97
|
+
return { startRow: 0, endRow: 0, startCol: 0, endCol: 0 };
|
|
98
|
+
}
|
|
99
|
+
const startRow = findStartIndex(rowCount, scrollTop, getRowHeightFn);
|
|
100
|
+
let endRow = startRow;
|
|
101
|
+
let accumulatedHeight = getRowOffset(startRow) - scrollTop;
|
|
102
|
+
while (endRow < rowCount - 1 && accumulatedHeight < containerHeight) {
|
|
103
|
+
accumulatedHeight += getRowHeightFn(endRow);
|
|
104
|
+
endRow++;
|
|
105
|
+
}
|
|
106
|
+
const startCol = findStartIndex(columnCount, scrollLeft, getColumnWidthFn);
|
|
107
|
+
let endCol = startCol;
|
|
108
|
+
let accumulatedWidth = getColumnOffset(startCol) - scrollLeft;
|
|
109
|
+
while (endCol < columnCount - 1 && accumulatedWidth < containerWidth) {
|
|
110
|
+
accumulatedWidth += getColumnWidthFn(endCol);
|
|
111
|
+
endCol++;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
startRow: Math.max(0, startRow - overscanRows),
|
|
115
|
+
endRow: Math.min(rowCount - 1, endRow + overscanRows),
|
|
116
|
+
startCol: Math.max(0, startCol - overscanColumns),
|
|
117
|
+
endCol: Math.min(columnCount - 1, endCol + overscanColumns)
|
|
118
|
+
};
|
|
119
|
+
}, [
|
|
120
|
+
rowCount,
|
|
121
|
+
columnCount,
|
|
122
|
+
scrollTop,
|
|
123
|
+
scrollLeft,
|
|
124
|
+
containerHeight,
|
|
125
|
+
containerWidth,
|
|
126
|
+
overscanRows,
|
|
127
|
+
overscanColumns,
|
|
128
|
+
getRowHeightFn,
|
|
129
|
+
getColumnWidthFn,
|
|
130
|
+
getRowOffset,
|
|
131
|
+
getColumnOffset
|
|
132
|
+
]);
|
|
133
|
+
const getCellStyle = react.useCallback(
|
|
134
|
+
(row, col) => {
|
|
135
|
+
const top = getRowOffset(row);
|
|
136
|
+
const left = getColumnOffset(col);
|
|
137
|
+
const colspan = getColSpan(row, col);
|
|
138
|
+
let width = 0;
|
|
139
|
+
for (let c = col; c < col + colspan && c < columnCount; c++) {
|
|
140
|
+
width += getColumnWidthFn(c);
|
|
141
|
+
}
|
|
142
|
+
const rowspan = getRowSpan(row, col);
|
|
143
|
+
let height = 0;
|
|
144
|
+
for (let r = row; r < row + rowspan && r < rowCount; r++) {
|
|
145
|
+
height += getRowHeightFn(r);
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
position: "absolute",
|
|
149
|
+
top: 0,
|
|
150
|
+
left: 0,
|
|
151
|
+
width,
|
|
152
|
+
height,
|
|
153
|
+
transform: `translate(${left}px, ${top}px)`
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
[
|
|
157
|
+
getRowOffset,
|
|
158
|
+
getColumnOffset,
|
|
159
|
+
getColSpan,
|
|
160
|
+
getRowSpan,
|
|
161
|
+
columnCount,
|
|
162
|
+
rowCount,
|
|
163
|
+
getColumnWidthFn,
|
|
164
|
+
getRowHeightFn
|
|
165
|
+
]
|
|
166
|
+
);
|
|
167
|
+
return {
|
|
168
|
+
visibleRange,
|
|
169
|
+
totalWidth,
|
|
170
|
+
totalHeight,
|
|
171
|
+
getRowOffset,
|
|
172
|
+
getColumnOffset,
|
|
173
|
+
getRowHeight: getRowHeightFn,
|
|
174
|
+
getColumnWidth: getColumnWidthFn,
|
|
175
|
+
getCellStyle
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
exports.useVirtualGrid = useVirtualGrid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2KBNQ5PY_cjs = require('./chunk-2KBNQ5PY.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ var EulerInput = react.forwardRef(function EulerInput2({ value, onValuesChange,
|
|
|
8
8
|
const unitSymbol = unit === "deg" ? "\xB0" : "rad";
|
|
9
9
|
const labels = [`x${unitSymbol}`, `y${unitSymbol}`, `z${unitSymbol}`];
|
|
10
10
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
-
|
|
11
|
+
chunk2KBNQ5PY_cjs.VectorInput,
|
|
12
12
|
{
|
|
13
13
|
ref,
|
|
14
14
|
value,
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkPMG3NZF5_cjs = require('./chunk-PMG3NZF5.cjs');
|
|
4
|
+
var chunk6LTCLQH3_cjs = require('./chunk-6LTCLQH3.cjs');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
var ColorInput = react.forwardRef(function ColorInput2({ className, value, defaultValue, onChange, onValueChange, ...props }, ref) {
|
|
9
|
+
const normalizeColor = (colorValue) => {
|
|
10
|
+
if (colorValue === void 0 || colorValue === null) {
|
|
11
|
+
return "ffffff";
|
|
12
|
+
}
|
|
13
|
+
if (typeof colorValue === "number") {
|
|
14
|
+
if (colorValue > 16777215) {
|
|
15
|
+
const hex = colorValue.toString(16).padStart(8, "0");
|
|
16
|
+
return hex.slice(0, 6);
|
|
17
|
+
}
|
|
18
|
+
return colorValue.toString(16).padStart(6, "0");
|
|
19
|
+
}
|
|
20
|
+
if (typeof colorValue === "string") {
|
|
21
|
+
const trimmed = colorValue.trim().toLowerCase();
|
|
22
|
+
if (trimmed.startsWith("0x")) {
|
|
23
|
+
const hex = trimmed.slice(2);
|
|
24
|
+
if (hex.length > 6) {
|
|
25
|
+
return hex.slice(0, 6);
|
|
26
|
+
}
|
|
27
|
+
return hex.padStart(6, "0");
|
|
28
|
+
}
|
|
29
|
+
if (trimmed.startsWith("#")) {
|
|
30
|
+
const hex = trimmed.slice(1);
|
|
31
|
+
if (hex.length === 3) {
|
|
32
|
+
return hex.split("").map((c) => c + c).join("");
|
|
33
|
+
}
|
|
34
|
+
if (hex.length === 4) {
|
|
35
|
+
return hex.slice(0, 3).split("").map((c) => c + c).join("");
|
|
36
|
+
}
|
|
37
|
+
if (hex.length > 6) {
|
|
38
|
+
return hex.slice(0, 6);
|
|
39
|
+
}
|
|
40
|
+
return hex;
|
|
41
|
+
}
|
|
42
|
+
const rgbMatch = trimmed.match(/^rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
43
|
+
if (rgbMatch) {
|
|
44
|
+
const r = Math.min(255, parseInt(rgbMatch[1], 10)).toString(16).padStart(2, "0");
|
|
45
|
+
const g = Math.min(255, parseInt(rgbMatch[2], 10)).toString(16).padStart(2, "0");
|
|
46
|
+
const b = Math.min(255, parseInt(rgbMatch[3], 10)).toString(16).padStart(2, "0");
|
|
47
|
+
return r + g + b;
|
|
48
|
+
}
|
|
49
|
+
if (/^[0-9a-f]+$/i.test(trimmed)) {
|
|
50
|
+
if (trimmed.length === 3) {
|
|
51
|
+
return trimmed.split("").map((c) => c + c).join("");
|
|
52
|
+
}
|
|
53
|
+
if (trimmed.length > 6) {
|
|
54
|
+
return trimmed.slice(0, 6);
|
|
55
|
+
}
|
|
56
|
+
return trimmed.padStart(6, "0");
|
|
57
|
+
}
|
|
58
|
+
return trimmed;
|
|
59
|
+
}
|
|
60
|
+
return "ffffff";
|
|
61
|
+
};
|
|
62
|
+
const [color, setColor] = react.useState(normalizeColor(value || defaultValue));
|
|
63
|
+
react.useEffect(() => {
|
|
64
|
+
if (value !== void 0) {
|
|
65
|
+
setColor(normalizeColor(value));
|
|
66
|
+
}
|
|
67
|
+
}, [value]);
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "gap-sm flex", children: [
|
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
70
|
+
"input",
|
|
71
|
+
{
|
|
72
|
+
ref,
|
|
73
|
+
type: "color",
|
|
74
|
+
value: `#${color}`,
|
|
75
|
+
onChange: (e) => {
|
|
76
|
+
const newColor = e.currentTarget.value.replace(/^#/, "");
|
|
77
|
+
setColor(newColor);
|
|
78
|
+
onValueChange?.(newColor);
|
|
79
|
+
onChange?.(e);
|
|
80
|
+
},
|
|
81
|
+
className: chunk6LTCLQH3_cjs.cn(
|
|
82
|
+
[
|
|
83
|
+
"h-6",
|
|
84
|
+
"w-6",
|
|
85
|
+
"flex-none",
|
|
86
|
+
"cursor-pointer",
|
|
87
|
+
"rounded-1",
|
|
88
|
+
"[appearance:none]",
|
|
89
|
+
"[&::-webkit-color-swatch-wrapper]:p-0",
|
|
90
|
+
"[&::-webkit-color-swatch]:border-line-primary",
|
|
91
|
+
"[&::-webkit-color-swatch]:rounded-lg",
|
|
92
|
+
"[&::-moz-color-swatch]:border-line-primary",
|
|
93
|
+
"[&::-moz-color-swatch]:rounded-lg"
|
|
94
|
+
],
|
|
95
|
+
className
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
+
chunkPMG3NZF5_cjs.InputRoot,
|
|
101
|
+
{
|
|
102
|
+
...props,
|
|
103
|
+
size: "sm",
|
|
104
|
+
type: "text",
|
|
105
|
+
className: "flex-1",
|
|
106
|
+
value: color,
|
|
107
|
+
onChange: (e) => {
|
|
108
|
+
const newColor = e.currentTarget.value;
|
|
109
|
+
setColor(newColor);
|
|
110
|
+
onValueChange?.(newColor);
|
|
111
|
+
onChange?.(e);
|
|
112
|
+
},
|
|
113
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkPMG3NZF5_cjs.InputSlot, { children: "#" })
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] });
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
exports.ColorInput = ColorInput;
|
|
@@ -15,11 +15,7 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
15
15
|
"rounded-uk-xl",
|
|
16
16
|
"bg-bg-primary",
|
|
17
17
|
"liquid-dark:liquid-dark-bg",
|
|
18
|
-
"liquid-
|
|
19
|
-
"liquid-dark:border-[rgba(85,85,85,100)]",
|
|
20
|
-
"liquid-light:liquid-light-bg",
|
|
21
|
-
"liquid-light:border-[0.8px]",
|
|
22
|
-
"liquid-light:border-[white]"
|
|
18
|
+
"liquid-light:liquid-light-bg"
|
|
23
19
|
],
|
|
24
20
|
{
|
|
25
21
|
variants: {
|
|
@@ -55,7 +51,7 @@ function Card({
|
|
|
55
51
|
...props,
|
|
56
52
|
children: [
|
|
57
53
|
collapsedContent,
|
|
58
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "right-lg absolute top-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
54
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "right-lg absolute top-1/2 h-6 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
55
|
chunkR22VW3EK_cjs.Button,
|
|
60
56
|
{
|
|
61
57
|
variant: "ghost",
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { useVirtualGrid } from './chunk-VDYJAOMN.mjs';
|
|
2
|
+
import { cn } from './chunk-HBEU2PU2.mjs';
|
|
3
|
+
import React, { forwardRef, useRef, useState, useCallback, useEffect, useLayoutEffect } from 'react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function VirtualGridInner({
|
|
7
|
+
data,
|
|
8
|
+
rowCount,
|
|
9
|
+
columnCount,
|
|
10
|
+
rowHeight,
|
|
11
|
+
columnWidth,
|
|
12
|
+
height,
|
|
13
|
+
width = "100%",
|
|
14
|
+
overscanRows = 2,
|
|
15
|
+
overscanColumns = 2,
|
|
16
|
+
getCellKey,
|
|
17
|
+
getColSpan,
|
|
18
|
+
getRowSpan,
|
|
19
|
+
children,
|
|
20
|
+
stickyHeader = false,
|
|
21
|
+
stickyColumn = false,
|
|
22
|
+
className,
|
|
23
|
+
style,
|
|
24
|
+
...props
|
|
25
|
+
}, ref) {
|
|
26
|
+
const containerRef = useRef(null);
|
|
27
|
+
const stickyLayerRef = useRef(null);
|
|
28
|
+
const [scrollTop, setScrollTop] = useState(0);
|
|
29
|
+
const [scrollLeft, setScrollLeft] = useState(0);
|
|
30
|
+
const [containerWidth, setContainerWidth] = useState(0);
|
|
31
|
+
const [containerHeight, setContainerHeight] = useState(0);
|
|
32
|
+
const scrollRef = useRef({ top: 0, left: 0 });
|
|
33
|
+
const setRefs = useCallback(
|
|
34
|
+
(node) => {
|
|
35
|
+
containerRef.current = node;
|
|
36
|
+
if (typeof ref === "function") {
|
|
37
|
+
ref(node);
|
|
38
|
+
} else if (ref) {
|
|
39
|
+
ref.current = node;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
[ref]
|
|
43
|
+
);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
const container = containerRef.current;
|
|
46
|
+
if (!container) return;
|
|
47
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
48
|
+
for (const entry of entries) {
|
|
49
|
+
setContainerWidth(entry.contentRect.width);
|
|
50
|
+
setContainerHeight(entry.contentRect.height);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
resizeObserver.observe(container);
|
|
54
|
+
setContainerWidth(container.clientWidth);
|
|
55
|
+
setContainerHeight(container.clientHeight);
|
|
56
|
+
return () => resizeObserver.disconnect();
|
|
57
|
+
}, []);
|
|
58
|
+
const {
|
|
59
|
+
visibleRange,
|
|
60
|
+
totalWidth,
|
|
61
|
+
totalHeight,
|
|
62
|
+
getCellStyle,
|
|
63
|
+
getRowOffset,
|
|
64
|
+
getColumnOffset,
|
|
65
|
+
getRowHeight,
|
|
66
|
+
getColumnWidth
|
|
67
|
+
} = useVirtualGrid({
|
|
68
|
+
rowCount,
|
|
69
|
+
columnCount,
|
|
70
|
+
rowHeight,
|
|
71
|
+
columnWidth,
|
|
72
|
+
containerWidth,
|
|
73
|
+
containerHeight,
|
|
74
|
+
scrollTop,
|
|
75
|
+
scrollLeft,
|
|
76
|
+
overscanRows,
|
|
77
|
+
overscanColumns,
|
|
78
|
+
getColSpan,
|
|
79
|
+
getRowSpan
|
|
80
|
+
});
|
|
81
|
+
const rafRef = useRef(null);
|
|
82
|
+
const handleScroll = useCallback((e) => {
|
|
83
|
+
const newScrollTop = e.currentTarget.scrollTop;
|
|
84
|
+
const newScrollLeft = e.currentTarget.scrollLeft;
|
|
85
|
+
scrollRef.current = { top: newScrollTop, left: newScrollLeft };
|
|
86
|
+
if (stickyLayerRef.current) {
|
|
87
|
+
stickyLayerRef.current.style.setProperty("--scroll-top", `${Math.round(newScrollTop)}px`);
|
|
88
|
+
stickyLayerRef.current.style.setProperty("--scroll-left", `${Math.round(newScrollLeft)}px`);
|
|
89
|
+
}
|
|
90
|
+
if (rafRef.current) {
|
|
91
|
+
cancelAnimationFrame(rafRef.current);
|
|
92
|
+
}
|
|
93
|
+
rafRef.current = requestAnimationFrame(() => {
|
|
94
|
+
setScrollTop(newScrollTop);
|
|
95
|
+
setScrollLeft(newScrollLeft);
|
|
96
|
+
});
|
|
97
|
+
}, []);
|
|
98
|
+
useEffect(() => {
|
|
99
|
+
return () => {
|
|
100
|
+
if (rafRef.current) {
|
|
101
|
+
cancelAnimationFrame(rafRef.current);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}, []);
|
|
105
|
+
useLayoutEffect(() => {
|
|
106
|
+
if (stickyLayerRef.current) {
|
|
107
|
+
stickyLayerRef.current.style.setProperty("--scroll-top", "0px");
|
|
108
|
+
stickyLayerRef.current.style.setProperty("--scroll-left", "0px");
|
|
109
|
+
}
|
|
110
|
+
}, []);
|
|
111
|
+
const coveredCells = /* @__PURE__ */ new Set();
|
|
112
|
+
if (getColSpan || getRowSpan) {
|
|
113
|
+
for (let row = visibleRange.startRow; row <= visibleRange.endRow; row++) {
|
|
114
|
+
for (let col = visibleRange.startCol; col <= visibleRange.endCol; col++) {
|
|
115
|
+
const colspan = getColSpan?.(row, col) ?? 1;
|
|
116
|
+
const rowspan = getRowSpan?.(row, col) ?? 1;
|
|
117
|
+
if (colspan > 1 || rowspan > 1) {
|
|
118
|
+
for (let r = row; r < row + rowspan; r++) {
|
|
119
|
+
for (let c = col; c < col + colspan; c++) {
|
|
120
|
+
if (r !== row || c !== col) {
|
|
121
|
+
coveredCells.add(`${r}-${c}`);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const visibleCells = [];
|
|
130
|
+
for (let row = visibleRange.startRow; row <= visibleRange.endRow && row < rowCount; row++) {
|
|
131
|
+
for (let col = visibleRange.startCol; col <= visibleRange.endCol && col < columnCount; col++) {
|
|
132
|
+
if (coveredCells.has(`${row}-${col}`)) {
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
if (stickyHeader && row === 0 || stickyColumn && col === 0) {
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
const cellData = data[row]?.[col];
|
|
139
|
+
const key = getCellKey ? getCellKey(row, col) : `${row}-${col}`;
|
|
140
|
+
const cellStyle = getCellStyle(row, col);
|
|
141
|
+
visibleCells.push(
|
|
142
|
+
/* @__PURE__ */ jsx(React.Fragment, { children: children(cellData, row, col, cellStyle) }, key)
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const stickyContentStyle = { width: "100%", height: "100%" };
|
|
147
|
+
const stickyHeaderCells = [];
|
|
148
|
+
if (stickyHeader && rowCount > 0) {
|
|
149
|
+
for (let col = visibleRange.startCol; col <= visibleRange.endCol && col < columnCount; col++) {
|
|
150
|
+
if (stickyColumn && col === 0) continue;
|
|
151
|
+
if (coveredCells.has(`0-${col}`)) continue;
|
|
152
|
+
const cellData = data[0]?.[col];
|
|
153
|
+
const key = getCellKey ? getCellKey(0, col) : `header-${col}`;
|
|
154
|
+
stickyHeaderCells.push(
|
|
155
|
+
/* @__PURE__ */ jsx(
|
|
156
|
+
"div",
|
|
157
|
+
{
|
|
158
|
+
className: "sticky-header-cell",
|
|
159
|
+
style: {
|
|
160
|
+
position: "absolute",
|
|
161
|
+
top: 0,
|
|
162
|
+
left: 0,
|
|
163
|
+
width: getColumnWidth(col),
|
|
164
|
+
height: getRowHeight(0),
|
|
165
|
+
transform: `translate3d(${getColumnOffset(col)}px, var(--scroll-top, 0px), 0)`,
|
|
166
|
+
willChange: "transform",
|
|
167
|
+
zIndex: 2
|
|
168
|
+
},
|
|
169
|
+
children: children(cellData, 0, col, stickyContentStyle)
|
|
170
|
+
},
|
|
171
|
+
key
|
|
172
|
+
)
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const stickyColumnCells = [];
|
|
177
|
+
if (stickyColumn && columnCount > 0) {
|
|
178
|
+
for (let row = visibleRange.startRow; row <= visibleRange.endRow && row < rowCount; row++) {
|
|
179
|
+
if (stickyHeader && row === 0) continue;
|
|
180
|
+
if (coveredCells.has(`${row}-0`)) continue;
|
|
181
|
+
const cellData = data[row]?.[0];
|
|
182
|
+
const key = getCellKey ? getCellKey(row, 0) : `sticky-col-${row}`;
|
|
183
|
+
stickyColumnCells.push(
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
className: "sticky-column-cell",
|
|
188
|
+
style: {
|
|
189
|
+
position: "absolute",
|
|
190
|
+
top: 0,
|
|
191
|
+
left: 0,
|
|
192
|
+
width: getColumnWidth(0),
|
|
193
|
+
height: getRowHeight(row),
|
|
194
|
+
transform: `translate3d(var(--scroll-left, 0px), ${getRowOffset(row)}px, 0)`,
|
|
195
|
+
willChange: "transform",
|
|
196
|
+
zIndex: 2
|
|
197
|
+
},
|
|
198
|
+
children: children(cellData, row, 0, stickyContentStyle)
|
|
199
|
+
},
|
|
200
|
+
key
|
|
201
|
+
)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
const stickyCornerCell = stickyHeader && stickyColumn && rowCount > 0 && columnCount > 0 ? /* @__PURE__ */ jsx(
|
|
206
|
+
"div",
|
|
207
|
+
{
|
|
208
|
+
className: "sticky-corner-cell",
|
|
209
|
+
style: {
|
|
210
|
+
position: "absolute",
|
|
211
|
+
top: 0,
|
|
212
|
+
left: 0,
|
|
213
|
+
width: getColumnWidth(0),
|
|
214
|
+
height: getRowHeight(0),
|
|
215
|
+
transform: `translate3d(var(--scroll-left, 0px), var(--scroll-top, 0px), 0)`,
|
|
216
|
+
willChange: "transform",
|
|
217
|
+
zIndex: 3
|
|
218
|
+
},
|
|
219
|
+
children: children(data[0]?.[0], 0, 0, stickyContentStyle)
|
|
220
|
+
},
|
|
221
|
+
"sticky-corner"
|
|
222
|
+
) : null;
|
|
223
|
+
const hasStickyElements = stickyHeader || stickyColumn;
|
|
224
|
+
return /* @__PURE__ */ jsx(
|
|
225
|
+
"div",
|
|
226
|
+
{
|
|
227
|
+
ref: setRefs,
|
|
228
|
+
className: cn("relative overflow-auto", className),
|
|
229
|
+
style: {
|
|
230
|
+
height,
|
|
231
|
+
width,
|
|
232
|
+
...style
|
|
233
|
+
},
|
|
234
|
+
onScroll: handleScroll,
|
|
235
|
+
...props,
|
|
236
|
+
children: /* @__PURE__ */ jsxs(
|
|
237
|
+
"div",
|
|
238
|
+
{
|
|
239
|
+
ref: hasStickyElements ? stickyLayerRef : void 0,
|
|
240
|
+
style: {
|
|
241
|
+
height: totalHeight,
|
|
242
|
+
width: totalWidth,
|
|
243
|
+
position: "relative"
|
|
244
|
+
},
|
|
245
|
+
children: [
|
|
246
|
+
stickyCornerCell,
|
|
247
|
+
stickyHeaderCells,
|
|
248
|
+
stickyColumnCells,
|
|
249
|
+
visibleCells
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
var VirtualGrid = forwardRef(VirtualGridInner);
|
|
257
|
+
|
|
258
|
+
export { VirtualGrid };
|