@vokril/ui-solid 0.4.1 → 0.7.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 +54 -0
- package/README.md +1 -1
- package/dist/{AttributeGrid-BUyv-hUX.js → AttributeGrid-CX_GJHgz.js} +2 -2
- package/dist/{AttributeGrid-Tk8KJx8e.cjs → AttributeGrid-X7fHuuIb.cjs} +1 -1
- package/dist/CommandPalette-C8JJMY79.cjs +2 -0
- package/dist/CommandPalette-Ds3xf2z7.js +3921 -0
- package/dist/{DateRangePicker-jnZfDhQA.js → DateRangePicker-BSb6F_gs.js} +3 -3
- package/dist/{DateRangePicker-CHrwr34H.cjs → DateRangePicker-DUrJJjO7.cjs} +1 -1
- package/dist/{GuidedTour-Be7OITLu.js → GuidedTour-C0Q_EEvI.js} +495 -491
- package/dist/{GuidedTour-CTHXtWoK.cjs → GuidedTour-CkGOxh2p.cjs} +10 -10
- package/dist/{IconPicker-C_gAGvo0.cjs → IconPicker-D2dZK0n3.cjs} +1 -1
- package/dist/{IconPicker-BxofGXCS.js → IconPicker-Fd2IE2Dm.js} +2 -2
- package/dist/Input-BEnk4FCF.cjs +1 -0
- package/dist/Input-PZ5wRvPx.js +227 -0
- package/dist/{Modal-BmtEt5Yo.js → Modal-CsiV55WW.js} +1 -1
- package/dist/{Modal-BSSY6C3D.cjs → Modal-DpDHzCWT.cjs} +1 -1
- package/dist/{Popover-Cg8LZCYo.js → Popover-C3dFuObM.js} +49 -45
- package/dist/Popover-Dbi7L860.cjs +1 -0
- package/dist/{SearchableSelect-ByCRBEZI.js → SearchableSelect-C6KL7e42.js} +2 -2
- package/dist/{SearchableSelect-9pgcO5JS.cjs → SearchableSelect-zT8XNpmt.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-k_Ol9XDW.js → StatusBarNotificationBell-BMmjdBvj.js} +5 -5
- package/dist/{StatusBarNotificationBell-jmfcQw6Y.cjs → StatusBarNotificationBell-C8nQZh4i.cjs} +1 -1
- package/dist/{Stepper-CrTxBpDL.js → Stepper-B26aF0bA.js} +1 -1
- package/dist/{Stepper-C3dnwwiV.cjs → Stepper-Bl8P6HJx.cjs} +1 -1
- package/dist/Textarea-BUxibzkR.js +42 -0
- package/dist/Textarea-BunKEY68.cjs +1 -0
- package/dist/{ToggleButton-CFvMUndy.cjs → ToggleButton-DuKoI5PE.cjs} +1 -1
- package/dist/{ToggleButton-DBWFnm_R.js → ToggleButton-DwvUV2en.js} +6 -6
- package/dist/base.css +0 -1
- package/dist/{createResizableSidebar-uf_OJsjO.js → createResizableSidebar-B22SKv9b.js} +1 -1
- package/dist/{createResizableSidebar-DVATOkMf.cjs → createResizableSidebar-C3I0HSwo.cjs} +1 -1
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +2 -2
- package/dist/{dialogFocusRestore-DKxaV82N.js → dialogFocusRestore-B4ggeVAM.js} +1 -1
- package/dist/{dialogFocusRestore-BAF8QM6v.cjs → dialogFocusRestore-BcMPrbig.cjs} +1 -1
- package/dist/format-Dih0q9gm.cjs +1 -0
- package/dist/{format-Dd946oS-.js → format-UGlMj0HW.js} +91 -88
- package/dist/forms/formFieldContext.d.cts +15 -0
- package/dist/forms/formFieldContext.d.ts +15 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +41 -40
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +394 -383
- 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.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +21 -20
- package/dist/overlay/DropdownMenu.d.cts +15 -1
- package/dist/overlay/DropdownMenu.d.ts +15 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +1 -0
- package/dist/overlay/index.d.ts +1 -0
- package/dist/overlay/index.js +131 -122
- package/dist/overlay/menu/MenuParts.d.cts +121 -0
- package/dist/overlay/menu/MenuParts.d.ts +121 -0
- package/dist/overlay/menu/index.d.cts +2 -0
- package/dist/overlay/menu/index.d.ts +2 -0
- package/dist/overlay/menu/menuSurfaceClasses.d.cts +28 -0
- package/dist/overlay/menu/menuSurfaceClasses.d.ts +28 -0
- package/dist/overlay/overlayStack.d.cts +6 -0
- package/dist/overlay/overlayStack.d.ts +6 -0
- package/dist/overlay/popover/PopoverPanel.d.cts +103 -0
- package/dist/overlay/popover/PopoverPanel.d.ts +103 -0
- package/dist/overlay/popover/index.d.cts +2 -0
- package/dist/overlay/popover/index.d.ts +2 -0
- package/dist/overlay/popover/popoverFocusNavigation.d.cts +6 -2
- package/dist/overlay/popover/popoverFocusNavigation.d.ts +6 -2
- package/dist/overlay-stack/index.cjs +1 -1
- package/dist/overlay-stack/index.js +1 -1
- package/dist/overlayStack-DvGdPMdq.js +203 -0
- package/dist/overlayStack-DvKYN7SD.cjs +1 -0
- package/dist/server/{AttributeGrid-D6b2qQS9.js → AttributeGrid-BkWsx39p.js} +2 -2
- package/dist/server/{AttributeGrid-CSidAjfz.cjs → AttributeGrid-PHZKkiBG.cjs} +1 -1
- package/dist/server/CommandPalette-Bfm1R0KC.js +3181 -0
- package/dist/server/CommandPalette-DIgBGmAh.cjs +1 -0
- package/dist/server/{DateRangePicker-BK2Ul2uy.js → DateRangePicker-BOsd_ZH2.js} +3 -3
- package/dist/server/{DateRangePicker-s-I_rNUK.cjs → DateRangePicker-CIKghxMx.cjs} +1 -1
- package/dist/server/{GuidedTour-BW95cjPT.cjs → GuidedTour-B4IK-M3E.cjs} +9 -9
- package/dist/server/{GuidedTour-DW5y5xkJ.js → GuidedTour-BVaym9s9.js} +492 -488
- package/dist/server/{IconPicker-Bw8tZjCl.cjs → IconPicker-Bat7VYeo.cjs} +1 -1
- package/dist/server/{IconPicker-BCUZcq-i.js → IconPicker-Dw4tbosO.js} +2 -2
- package/dist/server/Input-CjvD8w18.cjs +1 -0
- package/dist/server/Input-DaEN2JJd.js +127 -0
- package/dist/server/{Modal-CM54uXRu.js → Modal-Jf89av-C.js} +2 -2
- package/dist/server/{Modal-R86Fb2mX.cjs → Modal-W2cb3Xrx.cjs} +1 -1
- package/dist/server/{Popover-CTnX42Jq.js → Popover-BRU2E-ek.js} +17 -13
- package/dist/server/Popover-C2VwtQyu.cjs +1 -0
- package/dist/server/{SearchableSelect-Cog_rb31.js → SearchableSelect-0dP7bp0a.js} +2 -2
- package/dist/server/{SearchableSelect-fofn1Bjg.cjs → SearchableSelect-nMecJAYS.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-BqPU9Shw.js → StatusBarNotificationBell-DLrvONW3.js} +5 -5
- package/dist/server/{StatusBarNotificationBell-BolKvDik.cjs → StatusBarNotificationBell-DufUCZwN.cjs} +1 -1
- package/dist/server/{Stepper-BdOBuNco.js → Stepper-CJIoTXSv.js} +1 -1
- package/dist/server/{Stepper-DqwKOszc.cjs → Stepper-RFkjF_fm.cjs} +1 -1
- package/dist/server/Textarea-BQf2lL59.cjs +1 -0
- package/dist/server/Textarea-BTH48NET.js +37 -0
- package/dist/server/{ToggleButton-B0YuAGY4.js → ToggleButton-BAhucFQT.js} +6 -6
- package/dist/server/{ToggleButton-CbX1kbpI.cjs → ToggleButton-D9IXRIdl.cjs} +1 -1
- package/dist/server/{createResizableSidebar-D28fY_SX.cjs → createResizableSidebar-BymQA2Fs.cjs} +1 -1
- package/dist/server/{createResizableSidebar-BfTFOM7v.js → createResizableSidebar-IcXBM-BE.js} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/{dialogFocusRestore-DKxaV82N.js → dialogFocusRestore-B4ggeVAM.js} +1 -1
- package/dist/server/{dialogFocusRestore-BAF8QM6v.cjs → dialogFocusRestore-BcMPrbig.cjs} +1 -1
- package/dist/server/format-CW_FVfq2.js +385 -0
- package/dist/server/format-x-8syaS2.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +41 -40
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +722 -711
- 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 +17 -16
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +130 -121
- package/dist/server/overlay-stack/index.cjs +1 -1
- package/dist/server/overlay-stack/index.js +1 -1
- package/dist/server/overlayStack-DvGdPMdq.js +203 -0
- package/dist/server/overlayStack-DvKYN7SD.cjs +1 -0
- package/dist/server/{useFloatingDropdown-HD3G-ECb.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/server/{useFloatingDropdown-vYQiMh6N.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/solid/forms/Checkbox.jsx +5 -2
- package/dist/solid/forms/Input.jsx +5 -2
- package/dist/solid/forms/Textarea.jsx +5 -2
- package/dist/solid/forms/formFieldContext.js +7 -0
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/overlay/DropdownMenu.jsx +48 -26
- package/dist/solid/overlay/DropdownMenu.module.css.js +1 -7
- package/dist/solid/overlay/index.js +1 -0
- package/dist/solid/overlay/menu/MenuParts.jsx +140 -0
- package/dist/solid/overlay/menu/MenuParts.module.css.js +34 -0
- package/dist/solid/overlay/menu/index.js +2 -0
- package/dist/solid/overlay/menu/menuSurfaceClasses.js +16 -0
- package/dist/solid/overlay/overlayStack.js +10 -3
- package/dist/solid/overlay/popover/Popover.jsx +1 -1
- package/dist/solid/overlay/popover/PopoverPanel.jsx +95 -0
- package/dist/solid/overlay/popover/PopoverPanel.module.css.js +22 -0
- package/dist/solid/overlay/popover/index.js +1 -0
- package/dist/solid/overlay/popover/popoverFocusNavigation.js +7 -1
- package/dist/solid/styles/menuSurface.module.css.js +17 -0
- package/dist/style.css +2 -2
- package/dist/theme.css +1 -1
- package/dist/tokens/tokens.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CaQNfmfZ.js → useFloatingDropdown-CfPEYRut.js} +1 -1
- package/dist/{useFloatingDropdown-BKckfuUv.cjs → useFloatingDropdown-DcU7ozDg.cjs} +1 -1
- package/package.json +1 -1
- package/dist/CommandPalette-CIAqAbBE.cjs +0 -2
- package/dist/CommandPalette-l_vmlEnR.js +0 -3371
- package/dist/Input-BqiQPUxA.js +0 -215
- package/dist/Input-BrxV_Xcb.cjs +0 -1
- package/dist/Popover-B8ozGuDX.cjs +0 -1
- package/dist/Textarea-CXFZz3Oe.js +0 -36
- package/dist/Textarea-vl5fZzJa.cjs +0 -1
- package/dist/format-aHRZi12I.cjs +0 -1
- package/dist/overlayStack-BZR1emYS.cjs +0 -1
- package/dist/overlayStack-ND6EQZlX.js +0 -196
- package/dist/server/CommandPalette-9dL9DSG8.js +0 -2704
- package/dist/server/CommandPalette-Q296oZjU.cjs +0 -1
- package/dist/server/Input-Cxwc5CK4.js +0 -115
- package/dist/server/Input-k-IAQ5Wp.cjs +0 -1
- package/dist/server/Popover-BkZ9n6TA.cjs +0 -1
- package/dist/server/Textarea-DAoq3wWf.cjs +0 -1
- package/dist/server/Textarea-D_1mHXTj.js +0 -31
- package/dist/server/format-BWHKiXRe.cjs +0 -1
- package/dist/server/format-BubrMUMq.js +0 -382
- package/dist/server/overlayStack-BZR1emYS.cjs +0 -1
- package/dist/server/overlayStack-ND6EQZlX.js +0 -196
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createComponent as c, ssr as f, ssrAttribute as g, escape as i, ssrStyleProperty as q, memo as H, mergeProps as te } from "solid-js/web";
|
|
2
2
|
import { createSignal as A, createMemo as y, onMount as Q, onCleanup as Y, Show as I, For as j } from "solid-js";
|
|
3
|
-
import { I as ne, P as D } from "../Input-
|
|
3
|
+
import { I as ne, P as D } from "../Input-DaEN2JJd.js";
|
|
4
4
|
import { a as re } from "../HostWindowContext-KL4U1qUv.js";
|
|
5
5
|
import { H as vt, u as bt } from "../HostWindowContext-KL4U1qUv.js";
|
|
6
6
|
import { t as M } from "../i18n-CYq-dVvv.js";
|
|
7
7
|
import { i as oe, b as ie, a as le, c as ae } from "../menuFavorites-Db1DpHX6.js";
|
|
8
8
|
import { r as _t } from "../menuFavorites-Db1DpHX6.js";
|
|
9
9
|
import { c as Ct, r as Mt, a as It } from "../displayOwner-B_ezJv-O.js";
|
|
10
|
-
import { H as se, r as J } from "../dialogFocusRestore-
|
|
10
|
+
import { H as se, r as J } from "../dialogFocusRestore-B4ggeVAM.js";
|
|
11
11
|
import { O as ce } from "../OverlayScrollArea-221dfKyz.js";
|
|
12
12
|
import { i as E } from "../keys-B2nlkpqc.js";
|
|
13
13
|
import { V as ue } from "../VpChevronRight-CwRCE60O.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createComponent as u, Portal as a, mergeProps as m } from "solid-js/web";
|
|
2
2
|
import { onMount as i } from "solid-js";
|
|
3
|
-
import { u as c, n as d } from "./overlayStack-
|
|
3
|
+
import { u as c, n as d } from "./overlayStack-DvGdPMdq.js";
|
|
4
4
|
import { u as f } from "./HostWindowContext-KL4U1qUv.js";
|
|
5
5
|
function y(e) {
|
|
6
6
|
var r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("solid-js/web"),a=require("solid-js"),l=require("./overlayStack-
|
|
1
|
+
"use strict";const n=require("solid-js/web"),a=require("solid-js"),l=require("./overlayStack-DvKYN7SD.cjs"),s=require("./HostWindowContext-DqDeJmBP.cjs");function c(e){var u;const t=e.open??(()=>!0),o=()=>{const r=e.mount;return r.nodeType===Node.DOCUMENT_NODE?r:r.ownerDocument??void 0},i=l.useOverlayRegistration(t,e.idPrefix??"portal-overlay",{type:e.modal===!0?"modal":e.type,element:e.element,document:o});return(u=e.onLayer)==null||u.call(e,i),a.onMount(()=>{l.notifyOverlayChanged()}),n.createComponent(n.Portal,{get mount(){return e.mount},get children(){return e.children}})}function d(e){const t=s.useHostDocument(),o=e.modal===!0?{modal:!0}:{type:e.type};return n.createComponent(c,n.mergeProps(o,{get mount(){return t.body},get element(){return e.element},get idPrefix(){return e.idPrefix??"host-portal"},get open(){return e.open},get onLayer(){return e.onLayer},get children(){return e.children}}))}function m(e,t){return e===!0&&t===!1}function y(e){return e!==null&&typeof e.focus=="function"?(e.focus(),!0):!1}exports.HostPortal=d;exports.OverlayPortal=c;exports.restoreFocusTo=y;exports.shouldRestoreFocusOnDialogClose=m;
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { ssr as M, ssrAttribute as m, escape as a, createComponent as x, ssrStyle as $, memo as K } from "solid-js/web";
|
|
2
|
+
import { u as H, n as B } from "./Input-DaEN2JJd.js";
|
|
3
|
+
import { createSignal as y, Show as S, createUniqueId as z, createEffect as A, onCleanup as P, on as N } from "solid-js";
|
|
4
|
+
import { O as U, r as O } from "./dialogFocusRestore-B4ggeVAM.js";
|
|
5
|
+
import { b as D } from "./windowRegistry-Bk5lXIVd.js";
|
|
6
|
+
import { K as j } from "./Kbd-BTbz_c_e.js";
|
|
7
|
+
import { o as V } from "./ownerWindow-9mx_LD47.js";
|
|
8
|
+
import { d as q } from "./rendererLogging-Edo4ALXU.js";
|
|
9
|
+
import { i as Y } from "./keys-B2nlkpqc.js";
|
|
10
|
+
import { n as X } from "./prefersReducedMotion-B2mMn01s.js";
|
|
11
|
+
const G = 350, Kt = 0, C = 300, J = 6, Q = 8;
|
|
12
|
+
function Ht(t) {
|
|
13
|
+
const { anchorRect: e, tooltipSize: o, viewport: i } = t, l = t.offset ?? J, n = t.margin ?? Q, s = t.placement ?? "bottom", u = "bottom" in e && e.bottom !== void 0 ? e.bottom : e.top + e.height, h = "right" in e && e.right !== void 0 ? e.right : e.left + e.width;
|
|
14
|
+
let c = s, p = 0, f = 0;
|
|
15
|
+
if (s === "top" || s === "bottom") {
|
|
16
|
+
if (s === "top") {
|
|
17
|
+
const v = e.top - l - o.height;
|
|
18
|
+
v < n && u + l + o.height <= i.height - n ? (c = "bottom", p = u + l) : p = Math.max(
|
|
19
|
+
n,
|
|
20
|
+
Math.min(v, i.height - o.height - n)
|
|
21
|
+
);
|
|
22
|
+
} else {
|
|
23
|
+
const v = u + l;
|
|
24
|
+
v + o.height > i.height - n && e.top - l - o.height >= n ? (c = "top", p = e.top - l - o.height) : p = Math.max(
|
|
25
|
+
n,
|
|
26
|
+
Math.min(v, i.height - o.height - n)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
const g = e.left + (e.width - o.width) / 2, _ = Math.max(
|
|
30
|
+
n,
|
|
31
|
+
i.width - o.width - n
|
|
32
|
+
);
|
|
33
|
+
f = Math.max(n, Math.min(g, _));
|
|
34
|
+
} else {
|
|
35
|
+
if (s === "left") {
|
|
36
|
+
const v = e.left - l - o.width;
|
|
37
|
+
v < n && h + l + o.width <= i.width - n ? (c = "right", f = h + l) : f = Math.max(
|
|
38
|
+
n,
|
|
39
|
+
Math.min(v, i.width - o.width - n)
|
|
40
|
+
);
|
|
41
|
+
} else {
|
|
42
|
+
const v = h + l;
|
|
43
|
+
v + o.width > i.width - n && e.left - l - o.width >= n ? (c = "left", f = e.left - l - o.width) : f = Math.max(
|
|
44
|
+
n,
|
|
45
|
+
Math.min(v, i.width - o.width - n)
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
const g = e.top + (e.height - o.height) / 2, _ = Math.max(
|
|
49
|
+
n,
|
|
50
|
+
i.height - o.height - n
|
|
51
|
+
);
|
|
52
|
+
p = Math.max(n, Math.min(g, _));
|
|
53
|
+
}
|
|
54
|
+
return { top: p, left: f, placement: c };
|
|
55
|
+
}
|
|
56
|
+
function Z() {
|
|
57
|
+
const [t, e] = y(null);
|
|
58
|
+
let o = !1, i = null, l, n, s = null;
|
|
59
|
+
const u = () => {
|
|
60
|
+
l !== void 0 && (clearTimeout(l), l = void 0);
|
|
61
|
+
}, h = () => {
|
|
62
|
+
n !== void 0 && (clearTimeout(n), n = void 0);
|
|
63
|
+
}, c = () => {
|
|
64
|
+
if (s) {
|
|
65
|
+
try {
|
|
66
|
+
s();
|
|
67
|
+
} catch (r) {
|
|
68
|
+
q(
|
|
69
|
+
"Window context may already be destroyed or unloaded",
|
|
70
|
+
r
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
s = null;
|
|
74
|
+
}
|
|
75
|
+
}, p = (r) => {
|
|
76
|
+
c();
|
|
77
|
+
const d = () => {
|
|
78
|
+
g();
|
|
79
|
+
}, T = (k) => {
|
|
80
|
+
Y(k, "Escape") && t() !== null && (k.stopPropagation(), k.stopImmediatePropagation(), g());
|
|
81
|
+
};
|
|
82
|
+
r.addEventListener("scroll", d, !0), r.addEventListener("pointerdown", d, !0), r.addEventListener("keydown", T, !0), r.addEventListener("blur", d), s = () => {
|
|
83
|
+
r.removeEventListener("scroll", d, !0), r.removeEventListener("pointerdown", d, !0), r.removeEventListener("keydown", T, !0), r.removeEventListener("blur", d);
|
|
84
|
+
};
|
|
85
|
+
}, f = (r) => {
|
|
86
|
+
u(), h(), i = null, o = !0, e(r);
|
|
87
|
+
const d = V(r.target);
|
|
88
|
+
if (d === null) {
|
|
89
|
+
c();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
p(d);
|
|
93
|
+
}, g = () => {
|
|
94
|
+
u(), h(), i = null, o = !1, e(null), c();
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
activeTooltip: t,
|
|
98
|
+
isWarm: () => o,
|
|
99
|
+
showTooltip: (r) => {
|
|
100
|
+
if (!r.content || typeof r.content == "function" && !r.content())
|
|
101
|
+
return;
|
|
102
|
+
h();
|
|
103
|
+
const d = t();
|
|
104
|
+
if (!(d && (d.id === r.id || d.target === r.target)))
|
|
105
|
+
if (o || d !== null)
|
|
106
|
+
f(r);
|
|
107
|
+
else {
|
|
108
|
+
u(), i = r;
|
|
109
|
+
const T = r.delayMs ?? G;
|
|
110
|
+
T <= 0 ? f(r) : l = setTimeout(() => {
|
|
111
|
+
i === r && f(r);
|
|
112
|
+
}, T);
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
hideTooltip: (r) => {
|
|
116
|
+
if (r !== void 0) {
|
|
117
|
+
i && (typeof r == "string" ? i.id === r : i.target === r) && (u(), i = null);
|
|
118
|
+
const d = t();
|
|
119
|
+
if (d) {
|
|
120
|
+
if (!(typeof r == "string" ? d.id === r : d.target === r))
|
|
121
|
+
return;
|
|
122
|
+
} else
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
u(), i = null, e(null), c(), h(), n = setTimeout(() => {
|
|
126
|
+
o = !1, n = void 0;
|
|
127
|
+
}, C);
|
|
128
|
+
},
|
|
129
|
+
dismissAll: g,
|
|
130
|
+
recordTooltipShown: () => {
|
|
131
|
+
h(), o = !0;
|
|
132
|
+
},
|
|
133
|
+
recordTooltipHidden: () => {
|
|
134
|
+
h(), n = setTimeout(() => {
|
|
135
|
+
o = !1, n = void 0;
|
|
136
|
+
}, C);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
const W = Z(), tt = "vk_root_w-T1s", et = "vk_disabled_kl1Jx", ot = "vk_box_mOCAD", nt = "vk_checked_YZgPy", it = "vk_control_748Lw", rt = "vk_input_Ysj9i", lt = "vk_indicator_lYKVu", st = "vk_label_jB-PM", w = {
|
|
141
|
+
root: tt,
|
|
142
|
+
disabled: et,
|
|
143
|
+
box: ot,
|
|
144
|
+
checked: nt,
|
|
145
|
+
control: it,
|
|
146
|
+
input: rt,
|
|
147
|
+
indicator: lt,
|
|
148
|
+
label: st
|
|
149
|
+
};
|
|
150
|
+
function at(t, e, o, i, l, ...n) {
|
|
151
|
+
const s = [];
|
|
152
|
+
t && s.push(t), i && e && s.push(e), l && o && s.push(o);
|
|
153
|
+
for (const u of n)
|
|
154
|
+
u !== void 0 && u !== "" && s.push(u);
|
|
155
|
+
return s.join(" ");
|
|
156
|
+
}
|
|
157
|
+
var ct = ["<span", ">", "</span>"], dt = ["<label", "><span", '><input type="checkbox"', ' class="', '"', "", '><span class="', '" aria-hidden="true"><span', "></span></span></span>", "</label>"];
|
|
158
|
+
function Bt(t) {
|
|
159
|
+
const e = H();
|
|
160
|
+
return M(dt, m("class", a(at(w.root, w.checked, w.disabled, t.checked || !!t.indeterminate, !!t.disabled, t.class), !0), !1), m("class", a(w.control, !0), !1), m("id", a(t.id, !0), !1), `${a(w.input, !0)} ${a(t.inputClass ?? "", !0)}`, m("checked", t.checked, !0), m("disabled", t.disabled, !0) + m("aria-describedby", a(e == null ? void 0 : e.describedBy(), !0), !1) + m("aria-label", a(t.ariaLabel, !0), !1) + m("aria-labelledby", a(B(e, {
|
|
161
|
+
ariaLabel: t.ariaLabel,
|
|
162
|
+
ariaLabelledBy: t.ariaLabelledBy
|
|
163
|
+
}), !0), !1), `${a(w.box, !0)} ${a(t.boxClass ?? "", !0)}`, m("class", a(w.indicator, !0), !1), a(x(S, {
|
|
164
|
+
get when() {
|
|
165
|
+
return t.children !== void 0;
|
|
166
|
+
},
|
|
167
|
+
get children() {
|
|
168
|
+
return M(ct, m("class", a(w.label, !0), !1), a(t.children));
|
|
169
|
+
}
|
|
170
|
+
})));
|
|
171
|
+
}
|
|
172
|
+
const ut = "vk_trigger_--BjF", ht = "vk_tooltip_eJQhN", ft = "vk_hostTooltip_vLrNc", mt = "vk_tooltipInner_AyPkl", F = {
|
|
173
|
+
trigger: ut,
|
|
174
|
+
tooltip: ht,
|
|
175
|
+
hostTooltip: ft,
|
|
176
|
+
tooltipInner: mt
|
|
177
|
+
}, pt = 12, I = 16, L = 8, vt = 620;
|
|
178
|
+
function gt(t) {
|
|
179
|
+
const e = t.tooltipWidth ?? vt, o = t.tooltipWidth === void 0 ? t.viewportWidth : t.viewportWidth - L, i = Math.min(
|
|
180
|
+
t.pointerX + pt,
|
|
181
|
+
o - e
|
|
182
|
+
), l = Math.max(L, i), n = t.pointerY + I, s = t.tooltipHeight ?? 0, u = t.viewportHeight === void 0 ? n : Math.max(
|
|
183
|
+
L,
|
|
184
|
+
t.viewportHeight - s - L
|
|
185
|
+
), h = t.aboveY === void 0 ? n : t.aboveY - s - I, c = t.viewportHeight !== void 0 && n > u ? Math.max(L, Math.min(h, u)) : Math.max(L, Math.min(n, u));
|
|
186
|
+
return { left: l, top: c };
|
|
187
|
+
}
|
|
188
|
+
var bt = ["<span", ">", "</span>"], Tt = ["<div", "><span>", "</span>", "</div>"], wt = ["<div", ' role="tooltip" style="', '">', "</div>"];
|
|
189
|
+
function zt(t) {
|
|
190
|
+
const e = z(), [o, i] = y(!1), [l, n] = y({
|
|
191
|
+
x: 0,
|
|
192
|
+
y: 0
|
|
193
|
+
}), [s, u] = y(), [h, c] = y({
|
|
194
|
+
width: 0,
|
|
195
|
+
height: 0
|
|
196
|
+
}), [p, f] = y(!1);
|
|
197
|
+
let g, _;
|
|
198
|
+
const v = () => D(g);
|
|
199
|
+
return A(() => {
|
|
200
|
+
W.activeTooltip() && o() && i(!1);
|
|
201
|
+
}), A(() => {
|
|
202
|
+
if (!o()) return;
|
|
203
|
+
const b = () => {
|
|
204
|
+
i(!1);
|
|
205
|
+
}, E = (d) => {
|
|
206
|
+
Y(d, "Escape") && (d.stopPropagation(), d.stopImmediatePropagation(), i(!1), W.dismissAll());
|
|
207
|
+
}, r = D(g);
|
|
208
|
+
r.addEventListener("scroll", b, !0), r.addEventListener("resize", b), r.addEventListener("keydown", E, !0), P(() => {
|
|
209
|
+
r.removeEventListener("scroll", b, !0), r.removeEventListener("resize", b), r.removeEventListener("keydown", E, !0);
|
|
210
|
+
});
|
|
211
|
+
}), P(() => {
|
|
212
|
+
}), [M(bt, m("class", a(F.trigger, !0), !1) + m("tabindex", p() ? a(void 0, !0) : 0, !1) + m("aria-describedby", o() ? a(e, !0) : a(void 0, !0), !1), a(t.children)), x(S, {
|
|
213
|
+
get when() {
|
|
214
|
+
return K(() => !!o())() && t.content;
|
|
215
|
+
},
|
|
216
|
+
get children() {
|
|
217
|
+
return x(U, {
|
|
218
|
+
type: "tooltip",
|
|
219
|
+
get mount() {
|
|
220
|
+
return D(g).document.body;
|
|
221
|
+
},
|
|
222
|
+
element: () => _,
|
|
223
|
+
idPrefix: "hover-tooltip",
|
|
224
|
+
get children() {
|
|
225
|
+
return M(wt, m("class", a(F.tooltip, !0), !1) + m("id", a(e, !0), !1), $((() => {
|
|
226
|
+
const b = s(), E = gt({
|
|
227
|
+
pointerX: l().x,
|
|
228
|
+
pointerY: l().y,
|
|
229
|
+
viewportWidth: v().innerWidth,
|
|
230
|
+
viewportHeight: v().innerHeight,
|
|
231
|
+
tooltipWidth: h().width,
|
|
232
|
+
tooltipHeight: h().height,
|
|
233
|
+
...b !== void 0 ? {
|
|
234
|
+
aboveY: b
|
|
235
|
+
} : {}
|
|
236
|
+
});
|
|
237
|
+
return {
|
|
238
|
+
top: `${E.top}px`,
|
|
239
|
+
left: `${E.left}px`
|
|
240
|
+
};
|
|
241
|
+
})()), a(x(S, {
|
|
242
|
+
get when() {
|
|
243
|
+
return t.shortcut;
|
|
244
|
+
},
|
|
245
|
+
get fallback() {
|
|
246
|
+
return t.content;
|
|
247
|
+
},
|
|
248
|
+
get children() {
|
|
249
|
+
return M(Tt, m("class", a(F.tooltipInner, !0), !1), a(t.content), a(x(j, {
|
|
250
|
+
size: "xs",
|
|
251
|
+
get shortcut() {
|
|
252
|
+
return t.shortcut;
|
|
253
|
+
}
|
|
254
|
+
})));
|
|
255
|
+
}
|
|
256
|
+
})));
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
})];
|
|
261
|
+
}
|
|
262
|
+
const _t = "Tab";
|
|
263
|
+
function Et(t, e) {
|
|
264
|
+
if (t !== _t) return null;
|
|
265
|
+
const { focusableCount: o, activeIndex: i, shiftKey: l } = e;
|
|
266
|
+
if (o <= 0) return null;
|
|
267
|
+
const n = 0, s = o - 1;
|
|
268
|
+
return i < 0 ? l ? s : n : l ? i === n ? s : null : i === s ? n : null;
|
|
269
|
+
}
|
|
270
|
+
const Lt = [
|
|
271
|
+
"a[href]",
|
|
272
|
+
"area[href]",
|
|
273
|
+
"button:not([disabled])",
|
|
274
|
+
"input:not([disabled])",
|
|
275
|
+
"select:not([disabled])",
|
|
276
|
+
"textarea:not([disabled])",
|
|
277
|
+
"iframe",
|
|
278
|
+
'[contenteditable="true"]',
|
|
279
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
280
|
+
].join(",");
|
|
281
|
+
function yt(t) {
|
|
282
|
+
const e = Array.from(
|
|
283
|
+
t.querySelectorAll(Lt)
|
|
284
|
+
), o = t.ownerDocument;
|
|
285
|
+
return e.filter(
|
|
286
|
+
(i) => i.getAttribute("aria-hidden") !== "true" && (i.offsetParent !== null || i === o.documentElement)
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
function xt(t, e) {
|
|
290
|
+
var n;
|
|
291
|
+
const o = yt(t), i = o.indexOf(
|
|
292
|
+
t.ownerDocument.activeElement
|
|
293
|
+
), l = Et(e.key, {
|
|
294
|
+
focusableCount: o.length,
|
|
295
|
+
activeIndex: i,
|
|
296
|
+
shiftKey: e.shiftKey
|
|
297
|
+
});
|
|
298
|
+
return l === null ? !1 : (e.preventDefault(), (n = o[l]) == null || n.focus(), !0);
|
|
299
|
+
}
|
|
300
|
+
const Mt = "Tab", kt = "Escape", Dt = "Enter";
|
|
301
|
+
function Ft(t, e) {
|
|
302
|
+
return t === kt ? "dismiss" : t === Dt && e.confirmOnEnter ? "confirm" : t === Mt ? "trap" : "none";
|
|
303
|
+
}
|
|
304
|
+
function Nt(t) {
|
|
305
|
+
let e = null, o = null, i = null, l = null;
|
|
306
|
+
const n = () => {
|
|
307
|
+
var c;
|
|
308
|
+
l !== null && ((c = t.ownerDocument().defaultView) == null || c.cancelAnimationFrame(l), l = null);
|
|
309
|
+
}, s = () => {
|
|
310
|
+
n(), i == null || i(), i = null;
|
|
311
|
+
}, u = (c) => {
|
|
312
|
+
e = c, o ?? (o = t.ownerDocument().activeElement);
|
|
313
|
+
};
|
|
314
|
+
A(
|
|
315
|
+
N(
|
|
316
|
+
() => t.open(),
|
|
317
|
+
(c, p) => {
|
|
318
|
+
if (c) {
|
|
319
|
+
e !== null && i === null && (i = X(e)), n();
|
|
320
|
+
const f = t.ownerDocument().defaultView;
|
|
321
|
+
e !== null && f !== null && (l = f.requestAnimationFrame(() => {
|
|
322
|
+
l = null, t.open() && (e == null || e.focus());
|
|
323
|
+
}));
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
p === !0 && (s(), O(o), o = null, e = null);
|
|
327
|
+
}
|
|
328
|
+
)
|
|
329
|
+
);
|
|
330
|
+
const h = (c) => {
|
|
331
|
+
var f;
|
|
332
|
+
const p = Ft(c.key, {
|
|
333
|
+
confirmOnEnter: !1
|
|
334
|
+
});
|
|
335
|
+
if (p === "dismiss") {
|
|
336
|
+
if (((f = t.dismissDisabled) == null ? void 0 : f.call(t)) === !0) return;
|
|
337
|
+
c.stopPropagation(), t.onDismiss();
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
p === "trap" && e !== null && xt(e, c);
|
|
341
|
+
};
|
|
342
|
+
return P(() => {
|
|
343
|
+
s(), O(o), o = null, e = null;
|
|
344
|
+
}), { captureDialog: u, handleKeyDown: h };
|
|
345
|
+
}
|
|
346
|
+
function R() {
|
|
347
|
+
try {
|
|
348
|
+
return new Intl.DateTimeFormat().resolvedOptions().locale;
|
|
349
|
+
} catch {
|
|
350
|
+
return "en-US";
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function Ut(t, e) {
|
|
354
|
+
return t.toLocaleDateString(R(), e);
|
|
355
|
+
}
|
|
356
|
+
function jt(t, e) {
|
|
357
|
+
return t.toLocaleString(R(), e);
|
|
358
|
+
}
|
|
359
|
+
export {
|
|
360
|
+
Bt as C,
|
|
361
|
+
Q as D,
|
|
362
|
+
zt as H,
|
|
363
|
+
pt as T,
|
|
364
|
+
Kt as W,
|
|
365
|
+
G as a,
|
|
366
|
+
at as b,
|
|
367
|
+
C as c,
|
|
368
|
+
J as d,
|
|
369
|
+
I as e,
|
|
370
|
+
vt as f,
|
|
371
|
+
L as g,
|
|
372
|
+
yt as h,
|
|
373
|
+
Ht as i,
|
|
374
|
+
gt as j,
|
|
375
|
+
Nt as k,
|
|
376
|
+
Z as l,
|
|
377
|
+
Et as m,
|
|
378
|
+
xt as n,
|
|
379
|
+
Ut as o,
|
|
380
|
+
F as p,
|
|
381
|
+
jt as q,
|
|
382
|
+
Ft as r,
|
|
383
|
+
R as s,
|
|
384
|
+
W as t
|
|
385
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("solid-js/web"),C=require("./Input-CjvD8w18.cjs"),m=require("solid-js"),F=require("./dialogFocusRestore-BcMPrbig.cjs"),S=require("./windowRegistry-CGvOBUsw.cjs"),X=require("./Kbd-BPlUnyiy.cjs"),z=require("./ownerWindow-BCmJFMbR.cjs"),V=require("./rendererLogging-B4XML4_G.cjs"),P=require("./keys-GMxY2wcl.cjs"),j=require("./prefersReducedMotion-BQp-Q4UR.cjs"),k=350,G=0,O=300,I=6,R=8;function J(e){const{anchorRect:t,tooltipSize:n,viewport:r}=e,l=e.offset??I,i=e.margin??R,a=e.placement??"bottom",d="bottom"in t&&t.bottom!==void 0?t.bottom:t.top+t.height,h="right"in t&&t.right!==void 0?t.right:t.left+t.width;let c=a,p=0,f=0;if(a==="top"||a==="bottom"){if(a==="top"){const b=t.top-l-n.height;b<i&&d+l+n.height<=r.height-i?(c="bottom",p=d+l):p=Math.max(i,Math.min(b,r.height-n.height-i))}else{const b=d+l;b+n.height>r.height-i&&t.top-l-n.height>=i?(c="top",p=t.top-l-n.height):p=Math.max(i,Math.min(b,r.height-n.height-i))}const v=t.left+(t.width-n.width)/2,E=Math.max(i,r.width-n.width-i);f=Math.max(i,Math.min(v,E))}else{if(a==="left"){const b=t.left-l-n.width;b<i&&h+l+n.width<=r.width-i?(c="right",f=h+l):f=Math.max(i,Math.min(b,r.width-n.width-i))}else{const b=h+l;b+n.width>r.width-i&&t.left-l-n.width>=i?(c="left",f=t.left-l-n.width):f=Math.max(i,Math.min(b,r.width-n.width-i))}const v=t.top+(t.height-n.height)/2,E=Math.max(i,r.height-n.height-i);p=Math.max(i,Math.min(v,E))}return{top:p,left:f,placement:c}}function W(){const[e,t]=m.createSignal(null);let n=!1,r=null,l,i,a=null;const d=()=>{l!==void 0&&(clearTimeout(l),l=void 0)},h=()=>{i!==void 0&&(clearTimeout(i),i=void 0)},c=()=>{if(a){try{a()}catch(s){V.bestEffortFailed("Window context may already be destroyed or unloaded",s)}a=null}},p=s=>{c();const u=()=>{v()},T=y=>{P.isKey(y,"Escape")&&e()!==null&&(y.stopPropagation(),y.stopImmediatePropagation(),v())};s.addEventListener("scroll",u,!0),s.addEventListener("pointerdown",u,!0),s.addEventListener("keydown",T,!0),s.addEventListener("blur",u),a=()=>{s.removeEventListener("scroll",u,!0),s.removeEventListener("pointerdown",u,!0),s.removeEventListener("keydown",T,!0),s.removeEventListener("blur",u)}},f=s=>{d(),h(),r=null,n=!0,t(s);const u=z.ownerWindow(s.target);if(u===null){c();return}p(u)},v=()=>{d(),h(),r=null,n=!1,t(null),c()};return{activeTooltip:e,isWarm:()=>n,showTooltip:s=>{if(!s.content||typeof s.content=="function"&&!s.content())return;h();const u=e();if(!(u&&(u.id===s.id||u.target===s.target)))if(n||u!==null)f(s);else{d(),r=s;const T=s.delayMs??k;T<=0?f(s):l=setTimeout(()=>{r===s&&f(s)},T)}},hideTooltip:s=>{if(s!==void 0){r&&(typeof s=="string"?r.id===s:r.target===s)&&(d(),r=null);const u=e();if(u){if(!(typeof s=="string"?u.id===s:u.target===s))return}else return}d(),r=null,t(null),c(),h(),i=setTimeout(()=>{n=!1,i=void 0},O)},dismissAll:v,recordTooltipShown:()=>{h(),n=!0},recordTooltipHidden:()=>{h(),i=setTimeout(()=>{n=!1,i=void 0},O)}}}const x=W(),Q="vk_root_w-T1s",Z="vk_disabled_kl1Jx",ee="vk_box_mOCAD",te="vk_checked_YZgPy",oe="vk_control_748Lw",ne="vk_input_Ysj9i",ie="vk_indicator_lYKVu",re="vk_label_jB-PM",w={root:Q,disabled:Z,box:ee,checked:te,control:oe,input:ne,indicator:ie,label:re};function Y(e,t,n,r,l,...i){const a=[];e&&a.push(e),r&&t&&a.push(t),l&&n&&a.push(n);for(const d of i)d!==void 0&&d!==""&&a.push(d);return a.join(" ")}var se=["<span",">","</span>"],le=["<label","><span",'><input type="checkbox"',' class="','"',"",'><span class="','" aria-hidden="true"><span',"></span></span></span>","</label>"];function ae(e){const t=C.useFormFieldAria();return o.ssr(le,o.ssrAttribute("class",o.escape(Y(w.root,w.checked,w.disabled,e.checked||!!e.indeterminate,!!e.disabled,e.class),!0),!1),o.ssrAttribute("class",o.escape(w.control,!0),!1),o.ssrAttribute("id",o.escape(e.id,!0),!1),`${o.escape(w.input,!0)} ${o.escape(e.inputClass??"",!0)}`,o.ssrAttribute("checked",e.checked,!0),o.ssrAttribute("disabled",e.disabled,!0)+o.ssrAttribute("aria-describedby",o.escape(t==null?void 0:t.describedBy(),!0),!1)+o.ssrAttribute("aria-label",o.escape(e.ariaLabel,!0),!1)+o.ssrAttribute("aria-labelledby",o.escape(C.nativeControlLabelledBy(t,{ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy}),!0),!1),`${o.escape(w.box,!0)} ${o.escape(e.boxClass??"",!0)}`,o.ssrAttribute("class",o.escape(w.indicator,!0),!1),o.escape(o.createComponent(m.Show,{get when(){return e.children!==void 0},get children(){return o.ssr(se,o.ssrAttribute("class",o.escape(w.label,!0),!1),o.escape(e.children))}})))}const ce="vk_trigger_--BjF",ue="vk_tooltip_eJQhN",de="vk_hostTooltip_vLrNc",he="vk_tooltipInner_AyPkl",A={trigger:ce,tooltip:ue,hostTooltip:de,tooltipInner:he},K=12,M=16,_=8,$=620;function q(e){const t=e.tooltipWidth??$,n=e.tooltipWidth===void 0?e.viewportWidth:e.viewportWidth-_,r=Math.min(e.pointerX+K,n-t),l=Math.max(_,r),i=e.pointerY+M,a=e.tooltipHeight??0,d=e.viewportHeight===void 0?i:Math.max(_,e.viewportHeight-a-_),h=e.aboveY===void 0?i:e.aboveY-a-M,c=e.viewportHeight!==void 0&&i>d?Math.max(_,Math.min(h,d)):Math.max(_,Math.min(i,d));return{left:l,top:c}}var fe=["<span",">","</span>"],me=["<div","><span>","</span>","</div>"],pe=["<div",' role="tooltip" style="','">',"</div>"];function be(e){const t=m.createUniqueId(),[n,r]=m.createSignal(!1),[l,i]=m.createSignal({x:0,y:0}),[a,d]=m.createSignal(),[h,c]=m.createSignal({width:0,height:0}),[p,f]=m.createSignal(!1);let v,E;const b=()=>S.getWindow(v);return m.createEffect(()=>{x.activeTooltip()&&n()&&r(!1)}),m.createEffect(()=>{if(!n())return;const g=()=>{r(!1)},L=u=>{P.isKey(u,"Escape")&&(u.stopPropagation(),u.stopImmediatePropagation(),r(!1),x.dismissAll())},s=S.getWindow(v);s.addEventListener("scroll",g,!0),s.addEventListener("resize",g),s.addEventListener("keydown",L,!0),m.onCleanup(()=>{s.removeEventListener("scroll",g,!0),s.removeEventListener("resize",g),s.removeEventListener("keydown",L,!0)})}),m.onCleanup(()=>{}),[o.ssr(fe,o.ssrAttribute("class",o.escape(A.trigger,!0),!1)+o.ssrAttribute("tabindex",p()?o.escape(void 0,!0):0,!1)+o.ssrAttribute("aria-describedby",n()?o.escape(t,!0):o.escape(void 0,!0),!1),o.escape(e.children)),o.createComponent(m.Show,{get when(){return o.memo(()=>!!n())()&&e.content},get children(){return o.createComponent(F.OverlayPortal,{type:"tooltip",get mount(){return S.getWindow(v).document.body},element:()=>E,idPrefix:"hover-tooltip",get children(){return o.ssr(pe,o.ssrAttribute("class",o.escape(A.tooltip,!0),!1)+o.ssrAttribute("id",o.escape(t,!0),!1),o.ssrStyle((()=>{const g=a(),L=q({pointerX:l().x,pointerY:l().y,viewportWidth:b().innerWidth,viewportHeight:b().innerHeight,tooltipWidth:h().width,tooltipHeight:h().height,...g!==void 0?{aboveY:g}:{}});return{top:`${L.top}px`,left:`${L.left}px`}})()),o.escape(o.createComponent(m.Show,{get when(){return e.shortcut},get fallback(){return e.content},get children(){return o.ssr(me,o.ssrAttribute("class",o.escape(A.tooltipInner,!0),!1),o.escape(e.content),o.escape(o.createComponent(X.Kbd,{size:"xs",get shortcut(){return e.shortcut}})))}})))}})}})]}const ve="Tab";function H(e,t){if(e!==ve)return null;const{focusableCount:n,activeIndex:r,shiftKey:l}=t;if(n<=0)return null;const i=0,a=n-1;return r<0?l?a:i:l?r===i?a:null:r===a?i:null}const ge=["a[href]","area[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(",");function B(e){const t=Array.from(e.querySelectorAll(ge)),n=e.ownerDocument;return t.filter(r=>r.getAttribute("aria-hidden")!=="true"&&(r.offsetParent!==null||r===n.documentElement))}function N(e,t){var i;const n=B(e),r=n.indexOf(e.ownerDocument.activeElement),l=H(t.key,{focusableCount:n.length,activeIndex:r,shiftKey:t.shiftKey});return l===null?!1:(t.preventDefault(),(i=n[l])==null||i.focus(),!0)}const Te="Tab",we="Escape",_e="Enter";function U(e,t){return e===we?"dismiss":e===_e&&t.confirmOnEnter?"confirm":e===Te?"trap":"none"}function Ee(e){let t=null,n=null,r=null,l=null;const i=()=>{var c;l!==null&&((c=e.ownerDocument().defaultView)==null||c.cancelAnimationFrame(l),l=null)},a=()=>{i(),r==null||r(),r=null},d=c=>{t=c,n??(n=e.ownerDocument().activeElement)};m.createEffect(m.on(()=>e.open(),(c,p)=>{if(c){t!==null&&r===null&&(r=j.neutralizeBackground(t)),i();const f=e.ownerDocument().defaultView;t!==null&&f!==null&&(l=f.requestAnimationFrame(()=>{l=null,e.open()&&(t==null||t.focus())}));return}p===!0&&(a(),F.restoreFocusTo(n),n=null,t=null)}));const h=c=>{var f;const p=U(c.key,{confirmOnEnter:!1});if(p==="dismiss"){if(((f=e.dismissDisabled)==null?void 0:f.call(e))===!0)return;c.stopPropagation(),e.onDismiss();return}p==="trap"&&t!==null&&N(t,c)};return m.onCleanup(()=>{a(),F.restoreFocusTo(n),n=null,t=null}),{captureDialog:d,handleKeyDown:h}}function D(){try{return new Intl.DateTimeFormat().resolvedOptions().locale}catch{return"en-US"}}function Le(e,t){return e.toLocaleDateString(D(),t)}function Ae(e,t){return e.toLocaleString(D(),t)}exports.COLD_DELAY_MS=k;exports.COOLDOWN_MS=O;exports.Checkbox=ae;exports.DEFAULT_MARGIN=R;exports.DEFAULT_OFFSET=I;exports.HoverTooltip=be;exports.TOOLTIP_CURSOR_OFFSET_X=K;exports.TOOLTIP_CURSOR_OFFSET_Y=M;exports.TOOLTIP_MAX_FOOTPRINT_X=$;exports.TOOLTIP_VIEWPORT_MARGIN=_;exports.WARM_DELAY_MS=G;exports.buildSelectionItemClass=Y;exports.collectFocusableElements=B;exports.computeAnchoredTooltipPosition=J;exports.computeTooltipPointerPosition=q;exports.createDialogShellFocus=Ee;exports.createTooltipCoordinator=W;exports.formatDate=Le;exports.formatDateTime=Ae;exports.resolveDialogShellKeyIntent=U;exports.resolveModalFocusTrapTarget=H;exports.styles=A;exports.systemFormatLocale=D;exports.tooltipCoordinator=x;exports.trapTabFocusWithin=N;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Button-CFOM8pOv.cjs"),e=require("../ToggleButton-D9IXRIdl.cjs"),r=require("../Input-CjvD8w18.cjs"),a=require("../format-x-8syaS2.cjs"),n=require("../Textarea-BQf2lL59.cjs"),l=require("../CopyButton-C2jzn9tR.cjs"),t=require("../SearchableSelect-nMecJAYS.cjs"),c=require("../IconPicker-Bat7VYeo.cjs"),o=require("../DateRangePicker-CIKghxMx.cjs");exports.Button=i.Button;exports.ButtonGroup=e.ButtonGroup;exports.Combobox=e.Combobox;exports.DatePicker=e.DatePicker;exports.DateTimePicker=e.DateTimePicker;exports.Dropzone=e.Dropzone;exports.FilePickerButton=e.FilePickerButton;exports.FormField=e.FormField;exports.HiddenFileInput=e.HiddenFileInput;exports.MultiSearchableSelect=e.MultiSearchableSelect;exports.NumberInput=e.NumberInput;exports.PasswordInput=e.PasswordInput;exports.Picker=e.Picker;exports.RadioGroup=e.RadioGroup;exports.SearchField=e.SearchInput;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;exports.Slider=e.Slider;exports.SplitButton=e.SplitButton;exports.TagInput=e.TagInput;exports.Toggle=e.Toggle;exports.ToggleButton=e.ToggleButton;exports.clampToRange=e.clampToRange;exports.evaluatePassword=e.evaluatePassword;exports.formatFileSize=e.formatFileSize;exports.isFileAccepted=e.isFileAccepted;exports.nextOptionIndex=e.nextOptionIndex;exports.parseNumericInput=e.parseNumericInput;exports.FormFieldAriaProvider=r.FormFieldAriaProvider;exports.Input=r.Input;exports.PressableSurface=r.PressableSurface;exports.nativeControlLabelledBy=r.nativeControlLabelledBy;exports.useFormFieldAria=r.useFormFieldAria;exports.Checkbox=a.Checkbox;exports.buildSelectionItemClass=a.buildSelectionItemClass;exports.Textarea=n.Textarea;exports.CopyButton=l.CopyButton;exports.LISTBOX_NAVIGATION_KEYS=t.LISTBOX_NAVIGATION_KEYS;exports.SearchableSelect=t.SearchableSelect;exports.clampHighlightToOptions=t.clampHighlightToOptions;exports.firstSelectableIndex=t.firstSelectableIndex;exports.lastSelectableIndex=t.lastSelectableIndex;exports.nextSelectableIndex=t.nextSelectableIndex;exports.resolveHighlightForKey=t.resolveHighlightForKey;exports.IconPicker=c.IconPicker;exports.DateRangePicker=o.DateRangePicker;exports.endOfDay=o.endOfDay;exports.pickDayState=o.pickDayState;exports.startOfDay=o.startOfDay;
|
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import { B as s } from "../Button-BhqhjFpY.js";
|
|
2
|
-
import { B as
|
|
3
|
-
import { F as
|
|
4
|
-
import { C as z, b as K } from "../format-
|
|
5
|
-
import { T as
|
|
6
|
-
import { C as
|
|
7
|
-
import { L as
|
|
8
|
-
import { I as
|
|
9
|
-
import { D as
|
|
2
|
+
import { B as o, C as r, D as l, a as i, b as n, F as p, c, H as u, M as m, N as d, P as S, d as x, R as I, S as f, S as b, e as F, f as g, g as P, T, h, i as B, j as k, k as C, l as D, m as y, n as O, p as A } from "../ToggleButton-BAhucFQT.js";
|
|
3
|
+
import { F as v, I as H, P as R, n as G, u as L } from "../Input-DaEN2JJd.js";
|
|
4
|
+
import { C as z, b as K } from "../format-CW_FVfq2.js";
|
|
5
|
+
import { T as _ } from "../Textarea-BTH48NET.js";
|
|
6
|
+
import { C as E } from "../CopyButton-CChDa2p3.js";
|
|
7
|
+
import { L as X, S as Y, c as q, f as J, l as Q, n as U, r as W } from "../SearchableSelect-0dP7bp0a.js";
|
|
8
|
+
import { I as $ } from "../IconPicker-Dw4tbosO.js";
|
|
9
|
+
import { D as ae, e as se, p as te, s as oe } from "../DateRangePicker-BOsd_ZH2.js";
|
|
10
10
|
export {
|
|
11
11
|
s as Button,
|
|
12
|
-
|
|
12
|
+
o as ButtonGroup,
|
|
13
13
|
z as Checkbox,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
r as Combobox,
|
|
15
|
+
E as CopyButton,
|
|
16
|
+
l as DatePicker,
|
|
17
|
+
ae as DateRangePicker,
|
|
18
|
+
i as DateTimePicker,
|
|
19
19
|
n as Dropzone,
|
|
20
20
|
p as FilePickerButton,
|
|
21
21
|
c as FormField,
|
|
22
|
-
|
|
22
|
+
v as FormFieldAriaProvider,
|
|
23
23
|
u as HiddenFileInput,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
$ as IconPicker,
|
|
25
|
+
H as Input,
|
|
26
|
+
X as LISTBOX_NAVIGATION_KEYS,
|
|
27
27
|
m as MultiSearchableSelect,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
d as NumberInput,
|
|
29
|
+
S as PasswordInput,
|
|
30
30
|
x as Picker,
|
|
31
|
-
|
|
31
|
+
R as PressableSurface,
|
|
32
32
|
I as RadioGroup,
|
|
33
33
|
f as SearchField,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
b as SearchInput,
|
|
35
|
+
Y as SearchableSelect,
|
|
36
|
+
F as SegmentedControl,
|
|
37
37
|
g as Slider,
|
|
38
38
|
P as SplitButton,
|
|
39
39
|
T as TagInput,
|
|
40
|
-
|
|
40
|
+
_ as Textarea,
|
|
41
41
|
h as Toggle,
|
|
42
|
-
|
|
42
|
+
B as ToggleButton,
|
|
43
43
|
K as buildSelectionItemClass,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
q as clampHighlightToOptions,
|
|
45
|
+
k as clampToRange,
|
|
46
|
+
se as endOfDay,
|
|
47
|
+
C as evaluatePassword,
|
|
48
|
+
J as firstSelectableIndex,
|
|
49
|
+
D as formatFileSize,
|
|
50
|
+
y as isFileAccepted,
|
|
51
|
+
Q as lastSelectableIndex,
|
|
52
|
+
G as nativeControlLabelledBy,
|
|
53
|
+
O as nextOptionIndex,
|
|
54
|
+
U as nextSelectableIndex,
|
|
54
55
|
A as parseNumericInput,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
te as pickDayState,
|
|
57
|
+
W as resolveHighlightForKey,
|
|
58
|
+
oe as startOfDay,
|
|
59
|
+
L as useFormFieldAria
|
|
59
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../AttributeGrid-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../AttributeGrid-PHZKkiBG.cjs");exports.AttributeGrid=e.AttributeGrid;exports.Pagination=e.Pagination;exports.ToolbarSearchRow=e.ToolbarSearchRow;exports.ToolbarSearchToggle=e.ToolbarSearchToggle;exports.pageSizeOptionLabel=e.pageSizeOptionLabel;
|