@turquoisehealth/pit-viper 2.195.1-dev.2 → 2.196.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +0 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +3 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1701 -1715
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1036 -1033
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
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, customRef as d, defineComponent as f, defineCustomElement as p, getCurrentInstance as m, getCurrentScope as h, guardReactiveProps as g, inject as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onMounted as T, onScopeDispose as E, onUnmounted as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, customRef as d, defineComponent as f, defineCustomElement as p, getCurrentInstance as m, getCurrentScope as h, guardReactiveProps as g, inject as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as ee, openBlock as O, reactive as te, readonly as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as N, shallowRef as P, toDisplayString as F, toRef as ne, toValue as I, unref as L, useAttrs as R, useId as re, useModel as ie, useSlots as ae, useTemplateRef as oe, vModelCheckbox as se, vModelText as ce, vShow as le, watch as z, watchEffect as ue, withCtx as de, withDirectives as fe, withKeys as pe, withModifiers as B } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var V = Object.defineProperty, me = Object.getOwnPropertyDescriptor, he = Object.getOwnPropertyNames, ge = Object.prototype.hasOwnProperty, _e = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) V(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
10
|
+
return t || V(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, ve = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = he(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ge.call(e, s) && s !== n && V(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = me(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, ye = (e, t, n) => (ve(e, t, "default"), n && ve(n, t, "default")), H = /* @__PURE__ */ f({
|
|
18
18
|
__name: "PvSpinner",
|
|
19
19
|
props: {
|
|
20
20
|
size: {
|
|
@@ -38,26 +38,26 @@ var W = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object
|
|
|
38
38
|
dark: "pv-spinner-dark",
|
|
39
39
|
white: "pv-spinner-light"
|
|
40
40
|
};
|
|
41
|
-
return (r, i) => (
|
|
41
|
+
return (r, i) => (O(), o("div", {
|
|
42
42
|
"data-testid": "pv-spinner",
|
|
43
43
|
class: x(n[e.variant]),
|
|
44
44
|
style: C({ "--size": t[e.size] })
|
|
45
45
|
}, null, 6));
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), be = ["ghost"], xe = {
|
|
48
48
|
md: "pv-button-small",
|
|
49
49
|
lg: void 0,
|
|
50
50
|
xl: "pv-button-large"
|
|
51
|
-
},
|
|
51
|
+
}, Se = (e) => e == null || !xe.hasOwnProperty(e) ? null : xe[e] || null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
|
-
function
|
|
54
|
+
function Ce() {
|
|
55
55
|
let e = A(!1), t = m()?.root || {};
|
|
56
56
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/base/baseProps.ts
|
|
60
|
-
var
|
|
60
|
+
var we = [
|
|
61
61
|
void 0,
|
|
62
62
|
10,
|
|
63
63
|
12,
|
|
@@ -65,24 +65,24 @@ var xe = [
|
|
|
65
65
|
24,
|
|
66
66
|
32,
|
|
67
67
|
64
|
|
68
|
-
],
|
|
68
|
+
], Te = ["xlink:href"], Ee = /* @__PURE__ */ f({
|
|
69
69
|
__name: "PvIcon",
|
|
70
70
|
props: {
|
|
71
71
|
name: { type: String },
|
|
72
72
|
size: { type: null }
|
|
73
73
|
},
|
|
74
74
|
setup(e) {
|
|
75
|
-
let t = e, n =
|
|
75
|
+
let t = e, n = Ce(), i = A(null), a = r(() => ({
|
|
76
76
|
"pv-icon": !0,
|
|
77
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
77
|
+
[`pv-icon-${t.size}`]: t.size != null && we.includes(t.size)
|
|
78
78
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
79
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (
|
|
79
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (O(), o("svg", {
|
|
80
80
|
"data-testid": "pv-icon",
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
class: x(a.value)
|
|
83
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
83
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, Te)], 2));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), De = /* @__PURE__ */ f({
|
|
86
86
|
__name: "PvCounterBadge",
|
|
87
87
|
props: {
|
|
88
88
|
value: { type: Number },
|
|
@@ -114,19 +114,19 @@ var xe = [
|
|
|
114
114
|
"pv-text-secondary": t.variant == "ghost" || t.variant == "tertiary",
|
|
115
115
|
"pv-surface": t.variant == "ghost"
|
|
116
116
|
}));
|
|
117
|
-
return (e, t) => (
|
|
117
|
+
return (e, t) => (O(), o("div", {
|
|
118
118
|
class: x(a.value),
|
|
119
119
|
"data-testid": "pv-counter-badge"
|
|
120
120
|
}, F(i.value), 3));
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), Oe = ".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}", ke = (e, t) => {
|
|
123
123
|
let n = e.__vccOpts || e;
|
|
124
124
|
for (let [e, r] of t) n[e] = r;
|
|
125
125
|
return n;
|
|
126
|
-
},
|
|
126
|
+
}, U = /* @__PURE__ */ ke(De, [["styles", [Oe]], ["__scopeId", "data-v-743a2e13"]]), Ae = ["disabled", "aria-label"], je = {
|
|
127
127
|
key: 2,
|
|
128
128
|
"data-testid": "pv-button-label"
|
|
129
|
-
},
|
|
129
|
+
}, W = /* @__PURE__ */ f({
|
|
130
130
|
__name: "PvButton",
|
|
131
131
|
props: {
|
|
132
132
|
variant: {
|
|
@@ -159,54 +159,54 @@ var xe = [
|
|
|
159
159
|
setup(e) {
|
|
160
160
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
161
161
|
let e = [];
|
|
162
|
-
n.inverse &&
|
|
163
|
-
let t =
|
|
162
|
+
n.inverse && be.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
163
|
+
let t = Se(n.size);
|
|
164
164
|
return t && e.push(t), e;
|
|
165
165
|
});
|
|
166
|
-
return (n, r) => (
|
|
166
|
+
return (n, r) => (O(), o("button", {
|
|
167
167
|
type: "button",
|
|
168
168
|
class: x(c.value),
|
|
169
169
|
disabled: e.disabled,
|
|
170
170
|
"aria-label": s.value,
|
|
171
171
|
"data-testid": "pv-button"
|
|
172
|
-
}, [e.loading ? (
|
|
172
|
+
}, [e.loading ? (O(), i(H, {
|
|
173
173
|
key: 0,
|
|
174
174
|
size: "sm"
|
|
175
|
-
})) : (
|
|
176
|
-
e.leftCounterBadge ? (
|
|
175
|
+
})) : (O(), o(t, { key: 1 }, [
|
|
176
|
+
e.leftCounterBadge ? (O(), i(U, {
|
|
177
177
|
key: 0,
|
|
178
178
|
value: e.leftCounterBadge,
|
|
179
179
|
variant: "tertiary"
|
|
180
180
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
181
|
-
e.leftIcon ? (
|
|
181
|
+
e.leftIcon ? (O(), i(Ee, {
|
|
182
182
|
key: 1,
|
|
183
183
|
name: e.leftIcon,
|
|
184
184
|
"data-testid": "pv-button-left-icon"
|
|
185
185
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
186
|
-
e.label ? (
|
|
187
|
-
e.rightCounterBadge ? (
|
|
186
|
+
e.label ? (O(), o("span", je, F(e.label), 1)) : a("v-if", !0),
|
|
187
|
+
e.rightCounterBadge ? (O(), i(U, {
|
|
188
188
|
key: 3,
|
|
189
189
|
value: e.rightCounterBadge,
|
|
190
190
|
variant: "tertiary"
|
|
191
191
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
192
|
-
e.rightIcon ? (
|
|
192
|
+
e.rightIcon ? (O(), i(Ee, {
|
|
193
193
|
key: 4,
|
|
194
194
|
name: e.rightIcon,
|
|
195
195
|
"data-testid": "pv-button-right-icon"
|
|
196
196
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
197
|
-
], 64))], 10,
|
|
197
|
+
], 64))], 10, Ae));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), Me = { class: "pv-inset-squish-12" }, Ne = {
|
|
200
200
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
201
201
|
style: { "--flex-align": "flex-start" }
|
|
202
|
-
},
|
|
202
|
+
}, Pe = { class: "pv-heading-3" }, Fe = {
|
|
203
203
|
key: 0,
|
|
204
204
|
class: "pv-text-body-md"
|
|
205
|
-
},
|
|
205
|
+
}, Ie = {
|
|
206
206
|
key: 0,
|
|
207
207
|
class: "pv-inset-squish-12 pv-border-top",
|
|
208
208
|
style: { "--color-border": "#d2d8dc" }
|
|
209
|
-
},
|
|
209
|
+
}, Le = /* @__PURE__ */ f({
|
|
210
210
|
__name: "PvModal",
|
|
211
211
|
props: /* @__PURE__ */ v({
|
|
212
212
|
header: { type: String },
|
|
@@ -228,8 +228,8 @@ var xe = [
|
|
|
228
228
|
}),
|
|
229
229
|
emits: ["update:modelValue"],
|
|
230
230
|
setup(e) {
|
|
231
|
-
let t = e, n =
|
|
232
|
-
|
|
231
|
+
let t = e, n = oe("dialog"), r = ie(e, "modelValue");
|
|
232
|
+
z(() => r.value, () => {
|
|
233
233
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
234
234
|
});
|
|
235
235
|
let i = () => {
|
|
@@ -237,78 +237,78 @@ var xe = [
|
|
|
237
237
|
}, c = (e) => {
|
|
238
238
|
!t.disableCloseOnClickOutside && e.target === n.value && i();
|
|
239
239
|
};
|
|
240
|
-
return (t, n) => (
|
|
240
|
+
return (t, n) => (O(), o("dialog", {
|
|
241
241
|
class: "pv-modal-sm",
|
|
242
242
|
ref: "dialog",
|
|
243
243
|
style: { "--max-width": "480px" },
|
|
244
244
|
onClose: i,
|
|
245
245
|
onClick: c
|
|
246
|
-
}, [s("div",
|
|
246
|
+
}, [s("div", Me, [s("div", Ne, [s("span", Pe, F(e.header), 1), e.subheader ? (O(), o("span", Fe, F(e.subheader), 1)) : a("v-if", !0)]), M(t.$slots, "body")]), e.hideFooter ? a("v-if", !0) : (O(), o("div", Ie, [M(t.$slots, "footer")]))], 544));
|
|
247
247
|
}
|
|
248
|
-
}),
|
|
248
|
+
}), Re = Math.min, ze = Math.max, Be = Math.round, Ve = (e) => ({
|
|
249
249
|
x: e,
|
|
250
250
|
y: e
|
|
251
|
-
}),
|
|
251
|
+
}), G = {
|
|
252
252
|
left: "right",
|
|
253
253
|
right: "left",
|
|
254
254
|
bottom: "top",
|
|
255
255
|
top: "bottom"
|
|
256
256
|
};
|
|
257
|
-
function
|
|
257
|
+
function He(e, t) {
|
|
258
258
|
return typeof e == "function" ? e(t) : e;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function K(e) {
|
|
261
261
|
return e.split("-")[0];
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Ue(e) {
|
|
264
264
|
return e.split("-")[1];
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function We(e) {
|
|
267
267
|
return e === "x" ? "y" : "x";
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ge(e) {
|
|
270
270
|
return e === "y" ? "height" : "width";
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ke(e) {
|
|
273
273
|
let t = e[0];
|
|
274
274
|
return t === "t" || t === "b" ? "y" : "x";
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
276
|
+
function qe(e) {
|
|
277
|
+
return We(Ke(e));
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Je(e, t, n) {
|
|
280
280
|
n === void 0 && (n = !1);
|
|
281
|
-
let r =
|
|
282
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
281
|
+
let r = Ue(e), i = qe(e), a = Ge(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
282
|
+
return t.reference[a] > t.floating[a] && (o = q(o)), [o, q(o)];
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
let t =
|
|
284
|
+
function Ye(e) {
|
|
285
|
+
let t = q(e);
|
|
286
286
|
return [
|
|
287
|
-
|
|
287
|
+
Xe(e),
|
|
288
288
|
t,
|
|
289
|
-
|
|
289
|
+
Xe(t)
|
|
290
290
|
];
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Xe(e) {
|
|
293
293
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
294
294
|
}
|
|
295
|
-
var
|
|
296
|
-
function
|
|
295
|
+
var Ze = ["left", "right"], Qe = ["right", "left"], $e = ["top", "bottom"], et = ["bottom", "top"];
|
|
296
|
+
function tt(e, t, n) {
|
|
297
297
|
switch (e) {
|
|
298
298
|
case "top":
|
|
299
|
-
case "bottom": return n ? t ?
|
|
299
|
+
case "bottom": return n ? t ? Qe : Ze : t ? Ze : Qe;
|
|
300
300
|
case "left":
|
|
301
|
-
case "right": return t ?
|
|
301
|
+
case "right": return t ? $e : et;
|
|
302
302
|
default: return [];
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
let i =
|
|
307
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
305
|
+
function nt(e, t, n, r) {
|
|
306
|
+
let i = Ue(e), a = tt(K(e), n === "start", r);
|
|
307
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Xe)))), a;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
let t =
|
|
311
|
-
return
|
|
309
|
+
function q(e) {
|
|
310
|
+
let t = K(e);
|
|
311
|
+
return G[t] + e.slice(t.length);
|
|
312
312
|
}
|
|
313
313
|
function rt(e) {
|
|
314
314
|
return {
|
|
@@ -343,7 +343,7 @@ function at(e) {
|
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
345
345
|
function ot(e, t, n) {
|
|
346
|
-
let { reference: r, floating: i } = e, a =
|
|
346
|
+
let { reference: r, floating: i } = e, a = Ke(t), o = qe(t), s = Ge(o), c = K(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;
|
|
347
347
|
switch (c) {
|
|
348
348
|
case "top":
|
|
349
349
|
p = {
|
|
@@ -374,7 +374,7 @@ function ot(e, t, n) {
|
|
|
374
374
|
y: r.y
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
switch (
|
|
377
|
+
switch (Ue(t)) {
|
|
378
378
|
case "start":
|
|
379
379
|
p[o] -= f * (n && l ? -1 : 1);
|
|
380
380
|
break;
|
|
@@ -386,7 +386,7 @@ function ot(e, t, n) {
|
|
|
386
386
|
}
|
|
387
387
|
async function st(e, t) {
|
|
388
388
|
t === void 0 && (t = {});
|
|
389
|
-
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 } =
|
|
389
|
+
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 } = He(t, e), p = it(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = at(await i.getClippingRect({
|
|
390
390
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
391
391
|
boundary: c,
|
|
392
392
|
rootBoundary: l,
|
|
@@ -460,13 +460,13 @@ var ct = 50, lt = async (e, t, n) => {
|
|
|
460
460
|
options: e,
|
|
461
461
|
async fn(t) {
|
|
462
462
|
var n;
|
|
463
|
-
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 } =
|
|
463
|
+
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 } = He(e, t);
|
|
464
464
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
465
|
-
let g =
|
|
466
|
-
!d && x && b.push(...
|
|
465
|
+
let g = K(r), _ = Ke(o), v = K(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [q(o)] : Ye(o)), x = p !== "none";
|
|
466
|
+
!d && x && b.push(...nt(o, m, p, y));
|
|
467
467
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
468
468
|
if (l && w.push(C[g]), u) {
|
|
469
|
-
let e =
|
|
469
|
+
let e = Je(r, a, y);
|
|
470
470
|
w.push(C[e[0]], C[e[1]]);
|
|
471
471
|
}
|
|
472
472
|
if (T = [...T, {
|
|
@@ -474,7 +474,7 @@ var ct = 50, lt = async (e, t, n) => {
|
|
|
474
474
|
overflows: w
|
|
475
475
|
}], !w.every((e) => e <= 0)) {
|
|
476
476
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
477
|
-
if (t && (!(u === "alignment" && _ !==
|
|
477
|
+
if (t && (!(u === "alignment" && _ !== Ke(t)) || T.every((e) => Ke(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
478
478
|
data: {
|
|
479
479
|
index: e,
|
|
480
480
|
overflows: T
|
|
@@ -486,7 +486,7 @@ var ct = 50, lt = async (e, t, n) => {
|
|
|
486
486
|
case "bestFit": {
|
|
487
487
|
let e = T.filter((e) => {
|
|
488
488
|
if (x) {
|
|
489
|
-
let t =
|
|
489
|
+
let t = Ke(e.placement);
|
|
490
490
|
return t === _ || t === "y";
|
|
491
491
|
}
|
|
492
492
|
return !0;
|
|
@@ -505,7 +505,7 @@ var ct = 50, lt = async (e, t, n) => {
|
|
|
505
505
|
};
|
|
506
506
|
}, dt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
507
507
|
async function ft(e, t) {
|
|
508
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
508
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = K(n), s = Ue(n), c = Ke(n) === "y", l = dt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = He(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
509
509
|
mainAxis: d,
|
|
510
510
|
crossAxis: 0,
|
|
511
511
|
alignmentAxis: null
|
|
@@ -558,23 +558,23 @@ function gt(e) {
|
|
|
558
558
|
function _t(e) {
|
|
559
559
|
return mt() ? e instanceof Node || e instanceof J(e).Node : !1;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Y(e) {
|
|
562
562
|
return mt() ? e instanceof Element || e instanceof J(e).Element : !1;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function vt(e) {
|
|
565
565
|
return mt() ? e instanceof HTMLElement || e instanceof J(e).HTMLElement : !1;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function yt(e) {
|
|
568
568
|
return !mt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof J(e).ShadowRoot;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
570
|
+
function bt(e) {
|
|
571
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = jt(e);
|
|
572
572
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function xt(e) {
|
|
575
575
|
return /^(table|td|th)$/.test(ht(e));
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function St(e) {
|
|
578
578
|
try {
|
|
579
579
|
if (e.matches(":popover-open")) return !0;
|
|
580
580
|
} catch {}
|
|
@@ -584,31 +584,31 @@ function Ct(e) {
|
|
|
584
584
|
return !1;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
function
|
|
589
|
-
let t =
|
|
590
|
-
return
|
|
587
|
+
var Ct = /transform|translate|scale|rotate|perspective|filter/, wt = /paint|layout|strict|content/, Tt = (e) => !!e && e !== "none", Et;
|
|
588
|
+
function Dt(e) {
|
|
589
|
+
let t = Y(e) ? jt(e) : e;
|
|
590
|
+
return Tt(t.transform) || Tt(t.translate) || Tt(t.scale) || Tt(t.rotate) || Tt(t.perspective) || !kt() && (Tt(t.backdropFilter) || Tt(t.filter)) || Ct.test(t.willChange || "") || wt.test(t.contain || "");
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
let t =
|
|
594
|
-
for (;
|
|
595
|
-
if (
|
|
596
|
-
if (
|
|
597
|
-
t =
|
|
592
|
+
function Ot(e) {
|
|
593
|
+
let t = Nt(e);
|
|
594
|
+
for (; vt(t) && !At(t);) {
|
|
595
|
+
if (Dt(t)) return t;
|
|
596
|
+
if (St(t)) return null;
|
|
597
|
+
t = Nt(t);
|
|
598
598
|
}
|
|
599
599
|
return null;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function kt() {
|
|
602
|
+
return Et ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Et;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function At(e) {
|
|
605
605
|
return /^(html|body|#document)$/.test(ht(e));
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function jt(e) {
|
|
608
608
|
return J(e).getComputedStyle(e);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function Mt(e) {
|
|
611
|
+
return Y(e) ? {
|
|
612
612
|
scrollLeft: e.scrollLeft,
|
|
613
613
|
scrollTop: e.scrollTop
|
|
614
614
|
} : {
|
|
@@ -616,69 +616,69 @@ function Nt(e) {
|
|
|
616
616
|
scrollTop: e.scrollY
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Nt(e) {
|
|
620
620
|
if (ht(e) === "html") return e;
|
|
621
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
622
|
-
return
|
|
621
|
+
let t = e.assignedSlot || e.parentNode || yt(e) && e.host || gt(e);
|
|
622
|
+
return yt(t) ? t.host : t;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
let t =
|
|
626
|
-
return
|
|
624
|
+
function Pt(e) {
|
|
625
|
+
let t = Nt(e);
|
|
626
|
+
return At(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : vt(t) && bt(t) ? t : Pt(t);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Ft(e, t, n) {
|
|
629
629
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
630
|
-
let r =
|
|
630
|
+
let r = Pt(e), i = r === e.ownerDocument?.body, a = J(r);
|
|
631
631
|
if (i) {
|
|
632
|
-
let e =
|
|
633
|
-
return t.concat(a, a.visualViewport || [],
|
|
634
|
-
} else return t.concat(r,
|
|
632
|
+
let e = It(a);
|
|
633
|
+
return t.concat(a, a.visualViewport || [], bt(r) ? r : [], e && n ? Ft(e) : []);
|
|
634
|
+
} else return t.concat(r, Ft(r, [], n));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function It(e) {
|
|
637
637
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
638
638
|
}
|
|
639
639
|
//#endregion
|
|
640
640
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
641
|
-
function
|
|
642
|
-
let t =
|
|
641
|
+
function Lt(e) {
|
|
642
|
+
let t = jt(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = vt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Be(n) !== a || Be(r) !== o;
|
|
643
643
|
return s && (n = a, r = o), {
|
|
644
644
|
width: n,
|
|
645
645
|
height: r,
|
|
646
646
|
$: s
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
return
|
|
649
|
+
function Rt(e) {
|
|
650
|
+
return Y(e) ? e : e.contextElement;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
let t =
|
|
654
|
-
if (!
|
|
655
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
652
|
+
function zt(e) {
|
|
653
|
+
let t = Rt(e);
|
|
654
|
+
if (!vt(t)) return Ve(1);
|
|
655
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Lt(t), o = (a ? Be(n.width) : n.width) / r, s = (a ? Be(n.height) : n.height) / i;
|
|
656
656
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
657
657
|
x: o,
|
|
658
658
|
y: s
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
function
|
|
661
|
+
var Bt = /* @__PURE__ */ Ve(0);
|
|
662
|
+
function Vt(e) {
|
|
663
663
|
let t = J(e);
|
|
664
|
-
return !
|
|
664
|
+
return !kt() || !t.visualViewport ? Bt : {
|
|
665
665
|
x: t.visualViewport.offsetLeft,
|
|
666
666
|
y: t.visualViewport.offsetTop
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Ht(e, t, n) {
|
|
670
670
|
return t === void 0 && (t = !1), !n || t && n !== J(e) ? !1 : t;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ut(e, t, n, r) {
|
|
673
673
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
674
|
-
let i = e.getBoundingClientRect(), a =
|
|
675
|
-
t && (r ?
|
|
676
|
-
let s =
|
|
674
|
+
let i = e.getBoundingClientRect(), a = Rt(e), o = Ve(1);
|
|
675
|
+
t && (r ? Y(r) && (o = zt(r)) : o = zt(e));
|
|
676
|
+
let s = Ht(a, n, r) ? Vt(a) : Ve(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;
|
|
677
677
|
if (a) {
|
|
678
|
-
let e = J(a), t = r &&
|
|
678
|
+
let e = J(a), t = r && Y(r) ? J(r) : r, n = e, i = It(n);
|
|
679
679
|
for (; i && r && t !== n;) {
|
|
680
|
-
let e =
|
|
681
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = J(i), i =
|
|
680
|
+
let e = zt(i), t = i.getBoundingClientRect(), r = jt(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
681
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = J(i), i = It(n);
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
return at({
|
|
@@ -688,29 +688,29 @@ function Wt(e, t, n, r) {
|
|
|
688
688
|
y: l
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
let n =
|
|
693
|
-
return t ? t.left + n :
|
|
691
|
+
function Wt(e, t) {
|
|
692
|
+
let n = Mt(e).scrollLeft;
|
|
693
|
+
return t ? t.left + n : Ut(gt(e)).left + n;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Gt(e, t) {
|
|
696
696
|
let n = e.getBoundingClientRect();
|
|
697
697
|
return {
|
|
698
|
-
x: n.left + t.scrollLeft -
|
|
698
|
+
x: n.left + t.scrollLeft - Wt(e, n),
|
|
699
699
|
y: n.top + t.scrollTop
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = gt(r), s = t ?
|
|
702
|
+
function Kt(e) {
|
|
703
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = gt(r), s = t ? St(t.floating) : !1;
|
|
704
704
|
if (r === o || s && a) return n;
|
|
705
705
|
let c = {
|
|
706
706
|
scrollLeft: 0,
|
|
707
707
|
scrollTop: 0
|
|
708
|
-
}, l =
|
|
709
|
-
if ((d || !d && !a) && ((ht(r) !== "body" ||
|
|
710
|
-
let e =
|
|
711
|
-
l =
|
|
708
|
+
}, l = Ve(1), u = Ve(0), d = vt(r);
|
|
709
|
+
if ((d || !d && !a) && ((ht(r) !== "body" || bt(o)) && (c = Mt(r)), d)) {
|
|
710
|
+
let e = Ut(r);
|
|
711
|
+
l = zt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
712
712
|
}
|
|
713
|
-
let f = o && !d && !a ?
|
|
713
|
+
let f = o && !d && !a ? Gt(o, c) : Ve(0);
|
|
714
714
|
return {
|
|
715
715
|
width: n.width * l.x,
|
|
716
716
|
height: n.height * l.y,
|
|
@@ -718,31 +718,31 @@ function qt(e) {
|
|
|
718
718
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function qt(e) {
|
|
722
722
|
return Array.from(e.getClientRects());
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
let t = gt(e), n =
|
|
726
|
-
return
|
|
724
|
+
function Jt(e) {
|
|
725
|
+
let t = gt(e), n = Mt(e), r = e.ownerDocument.body, i = ze(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ze(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Wt(e), s = -n.scrollTop;
|
|
726
|
+
return jt(r).direction === "rtl" && (o += ze(t.clientWidth, r.clientWidth) - i), {
|
|
727
727
|
width: i,
|
|
728
728
|
height: a,
|
|
729
729
|
x: o,
|
|
730
730
|
y: s
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
var
|
|
734
|
-
function
|
|
733
|
+
var Yt = 25;
|
|
734
|
+
function Xt(e, t) {
|
|
735
735
|
let n = J(e), r = gt(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
736
736
|
if (i) {
|
|
737
737
|
a = i.width, o = i.height;
|
|
738
|
-
let e =
|
|
738
|
+
let e = kt();
|
|
739
739
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
740
740
|
}
|
|
741
|
-
let l =
|
|
741
|
+
let l = Wt(r);
|
|
742
742
|
if (l <= 0) {
|
|
743
743
|
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);
|
|
744
|
-
o <=
|
|
745
|
-
} else l <=
|
|
744
|
+
o <= Yt && (a -= o);
|
|
745
|
+
} else l <= Yt && (a += l);
|
|
746
746
|
return {
|
|
747
747
|
width: a,
|
|
748
748
|
height: o,
|
|
@@ -750,8 +750,8 @@ function Zt(e, t) {
|
|
|
750
750
|
y: c
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
let n =
|
|
753
|
+
function Zt(e, t) {
|
|
754
|
+
let n = Ut(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = vt(e) ? zt(e) : Ve(1);
|
|
755
755
|
return {
|
|
756
756
|
width: e.clientWidth * a.x,
|
|
757
757
|
height: e.clientHeight * a.y,
|
|
@@ -759,13 +759,13 @@ function Qt(e, t) {
|
|
|
759
759
|
y: r * a.y
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Qt(e, t, n) {
|
|
763
763
|
let r;
|
|
764
|
-
if (t === "viewport") r =
|
|
765
|
-
else if (t === "document") r =
|
|
766
|
-
else if (
|
|
764
|
+
if (t === "viewport") r = Xt(e, n);
|
|
765
|
+
else if (t === "document") r = Jt(gt(e));
|
|
766
|
+
else if (Y(t)) r = Zt(t, n);
|
|
767
767
|
else {
|
|
768
|
-
let n =
|
|
768
|
+
let n = Vt(e);
|
|
769
769
|
r = {
|
|
770
770
|
x: t.x - n.x,
|
|
771
771
|
y: t.y - n.y,
|
|
@@ -775,25 +775,25 @@ function $t(e, t, n) {
|
|
|
775
775
|
}
|
|
776
776
|
return at(r);
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
let n =
|
|
780
|
-
return n === t || !
|
|
778
|
+
function $t(e, t) {
|
|
779
|
+
let n = Nt(e);
|
|
780
|
+
return n === t || !Y(n) || At(n) ? !1 : jt(n).position === "fixed" || $t(n, t);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function en(e, t) {
|
|
783
783
|
let n = t.get(e);
|
|
784
784
|
if (n) return n;
|
|
785
|
-
let r =
|
|
786
|
-
for (;
|
|
787
|
-
let t =
|
|
788
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
785
|
+
let r = Ft(e, [], !1).filter((e) => Y(e) && ht(e) !== "body"), i = null, a = jt(e).position === "fixed", o = a ? Nt(e) : e;
|
|
786
|
+
for (; Y(o) && !At(o);) {
|
|
787
|
+
let t = jt(o), n = Dt(o);
|
|
788
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || bt(o) && !n && $t(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Nt(o);
|
|
789
789
|
}
|
|
790
790
|
return t.set(e, r), r;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
792
|
+
function tn(e) {
|
|
793
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? St(t) ? [] : en(t, this._c) : [].concat(n), r], o = Qt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
794
794
|
for (let e = 1; e < a.length; e++) {
|
|
795
|
-
let n =
|
|
796
|
-
s =
|
|
795
|
+
let n = Qt(t, a[e], i);
|
|
796
|
+
s = ze(n.top, s), c = Re(n.right, c), l = Re(n.bottom, l), u = ze(n.left, u);
|
|
797
797
|
}
|
|
798
798
|
return {
|
|
799
799
|
width: c - u,
|
|
@@ -802,27 +802,27 @@ function nn(e) {
|
|
|
802
802
|
y: s
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
|
-
function
|
|
806
|
-
let { width: t, height: n } =
|
|
805
|
+
function nn(e) {
|
|
806
|
+
let { width: t, height: n } = Lt(e);
|
|
807
807
|
return {
|
|
808
808
|
width: t,
|
|
809
809
|
height: n
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
let r =
|
|
812
|
+
function rn(e, t, n) {
|
|
813
|
+
let r = vt(t), i = gt(t), a = n === "fixed", o = Ut(e, !0, a, t), s = {
|
|
814
814
|
scrollLeft: 0,
|
|
815
815
|
scrollTop: 0
|
|
816
|
-
}, c =
|
|
816
|
+
}, c = Ve(0);
|
|
817
817
|
function l() {
|
|
818
|
-
c.x =
|
|
818
|
+
c.x = Wt(i);
|
|
819
819
|
}
|
|
820
|
-
if (r || !r && !a) if ((ht(t) !== "body" ||
|
|
821
|
-
let e =
|
|
820
|
+
if (r || !r && !a) if ((ht(t) !== "body" || bt(i)) && (s = Mt(t)), r) {
|
|
821
|
+
let e = Ut(t, !0, a, t);
|
|
822
822
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
823
823
|
} else i && l();
|
|
824
824
|
a && !r && i && l();
|
|
825
|
-
let u = i && !r && !a ?
|
|
825
|
+
let u = i && !r && !a ? Gt(i, s) : Ve(0);
|
|
826
826
|
return {
|
|
827
827
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
828
828
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -830,34 +830,34 @@ function an(e, t, n) {
|
|
|
830
830
|
height: o.height
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
return
|
|
833
|
+
function an(e) {
|
|
834
|
+
return jt(e).position === "static";
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
if (!
|
|
836
|
+
function on(e, t) {
|
|
837
|
+
if (!vt(e) || jt(e).position === "fixed") return null;
|
|
838
838
|
if (t) return t(e);
|
|
839
839
|
let n = e.offsetParent;
|
|
840
840
|
return gt(e) === n && (n = n.ownerDocument.body), n;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function sn(e, t) {
|
|
843
843
|
let n = J(e);
|
|
844
|
-
if (
|
|
845
|
-
if (!
|
|
846
|
-
let t =
|
|
847
|
-
for (; t && !
|
|
848
|
-
if (
|
|
849
|
-
t =
|
|
844
|
+
if (St(e)) return n;
|
|
845
|
+
if (!vt(e)) {
|
|
846
|
+
let t = Nt(e);
|
|
847
|
+
for (; t && !At(t);) {
|
|
848
|
+
if (Y(t) && !an(t)) return t;
|
|
849
|
+
t = Nt(t);
|
|
850
850
|
}
|
|
851
851
|
return n;
|
|
852
852
|
}
|
|
853
|
-
let r =
|
|
854
|
-
for (; r &&
|
|
855
|
-
return r &&
|
|
853
|
+
let r = on(e, t);
|
|
854
|
+
for (; r && xt(r) && an(r);) r = on(r, t);
|
|
855
|
+
return r && At(r) && an(r) && !Dt(r) ? n : r || Ot(e) || n;
|
|
856
856
|
}
|
|
857
|
-
var
|
|
858
|
-
let t = this.getOffsetParent ||
|
|
857
|
+
var cn = async function(e) {
|
|
858
|
+
let t = this.getOffsetParent || sn, n = this.getDimensions, r = await n(e.floating);
|
|
859
859
|
return {
|
|
860
|
-
reference:
|
|
860
|
+
reference: rn(e.reference, await t(e.floating), e.strategy),
|
|
861
861
|
floating: {
|
|
862
862
|
x: 0,
|
|
863
863
|
y: 0,
|
|
@@ -866,23 +866,23 @@ var ln = async function(e) {
|
|
|
866
866
|
}
|
|
867
867
|
};
|
|
868
868
|
};
|
|
869
|
-
function
|
|
870
|
-
return
|
|
869
|
+
function ln(e) {
|
|
870
|
+
return jt(e).direction === "rtl";
|
|
871
871
|
}
|
|
872
|
-
var
|
|
873
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
872
|
+
var un = {
|
|
873
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Kt,
|
|
874
874
|
getDocumentElement: gt,
|
|
875
|
-
getClippingRect:
|
|
876
|
-
getOffsetParent:
|
|
877
|
-
getElementRects:
|
|
878
|
-
getClientRects:
|
|
879
|
-
getDimensions:
|
|
880
|
-
getScale:
|
|
881
|
-
isElement:
|
|
882
|
-
isRTL:
|
|
883
|
-
},
|
|
875
|
+
getClippingRect: tn,
|
|
876
|
+
getOffsetParent: sn,
|
|
877
|
+
getElementRects: cn,
|
|
878
|
+
getClientRects: qt,
|
|
879
|
+
getDimensions: nn,
|
|
880
|
+
getScale: zt,
|
|
881
|
+
isElement: Y,
|
|
882
|
+
isRTL: ln
|
|
883
|
+
}, dn = pt, fn = ut, pn = (e, t, n) => {
|
|
884
884
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
885
|
-
platform:
|
|
885
|
+
platform: un,
|
|
886
886
|
...n
|
|
887
887
|
}, a = {
|
|
888
888
|
...i.platform,
|
|
@@ -892,22 +892,22 @@ var dn = {
|
|
|
892
892
|
...i,
|
|
893
893
|
platform: a
|
|
894
894
|
});
|
|
895
|
-
},
|
|
895
|
+
}, X = /* @__PURE__ */ _e({
|
|
896
896
|
Vue: () => e,
|
|
897
897
|
Vue2: () => void 0,
|
|
898
|
-
del: () =>
|
|
899
|
-
install: () =>
|
|
898
|
+
del: () => _n,
|
|
899
|
+
install: () => hn,
|
|
900
900
|
isVue2: () => !1,
|
|
901
901
|
isVue3: () => !0,
|
|
902
|
-
set: () =>
|
|
902
|
+
set: () => gn
|
|
903
903
|
});
|
|
904
|
-
import * as
|
|
905
|
-
|
|
906
|
-
function
|
|
907
|
-
function
|
|
904
|
+
import * as mn from "vue";
|
|
905
|
+
ye(X, mn);
|
|
906
|
+
function hn() {}
|
|
907
|
+
function gn(e, t, n) {
|
|
908
908
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function _n(e, t) {
|
|
911
911
|
if (Array.isArray(e)) {
|
|
912
912
|
e.splice(t, 1);
|
|
913
913
|
return;
|
|
@@ -916,40 +916,40 @@ function vn(e, t) {
|
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#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
|
|
919
|
-
function
|
|
919
|
+
function vn(e) {
|
|
920
920
|
return typeof e == "object" && !!e && "$el" in e;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
if (
|
|
922
|
+
function yn(e) {
|
|
923
|
+
if (vn(e)) {
|
|
924
924
|
let t = e.$el;
|
|
925
925
|
return _t(t) && ht(t) === "#comment" ? null : t;
|
|
926
926
|
}
|
|
927
927
|
return e;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
return typeof e == "function" ? e() : (0,
|
|
929
|
+
function bn(e) {
|
|
930
|
+
return typeof e == "function" ? e() : (0, X.unref)(e);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function xn(e) {
|
|
933
933
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
let n =
|
|
935
|
+
function Sn(e, t) {
|
|
936
|
+
let n = xn(e);
|
|
937
937
|
return Math.round(t * n) / n;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function Cn(e, t, n) {
|
|
940
940
|
n === void 0 && (n = {});
|
|
941
|
-
let r = n.whileElementsMounted, i = (0,
|
|
941
|
+
let r = n.whileElementsMounted, i = (0, X.computed)(() => bn(n.open) ?? !0), a = (0, X.computed)(() => bn(n.middleware)), o = (0, X.computed)(() => bn(n.placement) ?? "bottom"), s = (0, X.computed)(() => bn(n.strategy) ?? "absolute"), c = (0, X.computed)(() => bn(n.transform) ?? !0), l = (0, X.computed)(() => yn(e.value)), u = (0, X.computed)(() => yn(t.value)), d = (0, X.ref)(0), f = (0, X.ref)(0), p = (0, X.ref)(s.value), m = (0, X.ref)(o.value), h = (0, X.shallowRef)({}), g = (0, X.ref)(!1), _ = (0, X.computed)(() => {
|
|
942
942
|
let e = {
|
|
943
943
|
position: p.value,
|
|
944
944
|
left: "0",
|
|
945
945
|
top: "0"
|
|
946
946
|
};
|
|
947
947
|
if (!u.value) return e;
|
|
948
|
-
let t =
|
|
948
|
+
let t = Sn(u.value, d.value), n = Sn(u.value, f.value);
|
|
949
949
|
return c.value ? {
|
|
950
950
|
...e,
|
|
951
951
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
952
|
-
...
|
|
952
|
+
...xn(u.value) >= 1.5 && { willChange: "transform" }
|
|
953
953
|
} : {
|
|
954
954
|
position: p.value,
|
|
955
955
|
left: t + "px",
|
|
@@ -959,7 +959,7 @@ function wn(e, t, n) {
|
|
|
959
959
|
function y() {
|
|
960
960
|
if (l.value == null || u.value == null) return;
|
|
961
961
|
let e = i.value;
|
|
962
|
-
|
|
962
|
+
pn(l.value, u.value, {
|
|
963
963
|
middleware: a.value,
|
|
964
964
|
placement: o.value,
|
|
965
965
|
strategy: s.value
|
|
@@ -983,42 +983,42 @@ function wn(e, t, n) {
|
|
|
983
983
|
function S() {
|
|
984
984
|
i.value || (g.value = !1);
|
|
985
985
|
}
|
|
986
|
-
return (0,
|
|
986
|
+
return (0, X.watch)([
|
|
987
987
|
a,
|
|
988
988
|
o,
|
|
989
989
|
s,
|
|
990
990
|
i
|
|
991
|
-
], y, { flush: "sync" }), (0,
|
|
992
|
-
x: (0,
|
|
993
|
-
y: (0,
|
|
994
|
-
strategy: (0,
|
|
995
|
-
placement: (0,
|
|
996
|
-
middlewareData: (0,
|
|
997
|
-
isPositioned: (0,
|
|
991
|
+
], y, { flush: "sync" }), (0, X.watch)([l, u], x, { flush: "sync" }), (0, X.watch)(i, S, { flush: "sync" }), (0, X.getCurrentScope)() && (0, X.onScopeDispose)(b), {
|
|
992
|
+
x: (0, X.shallowReadonly)(d),
|
|
993
|
+
y: (0, X.shallowReadonly)(f),
|
|
994
|
+
strategy: (0, X.shallowReadonly)(p),
|
|
995
|
+
placement: (0, X.shallowReadonly)(m),
|
|
996
|
+
middlewareData: (0, X.shallowReadonly)(h),
|
|
997
|
+
isPositioned: (0, X.shallowReadonly)(g),
|
|
998
998
|
floatingStyles: _,
|
|
999
999
|
update: y
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
//#endregion
|
|
1003
1003
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
1004
|
-
function
|
|
1004
|
+
function wn(e) {
|
|
1005
1005
|
return h() ? (E(e), !0) : !1;
|
|
1006
1006
|
}
|
|
1007
|
-
var
|
|
1007
|
+
var Tn = typeof window < "u" && typeof document < "u";
|
|
1008
1008
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1009
|
-
var
|
|
1010
|
-
function
|
|
1011
|
-
return
|
|
1009
|
+
var En = (e) => e != null, Dn = Object.prototype.toString, On = (e) => Dn.call(e) === "[object Object]", kn = () => {}, An = /* @__PURE__ */ jn();
|
|
1010
|
+
function jn() {
|
|
1011
|
+
return Tn && (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));
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
if (e.length !== 1) return
|
|
1013
|
+
function Mn(...e) {
|
|
1014
|
+
if (e.length !== 1) return ne(...e);
|
|
1015
1015
|
let t = e[0];
|
|
1016
1016
|
return typeof t == "function" ? k(d(() => ({
|
|
1017
1017
|
get: t,
|
|
1018
|
-
set:
|
|
1018
|
+
set: kn
|
|
1019
1019
|
}))) : A(t);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Nn(e, t) {
|
|
1022
1022
|
function n(...n) {
|
|
1023
1023
|
return new Promise((r, i) => {
|
|
1024
1024
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -1030,13 +1030,13 @@ function Pn(e, t) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
return n;
|
|
1032
1032
|
}
|
|
1033
|
-
var
|
|
1034
|
-
function
|
|
1035
|
-
let n, r, i =
|
|
1036
|
-
clearTimeout(e), i(), i =
|
|
1033
|
+
var Pn = (e) => e();
|
|
1034
|
+
function Fn(e, t = {}) {
|
|
1035
|
+
let n, r, i = kn, a = (e) => {
|
|
1036
|
+
clearTimeout(e), i(), i = kn;
|
|
1037
1037
|
}, o;
|
|
1038
1038
|
return (s) => {
|
|
1039
|
-
let c =
|
|
1039
|
+
let c = I(e), l = I(t.maxWait);
|
|
1040
1040
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
1041
1041
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
1042
1042
|
n && a(n), r = void 0, e(o());
|
|
@@ -1046,81 +1046,81 @@ function In(e, t = {}) {
|
|
|
1046
1046
|
});
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function In(e) {
|
|
1050
1050
|
return Array.isArray(e) ? e : [e];
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Ln(e) {
|
|
1053
1053
|
return e || m();
|
|
1054
1054
|
}
|
|
1055
1055
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1056
|
+
function Rn(e, t = 200, n = {}) {
|
|
1057
|
+
return Nn(Fn(t, n), e);
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
let { eventFilter: r =
|
|
1061
|
-
return
|
|
1059
|
+
function zn(e, t, n = {}) {
|
|
1060
|
+
let { eventFilter: r = Pn, ...i } = n;
|
|
1061
|
+
return z(e, Nn(r, t), i);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
|
|
1063
|
+
function Bn(e, t = !0, n) {
|
|
1064
|
+
Ln(n) ? T(e, n) : t ? e() : b(e);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Vn(e, t, n = {}) {
|
|
1067
1067
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
1068
|
-
return
|
|
1068
|
+
return zn(e, t, {
|
|
1069
1069
|
...a,
|
|
1070
|
-
eventFilter:
|
|
1070
|
+
eventFilter: Fn(r, { maxWait: i })
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1073
|
+
function Hn(e, t, n) {
|
|
1074
|
+
return z(e, t, {
|
|
1075
1075
|
...n,
|
|
1076
1076
|
immediate: !0
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
//#endregion
|
|
1080
1080
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
1081
|
-
var
|
|
1082
|
-
|
|
1083
|
-
function
|
|
1084
|
-
let t =
|
|
1081
|
+
var Un = Tn ? window : void 0;
|
|
1082
|
+
Tn && window.document, Tn && window.navigator, Tn && window.location;
|
|
1083
|
+
function Wn(e) {
|
|
1084
|
+
let t = I(e);
|
|
1085
1085
|
return t?.$el ?? t;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Gn(...e) {
|
|
1088
1088
|
let t = [], n = () => {
|
|
1089
1089
|
t.forEach((e) => e()), t.length = 0;
|
|
1090
1090
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
1091
|
-
let t =
|
|
1091
|
+
let t = In(I(e[0])).filter((e) => e != null);
|
|
1092
1092
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
1093
|
-
}), o =
|
|
1094
|
-
a.value?.map((e) =>
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1093
|
+
}), o = Hn(() => [
|
|
1094
|
+
a.value?.map((e) => Wn(e)) ?? [Un].filter((e) => e != null),
|
|
1095
|
+
In(I(a.value ? e[1] : e[0])),
|
|
1096
|
+
In(L(a.value ? e[2] : e[1])),
|
|
1097
|
+
I(a.value ? e[3] : e[2])
|
|
1098
1098
|
], ([e, r, a, o]) => {
|
|
1099
1099
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
1100
|
-
let s =
|
|
1100
|
+
let s = On(o) ? { ...o } : o;
|
|
1101
1101
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
1102
1102
|
}, { flush: "post" });
|
|
1103
|
-
return
|
|
1103
|
+
return wn(n), () => {
|
|
1104
1104
|
o(), n();
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
1107
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1108
|
-
function
|
|
1108
|
+
function Kn() {
|
|
1109
1109
|
let e = P(!1), t = m();
|
|
1110
1110
|
return t && T(() => {
|
|
1111
1111
|
e.value = !0;
|
|
1112
1112
|
}, t), e;
|
|
1113
1113
|
}
|
|
1114
1114
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1115
|
-
function
|
|
1116
|
-
let t = /* @__PURE__ */
|
|
1115
|
+
function qn(e) {
|
|
1116
|
+
let t = /* @__PURE__ */ Kn();
|
|
1117
1117
|
return r(() => (t.value, !!e()));
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
let { window: i =
|
|
1119
|
+
function Jn(e, t, n = {}) {
|
|
1120
|
+
let { window: i = Un, ...a } = n, o, s = /* @__PURE__ */ qn(() => i && "MutationObserver" in i), c = () => {
|
|
1121
1121
|
o &&= (o.disconnect(), void 0);
|
|
1122
|
-
}, l =
|
|
1123
|
-
let t =
|
|
1122
|
+
}, l = z(r(() => {
|
|
1123
|
+
let t = In(I(e)).map(Wn).filter(En);
|
|
1124
1124
|
return new Set(t);
|
|
1125
1125
|
}), (e) => {
|
|
1126
1126
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -1130,21 +1130,21 @@ function Yn(e, t, n = {}) {
|
|
|
1130
1130
|
}), u = () => o?.takeRecords(), d = () => {
|
|
1131
1131
|
l(), c();
|
|
1132
1132
|
};
|
|
1133
|
-
return
|
|
1133
|
+
return wn(d), {
|
|
1134
1134
|
isSupported: s,
|
|
1135
1135
|
stop: d,
|
|
1136
1136
|
takeRecords: u
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
let { window: r =
|
|
1141
|
-
if (!r || !i) return
|
|
1139
|
+
function Yn(e, t, n = {}) {
|
|
1140
|
+
let { window: r = Un, document: i = r?.document, flush: a = "sync" } = n;
|
|
1141
|
+
if (!r || !i) return kn;
|
|
1142
1142
|
let o, s = (e) => {
|
|
1143
1143
|
o?.(), o = e;
|
|
1144
|
-
}, c =
|
|
1145
|
-
let n =
|
|
1144
|
+
}, c = ue(() => {
|
|
1145
|
+
let n = Wn(e);
|
|
1146
1146
|
if (n) {
|
|
1147
|
-
let { stop: e } =
|
|
1147
|
+
let { stop: e } = Jn(i, (e) => {
|
|
1148
1148
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
1149
1149
|
}, {
|
|
1150
1150
|
window: r,
|
|
@@ -1156,25 +1156,25 @@ function Xn(e, t, n = {}) {
|
|
|
1156
1156
|
}, { flush: a }), l = () => {
|
|
1157
1157
|
c(), s();
|
|
1158
1158
|
};
|
|
1159
|
-
return
|
|
1159
|
+
return wn(l), l;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Xn(e) {
|
|
1162
1162
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Zn(...e) {
|
|
1165
1165
|
let t, n, r = {};
|
|
1166
1166
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
1167
|
-
let { target: i =
|
|
1168
|
-
return
|
|
1169
|
-
e.repeat &&
|
|
1167
|
+
let { target: i = Un, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Xn(t);
|
|
1168
|
+
return Gn(i, a, (e) => {
|
|
1169
|
+
e.repeat && I(s) || c(e) && n(e);
|
|
1170
1170
|
}, o);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
let { window: i =
|
|
1172
|
+
function Qn(e, t, n = {}) {
|
|
1173
|
+
let { window: i = Un, ...a } = n, o, s = /* @__PURE__ */ qn(() => i && "ResizeObserver" in i), c = () => {
|
|
1174
1174
|
o &&= (o.disconnect(), void 0);
|
|
1175
|
-
}, l =
|
|
1176
|
-
let t =
|
|
1177
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
1175
|
+
}, l = z(r(() => {
|
|
1176
|
+
let t = I(e);
|
|
1177
|
+
return Array.isArray(t) ? t.map((e) => Wn(e)) : [Wn(t)];
|
|
1178
1178
|
}), (e) => {
|
|
1179
1179
|
if (c(), s.value && i) {
|
|
1180
1180
|
o = new ResizeObserver(t);
|
|
@@ -1186,15 +1186,15 @@ function $n(e, t, n = {}) {
|
|
|
1186
1186
|
}), u = () => {
|
|
1187
1187
|
c(), l();
|
|
1188
1188
|
};
|
|
1189
|
-
return
|
|
1189
|
+
return wn(u), {
|
|
1190
1190
|
isSupported: s,
|
|
1191
1191
|
stop: u
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function $n(e, t = {}) {
|
|
1195
1195
|
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = P(0), c = P(0), l = P(0), u = P(0), d = P(0), f = P(0), p = P(0), m = P(0);
|
|
1196
1196
|
function h() {
|
|
1197
|
-
let t =
|
|
1197
|
+
let t = Wn(e);
|
|
1198
1198
|
if (!t) {
|
|
1199
1199
|
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);
|
|
1200
1200
|
return;
|
|
@@ -1205,10 +1205,10 @@ function er(e, t = {}) {
|
|
|
1205
1205
|
function g() {
|
|
1206
1206
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
1207
1207
|
}
|
|
1208
|
-
return
|
|
1208
|
+
return Qn(e, g), z(() => Wn(e), (e) => !e && g()), Jn(e, g, { attributeFilter: ["style", "class"] }), i && Gn("scroll", g, {
|
|
1209
1209
|
capture: !0,
|
|
1210
1210
|
passive: !0
|
|
1211
|
-
}), r &&
|
|
1211
|
+
}), r && Gn("resize", g, { passive: !0 }), Bn(() => {
|
|
1212
1212
|
a && g();
|
|
1213
1213
|
}), {
|
|
1214
1214
|
height: s,
|
|
@@ -1222,70 +1222,70 @@ function er(e, t = {}) {
|
|
|
1222
1222
|
update: g
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1226
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
1225
|
+
function er(e, t = {}) {
|
|
1226
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Un } = t, s = P(!1), c, l = (e) => {
|
|
1227
1227
|
let t = e ? n : i;
|
|
1228
1228
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
1229
1229
|
};
|
|
1230
|
-
return o ? (
|
|
1230
|
+
return o ? (Gn(e, "mouseenter", () => l(!0), { passive: !0 }), Gn(e, "mouseleave", () => l(!1), { passive: !0 }), a && Yn(r(() => Wn(e)), () => l(!1)), s) : s;
|
|
1231
1231
|
}
|
|
1232
1232
|
//#endregion
|
|
1233
1233
|
//#region ../node_modules/.pnpm/@vueuse+components@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/components/index.mjs
|
|
1234
|
-
var
|
|
1235
|
-
function
|
|
1236
|
-
let t =
|
|
1234
|
+
var tr = Tn ? window : void 0;
|
|
1235
|
+
function nr(e) {
|
|
1236
|
+
let t = I(e);
|
|
1237
1237
|
return t?.$el ?? t;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function rr(...e) {
|
|
1240
1240
|
let t = [], n = () => {
|
|
1241
1241
|
t.forEach((e) => e()), t.length = 0;
|
|
1242
1242
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
1243
|
-
let t =
|
|
1243
|
+
let t = In(I(e[0])).filter((e) => e != null);
|
|
1244
1244
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
1245
|
-
}), o =
|
|
1246
|
-
a.value?.map((e) =>
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1245
|
+
}), o = Hn(() => [
|
|
1246
|
+
a.value?.map((e) => nr(e)) ?? [tr].filter((e) => e != null),
|
|
1247
|
+
In(I(a.value ? e[1] : e[0])),
|
|
1248
|
+
In(L(a.value ? e[2] : e[1])),
|
|
1249
|
+
I(a.value ? e[3] : e[2])
|
|
1250
1250
|
], ([e, r, a, o]) => {
|
|
1251
1251
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
1252
|
-
let s =
|
|
1252
|
+
let s = On(o) ? { ...o } : o;
|
|
1253
1253
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
1254
1254
|
}, { flush: "post" });
|
|
1255
|
-
return
|
|
1255
|
+
return wn(n), () => {
|
|
1256
1256
|
o(), n();
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1261
|
-
let { window: r =
|
|
1259
|
+
var ir = !1;
|
|
1260
|
+
function ar(e, t, n = {}) {
|
|
1261
|
+
let { window: r = tr, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
1262
1262
|
if (!r) return s ? {
|
|
1263
|
-
stop:
|
|
1264
|
-
cancel:
|
|
1265
|
-
trigger:
|
|
1266
|
-
} :
|
|
1267
|
-
if (
|
|
1268
|
-
|
|
1263
|
+
stop: kn,
|
|
1264
|
+
cancel: kn,
|
|
1265
|
+
trigger: kn
|
|
1266
|
+
} : kn;
|
|
1267
|
+
if (An && !ir) {
|
|
1268
|
+
ir = !0;
|
|
1269
1269
|
let e = { passive: !0 };
|
|
1270
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
1270
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", kn, e)), r.document.documentElement.addEventListener("click", kn, e);
|
|
1271
1271
|
}
|
|
1272
|
-
let c = !0, l = (e) =>
|
|
1272
|
+
let c = !0, l = (e) => I(i).some((t) => {
|
|
1273
1273
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
1274
1274
|
{
|
|
1275
|
-
let n =
|
|
1275
|
+
let n = nr(t);
|
|
1276
1276
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
1279
|
function u(e) {
|
|
1280
|
-
let t =
|
|
1280
|
+
let t = I(e);
|
|
1281
1281
|
return t && t.$.subTree.shapeFlag === 16;
|
|
1282
1282
|
}
|
|
1283
1283
|
function d(e, t) {
|
|
1284
|
-
let n =
|
|
1284
|
+
let n = I(e), r = n.$.subTree && n.$.subTree.children;
|
|
1285
1285
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
1286
1286
|
}
|
|
1287
1287
|
let f = (n) => {
|
|
1288
|
-
let r =
|
|
1288
|
+
let r = nr(e);
|
|
1289
1289
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
1290
1290
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
1291
1291
|
c = !0;
|
|
@@ -1294,7 +1294,7 @@ function or(e, t, n = {}) {
|
|
|
1294
1294
|
t(n);
|
|
1295
1295
|
}
|
|
1296
1296
|
}, p = !1, m = [
|
|
1297
|
-
|
|
1297
|
+
rr(r, "click", (e) => {
|
|
1298
1298
|
p || (p = !0, setTimeout(() => {
|
|
1299
1299
|
p = !1;
|
|
1300
1300
|
}, 0), f(e));
|
|
@@ -1302,13 +1302,13 @@ function or(e, t, n = {}) {
|
|
|
1302
1302
|
passive: !0,
|
|
1303
1303
|
capture: a
|
|
1304
1304
|
}),
|
|
1305
|
-
|
|
1306
|
-
let n =
|
|
1305
|
+
rr(r, "pointerdown", (t) => {
|
|
1306
|
+
let n = nr(e);
|
|
1307
1307
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
1308
1308
|
}, { passive: !0 }),
|
|
1309
|
-
o &&
|
|
1309
|
+
o && rr(r, "blur", (n) => {
|
|
1310
1310
|
setTimeout(() => {
|
|
1311
|
-
let i =
|
|
1311
|
+
let i = nr(e);
|
|
1312
1312
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
1313
1313
|
}, 0);
|
|
1314
1314
|
}, { passive: !0 })
|
|
@@ -1323,57 +1323,57 @@ function or(e, t, n = {}) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
} : h;
|
|
1325
1325
|
}
|
|
1326
|
-
var
|
|
1326
|
+
var or = /* @__PURE__ */ new WeakMap(), sr = {
|
|
1327
1327
|
mounted(e, t) {
|
|
1328
1328
|
let n = !t.modifiers.bubble, r;
|
|
1329
|
-
if (typeof t.value == "function") r =
|
|
1329
|
+
if (typeof t.value == "function") r = ar(e, t.value, { capture: n });
|
|
1330
1330
|
else {
|
|
1331
1331
|
let [i, a] = t.value;
|
|
1332
|
-
r =
|
|
1332
|
+
r = ar(e, i, Object.assign({ capture: n }, a));
|
|
1333
1333
|
}
|
|
1334
|
-
|
|
1334
|
+
or.set(e, r);
|
|
1335
1335
|
},
|
|
1336
1336
|
unmounted(e) {
|
|
1337
|
-
let t =
|
|
1338
|
-
t && typeof t == "function" ? t() : t?.stop(),
|
|
1337
|
+
let t = or.get(e);
|
|
1338
|
+
t && typeof t == "function" ? t() : t?.stop(), or.delete(e);
|
|
1339
1339
|
}
|
|
1340
1340
|
};
|
|
1341
|
-
function
|
|
1341
|
+
function cr(e) {
|
|
1342
1342
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function lr(e) {
|
|
1345
1345
|
let t = window.getComputedStyle(e);
|
|
1346
1346
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
1347
1347
|
{
|
|
1348
1348
|
let t = e.parentNode;
|
|
1349
|
-
return !t || t.tagName === "BODY" ? !1 :
|
|
1349
|
+
return !t || t.tagName === "BODY" ? !1 : lr(t);
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function ur(e) {
|
|
1353
1353
|
let t = e || window.event, n = t.target;
|
|
1354
|
-
return
|
|
1354
|
+
return lr(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
1355
1355
|
}
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1356
|
+
var dr = /* @__PURE__ */ new WeakMap();
|
|
1357
|
+
function fr(e, t = !1) {
|
|
1358
1358
|
let n = P(t), i = null, a = "";
|
|
1359
|
-
|
|
1360
|
-
let t =
|
|
1359
|
+
z(Mn(e), (e) => {
|
|
1360
|
+
let t = cr(I(e));
|
|
1361
1361
|
if (t) {
|
|
1362
1362
|
let e = t;
|
|
1363
|
-
if (
|
|
1363
|
+
if (dr.get(e) || dr.set(e, e.style.overflow), e.style.overflow !== "hidden" && (a = e.style.overflow), e.style.overflow === "hidden") return n.value = !0;
|
|
1364
1364
|
if (n.value) return e.style.overflow = "hidden";
|
|
1365
1365
|
}
|
|
1366
1366
|
}, { immediate: !0 });
|
|
1367
1367
|
let o = () => {
|
|
1368
|
-
let t =
|
|
1369
|
-
!t || n.value || (
|
|
1370
|
-
|
|
1368
|
+
let t = cr(I(e));
|
|
1369
|
+
!t || n.value || (An && (i = rr(t, "touchmove", (e) => {
|
|
1370
|
+
ur(e);
|
|
1371
1371
|
}, { passive: !1 })), t.style.overflow = "hidden", n.value = !0);
|
|
1372
1372
|
}, s = () => {
|
|
1373
|
-
let t =
|
|
1374
|
-
!t || !n.value || (
|
|
1373
|
+
let t = cr(I(e));
|
|
1374
|
+
!t || !n.value || (An && i?.(), t.style.overflow = a, dr.delete(t), n.value = !1);
|
|
1375
1375
|
};
|
|
1376
|
-
return
|
|
1376
|
+
return wn(s), r({
|
|
1377
1377
|
get() {
|
|
1378
1378
|
return n.value;
|
|
1379
1379
|
},
|
|
@@ -1382,19 +1382,19 @@ function pr(e, t = !1) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function pr() {
|
|
1386
1386
|
let e = !1, t = P(!1);
|
|
1387
1387
|
return (n, r) => {
|
|
1388
1388
|
if (t.value = r.value, e) return;
|
|
1389
1389
|
e = !0;
|
|
1390
|
-
let i =
|
|
1391
|
-
|
|
1390
|
+
let i = fr(n, r.value);
|
|
1391
|
+
z(t, (e) => i.value = e);
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1394
|
+
pr();
|
|
1395
1395
|
//#endregion
|
|
1396
1396
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1397
|
-
var
|
|
1397
|
+
var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
1398
1398
|
__name: "PvPopoverV2",
|
|
1399
1399
|
props: /* @__PURE__ */ v({
|
|
1400
1400
|
disableAutoPlacement: {
|
|
@@ -1445,7 +1445,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1445
1445
|
}),
|
|
1446
1446
|
emits: ["update:modelValue"],
|
|
1447
1447
|
setup(e) {
|
|
1448
|
-
let t = e, c =
|
|
1448
|
+
let t = e, c = ie(e, "modelValue"), l = A(null), u = A(null), d = A(null), f = er(l), p = er(d), m = {
|
|
1449
1449
|
"top-center": "top",
|
|
1450
1450
|
"bottom-center": "bottom",
|
|
1451
1451
|
"center-left": "left",
|
|
@@ -1459,19 +1459,19 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1459
1459
|
l.value && (u.value = l.value.firstElementChild);
|
|
1460
1460
|
});
|
|
1461
1461
|
let h = [];
|
|
1462
|
-
t.disableAutoPlacement || h?.push(
|
|
1463
|
-
let { floatingStyles: g, update: _ } =
|
|
1462
|
+
t.disableAutoPlacement || h?.push(fn({ fallbackStrategy: "initialPlacement" })), t.offset && h?.push(dn(t.offset));
|
|
1463
|
+
let { floatingStyles: g, update: _ } = Cn(u, d, {
|
|
1464
1464
|
placement: m[t.position],
|
|
1465
1465
|
strategy: t.positioningStrategy,
|
|
1466
1466
|
middleware: h
|
|
1467
1467
|
});
|
|
1468
|
-
|
|
1468
|
+
z(c, (e) => {
|
|
1469
1469
|
e && u.value && d.value && _();
|
|
1470
1470
|
});
|
|
1471
|
-
let v =
|
|
1471
|
+
let v = $n(u), y = /* @__PURE__ */ Rn(() => {
|
|
1472
1472
|
c.value && _();
|
|
1473
1473
|
}, 5);
|
|
1474
|
-
|
|
1474
|
+
z([
|
|
1475
1475
|
v.top,
|
|
1476
1476
|
v.left,
|
|
1477
1477
|
v.width,
|
|
@@ -1493,31 +1493,31 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1493
1493
|
}, E = r(() => {
|
|
1494
1494
|
let e = [d.value].filter(Boolean);
|
|
1495
1495
|
return e.push(".p-datepicker-panel"), t.ignoreClickOutsideClasses && e.push(...t.ignoreClickOutsideClasses.map((e) => `.${e}`)), e;
|
|
1496
|
-
}),
|
|
1496
|
+
}), ee = r(() => t.showOnHover ? t.disableInteractive ? f.value : f.value || p.value : !1), te = () => {
|
|
1497
1497
|
t.showOnHover || w(x ? !1 : !c.value);
|
|
1498
1498
|
}, k = () => {
|
|
1499
1499
|
t.disableClickOutsideToClose || w(!1);
|
|
1500
1500
|
};
|
|
1501
|
-
return
|
|
1501
|
+
return z(ee, (e) => {
|
|
1502
1502
|
t.showOnHover && w(e);
|
|
1503
|
-
}),
|
|
1503
|
+
}), D(() => {
|
|
1504
1504
|
S();
|
|
1505
|
-
}), (r, u) =>
|
|
1505
|
+
}), (r, u) => fe((O(), o("div", mr, [s("div", {
|
|
1506
1506
|
ref_key: "triggerWrapper",
|
|
1507
1507
|
ref: l,
|
|
1508
|
-
onClick:
|
|
1509
|
-
}, [M(r.$slots, "trigger")], 512), r.$slots.content ? (
|
|
1508
|
+
onClick: te
|
|
1509
|
+
}, [M(r.$slots, "trigger")], 512), r.$slots.content ? (O(), i(n, {
|
|
1510
1510
|
key: 0,
|
|
1511
1511
|
to: e.teleportLocation,
|
|
1512
1512
|
disabled: !t.useTeleport
|
|
1513
|
-
}, [
|
|
1513
|
+
}, [fe(s("div", {
|
|
1514
1514
|
class: "pv-floating",
|
|
1515
1515
|
ref_key: "floating",
|
|
1516
1516
|
ref: d,
|
|
1517
1517
|
style: C(b.value)
|
|
1518
|
-
}, [M(r.$slots, "content")], 4), [[
|
|
1518
|
+
}, [M(r.$slots, "content")], 4), [[le, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[L(sr), [k, { ignore: E.value }]]]);
|
|
1519
1519
|
}
|
|
1520
|
-
}),
|
|
1520
|
+
}), gr = ["data-variant"], _r = /* @__PURE__ */ f({
|
|
1521
1521
|
__name: "PvTooltipV2",
|
|
1522
1522
|
props: {
|
|
1523
1523
|
variant: {
|
|
@@ -1556,20 +1556,20 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1556
1556
|
ignoreClickOutsideClasses: { type: Array }
|
|
1557
1557
|
},
|
|
1558
1558
|
setup(e) {
|
|
1559
|
-
return (t, n) => (
|
|
1560
|
-
trigger:
|
|
1559
|
+
return (t, n) => (O(), i(hr, S(g(t.$props)), c({
|
|
1560
|
+
trigger: de(() => [M(t.$slots, "trigger", {}, () => [s("p", null, F(e.label), 1)])]),
|
|
1561
1561
|
_: 2
|
|
1562
1562
|
}, [t.$slots.content || e.description ? {
|
|
1563
1563
|
name: "content",
|
|
1564
|
-
fn:
|
|
1564
|
+
fn: de(() => [s("div", {
|
|
1565
1565
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1566
1566
|
role: "tooltip",
|
|
1567
1567
|
"data-variant": e.variant
|
|
1568
|
-
}, [M(t.$slots, "content", {}, () => [l(F(e.description), 1)])], 10,
|
|
1568
|
+
}, [M(t.$slots, "content", {}, () => [l(F(e.description), 1)])], 10, gr)]),
|
|
1569
1569
|
key: "0"
|
|
1570
1570
|
} : void 0]), 1040));
|
|
1571
1571
|
}
|
|
1572
|
-
}),
|
|
1572
|
+
}), vr = /* @__PURE__ */ f({
|
|
1573
1573
|
__name: "PvSegmentedControl",
|
|
1574
1574
|
props: /* @__PURE__ */ v({
|
|
1575
1575
|
options: {
|
|
@@ -1586,16 +1586,16 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1586
1586
|
}),
|
|
1587
1587
|
emits: ["update:modelValue"],
|
|
1588
1588
|
setup(e) {
|
|
1589
|
-
let n =
|
|
1589
|
+
let n = ie(e, "modelValue"), r = (e) => {
|
|
1590
1590
|
e.disabled || (n.value = e.value);
|
|
1591
1591
|
};
|
|
1592
|
-
return (a, s) => (
|
|
1592
|
+
return (a, s) => (O(), o("div", { class: x(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(O(!0), o(t, null, j(e.options, (e) => (O(), i(_r, {
|
|
1593
1593
|
key: e.value,
|
|
1594
1594
|
variant: "dark",
|
|
1595
1595
|
position: "bottom-right",
|
|
1596
1596
|
style: { width: "100%" }
|
|
1597
1597
|
}, c({
|
|
1598
|
-
trigger:
|
|
1598
|
+
trigger: de(() => [u(W, {
|
|
1599
1599
|
class: x(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1600
1600
|
variant: "ghost",
|
|
1601
1601
|
label: e.label,
|
|
@@ -1618,15 +1618,15 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1618
1618
|
_: 2
|
|
1619
1619
|
}, [e.disabledReason ? {
|
|
1620
1620
|
name: "content",
|
|
1621
|
-
fn:
|
|
1621
|
+
fn: de(() => [l(F(e.disabledReason), 1)]),
|
|
1622
1622
|
key: "0"
|
|
1623
1623
|
} : void 0]), 1024))), 128))], 2));
|
|
1624
1624
|
}
|
|
1625
|
-
}),
|
|
1625
|
+
}), yr = [
|
|
1626
1626
|
"data-style",
|
|
1627
1627
|
"disabled",
|
|
1628
1628
|
"title"
|
|
1629
|
-
],
|
|
1629
|
+
], br = { class: "pv-truncate" }, xr = /* @__PURE__ */ f({
|
|
1630
1630
|
__name: "PvSuggestionTag",
|
|
1631
1631
|
props: {
|
|
1632
1632
|
size: {
|
|
@@ -1651,7 +1651,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1651
1651
|
default: return "";
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
|
-
return (t, r) => (
|
|
1654
|
+
return (t, r) => (O(), o("button", {
|
|
1655
1655
|
class: x(["pv-border-dashed pv-tag-secondary", n.value]),
|
|
1656
1656
|
onClick: r[0] ||= (n) => t.$emit("handle-click", e.label),
|
|
1657
1657
|
"data-testid": "pv-suggestion-tag",
|
|
@@ -1659,25 +1659,25 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1659
1659
|
"data-style": e.rounded ? "rounded" : void 0,
|
|
1660
1660
|
disabled: e.disabled,
|
|
1661
1661
|
title: e.label
|
|
1662
|
-
}, [e.icon ? (
|
|
1662
|
+
}, [e.icon ? (O(), i(Ee, {
|
|
1663
1663
|
key: 0,
|
|
1664
1664
|
"data-testid": "pv-suggestion-tag-icon",
|
|
1665
1665
|
name: e.icon,
|
|
1666
1666
|
size: 12,
|
|
1667
1667
|
class: x(e.iconClasses)
|
|
1668
|
-
}, null, 8, ["name", "class"])) : a("v-if", !0), s("span",
|
|
1668
|
+
}, null, 8, ["name", "class"])) : a("v-if", !0), s("span", br, F(e.label), 1)], 10, yr));
|
|
1669
1669
|
}
|
|
1670
|
-
}),
|
|
1670
|
+
}), Sr = (e, t, n) => {
|
|
1671
1671
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
1672
1672
|
if (r.length <= 1) return "Search";
|
|
1673
1673
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
1674
1674
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
1675
|
-
},
|
|
1675
|
+
}, Cr = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, showPrefix: i = !0 }) => {
|
|
1676
1676
|
if (!r) return e;
|
|
1677
1677
|
if (!i || !n) return r;
|
|
1678
1678
|
let a = t(n);
|
|
1679
1679
|
return a ? `${a}: ${r}` : r;
|
|
1680
|
-
},
|
|
1680
|
+
}, wr = () => ({
|
|
1681
1681
|
booleanValue: null,
|
|
1682
1682
|
existsValue: !1,
|
|
1683
1683
|
rangeValue: {
|
|
@@ -1685,15 +1685,15 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1685
1685
|
min: null
|
|
1686
1686
|
},
|
|
1687
1687
|
values: []
|
|
1688
|
-
}),
|
|
1689
|
-
conditions: e.conditions.map(
|
|
1688
|
+
}), Tr = (e) => typeof e == "object" && !!e && !Array.isArray(e), Er = (e) => Tr(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", Dr = (e) => Tr(e) && e.filterType === "join" && Array.isArray(e.conditions), Or = (e) => e, kr = (e) => Dr(e) ? {
|
|
1689
|
+
conditions: e.conditions.map(kr),
|
|
1690
1690
|
filterType: "join",
|
|
1691
1691
|
type: e.type
|
|
1692
|
-
} : { ...e },
|
|
1693
|
-
if (!
|
|
1694
|
-
if (
|
|
1692
|
+
} : { ...e }, Ar = (e) => {
|
|
1693
|
+
if (!Tr(e)) return null;
|
|
1694
|
+
if (Dr(e)) {
|
|
1695
1695
|
let t = e.conditions.flatMap((e) => {
|
|
1696
|
-
let t =
|
|
1696
|
+
let t = Ar(e);
|
|
1697
1697
|
return t ? [t] : [];
|
|
1698
1698
|
});
|
|
1699
1699
|
return t.length ? {
|
|
@@ -1702,43 +1702,43 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1702
1702
|
type: e.type === "OR" ? "OR" : "AND"
|
|
1703
1703
|
} : null;
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1706
|
-
},
|
|
1705
|
+
return Er(e) ? { ...e } : null;
|
|
1706
|
+
}, jr = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, Mr = (e) => Tr(e) && !Dr(e) && !Er(e), Nr = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), Pr = {
|
|
1707
1707
|
number: "agNumberColumnFilter",
|
|
1708
1708
|
set: "agSetColumnFilter",
|
|
1709
1709
|
text: "agTextColumnFilter"
|
|
1710
|
-
},
|
|
1710
|
+
}, Fr = (e) => {
|
|
1711
1711
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
1712
1712
|
let t = e.filterParams;
|
|
1713
1713
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
1714
|
+
}, Ir = (e, t) => {
|
|
1715
|
+
let n = Fr(e), r = t.filterType ? Pr[t.filterType] : void 0;
|
|
1716
|
+
return r ? n.findIndex((e) => Tr(e) && e.filter === r) : -1;
|
|
1714
1717
|
}, Lr = (e, t) => {
|
|
1715
|
-
let n =
|
|
1716
|
-
return r ? n.findIndex((e) => Er(e) && e.filter === r) : -1;
|
|
1717
|
-
}, Rr = (e, t) => {
|
|
1718
|
-
let n = Ir(e);
|
|
1718
|
+
let n = Fr(e);
|
|
1719
1719
|
if (!n.length) return null;
|
|
1720
|
-
let r = Array(n.length).fill(null), i =
|
|
1720
|
+
let r = Array(n.length).fill(null), i = Ir(e, t);
|
|
1721
1721
|
return i < 0 ? null : (r[i] = t, {
|
|
1722
1722
|
filterModels: r,
|
|
1723
1723
|
filterType: "multi"
|
|
1724
1724
|
});
|
|
1725
|
-
},
|
|
1726
|
-
if (!
|
|
1725
|
+
}, Rr = (e, t) => {
|
|
1726
|
+
if (!Mr(e)) return null;
|
|
1727
1727
|
let n = e[t];
|
|
1728
|
-
return
|
|
1729
|
-
},
|
|
1728
|
+
return Tr(n) ? n : null;
|
|
1729
|
+
}, zr = (e) => e ? Nr(e) ? e.filterModels.filter((e) => Tr(e)) : [e] : [], Br = (e) => Mr(e) ? { ...e } : {}, Vr = (e) => Nr(e) ? {
|
|
1730
1730
|
...e,
|
|
1731
1731
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
1732
|
-
} : { ...e },
|
|
1733
|
-
let n =
|
|
1732
|
+
} : { ...e }, Hr = (e, t) => {
|
|
1733
|
+
let n = Br(e);
|
|
1734
1734
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
1735
|
-
},
|
|
1735
|
+
}, Ur = /* @__PURE__ */ new Set(), Wr = (e, t) => {
|
|
1736
1736
|
let n = `${e}:${t ?? "unknown"}`;
|
|
1737
|
-
|
|
1738
|
-
},
|
|
1739
|
-
let a =
|
|
1740
|
-
if (
|
|
1741
|
-
let o =
|
|
1737
|
+
Ur.has(n) || (console.warn(`PvFilterPanel: overwriting an occupied regular multi-filter slot for "${e}" because the target slot was occupied or no empty slot was available.`), Ur.add(n));
|
|
1738
|
+
}, Gr = (e, t, n, r, i) => {
|
|
1739
|
+
let a = Rr(e, t);
|
|
1740
|
+
if (Nr(a) && r) {
|
|
1741
|
+
let o = Br(e), s = Vr(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
1742
1742
|
if (!n) {
|
|
1743
1743
|
for (let e of l) c[e] = null;
|
|
1744
1744
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -1751,15 +1751,15 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1751
1751
|
c[e] = n;
|
|
1752
1752
|
for (let e of t) c[e] = null;
|
|
1753
1753
|
} else {
|
|
1754
|
-
let e =
|
|
1754
|
+
let e = Ir(i, n), r = c.findIndex((e) => !e), a = Fr(i).length > 0;
|
|
1755
1755
|
if (e >= 0) {
|
|
1756
1756
|
for (; c.length <= e;) c.push(null);
|
|
1757
|
-
c[e] &&
|
|
1757
|
+
c[e] && Wr(t, n.filterType), c[e] = n;
|
|
1758
1758
|
} else if (r >= 0) c[r] = n;
|
|
1759
1759
|
else if (!a) c.push(n);
|
|
1760
1760
|
else {
|
|
1761
1761
|
let e = Math.max(0, c.length - 1);
|
|
1762
|
-
|
|
1762
|
+
Wr(t, n.filterType), c[e] = n;
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
return o[t] = {
|
|
@@ -1767,54 +1767,54 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1767
1767
|
filterModels: c
|
|
1768
1768
|
}, o;
|
|
1769
1769
|
}
|
|
1770
|
-
if (!n) return
|
|
1771
|
-
let o =
|
|
1772
|
-
return o[t] =
|
|
1773
|
-
},
|
|
1770
|
+
if (!n) return Hr(e, t);
|
|
1771
|
+
let o = Br(e);
|
|
1772
|
+
return o[t] = Lr(i, n) ?? n, o;
|
|
1773
|
+
}, Kr = (e, t) => {
|
|
1774
1774
|
if (e) {
|
|
1775
|
-
if (
|
|
1776
|
-
e.conditions.forEach((e) =>
|
|
1775
|
+
if (Dr(e)) {
|
|
1776
|
+
e.conditions.forEach((e) => Kr(e, t));
|
|
1777
1777
|
return;
|
|
1778
1778
|
}
|
|
1779
1779
|
t(e);
|
|
1780
1780
|
}
|
|
1781
|
-
},
|
|
1782
|
-
if (!
|
|
1781
|
+
}, qr = (e, t) => Dr(e) ? e.conditions.length > 0 && e.conditions.every((e) => qr(e, t)) : e.colId === t, Jr = (e) => {
|
|
1782
|
+
if (!Dr(e)) return e.colId;
|
|
1783
1783
|
let t = /* @__PURE__ */ new Set();
|
|
1784
|
-
return
|
|
1785
|
-
},
|
|
1786
|
-
if (!e ||
|
|
1787
|
-
if (!
|
|
1788
|
-
let n = e.conditions.flatMap((e) =>
|
|
1784
|
+
return Kr(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
1785
|
+
}, Yr = (e, t) => {
|
|
1786
|
+
if (!e || qr(e, t)) return null;
|
|
1787
|
+
if (!Dr(e) || e.type !== "AND") return kr(e);
|
|
1788
|
+
let n = e.conditions.flatMap((e) => qr(e, t) ? [] : [kr(e)]);
|
|
1789
1789
|
return n.length ? n.length === 1 ? n[0] : {
|
|
1790
1790
|
conditions: n,
|
|
1791
1791
|
filterType: e.filterType,
|
|
1792
1792
|
type: e.type
|
|
1793
1793
|
} : null;
|
|
1794
|
-
},
|
|
1795
|
-
let r =
|
|
1796
|
-
return n ? r ?
|
|
1794
|
+
}, Xr = (e, t, n) => {
|
|
1795
|
+
let r = Yr(Ar(e), t);
|
|
1796
|
+
return n ? r ? Dr(r) && r.type === "AND" ? Or({
|
|
1797
1797
|
...r,
|
|
1798
1798
|
conditions: [...r.conditions, n]
|
|
1799
|
-
}) :
|
|
1799
|
+
}) : Or({
|
|
1800
1800
|
conditions: [r, n],
|
|
1801
1801
|
filterType: "join",
|
|
1802
1802
|
type: "AND"
|
|
1803
|
-
}) :
|
|
1804
|
-
},
|
|
1803
|
+
}) : Or(n) : Or(r);
|
|
1804
|
+
}, Zr = (e, t) => {
|
|
1805
1805
|
e.includes(t) || e.push(t);
|
|
1806
|
-
},
|
|
1806
|
+
}, Qr = (e) => {
|
|
1807
1807
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
1808
1808
|
let t = String(e.filter);
|
|
1809
1809
|
return t === "true" || t === "false";
|
|
1810
|
-
},
|
|
1810
|
+
}, $r = (e) => e.filterType === "boolean" || Qr(e), ei = (e, t) => {
|
|
1811
1811
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
1812
|
-
e.values.forEach((e) =>
|
|
1812
|
+
e.values.forEach((e) => Zr(t.values, String(e)));
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
1815
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
1816
1816
|
let n = String(e.filter);
|
|
1817
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
1817
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Zr(t.values, n);
|
|
1818
1818
|
return;
|
|
1819
1819
|
}
|
|
1820
1820
|
if (e.filterType === "boolean") {
|
|
@@ -1838,7 +1838,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1838
1838
|
...t.rangeValue,
|
|
1839
1839
|
max: e.filter
|
|
1840
1840
|
}));
|
|
1841
|
-
},
|
|
1841
|
+
}, ti = (e, t) => {
|
|
1842
1842
|
if (e.type === "notBlank") {
|
|
1843
1843
|
t.existsValue = !0;
|
|
1844
1844
|
return;
|
|
@@ -1848,12 +1848,12 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1848
1848
|
return;
|
|
1849
1849
|
}
|
|
1850
1850
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
1851
|
-
e.values.forEach((e) =>
|
|
1851
|
+
e.values.forEach((e) => Zr(t.values, String(e)));
|
|
1852
1852
|
return;
|
|
1853
1853
|
}
|
|
1854
1854
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
1855
1855
|
let n = String(e.filter);
|
|
1856
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
1856
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Zr(t.values, n);
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
1859
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -1866,29 +1866,29 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1866
1866
|
...t.rangeValue,
|
|
1867
1867
|
max: e.filter
|
|
1868
1868
|
}));
|
|
1869
|
-
},
|
|
1869
|
+
}, ni = (e, t = "advanced") => {
|
|
1870
1870
|
let n = /* @__PURE__ */ new Map();
|
|
1871
1871
|
if (t === "regular") {
|
|
1872
|
-
if (!
|
|
1872
|
+
if (!Mr(e)) return n;
|
|
1873
1873
|
for (let [t, r] of Object.entries(e)) {
|
|
1874
|
-
let e =
|
|
1875
|
-
|
|
1874
|
+
let e = wr();
|
|
1875
|
+
zr(r).forEach((t) => ei(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
1876
1876
|
}
|
|
1877
1877
|
return n;
|
|
1878
1878
|
}
|
|
1879
|
-
let r =
|
|
1879
|
+
let r = Ar(e);
|
|
1880
1880
|
if (!r) return n;
|
|
1881
|
-
let i =
|
|
1881
|
+
let i = Dr(r) && r.type === "AND" ? r.conditions : [r];
|
|
1882
1882
|
for (let e of i) {
|
|
1883
|
-
let t =
|
|
1883
|
+
let t = Jr(e);
|
|
1884
1884
|
if (!t) continue;
|
|
1885
|
-
let r = n.get(t) ??
|
|
1886
|
-
|
|
1887
|
-
e.colId === t &&
|
|
1885
|
+
let r = n.get(t) ?? wr();
|
|
1886
|
+
Kr(e, (e) => {
|
|
1887
|
+
e.colId === t && ti(e, r);
|
|
1888
1888
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
1889
1889
|
}
|
|
1890
1890
|
return n;
|
|
1891
|
-
},
|
|
1891
|
+
}, ri = (e, t = "advanced") => t === "regular" ? Mr(e) && Object.keys(e).length > 0 : Ar(e) !== null, ii = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", ai = (e, t, n = "advanced") => n === "regular" ? Hr(e, t) : Or(Yr(Ar(e), t)), oi = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Gr(e, t, null, $r, a) : ai(e, t, r) : r === "regular" ? Gr(e, t, i === "text" ? {
|
|
1892
1892
|
filter: String(n),
|
|
1893
1893
|
filterType: "text",
|
|
1894
1894
|
type: "equals"
|
|
@@ -1896,30 +1896,30 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1896
1896
|
filter: n,
|
|
1897
1897
|
filterType: "boolean",
|
|
1898
1898
|
type: n ? "true" : "false"
|
|
1899
|
-
},
|
|
1899
|
+
}, $r, a) : i === "text" ? Xr(e, t, {
|
|
1900
1900
|
colId: t,
|
|
1901
1901
|
filter: String(n),
|
|
1902
1902
|
filterType: "text",
|
|
1903
1903
|
type: "equals"
|
|
1904
|
-
}) :
|
|
1904
|
+
}) : Xr(e, t, {
|
|
1905
1905
|
colId: t,
|
|
1906
1906
|
filterType: "boolean",
|
|
1907
1907
|
type: n ? "true" : "false"
|
|
1908
|
-
}),
|
|
1908
|
+
}), si = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Gr(e, t, {
|
|
1909
1909
|
filterType: r,
|
|
1910
1910
|
type: "notBlank"
|
|
1911
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
1911
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Xr(e, t, {
|
|
1912
1912
|
colId: t,
|
|
1913
1913
|
filterType: r,
|
|
1914
1914
|
type: "notBlank"
|
|
1915
|
-
}) : i === "regular" ?
|
|
1916
|
-
let o =
|
|
1917
|
-
if (i === "regular") return o === null && s === null ?
|
|
1915
|
+
}) : i === "regular" ? Gr(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : ai(e, t, i), ci = (e, t, n, r, i = "advanced", a) => {
|
|
1916
|
+
let o = jr(n), s = jr(r);
|
|
1917
|
+
if (i === "regular") return o === null && s === null ? Gr(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Gr(e, t, {
|
|
1918
1918
|
filter: o,
|
|
1919
1919
|
filterTo: s,
|
|
1920
1920
|
filterType: "number",
|
|
1921
1921
|
type: "inRange"
|
|
1922
|
-
}, (e) => e.filterType === "number", a) :
|
|
1922
|
+
}, (e) => e.filterType === "number", a) : Gr(e, t, {
|
|
1923
1923
|
filter: o ?? s,
|
|
1924
1924
|
filterType: "number",
|
|
1925
1925
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -1935,29 +1935,29 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1935
1935
|
filter: s,
|
|
1936
1936
|
filterType: "number",
|
|
1937
1937
|
type: "lessThanOrEqual"
|
|
1938
|
-
}), c.length ?
|
|
1938
|
+
}), c.length ? Xr(e, t, c.length === 1 ? c[0] : {
|
|
1939
1939
|
conditions: c,
|
|
1940
1940
|
filterType: "join",
|
|
1941
1941
|
type: "AND"
|
|
1942
|
-
}) :
|
|
1943
|
-
},
|
|
1942
|
+
}) : ai(e, t);
|
|
1943
|
+
}, li = (e, t, n, r = "advanced", i) => {
|
|
1944
1944
|
let a = Array.from(new Set(n));
|
|
1945
|
-
if (r === "regular") return a.length ?
|
|
1945
|
+
if (r === "regular") return a.length ? Gr(e, t, {
|
|
1946
1946
|
filterType: "set",
|
|
1947
1947
|
values: a
|
|
1948
|
-
}, (e) => e.filterType === "set", i) :
|
|
1948
|
+
}, (e) => e.filterType === "set", i) : Gr(e, t, null, (e) => e.filterType === "set", i);
|
|
1949
1949
|
let o = a.map((e) => ({
|
|
1950
1950
|
colId: t,
|
|
1951
1951
|
filter: e,
|
|
1952
1952
|
filterType: "text",
|
|
1953
1953
|
type: "equals"
|
|
1954
1954
|
}));
|
|
1955
|
-
return o.length ?
|
|
1955
|
+
return o.length ? Xr(e, t, o.length === 1 ? o[0] : {
|
|
1956
1956
|
conditions: o,
|
|
1957
1957
|
filterType: "join",
|
|
1958
1958
|
type: "OR"
|
|
1959
|
-
}) :
|
|
1960
|
-
},
|
|
1959
|
+
}) : ai(e, t);
|
|
1960
|
+
}, ui = "__pv_filter_panel_scoped_value__", di = (e) => typeof e == "object" && !!e, fi = (e) => {
|
|
1961
1961
|
try {
|
|
1962
1962
|
let t = JSON.parse(decodeURIComponent(e));
|
|
1963
1963
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -1971,7 +1971,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1971
1971
|
} catch {
|
|
1972
1972
|
return [];
|
|
1973
1973
|
}
|
|
1974
|
-
},
|
|
1974
|
+
}, pi = (e) => {
|
|
1975
1975
|
if (!e.startsWith("__")) return null;
|
|
1976
1976
|
let t = e.slice(2).split("__");
|
|
1977
1977
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -1984,19 +1984,19 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
1984
1984
|
pairs: n,
|
|
1985
1985
|
value: n[0].value
|
|
1986
1986
|
};
|
|
1987
|
-
},
|
|
1987
|
+
}, mi = (e) => {
|
|
1988
1988
|
if (e == null) return null;
|
|
1989
|
-
if (!e.startsWith(
|
|
1989
|
+
if (!e.startsWith(ui)) return pi(e) ?? {
|
|
1990
1990
|
pairs: [],
|
|
1991
1991
|
value: e
|
|
1992
1992
|
};
|
|
1993
|
-
let t =
|
|
1993
|
+
let t = fi(e.slice(32));
|
|
1994
1994
|
return {
|
|
1995
1995
|
field: t[0]?.field,
|
|
1996
1996
|
pairs: t,
|
|
1997
1997
|
value: t[0]?.value ?? e
|
|
1998
1998
|
};
|
|
1999
|
-
},
|
|
1999
|
+
}, hi = (e, t) => `${ui}${encodeURIComponent(JSON.stringify([[e, t]]))}`, gi = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : di(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : mi(e.value)?.value ?? e.value : null, _i = (e, t) => e?.field ? e.field : e?.colField ? e.colField : mi(e?.value)?.field ?? t, vi = (e) => e.flatMap((e) => [e, ...e.children?.length ? vi(e.children) : []]), yi = (e, t, n, r) => _i(e, r) === t && gi(e) === n, bi = (e) => {
|
|
2000
2000
|
let t = e;
|
|
2001
2001
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
2002
2002
|
}, xi = (e) => {
|
|
@@ -2040,12 +2040,12 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2040
2040
|
if (i) return i;
|
|
2041
2041
|
}
|
|
2042
2042
|
}, Ai = (e, t) => {
|
|
2043
|
-
let n = Oi(t, e), r = n ? _i(n, "") : void 0, i = n ?
|
|
2043
|
+
let n = Oi(t, e), r = n ? _i(n, "") : void 0, i = n ? gi(n) : null;
|
|
2044
2044
|
if (r && i !== null) return {
|
|
2045
2045
|
field: r,
|
|
2046
2046
|
value: i
|
|
2047
2047
|
};
|
|
2048
|
-
let a =
|
|
2048
|
+
let a = mi(e);
|
|
2049
2049
|
return {
|
|
2050
2050
|
field: a?.field,
|
|
2051
2051
|
value: a?.value ?? e
|
|
@@ -2053,7 +2053,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2053
2053
|
}, ji = (e, t, n) => {
|
|
2054
2054
|
let r = (e) => {
|
|
2055
2055
|
if (!e) return;
|
|
2056
|
-
let i = _i(e, ""), a =
|
|
2056
|
+
let i = _i(e, ""), a = gi(e);
|
|
2057
2057
|
if (i === t && a === n) return e.value;
|
|
2058
2058
|
for (let t of e.children ?? []) {
|
|
2059
2059
|
let e = r(t);
|
|
@@ -2239,7 +2239,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2239
2239
|
colField: r,
|
|
2240
2240
|
label: i,
|
|
2241
2241
|
metadata: { rawValue: i },
|
|
2242
|
-
value: r ?
|
|
2242
|
+
value: r ? hi(r, i) : t.id
|
|
2243
2243
|
}];
|
|
2244
2244
|
}), Qi = (e) => e.filter((e) => e.state === "selected").length, $i = [
|
|
2245
2245
|
"totalCount",
|
|
@@ -2317,8 +2317,8 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2317
2317
|
}),
|
|
2318
2318
|
emits: ["update:modelValue"],
|
|
2319
2319
|
setup(e) {
|
|
2320
|
-
let t =
|
|
2321
|
-
return (n, r) =>
|
|
2320
|
+
let t = ie(e, "modelValue");
|
|
2321
|
+
return (n, r) => fe((O(), o("input", {
|
|
2322
2322
|
ref: "checkbox-ref",
|
|
2323
2323
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
2324
2324
|
class: "pv-checkbox",
|
|
@@ -2327,7 +2327,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2327
2327
|
"aria-label": e.ariaLabel,
|
|
2328
2328
|
disabled: e.disabled,
|
|
2329
2329
|
indeterminate: e.indeterminate
|
|
2330
|
-
}, null, 8, ua)), [[
|
|
2330
|
+
}, null, 8, ua)), [[se, t.value]]);
|
|
2331
2331
|
}
|
|
2332
2332
|
}), fa = { class: "pv-relative" }, pa = ["disabled", "placeholder"], ma = {
|
|
2333
2333
|
key: 0,
|
|
@@ -2354,17 +2354,17 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2354
2354
|
}),
|
|
2355
2355
|
emits: ["update:modelValue"],
|
|
2356
2356
|
setup(e, { expose: t }) {
|
|
2357
|
-
let n = e, i =
|
|
2357
|
+
let n = e, i = oe("search-input"), c = ie(e, "modelValue"), l = r(() => ({
|
|
2358
2358
|
"pv-input-search": !0,
|
|
2359
2359
|
"pv-full-width": !0,
|
|
2360
2360
|
"pv-input-padded-end": !0
|
|
2361
2361
|
}));
|
|
2362
2362
|
return T(() => {
|
|
2363
|
-
n.displayShortcut &&
|
|
2363
|
+
n.displayShortcut && Zn(ha, (e) => {
|
|
2364
2364
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
2365
2365
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
2366
2366
|
});
|
|
2367
|
-
}), t({ input: i }), (t, n) => (
|
|
2367
|
+
}), t({ input: i }), (t, n) => (O(), o("div", fa, [fe(s("input", {
|
|
2368
2368
|
ref: "search-input",
|
|
2369
2369
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
2370
2370
|
"data-testid": "pv-search-input",
|
|
@@ -2372,7 +2372,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2372
2372
|
disabled: e.disabled,
|
|
2373
2373
|
class: x(l.value),
|
|
2374
2374
|
placeholder: e.placeholder
|
|
2375
|
-
}, null, 10, pa), [[
|
|
2375
|
+
}, null, 10, pa), [[ce, c.value]]), e.displayShortcut ? (O(), o("kbd", ma, F(ha))) : a("v-if", !0)]));
|
|
2376
2376
|
}
|
|
2377
2377
|
}), _a = {
|
|
2378
2378
|
key: 0,
|
|
@@ -2512,22 +2512,22 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2512
2512
|
}),
|
|
2513
2513
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
2514
2514
|
setup(e) {
|
|
2515
|
-
let t = e, n =
|
|
2515
|
+
let t = e, n = ie(e, "modelValue"), c = ie(e, "rangeValue"), l = R(), u = re(), d = `${u}-max`, f = `${u}-min`, p = A(""), m = A(""), h = A(null), g = A(null), _ = A(!1), v = A(null), b = null, S = null, T = (e) => typeof e == "number" && Number.isFinite(e), E = (e) => T(e) ? e : null, D = (e) => {
|
|
2516
2516
|
let t = e.trim();
|
|
2517
2517
|
if (t === "") return null;
|
|
2518
2518
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
2519
2519
|
return Number.isFinite(n) ? n : null;
|
|
2520
|
-
},
|
|
2520
|
+
}, ee = (e) => e === "currency" || e === "integer" || e === "percent" ? 0 : null, te = () => {
|
|
2521
2521
|
if (t.valueDecimals !== null && t.valueDecimals !== void 0) return Math.max(0, t.valueDecimals);
|
|
2522
|
-
let e =
|
|
2522
|
+
let e = ee(t.dataType);
|
|
2523
2523
|
return e === null ? 2 : e;
|
|
2524
2524
|
}, k = (e) => String(e), j = (e) => {
|
|
2525
|
-
let n =
|
|
2525
|
+
let n = te(), r = new Intl.NumberFormat("en-US", {
|
|
2526
2526
|
maximumFractionDigits: n,
|
|
2527
2527
|
minimumFractionDigits: 0
|
|
2528
2528
|
}).format(e);
|
|
2529
2529
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
2530
|
-
}, M = r(() => E(t.step)), N = r(() => M.value !== null && M.value > 0 ? M.value : 0), P = r(() => N.value > 0 ? String(N.value) : "any"),
|
|
2530
|
+
}, M = r(() => E(t.step)), N = r(() => M.value !== null && M.value > 0 ? M.value : 0), P = r(() => N.value > 0 ? String(N.value) : "any"), ne = r(() => M.value === null ? "1" : M.value > 0 ? String(M.value) : "any"), I = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), ae = r(() => {
|
|
2531
2531
|
let e = E(t.min) ?? Oa, n = E(t.max) ?? ka;
|
|
2532
2532
|
return e > n ? {
|
|
2533
2533
|
max: e,
|
|
@@ -2539,13 +2539,13 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2539
2539
|
max: n,
|
|
2540
2540
|
min: e
|
|
2541
2541
|
};
|
|
2542
|
-
}),
|
|
2543
|
-
let { max: e, min: t } =
|
|
2542
|
+
}), oe = r(() => E(n.value) ?? ae.value.min), se = r(() => {
|
|
2543
|
+
let { max: e, min: t } = ae.value, n = e - t, r = n === 0 ? 0 : (oe.value - t) / n * 100;
|
|
2544
2544
|
return Math.max(0, Math.min(100, r));
|
|
2545
|
-
}),
|
|
2546
|
-
"--range-track-color":
|
|
2547
|
-
"--value": `${
|
|
2548
|
-
})),
|
|
2545
|
+
}), le = r(() => ({
|
|
2546
|
+
"--range-track-color": I.value,
|
|
2547
|
+
"--value": `${se.value}%`
|
|
2548
|
+
})), ue = r(() => ({ left: `${se.value}%` })), de = (e) => {
|
|
2549
2549
|
if (!Number.isFinite(e)) return 0;
|
|
2550
2550
|
let t = String(e).toLowerCase();
|
|
2551
2551
|
if (t.includes("e-")) {
|
|
@@ -2553,144 +2553,144 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2553
2553
|
return (e?.split(".")[1]?.length ?? 0) + Number(n);
|
|
2554
2554
|
}
|
|
2555
2555
|
return t.split(".")[1]?.length ?? 0;
|
|
2556
|
-
},
|
|
2556
|
+
}, B = r(() => {
|
|
2557
2557
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Oa, r ?? Oa, i ?? Oa), o = n ?? Math.max(ka, r ?? ka, i ?? ka);
|
|
2558
2558
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (N.value > 0 ? N.value : 1)), {
|
|
2559
2559
|
max: o,
|
|
2560
2560
|
min: a
|
|
2561
2561
|
};
|
|
2562
|
-
}),
|
|
2563
|
-
let e = Math.max(
|
|
2564
|
-
return N.value <= 0 ? Math.max(6, e) : Math.max(e,
|
|
2565
|
-
}),
|
|
2566
|
-
let t = Math.min(20,
|
|
2567
|
-
return
|
|
2568
|
-
},
|
|
2562
|
+
}), V = (e) => Math.max(B.value.min, Math.min(B.value.max, e)), me = r(() => {
|
|
2563
|
+
let e = Math.max(de(B.value.min), de(B.value.max));
|
|
2564
|
+
return N.value <= 0 ? Math.max(6, e) : Math.max(e, de(N.value));
|
|
2565
|
+
}), he = (e) => {
|
|
2566
|
+
let t = Math.min(20, me.value);
|
|
2567
|
+
return V(Number(e.toFixed(t)));
|
|
2568
|
+
}, ge = r(() => {
|
|
2569
2569
|
if (t.allowMinMaxEqual) return 0;
|
|
2570
|
-
let e =
|
|
2570
|
+
let e = B.value.max - B.value.min;
|
|
2571
2571
|
if (e <= 0) return 0;
|
|
2572
|
-
let n = Math.max(e / 1e6, 10 ** -
|
|
2572
|
+
let n = Math.max(e / 1e6, 10 ** -me.value), r = N.value > 0 ? N.value : n;
|
|
2573
2573
|
return Math.min(r, e);
|
|
2574
|
-
}),
|
|
2575
|
-
let n =
|
|
2576
|
-
if (N.value <= 0) return
|
|
2577
|
-
let { min: r } =
|
|
2578
|
-
return
|
|
2579
|
-
},
|
|
2580
|
-
let n = Math.max(
|
|
2581
|
-
return
|
|
2582
|
-
},
|
|
2583
|
-
let n = Math.min(
|
|
2584
|
-
return
|
|
2585
|
-
},
|
|
2586
|
-
let e = E(c.value?.min) ??
|
|
2574
|
+
}), _e = (e, t = "nearest") => {
|
|
2575
|
+
let n = V(e);
|
|
2576
|
+
if (N.value <= 0) return he(n);
|
|
2577
|
+
let { min: r } = B.value, i = (n - r) / N.value;
|
|
2578
|
+
return he(V((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * N.value + r));
|
|
2579
|
+
}, ve = (e, t) => {
|
|
2580
|
+
let n = Math.max(B.value.min, t - ge.value);
|
|
2581
|
+
return _e(Math.min(e, n), "down");
|
|
2582
|
+
}, ye = (e, t) => {
|
|
2583
|
+
let n = Math.min(B.value.max, t + ge.value);
|
|
2584
|
+
return _e(Math.max(e, n), "up");
|
|
2585
|
+
}, H = r(() => {
|
|
2586
|
+
let e = E(c.value?.min) ?? B.value.min, t = E(c.value?.max) ?? B.value.max, n = V(e), r = V(t);
|
|
2587
2587
|
return {
|
|
2588
2588
|
max: Math.max(n, r),
|
|
2589
2589
|
min: Math.min(n, r)
|
|
2590
2590
|
};
|
|
2591
|
-
}),
|
|
2592
|
-
let { max: t, min: n } =
|
|
2591
|
+
}), be = (e) => {
|
|
2592
|
+
let { max: t, min: n } = B.value;
|
|
2593
2593
|
return t === n ? 0 : (e - n) / (t - n) * 100;
|
|
2594
|
-
},
|
|
2595
|
-
"--range-track-color":
|
|
2596
|
-
"--value-max": `${
|
|
2597
|
-
"--value-min": `${
|
|
2598
|
-
})),
|
|
2594
|
+
}, xe = r(() => be(H.value.min)), Se = r(() => be(H.value.max)), Ce = r(() => ({
|
|
2595
|
+
"--range-track-color": I.value,
|
|
2596
|
+
"--value-max": `${Se.value}%`,
|
|
2597
|
+
"--value-min": `${xe.value}%`
|
|
2598
|
+
})), we = r(() => ({ left: `${xe.value}%` })), Te = r(() => ({ left: `${Se.value}%` })), Ee = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), De = () => E(t.min) !== null || B.value.min === Oa, Oe = () => E(t.max) !== null || B.value.max === ka, ke = (e, t) => {
|
|
2599
2599
|
c.value = {
|
|
2600
|
-
max: t >=
|
|
2601
|
-
min: e <=
|
|
2600
|
+
max: t >= B.value.max && Oe() ? null : t,
|
|
2601
|
+
min: e <= B.value.min && De() ? null : e
|
|
2602
2602
|
};
|
|
2603
|
-
},
|
|
2604
|
-
|
|
2605
|
-
}, Oe = (e) => {
|
|
2606
|
-
Ee(G.value.min, ge(e, G.value.min));
|
|
2607
|
-
}, ke = () => {
|
|
2608
|
-
h.value = null;
|
|
2603
|
+
}, U = (e) => {
|
|
2604
|
+
ke(ve(e, H.value.max), H.value.max);
|
|
2609
2605
|
}, Ae = (e) => {
|
|
2610
|
-
|
|
2606
|
+
ke(H.value.min, ye(e, H.value.min));
|
|
2611
2607
|
}, je = () => {
|
|
2608
|
+
h.value = null;
|
|
2609
|
+
}, Me = (e) => {
|
|
2610
|
+
h.value = e;
|
|
2611
|
+
}, Ne = () => {
|
|
2612
2612
|
c.value = {
|
|
2613
2613
|
max: null,
|
|
2614
2614
|
min: null
|
|
2615
2615
|
};
|
|
2616
|
-
}, Me = () => {
|
|
2617
|
-
S?.(), S = null;
|
|
2618
|
-
}, Ne = () => {
|
|
2619
|
-
_.value = !1, Me();
|
|
2620
2616
|
}, Pe = () => {
|
|
2621
|
-
|
|
2622
|
-
}, Fe = (
|
|
2623
|
-
|
|
2624
|
-
}, Ie = (
|
|
2625
|
-
|
|
2626
|
-
}, Le = () => {
|
|
2627
|
-
|
|
2628
|
-
}, q = (e) => {
|
|
2629
|
-
let t = ee(e === "min" ? m.value : p.value), n = t === null ? e === "min" ? U.value.min : U.value.max : me(t);
|
|
2630
|
-
e === "min" ? De(n) : Oe(n);
|
|
2617
|
+
S?.(), S = null;
|
|
2618
|
+
}, Fe = () => {
|
|
2619
|
+
_.value = !1, Pe();
|
|
2620
|
+
}, Ie = () => {
|
|
2621
|
+
t.disabled || (_.value = !0, Pe(), window.addEventListener("pointerup", Fe), S = () => window.removeEventListener("pointerup", Fe));
|
|
2622
|
+
}, Le = (e) => {
|
|
2623
|
+
Me("min"), U(Number(e.target.value));
|
|
2631
2624
|
}, Re = (e) => {
|
|
2632
|
-
|
|
2633
|
-
}, ze = (
|
|
2634
|
-
|
|
2625
|
+
Me("max"), Ae(Number(e.target.value));
|
|
2626
|
+
}, ze = () => {
|
|
2627
|
+
g.value !== "min" && (m.value = k(H.value.min)), g.value !== "max" && (p.value = k(H.value.max));
|
|
2635
2628
|
}, Be = (e) => {
|
|
2636
|
-
|
|
2629
|
+
let t = D(e === "min" ? m.value : p.value), n = t === null ? e === "min" ? B.value.min : B.value.max : _e(t);
|
|
2630
|
+
e === "min" ? U(n) : Ae(n);
|
|
2637
2631
|
}, Ve = (e) => {
|
|
2638
|
-
|
|
2639
|
-
},
|
|
2640
|
-
|
|
2641
|
-
},
|
|
2632
|
+
m.value = e.target.value, Be("min");
|
|
2633
|
+
}, G = (e) => {
|
|
2634
|
+
p.value = e.target.value, Be("max");
|
|
2635
|
+
}, He = (e) => {
|
|
2636
|
+
g.value = e;
|
|
2637
|
+
}, K = (e) => {
|
|
2638
|
+
Be(e), g.value = null, ze();
|
|
2639
|
+
}, Ue = (e, t) => {
|
|
2640
|
+
e.preventDefault(), Be(t), e.target.blur();
|
|
2641
|
+
}, We = (e) => {
|
|
2642
2642
|
let t = v.value?.getBoundingClientRect();
|
|
2643
2643
|
if (!t || t.width <= 0) return null;
|
|
2644
2644
|
let n = Math.max(0, Math.min(1, (e - t.left) / t.width));
|
|
2645
|
-
return
|
|
2646
|
-
},
|
|
2647
|
-
let n =
|
|
2645
|
+
return _e(B.value.min + n * (B.value.max - B.value.min));
|
|
2646
|
+
}, Ge = (e) => {
|
|
2647
|
+
let n = We(e);
|
|
2648
2648
|
if (n !== null) {
|
|
2649
2649
|
if (t.alwaysEditMin) {
|
|
2650
|
-
|
|
2650
|
+
Me("min"), U(n);
|
|
2651
2651
|
return;
|
|
2652
2652
|
}
|
|
2653
|
-
Math.abs(n -
|
|
2653
|
+
Math.abs(n - H.value.min) <= Math.abs(n - H.value.max) ? (Me("min"), U(n)) : (Me("max"), Ae(n));
|
|
2654
2654
|
}
|
|
2655
|
-
},
|
|
2655
|
+
}, Ke = () => {
|
|
2656
2656
|
b?.(), b = null;
|
|
2657
|
-
},
|
|
2657
|
+
}, qe = (e) => {
|
|
2658
2658
|
if (t.disabled) return;
|
|
2659
2659
|
let n = e.target;
|
|
2660
2660
|
if (n !== v.value && !n?.classList.contains("pv-range-dual-fill")) return;
|
|
2661
|
-
|
|
2662
|
-
let r = (e) =>
|
|
2663
|
-
|
|
2661
|
+
Ge(e.clientX);
|
|
2662
|
+
let r = (e) => Ge(e.clientX), i = () => {
|
|
2663
|
+
je(), Ke();
|
|
2664
2664
|
};
|
|
2665
2665
|
window.addEventListener("pointermove", r), window.addEventListener("pointerup", i), b = () => {
|
|
2666
2666
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
|
|
2667
2667
|
}, e.preventDefault();
|
|
2668
2668
|
};
|
|
2669
|
-
return
|
|
2670
|
-
|
|
2671
|
-
}), (r, c) => e.mode === "single" ? (
|
|
2669
|
+
return z([H, B], ze, { immediate: !0 }), w(() => {
|
|
2670
|
+
Ke(), Pe();
|
|
2671
|
+
}), (r, c) => e.mode === "single" ? (O(), o("div", _a, [e.showValueTooltips && _.value ? (O(), o("span", {
|
|
2672
2672
|
key: 0,
|
|
2673
2673
|
class: "pv-range-tooltip",
|
|
2674
|
-
style: C(
|
|
2675
|
-
}, F(j(
|
|
2674
|
+
style: C(ue.value)
|
|
2675
|
+
}, F(j(oe.value)), 5)) : a("v-if", !0), fe(s("input", y({ id: L(u) }, L(l), {
|
|
2676
2676
|
"onUpdate:modelValue": c[0] ||= (e) => n.value = e,
|
|
2677
2677
|
"aria-label": e.ariaLabel,
|
|
2678
2678
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
2679
2679
|
disabled: e.disabled,
|
|
2680
|
-
max:
|
|
2681
|
-
min:
|
|
2682
|
-
step:
|
|
2683
|
-
style:
|
|
2680
|
+
max: ae.value.max,
|
|
2681
|
+
min: ae.value.min,
|
|
2682
|
+
step: ne.value,
|
|
2683
|
+
style: le.value,
|
|
2684
2684
|
type: "range",
|
|
2685
|
-
onChange:
|
|
2686
|
-
onPointerdown:
|
|
2687
|
-
onPointerup:
|
|
2685
|
+
onChange: Fe,
|
|
2686
|
+
onPointerdown: Ie,
|
|
2687
|
+
onPointerup: Fe
|
|
2688
2688
|
}), null, 16, va), [[
|
|
2689
|
-
|
|
2689
|
+
ce,
|
|
2690
2690
|
n.value,
|
|
2691
2691
|
void 0,
|
|
2692
2692
|
{ number: !0 }
|
|
2693
|
-
]])])) : (
|
|
2693
|
+
]])])) : (O(), o("div", y({ key: 1 }, L(l), {
|
|
2694
2694
|
class: "pv-flex-vertical",
|
|
2695
2695
|
"data-testid": "pv-range-dual",
|
|
2696
2696
|
role: "group",
|
|
@@ -2700,55 +2700,55 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2700
2700
|
"--flex-gap": "0"
|
|
2701
2701
|
}
|
|
2702
2702
|
}), [
|
|
2703
|
-
e.showBoundLabels ? (
|
|
2703
|
+
e.showBoundLabels ? (O(), o("div", ba, [s("span", null, F(j(B.value.min)), 1), s("span", null, F(j(B.value.max)), 1)])) : a("v-if", !0),
|
|
2704
2704
|
s("div", {
|
|
2705
2705
|
ref_key: "sliderRef",
|
|
2706
2706
|
ref: v,
|
|
2707
2707
|
class: x(["pv-range-dual-slider", [`pv-range-dual-slider-${e.size}`, { "pv-range-dual-slider-disabled": e.disabled }]]),
|
|
2708
|
-
style: C(
|
|
2709
|
-
onPointerdown:
|
|
2708
|
+
style: C(Ce.value),
|
|
2709
|
+
onPointerdown: qe
|
|
2710
2710
|
}, [
|
|
2711
2711
|
c[9] ||= s("div", { class: "pv-range-dual-fill" }, null, -1),
|
|
2712
|
-
e.showValueTooltips && h.value === "min" ? (
|
|
2712
|
+
e.showValueTooltips && h.value === "min" ? (O(), o("span", {
|
|
2713
2713
|
key: 0,
|
|
2714
2714
|
class: "pv-range-dual-tooltip",
|
|
2715
|
-
style: C(
|
|
2716
|
-
}, F(j(
|
|
2717
|
-
e.showValueTooltips && h.value === "max" ? (
|
|
2715
|
+
style: C(we.value)
|
|
2716
|
+
}, F(j(H.value.min)), 5)) : a("v-if", !0),
|
|
2717
|
+
e.showValueTooltips && h.value === "max" ? (O(), o("span", {
|
|
2718
2718
|
key: 1,
|
|
2719
2719
|
class: "pv-range-dual-tooltip",
|
|
2720
|
-
style: C(
|
|
2721
|
-
}, F(j(
|
|
2720
|
+
style: C(Te.value)
|
|
2721
|
+
}, F(j(H.value.max)), 5)) : a("v-if", !0),
|
|
2722
2722
|
s("input", {
|
|
2723
2723
|
class: "pv-range pv-range-dual-native pv-range-dual-native-min",
|
|
2724
2724
|
type: "range",
|
|
2725
2725
|
"aria-label": `${e.label} minimum`,
|
|
2726
2726
|
disabled: e.disabled,
|
|
2727
|
-
max:
|
|
2728
|
-
min:
|
|
2727
|
+
max: B.value.max,
|
|
2728
|
+
min: B.value.min,
|
|
2729
2729
|
step: P.value,
|
|
2730
|
-
value:
|
|
2731
|
-
onChange:
|
|
2732
|
-
onInput:
|
|
2733
|
-
onPointerdown: c[1] ||= (e) =>
|
|
2734
|
-
onPointerup:
|
|
2730
|
+
value: H.value.min,
|
|
2731
|
+
onChange: je,
|
|
2732
|
+
onInput: Le,
|
|
2733
|
+
onPointerdown: c[1] ||= (e) => Me("min"),
|
|
2734
|
+
onPointerup: je
|
|
2735
2735
|
}, null, 40, xa),
|
|
2736
2736
|
s("input", {
|
|
2737
2737
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
2738
2738
|
type: "range",
|
|
2739
2739
|
"aria-label": `${e.label} maximum`,
|
|
2740
2740
|
disabled: e.disabled,
|
|
2741
|
-
max:
|
|
2742
|
-
min:
|
|
2741
|
+
max: B.value.max,
|
|
2742
|
+
min: B.value.min,
|
|
2743
2743
|
step: P.value,
|
|
2744
|
-
value:
|
|
2745
|
-
onChange:
|
|
2746
|
-
onInput:
|
|
2747
|
-
onPointerdown: c[2] ||= (e) =>
|
|
2748
|
-
onPointerup:
|
|
2744
|
+
value: H.value.max,
|
|
2745
|
+
onChange: je,
|
|
2746
|
+
onInput: Re,
|
|
2747
|
+
onPointerdown: c[2] ||= (e) => Me("max"),
|
|
2748
|
+
onPointerup: je
|
|
2749
2749
|
}, null, 40, Sa)
|
|
2750
2750
|
], 38),
|
|
2751
|
-
e.showInputs ? (
|
|
2751
|
+
e.showInputs ? (O(), o("div", Ca, [
|
|
2752
2752
|
s("label", {
|
|
2753
2753
|
class: "pv-flex-vertical",
|
|
2754
2754
|
for: f,
|
|
@@ -2769,10 +2769,10 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2769
2769
|
step: P.value,
|
|
2770
2770
|
type: "text",
|
|
2771
2771
|
value: m.value,
|
|
2772
|
-
onBlur: c[3] ||= (e) =>
|
|
2773
|
-
onFocus: c[4] ||= (e) =>
|
|
2774
|
-
onInput:
|
|
2775
|
-
onKeydown: c[5] ||=
|
|
2772
|
+
onBlur: c[3] ||= (e) => K("min"),
|
|
2773
|
+
onFocus: c[4] ||= (e) => He("min"),
|
|
2774
|
+
onInput: Ve,
|
|
2775
|
+
onKeydown: c[5] ||= pe((e) => Ue(e, "min"), ["enter"])
|
|
2776
2776
|
}, null, 40, Ta)]),
|
|
2777
2777
|
s("label", {
|
|
2778
2778
|
class: "pv-flex-vertical",
|
|
@@ -2794,26 +2794,26 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2794
2794
|
step: P.value,
|
|
2795
2795
|
type: "text",
|
|
2796
2796
|
value: p.value,
|
|
2797
|
-
onBlur: c[6] ||= (e) =>
|
|
2798
|
-
onFocus: c[7] ||= (e) =>
|
|
2799
|
-
onInput:
|
|
2800
|
-
onKeydown: c[8] ||=
|
|
2797
|
+
onBlur: c[6] ||= (e) => K("max"),
|
|
2798
|
+
onFocus: c[7] ||= (e) => He("max"),
|
|
2799
|
+
onInput: G,
|
|
2800
|
+
onKeydown: c[8] ||= pe((e) => Ue(e, "max"), ["enter"])
|
|
2801
2801
|
}, null, 40, Da)]),
|
|
2802
|
-
e.showClear &&
|
|
2802
|
+
e.showClear && Ee.value ? (O(), i(W, {
|
|
2803
2803
|
key: 0,
|
|
2804
2804
|
class: "pv-text-brand",
|
|
2805
2805
|
disabled: e.disabled,
|
|
2806
2806
|
label: "Clear range",
|
|
2807
2807
|
variant: "ghost",
|
|
2808
|
-
onClick:
|
|
2808
|
+
onClick: Ne
|
|
2809
2809
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2810
|
-
])) : e.showClear &&
|
|
2810
|
+
])) : e.showClear && Ee.value ? (O(), i(W, {
|
|
2811
2811
|
key: 2,
|
|
2812
2812
|
class: "pv-text-brand",
|
|
2813
2813
|
disabled: e.disabled,
|
|
2814
2814
|
label: "Clear range",
|
|
2815
2815
|
variant: "ghost",
|
|
2816
|
-
onClick:
|
|
2816
|
+
onClick: Ne
|
|
2817
2817
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2818
2818
|
], 16, ya));
|
|
2819
2819
|
}
|
|
@@ -2829,7 +2829,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2829
2829
|
}, Fa = {
|
|
2830
2830
|
key: 2,
|
|
2831
2831
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
2832
|
-
}, Ia = /* @__PURE__ */
|
|
2832
|
+
}, Ia = /* @__PURE__ */ ke(/* @__PURE__ */ f({
|
|
2833
2833
|
__name: "PvFilterPanelOptionRow",
|
|
2834
2834
|
props: {
|
|
2835
2835
|
ariaLabel: { type: String },
|
|
@@ -2878,7 +2878,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2878
2878
|
},
|
|
2879
2879
|
emits: ["focus-value", "toggle-value"],
|
|
2880
2880
|
setup(e, { emit: t }) {
|
|
2881
|
-
let n = e, c = t, d =
|
|
2881
|
+
let n = e, c = t, d = ae(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => !n.renderer && (f.value || !!d["result-count"])), m = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), h = r(() => ({
|
|
2882
2882
|
disabled: n.disabled,
|
|
2883
2883
|
highlightSearchText: !0,
|
|
2884
2884
|
id: n.value,
|
|
@@ -2897,7 +2897,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2897
2897
|
}, _ = () => {
|
|
2898
2898
|
n.disabled || c("focus-value", n.value);
|
|
2899
2899
|
};
|
|
2900
|
-
return (t, n) => (
|
|
2900
|
+
return (t, n) => (O(), o("label", {
|
|
2901
2901
|
class: x(["pv-filter-panel-option-row pv-flex", { "pv-filter-panel-option-row-disabled": e.disabled }]),
|
|
2902
2902
|
"data-testid": "pv-filter-panel-option-row",
|
|
2903
2903
|
style: C(m.value)
|
|
@@ -2914,20 +2914,20 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
2914
2914
|
"indeterminate",
|
|
2915
2915
|
"modelValue"
|
|
2916
2916
|
]),
|
|
2917
|
-
e.renderer ? (
|
|
2917
|
+
e.renderer ? (O(), i(N(e.renderer), S(y({ key: 0 }, h.value)), null, 16)) : (O(), o("span", ja, [
|
|
2918
2918
|
s("span", Ma, F(e.label), 1),
|
|
2919
|
-
e.subduedText ? (
|
|
2920
|
-
e.subText ? (
|
|
2919
|
+
e.subduedText ? (O(), o("span", Na, F(e.subduedText), 1)) : a("v-if", !0),
|
|
2920
|
+
e.subText ? (O(), o("span", Pa, F(e.subText), 1)) : a("v-if", !0)
|
|
2921
2921
|
])),
|
|
2922
|
-
p.value ? (
|
|
2923
|
-
e.showFocusAction ? (
|
|
2922
|
+
p.value ? (O(), o("span", Fa, [M(t.$slots, "result-count", {}, () => [l("(" + F(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
2923
|
+
e.showFocusAction ? (O(), i(W, {
|
|
2924
2924
|
key: 3,
|
|
2925
2925
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
2926
2926
|
disabled: e.disabled,
|
|
2927
2927
|
leftIcon: "focus",
|
|
2928
2928
|
size: "md",
|
|
2929
2929
|
variant: e.isFocused ? "primary" : "ghost",
|
|
2930
|
-
onClick:
|
|
2930
|
+
onClick: B(_, ["stop", "prevent"])
|
|
2931
2931
|
}, null, 8, [
|
|
2932
2932
|
"ariaLabel",
|
|
2933
2933
|
"disabled",
|
|
@@ -3019,7 +3019,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3019
3019
|
"--flex-gap": "0.5rem",
|
|
3020
3020
|
cursor: "pointer"
|
|
3021
3021
|
}
|
|
3022
|
-
}, to = { class: "pv-text-body-sm" }, no = 5, ro = 500, io = /* @__PURE__ */
|
|
3022
|
+
}, to = { class: "pv-text-body-sm" }, no = 5, ro = 500, io = /* @__PURE__ */ ke(/* @__PURE__ */ f({
|
|
3023
3023
|
__name: "PvFilterPanelAccordion",
|
|
3024
3024
|
props: { filter: { type: Object } },
|
|
3025
3025
|
emits: [
|
|
@@ -3031,7 +3031,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3031
3031
|
"search-change"
|
|
3032
3032
|
],
|
|
3033
3033
|
setup(e, { emit: n }) {
|
|
3034
|
-
let c = e, d = n, f = A({}), p = A(c.filter.searchQuery ?? ""), m = A(no), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), _ = r(() => c.filter.options ?? []), v = r(() => [...c.filter.knownOptions ?? [], ..._.value]), b = r(() => c.filter.type ?? "value"), x = r(() => b.value === "value"), w = r(() => x.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), E = r(() => p.value.trim().toLowerCase()),
|
|
3034
|
+
let c = e, d = n, f = A({}), p = A(c.filter.searchQuery ?? ""), m = A(no), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), _ = r(() => c.filter.options ?? []), v = r(() => [...c.filter.knownOptions ?? [], ..._.value]), b = r(() => c.filter.type ?? "value"), x = r(() => b.value === "value"), w = r(() => x.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), E = r(() => p.value.trim().toLowerCase()), D = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(D.value)), te = r(() => c.filter.valueLabels?.true ?? "Yes"), k = r(() => c.filter.filterOptionsSortDescription || "Suggested"), M = (e) => {
|
|
3035
3035
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
3036
3036
|
return [
|
|
3037
3037
|
e.value,
|
|
@@ -3041,84 +3041,84 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3041
3041
|
e.matchedValue,
|
|
3042
3042
|
e.matchedField
|
|
3043
3043
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
3044
|
-
}, P = r(() => b.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : b.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : b.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ? Qi(T.value) || void 0 :
|
|
3044
|
+
}, P = r(() => b.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : b.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : b.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ? Qi(T.value) || void 0 : D.value.length || void 0), ne = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), I = (e, t = 0) => e.flatMap((e) => [
|
|
3045
3045
|
{
|
|
3046
3046
|
depth: t,
|
|
3047
3047
|
kind: "option",
|
|
3048
3048
|
option: e
|
|
3049
3049
|
},
|
|
3050
|
-
...e.children?.length ?
|
|
3051
|
-
...
|
|
3050
|
+
...e.children?.length ? I(e.children, t + 1) : [],
|
|
3051
|
+
...ne(e) ? [{
|
|
3052
3052
|
depth: t + 1,
|
|
3053
3053
|
kind: "child-load-more",
|
|
3054
3054
|
parent: e
|
|
3055
3055
|
}] : []
|
|
3056
|
-
]),
|
|
3057
|
-
let e =
|
|
3056
|
+
]), L = r(() => {
|
|
3057
|
+
let e = I(_.value), t = E.value;
|
|
3058
3058
|
return t ? e.filter((e) => e.kind === "option" && M(e.option).includes(t)) : e;
|
|
3059
|
-
}),
|
|
3059
|
+
}), R = r(() => w.value ? [] : D.value.map((e) => f.value[e] ?? {
|
|
3060
3060
|
label: e,
|
|
3061
3061
|
value: e
|
|
3062
|
-
})), re = r(() => w.value ?
|
|
3062
|
+
})), re = r(() => w.value ? L.value : L.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), ie = r(() => re.value.length > m.value), ae = r(() => ie.value || c.filter.hasMore), oe = r(() => re.value.slice(0, m.value)), se = r(() => w.value ? Yi({
|
|
3063
3063
|
options: v.value,
|
|
3064
3064
|
state: T.value
|
|
3065
|
-
}) : /* @__PURE__ */ new Map()),
|
|
3065
|
+
}) : /* @__PURE__ */ new Map()), ce = (e) => ca(e, c.filter.colDef), le = (e) => la(e), ue = (e) => w.value ? se.value.get(e.value) ?? {
|
|
3066
3066
|
indeterminate: !1,
|
|
3067
3067
|
selected: !1
|
|
3068
3068
|
} : {
|
|
3069
3069
|
indeterminate: !1,
|
|
3070
|
-
selected:
|
|
3071
|
-
},
|
|
3072
|
-
let t =
|
|
3070
|
+
selected: ee.value.has(e.value)
|
|
3071
|
+
}, fe = (e) => ue(e).selected, pe = (e) => ue(e).indeterminate, B = (e) => gi(e) ?? e.value, V = (e) => _i(e, c.filter.key), me = (e) => {
|
|
3072
|
+
let t = V(e), n = B(e);
|
|
3073
3073
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
3074
|
-
},
|
|
3074
|
+
}, he = (e) => ({
|
|
3075
3075
|
...e.menuOption ?? {},
|
|
3076
|
-
children: e.children?.map(
|
|
3076
|
+
children: e.children?.map(he),
|
|
3077
3077
|
context: e,
|
|
3078
3078
|
disabled: c.filter.disabled || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
3079
3079
|
id: e.value,
|
|
3080
3080
|
searchText: M(e),
|
|
3081
|
-
secondaryText:
|
|
3081
|
+
secondaryText: le(e),
|
|
3082
3082
|
subText: e.subText,
|
|
3083
3083
|
subduedText: e.subduedText,
|
|
3084
|
-
text:
|
|
3084
|
+
text: ce(e),
|
|
3085
3085
|
totalChildCount: e.totalChildCount
|
|
3086
|
-
}),
|
|
3086
|
+
}), ge = r(() => _.value.map(he)), _e = r(() => R.value.map(he)), ve = r(() => ({
|
|
3087
3087
|
colDef: c.filter.colDef,
|
|
3088
3088
|
disabled: c.filter.disabled,
|
|
3089
3089
|
filter: c.filter,
|
|
3090
3090
|
isLoading: c.filter.isLoading,
|
|
3091
3091
|
isOpen: c.filter.isOpen,
|
|
3092
|
-
options:
|
|
3092
|
+
options: ge.value,
|
|
3093
3093
|
searchInput: p.value,
|
|
3094
|
-
selectedItems:
|
|
3094
|
+
selectedItems: _e.value,
|
|
3095
3095
|
slotContext: {
|
|
3096
3096
|
colDef: c.filter.colDef,
|
|
3097
3097
|
rowsLoading: c.filter.isLoading
|
|
3098
3098
|
}
|
|
3099
|
-
})),
|
|
3100
|
-
|
|
3101
|
-
},
|
|
3099
|
+
})), ye = () => {
|
|
3100
|
+
ie.value ? m.value += no : c.filter.hasMore && d("load-more", p.value.trim());
|
|
3101
|
+
}, be = (e) => {
|
|
3102
3102
|
d("load-more", p.value.trim(), e.value);
|
|
3103
|
-
},
|
|
3103
|
+
}, xe = (e) => {
|
|
3104
3104
|
let t = e.target;
|
|
3105
3105
|
d("open-change", t.open);
|
|
3106
|
-
},
|
|
3106
|
+
}, Se = (e) => {
|
|
3107
3107
|
d("filter-change", {
|
|
3108
3108
|
type: "boolean",
|
|
3109
3109
|
value: e
|
|
3110
3110
|
});
|
|
3111
|
-
},
|
|
3111
|
+
}, Ce = (e) => {
|
|
3112
3112
|
d("filter-change", {
|
|
3113
3113
|
type: "exists",
|
|
3114
3114
|
value: e === !0
|
|
3115
3115
|
});
|
|
3116
|
-
},
|
|
3116
|
+
}, we = (e) => {
|
|
3117
3117
|
d("filter-change", {
|
|
3118
3118
|
type: "range",
|
|
3119
3119
|
value: e
|
|
3120
3120
|
});
|
|
3121
|
-
},
|
|
3121
|
+
}, Te = (e, t) => {
|
|
3122
3122
|
if (w.value) {
|
|
3123
3123
|
d("filter-change", {
|
|
3124
3124
|
type: "aggregate-selection",
|
|
@@ -3133,85 +3133,85 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3133
3133
|
}
|
|
3134
3134
|
d("filter-change", {
|
|
3135
3135
|
checked: t,
|
|
3136
|
-
field:
|
|
3136
|
+
field: V(e),
|
|
3137
3137
|
type: "value",
|
|
3138
|
-
value:
|
|
3138
|
+
value: B(e)
|
|
3139
3139
|
});
|
|
3140
|
-
},
|
|
3141
|
-
d("focus-change",
|
|
3142
|
-
},
|
|
3140
|
+
}, De = (e) => {
|
|
3141
|
+
d("focus-change", V(e), B(e), e);
|
|
3142
|
+
}, Oe = (e, t) => {
|
|
3143
3143
|
d("filter-change", {
|
|
3144
3144
|
field: e,
|
|
3145
3145
|
type: "boolean",
|
|
3146
3146
|
value: t ? null : !0
|
|
3147
3147
|
});
|
|
3148
|
-
},
|
|
3148
|
+
}, ke = () => {
|
|
3149
3149
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
3150
3150
|
};
|
|
3151
|
-
|
|
3151
|
+
z([p, () => c.filter.key], () => {
|
|
3152
3152
|
m.value = no;
|
|
3153
3153
|
});
|
|
3154
|
-
let
|
|
3154
|
+
let Ae = () => {
|
|
3155
3155
|
let e = vi(v.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
3156
3156
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
3157
3157
|
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - ro)));
|
|
3158
3158
|
};
|
|
3159
|
-
return
|
|
3160
|
-
c.filter.isOpen &&
|
|
3161
|
-
}, { immediate: !0 }),
|
|
3162
|
-
e ?
|
|
3163
|
-
}),
|
|
3159
|
+
return z(v, () => {
|
|
3160
|
+
c.filter.isOpen && Ae();
|
|
3161
|
+
}, { immediate: !0 }), z(() => c.filter.isOpen, (e) => {
|
|
3162
|
+
e ? Ae() : f.value = {};
|
|
3163
|
+
}), z(() => c.filter.searchQuery, (e) => {
|
|
3164
3164
|
let t = e ?? "";
|
|
3165
3165
|
t !== p.value && (p.value = t);
|
|
3166
|
-
}),
|
|
3166
|
+
}), Vn(p, (e) => {
|
|
3167
3167
|
if (!x.value) return;
|
|
3168
3168
|
let t = e.trim();
|
|
3169
3169
|
t !== (c.filter.searchQuery ?? "").trim() && d("search-change", t);
|
|
3170
3170
|
}, {
|
|
3171
3171
|
debounce: 300,
|
|
3172
3172
|
maxWait: 1e3
|
|
3173
|
-
}), (n, r) => (
|
|
3173
|
+
}), (n, r) => (O(), o("details", {
|
|
3174
3174
|
class: "pv-accordion",
|
|
3175
3175
|
"data-testid": "pv-filter-panel-accordion",
|
|
3176
3176
|
open: e.filter.isOpen,
|
|
3177
|
-
onToggle:
|
|
3177
|
+
onToggle: xe
|
|
3178
3178
|
}, [s("summary", Ra, [
|
|
3179
|
-
u(
|
|
3179
|
+
u(Ee, {
|
|
3180
3180
|
"aria-hidden": "true",
|
|
3181
3181
|
class: "pv-text-subdued",
|
|
3182
3182
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
3183
3183
|
}, null, 8, ["name"]),
|
|
3184
3184
|
s("span", null, F(e.filter.label), 1),
|
|
3185
|
-
P.value ? (
|
|
3185
|
+
P.value ? (O(), i(U, {
|
|
3186
3186
|
key: 0,
|
|
3187
3187
|
value: P.value,
|
|
3188
3188
|
size: "sm",
|
|
3189
3189
|
variant: "secondary"
|
|
3190
3190
|
}, null, 8, ["value"])) : a("v-if", !0)
|
|
3191
|
-
]), s("div", za, [x.value ? (
|
|
3192
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (
|
|
3193
|
-
e.filter.filterGroupOptions?.length ? (
|
|
3191
|
+
]), s("div", za, [x.value ? (O(), o(t, { key: 0 }, [
|
|
3192
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (O(), o("div", Ba, [
|
|
3193
|
+
e.filter.filterGroupOptions?.length ? (O(), o("div", Va, [(O(!0), o(t, null, j(e.filter.filterGroupOptions, (t) => (O(), i(W, {
|
|
3194
3194
|
key: t.field,
|
|
3195
3195
|
disabled: e.filter.disabled,
|
|
3196
3196
|
label: t.label,
|
|
3197
3197
|
size: "md",
|
|
3198
3198
|
variant: t.isActive ? "primary" : "secondary",
|
|
3199
|
-
onClick: (e) =>
|
|
3199
|
+
onClick: (e) => Oe(t.field, t.isActive)
|
|
3200
3200
|
}, null, 8, [
|
|
3201
3201
|
"disabled",
|
|
3202
3202
|
"label",
|
|
3203
3203
|
"variant",
|
|
3204
3204
|
"onClick"
|
|
3205
3205
|
]))), 128))])) : a("v-if", !0),
|
|
3206
|
-
e.filter.displayPreferencesIcon ? (
|
|
3206
|
+
e.filter.displayPreferencesIcon ? (O(), o("div", Ha, [u(W, {
|
|
3207
3207
|
ariaLabel: "Open preferences",
|
|
3208
3208
|
disabled: e.filter.disabled,
|
|
3209
3209
|
leftIcon: "sliders-horizontal",
|
|
3210
3210
|
size: "md",
|
|
3211
3211
|
variant: "ghost",
|
|
3212
|
-
onClick:
|
|
3212
|
+
onClick: ke
|
|
3213
3213
|
}, null, 8, ["disabled"])])) : a("v-if", !0),
|
|
3214
|
-
e.filter.filterHeaderRenderer ? (
|
|
3214
|
+
e.filter.filterHeaderRenderer ? (O(), i(N(e.filter.filterHeaderRenderer), S(y({ key: 2 }, ve.value)), null, 16)) : a("v-if", !0)
|
|
3215
3215
|
])) : a("v-if", !0),
|
|
3216
3216
|
u(ga, {
|
|
3217
3217
|
modelValue: p.value,
|
|
@@ -3224,23 +3224,23 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3224
3224
|
"disabled",
|
|
3225
3225
|
"placeholder"
|
|
3226
3226
|
]),
|
|
3227
|
-
|
|
3227
|
+
R.value.length ? (O(), o("div", Ua, [(O(!0), o(t, null, j(R.value, (t) => (O(), i(Ia, {
|
|
3228
3228
|
key: t.value,
|
|
3229
3229
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
3230
3230
|
"focus-text": e.filter.focusText,
|
|
3231
|
-
"is-focused":
|
|
3232
|
-
indeterminate:
|
|
3233
|
-
label:
|
|
3231
|
+
"is-focused": me(t),
|
|
3232
|
+
indeterminate: pe(t),
|
|
3233
|
+
label: ce(t),
|
|
3234
3234
|
"query-text": p.value,
|
|
3235
3235
|
renderer: e.filter.filterOptionsRenderer,
|
|
3236
|
-
"result-count":
|
|
3236
|
+
"result-count": le(t),
|
|
3237
3237
|
selected: !0,
|
|
3238
3238
|
"show-focus-action": e.filter.isFocusable,
|
|
3239
3239
|
"sub-text": t.subText,
|
|
3240
3240
|
"subdued-text": t.subduedText,
|
|
3241
3241
|
value: t.value,
|
|
3242
|
-
onFocusValue: () =>
|
|
3243
|
-
onToggleValue: (e, n) =>
|
|
3242
|
+
onFocusValue: () => De(t),
|
|
3243
|
+
onToggleValue: (e, n) => Te(t, n)
|
|
3244
3244
|
}, null, 8, [
|
|
3245
3245
|
"disabled",
|
|
3246
3246
|
"focus-text",
|
|
@@ -3257,10 +3257,10 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3257
3257
|
"onFocusValue",
|
|
3258
3258
|
"onToggleValue"
|
|
3259
3259
|
]))), 128))])) : a("v-if", !0),
|
|
3260
|
-
e.filter.isLoading ? (
|
|
3261
|
-
!_.value.length && !
|
|
3262
|
-
re.value.length ||
|
|
3263
|
-
re.value.length ? (
|
|
3260
|
+
e.filter.isLoading ? (O(), o("div", Wa, [u(H, { size: "sm" })])) : (O(), o(t, { key: 3 }, [
|
|
3261
|
+
!_.value.length && !R.value.length && !ae.value ? (O(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (O(), i(N(e.filter.emptyResultsRenderer), y({ key: 0 }, ve.value, { "empty-reason": "no-values" }), null, 16)) : (O(), o("p", Ga, "No values available."))], 64)) : !L.value.length && !R.value.length && !ae.value ? (O(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (O(), i(N(e.filter.emptyResultsRenderer), y({ key: 0 }, ve.value, { "empty-reason": "no-matches" }), null, 16)) : (O(), o("p", Ka, "No matching values."))], 64)) : a("v-if", !0),
|
|
3262
|
+
re.value.length || ae.value ? (O(), o("div", qa, [
|
|
3263
|
+
re.value.length ? (O(), o("div", Ja, [e.filter.filterOptionsSortTooltip ? (O(), i(_r, {
|
|
3264
3264
|
key: 0,
|
|
3265
3265
|
variant: "dark",
|
|
3266
3266
|
disableInteractive: !0,
|
|
@@ -3269,28 +3269,28 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3269
3269
|
"use-teleport": !0,
|
|
3270
3270
|
style: { "--max-width": "200px" }
|
|
3271
3271
|
}, {
|
|
3272
|
-
trigger:
|
|
3273
|
-
content:
|
|
3272
|
+
trigger: de(() => [s("p", Ya, F(k.value), 1)]),
|
|
3273
|
+
content: de(() => [l(F(e.filter.filterOptionsSortTooltip), 1)]),
|
|
3274
3274
|
_: 1
|
|
3275
|
-
})) : (
|
|
3276
|
-
(
|
|
3275
|
+
})) : (O(), o("p", Xa, F(k.value), 1))])) : a("v-if", !0),
|
|
3276
|
+
(O(!0), o(t, null, j(oe.value, (n) => (O(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (O(), i(Ia, {
|
|
3277
3277
|
key: 0,
|
|
3278
3278
|
depth: n.depth,
|
|
3279
3279
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
3280
3280
|
"focus-text": e.filter.focusText,
|
|
3281
|
-
"is-focused":
|
|
3282
|
-
indeterminate:
|
|
3283
|
-
label:
|
|
3281
|
+
"is-focused": me(n.option),
|
|
3282
|
+
indeterminate: pe(n.option),
|
|
3283
|
+
label: ce(n.option),
|
|
3284
3284
|
"query-text": p.value,
|
|
3285
3285
|
renderer: e.filter.filterOptionsRenderer,
|
|
3286
|
-
"result-count":
|
|
3287
|
-
selected:
|
|
3286
|
+
"result-count": le(n.option),
|
|
3287
|
+
selected: fe(n.option),
|
|
3288
3288
|
"show-focus-action": e.filter.isFocusable,
|
|
3289
3289
|
"sub-text": n.option.subText,
|
|
3290
3290
|
"subdued-text": n.option.subduedText,
|
|
3291
3291
|
value: n.option.value,
|
|
3292
|
-
onFocusValue: () =>
|
|
3293
|
-
onToggleValue: (e, t) =>
|
|
3292
|
+
onFocusValue: () => De(n.option),
|
|
3293
|
+
onToggleValue: (e, t) => Te(n.option, t)
|
|
3294
3294
|
}, null, 8, [
|
|
3295
3295
|
"depth",
|
|
3296
3296
|
"disabled",
|
|
@@ -3308,7 +3308,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3308
3308
|
"value",
|
|
3309
3309
|
"onFocusValue",
|
|
3310
3310
|
"onToggleValue"
|
|
3311
|
-
])) : (
|
|
3311
|
+
])) : (O(), i(W, {
|
|
3312
3312
|
key: 1,
|
|
3313
3313
|
class: "pv-text-brand",
|
|
3314
3314
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -3318,25 +3318,25 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3318
3318
|
width: "fit-content"
|
|
3319
3319
|
}),
|
|
3320
3320
|
variant: "ghost",
|
|
3321
|
-
onClick: (e) =>
|
|
3321
|
+
onClick: (e) => be(n.parent)
|
|
3322
3322
|
}, null, 8, [
|
|
3323
3323
|
"disabled",
|
|
3324
3324
|
"style",
|
|
3325
3325
|
"onClick"
|
|
3326
3326
|
]))], 64))), 128)),
|
|
3327
|
-
|
|
3327
|
+
ae.value ? (O(), i(W, {
|
|
3328
3328
|
key: 1,
|
|
3329
3329
|
class: "pv-text-brand",
|
|
3330
3330
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
3331
3331
|
label: "See more",
|
|
3332
3332
|
style: { width: "fit-content" },
|
|
3333
3333
|
variant: "ghost",
|
|
3334
|
-
onClick:
|
|
3334
|
+
onClick: ye
|
|
3335
3335
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
3336
3336
|
])) : a("v-if", !0),
|
|
3337
|
-
e.filter.filterFooterRenderer ? (
|
|
3337
|
+
e.filter.filterFooterRenderer ? (O(), i(N(e.filter.filterFooterRenderer), S(y({ key: 3 }, ve.value)), null, 16)) : a("v-if", !0)
|
|
3338
3338
|
], 64))
|
|
3339
|
-
], 64)) : b.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (
|
|
3339
|
+
], 64)) : b.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (O(), i(Aa, {
|
|
3340
3340
|
key: 1,
|
|
3341
3341
|
mode: "dual",
|
|
3342
3342
|
rangeValue: e.filter.rangeValue,
|
|
@@ -3347,7 +3347,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3347
3347
|
min: e.filter.rangeMin,
|
|
3348
3348
|
step: e.filter.rangeStep,
|
|
3349
3349
|
"value-decimals": e.filter.valueDecimals,
|
|
3350
|
-
"onUpdate:rangeValue":
|
|
3350
|
+
"onUpdate:rangeValue": we
|
|
3351
3351
|
}, null, 8, [
|
|
3352
3352
|
"rangeValue",
|
|
3353
3353
|
"data-type",
|
|
@@ -3357,35 +3357,35 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3357
3357
|
"min",
|
|
3358
3358
|
"step",
|
|
3359
3359
|
"value-decimals"
|
|
3360
|
-
])) : b.value === "range" ? (
|
|
3360
|
+
])) : b.value === "range" ? (O(), o("p", Za, " Range filters require minimum and maximum bounds. ")) : b.value === "boolean" ? (O(), o("div", Qa, [s("div", $a, [u(W, {
|
|
3361
3361
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3362
|
-
label:
|
|
3362
|
+
label: te.value,
|
|
3363
3363
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
3364
|
-
onClick: r[1] ||= (t) =>
|
|
3364
|
+
onClick: r[1] ||= (t) => Se(e.filter.booleanValue === !0 ? null : !0)
|
|
3365
3365
|
}, null, 8, [
|
|
3366
3366
|
"disabled",
|
|
3367
3367
|
"label",
|
|
3368
3368
|
"variant"
|
|
3369
|
-
]), u(
|
|
3369
|
+
]), u(W, {
|
|
3370
3370
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3371
3371
|
label: g.value,
|
|
3372
3372
|
variant: e.filter.booleanValue === !1 ? "primary" : "secondary",
|
|
3373
|
-
onClick: r[2] ||= (t) =>
|
|
3373
|
+
onClick: r[2] ||= (t) => Se(e.filter.booleanValue === !1 ? null : !1)
|
|
3374
3374
|
}, null, 8, [
|
|
3375
3375
|
"disabled",
|
|
3376
3376
|
"label",
|
|
3377
3377
|
"variant"
|
|
3378
|
-
])]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (
|
|
3378
|
+
])]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (O(), i(W, {
|
|
3379
3379
|
key: 0,
|
|
3380
3380
|
class: "pv-text-brand",
|
|
3381
3381
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3382
3382
|
label: "Clear",
|
|
3383
3383
|
variant: "ghost",
|
|
3384
|
-
onClick: r[3] ||= (e) =>
|
|
3385
|
-
}, null, 8, ["disabled"])) : a("v-if", !0)])) : b.value === "exists" ? (
|
|
3384
|
+
onClick: r[3] ||= (e) => Se(null)
|
|
3385
|
+
}, null, 8, ["disabled"])) : a("v-if", !0)])) : b.value === "exists" ? (O(), o("label", eo, [u(da, {
|
|
3386
3386
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3387
3387
|
modelValue: e.filter.existsValue ?? !1,
|
|
3388
|
-
"onUpdate:modelValue":
|
|
3388
|
+
"onUpdate:modelValue": Ce
|
|
3389
3389
|
}, null, 8, ["disabled", "modelValue"]), s("span", to, F(h.value), 1)])) : a("v-if", !0)])], 40, La));
|
|
3390
3390
|
}
|
|
3391
3391
|
}), [["styles", ["summary[data-v-014fc511]{background-image:none;padding-right:2px}[data-v-014fc511] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-014fc511]{text-underline-offset:2px;text-decoration:underline dotted}"]], ["__scopeId", "data-v-014fc511"]]), ao = ["data-style"], oo = /* @__PURE__ */ f({
|
|
@@ -3428,7 +3428,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3428
3428
|
};
|
|
3429
3429
|
return t.variant === "transparent" && (e["--tag-background-color"] = "transparent"), e;
|
|
3430
3430
|
});
|
|
3431
|
-
return (t, r) => (
|
|
3431
|
+
return (t, r) => (O(), o("button", {
|
|
3432
3432
|
class: x([
|
|
3433
3433
|
c.value,
|
|
3434
3434
|
n.value,
|
|
@@ -3439,7 +3439,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3439
3439
|
"data-testid": "pv-tag",
|
|
3440
3440
|
"data-style": e.rounded ? "rounded" : void 0
|
|
3441
3441
|
}, [
|
|
3442
|
-
e.icon ? (
|
|
3442
|
+
e.icon ? (O(), i(Ee, {
|
|
3443
3443
|
key: 0,
|
|
3444
3444
|
"data-testid": "pv-tag-icon",
|
|
3445
3445
|
class: x(e.iconClasses),
|
|
@@ -3447,12 +3447,12 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3447
3447
|
size: 12
|
|
3448
3448
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
3449
3449
|
s("span", { class: x(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, F(e.label), 3),
|
|
3450
|
-
e.showClear ? (
|
|
3450
|
+
e.showClear ? (O(), i(Ee, {
|
|
3451
3451
|
key: 1,
|
|
3452
3452
|
"data-testid": "pv-tag-close-icon",
|
|
3453
3453
|
size: 12,
|
|
3454
3454
|
name: "close",
|
|
3455
|
-
onClick: r[0] ||=
|
|
3455
|
+
onClick: r[0] ||= B((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
3456
3456
|
})) : a("v-if", !0)
|
|
3457
3457
|
], 14, ao));
|
|
3458
3458
|
}
|
|
@@ -3501,14 +3501,14 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3501
3501
|
let r = n, a = (e, t) => {
|
|
3502
3502
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
3503
3503
|
};
|
|
3504
|
-
return (n, r) => (
|
|
3504
|
+
return (n, r) => (O(), o("section", so, [e.appliedCount ? (O(), o("div", co, [(O(!0), o(t, null, j(e.appliedGroups, (n) => (O(), o("div", {
|
|
3505
3505
|
key: n.key,
|
|
3506
3506
|
class: "pv-flex-vertical pv-border-bottom",
|
|
3507
3507
|
style: {
|
|
3508
3508
|
"--flex-align": "stretch",
|
|
3509
3509
|
"padding-bottom": "4px"
|
|
3510
3510
|
}
|
|
3511
|
-
}, [s("span", lo, F(n.label), 1), s("div", uo, [(
|
|
3511
|
+
}, [s("span", lo, F(n.label), 1), s("div", uo, [(O(!0), o(t, null, j(n.values, (t) => (O(), i(oo, {
|
|
3512
3512
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
3513
3513
|
label: t.label,
|
|
3514
3514
|
showClear: !e.readOnly,
|
|
@@ -3517,7 +3517,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3517
3517
|
"label",
|
|
3518
3518
|
"showClear",
|
|
3519
3519
|
"onHandleClose"
|
|
3520
|
-
]))), 128))])]))), 128))])) : (
|
|
3520
|
+
]))), 128))])]))), 128))])) : (O(), o("p", fo, "No filters applied yet."))]));
|
|
3521
3521
|
}
|
|
3522
3522
|
}), mo = { class: "pv-horizontal-scroller" }, ho = ["aria-label"], go = 1, _o = /* @__PURE__ */ f({
|
|
3523
3523
|
__name: "PvHorizontalScroller",
|
|
@@ -3580,11 +3580,11 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3580
3580
|
};
|
|
3581
3581
|
return T(() => {
|
|
3582
3582
|
u.value?.addEventListener("scroll", m, { passive: !0 }), typeof ResizeObserver < "u" ? (d = new ResizeObserver(() => m()), h()) : (f = !0, window.addEventListener("resize", m)), g();
|
|
3583
|
-
}),
|
|
3583
|
+
}), ee(() => {
|
|
3584
3584
|
h(), g();
|
|
3585
3585
|
}), w(() => {
|
|
3586
3586
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
3587
|
-
}), (t, r) => (
|
|
3587
|
+
}), (t, r) => (O(), o("div", mo, [
|
|
3588
3588
|
s("div", {
|
|
3589
3589
|
ref_key: "scrollContainer",
|
|
3590
3590
|
ref: u,
|
|
@@ -3599,7 +3599,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3599
3599
|
s("div", { class: x(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
3600
3600
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
3601
3601
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
3602
|
-
}]) }, [n.value ? (
|
|
3602
|
+
}]) }, [n.value ? (O(), i(W, {
|
|
3603
3603
|
key: 0,
|
|
3604
3604
|
ariaLabel: e.leftAriaLabel,
|
|
3605
3605
|
leftIcon: "chevron-left",
|
|
@@ -3614,7 +3614,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3614
3614
|
s("div", { class: x(["pv-horizontal-scroller-control pv-horizontal-scroller-control-right", {
|
|
3615
3615
|
"pv-horizontal-scroller-control-hidden": !c.value,
|
|
3616
3616
|
"pv-horizontal-scroller-control-right-fade": e.showFades
|
|
3617
|
-
}]) }, [c.value ? (
|
|
3617
|
+
}]) }, [c.value ? (O(), i(W, {
|
|
3618
3618
|
key: 0,
|
|
3619
3619
|
ariaLabel: e.rightAriaLabel,
|
|
3620
3620
|
leftIcon: "chevron-right",
|
|
@@ -3653,7 +3653,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3653
3653
|
}),
|
|
3654
3654
|
emits: ["update:modelValue"],
|
|
3655
3655
|
setup(e) {
|
|
3656
|
-
let n = e, c =
|
|
3656
|
+
let n = e, c = ie(e, "modelValue"), l = r(() => {
|
|
3657
3657
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
3658
3658
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
3659
3659
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -3661,9 +3661,9 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3661
3661
|
}), d = (e) => {
|
|
3662
3662
|
c.value = e;
|
|
3663
3663
|
}, f = (e) => c.value === e ? "primary" : "secondary";
|
|
3664
|
-
return
|
|
3664
|
+
return z(l, (e) => {
|
|
3665
3665
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
3666
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (
|
|
3666
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (O(), o("div", vo, [u(_o, {
|
|
3667
3667
|
ariaLabel: "Filter categories",
|
|
3668
3668
|
buttonSize: "md",
|
|
3669
3669
|
buttonVariant: "secondary",
|
|
@@ -3672,12 +3672,12 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3672
3672
|
rightAriaLabel: "Scroll filter categories right",
|
|
3673
3673
|
showFades: ""
|
|
3674
3674
|
}, {
|
|
3675
|
-
default:
|
|
3675
|
+
default: de(() => [s("div", yo, [u(W, {
|
|
3676
3676
|
label: "All",
|
|
3677
3677
|
size: "md",
|
|
3678
3678
|
variant: f(null),
|
|
3679
3679
|
onClick: n[0] ||= (e) => d(null)
|
|
3680
|
-
}, null, 8, ["variant"]), (
|
|
3680
|
+
}, null, 8, ["variant"]), (O(!0), o(t, null, j(l.value, (e) => (O(), i(W, {
|
|
3681
3681
|
key: e,
|
|
3682
3682
|
label: e,
|
|
3683
3683
|
size: "md",
|
|
@@ -3718,7 +3718,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3718
3718
|
}, Do = (e, t, n) => {
|
|
3719
3719
|
if (!e || t === null) return !1;
|
|
3720
3720
|
if (e.value === t) return !0;
|
|
3721
|
-
let r =
|
|
3721
|
+
let r = gi(e);
|
|
3722
3722
|
return r !== null && r === t || yi(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Do(e, t, n)) ?? !1;
|
|
3723
3723
|
}, Oo = (e, t, n) => {
|
|
3724
3724
|
let r = Eo(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
@@ -3744,12 +3744,12 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3744
3744
|
o.value = {}, s.value = {};
|
|
3745
3745
|
}, E = () => {
|
|
3746
3746
|
i.value = wo(o.value), a.value = wo(s.value), T();
|
|
3747
|
-
},
|
|
3747
|
+
}, D = (e, t) => {
|
|
3748
3748
|
c.value[e] = t;
|
|
3749
|
-
},
|
|
3750
|
-
let n = t ? u : l, r =
|
|
3749
|
+
}, ee = (e, t) => `${t ? "append" : "initial"}::${e}`, O = (e, t) => {
|
|
3750
|
+
let n = t ? u : l, r = ee(e, t);
|
|
3751
3751
|
return v.value[r] = (v.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
3752
|
-
},
|
|
3752
|
+
}, te = (e, t, n) => {
|
|
3753
3753
|
let r = t ? u : l, i = Math.max(0, (v.value[n] ?? 1) - 1);
|
|
3754
3754
|
if (i > 0) {
|
|
3755
3755
|
v.value[n] = i;
|
|
@@ -3765,7 +3765,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3765
3765
|
if (!o) return [];
|
|
3766
3766
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
3767
3767
|
c.value[n.field] = s;
|
|
3768
|
-
let l = n.parentId ? Eo(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y =
|
|
3768
|
+
let l = n.parentId ? Eo(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = O(n.field, v), b = n.parentId ? ko(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
3769
3769
|
h.value[b] = x;
|
|
3770
3770
|
try {
|
|
3771
3771
|
let c = await o({
|
|
@@ -3785,12 +3785,12 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3785
3785
|
y = n.parentId ? Oo(r.value[n.field] ?? [], n.parentId, l.values) : v ? To([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
3786
3786
|
for (let e of _) {
|
|
3787
3787
|
if (!e) continue;
|
|
3788
|
-
let t =
|
|
3788
|
+
let t = gi(e) ?? e.value;
|
|
3789
3789
|
y.some((e) => Do(e, t, n.field)) || y.push(e);
|
|
3790
3790
|
}
|
|
3791
3791
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
3792
3792
|
} finally {
|
|
3793
|
-
|
|
3793
|
+
te(n.field, v, y);
|
|
3794
3794
|
}
|
|
3795
3795
|
},
|
|
3796
3796
|
filterChildHasMoreMap: p,
|
|
@@ -3813,7 +3813,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3813
3813
|
initStagedFilterSelections: w,
|
|
3814
3814
|
setFilterOptions: x,
|
|
3815
3815
|
setFilterOptionsHandler: y,
|
|
3816
|
-
setFilterSearchQuery:
|
|
3816
|
+
setFilterSearchQuery: D,
|
|
3817
3817
|
setFilterSelectedValues: C,
|
|
3818
3818
|
stagedFilterModel: t,
|
|
3819
3819
|
stagedFilterSelectedMetadataMap: s,
|
|
@@ -3842,7 +3842,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3842
3842
|
}, Ho = {
|
|
3843
3843
|
key: 1,
|
|
3844
3844
|
class: "pv-filter-panel-actions pv-flex"
|
|
3845
|
-
}, Uo = { class: "pv-text-body-sm" }, Wo = { class: "pv-filter-panel-modal-footer pv-flex" }, Go = "__range__", Ko = "__boolean__", qo = "__exists__", Jo = /* @__PURE__ */
|
|
3845
|
+
}, Uo = { class: "pv-text-body-sm" }, Wo = { class: "pv-filter-panel-modal-footer pv-flex" }, Go = "__range__", Ko = "__boolean__", qo = "__exists__", Jo = /* @__PURE__ */ ke(/* @__PURE__ */ f({
|
|
3846
3846
|
__name: "PvFilterPanel",
|
|
3847
3847
|
props: /* @__PURE__ */ v({
|
|
3848
3848
|
applyLabel: {
|
|
@@ -3976,185 +3976,188 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
3976
3976
|
"range",
|
|
3977
3977
|
"boolean",
|
|
3978
3978
|
"exists"
|
|
3979
|
-
]), l = e, d =
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
return e ? l.staged ? e.stagedFilterModel.value : e.filterModel.value : l.staged ? y.value : d.value;
|
|
3984
|
-
}), R = r(() => ri(L.value, I.value)), ne = (e, t) => {
|
|
3979
|
+
]), l = e, d = ie(e, "filterModel"), f = ie(e, "isCollapsed"), p = n, h = m(), g = A("filters"), _ = A({}), v = A(null), y = A(!1), b = A(d.value), x = Ao(), S = jo(), T = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Map(), ee = r(() => !!(l.filterStore ?? S)), te = r(() => !ee.value && !!l.filterOptionsHandler), k = r(() => l.filterStore ?? S ?? x), N = r(() => k.value === x), P = r(() => ee.value || te.value), ne = r(() => l.filterModelType ?? k.value?.filterModelType.value), I = r(() => ne.value ?? "advanced"), L = r(() => {
|
|
3980
|
+
let e = k.value;
|
|
3981
|
+
return e ? l.staged ? e.stagedFilterModel.value : e.filterModel.value : l.staged ? b.value : d.value;
|
|
3982
|
+
}), R = r(() => ni(L.value, I.value)), re = (e, t) => {
|
|
3985
3983
|
let n = e.applyFilterModel;
|
|
3986
3984
|
if (typeof n == "function") {
|
|
3987
3985
|
n(t);
|
|
3988
3986
|
return;
|
|
3989
3987
|
}
|
|
3990
3988
|
e.filterModel.value = t;
|
|
3991
|
-
},
|
|
3989
|
+
}, ae = (e, t) => {
|
|
3992
3990
|
if (l.staged) {
|
|
3993
3991
|
e.stagedFilterModel.value = t;
|
|
3994
3992
|
return;
|
|
3995
3993
|
}
|
|
3996
|
-
|
|
3994
|
+
re(e, t);
|
|
3997
3995
|
};
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
}, { immediate: !0 }),
|
|
3996
|
+
z(() => l.filterOptionsHandler, (e) => {
|
|
3997
|
+
x.setFilterOptionsHandler(e);
|
|
3998
|
+
}, { immediate: !0 }), z([
|
|
4001
3999
|
() => l.filterOptions,
|
|
4002
|
-
|
|
4000
|
+
N,
|
|
4003
4001
|
() => l.filterOptionsHandler
|
|
4004
4002
|
], ([e, t, n]) => {
|
|
4005
|
-
!t || n || (
|
|
4003
|
+
!t || n || (x.filterOptionsMap.value = Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])));
|
|
4006
4004
|
}, {
|
|
4007
4005
|
deep: !0,
|
|
4008
4006
|
immediate: !0
|
|
4009
|
-
}),
|
|
4007
|
+
}), z([
|
|
4010
4008
|
() => l.filterHasMoreMap,
|
|
4011
|
-
|
|
4009
|
+
N,
|
|
4012
4010
|
() => l.filterOptionsHandler
|
|
4013
4011
|
], ([e, t, n]) => {
|
|
4014
|
-
t && !n && (
|
|
4012
|
+
t && !n && (x.filterHasMoreMap.value = { ...e });
|
|
4015
4013
|
}, {
|
|
4016
4014
|
deep: !0,
|
|
4017
4015
|
immediate: !0
|
|
4018
|
-
}),
|
|
4016
|
+
}), z([
|
|
4019
4017
|
() => l.filterLoadingMap,
|
|
4020
|
-
|
|
4018
|
+
N,
|
|
4021
4019
|
() => l.filterOptionsHandler
|
|
4022
4020
|
], ([e, t, n]) => {
|
|
4023
|
-
t && !n && (
|
|
4021
|
+
t && !n && (x.filterLoadingMap.value = { ...e });
|
|
4024
4022
|
}, {
|
|
4025
4023
|
deep: !0,
|
|
4026
4024
|
immediate: !0
|
|
4027
|
-
}),
|
|
4025
|
+
}), z([
|
|
4028
4026
|
() => l.filterLoadingMoreMap,
|
|
4029
|
-
|
|
4027
|
+
N,
|
|
4030
4028
|
() => l.filterOptionsHandler
|
|
4031
4029
|
], ([e, t, n]) => {
|
|
4032
|
-
t && !n && (
|
|
4030
|
+
t && !n && (x.filterLoadingMoreMap.value = { ...e });
|
|
4033
4031
|
}, {
|
|
4034
4032
|
deep: !0,
|
|
4035
4033
|
immediate: !0
|
|
4036
|
-
}),
|
|
4034
|
+
}), z([
|
|
4037
4035
|
() => l.filterSearchQueries,
|
|
4038
|
-
|
|
4036
|
+
N,
|
|
4039
4037
|
() => l.filterOptionsHandler
|
|
4040
4038
|
], ([e, t, n]) => {
|
|
4041
|
-
t && !n && (
|
|
4039
|
+
t && !n && (x.filterSearchQueries.value = { ...e });
|
|
4042
4040
|
}, {
|
|
4043
4041
|
deep: !0,
|
|
4044
4042
|
immediate: !0
|
|
4045
|
-
}),
|
|
4043
|
+
}), z([
|
|
4046
4044
|
d,
|
|
4047
|
-
|
|
4045
|
+
N,
|
|
4048
4046
|
() => l.staged
|
|
4049
4047
|
], ([e, t]) => {
|
|
4050
|
-
t && (l.staged && (
|
|
4048
|
+
t && (l.staged && (b.value = e), x.filterModel.value = e, l.staged && (x.stagedFilterModel.value = e));
|
|
4051
4049
|
}, {
|
|
4052
4050
|
deep: !0,
|
|
4053
4051
|
immediate: !0
|
|
4054
|
-
}),
|
|
4052
|
+
}), z([() => l.staged, k], ([e]) => {
|
|
4055
4053
|
if (e) {
|
|
4056
|
-
|
|
4057
|
-
let e =
|
|
4054
|
+
b.value = d.value;
|
|
4055
|
+
let e = k.value;
|
|
4058
4056
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections());
|
|
4059
4057
|
}
|
|
4060
4058
|
}, { immediate: !0 });
|
|
4061
|
-
let
|
|
4062
|
-
!
|
|
4063
|
-
},
|
|
4064
|
-
|
|
4065
|
-
},
|
|
4059
|
+
let oe = (e, t) => {
|
|
4060
|
+
!P.value || !t || T.has(e) || (console.warn(`PvFilterPanel: "${e}" is ignored when filterStore/filterOptionsHandler store mode is active.`), T.add(e));
|
|
4061
|
+
}, se = (e, t) => {
|
|
4062
|
+
E.has(e) || (console.warn(t), E.add(e));
|
|
4063
|
+
}, ce = () => {
|
|
4064
|
+
let e = h?.vnode.props ?? {};
|
|
4065
|
+
return Object.prototype.hasOwnProperty.call(e, "filterModel") || Object.prototype.hasOwnProperty.call(e, "filter-model");
|
|
4066
|
+
}, pe = (e) => !!(e && typeof e == "object" && "filterType" in e), B = (e) => {
|
|
4066
4067
|
if (!e) return;
|
|
4067
|
-
let t =
|
|
4068
|
-
I.value === "advanced" && !t &&
|
|
4068
|
+
let t = pe(e);
|
|
4069
|
+
I.value === "advanced" && !t && se("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), I.value === "regular" && t && se("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
4069
4070
|
};
|
|
4070
|
-
|
|
4071
|
-
|
|
4071
|
+
ue(() => {
|
|
4072
|
+
oe("filterModel", !!((l.filterStore || S) && d.value !== null)), oe("filterOptions", Object.keys(l.filterOptions).length > 0), oe("filterLoadingMap", Object.keys(l.filterLoadingMap).length > 0), oe("filterLoadingMoreMap", Object.keys(l.filterLoadingMoreMap).length > 0), oe("filterHasMoreMap", Object.keys(l.filterHasMoreMap).length > 0), oe("filterSearchQueries", Object.keys(l.filterSearchQueries).length > 0), oe("filterOptionsHandler", !!(l.filterStore && l.filterOptionsHandler));
|
|
4073
|
+
let e = !!((l.filterStore || S) && L.value !== null);
|
|
4074
|
+
import.meta.env?.DEV && !ne.value && L.value !== null && !pe(L.value) && (ce() || e) && se("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
4072
4075
|
});
|
|
4073
|
-
let
|
|
4074
|
-
let t =
|
|
4076
|
+
let V = (e) => e.context ?? {}, me = (e) => e.colId || e.field || "", he = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ge = (e) => {
|
|
4077
|
+
let t = V(e), n = t.filterPanelType;
|
|
4075
4078
|
if (n && c.has(n)) return n;
|
|
4076
4079
|
if (t.filterPanelRange) return "range";
|
|
4077
4080
|
if (t.dataType === "boolean") return "boolean";
|
|
4078
4081
|
if (e.filter) return "value";
|
|
4079
|
-
},
|
|
4080
|
-
let t =
|
|
4082
|
+
}, _e = (e) => ge(e) ?? "value", ve = (e) => V(e).filterPanelCategory ?? null, ye = (e) => {
|
|
4083
|
+
let t = V(e).filterPanelValueLabels;
|
|
4081
4084
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
4082
|
-
},
|
|
4083
|
-
let t =
|
|
4084
|
-
return !n || t.filterPanelHidden === !0 || t.devOnly && !l.devMode || l.autoHideRelatedFilterFields !== !1 && t.filterPanelHidden !== !1 &&
|
|
4085
|
-
},
|
|
4086
|
-
let t =
|
|
4085
|
+
}, H = (e) => {
|
|
4086
|
+
let t = V(e), n = me(e);
|
|
4087
|
+
return !n || t.filterPanelHidden === !0 || t.devOnly && !l.devMode || l.autoHideRelatedFilterFields !== !1 && t.filterPanelHidden !== !1 && ke.value.has(n) ? !1 : !!ge(e);
|
|
4088
|
+
}, be = (e) => (k.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), xe = (e) => {
|
|
4089
|
+
let t = k.value;
|
|
4087
4090
|
return ((l.staged ? t.stagedFilterSelectedMetadataMap : t.filterSelectedMetadataMap).value[e] ?? []).filter((e) => !!e);
|
|
4088
|
-
},
|
|
4091
|
+
}, Se = (e) => k.value.filterHasMoreMap.value[e] ?? !1, Ce = (e) => k.value.filterLoadingMap.value[e] ?? !1, we = (e) => k.value.filterLoadingMoreMap.value[e] ?? !1, Te = (e) => k.value.filterSearchQueries.value[e] ?? "", Ee = (e) => l.filterSuggestions.flatMap((t) => t.field !== e || t.filter.type !== "value" ? [] : [t.option ?? {
|
|
4089
4092
|
label: t.label,
|
|
4090
4093
|
value: t.filter.value
|
|
4091
|
-
}]),
|
|
4092
|
-
...
|
|
4093
|
-
...
|
|
4094
|
-
...
|
|
4095
|
-
],
|
|
4094
|
+
}]), De = (e) => [
|
|
4095
|
+
...Ee(e),
|
|
4096
|
+
...be(e),
|
|
4097
|
+
...xe(e)
|
|
4098
|
+
], Oe = (e) => {
|
|
4096
4099
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
4097
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
4100
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(Oe) : [];
|
|
4098
4101
|
return n ? [n, ...r] : r;
|
|
4099
|
-
},
|
|
4102
|
+
}, ke = r(() => {
|
|
4100
4103
|
let e = /* @__PURE__ */ new Set();
|
|
4101
4104
|
for (let t of l.colDefs) {
|
|
4102
|
-
let n =
|
|
4105
|
+
let n = V(t);
|
|
4103
4106
|
for (let t of Array.isArray(n.aggregateFields) ? n.aggregateFields : []) t && e.add(t);
|
|
4104
|
-
for (let t of
|
|
4107
|
+
for (let t of Oe(n.aggregateFieldHierarchy)) t && e.add(t);
|
|
4105
4108
|
for (let t of n.filterGroup?.fields ?? []) t && e.add(t);
|
|
4106
4109
|
}
|
|
4107
4110
|
return e;
|
|
4108
|
-
}),
|
|
4109
|
-
let t =
|
|
4111
|
+
}), U = (e) => {
|
|
4112
|
+
let t = me(e), n = V(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = Oe(n.aggregateFieldHierarchy);
|
|
4110
4113
|
return Array.from(new Set([
|
|
4111
4114
|
t,
|
|
4112
4115
|
...r,
|
|
4113
4116
|
...i
|
|
4114
4117
|
].filter(Boolean)));
|
|
4115
|
-
},
|
|
4118
|
+
}, Ae = (e) => I.value === "advanced" && Di(e), je = (e, t) => Ae(e) ? Li({
|
|
4116
4119
|
colDef: e,
|
|
4117
4120
|
model: L.value,
|
|
4118
4121
|
options: t
|
|
4119
|
-
}) : new Map(
|
|
4122
|
+
}) : new Map(U(e).map((e) => [e, R.value.get(e)?.values ?? []])), Me = (e, t, n, r) => {
|
|
4120
4123
|
let i = /* @__PURE__ */ new Set();
|
|
4121
4124
|
for (let t of vi(r)) for (let [r, a] of n) for (let n of a) yi(t, r, n, e) && i.add(`${r}:${n}`);
|
|
4122
4125
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
4123
4126
|
colField: t === e ? void 0 : t,
|
|
4124
4127
|
label: n,
|
|
4125
4128
|
metadata: { rawValue: n },
|
|
4126
|
-
value: t === e ? n :
|
|
4129
|
+
value: t === e ? n : hi(t, n)
|
|
4127
4130
|
}]));
|
|
4128
|
-
},
|
|
4131
|
+
}, Ne = (e, t, n) => {
|
|
4129
4132
|
let r = /* @__PURE__ */ new Set();
|
|
4130
4133
|
for (let i of vi(n)) {
|
|
4131
|
-
let n = _i(i, e), a =
|
|
4134
|
+
let n = _i(i, e), a = gi(i);
|
|
4132
4135
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
4133
4136
|
}
|
|
4134
4137
|
return Array.from(r);
|
|
4135
|
-
},
|
|
4136
|
-
let t =
|
|
4137
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
4138
|
-
},
|
|
4138
|
+
}, Pe = (e) => Object.fromEntries(U(e).map((e) => [e, l.focusedValues[e] ?? []])), Fe = (e) => l.colDefs.find((t) => me(t) === e || t.field === e || t.colId === e), Ie = (e) => Fe(e)?.headerName ?? e, Re = (e) => {
|
|
4139
|
+
let t = V(e);
|
|
4140
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Sr(me(e), t.queryColIds, Ie);
|
|
4141
|
+
}, ze = (e, t) => Cr({
|
|
4139
4142
|
fallbackSubText: e.subText,
|
|
4140
|
-
getDisplayName:
|
|
4143
|
+
getDisplayName: Ie,
|
|
4141
4144
|
matchedField: e.matchedField,
|
|
4142
4145
|
matchedValue: e.matchedValue,
|
|
4143
|
-
showPrefix:
|
|
4144
|
-
}),
|
|
4146
|
+
showPrefix: V(t).showSearchMatchSubTextPrefix !== !1
|
|
4147
|
+
}), Be = (e, t) => e.map((e) => ({
|
|
4145
4148
|
...e,
|
|
4146
|
-
children: e.children?.length ?
|
|
4147
|
-
subText:
|
|
4148
|
-
})),
|
|
4149
|
-
let t =
|
|
4149
|
+
children: e.children?.length ? Be(e.children, t) : e.children,
|
|
4150
|
+
subText: ze(e, t)
|
|
4151
|
+
})), Ve = (e) => {
|
|
4152
|
+
let t = V(e).filterGroup;
|
|
4150
4153
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
4151
4154
|
field: e,
|
|
4152
4155
|
isActive: R.value.get(e)?.booleanValue === !0,
|
|
4153
|
-
label:
|
|
4156
|
+
label: Fe(e)?.headerName ?? e
|
|
4154
4157
|
}));
|
|
4155
|
-
},
|
|
4156
|
-
let t =
|
|
4157
|
-
category:
|
|
4158
|
+
}, G = (e) => K.value.find((t) => t.key === e) ?? K.value.find((t) => U(t.colDef).includes(e)), He = (e, t, n) => vi(G(e)?.knownOptions ?? []).find((r) => r.value === n || yi(r, t, n, e)), K = r(() => l.colDefs.filter(H).map((e) => {
|
|
4159
|
+
let t = me(e), n = V(e), r = _e(e), i = Be(be(t), e), a = Be(De(t), e), o = {
|
|
4160
|
+
category: ve(e),
|
|
4158
4161
|
colDef: e,
|
|
4159
4162
|
dataType: n.dataType ?? null,
|
|
4160
4163
|
disabled: l.readOnly,
|
|
@@ -4163,31 +4166,31 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4163
4166
|
existsLabel: n.filterPanelExistsLabel,
|
|
4164
4167
|
filterFooterRenderer: n.filterFooterRenderer,
|
|
4165
4168
|
filterGroupLabel: n.filterGroup?.label,
|
|
4166
|
-
filterGroupOptions:
|
|
4169
|
+
filterGroupOptions: Ve(e),
|
|
4167
4170
|
filterHeaderRenderer: n.filterHeaderRenderer,
|
|
4168
4171
|
filterOptionsRenderer: n.filterOptionsRenderer,
|
|
4169
4172
|
filterOptionsSortDescription: n.filterOptionsSortDescription,
|
|
4170
4173
|
filterOptionsSortTooltip: n.filterOptionsSortTooltip,
|
|
4171
4174
|
focusText: l.focusText,
|
|
4172
4175
|
focusedValues: l.focusedValues[t] ?? [],
|
|
4173
|
-
focusedValuesByField:
|
|
4174
|
-
hasMore:
|
|
4175
|
-
isAggregate:
|
|
4176
|
-
isFocusable: l.enableFocusView && (!l.focusableFields.length ||
|
|
4177
|
-
isLoading:
|
|
4178
|
-
isLoadingMore:
|
|
4179
|
-
isOpen:
|
|
4176
|
+
focusedValuesByField: Pe(e),
|
|
4177
|
+
hasMore: Se(t),
|
|
4178
|
+
isAggregate: Ae(e),
|
|
4179
|
+
isFocusable: l.enableFocusView && (!l.focusableFields.length || U(e).some((e) => l.focusableFields.includes(e))),
|
|
4180
|
+
isLoading: Ce(t),
|
|
4181
|
+
isLoadingMore: we(t),
|
|
4182
|
+
isOpen: _.value[t] ?? !1,
|
|
4180
4183
|
key: t,
|
|
4181
4184
|
knownOptions: a,
|
|
4182
4185
|
label: e.headerName || t,
|
|
4183
|
-
rangeMax:
|
|
4184
|
-
rangeMin:
|
|
4185
|
-
rangeStep:
|
|
4186
|
-
searchPlaceholder:
|
|
4187
|
-
searchQuery:
|
|
4186
|
+
rangeMax: he(n.filterPanelRange?.max),
|
|
4187
|
+
rangeMin: he(n.filterPanelRange?.min),
|
|
4188
|
+
rangeStep: he(n.filterPanelRange?.step),
|
|
4189
|
+
searchPlaceholder: Re(e),
|
|
4190
|
+
searchQuery: Te(t) ?? "",
|
|
4188
4191
|
type: r,
|
|
4189
4192
|
valueDecimals: n.valueDecimals ?? null,
|
|
4190
|
-
valueLabels:
|
|
4193
|
+
valueLabels: ye(e)
|
|
4191
4194
|
};
|
|
4192
4195
|
if (r === "range") return {
|
|
4193
4196
|
...o,
|
|
@@ -4204,7 +4207,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4204
4207
|
...o,
|
|
4205
4208
|
existsValue: R.value.get(t)?.existsValue ?? !1
|
|
4206
4209
|
};
|
|
4207
|
-
let s = a, c =
|
|
4210
|
+
let s = a, c = je(e, s), u = Me(t, e, c, s), d = [...s, ...u], f = Ae(e) ? Ii({
|
|
4208
4211
|
colDef: e,
|
|
4209
4212
|
model: L.value,
|
|
4210
4213
|
options: d
|
|
@@ -4214,32 +4217,32 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4214
4217
|
aggregateSelectionState: f,
|
|
4215
4218
|
knownOptions: d,
|
|
4216
4219
|
options: i,
|
|
4217
|
-
selectedValues: f ? f.flatMap((e) => e.state === "selected" ? [e.id] : []) :
|
|
4220
|
+
selectedValues: f ? f.flatMap((e) => e.state === "selected" ? [e.id] : []) : Ne(t, c, d)
|
|
4218
4221
|
};
|
|
4219
|
-
})),
|
|
4220
|
-
let t =
|
|
4222
|
+
})), Ue = r(() => v.value === null ? K.value : K.value.filter((e) => e.category === v.value)), We = r(() => K.value.flatMap((e) => {
|
|
4223
|
+
let t = lt(e);
|
|
4221
4224
|
return t.length ? [{
|
|
4222
4225
|
key: e.key,
|
|
4223
4226
|
label: e.label,
|
|
4224
4227
|
values: t
|
|
4225
4228
|
}] : [];
|
|
4226
|
-
})),
|
|
4229
|
+
})), Ge = r(() => We.value.reduce((e, t) => e + t.values.length, 0)), Ke = r(() => Ue.value.map((e) => ({
|
|
4227
4230
|
...e,
|
|
4228
|
-
isOpen:
|
|
4229
|
-
}))),
|
|
4231
|
+
isOpen: _.value[e.key] ?? e.isOpen ?? !1
|
|
4232
|
+
}))), qe = r(() => ri(L.value, I.value)), Je = r(() => [{
|
|
4230
4233
|
label: "Filters",
|
|
4231
4234
|
value: "filters"
|
|
4232
4235
|
}, {
|
|
4233
|
-
label: `Applied (${
|
|
4236
|
+
label: `Applied (${Ge.value})`,
|
|
4234
4237
|
value: "applied"
|
|
4235
|
-
}]),
|
|
4238
|
+
}]), Ye = r(() => ({
|
|
4236
4239
|
"--flex-align": "stretch",
|
|
4237
4240
|
"--flex-gap": "0",
|
|
4238
4241
|
flex: `0 0 ${l.width}`,
|
|
4239
4242
|
minHeight: "0",
|
|
4240
4243
|
width: l.width
|
|
4241
|
-
})),
|
|
4242
|
-
let t =
|
|
4244
|
+
})), Xe = r(() => qe.value || Ge.value > 0), Ze = (e) => {
|
|
4245
|
+
let t = G(e.field);
|
|
4243
4246
|
if (!t || t.type !== e.filter.type) return !0;
|
|
4244
4247
|
if (e.filter.type === "value") {
|
|
4245
4248
|
if (t.isAggregate && e.option) {
|
|
@@ -4250,33 +4253,33 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4250
4253
|
});
|
|
4251
4254
|
return e.filter.checked ? n : !n;
|
|
4252
4255
|
}
|
|
4253
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
4256
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? gi(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
4254
4257
|
return e.filter.checked ? a : !a;
|
|
4255
4258
|
}
|
|
4256
4259
|
return e.filter.type === "range" ? t.rangeValue?.min === e.filter.value.min && t.rangeValue?.max === e.filter.value.max : e.filter.type === "boolean" ? t.booleanValue === e.filter.value : (t.existsValue ?? !1) === e.filter.value;
|
|
4257
|
-
},
|
|
4260
|
+
}, Qe = r(() => l.filterSuggestions.filter((e) => !Ze(e))), $e = (e) => {
|
|
4258
4261
|
if (e.key) return e.key;
|
|
4259
4262
|
let t = "value" in e.filter ? e.filter.value : "";
|
|
4260
4263
|
return `${e.field}-${e.filter.type}-${JSON.stringify(t)}`;
|
|
4261
|
-
},
|
|
4262
|
-
let i =
|
|
4264
|
+
}, et = (e, t, n, r) => {
|
|
4265
|
+
let i = k.value;
|
|
4263
4266
|
if (!i) return;
|
|
4264
4267
|
i.setFilterSelectedValues(t, n, l.staged);
|
|
4265
4268
|
let a = l.staged ? i.stagedFilterSelectedMetadataMap : i.filterSelectedMetadataMap, o = a.value[e] ?? [], s = new Set(n), c = o.filter((n) => {
|
|
4266
4269
|
if (!n) return !1;
|
|
4267
|
-
let r = _i(n, e), i =
|
|
4270
|
+
let r = _i(n, e), i = gi(n) ?? n.value;
|
|
4268
4271
|
return r !== t || s.has(i);
|
|
4269
4272
|
});
|
|
4270
4273
|
if (r) {
|
|
4271
|
-
let t =
|
|
4274
|
+
let t = gi(r) ?? r.value, n = _i(r, e);
|
|
4272
4275
|
c.some((r) => {
|
|
4273
|
-
let i =
|
|
4276
|
+
let i = gi(r) ?? r.value;
|
|
4274
4277
|
return _i(r, e) === n && i === t;
|
|
4275
4278
|
}) || c.push(r);
|
|
4276
4279
|
}
|
|
4277
4280
|
a.value[e] = c;
|
|
4278
|
-
},
|
|
4279
|
-
let n =
|
|
4281
|
+
}, tt = (e, t = e.aggregateSelectionState ?? []) => {
|
|
4282
|
+
let n = k.value;
|
|
4280
4283
|
if (!n || !e.isAggregate) return;
|
|
4281
4284
|
let r = t.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
4282
4285
|
n.setFilterSelectedValues(e.key, r, l.staged);
|
|
@@ -4285,38 +4288,38 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4285
4288
|
options: e.knownOptions ?? [],
|
|
4286
4289
|
state: t
|
|
4287
4290
|
});
|
|
4288
|
-
},
|
|
4289
|
-
if (!
|
|
4290
|
-
let t =
|
|
4291
|
+
}, nt = (e) => {
|
|
4292
|
+
if (!P.value) return;
|
|
4293
|
+
let t = k.value, n = /* @__PURE__ */ new Set();
|
|
4291
4294
|
if (e) {
|
|
4292
4295
|
n.add(e);
|
|
4293
|
-
let t =
|
|
4294
|
-
t && (n.add(t.key),
|
|
4296
|
+
let t = G(e);
|
|
4297
|
+
t && (n.add(t.key), U(t.colDef).forEach((e) => n.add(e)));
|
|
4295
4298
|
}
|
|
4296
|
-
for (let r of
|
|
4297
|
-
},
|
|
4298
|
-
|
|
4299
|
-
let i = L.value, a =
|
|
4300
|
-
a ? (
|
|
4301
|
-
colDef: (n ?
|
|
4299
|
+
for (let r of K.value) r.type === "value" && (e && (n.has(r.key) || U(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
4300
|
+
}, q = (e, t, n, r) => {
|
|
4301
|
+
B(e);
|
|
4302
|
+
let i = L.value, a = k.value;
|
|
4303
|
+
a ? (ae(a, e), e === null && (l.staged ? (a.stagedFilterSelectedValueMap.value = {}, a.stagedFilterSelectedMetadataMap.value = {}) : (a.filterSelectedValueMap.value = {}, a.filterSelectedMetadataMap.value = {}))) : l.staged && (b.value = e), !l.filterStore && !S && !l.staged && (d.value = e), nt(n), p("filter-change", {
|
|
4304
|
+
colDef: (n ? G(n) : void 0)?.colDef,
|
|
4302
4305
|
field: n,
|
|
4303
4306
|
filterModel: e,
|
|
4304
4307
|
previousFilterModel: i,
|
|
4305
4308
|
reason: t,
|
|
4306
4309
|
type: r
|
|
4307
4310
|
});
|
|
4308
|
-
},
|
|
4311
|
+
}, rt = (e) => {
|
|
4309
4312
|
let t = e.booleanValue ?? null;
|
|
4310
4313
|
return t === null ? [] : [{
|
|
4311
4314
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
4312
4315
|
type: "boolean",
|
|
4313
4316
|
value: Ko
|
|
4314
4317
|
}];
|
|
4315
|
-
},
|
|
4318
|
+
}, it = (e) => e.existsValue ? [{
|
|
4316
4319
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
4317
4320
|
type: "exists",
|
|
4318
4321
|
value: qo
|
|
4319
|
-
}] : [],
|
|
4322
|
+
}] : [], at = (e) => {
|
|
4320
4323
|
let t = e.rangeValue ?? {
|
|
4321
4324
|
max: null,
|
|
4322
4325
|
min: null
|
|
@@ -4329,7 +4332,7 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4329
4332
|
type: "range",
|
|
4330
4333
|
value: Go
|
|
4331
4334
|
}];
|
|
4332
|
-
},
|
|
4335
|
+
}, ot = (e, t, n) => {
|
|
4333
4336
|
let r = n.get(t) ?? null;
|
|
4334
4337
|
return {
|
|
4335
4338
|
field: r ? _i(r, e.key) : void 0,
|
|
@@ -4338,14 +4341,14 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4338
4341
|
subText: r?.subText,
|
|
4339
4342
|
subduedText: r?.subduedText,
|
|
4340
4343
|
type: "value",
|
|
4341
|
-
value: r ?
|
|
4344
|
+
value: r ? gi(r) ?? r.value : t
|
|
4342
4345
|
};
|
|
4343
|
-
},
|
|
4346
|
+
}, st = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
4344
4347
|
field: e.field,
|
|
4345
4348
|
label: e.label,
|
|
4346
4349
|
type: "boolean",
|
|
4347
4350
|
value: Ko
|
|
4348
|
-
}] : []),
|
|
4351
|
+
}] : []), ct = (e) => Zi({
|
|
4349
4352
|
options: e.knownOptions ?? [],
|
|
4350
4353
|
state: e.aggregateSelectionState ?? []
|
|
4351
4354
|
}).map((t) => ({
|
|
@@ -4356,45 +4359,45 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4356
4359
|
subduedText: t.subduedText,
|
|
4357
4360
|
type: "value",
|
|
4358
4361
|
value: t.value
|
|
4359
|
-
})),
|
|
4360
|
-
if (e.type === "range") return
|
|
4361
|
-
if (e.type === "boolean") return
|
|
4362
|
-
if (e.type === "exists") return
|
|
4363
|
-
if (e.isAggregate) return [...
|
|
4362
|
+
})), lt = (e) => {
|
|
4363
|
+
if (e.type === "range") return at(e);
|
|
4364
|
+
if (e.type === "boolean") return rt(e);
|
|
4365
|
+
if (e.type === "exists") return it(e);
|
|
4366
|
+
if (e.isAggregate) return [...ct(e), ...st(e)];
|
|
4364
4367
|
let t = new Map(vi(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
4365
|
-
return [...(e.selectedValues ?? []).map((n) =>
|
|
4366
|
-
}, ct = () => {
|
|
4367
|
-
v.value = !1;
|
|
4368
|
-
}, lt = () => {
|
|
4369
|
-
bt(), et(null, "clear-all");
|
|
4368
|
+
return [...(e.selectedValues ?? []).map((n) => ot(e, n, t)), ...st(e)];
|
|
4370
4369
|
}, ut = () => {
|
|
4371
|
-
|
|
4370
|
+
y.value = !1;
|
|
4372
4371
|
}, dt = () => {
|
|
4373
|
-
xt();
|
|
4374
|
-
let e = O.value, t = e ? e.stagedFilterModel.value : y.value;
|
|
4375
|
-
e && (ne(e, t), e.commitStagedFilterSelections(), e.initStagedFilterSelections()), !l.filterStore && !x && (d.value = t), p("apply", t);
|
|
4372
|
+
xt(), q(null, "clear-all");
|
|
4376
4373
|
}, ft = () => {
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4374
|
+
dt(), y.value = !1;
|
|
4375
|
+
}, pt = () => {
|
|
4376
|
+
St();
|
|
4377
|
+
let e = k.value, t = e ? e.stagedFilterModel.value : b.value;
|
|
4378
|
+
e && (re(e, t), e.commitStagedFilterSelections(), e.initStagedFilterSelections()), !l.filterStore && !S && (d.value = t), p("apply", t);
|
|
4379
|
+
}, mt = () => {
|
|
4380
|
+
xt();
|
|
4381
|
+
let e = k.value;
|
|
4382
|
+
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), b.value = d.value, p("cancel");
|
|
4383
|
+
}, ht = (e) => ii(G(e)?.dataType), J = (e, t, n = "value-toggle") => {
|
|
4384
|
+
let r = G(e);
|
|
4385
|
+
r?.isAggregate && (tt(r, t), q(Pi({
|
|
4383
4386
|
baseModel: L.value,
|
|
4384
4387
|
colDef: r.colDef,
|
|
4385
4388
|
options: r.knownOptions ?? [],
|
|
4386
4389
|
state: t
|
|
4387
4390
|
}), n, r.key, "value"));
|
|
4388
|
-
},
|
|
4391
|
+
}, gt = (e, t) => {
|
|
4389
4392
|
if (t.type === "aggregate-selection") {
|
|
4390
|
-
|
|
4393
|
+
J(e, t.value);
|
|
4391
4394
|
return;
|
|
4392
4395
|
}
|
|
4393
|
-
let n = t.field ?? e, r =
|
|
4396
|
+
let n = t.field ?? e, r = Fe(n) ?? G(e)?.colDef;
|
|
4394
4397
|
if (t.type === "value") {
|
|
4395
|
-
let r =
|
|
4398
|
+
let r = G(e), i = He(e, n, t.value);
|
|
4396
4399
|
if (r?.isAggregate && i) {
|
|
4397
|
-
|
|
4400
|
+
J(e, qi({
|
|
4398
4401
|
checked: t.checked,
|
|
4399
4402
|
option: i,
|
|
4400
4403
|
options: r.knownOptions ?? [],
|
|
@@ -4402,25 +4405,25 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4402
4405
|
}));
|
|
4403
4406
|
return;
|
|
4404
4407
|
}
|
|
4405
|
-
|
|
4408
|
+
Et(e, n, t.value, t.checked, i);
|
|
4406
4409
|
return;
|
|
4407
4410
|
}
|
|
4408
4411
|
if (t.type === "range") {
|
|
4409
|
-
|
|
4412
|
+
Ct(n, t.value, r);
|
|
4410
4413
|
return;
|
|
4411
4414
|
}
|
|
4412
4415
|
if (t.type === "boolean") {
|
|
4413
|
-
|
|
4416
|
+
q(oi(L.value, n, t.value, I.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
4414
4417
|
return;
|
|
4415
4418
|
}
|
|
4416
|
-
|
|
4417
|
-
},
|
|
4418
|
-
let i =
|
|
4419
|
+
q(si(L.value, n, t.value, ht(n), I.value, r), "exists-change", n, "exists");
|
|
4420
|
+
}, _t = (e, t, n, r) => {
|
|
4421
|
+
let i = k.value;
|
|
4419
4422
|
return !i || e.type !== "value" ? !1 : n !== "open" || r ? !0 : i.filterLoadingMap.value[e.key] ? !1 : i.filterStaleMap.value[e.key] || !(i.filterOptionsMap.value[e.key] ?? []).length ? !0 : (i.filterSearchQueries.value[e.key] ?? "") !== t;
|
|
4420
|
-
},
|
|
4421
|
-
let i =
|
|
4422
|
-
if (!
|
|
4423
|
-
let a = Array.from(new Set([...
|
|
4423
|
+
}, Y = (e, t, n, r) => {
|
|
4424
|
+
let i = k.value;
|
|
4425
|
+
if (!_t(e, t, n, r) || !i) return;
|
|
4426
|
+
let a = Array.from(new Set([...je(e.colDef, e.knownOptions ?? []).values()].flat()));
|
|
4424
4427
|
i.fetchFilterOptions({
|
|
4425
4428
|
colDef: e.colDef,
|
|
4426
4429
|
field: e.key,
|
|
@@ -4430,69 +4433,69 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4430
4433
|
reason: n,
|
|
4431
4434
|
selectedValues: a
|
|
4432
4435
|
});
|
|
4433
|
-
},
|
|
4434
|
-
p("load-more", e.key, e.colDef, t, n),
|
|
4435
|
-
},
|
|
4436
|
-
(e === "filters" || e === "applied") && (
|
|
4437
|
-
},
|
|
4438
|
-
|
|
4439
|
-
}, bt = () => {
|
|
4440
|
-
for (let { timer: e } of E.values()) window.clearTimeout(e);
|
|
4441
|
-
E.clear();
|
|
4436
|
+
}, vt = (e, t, n) => {
|
|
4437
|
+
p("load-more", e.key, e.colDef, t, n), Y(e, t, n ? "child-load-more" : "load-more", n);
|
|
4438
|
+
}, yt = (e) => {
|
|
4439
|
+
(e === "filters" || e === "applied") && (g.value = e);
|
|
4440
|
+
}, bt = (e, t, n) => {
|
|
4441
|
+
q(ci(L.value, e, t.min, t.max, I.value, n), "range-change", e, "range");
|
|
4442
4442
|
}, xt = () => {
|
|
4443
|
-
let e
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4443
|
+
for (let { timer: e } of D.values()) window.clearTimeout(e);
|
|
4444
|
+
D.clear();
|
|
4445
|
+
}, St = () => {
|
|
4446
|
+
let e = [...D.entries()];
|
|
4447
|
+
xt();
|
|
4448
|
+
for (let [t, n] of e) bt(t, n.value, n.colDef);
|
|
4449
|
+
}, Ct = (e, t, n) => {
|
|
4447
4450
|
if (l.rangeDebounceMs <= 0) {
|
|
4448
|
-
|
|
4451
|
+
bt(e, t, n);
|
|
4449
4452
|
return;
|
|
4450
4453
|
}
|
|
4451
|
-
let r =
|
|
4454
|
+
let r = D.get(e);
|
|
4452
4455
|
r && window.clearTimeout(r.timer);
|
|
4453
4456
|
let i = window.setTimeout(() => {
|
|
4454
|
-
|
|
4457
|
+
D.delete(e), bt(e, t, n);
|
|
4455
4458
|
}, l.rangeDebounceMs);
|
|
4456
|
-
|
|
4459
|
+
D.set(e, {
|
|
4457
4460
|
colDef: n,
|
|
4458
4461
|
timer: i,
|
|
4459
4462
|
value: t
|
|
4460
4463
|
});
|
|
4461
4464
|
};
|
|
4462
|
-
w(
|
|
4463
|
-
let
|
|
4464
|
-
p("search-change", e.key, t, e.colDef),
|
|
4465
|
-
},
|
|
4466
|
-
|
|
4467
|
-
},
|
|
4465
|
+
w(xt);
|
|
4466
|
+
let wt = (e, t) => {
|
|
4467
|
+
p("search-change", e.key, t, e.colDef), Y(e, t, "search");
|
|
4468
|
+
}, Tt = (e, t) => {
|
|
4469
|
+
_.value[e.key] = t, p("open-change", e.key, t, e.colDef), t && Y(e, e.searchQuery ?? "", "open");
|
|
4470
|
+
}, Et = (e, t, n, r, i) => {
|
|
4468
4471
|
let a = R.value.get(t)?.values ?? [], o = r ? Array.from(new Set([...a, n])) : a.filter((e) => e !== n);
|
|
4469
|
-
|
|
4470
|
-
},
|
|
4472
|
+
et(e, t, o, r ? i : void 0), q(li(L.value, t, o, I.value, Fe(t) ?? G(e)?.colDef), "value-toggle", t, "value");
|
|
4473
|
+
}, Dt = (e) => {
|
|
4471
4474
|
if (e.filter.type === "value" && e.option) {
|
|
4472
|
-
let t =
|
|
4473
|
-
t?.isAggregate ?
|
|
4475
|
+
let t = G(e.field), n = _i(e.option, e.field), r = gi(e.option) ?? e.filter.value;
|
|
4476
|
+
t?.isAggregate ? J(e.field, qi({
|
|
4474
4477
|
checked: e.filter.checked,
|
|
4475
4478
|
option: e.option,
|
|
4476
4479
|
options: t.knownOptions ?? [],
|
|
4477
4480
|
state: t.aggregateSelectionState ?? []
|
|
4478
|
-
})) :
|
|
4479
|
-
} else
|
|
4481
|
+
})) : Et(e.field, n, r, e.filter.checked, e.option);
|
|
4482
|
+
} else gt(e.field, e.filter);
|
|
4480
4483
|
p("suggestion-click", e);
|
|
4481
|
-
},
|
|
4482
|
-
let r = n ??
|
|
4484
|
+
}, Ot = (e, t, n) => {
|
|
4485
|
+
let r = n ?? G(e)?.type ?? "value";
|
|
4483
4486
|
if (r === "range" || !n && t === Go) {
|
|
4484
|
-
|
|
4487
|
+
q(ci(L.value, e, null, null, I.value, Fe(e) ?? G(e)?.colDef), "remove-filter", e, "range");
|
|
4485
4488
|
return;
|
|
4486
4489
|
}
|
|
4487
4490
|
if (r === "boolean" || !n && t === Ko) {
|
|
4488
|
-
|
|
4491
|
+
q(oi(L.value, e, null, I.value, "boolean", Fe(e) ?? G(e)?.colDef), "remove-filter", e, "boolean");
|
|
4489
4492
|
return;
|
|
4490
4493
|
}
|
|
4491
4494
|
if (r === "exists" || !n && t === qo) {
|
|
4492
|
-
|
|
4495
|
+
q(si(L.value, e, !1, "text", I.value, Fe(e) ?? G(e)?.colDef), "remove-filter", e, "exists");
|
|
4493
4496
|
return;
|
|
4494
4497
|
}
|
|
4495
|
-
let i =
|
|
4498
|
+
let i = G(e);
|
|
4496
4499
|
if (r === "value" && i?.isAggregate) {
|
|
4497
4500
|
let e = Oi(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? qi({
|
|
4498
4501
|
checked: !1,
|
|
@@ -4500,29 +4503,29 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4500
4503
|
options: i.knownOptions ?? [],
|
|
4501
4504
|
state: n
|
|
4502
4505
|
}) : n.filter((e) => e.id !== t);
|
|
4503
|
-
|
|
4506
|
+
J(i.key, r, "remove-filter");
|
|
4504
4507
|
return;
|
|
4505
4508
|
}
|
|
4506
4509
|
let a = (R.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
4507
|
-
|
|
4508
|
-
},
|
|
4509
|
-
|
|
4510
|
+
et(G(e)?.key ?? e, e, a), q(li(L.value, e, a, I.value, Fe(e) ?? G(e)?.colDef), "remove-filter", e, "value");
|
|
4511
|
+
}, kt = () => {
|
|
4512
|
+
y.value = !0;
|
|
4510
4513
|
};
|
|
4511
|
-
return (n, r) => (
|
|
4514
|
+
return (n, r) => (O(), o(t, null, [f.value ? a("v-if", !0) : (O(), o("div", {
|
|
4512
4515
|
key: 0,
|
|
4513
4516
|
role: "complementary",
|
|
4514
4517
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
4515
4518
|
"data-testid": "pv-filter-panel",
|
|
4516
4519
|
"aria-label": e.ariaLabel,
|
|
4517
|
-
style: C(
|
|
4520
|
+
style: C(Ye.value)
|
|
4518
4521
|
}, [
|
|
4519
|
-
s("div", No, [u(
|
|
4520
|
-
modelValue:
|
|
4521
|
-
options:
|
|
4522
|
+
s("div", No, [u(vr, {
|
|
4523
|
+
modelValue: g.value,
|
|
4524
|
+
options: Je.value,
|
|
4522
4525
|
class: "pv-filter-panel-mode-control",
|
|
4523
4526
|
size: "xl",
|
|
4524
|
-
"onUpdate:modelValue":
|
|
4525
|
-
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (
|
|
4527
|
+
"onUpdate:modelValue": yt
|
|
4528
|
+
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (O(), i(W, {
|
|
4526
4529
|
key: 0,
|
|
4527
4530
|
ariaLabel: "Collapse filters",
|
|
4528
4531
|
leftIcon: "chevrons-left",
|
|
@@ -4530,13 +4533,13 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4530
4533
|
variant: "secondary",
|
|
4531
4534
|
onClick: r[0] ||= (e) => f.value = !0
|
|
4532
4535
|
}))]),
|
|
4533
|
-
s("div", Po, [
|
|
4534
|
-
!e.readOnly &&
|
|
4535
|
-
key:
|
|
4536
|
+
s("div", Po, [fe(s("div", Fo, [
|
|
4537
|
+
!e.readOnly && Qe.value.length ? (O(), o("section", Io, [r[5] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Lo, [(O(!0), o(t, null, j(Qe.value, (e) => (O(), i(xr, {
|
|
4538
|
+
key: $e(e),
|
|
4536
4539
|
icon: e.icon,
|
|
4537
4540
|
"icon-classes": e.iconClasses,
|
|
4538
4541
|
label: e.label,
|
|
4539
|
-
onHandleClick: () =>
|
|
4542
|
+
onHandleClick: () => Dt(e)
|
|
4540
4543
|
}, null, 8, [
|
|
4541
4544
|
"icon",
|
|
4542
4545
|
"icon-classes",
|
|
@@ -4545,76 +4548,76 @@ var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
|
4545
4548
|
]))), 128))])])) : a("v-if", !0),
|
|
4546
4549
|
M(n.$slots, "suggestions", {}, void 0, !0),
|
|
4547
4550
|
u(bo, {
|
|
4548
|
-
modelValue:
|
|
4549
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
4551
|
+
modelValue: v.value,
|
|
4552
|
+
"onUpdate:modelValue": r[1] ||= (e) => v.value = e,
|
|
4550
4553
|
"category-order": e.categoryOrder,
|
|
4551
|
-
filters:
|
|
4554
|
+
filters: K.value
|
|
4552
4555
|
}, null, 8, [
|
|
4553
4556
|
"modelValue",
|
|
4554
4557
|
"category-order",
|
|
4555
4558
|
"filters"
|
|
4556
4559
|
]),
|
|
4557
|
-
|
|
4560
|
+
K.value.length ? Ue.value.length ? (O(), o("div", Bo, [(O(!0), o(t, null, j(Ke.value, (e) => (O(), i(io, {
|
|
4558
4561
|
key: e.key,
|
|
4559
4562
|
filter: e,
|
|
4560
|
-
onFilterChange: (t) =>
|
|
4563
|
+
onFilterChange: (t) => gt(e.key, t),
|
|
4561
4564
|
onFocusChange: r[2] ||= (e, t, n) => p("focus-change", e, t, n),
|
|
4562
4565
|
onHandleSettingsIcon: r[3] ||= (e, t) => p("handle-settings-icon", e, t),
|
|
4563
|
-
onLoadMore: (t, n) =>
|
|
4564
|
-
onOpenChange: (t) =>
|
|
4565
|
-
onSearchChange: (t) =>
|
|
4566
|
+
onLoadMore: (t, n) => vt(e, t, n),
|
|
4567
|
+
onOpenChange: (t) => Tt(e, t),
|
|
4568
|
+
onSearchChange: (t) => wt(e, t)
|
|
4566
4569
|
}, null, 8, [
|
|
4567
4570
|
"filter",
|
|
4568
4571
|
"onFilterChange",
|
|
4569
4572
|
"onLoadMore",
|
|
4570
4573
|
"onOpenChange",
|
|
4571
4574
|
"onSearchChange"
|
|
4572
|
-
]))), 128))])) : (
|
|
4573
|
-
], 512), [[
|
|
4574
|
-
"applied-count":
|
|
4575
|
-
"applied-groups":
|
|
4575
|
+
]))), 128))])) : (O(), o("div", zo, " No filters in this category. ")) : (O(), o("div", Ro, " No filters available. "))
|
|
4576
|
+
], 512), [[le, g.value === "filters"]]), fe(u(po, {
|
|
4577
|
+
"applied-count": Ge.value,
|
|
4578
|
+
"applied-groups": We.value,
|
|
4576
4579
|
"read-only": e.readOnly,
|
|
4577
|
-
onRemoveFilter:
|
|
4580
|
+
onRemoveFilter: Ot
|
|
4578
4581
|
}, null, 8, [
|
|
4579
4582
|
"applied-count",
|
|
4580
4583
|
"applied-groups",
|
|
4581
4584
|
"read-only"
|
|
4582
|
-
]), [[
|
|
4583
|
-
(
|
|
4585
|
+
]), [[le, g.value === "applied"]])]),
|
|
4586
|
+
(Xe.value || e.staged) && !e.readOnly ? (O(), o("div", Vo, [Xe.value ? (O(), i(W, {
|
|
4584
4587
|
key: 0,
|
|
4585
4588
|
class: "pv-text-brand",
|
|
4586
4589
|
label: e.clearAllLabel,
|
|
4587
4590
|
variant: "ghost",
|
|
4588
|
-
onClick:
|
|
4589
|
-
}, null, 8, ["label"])) : a("v-if", !0), e.staged ? (
|
|
4591
|
+
onClick: kt
|
|
4592
|
+
}, null, 8, ["label"])) : a("v-if", !0), e.staged ? (O(), o("div", Ho, [u(W, {
|
|
4590
4593
|
label: e.cancelLabel,
|
|
4591
4594
|
variant: "ghost",
|
|
4592
|
-
onClick:
|
|
4593
|
-
}, null, 8, ["label"]), u(
|
|
4595
|
+
onClick: mt
|
|
4596
|
+
}, null, 8, ["label"]), u(W, {
|
|
4594
4597
|
label: e.applyLabel,
|
|
4595
4598
|
variant: "primary",
|
|
4596
|
-
onClick:
|
|
4599
|
+
onClick: pt
|
|
4597
4600
|
}, null, 8, ["label"])])) : a("v-if", !0)])) : a("v-if", !0)
|
|
4598
|
-
], 12, Mo)), u(
|
|
4599
|
-
modelValue:
|
|
4600
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
4601
|
+
], 12, Mo)), u(Le, {
|
|
4602
|
+
modelValue: y.value,
|
|
4603
|
+
"onUpdate:modelValue": r[4] ||= (e) => y.value = e,
|
|
4601
4604
|
header: e.clearAllHeader,
|
|
4602
4605
|
style: { "--max-width": "440px" }
|
|
4603
4606
|
}, {
|
|
4604
|
-
body:
|
|
4605
|
-
footer:
|
|
4607
|
+
body: de(() => [s("p", Uo, F(e.clearAllBody), 1)]),
|
|
4608
|
+
footer: de(() => [s("div", Wo, [u(W, {
|
|
4606
4609
|
label: e.cancelLabel,
|
|
4607
4610
|
variant: "ghost",
|
|
4608
|
-
onClick:
|
|
4609
|
-
}, null, 8, ["label"]), u(
|
|
4611
|
+
onClick: ut
|
|
4612
|
+
}, null, 8, ["label"]), u(W, {
|
|
4610
4613
|
label: e.clearAllLabel,
|
|
4611
4614
|
variant: "primary",
|
|
4612
|
-
onClick:
|
|
4615
|
+
onClick: ft
|
|
4613
4616
|
}, null, 8, ["label"])])]),
|
|
4614
4617
|
_: 1
|
|
4615
4618
|
}, 8, ["modelValue", "header"])], 64));
|
|
4616
4619
|
}
|
|
4617
|
-
}), [["styles", [".pv-filter-panel[data-v-
|
|
4620
|
+
}), [["styles", [".pv-filter-panel[data-v-28f8e486]{height:100%;max-height:100vh}.pv-filter-panel-actions[data-v-28f8e486],.pv-filter-panel-header[data-v-28f8e486],.pv-filter-panel-suggestion-tags[data-v-28f8e486]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-28f8e486],.pv-filter-panel-filters-view[data-v-28f8e486]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-28f8e486]{scrollbar-color:var(--color-border,#c1c1c1) transparent;scrollbar-gutter:stable;scrollbar-width:thin;flex:auto;min-height:0;overflow-y:auto}.pv-filter-panel-body[data-v-28f8e486]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-28f8e486]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-28f8e486]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-28f8e486]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-28f8e486],.pv-filter-panel-footer[data-v-28f8e486],.pv-filter-panel-suggestions[data-v-28f8e486]{padding:12px}.pv-filter-panel-filter-list[data-v-28f8e486]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-28f8e486]{--flex-justify:flex-end;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-28f8e486]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-28f8e486]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-28f8e486]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-28f8e486]{margin:0}.pv-filter-panel-suggestions[data-v-28f8e486]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-28f8e486]{--flex-wrap:wrap}"]], ["__scopeId", "data-v-28f8e486"]]), Yo = Object.defineProperty, Xo = Object.getOwnPropertySymbols, Zo = Object.prototype.hasOwnProperty, Qo = Object.prototype.propertyIsEnumerable, $o = (e, t, n) => t in e ? Yo(e, t, {
|
|
4618
4621
|
enumerable: !0,
|
|
4619
4622
|
configurable: !0,
|
|
4620
4623
|
writable: !0,
|
|
@@ -4947,15 +4950,15 @@ var Js = {
|
|
|
4947
4950
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
4948
4951
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
4949
4952
|
if (Z(a) && o.transform !== "strict") {
|
|
4950
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ks(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ks(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ks(x, ["dark"]), w = y || {}, { dark: T } = w, E = ks(w, ["dark"]),
|
|
4951
|
-
s = this.transformCSS(e, M, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${P}${
|
|
4953
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ks(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ks(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ks(x, ["dark"]), w = y || {}, { dark: T } = w, E = ks(w, ["dark"]), D = Z(t) ? this._toVariables({ primitive: t }, o) : {}, ee = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, te = Z(S) ? this._toVariables({ dark: S }, o) : {}, k = Z(b) ? this._toVariables({ semantic: b }, o) : {}, A = Z(E) ? this._toVariables({ light: E }, o) : {}, j = Z(T) ? this._toVariables({ dark: T }, o) : {}, [M, N] = [D.declarations ?? "", D.tokens], [P, F] = [ee.declarations ?? "", ee.tokens || []], [ne, I] = [O.declarations ?? "", O.tokens || []], [L, R] = [te.declarations ?? "", te.tokens || []], [re, ie] = [k.declarations ?? "", k.tokens || []], [ae, oe] = [A.declarations ?? "", A.tokens || []], [se, ce] = [j.declarations ?? "", j.tokens || []];
|
|
4954
|
+
s = this.transformCSS(e, M, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${P}${ne}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${L}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
4952
4955
|
...F,
|
|
4953
|
-
...
|
|
4954
|
-
...
|
|
4955
|
-
])], d = `${this.transformCSS(e, `${re}${
|
|
4956
|
-
...z,
|
|
4956
|
+
...I,
|
|
4957
|
+
...R
|
|
4958
|
+
])], d = `${this.transformCSS(e, `${re}${ae}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
4957
4959
|
...ie,
|
|
4958
|
-
...oe
|
|
4960
|
+
...oe,
|
|
4961
|
+
...ce
|
|
4959
4962
|
])], p = os(a.css, { dt: Ws });
|
|
4960
4963
|
}
|
|
4961
4964
|
return {
|
|
@@ -4981,10 +4984,10 @@ var Js = {
|
|
|
4981
4984
|
"colorScheme",
|
|
4982
4985
|
"extend",
|
|
4983
4986
|
"css"
|
|
4984
|
-
]), h = f || {}, { colorScheme: g } = h, _ = ks(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ks(v, ["dark"]), x = g || {}, { dark: S } = x, C = ks(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: Ds(Ds({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: Ds(Ds({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: Ds(Ds({}, y), S) }, n) : {}, [
|
|
4985
|
-
s = `${this.transformCSS(r, `${
|
|
4987
|
+
]), h = f || {}, { colorScheme: g } = h, _ = ks(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ks(v, ["dark"]), x = g || {}, { dark: S } = x, C = ks(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: Ds(Ds({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: Ds(Ds({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: Ds(Ds({}, y), S) }, n) : {}, [D, ee] = [w.declarations ?? "", w.tokens || []], [O, te] = [T.declarations ?? "", T.tokens || []], [k, A] = [E.declarations ?? "", E.tokens || []];
|
|
4988
|
+
s = `${this.transformCSS(r, `${D}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, k, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
4989
|
+
...ee,
|
|
4986
4990
|
...te,
|
|
4987
|
-
...O,
|
|
4988
4991
|
...A
|
|
4989
4992
|
])], l = os(p, { dt: Ws });
|
|
4990
4993
|
}
|
|
@@ -5344,18 +5347,18 @@ function nc(e) {
|
|
|
5344
5347
|
}
|
|
5345
5348
|
var rc = 0;
|
|
5346
5349
|
function ic(e) {
|
|
5347
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = vs() ? 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_${++rc}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad,
|
|
5350
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = vs() ? 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_${++rc}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, D = E === void 0 ? void 0 : E, ee = t.props, O = ee === void 0 ? {} : ee, te = function() {}, j = function(t) {
|
|
5348
5351
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5349
5352
|
if (s) {
|
|
5350
|
-
var o = Qs(Qs({},
|
|
5353
|
+
var o = Qs(Qs({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
5351
5354
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, _s(i.value, {
|
|
5352
5355
|
type: "text/css",
|
|
5353
5356
|
id: l,
|
|
5354
5357
|
media: _,
|
|
5355
5358
|
nonce: u
|
|
5356
5359
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), ys(i.value, "data-primevue-style-id", c), _s(i.value, o), i.value.onload = function(e) {
|
|
5357
|
-
return
|
|
5358
|
-
}, C?.(c)), !n.value && (
|
|
5360
|
+
return D?.(e, { name: c });
|
|
5361
|
+
}, C?.(c)), !n.value && (te = z(r, function(e) {
|
|
5359
5362
|
i.value.textContent = e, T?.(c);
|
|
5360
5363
|
}, { immediate: !0 }), n.value = !0);
|
|
5361
5364
|
}
|
|
@@ -5366,7 +5369,7 @@ function ic(e) {
|
|
|
5366
5369
|
el: i,
|
|
5367
5370
|
css: r,
|
|
5368
5371
|
unload: function() {
|
|
5369
|
-
!s || !n.value || (
|
|
5372
|
+
!s || !n.value || (te(), hs(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5370
5373
|
},
|
|
5371
5374
|
load: j,
|
|
5372
5375
|
isLoaded: k(n)
|
|
@@ -5847,7 +5850,7 @@ var Ac = {
|
|
|
5847
5850
|
csp: { nonce: void 0 }
|
|
5848
5851
|
}, jc = Symbol();
|
|
5849
5852
|
function Mc(e, t) {
|
|
5850
|
-
var n = { config:
|
|
5853
|
+
var n = { config: te(t) };
|
|
5851
5854
|
return e.config.globalProperties.$primevue = n, e.provide(jc, n), Pc(), Fc(e, n), n;
|
|
5852
5855
|
}
|
|
5853
5856
|
var Nc = [];
|
|
@@ -5866,7 +5869,7 @@ function Fc(e, t) {
|
|
|
5866
5869
|
As.on("theme:change", function(t) {
|
|
5867
5870
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
5868
5871
|
});
|
|
5869
|
-
var i =
|
|
5872
|
+
var i = z(t.config, function(e, t) {
|
|
5870
5873
|
Cc.emit("config:change", {
|
|
5871
5874
|
newValue: e,
|
|
5872
5875
|
oldValue: t
|
|
@@ -5874,7 +5877,7 @@ function Fc(e, t) {
|
|
|
5874
5877
|
}, {
|
|
5875
5878
|
immediate: !0,
|
|
5876
5879
|
deep: !0
|
|
5877
|
-
}), a =
|
|
5880
|
+
}), a = z(function() {
|
|
5878
5881
|
return t.config.ripple;
|
|
5879
5882
|
}, function(e, t) {
|
|
5880
5883
|
Cc.emit("config:ripple:change", {
|
|
@@ -5884,7 +5887,7 @@ function Fc(e, t) {
|
|
|
5884
5887
|
}, {
|
|
5885
5888
|
immediate: !0,
|
|
5886
5889
|
deep: !0
|
|
5887
|
-
}), o =
|
|
5890
|
+
}), o = z(function() {
|
|
5888
5891
|
return t.config.theme;
|
|
5889
5892
|
}, function(e, i) {
|
|
5890
5893
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, Cc.emit("config:theme:change", {
|
|
@@ -5894,7 +5897,7 @@ function Fc(e, t) {
|
|
|
5894
5897
|
}, {
|
|
5895
5898
|
immediate: !0,
|
|
5896
5899
|
deep: !1
|
|
5897
|
-
}), s =
|
|
5900
|
+
}), s = z(function() {
|
|
5898
5901
|
return t.config.unstyled;
|
|
5899
5902
|
}, function(e, n) {
|
|
5900
5903
|
!e && t.config.theme && r(), Cc.emit("config:unstyled:change", {
|