@vokril/ui-solid 0.29.0 → 0.31.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 +71 -0
- package/README.md +27 -0
- package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
- package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
- package/dist/Button-4meERfnv.js +300 -0
- package/dist/Button-OyZHrl-t.cjs +1 -0
- package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
- package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
- package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
- package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
- package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
- package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
- package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
- package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
- package/dist/HostPortal-CpWsArs6.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
- package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
- package/dist/Input-Brp5EDhg.cjs +1 -0
- package/dist/Input-CZi8KEfm.js +374 -0
- package/dist/Modal-CBi7Wd2V.cjs +1 -0
- package/dist/Modal-iyY1HUtr.js +588 -0
- package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
- package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
- package/dist/Popover-DXrczbt9.cjs +1 -0
- package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
- package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
- package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
- package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4279 -4002
- package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
- package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
- package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
- package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
- package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
- package/dist/ToggleButton-DWslrIBN.cjs +1 -0
- package/dist/_internal/contract/notification.d.cts +9 -0
- package/dist/_internal/contract/notification.d.ts +9 -0
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
- package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
- package/dist/base.css +2 -2
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
- package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
- package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
- package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +3 -3
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +3 -3
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +547 -541
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-B215swW-.js +166 -0
- package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationItem.d.cts +9 -0
- package/dist/notifications/NotificationItem.d.ts +9 -0
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +55 -52
- package/dist/notifications/nativeEngine.d.cts +4 -3
- package/dist/notifications/nativeEngine.d.ts +4 -3
- package/dist/notifications/notificationEntryList.d.cts +91 -0
- package/dist/notifications/notificationEntryList.d.ts +91 -0
- package/dist/notifications/notificationService.d.cts +23 -2
- package/dist/notifications/notificationService.d.ts +23 -2
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +6 -0
- package/dist/overlay/Modal.d.ts +6 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +70 -68
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
- package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
- package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
- package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
- package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
- package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
- package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
- package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
- package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
- package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
- package/dist/server/Input-AdF-i0O8.js +245 -0
- package/dist/server/Input-XF9Jr0G9.cjs +1 -0
- package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
- package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
- package/dist/server/Popover-C5avmGWz.cjs +1 -0
- package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
- package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
- package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
- package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
- package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-DW2l5O9B.js} +4216 -3949
- package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
- package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
- package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
- package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
- package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
- package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
- package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
- package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +3 -3
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- 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-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
- package/dist/server/index-C6rYfWCJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +502 -497
- 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 +55 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +54 -53
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +30 -28
- package/dist/solid/feedback/Badge.jsx +3 -14
- package/dist/solid/forms/Button.jsx +3 -14
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +86 -0
- package/dist/solid/forms/PressableSurface.jsx +3 -14
- package/dist/solid/layout/ResizeHandle.jsx +11 -1
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/notifications/NotificationHost.jsx +5 -18
- package/dist/solid/notifications/NotificationItem.jsx +5 -5
- package/dist/solid/notifications/NotificationPanel.jsx +14 -4
- package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +8 -3
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/notificationEntryList.js +168 -0
- package/dist/solid/notifications/notificationService.js +20 -4
- package/dist/solid/notifications/toast.js +54 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/Modal.jsx +42 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/style.css +2 -2
- package/dist/theme.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +30 -28
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
package/dist/layout/index.cjs
CHANGED
|
@@ -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-COlpGQ7H.cjs"),r=require("../Stepper-u2ZsE5oP.cjs"),a=require("../createVirtualWindow-C8_UuF7B.cjs");exports.PageHeader=e.PageHeader;exports.PageHeaderIcon=e.PageHeaderIcon;exports.ResizableSplitPane=e.ResizableSplitPane;exports.ResizeHandle=e.ResizeHandle;exports.createResizableSidebar=e.createResizableSidebar;exports.createVirtualScroller=e.createVirtualScroller;exports.Accordion=r.Accordion;exports.Breadcrumb=r.Breadcrumb;exports.Stepper=r.Stepper;exports.Tabs=r.Tabs;exports.createVirtualWindow=a.createVirtualWindow;
|
package/dist/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as r, a as s, R as o, b as c, c as t, d as i } from "../createResizableSidebar-
|
|
2
|
-
import { A as l, B as b, S as p, T as n } from "../Stepper-
|
|
1
|
+
import { P as r, a as s, R as o, b as c, c as t, d as i } from "../createResizableSidebar-cmCKTIg_.js";
|
|
2
|
+
import { A as l, B as b, S as p, T as n } from "../Stepper-CyRgzWlR.js";
|
|
3
3
|
import { c as m } from "../createVirtualWindow-CGPw2jm_.js";
|
|
4
4
|
export {
|
|
5
5
|
l as Accordion,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a drag honest at the ends of a range: when the consumer clamps the size (a pane at its
|
|
3
|
+
* maximum), the pointer keeps moving but the pane does not, and the unapplied distance is carried.
|
|
4
|
+
* Moving back first spends that carry, so the pane follows the pointer again only once the pointer
|
|
5
|
+
* is back where the edge is — instead of shrinking at once while the pointer is still far away.
|
|
6
|
+
*/
|
|
7
|
+
export interface ResizeCarry {
|
|
8
|
+
/**
|
|
9
|
+
* Feed one pointer movement. `apply` hands a delta to the consumer; `read` returns the size
|
|
10
|
+
* after it. Returns nothing; the carry is internal.
|
|
11
|
+
*/
|
|
12
|
+
step(delta: number, read: () => number, apply: (delta: number) => void): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function createResizeCarry(bounds: {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
}): ResizeCarry;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a drag honest at the ends of a range: when the consumer clamps the size (a pane at its
|
|
3
|
+
* maximum), the pointer keeps moving but the pane does not, and the unapplied distance is carried.
|
|
4
|
+
* Moving back first spends that carry, so the pane follows the pointer again only once the pointer
|
|
5
|
+
* is back where the edge is — instead of shrinking at once while the pointer is still far away.
|
|
6
|
+
*/
|
|
7
|
+
export interface ResizeCarry {
|
|
8
|
+
/**
|
|
9
|
+
* Feed one pointer movement. `apply` hands a delta to the consumer; `read` returns the size
|
|
10
|
+
* after it. Returns nothing; the carry is internal.
|
|
11
|
+
*/
|
|
12
|
+
step(delta: number, read: () => number, apply: (delta: number) => void): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function createResizeCarry(bounds: {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
}): ResizeCarry;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { use as B, insert as f, createComponent as h, effect as m, className as d, memo as D, style as x, setAttribute as c, template as z, delegateEvents as w } from "solid-js/web";
|
|
2
|
+
import { createUniqueId as y, onCleanup as C, Show as b } from "solid-js";
|
|
3
|
+
import { r as I, t as S, h as L } from "./nativeTitleHold-A9jUISgQ.js";
|
|
4
|
+
const A = "vk_badge_H207K", E = "vk_icon_pYYcO", M = "vk_dot_rH6r0", X = "vk_sm_wGIZ-", H = "vk_minWidth_COglg", P = "vk_uppercase_VXoV8", O = "vk_toneNeutral_X8HW3", V = "vk_toneBrand_yGkjl", j = "vk_toneInfo_wp-9H", q = "vk_toneSuccess_VG8jt", F = "vk_toneWarning_zPFLO", R = "vk_toneDanger_cRUoq", G = "vk_soft_8b-4T", K = "vk_outline_gFFWD", U = "vk_collapsible_DMKBX", Q = "vk_label_veC9k", a = {
|
|
5
|
+
badge: A,
|
|
6
|
+
icon: E,
|
|
7
|
+
dot: M,
|
|
8
|
+
sm: X,
|
|
9
|
+
minWidth: H,
|
|
10
|
+
uppercase: P,
|
|
11
|
+
toneNeutral: O,
|
|
12
|
+
toneBrand: V,
|
|
13
|
+
toneInfo: j,
|
|
14
|
+
toneSuccess: q,
|
|
15
|
+
toneWarning: F,
|
|
16
|
+
toneDanger: R,
|
|
17
|
+
soft: G,
|
|
18
|
+
outline: K,
|
|
19
|
+
collapsible: U,
|
|
20
|
+
label: Q
|
|
21
|
+
};
|
|
22
|
+
var N = /* @__PURE__ */ z("<span aria-hidden=true>"), $ = /* @__PURE__ */ z("<span>");
|
|
23
|
+
const Y = {
|
|
24
|
+
neutral: a.toneNeutral,
|
|
25
|
+
brand: a.toneBrand,
|
|
26
|
+
info: a.toneInfo,
|
|
27
|
+
success: a.toneSuccess,
|
|
28
|
+
warning: a.toneWarning,
|
|
29
|
+
danger: a.toneDanger
|
|
30
|
+
}, Z = {
|
|
31
|
+
soft: a.soft,
|
|
32
|
+
outline: a.outline
|
|
33
|
+
};
|
|
34
|
+
function ge(e) {
|
|
35
|
+
let i;
|
|
36
|
+
const l = y(), r = () => e.tooltip !== void 0 ? typeof e.tooltip == "function" ? e.tooltip() : e.tooltip : e.title, u = () => {
|
|
37
|
+
const o = r();
|
|
38
|
+
!o || !i || (L(i), S.showTooltip({
|
|
39
|
+
id: l,
|
|
40
|
+
target: i,
|
|
41
|
+
content: o,
|
|
42
|
+
placement: e.tooltipPlacement
|
|
43
|
+
}));
|
|
44
|
+
}, n = () => {
|
|
45
|
+
i && (I(i), S.hideTooltip(i));
|
|
46
|
+
};
|
|
47
|
+
C(() => {
|
|
48
|
+
i && S.hideTooltip(i);
|
|
49
|
+
});
|
|
50
|
+
const g = () => [a.badge, Y[e.tone ?? "neutral"], Z[e.variant ?? "soft"], e.size === "sm" ? a.sm : void 0, e.uppercase ? a.uppercase : void 0, e.minWidth ? a.minWidth : void 0, e.collapsible === !0 ? a.collapsible : void 0, e.class].filter((o) => !!o).join(" ");
|
|
51
|
+
return (() => {
|
|
52
|
+
var o = $();
|
|
53
|
+
return o.$$focusout = n, o.$$focusin = u, o.addEventListener("pointerleave", n), o.addEventListener("pointerenter", u), B((t) => i = t, o), f(o, h(b, {
|
|
54
|
+
get when() {
|
|
55
|
+
return e.icon !== void 0;
|
|
56
|
+
},
|
|
57
|
+
get children() {
|
|
58
|
+
var t = N();
|
|
59
|
+
return f(t, () => e.icon), m(() => d(t, a.icon)), t;
|
|
60
|
+
}
|
|
61
|
+
}), null), f(o, h(b, {
|
|
62
|
+
get when() {
|
|
63
|
+
return D(() => e.collapsible === !0)() && e.icon === void 0;
|
|
64
|
+
},
|
|
65
|
+
get children() {
|
|
66
|
+
var t = N();
|
|
67
|
+
return m(() => d(t, a.dot)), t;
|
|
68
|
+
}
|
|
69
|
+
}), null), f(o, h(b, {
|
|
70
|
+
get when() {
|
|
71
|
+
return e.collapsible === !0;
|
|
72
|
+
},
|
|
73
|
+
get fallback() {
|
|
74
|
+
return e.children;
|
|
75
|
+
},
|
|
76
|
+
get children() {
|
|
77
|
+
var t = $();
|
|
78
|
+
return f(t, () => e.children), m(() => d(t, a.label)), t;
|
|
79
|
+
}
|
|
80
|
+
}), null), m((t) => {
|
|
81
|
+
var v = g(), k = e.style, _ = e.title;
|
|
82
|
+
return v !== t.e && d(o, t.e = v), t.t = x(o, k, t.t), _ !== t.a && c(o, "title", t.a = _), t;
|
|
83
|
+
}, {
|
|
84
|
+
e: void 0,
|
|
85
|
+
t: void 0,
|
|
86
|
+
a: void 0
|
|
87
|
+
}), o;
|
|
88
|
+
})();
|
|
89
|
+
}
|
|
90
|
+
w(["focusin", "focusout"]);
|
|
91
|
+
const J = "vk_track_8sxq6", p = "vk_size2xs_PFVQU", ee = "vk_sizeXs_uv795", te = "vk_sizeSm_PXflS", ne = "vk_sizeMd_D7fn9", oe = "vk_fill_WzdHy", ie = "vk_toneBrand_Tv6r-", ae = "vk_toneSuccess_zqjLa", re = "vk_toneWarning_xuA11", se = "vk_toneDanger_eWHhk", le = "vk_toneNeutral_-Ko2R", ce = "vk_indeterminate_94QkD", s = {
|
|
92
|
+
track: J,
|
|
93
|
+
size2xs: p,
|
|
94
|
+
sizeXs: ee,
|
|
95
|
+
sizeSm: te,
|
|
96
|
+
sizeMd: ne,
|
|
97
|
+
fill: oe,
|
|
98
|
+
toneBrand: ie,
|
|
99
|
+
toneSuccess: ae,
|
|
100
|
+
toneWarning: re,
|
|
101
|
+
toneDanger: se,
|
|
102
|
+
toneNeutral: le,
|
|
103
|
+
indeterminate: ce
|
|
104
|
+
};
|
|
105
|
+
var de = /* @__PURE__ */ z("<div role=progressbar><span>");
|
|
106
|
+
const ue = {
|
|
107
|
+
brand: s.toneBrand,
|
|
108
|
+
success: s.toneSuccess,
|
|
109
|
+
warning: s.toneWarning,
|
|
110
|
+
danger: s.toneDanger,
|
|
111
|
+
neutral: s.toneNeutral
|
|
112
|
+
}, ve = {
|
|
113
|
+
"2xs": s.size2xs,
|
|
114
|
+
xs: s.sizeXs,
|
|
115
|
+
sm: s.sizeSm,
|
|
116
|
+
md: s.sizeMd
|
|
117
|
+
};
|
|
118
|
+
function ke(e) {
|
|
119
|
+
const i = () => {
|
|
120
|
+
if (e.indeterminate) return 0;
|
|
121
|
+
const r = e.max ?? 100;
|
|
122
|
+
return r <= 0 ? 0 : Math.max(0, Math.min(100, e.value / r * 100));
|
|
123
|
+
}, l = () => e.indeterminate === !0;
|
|
124
|
+
return (() => {
|
|
125
|
+
var r = de(), u = r.firstChild;
|
|
126
|
+
return m((n) => {
|
|
127
|
+
var g = `${s.track} ${ve[e.size ?? "md"]} ${ue[e.tone ?? "brand"]} ${l() ? s.indeterminate : ""} ${e.class ?? ""}`, o = l() ? void 0 : Math.round(i()), t = l() ? void 0 : 0, v = l() ? void 0 : 100, k = l() ? "true" : void 0, _ = e.ariaLabel, W = s.fill, T = l() ? void 0 : {
|
|
128
|
+
"--progress-pct": `${i()}%`
|
|
129
|
+
};
|
|
130
|
+
return g !== n.e && d(r, n.e = g), o !== n.t && c(r, "aria-valuenow", n.t = o), t !== n.a && c(r, "aria-valuemin", n.a = t), v !== n.o && c(r, "aria-valuemax", n.o = v), k !== n.i && c(r, "aria-busy", n.i = k), _ !== n.n && c(r, "aria-label", n.n = _), W !== n.s && d(u, n.s = W), n.h = x(u, T, n.h), n;
|
|
131
|
+
}, {
|
|
132
|
+
e: void 0,
|
|
133
|
+
t: void 0,
|
|
134
|
+
a: void 0,
|
|
135
|
+
o: void 0,
|
|
136
|
+
i: void 0,
|
|
137
|
+
n: void 0,
|
|
138
|
+
s: void 0,
|
|
139
|
+
h: void 0
|
|
140
|
+
}), r;
|
|
141
|
+
})();
|
|
142
|
+
}
|
|
143
|
+
function he(e, i) {
|
|
144
|
+
return {
|
|
145
|
+
...e,
|
|
146
|
+
category: e.category ?? e.id.split(".")[0] ?? "general",
|
|
147
|
+
build: i
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function be(e, i, l) {
|
|
151
|
+
return {
|
|
152
|
+
id: e,
|
|
153
|
+
notification: i,
|
|
154
|
+
resolve: (r) => i.build(l, r)
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function Se(e) {
|
|
158
|
+
return document.createElement(e);
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
ge as B,
|
|
162
|
+
ke as P,
|
|
163
|
+
be as a,
|
|
164
|
+
Se as c,
|
|
165
|
+
he as d
|
|
166
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("solid-js/web"),_=require("solid-js"),f=require("./nativeTitleHold-B7Ou-W9b.cjs"),N="vk_badge_H207K",z="vk_icon_pYYcO",W="vk_dot_rH6r0",$="vk_sm_wGIZ-",w="vk_minWidth_COglg",C="vk_uppercase_VXoV8",T="vk_toneNeutral_X8HW3",A="vk_toneBrand_yGkjl",x="vk_toneInfo_wp-9H",B="vk_toneSuccess_VG8jt",D="vk_toneWarning_zPFLO",y="vk_toneDanger_cRUoq",E="vk_soft_8b-4T",I="vk_outline_gFFWD",L="vk_collapsible_DMKBX",M="vk_label_veC9k",s={badge:N,icon:z,dot:W,sm:$,minWidth:w,uppercase:C,toneNeutral:T,toneBrand:A,toneInfo:x,toneSuccess:B,toneWarning:D,toneDanger:y,soft:E,outline:I,collapsible:L,label:M};var b=t.template("<span aria-hidden=true>"),h=t.template("<span>");const X={neutral:s.toneNeutral,brand:s.toneBrand,info:s.toneInfo,success:s.toneSuccess,warning:s.toneWarning,danger:s.toneDanger},q={soft:s.soft,outline:s.outline};function H(e){let a;const c=_.createUniqueId(),r=()=>e.tooltip!==void 0?typeof e.tooltip=="function"?e.tooltip():e.tooltip:e.title,d=()=>{const i=r();!i||!a||(f.holdNativeTitle(a),f.tooltipCoordinator.showTooltip({id:c,target:a,content:i,placement:e.tooltipPlacement}))},o=()=>{a&&(f.releaseNativeTitle(a),f.tooltipCoordinator.hideTooltip(a))};_.onCleanup(()=>{a&&f.tooltipCoordinator.hideTooltip(a)});const m=()=>[s.badge,X[e.tone??"neutral"],q[e.variant??"soft"],e.size==="sm"?s.sm:void 0,e.uppercase?s.uppercase:void 0,e.minWidth?s.minWidth:void 0,e.collapsible===!0?s.collapsible:void 0,e.class].filter(i=>!!i).join(" ");return(()=>{var i=h();return i.$$focusout=o,i.$$focusin=d,i.addEventListener("pointerleave",o),i.addEventListener("pointerenter",d),t.use(n=>a=n,i),t.insert(i,t.createComponent(_.Show,{get when(){return e.icon!==void 0},get children(){var n=b();return t.insert(n,()=>e.icon),t.effect(()=>t.className(n,s.icon)),n}}),null),t.insert(i,t.createComponent(_.Show,{get when(){return t.memo(()=>e.collapsible===!0)()&&e.icon===void 0},get children(){var n=b();return t.effect(()=>t.className(n,s.dot)),n}}),null),t.insert(i,t.createComponent(_.Show,{get when(){return e.collapsible===!0},get fallback(){return e.children},get children(){var n=h();return t.insert(n,()=>e.children),t.effect(()=>t.className(n,s.label)),n}}),null),t.effect(n=>{var u=m(),g=e.style,v=e.title;return u!==n.e&&t.className(i,n.e=u),n.t=t.style(i,g,n.t),v!==n.a&&t.setAttribute(i,"title",n.a=v),n},{e:void 0,t:void 0,a:void 0}),i})()}t.delegateEvents(["focusin","focusout"]);const P="vk_track_8sxq6",O="vk_size2xs_PFVQU",V="vk_sizeXs_uv795",j="vk_sizeSm_PXflS",F="vk_sizeMd_D7fn9",R="vk_fill_WzdHy",G="vk_toneBrand_Tv6r-",K="vk_toneSuccess_zqjLa",U="vk_toneWarning_xuA11",Q="vk_toneDanger_eWHhk",Y="vk_toneNeutral_-Ko2R",Z="vk_indeterminate_94QkD",l={track:P,size2xs:O,sizeXs:V,sizeSm:j,sizeMd:F,fill:R,toneBrand:G,toneSuccess:K,toneWarning:U,toneDanger:Q,toneNeutral:Y,indeterminate:Z};var J=t.template("<div role=progressbar><span>");const p={brand:l.toneBrand,success:l.toneSuccess,warning:l.toneWarning,danger:l.toneDanger,neutral:l.toneNeutral},ee={"2xs":l.size2xs,xs:l.sizeXs,sm:l.sizeSm,md:l.sizeMd};function te(e){const a=()=>{if(e.indeterminate)return 0;const r=e.max??100;return r<=0?0:Math.max(0,Math.min(100,e.value/r*100))},c=()=>e.indeterminate===!0;return(()=>{var r=J(),d=r.firstChild;return t.effect(o=>{var m=`${l.track} ${ee[e.size??"md"]} ${p[e.tone??"brand"]} ${c()?l.indeterminate:""} ${e.class??""}`,i=c()?void 0:Math.round(a()),n=c()?void 0:0,u=c()?void 0:100,g=c()?"true":void 0,v=e.ariaLabel,k=l.fill,S=c()?void 0:{"--progress-pct":`${a()}%`};return m!==o.e&&t.className(r,o.e=m),i!==o.t&&t.setAttribute(r,"aria-valuenow",o.t=i),n!==o.a&&t.setAttribute(r,"aria-valuemin",o.a=n),u!==o.o&&t.setAttribute(r,"aria-valuemax",o.o=u),g!==o.i&&t.setAttribute(r,"aria-busy",o.i=g),v!==o.n&&t.setAttribute(r,"aria-label",o.n=v),k!==o.s&&t.className(d,o.s=k),o.h=t.style(d,S,o.h),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),r})()}function ne(e,a){return{...e,category:e.category??e.id.split(".")[0]??"general",build:a}}function oe(e,a,c){return{id:e,notification:a,resolve:r=>a.build(c,r)}}function ie(e){return document.createElement(e)}exports.Badge=H;exports.Progress=te;exports.createElement=ie;exports.defineNotification=ne;exports.defineNotificationScenario=oe;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { createSignal as M } from "solid-js";
|
|
2
|
+
import { o as A } from "./ownerWindow-9mx_LD47.js";
|
|
3
|
+
import { c as E } from "./errorHandler-BvPGW-Nm.js";
|
|
4
|
+
import { i as y } from "./keys-B2nlkpqc.js";
|
|
5
|
+
const W = 350, N = 0, b = 300, x = 6, D = 8;
|
|
6
|
+
function H(r) {
|
|
7
|
+
const { anchorRect: o, tooltipSize: e, viewport: n } = r, s = r.offset ?? x, i = r.margin ?? D, c = r.placement ?? "bottom", u = "bottom" in o && o.bottom !== void 0 ? o.bottom : o.top + o.height, h = "right" in o && o.right !== void 0 ? o.right : o.left + o.width;
|
|
8
|
+
let d = c, m = 0, f = 0;
|
|
9
|
+
if (c === "top" || c === "bottom") {
|
|
10
|
+
if (c === "top") {
|
|
11
|
+
const a = o.top - s - e.height;
|
|
12
|
+
a < i && u + s + e.height <= n.height - i ? (d = "bottom", m = u + s) : m = Math.max(
|
|
13
|
+
i,
|
|
14
|
+
Math.min(a, n.height - e.height - i)
|
|
15
|
+
);
|
|
16
|
+
} else {
|
|
17
|
+
const a = u + s;
|
|
18
|
+
a + e.height > n.height - i && o.top - s - e.height >= i ? (d = "top", m = o.top - s - e.height) : m = Math.max(
|
|
19
|
+
i,
|
|
20
|
+
Math.min(a, n.height - e.height - i)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
const w = o.left + (o.width - e.width) / 2, v = Math.max(
|
|
24
|
+
i,
|
|
25
|
+
n.width - e.width - i
|
|
26
|
+
);
|
|
27
|
+
f = Math.max(i, Math.min(w, v));
|
|
28
|
+
} else {
|
|
29
|
+
if (c === "left") {
|
|
30
|
+
const a = o.left - s - e.width;
|
|
31
|
+
a < i && h + s + e.width <= n.width - i ? (d = "right", f = h + s) : f = Math.max(
|
|
32
|
+
i,
|
|
33
|
+
Math.min(a, n.width - e.width - i)
|
|
34
|
+
);
|
|
35
|
+
} else {
|
|
36
|
+
const a = h + s;
|
|
37
|
+
a + e.width > n.width - i && o.left - s - e.width >= i ? (d = "left", f = o.left - s - e.width) : f = Math.max(
|
|
38
|
+
i,
|
|
39
|
+
Math.min(a, n.width - e.width - i)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
const w = o.top + (o.height - e.height) / 2, v = Math.max(
|
|
43
|
+
i,
|
|
44
|
+
n.height - e.height - i
|
|
45
|
+
);
|
|
46
|
+
m = Math.max(i, Math.min(w, v));
|
|
47
|
+
}
|
|
48
|
+
return { top: m, left: f, placement: d };
|
|
49
|
+
}
|
|
50
|
+
function S() {
|
|
51
|
+
const [r, o] = M(null);
|
|
52
|
+
let e = !1, n = null, s, i, c = null;
|
|
53
|
+
const u = () => {
|
|
54
|
+
s !== void 0 && (clearTimeout(s), s = void 0);
|
|
55
|
+
}, h = () => {
|
|
56
|
+
i !== void 0 && (clearTimeout(i), i = void 0);
|
|
57
|
+
}, d = () => {
|
|
58
|
+
if (c) {
|
|
59
|
+
try {
|
|
60
|
+
c();
|
|
61
|
+
} catch (t) {
|
|
62
|
+
E(
|
|
63
|
+
"Window context may already be destroyed or unloaded",
|
|
64
|
+
t
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
c = null;
|
|
68
|
+
}
|
|
69
|
+
}, m = (t) => {
|
|
70
|
+
d();
|
|
71
|
+
const l = () => {
|
|
72
|
+
w();
|
|
73
|
+
}, p = (T) => {
|
|
74
|
+
y(T, "Escape") && r() !== null && (T.stopPropagation(), T.stopImmediatePropagation(), w());
|
|
75
|
+
};
|
|
76
|
+
t.addEventListener("scroll", l, !0), t.addEventListener("pointerdown", l, !0), t.addEventListener("keydown", p, !0), t.addEventListener("blur", l), c = () => {
|
|
77
|
+
t.removeEventListener("scroll", l, !0), t.removeEventListener("pointerdown", l, !0), t.removeEventListener("keydown", p, !0), t.removeEventListener("blur", l);
|
|
78
|
+
};
|
|
79
|
+
}, f = (t) => {
|
|
80
|
+
u(), h(), n = null, e = !0, o(t);
|
|
81
|
+
const l = A(t.target);
|
|
82
|
+
if (l === null) {
|
|
83
|
+
d();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
m(l);
|
|
87
|
+
}, w = () => {
|
|
88
|
+
u(), h(), n = null, e = !1, o(null), d();
|
|
89
|
+
};
|
|
90
|
+
return {
|
|
91
|
+
activeTooltip: r,
|
|
92
|
+
isWarm: () => e,
|
|
93
|
+
showTooltip: (t) => {
|
|
94
|
+
if (!t.content || typeof t.content == "function" && !t.content())
|
|
95
|
+
return;
|
|
96
|
+
h();
|
|
97
|
+
const l = r();
|
|
98
|
+
if (!(l && (l.id === t.id || l.target === t.target)))
|
|
99
|
+
if (e || l !== null)
|
|
100
|
+
f(t);
|
|
101
|
+
else {
|
|
102
|
+
u(), n = t;
|
|
103
|
+
const p = t.delayMs ?? W;
|
|
104
|
+
p <= 0 ? f(t) : s = setTimeout(() => {
|
|
105
|
+
n === t && f(t);
|
|
106
|
+
}, p);
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
hideTooltip: (t) => {
|
|
110
|
+
if (t !== void 0) {
|
|
111
|
+
n && (typeof t == "string" ? n.id === t : n.target === t) && (u(), n = null);
|
|
112
|
+
const l = r();
|
|
113
|
+
if (l) {
|
|
114
|
+
if (!(typeof t == "string" ? l.id === t : l.target === t))
|
|
115
|
+
return;
|
|
116
|
+
} else
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
u(), n = null, o(null), d(), h(), i = setTimeout(() => {
|
|
120
|
+
e = !1, i = void 0;
|
|
121
|
+
}, b);
|
|
122
|
+
},
|
|
123
|
+
dismissAll: w,
|
|
124
|
+
recordTooltipShown: () => {
|
|
125
|
+
h(), e = !0;
|
|
126
|
+
},
|
|
127
|
+
recordTooltipHidden: () => {
|
|
128
|
+
h(), i = setTimeout(() => {
|
|
129
|
+
e = !1, i = void 0;
|
|
130
|
+
}, b);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const K = S(), L = "data-suppressed-title", g = /* @__PURE__ */ new WeakMap();
|
|
135
|
+
function U(r) {
|
|
136
|
+
const o = r.ownerDocument.defaultView;
|
|
137
|
+
if (o === null || g.has(r)) return;
|
|
138
|
+
const e = r.getAttribute("title");
|
|
139
|
+
if (e === null || e === "") return;
|
|
140
|
+
r.setAttribute(L, e), r.setAttribute("title", "");
|
|
141
|
+
let n = !1;
|
|
142
|
+
const s = new o.MutationObserver(() => {
|
|
143
|
+
n = !0;
|
|
144
|
+
});
|
|
145
|
+
s.observe(r, { attributes: !0, attributeFilter: ["title"] }), g.set(r, {
|
|
146
|
+
ownerWrote: () => n || s.takeRecords().length > 0,
|
|
147
|
+
stop: () => s.disconnect()
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function Y(r) {
|
|
151
|
+
const o = g.get(r);
|
|
152
|
+
if (o === void 0) return;
|
|
153
|
+
g.delete(r);
|
|
154
|
+
const e = o.ownerWrote();
|
|
155
|
+
o.stop();
|
|
156
|
+
const n = r.getAttribute(L);
|
|
157
|
+
r.removeAttribute(L), !e && n !== null && r.setAttribute("title", n);
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
W as C,
|
|
161
|
+
D,
|
|
162
|
+
N as W,
|
|
163
|
+
b as a,
|
|
164
|
+
x as b,
|
|
165
|
+
H as c,
|
|
166
|
+
S as d,
|
|
167
|
+
U as h,
|
|
168
|
+
Y as r,
|
|
169
|
+
K as t
|
|
170
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const W=require("solid-js"),_=require("./ownerWindow-BCmJFMbR.cjs"),y=require("./errorHandler-DoDAPpv2.cjs"),S=require("./keys-GMxY2wcl.cjs"),A=350,x=0,L=300,E=6,b=8;function F(r){const{anchorRect:o,tooltipSize:e,viewport:n}=r,s=r.offset??E,i=r.margin??b,a=r.placement??"bottom",f="bottom"in o&&o.bottom!==void 0?o.bottom:o.top+o.height,h="right"in o&&o.right!==void 0?o.right:o.left+o.width;let d=a,m=0,u=0;if(a==="top"||a==="bottom"){if(a==="top"){const c=o.top-s-e.height;c<i&&f+s+e.height<=n.height-i?(d="bottom",m=f+s):m=Math.max(i,Math.min(c,n.height-e.height-i))}else{const c=f+s;c+e.height>n.height-i&&o.top-s-e.height>=i?(d="top",m=o.top-s-e.height):m=Math.max(i,Math.min(c,n.height-e.height-i))}const w=o.left+(o.width-e.width)/2,v=Math.max(i,n.width-e.width-i);u=Math.max(i,Math.min(w,v))}else{if(a==="left"){const c=o.left-s-e.width;c<i&&h+s+e.width<=n.width-i?(d="right",u=h+s):u=Math.max(i,Math.min(c,n.width-e.width-i))}else{const c=h+s;c+e.width>n.width-i&&o.left-s-e.width>=i?(d="left",u=o.left-s-e.width):u=Math.max(i,Math.min(c,n.width-e.width-i))}const w=o.top+(o.height-e.height)/2,v=Math.max(i,n.height-e.height-i);m=Math.max(i,Math.min(w,v))}return{top:m,left:u,placement:d}}function D(){const[r,o]=W.createSignal(null);let e=!1,n=null,s,i,a=null;const f=()=>{s!==void 0&&(clearTimeout(s),s=void 0)},h=()=>{i!==void 0&&(clearTimeout(i),i=void 0)},d=()=>{if(a){try{a()}catch(t){y.bestEffortFailed("Window context may already be destroyed or unloaded",t)}a=null}},m=t=>{d();const l=()=>{w()},p=g=>{S.isKey(g,"Escape")&&r()!==null&&(g.stopPropagation(),g.stopImmediatePropagation(),w())};t.addEventListener("scroll",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("keydown",p,!0),t.addEventListener("blur",l),a=()=>{t.removeEventListener("scroll",l,!0),t.removeEventListener("pointerdown",l,!0),t.removeEventListener("keydown",p,!0),t.removeEventListener("blur",l)}},u=t=>{f(),h(),n=null,e=!0,o(t);const l=_.ownerWindow(t.target);if(l===null){d();return}m(l)},w=()=>{f(),h(),n=null,e=!1,o(null),d()};return{activeTooltip:r,isWarm:()=>e,showTooltip:t=>{if(!t.content||typeof t.content=="function"&&!t.content())return;h();const l=r();if(!(l&&(l.id===t.id||l.target===t.target)))if(e||l!==null)u(t);else{f(),n=t;const p=t.delayMs??A;p<=0?u(t):s=setTimeout(()=>{n===t&&u(t)},p)}},hideTooltip:t=>{if(t!==void 0){n&&(typeof t=="string"?n.id===t:n.target===t)&&(f(),n=null);const l=r();if(l){if(!(typeof t=="string"?l.id===t:l.target===t))return}else return}f(),n=null,o(null),d(),h(),i=setTimeout(()=>{e=!1,i=void 0},L)},dismissAll:w,recordTooltipShown:()=>{h(),e=!0},recordTooltipHidden:()=>{h(),i=setTimeout(()=>{e=!1,i=void 0},L)}}}const C=D(),M="data-suppressed-title",T=new WeakMap;function N(r){const o=r.ownerDocument.defaultView;if(o===null||T.has(r))return;const e=r.getAttribute("title");if(e===null||e==="")return;r.setAttribute(M,e),r.setAttribute("title","");let n=!1;const s=new o.MutationObserver(()=>{n=!0});s.observe(r,{attributes:!0,attributeFilter:["title"]}),T.set(r,{ownerWrote:()=>n||s.takeRecords().length>0,stop:()=>s.disconnect()})}function P(r){const o=T.get(r);if(o===void 0)return;T.delete(r);const e=o.ownerWrote();o.stop();const n=r.getAttribute(M);r.removeAttribute(M),!e&&n!==null&&r.setAttribute("title",n)}exports.COLD_DELAY_MS=A;exports.COOLDOWN_MS=L;exports.DEFAULT_MARGIN=b;exports.DEFAULT_OFFSET=E;exports.WARM_DELAY_MS=x;exports.computeAnchoredTooltipPosition=F;exports.createTooltipCoordinator=D;exports.holdNativeTitle=N;exports.releaseNativeTitle=P;exports.tooltipCoordinator=C;
|
|
@@ -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-u2ZsE5oP.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;
|
package/dist/navigation/index.js
CHANGED
|
@@ -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-CyRgzWlR.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,5 +1,6 @@
|
|
|
1
1
|
import { type Component } from 'solid-js';
|
|
2
2
|
import { type NotificationItem as NotificationItemModel } from './nativeEngine.cjs';
|
|
3
|
+
import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.cjs';
|
|
3
4
|
import { type VendorErrorMatch } from '../_internal/platform/vendorErrors/index.cjs';
|
|
4
5
|
import type { VendorErrorRef } from '../_internal/contract/vendorErrorRef.cjs';
|
|
5
6
|
import type { Announcer } from '../_internal/platform/a11y/announcerService.cjs';
|
|
@@ -62,6 +63,14 @@ interface Props {
|
|
|
62
63
|
* (`notification-card-<id>`) nor a live region, and is not read to a screen reader.
|
|
63
64
|
*/
|
|
64
65
|
readonly inCenter?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The corner the card is drawn at — the toast stack's position, or the center's. The expand chevron points the way
|
|
68
|
+
* the card opens: up at a bottom corner, where the stack grows up, down at a top corner, and it turns over once the
|
|
69
|
+
* card is open, as the reference flips its cards' expand and collapse icons with the notifications' position
|
|
70
|
+
* (`workbench/browser/parts/notifications/notificationsActions.ts:21-24`, `:29-35`). Unset — a card in a panel or
|
|
71
|
+
* a modal layer, at no corner — the card opens downward.
|
|
72
|
+
*/
|
|
73
|
+
readonly corner?: ToastPosition | undefined;
|
|
65
74
|
}
|
|
66
75
|
export declare const NotificationItem: Component<Props>;
|
|
67
76
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Component } from 'solid-js';
|
|
2
2
|
import { type NotificationItem as NotificationItemModel } from './nativeEngine.js';
|
|
3
|
+
import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.js';
|
|
3
4
|
import { type VendorErrorMatch } from '../_internal/platform/vendorErrors/index.js';
|
|
4
5
|
import type { VendorErrorRef } from '../_internal/contract/vendorErrorRef.js';
|
|
5
6
|
import type { Announcer } from '../_internal/platform/a11y/announcerService.js';
|
|
@@ -62,6 +63,14 @@ interface Props {
|
|
|
62
63
|
* (`notification-card-<id>`) nor a live region, and is not read to a screen reader.
|
|
63
64
|
*/
|
|
64
65
|
readonly inCenter?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The corner the card is drawn at — the toast stack's position, or the center's. The expand chevron points the way
|
|
68
|
+
* the card opens: up at a bottom corner, where the stack grows up, down at a top corner, and it turns over once the
|
|
69
|
+
* card is open, as the reference flips its cards' expand and collapse icons with the notifications' position
|
|
70
|
+
* (`workbench/browser/parts/notifications/notificationsActions.ts:21-24`, `:29-35`). Unset — a card in a panel or
|
|
71
|
+
* a modal layer, at no corner — the card opens downward.
|
|
72
|
+
*/
|
|
73
|
+
readonly corner?: ToastPosition | undefined;
|
|
65
74
|
}
|
|
66
75
|
export declare const NotificationItem: Component<Props>;
|
|
67
76
|
export {};
|
|
@@ -1,12 +1,30 @@
|
|
|
1
|
+
import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.cjs';
|
|
1
2
|
interface Props {
|
|
2
3
|
/** Collapse the center (the header "hide" chevron and Escape both call it). */
|
|
3
4
|
onHide: () => void;
|
|
5
|
+
/**
|
|
6
|
+
* The center's element, for a host that shows a center already on the screen again: the reference focuses the
|
|
7
|
+
* first notification then too (`notificationsCenter.ts:140-150`), which the host does with
|
|
8
|
+
* `focusFirstNotificationEntry`.
|
|
9
|
+
*/
|
|
10
|
+
ref?: ((element: HTMLElement) => void) | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The corner the host shows the center in — the reference places its center at the notifications' position. In a
|
|
13
|
+
* top corner the hide button points up, toward the edge the center hides to, as the reference turns its hide icon
|
|
14
|
+
* there (`notificationsCenter.ts:104-111`), and its running cards' expand chevrons point down, as the reference
|
|
15
|
+
* turns its cards' (`notificationsActions.ts:21-24`, `:29-35`). Unset, the center opens from the bottom, as from the
|
|
16
|
+
* status bar's bell.
|
|
17
|
+
*/
|
|
18
|
+
corner?: ToastPosition | undefined;
|
|
4
19
|
}
|
|
5
20
|
/**
|
|
6
21
|
* Status-bar notification center. Renders the persisted notification
|
|
7
22
|
* timeline as rounded cards inside a popover anchored to the status-bar bell.
|
|
8
23
|
* Intentionally free of the rail panel's filter/group/pin machinery — this is
|
|
9
24
|
* the lightweight surface; the full timeline panel lives in the rail/dock.
|
|
25
|
+
*
|
|
26
|
+
* Mounted, the center is shown: it focuses its first notification, and its
|
|
27
|
+
* entries are a list the arrow keys move along (`notificationEntryList`).
|
|
10
28
|
*/
|
|
11
29
|
export declare function NotificationsCenter(props: Props): import("solid-js").JSX.Element;
|
|
12
30
|
export {};
|
|
@@ -1,12 +1,30 @@
|
|
|
1
|
+
import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.js';
|
|
1
2
|
interface Props {
|
|
2
3
|
/** Collapse the center (the header "hide" chevron and Escape both call it). */
|
|
3
4
|
onHide: () => void;
|
|
5
|
+
/**
|
|
6
|
+
* The center's element, for a host that shows a center already on the screen again: the reference focuses the
|
|
7
|
+
* first notification then too (`notificationsCenter.ts:140-150`), which the host does with
|
|
8
|
+
* `focusFirstNotificationEntry`.
|
|
9
|
+
*/
|
|
10
|
+
ref?: ((element: HTMLElement) => void) | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The corner the host shows the center in — the reference places its center at the notifications' position. In a
|
|
13
|
+
* top corner the hide button points up, toward the edge the center hides to, as the reference turns its hide icon
|
|
14
|
+
* there (`notificationsCenter.ts:104-111`), and its running cards' expand chevrons point down, as the reference
|
|
15
|
+
* turns its cards' (`notificationsActions.ts:21-24`, `:29-35`). Unset, the center opens from the bottom, as from the
|
|
16
|
+
* status bar's bell.
|
|
17
|
+
*/
|
|
18
|
+
corner?: ToastPosition | undefined;
|
|
4
19
|
}
|
|
5
20
|
/**
|
|
6
21
|
* Status-bar notification center. Renders the persisted notification
|
|
7
22
|
* timeline as rounded cards inside a popover anchored to the status-bar bell.
|
|
8
23
|
* Intentionally free of the rail panel's filter/group/pin machinery — this is
|
|
9
24
|
* the lightweight surface; the full timeline panel lives in the rail/dock.
|
|
25
|
+
*
|
|
26
|
+
* Mounted, the center is shown: it focuses its first notification, and its
|
|
27
|
+
* entries are a list the arrow keys move along (`notificationEntryList`).
|
|
10
28
|
*/
|
|
11
29
|
export declare function NotificationsCenter(props: Props): import("solid-js").JSX.Element;
|
|
12
30
|
export {};
|
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { type Accessor, type JSX } from 'solid-js';
|
|
14
14
|
import { type NotificationItem as NotificationItemModel } from './nativeEngine.cjs';
|
|
15
|
+
import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.cjs';
|
|
15
16
|
/** The realm's running progress cards, oldest first. Call it in a component's setup. */
|
|
16
17
|
export declare function useRunningProgressCards(): Accessor<readonly NotificationItemModel[]>;
|
|
17
18
|
/** Draws the running cards as a center's copies (`inCenter`), with the verbs of the realm's stack. */
|
|
18
19
|
export declare function RunningProgressCards(props: {
|
|
19
20
|
readonly items: readonly NotificationItemModel[];
|
|
21
|
+
/** The corner the center is drawn at, which turns the cards' expand chevron; a panel draws them at none. */
|
|
22
|
+
readonly corner?: ToastPosition | undefined;
|
|
20
23
|
}): JSX.Element;
|
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { type Accessor, type JSX } from 'solid-js';
|
|
14
14
|
import { type NotificationItem as NotificationItemModel } from './nativeEngine.js';
|
|
15
|
+
import type { ToastPosition } from '../_internal/platform/settings/settingsTypes.js';
|
|
15
16
|
/** The realm's running progress cards, oldest first. Call it in a component's setup. */
|
|
16
17
|
export declare function useRunningProgressCards(): Accessor<readonly NotificationItemModel[]>;
|
|
17
18
|
/** Draws the running cards as a center's copies (`inCenter`), with the verbs of the realm's stack. */
|
|
18
19
|
export declare function RunningProgressCards(props: {
|
|
19
20
|
readonly items: readonly NotificationItemModel[];
|
|
21
|
+
/** The corner the center is drawn at, which turns the cards' expand chevron; a panel draws them at none. */
|
|
22
|
+
readonly corner?: ToastPosition | undefined;
|
|
20
23
|
}): JSX.Element;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* service, passed in as {@link NotificationSinks}.
|
|
16
16
|
*/
|
|
17
17
|
import type { OsNotifyOptions } from '../_internal/app/platform/electronBridge.cjs';
|
|
18
|
-
import { type FilterDecision } from './toastFilterPolicy.cjs';
|
|
18
|
+
import { type FilterDecision, type NotificationFilter } from './toastFilterPolicy.cjs';
|
|
19
19
|
import type { NotificationAudio } from './notificationAudio.cjs';
|
|
20
20
|
import type { WebhookDelivery } from './webhookDelivery.cjs';
|
|
21
21
|
import type { EmailDigest } from './emailDigest.cjs';
|
|
@@ -34,31 +34,50 @@ export interface NotificationSinks {
|
|
|
34
34
|
/** The OS notification centre (fire-and-forget; the in-app toast is shown regardless). */
|
|
35
35
|
readonly osNotify: (options: OsNotifyOptions) => void;
|
|
36
36
|
}
|
|
37
|
+
/** The keys an issue names its notification by — the user's choices on its cards are kept on them. */
|
|
38
|
+
export interface IssueKeys {
|
|
39
|
+
/** "Don't show again" (`ToastCommonOptions.dontShowAgainKey`). */
|
|
40
|
+
readonly dontShowAgainKey: string | undefined;
|
|
41
|
+
/** The issuer's key for "remind me later" (`ToastCommonOptions.remindKey`). */
|
|
42
|
+
readonly remindKey: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/** One issue as its filter decision reads it. */
|
|
45
|
+
export interface IssueDecisionInput extends IssueKeys {
|
|
46
|
+
readonly source: NotificationSourceId;
|
|
47
|
+
readonly title: string;
|
|
48
|
+
readonly severity: NotificationSeverity;
|
|
49
|
+
readonly priority: NotificationPriority;
|
|
50
|
+
/** The caller's `recordTimeline`; `false` always wins. */
|
|
51
|
+
readonly recordTimeline: boolean | undefined;
|
|
52
|
+
/** The realm's run-time filter at the issue (`Notifications.getFilter`). */
|
|
53
|
+
readonly filter: NotificationFilter;
|
|
54
|
+
}
|
|
37
55
|
/**
|
|
38
56
|
* The filter decision with its gates computed: the pure policy takes the suppression answers as
|
|
39
|
-
* precomputed booleans, and they are asked here, in one place.
|
|
57
|
+
* precomputed booleans, and they are asked here, in one place. The run-time filter decides through the
|
|
58
|
+
* priority ({@link filteredPriority}).
|
|
40
59
|
*/
|
|
41
|
-
export declare function decideFilter(
|
|
60
|
+
export declare function decideFilter(issue: IssueDecisionInput): FilterDecision;
|
|
42
61
|
/**
|
|
43
|
-
* Whether the user turned a notification of
|
|
44
|
-
* Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's
|
|
45
|
-
* rejections): a progress gets no card, not even one in the notification center.
|
|
62
|
+
* Whether the user turned a notification of these keys and this text down on a card — "don't show again", "remind me
|
|
63
|
+
* later". Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's
|
|
64
|
+
* explicit rejections): a progress gets no card, not even one in the notification center.
|
|
46
65
|
*/
|
|
47
|
-
export declare function turnedDownOnCard(source: string, title: string,
|
|
66
|
+
export declare function turnedDownOnCard(source: string, title: string, keys: IssueKeys): boolean;
|
|
48
67
|
/**
|
|
49
68
|
* Whether the user turned a shown card's notification down — the keys its gear menu writes (`NotificationItem`):
|
|
50
|
-
* "don't show again" on its `neverShowAgainKey`, "remind me later" on
|
|
51
|
-
*
|
|
52
|
-
* the user closes under such a choice instead of sending it to the notification center
|
|
69
|
+
* "don't show again" on its `neverShowAgainKey`, "remind me later" on the card's remind key ({@link cardRemindKey}).
|
|
70
|
+
* The engine ends a running card the user closes under such a choice instead of sending it to the notification center
|
|
53
71
|
* (`NativeNotificationEngineDependencies.isTurnedDown`).
|
|
54
72
|
*/
|
|
55
73
|
export declare function turnedDownCard(item: Pick<NotificationInput, 'neverShowAgainKey' | 'remindKey' | 'source' | 'title'>): boolean;
|
|
56
74
|
/**
|
|
57
|
-
* Whether the notification settings now keep a card of this source and
|
|
58
|
-
* without the per-key choices
|
|
59
|
-
* running progress too ({@link turnedDownCard}) —, and an issue they turn
|
|
75
|
+
* Whether the notification settings — and the realm's run-time filter — now keep a card of this source, severity and
|
|
76
|
+
* priority off the screen: an issue's decision without the per-key choices. "Don't show again" and "remind me later"
|
|
77
|
+
* are made on the card, which they close — a running progress too ({@link turnedDownCard}) —, and an issue they turn
|
|
78
|
+
* down is {@link turnedDownOnCard}.
|
|
60
79
|
*/
|
|
61
|
-
export declare function silencedBySettings(source: string, priority: NotificationPriority): boolean;
|
|
80
|
+
export declare function silencedBySettings(source: string, severity: NotificationSeverity, priority: NotificationPriority, filter: NotificationFilter): boolean;
|
|
62
81
|
/**
|
|
63
82
|
* A card's buttons as the engine takes them — `primary` first, then `others` in declaration order. A click is counted
|
|
64
83
|
* for the source; unless the action keeps the card (`expireOnAction: false`) the card then closes, as the program's
|
|
@@ -68,9 +87,9 @@ export declare function nativeActionsOf(sinks: NotificationSinks, primary: Toast
|
|
|
68
87
|
/**
|
|
69
88
|
* A card's presentation from a verb's options — one mapping for the message verbs and the progress, so a progress no
|
|
70
89
|
* longer drops what its catalog payload carries and the catalog preview paints: the body, markdown, icon,
|
|
71
|
-
* announcement, page, duration
|
|
90
|
+
* announcement, page, duration, "don't show again" key and the issuer's remind key.
|
|
72
91
|
*/
|
|
73
|
-
export declare function cardPresentation(options: ToastCommonOptions): Pick<NotificationInput, 'body' | 'markdown' | 'durationMs' | 'neverShowAgainKey' | 'icon' | 'announce' | 'defaultRoute'>;
|
|
92
|
+
export declare function cardPresentation(options: ToastCommonOptions): Pick<NotificationInput, 'body' | 'markdown' | 'durationMs' | 'neverShowAgainKey' | 'remindKey' | 'icon' | 'announce' | 'defaultRoute'>;
|
|
74
93
|
export interface FireOptions {
|
|
75
94
|
severity: NotificationSeverity;
|
|
76
95
|
title: string;
|