@turquoisehealth/pit-viper 2.252.0 → 2.253.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/_site/assets/css/pit-viper-a11y.css +27 -7
- package/_site/assets/css/pit-viper-consumer.css +27 -7
- package/_site/assets/css/pit-viper-v2-scoped.css +25 -7
- package/_site/assets/css/pit-viper-v2.css +27 -7
- package/_site/assets/css/pit-viper.css +27 -7
- 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-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-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-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1023 -929
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/horizontalFilterFit.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +9 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2398 -2357
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +226 -223
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +5 -3
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1735 -1732
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +356 -353
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +650 -647
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1241 -1238
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +421 -418
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +108 -106
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +70 -67
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +343 -340
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +146 -143
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +805 -802
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +362 -359
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +694 -692
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1312 -1185
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +177 -174
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +227 -224
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- 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 D, onUnmounted as O, openBlock as k, provide as A, reactive as j, readonly as ee, ref as M, renderList as te, renderSlot as N, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as ie, toDisplayString as P, toValue as F, unref as I, useAttrs as ae, useId as oe, useModel as se, useSlots 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 D, onUnmounted as O, openBlock as k, provide as A, reactive as j, readonly as ee, ref as M, renderList as te, renderSlot as N, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as ie, 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 R, withDirectives as me, withModifiers as he } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var ge = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, ve = Object.getOwnPropertyNames, ye = Object.prototype.hasOwnProperty, be = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -79,7 +79,7 @@ function Le(e = !1, t = {}) {
|
|
|
79
79
|
return i ? o : [a, o];
|
|
80
80
|
}
|
|
81
81
|
function Re(e, t, n) {
|
|
82
|
-
return
|
|
82
|
+
return L(e, t, {
|
|
83
83
|
...n,
|
|
84
84
|
immediate: !0
|
|
85
85
|
});
|
|
@@ -194,7 +194,7 @@ function Ke(e) {
|
|
|
194
194
|
function qe(e, t, n = {}) {
|
|
195
195
|
let { window: i = ze, ...a } = n, o, s = /* @__PURE__ */ Ke(() => i && "MutationObserver" in i), c = () => {
|
|
196
196
|
o &&= (o.disconnect(), void 0);
|
|
197
|
-
}, l =
|
|
197
|
+
}, l = L(r(() => {
|
|
198
198
|
let t = Ne(F(e)).map(Ve).filter(Te);
|
|
199
199
|
return new Set(t);
|
|
200
200
|
}), (e) => {
|
|
@@ -216,7 +216,7 @@ function Je(e, t, n = {}) {
|
|
|
216
216
|
if (!r || !i) return Oe;
|
|
217
217
|
let o, s = (e) => {
|
|
218
218
|
o?.(), o = e;
|
|
219
|
-
}, c =
|
|
219
|
+
}, c = pe(() => {
|
|
220
220
|
let n = Ve(e);
|
|
221
221
|
if (n) {
|
|
222
222
|
let { stop: e } = qe(i, (e) => {
|
|
@@ -247,7 +247,7 @@ function Xe(...e) {
|
|
|
247
247
|
function Ze(e, t, n = {}) {
|
|
248
248
|
let { window: i = ze, ...a } = n, o, s = /* @__PURE__ */ Ke(() => i && "ResizeObserver" in i), c = () => {
|
|
249
249
|
o &&= (o.disconnect(), void 0);
|
|
250
|
-
}, l =
|
|
250
|
+
}, l = L(r(() => {
|
|
251
251
|
let t = F(e);
|
|
252
252
|
return Array.isArray(t) ? t.map((e) => Ve(e)) : [Ve(t)];
|
|
253
253
|
}), (e) => {
|
|
@@ -280,7 +280,7 @@ function Qe(e, t = {}) {
|
|
|
280
280
|
function g() {
|
|
281
281
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
282
282
|
}
|
|
283
|
-
return Ze(e, g),
|
|
283
|
+
return Ze(e, g), L(() => Ve(e), (e) => !e && g()), qe(e, g, { attributeFilter: ["style", "class"] }), i && He("scroll", g, {
|
|
284
284
|
capture: !0,
|
|
285
285
|
passive: !0
|
|
286
286
|
}), r && He("resize", g, { passive: !0 }), Ie(() => {
|
|
@@ -335,7 +335,7 @@ var et = { class: "pv-relative" }, tt = ["disabled", "placeholder"], nt = {
|
|
|
335
335
|
}),
|
|
336
336
|
emits: ["update:modelValue"],
|
|
337
337
|
setup(e, { expose: t }) {
|
|
338
|
-
let n = e, i =
|
|
338
|
+
let n = e, i = le("search-input"), c = se(e, "modelValue"), l = r(() => ({
|
|
339
339
|
"pv-input-search": !0,
|
|
340
340
|
"pv-full-width": !0,
|
|
341
341
|
"pv-input-padded-end": !0,
|
|
@@ -354,7 +354,7 @@ var et = { class: "pv-relative" }, tt = ["disabled", "placeholder"], nt = {
|
|
|
354
354
|
disabled: e.disabled,
|
|
355
355
|
class: x(l.value),
|
|
356
356
|
placeholder: e.placeholder
|
|
357
|
-
}, null, 10, tt), [[
|
|
357
|
+
}, null, 10, tt), [[de, c.value]]), e.displayShortcut ? (k(), o("kbd", nt, P(rt))) : a("v-if", !0)]));
|
|
358
358
|
}
|
|
359
359
|
}), at = ".pv-input-search[data-v-9e0c84d9]{display:block}", ot = (e, t) => {
|
|
360
360
|
let n = e.__vccOpts || e;
|
|
@@ -462,7 +462,7 @@ var lt = {
|
|
|
462
462
|
"pv-icon": n.value,
|
|
463
463
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
464
464
|
})), 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}`);
|
|
465
|
-
return
|
|
465
|
+
return L(u, () => {
|
|
466
466
|
n.value = !0;
|
|
467
467
|
}), (e, t) => (k(), o("div", mt, [n.value ? (k(), o("div", {
|
|
468
468
|
key: 0,
|
|
@@ -555,7 +555,7 @@ function Tt(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
|
|
|
555
555
|
return a ? Ct(a, t, r) : xt(e, t, r);
|
|
556
556
|
}
|
|
557
557
|
function Et(e, t = {}) {
|
|
558
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ct(), l = i ??
|
|
558
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ct(), l = i ?? ce(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = M(d());
|
|
559
559
|
T(() => {
|
|
560
560
|
f.value = d();
|
|
561
561
|
});
|
|
@@ -591,7 +591,7 @@ function Et(e, t = {}) {
|
|
|
591
591
|
characterData: !0
|
|
592
592
|
}));
|
|
593
593
|
};
|
|
594
|
-
return E(v), w(g),
|
|
594
|
+
return E(v), w(g), L(() => I(n), () => {
|
|
595
595
|
c.value && v();
|
|
596
596
|
}), {
|
|
597
597
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -636,7 +636,7 @@ var Dt = [
|
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
638
|
setup(e) {
|
|
639
|
-
let t = e, n =
|
|
639
|
+
let t = e, n = le("rootRef"), { present: i } = Et("tooltip-content", { host: r(() => {
|
|
640
640
|
let e = n.value?.getRootNode();
|
|
641
641
|
return e instanceof ShadowRoot ? e.host : null;
|
|
642
642
|
}) }), s = r(() => t.delay > 0), c = M(!1), l = M(!1), u, d = () => {
|
|
@@ -673,7 +673,7 @@ var Dt = [
|
|
|
673
673
|
role: "tooltip",
|
|
674
674
|
id: e.ariaLabelledBy,
|
|
675
675
|
"data-testid": "pv-tooltip-content"
|
|
676
|
-
}, [N(t.$slots, "tooltip-content")], 8, Ot)), [[
|
|
676
|
+
}, [N(t.$slots, "tooltip-content")], 8, Ot)), [[fe, f.value]]) : a("v-if", !0)], 42, Dt));
|
|
677
677
|
}
|
|
678
678
|
}), At = ["ghost"], jt = {
|
|
679
679
|
md: "pv-button-small",
|
|
@@ -816,11 +816,11 @@ var Dt = [
|
|
|
816
816
|
variant: "dark",
|
|
817
817
|
"tooltip-position": "top-left"
|
|
818
818
|
}, {
|
|
819
|
-
label:
|
|
819
|
+
label: R(() => [u(ft, {
|
|
820
820
|
name: "close",
|
|
821
821
|
onClick: r[0] ||= he((e) => n.$emit("handle-clear"), ["stop"])
|
|
822
822
|
})]),
|
|
823
|
-
"tooltip-content":
|
|
823
|
+
"tooltip-content": R(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
824
824
|
_: 1
|
|
825
825
|
})) : a("v-if", !0)
|
|
826
826
|
], 10, Nt));
|
|
@@ -1698,7 +1698,7 @@ function zr(e, t, n) {
|
|
|
1698
1698
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1699
1699
|
var Br = /* @__PURE__ */ new Set(), Vr = (e, t) => {
|
|
1700
1700
|
let n = t.root.value;
|
|
1701
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
1701
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1702
1702
|
}, Hr = (e) => (O(() => Br.delete(e)), (t) => {
|
|
1703
1703
|
if (!t) {
|
|
1704
1704
|
Br.delete(e);
|
|
@@ -1725,6 +1725,7 @@ var Br = /* @__PURE__ */ new Set(), Vr = (e, t) => {
|
|
|
1725
1725
|
type: Boolean,
|
|
1726
1726
|
default: !1
|
|
1727
1727
|
},
|
|
1728
|
+
hoverTarget: { type: String },
|
|
1728
1729
|
disableInteractive: {
|
|
1729
1730
|
type: Boolean,
|
|
1730
1731
|
default: !1
|
|
@@ -1783,11 +1784,12 @@ var Br = /* @__PURE__ */ new Set(), Vr = (e, t) => {
|
|
|
1783
1784
|
"position-try-fallbacks: flip-block",
|
|
1784
1785
|
"position-visibility: anchors-visible",
|
|
1785
1786
|
`anchor-scope: ${Wr}`
|
|
1786
|
-
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), x = M(null), S =
|
|
1787
|
+
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), x = M(null), S = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), w = $e(S), T = $e(x), D = M(!1), A = M(!1), j = M(!1), ee = Hr({
|
|
1787
1788
|
root: _,
|
|
1788
1789
|
floating: x,
|
|
1789
|
-
|
|
1790
|
-
|
|
1790
|
+
hoverArea: r(() => t.hoverTarget ? S.value : null),
|
|
1791
|
+
close: () => t.disableClickOutsideToClose ? !1 : (he(), !0)
|
|
1792
|
+
}), te = {
|
|
1791
1793
|
"top-center": "top",
|
|
1792
1794
|
"bottom-center": "bottom",
|
|
1793
1795
|
"center-left": "left",
|
|
@@ -1798,7 +1800,7 @@ var Br = /* @__PURE__ */ new Set(), Vr = (e, t) => {
|
|
|
1798
1800
|
"top-right": "top-end",
|
|
1799
1801
|
"bottom-left": "bottom-start",
|
|
1800
1802
|
"bottom-right": "bottom-end"
|
|
1801
|
-
},
|
|
1803
|
+
}, ne = {
|
|
1802
1804
|
"top-center": {
|
|
1803
1805
|
area: "top",
|
|
1804
1806
|
margin: "margin-block-end"
|
|
@@ -1839,141 +1841,141 @@ var Br = /* @__PURE__ */ new Set(), Vr = (e, t) => {
|
|
|
1839
1841
|
area: "bottom span-left",
|
|
1840
1842
|
margin: "margin-block-start"
|
|
1841
1843
|
}
|
|
1842
|
-
},
|
|
1844
|
+
}, re = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), ie = r(() => ({
|
|
1843
1845
|
width: "fit-content",
|
|
1844
1846
|
...h ? { "anchor-scope": Wr } : void 0,
|
|
1845
1847
|
...t.cssCustomProperties
|
|
1846
|
-
})),
|
|
1847
|
-
let e =
|
|
1848
|
+
})), P = r(() => h ? { "anchor-name": Wr } : void 0), F = r(() => {
|
|
1849
|
+
let e = ne[t.position];
|
|
1848
1850
|
return {
|
|
1849
1851
|
"position-anchor": Wr,
|
|
1850
1852
|
"position-area": e.area,
|
|
1851
1853
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1852
1854
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1853
1855
|
};
|
|
1854
|
-
}),
|
|
1856
|
+
}), ae = () => {}, oe = () => ({});
|
|
1855
1857
|
if (!h) {
|
|
1856
1858
|
let e = [];
|
|
1857
1859
|
t.disableAutoPlacement || e.push(Or({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Er(t.offset));
|
|
1858
1860
|
let n = zr(y, x, {
|
|
1859
|
-
placement:
|
|
1861
|
+
placement: te[t.position],
|
|
1860
1862
|
strategy: t.positioningStrategy,
|
|
1861
1863
|
middleware: e
|
|
1862
1864
|
});
|
|
1863
|
-
|
|
1865
|
+
ae = n.update, oe = () => n.floatingStyles.value;
|
|
1864
1866
|
let i = Qe(y), a = /* @__PURE__ */ Fe(() => {
|
|
1865
|
-
c.value &&
|
|
1867
|
+
c.value && ae();
|
|
1866
1868
|
}, 5);
|
|
1867
|
-
|
|
1869
|
+
L([
|
|
1868
1870
|
i.top,
|
|
1869
1871
|
i.left,
|
|
1870
1872
|
i.width,
|
|
1871
1873
|
i.height
|
|
1872
1874
|
], a), We(_, () => {
|
|
1873
|
-
t.disableClickOutsideToClose ||
|
|
1875
|
+
t.disableClickOutsideToClose || R(!1);
|
|
1874
1876
|
}, { ignore: r(() => [
|
|
1875
1877
|
x.value,
|
|
1876
1878
|
".p-datepicker-panel",
|
|
1877
1879
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1878
1880
|
]) });
|
|
1879
1881
|
}
|
|
1880
|
-
let
|
|
1881
|
-
...
|
|
1882
|
+
let ce = r(() => ({
|
|
1883
|
+
...oe(),
|
|
1882
1884
|
zIndex: t.zIndex
|
|
1883
|
-
})),
|
|
1884
|
-
|
|
1885
|
-
}, ue = () => {
|
|
1886
|
-
ce && clearTimeout(ce), ce = void 0;
|
|
1887
|
-
}, fe = (e) => {
|
|
1888
|
-
le(), ue(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? L = setTimeout(() => {
|
|
1889
|
-
c.value = !0, L = void 0;
|
|
1890
|
-
}, t.delay) : c.value = e);
|
|
1885
|
+
})), le, ue, de = () => {
|
|
1886
|
+
le && clearTimeout(le), le = void 0;
|
|
1891
1887
|
}, pe = () => {
|
|
1892
|
-
|
|
1888
|
+
ue && clearTimeout(ue), ue = void 0;
|
|
1889
|
+
}, R = (e) => {
|
|
1890
|
+
de(), pe(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? le = setTimeout(() => {
|
|
1891
|
+
c.value = !0, le = void 0;
|
|
1892
|
+
}, t.delay) : c.value = e);
|
|
1893
1893
|
}, he = () => {
|
|
1894
|
+
de(), pe(), c.value = !1;
|
|
1895
|
+
}, ge = () => {
|
|
1894
1896
|
let e = x.value;
|
|
1895
1897
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1896
|
-
},
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1898
|
+
}, _e = r(() => !!c.value && (T.value || A.value)), ve = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? w.value || D.value : w.value || D.value || _e.value);
|
|
1899
|
+
L([
|
|
1900
|
+
w,
|
|
1901
|
+
D,
|
|
1902
|
+
A
|
|
1901
1903
|
], ([e, t, n]) => {
|
|
1902
|
-
!e && !t && !n && (
|
|
1904
|
+
!e && !t && !n && (j.value = !1);
|
|
1903
1905
|
});
|
|
1904
|
-
let
|
|
1905
|
-
T.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1906
|
-
}, ye = ({ target: e }) => {
|
|
1906
|
+
let ye = ({ target: e }) => {
|
|
1907
1907
|
D.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1908
|
-
}, be = () => {
|
|
1909
|
-
|
|
1908
|
+
}, be = ({ target: e }) => {
|
|
1909
|
+
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1910
1910
|
}, xe = () => {
|
|
1911
|
+
A.value = !1;
|
|
1912
|
+
}, Se = () => {
|
|
1911
1913
|
if (t.showOnHover) {
|
|
1912
1914
|
if (t.disableClickOutsideToClose) return;
|
|
1913
|
-
if (!c.value && !
|
|
1914
|
-
|
|
1915
|
+
if (!c.value && !le && t.enableClickToggle) {
|
|
1916
|
+
j.value = !1, R(!0);
|
|
1915
1917
|
return;
|
|
1916
1918
|
}
|
|
1917
|
-
|
|
1919
|
+
j.value = !0, he();
|
|
1918
1920
|
return;
|
|
1919
1921
|
}
|
|
1920
|
-
|
|
1921
|
-
},
|
|
1922
|
+
R(le ? !1 : !c.value);
|
|
1923
|
+
}, Ce = (e) => {
|
|
1922
1924
|
let t = e.newState === "open";
|
|
1923
1925
|
c.value !== t && (c.value = t);
|
|
1924
|
-
},
|
|
1925
|
-
h &&
|
|
1926
|
+
}, we = (e) => {
|
|
1927
|
+
h && re.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), R(!1));
|
|
1926
1928
|
};
|
|
1927
|
-
return
|
|
1928
|
-
if (t.showOnHover && t.enableGroupSync &&
|
|
1929
|
-
e &&
|
|
1929
|
+
return L(c, async (e) => {
|
|
1930
|
+
if (t.showOnHover && t.enableGroupSync && ee(!!e), !h) {
|
|
1931
|
+
e && ae();
|
|
1930
1932
|
return;
|
|
1931
1933
|
}
|
|
1932
|
-
await b(),
|
|
1933
|
-
}),
|
|
1934
|
+
await b(), ge();
|
|
1935
|
+
}), L(ve, (e) => {
|
|
1934
1936
|
if (t.showOnHover) {
|
|
1935
1937
|
if (e) {
|
|
1936
|
-
|
|
1938
|
+
R(!0);
|
|
1937
1939
|
return;
|
|
1938
1940
|
}
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
}, t.closeDelay)) :
|
|
1941
|
+
de(), t.closeDelay > 0 ? (pe(), ue = setTimeout(() => {
|
|
1942
|
+
ue = void 0, ve.value || R(!1);
|
|
1943
|
+
}, t.closeDelay)) : R(!1);
|
|
1942
1944
|
}
|
|
1943
|
-
}),
|
|
1944
|
-
e ? h && c.value && b(
|
|
1945
|
+
}), L(m, (e) => {
|
|
1946
|
+
e ? h && c.value && b(ge) : he();
|
|
1945
1947
|
}), E(() => {
|
|
1946
|
-
y.value = v.value, g.value = !0, c.value && b(() => h ?
|
|
1948
|
+
y.value = v.value, g.value = !0, c.value && b(() => h ? ge() : ae());
|
|
1947
1949
|
}), O(() => {
|
|
1948
|
-
|
|
1949
|
-
}),
|
|
1950
|
+
de(), pe();
|
|
1951
|
+
}), L(() => t.disabled, (e) => {
|
|
1950
1952
|
if (!e) {
|
|
1951
|
-
|
|
1953
|
+
ve.value && R(!0);
|
|
1952
1954
|
return;
|
|
1953
1955
|
}
|
|
1954
|
-
|
|
1956
|
+
D.value &&= !1, A.value &&= !1, R(!1);
|
|
1955
1957
|
}), (r, l) => (k(), o("div", {
|
|
1956
1958
|
ref_key: "root",
|
|
1957
1959
|
ref: _,
|
|
1958
|
-
style: C(
|
|
1959
|
-
onKeydown:
|
|
1960
|
+
style: C(ie.value),
|
|
1961
|
+
onKeydown: we
|
|
1960
1962
|
}, [s("div", {
|
|
1961
1963
|
ref_key: "triggerWrapper",
|
|
1962
1964
|
ref: v,
|
|
1963
|
-
style: C(
|
|
1964
|
-
onClick:
|
|
1965
|
-
onFocusin:
|
|
1966
|
-
onFocusout: l[0] ||= (e) =>
|
|
1965
|
+
style: C(P.value),
|
|
1966
|
+
onClick: Se,
|
|
1967
|
+
onFocusin: ye,
|
|
1968
|
+
onFocusout: l[0] ||= (e) => D.value = !1
|
|
1967
1969
|
}, [N(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (k(), o("div", {
|
|
1968
1970
|
key: 0,
|
|
1969
1971
|
ref_key: "floating",
|
|
1970
1972
|
ref: x,
|
|
1971
1973
|
class: "pv-floating pv-floating-native",
|
|
1972
|
-
popover:
|
|
1973
|
-
style: C(
|
|
1974
|
-
onToggle:
|
|
1975
|
-
onFocusin:
|
|
1976
|
-
onFocusout:
|
|
1974
|
+
popover: re.value,
|
|
1975
|
+
style: C(F.value),
|
|
1976
|
+
onToggle: Ce,
|
|
1977
|
+
onFocusin: be,
|
|
1978
|
+
onFocusout: xe
|
|
1977
1979
|
}, [e.disabled ? a("v-if", !0) : N(r.$slots, "content", { key: 0 })], 44, Ur)) : m.value ? (k(), i(n, {
|
|
1978
1980
|
key: 1,
|
|
1979
1981
|
to: e.teleportLocation,
|
|
@@ -1982,10 +1984,10 @@ var Br = /* @__PURE__ */ new Set(), Vr = (e, t) => {
|
|
|
1982
1984
|
ref_key: "floating",
|
|
1983
1985
|
ref: x,
|
|
1984
1986
|
class: "pv-floating",
|
|
1985
|
-
style: C(
|
|
1986
|
-
onFocusin:
|
|
1987
|
-
onFocusout:
|
|
1988
|
-
}, [N(r.$slots, "content")], 36), [[
|
|
1987
|
+
style: C(ce.value),
|
|
1988
|
+
onFocusin: be,
|
|
1989
|
+
onFocusout: xe
|
|
1990
|
+
}, [N(r.$slots, "content")], 36), [[fe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1989
1991
|
}
|
|
1990
1992
|
});
|
|
1991
1993
|
//#endregion
|
|
@@ -2055,6 +2057,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2055
2057
|
type: Boolean,
|
|
2056
2058
|
default: !0
|
|
2057
2059
|
},
|
|
2060
|
+
hoverTarget: { type: String },
|
|
2058
2061
|
disableInteractive: {
|
|
2059
2062
|
type: Boolean,
|
|
2060
2063
|
default: !1
|
|
@@ -2078,11 +2081,11 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2078
2081
|
setup(e) {
|
|
2079
2082
|
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 } = Et("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2080
2083
|
return (t, n) => (k(), i(Gr, S(h(t.$props)), c({
|
|
2081
|
-
trigger:
|
|
2084
|
+
trigger: R(() => [N(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
2082
2085
|
_: 2
|
|
2083
2086
|
}, [f.value ? {
|
|
2084
2087
|
name: "content",
|
|
2085
|
-
fn:
|
|
2088
|
+
fn: R(() => [s("div", {
|
|
2086
2089
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2087
2090
|
role: "tooltip",
|
|
2088
2091
|
"data-variant": e.variant
|
|
@@ -2166,7 +2169,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2166
2169
|
};
|
|
2167
2170
|
return E(() => {
|
|
2168
2171
|
_();
|
|
2169
|
-
}),
|
|
2172
|
+
}), L(() => [
|
|
2170
2173
|
n.queryText,
|
|
2171
2174
|
n.text,
|
|
2172
2175
|
n.subText,
|
|
@@ -2251,13 +2254,13 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2251
2254
|
disableInteractive: !0,
|
|
2252
2255
|
style: { "pointer-events": "auto" }
|
|
2253
2256
|
}, {
|
|
2254
|
-
trigger:
|
|
2257
|
+
trigger: R(() => [a(" stop the click so reading the description doesn't also toggle the option "), u(ft, {
|
|
2255
2258
|
size: 12,
|
|
2256
2259
|
name: "info-circle",
|
|
2257
2260
|
class: "pv-text-subdued",
|
|
2258
2261
|
onClick: r[0] ||= he(() => {}, ["stop", "prevent"])
|
|
2259
2262
|
})]),
|
|
2260
|
-
content:
|
|
2263
|
+
content: R(() => [s("div", ti, P(e.description), 1)]),
|
|
2261
2264
|
_: 1
|
|
2262
2265
|
})) : e.secondaryText && typeof e.secondaryText == "number" ? (k(), i(pt, {
|
|
2263
2266
|
key: 6,
|
|
@@ -2312,7 +2315,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2312
2315
|
type: "checkbox",
|
|
2313
2316
|
role: "switch",
|
|
2314
2317
|
id: I(t)
|
|
2315
|
-
}, null, 8, oi), [[
|
|
2318
|
+
}, null, 8, oi), [[ue, n.value]])], 10, ii));
|
|
2316
2319
|
}
|
|
2317
2320
|
}), [["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"]]), ci = ["aria-label", "disabled"], li = /* @__PURE__ */ d({
|
|
2318
2321
|
__name: "PvActionButton",
|
|
@@ -2351,7 +2354,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2351
2354
|
"disable-interactive": !0,
|
|
2352
2355
|
"use-teleport": !0
|
|
2353
2356
|
}, c({
|
|
2354
|
-
trigger:
|
|
2357
|
+
trigger: R(() => [s("button", {
|
|
2355
2358
|
type: "button",
|
|
2356
2359
|
class: x(["pv-button-link-tertiary", { "pv-action-button-reveal-on-hover": !e.alwaysShow }]),
|
|
2357
2360
|
style: { "--button-icon-only-padding": "0px" },
|
|
@@ -2365,7 +2368,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2365
2368
|
_: 2
|
|
2366
2369
|
}, [e.tooltipText ? {
|
|
2367
2370
|
name: "content",
|
|
2368
|
-
fn:
|
|
2371
|
+
fn: R(() => [l(P(e.tooltipText), 1)]),
|
|
2369
2372
|
key: "0"
|
|
2370
2373
|
} : void 0]), 1032, ["position"]));
|
|
2371
2374
|
}
|
|
@@ -2400,7 +2403,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2400
2403
|
"disable-interactive": !0,
|
|
2401
2404
|
"use-teleport": !0
|
|
2402
2405
|
}, c({
|
|
2403
|
-
trigger:
|
|
2406
|
+
trigger: R(() => [a(" Stop propagation so the icon does not toggle the surrounding menu item's selection. "), s("span", {
|
|
2404
2407
|
class: x(["pv-text-brand", { "pv-action-button-reveal-on-hover": !h.value }]),
|
|
2405
2408
|
role: "img",
|
|
2406
2409
|
"aria-label": p.value,
|
|
@@ -2409,7 +2412,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2409
2412
|
_: 2
|
|
2410
2413
|
}, [p.value ? {
|
|
2411
2414
|
name: "content",
|
|
2412
|
-
fn:
|
|
2415
|
+
fn: R(() => [l(P(p.value), 1)]),
|
|
2413
2416
|
key: "0"
|
|
2414
2417
|
} : void 0]), 1024)], 2112));
|
|
2415
2418
|
}
|
|
@@ -2466,7 +2469,7 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2466
2469
|
},
|
|
2467
2470
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2468
2471
|
setup(e, { emit: t }) {
|
|
2469
|
-
let n = e, c =
|
|
2472
|
+
let n = e, c = le("inputRef"), l = g(fi, void 0), d = g(pi, M(!1)), f = g(gi, void 0), m = g(_i, void 0), h = g(mi, r(() => !1)), _ = r(() => {
|
|
2470
2473
|
if (!d.value || !Kr(n)) return [];
|
|
2471
2474
|
let e = n.children ? qr(n.children) : [];
|
|
2472
2475
|
if (f?.value) {
|
|
@@ -2718,11 +2721,11 @@ var Yr = /* @__PURE__ */ d({
|
|
|
2718
2721
|
]);
|
|
2719
2722
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
2720
2723
|
}), h = g(_i, void 0), _ = g(vi, void 0), v = M(i.defaultExpanded ?? !1);
|
|
2721
|
-
|
|
2724
|
+
L(() => i.defaultExpanded, (e) => {
|
|
2722
2725
|
e && (v.value = !0);
|
|
2723
2726
|
});
|
|
2724
2727
|
let b = M(!1), S = M(!1), w = M(i.children ?? []), T = M(/* @__PURE__ */ new Set());
|
|
2725
|
-
|
|
2728
|
+
L(() => i.children, (e) => {
|
|
2726
2729
|
if (!e) {
|
|
2727
2730
|
w.value = [];
|
|
2728
2731
|
return;
|
|
@@ -4034,14 +4037,14 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4034
4037
|
},
|
|
4035
4038
|
emits: ["list-order-updated"],
|
|
4036
4039
|
setup(e, { expose: n, emit: i }) {
|
|
4037
|
-
let a = M(null), c =
|
|
4040
|
+
let a = M(null), c = le("popoverList"), l = e, u = i;
|
|
4038
4041
|
l.isSortable && l.isList && Wo(c, [], {
|
|
4039
4042
|
animation: 150,
|
|
4040
4043
|
onUpdate: () => {
|
|
4041
4044
|
u("list-order-updated", Array.from(c.value?.children || []).map((e) => e.id));
|
|
4042
4045
|
}
|
|
4043
4046
|
});
|
|
4044
|
-
let d =
|
|
4047
|
+
let d = ce(), f = r(() => !!(d.header || d.footer));
|
|
4045
4048
|
return n({ popoverRoot: a }), (n, r) => (k(), o("div", {
|
|
4046
4049
|
ref_key: "popoverRoot",
|
|
4047
4050
|
ref: a,
|
|
@@ -4117,28 +4120,28 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4117
4120
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(m) || E();
|
|
4118
4121
|
}, { ignore: [v] });
|
|
4119
4122
|
let j = ie(f.value);
|
|
4120
|
-
|
|
4123
|
+
L(f, (e) => {
|
|
4121
4124
|
j.value = e;
|
|
4122
4125
|
});
|
|
4123
4126
|
let ee, ne = (e) => {
|
|
4124
4127
|
ee = e, f.value = e;
|
|
4125
4128
|
};
|
|
4126
|
-
|
|
4129
|
+
L(j, (e) => {
|
|
4127
4130
|
e !== ee && e !== f.value && ne(e);
|
|
4128
4131
|
}), A(fi, j), A(mi, r(() => l.childrenDisplay === "popover"));
|
|
4129
4132
|
let re = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4130
4133
|
A(pi, re);
|
|
4131
|
-
let P = g(gi, void 0), F = g(yi, M(!1)), ae = g(_i, void 0),
|
|
4134
|
+
let P = g(gi, void 0), F = g(yi, M(!1)), ae = g(_i, void 0), ce = g(vi, 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) => {
|
|
4132
4135
|
let i = !r || p.value !== e.id;
|
|
4133
4136
|
p.value = i ? e.id : void 0, i && (S.value = t, b(() => {
|
|
4134
4137
|
T(), n && Me(_.value ?? document.getElementById(m), 0);
|
|
4135
4138
|
}));
|
|
4136
|
-
},
|
|
4139
|
+
}, pe = (e, t = !1) => {
|
|
4137
4140
|
if (l.readOnly) return;
|
|
4138
4141
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
4139
4142
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
4140
4143
|
let t = e.event.currentTarget?.closest("li");
|
|
4141
|
-
t &&
|
|
4144
|
+
t && de(n, t);
|
|
4142
4145
|
return;
|
|
4143
4146
|
}
|
|
4144
4147
|
let r;
|
|
@@ -4153,20 +4156,20 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4153
4156
|
let e = new Set(ae.value);
|
|
4154
4157
|
a ? e.delete(n.id) : e.add(n.id), ae.value = e;
|
|
4155
4158
|
}
|
|
4156
|
-
if (
|
|
4157
|
-
let e = new Map(
|
|
4158
|
-
e.delete(n.id),
|
|
4159
|
+
if (ce?.value?.has(n.id)) {
|
|
4160
|
+
let e = new Map(ce.value);
|
|
4161
|
+
e.delete(n.id), ce.value = e;
|
|
4159
4162
|
}
|
|
4160
|
-
} else if (
|
|
4163
|
+
} else if (le.value) r = j.value.length === 1 && j.value[0].id === n.id ? l.disableDeselect ? j.value : [] : [n];
|
|
4161
4164
|
else {
|
|
4162
4165
|
let e = j.value.findIndex((e) => e.id === n.id);
|
|
4163
|
-
if (r = e > -1 ? [...j.value.slice(0, e), ...j.value.slice(e + 1)] : [...j.value, n], re.value && ae?.value &&
|
|
4166
|
+
if (r = e > -1 ? [...j.value.slice(0, e), ...j.value.slice(e + 1)] : [...j.value, n], re.value && ae?.value && ce?.value) {
|
|
4164
4167
|
let t = e > -1;
|
|
4165
4168
|
for (let e of ae.value) {
|
|
4166
4169
|
let r = P?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4167
4170
|
if (!r || !(qr(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4168
|
-
let i = new Map(
|
|
4169
|
-
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e),
|
|
4171
|
+
let i = new Map(ce.value), a = new Set(i.get(e) ?? []);
|
|
4172
|
+
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), ce.value = i;
|
|
4170
4173
|
break;
|
|
4171
4174
|
}
|
|
4172
4175
|
}
|
|
@@ -4176,10 +4179,10 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4176
4179
|
option: n
|
|
4177
4180
|
} : e);
|
|
4178
4181
|
}, he = (e) => {
|
|
4179
|
-
let t =
|
|
4182
|
+
let t = ue.value;
|
|
4180
4183
|
if (!t) return;
|
|
4181
4184
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
4182
|
-
|
|
4185
|
+
pe({
|
|
4183
4186
|
...e,
|
|
4184
4187
|
option: n
|
|
4185
4188
|
}, !0), p.value = void 0, b(() => Pe(t.id));
|
|
@@ -4205,12 +4208,12 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4205
4208
|
totalChildCount: void 0
|
|
4206
4209
|
}), be = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, xe = (e) => ge.value.has(e.id) || re.value && ae?.value?.has(e.id) || (re.value || l.childrenDisplay === "popover") && e.children?.length && _e(e.children) ? !0 : null, Se = (e) => {
|
|
4207
4210
|
let t = e.config?.variant ?? l.config?.variant;
|
|
4208
|
-
return
|
|
4211
|
+
return le.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4209
4212
|
}, Ce = (e) => Se(e) === "menuitem" ? void 0 : !!xe(e), we = (e) => e.children?.length && !l.highlightParentItems ? null : Se(e) !== "menuitemcheckbox" && xe(e) || p.value === e.id ? !0 : null, Te = (e) => Se(e) !== "menuitemcheckbox" && ge.value.has(e.id) ? !0 : null, Ee = (e, t) => !!(!t || ge.value.has(e.id) || ae?.value?.has(e.id) || e.children?.length && _e(e.children)), De = M(), Oe = M(), ke = r(() => {
|
|
4210
4213
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && Ee(e, l.isLoading)).map((e) => e.id);
|
|
4211
4214
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(rs), De.value && e.includes(De.value) ? De.value : e[0];
|
|
4212
4215
|
}), Ae = r(() => {
|
|
4213
|
-
let e =
|
|
4216
|
+
let e = ue.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
4214
4217
|
return e.some((e) => e.id === Oe.value) ? Oe.value : e[0]?.id;
|
|
4215
4218
|
}), je = (e) => {
|
|
4216
4219
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
@@ -4224,7 +4227,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4224
4227
|
}, Pe = (e) => {
|
|
4225
4228
|
je(h.value).find((t) => t.dataset.optionId === e)?.focus();
|
|
4226
4229
|
};
|
|
4227
|
-
|
|
4230
|
+
L([p, () => !!ue.value], ([e]) => {
|
|
4228
4231
|
Oe.value = void 0, e && b(() => {
|
|
4229
4232
|
let t = Array.from(h.value?.children ?? []).find((t) => t.dataset.optionId === e);
|
|
4230
4233
|
t && (S.value = t, T());
|
|
@@ -4242,11 +4245,11 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4242
4245
|
if (!(e.target !== e.currentTarget || Fe(e, h.value))) switch (e.key) {
|
|
4243
4246
|
case "ArrowRight":
|
|
4244
4247
|
if (!t.children?.length) break;
|
|
4245
|
-
e.preventDefault(),
|
|
4248
|
+
e.preventDefault(), de(t, e.currentTarget, !0, !1);
|
|
4246
4249
|
break;
|
|
4247
4250
|
case "Enter":
|
|
4248
4251
|
case " ":
|
|
4249
|
-
e.preventDefault(), t.children?.length ?
|
|
4252
|
+
e.preventDefault(), t.children?.length ? de(t, e.currentTarget, !0, !1) : pe({
|
|
4250
4253
|
event: e,
|
|
4251
4254
|
option: t
|
|
4252
4255
|
});
|
|
@@ -4320,7 +4323,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4320
4323
|
tabindex: e.childrenDisplay === "popover" ? ke.value === t.id ? 0 : -1 : void 0,
|
|
4321
4324
|
onFocus: (e) => De.value = t.id,
|
|
4322
4325
|
onKeydown: (n) => e.childrenDisplay === "popover" ? Ie(n, t) : void 0,
|
|
4323
|
-
onHandleSelected:
|
|
4326
|
+
onHandleSelected: pe,
|
|
4324
4327
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
4325
4328
|
}), null, 16, [
|
|
4326
4329
|
"aria-checked",
|
|
@@ -4339,7 +4342,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4339
4342
|
"tabindex",
|
|
4340
4343
|
"onFocus",
|
|
4341
4344
|
"onKeydown"
|
|
4342
|
-
])], 10, Qo)), [[
|
|
4345
|
+
])], 10, Qo)), [[fe, Ee(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (k(), o("li", {
|
|
4343
4346
|
key: 0,
|
|
4344
4347
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4345
4348
|
}, [u(Oi, {
|
|
@@ -4359,7 +4362,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4359
4362
|
"disabled",
|
|
4360
4363
|
"role",
|
|
4361
4364
|
"tabindex"
|
|
4362
|
-
])], 8, $o)) : a("v-if", !0)], 16, Zo), e.childrenDisplay === "popover" &&
|
|
4365
|
+
])], 8, $o)) : a("v-if", !0)], 16, Zo), e.childrenDisplay === "popover" && ue.value ? (k(), i(n, {
|
|
4363
4366
|
key: 0,
|
|
4364
4367
|
to: "body"
|
|
4365
4368
|
}, [s("div", {
|
|
@@ -4376,18 +4379,18 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4376
4379
|
maxWidth: "calc(100vw - 16px)"
|
|
4377
4380
|
}
|
|
4378
4381
|
}, {
|
|
4379
|
-
default:
|
|
4380
|
-
option:
|
|
4382
|
+
default: R(() => [N(r.$slots, "popover", {
|
|
4383
|
+
option: ue.value,
|
|
4381
4384
|
popoverId: I(m),
|
|
4382
4385
|
close: D
|
|
4383
4386
|
}, () => [s("ul", {
|
|
4384
4387
|
id: I(m),
|
|
4385
4388
|
ref_key: "nestedMenuRef",
|
|
4386
4389
|
ref: _,
|
|
4387
|
-
"aria-label": `${
|
|
4390
|
+
"aria-label": `${ue.value.text} options`,
|
|
4388
4391
|
class: "pv-popover-list",
|
|
4389
4392
|
role: "menu"
|
|
4390
|
-
}, [(k(!0), o(t, null, te(
|
|
4393
|
+
}, [(k(!0), o(t, null, te(ue.value.children, (t) => (k(), o("li", {
|
|
4391
4394
|
key: t.id,
|
|
4392
4395
|
"data-active": Te(t),
|
|
4393
4396
|
"data-option-id": t.id,
|
|
@@ -4427,7 +4430,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4427
4430
|
_: 3
|
|
4428
4431
|
})], 12, es)])) : a("v-if", !0)], 64));
|
|
4429
4432
|
}
|
|
4430
|
-
}), [["styles", [".pv-menu-popover[data-v-
|
|
4433
|
+
}), [["styles", [".pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .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-951d1d02"]]), as = { class: "pv-popover-scroll" }, os = {
|
|
4431
4434
|
key: 0,
|
|
4432
4435
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
4433
4436
|
}, ss = /* @__PURE__ */ d({
|
|
@@ -4506,7 +4509,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4506
4509
|
counterBadgeVariant: n.counterBadgeVariant,
|
|
4507
4510
|
size: n.size
|
|
4508
4511
|
})), d = t, [f] = /* @__PURE__ */ Le(n.defaultOpen), p = se(e, "modelValue"), m = se(e, "searchInput");
|
|
4509
|
-
|
|
4512
|
+
L(f, (e) => {
|
|
4510
4513
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
4511
4514
|
});
|
|
4512
4515
|
let h = r(() => !n.staticLabel && p.value && p.value.text ? p.value.text : n.label), g = r(() => p.value?.icon || n.icon), v = r(() => {
|
|
@@ -4545,7 +4548,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4545
4548
|
modelValue: I(f),
|
|
4546
4549
|
"onUpdate:modelValue": n[2] ||= (e) => _(f) ? f.value = e : null
|
|
4547
4550
|
}, c.value), {
|
|
4548
|
-
trigger:
|
|
4551
|
+
trigger: R(() => [u(Lt, {
|
|
4549
4552
|
class: "pv-full-width",
|
|
4550
4553
|
ref: "select-button-trigger-ref",
|
|
4551
4554
|
variant: e.variant,
|
|
@@ -4589,7 +4592,7 @@ var Jo = ["data-align"], Yo = ["id", "role"], Xo = /* @__PURE__ */ ot(/* @__PURE
|
|
|
4589
4592
|
"renderer",
|
|
4590
4593
|
"selectedOption"
|
|
4591
4594
|
])]),
|
|
4592
|
-
content:
|
|
4595
|
+
content: R(() => [s("div", {
|
|
4593
4596
|
class: "pv-popover pv-popover-scrollable",
|
|
4594
4597
|
"data-test-id": "pv-popover",
|
|
4595
4598
|
style: C([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -4957,15 +4960,15 @@ var cc = {
|
|
|
4957
4960
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
4958
4961
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
4959
4962
|
if (Q(a) && o.transform !== "strict") {
|
|
4960
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Us(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Us(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Us(x, ["dark"]), w = y || {}, { dark: T } = w, E = Us(w, ["dark"]), D = Q(t) ? this._toVariables({ primitive: t }, o) : {}, O = Q(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Q(C) ? this._toVariables({ light: C }, o) : {}, A = Q(S) ? this._toVariables({ dark: S }, o) : {}, j = Q(b) ? this._toVariables({ semantic: b }, o) : {}, ee = Q(E) ? this._toVariables({ light: E }, o) : {}, M = Q(T) ? this._toVariables({ dark: T }, o) : {}, [te, N] = [D.declarations ?? "", D.tokens], [ne, re] = [O.declarations ?? "", O.tokens || []], [ie, P] = [k.declarations ?? "", k.tokens || []], [F, I] = [A.declarations ?? "", A.tokens || []], [ae, oe] = [j.declarations ?? "", j.tokens || []], [se,
|
|
4963
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Us(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Us(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Us(x, ["dark"]), w = y || {}, { dark: T } = w, E = Us(w, ["dark"]), D = Q(t) ? this._toVariables({ primitive: t }, o) : {}, O = Q(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Q(C) ? this._toVariables({ light: C }, o) : {}, A = Q(S) ? this._toVariables({ dark: S }, o) : {}, j = Q(b) ? this._toVariables({ semantic: b }, o) : {}, ee = Q(E) ? this._toVariables({ light: E }, o) : {}, M = Q(T) ? this._toVariables({ dark: T }, o) : {}, [te, N] = [D.declarations ?? "", D.tokens], [ne, re] = [O.declarations ?? "", O.tokens || []], [ie, P] = [k.declarations ?? "", k.tokens || []], [F, I] = [A.declarations ?? "", A.tokens || []], [ae, oe] = [j.declarations ?? "", j.tokens || []], [se, ce] = [ee.declarations ?? "", ee.tokens || []], [le, ue] = [M.declarations ?? "", M.tokens || []];
|
|
4961
4964
|
s = this.transformCSS(e, te, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${ne}${ie}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${F}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
4962
4965
|
...re,
|
|
4963
4966
|
...P,
|
|
4964
4967
|
...I
|
|
4965
|
-
])], d = `${this.transformCSS(e, `${ae}${se}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${
|
|
4968
|
+
])], 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([
|
|
4966
4969
|
...oe,
|
|
4967
|
-
...
|
|
4968
|
-
...
|
|
4970
|
+
...ce,
|
|
4971
|
+
...ue
|
|
4969
4972
|
])], p = ys(a.css, { dt: ic });
|
|
4970
4973
|
}
|
|
4971
4974
|
return {
|
|
@@ -5365,7 +5368,7 @@ function vc(e) {
|
|
|
5365
5368
|
nonce: u
|
|
5366
5369
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Ns(i.value, "data-primevue-style-id", c), js(i.value, o), i.value.onload = function(e) {
|
|
5367
5370
|
return D?.(e, { name: c });
|
|
5368
|
-
}, C?.(c)), !n.value && (A =
|
|
5371
|
+
}, C?.(c)), !n.value && (A = L(r, function(e) {
|
|
5369
5372
|
i.value.textContent = e, T?.(c);
|
|
5370
5373
|
}, { immediate: !0 }), n.value = !0);
|
|
5371
5374
|
}
|
|
@@ -5876,7 +5879,7 @@ function Yc(e, t) {
|
|
|
5876
5879
|
Ws.on("theme:change", function(t) {
|
|
5877
5880
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
5878
5881
|
});
|
|
5879
|
-
var i =
|
|
5882
|
+
var i = L(t.config, function(e, t) {
|
|
5880
5883
|
Lc.emit("config:change", {
|
|
5881
5884
|
newValue: e,
|
|
5882
5885
|
oldValue: t
|
|
@@ -5884,7 +5887,7 @@ function Yc(e, t) {
|
|
|
5884
5887
|
}, {
|
|
5885
5888
|
immediate: !0,
|
|
5886
5889
|
deep: !0
|
|
5887
|
-
}), a =
|
|
5890
|
+
}), a = L(function() {
|
|
5888
5891
|
return t.config.ripple;
|
|
5889
5892
|
}, function(e, t) {
|
|
5890
5893
|
Lc.emit("config:ripple:change", {
|
|
@@ -5894,7 +5897,7 @@ function Yc(e, t) {
|
|
|
5894
5897
|
}, {
|
|
5895
5898
|
immediate: !0,
|
|
5896
5899
|
deep: !0
|
|
5897
|
-
}), o =
|
|
5900
|
+
}), o = L(function() {
|
|
5898
5901
|
return t.config.theme;
|
|
5899
5902
|
}, function(e, i) {
|
|
5900
5903
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, Lc.emit("config:theme:change", {
|
|
@@ -5904,7 +5907,7 @@ function Yc(e, t) {
|
|
|
5904
5907
|
}, {
|
|
5905
5908
|
immediate: !0,
|
|
5906
5909
|
deep: !1
|
|
5907
|
-
}), s =
|
|
5910
|
+
}), s = L(function() {
|
|
5908
5911
|
return t.config.unstyled;
|
|
5909
5912
|
}, function(e, n) {
|
|
5910
5913
|
!e && t.config.theme && r(), Lc.emit("config:unstyled:change", {
|