@turquoisehealth/pit-viper 2.194.8-dev.0 → 2.195.1-dev.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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1866 -1846
- 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 +1033 -1036
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- 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 ee, onUpdated as te, openBlock as D, reactive as O, readonly as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as N, shallowRef as P, toDisplayString as F, toRef as I, toValue as L, unref as R, useAttrs as ne, useId as re, useModel as z, useSlots as B, useTemplateRef as ie, vModelCheckbox as ae, vModelText as oe, vShow as se, watch as V, watchEffect as ce, withCtx as le, withDirectives as ue, withKeys as H, withModifiers as U } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var W = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.prototype.hasOwnProperty, me = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) W(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 || W(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, he = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = fe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !pe.call(e, s) && s !== n && W(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = de(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, ge = (e, t, n) => (he(e, t, "default"), n && he(n, t, "default")), G = /* @__PURE__ */ f({
|
|
18
18
|
__name: "PvSpinner",
|
|
19
19
|
props: {
|
|
20
20
|
size: {
|
|
@@ -38,26 +38,26 @@ var V = Object.defineProperty, me = Object.getOwnPropertyDescriptor, he = Object
|
|
|
38
38
|
dark: "pv-spinner-dark",
|
|
39
39
|
white: "pv-spinner-light"
|
|
40
40
|
};
|
|
41
|
-
return (r, i) => (
|
|
41
|
+
return (r, i) => (D(), 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
|
+
}), _e = ["ghost"], ve = {
|
|
48
48
|
md: "pv-button-small",
|
|
49
49
|
lg: void 0,
|
|
50
50
|
xl: "pv-button-large"
|
|
51
|
-
},
|
|
51
|
+
}, ye = (e) => e == null || !ve.hasOwnProperty(e) ? null : ve[e] || null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
|
-
function
|
|
54
|
+
function be() {
|
|
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 xe = [
|
|
61
61
|
void 0,
|
|
62
62
|
10,
|
|
63
63
|
12,
|
|
@@ -65,24 +65,24 @@ var we = [
|
|
|
65
65
|
24,
|
|
66
66
|
32,
|
|
67
67
|
64
|
|
68
|
-
],
|
|
68
|
+
], Se = ["xlink:href"], Ce = /* @__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 = be(), 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 && xe.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) => (D(), 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, Se)], 2));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), we = /* @__PURE__ */ f({
|
|
86
86
|
__name: "PvCounterBadge",
|
|
87
87
|
props: {
|
|
88
88
|
value: { type: Number },
|
|
@@ -114,19 +114,19 @@ var we = [
|
|
|
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) => (D(), 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
|
+
}), Te = ".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}", Ee = (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
|
+
}, De = /* @__PURE__ */ Ee(we, [["styles", [Te]], ["__scopeId", "data-v-743a2e13"]]), Oe = ["disabled", "aria-label"], ke = {
|
|
127
127
|
key: 2,
|
|
128
128
|
"data-testid": "pv-button-label"
|
|
129
|
-
},
|
|
129
|
+
}, K = /* @__PURE__ */ f({
|
|
130
130
|
__name: "PvButton",
|
|
131
131
|
props: {
|
|
132
132
|
variant: {
|
|
@@ -159,54 +159,54 @@ var we = [
|
|
|
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 && _e.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
163
|
+
let t = ye(n.size);
|
|
164
164
|
return t && e.push(t), e;
|
|
165
165
|
});
|
|
166
|
-
return (n, r) => (
|
|
166
|
+
return (n, r) => (D(), 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 ? (D(), i(G, {
|
|
173
173
|
key: 0,
|
|
174
174
|
size: "sm"
|
|
175
|
-
})) : (
|
|
176
|
-
e.leftCounterBadge ? (
|
|
175
|
+
})) : (D(), o(t, { key: 1 }, [
|
|
176
|
+
e.leftCounterBadge ? (D(), i(De, {
|
|
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 ? (D(), i(Ce, {
|
|
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 ? (D(), o("span", ke, F(e.label), 1)) : a("v-if", !0),
|
|
187
|
+
e.rightCounterBadge ? (D(), i(De, {
|
|
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 ? (D(), i(Ce, {
|
|
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, Oe));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), Ae = { class: "pv-inset-squish-12" }, je = {
|
|
200
200
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
201
201
|
style: { "--flex-align": "flex-start" }
|
|
202
|
-
},
|
|
202
|
+
}, Me = { class: "pv-heading-3" }, Ne = {
|
|
203
203
|
key: 0,
|
|
204
204
|
class: "pv-text-body-md"
|
|
205
|
-
},
|
|
205
|
+
}, Pe = {
|
|
206
206
|
key: 0,
|
|
207
207
|
class: "pv-inset-squish-12 pv-border-top",
|
|
208
208
|
style: { "--color-border": "#d2d8dc" }
|
|
209
|
-
},
|
|
209
|
+
}, Fe = /* @__PURE__ */ f({
|
|
210
210
|
__name: "PvModal",
|
|
211
211
|
props: /* @__PURE__ */ v({
|
|
212
212
|
header: { type: String },
|
|
@@ -228,8 +228,8 @@ var we = [
|
|
|
228
228
|
}),
|
|
229
229
|
emits: ["update:modelValue"],
|
|
230
230
|
setup(e) {
|
|
231
|
-
let t = e, n =
|
|
232
|
-
|
|
231
|
+
let t = e, n = ie("dialog"), r = z(e, "modelValue");
|
|
232
|
+
V(() => r.value, () => {
|
|
233
233
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
234
234
|
});
|
|
235
235
|
let i = () => {
|
|
@@ -237,78 +237,78 @@ var we = [
|
|
|
237
237
|
}, c = (e) => {
|
|
238
238
|
!t.disableCloseOnClickOutside && e.target === n.value && i();
|
|
239
239
|
};
|
|
240
|
-
return (t, n) => (
|
|
240
|
+
return (t, n) => (D(), 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", Ae, [s("div", je, [s("span", Me, F(e.header), 1), e.subheader ? (D(), o("span", Ne, F(e.subheader), 1)) : a("v-if", !0)]), M(t.$slots, "body")]), e.hideFooter ? a("v-if", !0) : (D(), o("div", Pe, [M(t.$slots, "footer")]))], 544));
|
|
247
247
|
}
|
|
248
|
-
}),
|
|
248
|
+
}), Ie = Math.min, Le = Math.max, q = Math.round, Re = (e) => ({
|
|
249
249
|
x: e,
|
|
250
250
|
y: e
|
|
251
|
-
}),
|
|
251
|
+
}), ze = {
|
|
252
252
|
left: "right",
|
|
253
253
|
right: "left",
|
|
254
254
|
bottom: "top",
|
|
255
255
|
top: "bottom"
|
|
256
256
|
};
|
|
257
|
-
function
|
|
257
|
+
function Be(e, t) {
|
|
258
258
|
return typeof e == "function" ? e(t) : e;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ve(e) {
|
|
261
261
|
return e.split("-")[0];
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function He(e) {
|
|
264
264
|
return e.split("-")[1];
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Ue(e) {
|
|
267
267
|
return e === "x" ? "y" : "x";
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function We(e) {
|
|
270
270
|
return e === "y" ? "height" : "width";
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ge(e) {
|
|
273
273
|
let t = e[0];
|
|
274
274
|
return t === "t" || t === "b" ? "y" : "x";
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
276
|
+
function Ke(e) {
|
|
277
|
+
return Ue(Ge(e));
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function qe(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 = He(e), i = Ke(e), a = We(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
282
|
+
return t.reference[a] > t.floating[a] && (o = nt(o)), [o, nt(o)];
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
let t =
|
|
284
|
+
function Je(e) {
|
|
285
|
+
let t = nt(e);
|
|
286
286
|
return [
|
|
287
|
-
|
|
287
|
+
Ye(e),
|
|
288
288
|
t,
|
|
289
|
-
|
|
289
|
+
Ye(t)
|
|
290
290
|
];
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ye(e) {
|
|
293
293
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
294
294
|
}
|
|
295
|
-
var
|
|
296
|
-
function
|
|
295
|
+
var Xe = ["left", "right"], Ze = ["right", "left"], Qe = ["top", "bottom"], $e = ["bottom", "top"];
|
|
296
|
+
function et(e, t, n) {
|
|
297
297
|
switch (e) {
|
|
298
298
|
case "top":
|
|
299
|
-
case "bottom": return n ? t ?
|
|
299
|
+
case "bottom": return n ? t ? Ze : Xe : t ? Xe : Ze;
|
|
300
300
|
case "left":
|
|
301
|
-
case "right": return t ?
|
|
301
|
+
case "right": return t ? Qe : $e;
|
|
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 tt(e, t, n, r) {
|
|
306
|
+
let i = He(e), a = et(Ve(e), n === "start", r);
|
|
307
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ye)))), a;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
let t =
|
|
311
|
-
return
|
|
309
|
+
function nt(e) {
|
|
310
|
+
let t = Ve(e);
|
|
311
|
+
return ze[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 = Ge(t), o = Ke(t), s = We(o), c = Ve(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 (He(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 } = Be(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 } = Be(e, t);
|
|
464
464
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
465
|
-
let g =
|
|
466
|
-
!d && x && b.push(...
|
|
465
|
+
let g = Ve(r), _ = Ge(o), v = Ve(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [nt(o)] : Je(o)), x = p !== "none";
|
|
466
|
+
!d && x && b.push(...tt(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 = qe(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" && _ !== Ge(t)) || T.every((e) => Ge(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 = Ge(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 = Ve(n), s = He(n), c = Ge(n) === "y", l = dt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Be(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 vt(e) {
|
|
562
562
|
return mt() ? e instanceof Element || e instanceof J(e).Element : !1;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function yt(e) {
|
|
565
565
|
return mt() ? e instanceof HTMLElement || e instanceof J(e).HTMLElement : !1;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function bt(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 xt(e) {
|
|
571
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Mt(e);
|
|
572
572
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function St(e) {
|
|
575
575
|
return /^(table|td|th)$/.test(ht(e));
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Ct(e) {
|
|
578
578
|
try {
|
|
579
579
|
if (e.matches(":popover-open")) return !0;
|
|
580
580
|
} catch {}
|
|
@@ -584,31 +584,31 @@ function St(e) {
|
|
|
584
584
|
return !1;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
var
|
|
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
|
-
}
|
|
587
|
+
var wt = /transform|translate|scale|rotate|perspective|filter/, Tt = /paint|layout|strict|content/, Et = (e) => !!e && e !== "none", Dt;
|
|
592
588
|
function Ot(e) {
|
|
593
|
-
let t =
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
589
|
+
let t = vt(e) ? Mt(e) : e;
|
|
590
|
+
return Et(t.transform) || Et(t.translate) || Et(t.scale) || Et(t.rotate) || Et(t.perspective) || !At() && (Et(t.backdropFilter) || Et(t.filter)) || wt.test(t.willChange || "") || Tt.test(t.contain || "");
|
|
591
|
+
}
|
|
592
|
+
function kt(e) {
|
|
593
|
+
let t = Pt(e);
|
|
594
|
+
for (; yt(t) && !jt(t);) {
|
|
595
|
+
if (Ot(t)) return t;
|
|
596
|
+
if (Ct(t)) return null;
|
|
597
|
+
t = Pt(t);
|
|
598
598
|
}
|
|
599
599
|
return null;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function At() {
|
|
602
|
+
return Dt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Dt;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function jt(e) {
|
|
605
605
|
return /^(html|body|#document)$/.test(ht(e));
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Mt(e) {
|
|
608
608
|
return J(e).getComputedStyle(e);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function Nt(e) {
|
|
611
|
+
return vt(e) ? {
|
|
612
612
|
scrollLeft: e.scrollLeft,
|
|
613
613
|
scrollTop: e.scrollTop
|
|
614
614
|
} : {
|
|
@@ -616,69 +616,69 @@ function Mt(e) {
|
|
|
616
616
|
scrollTop: e.scrollY
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Pt(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 || bt(e) && e.host || gt(e);
|
|
622
|
+
return bt(t) ? t.host : t;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
let t =
|
|
626
|
-
return
|
|
624
|
+
function Ft(e) {
|
|
625
|
+
let t = Pt(e);
|
|
626
|
+
return jt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : yt(t) && xt(t) ? t : Ft(t);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function It(e, t, n) {
|
|
629
629
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
630
|
-
let r =
|
|
630
|
+
let r = Ft(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 = Lt(a);
|
|
633
|
+
return t.concat(a, a.visualViewport || [], xt(r) ? r : [], e && n ? It(e) : []);
|
|
634
|
+
} else return t.concat(r, It(r, [], n));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Lt(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 Rt(e) {
|
|
642
|
+
let t = Mt(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = yt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = q(n) !== a || q(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 Rt(e) {
|
|
650
|
-
return Y(e) ? e : e.contextElement;
|
|
651
|
-
}
|
|
652
649
|
function zt(e) {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
650
|
+
return vt(e) ? e : e.contextElement;
|
|
651
|
+
}
|
|
652
|
+
function Bt(e) {
|
|
653
|
+
let t = zt(e);
|
|
654
|
+
if (!yt(t)) return Re(1);
|
|
655
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Rt(t), o = (a ? q(n.width) : n.width) / r, s = (a ? q(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 Vt = /* @__PURE__ */ Re(0);
|
|
662
|
+
function Ht(e) {
|
|
663
663
|
let t = J(e);
|
|
664
|
-
return !
|
|
664
|
+
return !At() || !t.visualViewport ? Vt : {
|
|
665
665
|
x: t.visualViewport.offsetLeft,
|
|
666
666
|
y: t.visualViewport.offsetTop
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Ut(e, t, n) {
|
|
670
670
|
return t === void 0 && (t = !1), !n || t && n !== J(e) ? !1 : t;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Wt(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 = zt(e), o = Re(1);
|
|
675
|
+
t && (r ? vt(r) && (o = Bt(r)) : o = Bt(e));
|
|
676
|
+
let s = Ut(a, n, r) ? Ht(a) : Re(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 && vt(r) ? J(r) : r, n = e, i = Lt(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 = Bt(i), t = i.getBoundingClientRect(), r = Mt(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 = Lt(n);
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
return at({
|
|
@@ -688,29 +688,29 @@ function Ut(e, t, n, r) {
|
|
|
688
688
|
y: l
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
|
-
function Wt(e, t) {
|
|
692
|
-
let n = Mt(e).scrollLeft;
|
|
693
|
-
return t ? t.left + n : Ut(gt(e)).left + n;
|
|
694
|
-
}
|
|
695
691
|
function Gt(e, t) {
|
|
692
|
+
let n = Nt(e).scrollLeft;
|
|
693
|
+
return t ? t.left + n : Wt(gt(e)).left + n;
|
|
694
|
+
}
|
|
695
|
+
function Kt(e, t) {
|
|
696
696
|
let n = e.getBoundingClientRect();
|
|
697
697
|
return {
|
|
698
|
-
x: n.left + t.scrollLeft -
|
|
698
|
+
x: n.left + t.scrollLeft - Gt(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 qt(e) {
|
|
703
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = gt(r), s = t ? Ct(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 = Re(1), u = Re(0), d = yt(r);
|
|
709
|
+
if ((d || !d && !a) && ((ht(r) !== "body" || xt(o)) && (c = Nt(r)), d)) {
|
|
710
|
+
let e = Wt(r);
|
|
711
|
+
l = Bt(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 ? Kt(o, c) : Re(0);
|
|
714
714
|
return {
|
|
715
715
|
width: n.width * l.x,
|
|
716
716
|
height: n.height * l.y,
|
|
@@ -718,31 +718,31 @@ function Kt(e) {
|
|
|
718
718
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Jt(e) {
|
|
722
722
|
return Array.from(e.getClientRects());
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
let t = gt(e), n =
|
|
726
|
-
return
|
|
724
|
+
function Yt(e) {
|
|
725
|
+
let t = gt(e), n = Nt(e), r = e.ownerDocument.body, i = Le(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Le(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Gt(e), s = -n.scrollTop;
|
|
726
|
+
return Mt(r).direction === "rtl" && (o += Le(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 Xt = 25;
|
|
734
|
+
function Zt(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 = At();
|
|
739
739
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
740
740
|
}
|
|
741
|
-
let l =
|
|
741
|
+
let l = Gt(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 <= Xt && (a -= o);
|
|
745
|
+
} else l <= Xt && (a += l);
|
|
746
746
|
return {
|
|
747
747
|
width: a,
|
|
748
748
|
height: o,
|
|
@@ -750,8 +750,8 @@ function Xt(e, t) {
|
|
|
750
750
|
y: c
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
let n =
|
|
753
|
+
function Qt(e, t) {
|
|
754
|
+
let n = Wt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = yt(e) ? Bt(e) : Re(1);
|
|
755
755
|
return {
|
|
756
756
|
width: e.clientWidth * a.x,
|
|
757
757
|
height: e.clientHeight * a.y,
|
|
@@ -759,13 +759,13 @@ function Zt(e, t) {
|
|
|
759
759
|
y: r * a.y
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function $t(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 = Zt(e, n);
|
|
765
|
+
else if (t === "document") r = Yt(gt(e));
|
|
766
|
+
else if (vt(t)) r = Qt(t, n);
|
|
767
767
|
else {
|
|
768
|
-
let n =
|
|
768
|
+
let n = Ht(e);
|
|
769
769
|
r = {
|
|
770
770
|
x: t.x - n.x,
|
|
771
771
|
y: t.y - n.y,
|
|
@@ -775,25 +775,25 @@ function Qt(e, t, n) {
|
|
|
775
775
|
}
|
|
776
776
|
return at(r);
|
|
777
777
|
}
|
|
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
|
-
}
|
|
782
778
|
function en(e, t) {
|
|
779
|
+
let n = Pt(e);
|
|
780
|
+
return n === t || !vt(n) || jt(n) ? !1 : Mt(n).position === "fixed" || en(n, t);
|
|
781
|
+
}
|
|
782
|
+
function tn(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 = It(e, [], !1).filter((e) => vt(e) && ht(e) !== "body"), i = null, a = Mt(e).position === "fixed", o = a ? Pt(e) : e;
|
|
786
|
+
for (; vt(o) && !jt(o);) {
|
|
787
|
+
let t = Mt(o), n = Ot(o);
|
|
788
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || xt(o) && !n && en(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Pt(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 nn(e) {
|
|
793
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ct(t) ? [] : tn(t, this._c) : [].concat(n), r], o = $t(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 = $t(t, a[e], i);
|
|
796
|
+
s = Le(n.top, s), c = Ie(n.right, c), l = Ie(n.bottom, l), u = Le(n.left, u);
|
|
797
797
|
}
|
|
798
798
|
return {
|
|
799
799
|
width: c - u,
|
|
@@ -802,27 +802,27 @@ function tn(e) {
|
|
|
802
802
|
y: s
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
|
-
function
|
|
806
|
-
let { width: t, height: n } =
|
|
805
|
+
function rn(e) {
|
|
806
|
+
let { width: t, height: n } = Rt(e);
|
|
807
807
|
return {
|
|
808
808
|
width: t,
|
|
809
809
|
height: n
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
let r =
|
|
812
|
+
function an(e, t, n) {
|
|
813
|
+
let r = yt(t), i = gt(t), a = n === "fixed", o = Wt(e, !0, a, t), s = {
|
|
814
814
|
scrollLeft: 0,
|
|
815
815
|
scrollTop: 0
|
|
816
|
-
}, c =
|
|
816
|
+
}, c = Re(0);
|
|
817
817
|
function l() {
|
|
818
|
-
c.x =
|
|
818
|
+
c.x = Gt(i);
|
|
819
819
|
}
|
|
820
|
-
if (r || !r && !a) if ((ht(t) !== "body" ||
|
|
821
|
-
let e =
|
|
820
|
+
if (r || !r && !a) if ((ht(t) !== "body" || xt(i)) && (s = Nt(t)), r) {
|
|
821
|
+
let e = Wt(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 ? Kt(i, s) : Re(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 rn(e, t, n) {
|
|
|
830
830
|
height: o.height
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
return
|
|
833
|
+
function on(e) {
|
|
834
|
+
return Mt(e).position === "static";
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
if (!
|
|
836
|
+
function sn(e, t) {
|
|
837
|
+
if (!yt(e) || Mt(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 cn(e, t) {
|
|
843
843
|
let n = J(e);
|
|
844
|
-
if (
|
|
845
|
-
if (!
|
|
846
|
-
let t =
|
|
847
|
-
for (; t && !
|
|
848
|
-
if (
|
|
849
|
-
t =
|
|
844
|
+
if (Ct(e)) return n;
|
|
845
|
+
if (!yt(e)) {
|
|
846
|
+
let t = Pt(e);
|
|
847
|
+
for (; t && !jt(t);) {
|
|
848
|
+
if (vt(t) && !on(t)) return t;
|
|
849
|
+
t = Pt(t);
|
|
850
850
|
}
|
|
851
851
|
return n;
|
|
852
852
|
}
|
|
853
|
-
let r =
|
|
854
|
-
for (; r &&
|
|
855
|
-
return r &&
|
|
853
|
+
let r = sn(e, t);
|
|
854
|
+
for (; r && St(r) && on(r);) r = sn(r, t);
|
|
855
|
+
return r && jt(r) && on(r) && !Ot(r) ? n : r || kt(e) || n;
|
|
856
856
|
}
|
|
857
|
-
var
|
|
858
|
-
let t = this.getOffsetParent ||
|
|
857
|
+
var ln = async function(e) {
|
|
858
|
+
let t = this.getOffsetParent || cn, n = this.getDimensions, r = await n(e.floating);
|
|
859
859
|
return {
|
|
860
|
-
reference:
|
|
860
|
+
reference: an(e.reference, await t(e.floating), e.strategy),
|
|
861
861
|
floating: {
|
|
862
862
|
x: 0,
|
|
863
863
|
y: 0,
|
|
@@ -866,23 +866,23 @@ var cn = async function(e) {
|
|
|
866
866
|
}
|
|
867
867
|
};
|
|
868
868
|
};
|
|
869
|
-
function
|
|
870
|
-
return
|
|
869
|
+
function un(e) {
|
|
870
|
+
return Mt(e).direction === "rtl";
|
|
871
871
|
}
|
|
872
|
-
var
|
|
873
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
872
|
+
var dn = {
|
|
873
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qt,
|
|
874
874
|
getDocumentElement: gt,
|
|
875
|
-
getClippingRect:
|
|
876
|
-
getOffsetParent:
|
|
877
|
-
getElementRects:
|
|
878
|
-
getClientRects:
|
|
879
|
-
getDimensions:
|
|
880
|
-
getScale:
|
|
881
|
-
isElement:
|
|
882
|
-
isRTL:
|
|
883
|
-
},
|
|
875
|
+
getClippingRect: nn,
|
|
876
|
+
getOffsetParent: cn,
|
|
877
|
+
getElementRects: ln,
|
|
878
|
+
getClientRects: Jt,
|
|
879
|
+
getDimensions: rn,
|
|
880
|
+
getScale: Bt,
|
|
881
|
+
isElement: vt,
|
|
882
|
+
isRTL: un
|
|
883
|
+
}, fn = pt, pn = ut, mn = (e, t, n) => {
|
|
884
884
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
885
|
-
platform:
|
|
885
|
+
platform: dn,
|
|
886
886
|
...n
|
|
887
887
|
}, a = {
|
|
888
888
|
...i.platform,
|
|
@@ -892,22 +892,22 @@ var un = {
|
|
|
892
892
|
...i,
|
|
893
893
|
platform: a
|
|
894
894
|
});
|
|
895
|
-
},
|
|
895
|
+
}, Y = /* @__PURE__ */ me({
|
|
896
896
|
Vue: () => e,
|
|
897
897
|
Vue2: () => void 0,
|
|
898
|
-
del: () =>
|
|
899
|
-
install: () =>
|
|
898
|
+
del: () => vn,
|
|
899
|
+
install: () => gn,
|
|
900
900
|
isVue2: () => !1,
|
|
901
901
|
isVue3: () => !0,
|
|
902
|
-
set: () =>
|
|
902
|
+
set: () => _n
|
|
903
903
|
});
|
|
904
|
-
import * as
|
|
905
|
-
|
|
906
|
-
function
|
|
907
|
-
function
|
|
904
|
+
import * as hn from "vue";
|
|
905
|
+
ge(Y, hn);
|
|
906
|
+
function gn() {}
|
|
907
|
+
function _n(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 vn(e, t) {
|
|
911
911
|
if (Array.isArray(e)) {
|
|
912
912
|
e.splice(t, 1);
|
|
913
913
|
return;
|
|
@@ -916,40 +916,40 @@ function _n(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 yn(e) {
|
|
920
920
|
return typeof e == "object" && !!e && "$el" in e;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
if (
|
|
922
|
+
function bn(e) {
|
|
923
|
+
if (yn(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 bn(e) {
|
|
930
|
-
return typeof e == "function" ? e() : (0, X.unref)(e);
|
|
931
|
-
}
|
|
932
929
|
function xn(e) {
|
|
930
|
+
return typeof e == "function" ? e() : (0, Y.unref)(e);
|
|
931
|
+
}
|
|
932
|
+
function Sn(e) {
|
|
933
933
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
let n =
|
|
935
|
+
function Cn(e, t) {
|
|
936
|
+
let n = Sn(e);
|
|
937
937
|
return Math.round(t * n) / n;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function wn(e, t, n) {
|
|
940
940
|
n === void 0 && (n = {});
|
|
941
|
-
let r = n.whileElementsMounted, i = (0,
|
|
941
|
+
let r = n.whileElementsMounted, i = (0, Y.computed)(() => xn(n.open) ?? !0), a = (0, Y.computed)(() => xn(n.middleware)), o = (0, Y.computed)(() => xn(n.placement) ?? "bottom"), s = (0, Y.computed)(() => xn(n.strategy) ?? "absolute"), c = (0, Y.computed)(() => xn(n.transform) ?? !0), l = (0, Y.computed)(() => bn(e.value)), u = (0, Y.computed)(() => bn(t.value)), d = (0, Y.ref)(0), f = (0, Y.ref)(0), p = (0, Y.ref)(s.value), m = (0, Y.ref)(o.value), h = (0, Y.shallowRef)({}), g = (0, Y.ref)(!1), _ = (0, Y.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 = Cn(u.value, d.value), n = Cn(u.value, f.value);
|
|
949
949
|
return c.value ? {
|
|
950
950
|
...e,
|
|
951
951
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
952
|
-
...
|
|
952
|
+
...Sn(u.value) >= 1.5 && { willChange: "transform" }
|
|
953
953
|
} : {
|
|
954
954
|
position: p.value,
|
|
955
955
|
left: t + "px",
|
|
@@ -959,7 +959,7 @@ function Cn(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
|
+
mn(l.value, u.value, {
|
|
963
963
|
middleware: a.value,
|
|
964
964
|
placement: o.value,
|
|
965
965
|
strategy: s.value
|
|
@@ -983,42 +983,42 @@ function Cn(e, t, n) {
|
|
|
983
983
|
function S() {
|
|
984
984
|
i.value || (g.value = !1);
|
|
985
985
|
}
|
|
986
|
-
return (0,
|
|
986
|
+
return (0, Y.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, Y.watch)([l, u], x, { flush: "sync" }), (0, Y.watch)(i, S, { flush: "sync" }), (0, Y.getCurrentScope)() && (0, Y.onScopeDispose)(b), {
|
|
992
|
+
x: (0, Y.shallowReadonly)(d),
|
|
993
|
+
y: (0, Y.shallowReadonly)(f),
|
|
994
|
+
strategy: (0, Y.shallowReadonly)(p),
|
|
995
|
+
placement: (0, Y.shallowReadonly)(m),
|
|
996
|
+
middlewareData: (0, Y.shallowReadonly)(h),
|
|
997
|
+
isPositioned: (0, Y.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 Tn(e) {
|
|
1005
1005
|
return h() ? (E(e), !0) : !1;
|
|
1006
1006
|
}
|
|
1007
|
-
var
|
|
1007
|
+
var En = typeof window < "u" && typeof document < "u";
|
|
1008
1008
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1009
|
-
var
|
|
1010
|
-
function
|
|
1011
|
-
return
|
|
1009
|
+
var Dn = (e) => e != null, On = Object.prototype.toString, kn = (e) => On.call(e) === "[object Object]", An = () => {}, jn = /* @__PURE__ */ Mn();
|
|
1010
|
+
function Mn() {
|
|
1011
|
+
return En && (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 Nn(...e) {
|
|
1014
|
+
if (e.length !== 1) return I(...e);
|
|
1015
1015
|
let t = e[0];
|
|
1016
1016
|
return typeof t == "function" ? k(d(() => ({
|
|
1017
1017
|
get: t,
|
|
1018
|
-
set:
|
|
1018
|
+
set: An
|
|
1019
1019
|
}))) : A(t);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Pn(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 Nn(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 Fn = (e) => e();
|
|
1034
|
+
function In(e, t = {}) {
|
|
1035
|
+
let n, r, i = An, a = (e) => {
|
|
1036
|
+
clearTimeout(e), i(), i = An;
|
|
1037
1037
|
}, o;
|
|
1038
1038
|
return (s) => {
|
|
1039
|
-
let c =
|
|
1039
|
+
let c = L(e), l = L(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 Fn(e, t = {}) {
|
|
|
1046
1046
|
});
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Ln(e) {
|
|
1050
1050
|
return Array.isArray(e) ? e : [e];
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Rn(e) {
|
|
1053
1053
|
return e || m();
|
|
1054
1054
|
}
|
|
1055
1055
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1056
|
+
function zn(e, t = 200, n = {}) {
|
|
1057
|
+
return Pn(In(t, n), e);
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
let { eventFilter: r =
|
|
1061
|
-
return
|
|
1059
|
+
function Bn(e, t, n = {}) {
|
|
1060
|
+
let { eventFilter: r = Fn, ...i } = n;
|
|
1061
|
+
return V(e, Pn(r, t), i);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
|
|
1063
|
+
function Vn(e, t = !0, n) {
|
|
1064
|
+
Rn(n) ? T(e, n) : t ? e() : b(e);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Hn(e, t, n = {}) {
|
|
1067
1067
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
1068
|
-
return
|
|
1068
|
+
return Bn(e, t, {
|
|
1069
1069
|
...a,
|
|
1070
|
-
eventFilter:
|
|
1070
|
+
eventFilter: In(r, { maxWait: i })
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1073
|
+
function Un(e, t, n) {
|
|
1074
|
+
return V(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 Wn = En ? window : void 0;
|
|
1082
|
+
En && window.document, En && window.navigator, En && window.location;
|
|
1083
|
+
function Gn(e) {
|
|
1084
|
+
let t = L(e);
|
|
1085
1085
|
return t?.$el ?? t;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Kn(...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 = Ln(L(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 = Un(() => [
|
|
1094
|
+
a.value?.map((e) => Gn(e)) ?? [Wn].filter((e) => e != null),
|
|
1095
|
+
Ln(L(a.value ? e[1] : e[0])),
|
|
1096
|
+
Ln(R(a.value ? e[2] : e[1])),
|
|
1097
|
+
L(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 = kn(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 Tn(n), () => {
|
|
1104
1104
|
o(), n();
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
1107
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1108
|
-
function
|
|
1108
|
+
function qn() {
|
|
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 Jn(e) {
|
|
1116
|
+
let t = /* @__PURE__ */ qn();
|
|
1117
1117
|
return r(() => (t.value, !!e()));
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
let { window: i =
|
|
1119
|
+
function Yn(e, t, n = {}) {
|
|
1120
|
+
let { window: i = Wn, ...a } = n, o, s = /* @__PURE__ */ Jn(() => i && "MutationObserver" in i), c = () => {
|
|
1121
1121
|
o &&= (o.disconnect(), void 0);
|
|
1122
|
-
}, l =
|
|
1123
|
-
let t =
|
|
1122
|
+
}, l = V(r(() => {
|
|
1123
|
+
let t = Ln(L(e)).map(Gn).filter(Dn);
|
|
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 Jn(e, t, n = {}) {
|
|
|
1130
1130
|
}), u = () => o?.takeRecords(), d = () => {
|
|
1131
1131
|
l(), c();
|
|
1132
1132
|
};
|
|
1133
|
-
return
|
|
1133
|
+
return Tn(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 Xn(e, t, n = {}) {
|
|
1140
|
+
let { window: r = Wn, document: i = r?.document, flush: a = "sync" } = n;
|
|
1141
|
+
if (!r || !i) return An;
|
|
1142
1142
|
let o, s = (e) => {
|
|
1143
1143
|
o?.(), o = e;
|
|
1144
|
-
}, c =
|
|
1145
|
-
let n =
|
|
1144
|
+
}, c = ce(() => {
|
|
1145
|
+
let n = Gn(e);
|
|
1146
1146
|
if (n) {
|
|
1147
|
-
let { stop: e } =
|
|
1147
|
+
let { stop: e } = Yn(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 Yn(e, t, n = {}) {
|
|
|
1156
1156
|
}, { flush: a }), l = () => {
|
|
1157
1157
|
c(), s();
|
|
1158
1158
|
};
|
|
1159
|
-
return
|
|
1159
|
+
return Tn(l), l;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Zn(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 Qn(...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 = Wn, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Zn(t);
|
|
1168
|
+
return Kn(i, a, (e) => {
|
|
1169
|
+
e.repeat && L(s) || c(e) && n(e);
|
|
1170
1170
|
}, o);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
let { window: i =
|
|
1172
|
+
function $n(e, t, n = {}) {
|
|
1173
|
+
let { window: i = Wn, ...a } = n, o, s = /* @__PURE__ */ Jn(() => 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 = V(r(() => {
|
|
1176
|
+
let t = L(e);
|
|
1177
|
+
return Array.isArray(t) ? t.map((e) => Gn(e)) : [Gn(t)];
|
|
1178
1178
|
}), (e) => {
|
|
1179
1179
|
if (c(), s.value && i) {
|
|
1180
1180
|
o = new ResizeObserver(t);
|
|
@@ -1186,15 +1186,15 @@ function Qn(e, t, n = {}) {
|
|
|
1186
1186
|
}), u = () => {
|
|
1187
1187
|
c(), l();
|
|
1188
1188
|
};
|
|
1189
|
-
return
|
|
1189
|
+
return Tn(u), {
|
|
1190
1190
|
isSupported: s,
|
|
1191
1191
|
stop: u
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function er(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 = Gn(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 $n(e, t = {}) {
|
|
|
1205
1205
|
function g() {
|
|
1206
1206
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
1207
1207
|
}
|
|
1208
|
-
return
|
|
1208
|
+
return $n(e, g), V(() => Gn(e), (e) => !e && g()), Yn(e, g, { attributeFilter: ["style", "class"] }), i && Kn("scroll", g, {
|
|
1209
1209
|
capture: !0,
|
|
1210
1210
|
passive: !0
|
|
1211
|
-
}), r &&
|
|
1211
|
+
}), r && Kn("resize", g, { passive: !0 }), Vn(() => {
|
|
1212
1212
|
a && g();
|
|
1213
1213
|
}), {
|
|
1214
1214
|
height: s,
|
|
@@ -1222,70 +1222,70 @@ function $n(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 tr(e, t = {}) {
|
|
1226
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Wn } = 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 ? (Kn(e, "mouseenter", () => l(!0), { passive: !0 }), Kn(e, "mouseleave", () => l(!1), { passive: !0 }), a && Xn(r(() => Gn(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 nr = En ? window : void 0;
|
|
1235
|
+
function rr(e) {
|
|
1236
|
+
let t = L(e);
|
|
1237
1237
|
return t?.$el ?? t;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function ir(...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 = Ln(L(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 = Un(() => [
|
|
1246
|
+
a.value?.map((e) => rr(e)) ?? [nr].filter((e) => e != null),
|
|
1247
|
+
Ln(L(a.value ? e[1] : e[0])),
|
|
1248
|
+
Ln(R(a.value ? e[2] : e[1])),
|
|
1249
|
+
L(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 = kn(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 Tn(n), () => {
|
|
1256
1256
|
o(), n();
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1261
|
-
let { window: r =
|
|
1259
|
+
var ar = !1;
|
|
1260
|
+
function or(e, t, n = {}) {
|
|
1261
|
+
let { window: r = nr, 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: An,
|
|
1264
|
+
cancel: An,
|
|
1265
|
+
trigger: An
|
|
1266
|
+
} : An;
|
|
1267
|
+
if (jn && !ar) {
|
|
1268
|
+
ar = !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", An, e)), r.document.documentElement.addEventListener("click", An, e);
|
|
1271
1271
|
}
|
|
1272
|
-
let c = !0, l = (e) =>
|
|
1272
|
+
let c = !0, l = (e) => L(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 = rr(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 = L(e);
|
|
1281
1281
|
return t && t.$.subTree.shapeFlag === 16;
|
|
1282
1282
|
}
|
|
1283
1283
|
function d(e, t) {
|
|
1284
|
-
let n =
|
|
1284
|
+
let n = L(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 = rr(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 ar(e, t, n = {}) {
|
|
|
1294
1294
|
t(n);
|
|
1295
1295
|
}
|
|
1296
1296
|
}, p = !1, m = [
|
|
1297
|
-
|
|
1297
|
+
ir(r, "click", (e) => {
|
|
1298
1298
|
p || (p = !0, setTimeout(() => {
|
|
1299
1299
|
p = !1;
|
|
1300
1300
|
}, 0), f(e));
|
|
@@ -1302,13 +1302,13 @@ function ar(e, t, n = {}) {
|
|
|
1302
1302
|
passive: !0,
|
|
1303
1303
|
capture: a
|
|
1304
1304
|
}),
|
|
1305
|
-
|
|
1306
|
-
let n =
|
|
1305
|
+
ir(r, "pointerdown", (t) => {
|
|
1306
|
+
let n = rr(e);
|
|
1307
1307
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
1308
1308
|
}, { passive: !0 }),
|
|
1309
|
-
o &&
|
|
1309
|
+
o && ir(r, "blur", (n) => {
|
|
1310
1310
|
setTimeout(() => {
|
|
1311
|
-
let i =
|
|
1311
|
+
let i = rr(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 ar(e, t, n = {}) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
} : h;
|
|
1325
1325
|
}
|
|
1326
|
-
var
|
|
1326
|
+
var sr = /* @__PURE__ */ new WeakMap(), cr = {
|
|
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 = or(e, t.value, { capture: n });
|
|
1330
1330
|
else {
|
|
1331
1331
|
let [i, a] = t.value;
|
|
1332
|
-
r =
|
|
1332
|
+
r = or(e, i, Object.assign({ capture: n }, a));
|
|
1333
1333
|
}
|
|
1334
|
-
|
|
1334
|
+
sr.set(e, r);
|
|
1335
1335
|
},
|
|
1336
1336
|
unmounted(e) {
|
|
1337
|
-
let t =
|
|
1338
|
-
t && typeof t == "function" ? t() : t?.stop(),
|
|
1337
|
+
let t = sr.get(e);
|
|
1338
|
+
t && typeof t == "function" ? t() : t?.stop(), sr.delete(e);
|
|
1339
1339
|
}
|
|
1340
1340
|
};
|
|
1341
|
-
function
|
|
1341
|
+
function lr(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 ur(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 : ur(t);
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function dr(e) {
|
|
1353
1353
|
let t = e || window.event, n = t.target;
|
|
1354
|
-
return
|
|
1354
|
+
return ur(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
1355
1355
|
}
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1356
|
+
var fr = /* @__PURE__ */ new WeakMap();
|
|
1357
|
+
function pr(e, t = !1) {
|
|
1358
1358
|
let n = P(t), i = null, a = "";
|
|
1359
|
-
|
|
1360
|
-
let t =
|
|
1359
|
+
V(Nn(e), (e) => {
|
|
1360
|
+
let t = lr(L(e));
|
|
1361
1361
|
if (t) {
|
|
1362
1362
|
let e = t;
|
|
1363
|
-
if (
|
|
1363
|
+
if (fr.get(e) || fr.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 = lr(L(e));
|
|
1369
|
+
!t || n.value || (jn && (i = ir(t, "touchmove", (e) => {
|
|
1370
|
+
dr(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 = lr(L(e));
|
|
1374
|
+
!t || !n.value || (jn && i?.(), t.style.overflow = a, fr.delete(t), n.value = !1);
|
|
1375
1375
|
};
|
|
1376
|
-
return
|
|
1376
|
+
return Tn(s), r({
|
|
1377
1377
|
get() {
|
|
1378
1378
|
return n.value;
|
|
1379
1379
|
},
|
|
@@ -1382,19 +1382,19 @@ function fr(e, t = !1) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function mr() {
|
|
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 = pr(n, r.value);
|
|
1391
|
+
V(t, (e) => i.value = e);
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1394
|
+
mr();
|
|
1395
1395
|
//#endregion
|
|
1396
1396
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1397
|
-
var
|
|
1397
|
+
var hr = { style: { width: "fit-content" } }, gr = /* @__PURE__ */ f({
|
|
1398
1398
|
__name: "PvPopoverV2",
|
|
1399
1399
|
props: /* @__PURE__ */ v({
|
|
1400
1400
|
disableAutoPlacement: {
|
|
@@ -1445,7 +1445,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1445
1445
|
}),
|
|
1446
1446
|
emits: ["update:modelValue"],
|
|
1447
1447
|
setup(e) {
|
|
1448
|
-
let t = e, c =
|
|
1448
|
+
let t = e, c = z(e, "modelValue"), l = A(null), u = A(null), d = A(null), f = tr(l), p = tr(d), m = {
|
|
1449
1449
|
"top-center": "top",
|
|
1450
1450
|
"bottom-center": "bottom",
|
|
1451
1451
|
"center-left": "left",
|
|
@@ -1459,19 +1459,19 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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(pn({ fallbackStrategy: "initialPlacement" })), t.offset && h?.push(fn(t.offset));
|
|
1463
|
+
let { floatingStyles: g, update: _ } = wn(u, d, {
|
|
1464
1464
|
placement: m[t.position],
|
|
1465
1465
|
strategy: t.positioningStrategy,
|
|
1466
1466
|
middleware: h
|
|
1467
1467
|
});
|
|
1468
|
-
|
|
1468
|
+
V(c, (e) => {
|
|
1469
1469
|
e && u.value && d.value && _();
|
|
1470
1470
|
});
|
|
1471
|
-
let v =
|
|
1471
|
+
let v = er(u), y = /* @__PURE__ */ zn(() => {
|
|
1472
1472
|
c.value && _();
|
|
1473
1473
|
}, 5);
|
|
1474
|
-
|
|
1474
|
+
V([
|
|
1475
1475
|
v.top,
|
|
1476
1476
|
v.left,
|
|
1477
1477
|
v.width,
|
|
@@ -1493,31 +1493,31 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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
|
+
}), te = r(() => t.showOnHover ? t.disableInteractive ? f.value : f.value || p.value : !1), O = () => {
|
|
1497
1497
|
t.showOnHover || w(x ? !1 : !c.value);
|
|
1498
1498
|
}, k = () => {
|
|
1499
1499
|
t.disableClickOutsideToClose || w(!1);
|
|
1500
1500
|
};
|
|
1501
|
-
return
|
|
1501
|
+
return V(te, (e) => {
|
|
1502
1502
|
t.showOnHover && w(e);
|
|
1503
|
-
}),
|
|
1503
|
+
}), ee(() => {
|
|
1504
1504
|
S();
|
|
1505
|
-
}), (r, u) =>
|
|
1505
|
+
}), (r, u) => ue((D(), o("div", hr, [s("div", {
|
|
1506
1506
|
ref_key: "triggerWrapper",
|
|
1507
1507
|
ref: l,
|
|
1508
|
-
onClick:
|
|
1509
|
-
}, [M(r.$slots, "trigger")], 512), r.$slots.content ? (
|
|
1508
|
+
onClick: O
|
|
1509
|
+
}, [M(r.$slots, "trigger")], 512), r.$slots.content ? (D(), i(n, {
|
|
1510
1510
|
key: 0,
|
|
1511
1511
|
to: e.teleportLocation,
|
|
1512
1512
|
disabled: !t.useTeleport
|
|
1513
|
-
}, [
|
|
1513
|
+
}, [ue(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), [[se, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[R(cr), [k, { ignore: E.value }]]]);
|
|
1519
1519
|
}
|
|
1520
|
-
}),
|
|
1520
|
+
}), _r = ["data-variant"], vr = /* @__PURE__ */ f({
|
|
1521
1521
|
__name: "PvTooltipV2",
|
|
1522
1522
|
props: {
|
|
1523
1523
|
variant: {
|
|
@@ -1556,20 +1556,20 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1556
1556
|
ignoreClickOutsideClasses: { type: Array }
|
|
1557
1557
|
},
|
|
1558
1558
|
setup(e) {
|
|
1559
|
-
return (t, n) => (
|
|
1560
|
-
trigger:
|
|
1559
|
+
return (t, n) => (D(), i(gr, S(g(t.$props)), c({
|
|
1560
|
+
trigger: le(() => [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: le(() => [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, _r)]),
|
|
1569
1569
|
key: "0"
|
|
1570
1570
|
} : void 0]), 1040));
|
|
1571
1571
|
}
|
|
1572
|
-
}),
|
|
1572
|
+
}), yr = /* @__PURE__ */ f({
|
|
1573
1573
|
__name: "PvSegmentedControl",
|
|
1574
1574
|
props: /* @__PURE__ */ v({
|
|
1575
1575
|
options: {
|
|
@@ -1586,16 +1586,16 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1586
1586
|
}),
|
|
1587
1587
|
emits: ["update:modelValue"],
|
|
1588
1588
|
setup(e) {
|
|
1589
|
-
let n =
|
|
1589
|
+
let n = z(e, "modelValue"), r = (e) => {
|
|
1590
1590
|
e.disabled || (n.value = e.value);
|
|
1591
1591
|
};
|
|
1592
|
-
return (a, s) => (
|
|
1592
|
+
return (a, s) => (D(), o("div", { class: x(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(D(!0), o(t, null, j(e.options, (e) => (D(), i(vr, {
|
|
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: le(() => [u(K, {
|
|
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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1618
1618
|
_: 2
|
|
1619
1619
|
}, [e.disabledReason ? {
|
|
1620
1620
|
name: "content",
|
|
1621
|
-
fn:
|
|
1621
|
+
fn: le(() => [l(F(e.disabledReason), 1)]),
|
|
1622
1622
|
key: "0"
|
|
1623
1623
|
} : void 0]), 1024))), 128))], 2));
|
|
1624
1624
|
}
|
|
1625
|
-
}),
|
|
1625
|
+
}), br = [
|
|
1626
1626
|
"data-style",
|
|
1627
1627
|
"disabled",
|
|
1628
1628
|
"title"
|
|
1629
|
-
],
|
|
1629
|
+
], xr = { class: "pv-truncate" }, Sr = /* @__PURE__ */ f({
|
|
1630
1630
|
__name: "PvSuggestionTag",
|
|
1631
1631
|
props: {
|
|
1632
1632
|
size: {
|
|
@@ -1651,7 +1651,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1651
1651
|
default: return "";
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
|
-
return (t, r) => (
|
|
1654
|
+
return (t, r) => (D(), 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 mr = { style: { width: "fit-content" } }, hr = /* @__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 ? (D(), i(Ce, {
|
|
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", xr, F(e.label), 1)], 10, br));
|
|
1669
1669
|
}
|
|
1670
|
-
}),
|
|
1670
|
+
}), Cr = (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
|
+
}, wr = ({ 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
|
+
}, Tr = () => ({
|
|
1681
1681
|
booleanValue: null,
|
|
1682
1682
|
existsValue: !1,
|
|
1683
1683
|
rangeValue: {
|
|
@@ -1685,15 +1685,15 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1685
1685
|
min: null
|
|
1686
1686
|
},
|
|
1687
1687
|
values: []
|
|
1688
|
-
}),
|
|
1689
|
-
conditions: e.conditions.map(
|
|
1688
|
+
}), Er = (e) => typeof e == "object" && !!e && !Array.isArray(e), Dr = (e) => Er(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", Or = (e) => Er(e) && e.filterType === "join" && Array.isArray(e.conditions), kr = (e) => e, Ar = (e) => Or(e) ? {
|
|
1689
|
+
conditions: e.conditions.map(Ar),
|
|
1690
1690
|
filterType: "join",
|
|
1691
1691
|
type: e.type
|
|
1692
|
-
} : { ...e },
|
|
1693
|
-
if (!
|
|
1694
|
-
if (
|
|
1692
|
+
} : { ...e }, jr = (e) => {
|
|
1693
|
+
if (!Er(e)) return null;
|
|
1694
|
+
if (Or(e)) {
|
|
1695
1695
|
let t = e.conditions.flatMap((e) => {
|
|
1696
|
-
let t =
|
|
1696
|
+
let t = jr(e);
|
|
1697
1697
|
return t ? [t] : [];
|
|
1698
1698
|
});
|
|
1699
1699
|
return t.length ? {
|
|
@@ -1702,43 +1702,43 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1702
1702
|
type: e.type === "OR" ? "OR" : "AND"
|
|
1703
1703
|
} : null;
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1706
|
-
},
|
|
1705
|
+
return Dr(e) ? { ...e } : null;
|
|
1706
|
+
}, Mr = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, Nr = (e) => Er(e) && !Or(e) && !Dr(e), Pr = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), Fr = {
|
|
1707
1707
|
number: "agNumberColumnFilter",
|
|
1708
1708
|
set: "agSetColumnFilter",
|
|
1709
1709
|
text: "agTextColumnFilter"
|
|
1710
|
-
},
|
|
1710
|
+
}, Ir = (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;
|
|
1717
1714
|
}, Lr = (e, t) => {
|
|
1718
|
-
let n =
|
|
1715
|
+
let n = Ir(e), r = t.filterType ? Fr[t.filterType] : void 0;
|
|
1716
|
+
return r ? n.findIndex((e) => Er(e) && e.filter === r) : -1;
|
|
1717
|
+
}, Rr = (e, t) => {
|
|
1718
|
+
let n = Ir(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 = Lr(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
|
+
}, zr = (e, t) => {
|
|
1726
|
+
if (!Nr(e)) return null;
|
|
1727
1727
|
let n = e[t];
|
|
1728
|
-
return
|
|
1729
|
-
},
|
|
1728
|
+
return Er(n) ? n : null;
|
|
1729
|
+
}, Br = (e) => e ? Pr(e) ? e.filterModels.filter((e) => Er(e)) : [e] : [], Vr = (e) => Nr(e) ? { ...e } : {}, Hr = (e) => Pr(e) ? {
|
|
1730
1730
|
...e,
|
|
1731
1731
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
1732
|
-
} : { ...e },
|
|
1733
|
-
let n =
|
|
1732
|
+
} : { ...e }, Ur = (e, t) => {
|
|
1733
|
+
let n = Vr(e);
|
|
1734
1734
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
1735
|
-
},
|
|
1735
|
+
}, Wr = /* @__PURE__ */ new Set(), Gr = (e, t) => {
|
|
1736
1736
|
let n = `${e}:${t ?? "unknown"}`;
|
|
1737
|
-
|
|
1738
|
-
},
|
|
1739
|
-
let a =
|
|
1740
|
-
if (
|
|
1741
|
-
let o =
|
|
1737
|
+
Wr.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.`), Wr.add(n));
|
|
1738
|
+
}, Kr = (e, t, n, r, i) => {
|
|
1739
|
+
let a = zr(e, t);
|
|
1740
|
+
if (Pr(a) && r) {
|
|
1741
|
+
let o = Vr(e), s = Hr(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 mr = { style: { width: "fit-content" } }, hr = /* @__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 = Lr(i, n), r = c.findIndex((e) => !e), a = Ir(i).length > 0;
|
|
1755
1755
|
if (e >= 0) {
|
|
1756
1756
|
for (; c.length <= e;) c.push(null);
|
|
1757
|
-
c[e] &&
|
|
1757
|
+
c[e] && Gr(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
|
+
Gr(t, n.filterType), c[e] = n;
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
return o[t] = {
|
|
@@ -1767,54 +1767,54 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 Ur(e, t);
|
|
1771
|
+
let o = Vr(e);
|
|
1772
|
+
return o[t] = Rr(i, n) ?? n, o;
|
|
1773
|
+
}, qr = (e, t) => {
|
|
1774
1774
|
if (e) {
|
|
1775
|
-
if (
|
|
1776
|
-
e.conditions.forEach((e) =>
|
|
1775
|
+
if (Or(e)) {
|
|
1776
|
+
e.conditions.forEach((e) => qr(e, t));
|
|
1777
1777
|
return;
|
|
1778
1778
|
}
|
|
1779
1779
|
t(e);
|
|
1780
1780
|
}
|
|
1781
|
-
},
|
|
1782
|
-
if (!
|
|
1781
|
+
}, Jr = (e, t) => Or(e) ? e.conditions.length > 0 && e.conditions.every((e) => Jr(e, t)) : e.colId === t, Yr = (e) => {
|
|
1782
|
+
if (!Or(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 qr(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
1785
|
+
}, Xr = (e, t) => {
|
|
1786
|
+
if (!e || Jr(e, t)) return null;
|
|
1787
|
+
if (!Or(e) || e.type !== "AND") return Ar(e);
|
|
1788
|
+
let n = e.conditions.flatMap((e) => Jr(e, t) ? [] : [Ar(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
|
+
}, Zr = (e, t, n) => {
|
|
1795
|
+
let r = Xr(jr(e), t);
|
|
1796
|
+
return n ? r ? Or(r) && r.type === "AND" ? kr({
|
|
1797
1797
|
...r,
|
|
1798
1798
|
conditions: [...r.conditions, n]
|
|
1799
|
-
}) :
|
|
1799
|
+
}) : kr({
|
|
1800
1800
|
conditions: [r, n],
|
|
1801
1801
|
filterType: "join",
|
|
1802
1802
|
type: "AND"
|
|
1803
|
-
}) :
|
|
1804
|
-
},
|
|
1803
|
+
}) : kr(n) : kr(r);
|
|
1804
|
+
}, Qr = (e, t) => {
|
|
1805
1805
|
e.includes(t) || e.push(t);
|
|
1806
|
-
},
|
|
1806
|
+
}, $r = (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
|
+
}, ei = (e) => e.filterType === "boolean" || $r(e), ti = (e, t) => {
|
|
1811
1811
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
1812
|
-
e.values.forEach((e) =>
|
|
1812
|
+
e.values.forEach((e) => Qr(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), Qr(t.values, n);
|
|
1818
1818
|
return;
|
|
1819
1819
|
}
|
|
1820
1820
|
if (e.filterType === "boolean") {
|
|
@@ -1838,7 +1838,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1838
1838
|
...t.rangeValue,
|
|
1839
1839
|
max: e.filter
|
|
1840
1840
|
}));
|
|
1841
|
-
},
|
|
1841
|
+
}, ni = (e, t) => {
|
|
1842
1842
|
if (e.type === "notBlank") {
|
|
1843
1843
|
t.existsValue = !0;
|
|
1844
1844
|
return;
|
|
@@ -1848,12 +1848,12 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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) => Qr(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), Qr(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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1866
1866
|
...t.rangeValue,
|
|
1867
1867
|
max: e.filter
|
|
1868
1868
|
}));
|
|
1869
|
-
},
|
|
1869
|
+
}, ri = (e, t = "advanced") => {
|
|
1870
1870
|
let n = /* @__PURE__ */ new Map();
|
|
1871
1871
|
if (t === "regular") {
|
|
1872
|
-
if (!
|
|
1872
|
+
if (!Nr(e)) return n;
|
|
1873
1873
|
for (let [t, r] of Object.entries(e)) {
|
|
1874
|
-
let e =
|
|
1875
|
-
|
|
1874
|
+
let e = Tr();
|
|
1875
|
+
Br(r).forEach((t) => ti(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 = jr(e);
|
|
1880
1880
|
if (!r) return n;
|
|
1881
|
-
let i =
|
|
1881
|
+
let i = Or(r) && r.type === "AND" ? r.conditions : [r];
|
|
1882
1882
|
for (let e of i) {
|
|
1883
|
-
let t =
|
|
1883
|
+
let t = Yr(e);
|
|
1884
1884
|
if (!t) continue;
|
|
1885
|
-
let r = n.get(t) ??
|
|
1886
|
-
|
|
1887
|
-
e.colId === t &&
|
|
1885
|
+
let r = n.get(t) ?? Tr();
|
|
1886
|
+
qr(e, (e) => {
|
|
1887
|
+
e.colId === t && ni(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
|
+
}, ii = (e, t = "advanced") => t === "regular" ? Nr(e) && Object.keys(e).length > 0 : jr(e) !== null, ai = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", oi = (e, t, n = "advanced") => n === "regular" ? Ur(e, t) : kr(Xr(jr(e), t)), si = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Kr(e, t, null, ei, a) : oi(e, t, r) : r === "regular" ? Kr(e, t, i === "text" ? {
|
|
1892
1892
|
filter: String(n),
|
|
1893
1893
|
filterType: "text",
|
|
1894
1894
|
type: "equals"
|
|
@@ -1896,30 +1896,30 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1896
1896
|
filter: n,
|
|
1897
1897
|
filterType: "boolean",
|
|
1898
1898
|
type: n ? "true" : "false"
|
|
1899
|
-
},
|
|
1899
|
+
}, ei, a) : i === "text" ? Zr(e, t, {
|
|
1900
1900
|
colId: t,
|
|
1901
1901
|
filter: String(n),
|
|
1902
1902
|
filterType: "text",
|
|
1903
1903
|
type: "equals"
|
|
1904
|
-
}) :
|
|
1904
|
+
}) : Zr(e, t, {
|
|
1905
1905
|
colId: t,
|
|
1906
1906
|
filterType: "boolean",
|
|
1907
1907
|
type: n ? "true" : "false"
|
|
1908
|
-
}),
|
|
1908
|
+
}), ci = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Kr(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) : Zr(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" ? Kr(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : oi(e, t, i), li = (e, t, n, r, i = "advanced", a) => {
|
|
1916
|
+
let o = Mr(n), s = Mr(r);
|
|
1917
|
+
if (i === "regular") return o === null && s === null ? Kr(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Kr(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) : Kr(e, t, {
|
|
1923
1923
|
filter: o ?? s,
|
|
1924
1924
|
filterType: "number",
|
|
1925
1925
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -1935,29 +1935,29 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1935
1935
|
filter: s,
|
|
1936
1936
|
filterType: "number",
|
|
1937
1937
|
type: "lessThanOrEqual"
|
|
1938
|
-
}), c.length ?
|
|
1938
|
+
}), c.length ? Zr(e, t, c.length === 1 ? c[0] : {
|
|
1939
1939
|
conditions: c,
|
|
1940
1940
|
filterType: "join",
|
|
1941
1941
|
type: "AND"
|
|
1942
|
-
}) :
|
|
1943
|
-
},
|
|
1942
|
+
}) : oi(e, t);
|
|
1943
|
+
}, ui = (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 ? Kr(e, t, {
|
|
1946
1946
|
filterType: "set",
|
|
1947
1947
|
values: a
|
|
1948
|
-
}, (e) => e.filterType === "set", i) :
|
|
1948
|
+
}, (e) => e.filterType === "set", i) : Kr(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 ? Zr(e, t, o.length === 1 ? o[0] : {
|
|
1956
1956
|
conditions: o,
|
|
1957
1957
|
filterType: "join",
|
|
1958
1958
|
type: "OR"
|
|
1959
|
-
}) :
|
|
1960
|
-
},
|
|
1959
|
+
}) : oi(e, t);
|
|
1960
|
+
}, di = "__pv_filter_panel_scoped_value__", fi = (e) => typeof e == "object" && !!e, pi = (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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1971
1971
|
} catch {
|
|
1972
1972
|
return [];
|
|
1973
1973
|
}
|
|
1974
|
-
},
|
|
1974
|
+
}, mi = (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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
1984
1984
|
pairs: n,
|
|
1985
1985
|
value: n[0].value
|
|
1986
1986
|
};
|
|
1987
|
-
},
|
|
1987
|
+
}, hi = (e) => {
|
|
1988
1988
|
if (e == null) return null;
|
|
1989
|
-
if (!e.startsWith(
|
|
1989
|
+
if (!e.startsWith(di)) return mi(e) ?? {
|
|
1990
1990
|
pairs: [],
|
|
1991
1991
|
value: e
|
|
1992
1992
|
};
|
|
1993
|
-
let t =
|
|
1993
|
+
let t = pi(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
|
+
}, gi = (e, t) => `${di}${encodeURIComponent(JSON.stringify([[e, t]]))}`, X = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : fi(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) : hi(e.value)?.value ?? e.value : null, _i = (e, t) => e?.field ? e.field : e?.colField ? e.colField : hi(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 && X(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 mr = { style: { width: "fit-content" } }, hr = /* @__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 ? X(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 = hi(e);
|
|
2049
2049
|
return {
|
|
2050
2050
|
field: a?.field,
|
|
2051
2051
|
value: a?.value ?? e
|
|
@@ -2053,7 +2053,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 = X(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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2239
2239
|
colField: r,
|
|
2240
2240
|
label: i,
|
|
2241
2241
|
metadata: { rawValue: i },
|
|
2242
|
-
value: r ?
|
|
2242
|
+
value: r ? gi(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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2317
2317
|
}),
|
|
2318
2318
|
emits: ["update:modelValue"],
|
|
2319
2319
|
setup(e) {
|
|
2320
|
-
let t =
|
|
2321
|
-
return (n, r) =>
|
|
2320
|
+
let t = z(e, "modelValue");
|
|
2321
|
+
return (n, r) => ue((D(), 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 mr = { style: { width: "fit-content" } }, hr = /* @__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)), [[ae, t.value]]);
|
|
2331
2331
|
}
|
|
2332
2332
|
}), fa = { class: "pv-relative" }, pa = ["disabled", "placeholder"], ma = {
|
|
2333
2333
|
key: 0,
|
|
@@ -2354,17 +2354,17 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 = ie("search-input"), c = z(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 && Qn(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) => (D(), o("div", fa, [ue(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 mr = { style: { width: "fit-content" } }, hr = /* @__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), [[oe, c.value]]), e.displayShortcut ? (D(), o("kbd", ma, F(ha))) : a("v-if", !0)]));
|
|
2376
2376
|
}
|
|
2377
2377
|
}), _a = {
|
|
2378
2378
|
key: 0,
|
|
@@ -2512,22 +2512,22 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 = z(e, "modelValue"), c = z(e, "rangeValue"), l = ne(), 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, ee = (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
|
+
}, te = (e) => e === "currency" || e === "integer" || e === "percent" ? 0 : null, O = () => {
|
|
2521
2521
|
if (t.valueDecimals !== null && t.valueDecimals !== void 0) return Math.max(0, t.valueDecimals);
|
|
2522
|
-
let e =
|
|
2522
|
+
let e = te(t.dataType);
|
|
2523
2523
|
return e === null ? 2 : e;
|
|
2524
2524
|
}, k = (e) => String(e), j = (e) => {
|
|
2525
|
-
let n =
|
|
2525
|
+
let n = O(), 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"), I = r(() => M.value === null ? "1" : M.value > 0 ? String(M.value) : "any"), L = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), B = 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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2539
2539
|
max: n,
|
|
2540
2540
|
min: e
|
|
2541
2541
|
};
|
|
2542
|
-
}),
|
|
2543
|
-
let { max: e, min: t } =
|
|
2542
|
+
}), ie = r(() => E(n.value) ?? B.value.min), ae = r(() => {
|
|
2543
|
+
let { max: e, min: t } = B.value, n = e - t, r = n === 0 ? 0 : (ie.value - t) / n * 100;
|
|
2544
2544
|
return Math.max(0, Math.min(100, r));
|
|
2545
|
-
}),
|
|
2546
|
-
"--range-track-color":
|
|
2547
|
-
"--value": `${
|
|
2548
|
-
})),
|
|
2545
|
+
}), se = r(() => ({
|
|
2546
|
+
"--range-track-color": L.value,
|
|
2547
|
+
"--value": `${ae.value}%`
|
|
2548
|
+
})), ce = r(() => ({ left: `${ae.value}%` })), le = (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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2553
2553
|
return (e?.split(".")[1]?.length ?? 0) + Number(n);
|
|
2554
2554
|
}
|
|
2555
2555
|
return t.split(".")[1]?.length ?? 0;
|
|
2556
|
-
},
|
|
2556
|
+
}, U = 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
|
+
}), W = (e) => Math.max(U.value.min, Math.min(U.value.max, e)), de = r(() => {
|
|
2563
|
+
let e = Math.max(le(U.value.min), le(U.value.max));
|
|
2564
|
+
return N.value <= 0 ? Math.max(6, e) : Math.max(e, le(N.value));
|
|
2565
|
+
}), fe = (e) => {
|
|
2566
|
+
let t = Math.min(20, de.value);
|
|
2567
|
+
return W(Number(e.toFixed(t)));
|
|
2568
|
+
}, pe = r(() => {
|
|
2569
2569
|
if (t.allowMinMaxEqual) return 0;
|
|
2570
|
-
let e =
|
|
2570
|
+
let e = U.value.max - U.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 ** -de.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
|
+
}), me = (e, t = "nearest") => {
|
|
2575
|
+
let n = W(e);
|
|
2576
|
+
if (N.value <= 0) return fe(n);
|
|
2577
|
+
let { min: r } = U.value, i = (n - r) / N.value;
|
|
2578
|
+
return fe(W((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * N.value + r));
|
|
2579
|
+
}, he = (e, t) => {
|
|
2580
|
+
let n = Math.max(U.value.min, t - pe.value);
|
|
2581
|
+
return me(Math.min(e, n), "down");
|
|
2582
|
+
}, ge = (e, t) => {
|
|
2583
|
+
let n = Math.min(U.value.max, t + pe.value);
|
|
2584
|
+
return me(Math.max(e, n), "up");
|
|
2585
|
+
}, G = r(() => {
|
|
2586
|
+
let e = E(c.value?.min) ?? U.value.min, t = E(c.value?.max) ?? U.value.max, n = W(e), r = W(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
|
+
}), _e = (e) => {
|
|
2592
|
+
let { max: t, min: n } = U.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
|
+
}, ve = r(() => _e(G.value.min)), ye = r(() => _e(G.value.max)), be = r(() => ({
|
|
2595
|
+
"--range-track-color": L.value,
|
|
2596
|
+
"--value-max": `${ye.value}%`,
|
|
2597
|
+
"--value-min": `${ve.value}%`
|
|
2598
|
+
})), xe = r(() => ({ left: `${ve.value}%` })), Se = r(() => ({ left: `${ye.value}%` })), Ce = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), we = () => E(t.min) !== null || U.value.min === Oa, Te = () => E(t.max) !== null || U.value.max === ka, Ee = (e, t) => {
|
|
2599
2599
|
c.value = {
|
|
2600
|
-
max: t >=
|
|
2601
|
-
min: e <=
|
|
2600
|
+
max: t >= U.value.max && Te() ? null : t,
|
|
2601
|
+
min: e <= U.value.min && we() ? null : e
|
|
2602
2602
|
};
|
|
2603
|
-
},
|
|
2604
|
-
|
|
2605
|
-
},
|
|
2606
|
-
|
|
2607
|
-
},
|
|
2603
|
+
}, De = (e) => {
|
|
2604
|
+
Ee(he(e, G.value.max), G.value.max);
|
|
2605
|
+
}, Oe = (e) => {
|
|
2606
|
+
Ee(G.value.min, ge(e, G.value.min));
|
|
2607
|
+
}, ke = () => {
|
|
2608
2608
|
h.value = null;
|
|
2609
|
-
},
|
|
2609
|
+
}, Ae = (e) => {
|
|
2610
2610
|
h.value = e;
|
|
2611
|
-
},
|
|
2611
|
+
}, je = () => {
|
|
2612
2612
|
c.value = {
|
|
2613
2613
|
max: null,
|
|
2614
2614
|
min: null
|
|
2615
2615
|
};
|
|
2616
|
-
},
|
|
2616
|
+
}, Me = () => {
|
|
2617
2617
|
S?.(), S = null;
|
|
2618
|
-
},
|
|
2619
|
-
_.value = !1,
|
|
2620
|
-
},
|
|
2621
|
-
t.disabled || (_.value = !0,
|
|
2622
|
-
},
|
|
2623
|
-
|
|
2618
|
+
}, Ne = () => {
|
|
2619
|
+
_.value = !1, Me();
|
|
2620
|
+
}, Pe = () => {
|
|
2621
|
+
t.disabled || (_.value = !0, Me(), window.addEventListener("pointerup", Ne), S = () => window.removeEventListener("pointerup", Ne));
|
|
2622
|
+
}, Fe = (e) => {
|
|
2623
|
+
Ae("min"), De(Number(e.target.value));
|
|
2624
|
+
}, Ie = (e) => {
|
|
2625
|
+
Ae("max"), Oe(Number(e.target.value));
|
|
2626
|
+
}, Le = () => {
|
|
2627
|
+
g.value !== "min" && (m.value = k(G.value.min)), g.value !== "max" && (p.value = k(G.value.max));
|
|
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);
|
|
2624
2631
|
}, Re = (e) => {
|
|
2625
|
-
|
|
2626
|
-
}, ze = () => {
|
|
2627
|
-
|
|
2632
|
+
m.value = e.target.value, q("min");
|
|
2633
|
+
}, ze = (e) => {
|
|
2634
|
+
p.value = e.target.value, q("max");
|
|
2628
2635
|
}, Be = (e) => {
|
|
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);
|
|
2631
|
-
}, Ve = (e) => {
|
|
2632
|
-
m.value = e.target.value, Be("min");
|
|
2633
|
-
}, G = (e) => {
|
|
2634
|
-
p.value = e.target.value, Be("max");
|
|
2635
|
-
}, He = (e) => {
|
|
2636
2636
|
g.value = e;
|
|
2637
|
-
},
|
|
2638
|
-
|
|
2639
|
-
},
|
|
2640
|
-
e.preventDefault(),
|
|
2641
|
-
},
|
|
2637
|
+
}, Ve = (e) => {
|
|
2638
|
+
q(e), g.value = null, Le();
|
|
2639
|
+
}, He = (e, t) => {
|
|
2640
|
+
e.preventDefault(), q(t), e.target.blur();
|
|
2641
|
+
}, Ue = (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 me(U.value.min + n * (U.value.max - U.value.min));
|
|
2646
|
+
}, We = (e) => {
|
|
2647
|
+
let n = Ue(e);
|
|
2648
2648
|
if (n !== null) {
|
|
2649
2649
|
if (t.alwaysEditMin) {
|
|
2650
|
-
|
|
2650
|
+
Ae("min"), De(n);
|
|
2651
2651
|
return;
|
|
2652
2652
|
}
|
|
2653
|
-
Math.abs(n -
|
|
2653
|
+
Math.abs(n - G.value.min) <= Math.abs(n - G.value.max) ? (Ae("min"), De(n)) : (Ae("max"), Oe(n));
|
|
2654
2654
|
}
|
|
2655
|
-
},
|
|
2655
|
+
}, Ge = () => {
|
|
2656
2656
|
b?.(), b = null;
|
|
2657
|
-
},
|
|
2657
|
+
}, Ke = (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
|
+
We(e.clientX);
|
|
2662
|
+
let r = (e) => We(e.clientX), i = () => {
|
|
2663
|
+
ke(), Ge();
|
|
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 V([G, U], Le, { immediate: !0 }), w(() => {
|
|
2670
|
+
Ge(), Me();
|
|
2671
|
+
}), (r, c) => e.mode === "single" ? (D(), o("div", _a, [e.showValueTooltips && _.value ? (D(), o("span", {
|
|
2672
2672
|
key: 0,
|
|
2673
2673
|
class: "pv-range-tooltip",
|
|
2674
|
-
style: C(
|
|
2675
|
-
}, F(j(
|
|
2674
|
+
style: C(ce.value)
|
|
2675
|
+
}, F(j(ie.value)), 5)) : a("v-if", !0), ue(s("input", y({ id: R(u) }, R(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: B.value.max,
|
|
2681
|
+
min: B.value.min,
|
|
2682
|
+
step: I.value,
|
|
2683
|
+
style: se.value,
|
|
2684
2684
|
type: "range",
|
|
2685
|
-
onChange:
|
|
2686
|
-
onPointerdown:
|
|
2687
|
-
onPointerup:
|
|
2685
|
+
onChange: Ne,
|
|
2686
|
+
onPointerdown: Pe,
|
|
2687
|
+
onPointerup: Ne
|
|
2688
2688
|
}), null, 16, va), [[
|
|
2689
|
-
|
|
2689
|
+
oe,
|
|
2690
2690
|
n.value,
|
|
2691
2691
|
void 0,
|
|
2692
2692
|
{ number: !0 }
|
|
2693
|
-
]])])) : (
|
|
2693
|
+
]])])) : (D(), o("div", y({ key: 1 }, R(l), {
|
|
2694
2694
|
class: "pv-flex-vertical",
|
|
2695
2695
|
"data-testid": "pv-range-dual",
|
|
2696
2696
|
role: "group",
|
|
@@ -2700,55 +2700,55 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2700
2700
|
"--flex-gap": "0"
|
|
2701
2701
|
}
|
|
2702
2702
|
}), [
|
|
2703
|
-
e.showBoundLabels ? (
|
|
2703
|
+
e.showBoundLabels ? (D(), o("div", ba, [s("span", null, F(j(U.value.min)), 1), s("span", null, F(j(U.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(be.value),
|
|
2709
|
+
onPointerdown: Ke
|
|
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" ? (D(), 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(xe.value)
|
|
2716
|
+
}, F(j(G.value.min)), 5)) : a("v-if", !0),
|
|
2717
|
+
e.showValueTooltips && h.value === "max" ? (D(), o("span", {
|
|
2718
2718
|
key: 1,
|
|
2719
2719
|
class: "pv-range-dual-tooltip",
|
|
2720
|
-
style: C(
|
|
2721
|
-
}, F(j(
|
|
2720
|
+
style: C(Se.value)
|
|
2721
|
+
}, F(j(G.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: U.value.max,
|
|
2728
|
+
min: U.value.min,
|
|
2729
2729
|
step: P.value,
|
|
2730
|
-
value:
|
|
2731
|
-
onChange:
|
|
2732
|
-
onInput:
|
|
2733
|
-
onPointerdown: c[1] ||= (e) =>
|
|
2734
|
-
onPointerup:
|
|
2730
|
+
value: G.value.min,
|
|
2731
|
+
onChange: ke,
|
|
2732
|
+
onInput: Fe,
|
|
2733
|
+
onPointerdown: c[1] ||= (e) => Ae("min"),
|
|
2734
|
+
onPointerup: ke
|
|
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: U.value.max,
|
|
2742
|
+
min: U.value.min,
|
|
2743
2743
|
step: P.value,
|
|
2744
|
-
value:
|
|
2745
|
-
onChange:
|
|
2746
|
-
onInput:
|
|
2747
|
-
onPointerdown: c[2] ||= (e) =>
|
|
2748
|
-
onPointerup:
|
|
2744
|
+
value: G.value.max,
|
|
2745
|
+
onChange: ke,
|
|
2746
|
+
onInput: Ie,
|
|
2747
|
+
onPointerdown: c[2] ||= (e) => Ae("max"),
|
|
2748
|
+
onPointerup: ke
|
|
2749
2749
|
}, null, 40, Sa)
|
|
2750
2750
|
], 38),
|
|
2751
|
-
e.showInputs ? (
|
|
2751
|
+
e.showInputs ? (D(), o("div", Ca, [
|
|
2752
2752
|
s("label", {
|
|
2753
2753
|
class: "pv-flex-vertical",
|
|
2754
2754
|
for: f,
|
|
@@ -2769,10 +2769,10 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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) => Ve("min"),
|
|
2773
|
+
onFocus: c[4] ||= (e) => Be("min"),
|
|
2774
|
+
onInput: Re,
|
|
2775
|
+
onKeydown: c[5] ||= H((e) => He(e, "min"), ["enter"])
|
|
2776
2776
|
}, null, 40, Ta)]),
|
|
2777
2777
|
s("label", {
|
|
2778
2778
|
class: "pv-flex-vertical",
|
|
@@ -2794,26 +2794,26 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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) => Ve("max"),
|
|
2798
|
+
onFocus: c[7] ||= (e) => Be("max"),
|
|
2799
|
+
onInput: ze,
|
|
2800
|
+
onKeydown: c[8] ||= H((e) => He(e, "max"), ["enter"])
|
|
2801
2801
|
}, null, 40, Da)]),
|
|
2802
|
-
e.showClear &&
|
|
2802
|
+
e.showClear && Ce.value ? (D(), i(K, {
|
|
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: je
|
|
2809
2809
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2810
|
-
])) : e.showClear &&
|
|
2810
|
+
])) : e.showClear && Ce.value ? (D(), i(K, {
|
|
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: je
|
|
2817
2817
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2818
2818
|
], 16, ya));
|
|
2819
2819
|
}
|
|
@@ -2829,7 +2829,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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__ */ Ee(/* @__PURE__ */ f({
|
|
2833
2833
|
__name: "PvFilterPanelOptionRow",
|
|
2834
2834
|
props: {
|
|
2835
2835
|
ariaLabel: { type: String },
|
|
@@ -2878,7 +2878,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 = B(), 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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2897
2897
|
}, _ = () => {
|
|
2898
2898
|
n.disabled || c("focus-value", n.value);
|
|
2899
2899
|
};
|
|
2900
|
-
return (t, n) => (
|
|
2900
|
+
return (t, n) => (D(), 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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
2914
2914
|
"indeterminate",
|
|
2915
2915
|
"modelValue"
|
|
2916
2916
|
]),
|
|
2917
|
-
e.renderer ? (
|
|
2917
|
+
e.renderer ? (D(), i(N(e.renderer), S(y({ key: 0 }, h.value)), null, 16)) : (D(), o("span", ja, [
|
|
2918
2918
|
s("span", Ma, F(e.label), 1),
|
|
2919
|
-
e.subduedText ? (
|
|
2920
|
-
e.subText ? (
|
|
2919
|
+
e.subduedText ? (D(), o("span", Na, F(e.subduedText), 1)) : a("v-if", !0),
|
|
2920
|
+
e.subText ? (D(), o("span", Pa, F(e.subText), 1)) : a("v-if", !0)
|
|
2921
2921
|
])),
|
|
2922
|
-
p.value ? (
|
|
2923
|
-
e.showFocusAction ? (
|
|
2922
|
+
p.value ? (D(), o("span", Fa, [M(t.$slots, "result-count", {}, () => [l("(" + F(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
2923
|
+
e.showFocusAction ? (D(), i(K, {
|
|
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: U(_, ["stop", "prevent"])
|
|
2931
2931
|
}, null, 8, [
|
|
2932
2932
|
"ariaLabel",
|
|
2933
2933
|
"disabled",
|
|
@@ -3019,7 +3019,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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__ */ Ee(/* @__PURE__ */ f({
|
|
3023
3023
|
__name: "PvFilterPanelAccordion",
|
|
3024
3024
|
props: { filter: { type: Object } },
|
|
3025
3025
|
emits: [
|
|
@@ -3031,7 +3031,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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()), ee = r(() => c.filter.selectedValues ?? []), te = r(() => new Set(ee.value)), O = 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 mr = { style: { width: "fit-content" } }, hr = /* @__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 : ee.value.length || void 0), I = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), L = (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 ? L(e.children, t + 1) : [],
|
|
3051
|
+
...I(e) ? [{
|
|
3052
3052
|
depth: t + 1,
|
|
3053
3053
|
kind: "child-load-more",
|
|
3054
3054
|
parent: e
|
|
3055
3055
|
}] : []
|
|
3056
|
-
]),
|
|
3057
|
-
let e =
|
|
3056
|
+
]), R = r(() => {
|
|
3057
|
+
let e = L(_.value), t = E.value;
|
|
3058
3058
|
return t ? e.filter((e) => e.kind === "option" && M(e.option).includes(t)) : e;
|
|
3059
|
-
}),
|
|
3059
|
+
}), ne = r(() => w.value ? [] : ee.value.map((e) => f.value[e] ?? {
|
|
3060
3060
|
label: e,
|
|
3061
3061
|
value: e
|
|
3062
|
-
})), re = r(() => w.value ?
|
|
3062
|
+
})), re = r(() => w.value ? R.value : R.value.filter((e) => e.kind === "child-load-more" || !te.value.has(e.option.value))), z = r(() => re.value.length > m.value), B = r(() => z.value || c.filter.hasMore), ie = r(() => re.value.slice(0, m.value)), ae = r(() => w.value ? Yi({
|
|
3063
3063
|
options: v.value,
|
|
3064
3064
|
state: T.value
|
|
3065
|
-
}) : /* @__PURE__ */ new Map()),
|
|
3065
|
+
}) : /* @__PURE__ */ new Map()), oe = (e) => ca(e, c.filter.colDef), se = (e) => la(e), ce = (e) => w.value ? ae.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: te.value.has(e.value)
|
|
3071
|
+
}, ue = (e) => ce(e).selected, H = (e) => ce(e).indeterminate, U = (e) => X(e) ?? e.value, W = (e) => _i(e, c.filter.key), de = (e) => {
|
|
3072
|
+
let t = W(e), n = U(e);
|
|
3073
3073
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
3074
|
-
},
|
|
3074
|
+
}, fe = (e) => ({
|
|
3075
3075
|
...e.menuOption ?? {},
|
|
3076
|
-
children: e.children?.map(
|
|
3076
|
+
children: e.children?.map(fe),
|
|
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: se(e),
|
|
3082
3082
|
subText: e.subText,
|
|
3083
3083
|
subduedText: e.subduedText,
|
|
3084
|
-
text:
|
|
3084
|
+
text: oe(e),
|
|
3085
3085
|
totalChildCount: e.totalChildCount
|
|
3086
|
-
}),
|
|
3086
|
+
}), pe = r(() => _.value.map(fe)), me = r(() => ne.value.map(fe)), he = 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: pe.value,
|
|
3093
3093
|
searchInput: p.value,
|
|
3094
|
-
selectedItems:
|
|
3094
|
+
selectedItems: me.value,
|
|
3095
3095
|
slotContext: {
|
|
3096
3096
|
colDef: c.filter.colDef,
|
|
3097
3097
|
rowsLoading: c.filter.isLoading
|
|
3098
3098
|
}
|
|
3099
|
-
})),
|
|
3100
|
-
|
|
3101
|
-
},
|
|
3099
|
+
})), ge = () => {
|
|
3100
|
+
z.value ? m.value += no : c.filter.hasMore && d("load-more", p.value.trim());
|
|
3101
|
+
}, _e = (e) => {
|
|
3102
3102
|
d("load-more", p.value.trim(), e.value);
|
|
3103
|
-
},
|
|
3103
|
+
}, ve = (e) => {
|
|
3104
3104
|
let t = e.target;
|
|
3105
3105
|
d("open-change", t.open);
|
|
3106
|
-
},
|
|
3106
|
+
}, ye = (e) => {
|
|
3107
3107
|
d("filter-change", {
|
|
3108
3108
|
type: "boolean",
|
|
3109
3109
|
value: e
|
|
3110
3110
|
});
|
|
3111
|
-
},
|
|
3111
|
+
}, be = (e) => {
|
|
3112
3112
|
d("filter-change", {
|
|
3113
3113
|
type: "exists",
|
|
3114
3114
|
value: e === !0
|
|
3115
3115
|
});
|
|
3116
|
-
},
|
|
3116
|
+
}, xe = (e) => {
|
|
3117
3117
|
d("filter-change", {
|
|
3118
3118
|
type: "range",
|
|
3119
3119
|
value: e
|
|
3120
3120
|
});
|
|
3121
|
-
},
|
|
3121
|
+
}, Se = (e, t) => {
|
|
3122
3122
|
if (w.value) {
|
|
3123
3123
|
d("filter-change", {
|
|
3124
3124
|
type: "aggregate-selection",
|
|
@@ -3133,85 +3133,85 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3133
3133
|
}
|
|
3134
3134
|
d("filter-change", {
|
|
3135
3135
|
checked: t,
|
|
3136
|
-
field:
|
|
3136
|
+
field: W(e),
|
|
3137
3137
|
type: "value",
|
|
3138
|
-
value:
|
|
3138
|
+
value: U(e)
|
|
3139
3139
|
});
|
|
3140
|
-
},
|
|
3141
|
-
d("focus-change",
|
|
3142
|
-
},
|
|
3140
|
+
}, we = (e) => {
|
|
3141
|
+
d("focus-change", W(e), U(e), e);
|
|
3142
|
+
}, Te = (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
|
+
}, Ee = () => {
|
|
3149
3149
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
3150
3150
|
};
|
|
3151
|
-
|
|
3151
|
+
V([p, () => c.filter.key], () => {
|
|
3152
3152
|
m.value = no;
|
|
3153
3153
|
});
|
|
3154
|
-
let
|
|
3154
|
+
let Oe = () => {
|
|
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 V(v, () => {
|
|
3160
|
+
c.filter.isOpen && Oe();
|
|
3161
|
+
}, { immediate: !0 }), V(() => c.filter.isOpen, (e) => {
|
|
3162
|
+
e ? Oe() : f.value = {};
|
|
3163
|
+
}), V(() => c.filter.searchQuery, (e) => {
|
|
3164
3164
|
let t = e ?? "";
|
|
3165
3165
|
t !== p.value && (p.value = t);
|
|
3166
|
-
}),
|
|
3166
|
+
}), Hn(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) => (D(), 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: ve
|
|
3178
3178
|
}, [s("summary", Ra, [
|
|
3179
|
-
u(
|
|
3179
|
+
u(Ce, {
|
|
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 ? (D(), i(De, {
|
|
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 ? (D(), o(t, { key: 0 }, [
|
|
3192
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", Ba, [
|
|
3193
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", Va, [(D(!0), o(t, null, j(e.filter.filterGroupOptions, (t) => (D(), i(K, {
|
|
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) => Te(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 ? (D(), o("div", Ha, [u(K, {
|
|
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: Ee
|
|
3213
3213
|
}, null, 8, ["disabled"])])) : a("v-if", !0),
|
|
3214
|
-
e.filter.filterHeaderRenderer ? (
|
|
3214
|
+
e.filter.filterHeaderRenderer ? (D(), i(N(e.filter.filterHeaderRenderer), S(y({ key: 2 }, he.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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3224
3224
|
"disabled",
|
|
3225
3225
|
"placeholder"
|
|
3226
3226
|
]),
|
|
3227
|
-
|
|
3227
|
+
ne.value.length ? (D(), o("div", Ua, [(D(!0), o(t, null, j(ne.value, (t) => (D(), 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": de(t),
|
|
3232
|
+
indeterminate: H(t),
|
|
3233
|
+
label: oe(t),
|
|
3234
3234
|
"query-text": p.value,
|
|
3235
3235
|
renderer: e.filter.filterOptionsRenderer,
|
|
3236
|
-
"result-count":
|
|
3236
|
+
"result-count": se(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: () => we(t),
|
|
3243
|
+
onToggleValue: (e, n) => Se(t, n)
|
|
3244
3244
|
}, null, 8, [
|
|
3245
3245
|
"disabled",
|
|
3246
3246
|
"focus-text",
|
|
@@ -3257,10 +3257,10 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 ? (D(), o("div", Wa, [u(G, { size: "sm" })])) : (D(), o(t, { key: 3 }, [
|
|
3261
|
+
!_.value.length && !ne.value.length && !B.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), y({ key: 0 }, he.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", Ga, "No values available."))], 64)) : !R.value.length && !ne.value.length && !B.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), y({ key: 0 }, he.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", Ka, "No matching values."))], 64)) : a("v-if", !0),
|
|
3262
|
+
re.value.length || B.value ? (D(), o("div", qa, [
|
|
3263
|
+
re.value.length ? (D(), o("div", Ja, [e.filter.filterOptionsSortTooltip ? (D(), i(vr, {
|
|
3264
3264
|
key: 0,
|
|
3265
3265
|
variant: "dark",
|
|
3266
3266
|
disableInteractive: !0,
|
|
@@ -3269,28 +3269,28 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3269
3269
|
"use-teleport": !0,
|
|
3270
3270
|
style: { "--max-width": "200px" }
|
|
3271
3271
|
}, {
|
|
3272
|
-
trigger:
|
|
3273
|
-
content:
|
|
3272
|
+
trigger: le(() => [s("p", Ya, F(k.value), 1)]),
|
|
3273
|
+
content: le(() => [l(F(e.filter.filterOptionsSortTooltip), 1)]),
|
|
3274
3274
|
_: 1
|
|
3275
|
-
})) : (
|
|
3276
|
-
(
|
|
3275
|
+
})) : (D(), o("p", Xa, F(k.value), 1))])) : a("v-if", !0),
|
|
3276
|
+
(D(!0), o(t, null, j(ie.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), 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": de(n.option),
|
|
3282
|
+
indeterminate: H(n.option),
|
|
3283
|
+
label: oe(n.option),
|
|
3284
3284
|
"query-text": p.value,
|
|
3285
3285
|
renderer: e.filter.filterOptionsRenderer,
|
|
3286
|
-
"result-count":
|
|
3287
|
-
selected:
|
|
3286
|
+
"result-count": se(n.option),
|
|
3287
|
+
selected: ue(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: () => we(n.option),
|
|
3293
|
+
onToggleValue: (e, t) => Se(n.option, t)
|
|
3294
3294
|
}, null, 8, [
|
|
3295
3295
|
"depth",
|
|
3296
3296
|
"disabled",
|
|
@@ -3308,7 +3308,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3308
3308
|
"value",
|
|
3309
3309
|
"onFocusValue",
|
|
3310
3310
|
"onToggleValue"
|
|
3311
|
-
])) : (
|
|
3311
|
+
])) : (D(), i(K, {
|
|
3312
3312
|
key: 1,
|
|
3313
3313
|
class: "pv-text-brand",
|
|
3314
3314
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -3318,25 +3318,25 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3318
3318
|
width: "fit-content"
|
|
3319
3319
|
}),
|
|
3320
3320
|
variant: "ghost",
|
|
3321
|
-
onClick: (e) =>
|
|
3321
|
+
onClick: (e) => _e(n.parent)
|
|
3322
3322
|
}, null, 8, [
|
|
3323
3323
|
"disabled",
|
|
3324
3324
|
"style",
|
|
3325
3325
|
"onClick"
|
|
3326
3326
|
]))], 64))), 128)),
|
|
3327
|
-
|
|
3327
|
+
B.value ? (D(), i(K, {
|
|
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: ge
|
|
3335
3335
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
3336
3336
|
])) : a("v-if", !0),
|
|
3337
|
-
e.filter.filterFooterRenderer ? (
|
|
3337
|
+
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), S(y({ key: 3 }, he.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 ? (D(), i(Aa, {
|
|
3340
3340
|
key: 1,
|
|
3341
3341
|
mode: "dual",
|
|
3342
3342
|
rangeValue: e.filter.rangeValue,
|
|
@@ -3347,7 +3347,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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": xe
|
|
3351
3351
|
}, null, 8, [
|
|
3352
3352
|
"rangeValue",
|
|
3353
3353
|
"data-type",
|
|
@@ -3357,35 +3357,35 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3357
3357
|
"min",
|
|
3358
3358
|
"step",
|
|
3359
3359
|
"value-decimals"
|
|
3360
|
-
])) : b.value === "range" ? (
|
|
3360
|
+
])) : b.value === "range" ? (D(), o("p", Za, " Range filters require minimum and maximum bounds. ")) : b.value === "boolean" ? (D(), o("div", Qa, [s("div", $a, [u(K, {
|
|
3361
3361
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3362
|
-
label:
|
|
3362
|
+
label: O.value,
|
|
3363
3363
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
3364
|
-
onClick: r[1] ||= (t) =>
|
|
3364
|
+
onClick: r[1] ||= (t) => ye(e.filter.booleanValue === !0 ? null : !0)
|
|
3365
3365
|
}, null, 8, [
|
|
3366
3366
|
"disabled",
|
|
3367
3367
|
"label",
|
|
3368
3368
|
"variant"
|
|
3369
|
-
]), u(
|
|
3369
|
+
]), u(K, {
|
|
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) => ye(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 ? (D(), i(K, {
|
|
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) => ye(null)
|
|
3385
|
+
}, null, 8, ["disabled"])) : a("v-if", !0)])) : b.value === "exists" ? (D(), 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": be
|
|
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 mr = { style: { width: "fit-content" } }, hr = /* @__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) => (D(), o("button", {
|
|
3432
3432
|
class: x([
|
|
3433
3433
|
c.value,
|
|
3434
3434
|
n.value,
|
|
@@ -3439,7 +3439,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 ? (D(), i(Ce, {
|
|
3443
3443
|
key: 0,
|
|
3444
3444
|
"data-testid": "pv-tag-icon",
|
|
3445
3445
|
class: x(e.iconClasses),
|
|
@@ -3447,12 +3447,12 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 ? (D(), i(Ce, {
|
|
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] ||= U((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 mr = { style: { width: "fit-content" } }, hr = /* @__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) => (D(), o("section", so, [e.appliedCount ? (D(), o("div", co, [(D(!0), o(t, null, j(e.appliedGroups, (n) => (D(), 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, [(D(!0), o(t, null, j(n.values, (t) => (D(), 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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3517
3517
|
"label",
|
|
3518
3518
|
"showClear",
|
|
3519
3519
|
"onHandleClose"
|
|
3520
|
-
]))), 128))])]))), 128))])) : (
|
|
3520
|
+
]))), 128))])]))), 128))])) : (D(), 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 mr = { style: { width: "fit-content" } }, hr = /* @__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
|
+
}), te(() => {
|
|
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) => (D(), o("div", mo, [
|
|
3588
3588
|
s("div", {
|
|
3589
3589
|
ref_key: "scrollContainer",
|
|
3590
3590
|
ref: u,
|
|
@@ -3599,7 +3599,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 ? (D(), i(K, {
|
|
3603
3603
|
key: 0,
|
|
3604
3604
|
ariaLabel: e.leftAriaLabel,
|
|
3605
3605
|
leftIcon: "chevron-left",
|
|
@@ -3614,7 +3614,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 ? (D(), i(K, {
|
|
3618
3618
|
key: 0,
|
|
3619
3619
|
ariaLabel: e.rightAriaLabel,
|
|
3620
3620
|
leftIcon: "chevron-right",
|
|
@@ -3653,7 +3653,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3653
3653
|
}),
|
|
3654
3654
|
emits: ["update:modelValue"],
|
|
3655
3655
|
setup(e) {
|
|
3656
|
-
let n = e, c =
|
|
3656
|
+
let n = e, c = z(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 mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3661
3661
|
}), d = (e) => {
|
|
3662
3662
|
c.value = e;
|
|
3663
3663
|
}, f = (e) => c.value === e ? "primary" : "secondary";
|
|
3664
|
-
return
|
|
3664
|
+
return V(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 ? (D(), o("div", vo, [u(_o, {
|
|
3667
3667
|
ariaLabel: "Filter categories",
|
|
3668
3668
|
buttonSize: "md",
|
|
3669
3669
|
buttonVariant: "secondary",
|
|
@@ -3672,12 +3672,12 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3672
3672
|
rightAriaLabel: "Scroll filter categories right",
|
|
3673
3673
|
showFades: ""
|
|
3674
3674
|
}, {
|
|
3675
|
-
default:
|
|
3675
|
+
default: le(() => [s("div", yo, [u(K, {
|
|
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"]), (D(!0), o(t, null, j(l.value, (e) => (D(), i(K, {
|
|
3681
3681
|
key: e,
|
|
3682
3682
|
label: e,
|
|
3683
3683
|
size: "md",
|
|
@@ -3718,7 +3718,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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 = X(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 mr = { style: { width: "fit-content" } }, hr = /* @__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
|
+
}, ee = (e, t) => {
|
|
3748
3748
|
c.value[e] = t;
|
|
3749
|
-
},
|
|
3750
|
-
let n = t ? u : l, r =
|
|
3749
|
+
}, te = (e, t) => `${t ? "append" : "initial"}::${e}`, D = (e, t) => {
|
|
3750
|
+
let n = t ? u : l, r = te(e, t);
|
|
3751
3751
|
return v.value[r] = (v.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
3752
|
-
},
|
|
3752
|
+
}, O = (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 mr = { style: { width: "fit-content" } }, hr = /* @__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 = D(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 mr = { style: { width: "fit-content" } }, hr = /* @__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 = X(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
|
+
O(n.field, v, y);
|
|
3794
3794
|
}
|
|
3795
3795
|
},
|
|
3796
3796
|
filterChildHasMoreMap: p,
|
|
@@ -3813,7 +3813,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3813
3813
|
initStagedFilterSelections: w,
|
|
3814
3814
|
setFilterOptions: x,
|
|
3815
3815
|
setFilterOptionsHandler: y,
|
|
3816
|
-
setFilterSearchQuery:
|
|
3816
|
+
setFilterSearchQuery: ee,
|
|
3817
3817
|
setFilterSelectedValues: C,
|
|
3818
3818
|
stagedFilterModel: t,
|
|
3819
3819
|
stagedFilterSelectedMetadataMap: s,
|
|
@@ -3842,7 +3842,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__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__ */ Ee(/* @__PURE__ */ f({
|
|
3846
3846
|
__name: "PvFilterPanel",
|
|
3847
3847
|
props: /* @__PURE__ */ v({
|
|
3848
3848
|
applyLabel: {
|
|
@@ -3976,188 +3976,185 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
3976
3976
|
"range",
|
|
3977
3977
|
"boolean",
|
|
3978
3978
|
"exists"
|
|
3979
|
-
]), l = e, d =
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3979
|
+
]), l = e, d = z(e, "filterModel"), f = z(e, "isCollapsed"), p = n;
|
|
3980
|
+
m();
|
|
3981
|
+
let h = A("filters"), g = A({}), _ = A(null), v = A(!1), y = A(d.value), b = Ao(), x = jo(), S = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Map(), ee = r(() => !!(l.filterStore ?? x)), te = r(() => !ee.value && !!l.filterOptionsHandler), O = r(() => l.filterStore ?? x ?? b), k = r(() => O.value === b), N = r(() => ee.value || te.value), P = r(() => l.filterModelType ?? O.value?.filterModelType.value), I = r(() => P.value ?? "advanced"), L = r(() => {
|
|
3982
|
+
let e = O.value;
|
|
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) => {
|
|
3983
3985
|
let n = e.applyFilterModel;
|
|
3984
3986
|
if (typeof n == "function") {
|
|
3985
3987
|
n(t);
|
|
3986
3988
|
return;
|
|
3987
3989
|
}
|
|
3988
3990
|
e.filterModel.value = t;
|
|
3989
|
-
},
|
|
3991
|
+
}, re = (e, t) => {
|
|
3990
3992
|
if (l.staged) {
|
|
3991
3993
|
e.stagedFilterModel.value = t;
|
|
3992
3994
|
return;
|
|
3993
3995
|
}
|
|
3994
|
-
|
|
3996
|
+
ne(e, t);
|
|
3995
3997
|
};
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
}, { immediate: !0 }),
|
|
3998
|
+
V(() => l.filterOptionsHandler, (e) => {
|
|
3999
|
+
b.setFilterOptionsHandler(e);
|
|
4000
|
+
}, { immediate: !0 }), V([
|
|
3999
4001
|
() => l.filterOptions,
|
|
4000
|
-
|
|
4002
|
+
k,
|
|
4001
4003
|
() => l.filterOptionsHandler
|
|
4002
4004
|
], ([e, t, n]) => {
|
|
4003
|
-
!t || n || (
|
|
4005
|
+
!t || n || (b.filterOptionsMap.value = Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])));
|
|
4004
4006
|
}, {
|
|
4005
4007
|
deep: !0,
|
|
4006
4008
|
immediate: !0
|
|
4007
|
-
}),
|
|
4009
|
+
}), V([
|
|
4008
4010
|
() => l.filterHasMoreMap,
|
|
4009
|
-
|
|
4011
|
+
k,
|
|
4010
4012
|
() => l.filterOptionsHandler
|
|
4011
4013
|
], ([e, t, n]) => {
|
|
4012
|
-
t && !n && (
|
|
4014
|
+
t && !n && (b.filterHasMoreMap.value = { ...e });
|
|
4013
4015
|
}, {
|
|
4014
4016
|
deep: !0,
|
|
4015
4017
|
immediate: !0
|
|
4016
|
-
}),
|
|
4018
|
+
}), V([
|
|
4017
4019
|
() => l.filterLoadingMap,
|
|
4018
|
-
|
|
4020
|
+
k,
|
|
4019
4021
|
() => l.filterOptionsHandler
|
|
4020
4022
|
], ([e, t, n]) => {
|
|
4021
|
-
t && !n && (
|
|
4023
|
+
t && !n && (b.filterLoadingMap.value = { ...e });
|
|
4022
4024
|
}, {
|
|
4023
4025
|
deep: !0,
|
|
4024
4026
|
immediate: !0
|
|
4025
|
-
}),
|
|
4027
|
+
}), V([
|
|
4026
4028
|
() => l.filterLoadingMoreMap,
|
|
4027
|
-
|
|
4029
|
+
k,
|
|
4028
4030
|
() => l.filterOptionsHandler
|
|
4029
4031
|
], ([e, t, n]) => {
|
|
4030
|
-
t && !n && (
|
|
4032
|
+
t && !n && (b.filterLoadingMoreMap.value = { ...e });
|
|
4031
4033
|
}, {
|
|
4032
4034
|
deep: !0,
|
|
4033
4035
|
immediate: !0
|
|
4034
|
-
}),
|
|
4036
|
+
}), V([
|
|
4035
4037
|
() => l.filterSearchQueries,
|
|
4036
|
-
|
|
4038
|
+
k,
|
|
4037
4039
|
() => l.filterOptionsHandler
|
|
4038
4040
|
], ([e, t, n]) => {
|
|
4039
|
-
t && !n && (
|
|
4041
|
+
t && !n && (b.filterSearchQueries.value = { ...e });
|
|
4040
4042
|
}, {
|
|
4041
4043
|
deep: !0,
|
|
4042
4044
|
immediate: !0
|
|
4043
|
-
}),
|
|
4045
|
+
}), V([
|
|
4044
4046
|
d,
|
|
4045
|
-
|
|
4047
|
+
k,
|
|
4046
4048
|
() => l.staged
|
|
4047
4049
|
], ([e, t]) => {
|
|
4048
|
-
t && (l.staged && (
|
|
4050
|
+
t && (l.staged && (y.value = e), b.filterModel.value = e, l.staged && (b.stagedFilterModel.value = e));
|
|
4049
4051
|
}, {
|
|
4050
4052
|
deep: !0,
|
|
4051
4053
|
immediate: !0
|
|
4052
|
-
}),
|
|
4054
|
+
}), V([() => l.staged, O], ([e]) => {
|
|
4053
4055
|
if (e) {
|
|
4054
|
-
|
|
4055
|
-
let e =
|
|
4056
|
+
y.value = d.value;
|
|
4057
|
+
let e = O.value;
|
|
4056
4058
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections());
|
|
4057
4059
|
}
|
|
4058
4060
|
}, { immediate: !0 });
|
|
4059
|
-
let
|
|
4060
|
-
!
|
|
4061
|
-
},
|
|
4062
|
-
|
|
4063
|
-
},
|
|
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) => {
|
|
4061
|
+
let B = (e, t) => {
|
|
4062
|
+
!N.value || !t || S.has(e) || (console.warn(`PvFilterPanel: "${e}" is ignored when filterStore/filterOptionsHandler store mode is active.`), S.add(e));
|
|
4063
|
+
}, ie = (e, t) => {
|
|
4064
|
+
T.has(e) || (console.warn(t), T.add(e));
|
|
4065
|
+
}, ae = (e) => !!(e && typeof e == "object" && "filterType" in e), oe = (e) => {
|
|
4067
4066
|
if (!e) return;
|
|
4068
|
-
let t =
|
|
4069
|
-
I.value === "advanced" && !t &&
|
|
4067
|
+
let t = ae(e);
|
|
4068
|
+
I.value === "advanced" && !t && ie("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), I.value === "regular" && t && ie("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
4070
4069
|
};
|
|
4071
|
-
|
|
4072
|
-
|
|
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\".");
|
|
4070
|
+
ce(() => {
|
|
4071
|
+
B("filterModel", !!((l.filterStore || x) && d.value !== null)), B("filterOptions", Object.keys(l.filterOptions).length > 0), B("filterLoadingMap", Object.keys(l.filterLoadingMap).length > 0), B("filterLoadingMoreMap", Object.keys(l.filterLoadingMoreMap).length > 0), B("filterHasMoreMap", Object.keys(l.filterHasMoreMap).length > 0), B("filterSearchQueries", Object.keys(l.filterSearchQueries).length > 0), B("filterOptionsHandler", !!(l.filterStore && l.filterOptionsHandler)), (l.filterStore || x) && L.value;
|
|
4075
4072
|
});
|
|
4076
|
-
let
|
|
4077
|
-
let t =
|
|
4073
|
+
let H = (e) => e.context ?? {}, U = (e) => e.colId || e.field || "", W = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, de = (e) => {
|
|
4074
|
+
let t = H(e), n = t.filterPanelType;
|
|
4078
4075
|
if (n && c.has(n)) return n;
|
|
4079
4076
|
if (t.filterPanelRange) return "range";
|
|
4080
4077
|
if (t.dataType === "boolean") return "boolean";
|
|
4081
4078
|
if (e.filter) return "value";
|
|
4082
|
-
},
|
|
4083
|
-
let t =
|
|
4079
|
+
}, fe = (e) => de(e) ?? "value", pe = (e) => H(e).filterPanelCategory ?? null, me = (e) => {
|
|
4080
|
+
let t = H(e).filterPanelValueLabels;
|
|
4084
4081
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
4085
|
-
},
|
|
4086
|
-
let t =
|
|
4087
|
-
return !n || t.filterPanelHidden === !0 || t.devOnly && !l.devMode || l.autoHideRelatedFilterFields !== !1 && t.filterPanelHidden !== !1 &&
|
|
4088
|
-
},
|
|
4089
|
-
let t =
|
|
4082
|
+
}, he = (e) => {
|
|
4083
|
+
let t = H(e), n = U(e);
|
|
4084
|
+
return !n || t.filterPanelHidden === !0 || t.devOnly && !l.devMode || l.autoHideRelatedFilterFields !== !1 && t.filterPanelHidden !== !1 && we.value.has(n) ? !1 : !!de(e);
|
|
4085
|
+
}, ge = (e) => (O.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), G = (e) => {
|
|
4086
|
+
let t = O.value;
|
|
4090
4087
|
return ((l.staged ? t.stagedFilterSelectedMetadataMap : t.filterSelectedMetadataMap).value[e] ?? []).filter((e) => !!e);
|
|
4091
|
-
},
|
|
4088
|
+
}, _e = (e) => O.value.filterHasMoreMap.value[e] ?? !1, ve = (e) => O.value.filterLoadingMap.value[e] ?? !1, ye = (e) => O.value.filterLoadingMoreMap.value[e] ?? !1, be = (e) => O.value.filterSearchQueries.value[e] ?? "", xe = (e) => l.filterSuggestions.flatMap((t) => t.field !== e || t.filter.type !== "value" ? [] : [t.option ?? {
|
|
4092
4089
|
label: t.label,
|
|
4093
4090
|
value: t.filter.value
|
|
4094
|
-
}]),
|
|
4095
|
-
...
|
|
4096
|
-
...
|
|
4097
|
-
...
|
|
4098
|
-
],
|
|
4091
|
+
}]), Se = (e) => [
|
|
4092
|
+
...xe(e),
|
|
4093
|
+
...ge(e),
|
|
4094
|
+
...G(e)
|
|
4095
|
+
], Ce = (e) => {
|
|
4099
4096
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
4100
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
4097
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(Ce) : [];
|
|
4101
4098
|
return n ? [n, ...r] : r;
|
|
4102
|
-
},
|
|
4099
|
+
}, we = r(() => {
|
|
4103
4100
|
let e = /* @__PURE__ */ new Set();
|
|
4104
4101
|
for (let t of l.colDefs) {
|
|
4105
|
-
let n =
|
|
4102
|
+
let n = H(t);
|
|
4106
4103
|
for (let t of Array.isArray(n.aggregateFields) ? n.aggregateFields : []) t && e.add(t);
|
|
4107
|
-
for (let t of
|
|
4104
|
+
for (let t of Ce(n.aggregateFieldHierarchy)) t && e.add(t);
|
|
4108
4105
|
for (let t of n.filterGroup?.fields ?? []) t && e.add(t);
|
|
4109
4106
|
}
|
|
4110
4107
|
return e;
|
|
4111
|
-
}),
|
|
4112
|
-
let t =
|
|
4108
|
+
}), Te = (e) => {
|
|
4109
|
+
let t = U(e), n = H(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = Ce(n.aggregateFieldHierarchy);
|
|
4113
4110
|
return Array.from(new Set([
|
|
4114
4111
|
t,
|
|
4115
4112
|
...r,
|
|
4116
4113
|
...i
|
|
4117
4114
|
].filter(Boolean)));
|
|
4118
|
-
},
|
|
4115
|
+
}, Ee = (e) => I.value === "advanced" && Di(e), De = (e, t) => Ee(e) ? Li({
|
|
4119
4116
|
colDef: e,
|
|
4120
4117
|
model: L.value,
|
|
4121
4118
|
options: t
|
|
4122
|
-
}) : new Map(
|
|
4119
|
+
}) : new Map(Te(e).map((e) => [e, R.value.get(e)?.values ?? []])), Oe = (e, t, n, r) => {
|
|
4123
4120
|
let i = /* @__PURE__ */ new Set();
|
|
4124
4121
|
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}`);
|
|
4125
4122
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
4126
4123
|
colField: t === e ? void 0 : t,
|
|
4127
4124
|
label: n,
|
|
4128
4125
|
metadata: { rawValue: n },
|
|
4129
|
-
value: t === e ? n :
|
|
4126
|
+
value: t === e ? n : gi(t, n)
|
|
4130
4127
|
}]));
|
|
4131
|
-
},
|
|
4128
|
+
}, ke = (e, t, n) => {
|
|
4132
4129
|
let r = /* @__PURE__ */ new Set();
|
|
4133
4130
|
for (let i of vi(n)) {
|
|
4134
|
-
let n = _i(i, e), a =
|
|
4131
|
+
let n = _i(i, e), a = X(i);
|
|
4135
4132
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
4136
4133
|
}
|
|
4137
4134
|
return Array.from(r);
|
|
4138
|
-
},
|
|
4139
|
-
let t =
|
|
4140
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
4141
|
-
},
|
|
4135
|
+
}, Ae = (e) => Object.fromEntries(Te(e).map((e) => [e, l.focusedValues[e] ?? []])), je = (e) => l.colDefs.find((t) => U(t) === e || t.field === e || t.colId === e), Me = (e) => je(e)?.headerName ?? e, Ne = (e) => {
|
|
4136
|
+
let t = H(e);
|
|
4137
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Cr(U(e), t.queryColIds, Me);
|
|
4138
|
+
}, Pe = (e, t) => wr({
|
|
4142
4139
|
fallbackSubText: e.subText,
|
|
4143
|
-
getDisplayName:
|
|
4140
|
+
getDisplayName: Me,
|
|
4144
4141
|
matchedField: e.matchedField,
|
|
4145
4142
|
matchedValue: e.matchedValue,
|
|
4146
|
-
showPrefix:
|
|
4147
|
-
}),
|
|
4143
|
+
showPrefix: H(t).showSearchMatchSubTextPrefix !== !1
|
|
4144
|
+
}), Ie = (e, t) => e.map((e) => ({
|
|
4148
4145
|
...e,
|
|
4149
|
-
children: e.children?.length ?
|
|
4150
|
-
subText:
|
|
4151
|
-
})),
|
|
4152
|
-
let t =
|
|
4146
|
+
children: e.children?.length ? Ie(e.children, t) : e.children,
|
|
4147
|
+
subText: Pe(e, t)
|
|
4148
|
+
})), Le = (e) => {
|
|
4149
|
+
let t = H(e).filterGroup;
|
|
4153
4150
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
4154
4151
|
field: e,
|
|
4155
4152
|
isActive: R.value.get(e)?.booleanValue === !0,
|
|
4156
|
-
label:
|
|
4153
|
+
label: je(e)?.headerName ?? e
|
|
4157
4154
|
}));
|
|
4158
|
-
},
|
|
4159
|
-
let t =
|
|
4160
|
-
category:
|
|
4155
|
+
}, q = (e) => ze.value.find((t) => t.key === e) ?? ze.value.find((t) => Te(t.colDef).includes(e)), Re = (e, t, n) => vi(q(e)?.knownOptions ?? []).find((r) => r.value === n || yi(r, t, n, e)), ze = r(() => l.colDefs.filter(he).map((e) => {
|
|
4156
|
+
let t = U(e), n = H(e), r = fe(e), i = Ie(ge(t), e), a = Ie(Se(t), e), o = {
|
|
4157
|
+
category: pe(e),
|
|
4161
4158
|
colDef: e,
|
|
4162
4159
|
dataType: n.dataType ?? null,
|
|
4163
4160
|
disabled: l.readOnly,
|
|
@@ -4166,31 +4163,31 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4166
4163
|
existsLabel: n.filterPanelExistsLabel,
|
|
4167
4164
|
filterFooterRenderer: n.filterFooterRenderer,
|
|
4168
4165
|
filterGroupLabel: n.filterGroup?.label,
|
|
4169
|
-
filterGroupOptions:
|
|
4166
|
+
filterGroupOptions: Le(e),
|
|
4170
4167
|
filterHeaderRenderer: n.filterHeaderRenderer,
|
|
4171
4168
|
filterOptionsRenderer: n.filterOptionsRenderer,
|
|
4172
4169
|
filterOptionsSortDescription: n.filterOptionsSortDescription,
|
|
4173
4170
|
filterOptionsSortTooltip: n.filterOptionsSortTooltip,
|
|
4174
4171
|
focusText: l.focusText,
|
|
4175
4172
|
focusedValues: l.focusedValues[t] ?? [],
|
|
4176
|
-
focusedValuesByField:
|
|
4177
|
-
hasMore:
|
|
4178
|
-
isAggregate:
|
|
4179
|
-
isFocusable: l.enableFocusView && (!l.focusableFields.length ||
|
|
4180
|
-
isLoading:
|
|
4181
|
-
isLoadingMore:
|
|
4182
|
-
isOpen:
|
|
4173
|
+
focusedValuesByField: Ae(e),
|
|
4174
|
+
hasMore: _e(t),
|
|
4175
|
+
isAggregate: Ee(e),
|
|
4176
|
+
isFocusable: l.enableFocusView && (!l.focusableFields.length || Te(e).some((e) => l.focusableFields.includes(e))),
|
|
4177
|
+
isLoading: ve(t),
|
|
4178
|
+
isLoadingMore: ye(t),
|
|
4179
|
+
isOpen: g.value[t] ?? !1,
|
|
4183
4180
|
key: t,
|
|
4184
4181
|
knownOptions: a,
|
|
4185
4182
|
label: e.headerName || t,
|
|
4186
|
-
rangeMax:
|
|
4187
|
-
rangeMin:
|
|
4188
|
-
rangeStep:
|
|
4189
|
-
searchPlaceholder:
|
|
4190
|
-
searchQuery:
|
|
4183
|
+
rangeMax: W(n.filterPanelRange?.max),
|
|
4184
|
+
rangeMin: W(n.filterPanelRange?.min),
|
|
4185
|
+
rangeStep: W(n.filterPanelRange?.step),
|
|
4186
|
+
searchPlaceholder: Ne(e),
|
|
4187
|
+
searchQuery: be(t) ?? "",
|
|
4191
4188
|
type: r,
|
|
4192
4189
|
valueDecimals: n.valueDecimals ?? null,
|
|
4193
|
-
valueLabels:
|
|
4190
|
+
valueLabels: me(e)
|
|
4194
4191
|
};
|
|
4195
4192
|
if (r === "range") return {
|
|
4196
4193
|
...o,
|
|
@@ -4207,7 +4204,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4207
4204
|
...o,
|
|
4208
4205
|
existsValue: R.value.get(t)?.existsValue ?? !1
|
|
4209
4206
|
};
|
|
4210
|
-
let s = a, c =
|
|
4207
|
+
let s = a, c = De(e, s), u = Oe(t, e, c, s), d = [...s, ...u], f = Ee(e) ? Ii({
|
|
4211
4208
|
colDef: e,
|
|
4212
4209
|
model: L.value,
|
|
4213
4210
|
options: d
|
|
@@ -4217,32 +4214,32 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4217
4214
|
aggregateSelectionState: f,
|
|
4218
4215
|
knownOptions: d,
|
|
4219
4216
|
options: i,
|
|
4220
|
-
selectedValues: f ? f.flatMap((e) => e.state === "selected" ? [e.id] : []) :
|
|
4217
|
+
selectedValues: f ? f.flatMap((e) => e.state === "selected" ? [e.id] : []) : ke(t, c, d)
|
|
4221
4218
|
};
|
|
4222
|
-
})),
|
|
4223
|
-
let t =
|
|
4219
|
+
})), Be = r(() => _.value === null ? ze.value : ze.value.filter((e) => e.category === _.value)), Ve = r(() => ze.value.flatMap((e) => {
|
|
4220
|
+
let t = st(e);
|
|
4224
4221
|
return t.length ? [{
|
|
4225
4222
|
key: e.key,
|
|
4226
4223
|
label: e.label,
|
|
4227
4224
|
values: t
|
|
4228
4225
|
}] : [];
|
|
4229
|
-
})),
|
|
4226
|
+
})), He = r(() => Ve.value.reduce((e, t) => e + t.values.length, 0)), Ue = r(() => Be.value.map((e) => ({
|
|
4230
4227
|
...e,
|
|
4231
|
-
isOpen:
|
|
4232
|
-
}))),
|
|
4228
|
+
isOpen: g.value[e.key] ?? e.isOpen ?? !1
|
|
4229
|
+
}))), We = r(() => ii(L.value, I.value)), Ge = r(() => [{
|
|
4233
4230
|
label: "Filters",
|
|
4234
4231
|
value: "filters"
|
|
4235
4232
|
}, {
|
|
4236
|
-
label: `Applied (${
|
|
4233
|
+
label: `Applied (${He.value})`,
|
|
4237
4234
|
value: "applied"
|
|
4238
|
-
}]),
|
|
4235
|
+
}]), Ke = r(() => ({
|
|
4239
4236
|
"--flex-align": "stretch",
|
|
4240
4237
|
"--flex-gap": "0",
|
|
4241
4238
|
flex: `0 0 ${l.width}`,
|
|
4242
4239
|
minHeight: "0",
|
|
4243
4240
|
width: l.width
|
|
4244
|
-
})),
|
|
4245
|
-
let t =
|
|
4241
|
+
})), qe = r(() => We.value || He.value > 0), Je = (e) => {
|
|
4242
|
+
let t = q(e.field);
|
|
4246
4243
|
if (!t || t.type !== e.filter.type) return !0;
|
|
4247
4244
|
if (e.filter.type === "value") {
|
|
4248
4245
|
if (t.isAggregate && e.option) {
|
|
@@ -4253,33 +4250,33 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4253
4250
|
});
|
|
4254
4251
|
return e.filter.checked ? n : !n;
|
|
4255
4252
|
}
|
|
4256
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
4253
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? X(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
4257
4254
|
return e.filter.checked ? a : !a;
|
|
4258
4255
|
}
|
|
4259
4256
|
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;
|
|
4260
|
-
},
|
|
4257
|
+
}, Ye = r(() => l.filterSuggestions.filter((e) => !Je(e))), Xe = (e) => {
|
|
4261
4258
|
if (e.key) return e.key;
|
|
4262
4259
|
let t = "value" in e.filter ? e.filter.value : "";
|
|
4263
4260
|
return `${e.field}-${e.filter.type}-${JSON.stringify(t)}`;
|
|
4264
|
-
},
|
|
4265
|
-
let i =
|
|
4261
|
+
}, Ze = (e, t, n, r) => {
|
|
4262
|
+
let i = O.value;
|
|
4266
4263
|
if (!i) return;
|
|
4267
4264
|
i.setFilterSelectedValues(t, n, l.staged);
|
|
4268
4265
|
let a = l.staged ? i.stagedFilterSelectedMetadataMap : i.filterSelectedMetadataMap, o = a.value[e] ?? [], s = new Set(n), c = o.filter((n) => {
|
|
4269
4266
|
if (!n) return !1;
|
|
4270
|
-
let r = _i(n, e), i =
|
|
4267
|
+
let r = _i(n, e), i = X(n) ?? n.value;
|
|
4271
4268
|
return r !== t || s.has(i);
|
|
4272
4269
|
});
|
|
4273
4270
|
if (r) {
|
|
4274
|
-
let t =
|
|
4271
|
+
let t = X(r) ?? r.value, n = _i(r, e);
|
|
4275
4272
|
c.some((r) => {
|
|
4276
|
-
let i =
|
|
4273
|
+
let i = X(r) ?? r.value;
|
|
4277
4274
|
return _i(r, e) === n && i === t;
|
|
4278
4275
|
}) || c.push(r);
|
|
4279
4276
|
}
|
|
4280
4277
|
a.value[e] = c;
|
|
4281
|
-
},
|
|
4282
|
-
let n =
|
|
4278
|
+
}, Qe = (e, t = e.aggregateSelectionState ?? []) => {
|
|
4279
|
+
let n = O.value;
|
|
4283
4280
|
if (!n || !e.isAggregate) return;
|
|
4284
4281
|
let r = t.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
4285
4282
|
n.setFilterSelectedValues(e.key, r, l.staged);
|
|
@@ -4288,38 +4285,38 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4288
4285
|
options: e.knownOptions ?? [],
|
|
4289
4286
|
state: t
|
|
4290
4287
|
});
|
|
4291
|
-
},
|
|
4292
|
-
if (!
|
|
4293
|
-
let t =
|
|
4288
|
+
}, $e = (e) => {
|
|
4289
|
+
if (!N.value) return;
|
|
4290
|
+
let t = O.value, n = /* @__PURE__ */ new Set();
|
|
4294
4291
|
if (e) {
|
|
4295
4292
|
n.add(e);
|
|
4296
|
-
let t =
|
|
4297
|
-
t && (n.add(t.key),
|
|
4293
|
+
let t = q(e);
|
|
4294
|
+
t && (n.add(t.key), Te(t.colDef).forEach((e) => n.add(e)));
|
|
4298
4295
|
}
|
|
4299
|
-
for (let r of
|
|
4300
|
-
},
|
|
4301
|
-
|
|
4302
|
-
let i = L.value, a =
|
|
4303
|
-
a ? (
|
|
4304
|
-
colDef: (n ?
|
|
4296
|
+
for (let r of ze.value) r.type === "value" && (e && (n.has(r.key) || Te(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
4297
|
+
}, et = (e, t, n, r) => {
|
|
4298
|
+
oe(e);
|
|
4299
|
+
let i = L.value, a = O.value;
|
|
4300
|
+
a ? (re(a, e), e === null && (l.staged ? (a.stagedFilterSelectedValueMap.value = {}, a.stagedFilterSelectedMetadataMap.value = {}) : (a.filterSelectedValueMap.value = {}, a.filterSelectedMetadataMap.value = {}))) : l.staged && (y.value = e), !l.filterStore && !x && !l.staged && (d.value = e), $e(n), p("filter-change", {
|
|
4301
|
+
colDef: (n ? q(n) : void 0)?.colDef,
|
|
4305
4302
|
field: n,
|
|
4306
4303
|
filterModel: e,
|
|
4307
4304
|
previousFilterModel: i,
|
|
4308
4305
|
reason: t,
|
|
4309
4306
|
type: r
|
|
4310
4307
|
});
|
|
4311
|
-
},
|
|
4308
|
+
}, tt = (e) => {
|
|
4312
4309
|
let t = e.booleanValue ?? null;
|
|
4313
4310
|
return t === null ? [] : [{
|
|
4314
4311
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
4315
4312
|
type: "boolean",
|
|
4316
4313
|
value: Ko
|
|
4317
4314
|
}];
|
|
4318
|
-
},
|
|
4315
|
+
}, nt = (e) => e.existsValue ? [{
|
|
4319
4316
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
4320
4317
|
type: "exists",
|
|
4321
4318
|
value: qo
|
|
4322
|
-
}] : [],
|
|
4319
|
+
}] : [], rt = (e) => {
|
|
4323
4320
|
let t = e.rangeValue ?? {
|
|
4324
4321
|
max: null,
|
|
4325
4322
|
min: null
|
|
@@ -4332,7 +4329,7 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4332
4329
|
type: "range",
|
|
4333
4330
|
value: Go
|
|
4334
4331
|
}];
|
|
4335
|
-
},
|
|
4332
|
+
}, it = (e, t, n) => {
|
|
4336
4333
|
let r = n.get(t) ?? null;
|
|
4337
4334
|
return {
|
|
4338
4335
|
field: r ? _i(r, e.key) : void 0,
|
|
@@ -4341,14 +4338,14 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4341
4338
|
subText: r?.subText,
|
|
4342
4339
|
subduedText: r?.subduedText,
|
|
4343
4340
|
type: "value",
|
|
4344
|
-
value: r ?
|
|
4341
|
+
value: r ? X(r) ?? r.value : t
|
|
4345
4342
|
};
|
|
4346
|
-
},
|
|
4343
|
+
}, at = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
4347
4344
|
field: e.field,
|
|
4348
4345
|
label: e.label,
|
|
4349
4346
|
type: "boolean",
|
|
4350
4347
|
value: Ko
|
|
4351
|
-
}] : []),
|
|
4348
|
+
}] : []), ot = (e) => Zi({
|
|
4352
4349
|
options: e.knownOptions ?? [],
|
|
4353
4350
|
state: e.aggregateSelectionState ?? []
|
|
4354
4351
|
}).map((t) => ({
|
|
@@ -4359,45 +4356,45 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4359
4356
|
subduedText: t.subduedText,
|
|
4360
4357
|
type: "value",
|
|
4361
4358
|
value: t.value
|
|
4362
|
-
})),
|
|
4363
|
-
if (e.type === "range") return
|
|
4364
|
-
if (e.type === "boolean") return
|
|
4365
|
-
if (e.type === "exists") return
|
|
4366
|
-
if (e.isAggregate) return [...
|
|
4359
|
+
})), st = (e) => {
|
|
4360
|
+
if (e.type === "range") return rt(e);
|
|
4361
|
+
if (e.type === "boolean") return tt(e);
|
|
4362
|
+
if (e.type === "exists") return nt(e);
|
|
4363
|
+
if (e.isAggregate) return [...ot(e), ...at(e)];
|
|
4367
4364
|
let t = new Map(vi(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
4368
|
-
return [...(e.selectedValues ?? []).map((n) =>
|
|
4365
|
+
return [...(e.selectedValues ?? []).map((n) => it(e, n, t)), ...at(e)];
|
|
4366
|
+
}, ct = () => {
|
|
4367
|
+
v.value = !1;
|
|
4368
|
+
}, lt = () => {
|
|
4369
|
+
bt(), et(null, "clear-all");
|
|
4369
4370
|
}, ut = () => {
|
|
4370
|
-
|
|
4371
|
+
lt(), v.value = !1;
|
|
4371
4372
|
}, dt = () => {
|
|
4372
|
-
xt(), q(null, "clear-all");
|
|
4373
|
-
}, ft = () => {
|
|
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
4373
|
xt();
|
|
4381
|
-
let e =
|
|
4382
|
-
e && (e
|
|
4383
|
-
},
|
|
4384
|
-
|
|
4385
|
-
|
|
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);
|
|
4376
|
+
}, ft = () => {
|
|
4377
|
+
bt();
|
|
4378
|
+
let e = O.value;
|
|
4379
|
+
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), y.value = d.value, p("cancel");
|
|
4380
|
+
}, pt = (e) => ai(q(e)?.dataType), mt = (e, t, n = "value-toggle") => {
|
|
4381
|
+
let r = q(e);
|
|
4382
|
+
r?.isAggregate && (Qe(r, t), et(Pi({
|
|
4386
4383
|
baseModel: L.value,
|
|
4387
4384
|
colDef: r.colDef,
|
|
4388
4385
|
options: r.knownOptions ?? [],
|
|
4389
4386
|
state: t
|
|
4390
4387
|
}), n, r.key, "value"));
|
|
4391
|
-
},
|
|
4388
|
+
}, ht = (e, t) => {
|
|
4392
4389
|
if (t.type === "aggregate-selection") {
|
|
4393
|
-
|
|
4390
|
+
mt(e, t.value);
|
|
4394
4391
|
return;
|
|
4395
4392
|
}
|
|
4396
|
-
let n = t.field ?? e, r =
|
|
4393
|
+
let n = t.field ?? e, r = je(n) ?? q(e)?.colDef;
|
|
4397
4394
|
if (t.type === "value") {
|
|
4398
|
-
let r =
|
|
4395
|
+
let r = q(e), i = Re(e, n, t.value);
|
|
4399
4396
|
if (r?.isAggregate && i) {
|
|
4400
|
-
|
|
4397
|
+
mt(e, qi({
|
|
4401
4398
|
checked: t.checked,
|
|
4402
4399
|
option: i,
|
|
4403
4400
|
options: r.knownOptions ?? [],
|
|
@@ -4405,25 +4402,25 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4405
4402
|
}));
|
|
4406
4403
|
return;
|
|
4407
4404
|
}
|
|
4408
|
-
|
|
4405
|
+
Tt(e, n, t.value, t.checked, i);
|
|
4409
4406
|
return;
|
|
4410
4407
|
}
|
|
4411
4408
|
if (t.type === "range") {
|
|
4412
|
-
|
|
4409
|
+
St(n, t.value, r);
|
|
4413
4410
|
return;
|
|
4414
4411
|
}
|
|
4415
4412
|
if (t.type === "boolean") {
|
|
4416
|
-
|
|
4413
|
+
et(si(L.value, n, t.value, I.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
4417
4414
|
return;
|
|
4418
4415
|
}
|
|
4419
|
-
|
|
4420
|
-
},
|
|
4421
|
-
let i =
|
|
4416
|
+
et(ci(L.value, n, t.value, pt(n), I.value, r), "exists-change", n, "exists");
|
|
4417
|
+
}, J = (e, t, n, r) => {
|
|
4418
|
+
let i = O.value;
|
|
4422
4419
|
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;
|
|
4423
|
-
},
|
|
4424
|
-
let i =
|
|
4425
|
-
if (!
|
|
4426
|
-
let a = Array.from(new Set([...
|
|
4420
|
+
}, gt = (e, t, n, r) => {
|
|
4421
|
+
let i = O.value;
|
|
4422
|
+
if (!J(e, t, n, r) || !i) return;
|
|
4423
|
+
let a = Array.from(new Set([...De(e.colDef, e.knownOptions ?? []).values()].flat()));
|
|
4427
4424
|
i.fetchFilterOptions({
|
|
4428
4425
|
colDef: e.colDef,
|
|
4429
4426
|
field: e.key,
|
|
@@ -4433,69 +4430,69 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4433
4430
|
reason: n,
|
|
4434
4431
|
selectedValues: a
|
|
4435
4432
|
});
|
|
4436
|
-
},
|
|
4437
|
-
p("load-more", e.key, e.colDef, t, n),
|
|
4438
|
-
},
|
|
4439
|
-
(e === "filters" || e === "applied") && (
|
|
4440
|
-
},
|
|
4441
|
-
|
|
4433
|
+
}, _t = (e, t, n) => {
|
|
4434
|
+
p("load-more", e.key, e.colDef, t, n), gt(e, t, n ? "child-load-more" : "load-more", n);
|
|
4435
|
+
}, vt = (e) => {
|
|
4436
|
+
(e === "filters" || e === "applied") && (h.value = e);
|
|
4437
|
+
}, yt = (e, t, n) => {
|
|
4438
|
+
et(li(L.value, e, t.min, t.max, I.value, n), "range-change", e, "range");
|
|
4439
|
+
}, bt = () => {
|
|
4440
|
+
for (let { timer: e } of E.values()) window.clearTimeout(e);
|
|
4441
|
+
E.clear();
|
|
4442
4442
|
}, xt = () => {
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
xt();
|
|
4448
|
-
for (let [t, n] of e) bt(t, n.value, n.colDef);
|
|
4449
|
-
}, Ct = (e, t, n) => {
|
|
4443
|
+
let e = [...E.entries()];
|
|
4444
|
+
bt();
|
|
4445
|
+
for (let [t, n] of e) yt(t, n.value, n.colDef);
|
|
4446
|
+
}, St = (e, t, n) => {
|
|
4450
4447
|
if (l.rangeDebounceMs <= 0) {
|
|
4451
|
-
|
|
4448
|
+
yt(e, t, n);
|
|
4452
4449
|
return;
|
|
4453
4450
|
}
|
|
4454
|
-
let r =
|
|
4451
|
+
let r = E.get(e);
|
|
4455
4452
|
r && window.clearTimeout(r.timer);
|
|
4456
4453
|
let i = window.setTimeout(() => {
|
|
4457
|
-
|
|
4454
|
+
E.delete(e), yt(e, t, n);
|
|
4458
4455
|
}, l.rangeDebounceMs);
|
|
4459
|
-
|
|
4456
|
+
E.set(e, {
|
|
4460
4457
|
colDef: n,
|
|
4461
4458
|
timer: i,
|
|
4462
4459
|
value: t
|
|
4463
4460
|
});
|
|
4464
4461
|
};
|
|
4465
|
-
w(
|
|
4466
|
-
let
|
|
4467
|
-
p("search-change", e.key, t, e.colDef),
|
|
4468
|
-
},
|
|
4469
|
-
|
|
4470
|
-
},
|
|
4462
|
+
w(bt);
|
|
4463
|
+
let Ct = (e, t) => {
|
|
4464
|
+
p("search-change", e.key, t, e.colDef), gt(e, t, "search");
|
|
4465
|
+
}, wt = (e, t) => {
|
|
4466
|
+
g.value[e.key] = t, p("open-change", e.key, t, e.colDef), t && gt(e, e.searchQuery ?? "", "open");
|
|
4467
|
+
}, Tt = (e, t, n, r, i) => {
|
|
4471
4468
|
let a = R.value.get(t)?.values ?? [], o = r ? Array.from(new Set([...a, n])) : a.filter((e) => e !== n);
|
|
4472
|
-
|
|
4473
|
-
},
|
|
4469
|
+
Ze(e, t, o, r ? i : void 0), et(ui(L.value, t, o, I.value, je(t) ?? q(e)?.colDef), "value-toggle", t, "value");
|
|
4470
|
+
}, Et = (e) => {
|
|
4474
4471
|
if (e.filter.type === "value" && e.option) {
|
|
4475
|
-
let t =
|
|
4476
|
-
t?.isAggregate ?
|
|
4472
|
+
let t = q(e.field), n = _i(e.option, e.field), r = X(e.option) ?? e.filter.value;
|
|
4473
|
+
t?.isAggregate ? mt(e.field, qi({
|
|
4477
4474
|
checked: e.filter.checked,
|
|
4478
4475
|
option: e.option,
|
|
4479
4476
|
options: t.knownOptions ?? [],
|
|
4480
4477
|
state: t.aggregateSelectionState ?? []
|
|
4481
|
-
})) :
|
|
4482
|
-
} else
|
|
4478
|
+
})) : Tt(e.field, n, r, e.filter.checked, e.option);
|
|
4479
|
+
} else ht(e.field, e.filter);
|
|
4483
4480
|
p("suggestion-click", e);
|
|
4484
|
-
},
|
|
4485
|
-
let r = n ??
|
|
4481
|
+
}, Dt = (e, t, n) => {
|
|
4482
|
+
let r = n ?? q(e)?.type ?? "value";
|
|
4486
4483
|
if (r === "range" || !n && t === Go) {
|
|
4487
|
-
|
|
4484
|
+
et(li(L.value, e, null, null, I.value, je(e) ?? q(e)?.colDef), "remove-filter", e, "range");
|
|
4488
4485
|
return;
|
|
4489
4486
|
}
|
|
4490
4487
|
if (r === "boolean" || !n && t === Ko) {
|
|
4491
|
-
|
|
4488
|
+
et(si(L.value, e, null, I.value, "boolean", je(e) ?? q(e)?.colDef), "remove-filter", e, "boolean");
|
|
4492
4489
|
return;
|
|
4493
4490
|
}
|
|
4494
4491
|
if (r === "exists" || !n && t === qo) {
|
|
4495
|
-
|
|
4492
|
+
et(ci(L.value, e, !1, "text", I.value, je(e) ?? q(e)?.colDef), "remove-filter", e, "exists");
|
|
4496
4493
|
return;
|
|
4497
4494
|
}
|
|
4498
|
-
let i =
|
|
4495
|
+
let i = q(e);
|
|
4499
4496
|
if (r === "value" && i?.isAggregate) {
|
|
4500
4497
|
let e = Oi(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? qi({
|
|
4501
4498
|
checked: !1,
|
|
@@ -4503,29 +4500,29 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4503
4500
|
options: i.knownOptions ?? [],
|
|
4504
4501
|
state: n
|
|
4505
4502
|
}) : n.filter((e) => e.id !== t);
|
|
4506
|
-
|
|
4503
|
+
mt(i.key, r, "remove-filter");
|
|
4507
4504
|
return;
|
|
4508
4505
|
}
|
|
4509
4506
|
let a = (R.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
4510
|
-
|
|
4511
|
-
},
|
|
4512
|
-
|
|
4507
|
+
Ze(q(e)?.key ?? e, e, a), et(ui(L.value, e, a, I.value, je(e) ?? q(e)?.colDef), "remove-filter", e, "value");
|
|
4508
|
+
}, Ot = () => {
|
|
4509
|
+
v.value = !0;
|
|
4513
4510
|
};
|
|
4514
|
-
return (n, r) => (
|
|
4511
|
+
return (n, r) => (D(), o(t, null, [f.value ? a("v-if", !0) : (D(), o("div", {
|
|
4515
4512
|
key: 0,
|
|
4516
4513
|
role: "complementary",
|
|
4517
4514
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
4518
4515
|
"data-testid": "pv-filter-panel",
|
|
4519
4516
|
"aria-label": e.ariaLabel,
|
|
4520
|
-
style: C(
|
|
4517
|
+
style: C(Ke.value)
|
|
4521
4518
|
}, [
|
|
4522
|
-
s("div", No, [u(
|
|
4523
|
-
modelValue:
|
|
4524
|
-
options:
|
|
4519
|
+
s("div", No, [u(yr, {
|
|
4520
|
+
modelValue: h.value,
|
|
4521
|
+
options: Ge.value,
|
|
4525
4522
|
class: "pv-filter-panel-mode-control",
|
|
4526
4523
|
size: "xl",
|
|
4527
|
-
"onUpdate:modelValue":
|
|
4528
|
-
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (
|
|
4524
|
+
"onUpdate:modelValue": vt
|
|
4525
|
+
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (D(), i(K, {
|
|
4529
4526
|
key: 0,
|
|
4530
4527
|
ariaLabel: "Collapse filters",
|
|
4531
4528
|
leftIcon: "chevrons-left",
|
|
@@ -4533,13 +4530,13 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4533
4530
|
variant: "secondary",
|
|
4534
4531
|
onClick: r[0] ||= (e) => f.value = !0
|
|
4535
4532
|
}))]),
|
|
4536
|
-
s("div", Po, [
|
|
4537
|
-
!e.readOnly &&
|
|
4538
|
-
key:
|
|
4533
|
+
s("div", Po, [ue(s("div", Fo, [
|
|
4534
|
+
!e.readOnly && Ye.value.length ? (D(), 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, [(D(!0), o(t, null, j(Ye.value, (e) => (D(), i(Sr, {
|
|
4535
|
+
key: Xe(e),
|
|
4539
4536
|
icon: e.icon,
|
|
4540
4537
|
"icon-classes": e.iconClasses,
|
|
4541
4538
|
label: e.label,
|
|
4542
|
-
onHandleClick: () =>
|
|
4539
|
+
onHandleClick: () => Et(e)
|
|
4543
4540
|
}, null, 8, [
|
|
4544
4541
|
"icon",
|
|
4545
4542
|
"icon-classes",
|
|
@@ -4548,76 +4545,76 @@ var mr = { style: { width: "fit-content" } }, hr = /* @__PURE__ */ f({
|
|
|
4548
4545
|
]))), 128))])])) : a("v-if", !0),
|
|
4549
4546
|
M(n.$slots, "suggestions", {}, void 0, !0),
|
|
4550
4547
|
u(bo, {
|
|
4551
|
-
modelValue:
|
|
4552
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
4548
|
+
modelValue: _.value,
|
|
4549
|
+
"onUpdate:modelValue": r[1] ||= (e) => _.value = e,
|
|
4553
4550
|
"category-order": e.categoryOrder,
|
|
4554
|
-
filters:
|
|
4551
|
+
filters: ze.value
|
|
4555
4552
|
}, null, 8, [
|
|
4556
4553
|
"modelValue",
|
|
4557
4554
|
"category-order",
|
|
4558
4555
|
"filters"
|
|
4559
4556
|
]),
|
|
4560
|
-
|
|
4557
|
+
ze.value.length ? Be.value.length ? (D(), o("div", Bo, [(D(!0), o(t, null, j(Ue.value, (e) => (D(), i(io, {
|
|
4561
4558
|
key: e.key,
|
|
4562
4559
|
filter: e,
|
|
4563
|
-
onFilterChange: (t) =>
|
|
4560
|
+
onFilterChange: (t) => ht(e.key, t),
|
|
4564
4561
|
onFocusChange: r[2] ||= (e, t, n) => p("focus-change", e, t, n),
|
|
4565
4562
|
onHandleSettingsIcon: r[3] ||= (e, t) => p("handle-settings-icon", e, t),
|
|
4566
|
-
onLoadMore: (t, n) =>
|
|
4567
|
-
onOpenChange: (t) =>
|
|
4568
|
-
onSearchChange: (t) =>
|
|
4563
|
+
onLoadMore: (t, n) => _t(e, t, n),
|
|
4564
|
+
onOpenChange: (t) => wt(e, t),
|
|
4565
|
+
onSearchChange: (t) => Ct(e, t)
|
|
4569
4566
|
}, null, 8, [
|
|
4570
4567
|
"filter",
|
|
4571
4568
|
"onFilterChange",
|
|
4572
4569
|
"onLoadMore",
|
|
4573
4570
|
"onOpenChange",
|
|
4574
4571
|
"onSearchChange"
|
|
4575
|
-
]))), 128))])) : (
|
|
4576
|
-
], 512), [[
|
|
4577
|
-
"applied-count":
|
|
4578
|
-
"applied-groups":
|
|
4572
|
+
]))), 128))])) : (D(), o("div", zo, " No filters in this category. ")) : (D(), o("div", Ro, " No filters available. "))
|
|
4573
|
+
], 512), [[se, h.value === "filters"]]), ue(u(po, {
|
|
4574
|
+
"applied-count": He.value,
|
|
4575
|
+
"applied-groups": Ve.value,
|
|
4579
4576
|
"read-only": e.readOnly,
|
|
4580
|
-
onRemoveFilter:
|
|
4577
|
+
onRemoveFilter: Dt
|
|
4581
4578
|
}, null, 8, [
|
|
4582
4579
|
"applied-count",
|
|
4583
4580
|
"applied-groups",
|
|
4584
4581
|
"read-only"
|
|
4585
|
-
]), [[
|
|
4586
|
-
(
|
|
4582
|
+
]), [[se, h.value === "applied"]])]),
|
|
4583
|
+
(qe.value || e.staged) && !e.readOnly ? (D(), o("div", Vo, [qe.value ? (D(), i(K, {
|
|
4587
4584
|
key: 0,
|
|
4588
4585
|
class: "pv-text-brand",
|
|
4589
4586
|
label: e.clearAllLabel,
|
|
4590
4587
|
variant: "ghost",
|
|
4591
|
-
onClick:
|
|
4592
|
-
}, null, 8, ["label"])) : a("v-if", !0), e.staged ? (
|
|
4588
|
+
onClick: Ot
|
|
4589
|
+
}, null, 8, ["label"])) : a("v-if", !0), e.staged ? (D(), o("div", Ho, [u(K, {
|
|
4593
4590
|
label: e.cancelLabel,
|
|
4594
4591
|
variant: "ghost",
|
|
4595
|
-
onClick:
|
|
4596
|
-
}, null, 8, ["label"]), u(
|
|
4592
|
+
onClick: ft
|
|
4593
|
+
}, null, 8, ["label"]), u(K, {
|
|
4597
4594
|
label: e.applyLabel,
|
|
4598
4595
|
variant: "primary",
|
|
4599
|
-
onClick:
|
|
4596
|
+
onClick: dt
|
|
4600
4597
|
}, null, 8, ["label"])])) : a("v-if", !0)])) : a("v-if", !0)
|
|
4601
|
-
], 12, Mo)), u(
|
|
4602
|
-
modelValue:
|
|
4603
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
4598
|
+
], 12, Mo)), u(Fe, {
|
|
4599
|
+
modelValue: v.value,
|
|
4600
|
+
"onUpdate:modelValue": r[4] ||= (e) => v.value = e,
|
|
4604
4601
|
header: e.clearAllHeader,
|
|
4605
4602
|
style: { "--max-width": "440px" }
|
|
4606
4603
|
}, {
|
|
4607
|
-
body:
|
|
4608
|
-
footer:
|
|
4604
|
+
body: le(() => [s("p", Uo, F(e.clearAllBody), 1)]),
|
|
4605
|
+
footer: le(() => [s("div", Wo, [u(K, {
|
|
4609
4606
|
label: e.cancelLabel,
|
|
4610
4607
|
variant: "ghost",
|
|
4611
|
-
onClick:
|
|
4612
|
-
}, null, 8, ["label"]), u(
|
|
4608
|
+
onClick: ct
|
|
4609
|
+
}, null, 8, ["label"]), u(K, {
|
|
4613
4610
|
label: e.clearAllLabel,
|
|
4614
4611
|
variant: "primary",
|
|
4615
|
-
onClick:
|
|
4612
|
+
onClick: ut
|
|
4616
4613
|
}, null, 8, ["label"])])]),
|
|
4617
4614
|
_: 1
|
|
4618
4615
|
}, 8, ["modelValue", "header"])], 64));
|
|
4619
4616
|
}
|
|
4620
|
-
}), [["styles", [".pv-filter-panel[data-v-
|
|
4617
|
+
}), [["styles", [".pv-filter-panel[data-v-7ba0f139]{height:100%;max-height:100vh}.pv-filter-panel-actions[data-v-7ba0f139],.pv-filter-panel-header[data-v-7ba0f139],.pv-filter-panel-suggestion-tags[data-v-7ba0f139]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-7ba0f139],.pv-filter-panel-filters-view[data-v-7ba0f139]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-7ba0f139]{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-7ba0f139]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-7ba0f139]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-7ba0f139]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-7ba0f139]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-7ba0f139],.pv-filter-panel-footer[data-v-7ba0f139],.pv-filter-panel-suggestions[data-v-7ba0f139]{padding:12px}.pv-filter-panel-filter-list[data-v-7ba0f139]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-7ba0f139]{--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-7ba0f139]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-7ba0f139]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-7ba0f139]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-7ba0f139]{margin:0}.pv-filter-panel-suggestions[data-v-7ba0f139]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-7ba0f139]{--flex-wrap:wrap}"]], ["__scopeId", "data-v-7ba0f139"]]), Yo = Object.defineProperty, Xo = Object.getOwnPropertySymbols, Zo = Object.prototype.hasOwnProperty, Qo = Object.prototype.propertyIsEnumerable, $o = (e, t, n) => t in e ? Yo(e, t, {
|
|
4621
4618
|
enumerable: !0,
|
|
4622
4619
|
configurable: !0,
|
|
4623
4620
|
writable: !0,
|
|
@@ -4950,15 +4947,15 @@ var Js = {
|
|
|
4950
4947
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
4951
4948
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
4952
4949
|
if (Z(a) && o.transform !== "strict") {
|
|
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"]),
|
|
4954
|
-
s = this.transformCSS(e, M, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${P}${
|
|
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"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, te = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, D = Z(C) ? this._toVariables({ light: C }, o) : {}, O = 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] = [ee.declarations ?? "", ee.tokens], [P, F] = [te.declarations ?? "", te.tokens || []], [I, L] = [D.declarations ?? "", D.tokens || []], [R, ne] = [O.declarations ?? "", O.tokens || []], [re, z] = [k.declarations ?? "", k.tokens || []], [B, ie] = [A.declarations ?? "", A.tokens || []], [ae, oe] = [j.declarations ?? "", j.tokens || []];
|
|
4951
|
+
s = this.transformCSS(e, M, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${P}${I}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${R}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
4955
4952
|
...F,
|
|
4956
|
-
...
|
|
4957
|
-
...
|
|
4958
|
-
])], d = `${this.transformCSS(e, `${re}${
|
|
4953
|
+
...L,
|
|
4954
|
+
...ne
|
|
4955
|
+
])], d = `${this.transformCSS(e, `${re}${B}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ae}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
4956
|
+
...z,
|
|
4959
4957
|
...ie,
|
|
4960
|
-
...oe
|
|
4961
|
-
...ce
|
|
4958
|
+
...oe
|
|
4962
4959
|
])], p = os(a.css, { dt: Ws });
|
|
4963
4960
|
}
|
|
4964
4961
|
return {
|
|
@@ -4984,10 +4981,10 @@ var Js = {
|
|
|
4984
4981
|
"colorScheme",
|
|
4985
4982
|
"extend",
|
|
4986
4983
|
"css"
|
|
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) : {}, [
|
|
4988
|
-
s = `${this.transformCSS(r, `${
|
|
4989
|
-
...ee,
|
|
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) : {}, [ee, te] = [w.declarations ?? "", w.tokens || []], [D, O] = [T.declarations ?? "", T.tokens || []], [k, A] = [E.declarations ?? "", E.tokens || []];
|
|
4985
|
+
s = `${this.transformCSS(r, `${ee}${D}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, k, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
4990
4986
|
...te,
|
|
4987
|
+
...O,
|
|
4991
4988
|
...A
|
|
4992
4989
|
])], l = os(p, { dt: Ws });
|
|
4993
4990
|
}
|
|
@@ -5347,18 +5344,18 @@ function nc(e) {
|
|
|
5347
5344
|
}
|
|
5348
5345
|
var rc = 0;
|
|
5349
5346
|
function ic(e) {
|
|
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,
|
|
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, ee = E === void 0 ? void 0 : E, te = t.props, D = te === void 0 ? {} : te, O = function() {}, j = function(t) {
|
|
5351
5348
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5352
5349
|
if (s) {
|
|
5353
|
-
var o = Qs(Qs({},
|
|
5350
|
+
var o = Qs(Qs({}, D), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
5354
5351
|
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, {
|
|
5355
5352
|
type: "text/css",
|
|
5356
5353
|
id: l,
|
|
5357
5354
|
media: _,
|
|
5358
5355
|
nonce: u
|
|
5359
5356
|
}), 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) {
|
|
5360
|
-
return
|
|
5361
|
-
}, C?.(c)), !n.value && (
|
|
5357
|
+
return ee?.(e, { name: c });
|
|
5358
|
+
}, C?.(c)), !n.value && (O = V(r, function(e) {
|
|
5362
5359
|
i.value.textContent = e, T?.(c);
|
|
5363
5360
|
}, { immediate: !0 }), n.value = !0);
|
|
5364
5361
|
}
|
|
@@ -5369,7 +5366,7 @@ function ic(e) {
|
|
|
5369
5366
|
el: i,
|
|
5370
5367
|
css: r,
|
|
5371
5368
|
unload: function() {
|
|
5372
|
-
!s || !n.value || (
|
|
5369
|
+
!s || !n.value || (O(), hs(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5373
5370
|
},
|
|
5374
5371
|
load: j,
|
|
5375
5372
|
isLoaded: k(n)
|
|
@@ -5850,7 +5847,7 @@ var Ac = {
|
|
|
5850
5847
|
csp: { nonce: void 0 }
|
|
5851
5848
|
}, jc = Symbol();
|
|
5852
5849
|
function Mc(e, t) {
|
|
5853
|
-
var n = { config:
|
|
5850
|
+
var n = { config: O(t) };
|
|
5854
5851
|
return e.config.globalProperties.$primevue = n, e.provide(jc, n), Pc(), Fc(e, n), n;
|
|
5855
5852
|
}
|
|
5856
5853
|
var Nc = [];
|
|
@@ -5869,7 +5866,7 @@ function Fc(e, t) {
|
|
|
5869
5866
|
As.on("theme:change", function(t) {
|
|
5870
5867
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
5871
5868
|
});
|
|
5872
|
-
var i =
|
|
5869
|
+
var i = V(t.config, function(e, t) {
|
|
5873
5870
|
Cc.emit("config:change", {
|
|
5874
5871
|
newValue: e,
|
|
5875
5872
|
oldValue: t
|
|
@@ -5877,7 +5874,7 @@ function Fc(e, t) {
|
|
|
5877
5874
|
}, {
|
|
5878
5875
|
immediate: !0,
|
|
5879
5876
|
deep: !0
|
|
5880
|
-
}), a =
|
|
5877
|
+
}), a = V(function() {
|
|
5881
5878
|
return t.config.ripple;
|
|
5882
5879
|
}, function(e, t) {
|
|
5883
5880
|
Cc.emit("config:ripple:change", {
|
|
@@ -5887,7 +5884,7 @@ function Fc(e, t) {
|
|
|
5887
5884
|
}, {
|
|
5888
5885
|
immediate: !0,
|
|
5889
5886
|
deep: !0
|
|
5890
|
-
}), o =
|
|
5887
|
+
}), o = V(function() {
|
|
5891
5888
|
return t.config.theme;
|
|
5892
5889
|
}, function(e, i) {
|
|
5893
5890
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, Cc.emit("config:theme:change", {
|
|
@@ -5897,7 +5894,7 @@ function Fc(e, t) {
|
|
|
5897
5894
|
}, {
|
|
5898
5895
|
immediate: !0,
|
|
5899
5896
|
deep: !1
|
|
5900
|
-
}), s =
|
|
5897
|
+
}), s = V(function() {
|
|
5901
5898
|
return t.config.unstyled;
|
|
5902
5899
|
}, function(e, n) {
|
|
5903
5900
|
!e && t.config.theme && r(), Cc.emit("config:unstyled:change", {
|