@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 ae, shallowRef as oe, toDisplayString as M, toValue as N, unref as P, useAttrs as F, useId as se, useModel as ce, useSlots as le, useTemplateRef as ue, vModelCheckbox as de, vShow as fe, watch as I, 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 = {};
|
|
@@ -907,7 +907,7 @@ function jn(e, t = {}) {
|
|
|
907
907
|
clearTimeout(e), i(), i = Dn;
|
|
908
908
|
}, o;
|
|
909
909
|
return (s) => {
|
|
910
|
-
let c =
|
|
910
|
+
let c = N(e), l = N(t.maxWait);
|
|
911
911
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
912
912
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
913
913
|
n && a(n), r = void 0, e(o());
|
|
@@ -941,20 +941,20 @@ function In(e, t, n) {
|
|
|
941
941
|
var Ln = Cn ? window : void 0, Rn = Cn ? window.document : void 0;
|
|
942
942
|
Cn && window.navigator, Cn && window.location;
|
|
943
943
|
function zn(e) {
|
|
944
|
-
let t =
|
|
944
|
+
let t = N(e);
|
|
945
945
|
return t?.$el ?? t;
|
|
946
946
|
}
|
|
947
947
|
function Bn(...e) {
|
|
948
948
|
let t = [], n = () => {
|
|
949
949
|
t.forEach((e) => e()), t.length = 0;
|
|
950
950
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
951
|
-
let t = Mn(
|
|
951
|
+
let t = Mn(N(e[0])).filter((e) => e != null);
|
|
952
952
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
953
953
|
}), o = In(() => [
|
|
954
954
|
a.value?.map((e) => zn(e)) ?? [Ln].filter((e) => e != null),
|
|
955
|
-
Mn(
|
|
956
|
-
Mn(
|
|
957
|
-
|
|
955
|
+
Mn(N(a.value ? e[1] : e[0])),
|
|
956
|
+
Mn(P(a.value ? e[2] : e[1])),
|
|
957
|
+
N(a.value ? e[3] : e[2])
|
|
958
958
|
], ([e, r, a, o]) => {
|
|
959
959
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
960
960
|
let s = En(o) ? { ...o } : o;
|
|
@@ -977,7 +977,7 @@ function Hn(e, t, n = {}) {
|
|
|
977
977
|
let e = { passive: !0 };
|
|
978
978
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", Dn, e)), r.document.documentElement.addEventListener("click", Dn, e);
|
|
979
979
|
}
|
|
980
|
-
let c = !0, l = (e) =>
|
|
980
|
+
let c = !0, l = (e) => N(i).some((t) => {
|
|
981
981
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
982
982
|
{
|
|
983
983
|
let n = zn(t);
|
|
@@ -985,11 +985,11 @@ function Hn(e, t, n = {}) {
|
|
|
985
985
|
}
|
|
986
986
|
});
|
|
987
987
|
function u(e) {
|
|
988
|
-
let t =
|
|
988
|
+
let t = N(e);
|
|
989
989
|
return t && t.$.subTree.shapeFlag === 16;
|
|
990
990
|
}
|
|
991
991
|
function d(e, t) {
|
|
992
|
-
let n =
|
|
992
|
+
let n = N(e), r = n.$.subTree && n.$.subTree.children;
|
|
993
993
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
994
994
|
}
|
|
995
995
|
let f = (n) => {
|
|
@@ -1033,7 +1033,7 @@ function Hn(e, t, n = {}) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1035
1035
|
function Un() {
|
|
1036
|
-
let e =
|
|
1036
|
+
let e = oe(!1), t = p();
|
|
1037
1037
|
return t && E(() => {
|
|
1038
1038
|
e.value = !0;
|
|
1039
1039
|
}, t), e;
|
|
@@ -1047,7 +1047,7 @@ function Gn(e, t, n = {}) {
|
|
|
1047
1047
|
let { window: i = Ln, ...a } = n, o, s = /* @__PURE__ */ Wn(() => i && "MutationObserver" in i), c = () => {
|
|
1048
1048
|
o &&= (o.disconnect(), void 0);
|
|
1049
1049
|
}, l = I(r(() => {
|
|
1050
|
-
let t = Mn(
|
|
1050
|
+
let t = Mn(N(e)).map(zn).filter(wn);
|
|
1051
1051
|
return new Set(t);
|
|
1052
1052
|
}), (e) => {
|
|
1053
1053
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -1089,7 +1089,7 @@ function qn(e, t, n = {}) {
|
|
|
1089
1089
|
let { window: i = Ln, ...a } = n, o, s = /* @__PURE__ */ Wn(() => i && "ResizeObserver" in i), c = () => {
|
|
1090
1090
|
o &&= (o.disconnect(), void 0);
|
|
1091
1091
|
}, l = I(r(() => {
|
|
1092
|
-
let t =
|
|
1092
|
+
let t = N(e);
|
|
1093
1093
|
return Array.isArray(t) ? t.map((e) => zn(e)) : [zn(t)];
|
|
1094
1094
|
}), (e) => {
|
|
1095
1095
|
if (c(), s.value && i) {
|
|
@@ -1108,7 +1108,7 @@ function qn(e, t, n = {}) {
|
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
1110
|
function Jn(e, t = {}) {
|
|
1111
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
1111
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = oe(0), c = oe(0), l = oe(0), u = oe(0), d = oe(0), f = oe(0), p = oe(0), m = oe(0);
|
|
1112
1112
|
function h() {
|
|
1113
1113
|
let t = zn(e);
|
|
1114
1114
|
if (!t) {
|
|
@@ -1139,7 +1139,7 @@ function Jn(e, t = {}) {
|
|
|
1139
1139
|
};
|
|
1140
1140
|
}
|
|
1141
1141
|
function Yn(e, t = {}) {
|
|
1142
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Ln } = t, s =
|
|
1142
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Ln } = t, s = oe(!1), c, l = (e) => {
|
|
1143
1143
|
let t = e ? n : i;
|
|
1144
1144
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
1145
1145
|
};
|
|
@@ -1192,7 +1192,7 @@ var $n = {
|
|
|
1192
1192
|
srcPathOverride: { type: String }
|
|
1193
1193
|
},
|
|
1194
1194
|
setup(e) {
|
|
1195
|
-
let t = e, n =
|
|
1195
|
+
let t = e, n = j(!0), i = r(() => $n[t.size] || "32px"), a = r(() => ({
|
|
1196
1196
|
"pv-icon": n.value,
|
|
1197
1197
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1198
1198
|
})), 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}`);
|
|
@@ -1215,7 +1215,7 @@ var $n = {
|
|
|
1215
1215
|
//#endregion
|
|
1216
1216
|
//#region src/web-components/utils.ts
|
|
1217
1217
|
function ir() {
|
|
1218
|
-
let e =
|
|
1218
|
+
let e = j(!1), t = p()?.root || {};
|
|
1219
1219
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
1220
1220
|
}
|
|
1221
1221
|
//#endregion
|
|
@@ -1227,7 +1227,7 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1227
1227
|
size: { type: null }
|
|
1228
1228
|
},
|
|
1229
1229
|
setup(e) {
|
|
1230
|
-
let t = e, n = ir(), i =
|
|
1230
|
+
let t = e, n = ir(), i = j(null), a = r(() => ({
|
|
1231
1231
|
"pv-icon": !0,
|
|
1232
1232
|
[`pv-icon-${t.size}`]: t.size != null && er.includes(t.size)
|
|
1233
1233
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
@@ -1277,7 +1277,7 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1277
1277
|
key: 0,
|
|
1278
1278
|
name: e.icon,
|
|
1279
1279
|
size: r[e.size]
|
|
1280
|
-
}, null, 8, ["name", "size"])) : e.initials ? (O(), o(t, { key: 1 }, [l(
|
|
1280
|
+
}, null, 8, ["name", "size"])) : e.initials ? (O(), o(t, { key: 1 }, [l(M(e.initials), 1)], 64)) : e.image ? (O(), o("img", {
|
|
1281
1281
|
key: 2,
|
|
1282
1282
|
src: e.image,
|
|
1283
1283
|
alt: e.alt ?? ""
|
|
@@ -1318,7 +1318,7 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1318
1318
|
return (e, t) => (O(), o("div", {
|
|
1319
1319
|
class: x(i.value),
|
|
1320
1320
|
"data-testid": "pv-counter-badge"
|
|
1321
|
-
},
|
|
1321
|
+
}, M(n.value), 3));
|
|
1322
1322
|
}
|
|
1323
1323
|
}), dr = ".pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}", fr = (e, t) => {
|
|
1324
1324
|
let n = e.__vccOpts || e;
|
|
@@ -1363,7 +1363,7 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1363
1363
|
config: { type: Object }
|
|
1364
1364
|
},
|
|
1365
1365
|
setup(e) {
|
|
1366
|
-
let n = e, c =
|
|
1366
|
+
let n = e, c = j(null), l = j(null), u = r(() => n.subText || null), d = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = (e, t, n) => {
|
|
1367
1367
|
let r = d(n), i = RegExp(`(${r})`, "gi");
|
|
1368
1368
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
1369
1369
|
}, p = () => {
|
|
@@ -1406,11 +1406,11 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1406
1406
|
}, [s("span", {
|
|
1407
1407
|
ref_key: "mainText",
|
|
1408
1408
|
ref: c
|
|
1409
|
-
},
|
|
1409
|
+
}, M(e.text), 513), e.subduedText ? (O(), o("span", {
|
|
1410
1410
|
key: 0,
|
|
1411
1411
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
1412
1412
|
style: { "padding-left": "4px" }
|
|
1413
|
-
},
|
|
1413
|
+
}, M(e.subduedText), 3)) : a("v-if", !0)], 8, hr), u.value ? (O(), o("span", {
|
|
1414
1414
|
key: 0,
|
|
1415
1415
|
ref_key: "subText",
|
|
1416
1416
|
ref: l,
|
|
@@ -1421,12 +1421,12 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1421
1421
|
{ "pv-text-subdued": !e.disabled }
|
|
1422
1422
|
]),
|
|
1423
1423
|
title: e.hoverTitle ?? u.value
|
|
1424
|
-
},
|
|
1424
|
+
}, M(u.value), 11, gr)) : a("v-if", !0)]),
|
|
1425
1425
|
e.secondaryText && typeof e.secondaryText == "number" ? (O(), i(pr, {
|
|
1426
1426
|
key: 3,
|
|
1427
1427
|
value: e.secondaryText,
|
|
1428
1428
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
1429
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (O(), o("span", _r,
|
|
1429
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (O(), o("span", _r, M(e.secondaryText), 1)) : a("v-if", !0)
|
|
1430
1430
|
], 64));
|
|
1431
1431
|
}
|
|
1432
1432
|
}), yr = ["for"], br = { key: 0 }, xr = [
|
|
@@ -1462,19 +1462,19 @@ var ar = ["xlink:href"], or = /* @__PURE__ */ d({
|
|
|
1462
1462
|
setup(e) {
|
|
1463
1463
|
let t = e.id ?? se(), n = ce(e, "modelValue");
|
|
1464
1464
|
return (r, i) => (O(), o("label", {
|
|
1465
|
-
for:
|
|
1465
|
+
for: P(t),
|
|
1466
1466
|
class: x(["pv-label pv-switch pv-label-hover", {
|
|
1467
1467
|
"pv-input-small": e.size === "md",
|
|
1468
1468
|
"pv-input-xsmall": e.size === "sm",
|
|
1469
1469
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
1470
1470
|
}])
|
|
1471
|
-
}, [e.label ? (O(), o("span", br,
|
|
1471
|
+
}, [e.label ? (O(), o("span", br, M(e.label), 1)) : a("v-if", !0), he(s("input", {
|
|
1472
1472
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1473
1473
|
disabled: e.disabled,
|
|
1474
1474
|
"aria-label": e.ariaLabel,
|
|
1475
1475
|
type: "checkbox",
|
|
1476
1476
|
role: "switch",
|
|
1477
|
-
id:
|
|
1477
|
+
id: P(t)
|
|
1478
1478
|
}, null, 8, xr), [[de, n.value]])], 10, yr));
|
|
1479
1479
|
}
|
|
1480
1480
|
}), [["styles", [".pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}"]], ["__scopeId", "data-v-73e6d2b2"]]);
|
|
@@ -1494,18 +1494,18 @@ function Tr(e, t) {
|
|
|
1494
1494
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1495
1495
|
}
|
|
1496
1496
|
function Er(e, t = {}) {
|
|
1497
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ir(), l = i ?? le(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f =
|
|
1497
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ir(), l = i ?? le(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
|
|
1498
1498
|
T(() => {
|
|
1499
1499
|
f.value = d();
|
|
1500
1500
|
});
|
|
1501
|
-
let p =
|
|
1501
|
+
let p = j(!1), m = null, h = null, g = () => {
|
|
1502
1502
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
1503
1503
|
}, _ = () => {
|
|
1504
1504
|
if (!c.value) {
|
|
1505
1505
|
p.value = !1;
|
|
1506
1506
|
return;
|
|
1507
1507
|
}
|
|
1508
|
-
let t =
|
|
1508
|
+
let t = P(n);
|
|
1509
1509
|
if (!t) {
|
|
1510
1510
|
p.value = !1;
|
|
1511
1511
|
return;
|
|
@@ -1519,7 +1519,7 @@ function Er(e, t = {}) {
|
|
|
1519
1519
|
}, v = () => {
|
|
1520
1520
|
if (!c.value) return;
|
|
1521
1521
|
g();
|
|
1522
|
-
let t =
|
|
1522
|
+
let t = P(n);
|
|
1523
1523
|
if (!t) {
|
|
1524
1524
|
p.value = !1;
|
|
1525
1525
|
return;
|
|
@@ -1532,7 +1532,7 @@ function Er(e, t = {}) {
|
|
|
1532
1532
|
characterData: !0
|
|
1533
1533
|
}));
|
|
1534
1534
|
};
|
|
1535
|
-
return E(v), w(g), I(() =>
|
|
1535
|
+
return E(v), w(g), I(() => P(n), () => {
|
|
1536
1536
|
c.value && v();
|
|
1537
1537
|
}), {
|
|
1538
1538
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1604,7 +1604,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1604
1604
|
"position-try-fallbacks: flip-block",
|
|
1605
1605
|
"position-visibility: anchors-visible",
|
|
1606
1606
|
`anchor-scope: ${Or}`
|
|
1607
|
-
].every((e) => CSS.supports(e)), g =
|
|
1607
|
+
].every((e) => CSS.supports(e)), g = j(!1), _ = j(null), v = j(null), y = j(null), x = j(null), S = Yn(v), w = Yn(x), T = j(!1), ee = {
|
|
1608
1608
|
"top-center": "top",
|
|
1609
1609
|
"bottom-center": "bottom",
|
|
1610
1610
|
"center-left": "left",
|
|
@@ -1646,7 +1646,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1646
1646
|
area: "bottom span-left",
|
|
1647
1647
|
margin: "margin-block-start"
|
|
1648
1648
|
}
|
|
1649
|
-
}, A = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"),
|
|
1649
|
+
}, A = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), te = r(() => h ? { "anchor-scope": Or } : void 0), ne = r(() => h ? { "anchor-name": Or } : void 0), ie = r(() => {
|
|
1650
1650
|
let e = k[t.position];
|
|
1651
1651
|
return {
|
|
1652
1652
|
"position-anchor": Or,
|
|
@@ -1654,7 +1654,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1654
1654
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1655
1655
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1656
1656
|
};
|
|
1657
|
-
}),
|
|
1657
|
+
}), ae = () => {}, oe = () => ({});
|
|
1658
1658
|
if (!h) {
|
|
1659
1659
|
let e = [];
|
|
1660
1660
|
t.disableAutoPlacement || e.push(un({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(cn(t.offset));
|
|
@@ -1663,9 +1663,9 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1663
1663
|
strategy: t.positioningStrategy,
|
|
1664
1664
|
middleware: e
|
|
1665
1665
|
});
|
|
1666
|
-
|
|
1666
|
+
ae = n.update, oe = () => n.floatingStyles.value;
|
|
1667
1667
|
let i = Jn(y), a = /* @__PURE__ */ Pn(() => {
|
|
1668
|
-
c.value &&
|
|
1668
|
+
c.value && ae();
|
|
1669
1669
|
}, 5);
|
|
1670
1670
|
I([
|
|
1671
1671
|
i.top,
|
|
@@ -1680,22 +1680,22 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1680
1680
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1681
1681
|
]) });
|
|
1682
1682
|
}
|
|
1683
|
-
let
|
|
1684
|
-
...
|
|
1683
|
+
let M = r(() => ({
|
|
1684
|
+
...oe(),
|
|
1685
1685
|
zIndex: t.zIndex
|
|
1686
|
-
})),
|
|
1687
|
-
|
|
1686
|
+
})), N, F, se = () => {
|
|
1687
|
+
N && clearTimeout(N), N = void 0;
|
|
1688
1688
|
}, le = () => {
|
|
1689
|
-
|
|
1689
|
+
F && clearTimeout(F), F = void 0;
|
|
1690
1690
|
}, ue = (e) => {
|
|
1691
|
-
se(), le(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ?
|
|
1692
|
-
c.value = !0,
|
|
1691
|
+
se(), le(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? N = setTimeout(() => {
|
|
1692
|
+
c.value = !0, N = void 0;
|
|
1693
1693
|
}, t.delay) : c.value = e);
|
|
1694
1694
|
}, de = () => {
|
|
1695
1695
|
let e = x.value;
|
|
1696
1696
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1697
1697
|
}, pe = r(() => t.showOnHover ? t.disableInteractive ? S.value || T.value : S.value || w.value || T.value : !1), me = () => {
|
|
1698
|
-
t.showOnHover || ue(
|
|
1698
|
+
t.showOnHover || ue(N ? !1 : !c.value);
|
|
1699
1699
|
}, ge = (e) => {
|
|
1700
1700
|
let t = e.newState === "open";
|
|
1701
1701
|
c.value !== t && (c.value = t);
|
|
@@ -1704,7 +1704,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1704
1704
|
};
|
|
1705
1705
|
return I(c, async (e) => {
|
|
1706
1706
|
if (!h) {
|
|
1707
|
-
e &&
|
|
1707
|
+
e && ae();
|
|
1708
1708
|
return;
|
|
1709
1709
|
}
|
|
1710
1710
|
await b(), de();
|
|
@@ -1714,37 +1714,37 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1714
1714
|
ue(!0);
|
|
1715
1715
|
return;
|
|
1716
1716
|
}
|
|
1717
|
-
se(), t.closeDelay > 0 ? (le(),
|
|
1718
|
-
|
|
1717
|
+
se(), t.closeDelay > 0 ? (le(), F = setTimeout(() => {
|
|
1718
|
+
F = void 0, pe.value || ue(!1);
|
|
1719
1719
|
}, t.closeDelay)) : ue(!1);
|
|
1720
1720
|
}
|
|
1721
1721
|
}), I(m, (e) => {
|
|
1722
1722
|
e ? h && c.value && b(de) : (se(), le(), c.value = !1);
|
|
1723
1723
|
}), E(() => {
|
|
1724
|
-
y.value = v.value, g.value = !0, c.value && b(() => h ? de() :
|
|
1724
|
+
y.value = v.value, g.value = !0, c.value && b(() => h ? de() : ae());
|
|
1725
1725
|
}), D(() => {
|
|
1726
1726
|
se(), le();
|
|
1727
1727
|
}), (r, l) => (O(), o("div", {
|
|
1728
1728
|
ref_key: "root",
|
|
1729
1729
|
ref: _,
|
|
1730
|
-
style: C([{ width: "fit-content" },
|
|
1730
|
+
style: C([{ width: "fit-content" }, te.value]),
|
|
1731
1731
|
onKeydown: _e
|
|
1732
1732
|
}, [s("div", {
|
|
1733
1733
|
ref_key: "triggerWrapper",
|
|
1734
1734
|
ref: v,
|
|
1735
|
-
style: C(
|
|
1735
|
+
style: C(ne.value),
|
|
1736
1736
|
onClick: me,
|
|
1737
1737
|
onFocusin: l[0] ||= (e) => T.value = !0,
|
|
1738
1738
|
onFocusout: l[1] ||= (e) => T.value = !1
|
|
1739
|
-
}, [
|
|
1739
|
+
}, [re(r.$slots, "trigger")], 36), g.value && P(h) && m.value ? (O(), o("div", {
|
|
1740
1740
|
key: 0,
|
|
1741
1741
|
ref_key: "floating",
|
|
1742
1742
|
ref: x,
|
|
1743
1743
|
class: "pv-floating pv-floating-native",
|
|
1744
1744
|
popover: A.value,
|
|
1745
|
-
style: C(
|
|
1745
|
+
style: C(ie.value),
|
|
1746
1746
|
onToggle: ge
|
|
1747
|
-
}, [
|
|
1747
|
+
}, [re(r.$slots, "content")], 44, Dr)) : m.value ? (O(), i(n, {
|
|
1748
1748
|
key: 1,
|
|
1749
1749
|
to: e.teleportLocation,
|
|
1750
1750
|
disabled: !t.useTeleport
|
|
@@ -1752,8 +1752,8 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1752
1752
|
ref_key: "floating",
|
|
1753
1753
|
ref: x,
|
|
1754
1754
|
class: "pv-floating",
|
|
1755
|
-
style: C(
|
|
1756
|
-
}, [
|
|
1755
|
+
style: C(M.value)
|
|
1756
|
+
}, [re(r.$slots, "content")], 4), [[fe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1757
1757
|
}
|
|
1758
1758
|
}), [["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"]]), Ar = ["data-variant"], jr = /* @__PURE__ */ d({
|
|
1759
1759
|
__name: "PvTooltipV2",
|
|
@@ -1797,7 +1797,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1797
1797
|
setup(e) {
|
|
1798
1798
|
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 } = Er("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
1799
1799
|
return (t, n) => (O(), i(kr, S(h(t.$props)), c({
|
|
1800
|
-
trigger: me(() => [
|
|
1800
|
+
trigger: me(() => [re(t.$slots, "trigger", {}, () => [s("p", null, M(e.label), 1)])]),
|
|
1801
1801
|
_: 2
|
|
1802
1802
|
}, [f.value ? {
|
|
1803
1803
|
name: "content",
|
|
@@ -1805,7 +1805,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1805
1805
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1806
1806
|
role: "tooltip",
|
|
1807
1807
|
"data-variant": e.variant
|
|
1808
|
-
}, [
|
|
1808
|
+
}, [re(t.$slots, "content", {}, () => [l(M(e.description), 1)])], 10, Ar)]),
|
|
1809
1809
|
key: "0"
|
|
1810
1810
|
} : void 0]), 1040));
|
|
1811
1811
|
}
|
|
@@ -1860,7 +1860,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1860
1860
|
_: 2
|
|
1861
1861
|
}, [e.tooltipText ? {
|
|
1862
1862
|
name: "content",
|
|
1863
|
-
fn: me(() => [l(
|
|
1863
|
+
fn: me(() => [l(M(e.tooltipText), 1)]),
|
|
1864
1864
|
key: "0"
|
|
1865
1865
|
} : void 0]), 1032, ["position"]));
|
|
1866
1866
|
}
|
|
@@ -1904,7 +1904,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1904
1904
|
_: 2
|
|
1905
1905
|
}, [p.value ? {
|
|
1906
1906
|
name: "content",
|
|
1907
|
-
fn: me(() => [l(
|
|
1907
|
+
fn: me(() => [l(M(p.value), 1)]),
|
|
1908
1908
|
key: "0"
|
|
1909
1909
|
} : void 0]), 1024)], 2112));
|
|
1910
1910
|
}
|
|
@@ -1956,7 +1956,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1956
1956
|
},
|
|
1957
1957
|
emits: ["handle-selected", "toggle-expanded"],
|
|
1958
1958
|
setup(e, { emit: t }) {
|
|
1959
|
-
let n = e, c = ue("inputRef"), l = g(Ir, void 0), d = g(Lr,
|
|
1959
|
+
let n = e, c = ue("inputRef"), l = g(Ir, void 0), d = g(Lr, j(!1)), f = g(Br, void 0), m = g(Vr, void 0), h = g(Rr, r(() => !1)), _ = r(() => {
|
|
1960
1960
|
if (!d.value || !Xn(n)) return [];
|
|
1961
1961
|
let e = n.children ? Zn(n.children) : [];
|
|
1962
1962
|
if (f?.value) {
|
|
@@ -1993,17 +1993,17 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
1993
1993
|
}), E = r(() => n.action ?? n.menuOptionConfig?.action), ee = r(() => {
|
|
1994
1994
|
let e = n.menuOptionConfig?.variant;
|
|
1995
1995
|
return e !== "checkbox" && e !== "radio";
|
|
1996
|
-
}), D = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${D.value}-${p()?.uid}`, A = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"),
|
|
1997
|
-
n.disabled || (
|
|
1996
|
+
}), 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) => {
|
|
1997
|
+
n.disabled || (ne("handle-selected", {
|
|
1998
1998
|
option: { ...n },
|
|
1999
1999
|
event: e
|
|
2000
2000
|
}), b(() => {
|
|
2001
2001
|
c.value && (c.value.checked = v.value, c.value.indeterminate = S.value);
|
|
2002
2002
|
}));
|
|
2003
|
-
},
|
|
2003
|
+
}, ie = (e) => {
|
|
2004
2004
|
if (!h.value) return;
|
|
2005
2005
|
let t = e.target.closest("a, button, input, select, textarea, [contenteditable], [role='button'], [role='checkbox'], [role='link'], [role='radio'], [role='switch']");
|
|
2006
|
-
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(),
|
|
2006
|
+
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(), re(e));
|
|
2007
2007
|
};
|
|
2008
2008
|
return (t, r) => (O(), o("label", y(t.$attrs, {
|
|
2009
2009
|
class: ["pv-label pv-label-hover pv-flex pv-full-width pv-stack-4 pv-inset-square-8", C.value],
|
|
@@ -2012,8 +2012,8 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2012
2012
|
paddingTop: e.subText ? "4px" : void 0,
|
|
2013
2013
|
paddingBottom: e.subText ? "4px" : void 0
|
|
2014
2014
|
}],
|
|
2015
|
-
"data-testid":
|
|
2016
|
-
onClick:
|
|
2015
|
+
"data-testid": te.value,
|
|
2016
|
+
onClick: ie
|
|
2017
2017
|
}), [
|
|
2018
2018
|
s("input", {
|
|
2019
2019
|
ref_key: "inputRef",
|
|
@@ -2024,12 +2024,12 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2024
2024
|
checked: v.value,
|
|
2025
2025
|
indeterminate: S.value,
|
|
2026
2026
|
class: x(A.value),
|
|
2027
|
-
tabindex:
|
|
2028
|
-
"aria-hidden":
|
|
2027
|
+
tabindex: P(h) ? -1 : void 0,
|
|
2028
|
+
"aria-hidden": P(h) ? !0 : void 0,
|
|
2029
2029
|
disabled: e.disabled,
|
|
2030
|
-
onChange: r[0] ||= (e) =>
|
|
2030
|
+
onChange: r[0] ||= (e) => P(h) ? void 0 : re(e)
|
|
2031
2031
|
}, null, 42, Kr),
|
|
2032
|
-
e.menuOptionConfig?.renderer ? (O(), i(
|
|
2032
|
+
e.menuOptionConfig?.renderer ? (O(), i(ae(e.menuOptionConfig?.renderer), y({ key: 0 }, T.value, { selected: v.value }), null, 16, ["selected"])) : (O(), i(vr, y({ key: 1 }, T.value, {
|
|
2033
2033
|
menuOptionConfig: e.menuOptionConfig,
|
|
2034
2034
|
queryText: e.queryText,
|
|
2035
2035
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2066,7 +2066,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2066
2066
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2067
2067
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2068
2068
|
"aria-expanded": e.expanded,
|
|
2069
|
-
onClick: r[1] ||= ge((e) =>
|
|
2069
|
+
onClick: r[1] ||= ge((e) => ne("toggle-expanded"), ["prevent", "stop"])
|
|
2070
2070
|
}, [u(or, {
|
|
2071
2071
|
name: e.chevronIcon ?? "chevron-right",
|
|
2072
2072
|
size: 12
|
|
@@ -2167,7 +2167,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2167
2167
|
name: e.leftIcon,
|
|
2168
2168
|
"data-testid": "pv-button-left-icon"
|
|
2169
2169
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
2170
|
-
e.label ? (O(), o("span", ti,
|
|
2170
|
+
e.label ? (O(), o("span", ti, M(e.label), 1)) : a("v-if", !0),
|
|
2171
2171
|
e.rightCounterBadge ? (O(), i(pr, {
|
|
2172
2172
|
key: 3,
|
|
2173
2173
|
value: e.rightCounterBadge,
|
|
@@ -2219,7 +2219,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2219
2219
|
}),
|
|
2220
2220
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2221
2221
|
setup(e, { emit: n }) {
|
|
2222
|
-
let i = e, s = g(Ir, void 0), c = ce(e, "selectedIds"), l = g(Wr,
|
|
2222
|
+
let i = e, s = g(Ir, void 0), c = ce(e, "selectedIds"), l = g(Wr, j(!1)), d = g(Ur, j(!1)), f = g(Rr, r(() => !1)), p = F(), m = r(() => {
|
|
2223
2223
|
if (!f.value) return {};
|
|
2224
2224
|
let e = new Set([
|
|
2225
2225
|
"aria-checked",
|
|
@@ -2236,11 +2236,11 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2236
2236
|
"tabindex"
|
|
2237
2237
|
]);
|
|
2238
2238
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
2239
|
-
}), h = g(Vr, void 0), _ = g(Hr, void 0), v =
|
|
2239
|
+
}), h = g(Vr, void 0), _ = g(Hr, void 0), v = j(i.defaultExpanded ?? !1);
|
|
2240
2240
|
I(() => i.defaultExpanded, (e) => {
|
|
2241
2241
|
e && (v.value = !0);
|
|
2242
2242
|
});
|
|
2243
|
-
let b =
|
|
2243
|
+
let b = j(!1), S = j(!1), w = j(i.children ?? []), T = j(/* @__PURE__ */ new Set());
|
|
2244
2244
|
I(() => i.children, (e) => {
|
|
2245
2245
|
if (!e) {
|
|
2246
2246
|
w.value = [];
|
|
@@ -2257,10 +2257,10 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2257
2257
|
}), k = r(() => Xn({
|
|
2258
2258
|
...i,
|
|
2259
2259
|
children: w.value
|
|
2260
|
-
}) && i.level < ai), A = r(() => k.value ? l.value ? v.value : !0 : !1),
|
|
2260
|
+
}) && i.level < ai), 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), ae = n, oe = r(() => S.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), M = async () => {
|
|
2261
2261
|
if (b.value) return;
|
|
2262
2262
|
if (!i.handleSeeMore) {
|
|
2263
|
-
|
|
2263
|
+
ae("see-more", {
|
|
2264
2264
|
parentId: i.id,
|
|
2265
2265
|
offset: w.value.length
|
|
2266
2266
|
});
|
|
@@ -2292,7 +2292,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2292
2292
|
} finally {
|
|
2293
2293
|
b.value = !1;
|
|
2294
2294
|
}
|
|
2295
|
-
},
|
|
2295
|
+
}, N = (e) => {
|
|
2296
2296
|
if (l.value && k.value && e.option.id === i.id && !d.value) {
|
|
2297
2297
|
E();
|
|
2298
2298
|
return;
|
|
@@ -2301,12 +2301,12 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2301
2301
|
let t = c.value.indexOf(e.option.id);
|
|
2302
2302
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2303
2303
|
}
|
|
2304
|
-
|
|
2304
|
+
ae("handle-selected", e);
|
|
2305
2305
|
}, se = (e) => {
|
|
2306
|
-
|
|
2306
|
+
ae("handle-selected", e);
|
|
2307
2307
|
};
|
|
2308
2308
|
return (n, r) => {
|
|
2309
|
-
let s =
|
|
2309
|
+
let s = ie("PvMenuItem", !0);
|
|
2310
2310
|
return O(), o(t, null, [u(Yr, y({
|
|
2311
2311
|
...D.value,
|
|
2312
2312
|
...m.value
|
|
@@ -2315,12 +2315,12 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2315
2315
|
menuOptionConfig: e.config,
|
|
2316
2316
|
queryText: e.queryText,
|
|
2317
2317
|
highlightSearchText: e.highlightSearchText,
|
|
2318
|
-
showChevron:
|
|
2319
|
-
chevronIcon:
|
|
2318
|
+
showChevron: P(l) && k.value,
|
|
2319
|
+
chevronIcon: te.value,
|
|
2320
2320
|
expanded: v.value,
|
|
2321
|
-
onHandleSelected:
|
|
2321
|
+
onHandleSelected: N,
|
|
2322
2322
|
onToggleExpanded: E,
|
|
2323
|
-
selected:
|
|
2323
|
+
selected: re(i)
|
|
2324
2324
|
}), null, 16, [
|
|
2325
2325
|
"children",
|
|
2326
2326
|
"menuOptionConfig",
|
|
@@ -2334,9 +2334,9 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2334
2334
|
key: 0,
|
|
2335
2335
|
role: "list",
|
|
2336
2336
|
style: C(ee.value)
|
|
2337
|
-
}, [(O(!0), o(t, null,
|
|
2337
|
+
}, [(O(!0), o(t, null, ne(w.value, (t) => (O(), o("li", {
|
|
2338
2338
|
key: t.id,
|
|
2339
|
-
"data-active":
|
|
2339
|
+
"data-active": re(t) ? "true" : null,
|
|
2340
2340
|
class: x(e.itemClass)
|
|
2341
2341
|
}, [u(s, y({ ref_for: !0 }, t, {
|
|
2342
2342
|
disabled: i.disabled || t.disabled,
|
|
@@ -2347,7 +2347,7 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2347
2347
|
highlightSearchText: e.highlightSearchText,
|
|
2348
2348
|
level: e.level + 1,
|
|
2349
2349
|
onHandleSelected: se,
|
|
2350
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2350
|
+
onSeeMore: r[1] ||= (e) => ae("see-more", e)
|
|
2351
2351
|
}), null, 16, [
|
|
2352
2352
|
"disabled",
|
|
2353
2353
|
"selectedIds",
|
|
@@ -2355,13 +2355,13 @@ var Dr = ["popover"], Or = "--pv-popover-v2-anchor", kr = /* @__PURE__ */ fr(/*
|
|
|
2355
2355
|
"queryText",
|
|
2356
2356
|
"highlightSearchText",
|
|
2357
2357
|
"level"
|
|
2358
|
-
])], 10, ri))), 128)),
|
|
2358
|
+
])], 10, ri))), 128)), oe.value ? (O(), o("li", ii, [u(ni, {
|
|
2359
2359
|
class: "pv-text-brand",
|
|
2360
2360
|
variant: "ghost",
|
|
2361
2361
|
label: "See more",
|
|
2362
2362
|
loading: b.value,
|
|
2363
2363
|
"data-testid": "pv-menu-item-see-more",
|
|
2364
|
-
onClick:
|
|
2364
|
+
onClick: M
|
|
2365
2365
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2366
2366
|
};
|
|
2367
2367
|
}
|
|
@@ -3140,8 +3140,8 @@ Y.prototype = {
|
|
|
3140
3140
|
Ca = n, wa = x;
|
|
3141
3141
|
var k = n.nextElementSibling, A = !1;
|
|
3142
3142
|
A = x === 1;
|
|
3143
|
-
var
|
|
3144
|
-
if (
|
|
3143
|
+
var te = Ga(G, t, H, r, n, i, e, A);
|
|
3144
|
+
if (te !== !1) return (te === 1 || te === -1) && (A = te === 1), ka = !0, setTimeout(qa, 30), g(), A && !k ? t.appendChild(H) : n.parentNode.insertBefore(H, A ? k : n), E && Gi(E, 0, ee - E.scrollTop), U = H.parentNode, S !== void 0 && !Ea && (Da = Math.abs(S - V(n)[T])), v(), _(!0);
|
|
3145
3145
|
}
|
|
3146
3146
|
if (t.contains(H)) return _(!1);
|
|
3147
3147
|
}
|
|
@@ -3508,7 +3508,7 @@ function yo(e) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
function bo(e, t, n, r = null) {
|
|
3510
3510
|
r != null && (yo(r.item), vo(r.from, r.item, t));
|
|
3511
|
-
let i = _(e), a = i ? [...
|
|
3511
|
+
let i = _(e), a = i ? [...N(e)] : N(e);
|
|
3512
3512
|
if (n >= 0 && n < a.length) {
|
|
3513
3513
|
let r = a.splice(t, 1)[0];
|
|
3514
3514
|
b(() => {
|
|
@@ -3541,7 +3541,7 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3541
3541
|
},
|
|
3542
3542
|
emits: ["list-order-updated"],
|
|
3543
3543
|
setup(e, { expose: t, emit: n }) {
|
|
3544
|
-
let r =
|
|
3544
|
+
let r = j(null), i = ue("popoverList"), a = e, s = n;
|
|
3545
3545
|
return a.isSortable && a.isList && _o(i, [], {
|
|
3546
3546
|
animation: 150,
|
|
3547
3547
|
onUpdate: () => {
|
|
@@ -3560,7 +3560,7 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3560
3560
|
role: "list",
|
|
3561
3561
|
class: "pv-popover-list",
|
|
3562
3562
|
style: C(e.cssCustomListProperties)
|
|
3563
|
-
}, [
|
|
3563
|
+
}, [re(t.$slots, "default", {}, void 0, !0)], 4)) : re(t.$slots, "default", { key: 1 }, void 0, !0)], 12, xo));
|
|
3564
3564
|
}
|
|
3565
3565
|
}), [["styles", [".pv-popover-list[data-v-246a9400]{font-size:14px}"]], ["__scopeId", "data-v-246a9400"]]), Co = ["role"], wo = [
|
|
3566
3566
|
"data-active",
|
|
@@ -3599,7 +3599,7 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3599
3599
|
}),
|
|
3600
3600
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedItems", "update:expandedOptionId"]),
|
|
3601
3601
|
setup(e, { emit: c }) {
|
|
3602
|
-
let l = e, d = c, f = ce(e, "selectedItems"), p = ce(e, "expandedOptionId"), m = se(), h =
|
|
3602
|
+
let l = e, d = c, f = ce(e, "selectedItems"), p = ce(e, "expandedOptionId"), m = se(), h = j(null), _ = j(null), v = j(null), S = j(null), { floatingStyles: w, update: T } = xn(S, v, {
|
|
3603
3603
|
middleware: [
|
|
3604
3604
|
cn(4),
|
|
3605
3605
|
un(),
|
|
@@ -3612,83 +3612,87 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3612
3612
|
p.value !== void 0 && (p.value = void 0);
|
|
3613
3613
|
}, ee = () => {
|
|
3614
3614
|
let e = p.value;
|
|
3615
|
-
E(), e && b(() =>
|
|
3615
|
+
E(), e && b(() => Ie(e));
|
|
3616
3616
|
}, D = [...g(zr, []), m];
|
|
3617
3617
|
k(zr, D), Hn(h, (e) => {
|
|
3618
3618
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(m) || E();
|
|
3619
3619
|
}, { ignore: [v] });
|
|
3620
|
-
let A =
|
|
3620
|
+
let A = oe(f.value);
|
|
3621
3621
|
I(f, (e) => {
|
|
3622
3622
|
A.value = e;
|
|
3623
|
-
})
|
|
3624
|
-
|
|
3623
|
+
});
|
|
3624
|
+
let te, ie = (e) => {
|
|
3625
|
+
te = e, f.value = e;
|
|
3626
|
+
};
|
|
3627
|
+
I(A, (e) => {
|
|
3628
|
+
e !== te && e !== f.value && ie(e);
|
|
3625
3629
|
}), k(Ir, A), k(Rr, r(() => l.childrenDisplay === "popover"));
|
|
3626
|
-
let
|
|
3627
|
-
k(Lr,
|
|
3628
|
-
let
|
|
3630
|
+
let ae = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
3631
|
+
k(Lr, ae);
|
|
3632
|
+
let M = g(Br, void 0), N = g(Ur, j(!1)), F = g(Vr, void 0), le = g(Hr, void 0), ue = r(() => l.singleSelect || l.config?.variant === "radio"), de = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), pe = (e, t, n = !1, r = !0) => {
|
|
3629
3633
|
let i = !r || p.value !== e.id;
|
|
3630
3634
|
p.value = i ? e.id : void 0, i && (S.value = t, b(() => {
|
|
3631
|
-
T(), n &&
|
|
3635
|
+
T(), n && Pe(_.value ?? document.getElementById(m), 0);
|
|
3632
3636
|
}));
|
|
3633
|
-
},
|
|
3637
|
+
}, ge = (e, t = !1) => {
|
|
3634
3638
|
if (l.readOnly) return;
|
|
3635
3639
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
3636
3640
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
3637
3641
|
let t = e.event.currentTarget?.closest("li");
|
|
3638
|
-
t &&
|
|
3642
|
+
t && pe(n, t);
|
|
3639
3643
|
return;
|
|
3640
3644
|
}
|
|
3641
3645
|
let r;
|
|
3642
|
-
if (
|
|
3646
|
+
if (ae.value && Xn(n)) {
|
|
3643
3647
|
let e;
|
|
3644
|
-
if (
|
|
3645
|
-
let t =
|
|
3648
|
+
if (N.value && M?.value) {
|
|
3649
|
+
let t = M.value.get(n.id);
|
|
3646
3650
|
e = Qn(t?.children ? Zn(t.children) : [], n.children ? Zn(n.children) : []);
|
|
3647
3651
|
} else e = n.children ? Zn(n.children) : [];
|
|
3648
|
-
let t = e.map((e) => e.id), i = A.value, a = (
|
|
3649
|
-
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e],
|
|
3650
|
-
let e = new Set(
|
|
3651
|
-
a ? e.delete(n.id) : e.add(n.id),
|
|
3652
|
+
let t = e.map((e) => e.id), i = A.value, a = (F?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
3653
|
+
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], F?.value) {
|
|
3654
|
+
let e = new Set(F.value);
|
|
3655
|
+
a ? e.delete(n.id) : e.add(n.id), F.value = e;
|
|
3652
3656
|
}
|
|
3653
|
-
if (
|
|
3654
|
-
let e = new Map(
|
|
3655
|
-
e.delete(n.id),
|
|
3657
|
+
if (le?.value?.has(n.id)) {
|
|
3658
|
+
let e = new Map(le.value);
|
|
3659
|
+
e.delete(n.id), le.value = e;
|
|
3656
3660
|
}
|
|
3657
|
-
} else if (
|
|
3661
|
+
} else if (ue.value) r = A.value.length === 1 && A.value[0].id === n.id ? l.disableDeselect ? A.value : [] : [n];
|
|
3658
3662
|
else {
|
|
3659
3663
|
let e = A.value.findIndex((e) => e.id === n.id);
|
|
3660
|
-
if (r = e > -1 ? [...A.value.slice(0, e), ...A.value.slice(e + 1)] : [...A.value, n],
|
|
3664
|
+
if (r = e > -1 ? [...A.value.slice(0, e), ...A.value.slice(e + 1)] : [...A.value, n], ae.value && F?.value && le?.value) {
|
|
3661
3665
|
let t = e > -1;
|
|
3662
|
-
for (let e of
|
|
3663
|
-
let r =
|
|
3666
|
+
for (let e of F.value) {
|
|
3667
|
+
let r = M?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
3664
3668
|
if (!r || !(Zn(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
3665
|
-
let i = new Map(
|
|
3666
|
-
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e),
|
|
3669
|
+
let i = new Map(le.value), a = new Set(i.get(e) ?? []);
|
|
3670
|
+
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), le.value = i;
|
|
3667
3671
|
break;
|
|
3668
3672
|
}
|
|
3669
3673
|
}
|
|
3670
3674
|
}
|
|
3671
|
-
A.value = r,
|
|
3675
|
+
A.value = r, ie(r), !t && l.childrenDisplay === "popover" && (p.value = void 0), d("handle-selected", l.childrenDisplay === "popover" ? {
|
|
3672
3676
|
...e,
|
|
3673
3677
|
option: n
|
|
3674
3678
|
} : e);
|
|
3675
|
-
},
|
|
3676
|
-
let t =
|
|
3679
|
+
}, _e = (e) => {
|
|
3680
|
+
let t = de.value;
|
|
3677
3681
|
if (!t) return;
|
|
3678
3682
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
3679
|
-
|
|
3683
|
+
ge({
|
|
3680
3684
|
...e,
|
|
3681
3685
|
option: n
|
|
3682
|
-
}, !0), p.value = void 0, b(() =>
|
|
3683
|
-
},
|
|
3686
|
+
}, !0), p.value = void 0, b(() => Ie(t.id));
|
|
3687
|
+
}, ve = r(() => new Set(A.value.map((e) => e.id))), ye = (e) => {
|
|
3684
3688
|
for (let t of e) {
|
|
3685
|
-
if (
|
|
3686
|
-
let e = t.children?.length ?
|
|
3689
|
+
if (ve.value.has(t.id)) return t;
|
|
3690
|
+
let e = t.children?.length ? ye(t.children) : void 0;
|
|
3687
3691
|
if (e) return e;
|
|
3688
3692
|
}
|
|
3689
|
-
},
|
|
3693
|
+
}, be = (e) => {
|
|
3690
3694
|
if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
|
|
3691
|
-
let t =
|
|
3695
|
+
let t = ye(e.children);
|
|
3692
3696
|
return {
|
|
3693
3697
|
...e,
|
|
3694
3698
|
children: void 0,
|
|
@@ -3696,54 +3700,54 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3696
3700
|
subText: t?.text ?? e.subText,
|
|
3697
3701
|
totalChildCount: void 0
|
|
3698
3702
|
};
|
|
3699
|
-
},
|
|
3703
|
+
}, xe = (e) => ({
|
|
3700
3704
|
...e,
|
|
3701
3705
|
children: void 0,
|
|
3702
3706
|
totalChildCount: void 0
|
|
3703
|
-
}),
|
|
3707
|
+
}), Se = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, Ce = (e) => ve.value.has(e.id) || ae.value && F?.value?.has(e.id) || (ae.value || l.childrenDisplay === "popover") && e.children?.length && ye(e.children) ? !0 : null, we = (e) => {
|
|
3704
3708
|
let t = e.config?.variant ?? l.config?.variant;
|
|
3705
|
-
return
|
|
3706
|
-
},
|
|
3707
|
-
let e = l.options.filter((e) => !l.readOnly && !e.disabled &&
|
|
3708
|
-
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(ko),
|
|
3709
|
-
}),
|
|
3710
|
-
let e =
|
|
3711
|
-
return e.some((e) => e.id ===
|
|
3712
|
-
}),
|
|
3709
|
+
return ue.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
3710
|
+
}, Te = (e) => we(e) === "menuitem" ? void 0 : !!Ce(e), Ee = (e) => e.children?.length && !l.highlightParentItems ? null : we(e) !== "menuitemcheckbox" && Ce(e) || p.value === e.id ? !0 : null, De = (e) => we(e) !== "menuitemcheckbox" && ve.value.has(e.id) ? !0 : null, Oe = (e, t) => !!(!t || ve.value.has(e.id) || F?.value?.has(e.id) || e.children?.length && ye(e.children)), ke = j(), Ae = j(), je = r(() => {
|
|
3711
|
+
let e = l.options.filter((e) => !l.readOnly && !e.disabled && Oe(e, l.isLoading)).map((e) => e.id);
|
|
3712
|
+
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(ko), ke.value && e.includes(ke.value) ? ke.value : e[0];
|
|
3713
|
+
}), Me = r(() => {
|
|
3714
|
+
let e = de.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
3715
|
+
return e.some((e) => e.id === Ae.value) ? Ae.value : e[0]?.id;
|
|
3716
|
+
}), Ne = (e) => {
|
|
3713
3717
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
3714
3718
|
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");
|
|
3715
|
-
},
|
|
3716
|
-
let n =
|
|
3719
|
+
}, Pe = (e, t) => {
|
|
3720
|
+
let n = Ne(e);
|
|
3717
3721
|
n.length && n[(t + n.length) % n.length]?.focus();
|
|
3718
|
-
},
|
|
3719
|
-
let r =
|
|
3722
|
+
}, Fe = (e, t, n) => {
|
|
3723
|
+
let r = Ne(e), i = r.indexOf(t);
|
|
3720
3724
|
!r.length || i < 0 || r[(i + n + r.length) % r.length]?.focus();
|
|
3721
|
-
},
|
|
3722
|
-
|
|
3725
|
+
}, Ie = (e) => {
|
|
3726
|
+
Ne(h.value).find((t) => t.dataset.optionId === e)?.focus();
|
|
3723
3727
|
};
|
|
3724
3728
|
I(p, (e) => {
|
|
3725
|
-
|
|
3729
|
+
Ae.value = void 0, e && b(() => {
|
|
3726
3730
|
let t = Array.from(h.value?.children ?? []).find((t) => t.dataset.optionId === e);
|
|
3727
3731
|
t && (S.value = t, T());
|
|
3728
3732
|
});
|
|
3729
3733
|
}, { immediate: !0 });
|
|
3730
|
-
let
|
|
3734
|
+
let Le = (e, t) => {
|
|
3731
3735
|
switch (e.key) {
|
|
3732
|
-
case "ArrowDown": return e.preventDefault(),
|
|
3733
|
-
case "ArrowUp": return e.preventDefault(),
|
|
3734
|
-
case "Home": return e.preventDefault(),
|
|
3735
|
-
case "End": return e.preventDefault(),
|
|
3736
|
+
case "ArrowDown": return e.preventDefault(), Fe(t, e.currentTarget, 1), !0;
|
|
3737
|
+
case "ArrowUp": return e.preventDefault(), Fe(t, e.currentTarget, -1), !0;
|
|
3738
|
+
case "Home": return e.preventDefault(), Pe(t, 0), !0;
|
|
3739
|
+
case "End": return e.preventDefault(), Pe(t, -1), !0;
|
|
3736
3740
|
default: return !1;
|
|
3737
3741
|
}
|
|
3738
|
-
},
|
|
3739
|
-
if (!(e.target !== e.currentTarget ||
|
|
3742
|
+
}, Re = (e, t) => {
|
|
3743
|
+
if (!(e.target !== e.currentTarget || Le(e, h.value))) switch (e.key) {
|
|
3740
3744
|
case "ArrowRight":
|
|
3741
3745
|
if (!t.children?.length) break;
|
|
3742
|
-
e.preventDefault(),
|
|
3746
|
+
e.preventDefault(), pe(t, e.currentTarget, !0, !1);
|
|
3743
3747
|
break;
|
|
3744
3748
|
case "Enter":
|
|
3745
3749
|
case " ":
|
|
3746
|
-
e.preventDefault(), t.children?.length ?
|
|
3750
|
+
e.preventDefault(), t.children?.length ? pe(t, e.currentTarget, !0, !1) : ge({
|
|
3747
3751
|
event: e,
|
|
3748
3752
|
option: t
|
|
3749
3753
|
});
|
|
@@ -3756,8 +3760,8 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3756
3760
|
p.value = void 0;
|
|
3757
3761
|
break;
|
|
3758
3762
|
}
|
|
3759
|
-
},
|
|
3760
|
-
if (!
|
|
3763
|
+
}, ze = (e) => {
|
|
3764
|
+
if (!Le(e, h.value)) switch (e.key) {
|
|
3761
3765
|
case "Enter":
|
|
3762
3766
|
case " ":
|
|
3763
3767
|
e.preventDefault(), d("see-more", { parentId: void 0 });
|
|
@@ -3767,18 +3771,18 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3767
3771
|
E();
|
|
3768
3772
|
break;
|
|
3769
3773
|
}
|
|
3770
|
-
},
|
|
3771
|
-
if (!(e.target !== e.currentTarget ||
|
|
3774
|
+
}, Be = (e, t) => {
|
|
3775
|
+
if (!(e.target !== e.currentTarget || Le(e, _.value))) switch (e.key) {
|
|
3772
3776
|
case "ArrowLeft":
|
|
3773
3777
|
case "Escape": {
|
|
3774
3778
|
e.preventDefault(), e.key === "Escape" && e.stopPropagation();
|
|
3775
3779
|
let t = p.value;
|
|
3776
|
-
p.value = void 0, t && b(() =>
|
|
3780
|
+
p.value = void 0, t && b(() => Ie(t));
|
|
3777
3781
|
break;
|
|
3778
3782
|
}
|
|
3779
3783
|
case "Enter":
|
|
3780
3784
|
case " ":
|
|
3781
|
-
e.preventDefault(),
|
|
3785
|
+
e.preventDefault(), _e({
|
|
3782
3786
|
event: e,
|
|
3783
3787
|
option: t
|
|
3784
3788
|
});
|
|
@@ -3793,31 +3797,31 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3793
3797
|
ref: h,
|
|
3794
3798
|
role: e.childrenDisplay === "popover" ? "menu" : "list",
|
|
3795
3799
|
class: "pv-popover-list"
|
|
3796
|
-
}, r.$attrs), [(O(!0), o(t, null,
|
|
3800
|
+
}, r.$attrs), [(O(!0), o(t, null, ne(e.options, (t) => he((O(), o("li", {
|
|
3797
3801
|
key: t.id,
|
|
3798
|
-
"data-active":
|
|
3802
|
+
"data-active": Ee(t),
|
|
3799
3803
|
"data-option-id": t.id,
|
|
3800
3804
|
"data-testid": e.itemTestId,
|
|
3801
3805
|
class: x(e.itemClass),
|
|
3802
3806
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
3803
|
-
}, [u(oi, y({ ref_for: !0 },
|
|
3804
|
-
"aria-checked": e.childrenDisplay === "popover" ?
|
|
3805
|
-
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ?
|
|
3807
|
+
}, [u(oi, y({ ref_for: !0 }, be(t), {
|
|
3808
|
+
"aria-checked": e.childrenDisplay === "popover" ? Te(t) : void 0,
|
|
3809
|
+
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? P(m) : void 0,
|
|
3806
3810
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
3807
3811
|
"aria-expanded": e.childrenDisplay === "popover" && t.children?.length ? p.value === t.id : void 0,
|
|
3808
3812
|
"aria-haspopup": e.childrenDisplay === "popover" && t.children?.length ? t.popoverRole ?? "menu" : void 0,
|
|
3809
|
-
"data-active":
|
|
3813
|
+
"data-active": Ee(t),
|
|
3810
3814
|
"data-dd-action-name": t.rumActionName,
|
|
3811
3815
|
"data-option-id": t.id,
|
|
3812
3816
|
disabled: l.readOnly || t.disabled,
|
|
3813
|
-
config:
|
|
3817
|
+
config: Se(t),
|
|
3814
3818
|
itemClass: e.itemClass,
|
|
3815
3819
|
queryText: e.queryText,
|
|
3816
|
-
role: e.childrenDisplay === "popover" ?
|
|
3817
|
-
tabindex: e.childrenDisplay === "popover" ?
|
|
3818
|
-
onFocus: (e) =>
|
|
3819
|
-
onKeydown: (n) => e.childrenDisplay === "popover" ?
|
|
3820
|
-
onHandleSelected:
|
|
3820
|
+
role: e.childrenDisplay === "popover" ? we(t) : void 0,
|
|
3821
|
+
tabindex: e.childrenDisplay === "popover" ? je.value === t.id ? 0 : -1 : void 0,
|
|
3822
|
+
onFocus: (e) => ke.value = t.id,
|
|
3823
|
+
onKeydown: (n) => e.childrenDisplay === "popover" ? Re(n, t) : void 0,
|
|
3824
|
+
onHandleSelected: ge,
|
|
3821
3825
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
3822
3826
|
}), null, 16, [
|
|
3823
3827
|
"aria-checked",
|
|
@@ -3836,7 +3840,7 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3836
3840
|
"tabindex",
|
|
3837
3841
|
"onFocus",
|
|
3838
3842
|
"onKeydown"
|
|
3839
|
-
])], 10, wo)), [[fe,
|
|
3843
|
+
])], 10, wo)), [[fe, Oe(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (O(), o("li", {
|
|
3840
3844
|
key: 0,
|
|
3841
3845
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
3842
3846
|
}, [u(ni, {
|
|
@@ -3846,17 +3850,17 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3846
3850
|
loading: e.isSeeMoreLoading,
|
|
3847
3851
|
disabled: e.isSeeMoreLoading,
|
|
3848
3852
|
role: e.childrenDisplay === "popover" ? "menuitem" : void 0,
|
|
3849
|
-
tabindex: e.childrenDisplay === "popover" ?
|
|
3853
|
+
tabindex: e.childrenDisplay === "popover" ? je.value === ko ? 0 : -1 : void 0,
|
|
3850
3854
|
"data-testid": "pv-menu-see-more",
|
|
3851
|
-
onFocus: c[1] ||= (e) =>
|
|
3852
|
-
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ?
|
|
3855
|
+
onFocus: c[1] ||= (e) => ke.value = ko,
|
|
3856
|
+
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ? ze(t) : void 0,
|
|
3853
3857
|
onClick: c[3] ||= (e) => d("see-more", { parentId: void 0 })
|
|
3854
3858
|
}, null, 8, [
|
|
3855
3859
|
"loading",
|
|
3856
3860
|
"disabled",
|
|
3857
3861
|
"role",
|
|
3858
3862
|
"tabindex"
|
|
3859
|
-
])], 8, To)) : a("v-if", !0)], 16, Co), e.childrenDisplay === "popover" &&
|
|
3863
|
+
])], 8, To)) : a("v-if", !0)], 16, Co), e.childrenDisplay === "popover" && de.value ? (O(), i(n, {
|
|
3860
3864
|
key: 0,
|
|
3861
3865
|
to: "body"
|
|
3862
3866
|
}, [s("div", {
|
|
@@ -3864,7 +3868,7 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3864
3868
|
ref: v,
|
|
3865
3869
|
class: "pv-menu-popover",
|
|
3866
3870
|
"data-pv-menu-ancestors": D.join(" "),
|
|
3867
|
-
style: C(
|
|
3871
|
+
style: C(P(w))
|
|
3868
3872
|
}, [u(So, {
|
|
3869
3873
|
class: "pv-scrollbar-visible",
|
|
3870
3874
|
"css-custom-properties": {
|
|
@@ -3873,38 +3877,38 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3873
3877
|
maxWidth: "calc(100vw - 16px)"
|
|
3874
3878
|
}
|
|
3875
3879
|
}, {
|
|
3876
|
-
default: me(() => [
|
|
3877
|
-
option:
|
|
3878
|
-
popoverId:
|
|
3880
|
+
default: me(() => [re(r.$slots, "popover", {
|
|
3881
|
+
option: de.value,
|
|
3882
|
+
popoverId: P(m),
|
|
3879
3883
|
close: ee
|
|
3880
3884
|
}, () => [s("ul", {
|
|
3881
|
-
id:
|
|
3885
|
+
id: P(m),
|
|
3882
3886
|
ref_key: "nestedMenuRef",
|
|
3883
3887
|
ref: _,
|
|
3884
|
-
"aria-label": `${
|
|
3888
|
+
"aria-label": `${de.value.text} options`,
|
|
3885
3889
|
class: "pv-popover-list",
|
|
3886
3890
|
role: "menu"
|
|
3887
|
-
}, [(O(!0), o(t, null,
|
|
3891
|
+
}, [(O(!0), o(t, null, ne(de.value.children, (t) => (O(), o("li", {
|
|
3888
3892
|
key: t.id,
|
|
3889
|
-
"data-active":
|
|
3893
|
+
"data-active": De(t),
|
|
3890
3894
|
"data-option-id": t.id,
|
|
3891
3895
|
class: x(e.itemClass),
|
|
3892
3896
|
role: "none"
|
|
3893
|
-
}, [u(oi, y({ ref_for: !0 },
|
|
3894
|
-
"aria-checked":
|
|
3897
|
+
}, [u(oi, y({ ref_for: !0 }, xe(t), {
|
|
3898
|
+
"aria-checked": Te(t),
|
|
3895
3899
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
3896
|
-
"data-active":
|
|
3900
|
+
"data-active": De(t),
|
|
3897
3901
|
"data-dd-action-name": t.rumActionName,
|
|
3898
3902
|
"data-option-id": t.id,
|
|
3899
3903
|
disabled: l.readOnly || t.disabled,
|
|
3900
|
-
config:
|
|
3904
|
+
config: Se(t),
|
|
3901
3905
|
itemClass: e.itemClass,
|
|
3902
3906
|
queryText: e.queryText,
|
|
3903
|
-
role:
|
|
3904
|
-
tabindex:
|
|
3905
|
-
onFocus: (e) =>
|
|
3906
|
-
onKeydown: (e) =>
|
|
3907
|
-
onHandleSelected:
|
|
3907
|
+
role: we(t),
|
|
3908
|
+
tabindex: Me.value === t.id ? 0 : -1,
|
|
3909
|
+
onFocus: (e) => Ae.value = t.id,
|
|
3910
|
+
onKeydown: (e) => Be(e, t),
|
|
3911
|
+
onHandleSelected: _e,
|
|
3908
3912
|
onSeeMore: c[4] ||= (e) => d("see-more", e)
|
|
3909
3913
|
}), null, 16, [
|
|
3910
3914
|
"aria-checked",
|
|
@@ -3924,7 +3928,7 @@ var xo = ["data-align"], So = /* @__PURE__ */ fr(/* @__PURE__ */ d({
|
|
|
3924
3928
|
_: 3
|
|
3925
3929
|
})], 12, Eo)])) : a("v-if", !0)], 64));
|
|
3926
3930
|
}
|
|
3927
|
-
}), [["styles", [".pv-menu-popover[data-v-
|
|
3931
|
+
}), [["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"]]), jo = Object.defineProperty, Mo = Object.getOwnPropertySymbols, No = Object.prototype.hasOwnProperty, Po = Object.prototype.propertyIsEnumerable, Fo = (e, t, n) => t in e ? jo(e, t, {
|
|
3928
3932
|
enumerable: !0,
|
|
3929
3933
|
configurable: !0,
|
|
3930
3934
|
writable: !0,
|
|
@@ -4257,12 +4261,12 @@ var As = {
|
|
|
4257
4261
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
4258
4262
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
4259
4263
|
if (Z(a) && o.transform !== "strict") {
|
|
4260
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ds(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ds(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ds(x, ["dark"]), w = y || {}, { dark: T } = w, E = ds(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {},
|
|
4261
|
-
s = this.transformCSS(e,
|
|
4262
|
-
...
|
|
4263
|
-
...
|
|
4264
|
-
...
|
|
4265
|
-
])], d = `${this.transformCSS(e, `${
|
|
4264
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ds(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ds(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ds(x, ["dark"]), w = y || {}, { dark: T } = w, E = ds(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {}, te = Z(E) ? this._toVariables({ light: E }, o) : {}, j = Z(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [ee.declarations ?? "", ee.tokens], [ie, ae] = [D.declarations ?? "", D.tokens || []], [oe, M] = [O.declarations ?? "", O.tokens || []], [N, P] = [k.declarations ?? "", k.tokens || []], [F, se] = [A.declarations ?? "", A.tokens || []], [ce, le] = [te.declarations ?? "", te.tokens || []], [ue, de] = [j.declarations ?? "", j.tokens || []];
|
|
4265
|
+
s = this.transformCSS(e, ne, "light", "variable", o, r, i), c = re, l = `${this.transformCSS(e, `${ie}${oe}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${N}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
4266
|
+
...ae,
|
|
4267
|
+
...M,
|
|
4268
|
+
...P
|
|
4269
|
+
])], d = `${this.transformCSS(e, `${F}${ce}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ue}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
4266
4270
|
...se,
|
|
4267
4271
|
...le,
|
|
4268
4272
|
...de
|
|
@@ -4291,11 +4295,11 @@ var As = {
|
|
|
4291
4295
|
"colorScheme",
|
|
4292
4296
|
"extend",
|
|
4293
4297
|
"css"
|
|
4294
|
-
]), h = f || {}, { colorScheme: g } = h, _ = ds(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ds(v, ["dark"]), x = g || {}, { dark: S } = x, C = ds(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ls(ls({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ls(ls({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ls(ls({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A,
|
|
4298
|
+
]), h = f || {}, { colorScheme: g } = h, _ = ds(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ds(v, ["dark"]), x = g || {}, { dark: S } = x, C = ds(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ls(ls({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ls(ls({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ls(ls({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, te] = [E.declarations ?? "", E.tokens || []];
|
|
4295
4299
|
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([
|
|
4296
4300
|
...D,
|
|
4297
4301
|
...k,
|
|
4298
|
-
...
|
|
4302
|
+
...te
|
|
4299
4303
|
])], l = Ho(p, { dt: Es });
|
|
4300
4304
|
}
|
|
4301
4305
|
return {
|
|
@@ -4654,7 +4658,7 @@ function Rs(e) {
|
|
|
4654
4658
|
}
|
|
4655
4659
|
var zs = 0;
|
|
4656
4660
|
function Bs(e) {
|
|
4657
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
4661
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = j(!1), r = j(e), i = j(null), a = es() ? 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_${++zs}` : 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) {
|
|
4658
4662
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4659
4663
|
if (s) {
|
|
4660
4664
|
var o = Ps(Ps({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
@@ -4679,7 +4683,7 @@ function Bs(e) {
|
|
|
4679
4683
|
!s || !n.value || (k(), Zo(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
4680
4684
|
},
|
|
4681
4685
|
load: A,
|
|
4682
|
-
isLoaded:
|
|
4686
|
+
isLoaded: te(n)
|
|
4683
4687
|
};
|
|
4684
4688
|
}
|
|
4685
4689
|
//#endregion
|
|
@@ -5167,7 +5171,7 @@ function gc() {
|
|
|
5167
5171
|
}), hc = [];
|
|
5168
5172
|
}
|
|
5169
5173
|
function _c(e, t) {
|
|
5170
|
-
var n =
|
|
5174
|
+
var n = j(!1), r = function() {
|
|
5171
5175
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
5172
5176
|
var e, n = ic.getCommonTheme?.call(ic) || {}, 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 };
|
|
5173
5177
|
ic.load(r?.css, cc({ name: "primitive-variables" }, s)), ic.load(i?.css, cc({ name: "semantic-variables" }, s)), ic.load(a?.css, cc({ name: "global-variables" }, s)), ic.loadStyle(cc({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|