@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
|
@@ -79,7 +79,11 @@ export interface SaveDiscardDialogProps {
|
|
|
79
79
|
* settles its own promise from `onChoice`.
|
|
80
80
|
*/
|
|
81
81
|
export declare function SaveDiscardDialog(props: SaveDiscardDialogProps): JSX.Element;
|
|
82
|
-
|
|
82
|
+
/**
|
|
83
|
+
* One text question for `InputDialog`. An application asks it through its own confirmation host,
|
|
84
|
+
* like {@link ConfirmOptions}: one `InputDialog` per root shows the questions in turn.
|
|
85
|
+
*/
|
|
86
|
+
export interface InputOptions {
|
|
83
87
|
title: string;
|
|
84
88
|
/** Optional helper text shown above the field. */
|
|
85
89
|
message?: string | JSX.Element;
|
|
@@ -102,15 +106,18 @@ export interface PromptOptions {
|
|
|
102
106
|
*/
|
|
103
107
|
secret?: boolean;
|
|
104
108
|
}
|
|
109
|
+
export interface InputDialogProps extends InputOptions {
|
|
110
|
+
open: Accessor<boolean>;
|
|
111
|
+
/** Called with the typed value; the host settles its question with it. */
|
|
112
|
+
onConfirm: (value: string) => void;
|
|
113
|
+
onCancel: () => void;
|
|
114
|
+
/** Window to render into (main or an aux). Defaults to the main window. */
|
|
115
|
+
host?: () => Window;
|
|
116
|
+
}
|
|
105
117
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* Unlike the native prompt this can't be blocked by Electron's
|
|
111
|
-
* `contextIsolation` hardening and stays on-design (#1291).
|
|
118
|
+
* The text question as a presentational dialog — the counterpart of `ConfirmDialog` and
|
|
119
|
+
* `SaveDiscardDialog`. It keeps the typed value itself and hands it to `onConfirm`; an
|
|
120
|
+
* application's host renders it for the question on screen and settles its own promise (with
|
|
121
|
+
* `null` on cancel, the `window.prompt` contract).
|
|
112
122
|
*/
|
|
113
|
-
export declare function
|
|
114
|
-
dialog: () => JSX.Element,
|
|
115
|
-
prompt: (options: PromptOptions) => Promise<string | null>
|
|
116
|
-
];
|
|
123
|
+
export declare function InputDialog(props: InputDialogProps): JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #933 — keyboard intent resolver shared by every overlay-dialog shell
|
|
3
|
-
* ({@link Modal}, ConfirmDialog, the SaveDiscardDialog and
|
|
3
|
+
* ({@link Modal}, ConfirmDialog, the SaveDiscardDialog and InputDialog variants
|
|
4
4
|
* in confirm-dialog/, and any future `aria-modal` shell built beside them).
|
|
5
5
|
*
|
|
6
6
|
* Each of those shells hand-rolled the SAME `onKeyDown` body — "Escape (with
|
|
7
7
|
* stopPropagation) closes; otherwise trap Tab inside the dialog" — as a near
|
|
8
|
-
* line-for-line copy, with only
|
|
8
|
+
* line-for-line copy, with only InputDialog additionally confirming on Enter.
|
|
9
9
|
* Re-deriving that branch per file is exactly the D8 drift source #933 calls
|
|
10
10
|
* out: a fix to one copy (say, adding Enter-to-confirm or changing the trap
|
|
11
11
|
* fall-through) silently skips the others.
|
|
@@ -41,7 +41,7 @@ export type DialogShellKeyIntent = 'dismiss' | 'confirm' | 'trap' | 'none';
|
|
|
41
41
|
export interface DialogShellKeyState {
|
|
42
42
|
/**
|
|
43
43
|
* Whether Enter should confirm the dialog's primary action. The single-line
|
|
44
|
-
*
|
|
44
|
+
* InputDialog sets this true; the confirm / save-discard / generic Modal
|
|
45
45
|
* shells leave it false so Enter inside their bodies (e.g. a textarea) is not
|
|
46
46
|
* hijacked into a submit.
|
|
47
47
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #933 — keyboard intent resolver shared by every overlay-dialog shell
|
|
3
|
-
* ({@link Modal}, ConfirmDialog, the SaveDiscardDialog and
|
|
3
|
+
* ({@link Modal}, ConfirmDialog, the SaveDiscardDialog and InputDialog variants
|
|
4
4
|
* in confirm-dialog/, and any future `aria-modal` shell built beside them).
|
|
5
5
|
*
|
|
6
6
|
* Each of those shells hand-rolled the SAME `onKeyDown` body — "Escape (with
|
|
7
7
|
* stopPropagation) closes; otherwise trap Tab inside the dialog" — as a near
|
|
8
|
-
* line-for-line copy, with only
|
|
8
|
+
* line-for-line copy, with only InputDialog additionally confirming on Enter.
|
|
9
9
|
* Re-deriving that branch per file is exactly the D8 drift source #933 calls
|
|
10
10
|
* out: a fix to one copy (say, adding Enter-to-confirm or changing the trap
|
|
11
11
|
* fall-through) silently skips the others.
|
|
@@ -41,7 +41,7 @@ export type DialogShellKeyIntent = 'dismiss' | 'confirm' | 'trap' | 'none';
|
|
|
41
41
|
export interface DialogShellKeyState {
|
|
42
42
|
/**
|
|
43
43
|
* Whether Enter should confirm the dialog's primary action. The single-line
|
|
44
|
-
*
|
|
44
|
+
* InputDialog sets this true; the confirm / save-discard / generic Modal
|
|
45
45
|
* shells leave it false so Enter inside their bodies (e.g. a textarea) is not
|
|
46
46
|
* hijacked into a submit.
|
|
47
47
|
*/
|
package/dist/overlay/index.cjs
CHANGED
|
@@ -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-CBFIo0FX.cjs"),r=require("../Modal-CaurOG_K.cjs"),O=require("../OverlayScrollArea-BSlaXG1h.cjs"),a=require("../GuidedTour-B61cbsdy.cjs"),i=require("../createDialogShellFocus-CsrZ2GDZ.cjs"),n=require("../tooltipCoordinator-DslqMlsI.cjs"),s=require("../dialogFocusRestore-CL-ExfAA.cjs"),t=require("../anchoredLayout-Dstwa5OH.cjs"),o=require("../overlayStack-eD8AmuwY.cjs"),p=require("../useFloatingDropdown-D5UayoN6.cjs"),M=require("../ownerWindow-BCmJFMbR.cjs"),u=require("../prefersReducedMotion-BQp-Q4UR.cjs"),c=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),l=require("../Popover-CWrR51eG.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=r.ActionPlaceRow;exports.Modal=r.Modal;exports.collectFocusableElements=r.collectFocusableElements;exports.modalTitlebarHeight=r.modalTitlebarHeight;exports.resolveDialogShellKeyIntent=r.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=r.resolveModalFocusTrapTarget;exports.trapTabFocusWithin=r.trapTabFocusWithin;exports.OverlayScrollArea=O.OverlayScrollArea;exports.Disclosure=a.Disclosure;exports.GuidedTour=a.GuidedTour;exports.Panel=a.Panel;exports.PanelSeparator=a.PanelSeparator;exports.positionTourCard=a.positionTourCard;exports.HoverTooltip=i.HoverTooltip;exports.TOOLTIP_CURSOR_OFFSET_X=i.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=i.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=i.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=i.TOOLTIP_VIEWPORT_MARGIN;exports.computeTooltipPointerPosition=i.computeTooltipPointerPosition;exports.createDialogShellFocus=i.createDialogShellFocus;exports.COLD_DELAY_MS=n.COLD_DELAY_MS;exports.COOLDOWN_MS=n.COOLDOWN_MS;exports.DEFAULT_MARGIN=n.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=n.DEFAULT_OFFSET;exports.WARM_DELAY_MS=n.WARM_DELAY_MS;exports.computeAnchoredTooltipPosition=n.computeAnchoredTooltipPosition;exports.createTooltipCoordinator=n.createTooltipCoordinator;exports.tooltipCoordinator=n.tooltipCoordinator;exports.OverlayPortal=s.OverlayPortal;exports.restoreFocusTo=s.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=s.shouldRestoreFocusOnDialogClose;exports.AnchorAlignment=t.AnchorAlignment;exports.AnchorAxisAlignment=t.AnchorAxisAlignment;exports.AnchorPosition=t.AnchorPosition;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.calcFixedWidthDropdownLeft=t.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=t.computeAnchoredPosition;exports.computeDropdownPosition=t.computeDropdownPosition;exports.computePopoverPosition=t.computePopoverPosition;exports.layout2d=t.layout2d;exports.requestOwnerAnimationFrame=t.requestOwnerAnimationFrame;exports.resolvePopoverSide=t.resolvePopoverSide;exports.getOverlayDiagnostics=o.getOverlayDiagnostics;exports.hasOpenLayerIn=o.hasOpenLayerIn;exports.isAnyOverlayOpen=o.isAnyOverlayOpen;exports.isModalOccluded=o.isModalOccluded;exports.isOverlayOverlapping=o.isOverlayOverlapping;exports.notifyOverlayChanged=o.notifyOverlayChanged;exports.notifyOverlayMotionEnd=o.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=o.notifyOverlayMotionStart;exports.onOverlayMotion=o.onOverlayMotion;exports.overlayDepth=o.overlayDepth;exports.readOverlayMutationRevision=o.readOverlayMutationRevision;exports.registerOverlayClose=o.registerOverlayClose;exports.registerOverlayCondition=o.registerOverlayCondition;exports.registerOverlayOpen=o.registerOverlayOpen;exports.useOverlayRegistration=o.useOverlayRegistration;exports.useFloatingDropdown=p.useFloatingDropdown;exports.ownerWindow=M.ownerWindow;exports.modalBackgroundExemption=u.modalBackgroundExemption;exports.neutralizeBackground=u.neutralizeBackground;exports.DesktopContextMenuContext=c.DesktopContextMenuContext;exports.useDesktopContextMenu=c.useDesktopContextMenu;exports.LISTBOX_OPTION_SELECTOR=l.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=l.MENU_ITEM_SELECTOR;exports.Popover=l.Popover;exports.isPopoverNavigationKey=l.isPopoverNavigationKey;exports.resolvePopoverFocusForKey=l.resolvePopoverFocusForKey;
|
package/dist/overlay/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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, c as ae, m as oe, r as se, a as te, t as re } 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 d, j as m, 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 C, r as x, s as y, T as R, t as f, u as L, v as N, w as h, 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 q, U as j, V as z, W as J, X as Q } from "../CommandPalette-CBA_Shqx.js";
|
|
2
|
+
import { A as $, M as ee, c as ae, m as oe, r as se, a as te, t as re } from "../Modal-DJpQqqTJ.js";
|
|
3
3
|
import { O as ie } from "../OverlayScrollArea-c8Za77qs.js";
|
|
4
|
-
import { D as ue, G as pe, P as Oe, a as ce, p as Me } from "../GuidedTour-
|
|
5
|
-
import { H as
|
|
6
|
-
import { C as Se, a as ge, D as
|
|
7
|
-
import { O as Le, r as Ne, s as he } from "../dialogFocusRestore
|
|
4
|
+
import { D as ue, G as pe, P as Oe, a as ce, p as Me } from "../GuidedTour-Dj41FCdE.js";
|
|
5
|
+
import { H as de, T as me, a as De, c as Ee, d as _e, e as Ae, f as Pe } from "../createDialogShellFocus-Vv3hhW-I.js";
|
|
6
|
+
import { C as Se, a as ge, D as Ie, b as Fe, W as Ce, c as xe, d as ye, t as Re } from "../tooltipCoordinator-BzxEyKhA.js";
|
|
7
|
+
import { O as Le, r as Ne, s as he } from "../dialogFocusRestore--dH59ER2.js";
|
|
8
8
|
import { A as be, a as Ge, b as We, O as we, c as He, P as ke, d as Be, e as Ve, f as Ke, g as Xe, h as Ye, l as qe, r as je, i as ze } from "../anchoredLayout-FC-qv8xm.js";
|
|
9
|
-
import { g as Qe, h as Ze, i as $e, a as ea, b as aa, n as oa, c as sa, d as ta, o as ra, e as na, r as ia, f as la, j as ua, k as pa, u as Oa } from "../overlayStack-
|
|
10
|
-
import { u as Ma } from "../useFloatingDropdown-
|
|
11
|
-
import { o as
|
|
9
|
+
import { g as Qe, h as Ze, i as $e, a as ea, b as aa, n as oa, c as sa, d as ta, o as ra, e as na, r as ia, f as la, j as ua, k as pa, u as Oa } from "../overlayStack-Bj6Lg1Rm.js";
|
|
10
|
+
import { u as Ma } from "../useFloatingDropdown-2Tz_es0W.js";
|
|
11
|
+
import { o as da } from "../ownerWindow-9mx_LD47.js";
|
|
12
12
|
import { m as Da, n as Ea } from "../prefersReducedMotion-B2mMn01s.js";
|
|
13
|
-
import { D as
|
|
14
|
-
import { L as Sa, M as ga, P as
|
|
13
|
+
import { D as Aa, u as Pa } from "../DesktopContextMenuContext-DJ3PnqAv.js";
|
|
14
|
+
import { L as Sa, M as ga, P as Ia, i as Fa, r as Ca } from "../Popover-Cttb6NYT.js";
|
|
15
15
|
export {
|
|
16
16
|
$ as ActionPlaceRow,
|
|
17
17
|
be as AnchorAlignment,
|
|
@@ -23,70 +23,70 @@ export {
|
|
|
23
23
|
s as ConfirmDialog,
|
|
24
24
|
t as ConsequenceLine,
|
|
25
25
|
r as ContextMenu,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Ie as DEFAULT_MARGIN,
|
|
27
|
+
Fe as DEFAULT_OFFSET,
|
|
28
28
|
n as DesktopContextMenu,
|
|
29
|
-
|
|
29
|
+
Aa as DesktopContextMenuContext,
|
|
30
30
|
ue as Disclosure,
|
|
31
31
|
i as Drawer,
|
|
32
32
|
l as DropdownMenu,
|
|
33
33
|
u as FloatingWindow,
|
|
34
34
|
pe as GuidedTour,
|
|
35
|
-
|
|
35
|
+
de as HoverTooltip,
|
|
36
|
+
p as InputDialog,
|
|
36
37
|
Sa as LISTBOX_OPTION_SELECTOR,
|
|
37
38
|
ga as MENU_ITEM_SELECTOR,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
O as MenuDisclosure,
|
|
40
|
+
c as MenuEmpty,
|
|
41
|
+
M as MenuItem,
|
|
42
|
+
T as MenuList,
|
|
43
|
+
d as MenuSearch,
|
|
43
44
|
m as MenuSection,
|
|
44
|
-
|
|
45
|
+
D as MenuSeparator,
|
|
45
46
|
ee as Modal,
|
|
46
|
-
|
|
47
|
+
E as NameStep,
|
|
47
48
|
we as OVERLAY_DEFAULT_GAP,
|
|
48
49
|
He as OVERLAY_DEFAULT_MARGIN,
|
|
49
|
-
|
|
50
|
+
_ as OptionList,
|
|
50
51
|
Le as OverlayPortal,
|
|
51
52
|
ie as OverlayScrollArea,
|
|
52
53
|
ke as POPOVER_DEFAULT_GAP,
|
|
53
54
|
Be as POPOVER_VIEWPORT_MARGIN,
|
|
54
55
|
Oe as Panel,
|
|
55
56
|
ce as PanelSeparator,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
Ia as Popover,
|
|
58
|
+
A as PopoverPanel,
|
|
59
|
+
P as SUBMENU_ANCHOR_OVERLAP,
|
|
60
|
+
v as SUBMENU_ESTIMATED_ROW_HEIGHT,
|
|
61
|
+
S as SUBMENU_ESTIMATED_WIDTH,
|
|
62
|
+
g as SUBMENU_MIN_ESTIMATED_HEIGHT,
|
|
63
|
+
I as SUBMENU_VIEWPORT_MARGIN,
|
|
63
64
|
F as SaveDiscardDialog,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
C as SelectedOptions,
|
|
66
|
+
x as StatementPreview,
|
|
67
|
+
y as StepFooter,
|
|
68
|
+
me as TOOLTIP_CURSOR_OFFSET_X,
|
|
68
69
|
De as TOOLTIP_CURSOR_OFFSET_Y,
|
|
69
70
|
Ee as TOOLTIP_MAX_FOOTPRINT_X,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
_e as TOOLTIP_VIEWPORT_MARGIN,
|
|
72
|
+
R as Tooltip,
|
|
73
|
+
f as TooltipHost,
|
|
73
74
|
Ce as WARM_DELAY_MS,
|
|
74
75
|
Ve as calcFixedWidthDropdownLeft,
|
|
75
|
-
|
|
76
|
+
L as closeContextMenu,
|
|
76
77
|
ae as collectFocusableElements,
|
|
77
78
|
Ke as computeAnchoredPosition,
|
|
78
79
|
xe as computeAnchoredTooltipPosition,
|
|
79
80
|
Xe as computeDropdownPosition,
|
|
80
81
|
Ye as computePopoverPosition,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
W as createPromptDialog,
|
|
82
|
+
N as computeSubmenuPlacement,
|
|
83
|
+
Ae as computeTooltipPointerPosition,
|
|
84
|
+
h as confirmationLevelOf,
|
|
85
|
+
U as createDangerousActionDialog,
|
|
86
|
+
b as createDesktopContextMenuApi,
|
|
87
|
+
G as createDialogFocusScope,
|
|
88
|
+
Pe as createDialogShellFocus,
|
|
89
|
+
W as createOverlayCloseGuard,
|
|
90
90
|
ye as createTooltipCoordinator,
|
|
91
91
|
w as describeConsequence,
|
|
92
92
|
H as estimateSubmenuHeight,
|
|
@@ -98,7 +98,7 @@ export {
|
|
|
98
98
|
V as isIrreversible,
|
|
99
99
|
ea as isModalOccluded,
|
|
100
100
|
aa as isOverlayOverlapping,
|
|
101
|
-
|
|
101
|
+
Fa as isPopoverNavigationKey,
|
|
102
102
|
K as lastFocusableMenuIndex,
|
|
103
103
|
qe as layout2d,
|
|
104
104
|
X as menuSurfaceClasses,
|
|
@@ -112,7 +112,7 @@ export {
|
|
|
112
112
|
ra as onOverlayMotion,
|
|
113
113
|
q as openContextMenu,
|
|
114
114
|
na as overlayDepth,
|
|
115
|
-
|
|
115
|
+
da as ownerWindow,
|
|
116
116
|
j as panelClasses,
|
|
117
117
|
Me as positionTourCard,
|
|
118
118
|
ia as readOverlayMutationRevision,
|
|
@@ -131,7 +131,7 @@ export {
|
|
|
131
131
|
Q as tooltip,
|
|
132
132
|
Re as tooltipCoordinator,
|
|
133
133
|
re as trapTabFocusWithin,
|
|
134
|
-
|
|
134
|
+
Pa as useDesktopContextMenu,
|
|
135
135
|
Ma as useFloatingDropdown,
|
|
136
136
|
Oa as useOverlayRegistration
|
|
137
137
|
};
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";const t=require("solid-js/web"),s=require("solid-js"),v=require("./SearchableSelect-
|
|
1
|
+
"use strict";const t=require("solid-js/web"),s=require("solid-js"),v=require("./SearchableSelect-ClQzcYdL.cjs"),g=require("./Button-VKl-_GaO.cjs"),r=require("./i18n-DZ0JlZal.cjs"),b=require("./Input-CjvD8w18.cjs"),_=require("./iconScale.module-CzmKG1rf.cjs"),B=require("./keys-GMxY2wcl.cjs"),S=require("./VpClose-O8jHAcCB.cjs"),k=require("./VpSearch-BqIXmlaU.cjs"),h=require("./bugIndicatingError-D2X5Hfgg.cjs"),C=require("./VpCheck-CGTZXiSk.cjs");function d(e,a){return e<=0?a:String(e)}const f="vk_paginationRow_hg8fj",I="vk_paginationMeta_rPi8N",m="vk_paginationActions_gD2Fz",V="vk_paginationLabel_9x9Ah",w="vk_paginationSelect_h5BcT",T="vk_paginationPage_CYJRF",c={paginationRow:f,paginationMeta:I,paginationActions:m,paginationLabel:V,paginationSelect:w,paginationPage:T};var z=["<div","><span",">","</span><div","><label",">","","</label>","<span",">"," / ","</span>","</div></div>"];function R(e){const a=s.createMemo(()=>{const l=r.t("Unlimited");return e.pageSizeOptions.map(u=>({value:String(u),label:d(u,l)}))});return t.ssr(z,t.ssrAttribute("class",t.escape(c.paginationRow,!0),!1),t.ssrAttribute("class",t.escape(c.paginationMeta,!0),!1),t.escape(r.t("Showing {shown} of {total} items",{shown:e.shownCount(),total:e.totalCount()})),t.ssrAttribute("class",t.escape(c.paginationActions,!0),!1),t.ssrAttribute("class",t.escape(c.paginationLabel,!0),!1),t.escape(r.t("Page size")),t.escape(t.createComponent(v.SearchableSelect,{size:"sm",get class(){return c.paginationSelect},get value(){return String(e.pageSize())},get options(){return a()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return r.t("Page size")}})),t.escape(t.createComponent(g.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()<=1},onClick:()=>e.onPageChange(Math.max(1,e.page()-1)),get children(){return r.t("Previous")}})),t.ssrAttribute("class",t.escape(c.paginationPage,!0),!1),t.escape(e.page()),t.escape(e.totalPages()),t.escape(t.createComponent(g.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()>=e.totalPages()},onClick:()=>e.onPageChange(Math.min(e.totalPages(),e.page()+1)),get children(){return r.t("Next")}})))}const P="vk_toolbar_LSRmU",A="vk_toolbarHorizontal_qHM-8",L="vk_toolbarViewClip_Q893H",O="vk_toolbarScrollRoot_aYbLg",y="vk_toolbarScrollViewport_qBzjd",$="vk_toolbarScrollTrack_Tp8TN",q="vk_segmentedCapsule_k9EBy",M="vk_toolbarBtn_CcyXF",H="vk_toolbarBtnActive_UgTBV",F="vk_toolbarBtnIconOnly_BlE-b",x="vk_toolbarHorizontalBottom_qLzhJ",E="vk_toolbarVertical_EjHi2",N="vk_toolbarVerticalRight_DBgEa",J="vk_toolbarScrollRootVertical_VGLRy",X="vk_toolbarScrollViewportVertical_RLF5g",K="vk_toolbarScrollTrackVertical_c1rBF",U="vk_toolbarSettingsBtn_XXfMz",j="vk_toolbarIcon_0FvlL",D="vk_toolbarSpacer_N3TbQ",G="vk_sortBadgePill_nVrIk",Q="vk_sortBadgeBtn_Is9PS",Y="vk_sortBadgeIcon_kw8oa",Z="vk_sortBadgeLabel_l-p33",W="vk_sortBadgeClearBtn_ioOaP",tt="vk_sortBadgeClearIcon_0e6Kd",et="vk_filterInputContainer_kegUv",ot="vk_filterSearchIcon_gI0m2",at="vk_filterInput_bX9xM",rt="vk_filterClearBtn_WerJL",lt="vk_filterClearIcon_7fuAJ",o={toolbar:P,toolbarHorizontal:A,toolbarViewClip:L,toolbarScrollRoot:O,toolbarScrollViewport:y,toolbarScrollTrack:$,segmentedCapsule:q,toolbarBtn:M,toolbarBtnActive:H,toolbarBtnIconOnly:F,toolbarHorizontalBottom:x,toolbarVertical:E,toolbarVerticalRight:N,toolbarScrollRootVertical:J,toolbarScrollViewportVertical:X,toolbarScrollTrackVertical:K,toolbarSettingsBtn:U,toolbarIcon:j,toolbarSpacer:D,sortBadgePill:G,sortBadgeBtn:Q,sortBadgeIcon:Y,sortBadgeLabel:Z,sortBadgeClearBtn:W,sortBadgeClearIcon:tt,filterInputContainer:et,filterSearchIcon:ot,filterInput:at,filterClearBtn:rt,filterClearIcon:lt},nt="vk_searchRow_2pwXX",ct="vk_searchInput_PbDtG",st="vk_clearBtn_upa-E",i={searchRow:nt,searchInput:ct,clearBtn:st};var it=["<div",">","","</div>"];function bt(e){return t.createComponent(b.PressableSurface,{type:"button",get class(){return`${o.toolbarSettingsBtn} ${e.active?o.toolbarBtnActive:""}`},get onClick(){return e.onToggle},get"aria-pressed"(){return e.active},get"aria-label"(){return r.t("Search")},get title(){return r.t("Search")},get children(){return t.createComponent(k.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ut(e){let a;return s.onMount(()=>a==null?void 0:a.focus()),t.ssr(it,t.ssrAttribute("class",t.escape(i.searchRow,!0),!1),t.escape(t.createComponent(b.Input,t.mergeProps({get class(){return i.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:l=>e.onInput(l.currentTarget.value),onKeyDown:l=>{B.isKey(l,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??r.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{}))),t.escape(t.createComponent(s.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(b.PressableSurface,{type:"button",get class(){return i.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return r.t("Clear search")},get title(){return r.t("Clear search")},get children(){return t.createComponent(S.VpClose,{get class(){return _.iconScale.iconSm},"aria-hidden":"true"})}})}})))}const gt=Object.freeze({toolbar:o.toolbar,toolbarHorizontal:o.toolbarHorizontal,toolbarHorizontalBottom:o.toolbarHorizontalBottom,toolbarVertical:o.toolbarVertical,toolbarVerticalRight:o.toolbarVerticalRight,toolbarViewClip:o.toolbarViewClip,toolbarScrollRoot:o.toolbarScrollRoot,toolbarScrollViewport:o.toolbarScrollViewport,toolbarScrollTrack:o.toolbarScrollTrack,toolbarScrollRootVertical:o.toolbarScrollRootVertical,toolbarScrollViewportVertical:o.toolbarScrollViewportVertical,toolbarScrollTrackVertical:o.toolbarScrollTrackVertical,segmentedCapsule:o.segmentedCapsule,toolbarBtn:o.toolbarBtn,toolbarBtnActive:o.toolbarBtnActive,toolbarBtnIconOnly:o.toolbarBtnIconOnly,toolbarIcon:o.toolbarIcon,toolbarSpacer:o.toolbarSpacer,toolbarSettingsBtn:o.toolbarSettingsBtn,sortBadgePill:o.sortBadgePill,sortBadgeBtn:o.sortBadgeBtn,sortBadgeIcon:o.sortBadgeIcon,sortBadgeLabel:o.sortBadgeLabel,sortBadgeClearBtn:o.sortBadgeClearBtn,sortBadgeClearIcon:o.sortBadgeClearIcon,filterInputContainer:o.filterInputContainer,filterSearchIcon:o.filterSearchIcon,filterInput:o.filterInput,filterClearBtn:o.filterClearBtn,filterClearIcon:o.filterClearIcon});function pt(e,a){const l=`${a}: `;throw new h.BugIndicatingError(`${l}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const _t="vk_grid_uK6pm",dt="vk_card_33OV3",vt="vk_item_UeZrE",Bt="vk_label_a-LFz",St="vk_value_9ZQBt",kt="vk_valueMono_knknq",ht="vk_boolOn_5zd-H",Ct="vk_boolOff_-6I4K",ft="vk_stacked_2T--a",n={grid:_t,card:dt,item:vt,label:Bt,value:St,valueMono:kt,boolOn:ht,boolOff:Ct,stacked:ft};var p=["<span",">","</span>"],It=['<span class="','">',"</span>"],mt=['<div class="','">',"</div>"],Vt=["<div","><span",">","</span>","</div>"];function wt(e,a){switch(e.kind){case"text":return t.ssr(p,t.ssrAttribute("class",t.escape(n.value,!0),!1),t.escape(e.value(a)));case"mono":return t.ssr(p,t.ssrAttribute("class",t.escape(n.valueMono,!0),!1),t.escape(e.value(a)));case"bool":return t.ssr(It,`${t.escape(n.value,!0)} ${e.on(a)?t.escape(n.boolOn,!0):t.escape(n.boolOff,!0)}`,e.on(a)?t.escape(t.createComponent(C.VpCheck,{get class(){return _.iconScale.iconSm},"aria-hidden":"true"})):"—");case"custom":return e.render(a);default:return pt(e,"AttributeField.kind")}}function Tt(e){return t.createComponent(s.Show,{get when(){return e.row()!=null},get children(){return t.ssr(mt,`${t.escape(n.grid,!0)} ${t.escape(n[e.variant]??"",!0)}`,t.escape(t.createComponent(s.For,{get each(){return e.fields},children:a=>t.ssr(Vt,t.ssrAttribute("class",t.escape(n.item,!0),!1),t.ssrAttribute("class",t.escape(n.label,!0),!1),t.escape(a.label),t.escape(wt(a,e.row())))})))}})}exports.AttributeGrid=Tt;exports.Pagination=R;exports.ToolbarSearchRow=ut;exports.ToolbarSearchToggle=bt;exports.pageSizeOptionLabel=d;exports.resultTabToolbarClasses=gt;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ssr as s, ssrAttribute as n, escape as a, createComponent as r, mergeProps as p } from "solid-js/web";
|
|
2
2
|
import { createMemo as k, onMount as f, Show as d, For as h } from "solid-js";
|
|
3
|
-
import { S as m } from "./SearchableSelect-
|
|
4
|
-
import { B as _ } from "./Button-
|
|
3
|
+
import { S as m } from "./SearchableSelect-DtcMC7Xu.js";
|
|
4
|
+
import { B as _ } from "./Button-BPNNFcHc.js";
|
|
5
5
|
import { t as l } from "./i18n-DW9kcu0G.js";
|
|
6
6
|
import { I, P as B } from "./Input-DaEN2JJd.js";
|
|
7
7
|
import { i as S } from "./iconScale.module-C3O0bxfp.js";
|