@vokril/ui-solid 0.31.0 → 0.33.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/CHANGELOG.md +61 -0
- package/README.md +132 -4
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/{Button-4meERfnv.js → Button-CX7mylBT.js} +125 -117
- package/dist/Button-lMUW5P3O.cjs +1 -0
- package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
- package/dist/CommandPalette-DlLcdd4o.js +4029 -0
- package/dist/CopyButton-BVvv5M8g.js +63 -0
- package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
- package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
- package/dist/DateRangePicker-CHmUU4PA.js +552 -0
- package/dist/GuidedTour-9rqvNB_m.js +483 -0
- package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
- package/dist/{HostPortal-Ba3MD9CG.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/{HostPortal-CpWsArs6.cjs → HostPortal-Dm4BmY8M.cjs} +1 -1
- package/dist/{IconPicker-D1G8HK92.js → IconPicker-CsYW8CXe.js} +4 -4
- package/dist/IconPicker-D-GU1mD3.cjs +1 -0
- package/dist/Input-C3rEQffK.js +382 -0
- package/dist/Input-CHtvL4_4.cjs +1 -0
- package/dist/Modal-3L6p7Dwt.js +599 -0
- package/dist/Modal-CtrWEnJ7.cjs +1 -0
- package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
- package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
- package/dist/{PageSkeleton-zNyjLPlk.js → PageSkeleton-BRuqaDzr.js} +372 -371
- package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
- package/dist/Popover-CLTXG8W0.cjs +1 -0
- package/dist/Popover-DkqGvMNy.js +207 -0
- package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
- package/dist/SearchableSelect-Du12kcI9.js +328 -0
- package/dist/{StatusBarNotificationBell-ZTEhZFmJ.js → StatusBarNotificationBell-DKDoWK71.js} +4879 -4789
- package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-DASNQNoi.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-szHXQahi.js → Textarea-DOzZCc-O.js} +1 -1
- package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
- package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
- package/dist/ToggleButton-B-hBpdzk.js +2144 -0
- package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
- package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
- package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
- package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
- package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
- package/dist/_internal/contract/browser/workspace.d.cts +15 -0
- package/dist/_internal/contract/browser/workspace.d.ts +15 -0
- package/dist/_internal/contract/menuDensity.d.cts +8 -0
- package/dist/_internal/contract/menuDensity.d.ts +8 -0
- package/dist/_internal/contract/notification.d.cts +19 -3
- package/dist/_internal/contract/notification.d.ts +19 -3
- package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
- package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{server/appThemeDerivation-DBAOkGl7.js → appThemeDerivation-CKoSe4KP.js} +231 -260
- package/dist/base.css +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
- package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
- package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
- package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +228 -227
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +4 -4
- package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
- package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +38 -39
- package/dist/host/kitHost.d.cts +8 -0
- package/dist/host/kitHost.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +940 -938
- package/dist/kitHost-BMMWpU4w.js +47 -0
- package/dist/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
- package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-CRERhjp6.js +168 -0
- package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
- package/dist/notifications/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +3 -3
- package/dist/notifications/nativeEngine.d.cts +34 -2
- package/dist/notifications/nativeEngine.d.ts +34 -2
- package/dist/notifications/notificationEntryList.d.cts +18 -5
- package/dist/notifications/notificationEntryList.d.ts +18 -5
- package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
- package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
- package/dist/overlay/Modal.d.cts +17 -3
- package/dist/overlay/Modal.d.ts +17 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -1
- package/dist/overlay/index.d.ts +2 -1
- package/dist/overlay/index.js +46 -43
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +17 -2
- package/dist/overlay/modalViewport.d.ts +17 -2
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{server/pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-D8gyHbEE.cjs +1 -0
- package/dist/rowSource-_4IuosKj.js +1236 -0
- package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
- package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
- package/dist/server/Button-DHefmmYz.cjs +1 -0
- package/dist/server/Button-ft_8RNJj.js +226 -0
- package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
- package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
- package/dist/server/CopyButton-CiYcsQcI.js +64 -0
- package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
- package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
- package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
- package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
- package/dist/server/GuidedTour-DYBhprVK.js +400 -0
- package/dist/server/{HostPortal-C4IrAeWN.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/{HostPortal-D5ECrJvn.cjs → HostPortal-CwyePpDX.cjs} +1 -1
- package/dist/server/{IconPicker-DDWgB7sm.js → IconPicker--Xso9fUf.js} +5 -5
- package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
- package/dist/server/Input-UX0Hk53M.cjs +1 -0
- package/dist/server/Input-V9Szcw6w.js +249 -0
- package/dist/server/Modal-CBnNlaTx.cjs +1 -0
- package/dist/server/Modal-D9CjieKK.js +426 -0
- package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
- package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
- package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
- package/dist/server/Popover-BBDBIpT6.cjs +1 -0
- package/dist/server/Popover-e9JpRh11.js +439 -0
- package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
- package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
- package/dist/server/StatusBarNotificationBell-DEp4eEUv.cjs +49 -0
- package/dist/server/{StatusBarNotificationBell-DW2l5O9B.js → StatusBarNotificationBell-kOm2ZNkl.js} +4567 -4477
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-Bh5LVrBn.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-DVkfGkP0.js → Textarea-DM4zpgWo.js} +1 -1
- package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
- package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
- package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
- package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{appThemeDerivation-DBAOkGl7.js → server/appThemeDerivation-CKoSe4KP.js} +231 -260
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
- package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
- package/dist/server/{createResizableSidebar-Dvu7iEk1.js → createResizableSidebar-CIrhLNKW.js} +104 -102
- package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +153 -152
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +4 -4
- package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
- package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +38 -39
- package/dist/server/{index-BEARfm54.js → index-CPUZyKo7.js} +2 -2
- package/dist/server/{index-C6rYfWCJ.cjs → index-CVbkasNJ.cjs} +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +673 -671
- package/dist/server/kitHost-BMMWpU4w.js +47 -0
- package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
- package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
- package/dist/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
- package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +3 -3
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +32 -29
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → server/pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-BSa7rgYJ.js +1128 -0
- package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +26 -25
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -28
- package/dist/server/tokens/palette/index.cjs +1 -0
- package/dist/server/tokens/palette/index.js +31 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +26 -25
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/_internal/contract/menuDensity.js +1 -0
- package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +9 -5
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +15 -9
- package/dist/solid/forms/Checkbox.jsx +5 -4
- package/dist/solid/forms/Combobox.jsx +12 -10
- package/dist/solid/forms/CopyButton.jsx +7 -4
- package/dist/solid/forms/DatePicker.jsx +12 -7
- package/dist/solid/forms/Dropzone.jsx +17 -13
- package/dist/solid/forms/FilePickerButton.jsx +5 -4
- package/dist/solid/forms/HiddenFileInput.jsx +3 -1
- package/dist/solid/forms/InputMessage.jsx +11 -10
- package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
- package/dist/solid/forms/NumberInput.jsx +25 -19
- package/dist/solid/forms/Picker.jsx +8 -6
- package/dist/solid/forms/PressableSurface.jsx +14 -9
- package/dist/solid/forms/RadioGroup.jsx +4 -3
- package/dist/solid/forms/SearchInput.jsx +4 -3
- package/dist/solid/forms/SearchableSelect.jsx +4 -3
- package/dist/solid/forms/SegmentedControl.jsx +4 -3
- package/dist/solid/forms/TagInput.jsx +22 -16
- package/dist/solid/forms/ToggleButton.jsx +4 -3
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
- package/dist/solid/grid/Pagination.jsx +7 -3
- package/dist/solid/host/kitHost.jsx +5 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
- package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
- package/dist/solid/layout/ResizeHandle.jsx +6 -5
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +3 -16
- package/dist/solid/notifications/NotificationItem.jsx +59 -55
- package/dist/solid/notifications/NotificationPanel.jsx +16 -8
- package/dist/solid/notifications/NotificationsCenter.jsx +2 -0
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +25 -9
- package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
- package/dist/solid/notifications/toast.js +4 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
- package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
- package/dist/solid/overlay/Disclosure.jsx +4 -3
- package/dist/solid/overlay/DropdownMenu.jsx +6 -4
- package/dist/solid/overlay/FloatingWindow.jsx +3 -3
- package/dist/solid/overlay/HoverTooltip.jsx +9 -7
- package/dist/solid/overlay/Modal.jsx +44 -35
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +7 -7
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +65 -50
- package/dist/solid/overlay/index.js +2 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
- package/dist/solid/overlay/modalDefaults.jsx +10 -0
- package/dist/solid/overlay/modalViewport.js +17 -4
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tree/TreeRow.jsx +21 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +3 -2
- package/dist/theme.css +2 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +29 -28
- package/dist/tokens/palette/index.cjs +1 -0
- package/dist/tokens/palette/index.d.cts +12 -0
- package/dist/tokens/palette/index.d.ts +12 -0
- package/dist/tokens/palette/index.js +31 -0
- package/dist/tokens/tokens.css +2 -1
- package/dist/tree/TreeRow.d.cts +5 -4
- package/dist/tree/TreeRow.d.ts +5 -4
- package/dist/tree/descriptor.d.cts +13 -3
- package/dist/tree/descriptor.d.ts +13 -3
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/AttributeGrid-Ch1k9v5j.cjs +0 -1
- package/dist/AttributeGrid-DqFd4gBm.js +0 -320
- package/dist/Button-OyZHrl-t.cjs +0 -1
- package/dist/CommandPalette-CxYZUJtN.cjs +0 -2
- package/dist/CommandPalette-DwOp8y1-.js +0 -4018
- package/dist/CopyButton-16QNPgz6.cjs +0 -1
- package/dist/CopyButton-BVS49lMS.js +0 -63
- package/dist/DateRangePicker-8QvydugY.js +0 -550
- package/dist/DateRangePicker-DI-06xWY.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-DUQwdW8n.cjs +0 -1
- package/dist/GuidedTour-DXMmHn0o.js +0 -483
- package/dist/IconPicker-Q-ZDtNkd.cjs +0 -1
- package/dist/Input-Brp5EDhg.cjs +0 -1
- package/dist/Input-CZi8KEfm.js +0 -374
- package/dist/Modal-CBi7Wd2V.cjs +0 -1
- package/dist/Modal-iyY1HUtr.js +0 -588
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-B_-4fz1q.cjs +0 -30
- package/dist/Popover-DVi179wu.js +0 -207
- package/dist/Popover-DXrczbt9.cjs +0 -1
- package/dist/SearchableSelect-DtHbWJhR.js +0 -328
- package/dist/SearchableSelect-yLVqCGFo.cjs +0 -1
- package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +0 -50
- package/dist/Stepper-CyRgzWlR.js +0 -583
- package/dist/Stepper-u2ZsE5oP.cjs +0 -1
- package/dist/TimeSeriesChart-D7lIqolp.js +0 -441
- package/dist/TimeSeriesChart-DGzM9B--.cjs +0 -1
- package/dist/ToggleButton-B22PsCqo.js +0 -2138
- package/dist/ToggleButton-DWslrIBN.cjs +0 -1
- package/dist/appThemeDerivation-BylmT80v.cjs +0 -1
- package/dist/createDialogShellFocus-CQ0VNC2g.cjs +0 -1
- package/dist/createDialogShellFocus-DbiQmLgb.js +0 -282
- package/dist/createResizableSidebar-COlpGQ7H.cjs +0 -1
- package/dist/createResizableSidebar-cmCKTIg_.js +0 -504
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-B215swW-.js +0 -166
- package/dist/mainRealmDom-BYGSE-fo.cjs +0 -1
- package/dist/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/rowSource-D__7o4h0.js +0 -1230
- package/dist/rowSource-DiwTu_r8.cjs +0 -1
- package/dist/server/AttributeGrid-Bpjlauuz.js +0 -281
- package/dist/server/AttributeGrid-DNYdKb8J.cjs +0 -1
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-BuVxnqBG.cjs +0 -1
- package/dist/server/CommandPalette-Dn3NKXPM.js +0 -3291
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-BFzNjaME.cjs +0 -9
- package/dist/server/DateRangePicker-CnYkTgXX.js +0 -484
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-BZardPYW.js +0 -400
- package/dist/server/GuidedTour-yhdZk2SU.cjs +0 -1
- package/dist/server/IconPicker-C5lAN9pX.cjs +0 -1
- package/dist/server/Input-AdF-i0O8.js +0 -245
- package/dist/server/Input-XF9Jr0G9.cjs +0 -1
- package/dist/server/Modal-C5dzgcRW.js +0 -420
- package/dist/server/Modal-nAhBS1L9.cjs +0 -1
- package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
- package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
- package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
- package/dist/server/Popover-C5avmGWz.cjs +0 -1
- package/dist/server/Popover-H3AAYZI0.js +0 -439
- package/dist/server/SearchableSelect-CZrXDKfC.cjs +0 -1
- package/dist/server/SearchableSelect-DMqed5Er.js +0 -205
- package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +0 -49
- package/dist/server/Stepper-CpapA_WH.cjs +0 -1
- package/dist/server/Stepper-gGA7JwjV.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-CA9T-OsI.cjs +0 -1
- package/dist/server/ToggleButton-CBNKajZa.js +0 -1335
- package/dist/server/appThemeDerivation-BylmT80v.cjs +0 -1
- package/dist/server/createDialogShellFocus-CDaLuPg8.cjs +0 -1
- package/dist/server/createDialogShellFocus-LGDBOVnr.js +0 -369
- package/dist/server/createResizableSidebar-v40ZOb-Q.cjs +0 -1
- package/dist/server/kitHost-BfJExE1G.cjs +0 -1
- package/dist/server/kitHost-CVAEi9sF.js +0 -23
- package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
- package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/server/rowSource-D-wcDmFU.js +0 -1122
- package/dist/server/rowSource-DltiY0o3.cjs +0 -1
|
@@ -1,1122 +0,0 @@
|
|
|
1
|
-
import { createComponent as b, ssr as E, ssrAttribute as A, escape as f, ssrElement as de, mergeProps as he, memo as X, ssrStyleProperty as V } from "solid-js/web";
|
|
2
|
-
import { createMemo as O, Show as H, For as ke, createEffect as Y, Index as fe, createSelector as xe, createSignal as Q, onCleanup as Ce, useContext as be, untrack as Ie, on as Re } from "solid-js";
|
|
3
|
-
import { O as Ae } from "./OverlayScrollArea-221dfKyz.js";
|
|
4
|
-
import { t as Te } from "./i18n-CBlUGOyu.js";
|
|
5
|
-
import { c as _e } from "./errorHandler-BvPGW-Nm.js";
|
|
6
|
-
import { V as Me } from "./VpLoader2-DO0zkwpY.js";
|
|
7
|
-
import { V as Ee } from "./VpChevronRight-CwRCE60O.js";
|
|
8
|
-
import { a as De } from "./useListCommands-BO_XrRHj.js";
|
|
9
|
-
import { a as Ke } from "./builtins-XOM9gfIx.js";
|
|
10
|
-
import { V as $e } from "./VpSearch-CzVlR0ue.js";
|
|
11
|
-
import { S as ne, c as Ge } from "./createVirtualWindow-CGPw2jm_.js";
|
|
12
|
-
import { D as Oe } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
13
|
-
import { n as He, i as pe } from "./keys-B2nlkpqc.js";
|
|
14
|
-
import { B as j } from "./bugIndicatingError-h3J5qkL6.js";
|
|
15
|
-
const ge = {
|
|
16
|
-
canExpand: !0,
|
|
17
|
-
canMultiSelect: !0,
|
|
18
|
-
canTypeAhead: !0,
|
|
19
|
-
canRename: !1,
|
|
20
|
-
canDestroy: !1,
|
|
21
|
-
expandAll: !1
|
|
22
|
-
};
|
|
23
|
-
function ye(e, t) {
|
|
24
|
-
return `${e}-row-${t}`;
|
|
25
|
-
}
|
|
26
|
-
function Le(e) {
|
|
27
|
-
const { treeId: t, label: n, multiSelectable: r, focusMode: o, cursorKey: a } = e;
|
|
28
|
-
return {
|
|
29
|
-
role: e.flat === !0 ? "listbox" : "tree",
|
|
30
|
-
// With roving tabindex the container yields its tab stop to the cursor row
|
|
31
|
-
// once there is one; with active-descendant the container IS the tab stop.
|
|
32
|
-
tabIndex: o === "active-descendant" || a === null ? 0 : -1,
|
|
33
|
-
"aria-label": n,
|
|
34
|
-
"aria-multiselectable": r ? !0 : void 0,
|
|
35
|
-
"aria-activedescendant": o === "active-descendant" && a !== null ? ye(t, a) : void 0
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function Fe(e) {
|
|
39
|
-
const { treeId: t, rows: n, index: r } = e, o = n.at(r), a = e.flat === !0, { posInSet: l, setSize: y } = n.siblingPosition(r);
|
|
40
|
-
return {
|
|
41
|
-
role: a ? "option" : "treeitem",
|
|
42
|
-
id: ye(t, o.key),
|
|
43
|
-
// A listbox option has no level, and no expanded state to advertise.
|
|
44
|
-
"aria-level": a ? void 0 : o.depth + 1,
|
|
45
|
-
"aria-setsize": y,
|
|
46
|
-
"aria-posinset": l,
|
|
47
|
-
"aria-expanded": !a && o.expandable ? o.expanded : void 0,
|
|
48
|
-
// Announced while the row is fetching its children — silence is what a
|
|
49
|
-
// screen-reader user got before, for as long as the query took.
|
|
50
|
-
"aria-busy": o.busy === !0 ? !0 : void 0
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function Pe(e) {
|
|
54
|
-
return {
|
|
55
|
-
...e.structure,
|
|
56
|
-
tabIndex: e.focusMode === "roving-tabindex" && e.isCursor ? 0 : -1,
|
|
57
|
-
"aria-selected": e.isSelected
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
const Be = /[\^$.*+?(){}|[\]\\]/;
|
|
61
|
-
function Ne(e) {
|
|
62
|
-
const t = e.trim();
|
|
63
|
-
if (t.length === 0) return null;
|
|
64
|
-
if (Be.test(t))
|
|
65
|
-
try {
|
|
66
|
-
const r = new RegExp(t, "gi");
|
|
67
|
-
return (o) => Ve(o, r);
|
|
68
|
-
} catch (r) {
|
|
69
|
-
_e("fall through to substring", r);
|
|
70
|
-
}
|
|
71
|
-
const n = t.toLowerCase();
|
|
72
|
-
return (r) => Ue(r, n, t.length);
|
|
73
|
-
}
|
|
74
|
-
function Ve(e, t) {
|
|
75
|
-
t.lastIndex = 0;
|
|
76
|
-
const n = [];
|
|
77
|
-
let r = 0, o;
|
|
78
|
-
for (; (o = t.exec(e)) !== null; )
|
|
79
|
-
o.index > r && n.push({ text: e.slice(r, o.index), match: !1 }), n.push({ text: o[0], match: !0 }), r = o.index + o[0].length, o[0].length === 0 && (t.lastIndex += 1);
|
|
80
|
-
return r < e.length && n.push({ text: e.slice(r), match: !1 }), n.length > 0 ? n : [{ text: e, match: !1 }];
|
|
81
|
-
}
|
|
82
|
-
function Ue(e, t, n) {
|
|
83
|
-
if (n === 0) return [{ text: e, match: !1 }];
|
|
84
|
-
const r = e.toLowerCase(), o = [];
|
|
85
|
-
let a = 0;
|
|
86
|
-
for (; a <= e.length; ) {
|
|
87
|
-
const l = r.indexOf(t, a);
|
|
88
|
-
if (l === -1) {
|
|
89
|
-
a < e.length && o.push({ text: e.slice(a), match: !1 });
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
l > a && o.push({ text: e.slice(a, l), match: !1 }), o.push({ text: e.slice(l, l + n), match: !0 }), a = l + n;
|
|
93
|
-
}
|
|
94
|
-
return o.length > 0 ? o : [{ text: e, match: !1 }];
|
|
95
|
-
}
|
|
96
|
-
const Qe = "vk_treeStickyHost_6aT7a", We = "vk_treeViewport_Ku3yB", Ye = "vk_treeContainer_iMrOQ", qe = "vk_treeSlice_homAf", ze = "vk_treeRow_Hh9r0", Xe = "vk_treeRowCursor_QlUrp", je = "vk_treeRowSelected_UdZj-", Ze = "vk_treeIndentGuides_W4J04", Je = "vk_treeIndentGuideActive_9m4l3", et = "vk_treeRowChevron_6WMjE", tt = "vk_treeRowChevronSpacer_Jbp-q", nt = "vk_treeRowChevronIcon_KP24Y", rt = "vk_treeRowChevronIconOpen_fRKNn", ot = "vk_treeRowContent_RR7pP", at = "vk_treeRowActions_LYQUv", ct = "vk_treeEmpty_s8RQ-", lt = "vk_treeRowChevronBusy_lZT8a", ut = "vk_treeSpeedSearchBadge_9GHNi", st = "vk_treeSpeedSearchIcon_48Ae2", it = "vk_treeSpeedSearchText_F4SZ8", dt = "vk_treeMatchHighlight_NY75y", C = {
|
|
97
|
-
treeStickyHost: Qe,
|
|
98
|
-
treeViewport: We,
|
|
99
|
-
treeContainer: Ye,
|
|
100
|
-
treeSlice: qe,
|
|
101
|
-
treeRow: ze,
|
|
102
|
-
treeRowCursor: Xe,
|
|
103
|
-
treeRowSelected: je,
|
|
104
|
-
treeIndentGuides: Ze,
|
|
105
|
-
treeIndentGuideActive: Je,
|
|
106
|
-
treeRowChevron: et,
|
|
107
|
-
treeRowChevronSpacer: tt,
|
|
108
|
-
treeRowChevronIcon: nt,
|
|
109
|
-
treeRowChevronIconOpen: rt,
|
|
110
|
-
treeRowContent: ot,
|
|
111
|
-
treeRowActions: at,
|
|
112
|
-
treeEmpty: ct,
|
|
113
|
-
treeRowChevronBusy: lt,
|
|
114
|
-
treeSpeedSearchBadge: ut,
|
|
115
|
-
treeSpeedSearchIcon: st,
|
|
116
|
-
treeSpeedSearchText: it,
|
|
117
|
-
treeMatchHighlight: dt
|
|
118
|
-
};
|
|
119
|
-
var ht = ["<span", ' aria-hidden="true" tabindex="-1">', "</span>"], re = ["<span", ' aria-hidden="true"></span>'], ft = ["<span", ' style="', '" aria-hidden="true"></span>'], gt = ["<span", ">", "</span>"], yt = ["<span", ' tabindex="-1">', "</span>"], wt = ["<mark", ">", "</mark>"];
|
|
120
|
-
function we(e) {
|
|
121
|
-
Y(() => {
|
|
122
|
-
e.sticky === !0 || !e.isCursor || e.treeHasFocus();
|
|
123
|
-
});
|
|
124
|
-
const t = () => b(H, {
|
|
125
|
-
get when() {
|
|
126
|
-
return e.row.expandable;
|
|
127
|
-
},
|
|
128
|
-
get fallback() {
|
|
129
|
-
return E(re, A("class", f(C.treeRowChevronSpacer, !0), !1));
|
|
130
|
-
},
|
|
131
|
-
get children() {
|
|
132
|
-
return E(ht, A("class", f(C.treeRowChevron, !0), !1), f(b(H, {
|
|
133
|
-
get when() {
|
|
134
|
-
return e.row.busy;
|
|
135
|
-
},
|
|
136
|
-
get fallback() {
|
|
137
|
-
return b(Ee, {
|
|
138
|
-
get class() {
|
|
139
|
-
return `${C.treeRowChevronIcon} ${e.row.expanded ? C.treeRowChevronIconOpen : ""}`;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
get children() {
|
|
144
|
-
return b(Me, {
|
|
145
|
-
"data-motion-exempt": "true",
|
|
146
|
-
get class() {
|
|
147
|
-
return `${C.treeRowChevronIcon} ${C.treeRowChevronBusy}`;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
})));
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
return de("div", he({
|
|
155
|
-
get tabIndex() {
|
|
156
|
-
return e.sticky === !0 ? -1 : 0;
|
|
157
|
-
}
|
|
158
|
-
}, () => e.sticky === !0 ? {
|
|
159
|
-
tabIndex: -1
|
|
160
|
-
} : e.aria, {
|
|
161
|
-
get class() {
|
|
162
|
-
var n;
|
|
163
|
-
return [C.treeRow, e.isCursor ? C.treeRowCursor : "", e.isSelected ? C.treeRowSelected : "", ((n = e.dom) == null ? void 0 : n.class) ?? ""].filter(Boolean).join(" ");
|
|
164
|
-
},
|
|
165
|
-
get style() {
|
|
166
|
-
return {
|
|
167
|
-
height: `${e.rowHeight}px`,
|
|
168
|
-
// Depth travels as a CSS variable so indent stays ONE formula in the
|
|
169
|
-
// stylesheet. Four surfaces used to hardcode it four different ways.
|
|
170
|
-
"--tree-depth": String(e.row.depth)
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
}, () => e.sticky === !0 ? {
|
|
174
|
-
"data-tree-sticky-key": e.row.key
|
|
175
|
-
} : {
|
|
176
|
-
"data-tree-row-key": e.row.key
|
|
177
|
-
}, () => {
|
|
178
|
-
var n;
|
|
179
|
-
return ((n = e.dom) == null ? void 0 : n.title) !== void 0 ? {
|
|
180
|
-
title: e.dom.title
|
|
181
|
-
} : {};
|
|
182
|
-
}, () => {
|
|
183
|
-
var n;
|
|
184
|
-
return ((n = e.dom) == null ? void 0 : n.draggable) !== void 0 ? {
|
|
185
|
-
draggable: e.dom.draggable
|
|
186
|
-
} : {};
|
|
187
|
-
}, () => {
|
|
188
|
-
var n;
|
|
189
|
-
return (n = e.dom) != null && n.onDragStart ? {
|
|
190
|
-
onDragStart: e.dom.onDragStart
|
|
191
|
-
} : {};
|
|
192
|
-
}, () => {
|
|
193
|
-
var n;
|
|
194
|
-
return (n = e.dom) != null && n.onDragOver ? {
|
|
195
|
-
onDragOver: e.dom.onDragOver
|
|
196
|
-
} : {};
|
|
197
|
-
}, () => {
|
|
198
|
-
var n;
|
|
199
|
-
return (n = e.dom) != null && n.onDragLeave ? {
|
|
200
|
-
onDragLeave: e.dom.onDragLeave
|
|
201
|
-
} : {};
|
|
202
|
-
}, () => {
|
|
203
|
-
var n;
|
|
204
|
-
return (n = e.dom) != null && n.onDrop ? {
|
|
205
|
-
onDrop: e.dom.onDrop
|
|
206
|
-
} : {};
|
|
207
|
-
}, () => {
|
|
208
|
-
var n;
|
|
209
|
-
return (n = e.dom) != null && n.onDragEnd ? {
|
|
210
|
-
onDragEnd: e.dom.onDragEnd
|
|
211
|
-
} : {};
|
|
212
|
-
}, () => {
|
|
213
|
-
var n;
|
|
214
|
-
return (n = e.dom) != null && n.onMouseEnter ? {
|
|
215
|
-
onMouseEnter: e.dom.onMouseEnter
|
|
216
|
-
} : {};
|
|
217
|
-
}, () => {
|
|
218
|
-
var n;
|
|
219
|
-
return (n = e.dom) != null && n.onMouseLeave ? {
|
|
220
|
-
onMouseLeave: e.dom.onMouseLeave
|
|
221
|
-
} : {};
|
|
222
|
-
}), [f(b(H, {
|
|
223
|
-
get when() {
|
|
224
|
-
return X(() => e.indentGuide !== "none")() && e.row.depth > 0;
|
|
225
|
-
},
|
|
226
|
-
get children() {
|
|
227
|
-
return E(re, A("class", f(C.treeIndentGuides, !0), !1));
|
|
228
|
-
}
|
|
229
|
-
})), f(b(H, {
|
|
230
|
-
get when() {
|
|
231
|
-
return X(() => e.indentGuide === "active" && e.activeGuideDepth >= 0)() && e.row.depth > e.activeGuideDepth;
|
|
232
|
-
},
|
|
233
|
-
get children() {
|
|
234
|
-
return E(ft, A("class", f(C.treeIndentGuideActive, !0), !1), V("--tree-active-col:", `${f(e.activeGuideDepth, !0)}`));
|
|
235
|
-
}
|
|
236
|
-
})), f(b(H, {
|
|
237
|
-
get when() {
|
|
238
|
-
return e.showChevronGutter;
|
|
239
|
-
},
|
|
240
|
-
get children() {
|
|
241
|
-
return t();
|
|
242
|
-
}
|
|
243
|
-
})), E(gt, A("class", f(C.treeRowContent, !0), !1), f(e.content)), f(b(H, {
|
|
244
|
-
get when() {
|
|
245
|
-
return e.actions;
|
|
246
|
-
},
|
|
247
|
-
get children() {
|
|
248
|
-
return E(yt, A("class", f(C.treeRowActions, !0), !1), f(e.actions));
|
|
249
|
-
}
|
|
250
|
-
}))], !1);
|
|
251
|
-
}
|
|
252
|
-
function hn(e) {
|
|
253
|
-
const t = () => e.query ? typeof e.query == "function" ? e.query() : e.query : "", n = O(() => {
|
|
254
|
-
const r = t().trim();
|
|
255
|
-
if (r.length === 0) return null;
|
|
256
|
-
const o = Ne(r);
|
|
257
|
-
return o ? o(e.text) : null;
|
|
258
|
-
});
|
|
259
|
-
return b(H, {
|
|
260
|
-
get when() {
|
|
261
|
-
return n();
|
|
262
|
-
},
|
|
263
|
-
get fallback() {
|
|
264
|
-
return e.text;
|
|
265
|
-
},
|
|
266
|
-
get children() {
|
|
267
|
-
return b(ke, {
|
|
268
|
-
get each() {
|
|
269
|
-
return n();
|
|
270
|
-
},
|
|
271
|
-
children: (r) => b(H, {
|
|
272
|
-
get when() {
|
|
273
|
-
return r.match;
|
|
274
|
-
},
|
|
275
|
-
get fallback() {
|
|
276
|
-
return r.text;
|
|
277
|
-
},
|
|
278
|
-
get children() {
|
|
279
|
-
return E(wt, A("class", f(e.class ?? C.treeMatchHighlight, !0), !1), f(r.text));
|
|
280
|
-
}
|
|
281
|
-
})
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
const mt = "vk_treeStickyWidget_Q-8QQ", vt = "vk_treeStickyRow_7gWG2", oe = {
|
|
287
|
-
treeStickyWidget: mt,
|
|
288
|
-
treeStickyRow: vt
|
|
289
|
-
};
|
|
290
|
-
var St = ["<div", ' role="list"', ' style="', '">', "</div>"], kt = ["<div", ' role="listitem" style="', '">', "</div>"];
|
|
291
|
-
function xt(e) {
|
|
292
|
-
return E(St, A("class", f(oe.treeStickyWidget, !0), !1), A("aria-label", f(e.label, !0), !1), V("height:", `${f(e.height, !0)}px`), f(b(fe, {
|
|
293
|
-
get each() {
|
|
294
|
-
return e.rows;
|
|
295
|
-
},
|
|
296
|
-
children: (t, n) => E(kt, A("class", f(oe.treeStickyRow, !0), !1), V("top:", `${f(t().top, !0)}px`) + V(";z-index:", `${f(e.rows.length, !0) - f(n, !0)}`), f(b(we, {
|
|
297
|
-
sticky: !0,
|
|
298
|
-
get row() {
|
|
299
|
-
return t().row;
|
|
300
|
-
},
|
|
301
|
-
get index() {
|
|
302
|
-
return t().index;
|
|
303
|
-
},
|
|
304
|
-
get rowHeight() {
|
|
305
|
-
return e.descriptor.rowHeight;
|
|
306
|
-
},
|
|
307
|
-
get isCursor() {
|
|
308
|
-
return e.isCursor(t().index);
|
|
309
|
-
},
|
|
310
|
-
get isSelected() {
|
|
311
|
-
return e.isSelected(t().row);
|
|
312
|
-
},
|
|
313
|
-
treeHasFocus: () => !1,
|
|
314
|
-
get showChevronGutter() {
|
|
315
|
-
return e.showChevronGutter;
|
|
316
|
-
},
|
|
317
|
-
get indentGuide() {
|
|
318
|
-
return e.indentGuide;
|
|
319
|
-
},
|
|
320
|
-
get activeGuideDepth() {
|
|
321
|
-
return e.activeGuideDepth;
|
|
322
|
-
},
|
|
323
|
-
get dom() {
|
|
324
|
-
var r, o;
|
|
325
|
-
return (o = (r = e.descriptor).rowProps) == null ? void 0 : o.call(r, t().row);
|
|
326
|
-
},
|
|
327
|
-
get content() {
|
|
328
|
-
return e.descriptor.renderContent(t().row);
|
|
329
|
-
},
|
|
330
|
-
get actions() {
|
|
331
|
-
var r, o;
|
|
332
|
-
return (o = (r = e.descriptor).renderActions) == null ? void 0 : o.call(r, t().row);
|
|
333
|
-
},
|
|
334
|
-
get onSelect() {
|
|
335
|
-
return e.onSelect;
|
|
336
|
-
},
|
|
337
|
-
get onFocusRow() {
|
|
338
|
-
return e.onFocusRow;
|
|
339
|
-
},
|
|
340
|
-
get onToggle() {
|
|
341
|
-
return e.onToggle;
|
|
342
|
-
},
|
|
343
|
-
onActivateClick: () => e.onReveal(t().index),
|
|
344
|
-
get onOpenMenu() {
|
|
345
|
-
return e.onOpenMenu;
|
|
346
|
-
}
|
|
347
|
-
})))
|
|
348
|
-
})));
|
|
349
|
-
}
|
|
350
|
-
var Ct = ["<div", ' role="status" aria-live="polite" aria-atomic="true">', "<span", ">", "</span></div>"], bt = ["<div", ' style="', '">', "</div>"], It = ["<p", ">", "</p>"], Rt = ["<div", ' style="', '">', "", "", "</div>"];
|
|
351
|
-
const ae = "roving-tabindex";
|
|
352
|
-
function fn(e) {
|
|
353
|
-
const t = () => e.surface.descriptor, n = () => e.surface.controller;
|
|
354
|
-
let r;
|
|
355
|
-
const o = O(() => ({
|
|
356
|
-
...ge,
|
|
357
|
-
...t().capabilities
|
|
358
|
-
})), a = () => o().canExpand && (t().chevronGutter ?? !0), l = O(() => {
|
|
359
|
-
if ((t().indentGuide ?? "none") !== "active") return -1;
|
|
360
|
-
const g = e.surface.cursorRow();
|
|
361
|
-
return g ? g.depth - 1 : -1;
|
|
362
|
-
}), y = O(() => {
|
|
363
|
-
const {
|
|
364
|
-
start: g,
|
|
365
|
-
end: m
|
|
366
|
-
} = e.surface.scroller.range();
|
|
367
|
-
return Array.from({
|
|
368
|
-
length: m - g
|
|
369
|
-
}, (T, _) => g + _);
|
|
370
|
-
}), w = xe(() => n().cursorIndex());
|
|
371
|
-
De({
|
|
372
|
-
container: () => r,
|
|
373
|
-
supportsMultiselect: () => o().canMultiSelect,
|
|
374
|
-
verbs: {
|
|
375
|
-
selectAll: () => n().selectAll()
|
|
376
|
-
}
|
|
377
|
-
}), Ke();
|
|
378
|
-
const v = O(() => Le({
|
|
379
|
-
treeId: t().id,
|
|
380
|
-
label: t().ariaLabel,
|
|
381
|
-
multiSelectable: o().canMultiSelect,
|
|
382
|
-
focusMode: ae,
|
|
383
|
-
cursorKey: n().cursorKey(),
|
|
384
|
-
flat: !o().canExpand
|
|
385
|
-
})), u = () => r !== void 0, d = (g, m) => {
|
|
386
|
-
n().selectIndex(g, m);
|
|
387
|
-
}, k = (g, m, T) => {
|
|
388
|
-
var _, D;
|
|
389
|
-
(D = (_ = t()).onActivate) == null || D.call(_, g, m, T);
|
|
390
|
-
}, I = (g, m) => {
|
|
391
|
-
e.surface.openMenu(g, {
|
|
392
|
-
x: m.clientX,
|
|
393
|
-
y: m.clientY
|
|
394
|
-
}, m);
|
|
395
|
-
}, x = (g) => {
|
|
396
|
-
e.surface.scroller.scrollToIndex(g, "auto", e.surface.stickyInsetFor(g));
|
|
397
|
-
};
|
|
398
|
-
return E(Rt, A("class", f(C.treeStickyHost, !0), !1), V("--tree-indent-base:", `${f(t().indentBaseRem ?? 0, !0)}rem`), f(b(H, {
|
|
399
|
-
get when() {
|
|
400
|
-
return n().typeAheadQuery().length > 0;
|
|
401
|
-
},
|
|
402
|
-
get children() {
|
|
403
|
-
return E(Ct, A("class", f(C.treeSpeedSearchBadge, !0), !1), f(b($e, {
|
|
404
|
-
get class() {
|
|
405
|
-
return C.treeSpeedSearchIcon;
|
|
406
|
-
}
|
|
407
|
-
})), A("class", f(C.treeSpeedSearchText, !0), !1), f(n().typeAheadQuery()));
|
|
408
|
-
}
|
|
409
|
-
})), f(b(Ae, {
|
|
410
|
-
viewportRef: (g) => {
|
|
411
|
-
var m;
|
|
412
|
-
e.surface.scroller.containerRef(g), (m = e.viewportRef) == null || m.call(e, g);
|
|
413
|
-
},
|
|
414
|
-
get viewportClass() {
|
|
415
|
-
return `${C.treeViewport} ${e.viewportClass ?? ""}`.trim();
|
|
416
|
-
},
|
|
417
|
-
get children() {
|
|
418
|
-
return [de("div", he(v, {
|
|
419
|
-
get class() {
|
|
420
|
-
return C.treeContainer;
|
|
421
|
-
},
|
|
422
|
-
get style() {
|
|
423
|
-
return {
|
|
424
|
-
height: `${e.surface.scroller.totalHeight()}px`
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
}), E(bt, A("class", f(C.treeSlice, !0), !1), V("transform:", `translate3d(0, ${f(e.surface.scroller.offsetY(), !0)}px, 0)`), f(b(fe, {
|
|
428
|
-
get each() {
|
|
429
|
-
return y();
|
|
430
|
-
},
|
|
431
|
-
children: (g) => {
|
|
432
|
-
const m = O(() => e.surface.source().at(g())), T = () => w(g()), _ = () => n().selectedKeys().has(m().key), D = O(() => Fe({
|
|
433
|
-
treeId: t().id,
|
|
434
|
-
rows: e.surface.source(),
|
|
435
|
-
index: g(),
|
|
436
|
-
flat: !o().canExpand
|
|
437
|
-
}));
|
|
438
|
-
return b(we, {
|
|
439
|
-
get row() {
|
|
440
|
-
return m();
|
|
441
|
-
},
|
|
442
|
-
get index() {
|
|
443
|
-
return g();
|
|
444
|
-
},
|
|
445
|
-
get aria() {
|
|
446
|
-
return Pe({
|
|
447
|
-
structure: D(),
|
|
448
|
-
focusMode: ae,
|
|
449
|
-
isCursor: T(),
|
|
450
|
-
isSelected: _()
|
|
451
|
-
});
|
|
452
|
-
},
|
|
453
|
-
get rowHeight() {
|
|
454
|
-
return t().rowHeight;
|
|
455
|
-
},
|
|
456
|
-
get isCursor() {
|
|
457
|
-
return T();
|
|
458
|
-
},
|
|
459
|
-
get isSelected() {
|
|
460
|
-
return _();
|
|
461
|
-
},
|
|
462
|
-
treeHasFocus: u,
|
|
463
|
-
get showChevronGutter() {
|
|
464
|
-
return a();
|
|
465
|
-
},
|
|
466
|
-
get indentGuide() {
|
|
467
|
-
return t().indentGuide ?? "none";
|
|
468
|
-
},
|
|
469
|
-
get activeGuideDepth() {
|
|
470
|
-
return l();
|
|
471
|
-
},
|
|
472
|
-
get dom() {
|
|
473
|
-
var $, G;
|
|
474
|
-
return (G = ($ = t()).rowProps) == null ? void 0 : G.call($, m());
|
|
475
|
-
},
|
|
476
|
-
get content() {
|
|
477
|
-
return t().renderContent(m());
|
|
478
|
-
},
|
|
479
|
-
get actions() {
|
|
480
|
-
var $, G;
|
|
481
|
-
return (G = ($ = t()).renderActions) == null ? void 0 : G.call($, m());
|
|
482
|
-
},
|
|
483
|
-
onSelect: d,
|
|
484
|
-
onFocusRow: ($) => n().focusIndex($),
|
|
485
|
-
onToggle: ($) => {
|
|
486
|
-
var G, U;
|
|
487
|
-
return (U = (G = t()).onToggle) == null ? void 0 : U.call(G, $);
|
|
488
|
-
},
|
|
489
|
-
onActivateClick: k,
|
|
490
|
-
onOpenMenu: I
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
}))), !1), b(H, {
|
|
494
|
-
get when() {
|
|
495
|
-
return X(() => e.surface.source().length === 0)() && t().emptyLabel;
|
|
496
|
-
},
|
|
497
|
-
get children() {
|
|
498
|
-
return E(It, A("class", f(C.treeEmpty, !0), !1), f(t().emptyLabel));
|
|
499
|
-
}
|
|
500
|
-
})];
|
|
501
|
-
}
|
|
502
|
-
})), f(b(H, {
|
|
503
|
-
get when() {
|
|
504
|
-
return e.surface.stickyState().rows.length > 0;
|
|
505
|
-
},
|
|
506
|
-
get children() {
|
|
507
|
-
return b(xt, {
|
|
508
|
-
get rows() {
|
|
509
|
-
return e.surface.stickyState().rows;
|
|
510
|
-
},
|
|
511
|
-
get height() {
|
|
512
|
-
return e.surface.stickyState().height;
|
|
513
|
-
},
|
|
514
|
-
get label() {
|
|
515
|
-
return Te("Sticky parent rows");
|
|
516
|
-
},
|
|
517
|
-
get descriptor() {
|
|
518
|
-
return t();
|
|
519
|
-
},
|
|
520
|
-
get showChevronGutter() {
|
|
521
|
-
return a();
|
|
522
|
-
},
|
|
523
|
-
get indentGuide() {
|
|
524
|
-
return t().indentGuide ?? "none";
|
|
525
|
-
},
|
|
526
|
-
get activeGuideDepth() {
|
|
527
|
-
return l();
|
|
528
|
-
},
|
|
529
|
-
isCursor: (g) => n().cursorIndex() === g,
|
|
530
|
-
isSelected: (g) => n().selectedKeys().has(g.key),
|
|
531
|
-
onSelect: d,
|
|
532
|
-
onFocusRow: (g) => n().focusIndex(g),
|
|
533
|
-
onToggle: (g) => {
|
|
534
|
-
var m, T;
|
|
535
|
-
return (T = (m = t()).onToggle) == null ? void 0 : T.call(m, g);
|
|
536
|
-
},
|
|
537
|
-
onReveal: x,
|
|
538
|
-
onOpenMenu: I
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
})));
|
|
542
|
-
}
|
|
543
|
-
const ce = 10, N = (e, t) => Math.max(0, Math.min(e, t - 1));
|
|
544
|
-
function At(e) {
|
|
545
|
-
return e.key.length === 1 && e.key !== " " && !e.ctrlKey && !e.metaKey && !e.altKey;
|
|
546
|
-
}
|
|
547
|
-
function Tt(e, t) {
|
|
548
|
-
const { index: n, rowCount: r, capabilities: o } = t;
|
|
549
|
-
if (r === 0) return null;
|
|
550
|
-
const a = n < 0 ? -1 : n;
|
|
551
|
-
switch (He(e)) {
|
|
552
|
-
case "ArrowDown":
|
|
553
|
-
return e.shiftKey && o.canMultiSelect ? { type: "extend", to: N(a + 1, r) } : { type: "move", to: N(a + 1, r) };
|
|
554
|
-
case "ArrowUp":
|
|
555
|
-
return a < 0 ? { type: "move", to: r - 1 } : e.shiftKey && o.canMultiSelect ? { type: "extend", to: N(a - 1, r) } : { type: "move", to: N(a - 1, r) };
|
|
556
|
-
case "Home":
|
|
557
|
-
return { type: "move", to: 0 };
|
|
558
|
-
case "End":
|
|
559
|
-
return { type: "move", to: r - 1 };
|
|
560
|
-
case "PageDown":
|
|
561
|
-
return {
|
|
562
|
-
type: "move",
|
|
563
|
-
to: N(Math.max(a, 0) + ce, r)
|
|
564
|
-
};
|
|
565
|
-
case "PageUp":
|
|
566
|
-
return {
|
|
567
|
-
type: "move",
|
|
568
|
-
to: N(Math.max(a, 0) - ce, r)
|
|
569
|
-
};
|
|
570
|
-
case "ArrowRight":
|
|
571
|
-
return o.canExpand ? { type: "expandOrDescend" } : { type: "flatNavigate", direction: "in" };
|
|
572
|
-
case "ArrowLeft":
|
|
573
|
-
return e.ctrlKey || e.metaKey ? null : o.canExpand ? { type: "collapseOrAscend" } : { type: "flatNavigate", direction: "out" };
|
|
574
|
-
case "Enter":
|
|
575
|
-
return { type: "activate" };
|
|
576
|
-
case "ContextMenu":
|
|
577
|
-
return { type: "openMenu" };
|
|
578
|
-
case "F10":
|
|
579
|
-
return e.shiftKey ? { type: "openMenu" } : null;
|
|
580
|
-
}
|
|
581
|
-
return e.key === " " ? o.canExpand ? { type: "toggle" } : null : o.canTypeAhead && At(e) ? { type: "typeAhead", char: e.key } : null;
|
|
582
|
-
}
|
|
583
|
-
function _t(e, t, n, r = !1) {
|
|
584
|
-
const o = n.toLowerCase();
|
|
585
|
-
if (o.length === 0) return -1;
|
|
586
|
-
const a = e.length;
|
|
587
|
-
if (a === 0) return -1;
|
|
588
|
-
const l = r ? 0 : 1;
|
|
589
|
-
for (let y = l; y <= a; y++) {
|
|
590
|
-
const w = (t + y + a) % a;
|
|
591
|
-
if (e.at(w).label.toLowerCase().startsWith(o)) return w;
|
|
592
|
-
}
|
|
593
|
-
for (let y = l; y <= a; y++) {
|
|
594
|
-
const w = (t + y + a) % a;
|
|
595
|
-
if (e.at(w).label.toLowerCase().includes(o)) return w;
|
|
596
|
-
}
|
|
597
|
-
return -1;
|
|
598
|
-
}
|
|
599
|
-
function Mt(e, t, n) {
|
|
600
|
-
const r = [...n].filter((v) => e.indexOfKey(v) >= 0), o = Et(e, t, r), a = Dt(e, o), l = (v) => v.selectable !== !1 && (a === void 0 || v.kind === a), y = new Set(r);
|
|
601
|
-
let w = o < 0 ? -1 : e.parentIndex(o);
|
|
602
|
-
for (; ; ) {
|
|
603
|
-
const v = Kt(e, w, l);
|
|
604
|
-
if (w < 0) return v;
|
|
605
|
-
const u = v.length === y.size && v.every((k) => y.has(k));
|
|
606
|
-
if (v.length > 0 && !u) return v;
|
|
607
|
-
const d = e.at(w);
|
|
608
|
-
if (v.length > 0 && l(d))
|
|
609
|
-
return [d.key, ...v];
|
|
610
|
-
w = e.parentIndex(w);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
function Et(e, t, n) {
|
|
614
|
-
const r = t >= 0 && t < e.length ? e.at(t).key : void 0;
|
|
615
|
-
if (r !== void 0 && !n.includes(r)) return t;
|
|
616
|
-
const o = n[0];
|
|
617
|
-
return o === void 0 ? -1 : e.indexOfKey(o);
|
|
618
|
-
}
|
|
619
|
-
function Dt(e, t) {
|
|
620
|
-
if (t >= 0) {
|
|
621
|
-
const r = e.at(t);
|
|
622
|
-
if (r.selectable !== !1) return r.kind;
|
|
623
|
-
}
|
|
624
|
-
const n = Math.max(t, 0);
|
|
625
|
-
for (let r = 0; r < e.length; r++) {
|
|
626
|
-
const o = e.at((n + r) % e.length);
|
|
627
|
-
if (o.selectable !== !1) return o.kind;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
function Kt(e, t, n) {
|
|
631
|
-
const r = t < 0 ? 0 : t + 1, o = t < 0 ? e.length - 1 : e.subtreeEnd(t), a = [];
|
|
632
|
-
for (let l = r; l <= o; l++) {
|
|
633
|
-
const y = e.at(l);
|
|
634
|
-
n(y) && a.push(y.key);
|
|
635
|
-
}
|
|
636
|
-
return a;
|
|
637
|
-
}
|
|
638
|
-
const le = 1e3;
|
|
639
|
-
function z(e, t) {
|
|
640
|
-
const n = [];
|
|
641
|
-
for (let r = e.parentIndex(t); r !== -1; r = e.parentIndex(r))
|
|
642
|
-
n.push(e.at(r).key);
|
|
643
|
-
return { key: e.at(t).key, ancestors: n, index: t };
|
|
644
|
-
}
|
|
645
|
-
function ue(e, t) {
|
|
646
|
-
if (t === null || e.length === 0) return -1;
|
|
647
|
-
if (t.index < e.length && e.at(t.index).key === t.key)
|
|
648
|
-
return t.index;
|
|
649
|
-
const n = e.indexOfKey(t.key);
|
|
650
|
-
if (n >= 0) return n;
|
|
651
|
-
for (const r of t.ancestors) {
|
|
652
|
-
const o = e.indexOfKey(r);
|
|
653
|
-
if (o >= 0) return o;
|
|
654
|
-
}
|
|
655
|
-
return Math.min(t.index, e.length - 1);
|
|
656
|
-
}
|
|
657
|
-
function $t(e) {
|
|
658
|
-
const t = () => ({
|
|
659
|
-
...ge,
|
|
660
|
-
...e.capabilities,
|
|
661
|
-
expandAll: !1
|
|
662
|
-
}), [n, r] = Q(null), [o, a] = Q(
|
|
663
|
-
/* @__PURE__ */ new Set()
|
|
664
|
-
), [l, y] = Q(null), w = O(
|
|
665
|
-
() => ue(e.rows(), n())
|
|
666
|
-
), v = () => ue(e.rows(), l()), u = O(() => {
|
|
667
|
-
const c = w();
|
|
668
|
-
return c < 0 ? null : e.rows().at(c).key;
|
|
669
|
-
});
|
|
670
|
-
Y(() => {
|
|
671
|
-
const c = n(), s = w();
|
|
672
|
-
if (c === null || s < 0) return;
|
|
673
|
-
const i = e.rows(), h = i.at(s).key;
|
|
674
|
-
if (h === c.key) {
|
|
675
|
-
s !== c.index && r(z(i, s));
|
|
676
|
-
return;
|
|
677
|
-
}
|
|
678
|
-
c.ancestors.includes(h) && r(z(i, s));
|
|
679
|
-
});
|
|
680
|
-
const [d, k] = Q("");
|
|
681
|
-
let I = 0, x;
|
|
682
|
-
const g = () => {
|
|
683
|
-
x !== void 0 && (clearTimeout(x), x = void 0), d().length > 0 && k("");
|
|
684
|
-
}, m = () => {
|
|
685
|
-
x !== void 0 && (clearTimeout(x), x = void 0), x = setTimeout(() => {
|
|
686
|
-
k(""), x = void 0;
|
|
687
|
-
}, le);
|
|
688
|
-
};
|
|
689
|
-
Ce(() => {
|
|
690
|
-
x !== void 0 && (clearTimeout(x), x = void 0);
|
|
691
|
-
});
|
|
692
|
-
const T = (c) => {
|
|
693
|
-
const s = e.rows();
|
|
694
|
-
return c >= 0 && c < s.length ? s.at(c) : void 0;
|
|
695
|
-
}, _ = (c, s) => {
|
|
696
|
-
var h;
|
|
697
|
-
const i = z(e.rows(), c);
|
|
698
|
-
r(i), s && y(i), (h = e.onScrollToIndex) == null || h.call(e, c);
|
|
699
|
-
}, D = (c) => {
|
|
700
|
-
const s = e.rows();
|
|
701
|
-
c < 0 || c >= s.length || c === w() || _(c, !0);
|
|
702
|
-
}, $ = (c) => {
|
|
703
|
-
var i;
|
|
704
|
-
const s = e.rows().indexOfKey(c);
|
|
705
|
-
s < 0 || (s === w() ? (i = e.onScrollToIndex) == null || i.call(e, s) : D(s));
|
|
706
|
-
}, G = (c, s) => {
|
|
707
|
-
var L;
|
|
708
|
-
const i = e.rows(), h = (L = T(c)) == null ? void 0 : L.kind, [S, R] = c <= s ? [c, s] : [s, c], M = /* @__PURE__ */ new Set();
|
|
709
|
-
for (let F = Math.max(S, 0); F <= Math.min(R, i.length - 1); F++) {
|
|
710
|
-
const P = i.at(F);
|
|
711
|
-
P.selectable !== !1 && (h !== void 0 && P.kind !== h || M.add(P.key));
|
|
712
|
-
}
|
|
713
|
-
return M;
|
|
714
|
-
}, U = (c, s) => {
|
|
715
|
-
g();
|
|
716
|
-
const i = T(c);
|
|
717
|
-
if (i) {
|
|
718
|
-
if (i.selectable === !1 && s !== "range") {
|
|
719
|
-
D(c);
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
if (s === "toggle" && t().canMultiSelect) {
|
|
723
|
-
const h = new Set(o());
|
|
724
|
-
h.has(i.key) ? h.delete(i.key) : h.add(i.key), a(h), _(c, !0);
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
if (s === "range" && t().canMultiSelect) {
|
|
728
|
-
const h = v();
|
|
729
|
-
a(G(h >= 0 ? h : c, c)), _(c, !1);
|
|
730
|
-
return;
|
|
731
|
-
}
|
|
732
|
-
a(/* @__PURE__ */ new Set([i.key])), _(c, !0);
|
|
733
|
-
}
|
|
734
|
-
}, ve = (c, s) => {
|
|
735
|
-
const i = e.rows().indexOfKey(c);
|
|
736
|
-
i >= 0 && U(i, s);
|
|
737
|
-
}, Se = () => {
|
|
738
|
-
g(), o().size > 0 && a(/* @__PURE__ */ new Set());
|
|
739
|
-
}, Z = (c, s) => {
|
|
740
|
-
const i = e.rows(), h = T(c);
|
|
741
|
-
if (!h) return;
|
|
742
|
-
const S = h.depth + 1, R = i.subtreeEnd(c);
|
|
743
|
-
for (let M = c + 1; M <= R; M = i.subtreeEnd(M) + 1) {
|
|
744
|
-
const L = i.at(M);
|
|
745
|
-
L.depth === S && s(L, M);
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
return {
|
|
749
|
-
cursorIndex: w,
|
|
750
|
-
cursorKey: u,
|
|
751
|
-
selectedKeys: o,
|
|
752
|
-
typeAheadQuery: d,
|
|
753
|
-
get capabilities() {
|
|
754
|
-
return t();
|
|
755
|
-
},
|
|
756
|
-
focusIndex: D,
|
|
757
|
-
focusKey: $,
|
|
758
|
-
selectIndex: U,
|
|
759
|
-
selectKey: ve,
|
|
760
|
-
clearSelection: Se,
|
|
761
|
-
selectChildren: (c) => {
|
|
762
|
-
const s = /* @__PURE__ */ new Set();
|
|
763
|
-
let i, h = !1, S = -1;
|
|
764
|
-
Z(c, (R, M) => {
|
|
765
|
-
if (R.selectable !== !1) {
|
|
766
|
-
if (!h)
|
|
767
|
-
i = R.kind, S = M, h = !0;
|
|
768
|
-
else if (i !== void 0 && R.kind !== i) return;
|
|
769
|
-
s.add(R.key);
|
|
770
|
-
}
|
|
771
|
-
}), s.size !== 0 && (a(s), S >= 0 && _(S, !0));
|
|
772
|
-
},
|
|
773
|
-
selectAll: () => {
|
|
774
|
-
t().canMultiSelect && a(
|
|
775
|
-
new Set(Mt(e.rows(), w(), o()))
|
|
776
|
-
);
|
|
777
|
-
},
|
|
778
|
-
childKindsHomogeneous: (c) => {
|
|
779
|
-
let s, i = !1, h = 0, S = 0;
|
|
780
|
-
return Z(c, (R) => {
|
|
781
|
-
R.selectable !== !1 && (h++, i ? (s === void 0 || R.kind === s) && S++ : (s = R.kind, i = !0, S++));
|
|
782
|
-
}), {
|
|
783
|
-
homogeneous: h > 0 && h === S,
|
|
784
|
-
total: h,
|
|
785
|
-
selectable: S
|
|
786
|
-
};
|
|
787
|
-
},
|
|
788
|
-
handleKeyDown: (c) => {
|
|
789
|
-
var R, M, L, F, P, J, ee;
|
|
790
|
-
if (pe(c, "Escape") && d().length > 0) {
|
|
791
|
-
c.preventDefault(), c.stopPropagation(), g();
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
const s = e.rows(), i = w(), h = Tt(c, {
|
|
795
|
-
index: i,
|
|
796
|
-
rowCount: s.length,
|
|
797
|
-
capabilities: t()
|
|
798
|
-
});
|
|
799
|
-
if (!h) return;
|
|
800
|
-
const S = T(i);
|
|
801
|
-
switch (h.type) {
|
|
802
|
-
case "move":
|
|
803
|
-
c.preventDefault(), D(h.to);
|
|
804
|
-
return;
|
|
805
|
-
case "extend": {
|
|
806
|
-
c.preventDefault();
|
|
807
|
-
const K = v();
|
|
808
|
-
a(G(K >= 0 ? K : i, h.to)), _(h.to, !1);
|
|
809
|
-
return;
|
|
810
|
-
}
|
|
811
|
-
case "expandOrDescend":
|
|
812
|
-
if (!S) return;
|
|
813
|
-
if (c.preventDefault(), S.expandable && !S.expanded) {
|
|
814
|
-
(R = e.onToggle) == null || R.call(e, S);
|
|
815
|
-
return;
|
|
816
|
-
}
|
|
817
|
-
D(i + 1);
|
|
818
|
-
return;
|
|
819
|
-
case "collapseOrAscend": {
|
|
820
|
-
if (!S) return;
|
|
821
|
-
if (c.preventDefault(), S.expandable && S.expanded) {
|
|
822
|
-
(M = e.onToggle) == null || M.call(e, S);
|
|
823
|
-
return;
|
|
824
|
-
}
|
|
825
|
-
const K = s.parentIndex(i);
|
|
826
|
-
K >= 0 && D(K);
|
|
827
|
-
return;
|
|
828
|
-
}
|
|
829
|
-
case "toggle":
|
|
830
|
-
if (!(S != null && S.expandable)) return;
|
|
831
|
-
c.preventDefault(), (L = e.onToggle) == null || L.call(e, S);
|
|
832
|
-
return;
|
|
833
|
-
case "flatNavigate":
|
|
834
|
-
c.preventDefault(), (F = e.onFlatNavigate) == null || F.call(e, h.direction, S);
|
|
835
|
-
return;
|
|
836
|
-
case "activate":
|
|
837
|
-
if (!S) return;
|
|
838
|
-
c.preventDefault(), (P = e.onActivate) == null || P.call(e, S);
|
|
839
|
-
return;
|
|
840
|
-
case "openMenu": {
|
|
841
|
-
if (!S) return;
|
|
842
|
-
c.preventDefault();
|
|
843
|
-
const K = c.target, p = K == null ? void 0 : K.getBoundingClientRect();
|
|
844
|
-
(J = e.onOpenMenu) == null || J.call(e, S, {
|
|
845
|
-
x: Math.round((p == null ? void 0 : p.left) ?? 0),
|
|
846
|
-
y: Math.round((p == null ? void 0 : p.bottom) ?? 0)
|
|
847
|
-
});
|
|
848
|
-
return;
|
|
849
|
-
}
|
|
850
|
-
case "typeAhead": {
|
|
851
|
-
const K = ((ee = e.now) == null ? void 0 : ee.call(e)) ?? Date.now(), p = K - I > le, B = p ? "" : d(), q = B.length === 1 && B.toLowerCase() === h.char.toLowerCase() ? B : `${B}${h.char}`, te = _t(
|
|
852
|
-
s,
|
|
853
|
-
i,
|
|
854
|
-
q,
|
|
855
|
-
q.length > 1 && !p
|
|
856
|
-
);
|
|
857
|
-
if (I = K, te < 0) {
|
|
858
|
-
k(B), B.length > 0 ? m() : g();
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
k(q), m(), c.preventDefault(), D(te);
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
},
|
|
866
|
-
openMenuAt: (c, s) => {
|
|
867
|
-
var h;
|
|
868
|
-
const i = T(c);
|
|
869
|
-
i && ((h = e.onOpenMenu) == null || h.call(e, i, s));
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
}
|
|
873
|
-
const Gt = 0.4, Ot = { rows: [], height: 0 };
|
|
874
|
-
function me(e) {
|
|
875
|
-
return Math.max(Math.floor(e), 1);
|
|
876
|
-
}
|
|
877
|
-
function Ht(e, t, n) {
|
|
878
|
-
let r = t, o = e.parentIndex(r);
|
|
879
|
-
for (; o !== -1; ) {
|
|
880
|
-
if (o === n) return r;
|
|
881
|
-
r = o, o = e.parentIndex(r);
|
|
882
|
-
}
|
|
883
|
-
return n === -1 ? r : -1;
|
|
884
|
-
}
|
|
885
|
-
function pt(e, t, n, r) {
|
|
886
|
-
let o = e;
|
|
887
|
-
for (let l = 0; l < e.length; l++)
|
|
888
|
-
if (e[l].top + r > n || l >= t) {
|
|
889
|
-
o = e.slice(0, l);
|
|
890
|
-
break;
|
|
891
|
-
}
|
|
892
|
-
const a = o[o.length - 1];
|
|
893
|
-
return a ? { rows: o, height: a.top + r } : { rows: [], height: 0 };
|
|
894
|
-
}
|
|
895
|
-
function Lt(e) {
|
|
896
|
-
const { rows: t, scrollTop: n, rowHeight: r, viewportHeight: o } = e;
|
|
897
|
-
if (t.length === 0 || r <= 0) return Ot;
|
|
898
|
-
const a = me(e.maxCount), l = [];
|
|
899
|
-
let y = 0, w = -1;
|
|
900
|
-
for (; ; ) {
|
|
901
|
-
const v = Math.floor((n + y) / r);
|
|
902
|
-
if (v < 0 || v >= t.length) break;
|
|
903
|
-
const u = Ht(t, v, w);
|
|
904
|
-
if (u === -1) break;
|
|
905
|
-
const d = t.subtreeEnd(u);
|
|
906
|
-
if (d === u || u === v && n === u * r - y) break;
|
|
907
|
-
const k = (d + 1) * r - n, I = y, x = I + r > k && I <= k ? k - r : I;
|
|
908
|
-
if (l.push({ index: u, row: t.at(u), top: x }), y = x + r, w = u, l.length >= a) break;
|
|
909
|
-
}
|
|
910
|
-
return pt(
|
|
911
|
-
l,
|
|
912
|
-
a,
|
|
913
|
-
o * Gt,
|
|
914
|
-
r
|
|
915
|
-
);
|
|
916
|
-
}
|
|
917
|
-
function Ft(e, t, n, r) {
|
|
918
|
-
if (t < 0 || t >= e.length) return 0;
|
|
919
|
-
const o = me(r);
|
|
920
|
-
let a = 0, l = e.parentIndex(t);
|
|
921
|
-
for (; l !== -1 && (a++, a !== o); )
|
|
922
|
-
l = e.parentIndex(l);
|
|
923
|
-
return a * n;
|
|
924
|
-
}
|
|
925
|
-
function se(e, t, n) {
|
|
926
|
-
if (t <= 0 || e.length === 0 || n <= 0) return null;
|
|
927
|
-
const r = Math.min(e.length - 1, Math.floor(t / n));
|
|
928
|
-
return {
|
|
929
|
-
key: e.at(r).key,
|
|
930
|
-
offset: t - r * n,
|
|
931
|
-
contentTop: t
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
function Pt(e, t, n, r) {
|
|
935
|
-
if (t === null || Math.abs(n - t.contentTop) >= ne)
|
|
936
|
-
return null;
|
|
937
|
-
const o = e.indexOfKey(t.key);
|
|
938
|
-
if (o < 0) return null;
|
|
939
|
-
const a = o * r + t.offset;
|
|
940
|
-
return Math.abs(a - t.contentTop) >= ne ? a : null;
|
|
941
|
-
}
|
|
942
|
-
const Bt = 8, ie = 7, Nt = { rows: [], height: 0 };
|
|
943
|
-
function gn(e) {
|
|
944
|
-
const t = be(Oe), n = O(() => e.rows()), r = Ge({
|
|
945
|
-
count: () => n().length,
|
|
946
|
-
itemHeight: e.rowHeight,
|
|
947
|
-
overscan: e.overscan ?? Bt
|
|
948
|
-
}), o = O(() => e.stickyScroll !== !0 ? Nt : Lt({
|
|
949
|
-
rows: n(),
|
|
950
|
-
scrollTop: r.scrollTop(),
|
|
951
|
-
rowHeight: e.rowHeight,
|
|
952
|
-
viewportHeight: r.viewportHeight(),
|
|
953
|
-
maxCount: e.stickyScrollMaxCount ?? ie
|
|
954
|
-
})), a = (u) => e.stickyScroll === !0 ? Ft(
|
|
955
|
-
n(),
|
|
956
|
-
u,
|
|
957
|
-
e.rowHeight,
|
|
958
|
-
e.stickyScrollMaxCount ?? ie
|
|
959
|
-
) : 0, l = $t({
|
|
960
|
-
rows: n,
|
|
961
|
-
...e.capabilities ? { capabilities: e.capabilities } : {},
|
|
962
|
-
onToggle: (u) => {
|
|
963
|
-
var d;
|
|
964
|
-
return (d = e.onToggle) == null ? void 0 : d.call(e, u);
|
|
965
|
-
},
|
|
966
|
-
onActivate: (u) => {
|
|
967
|
-
var d;
|
|
968
|
-
return (d = e.onActivate) == null ? void 0 : d.call(e, u, "keyboard");
|
|
969
|
-
},
|
|
970
|
-
onOpenMenu: (u, d) => v(u, d),
|
|
971
|
-
onCollapseAll: () => {
|
|
972
|
-
var u;
|
|
973
|
-
return (u = e.onCollapseAll) == null ? void 0 : u.call(e);
|
|
974
|
-
},
|
|
975
|
-
onFlatNavigate: (u, d) => {
|
|
976
|
-
var k;
|
|
977
|
-
return (k = e.onFlatNavigate) == null ? void 0 : k.call(
|
|
978
|
-
e,
|
|
979
|
-
u,
|
|
980
|
-
d
|
|
981
|
-
);
|
|
982
|
-
},
|
|
983
|
-
onRename: (u) => {
|
|
984
|
-
var d;
|
|
985
|
-
return (d = e.onRename) == null ? void 0 : d.call(e, u);
|
|
986
|
-
},
|
|
987
|
-
onDestroy: (u) => {
|
|
988
|
-
var d;
|
|
989
|
-
return (d = e.onDestroy) == null ? void 0 : d.call(e, u);
|
|
990
|
-
},
|
|
991
|
-
// Arrow keys in a virtualized list are a lie without this: the row the
|
|
992
|
-
// cursor lands on may not be mounted yet.
|
|
993
|
-
//
|
|
994
|
-
// The inset is what keeps them honest once rows are pinned on top: "scroll
|
|
995
|
-
// just enough" would otherwise stop the moment the cursor row reached the
|
|
996
|
-
// viewport's top edge — which is now underneath the widget. Arrowing UP into
|
|
997
|
-
// a parent would walk the cursor into a row nobody can see. Every scroll the
|
|
998
|
-
// controller does — focus, the three selects, select-children, extend —
|
|
999
|
-
// comes through this one call, so this is the only place it has to be said.
|
|
1000
|
-
onScrollToIndex: (u) => r.scrollToIndex(u, "auto", a(u))
|
|
1001
|
-
}), y = () => {
|
|
1002
|
-
const u = l.cursorIndex();
|
|
1003
|
-
return u < 0 ? void 0 : n().at(u);
|
|
1004
|
-
};
|
|
1005
|
-
let w = null;
|
|
1006
|
-
Y(() => {
|
|
1007
|
-
const u = r.scrollTop();
|
|
1008
|
-
w = se(
|
|
1009
|
-
Ie(n),
|
|
1010
|
-
u,
|
|
1011
|
-
e.rowHeight
|
|
1012
|
-
);
|
|
1013
|
-
}), Y(
|
|
1014
|
-
Re(
|
|
1015
|
-
n,
|
|
1016
|
-
(u) => {
|
|
1017
|
-
const d = Pt(
|
|
1018
|
-
u,
|
|
1019
|
-
w,
|
|
1020
|
-
r.readScrollTop(),
|
|
1021
|
-
e.rowHeight
|
|
1022
|
-
);
|
|
1023
|
-
d !== null && r.scrollToContentTop(d), w = se(
|
|
1024
|
-
u,
|
|
1025
|
-
r.readScrollTop(),
|
|
1026
|
-
e.rowHeight
|
|
1027
|
-
);
|
|
1028
|
-
},
|
|
1029
|
-
{ defer: !0 }
|
|
1030
|
-
)
|
|
1031
|
-
);
|
|
1032
|
-
function v(u, d, k) {
|
|
1033
|
-
if (e.openMenu) {
|
|
1034
|
-
e.openMenu(u, d, k);
|
|
1035
|
-
return;
|
|
1036
|
-
}
|
|
1037
|
-
if (!e.buildMenu) return;
|
|
1038
|
-
const I = e.buildMenu(u, l.selectedKeys());
|
|
1039
|
-
if (I.length !== 0) {
|
|
1040
|
-
if (!t)
|
|
1041
|
-
throw new j(
|
|
1042
|
-
"createTreeSurface: descriptor builds a context menu but no DesktopContextMenuProvider is mounted"
|
|
1043
|
-
);
|
|
1044
|
-
t.open(d.x, d.y, I, k);
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
return {
|
|
1048
|
-
descriptor: e,
|
|
1049
|
-
controller: l,
|
|
1050
|
-
scroller: r,
|
|
1051
|
-
source: n,
|
|
1052
|
-
cursorRow: y,
|
|
1053
|
-
stickyState: o,
|
|
1054
|
-
stickyInsetFor: a,
|
|
1055
|
-
openMenu: v
|
|
1056
|
-
};
|
|
1057
|
-
}
|
|
1058
|
-
const yn = 0.85;
|
|
1059
|
-
function W(e, t) {
|
|
1060
|
-
if (!Number.isInteger(t) || t < 0 || t >= e.length)
|
|
1061
|
-
throw new j(
|
|
1062
|
-
`tree row source: index ${t} is outside 0..${e.length - 1}`
|
|
1063
|
-
);
|
|
1064
|
-
}
|
|
1065
|
-
function Vt(e) {
|
|
1066
|
-
const t = e.length, n = new Int32Array(t), r = new Int32Array(t), o = new Int32Array(t), a = new Int32Array(t), l = [], y = [], w = [], v = [];
|
|
1067
|
-
let u = -1, d = -1;
|
|
1068
|
-
for (let k = 0; k < t; k++) {
|
|
1069
|
-
const I = e[k].depth;
|
|
1070
|
-
for (; y.length > 0 && e[y[y.length - 1]].depth >= I; )
|
|
1071
|
-
r[y.pop()] = k - 1, w.pop(), v.pop();
|
|
1072
|
-
const x = y.length - 1;
|
|
1073
|
-
n[k] = x < 0 ? -1 : y[x];
|
|
1074
|
-
const g = x < 0 ? u : w[x];
|
|
1075
|
-
let m = x < 0 ? d : v[x];
|
|
1076
|
-
g !== I && (m = l.length, l.push(0), x < 0 ? (u = I, d = m) : (w[x] = I, v[x] = m)), l[m] = l[m] + 1, a[k] = m, o[k] = l[m], y.push(k), w.push(-1), v.push(-1);
|
|
1077
|
-
}
|
|
1078
|
-
for (const k of y) r[k] = t - 1;
|
|
1079
|
-
return { parent: n, subtreeEnd: r, posInSet: o, group: a, groupSizes: l };
|
|
1080
|
-
}
|
|
1081
|
-
function Ut(e) {
|
|
1082
|
-
const t = /* @__PURE__ */ new Map();
|
|
1083
|
-
for (let n = 0; n < e.length; n++) {
|
|
1084
|
-
const r = e[n].key, o = t.get(r);
|
|
1085
|
-
if (o !== void 0)
|
|
1086
|
-
throw new j(
|
|
1087
|
-
`tree row source: key "${r}" occurs at rows ${o} and ${n}`
|
|
1088
|
-
);
|
|
1089
|
-
t.set(r, n);
|
|
1090
|
-
}
|
|
1091
|
-
return t;
|
|
1092
|
-
}
|
|
1093
|
-
function wn(e) {
|
|
1094
|
-
const t = e.slice(), n = Vt(t), r = Ut(t), o = {
|
|
1095
|
-
length: t.length,
|
|
1096
|
-
at: (a) => (W(o, a), t[a]),
|
|
1097
|
-
parentIndex: (a) => (W(o, a), n.parent[a]),
|
|
1098
|
-
subtreeEnd: (a) => (W(o, a), n.subtreeEnd[a]),
|
|
1099
|
-
siblingPosition: (a) => (W(o, a), {
|
|
1100
|
-
posInSet: n.posInSet[a],
|
|
1101
|
-
setSize: n.groupSizes[n.group[a]]
|
|
1102
|
-
}),
|
|
1103
|
-
indexOfKey: (a) => r.get(a) ?? -1
|
|
1104
|
-
};
|
|
1105
|
-
return o;
|
|
1106
|
-
}
|
|
1107
|
-
export {
|
|
1108
|
-
ge as D,
|
|
1109
|
-
yn as T,
|
|
1110
|
-
hn as a,
|
|
1111
|
-
we as b,
|
|
1112
|
-
fn as c,
|
|
1113
|
-
W as d,
|
|
1114
|
-
Le as e,
|
|
1115
|
-
Pe as f,
|
|
1116
|
-
Fe as g,
|
|
1117
|
-
$t as h,
|
|
1118
|
-
gn as i,
|
|
1119
|
-
wn as j,
|
|
1120
|
-
Mt as s,
|
|
1121
|
-
ye as t
|
|
1122
|
-
};
|