@turquoisehealth/pit-viper 2.270.1 → 2.270.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/manifest.json +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +931 -897
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1719 -1685
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +566 -532
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, onUpdated as D, openBlock as O, reactive as k, readonly as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowReactive as F, shallowRef as I, toDisplayString as L, toValue as R, unref as z, useAttrs as te, useId as ne, useModel as re, useSlots as B, useTemplateRef as ie, vModelCheckbox as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, onUpdated as D, openBlock as O, reactive as k, readonly as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowReactive as F, shallowRef as I, toDisplayString as L, toValue as R, unref as z, useAttrs as te, useId as ne, useModel as re, useSlots as B, useTemplateRef as ie, vModelCheckbox as V, vModelText as ae, vShow as oe, watch as H, watchEffect as se, withCtx as ce, withDirectives as U, withKeys as W, withModifiers as le } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, G = Object.prototype.hasOwnProperty, pe = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) ue(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
10
|
+
return t || ue(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
11
|
}, me = (e, t, n, r) => {
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
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], !G.call(e, s) && s !== n && ue(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
|
}, he = (e, t, n) => (me(e, t, "default"), n && me(n, t, "default")), ge = /* @__PURE__ */ d({
|
|
@@ -44,20 +44,20 @@ var de = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, W = Object
|
|
|
44
44
|
style: S({ "--size": t[e.size] })
|
|
45
45
|
}, null, 6));
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), _e = ["ghost"], K = {
|
|
48
48
|
md: "pv-button-small",
|
|
49
49
|
lg: void 0,
|
|
50
50
|
xl: "pv-button-large"
|
|
51
|
-
},
|
|
51
|
+
}, ve = (e) => e == null || !K.hasOwnProperty(e) ? null : K[e] || null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
|
-
function
|
|
54
|
+
function ye() {
|
|
55
55
|
let e = j(!1), t = p()?.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 be = [
|
|
61
61
|
void 0,
|
|
62
62
|
10,
|
|
63
63
|
12,
|
|
@@ -66,24 +66,24 @@ var ye = [
|
|
|
66
66
|
24,
|
|
67
67
|
32,
|
|
68
68
|
64
|
|
69
|
-
],
|
|
69
|
+
], xe = ["xlink:href"], Se = /* @__PURE__ */ d({
|
|
70
70
|
__name: "PvIcon",
|
|
71
71
|
props: {
|
|
72
72
|
name: { type: String },
|
|
73
73
|
size: { type: null }
|
|
74
74
|
},
|
|
75
75
|
setup(e) {
|
|
76
|
-
let t = e, n =
|
|
76
|
+
let t = e, n = ye(), i = j(null), a = r(() => ({
|
|
77
77
|
"pv-icon": !0,
|
|
78
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
78
|
+
[`pv-icon-${t.size}`]: t.size != null && be.includes(t.size)
|
|
79
79
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
80
80
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (O(), o("svg", {
|
|
81
81
|
"data-testid": "pv-icon",
|
|
82
82
|
"aria-hidden": "true",
|
|
83
83
|
class: b(a.value)
|
|
84
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
84
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, xe)], 2));
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), Ce = /* @__PURE__ */ d({
|
|
87
87
|
__name: "PvCounterBadge",
|
|
88
88
|
props: {
|
|
89
89
|
maxValue: {
|
|
@@ -122,14 +122,14 @@ var ye = [
|
|
|
122
122
|
"data-testid": "pv-counter-badge"
|
|
123
123
|
}, L(n.value), 3));
|
|
124
124
|
}
|
|
125
|
-
}),
|
|
125
|
+
}), we = ".pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}", Te = (e, t) => {
|
|
126
126
|
let n = e.__vccOpts || e;
|
|
127
127
|
for (let [e, r] of t) n[e] = r;
|
|
128
128
|
return n;
|
|
129
|
-
},
|
|
129
|
+
}, Ee = /* @__PURE__ */ Te(Ce, [["styles", [we]], ["__scopeId", "data-v-3def68cb"]]), De = ["disabled", "aria-label"], Oe = {
|
|
130
130
|
key: 2,
|
|
131
131
|
"data-testid": "pv-button-label"
|
|
132
|
-
},
|
|
132
|
+
}, q = /* @__PURE__ */ d({
|
|
133
133
|
__name: "PvButton",
|
|
134
134
|
props: {
|
|
135
135
|
variant: {
|
|
@@ -162,8 +162,8 @@ var ye = [
|
|
|
162
162
|
setup(e) {
|
|
163
163
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
164
164
|
let e = [];
|
|
165
|
-
n.inverse &&
|
|
166
|
-
let t =
|
|
165
|
+
n.inverse && _e.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
166
|
+
let t = ve(n.size);
|
|
167
167
|
return t && e.push(t), e;
|
|
168
168
|
});
|
|
169
169
|
return (n, r) => (O(), o("button", {
|
|
@@ -176,30 +176,30 @@ var ye = [
|
|
|
176
176
|
key: 0,
|
|
177
177
|
size: "sm"
|
|
178
178
|
})) : (O(), o(t, { key: 1 }, [
|
|
179
|
-
e.leftCounterBadge ? (O(), i(
|
|
179
|
+
e.leftCounterBadge ? (O(), i(Ee, {
|
|
180
180
|
key: 0,
|
|
181
181
|
value: e.leftCounterBadge,
|
|
182
182
|
variant: "tertiary"
|
|
183
183
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
184
|
-
e.leftIcon ? (O(), i(
|
|
184
|
+
e.leftIcon ? (O(), i(Se, {
|
|
185
185
|
key: 1,
|
|
186
186
|
name: e.leftIcon,
|
|
187
187
|
"data-testid": "pv-button-left-icon"
|
|
188
188
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
189
|
-
e.label ? (O(), o("span",
|
|
190
|
-
e.rightCounterBadge ? (O(), i(
|
|
189
|
+
e.label ? (O(), o("span", Oe, L(e.label), 1)) : a("v-if", !0),
|
|
190
|
+
e.rightCounterBadge ? (O(), i(Ee, {
|
|
191
191
|
key: 3,
|
|
192
192
|
value: e.rightCounterBadge,
|
|
193
193
|
variant: "tertiary"
|
|
194
194
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
195
|
-
e.rightIcon ? (O(), i(
|
|
195
|
+
e.rightIcon ? (O(), i(Se, {
|
|
196
196
|
key: 4,
|
|
197
197
|
name: e.rightIcon,
|
|
198
198
|
"data-testid": "pv-button-right-icon"
|
|
199
199
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
200
|
-
], 64))], 10,
|
|
200
|
+
], 64))], 10, De));
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
202
|
+
}), J = { class: "pv-inset-squish-12" }, ke = {
|
|
203
203
|
key: 0,
|
|
204
204
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
205
205
|
style: { "--flex-align": "flex-start" }
|
|
@@ -238,7 +238,7 @@ var ye = [
|
|
|
238
238
|
emits: ["update:modelValue"],
|
|
239
239
|
setup(e) {
|
|
240
240
|
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = ie("dialog"), c = re(e, "modelValue");
|
|
241
|
-
|
|
241
|
+
H(() => c.value, () => {
|
|
242
242
|
c.value ? i.value?.showModal() : i.value?.close();
|
|
243
243
|
});
|
|
244
244
|
let l = () => {
|
|
@@ -252,7 +252,7 @@ var ye = [
|
|
|
252
252
|
style: S(n.value),
|
|
253
253
|
onClose: l,
|
|
254
254
|
onClick: u
|
|
255
|
-
}, [s("div",
|
|
255
|
+
}, [s("div", J, [e.hideHeader ? a("v-if", !0) : (O(), o("div", ke, [s("span", Y, L(e.header), 1), e.subheader ? (O(), o("span", Ae, L(e.subheader), 1)) : a("v-if", !0)])), N(t.$slots, "body")]), e.hideFooter ? a("v-if", !0) : (O(), o("div", je, [N(t.$slots, "footer")]))], 36));
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
258
|
//#endregion
|
|
@@ -262,11 +262,11 @@ function Ne(e) {
|
|
|
262
262
|
}
|
|
263
263
|
var Pe = typeof window < "u" && typeof document < "u";
|
|
264
264
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
265
|
-
var Fe = (e) => e != null, Ie = Object.prototype.toString, Le = (e) => Ie.call(e) === "[object Object]",
|
|
266
|
-
function
|
|
265
|
+
var Fe = (e) => e != null, Ie = Object.prototype.toString, Le = (e) => Ie.call(e) === "[object Object]", Re = () => {}, ze = /* @__PURE__ */ Be();
|
|
266
|
+
function Be() {
|
|
267
267
|
return Pe && (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));
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ve(e, t) {
|
|
270
270
|
function n(...n) {
|
|
271
271
|
return new Promise((r, i) => {
|
|
272
272
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -278,10 +278,10 @@ function Be(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
return n;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
283
|
-
let n, r, i =
|
|
284
|
-
clearTimeout(e), i(), i =
|
|
281
|
+
var He = (e) => e();
|
|
282
|
+
function Ue(e, t = {}) {
|
|
283
|
+
let n, r, i = Re, a = (e) => {
|
|
284
|
+
clearTimeout(e), i(), i = Re;
|
|
285
285
|
}, o;
|
|
286
286
|
return (s) => {
|
|
287
287
|
let c = R(e), l = R(t.maxWait);
|
|
@@ -294,54 +294,54 @@ function He(e, t = {}) {
|
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function We(e) {
|
|
298
298
|
return Array.isArray(e) ? e : [e];
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ge(e) {
|
|
301
301
|
return e || p();
|
|
302
302
|
}
|
|
303
303
|
/* @__NO_SIDE_EFFECTS__ */
|
|
304
|
-
function
|
|
305
|
-
return
|
|
304
|
+
function Ke(e, t = 200, n = {}) {
|
|
305
|
+
return Ve(Ue(t, n), e);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
let { eventFilter: r =
|
|
309
|
-
return
|
|
307
|
+
function qe(e, t, n = {}) {
|
|
308
|
+
let { eventFilter: r = He, ...i } = n;
|
|
309
|
+
return H(e, Ve(r, t), i);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
311
|
+
function Je(e, t = !0, n) {
|
|
312
|
+
Ge(n) ? T(e, n) : t ? e() : y(e);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ye(e, t, n = {}) {
|
|
315
315
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
316
|
-
return
|
|
316
|
+
return qe(e, t, {
|
|
317
317
|
...a,
|
|
318
|
-
eventFilter:
|
|
318
|
+
eventFilter: Ue(r, { maxWait: i })
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
return
|
|
321
|
+
function Xe(e, t, n) {
|
|
322
|
+
return H(e, t, {
|
|
323
323
|
...n,
|
|
324
324
|
immediate: !0
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
329
|
-
var
|
|
329
|
+
var Ze = Pe ? window : void 0;
|
|
330
330
|
Pe && window.document, Pe && window.navigator, Pe && window.location;
|
|
331
|
-
function
|
|
331
|
+
function X(e) {
|
|
332
332
|
let t = R(e);
|
|
333
333
|
return t?.$el ?? t;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Z(...e) {
|
|
336
336
|
let t = [], n = () => {
|
|
337
337
|
t.forEach((e) => e()), t.length = 0;
|
|
338
338
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
339
|
-
let t =
|
|
339
|
+
let t = We(R(e[0])).filter((e) => e != null);
|
|
340
340
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
341
|
-
}), o =
|
|
342
|
-
a.value?.map((e) =>
|
|
343
|
-
|
|
344
|
-
|
|
341
|
+
}), o = Xe(() => [
|
|
342
|
+
a.value?.map((e) => X(e)) ?? [Ze].filter((e) => e != null),
|
|
343
|
+
We(R(a.value ? e[1] : e[0])),
|
|
344
|
+
We(z(a.value ? e[2] : e[1])),
|
|
345
345
|
R(a.value ? e[3] : e[2])
|
|
346
346
|
], ([e, r, a, o]) => {
|
|
347
347
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
@@ -354,21 +354,21 @@ function Ze(...e) {
|
|
|
354
354
|
}
|
|
355
355
|
var Qe = !1;
|
|
356
356
|
function $e(e, t, n = {}) {
|
|
357
|
-
let { window: r =
|
|
357
|
+
let { window: r = Ze, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
358
358
|
if (!r) return s ? {
|
|
359
|
-
stop:
|
|
360
|
-
cancel:
|
|
361
|
-
trigger:
|
|
362
|
-
} :
|
|
363
|
-
if (
|
|
359
|
+
stop: Re,
|
|
360
|
+
cancel: Re,
|
|
361
|
+
trigger: Re
|
|
362
|
+
} : Re;
|
|
363
|
+
if (ze && !Qe) {
|
|
364
364
|
Qe = !0;
|
|
365
365
|
let e = { passive: !0 };
|
|
366
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
366
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", Re, e)), r.document.documentElement.addEventListener("click", Re, e);
|
|
367
367
|
}
|
|
368
368
|
let c = !0, l = (e) => R(i).some((t) => {
|
|
369
369
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
370
370
|
{
|
|
371
|
-
let n =
|
|
371
|
+
let n = X(t);
|
|
372
372
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
373
373
|
}
|
|
374
374
|
});
|
|
@@ -381,7 +381,7 @@ function $e(e, t, n = {}) {
|
|
|
381
381
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
382
382
|
}
|
|
383
383
|
let f = (n) => {
|
|
384
|
-
let r =
|
|
384
|
+
let r = X(e);
|
|
385
385
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
386
386
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
387
387
|
c = !0;
|
|
@@ -390,7 +390,7 @@ function $e(e, t, n = {}) {
|
|
|
390
390
|
t(n);
|
|
391
391
|
}
|
|
392
392
|
}, p = !1, m = [
|
|
393
|
-
|
|
393
|
+
Z(r, "click", (e) => {
|
|
394
394
|
p || (p = !0, setTimeout(() => {
|
|
395
395
|
p = !1;
|
|
396
396
|
}, 0), f(e));
|
|
@@ -398,13 +398,13 @@ function $e(e, t, n = {}) {
|
|
|
398
398
|
passive: !0,
|
|
399
399
|
capture: a
|
|
400
400
|
}),
|
|
401
|
-
|
|
402
|
-
let n =
|
|
401
|
+
Z(r, "pointerdown", (t) => {
|
|
402
|
+
let n = X(e);
|
|
403
403
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
404
404
|
}, { passive: !0 }),
|
|
405
|
-
o &&
|
|
405
|
+
o && Z(r, "blur", (n) => {
|
|
406
406
|
setTimeout(() => {
|
|
407
|
-
let i =
|
|
407
|
+
let i = X(e);
|
|
408
408
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
409
409
|
}, 0);
|
|
410
410
|
}, { passive: !0 })
|
|
@@ -432,10 +432,10 @@ function tt(e) {
|
|
|
432
432
|
return r(() => (t.value, !!e()));
|
|
433
433
|
}
|
|
434
434
|
function nt(e, t, n = {}) {
|
|
435
|
-
let { window: i =
|
|
435
|
+
let { window: i = Ze, ...a } = n, o, s = /* @__PURE__ */ tt(() => i && "MutationObserver" in i), c = () => {
|
|
436
436
|
o &&= (o.disconnect(), void 0);
|
|
437
|
-
}, l =
|
|
438
|
-
let t =
|
|
437
|
+
}, l = H(r(() => {
|
|
438
|
+
let t = We(R(e)).map(X).filter(Fe);
|
|
439
439
|
return new Set(t);
|
|
440
440
|
}), (e) => {
|
|
441
441
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -452,12 +452,12 @@ function nt(e, t, n = {}) {
|
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
function rt(e, t, n = {}) {
|
|
455
|
-
let { window: r =
|
|
456
|
-
if (!r || !i) return
|
|
455
|
+
let { window: r = Ze, document: i = r?.document, flush: a = "sync" } = n;
|
|
456
|
+
if (!r || !i) return Re;
|
|
457
457
|
let o, s = (e) => {
|
|
458
458
|
o?.(), o = e;
|
|
459
|
-
}, c =
|
|
460
|
-
let n =
|
|
459
|
+
}, c = se(() => {
|
|
460
|
+
let n = X(e);
|
|
461
461
|
if (n) {
|
|
462
462
|
let { stop: e } = nt(i, (e) => {
|
|
463
463
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
@@ -479,17 +479,17 @@ function it(e) {
|
|
|
479
479
|
function at(...e) {
|
|
480
480
|
let t, n, r = {};
|
|
481
481
|
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]);
|
|
482
|
-
let { target: i =
|
|
483
|
-
return
|
|
482
|
+
let { target: i = Ze, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = it(t);
|
|
483
|
+
return Z(i, a, (e) => {
|
|
484
484
|
e.repeat && R(s) || c(e) && n(e);
|
|
485
485
|
}, o);
|
|
486
486
|
}
|
|
487
487
|
function ot(e, t, n = {}) {
|
|
488
|
-
let { window: i =
|
|
488
|
+
let { window: i = Ze, ...a } = n, o, s = /* @__PURE__ */ tt(() => i && "ResizeObserver" in i), c = () => {
|
|
489
489
|
o &&= (o.disconnect(), void 0);
|
|
490
|
-
}, l =
|
|
490
|
+
}, l = H(r(() => {
|
|
491
491
|
let t = R(e);
|
|
492
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
492
|
+
return Array.isArray(t) ? t.map((e) => X(e)) : [X(t)];
|
|
493
493
|
}), (e) => {
|
|
494
494
|
if (c(), s.value && i) {
|
|
495
495
|
o = new ResizeObserver(t);
|
|
@@ -509,7 +509,7 @@ function ot(e, t, n = {}) {
|
|
|
509
509
|
function st(e, t = {}) {
|
|
510
510
|
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = I(0), c = I(0), l = I(0), u = I(0), d = I(0), f = I(0), p = I(0), m = I(0);
|
|
511
511
|
function h() {
|
|
512
|
-
let t =
|
|
512
|
+
let t = X(e);
|
|
513
513
|
if (!t) {
|
|
514
514
|
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);
|
|
515
515
|
return;
|
|
@@ -520,10 +520,10 @@ function st(e, t = {}) {
|
|
|
520
520
|
function g() {
|
|
521
521
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
522
522
|
}
|
|
523
|
-
return ot(e, g),
|
|
523
|
+
return ot(e, g), H(() => X(e), (e) => !e && g()), nt(e, g, { attributeFilter: ["style", "class"] }), i && Z("scroll", g, {
|
|
524
524
|
capture: !0,
|
|
525
525
|
passive: !0
|
|
526
|
-
}), r &&
|
|
526
|
+
}), r && Z("resize", g, { passive: !0 }), Je(() => {
|
|
527
527
|
a && g();
|
|
528
528
|
}), {
|
|
529
529
|
height: s,
|
|
@@ -538,11 +538,11 @@ function st(e, t = {}) {
|
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
540
|
function ct(e, t = {}) {
|
|
541
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
541
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Ze } = t, s = I(!1), c, l = (e) => {
|
|
542
542
|
let t = e ? n : i;
|
|
543
543
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
544
544
|
};
|
|
545
|
-
return o ? (
|
|
545
|
+
return o ? (Z(e, "mouseenter", () => l(!0), { passive: !0 }), Z(e, "mouseleave", () => l(!1), { passive: !0 }), a && rt(r(() => X(e)), () => l(!1)), s) : s;
|
|
546
546
|
}
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region src/components/base/PvSearchInput/PvSearchInput.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -550,7 +550,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
550
550
|
key: 0,
|
|
551
551
|
"data-testid": "pv-search-input-shortcut",
|
|
552
552
|
class: "pv-kbd"
|
|
553
|
-
}, ft = "/", pt = /* @__PURE__ */
|
|
553
|
+
}, ft = "/", pt = /* @__PURE__ */ Te(/* @__PURE__ */ d({
|
|
554
554
|
__name: "PvSearchInput",
|
|
555
555
|
props: /* @__PURE__ */ _({
|
|
556
556
|
disabled: {
|
|
@@ -586,7 +586,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
586
586
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
587
587
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
588
588
|
});
|
|
589
|
-
}), t({ input: i }), (t, n) => (O(), o("div", lt, [
|
|
589
|
+
}), t({ input: i }), (t, n) => (O(), o("div", lt, [U(s("input", {
|
|
590
590
|
ref: "search-input",
|
|
591
591
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
592
592
|
"data-testid": "pv-search-input",
|
|
@@ -594,7 +594,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
594
594
|
disabled: e.disabled,
|
|
595
595
|
class: b(l.value),
|
|
596
596
|
placeholder: e.placeholder
|
|
597
|
-
}, null, 10, ut), [[
|
|
597
|
+
}, null, 10, ut), [[ae, c.value]]), e.displayShortcut ? (O(), o("kbd", dt, L(ft))) : a("v-if", !0)]));
|
|
598
598
|
}
|
|
599
599
|
}), [["styles", [".pv-input-search[data-v-9e0c84d9]{display:block}"]], ["__scopeId", "data-v-9e0c84d9"]]), mt = Math.min, ht = Math.max, gt = Math.round, _t = (e) => ({
|
|
600
600
|
x: e,
|
|
@@ -1381,7 +1381,7 @@ function ur(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
|
|
|
1381
1381
|
return a ? cr(a, t, r) : or(e, t, r);
|
|
1382
1382
|
}
|
|
1383
1383
|
function dr(e, t = {}) {
|
|
1384
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1384
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ye(), l = i ?? B(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
|
|
1385
1385
|
w(() => {
|
|
1386
1386
|
f.value = d();
|
|
1387
1387
|
});
|
|
@@ -1417,7 +1417,7 @@ function dr(e, t = {}) {
|
|
|
1417
1417
|
characterData: !0
|
|
1418
1418
|
}));
|
|
1419
1419
|
};
|
|
1420
|
-
return T(v), C(g),
|
|
1420
|
+
return T(v), C(g), H(() => z(n), () => {
|
|
1421
1421
|
c.value && v();
|
|
1422
1422
|
}), {
|
|
1423
1423
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1520,7 +1520,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1520
1520
|
root: _,
|
|
1521
1521
|
floating: x,
|
|
1522
1522
|
hoverArea: r(() => t.hoverTarget ? C.value : null),
|
|
1523
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1523
|
+
close: () => t.disableClickOutsideToClose ? !1 : (le(), !0)
|
|
1524
1524
|
}), P = {
|
|
1525
1525
|
"top-center": "top",
|
|
1526
1526
|
"bottom-center": "bottom",
|
|
@@ -1595,16 +1595,16 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1595
1595
|
middleware: e
|
|
1596
1596
|
});
|
|
1597
1597
|
ne = n.update, B = () => n.floatingStyles.value;
|
|
1598
|
-
let i = st(b), a = /* @__PURE__ */
|
|
1598
|
+
let i = st(b), a = /* @__PURE__ */ Ke(() => {
|
|
1599
1599
|
c.value && ne();
|
|
1600
1600
|
}, 5);
|
|
1601
|
-
|
|
1601
|
+
H([
|
|
1602
1602
|
i.top,
|
|
1603
1603
|
i.left,
|
|
1604
1604
|
i.width,
|
|
1605
1605
|
i.height
|
|
1606
1606
|
], a), $e(_, () => {
|
|
1607
|
-
t.disableClickOutsideToClose ||
|
|
1607
|
+
t.disableClickOutsideToClose || W(!1);
|
|
1608
1608
|
}, { ignore: r(() => [
|
|
1609
1609
|
x.value,
|
|
1610
1610
|
".p-datepicker-panel",
|
|
@@ -1614,21 +1614,21 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1614
1614
|
let ie = r(() => ({
|
|
1615
1615
|
...B(),
|
|
1616
1616
|
zIndex: t.zIndex
|
|
1617
|
-
})),
|
|
1617
|
+
})), V, ae, se = () => {
|
|
1618
|
+
V && clearTimeout(V), V = void 0;
|
|
1619
|
+
}, ce = () => {
|
|
1618
1620
|
ae && clearTimeout(ae), ae = void 0;
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
ce(), H(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ae = setTimeout(() => {
|
|
1623
|
-
c.value = !0, ae = void 0;
|
|
1621
|
+
}, W = (e) => {
|
|
1622
|
+
se(), ce(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? V = setTimeout(() => {
|
|
1623
|
+
c.value = !0, V = void 0;
|
|
1624
1624
|
}, t.delay) : c.value = e);
|
|
1625
|
+
}, le = () => {
|
|
1626
|
+
se(), ce(), c.value = !1;
|
|
1625
1627
|
}, ue = () => {
|
|
1626
|
-
ce(), H(), c.value = !1;
|
|
1627
|
-
}, de = () => {
|
|
1628
1628
|
let e = x.value;
|
|
1629
1629
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1630
|
-
},
|
|
1631
|
-
|
|
1630
|
+
}, de = r(() => !!c.value && (E.value || k.value)), fe = r(() => !t.showOnHover || A.value ? !1 : t.disableInteractive ? w.value || D.value : w.value || D.value || de.value);
|
|
1631
|
+
H([
|
|
1632
1632
|
w,
|
|
1633
1633
|
D,
|
|
1634
1634
|
k
|
|
@@ -1644,67 +1644,67 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1644
1644
|
}, he = () => {
|
|
1645
1645
|
if (t.showOnHover) {
|
|
1646
1646
|
if (t.disableClickOutsideToClose) return;
|
|
1647
|
-
if (!c.value && !
|
|
1648
|
-
A.value = !1,
|
|
1647
|
+
if (!c.value && !V && t.enableClickToggle) {
|
|
1648
|
+
A.value = !1, W(!0);
|
|
1649
1649
|
return;
|
|
1650
1650
|
}
|
|
1651
|
-
A.value = !0,
|
|
1651
|
+
A.value = !0, le();
|
|
1652
1652
|
return;
|
|
1653
1653
|
}
|
|
1654
|
-
|
|
1654
|
+
W(V ? !1 : !c.value);
|
|
1655
1655
|
}, ge = (e) => {
|
|
1656
1656
|
let t = e.newState === "open";
|
|
1657
1657
|
c.value !== t && (c.value = t);
|
|
1658
|
-
},
|
|
1659
|
-
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1660
|
-
},
|
|
1661
|
-
if (!
|
|
1662
|
-
let [t] =
|
|
1658
|
+
}, _e = (e) => {
|
|
1659
|
+
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), W(!1));
|
|
1660
|
+
}, K = (e) => e ? Array.from(e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [], ve = r(() => t.useTeleport && !h && t.showOnHover && !t.disabled), ye = (e) => {
|
|
1661
|
+
if (!ve.value || e.key !== "Tab" || e.shiftKey || !c.value) return;
|
|
1662
|
+
let [t] = K(x.value);
|
|
1663
1663
|
t && (e.preventDefault(), k.value = !0, t.focus());
|
|
1664
|
-
},
|
|
1665
|
-
if (!
|
|
1666
|
-
let [t] =
|
|
1664
|
+
}, be = (e) => {
|
|
1665
|
+
if (!ve.value) return;
|
|
1666
|
+
let [t] = K(v.value);
|
|
1667
1667
|
if (e.key === "Escape") {
|
|
1668
|
-
e.preventDefault(), e.stopPropagation(), A.value = !0,
|
|
1668
|
+
e.preventDefault(), e.stopPropagation(), A.value = !0, le(), t?.focus();
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
1671
|
if (e.key !== "Tab") return;
|
|
1672
|
-
let n =
|
|
1673
|
-
e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (A.value = !0,
|
|
1672
|
+
let n = K(x.value);
|
|
1673
|
+
e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (A.value = !0, le(), t?.focus());
|
|
1674
1674
|
};
|
|
1675
|
-
return
|
|
1675
|
+
return H(c, async (e) => {
|
|
1676
1676
|
if (t.showOnHover && t.enableGroupSync && M(!!e), !h) {
|
|
1677
1677
|
e && ne();
|
|
1678
1678
|
return;
|
|
1679
1679
|
}
|
|
1680
|
-
await y(),
|
|
1681
|
-
}),
|
|
1680
|
+
await y(), ue();
|
|
1681
|
+
}), H(fe, (e) => {
|
|
1682
1682
|
if (t.showOnHover) {
|
|
1683
1683
|
if (e) {
|
|
1684
|
-
|
|
1684
|
+
W(!0);
|
|
1685
1685
|
return;
|
|
1686
1686
|
}
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
}, t.closeDelay)) :
|
|
1687
|
+
se(), t.closeDelay > 0 ? (ce(), ae = setTimeout(() => {
|
|
1688
|
+
ae = void 0, fe.value || W(!1);
|
|
1689
|
+
}, t.closeDelay)) : W(!1);
|
|
1690
1690
|
}
|
|
1691
|
-
}),
|
|
1692
|
-
e ? h && c.value && y(
|
|
1691
|
+
}), H(m, (e) => {
|
|
1692
|
+
e ? h && c.value && y(ue) : le();
|
|
1693
1693
|
}), T(() => {
|
|
1694
|
-
b.value = v.value, g.value = !0, c.value && y(() => h ?
|
|
1694
|
+
b.value = v.value, g.value = !0, c.value && y(() => h ? ue() : ne());
|
|
1695
1695
|
}), ee(() => {
|
|
1696
|
-
|
|
1697
|
-
}),
|
|
1696
|
+
se(), ce();
|
|
1697
|
+
}), H(() => t.disabled, (e) => {
|
|
1698
1698
|
if (!e) {
|
|
1699
|
-
|
|
1699
|
+
fe.value && W(!0);
|
|
1700
1700
|
return;
|
|
1701
1701
|
}
|
|
1702
|
-
D.value &&= !1, k.value &&= !1,
|
|
1702
|
+
D.value &&= !1, k.value &&= !1, W(!1);
|
|
1703
1703
|
}), (r, l) => (O(), o("div", {
|
|
1704
1704
|
ref_key: "root",
|
|
1705
1705
|
ref: _,
|
|
1706
1706
|
style: S(L.value),
|
|
1707
|
-
onKeydown:
|
|
1707
|
+
onKeydown: _e
|
|
1708
1708
|
}, [s("div", {
|
|
1709
1709
|
ref_key: "triggerWrapper",
|
|
1710
1710
|
ref: v,
|
|
@@ -1712,7 +1712,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1712
1712
|
onClick: he,
|
|
1713
1713
|
onFocusin: G,
|
|
1714
1714
|
onFocusout: l[0] ||= (e) => D.value = !1,
|
|
1715
|
-
onKeydown:
|
|
1715
|
+
onKeydown: ye
|
|
1716
1716
|
}, [N(r.$slots, "trigger")], 36), g.value && z(h) && m.value ? (O(), o("div", {
|
|
1717
1717
|
key: 0,
|
|
1718
1718
|
ref_key: "floating",
|
|
@@ -1727,15 +1727,15 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1727
1727
|
key: 1,
|
|
1728
1728
|
to: e.teleportLocation,
|
|
1729
1729
|
disabled: !t.useTeleport || e.disabled
|
|
1730
|
-
}, [
|
|
1730
|
+
}, [U(s("div", {
|
|
1731
1731
|
ref_key: "floating",
|
|
1732
1732
|
ref: x,
|
|
1733
1733
|
class: "pv-floating",
|
|
1734
1734
|
style: S(ie.value),
|
|
1735
1735
|
onFocusin: pe,
|
|
1736
1736
|
onFocusout: me,
|
|
1737
|
-
onKeydown:
|
|
1738
|
-
}, [N(r.$slots, "content")], 36), [[
|
|
1737
|
+
onKeydown: be
|
|
1738
|
+
}, [N(r.$slots, "content")], 36), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1739
1739
|
}
|
|
1740
1740
|
}), vr = ["data-variant"], yr = /* @__PURE__ */ d({
|
|
1741
1741
|
__name: "PvTooltipV2",
|
|
@@ -1784,11 +1784,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1784
1784
|
setup(e) {
|
|
1785
1785
|
let t = e, n = p(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = dr("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
1786
1786
|
return (t, n) => (O(), i(_r, x(h(t.$props)), c({
|
|
1787
|
-
trigger:
|
|
1787
|
+
trigger: ce(() => [N(t.$slots, "trigger", {}, () => [s("p", null, L(e.label), 1)])]),
|
|
1788
1788
|
_: 2
|
|
1789
1789
|
}, [f.value ? {
|
|
1790
1790
|
name: "content",
|
|
1791
|
-
fn:
|
|
1791
|
+
fn: ce(() => [s("div", {
|
|
1792
1792
|
class: b(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1793
1793
|
role: "tooltip",
|
|
1794
1794
|
"data-variant": e.variant
|
|
@@ -1822,7 +1822,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1822
1822
|
position: "bottom-right",
|
|
1823
1823
|
style: { width: "100%" }
|
|
1824
1824
|
}, c({
|
|
1825
|
-
trigger:
|
|
1825
|
+
trigger: ce(() => [u(q, {
|
|
1826
1826
|
class: b(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1827
1827
|
variant: "ghost",
|
|
1828
1828
|
label: e.label,
|
|
@@ -1845,7 +1845,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1845
1845
|
_: 2
|
|
1846
1846
|
}, [e.disabledReason ? {
|
|
1847
1847
|
name: "content",
|
|
1848
|
-
fn:
|
|
1848
|
+
fn: ce(() => [l(L(e.disabledReason), 1)]),
|
|
1849
1849
|
key: "0"
|
|
1850
1850
|
} : void 0]), 1024))), 128))], 2));
|
|
1851
1851
|
}
|
|
@@ -1892,7 +1892,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1892
1892
|
"data-wrap": e.wrap ? "true" : void 0,
|
|
1893
1893
|
disabled: e.disabled,
|
|
1894
1894
|
title: e.label
|
|
1895
|
-
}, [e.icon ? (O(), i(
|
|
1895
|
+
}, [e.icon ? (O(), i(Se, {
|
|
1896
1896
|
key: 0,
|
|
1897
1897
|
"data-testid": "pv-suggestion-tag-icon",
|
|
1898
1898
|
name: e.icon,
|
|
@@ -1917,7 +1917,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1917
1917
|
emits: ["update:modelValue"],
|
|
1918
1918
|
setup(e) {
|
|
1919
1919
|
let t = re(e, "modelValue");
|
|
1920
|
-
return (n, r) =>
|
|
1920
|
+
return (n, r) => U((O(), o("input", {
|
|
1921
1921
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
1922
1922
|
class: "pv-checkbox",
|
|
1923
1923
|
type: "checkbox",
|
|
@@ -1925,7 +1925,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1925
1925
|
"aria-label": e.ariaLabel,
|
|
1926
1926
|
disabled: e.disabled,
|
|
1927
1927
|
indeterminate: e.indeterminate
|
|
1928
|
-
}, null, 8, Cr)), [[
|
|
1928
|
+
}, null, 8, Cr)), [[V, t.value]]);
|
|
1929
1929
|
}
|
|
1930
1930
|
}), Tr = {
|
|
1931
1931
|
key: 0,
|
|
@@ -2096,19 +2096,19 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2096
2096
|
})), M = (e) => A.value.format(e), N = (e) => M(e), P = (e) => {
|
|
2097
2097
|
let n = M(e);
|
|
2098
2098
|
return t.dataType === "currency" ? `$${n}` : t.dataType === "percent" ? `${n}%` : n;
|
|
2099
|
-
}, F = r(() => t.scale === "log"), I = r(() => E(t.step)), R = r(() => E(t.sliderStep)), B = r(() => I.value !== null && I.value > 0 ? I.value : 0), ie = r(() => R.value !== null && R.value > 0 ? Math.max(R.value, B.value) : B.value),
|
|
2099
|
+
}, F = r(() => t.scale === "log"), I = r(() => E(t.step)), R = r(() => E(t.sliderStep)), B = r(() => I.value !== null && I.value > 0 ? I.value : 0), ie = r(() => R.value !== null && R.value > 0 ? Math.max(R.value, B.value) : B.value), V = r(() => B.value > 0 ? String(B.value) : "any"), ae = r(() => F.value ? "1" : ie.value > 0 ? String(ie.value) : "any"), oe = r(() => I.value === null ? 1 : I.value > 0 ? I.value : 0), se = r(() => R.value !== null && R.value > 0 ? Math.max(R.value, oe.value) : oe.value), ce = r(() => F.value ? "1" : se.value > 0 ? String(se.value) : "any"), U = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), le = (e) => e.min > 0 ? 0 : 1 - e.min, ue = (e, t) => {
|
|
2100
2100
|
if (t.max === t.min) return 0;
|
|
2101
2101
|
if (!F.value) return (e - t.min) / (t.max - t.min);
|
|
2102
|
-
let n =
|
|
2102
|
+
let n = le(t), r = Math.log(t.min + n), i = Math.log(t.max + n);
|
|
2103
2103
|
if (i === r) return 0;
|
|
2104
2104
|
let a = Math.max(t.min, Math.min(t.max, e));
|
|
2105
2105
|
return (Math.log(a + n) - r) / (i - r);
|
|
2106
|
-
},
|
|
2106
|
+
}, de = (e, t) => {
|
|
2107
2107
|
let n = Math.max(0, Math.min(1, e));
|
|
2108
2108
|
if (!F.value) return t.min + n * (t.max - t.min);
|
|
2109
|
-
let r =
|
|
2109
|
+
let r = le(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
2110
2110
|
return Math.exp(i + n * (a - i)) - r;
|
|
2111
|
-
},
|
|
2111
|
+
}, fe = (e, t) => Math.max(0, Math.min(100, ue(e, t) * 100)), G = r(() => {
|
|
2112
2112
|
let e = E(t.min) ?? Ir, n = E(t.max) ?? Lr;
|
|
2113
2113
|
return e > n ? {
|
|
2114
2114
|
max: e,
|
|
@@ -2120,10 +2120,10 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2120
2120
|
max: n,
|
|
2121
2121
|
min: e
|
|
2122
2122
|
};
|
|
2123
|
-
}), pe = r(() => E(n.value) ?? G.value.min), me = r(() =>
|
|
2124
|
-
"--range-track-color":
|
|
2123
|
+
}), pe = r(() => E(n.value) ?? G.value.min), me = r(() => fe(pe.value, G.value)), he = r(() => ({
|
|
2124
|
+
"--range-track-color": U.value,
|
|
2125
2125
|
"--value": `${me.value}%`
|
|
2126
|
-
})), ge = r(() => ({ left: `${me.value}%` })),
|
|
2126
|
+
})), ge = r(() => ({ left: `${me.value}%` })), _e = (e) => {
|
|
2127
2127
|
if (!Number.isFinite(e)) return 0;
|
|
2128
2128
|
let t = String(e).toLowerCase();
|
|
2129
2129
|
if (t.includes("e-")) {
|
|
@@ -2131,67 +2131,67 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2131
2131
|
return (e?.split(".")[1]?.length ?? 0) + Number(n);
|
|
2132
2132
|
}
|
|
2133
2133
|
return t.split(".")[1]?.length ?? 0;
|
|
2134
|
-
},
|
|
2134
|
+
}, K = r(() => {
|
|
2135
2135
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Ir, r ?? Ir, i ?? Ir), o = n ?? Math.max(Lr, r ?? Lr, i ?? Lr);
|
|
2136
2136
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (B.value > 0 ? B.value : 1)), {
|
|
2137
2137
|
max: o,
|
|
2138
2138
|
min: a
|
|
2139
2139
|
};
|
|
2140
|
-
}),
|
|
2141
|
-
let e = Math.max(K
|
|
2142
|
-
return B.value <= 0 ? Math.max(6, e) : Math.max(e,
|
|
2143
|
-
}),
|
|
2144
|
-
let t = Math.min(20,
|
|
2145
|
-
return
|
|
2146
|
-
},
|
|
2140
|
+
}), ve = (e) => Math.max(K.value.min, Math.min(K.value.max, e)), ye = r(() => {
|
|
2141
|
+
let e = Math.max(_e(K.value.min), _e(K.value.max));
|
|
2142
|
+
return B.value <= 0 ? Math.max(6, e) : Math.max(e, _e(B.value));
|
|
2143
|
+
}), be = (e) => {
|
|
2144
|
+
let t = Math.min(20, ye.value);
|
|
2145
|
+
return ve(Number(e.toFixed(t)));
|
|
2146
|
+
}, xe = (e, t) => {
|
|
2147
2147
|
let n = 10 ** -Math.min(k(), 1), r = Math.abs(e), i = r < 1 ? 0 : 10 ** Math.floor(Math.log10(r)) / 100;
|
|
2148
2148
|
return Math.max(i, n, t);
|
|
2149
|
-
},
|
|
2149
|
+
}, Ce = (e, t) => F.value ? xe(e, t) : t, we = r(() => {
|
|
2150
2150
|
if (t.allowMinMaxEqual) return 0;
|
|
2151
|
-
let e =
|
|
2151
|
+
let e = K.value.max - K.value.min;
|
|
2152
2152
|
if (e <= 0) return 0;
|
|
2153
|
-
let n = Math.max(e / 1e6, 10 ** -
|
|
2153
|
+
let n = Math.max(e / 1e6, 10 ** -ye.value), r = B.value > 0 ? B.value : n;
|
|
2154
2154
|
return Math.min(r, e);
|
|
2155
|
-
}),
|
|
2156
|
-
let r =
|
|
2157
|
-
if (t <= 0) return
|
|
2158
|
-
let i = F.value ? 0 :
|
|
2159
|
-
return
|
|
2160
|
-
},
|
|
2161
|
-
let r = Math.max(
|
|
2162
|
-
return n ?
|
|
2155
|
+
}), Te = (e, t, n = "nearest") => {
|
|
2156
|
+
let r = ve(e);
|
|
2157
|
+
if (t <= 0) return be(r);
|
|
2158
|
+
let i = F.value ? 0 : K.value.min, a = (r - i) / t;
|
|
2159
|
+
return be((n === "down" ? Math.floor(a) : n === "up" ? Math.ceil(a) : Math.round(a)) * t + i);
|
|
2160
|
+
}, Ee = (e, t = "nearest") => Te(e, Ce(e, B.value), t), De = (e, t = "nearest") => Ee(Te(e, Ce(e, ie.value), t), t), Oe = (e) => Te(e, B.value), J = (e, t, n = !0) => {
|
|
2161
|
+
let r = Math.max(K.value.min, t - we.value), i = Math.min(e, r);
|
|
2162
|
+
return n ? Ee(i, "down") : be(i);
|
|
2163
2163
|
}, ke = (e, t, n = !0) => {
|
|
2164
|
-
let r = Math.min(
|
|
2165
|
-
return n ?
|
|
2164
|
+
let r = Math.min(K.value.max, t + we.value), i = Math.max(e, r);
|
|
2165
|
+
return n ? Ee(i, "up") : be(i);
|
|
2166
2166
|
}, Y = r(() => {
|
|
2167
|
-
let e = E(c.value?.min) ??
|
|
2167
|
+
let e = E(c.value?.min) ?? K.value.min, t = E(c.value?.max) ?? K.value.max, n = ve(e), r = ve(t);
|
|
2168
2168
|
return {
|
|
2169
2169
|
max: Math.max(n, r),
|
|
2170
2170
|
min: Math.min(n, r)
|
|
2171
2171
|
};
|
|
2172
|
-
}), Ae = r(() =>
|
|
2173
|
-
"--range-track-color":
|
|
2172
|
+
}), Ae = r(() => fe(Y.value.min, K.value)), je = r(() => fe(Y.value.max, K.value)), Me = r(() => ({
|
|
2173
|
+
"--range-track-color": U.value,
|
|
2174
2174
|
"--value-max": `${je.value}%`,
|
|
2175
2175
|
"--value-min": `${Ae.value}%`
|
|
2176
|
-
})), Ne = r(() => ({ left: `${Ae.value}%` })), Pe = r(() => ({ left: `${je.value}%` })), Fe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Ie = (e, t) => F.value ? Math.round(
|
|
2176
|
+
})), Ne = r(() => ({ left: `${Ae.value}%` })), Pe = r(() => ({ left: `${je.value}%` })), Fe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Ie = (e, t) => F.value ? Math.round(ue(e, t) * Rr) : e, Le = (e, t) => F.value ? de(e / Rr, t) : e, Re = r(() => F.value ? 0 : K.value.min), ze = r(() => F.value ? Rr : K.value.max), Be = r(() => Ie(Y.value.min, K.value)), Ve = r(() => Ie(Y.value.max, K.value)), He = r(() => F.value ? 0 : G.value.min), Ue = r(() => F.value ? Rr : G.value.max), We = r(() => Ie(pe.value, G.value)), Ge = r(() => Math.max(N(K.value.min).length, N(K.value.max).length, 3)), Ke = r(() => {
|
|
2177
2177
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
2178
2178
|
return {
|
|
2179
2179
|
"--flex-align": "stretch",
|
|
2180
2180
|
"--flex-gap": "0",
|
|
2181
|
-
"--pv-range-input-width": `max(${zr}, calc(${
|
|
2181
|
+
"--pv-range-input-width": `max(${zr}, calc(${Ge.value}ch + ${e}))`
|
|
2182
2182
|
};
|
|
2183
|
-
}),
|
|
2183
|
+
}), qe = () => E(t.min) !== null || K.value.min === Ir, Je = () => E(t.max) !== null || K.value.max === Lr, Ye = (e, t) => {
|
|
2184
2184
|
c.value = {
|
|
2185
|
-
max: t >=
|
|
2186
|
-
min: e <=
|
|
2185
|
+
max: t >= K.value.max && Je() ? null : t,
|
|
2186
|
+
min: e <= K.value.min && qe() ? null : e
|
|
2187
2187
|
};
|
|
2188
|
-
}, Ye = (e, t = !0) => {
|
|
2189
|
-
Je(Oe(e, Y.value.max, t), Y.value.max);
|
|
2190
2188
|
}, Xe = (e, t = !0) => {
|
|
2191
|
-
|
|
2192
|
-
},
|
|
2193
|
-
|
|
2194
|
-
},
|
|
2189
|
+
Ye(J(e, Y.value.max, t), Y.value.max);
|
|
2190
|
+
}, Ze = (e, t = !0) => {
|
|
2191
|
+
Ye(Y.value.min, ke(e, Y.value.min, t));
|
|
2192
|
+
}, X = (e, t, n = !0) => {
|
|
2193
|
+
e === "min" ? Xe(t, n) : Ze(t, n);
|
|
2194
|
+
}, Z = () => {
|
|
2195
2195
|
h.value = null;
|
|
2196
2196
|
}, Qe = (e) => {
|
|
2197
2197
|
h.value = e;
|
|
@@ -2209,31 +2209,31 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2209
2209
|
if (t <= 0) return n;
|
|
2210
2210
|
let r = F.value ? 0 : G.value.min, i = (n - r) / t, a = Number((Math.round(i) * t + r).toFixed(20));
|
|
2211
2211
|
return Math.max(G.value.min, Math.min(G.value.max, a));
|
|
2212
|
-
}, rt = (e) => nt(e,
|
|
2212
|
+
}, rt = (e) => nt(e, Ce(e, oe.value)), it = (e) => rt(nt(e, Ce(e, se.value))), at = () => {
|
|
2213
2213
|
t.disabled || (_.value = !0, et(), window.addEventListener("pointerup", tt), w = () => window.removeEventListener("pointerup", tt));
|
|
2214
2214
|
}, ot = (e) => {
|
|
2215
2215
|
n.value = it(Le(Number(e.target.value), G.value));
|
|
2216
2216
|
}, st = (e) => {
|
|
2217
|
-
Qe("min"),
|
|
2217
|
+
Qe("min"), Xe(De(Le(Number(e.target.value), K.value)));
|
|
2218
2218
|
}, ct = (e) => {
|
|
2219
|
-
Qe("max"),
|
|
2219
|
+
Qe("max"), Ze(De(Le(Number(e.target.value), K.value)));
|
|
2220
2220
|
}, lt = (e, n) => {
|
|
2221
2221
|
if (!F.value || t.disabled) return;
|
|
2222
|
-
let r =
|
|
2222
|
+
let r = K.value, i = n === "min" ? Y.value.min : Y.value.max;
|
|
2223
2223
|
if (e.key === "Home" || e.key === "End") {
|
|
2224
|
-
e.preventDefault(), Qe(n),
|
|
2224
|
+
e.preventDefault(), Qe(n), X(n, e.key === "Home" ? r.min : r.max, !1);
|
|
2225
2225
|
return;
|
|
2226
2226
|
}
|
|
2227
2227
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
2228
2228
|
if (!a && !o) return;
|
|
2229
2229
|
e.preventDefault();
|
|
2230
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l =
|
|
2231
|
-
l === i && (l = i + s *
|
|
2230
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = De(de(ue(i, r) + s * Br * c, r), a ? "up" : "down");
|
|
2231
|
+
l === i && (l = i + s * Ce(i, ie.value)), Qe(n), X(n, l, !1);
|
|
2232
2232
|
}, ut = () => {
|
|
2233
2233
|
g.value !== "min" && (m.value = N(Y.value.min)), g.value !== "max" && (p.value = N(Y.value.max));
|
|
2234
2234
|
}, dt = (e) => {
|
|
2235
2235
|
let t = ee(e === "min" ? m.value : p.value);
|
|
2236
|
-
|
|
2236
|
+
X(e, t === null ? e === "min" ? K.value.min : K.value.max : Oe(t), !1);
|
|
2237
2237
|
}, ft = (e) => {
|
|
2238
2238
|
m.value = e.target.value, dt("min");
|
|
2239
2239
|
}, pt = (e) => {
|
|
@@ -2246,20 +2246,20 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2246
2246
|
e.preventDefault(), dt(t), e.target.blur();
|
|
2247
2247
|
}, _t = (e) => {
|
|
2248
2248
|
let t = y.value?.getBoundingClientRect();
|
|
2249
|
-
return !t || t.width <= 0 ? null :
|
|
2249
|
+
return !t || t.width <= 0 ? null : De(de(Math.max(0, Math.min(1, (e - t.left) / t.width)), K.value));
|
|
2250
2250
|
}, vt = (e) => {
|
|
2251
2251
|
let n = _t(e);
|
|
2252
2252
|
if (n === null) return;
|
|
2253
2253
|
if (t.alwaysEditMin) {
|
|
2254
|
-
Qe("min"),
|
|
2254
|
+
Qe("min"), Xe(n);
|
|
2255
2255
|
return;
|
|
2256
2256
|
}
|
|
2257
2257
|
let r = Math.abs(n - Y.value.min) <= Math.abs(n - Y.value.max) ? "min" : "max";
|
|
2258
|
-
Qe(r),
|
|
2258
|
+
Qe(r), X(r, n);
|
|
2259
2259
|
}, yt = () => {
|
|
2260
2260
|
x?.(), x = null;
|
|
2261
2261
|
}, bt = () => {
|
|
2262
|
-
|
|
2262
|
+
Z(), yt();
|
|
2263
2263
|
}, xt = (e) => {
|
|
2264
2264
|
if (t.disabled) return;
|
|
2265
2265
|
let n = e.target;
|
|
@@ -2270,7 +2270,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2270
2270
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", bt);
|
|
2271
2271
|
}, e.preventDefault();
|
|
2272
2272
|
};
|
|
2273
|
-
return
|
|
2273
|
+
return H([Y, K], ut, { immediate: !0 }), C(() => {
|
|
2274
2274
|
yt(), et();
|
|
2275
2275
|
}), (n, r) => e.mode === "single" ? (O(), o("div", Tr, [e.showValueTooltips && _.value ? (O(), o("span", {
|
|
2276
2276
|
key: 0,
|
|
@@ -2281,12 +2281,12 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2281
2281
|
"aria-valuetext": P(pe.value),
|
|
2282
2282
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
2283
2283
|
disabled: e.disabled,
|
|
2284
|
-
max:
|
|
2285
|
-
min:
|
|
2286
|
-
step:
|
|
2284
|
+
max: Ue.value,
|
|
2285
|
+
min: He.value,
|
|
2286
|
+
step: ce.value,
|
|
2287
2287
|
style: he.value,
|
|
2288
2288
|
type: "range",
|
|
2289
|
-
value:
|
|
2289
|
+
value: We.value,
|
|
2290
2290
|
onChange: tt,
|
|
2291
2291
|
onInput: ot,
|
|
2292
2292
|
onPointerdown: at,
|
|
@@ -2301,7 +2301,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2301
2301
|
"--flex-gap": "0"
|
|
2302
2302
|
}
|
|
2303
2303
|
}), [
|
|
2304
|
-
e.showBoundLabels ? (O(), o("div", Or, [s("span", null, L(P(
|
|
2304
|
+
e.showBoundLabels ? (O(), o("div", Or, [s("span", null, L(P(K.value.min)), 1), s("span", null, L(P(K.value.max)), 1)])) : a("v-if", !0),
|
|
2305
2305
|
s("div", {
|
|
2306
2306
|
ref_key: "sliderRef",
|
|
2307
2307
|
ref: y,
|
|
@@ -2326,16 +2326,16 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2326
2326
|
"aria-label": `${e.label} minimum`,
|
|
2327
2327
|
"aria-valuetext": P(Y.value.min),
|
|
2328
2328
|
disabled: e.disabled,
|
|
2329
|
-
max:
|
|
2330
|
-
min:
|
|
2331
|
-
step:
|
|
2332
|
-
value:
|
|
2333
|
-
onBlur:
|
|
2334
|
-
onChange:
|
|
2329
|
+
max: ze.value,
|
|
2330
|
+
min: Re.value,
|
|
2331
|
+
step: ae.value,
|
|
2332
|
+
value: Be.value,
|
|
2333
|
+
onBlur: Z,
|
|
2334
|
+
onChange: Z,
|
|
2335
2335
|
onInput: st,
|
|
2336
2336
|
onKeydown: r[0] ||= (e) => lt(e, "min"),
|
|
2337
2337
|
onPointerdown: r[1] ||= (e) => Qe("min"),
|
|
2338
|
-
onPointerup:
|
|
2338
|
+
onPointerup: Z
|
|
2339
2339
|
}, null, 40, kr),
|
|
2340
2340
|
s("input", {
|
|
2341
2341
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
@@ -2343,24 +2343,24 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2343
2343
|
"aria-label": `${e.label} maximum`,
|
|
2344
2344
|
"aria-valuetext": P(Y.value.max),
|
|
2345
2345
|
disabled: e.disabled,
|
|
2346
|
-
max:
|
|
2347
|
-
min:
|
|
2348
|
-
step:
|
|
2349
|
-
value:
|
|
2350
|
-
onBlur:
|
|
2351
|
-
onChange:
|
|
2346
|
+
max: ze.value,
|
|
2347
|
+
min: Re.value,
|
|
2348
|
+
step: ae.value,
|
|
2349
|
+
value: Ve.value,
|
|
2350
|
+
onBlur: Z,
|
|
2351
|
+
onChange: Z,
|
|
2352
2352
|
onInput: ct,
|
|
2353
2353
|
onKeydown: r[2] ||= (e) => lt(e, "max"),
|
|
2354
2354
|
onPointerdown: r[3] ||= (e) => Qe("max"),
|
|
2355
|
-
onPointerup:
|
|
2355
|
+
onPointerup: Z
|
|
2356
2356
|
}, null, 40, Ar)
|
|
2357
2357
|
], 38),
|
|
2358
2358
|
e.showInputs ? (O(), o("div", jr, [
|
|
2359
2359
|
s("label", {
|
|
2360
2360
|
class: "pv-flex-vertical pv-range-input-label",
|
|
2361
2361
|
for: f,
|
|
2362
|
-
style: S(
|
|
2363
|
-
}, [s("span", Mr, L(e.minLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (O(), i(
|
|
2362
|
+
style: S(Ke.value)
|
|
2363
|
+
}, [s("span", Mr, L(e.minLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (O(), i(Se, {
|
|
2364
2364
|
key: 0,
|
|
2365
2365
|
class: "pv-range-input-icon",
|
|
2366
2366
|
name: e.inputIcon
|
|
@@ -2370,19 +2370,19 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2370
2370
|
disabled: e.disabled,
|
|
2371
2371
|
inputmode: "decimal",
|
|
2372
2372
|
placeholder: "Min",
|
|
2373
|
-
step:
|
|
2373
|
+
step: V.value,
|
|
2374
2374
|
type: "text",
|
|
2375
2375
|
value: m.value,
|
|
2376
2376
|
onBlur: r[4] ||= (e) => ht("min"),
|
|
2377
2377
|
onFocus: r[5] ||= (e) => mt("min"),
|
|
2378
2378
|
onInput: ft,
|
|
2379
|
-
onKeydown: r[6] ||=
|
|
2379
|
+
onKeydown: r[6] ||= W((e) => gt(e, "min"), ["enter"])
|
|
2380
2380
|
}, null, 40, Nr)], 2)], 4),
|
|
2381
2381
|
s("label", {
|
|
2382
2382
|
class: "pv-flex-vertical pv-range-input-label",
|
|
2383
2383
|
for: d,
|
|
2384
|
-
style: S(
|
|
2385
|
-
}, [s("span", Pr, L(e.maxLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (O(), i(
|
|
2384
|
+
style: S(Ke.value)
|
|
2385
|
+
}, [s("span", Pr, L(e.maxLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (O(), i(Se, {
|
|
2386
2386
|
key: 0,
|
|
2387
2387
|
class: "pv-range-input-icon",
|
|
2388
2388
|
name: e.inputIcon
|
|
@@ -2392,15 +2392,15 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2392
2392
|
disabled: e.disabled,
|
|
2393
2393
|
inputmode: "decimal",
|
|
2394
2394
|
placeholder: "Max",
|
|
2395
|
-
step:
|
|
2395
|
+
step: V.value,
|
|
2396
2396
|
type: "text",
|
|
2397
2397
|
value: p.value,
|
|
2398
2398
|
onBlur: r[7] ||= (e) => ht("max"),
|
|
2399
2399
|
onFocus: r[8] ||= (e) => mt("max"),
|
|
2400
2400
|
onInput: pt,
|
|
2401
|
-
onKeydown: r[9] ||=
|
|
2401
|
+
onKeydown: r[9] ||= W((e) => gt(e, "max"), ["enter"])
|
|
2402
2402
|
}, null, 40, Fr)], 2)], 4),
|
|
2403
|
-
e.showClear && Fe.value ? (O(), i(
|
|
2403
|
+
e.showClear && Fe.value ? (O(), i(q, {
|
|
2404
2404
|
key: 0,
|
|
2405
2405
|
class: "pv-text-brand",
|
|
2406
2406
|
disabled: e.disabled,
|
|
@@ -2408,7 +2408,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2408
2408
|
variant: "ghost",
|
|
2409
2409
|
onClick: $e
|
|
2410
2410
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2411
|
-
])) : e.showClear && Fe.value ? (O(), i(
|
|
2411
|
+
])) : e.showClear && Fe.value ? (O(), i(q, {
|
|
2412
2412
|
key: 2,
|
|
2413
2413
|
class: "pv-text-brand",
|
|
2414
2414
|
disabled: e.disabled,
|
|
@@ -2435,7 +2435,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2435
2435
|
}, qr = {
|
|
2436
2436
|
key: 4,
|
|
2437
2437
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
2438
|
-
}, Jr = /* @__PURE__ */
|
|
2438
|
+
}, Jr = /* @__PURE__ */ Te(/* @__PURE__ */ d({
|
|
2439
2439
|
__name: "PvFilterPanelOptionRow",
|
|
2440
2440
|
props: {
|
|
2441
2441
|
ariaLabel: { type: String },
|
|
@@ -2557,13 +2557,13 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2557
2557
|
position: "top-right",
|
|
2558
2558
|
size: "sm"
|
|
2559
2559
|
}, {
|
|
2560
|
-
trigger:
|
|
2560
|
+
trigger: ce(() => [u(q, {
|
|
2561
2561
|
ariaLabel: p.value,
|
|
2562
2562
|
disabled: e.disabled || e.focusActionDisabled,
|
|
2563
2563
|
leftIcon: "focus",
|
|
2564
2564
|
size: "md",
|
|
2565
2565
|
variant: e.isFocused ? "primary" : "ghost",
|
|
2566
|
-
onClick:
|
|
2566
|
+
onClick: le(C, ["stop", "prevent"])
|
|
2567
2567
|
}, null, 8, [
|
|
2568
2568
|
"ariaLabel",
|
|
2569
2569
|
"disabled",
|
|
@@ -3073,7 +3073,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3073
3073
|
"--flex-gap": "0.5rem",
|
|
3074
3074
|
cursor: "pointer"
|
|
3075
3075
|
}
|
|
3076
|
-
}, Ea = { class: "pv-text-body-sm" }, Da = 5, Oa = 500, ka = /* @__PURE__ */
|
|
3076
|
+
}, Ea = { class: "pv-text-body-sm" }, Da = 5, Oa = 500, ka = /* @__PURE__ */ Te(/* @__PURE__ */ d({
|
|
3077
3077
|
__name: "PvFilterPanelAccordion",
|
|
3078
3078
|
props: {
|
|
3079
3079
|
disableWhileLoading: {
|
|
@@ -3106,7 +3106,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3106
3106
|
label: b.value,
|
|
3107
3107
|
value: !1
|
|
3108
3108
|
}];
|
|
3109
|
-
}),
|
|
3109
|
+
}), V = (e) => {
|
|
3110
3110
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
3111
3111
|
return [
|
|
3112
3112
|
e.value,
|
|
@@ -3116,62 +3116,62 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3116
3116
|
e.matchedValue,
|
|
3117
3117
|
e.matchedField
|
|
3118
3118
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
3119
|
-
},
|
|
3119
|
+
}, ae = r(() => E.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 : E.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : E.value === "exists" ? c.filter.existsValue ? 1 : void 0 : D.value ? na(k.value) || void 0 : N.value.length || void 0), oe = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), U = (e, t = 0) => e.flatMap((e) => [
|
|
3120
3120
|
{
|
|
3121
3121
|
depth: t,
|
|
3122
3122
|
kind: "option",
|
|
3123
3123
|
option: e
|
|
3124
3124
|
},
|
|
3125
|
-
...e.children?.length ?
|
|
3126
|
-
...
|
|
3125
|
+
...e.children?.length ? U(e.children, t + 1) : [],
|
|
3126
|
+
...oe(e) ? [{
|
|
3127
3127
|
depth: t + 1,
|
|
3128
3128
|
kind: "child-load-more",
|
|
3129
3129
|
parent: e
|
|
3130
3130
|
}] : []
|
|
3131
|
-
]),
|
|
3132
|
-
let e =
|
|
3133
|
-
return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" &&
|
|
3134
|
-
}),
|
|
3131
|
+
]), W = r(() => {
|
|
3132
|
+
let e = U(C.value), t = A.value;
|
|
3133
|
+
return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && V(e.option).includes(t));
|
|
3134
|
+
}), le = r(() => D.value || c.filter.singleSelect ? [] : N.value.map((e) => R(e) ?? {
|
|
3135
3135
|
label: e,
|
|
3136
3136
|
value: e
|
|
3137
|
-
})),
|
|
3137
|
+
})), ue = j([]), de = r(() => new Set(ue.value)), fe = r(() => ue.value.map((e) => R(e) ?? {
|
|
3138
3138
|
label: e,
|
|
3139
3139
|
value: e
|
|
3140
|
-
})), G = r(() => C.value.length > 0 ||
|
|
3141
|
-
|
|
3140
|
+
})), G = r(() => C.value.length > 0 || fe.value.length > 0), pe = r(() => ee.value && c.filter.isOpen && c.filter.isLoading === !0 && G.value), me = () => {
|
|
3141
|
+
ue.value = D.value || c.filter.singleSelect ? [] : [...N.value];
|
|
3142
3142
|
};
|
|
3143
3143
|
me();
|
|
3144
|
-
let he = r(() => D.value || c.filter.singleSelect ?
|
|
3144
|
+
let he = r(() => D.value || c.filter.singleSelect ? W.value : W.value.filter((e) => e.kind === "child-load-more" || !de.value.has(e.option.value))), _e = r(() => he.value.length > _.value), K = r(() => _e.value || c.filter.hasMore), ve = r(() => he.value.slice(0, _.value)), ye = r(() => D.value ? $i({
|
|
3145
3145
|
options: T.value,
|
|
3146
3146
|
state: k.value
|
|
3147
|
-
}) : /* @__PURE__ */ new Map()),
|
|
3147
|
+
}) : /* @__PURE__ */ new Map()), be = (e) => _i(e, c.filter.colDef), xe = (e) => Ci(e), Ce = (e) => D.value ? ye.value.get(e.value) ?? {
|
|
3148
3148
|
indeterminate: !1,
|
|
3149
3149
|
selected: !1
|
|
3150
3150
|
} : {
|
|
3151
3151
|
indeterminate: !1,
|
|
3152
3152
|
selected: F.value.has(e.value)
|
|
3153
|
-
},
|
|
3154
|
-
let t =
|
|
3153
|
+
}, we = (e) => Ce(e).selected, Te = (e) => Ce(e).indeterminate, De = (e) => ti(e) ?? e.value, Oe = (e) => ni(e, c.filter.key), J = (e) => {
|
|
3154
|
+
let t = Oe(e), n = De(e);
|
|
3155
3155
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
3156
3156
|
}, ke = (e) => {
|
|
3157
3157
|
let t = c.filter.focusableFields ?? [];
|
|
3158
|
-
return !t.length || t.includes(
|
|
3159
|
-
}, Y = (e) => !ke(e) ||
|
|
3160
|
-
let t =
|
|
3161
|
-
return ke(e) ?
|
|
3158
|
+
return !t.length || t.includes(Oe(e));
|
|
3159
|
+
}, Y = (e) => !ke(e) || J(e) && c.filter.canRemoveFocus === !1, Ae = (e) => {
|
|
3160
|
+
let t = Oe(e);
|
|
3161
|
+
return ke(e) ? J(e) && c.filter.canRemoveFocus === !1 ? `${w.value} (required)` : J(e) ? `Remove ${w.value}` : `Select as ${w.value}` : `Group by ${c.filter.focusFieldLabels?.[t] ?? t} to enable ${w.value}`;
|
|
3162
3162
|
}, je = (e) => ({
|
|
3163
3163
|
...e.menuOption ?? {},
|
|
3164
3164
|
children: e.children?.map(je),
|
|
3165
3165
|
context: e,
|
|
3166
3166
|
disabled: B.value || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
3167
3167
|
id: e.value,
|
|
3168
|
-
searchText:
|
|
3169
|
-
secondaryText:
|
|
3168
|
+
searchText: V(e),
|
|
3169
|
+
secondaryText: xe(e),
|
|
3170
3170
|
subText: e.subText,
|
|
3171
3171
|
subduedText: e.subduedText,
|
|
3172
|
-
text:
|
|
3172
|
+
text: be(e),
|
|
3173
3173
|
totalChildCount: e.totalChildCount
|
|
3174
|
-
}), Me = r(() => C.value.map(je)), Ne = r(() =>
|
|
3174
|
+
}), Me = r(() => C.value.map(je)), Ne = r(() => le.value.map(je)), Pe = r(() => ({
|
|
3175
3175
|
colDef: c.filter.colDef,
|
|
3176
3176
|
disabled: B.value,
|
|
3177
3177
|
filter: c.filter,
|
|
@@ -3185,28 +3185,28 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3185
3185
|
rowsLoading: c.filter.isLoading
|
|
3186
3186
|
}
|
|
3187
3187
|
})), Fe = () => {
|
|
3188
|
-
B.value || (
|
|
3188
|
+
B.value || (_e.value ? _.value += Da : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
3189
3189
|
}, Ie = (e) => {
|
|
3190
3190
|
B.value || d("load-more", g.value.trim(), e.value);
|
|
3191
3191
|
}, Le = (e) => {
|
|
3192
3192
|
let t = e.target;
|
|
3193
3193
|
d("open-change", t.open);
|
|
3194
|
-
},
|
|
3194
|
+
}, Re = (e) => {
|
|
3195
3195
|
B.value || d("filter-change", {
|
|
3196
3196
|
type: "boolean",
|
|
3197
3197
|
value: e
|
|
3198
3198
|
});
|
|
3199
|
-
},
|
|
3199
|
+
}, ze = (e) => {
|
|
3200
3200
|
B.value || d("filter-change", {
|
|
3201
3201
|
type: "exists",
|
|
3202
3202
|
value: e === !0
|
|
3203
3203
|
});
|
|
3204
|
-
},
|
|
3204
|
+
}, Be = (e) => {
|
|
3205
3205
|
B.value || d("filter-change", {
|
|
3206
3206
|
type: "range",
|
|
3207
3207
|
value: e
|
|
3208
3208
|
});
|
|
3209
|
-
},
|
|
3209
|
+
}, Ve = (e, t) => {
|
|
3210
3210
|
if (!B.value) {
|
|
3211
3211
|
if (D.value) {
|
|
3212
3212
|
d("filter-change", {
|
|
@@ -3222,47 +3222,47 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
d("filter-change", {
|
|
3224
3224
|
checked: t,
|
|
3225
|
-
field:
|
|
3225
|
+
field: Oe(e),
|
|
3226
3226
|
type: "value",
|
|
3227
|
-
value:
|
|
3227
|
+
value: De(e)
|
|
3228
3228
|
});
|
|
3229
3229
|
}
|
|
3230
|
-
},
|
|
3231
|
-
B.value || Y(e) || d("focus-change",
|
|
3232
|
-
},
|
|
3230
|
+
}, He = (e) => {
|
|
3231
|
+
B.value || Y(e) || d("focus-change", Oe(e), De(e), e);
|
|
3232
|
+
}, Ue = (e, t) => {
|
|
3233
3233
|
B.value || d("filter-change", {
|
|
3234
3234
|
field: e,
|
|
3235
3235
|
type: "boolean",
|
|
3236
3236
|
value: t ? null : !0
|
|
3237
3237
|
});
|
|
3238
|
-
},
|
|
3238
|
+
}, We = () => {
|
|
3239
3239
|
B.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
3240
3240
|
};
|
|
3241
|
-
|
|
3241
|
+
H([g, () => c.filter.key], () => {
|
|
3242
3242
|
_.value = Da;
|
|
3243
3243
|
});
|
|
3244
|
-
let
|
|
3244
|
+
let Ge = () => {
|
|
3245
3245
|
let e = ri(T.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
3246
3246
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
3247
3247
|
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Oa)));
|
|
3248
3248
|
};
|
|
3249
|
-
|
|
3250
|
-
c.filter.isOpen &&
|
|
3249
|
+
H(T, () => {
|
|
3250
|
+
c.filter.isOpen && Ge();
|
|
3251
3251
|
}, { immediate: !0 });
|
|
3252
|
-
let
|
|
3252
|
+
let Ke = () => {
|
|
3253
3253
|
!c.filter.isOpen || !f.value || (m.value = Math.max(m.value, f.value.offsetHeight));
|
|
3254
3254
|
};
|
|
3255
|
-
return
|
|
3256
|
-
e ?
|
|
3257
|
-
}),
|
|
3258
|
-
c.filter.isLoading &&
|
|
3259
|
-
}),
|
|
3260
|
-
e ? (
|
|
3261
|
-
}),
|
|
3255
|
+
return H(() => c.filter.isLoading === !0, (e) => {
|
|
3256
|
+
e ? Ke() : m.value = 0;
|
|
3257
|
+
}), H(C, () => {
|
|
3258
|
+
c.filter.isLoading && Ke();
|
|
3259
|
+
}), H(() => c.filter.isOpen, (e) => {
|
|
3260
|
+
e ? (Ge(), me()) : (p.value = {}, m.value = 0);
|
|
3261
|
+
}), se(() => {
|
|
3262
3262
|
if (!c.filter.isOpen || D.value || c.filter.singleSelect) return;
|
|
3263
|
-
let e = new Set(
|
|
3264
|
-
t.length && (
|
|
3265
|
-
}),
|
|
3263
|
+
let e = new Set(ve.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = N.value.filter((t) => !de.value.has(t) && !e.has(t));
|
|
3264
|
+
t.length && (ue.value = [...ue.value, ...t]);
|
|
3265
|
+
}), Ye(g, (e) => {
|
|
3266
3266
|
if (!ee.value || c.filter.disabled === !0) return;
|
|
3267
3267
|
let t = e.trim();
|
|
3268
3268
|
t !== (c.filter.searchQuery ?? "").trim() && d("search-change", t);
|
|
@@ -3275,15 +3275,15 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3275
3275
|
open: e.filter.isOpen,
|
|
3276
3276
|
onToggle: Le
|
|
3277
3277
|
}, [s("summary", ia, [
|
|
3278
|
-
u(
|
|
3278
|
+
u(Se, {
|
|
3279
3279
|
"aria-hidden": "true",
|
|
3280
3280
|
class: "pv-text-subdued",
|
|
3281
3281
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
3282
3282
|
}, null, 8, ["name"]),
|
|
3283
3283
|
s("span", null, L(e.filter.label), 1),
|
|
3284
|
-
|
|
3284
|
+
ae.value ? (O(), i(Ee, {
|
|
3285
3285
|
key: 0,
|
|
3286
|
-
value:
|
|
3286
|
+
value: ae.value,
|
|
3287
3287
|
size: "sm",
|
|
3288
3288
|
variant: "secondary"
|
|
3289
3289
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
@@ -3308,26 +3308,26 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3308
3308
|
},
|
|
3309
3309
|
role: "group",
|
|
3310
3310
|
"aria-label": e.filter.filterGroupLabel
|
|
3311
|
-
}, [e.filter.filterGroupLabel ? (O(), o("p", ua, L(e.filter.filterGroupLabel), 1)) : a("v-if", !0), s("div", da, [(O(!0), o(t, null, M(e.filter.filterGroupOptions, (e) => (O(), i(
|
|
3311
|
+
}, [e.filter.filterGroupLabel ? (O(), o("p", ua, L(e.filter.filterGroupLabel), 1)) : a("v-if", !0), s("div", da, [(O(!0), o(t, null, M(e.filter.filterGroupOptions, (e) => (O(), i(q, {
|
|
3312
3312
|
key: e.field,
|
|
3313
3313
|
disabled: B.value,
|
|
3314
3314
|
label: e.label,
|
|
3315
3315
|
size: "md",
|
|
3316
3316
|
variant: e.isActive ? "primary" : "secondary",
|
|
3317
|
-
onClick: (t) =>
|
|
3317
|
+
onClick: (t) => Ue(e.field, e.isActive)
|
|
3318
3318
|
}, null, 8, [
|
|
3319
3319
|
"disabled",
|
|
3320
3320
|
"label",
|
|
3321
3321
|
"variant",
|
|
3322
3322
|
"onClick"
|
|
3323
3323
|
]))), 128))])], 8, la)) : a("v-if", !0),
|
|
3324
|
-
e.filter.displayPreferencesIcon ? (O(), o("div", fa, [u(
|
|
3324
|
+
e.filter.displayPreferencesIcon ? (O(), o("div", fa, [u(q, {
|
|
3325
3325
|
ariaLabel: "Open preferences",
|
|
3326
3326
|
disabled: B.value,
|
|
3327
3327
|
leftIcon: "sliders-horizontal",
|
|
3328
3328
|
size: "md",
|
|
3329
3329
|
variant: "ghost",
|
|
3330
|
-
onClick:
|
|
3330
|
+
onClick: We
|
|
3331
3331
|
}, null, 8, ["disabled"])])) : a("v-if", !0),
|
|
3332
3332
|
e.filter.filterHeaderRenderer ? (O(), i(P(e.filter.filterHeaderRenderer), x(v({ key: 2 }, Pe.value)), null, 16)) : a("v-if", !0)
|
|
3333
3333
|
])) : a("v-if", !0),
|
|
@@ -3343,27 +3343,27 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3343
3343
|
"disabled",
|
|
3344
3344
|
"placeholder"
|
|
3345
3345
|
])),
|
|
3346
|
-
|
|
3346
|
+
fe.value.length ? (O(), o("div", pa, [(O(!0), o(t, null, M(fe.value, (t) => (O(), i(Jr, {
|
|
3347
3347
|
key: t.value,
|
|
3348
3348
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3349
3349
|
disabled: B.value || t.isSelectable === !1,
|
|
3350
3350
|
"focus-action-disabled": Y(t),
|
|
3351
3351
|
"focus-action-label": Ae(t),
|
|
3352
3352
|
"focus-text": e.filter.focusText,
|
|
3353
|
-
"is-focused":
|
|
3354
|
-
indeterminate:
|
|
3355
|
-
label:
|
|
3353
|
+
"is-focused": J(t),
|
|
3354
|
+
indeterminate: Te(t),
|
|
3355
|
+
label: be(t),
|
|
3356
3356
|
name: z(h),
|
|
3357
3357
|
"query-text": g.value,
|
|
3358
3358
|
renderer: e.filter.filterOptionsRenderer,
|
|
3359
|
-
"result-count":
|
|
3360
|
-
selected:
|
|
3359
|
+
"result-count": xe(t),
|
|
3360
|
+
selected: we(t),
|
|
3361
3361
|
"show-focus-action": e.filter.isFocusable,
|
|
3362
3362
|
"sub-text": t.subText,
|
|
3363
3363
|
"subdued-text": t.subduedText,
|
|
3364
3364
|
value: t.value,
|
|
3365
|
-
onFocusValue: () =>
|
|
3366
|
-
onToggleValue: (e, n) =>
|
|
3365
|
+
onFocusValue: () => He(t),
|
|
3366
|
+
onToggleValue: (e, n) => Ve(t, n)
|
|
3367
3367
|
}, null, 8, [
|
|
3368
3368
|
"control",
|
|
3369
3369
|
"disabled",
|
|
@@ -3386,8 +3386,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3386
3386
|
"onToggleValue"
|
|
3387
3387
|
]))), 128))])) : a("v-if", !0),
|
|
3388
3388
|
e.filter.isLoading && !G.value ? (O(), o("div", ma, [u(ge, { size: "sm" }), e.filter.loadingText ? (O(), o("span", ha, L(e.filter.loadingText), 1)) : a("v-if", !0)])) : (O(), o(t, { key: 4 }, [
|
|
3389
|
-
!A.value && !C.value.length && !
|
|
3390
|
-
he.value.length ||
|
|
3389
|
+
!A.value && !C.value.length && !fe.value.length && !K.value ? (O(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (O(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, Pe.value, { "empty-reason": "no-values" }), null, 16)) : (O(), o("p", ga, "No values available."))], 64)) : !W.value.length && !fe.value.length && !K.value ? (O(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (O(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, Pe.value, { "empty-reason": "no-matches" }), null, 16)) : (O(), o("p", _a, "No matching values."))], 64)) : a("v-if", !0),
|
|
3390
|
+
he.value.length || K.value ? (O(), o("div", va, [
|
|
3391
3391
|
he.value.length && !e.filter.hideOptionsSortDescription ? (O(), o("div", ya, [e.filter.filterOptionsSortTooltip ? (O(), i(yr, {
|
|
3392
3392
|
key: 0,
|
|
3393
3393
|
variant: "dark",
|
|
@@ -3397,11 +3397,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3397
3397
|
"use-teleport": !0,
|
|
3398
3398
|
style: { "--max-width": "200px" }
|
|
3399
3399
|
}, {
|
|
3400
|
-
trigger:
|
|
3401
|
-
content:
|
|
3400
|
+
trigger: ce(() => [s("p", ba, L(re.value), 1)]),
|
|
3401
|
+
content: ce(() => [l(L(e.filter.filterOptionsSortTooltip), 1)]),
|
|
3402
3402
|
_: 1
|
|
3403
3403
|
})) : (O(), o("p", xa, L(re.value), 1))])) : a("v-if", !0),
|
|
3404
|
-
(O(!0), o(t, null, M(
|
|
3404
|
+
(O(!0), o(t, null, M(ve.value, (n) => (O(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (O(), i(Jr, {
|
|
3405
3405
|
key: 0,
|
|
3406
3406
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3407
3407
|
depth: n.depth,
|
|
@@ -3409,20 +3409,20 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3409
3409
|
"focus-action-disabled": Y(n.option),
|
|
3410
3410
|
"focus-action-label": Ae(n.option),
|
|
3411
3411
|
"focus-text": e.filter.focusText,
|
|
3412
|
-
"is-focused":
|
|
3413
|
-
indeterminate:
|
|
3414
|
-
label:
|
|
3412
|
+
"is-focused": J(n.option),
|
|
3413
|
+
indeterminate: Te(n.option),
|
|
3414
|
+
label: be(n.option),
|
|
3415
3415
|
name: z(h),
|
|
3416
3416
|
"query-text": g.value,
|
|
3417
3417
|
renderer: e.filter.filterOptionsRenderer,
|
|
3418
|
-
"result-count":
|
|
3419
|
-
selected:
|
|
3418
|
+
"result-count": xe(n.option),
|
|
3419
|
+
selected: we(n.option),
|
|
3420
3420
|
"show-focus-action": e.filter.isFocusable,
|
|
3421
3421
|
"sub-text": n.option.subText,
|
|
3422
3422
|
"subdued-text": n.option.subduedText,
|
|
3423
3423
|
value: n.option.value,
|
|
3424
|
-
onFocusValue: () =>
|
|
3425
|
-
onToggleValue: (e, t) =>
|
|
3424
|
+
onFocusValue: () => He(n.option),
|
|
3425
|
+
onToggleValue: (e, t) => Ve(n.option, t)
|
|
3426
3426
|
}, null, 8, [
|
|
3427
3427
|
"control",
|
|
3428
3428
|
"depth",
|
|
@@ -3444,7 +3444,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3444
3444
|
"value",
|
|
3445
3445
|
"onFocusValue",
|
|
3446
3446
|
"onToggleValue"
|
|
3447
|
-
])) : (O(), i(
|
|
3447
|
+
])) : (O(), i(q, {
|
|
3448
3448
|
key: 1,
|
|
3449
3449
|
class: "pv-text-brand",
|
|
3450
3450
|
disabled: B.value || e.filter.isLoadingMore,
|
|
@@ -3460,7 +3460,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3460
3460
|
"style",
|
|
3461
3461
|
"onClick"
|
|
3462
3462
|
]))], 64))), 128)),
|
|
3463
|
-
|
|
3463
|
+
K.value ? (O(), i(q, {
|
|
3464
3464
|
key: 1,
|
|
3465
3465
|
class: "pv-text-brand",
|
|
3466
3466
|
disabled: B.value || e.filter.isLoadingMore,
|
|
@@ -3486,7 +3486,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3486
3486
|
"slider-step": e.filter.rangeSliderStep,
|
|
3487
3487
|
step: e.filter.rangeStep,
|
|
3488
3488
|
"value-decimals": e.filter.valueDecimals,
|
|
3489
|
-
"onUpdate:rangeValue":
|
|
3489
|
+
"onUpdate:rangeValue": Be
|
|
3490
3490
|
}, null, 8, [
|
|
3491
3491
|
"rangeValue",
|
|
3492
3492
|
"data-type",
|
|
@@ -3499,28 +3499,28 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3499
3499
|
"slider-step",
|
|
3500
3500
|
"step",
|
|
3501
3501
|
"value-decimals"
|
|
3502
|
-
])) : E.value === "range" ? (O(), o("p", Sa, " Range filters require minimum and maximum bounds. ")) : E.value === "boolean" ? (O(), o("div", Ca, [s("div", wa, [(O(!0), o(t, null, M(ie.value, (t) => (O(), i(
|
|
3502
|
+
])) : E.value === "range" ? (O(), o("p", Sa, " Range filters require minimum and maximum bounds. ")) : E.value === "boolean" ? (O(), o("div", Ca, [s("div", wa, [(O(!0), o(t, null, M(ie.value, (t) => (O(), i(q, {
|
|
3503
3503
|
key: String(t.value),
|
|
3504
3504
|
disabled: B.value,
|
|
3505
3505
|
label: t.label,
|
|
3506
3506
|
variant: e.filter.booleanValue === t.value ? "primary" : "secondary",
|
|
3507
|
-
onClick: (n) =>
|
|
3507
|
+
onClick: (n) => Re(e.filter.booleanValue === t.value ? null : t.value)
|
|
3508
3508
|
}, null, 8, [
|
|
3509
3509
|
"disabled",
|
|
3510
3510
|
"label",
|
|
3511
3511
|
"variant",
|
|
3512
3512
|
"onClick"
|
|
3513
|
-
]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (O(), i(
|
|
3513
|
+
]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (O(), i(q, {
|
|
3514
3514
|
key: 0,
|
|
3515
3515
|
class: "pv-text-brand",
|
|
3516
3516
|
disabled: B.value,
|
|
3517
3517
|
label: "Clear",
|
|
3518
3518
|
variant: "ghost",
|
|
3519
|
-
onClick: r[1] ||= (e) =>
|
|
3519
|
+
onClick: r[1] ||= (e) => Re(null)
|
|
3520
3520
|
}, null, 8, ["disabled"])) : a("v-if", !0)])) : E.value === "exists" ? (O(), o("label", Ta, [u(wr, {
|
|
3521
3521
|
disabled: B.value,
|
|
3522
3522
|
modelValue: e.filter.existsValue ?? !1,
|
|
3523
|
-
"onUpdate:modelValue":
|
|
3523
|
+
"onUpdate:modelValue": ze
|
|
3524
3524
|
}, null, 8, ["disabled", "modelValue"]), s("span", Ea, L(y.value), 1)])) : a("v-if", !0)], 12, sa)], 40, ra));
|
|
3525
3525
|
}
|
|
3526
3526
|
}), [["styles", ["summary[data-v-d5483de6]{background-image:none;padding-right:2px}.suggested-title-label[data-v-d5483de6]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-d5483de6]{margin-left:auto;display:inline-flex}"]], ["__scopeId", "data-v-d5483de6"]]), Aa = ["data-style"], ja = /* @__PURE__ */ d({
|
|
@@ -3577,7 +3577,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3577
3577
|
"data-testid": "pv-tag",
|
|
3578
3578
|
"data-style": e.rounded ? "rounded" : void 0
|
|
3579
3579
|
}, [
|
|
3580
|
-
e.icon ? (O(), i(
|
|
3580
|
+
e.icon ? (O(), i(Se, {
|
|
3581
3581
|
key: 0,
|
|
3582
3582
|
"data-testid": "pv-tag-icon",
|
|
3583
3583
|
class: b(e.iconClasses),
|
|
@@ -3589,13 +3589,13 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3589
3589
|
"size"
|
|
3590
3590
|
])) : a("v-if", !0),
|
|
3591
3591
|
s("span", { class: b(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, L(e.label), 3),
|
|
3592
|
-
e.showClear ? (O(), i(
|
|
3592
|
+
e.showClear ? (O(), i(Se, {
|
|
3593
3593
|
key: 1,
|
|
3594
3594
|
"data-testid": "pv-tag-close-icon",
|
|
3595
3595
|
size: c.value,
|
|
3596
3596
|
name: "close",
|
|
3597
3597
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
3598
|
-
onClick: r[0] ||=
|
|
3598
|
+
onClick: r[0] ||= le((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
3599
3599
|
}, null, 8, ["size", "data-dd-action-name"])) : a("v-if", !0)
|
|
3600
3600
|
], 14, Aa));
|
|
3601
3601
|
}
|
|
@@ -3771,7 +3771,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3771
3771
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
3772
3772
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
3773
3773
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
3774
|
-
}]) }, [n.value ? (O(), i(
|
|
3774
|
+
}]) }, [n.value ? (O(), i(q, {
|
|
3775
3775
|
key: 0,
|
|
3776
3776
|
ariaLabel: e.leftAriaLabel,
|
|
3777
3777
|
leftIcon: "chevron-left",
|
|
@@ -3786,7 +3786,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3786
3786
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-right", {
|
|
3787
3787
|
"pv-horizontal-scroller-control-hidden": !c.value,
|
|
3788
3788
|
"pv-horizontal-scroller-control-right-fade": e.showFades
|
|
3789
|
-
}]) }, [c.value ? (O(), i(
|
|
3789
|
+
}]) }, [c.value ? (O(), i(q, {
|
|
3790
3790
|
key: 0,
|
|
3791
3791
|
ariaLabel: e.rightAriaLabel,
|
|
3792
3792
|
leftIcon: "chevron-right",
|
|
@@ -3837,7 +3837,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3837
3837
|
}), d = (e) => {
|
|
3838
3838
|
c.value = e;
|
|
3839
3839
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
3840
|
-
return
|
|
3840
|
+
return H(l, (e) => {
|
|
3841
3841
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
3842
3842
|
}, { immediate: !0 }), (n, r) => l.value.length ? (O(), o("div", Wa, [u(Ua, {
|
|
3843
3843
|
ariaLabel: "Filter categories",
|
|
@@ -3848,11 +3848,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3848
3848
|
rightAriaLabel: "Scroll filter categories right",
|
|
3849
3849
|
showFades: ""
|
|
3850
3850
|
}, {
|
|
3851
|
-
default:
|
|
3851
|
+
default: ce(() => [s("div", Ga, [u(q, {
|
|
3852
3852
|
label: e.allCategoriesLabel,
|
|
3853
3853
|
variant: f(null),
|
|
3854
3854
|
onClick: r[0] ||= (e) => d(null)
|
|
3855
|
-
}, null, 8, ["label", "variant"]), (O(!0), o(t, null, M(l.value, (e) => (O(), i(
|
|
3855
|
+
}, null, 8, ["label", "variant"]), (O(!0), o(t, null, M(l.value, (e) => (O(), i(q, {
|
|
3856
3856
|
key: e,
|
|
3857
3857
|
label: e,
|
|
3858
3858
|
variant: f(e),
|
|
@@ -4437,9 +4437,9 @@ function Ms(e, t, n) {
|
|
|
4437
4437
|
}
|
|
4438
4438
|
x(t, n);
|
|
4439
4439
|
};
|
|
4440
|
-
|
|
4440
|
+
H(() => e.filterOptionsHandler, (e) => {
|
|
4441
4441
|
o.setFilterOptionsHandler(e);
|
|
4442
|
-
}, { immediate: !0 }),
|
|
4442
|
+
}, { immediate: !0 }), H([
|
|
4443
4443
|
() => e.filterOptions,
|
|
4444
4444
|
h,
|
|
4445
4445
|
() => e.filterOptionsHandler
|
|
@@ -4448,7 +4448,7 @@ function Ms(e, t, n) {
|
|
|
4448
4448
|
}, {
|
|
4449
4449
|
deep: !0,
|
|
4450
4450
|
immediate: !0
|
|
4451
|
-
}),
|
|
4451
|
+
}), H([
|
|
4452
4452
|
() => e.filterHasMoreMap,
|
|
4453
4453
|
h,
|
|
4454
4454
|
() => e.filterOptionsHandler
|
|
@@ -4457,7 +4457,7 @@ function Ms(e, t, n) {
|
|
|
4457
4457
|
}, {
|
|
4458
4458
|
deep: !0,
|
|
4459
4459
|
immediate: !0
|
|
4460
|
-
}),
|
|
4460
|
+
}), H([
|
|
4461
4461
|
() => e.filterLoadingMap,
|
|
4462
4462
|
h,
|
|
4463
4463
|
() => e.filterOptionsHandler
|
|
@@ -4466,7 +4466,7 @@ function Ms(e, t, n) {
|
|
|
4466
4466
|
}, {
|
|
4467
4467
|
deep: !0,
|
|
4468
4468
|
immediate: !0
|
|
4469
|
-
}),
|
|
4469
|
+
}), H([
|
|
4470
4470
|
() => e.filterLoadingMoreMap,
|
|
4471
4471
|
h,
|
|
4472
4472
|
() => e.filterOptionsHandler
|
|
@@ -4475,7 +4475,7 @@ function Ms(e, t, n) {
|
|
|
4475
4475
|
}, {
|
|
4476
4476
|
deep: !0,
|
|
4477
4477
|
immediate: !0
|
|
4478
|
-
}),
|
|
4478
|
+
}), H([
|
|
4479
4479
|
() => e.filterSearchQueries,
|
|
4480
4480
|
h,
|
|
4481
4481
|
() => e.filterOptionsHandler
|
|
@@ -4484,7 +4484,7 @@ function Ms(e, t, n) {
|
|
|
4484
4484
|
}, {
|
|
4485
4485
|
deep: !0,
|
|
4486
4486
|
immediate: !0
|
|
4487
|
-
}),
|
|
4487
|
+
}), H([
|
|
4488
4488
|
t,
|
|
4489
4489
|
h,
|
|
4490
4490
|
() => e.staged
|
|
@@ -4493,7 +4493,7 @@ function Ms(e, t, n) {
|
|
|
4493
4493
|
}, {
|
|
4494
4494
|
deep: !0,
|
|
4495
4495
|
immediate: !0
|
|
4496
|
-
}),
|
|
4496
|
+
}), H([() => e.staged, m], ([e]) => {
|
|
4497
4497
|
if (e) {
|
|
4498
4498
|
a.value = t.value;
|
|
4499
4499
|
let e = m.value;
|
|
@@ -4502,68 +4502,68 @@ function Ms(e, t, n) {
|
|
|
4502
4502
|
}, { immediate: !0 });
|
|
4503
4503
|
let w = (e, t) => {
|
|
4504
4504
|
!g.value || !t || c.has(e) || (console.warn(`PvFilterPanel: "${e}" is ignored when filterStore/filterOptionsHandler store mode is active.`), c.add(e));
|
|
4505
|
-
},
|
|
4505
|
+
}, E = (e, t) => {
|
|
4506
4506
|
l.has(e) || (console.warn(t), l.add(e));
|
|
4507
|
-
},
|
|
4507
|
+
}, ee = () => {
|
|
4508
4508
|
let e = i?.vnode.props ?? {};
|
|
4509
4509
|
return Object.prototype.hasOwnProperty.call(e, "filterModel") || Object.prototype.hasOwnProperty.call(e, "filter-model");
|
|
4510
|
-
},
|
|
4510
|
+
}, D = (e) => !!(e && typeof e == "object" && "filterType" in e), O = (e) => {
|
|
4511
4511
|
if (!e) return;
|
|
4512
|
-
let t =
|
|
4513
|
-
v.value === "advanced" && !t &&
|
|
4512
|
+
let t = D(e);
|
|
4513
|
+
v.value === "advanced" && !t && E("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), v.value === "regular" && t && E("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
4514
4514
|
};
|
|
4515
|
-
|
|
4515
|
+
se(() => {
|
|
4516
4516
|
w("filterModel", !!((e.filterStore || s) && t.value !== null)), w("filterOptions", Object.keys(e.filterOptions).length > 0), w("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), w("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), w("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), w("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), w("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler));
|
|
4517
4517
|
let n = !!((e.filterStore || s) && y.value !== null);
|
|
4518
|
-
import.meta.env?.DEV && !_.value && y.value !== null && !
|
|
4518
|
+
import.meta.env?.DEV && !_.value && y.value !== null && !D(y.value) && (ee() || n) && E("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
4519
4519
|
});
|
|
4520
|
-
let
|
|
4521
|
-
let t =
|
|
4520
|
+
let k = (e) => e.context ?? {}, A = (e) => e.colId || e.field || "", M = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, N = (e) => {
|
|
4521
|
+
let t = k(e), n = t.filterPanelType;
|
|
4522
4522
|
if (n && js.has(n)) return n;
|
|
4523
4523
|
if (t.filterPanelRange) return "range";
|
|
4524
4524
|
if (t.dataType === "boolean") return "boolean";
|
|
4525
4525
|
if (e.filter) return "value";
|
|
4526
|
-
},
|
|
4527
|
-
let t =
|
|
4526
|
+
}, P = (e) => N(e) ?? "value", I = (e) => k(e).filterPanelCategory ?? null, L = (e) => {
|
|
4527
|
+
let t = k(e).filterPanelValueLabels;
|
|
4528
4528
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
4529
|
-
},
|
|
4530
|
-
let n =
|
|
4531
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
4532
|
-
},
|
|
4529
|
+
}, R = (t) => {
|
|
4530
|
+
let n = k(t), r = A(t);
|
|
4531
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && ce.value.has(r) ? !1 : !!N(t);
|
|
4532
|
+
}, z = (e) => (m.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), te = (t) => {
|
|
4533
4533
|
let n = m.value;
|
|
4534
4534
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
4535
|
-
},
|
|
4535
|
+
}, ne = (e) => m.value.filterHasMoreMap.value[e] ?? !1, re = (e) => m.value.filterLoadingMap.value[e] ?? !1, B = (e) => m.value.filterLoadingMoreMap.value[e] ?? !1, ie = (e) => m.value.filterSearchQueries.value[e] ?? "", V = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
4536
4536
|
label: e.label,
|
|
4537
4537
|
value: e.filter.value
|
|
4538
4538
|
}]), ae = (e) => [
|
|
4539
|
-
...
|
|
4540
|
-
...
|
|
4541
|
-
...
|
|
4539
|
+
...V(e),
|
|
4540
|
+
...z(e),
|
|
4541
|
+
...te(e)
|
|
4542
4542
|
], oe = (e) => {
|
|
4543
4543
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
4544
4544
|
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(oe) : [];
|
|
4545
4545
|
return n ? [n, ...r] : r;
|
|
4546
|
-
},
|
|
4546
|
+
}, ce = r(() => {
|
|
4547
4547
|
let t = /* @__PURE__ */ new Set();
|
|
4548
4548
|
for (let n of e.colDefs) {
|
|
4549
|
-
let e =
|
|
4549
|
+
let e = k(n);
|
|
4550
4550
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
4551
4551
|
for (let n of oe(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
4552
4552
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
4553
4553
|
}
|
|
4554
4554
|
return t;
|
|
4555
|
-
}),
|
|
4556
|
-
let t =
|
|
4555
|
+
}), U = (e) => {
|
|
4556
|
+
let t = A(e), n = k(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = oe(n.aggregateFieldHierarchy);
|
|
4557
4557
|
return Array.from(new Set([
|
|
4558
4558
|
t,
|
|
4559
4559
|
...r,
|
|
4560
4560
|
...i
|
|
4561
4561
|
].filter(Boolean)));
|
|
4562
|
-
},
|
|
4562
|
+
}, W = (e) => v.value === "advanced" && ji(e), le = (e, t) => W(e) ? Vi({
|
|
4563
4563
|
colDef: e,
|
|
4564
4564
|
model: y.value,
|
|
4565
4565
|
options: t
|
|
4566
|
-
}) : new Map(
|
|
4566
|
+
}) : new Map(U(e).map((e) => [e, b.value.get(e)?.values ?? []])), ue = (e, t, n, r) => {
|
|
4567
4567
|
let i = /* @__PURE__ */ new Set();
|
|
4568
4568
|
for (let t of ri(r)) for (let [r, a] of n) for (let n of a) ii(t, r, n, e) && i.add(`${r}:${n}`);
|
|
4569
4569
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
@@ -4579,31 +4579,31 @@ function Ms(e, t, n) {
|
|
|
4579
4579
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
4580
4580
|
}
|
|
4581
4581
|
return Array.from(r);
|
|
4582
|
-
}, fe = (t) => Object.fromEntries(
|
|
4583
|
-
let t =
|
|
4584
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Oo(
|
|
4585
|
-
},
|
|
4582
|
+
}, fe = (t) => Object.fromEntries(U(t).map((t) => [t, e.focusedValues[t] ?? []])), G = (t) => e.colDefs.find((e) => A(e) === t || e.field === t || e.colId === t), pe = (e) => G(e)?.headerName ?? e, me = (e) => {
|
|
4583
|
+
let t = k(e);
|
|
4584
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Oo(A(e), t.queryColIds, pe);
|
|
4585
|
+
}, he = (e, t) => Ao({
|
|
4586
4586
|
fallbackSubText: e.subText,
|
|
4587
|
-
getDisplayName:
|
|
4587
|
+
getDisplayName: pe,
|
|
4588
4588
|
matchedField: e.matchedField,
|
|
4589
4589
|
matchedValue: e.matchedValue,
|
|
4590
4590
|
primaryText: e.label,
|
|
4591
|
-
showPrefix:
|
|
4592
|
-
}),
|
|
4591
|
+
showPrefix: k(t).showSearchMatchSubTextPrefix !== !1
|
|
4592
|
+
}), ge = (e, t) => e.map((e) => ({
|
|
4593
4593
|
...e,
|
|
4594
|
-
children: e.children?.length ?
|
|
4595
|
-
subText:
|
|
4596
|
-
})),
|
|
4597
|
-
let t =
|
|
4594
|
+
children: e.children?.length ? ge(e.children, t) : e.children,
|
|
4595
|
+
subText: he(e, t)
|
|
4596
|
+
})), _e = (e) => {
|
|
4597
|
+
let t = k(e).filterGroup;
|
|
4598
4598
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
4599
4599
|
field: e,
|
|
4600
4600
|
isActive: b.value.get(e)?.booleanValue === !0,
|
|
4601
|
-
label:
|
|
4601
|
+
label: G(e)?.headerName ?? e
|
|
4602
4602
|
}));
|
|
4603
|
-
}, K = (e) =>
|
|
4604
|
-
let n =
|
|
4603
|
+
}, K = (e) => ye.value.find((t) => t.key === e) ?? ye.value.find((t) => U(t.colDef).includes(e)), ve = (e, t, n) => ri(K(e)?.knownOptions ?? []).find((r) => r.value === n || ii(r, t, n, e)), ye = r(() => e.colDefs.filter(R).map((t) => {
|
|
4604
|
+
let n = A(t), r = k(t), i = P(t), a = ge(z(n), t), o = ge(ae(n), t), s = {
|
|
4605
4605
|
canRemoveFocus: e.canRemoveFocus,
|
|
4606
|
-
category:
|
|
4606
|
+
category: I(t),
|
|
4607
4607
|
clientFiltering: r.filterOptionsClientFiltering !== !1,
|
|
4608
4608
|
colDef: t,
|
|
4609
4609
|
controlled: r.filterPanelControlled === !0,
|
|
@@ -4614,42 +4614,42 @@ function Ms(e, t, n) {
|
|
|
4614
4614
|
existsLabel: r.filterPanelExistsLabel,
|
|
4615
4615
|
filterFooterRenderer: r.filterFooterRenderer,
|
|
4616
4616
|
filterGroupLabel: r.filterGroup?.label,
|
|
4617
|
-
filterGroupOptions:
|
|
4617
|
+
filterGroupOptions: _e(t),
|
|
4618
4618
|
filterHeaderRenderer: r.filterHeaderRenderer,
|
|
4619
4619
|
filterOptionsRenderer: r.filterOptionsRenderer,
|
|
4620
4620
|
filterSectionHeaderRenderer: r.filterSectionHeaderRenderer,
|
|
4621
4621
|
filterSectionDefs: r.filterSectionDefs,
|
|
4622
4622
|
filterOptionsSortDescription: r.filterOptionsSortDescription,
|
|
4623
4623
|
filterOptionsSortTooltip: r.filterOptionsSortTooltip,
|
|
4624
|
-
focusFieldLabels: Object.fromEntries(
|
|
4624
|
+
focusFieldLabels: Object.fromEntries(U(t).map((e) => [e, pe(e)])),
|
|
4625
4625
|
focusableFields: e.focusableFields,
|
|
4626
4626
|
focusText: e.focusText,
|
|
4627
4627
|
hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
|
|
4628
4628
|
hideSearch: r.filterPanelHideSearch,
|
|
4629
4629
|
focusedValues: e.focusedValues[n] ?? [],
|
|
4630
4630
|
focusedValuesByField: fe(t),
|
|
4631
|
-
hasMore:
|
|
4632
|
-
isAggregate:
|
|
4633
|
-
isFocusable: e.enableFocusView && (!e.focusableFields.length ||
|
|
4634
|
-
isLoading:
|
|
4635
|
-
isLoadingMore:
|
|
4631
|
+
hasMore: ne(n),
|
|
4632
|
+
isAggregate: W(t),
|
|
4633
|
+
isFocusable: e.enableFocusView && (!e.focusableFields.length || U(t).some((t) => e.focusableFields.includes(t))),
|
|
4634
|
+
isLoading: re(n),
|
|
4635
|
+
isLoadingMore: B(n),
|
|
4636
4636
|
isOpen: !1,
|
|
4637
4637
|
key: n,
|
|
4638
4638
|
knownOptions: o,
|
|
4639
4639
|
label: t.headerName || n,
|
|
4640
4640
|
loadingText: r.filterOptionsLoadingText,
|
|
4641
4641
|
rangeInputIcon: r.filterPanelRange?.inputIcon ?? null,
|
|
4642
|
-
rangeMax:
|
|
4643
|
-
rangeMin:
|
|
4642
|
+
rangeMax: M(r.filterPanelRange?.max),
|
|
4643
|
+
rangeMin: M(r.filterPanelRange?.min),
|
|
4644
4644
|
rangeScale: r.filterPanelRange?.scale,
|
|
4645
|
-
rangeSliderStep:
|
|
4646
|
-
rangeStep:
|
|
4647
|
-
searchPlaceholder:
|
|
4648
|
-
searchQuery:
|
|
4645
|
+
rangeSliderStep: M(r.filterPanelRange?.sliderStep),
|
|
4646
|
+
rangeStep: M(r.filterPanelRange?.step),
|
|
4647
|
+
searchPlaceholder: me(t),
|
|
4648
|
+
searchQuery: ie(n) ?? "",
|
|
4649
4649
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
4650
4650
|
type: i,
|
|
4651
4651
|
valueDecimals: r.valueDecimals ?? null,
|
|
4652
|
-
valueLabels:
|
|
4652
|
+
valueLabels: L(t)
|
|
4653
4653
|
};
|
|
4654
4654
|
if (i === "range") return {
|
|
4655
4655
|
...s,
|
|
@@ -4666,7 +4666,7 @@ function Ms(e, t, n) {
|
|
|
4666
4666
|
...s,
|
|
4667
4667
|
existsValue: b.value.get(n)?.existsValue ?? !1
|
|
4668
4668
|
};
|
|
4669
|
-
let c = e.controlledValues[n] ?? [], l = s.controlled ? new Map([[n, c]]) :
|
|
4669
|
+
let c = e.controlledValues[n] ?? [], l = s.controlled ? new Map([[n, c]]) : le(t, o), d = ue(n, t, l, o), f = [...o, ...d], p = s.isAggregate ? f : Si(f, f, t), m = s.isAggregate ? a : Si(a, f, t), h = W(t) ? Bi({
|
|
4670
4670
|
colDef: t,
|
|
4671
4671
|
model: y.value,
|
|
4672
4672
|
options: p
|
|
@@ -4679,7 +4679,7 @@ function Ms(e, t, n) {
|
|
|
4679
4679
|
selectedValues: s.controlled ? c : h ? h.flatMap((e) => e.state === "selected" ? [e.id] : []) : de(n, l, p)
|
|
4680
4680
|
};
|
|
4681
4681
|
}));
|
|
4682
|
-
|
|
4682
|
+
H(ye, (t) => {
|
|
4683
4683
|
let n = m.value, r = e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap, i = r.value, a = t.filter((e) => e.type === "value" && !e.controlled && !e.isAggregate && !!e.colDef.context?.metadataDisplayFields?.length);
|
|
4684
4684
|
for (let e of a) {
|
|
4685
4685
|
let t = new Set(e.selectedValues ?? []), n = /* @__PURE__ */ new Map();
|
|
@@ -4689,15 +4689,15 @@ function Ms(e, t, n) {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
i !== r.value && (r.value = i);
|
|
4691
4691
|
}, { immediate: !0 });
|
|
4692
|
-
let
|
|
4692
|
+
let be = r(() => ye.value.flatMap((e) => {
|
|
4693
4693
|
if (e.controlled) return [];
|
|
4694
|
-
let t =
|
|
4694
|
+
let t = Pe(e);
|
|
4695
4695
|
return t.length ? [{
|
|
4696
4696
|
key: e.key,
|
|
4697
4697
|
label: e.label,
|
|
4698
4698
|
values: t
|
|
4699
4699
|
}] : [];
|
|
4700
|
-
})),
|
|
4700
|
+
})), xe = r(() => be.value.reduce((e, t) => e + t.values.length, 0)), Se = r(() => us(y.value, v.value)), Ce = r(() => Se.value || xe.value > 0), we = (e) => {
|
|
4701
4701
|
let t = K(e.field);
|
|
4702
4702
|
if (!t || t.type !== e.filter.type) return !0;
|
|
4703
4703
|
if (e.filter.type === "value") {
|
|
@@ -4713,11 +4713,11 @@ function Ms(e, t, n) {
|
|
|
4713
4713
|
return e.filter.checked ? a : !a;
|
|
4714
4714
|
}
|
|
4715
4715
|
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;
|
|
4716
|
-
},
|
|
4716
|
+
}, Te = r(() => e.filterSuggestions.filter((e) => !we(e))), Ee = (e) => {
|
|
4717
4717
|
if (e.key) return e.key;
|
|
4718
4718
|
let t = "value" in e.filter ? e.filter.value : "";
|
|
4719
4719
|
return `${e.field}-${e.filter.type}-${JSON.stringify(t)}`;
|
|
4720
|
-
},
|
|
4720
|
+
}, De = (t, n, r, i) => {
|
|
4721
4721
|
let a = m.value;
|
|
4722
4722
|
if (!a) return;
|
|
4723
4723
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
@@ -4734,7 +4734,7 @@ function Ms(e, t, n) {
|
|
|
4734
4734
|
r === -1 ? l.push(i) : l[r] = i;
|
|
4735
4735
|
}
|
|
4736
4736
|
o.value[t] = l;
|
|
4737
|
-
},
|
|
4737
|
+
}, Oe = (t, n = t.aggregateSelectionState ?? []) => {
|
|
4738
4738
|
let r = m.value;
|
|
4739
4739
|
if (!r || !t.isAggregate) return;
|
|
4740
4740
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
@@ -4744,19 +4744,19 @@ function Ms(e, t, n) {
|
|
|
4744
4744
|
options: t.knownOptions ?? [],
|
|
4745
4745
|
state: n
|
|
4746
4746
|
});
|
|
4747
|
-
},
|
|
4747
|
+
}, q = (e) => {
|
|
4748
4748
|
if (!g.value) return;
|
|
4749
4749
|
let t = m.value, n = /* @__PURE__ */ new Set();
|
|
4750
4750
|
if (e) {
|
|
4751
4751
|
n.add(e);
|
|
4752
4752
|
let t = K(e);
|
|
4753
|
-
t && (n.add(t.key),
|
|
4753
|
+
t && (n.add(t.key), U(t.colDef).forEach((e) => n.add(e)));
|
|
4754
4754
|
}
|
|
4755
|
-
for (let r of
|
|
4755
|
+
for (let r of ye.value) r.type === "value" && (e && (n.has(r.key) || U(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
4756
4756
|
}, J = (r, i, o, c) => {
|
|
4757
|
-
|
|
4757
|
+
O(r);
|
|
4758
4758
|
let l = y.value, u = m.value;
|
|
4759
|
-
u ? (S(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (a.value = r), !e.filterStore && !s && !e.staged && (t.value = r),
|
|
4759
|
+
u ? (S(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (a.value = r), !e.filterStore && !s && !e.staged && (t.value = r), q(o), n("filter-change", {
|
|
4760
4760
|
colDef: (o ? K(o) : void 0)?.colDef,
|
|
4761
4761
|
field: o,
|
|
4762
4762
|
filterModel: r,
|
|
@@ -4764,18 +4764,18 @@ function Ms(e, t, n) {
|
|
|
4764
4764
|
reason: i,
|
|
4765
4765
|
type: c
|
|
4766
4766
|
});
|
|
4767
|
-
},
|
|
4767
|
+
}, ke = (e) => {
|
|
4768
4768
|
let t = e.booleanValue ?? null;
|
|
4769
4769
|
return t === null ? [] : [{
|
|
4770
4770
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
4771
4771
|
type: "boolean",
|
|
4772
4772
|
value: ks
|
|
4773
4773
|
}];
|
|
4774
|
-
},
|
|
4774
|
+
}, Y = (e) => e.existsValue ? [{
|
|
4775
4775
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
4776
4776
|
type: "exists",
|
|
4777
4777
|
value: As
|
|
4778
|
-
}] : [],
|
|
4778
|
+
}] : [], Ae = (e) => {
|
|
4779
4779
|
let t = e.rangeValue ?? {
|
|
4780
4780
|
max: null,
|
|
4781
4781
|
min: null
|
|
@@ -4788,7 +4788,7 @@ function Ms(e, t, n) {
|
|
|
4788
4788
|
type: "range",
|
|
4789
4789
|
value: Os
|
|
4790
4790
|
}];
|
|
4791
|
-
},
|
|
4791
|
+
}, je = (e, t, n) => {
|
|
4792
4792
|
let r = n.get(t) ?? null;
|
|
4793
4793
|
return {
|
|
4794
4794
|
field: r ? ni(r, e.key) : void 0,
|
|
@@ -4799,12 +4799,12 @@ function Ms(e, t, n) {
|
|
|
4799
4799
|
type: "value",
|
|
4800
4800
|
value: r ? ti(r) ?? r.value : t
|
|
4801
4801
|
};
|
|
4802
|
-
},
|
|
4802
|
+
}, Me = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
4803
4803
|
field: e.field,
|
|
4804
4804
|
label: e.label,
|
|
4805
4805
|
type: "boolean",
|
|
4806
4806
|
value: ks
|
|
4807
|
-
}] : []),
|
|
4807
|
+
}] : []), Ne = (e) => ta({
|
|
4808
4808
|
options: e.knownOptions ?? [],
|
|
4809
4809
|
state: e.aggregateSelectionState ?? []
|
|
4810
4810
|
}).map((t) => ({
|
|
@@ -4815,42 +4815,42 @@ function Ms(e, t, n) {
|
|
|
4815
4815
|
subduedText: t.subduedText,
|
|
4816
4816
|
type: "value",
|
|
4817
4817
|
value: t.value
|
|
4818
|
-
})),
|
|
4818
|
+
})), Pe = (e) => {
|
|
4819
4819
|
if (e.controlled) return [];
|
|
4820
|
-
if (e.type === "range") return
|
|
4821
|
-
if (e.type === "boolean") return
|
|
4822
|
-
if (e.type === "exists") return
|
|
4823
|
-
if (e.isAggregate) return [...
|
|
4820
|
+
if (e.type === "range") return Ae(e);
|
|
4821
|
+
if (e.type === "boolean") return ke(e);
|
|
4822
|
+
if (e.type === "exists") return Y(e);
|
|
4823
|
+
if (e.isAggregate) return [...Ne(e), ...Me(e)];
|
|
4824
4824
|
let t = new Map(ri(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
4825
|
-
return [...(e.selectedValues ?? []).map((n) =>
|
|
4826
|
-
}, Pe = () => {
|
|
4827
|
-
We(), J(null, "clear-all");
|
|
4825
|
+
return [...(e.selectedValues ?? []).map((n) => je(e, n, t)), ...Me(e)];
|
|
4828
4826
|
}, Fe = () => {
|
|
4829
|
-
|
|
4827
|
+
Xe(), J(null, "clear-all");
|
|
4828
|
+
}, Ie = () => {
|
|
4829
|
+
Ze();
|
|
4830
4830
|
let r = m.value, i = r ? r.stagedFilterModel.value : a.value;
|
|
4831
4831
|
r && (x(r, i), r.commitStagedFilterSelections(), r.initStagedFilterSelections()), !e.filterStore && !s && (t.value = i), n("apply", i);
|
|
4832
|
-
},
|
|
4833
|
-
|
|
4832
|
+
}, Le = () => {
|
|
4833
|
+
Xe();
|
|
4834
4834
|
let e = m.value;
|
|
4835
4835
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), a.value = t.value, n("cancel");
|
|
4836
|
-
},
|
|
4836
|
+
}, Re = (e) => ds(K(e)?.dataType), ze = (e, t, n = "value-toggle") => {
|
|
4837
4837
|
let r = K(e);
|
|
4838
|
-
r?.isAggregate && (
|
|
4838
|
+
r?.isAggregate && (Oe(r, t), J(Ri({
|
|
4839
4839
|
baseModel: y.value,
|
|
4840
4840
|
colDef: r.colDef,
|
|
4841
4841
|
options: r.knownOptions ?? [],
|
|
4842
4842
|
state: t
|
|
4843
4843
|
}), n, r.key, "value"));
|
|
4844
|
-
},
|
|
4844
|
+
}, Be = (e, t) => {
|
|
4845
4845
|
if (t.type === "aggregate-selection") {
|
|
4846
|
-
|
|
4846
|
+
ze(e, t.value);
|
|
4847
4847
|
return;
|
|
4848
4848
|
}
|
|
4849
|
-
let n = t.field ?? e, r =
|
|
4849
|
+
let n = t.field ?? e, r = G(n) ?? K(e)?.colDef;
|
|
4850
4850
|
if (t.type === "value") {
|
|
4851
|
-
let r = K(e), i =
|
|
4851
|
+
let r = K(e), i = ve(e, n, t.value);
|
|
4852
4852
|
if (r?.isAggregate && i) {
|
|
4853
|
-
|
|
4853
|
+
ze(e, Zi({
|
|
4854
4854
|
checked: t.checked,
|
|
4855
4855
|
option: i,
|
|
4856
4856
|
options: r.knownOptions ?? [],
|
|
@@ -4858,37 +4858,54 @@ function Ms(e, t, n) {
|
|
|
4858
4858
|
}));
|
|
4859
4859
|
return;
|
|
4860
4860
|
}
|
|
4861
|
-
|
|
4861
|
+
nt(e, n, t.value, t.checked, i);
|
|
4862
4862
|
return;
|
|
4863
4863
|
}
|
|
4864
4864
|
if (t.type === "range") {
|
|
4865
|
-
|
|
4865
|
+
X(n, t.value, r);
|
|
4866
4866
|
return;
|
|
4867
4867
|
}
|
|
4868
4868
|
if (t.type === "boolean") {
|
|
4869
4869
|
J(ps(y.value, n, t.value, v.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
4870
4870
|
return;
|
|
4871
4871
|
}
|
|
4872
|
-
J(ms(y.value, n, t.value,
|
|
4873
|
-
},
|
|
4872
|
+
J(ms(y.value, n, t.value, Re(n), v.value, r), "exists-change", n, "exists");
|
|
4873
|
+
}, Ve = (e, t, n, r) => {
|
|
4874
4874
|
let i = m.value;
|
|
4875
4875
|
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;
|
|
4876
|
-
},
|
|
4876
|
+
}, He = (e) => {
|
|
4877
|
+
let t = /* @__PURE__ */ new Map();
|
|
4878
|
+
if (e.type !== "value" || e.controlled || e.isAggregate || !e.colDef.context?.metadataDisplayFields?.length || U(e.colDef).length !== 1) return t;
|
|
4879
|
+
let n = ri(e.knownOptions ?? []);
|
|
4880
|
+
for (let [r, i] of le(e.colDef, e.knownOptions ?? [])) {
|
|
4881
|
+
let a = i.filter((t) => !n.some((n) => ii(n, r, t, e.key)));
|
|
4882
|
+
a.length && t.set(r, a);
|
|
4883
|
+
}
|
|
4884
|
+
return t;
|
|
4885
|
+
}, Ue = (e, t) => {
|
|
4877
4886
|
let n = K(e);
|
|
4878
|
-
if (!n
|
|
4879
|
-
let r = new Set(t)
|
|
4880
|
-
for (let [t,
|
|
4881
|
-
let
|
|
4882
|
-
if (
|
|
4883
|
-
console.error(`PvFilterPanel: removed selected "${t}" values with no display name: ${
|
|
4884
|
-
let r =
|
|
4885
|
-
|
|
4887
|
+
if (!n) return;
|
|
4888
|
+
let r = new Set(t);
|
|
4889
|
+
for (let [t, i] of He(n)) {
|
|
4890
|
+
let a = i.filter((e) => r.has(e));
|
|
4891
|
+
if (a.length) {
|
|
4892
|
+
console.error(`PvFilterPanel: removed selected "${t}" values with no display name: ${a.join(", ")}`);
|
|
4893
|
+
let r = (b.value.get(t)?.values ?? []).filter((e) => !a.includes(e));
|
|
4894
|
+
De(e, t, r), J(gs(y.value, t, r, v.value, G(t) ?? n.colDef), "remove-filter", t, "value");
|
|
4886
4895
|
}
|
|
4887
4896
|
}
|
|
4888
|
-
},
|
|
4889
|
-
let
|
|
4890
|
-
|
|
4891
|
-
|
|
4897
|
+
}, We = r(() => {
|
|
4898
|
+
let e = m.value;
|
|
4899
|
+
return e.hasFilterOptionsSource?.value ?? !!e.filterOptionsHandler.value;
|
|
4900
|
+
}), Ge = /* @__PURE__ */ new Map();
|
|
4901
|
+
H(m, () => Ge.clear(), { flush: "sync" });
|
|
4902
|
+
let Ke = (e, t, n, r) => {
|
|
4903
|
+
let i = m.value, a = Array.from(new Set([...le(e.colDef, e.knownOptions ?? []).values()].flat())), o = n === "open" && !r && We.value;
|
|
4904
|
+
if (o) {
|
|
4905
|
+
let t = Ge.get(e.key) ?? /* @__PURE__ */ new Set();
|
|
4906
|
+
a.forEach((e) => t.add(e)), Ge.set(e.key, t);
|
|
4907
|
+
}
|
|
4908
|
+
let s = i.fetchFilterOptions({
|
|
4892
4909
|
colDef: e.colDef,
|
|
4893
4910
|
field: e.key,
|
|
4894
4911
|
filterModel: y.value,
|
|
@@ -4898,28 +4915,45 @@ function Ms(e, t, n) {
|
|
|
4898
4915
|
selectedValues: a
|
|
4899
4916
|
}), c = i.filterRequestIdMap.value[e.key];
|
|
4900
4917
|
s.then(() => {
|
|
4901
|
-
o && i.filterRequestIdMap.value[e.key] === c &&
|
|
4918
|
+
o && i.filterRequestIdMap.value[e.key] === c && Ue(e.key, a);
|
|
4902
4919
|
});
|
|
4903
|
-
},
|
|
4904
|
-
|
|
4905
|
-
}
|
|
4920
|
+
}, qe = (e, t, n, r) => {
|
|
4921
|
+
!Ve(e, t, n, r) || !m.value || Ke(e, t, n, r);
|
|
4922
|
+
};
|
|
4923
|
+
T(() => {
|
|
4924
|
+
H([
|
|
4925
|
+
ye,
|
|
4926
|
+
g,
|
|
4927
|
+
We
|
|
4928
|
+
], ([e, t, n]) => {
|
|
4929
|
+
if (!t || !n) return;
|
|
4930
|
+
let r = m.value;
|
|
4931
|
+
for (let t of e) {
|
|
4932
|
+
let e = Ge.get(t.key);
|
|
4933
|
+
[...He(t).values()].flat().some((t) => !e?.has(t)) && !r.filterLoadingMap.value[t.key] && Ke(t, t.searchQuery ?? "", "open");
|
|
4934
|
+
}
|
|
4935
|
+
}, { immediate: !0 });
|
|
4936
|
+
});
|
|
4937
|
+
let Je = (e, t, r) => {
|
|
4938
|
+
n("load-more", e.key, e.colDef, t, r), qe(e, t, r ? "child-load-more" : "load-more", r);
|
|
4939
|
+
}, Ye = (e, t, n) => {
|
|
4906
4940
|
J(hs(y.value, e, t.min, t.max, v.value, n), "range-change", e, "range");
|
|
4907
|
-
},
|
|
4941
|
+
}, Xe = () => {
|
|
4908
4942
|
for (let { timer: e } of u.values()) window.clearTimeout(e);
|
|
4909
4943
|
u.clear();
|
|
4910
|
-
},
|
|
4944
|
+
}, Ze = () => {
|
|
4911
4945
|
let e = [...u.entries()];
|
|
4912
|
-
|
|
4913
|
-
for (let [t, n] of e)
|
|
4914
|
-
},
|
|
4946
|
+
Xe();
|
|
4947
|
+
for (let [t, n] of e) Ye(t, n.value, n.colDef);
|
|
4948
|
+
}, X = (t, n, r) => {
|
|
4915
4949
|
if (e.rangeDebounceMs <= 0) {
|
|
4916
|
-
|
|
4950
|
+
Ye(t, n, r);
|
|
4917
4951
|
return;
|
|
4918
4952
|
}
|
|
4919
4953
|
let i = u.get(t);
|
|
4920
4954
|
i && window.clearTimeout(i.timer);
|
|
4921
4955
|
let a = window.setTimeout(() => {
|
|
4922
|
-
u.delete(t),
|
|
4956
|
+
u.delete(t), Ye(t, n, r);
|
|
4923
4957
|
}, e.rangeDebounceMs);
|
|
4924
4958
|
u.set(t, {
|
|
4925
4959
|
colDef: r,
|
|
@@ -4927,69 +4961,69 @@ function Ms(e, t, n) {
|
|
|
4927
4961
|
value: n
|
|
4928
4962
|
});
|
|
4929
4963
|
};
|
|
4930
|
-
C(
|
|
4931
|
-
let
|
|
4932
|
-
n("search-change", e.key, t, e.colDef),
|
|
4933
|
-
},
|
|
4934
|
-
|
|
4935
|
-
},
|
|
4964
|
+
C(Xe);
|
|
4965
|
+
let Z = (e, t) => {
|
|
4966
|
+
n("search-change", e.key, t, e.colDef), qe(e, t, "search");
|
|
4967
|
+
}, Qe = (e, t = e.searchQuery ?? "") => {
|
|
4968
|
+
qe(e, t, "open");
|
|
4969
|
+
}, $e = r(() => m.value.filterOptionsHandler.value != null), et = (e, t) => {
|
|
4936
4970
|
m.value.setFilterFacetSelections(e, t);
|
|
4937
|
-
},
|
|
4971
|
+
}, tt = (e, t, r = e.searchQuery ?? "") => {
|
|
4938
4972
|
let i = m.value;
|
|
4939
|
-
Do(i.filterFacetSelectionMap.value[e.key] ?? {}, t) || (
|
|
4940
|
-
},
|
|
4973
|
+
Do(i.filterFacetSelectionMap.value[e.key] ?? {}, t) || (et(e.key, t), n("facet-change", e.key, t, e.colDef), $e.value && qe(e, r, "facet-change"));
|
|
4974
|
+
}, nt = (t, r, i, a, o) => {
|
|
4941
4975
|
let s = K(t), c = s?.controlled ? e.controlledValues[t] ?? [] : b.value.get(r)?.values ?? [], l = s?.singleSelect ? a ? [i] : [] : a ? Array.from(new Set([...c, i])) : c.filter((e) => e !== i);
|
|
4942
4976
|
if (s?.controlled) {
|
|
4943
4977
|
n("controlled-change", t, l, s.colDef);
|
|
4944
4978
|
return;
|
|
4945
4979
|
}
|
|
4946
|
-
|
|
4980
|
+
De(t, r, l, a ? o : void 0), J(gs(y.value, r, l, v.value, G(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
4947
4981
|
};
|
|
4948
4982
|
return {
|
|
4949
|
-
resolvedFilters:
|
|
4950
|
-
appliedGroups:
|
|
4951
|
-
appliedCount:
|
|
4952
|
-
hasActiveFilters:
|
|
4953
|
-
showClearAll:
|
|
4954
|
-
visibleSuggestions:
|
|
4983
|
+
resolvedFilters: ye,
|
|
4984
|
+
appliedGroups: be,
|
|
4985
|
+
appliedCount: xe,
|
|
4986
|
+
hasActiveFilters: Se,
|
|
4987
|
+
showClearAll: Ce,
|
|
4988
|
+
visibleSuggestions: Te,
|
|
4955
4989
|
effectiveFilterModelType: v,
|
|
4956
4990
|
activeFilterModel: y,
|
|
4957
4991
|
effectiveFilterStore: m,
|
|
4958
4992
|
findResolvedFilter: K,
|
|
4959
|
-
getRepresentedFields:
|
|
4960
|
-
activateFilter:
|
|
4961
|
-
applyStagedFilters:
|
|
4962
|
-
cancelStagedFilters:
|
|
4963
|
-
clearAllFilters:
|
|
4964
|
-
getSuggestionKey:
|
|
4965
|
-
handleControlChange:
|
|
4966
|
-
handleFacetChange:
|
|
4967
|
-
handleLoadMore:
|
|
4968
|
-
handleSearchChange:
|
|
4993
|
+
getRepresentedFields: U,
|
|
4994
|
+
activateFilter: Qe,
|
|
4995
|
+
applyStagedFilters: Ie,
|
|
4996
|
+
cancelStagedFilters: Le,
|
|
4997
|
+
clearAllFilters: Fe,
|
|
4998
|
+
getSuggestionKey: Ee,
|
|
4999
|
+
handleControlChange: Be,
|
|
5000
|
+
handleFacetChange: tt,
|
|
5001
|
+
handleLoadMore: Je,
|
|
5002
|
+
handleSearchChange: Z,
|
|
4969
5003
|
handleSuggestionClick: (e) => {
|
|
4970
5004
|
if (e.filter.type === "value" && e.option) {
|
|
4971
5005
|
let t = K(e.field), n = ni(e.option, e.field), r = ti(e.option) ?? e.filter.value;
|
|
4972
|
-
t?.isAggregate ?
|
|
5006
|
+
t?.isAggregate ? ze(e.field, Zi({
|
|
4973
5007
|
checked: e.filter.checked,
|
|
4974
5008
|
option: e.option,
|
|
4975
5009
|
options: t.knownOptions ?? [],
|
|
4976
5010
|
state: t.aggregateSelectionState ?? []
|
|
4977
|
-
})) :
|
|
4978
|
-
} else
|
|
5011
|
+
})) : nt(e.field, n, r, e.filter.checked, e.option);
|
|
5012
|
+
} else Be(e.field, e.filter);
|
|
4979
5013
|
n("suggestion-click", e);
|
|
4980
5014
|
},
|
|
4981
5015
|
removeAppliedFilter: (e, t, n) => {
|
|
4982
5016
|
let r = n ?? K(e)?.type ?? "value";
|
|
4983
5017
|
if (r === "range" || !n && t === Os) {
|
|
4984
|
-
J(hs(y.value, e, null, null, v.value,
|
|
5018
|
+
J(hs(y.value, e, null, null, v.value, G(e) ?? K(e)?.colDef), "remove-filter", e, "range");
|
|
4985
5019
|
return;
|
|
4986
5020
|
}
|
|
4987
5021
|
if (r === "boolean" || !n && t === ks) {
|
|
4988
|
-
J(ps(y.value, e, null, v.value, "boolean",
|
|
5022
|
+
J(ps(y.value, e, null, v.value, "boolean", G(e) ?? K(e)?.colDef), "remove-filter", e, "boolean");
|
|
4989
5023
|
return;
|
|
4990
5024
|
}
|
|
4991
5025
|
if (r === "exists" || !n && t === As) {
|
|
4992
|
-
J(ms(y.value, e, !1, "text", v.value,
|
|
5026
|
+
J(ms(y.value, e, !1, "text", v.value, G(e) ?? K(e)?.colDef), "remove-filter", e, "exists");
|
|
4993
5027
|
return;
|
|
4994
5028
|
}
|
|
4995
5029
|
let i = K(e);
|
|
@@ -5000,14 +5034,14 @@ function Ms(e, t, n) {
|
|
|
5000
5034
|
options: i.knownOptions ?? [],
|
|
5001
5035
|
state: n
|
|
5002
5036
|
}) : n.filter((e) => e.id !== t);
|
|
5003
|
-
|
|
5037
|
+
ze(i.key, r, "remove-filter");
|
|
5004
5038
|
return;
|
|
5005
5039
|
}
|
|
5006
5040
|
let a = (b.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
5007
|
-
|
|
5041
|
+
De(K(e)?.key ?? e, e, a), J(gs(y.value, e, a, v.value, G(e) ?? K(e)?.colDef), "remove-filter", e, "value");
|
|
5008
5042
|
},
|
|
5009
|
-
setFacetSelections:
|
|
5010
|
-
usesHandlerFacets:
|
|
5043
|
+
setFacetSelections: et,
|
|
5044
|
+
usesHandlerFacets: $e
|
|
5011
5045
|
};
|
|
5012
5046
|
}
|
|
5013
5047
|
//#endregion
|
|
@@ -5202,37 +5236,37 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5202
5236
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
5203
5237
|
setup(e, { emit: n }) {
|
|
5204
5238
|
let c = e, l = re(e, "filterModel"), d = re(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: ee, removeAppliedFilter: D } = Ms(c, l, f), k = j("filters"), A = j({}), P = j(null), F = j(!1), I = j(!1), R = j(""), te = r(() => c.enableFilterSearch ? R.value.trim().toLowerCase() : ""), ne = r(() => te.value.length > 0), B = (e) => e.label.toLowerCase().includes(te.value);
|
|
5205
|
-
|
|
5239
|
+
H(ne, (e) => {
|
|
5206
5240
|
e && (P.value = null);
|
|
5207
|
-
}),
|
|
5241
|
+
}), H(P, (e) => {
|
|
5208
5242
|
e !== null && (R.value = "");
|
|
5209
5243
|
});
|
|
5210
|
-
let ie = (e) => e.colDef.context?.filterCollapsedByDefault === !0,
|
|
5244
|
+
let ie = (e) => e.colDef.context?.filterCollapsedByDefault === !0, V = r(() => ne.value ? p.value.filter(B) : P.value === null ? p.value : p.value.filter((e) => e.category === P.value)), ae = r(() => V.value.filter((e) => !ie(e))), se = r(() => V.value.filter(ie)), W = r(() => P.value !== null), le = r(() => W.value || ne.value || F.value ? [...ae.value, ...se.value] : ae.value), ue = r(() => ne.value ? "No filters match your search." : "No filters in this category."), de = r(() => `${F.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), fe = r(() => k.value === "filters" && !W.value && !ne.value && se.value.length > 0), G = r(() => c.externalFilters.filter((e) => e.values.length > 0)), pe = r(() => G.value.filter((e) => e.removable !== !1)), me = r(() => G.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), ge = r(() => h.value + me.value), _e = r(() => g.value || he.value > 0), K = r(() => !c.readOnly && (_e.value || c.staged)), ve = r(() => le.value.map((e) => ({
|
|
5211
5245
|
...e,
|
|
5212
5246
|
isOpen: A.value[e.key] ?? e.isOpen ?? !1
|
|
5213
|
-
}))),
|
|
5247
|
+
}))), ye = r(() => [{
|
|
5214
5248
|
label: "Filters",
|
|
5215
5249
|
value: "filters"
|
|
5216
5250
|
}, {
|
|
5217
5251
|
label: `Applied (${ge.value})`,
|
|
5218
5252
|
value: "applied"
|
|
5219
|
-
}]),
|
|
5253
|
+
}]), be = r(() => ({
|
|
5220
5254
|
"--flex-align": "stretch",
|
|
5221
5255
|
"--flex-gap": "0",
|
|
5222
5256
|
flex: `0 0 ${c.width}`,
|
|
5223
5257
|
minHeight: "0",
|
|
5224
5258
|
width: c.width
|
|
5225
|
-
})),
|
|
5259
|
+
})), xe = (e) => {
|
|
5226
5260
|
(e === "filters" || e === "applied") && (k.value = e);
|
|
5227
|
-
},
|
|
5261
|
+
}, Se = (e, t) => {
|
|
5228
5262
|
A.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
5229
|
-
}, Se = () => {
|
|
5230
|
-
I.value = !1;
|
|
5231
5263
|
}, Ce = () => {
|
|
5264
|
+
I.value = !1;
|
|
5265
|
+
}, we = () => {
|
|
5232
5266
|
g.value && x(), pe.value.forEach((e) => {
|
|
5233
5267
|
e.values.forEach((t) => f("remove-external-filter", e.key, t.value));
|
|
5234
5268
|
}), I.value = !1;
|
|
5235
|
-
},
|
|
5269
|
+
}, Te = () => {
|
|
5236
5270
|
I.value = !0;
|
|
5237
5271
|
};
|
|
5238
5272
|
return (n, r) => (O(), o(t, null, [d.value ? a("v-if", !0) : (O(), o("div", {
|
|
@@ -5241,15 +5275,15 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5241
5275
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
5242
5276
|
"data-testid": "pv-filter-panel",
|
|
5243
5277
|
"aria-label": e.ariaLabel,
|
|
5244
|
-
style: S(
|
|
5278
|
+
style: S(be.value)
|
|
5245
5279
|
}, [
|
|
5246
5280
|
s("div", Ps, [u(br, {
|
|
5247
5281
|
modelValue: k.value,
|
|
5248
|
-
options:
|
|
5282
|
+
options: ye.value,
|
|
5249
5283
|
class: "pv-filter-panel-mode-control",
|
|
5250
5284
|
size: "xl",
|
|
5251
|
-
"onUpdate:modelValue":
|
|
5252
|
-
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (O(), i(
|
|
5285
|
+
"onUpdate:modelValue": xe
|
|
5286
|
+
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (O(), i(q, {
|
|
5253
5287
|
key: 0,
|
|
5254
5288
|
ariaLabel: "Collapse filters",
|
|
5255
5289
|
leftIcon: "chevrons-left",
|
|
@@ -5257,7 +5291,7 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5257
5291
|
variant: "secondary",
|
|
5258
5292
|
onClick: r[0] ||= (e) => d.value = !0
|
|
5259
5293
|
}))]),
|
|
5260
|
-
s("div", Fs, [
|
|
5294
|
+
s("div", Fs, [U(s("div", Is, [
|
|
5261
5295
|
!e.readOnly && z(_).length ? (O(), o("section", Ls, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Rs, [(O(!0), o(t, null, M(z(_), (e) => (O(), i(Sr, {
|
|
5262
5296
|
key: z(C)(e),
|
|
5263
5297
|
icon: e.icon,
|
|
@@ -5288,7 +5322,7 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5288
5322
|
"onUpdate:modelValue": r[2] ||= (e) => R.value = e,
|
|
5289
5323
|
placeholder: e.filterSearchPlaceholder
|
|
5290
5324
|
}, null, 8, ["modelValue", "placeholder"])])) : a("v-if", !0),
|
|
5291
|
-
z(p).length ?
|
|
5325
|
+
z(p).length ? V.value.length ? (O(), o("div", Hs, [(O(!0), o(t, null, M(ve.value, (t) => (O(), i(ka, {
|
|
5292
5326
|
key: t.key,
|
|
5293
5327
|
"disable-while-loading": e.disableWhileLoading,
|
|
5294
5328
|
filter: t,
|
|
@@ -5296,7 +5330,7 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5296
5330
|
onFocusChange: r[3] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
5297
5331
|
onHandleSettingsIcon: r[4] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
5298
5332
|
onLoadMore: (e, n) => z(T)(t, e, n),
|
|
5299
|
-
onOpenChange: (e) =>
|
|
5333
|
+
onOpenChange: (e) => Se(t, e),
|
|
5300
5334
|
onSearchChange: (e) => z(E)(t, e)
|
|
5301
5335
|
}, null, 8, [
|
|
5302
5336
|
"disable-while-loading",
|
|
@@ -5305,14 +5339,14 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5305
5339
|
"onLoadMore",
|
|
5306
5340
|
"onOpenChange",
|
|
5307
5341
|
"onSearchChange"
|
|
5308
|
-
]))), 128)),
|
|
5342
|
+
]))), 128)), fe.value ? (O(), i(q, {
|
|
5309
5343
|
key: 0,
|
|
5310
5344
|
class: "pv-filter-panel-collapsed-filters-toggle pv-text-brand",
|
|
5311
|
-
label:
|
|
5345
|
+
label: de.value,
|
|
5312
5346
|
variant: "ghost",
|
|
5313
5347
|
onClick: r[5] ||= (e) => F.value = !F.value
|
|
5314
|
-
}, null, 8, ["label"])) : a("v-if", !0)])) : (O(), o("div", Vs, L(
|
|
5315
|
-
], 512), [[
|
|
5348
|
+
}, null, 8, ["label"])) : a("v-if", !0)])) : (O(), o("div", Vs, L(ue.value), 1)) : (O(), o("div", Bs, " No filters available. "))
|
|
5349
|
+
], 512), [[oe, k.value === "filters"]]), U(u(za, {
|
|
5316
5350
|
"applied-count": z(h),
|
|
5317
5351
|
"applied-groups": z(m),
|
|
5318
5352
|
"external-filters": G.value,
|
|
@@ -5325,18 +5359,18 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5325
5359
|
"external-filters",
|
|
5326
5360
|
"read-only",
|
|
5327
5361
|
"onRemoveFilter"
|
|
5328
|
-
]), [[
|
|
5329
|
-
|
|
5362
|
+
]), [[oe, k.value === "applied"]])]),
|
|
5363
|
+
K.value ? (O(), o("div", Us, [s("div", Ws, [_e.value && !e.readOnly ? (O(), i(q, {
|
|
5330
5364
|
key: 0,
|
|
5331
5365
|
class: "pv-text-brand",
|
|
5332
5366
|
label: e.clearAllLabel,
|
|
5333
5367
|
variant: "ghost",
|
|
5334
|
-
onClick:
|
|
5335
|
-
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (O(), o(t, { key: 1 }, [u(
|
|
5368
|
+
onClick: Te
|
|
5369
|
+
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (O(), o(t, { key: 1 }, [u(q, {
|
|
5336
5370
|
label: e.cancelLabel,
|
|
5337
5371
|
variant: "ghost",
|
|
5338
5372
|
onClick: z(b)
|
|
5339
|
-
}, null, 8, ["label", "onClick"]), u(
|
|
5373
|
+
}, null, 8, ["label", "onClick"]), u(q, {
|
|
5340
5374
|
label: e.applyLabel,
|
|
5341
5375
|
variant: "primary",
|
|
5342
5376
|
onClick: z(y)
|
|
@@ -5347,15 +5381,15 @@ var Ns = ["aria-label"], Ps = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5347
5381
|
header: e.clearAllHeader,
|
|
5348
5382
|
style: { "--max-width": "440px" }
|
|
5349
5383
|
}, {
|
|
5350
|
-
body:
|
|
5351
|
-
footer:
|
|
5384
|
+
body: ce(() => [s("p", Gs, L(e.clearAllBody), 1)]),
|
|
5385
|
+
footer: ce(() => [s("div", Ks, [u(q, {
|
|
5352
5386
|
label: e.cancelLabel,
|
|
5353
5387
|
variant: "ghost",
|
|
5354
|
-
onClick:
|
|
5355
|
-
}, null, 8, ["label"]), u(
|
|
5388
|
+
onClick: Ce
|
|
5389
|
+
}, null, 8, ["label"]), u(q, {
|
|
5356
5390
|
label: e.clearAllLabel,
|
|
5357
5391
|
variant: "primary",
|
|
5358
|
-
onClick:
|
|
5392
|
+
onClick: we
|
|
5359
5393
|
}, null, 8, ["label"])])]),
|
|
5360
5394
|
_: 1
|
|
5361
5395
|
}, 8, ["modelValue", "header"])], 64));
|
|
@@ -5693,15 +5727,15 @@ var Jc = {
|
|
|
5693
5727
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
5694
5728
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
5695
5729
|
if ($(a) && o.transform !== "strict") {
|
|
5696
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = kc(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = kc(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = kc(x, ["dark"]), w = y || {}, { dark: T } = w, E = kc(w, ["dark"]), ee = $(t) ? this._toVariables({ primitive: t }, o) : {}, D = $(_) ? this._toVariables({ semantic: _ }, o) : {}, O = $(C) ? this._toVariables({ light: C }, o) : {}, k = $(S) ? this._toVariables({ dark: S }, o) : {}, A = $(b) ? this._toVariables({ semantic: b }, o) : {}, j = $(E) ? this._toVariables({ light: E }, o) : {}, M = $(T) ? this._toVariables({ dark: T }, o) : {}, [N, P] = [ee.declarations ?? "", ee.tokens], [F, I] = [D.declarations ?? "", D.tokens || []], [L, R] = [O.declarations ?? "", O.tokens || []], [z, te] = [k.declarations ?? "", k.tokens || []], [ne, re] = [A.declarations ?? "", A.tokens || []], [B, ie] = [j.declarations ?? "", j.tokens || []], [
|
|
5730
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = kc(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = kc(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = kc(x, ["dark"]), w = y || {}, { dark: T } = w, E = kc(w, ["dark"]), ee = $(t) ? this._toVariables({ primitive: t }, o) : {}, D = $(_) ? this._toVariables({ semantic: _ }, o) : {}, O = $(C) ? this._toVariables({ light: C }, o) : {}, k = $(S) ? this._toVariables({ dark: S }, o) : {}, A = $(b) ? this._toVariables({ semantic: b }, o) : {}, j = $(E) ? this._toVariables({ light: E }, o) : {}, M = $(T) ? this._toVariables({ dark: T }, o) : {}, [N, P] = [ee.declarations ?? "", ee.tokens], [F, I] = [D.declarations ?? "", D.tokens || []], [L, R] = [O.declarations ?? "", O.tokens || []], [z, te] = [k.declarations ?? "", k.tokens || []], [ne, re] = [A.declarations ?? "", A.tokens || []], [B, ie] = [j.declarations ?? "", j.tokens || []], [V, ae] = [M.declarations ?? "", M.tokens || []];
|
|
5697
5731
|
s = this.transformCSS(e, N, "light", "variable", o, r, i), c = P, l = `${this.transformCSS(e, `${F}${L}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${z}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
5698
5732
|
...I,
|
|
5699
5733
|
...R,
|
|
5700
5734
|
...te
|
|
5701
|
-
])], d = `${this.transformCSS(e, `${ne}${B}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${
|
|
5735
|
+
])], d = `${this.transformCSS(e, `${ne}${B}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${V}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
5702
5736
|
...re,
|
|
5703
5737
|
...ie,
|
|
5704
|
-
...
|
|
5738
|
+
...ae
|
|
5705
5739
|
])], p = ac(a.css, { dt: Wc });
|
|
5706
5740
|
}
|
|
5707
5741
|
return {
|
|
@@ -6101,7 +6135,7 @@ function al(e) {
|
|
|
6101
6135
|
nonce: u
|
|
6102
6136
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), yc(i.value, "data-primevue-style-id", c), _c(i.value, o), i.value.onload = function(e) {
|
|
6103
6137
|
return ee?.(e, { name: c });
|
|
6104
|
-
}, C?.(c)), !n.value && (k =
|
|
6138
|
+
}, C?.(c)), !n.value && (k = H(r, function(e) {
|
|
6105
6139
|
i.value.textContent = e, T?.(c);
|
|
6106
6140
|
}, { immediate: !0 }), n.value = !0);
|
|
6107
6141
|
}
|
|
@@ -6612,7 +6646,7 @@ function Il(e, t) {
|
|
|
6612
6646
|
Ac.on("theme:change", function(t) {
|
|
6613
6647
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
6614
6648
|
});
|
|
6615
|
-
var i =
|
|
6649
|
+
var i = H(t.config, function(e, t) {
|
|
6616
6650
|
wl.emit("config:change", {
|
|
6617
6651
|
newValue: e,
|
|
6618
6652
|
oldValue: t
|
|
@@ -6620,7 +6654,7 @@ function Il(e, t) {
|
|
|
6620
6654
|
}, {
|
|
6621
6655
|
immediate: !0,
|
|
6622
6656
|
deep: !0
|
|
6623
|
-
}), a =
|
|
6657
|
+
}), a = H(function() {
|
|
6624
6658
|
return t.config.ripple;
|
|
6625
6659
|
}, function(e, t) {
|
|
6626
6660
|
wl.emit("config:ripple:change", {
|
|
@@ -6630,7 +6664,7 @@ function Il(e, t) {
|
|
|
6630
6664
|
}, {
|
|
6631
6665
|
immediate: !0,
|
|
6632
6666
|
deep: !0
|
|
6633
|
-
}), o =
|
|
6667
|
+
}), o = H(function() {
|
|
6634
6668
|
return t.config.theme;
|
|
6635
6669
|
}, function(e, i) {
|
|
6636
6670
|
n.value || Yc.setTheme(e), t.config.unstyled || r(), n.value = !1, wl.emit("config:theme:change", {
|
|
@@ -6640,7 +6674,7 @@ function Il(e, t) {
|
|
|
6640
6674
|
}, {
|
|
6641
6675
|
immediate: !0,
|
|
6642
6676
|
deep: !1
|
|
6643
|
-
}), s =
|
|
6677
|
+
}), s = H(function() {
|
|
6644
6678
|
return t.config.unstyled;
|
|
6645
6679
|
}, function(e, n) {
|
|
6646
6680
|
!e && t.config.theme && r(), wl.emit("config:unstyled:change", {
|