@turquoisehealth/pit-viper 2.217.1-dev.0 → 2.218.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/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +237 -233
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +1 -19
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +534 -554
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +216 -212
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1104 -1100
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +163 -159
- package/pv-components/dist/web/pv-components.iife.js +9 -9
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, isRef as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as ee, onUnmounted as D, openBlock as O, provide as k, reactive as A, readonly as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, isRef as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as ee, onUnmounted as D, openBlock as O, provide as k, reactive as A, readonly as te, ref as j, renderList as ne, renderSlot as re, resolveComponent as ie, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toValue as F, unref as I, useAttrs as ae, useId as oe, useModel as se, useSlots as ce, useTemplateRef as le, vModelCheckbox as ue, vModelText as de, vShow as fe, watch as L, watchEffect as pe, withCtx as me, withDirectives as he, withModifiers as ge } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var _e = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, ye = Object.getOwnPropertyNames, be = Object.prototype.hasOwnProperty, xe = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -355,7 +355,7 @@ var tt = { class: "pv-relative" }, nt = ["disabled", "placeholder"], rt = {
|
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/web-components/utils.ts
|
|
357
357
|
function ot() {
|
|
358
|
-
let e =
|
|
358
|
+
let e = j(!1), t = p()?.root || {};
|
|
359
359
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
360
360
|
}
|
|
361
361
|
//#endregion
|
|
@@ -382,7 +382,7 @@ var st = {
|
|
|
382
382
|
size: { type: null }
|
|
383
383
|
},
|
|
384
384
|
setup(e) {
|
|
385
|
-
let t = e, n = ot(), i =
|
|
385
|
+
let t = e, n = ot(), i = j(null), a = r(() => ({
|
|
386
386
|
"pv-icon": !0,
|
|
387
387
|
[`pv-icon-${t.size}`]: t.size != null && ct.includes(t.size)
|
|
388
388
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
@@ -451,7 +451,7 @@ var st = {
|
|
|
451
451
|
srcPathOverride: { type: String }
|
|
452
452
|
},
|
|
453
453
|
setup(e) {
|
|
454
|
-
let t = e, n =
|
|
454
|
+
let t = e, n = j(!0), i = r(() => st[t.size] || "32px"), a = r(() => ({
|
|
455
455
|
"pv-icon": n.value,
|
|
456
456
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
457
457
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
@@ -533,11 +533,11 @@ function Ct(e, t) {
|
|
|
533
533
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
534
534
|
}
|
|
535
535
|
function wt(e, t = {}) {
|
|
536
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ot(), l = i ?? ce(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f =
|
|
536
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ot(), l = i ?? ce(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
|
|
537
537
|
T(() => {
|
|
538
538
|
f.value = d();
|
|
539
539
|
});
|
|
540
|
-
let p =
|
|
540
|
+
let p = j(!1), m = null, h = null, g = () => {
|
|
541
541
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
542
542
|
}, _ = () => {
|
|
543
543
|
if (!c.value) {
|
|
@@ -627,12 +627,12 @@ var Tt = [
|
|
|
627
627
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
628
628
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
629
629
|
"aria-labelledby": I(t) ? e.ariaLabelledBy : void 0
|
|
630
|
-
}, [
|
|
630
|
+
}, [re(n.$slots, "label"), I(t) ? (O(), o("div", {
|
|
631
631
|
key: 0,
|
|
632
632
|
role: "tooltip",
|
|
633
633
|
id: e.ariaLabelledBy,
|
|
634
634
|
"data-testid": "pv-tooltip-content"
|
|
635
|
-
}, [
|
|
635
|
+
}, [re(n.$slots, "tooltip-content")], 8, Et)) : a("v-if", !0)], 10, Tt));
|
|
636
636
|
}
|
|
637
637
|
}), Ot = ["ghost"], kt = {
|
|
638
638
|
md: "pv-button-small",
|
|
@@ -714,7 +714,7 @@ var Tt = [
|
|
|
714
714
|
variant: e.counterBadgeVariant,
|
|
715
715
|
size: "sm"
|
|
716
716
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
717
|
-
!e.isLoading && e.renderer && f.value ? (O(), i(
|
|
717
|
+
!e.isLoading && e.renderer && f.value ? (O(), i(M(e.renderer), S(y({ key: 2 }, f.value)), null, 16)) : (O(), o(t, { key: 3 }, [
|
|
718
718
|
e.icon ? (O(), i(ut, {
|
|
719
719
|
key: 0,
|
|
720
720
|
"data-testid": "pv-multi-select-button-icon",
|
|
@@ -1713,7 +1713,7 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1713
1713
|
"position-try-fallbacks: flip-block",
|
|
1714
1714
|
"position-visibility: anchors-visible",
|
|
1715
1715
|
`anchor-scope: ${zr}`
|
|
1716
|
-
].every((e) => CSS.supports(e)), g =
|
|
1716
|
+
].every((e) => CSS.supports(e)), g = j(!1), _ = j(null), v = j(null), y = j(null), x = j(null), S = et(v), w = et(x), T = j(!1), ee = {
|
|
1717
1717
|
"top-center": "top",
|
|
1718
1718
|
"bottom-center": "bottom",
|
|
1719
1719
|
"center-left": "left",
|
|
@@ -1755,7 +1755,7 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1755
1755
|
area: "bottom span-left",
|
|
1756
1756
|
margin: "margin-block-start"
|
|
1757
1757
|
}
|
|
1758
|
-
}, A = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"),
|
|
1758
|
+
}, A = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), te = r(() => h ? { "anchor-scope": zr } : void 0), ne = r(() => h ? { "anchor-name": zr } : void 0), ie = r(() => {
|
|
1759
1759
|
let e = k[t.position];
|
|
1760
1760
|
return {
|
|
1761
1761
|
"position-anchor": zr,
|
|
@@ -1763,7 +1763,7 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1763
1763
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1764
1764
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1765
1765
|
};
|
|
1766
|
-
}),
|
|
1766
|
+
}), M = () => {}, N = () => ({});
|
|
1767
1767
|
if (!h) {
|
|
1768
1768
|
let e = [];
|
|
1769
1769
|
t.disableAutoPlacement || e.push(Er({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(wr(t.offset));
|
|
@@ -1772,9 +1772,9 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1772
1772
|
strategy: t.positioningStrategy,
|
|
1773
1773
|
middleware: e
|
|
1774
1774
|
});
|
|
1775
|
-
|
|
1775
|
+
M = n.update, N = () => n.floatingStyles.value;
|
|
1776
1776
|
let i = $e(y), a = /* @__PURE__ */ Ie(() => {
|
|
1777
|
-
c.value &&
|
|
1777
|
+
c.value && M();
|
|
1778
1778
|
}, 5);
|
|
1779
1779
|
L([
|
|
1780
1780
|
i.top,
|
|
@@ -1813,7 +1813,7 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1813
1813
|
};
|
|
1814
1814
|
return L(c, async (e) => {
|
|
1815
1815
|
if (!h) {
|
|
1816
|
-
e &&
|
|
1816
|
+
e && M();
|
|
1817
1817
|
return;
|
|
1818
1818
|
}
|
|
1819
1819
|
await b(), ue();
|
|
@@ -1830,30 +1830,30 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1830
1830
|
}), L(m, (e) => {
|
|
1831
1831
|
e ? h && c.value && b(ue) : (oe(), ce(), c.value = !1);
|
|
1832
1832
|
}), E(() => {
|
|
1833
|
-
y.value = v.value, g.value = !0, c.value && b(() => h ? ue() :
|
|
1833
|
+
y.value = v.value, g.value = !0, c.value && b(() => h ? ue() : M());
|
|
1834
1834
|
}), D(() => {
|
|
1835
1835
|
oe(), ce();
|
|
1836
1836
|
}), (r, l) => (O(), o("div", {
|
|
1837
1837
|
ref_key: "root",
|
|
1838
1838
|
ref: _,
|
|
1839
|
-
style: C([{ width: "fit-content" },
|
|
1839
|
+
style: C([{ width: "fit-content" }, te.value]),
|
|
1840
1840
|
onKeydown: ge
|
|
1841
1841
|
}, [s("div", {
|
|
1842
1842
|
ref_key: "triggerWrapper",
|
|
1843
1843
|
ref: v,
|
|
1844
|
-
style: C(
|
|
1844
|
+
style: C(ne.value),
|
|
1845
1845
|
onClick: pe,
|
|
1846
1846
|
onFocusin: l[0] ||= (e) => T.value = !0,
|
|
1847
1847
|
onFocusout: l[1] ||= (e) => T.value = !1
|
|
1848
|
-
}, [
|
|
1848
|
+
}, [re(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (O(), o("div", {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
ref_key: "floating",
|
|
1851
1851
|
ref: x,
|
|
1852
1852
|
class: "pv-floating pv-floating-native",
|
|
1853
1853
|
popover: A.value,
|
|
1854
|
-
style: C(
|
|
1854
|
+
style: C(ie.value),
|
|
1855
1855
|
onToggle: me
|
|
1856
|
-
}, [
|
|
1856
|
+
}, [re(r.$slots, "content")], 44, Rr)) : m.value ? (O(), i(n, {
|
|
1857
1857
|
key: 1,
|
|
1858
1858
|
to: e.teleportLocation,
|
|
1859
1859
|
disabled: !t.useTeleport
|
|
@@ -1862,7 +1862,7 @@ var Rr = ["popover"], zr = "--pv-popover-v2-anchor", Br = /* @__PURE__ */ pt(/*
|
|
|
1862
1862
|
ref: x,
|
|
1863
1863
|
class: "pv-floating",
|
|
1864
1864
|
style: C(P.value)
|
|
1865
|
-
}, [
|
|
1865
|
+
}, [re(r.$slots, "content")], 4), [[fe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1866
1866
|
}
|
|
1867
1867
|
}), [["styles", [".pv-floating-native[data-v-08e2d92a]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-08e2d92a]>.pv-popover,.pv-floating-native>slot[name=content][data-v-08e2d92a]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-08e2d92a"]]);
|
|
1868
1868
|
//#endregion
|
|
@@ -1918,7 +1918,7 @@ var Wr = {
|
|
|
1918
1918
|
config: { type: Object }
|
|
1919
1919
|
},
|
|
1920
1920
|
setup(e) {
|
|
1921
|
-
let n = e, c =
|
|
1921
|
+
let n = e, c = j(null), l = j(null), u = r(() => n.subText || null), d = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = (e, t, n) => {
|
|
1922
1922
|
let r = d(n), i = RegExp(`(${r})`, "gi");
|
|
1923
1923
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
1924
1924
|
}, p = () => {
|
|
@@ -2074,7 +2074,7 @@ var Wr = {
|
|
|
2074
2074
|
setup(e) {
|
|
2075
2075
|
let t = e, n = p(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = wt("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2076
2076
|
return (t, n) => (O(), i(Br, S(h(t.$props)), c({
|
|
2077
|
-
trigger: me(() => [
|
|
2077
|
+
trigger: me(() => [re(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
2078
2078
|
_: 2
|
|
2079
2079
|
}, [f.value ? {
|
|
2080
2080
|
name: "content",
|
|
@@ -2082,7 +2082,7 @@ var Wr = {
|
|
|
2082
2082
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2083
2083
|
role: "tooltip",
|
|
2084
2084
|
"data-variant": e.variant
|
|
2085
|
-
}, [
|
|
2085
|
+
}, [re(t.$slots, "content", {}, () => [l(P(e.description), 1)])], 10, $r)]),
|
|
2086
2086
|
key: "0"
|
|
2087
2087
|
} : void 0]), 1040));
|
|
2088
2088
|
}
|
|
@@ -2233,7 +2233,7 @@ var Wr = {
|
|
|
2233
2233
|
},
|
|
2234
2234
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2235
2235
|
setup(e, { emit: t }) {
|
|
2236
|
-
let n = e, c = le("inputRef"), l = g(ai, void 0), d = g(oi,
|
|
2236
|
+
let n = e, c = le("inputRef"), l = g(ai, void 0), d = g(oi, j(!1)), f = g(li, void 0), m = g(ui, void 0), h = g(si, r(() => !1)), _ = r(() => {
|
|
2237
2237
|
if (!d.value || !Vr(n)) return [];
|
|
2238
2238
|
let e = n.children ? Hr(n.children) : [];
|
|
2239
2239
|
if (f?.value) {
|
|
@@ -2270,17 +2270,17 @@ var Wr = {
|
|
|
2270
2270
|
}), E = r(() => n.action ?? n.menuOptionConfig?.action), ee = r(() => {
|
|
2271
2271
|
let e = n.menuOptionConfig?.variant;
|
|
2272
2272
|
return e !== "checkbox" && e !== "radio";
|
|
2273
|
-
}), D = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${D.value}-${p()?.uid}`, A = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"),
|
|
2274
|
-
n.disabled || (
|
|
2273
|
+
}), D = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${D.value}-${p()?.uid}`, A = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), te = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), ne = t, re = (e) => {
|
|
2274
|
+
n.disabled || (ne("handle-selected", {
|
|
2275
2275
|
option: { ...n },
|
|
2276
2276
|
event: e
|
|
2277
2277
|
}), b(() => {
|
|
2278
2278
|
c.value && (c.value.checked = v.value, c.value.indeterminate = S.value);
|
|
2279
2279
|
}));
|
|
2280
|
-
},
|
|
2280
|
+
}, ie = (e) => {
|
|
2281
2281
|
if (!h.value) return;
|
|
2282
2282
|
let t = e.target.closest("a, button, input, select, textarea, [contenteditable], [role='button'], [role='checkbox'], [role='link'], [role='radio'], [role='switch']");
|
|
2283
|
-
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(),
|
|
2283
|
+
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(), re(e));
|
|
2284
2284
|
};
|
|
2285
2285
|
return (t, r) => (O(), o("label", y(t.$attrs, {
|
|
2286
2286
|
class: ["pv-label pv-label-hover pv-flex pv-full-width pv-stack-4 pv-inset-square-8", C.value],
|
|
@@ -2289,8 +2289,8 @@ var Wr = {
|
|
|
2289
2289
|
paddingTop: e.subText ? "4px" : void 0,
|
|
2290
2290
|
paddingBottom: e.subText ? "4px" : void 0
|
|
2291
2291
|
}],
|
|
2292
|
-
"data-testid":
|
|
2293
|
-
onClick:
|
|
2292
|
+
"data-testid": te.value,
|
|
2293
|
+
onClick: ie
|
|
2294
2294
|
}), [
|
|
2295
2295
|
s("input", {
|
|
2296
2296
|
ref_key: "inputRef",
|
|
@@ -2304,9 +2304,9 @@ var Wr = {
|
|
|
2304
2304
|
tabindex: I(h) ? -1 : void 0,
|
|
2305
2305
|
"aria-hidden": I(h) ? !0 : void 0,
|
|
2306
2306
|
disabled: e.disabled,
|
|
2307
|
-
onChange: r[0] ||= (e) => I(h) ? void 0 :
|
|
2307
|
+
onChange: r[0] ||= (e) => I(h) ? void 0 : re(e)
|
|
2308
2308
|
}, null, 42, hi),
|
|
2309
|
-
e.menuOptionConfig?.renderer ? (O(), i(
|
|
2309
|
+
e.menuOptionConfig?.renderer ? (O(), i(M(e.menuOptionConfig?.renderer), y({ key: 0 }, T.value, { selected: v.value }), null, 16, ["selected"])) : (O(), i(Jr, y({ key: 1 }, T.value, {
|
|
2310
2310
|
menuOptionConfig: e.menuOptionConfig,
|
|
2311
2311
|
queryText: e.queryText,
|
|
2312
2312
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2343,7 +2343,7 @@ var Wr = {
|
|
|
2343
2343
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2344
2344
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2345
2345
|
"aria-expanded": e.expanded,
|
|
2346
|
-
onClick: r[1] ||= ge((e) =>
|
|
2346
|
+
onClick: r[1] ||= ge((e) => ne("toggle-expanded"), ["prevent", "stop"])
|
|
2347
2347
|
}, [u(ut, {
|
|
2348
2348
|
name: e.chevronIcon ?? "chevron-right",
|
|
2349
2349
|
size: 12
|
|
@@ -2492,7 +2492,7 @@ var Wr = {
|
|
|
2492
2492
|
}),
|
|
2493
2493
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2494
2494
|
setup(e, { emit: n }) {
|
|
2495
|
-
let i = e, s = g(ai, void 0), c = se(e, "selectedIds"), l = g(pi,
|
|
2495
|
+
let i = e, s = g(ai, void 0), c = se(e, "selectedIds"), l = g(pi, j(!1)), d = g(fi, j(!1)), f = g(si, r(() => !1)), p = ae(), m = r(() => {
|
|
2496
2496
|
if (!f.value) return {};
|
|
2497
2497
|
let e = new Set([
|
|
2498
2498
|
"aria-checked",
|
|
@@ -2509,11 +2509,11 @@ var Wr = {
|
|
|
2509
2509
|
"tabindex"
|
|
2510
2510
|
]);
|
|
2511
2511
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
2512
|
-
}), h = g(ui, void 0), _ = g(di, void 0), v =
|
|
2512
|
+
}), h = g(ui, void 0), _ = g(di, void 0), v = j(i.defaultExpanded ?? !1);
|
|
2513
2513
|
L(() => i.defaultExpanded, (e) => {
|
|
2514
2514
|
e && (v.value = !0);
|
|
2515
2515
|
});
|
|
2516
|
-
let b =
|
|
2516
|
+
let b = j(!1), S = j(!1), w = j(i.children ?? []), T = j(/* @__PURE__ */ new Set());
|
|
2517
2517
|
L(() => i.children, (e) => {
|
|
2518
2518
|
if (!e) {
|
|
2519
2519
|
w.value = [];
|
|
@@ -2530,10 +2530,10 @@ var Wr = {
|
|
|
2530
2530
|
}), k = r(() => Vr({
|
|
2531
2531
|
...i,
|
|
2532
2532
|
children: w.value
|
|
2533
|
-
}) && i.level < Ti), A = r(() => k.value ? l.value ? v.value : !0 : !1),
|
|
2533
|
+
}) && i.level < Ti), A = r(() => k.value ? l.value ? v.value : !0 : !1), te = r(() => v.value ? "chevron-down" : "chevron-right"), re = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), M = n, N = r(() => S.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), P = async () => {
|
|
2534
2534
|
if (b.value) return;
|
|
2535
2535
|
if (!i.handleSeeMore) {
|
|
2536
|
-
|
|
2536
|
+
M("see-more", {
|
|
2537
2537
|
parentId: i.id,
|
|
2538
2538
|
offset: w.value.length
|
|
2539
2539
|
});
|
|
@@ -2574,12 +2574,12 @@ var Wr = {
|
|
|
2574
2574
|
let t = c.value.indexOf(e.option.id);
|
|
2575
2575
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2576
2576
|
}
|
|
2577
|
-
|
|
2577
|
+
M("handle-selected", e);
|
|
2578
2578
|
}, oe = (e) => {
|
|
2579
|
-
|
|
2579
|
+
M("handle-selected", e);
|
|
2580
2580
|
};
|
|
2581
2581
|
return (n, r) => {
|
|
2582
|
-
let s =
|
|
2582
|
+
let s = ie("PvMenuItem", !0);
|
|
2583
2583
|
return O(), o(t, null, [u(vi, y({
|
|
2584
2584
|
...D.value,
|
|
2585
2585
|
...m.value
|
|
@@ -2589,11 +2589,11 @@ var Wr = {
|
|
|
2589
2589
|
queryText: e.queryText,
|
|
2590
2590
|
highlightSearchText: e.highlightSearchText,
|
|
2591
2591
|
showChevron: I(l) && k.value,
|
|
2592
|
-
chevronIcon:
|
|
2592
|
+
chevronIcon: te.value,
|
|
2593
2593
|
expanded: v.value,
|
|
2594
2594
|
onHandleSelected: F,
|
|
2595
2595
|
onToggleExpanded: E,
|
|
2596
|
-
selected:
|
|
2596
|
+
selected: re(i)
|
|
2597
2597
|
}), null, 16, [
|
|
2598
2598
|
"children",
|
|
2599
2599
|
"menuOptionConfig",
|
|
@@ -2607,9 +2607,9 @@ var Wr = {
|
|
|
2607
2607
|
key: 0,
|
|
2608
2608
|
role: "list",
|
|
2609
2609
|
style: C(ee.value)
|
|
2610
|
-
}, [(O(!0), o(t, null,
|
|
2610
|
+
}, [(O(!0), o(t, null, ne(w.value, (t) => (O(), o("li", {
|
|
2611
2611
|
key: t.id,
|
|
2612
|
-
"data-active":
|
|
2612
|
+
"data-active": re(t) ? "true" : null,
|
|
2613
2613
|
class: x(e.itemClass)
|
|
2614
2614
|
}, [u(s, y({ ref_for: !0 }, t, {
|
|
2615
2615
|
disabled: i.disabled || t.disabled,
|
|
@@ -2620,7 +2620,7 @@ var Wr = {
|
|
|
2620
2620
|
highlightSearchText: e.highlightSearchText,
|
|
2621
2621
|
level: e.level + 1,
|
|
2622
2622
|
onHandleSelected: oe,
|
|
2623
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2623
|
+
onSeeMore: r[1] ||= (e) => M("see-more", e)
|
|
2624
2624
|
}), null, 16, [
|
|
2625
2625
|
"disabled",
|
|
2626
2626
|
"selectedIds",
|
|
@@ -3413,8 +3413,8 @@ X.prototype = {
|
|
|
3413
3413
|
Ua = n, Wa = x;
|
|
3414
3414
|
var k = n.nextElementSibling, A = !1;
|
|
3415
3415
|
A = x === 1;
|
|
3416
|
-
var
|
|
3417
|
-
if (
|
|
3416
|
+
var te = fo(K, t, U, r, n, i, e, A);
|
|
3417
|
+
if (te !== !1) return (te === 1 || te === -1) && (A = te === 1), Ya = !0, setTimeout(mo, 30), g(), A && !k ? t.appendChild(U) : n.parentNode.insertBefore(U, A ? k : n), E && da(E, 0, ee - E.scrollTop), W = U.parentNode, S !== void 0 && !Ka && (qa = Math.abs(S - H(n)[T])), v(), _(!0);
|
|
3418
3418
|
}
|
|
3419
3419
|
if (t.contains(U)) return _(!1);
|
|
3420
3420
|
}
|
|
@@ -3814,7 +3814,7 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
3814
3814
|
},
|
|
3815
3815
|
emits: ["list-order-updated"],
|
|
3816
3816
|
setup(e, { expose: t, emit: n }) {
|
|
3817
|
-
let r =
|
|
3817
|
+
let r = j(null), i = le("popoverList"), a = e, s = n;
|
|
3818
3818
|
return a.isSortable && a.isList && Lo(i, [], {
|
|
3819
3819
|
animation: 150,
|
|
3820
3820
|
onUpdate: () => {
|
|
@@ -3833,7 +3833,7 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
3833
3833
|
role: "list",
|
|
3834
3834
|
class: "pv-popover-list",
|
|
3835
3835
|
style: C(e.cssCustomListProperties)
|
|
3836
|
-
}, [
|
|
3836
|
+
}, [re(t.$slots, "default", {}, void 0, !0)], 4)) : re(t.$slots, "default", { key: 1 }, void 0, !0)], 12, Vo));
|
|
3837
3837
|
}
|
|
3838
3838
|
}), [["styles", [".pv-popover-list[data-v-246a9400]{font-size:14px}"]], ["__scopeId", "data-v-246a9400"]]), Uo = ["role"], Wo = [
|
|
3839
3839
|
"data-active",
|
|
@@ -3872,7 +3872,7 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
3872
3872
|
}),
|
|
3873
3873
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedItems", "update:expandedOptionId"]),
|
|
3874
3874
|
setup(e, { emit: c }) {
|
|
3875
|
-
let l = e, d = c, f = se(e, "selectedItems"), p = se(e, "expandedOptionId"), m = oe(), h =
|
|
3875
|
+
let l = e, d = c, f = se(e, "selectedItems"), p = se(e, "expandedOptionId"), m = oe(), h = j(null), _ = j(null), v = j(null), S = j(null), { floatingStyles: w, update: T } = Lr(S, v, {
|
|
3876
3876
|
middleware: [
|
|
3877
3877
|
wr(4),
|
|
3878
3878
|
Er(),
|
|
@@ -3885,7 +3885,7 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
3885
3885
|
p.value !== void 0 && (p.value = void 0);
|
|
3886
3886
|
}, ee = () => {
|
|
3887
3887
|
let e = p.value;
|
|
3888
|
-
E(), e && b(() =>
|
|
3888
|
+
E(), e && b(() => Fe(e));
|
|
3889
3889
|
}, D = [...g(ci, []), m];
|
|
3890
3890
|
k(ci, D), Ge(h, (e) => {
|
|
3891
3891
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(m) || E();
|
|
@@ -3893,75 +3893,79 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
3893
3893
|
let A = N(f.value);
|
|
3894
3894
|
L(f, (e) => {
|
|
3895
3895
|
A.value = e;
|
|
3896
|
-
})
|
|
3897
|
-
|
|
3896
|
+
});
|
|
3897
|
+
let te, ie = (e) => {
|
|
3898
|
+
te = e, f.value = e;
|
|
3899
|
+
};
|
|
3900
|
+
L(A, (e) => {
|
|
3901
|
+
e !== te && e !== f.value && ie(e);
|
|
3898
3902
|
}), k(ai, A), k(si, r(() => l.childrenDisplay === "popover"));
|
|
3899
|
-
let
|
|
3900
|
-
k(oi,
|
|
3901
|
-
let
|
|
3903
|
+
let M = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
3904
|
+
k(oi, M);
|
|
3905
|
+
let P = g(li, void 0), F = g(fi, j(!1)), ae = g(ui, void 0), ce = g(di, void 0), le = r(() => l.singleSelect || l.config?.variant === "radio"), ue = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), de = (e, t, n = !1, r = !0) => {
|
|
3902
3906
|
let i = !r || p.value !== e.id;
|
|
3903
3907
|
p.value = i ? e.id : void 0, i && (S.value = t, b(() => {
|
|
3904
|
-
T(), n &&
|
|
3908
|
+
T(), n && Ne(_.value ?? document.getElementById(m), 0);
|
|
3905
3909
|
}));
|
|
3906
|
-
},
|
|
3910
|
+
}, pe = (e, t = !1) => {
|
|
3907
3911
|
if (l.readOnly) return;
|
|
3908
3912
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
3909
3913
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
3910
3914
|
let t = e.event.currentTarget?.closest("li");
|
|
3911
|
-
t &&
|
|
3915
|
+
t && de(n, t);
|
|
3912
3916
|
return;
|
|
3913
3917
|
}
|
|
3914
3918
|
let r;
|
|
3915
|
-
if (
|
|
3919
|
+
if (M.value && Vr(n)) {
|
|
3916
3920
|
let e;
|
|
3917
|
-
if (
|
|
3918
|
-
let t =
|
|
3921
|
+
if (F.value && P?.value) {
|
|
3922
|
+
let t = P.value.get(n.id);
|
|
3919
3923
|
e = Ur(t?.children ? Hr(t.children) : [], n.children ? Hr(n.children) : []);
|
|
3920
3924
|
} else e = n.children ? Hr(n.children) : [];
|
|
3921
|
-
let t = e.map((e) => e.id), i = A.value, a = (
|
|
3922
|
-
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e],
|
|
3923
|
-
let e = new Set(
|
|
3924
|
-
a ? e.delete(n.id) : e.add(n.id),
|
|
3925
|
+
let t = e.map((e) => e.id), i = A.value, a = (ae?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
3926
|
+
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], ae?.value) {
|
|
3927
|
+
let e = new Set(ae.value);
|
|
3928
|
+
a ? e.delete(n.id) : e.add(n.id), ae.value = e;
|
|
3925
3929
|
}
|
|
3926
|
-
if (
|
|
3927
|
-
let e = new Map(
|
|
3928
|
-
e.delete(n.id),
|
|
3930
|
+
if (ce?.value?.has(n.id)) {
|
|
3931
|
+
let e = new Map(ce.value);
|
|
3932
|
+
e.delete(n.id), ce.value = e;
|
|
3929
3933
|
}
|
|
3930
|
-
} else if (
|
|
3934
|
+
} else if (le.value) r = A.value.length === 1 && A.value[0].id === n.id ? l.disableDeselect ? A.value : [] : [n];
|
|
3931
3935
|
else {
|
|
3932
3936
|
let e = A.value.findIndex((e) => e.id === n.id);
|
|
3933
|
-
if (r = e > -1 ? [...A.value.slice(0, e), ...A.value.slice(e + 1)] : [...A.value, n],
|
|
3937
|
+
if (r = e > -1 ? [...A.value.slice(0, e), ...A.value.slice(e + 1)] : [...A.value, n], M.value && ae?.value && ce?.value) {
|
|
3934
3938
|
let t = e > -1;
|
|
3935
|
-
for (let e of
|
|
3936
|
-
let r =
|
|
3939
|
+
for (let e of ae.value) {
|
|
3940
|
+
let r = P?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
3937
3941
|
if (!r || !(Hr(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
3938
|
-
let i = new Map(
|
|
3939
|
-
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e),
|
|
3942
|
+
let i = new Map(ce.value), a = new Set(i.get(e) ?? []);
|
|
3943
|
+
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), ce.value = i;
|
|
3940
3944
|
break;
|
|
3941
3945
|
}
|
|
3942
3946
|
}
|
|
3943
3947
|
}
|
|
3944
|
-
A.value = r,
|
|
3948
|
+
A.value = r, ie(r), !t && l.childrenDisplay === "popover" && (p.value = void 0), d("handle-selected", l.childrenDisplay === "popover" ? {
|
|
3945
3949
|
...e,
|
|
3946
3950
|
option: n
|
|
3947
3951
|
} : e);
|
|
3948
|
-
},
|
|
3949
|
-
let t =
|
|
3952
|
+
}, ge = (e) => {
|
|
3953
|
+
let t = ue.value;
|
|
3950
3954
|
if (!t) return;
|
|
3951
3955
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
3952
|
-
|
|
3956
|
+
pe({
|
|
3953
3957
|
...e,
|
|
3954
3958
|
option: n
|
|
3955
|
-
}, !0), p.value = void 0, b(() =>
|
|
3956
|
-
},
|
|
3959
|
+
}, !0), p.value = void 0, b(() => Fe(t.id));
|
|
3960
|
+
}, _e = r(() => new Set(A.value.map((e) => e.id))), ve = (e) => {
|
|
3957
3961
|
for (let t of e) {
|
|
3958
|
-
if (
|
|
3959
|
-
let e = t.children?.length ?
|
|
3962
|
+
if (_e.value.has(t.id)) return t;
|
|
3963
|
+
let e = t.children?.length ? ve(t.children) : void 0;
|
|
3960
3964
|
if (e) return e;
|
|
3961
3965
|
}
|
|
3962
|
-
},
|
|
3966
|
+
}, ye = (e) => {
|
|
3963
3967
|
if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
|
|
3964
|
-
let t =
|
|
3968
|
+
let t = ve(e.children);
|
|
3965
3969
|
return {
|
|
3966
3970
|
...e,
|
|
3967
3971
|
children: void 0,
|
|
@@ -3969,54 +3973,54 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
3969
3973
|
subText: t?.text ?? e.subText,
|
|
3970
3974
|
totalChildCount: void 0
|
|
3971
3975
|
};
|
|
3972
|
-
},
|
|
3976
|
+
}, be = (e) => ({
|
|
3973
3977
|
...e,
|
|
3974
3978
|
children: void 0,
|
|
3975
3979
|
totalChildCount: void 0
|
|
3976
|
-
}),
|
|
3980
|
+
}), xe = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, Se = (e) => _e.value.has(e.id) || M.value && ae?.value?.has(e.id) || (M.value || l.childrenDisplay === "popover") && e.children?.length && ve(e.children) ? !0 : null, Ce = (e) => {
|
|
3977
3981
|
let t = e.config?.variant ?? l.config?.variant;
|
|
3978
|
-
return
|
|
3979
|
-
},
|
|
3980
|
-
let e = l.options.filter((e) => !l.readOnly && !e.disabled &&
|
|
3981
|
-
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Yo),
|
|
3982
|
-
}),
|
|
3983
|
-
let e =
|
|
3984
|
-
return e.some((e) => e.id ===
|
|
3985
|
-
}),
|
|
3982
|
+
return le.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
3983
|
+
}, we = (e) => Ce(e) === "menuitem" ? void 0 : !!Se(e), Te = (e) => e.children?.length && !l.highlightParentItems ? null : Ce(e) !== "menuitemcheckbox" && Se(e) || p.value === e.id ? !0 : null, Ee = (e) => Ce(e) !== "menuitemcheckbox" && _e.value.has(e.id) ? !0 : null, De = (e, t) => !!(!t || _e.value.has(e.id) || ae?.value?.has(e.id) || e.children?.length && ve(e.children)), Oe = j(), ke = j(), Ae = r(() => {
|
|
3984
|
+
let e = l.options.filter((e) => !l.readOnly && !e.disabled && De(e, l.isLoading)).map((e) => e.id);
|
|
3985
|
+
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Yo), Oe.value && e.includes(Oe.value) ? Oe.value : e[0];
|
|
3986
|
+
}), je = r(() => {
|
|
3987
|
+
let e = ue.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
3988
|
+
return e.some((e) => e.id === ke.value) ? ke.value : e[0]?.id;
|
|
3989
|
+
}), Me = (e) => {
|
|
3986
3990
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
3987
3991
|
return t.length ? t : Array.from(e?.querySelectorAll("button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex='-1'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
3988
|
-
},
|
|
3989
|
-
let n =
|
|
3992
|
+
}, Ne = (e, t) => {
|
|
3993
|
+
let n = Me(e);
|
|
3990
3994
|
n.length && n[(t + n.length) % n.length]?.focus();
|
|
3991
|
-
},
|
|
3992
|
-
let r =
|
|
3995
|
+
}, Pe = (e, t, n) => {
|
|
3996
|
+
let r = Me(e), i = r.indexOf(t);
|
|
3993
3997
|
!r.length || i < 0 || r[(i + n + r.length) % r.length]?.focus();
|
|
3994
|
-
},
|
|
3995
|
-
|
|
3998
|
+
}, Fe = (e) => {
|
|
3999
|
+
Me(h.value).find((t) => t.dataset.optionId === e)?.focus();
|
|
3996
4000
|
};
|
|
3997
4001
|
L(p, (e) => {
|
|
3998
|
-
|
|
4002
|
+
ke.value = void 0, e && b(() => {
|
|
3999
4003
|
let t = Array.from(h.value?.children ?? []).find((t) => t.dataset.optionId === e);
|
|
4000
4004
|
t && (S.value = t, T());
|
|
4001
4005
|
});
|
|
4002
4006
|
}, { immediate: !0 });
|
|
4003
|
-
let
|
|
4007
|
+
let Ie = (e, t) => {
|
|
4004
4008
|
switch (e.key) {
|
|
4005
|
-
case "ArrowDown": return e.preventDefault(),
|
|
4006
|
-
case "ArrowUp": return e.preventDefault(),
|
|
4007
|
-
case "Home": return e.preventDefault(),
|
|
4008
|
-
case "End": return e.preventDefault(),
|
|
4009
|
+
case "ArrowDown": return e.preventDefault(), Pe(t, e.currentTarget, 1), !0;
|
|
4010
|
+
case "ArrowUp": return e.preventDefault(), Pe(t, e.currentTarget, -1), !0;
|
|
4011
|
+
case "Home": return e.preventDefault(), Ne(t, 0), !0;
|
|
4012
|
+
case "End": return e.preventDefault(), Ne(t, -1), !0;
|
|
4009
4013
|
default: return !1;
|
|
4010
4014
|
}
|
|
4011
|
-
},
|
|
4012
|
-
if (!(e.target !== e.currentTarget ||
|
|
4015
|
+
}, Le = (e, t) => {
|
|
4016
|
+
if (!(e.target !== e.currentTarget || Ie(e, h.value))) switch (e.key) {
|
|
4013
4017
|
case "ArrowRight":
|
|
4014
4018
|
if (!t.children?.length) break;
|
|
4015
|
-
e.preventDefault(),
|
|
4019
|
+
e.preventDefault(), de(t, e.currentTarget, !0, !1);
|
|
4016
4020
|
break;
|
|
4017
4021
|
case "Enter":
|
|
4018
4022
|
case " ":
|
|
4019
|
-
e.preventDefault(), t.children?.length ?
|
|
4023
|
+
e.preventDefault(), t.children?.length ? de(t, e.currentTarget, !0, !1) : pe({
|
|
4020
4024
|
event: e,
|
|
4021
4025
|
option: t
|
|
4022
4026
|
});
|
|
@@ -4029,8 +4033,8 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4029
4033
|
p.value = void 0;
|
|
4030
4034
|
break;
|
|
4031
4035
|
}
|
|
4032
|
-
},
|
|
4033
|
-
if (!
|
|
4036
|
+
}, Re = (e) => {
|
|
4037
|
+
if (!Ie(e, h.value)) switch (e.key) {
|
|
4034
4038
|
case "Enter":
|
|
4035
4039
|
case " ":
|
|
4036
4040
|
e.preventDefault(), d("see-more", { parentId: void 0 });
|
|
@@ -4040,18 +4044,18 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4040
4044
|
E();
|
|
4041
4045
|
break;
|
|
4042
4046
|
}
|
|
4043
|
-
},
|
|
4044
|
-
if (!(e.target !== e.currentTarget ||
|
|
4047
|
+
}, ze = (e, t) => {
|
|
4048
|
+
if (!(e.target !== e.currentTarget || Ie(e, _.value))) switch (e.key) {
|
|
4045
4049
|
case "ArrowLeft":
|
|
4046
4050
|
case "Escape": {
|
|
4047
4051
|
e.preventDefault(), e.key === "Escape" && e.stopPropagation();
|
|
4048
4052
|
let t = p.value;
|
|
4049
|
-
p.value = void 0, t && b(() =>
|
|
4053
|
+
p.value = void 0, t && b(() => Fe(t));
|
|
4050
4054
|
break;
|
|
4051
4055
|
}
|
|
4052
4056
|
case "Enter":
|
|
4053
4057
|
case " ":
|
|
4054
|
-
e.preventDefault(),
|
|
4058
|
+
e.preventDefault(), ge({
|
|
4055
4059
|
event: e,
|
|
4056
4060
|
option: t
|
|
4057
4061
|
});
|
|
@@ -4066,31 +4070,31 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4066
4070
|
ref: h,
|
|
4067
4071
|
role: e.childrenDisplay === "popover" ? "menu" : "list",
|
|
4068
4072
|
class: "pv-popover-list"
|
|
4069
|
-
}, r.$attrs), [(O(!0), o(t, null,
|
|
4073
|
+
}, r.$attrs), [(O(!0), o(t, null, ne(e.options, (t) => he((O(), o("li", {
|
|
4070
4074
|
key: t.id,
|
|
4071
|
-
"data-active":
|
|
4075
|
+
"data-active": Te(t),
|
|
4072
4076
|
"data-option-id": t.id,
|
|
4073
4077
|
"data-testid": e.itemTestId,
|
|
4074
4078
|
class: x(e.itemClass),
|
|
4075
4079
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4076
|
-
}, [u(Ei, y({ ref_for: !0 },
|
|
4077
|
-
"aria-checked": e.childrenDisplay === "popover" ?
|
|
4080
|
+
}, [u(Ei, y({ ref_for: !0 }, ye(t), {
|
|
4081
|
+
"aria-checked": e.childrenDisplay === "popover" ? we(t) : void 0,
|
|
4078
4082
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? I(m) : void 0,
|
|
4079
4083
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
4080
4084
|
"aria-expanded": e.childrenDisplay === "popover" && t.children?.length ? p.value === t.id : void 0,
|
|
4081
4085
|
"aria-haspopup": e.childrenDisplay === "popover" && t.children?.length ? t.popoverRole ?? "menu" : void 0,
|
|
4082
|
-
"data-active":
|
|
4086
|
+
"data-active": Te(t),
|
|
4083
4087
|
"data-dd-action-name": t.rumActionName,
|
|
4084
4088
|
"data-option-id": t.id,
|
|
4085
4089
|
disabled: l.readOnly || t.disabled,
|
|
4086
|
-
config:
|
|
4090
|
+
config: xe(t),
|
|
4087
4091
|
itemClass: e.itemClass,
|
|
4088
4092
|
queryText: e.queryText,
|
|
4089
|
-
role: e.childrenDisplay === "popover" ?
|
|
4090
|
-
tabindex: e.childrenDisplay === "popover" ?
|
|
4091
|
-
onFocus: (e) =>
|
|
4092
|
-
onKeydown: (n) => e.childrenDisplay === "popover" ?
|
|
4093
|
-
onHandleSelected:
|
|
4093
|
+
role: e.childrenDisplay === "popover" ? Ce(t) : void 0,
|
|
4094
|
+
tabindex: e.childrenDisplay === "popover" ? Ae.value === t.id ? 0 : -1 : void 0,
|
|
4095
|
+
onFocus: (e) => Oe.value = t.id,
|
|
4096
|
+
onKeydown: (n) => e.childrenDisplay === "popover" ? Le(n, t) : void 0,
|
|
4097
|
+
onHandleSelected: pe,
|
|
4094
4098
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
4095
4099
|
}), null, 16, [
|
|
4096
4100
|
"aria-checked",
|
|
@@ -4109,7 +4113,7 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4109
4113
|
"tabindex",
|
|
4110
4114
|
"onFocus",
|
|
4111
4115
|
"onKeydown"
|
|
4112
|
-
])], 10, Wo)), [[fe,
|
|
4116
|
+
])], 10, Wo)), [[fe, De(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (O(), o("li", {
|
|
4113
4117
|
key: 0,
|
|
4114
4118
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4115
4119
|
}, [u(Si, {
|
|
@@ -4119,17 +4123,17 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4119
4123
|
loading: e.isSeeMoreLoading,
|
|
4120
4124
|
disabled: e.isSeeMoreLoading,
|
|
4121
4125
|
role: e.childrenDisplay === "popover" ? "menuitem" : void 0,
|
|
4122
|
-
tabindex: e.childrenDisplay === "popover" ?
|
|
4126
|
+
tabindex: e.childrenDisplay === "popover" ? Ae.value === Yo ? 0 : -1 : void 0,
|
|
4123
4127
|
"data-testid": "pv-menu-see-more",
|
|
4124
|
-
onFocus: c[1] ||= (e) =>
|
|
4125
|
-
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ?
|
|
4128
|
+
onFocus: c[1] ||= (e) => Oe.value = Yo,
|
|
4129
|
+
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ? Re(t) : void 0,
|
|
4126
4130
|
onClick: c[3] ||= (e) => d("see-more", { parentId: void 0 })
|
|
4127
4131
|
}, null, 8, [
|
|
4128
4132
|
"loading",
|
|
4129
4133
|
"disabled",
|
|
4130
4134
|
"role",
|
|
4131
4135
|
"tabindex"
|
|
4132
|
-
])], 8, Go)) : a("v-if", !0)], 16, Uo), e.childrenDisplay === "popover" &&
|
|
4136
|
+
])], 8, Go)) : a("v-if", !0)], 16, Uo), e.childrenDisplay === "popover" && ue.value ? (O(), i(n, {
|
|
4133
4137
|
key: 0,
|
|
4134
4138
|
to: "body"
|
|
4135
4139
|
}, [s("div", {
|
|
@@ -4146,38 +4150,38 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4146
4150
|
maxWidth: "calc(100vw - 16px)"
|
|
4147
4151
|
}
|
|
4148
4152
|
}, {
|
|
4149
|
-
default: me(() => [
|
|
4150
|
-
option:
|
|
4153
|
+
default: me(() => [re(r.$slots, "popover", {
|
|
4154
|
+
option: ue.value,
|
|
4151
4155
|
popoverId: I(m),
|
|
4152
4156
|
close: ee
|
|
4153
4157
|
}, () => [s("ul", {
|
|
4154
4158
|
id: I(m),
|
|
4155
4159
|
ref_key: "nestedMenuRef",
|
|
4156
4160
|
ref: _,
|
|
4157
|
-
"aria-label": `${
|
|
4161
|
+
"aria-label": `${ue.value.text} options`,
|
|
4158
4162
|
class: "pv-popover-list",
|
|
4159
4163
|
role: "menu"
|
|
4160
|
-
}, [(O(!0), o(t, null,
|
|
4164
|
+
}, [(O(!0), o(t, null, ne(ue.value.children, (t) => (O(), o("li", {
|
|
4161
4165
|
key: t.id,
|
|
4162
|
-
"data-active":
|
|
4166
|
+
"data-active": Ee(t),
|
|
4163
4167
|
"data-option-id": t.id,
|
|
4164
4168
|
class: x(e.itemClass),
|
|
4165
4169
|
role: "none"
|
|
4166
|
-
}, [u(Ei, y({ ref_for: !0 },
|
|
4167
|
-
"aria-checked":
|
|
4170
|
+
}, [u(Ei, y({ ref_for: !0 }, be(t), {
|
|
4171
|
+
"aria-checked": we(t),
|
|
4168
4172
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
4169
|
-
"data-active":
|
|
4173
|
+
"data-active": Ee(t),
|
|
4170
4174
|
"data-dd-action-name": t.rumActionName,
|
|
4171
4175
|
"data-option-id": t.id,
|
|
4172
4176
|
disabled: l.readOnly || t.disabled,
|
|
4173
|
-
config:
|
|
4177
|
+
config: xe(t),
|
|
4174
4178
|
itemClass: e.itemClass,
|
|
4175
4179
|
queryText: e.queryText,
|
|
4176
|
-
role:
|
|
4177
|
-
tabindex:
|
|
4178
|
-
onFocus: (e) =>
|
|
4179
|
-
onKeydown: (e) =>
|
|
4180
|
-
onHandleSelected:
|
|
4180
|
+
role: Ce(t),
|
|
4181
|
+
tabindex: je.value === t.id ? 0 : -1,
|
|
4182
|
+
onFocus: (e) => ke.value = t.id,
|
|
4183
|
+
onKeydown: (e) => ze(e, t),
|
|
4184
|
+
onHandleSelected: ge,
|
|
4181
4185
|
onSeeMore: c[4] ||= (e) => d("see-more", e)
|
|
4182
4186
|
}), null, 16, [
|
|
4183
4187
|
"aria-checked",
|
|
@@ -4197,7 +4201,7 @@ var Vo = ["data-align"], Ho = /* @__PURE__ */ pt(/* @__PURE__ */ d({
|
|
|
4197
4201
|
_: 3
|
|
4198
4202
|
})], 12, Ko)])) : a("v-if", !0)], 64));
|
|
4199
4203
|
}
|
|
4200
|
-
}), [["styles", [".pv-menu-popover[data-v-
|
|
4204
|
+
}), [["styles", [".pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:\"\";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}"]], ["__scopeId", "data-v-f14f755f"]]), Zo = {
|
|
4201
4205
|
key: 0,
|
|
4202
4206
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
4203
4207
|
}, Qo = /* @__PURE__ */ d({
|
|
@@ -4723,9 +4727,9 @@ var $s = {
|
|
|
4723
4727
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
4724
4728
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
4725
4729
|
if (Q(a) && o.transform !== "strict") {
|
|
4726
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Ps(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Ps(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Ps(x, ["dark"]), w = y || {}, { dark: T } = w, E = Ps(w, ["dark"]), ee = Q(t) ? this._toVariables({ primitive: t }, o) : {}, D = Q(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Q(C) ? this._toVariables({ light: C }, o) : {}, k = Q(S) ? this._toVariables({ dark: S }, o) : {}, A = Q(b) ? this._toVariables({ semantic: b }, o) : {},
|
|
4727
|
-
s = this.transformCSS(e,
|
|
4728
|
-
...
|
|
4730
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Ps(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Ps(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Ps(x, ["dark"]), w = y || {}, { dark: T } = w, E = Ps(w, ["dark"]), ee = Q(t) ? this._toVariables({ primitive: t }, o) : {}, D = Q(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Q(C) ? this._toVariables({ light: C }, o) : {}, k = Q(S) ? this._toVariables({ dark: S }, o) : {}, A = Q(b) ? this._toVariables({ semantic: b }, o) : {}, te = Q(E) ? this._toVariables({ light: E }, o) : {}, j = Q(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [ee.declarations ?? "", ee.tokens], [ie, M] = [D.declarations ?? "", D.tokens || []], [N, P] = [O.declarations ?? "", O.tokens || []], [F, I] = [k.declarations ?? "", k.tokens || []], [ae, oe] = [A.declarations ?? "", A.tokens || []], [se, ce] = [te.declarations ?? "", te.tokens || []], [le, ue] = [j.declarations ?? "", j.tokens || []];
|
|
4731
|
+
s = this.transformCSS(e, ne, "light", "variable", o, r, i), c = re, l = `${this.transformCSS(e, `${ie}${N}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${F}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
4732
|
+
...M,
|
|
4729
4733
|
...P,
|
|
4730
4734
|
...I
|
|
4731
4735
|
])], d = `${this.transformCSS(e, `${ae}${se}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${le}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
@@ -4757,11 +4761,11 @@ var $s = {
|
|
|
4757
4761
|
"colorScheme",
|
|
4758
4762
|
"extend",
|
|
4759
4763
|
"css"
|
|
4760
|
-
]), h = f || {}, { colorScheme: g } = h, _ = Ps(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Ps(v, ["dark"]), x = g || {}, { dark: S } = x, C = Ps(x, ["dark"]), w = Q(m) ? this._toVariables({ [r]: Ms(Ms({}, m), _) }, n) : {}, T = Q(b) ? this._toVariables({ [r]: Ms(Ms({}, b), C) }, n) : {}, E = Q(y) ? this._toVariables({ [r]: Ms(Ms({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A,
|
|
4764
|
+
]), h = f || {}, { colorScheme: g } = h, _ = Ps(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Ps(v, ["dark"]), x = g || {}, { dark: S } = x, C = Ps(x, ["dark"]), w = Q(m) ? this._toVariables({ [r]: Ms(Ms({}, m), _) }, n) : {}, T = Q(b) ? this._toVariables({ [r]: Ms(Ms({}, b), C) }, n) : {}, E = Q(y) ? this._toVariables({ [r]: Ms(Ms({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, te] = [E.declarations ?? "", E.tokens || []];
|
|
4761
4765
|
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
4762
4766
|
...D,
|
|
4763
4767
|
...k,
|
|
4764
|
-
...
|
|
4768
|
+
...te
|
|
4765
4769
|
])], l = us(p, { dt: Ys });
|
|
4766
4770
|
}
|
|
4767
4771
|
return {
|
|
@@ -5120,7 +5124,7 @@ function sc(e) {
|
|
|
5120
5124
|
}
|
|
5121
5125
|
var cc = 0;
|
|
5122
5126
|
function lc(e) {
|
|
5123
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
5127
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = j(!1), r = j(e), i = j(null), a = Cs() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++cc}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, k = function() {}, A = function(t) {
|
|
5124
5128
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5125
5129
|
if (s) {
|
|
5126
5130
|
var o = rc(rc({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
@@ -5145,7 +5149,7 @@ function lc(e) {
|
|
|
5145
5149
|
!s || !n.value || (k(), bs(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5146
5150
|
},
|
|
5147
5151
|
load: A,
|
|
5148
|
-
isLoaded:
|
|
5152
|
+
isLoaded: te(n)
|
|
5149
5153
|
};
|
|
5150
5154
|
}
|
|
5151
5155
|
//#endregion
|
|
@@ -5633,7 +5637,7 @@ function zc() {
|
|
|
5633
5637
|
}), Rc = [];
|
|
5634
5638
|
}
|
|
5635
5639
|
function Bc(e, t) {
|
|
5636
|
-
var n =
|
|
5640
|
+
var n = j(!1), r = function() {
|
|
5637
5641
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
5638
5642
|
var e, n = Dc.getCommonTheme?.call(Dc) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
5639
5643
|
Dc.load(r?.css, jc({ name: "primitive-variables" }, s)), Dc.load(i?.css, jc({ name: "semantic-variables" }, s)), Dc.load(a?.css, jc({ name: "global-variables" }, s)), Dc.loadStyle(jc({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|