@vokril/ui-solid 0.17.0 → 0.19.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 +20 -0
- package/README.md +3 -1
- package/dist/{AttributeGrid-7cLOWtPn.cjs → AttributeGrid-Qzt5LYnu.cjs} +1 -1
- package/dist/{AttributeGrid-CVyqzT7-.js → AttributeGrid-XTVaiwLe.js} +2 -2
- package/dist/Button-U95Tz8F5.cjs +1 -0
- package/dist/Button-qtxB2SYf.js +305 -0
- package/dist/CommandPalette-CBA_Shqx.js +3968 -0
- package/dist/CommandPalette-CBFIo0FX.cjs +2 -0
- package/dist/{CopyButton-BtgGbiy9.cjs → CopyButton-CsM8UeX5.cjs} +1 -1
- package/dist/{CopyButton-BF7L1TCO.js → CopyButton-NfxWzVHT.js} +1 -1
- package/dist/{DateRangePicker-Ce2tTbJ4.cjs → DateRangePicker-BKHxyHL4.cjs} +1 -1
- package/dist/{DateRangePicker-jSQBwB78.js → DateRangePicker-C8IVJRT2.js} +3 -3
- package/dist/{GuidedTour-CYaR5Ozj.cjs → GuidedTour-B61cbsdy.cjs} +1 -1
- package/dist/{GuidedTour-CWDtBRHv.js → GuidedTour-Dj41FCdE.js} +2 -2
- package/dist/{HostPortal-X1iw719T.js → HostPortal-CXGUUhP8.js} +1 -1
- package/dist/{HostPortal-B9Tzk_uN.cjs → HostPortal-CgJwxt-f.cjs} +1 -1
- package/dist/{IconPicker-4bdAeGxS.cjs → IconPicker-BZCQG8SO.cjs} +1 -1
- package/dist/{IconPicker-Df6uIUpJ.js → IconPicker-DC9E35Ou.js} +2 -2
- package/dist/{Modal-CQG8l4x7.cjs → Modal-CaurOG_K.cjs} +1 -1
- package/dist/{Modal-CUPe98-o.js → Modal-DJpQqqTJ.js} +2 -2
- package/dist/{PageSkeleton-CUTLh9Ip.js → PageSkeleton-C0eVQO20.js} +2 -2
- package/dist/{PageSkeleton-C3mo6UGh.cjs → PageSkeleton-DICmahMs.cjs} +1 -1
- package/dist/{Popover-YfzC0Tjh.cjs → Popover-CWrR51eG.cjs} +1 -1
- package/dist/{Popover-Dht1jFEy.js → Popover-Cttb6NYT.js} +1 -1
- package/dist/{SearchableSelect-pCaUie2M.cjs → SearchableSelect-ClrAX2hK.cjs} +1 -1
- package/dist/{SearchableSelect-C01brsF0.js → SearchableSelect-DayP1Qs6.js} +2 -2
- package/dist/{StatusBarNotificationBell-BwqVV09r.js → StatusBarNotificationBell-CQkhUMHX.js} +6 -6
- package/dist/{StatusBarNotificationBell-C5Zc2IvW.cjs → StatusBarNotificationBell-Dw9RRZK1.cjs} +1 -1
- package/dist/{Stepper-CtaTpnQu.cjs → Stepper-DTuchuOX.cjs} +1 -1
- package/dist/{Stepper-38IAEOyT.js → Stepper-aiuAdbkl.js} +1 -1
- package/dist/{TimeSeriesChart-_NOs_Job.cjs → TimeSeriesChart-CvU0lxar.cjs} +1 -1
- package/dist/{TimeSeriesChart-ByKG4E1G.js → TimeSeriesChart-SHx_cp8y.js} +1 -1
- package/dist/ToggleButton-BcHNAGPy.cjs +1 -0
- package/dist/{ToggleButton-D-N0C2Fu.js → ToggleButton-BhP17bvW.js} +277 -276
- package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
- package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createDialogShellFocus-CxRqhbRN.cjs → createDialogShellFocus-CsrZ2GDZ.cjs} +1 -1
- package/dist/{createDialogShellFocus-BBFu3Z_O.js → createDialogShellFocus-Vv3hhW-I.js} +2 -2
- package/dist/{createResizableSidebar-q7aC7SAO.cjs → createResizableSidebar-Dau7TIuH.cjs} +1 -1
- package/dist/{createResizableSidebar-CfFxQUny.js → createResizableSidebar-gvf9me4K.js} +2 -2
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +2 -2
- package/dist/{dialogFocusRestore-BrALT8Ew.js → dialogFocusRestore--dH59ER2.js} +1 -1
- package/dist/{dialogFocusRestore-CcEsB50v.cjs → dialogFocusRestore-CL-ExfAA.cjs} +1 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +2 -2
- package/dist/fonts/inter.css +8 -0
- package/dist/fonts/jetbrains-mono.css +8 -0
- package/dist/forms/Button.d.cts +6 -1
- package/dist/forms/Button.d.ts +6 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +7 -7
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +53 -53
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/ConfirmDialog.d.cts +18 -11
- package/dist/overlay/ConfirmDialog.d.ts +18 -11
- package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
- package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +50 -50
- package/dist/overlay-stack/index.cjs +1 -1
- package/dist/overlay-stack/index.js +1 -1
- package/dist/overlayStack-Bj6Lg1Rm.js +209 -0
- package/dist/overlayStack-eD8AmuwY.cjs +1 -0
- package/dist/server/{AttributeGrid-C7aWbIe5.cjs → AttributeGrid-C_CvCXpC.cjs} +1 -1
- package/dist/server/{AttributeGrid-B2s_rp00.js → AttributeGrid-D8QYVZDq.js} +2 -2
- package/dist/server/{Button-Ck03cbUs.js → Button-BPNNFcHc.js} +73 -71
- package/dist/server/Button-VKl-_GaO.cjs +1 -0
- package/dist/server/CommandPalette-CRT5VEoR.cjs +1 -0
- package/dist/server/{CommandPalette-2UppyMxU.js → CommandPalette-DE59Rq-n.js} +1006 -1053
- package/dist/server/{CopyButton-UvtFwOtA.js → CopyButton-HDffWzaN.js} +1 -1
- package/dist/server/{CopyButton-BOmAUQD4.cjs → CopyButton-rWDnbTBF.cjs} +1 -1
- package/dist/server/{DateRangePicker-Cr58DczM.js → DateRangePicker-Dl3zr-PD.js} +3 -3
- package/dist/server/{DateRangePicker-BJteKzOY.cjs → DateRangePicker-Dq0HGz27.cjs} +1 -1
- package/dist/server/{GuidedTour-Rlsp8rOe.cjs → GuidedTour-BoPGRyX5.cjs} +1 -1
- package/dist/server/{GuidedTour-C4msn-Ag.js → GuidedTour-CIlHyRcR.js} +2 -2
- package/dist/server/{HostPortal-X1iw719T.js → HostPortal-CXGUUhP8.js} +1 -1
- package/dist/server/{HostPortal-B9Tzk_uN.cjs → HostPortal-CgJwxt-f.cjs} +1 -1
- package/dist/server/{IconPicker-9DfOxql6.cjs → IconPicker-BDS92veL.cjs} +1 -1
- package/dist/server/{IconPicker-N0wub1Aj.js → IconPicker-CZxYKJOT.js} +3 -3
- package/dist/server/{Modal-D__GTo-n.cjs → Modal-CtJFoR96.cjs} +1 -1
- package/dist/server/{Modal-DeQjfpkG.js → Modal-j54-C2Md.js} +3 -3
- package/dist/server/{PageSkeleton-D4i-UcnI.cjs → PageSkeleton-B0V43uDV.cjs} +1 -1
- package/dist/server/{PageSkeleton-C41pXOcr.js → PageSkeleton-BfGfda9G.js} +2 -2
- package/dist/server/{Popover-AYYDbpLv.cjs → Popover-BsxIKBbl.cjs} +1 -1
- package/dist/server/{Popover-BolicH3A.js → Popover-Cg28aPUZ.js} +1 -1
- package/dist/server/{SearchableSelect-Ca9g8ztu.cjs → SearchableSelect-ClQzcYdL.cjs} +1 -1
- package/dist/server/{SearchableSelect-CEcuBnge.js → SearchableSelect-DtcMC7Xu.js} +2 -2
- package/dist/server/{StatusBarNotificationBell-DyEQF2W7.js → StatusBarNotificationBell-C7zqUWP1.js} +6 -6
- package/dist/server/{StatusBarNotificationBell-BotYny7q.cjs → StatusBarNotificationBell-SO16PL5V.cjs} +1 -1
- package/dist/server/{Stepper-B_eL85hK.js → Stepper-B7wf8h9G.js} +1 -1
- package/dist/server/{Stepper--pusyxso.cjs → Stepper-CCEItuZb.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-aSHquoBv.js → TimeSeriesChart-DjNQiCn_.js} +1 -1
- package/dist/server/{TimeSeriesChart-nZeB5jtN.cjs → TimeSeriesChart-TsaZS7YU.cjs} +1 -1
- package/dist/server/{ToggleButton-DjlWwgLJ.js → ToggleButton-CHaIvApv.js} +39 -39
- package/dist/server/ToggleButton-D6Tux9wG.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createDialogShellFocus-DNjzmcGj.js → createDialogShellFocus-BFo8awdj.js} +1 -1
- package/dist/server/{createDialogShellFocus-PRRfMli-.cjs → createDialogShellFocus-BiBAZOCI.cjs} +1 -1
- package/dist/server/{createResizableSidebar-DdWdAB9l.js → createResizableSidebar-BQG5elmd.js} +2 -2
- package/dist/server/{createResizableSidebar-CZtGmUnA.cjs → createResizableSidebar-tU8FO2MK.cjs} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/{dialogFocusRestore-BrALT8Ew.js → dialogFocusRestore--dH59ER2.js} +1 -1
- package/dist/server/{dialogFocusRestore-CcEsB50v.cjs → dialogFocusRestore-CL-ExfAA.cjs} +1 -1
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{index-Cqod09d_.cjs → index-BfR3Xipt.cjs} +1 -1
- package/dist/server/{index-BNYr6EIW.js → index-Wv18Fcu8.js} +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +138 -138
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +1 -1
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +40 -40
- package/dist/server/overlay-stack/index.cjs +1 -1
- package/dist/server/overlay-stack/index.js +1 -1
- package/dist/server/overlayStack-Bj6Lg1Rm.js +209 -0
- package/dist/server/overlayStack-eD8AmuwY.cjs +1 -0
- package/dist/{useFloatingDropdown-BN4J092P.js → server/useFloatingDropdown-2Tz_es0W.js} +1 -1
- package/dist/server/{useFloatingDropdown-D9OvEFAp.cjs → useFloatingDropdown-D5UayoN6.cjs} +1 -1
- package/dist/solid/forms/Button.jsx +1 -0
- package/dist/solid/forms/Button.module.css.js +1 -0
- package/dist/solid/forms/Slider.jsx +6 -3
- package/dist/solid/overlay/ConfirmDialog.jsx +14 -26
- package/dist/solid/overlay/overlayStack.js +10 -3
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/{server/useFloatingDropdown-BN4J092P.js → useFloatingDropdown-2Tz_es0W.js} +1 -1
- package/dist/{useFloatingDropdown-D9OvEFAp.cjs → useFloatingDropdown-D5UayoN6.cjs} +1 -1
- package/package.json +4 -2
- package/dist/Button-BiKPB3cH.js +0 -303
- package/dist/Button-Nx7byQZc.cjs +0 -1
- package/dist/CommandPalette-BFi0_e3t.cjs +0 -2
- package/dist/CommandPalette-CAH08DGN.js +0 -4013
- package/dist/ToggleButton-Bz3zAtec.cjs +0 -1
- package/dist/overlayStack-DvGdPMdq.js +0 -203
- package/dist/overlayStack-DvKYN7SD.cjs +0 -1
- package/dist/server/Button-DWFMF5y0.cjs +0 -1
- package/dist/server/CommandPalette-DwpZyhO6.cjs +0 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +0 -1
- package/dist/server/overlayStack-DvGdPMdq.js +0 -203
- package/dist/server/overlayStack-DvKYN7SD.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createResizableSidebar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createResizableSidebar-tU8FO2MK.cjs"),r=require("../Stepper-CCEItuZb.cjs"),a=require("../createVirtualScroller-CL49JE2P.cjs");exports.PageHeader=e.PageHeader;exports.PageHeaderIcon=e.PageHeaderIcon;exports.ResizableSplitPane=e.ResizableSplitPane;exports.ResizeHandle=e.ResizeHandle;exports.createResizableSidebar=e.createResizableSidebar;exports.Accordion=r.Accordion;exports.Breadcrumb=r.Breadcrumb;exports.Stepper=r.Stepper;exports.Tabs=r.Tabs;exports.createVirtualScroller=a.createVirtualScroller;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as r, a as s, R as o, b as c, c as t } from "../createResizableSidebar-
|
|
2
|
-
import { A as l, B as b, S as d, T as p } from "../Stepper-
|
|
1
|
+
import { P as r, a as s, R as o, b as c, c as t } from "../createResizableSidebar-BQG5elmd.js";
|
|
2
|
+
import { A as l, B as b, S as d, T as p } from "../Stepper-B7wf8h9G.js";
|
|
3
3
|
import { c as m } from "../createVirtualScroller-vu-l4rVv.js";
|
|
4
4
|
export {
|
|
5
5
|
l as Accordion,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Stepper
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Stepper-CCEItuZb.cjs"),a=require("../tablistKeyboard-DtVKTEWz.cjs"),t=require("../createSelectionIndicator-DaZspPf1.cjs");exports.Accordion=e.Accordion;exports.Breadcrumb=e.Breadcrumb;exports.Stepper=e.Stepper;exports.Tabs=e.Tabs;exports.tabId=e.tabId;exports.tabPanelAria=e.tabPanelAria;exports.tabPanelId=e.tabPanelId;exports.createTablistKeyboardHandler=a.createTablistKeyboardHandler;exports.isTablistNavigationKey=a.isTablistNavigationKey;exports.resolveTablistNavigationTarget=a.resolveTablistNavigationTarget;exports.rovingTabIndex=a.rovingTabIndex;exports.createSelectionIndicator=t.createSelectionIndicator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as s, S as t, T as o, t as i, a as b, b as n } from "../Stepper-
|
|
1
|
+
import { A as r, B as s, S as t, T as o, t as i, a as b, b as n } from "../Stepper-B7wf8h9G.js";
|
|
2
2
|
import { c as d, i as l, r as T, a as p } from "../tablistKeyboard-AxJcXuc5.js";
|
|
3
3
|
import { c as m } from "../createSelectionIndicator-BnxXUMlT.js";
|
|
4
4
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../StatusBarNotificationBell-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../StatusBarNotificationBell-SO16PL5V.cjs"),e=require("../mainRealmDom-DwZVMPnO.cjs"),t=require("../useSettingsSubscription-DKjCwmRd.cjs");exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=i.ACCEPT_PRIMARY_ACTION_NOTIFICATION;exports.CLEAR_NOTIFICATION=i.CLEAR_NOTIFICATION;exports.HIDE_NOTIFICATION_TOASTS=i.HIDE_NOTIFICATION_TOASTS;exports.LogFilterBar=i.LogFilterBar;exports.NOTIFICATION_SOURCES=i.NOTIFICATION_SOURCES;exports.NOTIFICATION_SOURCE_IDS=i.NOTIFICATION_SOURCE_IDS;exports.NO_NOTIFICATION_OVERLAY=i.NO_NOTIFICATION_OVERLAY;exports.NotificationHost=i.NotificationHost;exports.NotificationItem=i.NotificationItem;exports.NotificationPanel=i.NotificationPanel;exports.NotificationService=i.NotificationService;exports.NotificationTimeline=i.NotificationTimeline;exports.NotificationsCenter=i.NotificationsCenter;exports.SEVERITY_ORDER=i.SEVERITY_ORDER;exports.SEVERITY_TONES=i.SEVERITY_TONES;exports.StatusBarNotificationBell=i.StatusBarNotificationBell;exports.appWindowNotificationOverlay=i.appWindowNotificationOverlay;exports.applyNotificationRules=i.applyNotificationRules;exports.clearCompiledRuleRegexCache=i.clearCompiledRuleRegexCache;exports.compileNotificationSearchMatcher=i.compileNotificationSearchMatcher;exports.createNativeNotificationEngine=i.createNativeNotificationEngine;exports.createNotificationPreviewRuntime=i.createNotificationPreviewRuntime;exports.decideFilter=i.decideFilter;exports.deleteWebhookUrl=i.deleteWebhookUrl;exports.deriveImplicitRemindKey=i.deriveImplicitRemindKey;exports.dismissKey=i.dismissKey;exports.dismissableToastIds=i.dismissableToastIds;exports.entryVendorMatch=i.entryVendorMatch;exports.exportTimelineAsCsv=i.exportTimelineAsCsv;exports.exportTimelineAsJson=i.exportTimelineAsJson;exports.filterNotificationTimeline=i.filterNotificationTimeline;exports.getSmtpPass=i.getSmtpPass;exports.getWebhookUrl=i.getWebhookUrl;exports.groupTimelineEntries=i.groupTimelineEntries;exports.isInQuietHours=i.isInQuietHours;exports.isKeyDismissed=i.isKeyDismissed;exports.isKeyRemindSuppressed=i.isKeyRemindSuppressed;exports.isNotificationSourceId=i.isNotificationSourceId;exports.isNotificationSticky=i.isNotificationSticky;exports.isSourceMuted=i.isSourceMuted;exports.isSpamDropHandle=i.isSpamDropHandle;exports.listNotificationSources=i.listNotificationSources;exports.pruneOrphanWebhookSecrets=i.pruneOrphanWebhookSecrets;exports.registerFenceAliases=i.registerFenceAliases;exports.registerNotificationCommands=i.registerNotificationCommands;exports.remindLater=i.remindLater;exports.resolveCatalogPreviewPriority=i.resolveCatalogPreviewPriority;exports.resolveNotificationDuration=i.resolveNotificationDuration;exports.resolveNotificationSource=i.resolveNotificationSource;exports.resolveSeverityTone=i.resolveSeverityTone;exports.restoreAllKeys=i.restoreAllKeys;exports.restoreKey=i.restoreKey;exports.setSmtpPass=i.setSmtpPass;exports.setSourceMuted=i.setSourceMuted;exports.setWebhookUrl=i.setWebhookUrl;exports.shouldFireOsNative=i.shouldFireOsNative;exports.toTimelineActions=i.toTimelineActions;exports.unmuteAllSources=i.unmuteAllSources;exports.defineNotification=e.defineNotification;exports.defineNotificationScenario=e.defineNotificationScenario;exports.notificationSettings=t.notificationSettings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as a, C as s, H as t, L as o, N as r, a as n, b as c, c as l, d as N, e as I, f, g as S, h as T, S as m, i as d, j as O, k as p, l as u, m as A, n as C, o as R, p as E, q as v, r as _, s as y, t as g, u as h, v as F, w as P, x, y as D, z as K, B as b, D as k, E as M, F as U, G as W, I as H, J as L, K as V, M as Y, O as w, P as B, Q as J, R as Q, T as j, U as q, V as z, W as G, X, Y as Z, Z as $, _ as ii, $ as ei, a0 as ai, a1 as si, a2 as ti, a3 as oi } from "../StatusBarNotificationBell-
|
|
1
|
+
import { A as a, C as s, H as t, L as o, N as r, a as n, b as c, c as l, d as N, e as I, f, g as S, h as T, S as m, i as d, j as O, k as p, l as u, m as A, n as C, o as R, p as E, q as v, r as _, s as y, t as g, u as h, v as F, w as P, x, y as D, z as K, B as b, D as k, E as M, F as U, G as W, I as H, J as L, K as V, M as Y, O as w, P as B, Q as J, R as Q, T as j, U as q, V as z, W as G, X, Y as Z, Z as $, _ as ii, $ as ei, a0 as ai, a1 as si, a2 as ti, a3 as oi } from "../StatusBarNotificationBell-C7zqUWP1.js";
|
|
2
2
|
import { d as ni, a as ci } from "../mainRealmDom-DPNaDWtw.js";
|
|
3
3
|
import { n as Ni } from "../useSettingsSubscription-DLEk4k4j.js";
|
|
4
4
|
export {
|
|
@@ -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-CRT5VEoR.cjs"),i=require("../Modal-CtJFoR96.cjs"),u=require("../OverlayScrollArea-D4e9D9Nd.cjs"),r=require("../GuidedTour-BoPGRyX5.cjs"),o=require("../createDialogShellFocus-BiBAZOCI.cjs"),a=require("../dialogFocusRestore-CL-ExfAA.cjs"),t=require("../Popover-BsxIKBbl.cjs"),n=require("../overlayStack-eD8AmuwY.cjs"),c=require("../useFloatingDropdown-D5UayoN6.cjs"),O=require("../ownerWindow-BCmJFMbR.cjs"),l=require("../prefersReducedMotion-BQp-Q4UR.cjs"),s=require("../DesktopContextMenuContext-DMGNVjaR.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.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;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.SaveDiscardDialog=e.SaveDiscardDialog;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.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;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.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;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=r.Disclosure;exports.GuidedTour=r.GuidedTour;exports.Panel=r.Panel;exports.PanelSeparator=r.PanelSeparator;exports.positionTourCard=r.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=n.getOverlayDiagnostics;exports.hasOpenLayerIn=n.hasOpenLayerIn;exports.isAnyOverlayOpen=n.isAnyOverlayOpen;exports.isModalOccluded=n.isModalOccluded;exports.isOverlayOverlapping=n.isOverlayOverlapping;exports.notifyOverlayChanged=n.notifyOverlayChanged;exports.notifyOverlayMotionEnd=n.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=n.notifyOverlayMotionStart;exports.onOverlayMotion=n.onOverlayMotion;exports.overlayDepth=n.overlayDepth;exports.readOverlayMutationRevision=n.readOverlayMutationRevision;exports.registerOverlayClose=n.registerOverlayClose;exports.registerOverlayCondition=n.registerOverlayCondition;exports.registerOverlayOpen=n.registerOverlayOpen;exports.useOverlayRegistration=n.useOverlayRegistration;exports.useFloatingDropdown=c.useFloatingDropdown;exports.ownerWindow=O.ownerWindow;exports.modalBackgroundExemption=l.modalBackgroundExemption;exports.neutralizeBackground=l.neutralizeBackground;exports.DesktopContextMenuContext=s.DesktopContextMenuContext;exports.useDesktopContextMenu=s.useDesktopContextMenu;
|
|
@@ -1,15 +1,15 @@
|
|
|
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 u,
|
|
2
|
-
import { A as $, M as ee, m as ae } from "../Modal-
|
|
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 u, I as p, M as O, f as c, g as M, h as T, i as m, j as d, k as D, N as E, O as _, P as A, S as P, l as v, m as S, n as g, o as I, p as F, q as y, r as C, s as x, T as R, t as L, u as f, v as h, w as N, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as j, U as q, V as z, W as J, X as Q } from "../CommandPalette-DE59Rq-n.js";
|
|
2
|
+
import { A as $, M as ee, m as ae } from "../Modal-j54-C2Md.js";
|
|
3
3
|
import { O as se } from "../OverlayScrollArea-221dfKyz.js";
|
|
4
|
-
import { D as re, G as ne, P as ie, a as le, p as ue } from "../GuidedTour-
|
|
5
|
-
import { a as Oe, c as ce, D as Me, d as Te, H as me, T as de, e as De, f as Ee, g as _e, W as Ae, h as Pe, i as ve, j as Se, k as ge, l as
|
|
6
|
-
import { O as Le, r as fe, s as he } from "../dialogFocusRestore
|
|
7
|
-
import { A as Ue, a as be, b as Ge, L as We, M as we, O as He, c as ke, P as Be, d as Ve, e as Ke, f as Xe, g as Ye, h as je, i as qe, j as ze, l as Je, r as Qe, k as Ze, m as $e } from "../Popover-
|
|
8
|
-
import { g as aa, h as oa, i as sa, a as ta, b as ra, n as na, c as ia, d as la, o as ua, e as pa, r as Oa, f as ca, j as Ma, k as Ta, u as ma } from "../overlayStack-
|
|
9
|
-
import { u as Da } from "../useFloatingDropdown-
|
|
4
|
+
import { D as re, G as ne, P as ie, a as le, p as ue } from "../GuidedTour-CIlHyRcR.js";
|
|
5
|
+
import { a as Oe, c as ce, D as Me, d as Te, H as me, T as de, e as De, f as Ee, g as _e, W as Ae, h as Pe, i as ve, j as Se, k as ge, l as Ie, r as Fe, m as ye, t as Ce, n as xe } from "../createDialogShellFocus-BFo8awdj.js";
|
|
6
|
+
import { O as Le, r as fe, s as he } from "../dialogFocusRestore--dH59ER2.js";
|
|
7
|
+
import { A as Ue, a as be, b as Ge, L as We, M as we, O as He, c as ke, P as Be, d as Ve, e as Ke, f as Xe, g as Ye, h as je, i as qe, j as ze, l as Je, r as Qe, k as Ze, m as $e } from "../Popover-Cg28aPUZ.js";
|
|
8
|
+
import { g as aa, h as oa, i as sa, a as ta, b as ra, n as na, c as ia, d as la, o as ua, e as pa, r as Oa, f as ca, j as Ma, k as Ta, u as ma } from "../overlayStack-Bj6Lg1Rm.js";
|
|
9
|
+
import { u as Da } from "../useFloatingDropdown-2Tz_es0W.js";
|
|
10
10
|
import { o as _a } from "../ownerWindow-9mx_LD47.js";
|
|
11
11
|
import { m as Pa, n as va } from "../prefersReducedMotion-B2mMn01s.js";
|
|
12
|
-
import { D as ga, u as
|
|
12
|
+
import { D as ga, u as Ia } from "../DesktopContextMenuContext-DJ3PnqAv.js";
|
|
13
13
|
export {
|
|
14
14
|
$ as ActionPlaceRow,
|
|
15
15
|
Ue as AnchorAlignment,
|
|
@@ -31,20 +31,21 @@ export {
|
|
|
31
31
|
u as FloatingWindow,
|
|
32
32
|
ne as GuidedTour,
|
|
33
33
|
me as HoverTooltip,
|
|
34
|
+
p as InputDialog,
|
|
34
35
|
We as LISTBOX_OPTION_SELECTOR,
|
|
35
36
|
we as MENU_ITEM_SELECTOR,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
O as MenuDisclosure,
|
|
38
|
+
c as MenuEmpty,
|
|
39
|
+
M as MenuItem,
|
|
40
|
+
T as MenuList,
|
|
41
|
+
m as MenuSearch,
|
|
42
|
+
d as MenuSection,
|
|
43
|
+
D as MenuSeparator,
|
|
43
44
|
ee as Modal,
|
|
44
|
-
|
|
45
|
+
E as NameStep,
|
|
45
46
|
He as OVERLAY_DEFAULT_GAP,
|
|
46
47
|
ke as OVERLAY_DEFAULT_MARGIN,
|
|
47
|
-
|
|
48
|
+
_ as OptionList,
|
|
48
49
|
Le as OverlayPortal,
|
|
49
50
|
se as OverlayScrollArea,
|
|
50
51
|
Be as POPOVER_DEFAULT_GAP,
|
|
@@ -52,40 +53,39 @@ export {
|
|
|
52
53
|
ie as Panel,
|
|
53
54
|
le as PanelSeparator,
|
|
54
55
|
Ke as Popover,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
A as PopoverPanel,
|
|
57
|
+
P as SUBMENU_ANCHOR_OVERLAP,
|
|
58
|
+
v as SUBMENU_ESTIMATED_ROW_HEIGHT,
|
|
59
|
+
S as SUBMENU_ESTIMATED_WIDTH,
|
|
60
|
+
g as SUBMENU_MIN_ESTIMATED_HEIGHT,
|
|
61
|
+
I as SUBMENU_VIEWPORT_MARGIN,
|
|
61
62
|
F as SaveDiscardDialog,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
y as SelectedOptions,
|
|
64
|
+
C as StatementPreview,
|
|
65
|
+
x as StepFooter,
|
|
65
66
|
de as TOOLTIP_CURSOR_OFFSET_X,
|
|
66
67
|
De as TOOLTIP_CURSOR_OFFSET_Y,
|
|
67
68
|
Ee as TOOLTIP_MAX_FOOTPRINT_X,
|
|
68
69
|
_e as TOOLTIP_VIEWPORT_MARGIN,
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
R as Tooltip,
|
|
71
|
+
L as TooltipHost,
|
|
71
72
|
Ae as WARM_DELAY_MS,
|
|
72
73
|
Xe as calcFixedWidthDropdownLeft,
|
|
73
|
-
|
|
74
|
+
f as closeContextMenu,
|
|
74
75
|
Pe as collectFocusableElements,
|
|
75
76
|
Ye as computeAnchoredPosition,
|
|
76
77
|
ve as computeAnchoredTooltipPosition,
|
|
77
78
|
je as computeDropdownPosition,
|
|
78
79
|
qe as computePopoverPosition,
|
|
79
|
-
|
|
80
|
+
h as computeSubmenuPlacement,
|
|
80
81
|
Se as computeTooltipPointerPosition,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
N as confirmationLevelOf,
|
|
83
|
+
U as createDangerousActionDialog,
|
|
84
|
+
b as createDesktopContextMenuApi,
|
|
85
|
+
G as createDialogFocusScope,
|
|
85
86
|
ge as createDialogShellFocus,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Fe as createTooltipCoordinator,
|
|
87
|
+
W as createOverlayCloseGuard,
|
|
88
|
+
Ie as createTooltipCoordinator,
|
|
89
89
|
w as describeConsequence,
|
|
90
90
|
H as estimateSubmenuHeight,
|
|
91
91
|
k as firstFocusableMenuIndex,
|
|
@@ -119,7 +119,7 @@ export {
|
|
|
119
119
|
Ta as registerOverlayOpen,
|
|
120
120
|
Qe as requestOwnerAnimationFrame,
|
|
121
121
|
z as resolveDangerousActionDialogKeyIntent,
|
|
122
|
-
|
|
122
|
+
Fe as resolveDialogShellKeyIntent,
|
|
123
123
|
J as resolveMenuFocusForKey,
|
|
124
124
|
ye as resolveModalFocusTrapTarget,
|
|
125
125
|
Ze as resolvePopoverFocusForKey,
|
|
@@ -129,7 +129,7 @@ export {
|
|
|
129
129
|
Q as tooltip,
|
|
130
130
|
Ce as tooltipCoordinator,
|
|
131
131
|
xe as trapTabFocusWithin,
|
|
132
|
-
|
|
132
|
+
Ia as useDesktopContextMenu,
|
|
133
133
|
Da as useFloatingDropdown,
|
|
134
134
|
ma as useOverlayRegistration
|
|
135
135
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../overlayStack-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../overlayStack-eD8AmuwY.cjs");exports.getOverlayDiagnostics=e.getOverlayDiagnostics;exports.hasOpenLayerIn=e.hasOpenLayerIn;exports.isAnyOverlayOpen=e.isAnyOverlayOpen;exports.isModalOccluded=e.isModalOccluded;exports.isOverlayOverlapping=e.isOverlayOverlapping;exports.notifyOverlayChanged=e.notifyOverlayChanged;exports.notifyOverlayMotionEnd=e.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=e.notifyOverlayMotionStart;exports.onOverlayMotion=e.onOverlayMotion;exports.overlayDepth=e.overlayDepth;exports.readOverlayMutationRevision=e.readOverlayMutationRevision;exports.registerOverlayClose=e.registerOverlayClose;exports.registerOverlayCondition=e.registerOverlayCondition;exports.registerOverlayOpen=e.registerOverlayOpen;exports.useOverlayRegistration=e.useOverlayRegistration;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as s, h as r, i, a as n, b as o, n as t, c as y, d as l, o as O, e as v, r as g, f as d, j as p, k as f, u as M } from "../overlayStack-
|
|
1
|
+
import { g as s, h as r, i, a as n, b as o, n as t, c as y, d as l, o as O, e as v, r as g, f as d, j as p, k as f, u as M } from "../overlayStack-Bj6Lg1Rm.js";
|
|
2
2
|
export {
|
|
3
3
|
s as getOverlayDiagnostics,
|
|
4
4
|
r as hasOpenLayerIn,
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { createMemo as L, createComputed as P, onCleanup as x, createSignal as R, createRoot as j } from "solid-js";
|
|
2
|
+
import { isServer as k } from "solid-js/web";
|
|
3
|
+
const $ = /* @__PURE__ */ new Set([
|
|
4
|
+
"modal",
|
|
5
|
+
"menu",
|
|
6
|
+
"popover",
|
|
7
|
+
"tooltip"
|
|
8
|
+
]), F = /* @__PURE__ */ new Set([
|
|
9
|
+
"tooltip"
|
|
10
|
+
]), f = /* @__PURE__ */ new Map();
|
|
11
|
+
function g(t) {
|
|
12
|
+
var o, e, n;
|
|
13
|
+
return ((e = (o = t.element) == null ? void 0 : o.call(t)) == null ? void 0 : e.ownerDocument) ?? ((n = t.document) == null ? void 0 : n.call(t));
|
|
14
|
+
}
|
|
15
|
+
const [q, G] = R(0);
|
|
16
|
+
function _() {
|
|
17
|
+
G((t) => t + 1);
|
|
18
|
+
}
|
|
19
|
+
function D() {
|
|
20
|
+
return q();
|
|
21
|
+
}
|
|
22
|
+
const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
|
|
23
|
+
let O = 0;
|
|
24
|
+
function H() {
|
|
25
|
+
O++;
|
|
26
|
+
for (const t of Array.from(S))
|
|
27
|
+
t();
|
|
28
|
+
}
|
|
29
|
+
function J() {
|
|
30
|
+
O = Math.max(0, O - 1);
|
|
31
|
+
for (const t of Array.from(C))
|
|
32
|
+
t();
|
|
33
|
+
}
|
|
34
|
+
function X(t, o) {
|
|
35
|
+
return S.add(t), C.add(o), O > 0 && t(), () => {
|
|
36
|
+
S.delete(t), C.delete(o);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function Y(t) {
|
|
40
|
+
var s;
|
|
41
|
+
D();
|
|
42
|
+
const o = t == null ? void 0 : t.getBoundingClientRect(), e = [];
|
|
43
|
+
let n = !1, r = !1, c = !1, i = !1;
|
|
44
|
+
for (const y of d()) {
|
|
45
|
+
const h = f.get(y);
|
|
46
|
+
if (!h) continue;
|
|
47
|
+
const l = h.type;
|
|
48
|
+
l === "toast" && (c = !0), l === "tooltip" && (i = !0);
|
|
49
|
+
const v = (s = h.element) == null ? void 0 : s.call(h), A = g(h);
|
|
50
|
+
if (t && A && A !== t.ownerDocument) continue;
|
|
51
|
+
const b = !!(v != null && v.isConnected);
|
|
52
|
+
let I, M = !1, p;
|
|
53
|
+
if (l === "modal")
|
|
54
|
+
n = !0, M = !0, p = "modal overlay active";
|
|
55
|
+
else if (v && b && o) {
|
|
56
|
+
const a = v.getBoundingClientRect();
|
|
57
|
+
I = {
|
|
58
|
+
x: Math.round(a.x),
|
|
59
|
+
y: Math.round(a.y),
|
|
60
|
+
width: Math.round(a.width),
|
|
61
|
+
height: Math.round(a.height)
|
|
62
|
+
}, a.width > 0 && a.height > 0 && o.left < a.right && o.right > a.left && o.top < a.bottom && o.bottom > a.top && (M = !0, l === "tooltip" || l === "toast" ? p = `nonmodal ${l} intersecting viewport; browser remains live` : (r = !0, p = `${l} overlapping view`));
|
|
63
|
+
}
|
|
64
|
+
e.push({
|
|
65
|
+
id: y,
|
|
66
|
+
type: l,
|
|
67
|
+
modal: l === "modal",
|
|
68
|
+
connected: b,
|
|
69
|
+
bounds: I,
|
|
70
|
+
overlapsBrowser: M,
|
|
71
|
+
reason: p
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
const u = t ? m().some((y) => y(t)) : m().some((y) => y());
|
|
75
|
+
return u && (n = !0), {
|
|
76
|
+
modalOccluded: n,
|
|
77
|
+
menuOccluded: r,
|
|
78
|
+
toastActive: c,
|
|
79
|
+
tooltipActive: i,
|
|
80
|
+
overlays: e,
|
|
81
|
+
customConditionActive: u
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function Z(t) {
|
|
85
|
+
if (D(), t && m().some((o) => o(t)))
|
|
86
|
+
return !0;
|
|
87
|
+
for (const o of d()) {
|
|
88
|
+
const e = f.get(o);
|
|
89
|
+
if (!e || e.type !== "modal") continue;
|
|
90
|
+
const n = g(e);
|
|
91
|
+
if (!(t && n && n !== t.ownerDocument))
|
|
92
|
+
return !0;
|
|
93
|
+
}
|
|
94
|
+
return !1;
|
|
95
|
+
}
|
|
96
|
+
function tt(t) {
|
|
97
|
+
for (const o of d()) {
|
|
98
|
+
const e = f.get(o);
|
|
99
|
+
if (!e || !$.has(e.type)) continue;
|
|
100
|
+
const n = g(e);
|
|
101
|
+
if (n === void 0 || n === t) return !0;
|
|
102
|
+
}
|
|
103
|
+
return !1;
|
|
104
|
+
}
|
|
105
|
+
function K(t) {
|
|
106
|
+
var e, n;
|
|
107
|
+
let o = t;
|
|
108
|
+
for (let r = (e = f.get(o)) == null ? void 0 : e.parent; r !== void 0; r = (n = f.get(o)) == null ? void 0 : n.parent)
|
|
109
|
+
o = r.id;
|
|
110
|
+
return o;
|
|
111
|
+
}
|
|
112
|
+
function B(t, o = /* @__PURE__ */ new Set()) {
|
|
113
|
+
const e = f.get(t);
|
|
114
|
+
if (!e || !d().has(t)) return !1;
|
|
115
|
+
const n = g(e), r = [...d()];
|
|
116
|
+
for (let c = r.length - 1; c >= 0; c--) {
|
|
117
|
+
const i = r[c], u = f.get(i);
|
|
118
|
+
if (!u || !$.has(u.type) || o.has(u.type))
|
|
119
|
+
continue;
|
|
120
|
+
const s = g(u);
|
|
121
|
+
if (!(n && s && s !== n))
|
|
122
|
+
return K(i) === t;
|
|
123
|
+
}
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
function ot(t) {
|
|
127
|
+
var e;
|
|
128
|
+
D();
|
|
129
|
+
const o = t.getBoundingClientRect();
|
|
130
|
+
for (const n of d()) {
|
|
131
|
+
const r = f.get(n);
|
|
132
|
+
if (!r) continue;
|
|
133
|
+
const c = r.type;
|
|
134
|
+
if (c === "tooltip" || c === "toast") continue;
|
|
135
|
+
const i = (e = r.element) == null ? void 0 : e.call(r), u = g(r);
|
|
136
|
+
if (u && u !== t.ownerDocument || i != null && i.contains(t)) continue;
|
|
137
|
+
if (c === "modal") return !0;
|
|
138
|
+
if (!(i != null && i.isConnected)) continue;
|
|
139
|
+
const s = i.getBoundingClientRect();
|
|
140
|
+
if (s.width > 0 && s.height > 0 && o.left < s.right && o.right > s.left && o.top < s.bottom && o.bottom > s.top)
|
|
141
|
+
return !0;
|
|
142
|
+
}
|
|
143
|
+
return m().some((n) => n(t));
|
|
144
|
+
}
|
|
145
|
+
let Q = 0;
|
|
146
|
+
const [d, z] = R(/* @__PURE__ */ new Set()), [m, T] = R([]), w = /* @__PURE__ */ new Set();
|
|
147
|
+
function U(t, o) {
|
|
148
|
+
return f.set(t, o), z((e) => {
|
|
149
|
+
if (e.has(t)) return e;
|
|
150
|
+
const n = new Set(e);
|
|
151
|
+
return n.add(t), n;
|
|
152
|
+
}), o.element && o.type !== "modal" && (w.has(t) || (w.add(t), H())), _(), t;
|
|
153
|
+
}
|
|
154
|
+
function E(t) {
|
|
155
|
+
f.delete(t), z((o) => {
|
|
156
|
+
if (!o.has(t)) return o;
|
|
157
|
+
const e = new Set(o);
|
|
158
|
+
return e.delete(t), e;
|
|
159
|
+
}), w.has(t) && (w.delete(t), J()), _();
|
|
160
|
+
}
|
|
161
|
+
function et(t) {
|
|
162
|
+
return T((o) => [...o, t]), () => {
|
|
163
|
+
T((o) => o.filter((e) => e !== t));
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function N(t) {
|
|
167
|
+
if (k) return t;
|
|
168
|
+
let o;
|
|
169
|
+
return () => (o ?? (o = j(() => L(t))))();
|
|
170
|
+
}
|
|
171
|
+
const nt = N(
|
|
172
|
+
() => d().size
|
|
173
|
+
), rt = N(() => {
|
|
174
|
+
if (d().size > 0) return !0;
|
|
175
|
+
for (const t of m())
|
|
176
|
+
if (t()) return !0;
|
|
177
|
+
return !1;
|
|
178
|
+
});
|
|
179
|
+
function it(t, o, e) {
|
|
180
|
+
const n = `${o}_${++Q}_${Math.random().toString(36).slice(2, 7)}`, r = L(t);
|
|
181
|
+
return P(() => {
|
|
182
|
+
r() && (U(n, e), x(() => {
|
|
183
|
+
E(n);
|
|
184
|
+
}));
|
|
185
|
+
}), x(() => {
|
|
186
|
+
E(n);
|
|
187
|
+
}), {
|
|
188
|
+
id: n,
|
|
189
|
+
isTopmost: () => B(n),
|
|
190
|
+
isTopmostForPointer: () => B(n, F)
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export {
|
|
194
|
+
Z as a,
|
|
195
|
+
ot as b,
|
|
196
|
+
J as c,
|
|
197
|
+
H as d,
|
|
198
|
+
nt as e,
|
|
199
|
+
E as f,
|
|
200
|
+
Y as g,
|
|
201
|
+
tt as h,
|
|
202
|
+
rt as i,
|
|
203
|
+
et as j,
|
|
204
|
+
U as k,
|
|
205
|
+
_ as n,
|
|
206
|
+
X as o,
|
|
207
|
+
D as r,
|
|
208
|
+
it as u
|
|
209
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("solid-js"),q=require("solid-js/web"),T=new Set(["modal","menu","popover","tooltip"]),F=new Set(["tooltip"]),l=new Map;function O(t){var e,o,n;return((o=(e=t.element)==null?void 0:e.call(t))==null?void 0:o.ownerDocument)??((n=t.document)==null?void 0:n.call(t))}const[J,j]=d.createSignal(0);function I(){j(t=>t+1)}function C(){return J()}const R=new Set,D=new Set;let M=0;function $(){M++;for(const t of Array.from(R))t()}function _(){M=Math.max(0,M-1);for(const t of Array.from(D))t()}function k(t,e){return R.add(t),D.add(e),M>0&&t(),()=>{R.delete(t),D.delete(e)}}function G(t){var s;C();const e=t==null?void 0:t.getBoundingClientRect(),o=[];let n=!1,r=!1,c=!1,i=!1;for(const v of y()){const g=l.get(v);if(!g)continue;const f=g.type;f==="toast"&&(c=!0),f==="tooltip"&&(i=!0);const h=(s=g.element)==null?void 0:s.call(g),b=O(g);if(t&&b&&b!==t.ownerDocument)continue;const x=!!(h!=null&&h.isConnected);let B,S=!1,m;if(f==="modal")n=!0,S=!0,m="modal overlay active";else if(h&&x&&e){const u=h.getBoundingClientRect();B={x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height)},u.width>0&&u.height>0&&e.left<u.right&&e.right>u.left&&e.top<u.bottom&&e.bottom>u.top&&(S=!0,f==="tooltip"||f==="toast"?m=`nonmodal ${f} intersecting viewport; browser remains live`:(r=!0,m=`${f} overlapping view`))}o.push({id:v,type:f,modal:f==="modal",connected:x,bounds:B,overlapsBrowser:S,reason:m})}const a=t?p().some(v=>v(t)):p().some(v=>v());return a&&(n=!0),{modalOccluded:n,menuOccluded:r,toastActive:c,tooltipActive:i,overlays:o,customConditionActive:a}}function H(t){if(C(),t&&p().some(e=>e(t)))return!0;for(const e of y()){const o=l.get(e);if(!o||o.type!=="modal")continue;const n=O(o);if(!(t&&n&&n!==t.ownerDocument))return!0}return!1}function K(t){for(const e of y()){const o=l.get(e);if(!o||!T.has(o.type))continue;const n=O(o);if(n===void 0||n===t)return!0}return!1}function Q(t){var o,n;let e=t;for(let r=(o=l.get(e))==null?void 0:o.parent;r!==void 0;r=(n=l.get(e))==null?void 0:n.parent)e=r.id;return e}function E(t,e=new Set){const o=l.get(t);if(!o||!y().has(t))return!1;const n=O(o),r=[...y()];for(let c=r.length-1;c>=0;c--){const i=r[c],a=l.get(i);if(!a||!T.has(a.type)||e.has(a.type))continue;const s=O(a);if(!(n&&s&&s!==n))return Q(i)===t}return!1}function U(t){var o;C();const e=t.getBoundingClientRect();for(const n of y()){const r=l.get(n);if(!r)continue;const c=r.type;if(c==="tooltip"||c==="toast")continue;const i=(o=r.element)==null?void 0:o.call(r),a=O(r);if(a&&a!==t.ownerDocument||i!=null&&i.contains(t))continue;if(c==="modal")return!0;if(!(i!=null&&i.isConnected))continue;const s=i.getBoundingClientRect();if(s.width>0&&s.height>0&&e.left<s.right&&e.right>s.left&&e.top<s.bottom&&e.bottom>s.top)return!0}return p().some(n=>n(t))}let V=0;const[y,z]=d.createSignal(new Set),[p,L]=d.createSignal([]),w=new Set;function N(t,e){return l.set(t,e),z(o=>{if(o.has(t))return o;const n=new Set(o);return n.add(t),n}),e.element&&e.type!=="modal"&&(w.has(t)||(w.add(t),$())),I(),t}function A(t){l.delete(t),z(e=>{if(!e.has(t))return e;const o=new Set(e);return o.delete(t),o}),w.has(t)&&(w.delete(t),_()),I()}function W(t){return L(e=>[...e,t]),()=>{L(e=>e.filter(o=>o!==t))}}function P(t){if(q.isServer)return t;let e;return()=>(e??(e=d.createRoot(()=>d.createMemo(t))))()}const X=P(()=>y().size),Y=P(()=>{if(y().size>0)return!0;for(const t of p())if(t())return!0;return!1});function Z(t,e,o){const n=`${e}_${++V}_${Math.random().toString(36).slice(2,7)}`,r=d.createMemo(t);return d.createComputed(()=>{r()&&(N(n,o),d.onCleanup(()=>{A(n)}))}),d.onCleanup(()=>{A(n)}),{id:n,isTopmost:()=>E(n),isTopmostForPointer:()=>E(n,F)}}exports.getOverlayDiagnostics=G;exports.hasOpenLayerIn=K;exports.isAnyOverlayOpen=Y;exports.isModalOccluded=H;exports.isOverlayOverlapping=U;exports.notifyOverlayChanged=I;exports.notifyOverlayMotionEnd=_;exports.notifyOverlayMotionStart=$;exports.onOverlayMotion=k;exports.overlayDepth=X;exports.readOverlayMutationRevision=C;exports.registerOverlayClose=A;exports.registerOverlayCondition=W;exports.registerOverlayOpen=N;exports.useOverlayRegistration=Z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEffect as g, onCleanup as u } from "solid-js";
|
|
2
2
|
import { o as l } from "./ownerWindow-9mx_LD47.js";
|
|
3
|
-
import { u as m, n as f } from "./overlayStack-
|
|
3
|
+
import { u as m, n as f } from "./overlayStack-Bj6Lg1Rm.js";
|
|
4
4
|
import { i as v } from "./keys-B2nlkpqc.js";
|
|
5
5
|
function L(e) {
|
|
6
6
|
const t = () => l(e.getTrigger()), a = m(e.open, "dropdown-list", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("solid-js"),l=require("./ownerWindow-BCmJFMbR.cjs"),a=require("./overlayStack-
|
|
1
|
+
"use strict";const u=require("solid-js"),l=require("./ownerWindow-BCmJFMbR.cjs"),a=require("./overlayStack-eD8AmuwY.cjs"),w=require("./keys-GMxY2wcl.cjs");function v(e){const t=()=>l.ownerWindow(e.getTrigger()),g=a.useOverlayRegistration(e.open,"dropdown-list",{type:"popover",element:e.getDropdown,document:()=>{var n;return(n=t())==null?void 0:n.document}}),i=n=>{var d;const o=n.target,r=e.getTrigger(),c=e.getDropdown();r&&!r.contains(o)&&c&&!c.contains(o)&&(e.onClose(),e.restoreFocusOnClickOutside&&((d=e.getTrigger())==null||d.focus()))},s=n=>{var o;!w.isKey(n,"Escape")||!g.isTopmost()||(n.stopPropagation(),e.onClose(),(o=e.getTrigger())==null||o.focus())};u.createEffect(()=>{if(!e.open())return;const n=()=>e.onReposition(),o=t();if(o===null)return;const r=o.document;o.addEventListener("scroll",n,!0),o.addEventListener("resize",n),r.addEventListener("mousedown",i),r.addEventListener("keydown",s),a.notifyOverlayChanged(),u.onCleanup(()=>{o.removeEventListener("scroll",n,!0),o.removeEventListener("resize",n),r.removeEventListener("mousedown",i),r.removeEventListener("keydown",s)})})}exports.useFloatingDropdown=v;
|
|
@@ -4,6 +4,7 @@ import { tooltipCoordinator, } from '../overlay/tooltipCoordinator';
|
|
|
4
4
|
import styles from './Button.module.css.js';
|
|
5
5
|
const VARIANT_CLASS = {
|
|
6
6
|
primary: styles.variantPrimary,
|
|
7
|
+
primarySolid: styles.variantPrimarySolid,
|
|
7
8
|
tonal: styles.variantTonal,
|
|
8
9
|
secondary: styles.variantSecondary,
|
|
9
10
|
danger: styles.variantDanger,
|
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
"variantSecondary": "vk_variantSecondary_MA7xu",
|
|
12
12
|
"variantDanger": "vk_variantDanger_L30Uq",
|
|
13
13
|
"variantDangerSolid": "vk_variantDangerSolid_htqc7",
|
|
14
|
+
"variantPrimarySolid": "vk_variantPrimarySolid_14Uwi",
|
|
14
15
|
"variantLink": "vk_variantLink_3AapU",
|
|
15
16
|
"variantGhost": "vk_variantGhost_x0-j-",
|
|
16
17
|
"variantOutline": "vk_variantOutline_xGu8I",
|
|
@@ -2,14 +2,17 @@ import { useFormFieldAria } from './formFieldContext';
|
|
|
2
2
|
import styles from './Slider.module.css.js';
|
|
3
3
|
export const Slider = (props) => {
|
|
4
4
|
const fieldAria = useFormFieldAria();
|
|
5
|
-
const
|
|
5
|
+
const fillRatio = () => {
|
|
6
6
|
const span = props.max - props.min;
|
|
7
7
|
if (span <= 0)
|
|
8
8
|
return 0;
|
|
9
9
|
const clamped = Math.min(Math.max(props.value, props.min), props.max);
|
|
10
|
-
return (
|
|
10
|
+
return (clamped - props.min) / span;
|
|
11
11
|
};
|
|
12
|
-
return (<div class={`${styles.root} ${props.size === 'sm' ? styles.sm : ''} ${props.class ?? ''} ${props.disabled ? styles.disabled : ''}`} style={{
|
|
12
|
+
return (<div class={`${styles.root} ${props.size === 'sm' ? styles.sm : ''} ${props.class ?? ''} ${props.disabled ? styles.disabled : ''}`} style={{
|
|
13
|
+
'--slider-fill': `${fillRatio() * 100}%`,
|
|
14
|
+
'--slider-ratio': `${fillRatio()}`,
|
|
15
|
+
}}>
|
|
13
16
|
<input type="range" id={props.id} class={styles.input} min={props.min} max={props.max} step={props.step ?? 1} value={props.value} disabled={props.disabled} aria-describedby={fieldAria?.describedBy()} aria-label={props.ariaLabel} aria-valuetext={props.ariaValueText} onInput={(event) => props.onInput?.(Number(event.currentTarget.value))} onChange={(event) => props.onChange?.(Number(event.currentTarget.value))}/>
|
|
14
17
|
<div class={styles.track} aria-hidden="true">
|
|
15
18
|
<div class={styles.fill}/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createEffect, createSignal, createUniqueId, onCleanup, } from 'solid-js';
|
|
1
|
+
import { Show, createEffect, createSignal, createUniqueId, on, onCleanup, } from 'solid-js';
|
|
2
2
|
import { OverlayPortal } from './OverlayPortal';
|
|
3
3
|
import { Button } from '../forms/Button';
|
|
4
4
|
import { Input } from '../forms/Input';
|
|
@@ -8,7 +8,7 @@ import { trapTabFocusWithin } from './modalFocusContainment';
|
|
|
8
8
|
import { resolveDialogShellKeyIntent } from './dialogShellKeyIntent';
|
|
9
9
|
import { createOverlayCloseGuard } from './overlayCloseGuard';
|
|
10
10
|
import { OverlayScrollArea } from './OverlayScrollArea';
|
|
11
|
-
import {
|
|
11
|
+
import { getMainWindow } from '../host/window';
|
|
12
12
|
import { requestOwnerAnimationFrame } from './ownerAnimationFrame';
|
|
13
13
|
import { t } from '../i18n/i18n';
|
|
14
14
|
import styles from './ConfirmDialog.module.css.js';
|
|
@@ -189,8 +189,13 @@ export function SaveDiscardDialog(props) {
|
|
|
189
189
|
</OverlayPortal>
|
|
190
190
|
</Show>);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
export function InputDialog(props) {
|
|
193
193
|
const titleId = createUniqueId();
|
|
194
|
+
const [value, setValue] = createSignal(props.defaultValue ?? '');
|
|
195
|
+
createEffect(on(() => props.open(), (open) => {
|
|
196
|
+
if (open)
|
|
197
|
+
setValue(props.defaultValue ?? '');
|
|
198
|
+
}, { defer: true }));
|
|
194
199
|
const focusScope = createDialogFocusScope({
|
|
195
200
|
open: () => props.open(),
|
|
196
201
|
ownerDocument: () => hostDocOf(props.host),
|
|
@@ -216,7 +221,7 @@ function PromptDialog(props) {
|
|
|
216
221
|
}
|
|
217
222
|
else if (intent === 'confirm') {
|
|
218
223
|
event.stopPropagation();
|
|
219
|
-
props.onConfirm();
|
|
224
|
+
props.onConfirm(value());
|
|
220
225
|
return;
|
|
221
226
|
}
|
|
222
227
|
if (intent === 'trap' && dialogElement)
|
|
@@ -249,16 +254,16 @@ function PromptDialog(props) {
|
|
|
249
254
|
<Show when={props.message !== undefined}>
|
|
250
255
|
<p class={styles.message}>{props.message}</p>
|
|
251
256
|
</Show>
|
|
252
|
-
<Show when={props.multiline} fallback={<Input ref={captureAndFocus} type={props.secret ? 'password' : 'text'} class={styles.promptField} value={
|
|
253
|
-
<Textarea ref={captureAndFocus} rows={8} mono class={styles.promptField} value={
|
|
257
|
+
<Show when={props.multiline} fallback={<Input ref={captureAndFocus} type={props.secret ? 'password' : 'text'} class={styles.promptField} value={value()} placeholder={props.placeholder ?? ''} aria-label={props.title} onInput={(e) => setValue(e.currentTarget.value)}/>}>
|
|
258
|
+
<Textarea ref={captureAndFocus} rows={8} mono class={styles.promptField} value={value()} placeholder={props.placeholder ?? ''} aria-label={props.title} onInput={(e) => setValue(e.currentTarget.value)}/>
|
|
254
259
|
</Show>
|
|
255
260
|
</div>
|
|
256
261
|
<div class={styles.footer}>
|
|
257
262
|
<Button size="lg" variant="secondary" onClick={() => props.onCancel()}>
|
|
258
|
-
{props.cancelLabel}
|
|
263
|
+
{props.cancelLabel ?? t('Cancel')}
|
|
259
264
|
</Button>
|
|
260
|
-
<Button size="lg" variant="primary" onClick={() => props.onConfirm()}>
|
|
261
|
-
{props.confirmLabel}
|
|
265
|
+
<Button size="lg" variant="primary" onClick={() => props.onConfirm(value())}>
|
|
266
|
+
{props.confirmLabel ?? t('Save')}
|
|
262
267
|
</Button>
|
|
263
268
|
</div>
|
|
264
269
|
</div>
|
|
@@ -266,20 +271,3 @@ function PromptDialog(props) {
|
|
|
266
271
|
</OverlayPortal>
|
|
267
272
|
</Show>);
|
|
268
273
|
}
|
|
269
|
-
export function createPromptDialog() {
|
|
270
|
-
const [pending, setPending] = createSignal(null);
|
|
271
|
-
const [value, setValue] = createSignal('');
|
|
272
|
-
const settle = (result) => {
|
|
273
|
-
const current = pending();
|
|
274
|
-
if (current) {
|
|
275
|
-
current.resolve(result);
|
|
276
|
-
setPending(null);
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
const prompt = (options) => new Promise((resolve) => {
|
|
280
|
-
setValue(options.defaultValue ?? '');
|
|
281
|
-
setPending({ ...options, resolve, targetWin: getActiveWindow().window });
|
|
282
|
-
});
|
|
283
|
-
const Dialog = () => (<PromptDialog open={() => pending() !== null} title={pending()?.title ?? ''} message={pending()?.message} placeholder={pending()?.placeholder ?? ''} value={value} confirmLabel={pending()?.confirmLabel ?? t('Save')} cancelLabel={pending()?.cancelLabel ?? t('Cancel')} multiline={pending()?.multiline === true} secret={pending()?.secret === true} onInput={setValue} onConfirm={() => settle(value())} onCancel={() => settle(null)} host={() => pending()?.targetWin ?? getMainWindow().window}/>);
|
|
284
|
-
return [Dialog, prompt];
|
|
285
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { createSignal, createMemo, createComputed, onCleanup, } from 'solid-js';
|
|
1
|
+
import { createSignal, createMemo, createComputed, createRoot, onCleanup, } from 'solid-js';
|
|
2
|
+
import { isServer } from 'solid-js/web';
|
|
2
3
|
const DISMISSAL_ORDER = new Set([
|
|
3
4
|
'modal',
|
|
4
5
|
'menu',
|
|
@@ -250,8 +251,14 @@ export function registerOverlayCondition(condition) {
|
|
|
250
251
|
setCustomConditions((prev) => prev.filter((c) => c !== condition));
|
|
251
252
|
};
|
|
252
253
|
}
|
|
253
|
-
|
|
254
|
-
|
|
254
|
+
function lazyModuleMemo(fn) {
|
|
255
|
+
if (isServer)
|
|
256
|
+
return fn;
|
|
257
|
+
let memo;
|
|
258
|
+
return () => (memo ??= createRoot(() => createMemo(fn)))();
|
|
259
|
+
}
|
|
260
|
+
export const overlayDepth = lazyModuleMemo(() => activeOverlayIds().size);
|
|
261
|
+
export const isAnyOverlayOpen = lazyModuleMemo(() => {
|
|
255
262
|
if (activeOverlayIds().size > 0)
|
|
256
263
|
return true;
|
|
257
264
|
for (const condition of customConditions()) {
|