@turquoisehealth/pit-viper 2.210.0 → 2.210.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +19 -18
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1504 -1486
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +434 -433
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +131 -130
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +214 -213
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +115 -114
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +662 -661
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +607 -606
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +18 -17
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +19 -18
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +627 -626
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +34 -33
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +81 -80
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +465 -464
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +224 -223
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
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, createTextVNode as c, createVNode as l, defineComponent as u, defineCustomElement as d, getCurrentInstance as f, getCurrentScope as p, inject as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onBeforeUpdate as S, onMounted as C, onScopeDispose as w, onUnmounted as T, openBlock as E, reactive as D, readonly as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, defineCustomElement as d, getCurrentInstance as f, getCurrentScope as p, inject as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onBeforeUpdate as S, onMounted as C, onScopeDispose as w, onUnmounted as T, openBlock as E, reactive as D, readonly as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toValue as F, unref as I, useId as ee, useModel as te, useSlots as ne, useTemplateRef as re, vModelCheckbox as ie, vModelDynamic as L, vModelText as ae, vShow as oe, watch as R, watchEffect as se, withCtx as ce, withDirectives as z, withModifiers as le } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var B = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, de = Object.getOwnPropertyNames, fe = Object.prototype.hasOwnProperty, pe = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -44,7 +44,7 @@ function Te(e, t = {}) {
|
|
|
44
44
|
clearTimeout(e), i(), i = V;
|
|
45
45
|
}, o;
|
|
46
46
|
return (s) => {
|
|
47
|
-
let c =
|
|
47
|
+
let c = F(e), l = F(t.maxWait);
|
|
48
48
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
49
49
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
50
50
|
n && a(n), r = void 0, e(o());
|
|
@@ -89,20 +89,20 @@ function Me(e, t, n) {
|
|
|
89
89
|
var H = _e ? window : void 0;
|
|
90
90
|
_e && window.document, _e && window.navigator, _e && window.location;
|
|
91
91
|
function U(e) {
|
|
92
|
-
let t =
|
|
92
|
+
let t = F(e);
|
|
93
93
|
return t?.$el ?? t;
|
|
94
94
|
}
|
|
95
95
|
function Ne(...e) {
|
|
96
96
|
let t = [], n = () => {
|
|
97
97
|
t.forEach((e) => e()), t.length = 0;
|
|
98
98
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
99
|
-
let t = Ee(
|
|
99
|
+
let t = Ee(F(e[0])).filter((e) => e != null);
|
|
100
100
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
101
101
|
}), o = Me(() => [
|
|
102
102
|
a.value?.map((e) => U(e)) ?? [H].filter((e) => e != null),
|
|
103
|
-
Ee(
|
|
104
|
-
Ee(
|
|
105
|
-
|
|
103
|
+
Ee(F(a.value ? e[1] : e[0])),
|
|
104
|
+
Ee(I(a.value ? e[2] : e[1])),
|
|
105
|
+
F(a.value ? e[3] : e[2])
|
|
106
106
|
], ([e, r, a, o]) => {
|
|
107
107
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
108
108
|
let s = be(o) ? { ...o } : o;
|
|
@@ -125,7 +125,7 @@ function Fe(e, t, n = {}) {
|
|
|
125
125
|
let e = { passive: !0 };
|
|
126
126
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", V, e)), r.document.documentElement.addEventListener("click", V, e);
|
|
127
127
|
}
|
|
128
|
-
let c = !0, l = (e) =>
|
|
128
|
+
let c = !0, l = (e) => F(i).some((t) => {
|
|
129
129
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
130
130
|
{
|
|
131
131
|
let n = U(t);
|
|
@@ -133,11 +133,11 @@ function Fe(e, t, n = {}) {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
function u(e) {
|
|
136
|
-
let t =
|
|
136
|
+
let t = F(e);
|
|
137
137
|
return t && t.$.subTree.shapeFlag === 16;
|
|
138
138
|
}
|
|
139
139
|
function d(e, t) {
|
|
140
|
-
let n =
|
|
140
|
+
let n = F(e), r = n.$.subTree && n.$.subTree.children;
|
|
141
141
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
142
142
|
}
|
|
143
143
|
let f = (n) => {
|
|
@@ -181,7 +181,7 @@ function Fe(e, t, n = {}) {
|
|
|
181
181
|
}
|
|
182
182
|
/* @__NO_SIDE_EFFECTS__ */
|
|
183
183
|
function Ie() {
|
|
184
|
-
let e =
|
|
184
|
+
let e = N(!1), t = f();
|
|
185
185
|
return t && C(() => {
|
|
186
186
|
e.value = !0;
|
|
187
187
|
}, t), e;
|
|
@@ -195,7 +195,7 @@ function Re(e, t, n = {}) {
|
|
|
195
195
|
let { window: i = H, ...a } = n, o, s = /* @__PURE__ */ Le(() => i && "MutationObserver" in i), c = () => {
|
|
196
196
|
o &&= (o.disconnect(), void 0);
|
|
197
197
|
}, l = R(r(() => {
|
|
198
|
-
let t = Ee(
|
|
198
|
+
let t = Ee(F(e)).map(U).filter(ve);
|
|
199
199
|
return new Set(t);
|
|
200
200
|
}), (e) => {
|
|
201
201
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -241,14 +241,14 @@ function Ve(...e) {
|
|
|
241
241
|
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]);
|
|
242
242
|
let { target: i = H, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Be(t);
|
|
243
243
|
return Ne(i, a, (e) => {
|
|
244
|
-
e.repeat &&
|
|
244
|
+
e.repeat && F(s) || c(e) && n(e);
|
|
245
245
|
}, o);
|
|
246
246
|
}
|
|
247
247
|
function He(e, t, n = {}) {
|
|
248
248
|
let { window: i = H, ...a } = n, o, s = /* @__PURE__ */ Le(() => i && "ResizeObserver" in i), c = () => {
|
|
249
249
|
o &&= (o.disconnect(), void 0);
|
|
250
250
|
}, l = R(r(() => {
|
|
251
|
-
let t =
|
|
251
|
+
let t = F(e);
|
|
252
252
|
return Array.isArray(t) ? t.map((e) => U(e)) : [U(t)];
|
|
253
253
|
}), (e) => {
|
|
254
254
|
if (c(), s.value && i) {
|
|
@@ -267,7 +267,7 @@ function He(e, t, n = {}) {
|
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
function Ue(e, t = {}) {
|
|
270
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
270
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = N(0), c = N(0), l = N(0), u = N(0), d = N(0), f = N(0), p = N(0), m = N(0);
|
|
271
271
|
function h() {
|
|
272
272
|
let t = U(e);
|
|
273
273
|
if (!t) {
|
|
@@ -298,7 +298,7 @@ function Ue(e, t = {}) {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function We(e, t = {}) {
|
|
301
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = H } = t, s =
|
|
301
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = H } = t, s = N(!1), c, l = (e) => {
|
|
302
302
|
let t = e ? n : i;
|
|
303
303
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
304
304
|
};
|
|
@@ -344,7 +344,7 @@ var Ge = /* @__PURE__ */ u({
|
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/web-components/utils.ts
|
|
346
346
|
function Ye() {
|
|
347
|
-
let e =
|
|
347
|
+
let e = k(!1), t = f()?.root || {};
|
|
348
348
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
@@ -364,7 +364,7 @@ var Xe = [
|
|
|
364
364
|
size: { type: null }
|
|
365
365
|
},
|
|
366
366
|
setup(e) {
|
|
367
|
-
let t = e, n = Ye(), i =
|
|
367
|
+
let t = e, n = Ye(), i = k(null), a = r(() => ({
|
|
368
368
|
"pv-icon": !0,
|
|
369
369
|
[`pv-icon-${t.size}`]: t.size != null && Xe.includes(t.size)
|
|
370
370
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
@@ -409,7 +409,7 @@ var Xe = [
|
|
|
409
409
|
return (e, t) => (E(), o("div", {
|
|
410
410
|
class: v(i.value),
|
|
411
411
|
"data-testid": "pv-counter-badge"
|
|
412
|
-
},
|
|
412
|
+
}, P(n.value), 3));
|
|
413
413
|
}
|
|
414
414
|
}), et = ".pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}", tt = (e, t) => {
|
|
415
415
|
let n = e.__vccOpts || e;
|
|
@@ -475,7 +475,7 @@ var Xe = [
|
|
|
475
475
|
name: e.leftIcon,
|
|
476
476
|
"data-testid": "pv-button-left-icon"
|
|
477
477
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
478
|
-
e.label ? (E(), o("span", it,
|
|
478
|
+
e.label ? (E(), o("span", it, P(e.label), 1)) : a("v-if", !0),
|
|
479
479
|
e.rightCounterBadge ? (E(), i(nt, {
|
|
480
480
|
key: 3,
|
|
481
481
|
value: e.rightCounterBadge,
|
|
@@ -1258,18 +1258,18 @@ function Xn(e, t) {
|
|
|
1258
1258
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1259
1259
|
}
|
|
1260
1260
|
function Zn(e, t = {}) {
|
|
1261
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ye(), l = i ??
|
|
1261
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ye(), l = i ?? ne(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = k(d());
|
|
1262
1262
|
S(() => {
|
|
1263
1263
|
f.value = d();
|
|
1264
1264
|
});
|
|
1265
|
-
let p =
|
|
1265
|
+
let p = k(!1), m = null, h = null, g = () => {
|
|
1266
1266
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
1267
1267
|
}, _ = () => {
|
|
1268
1268
|
if (!c.value) {
|
|
1269
1269
|
p.value = !1;
|
|
1270
1270
|
return;
|
|
1271
1271
|
}
|
|
1272
|
-
let t =
|
|
1272
|
+
let t = I(n);
|
|
1273
1273
|
if (!t) {
|
|
1274
1274
|
p.value = !1;
|
|
1275
1275
|
return;
|
|
@@ -1283,7 +1283,7 @@ function Zn(e, t = {}) {
|
|
|
1283
1283
|
}, v = () => {
|
|
1284
1284
|
if (!c.value) return;
|
|
1285
1285
|
g();
|
|
1286
|
-
let t =
|
|
1286
|
+
let t = I(n);
|
|
1287
1287
|
if (!t) {
|
|
1288
1288
|
p.value = !1;
|
|
1289
1289
|
return;
|
|
@@ -1296,7 +1296,7 @@ function Zn(e, t = {}) {
|
|
|
1296
1296
|
characterData: !0
|
|
1297
1297
|
}));
|
|
1298
1298
|
};
|
|
1299
|
-
return C(v), x(g), R(() =>
|
|
1299
|
+
return C(v), x(g), R(() => I(n), () => {
|
|
1300
1300
|
c.value && v();
|
|
1301
1301
|
}), {
|
|
1302
1302
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1307,7 +1307,7 @@ function Zn(e, t = {}) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
//#endregion
|
|
1309
1309
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1310
|
-
var Qn = ["popover"], $n =
|
|
1310
|
+
var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
1311
1311
|
__name: "PvPopoverV2",
|
|
1312
1312
|
props: /* @__PURE__ */ h({
|
|
1313
1313
|
disableAutoPlacement: {
|
|
@@ -1362,12 +1362,13 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1362
1362
|
}),
|
|
1363
1363
|
emits: ["update:modelValue"],
|
|
1364
1364
|
setup(e) {
|
|
1365
|
-
let t = e, c =
|
|
1365
|
+
let t = e, c = te(e, "modelValue"), l = f(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: p } = Zn("content", { host: u }), m = r(() => u ? p.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1366
1366
|
"anchor-name: --pv-anchor",
|
|
1367
1367
|
"position-area: bottom",
|
|
1368
1368
|
"position-try-fallbacks: flip-block",
|
|
1369
|
-
"position-visibility: anchors-visible"
|
|
1370
|
-
|
|
1369
|
+
"position-visibility: anchors-visible",
|
|
1370
|
+
`anchor-scope: ${$n}`
|
|
1371
|
+
].every((e) => CSS.supports(e)), g = k(!1), v = k(null), y = k(null), x = k(null), S = k(null), w = We(y), D = We(S), O = k(!1), A = {
|
|
1371
1372
|
"top-center": "top",
|
|
1372
1373
|
"bottom-center": "bottom",
|
|
1373
1374
|
"center-left": "left",
|
|
@@ -1409,26 +1410,26 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1409
1410
|
area: "bottom span-left",
|
|
1410
1411
|
margin: "margin-block-start"
|
|
1411
1412
|
}
|
|
1412
|
-
}, N = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), P = r(() => h ? { "anchor-name":
|
|
1413
|
+
}, N = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), P = r(() => h ? { "anchor-scope": $n } : void 0), F = r(() => h ? { "anchor-name": $n } : void 0), ee = r(() => {
|
|
1413
1414
|
let e = M[t.position];
|
|
1414
1415
|
return {
|
|
1415
|
-
"position-anchor":
|
|
1416
|
+
"position-anchor": $n,
|
|
1416
1417
|
"position-area": e.area,
|
|
1417
1418
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1418
1419
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1419
1420
|
};
|
|
1420
|
-
}),
|
|
1421
|
+
}), ne = () => {}, re = () => ({});
|
|
1421
1422
|
if (!h) {
|
|
1422
1423
|
let e = [];
|
|
1423
1424
|
t.disableAutoPlacement || e.push(In({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Fn(t.offset));
|
|
1424
1425
|
let n = qn(x, S, {
|
|
1425
|
-
placement:
|
|
1426
|
+
placement: A[t.position],
|
|
1426
1427
|
strategy: t.positioningStrategy,
|
|
1427
1428
|
middleware: e
|
|
1428
1429
|
});
|
|
1429
|
-
|
|
1430
|
+
ne = n.update, re = () => n.floatingStyles.value;
|
|
1430
1431
|
let i = Ue(x), a = /* @__PURE__ */ Oe(() => {
|
|
1431
|
-
c.value &&
|
|
1432
|
+
c.value && ne();
|
|
1432
1433
|
}, 5);
|
|
1433
1434
|
R([
|
|
1434
1435
|
i.top,
|
|
@@ -1457,7 +1458,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1457
1458
|
}, B = () => {
|
|
1458
1459
|
let e = S.value;
|
|
1459
1460
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1460
|
-
}, ue = r(() => t.showOnHover ? t.disableInteractive ?
|
|
1461
|
+
}, ue = r(() => t.showOnHover ? t.disableInteractive ? w.value || O.value : w.value || D.value || O.value : !1), de = () => {
|
|
1461
1462
|
t.showOnHover || le(L ? !1 : !c.value);
|
|
1462
1463
|
}, fe = (e) => {
|
|
1463
1464
|
let t = e.newState === "open";
|
|
@@ -1467,7 +1468,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1467
1468
|
};
|
|
1468
1469
|
return R(c, async (e) => {
|
|
1469
1470
|
if (!h) {
|
|
1470
|
-
e &&
|
|
1471
|
+
e && ne();
|
|
1471
1472
|
return;
|
|
1472
1473
|
}
|
|
1473
1474
|
await _(), B();
|
|
@@ -1484,30 +1485,30 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1484
1485
|
}), R(m, (e) => {
|
|
1485
1486
|
e ? h && c.value && _(B) : (se(), ce(), c.value = !1);
|
|
1486
1487
|
}), C(() => {
|
|
1487
|
-
x.value = y.value,
|
|
1488
|
+
x.value = y.value, g.value = !0, c.value && _(() => h ? B() : ne());
|
|
1488
1489
|
}), T(() => {
|
|
1489
1490
|
se(), ce();
|
|
1490
1491
|
}), (r, l) => (E(), o("div", {
|
|
1491
1492
|
ref_key: "root",
|
|
1492
1493
|
ref: v,
|
|
1493
|
-
style: { width: "fit-content" },
|
|
1494
|
+
style: b([{ width: "fit-content" }, P.value]),
|
|
1494
1495
|
onKeydown: pe
|
|
1495
1496
|
}, [s("div", {
|
|
1496
1497
|
ref_key: "triggerWrapper",
|
|
1497
1498
|
ref: y,
|
|
1498
|
-
style: b(
|
|
1499
|
+
style: b(F.value),
|
|
1499
1500
|
onClick: de,
|
|
1500
|
-
onFocusin: l[0] ||= (e) =>
|
|
1501
|
-
onFocusout: l[1] ||= (e) =>
|
|
1502
|
-
}, [
|
|
1501
|
+
onFocusin: l[0] ||= (e) => O.value = !0,
|
|
1502
|
+
onFocusout: l[1] ||= (e) => O.value = !1
|
|
1503
|
+
}, [j(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (E(), o("div", {
|
|
1503
1504
|
key: 0,
|
|
1504
1505
|
ref_key: "floating",
|
|
1505
1506
|
ref: S,
|
|
1506
1507
|
class: "pv-floating pv-floating-native",
|
|
1507
1508
|
popover: N.value,
|
|
1508
|
-
style: b(
|
|
1509
|
+
style: b(ee.value),
|
|
1509
1510
|
onToggle: fe
|
|
1510
|
-
}, [
|
|
1511
|
+
}, [j(r.$slots, "content")], 44, Qn)) : m.value ? (E(), i(n, {
|
|
1511
1512
|
key: 1,
|
|
1512
1513
|
to: e.teleportLocation,
|
|
1513
1514
|
disabled: !t.useTeleport
|
|
@@ -1516,9 +1517,9 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1516
1517
|
ref: S,
|
|
1517
1518
|
class: "pv-floating",
|
|
1518
1519
|
style: b(ie.value)
|
|
1519
|
-
}, [
|
|
1520
|
+
}, [j(r.$slots, "content")], 4), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1520
1521
|
}
|
|
1521
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1522
|
+
}), [["styles", [".pv-floating-native[data-v-08e2d92a]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-08e2d92a]>.pv-popover,.pv-floating-native>slot[name=content][data-v-08e2d92a]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-08e2d92a"]]), tr = { class: "pv-relative" }, nr = ["disabled", "placeholder"], rr = {
|
|
1522
1523
|
key: 0,
|
|
1523
1524
|
"data-testid": "pv-search-input-shortcut",
|
|
1524
1525
|
class: "pv-kbd"
|
|
@@ -1543,7 +1544,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1543
1544
|
}),
|
|
1544
1545
|
emits: ["update:modelValue"],
|
|
1545
1546
|
setup(e, { expose: t }) {
|
|
1546
|
-
let n = e, i = re("search-input"), c =
|
|
1547
|
+
let n = e, i = re("search-input"), c = te(e, "modelValue"), l = r(() => ({
|
|
1547
1548
|
"pv-input-search": !0,
|
|
1548
1549
|
"pv-full-width": !0,
|
|
1549
1550
|
"pv-input-padded-end": !0
|
|
@@ -1561,7 +1562,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1561
1562
|
disabled: e.disabled,
|
|
1562
1563
|
class: v(l.value),
|
|
1563
1564
|
placeholder: e.placeholder
|
|
1564
|
-
}, null, 10, nr), [[ae, c.value]]), e.displayShortcut ? (E(), o("kbd", rr,
|
|
1565
|
+
}, null, 10, nr), [[ae, c.value]]), e.displayShortcut ? (E(), o("kbd", rr, P(ir))) : a("v-if", !0)]));
|
|
1565
1566
|
}
|
|
1566
1567
|
}), or = [
|
|
1567
1568
|
"aria-label",
|
|
@@ -1579,7 +1580,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1579
1580
|
}),
|
|
1580
1581
|
emits: ["update:modelValue"],
|
|
1581
1582
|
setup(e) {
|
|
1582
|
-
let t =
|
|
1583
|
+
let t = te(e, "modelValue");
|
|
1583
1584
|
return (n, r) => z((E(), o("input", {
|
|
1584
1585
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
1585
1586
|
class: "pv-checkbox",
|
|
@@ -1661,7 +1662,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1661
1662
|
},
|
|
1662
1663
|
emits: ["focus-value", "toggle-value"],
|
|
1663
1664
|
setup(e, { emit: t }) {
|
|
1664
|
-
let n = e, l = t, u =
|
|
1665
|
+
let n = e, l = t, u = ne(), d = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), f = r(() => !n.renderer && (d.value || !!u["result-count"])), p = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), m = r(() => ({
|
|
1665
1666
|
disabled: n.disabled,
|
|
1666
1667
|
highlightSearchText: !0,
|
|
1667
1668
|
id: n.value,
|
|
@@ -1709,12 +1710,12 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1709
1710
|
"indeterminate",
|
|
1710
1711
|
"modelValue"
|
|
1711
1712
|
])),
|
|
1712
|
-
e.renderer ? (E(), i(
|
|
1713
|
-
s("span", ur,
|
|
1714
|
-
e.subduedText ? (E(), o("span", dr,
|
|
1715
|
-
e.subText ? (E(), o("span", fr,
|
|
1713
|
+
e.renderer ? (E(), i(M(e.renderer), y(g({ key: 2 }, m.value)), null, 16)) : (E(), o("span", lr, [
|
|
1714
|
+
s("span", ur, P(e.label), 1),
|
|
1715
|
+
e.subduedText ? (E(), o("span", dr, P(e.subduedText), 1)) : a("v-if", !0),
|
|
1716
|
+
e.subText ? (E(), o("span", fr, P(e.subText), 1)) : a("v-if", !0)
|
|
1716
1717
|
])),
|
|
1717
|
-
f.value ? (E(), o("span", pr, [
|
|
1718
|
+
f.value ? (E(), o("span", pr, [j(t.$slots, "result-count", {}, () => [c("(" + P(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
1718
1719
|
e.showFocusAction ? (E(), i(at, {
|
|
1719
1720
|
key: 5,
|
|
1720
1721
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -1759,7 +1760,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1759
1760
|
}),
|
|
1760
1761
|
emits: ["update:modelValue"],
|
|
1761
1762
|
setup(e) {
|
|
1762
|
-
let t = e, n =
|
|
1763
|
+
let t = e, n = te(e, "modelValue"), i = r(() => t.id ? t.id : `${t.label}-${Math.random()}`);
|
|
1763
1764
|
return (t, r) => (E(), o("label", {
|
|
1764
1765
|
class: "pv-toggle-ghost",
|
|
1765
1766
|
for: i.value
|
|
@@ -1773,8 +1774,8 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
1773
1774
|
name: e.name,
|
|
1774
1775
|
disabled: e.disabled
|
|
1775
1776
|
}, null, 8, gr), [[L, n.value]]),
|
|
1776
|
-
e.label ? (E(), o("span", _r,
|
|
1777
|
-
s("span", vr,
|
|
1777
|
+
e.label ? (E(), o("span", _r, P(e.label), 1)) : a("v-if", !0),
|
|
1778
|
+
s("span", vr, P(e.rightCounterBadge), 1)
|
|
1778
1779
|
], 8, hr));
|
|
1779
1780
|
}
|
|
1780
1781
|
}), br = (e, t, n) => {
|
|
@@ -2451,7 +2452,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
2451
2452
|
children: ha(e.children, t, n).filter((e) => !!e)
|
|
2452
2453
|
} : e));
|
|
2453
2454
|
}, ga = (e, t) => `${e}::${t}`, _a = () => {
|
|
2454
|
-
let e =
|
|
2455
|
+
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k(), v = k({}), y = (e) => {
|
|
2455
2456
|
_.value = e;
|
|
2456
2457
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
2457
2458
|
r.value[e] = t;
|
|
@@ -2466,10 +2467,10 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
2466
2467
|
i.value = da(o.value), a.value = da(s.value), T();
|
|
2467
2468
|
}, D = (e, t) => {
|
|
2468
2469
|
c.value[e] = t;
|
|
2469
|
-
},
|
|
2470
|
-
let n = t ? u : l, r =
|
|
2470
|
+
}, O = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
2471
|
+
let n = t ? u : l, r = O(e, t);
|
|
2471
2472
|
return v.value[r] = (v.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
2472
|
-
},
|
|
2473
|
+
}, j = (e, t, n) => {
|
|
2473
2474
|
let r = t ? u : l, i = Math.max(0, (v.value[n] ?? 1) - 1);
|
|
2474
2475
|
if (i > 0) {
|
|
2475
2476
|
v.value[n] = i;
|
|
@@ -2485,7 +2486,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
2485
2486
|
if (!o) return [];
|
|
2486
2487
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
2487
2488
|
c.value[n.field] = s;
|
|
2488
|
-
let l = n.parentId ? pa(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y =
|
|
2489
|
+
let l = n.parentId ? pa(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? ga(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
2489
2490
|
h.value[b] = x;
|
|
2490
2491
|
try {
|
|
2491
2492
|
let c = await o({
|
|
@@ -2510,7 +2511,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
2510
2511
|
}
|
|
2511
2512
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
2512
2513
|
} finally {
|
|
2513
|
-
|
|
2514
|
+
j(n.field, v, y);
|
|
2514
2515
|
}
|
|
2515
2516
|
},
|
|
2516
2517
|
filterChildHasMoreMap: p,
|
|
@@ -2546,7 +2547,7 @@ var Qn = ["popover"], $n = 0, er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
|
2546
2547
|
"exists"
|
|
2547
2548
|
]);
|
|
2548
2549
|
function Ca(e, t, n) {
|
|
2549
|
-
let i = f(), a =
|
|
2550
|
+
let i = f(), a = k(t.value), o = _a(), s = va(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = r(() => !!(e.filterStore ?? s)), p = r(() => !d.value && !!e.filterOptionsHandler), m = r(() => e.filterStore ?? s ?? o), h = r(() => m.value === o), g = r(() => d.value || p.value), _ = r(() => e.filterModelType ?? m.value?.filterModelType.value), v = r(() => _.value ?? "advanced"), y = r(() => {
|
|
2550
2551
|
let n = m.value;
|
|
2551
2552
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? a.value : t.value;
|
|
2552
2553
|
}), b = r(() => ti(y.value, v.value)), S = (e, t) => {
|
|
@@ -2633,7 +2634,7 @@ function Ca(e, t, n) {
|
|
|
2633
2634
|
}, E = () => {
|
|
2634
2635
|
let e = i?.vnode.props ?? {};
|
|
2635
2636
|
return Object.prototype.hasOwnProperty.call(e, "filterModel") || Object.prototype.hasOwnProperty.call(e, "filter-model");
|
|
2636
|
-
}, D = (e) => !!(e && typeof e == "object" && "filterType" in e),
|
|
2637
|
+
}, D = (e) => !!(e && typeof e == "object" && "filterType" in e), O = (e) => {
|
|
2637
2638
|
if (!e) return;
|
|
2638
2639
|
let t = D(e);
|
|
2639
2640
|
v.value === "advanced" && !t && T("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), v.value === "regular" && t && T("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
@@ -2643,19 +2644,19 @@ function Ca(e, t, n) {
|
|
|
2643
2644
|
let n = !!((e.filterStore || s) && y.value !== null);
|
|
2644
2645
|
import.meta.env?.DEV && !_.value && y.value !== null && !D(y.value) && (E() || n) && T("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
2645
2646
|
});
|
|
2646
|
-
let
|
|
2647
|
-
let t =
|
|
2647
|
+
let A = (e) => e.context ?? {}, j = (e) => e.colId || e.field || "", M = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, N = (e) => {
|
|
2648
|
+
let t = A(e), n = t.filterPanelType;
|
|
2648
2649
|
if (n && Sa.has(n)) return n;
|
|
2649
2650
|
if (t.filterPanelRange) return "range";
|
|
2650
2651
|
if (t.dataType === "boolean") return "boolean";
|
|
2651
2652
|
if (e.filter) return "value";
|
|
2652
|
-
},
|
|
2653
|
-
let t =
|
|
2653
|
+
}, P = (e) => N(e) ?? "value", F = (e) => A(e).filterPanelCategory ?? null, I = (e) => {
|
|
2654
|
+
let t = A(e).filterPanelValueLabels;
|
|
2654
2655
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
2655
|
-
},
|
|
2656
|
-
let n =
|
|
2657
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && le.value.has(r) ? !1 : !!
|
|
2658
|
-
},
|
|
2656
|
+
}, ee = (t) => {
|
|
2657
|
+
let n = A(t), r = j(t);
|
|
2658
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && le.value.has(r) ? !1 : !!N(t);
|
|
2659
|
+
}, te = (e) => (m.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), ne = (t) => {
|
|
2659
2660
|
let n = m.value;
|
|
2660
2661
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
2661
2662
|
}, re = (e) => m.value.filterHasMoreMap.value[e] ?? !1, ie = (e) => m.value.filterLoadingMap.value[e] ?? !1, L = (e) => m.value.filterLoadingMoreMap.value[e] ?? !1, ae = (e) => m.value.filterSearchQueries.value[e] ?? "", oe = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
@@ -2663,8 +2664,8 @@ function Ca(e, t, n) {
|
|
|
2663
2664
|
value: e.filter.value
|
|
2664
2665
|
}]), ce = (e) => [
|
|
2665
2666
|
...oe(e),
|
|
2666
|
-
...
|
|
2667
|
-
...
|
|
2667
|
+
...te(e),
|
|
2668
|
+
...ne(e)
|
|
2668
2669
|
], z = (e) => {
|
|
2669
2670
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
2670
2671
|
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(z) : [];
|
|
@@ -2672,14 +2673,14 @@ function Ca(e, t, n) {
|
|
|
2672
2673
|
}, le = r(() => {
|
|
2673
2674
|
let t = /* @__PURE__ */ new Set();
|
|
2674
2675
|
for (let n of e.colDefs) {
|
|
2675
|
-
let e =
|
|
2676
|
+
let e = A(n);
|
|
2676
2677
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
2677
2678
|
for (let n of z(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
2678
2679
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
2679
2680
|
}
|
|
2680
2681
|
return t;
|
|
2681
2682
|
}), B = (e) => {
|
|
2682
|
-
let t =
|
|
2683
|
+
let t = j(e), n = A(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = z(n.aggregateFieldHierarchy);
|
|
2683
2684
|
return Array.from(new Set([
|
|
2684
2685
|
t,
|
|
2685
2686
|
...r,
|
|
@@ -2705,30 +2706,30 @@ function Ca(e, t, n) {
|
|
|
2705
2706
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
2706
2707
|
}
|
|
2707
2708
|
return Array.from(r);
|
|
2708
|
-
}, me = (t) => Object.fromEntries(B(t).map((t) => [t, e.focusedValues[t] ?? []])), he = (t) => e.colDefs.find((e) =>
|
|
2709
|
-
let t =
|
|
2710
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : br(
|
|
2709
|
+
}, me = (t) => Object.fromEntries(B(t).map((t) => [t, e.focusedValues[t] ?? []])), he = (t) => e.colDefs.find((e) => j(e) === t || e.field === t || e.colId === t), ge = (e) => he(e)?.headerName ?? e, _e = (e) => {
|
|
2710
|
+
let t = A(e);
|
|
2711
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : br(j(e), t.queryColIds, ge);
|
|
2711
2712
|
}, ve = (e, t) => Sr({
|
|
2712
2713
|
fallbackSubText: e.subText,
|
|
2713
2714
|
getDisplayName: ge,
|
|
2714
2715
|
matchedField: e.matchedField,
|
|
2715
2716
|
matchedValue: e.matchedValue,
|
|
2716
2717
|
primaryText: e.label,
|
|
2717
|
-
showPrefix:
|
|
2718
|
+
showPrefix: A(t).showSearchMatchSubTextPrefix !== !1
|
|
2718
2719
|
}), ye = (e, t) => e.map((e) => ({
|
|
2719
2720
|
...e,
|
|
2720
2721
|
children: e.children?.length ? ye(e.children, t) : e.children,
|
|
2721
2722
|
subText: ve(e, t)
|
|
2722
2723
|
})), be = (e) => {
|
|
2723
|
-
let t =
|
|
2724
|
+
let t = A(e).filterGroup;
|
|
2724
2725
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
2725
2726
|
field: e,
|
|
2726
2727
|
isActive: b.value.get(e)?.booleanValue === !0,
|
|
2727
2728
|
label: he(e)?.headerName ?? e
|
|
2728
2729
|
}));
|
|
2729
|
-
}, V = (e) => Se.value.find((t) => t.key === e) ?? Se.value.find((t) => B(t.colDef).includes(e)), xe = (e, t, n) => gi(V(e)?.knownOptions ?? []).find((r) => r.value === n || _i(r, t, n, e)), Se = r(() => e.colDefs.filter(
|
|
2730
|
-
let n =
|
|
2731
|
-
category:
|
|
2730
|
+
}, V = (e) => Se.value.find((t) => t.key === e) ?? Se.value.find((t) => B(t.colDef).includes(e)), xe = (e, t, n) => gi(V(e)?.knownOptions ?? []).find((r) => r.value === n || _i(r, t, n, e)), Se = r(() => e.colDefs.filter(ee).map((t) => {
|
|
2731
|
+
let n = j(t), r = A(t), i = P(t), a = ye(te(n), t), o = ye(ce(n), t), s = {
|
|
2732
|
+
category: F(t),
|
|
2732
2733
|
colDef: t,
|
|
2733
2734
|
controlled: r.filterPanelControlled === !0,
|
|
2734
2735
|
dataType: r.dataType ?? null,
|
|
@@ -2757,15 +2758,15 @@ function Ca(e, t, n) {
|
|
|
2757
2758
|
key: n,
|
|
2758
2759
|
knownOptions: o,
|
|
2759
2760
|
label: t.headerName || n,
|
|
2760
|
-
rangeMax:
|
|
2761
|
-
rangeMin:
|
|
2762
|
-
rangeStep:
|
|
2761
|
+
rangeMax: M(r.filterPanelRange?.max),
|
|
2762
|
+
rangeMin: M(r.filterPanelRange?.min),
|
|
2763
|
+
rangeStep: M(r.filterPanelRange?.step),
|
|
2763
2764
|
searchPlaceholder: _e(t),
|
|
2764
2765
|
searchQuery: ae(n) ?? "",
|
|
2765
2766
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
2766
2767
|
type: i,
|
|
2767
2768
|
valueDecimals: r.valueDecimals ?? null,
|
|
2768
|
-
valueLabels:
|
|
2769
|
+
valueLabels: I(t)
|
|
2769
2770
|
};
|
|
2770
2771
|
if (i === "range") return {
|
|
2771
2772
|
...s,
|
|
@@ -2859,7 +2860,7 @@ function Ca(e, t, n) {
|
|
|
2859
2860
|
}
|
|
2860
2861
|
for (let r of Se.value) r.type === "value" && (e && (n.has(r.key) || B(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
2861
2862
|
}, H = (r, i, o, c) => {
|
|
2862
|
-
|
|
2863
|
+
O(r);
|
|
2863
2864
|
let l = y.value, u = m.value;
|
|
2864
2865
|
u ? (C(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), Me(o), n("filter-change", {
|
|
2865
2866
|
colDef: (o ? V(o) : void 0)?.colDef,
|
|
@@ -3281,10 +3282,10 @@ var wa = ["aria-label"], Ta = {
|
|
|
3281
3282
|
"suggestion-click"
|
|
3282
3283
|
], ["update:filterModel", "update:visible"]),
|
|
3283
3284
|
setup(e, { emit: n }) {
|
|
3284
|
-
let c = e, u =
|
|
3285
|
+
let c = e, u = te(e, "filterModel"), d = te(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = Ca(c, u, f), v = k(null), y = ee(), x = k(""), S = r(() => p.value.filter((e) => e.type === "value")), C = r(() => {
|
|
3285
3286
|
let e = S.value;
|
|
3286
3287
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
3287
|
-
}), w = r(() => C.value?.isAggregate === !0), T = r(() => C.value?.aggregateSelectionState ?? []), D = r(() => new Set(C.value?.selectedValues ?? [])),
|
|
3288
|
+
}), w = r(() => C.value?.isAggregate === !0), T = r(() => C.value?.aggregateSelectionState ?? []), D = r(() => new Set(C.value?.selectedValues ?? [])), O = r(() => x.value.trim().toLowerCase()), M = (e) => {
|
|
3288
3289
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
3289
3290
|
return [
|
|
3290
3291
|
e.value,
|
|
@@ -3294,19 +3295,19 @@ var wa = ["aria-label"], Ta = {
|
|
|
3294
3295
|
e.matchedValue,
|
|
3295
3296
|
e.matchedField
|
|
3296
3297
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
3297
|
-
},
|
|
3298
|
+
}, N = r(() => {
|
|
3298
3299
|
let e = C.value;
|
|
3299
3300
|
if (!e) return {};
|
|
3300
3301
|
let t = {};
|
|
3301
3302
|
for (let n of gi([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
3302
3303
|
return t;
|
|
3303
|
-
}),
|
|
3304
|
-
let e = C.value?.options ?? [], t =
|
|
3305
|
-
return t ? e.filter((e) =>
|
|
3306
|
-
}),
|
|
3304
|
+
}), P = r(() => {
|
|
3305
|
+
let e = C.value?.options ?? [], t = O.value;
|
|
3306
|
+
return t ? e.filter((e) => M(e).includes(t)) : e;
|
|
3307
|
+
}), F = r(() => w.value || C.value?.singleSelect ? [] : (C.value?.selectedValues ?? []).map((e) => N.value[e] ?? {
|
|
3307
3308
|
label: e,
|
|
3308
3309
|
value: e
|
|
3309
|
-
})),
|
|
3310
|
+
})), ne = r(() => w.value || C.value?.singleSelect ? P.value : P.value.filter((e) => !D.value.has(e.value))), re = r(() => w.value && C.value ? qi({
|
|
3310
3311
|
options: C.value.knownOptions ?? [],
|
|
3311
3312
|
state: T.value
|
|
3312
3313
|
}) : /* @__PURE__ */ new Map()), ie = (e) => e.isAggregate ? Xi(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, L = (e) => w.value ? re.value.get(e.value) ?? {
|
|
@@ -3338,13 +3339,13 @@ var wa = ["aria-label"], Ta = {
|
|
|
3338
3339
|
});
|
|
3339
3340
|
}
|
|
3340
3341
|
}, le = () => {
|
|
3341
|
-
for (let e of
|
|
3342
|
+
for (let e of P.value) L(e).selected || z(e, !0);
|
|
3342
3343
|
}, B = () => {
|
|
3343
3344
|
if (w.value) {
|
|
3344
3345
|
for (let e of gi(C.value?.knownOptions ?? [])) L(e).selected && z(e, !1);
|
|
3345
3346
|
return;
|
|
3346
3347
|
}
|
|
3347
|
-
for (let e of
|
|
3348
|
+
for (let e of F.value) z(e, !1);
|
|
3348
3349
|
}, ue = () => {
|
|
3349
3350
|
C.value && f("load-more", C.value.key, C.value.colDef, x.value.trim());
|
|
3350
3351
|
}, de = r({
|
|
@@ -3372,7 +3373,7 @@ var wa = ["aria-label"], Ta = {
|
|
|
3372
3373
|
offset: 8,
|
|
3373
3374
|
"z-index": 1e3
|
|
3374
3375
|
}, {
|
|
3375
|
-
trigger: ce(() => [
|
|
3376
|
+
trigger: ce(() => [j(n.$slots, "trigger", {}, void 0, !0)]),
|
|
3376
3377
|
content: ce(() => [s("div", {
|
|
3377
3378
|
class: "pv-surface pv-bordered pv-radius-lg pv-inset-square-12",
|
|
3378
3379
|
role: "dialog",
|
|
@@ -3381,7 +3382,7 @@ var wa = ["aria-label"], Ta = {
|
|
|
3381
3382
|
width: e.maxWidth,
|
|
3382
3383
|
maxWidth: e.maxWidth
|
|
3383
3384
|
})
|
|
3384
|
-
}, [s("div", Ta, [s("nav", Ea, [(E(!0), o(t, null,
|
|
3385
|
+
}, [s("div", Ta, [s("nav", Ea, [(E(!0), o(t, null, A(S.value, (e) => (E(), i(yr, {
|
|
3385
3386
|
key: e.key,
|
|
3386
3387
|
modelValue: de.value,
|
|
3387
3388
|
"onUpdate:modelValue": r[0] ||= (e) => de.value = e,
|
|
@@ -3408,7 +3409,7 @@ var wa = ["aria-label"], Ta = {
|
|
|
3408
3409
|
"placeholder"
|
|
3409
3410
|
]),
|
|
3410
3411
|
C.value?.isLoading ? (E(), o("div", Oa, [l(Ge, { size: "sm" })])) : C.value ? (E(), o(t, { key: 1 }, [
|
|
3411
|
-
s("div", ka, [(E(!0), o(t, null,
|
|
3412
|
+
s("div", ka, [(E(!0), o(t, null, A(F.value, (e) => (E(), o("div", {
|
|
3412
3413
|
key: `selected-${e.value}`,
|
|
3413
3414
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
3414
3415
|
}, [l(mr, {
|
|
@@ -3416,9 +3417,9 @@ var wa = ["aria-label"], Ta = {
|
|
|
3416
3417
|
disabled: C.value.disabled || e.isSelectable === !1,
|
|
3417
3418
|
indeterminate: L(e).indeterminate,
|
|
3418
3419
|
label: ae(e),
|
|
3419
|
-
name:
|
|
3420
|
+
name: I(y),
|
|
3420
3421
|
"query-text": x.value,
|
|
3421
|
-
"result-count":
|
|
3422
|
+
"result-count": I(sa)(e),
|
|
3422
3423
|
selected: !0,
|
|
3423
3424
|
"sub-text": e.subText,
|
|
3424
3425
|
"subdued-text": e.subduedText,
|
|
@@ -3436,7 +3437,7 @@ var wa = ["aria-label"], Ta = {
|
|
|
3436
3437
|
"subdued-text",
|
|
3437
3438
|
"value",
|
|
3438
3439
|
"onToggleValue"
|
|
3439
|
-
])]))), 128)), (E(!0), o(t, null,
|
|
3440
|
+
])]))), 128)), (E(!0), o(t, null, A(ne.value, (e) => (E(), o("div", {
|
|
3440
3441
|
key: `option-${e.value}`,
|
|
3441
3442
|
class: "pv-inset-square-8 pv-radius"
|
|
3442
3443
|
}, [l(mr, {
|
|
@@ -3444,9 +3445,9 @@ var wa = ["aria-label"], Ta = {
|
|
|
3444
3445
|
disabled: C.value.disabled || e.isSelectable === !1,
|
|
3445
3446
|
indeterminate: L(e).indeterminate,
|
|
3446
3447
|
label: ae(e),
|
|
3447
|
-
name:
|
|
3448
|
+
name: I(y),
|
|
3448
3449
|
"query-text": x.value,
|
|
3449
|
-
"result-count":
|
|
3450
|
+
"result-count": I(sa)(e),
|
|
3450
3451
|
selected: L(e).selected,
|
|
3451
3452
|
"sub-text": e.subText,
|
|
3452
3453
|
"subdued-text": e.subduedText,
|
|
@@ -3466,7 +3467,7 @@ var wa = ["aria-label"], Ta = {
|
|
|
3466
3467
|
"value",
|
|
3467
3468
|
"onToggleValue"
|
|
3468
3469
|
])]))), 128))]),
|
|
3469
|
-
!
|
|
3470
|
+
!F.value.length && !ne.value.length ? (E(), o("p", Aa, " No matching values. ")) : a("v-if", !0),
|
|
3470
3471
|
C.value.hasMore ? (E(), i(at, {
|
|
3471
3472
|
key: 1,
|
|
3472
3473
|
class: "pv-text-brand",
|
|
@@ -3492,11 +3493,11 @@ var wa = ["aria-label"], Ta = {
|
|
|
3492
3493
|
])]), e.staged ? (E(), o("div", Ma, [l(at, {
|
|
3493
3494
|
label: e.cancelLabel,
|
|
3494
3495
|
variant: "ghost",
|
|
3495
|
-
onClick:
|
|
3496
|
+
onClick: I(g)
|
|
3496
3497
|
}, null, 8, ["label", "onClick"]), l(at, {
|
|
3497
3498
|
label: e.applyLabel,
|
|
3498
3499
|
variant: "primary",
|
|
3499
|
-
onClick:
|
|
3500
|
+
onClick: I(h)
|
|
3500
3501
|
}, null, 8, ["label", "onClick"])])) : a("v-if", !0)], 12, wa)]),
|
|
3501
3502
|
_: 3
|
|
3502
3503
|
}, 8, ["modelValue"]));
|
|
@@ -3834,10 +3835,10 @@ var Q = {
|
|
|
3834
3835
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
3835
3836
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
3836
3837
|
if (Y(a) && o.transform !== "strict") {
|
|
3837
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = mo(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = mo(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = mo(x, ["dark"]), w = y || {}, { dark: T } = w, E = mo(w, ["dark"]), D = Y(t) ? this._toVariables({ primitive: t }, o) : {},
|
|
3838
|
-
s = this.transformCSS(e,
|
|
3839
|
-
...
|
|
3840
|
-
...
|
|
3838
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = mo(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = mo(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = mo(x, ["dark"]), w = y || {}, { dark: T } = w, E = mo(w, ["dark"]), D = Y(t) ? this._toVariables({ primitive: t }, o) : {}, O = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Y(C) ? this._toVariables({ light: C }, o) : {}, A = Y(S) ? this._toVariables({ dark: S }, o) : {}, j = Y(b) ? this._toVariables({ semantic: b }, o) : {}, M = Y(E) ? this._toVariables({ light: E }, o) : {}, N = Y(T) ? this._toVariables({ dark: T }, o) : {}, [P, F] = [D.declarations ?? "", D.tokens], [I, ee] = [O.declarations ?? "", O.tokens || []], [te, ne] = [k.declarations ?? "", k.tokens || []], [re, ie] = [A.declarations ?? "", A.tokens || []], [L, ae] = [j.declarations ?? "", j.tokens || []], [oe, R] = [M.declarations ?? "", M.tokens || []], [se, ce] = [N.declarations ?? "", N.tokens || []];
|
|
3839
|
+
s = this.transformCSS(e, P, "light", "variable", o, r, i), c = F, l = `${this.transformCSS(e, `${I}${te}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${re}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
3840
|
+
...ee,
|
|
3841
|
+
...ne,
|
|
3841
3842
|
...ie
|
|
3842
3843
|
])], d = `${this.transformCSS(e, `${L}${oe}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
3843
3844
|
...ae,
|
|
@@ -3868,11 +3869,11 @@ var Q = {
|
|
|
3868
3869
|
"colorScheme",
|
|
3869
3870
|
"extend",
|
|
3870
3871
|
"css"
|
|
3871
|
-
]), h = f || {}, { colorScheme: g } = h, _ = mo(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = mo(v, ["dark"]), x = g || {}, { dark: S } = x, C = mo(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [D,
|
|
3872
|
-
s = `${this.transformCSS(r, `${D}${
|
|
3873
|
-
...
|
|
3874
|
-
...
|
|
3875
|
-
...
|
|
3872
|
+
]), h = f || {}, { colorScheme: g } = h, _ = mo(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = mo(v, ["dark"]), x = g || {}, { dark: S } = x, C = mo(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [D, O] = [w.declarations ?? "", w.tokens || []], [k, A] = [T.declarations ?? "", T.tokens || []], [j, M] = [E.declarations ?? "", E.tokens || []];
|
|
3873
|
+
s = `${this.transformCSS(r, `${D}${k}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, j, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
3874
|
+
...O,
|
|
3875
|
+
...A,
|
|
3876
|
+
...M
|
|
3876
3877
|
])], l = Ga(p, { dt: ko });
|
|
3877
3878
|
}
|
|
3878
3879
|
return {
|
|
@@ -4231,10 +4232,10 @@ function Bo(e) {
|
|
|
4231
4232
|
}
|
|
4232
4233
|
var Vo = 0;
|
|
4233
4234
|
function Ho(e) {
|
|
4234
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
4235
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = k(!1), r = k(e), i = k(null), a = ro() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Vo}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, D = E === void 0 ? void 0 : E, A = t.props, j = A === void 0 ? {} : A, M = function() {}, N = function(t) {
|
|
4235
4236
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4236
4237
|
if (s) {
|
|
4237
|
-
var o = Io(Io({},
|
|
4238
|
+
var o = Io(Io({}, j), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
4238
4239
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, no(i.value, {
|
|
4239
4240
|
type: "text/css",
|
|
4240
4241
|
id: l,
|
|
@@ -4242,21 +4243,21 @@ function Ho(e) {
|
|
|
4242
4243
|
nonce: u
|
|
4243
4244
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), io(i.value, "data-primevue-style-id", c), no(i.value, o), i.value.onload = function(e) {
|
|
4244
4245
|
return D?.(e, { name: c });
|
|
4245
|
-
}, C?.(c)), !n.value && (
|
|
4246
|
+
}, C?.(c)), !n.value && (M = R(r, function(e) {
|
|
4246
4247
|
i.value.textContent = e, T?.(c);
|
|
4247
4248
|
}, { immediate: !0 }), n.value = !0);
|
|
4248
4249
|
}
|
|
4249
4250
|
};
|
|
4250
|
-
return l && !d && Bo(
|
|
4251
|
+
return l && !d && Bo(N), {
|
|
4251
4252
|
id: h,
|
|
4252
4253
|
name: p,
|
|
4253
4254
|
el: i,
|
|
4254
4255
|
css: r,
|
|
4255
4256
|
unload: function() {
|
|
4256
|
-
!s || !n.value || (
|
|
4257
|
+
!s || !n.value || (M(), eo(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
4257
4258
|
},
|
|
4258
|
-
load:
|
|
4259
|
-
isLoaded:
|
|
4259
|
+
load: N,
|
|
4260
|
+
isLoaded: O(n)
|
|
4260
4261
|
};
|
|
4261
4262
|
}
|
|
4262
4263
|
//#endregion
|
|
@@ -4744,7 +4745,7 @@ function vs() {
|
|
|
4744
4745
|
}), _s = [];
|
|
4745
4746
|
}
|
|
4746
4747
|
function ys(e, t) {
|
|
4747
|
-
var n =
|
|
4748
|
+
var n = k(!1), r = function() {
|
|
4748
4749
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
4749
4750
|
var e, n = os.getCommonTheme?.call(os) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
4750
4751
|
os.load(r?.css, us({ name: "primitive-variables" }, s)), os.load(i?.css, us({ name: "semantic-variables" }, s)), os.load(a?.css, us({ name: "global-variables" }, s)), os.loadStyle(us({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|