@turquoisehealth/pit-viper 2.257.0 → 2.258.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y-v3.css +51 -0
- package/_site/assets/css/pit-viper-a11y.css +51 -0
- package/_site/assets/css/pit-viper-consumer.css +51 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +41 -0
- package/_site/assets/css/pit-viper-v2.css +51 -0
- package/_site/assets/css/pit-viper-v3.css +51 -0
- package/_site/assets/css/pit-viper.css +51 -0
- 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-banner-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvBanner/PvBanner.vue.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvBanner/types.d.ts +12 -1
- package/pv-components/dist/vue/base/components/base/PvBanner/PvBanner.vue.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvBanner/types.d.ts +12 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +1103 -1097
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/PvBanner.vue.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/types.d.ts +12 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/TableSearch.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +598 -585
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +485 -476
- package/pv-components/dist/web/pv-components.iife.js +36 -36
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -7935,17 +7935,19 @@ var ro = ["title"], io = ["title"], ao = { style: {
|
|
|
7935
7935
|
}
|
|
7936
7936
|
}), Pc = /* @__PURE__ */ function(e) {
|
|
7937
7937
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
7938
|
+
}({}), Fc = /* @__PURE__ */ function(e) {
|
|
7939
|
+
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e.Universal = "Universal", e.AI = "AI", e.Marketing = "Marketing", e;
|
|
7940
|
+
}({}), Ic = /* @__PURE__ */ function(e) {
|
|
7941
|
+
return e.Blue = "Blue", e.Purple = "Purple", e.Red = "Red", e.Yellow = "Yellow", e.Green = "Green", e;
|
|
7938
7942
|
}({});
|
|
7939
|
-
|
|
7940
|
-
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
7941
|
-
})({})).Primary, Pc.Horizontal;
|
|
7943
|
+
Fc.Primary, Pc.Horizontal, Ic.Blue;
|
|
7942
7944
|
//#endregion
|
|
7943
7945
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
7944
|
-
var
|
|
7946
|
+
var Lc = [
|
|
7945
7947
|
"data-style",
|
|
7946
7948
|
"disabled",
|
|
7947
7949
|
"title"
|
|
7948
|
-
],
|
|
7950
|
+
], Rc = { class: "pv-truncate" }, zc = /* @__PURE__ */ d({
|
|
7949
7951
|
__name: "PvSuggestionTag",
|
|
7950
7952
|
props: {
|
|
7951
7953
|
size: { default: "md" },
|
|
@@ -7981,13 +7983,13 @@ var Fc = [
|
|
|
7981
7983
|
name: e.icon,
|
|
7982
7984
|
size: 12,
|
|
7983
7985
|
class: y(e.iconClasses)
|
|
7984
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
7986
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", Rc, P(e.label), 1)], 10, Lc));
|
|
7985
7987
|
}
|
|
7986
7988
|
});
|
|
7987
7989
|
tt.extend(it), tt.extend(nt), tt.extend(rt);
|
|
7988
7990
|
//#endregion
|
|
7989
7991
|
//#region src/composables/useResizable.ts
|
|
7990
|
-
var
|
|
7992
|
+
var Bc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Vc = (e, t) => {
|
|
7991
7993
|
if (e == null || e === "") return;
|
|
7992
7994
|
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
|
|
7993
7995
|
let n = e.trim();
|
|
@@ -7997,8 +7999,8 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
7997
7999
|
}
|
|
7998
8000
|
let r = Number.parseFloat(n);
|
|
7999
8001
|
return Number.isFinite(r) ? r : void 0;
|
|
8000
|
-
},
|
|
8001
|
-
let t = k(!1), n = k(0), i = null, a = 0, o = 0, s = null, c = r(() => R(e.edge) ?? "right"), l = r(() =>
|
|
8002
|
+
}, Hc = 4, Uc = (e) => {
|
|
8003
|
+
let t = k(!1), n = k(0), i = null, a = 0, o = 0, s = null, c = r(() => R(e.edge) ?? "right"), l = r(() => Bc(c.value)), u = r(() => R(e.disabled) ?? !1), d = r(() => R(e.collapsible) ?? !1), f = r(() => R(e.collapsedSize) ?? 0), p = r(() => R(e.snapThreshold) ?? 0), m = r(() => R(e.keyboardStep) ?? 16), h = r(() => R(e.min)), g = r(() => Math.max(h.value, R(e.max))), _ = r(() => c.value === "right" || c.value === "bottom" ? 1 : -1), v = r(() => d.value && n.value <= f.value), y = (e) => d.value && e < h.value - p.value ? f.value : Math.min(g.value, Math.max(h.value, e)), b = (r) => {
|
|
8002
8004
|
!t.value && r > f.value && (s = r), n.value = r, e.onResize?.(r);
|
|
8003
8005
|
}, x = (t) => {
|
|
8004
8006
|
n.value = t ?? e.readSize();
|
|
@@ -8027,7 +8029,7 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8027
8029
|
t.preventDefault(), S();
|
|
8028
8030
|
return;
|
|
8029
8031
|
}
|
|
8030
|
-
let n = l.value === "horizontal", r = (t.shiftKey ? m.value *
|
|
8032
|
+
let n = l.value === "horizontal", r = (t.shiftKey ? m.value * Hc : m.value) * _.value, i = e.readSize(), a;
|
|
8031
8033
|
switch (t.key) {
|
|
8032
8034
|
case "ArrowLeft":
|
|
8033
8035
|
n && (a = i - r);
|
|
@@ -8081,7 +8083,7 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8081
8083
|
syncSize: x,
|
|
8082
8084
|
toggleCollapsed: S
|
|
8083
8085
|
};
|
|
8084
|
-
},
|
|
8086
|
+
}, Wc = /* @__PURE__ */ d({
|
|
8085
8087
|
__name: "PvResizeHandle",
|
|
8086
8088
|
props: /* @__PURE__ */ g({
|
|
8087
8089
|
ariaLabel: { default: "Resize" },
|
|
@@ -8115,7 +8117,7 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8115
8117
|
"resize-start"
|
|
8116
8118
|
], ["update:size"]),
|
|
8117
8119
|
setup(e, { emit: t }) {
|
|
8118
|
-
let n = e, i = V(e, "size"), a = t, s = re("handle"), c = k(null), l = !1, u = r(() =>
|
|
8120
|
+
let n = e, i = V(e, "size"), a = t, s = re("handle"), c = k(null), l = !1, u = r(() => Bc(n.edge)), d = (e) => {
|
|
8119
8121
|
let t = e?.parentNode ?? null;
|
|
8120
8122
|
for (; t;) {
|
|
8121
8123
|
if (t.nodeType === 1) return t;
|
|
@@ -8133,8 +8135,8 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8133
8135
|
}, b = r(() => {
|
|
8134
8136
|
let e = u.value === "horizontal" ? m.value : p.value;
|
|
8135
8137
|
return e > 0 ? e : y();
|
|
8136
|
-
}), x = r(() =>
|
|
8137
|
-
let e =
|
|
8138
|
+
}), x = r(() => Vc(n.minSize, b.value) ?? 0), S = r(() => Vc(n.collapsedSize, b.value) ?? 0), C = r(() => {
|
|
8139
|
+
let e = Vc(n.maxSize, b.value);
|
|
8138
8140
|
return e !== void 0 && e > 0 ? e : b.value > 0 ? b.value : u.value === "horizontal" ? g.value : h.value;
|
|
8139
8141
|
}), w = (e) => n.collapsible && e === S.value ? e : Math.max(x.value, Math.min(C.value, e)), E = () => {
|
|
8140
8142
|
let e = c.value;
|
|
@@ -8172,10 +8174,10 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8172
8174
|
} catch {}
|
|
8173
8175
|
}, ee = (e) => {
|
|
8174
8176
|
A(e), i.value = e;
|
|
8175
|
-
}, { handleProps: P, isResizing: F, syncSize: I } =
|
|
8177
|
+
}, { handleProps: P, isResizing: F, syncSize: I } = Uc({
|
|
8176
8178
|
collapsedSize: S,
|
|
8177
8179
|
collapsible: () => n.collapsible,
|
|
8178
|
-
defaultSize: () =>
|
|
8180
|
+
defaultSize: () => Vc(n.defaultSize, b.value) ?? x.value,
|
|
8179
8181
|
disabled: () => n.disabled,
|
|
8180
8182
|
edge: () => n.edge,
|
|
8181
8183
|
keyboardStep: () => n.keyboardStep,
|
|
@@ -8219,7 +8221,7 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8219
8221
|
let e = i.value === void 0 ? M() : void 0, t = i.value ?? (e?.collapsed && n.collapsible ? n.collapsedSize : e?.size) ?? n.defaultSize;
|
|
8220
8222
|
if (typeof t == "string" && t.trim().endsWith("%") && b.value <= 0) return;
|
|
8221
8223
|
l = !0;
|
|
8222
|
-
let r =
|
|
8224
|
+
let r = Vc(t, b.value);
|
|
8223
8225
|
if (r === void 0) {
|
|
8224
8226
|
let e = O(), t = e === 0 ? 0 : w(e);
|
|
8225
8227
|
t !== e && ee(t), I(t);
|
|
@@ -8237,31 +8239,31 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8237
8239
|
"data-testid": "pv-resize-handle"
|
|
8238
8240
|
}, z(P)), null, 16));
|
|
8239
8241
|
}
|
|
8240
|
-
}),
|
|
8242
|
+
}), Gc = {
|
|
8241
8243
|
key: 1,
|
|
8242
8244
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
8243
8245
|
style: { "flex-shrink": "0" }
|
|
8244
|
-
},
|
|
8246
|
+
}, Kc = {
|
|
8245
8247
|
class: "pv-flex-vertical pv-stack-16",
|
|
8246
8248
|
style: { "--flex-align": "flex-start" }
|
|
8247
|
-
},
|
|
8249
|
+
}, qc = { class: "pv-flex pv-full-width" }, Jc = { class: "pv-full-width pv-heading-3" }, Yc = {
|
|
8248
8250
|
key: 0,
|
|
8249
8251
|
class: "pv-text-body-md"
|
|
8250
|
-
},
|
|
8252
|
+
}, Xc = {
|
|
8251
8253
|
key: 0,
|
|
8252
8254
|
class: "pv-inset-inline-16"
|
|
8253
|
-
},
|
|
8255
|
+
}, Zc = {
|
|
8254
8256
|
class: "pv-inset-inline-16",
|
|
8255
8257
|
style: {
|
|
8256
8258
|
flex: "1",
|
|
8257
8259
|
"overflow-y": "auto",
|
|
8258
8260
|
"min-height": "0"
|
|
8259
8261
|
}
|
|
8260
|
-
},
|
|
8262
|
+
}, Qc = {
|
|
8261
8263
|
key: 2,
|
|
8262
8264
|
class: "pv-inset-squish-12 pv-border-top",
|
|
8263
8265
|
style: { "flex-shrink": "0" }
|
|
8264
|
-
},
|
|
8266
|
+
}, $c = /* @__PURE__ */ d({
|
|
8265
8267
|
__name: "PvDrawer",
|
|
8266
8268
|
props: /* @__PURE__ */ g({
|
|
8267
8269
|
closeOnClickOutside: {
|
|
@@ -8323,15 +8325,15 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8323
8325
|
height: "100%"
|
|
8324
8326
|
}
|
|
8325
8327
|
}, [
|
|
8326
|
-
e.resizable ? (D(), i(
|
|
8328
|
+
e.resizable ? (D(), i(Wc, {
|
|
8327
8329
|
key: 0,
|
|
8328
8330
|
size: p.value,
|
|
8329
8331
|
"onUpdate:size": c[0] ||= (e) => p.value = e,
|
|
8330
8332
|
ariaLabel: "Resize drawer",
|
|
8331
|
-
defaultSize: z(
|
|
8333
|
+
defaultSize: z(Vc)(e.defaultWidth, z(d)) ?? Math.min(600, z(d)),
|
|
8332
8334
|
edge: e.resizeEdge,
|
|
8333
|
-
maxSize: z(
|
|
8334
|
-
minSize: z(
|
|
8335
|
+
maxSize: z(Vc)(e.maxWidth, z(d)) ?? z(d),
|
|
8336
|
+
minSize: z(Vc)(e.minWidth, z(d)),
|
|
8335
8337
|
storageKey: e.resizeStorageKey
|
|
8336
8338
|
}, null, 8, [
|
|
8337
8339
|
"size",
|
|
@@ -8341,30 +8343,30 @@ var Rc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", zc =
|
|
|
8341
8343
|
"minSize",
|
|
8342
8344
|
"storageKey"
|
|
8343
8345
|
])) : a("", !0),
|
|
8344
|
-
e.hideHeader ? a("", !0) : (D(), o("div",
|
|
8346
|
+
e.hideHeader ? a("", !0) : (D(), o("div", Gc, [n.$slots.header ? j(n.$slots, "header", { key: 0 }) : (D(), o(t, { key: 1 }, [s("div", Kc, [s("div", qc, [s("span", Jc, P(e.header), 1), u(Zn, {
|
|
8345
8347
|
"left-icon": "close",
|
|
8346
8348
|
ariaLabel: "Close",
|
|
8347
8349
|
size: "md",
|
|
8348
8350
|
onClick: h,
|
|
8349
8351
|
"data-testid": "pv-side-panel-close-button",
|
|
8350
8352
|
variant: "ghost"
|
|
8351
|
-
})]), e.subheader ? (D(), o("span",
|
|
8353
|
+
})]), e.subheader ? (D(), o("span", Yc, P(e.subheader), 1)) : a("", !0)]), e.showSearchbar && f.value !== void 0 ? (D(), o("div", Xc, [u(Ma, _({
|
|
8352
8354
|
"data-testid": "pv-side-panel-input-search",
|
|
8353
8355
|
modelValue: f.value,
|
|
8354
8356
|
"onUpdate:modelValue": c[1] ||= (e) => f.value = e
|
|
8355
8357
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))])),
|
|
8356
|
-
s("div",
|
|
8357
|
-
n.$slots.footer ? (D(), o("div",
|
|
8358
|
+
s("div", Zc, [j(n.$slots, "default")]),
|
|
8359
|
+
n.$slots.footer ? (D(), o("div", Qc, [j(n.$slots, "footer")])) : a("", !0)
|
|
8358
8360
|
], 2));
|
|
8359
8361
|
}
|
|
8360
8362
|
});
|
|
8361
8363
|
Math.random().toString();
|
|
8362
8364
|
//#endregion
|
|
8363
8365
|
//#region src/components/base/PvMenu/PvMenuControlPanel.vue?vue&type=script&setup=true&lang.ts
|
|
8364
|
-
var
|
|
8366
|
+
var el = {
|
|
8365
8367
|
"data-testid": "pv-select-menu-control-panel",
|
|
8366
8368
|
class: "pv-flex pv-space-between"
|
|
8367
|
-
},
|
|
8369
|
+
}, tl = /* @__PURE__ */ d({
|
|
8368
8370
|
__name: "PvMenuControlPanel",
|
|
8369
8371
|
props: {
|
|
8370
8372
|
variant: {},
|
|
@@ -8379,7 +8381,7 @@ var Qc = {
|
|
|
8379
8381
|
],
|
|
8380
8382
|
setup(e) {
|
|
8381
8383
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
8382
|
-
return (n, r) => (D(), o("div",
|
|
8384
|
+
return (n, r) => (D(), o("div", el, [e.variant === "select-clear" ? (D(), o(t, { key: 0 }, [u(Zn, {
|
|
8383
8385
|
variant: "ghost",
|
|
8384
8386
|
"data-testid": "pv-select-menu-item-select-all",
|
|
8385
8387
|
"data-dd-action-name": i.value,
|
|
@@ -8406,25 +8408,25 @@ var Qc = {
|
|
|
8406
8408
|
disabled: e.disabled
|
|
8407
8409
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
8408
8410
|
}
|
|
8409
|
-
}),
|
|
8411
|
+
}), nl = ["data-dd-action-name"], rl = {
|
|
8410
8412
|
key: 1,
|
|
8411
8413
|
class: "pv-inset-square-8"
|
|
8412
|
-
},
|
|
8414
|
+
}, il = {
|
|
8413
8415
|
key: 1,
|
|
8414
8416
|
class: "pv-text-body-sm pv-inset-inline",
|
|
8415
8417
|
style: {
|
|
8416
8418
|
color: "var(--color-text-quaternary, #89989b)",
|
|
8417
8419
|
"--inset-size": "8px"
|
|
8418
8420
|
}
|
|
8419
|
-
},
|
|
8421
|
+
}, al = {
|
|
8420
8422
|
key: 2,
|
|
8421
8423
|
class: "pv-border-top",
|
|
8422
8424
|
style: { margin: "8px 0" }
|
|
8423
|
-
},
|
|
8425
|
+
}, ol = {
|
|
8424
8426
|
key: 3,
|
|
8425
8427
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
8426
8428
|
style: { "justify-content": "center" }
|
|
8427
|
-
},
|
|
8429
|
+
}, sl = { key: 0 }, cl = /* @__PURE__ */ d({
|
|
8428
8430
|
__name: "PvMultiSelectButton",
|
|
8429
8431
|
props: /* @__PURE__ */ g({
|
|
8430
8432
|
companyLogo: {},
|
|
@@ -8719,10 +8721,10 @@ var Qc = {
|
|
|
8719
8721
|
"onUpdate:modelValue": r[1] ||= (e) => R.value = e,
|
|
8720
8722
|
class: "pv-stack-4",
|
|
8721
8723
|
placeholder: e.searchPlaceholder
|
|
8722
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
8723
|
-
n.$slots.header || z(ve) ? (D(), o("div",
|
|
8724
|
+
}, null, 8, ["model-value", "placeholder"])], 8, nl)),
|
|
8725
|
+
n.$slots.header || z(ve) ? (D(), o("div", rl, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
8724
8726
|
J.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(X.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8725
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
8727
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", il, P(t), 1)),
|
|
8726
8728
|
u(Go, {
|
|
8727
8729
|
selectedItems: oe.value,
|
|
8728
8730
|
"onUpdate:selectedItems": r[2] ||= (e) => oe.value = e,
|
|
@@ -8749,7 +8751,7 @@ var Qc = {
|
|
|
8749
8751
|
"enableCascadeSelection",
|
|
8750
8752
|
"hasMoreOptions"
|
|
8751
8753
|
]),
|
|
8752
|
-
X.value && s !== X.value.length - 1 ? (D(), o("div",
|
|
8754
|
+
X.value && s !== X.value.length - 1 ? (D(), o("div", al)) : a("", !0)
|
|
8753
8755
|
]))), 128)) : (D(), i(Go, {
|
|
8754
8756
|
key: 1,
|
|
8755
8757
|
selectedItems: oe.value,
|
|
@@ -8775,7 +8777,7 @@ var Qc = {
|
|
|
8775
8777
|
"isSeeMoreLoading",
|
|
8776
8778
|
"hasMoreOptions"
|
|
8777
8779
|
]))], 64)) : a("", !0),
|
|
8778
|
-
e.isLoading ? (D(), o("div",
|
|
8780
|
+
e.isLoading ? (D(), o("div", ol, [u(Dt, { variant: "dark" }), e.loadingText ? (D(), o("span", sl, P(e.loadingText), 1)) : a("", !0)])) : J.value.length === 0 ? (D(), o(t, { key: 4 }, [z(ye) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(Xa, { key: 1 }))], 64)) : a("", !0),
|
|
8779
8781
|
z(be) || e.menuActionsVariant ? (D(), o("div", {
|
|
8780
8782
|
key: 5,
|
|
8781
8783
|
class: y(["pv-sticky pv-surface pv-border-top pv-inset-square-8", { "pv-flow-8": e.footerPosition === "below-actions" }]),
|
|
@@ -8785,7 +8787,7 @@ var Qc = {
|
|
|
8785
8787
|
}
|
|
8786
8788
|
}, [
|
|
8787
8789
|
z(be) && e.footerPosition === "above-actions" ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0),
|
|
8788
|
-
e.menuActionsVariant ? (D(), i(
|
|
8790
|
+
e.menuActionsVariant ? (D(), i(tl, {
|
|
8789
8791
|
key: 1,
|
|
8790
8792
|
variant: e.menuActionsVariant,
|
|
8791
8793
|
disabled: e.isLoading,
|
|
@@ -8805,16 +8807,16 @@ var Qc = {
|
|
|
8805
8807
|
_: 3
|
|
8806
8808
|
}, 16, ["modelValue", "offset"]));
|
|
8807
8809
|
}
|
|
8808
|
-
}),
|
|
8810
|
+
}), ll = ["id"], ul = {
|
|
8809
8811
|
key: 0,
|
|
8810
8812
|
class: "pv-sortable-list-divider-container"
|
|
8811
|
-
},
|
|
8813
|
+
}, dl = ["data-label"], fl = ["onDrop"], pl = {
|
|
8812
8814
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-sortable-list-placeholder-dropzone",
|
|
8813
8815
|
style: { "--flex-justify": "center" }
|
|
8814
|
-
},
|
|
8816
|
+
}, ml = { class: "pv-text-body-sm pv-text-tertiary" }, hl = { style: { "max-width": "220px" } }, gl = {
|
|
8815
8817
|
key: 1,
|
|
8816
8818
|
class: "pv-sortable-list-button-placeholder"
|
|
8817
|
-
},
|
|
8819
|
+
}, _l = "--divider--", vl = "placeholder-", yl = /* @__PURE__ */ d({
|
|
8818
8820
|
__name: "PvSortableList",
|
|
8819
8821
|
props: /* @__PURE__ */ g({
|
|
8820
8822
|
options: { default: () => [] },
|
|
@@ -8839,11 +8841,11 @@ var Qc = {
|
|
|
8839
8841
|
let t = c.value.filter(l), r = e.filter((e) => !l(e));
|
|
8840
8842
|
return [...t, ...r].slice(0, n.activeOptionLimit || Infinity);
|
|
8841
8843
|
}, p = {
|
|
8842
|
-
id:
|
|
8844
|
+
id: _l,
|
|
8843
8845
|
text: "",
|
|
8844
8846
|
disabled: !0
|
|
8845
8847
|
}, m = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), h = r(() => !n.showPlaceholders || m.value === 0 ? [] : Array.from({ length: m.value }, (e, t) => ({
|
|
8846
|
-
id: `${
|
|
8848
|
+
id: `${vl}${t}`,
|
|
8847
8849
|
text: "",
|
|
8848
8850
|
disabled: !0,
|
|
8849
8851
|
isPlaceholder: !0
|
|
@@ -8857,25 +8859,25 @@ var Qc = {
|
|
|
8857
8859
|
];
|
|
8858
8860
|
}), _ = re("sortableListRef"), v = re("containerRef"), b = null, S = null, C = !1, w = () => {
|
|
8859
8861
|
if (!_.value) return c.value;
|
|
8860
|
-
let e = Array.from(_.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
8861
|
-
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(
|
|
8862
|
+
let e = Array.from(_.value.children).map((e) => e.id), t = e.findIndex((e) => e === _l);
|
|
8863
|
+
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(vl)), e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
8862
8864
|
};
|
|
8863
8865
|
T(() => {
|
|
8864
8866
|
_.value && (b = new at(_.value, {
|
|
8865
8867
|
animation: 200,
|
|
8866
|
-
filter: `#${
|
|
8868
|
+
filter: `#${_l}, [id^="placeholder-"], .pv-sortable-locked`,
|
|
8867
8869
|
dragoverBubble: !0,
|
|
8868
8870
|
onStart: (e) => {
|
|
8869
8871
|
S = e.item, C = !1;
|
|
8870
8872
|
},
|
|
8871
8873
|
onMove: (e) => {
|
|
8872
8874
|
let t = e.related;
|
|
8873
|
-
if (t?.id?.startsWith(
|
|
8875
|
+
if (t?.id?.startsWith(vl)) return !1;
|
|
8874
8876
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
8875
8877
|
if (!r || n.options.find((e) => e.id === t?.id && l(e))) return !1;
|
|
8876
8878
|
if (M(r)) return !0;
|
|
8877
8879
|
if (N.value) return !1;
|
|
8878
|
-
if (t?.id ===
|
|
8880
|
+
if (t?.id === _l) return !0;
|
|
8879
8881
|
let i = n.options.find((e) => e.id === t?.id);
|
|
8880
8882
|
return !!i && M(i);
|
|
8881
8883
|
},
|
|
@@ -8931,16 +8933,16 @@ var Qc = {
|
|
|
8931
8933
|
key: e.id,
|
|
8932
8934
|
id: e.id,
|
|
8933
8935
|
class: "pv-stack-4"
|
|
8934
|
-
}, [e.id ===
|
|
8936
|
+
}, [e.id === _l ? (D(), o("div", ul, [s("div", {
|
|
8935
8937
|
class: "pv-sortable-list-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
8936
8938
|
"data-label": N.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
8937
|
-
}, null, 8,
|
|
8939
|
+
}, null, 8, dl)])) : e.id.includes(vl) ? (D(), o("div", {
|
|
8938
8940
|
key: 1,
|
|
8939
8941
|
class: "pv-sortable-list-placeholder-zone",
|
|
8940
8942
|
onDragover: r[0] ||= (e) => O(e),
|
|
8941
8943
|
onDragleave: r[1] ||= (e) => k(e),
|
|
8942
8944
|
onDrop: (t) => j(t, parseInt(e.id.split("-")[1]) + 1)
|
|
8943
|
-
}, [s("div",
|
|
8945
|
+
}, [s("div", pl, [s("span", ml, P(n.placeholderText), 1)])], 40, fl)) : (D(), o("div", {
|
|
8944
8946
|
key: 2,
|
|
8945
8947
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", [!M(e) && N.value ? "pv-sortable-list-option-disabled" : "", l(e) ? "pv-sortable-locked" : ""]]),
|
|
8946
8948
|
style: x(I(e))
|
|
@@ -8966,7 +8968,7 @@ var Qc = {
|
|
|
8966
8968
|
class: "pv-text-tertiary",
|
|
8967
8969
|
name: "info-circle"
|
|
8968
8970
|
})]),
|
|
8969
|
-
content: G(() => [s("div",
|
|
8971
|
+
content: G(() => [s("div", hl, P(d(e)), 1)]),
|
|
8970
8972
|
_: 2
|
|
8971
8973
|
}, 1024)) : a("", !0)
|
|
8972
8974
|
], 2), !F(e) && !l(e) ? (D(), i(Zn, {
|
|
@@ -8983,20 +8985,20 @@ var Qc = {
|
|
|
8983
8985
|
"style",
|
|
8984
8986
|
"class",
|
|
8985
8987
|
"onClick"
|
|
8986
|
-
])) : (D(), o("div",
|
|
8988
|
+
])) : (D(), o("div", gl))], 6))], 8, ll))), 128))], 512)], 512));
|
|
8987
8989
|
}
|
|
8988
|
-
}),
|
|
8990
|
+
}), bl = {
|
|
8989
8991
|
short: 5,
|
|
8990
8992
|
long: 7
|
|
8991
|
-
},
|
|
8992
|
-
if (n <=
|
|
8993
|
+
}, xl = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
8994
|
+
if (n <= bl[e]) return Array.from({ length: n }, (e, t) => ({
|
|
8993
8995
|
page: t + 1,
|
|
8994
8996
|
label: (t + 1).toString()
|
|
8995
8997
|
}));
|
|
8996
8998
|
let r = [{
|
|
8997
8999
|
page: 1,
|
|
8998
9000
|
label: "1"
|
|
8999
|
-
}], i =
|
|
9001
|
+
}], i = bl[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
9000
9002
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
9001
9003
|
page: 0,
|
|
9002
9004
|
label: "..."
|
|
@@ -9015,11 +9017,11 @@ var Qc = {
|
|
|
9015
9017
|
page: n,
|
|
9016
9018
|
label: n.toString()
|
|
9017
9019
|
}), r;
|
|
9018
|
-
} }),
|
|
9020
|
+
} }), Sl = ["data-style"], Cl = ["data-testid", "aria-current"], wl = {
|
|
9019
9021
|
key: 0,
|
|
9020
9022
|
class: "dots-button pv-text-subdued",
|
|
9021
9023
|
disabled: ""
|
|
9022
|
-
},
|
|
9024
|
+
}, Tl = ["onClick"], El = /* @__PURE__ */ sn(/* @__PURE__ */ d({
|
|
9023
9025
|
__name: "PvPagination",
|
|
9024
9026
|
props: /* @__PURE__ */ g({
|
|
9025
9027
|
size: { default: "lg" },
|
|
@@ -9032,7 +9034,7 @@ var Qc = {
|
|
|
9032
9034
|
}),
|
|
9033
9035
|
emits: ["update:modelValue"],
|
|
9034
9036
|
setup(e) {
|
|
9035
|
-
let { getPaginations: n } =
|
|
9037
|
+
let { getPaginations: n } = xl({ variant: e.variant }), r = V(e, "modelValue");
|
|
9036
9038
|
return (i, a) => (D(), o("ol", {
|
|
9037
9039
|
role: "list",
|
|
9038
9040
|
class: "pv-pagination",
|
|
@@ -9054,10 +9056,10 @@ var Qc = {
|
|
|
9054
9056
|
key: e.page,
|
|
9055
9057
|
"data-testid": `pagination-button-${e.page}`,
|
|
9056
9058
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
9057
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
9059
|
+
}, [e.label === "..." ? (D(), o("button", wl, P(e.label), 1)) : (D(), o("button", {
|
|
9058
9060
|
key: 1,
|
|
9059
9061
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
9060
|
-
}, P(e.label), 9,
|
|
9062
|
+
}, P(e.label), 9, Tl))], 8, Cl))), 128)),
|
|
9061
9063
|
s("li", null, [u(Zn, {
|
|
9062
9064
|
"data-testid": "pagination-right-arrow-icon",
|
|
9063
9065
|
disabled: r.value === e.maxPages,
|
|
@@ -9066,9 +9068,9 @@ var Qc = {
|
|
|
9066
9068
|
variant: "ghost",
|
|
9067
9069
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
9068
9070
|
}, null, 8, ["disabled"])])
|
|
9069
|
-
], 8,
|
|
9071
|
+
], 8, Sl));
|
|
9070
9072
|
}
|
|
9071
|
-
}), [["__scopeId", "data-v-92e78cd3"]]),
|
|
9073
|
+
}), [["__scopeId", "data-v-92e78cd3"]]), Dl = /* @__PURE__ */ d({
|
|
9072
9074
|
__name: "PvSkeleton",
|
|
9073
9075
|
props: {
|
|
9074
9076
|
size: { default: "md" },
|
|
@@ -9106,7 +9108,7 @@ Math.random().toString(), new Intl.NumberFormat("en-US", {
|
|
|
9106
9108
|
});
|
|
9107
9109
|
//#endregion
|
|
9108
9110
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
9109
|
-
var
|
|
9111
|
+
var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" && !!e, Al = (e) => {
|
|
9110
9112
|
try {
|
|
9111
9113
|
let t = JSON.parse(decodeURIComponent(e));
|
|
9112
9114
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -9120,7 +9122,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9120
9122
|
} catch {
|
|
9121
9123
|
return [];
|
|
9122
9124
|
}
|
|
9123
|
-
},
|
|
9125
|
+
}, jl = (e) => {
|
|
9124
9126
|
if (!e.startsWith("__")) return null;
|
|
9125
9127
|
let t = e.slice(2).split("__");
|
|
9126
9128
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -9133,68 +9135,68 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9133
9135
|
pairs: n,
|
|
9134
9136
|
value: n[0].value
|
|
9135
9137
|
};
|
|
9136
|
-
},
|
|
9138
|
+
}, Ml = (e) => {
|
|
9137
9139
|
if (e == null) return null;
|
|
9138
|
-
if (!e.startsWith(
|
|
9140
|
+
if (!e.startsWith(Ol)) return jl(e) ?? {
|
|
9139
9141
|
pairs: [],
|
|
9140
9142
|
value: e
|
|
9141
9143
|
};
|
|
9142
|
-
let t =
|
|
9144
|
+
let t = Al(e.slice(32));
|
|
9143
9145
|
return {
|
|
9144
9146
|
field: t[0]?.field,
|
|
9145
9147
|
pairs: t,
|
|
9146
9148
|
value: t[0]?.value ?? e
|
|
9147
9149
|
};
|
|
9148
|
-
},
|
|
9150
|
+
}, Nl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : kl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : Ml(e.value)?.value ?? e.value : null, Pl = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Ml(e?.value)?.field ?? t, Fl = (e, t, n, r) => Pl(e, r) === t && Nl(e) === n, Il = (e) => {
|
|
9149
9151
|
let t = e;
|
|
9150
9152
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
9151
|
-
},
|
|
9153
|
+
}, Ll = (e) => {
|
|
9152
9154
|
let t = e;
|
|
9153
|
-
return
|
|
9155
|
+
return Il(e) ? {
|
|
9154
9156
|
...t,
|
|
9155
|
-
conditions: (t.conditions ?? []).map(
|
|
9157
|
+
conditions: (t.conditions ?? []).map(Ll)
|
|
9156
9158
|
} : { ...t };
|
|
9157
|
-
},
|
|
9159
|
+
}, Rl = (e, t) => {
|
|
9158
9160
|
if (!e) return null;
|
|
9159
9161
|
let n = t instanceof Set ? t : new Set(t);
|
|
9160
|
-
if (!n.size) return
|
|
9161
|
-
if (!
|
|
9162
|
+
if (!n.size) return Ll(e);
|
|
9163
|
+
if (!Il(e)) {
|
|
9162
9164
|
let t = e;
|
|
9163
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
9165
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Ll(e);
|
|
9164
9166
|
}
|
|
9165
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
9167
|
+
let r = e, i = (r.conditions ?? []).map((e) => Rl(e, n)).filter((e) => !!e);
|
|
9166
9168
|
return i.length ? i.length === 1 ? i[0] : {
|
|
9167
9169
|
...r,
|
|
9168
9170
|
conditions: i
|
|
9169
9171
|
} : null;
|
|
9170
|
-
},
|
|
9172
|
+
}, zl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(zl)] : [], Bl = (e) => e ? e.children?.length ? e.children.flatMap(Bl) : [e.field] : [], Vl = (e) => {
|
|
9171
9173
|
let t = e?.context ?? {};
|
|
9172
|
-
return t.aggregateFieldHierarchy ?
|
|
9173
|
-
},
|
|
9174
|
+
return t.aggregateFieldHierarchy ? zl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
9175
|
+
}, Hl = (e) => {
|
|
9174
9176
|
let t = e?.context ?? {};
|
|
9175
9177
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
9176
|
-
},
|
|
9178
|
+
}, Ul = (e, t) => {
|
|
9177
9179
|
for (let n of e ?? []) {
|
|
9178
9180
|
if (!n) continue;
|
|
9179
9181
|
if (n.value === t) return n;
|
|
9180
|
-
let e =
|
|
9182
|
+
let e = Ul(n.children, t);
|
|
9181
9183
|
if (e) return e;
|
|
9182
9184
|
}
|
|
9183
|
-
},
|
|
9184
|
-
let n =
|
|
9185
|
+
}, Wl = (e, t) => {
|
|
9186
|
+
let n = Ul(t, e), r = n ? Pl(n, "") : void 0, i = n ? Nl(n) : null;
|
|
9185
9187
|
if (r && i !== null) return {
|
|
9186
9188
|
field: r,
|
|
9187
9189
|
value: i
|
|
9188
9190
|
};
|
|
9189
|
-
let a =
|
|
9191
|
+
let a = Ml(e);
|
|
9190
9192
|
return {
|
|
9191
9193
|
field: a?.field,
|
|
9192
9194
|
value: a?.value ?? e
|
|
9193
9195
|
};
|
|
9194
|
-
},
|
|
9196
|
+
}, Gl = (e, t, n) => {
|
|
9195
9197
|
let r = (e) => {
|
|
9196
9198
|
if (!e) return;
|
|
9197
|
-
let i =
|
|
9199
|
+
let i = Pl(e, ""), a = Nl(e);
|
|
9198
9200
|
if (i === t && a === n) return e.value;
|
|
9199
9201
|
for (let t of e.children ?? []) {
|
|
9200
9202
|
let e = r(t);
|
|
@@ -9206,9 +9208,9 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9206
9208
|
if (e) return e;
|
|
9207
9209
|
}
|
|
9208
9210
|
return `__${t}__${n}`;
|
|
9209
|
-
},
|
|
9211
|
+
}, Kl = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...Kl(e.children)]), ql = (e, t) => {
|
|
9210
9212
|
if (e.state !== "selected") return null;
|
|
9211
|
-
let { field: n, value: r } =
|
|
9213
|
+
let { field: n, value: r } = Wl(e.id, t);
|
|
9212
9214
|
if (!n) return null;
|
|
9213
9215
|
let i = [{
|
|
9214
9216
|
colId: n,
|
|
@@ -9216,8 +9218,8 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9216
9218
|
filterType: "text",
|
|
9217
9219
|
type: "equals"
|
|
9218
9220
|
}];
|
|
9219
|
-
for (let n of
|
|
9220
|
-
let e =
|
|
9221
|
+
for (let n of Kl(e.children)) {
|
|
9222
|
+
let e = Wl(n.id, t);
|
|
9221
9223
|
e.field && i.push({
|
|
9222
9224
|
colId: e.field,
|
|
9223
9225
|
filter: e.value,
|
|
@@ -9230,10 +9232,10 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9230
9232
|
filterType: "join",
|
|
9231
9233
|
type: "AND"
|
|
9232
9234
|
};
|
|
9233
|
-
},
|
|
9234
|
-
let t =
|
|
9235
|
+
}, Jl = (e) => {
|
|
9236
|
+
let t = Vl(e.colDef), n = Rl(e.baseModel, t);
|
|
9235
9237
|
if (!t.length) return n;
|
|
9236
|
-
let r = e.state.map((t) =>
|
|
9238
|
+
let r = e.state.map((t) => ql(t, e.options)).filter((e) => !!e);
|
|
9237
9239
|
if (!r.length) return n;
|
|
9238
9240
|
let i = r.length === 1 ? r[0] : {
|
|
9239
9241
|
conditions: r,
|
|
@@ -9245,17 +9247,17 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9245
9247
|
filterType: "join",
|
|
9246
9248
|
type: "AND"
|
|
9247
9249
|
} : i;
|
|
9248
|
-
},
|
|
9250
|
+
}, Yl = (e, t, n) => {
|
|
9249
9251
|
if (!e) return [];
|
|
9250
9252
|
let r = e;
|
|
9251
|
-
if (
|
|
9253
|
+
if (Il(e)) {
|
|
9252
9254
|
let e = r.conditions ?? [];
|
|
9253
9255
|
if (r.type === "AND") {
|
|
9254
9256
|
let r = e.find((e) => {
|
|
9255
9257
|
let r = e;
|
|
9256
9258
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
9257
9259
|
});
|
|
9258
|
-
return e.flatMap((e) =>
|
|
9260
|
+
return e.flatMap((e) => Yl(e, t, n).map((e) => ({
|
|
9259
9261
|
...e,
|
|
9260
9262
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
9261
9263
|
colId: r.colId,
|
|
@@ -9263,20 +9265,20 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9263
9265
|
} : void 0)
|
|
9264
9266
|
})));
|
|
9265
9267
|
}
|
|
9266
|
-
return e.flatMap((e) =>
|
|
9268
|
+
return e.flatMap((e) => Yl(e, t, n));
|
|
9267
9269
|
}
|
|
9268
9270
|
return r.colId && t.has(r.colId) ? [{
|
|
9269
9271
|
colId: r.colId,
|
|
9270
9272
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
9271
9273
|
type: r.type
|
|
9272
9274
|
}] : [];
|
|
9273
|
-
},
|
|
9274
|
-
let t =
|
|
9275
|
+
}, Xl = (e) => {
|
|
9276
|
+
let t = Vl(e.colDef);
|
|
9275
9277
|
if (!t.length) return [];
|
|
9276
|
-
let n = new Set(
|
|
9278
|
+
let n = new Set(Bl(e.colDef.context?.aggregateFieldHierarchy)), r = Hl(e.colDef), i = Yl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
9277
9279
|
for (let t of i) {
|
|
9278
9280
|
if (!t.filter) continue;
|
|
9279
|
-
let n =
|
|
9281
|
+
let n = Gl(e.options, t.colId, String(t.filter));
|
|
9280
9282
|
if (t.type === "equals") {
|
|
9281
9283
|
let e = a.get(n);
|
|
9282
9284
|
a.set(n, {
|
|
@@ -9287,7 +9289,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9287
9289
|
continue;
|
|
9288
9290
|
}
|
|
9289
9291
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
9290
|
-
let r =
|
|
9292
|
+
let r = Gl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
9291
9293
|
children: [],
|
|
9292
9294
|
id: r,
|
|
9293
9295
|
state: "selected"
|
|
@@ -9299,17 +9301,17 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9299
9301
|
}
|
|
9300
9302
|
}
|
|
9301
9303
|
return [...a.values()];
|
|
9302
|
-
},
|
|
9304
|
+
}, Zl = (e, t, n) => {
|
|
9303
9305
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
9304
9306
|
if (r.length <= 1) return "Search";
|
|
9305
9307
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
9306
9308
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
9307
|
-
},
|
|
9308
|
-
if (!r ||
|
|
9309
|
+
}, Ql = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), $l = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
9310
|
+
if (!r || Ql(i) === Ql(r)) return e;
|
|
9309
9311
|
if (!a || !n) return r;
|
|
9310
9312
|
let o = t(n);
|
|
9311
9313
|
return o ? `${o}: ${r}` : r;
|
|
9312
|
-
},
|
|
9314
|
+
}, eu = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, tu = (e, t) => t ?? e, nu = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), ru = (e) => {
|
|
9313
9315
|
let t = /* @__PURE__ */ new Map();
|
|
9314
9316
|
for (let n of e) {
|
|
9315
9317
|
if (!n) continue;
|
|
@@ -9321,34 +9323,34 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9321
9323
|
t.set(n.value, {
|
|
9322
9324
|
...e,
|
|
9323
9325
|
...n,
|
|
9324
|
-
children:
|
|
9325
|
-
totalChildCount:
|
|
9326
|
+
children: ru([...e.children ?? [], ...n.children ?? []]),
|
|
9327
|
+
totalChildCount: tu(e.totalChildCount, n.totalChildCount)
|
|
9326
9328
|
});
|
|
9327
9329
|
}
|
|
9328
9330
|
return [...t.values()];
|
|
9329
|
-
},
|
|
9331
|
+
}, iu = (e, t) => {
|
|
9330
9332
|
for (let n of e ?? []) {
|
|
9331
9333
|
if (!n) continue;
|
|
9332
9334
|
if (n.value === t) return n;
|
|
9333
|
-
let e =
|
|
9335
|
+
let e = iu(n.children, t);
|
|
9334
9336
|
if (e) return e;
|
|
9335
9337
|
}
|
|
9336
|
-
},
|
|
9338
|
+
}, au = (e, t, n) => {
|
|
9337
9339
|
if (!e || t === null) return !1;
|
|
9338
9340
|
if (e.value === t) return !0;
|
|
9339
|
-
let r =
|
|
9340
|
-
return r !== null && r === t ||
|
|
9341
|
-
},
|
|
9342
|
-
let r =
|
|
9341
|
+
let r = Nl(e);
|
|
9342
|
+
return r !== null && r === t || Fl(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => au(e, t, n)) ?? !1;
|
|
9343
|
+
}, ou = (e, t, n) => {
|
|
9344
|
+
let r = iu(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
9343
9345
|
return e.map((e) => e && (e.value === t ? {
|
|
9344
9346
|
...e,
|
|
9345
|
-
children:
|
|
9346
|
-
totalChildCount:
|
|
9347
|
+
children: ru([...e.children ?? [], ...i]),
|
|
9348
|
+
totalChildCount: tu(e.totalChildCount, r?.totalChildCount)
|
|
9347
9349
|
} : e.children?.length ? {
|
|
9348
9350
|
...e,
|
|
9349
|
-
children:
|
|
9351
|
+
children: ou(e.children, t, n).filter((e) => !!e)
|
|
9350
9352
|
} : e));
|
|
9351
|
-
},
|
|
9353
|
+
}, su = (e, t) => `${e}::${t}`, cu = () => {
|
|
9352
9354
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k({}), v = k(), y = k({}), b = (e) => {
|
|
9353
9355
|
v.value = e;
|
|
9354
9356
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -9357,11 +9359,11 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9357
9359
|
let r = n ? o : i;
|
|
9358
9360
|
r.value[e] = t;
|
|
9359
9361
|
}, T = () => {
|
|
9360
|
-
o.value =
|
|
9362
|
+
o.value = nu(i.value), s.value = nu(a.value);
|
|
9361
9363
|
}, E = () => {
|
|
9362
9364
|
o.value = {}, s.value = {};
|
|
9363
9365
|
}, D = () => {
|
|
9364
|
-
i.value =
|
|
9366
|
+
i.value = nu(o.value), a.value = nu(s.value), E();
|
|
9365
9367
|
}, O = (e, t) => {
|
|
9366
9368
|
c.value[e] = t;
|
|
9367
9369
|
}, A = (e, t) => {
|
|
@@ -9385,7 +9387,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9385
9387
|
if (!o) return [];
|
|
9386
9388
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
9387
9389
|
c.value[n.field] = s;
|
|
9388
|
-
let u = n.parentId ?
|
|
9390
|
+
let u = n.parentId ? iu(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 = M(n.field, y), x = n.parentId ? su(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
9389
9391
|
g.value[x] = S;
|
|
9390
9392
|
try {
|
|
9391
9393
|
let c = await o({
|
|
@@ -9397,17 +9399,17 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9397
9399
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
9398
9400
|
});
|
|
9399
9401
|
if (g.value[x] !== S) return [];
|
|
9400
|
-
let u =
|
|
9402
|
+
let u = eu(c);
|
|
9401
9403
|
if (n.parentId) {
|
|
9402
|
-
let e =
|
|
9404
|
+
let e = su(n.field, n.parentId);
|
|
9403
9405
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
9404
9406
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
9405
9407
|
let v = a.value[n.field] ?? [], b;
|
|
9406
|
-
b = n.parentId ?
|
|
9408
|
+
b = n.parentId ? ou(r.value[n.field] ?? [], n.parentId, u.values) : y ? ru([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
9407
9409
|
for (let e of v) {
|
|
9408
9410
|
if (!e) continue;
|
|
9409
|
-
let t =
|
|
9410
|
-
b.some((e) =>
|
|
9411
|
+
let t = Nl(e) ?? e.value;
|
|
9412
|
+
b.some((e) => au(e, t, n.field)) || b.push(e);
|
|
9411
9413
|
}
|
|
9412
9414
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
9413
9415
|
} finally {
|
|
@@ -9442,7 +9444,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9442
9444
|
stagedFilterSelectedMetadataMap: s,
|
|
9443
9445
|
stagedFilterSelectedValueMap: o
|
|
9444
9446
|
};
|
|
9445
|
-
},
|
|
9447
|
+
}, lu = () => {
|
|
9446
9448
|
let e = (e, n) => {
|
|
9447
9449
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
9448
9450
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -9455,7 +9457,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9455
9457
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
9456
9458
|
} : null
|
|
9457
9459
|
};
|
|
9458
|
-
},
|
|
9460
|
+
}, uu = /* @__PURE__ */ d({
|
|
9459
9461
|
__name: "QueryFormatter",
|
|
9460
9462
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
9461
9463
|
modelValue: { required: !0 },
|
|
@@ -9469,7 +9471,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9469
9471
|
}),
|
|
9470
9472
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
9471
9473
|
setup(e) {
|
|
9472
|
-
let n = e, s = V(e, "modelValue"), c = V(e, "wrap-content"), { removeQueryOption: l } =
|
|
9474
|
+
let n = e, s = V(e, "modelValue"), c = V(e, "wrap-content"), { removeQueryOption: l } = lu(), u = r(() => {
|
|
9473
9475
|
let e = s.value?.queryTerms || [];
|
|
9474
9476
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
9475
9477
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -9500,27 +9502,27 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9500
9502
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
9501
9503
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
9502
9504
|
}
|
|
9503
|
-
}),
|
|
9505
|
+
}), du = [
|
|
9504
9506
|
"aria-expanded",
|
|
9505
9507
|
"aria-activedescendant",
|
|
9506
9508
|
"disabled",
|
|
9507
9509
|
"placeholder",
|
|
9508
9510
|
"data-invalid"
|
|
9509
|
-
],
|
|
9511
|
+
], fu = {
|
|
9510
9512
|
key: 2,
|
|
9511
9513
|
class: "pv-text-red pv-text-body-xs"
|
|
9512
|
-
},
|
|
9514
|
+
}, pu = ["id"], mu = [
|
|
9513
9515
|
"id",
|
|
9514
9516
|
"aria-selected",
|
|
9515
9517
|
"aria-describedby",
|
|
9516
9518
|
"onMouseenter"
|
|
9517
|
-
],
|
|
9519
|
+
], hu = {
|
|
9518
9520
|
key: 1,
|
|
9519
9521
|
role: "presentation"
|
|
9520
|
-
},
|
|
9522
|
+
}, gu = {
|
|
9521
9523
|
key: 1,
|
|
9522
9524
|
class: "pv-text-center"
|
|
9523
|
-
},
|
|
9525
|
+
}, _u = /* @__PURE__ */ d({
|
|
9524
9526
|
__name: "PvQueryBuilderInput",
|
|
9525
9527
|
props: /* @__PURE__ */ g({
|
|
9526
9528
|
placeholder: { default: "Search" },
|
|
@@ -9573,7 +9575,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9573
9575
|
width: "100%",
|
|
9574
9576
|
maxWidth: "100%",
|
|
9575
9577
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
9576
|
-
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } =
|
|
9578
|
+
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = lu(), C = k(!1), w = k(!1), T = k(!1), E = ne(), O = r(() => !!(E.header || E.footer || E.empty)), M = te(), N = `${M}-options`, ee = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, I = r(() => se.value.length > 0 || n.optionsLoading || O.value), L = r(() => m.value === null ? n.placeholder : ""), R = k(null), B = r(() => R.value !== null && R.value !== "" && !w.value), ie = () => {
|
|
9577
9579
|
m.value = null, p.value = "", R.value = null, T.value = !1;
|
|
9578
9580
|
};
|
|
9579
9581
|
q("Enter", (e) => {
|
|
@@ -9697,7 +9699,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9697
9699
|
"--inset-size": "4px",
|
|
9698
9700
|
"--flex-gap": "4px"
|
|
9699
9701
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
9700
|
-
}, [u(
|
|
9702
|
+
}, [u(uu, {
|
|
9701
9703
|
modelValue: m.value,
|
|
9702
9704
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
9703
9705
|
"wrap-content": T.value,
|
|
@@ -9723,7 +9725,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9723
9725
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
9724
9726
|
onFocus: _e,
|
|
9725
9727
|
onBlur: _e
|
|
9726
|
-
}, null, 44,
|
|
9728
|
+
}, null, 44, du), [[H, p.value]])], 4),
|
|
9727
9729
|
m.value && !e.hideClearButton ? (D(), i(Zn, {
|
|
9728
9730
|
key: 1,
|
|
9729
9731
|
variant: "ghost",
|
|
@@ -9731,7 +9733,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9731
9733
|
size: "md",
|
|
9732
9734
|
onClick: ie
|
|
9733
9735
|
})) : a("", !0),
|
|
9734
|
-
B.value ? (D(), o("p",
|
|
9736
|
+
B.value ? (D(), o("p", fu, P(R.value), 1)) : a("", !0),
|
|
9735
9737
|
I.value ? ae((D(), i(Lo, {
|
|
9736
9738
|
key: 3,
|
|
9737
9739
|
class: "pv-scrollbar-visible",
|
|
@@ -9741,12 +9743,12 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9741
9743
|
listId: N,
|
|
9742
9744
|
listRole: "listbox"
|
|
9743
9745
|
}, c({
|
|
9744
|
-
default: G(() => [e.optionsLoading ? (D(), o("div",
|
|
9746
|
+
default: G(() => [e.optionsLoading ? (D(), o("div", gu, [u(Dt, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [se.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(J.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
9745
9747
|
key: 0,
|
|
9746
9748
|
id: F(r),
|
|
9747
9749
|
role: "presentation",
|
|
9748
9750
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
9749
|
-
}, P(e), 9,
|
|
9751
|
+
}, P(e), 9, pu)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
9750
9752
|
key: `${e}-${t.id}`,
|
|
9751
9753
|
id: ee(le.value.get(t) ?? -1),
|
|
9752
9754
|
role: "option",
|
|
@@ -9758,7 +9760,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9758
9760
|
config: l,
|
|
9759
9761
|
queryText: p.value,
|
|
9760
9762
|
onHandleSelected: (e) => he(t)
|
|
9761
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
9763
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, mu))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", hu, [j(n.$slots, "empty")])) : a("", !0)], 64))]),
|
|
9762
9764
|
_: 2
|
|
9763
9765
|
}, [n.$slots.header ? {
|
|
9764
9766
|
name: "header",
|
|
@@ -9771,7 +9773,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9771
9773
|
} : void 0]), 1536)), [[U, C.value]]) : a("", !0)
|
|
9772
9774
|
], 34)), [[z(et), me]]);
|
|
9773
9775
|
}
|
|
9774
|
-
}),
|
|
9776
|
+
}), vu = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
9775
9777
|
let i = k(null), a = k(null), o = k(null), s = k(null), c = (e) => {
|
|
9776
9778
|
let t = e.parentElement;
|
|
9777
9779
|
for (; t && t !== document.body;) {
|
|
@@ -9822,13 +9824,13 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9822
9824
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
9823
9825
|
}
|
|
9824
9826
|
};
|
|
9825
|
-
},
|
|
9826
|
-
let e = m(
|
|
9827
|
+
}, yu = Symbol.for("pv.rum-context"), bu = () => {
|
|
9828
|
+
let e = m(yu, void 0);
|
|
9827
9829
|
return () => {
|
|
9828
9830
|
let t = e?.value;
|
|
9829
9831
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
9830
9832
|
};
|
|
9831
|
-
},
|
|
9833
|
+
}, xu = (e, t = {}, n = {}) => {
|
|
9832
9834
|
try {
|
|
9833
9835
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
9834
9836
|
let r = n.consumer == null ? t : {
|
|
@@ -9837,33 +9839,33 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9837
9839
|
};
|
|
9838
9840
|
window.DD_RUM.addAction(e, r);
|
|
9839
9841
|
} catch {}
|
|
9840
|
-
},
|
|
9842
|
+
}, Su = (e) => {
|
|
9841
9843
|
queueMicrotask(() => {
|
|
9842
9844
|
try {
|
|
9843
9845
|
e();
|
|
9844
9846
|
} catch {}
|
|
9845
9847
|
});
|
|
9846
|
-
},
|
|
9848
|
+
}, Cu = Symbol("FilterStoreKey"), wu = Symbol("FocusStoreKey"), Tu = Symbol("SortStateKey"), Eu = Symbol("GridApiKey"), Du = Symbol("ColumnDisplayOrderKey"), Ou = Symbol("currentlyActiveFilterKey"), ku = Symbol("AvailableFilterColumnsKey"), Au = Symbol("AvailableRowGroupColumnsKey"), ju = Symbol("RowGroupColumnFieldsKey"), Mu = Symbol("GroupColumnCellValueColumnKey"), Nu = Symbol("ExpandedRowsKey"), Pu = Symbol("FirstDataRenderedKey"), Fu = Symbol("RowsLoadingKey"), Iu = Symbol("CurrentPageKey"), Lu = Symbol("TotalPageKey"), Ru = Symbol("ActiveChartFilterOptionKey"), zu = Symbol("RowGroupColumnsKey"), Bu = Symbol("ChartTypeKey"), Vu = Symbol("SortTypesKey"), Hu = Symbol("ActiveChartKey"), Uu = Symbol("ActiveSortKey"), Wu = Symbol("ActiveSeriesKey"), Gu = Symbol("AvailableSeriesKey"), Ku = Symbol("ActiveSecondarySeriesKey"), qu = Symbol("AvailableSecondarySeriesKey"), Ju = Symbol("ActiveSecondarySeriesListKey"), Yu = Symbol("MetricOverlayMultiSelectKey"), Xu = Symbol("EnableAdvancedFilterKey"), Zu = Symbol("ActiveCrosslineOverlayGroupsKey"), Qu = Symbol("AvailableCrosslineOverlayGroupsKey"), $u = {
|
|
9847
9849
|
class: "pv-flex",
|
|
9848
9850
|
style: { "--flex-wrap": "nowrap" }
|
|
9849
|
-
},
|
|
9851
|
+
}, ed = ["id"], td = {
|
|
9850
9852
|
key: 1,
|
|
9851
9853
|
style: { "padding-left": "16px" }
|
|
9852
|
-
},
|
|
9854
|
+
}, nd = [
|
|
9853
9855
|
"checked",
|
|
9854
9856
|
"disabled",
|
|
9855
9857
|
"onChange"
|
|
9856
|
-
],
|
|
9858
|
+
], rd = { class: "pv-text-body-md" }, id = { key: 2 }, ad = {
|
|
9857
9859
|
key: 0,
|
|
9858
9860
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
9859
|
-
},
|
|
9861
|
+
}, od = /* @__PURE__ */ d({
|
|
9860
9862
|
__name: "GroupBySelector",
|
|
9861
9863
|
props: {
|
|
9862
9864
|
rowGroupLimit: {},
|
|
9863
9865
|
enableFocusView: { type: Boolean }
|
|
9864
9866
|
},
|
|
9865
9867
|
setup(e) {
|
|
9866
|
-
let n = m(
|
|
9868
|
+
let n = m(Eu, k(null)), c = m(Au, k([])), l = m(ju, k([])), u = e;
|
|
9867
9869
|
W(l, () => {}, { deep: !0 });
|
|
9868
9870
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
9869
9871
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -9895,7 +9897,7 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9895
9897
|
class: y(p.value),
|
|
9896
9898
|
onListOrderUpdated: x
|
|
9897
9899
|
}, {
|
|
9898
|
-
trigger: G(() => [s("div",
|
|
9900
|
+
trigger: G(() => [s("div", $u, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), z(l).length > 0 ? (D(), i(z(Jn), {
|
|
9899
9901
|
key: 0,
|
|
9900
9902
|
value: z(l).length,
|
|
9901
9903
|
variant: "tertiary"
|
|
@@ -9908,25 +9910,25 @@ var El = "__pv_filter_panel_scoped_value__", Dl = (e) => typeof e == "object" &&
|
|
|
9908
9910
|
key: 0,
|
|
9909
9911
|
name: "reorder",
|
|
9910
9912
|
class: "pv-text-subdued"
|
|
9911
|
-
})) : (D(), o("span",
|
|
9913
|
+
})) : (D(), o("span", td)),
|
|
9912
9914
|
s("input", {
|
|
9913
9915
|
type: "checkbox",
|
|
9914
9916
|
class: "pv-checkbox",
|
|
9915
9917
|
checked: d(e.value),
|
|
9916
9918
|
disabled: !d(e.value) && h.value,
|
|
9917
9919
|
onChange: (t) => f(e.value, t.target.checked)
|
|
9918
|
-
}, null, 40,
|
|
9919
|
-
s("span",
|
|
9920
|
-
d(e.value) ? (D(), o("sup",
|
|
9921
|
-
], 2)], 8,
|
|
9920
|
+
}, null, 40, nd),
|
|
9921
|
+
s("span", rd, P(e.label), 1),
|
|
9922
|
+
d(e.value) ? (D(), o("sup", id, P(n + 1), 1)) : a("", !0)
|
|
9923
|
+
], 2)], 8, ed))], 64))), 128)), h.value ? (D(), o("p", ad, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
9922
9924
|
_: 1
|
|
9923
9925
|
}, 8, ["class"]));
|
|
9924
9926
|
}
|
|
9925
|
-
}),
|
|
9926
|
-
function
|
|
9927
|
-
return D(), o("div",
|
|
9927
|
+
}), sd = {}, cd = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
9928
|
+
function ld(e, t) {
|
|
9929
|
+
return D(), o("div", cd);
|
|
9928
9930
|
}
|
|
9929
|
-
var
|
|
9931
|
+
var ud = /* @__PURE__ */ sn(sd, [["render", ld]]), dd = ["innerHTML"], fd = { key: 2 }, pd = /* @__PURE__ */ d({
|
|
9930
9932
|
__name: "ColDefCellRenderer",
|
|
9931
9933
|
props: {
|
|
9932
9934
|
colDef: {},
|
|
@@ -9940,9 +9942,9 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
9940
9942
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (D(), o("span", {
|
|
9941
9943
|
key: 1,
|
|
9942
9944
|
innerHTML: c.value
|
|
9943
|
-
}, null, 8,
|
|
9945
|
+
}, null, 8, dd)) : a.value === "string" ? (D(), o("span", fd, P(s.value), 1)) : j(t.$slots, "default", { key: 3 });
|
|
9944
9946
|
}
|
|
9945
|
-
}),
|
|
9947
|
+
}), md = (e = null, t = !1) => {
|
|
9946
9948
|
let n = k(e?.focuses || []), i = k(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
9947
9949
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
9948
9950
|
}, l = (e) => {
|
|
@@ -9966,21 +9968,21 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
9966
9968
|
setFocuses: l,
|
|
9967
9969
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
9968
9970
|
};
|
|
9969
|
-
},
|
|
9971
|
+
}, hd = () => m(wu, null) || md(), gd = { class: "pv-table-group-cell" }, _d = { class: "pv-text-body-xxs pv-text-subdued" }, vd = { key: 0 }, yd = { style: { "line-height": "20px" } }, bd = { class: "pv-text-title-md" }, xd = {
|
|
9970
9972
|
key: 0,
|
|
9971
9973
|
class: "pv-flex",
|
|
9972
9974
|
style: {
|
|
9973
9975
|
flex: "1",
|
|
9974
9976
|
"--flex-justify": "flex-end"
|
|
9975
9977
|
}
|
|
9976
|
-
},
|
|
9978
|
+
}, Sd = {
|
|
9977
9979
|
key: 0,
|
|
9978
9980
|
class: "pv-table-row-number pv-text-quaternary"
|
|
9979
|
-
},
|
|
9981
|
+
}, Cd = /* @__PURE__ */ d({
|
|
9980
9982
|
__name: "GroupedCellRenderer",
|
|
9981
9983
|
props: { params: {} },
|
|
9982
9984
|
setup(e) {
|
|
9983
|
-
let n = e, i = m(
|
|
9985
|
+
let n = e, i = m(ju, k([])), c = m(Mu, k(null)), d = m(Nu, k({})), f = J(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
9984
9986
|
let e = f.value.data;
|
|
9985
9987
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
9986
9988
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -10002,7 +10004,7 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
10002
10004
|
}), S = (e) => {
|
|
10003
10005
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
10004
10006
|
n != null && (d.value[n] = t);
|
|
10005
|
-
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } =
|
|
10007
|
+
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } = hd(), j = r(() => w(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
10006
10008
|
let e = E.value;
|
|
10007
10009
|
return f.value.key && e.includes(f.value.key);
|
|
10008
10010
|
});
|
|
@@ -10017,7 +10019,7 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
10017
10019
|
}), (n, r) => (D(), o(t, null, [h.value ? (D(), o("div", {
|
|
10018
10020
|
key: 0,
|
|
10019
10021
|
class: y(j.value)
|
|
10020
|
-
}, [s("div",
|
|
10022
|
+
}, [s("div", gd, [s("p", _d, [l(P(z(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (D(), o("span", vd, " (" + P(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", yd, [s("p", bd, P(g.value), 1)])]), M.value && z(A)() ? (D(), o("div", xd, [u(Va, {
|
|
10021
10023
|
variant: "dark",
|
|
10022
10024
|
tooltipPosition: "center-left",
|
|
10023
10025
|
size: "sm"
|
|
@@ -10031,9 +10033,9 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
10031
10033
|
}, null, 8, ["class"])]),
|
|
10032
10034
|
"tooltip-content": G(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
10033
10035
|
_: 1
|
|
10034
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span",
|
|
10036
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span", Sd, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
10035
10037
|
}
|
|
10036
|
-
}),
|
|
10038
|
+
}), wd = {
|
|
10037
10039
|
key: 2,
|
|
10038
10040
|
class: "pv-table-child-cell",
|
|
10039
10041
|
style: {
|
|
@@ -10042,7 +10044,7 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
10042
10044
|
width: "100%",
|
|
10043
10045
|
height: "100%"
|
|
10044
10046
|
}
|
|
10045
|
-
},
|
|
10047
|
+
}, Td = {
|
|
10046
10048
|
key: 0,
|
|
10047
10049
|
class: "pv-table-row-number",
|
|
10048
10050
|
style: {
|
|
@@ -10050,11 +10052,11 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
10050
10052
|
"text-align": "center",
|
|
10051
10053
|
color: "var(--color-text-quaternary, #89989b)"
|
|
10052
10054
|
}
|
|
10053
|
-
},
|
|
10055
|
+
}, Ed = /* @__PURE__ */ d({
|
|
10054
10056
|
__name: "AutoGroupColDefRenderer",
|
|
10055
10057
|
props: { params: {} },
|
|
10056
10058
|
setup(e) {
|
|
10057
|
-
let t = e, n = m(
|
|
10059
|
+
let t = e, n = m(Mu, k(null)), s = r(() => t.params.rowNode.group), c = r(() => {
|
|
10058
10060
|
let e = t.params.rowNode.rowIndex, n = t.params.rowNode.parent?.rowIndex;
|
|
10059
10061
|
return e != null && n != null ? e - n : null;
|
|
10060
10062
|
}), l = r(() => ({
|
|
@@ -10082,35 +10084,35 @@ var cd = /* @__PURE__ */ sn(ad, [["render", sd]]), ld = ["innerHTML"], ud = { ke
|
|
|
10082
10084
|
return (t, n) => e.params.plainLabel ? (D(), o("span", {
|
|
10083
10085
|
key: 0,
|
|
10084
10086
|
class: y(["pv-text-body-md", { "pv-text-bold": e.params.boldLabel }])
|
|
10085
|
-
}, P(e.params.formattedValue ?? e.params.rowNode.key), 3)) : s.value ? (D(), i(
|
|
10087
|
+
}, P(e.params.formattedValue ?? e.params.rowNode.key), 3)) : s.value ? (D(), i(pd, {
|
|
10086
10088
|
key: 1,
|
|
10087
10089
|
"col-def": d.value,
|
|
10088
10090
|
"cell-params": e.params.cellParams
|
|
10089
10091
|
}, {
|
|
10090
|
-
default: G(() => [u(
|
|
10092
|
+
default: G(() => [u(Cd, { params: e.params }, null, 8, ["params"])]),
|
|
10091
10093
|
_: 1
|
|
10092
|
-
}, 8, ["col-def", "cell-params"])) : (D(), o("div",
|
|
10094
|
+
}, 8, ["col-def", "cell-params"])) : (D(), o("div", wd, [e.params.displayRowNumber && c.value ? (D(), o("span", Td, P(c.value), 1)) : a("", !0), u(pd, {
|
|
10093
10095
|
"col-def": f.value,
|
|
10094
10096
|
"cell-params": p.value
|
|
10095
10097
|
}, {
|
|
10096
|
-
default: G(() => [u(
|
|
10098
|
+
default: G(() => [u(Cd, { params: l.value }, null, 8, ["params"])]),
|
|
10097
10099
|
_: 1
|
|
10098
10100
|
}, 8, ["col-def", "cell-params"])]));
|
|
10099
10101
|
}
|
|
10100
10102
|
});
|
|
10101
10103
|
//#endregion
|
|
10102
10104
|
//#region src/functions/aggregations.ts
|
|
10103
|
-
function
|
|
10105
|
+
function Dd(e) {
|
|
10104
10106
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
10105
10107
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
10106
10108
|
}
|
|
10107
10109
|
//#endregion
|
|
10108
10110
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
10109
|
-
var
|
|
10111
|
+
var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, Ad = /* @__PURE__ */ d({
|
|
10110
10112
|
__name: "GroupAggCellRenderer",
|
|
10111
10113
|
props: { params: {} },
|
|
10112
10114
|
setup(e) {
|
|
10113
|
-
let t = e, n = m(
|
|
10115
|
+
let t = e, n = m(Nu, k({})), i = r(() => {
|
|
10114
10116
|
let e = t.params.column?.getColDef(), n = ws(e);
|
|
10115
10117
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
10116
10118
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -10137,20 +10139,20 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10137
10139
|
style: x(f.value),
|
|
10138
10140
|
class: "pv-flex",
|
|
10139
10141
|
ondblclick: a
|
|
10140
|
-
}, [s("div",
|
|
10142
|
+
}, [s("div", Od, [s("p", null, P(d.value), 1), s("p", kd, P(i.value), 1)])], 4));
|
|
10141
10143
|
}
|
|
10142
|
-
}),
|
|
10144
|
+
}), jd = {
|
|
10143
10145
|
agSetColumnFilter: "set",
|
|
10144
10146
|
agMultiColumnFilter: "multi",
|
|
10145
10147
|
agTextColumnFilter: "text"
|
|
10146
|
-
},
|
|
10148
|
+
}, Md = (e) => !e || !e.filter ? null : e.filter in jd ? jd[e.filter] : null, Nd = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), Pd = (e, t) => {
|
|
10147
10149
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
10148
|
-
let n = e?.filterType || null, r =
|
|
10150
|
+
let n = e?.filterType || null, r = Md(t);
|
|
10149
10151
|
if (!r || r === n) return e;
|
|
10150
10152
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
10151
10153
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
10152
10154
|
if (e.filterType == "set") {
|
|
10153
|
-
let n = e.values || [], r =
|
|
10155
|
+
let n = e.values || [], r = Nd(t);
|
|
10154
10156
|
r > -1 && r < a.length && (a[r] = {
|
|
10155
10157
|
filterType: "set",
|
|
10156
10158
|
values: n
|
|
@@ -10160,7 +10162,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10160
10162
|
filterType: "multi",
|
|
10161
10163
|
filterModels: a
|
|
10162
10164
|
};
|
|
10163
|
-
},
|
|
10165
|
+
}, Fd = (e, t) => {
|
|
10164
10166
|
let n = t.filter((e) => e !== null && e !== "");
|
|
10165
10167
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
10166
10168
|
filterType: "text",
|
|
@@ -10177,18 +10179,18 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10177
10179
|
filter: t
|
|
10178
10180
|
}))
|
|
10179
10181
|
};
|
|
10180
|
-
},
|
|
10182
|
+
}, Id = (e) => {
|
|
10181
10183
|
let t = [];
|
|
10182
10184
|
return Object.keys(e).forEach((n) => {
|
|
10183
10185
|
let r = e[n];
|
|
10184
10186
|
if (r) {
|
|
10185
10187
|
if (r.filterType === "set" && r.values) {
|
|
10186
|
-
let e =
|
|
10188
|
+
let e = Fd(n, r.values);
|
|
10187
10189
|
e && t.push(e);
|
|
10188
10190
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
10189
10191
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
10190
10192
|
if (e?.values) {
|
|
10191
|
-
let r =
|
|
10193
|
+
let r = Fd(n, e.values);
|
|
10192
10194
|
r && t.push(r);
|
|
10193
10195
|
}
|
|
10194
10196
|
}
|
|
@@ -10198,11 +10200,11 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10198
10200
|
type: "AND",
|
|
10199
10201
|
conditions: t
|
|
10200
10202
|
};
|
|
10201
|
-
},
|
|
10203
|
+
}, Ld = (e, t, n = !1) => {
|
|
10202
10204
|
if (!e) return e;
|
|
10203
10205
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
10204
10206
|
if (n) {
|
|
10205
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
10207
|
+
let t = e?.filter?.advancedFilterModel, n = Id(i), a = t || null, o = null;
|
|
10206
10208
|
return o = a && n ? {
|
|
10207
10209
|
filterType: "join",
|
|
10208
10210
|
type: "AND",
|
|
@@ -10215,12 +10217,12 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10215
10217
|
}
|
|
10216
10218
|
let a = {};
|
|
10217
10219
|
return Object.keys(i).forEach((e) => {
|
|
10218
|
-
a[e] =
|
|
10220
|
+
a[e] = Pd(i[e] || {}, t.find((t) => t.field === e));
|
|
10219
10221
|
}), r.filter = {
|
|
10220
10222
|
...r.filter,
|
|
10221
10223
|
filterModel: a
|
|
10222
10224
|
}, r;
|
|
10223
|
-
},
|
|
10225
|
+
}, Rd = (e) => {
|
|
10224
10226
|
if (!e || e.queryTerms.length === 0) return {};
|
|
10225
10227
|
let t = {};
|
|
10226
10228
|
return e.queryTerms.forEach((e) => {
|
|
@@ -10252,7 +10254,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10252
10254
|
};
|
|
10253
10255
|
}
|
|
10254
10256
|
}), t;
|
|
10255
|
-
},
|
|
10257
|
+
}, zd = (e) => {
|
|
10256
10258
|
if (!e || e.queryTerms.length === 0) return null;
|
|
10257
10259
|
let t = /* @__PURE__ */ new Map();
|
|
10258
10260
|
e.queryTerms.forEach((e) => {
|
|
@@ -10287,7 +10289,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10287
10289
|
type: "AND",
|
|
10288
10290
|
conditions: n
|
|
10289
10291
|
};
|
|
10290
|
-
},
|
|
10292
|
+
}, Bd = (e, t) => {
|
|
10291
10293
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
10292
10294
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
10293
10295
|
let n = e.filterParams?.filters || [], r = Array(n.length).fill(null), i = n.findIndex((e) => e.filter == "agTextColumnFilter" && t.filterType == "text" ? !0 : e.filter == "agSetColumnFilter" && t.filterType == "set");
|
|
@@ -10295,26 +10297,26 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10295
10297
|
filterType: "multi",
|
|
10296
10298
|
filterModels: r
|
|
10297
10299
|
};
|
|
10298
|
-
},
|
|
10300
|
+
}, Vd = (e, t) => {
|
|
10299
10301
|
if (!e || Object.keys(e).length === 0) return t;
|
|
10300
10302
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
10301
10303
|
let n = { ...e };
|
|
10302
10304
|
return t.filterModels?.forEach((e, t) => {
|
|
10303
10305
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
10304
10306
|
}), n;
|
|
10305
|
-
},
|
|
10307
|
+
}, Hd = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => Hd(e, t)) : e.colId === t : t in e : !1, Ud = (e, t, n) => {
|
|
10306
10308
|
let r = { ...t };
|
|
10307
10309
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
10308
|
-
let i =
|
|
10309
|
-
r[t] =
|
|
10310
|
+
let i = Bd(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
10311
|
+
r[t] = Vd(a, i);
|
|
10310
10312
|
}), r);
|
|
10311
|
-
},
|
|
10313
|
+
}, Wd = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? Nd(e) !== void 0 && Nd(e) > -1 : !1, Gd = (e, t) => {
|
|
10312
10314
|
let n = { ...e };
|
|
10313
10315
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
10314
10316
|
...n.filterParams,
|
|
10315
10317
|
values: t
|
|
10316
10318
|
}, n;
|
|
10317
|
-
let r =
|
|
10319
|
+
let r = Nd(e);
|
|
10318
10320
|
if (r !== void 0 && r > -1) {
|
|
10319
10321
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
10320
10322
|
a.filterParams = {
|
|
@@ -10328,13 +10330,13 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10328
10330
|
};
|
|
10329
10331
|
}
|
|
10330
10332
|
return n;
|
|
10331
|
-
},
|
|
10333
|
+
}, Kd = async (e, t) => {
|
|
10332
10334
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
10333
10335
|
if (r?.filterType == "set") return r;
|
|
10334
10336
|
if (r?.filterType != "multi") return null;
|
|
10335
|
-
let i =
|
|
10337
|
+
let i = Nd(t);
|
|
10336
10338
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
10337
|
-
},
|
|
10339
|
+
}, qd = async (e, t, n) => {
|
|
10338
10340
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
10339
10341
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
10340
10342
|
if (i?.filterType != "multi") return null;
|
|
@@ -10343,50 +10345,50 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10343
10345
|
filterType: "multi",
|
|
10344
10346
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
10345
10347
|
};
|
|
10346
|
-
let o =
|
|
10348
|
+
let o = Nd(t), s = !n || n.length === 0 ? null : {
|
|
10347
10349
|
filterType: "set",
|
|
10348
10350
|
values: n
|
|
10349
10351
|
};
|
|
10350
10352
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
10351
|
-
},
|
|
10353
|
+
}, Jd = (e, t) => {
|
|
10352
10354
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
10353
10355
|
let n = t[e.field];
|
|
10354
10356
|
if (!n) return [];
|
|
10355
10357
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
10356
10358
|
if (n.filterType === "multi") {
|
|
10357
|
-
let t =
|
|
10359
|
+
let t = Nd(e);
|
|
10358
10360
|
if (t !== void 0 && t > -1) {
|
|
10359
10361
|
let e = n.filterModels[t];
|
|
10360
10362
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
10361
10363
|
}
|
|
10362
10364
|
}
|
|
10363
10365
|
return [];
|
|
10364
|
-
},
|
|
10366
|
+
}, Yd = (e) => !!e && "filterType" in e, Xd = (e) => e.filterType === "join" ? e.conditions.some(Xd) : "colId" in e, Zd = (e) => e ? Yd(e) ? !Xd(e) : Object.keys(e).length === 0 : !0, Qd = (e) => {
|
|
10365
10367
|
if (e === void 0) return "undefined";
|
|
10366
10368
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
10367
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
10369
|
+
if (Array.isArray(e)) return `[${e.map(Qd).join(",")}]`;
|
|
10368
10370
|
let t = e;
|
|
10369
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
10370
|
-
},
|
|
10371
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${Qd(t[e])}`).join(",")}}`;
|
|
10372
|
+
}, $d = (e) => {
|
|
10371
10373
|
if (e.filterType !== "join") return e;
|
|
10372
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
10374
|
+
let t = e, n = [...t.conditions ?? []].map($d).sort((e, t) => Qd(e).localeCompare(Qd(t)));
|
|
10373
10375
|
return {
|
|
10374
10376
|
...t,
|
|
10375
10377
|
conditions: n
|
|
10376
10378
|
};
|
|
10377
|
-
},
|
|
10378
|
-
if (
|
|
10379
|
-
let n =
|
|
10380
|
-
if (n !==
|
|
10381
|
-
if (n) return st(
|
|
10379
|
+
}, ef = (e, t) => {
|
|
10380
|
+
if (Zd(e) && Zd(t)) return !0;
|
|
10381
|
+
let n = Yd(e);
|
|
10382
|
+
if (n !== Yd(t)) return !1;
|
|
10383
|
+
if (n) return st($d(e), $d(t));
|
|
10382
10384
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
10383
10385
|
if (a.length !== o.length) return !1;
|
|
10384
10386
|
for (let e of a) if (!st(r?.[e], i?.[e])) return !1;
|
|
10385
10387
|
return !0;
|
|
10386
|
-
},
|
|
10387
|
-
if (!t) return
|
|
10388
|
+
}, tf = (e, t, n) => {
|
|
10389
|
+
if (!t) return nf(e, n);
|
|
10388
10390
|
if (!e) return t;
|
|
10389
|
-
let r =
|
|
10391
|
+
let r = nf(e, n);
|
|
10390
10392
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
10391
10393
|
filterType: "join",
|
|
10392
10394
|
type: "AND",
|
|
@@ -10396,53 +10398,53 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10396
10398
|
type: "AND",
|
|
10397
10399
|
conditions: [r, t]
|
|
10398
10400
|
} : t;
|
|
10399
|
-
},
|
|
10401
|
+
}, nf = (e, t) => {
|
|
10400
10402
|
if (!e) return null;
|
|
10401
10403
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
10402
|
-
let n = e, r = n.conditions.map((e) =>
|
|
10404
|
+
let n = e, r = n.conditions.map((e) => nf(e, t)).filter((e) => e !== null);
|
|
10403
10405
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
10404
10406
|
filterType: "join",
|
|
10405
10407
|
type: n.type,
|
|
10406
10408
|
conditions: r
|
|
10407
10409
|
};
|
|
10408
|
-
},
|
|
10410
|
+
}, rf = (e, t) => {
|
|
10409
10411
|
if (!t) return [];
|
|
10410
10412
|
if (t.filterType !== "join") {
|
|
10411
10413
|
let n = t;
|
|
10412
10414
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
10413
10415
|
}
|
|
10414
10416
|
let n = t, r = [];
|
|
10415
|
-
for (let t of n.conditions) r.push(...
|
|
10417
|
+
for (let t of n.conditions) r.push(...rf(e, t));
|
|
10416
10418
|
return r;
|
|
10417
|
-
},
|
|
10419
|
+
}, af = (e, t) => {
|
|
10418
10420
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
10419
10421
|
let n = t[e];
|
|
10420
10422
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
10421
|
-
},
|
|
10423
|
+
}, of = (e, t) => {
|
|
10422
10424
|
if (!e) return null;
|
|
10423
|
-
if (
|
|
10424
|
-
let n =
|
|
10425
|
+
if (Yd(e)) {
|
|
10426
|
+
let n = rf(t, e);
|
|
10425
10427
|
return n.length > 0 ? n : null;
|
|
10426
10428
|
}
|
|
10427
|
-
let n =
|
|
10429
|
+
let n = af(t, e);
|
|
10428
10430
|
return n.length > 0 ? n : null;
|
|
10429
|
-
},
|
|
10431
|
+
}, sf = (e, t) => {
|
|
10430
10432
|
if (!e) return e;
|
|
10431
|
-
if (
|
|
10433
|
+
if (Yd(e)) return nf(e, t);
|
|
10432
10434
|
let n = { ...e };
|
|
10433
10435
|
return delete n[t], n;
|
|
10434
|
-
},
|
|
10435
|
-
if (
|
|
10436
|
-
let r =
|
|
10437
|
-
return
|
|
10436
|
+
}, cf = (e, t, n, r) => {
|
|
10437
|
+
if (Yd(e) || !e && r) {
|
|
10438
|
+
let r = Fd(t, n);
|
|
10439
|
+
return tf(e ?? null, r, t);
|
|
10438
10440
|
}
|
|
10439
10441
|
let i = { ...e || {} };
|
|
10440
10442
|
return i[t] = {
|
|
10441
10443
|
filterType: "set",
|
|
10442
10444
|
values: n
|
|
10443
10445
|
}, i;
|
|
10444
|
-
},
|
|
10445
|
-
if (
|
|
10446
|
+
}, lf = (e, t, n, r) => {
|
|
10447
|
+
if (Yd(e) || !e && r) return cf(e, t, n, r);
|
|
10446
10448
|
let i = { ...e || {} }, a = i[t];
|
|
10447
10449
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
10448
10450
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -10458,11 +10460,11 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10458
10460
|
values: n
|
|
10459
10461
|
};
|
|
10460
10462
|
return i;
|
|
10461
|
-
},
|
|
10462
|
-
let i = (
|
|
10463
|
-
return i.length === 0 ?
|
|
10464
|
-
},
|
|
10465
|
-
let e =
|
|
10463
|
+
}, uf = (e, t, n, r) => {
|
|
10464
|
+
let i = (of(e, t) ?? []).filter((e) => e !== n);
|
|
10465
|
+
return i.length === 0 ? sf(e, t) : lf(e, t, i, r);
|
|
10466
|
+
}, df = (e) => !!(e && "filterType" in e), ff = (e) => !!(e && !df(e)), pf = (e) => !!(e && !df(e)), mf = () => {
|
|
10467
|
+
let e = cu(), t = ee(null), n = e.filterModel, i = e.stagedFilterModel, a = k(null), o = k({}), s = k({}), c = e.filterRequestIdMap, l = k(0), u = e.filterLoadingMap, d = k(void 0), f = e.filterHasMoreMap, p = e.filterTotalCountMap, m = k(void 0), h = (t) => ({
|
|
10466
10468
|
hasMore: e.filterHasMoreMap.value[t],
|
|
10467
10469
|
totalCount: e.filterTotalCountMap.value[t],
|
|
10468
10470
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -10477,7 +10479,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10477
10479
|
});
|
|
10478
10480
|
let g = r(() => d.value != null), _ = r(() => {
|
|
10479
10481
|
let e = n.value;
|
|
10480
|
-
return e ?
|
|
10482
|
+
return e ? df(e) ? !Xd(e) : Object.keys(e).length === 0 : !0;
|
|
10481
10483
|
}), v = r(() => {
|
|
10482
10484
|
let e = a.value || {};
|
|
10483
10485
|
return Object.keys(e).length === 0;
|
|
@@ -10515,9 +10517,9 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10515
10517
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
10516
10518
|
}, z = async (e, t) => {
|
|
10517
10519
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
10518
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
10520
|
+
if (t?.useStaged !== !1 && i.value != null) if (ff(i.value)) {
|
|
10519
10521
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
10520
|
-
o = P(e &&
|
|
10522
|
+
o = P(e && ff(e) ? e : void 0);
|
|
10521
10523
|
} else o = i.value;
|
|
10522
10524
|
let l = {
|
|
10523
10525
|
api: t?.api,
|
|
@@ -10599,7 +10601,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10599
10601
|
}, V = (e, t) => {
|
|
10600
10602
|
b.value[e] = t;
|
|
10601
10603
|
let r = [], i = n.value;
|
|
10602
|
-
if (
|
|
10604
|
+
if (pf(i)) {
|
|
10603
10605
|
let t = i[e];
|
|
10604
10606
|
if (t?.values) {
|
|
10605
10607
|
let e = t.values || [];
|
|
@@ -10616,7 +10618,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10616
10618
|
let t = n.value;
|
|
10617
10619
|
if (!t) return x.value;
|
|
10618
10620
|
let r = e.map((e) => {
|
|
10619
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
10621
|
+
let n = e.field ?? e.colId ?? "", r = n ? of(t, n) : null;
|
|
10620
10622
|
return r && r.length > 0 ? {
|
|
10621
10623
|
colDef: e,
|
|
10622
10624
|
colId: n,
|
|
@@ -10674,7 +10676,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10674
10676
|
}, _e = (e) => t.value?.refreshData(e), ve = (e) => {
|
|
10675
10677
|
let t = /* @__PURE__ */ new Map();
|
|
10676
10678
|
if (!e) return t;
|
|
10677
|
-
if (
|
|
10679
|
+
if (df(e)) {
|
|
10678
10680
|
let n = (e) => {
|
|
10679
10681
|
if (e.filterType === "join") {
|
|
10680
10682
|
e.conditions.forEach(n);
|
|
@@ -10761,14 +10763,14 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10761
10763
|
filterValuesHasMoreMap: f,
|
|
10762
10764
|
filterValuesTotalCountMap: p
|
|
10763
10765
|
};
|
|
10764
|
-
},
|
|
10765
|
-
O(
|
|
10766
|
-
},
|
|
10767
|
-
let e = m(
|
|
10766
|
+
}, hf = mf, gf = (e) => {
|
|
10767
|
+
O(Cu, e);
|
|
10768
|
+
}, _f = () => m(Cu, null) || mf(), vf = () => {
|
|
10769
|
+
let e = m(Cu, null);
|
|
10768
10770
|
if (!e) throw Error("No PvDataTable filter store was provided. Create one with createPvDataTableFilterStore() and pass it to PvDataTable/PvDataTableWithChart or provide it with providePvDataTableFilterStore().");
|
|
10769
10771
|
return e;
|
|
10770
|
-
},
|
|
10771
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c =
|
|
10772
|
+
}, yf = (e) => {
|
|
10773
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = bu(), l = m(Eu, k(null)), u = _f(), { fetchFilterValues: d, invalidateFilterRequest: f, filterModel: p, stagedFilterModel: h, filterModelCleared: g, filterValuesLoadingStatus: _, filterValueContext: y, getFilterSelectedValues: b, isServerSideFilter: x, setFilterValueSearchText: S, setFilterSelectedValues: C, getFilterValues: w, setFilterValues: D, filterStaleMap: O, refreshFiltersInBackground: A, stageFilterChangesUntilDropdownCloses: j, filterSearchMinLength: M, noteFilterModelChange: N, registerAggregateField: ee, registerFilterField: P, unregisterFilterField: F, getStagedSelectedValues: I, setStagedSelectedValues: L, filterValueSearchTextMap: R, filterValuesHasMoreMap: z, filterValuesTotalCountMap: B } = u, { computedFocuses: te, removeFocus: V, computedFocusType: ne } = hd(), re = m(Fu, k(!1)), ie = m(Pu, k(!1)), H = m(Xu, k(!1)), U = r({
|
|
10772
10774
|
get: () => X.value ? I(Y.value) : b(Y.value),
|
|
10773
10775
|
set: (e) => {
|
|
10774
10776
|
X.value ? L(Y.value, e) : C(Y.value, e);
|
|
@@ -10797,8 +10799,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10797
10799
|
let n = [];
|
|
10798
10800
|
if (H.value && l.value) {
|
|
10799
10801
|
let e = l.value.getAdvancedFilterModel();
|
|
10800
|
-
n =
|
|
10801
|
-
} else n =
|
|
10802
|
+
n = rf(Y.value, e);
|
|
10803
|
+
} else n = Jd(t.value, p.value);
|
|
10802
10804
|
e ? U.value = n : U.value = Array.from(new Set([...b(Y.value), ...n]));
|
|
10803
10805
|
}, Le = (e) => {
|
|
10804
10806
|
let t = (n) => {
|
|
@@ -10826,7 +10828,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10826
10828
|
}
|
|
10827
10829
|
return;
|
|
10828
10830
|
}
|
|
10829
|
-
let s = await
|
|
10831
|
+
let s = await Kd(l.value, t.value);
|
|
10830
10832
|
if (s) {
|
|
10831
10833
|
if (x.value && o) {
|
|
10832
10834
|
s.refreshFilterValues();
|
|
@@ -10863,21 +10865,21 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10863
10865
|
if (!ws(t.value).metadataDisplayFields?.length) return !1;
|
|
10864
10866
|
let r = y(Y.value, e);
|
|
10865
10867
|
return r == null || r.label == null;
|
|
10866
|
-
}, Ye = (e) => Fe.value || y(Y.value, e)?.isSelectable === !1 ? !0 : ve.value ? !1 : Oe.value && !U.value.includes(e), Xe = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Ze = (e, n, r) =>
|
|
10868
|
+
}, Ye = (e) => Fe.value || y(Y.value, e)?.isSelectable === !1 ? !0 : ve.value ? !1 : Oe.value && !U.value.includes(e), Xe = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Ze = (e, n, r) => $l({
|
|
10867
10869
|
fallbackSubText: n,
|
|
10868
10870
|
getDisplayName: Xe,
|
|
10869
10871
|
matchedField: e?.matchedField,
|
|
10870
10872
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
10871
10873
|
primaryText: r,
|
|
10872
10874
|
showPrefix: ws(t.value).showSearchMatchSubTextPrefix !== !1
|
|
10873
|
-
}), Qe = r(() =>
|
|
10875
|
+
}), Qe = r(() => Zl(Y.value, ws(t.value).queryColIds, (e) => e === Y.value && de.value || Xe(e))), $e = (e) => {
|
|
10874
10876
|
if (!e.startsWith("__")) return { value: e };
|
|
10875
10877
|
let t = e.slice(2).split("__");
|
|
10876
10878
|
return t.length < 2 ? { value: e } : {
|
|
10877
10879
|
field: t[0],
|
|
10878
10880
|
value: t[1]
|
|
10879
10881
|
};
|
|
10880
|
-
}, et = (e) =>
|
|
10882
|
+
}, et = (e) => Wl(e, rt()), tt = (e) => {
|
|
10881
10883
|
let t = $e(e.value), n = { ...e };
|
|
10882
10884
|
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(tt)), n;
|
|
10883
10885
|
}, nt = r(() => [...u.filterValueMap.value[Y.value] || [], ...u.filterValueSelectedMetadataMap.value[Y.value] || []].map((e) => e && tt(e))), rt = () => nt.value, it = (e, t) => {
|
|
@@ -10894,7 +10896,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
10894
10896
|
let e = n.children ? at(n.children, t) : void 0;
|
|
10895
10897
|
if (e) return e;
|
|
10896
10898
|
}
|
|
10897
|
-
}, ot = (e, t) =>
|
|
10899
|
+
}, ot = (e, t) => Gl(rt(), e, t), st = (e) => {
|
|
10898
10900
|
let t = (n) => {
|
|
10899
10901
|
if (n) {
|
|
10900
10902
|
if (String(Ue(n) ?? $e(n.value).value) === e) return n;
|
|
@@ -11047,7 +11049,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11047
11049
|
n = [r.length > 0 ? r[r.length - 1] : n[n.length - 1]];
|
|
11048
11050
|
}
|
|
11049
11051
|
let r = xt;
|
|
11050
|
-
xt = !1, r ||
|
|
11052
|
+
xt = !1, r || Su(() => {
|
|
11051
11053
|
let e = new Set(t), r = new Set(n);
|
|
11052
11054
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
11053
11055
|
for (let t of e) r.has(t) || wt(t, "deselect", "click", r.size);
|
|
@@ -11068,27 +11070,27 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11068
11070
|
if (e !== void 0 && n !== void 0) {
|
|
11069
11071
|
let r = e || Y.value, i = new Set([Y.value, r]), a = n;
|
|
11070
11072
|
if (H.value) {
|
|
11071
|
-
let e =
|
|
11073
|
+
let e = Fd(r, a || []);
|
|
11072
11074
|
if (X.value) {
|
|
11073
|
-
let t = h.value, n =
|
|
11075
|
+
let t = h.value, n = tf(t, e, r);
|
|
11074
11076
|
N(i, !0), h.value = n;
|
|
11075
11077
|
return;
|
|
11076
11078
|
}
|
|
11077
|
-
let t =
|
|
11079
|
+
let t = tf(l.value.getAdvancedFilterModel(), e, r);
|
|
11078
11080
|
N(i), v(() => {
|
|
11079
11081
|
l.value?.setAdvancedFilterModel(t);
|
|
11080
11082
|
});
|
|
11081
11083
|
return;
|
|
11082
11084
|
}
|
|
11083
11085
|
if (X.value) {
|
|
11084
|
-
let e = await
|
|
11086
|
+
let e = await qd(l.value, t.value, a);
|
|
11085
11087
|
N(i, !0), h.value = {
|
|
11086
11088
|
...h.value,
|
|
11087
11089
|
[r]: e
|
|
11088
11090
|
};
|
|
11089
11091
|
return;
|
|
11090
11092
|
}
|
|
11091
|
-
let o = await
|
|
11093
|
+
let o = await qd(l.value, t.value, a);
|
|
11092
11094
|
N(i), l.value.setColumnFilterModel(r, o).then(() => {
|
|
11093
11095
|
l.value && l.value.onFilterChanged();
|
|
11094
11096
|
});
|
|
@@ -11102,11 +11104,11 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11102
11104
|
for (let t of e) {
|
|
11103
11105
|
let e = i[t] || [];
|
|
11104
11106
|
if (e.length > 0) {
|
|
11105
|
-
let n =
|
|
11107
|
+
let n = Fd(t, e);
|
|
11106
11108
|
n && r.push(n);
|
|
11107
11109
|
}
|
|
11108
11110
|
}
|
|
11109
|
-
for (let t of e) n =
|
|
11111
|
+
for (let t of e) n = tf(n, null, t);
|
|
11110
11112
|
if (r.length > 0) {
|
|
11111
11113
|
let e = r.length === 1 ? r[0] : {
|
|
11112
11114
|
filterType: "join",
|
|
@@ -11120,23 +11122,23 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11120
11122
|
} : e;
|
|
11121
11123
|
}
|
|
11122
11124
|
} else {
|
|
11123
|
-
let t = U.value.length > 0 ? U.value : null, r =
|
|
11124
|
-
n =
|
|
11125
|
+
let t = U.value.length > 0 ? U.value : null, r = Fd(Y.value, t || []);
|
|
11126
|
+
n = tf(n, r, Y.value);
|
|
11125
11127
|
let i = !1;
|
|
11126
11128
|
if (a?.value) {
|
|
11127
11129
|
let e = o.filterGroup?.fields ?? [];
|
|
11128
11130
|
for (let t of e) {
|
|
11129
11131
|
let e = a.value.has(t);
|
|
11130
|
-
if (e ===
|
|
11132
|
+
if (e === rf(t, n).includes("true")) continue;
|
|
11131
11133
|
i = !0, s.add(t);
|
|
11132
|
-
let r = e ?
|
|
11133
|
-
n =
|
|
11134
|
+
let r = e ? Fd(t, ["true"]) : null;
|
|
11135
|
+
n = tf(n, r, t);
|
|
11134
11136
|
}
|
|
11135
11137
|
}
|
|
11136
|
-
let c = U.value.filter((e) => e !== null), l =
|
|
11138
|
+
let c = U.value.filter((e) => e !== null), l = rf(Y.value, e), u = new Set(l), d = new Set(c);
|
|
11137
11139
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
11138
11140
|
}
|
|
11139
|
-
if (r?.skipIfUnchanged &&
|
|
11141
|
+
if (r?.skipIfUnchanged && ef(e, n)) return;
|
|
11140
11142
|
if (N(Z.value ? Q() : new Set([Y.value, ...s]), X.value), X.value) h.value = n;
|
|
11141
11143
|
else {
|
|
11142
11144
|
let e = n;
|
|
@@ -11148,26 +11150,26 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11148
11150
|
}
|
|
11149
11151
|
let s = U.value.length > 0 ? U.value : null;
|
|
11150
11152
|
if (r?.skipIfUnchanged) {
|
|
11151
|
-
let e =
|
|
11153
|
+
let e = Jd(t.value, l.value.getFilterModel());
|
|
11152
11154
|
if (Me(U.value, e)) return;
|
|
11153
11155
|
}
|
|
11154
11156
|
if (X.value) {
|
|
11155
|
-
let e = await
|
|
11157
|
+
let e = await qd(l.value, t.value, s);
|
|
11156
11158
|
N(new Set([Y.value]), !0), h.value = {
|
|
11157
11159
|
...h.value,
|
|
11158
11160
|
[Y.value]: e
|
|
11159
11161
|
};
|
|
11160
11162
|
return;
|
|
11161
11163
|
}
|
|
11162
|
-
let c = await
|
|
11164
|
+
let c = await qd(l.value, t.value, s);
|
|
11163
11165
|
N(new Set([Y.value])), l.value.setColumnFilterModel(Y.value, c).then(() => {
|
|
11164
11166
|
l.value && l.value.onFilterChanged();
|
|
11165
11167
|
});
|
|
11166
11168
|
}, bt = r(() => X.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
11167
11169
|
xt = !0;
|
|
11168
11170
|
let n = J.value || "";
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
+
Su(() => {
|
|
11172
|
+
xu("filter_bulk_action", {
|
|
11171
11173
|
filter_name: de.value,
|
|
11172
11174
|
filter_field: Y.value,
|
|
11173
11175
|
action: e,
|
|
@@ -11177,7 +11179,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11177
11179
|
}, c());
|
|
11178
11180
|
});
|
|
11179
11181
|
}, Ct = (e) => !Z.value || e == null ? Y.value : He(Ve(e)) || ($e(e).field ?? Y.value), wt = (e, t, n, r) => {
|
|
11180
|
-
|
|
11182
|
+
xu("filter_option_selected", {
|
|
11181
11183
|
filter_name: de.value,
|
|
11182
11184
|
filter_field: Ct(e),
|
|
11183
11185
|
selected_value: qe(e),
|
|
@@ -11200,7 +11202,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11200
11202
|
};
|
|
11201
11203
|
}, Et = (e, t) => {
|
|
11202
11204
|
let n = Tt(e), r = Tt(t);
|
|
11203
|
-
|
|
11205
|
+
Su(() => {
|
|
11204
11206
|
let e = to(t);
|
|
11205
11207
|
for (let t of r.selected) n.selected.has(t) || wt(t, "select", "click", e);
|
|
11206
11208
|
for (let t of n.selected) r.selected.has(t) || wt(t, "deselect", "click", e);
|
|
@@ -11225,7 +11227,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11225
11227
|
let o = e != null && (U.value.includes(e) || a != null && Le(a)), s = U.value.slice();
|
|
11226
11228
|
if (e && ve.value ? U.value = [e] : e && !o && (U.value = [...U.value, e]), e != null && !o) {
|
|
11227
11229
|
let t = U.value.length, n = ve.value;
|
|
11228
|
-
|
|
11230
|
+
Su(() => {
|
|
11229
11231
|
if (n) for (let n of s) n !== e && wt(n, "deselect", r, t);
|
|
11230
11232
|
wt(e, "select", r, t);
|
|
11231
11233
|
});
|
|
@@ -11238,7 +11240,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11238
11240
|
let a = U.value.includes(e);
|
|
11239
11241
|
if (U.value = U.value.filter((t) => t !== e), e != null && a) {
|
|
11240
11242
|
let t = U.value.length;
|
|
11241
|
-
|
|
11243
|
+
Su(() => {
|
|
11242
11244
|
wt(e, "deselect", r, t);
|
|
11243
11245
|
});
|
|
11244
11246
|
}
|
|
@@ -11266,7 +11268,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11266
11268
|
} finally {
|
|
11267
11269
|
r && (me.value = !1);
|
|
11268
11270
|
}
|
|
11269
|
-
}, Nt = (e, n) =>
|
|
11271
|
+
}, Nt = (e, n) => Jl({
|
|
11270
11272
|
baseModel: n,
|
|
11271
11273
|
colDef: t.value,
|
|
11272
11274
|
options: rt(),
|
|
@@ -11277,7 +11279,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11277
11279
|
if (n?.skipIfUnchanged && r === Pe.value) return Ne.value = e, !1;
|
|
11278
11280
|
if (Ne.value = e, ut(e), js(t.value).length === 0) return !1;
|
|
11279
11281
|
let a = X.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
11280
|
-
if (n?.skipIfUnchanged &&
|
|
11282
|
+
if (n?.skipIfUnchanged && ef(a, o)) return Pe.value = r, !1;
|
|
11281
11283
|
if (X.value) h.value = o;
|
|
11282
11284
|
else {
|
|
11283
11285
|
let e = o;
|
|
@@ -11288,7 +11290,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11288
11290
|
return Pe.value = r, N(Q(), X.value), i?.(), !0;
|
|
11289
11291
|
}, Ft = (e) => {
|
|
11290
11292
|
if (!Z.value || !js(t.value).length) return;
|
|
11291
|
-
let n =
|
|
11293
|
+
let n = Xl({
|
|
11292
11294
|
colDef: t.value,
|
|
11293
11295
|
model: e,
|
|
11294
11296
|
options: rt()
|
|
@@ -11311,10 +11313,10 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11311
11313
|
if (Z.value) {
|
|
11312
11314
|
let r = js(t.value);
|
|
11313
11315
|
for (let t of r) {
|
|
11314
|
-
let r =
|
|
11316
|
+
let r = rf(t, n);
|
|
11315
11317
|
e.push(...r);
|
|
11316
11318
|
}
|
|
11317
|
-
} else e =
|
|
11319
|
+
} else e = rf(Y.value, n);
|
|
11318
11320
|
U.value = e;
|
|
11319
11321
|
return;
|
|
11320
11322
|
}
|
|
@@ -11327,11 +11329,11 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11327
11329
|
return;
|
|
11328
11330
|
}
|
|
11329
11331
|
if (H.value) {
|
|
11330
|
-
let e = p.value, t =
|
|
11332
|
+
let e = p.value, t = rf(Y.value, e);
|
|
11331
11333
|
Ie(U.value.some((e) => e !== null && !t.includes(e)));
|
|
11332
11334
|
return;
|
|
11333
11335
|
}
|
|
11334
|
-
let e =
|
|
11336
|
+
let e = Jd(t.value, p.value);
|
|
11335
11337
|
Ie(U.value.some((t) => !e.includes(t)));
|
|
11336
11338
|
}, { deep: !0 }), W(() => g.value, () => {
|
|
11337
11339
|
U.value = [], Ne.value = [], Pe.value = "[]";
|
|
@@ -11354,8 +11356,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11354
11356
|
let t = e.toLocaleLowerCase(), n = gt.value;
|
|
11355
11357
|
return Z.value ? no(n, t, !0).length : n.filter((e) => e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)).length;
|
|
11356
11358
|
}, zt = (e) => {
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
+
Su(() => {
|
|
11360
|
+
xu("filter_search", {
|
|
11359
11361
|
filter_name: de.value,
|
|
11360
11362
|
filter_field: Y.value,
|
|
11361
11363
|
query: e,
|
|
@@ -11382,7 +11384,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11382
11384
|
P(Y.value);
|
|
11383
11385
|
let e = js(t.value);
|
|
11384
11386
|
if (e.length && ee(Y.value, e), Ie(), Z.value && H.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
11385
|
-
let e = Z.value || (ws(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && H.value ? js(t.value).some((e) =>
|
|
11387
|
+
let e = Z.value || (ws(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && H.value ? js(t.value).some((e) => rf(e, p.value).length > 0) : U.value.length > 0;
|
|
11386
11388
|
e && n && d(t.value, {
|
|
11387
11389
|
api: l.value,
|
|
11388
11390
|
filterModel: p.value ?? void 0
|
|
@@ -11443,26 +11445,26 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11443
11445
|
disableFilterValue: Ye,
|
|
11444
11446
|
updateFilterModelWithSelectedValues: yt
|
|
11445
11447
|
};
|
|
11446
|
-
},
|
|
11448
|
+
}, bf = {
|
|
11447
11449
|
key: 0,
|
|
11448
11450
|
role: "list",
|
|
11449
11451
|
class: "pv-popover-list"
|
|
11450
|
-
},
|
|
11452
|
+
}, xf = ["data-active"], Sf = { key: 1 }, Cf = {
|
|
11451
11453
|
key: 1,
|
|
11452
11454
|
class: "pv-flex pv-inset-square-8",
|
|
11453
11455
|
style: { "justify-content": "center" }
|
|
11454
|
-
},
|
|
11456
|
+
}, wf = /* @__PURE__ */ d({
|
|
11455
11457
|
__name: "FilterGroupMenu",
|
|
11456
11458
|
props: { filterColDef: {} },
|
|
11457
11459
|
setup(e, { expose: n }) {
|
|
11458
|
-
let s = e, c = m(
|
|
11460
|
+
let s = e, c = m(Eu, k(null)), d = m(Fu, k(!1)), { filterModel: f, filterStoreHandler: p, noteFilterModelChange: h, stageFilterChangesUntilDropdownCloses: g } = _f(), _ = k(/* @__PURE__ */ new Set()), b = k(/* @__PURE__ */ new Set()), x = k(!1), S = k(null), C = r(() => ws(s.filterColDef).filterGroup), w = (e) => {
|
|
11459
11461
|
let t = new Set(e);
|
|
11460
11462
|
s.filterColDef.field && t.add(s.filterColDef.field), h(t);
|
|
11461
|
-
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } =
|
|
11463
|
+
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } = vu({
|
|
11462
11464
|
alignment: "top right",
|
|
11463
11465
|
useTeleport: !0
|
|
11464
11466
|
}), N = (e) => {
|
|
11465
|
-
let t =
|
|
11467
|
+
let t = of(f.value, e);
|
|
11466
11468
|
return t !== null && t.length > 0 && t.includes("true");
|
|
11467
11469
|
}, ee = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
11468
11470
|
if (!p.value || !c.value) return;
|
|
@@ -11484,7 +11486,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11484
11486
|
if (!c.value) return;
|
|
11485
11487
|
let t = _.value.has(e);
|
|
11486
11488
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
11487
|
-
let n =
|
|
11489
|
+
let n = tf(c.value.getAdvancedFilterModel(), t ? null : Fd(e, ["true"]), e);
|
|
11488
11490
|
w(new Set([e])), v(() => {
|
|
11489
11491
|
c.value?.setAdvancedFilterModel(n);
|
|
11490
11492
|
});
|
|
@@ -11496,7 +11498,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11496
11498
|
return;
|
|
11497
11499
|
}
|
|
11498
11500
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
11499
|
-
for (let r of e) _.value.has(r) || (t =
|
|
11501
|
+
for (let r of e) _.value.has(r) || (t = tf(t, Fd(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
11500
11502
|
n.size > 0 && (w(n), v(() => {
|
|
11501
11503
|
c.value?.setAdvancedFilterModel(t);
|
|
11502
11504
|
}));
|
|
@@ -11507,7 +11509,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11507
11509
|
return;
|
|
11508
11510
|
}
|
|
11509
11511
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
11510
|
-
for (let n of C.value.fields) e =
|
|
11512
|
+
for (let n of C.value.fields) e = nf(e, n), _.value.delete(n), t.add(n);
|
|
11511
11513
|
w(t), v(() => {
|
|
11512
11514
|
c.value?.setAdvancedFilterModel(e);
|
|
11513
11515
|
});
|
|
@@ -11570,7 +11572,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11570
11572
|
}
|
|
11571
11573
|
}, {
|
|
11572
11574
|
default: G(() => [
|
|
11573
|
-
x.value && ne.value.length > 0 ? (D(), o("ul",
|
|
11575
|
+
x.value && ne.value.length > 0 ? (D(), o("ul", bf, [(D(!0), o(t, null, A(ne.value, (e) => (D(), o(t, { key: e.field }, [e.isAvailable ? (D(), o("li", {
|
|
11574
11576
|
key: 0,
|
|
11575
11577
|
"data-active": e.isSelected ? "true" : null
|
|
11576
11578
|
}, [u(Po, {
|
|
@@ -11585,7 +11587,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11585
11587
|
"text",
|
|
11586
11588
|
"selectedIds",
|
|
11587
11589
|
"onHandleSelected"
|
|
11588
|
-
])], 8,
|
|
11590
|
+
])], 8, xf)) : (D(), o("li", Sf, [u(Va, {
|
|
11589
11591
|
variant: "dark",
|
|
11590
11592
|
size: "sm",
|
|
11591
11593
|
"tooltip-position": "bottom-right",
|
|
@@ -11602,8 +11604,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11602
11604
|
"tooltip-content": G(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
11603
11605
|
_: 2
|
|
11604
11606
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
11605
|
-
x.value && te.value ? (D(), o("div",
|
|
11606
|
-
x.value ? (D(), i(
|
|
11607
|
+
x.value && te.value ? (D(), o("div", Cf, [u(Dt, { variant: "dark" })])) : a("", !0),
|
|
11608
|
+
x.value ? (D(), i(tl, {
|
|
11607
11609
|
key: 2,
|
|
11608
11610
|
class: "pv-border-top pv-inset-square-8",
|
|
11609
11611
|
style: { "padding-top": "8px" },
|
|
@@ -11616,7 +11618,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11616
11618
|
_: 1
|
|
11617
11619
|
}, 8, ["class", "css-custom-properties"])])), [[z(et), [R, { ignore: [".pv-popover"] }]]]);
|
|
11618
11620
|
}
|
|
11619
|
-
}),
|
|
11621
|
+
}), Tf = {
|
|
11620
11622
|
key: 0,
|
|
11621
11623
|
role: "list",
|
|
11622
11624
|
class: "pv-flex pv-stack-4",
|
|
@@ -11624,37 +11626,37 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11624
11626
|
"--flex-wrap": "wrap",
|
|
11625
11627
|
"max-width": "100%"
|
|
11626
11628
|
}
|
|
11627
|
-
},
|
|
11629
|
+
}, Ef = {
|
|
11628
11630
|
key: 0,
|
|
11629
11631
|
style: {
|
|
11630
11632
|
"max-width": "100%",
|
|
11631
11633
|
"line-height": "1rem"
|
|
11632
11634
|
}
|
|
11633
|
-
},
|
|
11635
|
+
}, Df = {
|
|
11634
11636
|
key: 0,
|
|
11635
11637
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
11636
11638
|
style: { "--inset-size": "4px" }
|
|
11637
|
-
},
|
|
11639
|
+
}, Of = {
|
|
11638
11640
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
11639
11641
|
style: { "--inset-size": "8px" }
|
|
11640
|
-
},
|
|
11642
|
+
}, kf = {
|
|
11641
11643
|
class: "pv-inset-inline",
|
|
11642
11644
|
style: { "--inset-size": "8px" }
|
|
11643
|
-
},
|
|
11645
|
+
}, Af = {
|
|
11644
11646
|
key: 0,
|
|
11645
11647
|
class: "pv-full-width"
|
|
11646
|
-
},
|
|
11648
|
+
}, jf = {
|
|
11647
11649
|
key: 0,
|
|
11648
11650
|
class: "pv-flex-inline",
|
|
11649
11651
|
style: { "max-width": "100%" }
|
|
11650
|
-
},
|
|
11652
|
+
}, Mf = {
|
|
11651
11653
|
role: "list",
|
|
11652
11654
|
class: "pv-flex",
|
|
11653
11655
|
style: {
|
|
11654
11656
|
"--flex-wrap": "wrap",
|
|
11655
11657
|
"max-width": "100%"
|
|
11656
11658
|
}
|
|
11657
|
-
},
|
|
11659
|
+
}, Nf = { class: "pv-text-subdued pv-text-body-xxs" }, Pf = 4, Ff = /* @__PURE__ */ d({
|
|
11658
11660
|
__name: "SetFilter",
|
|
11659
11661
|
props: {
|
|
11660
11662
|
enableFocusView: {
|
|
@@ -11683,14 +11685,14 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11683
11685
|
"handle-settings-icon"
|
|
11684
11686
|
],
|
|
11685
11687
|
setup(e, { emit: n }) {
|
|
11686
|
-
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: ee, filterField: F, filterDisplayName: I, isInFilterPanel: R, isSingleSelect: B, suggestedValues: te, displayedFilterValues: V, selectedFilterValues: ne, showSearchBar: re, filterSearchPlaceholder: ie, emptyFilterResultsRenderer: H, filterOptionsLoadingText: U, filterOptionsRenderer: W, filterHeaderRenderer: ae, filterFooterRenderer: oe, filterFooterPosition: K, filterOptionsSortDescription: se, filterOptionsSortTooltip: q, filterValueContext: J, formatDisplayValue: ce, resolvedFilterValueContext: le, isUnresolvedMetadataValue: Y, getLatestFilterValues: ue, addSelectedValue: de, removeSelectedValue: X, recordBulkAction: fe, rumLocation: pe, handleDropdownOpen: me, handleDropdownClosed: he, handleSeeMore: ge, getColDisplayNameForField: _e, hasMoreOptions: ve, totalOptionCount: ye, isAggregate: be, cascadeSelectionState: xe, cascadeSelectionStateModel: Se } =
|
|
11688
|
+
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: ee, filterField: F, filterDisplayName: I, isInFilterPanel: R, isSingleSelect: B, suggestedValues: te, displayedFilterValues: V, selectedFilterValues: ne, showSearchBar: re, filterSearchPlaceholder: ie, emptyFilterResultsRenderer: H, filterOptionsLoadingText: U, filterOptionsRenderer: W, filterHeaderRenderer: ae, filterFooterRenderer: oe, filterFooterPosition: K, filterOptionsSortDescription: se, filterOptionsSortTooltip: q, filterValueContext: J, formatDisplayValue: ce, resolvedFilterValueContext: le, isUnresolvedMetadataValue: Y, getLatestFilterValues: ue, addSelectedValue: de, removeSelectedValue: X, recordBulkAction: fe, rumLocation: pe, handleDropdownOpen: me, handleDropdownClosed: he, handleSeeMore: ge, getColDisplayNameForField: _e, hasMoreOptions: ve, totalOptionCount: ye, isAggregate: be, cascadeSelectionState: xe, cascadeSelectionStateModel: Se } = yf({
|
|
11687
11689
|
filterColDef: L(d, "filterColDef"),
|
|
11688
11690
|
filterStyle: L(d, "filterStyle"),
|
|
11689
11691
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
11690
11692
|
filterGroupStagedFields: x,
|
|
11691
11693
|
readOnly: L(d, "readOnly"),
|
|
11692
11694
|
disableUnselected: L(d, "disableUnselected")
|
|
11693
|
-
}), Ce =
|
|
11695
|
+
}), Ce = bu(), { handleFocusUpdate: we, isFocused: Te, removeFocus: Ee, isFocusable: De, canRemoveFocus: Oe } = hd(), ke = (e) => {
|
|
11694
11696
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
11695
11697
|
if (e.id.startsWith("__")) {
|
|
11696
11698
|
let t = e.id.slice(2).split("__");
|
|
@@ -11731,7 +11733,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11731
11733
|
X(e, void 0, "remove_chip");
|
|
11732
11734
|
let t = le(e)?.colField || F.value, n = je(e);
|
|
11733
11735
|
Te(n, t) && Oe() && Ee(n);
|
|
11734
|
-
}, Q = m(
|
|
11736
|
+
}, Q = m(Xu, k(!1)), Me = r(() => !!ws(d.filterColDef).filterGroup && Q.value), Ne = null, Pe = null, Fe = () => {
|
|
11735
11737
|
try {
|
|
11736
11738
|
return be.value ? JSON.stringify(xe.value) : JSON.stringify([...C.value].sort());
|
|
11737
11739
|
} catch {
|
|
@@ -11745,8 +11747,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11745
11747
|
let t = Fe(), n = Pe != null && t != null && Pe !== t;
|
|
11746
11748
|
Pe = null;
|
|
11747
11749
|
let r = C.value.length;
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
+
Su(() => {
|
|
11751
|
+
xu("filter_dropdown_closed", {
|
|
11750
11752
|
filter_name: I.value,
|
|
11751
11753
|
filter_field: F.value,
|
|
11752
11754
|
selection_count: r,
|
|
@@ -11761,7 +11763,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11761
11763
|
let t = le(e)?.colField || F.value;
|
|
11762
11764
|
return Te(je(e), t);
|
|
11763
11765
|
}, ze = r(() => S.value > 0 ? !0 : be.value ? xe.value.length > 0 : C.value.length > 0);
|
|
11764
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul",
|
|
11766
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul", Tf, [(D(!0), o(t, null, A(z(C), (n) => (D(), o(t, { key: `${z(I)}-${n}` }, [z(Y)(n) ? a("", !0) : (D(), o("li", Ef, [u(Dc, {
|
|
11765
11767
|
label: z(ce)(n) || "",
|
|
11766
11768
|
showClear: !e.readOnly && (!Re(n) || z(Oe)()),
|
|
11767
11769
|
disabled: e.readOnly,
|
|
@@ -11771,7 +11773,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11771
11773
|
"showClear",
|
|
11772
11774
|
"disabled",
|
|
11773
11775
|
"onHandleClose"
|
|
11774
|
-
])]))], 64))), 128))])) : a("", !0), u(z(
|
|
11776
|
+
])]))], 64))), 128))])) : a("", !0), u(z(cl), {
|
|
11775
11777
|
modelValue: z(ne),
|
|
11776
11778
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null,
|
|
11777
11779
|
disabled: !z(R) && e.readOnly && e.disableUnselected && !ze.value,
|
|
@@ -11825,7 +11827,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11825
11827
|
onSelectAll: r[4] ||= (e) => z(fe)("select_all", e),
|
|
11826
11828
|
onClearAll: r[5] ||= (e) => z(fe)("clear_all", e)
|
|
11827
11829
|
}, c({
|
|
11828
|
-
preferences: G(() => [s("div",
|
|
11830
|
+
preferences: G(() => [s("div", Of, [r[7] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(z(ua), {
|
|
11829
11831
|
variant: "dark",
|
|
11830
11832
|
size: "sm",
|
|
11831
11833
|
"use-teleport": !0
|
|
@@ -11839,7 +11841,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11839
11841
|
content: G(() => [...r[6] ||= [l(" Open Preferences ", -1)]]),
|
|
11840
11842
|
_: 1
|
|
11841
11843
|
})])]),
|
|
11842
|
-
suggestions: G(() => [s("div",
|
|
11844
|
+
suggestions: G(() => [s("div", kf, [u(z(ua), {
|
|
11843
11845
|
variant: "dark",
|
|
11844
11846
|
disableInteractive: !0,
|
|
11845
11847
|
position: "top-left",
|
|
@@ -11859,8 +11861,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11859
11861
|
z(ae) || Me.value || z(j) ? {
|
|
11860
11862
|
name: "header",
|
|
11861
11863
|
fn: G((t) => [
|
|
11862
|
-
z(j) ? (D(), o("p",
|
|
11863
|
-
Me.value ? (D(), i(
|
|
11864
|
+
z(j) ? (D(), o("p", Df, " Type " + P(z(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
11865
|
+
Me.value ? (D(), i(wf, {
|
|
11864
11866
|
key: 1,
|
|
11865
11867
|
ref_key: "filterGroupMenuRef",
|
|
11866
11868
|
ref: g,
|
|
@@ -11881,7 +11883,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11881
11883
|
fn: G((e) => [(D(), i(N(z(oe)), b(p(e)), null, 16))]),
|
|
11882
11884
|
key: "2"
|
|
11883
11885
|
} : void 0
|
|
11884
|
-
]), 1032, /* @__PURE__ */ "modelValue.disabled.searchInput.selectionState.data-horizontal-filter-field.label.rumFilterName.icon.variant.counterPosition.singleSelect.menuActionsVariant.footerPosition.disableSearchInput.searchPlaceholder.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.loadingText.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), z(R) && !e.readOnly ? (D(), o("div",
|
|
11886
|
+
]), 1032, /* @__PURE__ */ "modelValue.disabled.searchInput.selectionState.data-horizontal-filter-field.label.rumFilterName.icon.variant.counterPosition.singleSelect.menuActionsVariant.footerPosition.disableSearchInput.searchPlaceholder.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.loadingText.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), z(R) && !e.readOnly ? (D(), o("div", Af, [z(te).length > 0 ? (D(), o("div", jf, [s("ul", Mf, [u(z(ua), {
|
|
11885
11887
|
variant: "dark",
|
|
11886
11888
|
disableInteractive: !0,
|
|
11887
11889
|
position: "bottom-left",
|
|
@@ -11889,20 +11891,20 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11889
11891
|
"use-teleport": !0,
|
|
11890
11892
|
style: { "--max-width": "200px" }
|
|
11891
11893
|
}, c({
|
|
11892
|
-
trigger: G(() => [s("li",
|
|
11894
|
+
trigger: G(() => [s("li", Nf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(q) ? "pv-set-filter-suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11893
11895
|
_: 2
|
|
11894
11896
|
}, [z(q) ? {
|
|
11895
11897
|
name: "content",
|
|
11896
11898
|
fn: G(() => [l(P(z(q)), 1)]),
|
|
11897
11899
|
key: "0"
|
|
11898
|
-
} : void 0]), 1024), (D(!0), o(t, null, A(z(te).filter((e) => e !== "" && e != null).slice(0,
|
|
11900
|
+
} : void 0]), 1024), (D(!0), o(t, null, A(z(te).filter((e) => e !== "" && e != null).slice(0, Pf), (e) => (D(), o("li", {
|
|
11899
11901
|
key: `${z(I)}-${e}-suggest`,
|
|
11900
11902
|
class: y(z(w) ? "pv-shimmer" : ""),
|
|
11901
11903
|
style: {
|
|
11902
11904
|
"max-width": "100%",
|
|
11903
11905
|
"line-height": "1rem"
|
|
11904
11906
|
}
|
|
11905
|
-
}, [u(z(
|
|
11907
|
+
}, [u(z(zc), {
|
|
11906
11908
|
disabled: z(w),
|
|
11907
11909
|
label: z(ce)(e) || "",
|
|
11908
11910
|
onHandleClick: (t) => z(de)(e, z(J)(z(F), e)?.colField)
|
|
@@ -11912,26 +11914,26 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11912
11914
|
"onHandleClick"
|
|
11913
11915
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
11914
11916
|
}
|
|
11915
|
-
}),
|
|
11917
|
+
}), If = .5, Lf = ({ itemWidths: e, containerWidth: t, trailingWidth: n, gap: r, pinnedIndex: i }) => {
|
|
11916
11918
|
let a = /* @__PURE__ */ new Set(), o = n, s = +(n > 0), c = (n) => {
|
|
11917
11919
|
let i = o + e[n] + (s > 0 ? r : 0);
|
|
11918
|
-
return i > t +
|
|
11920
|
+
return i > t + If ? !1 : (o = i, s += 1, a.add(n), !0);
|
|
11919
11921
|
}, l = i !== void 0 && i >= 0 && i < e.length;
|
|
11920
11922
|
l && c(i);
|
|
11921
11923
|
for (let t = 0; t < e.length && !(!(l && t === i) && !c(t)); t++);
|
|
11922
11924
|
return a;
|
|
11923
|
-
},
|
|
11925
|
+
}, Rf = ["inert"], zf = { class: "pv-flex pv-space-between pv-stack-8" }, Bf = { class: "pv-text-title-lg" }, Vf = {
|
|
11924
11926
|
id: "filter-vertical-drawer",
|
|
11925
11927
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
11926
11928
|
style: { height: "100%" }
|
|
11927
|
-
},
|
|
11929
|
+
}, Hf = { class: "pv-full-width" }, Uf = ["open"], Wf = ["data-dd-action-name", "onClick"], Gf = { class: "pv-text-title-lg" }, Kf = { class: "pv-flex pv-space-between" }, qf = { class: "pv-flex" }, Jf = {
|
|
11928
11930
|
class: "pv-flex",
|
|
11929
11931
|
style: {
|
|
11930
11932
|
"--flex-justify": "end",
|
|
11931
11933
|
"--flex-gap": "8px",
|
|
11932
11934
|
"margin-top": "auto"
|
|
11933
11935
|
}
|
|
11934
|
-
},
|
|
11936
|
+
}, Yf = /* @__PURE__ */ sn(/* @__PURE__ */ d({
|
|
11935
11937
|
__name: "FilterPanel",
|
|
11936
11938
|
props: {
|
|
11937
11939
|
enableFocusView: {
|
|
@@ -11964,7 +11966,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11964
11966
|
},
|
|
11965
11967
|
emits: ["handle-settings-icon"],
|
|
11966
11968
|
setup(e, { expose: n }) {
|
|
11967
|
-
let c = m(
|
|
11969
|
+
let c = m(Eu, k(null)), d = m(ku, k([])), f = m(Ou, k(null)), p = m(Xu, k(!1)), h = e, { filterModelCleared: g, stagedFilterModel: _, filterModel: v, initStagedSelectedValues: b, clearStagedSelectedValues: S, commitStagedFilterModelChanges: w, clearStagedFilterModelChanges: E, filterValuesMap: O, fetchFilterValues: j, filterValuesLoadingStatus: M } = _f(), N = k(!1), ee = k(!1), F = k(""), I = r(() => d.value.flatMap((e) => js(e))), L = r(() => d.value.flatMap((e) => ws(e).filterGroup?.fields ?? [])), R = (e) => {
|
|
11968
11970
|
let t = v.value;
|
|
11969
11971
|
if (!t) return !1;
|
|
11970
11972
|
let n = Ns(e) ? js(e) : [e.field || ""];
|
|
@@ -11974,7 +11976,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
11974
11976
|
}
|
|
11975
11977
|
let r = t;
|
|
11976
11978
|
return n.some((e) => !!r[e]);
|
|
11977
|
-
}, B = (e) => h.readOnly && !R(e), te = r(() => d.value.filter((e) =>
|
|
11979
|
+
}, B = (e) => h.readOnly && !R(e), te = r(() => d.value.filter((e) => Wd(e) && !I.value.includes(e.field || "") && !L.value.includes(e.field || "")).sort((e, t) => {
|
|
11978
11980
|
let n = Ns(e), r = Ns(t);
|
|
11979
11981
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
11980
11982
|
})), V = r(() => te.value), ne = r(() => {
|
|
@@ -12010,7 +12012,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12010
12012
|
let de = r(() => {
|
|
12011
12013
|
let e = re.value.map((e) => e.field || ""), t = f.value ? e.indexOf(f.value.field || "") : -1;
|
|
12012
12014
|
if (!ie.value || !ae.value) return new Set(e);
|
|
12013
|
-
let n =
|
|
12015
|
+
let n = Lf({
|
|
12014
12016
|
itemWidths: e.map((e) => q.value[e] ?? 0),
|
|
12015
12017
|
containerWidth: oe.value,
|
|
12016
12018
|
trailingWidth: se.value,
|
|
@@ -12050,7 +12052,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12050
12052
|
});
|
|
12051
12053
|
}
|
|
12052
12054
|
}
|
|
12053
|
-
}, { clearAllFocuses: ge } =
|
|
12055
|
+
}, { clearAllFocuses: ge } = hd(), _e = () => {
|
|
12054
12056
|
c.value && (E(), _.value = null, p.value ? c.value.setAdvancedFilterModel(null) : (c.value.setFilterModel(null), c.value.onFilterChanged()), g.value += 1, ge(), ee.value = !1);
|
|
12055
12057
|
}, ve = () => {
|
|
12056
12058
|
N.value = !1, F.value = "";
|
|
@@ -12081,7 +12083,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12081
12083
|
ref: (e) => ue(r.field || "", e),
|
|
12082
12084
|
class: y(["pv-filter-panel-item", { "pv-filter-panel-item-collapsed": !de.value.has(r.field || "") }]),
|
|
12083
12085
|
inert: !de.value.has(r.field || "") || void 0
|
|
12084
|
-
}, [u(
|
|
12086
|
+
}, [u(Ff, {
|
|
12085
12087
|
"enable-focus-view": h.enableFocusView,
|
|
12086
12088
|
"display-preferences-icon": h.displayPreferencesIcon,
|
|
12087
12089
|
"focus-text": h.focusText,
|
|
@@ -12096,7 +12098,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12096
12098
|
"filterColDef",
|
|
12097
12099
|
"read-only",
|
|
12098
12100
|
"disable-unselected"
|
|
12099
|
-
])], 10,
|
|
12101
|
+
])], 10, Rf)) : a("", !0)], 64))), 128)),
|
|
12100
12102
|
s("div", {
|
|
12101
12103
|
ref_key: "filterActionsRef",
|
|
12102
12104
|
ref: U,
|
|
@@ -12124,7 +12126,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12124
12126
|
variant: "tertiary"
|
|
12125
12127
|
}, null, 8, ["value"])) : a("", !0)
|
|
12126
12128
|
])) : a("", !0)], 512),
|
|
12127
|
-
h.enableVerticalPanel ? (D(), i(z(
|
|
12129
|
+
h.enableVerticalPanel ? (D(), i(z($c), {
|
|
12128
12130
|
key: 0,
|
|
12129
12131
|
modelValue: N.value,
|
|
12130
12132
|
"onUpdate:modelValue": n[9] ||= (e) => N.value = e,
|
|
@@ -12136,7 +12138,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12136
12138
|
"z-index": "10"
|
|
12137
12139
|
}
|
|
12138
12140
|
}, {
|
|
12139
|
-
header: G(() => [s("div",
|
|
12141
|
+
header: G(() => [s("div", zf, [s("p", Bf, "All Filters (" + P(V.value.length) + ")", 1), s("button", {
|
|
12140
12142
|
class: "pv-button-ghost",
|
|
12141
12143
|
"aria-label": "Close",
|
|
12142
12144
|
onClick: n[2] ||= (e) => ye()
|
|
@@ -12145,7 +12147,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12145
12147
|
"onUpdate:modelValue": n[3] ||= (e) => F.value = e,
|
|
12146
12148
|
placeholder: "Search Filters"
|
|
12147
12149
|
}, null, 8, ["modelValue"])]),
|
|
12148
|
-
footer: G(() => [s("div",
|
|
12150
|
+
footer: G(() => [s("div", Kf, [h.readOnly ? (D(), i(z(Zn), {
|
|
12149
12151
|
key: 1,
|
|
12150
12152
|
variant: "ghost",
|
|
12151
12153
|
label: "Close",
|
|
@@ -12154,7 +12156,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12154
12156
|
class: "pv-button-ghost",
|
|
12155
12157
|
"data-dd-action-name": "Clear all page filters",
|
|
12156
12158
|
onClick: n[5] ||= (e) => _e()
|
|
12157
|
-
}, " Clear All "), s("div",
|
|
12159
|
+
}, " Clear All "), s("div", qf, [u(z(Zn), {
|
|
12158
12160
|
variant: "ghost",
|
|
12159
12161
|
label: "Cancel",
|
|
12160
12162
|
"data-dd-action-name": "Cancel filter changes",
|
|
@@ -12171,7 +12173,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12171
12173
|
label: "No Changes",
|
|
12172
12174
|
disabled: ""
|
|
12173
12175
|
}))])], 64))])]),
|
|
12174
|
-
default: G(() => [s("div",
|
|
12176
|
+
default: G(() => [s("div", Vf, [s("div", Hf, [(D(!0), o(t, null, A(ne.value, (t, r) => (D(), o("div", {
|
|
12175
12177
|
key: t.field,
|
|
12176
12178
|
class: y([{ "pv-border-bottom": r < ne.value.length - 1 }, "pv-stack-12"])
|
|
12177
12179
|
}, [s("details", {
|
|
@@ -12181,7 +12183,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12181
12183
|
class: "pv-flex pv-full-width",
|
|
12182
12184
|
"data-dd-action-name": `Expand ${t.headerName} section`,
|
|
12183
12185
|
onClick: (e) => B(t) && e.preventDefault()
|
|
12184
|
-
}, [s("span",
|
|
12186
|
+
}, [s("span", Gf, P(t.headerName), 1)], 8, Wf), s("div", null, [z(c) ? (D(), i(Ff, {
|
|
12185
12187
|
key: 0,
|
|
12186
12188
|
"filter-style": "vertical",
|
|
12187
12189
|
"enable-focus-view": h.enableFocusView,
|
|
@@ -12199,7 +12201,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12199
12201
|
"focus-text",
|
|
12200
12202
|
"read-only",
|
|
12201
12203
|
"disable-unselected"
|
|
12202
|
-
])) : a("", !0)])], 10,
|
|
12204
|
+
])) : a("", !0)])], 10, Uf)], 2))), 128))])])]),
|
|
12203
12205
|
_: 1
|
|
12204
12206
|
}, 8, ["modelValue"])) : a("", !0)
|
|
12205
12207
|
], 6), u(z(Nc), {
|
|
@@ -12208,7 +12210,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12208
12210
|
header: "Clear All Filters"
|
|
12209
12211
|
}, {
|
|
12210
12212
|
body: G(() => [...n[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
12211
|
-
footer: G(() => [s("div",
|
|
12213
|
+
footer: G(() => [s("div", Jf, [u(z(Zn), {
|
|
12212
12214
|
label: "Cancel",
|
|
12213
12215
|
variant: "secondary",
|
|
12214
12216
|
size: "lg",
|
|
@@ -12224,18 +12226,18 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12224
12226
|
_: 1
|
|
12225
12227
|
}, 8, ["modelValue"])], 64));
|
|
12226
12228
|
}
|
|
12227
|
-
}), [["__scopeId", "data-v-a59c5643"]]),
|
|
12229
|
+
}), [["__scopeId", "data-v-a59c5643"]]), Xf = { key: 2 }, Zf = { style: {
|
|
12228
12230
|
"max-width": "220px",
|
|
12229
12231
|
"white-space": "normal",
|
|
12230
12232
|
"overflow-wrap": "break-word"
|
|
12231
|
-
} },
|
|
12233
|
+
} }, Qf = {
|
|
12232
12234
|
key: 0,
|
|
12233
12235
|
class: "pv-flex ag-header-actions"
|
|
12234
|
-
},
|
|
12236
|
+
}, $f = /* @__PURE__ */ d({
|
|
12235
12237
|
__name: "HeaderCellRenderer",
|
|
12236
12238
|
props: { params: {} },
|
|
12237
12239
|
setup(e, { expose: t }) {
|
|
12238
|
-
let n = m(
|
|
12240
|
+
let n = m(Tu, k([])), c = m(ju, k([])), l = e, d = k(!1), f = k(!1), p = k(null), h = k(null), g = k(null), _ = k(null), v = k(!1), b = r(() => {
|
|
12239
12241
|
let e = l.params.column.getColDef();
|
|
12240
12242
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
12241
12243
|
}), C = r(() => {
|
|
@@ -12325,7 +12327,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12325
12327
|
"popoverProperties",
|
|
12326
12328
|
"icon",
|
|
12327
12329
|
"label"
|
|
12328
|
-
])) : (D(), o("p",
|
|
12330
|
+
])) : (D(), o("p", Xf, P(p.value), 1)),
|
|
12329
12331
|
g.value ? (D(), i(ua, {
|
|
12330
12332
|
key: 3,
|
|
12331
12333
|
variant: "white",
|
|
@@ -12342,14 +12344,14 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12342
12344
|
class: "pv-text-subdued",
|
|
12343
12345
|
onClick: t[2] ||= K(() => {}, ["stop"])
|
|
12344
12346
|
})]),
|
|
12345
|
-
content: G(() => [s("div",
|
|
12347
|
+
content: G(() => [s("div", Zf, P(g.value), 1)]),
|
|
12346
12348
|
_: 1
|
|
12347
12349
|
})) : a("", !0),
|
|
12348
12350
|
f.value && C.value !== "" ? (D(), i(qn, {
|
|
12349
12351
|
key: 4,
|
|
12350
12352
|
name: C.value
|
|
12351
12353
|
}, null, 8, ["name"])) : a("", !0)
|
|
12352
|
-
], 6), b.value ? (D(), o("div",
|
|
12354
|
+
], 6), b.value ? (D(), o("div", Qf, [s("div", {
|
|
12353
12355
|
ref_key: "menuButton",
|
|
12354
12356
|
ref: _,
|
|
12355
12357
|
class: "ag-header-cell-menu-button",
|
|
@@ -12362,7 +12364,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12362
12364
|
onClick: K(L, ["stop", "prevent"])
|
|
12363
12365
|
})], 4)])) : a("", !0)], 6));
|
|
12364
12366
|
}
|
|
12365
|
-
}),
|
|
12367
|
+
}), ep = {
|
|
12366
12368
|
headerHeight: "30px",
|
|
12367
12369
|
headerBackgroundColor: "var(--color-background-body, white)",
|
|
12368
12370
|
headerCellHoverBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -12377,14 +12379,14 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12377
12379
|
rangeSelectionBorderStyle: "solid",
|
|
12378
12380
|
menuBackgroundColor: "var(--color-background-body, white)",
|
|
12379
12381
|
accentColor: "var(--color-background-brand, #36c5ba)"
|
|
12380
|
-
},
|
|
12381
|
-
...
|
|
12382
|
+
}, tp = Fe.withParams({
|
|
12383
|
+
...ep,
|
|
12382
12384
|
headerRowBorder: !0,
|
|
12383
12385
|
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
12384
12386
|
wrapperBorder: !0,
|
|
12385
12387
|
wrapperBorderRadius: "8px"
|
|
12386
|
-
}),
|
|
12387
|
-
...
|
|
12388
|
+
}), np = Fe.withParams({
|
|
12389
|
+
...ep,
|
|
12388
12390
|
headerRowBorder: !1,
|
|
12389
12391
|
rowHoverColor: "transparent",
|
|
12390
12392
|
wrapperBorder: !1,
|
|
@@ -12393,18 +12395,18 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12393
12395
|
rowBorder: !1,
|
|
12394
12396
|
columnBorder: !1,
|
|
12395
12397
|
rowHeight: "50px"
|
|
12396
|
-
}),
|
|
12397
|
-
"pv-data-table-base":
|
|
12398
|
+
}), rp = {
|
|
12399
|
+
"pv-data-table-base": tp,
|
|
12398
12400
|
"pv-data-table-grouped": Fe.withParams({
|
|
12399
|
-
...
|
|
12401
|
+
...ep,
|
|
12400
12402
|
headerRowBorder: !0,
|
|
12401
12403
|
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
12402
12404
|
wrapperBorder: !0,
|
|
12403
12405
|
wrapperBorderRadius: "8px"
|
|
12404
12406
|
}),
|
|
12405
|
-
"pv-data-table-grouped-card":
|
|
12407
|
+
"pv-data-table-grouped-card": np,
|
|
12406
12408
|
"pv-data-table-classic": Fe.withParams({
|
|
12407
|
-
...
|
|
12409
|
+
...ep,
|
|
12408
12410
|
backgroundColor: "var(--color-background-body, white)",
|
|
12409
12411
|
borderColor: "var(--color-border, #e3e7ea)",
|
|
12410
12412
|
foregroundColor: "var(--color-text-body, #121313)",
|
|
@@ -12422,10 +12424,10 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12422
12424
|
wrapperBorder: !1,
|
|
12423
12425
|
wrapperBorderRadius: "0px"
|
|
12424
12426
|
})
|
|
12425
|
-
},
|
|
12427
|
+
}, ip = { class: "pv-popover-menu" }, ap = {
|
|
12426
12428
|
class: "pv-popover",
|
|
12427
12429
|
style: { "--height": "auto" }
|
|
12428
|
-
},
|
|
12430
|
+
}, op = ["disabled"], sp = /* @__PURE__ */ d({
|
|
12429
12431
|
__name: "ExportMenu",
|
|
12430
12432
|
props: { getCsvData: { type: Function } },
|
|
12431
12433
|
setup(e) {
|
|
@@ -12440,26 +12442,26 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12440
12442
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
12441
12443
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
12442
12444
|
}
|
|
12443
|
-
return (e, n) => (D(), o("nav",
|
|
12445
|
+
return (e, n) => (D(), o("nav", ip, [n[0] ||= s("button", {
|
|
12444
12446
|
type: "button",
|
|
12445
12447
|
class: "pv-button-icon"
|
|
12446
12448
|
}, [s("svg", {
|
|
12447
12449
|
"aria-hidden": "true",
|
|
12448
12450
|
class: "pv-icon-24"
|
|
12449
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
12451
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", ap, [s("button", {
|
|
12450
12452
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
12451
12453
|
onClick: K(i, ["prevent"]),
|
|
12452
12454
|
disabled: r.value
|
|
12453
|
-
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
12455
|
+
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, op)])]));
|
|
12454
12456
|
}
|
|
12455
|
-
}),
|
|
12457
|
+
}), cp = /* @__PURE__ */ d({
|
|
12456
12458
|
__name: "PaginationPanel",
|
|
12457
12459
|
props: { panelSize: { default: "xl" } },
|
|
12458
12460
|
setup(e) {
|
|
12459
|
-
let t = m(
|
|
12461
|
+
let t = m(Eu, k(null)), n = m(Iu, k(1)), r = m(Lu, k(0)), i = e, a = (e) => {
|
|
12460
12462
|
e >= 1 && e <= r.value && t.value && t?.value.paginationGoToPage(e - 1);
|
|
12461
12463
|
};
|
|
12462
|
-
return (e, t) => (D(), o("div", { class: y({ "pv-hide": z(r) <= 1 }) }, [u(
|
|
12464
|
+
return (e, t) => (D(), o("div", { class: y({ "pv-hide": z(r) <= 1 }) }, [u(El, {
|
|
12463
12465
|
"model-value": z(n),
|
|
12464
12466
|
"onUpdate:modelValue": a,
|
|
12465
12467
|
"max-pages": z(r),
|
|
@@ -12470,10 +12472,10 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12470
12472
|
"size"
|
|
12471
12473
|
])], 2));
|
|
12472
12474
|
}
|
|
12473
|
-
}),
|
|
12475
|
+
}), lp = {
|
|
12474
12476
|
key: 0,
|
|
12475
12477
|
class: "pv-tag"
|
|
12476
|
-
},
|
|
12478
|
+
}, up = /* @__PURE__ */ d({
|
|
12477
12479
|
__name: "TagCellRenderer",
|
|
12478
12480
|
props: { params: {} },
|
|
12479
12481
|
setup(e) {
|
|
@@ -12481,12 +12483,12 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12481
12483
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
12482
12484
|
return e.trim() === "" ? null : e;
|
|
12483
12485
|
});
|
|
12484
|
-
return (e, t) => n.value ? (D(), o("div",
|
|
12486
|
+
return (e, t) => n.value ? (D(), o("div", lp, P(n.value), 1)) : a("", !0);
|
|
12485
12487
|
}
|
|
12486
|
-
}),
|
|
12488
|
+
}), dp = {
|
|
12487
12489
|
key: 0,
|
|
12488
12490
|
class: "pv-table-row-number pv-text-quaternary"
|
|
12489
|
-
},
|
|
12491
|
+
}, fp = /* @__PURE__ */ sn(/* @__PURE__ */ d({
|
|
12490
12492
|
__name: "RowCountCellRenderer",
|
|
12491
12493
|
props: { params: {} },
|
|
12492
12494
|
setup(e) {
|
|
@@ -12494,17 +12496,18 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12494
12496
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
12495
12497
|
return e && Os(e) ? n.toLocaleString() : n;
|
|
12496
12498
|
});
|
|
12497
|
-
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span",
|
|
12499
|
+
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span", dp, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
12498
12500
|
}
|
|
12499
|
-
}), [["__scopeId", "data-v-a6fadb75"]]),
|
|
12501
|
+
}), [["__scopeId", "data-v-a6fadb75"]]), pp = 4, mp = /* @__PURE__ */ d({
|
|
12500
12502
|
__name: "TableSearch",
|
|
12501
12503
|
props: {
|
|
12502
12504
|
placeholder: {},
|
|
12503
|
-
searchStyle: {}
|
|
12505
|
+
searchStyle: {},
|
|
12506
|
+
size: {}
|
|
12504
12507
|
},
|
|
12505
12508
|
setup(e) {
|
|
12506
|
-
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(
|
|
12507
|
-
f(c.value ?
|
|
12509
|
+
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(Eu, k(null)), c = m(Xu, k(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = _f(), p = (e) => {
|
|
12510
|
+
f(c.value ? zd(e) : Rd(e));
|
|
12508
12511
|
}, h = async (e) => {
|
|
12509
12512
|
if (!s?.value || typeof s.value.setGridOption != "function") return;
|
|
12510
12513
|
if (!l.value) {
|
|
@@ -12566,7 +12569,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12566
12569
|
debounce: 300,
|
|
12567
12570
|
immediate: !0,
|
|
12568
12571
|
deep: !0
|
|
12569
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(
|
|
12572
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(_u, {
|
|
12570
12573
|
key: 0,
|
|
12571
12574
|
placeholder: e.placeholder,
|
|
12572
12575
|
"search-text": r.value,
|
|
@@ -12576,24 +12579,31 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12576
12579
|
options: a.value,
|
|
12577
12580
|
"onUpdate:options": s[2] ||= (e) => a.value = e,
|
|
12578
12581
|
"options-loading": o.value,
|
|
12579
|
-
"query-term-display-limit":
|
|
12582
|
+
"query-term-display-limit": pp,
|
|
12583
|
+
size: e.size
|
|
12580
12584
|
}, null, 8, [
|
|
12581
12585
|
"placeholder",
|
|
12582
12586
|
"search-text",
|
|
12583
12587
|
"query",
|
|
12584
12588
|
"options",
|
|
12585
|
-
"options-loading"
|
|
12589
|
+
"options-loading",
|
|
12590
|
+
"size"
|
|
12586
12591
|
])) : (D(), i(z(Ma), {
|
|
12587
12592
|
key: 1,
|
|
12588
12593
|
placeholder: e.placeholder,
|
|
12594
|
+
size: e.size,
|
|
12589
12595
|
modelValue: r.value,
|
|
12590
12596
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
12591
|
-
}, null, 8, [
|
|
12597
|
+
}, null, 8, [
|
|
12598
|
+
"placeholder",
|
|
12599
|
+
"size",
|
|
12600
|
+
"modelValue"
|
|
12601
|
+
]));
|
|
12592
12602
|
}
|
|
12593
|
-
}),
|
|
12603
|
+
}), hp = ["title"], gp = { class: "pv-pivot-group-header__name pv-text-body-lg" }, _p = {
|
|
12594
12604
|
key: 0,
|
|
12595
12605
|
class: "pv-text-body-xs pv-text-subdued"
|
|
12596
|
-
},
|
|
12606
|
+
}, vp = /* @__PURE__ */ d({
|
|
12597
12607
|
__name: "PvPivotGroupHeader",
|
|
12598
12608
|
props: { params: {} },
|
|
12599
12609
|
setup(e) {
|
|
@@ -12601,34 +12611,34 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12601
12611
|
class: "pv-pivot-group-header pv-flex-vertical pv-full-width pv-text-center",
|
|
12602
12612
|
"data-testid": "pv-pivot-group-header",
|
|
12603
12613
|
title: e.params.tooltip ?? e.params.displayName
|
|
12604
|
-
}, [s("span",
|
|
12614
|
+
}, [s("span", gp, P(e.params.displayName), 1), e.params.subtitle ? (D(), o("span", _p, P(e.params.subtitle), 1)) : a("", !0)], 8, hp));
|
|
12605
12615
|
}
|
|
12606
|
-
}),
|
|
12616
|
+
}), yp = {
|
|
12607
12617
|
style: {
|
|
12608
12618
|
"background-color": "var(--color-background-body, white)",
|
|
12609
12619
|
"max-width": "300px"
|
|
12610
12620
|
},
|
|
12611
12621
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
12612
|
-
},
|
|
12622
|
+
}, bp = { style: { color: "var(--color-text-body, black)" } }, xp = /* @__PURE__ */ d({
|
|
12613
12623
|
__name: "TableTooltip",
|
|
12614
12624
|
props: { params: {} },
|
|
12615
12625
|
setup(e) {
|
|
12616
|
-
return (t, n) => (D(), o("div",
|
|
12626
|
+
return (t, n) => (D(), o("div", yp, [s("p", bp, P(e.params.value), 1)]));
|
|
12617
12627
|
}
|
|
12618
|
-
}),
|
|
12628
|
+
}), Sp = { class: "pv-stack-16" }, Cp = { class: "pv-flex pv-space-between" }, wp = {
|
|
12619
12629
|
class: "pv-flex",
|
|
12620
12630
|
style: {
|
|
12621
12631
|
"--flex-gap": "8px",
|
|
12622
12632
|
flex: "1 1 0",
|
|
12623
12633
|
"min-width": "0"
|
|
12624
12634
|
}
|
|
12625
|
-
},
|
|
12635
|
+
}, Tp = {
|
|
12626
12636
|
key: 0,
|
|
12627
12637
|
class: "pv-table-overlay"
|
|
12628
|
-
},
|
|
12638
|
+
}, Ep = {
|
|
12629
12639
|
class: "pv-text-body-xs pv-text-center",
|
|
12630
12640
|
style: { "padding-top": "16px" }
|
|
12631
|
-
},
|
|
12641
|
+
}, Dp = /* @__PURE__ */ d({
|
|
12632
12642
|
__name: "PvDataTable",
|
|
12633
12643
|
props: {
|
|
12634
12644
|
allFieldsAreFocusable: {
|
|
@@ -12735,6 +12745,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12735
12745
|
focusText: {},
|
|
12736
12746
|
tableSearchPlaceholder: { default: "Search" },
|
|
12737
12747
|
tableSearchStyle: { default: "text" },
|
|
12748
|
+
tableSearchSize: { default: "xl" },
|
|
12738
12749
|
tableSearchInline: {
|
|
12739
12750
|
type: Boolean,
|
|
12740
12751
|
default: !1
|
|
@@ -12883,7 +12894,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12883
12894
|
height: f.containerHeight,
|
|
12884
12895
|
minHeight: f.containerMinHeight
|
|
12885
12896
|
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme : ot.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), T = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", E = r(() => {
|
|
12886
|
-
let e = g.value ? f.theme :
|
|
12897
|
+
let e = g.value ? f.theme : rp[w.value];
|
|
12887
12898
|
return L ? e.withParams({
|
|
12888
12899
|
rowHeight: "36px",
|
|
12889
12900
|
headerColumnResizeHandleColor: "transparent"
|
|
@@ -12896,9 +12907,9 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12896
12907
|
...t.flatMap((e) => et.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
12897
12908
|
]));
|
|
12898
12909
|
}, F = (e, t) => {
|
|
12899
|
-
if (
|
|
12910
|
+
if (Hd(e, t)) return !0;
|
|
12900
12911
|
let n = et.find((e) => Ms(e) === t);
|
|
12901
|
-
return !!n && N(n).some((t) =>
|
|
12912
|
+
return !!n && N(n).some((t) => Hd(e, t));
|
|
12902
12913
|
}, L = !!f.pivot, R = !L && "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
12903
12914
|
if (!dt.value) {
|
|
12904
12915
|
e.success({ rowData: [] }), ct.value = !0;
|
|
@@ -12932,7 +12943,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12932
12943
|
filter: t.bucketMax
|
|
12933
12944
|
}]
|
|
12934
12945
|
};
|
|
12935
|
-
n =
|
|
12946
|
+
n = tf(n, i, e);
|
|
12936
12947
|
}
|
|
12937
12948
|
}), n && (e.request.filterModel = n);
|
|
12938
12949
|
} else {
|
|
@@ -12973,7 +12984,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12973
12984
|
}, f.serverSideRowHandler?.(e);
|
|
12974
12985
|
} } : null, B = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
12975
12986
|
let t = [], n = { ...yt.value };
|
|
12976
|
-
t = !ct.value && it ?
|
|
12987
|
+
t = !ct.value && it ? of(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await wt(e.colDef, {
|
|
12977
12988
|
api: e.api,
|
|
12978
12989
|
filterModel: n,
|
|
12979
12990
|
useStaged: !1
|
|
@@ -12993,19 +13004,19 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
12993
13004
|
suppressColumnsToolPanel: !0,
|
|
12994
13005
|
minWidth: 150,
|
|
12995
13006
|
flex: 1,
|
|
12996
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
13007
|
+
headerComponent: f.enableInlineFilters ? void 0 : $f,
|
|
12997
13008
|
cellDataType: !1,
|
|
12998
|
-
tooltipComponent:
|
|
13009
|
+
tooltipComponent: xp,
|
|
12999
13010
|
cellClass: (e) => on(e.column) ? "" : Os(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
13000
13011
|
cellRendererSelector: (e) => {
|
|
13001
13012
|
if (te(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
13002
|
-
component:
|
|
13013
|
+
component: Ad,
|
|
13003
13014
|
params: e
|
|
13004
13015
|
};
|
|
13005
13016
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && !L && ot.value.length === 0) {
|
|
13006
13017
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
13007
13018
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
13008
|
-
component:
|
|
13019
|
+
component: fp,
|
|
13009
13020
|
params: e
|
|
13010
13021
|
};
|
|
13011
13022
|
}
|
|
@@ -13043,7 +13054,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13043
13054
|
let t = e.headerValueGetter;
|
|
13044
13055
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
13045
13056
|
}
|
|
13046
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => zt(e, r.dataType) : r.dataType === vs.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Lt(e, r.valueDecimals || 0) : r.dataType === vs.Currency && !e.valueFormatter ? n.valueFormatter = (e) => It(e, r.valueDecimals || 0) : r.dataType === vs.Integer && !e.valueFormatter ? n.valueFormatter = Rt : r.dataType === vs.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
13057
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => zt(e, r.dataType) : r.dataType === vs.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Lt(e, r.valueDecimals || 0) : r.dataType === vs.Currency && !e.valueFormatter ? n.valueFormatter = (e) => It(e, r.valueDecimals || 0) : r.dataType === vs.Integer && !e.valueFormatter ? n.valueFormatter = Rt : r.dataType === vs.Tag && !e.cellRenderer && (n.cellRenderer = up), n;
|
|
13047
13058
|
}, K = (e) => e.colId || e.field || "", se = (e, t = () => null) => (f.colDefs ?? []).map((e, t) => ({
|
|
13048
13059
|
colDef: e,
|
|
13049
13060
|
index: t
|
|
@@ -13075,7 +13086,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13075
13086
|
};
|
|
13076
13087
|
}, pe = f.colDefs?.map((e) => {
|
|
13077
13088
|
let t = { ...e };
|
|
13078
|
-
(R || L) && B &&
|
|
13089
|
+
(R || L) && B && Wd(e) && (t = Gd(e, B));
|
|
13079
13090
|
let n = e.context;
|
|
13080
13091
|
return n && (t = oe(t, n)), t;
|
|
13081
13092
|
}).filter((e) => e != null) || [], Fe = {
|
|
@@ -13091,13 +13102,13 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13091
13102
|
if (!L || !e) return e;
|
|
13092
13103
|
let t = { ...e };
|
|
13093
13104
|
return delete t.rowGroup, delete t.pivot, delete t.aggregation, t;
|
|
13094
|
-
}, it = rt(
|
|
13105
|
+
}, it = rt(Ld(f.initialGridState, et, f.enableAdvancedFilter)), at = k(null), ot = k([]), ct = m(Pu, k(!1)), lt = k(!1), ut = r(() => {
|
|
13095
13106
|
if (ot.value.length > 0) {
|
|
13096
13107
|
let e = ot.value[0], t = et.find((t) => t.field === e), n = yt.value, r = !n;
|
|
13097
|
-
if (!r &&
|
|
13108
|
+
if (!r && ff(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
13098
13109
|
}
|
|
13099
13110
|
return null;
|
|
13100
|
-
}), dt = r(() => ht.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : ut.value === null), ft = r(() => ut.value ? `Select at least one value for "${ut.value}" to view data.` : "Select a filter to view data."), pt = ee(null), mt = k([]), ht = f.filterStore ||
|
|
13111
|
+
}), dt = r(() => ht.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : ut.value === null), ft = r(() => ut.value ? `Select at least one value for "${ut.value}" to view data.` : "Select a filter to view data."), pt = ee(null), mt = k([]), ht = f.filterStore || _f(), _t = m(wu, null), vt = _t || md(null, f.allFieldsAreFocusable), yt = ht.filterModel, bt = ht.tableSearchFilterModel, xt = ht.filterValueMap, St = ht.filterValuesMap, Ct = ht.filterValueSelectedMetadataMap, wt = ht.fetchFilterValues, Tt = ht.filterStoreHandler, Et = ht.tableSearchHandler;
|
|
13101
13112
|
if (Tt.value = f.filterValuesSetHandler, Tt.value) {
|
|
13102
13113
|
let e = (e) => ({
|
|
13103
13114
|
hasMore: ht.filterHasMoreMap.value[e],
|
|
@@ -13126,7 +13137,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13126
13137
|
debounce: 250
|
|
13127
13138
|
});
|
|
13128
13139
|
let Dt = k(null), Ot = r(() => vt?.computedFocusType.value || null), kt = r(() => vt?.computedFocuses.value || []), At = r(() => et.filter((e) => e.filter)), jt = r(() => et.filter((e) => e.enableRowGroup)), Mt = r(() => pe.filter((e) => e.aggFunc)), Nt = k(null), Pt = k({}), Ft = k(1), Bt = k(0);
|
|
13129
|
-
O(
|
|
13140
|
+
O(Cu, ht), O(wu, vt), O(Tu, mt), O(Eu, pt), O(Du, Dt), O(Ou, at), O(ku, At), O(Au, jt), O(ju, ot), O(Mu, Nt), O(Nu, Pt), O(Pu, ct), O(Fu, lt), O(Iu, Ft), O(Lu, Bt), O(Xu, r(() => f.enableAdvancedFilter));
|
|
13130
13141
|
let Vt = ee(void 0), Ht = r(() => {
|
|
13131
13142
|
let e = q?.pivotCols[0], t = e && le(e), n = Vt.value ?? f.rowData;
|
|
13132
13143
|
if (!t || !n) return /* @__PURE__ */ new Map();
|
|
@@ -13146,7 +13157,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13146
13157
|
filterType: "join",
|
|
13147
13158
|
type: "AND",
|
|
13148
13159
|
conditions: [e, t]
|
|
13149
|
-
} : t :
|
|
13160
|
+
} : t : Ud(et, e, t);
|
|
13150
13161
|
}, Gt = 0, Kt = async () => {
|
|
13151
13162
|
if (!q || !f.serverSidePivotHandler) return;
|
|
13152
13163
|
let e = ++Gt;
|
|
@@ -13182,7 +13193,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13182
13193
|
data: a,
|
|
13183
13194
|
focused: Ot.value === r && kt.value.map(String).includes(i)
|
|
13184
13195
|
}) || {};
|
|
13185
|
-
e.headerGroupComponent =
|
|
13196
|
+
e.headerGroupComponent = vp, e.marryChildren = !0;
|
|
13186
13197
|
let c = o ?? (i == null ? void 0 : Jt(r, i, a));
|
|
13187
13198
|
c && (e.headerName = c), e.headerGroupComponentParams = {
|
|
13188
13199
|
...e.headerGroupComponentParams,
|
|
@@ -13227,7 +13238,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13227
13238
|
}, rn = (e) => {
|
|
13228
13239
|
if (pt.value) {
|
|
13229
13240
|
let t = dn();
|
|
13230
|
-
|
|
13241
|
+
ef(yt.value, t) || (yt.value = t, A("filter-changed", e));
|
|
13231
13242
|
}
|
|
13232
13243
|
}, an = (e) => {
|
|
13233
13244
|
mt.value = e.api?.getState()?.sort?.sortModel || [], ct.value && A("sort-changed", e);
|
|
@@ -13313,10 +13324,10 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13313
13324
|
}, dn = () => pt.value ? f.enableAdvancedFilter ? pt.value.getAdvancedFilterModel() : pt.value.getFilterModel() : yt.value, fn = (e) => {
|
|
13314
13325
|
if (!pt.value) return !1;
|
|
13315
13326
|
if (f.enableAdvancedFilter) {
|
|
13316
|
-
let t = e &&
|
|
13327
|
+
let t = e && ff(e) ? Id(e) : e;
|
|
13317
13328
|
pt.value.setAdvancedFilterModel(t);
|
|
13318
13329
|
} else {
|
|
13319
|
-
if (e && !
|
|
13330
|
+
if (e && !ff(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
13320
13331
|
pt.value.setFilterModel(e);
|
|
13321
13332
|
}
|
|
13322
13333
|
return !0;
|
|
@@ -13367,7 +13378,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13367
13378
|
e.finished && (Dt.value = [...e.api.getAllGridColumns()]), L && f.pivotValueOrder && e.finished && e.source === "uiColumnMoved" && v(tn), ct.value && A("column-moved", e);
|
|
13368
13379
|
}, bn = (e) => {
|
|
13369
13380
|
e.api && (Ft.value = e.api.paginationGetCurrentPage() + 1, Bt.value = e.api.paginationGetTotalPages());
|
|
13370
|
-
}, xn = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, Sn = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Cn = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) :
|
|
13381
|
+
}, xn = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, Sn = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Cn = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) : ud), wn = { loadingMessage: "One moment please..." }, Tn = k((() => {
|
|
13371
13382
|
let e = {
|
|
13372
13383
|
headerName: "",
|
|
13373
13384
|
minWidth: 200,
|
|
@@ -13377,7 +13388,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13377
13388
|
headerComponent: void 0,
|
|
13378
13389
|
cellRendererParams: {
|
|
13379
13390
|
suppressCount: !0,
|
|
13380
|
-
innerRenderer:
|
|
13391
|
+
innerRenderer: Ed,
|
|
13381
13392
|
innerRendererParams: (e) => ({
|
|
13382
13393
|
plainLabel: L,
|
|
13383
13394
|
boldLabel: L && !q?.rowGroupCols.length,
|
|
@@ -13398,7 +13409,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13398
13409
|
Tn.value.headerName = "", Tn.value.headerComponent = void 0, Tn.value.context = null, Tn.value.sortable = !1, Tn.value.filter = void 0, Tn.value.enableRowGroup = void 0;
|
|
13399
13410
|
return;
|
|
13400
13411
|
}
|
|
13401
|
-
Tn.value.field = e.field, Tn.value.headerName = e.headerName, Tn.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
13412
|
+
Tn.value.field = e.field, Tn.value.headerName = e.headerName, Tn.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : $f), Tn.value.context = { dataType: e.context?.dataType || null }, Tn.value.sortable = e.sortable, Tn.value.filter = e.filter, Tn.value.enableRowGroup = e.enableRowGroup, Tn.value.onCellClicked = e.onCellClicked;
|
|
13402
13413
|
}, Dn = (e) => {
|
|
13403
13414
|
if (e.node.group && !L) return {
|
|
13404
13415
|
backgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -13411,12 +13422,12 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13411
13422
|
let t = e.values;
|
|
13412
13423
|
if (e.rowNode.leafGroup) return {
|
|
13413
13424
|
values: t,
|
|
13414
|
-
value:
|
|
13425
|
+
value: Dd(t)
|
|
13415
13426
|
};
|
|
13416
13427
|
let n = e.values.flatMap((e) => e.values || []);
|
|
13417
13428
|
return {
|
|
13418
13429
|
values: n,
|
|
13419
|
-
value:
|
|
13430
|
+
value: Dd(n)
|
|
13420
13431
|
};
|
|
13421
13432
|
} };
|
|
13422
13433
|
S(() => {
|
|
@@ -13436,7 +13447,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13436
13447
|
let t = pt.value;
|
|
13437
13448
|
if (!t) return;
|
|
13438
13449
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
13439
|
-
n && !
|
|
13450
|
+
n && !ef(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !st(r, ot.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
13440
13451
|
let a = e.columnOrder?.orderedColIds;
|
|
13441
13452
|
nt && a?.length && (st(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
13442
13453
|
state: a.map((e) => ({ colId: e })),
|
|
@@ -13445,7 +13456,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13445
13456
|
};
|
|
13446
13457
|
W(() => f.initialGridState, () => {
|
|
13447
13458
|
if (f.initialGridState) {
|
|
13448
|
-
let e = rt(
|
|
13459
|
+
let e = rt(Ld(f.initialGridState, et, f.enableAdvancedFilter));
|
|
13449
13460
|
e && An(e);
|
|
13450
13461
|
}
|
|
13451
13462
|
}, { deep: !0 });
|
|
@@ -13471,7 +13482,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13471
13482
|
]), Hn = r(() => ({
|
|
13472
13483
|
placeholder: f.tableSearchPlaceholder,
|
|
13473
13484
|
disabled: !dt.value,
|
|
13474
|
-
searchStyle: f.tableSearchStyle
|
|
13485
|
+
searchStyle: f.tableSearchStyle,
|
|
13486
|
+
size: f.tableSearchSize
|
|
13475
13487
|
}));
|
|
13476
13488
|
return (t, r) => (D(), o("div", {
|
|
13477
13489
|
class: "pv-full-width",
|
|
@@ -13497,13 +13509,13 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13497
13509
|
content: G(() => [...r[12] ||= [l(" Dev Mode ", -1)]]),
|
|
13498
13510
|
_: 1
|
|
13499
13511
|
})) : a("", !0),
|
|
13500
|
-
ae(s("div",
|
|
13512
|
+
ae(s("div", Sp, [s("div", Cp, [s("div", wp, [e.enableTableSearch && e.tableSearchInline ? (D(), o("div", {
|
|
13501
13513
|
key: 0,
|
|
13502
13514
|
style: x(Vn.value)
|
|
13503
|
-
}, [u(
|
|
13515
|
+
}, [u(mp, b(p(Hn.value)), null, 16)], 4)) : a("", !0), (D(), i(n, {
|
|
13504
13516
|
to: e.filterTeleportLocation,
|
|
13505
13517
|
disabled: !e.filterTeleportLocation
|
|
13506
|
-
}, [At.value.length > 0 && !f.enableInlineFilters ? (D(), i(
|
|
13518
|
+
}, [At.value.length > 0 && !f.enableInlineFilters ? (D(), i(Yf, {
|
|
13507
13519
|
key: 0,
|
|
13508
13520
|
ref_key: "filterPanelRef",
|
|
13509
13521
|
ref: Fn,
|
|
@@ -13531,12 +13543,12 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13531
13543
|
class: "pv-flex",
|
|
13532
13544
|
style: x([{ flexShrink: 0 }, zn.value ? { minHeight: Bn } : void 0])
|
|
13533
13545
|
}, [
|
|
13534
|
-
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(
|
|
13546
|
+
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(od, {
|
|
13535
13547
|
key: 0,
|
|
13536
13548
|
rowGroupLimit: e.rowGroupLimit,
|
|
13537
13549
|
enableFocusView: e.enableFocusView
|
|
13538
13550
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0),
|
|
13539
|
-
e.enableCsvExport ? (D(), i(
|
|
13551
|
+
e.enableCsvExport ? (D(), i(sp, {
|
|
13540
13552
|
key: 1,
|
|
13541
13553
|
getCsvData: un
|
|
13542
13554
|
})) : a("", !0),
|
|
@@ -13556,7 +13568,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13556
13568
|
}, [e.enableTableSearch && !e.tableSearchInline ? (D(), o("div", {
|
|
13557
13569
|
key: 0,
|
|
13558
13570
|
style: x(Vn.value)
|
|
13559
|
-
}, [u(
|
|
13571
|
+
}, [u(mp, b(p(Hn.value)), null, 16)], 4)) : a("", !0), Rn.value ? j(t.$slots, "top-slot", { key: 1 }) : a("", !0)], 2)) : a("", !0),
|
|
13560
13572
|
s("div", {
|
|
13561
13573
|
class: y(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
13562
13574
|
style: {
|
|
@@ -13658,14 +13670,14 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13658
13670
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
13659
13671
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
13660
13672
|
advancedFilterParent: In.value
|
|
13661
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.fullWidthCellRenderer.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isFullWidthRow.isGroupOpenByDefault.loading.loadingCellRenderer.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.pivotMaxGeneratedColumns.pivotGroupHeaderHeight.processPivotResultColGroupDef.processPivotResultColDef.alwaysPassFilter.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !dt.value ? (D(), o("div",
|
|
13662
|
-
e.pagination ? (D(), i(
|
|
13673
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.fullWidthCellRenderer.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isFullWidthRow.isGroupOpenByDefault.loading.loadingCellRenderer.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.pivotMaxGeneratedColumns.pivotGroupHeaderHeight.processPivotResultColGroupDef.processPivotResultColDef.alwaysPassFilter.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !dt.value ? (D(), o("div", Tp, [s("p", Ep, P(ft.value), 1)])) : a("", !0)], 2),
|
|
13674
|
+
e.pagination ? (D(), i(cp, { key: 2 })) : a("", !0)
|
|
13663
13675
|
], 4));
|
|
13664
13676
|
}
|
|
13665
|
-
}),
|
|
13677
|
+
}), Op = {
|
|
13666
13678
|
class: "pv-flex pv-full-width pv-space-between",
|
|
13667
13679
|
style: { "white-space": "nowrap" }
|
|
13668
|
-
},
|
|
13680
|
+
}, kp = { class: "pv-text-body-md" }, Ap = /* @__PURE__ */ d({
|
|
13669
13681
|
inheritAttrs: !1,
|
|
13670
13682
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
13671
13683
|
props: {
|
|
@@ -13674,22 +13686,22 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13674
13686
|
context: {}
|
|
13675
13687
|
},
|
|
13676
13688
|
setup(e) {
|
|
13677
|
-
return (t, n) => (D(), o("div",
|
|
13689
|
+
return (t, n) => (D(), o("div", Op, [s("span", kp, P(e.text), 1), e.context?.rightIcon ? (D(), i(qn, {
|
|
13678
13690
|
key: 0,
|
|
13679
13691
|
name: e.context.rightIcon,
|
|
13680
13692
|
class: "pv-text-subdued"
|
|
13681
13693
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
13682
13694
|
}
|
|
13683
|
-
}),
|
|
13695
|
+
}), jp = { class: "pv-relative" }, Mp = {
|
|
13684
13696
|
role: "list",
|
|
13685
13697
|
class: "pv-relative"
|
|
13686
|
-
},
|
|
13698
|
+
}, Np = ["data-active"], Pp = ["data-active"], Fp = {
|
|
13687
13699
|
key: 2,
|
|
13688
13700
|
style: { cursor: "pointer" }
|
|
13689
|
-
},
|
|
13701
|
+
}, Ip = {
|
|
13690
13702
|
key: 0,
|
|
13691
13703
|
role: "list"
|
|
13692
|
-
},
|
|
13704
|
+
}, Lp = /* @__PURE__ */ d({
|
|
13693
13705
|
__name: "PvTableOptionsPanel",
|
|
13694
13706
|
props: {
|
|
13695
13707
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -13701,7 +13713,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13701
13713
|
"column-config-change"
|
|
13702
13714
|
],
|
|
13703
13715
|
setup(e, { emit: n }) {
|
|
13704
|
-
let i = e, c = n, l = m(
|
|
13716
|
+
let i = e, c = n, l = m(Eu, ee(null)), d = m(Du, k(null)), f = m(Mu, k(null)), { popoverPositionStyle: p, updateRects: h, triggerRef: g, popoverRef: _ } = vu({
|
|
13705
13717
|
alignment: "top",
|
|
13706
13718
|
popoverCssProperties: {
|
|
13707
13719
|
maxWidth: "300px",
|
|
@@ -13768,7 +13780,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13768
13780
|
previousHiddenColIds: r.hiddenColIds
|
|
13769
13781
|
});
|
|
13770
13782
|
};
|
|
13771
|
-
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div",
|
|
13783
|
+
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div", jp, [u(Ka, {
|
|
13772
13784
|
open: v.value,
|
|
13773
13785
|
label: "Table Configuration",
|
|
13774
13786
|
icon: "settings",
|
|
@@ -13788,7 +13800,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13788
13800
|
"padding-top": "4px",
|
|
13789
13801
|
"padding-bottom": "12px"
|
|
13790
13802
|
}
|
|
13791
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
13803
|
+
}, " Table Configuration ")], -1), s("ul", Mp, [
|
|
13792
13804
|
C.value ? (D(), o("li", {
|
|
13793
13805
|
key: 0,
|
|
13794
13806
|
id: "table-config-overlay",
|
|
@@ -13801,7 +13813,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13801
13813
|
icon: "layers-2",
|
|
13802
13814
|
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
13803
13815
|
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
13804
|
-
}, null, 8, ["class-list"])], 8,
|
|
13816
|
+
}, null, 8, ["class-list"])], 8, Np)) : a("", !0),
|
|
13805
13817
|
P.value ? (D(), o("li", {
|
|
13806
13818
|
key: 1,
|
|
13807
13819
|
id: "table-config-columns",
|
|
@@ -13814,8 +13826,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13814
13826
|
icon: "columns-3",
|
|
13815
13827
|
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
13816
13828
|
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
13817
|
-
}, null, 8, ["class-list"])], 8,
|
|
13818
|
-
F.value ? (D(), o("li",
|
|
13829
|
+
}, null, 8, ["class-list"])], 8, Pp)) : a("", !0),
|
|
13830
|
+
F.value ? (D(), o("li", Fp, [u(Po, {
|
|
13819
13831
|
config: { variant: "icon" },
|
|
13820
13832
|
id: "table-config-group-toggle",
|
|
13821
13833
|
class: "pv-text-subdued",
|
|
@@ -13836,11 +13848,11 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13836
13848
|
},
|
|
13837
13849
|
isList: b.value !== "columns"
|
|
13838
13850
|
}, {
|
|
13839
|
-
default: G(() => [b.value === "overlay" ? (D(), o("ul",
|
|
13851
|
+
default: G(() => [b.value === "overlay" ? (D(), o("ul", Ip, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(Po, {
|
|
13840
13852
|
id: e.id,
|
|
13841
13853
|
config: {
|
|
13842
13854
|
variant: "checkbox",
|
|
13843
|
-
renderer:
|
|
13855
|
+
renderer: Ap
|
|
13844
13856
|
},
|
|
13845
13857
|
text: e.text,
|
|
13846
13858
|
context: e.context,
|
|
@@ -13865,7 +13877,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13865
13877
|
"padding-left": "2px",
|
|
13866
13878
|
"padding-bottom": "6px"
|
|
13867
13879
|
}
|
|
13868
|
-
}, " Currently Viewing ", -1), u(
|
|
13880
|
+
}, " Currently Viewing ", -1), u(yl, {
|
|
13869
13881
|
modelValue: B.value,
|
|
13870
13882
|
options: R.value,
|
|
13871
13883
|
showPlaceholders: !1,
|
|
@@ -13878,18 +13890,18 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13878
13890
|
"isList"
|
|
13879
13891
|
])], 64)) : a("", !0);
|
|
13880
13892
|
}
|
|
13881
|
-
}),
|
|
13893
|
+
}), Rp = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, zp = ["data-group-name"], Bp = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, Vp = ["data-loading"], Hp = { class: "pv-chart-chip-label pv-flex-item" }, Up = { class: "pv-chart-chip-value" }, Wp = /* @__PURE__ */ d({
|
|
13882
13894
|
__name: "PvBenchmarkChips",
|
|
13883
13895
|
props: { sections: {} },
|
|
13884
13896
|
emits: ["chip-hover"],
|
|
13885
13897
|
setup(e, { emit: n }) {
|
|
13886
13898
|
let r = n;
|
|
13887
|
-
return (n, c) => (D(), o("div",
|
|
13899
|
+
return (n, c) => (D(), o("div", Rp, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
13888
13900
|
key: e.groupName,
|
|
13889
13901
|
"data-testid": "chip-section",
|
|
13890
13902
|
"data-group-name": e.groupName,
|
|
13891
13903
|
class: "pv-flex-vertical"
|
|
13892
|
-
}, [s("p",
|
|
13904
|
+
}, [s("p", Bp, P(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
13893
13905
|
key: e.key,
|
|
13894
13906
|
"data-testid": "benchmark-chip",
|
|
13895
13907
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -13901,11 +13913,11 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13901
13913
|
}, F(e.loading || e.excludeFromCrossline ? {} : {
|
|
13902
13914
|
mouseenter: () => r("chip-hover", e.key),
|
|
13903
13915
|
mouseleave: () => r("chip-hover", null)
|
|
13904
|
-
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(
|
|
13916
|
+
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(Dl, {
|
|
13905
13917
|
"data-testid": "benchmark-chip-skeleton",
|
|
13906
13918
|
size: "sm",
|
|
13907
13919
|
width: "60%"
|
|
13908
|
-
}), u(
|
|
13920
|
+
}), u(Dl, {
|
|
13909
13921
|
"data-testid": "benchmark-chip-skeleton",
|
|
13910
13922
|
size: "sm",
|
|
13911
13923
|
width: "30%"
|
|
@@ -13916,8 +13928,8 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13916
13928
|
class: "pv-chart-benchmark-chip-accent",
|
|
13917
13929
|
style: x({ backgroundColor: e.color })
|
|
13918
13930
|
}, null, 4)) : a("", !0),
|
|
13919
|
-
s("span",
|
|
13920
|
-
s("span",
|
|
13931
|
+
s("span", Hp, P(e.label), 1),
|
|
13932
|
+
s("span", Up, P(e.formattedValue), 1),
|
|
13921
13933
|
e.excludeFromCrossline ? (D(), i(z(ua), {
|
|
13922
13934
|
key: 1,
|
|
13923
13935
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -13940,16 +13952,16 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13940
13952
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
13941
13953
|
_: 1
|
|
13942
13954
|
})) : a("", !0)
|
|
13943
|
-
], 64))], 16,
|
|
13955
|
+
], 64))], 16, Vp))), 128))], 8, zp))), 128))]));
|
|
13944
13956
|
}
|
|
13945
|
-
}),
|
|
13957
|
+
}), Gp = (e) => e.field === "state" || ws(e).dataType === vs.Location, Kp = (e) => e.filter(Gp), qp = (e, t, n) => {
|
|
13946
13958
|
if (!n || t.length === 0) return e;
|
|
13947
13959
|
let r = new Set(n(t).map((e) => e.field));
|
|
13948
13960
|
return e.filter((e) => r.has(e));
|
|
13949
|
-
},
|
|
13961
|
+
}, Jp = (e) => e.filter((e) => !Os(e)), Yp = (e) => e.filter((e) => Os(e)), Xp = {
|
|
13950
13962
|
xAxis: {
|
|
13951
13963
|
selectMode: "sortable",
|
|
13952
|
-
filterColumns:
|
|
13964
|
+
filterColumns: Jp
|
|
13953
13965
|
},
|
|
13954
13966
|
yAxis: {},
|
|
13955
13967
|
secondaryYAxis: {},
|
|
@@ -13958,16 +13970,16 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13958
13970
|
rowGroupLimit: 2,
|
|
13959
13971
|
supportsFocusView: !0,
|
|
13960
13972
|
storeBeforeChange: !0
|
|
13961
|
-
},
|
|
13973
|
+
}, Zp = [
|
|
13962
13974
|
{
|
|
13963
|
-
...
|
|
13975
|
+
...Xp,
|
|
13964
13976
|
id: "column",
|
|
13965
13977
|
text: "Column",
|
|
13966
13978
|
icon: "chart-column",
|
|
13967
13979
|
agChartType: "bar"
|
|
13968
13980
|
},
|
|
13969
13981
|
{
|
|
13970
|
-
...
|
|
13982
|
+
...Xp,
|
|
13971
13983
|
id: "bar",
|
|
13972
13984
|
text: "Bar",
|
|
13973
13985
|
icon: "chart-bar",
|
|
@@ -13975,28 +13987,28 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
13975
13987
|
isHorizontal: !0
|
|
13976
13988
|
},
|
|
13977
13989
|
{
|
|
13978
|
-
...
|
|
13990
|
+
...Xp,
|
|
13979
13991
|
id: "line",
|
|
13980
13992
|
text: "Line",
|
|
13981
13993
|
icon: "chart-line",
|
|
13982
13994
|
agChartType: "line"
|
|
13983
13995
|
},
|
|
13984
13996
|
{
|
|
13985
|
-
...
|
|
13997
|
+
...Xp,
|
|
13986
13998
|
id: "area",
|
|
13987
13999
|
text: "Area",
|
|
13988
14000
|
icon: "chart-area",
|
|
13989
14001
|
agChartType: "area"
|
|
13990
14002
|
},
|
|
13991
14003
|
{
|
|
13992
|
-
...
|
|
14004
|
+
...Xp,
|
|
13993
14005
|
id: "column_stacked",
|
|
13994
14006
|
text: "Stacked Column",
|
|
13995
14007
|
icon: "chart-column-stacked",
|
|
13996
14008
|
agChartType: "bar"
|
|
13997
14009
|
},
|
|
13998
14010
|
{
|
|
13999
|
-
...
|
|
14011
|
+
...Xp,
|
|
14000
14012
|
id: "bar_stacked",
|
|
14001
14013
|
text: "Stacked Bar",
|
|
14002
14014
|
icon: "chart-bar-stacked",
|
|
@@ -14004,7 +14016,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
14004
14016
|
isHorizontal: !0
|
|
14005
14017
|
},
|
|
14006
14018
|
{
|
|
14007
|
-
...
|
|
14019
|
+
...Xp,
|
|
14008
14020
|
id: "pie",
|
|
14009
14021
|
text: "Pie",
|
|
14010
14022
|
icon: "chart-pie",
|
|
@@ -14018,7 +14030,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
14018
14030
|
icon: "chart-column",
|
|
14019
14031
|
xAxis: {
|
|
14020
14032
|
selectMode: "single",
|
|
14021
|
-
filterColumns:
|
|
14033
|
+
filterColumns: Yp,
|
|
14022
14034
|
hideLabel: !0
|
|
14023
14035
|
},
|
|
14024
14036
|
yAxis: {
|
|
@@ -14039,7 +14051,7 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
14039
14051
|
icon: "map",
|
|
14040
14052
|
xAxis: {
|
|
14041
14053
|
selectMode: "single",
|
|
14042
|
-
filterColumns:
|
|
14054
|
+
filterColumns: Kp,
|
|
14043
14055
|
hideLabel: !0
|
|
14044
14056
|
},
|
|
14045
14057
|
yAxis: {},
|
|
@@ -14051,36 +14063,36 @@ var Ed = { style: { "line-height": "20px" } }, Dd = { class: "pv-text-subdued pv
|
|
|
14051
14063
|
supportsFocusView: !1,
|
|
14052
14064
|
storeBeforeChange: !1
|
|
14053
14065
|
}
|
|
14054
|
-
],
|
|
14055
|
-
function
|
|
14056
|
-
return
|
|
14066
|
+
], Qp = new Map(Zp.map((e) => [e.id, e])), $p = Qp.get("column");
|
|
14067
|
+
function em(e) {
|
|
14068
|
+
return Qp.get(e) || $p;
|
|
14057
14069
|
}
|
|
14058
14070
|
//#endregion
|
|
14059
14071
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue?vue&type=script&setup=true&lang.ts
|
|
14060
|
-
var
|
|
14072
|
+
var tm = { class: "pv-stack-16 pv-chart-options-panel" }, nm = { class: "pv-flex pv-relative" }, rm = [
|
|
14061
14073
|
"id",
|
|
14062
14074
|
"aria-label",
|
|
14063
14075
|
"onKeydown"
|
|
14064
|
-
],
|
|
14076
|
+
], im = {
|
|
14065
14077
|
role: "list",
|
|
14066
14078
|
class: "pv-popover-list pv-relative"
|
|
14067
|
-
},
|
|
14079
|
+
}, am = [
|
|
14068
14080
|
"id",
|
|
14069
14081
|
"data-active",
|
|
14070
14082
|
"data-dd-action-name",
|
|
14071
14083
|
"onMouseenter",
|
|
14072
14084
|
"onClick"
|
|
14073
|
-
],
|
|
14085
|
+
], om = { style: { "max-width": "100px" } }, sm = {
|
|
14074
14086
|
key: 1,
|
|
14075
14087
|
class: "pv-flex"
|
|
14076
|
-
},
|
|
14088
|
+
}, cm = {
|
|
14077
14089
|
key: 0,
|
|
14078
14090
|
class: "pv-inset-square-8"
|
|
14079
|
-
},
|
|
14091
|
+
}, lm = {
|
|
14080
14092
|
key: 1,
|
|
14081
14093
|
role: "list",
|
|
14082
14094
|
class: "pv-popover-list"
|
|
14083
|
-
},
|
|
14095
|
+
}, um = ["data-active"], dm = "This metric isn’t available with the selected chart type.", fm = /* @__PURE__ */ sn(/* @__PURE__ */ d({
|
|
14084
14096
|
__name: "PvChartOptionsPanel",
|
|
14085
14097
|
props: {
|
|
14086
14098
|
enablePanel: { type: Boolean },
|
|
@@ -14099,17 +14111,17 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14099
14111
|
},
|
|
14100
14112
|
emits: ["series-agg-func-selected"],
|
|
14101
14113
|
setup(e, { emit: n }) {
|
|
14102
|
-
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } =
|
|
14114
|
+
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } = vu({
|
|
14103
14115
|
alignment: "top right",
|
|
14104
14116
|
popoverCssProperties: {
|
|
14105
14117
|
maxWidth: "500px",
|
|
14106
14118
|
maxHeight: "900px"
|
|
14107
14119
|
},
|
|
14108
14120
|
useTeleport: !0
|
|
14109
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(
|
|
14121
|
+
}), b = k(!1), S = k(void 0), C = k(null), w = m(Hu, k(void 0)), T = m(Bu, k([])), E = m(Uu, k(void 0)), O = m(Vu, k([])), j = m(zu, k([])), M = m(Au, k([])), N = r(() => em(w.value?.id || "")), ee = r(() => {
|
|
14110
14122
|
let e = w.value?.id ?? "";
|
|
14111
14123
|
return j.value.length > 1 && !e.endsWith("_stacked") && !l.metricOverlayWithRowGroups;
|
|
14112
|
-
}), F = m(
|
|
14124
|
+
}), F = m(Wu, k("")), I = m(Gu, k([])), L = m(Ku, k(void 0)), R = m(qu, k([])), B = m(Yu, k(!1)), te = m(Ju, k([])), V = m(Zu, k(/* @__PURE__ */ new Set())), ne = m(Qu, k([])), re = r(() => ne.value.filter((e) => V.value.has(e.id)).map((e) => ({
|
|
14113
14125
|
id: e.id,
|
|
14114
14126
|
text: e.label,
|
|
14115
14127
|
disabled: e.disabled,
|
|
@@ -14120,7 +14132,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14120
14132
|
W(ee, (e) => {
|
|
14121
14133
|
e && L.value && (L.value = void 0), e && te.value.length > 0 && (te.value = []);
|
|
14122
14134
|
}, { immediate: !0 });
|
|
14123
|
-
let H = m(
|
|
14135
|
+
let H = m(Ru, k("")), U = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
14124
14136
|
label: e.label,
|
|
14125
14137
|
value: e.value
|
|
14126
14138
|
})) : []), se = r(() => {
|
|
@@ -14170,10 +14182,10 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14170
14182
|
case "sort": return "Select Chart Sort";
|
|
14171
14183
|
default: return;
|
|
14172
14184
|
}
|
|
14173
|
-
}, Y =
|
|
14185
|
+
}, Y = bu(), ue = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, de = (e, t, n = "select") => {
|
|
14174
14186
|
if (!t) return;
|
|
14175
14187
|
let r = Z.value.find((t) => t.value === e), i = r?.availableOptions ? J(r.availableOptions, t) : void 0;
|
|
14176
|
-
|
|
14188
|
+
xu("chart_option_selected", {
|
|
14177
14189
|
panel: ue(e),
|
|
14178
14190
|
selected_value: i?.text ?? t,
|
|
14179
14191
|
selected_value_id: t,
|
|
@@ -14181,26 +14193,26 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14181
14193
|
}, Y());
|
|
14182
14194
|
}, X = (e, t) => {
|
|
14183
14195
|
let n = new Set(e.activeOptionIds);
|
|
14184
|
-
e.updateSelectedOptions?.(t),
|
|
14196
|
+
e.updateSelectedOptions?.(t), Su(() => {
|
|
14185
14197
|
for (let r of t) n.has(r.id) || de(e.value, r.id);
|
|
14186
14198
|
});
|
|
14187
14199
|
}, fe = (e, t) => {
|
|
14188
|
-
e.updateSelectedOption?.(t?.id || ""),
|
|
14200
|
+
e.updateSelectedOption?.(t?.id || ""), Su(() => de(e.value, t?.id));
|
|
14189
14201
|
}, pe = (e, t) => {
|
|
14190
14202
|
let n = t.option;
|
|
14191
14203
|
if (e.isMultiSelect) {
|
|
14192
14204
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
14193
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(ce(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) ||
|
|
14205
|
+
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(ce(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) || Su(() => de(e.value, n.id));
|
|
14194
14206
|
return;
|
|
14195
14207
|
}
|
|
14196
|
-
e.updateSelectedOption?.(n.id),
|
|
14208
|
+
e.updateSelectedOption?.(n.id), Su(() => de(e.value, n.id));
|
|
14197
14209
|
}, me = (e, t) => {
|
|
14198
14210
|
let n = e.activeOptions?.value ?? [];
|
|
14199
|
-
e.activeOptions && (e.activeOptions.value = t),
|
|
14211
|
+
e.activeOptions && (e.activeOptions.value = t), Su(() => {
|
|
14200
14212
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
14201
14213
|
for (let n of t) a.has(n.id) || de(e.value, n.id, "select");
|
|
14202
14214
|
for (let t of n) o.has(t.id) || de(e.value, t.id, "deselect");
|
|
14203
|
-
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") &&
|
|
14215
|
+
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && xu("chart_option_selected", {
|
|
14204
14216
|
panel: ue(e.value),
|
|
14205
14217
|
selected_value: t.map((e) => e.text).join(", "),
|
|
14206
14218
|
selected_value_id: i.join(","),
|
|
@@ -14211,7 +14223,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14211
14223
|
let r = !!e && t === e;
|
|
14212
14224
|
return {
|
|
14213
14225
|
disabled: r,
|
|
14214
|
-
description: r ?
|
|
14226
|
+
description: r ? dm : n
|
|
14215
14227
|
};
|
|
14216
14228
|
}, ye = (e, t) => {
|
|
14217
14229
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
@@ -14450,12 +14462,12 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14450
14462
|
let t = Q.value;
|
|
14451
14463
|
if (!t?.isMultiSelect) return;
|
|
14452
14464
|
let n = new Set(t.activeOptionIds ?? []);
|
|
14453
|
-
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))),
|
|
14465
|
+
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Su(() => {
|
|
14454
14466
|
for (let r of e) n.has(r) || de(t.value, r);
|
|
14455
14467
|
});
|
|
14456
14468
|
}, Le = (e) => {
|
|
14457
14469
|
let t = Q.value;
|
|
14458
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id),
|
|
14470
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Su(() => de(t.value, e.id)));
|
|
14459
14471
|
}, Re = (e) => {
|
|
14460
14472
|
let t = Q.value;
|
|
14461
14473
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
@@ -14466,7 +14478,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14466
14478
|
}, Ve = () => {
|
|
14467
14479
|
S.value = void 0;
|
|
14468
14480
|
};
|
|
14469
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
14481
|
+
return (n, r) => (D(), o(t, null, [s("div", tm, [s("div", null, [ae((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", nm, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(Ka, {
|
|
14470
14482
|
open: b.value,
|
|
14471
14483
|
label: "Chart Configuration",
|
|
14472
14484
|
icon: "chart-area",
|
|
@@ -14503,7 +14515,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14503
14515
|
"padding-left": "2px",
|
|
14504
14516
|
"padding-bottom": "6px"
|
|
14505
14517
|
}
|
|
14506
|
-
}, " Viewing ", -1), u(
|
|
14518
|
+
}, " Viewing ", -1), u(yl, {
|
|
14507
14519
|
modelValue: Q.value.activeOptions.value,
|
|
14508
14520
|
"onUpdate:modelValue": r[1] ||= (e) => me(Q.value, e),
|
|
14509
14521
|
options: Q.value.availableOptions || [],
|
|
@@ -14515,7 +14527,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14515
14527
|
"options",
|
|
14516
14528
|
"activeOptionLimit",
|
|
14517
14529
|
"lockedOptions"
|
|
14518
|
-
])], 40,
|
|
14530
|
+
])], 40, rm)) : Q.value ? (D(), i(Go, {
|
|
14519
14531
|
key: 1,
|
|
14520
14532
|
id: t,
|
|
14521
14533
|
"aria-label": `${Q.value.label} options`,
|
|
@@ -14558,7 +14570,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14558
14570
|
zIndex: 5
|
|
14559
14571
|
}
|
|
14560
14572
|
}, {
|
|
14561
|
-
default: G(() => [r[8] ||= s("div", { class: "pv-border-bottom pv-inset-squish-12" }, [s("p", { class: "pv-text-title-sm" }, "Chart Configuration")], -1), s("ul",
|
|
14573
|
+
default: G(() => [r[8] ||= s("div", { class: "pv-border-bottom pv-inset-squish-12" }, [s("p", { class: "pv-text-title-sm" }, "Chart Configuration")], -1), s("ul", im, [(D(!0), o(t, null, A(Z.value, (t) => (D(), o("li", {
|
|
14562
14574
|
id: `pv-chart-config-${t.value}`,
|
|
14563
14575
|
key: t.value,
|
|
14564
14576
|
"data-active": S.value === t.value ? !0 : null,
|
|
@@ -14589,9 +14601,9 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14589
14601
|
_: 2
|
|
14590
14602
|
}, [t.disabled && t.disabledReason ? {
|
|
14591
14603
|
name: "content",
|
|
14592
|
-
fn: G(() => [s("div",
|
|
14604
|
+
fn: G(() => [s("div", om, P(t.disabledReason), 1)]),
|
|
14593
14605
|
key: "0"
|
|
14594
|
-
} : void 0]), 1024)], 40,
|
|
14606
|
+
} : void 0]), 1024)], 40, am))), 128))])]),
|
|
14595
14607
|
_: 1
|
|
14596
14608
|
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[z(et), [$, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
14597
14609
|
class: "pv-flex pv-space-between",
|
|
@@ -14601,7 +14613,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14601
14613
|
options: U.value,
|
|
14602
14614
|
modelValue: z(H),
|
|
14603
14615
|
"onUpdate:modelValue": r[4] ||= (e) => h(H) ? H.value = e : null
|
|
14604
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
14616
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", sm, [(D(!0), o(t, null, A(Z.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(cl, {
|
|
14605
14617
|
key: 0,
|
|
14606
14618
|
label: n.label,
|
|
14607
14619
|
prefixLabel: n.prefixLabel,
|
|
@@ -14654,13 +14666,13 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14654
14666
|
...z(p)
|
|
14655
14667
|
}
|
|
14656
14668
|
}, {
|
|
14657
|
-
default: G(() => [Q.value ? (D(), o(t, { key: 0 }, [Q.value.isSortableList ? (D(), o("div",
|
|
14669
|
+
default: G(() => [Q.value ? (D(), o(t, { key: 0 }, [Q.value.isSortableList ? (D(), o("div", cm, [r[9] ||= s("p", {
|
|
14658
14670
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
14659
14671
|
style: {
|
|
14660
14672
|
"padding-left": "2px",
|
|
14661
14673
|
"padding-bottom": "6px"
|
|
14662
14674
|
}
|
|
14663
|
-
}, " Viewing ", -1), u(
|
|
14675
|
+
}, " Viewing ", -1), u(yl, {
|
|
14664
14676
|
modelValue: Q.value.activeOptions.value,
|
|
14665
14677
|
"onUpdate:modelValue": r[5] ||= (e) => me(Q.value, e),
|
|
14666
14678
|
options: Q.value.availableOptions || [],
|
|
@@ -14672,7 +14684,7 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14672
14684
|
"options",
|
|
14673
14685
|
"activeOptionLimit",
|
|
14674
14686
|
"lockedOptions"
|
|
14675
|
-
])])) : (D(), o("ul",
|
|
14687
|
+
])])) : (D(), o("ul", lm, [(D(!0), o(t, null, A(Q.value.availableOptions, (t) => (D(), o("li", {
|
|
14676
14688
|
key: t.id,
|
|
14677
14689
|
"data-active": Re(t)
|
|
14678
14690
|
}, [u(Po, {
|
|
@@ -14697,14 +14709,14 @@ var $p = { class: "pv-stack-16 pv-chart-options-panel" }, em = { class: "pv-flex
|
|
|
14697
14709
|
"disabled",
|
|
14698
14710
|
"selectedIds",
|
|
14699
14711
|
"onHandleSelected"
|
|
14700
|
-
])], 8,
|
|
14712
|
+
])], 8, um))), 128))]))], 64)) : a("", !0)]),
|
|
14701
14713
|
_: 1
|
|
14702
14714
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
14703
14715
|
}
|
|
14704
14716
|
}), [["__scopeId", "data-v-21e451cd"]]);
|
|
14705
14717
|
//#endregion
|
|
14706
14718
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
14707
|
-
function
|
|
14719
|
+
function pm(e, t, n, r, i) {
|
|
14708
14720
|
return i ? {
|
|
14709
14721
|
xKey: n,
|
|
14710
14722
|
xName: r,
|
|
@@ -14717,7 +14729,7 @@ function dm(e, t, n, r, i) {
|
|
|
14717
14729
|
yName: r
|
|
14718
14730
|
};
|
|
14719
14731
|
}
|
|
14720
|
-
var
|
|
14732
|
+
var mm = (e, t) => {
|
|
14721
14733
|
if (t.length === 0) return null;
|
|
14722
14734
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
14723
14735
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -14728,22 +14740,22 @@ var fm = (e, t) => {
|
|
|
14728
14740
|
}
|
|
14729
14741
|
}
|
|
14730
14742
|
return null;
|
|
14731
|
-
},
|
|
14743
|
+
}, hm = (e, t) => {
|
|
14732
14744
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
14733
14745
|
return {
|
|
14734
14746
|
categoryPadOffset: n,
|
|
14735
14747
|
axisMin: 0 - i,
|
|
14736
14748
|
axisMax: r + i
|
|
14737
14749
|
};
|
|
14738
|
-
},
|
|
14750
|
+
}, gm = (e, t) => {
|
|
14739
14751
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
14740
14752
|
return (e + n - r) / (i - r);
|
|
14741
|
-
},
|
|
14753
|
+
}, _m = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
14742
14754
|
...t,
|
|
14743
14755
|
color: t.color ?? e.color,
|
|
14744
14756
|
formatValue: t.formatValue ?? e.formatValue,
|
|
14745
14757
|
key: `${e.id}-${t.label}`
|
|
14746
|
-
}))),
|
|
14758
|
+
}))), vm = (e, t, n) => {
|
|
14747
14759
|
let r = /* @__PURE__ */ new Map();
|
|
14748
14760
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
14749
14761
|
let t = r.get(e.groupName) ?? {
|
|
@@ -14765,18 +14777,18 @@ var fm = (e, t) => {
|
|
|
14765
14777
|
});
|
|
14766
14778
|
}), r.set(e.groupName, t);
|
|
14767
14779
|
}), [...r.values()];
|
|
14768
|
-
},
|
|
14769
|
-
function
|
|
14770
|
-
let { crosslineOverlayGroups: t, isHistogramWithBuckets: n, isHorizontalBarChart: i, computedChartData: a, pvChartRef: o, formatValue: s, initialActiveOverlayGroupIds: c } = e, l = k(new Set(c?.value ?? t.value.filter((e) =>
|
|
14780
|
+
}, ym = (e) => !!(e.visible && !e.disabled);
|
|
14781
|
+
function bm(e) {
|
|
14782
|
+
let { crosslineOverlayGroups: t, isHistogramWithBuckets: n, isHorizontalBarChart: i, computedChartData: a, pvChartRef: o, formatValue: s, initialActiveOverlayGroupIds: c } = e, l = k(new Set(c?.value ?? t.value.filter((e) => ym(e)).map((e) => e.id))), u = new Map(t.value.map((e) => [e.id, ym(e)]));
|
|
14771
14783
|
W(t, (e) => {
|
|
14772
14784
|
let t = new Set(l.value), n = !1, r = c?.value !== void 0;
|
|
14773
14785
|
for (let i of e) {
|
|
14774
|
-
let e =
|
|
14786
|
+
let e = ym(i), a = u.has(i.id) ? !u.get(i.id) : !r;
|
|
14775
14787
|
e && a ? (t.add(i.id), n = !0) : !e && u.get(i.id) && (t.delete(i.id), n = !0);
|
|
14776
14788
|
}
|
|
14777
|
-
u = new Map(e.map((e) => [e.id,
|
|
14789
|
+
u = new Map(e.map((e) => [e.id, ym(e)])), n && (l.value = t);
|
|
14778
14790
|
});
|
|
14779
|
-
let d = r(() =>
|
|
14791
|
+
let d = r(() => _m(t.value, l.value)), f = r(() => vm(t.value, l.value, s)), p = k(null);
|
|
14780
14792
|
return {
|
|
14781
14793
|
activeCrosslineOverlayGroups: l,
|
|
14782
14794
|
resolvedCrosslineOverlays: d,
|
|
@@ -14786,11 +14798,11 @@ function vm(e) {
|
|
|
14786
14798
|
if (!p.value || !a.value) return null;
|
|
14787
14799
|
let e = d.value.find((e) => e.key === p.value);
|
|
14788
14800
|
if (!e) return null;
|
|
14789
|
-
let t =
|
|
14801
|
+
let t = mm(e.value, a.value);
|
|
14790
14802
|
if (t == null) return null;
|
|
14791
14803
|
let r = (o.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
14792
14804
|
if (!r) return null;
|
|
14793
|
-
let c =
|
|
14805
|
+
let c = gm(t, hm(a.value.length || 1, n.value)), l = e.formatValue ? e.formatValue(e.value) : s(e.value);
|
|
14794
14806
|
return i.value ? {
|
|
14795
14807
|
label: e.label,
|
|
14796
14808
|
value: l,
|
|
@@ -14817,10 +14829,10 @@ function vm(e) {
|
|
|
14817
14829
|
}
|
|
14818
14830
|
//#endregion
|
|
14819
14831
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
14820
|
-
var
|
|
14832
|
+
var xm = { style: {
|
|
14821
14833
|
height: "100%",
|
|
14822
14834
|
width: "100%"
|
|
14823
|
-
} },
|
|
14835
|
+
} }, Sm = {
|
|
14824
14836
|
key: 0,
|
|
14825
14837
|
class: "pv-flex",
|
|
14826
14838
|
style: {
|
|
@@ -14828,26 +14840,26 @@ var ym = { style: {
|
|
|
14828
14840
|
flex: "0 1 auto"
|
|
14829
14841
|
},
|
|
14830
14842
|
"data-testid": "pv-data-table-with-chart-filter-panel-actions"
|
|
14831
|
-
},
|
|
14843
|
+
}, Cm = {
|
|
14832
14844
|
key: 0,
|
|
14833
14845
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
14834
|
-
},
|
|
14846
|
+
}, wm = { class: "pv-flex" }, Tm = {
|
|
14835
14847
|
class: "pv-flex",
|
|
14836
14848
|
style: { "align-items": "stretch" }
|
|
14837
|
-
},
|
|
14849
|
+
}, Em = { class: "pv-flex pv-space-between" }, Dm = { class: "pv-chart-tooltip-label" }, Om = { class: "pv-chart-tooltip-value" }, km = {
|
|
14838
14850
|
key: 2,
|
|
14839
14851
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
14840
|
-
},
|
|
14852
|
+
}, Am = { key: 0 }, jm = {
|
|
14841
14853
|
key: 1,
|
|
14842
14854
|
class: "pv-text-body-xs",
|
|
14843
14855
|
style: { "text-align": "center" }
|
|
14844
|
-
},
|
|
14856
|
+
}, Mm = {
|
|
14845
14857
|
class: "pv-flex",
|
|
14846
14858
|
style: { "text-wrap": "nowrap" }
|
|
14847
|
-
},
|
|
14859
|
+
}, Nm = {
|
|
14848
14860
|
key: 2,
|
|
14849
14861
|
class: "pv-text-body-xs"
|
|
14850
|
-
},
|
|
14862
|
+
}, Pm = {
|
|
14851
14863
|
key: 0,
|
|
14852
14864
|
class: "pv-stack-8",
|
|
14853
14865
|
style: {
|
|
@@ -14857,15 +14869,15 @@ var ym = { style: {
|
|
|
14857
14869
|
"column-gap": "4px"
|
|
14858
14870
|
},
|
|
14859
14871
|
"data-testid": "pv-data-table-with-chart-stack-values-legend"
|
|
14860
|
-
},
|
|
14872
|
+
}, Fm = ["title"], Im = {
|
|
14861
14873
|
key: 1,
|
|
14862
14874
|
class: "pv-flex pv-space-between",
|
|
14863
14875
|
style: { "align-items": "center" },
|
|
14864
14876
|
"data-testid": "pv-data-table-with-chart-stack-values-pagination"
|
|
14865
|
-
},
|
|
14877
|
+
}, Lm = {
|
|
14866
14878
|
class: "pv-text-body-xs pv-text-subdued",
|
|
14867
14879
|
"data-testid": "pv-data-table-with-chart-stack-values-cap-message"
|
|
14868
|
-
},
|
|
14880
|
+
}, Rm = /* @__PURE__ */ d({
|
|
14869
14881
|
__name: "PvDataTableWithChart",
|
|
14870
14882
|
props: {
|
|
14871
14883
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -15048,6 +15060,7 @@ var ym = { style: {
|
|
|
15048
15060
|
enableInlineFilters: { type: Boolean },
|
|
15049
15061
|
tableSearchPlaceholder: {},
|
|
15050
15062
|
tableSearchStyle: {},
|
|
15063
|
+
tableSearchSize: {},
|
|
15051
15064
|
tableSearchInline: { type: Boolean },
|
|
15052
15065
|
maxHorizontalFilters: { default: 6 },
|
|
15053
15066
|
wrapHorizontalFilters: { type: Boolean },
|
|
@@ -15195,16 +15208,16 @@ var ym = { style: {
|
|
|
15195
15208
|
formatter: n.valueFormatter,
|
|
15196
15209
|
dataType: n.context?.dataType
|
|
15197
15210
|
};
|
|
15198
|
-
})), ce = d.filterStore ||
|
|
15199
|
-
O(
|
|
15200
|
-
let le =
|
|
15211
|
+
})), ce = d.filterStore || _f();
|
|
15212
|
+
O(Cu, ce);
|
|
15213
|
+
let le = md({
|
|
15201
15214
|
focusType: d.initialFocusData?.focusType,
|
|
15202
15215
|
focuses: d.initialFocusData?.focuses || [],
|
|
15203
15216
|
focusRequired: d.focusRequired
|
|
15204
15217
|
}, d.allFieldsAreFocusable);
|
|
15205
|
-
O(
|
|
15218
|
+
O(wu, le);
|
|
15206
15219
|
let { setFilterSelectedValues: Y } = ce, ue = k(!1);
|
|
15207
|
-
O(
|
|
15220
|
+
O(Pu, ue);
|
|
15208
15221
|
let de = k(d.isTableGrouped), X = (e) => {
|
|
15209
15222
|
p("table-overlay-change", e);
|
|
15210
15223
|
}, fe = r(() => dn.value ? !1 : !!(d.emptyChartFilterRenderer && d.requireFiltersToShowData && ce.filterModelEmpty.value)), pe = r(() => le?.computedFocusType.value || null), me = r(() => le?.computedFocuses.value || []), he = (e) => {
|
|
@@ -15318,7 +15331,7 @@ var ym = { style: {
|
|
|
15318
15331
|
...R.value.length > 1 ? cs : ss,
|
|
15319
15332
|
ls,
|
|
15320
15333
|
us
|
|
15321
|
-
].filter((e) => d.enabledChartTypes?.includes(e.id))), Q = k(void 0), Me = k(void 0), Ne = k(void 0), Pe = !1, Fe = r(() =>
|
|
15334
|
+
].filter((e) => d.enabledChartTypes?.includes(e.id))), Q = k(void 0), Me = k(void 0), Ne = k(void 0), Pe = !1, Fe = r(() => em(Q.value?.id || "")), Ie = r(() => Math.min(Fe.value.rowGroupLimit, d.rowGroupLimit)), Le = r(() => {
|
|
15322
15335
|
let e = Fe.value.xAxis.filterColumns, t = e ? e(L.value) : L.value, n = d.rowGroupOptionOrder;
|
|
15323
15336
|
if (!n || n.length === 0) return t;
|
|
15324
15337
|
let r = (e) => {
|
|
@@ -15347,20 +15360,20 @@ var ym = { style: {
|
|
|
15347
15360
|
He.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
15348
15361
|
}, { immediate: !0 });
|
|
15349
15362
|
let Ke = r(() => d.crosslineOverlayGroups ?? []), qe = k(null), Je = k(d.initialStackValuesPageIndex ?? 0), Ye = k(null), Xe = k(Re.value.find((e) => e.id === d.initialSort || "")), Ze = k("");
|
|
15350
|
-
O(
|
|
15363
|
+
O(Eu, m), O(Ru, Ze), O(Au, Le), O(zu, R), O(Bu, Z), O(Vu, Re), O(Hu, Q), O(Uu, Xe), O(Wu, $), O(Gu, oe), O(Ku, Ve), O(Ju, He), O(qu, se), O(Yu, Ue), O(Qu, Ke), W(ke, (e) => {
|
|
15351
15364
|
e && Xe.value && (Xe.value = void 0);
|
|
15352
15365
|
}, { immediate: !0 });
|
|
15353
15366
|
let Qe = (e) => {
|
|
15354
15367
|
Q.value = Z.value.find((t) => t.id === e) ?? Z.value[0];
|
|
15355
15368
|
}, $e = (e) => {
|
|
15356
15369
|
let t = R.value.length, n = (e) => {
|
|
15357
|
-
let n =
|
|
15370
|
+
let n = em(e.id);
|
|
15358
15371
|
return t <= Math.min(n.rowGroupLimit, d.rowGroupLimit);
|
|
15359
15372
|
}, r = Z.value.find((t) => t.id === e);
|
|
15360
15373
|
return r && n(r) ? r.id : Z.value.find(n)?.id ?? Z.value[0]?.id;
|
|
15361
15374
|
};
|
|
15362
15375
|
W(() => Z.value, () => {
|
|
15363
|
-
let e = vt.value, t = e !== Pe, n =
|
|
15376
|
+
let e = vt.value, t = e !== Pe, n = em(Q.value?.id || ""), r = Z.value.some((e) => e.id === Q.value?.id), i = R.value.length > Math.min(n.rowGroupLimit, d.rowGroupLimit);
|
|
15364
15377
|
if (Pe = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
15365
15378
|
let a = $e((e ? Ne?.value : Me?.value) ?? d.chartType);
|
|
15366
15379
|
a && Qe(a);
|
|
@@ -15372,7 +15385,7 @@ var ym = { style: {
|
|
|
15372
15385
|
if (d.chartFilter && m.value) {
|
|
15373
15386
|
let t = d.chartFilter.colId, n = d.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
15374
15387
|
n && n.length === 0 && (n = null), Y(t, n || []);
|
|
15375
|
-
let r =
|
|
15388
|
+
let r = Pd({
|
|
15376
15389
|
filterType: "set",
|
|
15377
15390
|
values: n
|
|
15378
15391
|
}, De(t));
|
|
@@ -15475,7 +15488,7 @@ var ym = { style: {
|
|
|
15475
15488
|
}))), We.value.length > 0) {
|
|
15476
15489
|
let t = De(B.value)?.context?.metadataDisplayFields?.[0] || B.value, r = dt.value;
|
|
15477
15490
|
for (let i of We.value) {
|
|
15478
|
-
let a = q(se.value, i), o = et(a), s = e ? `${i}${_s}` : i, c =
|
|
15491
|
+
let a = q(se.value, i), o = et(a), s = e ? `${i}${_s}` : i, c = pm(B.value, t, s, o, ut.value), l = (Wt.value ?? []).filter((e) => e[s] != null).length, u = {
|
|
15479
15492
|
type: r,
|
|
15480
15493
|
id: Ue.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
15481
15494
|
data: Wt.value,
|
|
@@ -15519,12 +15532,12 @@ var ym = { style: {
|
|
|
15519
15532
|
label: { enabled: !1 },
|
|
15520
15533
|
tooltip: { enabled: !1 },
|
|
15521
15534
|
visible: !1
|
|
15522
|
-
}, { categoryPadOffset: i } =
|
|
15535
|
+
}, { categoryPadOffset: i } = hm(e, !0), a = {
|
|
15523
15536
|
type: "scatter",
|
|
15524
15537
|
xKey: "__dummy_x__",
|
|
15525
15538
|
yKey: "__dummy_y__",
|
|
15526
15539
|
data: Mt.value.flatMap((e) => {
|
|
15527
|
-
let t =
|
|
15540
|
+
let t = mm(e.value, At.value || []);
|
|
15528
15541
|
if (t === null) return [];
|
|
15529
15542
|
let n = t + i, r = Number.isFinite(Zt.value) ? Zt.value : 0, a = Ee(R.value?.[0]), o = typeof a == "function" ? a({ value: e.value }) : e.value;
|
|
15530
15543
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
@@ -15586,8 +15599,8 @@ var ym = { style: {
|
|
|
15586
15599
|
oldState: { secondarySeriesField: t?.join(",") || void 0 }
|
|
15587
15600
|
});
|
|
15588
15601
|
}), W(Q, (e, t) => {
|
|
15589
|
-
e?.id &&
|
|
15590
|
-
let n =
|
|
15602
|
+
e?.id && em(e.id).storeBeforeChange && (vt.value ? Ne.value = e.id : Me.value = e.id);
|
|
15603
|
+
let n = em(e?.id || ""), r = em(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? R.value : qp(R.value, L.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, d.rowGroupLimit));
|
|
15591
15604
|
n.seriesFamily === "map" && i.length === 0 && Le.value.some((e) => e.field === "state") && i.push(ds), st(i, R.value) || (R.value = i), n.yAxis.defaultValue ? $.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
15592
15605
|
d.yKey ? $.value = d.yKey : oe.value.length > 0 && ($.value = oe.value[0].value);
|
|
15593
15606
|
}), p("chart-state-changed", {
|
|
@@ -15655,7 +15668,7 @@ var ym = { style: {
|
|
|
15655
15668
|
if (d.serverSideChartHandler) {
|
|
15656
15669
|
let e = ce.filterModel.value, n = m.value?.getColumnDefs() || [];
|
|
15657
15670
|
if (e === null && d.initialGridState) {
|
|
15658
|
-
let t =
|
|
15671
|
+
let t = Ld(d.initialGridState, n, d.enableAdvancedFilter);
|
|
15659
15672
|
e = (d.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
15660
15673
|
}
|
|
15661
15674
|
e ||= {};
|
|
@@ -15737,7 +15750,7 @@ var ym = { style: {
|
|
|
15737
15750
|
];
|
|
15738
15751
|
}
|
|
15739
15752
|
return e;
|
|
15740
|
-
}), { activeCrosslineOverlayGroups: jt, resolvedCrosslineOverlays: Mt, chipSections: Nt, hoveredBenchmarkKey: Pt, hoveredCrosslineTooltip: Ft } =
|
|
15753
|
+
}), { activeCrosslineOverlayGroups: jt, resolvedCrosslineOverlays: Mt, chipSections: Nt, hoveredBenchmarkKey: Pt, hoveredCrosslineTooltip: Ft } = bm({
|
|
15741
15754
|
crosslineOverlayGroups: Ke,
|
|
15742
15755
|
isHistogramWithBuckets: yt,
|
|
15743
15756
|
isHorizontalBarChart: ut,
|
|
@@ -15749,7 +15762,7 @@ var ym = { style: {
|
|
|
15749
15762
|
},
|
|
15750
15763
|
initialActiveOverlayGroupIds: r(() => d.initialActiveOverlayGroupIds)
|
|
15751
15764
|
});
|
|
15752
|
-
O(
|
|
15765
|
+
O(Zu, jt), W(jt, (e) => p("active-overlay-group-ids-change", [...e]), { deep: !0 });
|
|
15753
15766
|
let It = new Set([hs, gs]), Lt = k(void 0), Rt = r(() => Q.value?.id === "map"), zt = r(() => $.value || oe.value[0]?.value || "value"), Bt = r(() => "600px"), Vt = r(() => {
|
|
15754
15767
|
let e = B.value, t = zt.value;
|
|
15755
15768
|
return !e || !t ? [] : (At.value ?? []).filter((t) => {
|
|
@@ -15895,7 +15908,7 @@ var ym = { style: {
|
|
|
15895
15908
|
paddingOuter: yt.value ? 0 : sn.value,
|
|
15896
15909
|
groupPaddingInner: ln.value
|
|
15897
15910
|
}), yt.value && Mt.value.length > 0) {
|
|
15898
|
-
let { categoryPadOffset: e, axisMin: t, axisMax: n } =
|
|
15911
|
+
let { categoryPadOffset: e, axisMin: t, axisMax: n } = hm(At.value?.length || 1, !0);
|
|
15899
15912
|
o.push({
|
|
15900
15913
|
type: "number",
|
|
15901
15914
|
keys: ["__dummy_x__"],
|
|
@@ -15910,7 +15923,7 @@ var ym = { style: {
|
|
|
15910
15923
|
gridLine: { enabled: !1 },
|
|
15911
15924
|
crossLines: Mt.value.map((t) => {
|
|
15912
15925
|
if (!At.value) return null;
|
|
15913
|
-
let n =
|
|
15926
|
+
let n = mm(t.value, At.value);
|
|
15914
15927
|
if (n == null) return null;
|
|
15915
15928
|
let r = Pt.value != null && t.key === Pt.value, i = Pt.value != null && !r;
|
|
15916
15929
|
return {
|
|
@@ -16009,13 +16022,13 @@ var ym = { style: {
|
|
|
16009
16022
|
}
|
|
16010
16023
|
}), T(async () => {
|
|
16011
16024
|
await v(), E.value = d.filterPanelAboveChart;
|
|
16012
|
-
}), (n, r) => (D(), o("div",
|
|
16025
|
+
}), (n, r) => (D(), o("div", xm, [
|
|
16013
16026
|
s("div", { class: y(["pv-stack-16", { "pv-flex": ee.value }]) }, [s("div", {
|
|
16014
16027
|
id: w,
|
|
16015
16028
|
style: x(ee.value ? "flex: 1 1 0" : void 0)
|
|
16016
|
-
}, null, 4), ee.value ? (D(), o("div",
|
|
16029
|
+
}, null, 4), ee.value ? (D(), o("div", Sm, [j(n.$slots, "filter-panel-actions")])) : a("", !0)], 2),
|
|
16017
16030
|
j(n.$slots, "above-chart"),
|
|
16018
|
-
e.hideChart ? a("", !0) : (D(), o("div",
|
|
16031
|
+
e.hideChart ? a("", !0) : (D(), o("div", Cm, [
|
|
16019
16032
|
u(Zn, {
|
|
16020
16033
|
rightIcon: "chevrons-down-up",
|
|
16021
16034
|
label: "Collapse",
|
|
@@ -16027,7 +16040,7 @@ var ym = { style: {
|
|
|
16027
16040
|
onClick: r[0] ||= (e) => Sn(!C.value),
|
|
16028
16041
|
class: y(e.hideChart || C.value ? "pv-hide" : "")
|
|
16029
16042
|
}, null, 8, ["class"]),
|
|
16030
|
-
s("div", { class: y(e.hideChart || !C.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
16043
|
+
s("div", { class: y(e.hideChart || !C.value ? "pv-hide" : "pv-space-between") }, [s("div", wm, [u(qn, {
|
|
16031
16044
|
name: "chart-line",
|
|
16032
16045
|
size: 20,
|
|
16033
16046
|
class: "pv-text-subdued"
|
|
@@ -16041,7 +16054,7 @@ var ym = { style: {
|
|
|
16041
16054
|
onClick: r[1] ||= (e) => Sn(!C.value)
|
|
16042
16055
|
})], 2),
|
|
16043
16056
|
s("div", { class: y(e.hideChart || C.value ? "pv-hide" : "") }, [
|
|
16044
|
-
u(
|
|
16057
|
+
u(fm, {
|
|
16045
16058
|
enablePanel: At.value != null && At.value.length > 0,
|
|
16046
16059
|
chartFilter: e.chartFilter,
|
|
16047
16060
|
rowGroupLimit: Ie.value,
|
|
@@ -16065,7 +16078,7 @@ var ym = { style: {
|
|
|
16065
16078
|
"read-only",
|
|
16066
16079
|
"percent-of-focus-view-y-key"
|
|
16067
16080
|
]),
|
|
16068
|
-
s("div",
|
|
16081
|
+
s("div", Tm, [z(Nt).length > 0 ? (D(), i(Wp, {
|
|
16069
16082
|
key: 0,
|
|
16070
16083
|
sections: z(Nt),
|
|
16071
16084
|
onChipHover: r[2] ||= (e) => Pt.value = e
|
|
@@ -16123,7 +16136,7 @@ var ym = { style: {
|
|
|
16123
16136
|
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", z(Ft).arrowClass]),
|
|
16124
16137
|
"data-variant": "white",
|
|
16125
16138
|
style: x(z(Ft).style)
|
|
16126
|
-
}, [s("div",
|
|
16139
|
+
}, [s("div", Em, [s("div", Dm, P(z(Ft).label), 1), s("div", Om, P(z(Ft).value), 1)])], 6)) : a("", !0)], 4)], 6)), Rt.value ? a("", !0) : (D(), o("div", km, [fe.value ? (D(), o("div", Am, [(D(), i(N(e.emptyChartFilterRenderer)))])) : _n.value ? (D(), o("div", jm, [s("span", null, "Select focus " + P(fn.value) + " to view Visualization. You can select a focus " + P(fn.value) + " by", 1), s("span", Mm, [
|
|
16127
16140
|
r[12] ||= l(" opening the filter dropdown and clicking on the focus icon ", -1),
|
|
16128
16141
|
u(qn, {
|
|
16129
16142
|
name: "focus",
|
|
@@ -16132,8 +16145,8 @@ var ym = { style: {
|
|
|
16132
16145
|
style: { "vertical-align": "middle" }
|
|
16133
16146
|
}),
|
|
16134
16147
|
r[13] ||= l(" on the right hand side. ", -1)
|
|
16135
|
-
])])) : xn.value ? (D(), o("p",
|
|
16136
|
-
rt.value.length > 0 ? (D(), o("div",
|
|
16148
|
+
])])) : xn.value ? (D(), o("p", Nm, P(gn.value), 1)) : a("", !0)]))], 4)]),
|
|
16149
|
+
rt.value.length > 0 ? (D(), o("div", Pm, [(D(!0), o(t, null, A(rt.value, (e) => (D(), o("div", {
|
|
16137
16150
|
key: e.key,
|
|
16138
16151
|
class: "pv-flex",
|
|
16139
16152
|
style: {
|
|
@@ -16152,8 +16165,8 @@ var ym = { style: {
|
|
|
16152
16165
|
overflow: "hidden",
|
|
16153
16166
|
"text-overflow": "ellipsis"
|
|
16154
16167
|
}
|
|
16155
|
-
}, P(e.label), 9,
|
|
16156
|
-
nt.value ? (D(), o("div",
|
|
16168
|
+
}, P(e.label), 9, Fm)]))), 128))])) : a("", !0),
|
|
16169
|
+
nt.value ? (D(), o("div", Im, [s("p", Lm, P(nt.value), 1), u(El, {
|
|
16157
16170
|
variant: "short",
|
|
16158
16171
|
maxPages: Ye.value?.pageCount ?? 1,
|
|
16159
16172
|
modelValue: Je.value + 1,
|
|
@@ -16161,7 +16174,7 @@ var ym = { style: {
|
|
|
16161
16174
|
}, null, 8, ["maxPages", "modelValue"])])) : a("", !0)
|
|
16162
16175
|
], 2)
|
|
16163
16176
|
])),
|
|
16164
|
-
(D(), i(
|
|
16177
|
+
(D(), i(Dp, _({
|
|
16165
16178
|
ref_key: "pvDataTableRef",
|
|
16166
16179
|
ref: h,
|
|
16167
16180
|
key: ae.value
|
|
@@ -16183,7 +16196,7 @@ var ym = { style: {
|
|
|
16183
16196
|
onHandleSettingsIcon: r[9] ||= (e) => p("handle-settings-icon", e),
|
|
16184
16197
|
onFocusUpdate: r[10] ||= (e) => p("focus-update", e)
|
|
16185
16198
|
}), {
|
|
16186
|
-
"top-slot": G(() => [e.enableGroupingToggle && !H.value ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
16199
|
+
"top-slot": G(() => [e.enableGroupingToggle && !H.value ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(Lp, {
|
|
16187
16200
|
key: 0,
|
|
16188
16201
|
groupedModeEnabled: de.value,
|
|
16189
16202
|
tableConfigOptions: d.tableConfigOptions,
|
|
@@ -16208,7 +16221,7 @@ var ym = { style: {
|
|
|
16208
16221
|
]))
|
|
16209
16222
|
]));
|
|
16210
16223
|
}
|
|
16211
|
-
}),
|
|
16224
|
+
}), zm = "Unable to load data", Bm = (e, t = {}) => {
|
|
16212
16225
|
let n = k([]), i = k(!1), a = k(), o = 0, s = async () => {
|
|
16213
16226
|
let t = ++o;
|
|
16214
16227
|
i.value = !0;
|
|
@@ -16238,6 +16251,6 @@ var ym = { style: {
|
|
|
16238
16251
|
};
|
|
16239
16252
|
};
|
|
16240
16253
|
//#endregion
|
|
16241
|
-
export {
|
|
16254
|
+
export { Au as AvailableRowGroupColumnsKey, vs as ColDefDataType, Du as ColumnDisplayOrderKey, zm as DEFAULT_DATA_WIDGET_ERROR_TEXT, Cu as FilterStoreKey, Pu as FirstDataRenderedKey, wu as FocusStoreKey, Eu as GridApiKey, Mu as GroupColumnCellValueColumnKey, Ht as MAX_LABEL_LENGTH, Vt as NO_DATA_OVERLAY_TEXT, Bt as NULL_PLACEHOLDER_VALUE, wt as PitViperAGChartsMonochromeTheme, Ct as PitViperAGChartsMonochromeThemeName, Et as PitViperAGChartsMulticolorTheme, Tt as PitViperAGChartsMulticolorThemeName, cn as PvChart, kn as PvChartWidget, Dp as PvDataTable, Rm as PvDataTableWithChart, Sc as PvDataWidget, Qo as PvMapChart, yu as RumContextKey, _t as SCATTER_MARKER_STROKE, xu as addRumAction, Ld as cleanInitialGridState, ws as colDefContext, Fd as constructAdvancedFilterCondition, Id as convertFilterModelToAdvanced, md as createFocusStore, hf as createPvDataTableFilterStore, Su as deferRumTask, uf as excludeValueFromSetFilter, Hd as filterModelContainsColId, ef as filterModelsEqual, hn as getChartScrollContentStyle, mn as getChartScrollOverflowStyle, pn as getScrollableChartMinHeight, of as getSelectedValues, rf as getSelectedValuesFromAdvancedFilterModel, Jd as getSelectedValuesFromFilterModel, af as getSelectedValuesFromFilterModelByColId, Yd as isAdvancedFilterModel, Os as isColDefNumericDataType, Zd as isFilterModelEmpty, Fs as mapColsToColumnV0, ys as mapEntityTypeToHeaderIcon, Pd as mapFilterBasedOnColDef, tf as mergeAdvancedFilterCondition, Ud as mergeFilterModels, gt as multicolorFills, Mt as preloadAgCharts, Ps as processRowGroupCols, gf as providePvDataTableFilterStore, sf as removeColumnFilter, nf as removeColumnFromAdvancedFilter, Ss as truncateValue, lf as updateMultiOrSetFilter, cf as updateSetFilter, vf as usePvDataTableFilterStore, Bm as usePvDataWidgetData, bu as useRumContext };
|
|
16242
16255
|
|
|
16243
16256
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|