@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
|
@@ -5,35 +5,7 @@ import { o as C } from "./ownerWindow-9mx_LD47.js";
|
|
|
5
5
|
import { u as $ } from "./overlayStack-Bj6Lg1Rm.js";
|
|
6
6
|
import { O as z } from "./OverlayScrollArea-221dfKyz.js";
|
|
7
7
|
import { i as G } from "./keys-B2nlkpqc.js";
|
|
8
|
-
var U =
|
|
9
|
-
const gt = /* @__PURE__ */ D({
|
|
10
|
-
name: "VpChevronDown",
|
|
11
|
-
a: {
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
"stroke-linecap": "round",
|
|
15
|
-
"stroke-linejoin": "round",
|
|
16
|
-
"stroke-width": "2",
|
|
17
|
-
viewBox: "0 0 24 24"
|
|
18
|
-
},
|
|
19
|
-
c: () => I(U)
|
|
20
|
-
});
|
|
21
|
-
function q(t, o) {
|
|
22
|
-
let r = !1, e = null;
|
|
23
|
-
const c = () => {
|
|
24
|
-
if (r) return;
|
|
25
|
-
const n = C(t);
|
|
26
|
-
if (n === null || !t.isConnected) return;
|
|
27
|
-
const g = n.requestAnimationFrame(() => {
|
|
28
|
-
r || o();
|
|
29
|
-
});
|
|
30
|
-
e = () => n.cancelAnimationFrame(g);
|
|
31
|
-
};
|
|
32
|
-
return t.isConnected ? c() : queueMicrotask(c), () => {
|
|
33
|
-
r = !0, e == null || e();
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
var K = /* @__PURE__ */ ((t) => (t[t.LEFT = 0] = "LEFT", t[t.RIGHT = 1] = "RIGHT", t))(K || {}), S = /* @__PURE__ */ ((t) => (t[t.BELOW = 0] = "BELOW", t[t.ABOVE = 1] = "ABOVE", t))(S || {}), j = /* @__PURE__ */ ((t) => (t[t.VERTICAL = 0] = "VERTICAL", t[t.HORIZONTAL = 1] = "HORIZONTAL", t))(j || {});
|
|
8
|
+
var U = /* @__PURE__ */ ((t) => (t[t.LEFT = 0] = "LEFT", t[t.RIGHT = 1] = "RIGHT", t))(U || {}), q = /* @__PURE__ */ ((t) => (t[t.BELOW = 0] = "BELOW", t[t.ABOVE = 1] = "ABOVE", t))(q || {}), K = /* @__PURE__ */ ((t) => (t[t.VERTICAL = 0] = "VERTICAL", t[t.HORIZONTAL = 1] = "HORIZONTAL", t))(K || {});
|
|
37
9
|
function B(t, o) {
|
|
38
10
|
const r = Math.max(t.start, o.start);
|
|
39
11
|
return Math.min(t.end, o.end) - r > 0;
|
|
@@ -48,7 +20,7 @@ function W(t, o, r) {
|
|
|
48
20
|
result: "overlap"
|
|
49
21
|
} : o <= c ? { position: c - o, result: "ok" } : o <= t - e && c < o / 2 ? { position: e, result: "flipped" } : { position: 0, result: "overlap" };
|
|
50
22
|
}
|
|
51
|
-
function
|
|
23
|
+
function gt(t, o, r, e) {
|
|
52
24
|
let c = (e == null ? void 0 : e.anchorAlignment) ?? 0, n = (e == null ? void 0 : e.anchorPosition) ?? 0;
|
|
53
25
|
const g = (e == null ? void 0 : e.anchorAxisAlignment) ?? 0, w = (e == null ? void 0 : e.gap) ?? 0, u = (e == null ? void 0 : e.margin) ?? 0, l = u > 0 ? {
|
|
54
26
|
top: t.top + u,
|
|
@@ -121,15 +93,15 @@ function ut(t, o, r, e) {
|
|
|
121
93
|
const m = t.width - (i + o.width), h = t.height - (s + o.height);
|
|
122
94
|
return { top: s, left: i, bottom: h, right: m, anchorAlignment: c, anchorPosition: n };
|
|
123
95
|
}
|
|
124
|
-
const b = 8,
|
|
125
|
-
function
|
|
96
|
+
const b = 8, ut = 4, S = 8, j = 4;
|
|
97
|
+
function Y(t, o, r, e = 8) {
|
|
126
98
|
return t + o > r - e ? Math.max(e, r - e - o) : t;
|
|
127
99
|
}
|
|
128
|
-
function
|
|
100
|
+
function pt(t) {
|
|
129
101
|
const o = t.margin ?? 8, r = t.gap ?? 4, e = t.anchorRect, c = "bottom" in e && typeof e.bottom == "number" ? e.bottom : e.top + e.height, n = t.viewportHeight - c - o, g = e.top - o, w = t.desiredHeight ?? t.measuredHeight ?? 240, u = n < Math.min(w, 200) && g > n, l = t.minMaxHeight ?? 120, s = Math.max(
|
|
130
102
|
l,
|
|
131
103
|
u ? g - r : n - r
|
|
132
|
-
), i = u ? Math.max(o, e.top - r - Math.min(w, s)) : c + r, m = t.measuredWidth ?? 0, h = Math.max(e.width, m), f =
|
|
104
|
+
), i = u ? Math.max(o, e.top - r - Math.min(w, s)) : c + r, m = t.measuredWidth ?? 0, h = Math.max(e.width, m), f = Y(
|
|
133
105
|
e.left,
|
|
134
106
|
h,
|
|
135
107
|
t.viewportWidth,
|
|
@@ -147,17 +119,17 @@ function wt(t) {
|
|
|
147
119
|
function L(t, o, r) {
|
|
148
120
|
return Math.max(o, Math.min(t, r));
|
|
149
121
|
}
|
|
150
|
-
function
|
|
122
|
+
function Z(t) {
|
|
151
123
|
return t.endsWith("-end");
|
|
152
124
|
}
|
|
153
|
-
function
|
|
125
|
+
function Q(t) {
|
|
154
126
|
const { placement: o, anchor: r, panelHeight: e, viewportHeight: c, gap: n } = t;
|
|
155
127
|
if (o.startsWith("top")) return "top";
|
|
156
128
|
if (o.startsWith("bottom")) return "bottom";
|
|
157
129
|
const g = c - r.bottom - b, w = r.top - b;
|
|
158
130
|
return (e > 0 ? e : 200) + n <= g || g >= w ? "bottom" : "top";
|
|
159
131
|
}
|
|
160
|
-
function
|
|
132
|
+
function X(t) {
|
|
161
133
|
const {
|
|
162
134
|
anchor: o,
|
|
163
135
|
panelWidth: r,
|
|
@@ -165,11 +137,11 @@ function tt(t) {
|
|
|
165
137
|
viewportWidth: c,
|
|
166
138
|
viewportHeight: n,
|
|
167
139
|
gap: g
|
|
168
|
-
} = t, w =
|
|
140
|
+
} = t, w = Z(t.placement) ? o.right - r : o.left, u = L(
|
|
169
141
|
w,
|
|
170
142
|
b,
|
|
171
143
|
c - r - b
|
|
172
|
-
), l =
|
|
144
|
+
), l = Q(t);
|
|
173
145
|
if (l === "top") {
|
|
174
146
|
const f = Math.max(
|
|
175
147
|
0,
|
|
@@ -197,8 +169,8 @@ function tt(t) {
|
|
|
197
169
|
);
|
|
198
170
|
return { left: u, top: i, anchorWidth: o.width, side: l, maxHeight: h };
|
|
199
171
|
}
|
|
200
|
-
function
|
|
201
|
-
const o = t.margin ??
|
|
172
|
+
function wt(t) {
|
|
173
|
+
const o = t.margin ?? S, r = t.gap ?? j;
|
|
202
174
|
let e;
|
|
203
175
|
if ("x" in t.anchor) {
|
|
204
176
|
const a = "width" in t.anchor && typeof t.anchor.width == "number" ? t.anchor.width : 0, d = "height" in t.anchor && typeof t.anchor.height == "number" ? t.anchor.height : 0;
|
|
@@ -251,6 +223,34 @@ function vt(t) {
|
|
|
251
223
|
alignment: m
|
|
252
224
|
};
|
|
253
225
|
}
|
|
226
|
+
var J = '<path d="m7 9.5 5 5 5-5"></path>';
|
|
227
|
+
const vt = /* @__PURE__ */ D({
|
|
228
|
+
name: "VpChevronDown",
|
|
229
|
+
a: {
|
|
230
|
+
fill: "none",
|
|
231
|
+
stroke: "currentColor",
|
|
232
|
+
"stroke-linecap": "round",
|
|
233
|
+
"stroke-linejoin": "round",
|
|
234
|
+
"stroke-width": "2",
|
|
235
|
+
viewBox: "0 0 24 24"
|
|
236
|
+
},
|
|
237
|
+
c: () => I(J)
|
|
238
|
+
});
|
|
239
|
+
function tt(t, o) {
|
|
240
|
+
let r = !1, e = null;
|
|
241
|
+
const c = () => {
|
|
242
|
+
if (r) return;
|
|
243
|
+
const n = C(t);
|
|
244
|
+
if (n === null || !t.isConnected) return;
|
|
245
|
+
const g = n.requestAnimationFrame(() => {
|
|
246
|
+
r || o();
|
|
247
|
+
});
|
|
248
|
+
e = () => n.cancelAnimationFrame(g);
|
|
249
|
+
};
|
|
250
|
+
return t.isConnected ? c() : queueMicrotask(c), () => {
|
|
251
|
+
r = !0, e == null || e();
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
254
|
const et = [
|
|
255
255
|
'[role="menuitem"]',
|
|
256
256
|
'[role="menuitemcheckbox"]',
|
|
@@ -305,7 +305,7 @@ function xt(t) {
|
|
|
305
305
|
top: d,
|
|
306
306
|
anchorWidth: y,
|
|
307
307
|
maxHeight: E
|
|
308
|
-
} =
|
|
308
|
+
} = X({
|
|
309
309
|
anchor: {
|
|
310
310
|
left: m.left,
|
|
311
311
|
right: m.right,
|
|
@@ -335,7 +335,7 @@ function xt(t) {
|
|
|
335
335
|
const s = w(), i = t.anchor();
|
|
336
336
|
if (s === null || !i) return;
|
|
337
337
|
l();
|
|
338
|
-
const m =
|
|
338
|
+
const m = tt(i, () => {
|
|
339
339
|
l();
|
|
340
340
|
const p = t.role;
|
|
341
341
|
if (p === "menu" || p === "listbox") {
|
|
@@ -416,24 +416,24 @@ function xt(t) {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
export {
|
|
419
|
-
|
|
419
|
+
U as A,
|
|
420
420
|
ot as L,
|
|
421
421
|
et as M,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
422
|
+
j as O,
|
|
423
|
+
ut as P,
|
|
424
|
+
vt as V,
|
|
425
|
+
K as a,
|
|
426
|
+
q as b,
|
|
427
|
+
S as c,
|
|
428
428
|
b as d,
|
|
429
429
|
xt as e,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
430
|
+
Y as f,
|
|
431
|
+
wt as g,
|
|
432
|
+
pt as h,
|
|
433
|
+
X as i,
|
|
434
434
|
bt as j,
|
|
435
435
|
yt as k,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
gt as l,
|
|
437
|
+
Q as m,
|
|
438
|
+
tt as r
|
|
439
439
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("solid-js/web"),a=require("solid-js"),H=require("./useFloatingDropdown-D5UayoN6.cjs"),X=require("./Button-0AXWRw9Q.cjs"),D=require("./OverlayScrollArea-D4e9D9Nd.cjs"),P=require("./Input-
|
|
1
|
+
"use strict";const e=require("solid-js/web"),a=require("solid-js"),H=require("./useFloatingDropdown-D5UayoN6.cjs"),X=require("./Button-0AXWRw9Q.cjs"),D=require("./OverlayScrollArea-D4e9D9Nd.cjs"),P=require("./Input-XF9Jr0G9.cjs"),_=require("./i18n-D3s-a2a0.cjs"),q=require("./VpSearch-BqIXmlaU.cjs"),F=["ArrowDown","ArrowUp","Home","End"];function d(t,s,n){const l=t.length;if(l===0)return-1;let c=s;for(let p=0;p<l;p++){c=(c+n+l)%l;const g=t[c];if(g&&!g.disabled)return c}return-1}function w(t){return d(t,-1,1)}function I(t){return d(t,t.length,-1)}function W(t,s,n){switch(n){case"ArrowDown":return d(t,s,1);case"ArrowUp":return d(t,s<0?t.length:s,-1);case"Home":return w(t);case"End":return I(t);default:return s}}function y(t,s){var n;return s>=0&&s<t.length&&!((n=t[s])!=null&&n.disabled)?s:w(t)}const B="vk_trigger_jUKey",R="vk_triggerXs_gxbr6",z="vk_triggerSm_SrndI",E="vk_triggerMd_Y3r0t",U="vk_triggerOpen_Jhc-r",Z="vk_triggerText_-aF80 vk_truncateFill_Y6vuR",N="vk_triggerPlaceholder_i0hbO",G="vk_arrow_ubPF-",K="vk_arrowOpen_kaQ-f",V="vk_dropdown_ufXlM vk_surface_3ZOnl",Y="vk_dropdownXs_CpTit",j="vk_dropdownSm_ibtZ7",J="vk_dropdownMd_-ucUz",Q="vk_searchWrapper_Q696y",ee="vk_searchIcon_gW293",te="vk_searchInput_umh1v",re="vk_optionListWrap_4LZk4",se="vk_optionList_P-PU6 vk_viewport_B94pk",ae="vk_option_STkwX vk_item_neWq-",ne="vk_label_reZOk vk_label_zTITb",oe="vk_optionHighlighted_anwou vk_itemActive_vyOXZ",ce="vk_optionActive_iDicG vk_itemSelected_f4xDB",ie="vk_checkmark_dgHPw",le="vk_empty_4UrLq vk_empty_oOHu3",r={trigger:B,triggerXs:R,triggerSm:z,triggerMd:E,triggerOpen:U,triggerText:Z,triggerPlaceholder:N,arrow:G,arrowOpen:K,dropdown:V,dropdownXs:Y,dropdownSm:j,dropdownMd:J,searchWrapper:Q,searchIcon:ee,searchInput:te,optionListWrap:re,optionList:se,option:ae,label:ne,optionHighlighted:oe,optionActive:ce,checkmark:ie,empty:le};var ue=['<button type="button"',' class="','"',' aria-haspopup="listbox"','><span class="','">','</span><span class="','" aria-hidden="true"><svg viewBox="0 0 10 6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M1 1l4 4 4-4"></path></svg></span></button>'],de=["<div",">",'<input type="text"',' role="combobox"',"></div>"],pe=["<div",' class="','" style="','" role="listbox"',">","<div",">","</div></div>"],ge=["<div",">","</div>"],he=["<svg",' viewBox="0 0 12 9" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 4.5l3.5 3.5L11 1"></path></svg>'],be=['<button type="button"',' role="option"',"",' class="','"><span',">","</span>","</button>"];const ve={xs:r.triggerXs,sm:r.triggerSm,md:r.triggerMd},_e={xs:r.dropdownXs,sm:r.dropdownSm,md:r.dropdownMd};function we(t){return typeof t=="string"?{value:t,label:t,disabled:!1}:{value:t.value,label:t.label,disabled:t.disabled??!1}}function me(t){const s=P.useFormFieldAria(),[n,l]=a.createSignal(!1),[c,p]=a.createSignal(""),[g,fe]=a.createSignal(-1);let m,O;const h=`searchable-select-${a.createUniqueId()}`,b=o=>`${h}-option-${o}`,[L,ke]=a.createSignal({top:"0px",left:"0px",width:"0px","max-height":"14rem"}),f=a.createMemo(()=>t.options.map(we)),v=a.createMemo(()=>{const o=c().trim().toLowerCase(),i=f();return o?i.filter(x=>x.label.toLowerCase().includes(o)||x.value.toLowerCase().includes(o)):i}),$=a.createMemo(()=>{const o=f().find(i=>i.value===t.value);return o===void 0?t.value:o.label}),k=()=>t.searchable!==!1,S=()=>t.size??"md",C=()=>{},M=()=>{l(!1),p("")},u=a.createMemo(()=>n()?y(v(),g()):-1);H.useFloatingDropdown({open:n,onClose:M,getTrigger:()=>m,getDropdown:()=>O,onReposition:C,restoreFocusOnClickOutside:!0});const A=()=>$(),T=()=>t.placeholder??_.t("Select...");return[e.ssr(ue,e.ssrAttribute("id",e.escape(t.id,!0),!1),`${e.escape(r.trigger,!0)} ${e.escape(ve[S()]??"",!0)} ${n()?e.escape(r.triggerOpen,!0):""} ${e.escape(t.class??"",!0)}`,e.ssrAttribute("disabled",t.disabled,!0)+e.ssrAttribute("aria-label",e.escape(t.ariaLabel,!0),!1)+e.ssrAttribute("aria-labelledby",t.ariaLabel===void 0?e.escape(t.ariaLabelledBy??(s==null?void 0:s.labelId),!0):e.escape(void 0,!0),!1)+e.ssrAttribute("aria-describedby",e.escape(s==null?void 0:s.describedBy(),!0),!1),e.ssrAttribute("aria-expanded",e.escape(n(),!0),!1),`${e.escape(r.triggerText,!0)} ${A()?"":e.escape(r.triggerPlaceholder,!0)}`,e.escape(A()||T()),`${e.escape(r.arrow,!0)} ${n()?e.escape(r.arrowOpen,!0):""}`),e.createComponent(a.Show,{get when(){return n()},get children(){return e.createComponent(e.Portal,{get mount(){return m.ownerDocument.body},get children(){return e.ssr(pe,e.ssrAttribute("id",e.escape(h,!0),!1),`${e.escape(r.dropdown,!0)} ${e.escape(_e[S()]??"",!0)}`,e.ssrStyle(L()),e.ssrAttribute("aria-label",e.escape(t.ariaLabel,!0),!1)+e.ssrAttribute("aria-labelledby",t.ariaLabel===void 0?e.escape(s==null?void 0:s.labelId,!0):e.escape(void 0,!0),!1)+e.ssrAttribute("aria-activedescendant",u()>=0?e.escape(b(u()),!0):e.escape(void 0,!0),!1)+e.ssrAttribute("tabindex",k()?e.escape(void 0,!0):-1,!1),e.escape(e.createComponent(a.Show,{get when(){return k()},get children(){return e.ssr(de,e.ssrAttribute("class",e.escape(r.searchWrapper,!0),!1),e.escape(e.createComponent(q.VpSearch,{get class(){return r.searchIcon},"aria-hidden":"true"})),e.ssrAttribute("class",e.escape(r.searchInput,!0),!1),e.ssrAttribute("aria-controls",e.escape(h,!0),!1)+e.ssrAttribute("aria-expanded",e.escape(n(),!0),!1)+e.ssrAttribute("aria-activedescendant",u()>=0?e.escape(b(u()),!0):e.escape(void 0,!0),!1)+e.ssrAttribute("placeholder",e.escape(t.searchPlaceholder??_.t("Search..."),!0),!1)+e.ssrAttribute("value",e.escape(c(),!0),!1))}})),e.ssrAttribute("class",e.escape(r.optionListWrap,!0),!1),e.escape(e.createComponent(D.OverlayScrollArea,{get viewportClass(){return r.optionList},get children(){return e.createComponent(a.Show,{get when(){return v().length>0},get fallback(){return e.ssr(ge,e.ssrAttribute("class",e.escape(r.empty,!0),!1),e.escape(e.createComponent(a.Show,{get when(){return t.loading},get fallback(){return t.emptyMessage??_.t("No results found")},get children(){return e.createComponent(X.Spinner,{size:"xs"})}})))},get children(){return e.createComponent(a.For,{get each(){return v()},children:(o,i)=>e.ssr(be,e.ssrAttribute("id",e.escape(b(i()),!0),!1),e.ssrAttribute("aria-selected",e.escape(o.value,!0)===e.escape(t.value,!0),!1),e.ssrAttribute("disabled",o.disabled,!0),`${e.escape(r.option,!0)} ${o.value===t.value?e.escape(r.optionActive,!0):""} ${i()===u()?e.escape(r.optionHighlighted,!0):""}`,e.ssrAttribute("class",e.escape(r.label,!0),!1),e.escape(o.label),e.escape(e.createComponent(a.Show,{get when(){return o.value===t.value},get children(){return e.ssr(he,e.ssrAttribute("class",e.escape(r.checkmark,!0),!1))}})))})}})}})))}})}})]}exports.LISTBOX_NAVIGATION_KEYS=F;exports.SearchableSelect=me;exports.clampHighlightToOptions=y;exports.firstSelectableIndex=w;exports.lastSelectableIndex=I;exports.nextSelectableIndex=d;exports.resolveHighlightForKey=W;
|
|
@@ -3,7 +3,7 @@ import { createSignal as _, createUniqueId as F, createMemo as m, Show as h, For
|
|
|
3
3
|
import { u as z } from "./useFloatingDropdown-2Tz_es0W.js";
|
|
4
4
|
import { S as B } from "./Button-3yNrnn4P.js";
|
|
5
5
|
import { O as U } from "./OverlayScrollArea-221dfKyz.js";
|
|
6
|
-
import { u as Z } from "./Input-
|
|
6
|
+
import { u as Z } from "./Input-AdF-i0O8.js";
|
|
7
7
|
import { t as S } from "./i18n-CBlUGOyu.js";
|
|
8
8
|
import { V as E } from "./VpSearch-CzVlR0ue.js";
|
|
9
9
|
const De = [
|