@turquoisehealth/pit-viper 2.252.0 → 2.252.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-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-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/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/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/pv-components-base.mjs +73 -70
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- 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/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +415 -412
- 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-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 +736 -734
- 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 +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
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 ee, openBlock as E, reactive as D, readonly as O, ref as k, renderList as A, renderSlot as j, resolveComponent 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 ee, openBlock as E, reactive as D, readonly as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as te, shallowRef as N, toDisplayString as P, toHandlers as ne, toValue as F, unref as I, useModel as re, useSlots as ie, vShow as ae, watch as L, watchEffect as oe, withCtx as R, withDirectives as se, withKeys as ce } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var le = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, de = Object.getOwnPropertyNames, fe = Object.prototype.hasOwnProperty, pe = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) le(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 = de(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !fe.call(e, s) && s !== n &&
|
|
10
|
+
return t || le(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, z = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = de(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !fe.call(e, s) && s !== n && le(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
14
|
enumerable: !(r = ue(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
}, me = (e, t, n) => (
|
|
17
|
+
}, me = (e, t, n) => (z(e, t, "default"), n && z(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
20
|
function B(e) {
|
|
21
21
|
return m() ? (T(e), !0) : !1;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var he = typeof window < "u" && typeof document < "u";
|
|
24
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
var V = (e) => e != null, ge = Object.prototype.toString, _e = (e) => ge.call(e) === "[object Object]", H = () => {}, ve = /* @__PURE__ */ ye();
|
|
26
|
+
function ye() {
|
|
27
|
+
return he && (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
|
-
function
|
|
29
|
+
function be(e, t) {
|
|
30
30
|
function n(...n) {
|
|
31
31
|
return new Promise((r, i) => {
|
|
32
32
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -38,12 +38,12 @@ function ye(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
let n, r, i =
|
|
43
|
-
clearTimeout(e), i(), i =
|
|
41
|
+
function xe(e, t = {}) {
|
|
42
|
+
let n, r, i = H, a = (e) => {
|
|
43
|
+
clearTimeout(e), i(), i = H;
|
|
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());
|
|
@@ -53,83 +53,83 @@ function be(e, t = {}) {
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Se(e) {
|
|
57
57
|
return Array.isArray(e) ? e : [e];
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Ce(e) {
|
|
60
60
|
return e || p();
|
|
61
61
|
}
|
|
62
62
|
/* @__NO_SIDE_EFFECTS__ */
|
|
63
|
-
function
|
|
64
|
-
return
|
|
63
|
+
function we(e, t = 200, n = {}) {
|
|
64
|
+
return be(xe(t, n), e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
66
|
+
function Te(e, t = !0, n) {
|
|
67
|
+
Ce(n) ? w(e, n) : t ? e() : v(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function Ee(e, t, n) {
|
|
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
|
|
78
|
-
|
|
79
|
-
function
|
|
80
|
-
let t =
|
|
77
|
+
var De = he ? window : void 0;
|
|
78
|
+
he && window.document, he && window.navigator, he && window.location;
|
|
79
|
+
function U(e) {
|
|
80
|
+
let t = F(e);
|
|
81
81
|
return t?.$el ?? t;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Oe(...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 =
|
|
87
|
+
let t = Se(F(e[0])).filter((e) => e != null);
|
|
88
88
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
89
|
-
}), o =
|
|
90
|
-
a.value?.map((e) =>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
}), o = Ee(() => [
|
|
90
|
+
a.value?.map((e) => U(e)) ?? [De].filter((e) => e != null),
|
|
91
|
+
Se(F(a.value ? e[1] : e[0])),
|
|
92
|
+
Se(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
|
-
let s =
|
|
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
99
|
return B(n), () => {
|
|
100
100
|
o(), n();
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
105
|
-
let { window: r =
|
|
103
|
+
var ke = !1;
|
|
104
|
+
function Ae(e, t, n = {}) {
|
|
105
|
+
let { window: r = De, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
106
106
|
if (!r) return s ? {
|
|
107
|
-
stop:
|
|
108
|
-
cancel:
|
|
109
|
-
trigger:
|
|
110
|
-
} :
|
|
111
|
-
if (
|
|
112
|
-
|
|
107
|
+
stop: H,
|
|
108
|
+
cancel: H,
|
|
109
|
+
trigger: H
|
|
110
|
+
} : H;
|
|
111
|
+
if (ve && !ke) {
|
|
112
|
+
ke = !0;
|
|
113
113
|
let e = { passive: !0 };
|
|
114
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
114
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", H, e)), r.document.documentElement.addEventListener("click", H, 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
|
-
let n =
|
|
119
|
+
let n = U(t);
|
|
120
120
|
return n && (e.target === n || e.composedPath().includes(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) => {
|
|
132
|
-
let r =
|
|
132
|
+
let r = U(e);
|
|
133
133
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
134
134
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
135
135
|
c = !0;
|
|
@@ -138,7 +138,7 @@ function ke(e, t, n = {}) {
|
|
|
138
138
|
t(n);
|
|
139
139
|
}
|
|
140
140
|
}, p = !1, m = [
|
|
141
|
-
|
|
141
|
+
Oe(r, "click", (e) => {
|
|
142
142
|
p || (p = !0, setTimeout(() => {
|
|
143
143
|
p = !1;
|
|
144
144
|
}, 0), f(e));
|
|
@@ -146,13 +146,13 @@ function ke(e, t, n = {}) {
|
|
|
146
146
|
passive: !0,
|
|
147
147
|
capture: a
|
|
148
148
|
}),
|
|
149
|
-
|
|
150
|
-
let n =
|
|
149
|
+
Oe(r, "pointerdown", (t) => {
|
|
150
|
+
let n = U(e);
|
|
151
151
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
152
152
|
}, { passive: !0 }),
|
|
153
|
-
o &&
|
|
153
|
+
o && Oe(r, "blur", (n) => {
|
|
154
154
|
setTimeout(() => {
|
|
155
|
-
let i =
|
|
155
|
+
let i = U(e);
|
|
156
156
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
157
157
|
}, 0);
|
|
158
158
|
}, { passive: !0 })
|
|
@@ -168,22 +168,22 @@ function ke(e, t, n = {}) {
|
|
|
168
168
|
} : h;
|
|
169
169
|
}
|
|
170
170
|
/* @__NO_SIDE_EFFECTS__ */
|
|
171
|
-
function
|
|
172
|
-
let e =
|
|
171
|
+
function je() {
|
|
172
|
+
let e = N(!1), t = p();
|
|
173
173
|
return t && w(() => {
|
|
174
174
|
e.value = !0;
|
|
175
175
|
}, t), e;
|
|
176
176
|
}
|
|
177
177
|
/* @__NO_SIDE_EFFECTS__ */
|
|
178
|
-
function
|
|
179
|
-
let t = /* @__PURE__ */
|
|
178
|
+
function Me(e) {
|
|
179
|
+
let t = /* @__PURE__ */ je();
|
|
180
180
|
return r(() => (t.value, !!e()));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
let { window: i =
|
|
182
|
+
function Ne(e, t, n = {}) {
|
|
183
|
+
let { window: i = De, ...a } = n, o, s = /* @__PURE__ */ Me(() => i && "MutationObserver" in i), c = () => {
|
|
184
184
|
o &&= (o.disconnect(), void 0);
|
|
185
|
-
}, l =
|
|
186
|
-
let t =
|
|
185
|
+
}, l = L(r(() => {
|
|
186
|
+
let t = Se(F(e)).map(U).filter(V);
|
|
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)));
|
|
@@ -199,15 +199,15 @@ function Me(e, t, n = {}) {
|
|
|
199
199
|
takeRecords: u
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
let { window: r =
|
|
204
|
-
if (!r || !i) return
|
|
202
|
+
function Pe(e, t, n = {}) {
|
|
203
|
+
let { window: r = De, document: i = r?.document, flush: a = "sync" } = n;
|
|
204
|
+
if (!r || !i) return H;
|
|
205
205
|
let o, s = (e) => {
|
|
206
206
|
o?.(), o = e;
|
|
207
|
-
}, c =
|
|
208
|
-
let n =
|
|
207
|
+
}, c = oe(() => {
|
|
208
|
+
let n = U(e);
|
|
209
209
|
if (n) {
|
|
210
|
-
let { stop: e } =
|
|
210
|
+
let { stop: e } = Ne(i, (e) => {
|
|
211
211
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
212
212
|
}, {
|
|
213
213
|
window: r,
|
|
@@ -221,12 +221,12 @@ function Ne(e, t, n = {}) {
|
|
|
221
221
|
};
|
|
222
222
|
return B(l), l;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
let { window: i =
|
|
224
|
+
function Fe(e, t, n = {}) {
|
|
225
|
+
let { window: i = De, ...a } = n, o, s = /* @__PURE__ */ Me(() => i && "ResizeObserver" in i), c = () => {
|
|
226
226
|
o &&= (o.disconnect(), void 0);
|
|
227
|
-
}, l =
|
|
228
|
-
let t =
|
|
229
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
227
|
+
}, l = L(r(() => {
|
|
228
|
+
let t = F(e);
|
|
229
|
+
return Array.isArray(t) ? t.map((e) => U(e)) : [U(t)];
|
|
230
230
|
}), (e) => {
|
|
231
231
|
if (c(), s.value && i) {
|
|
232
232
|
o = new ResizeObserver(t);
|
|
@@ -243,10 +243,10 @@ function Pe(e, t, n = {}) {
|
|
|
243
243
|
stop: u
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
246
|
+
function Ie(e, t = {}) {
|
|
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
|
-
let t =
|
|
249
|
+
let t = U(e);
|
|
250
250
|
if (!t) {
|
|
251
251
|
n && (s.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0);
|
|
252
252
|
return;
|
|
@@ -257,10 +257,10 @@ function Fe(e, t = {}) {
|
|
|
257
257
|
function g() {
|
|
258
258
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
259
259
|
}
|
|
260
|
-
return
|
|
260
|
+
return Fe(e, g), L(() => U(e), (e) => !e && g()), Ne(e, g, { attributeFilter: ["style", "class"] }), i && Oe("scroll", g, {
|
|
261
261
|
capture: !0,
|
|
262
262
|
passive: !0
|
|
263
|
-
}), r &&
|
|
263
|
+
}), r && Oe("resize", g, { passive: !0 }), Te(() => {
|
|
264
264
|
a && g();
|
|
265
265
|
}), {
|
|
266
266
|
height: s,
|
|
@@ -274,16 +274,16 @@ function Fe(e, t = {}) {
|
|
|
274
274
|
update: g
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
277
|
+
function Le(e, t = {}) {
|
|
278
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = De } = 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
|
};
|
|
282
|
-
return o ? (
|
|
282
|
+
return o ? (Oe(e, "mouseenter", () => l(!0), { passive: !0 }), Oe(e, "mouseleave", () => l(!1), { passive: !0 }), a && Pe(r(() => U(e)), () => l(!1)), s) : s;
|
|
283
283
|
}
|
|
284
284
|
//#endregion
|
|
285
285
|
//#region src/components/base/PvCounterBadge/PvCounterBadge.vue?vue&type=script&setup=true&lang.ts
|
|
286
|
-
var
|
|
286
|
+
var Re = /* @__PURE__ */ d({
|
|
287
287
|
__name: "PvCounterBadge",
|
|
288
288
|
props: {
|
|
289
289
|
maxValue: {
|
|
@@ -320,22 +320,22 @@ var Le = /* @__PURE__ */ d({
|
|
|
320
320
|
return (e, t) => (E(), o("div", {
|
|
321
321
|
class: y(i.value),
|
|
322
322
|
"data-testid": "pv-counter-badge"
|
|
323
|
-
},
|
|
323
|
+
}, P(n.value), 3));
|
|
324
324
|
}
|
|
325
|
-
}),
|
|
325
|
+
}), ze = ".pv-badge-md[data-v-c578e86e]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-c578e86e]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-c578e86e]{border-radius:50%}", Be = (e, t) => {
|
|
326
326
|
let n = e.__vccOpts || e;
|
|
327
327
|
for (let [e, r] of t) n[e] = r;
|
|
328
328
|
return n;
|
|
329
|
-
},
|
|
329
|
+
}, Ve = /* @__PURE__ */ Be(Re, [["styles", [ze]], ["__scopeId", "data-v-c578e86e"]]);
|
|
330
330
|
//#endregion
|
|
331
331
|
//#region src/web-components/utils.ts
|
|
332
|
-
function
|
|
332
|
+
function He() {
|
|
333
333
|
let e = k(!1), t = p()?.root || {};
|
|
334
334
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
335
335
|
}
|
|
336
336
|
//#endregion
|
|
337
337
|
//#region src/components/base/baseProps.ts
|
|
338
|
-
var
|
|
338
|
+
var Ue = [
|
|
339
339
|
void 0,
|
|
340
340
|
10,
|
|
341
341
|
12,
|
|
@@ -343,24 +343,24 @@ var He = [
|
|
|
343
343
|
24,
|
|
344
344
|
32,
|
|
345
345
|
64
|
|
346
|
-
],
|
|
346
|
+
], We = ["xlink:href"], W = /* @__PURE__ */ d({
|
|
347
347
|
__name: "PvIcon",
|
|
348
348
|
props: {
|
|
349
349
|
name: { type: String },
|
|
350
350
|
size: { type: null }
|
|
351
351
|
},
|
|
352
352
|
setup(e) {
|
|
353
|
-
let t = e, n =
|
|
353
|
+
let t = e, n = He(), i = k(null), a = r(() => ({
|
|
354
354
|
"pv-icon": !0,
|
|
355
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
355
|
+
[`pv-icon-${t.size}`]: t.size != null && Ue.includes(t.size)
|
|
356
356
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
357
357
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (E(), o("svg", {
|
|
358
358
|
"data-testid": "pv-icon",
|
|
359
359
|
"aria-hidden": "true",
|
|
360
360
|
class: y(a.value)
|
|
361
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
361
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, We)], 2));
|
|
362
362
|
}
|
|
363
|
-
}),
|
|
363
|
+
}), Ge = ["open"], Ke = /* @__PURE__ */ Be(/* @__PURE__ */ d({
|
|
364
364
|
__name: "PvAccordion",
|
|
365
365
|
props: /* @__PURE__ */ g({
|
|
366
366
|
chevronPosition: {
|
|
@@ -400,7 +400,7 @@ var He = [
|
|
|
400
400
|
"summary-click"
|
|
401
401
|
], ["update:modelValue"]),
|
|
402
402
|
setup(e, { emit: n }) {
|
|
403
|
-
let c = e, l =
|
|
403
|
+
let c = e, l = re(e, "modelValue"), u = n;
|
|
404
404
|
c.defaultOpen !== void 0 && (l.value = c.defaultOpen);
|
|
405
405
|
let d = (e) => {
|
|
406
406
|
l.value = e.target.open;
|
|
@@ -420,28 +420,28 @@ var He = [
|
|
|
420
420
|
},
|
|
421
421
|
onMouseenter: r[0] ||= (e) => n.$emit("summary-mouseenter"),
|
|
422
422
|
onMouseleave: r[1] ||= (e) => n.$emit("summary-mouseleave")
|
|
423
|
-
},
|
|
423
|
+
}, ne(p.value, !0)), [
|
|
424
424
|
a(" Content placed before a left chevron, e.g. a tree connector that must sit in the indent column "),
|
|
425
425
|
j(n.$slots, "leading", {}, void 0, !0),
|
|
426
|
-
e.chevronPosition === "left" ? (E(), i(
|
|
426
|
+
e.chevronPosition === "left" ? (E(), i(W, {
|
|
427
427
|
key: 0,
|
|
428
428
|
name: h.value,
|
|
429
429
|
"data-pv-accordion-chevron": ""
|
|
430
430
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
431
|
-
e.enableTriggerSlot ? j(n.$slots, "trigger", { key: 1 }, void 0, !0) : (E(), o(t, { key: 2 }, [s("span", null,
|
|
431
|
+
e.enableTriggerSlot ? j(n.$slots, "trigger", { key: 1 }, void 0, !0) : (E(), o(t, { key: 2 }, [s("span", null, P(e.header), 1), e.counter ? (E(), i(Ve, {
|
|
432
432
|
key: 0,
|
|
433
433
|
value: e.counter,
|
|
434
434
|
variant: "secondary",
|
|
435
435
|
size: "sm"
|
|
436
436
|
}, null, 8, ["value"])) : a("v-if", !0)], 64)),
|
|
437
|
-
e.chevronPosition === "right" ? (E(), i(
|
|
437
|
+
e.chevronPosition === "right" ? (E(), i(W, {
|
|
438
438
|
key: 3,
|
|
439
439
|
name: h.value,
|
|
440
440
|
"data-pv-accordion-chevron": ""
|
|
441
441
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
442
|
-
], 16), s("div", { style: x(e.contentStyles) }, [j(n.$slots, "default", {}, void 0, !0)], 4)], 40,
|
|
442
|
+
], 16), s("div", { style: x(e.contentStyles) }, [j(n.$slots, "default", {}, void 0, !0)], 4)], 40, Ge));
|
|
443
443
|
}
|
|
444
|
-
}), [["styles", ["summary[data-v-dfa0b416]{background-image:none;padding-right:2px}"]], ["__scopeId", "data-v-dfa0b416"]]),
|
|
444
|
+
}), [["styles", ["summary[data-v-dfa0b416]{background-image:none;padding-right:2px}"]], ["__scopeId", "data-v-dfa0b416"]]), qe = /* @__PURE__ */ d({
|
|
445
445
|
__name: "PvSpinner",
|
|
446
446
|
props: {
|
|
447
447
|
size: {
|
|
@@ -471,14 +471,14 @@ var He = [
|
|
|
471
471
|
style: x({ "--size": t[e.size] })
|
|
472
472
|
}, null, 6));
|
|
473
473
|
}
|
|
474
|
-
}),
|
|
474
|
+
}), Je = ["ghost"], Ye = {
|
|
475
475
|
md: "pv-button-small",
|
|
476
476
|
lg: void 0,
|
|
477
477
|
xl: "pv-button-large"
|
|
478
|
-
},
|
|
478
|
+
}, Xe = (e) => e == null || !Ye.hasOwnProperty(e) ? null : Ye[e] || null, Ze = ["disabled", "aria-label"], Qe = {
|
|
479
479
|
key: 2,
|
|
480
480
|
"data-testid": "pv-button-label"
|
|
481
|
-
},
|
|
481
|
+
}, $e = /* @__PURE__ */ d({
|
|
482
482
|
__name: "PvButton",
|
|
483
483
|
props: {
|
|
484
484
|
variant: {
|
|
@@ -511,8 +511,8 @@ var He = [
|
|
|
511
511
|
setup(e) {
|
|
512
512
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
513
513
|
let e = [];
|
|
514
|
-
n.inverse &&
|
|
515
|
-
let t =
|
|
514
|
+
n.inverse && Je.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
515
|
+
let t = Xe(n.size);
|
|
516
516
|
return t && e.push(t), e;
|
|
517
517
|
});
|
|
518
518
|
return (n, r) => (E(), o("button", {
|
|
@@ -521,99 +521,99 @@ var He = [
|
|
|
521
521
|
disabled: e.disabled,
|
|
522
522
|
"aria-label": s.value,
|
|
523
523
|
"data-testid": "pv-button"
|
|
524
|
-
}, [e.loading ? (E(), i(
|
|
524
|
+
}, [e.loading ? (E(), i(qe, {
|
|
525
525
|
key: 0,
|
|
526
526
|
size: "sm"
|
|
527
527
|
})) : (E(), o(t, { key: 1 }, [
|
|
528
|
-
e.leftCounterBadge ? (E(), i(
|
|
528
|
+
e.leftCounterBadge ? (E(), i(Ve, {
|
|
529
529
|
key: 0,
|
|
530
530
|
value: e.leftCounterBadge,
|
|
531
531
|
variant: "tertiary"
|
|
532
532
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
533
|
-
e.leftIcon ? (E(), i(
|
|
533
|
+
e.leftIcon ? (E(), i(W, {
|
|
534
534
|
key: 1,
|
|
535
535
|
name: e.leftIcon,
|
|
536
536
|
"data-testid": "pv-button-left-icon"
|
|
537
537
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
538
|
-
e.label ? (E(), o("span",
|
|
539
|
-
e.rightCounterBadge ? (E(), i(
|
|
538
|
+
e.label ? (E(), o("span", Qe, P(e.label), 1)) : a("v-if", !0),
|
|
539
|
+
e.rightCounterBadge ? (E(), i(Ve, {
|
|
540
540
|
key: 3,
|
|
541
541
|
value: e.rightCounterBadge,
|
|
542
542
|
variant: "tertiary"
|
|
543
543
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
544
|
-
e.rightIcon ? (E(), i(
|
|
544
|
+
e.rightIcon ? (E(), i(W, {
|
|
545
545
|
key: 4,
|
|
546
546
|
name: e.rightIcon,
|
|
547
547
|
"data-testid": "pv-button-right-icon"
|
|
548
548
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
549
|
-
], 64))], 10,
|
|
549
|
+
], 64))], 10, Ze));
|
|
550
550
|
}
|
|
551
|
-
}),
|
|
551
|
+
}), et = Math.min, tt = Math.max, nt = Math.round, rt = (e) => ({
|
|
552
552
|
x: e,
|
|
553
553
|
y: e
|
|
554
|
-
}),
|
|
554
|
+
}), it = {
|
|
555
555
|
left: "right",
|
|
556
556
|
right: "left",
|
|
557
557
|
bottom: "top",
|
|
558
558
|
top: "bottom"
|
|
559
559
|
};
|
|
560
|
-
function
|
|
560
|
+
function at(e, t) {
|
|
561
561
|
return typeof e == "function" ? e(t) : e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function ot(e) {
|
|
564
564
|
return e.split("-")[0];
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function st(e) {
|
|
567
567
|
return e.split("-")[1];
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function ct(e) {
|
|
570
570
|
return e === "x" ? "y" : "x";
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function lt(e) {
|
|
573
573
|
return e === "y" ? "height" : "width";
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function ut(e) {
|
|
576
576
|
let t = e[0];
|
|
577
577
|
return t === "t" || t === "b" ? "y" : "x";
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
return
|
|
579
|
+
function dt(e) {
|
|
580
|
+
return ct(ut(e));
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function ft(e, t, n) {
|
|
583
583
|
n === void 0 && (n = !1);
|
|
584
|
-
let r =
|
|
585
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
584
|
+
let r = st(e), i = dt(e), a = lt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
585
|
+
return t.reference[a] > t.floating[a] && (o = xt(o)), [o, xt(o)];
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
let t =
|
|
587
|
+
function pt(e) {
|
|
588
|
+
let t = xt(e);
|
|
589
589
|
return [
|
|
590
|
-
|
|
590
|
+
mt(e),
|
|
591
591
|
t,
|
|
592
|
-
|
|
592
|
+
mt(t)
|
|
593
593
|
];
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function mt(e) {
|
|
596
596
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
function
|
|
598
|
+
var ht = ["left", "right"], gt = ["right", "left"], _t = ["top", "bottom"], vt = ["bottom", "top"];
|
|
599
|
+
function yt(e, t, n) {
|
|
600
600
|
switch (e) {
|
|
601
601
|
case "top":
|
|
602
|
-
case "bottom": return n ? t ?
|
|
602
|
+
case "bottom": return n ? t ? gt : ht : t ? ht : gt;
|
|
603
603
|
case "left":
|
|
604
|
-
case "right": return t ?
|
|
604
|
+
case "right": return t ? _t : vt;
|
|
605
605
|
default: return [];
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
let i =
|
|
610
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
611
|
-
}
|
|
612
|
-
function bt(e) {
|
|
613
|
-
let t = at(e);
|
|
614
|
-
return rt[t] + e.slice(t.length);
|
|
608
|
+
function bt(e, t, n, r) {
|
|
609
|
+
let i = st(e), a = yt(ot(e), n === "start", r);
|
|
610
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(mt)))), a;
|
|
615
611
|
}
|
|
616
612
|
function xt(e) {
|
|
613
|
+
let t = ot(e);
|
|
614
|
+
return it[t] + e.slice(t.length);
|
|
615
|
+
}
|
|
616
|
+
function St(e) {
|
|
617
617
|
return {
|
|
618
618
|
top: 0,
|
|
619
619
|
right: 0,
|
|
@@ -622,15 +622,15 @@ function xt(e) {
|
|
|
622
622
|
...e
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ct(e) {
|
|
626
626
|
return typeof e == "number" ? {
|
|
627
627
|
top: e,
|
|
628
628
|
right: e,
|
|
629
629
|
bottom: e,
|
|
630
630
|
left: e
|
|
631
|
-
} :
|
|
631
|
+
} : St(e);
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function wt(e) {
|
|
634
634
|
let { x: t, y: n, width: r, height: i } = e;
|
|
635
635
|
return {
|
|
636
636
|
width: r,
|
|
@@ -645,8 +645,8 @@ function Ct(e) {
|
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
647
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
648
|
-
function
|
|
649
|
-
let { reference: r, floating: i } = e, a =
|
|
648
|
+
function Tt(e, t, n) {
|
|
649
|
+
let { reference: r, floating: i } = e, a = ut(t), o = dt(t), s = lt(o), c = ot(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
650
650
|
switch (c) {
|
|
651
651
|
case "top":
|
|
652
652
|
p = {
|
|
@@ -677,7 +677,7 @@ function wt(e, t, n) {
|
|
|
677
677
|
y: r.y
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
|
-
switch (
|
|
680
|
+
switch (st(t)) {
|
|
681
681
|
case "start":
|
|
682
682
|
p[o] -= f * (n && l ? -1 : 1);
|
|
683
683
|
break;
|
|
@@ -687,9 +687,9 @@ function wt(e, t, n) {
|
|
|
687
687
|
}
|
|
688
688
|
return p;
|
|
689
689
|
}
|
|
690
|
-
async function
|
|
690
|
+
async function Et(e, t) {
|
|
691
691
|
t === void 0 && (t = {});
|
|
692
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
692
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = at(t, e), p = Ct(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = wt(await i.getClippingRect({
|
|
693
693
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
694
694
|
boundary: c,
|
|
695
695
|
rootBoundary: l,
|
|
@@ -702,7 +702,7 @@ async function Tt(e, t) {
|
|
|
702
702
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
703
703
|
x: 1,
|
|
704
704
|
y: 1
|
|
705
|
-
}, y =
|
|
705
|
+
}, y = wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
706
706
|
elements: o,
|
|
707
707
|
rect: g,
|
|
708
708
|
offsetParent: _,
|
|
@@ -715,15 +715,15 @@ async function Tt(e, t) {
|
|
|
715
715
|
right: (y.right - h.right + p.right) / v.x
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
var
|
|
718
|
+
var Dt = 50, Ot = async (e, t, n) => {
|
|
719
719
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
720
720
|
...o,
|
|
721
|
-
detectOverflow:
|
|
721
|
+
detectOverflow: Et
|
|
722
722
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
723
723
|
reference: e,
|
|
724
724
|
floating: t,
|
|
725
725
|
strategy: i
|
|
726
|
-
}), { x: u, y: d } =
|
|
726
|
+
}), { x: u, y: d } = Tt(l, r, c), f = r, p = 0, m = {};
|
|
727
727
|
for (let n = 0; n < a.length; n++) {
|
|
728
728
|
let h = a[n];
|
|
729
729
|
if (!h) continue;
|
|
@@ -744,11 +744,11 @@ var Et = 50, Dt = async (e, t, n) => {
|
|
|
744
744
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
745
745
|
...m[g],
|
|
746
746
|
...b
|
|
747
|
-
}, x && p <
|
|
747
|
+
}, x && p < Dt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
748
748
|
reference: e,
|
|
749
749
|
floating: t,
|
|
750
750
|
strategy: i
|
|
751
|
-
}) : x.rects), {x: u, y: d} =
|
|
751
|
+
}) : x.rects), {x: u, y: d} = Tt(l, f, c)), n = -1);
|
|
752
752
|
}
|
|
753
753
|
return {
|
|
754
754
|
x: u,
|
|
@@ -757,19 +757,19 @@ var Et = 50, Dt = async (e, t, n) => {
|
|
|
757
757
|
strategy: i,
|
|
758
758
|
middlewareData: m
|
|
759
759
|
};
|
|
760
|
-
},
|
|
760
|
+
}, kt = function(e) {
|
|
761
761
|
return e === void 0 && (e = {}), {
|
|
762
762
|
name: "flip",
|
|
763
763
|
options: e,
|
|
764
764
|
async fn(t) {
|
|
765
765
|
var n;
|
|
766
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
766
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = at(e, t);
|
|
767
767
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
768
|
-
let g =
|
|
769
|
-
!d && x && b.push(...
|
|
768
|
+
let g = ot(r), _ = ut(o), v = ot(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [xt(o)] : pt(o)), x = p !== "none";
|
|
769
|
+
!d && x && b.push(...bt(o, m, p, y));
|
|
770
770
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
771
771
|
if (l && w.push(C[g]), u) {
|
|
772
|
-
let e =
|
|
772
|
+
let e = ft(r, a, y);
|
|
773
773
|
w.push(C[e[0]], C[e[1]]);
|
|
774
774
|
}
|
|
775
775
|
if (T = [...T, {
|
|
@@ -777,7 +777,7 @@ var Et = 50, Dt = async (e, t, n) => {
|
|
|
777
777
|
overflows: w
|
|
778
778
|
}], !w.every((e) => e <= 0)) {
|
|
779
779
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
780
|
-
if (t && (!(u === "alignment" && _ !==
|
|
780
|
+
if (t && (!(u === "alignment" && _ !== ut(t)) || T.every((e) => ut(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
781
781
|
data: {
|
|
782
782
|
index: e,
|
|
783
783
|
overflows: T
|
|
@@ -789,7 +789,7 @@ var Et = 50, Dt = async (e, t, n) => {
|
|
|
789
789
|
case "bestFit": {
|
|
790
790
|
let e = T.filter((e) => {
|
|
791
791
|
if (x) {
|
|
792
|
-
let t =
|
|
792
|
+
let t = ut(e.placement);
|
|
793
793
|
return t === _ || t === "y";
|
|
794
794
|
}
|
|
795
795
|
return !0;
|
|
@@ -806,9 +806,9 @@ var Et = 50, Dt = async (e, t, n) => {
|
|
|
806
806
|
return {};
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
|
-
},
|
|
810
|
-
async function
|
|
811
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
809
|
+
}, At = /* @__PURE__ */ new Set(["left", "top"]);
|
|
810
|
+
async function jt(e, t) {
|
|
811
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ot(n), s = st(n), c = ut(n) === "y", l = At.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = at(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
812
812
|
mainAxis: d,
|
|
813
813
|
crossAxis: 0,
|
|
814
814
|
alignmentAxis: null
|
|
@@ -825,13 +825,13 @@ async function At(e, t) {
|
|
|
825
825
|
y: p * u
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
var
|
|
828
|
+
var Mt = function(e) {
|
|
829
829
|
return e === void 0 && (e = 0), {
|
|
830
830
|
name: "offset",
|
|
831
831
|
options: e,
|
|
832
832
|
async fn(t) {
|
|
833
833
|
var n;
|
|
834
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
834
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await jt(t, e);
|
|
835
835
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
836
836
|
x: r + s.x,
|
|
837
837
|
y: i + s.y,
|
|
@@ -845,39 +845,39 @@ var jt = function(e) {
|
|
|
845
845
|
};
|
|
846
846
|
//#endregion
|
|
847
847
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
848
|
-
function
|
|
848
|
+
function Nt() {
|
|
849
849
|
return typeof window < "u";
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
return
|
|
851
|
+
function Pt(e) {
|
|
852
|
+
return It(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function G(e) {
|
|
855
855
|
var t;
|
|
856
856
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
857
857
|
}
|
|
858
|
-
function Pt(e) {
|
|
859
|
-
return ((Ft(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
860
|
-
}
|
|
861
858
|
function Ft(e) {
|
|
862
|
-
return
|
|
863
|
-
}
|
|
864
|
-
function q(e) {
|
|
865
|
-
return Mt() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
859
|
+
return ((It(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
866
860
|
}
|
|
867
861
|
function It(e) {
|
|
868
|
-
return
|
|
862
|
+
return Nt() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
863
|
+
}
|
|
864
|
+
function K(e) {
|
|
865
|
+
return Nt() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
869
866
|
}
|
|
870
867
|
function Lt(e) {
|
|
871
|
-
return
|
|
868
|
+
return Nt() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
872
869
|
}
|
|
873
870
|
function Rt(e) {
|
|
874
|
-
|
|
875
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
871
|
+
return !Nt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
876
872
|
}
|
|
877
873
|
function zt(e) {
|
|
878
|
-
|
|
874
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
|
|
875
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
879
876
|
}
|
|
880
877
|
function Bt(e) {
|
|
878
|
+
return /^(table|td|th)$/.test(Pt(e));
|
|
879
|
+
}
|
|
880
|
+
function Vt(e) {
|
|
881
881
|
try {
|
|
882
882
|
if (e.matches(":popover-open")) return !0;
|
|
883
883
|
} catch {}
|
|
@@ -887,31 +887,31 @@ function Bt(e) {
|
|
|
887
887
|
return !1;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
var
|
|
891
|
-
function Gt(e) {
|
|
892
|
-
let t = q(e) ? J(e) : e;
|
|
893
|
-
return Ut(t.transform) || Ut(t.translate) || Ut(t.scale) || Ut(t.rotate) || Ut(t.perspective) || !qt() && (Ut(t.backdropFilter) || Ut(t.filter)) || Vt.test(t.willChange || "") || Ht.test(t.contain || "");
|
|
894
|
-
}
|
|
890
|
+
var Ht = /transform|translate|scale|rotate|perspective|filter/, Ut = /paint|layout|strict|content/, Wt = (e) => !!e && e !== "none", Gt;
|
|
895
891
|
function Kt(e) {
|
|
896
|
-
let t =
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
892
|
+
let t = K(e) ? q(e) : e;
|
|
893
|
+
return Wt(t.transform) || Wt(t.translate) || Wt(t.scale) || Wt(t.rotate) || Wt(t.perspective) || !Jt() && (Wt(t.backdropFilter) || Wt(t.filter)) || Ht.test(t.willChange || "") || Ut.test(t.contain || "");
|
|
894
|
+
}
|
|
895
|
+
function qt(e) {
|
|
896
|
+
let t = Zt(e);
|
|
897
|
+
for (; Lt(t) && !Yt(t);) {
|
|
898
|
+
if (Kt(t)) return t;
|
|
899
|
+
if (Vt(t)) return null;
|
|
900
|
+
t = Zt(t);
|
|
901
901
|
}
|
|
902
902
|
return null;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
return
|
|
904
|
+
function Jt() {
|
|
905
|
+
return Gt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Gt;
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
return /^(html|body|#document)$/.test(
|
|
907
|
+
function Yt(e) {
|
|
908
|
+
return /^(html|body|#document)$/.test(Pt(e));
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
return
|
|
910
|
+
function q(e) {
|
|
911
|
+
return G(e).getComputedStyle(e);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
return
|
|
913
|
+
function Xt(e) {
|
|
914
|
+
return K(e) ? {
|
|
915
915
|
scrollLeft: e.scrollLeft,
|
|
916
916
|
scrollTop: e.scrollTop
|
|
917
917
|
} : {
|
|
@@ -919,101 +919,101 @@ function Yt(e) {
|
|
|
919
919
|
scrollTop: e.scrollY
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
|
-
function Xt(e) {
|
|
923
|
-
if (Nt(e) === "html") return e;
|
|
924
|
-
let t = e.assignedSlot || e.parentNode || Lt(e) && e.host || Pt(e);
|
|
925
|
-
return Lt(t) ? t.host : t;
|
|
926
|
-
}
|
|
927
922
|
function Zt(e) {
|
|
928
|
-
|
|
929
|
-
|
|
923
|
+
if (Pt(e) === "html") return e;
|
|
924
|
+
let t = e.assignedSlot || e.parentNode || Rt(e) && e.host || Ft(e);
|
|
925
|
+
return Rt(t) ? t.host : t;
|
|
926
|
+
}
|
|
927
|
+
function Qt(e) {
|
|
928
|
+
let t = Zt(e);
|
|
929
|
+
return Yt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Lt(t) && zt(t) ? t : Qt(t);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function $t(e, t, n) {
|
|
932
932
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
933
|
-
let r =
|
|
933
|
+
let r = Qt(e), i = r === e.ownerDocument?.body, a = G(r);
|
|
934
934
|
if (i) {
|
|
935
|
-
let e =
|
|
936
|
-
return t.concat(a, a.visualViewport || [],
|
|
937
|
-
} else return t.concat(r,
|
|
935
|
+
let e = en(a);
|
|
936
|
+
return t.concat(a, a.visualViewport || [], zt(r) ? r : [], e && n ? $t(e) : []);
|
|
937
|
+
} else return t.concat(r, $t(r, [], n));
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function en(e) {
|
|
940
940
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
941
941
|
}
|
|
942
942
|
//#endregion
|
|
943
943
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
944
|
-
function
|
|
945
|
-
let t =
|
|
944
|
+
function tn(e) {
|
|
945
|
+
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Lt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = nt(n) !== a || nt(r) !== o;
|
|
946
946
|
return s && (n = a, r = o), {
|
|
947
947
|
width: n,
|
|
948
948
|
height: r,
|
|
949
949
|
$: s
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
|
-
function tn(e) {
|
|
953
|
-
return q(e) ? e : e.contextElement;
|
|
954
|
-
}
|
|
955
952
|
function nn(e) {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
953
|
+
return K(e) ? e : e.contextElement;
|
|
954
|
+
}
|
|
955
|
+
function rn(e) {
|
|
956
|
+
let t = nn(e);
|
|
957
|
+
if (!Lt(t)) return rt(1);
|
|
958
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = tn(t), o = (a ? nt(n.width) : n.width) / r, s = (a ? nt(n.height) : n.height) / i;
|
|
959
959
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
960
960
|
x: o,
|
|
961
961
|
y: s
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
var
|
|
965
|
-
function
|
|
966
|
-
let t =
|
|
967
|
-
return !
|
|
964
|
+
var an = /* @__PURE__ */ rt(0);
|
|
965
|
+
function on(e) {
|
|
966
|
+
let t = G(e);
|
|
967
|
+
return !Jt() || !t.visualViewport ? an : {
|
|
968
968
|
x: t.visualViewport.offsetLeft,
|
|
969
969
|
y: t.visualViewport.offsetTop
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
function
|
|
973
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
972
|
+
function sn(e, t, n) {
|
|
973
|
+
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function cn(e, t, n, r) {
|
|
976
976
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
977
|
-
let i = e.getBoundingClientRect(), a =
|
|
978
|
-
t && (r ?
|
|
979
|
-
let s =
|
|
977
|
+
let i = e.getBoundingClientRect(), a = nn(e), o = rt(1);
|
|
978
|
+
t && (r ? K(r) && (o = rn(r)) : o = rn(e));
|
|
979
|
+
let s = sn(a, n, r) ? on(a) : rt(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
980
980
|
if (a) {
|
|
981
|
-
let e =
|
|
981
|
+
let e = G(a), t = r && K(r) ? G(r) : r, n = e, i = en(n);
|
|
982
982
|
for (; i && r && t !== n;) {
|
|
983
|
-
let e =
|
|
984
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
983
|
+
let e = rn(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
984
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = G(i), i = en(n);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
return
|
|
987
|
+
return wt({
|
|
988
988
|
width: u,
|
|
989
989
|
height: d,
|
|
990
990
|
x: c,
|
|
991
991
|
y: l
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
|
-
function cn(e, t) {
|
|
995
|
-
let n = Yt(e).scrollLeft;
|
|
996
|
-
return t ? t.left + n : sn(Pt(e)).left + n;
|
|
997
|
-
}
|
|
998
994
|
function ln(e, t) {
|
|
995
|
+
let n = Xt(e).scrollLeft;
|
|
996
|
+
return t ? t.left + n : cn(Ft(e)).left + n;
|
|
997
|
+
}
|
|
998
|
+
function un(e, t) {
|
|
999
999
|
let n = e.getBoundingClientRect();
|
|
1000
1000
|
return {
|
|
1001
|
-
x: n.left + t.scrollLeft -
|
|
1001
|
+
x: n.left + t.scrollLeft - ln(e, n),
|
|
1002
1002
|
y: n.top + t.scrollTop
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
1005
|
+
function dn(e) {
|
|
1006
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Ft(r), s = t ? Vt(t.floating) : !1;
|
|
1007
1007
|
if (r === o || s && a) return n;
|
|
1008
1008
|
let c = {
|
|
1009
1009
|
scrollLeft: 0,
|
|
1010
1010
|
scrollTop: 0
|
|
1011
|
-
}, l =
|
|
1012
|
-
if ((d || !d && !a) && ((
|
|
1013
|
-
let e =
|
|
1014
|
-
l =
|
|
1011
|
+
}, l = rt(1), u = rt(0), d = Lt(r);
|
|
1012
|
+
if ((d || !d && !a) && ((Pt(r) !== "body" || zt(o)) && (c = Xt(r)), d)) {
|
|
1013
|
+
let e = cn(r);
|
|
1014
|
+
l = rn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1015
1015
|
}
|
|
1016
|
-
let f = o && !d && !a ?
|
|
1016
|
+
let f = o && !d && !a ? un(o, c) : rt(0);
|
|
1017
1017
|
return {
|
|
1018
1018
|
width: n.width * l.x,
|
|
1019
1019
|
height: n.height * l.y,
|
|
@@ -1021,31 +1021,31 @@ function un(e) {
|
|
|
1021
1021
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function fn(e) {
|
|
1025
1025
|
return Array.from(e.getClientRects());
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
let t =
|
|
1029
|
-
return
|
|
1027
|
+
function pn(e) {
|
|
1028
|
+
let t = Ft(e), n = Xt(e), r = e.ownerDocument.body, i = tt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = tt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ln(e), s = -n.scrollTop;
|
|
1029
|
+
return q(r).direction === "rtl" && (o += tt(t.clientWidth, r.clientWidth) - i), {
|
|
1030
1030
|
width: i,
|
|
1031
1031
|
height: a,
|
|
1032
1032
|
x: o,
|
|
1033
1033
|
y: s
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
var
|
|
1037
|
-
function
|
|
1038
|
-
let n =
|
|
1036
|
+
var mn = 25;
|
|
1037
|
+
function hn(e, t) {
|
|
1038
|
+
let n = G(e), r = Ft(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1039
1039
|
if (i) {
|
|
1040
1040
|
a = i.width, o = i.height;
|
|
1041
|
-
let e =
|
|
1041
|
+
let e = Jt();
|
|
1042
1042
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1043
1043
|
}
|
|
1044
|
-
let l =
|
|
1044
|
+
let l = ln(r);
|
|
1045
1045
|
if (l <= 0) {
|
|
1046
1046
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1047
|
-
o <=
|
|
1048
|
-
} else l <=
|
|
1047
|
+
o <= mn && (a -= o);
|
|
1048
|
+
} else l <= mn && (a += l);
|
|
1049
1049
|
return {
|
|
1050
1050
|
width: a,
|
|
1051
1051
|
height: o,
|
|
@@ -1053,8 +1053,8 @@ function mn(e, t) {
|
|
|
1053
1053
|
y: c
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1057
|
-
let n =
|
|
1056
|
+
function gn(e, t) {
|
|
1057
|
+
let n = cn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Lt(e) ? rn(e) : rt(1);
|
|
1058
1058
|
return {
|
|
1059
1059
|
width: e.clientWidth * a.x,
|
|
1060
1060
|
height: e.clientHeight * a.y,
|
|
@@ -1062,13 +1062,13 @@ function hn(e, t) {
|
|
|
1062
1062
|
y: r * a.y
|
|
1063
1063
|
};
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function _n(e, t, n) {
|
|
1066
1066
|
let r;
|
|
1067
|
-
if (t === "viewport") r =
|
|
1068
|
-
else if (t === "document") r =
|
|
1069
|
-
else if (
|
|
1067
|
+
if (t === "viewport") r = hn(e, n);
|
|
1068
|
+
else if (t === "document") r = pn(Ft(e));
|
|
1069
|
+
else if (K(t)) r = gn(t, n);
|
|
1070
1070
|
else {
|
|
1071
|
-
let n =
|
|
1071
|
+
let n = on(e);
|
|
1072
1072
|
r = {
|
|
1073
1073
|
x: t.x - n.x,
|
|
1074
1074
|
y: t.y - n.y,
|
|
@@ -1076,27 +1076,27 @@ function gn(e, t, n) {
|
|
|
1076
1076
|
height: t.height
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
|
-
return
|
|
1080
|
-
}
|
|
1081
|
-
function _n(e, t) {
|
|
1082
|
-
let n = Xt(e);
|
|
1083
|
-
return n === t || !q(n) || Jt(n) ? !1 : J(n).position === "fixed" || _n(n, t);
|
|
1079
|
+
return wt(r);
|
|
1084
1080
|
}
|
|
1085
1081
|
function vn(e, t) {
|
|
1082
|
+
let n = Zt(e);
|
|
1083
|
+
return n === t || !K(n) || Yt(n) ? !1 : q(n).position === "fixed" || vn(n, t);
|
|
1084
|
+
}
|
|
1085
|
+
function yn(e, t) {
|
|
1086
1086
|
let n = t.get(e);
|
|
1087
1087
|
if (n) return n;
|
|
1088
|
-
let r =
|
|
1089
|
-
for (;
|
|
1090
|
-
let t =
|
|
1091
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
1088
|
+
let r = $t(e, [], !1).filter((e) => K(e) && Pt(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Zt(e) : e;
|
|
1089
|
+
for (; K(o) && !Yt(o);) {
|
|
1090
|
+
let t = q(o), n = Kt(o);
|
|
1091
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || zt(o) && !n && vn(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Zt(o);
|
|
1092
1092
|
}
|
|
1093
1093
|
return t.set(e, r), r;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
1095
|
+
function bn(e) {
|
|
1096
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Vt(t) ? [] : yn(t, this._c) : [].concat(n), r], o = _n(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1097
1097
|
for (let e = 1; e < a.length; e++) {
|
|
1098
|
-
let n =
|
|
1099
|
-
s =
|
|
1098
|
+
let n = _n(t, a[e], i);
|
|
1099
|
+
s = tt(n.top, s), c = et(n.right, c), l = et(n.bottom, l), u = tt(n.left, u);
|
|
1100
1100
|
}
|
|
1101
1101
|
return {
|
|
1102
1102
|
width: c - u,
|
|
@@ -1105,27 +1105,27 @@ function yn(e) {
|
|
|
1105
1105
|
y: s
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
let { width: t, height: n } =
|
|
1108
|
+
function xn(e) {
|
|
1109
|
+
let { width: t, height: n } = tn(e);
|
|
1110
1110
|
return {
|
|
1111
1111
|
width: t,
|
|
1112
1112
|
height: n
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
let r =
|
|
1115
|
+
function Sn(e, t, n) {
|
|
1116
|
+
let r = Lt(t), i = Ft(t), a = n === "fixed", o = cn(e, !0, a, t), s = {
|
|
1117
1117
|
scrollLeft: 0,
|
|
1118
1118
|
scrollTop: 0
|
|
1119
|
-
}, c =
|
|
1119
|
+
}, c = rt(0);
|
|
1120
1120
|
function l() {
|
|
1121
|
-
c.x =
|
|
1121
|
+
c.x = ln(i);
|
|
1122
1122
|
}
|
|
1123
|
-
if (r || !r && !a) if ((
|
|
1124
|
-
let e =
|
|
1123
|
+
if (r || !r && !a) if ((Pt(t) !== "body" || zt(i)) && (s = Xt(t)), r) {
|
|
1124
|
+
let e = cn(t, !0, a, t);
|
|
1125
1125
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1126
1126
|
} else i && l();
|
|
1127
1127
|
a && !r && i && l();
|
|
1128
|
-
let u = i && !r && !a ?
|
|
1128
|
+
let u = i && !r && !a ? un(i, s) : rt(0);
|
|
1129
1129
|
return {
|
|
1130
1130
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1131
1131
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1133,34 +1133,34 @@ function xn(e, t, n) {
|
|
|
1133
1133
|
height: o.height
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return
|
|
1136
|
+
function Cn(e) {
|
|
1137
|
+
return q(e).position === "static";
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
if (!
|
|
1139
|
+
function wn(e, t) {
|
|
1140
|
+
if (!Lt(e) || q(e).position === "fixed") return null;
|
|
1141
1141
|
if (t) return t(e);
|
|
1142
1142
|
let n = e.offsetParent;
|
|
1143
|
-
return
|
|
1144
|
-
}
|
|
1145
|
-
function
|
|
1146
|
-
let n =
|
|
1147
|
-
if (
|
|
1148
|
-
if (!
|
|
1149
|
-
let t =
|
|
1150
|
-
for (; t && !
|
|
1151
|
-
if (
|
|
1152
|
-
t =
|
|
1143
|
+
return Ft(e) === n && (n = n.ownerDocument.body), n;
|
|
1144
|
+
}
|
|
1145
|
+
function Tn(e, t) {
|
|
1146
|
+
let n = G(e);
|
|
1147
|
+
if (Vt(e)) return n;
|
|
1148
|
+
if (!Lt(e)) {
|
|
1149
|
+
let t = Zt(e);
|
|
1150
|
+
for (; t && !Yt(t);) {
|
|
1151
|
+
if (K(t) && !Cn(t)) return t;
|
|
1152
|
+
t = Zt(t);
|
|
1153
1153
|
}
|
|
1154
1154
|
return n;
|
|
1155
1155
|
}
|
|
1156
|
-
let r =
|
|
1157
|
-
for (; r &&
|
|
1158
|
-
return r &&
|
|
1156
|
+
let r = wn(e, t);
|
|
1157
|
+
for (; r && Bt(r) && Cn(r);) r = wn(r, t);
|
|
1158
|
+
return r && Yt(r) && Cn(r) && !Kt(r) ? n : r || qt(e) || n;
|
|
1159
1159
|
}
|
|
1160
|
-
var
|
|
1161
|
-
let t = this.getOffsetParent ||
|
|
1160
|
+
var En = async function(e) {
|
|
1161
|
+
let t = this.getOffsetParent || Tn, n = this.getDimensions, r = await n(e.floating);
|
|
1162
1162
|
return {
|
|
1163
|
-
reference:
|
|
1163
|
+
reference: Sn(e.reference, await t(e.floating), e.strategy),
|
|
1164
1164
|
floating: {
|
|
1165
1165
|
x: 0,
|
|
1166
1166
|
y: 0,
|
|
@@ -1169,48 +1169,48 @@ var Tn = async function(e) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
1171
|
};
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1174
|
-
}
|
|
1175
|
-
var
|
|
1176
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1177
|
-
getDocumentElement:
|
|
1178
|
-
getClippingRect:
|
|
1179
|
-
getOffsetParent:
|
|
1180
|
-
getElementRects:
|
|
1181
|
-
getClientRects:
|
|
1182
|
-
getDimensions:
|
|
1183
|
-
getScale:
|
|
1184
|
-
isElement:
|
|
1185
|
-
isRTL:
|
|
1186
|
-
},
|
|
1172
|
+
function Dn(e) {
|
|
1173
|
+
return q(e).direction === "rtl";
|
|
1174
|
+
}
|
|
1175
|
+
var On = {
|
|
1176
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: dn,
|
|
1177
|
+
getDocumentElement: Ft,
|
|
1178
|
+
getClippingRect: bn,
|
|
1179
|
+
getOffsetParent: Tn,
|
|
1180
|
+
getElementRects: En,
|
|
1181
|
+
getClientRects: fn,
|
|
1182
|
+
getDimensions: xn,
|
|
1183
|
+
getScale: rn,
|
|
1184
|
+
isElement: K,
|
|
1185
|
+
isRTL: Dn
|
|
1186
|
+
}, kn = Mt, An = kt, jn = (e, t, n) => {
|
|
1187
1187
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1188
|
-
platform:
|
|
1188
|
+
platform: On,
|
|
1189
1189
|
...n
|
|
1190
1190
|
}, a = {
|
|
1191
1191
|
...i.platform,
|
|
1192
1192
|
_c: r
|
|
1193
1193
|
};
|
|
1194
|
-
return
|
|
1194
|
+
return Ot(e, t, {
|
|
1195
1195
|
...i,
|
|
1196
1196
|
platform: a
|
|
1197
1197
|
});
|
|
1198
|
-
},
|
|
1198
|
+
}, J = /* @__PURE__ */ pe({
|
|
1199
1199
|
Vue: () => e,
|
|
1200
1200
|
Vue2: () => void 0,
|
|
1201
|
-
del: () =>
|
|
1202
|
-
install: () =>
|
|
1201
|
+
del: () => Fn,
|
|
1202
|
+
install: () => Nn,
|
|
1203
1203
|
isVue2: () => !1,
|
|
1204
1204
|
isVue3: () => !0,
|
|
1205
|
-
set: () =>
|
|
1205
|
+
set: () => Pn
|
|
1206
1206
|
});
|
|
1207
|
-
import * as
|
|
1208
|
-
me(
|
|
1209
|
-
function
|
|
1210
|
-
function
|
|
1207
|
+
import * as Mn from "vue";
|
|
1208
|
+
me(J, Mn);
|
|
1209
|
+
function Nn() {}
|
|
1210
|
+
function Pn(e, t, n) {
|
|
1211
1211
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function Fn(e, t) {
|
|
1214
1214
|
if (Array.isArray(e)) {
|
|
1215
1215
|
e.splice(t, 1);
|
|
1216
1216
|
return;
|
|
@@ -1219,40 +1219,40 @@ function Pn(e, t) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
//#endregion
|
|
1221
1221
|
//#region ../node_modules/.pnpm/@floating-ui+vue@1.1.11_vue@3.5.32_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
1222
|
-
function
|
|
1222
|
+
function In(e) {
|
|
1223
1223
|
return typeof e == "object" && !!e && "$el" in e;
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1226
|
-
if (
|
|
1225
|
+
function Ln(e) {
|
|
1226
|
+
if (In(e)) {
|
|
1227
1227
|
let t = e.$el;
|
|
1228
|
-
return
|
|
1228
|
+
return It(t) && Pt(t) === "#comment" ? null : t;
|
|
1229
1229
|
}
|
|
1230
1230
|
return e;
|
|
1231
1231
|
}
|
|
1232
|
-
function Ln(e) {
|
|
1233
|
-
return typeof e == "function" ? e() : (0, Y.unref)(e);
|
|
1234
|
-
}
|
|
1235
1232
|
function Rn(e) {
|
|
1233
|
+
return typeof e == "function" ? e() : (0, J.unref)(e);
|
|
1234
|
+
}
|
|
1235
|
+
function zn(e) {
|
|
1236
1236
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
let n =
|
|
1238
|
+
function Bn(e, t) {
|
|
1239
|
+
let n = zn(e);
|
|
1240
1240
|
return Math.round(t * n) / n;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Vn(e, t, n) {
|
|
1243
1243
|
n === void 0 && (n = {});
|
|
1244
|
-
let r = n.whileElementsMounted, i = (0,
|
|
1244
|
+
let r = n.whileElementsMounted, i = (0, J.computed)(() => Rn(n.open) ?? !0), a = (0, J.computed)(() => Rn(n.middleware)), o = (0, J.computed)(() => Rn(n.placement) ?? "bottom"), s = (0, J.computed)(() => Rn(n.strategy) ?? "absolute"), c = (0, J.computed)(() => Rn(n.transform) ?? !0), l = (0, J.computed)(() => Ln(e.value)), u = (0, J.computed)(() => Ln(t.value)), d = (0, J.ref)(0), f = (0, J.ref)(0), p = (0, J.ref)(s.value), m = (0, J.ref)(o.value), h = (0, J.shallowRef)({}), g = (0, J.ref)(!1), _ = (0, J.computed)(() => {
|
|
1245
1245
|
let e = {
|
|
1246
1246
|
position: p.value,
|
|
1247
1247
|
left: "0",
|
|
1248
1248
|
top: "0"
|
|
1249
1249
|
};
|
|
1250
1250
|
if (!u.value) return e;
|
|
1251
|
-
let t =
|
|
1251
|
+
let t = Bn(u.value, d.value), n = Bn(u.value, f.value);
|
|
1252
1252
|
return c.value ? {
|
|
1253
1253
|
...e,
|
|
1254
1254
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
1255
|
-
...
|
|
1255
|
+
...zn(u.value) >= 1.5 && { willChange: "transform" }
|
|
1256
1256
|
} : {
|
|
1257
1257
|
position: p.value,
|
|
1258
1258
|
left: t + "px",
|
|
@@ -1262,7 +1262,7 @@ function Bn(e, t, n) {
|
|
|
1262
1262
|
function y() {
|
|
1263
1263
|
if (l.value == null || u.value == null) return;
|
|
1264
1264
|
let e = i.value;
|
|
1265
|
-
|
|
1265
|
+
jn(l.value, u.value, {
|
|
1266
1266
|
middleware: a.value,
|
|
1267
1267
|
placement: o.value,
|
|
1268
1268
|
strategy: s.value
|
|
@@ -1286,54 +1286,54 @@ function Bn(e, t, n) {
|
|
|
1286
1286
|
function S() {
|
|
1287
1287
|
i.value || (g.value = !1);
|
|
1288
1288
|
}
|
|
1289
|
-
return (0,
|
|
1289
|
+
return (0, J.watch)([
|
|
1290
1290
|
a,
|
|
1291
1291
|
o,
|
|
1292
1292
|
s,
|
|
1293
1293
|
i
|
|
1294
|
-
], y, { flush: "sync" }), (0,
|
|
1295
|
-
x: (0,
|
|
1296
|
-
y: (0,
|
|
1297
|
-
strategy: (0,
|
|
1298
|
-
placement: (0,
|
|
1299
|
-
middlewareData: (0,
|
|
1300
|
-
isPositioned: (0,
|
|
1294
|
+
], y, { flush: "sync" }), (0, J.watch)([l, u], x, { flush: "sync" }), (0, J.watch)(i, S, { flush: "sync" }), (0, J.getCurrentScope)() && (0, J.onScopeDispose)(b), {
|
|
1295
|
+
x: (0, J.shallowReadonly)(d),
|
|
1296
|
+
y: (0, J.shallowReadonly)(f),
|
|
1297
|
+
strategy: (0, J.shallowReadonly)(p),
|
|
1298
|
+
placement: (0, J.shallowReadonly)(m),
|
|
1299
|
+
middlewareData: (0, J.shallowReadonly)(h),
|
|
1300
|
+
isPositioned: (0, J.shallowReadonly)(g),
|
|
1301
1301
|
floatingStyles: _,
|
|
1302
1302
|
update: y
|
|
1303
1303
|
};
|
|
1304
1304
|
}
|
|
1305
1305
|
//#endregion
|
|
1306
1306
|
//#region src/composables/useSlotPresence.ts
|
|
1307
|
-
function
|
|
1307
|
+
function Hn(e, t) {
|
|
1308
1308
|
if (e.nodeType !== Node.TEXT_NODE) return !1;
|
|
1309
1309
|
let n = e.textContent ?? "";
|
|
1310
1310
|
return t ? n.length > 0 : n.trim().length > 0;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Un(e, t, n) {
|
|
1313
1313
|
let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
|
|
1314
|
-
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") :
|
|
1314
|
+
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : Hn(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Wn(e) {
|
|
1317
1317
|
if (e.shadowRoot) return null;
|
|
1318
1318
|
let t = e._slots;
|
|
1319
1319
|
return !t || typeof t != "object" ? null : t;
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Gn(e, t, n) {
|
|
1322
1322
|
let r = e[t === "" ? "default" : t];
|
|
1323
|
-
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
1323
|
+
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Hn(e, n)) : !1;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function Kn(e, t) {
|
|
1326
1326
|
let n = e.shadowRoot;
|
|
1327
1327
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
let i = n ?
|
|
1331
|
-
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
1332
|
-
let a =
|
|
1333
|
-
return a ?
|
|
1329
|
+
function qn(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r = !1 } = {}) {
|
|
1330
|
+
let i = n ? Kn(e, t) : null;
|
|
1331
|
+
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Hn(e, r));
|
|
1332
|
+
let a = Wn(e);
|
|
1333
|
+
return a ? Gn(a, t, r) : Un(e, t, r);
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1336
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1335
|
+
function Jn(e, t = {}) {
|
|
1336
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = He(), l = i ?? ie(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = k(d());
|
|
1337
1337
|
C(() => {
|
|
1338
1338
|
f.value = d();
|
|
1339
1339
|
});
|
|
@@ -1344,24 +1344,24 @@ function qn(e, t = {}) {
|
|
|
1344
1344
|
p.value = !1;
|
|
1345
1345
|
return;
|
|
1346
1346
|
}
|
|
1347
|
-
let t =
|
|
1347
|
+
let t = I(n);
|
|
1348
1348
|
if (!t) {
|
|
1349
1349
|
p.value = !1;
|
|
1350
1350
|
return;
|
|
1351
1351
|
}
|
|
1352
|
-
p.value =
|
|
1352
|
+
p.value = qn(t, e, {
|
|
1353
1353
|
useShadowSlot: o,
|
|
1354
1354
|
countWhitespaceTextInDefaultSlot: s
|
|
1355
1355
|
});
|
|
1356
1356
|
}, v = () => {
|
|
1357
1357
|
if (!c.value) return;
|
|
1358
1358
|
g();
|
|
1359
|
-
let t =
|
|
1359
|
+
let t = I(n);
|
|
1360
1360
|
if (!t) {
|
|
1361
1361
|
p.value = !1;
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
|
-
_(), o && (h =
|
|
1364
|
+
_(), o && (h = Kn(t, e), h && h.addEventListener("slotchange", _)), a && (m = new MutationObserver(() => _()), m.observe(t, {
|
|
1365
1365
|
childList: !0,
|
|
1366
1366
|
subtree: !1,
|
|
1367
1367
|
attributes: !0,
|
|
@@ -1369,7 +1369,7 @@ function qn(e, t = {}) {
|
|
|
1369
1369
|
characterData: !0
|
|
1370
1370
|
}));
|
|
1371
1371
|
};
|
|
1372
|
-
return w(v), S(g),
|
|
1372
|
+
return w(v), S(g), L(() => I(n), () => {
|
|
1373
1373
|
c.value && v();
|
|
1374
1374
|
}), {
|
|
1375
1375
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1380,17 +1380,17 @@ function qn(e, t = {}) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
//#endregion
|
|
1382
1382
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1383
|
-
var
|
|
1383
|
+
var Yn = /* @__PURE__ */ new Set(), Xn = (e, t) => {
|
|
1384
1384
|
let n = t.root.value;
|
|
1385
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
1386
|
-
},
|
|
1385
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1386
|
+
}, Zn = (e) => (ee(() => Yn.delete(e)), (t) => {
|
|
1387
1387
|
if (!t) {
|
|
1388
|
-
|
|
1388
|
+
Yn.delete(e);
|
|
1389
1389
|
return;
|
|
1390
1390
|
}
|
|
1391
|
-
for (let t of [...
|
|
1392
|
-
|
|
1393
|
-
}),
|
|
1391
|
+
for (let t of [...Yn]) t !== e && !Xn(t, e) && t.close() && Yn.delete(t);
|
|
1392
|
+
Yn.add(e);
|
|
1393
|
+
}), Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ d({
|
|
1394
1394
|
__name: "PvPopoverV2",
|
|
1395
1395
|
props: /* @__PURE__ */ g({
|
|
1396
1396
|
disableAutoPlacement: {
|
|
@@ -1409,6 +1409,7 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1409
1409
|
type: Boolean,
|
|
1410
1410
|
default: !1
|
|
1411
1411
|
},
|
|
1412
|
+
hoverTarget: { type: String },
|
|
1412
1413
|
disableInteractive: {
|
|
1413
1414
|
type: Boolean,
|
|
1414
1415
|
default: !1
|
|
@@ -1461,17 +1462,18 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1461
1462
|
}),
|
|
1462
1463
|
emits: ["update:modelValue"],
|
|
1463
1464
|
setup(e) {
|
|
1464
|
-
let t = e, c =
|
|
1465
|
+
let t = e, c = re(e, "modelValue"), l = p(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = Jn("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" && [
|
|
1465
1466
|
"anchor-name: --pv-anchor",
|
|
1466
1467
|
"position-area: bottom",
|
|
1467
1468
|
"position-try-fallbacks: flip-block",
|
|
1468
1469
|
"position-visibility: anchors-visible",
|
|
1469
|
-
`anchor-scope: ${
|
|
1470
|
-
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C =
|
|
1470
|
+
`anchor-scope: ${$n}`
|
|
1471
|
+
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = r(() => t.hoverTarget && y.value?.closest(t.hoverTarget) || y.value), T = Le(C), D = Le(S), O = k(!1), A = k(!1), M = k(!1), te = Zn({
|
|
1471
1472
|
root: _,
|
|
1472
1473
|
floating: S,
|
|
1473
|
-
|
|
1474
|
-
|
|
1474
|
+
hoverArea: r(() => t.hoverTarget ? C.value : null),
|
|
1475
|
+
close: () => t.disableClickOutsideToClose ? !1 : (me(), !0)
|
|
1476
|
+
}), N = {
|
|
1475
1477
|
"top-center": "top",
|
|
1476
1478
|
"bottom-center": "bottom",
|
|
1477
1479
|
"center-left": "left",
|
|
@@ -1482,7 +1484,7 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1482
1484
|
"top-right": "top-end",
|
|
1483
1485
|
"bottom-left": "bottom-start",
|
|
1484
1486
|
"bottom-right": "bottom-end"
|
|
1485
|
-
},
|
|
1487
|
+
}, P = {
|
|
1486
1488
|
"top-center": {
|
|
1487
1489
|
area: "top",
|
|
1488
1490
|
margin: "margin-block-end"
|
|
@@ -1523,37 +1525,37 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1523
1525
|
area: "bottom span-left",
|
|
1524
1526
|
margin: "margin-block-start"
|
|
1525
1527
|
}
|
|
1526
|
-
},
|
|
1528
|
+
}, ne = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), F = r(() => ({
|
|
1527
1529
|
width: "fit-content",
|
|
1528
|
-
...h ? { "anchor-scope":
|
|
1530
|
+
...h ? { "anchor-scope": $n } : void 0,
|
|
1529
1531
|
...t.cssCustomProperties
|
|
1530
|
-
})),
|
|
1531
|
-
let e =
|
|
1532
|
+
})), ie = r(() => h ? { "anchor-name": $n } : void 0), oe = r(() => {
|
|
1533
|
+
let e = P[t.position];
|
|
1532
1534
|
return {
|
|
1533
|
-
"position-anchor":
|
|
1535
|
+
"position-anchor": $n,
|
|
1534
1536
|
"position-area": e.area,
|
|
1535
1537
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1536
1538
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1537
1539
|
};
|
|
1538
|
-
}),
|
|
1540
|
+
}), R = () => {}, ce = () => ({});
|
|
1539
1541
|
if (!h) {
|
|
1540
1542
|
let e = [];
|
|
1541
|
-
t.disableAutoPlacement || e.push(
|
|
1542
|
-
let n =
|
|
1543
|
-
placement:
|
|
1543
|
+
t.disableAutoPlacement || e.push(An({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(kn(t.offset));
|
|
1544
|
+
let n = Vn(b, S, {
|
|
1545
|
+
placement: N[t.position],
|
|
1544
1546
|
strategy: t.positioningStrategy,
|
|
1545
1547
|
middleware: e
|
|
1546
1548
|
});
|
|
1547
|
-
|
|
1548
|
-
let i =
|
|
1549
|
-
c.value &&
|
|
1549
|
+
R = n.update, ce = () => n.floatingStyles.value;
|
|
1550
|
+
let i = Ie(b), a = /* @__PURE__ */ we(() => {
|
|
1551
|
+
c.value && R();
|
|
1550
1552
|
}, 5);
|
|
1551
|
-
|
|
1553
|
+
L([
|
|
1552
1554
|
i.top,
|
|
1553
1555
|
i.left,
|
|
1554
1556
|
i.width,
|
|
1555
1557
|
i.height
|
|
1556
|
-
], a),
|
|
1558
|
+
], a), Ae(_, () => {
|
|
1557
1559
|
t.disableClickOutsideToClose || z(!1);
|
|
1558
1560
|
}, { ignore: r(() => [
|
|
1559
1561
|
S.value,
|
|
@@ -1562,116 +1564,116 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1562
1564
|
]) });
|
|
1563
1565
|
}
|
|
1564
1566
|
let le = r(() => ({
|
|
1565
|
-
...
|
|
1567
|
+
...ce(),
|
|
1566
1568
|
zIndex: t.zIndex
|
|
1567
|
-
})),
|
|
1568
|
-
R && clearTimeout(R), R = void 0;
|
|
1569
|
-
}, fe = () => {
|
|
1569
|
+
})), ue, de, fe = () => {
|
|
1570
1570
|
ue && clearTimeout(ue), ue = void 0;
|
|
1571
|
+
}, pe = () => {
|
|
1572
|
+
de && clearTimeout(de), de = void 0;
|
|
1571
1573
|
}, z = (e) => {
|
|
1572
|
-
|
|
1573
|
-
c.value = !0,
|
|
1574
|
+
fe(), pe(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ue = setTimeout(() => {
|
|
1575
|
+
c.value = !0, ue = void 0;
|
|
1574
1576
|
}, t.delay) : c.value = e);
|
|
1575
|
-
}, pe = () => {
|
|
1576
|
-
de(), fe(), c.value = !1;
|
|
1577
1577
|
}, me = () => {
|
|
1578
|
+
fe(), pe(), c.value = !1;
|
|
1579
|
+
}, B = () => {
|
|
1578
1580
|
let e = S.value;
|
|
1579
1581
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1580
|
-
},
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1582
|
+
}, he = r(() => !!c.value && (D.value || A.value)), V = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? T.value || O.value : T.value || O.value || he.value);
|
|
1583
|
+
L([
|
|
1584
|
+
T,
|
|
1585
|
+
O,
|
|
1586
|
+
A
|
|
1585
1587
|
], ([e, t, n]) => {
|
|
1586
|
-
!e && !t && !n && (
|
|
1588
|
+
!e && !t && !n && (M.value = !1);
|
|
1587
1589
|
});
|
|
1588
|
-
let
|
|
1589
|
-
D.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1590
|
-
}, he = ({ target: e }) => {
|
|
1590
|
+
let ge = ({ target: e }) => {
|
|
1591
1591
|
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1592
|
-
},
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1592
|
+
}, _e = ({ target: e }) => {
|
|
1593
|
+
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1594
|
+
}, H = () => {
|
|
1595
|
+
A.value = !1;
|
|
1596
|
+
}, ve = () => {
|
|
1595
1597
|
if (t.showOnHover) {
|
|
1596
1598
|
if (t.disableClickOutsideToClose) return;
|
|
1597
|
-
if (!c.value && !
|
|
1598
|
-
|
|
1599
|
+
if (!c.value && !ue && t.enableClickToggle) {
|
|
1600
|
+
M.value = !1, z(!0);
|
|
1599
1601
|
return;
|
|
1600
1602
|
}
|
|
1601
|
-
|
|
1603
|
+
M.value = !0, me();
|
|
1602
1604
|
return;
|
|
1603
1605
|
}
|
|
1604
|
-
z(
|
|
1605
|
-
},
|
|
1606
|
+
z(ue ? !1 : !c.value);
|
|
1607
|
+
}, ye = (e) => {
|
|
1606
1608
|
let t = e.newState === "open";
|
|
1607
1609
|
c.value !== t && (c.value = t);
|
|
1608
|
-
},
|
|
1609
|
-
h &&
|
|
1610
|
+
}, be = (e) => {
|
|
1611
|
+
h && ne.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), z(!1));
|
|
1610
1612
|
};
|
|
1611
|
-
return
|
|
1613
|
+
return L(c, async (e) => {
|
|
1612
1614
|
if (t.showOnHover && t.enableGroupSync && te(!!e), !h) {
|
|
1613
|
-
e &&
|
|
1615
|
+
e && R();
|
|
1614
1616
|
return;
|
|
1615
1617
|
}
|
|
1616
|
-
await v(),
|
|
1617
|
-
}),
|
|
1618
|
+
await v(), B();
|
|
1619
|
+
}), L(V, (e) => {
|
|
1618
1620
|
if (t.showOnHover) {
|
|
1619
1621
|
if (e) {
|
|
1620
1622
|
z(!0);
|
|
1621
1623
|
return;
|
|
1622
1624
|
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
+
fe(), t.closeDelay > 0 ? (pe(), de = setTimeout(() => {
|
|
1626
|
+
de = void 0, V.value || z(!1);
|
|
1625
1627
|
}, t.closeDelay)) : z(!1);
|
|
1626
1628
|
}
|
|
1627
|
-
}),
|
|
1628
|
-
e ? h && c.value && v(
|
|
1629
|
+
}), L(m, (e) => {
|
|
1630
|
+
e ? h && c.value && v(B) : me();
|
|
1629
1631
|
}), w(() => {
|
|
1630
|
-
b.value = y.value, g.value = !0, c.value && v(() => h ?
|
|
1632
|
+
b.value = y.value, g.value = !0, c.value && v(() => h ? B() : R());
|
|
1631
1633
|
}), ee(() => {
|
|
1632
|
-
|
|
1633
|
-
}),
|
|
1634
|
+
fe(), pe();
|
|
1635
|
+
}), L(() => t.disabled, (e) => {
|
|
1634
1636
|
if (!e) {
|
|
1635
1637
|
V.value && z(!0);
|
|
1636
1638
|
return;
|
|
1637
1639
|
}
|
|
1638
|
-
|
|
1640
|
+
O.value &&= !1, A.value &&= !1, z(!1);
|
|
1639
1641
|
}), (r, l) => (E(), o("div", {
|
|
1640
1642
|
ref_key: "root",
|
|
1641
1643
|
ref: _,
|
|
1642
|
-
style: x(
|
|
1643
|
-
onKeydown:
|
|
1644
|
+
style: x(F.value),
|
|
1645
|
+
onKeydown: be
|
|
1644
1646
|
}, [s("div", {
|
|
1645
1647
|
ref_key: "triggerWrapper",
|
|
1646
1648
|
ref: y,
|
|
1647
|
-
style: x(
|
|
1648
|
-
onClick:
|
|
1649
|
-
onFocusin:
|
|
1650
|
-
onFocusout: l[0] ||= (e) =>
|
|
1651
|
-
}, [j(r.$slots, "trigger")], 36), g.value &&
|
|
1649
|
+
style: x(ie.value),
|
|
1650
|
+
onClick: ve,
|
|
1651
|
+
onFocusin: ge,
|
|
1652
|
+
onFocusout: l[0] ||= (e) => O.value = !1
|
|
1653
|
+
}, [j(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (E(), o("div", {
|
|
1652
1654
|
key: 0,
|
|
1653
1655
|
ref_key: "floating",
|
|
1654
1656
|
ref: S,
|
|
1655
1657
|
class: "pv-floating pv-floating-native",
|
|
1656
|
-
popover:
|
|
1657
|
-
style: x(
|
|
1658
|
-
onToggle:
|
|
1659
|
-
onFocusin:
|
|
1660
|
-
onFocusout:
|
|
1661
|
-
}, [e.disabled ? a("v-if", !0) : j(r.$slots, "content", { key: 0 })], 44,
|
|
1658
|
+
popover: ne.value,
|
|
1659
|
+
style: x(oe.value),
|
|
1660
|
+
onToggle: ye,
|
|
1661
|
+
onFocusin: _e,
|
|
1662
|
+
onFocusout: H
|
|
1663
|
+
}, [e.disabled ? a("v-if", !0) : j(r.$slots, "content", { key: 0 })], 44, Qn)) : m.value ? (E(), i(n, {
|
|
1662
1664
|
key: 1,
|
|
1663
1665
|
to: e.teleportLocation,
|
|
1664
1666
|
disabled: !t.useTeleport || e.disabled
|
|
1665
|
-
}, [
|
|
1667
|
+
}, [se(s("div", {
|
|
1666
1668
|
ref_key: "floating",
|
|
1667
1669
|
ref: S,
|
|
1668
1670
|
class: "pv-floating",
|
|
1669
1671
|
style: x(le.value),
|
|
1670
|
-
onFocusin:
|
|
1671
|
-
onFocusout:
|
|
1672
|
-
}, [j(r.$slots, "content")], 36), [[
|
|
1672
|
+
onFocusin: _e,
|
|
1673
|
+
onFocusout: H
|
|
1674
|
+
}, [j(r.$slots, "content")], 36), [[ae, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1673
1675
|
}
|
|
1674
|
-
}),
|
|
1676
|
+
}), tr = ["data-variant"], nr = /* @__PURE__ */ d({
|
|
1675
1677
|
__name: "PvTooltipV2",
|
|
1676
1678
|
props: {
|
|
1677
1679
|
variant: {
|
|
@@ -1694,6 +1696,7 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1694
1696
|
type: Boolean,
|
|
1695
1697
|
default: !0
|
|
1696
1698
|
},
|
|
1699
|
+
hoverTarget: { type: String },
|
|
1697
1700
|
disableInteractive: {
|
|
1698
1701
|
type: Boolean,
|
|
1699
1702
|
default: !1
|
|
@@ -1715,42 +1718,42 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1715
1718
|
cssCustomProperties: { type: Object }
|
|
1716
1719
|
},
|
|
1717
1720
|
setup(e) {
|
|
1718
|
-
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 } =
|
|
1719
|
-
return (t, n) => (E(), i(
|
|
1720
|
-
trigger:
|
|
1721
|
+
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 } = Jn("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
1722
|
+
return (t, n) => (E(), i(er, b(h(t.$props)), c({
|
|
1723
|
+
trigger: R(() => [j(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1721
1724
|
_: 2
|
|
1722
1725
|
}, [f.value ? {
|
|
1723
1726
|
name: "content",
|
|
1724
|
-
fn:
|
|
1727
|
+
fn: R(() => [s("div", {
|
|
1725
1728
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1726
1729
|
role: "tooltip",
|
|
1727
1730
|
"data-variant": e.variant
|
|
1728
|
-
}, [j(t.$slots, "content", {}, () => [l(
|
|
1731
|
+
}, [j(t.$slots, "content", {}, () => [l(P(e.description), 1)])], 10, tr)]),
|
|
1729
1732
|
key: "0"
|
|
1730
1733
|
} : void 0]), 1040));
|
|
1731
1734
|
}
|
|
1732
|
-
}),
|
|
1735
|
+
}), rr = (e) => !!(e.active || e.children?.some(rr)), ir = {
|
|
1733
1736
|
class: "pv-popover",
|
|
1734
1737
|
style: {
|
|
1735
1738
|
"--position": "static",
|
|
1736
1739
|
"--height": "350px"
|
|
1737
1740
|
}
|
|
1738
|
-
},
|
|
1741
|
+
}, ar = {
|
|
1739
1742
|
role: "list",
|
|
1740
1743
|
class: "pv-popover-list"
|
|
1741
|
-
},
|
|
1744
|
+
}, or = ["data-active"], sr = [
|
|
1742
1745
|
"href",
|
|
1743
1746
|
"role",
|
|
1744
1747
|
"tabindex",
|
|
1745
1748
|
"data-active",
|
|
1746
1749
|
"aria-expanded"
|
|
1747
|
-
],
|
|
1750
|
+
], cr = {
|
|
1748
1751
|
key: 0,
|
|
1749
1752
|
class: "pv-tag-purple pv-tag-sm"
|
|
1750
|
-
},
|
|
1753
|
+
}, lr = ["href"], ur = {
|
|
1751
1754
|
key: 0,
|
|
1752
1755
|
class: "pv-tag-purple pv-tag-sm"
|
|
1753
|
-
},
|
|
1756
|
+
}, dr = /* @__PURE__ */ d({
|
|
1754
1757
|
name: "PvSidebarV2NavFlyout",
|
|
1755
1758
|
__name: "PvSidebarV2NavFlyout",
|
|
1756
1759
|
props: {
|
|
@@ -1760,11 +1763,11 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1760
1763
|
setup(e) {
|
|
1761
1764
|
let n = k({});
|
|
1762
1765
|
return (r, c) => {
|
|
1763
|
-
let l =
|
|
1764
|
-
return E(), o("div",
|
|
1766
|
+
let l = M("PvSidebarV2NavFlyout", !0);
|
|
1767
|
+
return E(), o("div", ir, [s("ul", ar, [(E(!0), o(t, null, A(e.items, (t) => (E(), o("li", {
|
|
1765
1768
|
key: t.value,
|
|
1766
1769
|
"data-active": !t.children?.length && t.active || void 0
|
|
1767
|
-
}, [a(" Nested items - another flyout on the right, rendered inside this one so hovering it keeps this open.\n Not teleported: the nested surface has to stay a DOM descendant of this one for that to hold. "), t.children?.length ? (E(), i(
|
|
1770
|
+
}, [a(" Nested items - another flyout on the right, rendered inside this one so hovering it keeps this open.\n Not teleported: the nested surface has to stay a DOM descendant of this one for that to hold. "), t.children?.length ? (E(), i(er, {
|
|
1768
1771
|
key: 0,
|
|
1769
1772
|
modelValue: n.value[t.value],
|
|
1770
1773
|
"onUpdate:modelValue": (e) => n.value[t.value] = e,
|
|
@@ -1776,22 +1779,22 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1776
1779
|
disabled: e.disabled,
|
|
1777
1780
|
"css-custom-properties": { width: "100%" }
|
|
1778
1781
|
}, {
|
|
1779
|
-
trigger:
|
|
1782
|
+
trigger: R(() => [s("a", _({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
|
|
1780
1783
|
role: t.url ? void 0 : "button",
|
|
1781
1784
|
tabindex: t.url ? void 0 : 0,
|
|
1782
|
-
"data-active":
|
|
1785
|
+
"data-active": I(rr)(t) || void 0,
|
|
1783
1786
|
"aria-haspopup": "true",
|
|
1784
1787
|
"aria-expanded": !!n.value[t.value],
|
|
1785
1788
|
style: { "flex-wrap": "wrap" }
|
|
1786
1789
|
}), [
|
|
1787
|
-
s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) },
|
|
1788
|
-
t.badge ? (E(), o("span",
|
|
1789
|
-
u(
|
|
1790
|
+
s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, P(t.label), 3),
|
|
1791
|
+
t.badge ? (E(), o("span", cr, P(t.badge.toUpperCase()), 1)) : a("v-if", !0),
|
|
1792
|
+
u(W, {
|
|
1790
1793
|
name: "chevron-right",
|
|
1791
1794
|
class: "pv-icon-16"
|
|
1792
1795
|
})
|
|
1793
|
-
], 16,
|
|
1794
|
-
content:
|
|
1796
|
+
], 16, sr)]),
|
|
1797
|
+
content: R(() => [u(l, {
|
|
1795
1798
|
items: t.children,
|
|
1796
1799
|
disabled: e.disabled
|
|
1797
1800
|
}, null, 8, ["items", "disabled"])]),
|
|
@@ -1803,114 +1806,114 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1803
1806
|
])) : (E(), o("a", _({
|
|
1804
1807
|
key: 1,
|
|
1805
1808
|
href: t.url
|
|
1806
|
-
}, { ref_for: !0 }, t.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) },
|
|
1809
|
+
}, { ref_for: !0 }, t.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": t.external }]) }, P(t.label), 3), t.badge ? (E(), o("span", ur, P(t.badge.toUpperCase()), 1)) : a("v-if", !0)], 16, lr))], 8, or))), 128))])]);
|
|
1807
1810
|
};
|
|
1808
1811
|
}
|
|
1809
|
-
}),
|
|
1812
|
+
}), fr = {
|
|
1810
1813
|
key: 0,
|
|
1811
1814
|
class: "sidebar-additional-header"
|
|
1812
|
-
},
|
|
1815
|
+
}, pr = { class: "sidebar-header-content pv-full-width" }, mr = {
|
|
1813
1816
|
key: 0,
|
|
1814
1817
|
class: "pv-sidebar-nav-header"
|
|
1815
|
-
},
|
|
1818
|
+
}, hr = ["aria-label", "aria-expanded"], gr = {
|
|
1816
1819
|
class: "pv-flex",
|
|
1817
1820
|
style: { "min-width": "0" }
|
|
1818
|
-
},
|
|
1821
|
+
}, _r = {
|
|
1819
1822
|
class: "pv-avatar-xs",
|
|
1820
1823
|
style: {
|
|
1821
1824
|
"border-radius": "4px",
|
|
1822
1825
|
"flex-shrink": "0"
|
|
1823
1826
|
}
|
|
1824
|
-
},
|
|
1827
|
+
}, vr = ["src"], yr = { key: 1 }, br = ["title"], xr = {
|
|
1825
1828
|
class: "pv-popover",
|
|
1826
1829
|
style: {
|
|
1827
1830
|
width: "fit-content",
|
|
1828
1831
|
"max-width": "280px",
|
|
1829
1832
|
"margin-top": "4px"
|
|
1830
1833
|
}
|
|
1831
|
-
},
|
|
1834
|
+
}, Sr = {
|
|
1832
1835
|
role: "list",
|
|
1833
1836
|
class: "pv-popover-list pv-flow",
|
|
1834
1837
|
style: { "--flow-size": "0.25rem" },
|
|
1835
1838
|
"data-testid": "pv-sidebar-org-list"
|
|
1836
|
-
},
|
|
1839
|
+
}, Cr = ["data-active"], wr = ["href", "data-org-value"], Tr = {
|
|
1837
1840
|
class: "pv-avatar-xs",
|
|
1838
1841
|
style: { "border-radius": "4px" }
|
|
1839
|
-
},
|
|
1842
|
+
}, Er = ["src"], Dr = { key: 1 }, Or = ["title"], kr = ["data-active"], Ar = ["href", "data-org-value"], jr = ["title"], Mr = { class: "pv-sidebar-nav" }, Nr = { key: 0 }, Pr = {
|
|
1840
1843
|
key: 1,
|
|
1841
1844
|
role: "list",
|
|
1842
1845
|
class: "pv-full-width pv-flow",
|
|
1843
1846
|
style: { "--flow-size": "0.25rem" }
|
|
1844
|
-
},
|
|
1847
|
+
}, Fr = {
|
|
1845
1848
|
class: "pv-flex pv-space-between pv-full-width",
|
|
1846
1849
|
"data-sidebar-expanded-content": "",
|
|
1847
1850
|
style: { "flex-wrap": "wrap" }
|
|
1848
|
-
},
|
|
1851
|
+
}, Ir = {
|
|
1849
1852
|
key: 0,
|
|
1850
1853
|
class: "pv-tag-purple pv-tag-sm"
|
|
1851
|
-
},
|
|
1854
|
+
}, Lr = ["onClick", "onKeydown"], Rr = [
|
|
1852
1855
|
"href",
|
|
1853
1856
|
"aria-current",
|
|
1854
1857
|
"title"
|
|
1855
|
-
],
|
|
1858
|
+
], zr = {
|
|
1856
1859
|
class: "pv-flex pv-space-between pv-full-width",
|
|
1857
1860
|
"data-sidebar-expanded-content": "",
|
|
1858
1861
|
style: { "flex-wrap": "wrap" }
|
|
1859
|
-
},
|
|
1862
|
+
}, Br = {
|
|
1860
1863
|
key: 0,
|
|
1861
1864
|
class: "pv-tag-purple pv-tag-sm"
|
|
1862
|
-
},
|
|
1865
|
+
}, Vr = {
|
|
1863
1866
|
class: "pv-popover",
|
|
1864
1867
|
style: { "--position": "static" }
|
|
1865
|
-
},
|
|
1868
|
+
}, Hr = {
|
|
1866
1869
|
role: "list",
|
|
1867
1870
|
class: "pv-popover-list"
|
|
1868
|
-
},
|
|
1871
|
+
}, Ur = ["data-active"], Wr = ["href"], Gr = {
|
|
1869
1872
|
key: 0,
|
|
1870
1873
|
class: "pv-tag-purple pv-tag-sm"
|
|
1871
|
-
},
|
|
1874
|
+
}, Kr = ["onClick", "onAuxclick"], qr = { "data-sidebar-expanded-content": "" }, Jr = { class: "pv-sidebar-nav-nested" }, Yr = [
|
|
1872
1875
|
"href",
|
|
1873
1876
|
"role",
|
|
1874
1877
|
"tabindex",
|
|
1875
1878
|
"aria-current",
|
|
1876
1879
|
"aria-expanded",
|
|
1877
1880
|
"title"
|
|
1878
|
-
],
|
|
1881
|
+
], Xr = {
|
|
1879
1882
|
class: "pv-flex pv-space-between pv-full-width",
|
|
1880
1883
|
style: { "flex-wrap": "wrap" }
|
|
1881
|
-
},
|
|
1884
|
+
}, Zr = {
|
|
1882
1885
|
key: 0,
|
|
1883
1886
|
class: "pv-tag-purple pv-tag-sm"
|
|
1884
|
-
},
|
|
1887
|
+
}, Qr = [
|
|
1885
1888
|
"href",
|
|
1886
1889
|
"aria-current",
|
|
1887
1890
|
"title"
|
|
1888
|
-
],
|
|
1891
|
+
], $r = {
|
|
1889
1892
|
class: "pv-flex pv-space-between pv-full-width",
|
|
1890
1893
|
style: { "flex-wrap": "wrap" }
|
|
1891
|
-
},
|
|
1894
|
+
}, ei = {
|
|
1892
1895
|
key: 0,
|
|
1893
1896
|
class: "pv-tag-purple pv-tag-sm"
|
|
1894
|
-
},
|
|
1897
|
+
}, ti = {
|
|
1895
1898
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
1896
1899
|
style: { "--bottom": "0" }
|
|
1897
|
-
},
|
|
1900
|
+
}, ni = ["aria-expanded"], ri = { class: "pv-popover pv-text-default pv-text-body-md" }, ii = [
|
|
1898
1901
|
"aria-label",
|
|
1899
1902
|
"aria-expanded",
|
|
1900
1903
|
"title"
|
|
1901
|
-
],
|
|
1904
|
+
], ai = {
|
|
1902
1905
|
class: "pv-avatar-xs",
|
|
1903
1906
|
style: {
|
|
1904
1907
|
"border-radius": "50%",
|
|
1905
1908
|
"flex-shrink": "0"
|
|
1906
1909
|
}
|
|
1907
|
-
},
|
|
1910
|
+
}, oi = ["src"], si = { key: 1 }, ci = {
|
|
1908
1911
|
class: "pv-truncate",
|
|
1909
1912
|
"data-sidebar-expanded-content": ""
|
|
1910
|
-
},
|
|
1913
|
+
}, li = {
|
|
1911
1914
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
1912
1915
|
style: { "--height": "750px" }
|
|
1913
|
-
},
|
|
1916
|
+
}, ui = { class: "content-panel" }, di = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", fi = /* @__PURE__ */ d({
|
|
1914
1917
|
__name: "PvSidebarV2",
|
|
1915
1918
|
props: /* @__PURE__ */ g({
|
|
1916
1919
|
disableOrgProfileHover: { type: Boolean },
|
|
@@ -1928,18 +1931,18 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1928
1931
|
}),
|
|
1929
1932
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
1930
1933
|
setup(e, { emit: n }) {
|
|
1931
|
-
let c = e, d = p(), f = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } =
|
|
1932
|
-
"--pv-sidebar-hover-panel-height": `${
|
|
1933
|
-
"--pv-sidebar-hover-panel-left": `${
|
|
1934
|
-
"--pv-sidebar-hover-panel-top": `${
|
|
1935
|
-
})),
|
|
1934
|
+
let c = e, d = p(), f = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Jn("sidebar-additional-content", { host: f }), { present: h } = Jn("sidebar-additional-header", { host: f }), { present: g } = Jn("sidebar-help-content", { host: f }), { present: b } = Jn("sidebar-profile-content", { host: f }), C = ie(), T = k(null), ee = k(null), D = k({}), O = k(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), ne = k(0), F = Ie(ee), ae = r(() => ({
|
|
1935
|
+
"--pv-sidebar-hover-panel-height": `${F.height.value}px`,
|
|
1936
|
+
"--pv-sidebar-hover-panel-left": `${F.right.value}px`,
|
|
1937
|
+
"--pv-sidebar-hover-panel-top": `${F.top.value}px`
|
|
1938
|
+
})), oe, se = (e) => e.hoverPanelSlot ? f ? (ne.value, qn(f, e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, le = (e, t, n) => {
|
|
1936
1939
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
1937
1940
|
}, ue = (e) => {
|
|
1938
|
-
let t =
|
|
1941
|
+
let t = M.get(e), n = t?.querySelector(di);
|
|
1939
1942
|
if (n) return n;
|
|
1940
1943
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
1941
|
-
if (t.matches(
|
|
1942
|
-
let e = t.querySelector(
|
|
1944
|
+
if (t.matches(di)) return t;
|
|
1945
|
+
let e = t.querySelector(di);
|
|
1943
1946
|
if (e) return e;
|
|
1944
1947
|
}
|
|
1945
1948
|
}, de = (e, t) => {
|
|
@@ -1948,57 +1951,57 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
1948
1951
|
n && (e.preventDefault(), D.value[t] = !0, v(() => n.focus()));
|
|
1949
1952
|
}, fe = (e) => {
|
|
1950
1953
|
O.value = e, D.value[e] = !1, v(() => {
|
|
1951
|
-
|
|
1954
|
+
N.get(e)?.focus({ preventScroll: !0 }), v(() => O.value = void 0);
|
|
1952
1955
|
});
|
|
1953
|
-
}, z = (e, t) => {
|
|
1954
|
-
e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && fe(t);
|
|
1955
1956
|
}, pe = (e, t) => {
|
|
1957
|
+
e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && fe(t);
|
|
1958
|
+
}, z = (e, t) => {
|
|
1956
1959
|
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), fe(t));
|
|
1957
1960
|
};
|
|
1958
1961
|
w(() => {
|
|
1959
|
-
f && (
|
|
1960
|
-
e.some((e) => e.target === f || e.type === "attributes" && e.target.parentNode === f) && (
|
|
1961
|
-
}),
|
|
1962
|
+
f && (oe = new MutationObserver((e) => {
|
|
1963
|
+
e.some((e) => e.target === f || e.type === "attributes" && e.target.parentNode === f) && (ne.value += 1);
|
|
1964
|
+
}), oe.observe(f, {
|
|
1962
1965
|
attributes: !0,
|
|
1963
1966
|
attributeFilter: ["slot"],
|
|
1964
1967
|
childList: !0,
|
|
1965
1968
|
subtree: !0
|
|
1966
1969
|
}));
|
|
1967
|
-
}), S(() =>
|
|
1970
|
+
}), S(() => oe?.disconnect());
|
|
1968
1971
|
let me = (e) => {
|
|
1969
1972
|
for (let t of e) {
|
|
1970
1973
|
if (t.active) return t;
|
|
1971
1974
|
let e = t.entities && me(t.entities);
|
|
1972
1975
|
if (e) return e;
|
|
1973
1976
|
}
|
|
1974
|
-
}, B = r(() => (c.organizations && me(c.organizations)) ?? c.organizations?.[0]),
|
|
1977
|
+
}, B = r(() => (c.organizations && me(c.organizations)) ?? c.organizations?.[0]), he = k((() => {
|
|
1975
1978
|
let e = {};
|
|
1976
1979
|
return c.navItems?.forEach((t) => {
|
|
1977
|
-
|
|
1980
|
+
rr(t) && (e[t.value] = !0);
|
|
1978
1981
|
}), e;
|
|
1979
1982
|
})());
|
|
1980
|
-
|
|
1983
|
+
L(() => c.navItems, (e) => {
|
|
1981
1984
|
e?.forEach((e) => {
|
|
1982
|
-
|
|
1985
|
+
rr(e) && (he.value[e.value] = !0);
|
|
1983
1986
|
});
|
|
1984
1987
|
});
|
|
1985
|
-
let
|
|
1986
|
-
|
|
1988
|
+
let V = re(e, "modelValue"), ge = k(!1), _e = n, H = k(!1), ve = k(!1), ye = k(!1), be = k({}), xe = () => {
|
|
1989
|
+
H.value = !1, D.value = {}, be.value = {}, ve.value = !1, ye.value = !1;
|
|
1987
1990
|
};
|
|
1988
|
-
|
|
1989
|
-
e && (D.value = {},
|
|
1990
|
-
}),
|
|
1991
|
-
e && (
|
|
1992
|
-
}),
|
|
1993
|
-
e && (
|
|
1994
|
-
}),
|
|
1995
|
-
|
|
1991
|
+
L(H, (e) => {
|
|
1992
|
+
e && (D.value = {}, ve.value = !1, ye.value = !1);
|
|
1993
|
+
}), L(ve, (e) => {
|
|
1994
|
+
e && (H.value = !1, D.value = {}, ye.value = !1);
|
|
1995
|
+
}), L(ye, (e) => {
|
|
1996
|
+
e && (H.value = !1, D.value = {}, ve.value = !1);
|
|
1997
|
+
}), L(V, () => {
|
|
1998
|
+
xe(), ge.value = !0;
|
|
1996
1999
|
});
|
|
1997
|
-
let
|
|
1998
|
-
|
|
1999
|
-
},
|
|
2000
|
-
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (
|
|
2001
|
-
},
|
|
2000
|
+
let Se = () => {
|
|
2001
|
+
V.value = !V.value, _e("change", { collapsed: V.value });
|
|
2002
|
+
}, Ce = (e) => {
|
|
2003
|
+
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (ge.value = !1);
|
|
2004
|
+
}, we = (e) => e.some(rr), Te = (e, t) => {
|
|
2002
2005
|
if (t.url) {
|
|
2003
2006
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
2004
2007
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -2009,28 +2012,28 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2009
2012
|
};
|
|
2010
2013
|
return (n, r) => (E(), o("div", {
|
|
2011
2014
|
class: y(["sidebar-layout sidebar-layout-new", [e.variant && `sidebar-layout-${e.variant}`, {
|
|
2012
|
-
"is-collapsed":
|
|
2013
|
-
"is-expanded": !
|
|
2014
|
-
"is-transitioning":
|
|
2015
|
+
"is-collapsed": V.value,
|
|
2016
|
+
"is-expanded": !V.value,
|
|
2017
|
+
"is-transitioning": ge.value
|
|
2015
2018
|
}]]),
|
|
2016
|
-
style: x(
|
|
2017
|
-
onTransitionend:
|
|
2019
|
+
style: x(ae.value),
|
|
2020
|
+
onTransitionend: Ce
|
|
2018
2021
|
}, [
|
|
2019
2022
|
s("div", {
|
|
2020
2023
|
ref_key: "sidebarPanel",
|
|
2021
2024
|
ref: ee,
|
|
2022
2025
|
class: "sidebar-panel"
|
|
2023
|
-
}, [s("div", null, [
|
|
2024
|
-
modelValue:
|
|
2025
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
2026
|
-
position:
|
|
2026
|
+
}, [s("div", null, [I(h) ? (E(), o("div", fr, [j(n.$slots, "sidebar-additional-header")])) : a("v-if", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": V.value }]]) }, [s("div", pr, [e.organizations && e.organizations.length ? (E(), o("div", mr, [u(er, {
|
|
2027
|
+
modelValue: ve.value,
|
|
2028
|
+
"onUpdate:modelValue": r[0] ||= (e) => ve.value = e,
|
|
2029
|
+
position: V.value ? "right-top" : "bottom-left",
|
|
2027
2030
|
"use-teleport": !!T.value,
|
|
2028
2031
|
"teleport-location": T.value ?? "body",
|
|
2029
2032
|
"css-custom-properties": { width: "100%" }
|
|
2030
2033
|
}, {
|
|
2031
|
-
trigger:
|
|
2034
|
+
trigger: R(() => [u(nr, {
|
|
2032
2035
|
description: B.value?.label,
|
|
2033
|
-
disabled: !
|
|
2036
|
+
disabled: !V.value || ge.value || ve.value,
|
|
2034
2037
|
variant: "white",
|
|
2035
2038
|
position: "center-right",
|
|
2036
2039
|
delay: 250,
|
|
@@ -2040,25 +2043,25 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2040
2043
|
"teleport-location": T.value ?? "body",
|
|
2041
2044
|
"css-custom-properties": { width: "100%" }
|
|
2042
2045
|
}, {
|
|
2043
|
-
trigger:
|
|
2046
|
+
trigger: R(() => [s("button", {
|
|
2044
2047
|
type: "button",
|
|
2045
2048
|
class: "pv-nav-list-item pv-full-width pv-space-between",
|
|
2046
2049
|
"data-testid": "pv-sidebar-org-switcher",
|
|
2047
2050
|
"aria-label": `Switch organization: ${B.value?.label}`,
|
|
2048
|
-
"aria-expanded":
|
|
2049
|
-
}, [s("div",
|
|
2051
|
+
"aria-expanded": ve.value
|
|
2052
|
+
}, [s("div", gr, [s("span", _r, [B.value?.avatarUrl ? (E(), o("img", {
|
|
2050
2053
|
key: 0,
|
|
2051
2054
|
src: B.value.avatarUrl,
|
|
2052
2055
|
alt: "Organization Avatar"
|
|
2053
|
-
}, null, 8,
|
|
2056
|
+
}, null, 8, vr)) : (E(), o("span", yr, P(B.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
2054
2057
|
class: "pv-text-title-lg pv-truncate",
|
|
2055
2058
|
"data-sidebar-expanded-content": "",
|
|
2056
2059
|
title: B.value?.label
|
|
2057
|
-
},
|
|
2060
|
+
}, P(B.value?.label), 9, br)]), u(W, {
|
|
2058
2061
|
name: "chevron-down",
|
|
2059
2062
|
class: "pv-icon-16",
|
|
2060
2063
|
"data-sidebar-expanded-content": ""
|
|
2061
|
-
})], 8,
|
|
2064
|
+
})], 8, hr)]),
|
|
2062
2065
|
_: 1
|
|
2063
2066
|
}, 8, [
|
|
2064
2067
|
"description",
|
|
@@ -2066,19 +2069,19 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2066
2069
|
"use-teleport",
|
|
2067
2070
|
"teleport-location"
|
|
2068
2071
|
])]),
|
|
2069
|
-
content:
|
|
2072
|
+
content: R(() => [s("div", xr, [s("ul", Sr, [(E(!0), o(t, null, A(e.organizations, (e) => (E(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
2070
2073
|
class: "pv-flex",
|
|
2071
2074
|
href: e.url,
|
|
2072
2075
|
"data-testid": "pv-sidebar-org-option",
|
|
2073
2076
|
"data-org-value": e.value
|
|
2074
|
-
}, [s("div",
|
|
2077
|
+
}, [s("div", Tr, [e.avatarUrl ? (E(), o("img", {
|
|
2075
2078
|
key: 0,
|
|
2076
2079
|
src: e.avatarUrl,
|
|
2077
2080
|
alt: "Organization Avatar"
|
|
2078
|
-
}, null, 8,
|
|
2081
|
+
}, null, 8, Er)) : (E(), o("span", Dr, P(e.label.slice(0, 1)), 1))]), s("span", {
|
|
2079
2082
|
class: "pv-truncate pv-flex-item",
|
|
2080
2083
|
title: e.label
|
|
2081
|
-
},
|
|
2084
|
+
}, P(e.label), 9, Or)], 8, wr)], 8, Cr), (E(!0), o(t, null, A(e.entities, (e) => (E(), o("li", {
|
|
2082
2085
|
key: e.value,
|
|
2083
2086
|
style: { "padding-left": "0.5rem" },
|
|
2084
2087
|
"data-active": e.active || void 0
|
|
@@ -2088,34 +2091,34 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2088
2091
|
style: { "max-width": "100%" },
|
|
2089
2092
|
"data-testid": "pv-sidebar-org-entity",
|
|
2090
2093
|
"data-org-value": e.value
|
|
2091
|
-
}, [u(
|
|
2094
|
+
}, [u(W, { name: "corner-down-right" }), s("span", {
|
|
2092
2095
|
class: "pv-truncate",
|
|
2093
2096
|
title: e.label
|
|
2094
|
-
},
|
|
2097
|
+
}, P(e.label), 9, jr)], 8, Ar)], 8, kr))), 128))], 64))), 128))])])]),
|
|
2095
2098
|
_: 1
|
|
2096
2099
|
}, 8, [
|
|
2097
2100
|
"modelValue",
|
|
2098
2101
|
"position",
|
|
2099
2102
|
"use-teleport",
|
|
2100
2103
|
"teleport-location"
|
|
2101
|
-
])])) : a("v-if", !0)]), e.disableToggle ? a("v-if", !0) : (E(), i(
|
|
2104
|
+
])])) : a("v-if", !0)]), e.disableToggle ? a("v-if", !0) : (E(), i(nr, {
|
|
2102
2105
|
key: 0,
|
|
2103
2106
|
variant: "white",
|
|
2104
2107
|
position: "center-right",
|
|
2105
2108
|
delay: 1e3
|
|
2106
2109
|
}, {
|
|
2107
|
-
trigger:
|
|
2110
|
+
trigger: R(() => [u($e, {
|
|
2108
2111
|
class: "sidebar-toggle",
|
|
2109
|
-
"left-icon":
|
|
2110
|
-
"aria-label":
|
|
2112
|
+
"left-icon": V.value ? "panel-left-open" : "panel-left-close",
|
|
2113
|
+
"aria-label": V.value ? "Open sidebar" : "Close sidebar",
|
|
2111
2114
|
variant: "ghost",
|
|
2112
|
-
onClick:
|
|
2115
|
+
onClick: Se
|
|
2113
2116
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
2114
|
-
content:
|
|
2117
|
+
content: R(() => [l(P(V.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
2115
2118
|
_: 1
|
|
2116
|
-
}))], 2)]), s("div",
|
|
2117
|
-
|
|
2118
|
-
e.navItems && e.navItems.length ? (E(), o("ul",
|
|
2119
|
+
}))], 2)]), s("div", Mr, [
|
|
2120
|
+
I(m) ? (E(), o("div", Nr, [j(n.$slots, "sidebar-additional-content")])) : a("v-if", !0),
|
|
2121
|
+
e.navItems && e.navItems.length ? (E(), o("ul", Pr, [(E(!0), o(t, null, A(e.navItems, (e) => (E(), o("li", { key: e.value }, [a(" Slotted full-height panel - available while collapsed or expanded "), se(e) ? (E(), i(er, {
|
|
2119
2122
|
key: 0,
|
|
2120
2123
|
modelValue: D.value[e.value],
|
|
2121
2124
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -2128,24 +2131,24 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2128
2131
|
disabled: O.value === e.value,
|
|
2129
2132
|
"css-custom-properties": { width: "100%" }
|
|
2130
2133
|
}, {
|
|
2131
|
-
trigger:
|
|
2134
|
+
trigger: R(() => [(E(), i(te(e.url ? "a" : "button"), _({
|
|
2132
2135
|
ref_for: !0,
|
|
2133
|
-
ref: (t) =>
|
|
2136
|
+
ref: (t) => le(I(N), e.value, t),
|
|
2134
2137
|
class: "pv-nav-list-item",
|
|
2135
2138
|
href: e.url,
|
|
2136
2139
|
type: e.url ? void 0 : "button"
|
|
2137
2140
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
2138
2141
|
"aria-current": e.active ? "page" : void 0,
|
|
2139
2142
|
"aria-expanded": !!D.value[e.value],
|
|
2140
|
-
"aria-label":
|
|
2141
|
-
title:
|
|
2142
|
-
onKeydown:
|
|
2143
|
+
"aria-label": V.value ? e.label : void 0,
|
|
2144
|
+
title: V.value ? void 0 : e.label,
|
|
2145
|
+
onKeydown: ce((t) => de(t, e.value), ["tab"])
|
|
2143
2146
|
}), {
|
|
2144
|
-
default:
|
|
2147
|
+
default: R(() => [e.icon ? (E(), i(W, {
|
|
2145
2148
|
key: 0,
|
|
2146
2149
|
name: e.icon,
|
|
2147
2150
|
class: "pv-nav-icon"
|
|
2148
|
-
}, null, 8, ["name"])) : a("v-if", !0), s("span",
|
|
2151
|
+
}, null, 8, ["name"])) : a("v-if", !0), s("span", Fr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (E(), o("span", Ir, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)])]),
|
|
2149
2152
|
_: 2
|
|
2150
2153
|
}, 1040, [
|
|
2151
2154
|
"href",
|
|
@@ -2156,13 +2159,13 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2156
2159
|
"title",
|
|
2157
2160
|
"onKeydown"
|
|
2158
2161
|
]))]),
|
|
2159
|
-
content:
|
|
2162
|
+
content: R(() => [s("div", {
|
|
2160
2163
|
ref_for: !0,
|
|
2161
|
-
ref: (t) =>
|
|
2164
|
+
ref: (t) => le(I(M), e.value, t),
|
|
2162
2165
|
class: "pv-sidebar-hover-panel",
|
|
2163
|
-
onClick: (t) =>
|
|
2164
|
-
onKeydown: (t) =>
|
|
2165
|
-
}, [j(n.$slots, e.hoverPanelSlot)], 40,
|
|
2166
|
+
onClick: (t) => pe(t, e.value),
|
|
2167
|
+
onKeydown: (t) => z(t, e.value)
|
|
2168
|
+
}, [j(n.$slots, e.hoverPanelSlot)], 40, Lr)]),
|
|
2166
2169
|
_: 2
|
|
2167
2170
|
}, 1032, [
|
|
2168
2171
|
"modelValue",
|
|
@@ -2170,64 +2173,64 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2170
2173
|
"use-teleport",
|
|
2171
2174
|
"teleport-location",
|
|
2172
2175
|
"disabled"
|
|
2173
|
-
])) : !e.children || e.children.length === 0 ? (E(), o(t, { key: 1 }, [a(" Leaf item - direct link with a collapsed interactive flyout "), u(
|
|
2176
|
+
])) : !e.children || e.children.length === 0 ? (E(), o(t, { key: 1 }, [a(" Leaf item - direct link with a collapsed interactive flyout "), u(er, {
|
|
2174
2177
|
"show-on-hover": "",
|
|
2175
2178
|
"enable-group-sync": "",
|
|
2176
2179
|
"enable-click-toggle": "",
|
|
2177
2180
|
"use-teleport": !!T.value,
|
|
2178
2181
|
"teleport-location": T.value ?? "body",
|
|
2179
2182
|
position: "right-top",
|
|
2180
|
-
disabled: !
|
|
2183
|
+
disabled: !V.value,
|
|
2181
2184
|
"css-custom-properties": { width: "100%" }
|
|
2182
2185
|
}, {
|
|
2183
|
-
trigger:
|
|
2186
|
+
trigger: R(() => [s("a", _({
|
|
2184
2187
|
class: "pv-nav-list-item",
|
|
2185
2188
|
href: e.url
|
|
2186
2189
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
2187
2190
|
"aria-current": e.active ? "page" : void 0,
|
|
2188
|
-
title:
|
|
2189
|
-
}), [e.icon ? (E(), i(
|
|
2191
|
+
title: V.value ? void 0 : e.label
|
|
2192
|
+
}), [e.icon ? (E(), i(W, {
|
|
2190
2193
|
key: 0,
|
|
2191
2194
|
name: e.icon,
|
|
2192
2195
|
class: "pv-nav-icon"
|
|
2193
|
-
}, null, 8, ["name"])) : a("v-if", !0), s("span",
|
|
2194
|
-
content:
|
|
2196
|
+
}, null, 8, ["name"])) : a("v-if", !0), s("span", zr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (E(), o("span", Br, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)])], 16, Rr)]),
|
|
2197
|
+
content: R(() => [s("div", Vr, [s("ul", Hr, [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 ? (E(), o("span", Gr, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)], 16, Wr)], 8, Ur)])])]),
|
|
2195
2198
|
_: 2
|
|
2196
2199
|
}, 1032, [
|
|
2197
2200
|
"use-teleport",
|
|
2198
2201
|
"teleport-location",
|
|
2199
2202
|
"disabled"
|
|
2200
|
-
])], 2112)) : (E(), o(t, { key: 2 }, [a(" Child items - accordion with a collapsed hover flyout "), u(
|
|
2203
|
+
])], 2112)) : (E(), o(t, { key: 2 }, [a(" Child items - accordion with a collapsed hover flyout "), u(er, {
|
|
2201
2204
|
"show-on-hover": "",
|
|
2202
2205
|
"enable-group-sync": "",
|
|
2203
2206
|
"enable-click-toggle": "",
|
|
2204
2207
|
"use-teleport": !!T.value,
|
|
2205
2208
|
"teleport-location": T.value ?? "body",
|
|
2206
2209
|
position: "right-top",
|
|
2207
|
-
disabled: !
|
|
2210
|
+
disabled: !V.value,
|
|
2208
2211
|
"css-custom-properties": { width: "100%" }
|
|
2209
2212
|
}, {
|
|
2210
|
-
trigger:
|
|
2211
|
-
modelValue:
|
|
2212
|
-
"onUpdate:modelValue": (t) =>
|
|
2213
|
-
"default-open":
|
|
2214
|
-
"summary-attrs": { "aria-current":
|
|
2213
|
+
trigger: R(() => [u(Ke, {
|
|
2214
|
+
modelValue: he.value[e.value],
|
|
2215
|
+
"onUpdate:modelValue": (t) => he.value[e.value] = t,
|
|
2216
|
+
"default-open": I(rr)(e),
|
|
2217
|
+
"summary-attrs": { "aria-current": we(e.children) && V.value ? "page" : void 0 },
|
|
2215
2218
|
"enable-trigger-slot": "",
|
|
2216
2219
|
"enable-trigger-full-width": ""
|
|
2217
2220
|
}, {
|
|
2218
|
-
trigger:
|
|
2221
|
+
trigger: R(() => [s("div", {
|
|
2219
2222
|
class: "pv-flex",
|
|
2220
|
-
onClick: (t) => e.children.length === 1 &&
|
|
2221
|
-
onAuxclick: (t) => e.children.length === 1 &&
|
|
2222
|
-
}, [e.icon ? (E(), i(
|
|
2223
|
+
onClick: (t) => e.children.length === 1 && Te(t, e.children[0]),
|
|
2224
|
+
onAuxclick: (t) => e.children.length === 1 && Te(t, e.children[0])
|
|
2225
|
+
}, [e.icon ? (E(), i(W, {
|
|
2223
2226
|
key: 0,
|
|
2224
2227
|
name: e.icon,
|
|
2225
2228
|
class: "pv-nav-icon"
|
|
2226
|
-
}, null, 8, ["name"])) : a("v-if", !0), s("span",
|
|
2227
|
-
default:
|
|
2229
|
+
}, null, 8, ["name"])) : a("v-if", !0), s("span", qr, P(e.label), 1)], 40, Kr)]),
|
|
2230
|
+
default: R(() => [s("div", Jr, [(E(!0), o(t, null, A(e.children, (e) => (E(), o(t, { key: e.value }, [a(" Nested items - expanded-only flyout on the right; the collapsed flyout handles its own "), e.children?.length ? (E(), i(er, {
|
|
2228
2231
|
key: 0,
|
|
2229
|
-
modelValue:
|
|
2230
|
-
"onUpdate:modelValue": (t) =>
|
|
2232
|
+
modelValue: be.value[e.value],
|
|
2233
|
+
"onUpdate:modelValue": (t) => be.value[e.value] = t,
|
|
2231
2234
|
"show-on-hover": "",
|
|
2232
2235
|
"enable-group-sync": "",
|
|
2233
2236
|
"enable-click-toggle": "",
|
|
@@ -2235,23 +2238,23 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2235
2238
|
"teleport-location": T.value ?? "body",
|
|
2236
2239
|
position: "right-top",
|
|
2237
2240
|
offset: 8,
|
|
2238
|
-
disabled:
|
|
2241
|
+
disabled: V.value,
|
|
2239
2242
|
"css-custom-properties": { width: "100%" }
|
|
2240
2243
|
}, {
|
|
2241
|
-
trigger:
|
|
2244
|
+
trigger: R(() => [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
|
|
2242
2245
|
role: e.url ? void 0 : "button",
|
|
2243
2246
|
tabindex: e.url ? void 0 : 0,
|
|
2244
|
-
"aria-current":
|
|
2247
|
+
"aria-current": I(rr)(e) ? "page" : void 0,
|
|
2245
2248
|
"aria-haspopup": "true",
|
|
2246
|
-
"aria-expanded": !!
|
|
2249
|
+
"aria-expanded": !!be.value[e.value],
|
|
2247
2250
|
title: e.label
|
|
2248
|
-
}), [s("span",
|
|
2251
|
+
}), [s("span", Xr, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (E(), o("span", Zr, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)]), u(W, {
|
|
2249
2252
|
name: "chevron-right",
|
|
2250
2253
|
class: "pv-icon-16"
|
|
2251
|
-
})], 16,
|
|
2252
|
-
content:
|
|
2254
|
+
})], 16, Yr)]),
|
|
2255
|
+
content: R(() => [u(dr, {
|
|
2253
2256
|
items: e.children,
|
|
2254
|
-
disabled:
|
|
2257
|
+
disabled: V.value
|
|
2255
2258
|
}, null, 8, ["items", "disabled"])]),
|
|
2256
2259
|
_: 2
|
|
2257
2260
|
}, 1032, [
|
|
@@ -2266,7 +2269,7 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2266
2269
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
2267
2270
|
"aria-current": e.active ? "page" : void 0,
|
|
2268
2271
|
title: e.label
|
|
2269
|
-
}), [s("span",
|
|
2272
|
+
}), [s("span", $r, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, P(e.label), 3), e.badge ? (E(), o("span", ei, P(e.badge.toUpperCase()), 1)) : a("v-if", !0)])], 16, Qr))], 64))), 128))])]),
|
|
2270
2273
|
_: 2
|
|
2271
2274
|
}, 1032, [
|
|
2272
2275
|
"modelValue",
|
|
@@ -2274,9 +2277,9 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2274
2277
|
"default-open",
|
|
2275
2278
|
"summary-attrs"
|
|
2276
2279
|
])]),
|
|
2277
|
-
content:
|
|
2280
|
+
content: R(() => [u(dr, {
|
|
2278
2281
|
items: e.children,
|
|
2279
|
-
disabled: !
|
|
2282
|
+
disabled: !V.value
|
|
2280
2283
|
}, null, 8, ["items", "disabled"])]),
|
|
2281
2284
|
_: 2
|
|
2282
2285
|
}, 1032, [
|
|
@@ -2284,12 +2287,12 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2284
2287
|
"teleport-location",
|
|
2285
2288
|
"disabled"
|
|
2286
2289
|
])], 2112))]))), 128))])) : a("v-if", !0),
|
|
2287
|
-
s("div",
|
|
2290
|
+
s("div", ti, [I(g) ? (E(), i(er, {
|
|
2288
2291
|
key: 0,
|
|
2289
|
-
modelValue:
|
|
2290
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2291
|
-
position:
|
|
2292
|
-
"show-on-hover":
|
|
2292
|
+
modelValue: H.value,
|
|
2293
|
+
"onUpdate:modelValue": r[1] ||= (e) => H.value = e,
|
|
2294
|
+
position: V.value ? "right-bottom" : "top-left",
|
|
2295
|
+
"show-on-hover": V.value,
|
|
2293
2296
|
"enable-group-sync": "",
|
|
2294
2297
|
"enable-click-toggle": "",
|
|
2295
2298
|
"use-teleport": !!T.value,
|
|
@@ -2297,17 +2300,17 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2297
2300
|
offset: 4,
|
|
2298
2301
|
"css-custom-properties": { width: "100%" }
|
|
2299
2302
|
}, {
|
|
2300
|
-
trigger:
|
|
2303
|
+
trigger: R(() => [s("button", {
|
|
2301
2304
|
type: "button",
|
|
2302
2305
|
class: "pv-nav-list-item",
|
|
2303
2306
|
"aria-label": "Help",
|
|
2304
|
-
"aria-expanded":
|
|
2307
|
+
"aria-expanded": H.value,
|
|
2305
2308
|
title: "Help"
|
|
2306
|
-
}, [u(
|
|
2309
|
+
}, [u(W, {
|
|
2307
2310
|
name: "help-circle",
|
|
2308
2311
|
class: "pv-icon-20 pv-nav-icon"
|
|
2309
|
-
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8,
|
|
2310
|
-
content:
|
|
2312
|
+
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, ni)]),
|
|
2313
|
+
content: R(() => [s("div", ri, [j(n.$slots, "sidebar-help-content")])]),
|
|
2311
2314
|
_: 3
|
|
2312
2315
|
}, 8, [
|
|
2313
2316
|
"modelValue",
|
|
@@ -2315,29 +2318,29 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2315
2318
|
"show-on-hover",
|
|
2316
2319
|
"use-teleport",
|
|
2317
2320
|
"teleport-location"
|
|
2318
|
-
])) : a("v-if", !0),
|
|
2321
|
+
])) : a("v-if", !0), I(b) && e.profile ? (E(), i(er, {
|
|
2319
2322
|
key: 1,
|
|
2320
|
-
modelValue:
|
|
2321
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2322
|
-
position:
|
|
2323
|
+
modelValue: ye.value,
|
|
2324
|
+
"onUpdate:modelValue": r[2] ||= (e) => ye.value = e,
|
|
2325
|
+
position: V.value ? "right-bottom" : "top-left",
|
|
2323
2326
|
"use-teleport": !!T.value,
|
|
2324
2327
|
"teleport-location": T.value ?? "body",
|
|
2325
2328
|
offset: 4,
|
|
2326
2329
|
"css-custom-properties": { width: "100%" }
|
|
2327
2330
|
}, {
|
|
2328
|
-
trigger:
|
|
2331
|
+
trigger: R(() => [s("button", {
|
|
2329
2332
|
type: "button",
|
|
2330
2333
|
class: "pv-nav-list-item",
|
|
2331
2334
|
"data-testid": "pv-sidebar-profile-trigger",
|
|
2332
2335
|
"aria-label": e.profile.name,
|
|
2333
|
-
"aria-expanded":
|
|
2336
|
+
"aria-expanded": ye.value,
|
|
2334
2337
|
title: e.profile.name
|
|
2335
|
-
}, [s("span",
|
|
2338
|
+
}, [s("span", ai, [e.profile.avatarUrl ? (E(), o("img", {
|
|
2336
2339
|
key: 0,
|
|
2337
2340
|
src: e.profile.avatarUrl,
|
|
2338
2341
|
alt: ""
|
|
2339
|
-
}, null, 8,
|
|
2340
|
-
content:
|
|
2342
|
+
}, null, 8, oi)) : (E(), o("span", si, P(e.profile.name.slice(0, 1)), 1))]), s("span", ci, P(e.profile.name), 1)], 8, ii)]),
|
|
2343
|
+
content: R(() => [s("div", li, [j(n.$slots, "sidebar-profile-content")])]),
|
|
2341
2344
|
_: 3
|
|
2342
2345
|
}, 8, [
|
|
2343
2346
|
"modelValue",
|
|
@@ -2346,7 +2349,7 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2346
2349
|
"teleport-location"
|
|
2347
2350
|
])) : a("v-if", !0)])
|
|
2348
2351
|
])], 512),
|
|
2349
|
-
s("div",
|
|
2352
|
+
s("div", ui, [j(n.$slots, "default")]),
|
|
2350
2353
|
s("div", {
|
|
2351
2354
|
ref_key: "popoverTeleportTarget",
|
|
2352
2355
|
ref: T,
|
|
@@ -2354,66 +2357,66 @@ var Jn = /* @__PURE__ */ new Set(), Yn = (e, t) => {
|
|
|
2354
2357
|
}, null, 512)
|
|
2355
2358
|
], 38));
|
|
2356
2359
|
}
|
|
2357
|
-
}),
|
|
2360
|
+
}), pi = Object.defineProperty, mi = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, _i = (e, t, n) => t in e ? pi(e, t, {
|
|
2358
2361
|
enumerable: !0,
|
|
2359
2362
|
configurable: !0,
|
|
2360
2363
|
writable: !0,
|
|
2361
2364
|
value: n
|
|
2362
|
-
}) : e[t] = n,
|
|
2363
|
-
for (var n in t ||= {})
|
|
2364
|
-
if (
|
|
2365
|
+
}) : e[t] = n, vi = (e, t) => {
|
|
2366
|
+
for (var n in t ||= {}) hi.call(t, n) && _i(e, n, t[n]);
|
|
2367
|
+
if (mi) for (var n of mi(t)) gi.call(t, n) && _i(e, n, t[n]);
|
|
2365
2368
|
return e;
|
|
2366
2369
|
};
|
|
2367
|
-
function
|
|
2370
|
+
function yi(e) {
|
|
2368
2371
|
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
2369
2372
|
}
|
|
2370
|
-
function
|
|
2373
|
+
function bi(e) {
|
|
2371
2374
|
return typeof e == "function" && "call" in e && "apply" in e;
|
|
2372
2375
|
}
|
|
2373
|
-
function
|
|
2374
|
-
return !
|
|
2376
|
+
function Y(e) {
|
|
2377
|
+
return !yi(e);
|
|
2375
2378
|
}
|
|
2376
|
-
function
|
|
2379
|
+
function xi(e, t = !0) {
|
|
2377
2380
|
return e instanceof Object && e.constructor === Object && (t || Object.keys(e).length !== 0);
|
|
2378
2381
|
}
|
|
2379
|
-
function
|
|
2380
|
-
let n =
|
|
2382
|
+
function Si(e = {}, t = {}) {
|
|
2383
|
+
let n = vi({}, e);
|
|
2381
2384
|
return Object.keys(t).forEach((r) => {
|
|
2382
2385
|
let i = r;
|
|
2383
|
-
|
|
2386
|
+
xi(t[i]) && i in e && xi(e[i]) ? n[i] = Si(e[i], t[i]) : n[i] = t[i];
|
|
2384
2387
|
}), n;
|
|
2385
2388
|
}
|
|
2386
|
-
function
|
|
2387
|
-
return e.reduce((e, t, n) => n === 0 ? t :
|
|
2389
|
+
function Ci(...e) {
|
|
2390
|
+
return e.reduce((e, t, n) => n === 0 ? t : Si(e, t), {});
|
|
2388
2391
|
}
|
|
2389
|
-
function
|
|
2390
|
-
return
|
|
2392
|
+
function wi(e, ...t) {
|
|
2393
|
+
return bi(e) ? e(...t) : e;
|
|
2391
2394
|
}
|
|
2392
|
-
function
|
|
2395
|
+
function Ti(e, t = !0) {
|
|
2393
2396
|
return typeof e == "string" && (t || e !== "");
|
|
2394
2397
|
}
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2398
|
+
function Ei(e) {
|
|
2399
|
+
return Y(e) && !isNaN(e);
|
|
2397
2400
|
}
|
|
2398
|
-
function
|
|
2401
|
+
function Di(e, t) {
|
|
2399
2402
|
if (t) {
|
|
2400
2403
|
let n = t.test(e);
|
|
2401
2404
|
return t.lastIndex = 0, n;
|
|
2402
2405
|
}
|
|
2403
2406
|
return !1;
|
|
2404
2407
|
}
|
|
2405
|
-
function
|
|
2406
|
-
return
|
|
2408
|
+
function Oi(...e) {
|
|
2409
|
+
return Ci(...e);
|
|
2407
2410
|
}
|
|
2408
|
-
function
|
|
2411
|
+
function ki(e) {
|
|
2409
2412
|
return e && e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":").trim();
|
|
2410
2413
|
}
|
|
2411
|
-
function
|
|
2412
|
-
return
|
|
2414
|
+
function Ai(e) {
|
|
2415
|
+
return Ti(e) ? e.replace(/(_)/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase() : e;
|
|
2413
2416
|
}
|
|
2414
2417
|
//#endregion
|
|
2415
2418
|
//#region ../node_modules/.pnpm/@primevue+core@4.5.4_vue@3.5.32_typescript@5.9.3_/node_modules/@primevue/core/api/index.mjs
|
|
2416
|
-
var
|
|
2419
|
+
var X = {
|
|
2417
2420
|
STARTS_WITH: "startsWith",
|
|
2418
2421
|
CONTAINS: "contains",
|
|
2419
2422
|
NOT_CONTAINS: "notContains",
|
|
@@ -2433,7 +2436,7 @@ var Z = {
|
|
|
2433
2436
|
};
|
|
2434
2437
|
//#endregion
|
|
2435
2438
|
//#region ../node_modules/.pnpm/@primeuix+utils@0.6.4/node_modules/@primeuix/utils/dist/eventbus/index.mjs
|
|
2436
|
-
function
|
|
2439
|
+
function ji() {
|
|
2437
2440
|
let e = /* @__PURE__ */ new Map();
|
|
2438
2441
|
return {
|
|
2439
2442
|
on(t, n) {
|
|
@@ -2457,21 +2460,21 @@ function Ai() {
|
|
|
2457
2460
|
}
|
|
2458
2461
|
//#endregion
|
|
2459
2462
|
//#region ../node_modules/.pnpm/@primeuix+utils@0.6.4/node_modules/@primeuix/utils/dist/dom/index.mjs
|
|
2460
|
-
function
|
|
2463
|
+
function Mi(e) {
|
|
2461
2464
|
if (e) {
|
|
2462
2465
|
let t = e.parentNode;
|
|
2463
2466
|
return t && t instanceof ShadowRoot && t.host && (t = t.host), t;
|
|
2464
2467
|
}
|
|
2465
2468
|
return null;
|
|
2466
2469
|
}
|
|
2467
|
-
function Mi(e) {
|
|
2468
|
-
return !!(e != null && e.nodeName && ji(e));
|
|
2469
|
-
}
|
|
2470
2470
|
function Ni(e) {
|
|
2471
|
+
return !!(e != null && e.nodeName && Mi(e));
|
|
2472
|
+
}
|
|
2473
|
+
function Pi(e) {
|
|
2471
2474
|
return typeof Element < "u" ? e instanceof Element : typeof e == "object" && !!e && e.nodeType === 1 && typeof e.nodeName == "string";
|
|
2472
2475
|
}
|
|
2473
|
-
function
|
|
2474
|
-
if (
|
|
2476
|
+
function Fi(e, t = {}) {
|
|
2477
|
+
if (Pi(e)) {
|
|
2475
2478
|
let n = (t, r) => {
|
|
2476
2479
|
var i;
|
|
2477
2480
|
let a = (i = e?.$attrs) != null && i[t] ? [e?.$attrs?.[t]] : [];
|
|
@@ -2490,70 +2493,70 @@ function Pi(e, t = {}) {
|
|
|
2490
2493
|
Object.entries(t).forEach(([t, r]) => {
|
|
2491
2494
|
if (r != null) {
|
|
2492
2495
|
let i = t.match(/^on(.+)/);
|
|
2493
|
-
i ? e.addEventListener(i[1].toLowerCase(), r) : t === "p-bind" || t === "pBind" ?
|
|
2496
|
+
i ? e.addEventListener(i[1].toLowerCase(), r) : t === "p-bind" || t === "pBind" ? Fi(e, r) : (r = t === "class" ? [...new Set(n("class", r))].join(" ").trim() : t === "style" ? n("style", r).join(";").trim() : r, (e.$attrs = e.$attrs || {}) && (e.$attrs[t] = r), e.setAttribute(t, r));
|
|
2494
2497
|
}
|
|
2495
2498
|
});
|
|
2496
2499
|
}
|
|
2497
2500
|
}
|
|
2498
|
-
function
|
|
2501
|
+
function Ii() {
|
|
2499
2502
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2500
2503
|
}
|
|
2501
|
-
function
|
|
2502
|
-
|
|
2504
|
+
function Li(e, t = "", n) {
|
|
2505
|
+
Pi(e) && n != null && e.setAttribute(t, n);
|
|
2503
2506
|
}
|
|
2504
2507
|
//#endregion
|
|
2505
2508
|
//#region ../node_modules/.pnpm/@primeuix+styled@0.7.4/node_modules/@primeuix/styled/dist/index.mjs
|
|
2506
|
-
var
|
|
2509
|
+
var Ri = Object.defineProperty, zi = Object.defineProperties, Bi = Object.getOwnPropertyDescriptors, Vi = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Wi = (e, t, n) => t in e ? Ri(e, t, {
|
|
2507
2510
|
enumerable: !0,
|
|
2508
2511
|
configurable: !0,
|
|
2509
2512
|
writable: !0,
|
|
2510
2513
|
value: n
|
|
2511
|
-
}) : e[t] = n,
|
|
2512
|
-
for (var n in t ||= {})
|
|
2513
|
-
if (
|
|
2514
|
+
}) : e[t] = n, Z = (e, t) => {
|
|
2515
|
+
for (var n in t ||= {}) Hi.call(t, n) && Wi(e, n, t[n]);
|
|
2516
|
+
if (Vi) for (var n of Vi(t)) Ui.call(t, n) && Wi(e, n, t[n]);
|
|
2514
2517
|
return e;
|
|
2515
|
-
},
|
|
2518
|
+
}, Gi = (e, t) => zi(e, Bi(t)), Ki = (e, t) => {
|
|
2516
2519
|
var n = {};
|
|
2517
|
-
for (var r in e)
|
|
2518
|
-
if (e != null &&
|
|
2520
|
+
for (var r in e) Hi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2521
|
+
if (e != null && Vi) for (var r of Vi(e)) t.indexOf(r) < 0 && Ui.call(e, r) && (n[r] = e[r]);
|
|
2519
2522
|
return n;
|
|
2520
|
-
},
|
|
2521
|
-
function Xi(e) {
|
|
2522
|
-
return wi(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
2523
|
-
}
|
|
2523
|
+
}, qi = ji(), Ji = /{([^}]*)}/g, Yi = /(\d+\s+[\+\-\*\/]\s+\d+)/g, Xi = /var\([^)]+\)/g;
|
|
2524
2524
|
function Zi(e) {
|
|
2525
|
-
return
|
|
2525
|
+
return Ti(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
2526
2526
|
}
|
|
2527
2527
|
function Qi(e) {
|
|
2528
|
-
return e.
|
|
2528
|
+
return xi(e) && e.hasOwnProperty("$value") && e.hasOwnProperty("$type") ? e.$value : e;
|
|
2529
2529
|
}
|
|
2530
|
-
function $i(e
|
|
2531
|
-
return
|
|
2530
|
+
function $i(e) {
|
|
2531
|
+
return e.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
2532
2532
|
}
|
|
2533
2533
|
function ea(e = "", t = "") {
|
|
2534
|
-
return
|
|
2534
|
+
return $i(`${Ti(e, !1) && Ti(t, !1) ? `${e}-` : e}${t}`);
|
|
2535
2535
|
}
|
|
2536
|
-
function ta(e = "") {
|
|
2536
|
+
function ta(e = "", t = "") {
|
|
2537
|
+
return `--${ea(e, t)}`;
|
|
2538
|
+
}
|
|
2539
|
+
function na(e = "") {
|
|
2537
2540
|
return ((e.match(/{/g) || []).length + (e.match(/}/g) || []).length) % 2 != 0;
|
|
2538
2541
|
}
|
|
2539
|
-
function
|
|
2540
|
-
if (
|
|
2542
|
+
function ra(e, t = "", n = "", r = [], i) {
|
|
2543
|
+
if (Ti(e)) {
|
|
2541
2544
|
let t = e.trim();
|
|
2542
|
-
if (
|
|
2543
|
-
if (
|
|
2544
|
-
let e = t.replaceAll(
|
|
2545
|
-
return
|
|
2545
|
+
if (na(t)) return;
|
|
2546
|
+
if (Di(t, Ji)) {
|
|
2547
|
+
let e = t.replaceAll(Ji, (e) => `var(${ta(n, Ai(e.replace(/{|}/g, "").split(".").filter((e) => !r.some((t) => Di(e, t))).join("-")))}${Y(i) ? `, ${i}` : ""})`);
|
|
2548
|
+
return Di(e.replace(Xi, "0"), Yi) ? `calc(${e})` : e;
|
|
2546
2549
|
}
|
|
2547
2550
|
return t;
|
|
2548
|
-
} else if (
|
|
2551
|
+
} else if (Ei(e)) return e;
|
|
2549
2552
|
}
|
|
2550
|
-
function
|
|
2551
|
-
|
|
2553
|
+
function ia(e, t, n) {
|
|
2554
|
+
Ti(t, !1) && e.push(`${t}:${n};`);
|
|
2552
2555
|
}
|
|
2553
|
-
function
|
|
2556
|
+
function aa(e, t) {
|
|
2554
2557
|
return e ? `${e}{${t}}` : "";
|
|
2555
2558
|
}
|
|
2556
|
-
function
|
|
2559
|
+
function oa(e, t) {
|
|
2557
2560
|
if (e.indexOf("dt(") === -1) return e;
|
|
2558
2561
|
function n(e, t) {
|
|
2559
2562
|
let n = [], i = 0, a = "", o = null, s = 0;
|
|
@@ -2561,7 +2564,7 @@ function aa(e, t) {
|
|
|
2561
2564
|
let c = e[i];
|
|
2562
2565
|
if ((c === "\"" || c === "'" || c === "`") && e[i - 1] !== "\\" && (o = o === c ? null : c), !o && (c === "(" && s++, c === ")" && s--, (c === "," || i === e.length) && s === 0)) {
|
|
2563
2566
|
let e = a.trim();
|
|
2564
|
-
e.startsWith("dt(") ? n.push(
|
|
2567
|
+
e.startsWith("dt(") ? n.push(oa(e, t)) : n.push(r(e)), a = "", i++;
|
|
2565
2568
|
continue;
|
|
2566
2569
|
}
|
|
2567
2570
|
c !== void 0 && (a += c), i++;
|
|
@@ -2587,17 +2590,17 @@ function aa(e, t) {
|
|
|
2587
2590
|
}
|
|
2588
2591
|
return e;
|
|
2589
2592
|
}
|
|
2590
|
-
var
|
|
2593
|
+
var sa = (...e) => ca($.getTheme(), ...e), ca = (e = {}, t, n, r) => {
|
|
2591
2594
|
if (t) {
|
|
2592
|
-
let { variable: i, options: a } = $.defaults || {}, { prefix: o, transform: s } = e?.options || a || {}, c =
|
|
2593
|
-
return r === "value" ||
|
|
2595
|
+
let { variable: i, options: a } = $.defaults || {}, { prefix: o, transform: s } = e?.options || a || {}, c = Di(t, Ji) ? t : `{${t}}`;
|
|
2596
|
+
return r === "value" || yi(r) && s === "strict" ? $.getTokenValue(t) : ra(c, void 0, o, [i.excludedKeyRegex], n);
|
|
2594
2597
|
}
|
|
2595
2598
|
return "";
|
|
2596
2599
|
};
|
|
2597
|
-
function
|
|
2598
|
-
return e instanceof Array ?
|
|
2600
|
+
function la(e, ...t) {
|
|
2601
|
+
return e instanceof Array ? oa(e.reduce((e, n, r) => e + n + (wi(t[r], { dt: sa }) ?? ""), ""), sa) : wi(e, { dt: sa });
|
|
2599
2602
|
}
|
|
2600
|
-
function
|
|
2603
|
+
function ua(e, t = {}) {
|
|
2601
2604
|
let n = $.defaults.variable, { prefix: r = n.prefix, selector: i = n.selector, excludedKeyRegex: a = n.excludedKeyRegex } = t, o = [], s = [], c = [{
|
|
2602
2605
|
node: e,
|
|
2603
2606
|
path: r
|
|
@@ -2605,13 +2608,13 @@ function la(e, t = {}) {
|
|
|
2605
2608
|
for (; c.length;) {
|
|
2606
2609
|
let { node: e, path: t } = c.pop();
|
|
2607
2610
|
for (let n in e) {
|
|
2608
|
-
let i = e[n], l =
|
|
2609
|
-
if (
|
|
2611
|
+
let i = e[n], l = Qi(i), u = Di(n, a) ? ea(t) : ea(t, Ai(n));
|
|
2612
|
+
if (xi(l)) c.push({
|
|
2610
2613
|
node: l,
|
|
2611
2614
|
path: u
|
|
2612
2615
|
});
|
|
2613
2616
|
else {
|
|
2614
|
-
|
|
2617
|
+
ia(s, ta(u), ra(l, u, r, [a]));
|
|
2615
2618
|
let e = u;
|
|
2616
2619
|
r && e.startsWith(r + "-") && (e = e.slice(r.length + 1)), o.push(e.replace(/-/g, "."));
|
|
2617
2620
|
}
|
|
@@ -2622,10 +2625,10 @@ function la(e, t = {}) {
|
|
|
2622
2625
|
value: s,
|
|
2623
2626
|
tokens: o,
|
|
2624
2627
|
declarations: l,
|
|
2625
|
-
css:
|
|
2628
|
+
css: aa(i, l)
|
|
2626
2629
|
};
|
|
2627
2630
|
}
|
|
2628
|
-
var
|
|
2631
|
+
var Q = {
|
|
2629
2632
|
regex: {
|
|
2630
2633
|
rules: {
|
|
2631
2634
|
class: {
|
|
@@ -2682,21 +2685,21 @@ var ua = {
|
|
|
2682
2685
|
}
|
|
2683
2686
|
},
|
|
2684
2687
|
_toVariables(e, t) {
|
|
2685
|
-
return
|
|
2688
|
+
return ua(e, { prefix: t?.prefix });
|
|
2686
2689
|
},
|
|
2687
2690
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
2688
2691
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
2689
|
-
if (
|
|
2690
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ =
|
|
2691
|
-
s = this.transformCSS(e,
|
|
2692
|
-
...
|
|
2693
|
-
...F,
|
|
2694
|
-
...ae
|
|
2695
|
-
])], d = `${this.transformCSS(e, `${oe}${se}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ce}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
2692
|
+
if (Y(a) && o.transform !== "strict") {
|
|
2693
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Ki(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Ki(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Ki(x, ["dark"]), w = y || {}, { dark: T } = w, ee = Ki(w, ["dark"]), E = Y(t) ? this._toVariables({ primitive: t }, o) : {}, D = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Y(C) ? this._toVariables({ light: C }, o) : {}, k = Y(S) ? this._toVariables({ dark: S }, o) : {}, A = Y(b) ? this._toVariables({ semantic: b }, o) : {}, j = Y(ee) ? this._toVariables({ light: ee }, o) : {}, M = Y(T) ? this._toVariables({ dark: T }, o) : {}, [te, N] = [E.declarations ?? "", E.tokens], [P, ne] = [D.declarations ?? "", D.tokens || []], [F, I] = [O.declarations ?? "", O.tokens || []], [re, ie] = [k.declarations ?? "", k.tokens || []], [ae, L] = [A.declarations ?? "", A.tokens || []], [oe, R] = [j.declarations ?? "", j.tokens || []], [se, ce] = [M.declarations ?? "", M.tokens || []];
|
|
2694
|
+
s = this.transformCSS(e, te, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${P}${F}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${re}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
2695
|
+
...ne,
|
|
2696
2696
|
...I,
|
|
2697
|
+
...ie
|
|
2698
|
+
])], d = `${this.transformCSS(e, `${ae}${oe}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
2697
2699
|
...L,
|
|
2698
|
-
...
|
|
2699
|
-
|
|
2700
|
+
...R,
|
|
2701
|
+
...ce
|
|
2702
|
+
])], p = wi(a.css, { dt: sa });
|
|
2700
2703
|
}
|
|
2701
2704
|
return {
|
|
2702
2705
|
primitive: {
|
|
@@ -2716,17 +2719,17 @@ var ua = {
|
|
|
2716
2719
|
},
|
|
2717
2720
|
getPreset({ name: e = "", preset: t = {}, options: n, params: r, set: i, defaults: a, selector: o }) {
|
|
2718
2721
|
let s, c, l;
|
|
2719
|
-
if (
|
|
2720
|
-
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m =
|
|
2722
|
+
if (Y(t) && n.transform !== "strict") {
|
|
2723
|
+
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m = Ki(u, [
|
|
2721
2724
|
"colorScheme",
|
|
2722
2725
|
"extend",
|
|
2723
2726
|
"css"
|
|
2724
|
-
]), h = f || {}, { colorScheme: g } = h, _ =
|
|
2727
|
+
]), h = f || {}, { colorScheme: g } = h, _ = Ki(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Ki(v, ["dark"]), x = g || {}, { dark: S } = x, C = Ki(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, ee = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [E, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [ee.declarations ?? "", ee.tokens || []];
|
|
2725
2728
|
s = `${this.transformCSS(r, `${E}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
2726
2729
|
...D,
|
|
2727
2730
|
...k,
|
|
2728
2731
|
...j
|
|
2729
|
-
])], l =
|
|
2732
|
+
])], l = wi(p, { dt: sa });
|
|
2730
2733
|
}
|
|
2731
2734
|
return {
|
|
2732
2735
|
css: s,
|
|
@@ -2764,7 +2767,7 @@ var ua = {
|
|
|
2764
2767
|
},
|
|
2765
2768
|
getLayerOrder(e, t = {}, n, r) {
|
|
2766
2769
|
let { cssLayer: i } = t;
|
|
2767
|
-
return i ? `@layer ${
|
|
2770
|
+
return i ? `@layer ${wi(i.order || i.name || "primeui", n)}` : "";
|
|
2768
2771
|
},
|
|
2769
2772
|
getCommonStyleSheet({ name: e = "", theme: t = {}, params: n, props: r = {}, set: i, defaults: a }) {
|
|
2770
2773
|
let o = this.getCommon({
|
|
@@ -2775,8 +2778,8 @@ var ua = {
|
|
|
2775
2778
|
defaults: a
|
|
2776
2779
|
}), s = Object.entries(r).reduce((e, [t, n]) => e.push(`${t}="${n}"`) && e, []).join(" ");
|
|
2777
2780
|
return Object.entries(o || {}).reduce((e, [t, n]) => {
|
|
2778
|
-
if (
|
|
2779
|
-
let r =
|
|
2781
|
+
if (xi(n) && Object.hasOwn(n, "css")) {
|
|
2782
|
+
let r = ki(n.css), i = `${t}-variables`;
|
|
2780
2783
|
e.push(`<style type="text/css" data-primevue-style-id="${i}" ${s}>${r}</style>`);
|
|
2781
2784
|
}
|
|
2782
2785
|
return e;
|
|
@@ -2790,7 +2793,7 @@ var ua = {
|
|
|
2790
2793
|
set: i,
|
|
2791
2794
|
defaults: a
|
|
2792
2795
|
}, s = (e.includes("-directive") ? this.getPresetD(o) : this.getPresetC(o))?.css, c = Object.entries(r).reduce((e, [t, n]) => e.push(`${t}="${n}"`) && e, []).join(" ");
|
|
2793
|
-
return s ? `<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${
|
|
2796
|
+
return s ? `<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${ki(s)}</style>` : "";
|
|
2794
2797
|
},
|
|
2795
2798
|
createTokens(e = {}, t, n = "", r = "", i = {}) {
|
|
2796
2799
|
let a = function(e, t = {}, n = []) {
|
|
@@ -2802,16 +2805,16 @@ var ua = {
|
|
|
2802
2805
|
};
|
|
2803
2806
|
n.push(this.path), t.name = this.path, t.binding ||= {};
|
|
2804
2807
|
let r = this.value;
|
|
2805
|
-
if (typeof this.value == "string" &&
|
|
2806
|
-
let i = this.value.trim().replace(
|
|
2808
|
+
if (typeof this.value == "string" && Ji.test(this.value)) {
|
|
2809
|
+
let i = this.value.trim().replace(Ji, (r) => {
|
|
2807
2810
|
let i = r.slice(1, -1), a = this.tokens[i];
|
|
2808
2811
|
if (!a) return console.warn(`Token not found for path: ${i}`), "__UNRESOLVED__";
|
|
2809
2812
|
let o = a.computed(e, t, n);
|
|
2810
2813
|
return Array.isArray(o) && o.length === 2 ? `light-dark(${o[0].value},${o[1].value})` : o?.value ?? "__UNRESOLVED__";
|
|
2811
2814
|
});
|
|
2812
|
-
r =
|
|
2815
|
+
r = Yi.test(i.replace(Xi, "0")) ? `calc(${i})` : i;
|
|
2813
2816
|
}
|
|
2814
|
-
return
|
|
2817
|
+
return yi(t.binding) && delete t.binding, n.pop(), {
|
|
2815
2818
|
colorScheme: e,
|
|
2816
2819
|
path: this.path,
|
|
2817
2820
|
paths: t,
|
|
@@ -2819,8 +2822,8 @@ var ua = {
|
|
|
2819
2822
|
};
|
|
2820
2823
|
}, o = (e, n, r) => {
|
|
2821
2824
|
Object.entries(e).forEach(([e, s]) => {
|
|
2822
|
-
let c =
|
|
2823
|
-
|
|
2825
|
+
let c = Di(e, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Zi(e)}` : Zi(e), l = r ? `${r}.${e}` : e;
|
|
2826
|
+
xi(s) ? o(s, c, l) : (i[c] || (i[c] = {
|
|
2824
2827
|
paths: [],
|
|
2825
2828
|
computed: (e, t = {}, n = []) => {
|
|
2826
2829
|
if (i[c].paths.length === 1) return i[c].paths[0].computed(i[c].paths[0].scheme, t.binding, n);
|
|
@@ -2842,31 +2845,31 @@ var ua = {
|
|
|
2842
2845
|
return o(e, n, r), i;
|
|
2843
2846
|
},
|
|
2844
2847
|
getTokenValue(e, t, n) {
|
|
2845
|
-
let r = ((e) => e.split(".").filter((e) => !
|
|
2848
|
+
let r = ((e) => e.split(".").filter((e) => !Di(e.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), i = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, a = [e[r]?.computed(i)].flat().filter((e) => e);
|
|
2846
2849
|
return a.length === 1 ? a[0].value : a.reduce((e = {}, t) => {
|
|
2847
2850
|
let n = t, { colorScheme: r } = n;
|
|
2848
|
-
return e[r] =
|
|
2851
|
+
return e[r] = Ki(n, ["colorScheme"]), e;
|
|
2849
2852
|
}, void 0);
|
|
2850
2853
|
},
|
|
2851
2854
|
getSelectorRule(e, t, n, r) {
|
|
2852
|
-
return n === "class" || n === "attr" ?
|
|
2855
|
+
return n === "class" || n === "attr" ? aa(Y(t) ? `${e}${t},${e} ${t}` : e, r) : aa(e, aa(t ?? ":root,:host", r));
|
|
2853
2856
|
},
|
|
2854
2857
|
transformCSS(e, t, n, r, i = {}, a, o, s) {
|
|
2855
|
-
if (
|
|
2858
|
+
if (Y(t)) {
|
|
2856
2859
|
let { cssLayer: c } = i;
|
|
2857
2860
|
if (r !== "style") {
|
|
2858
2861
|
let e = this.getColorSchemeOption(i, o);
|
|
2859
|
-
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (
|
|
2862
|
+
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (Y(r) && (e += r.includes("[CSS]") ? r.replace("[CSS]", t) : this.getSelectorRule(r, s, n, t)), e), "") : aa(s ?? ":root,:host", t);
|
|
2860
2863
|
}
|
|
2861
2864
|
if (c) {
|
|
2862
2865
|
let n = {
|
|
2863
2866
|
name: "primeui",
|
|
2864
2867
|
order: "primeui"
|
|
2865
2868
|
};
|
|
2866
|
-
|
|
2869
|
+
xi(c) && (n.name = wi(c.name, {
|
|
2867
2870
|
name: e,
|
|
2868
2871
|
type: r
|
|
2869
|
-
})),
|
|
2872
|
+
})), Y(n.name) && (t = aa(`@layer ${n.name}`, t), a?.layerNames(n.name));
|
|
2870
2873
|
}
|
|
2871
2874
|
return t;
|
|
2872
2875
|
}
|
|
@@ -2892,7 +2895,7 @@ var ua = {
|
|
|
2892
2895
|
_tokens: {},
|
|
2893
2896
|
update(e = {}) {
|
|
2894
2897
|
let { theme: t } = e;
|
|
2895
|
-
t && (this._theme =
|
|
2898
|
+
t && (this._theme = Gi(Z({}, t), { options: Z(Z({}, this.defaults.options), t.options) }), this._tokens = Q.createTokens(this.preset, this.defaults), this.clearLoadedStyleNames());
|
|
2896
2899
|
},
|
|
2897
2900
|
get theme() {
|
|
2898
2901
|
return this._theme;
|
|
@@ -2910,19 +2913,19 @@ var ua = {
|
|
|
2910
2913
|
return this.theme;
|
|
2911
2914
|
},
|
|
2912
2915
|
setTheme(e) {
|
|
2913
|
-
this.update({ theme: e }),
|
|
2916
|
+
this.update({ theme: e }), qi.emit("theme:change", e);
|
|
2914
2917
|
},
|
|
2915
2918
|
getPreset() {
|
|
2916
2919
|
return this.preset;
|
|
2917
2920
|
},
|
|
2918
2921
|
setPreset(e) {
|
|
2919
|
-
this._theme =
|
|
2922
|
+
this._theme = Gi(Z({}, this.theme), { preset: e }), this._tokens = Q.createTokens(e, this.defaults), this.clearLoadedStyleNames(), qi.emit("preset:change", e), qi.emit("theme:change", this.theme);
|
|
2920
2923
|
},
|
|
2921
2924
|
getOptions() {
|
|
2922
2925
|
return this.options;
|
|
2923
2926
|
},
|
|
2924
2927
|
setOptions(e) {
|
|
2925
|
-
this._theme =
|
|
2928
|
+
this._theme = Gi(Z({}, this.theme), { options: e }), this.clearLoadedStyleNames(), qi.emit("options:change", e), qi.emit("theme:change", this.theme);
|
|
2926
2929
|
},
|
|
2927
2930
|
getLayerNames() {
|
|
2928
2931
|
return [...this._layerNames];
|
|
@@ -2946,10 +2949,10 @@ var ua = {
|
|
|
2946
2949
|
this._loadedStyleNames.clear();
|
|
2947
2950
|
},
|
|
2948
2951
|
getTokenValue(e) {
|
|
2949
|
-
return
|
|
2952
|
+
return Q.getTokenValue(this.tokens, e, this.defaults);
|
|
2950
2953
|
},
|
|
2951
2954
|
getCommon(e = "", t) {
|
|
2952
|
-
return
|
|
2955
|
+
return Q.getCommon({
|
|
2953
2956
|
name: e,
|
|
2954
2957
|
theme: this.theme,
|
|
2955
2958
|
params: t,
|
|
@@ -2965,7 +2968,7 @@ var ua = {
|
|
|
2965
2968
|
defaults: this.defaults,
|
|
2966
2969
|
set: { layerNames: this.setLayerNames.bind(this) }
|
|
2967
2970
|
};
|
|
2968
|
-
return
|
|
2971
|
+
return Q.getPresetC(n);
|
|
2969
2972
|
},
|
|
2970
2973
|
getDirective(e = "", t) {
|
|
2971
2974
|
let n = {
|
|
@@ -2975,7 +2978,7 @@ var ua = {
|
|
|
2975
2978
|
defaults: this.defaults,
|
|
2976
2979
|
set: { layerNames: this.setLayerNames.bind(this) }
|
|
2977
2980
|
};
|
|
2978
|
-
return
|
|
2981
|
+
return Q.getPresetD(n);
|
|
2979
2982
|
},
|
|
2980
2983
|
getCustomPreset(e = "", t, n, r) {
|
|
2981
2984
|
let i = {
|
|
@@ -2987,16 +2990,16 @@ var ua = {
|
|
|
2987
2990
|
defaults: this.defaults,
|
|
2988
2991
|
set: { layerNames: this.setLayerNames.bind(this) }
|
|
2989
2992
|
};
|
|
2990
|
-
return
|
|
2993
|
+
return Q.getPreset(i);
|
|
2991
2994
|
},
|
|
2992
2995
|
getLayerOrderCSS(e = "") {
|
|
2993
|
-
return
|
|
2996
|
+
return Q.getLayerOrder(e, this.options, { names: this.getLayerNames() }, this.defaults);
|
|
2994
2997
|
},
|
|
2995
2998
|
transformCSS(e = "", t, n = "style", r) {
|
|
2996
|
-
return
|
|
2999
|
+
return Q.transformCSS(e, t, r, n, this.options, { layerNames: this.setLayerNames.bind(this) }, this.defaults);
|
|
2997
3000
|
},
|
|
2998
3001
|
getCommonStyleSheet(e = "", t, n = {}) {
|
|
2999
|
-
return
|
|
3002
|
+
return Q.getCommonStyleSheet({
|
|
3000
3003
|
name: e,
|
|
3001
3004
|
theme: this.theme,
|
|
3002
3005
|
params: t,
|
|
@@ -3006,7 +3009,7 @@ var ua = {
|
|
|
3006
3009
|
});
|
|
3007
3010
|
},
|
|
3008
3011
|
getStyleSheet(e, t, n = {}) {
|
|
3009
|
-
return
|
|
3012
|
+
return Q.getStyleSheet({
|
|
3010
3013
|
name: e,
|
|
3011
3014
|
theme: this.theme,
|
|
3012
3015
|
params: t,
|
|
@@ -3022,7 +3025,7 @@ var ua = {
|
|
|
3022
3025
|
this._loadingStyles.add(e);
|
|
3023
3026
|
},
|
|
3024
3027
|
onStyleLoaded(e, { name: t }) {
|
|
3025
|
-
this._loadingStyles.size && (this._loadingStyles.delete(t),
|
|
3028
|
+
this._loadingStyles.size && (this._loadingStyles.delete(t), qi.emit(`theme:${t}:load`, e), !this._loadingStyles.size && qi.emit("theme:load"));
|
|
3026
3029
|
}
|
|
3027
3030
|
}, da = "\n *,\n ::before,\n ::after {\n box-sizing: border-box;\n }\n\n .p-collapsible-enter-active {\n animation: p-animate-collapsible-expand 0.2s ease-out;\n overflow: hidden;\n }\n\n .p-collapsible-leave-active {\n animation: p-animate-collapsible-collapse 0.2s ease-out;\n overflow: hidden;\n }\n\n @keyframes p-animate-collapsible-expand {\n from {\n grid-template-rows: 0fr;\n }\n to {\n grid-template-rows: 1fr;\n }\n }\n\n @keyframes p-animate-collapsible-collapse {\n from {\n grid-template-rows: 1fr;\n }\n to {\n grid-template-rows: 0fr;\n }\n }\n\n .p-disabled,\n .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-disabled,\n .p-component:disabled {\n opacity: dt('disabled.opacity');\n }\n\n .pi {\n font-size: dt('icon.size');\n }\n\n .p-icon {\n width: dt('icon.size');\n height: dt('icon.size');\n }\n\n .p-overlay-mask {\n background: var(--px-mask-background, dt('mask.background'));\n color: dt('mask.color');\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-overlay-mask-enter-active {\n animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;\n }\n\n .p-overlay-mask-leave-active {\n animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;\n }\n\n @keyframes p-animate-overlay-mask-enter {\n from {\n background: transparent;\n }\n to {\n background: var(--px-mask-background, dt('mask.background'));\n }\n }\n @keyframes p-animate-overlay-mask-leave {\n from {\n background: var(--px-mask-background, dt('mask.background'));\n }\n to {\n background: transparent;\n }\n }\n\n .p-anchored-overlay-enter-active {\n animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);\n }\n\n .p-anchored-overlay-leave-active {\n animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);\n }\n\n @keyframes p-animate-anchored-overlay-enter {\n from {\n opacity: 0;\n transform: scale(0.93);\n }\n }\n\n @keyframes p-animate-anchored-overlay-leave {\n to {\n opacity: 0;\n transform: scale(0.93);\n }\n }\n";
|
|
3028
3031
|
//#endregion
|
|
@@ -3084,31 +3087,31 @@ function va(e) {
|
|
|
3084
3087
|
}
|
|
3085
3088
|
var ya = 0;
|
|
3086
3089
|
function ba(e) {
|
|
3087
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = k(!1), r = k(e), i = k(null), a =
|
|
3090
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = k(!1), r = k(e), i = k(null), a = Ii() ? 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_${++ya}` : 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, ee = t.onLoad, E = ee === void 0 ? void 0 : ee, D = t.props, A = D === void 0 ? {} : D, j = function() {}, M = function(t) {
|
|
3088
3091
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3089
3092
|
if (s) {
|
|
3090
3093
|
var o = ma(ma({}, A), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
3091
|
-
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e,
|
|
3094
|
+
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, Fi(i.value, {
|
|
3092
3095
|
type: "text/css",
|
|
3093
3096
|
id: l,
|
|
3094
3097
|
media: _,
|
|
3095
3098
|
nonce: u
|
|
3096
|
-
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value),
|
|
3099
|
+
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Li(i.value, "data-primevue-style-id", c), Fi(i.value, o), i.value.onload = function(e) {
|
|
3097
3100
|
return E?.(e, { name: c });
|
|
3098
|
-
}, C?.(c)), !n.value && (j =
|
|
3101
|
+
}, C?.(c)), !n.value && (j = L(r, function(e) {
|
|
3099
3102
|
i.value.textContent = e, T?.(c);
|
|
3100
3103
|
}, { immediate: !0 }), n.value = !0);
|
|
3101
3104
|
}
|
|
3102
3105
|
};
|
|
3103
|
-
return l && !d && va(
|
|
3106
|
+
return l && !d && va(M), {
|
|
3104
3107
|
id: h,
|
|
3105
3108
|
name: p,
|
|
3106
3109
|
el: i,
|
|
3107
3110
|
css: r,
|
|
3108
3111
|
unload: function() {
|
|
3109
|
-
!s || !n.value || (j(),
|
|
3112
|
+
!s || !n.value || (j(), Ni(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
3110
3113
|
},
|
|
3111
|
-
load:
|
|
3114
|
+
load: M,
|
|
3112
3115
|
isLoaded: O(n)
|
|
3113
3116
|
};
|
|
3114
3117
|
}
|
|
@@ -3239,8 +3242,8 @@ var Ra = {
|
|
|
3239
3242
|
load: function(e) {
|
|
3240
3243
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(e) {
|
|
3241
3244
|
return e;
|
|
3242
|
-
})(
|
|
3243
|
-
return
|
|
3245
|
+
})(la(Sa ||= La(["", ""]), e));
|
|
3246
|
+
return Y(n) ? ba(ki(n), Na({ name: this.name }, t)) : {};
|
|
3244
3247
|
},
|
|
3245
3248
|
loadCSS: function() {
|
|
3246
3249
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3250,7 +3253,7 @@ var Ra = {
|
|
|
3250
3253
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
3251
3254
|
return this.load(this.style, t, function() {
|
|
3252
3255
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
3253
|
-
return $.transformCSS(t.name || e.name, `${r}${
|
|
3256
|
+
return $.transformCSS(t.name || e.name, `${r}${la(Ca ||= La(["", ""]), n)}`);
|
|
3254
3257
|
});
|
|
3255
3258
|
},
|
|
3256
3259
|
getCommonTheme: function(e) {
|
|
@@ -3271,7 +3274,7 @@ var Ra = {
|
|
|
3271
3274
|
getStyleSheet: function() {
|
|
3272
3275
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3273
3276
|
if (this.css) {
|
|
3274
|
-
var n =
|
|
3277
|
+
var n = wi(this.css, { dt: sa }) || "", r = ki(la(wa ||= La([
|
|
3275
3278
|
"",
|
|
3276
3279
|
"",
|
|
3277
3280
|
""
|
|
@@ -3279,7 +3282,7 @@ var Ra = {
|
|
|
3279
3282
|
var n = Ea(t, 2), r = n[0], i = n[1];
|
|
3280
3283
|
return e.push(`${r}="${i}"`) && e;
|
|
3281
3284
|
}, []).join(" ");
|
|
3282
|
-
return
|
|
3285
|
+
return Y(r) ? `<style type="text/css" data-primevue-style-id="${this.name}" ${i}>${r}</style>` : "";
|
|
3283
3286
|
}
|
|
3284
3287
|
return "";
|
|
3285
3288
|
},
|
|
@@ -3290,11 +3293,11 @@ var Ra = {
|
|
|
3290
3293
|
getThemeStyleSheet: function(e) {
|
|
3291
3294
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [$.getStyleSheet(this.name, e, t)];
|
|
3292
3295
|
if (this.style) {
|
|
3293
|
-
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i =
|
|
3296
|
+
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i = la(Ta ||= La(["", ""]), wi(this.style, { dt: sa })), a = ki($.transformCSS(r, i)), o = Object.entries(t).reduce(function(e, t) {
|
|
3294
3297
|
var n = Ea(t, 2), r = n[0], i = n[1];
|
|
3295
3298
|
return e.push(`${r}="${i}"`) && e;
|
|
3296
3299
|
}, []).join(" ");
|
|
3297
|
-
|
|
3300
|
+
Y(a) && n.push(`<style type="text/css" data-primevue-style-id="${r}" ${o}>${a}</style>`);
|
|
3298
3301
|
}
|
|
3299
3302
|
return n.join("");
|
|
3300
3303
|
},
|
|
@@ -3308,7 +3311,7 @@ var Ra = {
|
|
|
3308
3311
|
Ra.extend({ name: "common" }), Ra.extend({ name: "common" });
|
|
3309
3312
|
//#endregion
|
|
3310
3313
|
//#region ../node_modules/.pnpm/@primevue+core@4.5.4_vue@3.5.32_typescript@5.9.3_/node_modules/@primevue/core/service/index.mjs
|
|
3311
|
-
var za =
|
|
3314
|
+
var za = ji();
|
|
3312
3315
|
//#endregion
|
|
3313
3316
|
//#region ../node_modules/.pnpm/@primevue+core@4.5.4_vue@3.5.32_typescript@5.9.3_/node_modules/@primevue/core/config/index.mjs
|
|
3314
3317
|
function Ba(e) {
|
|
@@ -3549,26 +3552,26 @@ var Ka = {
|
|
|
3549
3552
|
},
|
|
3550
3553
|
filterMatchModeOptions: {
|
|
3551
3554
|
text: [
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3555
|
+
X.STARTS_WITH,
|
|
3556
|
+
X.CONTAINS,
|
|
3557
|
+
X.NOT_CONTAINS,
|
|
3558
|
+
X.ENDS_WITH,
|
|
3559
|
+
X.EQUALS,
|
|
3560
|
+
X.NOT_EQUALS
|
|
3558
3561
|
],
|
|
3559
3562
|
numeric: [
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3563
|
+
X.EQUALS,
|
|
3564
|
+
X.NOT_EQUALS,
|
|
3565
|
+
X.LESS_THAN,
|
|
3566
|
+
X.LESS_THAN_OR_EQUAL_TO,
|
|
3567
|
+
X.GREATER_THAN,
|
|
3568
|
+
X.GREATER_THAN_OR_EQUAL_TO
|
|
3566
3569
|
],
|
|
3567
3570
|
date: [
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3571
|
+
X.DATE_IS,
|
|
3572
|
+
X.DATE_IS_NOT,
|
|
3573
|
+
X.DATE_BEFORE,
|
|
3574
|
+
X.DATE_AFTER
|
|
3572
3575
|
]
|
|
3573
3576
|
},
|
|
3574
3577
|
zIndex: {
|
|
@@ -3592,7 +3595,7 @@ function Ja(e, t) {
|
|
|
3592
3595
|
}
|
|
3593
3596
|
var Ya = [];
|
|
3594
3597
|
function Xa() {
|
|
3595
|
-
|
|
3598
|
+
qi.clear(), Ya.forEach(function(e) {
|
|
3596
3599
|
return e?.();
|
|
3597
3600
|
}), Ya = [];
|
|
3598
3601
|
}
|
|
@@ -3603,10 +3606,10 @@ function Za(e, t) {
|
|
|
3603
3606
|
Ra.load(r?.css, Ha({ name: "primitive-variables" }, s)), Ra.load(i?.css, Ha({ name: "semantic-variables" }, s)), Ra.load(a?.css, Ha({ name: "global-variables" }, s)), Ra.loadStyle(Ha({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|
|
3604
3607
|
}
|
|
3605
3608
|
};
|
|
3606
|
-
|
|
3609
|
+
qi.on("theme:change", function(t) {
|
|
3607
3610
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
3608
3611
|
});
|
|
3609
|
-
var i =
|
|
3612
|
+
var i = L(t.config, function(e, t) {
|
|
3610
3613
|
za.emit("config:change", {
|
|
3611
3614
|
newValue: e,
|
|
3612
3615
|
oldValue: t
|
|
@@ -3614,7 +3617,7 @@ function Za(e, t) {
|
|
|
3614
3617
|
}, {
|
|
3615
3618
|
immediate: !0,
|
|
3616
3619
|
deep: !0
|
|
3617
|
-
}), a =
|
|
3620
|
+
}), a = L(function() {
|
|
3618
3621
|
return t.config.ripple;
|
|
3619
3622
|
}, function(e, t) {
|
|
3620
3623
|
za.emit("config:ripple:change", {
|
|
@@ -3624,7 +3627,7 @@ function Za(e, t) {
|
|
|
3624
3627
|
}, {
|
|
3625
3628
|
immediate: !0,
|
|
3626
3629
|
deep: !0
|
|
3627
|
-
}), o =
|
|
3630
|
+
}), o = L(function() {
|
|
3628
3631
|
return t.config.theme;
|
|
3629
3632
|
}, function(e, i) {
|
|
3630
3633
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, za.emit("config:theme:change", {
|
|
@@ -3634,7 +3637,7 @@ function Za(e, t) {
|
|
|
3634
3637
|
}, {
|
|
3635
3638
|
immediate: !0,
|
|
3636
3639
|
deep: !1
|
|
3637
|
-
}), s =
|
|
3640
|
+
}), s = L(function() {
|
|
3638
3641
|
return t.config.unstyled;
|
|
3639
3642
|
}, function(e, n) {
|
|
3640
3643
|
!e && t.config.theme && r(), za.emit("config:unstyled:change", {
|
|
@@ -3648,7 +3651,7 @@ function Za(e, t) {
|
|
|
3648
3651
|
Ya.push(i), Ya.push(a), Ya.push(o), Ya.push(s);
|
|
3649
3652
|
}
|
|
3650
3653
|
var Qa = { install: function(e, t) {
|
|
3651
|
-
Ja(e,
|
|
3654
|
+
Ja(e, Oi(Ka, t));
|
|
3652
3655
|
} }, $a = {
|
|
3653
3656
|
root: { transitionDuration: "{transition.duration}" },
|
|
3654
3657
|
panel: {
|
|
@@ -8547,5 +8550,5 @@ function oc(e) {
|
|
|
8547
8550
|
}
|
|
8548
8551
|
//#endregion
|
|
8549
8552
|
//#region .build-temp-pv-sidebar-v2.ts
|
|
8550
|
-
oc(
|
|
8553
|
+
oc(fi);
|
|
8551
8554
|
//#endregion
|