@turquoisehealth/pit-viper 2.258.0 → 2.258.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y-v3.css +13 -12
- package/_site/assets/css/pit-viper-a11y.css +13 -12
- package/_site/assets/css/pit-viper-consumer.css +13 -12
- package/_site/assets/css/pit-viper-v2-scoped.css +10 -12
- package/_site/assets/css/pit-viper-v2.css +13 -12
- package/_site/assets/css/pit-viper-v3.css +13 -12
- package/_site/assets/css/pit-viper.css +13 -12
- 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/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +12 -4
- package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +12 -4
- package/pv-components/dist/vue/base/pv-components-base.mjs +188 -148
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +12 -4
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +48 -26
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +394 -358
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,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, 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
|
|
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 B, useId as te, useModel as ne, useSlots as V, useTemplateRef as re, vModelCheckbox as ie, vModelText as ae, vShow as oe, watch as H, watchEffect as se, withCtx as U, withDirectives as ce, withKeys as W, withModifiers as le } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, K = Object.prototype.hasOwnProperty, fe = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -38,7 +38,7 @@ var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, G = Object
|
|
|
38
38
|
dark: "pv-spinner-dark",
|
|
39
39
|
white: "pv-spinner-light"
|
|
40
40
|
};
|
|
41
|
-
return (r, i) => (
|
|
41
|
+
return (r, i) => (O(), o("div", {
|
|
42
42
|
"data-testid": "pv-spinner",
|
|
43
43
|
class: b(n[e.variant]),
|
|
44
44
|
style: S({ "--size": t[e.size] })
|
|
@@ -52,7 +52,7 @@ var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, G = Object
|
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
54
|
function _e() {
|
|
55
|
-
let e =
|
|
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
|
|
@@ -72,11 +72,11 @@ var ve = [
|
|
|
72
72
|
size: { type: null }
|
|
73
73
|
},
|
|
74
74
|
setup(e) {
|
|
75
|
-
let t = e, n = _e(), i =
|
|
75
|
+
let t = e, n = _e(), i = j(null), a = r(() => ({
|
|
76
76
|
"pv-icon": !0,
|
|
77
77
|
[`pv-icon-${t.size}`]: t.size != null && ve.includes(t.size)
|
|
78
78
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
79
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (
|
|
79
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (O(), o("svg", {
|
|
80
80
|
"data-testid": "pv-icon",
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
class: b(a.value)
|
|
@@ -116,7 +116,7 @@ var ve = [
|
|
|
116
116
|
"pv-surface": t.variant == "ghost",
|
|
117
117
|
"pv-rounded": t.rounded
|
|
118
118
|
}));
|
|
119
|
-
return (e, t) => (
|
|
119
|
+
return (e, t) => (O(), o("div", {
|
|
120
120
|
class: b(i.value),
|
|
121
121
|
"data-testid": "pv-counter-badge"
|
|
122
122
|
}, L(n.value), 3));
|
|
@@ -165,33 +165,33 @@ var ve = [
|
|
|
165
165
|
let t = ge(n.size);
|
|
166
166
|
return t && e.push(t), e;
|
|
167
167
|
});
|
|
168
|
-
return (n, r) => (
|
|
168
|
+
return (n, r) => (O(), o("button", {
|
|
169
169
|
type: "button",
|
|
170
170
|
class: b(c.value),
|
|
171
171
|
disabled: e.disabled,
|
|
172
172
|
"aria-label": s.value,
|
|
173
173
|
"data-testid": "pv-button"
|
|
174
|
-
}, [e.loading ? (
|
|
174
|
+
}, [e.loading ? (O(), i(he, {
|
|
175
175
|
key: 0,
|
|
176
176
|
size: "sm"
|
|
177
|
-
})) : (
|
|
178
|
-
e.leftCounterBadge ? (
|
|
177
|
+
})) : (O(), o(t, { key: 1 }, [
|
|
178
|
+
e.leftCounterBadge ? (O(), i(we, {
|
|
179
179
|
key: 0,
|
|
180
180
|
value: e.leftCounterBadge,
|
|
181
181
|
variant: "tertiary"
|
|
182
182
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
183
|
-
e.leftIcon ? (
|
|
183
|
+
e.leftIcon ? (O(), i(be, {
|
|
184
184
|
key: 1,
|
|
185
185
|
name: e.leftIcon,
|
|
186
186
|
"data-testid": "pv-button-left-icon"
|
|
187
187
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
188
|
-
e.label ? (
|
|
189
|
-
e.rightCounterBadge ? (
|
|
188
|
+
e.label ? (O(), o("span", Ee, L(e.label), 1)) : a("v-if", !0),
|
|
189
|
+
e.rightCounterBadge ? (O(), i(we, {
|
|
190
190
|
key: 3,
|
|
191
191
|
value: e.rightCounterBadge,
|
|
192
192
|
variant: "tertiary"
|
|
193
193
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
194
|
-
e.rightIcon ? (
|
|
194
|
+
e.rightIcon ? (O(), i(be, {
|
|
195
195
|
key: 4,
|
|
196
196
|
name: e.rightIcon,
|
|
197
197
|
"data-testid": "pv-button-right-icon"
|
|
@@ -236,7 +236,7 @@ var ve = [
|
|
|
236
236
|
}),
|
|
237
237
|
emits: ["update:modelValue"],
|
|
238
238
|
setup(e) {
|
|
239
|
-
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i =
|
|
239
|
+
let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = re("dialog"), c = ne(e, "modelValue");
|
|
240
240
|
H(() => c.value, () => {
|
|
241
241
|
c.value ? i.value?.showModal() : i.value?.close();
|
|
242
242
|
});
|
|
@@ -245,13 +245,13 @@ var ve = [
|
|
|
245
245
|
}, u = (e) => {
|
|
246
246
|
!t.disableCloseOnClickOutside && e.target === i.value && l();
|
|
247
247
|
};
|
|
248
|
-
return (t, r) => (
|
|
248
|
+
return (t, r) => (O(), o("dialog", {
|
|
249
249
|
class: "pv-modal-sm",
|
|
250
250
|
ref: "dialog",
|
|
251
251
|
style: S(n.value),
|
|
252
252
|
onClose: l,
|
|
253
253
|
onClick: u
|
|
254
|
-
}, [s("div", De, [e.hideHeader ? a("v-if", !0) : (
|
|
254
|
+
}, [s("div", De, [e.hideHeader ? a("v-if", !0) : (O(), o("div", Oe, [s("span", X, L(e.header), 1), e.subheader ? (O(), o("span", ke, L(e.subheader), 1)) : a("v-if", !0)])), N(t.$slots, "body")]), e.hideFooter ? a("v-if", !0) : (O(), o("div", Ae, [N(t.$slots, "footer")]))], 36));
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
257
|
//#endregion
|
|
@@ -574,7 +574,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
574
574
|
}),
|
|
575
575
|
emits: ["update:modelValue"],
|
|
576
576
|
setup(e, { expose: t }) {
|
|
577
|
-
let n = e, i =
|
|
577
|
+
let n = e, i = re("search-input"), c = ne(e, "modelValue"), l = r(() => ({
|
|
578
578
|
"pv-input-search": !0,
|
|
579
579
|
"pv-full-width": !0,
|
|
580
580
|
"pv-input-padded-end": !0,
|
|
@@ -585,7 +585,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
585
585
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
586
586
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
587
587
|
});
|
|
588
|
-
}), t({ input: i }), (t, n) => (
|
|
588
|
+
}), t({ input: i }), (t, n) => (O(), o("div", lt, [ce(s("input", {
|
|
589
589
|
ref: "search-input",
|
|
590
590
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
591
591
|
"data-testid": "pv-search-input",
|
|
@@ -593,7 +593,7 @@ var lt = { class: "pv-relative" }, ut = ["disabled", "placeholder"], dt = {
|
|
|
593
593
|
disabled: e.disabled,
|
|
594
594
|
class: b(l.value),
|
|
595
595
|
placeholder: e.placeholder
|
|
596
|
-
}, null, 10, ut), [[
|
|
596
|
+
}, null, 10, ut), [[ae, c.value]]), e.displayShortcut ? (O(), o("kbd", dt, L(ft))) : a("v-if", !0)]));
|
|
597
597
|
}
|
|
598
598
|
}), [["styles", [".pv-input-search[data-v-9e0c84d9]{display:block}"]], ["__scopeId", "data-v-9e0c84d9"]]), mt = Math.min, ht = Math.max, gt = Math.round, _t = (e) => ({
|
|
599
599
|
x: e,
|
|
@@ -1380,11 +1380,11 @@ function ur(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
|
|
|
1380
1380
|
return a ? cr(a, t, r) : or(e, t, r);
|
|
1381
1381
|
}
|
|
1382
1382
|
function dr(e, t = {}) {
|
|
1383
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = _e(), l = i ??
|
|
1383
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = _e(), l = i ?? V(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
|
|
1384
1384
|
w(() => {
|
|
1385
1385
|
f.value = d();
|
|
1386
1386
|
});
|
|
1387
|
-
let p =
|
|
1387
|
+
let p = j(!1), m = null, h = null, g = () => {
|
|
1388
1388
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
1389
1389
|
}, _ = () => {
|
|
1390
1390
|
if (!c.value) {
|
|
@@ -1430,7 +1430,7 @@ function dr(e, t = {}) {
|
|
|
1430
1430
|
var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
1431
1431
|
let n = t.root.value;
|
|
1432
1432
|
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1433
|
-
}, mr = (e) => (
|
|
1433
|
+
}, mr = (e) => (ee(() => fr.delete(e)), (t) => {
|
|
1434
1434
|
if (!t) {
|
|
1435
1435
|
fr.delete(e);
|
|
1436
1436
|
return;
|
|
@@ -1509,13 +1509,13 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1509
1509
|
}),
|
|
1510
1510
|
emits: ["update:modelValue"],
|
|
1511
1511
|
setup(e) {
|
|
1512
|
-
let t = e, c =
|
|
1512
|
+
let t = e, c = ne(e, "modelValue"), l = p(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = dr("content", { host: u }), m = r(() => u ? f.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1513
1513
|
"anchor-name: --pv-anchor",
|
|
1514
1514
|
"position-area: bottom",
|
|
1515
1515
|
"position-try-fallbacks: flip-block",
|
|
1516
1516
|
"position-visibility: anchors-visible",
|
|
1517
1517
|
`anchor-scope: ${gr}`
|
|
1518
|
-
].every((e) => CSS.supports(e)), g =
|
|
1518
|
+
].every((e) => CSS.supports(e)), g = j(!1), _ = j(null), v = j(null), b = j(null), x = j(null), C = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), w = ct(C), E = ct(x), D = j(!1), k = j(!1), A = j(!1), M = mr({
|
|
1519
1519
|
root: _,
|
|
1520
1520
|
floating: x,
|
|
1521
1521
|
hoverArea: r(() => t.hoverTarget ? C.value : null),
|
|
@@ -1576,7 +1576,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1576
1576
|
width: "fit-content",
|
|
1577
1577
|
...h ? { "anchor-scope": gr } : void 0,
|
|
1578
1578
|
...t.cssCustomProperties
|
|
1579
|
-
})), R = r(() => h ? { "anchor-name": gr } : void 0),
|
|
1579
|
+
})), R = r(() => h ? { "anchor-name": gr } : void 0), B = r(() => {
|
|
1580
1580
|
let e = F[t.position];
|
|
1581
1581
|
return {
|
|
1582
1582
|
"position-anchor": gr,
|
|
@@ -1584,7 +1584,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1584
1584
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1585
1585
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1586
1586
|
};
|
|
1587
|
-
}),
|
|
1587
|
+
}), te = () => {}, V = () => ({});
|
|
1588
1588
|
if (!h) {
|
|
1589
1589
|
let e = [];
|
|
1590
1590
|
t.disableAutoPlacement || e.push(qn({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Kn(t.offset));
|
|
@@ -1593,9 +1593,9 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1593
1593
|
strategy: t.positioningStrategy,
|
|
1594
1594
|
middleware: e
|
|
1595
1595
|
});
|
|
1596
|
-
|
|
1596
|
+
te = n.update, V = () => n.floatingStyles.value;
|
|
1597
1597
|
let i = st(b), a = /* @__PURE__ */ Ge(() => {
|
|
1598
|
-
c.value &&
|
|
1598
|
+
c.value && te();
|
|
1599
1599
|
}, 5);
|
|
1600
1600
|
H([
|
|
1601
1601
|
i.top,
|
|
@@ -1610,47 +1610,47 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1610
1610
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1611
1611
|
]) });
|
|
1612
1612
|
}
|
|
1613
|
-
let
|
|
1614
|
-
...
|
|
1613
|
+
let re = r(() => ({
|
|
1614
|
+
...V(),
|
|
1615
1615
|
zIndex: t.zIndex
|
|
1616
|
-
})),
|
|
1617
|
-
|
|
1616
|
+
})), ie, ae, se = () => {
|
|
1617
|
+
ie && clearTimeout(ie), ie = void 0;
|
|
1618
1618
|
}, U = () => {
|
|
1619
|
-
|
|
1619
|
+
ae && clearTimeout(ae), ae = void 0;
|
|
1620
1620
|
}, W = (e) => {
|
|
1621
|
-
se(), U(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ?
|
|
1622
|
-
c.value = !0,
|
|
1621
|
+
se(), U(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ie = setTimeout(() => {
|
|
1622
|
+
c.value = !0, ie = void 0;
|
|
1623
1623
|
}, t.delay) : c.value = e);
|
|
1624
1624
|
}, le = () => {
|
|
1625
1625
|
se(), U(), c.value = !1;
|
|
1626
1626
|
}, ue = () => {
|
|
1627
1627
|
let e = x.value;
|
|
1628
1628
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1629
|
-
}, de = r(() => !!c.value && (E.value ||
|
|
1629
|
+
}, de = r(() => !!c.value && (E.value || k.value)), G = r(() => !t.showOnHover || A.value ? !1 : t.disableInteractive ? w.value || D.value : w.value || D.value || de.value);
|
|
1630
1630
|
H([
|
|
1631
1631
|
w,
|
|
1632
|
-
|
|
1633
|
-
|
|
1632
|
+
D,
|
|
1633
|
+
k
|
|
1634
1634
|
], ([e, t, n]) => {
|
|
1635
|
-
!e && !t && !n && (
|
|
1635
|
+
!e && !t && !n && (A.value = !1);
|
|
1636
1636
|
});
|
|
1637
1637
|
let K = ({ target: e }) => {
|
|
1638
|
-
|
|
1638
|
+
D.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1639
1639
|
}, fe = ({ target: e }) => {
|
|
1640
|
-
|
|
1640
|
+
k.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1641
1641
|
}, pe = () => {
|
|
1642
|
-
|
|
1642
|
+
k.value = !1;
|
|
1643
1643
|
}, me = () => {
|
|
1644
1644
|
if (t.showOnHover) {
|
|
1645
1645
|
if (t.disableClickOutsideToClose) return;
|
|
1646
|
-
if (!c.value && !
|
|
1647
|
-
|
|
1646
|
+
if (!c.value && !ie && t.enableClickToggle) {
|
|
1647
|
+
A.value = !1, W(!0);
|
|
1648
1648
|
return;
|
|
1649
1649
|
}
|
|
1650
|
-
|
|
1650
|
+
A.value = !0, le();
|
|
1651
1651
|
return;
|
|
1652
1652
|
}
|
|
1653
|
-
W(
|
|
1653
|
+
W(ie ? !1 : !c.value);
|
|
1654
1654
|
}, he = (e) => {
|
|
1655
1655
|
let t = e.newState === "open";
|
|
1656
1656
|
c.value !== t && (c.value = t);
|
|
@@ -1658,8 +1658,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1658
1658
|
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), W(!1));
|
|
1659
1659
|
};
|
|
1660
1660
|
return H(c, async (e) => {
|
|
1661
|
-
if (t.showOnHover && t.enableGroupSync &&
|
|
1662
|
-
e &&
|
|
1661
|
+
if (t.showOnHover && t.enableGroupSync && M(!!e), !h) {
|
|
1662
|
+
e && te();
|
|
1663
1663
|
return;
|
|
1664
1664
|
}
|
|
1665
1665
|
await y(), ue();
|
|
@@ -1669,23 +1669,23 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1669
1669
|
W(!0);
|
|
1670
1670
|
return;
|
|
1671
1671
|
}
|
|
1672
|
-
se(), t.closeDelay > 0 ? (U(),
|
|
1673
|
-
|
|
1672
|
+
se(), t.closeDelay > 0 ? (U(), ae = setTimeout(() => {
|
|
1673
|
+
ae = void 0, G.value || W(!1);
|
|
1674
1674
|
}, t.closeDelay)) : W(!1);
|
|
1675
1675
|
}
|
|
1676
1676
|
}), H(m, (e) => {
|
|
1677
1677
|
e ? h && c.value && y(ue) : le();
|
|
1678
1678
|
}), T(() => {
|
|
1679
|
-
b.value = v.value, g.value = !0, c.value && y(() => h ? ue() :
|
|
1680
|
-
}),
|
|
1679
|
+
b.value = v.value, g.value = !0, c.value && y(() => h ? ue() : te());
|
|
1680
|
+
}), ee(() => {
|
|
1681
1681
|
se(), U();
|
|
1682
1682
|
}), H(() => t.disabled, (e) => {
|
|
1683
1683
|
if (!e) {
|
|
1684
1684
|
G.value && W(!0);
|
|
1685
1685
|
return;
|
|
1686
1686
|
}
|
|
1687
|
-
|
|
1688
|
-
}), (r, l) => (
|
|
1687
|
+
D.value &&= !1, k.value &&= !1, W(!1);
|
|
1688
|
+
}), (r, l) => (O(), o("div", {
|
|
1689
1689
|
ref_key: "root",
|
|
1690
1690
|
ref: _,
|
|
1691
1691
|
style: S(L.value),
|
|
@@ -1696,18 +1696,18 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1696
1696
|
style: S(R.value),
|
|
1697
1697
|
onClick: me,
|
|
1698
1698
|
onFocusin: K,
|
|
1699
|
-
onFocusout: l[0] ||= (e) =>
|
|
1700
|
-
}, [
|
|
1699
|
+
onFocusout: l[0] ||= (e) => D.value = !1
|
|
1700
|
+
}, [N(r.$slots, "trigger")], 36), g.value && z(h) && m.value ? (O(), o("div", {
|
|
1701
1701
|
key: 0,
|
|
1702
1702
|
ref_key: "floating",
|
|
1703
1703
|
ref: x,
|
|
1704
1704
|
class: "pv-floating pv-floating-native",
|
|
1705
1705
|
popover: I.value,
|
|
1706
|
-
style: S(
|
|
1706
|
+
style: S(B.value),
|
|
1707
1707
|
onToggle: he,
|
|
1708
1708
|
onFocusin: fe,
|
|
1709
1709
|
onFocusout: pe
|
|
1710
|
-
}, [e.disabled ? a("v-if", !0) :
|
|
1710
|
+
}, [e.disabled ? a("v-if", !0) : N(r.$slots, "content", { key: 0 })], 44, hr)) : m.value ? (O(), i(n, {
|
|
1711
1711
|
key: 1,
|
|
1712
1712
|
to: e.teleportLocation,
|
|
1713
1713
|
disabled: !t.useTeleport || e.disabled
|
|
@@ -1715,10 +1715,10 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1715
1715
|
ref_key: "floating",
|
|
1716
1716
|
ref: x,
|
|
1717
1717
|
class: "pv-floating",
|
|
1718
|
-
style: S(
|
|
1718
|
+
style: S(re.value),
|
|
1719
1719
|
onFocusin: fe,
|
|
1720
1720
|
onFocusout: pe
|
|
1721
|
-
}, [
|
|
1721
|
+
}, [N(r.$slots, "content")], 36), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1722
1722
|
}
|
|
1723
1723
|
}), vr = ["data-variant"], yr = /* @__PURE__ */ d({
|
|
1724
1724
|
__name: "PvTooltipV2",
|
|
@@ -1766,8 +1766,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1766
1766
|
},
|
|
1767
1767
|
setup(e) {
|
|
1768
1768
|
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);
|
|
1769
|
-
return (t, n) => (
|
|
1770
|
-
trigger: U(() => [
|
|
1769
|
+
return (t, n) => (O(), i(_r, x(h(t.$props)), c({
|
|
1770
|
+
trigger: U(() => [N(t.$slots, "trigger", {}, () => [s("p", null, L(e.label), 1)])]),
|
|
1771
1771
|
_: 2
|
|
1772
1772
|
}, [f.value ? {
|
|
1773
1773
|
name: "content",
|
|
@@ -1775,7 +1775,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1775
1775
|
class: b(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1776
1776
|
role: "tooltip",
|
|
1777
1777
|
"data-variant": e.variant
|
|
1778
|
-
}, [
|
|
1778
|
+
}, [N(t.$slots, "content", {}, () => [l(L(e.description), 1)])], 10, vr)]),
|
|
1779
1779
|
key: "0"
|
|
1780
1780
|
} : void 0]), 1040));
|
|
1781
1781
|
}
|
|
@@ -1796,10 +1796,10 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1796
1796
|
}),
|
|
1797
1797
|
emits: ["update:modelValue"],
|
|
1798
1798
|
setup(e) {
|
|
1799
|
-
let n =
|
|
1799
|
+
let n = ne(e, "modelValue"), r = (e) => {
|
|
1800
1800
|
e.disabled || (n.value = e.value);
|
|
1801
1801
|
};
|
|
1802
|
-
return (a, s) => (
|
|
1802
|
+
return (a, s) => (O(), o("div", { class: b(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(O(!0), o(t, null, M(e.options, (e) => (O(), i(yr, {
|
|
1803
1803
|
key: e.value,
|
|
1804
1804
|
variant: "dark",
|
|
1805
1805
|
position: "bottom-right",
|
|
@@ -1861,7 +1861,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1861
1861
|
default: return "";
|
|
1862
1862
|
}
|
|
1863
1863
|
});
|
|
1864
|
-
return (t, r) => (
|
|
1864
|
+
return (t, r) => (O(), o("button", {
|
|
1865
1865
|
class: b(["pv-suggestion-tag pv-border-dashed pv-tag-secondary", n.value]),
|
|
1866
1866
|
onClick: r[0] ||= (n) => t.$emit("handle-click", e.label),
|
|
1867
1867
|
"data-testid": "pv-suggestion-tag",
|
|
@@ -1869,7 +1869,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1869
1869
|
"data-style": e.rounded ? "rounded" : void 0,
|
|
1870
1870
|
disabled: e.disabled,
|
|
1871
1871
|
title: e.label
|
|
1872
|
-
}, [e.icon ? (
|
|
1872
|
+
}, [e.icon ? (O(), i(be, {
|
|
1873
1873
|
key: 0,
|
|
1874
1874
|
"data-testid": "pv-suggestion-tag-icon",
|
|
1875
1875
|
name: e.icon,
|
|
@@ -1893,8 +1893,8 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1893
1893
|
}),
|
|
1894
1894
|
emits: ["update:modelValue"],
|
|
1895
1895
|
setup(e) {
|
|
1896
|
-
let t =
|
|
1897
|
-
return (n, r) => ce((
|
|
1896
|
+
let t = ne(e, "modelValue");
|
|
1897
|
+
return (n, r) => ce((O(), o("input", {
|
|
1898
1898
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
1899
1899
|
class: "pv-checkbox",
|
|
1900
1900
|
type: "checkbox",
|
|
@@ -1902,7 +1902,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
1902
1902
|
"aria-label": e.ariaLabel,
|
|
1903
1903
|
disabled: e.disabled,
|
|
1904
1904
|
indeterminate: e.indeterminate
|
|
1905
|
-
}, null, 8, wr)), [[
|
|
1905
|
+
}, null, 8, wr)), [[ie, t.value]]);
|
|
1906
1906
|
}
|
|
1907
1907
|
}), Er = {
|
|
1908
1908
|
key: 0,
|
|
@@ -2058,22 +2058,22 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2058
2058
|
}),
|
|
2059
2059
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
2060
2060
|
setup(e) {
|
|
2061
|
-
let t = e, n =
|
|
2061
|
+
let t = e, n = ne(e, "modelValue"), c = ne(e, "rangeValue"), l = B(), u = te(), d = `${u}-max`, f = `${u}-min`, p = j(""), m = j(""), h = j(null), g = j(null), _ = j(!1), y = j(null), x = null, w = null, T = (e) => typeof e == "number" && Number.isFinite(e), E = (e) => T(e) ? e : null, ee = (e) => {
|
|
2062
2062
|
let t = e.trim();
|
|
2063
2063
|
if (t === "") return null;
|
|
2064
2064
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
2065
2065
|
return Number.isFinite(n) ? n : null;
|
|
2066
|
-
},
|
|
2066
|
+
}, D = (e) => e === "currency" || e === "integer" || e === "percent" ? 0 : null, k = () => {
|
|
2067
2067
|
if (t.valueDecimals !== null && t.valueDecimals !== void 0) return Math.max(0, t.valueDecimals);
|
|
2068
|
-
let e =
|
|
2068
|
+
let e = D(t.dataType);
|
|
2069
2069
|
return e === null ? 2 : e;
|
|
2070
|
-
},
|
|
2071
|
-
maximumFractionDigits:
|
|
2070
|
+
}, A = r(() => new Intl.NumberFormat("en-US", {
|
|
2071
|
+
maximumFractionDigits: k(),
|
|
2072
2072
|
minimumFractionDigits: 0
|
|
2073
|
-
})),
|
|
2074
|
-
let n =
|
|
2073
|
+
})), M = (e) => A.value.format(e), N = (e) => M(e), P = (e) => {
|
|
2074
|
+
let n = M(e);
|
|
2075
2075
|
return t.dataType === "currency" ? `$${n}` : t.dataType === "percent" ? `${n}%` : n;
|
|
2076
|
-
}, F = r(() => t.scale === "log"), I = r(() => E(t.step)), R = r(() => E(t.sliderStep)),
|
|
2076
|
+
}, F = r(() => t.scale === "log"), I = r(() => E(t.step)), R = r(() => E(t.sliderStep)), V = r(() => I.value !== null && I.value > 0 ? I.value : 0), re = r(() => R.value !== null && R.value > 0 ? Math.max(R.value, V.value) : V.value), ie = r(() => V.value > 0 ? String(V.value) : "any"), ae = r(() => F.value ? "1" : re.value > 0 ? String(re.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), U = r(() => F.value ? "1" : se.value > 0 ? String(se.value) : "any"), ce = 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) => {
|
|
2077
2077
|
if (t.max === t.min) return 0;
|
|
2078
2078
|
if (!F.value) return (e - t.min) / (t.max - t.min);
|
|
2079
2079
|
let n = le(t), r = Math.log(t.min + n), i = Math.log(t.max + n);
|
|
@@ -2110,31 +2110,31 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2110
2110
|
return t.split(".")[1]?.length ?? 0;
|
|
2111
2111
|
}, J = r(() => {
|
|
2112
2112
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Lr, r ?? Lr, i ?? Lr), o = n ?? Math.max(Rr, r ?? Rr, i ?? Rr);
|
|
2113
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
2113
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (V.value > 0 ? V.value : 1)), {
|
|
2114
2114
|
max: o,
|
|
2115
2115
|
min: a
|
|
2116
2116
|
};
|
|
2117
2117
|
}), ge = (e) => Math.max(J.value.min, Math.min(J.value.max, e)), _e = r(() => {
|
|
2118
2118
|
let e = Math.max(q(J.value.min), q(J.value.max));
|
|
2119
|
-
return
|
|
2119
|
+
return V.value <= 0 ? Math.max(6, e) : Math.max(e, q(V.value));
|
|
2120
2120
|
}), ve = (e) => {
|
|
2121
2121
|
let t = Math.min(20, _e.value);
|
|
2122
2122
|
return ge(Number(e.toFixed(t)));
|
|
2123
2123
|
}, ye = (e, t) => {
|
|
2124
|
-
let n = 10 ** -Math.min(
|
|
2124
|
+
let n = 10 ** -Math.min(k(), 1), r = Math.abs(e), i = r < 1 ? 0 : 10 ** Math.floor(Math.log10(r)) / 100;
|
|
2125
2125
|
return Math.max(i, n, t);
|
|
2126
2126
|
}, xe = (e, t) => F.value ? ye(e, t) : t, Se = r(() => {
|
|
2127
2127
|
if (t.allowMinMaxEqual) return 0;
|
|
2128
2128
|
let e = J.value.max - J.value.min;
|
|
2129
2129
|
if (e <= 0) return 0;
|
|
2130
|
-
let n = Math.max(e / 1e6, 10 ** -_e.value), r =
|
|
2130
|
+
let n = Math.max(e / 1e6, 10 ** -_e.value), r = V.value > 0 ? V.value : n;
|
|
2131
2131
|
return Math.min(r, e);
|
|
2132
2132
|
}), Ce = (e, t, n = "nearest") => {
|
|
2133
2133
|
let r = ge(e);
|
|
2134
2134
|
if (t <= 0) return ve(r);
|
|
2135
2135
|
let i = F.value ? 0 : J.value.min, a = (r - i) / t;
|
|
2136
2136
|
return ve((n === "down" ? Math.floor(a) : n === "up" ? Math.ceil(a) : Math.round(a)) * t + i);
|
|
2137
|
-
}, we = (e, t = "nearest") => Ce(e, xe(e,
|
|
2137
|
+
}, we = (e, t = "nearest") => Ce(e, xe(e, V.value), t), Te = (e, t = "nearest") => we(Ce(e, xe(e, re.value), t), t), Ee = (e) => Ce(e, V.value), De = (e, t, n = !0) => {
|
|
2138
2138
|
let r = Math.max(J.value.min, t - Se.value), i = Math.min(e, r);
|
|
2139
2139
|
return n ? we(i, "down") : ve(i);
|
|
2140
2140
|
}, Oe = (e, t, n = !0) => {
|
|
@@ -2150,7 +2150,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2150
2150
|
"--range-track-color": ce.value,
|
|
2151
2151
|
"--value-max": `${Ae.value}%`,
|
|
2152
2152
|
"--value-min": `${ke.value}%`
|
|
2153
|
-
})), Me = r(() => ({ left: `${ke.value}%` })), Ne = r(() => ({ left: `${Ae.value}%` })), Pe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Fe = (e, t) => F.value ? Math.round(ue(e, t) * zr) : e, Ie = (e, t) => F.value ? de(e / zr, t) : e, Le = r(() => F.value ? 0 : J.value.min), Re = r(() => F.value ? zr : J.value.max), ze = r(() => Fe(X.value.min, J.value)), Be = r(() => Fe(X.value.max, J.value)), Ve = r(() => F.value ? 0 : K.value.min), He = r(() => F.value ? zr : K.value.max), Ue = r(() => Fe(fe.value, K.value)), We = r(() => Math.max(
|
|
2153
|
+
})), Me = r(() => ({ left: `${ke.value}%` })), Ne = r(() => ({ left: `${Ae.value}%` })), Pe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Fe = (e, t) => F.value ? Math.round(ue(e, t) * zr) : e, Ie = (e, t) => F.value ? de(e / zr, t) : e, Le = r(() => F.value ? 0 : J.value.min), Re = r(() => F.value ? zr : J.value.max), ze = r(() => Fe(X.value.min, J.value)), Be = r(() => Fe(X.value.max, J.value)), Ve = r(() => F.value ? 0 : K.value.min), He = r(() => F.value ? zr : K.value.max), Ue = r(() => Fe(fe.value, K.value)), We = r(() => Math.max(N(J.value.min).length, N(J.value.max).length, 3)), Ge = r(() => {
|
|
2154
2154
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
2155
2155
|
return {
|
|
2156
2156
|
"--flex-align": "stretch",
|
|
@@ -2205,11 +2205,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2205
2205
|
if (!a && !o) return;
|
|
2206
2206
|
e.preventDefault();
|
|
2207
2207
|
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Te(de(ue(i, r) + s * Vr * c, r), a ? "up" : "down");
|
|
2208
|
-
l === i && (l = i + s * xe(i,
|
|
2208
|
+
l === i && (l = i + s * xe(i, re.value)), Qe(n), Z(n, l, !1);
|
|
2209
2209
|
}, ut = () => {
|
|
2210
|
-
g.value !== "min" && (m.value =
|
|
2210
|
+
g.value !== "min" && (m.value = N(X.value.min)), g.value !== "max" && (p.value = N(X.value.max));
|
|
2211
2211
|
}, dt = (e) => {
|
|
2212
|
-
let t =
|
|
2212
|
+
let t = ee(e === "min" ? m.value : p.value);
|
|
2213
2213
|
Z(e, t === null ? e === "min" ? J.value.min : J.value.max : Ee(t), !1);
|
|
2214
2214
|
}, ft = (e) => {
|
|
2215
2215
|
m.value = e.target.value, dt("min");
|
|
@@ -2249,7 +2249,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2249
2249
|
};
|
|
2250
2250
|
return H([X, J], ut, { immediate: !0 }), C(() => {
|
|
2251
2251
|
yt(), et();
|
|
2252
|
-
}), (n, r) => e.mode === "single" ? (
|
|
2252
|
+
}), (n, r) => e.mode === "single" ? (O(), o("div", Er, [e.showValueTooltips && _.value ? (O(), o("span", {
|
|
2253
2253
|
key: 0,
|
|
2254
2254
|
class: "pv-range-tooltip",
|
|
2255
2255
|
style: S(he.value)
|
|
@@ -2268,7 +2268,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2268
2268
|
onInput: ot,
|
|
2269
2269
|
onPointerdown: at,
|
|
2270
2270
|
onPointerup: tt
|
|
2271
|
-
}), null, 16, Dr)])) : (
|
|
2271
|
+
}), null, 16, Dr)])) : (O(), o("div", v({ key: 1 }, z(l), {
|
|
2272
2272
|
class: "pv-flex-vertical",
|
|
2273
2273
|
"data-testid": "pv-range-dual",
|
|
2274
2274
|
role: "group",
|
|
@@ -2278,7 +2278,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2278
2278
|
"--flex-gap": "0"
|
|
2279
2279
|
}
|
|
2280
2280
|
}), [
|
|
2281
|
-
e.showBoundLabels ? (
|
|
2281
|
+
e.showBoundLabels ? (O(), o("div", kr, [s("span", null, L(P(J.value.min)), 1), s("span", null, L(P(J.value.max)), 1)])) : a("v-if", !0),
|
|
2282
2282
|
s("div", {
|
|
2283
2283
|
ref_key: "sliderRef",
|
|
2284
2284
|
ref: y,
|
|
@@ -2287,12 +2287,12 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2287
2287
|
onPointerdown: xt
|
|
2288
2288
|
}, [
|
|
2289
2289
|
r[10] ||= s("div", { class: "pv-range-dual-fill" }, null, -1),
|
|
2290
|
-
e.showValueTooltips && h.value === "min" ? (
|
|
2290
|
+
e.showValueTooltips && h.value === "min" ? (O(), o("span", {
|
|
2291
2291
|
key: 0,
|
|
2292
2292
|
class: "pv-range-dual-tooltip",
|
|
2293
2293
|
style: S(Me.value)
|
|
2294
2294
|
}, L(P(X.value.min)), 5)) : a("v-if", !0),
|
|
2295
|
-
e.showValueTooltips && h.value === "max" ? (
|
|
2295
|
+
e.showValueTooltips && h.value === "max" ? (O(), o("span", {
|
|
2296
2296
|
key: 1,
|
|
2297
2297
|
class: "pv-range-dual-tooltip",
|
|
2298
2298
|
style: S(Ne.value)
|
|
@@ -2305,7 +2305,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2305
2305
|
disabled: e.disabled,
|
|
2306
2306
|
max: Re.value,
|
|
2307
2307
|
min: Le.value,
|
|
2308
|
-
step:
|
|
2308
|
+
step: ae.value,
|
|
2309
2309
|
value: ze.value,
|
|
2310
2310
|
onBlur: Ze,
|
|
2311
2311
|
onChange: Ze,
|
|
@@ -2322,7 +2322,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2322
2322
|
disabled: e.disabled,
|
|
2323
2323
|
max: Re.value,
|
|
2324
2324
|
min: Le.value,
|
|
2325
|
-
step:
|
|
2325
|
+
step: ae.value,
|
|
2326
2326
|
value: Be.value,
|
|
2327
2327
|
onBlur: Ze,
|
|
2328
2328
|
onChange: Ze,
|
|
@@ -2332,12 +2332,12 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2332
2332
|
onPointerup: Ze
|
|
2333
2333
|
}, null, 40, jr)
|
|
2334
2334
|
], 38),
|
|
2335
|
-
e.showInputs ? (
|
|
2335
|
+
e.showInputs ? (O(), o("div", Mr, [
|
|
2336
2336
|
s("label", {
|
|
2337
2337
|
class: "pv-flex-vertical pv-range-input-label",
|
|
2338
2338
|
for: f,
|
|
2339
2339
|
style: S(Ge.value)
|
|
2340
|
-
}, [s("span", Nr, L(e.minLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (
|
|
2340
|
+
}, [s("span", Nr, L(e.minLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (O(), i(be, {
|
|
2341
2341
|
key: 0,
|
|
2342
2342
|
class: "pv-range-input-icon",
|
|
2343
2343
|
name: e.inputIcon
|
|
@@ -2347,7 +2347,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2347
2347
|
disabled: e.disabled,
|
|
2348
2348
|
inputmode: "decimal",
|
|
2349
2349
|
placeholder: "Min",
|
|
2350
|
-
step:
|
|
2350
|
+
step: ie.value,
|
|
2351
2351
|
type: "text",
|
|
2352
2352
|
value: m.value,
|
|
2353
2353
|
onBlur: r[4] ||= (e) => ht("min"),
|
|
@@ -2359,7 +2359,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2359
2359
|
class: "pv-flex-vertical pv-range-input-label",
|
|
2360
2360
|
for: d,
|
|
2361
2361
|
style: S(Ge.value)
|
|
2362
|
-
}, [s("span", Fr, L(e.maxLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (
|
|
2362
|
+
}, [s("span", Fr, L(e.maxLabel), 1), s("span", { class: b(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (O(), i(be, {
|
|
2363
2363
|
key: 0,
|
|
2364
2364
|
class: "pv-range-input-icon",
|
|
2365
2365
|
name: e.inputIcon
|
|
@@ -2369,7 +2369,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2369
2369
|
disabled: e.disabled,
|
|
2370
2370
|
inputmode: "decimal",
|
|
2371
2371
|
placeholder: "Max",
|
|
2372
|
-
step:
|
|
2372
|
+
step: ie.value,
|
|
2373
2373
|
type: "text",
|
|
2374
2374
|
value: p.value,
|
|
2375
2375
|
onBlur: r[7] ||= (e) => ht("max"),
|
|
@@ -2377,7 +2377,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2377
2377
|
onInput: pt,
|
|
2378
2378
|
onKeydown: r[9] ||= W((e) => gt(e, "max"), ["enter"])
|
|
2379
2379
|
}, null, 40, Ir)], 2)], 4),
|
|
2380
|
-
e.showClear && Pe.value ? (
|
|
2380
|
+
e.showClear && Pe.value ? (O(), i(Y, {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
class: "pv-text-brand",
|
|
2383
2383
|
disabled: e.disabled,
|
|
@@ -2385,7 +2385,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2385
2385
|
variant: "ghost",
|
|
2386
2386
|
onClick: $e
|
|
2387
2387
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2388
|
-
])) : e.showClear && Pe.value ? (
|
|
2388
|
+
])) : e.showClear && Pe.value ? (O(), i(Y, {
|
|
2389
2389
|
key: 2,
|
|
2390
2390
|
class: "pv-text-brand",
|
|
2391
2391
|
disabled: e.disabled,
|
|
@@ -2428,14 +2428,19 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2428
2428
|
type: Boolean,
|
|
2429
2429
|
default: !1
|
|
2430
2430
|
},
|
|
2431
|
-
|
|
2431
|
+
focusActionDisabled: {
|
|
2432
2432
|
type: Boolean,
|
|
2433
2433
|
default: !1
|
|
2434
2434
|
},
|
|
2435
|
+
focusActionLabel: { type: String },
|
|
2435
2436
|
focusText: {
|
|
2436
2437
|
default: "Focus",
|
|
2437
2438
|
type: String
|
|
2438
2439
|
},
|
|
2440
|
+
indeterminate: {
|
|
2441
|
+
type: Boolean,
|
|
2442
|
+
default: !1
|
|
2443
|
+
},
|
|
2439
2444
|
isFocused: {
|
|
2440
2445
|
type: Boolean,
|
|
2441
2446
|
default: !1
|
|
@@ -2466,7 +2471,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2466
2471
|
},
|
|
2467
2472
|
emits: ["focus-value", "toggle-value"],
|
|
2468
2473
|
setup(e, { emit: t }) {
|
|
2469
|
-
let n = e, c = t,
|
|
2474
|
+
let n = e, c = t, d = V(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => n.focusActionLabel ?? (n.isFocused ? `Remove ${n.focusText}` : `Select as ${n.focusText}`)), m = r(() => !n.renderer && (f.value || !!d["result-count"])), h = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), g = r(() => ({
|
|
2470
2475
|
disabled: n.disabled,
|
|
2471
2476
|
highlightSearchText: !0,
|
|
2472
2477
|
id: n.value,
|
|
@@ -2480,19 +2485,19 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2480
2485
|
subduedText: n.subduedText,
|
|
2481
2486
|
text: n.label,
|
|
2482
2487
|
value: n.value
|
|
2483
|
-
})),
|
|
2488
|
+
})), _ = (e) => {
|
|
2484
2489
|
n.disabled || c("toggle-value", n.value, e === !0);
|
|
2485
|
-
},
|
|
2486
|
-
|
|
2487
|
-
},
|
|
2488
|
-
n.disabled || c("focus-value", n.value);
|
|
2490
|
+
}, y = (e) => {
|
|
2491
|
+
_(e.target.checked);
|
|
2492
|
+
}, C = () => {
|
|
2493
|
+
n.disabled || n.focusActionDisabled || c("focus-value", n.value);
|
|
2489
2494
|
};
|
|
2490
|
-
return (t, n) => (
|
|
2495
|
+
return (t, n) => (O(), o("label", {
|
|
2491
2496
|
class: b(["pv-filter-panel-option-row pv-flex", { "pv-filter-panel-option-row-disabled": e.disabled }]),
|
|
2492
2497
|
"data-testid": "pv-filter-panel-option-row",
|
|
2493
|
-
style: S(
|
|
2498
|
+
style: S(h.value)
|
|
2494
2499
|
}, [
|
|
2495
|
-
e.control === "radio" ? (
|
|
2500
|
+
e.control === "radio" ? (O(), o("input", {
|
|
2496
2501
|
key: 0,
|
|
2497
2502
|
class: "pv-radio",
|
|
2498
2503
|
type: "radio",
|
|
@@ -2500,42 +2505,52 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2500
2505
|
checked: e.selected,
|
|
2501
2506
|
disabled: e.disabled,
|
|
2502
2507
|
name: e.name,
|
|
2503
|
-
onChange:
|
|
2504
|
-
}, null, 40, Ur)) : (
|
|
2508
|
+
onChange: y
|
|
2509
|
+
}, null, 40, Ur)) : (O(), i(Tr, {
|
|
2505
2510
|
key: 1,
|
|
2506
2511
|
ariaLabel: e.ariaLabel || e.label,
|
|
2507
2512
|
disabled: e.disabled,
|
|
2508
2513
|
indeterminate: e.indeterminate,
|
|
2509
2514
|
modelValue: e.selected,
|
|
2510
|
-
"onUpdate:modelValue":
|
|
2515
|
+
"onUpdate:modelValue": _
|
|
2511
2516
|
}, null, 8, [
|
|
2512
2517
|
"ariaLabel",
|
|
2513
2518
|
"disabled",
|
|
2514
2519
|
"indeterminate",
|
|
2515
2520
|
"modelValue"
|
|
2516
2521
|
])),
|
|
2517
|
-
e.renderer ? (
|
|
2522
|
+
e.renderer ? (O(), i(P(e.renderer), x(v({ key: 2 }, g.value)), null, 16)) : (O(), o("span", Wr, [
|
|
2518
2523
|
s("span", Gr, L(e.label), 1),
|
|
2519
|
-
e.subduedText ? (
|
|
2520
|
-
e.subText ? (
|
|
2524
|
+
e.subduedText ? (O(), o("span", Kr, L(e.subduedText), 1)) : a("v-if", !0),
|
|
2525
|
+
e.subText ? (O(), o("span", qr, L(e.subText), 1)) : a("v-if", !0)
|
|
2521
2526
|
])),
|
|
2522
|
-
|
|
2523
|
-
e.showFocusAction ? (
|
|
2527
|
+
m.value ? (O(), o("span", Jr, [N(t.$slots, "result-count", {}, () => [l("(" + L(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
2528
|
+
e.showFocusAction ? (O(), o("div", {
|
|
2524
2529
|
key: 5,
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
},
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2530
|
+
class: b(["pv-filter-panel-option-row-focus-action", { "pv-filter-panel-option-row-focus-action-always-visible": e.isFocused }]),
|
|
2531
|
+
"data-testid": "pv-filter-panel-option-row-focus-action"
|
|
2532
|
+
}, [u(yr, {
|
|
2533
|
+
description: p.value,
|
|
2534
|
+
position: "top-right",
|
|
2535
|
+
size: "sm"
|
|
2536
|
+
}, {
|
|
2537
|
+
trigger: U(() => [u(Y, {
|
|
2538
|
+
ariaLabel: p.value,
|
|
2539
|
+
disabled: e.disabled || e.focusActionDisabled,
|
|
2540
|
+
leftIcon: "focus",
|
|
2541
|
+
size: "md",
|
|
2542
|
+
variant: e.isFocused ? "primary" : "ghost",
|
|
2543
|
+
onClick: le(C, ["stop", "prevent"])
|
|
2544
|
+
}, null, 8, [
|
|
2545
|
+
"ariaLabel",
|
|
2546
|
+
"disabled",
|
|
2547
|
+
"variant"
|
|
2548
|
+
])]),
|
|
2549
|
+
_: 1
|
|
2550
|
+
}, 8, ["description"])], 2)) : a("v-if", !0)
|
|
2536
2551
|
], 6));
|
|
2537
2552
|
}
|
|
2538
|
-
}), [["styles", [".pv-filter-panel-option-row[data-v-
|
|
2553
|
+
}), [["styles", [".pv-filter-panel-option-row[data-v-b85834dc]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-b85834dc]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-b85834dc]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-b85834dc]{--lines:1}.pv-filter-panel-option-row-right[data-v-b85834dc]{text-align:right;flex:none}.pv-filter-panel-option-row-focus-action[data-v-b85834dc]{opacity:0;pointer-events:none}.pv-filter-panel-option-row:hover .pv-filter-panel-option-row-focus-action[data-v-b85834dc],.pv-filter-panel-option-row:focus-within .pv-filter-panel-option-row-focus-action[data-v-b85834dc],.pv-filter-panel-option-row-focus-action-always-visible[data-v-b85834dc]{opacity:1;pointer-events:auto}"]], ["__scopeId", "data-v-b85834dc"]]), Xr = [
|
|
2539
2554
|
"totalCount",
|
|
2540
2555
|
"total_count",
|
|
2541
2556
|
"resultCount",
|
|
@@ -2986,22 +3001,22 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
2986
3001
|
"search-change"
|
|
2987
3002
|
],
|
|
2988
3003
|
setup(e, { emit: n }) {
|
|
2989
|
-
let c = e, d = n, f =
|
|
3004
|
+
let c = e, d = n, f = j(null), p = j({}), m = j(0), h = te(), g = j(c.filter.searchQuery ?? ""), _ = j(va), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), b = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => c.filter.focusText ?? "Focus"), T = r(() => [...c.filter.knownOptions ?? [], ...C.value]), E = r(() => c.filter.type ?? "value"), ee = r(() => E.value === "value"), D = r(() => ee.value && c.filter.isAggregate === !0), k = r(() => c.filter.aggregateSelectionState ?? []), A = r(() => g.value.trim().toLowerCase()), N = r(() => c.filter.selectedValues ?? []), F = r(() => new Set(N.value)), I = r(() => c.filter.valueLabels?.true ?? "Yes"), R = r(() => c.filter.filterOptionsSortDescription || "Suggested"), B = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), ne = r(() => {
|
|
2990
3005
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
2991
3006
|
return t && !n ? [{
|
|
2992
|
-
label:
|
|
3007
|
+
label: I.value,
|
|
2993
3008
|
value: !0
|
|
2994
3009
|
}] : n && !t ? [{
|
|
2995
3010
|
label: b.value,
|
|
2996
3011
|
value: !1
|
|
2997
3012
|
}] : [{
|
|
2998
|
-
label:
|
|
3013
|
+
label: I.value,
|
|
2999
3014
|
value: !0
|
|
3000
3015
|
}, {
|
|
3001
3016
|
label: b.value,
|
|
3002
3017
|
value: !1
|
|
3003
3018
|
}];
|
|
3004
|
-
}),
|
|
3019
|
+
}), V = (e) => {
|
|
3005
3020
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
3006
3021
|
return [
|
|
3007
3022
|
e.value,
|
|
@@ -3011,7 +3026,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3011
3026
|
e.matchedValue,
|
|
3012
3027
|
e.matchedField
|
|
3013
3028
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
3014
|
-
},
|
|
3029
|
+
}, re = 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 ? Yi(k.value) || void 0 : N.value.length || void 0), ie = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), ae = (e, t = 0) => e.flatMap((e) => [
|
|
3015
3030
|
{
|
|
3016
3031
|
depth: t,
|
|
3017
3032
|
kind: "option",
|
|
@@ -3023,146 +3038,152 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3023
3038
|
kind: "child-load-more",
|
|
3024
3039
|
parent: e
|
|
3025
3040
|
}] : []
|
|
3026
|
-
]),
|
|
3041
|
+
]), oe = r(() => {
|
|
3027
3042
|
let e = ae(C.value), t = A.value;
|
|
3028
|
-
return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" &&
|
|
3029
|
-
}),
|
|
3043
|
+
return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && V(e.option).includes(t));
|
|
3044
|
+
}), ce = r(() => D.value || c.filter.singleSelect ? [] : N.value.map((e) => p.value[e] ?? {
|
|
3030
3045
|
label: e,
|
|
3031
3046
|
value: e
|
|
3032
|
-
})),
|
|
3047
|
+
})), W = j([]), le = r(() => new Set(W.value)), ue = r(() => W.value.map((e) => p.value[e] ?? {
|
|
3033
3048
|
label: e,
|
|
3034
3049
|
value: e
|
|
3035
|
-
})),
|
|
3036
|
-
|
|
3050
|
+
})), de = r(() => C.value.length > 0 || ue.value.length > 0), G = r(() => ee.value && c.filter.isOpen && c.filter.isLoading === !0 && de.value), K = () => {
|
|
3051
|
+
W.value = D.value || c.filter.singleSelect ? [] : [...N.value];
|
|
3037
3052
|
};
|
|
3038
|
-
|
|
3039
|
-
let
|
|
3040
|
-
options:
|
|
3041
|
-
state:
|
|
3042
|
-
}) : /* @__PURE__ */ new Map()),
|
|
3053
|
+
K();
|
|
3054
|
+
let fe = r(() => D.value || c.filter.singleSelect ? oe.value : oe.value.filter((e) => e.kind === "child-load-more" || !le.value.has(e.option.value))), pe = r(() => fe.value.length > _.value), me = r(() => pe.value || c.filter.hasMore), q = r(() => fe.value.slice(0, _.value)), J = r(() => D.value ? Ki({
|
|
3055
|
+
options: T.value,
|
|
3056
|
+
state: k.value
|
|
3057
|
+
}) : /* @__PURE__ */ new Map()), ge = (e) => ai(e, c.filter.colDef), _e = (e) => oi(e), ve = (e) => D.value ? J.value.get(e.value) ?? {
|
|
3043
3058
|
indeterminate: !1,
|
|
3044
3059
|
selected: !1
|
|
3045
3060
|
} : {
|
|
3046
3061
|
indeterminate: !1,
|
|
3047
|
-
selected:
|
|
3048
|
-
},
|
|
3049
|
-
let t =
|
|
3062
|
+
selected: F.value.has(e.value)
|
|
3063
|
+
}, ye = (e) => ve(e).selected, xe = (e) => ve(e).indeterminate, Se = (e) => pi(e) ?? e.value, Ce = (e) => mi(e, c.filter.key), Te = (e) => {
|
|
3064
|
+
let t = Ce(e), n = Se(e);
|
|
3050
3065
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
3051
|
-
},
|
|
3066
|
+
}, Ee = (e) => {
|
|
3067
|
+
let t = c.filter.focusableFields ?? [];
|
|
3068
|
+
return !t.length || t.includes(Ce(e));
|
|
3069
|
+
}, De = (e) => !Ee(e) || Te(e) && c.filter.canRemoveFocus === !1, Oe = (e) => {
|
|
3070
|
+
let t = Ce(e);
|
|
3071
|
+
return Ee(e) ? Te(e) && c.filter.canRemoveFocus === !1 ? `${w.value} (required)` : Te(e) ? `Remove ${w.value}` : `Select as ${w.value}` : `Group by ${c.filter.focusFieldLabels?.[t] ?? t} to enable ${w.value}`;
|
|
3072
|
+
}, X = (e) => ({
|
|
3052
3073
|
...e.menuOption ?? {},
|
|
3053
|
-
children: e.children?.map(
|
|
3074
|
+
children: e.children?.map(X),
|
|
3054
3075
|
context: e,
|
|
3055
|
-
disabled:
|
|
3076
|
+
disabled: B.value || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
3056
3077
|
id: e.value,
|
|
3057
|
-
searchText:
|
|
3058
|
-
secondaryText:
|
|
3078
|
+
searchText: V(e),
|
|
3079
|
+
secondaryText: _e(e),
|
|
3059
3080
|
subText: e.subText,
|
|
3060
3081
|
subduedText: e.subduedText,
|
|
3061
|
-
text:
|
|
3082
|
+
text: ge(e),
|
|
3062
3083
|
totalChildCount: e.totalChildCount
|
|
3063
|
-
}),
|
|
3084
|
+
}), ke = r(() => C.value.map(X)), Ae = r(() => ce.value.map(X)), je = r(() => ({
|
|
3064
3085
|
colDef: c.filter.colDef,
|
|
3065
|
-
disabled:
|
|
3086
|
+
disabled: B.value,
|
|
3066
3087
|
filter: c.filter,
|
|
3067
3088
|
isLoading: c.filter.isLoading,
|
|
3068
3089
|
isOpen: c.filter.isOpen,
|
|
3069
|
-
options:
|
|
3090
|
+
options: ke.value,
|
|
3070
3091
|
searchInput: g.value,
|
|
3071
|
-
selectedItems:
|
|
3092
|
+
selectedItems: Ae.value,
|
|
3072
3093
|
slotContext: {
|
|
3073
3094
|
colDef: c.filter.colDef,
|
|
3074
3095
|
rowsLoading: c.filter.isLoading
|
|
3075
3096
|
}
|
|
3076
|
-
})),
|
|
3077
|
-
|
|
3078
|
-
},
|
|
3079
|
-
|
|
3080
|
-
},
|
|
3097
|
+
})), Me = () => {
|
|
3098
|
+
B.value || (pe.value ? _.value += va : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
3099
|
+
}, Ne = (e) => {
|
|
3100
|
+
B.value || d("load-more", g.value.trim(), e.value);
|
|
3101
|
+
}, Pe = (e) => {
|
|
3081
3102
|
let t = e.target;
|
|
3082
3103
|
d("open-change", t.open);
|
|
3083
|
-
},
|
|
3084
|
-
|
|
3104
|
+
}, Fe = (e) => {
|
|
3105
|
+
B.value || d("filter-change", {
|
|
3085
3106
|
type: "boolean",
|
|
3086
3107
|
value: e
|
|
3087
3108
|
});
|
|
3088
|
-
},
|
|
3089
|
-
|
|
3109
|
+
}, Ie = (e) => {
|
|
3110
|
+
B.value || d("filter-change", {
|
|
3090
3111
|
type: "exists",
|
|
3091
3112
|
value: e === !0
|
|
3092
3113
|
});
|
|
3093
|
-
},
|
|
3094
|
-
|
|
3114
|
+
}, Le = (e) => {
|
|
3115
|
+
B.value || d("filter-change", {
|
|
3095
3116
|
type: "range",
|
|
3096
3117
|
value: e
|
|
3097
3118
|
});
|
|
3098
|
-
},
|
|
3099
|
-
if (!
|
|
3119
|
+
}, Re = (e, t) => {
|
|
3120
|
+
if (!B.value) {
|
|
3100
3121
|
if (D.value) {
|
|
3101
3122
|
d("filter-change", {
|
|
3102
3123
|
type: "aggregate-selection",
|
|
3103
3124
|
value: Wi({
|
|
3104
3125
|
checked: t,
|
|
3105
3126
|
option: e,
|
|
3106
|
-
options:
|
|
3107
|
-
state:
|
|
3127
|
+
options: T.value,
|
|
3128
|
+
state: k.value
|
|
3108
3129
|
})
|
|
3109
3130
|
});
|
|
3110
3131
|
return;
|
|
3111
3132
|
}
|
|
3112
3133
|
d("filter-change", {
|
|
3113
3134
|
checked: t,
|
|
3114
|
-
field:
|
|
3135
|
+
field: Ce(e),
|
|
3115
3136
|
type: "value",
|
|
3116
|
-
value:
|
|
3137
|
+
value: Se(e)
|
|
3117
3138
|
});
|
|
3118
3139
|
}
|
|
3119
|
-
},
|
|
3120
|
-
|
|
3121
|
-
},
|
|
3122
|
-
|
|
3140
|
+
}, ze = (e) => {
|
|
3141
|
+
B.value || De(e) || d("focus-change", Ce(e), Se(e), e);
|
|
3142
|
+
}, Be = (e, t) => {
|
|
3143
|
+
B.value || d("filter-change", {
|
|
3123
3144
|
field: e,
|
|
3124
3145
|
type: "boolean",
|
|
3125
3146
|
value: t ? null : !0
|
|
3126
3147
|
});
|
|
3127
|
-
},
|
|
3128
|
-
|
|
3148
|
+
}, Ve = () => {
|
|
3149
|
+
B.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
3129
3150
|
};
|
|
3130
3151
|
H([g, () => c.filter.key], () => {
|
|
3131
3152
|
_.value = va;
|
|
3132
3153
|
});
|
|
3133
|
-
let
|
|
3134
|
-
let e = hi(
|
|
3154
|
+
let He = () => {
|
|
3155
|
+
let e = hi(T.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
3135
3156
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
3136
3157
|
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - ya)));
|
|
3137
3158
|
};
|
|
3138
|
-
H(
|
|
3139
|
-
c.filter.isOpen &&
|
|
3159
|
+
H(T, () => {
|
|
3160
|
+
c.filter.isOpen && He();
|
|
3140
3161
|
}, { immediate: !0 });
|
|
3141
|
-
let
|
|
3162
|
+
let Ue = () => {
|
|
3142
3163
|
!c.filter.isOpen || !f.value || (m.value = Math.max(m.value, f.value.offsetHeight));
|
|
3143
3164
|
};
|
|
3144
3165
|
return H(() => c.filter.isLoading === !0, (e) => {
|
|
3145
|
-
e ?
|
|
3166
|
+
e ? Ue() : m.value = 0;
|
|
3146
3167
|
}), H(C, () => {
|
|
3147
|
-
c.filter.isLoading &&
|
|
3168
|
+
c.filter.isLoading && Ue();
|
|
3148
3169
|
}), H(() => c.filter.isOpen, (e) => {
|
|
3149
|
-
e ? (
|
|
3170
|
+
e ? (He(), K()) : (p.value = {}, m.value = 0);
|
|
3150
3171
|
}), se(() => {
|
|
3151
3172
|
if (!c.filter.isOpen || D.value || c.filter.singleSelect) return;
|
|
3152
|
-
let e = new Set(
|
|
3153
|
-
t.length && (
|
|
3173
|
+
let e = new Set(q.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = N.value.filter((t) => !le.value.has(t) && !e.has(t));
|
|
3174
|
+
t.length && (W.value = [...W.value, ...t]);
|
|
3154
3175
|
}), Je(g, (e) => {
|
|
3155
|
-
if (!
|
|
3176
|
+
if (!ee.value || c.filter.disabled === !0) return;
|
|
3156
3177
|
let t = e.trim();
|
|
3157
3178
|
t !== (c.filter.searchQuery ?? "").trim() && d("search-change", t);
|
|
3158
3179
|
}, {
|
|
3159
3180
|
debounce: 300,
|
|
3160
3181
|
maxWait: 1e3
|
|
3161
|
-
}), (n, r) => (
|
|
3182
|
+
}), (n, r) => (O(), o("details", {
|
|
3162
3183
|
class: "pv-accordion",
|
|
3163
3184
|
"data-testid": "pv-filter-panel-accordion",
|
|
3164
3185
|
open: e.filter.isOpen,
|
|
3165
|
-
onToggle:
|
|
3186
|
+
onToggle: Pe
|
|
3166
3187
|
}, [s("summary", Zi, [
|
|
3167
3188
|
u(be, {
|
|
3168
3189
|
"aria-hidden": "true",
|
|
@@ -3170,13 +3191,13 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3170
3191
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
3171
3192
|
}, null, 8, ["name"]),
|
|
3172
3193
|
s("span", null, L(e.filter.label), 1),
|
|
3173
|
-
|
|
3194
|
+
re.value ? (O(), i(we, {
|
|
3174
3195
|
key: 0,
|
|
3175
|
-
value:
|
|
3196
|
+
value: re.value,
|
|
3176
3197
|
size: "sm",
|
|
3177
3198
|
variant: "secondary"
|
|
3178
3199
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
3179
|
-
|
|
3200
|
+
G.value ? (O(), o("span", Qi, [u(he, { size: "sm" }), s("span", $i, L(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("v-if", !0)
|
|
3180
3201
|
]), s("div", {
|
|
3181
3202
|
ref_key: "filterContent",
|
|
3182
3203
|
ref: f,
|
|
@@ -3186,32 +3207,32 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3186
3207
|
"--flex-align": "stretch",
|
|
3187
3208
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
3188
3209
|
})
|
|
3189
|
-
}, [
|
|
3190
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (
|
|
3191
|
-
e.filter.filterGroupOptions?.length ? (
|
|
3210
|
+
}, [ee.value ? (O(), o(t, { key: 0 }, [
|
|
3211
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (O(), o("div", ta, [
|
|
3212
|
+
e.filter.filterGroupOptions?.length ? (O(), o("div", na, [(O(!0), o(t, null, M(e.filter.filterGroupOptions, (e) => (O(), i(Y, {
|
|
3192
3213
|
key: e.field,
|
|
3193
|
-
disabled:
|
|
3214
|
+
disabled: B.value,
|
|
3194
3215
|
label: e.label,
|
|
3195
3216
|
size: "md",
|
|
3196
3217
|
variant: e.isActive ? "primary" : "secondary",
|
|
3197
|
-
onClick: (t) =>
|
|
3218
|
+
onClick: (t) => Be(e.field, e.isActive)
|
|
3198
3219
|
}, null, 8, [
|
|
3199
3220
|
"disabled",
|
|
3200
3221
|
"label",
|
|
3201
3222
|
"variant",
|
|
3202
3223
|
"onClick"
|
|
3203
3224
|
]))), 128))])) : a("v-if", !0),
|
|
3204
|
-
e.filter.displayPreferencesIcon ? (
|
|
3225
|
+
e.filter.displayPreferencesIcon ? (O(), o("div", ra, [u(Y, {
|
|
3205
3226
|
ariaLabel: "Open preferences",
|
|
3206
|
-
disabled:
|
|
3227
|
+
disabled: B.value,
|
|
3207
3228
|
leftIcon: "sliders-horizontal",
|
|
3208
3229
|
size: "md",
|
|
3209
3230
|
variant: "ghost",
|
|
3210
|
-
onClick:
|
|
3231
|
+
onClick: Ve
|
|
3211
3232
|
}, null, 8, ["disabled"])])) : a("v-if", !0),
|
|
3212
|
-
e.filter.filterHeaderRenderer ? (
|
|
3233
|
+
e.filter.filterHeaderRenderer ? (O(), i(P(e.filter.filterHeaderRenderer), x(v({ key: 2 }, je.value)), null, 16)) : a("v-if", !0)
|
|
3213
3234
|
])) : a("v-if", !0),
|
|
3214
|
-
e.filter.hideSearch ? a("v-if", !0) : (
|
|
3235
|
+
e.filter.hideSearch ? a("v-if", !0) : (O(), i(pt, {
|
|
3215
3236
|
key: 1,
|
|
3216
3237
|
modelValue: g.value,
|
|
3217
3238
|
"onUpdate:modelValue": r[0] ||= (e) => g.value = e,
|
|
@@ -3223,28 +3244,32 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3223
3244
|
"disabled",
|
|
3224
3245
|
"placeholder"
|
|
3225
3246
|
])),
|
|
3226
|
-
|
|
3247
|
+
ue.value.length ? (O(), o("div", ia, [(O(!0), o(t, null, M(ue.value, (t) => (O(), i(Yr, {
|
|
3227
3248
|
key: t.value,
|
|
3228
3249
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3229
|
-
disabled:
|
|
3250
|
+
disabled: B.value || t.isSelectable === !1,
|
|
3251
|
+
"focus-action-disabled": De(t),
|
|
3252
|
+
"focus-action-label": Oe(t),
|
|
3230
3253
|
"focus-text": e.filter.focusText,
|
|
3231
|
-
"is-focused":
|
|
3232
|
-
indeterminate:
|
|
3233
|
-
label:
|
|
3254
|
+
"is-focused": Te(t),
|
|
3255
|
+
indeterminate: xe(t),
|
|
3256
|
+
label: ge(t),
|
|
3234
3257
|
name: z(h),
|
|
3235
3258
|
"query-text": g.value,
|
|
3236
3259
|
renderer: e.filter.filterOptionsRenderer,
|
|
3237
|
-
"result-count":
|
|
3238
|
-
selected:
|
|
3260
|
+
"result-count": _e(t),
|
|
3261
|
+
selected: ye(t),
|
|
3239
3262
|
"show-focus-action": e.filter.isFocusable,
|
|
3240
3263
|
"sub-text": t.subText,
|
|
3241
3264
|
"subdued-text": t.subduedText,
|
|
3242
3265
|
value: t.value,
|
|
3243
|
-
onFocusValue: () =>
|
|
3244
|
-
onToggleValue: (e, n) =>
|
|
3266
|
+
onFocusValue: () => ze(t),
|
|
3267
|
+
onToggleValue: (e, n) => Re(t, n)
|
|
3245
3268
|
}, null, 8, [
|
|
3246
3269
|
"control",
|
|
3247
3270
|
"disabled",
|
|
3271
|
+
"focus-action-disabled",
|
|
3272
|
+
"focus-action-label",
|
|
3248
3273
|
"focus-text",
|
|
3249
3274
|
"is-focused",
|
|
3250
3275
|
"indeterminate",
|
|
@@ -3261,10 +3286,10 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3261
3286
|
"onFocusValue",
|
|
3262
3287
|
"onToggleValue"
|
|
3263
3288
|
]))), 128))])) : a("v-if", !0),
|
|
3264
|
-
e.filter.isLoading && !
|
|
3265
|
-
!A.value && !C.value.length && !
|
|
3266
|
-
|
|
3267
|
-
|
|
3289
|
+
e.filter.isLoading && !de.value ? (O(), o("div", aa, [u(he, { size: "sm" }), e.filter.loadingText ? (O(), o("span", oa, L(e.filter.loadingText), 1)) : a("v-if", !0)])) : (O(), o(t, { key: 4 }, [
|
|
3290
|
+
!A.value && !C.value.length && !ue.value.length && !me.value ? (O(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (O(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, je.value, { "empty-reason": "no-values" }), null, 16)) : (O(), o("p", sa, "No values available."))], 64)) : !oe.value.length && !ue.value.length && !me.value ? (O(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (O(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, je.value, { "empty-reason": "no-matches" }), null, 16)) : (O(), o("p", ca, "No matching values."))], 64)) : a("v-if", !0),
|
|
3291
|
+
fe.value.length || me.value ? (O(), o("div", la, [
|
|
3292
|
+
fe.value.length && !e.filter.hideOptionsSortDescription ? (O(), o("div", ua, [e.filter.filterOptionsSortTooltip ? (O(), i(yr, {
|
|
3268
3293
|
key: 0,
|
|
3269
3294
|
variant: "dark",
|
|
3270
3295
|
disableInteractive: !0,
|
|
@@ -3273,34 +3298,38 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3273
3298
|
"use-teleport": !0,
|
|
3274
3299
|
style: { "--max-width": "200px" }
|
|
3275
3300
|
}, {
|
|
3276
|
-
trigger: U(() => [s("p", da, L(
|
|
3301
|
+
trigger: U(() => [s("p", da, L(R.value), 1)]),
|
|
3277
3302
|
content: U(() => [l(L(e.filter.filterOptionsSortTooltip), 1)]),
|
|
3278
3303
|
_: 1
|
|
3279
|
-
})) : (
|
|
3280
|
-
(
|
|
3304
|
+
})) : (O(), o("p", fa, L(R.value), 1))])) : a("v-if", !0),
|
|
3305
|
+
(O(!0), o(t, null, M(q.value, (n) => (O(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (O(), i(Yr, {
|
|
3281
3306
|
key: 0,
|
|
3282
3307
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3283
3308
|
depth: n.depth,
|
|
3284
|
-
disabled:
|
|
3309
|
+
disabled: B.value || n.option.isSelectable === !1,
|
|
3310
|
+
"focus-action-disabled": De(n.option),
|
|
3311
|
+
"focus-action-label": Oe(n.option),
|
|
3285
3312
|
"focus-text": e.filter.focusText,
|
|
3286
|
-
"is-focused":
|
|
3287
|
-
indeterminate:
|
|
3288
|
-
label:
|
|
3313
|
+
"is-focused": Te(n.option),
|
|
3314
|
+
indeterminate: xe(n.option),
|
|
3315
|
+
label: ge(n.option),
|
|
3289
3316
|
name: z(h),
|
|
3290
3317
|
"query-text": g.value,
|
|
3291
3318
|
renderer: e.filter.filterOptionsRenderer,
|
|
3292
|
-
"result-count":
|
|
3293
|
-
selected:
|
|
3319
|
+
"result-count": _e(n.option),
|
|
3320
|
+
selected: ye(n.option),
|
|
3294
3321
|
"show-focus-action": e.filter.isFocusable,
|
|
3295
3322
|
"sub-text": n.option.subText,
|
|
3296
3323
|
"subdued-text": n.option.subduedText,
|
|
3297
3324
|
value: n.option.value,
|
|
3298
|
-
onFocusValue: () =>
|
|
3299
|
-
onToggleValue: (e, t) =>
|
|
3325
|
+
onFocusValue: () => ze(n.option),
|
|
3326
|
+
onToggleValue: (e, t) => Re(n.option, t)
|
|
3300
3327
|
}, null, 8, [
|
|
3301
3328
|
"control",
|
|
3302
3329
|
"depth",
|
|
3303
3330
|
"disabled",
|
|
3331
|
+
"focus-action-disabled",
|
|
3332
|
+
"focus-action-label",
|
|
3304
3333
|
"focus-text",
|
|
3305
3334
|
"is-focused",
|
|
3306
3335
|
"indeterminate",
|
|
@@ -3316,40 +3345,40 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3316
3345
|
"value",
|
|
3317
3346
|
"onFocusValue",
|
|
3318
3347
|
"onToggleValue"
|
|
3319
|
-
])) : (
|
|
3348
|
+
])) : (O(), i(Y, {
|
|
3320
3349
|
key: 1,
|
|
3321
3350
|
class: "pv-text-brand",
|
|
3322
|
-
disabled:
|
|
3351
|
+
disabled: B.value || e.filter.isLoadingMore,
|
|
3323
3352
|
label: "See more",
|
|
3324
3353
|
style: S({
|
|
3325
3354
|
marginLeft: `${n.depth * 1.25}rem`,
|
|
3326
3355
|
width: "fit-content"
|
|
3327
3356
|
}),
|
|
3328
3357
|
variant: "ghost",
|
|
3329
|
-
onClick: (e) =>
|
|
3358
|
+
onClick: (e) => Ne(n.parent)
|
|
3330
3359
|
}, null, 8, [
|
|
3331
3360
|
"disabled",
|
|
3332
3361
|
"style",
|
|
3333
3362
|
"onClick"
|
|
3334
3363
|
]))], 64))), 128)),
|
|
3335
|
-
|
|
3364
|
+
me.value ? (O(), i(Y, {
|
|
3336
3365
|
key: 1,
|
|
3337
3366
|
class: "pv-text-brand",
|
|
3338
|
-
disabled:
|
|
3367
|
+
disabled: B.value || e.filter.isLoadingMore,
|
|
3339
3368
|
label: "See more",
|
|
3340
3369
|
style: { width: "fit-content" },
|
|
3341
3370
|
variant: "ghost",
|
|
3342
|
-
onClick:
|
|
3371
|
+
onClick: Me
|
|
3343
3372
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
3344
3373
|
])) : a("v-if", !0),
|
|
3345
|
-
e.filter.filterFooterRenderer ? (
|
|
3374
|
+
e.filter.filterFooterRenderer ? (O(), i(P(e.filter.filterFooterRenderer), x(v({ key: 3 }, je.value)), null, 16)) : a("v-if", !0)
|
|
3346
3375
|
], 64))
|
|
3347
|
-
], 64)) :
|
|
3376
|
+
], 64)) : E.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (O(), i(Hr, {
|
|
3348
3377
|
key: 1,
|
|
3349
3378
|
mode: "dual",
|
|
3350
3379
|
rangeValue: e.filter.rangeValue,
|
|
3351
3380
|
"data-type": e.filter.dataType,
|
|
3352
|
-
disabled:
|
|
3381
|
+
disabled: B.value,
|
|
3353
3382
|
"input-icon": e.filter.rangeInputIcon,
|
|
3354
3383
|
label: e.filter.label,
|
|
3355
3384
|
max: e.filter.rangeMax,
|
|
@@ -3358,7 +3387,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3358
3387
|
"slider-step": e.filter.rangeSliderStep,
|
|
3359
3388
|
step: e.filter.rangeStep,
|
|
3360
3389
|
"value-decimals": e.filter.valueDecimals,
|
|
3361
|
-
"onUpdate:rangeValue":
|
|
3390
|
+
"onUpdate:rangeValue": Le
|
|
3362
3391
|
}, null, 8, [
|
|
3363
3392
|
"rangeValue",
|
|
3364
3393
|
"data-type",
|
|
@@ -3371,31 +3400,31 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3371
3400
|
"slider-step",
|
|
3372
3401
|
"step",
|
|
3373
3402
|
"value-decimals"
|
|
3374
|
-
])) :
|
|
3403
|
+
])) : E.value === "range" ? (O(), o("p", pa, " Range filters require minimum and maximum bounds. ")) : E.value === "boolean" ? (O(), o("div", ma, [s("div", ha, [(O(!0), o(t, null, M(ne.value, (t) => (O(), i(Y, {
|
|
3375
3404
|
key: String(t.value),
|
|
3376
|
-
disabled:
|
|
3405
|
+
disabled: B.value,
|
|
3377
3406
|
label: t.label,
|
|
3378
3407
|
variant: e.filter.booleanValue === t.value ? "primary" : "secondary",
|
|
3379
|
-
onClick: (n) =>
|
|
3408
|
+
onClick: (n) => Fe(e.filter.booleanValue === t.value ? null : t.value)
|
|
3380
3409
|
}, null, 8, [
|
|
3381
3410
|
"disabled",
|
|
3382
3411
|
"label",
|
|
3383
3412
|
"variant",
|
|
3384
3413
|
"onClick"
|
|
3385
|
-
]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (
|
|
3414
|
+
]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (O(), i(Y, {
|
|
3386
3415
|
key: 0,
|
|
3387
3416
|
class: "pv-text-brand",
|
|
3388
|
-
disabled:
|
|
3417
|
+
disabled: B.value,
|
|
3389
3418
|
label: "Clear",
|
|
3390
3419
|
variant: "ghost",
|
|
3391
|
-
onClick: r[1] ||= (e) =>
|
|
3392
|
-
}, null, 8, ["disabled"])) : a("v-if", !0)])) :
|
|
3393
|
-
disabled:
|
|
3420
|
+
onClick: r[1] ||= (e) => Fe(null)
|
|
3421
|
+
}, null, 8, ["disabled"])) : a("v-if", !0)])) : E.value === "exists" ? (O(), o("label", ga, [u(Tr, {
|
|
3422
|
+
disabled: B.value,
|
|
3394
3423
|
modelValue: e.filter.existsValue ?? !1,
|
|
3395
|
-
"onUpdate:modelValue":
|
|
3424
|
+
"onUpdate:modelValue": Ie
|
|
3396
3425
|
}, null, 8, ["disabled", "modelValue"]), s("span", _a, L(y.value), 1)])) : a("v-if", !0)], 12, ea)], 40, Xi));
|
|
3397
3426
|
}
|
|
3398
|
-
}), [["styles", ["summary[data-v-
|
|
3427
|
+
}), [["styles", ["summary[data-v-347ad16b]{background-image:none;padding-right:2px}[data-v-347ad16b] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-347ad16b]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-347ad16b]{margin-left:auto;display:inline-flex}"]], ["__scopeId", "data-v-347ad16b"]]), xa = ["data-style"], Sa = /* @__PURE__ */ d({
|
|
3399
3428
|
__name: "PvTag",
|
|
3400
3429
|
props: {
|
|
3401
3430
|
size: {
|
|
@@ -3437,7 +3466,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3437
3466
|
};
|
|
3438
3467
|
return t.variant === "transparent" && (e["--tag-background-color"] = "transparent"), e;
|
|
3439
3468
|
});
|
|
3440
|
-
return (t, r) => (
|
|
3469
|
+
return (t, r) => (O(), o("button", {
|
|
3441
3470
|
class: b([
|
|
3442
3471
|
c.value,
|
|
3443
3472
|
n.value,
|
|
@@ -3448,7 +3477,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3448
3477
|
"data-testid": "pv-tag",
|
|
3449
3478
|
"data-style": e.rounded ? "rounded" : void 0
|
|
3450
3479
|
}, [
|
|
3451
|
-
e.icon ? (
|
|
3480
|
+
e.icon ? (O(), i(be, {
|
|
3452
3481
|
key: 0,
|
|
3453
3482
|
"data-testid": "pv-tag-icon",
|
|
3454
3483
|
class: b(e.iconClasses),
|
|
@@ -3456,7 +3485,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3456
3485
|
size: 12
|
|
3457
3486
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
3458
3487
|
s("span", { class: b(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, L(e.label), 3),
|
|
3459
|
-
e.showClear ? (
|
|
3488
|
+
e.showClear ? (O(), i(be, {
|
|
3460
3489
|
key: 1,
|
|
3461
3490
|
"data-testid": "pv-tag-close-icon",
|
|
3462
3491
|
size: 12,
|
|
@@ -3521,7 +3550,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3521
3550
|
let a = e, c = n, l = r(() => a.externalFilters.filter((e) => e.values.length > 0)), u = r(() => a.appliedCount > 0 || l.value.length > 0), d = (e) => !a.readOnly && e.removable !== !1, f = (e, t) => {
|
|
3522
3551
|
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
3523
3552
|
};
|
|
3524
|
-
return (n, r) => (
|
|
3553
|
+
return (n, r) => (O(), o("section", Ca, [u.value ? (O(), o("div", wa, [(O(!0), o(t, null, M(l.value, (e) => (O(), o("div", {
|
|
3525
3554
|
key: `external-${e.key}`,
|
|
3526
3555
|
class: "pv-flex-vertical pv-border-bottom",
|
|
3527
3556
|
"data-testid": "pv-filter-panel-external-filter-group",
|
|
@@ -3530,7 +3559,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3530
3559
|
"--flex-gap": "12px",
|
|
3531
3560
|
"padding-bottom": "12px"
|
|
3532
3561
|
}
|
|
3533
|
-
}, [s("span", Ta, L(e.label), 1), s("div", Ea, [(
|
|
3562
|
+
}, [s("span", Ta, L(e.label), 1), s("div", Ea, [(O(!0), o(t, null, M(e.values, (t) => (O(), i(Sa, {
|
|
3534
3563
|
key: `${e.key}-${t.value}`,
|
|
3535
3564
|
label: t.label,
|
|
3536
3565
|
showClear: d(e),
|
|
@@ -3539,7 +3568,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3539
3568
|
"label",
|
|
3540
3569
|
"showClear",
|
|
3541
3570
|
"onHandleClose"
|
|
3542
|
-
]))), 128))])]))), 128)), (
|
|
3571
|
+
]))), 128))])]))), 128)), (O(!0), o(t, null, M(e.appliedGroups, (n) => (O(), o("div", {
|
|
3543
3572
|
key: n.key,
|
|
3544
3573
|
class: "pv-flex-vertical pv-border-bottom",
|
|
3545
3574
|
style: {
|
|
@@ -3547,7 +3576,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3547
3576
|
"--flex-gap": "12px",
|
|
3548
3577
|
"padding-bottom": "12px"
|
|
3549
3578
|
}
|
|
3550
|
-
}, [s("span", Da, L(n.label), 1), s("div", Oa, [(
|
|
3579
|
+
}, [s("span", Da, L(n.label), 1), s("div", Oa, [(O(!0), o(t, null, M(n.values, (t) => (O(), i(Sa, {
|
|
3551
3580
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
3552
3581
|
label: t.label,
|
|
3553
3582
|
showClear: !e.readOnly,
|
|
@@ -3556,7 +3585,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3556
3585
|
"label",
|
|
3557
3586
|
"showClear",
|
|
3558
3587
|
"onHandleClose"
|
|
3559
|
-
]))), 128))])]))), 128))])) : (
|
|
3588
|
+
]))), 128))])]))), 128))])) : (O(), o("p", ka, "No filters applied yet."))]));
|
|
3560
3589
|
}
|
|
3561
3590
|
}), ja = { class: "pv-horizontal-scroller" }, Ma = ["aria-label"], Na = 1, Pa = /* @__PURE__ */ d({
|
|
3562
3591
|
__name: "PvHorizontalScroller",
|
|
@@ -3599,7 +3628,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3599
3628
|
}
|
|
3600
3629
|
},
|
|
3601
3630
|
setup(e) {
|
|
3602
|
-
let t = e, n =
|
|
3631
|
+
let t = e, n = j(!1), c = j(!1), l = j(null), u = j(null), d = null, f = !1, p = r(() => Math.max(0, t.scrollFraction)), m = () => {
|
|
3603
3632
|
let e = u.value;
|
|
3604
3633
|
if (!e) return;
|
|
3605
3634
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
@@ -3619,11 +3648,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3619
3648
|
};
|
|
3620
3649
|
return T(() => {
|
|
3621
3650
|
u.value?.addEventListener("scroll", m, { passive: !0 }), typeof ResizeObserver < "u" ? (d = new ResizeObserver(() => m()), h()) : (f = !0, window.addEventListener("resize", m)), g();
|
|
3622
|
-
}),
|
|
3651
|
+
}), D(() => {
|
|
3623
3652
|
h(), g();
|
|
3624
3653
|
}), C(() => {
|
|
3625
3654
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
3626
|
-
}), (t, r) => (
|
|
3655
|
+
}), (t, r) => (O(), o("div", ja, [
|
|
3627
3656
|
s("div", {
|
|
3628
3657
|
ref_key: "scrollContainer",
|
|
3629
3658
|
ref: u,
|
|
@@ -3634,11 +3663,11 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3634
3663
|
ref_key: "contentContainer",
|
|
3635
3664
|
ref: l,
|
|
3636
3665
|
class: "pv-horizontal-scroller-content"
|
|
3637
|
-
}, [
|
|
3666
|
+
}, [N(t.$slots, "default")], 512)], 10, Ma),
|
|
3638
3667
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
3639
3668
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
3640
3669
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
3641
|
-
}]) }, [n.value ? (
|
|
3670
|
+
}]) }, [n.value ? (O(), i(Y, {
|
|
3642
3671
|
key: 0,
|
|
3643
3672
|
ariaLabel: e.leftAriaLabel,
|
|
3644
3673
|
leftIcon: "chevron-left",
|
|
@@ -3653,7 +3682,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3653
3682
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-right", {
|
|
3654
3683
|
"pv-horizontal-scroller-control-hidden": !c.value,
|
|
3655
3684
|
"pv-horizontal-scroller-control-right-fade": e.showFades
|
|
3656
|
-
}]) }, [c.value ? (
|
|
3685
|
+
}]) }, [c.value ? (O(), i(Y, {
|
|
3657
3686
|
key: 0,
|
|
3658
3687
|
ariaLabel: e.rightAriaLabel,
|
|
3659
3688
|
leftIcon: "chevron-right",
|
|
@@ -3696,7 +3725,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3696
3725
|
}),
|
|
3697
3726
|
emits: ["update:modelValue"],
|
|
3698
3727
|
setup(e) {
|
|
3699
|
-
let n = e, c =
|
|
3728
|
+
let n = e, c = ne(e, "modelValue"), l = r(() => {
|
|
3700
3729
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
3701
3730
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
3702
3731
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -3706,7 +3735,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3706
3735
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
3707
3736
|
return H(l, (e) => {
|
|
3708
3737
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
3709
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (
|
|
3738
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (O(), o("div", Fa, [u(Pa, {
|
|
3710
3739
|
ariaLabel: "Filter categories",
|
|
3711
3740
|
buttonSize: "lg",
|
|
3712
3741
|
buttonVariant: "ghost",
|
|
@@ -3719,7 +3748,7 @@ var fr = /* @__PURE__ */ new Set(), pr = (e, t) => {
|
|
|
3719
3748
|
label: e.allCategoriesLabel,
|
|
3720
3749
|
variant: f(null),
|
|
3721
3750
|
onClick: r[0] ||= (e) => d(null)
|
|
3722
|
-
}, null, 8, ["label", "variant"]), (
|
|
3751
|
+
}, null, 8, ["label", "variant"]), (O(!0), o(t, null, M(l.value, (e) => (O(), i(Y, {
|
|
3723
3752
|
key: e,
|
|
3724
3753
|
label: e,
|
|
3725
3754
|
variant: f(e),
|
|
@@ -4187,7 +4216,7 @@ var yo = (e, t, n) => {
|
|
|
4187
4216
|
children: hs(e.children, t, n).filter((e) => !!e)
|
|
4188
4217
|
} : e));
|
|
4189
4218
|
}, gs = (e, t) => `${e}::${t}`, _s = () => {
|
|
4190
|
-
let e =
|
|
4219
|
+
let e = j(null), t = j(null), n = j(), r = j({}), i = j({}), a = j({}), o = j({}), s = j({}), c = j({}), l = j({}), u = j({}), d = j({}), f = j({}), p = j({}), m = j({}), h = j({}), g = j({}), _ = j({}), v = j(), y = j({}), b = (e) => {
|
|
4191
4220
|
v.value = e;
|
|
4192
4221
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
4193
4222
|
r.value[e] = t;
|
|
@@ -4198,16 +4227,16 @@ var yo = (e, t, n) => {
|
|
|
4198
4227
|
o.value = ds(i.value), s.value = ds(a.value);
|
|
4199
4228
|
}, E = () => {
|
|
4200
4229
|
o.value = {}, s.value = {};
|
|
4201
|
-
},
|
|
4230
|
+
}, ee = () => {
|
|
4202
4231
|
i.value = ds(o.value), a.value = ds(s.value), E();
|
|
4203
|
-
},
|
|
4232
|
+
}, D = (e, t) => {
|
|
4204
4233
|
c.value[e] = t;
|
|
4205
|
-
},
|
|
4234
|
+
}, O = (e, t) => {
|
|
4206
4235
|
l.value[e] = t;
|
|
4207
|
-
},
|
|
4208
|
-
let n = t ? d : u, r =
|
|
4236
|
+
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
4237
|
+
let n = t ? d : u, r = k(e, t);
|
|
4209
4238
|
return y.value[r] = (y.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
4210
|
-
},
|
|
4239
|
+
}, M = (e, t, n) => {
|
|
4211
4240
|
let r = t ? d : u, i = Math.max(0, (y.value[n] ?? 1) - 1);
|
|
4212
4241
|
if (i > 0) {
|
|
4213
4242
|
y.value[n] = i;
|
|
@@ -4217,13 +4246,13 @@ var yo = (e, t, n) => {
|
|
|
4217
4246
|
};
|
|
4218
4247
|
return {
|
|
4219
4248
|
clearStagedFilterSelections: E,
|
|
4220
|
-
commitStagedFilterSelections:
|
|
4249
|
+
commitStagedFilterSelections: ee,
|
|
4221
4250
|
fetchFilterOptions: async (n) => {
|
|
4222
4251
|
let o = v.value;
|
|
4223
4252
|
if (!o) return [];
|
|
4224
4253
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
4225
4254
|
c.value[n.field] = s;
|
|
4226
|
-
let u = n.parentId ? ps(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b =
|
|
4255
|
+
let u = n.parentId ? ps(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = A(n.field, y), x = n.parentId ? gs(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
4227
4256
|
g.value[x] = S;
|
|
4228
4257
|
try {
|
|
4229
4258
|
let c = await o({
|
|
@@ -4249,7 +4278,7 @@ var yo = (e, t, n) => {
|
|
|
4249
4278
|
}
|
|
4250
4279
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
4251
4280
|
} finally {
|
|
4252
|
-
|
|
4281
|
+
M(n.field, y, b);
|
|
4253
4282
|
}
|
|
4254
4283
|
},
|
|
4255
4284
|
filterChildHasMoreMap: m,
|
|
@@ -4271,10 +4300,10 @@ var yo = (e, t, n) => {
|
|
|
4271
4300
|
getFilterOptions: x,
|
|
4272
4301
|
getFilterSelectedValues: C,
|
|
4273
4302
|
initStagedFilterSelections: T,
|
|
4274
|
-
setFilterFacetSelections:
|
|
4303
|
+
setFilterFacetSelections: O,
|
|
4275
4304
|
setFilterOptions: S,
|
|
4276
4305
|
setFilterOptionsHandler: b,
|
|
4277
|
-
setFilterSearchQuery:
|
|
4306
|
+
setFilterSearchQuery: D,
|
|
4278
4307
|
setFilterSelectedValues: w,
|
|
4279
4308
|
stagedFilterModel: t,
|
|
4280
4309
|
stagedFilterSelectedMetadataMap: s,
|
|
@@ -4287,7 +4316,7 @@ var yo = (e, t, n) => {
|
|
|
4287
4316
|
"exists"
|
|
4288
4317
|
]);
|
|
4289
4318
|
function Cs(e, t, n) {
|
|
4290
|
-
let i = p(), a =
|
|
4319
|
+
let i = p(), a = j(t.value), o = _s(), s = vs(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = F(/* @__PURE__ */ new Map()), d = r(() => !!(e.filterStore ?? s)), f = r(() => !d.value && !!e.filterOptionsHandler), m = r(() => e.filterStore ?? s ?? o), h = r(() => m.value === o), g = r(() => d.value || f.value), _ = r(() => e.filterModelType ?? m.value?.filterModelType.value), v = r(() => _.value ?? "advanced"), y = r(() => {
|
|
4291
4320
|
let n = m.value;
|
|
4292
4321
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? a.value : t.value;
|
|
4293
4322
|
}), b = r(() => es(y.value, v.value)), x = (e, t) => {
|
|
@@ -4374,53 +4403,53 @@ function Cs(e, t, n) {
|
|
|
4374
4403
|
}, E = () => {
|
|
4375
4404
|
let e = i?.vnode.props ?? {};
|
|
4376
4405
|
return Object.prototype.hasOwnProperty.call(e, "filterModel") || Object.prototype.hasOwnProperty.call(e, "filter-model");
|
|
4377
|
-
},
|
|
4406
|
+
}, ee = (e) => !!(e && typeof e == "object" && "filterType" in e), D = (e) => {
|
|
4378
4407
|
if (!e) return;
|
|
4379
|
-
let t =
|
|
4408
|
+
let t = ee(e);
|
|
4380
4409
|
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\".");
|
|
4381
4410
|
};
|
|
4382
4411
|
se(() => {
|
|
4383
4412
|
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));
|
|
4384
4413
|
let n = !!((e.filterStore || s) && y.value !== null);
|
|
4385
|
-
import.meta.env?.DEV && !_.value && y.value !== null && !
|
|
4414
|
+
import.meta.env?.DEV && !_.value && y.value !== null && !ee(y.value) && (E() || n) && T("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
4386
4415
|
});
|
|
4387
|
-
let
|
|
4388
|
-
let t =
|
|
4416
|
+
let O = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, M = (e) => {
|
|
4417
|
+
let t = O(e), n = t.filterPanelType;
|
|
4389
4418
|
if (n && Ss.has(n)) return n;
|
|
4390
4419
|
if (t.filterPanelRange) return "range";
|
|
4391
4420
|
if (t.dataType === "boolean") return "boolean";
|
|
4392
4421
|
if (e.filter) return "value";
|
|
4393
|
-
},
|
|
4394
|
-
let t =
|
|
4422
|
+
}, N = (e) => M(e) ?? "value", P = (e) => O(e).filterPanelCategory ?? null, I = (e) => {
|
|
4423
|
+
let t = O(e).filterPanelValueLabels;
|
|
4395
4424
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
4396
4425
|
}, L = (t) => {
|
|
4397
|
-
let n =
|
|
4398
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && oe.value.has(r) ? !1 : !!
|
|
4426
|
+
let n = O(t), r = k(t);
|
|
4427
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && oe.value.has(r) ? !1 : !!M(t);
|
|
4399
4428
|
}, R = (e) => (m.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), z = (t) => {
|
|
4400
4429
|
let n = m.value;
|
|
4401
4430
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
4402
|
-
},
|
|
4431
|
+
}, B = (e) => m.value.filterHasMoreMap.value[e] ?? !1, te = (e) => m.value.filterLoadingMap.value[e] ?? !1, ne = (e) => m.value.filterLoadingMoreMap.value[e] ?? !1, V = (e) => m.value.filterSearchQueries.value[e] ?? "", re = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
4403
4432
|
label: e.label,
|
|
4404
4433
|
value: e.filter.value
|
|
4405
|
-
}]),
|
|
4406
|
-
...
|
|
4434
|
+
}]), ie = (e) => [
|
|
4435
|
+
...re(e),
|
|
4407
4436
|
...R(e),
|
|
4408
4437
|
...z(e)
|
|
4409
|
-
],
|
|
4438
|
+
], ae = (e) => {
|
|
4410
4439
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
4411
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
4440
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(ae) : [];
|
|
4412
4441
|
return n ? [n, ...r] : r;
|
|
4413
4442
|
}, oe = r(() => {
|
|
4414
4443
|
let t = /* @__PURE__ */ new Set();
|
|
4415
4444
|
for (let n of e.colDefs) {
|
|
4416
|
-
let e =
|
|
4445
|
+
let e = O(n);
|
|
4417
4446
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
4418
|
-
for (let n of
|
|
4447
|
+
for (let n of ae(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
4419
4448
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
4420
4449
|
}
|
|
4421
4450
|
return t;
|
|
4422
4451
|
}), U = (e) => {
|
|
4423
|
-
let t =
|
|
4452
|
+
let t = k(e), n = O(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = ae(n.aggregateFieldHierarchy);
|
|
4424
4453
|
return Array.from(new Set([
|
|
4425
4454
|
t,
|
|
4426
4455
|
...r,
|
|
@@ -4446,29 +4475,30 @@ function Cs(e, t, n) {
|
|
|
4446
4475
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
4447
4476
|
}
|
|
4448
4477
|
return Array.from(r);
|
|
4449
|
-
}, de = (t) => Object.fromEntries(U(t).map((t) => [t, e.focusedValues[t] ?? []])), G = (t) => e.colDefs.find((e) =>
|
|
4450
|
-
let t =
|
|
4451
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : yo(
|
|
4478
|
+
}, de = (t) => Object.fromEntries(U(t).map((t) => [t, e.focusedValues[t] ?? []])), G = (t) => e.colDefs.find((e) => k(e) === t || e.field === t || e.colId === t), K = (e) => G(e)?.headerName ?? e, fe = (e) => {
|
|
4479
|
+
let t = O(e);
|
|
4480
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : yo(k(e), t.queryColIds, K);
|
|
4452
4481
|
}, pe = (e, t) => xo({
|
|
4453
4482
|
fallbackSubText: e.subText,
|
|
4454
4483
|
getDisplayName: K,
|
|
4455
4484
|
matchedField: e.matchedField,
|
|
4456
4485
|
matchedValue: e.matchedValue,
|
|
4457
4486
|
primaryText: e.label,
|
|
4458
|
-
showPrefix:
|
|
4487
|
+
showPrefix: O(t).showSearchMatchSubTextPrefix !== !1
|
|
4459
4488
|
}), me = (e, t) => e.map((e) => ({
|
|
4460
4489
|
...e,
|
|
4461
4490
|
children: e.children?.length ? me(e.children, t) : e.children,
|
|
4462
4491
|
subText: pe(e, t)
|
|
4463
4492
|
})), he = (e) => {
|
|
4464
|
-
let t =
|
|
4493
|
+
let t = O(e).filterGroup;
|
|
4465
4494
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
4466
4495
|
field: e,
|
|
4467
4496
|
isActive: b.value.get(e)?.booleanValue === !0,
|
|
4468
4497
|
label: G(e)?.headerName ?? e
|
|
4469
4498
|
}));
|
|
4470
4499
|
}, q = (e) => ge.value.find((t) => t.key === e) ?? ge.value.find((t) => U(t.colDef).includes(e)), J = (e, t, n) => hi(q(e)?.knownOptions ?? []).find((r) => r.value === n || gi(r, t, n, e)), ge = r(() => e.colDefs.filter(L).map((t) => {
|
|
4471
|
-
let n =
|
|
4500
|
+
let n = k(t), r = O(t), i = N(t), a = me(R(n), t), o = me(ie(n), t), s = {
|
|
4501
|
+
canRemoveFocus: e.canRemoveFocus,
|
|
4472
4502
|
category: P(t),
|
|
4473
4503
|
clientFiltering: r.filterOptionsClientFiltering !== !1,
|
|
4474
4504
|
colDef: t,
|
|
@@ -4487,29 +4517,31 @@ function Cs(e, t, n) {
|
|
|
4487
4517
|
filterSectionDefs: r.filterSectionDefs,
|
|
4488
4518
|
filterOptionsSortDescription: r.filterOptionsSortDescription,
|
|
4489
4519
|
filterOptionsSortTooltip: r.filterOptionsSortTooltip,
|
|
4520
|
+
focusFieldLabels: Object.fromEntries(U(t).map((e) => [e, K(e)])),
|
|
4521
|
+
focusableFields: e.focusableFields,
|
|
4490
4522
|
focusText: e.focusText,
|
|
4491
4523
|
hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
|
|
4492
4524
|
hideSearch: r.filterPanelHideSearch,
|
|
4493
4525
|
focusedValues: e.focusedValues[n] ?? [],
|
|
4494
4526
|
focusedValuesByField: de(t),
|
|
4495
|
-
hasMore:
|
|
4527
|
+
hasMore: B(n),
|
|
4496
4528
|
isAggregate: ce(t),
|
|
4497
4529
|
isFocusable: e.enableFocusView && (!e.focusableFields.length || U(t).some((t) => e.focusableFields.includes(t))),
|
|
4498
|
-
isLoading:
|
|
4499
|
-
isLoadingMore:
|
|
4530
|
+
isLoading: te(n),
|
|
4531
|
+
isLoadingMore: ne(n),
|
|
4500
4532
|
isOpen: !1,
|
|
4501
4533
|
key: n,
|
|
4502
4534
|
knownOptions: o,
|
|
4503
4535
|
label: t.headerName || n,
|
|
4504
4536
|
loadingText: r.filterOptionsLoadingText,
|
|
4505
4537
|
rangeInputIcon: r.filterPanelRange?.inputIcon ?? null,
|
|
4506
|
-
rangeMax:
|
|
4507
|
-
rangeMin:
|
|
4538
|
+
rangeMax: A(r.filterPanelRange?.max),
|
|
4539
|
+
rangeMin: A(r.filterPanelRange?.min),
|
|
4508
4540
|
rangeScale: r.filterPanelRange?.scale,
|
|
4509
|
-
rangeSliderStep:
|
|
4510
|
-
rangeStep:
|
|
4541
|
+
rangeSliderStep: A(r.filterPanelRange?.sliderStep),
|
|
4542
|
+
rangeStep: A(r.filterPanelRange?.step),
|
|
4511
4543
|
searchPlaceholder: fe(t),
|
|
4512
|
-
searchQuery:
|
|
4544
|
+
searchQuery: V(n) ?? "",
|
|
4513
4545
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
4514
4546
|
type: i,
|
|
4515
4547
|
valueDecimals: r.valueDecimals ?? null,
|
|
@@ -4607,7 +4639,7 @@ function Cs(e, t, n) {
|
|
|
4607
4639
|
}
|
|
4608
4640
|
for (let r of ge.value) r.type === "value" && (e && (n.has(r.key) || U(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
4609
4641
|
}, Y = (r, i, o, c) => {
|
|
4610
|
-
|
|
4642
|
+
D(r);
|
|
4611
4643
|
let l = y.value, u = m.value;
|
|
4612
4644
|
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), Ee(o), n("filter-change", {
|
|
4613
4645
|
colDef: (o ? q(o) : void 0)?.colDef,
|
|
@@ -4895,6 +4927,10 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
4895
4927
|
type: Boolean,
|
|
4896
4928
|
default: void 0
|
|
4897
4929
|
},
|
|
4930
|
+
canRemoveFocus: {
|
|
4931
|
+
type: Boolean,
|
|
4932
|
+
default: !0
|
|
4933
|
+
},
|
|
4898
4934
|
cancelLabel: {
|
|
4899
4935
|
default: "Cancel",
|
|
4900
4936
|
type: String
|
|
@@ -5036,15 +5072,15 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5036
5072
|
"suggestion-click"
|
|
5037
5073
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
5038
5074
|
setup(e, { emit: n }) {
|
|
5039
|
-
let c = e, l =
|
|
5040
|
-
H(
|
|
5075
|
+
let c = e, l = ne(e, "filterModel"), d = ne(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 } = Cs(c, l, f), k = j("filters"), A = j({}), P = j(null), F = j(!1), I = j(!1), R = j(""), B = r(() => c.enableFilterSearch ? R.value.trim().toLowerCase() : ""), te = r(() => B.value.length > 0), V = (e) => e.label.toLowerCase().includes(B.value);
|
|
5076
|
+
H(te, (e) => {
|
|
5041
5077
|
e && (P.value = null);
|
|
5042
5078
|
}), H(P, (e) => {
|
|
5043
5079
|
e !== null && (R.value = "");
|
|
5044
5080
|
});
|
|
5045
|
-
let
|
|
5081
|
+
let re = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ie = r(() => te.value ? p.value.filter(V) : P.value === null ? p.value : p.value.filter((e) => e.category === P.value)), ae = r(() => ie.value.filter((e) => !re(e))), se = r(() => ie.value.filter(re)), W = r(() => P.value !== null), le = r(() => W.value || te.value || F.value ? [...ae.value, ...se.value] : ae.value), ue = r(() => te.value ? "No filters match your search." : "No filters in this category."), de = r(() => `${F.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), G = r(() => k.value === "filters" && !W.value && !te.value && se.value.length > 0), K = r(() => c.externalFilters.filter((e) => e.values.length > 0)), fe = r(() => K.value.filter((e) => e.removable !== !1)), pe = r(() => K.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => fe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => h.value + pe.value), q = r(() => g.value || me.value > 0), J = r(() => !c.readOnly && (q.value || c.staged)), ge = r(() => le.value.map((e) => ({
|
|
5046
5082
|
...e,
|
|
5047
|
-
isOpen:
|
|
5083
|
+
isOpen: A.value[e.key] ?? e.isOpen ?? !1
|
|
5048
5084
|
}))), _e = r(() => [{
|
|
5049
5085
|
label: "Filters",
|
|
5050
5086
|
value: "filters"
|
|
@@ -5058,9 +5094,9 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5058
5094
|
minHeight: "0",
|
|
5059
5095
|
width: c.width
|
|
5060
5096
|
})), ye = (e) => {
|
|
5061
|
-
(e === "filters" || e === "applied") && (
|
|
5097
|
+
(e === "filters" || e === "applied") && (k.value = e);
|
|
5062
5098
|
}, be = (e, t) => {
|
|
5063
|
-
|
|
5099
|
+
A.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
5064
5100
|
}, xe = () => {
|
|
5065
5101
|
I.value = !1;
|
|
5066
5102
|
}, Se = () => {
|
|
@@ -5070,7 +5106,7 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5070
5106
|
}, Ce = () => {
|
|
5071
5107
|
I.value = !0;
|
|
5072
5108
|
};
|
|
5073
|
-
return (n, r) => (
|
|
5109
|
+
return (n, r) => (O(), o(t, null, [d.value ? a("v-if", !0) : (O(), o("div", {
|
|
5074
5110
|
key: 0,
|
|
5075
5111
|
role: "complementary",
|
|
5076
5112
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
@@ -5079,12 +5115,12 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5079
5115
|
style: S(ve.value)
|
|
5080
5116
|
}, [
|
|
5081
5117
|
s("div", Ts, [u(br, {
|
|
5082
|
-
modelValue:
|
|
5118
|
+
modelValue: k.value,
|
|
5083
5119
|
options: _e.value,
|
|
5084
5120
|
class: "pv-filter-panel-mode-control",
|
|
5085
5121
|
size: "xl",
|
|
5086
5122
|
"onUpdate:modelValue": ye
|
|
5087
|
-
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (
|
|
5123
|
+
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (O(), i(Y, {
|
|
5088
5124
|
key: 0,
|
|
5089
5125
|
ariaLabel: "Collapse filters",
|
|
5090
5126
|
leftIcon: "chevrons-left",
|
|
@@ -5093,19 +5129,19 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5093
5129
|
onClick: r[0] ||= (e) => d.value = !0
|
|
5094
5130
|
}))]),
|
|
5095
5131
|
s("div", Es, [ce(s("div", Ds, [
|
|
5096
|
-
!e.readOnly && z(_).length ? (
|
|
5132
|
+
!e.readOnly && z(_).length ? (O(), o("section", Os, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", ks, [(O(!0), o(t, null, M(z(_), (e) => (O(), i(Cr, {
|
|
5097
5133
|
key: z(C)(e),
|
|
5098
5134
|
icon: e.icon,
|
|
5099
5135
|
"icon-classes": e.iconClasses,
|
|
5100
5136
|
label: e.label,
|
|
5101
|
-
onHandleClick: () => z(
|
|
5137
|
+
onHandleClick: () => z(ee)(e)
|
|
5102
5138
|
}, null, 8, [
|
|
5103
5139
|
"icon",
|
|
5104
5140
|
"icon-classes",
|
|
5105
5141
|
"label",
|
|
5106
5142
|
"onHandleClick"
|
|
5107
5143
|
]))), 128))])])) : a("v-if", !0),
|
|
5108
|
-
|
|
5144
|
+
N(n.$slots, "suggestions"),
|
|
5109
5145
|
u(La, {
|
|
5110
5146
|
modelValue: P.value,
|
|
5111
5147
|
"onUpdate:modelValue": r[1] ||= (e) => P.value = e,
|
|
@@ -5118,12 +5154,12 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5118
5154
|
"category-order",
|
|
5119
5155
|
"filters"
|
|
5120
5156
|
]),
|
|
5121
|
-
e.enableFilterSearch && z(p).length ? (
|
|
5157
|
+
e.enableFilterSearch && z(p).length ? (O(), o("div", As, [u(pt, {
|
|
5122
5158
|
modelValue: R.value,
|
|
5123
5159
|
"onUpdate:modelValue": r[2] ||= (e) => R.value = e,
|
|
5124
5160
|
placeholder: e.filterSearchPlaceholder
|
|
5125
5161
|
}, null, 8, ["modelValue", "placeholder"])])) : a("v-if", !0),
|
|
5126
|
-
z(p).length ?
|
|
5162
|
+
z(p).length ? ie.value.length ? (O(), o("div", Ns, [(O(!0), o(t, null, M(ge.value, (t) => (O(), i(ba, {
|
|
5127
5163
|
key: t.key,
|
|
5128
5164
|
"disable-while-loading": e.disableWhileLoading,
|
|
5129
5165
|
filter: t,
|
|
@@ -5140,34 +5176,34 @@ var ws = ["aria-label"], Ts = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
5140
5176
|
"onLoadMore",
|
|
5141
5177
|
"onOpenChange",
|
|
5142
5178
|
"onSearchChange"
|
|
5143
|
-
]))), 128)), G.value ? (
|
|
5179
|
+
]))), 128)), G.value ? (O(), i(Y, {
|
|
5144
5180
|
key: 0,
|
|
5145
5181
|
class: "pv-filter-panel-collapsed-filters-toggle pv-text-brand",
|
|
5146
5182
|
label: de.value,
|
|
5147
5183
|
variant: "ghost",
|
|
5148
5184
|
onClick: r[5] ||= (e) => F.value = !F.value
|
|
5149
|
-
}, null, 8, ["label"])) : a("v-if", !0)])) : (
|
|
5150
|
-
], 512), [[oe,
|
|
5185
|
+
}, null, 8, ["label"])) : a("v-if", !0)])) : (O(), o("div", Ms, L(ue.value), 1)) : (O(), o("div", js, " No filters available. "))
|
|
5186
|
+
], 512), [[oe, k.value === "filters"]]), ce(u(Aa, {
|
|
5151
5187
|
"applied-count": z(h),
|
|
5152
5188
|
"applied-groups": z(m),
|
|
5153
5189
|
"external-filters": K.value,
|
|
5154
5190
|
"read-only": e.readOnly,
|
|
5155
5191
|
onRemoveExternalFilter: r[6] ||= (e, t) => f("remove-external-filter", e, t),
|
|
5156
|
-
onRemoveFilter: z(
|
|
5192
|
+
onRemoveFilter: z(D)
|
|
5157
5193
|
}, null, 8, [
|
|
5158
5194
|
"applied-count",
|
|
5159
5195
|
"applied-groups",
|
|
5160
5196
|
"external-filters",
|
|
5161
5197
|
"read-only",
|
|
5162
5198
|
"onRemoveFilter"
|
|
5163
|
-
]), [[oe,
|
|
5164
|
-
J.value ? (
|
|
5199
|
+
]), [[oe, k.value === "applied"]])]),
|
|
5200
|
+
J.value ? (O(), o("div", Ps, [s("div", Fs, [q.value && !e.readOnly ? (O(), i(Y, {
|
|
5165
5201
|
key: 0,
|
|
5166
5202
|
class: "pv-text-brand",
|
|
5167
5203
|
label: e.clearAllLabel,
|
|
5168
5204
|
variant: "ghost",
|
|
5169
5205
|
onClick: Ce
|
|
5170
|
-
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (
|
|
5206
|
+
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (O(), o(t, { key: 1 }, [u(Y, {
|
|
5171
5207
|
label: e.cancelLabel,
|
|
5172
5208
|
variant: "ghost",
|
|
5173
5209
|
onClick: z(b)
|
|
@@ -5528,15 +5564,15 @@ var zc = {
|
|
|
5528
5564
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
5529
5565
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
5530
5566
|
if ($(a) && o.transform !== "strict") {
|
|
5531
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = bc(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = bc(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = bc(x, ["dark"]), w = y || {}, { dark: T } = w, E = bc(w, ["dark"]),
|
|
5532
|
-
s = this.transformCSS(e,
|
|
5567
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = bc(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = bc(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = bc(x, ["dark"]), w = y || {}, { dark: T } = w, E = bc(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, B] = [k.declarations ?? "", k.tokens || []], [te, ne] = [A.declarations ?? "", A.tokens || []], [V, re] = [j.declarations ?? "", j.tokens || []], [ie, ae] = [M.declarations ?? "", M.tokens || []];
|
|
5568
|
+
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([
|
|
5533
5569
|
...I,
|
|
5534
5570
|
...R,
|
|
5535
|
-
...
|
|
5536
|
-
])], d = `${this.transformCSS(e, `${
|
|
5571
|
+
...B
|
|
5572
|
+
])], d = `${this.transformCSS(e, `${te}${V}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ie}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
5573
|
+
...ne,
|
|
5537
5574
|
...re,
|
|
5538
|
-
...
|
|
5539
|
-
...V
|
|
5575
|
+
...ae
|
|
5540
5576
|
])], p = Xs(a.css, { dt: Fc });
|
|
5541
5577
|
}
|
|
5542
5578
|
return {
|
|
@@ -5562,11 +5598,11 @@ var zc = {
|
|
|
5562
5598
|
"colorScheme",
|
|
5563
5599
|
"extend",
|
|
5564
5600
|
"css"
|
|
5565
|
-
]), h = f || {}, { colorScheme: g } = h, _ = bc(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = bc(v, ["dark"]), x = g || {}, { dark: S } = x, C = bc(x, ["dark"]), w = $(m) ? this._toVariables({ [r]: vc(vc({}, m), _) }, n) : {}, T = $(b) ? this._toVariables({ [r]: vc(vc({}, b), C) }, n) : {}, E = $(y) ? this._toVariables({ [r]: vc(vc({}, y), S) }, n) : {}, [
|
|
5566
|
-
s = `${this.transformCSS(r, `${
|
|
5567
|
-
...
|
|
5568
|
-
...
|
|
5569
|
-
...
|
|
5601
|
+
]), h = f || {}, { colorScheme: g } = h, _ = bc(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = bc(v, ["dark"]), x = g || {}, { dark: S } = x, C = bc(x, ["dark"]), w = $(m) ? this._toVariables({ [r]: vc(vc({}, m), _) }, n) : {}, T = $(b) ? this._toVariables({ [r]: vc(vc({}, b), C) }, n) : {}, E = $(y) ? this._toVariables({ [r]: vc(vc({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
|
|
5602
|
+
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
5603
|
+
...D,
|
|
5604
|
+
...k,
|
|
5605
|
+
...j
|
|
5570
5606
|
])], l = Xs(p, { dt: Fc });
|
|
5571
5607
|
}
|
|
5572
5608
|
return {
|
|
@@ -5925,32 +5961,32 @@ function Jc(e) {
|
|
|
5925
5961
|
}
|
|
5926
5962
|
var Yc = 0;
|
|
5927
5963
|
function Xc(e) {
|
|
5928
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
5964
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = j(!1), r = j(e), i = j(null), a = lc() ? 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_${++Yc}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, k = function() {}, M = function(t) {
|
|
5929
5965
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5930
5966
|
if (s) {
|
|
5931
|
-
var o = Wc(Wc({},
|
|
5967
|
+
var o = Wc(Wc({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
5932
5968
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, cc(i.value, {
|
|
5933
5969
|
type: "text/css",
|
|
5934
5970
|
id: l,
|
|
5935
5971
|
media: _,
|
|
5936
5972
|
nonce: u
|
|
5937
5973
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), uc(i.value, "data-primevue-style-id", c), cc(i.value, o), i.value.onload = function(e) {
|
|
5938
|
-
return
|
|
5939
|
-
}, C?.(c)), !n.value && (
|
|
5974
|
+
return ee?.(e, { name: c });
|
|
5975
|
+
}, C?.(c)), !n.value && (k = H(r, function(e) {
|
|
5940
5976
|
i.value.textContent = e, T?.(c);
|
|
5941
5977
|
}, { immediate: !0 }), n.value = !0);
|
|
5942
5978
|
}
|
|
5943
5979
|
};
|
|
5944
|
-
return l && !d && Jc(
|
|
5980
|
+
return l && !d && Jc(M), {
|
|
5945
5981
|
id: h,
|
|
5946
5982
|
name: p,
|
|
5947
5983
|
el: i,
|
|
5948
5984
|
css: r,
|
|
5949
5985
|
unload: function() {
|
|
5950
|
-
!s || !n.value || (
|
|
5986
|
+
!s || !n.value || (k(), oc(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5951
5987
|
},
|
|
5952
|
-
load:
|
|
5953
|
-
isLoaded:
|
|
5988
|
+
load: M,
|
|
5989
|
+
isLoaded: A(n)
|
|
5954
5990
|
};
|
|
5955
5991
|
}
|
|
5956
5992
|
//#endregion
|
|
@@ -6428,7 +6464,7 @@ var Sl = {
|
|
|
6428
6464
|
csp: { nonce: void 0 }
|
|
6429
6465
|
}, Cl = Symbol();
|
|
6430
6466
|
function wl(e, t) {
|
|
6431
|
-
var n = { config:
|
|
6467
|
+
var n = { config: k(t) };
|
|
6432
6468
|
return e.config.globalProperties.$primevue = n, e.provide(Cl, n), El(), Dl(e, n), n;
|
|
6433
6469
|
}
|
|
6434
6470
|
var Tl = [];
|
|
@@ -6438,7 +6474,7 @@ function El() {
|
|
|
6438
6474
|
}), Tl = [];
|
|
6439
6475
|
}
|
|
6440
6476
|
function Dl(e, t) {
|
|
6441
|
-
var n =
|
|
6477
|
+
var n = j(!1), r = function() {
|
|
6442
6478
|
if (t.config?.theme !== "none" && !Bc.isStyleNameLoaded("common")) {
|
|
6443
6479
|
var e, n = ml.getCommonTheme?.call(ml) || {}, 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 };
|
|
6444
6480
|
ml.load(r?.css, vl({ name: "primitive-variables" }, s)), ml.load(i?.css, vl({ name: "semantic-variables" }, s)), ml.load(a?.css, vl({ name: "global-variables" }, s)), ml.loadStyle(vl({ name: "global-style" }, s), o), Bc.setLoadedStyleName("common");
|