@turquoisehealth/pit-viper 2.231.0 → 2.232.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 +29 -1
- package/_site/assets/css/pit-viper-consumer.css +29 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +25 -1
- package/_site/assets/css/pit-viper-v2.css +29 -1
- package/_site/assets/css/pit-viper.css +29 -1
- 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-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-range-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-split-button-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/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +33 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/usePvFilterPanel.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +3 -1
- package/pv-components/dist/vue/ai/components/base/PvRange/types.d.ts +9 -1
- package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +33 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/usePvFilterPanel.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvRange/PvRange.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvRange/types.d.ts +9 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2390 -2283
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +33 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/usePvFilterPanel.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvRange/PvRange.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvRange/types.d.ts +9 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +18 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/tables/symbols.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +991 -925
- 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 +395 -395
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +2174 -2007
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +2166 -1946
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +633 -633
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +19 -19
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -2
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +27 -19
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +19 -19
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +573 -573
- package/pv-components/dist/web/components/pv-range/pv-range.js +720 -675
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +208 -208
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +19 -19
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +267 -267
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +19 -19
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +307 -307
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +19 -19
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
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, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onBeforeUpdate as C, onMounted as w, onScopeDispose as T, onUnmounted 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, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onBeforeUpdate as C, onMounted as w, onScopeDispose as T, onUnmounted as E, openBlock as D, reactive as O, readonly as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as ee, shallowRef as N, toDisplayString as P, toValue as F, unref as I, useModel as te, useSlots as ne, vShow as re, watch as L, watchEffect as ie, withCtx as R, withDirectives as ae, withKeys as oe } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var se = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, le = Object.getOwnPropertyNames, ue = Object.prototype.hasOwnProperty, de = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) se(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
10
|
+
return t || se(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, fe = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = le(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ue.call(e, s) && s !== n && se(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = ce(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, z = (e, t, n) => (fe(e, t, "default"), n && fe(n, t, "default"));
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
20
|
-
function
|
|
20
|
+
function pe(e) {
|
|
21
21
|
return m() ? (T(e), !0) : !1;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var me = typeof window < "u" && typeof document < "u";
|
|
24
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
25
|
-
var
|
|
25
|
+
var he = (e) => e != null, ge = Object.prototype.toString, _e = (e) => ge.call(e) === "[object Object]", B = () => {}, ve = /* @__PURE__ */ ye();
|
|
26
26
|
function ye() {
|
|
27
|
-
return
|
|
27
|
+
return me && (window == null ? void 0 : window.navigator)?.userAgent && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || (window == null ? void 0 : window.navigator)?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
28
28
|
}
|
|
29
29
|
function be(e, t) {
|
|
30
30
|
function n(...n) {
|
|
@@ -43,7 +43,7 @@ function xe(e, t = {}) {
|
|
|
43
43
|
clearTimeout(e), i(), i = B;
|
|
44
44
|
}, o;
|
|
45
45
|
return (s) => {
|
|
46
|
-
let c =
|
|
46
|
+
let c = F(e), l = F(t.maxWait);
|
|
47
47
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
48
48
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
49
49
|
n && a(n), r = void 0, e(o());
|
|
@@ -67,36 +67,36 @@ function we(e, t = !0, n) {
|
|
|
67
67
|
Se(n) ? w(e, n) : t ? e() : v(e);
|
|
68
68
|
}
|
|
69
69
|
function Te(e, t, n) {
|
|
70
|
-
return
|
|
70
|
+
return L(e, t, {
|
|
71
71
|
...n,
|
|
72
72
|
immediate: !0
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
77
|
-
var Ee =
|
|
78
|
-
|
|
77
|
+
var Ee = me ? window : void 0;
|
|
78
|
+
me && window.document, me && window.navigator, me && window.location;
|
|
79
79
|
function H(e) {
|
|
80
|
-
let t =
|
|
80
|
+
let t = F(e);
|
|
81
81
|
return t?.$el ?? t;
|
|
82
82
|
}
|
|
83
83
|
function De(...e) {
|
|
84
84
|
let t = [], n = () => {
|
|
85
85
|
t.forEach((e) => e()), t.length = 0;
|
|
86
86
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
87
|
-
let t = V(
|
|
87
|
+
let t = V(F(e[0])).filter((e) => e != null);
|
|
88
88
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
89
89
|
}), o = Te(() => [
|
|
90
90
|
a.value?.map((e) => H(e)) ?? [Ee].filter((e) => e != null),
|
|
91
|
-
V(
|
|
92
|
-
V(
|
|
93
|
-
|
|
91
|
+
V(F(a.value ? e[1] : e[0])),
|
|
92
|
+
V(I(a.value ? e[2] : e[1])),
|
|
93
|
+
F(a.value ? e[3] : e[2])
|
|
94
94
|
], ([e, r, a, o]) => {
|
|
95
95
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
96
96
|
let s = _e(o) ? { ...o } : o;
|
|
97
97
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
98
98
|
}, { flush: "post" });
|
|
99
|
-
return
|
|
99
|
+
return pe(n), () => {
|
|
100
100
|
o(), n();
|
|
101
101
|
};
|
|
102
102
|
}
|
|
@@ -113,7 +113,7 @@ function ke(e, t, n = {}) {
|
|
|
113
113
|
let e = { passive: !0 };
|
|
114
114
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", B, e)), r.document.documentElement.addEventListener("click", B, e);
|
|
115
115
|
}
|
|
116
|
-
let c = !0, l = (e) =>
|
|
116
|
+
let c = !0, l = (e) => F(i).some((t) => {
|
|
117
117
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
118
118
|
{
|
|
119
119
|
let n = H(t);
|
|
@@ -121,11 +121,11 @@ function ke(e, t, n = {}) {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
function u(e) {
|
|
124
|
-
let t =
|
|
124
|
+
let t = F(e);
|
|
125
125
|
return t && t.$.subTree.shapeFlag === 16;
|
|
126
126
|
}
|
|
127
127
|
function d(e, t) {
|
|
128
|
-
let n =
|
|
128
|
+
let n = F(e), r = n.$.subTree && n.$.subTree.children;
|
|
129
129
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
130
130
|
}
|
|
131
131
|
let f = (n) => {
|
|
@@ -169,7 +169,7 @@ function ke(e, t, n = {}) {
|
|
|
169
169
|
}
|
|
170
170
|
/* @__NO_SIDE_EFFECTS__ */
|
|
171
171
|
function Ae() {
|
|
172
|
-
let e =
|
|
172
|
+
let e = N(!1), t = p();
|
|
173
173
|
return t && w(() => {
|
|
174
174
|
e.value = !0;
|
|
175
175
|
}, t), e;
|
|
@@ -182,8 +182,8 @@ function je(e) {
|
|
|
182
182
|
function Me(e, t, n = {}) {
|
|
183
183
|
let { window: i = Ee, ...a } = n, o, s = /* @__PURE__ */ je(() => i && "MutationObserver" in i), c = () => {
|
|
184
184
|
o &&= (o.disconnect(), void 0);
|
|
185
|
-
}, l =
|
|
186
|
-
let t = V(
|
|
185
|
+
}, l = L(r(() => {
|
|
186
|
+
let t = V(F(e)).map(H).filter(he);
|
|
187
187
|
return new Set(t);
|
|
188
188
|
}), (e) => {
|
|
189
189
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -193,7 +193,7 @@ function Me(e, t, n = {}) {
|
|
|
193
193
|
}), u = () => o?.takeRecords(), d = () => {
|
|
194
194
|
l(), c();
|
|
195
195
|
};
|
|
196
|
-
return
|
|
196
|
+
return pe(d), {
|
|
197
197
|
isSupported: s,
|
|
198
198
|
stop: d,
|
|
199
199
|
takeRecords: u
|
|
@@ -204,7 +204,7 @@ function Ne(e, t, n = {}) {
|
|
|
204
204
|
if (!r || !i) return B;
|
|
205
205
|
let o, s = (e) => {
|
|
206
206
|
o?.(), o = e;
|
|
207
|
-
}, c =
|
|
207
|
+
}, c = ie(() => {
|
|
208
208
|
let n = H(e);
|
|
209
209
|
if (n) {
|
|
210
210
|
let { stop: e } = Me(i, (e) => {
|
|
@@ -219,13 +219,13 @@ function Ne(e, t, n = {}) {
|
|
|
219
219
|
}, { flush: a }), l = () => {
|
|
220
220
|
c(), s();
|
|
221
221
|
};
|
|
222
|
-
return
|
|
222
|
+
return pe(l), l;
|
|
223
223
|
}
|
|
224
224
|
function Pe(e, t, n = {}) {
|
|
225
225
|
let { window: i = Ee, ...a } = n, o, s = /* @__PURE__ */ je(() => i && "ResizeObserver" in i), c = () => {
|
|
226
226
|
o &&= (o.disconnect(), void 0);
|
|
227
|
-
}, l =
|
|
228
|
-
let t =
|
|
227
|
+
}, l = L(r(() => {
|
|
228
|
+
let t = F(e);
|
|
229
229
|
return Array.isArray(t) ? t.map((e) => H(e)) : [H(t)];
|
|
230
230
|
}), (e) => {
|
|
231
231
|
if (c(), s.value && i) {
|
|
@@ -238,13 +238,13 @@ function Pe(e, t, n = {}) {
|
|
|
238
238
|
}), u = () => {
|
|
239
239
|
c(), l();
|
|
240
240
|
};
|
|
241
|
-
return
|
|
241
|
+
return pe(u), {
|
|
242
242
|
isSupported: s,
|
|
243
243
|
stop: u
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
function Fe(e, t = {}) {
|
|
247
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
247
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = N(0), c = N(0), l = N(0), u = N(0), d = N(0), f = N(0), p = N(0), m = N(0);
|
|
248
248
|
function h() {
|
|
249
249
|
let t = H(e);
|
|
250
250
|
if (!t) {
|
|
@@ -257,7 +257,7 @@ function Fe(e, t = {}) {
|
|
|
257
257
|
function g() {
|
|
258
258
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
259
259
|
}
|
|
260
|
-
return Pe(e, g),
|
|
260
|
+
return Pe(e, g), L(() => H(e), (e) => !e && g()), Me(e, g, { attributeFilter: ["style", "class"] }), i && De("scroll", g, {
|
|
261
261
|
capture: !0,
|
|
262
262
|
passive: !0
|
|
263
263
|
}), r && De("resize", g, { passive: !0 }), we(() => {
|
|
@@ -275,7 +275,7 @@ function Fe(e, t = {}) {
|
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
function Ie(e, t = {}) {
|
|
278
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Ee } = t, s =
|
|
278
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Ee } = t, s = N(!1), c, l = (e) => {
|
|
279
279
|
let t = e ? n : i;
|
|
280
280
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
281
281
|
};
|
|
@@ -315,10 +315,10 @@ var Le = /* @__PURE__ */ d({
|
|
|
315
315
|
"pv-text-tertiary": t.variant == "ghost" || t.variant == "tertiary",
|
|
316
316
|
"pv-surface": t.variant == "ghost"
|
|
317
317
|
}));
|
|
318
|
-
return (e, t) => (
|
|
318
|
+
return (e, t) => (D(), o("div", {
|
|
319
319
|
class: y(i.value),
|
|
320
320
|
"data-testid": "pv-counter-badge"
|
|
321
|
-
},
|
|
321
|
+
}, P(n.value), 3));
|
|
322
322
|
}
|
|
323
323
|
}), Re = ".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}", ze = (e, t) => {
|
|
324
324
|
let n = e.__vccOpts || e;
|
|
@@ -328,7 +328,7 @@ var Le = /* @__PURE__ */ d({
|
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/web-components/utils.ts
|
|
330
330
|
function Ve() {
|
|
331
|
-
let e =
|
|
331
|
+
let e = A(!1), t = p()?.root || {};
|
|
332
332
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
333
333
|
}
|
|
334
334
|
//#endregion
|
|
@@ -348,11 +348,11 @@ var He = [
|
|
|
348
348
|
size: { type: null }
|
|
349
349
|
},
|
|
350
350
|
setup(e) {
|
|
351
|
-
let t = e, n = Ve(), i =
|
|
351
|
+
let t = e, n = Ve(), i = A(null), a = r(() => ({
|
|
352
352
|
"pv-icon": !0,
|
|
353
353
|
[`pv-icon-${t.size}`]: t.size != null && He.includes(t.size)
|
|
354
354
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
355
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (
|
|
355
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (D(), o("svg", {
|
|
356
356
|
"data-testid": "pv-icon",
|
|
357
357
|
"aria-hidden": "true",
|
|
358
358
|
class: y(a.value)
|
|
@@ -390,12 +390,12 @@ var He = [
|
|
|
390
390
|
}),
|
|
391
391
|
emits: /* @__PURE__ */ g(["summary-mouseenter", "summary-mouseleave"], ["update:modelValue"]),
|
|
392
392
|
setup(e) {
|
|
393
|
-
let n = e, c =
|
|
393
|
+
let n = e, c = te(e, "modelValue");
|
|
394
394
|
n.defaultOpen !== void 0 && (c.value = n.defaultOpen);
|
|
395
395
|
let l = (e) => {
|
|
396
396
|
c.value = e.target.open;
|
|
397
397
|
}, u = { width: n.enableTriggerFullWidth ? "100%" : "fit-content" }, d = r(() => n.chevronVariant === "horizontal" ? n.chevronPosition === "left" ? c.value ? "chevron-down" : "chevron-right" : c.value ? "chevron-down" : "chevron-left" : c.value ? "chevron-up" : "chevron-down");
|
|
398
|
-
return (n, r) => (
|
|
398
|
+
return (n, r) => (D(), o("details", {
|
|
399
399
|
"data-testid": "pv-accordion",
|
|
400
400
|
class: "pv-accordion",
|
|
401
401
|
open: c.value,
|
|
@@ -409,21 +409,21 @@ var He = [
|
|
|
409
409
|
onMouseenter: r[0] ||= (e) => n.$emit("summary-mouseenter"),
|
|
410
410
|
onMouseleave: r[1] ||= (e) => n.$emit("summary-mouseleave")
|
|
411
411
|
}), [
|
|
412
|
-
e.chevronPosition === "left" ? (
|
|
412
|
+
e.chevronPosition === "left" ? (D(), i(U, {
|
|
413
413
|
key: 0,
|
|
414
414
|
name: d.value
|
|
415
415
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
416
|
-
e.enableTriggerSlot ?
|
|
416
|
+
e.enableTriggerSlot ? M(n.$slots, "trigger", { key: 1 }, void 0, !0) : (D(), o(t, { key: 2 }, [s("span", null, P(e.header), 1), e.counter ? (D(), i(Be, {
|
|
417
417
|
key: 0,
|
|
418
418
|
value: e.counter,
|
|
419
419
|
variant: "secondary",
|
|
420
420
|
size: "sm"
|
|
421
421
|
}, null, 8, ["value"])) : a("v-if", !0)], 64)),
|
|
422
|
-
e.chevronPosition === "right" ? (
|
|
422
|
+
e.chevronPosition === "right" ? (D(), i(U, {
|
|
423
423
|
key: 3,
|
|
424
424
|
name: d.value
|
|
425
425
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
426
|
-
], 16), s("div", { style: x(e.contentStyles) }, [
|
|
426
|
+
], 16), s("div", { style: x(e.contentStyles) }, [M(n.$slots, "default", {}, void 0, !0)], 4)], 40, We));
|
|
427
427
|
}
|
|
428
428
|
}), [["styles", ["summary[data-v-a64056ef]{background-image:none;padding-right:2px}"]], ["__scopeId", "data-v-a64056ef"]]), Ke = /* @__PURE__ */ d({
|
|
429
429
|
__name: "PvSpinner",
|
|
@@ -449,7 +449,7 @@ var He = [
|
|
|
449
449
|
dark: "pv-spinner-dark",
|
|
450
450
|
white: "pv-spinner-light"
|
|
451
451
|
};
|
|
452
|
-
return (r, i) => (
|
|
452
|
+
return (r, i) => (D(), o("div", {
|
|
453
453
|
"data-testid": "pv-spinner",
|
|
454
454
|
class: y(n[e.variant]),
|
|
455
455
|
style: x({ "--size": t[e.size] })
|
|
@@ -499,33 +499,33 @@ var He = [
|
|
|
499
499
|
let t = Ye(n.size);
|
|
500
500
|
return t && e.push(t), e;
|
|
501
501
|
});
|
|
502
|
-
return (n, r) => (
|
|
502
|
+
return (n, r) => (D(), o("button", {
|
|
503
503
|
type: "button",
|
|
504
504
|
class: y(c.value),
|
|
505
505
|
disabled: e.disabled,
|
|
506
506
|
"aria-label": s.value,
|
|
507
507
|
"data-testid": "pv-button"
|
|
508
|
-
}, [e.loading ? (
|
|
508
|
+
}, [e.loading ? (D(), i(Ke, {
|
|
509
509
|
key: 0,
|
|
510
510
|
size: "sm"
|
|
511
|
-
})) : (
|
|
512
|
-
e.leftCounterBadge ? (
|
|
511
|
+
})) : (D(), o(t, { key: 1 }, [
|
|
512
|
+
e.leftCounterBadge ? (D(), i(Be, {
|
|
513
513
|
key: 0,
|
|
514
514
|
value: e.leftCounterBadge,
|
|
515
515
|
variant: "tertiary"
|
|
516
516
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
517
|
-
e.leftIcon ? (
|
|
517
|
+
e.leftIcon ? (D(), i(U, {
|
|
518
518
|
key: 1,
|
|
519
519
|
name: e.leftIcon,
|
|
520
520
|
"data-testid": "pv-button-left-icon"
|
|
521
521
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
522
|
-
e.label ? (
|
|
523
|
-
e.rightCounterBadge ? (
|
|
522
|
+
e.label ? (D(), o("span", Ze, P(e.label), 1)) : a("v-if", !0),
|
|
523
|
+
e.rightCounterBadge ? (D(), i(Be, {
|
|
524
524
|
key: 3,
|
|
525
525
|
value: e.rightCounterBadge,
|
|
526
526
|
variant: "tertiary"
|
|
527
527
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
528
|
-
e.rightIcon ? (
|
|
528
|
+
e.rightIcon ? (D(), i(U, {
|
|
529
529
|
key: 4,
|
|
530
530
|
name: e.rightIcon,
|
|
531
531
|
"data-testid": "pv-button-right-icon"
|
|
@@ -1179,7 +1179,7 @@ var En = {
|
|
|
1179
1179
|
...i,
|
|
1180
1180
|
platform: a
|
|
1181
1181
|
});
|
|
1182
|
-
}, J = /* @__PURE__ */
|
|
1182
|
+
}, J = /* @__PURE__ */ de({
|
|
1183
1183
|
Vue: () => e,
|
|
1184
1184
|
Vue2: () => void 0,
|
|
1185
1185
|
del: () => Nn,
|
|
@@ -1189,7 +1189,7 @@ var En = {
|
|
|
1189
1189
|
set: () => Mn
|
|
1190
1190
|
});
|
|
1191
1191
|
import * as An from "vue";
|
|
1192
|
-
|
|
1192
|
+
z(J, An);
|
|
1193
1193
|
function jn() {}
|
|
1194
1194
|
function Mn(e, t, n) {
|
|
1195
1195
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -1302,18 +1302,18 @@ function Hn(e, t) {
|
|
|
1302
1302
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1303
1303
|
}
|
|
1304
1304
|
function Un(e, t = {}) {
|
|
1305
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ve(), l = i ??
|
|
1305
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ve(), l = i ?? ne(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = A(d());
|
|
1306
1306
|
C(() => {
|
|
1307
1307
|
f.value = d();
|
|
1308
1308
|
});
|
|
1309
|
-
let p =
|
|
1309
|
+
let p = A(!1), m = null, h = null, g = () => {
|
|
1310
1310
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
1311
1311
|
}, _ = () => {
|
|
1312
1312
|
if (!c.value) {
|
|
1313
1313
|
p.value = !1;
|
|
1314
1314
|
return;
|
|
1315
1315
|
}
|
|
1316
|
-
let t =
|
|
1316
|
+
let t = I(n);
|
|
1317
1317
|
if (!t) {
|
|
1318
1318
|
p.value = !1;
|
|
1319
1319
|
return;
|
|
@@ -1327,7 +1327,7 @@ function Un(e, t = {}) {
|
|
|
1327
1327
|
}, v = () => {
|
|
1328
1328
|
if (!c.value) return;
|
|
1329
1329
|
g();
|
|
1330
|
-
let t =
|
|
1330
|
+
let t = I(n);
|
|
1331
1331
|
if (!t) {
|
|
1332
1332
|
p.value = !1;
|
|
1333
1333
|
return;
|
|
@@ -1340,7 +1340,7 @@ function Un(e, t = {}) {
|
|
|
1340
1340
|
characterData: !0
|
|
1341
1341
|
}));
|
|
1342
1342
|
};
|
|
1343
|
-
return w(v), S(g),
|
|
1343
|
+
return w(v), S(g), L(() => I(n), () => {
|
|
1344
1344
|
c.value && v();
|
|
1345
1345
|
}), {
|
|
1346
1346
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1351,7 +1351,7 @@ function Un(e, t = {}) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
//#endregion
|
|
1353
1353
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1354
|
-
var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.value?.contains(t.root.value), Kn = (e) => (
|
|
1354
|
+
var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.value?.contains(t.root.value), Kn = (e) => (E(() => Wn.delete(e)), (t) => {
|
|
1355
1355
|
if (!t) {
|
|
1356
1356
|
Wn.delete(e);
|
|
1357
1357
|
return;
|
|
@@ -1429,16 +1429,16 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1429
1429
|
}),
|
|
1430
1430
|
emits: ["update:modelValue"],
|
|
1431
1431
|
setup(e) {
|
|
1432
|
-
let t = e, c =
|
|
1432
|
+
let t = e, c = te(e, "modelValue"), l = p(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = Un("content", { host: u }), m = r(() => u ? f.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1433
1433
|
"anchor-name: --pv-anchor",
|
|
1434
1434
|
"position-area: bottom",
|
|
1435
1435
|
"position-try-fallbacks: flip-block",
|
|
1436
1436
|
"position-visibility: anchors-visible",
|
|
1437
1437
|
`anchor-scope: ${Jn}`
|
|
1438
|
-
].every((e) => CSS.supports(e)), g =
|
|
1438
|
+
].every((e) => CSS.supports(e)), g = A(!1), _ = A(null), y = A(null), b = A(null), S = A(null), C = Ie(y), T = Ie(S), O = A(!1), k = A(!1), j = A(!1), ee = Kn({
|
|
1439
1439
|
root: _,
|
|
1440
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1441
|
-
}),
|
|
1440
|
+
close: () => t.disableClickOutsideToClose ? !1 : (pe(), !0)
|
|
1441
|
+
}), N = {
|
|
1442
1442
|
"top-center": "top",
|
|
1443
1443
|
"bottom-center": "bottom",
|
|
1444
1444
|
"center-left": "left",
|
|
@@ -1449,7 +1449,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1449
1449
|
"top-right": "top-end",
|
|
1450
1450
|
"bottom-left": "bottom-start",
|
|
1451
1451
|
"bottom-right": "bottom-end"
|
|
1452
|
-
},
|
|
1452
|
+
}, P = {
|
|
1453
1453
|
"top-center": {
|
|
1454
1454
|
area: "top",
|
|
1455
1455
|
margin: "margin-block-end"
|
|
@@ -1490,155 +1490,155 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1490
1490
|
area: "bottom span-left",
|
|
1491
1491
|
margin: "margin-block-start"
|
|
1492
1492
|
}
|
|
1493
|
-
},
|
|
1493
|
+
}, F = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), ne = r(() => ({
|
|
1494
1494
|
width: "fit-content",
|
|
1495
1495
|
...h ? { "anchor-scope": Jn } : void 0,
|
|
1496
1496
|
...t.cssCustomProperties
|
|
1497
|
-
})),
|
|
1498
|
-
let e =
|
|
1497
|
+
})), ie = r(() => h ? { "anchor-name": Jn } : void 0), R = r(() => {
|
|
1498
|
+
let e = P[t.position];
|
|
1499
1499
|
return {
|
|
1500
1500
|
"position-anchor": Jn,
|
|
1501
1501
|
"position-area": e.area,
|
|
1502
1502
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1503
1503
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1504
1504
|
};
|
|
1505
|
-
}),
|
|
1505
|
+
}), oe = () => {}, se = () => ({});
|
|
1506
1506
|
if (!h) {
|
|
1507
1507
|
let e = [];
|
|
1508
1508
|
t.disableAutoPlacement || e.push(On({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Dn(t.offset));
|
|
1509
1509
|
let n = zn(b, S, {
|
|
1510
|
-
placement:
|
|
1510
|
+
placement: N[t.position],
|
|
1511
1511
|
strategy: t.positioningStrategy,
|
|
1512
1512
|
middleware: e
|
|
1513
1513
|
});
|
|
1514
|
-
|
|
1514
|
+
oe = n.update, se = () => n.floatingStyles.value;
|
|
1515
1515
|
let i = Fe(b), a = /* @__PURE__ */ Ce(() => {
|
|
1516
|
-
c.value &&
|
|
1516
|
+
c.value && oe();
|
|
1517
1517
|
}, 5);
|
|
1518
|
-
|
|
1518
|
+
L([
|
|
1519
1519
|
i.top,
|
|
1520
1520
|
i.left,
|
|
1521
1521
|
i.width,
|
|
1522
1522
|
i.height
|
|
1523
1523
|
], a), ke(_, () => {
|
|
1524
|
-
t.disableClickOutsideToClose ||
|
|
1524
|
+
t.disableClickOutsideToClose || z(!1);
|
|
1525
1525
|
}, { ignore: r(() => [
|
|
1526
1526
|
S.value,
|
|
1527
1527
|
".p-datepicker-panel",
|
|
1528
1528
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1529
1529
|
]) });
|
|
1530
1530
|
}
|
|
1531
|
-
let
|
|
1532
|
-
...
|
|
1531
|
+
let ce = r(() => ({
|
|
1532
|
+
...se(),
|
|
1533
1533
|
zIndex: t.zIndex
|
|
1534
|
-
})), ue, de
|
|
1534
|
+
})), le, ue, de = () => {
|
|
1535
|
+
le && clearTimeout(le), le = void 0;
|
|
1536
|
+
}, fe = () => {
|
|
1535
1537
|
ue && clearTimeout(ue), ue = void 0;
|
|
1536
|
-
},
|
|
1537
|
-
de &&
|
|
1538
|
-
|
|
1539
|
-
fe(), pe(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ue = setTimeout(() => {
|
|
1540
|
-
c.value = !0, ue = void 0;
|
|
1538
|
+
}, z = (e) => {
|
|
1539
|
+
de(), fe(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? le = setTimeout(() => {
|
|
1540
|
+
c.value = !0, le = void 0;
|
|
1541
1541
|
}, t.delay) : c.value = e);
|
|
1542
|
+
}, pe = () => {
|
|
1543
|
+
de(), fe(), c.value = !1;
|
|
1542
1544
|
}, me = () => {
|
|
1543
|
-
fe(), pe(), c.value = !1;
|
|
1544
|
-
}, he = () => {
|
|
1545
1545
|
let e = S.value;
|
|
1546
1546
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1547
|
-
},
|
|
1548
|
-
|
|
1547
|
+
}, he = r(() => !!c.value && (T.value || k.value)), ge = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? C.value || O.value : C.value || O.value || he.value);
|
|
1548
|
+
L([
|
|
1549
1549
|
C,
|
|
1550
|
-
|
|
1551
|
-
|
|
1550
|
+
O,
|
|
1551
|
+
k
|
|
1552
1552
|
], ([e, t, n]) => {
|
|
1553
|
-
!e && !t && !n && (
|
|
1553
|
+
!e && !t && !n && (j.value = !1);
|
|
1554
1554
|
});
|
|
1555
|
-
let
|
|
1556
|
-
D.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1557
|
-
}, _e = ({ target: e }) => {
|
|
1555
|
+
let _e = ({ target: e }) => {
|
|
1558
1556
|
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1559
|
-
}, B = () => {
|
|
1560
|
-
|
|
1557
|
+
}, B = ({ target: e }) => {
|
|
1558
|
+
k.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1561
1559
|
}, ve = () => {
|
|
1560
|
+
k.value = !1;
|
|
1561
|
+
}, ye = () => {
|
|
1562
1562
|
if (t.showOnHover) {
|
|
1563
1563
|
if (t.disableClickOutsideToClose) return;
|
|
1564
|
-
if (!c.value && !
|
|
1565
|
-
|
|
1564
|
+
if (!c.value && !le && t.enableClickToggle) {
|
|
1565
|
+
j.value = !1, z(!0);
|
|
1566
1566
|
return;
|
|
1567
1567
|
}
|
|
1568
|
-
|
|
1568
|
+
j.value = !0, pe();
|
|
1569
1569
|
return;
|
|
1570
1570
|
}
|
|
1571
|
-
|
|
1572
|
-
},
|
|
1571
|
+
z(le ? !1 : !c.value);
|
|
1572
|
+
}, be = (e) => {
|
|
1573
1573
|
let t = e.newState === "open";
|
|
1574
1574
|
c.value !== t && (c.value = t);
|
|
1575
|
-
},
|
|
1576
|
-
h &&
|
|
1575
|
+
}, xe = (e) => {
|
|
1576
|
+
h && F.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), z(!1));
|
|
1577
1577
|
};
|
|
1578
|
-
return
|
|
1579
|
-
if (t.showOnHover && t.enableGroupSync &&
|
|
1580
|
-
e &&
|
|
1578
|
+
return L(c, async (e) => {
|
|
1579
|
+
if (t.showOnHover && t.enableGroupSync && ee(!!e), !h) {
|
|
1580
|
+
e && oe();
|
|
1581
1581
|
return;
|
|
1582
1582
|
}
|
|
1583
|
-
await v(),
|
|
1584
|
-
}),
|
|
1583
|
+
await v(), me();
|
|
1584
|
+
}), L(ge, (e) => {
|
|
1585
1585
|
if (t.showOnHover) {
|
|
1586
1586
|
if (e) {
|
|
1587
|
-
|
|
1587
|
+
z(!0);
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
}, t.closeDelay)) :
|
|
1590
|
+
de(), t.closeDelay > 0 ? (fe(), ue = setTimeout(() => {
|
|
1591
|
+
ue = void 0, ge.value || z(!1);
|
|
1592
|
+
}, t.closeDelay)) : z(!1);
|
|
1593
1593
|
}
|
|
1594
|
-
}),
|
|
1595
|
-
e ? h && c.value && v(
|
|
1594
|
+
}), L(m, (e) => {
|
|
1595
|
+
e ? h && c.value && v(me) : pe();
|
|
1596
1596
|
}), w(() => {
|
|
1597
|
-
b.value = y.value, g.value = !0, c.value && v(() => h ?
|
|
1598
|
-
}),
|
|
1599
|
-
|
|
1600
|
-
}),
|
|
1597
|
+
b.value = y.value, g.value = !0, c.value && v(() => h ? me() : oe());
|
|
1598
|
+
}), E(() => {
|
|
1599
|
+
de(), fe();
|
|
1600
|
+
}), L(() => t.disabled, (e) => {
|
|
1601
1601
|
if (!e) {
|
|
1602
|
-
|
|
1602
|
+
ge.value && z(!0);
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
|
-
|
|
1606
|
-
}), (r, l) => (
|
|
1605
|
+
O.value &&= !1, k.value &&= !1, z(!1);
|
|
1606
|
+
}), (r, l) => (D(), o("div", {
|
|
1607
1607
|
ref_key: "root",
|
|
1608
1608
|
ref: _,
|
|
1609
|
-
style: x(
|
|
1610
|
-
onKeydown:
|
|
1609
|
+
style: x(ne.value),
|
|
1610
|
+
onKeydown: xe
|
|
1611
1611
|
}, [s("div", {
|
|
1612
1612
|
ref_key: "triggerWrapper",
|
|
1613
1613
|
ref: y,
|
|
1614
|
-
style: x(
|
|
1615
|
-
onClick:
|
|
1616
|
-
onFocusin:
|
|
1617
|
-
onFocusout: l[0] ||= (e) =>
|
|
1618
|
-
}, [
|
|
1614
|
+
style: x(ie.value),
|
|
1615
|
+
onClick: ye,
|
|
1616
|
+
onFocusin: _e,
|
|
1617
|
+
onFocusout: l[0] ||= (e) => O.value = !1
|
|
1618
|
+
}, [M(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (D(), o("div", {
|
|
1619
1619
|
key: 0,
|
|
1620
1620
|
ref_key: "floating",
|
|
1621
1621
|
ref: S,
|
|
1622
1622
|
class: "pv-floating pv-floating-native",
|
|
1623
|
-
popover:
|
|
1624
|
-
style: x(
|
|
1625
|
-
onToggle:
|
|
1626
|
-
onFocusin:
|
|
1627
|
-
onFocusout:
|
|
1628
|
-
}, [e.disabled ? a("v-if", !0) :
|
|
1623
|
+
popover: F.value,
|
|
1624
|
+
style: x(R.value),
|
|
1625
|
+
onToggle: be,
|
|
1626
|
+
onFocusin: B,
|
|
1627
|
+
onFocusout: ve
|
|
1628
|
+
}, [e.disabled ? a("v-if", !0) : M(r.$slots, "content", { key: 0 })], 44, qn)) : m.value ? (D(), i(n, {
|
|
1629
1629
|
key: 1,
|
|
1630
1630
|
to: e.teleportLocation,
|
|
1631
1631
|
disabled: !t.useTeleport || e.disabled
|
|
1632
|
-
}, [
|
|
1632
|
+
}, [ae(s("div", {
|
|
1633
1633
|
ref_key: "floating",
|
|
1634
1634
|
ref: S,
|
|
1635
1635
|
class: "pv-floating",
|
|
1636
|
-
style: x(
|
|
1637
|
-
onFocusin:
|
|
1638
|
-
onFocusout:
|
|
1639
|
-
}, [
|
|
1636
|
+
style: x(ce.value),
|
|
1637
|
+
onFocusin: B,
|
|
1638
|
+
onFocusout: ve
|
|
1639
|
+
}, [M(r.$slots, "content")], 36), [[re, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1640
1640
|
}
|
|
1641
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1641
|
+
}), [["styles", [".pv-floating-native[data-v-2b80f35f]{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-2b80f35f]>.pv-popover,.pv-floating-native>slot[name=content][data-v-2b80f35f]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-2b80f35f"]]), Xn = ["data-variant"], Zn = /* @__PURE__ */ d({
|
|
1642
1642
|
__name: "PvTooltipV2",
|
|
1643
1643
|
props: {
|
|
1644
1644
|
variant: {
|
|
@@ -1683,16 +1683,16 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1683
1683
|
},
|
|
1684
1684
|
setup(e) {
|
|
1685
1685
|
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 } = Un("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
1686
|
-
return (t, n) => (
|
|
1687
|
-
trigger:
|
|
1686
|
+
return (t, n) => (D(), i(Yn, b(h(t.$props)), c({
|
|
1687
|
+
trigger: R(() => [M(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1688
1688
|
_: 2
|
|
1689
1689
|
}, [f.value ? {
|
|
1690
1690
|
name: "content",
|
|
1691
|
-
fn:
|
|
1691
|
+
fn: R(() => [s("div", {
|
|
1692
1692
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1693
1693
|
role: "tooltip",
|
|
1694
1694
|
"data-variant": e.variant
|
|
1695
|
-
}, [
|
|
1695
|
+
}, [M(t.$slots, "content", {}, () => [l(P(e.description), 1)])], 10, Xn)]),
|
|
1696
1696
|
key: "0"
|
|
1697
1697
|
} : void 0]), 1040));
|
|
1698
1698
|
}
|
|
@@ -1815,70 +1815,70 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1815
1815
|
}),
|
|
1816
1816
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
1817
1817
|
setup(e, { emit: n }) {
|
|
1818
|
-
let c = e, d = p(), f = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Un("sidebar-additional-content", { host: f }), { present: h } = Un("sidebar-additional-header", { host: f }), { present: g } = Un("sidebar-help-content", { host: f }), { present: b } = Un("sidebar-profile-content", { host: f }), C =
|
|
1819
|
-
"--pv-sidebar-hover-panel-height": `${
|
|
1820
|
-
"--pv-sidebar-hover-panel-left": `${
|
|
1821
|
-
"--pv-sidebar-hover-panel-top": `${
|
|
1822
|
-
})),
|
|
1818
|
+
let c = e, d = p(), f = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Un("sidebar-additional-content", { host: f }), { present: h } = Un("sidebar-additional-header", { host: f }), { present: g } = Un("sidebar-help-content", { host: f }), { present: b } = Un("sidebar-profile-content", { host: f }), C = ne(), T = A(null), E = A(null), O = A({}), k = A(), N = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), re = A(0), ie = Fe(E), ae = r(() => ({
|
|
1819
|
+
"--pv-sidebar-hover-panel-height": `${ie.height.value}px`,
|
|
1820
|
+
"--pv-sidebar-hover-panel-left": `${ie.right.value}px`,
|
|
1821
|
+
"--pv-sidebar-hover-panel-top": `${ie.top.value}px`
|
|
1822
|
+
})), se, ce = (e) => e.hoverPanelSlot ? f ? (re.value, Array.from(f.children).some((t) => t.getAttribute("slot") === e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, le = (e, t, n) => {
|
|
1823
1823
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
1824
|
-
},
|
|
1825
|
-
let t =
|
|
1824
|
+
}, ue = (e) => {
|
|
1825
|
+
let t = N.get(e), n = t?.querySelector($r);
|
|
1826
1826
|
if (n) return n;
|
|
1827
1827
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
1828
1828
|
if (t.matches($r)) return t;
|
|
1829
1829
|
let e = t.querySelector($r);
|
|
1830
1830
|
if (e) return e;
|
|
1831
1831
|
}
|
|
1832
|
-
},
|
|
1832
|
+
}, de = (e, t) => {
|
|
1833
1833
|
if (e.shiftKey) return;
|
|
1834
|
-
let n =
|
|
1835
|
-
n && (e.preventDefault(),
|
|
1836
|
-
},
|
|
1837
|
-
|
|
1838
|
-
|
|
1834
|
+
let n = ue(t);
|
|
1835
|
+
n && (e.preventDefault(), O.value[t] = !0, v(() => n.focus()));
|
|
1836
|
+
}, fe = (e) => {
|
|
1837
|
+
k.value = e, O.value[e] = !1, v(() => {
|
|
1838
|
+
F.get(e)?.focus({ preventScroll: !0 }), v(() => k.value = void 0);
|
|
1839
1839
|
});
|
|
1840
|
-
},
|
|
1841
|
-
e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) &&
|
|
1842
|
-
},
|
|
1843
|
-
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
1840
|
+
}, z = (e, t) => {
|
|
1841
|
+
e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && fe(t);
|
|
1842
|
+
}, pe = (e, t) => {
|
|
1843
|
+
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), fe(t));
|
|
1844
1844
|
};
|
|
1845
1845
|
w(() => {
|
|
1846
|
-
f && (
|
|
1847
|
-
e.some((e) => e.target === f || e.type === "attributes" && e.target.parentNode === f) && (
|
|
1848
|
-
}),
|
|
1846
|
+
f && (se = new MutationObserver((e) => {
|
|
1847
|
+
e.some((e) => e.target === f || e.type === "attributes" && e.target.parentNode === f) && (re.value += 1);
|
|
1848
|
+
}), se.observe(f, {
|
|
1849
1849
|
attributes: !0,
|
|
1850
1850
|
attributeFilter: ["slot"],
|
|
1851
1851
|
childList: !0,
|
|
1852
1852
|
subtree: !0
|
|
1853
1853
|
}));
|
|
1854
|
-
}), S(() =>
|
|
1855
|
-
let
|
|
1854
|
+
}), S(() => se?.disconnect());
|
|
1855
|
+
let me = (e) => {
|
|
1856
1856
|
for (let t of e) {
|
|
1857
1857
|
if (t.active) return t;
|
|
1858
|
-
let e = t.entities &&
|
|
1858
|
+
let e = t.entities && me(t.entities);
|
|
1859
1859
|
if (e) return e;
|
|
1860
1860
|
}
|
|
1861
|
-
},
|
|
1861
|
+
}, he = r(() => (c.organizations && me(c.organizations)) ?? c.organizations?.[0]), ge = (e) => !!(e.active || e.children?.some((e) => e.active)), _e = A((() => {
|
|
1862
1862
|
let e = {};
|
|
1863
1863
|
return c.navItems?.forEach((t) => {
|
|
1864
1864
|
ge(t) && (e[t.value] = !0);
|
|
1865
1865
|
}), e;
|
|
1866
1866
|
})());
|
|
1867
|
-
|
|
1867
|
+
L(() => c.navItems, (e) => {
|
|
1868
1868
|
e?.forEach((e) => {
|
|
1869
1869
|
ge(e) && (_e.value[e.value] = !0);
|
|
1870
1870
|
});
|
|
1871
1871
|
});
|
|
1872
|
-
let B =
|
|
1873
|
-
be.value = !1,
|
|
1872
|
+
let B = te(e, "modelValue"), ve = A(!1), ye = n, be = A(!1), xe = A(!1), V = A(!1), Se = () => {
|
|
1873
|
+
be.value = !1, O.value = {}, xe.value = !1, V.value = !1;
|
|
1874
1874
|
};
|
|
1875
|
-
|
|
1876
|
-
e && (
|
|
1877
|
-
}),
|
|
1878
|
-
e && (be.value = !1,
|
|
1879
|
-
}),
|
|
1880
|
-
e && (be.value = !1,
|
|
1881
|
-
}),
|
|
1875
|
+
L(be, (e) => {
|
|
1876
|
+
e && (O.value = {}, xe.value = !1, V.value = !1);
|
|
1877
|
+
}), L(xe, (e) => {
|
|
1878
|
+
e && (be.value = !1, O.value = {}, V.value = !1);
|
|
1879
|
+
}), L(V, (e) => {
|
|
1880
|
+
e && (be.value = !1, O.value = {}, xe.value = !1);
|
|
1881
|
+
}), L(B, () => {
|
|
1882
1882
|
Se(), ve.value = !0;
|
|
1883
1883
|
});
|
|
1884
1884
|
let Ce = () => {
|
|
@@ -1894,20 +1894,20 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1894
1894
|
window.location.href = t.url;
|
|
1895
1895
|
}
|
|
1896
1896
|
};
|
|
1897
|
-
return (n, r) => (
|
|
1897
|
+
return (n, r) => (D(), o("div", {
|
|
1898
1898
|
class: y(["sidebar-layout sidebar-layout-new", [e.variant && `sidebar-layout-${e.variant}`, {
|
|
1899
1899
|
"is-collapsed": B.value,
|
|
1900
1900
|
"is-expanded": !B.value,
|
|
1901
1901
|
"is-transitioning": ve.value
|
|
1902
1902
|
}]]),
|
|
1903
|
-
style: x(
|
|
1903
|
+
style: x(ae.value),
|
|
1904
1904
|
onTransitionend: we
|
|
1905
1905
|
}, [
|
|
1906
1906
|
s("div", {
|
|
1907
1907
|
ref_key: "sidebarPanel",
|
|
1908
|
-
ref:
|
|
1908
|
+
ref: E,
|
|
1909
1909
|
class: "sidebar-panel"
|
|
1910
|
-
}, [s("div", null, [
|
|
1910
|
+
}, [s("div", null, [I(h) ? (D(), o("div", Qn, [M(n.$slots, "sidebar-additional-header")])) : a("v-if", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": B.value }]]) }, [s("div", $n, [e.organizations && e.organizations.length ? (D(), o("div", er, [u(Yn, {
|
|
1911
1911
|
modelValue: xe.value,
|
|
1912
1912
|
"onUpdate:modelValue": r[0] ||= (e) => xe.value = e,
|
|
1913
1913
|
position: B.value ? "right-top" : "bottom-left",
|
|
@@ -1918,35 +1918,35 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1918
1918
|
"teleport-location": T.value ?? "body",
|
|
1919
1919
|
"css-custom-properties": { width: "100%" }
|
|
1920
1920
|
}, {
|
|
1921
|
-
trigger:
|
|
1921
|
+
trigger: R(() => [s("button", {
|
|
1922
1922
|
type: "button",
|
|
1923
1923
|
class: "pv-nav-list-item pv-full-width pv-space-between",
|
|
1924
|
-
"aria-label": `Switch organization: ${
|
|
1924
|
+
"aria-label": `Switch organization: ${he.value?.label}`,
|
|
1925
1925
|
"aria-expanded": xe.value
|
|
1926
|
-
}, [s("div", nr, [s("span", rr, [
|
|
1926
|
+
}, [s("div", nr, [s("span", rr, [he.value?.avatarUrl ? (D(), o("img", {
|
|
1927
1927
|
key: 0,
|
|
1928
|
-
src:
|
|
1928
|
+
src: he.value.avatarUrl,
|
|
1929
1929
|
alt: "Organization Avatar"
|
|
1930
|
-
}, null, 8, ir)) : (
|
|
1930
|
+
}, null, 8, ir)) : (D(), o("span", ar, P(he.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
1931
1931
|
class: "pv-text-title-lg pv-truncate",
|
|
1932
1932
|
"data-sidebar-expanded-content": "",
|
|
1933
|
-
title:
|
|
1934
|
-
},
|
|
1933
|
+
title: he.value?.label
|
|
1934
|
+
}, P(he.value?.label), 9, or)]), u(U, {
|
|
1935
1935
|
name: "chevron-down",
|
|
1936
1936
|
class: "pv-icon-16",
|
|
1937
1937
|
"data-sidebar-expanded-content": ""
|
|
1938
1938
|
})], 8, tr)]),
|
|
1939
|
-
content:
|
|
1939
|
+
content: R(() => [s("div", sr, [s("ul", cr, [(D(!0), o(t, null, j(e.organizations, (e) => (D(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
1940
1940
|
class: "pv-flex",
|
|
1941
1941
|
href: e.url
|
|
1942
|
-
}, [s("div", dr, [e.avatarUrl ? (
|
|
1942
|
+
}, [s("div", dr, [e.avatarUrl ? (D(), o("img", {
|
|
1943
1943
|
key: 0,
|
|
1944
1944
|
src: e.avatarUrl,
|
|
1945
1945
|
alt: "Organization Avatar"
|
|
1946
|
-
}, null, 8, fr)) : (
|
|
1946
|
+
}, null, 8, fr)) : (D(), o("span", pr, P(e.label.slice(0, 1)), 1))]), s("span", {
|
|
1947
1947
|
class: "pv-truncate pv-flex-item",
|
|
1948
1948
|
title: e.label
|
|
1949
|
-
},
|
|
1949
|
+
}, P(e.label), 9, mr)], 8, ur)], 8, lr), (D(!0), o(t, null, j(e.entities, (e) => (D(), o("li", {
|
|
1950
1950
|
key: e.value,
|
|
1951
1951
|
style: { "padding-left": "0.5rem" },
|
|
1952
1952
|
"data-active": e.active || void 0
|
|
@@ -1957,7 +1957,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1957
1957
|
}, [u(U, { name: "corner-down-right" }), s("span", {
|
|
1958
1958
|
class: "pv-truncate",
|
|
1959
1959
|
title: e.label
|
|
1960
|
-
},
|
|
1960
|
+
}, P(e.label), 9, _r)], 8, gr)], 8, hr))), 128))], 64))), 128))])])]),
|
|
1961
1961
|
_: 1
|
|
1962
1962
|
}, 8, [
|
|
1963
1963
|
"modelValue",
|
|
@@ -1965,54 +1965,54 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1965
1965
|
"show-on-hover",
|
|
1966
1966
|
"use-teleport",
|
|
1967
1967
|
"teleport-location"
|
|
1968
|
-
])])) : a("v-if", !0)]), e.disableToggle ? a("v-if", !0) : (
|
|
1968
|
+
])])) : a("v-if", !0)]), e.disableToggle ? a("v-if", !0) : (D(), i(Zn, {
|
|
1969
1969
|
key: 0,
|
|
1970
1970
|
variant: "white",
|
|
1971
1971
|
position: "center-right",
|
|
1972
1972
|
delay: 1e3
|
|
1973
1973
|
}, {
|
|
1974
|
-
trigger:
|
|
1974
|
+
trigger: R(() => [u(Qe, {
|
|
1975
1975
|
class: "sidebar-toggle",
|
|
1976
1976
|
"left-icon": B.value ? "panel-left-open" : "panel-left-close",
|
|
1977
1977
|
"aria-label": B.value ? "Open sidebar" : "Close sidebar",
|
|
1978
1978
|
variant: "ghost",
|
|
1979
1979
|
onClick: Ce
|
|
1980
1980
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
1981
|
-
content:
|
|
1981
|
+
content: R(() => [l(P(B.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
1982
1982
|
_: 1
|
|
1983
1983
|
}))], 2)]), s("div", vr, [
|
|
1984
|
-
|
|
1985
|
-
e.navItems && e.navItems.length ? (
|
|
1984
|
+
I(m) ? (D(), o("div", yr, [M(n.$slots, "sidebar-additional-content")])) : a("v-if", !0),
|
|
1985
|
+
e.navItems && e.navItems.length ? (D(), o("ul", br, [(D(!0), o(t, null, j(e.navItems, (e) => (D(), o("li", { key: e.value }, [a(" Slotted full-height panel - available while collapsed or expanded "), ce(e) ? (D(), i(Yn, {
|
|
1986
1986
|
key: 0,
|
|
1987
|
-
modelValue:
|
|
1988
|
-
"onUpdate:modelValue": (t) =>
|
|
1987
|
+
modelValue: O.value[e.value],
|
|
1988
|
+
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
1989
1989
|
"show-on-hover": "",
|
|
1990
1990
|
"enable-group-sync": "",
|
|
1991
1991
|
"enable-click-toggle": "",
|
|
1992
1992
|
"use-teleport": !!T.value,
|
|
1993
1993
|
"teleport-location": T.value ?? "body",
|
|
1994
1994
|
position: "right-top",
|
|
1995
|
-
disabled:
|
|
1995
|
+
disabled: k.value === e.value,
|
|
1996
1996
|
"css-custom-properties": { width: "100%" }
|
|
1997
1997
|
}, {
|
|
1998
|
-
trigger:
|
|
1998
|
+
trigger: R(() => [(D(), i(ee(e.url ? "a" : "button"), _({
|
|
1999
1999
|
ref_for: !0,
|
|
2000
|
-
ref: (t) =>
|
|
2000
|
+
ref: (t) => le(I(F), e.value, t),
|
|
2001
2001
|
class: "pv-nav-list-item",
|
|
2002
2002
|
href: e.url,
|
|
2003
2003
|
type: e.url ? void 0 : "button"
|
|
2004
2004
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
2005
2005
|
"aria-current": e.active ? "page" : void 0,
|
|
2006
|
-
"aria-expanded": !!
|
|
2006
|
+
"aria-expanded": !!O.value[e.value],
|
|
2007
2007
|
"aria-label": B.value ? e.label : void 0,
|
|
2008
2008
|
title: B.value ? void 0 : e.label,
|
|
2009
|
-
onKeydown:
|
|
2009
|
+
onKeydown: oe((t) => de(t, e.value), ["tab"])
|
|
2010
2010
|
}), {
|
|
2011
|
-
default:
|
|
2011
|
+
default: R(() => [e.icon ? (D(), i(U, {
|
|
2012
2012
|
key: 0,
|
|
2013
2013
|
name: e.icon,
|
|
2014
2014
|
class: "pv-nav-icon"
|
|
2015
|
-
}, null, 8, ["name"])) : a("v-if", !0), s("span", xr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
2015
|
+
}, null, 8, ["name"])) : a("v-if", !0), s("span", xr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (D(), o("span", Sr, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)])]),
|
|
2016
2016
|
_: 2
|
|
2017
2017
|
}, 1040, [
|
|
2018
2018
|
"href",
|
|
@@ -2023,13 +2023,13 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2023
2023
|
"title",
|
|
2024
2024
|
"onKeydown"
|
|
2025
2025
|
]))]),
|
|
2026
|
-
content:
|
|
2026
|
+
content: R(() => [s("div", {
|
|
2027
2027
|
ref_for: !0,
|
|
2028
|
-
ref: (t) =>
|
|
2028
|
+
ref: (t) => le(I(N), e.value, t),
|
|
2029
2029
|
class: "pv-sidebar-hover-panel",
|
|
2030
|
-
onClick: (t) =>
|
|
2031
|
-
onKeydown: (t) =>
|
|
2032
|
-
}, [
|
|
2030
|
+
onClick: (t) => z(t, e.value),
|
|
2031
|
+
onKeydown: (t) => pe(t, e.value)
|
|
2032
|
+
}, [M(n.$slots, e.hoverPanelSlot)], 40, Cr)]),
|
|
2033
2033
|
_: 2
|
|
2034
2034
|
}, 1032, [
|
|
2035
2035
|
"modelValue",
|
|
@@ -2037,7 +2037,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2037
2037
|
"use-teleport",
|
|
2038
2038
|
"teleport-location",
|
|
2039
2039
|
"disabled"
|
|
2040
|
-
])) : !e.children || e.children.length === 0 ? (
|
|
2040
|
+
])) : !e.children || e.children.length === 0 ? (D(), o(t, { key: 1 }, [a(" Leaf item - direct link with a collapsed interactive flyout "), u(Yn, {
|
|
2041
2041
|
"show-on-hover": "",
|
|
2042
2042
|
"enable-group-sync": "",
|
|
2043
2043
|
"enable-click-toggle": "",
|
|
@@ -2047,24 +2047,24 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2047
2047
|
disabled: !B.value,
|
|
2048
2048
|
"css-custom-properties": { width: "100%" }
|
|
2049
2049
|
}, {
|
|
2050
|
-
trigger:
|
|
2050
|
+
trigger: R(() => [s("a", _({
|
|
2051
2051
|
class: "pv-nav-list-item",
|
|
2052
2052
|
href: e.url
|
|
2053
2053
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
2054
2054
|
"aria-current": e.active ? "page" : void 0,
|
|
2055
2055
|
title: B.value ? void 0 : e.label
|
|
2056
|
-
}), [e.icon ? (
|
|
2056
|
+
}), [e.icon ? (D(), i(U, {
|
|
2057
2057
|
key: 0,
|
|
2058
2058
|
name: e.icon,
|
|
2059
2059
|
class: "pv-nav-icon"
|
|
2060
|
-
}, null, 8, ["name"])) : a("v-if", !0), s("span", Tr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
2061
|
-
content:
|
|
2060
|
+
}, null, 8, ["name"])) : a("v-if", !0), s("span", Tr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (D(), o("span", Er, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)])], 16, wr)]),
|
|
2061
|
+
content: R(() => [s("div", Dr, [s("ul", Or, [s("li", { "data-active": e.active || void 0 }, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (D(), o("span", jr, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)], 16, Ar)], 8, kr)])])]),
|
|
2062
2062
|
_: 2
|
|
2063
2063
|
}, 1032, [
|
|
2064
2064
|
"use-teleport",
|
|
2065
2065
|
"teleport-location",
|
|
2066
2066
|
"disabled"
|
|
2067
|
-
])], 2112)) : (
|
|
2067
|
+
])], 2112)) : (D(), o(t, { key: 2 }, [a(" Child items - accordion with a collapsed hover flyout "), u(Yn, {
|
|
2068
2068
|
"show-on-hover": "",
|
|
2069
2069
|
"enable-group-sync": "",
|
|
2070
2070
|
"enable-click-toggle": "",
|
|
@@ -2074,7 +2074,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2074
2074
|
disabled: !B.value,
|
|
2075
2075
|
"css-custom-properties": { width: "100%" }
|
|
2076
2076
|
}, {
|
|
2077
|
-
trigger:
|
|
2077
|
+
trigger: R(() => [u(Ge, {
|
|
2078
2078
|
modelValue: _e.value[e.value],
|
|
2079
2079
|
"onUpdate:modelValue": (t) => _e.value[e.value] = t,
|
|
2080
2080
|
"default-open": ge(e),
|
|
@@ -2082,22 +2082,22 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2082
2082
|
"enable-trigger-slot": "",
|
|
2083
2083
|
"enable-trigger-full-width": ""
|
|
2084
2084
|
}, {
|
|
2085
|
-
trigger:
|
|
2085
|
+
trigger: R(() => [s("div", {
|
|
2086
2086
|
class: "pv-flex",
|
|
2087
2087
|
onClick: (t) => e.children.length === 1 && Ee(t, e.children[0]),
|
|
2088
2088
|
onAuxclick: (t) => e.children.length === 1 && Ee(t, e.children[0])
|
|
2089
|
-
}, [e.icon ? (
|
|
2089
|
+
}, [e.icon ? (D(), i(U, {
|
|
2090
2090
|
key: 0,
|
|
2091
2091
|
name: e.icon,
|
|
2092
2092
|
class: "pv-nav-icon"
|
|
2093
|
-
}, null, 8, ["name"])) : a("v-if", !0), s("span", Nr,
|
|
2094
|
-
default:
|
|
2093
|
+
}, null, 8, ["name"])) : a("v-if", !0), s("span", Nr, P(e.label), 1)], 40, Mr)]),
|
|
2094
|
+
default: R(() => [s("div", Pr, [(D(!0), o(t, null, j(e.children, (e) => (D(), o("a", _({
|
|
2095
2095
|
key: e.value,
|
|
2096
2096
|
href: e.url
|
|
2097
2097
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
2098
2098
|
"aria-current": e.active ? "page" : void 0,
|
|
2099
2099
|
title: e.label
|
|
2100
|
-
}), [s("span", Ir, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
2100
|
+
}), [s("span", Ir, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (D(), o("span", Lr, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)])], 16, Fr))), 128))])]),
|
|
2101
2101
|
_: 2
|
|
2102
2102
|
}, 1032, [
|
|
2103
2103
|
"modelValue",
|
|
@@ -2105,17 +2105,17 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2105
2105
|
"default-open",
|
|
2106
2106
|
"summary-attrs"
|
|
2107
2107
|
])]),
|
|
2108
|
-
content:
|
|
2108
|
+
content: R(() => [s("div", Rr, [s("ul", zr, [(D(!0), o(t, null, j(e.children, (e) => (D(), o("li", {
|
|
2109
2109
|
key: e.value,
|
|
2110
2110
|
"data-active": e.active || void 0
|
|
2111
|
-
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
2111
|
+
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (D(), o("span", Hr, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)], 16, Vr)], 8, Br))), 128))])])]),
|
|
2112
2112
|
_: 2
|
|
2113
2113
|
}, 1032, [
|
|
2114
2114
|
"use-teleport",
|
|
2115
2115
|
"teleport-location",
|
|
2116
2116
|
"disabled"
|
|
2117
2117
|
])], 2112))]))), 128))])) : a("v-if", !0),
|
|
2118
|
-
s("div", Ur, [
|
|
2118
|
+
s("div", Ur, [I(g) ? (D(), i(Yn, {
|
|
2119
2119
|
key: 0,
|
|
2120
2120
|
modelValue: be.value,
|
|
2121
2121
|
"onUpdate:modelValue": r[1] ||= (e) => be.value = e,
|
|
@@ -2128,7 +2128,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2128
2128
|
offset: 4,
|
|
2129
2129
|
"css-custom-properties": { width: "100%" }
|
|
2130
2130
|
}, {
|
|
2131
|
-
trigger:
|
|
2131
|
+
trigger: R(() => [s("button", {
|
|
2132
2132
|
type: "button",
|
|
2133
2133
|
class: "pv-nav-list-item",
|
|
2134
2134
|
"aria-label": "Help",
|
|
@@ -2138,7 +2138,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2138
2138
|
name: "help-circle",
|
|
2139
2139
|
class: "pv-icon-20 pv-nav-icon"
|
|
2140
2140
|
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, Wr)]),
|
|
2141
|
-
content:
|
|
2141
|
+
content: R(() => [s("div", Gr, [M(n.$slots, "sidebar-help-content")])]),
|
|
2142
2142
|
_: 3
|
|
2143
2143
|
}, 8, [
|
|
2144
2144
|
"modelValue",
|
|
@@ -2146,7 +2146,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2146
2146
|
"show-on-hover",
|
|
2147
2147
|
"use-teleport",
|
|
2148
2148
|
"teleport-location"
|
|
2149
|
-
])) : a("v-if", !0),
|
|
2149
|
+
])) : a("v-if", !0), I(b) && e.profile ? (D(), i(Yn, {
|
|
2150
2150
|
key: 1,
|
|
2151
2151
|
modelValue: V.value,
|
|
2152
2152
|
"onUpdate:modelValue": r[2] ||= (e) => V.value = e,
|
|
@@ -2159,18 +2159,18 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2159
2159
|
offset: 4,
|
|
2160
2160
|
"css-custom-properties": { width: "100%" }
|
|
2161
2161
|
}, {
|
|
2162
|
-
trigger:
|
|
2162
|
+
trigger: R(() => [s("button", {
|
|
2163
2163
|
type: "button",
|
|
2164
2164
|
class: "pv-nav-list-item",
|
|
2165
2165
|
"aria-label": e.profile.name,
|
|
2166
2166
|
"aria-expanded": V.value,
|
|
2167
2167
|
title: e.profile.name
|
|
2168
|
-
}, [s("span", qr, [e.profile.avatarUrl ? (
|
|
2168
|
+
}, [s("span", qr, [e.profile.avatarUrl ? (D(), o("img", {
|
|
2169
2169
|
key: 0,
|
|
2170
2170
|
src: e.profile.avatarUrl,
|
|
2171
2171
|
alt: ""
|
|
2172
|
-
}, null, 8, Jr)) : (
|
|
2173
|
-
content:
|
|
2172
|
+
}, null, 8, Jr)) : (D(), o("span", Yr, P(e.profile.name.slice(0, 1)), 1))]), s("span", Xr, P(e.profile.name), 1)], 8, Kr)]),
|
|
2173
|
+
content: R(() => [s("div", Zr, [M(n.$slots, "sidebar-profile-content")])]),
|
|
2174
2174
|
_: 3
|
|
2175
2175
|
}, 8, [
|
|
2176
2176
|
"modelValue",
|
|
@@ -2180,7 +2180,7 @@ var Wn = /* @__PURE__ */ new Set(), Gn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2180
2180
|
"teleport-location"
|
|
2181
2181
|
])) : a("v-if", !0)])
|
|
2182
2182
|
])], 512),
|
|
2183
|
-
s("div", Qr, [
|
|
2183
|
+
s("div", Qr, [M(n.$slots, "default")]),
|
|
2184
2184
|
s("div", {
|
|
2185
2185
|
ref_key: "popoverTeleportTarget",
|
|
2186
2186
|
ref: T,
|
|
@@ -2521,15 +2521,15 @@ var Q = {
|
|
|
2521
2521
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
2522
2522
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
2523
2523
|
if (Y(a) && o.transform !== "strict") {
|
|
2524
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Pi(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Pi(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Pi(x, ["dark"]), w = y || {}, { dark: T } = w,
|
|
2525
|
-
s = this.transformCSS(e,
|
|
2526
|
-
...
|
|
2527
|
-
...
|
|
2528
|
-
...
|
|
2529
|
-
])], d = `${this.transformCSS(e, `${
|
|
2530
|
-
...
|
|
2531
|
-
...
|
|
2532
|
-
...
|
|
2524
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Pi(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Pi(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Pi(x, ["dark"]), w = y || {}, { dark: T } = w, E = Pi(w, ["dark"]), D = Y(t) ? this._toVariables({ primitive: t }, o) : {}, O = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Y(C) ? this._toVariables({ light: C }, o) : {}, A = Y(S) ? this._toVariables({ dark: S }, o) : {}, j = Y(b) ? this._toVariables({ semantic: b }, o) : {}, M = Y(E) ? this._toVariables({ light: E }, o) : {}, ee = Y(T) ? this._toVariables({ dark: T }, o) : {}, [N, P] = [D.declarations ?? "", D.tokens], [F, I] = [O.declarations ?? "", O.tokens || []], [te, ne] = [k.declarations ?? "", k.tokens || []], [re, L] = [A.declarations ?? "", A.tokens || []], [ie, R] = [j.declarations ?? "", j.tokens || []], [ae, oe] = [M.declarations ?? "", M.tokens || []], [se, ce] = [ee.declarations ?? "", ee.tokens || []];
|
|
2525
|
+
s = this.transformCSS(e, N, "light", "variable", o, r, i), c = P, l = `${this.transformCSS(e, `${F}${te}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${re}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
2526
|
+
...I,
|
|
2527
|
+
...ne,
|
|
2528
|
+
...L
|
|
2529
|
+
])], d = `${this.transformCSS(e, `${ie}${ae}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
2530
|
+
...R,
|
|
2531
|
+
...oe,
|
|
2532
|
+
...ce
|
|
2533
2533
|
])], p = fi(a.css, { dt: Yi });
|
|
2534
2534
|
}
|
|
2535
2535
|
return {
|
|
@@ -2555,11 +2555,11 @@ var Q = {
|
|
|
2555
2555
|
"colorScheme",
|
|
2556
2556
|
"extend",
|
|
2557
2557
|
"css"
|
|
2558
|
-
]), h = f || {}, { colorScheme: g } = h, _ = Pi(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Pi(v, ["dark"]), x = g || {}, { dark: S } = x, C = Pi(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {},
|
|
2559
|
-
s = `${this.transformCSS(r, `${
|
|
2560
|
-
...
|
|
2561
|
-
...
|
|
2562
|
-
...
|
|
2558
|
+
]), h = f || {}, { colorScheme: g } = h, _ = Pi(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Pi(v, ["dark"]), x = g || {}, { dark: S } = x, C = Pi(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [D, O] = [w.declarations ?? "", w.tokens || []], [k, A] = [T.declarations ?? "", T.tokens || []], [j, M] = [E.declarations ?? "", E.tokens || []];
|
|
2559
|
+
s = `${this.transformCSS(r, `${D}${k}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, j, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
2560
|
+
...O,
|
|
2561
|
+
...A,
|
|
2562
|
+
...M
|
|
2563
2563
|
])], l = fi(p, { dt: Yi });
|
|
2564
2564
|
}
|
|
2565
2565
|
return {
|
|
@@ -2918,32 +2918,32 @@ function oa(e) {
|
|
|
2918
2918
|
}
|
|
2919
2919
|
var sa = 0;
|
|
2920
2920
|
function ca(e) {
|
|
2921
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
2921
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = wi() ? 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_${++sa}` : 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, D = E === void 0 ? void 0 : E, O = t.props, j = O === void 0 ? {} : O, M = function() {}, ee = function(t) {
|
|
2922
2922
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2923
2923
|
if (s) {
|
|
2924
|
-
var o = na(na({},
|
|
2924
|
+
var o = na(na({}, j), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
2925
2925
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, Ci(i.value, {
|
|
2926
2926
|
type: "text/css",
|
|
2927
2927
|
id: l,
|
|
2928
2928
|
media: _,
|
|
2929
2929
|
nonce: u
|
|
2930
2930
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Ti(i.value, "data-primevue-style-id", c), Ci(i.value, o), i.value.onload = function(e) {
|
|
2931
|
-
return
|
|
2932
|
-
}, C?.(c)), !n.value && (
|
|
2931
|
+
return D?.(e, { name: c });
|
|
2932
|
+
}, C?.(c)), !n.value && (M = L(r, function(e) {
|
|
2933
2933
|
i.value.textContent = e, T?.(c);
|
|
2934
2934
|
}, { immediate: !0 }), n.value = !0);
|
|
2935
2935
|
}
|
|
2936
2936
|
};
|
|
2937
|
-
return l && !d && oa(
|
|
2937
|
+
return l && !d && oa(ee), {
|
|
2938
2938
|
id: h,
|
|
2939
2939
|
name: p,
|
|
2940
2940
|
el: i,
|
|
2941
2941
|
css: r,
|
|
2942
2942
|
unload: function() {
|
|
2943
|
-
!s || !n.value || (
|
|
2943
|
+
!s || !n.value || (M(), xi(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
2944
2944
|
},
|
|
2945
|
-
load:
|
|
2946
|
-
isLoaded:
|
|
2945
|
+
load: ee,
|
|
2946
|
+
isLoaded: k(n)
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
2949
|
//#endregion
|
|
@@ -3421,7 +3421,7 @@ var Pa = {
|
|
|
3421
3421
|
csp: { nonce: void 0 }
|
|
3422
3422
|
}, Fa = Symbol();
|
|
3423
3423
|
function Ia(e, t) {
|
|
3424
|
-
var n = { config:
|
|
3424
|
+
var n = { config: O(t) };
|
|
3425
3425
|
return e.config.globalProperties.$primevue = n, e.provide(Fa, n), Ra(), za(e, n), n;
|
|
3426
3426
|
}
|
|
3427
3427
|
var La = [];
|
|
@@ -3431,7 +3431,7 @@ function Ra() {
|
|
|
3431
3431
|
}), La = [];
|
|
3432
3432
|
}
|
|
3433
3433
|
function za(e, t) {
|
|
3434
|
-
var n =
|
|
3434
|
+
var n = A(!1), r = function() {
|
|
3435
3435
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
3436
3436
|
var e, n = Ea.getCommonTheme?.call(Ea) || {}, 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 };
|
|
3437
3437
|
Ea.load(r?.css, Aa({ name: "primitive-variables" }, s)), Ea.load(i?.css, Aa({ name: "semantic-variables" }, s)), Ea.load(a?.css, Aa({ name: "global-variables" }, s)), Ea.loadStyle(Aa({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|
|
@@ -3440,7 +3440,7 @@ function za(e, t) {
|
|
|
3440
3440
|
Fi.on("theme:change", function(t) {
|
|
3441
3441
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
3442
3442
|
});
|
|
3443
|
-
var i =
|
|
3443
|
+
var i = L(t.config, function(e, t) {
|
|
3444
3444
|
Da.emit("config:change", {
|
|
3445
3445
|
newValue: e,
|
|
3446
3446
|
oldValue: t
|
|
@@ -3448,7 +3448,7 @@ function za(e, t) {
|
|
|
3448
3448
|
}, {
|
|
3449
3449
|
immediate: !0,
|
|
3450
3450
|
deep: !0
|
|
3451
|
-
}), a =
|
|
3451
|
+
}), a = L(function() {
|
|
3452
3452
|
return t.config.ripple;
|
|
3453
3453
|
}, function(e, t) {
|
|
3454
3454
|
Da.emit("config:ripple:change", {
|
|
@@ -3458,7 +3458,7 @@ function za(e, t) {
|
|
|
3458
3458
|
}, {
|
|
3459
3459
|
immediate: !0,
|
|
3460
3460
|
deep: !0
|
|
3461
|
-
}), o =
|
|
3461
|
+
}), o = L(function() {
|
|
3462
3462
|
return t.config.theme;
|
|
3463
3463
|
}, function(e, i) {
|
|
3464
3464
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, Da.emit("config:theme:change", {
|
|
@@ -3468,7 +3468,7 @@ function za(e, t) {
|
|
|
3468
3468
|
}, {
|
|
3469
3469
|
immediate: !0,
|
|
3470
3470
|
deep: !1
|
|
3471
|
-
}), s =
|
|
3471
|
+
}), s = L(function() {
|
|
3472
3472
|
return t.config.unstyled;
|
|
3473
3473
|
}, function(e, n) {
|
|
3474
3474
|
!e && t.config.theme && r(), Da.emit("config:unstyled:change", {
|