@vokril/ui-solid 0.2.1 → 0.3.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 +11 -0
- package/dist/{CommandPalette-4w3pEbna.cjs → CommandPalette-CF0B1C8k.cjs} +1 -1
- package/dist/{CommandPalette-D5BzLE0U.js → CommandPalette-DiCgZhOV.js} +1 -1
- package/dist/{GuidedTour-YUs4zuez.js → GuidedTour-C6Na3wqL.js} +1208 -1242
- package/dist/{GuidedTour-CYgy48bt.cjs → GuidedTour-DzQoun_d.cjs} +9 -9
- package/dist/{StatusBarNotificationBell-DQ94Snzi.cjs → StatusBarNotificationBell-CGW8eLXe.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-BWZj0Pc2.js → StatusBarNotificationBell-DUiOZ0m5.js} +2 -2
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +27 -0
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +27 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +15 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +15 -0
- package/dist/_internal/app/keybindings/contextKey/builtins.d.cts +48 -2
- package/dist/_internal/app/keybindings/contextKey/builtins.d.ts +48 -2
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +30 -0
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +30 -0
- package/dist/builtins-DM7FDxEt.cjs +1 -0
- package/dist/builtins-XOM9gfIx.js +74 -0
- package/dist/descriptor-7e-M9YCk.cjs +1 -0
- package/dist/descriptor-DxSLz4-c.js +1106 -0
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +3 -0
- package/dist/host/index.d.ts +3 -0
- package/dist/host/index.js +67 -61
- package/dist/index.cjs +1 -1
- package/dist/index.js +411 -404
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +3 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +3 -3
- package/dist/server/{CommandPalette-C-Y0biXL.cjs → CommandPalette-CklLeIaO.cjs} +1 -1
- package/dist/server/{CommandPalette-C69NFoDY.js → CommandPalette-Dq-wVRJf.js} +1 -1
- package/dist/server/{GuidedTour-C38isG70.js → GuidedTour-CC3huRhY.js} +1074 -1109
- package/dist/server/{GuidedTour-TAGGtEp2.cjs → GuidedTour-Dik03Ffv.cjs} +11 -11
- package/dist/server/{StatusBarNotificationBell-Bm2ZiM-t.js → StatusBarNotificationBell-Cg9Zomfn.js} +2 -2
- package/dist/server/{StatusBarNotificationBell-DL_OCMv7.cjs → StatusBarNotificationBell-DSuT1si2.cjs} +1 -1
- package/dist/server/builtins-DM7FDxEt.cjs +1 -0
- package/dist/server/builtins-XOM9gfIx.js +74 -0
- package/dist/server/descriptor-BXVyZiT7.cjs +1 -0
- package/dist/server/descriptor-CqLXoy2i.js +992 -0
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +71 -65
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +713 -706
- 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 +3 -3
- package/dist/server/{settingsSearchContributor-CDqRlqt7.cjs → settingsSearchContributor-BHsOfue1.cjs} +1 -1
- package/dist/server/{settingsSearchContributor-Dn-HFipc.js → settingsSearchContributor-xo70xEuW.js} +1 -1
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +9 -8
- package/dist/server/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/server/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/dist/{settingsSearchContributor-BGImAgsw.js → settingsSearchContributor-Ba4vBBmO.js} +1 -1
- package/dist/{settingsSearchContributor-Ci6vEEQ1.cjs → settingsSearchContributor-CYWXZV0b.cjs} +1 -1
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +32 -0
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +22 -0
- package/dist/solid/_internal/app/keybindings/contextKey/builtins.js +10 -0
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +25 -0
- package/dist/solid/host/index.js +3 -0
- package/dist/solid/tree/TreeSurface.jsx +17 -0
- package/dist/solid/tree/createTreeController.js +7 -6
- package/dist/solid/tree/index.js +1 -0
- package/dist/solid/tree/selectAllInScope.js +47 -0
- package/dist/solid/tree/treeKeymap.js +0 -5
- package/dist/tree/createTreeController.d.cts +5 -0
- package/dist/tree/createTreeController.d.ts +5 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.d.cts +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.js +9 -8
- package/dist/tree/selectAllInScope.d.cts +5 -0
- package/dist/tree/selectAllInScope.d.ts +5 -0
- package/dist/tree/treeKeymap.d.cts +2 -4
- package/dist/tree/treeKeymap.d.ts +2 -4
- package/dist/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/package.json +1 -1
- package/dist/descriptor-NxSXaBdy.cjs +0 -1
- package/dist/descriptor-zKWZdo3E.js +0 -1059
- package/dist/server/descriptor-B6FQLHie.cjs +0 -1
- package/dist/server/descriptor-DNWBt66Z.js +0 -951
- package/dist/server/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-DOZlLrpo.js +0 -113
- package/dist/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/visibleBrowserRegistry-DOZlLrpo.js +0 -113
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../StatusBarNotificationBell-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../StatusBarNotificationBell-DSuT1si2.cjs"),i=require("../catalogNotify-CTZ3DSTN.cjs"),e=require("../notificationSuppressions-D7FZmJy8.cjs"),o=require("../GuidedTour-Dik03Ffv.cjs"),s=require("../notification-CrxHMXsk.cjs"),n=require("../visibleBrowserRegistry-BTfWUlI1.cjs"),a=require("../displayOwner-BNw2Foa_.cjs");exports.LogFilterBar=t.LogFilterBar;exports.NOTIFICATION_SOURCES=t.NOTIFICATION_SOURCES;exports.NOTIFICATION_SOURCE_IDS=t.NOTIFICATION_SOURCE_IDS;exports.NotificationPanel=t.NotificationPanel;exports.NotificationsCenter=t.NotificationsCenter;exports.StatusBarNotificationBell=t.StatusBarNotificationBell;exports.compileNotificationSearchMatcher=t.compileNotificationSearchMatcher;exports.createNotificationPreviewRuntime=t.createNotificationPreviewRuntime;exports.exportTimelineAsCsv=t.exportTimelineAsCsv;exports.exportTimelineAsJson=t.exportTimelineAsJson;exports.filterNotificationTimeline=t.filterNotificationTimeline;exports.groupTimelineEntries=t.groupTimelineEntries;exports.isNotificationSourceId=t.isNotificationSourceId;exports.listNotificationSources=t.listNotificationSources;exports.resolveNotificationSource=t.resolveNotificationSource;exports.startNotificationSchedulers=t.startNotificationSchedulers;exports.startNotificationSettingsReactions=t.startNotificationSettingsReactions;exports.SEVERITY_ORDER=i.SEVERITY_ORDER;exports.SEVERITY_TONES=i.SEVERITY_TONES;exports.addTimelineEntry=i.addTimelineEntry;exports.applyNotificationRules=i.applyNotificationRules;exports.catalogNotificationHost=i.catalogNotificationHost;exports.clearCompiledRuleRegexCache=i.clearCompiledRuleRegexCache;exports.clearNotificationTimeline=i.clearNotificationTimeline;exports.defineNotification=i.defineNotification;exports.defineNotificationScenario=i.defineNotificationScenario;exports.digestNotSentText=i.digestNotSentText;exports.dismissNotificationFromCatalog=i.dismissNotificationFromCatalog;exports.dismissNotificationTimelineEntries=i.dismissNotificationTimelineEntries;exports.dismissNotificationTimelineEntriesBySource=i.dismissNotificationTimelineEntriesBySource;exports.dismissNotificationTimelineEntry=i.dismissNotificationTimelineEntry;exports.enrichErrorToast=i.enrichErrorToast;exports.entryVendorMatch=i.entryVendorMatch;exports.fire=i.fire;exports.flushDigest=i.flushDigest;exports.invalidateCustomSoundCache=i.invalidateCustomSoundCache;exports.isInQuietHours=i.isInQuietHours;exports.loadCustomSoundDataUrl=i.loadCustomSoundDataUrl;exports.markTimelineSeen=i.markTimelineSeen;exports.notifyFromCatalog=i.notifyFromCatalog;exports.playQueryCompletedCue=i.playQueryCompletedCue;exports.playSeverityToneIfEnabled=i.playSeverityToneIfEnabled;exports.progressFromCatalog=i.progressFromCatalog;exports.provideCatalogNotificationHost=i.provideCatalogNotificationHost;exports.refreshOsBadge=i.refreshOsBadge;exports.resolveCatalogPreviewPriority=i.resolveCatalogPreviewPriority;exports.resolveNotificationScenario=i.resolveNotificationScenario;exports.resolveSeverityTone=i.resolveSeverityTone;exports.setEmailDigestTransport=i.setEmailDigestTransport;exports.shouldFireOsNative=i.shouldFireOsNative;exports.showCatalogPreviewToast=i.showCatalogPreviewToast;exports.subscribeNotificationTimeline=i.subscribeNotificationTimeline;exports.subscribeUnreadCount=i.subscribeUnreadCount;exports.toTimelineActions=i.toTimelineActions;exports.toast=i.toast;exports.toggleTimelineEntryPin=i.toggleTimelineEntryPin;exports.closeNotification=e.closeNotification;exports.configureDesktopBridge=e.configureDesktopBridge;exports.createNativeNotificationEngine=e.createNativeNotificationEngine;exports.decideFilter=e.decideFilter;exports.deriveImplicitRemindKey=e.deriveImplicitRemindKey;exports.dismissKey=e.dismissKey;exports.isKeyDismissed=e.isKeyDismissed;exports.isKeyRemindSuppressed=e.isKeyRemindSuppressed;exports.isNotificationSticky=e.isNotificationSticky;exports.isSourceMuted=e.isSourceMuted;exports.isSpamDropHandle=e.isSpamDropHandle;exports.notify=e.notify;exports.remindLater=e.remindLater;exports.resolveNotificationDuration=e.resolveNotificationDuration;exports.restoreAllKeys=e.restoreAllKeys;exports.restoreKey=e.restoreKey;exports.setNotificationFocus=e.setNotificationFocus;exports.setNotificationHover=e.setNotificationHover;exports.setSourceMuted=e.setSourceMuted;exports.subscribeNotifications=e.subscribeNotifications;exports.toggleNotificationExpanded=e.toggleNotificationExpanded;exports.unmuteAllSources=e.unmuteAllSources;exports.NO_NOTIFICATION_OVERLAY=o.NO_NOTIFICATION_OVERLAY;exports.NotificationHost=o.NotificationHost;exports.NotificationItem=o.NotificationItem;exports.appWindowNotificationOverlay=o.appWindowNotificationOverlay;exports.dismissableToastIds=o.dismissableToastIds;exports.notificationSettings=s.notificationSettings;exports.setOpenSettingsHandler=n.setOpenSettingsHandler;exports.registerNotificationHost=a.registerDisplayHost;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as a, N as e, a as t, b as o, c as r, S as n, d as c, e as l, f, g as N, h as m, i as d, j as u, l as S, r as p, s as T, k as g } from "../StatusBarNotificationBell-
|
|
1
|
+
import { L as a, N as e, a as t, b as o, c as r, S as n, d as c, e as l, f, g as N, h as m, i as d, j as u, l as S, r as p, s as T, k as g } from "../StatusBarNotificationBell-Cg9Zomfn.js";
|
|
2
2
|
import { S as C, h as E, j as v, k as I, l as O, m as R, n as h, o as x, q as b, t as F, u as A, v as D, w as H, x as B, y as K, z as P, A as _, B as k, C as w, D as L, E as M, F as U, G as V, H as j, I as Q, J as Y, p as q, K as J, L as z, M as G, N as W, f as X, O as Z, P as $, Q as ii, R as si, T as ai, U as ei, V as ti } from "../catalogNotify-Dnyfrb-0.js";
|
|
3
3
|
import { b as ri, c as ni, d as ci, e as li, f as fi, g as Ni, i as mi, h as di, j as ui, k as Si, l as pi, n as Ti, r as gi, m as yi, o as Ci, q as Ei, s as vi, t as Ii, u as Oi, v as Ri, x as hi, y as xi } from "../notificationSuppressions-DkrUMXHx.js";
|
|
4
|
-
import { N as Fi, a as Ai, b as Di, c as Hi, d as Bi } from "../GuidedTour-
|
|
4
|
+
import { N as Fi, a as Ai, b as Di, c as Hi, d as Bi } from "../GuidedTour-CC3huRhY.js";
|
|
5
5
|
import { n as Pi } from "../notification-DFbp3S_f.js";
|
|
6
|
-
import { s as ki } from "../visibleBrowserRegistry-
|
|
6
|
+
import { s as ki } from "../visibleBrowserRegistry-Dw2Y4y_I.js";
|
|
7
7
|
import { r as Li } from "../displayOwner-B_ezJv-O.js";
|
|
8
8
|
export {
|
|
9
9
|
a as LogFilterBar,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-CklLeIaO.cjs"),i=require("../Modal-w2CtUJ-g.cjs"),u=require("../OverlayScrollArea-D4e9D9Nd.cjs"),n=require("../GuidedTour-Dik03Ffv.cjs"),o=require("../format-BWHKiXRe.cjs"),a=require("../dialogFocusRestore-BAF8QM6v.cjs"),t=require("../Popover-BkZ9n6TA.cjs"),r=require("../overlayStack-BZR1emYS.cjs"),O=require("../useFloatingDropdown-vYQiMh6N.cjs"),p=require("../ownerWindow-BCmJFMbR.cjs"),l=require("../prefersReducedMotion-BQp-Q4UR.cjs"),s=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),c=require("../settingsSearchContributor-BHsOfue1.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createConfirmDialog=e.createConfirmDialog;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.createPromptDialog=e.createPromptDialog;exports.createSaveDiscardDialog=e.createSaveDiscardDialog;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=i.ActionPlaceRow;exports.Modal=i.Modal;exports.modalTitlebarHeight=i.modalTitlebarHeight;exports.OverlayScrollArea=u.OverlayScrollArea;exports.Disclosure=n.Disclosure;exports.GuidedTour=n.GuidedTour;exports.Panel=n.Panel;exports.PanelSeparator=n.PanelSeparator;exports.ToastHost=n.NotificationHost;exports.positionTourCard=n.positionTourCard;exports.COLD_DELAY_MS=o.COLD_DELAY_MS;exports.COOLDOWN_MS=o.COOLDOWN_MS;exports.DEFAULT_MARGIN=o.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=o.DEFAULT_OFFSET;exports.HoverTooltip=o.HoverTooltip;exports.TOOLTIP_CURSOR_OFFSET_X=o.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=o.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=o.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=o.TOOLTIP_VIEWPORT_MARGIN;exports.WARM_DELAY_MS=o.WARM_DELAY_MS;exports.collectFocusableElements=o.collectFocusableElements;exports.computeAnchoredTooltipPosition=o.computeAnchoredTooltipPosition;exports.computeTooltipPointerPosition=o.computeTooltipPointerPosition;exports.createDialogShellFocus=o.createDialogShellFocus;exports.createTooltipCoordinator=o.createTooltipCoordinator;exports.resolveDialogShellKeyIntent=o.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=o.resolveModalFocusTrapTarget;exports.tooltipCoordinator=o.tooltipCoordinator;exports.trapTabFocusWithin=o.trapTabFocusWithin;exports.OverlayPortal=a.OverlayPortal;exports.restoreFocusTo=a.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=a.shouldRestoreFocusOnDialogClose;exports.AnchorAlignment=t.AnchorAlignment;exports.AnchorAxisAlignment=t.AnchorAxisAlignment;exports.AnchorPosition=t.AnchorPosition;exports.LISTBOX_OPTION_SELECTOR=t.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=t.MENU_ITEM_SELECTOR;exports.OVERLAY_DEFAULT_GAP=t.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=t.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=t.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=t.POPOVER_VIEWPORT_MARGIN;exports.Popover=t.Popover;exports.calcFixedWidthDropdownLeft=t.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=t.computeAnchoredPosition;exports.computeDropdownPosition=t.computeDropdownPosition;exports.computePopoverPosition=t.computePopoverPosition;exports.isPopoverNavigationKey=t.isPopoverNavigationKey;exports.layout2d=t.layout2d;exports.requestOwnerAnimationFrame=t.requestOwnerAnimationFrame;exports.resolvePopoverFocusForKey=t.resolvePopoverFocusForKey;exports.resolvePopoverSide=t.resolvePopoverSide;exports.getOverlayDiagnostics=r.getOverlayDiagnostics;exports.hasOpenLayerIn=r.hasOpenLayerIn;exports.isAnyOverlayOpen=r.isAnyOverlayOpen;exports.isModalOccluded=r.isModalOccluded;exports.isOverlayOverlapping=r.isOverlayOverlapping;exports.notifyOverlayChanged=r.notifyOverlayChanged;exports.notifyOverlayMotionEnd=r.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=r.notifyOverlayMotionStart;exports.onOverlayMotion=r.onOverlayMotion;exports.overlayDepth=r.overlayDepth;exports.readOverlayMutationRevision=r.readOverlayMutationRevision;exports.registerOverlayClose=r.registerOverlayClose;exports.registerOverlayCondition=r.registerOverlayCondition;exports.registerOverlayOpen=r.registerOverlayOpen;exports.useOverlayRegistration=r.useOverlayRegistration;exports.useFloatingDropdown=O.useFloatingDropdown;exports.ownerWindow=p.ownerWindow;exports.modalBackgroundExemption=l.modalBackgroundExemption;exports.neutralizeBackground=l.neutralizeBackground;exports.DesktopContextMenuContext=s.DesktopContextMenuContext;exports.useDesktopContextMenu=s.useDesktopContextMenu;exports.setDatabaseObjectSearchProvider=c.setDatabaseObjectSearchProvider;exports.setSettingsSearchSource=c.setSettingsSearchSource;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as O, N as c, O as p, S as u, f as T, g as d, h as m, i as D, j as M, k as _, l as A, T as E, m as P, n as v, o as S, p as g, q as F, r as I, s as x, t as y, u as C, v as R, w as f, x as L, y as h, z as N, A as U, B as b, E as G, G as H, H as w, I as W, J as k, K as B } from "../CommandPalette-
|
|
1
|
+
import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as O, N as c, O as p, S as u, f as T, g as d, h as m, i as D, j as M, k as _, l as A, T as E, m as P, n as v, o as S, p as g, q as F, r as I, s as x, t as y, u as C, v as R, w as f, x as L, y as h, z as N, A as U, B as b, E as G, G as H, H as w, I as W, J as k, K as B } from "../CommandPalette-Dq-wVRJf.js";
|
|
2
2
|
import { A as K, M as j, m as Y } from "../Modal-C4E01jt8.js";
|
|
3
3
|
import { O as X } from "../OverlayScrollArea-221dfKyz.js";
|
|
4
|
-
import { D as J, G as Q, P as Z, e as $, a as ee, p as ae } from "../GuidedTour-
|
|
4
|
+
import { D as J, G as Q, P as Z, e as $, a as ee, p as ae } from "../GuidedTour-CC3huRhY.js";
|
|
5
5
|
import { a as se, c as te, D as re, d as ne, H as ie, T as le, e as Oe, f as ce, g as pe, W as ue, h as Te, i as de, j as me, k as De, l as Me, r as _e, m as Ae, t as Ee, n as Pe } from "../format-BubrMUMq.js";
|
|
6
6
|
import { O as Se, r as ge, s as Fe } from "../dialogFocusRestore-DKxaV82N.js";
|
|
7
7
|
import { A as xe, a as ye, b as Ce, L as Re, M as fe, O as Le, c as he, P as Ne, d as Ue, e as be, f as Ge, g as He, h as we, i as We, j as ke, l as Be, r as Ve, k as Ke, m as je } from "../Popover-CTnX42Jq.js";
|
|
@@ -10,7 +10,7 @@ import { u as Oa } from "../useFloatingDropdown-HD3G-ECb.js";
|
|
|
10
10
|
import { o as pa } from "../ownerWindow-9mx_LD47.js";
|
|
11
11
|
import { m as Ta, n as da } from "../prefersReducedMotion-B2mMn01s.js";
|
|
12
12
|
import { D as Da, u as Ma } from "../DesktopContextMenuContext-DJ3PnqAv.js";
|
|
13
|
-
import { s as Aa, a as Ea } from "../settingsSearchContributor-
|
|
13
|
+
import { s as Aa, a as Ea } from "../settingsSearchContributor-xo70xEuW.js";
|
|
14
14
|
export {
|
|
15
15
|
K as ActionPlaceRow,
|
|
16
16
|
xe as AnchorAlignment,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const S=require("solid-js"),m=require("./i18n-DZZyw7Iu.cjs"),H=require("./notificationSuppressions-D7FZmJy8.cjs"),P=require("./visibleBrowserRegistry-
|
|
1
|
+
"use strict";const S=require("solid-js"),m=require("./i18n-DZZyw7Iu.cjs"),H=require("./notificationSuppressions-D7FZmJy8.cjs"),P=require("./visibleBrowserRegistry-BTfWUlI1.cjs"),Q="SCHEMA",[F,J]=S.createSignal(null);function K(c){J(()=>c)}const M=2,U=200,W=40;function N(c,u){const e=c.toLowerCase(),a=u.toLowerCase();return e===a?9:e.startsWith(a)?7:e.includes(a)?5:0}function Y(c){const[u,e]=S.createSignal([]),[a,r]=S.createSignal(!1),[d,i]=S.createSignal(null),o=S.useContext(P.WorkspaceTabsContext),h=()=>F(),B=()=>{if(!(o!=null&&o.activeWorkspaceTabId)||!o.workspaceTabs)return null;const n=o.activeWorkspaceTabId();return o.workspaceTabs().find(b=>b.id===n)??null},k=()=>{var n,b,C;return((b=(n=h())==null?void 0:n.getWorkspaceId)==null?void 0:b.call(n))??((C=B())==null?void 0:C.workspaceId)??null},R=()=>{var n;return!!((n=h())!=null&&n.getWorkspaceId||o!=null&&o.workspaceTabs)},L=()=>{var n;return!!((n=h())!=null&&n.hasActiveWorkspace())&&(!R()||!!k())},_=()=>{var n;return((n=h())==null?void 0:n.getSelectedSchema())??""};let j=0,y;const $=()=>{y!==void 0&&(clearTimeout(y),y=void 0)};return S.onCleanup(()=>{$(),j+=1}),S.createRenderEffect(()=>{const n=c.enabled(),b=c.query().trim();$();const C=++j;if(!n||!L()){e([]),r(!1),i(null);return}const t=h(),l=(t==null?void 0:t.getSelectedSchema())??"",v=k(),E=(t==null?void 0:t.getSchemas())??[],I=l?[l]:E,T=()=>k()===v&&h()===t&&!!(t!=null&&t.hasActiveWorkspace())&&(t==null?void 0:t.getSelectedSchema())===l,O=()=>C===j&&T()&&c.enabled();if(b.length<M){if(i(null),r(!1),l&&t){const p=t.getCachedObjectsForSchema(l);if(p&&p.length>0){const g=p.slice(0,10).map(f=>({id:`db:${l}:${f.objectType}:${f.objectName}`,kind:"database-object",title:f.objectName,description:`${f.objectType} · ${l}`,detail:l,category:m.t("Database"),objectType:f.objectType,schema:l,enabled:!0,score:1,run:()=>{T()&&t.openObject(l,f)}}));e(g);return}}e([]);return}if(e([]),I.length===0){r(!1),i(null);return}r(!0),i(null),y=setTimeout(async()=>{if(O())try{let p=[];if(v&&(t!=null&&t.searchObjects))p=[...await t.searchObjects(v,b,{limit:W,schemas:I})];else if(t&&l){let s=t.getCachedObjectsForSchema(l);if(s||(s=await t.loadObjectsForSchema(l)),s){const x=b.toLowerCase();p=s.filter(w=>w.objectName.toLowerCase().includes(x)).slice(0,W).map(w=>({owner:l,objectType:w.objectType,objectName:w.objectName,status:w.status}))}}if(!O())return;const g=b.toLowerCase(),f=E.filter(s=>s.toLowerCase().includes(g)).slice(0,3).map(s=>({id:`db:schema:${s}`,kind:"database-object",title:s,description:`${m.t("Schema")} · ${s}`,detail:m.t("Schema"),category:m.t("Database"),objectType:Q,schema:s,enabled:!0,score:N(s,b)+1,run:()=>{T()&&(t==null||t.navigateToSchema(s))}})),q=p.filter(s=>I.includes(s.owner)).map(s=>({id:`db:${s.owner}:${s.objectType}:${s.objectName}`,kind:"database-object",title:s.objectName,description:`${s.objectType} · ${s.owner}`,detail:s.owner,category:m.t("Database"),objectType:s.objectType,schema:s.owner,enabled:!0,score:N(s.objectName,b),run:()=>{T()&&(t==null||t.openObject(s.owner,s))},rawDbObject:s}));e([...f,...q]),r(!1)}catch(p){if(!O())return;const g=H.errorText(p,m.t("Failed to search database objects"));i(g),r(!1)}},U)}),{items:u,loading:a,error:d,hasWorkspaceContext:L,activeSchema:_}}let A=null;function z(c){A=c}function G(c,u){const e=u.toLowerCase();return(c.labels??[]).some(a=>m.labelText(a).toLowerCase().includes(e))}function V(c,u,e){const a=u.toLowerCase(),r=c.label.toLowerCase();if(r===a)return 8;if(r.startsWith(a))return 7;if(r.includes(a))return 6;const d=a.split(/\s+/).filter(Boolean);return d.length>1&&d.every(h=>r.includes(h))?5:c.categoryId.toLowerCase().includes(a)?4:(c.keywords??[]).some(h=>h.toLowerCase().includes(a))?3:(e.matches??G)(c,u)?2:0}function D(c,u,e){var r,d;const a=((r=e.breadcrumb)==null?void 0:r.call(e,c.categoryId))??"";return{id:`setting:${c.id}`,kind:"setting",title:((d=e.title)==null?void 0:d.call(e,c))??c.label,description:a||m.t("Settings"),category:m.t("Settings"),enabled:!0,score:u,run:()=>{e.open(c)},rawSetting:c}}function X(c,u=20){const e=A;if(!e)return[];const a=c.trim(),r=e.items();if(!a)return(e.popular?e.popular(r):r).slice(0,u).map(o=>D(o,1,e));const d=[];for(const i of r){const o=V(i,a,e);o>0&&d.push({item:i,score:o})}return d.sort((i,o)=>o.score-i.score),d.slice(0,u).map(({item:i,score:o})=>D(i,o,e))}exports.createDatabaseObjectSearch=Y;exports.searchSettings=X;exports.setDatabaseObjectSearchProvider=K;exports.setSettingsSearchSource=z;
|
package/dist/server/{settingsSearchContributor-Dn-HFipc.js → settingsSearchContributor-xo70xEuW.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSignal as T, useContext as Q, onCleanup as F, createRenderEffect as P } from "solid-js";
|
|
2
2
|
import { t as f, l as q } from "./i18n-B_XRSWWN.js";
|
|
3
3
|
import { z as K } from "./notificationSuppressions-DkrUMXHx.js";
|
|
4
|
-
import { W as M } from "./visibleBrowserRegistry-
|
|
4
|
+
import { W as M } from "./visibleBrowserRegistry-Dw2Y4y_I.js";
|
|
5
5
|
const z = "SCHEMA", [J, U] = T(null);
|
|
6
6
|
function ce(c) {
|
|
7
7
|
U(() => c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../descriptor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../descriptor-BXVyZiT7.cjs");exports.DEFAULT_TREE_CAPABILITIES=e.DEFAULT_TREE_CAPABILITIES;exports.TREE_INDENT_STEP_REM=e.TREE_INDENT_STEP_REM;exports.TreeHighlight=e.TreeHighlight;exports.TreeRow=e.TreeRow;exports.TreeSurface=e.TreeSurface;exports.buildTreeContainerAria=e.buildTreeContainerAria;exports.buildTreeRowAria=e.buildTreeRowAria;exports.createTreeController=e.createTreeController;exports.createTreeSurface=e.createTreeSurface;exports.selectAllInScope=e.selectAllInScope;exports.treeRowDomId=e.treeRowDomId;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as r, T, a as s, b as o, c as t, d as E, e as l, f as c, g as i, s as A, t as I } from "../descriptor-CqLXoy2i.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as DEFAULT_TREE_CAPABILITIES,
|
|
4
4
|
T as TREE_INDENT_STEP_REM,
|
|
5
5
|
s as TreeHighlight,
|
|
6
6
|
o as TreeRow,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
t as TreeSurface,
|
|
8
|
+
E as buildTreeContainerAria,
|
|
9
|
+
l as buildTreeRowAria,
|
|
10
|
+
c as createTreeController,
|
|
11
|
+
i as createTreeSurface,
|
|
12
|
+
A as selectAllInScope,
|
|
13
|
+
I as treeRowDomId
|
|
13
14
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { a as i, c as l, F as a } from "./builtins-XOM9gfIx.js";
|
|
2
|
+
import { onCleanup as o } from "solid-js";
|
|
3
|
+
const u = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
function f(e) {
|
|
5
|
+
const n = i();
|
|
6
|
+
if (!n) return;
|
|
7
|
+
const { registry: c } = e, t = {
|
|
8
|
+
...e.verbs,
|
|
9
|
+
isActive: () => u.get(c) === t
|
|
10
|
+
}, s = c.set(t);
|
|
11
|
+
return o(() => {
|
|
12
|
+
s(), u.get(c) === t && u.delete(c);
|
|
13
|
+
}), l({
|
|
14
|
+
contextKeys: n.contextKeys,
|
|
15
|
+
key: e.key,
|
|
16
|
+
containerRef: e.container,
|
|
17
|
+
...e.countsAsFocus ? { countsAsFocus: e.countsAsFocus } : {},
|
|
18
|
+
onFocusIn: () => {
|
|
19
|
+
var r;
|
|
20
|
+
u.set(c, t), (r = e.onFocusIn) == null || r.call(e);
|
|
21
|
+
}
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
function y() {
|
|
25
|
+
const e = [];
|
|
26
|
+
return {
|
|
27
|
+
set: (t) => (e.push(t), () => {
|
|
28
|
+
const s = e.lastIndexOf(t);
|
|
29
|
+
s !== -1 && e.splice(s, 1);
|
|
30
|
+
}),
|
|
31
|
+
current: () => e.length > 0 ? e[e.length - 1] ?? null : null,
|
|
32
|
+
find: (t) => {
|
|
33
|
+
for (let s = e.length - 1; s >= 0; s -= 1) {
|
|
34
|
+
const r = e[s];
|
|
35
|
+
if (r !== void 0 && t(r)) return r;
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const d = y();
|
|
42
|
+
function m(e) {
|
|
43
|
+
const n = i();
|
|
44
|
+
n && (f({
|
|
45
|
+
key: a.listFocus,
|
|
46
|
+
registry: d,
|
|
47
|
+
container: e.container,
|
|
48
|
+
verbs: e.verbs
|
|
49
|
+
}), l({
|
|
50
|
+
contextKeys: n.contextKeys,
|
|
51
|
+
key: a.listSupportsMultiselect,
|
|
52
|
+
containerRef: e.container,
|
|
53
|
+
countsAsFocus: () => e.supportsMultiselect()
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
m as a,
|
|
58
|
+
y as c,
|
|
59
|
+
d as l,
|
|
60
|
+
f as u
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./builtins-DM7FDxEt.cjs"),d=require("solid-js"),i=new WeakMap;function l(e){const n=u.useKeybindingsOptional();if(!n)return;const{registry:c}=e,s={...e.verbs,isActive:()=>i.get(c)===s},t=c.set(s);return d.onCleanup(()=>{t(),i.get(c)===s&&i.delete(c)}),u.createFocusContextKey({contextKeys:n.contextKeys,key:e.key,containerRef:e.container,...e.countsAsFocus?{countsAsFocus:e.countsAsFocus}:{},onFocusIn:()=>{var r;i.set(c,s),(r=e.onFocusIn)==null||r.call(e)}}),s}function o(){const e=[];return{set:s=>(e.push(s),()=>{const t=e.lastIndexOf(s);t!==-1&&e.splice(t,1)}),current:()=>e.length>0?e[e.length-1]??null:null,find:s=>{for(let t=e.length-1;t>=0;t-=1){const r=e[t];if(r!==void 0&&s(r))return r}return null}}}const a=o();function y(e){const n=u.useKeybindingsOptional();n&&(l({key:u.FOCUS_CONTEXT_KEYS.listFocus,registry:a,container:e.container,verbs:e.verbs}),u.createFocusContextKey({contextKeys:n.contextKeys,key:u.FOCUS_CONTEXT_KEYS.listSupportsMultiselect,containerRef:e.container,countsAsFocus:()=>e.supportsMultiselect()}))}exports.createPanelCommandRegistry=o;exports.listHandlers=a;exports.useFocusClaim=l;exports.useListCommands=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("solid-js"),d=require("./bugIndicatingError-D2X5Hfgg.cjs"),g=c.createContext();function p(){const e=c.useContext(g);if(!e)throw new d.BugIndicatingError("useWorkspaceTabs: missing provider");return e}const[k,x]=c.createSignal(void 0);let a=null;function V(e){a=e}function C(e){x(e),a==null||a(e)}const f=c.createContext();function T(){return c.useContext(f)}const u=new WeakMap;function w(e){let t=u.get(e);if(!t){const[r,s]=c.createSignal([]);t={entries:new Map,activeBrowsers:r,setActiveBrowsers:s},u.set(e,t)}return t}function W(e,t,r,s,i,l=0){if(!e)return;const n=w(e);if(s&&r.width>0&&r.height>0){const o=n.entries.get(t);if(o&&o.generation>l)return;n.entries.set(t,{tabId:t,bounds:{...r},lease:i,generation:l})}else{const o=n.entries.get(t);if(o&&(!i||o.lease===i)){if(o.generation>l)return;n.entries.delete(t)}}n.setActiveBrowsers(Array.from(n.entries.values()))}function b(e,t,r){if(!e)return;const s=u.get(e);if(!s)return;const i=s.entries.get(t);i&&(!r||i.lease===r)&&(s.entries.delete(t),s.setActiveBrowsers(Array.from(s.entries.values())))}function B(e){return e?w(e).activeBrowsers():[]}function v(e){return B(e).length>0}function S(e){if(e){const t=u.get(e);t&&(t.entries.clear(),t.setActiveBrowsers([]))}}exports.ToolWindowContext=f;exports.WorkspaceTabsContext=g;exports.clearVisibleBrowsersForTesting=S;exports.getVisibleBrowsers=B;exports.hasVisibleBrowser=v;exports.openSettingsModal=C;exports.registerVisibleBrowser=W;exports.setOpenSettingsHandler=V;exports.unregisterVisibleBrowser=b;exports.useToolWindowLayout=T;exports.useWorkspaceTabs=p;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { createContext as f, useContext as g, createSignal as l } from "solid-js";
|
|
2
|
+
import { B } from "./bugIndicatingError-h3J5qkL6.js";
|
|
3
|
+
const p = f();
|
|
4
|
+
function T() {
|
|
5
|
+
const e = g(p);
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new B("useWorkspaceTabs: missing provider");
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
const [V, v] = l(void 0);
|
|
11
|
+
let a = null;
|
|
12
|
+
function h(e) {
|
|
13
|
+
a = e;
|
|
14
|
+
}
|
|
15
|
+
function A(e) {
|
|
16
|
+
v(e), a == null || a(e);
|
|
17
|
+
}
|
|
18
|
+
const d = f();
|
|
19
|
+
function y() {
|
|
20
|
+
return g(d);
|
|
21
|
+
}
|
|
22
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
23
|
+
function w(e) {
|
|
24
|
+
let t = c.get(e);
|
|
25
|
+
if (!t) {
|
|
26
|
+
const [r, s] = l([]);
|
|
27
|
+
t = {
|
|
28
|
+
entries: /* @__PURE__ */ new Map(),
|
|
29
|
+
activeBrowsers: r,
|
|
30
|
+
setActiveBrowsers: s
|
|
31
|
+
}, c.set(e, t);
|
|
32
|
+
}
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
function k(e, t, r, s, i, u = 0) {
|
|
36
|
+
if (!e) return;
|
|
37
|
+
const n = w(e);
|
|
38
|
+
if (s && r.width > 0 && r.height > 0) {
|
|
39
|
+
const o = n.entries.get(t);
|
|
40
|
+
if (o && o.generation > u)
|
|
41
|
+
return;
|
|
42
|
+
n.entries.set(t, {
|
|
43
|
+
tabId: t,
|
|
44
|
+
bounds: { ...r },
|
|
45
|
+
lease: i,
|
|
46
|
+
generation: u
|
|
47
|
+
});
|
|
48
|
+
} else {
|
|
49
|
+
const o = n.entries.get(t);
|
|
50
|
+
if (o && (!i || o.lease === i)) {
|
|
51
|
+
if (o.generation > u)
|
|
52
|
+
return;
|
|
53
|
+
n.entries.delete(t);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
n.setActiveBrowsers(Array.from(n.entries.values()));
|
|
57
|
+
}
|
|
58
|
+
function S(e, t, r) {
|
|
59
|
+
if (!e) return;
|
|
60
|
+
const s = c.get(e);
|
|
61
|
+
if (!s) return;
|
|
62
|
+
const i = s.entries.get(t);
|
|
63
|
+
i && (!r || i.lease === r) && (s.entries.delete(t), s.setActiveBrowsers(Array.from(s.entries.values())));
|
|
64
|
+
}
|
|
65
|
+
function x(e) {
|
|
66
|
+
return e ? w(e).activeBrowsers() : [];
|
|
67
|
+
}
|
|
68
|
+
function b(e) {
|
|
69
|
+
return x(e).length > 0;
|
|
70
|
+
}
|
|
71
|
+
function M(e) {
|
|
72
|
+
if (e) {
|
|
73
|
+
const t = c.get(e);
|
|
74
|
+
t && (t.entries.clear(), t.setActiveBrowsers([]));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
d as T,
|
|
79
|
+
p as W,
|
|
80
|
+
y as a,
|
|
81
|
+
T as b,
|
|
82
|
+
M as c,
|
|
83
|
+
x as g,
|
|
84
|
+
b as h,
|
|
85
|
+
A as o,
|
|
86
|
+
k as r,
|
|
87
|
+
h as s,
|
|
88
|
+
S as u
|
|
89
|
+
};
|
package/dist/{settingsSearchContributor-BGImAgsw.js → settingsSearchContributor-Ba4vBBmO.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSignal as T, useContext as F, onCleanup as Q, createRenderEffect as P } from "solid-js";
|
|
2
2
|
import { t as f, l as q } from "./i18n-B_XRSWWN.js";
|
|
3
3
|
import { F as K } from "./notificationSuppressions-CBIJ4bC4.js";
|
|
4
|
-
import { W as M } from "./visibleBrowserRegistry-
|
|
4
|
+
import { W as M } from "./visibleBrowserRegistry-Dw2Y4y_I.js";
|
|
5
5
|
const J = "SCHEMA", [U, Y] = T(null);
|
|
6
6
|
function ce(c) {
|
|
7
7
|
Y(() => c);
|
package/dist/{settingsSearchContributor-Ci6vEEQ1.cjs → settingsSearchContributor-CYWXZV0b.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const S=require("solid-js"),m=require("./i18n-DZZyw7Iu.cjs"),H=require("./notificationSuppressions-DFbFpayS.cjs"),P=require("./visibleBrowserRegistry-
|
|
1
|
+
"use strict";const S=require("solid-js"),m=require("./i18n-DZZyw7Iu.cjs"),H=require("./notificationSuppressions-DFbFpayS.cjs"),P=require("./visibleBrowserRegistry-BTfWUlI1.cjs"),Q="SCHEMA",[F,J]=S.createSignal(null);function K(c){J(()=>c)}const M=2,U=200,W=40;function N(c,u){const e=c.toLowerCase(),a=u.toLowerCase();return e===a?9:e.startsWith(a)?7:e.includes(a)?5:0}function Y(c){const[u,e]=S.createSignal([]),[a,r]=S.createSignal(!1),[d,i]=S.createSignal(null),o=S.useContext(P.WorkspaceTabsContext),h=()=>F(),B=()=>{if(!(o!=null&&o.activeWorkspaceTabId)||!o.workspaceTabs)return null;const n=o.activeWorkspaceTabId();return o.workspaceTabs().find(b=>b.id===n)??null},k=()=>{var n,b,C;return((b=(n=h())==null?void 0:n.getWorkspaceId)==null?void 0:b.call(n))??((C=B())==null?void 0:C.workspaceId)??null},R=()=>{var n;return!!((n=h())!=null&&n.getWorkspaceId||o!=null&&o.workspaceTabs)},L=()=>{var n;return!!((n=h())!=null&&n.hasActiveWorkspace())&&(!R()||!!k())},_=()=>{var n;return((n=h())==null?void 0:n.getSelectedSchema())??""};let j=0,y;const $=()=>{y!==void 0&&(clearTimeout(y),y=void 0)};return S.onCleanup(()=>{$(),j+=1}),S.createRenderEffect(()=>{const n=c.enabled(),b=c.query().trim();$();const C=++j;if(!n||!L()){e([]),r(!1),i(null);return}const t=h(),l=(t==null?void 0:t.getSelectedSchema())??"",v=k(),E=(t==null?void 0:t.getSchemas())??[],I=l?[l]:E,T=()=>k()===v&&h()===t&&!!(t!=null&&t.hasActiveWorkspace())&&(t==null?void 0:t.getSelectedSchema())===l,O=()=>C===j&&T()&&c.enabled();if(b.length<M){if(i(null),r(!1),l&&t){const p=t.getCachedObjectsForSchema(l);if(p&&p.length>0){const g=p.slice(0,10).map(f=>({id:`db:${l}:${f.objectType}:${f.objectName}`,kind:"database-object",title:f.objectName,description:`${f.objectType} · ${l}`,detail:l,category:m.t("Database"),objectType:f.objectType,schema:l,enabled:!0,score:1,run:()=>{T()&&t.openObject(l,f)}}));e(g);return}}e([]);return}if(e([]),I.length===0){r(!1),i(null);return}r(!0),i(null),y=setTimeout(async()=>{if(O())try{let p=[];if(v&&(t!=null&&t.searchObjects))p=[...await t.searchObjects(v,b,{limit:W,schemas:I})];else if(t&&l){let s=t.getCachedObjectsForSchema(l);if(s||(s=await t.loadObjectsForSchema(l)),s){const x=b.toLowerCase();p=s.filter(w=>w.objectName.toLowerCase().includes(x)).slice(0,W).map(w=>({owner:l,objectType:w.objectType,objectName:w.objectName,status:w.status}))}}if(!O())return;const g=b.toLowerCase(),f=E.filter(s=>s.toLowerCase().includes(g)).slice(0,3).map(s=>({id:`db:schema:${s}`,kind:"database-object",title:s,description:`${m.t("Schema")} · ${s}`,detail:m.t("Schema"),category:m.t("Database"),objectType:Q,schema:s,enabled:!0,score:N(s,b)+1,run:()=>{T()&&(t==null||t.navigateToSchema(s))}})),q=p.filter(s=>I.includes(s.owner)).map(s=>({id:`db:${s.owner}:${s.objectType}:${s.objectName}`,kind:"database-object",title:s.objectName,description:`${s.objectType} · ${s.owner}`,detail:s.owner,category:m.t("Database"),objectType:s.objectType,schema:s.owner,enabled:!0,score:N(s.objectName,b),run:()=>{T()&&(t==null||t.openObject(s.owner,s))},rawDbObject:s}));e([...f,...q]),r(!1)}catch(p){if(!O())return;const g=H.errorText(p,m.t("Failed to search database objects"));i(g),r(!1)}},U)}),{items:u,loading:a,error:d,hasWorkspaceContext:L,activeSchema:_}}let A=null;function z(c){A=c}function G(c,u){const e=u.toLowerCase();return(c.labels??[]).some(a=>m.labelText(a).toLowerCase().includes(e))}function V(c,u,e){const a=u.toLowerCase(),r=c.label.toLowerCase();if(r===a)return 8;if(r.startsWith(a))return 7;if(r.includes(a))return 6;const d=a.split(/\s+/).filter(Boolean);return d.length>1&&d.every(h=>r.includes(h))?5:c.categoryId.toLowerCase().includes(a)?4:(c.keywords??[]).some(h=>h.toLowerCase().includes(a))?3:(e.matches??G)(c,u)?2:0}function D(c,u,e){var r,d;const a=((r=e.breadcrumb)==null?void 0:r.call(e,c.categoryId))??"";return{id:`setting:${c.id}`,kind:"setting",title:((d=e.title)==null?void 0:d.call(e,c))??c.label,description:a||m.t("Settings"),category:m.t("Settings"),enabled:!0,score:u,run:()=>{e.open(c)},rawSetting:c}}function X(c,u=20){const e=A;if(!e)return[];const a=c.trim(),r=e.items();if(!a)return(e.popular?e.popular(r):r).slice(0,u).map(o=>D(o,1,e));const d=[];for(const i of r){const o=V(i,a,e);o>0&&d.push({item:i,score:o})}return d.sort((i,o)=>o.score-i.score),d.slice(0,u).map(({item:i,score:o})=>D(i,o,e))}exports.createDatabaseObjectSearch=Y;exports.searchSettings=X;exports.setDatabaseObjectSearchProvider=K;exports.setSettingsSearchSource=z;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { onCleanup } from 'solid-js';
|
|
2
|
+
import { useKeybindingsOptional } from './keybindingsContext';
|
|
3
|
+
import { createFocusContextKey } from './createFocusContextKey';
|
|
4
|
+
const lastFocusedClaims = new WeakMap();
|
|
5
|
+
export function useFocusClaim(options) {
|
|
6
|
+
const keybindings = useKeybindingsOptional();
|
|
7
|
+
if (!keybindings)
|
|
8
|
+
return undefined;
|
|
9
|
+
const { registry } = options;
|
|
10
|
+
const claim = {
|
|
11
|
+
...options.verbs,
|
|
12
|
+
isActive: () => lastFocusedClaims.get(registry) === claim,
|
|
13
|
+
};
|
|
14
|
+
const release = registry.set(claim);
|
|
15
|
+
onCleanup(() => {
|
|
16
|
+
release();
|
|
17
|
+
if (lastFocusedClaims.get(registry) === claim) {
|
|
18
|
+
lastFocusedClaims.delete(registry);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
createFocusContextKey({
|
|
22
|
+
contextKeys: keybindings.contextKeys,
|
|
23
|
+
key: options.key,
|
|
24
|
+
containerRef: options.container,
|
|
25
|
+
...(options.countsAsFocus ? { countsAsFocus: options.countsAsFocus } : {}),
|
|
26
|
+
onFocusIn: () => {
|
|
27
|
+
lastFocusedClaims.set(registry, claim);
|
|
28
|
+
options.onFocusIn?.();
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
return claim;
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FOCUS_CONTEXT_KEYS } from '../contextKey/builtins';
|
|
2
|
+
import { listHandlers, } from '../panelCommandsRegistry';
|
|
3
|
+
import { createFocusContextKey } from './createFocusContextKey';
|
|
4
|
+
import { useKeybindingsOptional } from './keybindingsContext';
|
|
5
|
+
import { useFocusClaim } from './useFocusClaim';
|
|
6
|
+
export function useListCommands(options) {
|
|
7
|
+
const keybindings = useKeybindingsOptional();
|
|
8
|
+
if (!keybindings)
|
|
9
|
+
return;
|
|
10
|
+
useFocusClaim({
|
|
11
|
+
key: FOCUS_CONTEXT_KEYS.listFocus,
|
|
12
|
+
registry: listHandlers,
|
|
13
|
+
container: options.container,
|
|
14
|
+
verbs: options.verbs,
|
|
15
|
+
});
|
|
16
|
+
createFocusContextKey({
|
|
17
|
+
contextKeys: keybindings.contextKeys,
|
|
18
|
+
key: FOCUS_CONTEXT_KEYS.listSupportsMultiselect,
|
|
19
|
+
containerRef: options.container,
|
|
20
|
+
countsAsFocus: () => options.supportsMultiselect(),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -23,6 +23,7 @@ export const FOCUS_CONTEXT_KEYS = {
|
|
|
23
23
|
sqlEditorFocus: 'sqlEditorFocus',
|
|
24
24
|
sqlBindPromptFocus: 'sqlBindPromptFocus',
|
|
25
25
|
dashboardFocus: 'dashboardFocus',
|
|
26
|
+
dashboardCategoryFocus: 'dashboardCategoryFocus',
|
|
26
27
|
rssFeederFocus: 'rssFeederFocus',
|
|
27
28
|
rssItemSelected: 'rssItemSelected',
|
|
28
29
|
explorerFocus: 'explorerFocus',
|
|
@@ -33,7 +34,11 @@ export const FOCUS_CONTEXT_KEYS = {
|
|
|
33
34
|
gridFetching: 'gridFetching',
|
|
34
35
|
terminalFocus: 'terminalFocus',
|
|
35
36
|
sshTerminalFocus: 'sshTerminalFocus',
|
|
37
|
+
sshTerminalWorkspaceFocus: 'sshTerminalWorkspaceFocus',
|
|
38
|
+
terminalFindFocused: 'terminalFindFocused',
|
|
39
|
+
sshTerminalFindFocused: 'sshTerminalFindFocused',
|
|
36
40
|
terminalAltBufferActive: 'terminalAltBufferActive',
|
|
41
|
+
terminalAccessibleBufferFocus: 'terminalAccessibleBufferFocus',
|
|
37
42
|
terminalMultiPane: 'terminalMultiPane',
|
|
38
43
|
terminalShellType: 'terminalShellType',
|
|
39
44
|
schemaBrowserFocus: 'schemaBrowserFocus',
|
|
@@ -52,6 +57,11 @@ export const FOCUS_CONTEXT_KEYS = {
|
|
|
52
57
|
sqlSnippetsFocus: 'sqlSnippetsFocus',
|
|
53
58
|
objectCommentFocus: 'objectCommentFocus',
|
|
54
59
|
cellEditorFocus: 'cellEditorFocus',
|
|
60
|
+
cellValueFieldFocus: 'cellValueFieldFocus',
|
|
61
|
+
jsonTreeFocus: 'jsonTreeFocus',
|
|
62
|
+
jsonTreeFilterFocus: 'jsonTreeFilterFocus',
|
|
63
|
+
listFocus: 'listFocus',
|
|
64
|
+
listSupportsMultiselect: 'listSupportsMultiselect',
|
|
55
65
|
scmCommitInputFocus: 'scmCommitInputFocus',
|
|
56
66
|
terminalCommandPaletteFocus: 'terminalCommandPaletteFocus',
|
|
57
67
|
terminalCommandPaletteEntryActive: 'terminalCommandPaletteEntryActive',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function createPanelCommandRegistry() {
|
|
2
|
+
const stack = [];
|
|
3
|
+
const set = (handlers) => {
|
|
4
|
+
stack.push(handlers);
|
|
5
|
+
return () => {
|
|
6
|
+
const idx = stack.lastIndexOf(handlers);
|
|
7
|
+
if (idx !== -1)
|
|
8
|
+
stack.splice(idx, 1);
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const find = (predicate) => {
|
|
12
|
+
for (let i = stack.length - 1; i >= 0; i -= 1) {
|
|
13
|
+
const handlers = stack[i];
|
|
14
|
+
if (handlers !== undefined && predicate(handlers))
|
|
15
|
+
return handlers;
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
set,
|
|
21
|
+
current: () => (stack.length > 0 ? (stack[stack.length - 1] ?? null) : null),
|
|
22
|
+
find,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export const listHandlers = createPanelCommandRegistry();
|
package/dist/solid/host/index.js
CHANGED
|
@@ -16,6 +16,9 @@ export { setOpenSettingsHandler } from '../_internal/app/settings/ui/shell/openS
|
|
|
16
16
|
export { provideLayoutPreferences, } from '../_internal/platform/settings/preferencesCache';
|
|
17
17
|
export { provideNotificationSecretStore, } from '../_internal/app/settings/secrets/notificationSecrets';
|
|
18
18
|
export { KeybindingsProvider, useKeybindings, useKeybindingsOptional, } from '../_internal/app/keybindings/context/keybindingsContext';
|
|
19
|
+
export { useFocusClaim } from '../_internal/app/keybindings/context/useFocusClaim';
|
|
20
|
+
export { useListCommands } from '../_internal/app/keybindings/context/useListCommands';
|
|
21
|
+
export { createPanelCommandRegistry, listHandlers, } from '../_internal/app/keybindings/panelCommandsRegistry';
|
|
19
22
|
export { WorkspaceTabsContext, useWorkspaceTabs, } from '../_internal/app/contexts/WorkspaceTabsContext';
|
|
20
23
|
export { ToolWindowContext, useToolWindowLayout, } from '../_internal/app/contexts/toolWindow/ToolWindowContext';
|
|
21
24
|
export * from '../_internal/app/windows/window/HostWindowContext';
|
|
@@ -6,6 +6,8 @@ import { buildTreeContainerAria, buildTreeRowAria } from './treeAria';
|
|
|
6
6
|
import { t } from '../i18n/i18n';
|
|
7
7
|
import { TreeRow } from './TreeRow';
|
|
8
8
|
import { TreeStickyHeader } from './TreeStickyHeader';
|
|
9
|
+
import { useListCommands } from '../_internal/app/keybindings/context/useListCommands';
|
|
10
|
+
import { useKeybindingsOptional } from '../_internal/app/keybindings/context/keybindingsContext';
|
|
9
11
|
import styles from './TreeSurface.module.css.js';
|
|
10
12
|
const FOCUS_MODE = 'roving-tabindex';
|
|
11
13
|
export function TreeSurface(props) {
|
|
@@ -25,6 +27,16 @@ export function TreeSurface(props) {
|
|
|
25
27
|
return -1;
|
|
26
28
|
return row.depth - 1;
|
|
27
29
|
});
|
|
30
|
+
useListCommands({
|
|
31
|
+
container: () => containerEl,
|
|
32
|
+
supportsMultiselect: () => capabilities().canMultiSelect,
|
|
33
|
+
verbs: { selectAll: () => controller().selectAll() },
|
|
34
|
+
});
|
|
35
|
+
const ownsSelectAllChord = useKeybindingsOptional() === null;
|
|
36
|
+
const isSelectAllChord = (event) => (event.key === 'a' || event.key === 'A') &&
|
|
37
|
+
(event.ctrlKey || event.metaKey) &&
|
|
38
|
+
!event.altKey &&
|
|
39
|
+
!event.shiftKey;
|
|
28
40
|
const containerAria = createMemo(() => buildTreeContainerAria({
|
|
29
41
|
treeId: descriptor().id,
|
|
30
42
|
label: descriptor().ariaLabel,
|
|
@@ -72,6 +84,11 @@ export function TreeSurface(props) {
|
|
|
72
84
|
<div ref={containerEl} {...containerAria()} class={styles.treeContainer} style={{ height: `${props.surface.scroller.totalHeight()}px` }} onKeyDown={(event) => {
|
|
73
85
|
if (isTextEntry(event.target))
|
|
74
86
|
return;
|
|
87
|
+
if (ownsSelectAllChord && isSelectAllChord(event) && capabilities().canMultiSelect) {
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
controller().selectAll();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
75
92
|
controller().handleKeyDown(event);
|
|
76
93
|
}} onFocus={(event) => {
|
|
77
94
|
if (event.target === event.currentTarget &&
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createMemo, createSignal, onCleanup } from 'solid-js';
|
|
2
2
|
import { DEFAULT_TREE_CAPABILITIES, } from './types';
|
|
3
3
|
import { findParentIndex, findTypeAheadIndex, resolveTreeIntent, } from './treeKeymap';
|
|
4
|
+
import { selectAllInScope } from './selectAllInScope';
|
|
4
5
|
import { isKey } from '../_internal/base/keys';
|
|
5
6
|
export const TYPE_AHEAD_RESET_MS = 1000;
|
|
6
7
|
export function createTreeController(options) {
|
|
@@ -174,6 +175,11 @@ export function createTreeController(options) {
|
|
|
174
175
|
selectable,
|
|
175
176
|
};
|
|
176
177
|
};
|
|
178
|
+
const selectAll = () => {
|
|
179
|
+
if (!caps().canMultiSelect)
|
|
180
|
+
return;
|
|
181
|
+
setSelectedKeys(new Set(selectAllInScope(options.rows(), cursorIndex(), selectedKeys())));
|
|
182
|
+
};
|
|
177
183
|
const openMenuAt = (index, point) => {
|
|
178
184
|
const row = options.rows()[index];
|
|
179
185
|
if (row)
|
|
@@ -260,12 +266,6 @@ export function createTreeController(options) {
|
|
|
260
266
|
});
|
|
261
267
|
return;
|
|
262
268
|
}
|
|
263
|
-
case 'selectAll':
|
|
264
|
-
event.preventDefault();
|
|
265
|
-
setSelectedKeys(new Set(rows
|
|
266
|
-
.filter((row) => row.selectable !== false)
|
|
267
|
-
.map((row) => row.key)));
|
|
268
|
-
return;
|
|
269
269
|
case 'typeAhead': {
|
|
270
270
|
const now = options.now?.() ?? Date.now();
|
|
271
271
|
const stale = now - lastTypeAheadAt > TYPE_AHEAD_RESET_MS;
|
|
@@ -305,6 +305,7 @@ export function createTreeController(options) {
|
|
|
305
305
|
selectIndex,
|
|
306
306
|
clearSelection,
|
|
307
307
|
selectChildren,
|
|
308
|
+
selectAll,
|
|
308
309
|
childKindsHomogeneous,
|
|
309
310
|
handleKeyDown,
|
|
310
311
|
openMenuAt,
|
package/dist/solid/tree/index.js
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { findChildRange, findParentIndex } from './treeKeymap';
|
|
2
|
+
export function selectAllInScope(rows, cursor, selection) {
|
|
3
|
+
const indexByKey = new Map(rows.map((row, index) => [row.key, index]));
|
|
4
|
+
const selected = [...selection].filter((key) => indexByKey.has(key));
|
|
5
|
+
const start = startIndex(rows, cursor, selected, indexByKey);
|
|
6
|
+
const kind = lockKind(rows, start);
|
|
7
|
+
const pickable = (row) => row.selectable !== false && (kind === undefined || row.kind === kind);
|
|
8
|
+
const selectedSet = new Set(selected);
|
|
9
|
+
let scope = start < 0 ? -1 : findParentIndex(rows, start);
|
|
10
|
+
for (;;) {
|
|
11
|
+
const picked = descendantsOf(rows, scope)
|
|
12
|
+
.filter(pickable)
|
|
13
|
+
.map((row) => row.key);
|
|
14
|
+
if (scope < 0)
|
|
15
|
+
return picked;
|
|
16
|
+
const covered = picked.length === selectedSet.size &&
|
|
17
|
+
picked.every((key) => selectedSet.has(key));
|
|
18
|
+
if (picked.length > 0 && !covered)
|
|
19
|
+
return picked;
|
|
20
|
+
const scopeRow = rows[scope];
|
|
21
|
+
if (picked.length > 0 && pickable(scopeRow))
|
|
22
|
+
return [scopeRow.key, ...picked];
|
|
23
|
+
scope = findParentIndex(rows, scope);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function startIndex(rows, cursor, selected, indexByKey) {
|
|
27
|
+
const cursorKey = rows[cursor]?.key;
|
|
28
|
+
if (cursorKey !== undefined && !selected.includes(cursorKey))
|
|
29
|
+
return cursor;
|
|
30
|
+
const first = selected[0];
|
|
31
|
+
return first === undefined ? -1 : (indexByKey.get(first) ?? -1);
|
|
32
|
+
}
|
|
33
|
+
function lockKind(rows, start) {
|
|
34
|
+
const own = rows[start];
|
|
35
|
+
if (own && own.selectable !== false)
|
|
36
|
+
return own.kind;
|
|
37
|
+
const isSelectable = (row) => row.selectable !== false;
|
|
38
|
+
const next = rows.slice(Math.max(start, 0)).find(isSelectable) ??
|
|
39
|
+
rows.find(isSelectable);
|
|
40
|
+
return next?.kind;
|
|
41
|
+
}
|
|
42
|
+
function descendantsOf(rows, scope) {
|
|
43
|
+
if (scope < 0)
|
|
44
|
+
return rows;
|
|
45
|
+
const range = findChildRange(rows, scope);
|
|
46
|
+
return range ? rows.slice(range.start, range.end + 1) : [];
|
|
47
|
+
}
|
|
@@ -64,11 +64,6 @@ export function resolveTreeIntent(event, ctx) {
|
|
|
64
64
|
return null;
|
|
65
65
|
return { type: 'toggle' };
|
|
66
66
|
}
|
|
67
|
-
if ((event.key === 'a' || event.key === 'A') &&
|
|
68
|
-
(event.ctrlKey || event.metaKey) &&
|
|
69
|
-
capabilities.canMultiSelect) {
|
|
70
|
-
return { type: 'selectAll' };
|
|
71
|
-
}
|
|
72
67
|
if (capabilities.canTypeAhead && isTypeAheadChar(event)) {
|
|
73
68
|
return { type: 'typeAhead', char: event.key };
|
|
74
69
|
}
|