@turquoisehealth/pit-viper 2.264.1 → 2.264.2-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y-v3.css +6 -0
- package/_site/assets/css/pit-viper-a11y.css +6 -0
- package/_site/assets/css/pit-viper-consumer.css +6 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +5 -0
- package/_site/assets/css/pit-viper-v2.css +6 -0
- package/_site/assets/css/pit-viper-v3.css +6 -0
- package/_site/assets/css/pit-viper.css +6 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-prompt-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-question-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/PvPromptInput.vue.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/types.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/ai/PvQuestion/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +2 -2
- package/pv-components/dist/vue/ai/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +489 -325
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1102 -1096
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +599 -593
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +875 -869
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +829 -572
- package/pv-components/dist/web/components/pv-question/pv-question.js +387 -373
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +382 -376
- package/pv-components/dist/web/pv-components.iife.js +36 -36
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -7951,9 +7951,10 @@ Ic.Primary, Fc.Horizontal, Lc.Blue;
|
|
|
7951
7951
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
7952
7952
|
var Rc = [
|
|
7953
7953
|
"data-style",
|
|
7954
|
+
"data-wrap",
|
|
7954
7955
|
"disabled",
|
|
7955
7956
|
"title"
|
|
7956
|
-
], zc =
|
|
7957
|
+
], zc = /* @__PURE__ */ d({
|
|
7957
7958
|
__name: "PvSuggestionTag",
|
|
7958
7959
|
props: {
|
|
7959
7960
|
size: { default: "md" },
|
|
@@ -7964,6 +7965,10 @@ var Rc = [
|
|
|
7964
7965
|
disabled: {
|
|
7965
7966
|
type: Boolean,
|
|
7966
7967
|
default: !1
|
|
7968
|
+
},
|
|
7969
|
+
wrap: {
|
|
7970
|
+
type: Boolean,
|
|
7971
|
+
default: !1
|
|
7967
7972
|
}
|
|
7968
7973
|
},
|
|
7969
7974
|
emits: ["handle-click"],
|
|
@@ -7981,6 +7986,7 @@ var Rc = [
|
|
|
7981
7986
|
"data-testid": "pv-suggestion-tag",
|
|
7982
7987
|
style: { "max-width": "100%" },
|
|
7983
7988
|
"data-style": e.rounded ? "rounded" : void 0,
|
|
7989
|
+
"data-wrap": e.wrap ? "true" : void 0,
|
|
7984
7990
|
disabled: e.disabled,
|
|
7985
7991
|
title: e.label
|
|
7986
7992
|
}, [e.icon ? (D(), i(Jn, {
|
|
@@ -7989,13 +7995,13 @@ var Rc = [
|
|
|
7989
7995
|
name: e.icon,
|
|
7990
7996
|
size: 12,
|
|
7991
7997
|
class: y(e.iconClasses)
|
|
7992
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
7998
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", { class: y({ "pv-truncate": !e.wrap }) }, P(e.label), 3)], 10, Rc));
|
|
7993
7999
|
}
|
|
7994
8000
|
});
|
|
7995
8001
|
nt.extend(at), nt.extend(rt), nt.extend(it);
|
|
7996
8002
|
//#endregion
|
|
7997
8003
|
//#region src/composables/useResizable.ts
|
|
7998
|
-
var
|
|
8004
|
+
var Bc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Vc = (e, t) => {
|
|
7999
8005
|
if (e == null || e === "") return;
|
|
8000
8006
|
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
|
|
8001
8007
|
let n = e.trim();
|
|
@@ -8005,8 +8011,8 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8005
8011
|
}
|
|
8006
8012
|
let r = Number.parseFloat(n);
|
|
8007
8013
|
return Number.isFinite(r) ? r : void 0;
|
|
8008
|
-
},
|
|
8009
|
-
let t = k(!1), n = k(0), i = null, a = 0, o = 0, s = null, c = r(() => R(e.edge) ?? "right"), l = r(() =>
|
|
8014
|
+
}, Hc = 4, Uc = (e) => {
|
|
8015
|
+
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) => {
|
|
8010
8016
|
!t.value && r > f.value && (s = r), n.value = r, e.onResize?.(r);
|
|
8011
8017
|
}, x = (t) => {
|
|
8012
8018
|
n.value = t ?? e.readSize();
|
|
@@ -8035,7 +8041,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8035
8041
|
t.preventDefault(), S();
|
|
8036
8042
|
return;
|
|
8037
8043
|
}
|
|
8038
|
-
let n = l.value === "horizontal", r = (t.shiftKey ? m.value *
|
|
8044
|
+
let n = l.value === "horizontal", r = (t.shiftKey ? m.value * Hc : m.value) * _.value, i = e.readSize(), a;
|
|
8039
8045
|
switch (t.key) {
|
|
8040
8046
|
case "ArrowLeft":
|
|
8041
8047
|
n && (a = i - r);
|
|
@@ -8089,7 +8095,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8089
8095
|
syncSize: x,
|
|
8090
8096
|
toggleCollapsed: S
|
|
8091
8097
|
};
|
|
8092
|
-
},
|
|
8098
|
+
}, Wc = /* @__PURE__ */ d({
|
|
8093
8099
|
__name: "PvResizeHandle",
|
|
8094
8100
|
props: /* @__PURE__ */ g({
|
|
8095
8101
|
ariaLabel: { default: "Resize" },
|
|
@@ -8123,7 +8129,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8123
8129
|
"resize-start"
|
|
8124
8130
|
], ["update:size"]),
|
|
8125
8131
|
setup(e, { emit: t }) {
|
|
8126
|
-
let n = e, i = V(e, "size"), a = t, s = re("handle"), c = k(null), l = !1, u = r(() =>
|
|
8132
|
+
let n = e, i = V(e, "size"), a = t, s = re("handle"), c = k(null), l = !1, u = r(() => Bc(n.edge)), d = (e) => {
|
|
8127
8133
|
let t = e?.parentNode ?? null;
|
|
8128
8134
|
for (; t;) {
|
|
8129
8135
|
if (t.nodeType === 1) return t;
|
|
@@ -8141,8 +8147,8 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8141
8147
|
}, b = r(() => {
|
|
8142
8148
|
let e = u.value === "horizontal" ? m.value : p.value;
|
|
8143
8149
|
return e > 0 ? e : y();
|
|
8144
|
-
}), x = r(() =>
|
|
8145
|
-
let e =
|
|
8150
|
+
}), x = r(() => Vc(n.minSize, b.value) ?? 0), S = r(() => Vc(n.collapsedSize, b.value) ?? 0), C = r(() => {
|
|
8151
|
+
let e = Vc(n.maxSize, b.value);
|
|
8146
8152
|
return e !== void 0 && e > 0 ? e : b.value > 0 ? b.value : u.value === "horizontal" ? g.value : h.value;
|
|
8147
8153
|
}), w = (e) => n.collapsible && e === S.value ? e : Math.max(x.value, Math.min(C.value, e)), E = () => {
|
|
8148
8154
|
let e = c.value;
|
|
@@ -8180,10 +8186,10 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8180
8186
|
} catch {}
|
|
8181
8187
|
}, ee = (e) => {
|
|
8182
8188
|
A(e), i.value = e;
|
|
8183
|
-
}, { handleProps: P, isResizing: F, syncSize: I } =
|
|
8189
|
+
}, { handleProps: P, isResizing: F, syncSize: I } = Uc({
|
|
8184
8190
|
collapsedSize: S,
|
|
8185
8191
|
collapsible: () => n.collapsible,
|
|
8186
|
-
defaultSize: () =>
|
|
8192
|
+
defaultSize: () => Vc(n.defaultSize, b.value) ?? x.value,
|
|
8187
8193
|
disabled: () => n.disabled,
|
|
8188
8194
|
edge: () => n.edge,
|
|
8189
8195
|
keyboardStep: () => n.keyboardStep,
|
|
@@ -8227,7 +8233,7 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8227
8233
|
let e = i.value === void 0 ? M() : void 0, t = i.value ?? (e?.collapsed && n.collapsible ? n.collapsedSize : e?.size) ?? n.defaultSize;
|
|
8228
8234
|
if (typeof t == "string" && t.trim().endsWith("%") && b.value <= 0) return;
|
|
8229
8235
|
l = !0;
|
|
8230
|
-
let r =
|
|
8236
|
+
let r = Vc(t, b.value);
|
|
8231
8237
|
if (r === void 0) {
|
|
8232
8238
|
let e = O(), t = e === 0 ? 0 : w(e);
|
|
8233
8239
|
t !== e && ee(t), I(t);
|
|
@@ -8245,31 +8251,31 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8245
8251
|
"data-testid": "pv-resize-handle"
|
|
8246
8252
|
}, z(P)), null, 16));
|
|
8247
8253
|
}
|
|
8248
|
-
}),
|
|
8254
|
+
}), Gc = {
|
|
8249
8255
|
key: 1,
|
|
8250
8256
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
8251
8257
|
style: { "flex-shrink": "0" }
|
|
8252
|
-
},
|
|
8258
|
+
}, Kc = {
|
|
8253
8259
|
class: "pv-flex-vertical pv-stack-16",
|
|
8254
8260
|
style: { "--flex-align": "flex-start" }
|
|
8255
|
-
},
|
|
8261
|
+
}, qc = { class: "pv-flex pv-full-width" }, Jc = { class: "pv-full-width pv-heading-3" }, Yc = {
|
|
8256
8262
|
key: 0,
|
|
8257
8263
|
class: "pv-text-body-md"
|
|
8258
|
-
},
|
|
8264
|
+
}, Xc = {
|
|
8259
8265
|
key: 0,
|
|
8260
8266
|
class: "pv-inset-inline-16"
|
|
8261
|
-
},
|
|
8267
|
+
}, Zc = {
|
|
8262
8268
|
class: "pv-inset-inline-16",
|
|
8263
8269
|
style: {
|
|
8264
8270
|
flex: "1",
|
|
8265
8271
|
"overflow-y": "auto",
|
|
8266
8272
|
"min-height": "0"
|
|
8267
8273
|
}
|
|
8268
|
-
},
|
|
8274
|
+
}, Qc = {
|
|
8269
8275
|
key: 2,
|
|
8270
8276
|
class: "pv-inset-squish-12 pv-border-top",
|
|
8271
8277
|
style: { "flex-shrink": "0" }
|
|
8272
|
-
},
|
|
8278
|
+
}, $c = /* @__PURE__ */ d({
|
|
8273
8279
|
__name: "PvDrawer",
|
|
8274
8280
|
props: /* @__PURE__ */ g({
|
|
8275
8281
|
closeOnClickOutside: {
|
|
@@ -8331,15 +8337,15 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8331
8337
|
height: "100%"
|
|
8332
8338
|
}
|
|
8333
8339
|
}, [
|
|
8334
|
-
e.resizable ? (D(), i(
|
|
8340
|
+
e.resizable ? (D(), i(Wc, {
|
|
8335
8341
|
key: 0,
|
|
8336
8342
|
size: p.value,
|
|
8337
8343
|
"onUpdate:size": c[0] ||= (e) => p.value = e,
|
|
8338
8344
|
ariaLabel: "Resize drawer",
|
|
8339
|
-
defaultSize: z(
|
|
8345
|
+
defaultSize: z(Vc)(e.defaultWidth, z(d)) ?? Math.min(600, z(d)),
|
|
8340
8346
|
edge: e.resizeEdge,
|
|
8341
|
-
maxSize: z(
|
|
8342
|
-
minSize: z(
|
|
8347
|
+
maxSize: z(Vc)(e.maxWidth, z(d)) ?? z(d),
|
|
8348
|
+
minSize: z(Vc)(e.minWidth, z(d)),
|
|
8343
8349
|
storageKey: e.resizeStorageKey
|
|
8344
8350
|
}, null, 8, [
|
|
8345
8351
|
"size",
|
|
@@ -8349,30 +8355,30 @@ var Vc = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", Hc =
|
|
|
8349
8355
|
"minSize",
|
|
8350
8356
|
"storageKey"
|
|
8351
8357
|
])) : a("", !0),
|
|
8352
|
-
e.hideHeader ? a("", !0) : (D(), o("div",
|
|
8358
|
+
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(Qn, {
|
|
8353
8359
|
"left-icon": "close",
|
|
8354
8360
|
ariaLabel: "Close",
|
|
8355
8361
|
size: "md",
|
|
8356
8362
|
onClick: h,
|
|
8357
8363
|
"data-testid": "pv-side-panel-close-button",
|
|
8358
8364
|
variant: "ghost"
|
|
8359
|
-
})]), e.subheader ? (D(), o("span",
|
|
8365
|
+
})]), e.subheader ? (D(), o("span", Yc, P(e.subheader), 1)) : a("", !0)]), e.showSearchbar && f.value !== void 0 ? (D(), o("div", Xc, [u(Na, _({
|
|
8360
8366
|
"data-testid": "pv-side-panel-input-search",
|
|
8361
8367
|
modelValue: f.value,
|
|
8362
8368
|
"onUpdate:modelValue": c[1] ||= (e) => f.value = e
|
|
8363
8369
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))])),
|
|
8364
|
-
s("div",
|
|
8365
|
-
n.$slots.footer ? (D(), o("div",
|
|
8370
|
+
s("div", Zc, [j(n.$slots, "default")]),
|
|
8371
|
+
n.$slots.footer ? (D(), o("div", Qc, [j(n.$slots, "footer")])) : a("", !0)
|
|
8366
8372
|
], 2));
|
|
8367
8373
|
}
|
|
8368
8374
|
});
|
|
8369
8375
|
Math.random().toString();
|
|
8370
8376
|
//#endregion
|
|
8371
8377
|
//#region src/components/base/PvMenu/PvMenuControlPanel.vue?vue&type=script&setup=true&lang.ts
|
|
8372
|
-
var
|
|
8378
|
+
var el = {
|
|
8373
8379
|
"data-testid": "pv-select-menu-control-panel",
|
|
8374
8380
|
class: "pv-flex pv-space-between"
|
|
8375
|
-
},
|
|
8381
|
+
}, tl = /* @__PURE__ */ d({
|
|
8376
8382
|
__name: "PvMenuControlPanel",
|
|
8377
8383
|
props: {
|
|
8378
8384
|
variant: {},
|
|
@@ -8387,7 +8393,7 @@ var tl = {
|
|
|
8387
8393
|
],
|
|
8388
8394
|
setup(e) {
|
|
8389
8395
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
8390
|
-
return (n, r) => (D(), o("div",
|
|
8396
|
+
return (n, r) => (D(), o("div", el, [e.variant === "select-clear" ? (D(), o(t, { key: 0 }, [u(Qn, {
|
|
8391
8397
|
variant: "ghost",
|
|
8392
8398
|
"data-testid": "pv-select-menu-item-select-all",
|
|
8393
8399
|
"data-dd-action-name": i.value,
|
|
@@ -8414,25 +8420,25 @@ var tl = {
|
|
|
8414
8420
|
disabled: e.disabled
|
|
8415
8421
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
8416
8422
|
}
|
|
8417
|
-
}),
|
|
8423
|
+
}), nl = ["data-dd-action-name"], rl = {
|
|
8418
8424
|
key: 1,
|
|
8419
8425
|
class: "pv-inset-square-8"
|
|
8420
|
-
},
|
|
8426
|
+
}, il = {
|
|
8421
8427
|
key: 1,
|
|
8422
8428
|
class: "pv-text-body-sm pv-inset-inline",
|
|
8423
8429
|
style: {
|
|
8424
8430
|
color: "var(--color-text-quaternary, #89989b)",
|
|
8425
8431
|
"--inset-size": "8px"
|
|
8426
8432
|
}
|
|
8427
|
-
},
|
|
8433
|
+
}, al = {
|
|
8428
8434
|
key: 2,
|
|
8429
8435
|
class: "pv-border-top",
|
|
8430
8436
|
style: { margin: "8px 0" }
|
|
8431
|
-
},
|
|
8437
|
+
}, ol = {
|
|
8432
8438
|
key: 3,
|
|
8433
8439
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
8434
8440
|
style: { "justify-content": "center" }
|
|
8435
|
-
},
|
|
8441
|
+
}, sl = { key: 0 }, cl = /* @__PURE__ */ d({
|
|
8436
8442
|
__name: "PvMultiSelectButton",
|
|
8437
8443
|
props: /* @__PURE__ */ g({
|
|
8438
8444
|
companyLogo: {},
|
|
@@ -8727,10 +8733,10 @@ var tl = {
|
|
|
8727
8733
|
"onUpdate:modelValue": r[1] ||= (e) => R.value = e,
|
|
8728
8734
|
class: "pv-stack-4",
|
|
8729
8735
|
placeholder: e.searchPlaceholder
|
|
8730
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
8731
|
-
n.$slots.header || z(ve) ? (D(), o("div",
|
|
8736
|
+
}, null, 8, ["model-value", "placeholder"])], 8, nl)),
|
|
8737
|
+
n.$slots.header || z(ve) ? (D(), o("div", rl, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
8732
8738
|
q.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(Y.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8733
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
8739
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", il, P(t), 1)),
|
|
8734
8740
|
u(Ko, {
|
|
8735
8741
|
selectedItems: K.value,
|
|
8736
8742
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
@@ -8757,7 +8763,7 @@ var tl = {
|
|
|
8757
8763
|
"enableCascadeSelection",
|
|
8758
8764
|
"hasMoreOptions"
|
|
8759
8765
|
]),
|
|
8760
|
-
Y.value && s !== Y.value.length - 1 ? (D(), o("div",
|
|
8766
|
+
Y.value && s !== Y.value.length - 1 ? (D(), o("div", al)) : a("", !0)
|
|
8761
8767
|
]))), 128)) : (D(), i(Ko, {
|
|
8762
8768
|
key: 1,
|
|
8763
8769
|
selectedItems: K.value,
|
|
@@ -8783,7 +8789,7 @@ var tl = {
|
|
|
8783
8789
|
"isSeeMoreLoading",
|
|
8784
8790
|
"hasMoreOptions"
|
|
8785
8791
|
]))], 64)) : a("", !0),
|
|
8786
|
-
e.isLoading ? (D(), o("div",
|
|
8792
|
+
e.isLoading ? (D(), o("div", ol, [u(Ot, { variant: "dark" }), e.loadingText ? (D(), o("span", sl, P(e.loadingText), 1)) : a("", !0)])) : q.value.length === 0 ? (D(), o(t, { key: 4 }, [z(ye) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(Za, { key: 1 }))], 64)) : a("", !0),
|
|
8787
8793
|
z(be) || e.menuActionsVariant ? (D(), o("div", {
|
|
8788
8794
|
key: 5,
|
|
8789
8795
|
class: y(["pv-sticky pv-surface pv-border-top pv-inset-square-8", { "pv-flow-8": e.footerPosition === "below-actions" }]),
|
|
@@ -8793,7 +8799,7 @@ var tl = {
|
|
|
8793
8799
|
}
|
|
8794
8800
|
}, [
|
|
8795
8801
|
z(be) && e.footerPosition === "above-actions" ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0),
|
|
8796
|
-
e.menuActionsVariant ? (D(), i(
|
|
8802
|
+
e.menuActionsVariant ? (D(), i(tl, {
|
|
8797
8803
|
key: 1,
|
|
8798
8804
|
variant: e.menuActionsVariant,
|
|
8799
8805
|
disabled: e.isLoading,
|
|
@@ -8813,16 +8819,16 @@ var tl = {
|
|
|
8813
8819
|
_: 3
|
|
8814
8820
|
}, 16, ["modelValue", "offset"]));
|
|
8815
8821
|
}
|
|
8816
|
-
}),
|
|
8822
|
+
}), ll = ["id"], ul = {
|
|
8817
8823
|
key: 0,
|
|
8818
8824
|
class: "pv-sortable-list-divider-container"
|
|
8819
|
-
},
|
|
8825
|
+
}, dl = ["data-label"], fl = ["onDrop"], pl = {
|
|
8820
8826
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-sortable-list-placeholder-dropzone",
|
|
8821
8827
|
style: { "--flex-justify": "center" }
|
|
8822
|
-
},
|
|
8828
|
+
}, ml = { class: "pv-text-body-sm pv-text-tertiary" }, hl = { style: { "max-width": "220px" } }, gl = {
|
|
8823
8829
|
key: 1,
|
|
8824
8830
|
class: "pv-sortable-list-button-placeholder"
|
|
8825
|
-
},
|
|
8831
|
+
}, _l = "--divider--", vl = "placeholder-", yl = /* @__PURE__ */ d({
|
|
8826
8832
|
__name: "PvSortableList",
|
|
8827
8833
|
props: /* @__PURE__ */ g({
|
|
8828
8834
|
options: { default: () => [] },
|
|
@@ -8847,11 +8853,11 @@ var tl = {
|
|
|
8847
8853
|
let t = c.value.filter(l), r = e.filter((e) => !l(e));
|
|
8848
8854
|
return [...t, ...r].slice(0, n.activeOptionLimit || Infinity);
|
|
8849
8855
|
}, p = {
|
|
8850
|
-
id:
|
|
8856
|
+
id: _l,
|
|
8851
8857
|
text: "",
|
|
8852
8858
|
disabled: !0
|
|
8853
8859
|
}, 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) => ({
|
|
8854
|
-
id: `${
|
|
8860
|
+
id: `${vl}${t}`,
|
|
8855
8861
|
text: "",
|
|
8856
8862
|
disabled: !0,
|
|
8857
8863
|
isPlaceholder: !0
|
|
@@ -8865,25 +8871,25 @@ var tl = {
|
|
|
8865
8871
|
];
|
|
8866
8872
|
}), _ = re("sortableListRef"), v = re("containerRef"), b = null, S = null, C = !1, w = () => {
|
|
8867
8873
|
if (!_.value) return c.value;
|
|
8868
|
-
let e = Array.from(_.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
8869
|
-
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(
|
|
8874
|
+
let e = Array.from(_.value.children).map((e) => e.id), t = e.findIndex((e) => e === _l);
|
|
8875
|
+
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);
|
|
8870
8876
|
};
|
|
8871
8877
|
T(() => {
|
|
8872
8878
|
_.value && (b = new ot(_.value, {
|
|
8873
8879
|
animation: 200,
|
|
8874
|
-
filter: `#${
|
|
8880
|
+
filter: `#${_l}, [id^="placeholder-"], .pv-sortable-locked`,
|
|
8875
8881
|
dragoverBubble: !0,
|
|
8876
8882
|
onStart: (e) => {
|
|
8877
8883
|
S = e.item, C = !1;
|
|
8878
8884
|
},
|
|
8879
8885
|
onMove: (e) => {
|
|
8880
8886
|
let t = e.related;
|
|
8881
|
-
if (t?.id?.startsWith(
|
|
8887
|
+
if (t?.id?.startsWith(vl)) return !1;
|
|
8882
8888
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
8883
8889
|
if (!r || n.options.find((e) => e.id === t?.id && l(e))) return !1;
|
|
8884
8890
|
if (M(r)) return !0;
|
|
8885
8891
|
if (N.value) return !1;
|
|
8886
|
-
if (t?.id ===
|
|
8892
|
+
if (t?.id === _l) return !0;
|
|
8887
8893
|
let i = n.options.find((e) => e.id === t?.id);
|
|
8888
8894
|
return !!i && M(i);
|
|
8889
8895
|
},
|
|
@@ -8939,16 +8945,16 @@ var tl = {
|
|
|
8939
8945
|
key: e.id,
|
|
8940
8946
|
id: e.id,
|
|
8941
8947
|
class: "pv-stack-4"
|
|
8942
|
-
}, [e.id ===
|
|
8948
|
+
}, [e.id === _l ? (D(), o("div", ul, [s("div", {
|
|
8943
8949
|
class: "pv-sortable-list-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
8944
8950
|
"data-label": N.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
8945
|
-
}, null, 8,
|
|
8951
|
+
}, null, 8, dl)])) : e.id.includes(vl) ? (D(), o("div", {
|
|
8946
8952
|
key: 1,
|
|
8947
8953
|
class: "pv-sortable-list-placeholder-zone",
|
|
8948
8954
|
onDragover: r[0] ||= (e) => O(e),
|
|
8949
8955
|
onDragleave: r[1] ||= (e) => k(e),
|
|
8950
8956
|
onDrop: (t) => j(t, parseInt(e.id.split("-")[1]) + 1)
|
|
8951
|
-
}, [s("div",
|
|
8957
|
+
}, [s("div", pl, [s("span", ml, P(n.placeholderText), 1)])], 40, fl)) : (D(), o("div", {
|
|
8952
8958
|
key: 2,
|
|
8953
8959
|
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" : ""]]),
|
|
8954
8960
|
style: x(I(e))
|
|
@@ -8974,7 +8980,7 @@ var tl = {
|
|
|
8974
8980
|
class: "pv-text-tertiary",
|
|
8975
8981
|
name: "info-circle"
|
|
8976
8982
|
})]),
|
|
8977
|
-
content: G(() => [s("div",
|
|
8983
|
+
content: G(() => [s("div", hl, P(d(e)), 1)]),
|
|
8978
8984
|
_: 2
|
|
8979
8985
|
}, 1024)) : a("", !0)
|
|
8980
8986
|
], 2), !F(e) && !l(e) ? (D(), i(Qn, {
|
|
@@ -8991,20 +8997,20 @@ var tl = {
|
|
|
8991
8997
|
"style",
|
|
8992
8998
|
"class",
|
|
8993
8999
|
"onClick"
|
|
8994
|
-
])) : (D(), o("div",
|
|
9000
|
+
])) : (D(), o("div", gl))], 6))], 8, ll))), 128))], 512)], 512));
|
|
8995
9001
|
}
|
|
8996
|
-
}),
|
|
9002
|
+
}), bl = {
|
|
8997
9003
|
short: 5,
|
|
8998
9004
|
long: 7
|
|
8999
|
-
},
|
|
9000
|
-
if (n <=
|
|
9005
|
+
}, xl = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
9006
|
+
if (n <= bl[e]) return Array.from({ length: n }, (e, t) => ({
|
|
9001
9007
|
page: t + 1,
|
|
9002
9008
|
label: (t + 1).toString()
|
|
9003
9009
|
}));
|
|
9004
9010
|
let r = [{
|
|
9005
9011
|
page: 1,
|
|
9006
9012
|
label: "1"
|
|
9007
|
-
}], i =
|
|
9013
|
+
}], i = bl[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
9008
9014
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
9009
9015
|
page: 0,
|
|
9010
9016
|
label: "..."
|
|
@@ -9023,11 +9029,11 @@ var tl = {
|
|
|
9023
9029
|
page: n,
|
|
9024
9030
|
label: n.toString()
|
|
9025
9031
|
}), r;
|
|
9026
|
-
} }),
|
|
9032
|
+
} }), Sl = ["data-style"], Cl = ["data-testid", "aria-current"], wl = {
|
|
9027
9033
|
key: 0,
|
|
9028
9034
|
class: "dots-button pv-text-subdued",
|
|
9029
9035
|
disabled: ""
|
|
9030
|
-
},
|
|
9036
|
+
}, Tl = ["onClick"], El = /* @__PURE__ */ cn(/* @__PURE__ */ d({
|
|
9031
9037
|
__name: "PvPagination",
|
|
9032
9038
|
props: /* @__PURE__ */ g({
|
|
9033
9039
|
size: { default: "lg" },
|
|
@@ -9040,7 +9046,7 @@ var tl = {
|
|
|
9040
9046
|
}),
|
|
9041
9047
|
emits: ["update:modelValue"],
|
|
9042
9048
|
setup(e) {
|
|
9043
|
-
let { getPaginations: n } =
|
|
9049
|
+
let { getPaginations: n } = xl({ variant: e.variant }), r = V(e, "modelValue");
|
|
9044
9050
|
return (i, a) => (D(), o("ol", {
|
|
9045
9051
|
role: "list",
|
|
9046
9052
|
class: "pv-pagination",
|
|
@@ -9062,10 +9068,10 @@ var tl = {
|
|
|
9062
9068
|
key: e.page,
|
|
9063
9069
|
"data-testid": `pagination-button-${e.page}`,
|
|
9064
9070
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
9065
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
9071
|
+
}, [e.label === "..." ? (D(), o("button", wl, P(e.label), 1)) : (D(), o("button", {
|
|
9066
9072
|
key: 1,
|
|
9067
9073
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
9068
|
-
}, P(e.label), 9,
|
|
9074
|
+
}, P(e.label), 9, Tl))], 8, Cl))), 128)),
|
|
9069
9075
|
s("li", null, [u(Qn, {
|
|
9070
9076
|
"data-testid": "pagination-right-arrow-icon",
|
|
9071
9077
|
disabled: r.value === e.maxPages,
|
|
@@ -9074,9 +9080,9 @@ var tl = {
|
|
|
9074
9080
|
variant: "ghost",
|
|
9075
9081
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
9076
9082
|
}, null, 8, ["disabled"])])
|
|
9077
|
-
], 8,
|
|
9083
|
+
], 8, Sl));
|
|
9078
9084
|
}
|
|
9079
|
-
}), [["__scopeId", "data-v-92e78cd3"]]),
|
|
9085
|
+
}), [["__scopeId", "data-v-92e78cd3"]]), Dl = /* @__PURE__ */ d({
|
|
9080
9086
|
__name: "PvSkeleton",
|
|
9081
9087
|
props: {
|
|
9082
9088
|
size: { default: "md" },
|
|
@@ -9114,7 +9120,7 @@ Math.random().toString(), new Intl.NumberFormat("en-US", {
|
|
|
9114
9120
|
});
|
|
9115
9121
|
//#endregion
|
|
9116
9122
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
9117
|
-
var
|
|
9123
|
+
var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" && !!e, Al = (e) => {
|
|
9118
9124
|
try {
|
|
9119
9125
|
let t = JSON.parse(decodeURIComponent(e));
|
|
9120
9126
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -9128,7 +9134,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9128
9134
|
} catch {
|
|
9129
9135
|
return [];
|
|
9130
9136
|
}
|
|
9131
|
-
},
|
|
9137
|
+
}, jl = (e) => {
|
|
9132
9138
|
if (!e.startsWith("__")) return null;
|
|
9133
9139
|
let t = e.slice(2).split("__");
|
|
9134
9140
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -9141,68 +9147,68 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9141
9147
|
pairs: n,
|
|
9142
9148
|
value: n[0].value
|
|
9143
9149
|
};
|
|
9144
|
-
},
|
|
9150
|
+
}, Ml = (e) => {
|
|
9145
9151
|
if (e == null) return null;
|
|
9146
|
-
if (!e.startsWith(
|
|
9152
|
+
if (!e.startsWith(Ol)) return jl(e) ?? {
|
|
9147
9153
|
pairs: [],
|
|
9148
9154
|
value: e
|
|
9149
9155
|
};
|
|
9150
|
-
let t =
|
|
9156
|
+
let t = Al(e.slice(32));
|
|
9151
9157
|
return {
|
|
9152
9158
|
field: t[0]?.field,
|
|
9153
9159
|
pairs: t,
|
|
9154
9160
|
value: t[0]?.value ?? e
|
|
9155
9161
|
};
|
|
9156
|
-
},
|
|
9162
|
+
}, 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) => {
|
|
9157
9163
|
let t = e;
|
|
9158
9164
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
9159
|
-
},
|
|
9165
|
+
}, Ll = (e) => {
|
|
9160
9166
|
let t = e;
|
|
9161
|
-
return
|
|
9167
|
+
return Il(e) ? {
|
|
9162
9168
|
...t,
|
|
9163
|
-
conditions: (t.conditions ?? []).map(
|
|
9169
|
+
conditions: (t.conditions ?? []).map(Ll)
|
|
9164
9170
|
} : { ...t };
|
|
9165
|
-
},
|
|
9171
|
+
}, Rl = (e, t) => {
|
|
9166
9172
|
if (!e) return null;
|
|
9167
9173
|
let n = t instanceof Set ? t : new Set(t);
|
|
9168
|
-
if (!n.size) return
|
|
9169
|
-
if (!
|
|
9174
|
+
if (!n.size) return Ll(e);
|
|
9175
|
+
if (!Il(e)) {
|
|
9170
9176
|
let t = e;
|
|
9171
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
9177
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Ll(e);
|
|
9172
9178
|
}
|
|
9173
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
9179
|
+
let r = e, i = (r.conditions ?? []).map((e) => Rl(e, n)).filter((e) => !!e);
|
|
9174
9180
|
return i.length ? i.length === 1 ? i[0] : {
|
|
9175
9181
|
...r,
|
|
9176
9182
|
conditions: i
|
|
9177
9183
|
} : null;
|
|
9178
|
-
},
|
|
9184
|
+
}, zl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(zl)] : [], Bl = (e) => e ? e.children?.length ? e.children.flatMap(Bl) : [e.field] : [], Vl = (e) => {
|
|
9179
9185
|
let t = e?.context ?? {};
|
|
9180
|
-
return t.aggregateFieldHierarchy ?
|
|
9181
|
-
},
|
|
9186
|
+
return t.aggregateFieldHierarchy ? zl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
9187
|
+
}, Hl = (e) => {
|
|
9182
9188
|
let t = e?.context ?? {};
|
|
9183
9189
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
9184
|
-
},
|
|
9190
|
+
}, Ul = (e, t) => {
|
|
9185
9191
|
for (let n of e ?? []) {
|
|
9186
9192
|
if (!n) continue;
|
|
9187
9193
|
if (n.value === t) return n;
|
|
9188
|
-
let e =
|
|
9194
|
+
let e = Ul(n.children, t);
|
|
9189
9195
|
if (e) return e;
|
|
9190
9196
|
}
|
|
9191
|
-
},
|
|
9192
|
-
let n =
|
|
9197
|
+
}, Wl = (e, t) => {
|
|
9198
|
+
let n = Ul(t, e), r = n ? Pl(n, "") : void 0, i = n ? Nl(n) : null;
|
|
9193
9199
|
if (r && i !== null) return {
|
|
9194
9200
|
field: r,
|
|
9195
9201
|
value: i
|
|
9196
9202
|
};
|
|
9197
|
-
let a =
|
|
9203
|
+
let a = Ml(e);
|
|
9198
9204
|
return {
|
|
9199
9205
|
field: a?.field,
|
|
9200
9206
|
value: a?.value ?? e
|
|
9201
9207
|
};
|
|
9202
|
-
},
|
|
9208
|
+
}, Gl = (e, t, n) => {
|
|
9203
9209
|
let r = (e) => {
|
|
9204
9210
|
if (!e) return;
|
|
9205
|
-
let i =
|
|
9211
|
+
let i = Pl(e, ""), a = Nl(e);
|
|
9206
9212
|
if (i === t && a === n) return e.value;
|
|
9207
9213
|
for (let t of e.children ?? []) {
|
|
9208
9214
|
let e = r(t);
|
|
@@ -9214,9 +9220,9 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9214
9220
|
if (e) return e;
|
|
9215
9221
|
}
|
|
9216
9222
|
return `__${t}__${n}`;
|
|
9217
|
-
},
|
|
9223
|
+
}, Kl = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...Kl(e.children)]), ql = (e, t) => {
|
|
9218
9224
|
if (e.state !== "selected") return null;
|
|
9219
|
-
let { field: n, value: r } =
|
|
9225
|
+
let { field: n, value: r } = Wl(e.id, t);
|
|
9220
9226
|
if (!n) return null;
|
|
9221
9227
|
let i = [{
|
|
9222
9228
|
colId: n,
|
|
@@ -9224,8 +9230,8 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9224
9230
|
filterType: "text",
|
|
9225
9231
|
type: "equals"
|
|
9226
9232
|
}];
|
|
9227
|
-
for (let n of
|
|
9228
|
-
let e =
|
|
9233
|
+
for (let n of Kl(e.children)) {
|
|
9234
|
+
let e = Wl(n.id, t);
|
|
9229
9235
|
e.field && i.push({
|
|
9230
9236
|
colId: e.field,
|
|
9231
9237
|
filter: e.value,
|
|
@@ -9238,10 +9244,10 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9238
9244
|
filterType: "join",
|
|
9239
9245
|
type: "AND"
|
|
9240
9246
|
};
|
|
9241
|
-
},
|
|
9242
|
-
let t =
|
|
9247
|
+
}, Jl = (e) => {
|
|
9248
|
+
let t = Vl(e.colDef), n = Rl(e.baseModel, t);
|
|
9243
9249
|
if (!t.length) return n;
|
|
9244
|
-
let r = e.state.map((t) =>
|
|
9250
|
+
let r = e.state.map((t) => ql(t, e.options)).filter((e) => !!e);
|
|
9245
9251
|
if (!r.length) return n;
|
|
9246
9252
|
let i = r.length === 1 ? r[0] : {
|
|
9247
9253
|
conditions: r,
|
|
@@ -9253,17 +9259,17 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9253
9259
|
filterType: "join",
|
|
9254
9260
|
type: "AND"
|
|
9255
9261
|
} : i;
|
|
9256
|
-
},
|
|
9262
|
+
}, Yl = (e, t, n) => {
|
|
9257
9263
|
if (!e) return [];
|
|
9258
9264
|
let r = e;
|
|
9259
|
-
if (
|
|
9265
|
+
if (Il(e)) {
|
|
9260
9266
|
let e = r.conditions ?? [];
|
|
9261
9267
|
if (r.type === "AND") {
|
|
9262
9268
|
let r = e.find((e) => {
|
|
9263
9269
|
let r = e;
|
|
9264
9270
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
9265
9271
|
});
|
|
9266
|
-
return e.flatMap((e) =>
|
|
9272
|
+
return e.flatMap((e) => Yl(e, t, n).map((e) => ({
|
|
9267
9273
|
...e,
|
|
9268
9274
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
9269
9275
|
colId: r.colId,
|
|
@@ -9271,20 +9277,20 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9271
9277
|
} : void 0)
|
|
9272
9278
|
})));
|
|
9273
9279
|
}
|
|
9274
|
-
return e.flatMap((e) =>
|
|
9280
|
+
return e.flatMap((e) => Yl(e, t, n));
|
|
9275
9281
|
}
|
|
9276
9282
|
return r.colId && t.has(r.colId) ? [{
|
|
9277
9283
|
colId: r.colId,
|
|
9278
9284
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
9279
9285
|
type: r.type
|
|
9280
9286
|
}] : [];
|
|
9281
|
-
},
|
|
9282
|
-
let t =
|
|
9287
|
+
}, Xl = (e) => {
|
|
9288
|
+
let t = Vl(e.colDef);
|
|
9283
9289
|
if (!t.length) return [];
|
|
9284
|
-
let n = new Set(
|
|
9290
|
+
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();
|
|
9285
9291
|
for (let t of i) {
|
|
9286
9292
|
if (!t.filter) continue;
|
|
9287
|
-
let n =
|
|
9293
|
+
let n = Gl(e.options, t.colId, String(t.filter));
|
|
9288
9294
|
if (t.type === "equals") {
|
|
9289
9295
|
let e = a.get(n);
|
|
9290
9296
|
a.set(n, {
|
|
@@ -9295,7 +9301,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9295
9301
|
continue;
|
|
9296
9302
|
}
|
|
9297
9303
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
9298
|
-
let r =
|
|
9304
|
+
let r = Gl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
9299
9305
|
children: [],
|
|
9300
9306
|
id: r,
|
|
9301
9307
|
state: "selected"
|
|
@@ -9307,17 +9313,17 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9307
9313
|
}
|
|
9308
9314
|
}
|
|
9309
9315
|
return [...a.values()];
|
|
9310
|
-
},
|
|
9316
|
+
}, Zl = (e, t, n) => {
|
|
9311
9317
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
9312
9318
|
if (r.length <= 1) return "Search";
|
|
9313
9319
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
9314
9320
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
9315
|
-
},
|
|
9316
|
-
if (!r ||
|
|
9321
|
+
}, Ql = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), $l = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
9322
|
+
if (!r || Ql(i) === Ql(r)) return e;
|
|
9317
9323
|
if (!a || !n) return r;
|
|
9318
9324
|
let o = t(n);
|
|
9319
9325
|
return o ? `${o}: ${r}` : r;
|
|
9320
|
-
},
|
|
9326
|
+
}, 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) => {
|
|
9321
9327
|
let t = /* @__PURE__ */ new Map();
|
|
9322
9328
|
for (let n of e) {
|
|
9323
9329
|
if (!n) continue;
|
|
@@ -9329,34 +9335,34 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9329
9335
|
t.set(n.value, {
|
|
9330
9336
|
...e,
|
|
9331
9337
|
...n,
|
|
9332
|
-
children:
|
|
9333
|
-
totalChildCount:
|
|
9338
|
+
children: ru([...e.children ?? [], ...n.children ?? []]),
|
|
9339
|
+
totalChildCount: tu(e.totalChildCount, n.totalChildCount)
|
|
9334
9340
|
});
|
|
9335
9341
|
}
|
|
9336
9342
|
return [...t.values()];
|
|
9337
|
-
},
|
|
9343
|
+
}, iu = (e, t) => {
|
|
9338
9344
|
for (let n of e ?? []) {
|
|
9339
9345
|
if (!n) continue;
|
|
9340
9346
|
if (n.value === t) return n;
|
|
9341
|
-
let e =
|
|
9347
|
+
let e = iu(n.children, t);
|
|
9342
9348
|
if (e) return e;
|
|
9343
9349
|
}
|
|
9344
|
-
},
|
|
9350
|
+
}, au = (e, t, n) => {
|
|
9345
9351
|
if (!e || t === null) return !1;
|
|
9346
9352
|
if (e.value === t) return !0;
|
|
9347
|
-
let r =
|
|
9348
|
-
return r !== null && r === t ||
|
|
9349
|
-
},
|
|
9350
|
-
let r =
|
|
9353
|
+
let r = Nl(e);
|
|
9354
|
+
return r !== null && r === t || Fl(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => au(e, t, n)) ?? !1;
|
|
9355
|
+
}, ou = (e, t, n) => {
|
|
9356
|
+
let r = iu(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
9351
9357
|
return e.map((e) => e && (e.value === t ? {
|
|
9352
9358
|
...e,
|
|
9353
|
-
children:
|
|
9354
|
-
totalChildCount:
|
|
9359
|
+
children: ru([...e.children ?? [], ...i]),
|
|
9360
|
+
totalChildCount: tu(e.totalChildCount, r?.totalChildCount)
|
|
9355
9361
|
} : e.children?.length ? {
|
|
9356
9362
|
...e,
|
|
9357
|
-
children:
|
|
9363
|
+
children: ou(e.children, t, n).filter((e) => !!e)
|
|
9358
9364
|
} : e));
|
|
9359
|
-
},
|
|
9365
|
+
}, su = (e, t) => `${e}::${t}`, cu = () => {
|
|
9360
9366
|
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) => {
|
|
9361
9367
|
v.value = e;
|
|
9362
9368
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -9365,11 +9371,11 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9365
9371
|
let r = n ? o : i;
|
|
9366
9372
|
r.value[e] = t;
|
|
9367
9373
|
}, T = () => {
|
|
9368
|
-
o.value =
|
|
9374
|
+
o.value = nu(i.value), s.value = nu(a.value);
|
|
9369
9375
|
}, E = () => {
|
|
9370
9376
|
o.value = {}, s.value = {};
|
|
9371
9377
|
}, D = () => {
|
|
9372
|
-
i.value =
|
|
9378
|
+
i.value = nu(o.value), a.value = nu(s.value), E();
|
|
9373
9379
|
}, O = (e, t) => {
|
|
9374
9380
|
c.value[e] = t;
|
|
9375
9381
|
}, A = (e, t) => {
|
|
@@ -9393,7 +9399,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9393
9399
|
if (!o) return [];
|
|
9394
9400
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
9395
9401
|
c.value[n.field] = s;
|
|
9396
|
-
let u = n.parentId ?
|
|
9402
|
+
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;
|
|
9397
9403
|
g.value[x] = S;
|
|
9398
9404
|
try {
|
|
9399
9405
|
let c = await o({
|
|
@@ -9405,17 +9411,17 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9405
9411
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
9406
9412
|
});
|
|
9407
9413
|
if (g.value[x] !== S) return [];
|
|
9408
|
-
let u =
|
|
9414
|
+
let u = eu(c);
|
|
9409
9415
|
if (n.parentId) {
|
|
9410
|
-
let e =
|
|
9416
|
+
let e = su(n.field, n.parentId);
|
|
9411
9417
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
9412
9418
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
9413
9419
|
let v = a.value[n.field] ?? [], b;
|
|
9414
|
-
b = n.parentId ?
|
|
9420
|
+
b = n.parentId ? ou(r.value[n.field] ?? [], n.parentId, u.values) : y ? ru([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
9415
9421
|
for (let e of v) {
|
|
9416
9422
|
if (!e) continue;
|
|
9417
|
-
let t =
|
|
9418
|
-
b.some((e) =>
|
|
9423
|
+
let t = Nl(e) ?? e.value;
|
|
9424
|
+
b.some((e) => au(e, t, n.field)) || b.push(e);
|
|
9419
9425
|
}
|
|
9420
9426
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
9421
9427
|
} finally {
|
|
@@ -9450,7 +9456,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9450
9456
|
stagedFilterSelectedMetadataMap: s,
|
|
9451
9457
|
stagedFilterSelectedValueMap: o
|
|
9452
9458
|
};
|
|
9453
|
-
},
|
|
9459
|
+
}, lu = () => {
|
|
9454
9460
|
let e = (e, n) => {
|
|
9455
9461
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
9456
9462
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -9463,7 +9469,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9463
9469
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
9464
9470
|
} : null
|
|
9465
9471
|
};
|
|
9466
|
-
},
|
|
9472
|
+
}, uu = /* @__PURE__ */ d({
|
|
9467
9473
|
__name: "QueryFormatter",
|
|
9468
9474
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
9469
9475
|
modelValue: { required: !0 },
|
|
@@ -9477,7 +9483,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9477
9483
|
}),
|
|
9478
9484
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
9479
9485
|
setup(e) {
|
|
9480
|
-
let n = e, s = V(e, "modelValue"), c = V(e, "wrap-content"), { removeQueryOption: l } =
|
|
9486
|
+
let n = e, s = V(e, "modelValue"), c = V(e, "wrap-content"), { removeQueryOption: l } = lu(), u = r(() => {
|
|
9481
9487
|
let e = s.value?.queryTerms || [];
|
|
9482
9488
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
9483
9489
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -9508,27 +9514,27 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9508
9514
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
9509
9515
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
9510
9516
|
}
|
|
9511
|
-
}),
|
|
9517
|
+
}), du = [
|
|
9512
9518
|
"aria-expanded",
|
|
9513
9519
|
"aria-activedescendant",
|
|
9514
9520
|
"disabled",
|
|
9515
9521
|
"placeholder",
|
|
9516
9522
|
"data-invalid"
|
|
9517
|
-
],
|
|
9523
|
+
], fu = {
|
|
9518
9524
|
key: 2,
|
|
9519
9525
|
class: "pv-text-red pv-text-body-xs"
|
|
9520
|
-
},
|
|
9526
|
+
}, pu = ["id"], mu = [
|
|
9521
9527
|
"id",
|
|
9522
9528
|
"aria-selected",
|
|
9523
9529
|
"aria-describedby",
|
|
9524
9530
|
"onMouseenter"
|
|
9525
|
-
],
|
|
9531
|
+
], hu = {
|
|
9526
9532
|
key: 1,
|
|
9527
9533
|
role: "presentation"
|
|
9528
|
-
},
|
|
9534
|
+
}, gu = {
|
|
9529
9535
|
key: 1,
|
|
9530
9536
|
class: "pv-text-center"
|
|
9531
|
-
},
|
|
9537
|
+
}, _u = /* @__PURE__ */ d({
|
|
9532
9538
|
__name: "PvQueryBuilderInput",
|
|
9533
9539
|
props: /* @__PURE__ */ g({
|
|
9534
9540
|
placeholder: { default: "Search" },
|
|
@@ -9581,7 +9587,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9581
9587
|
width: "100%",
|
|
9582
9588
|
maxWidth: "100%",
|
|
9583
9589
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
9584
|
-
}, f = re("search-input"), p = V(e, "searchText"), m = V(e, "query"), h = V(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } =
|
|
9590
|
+
}, 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 = () => {
|
|
9585
9591
|
m.value = null, p.value = "", R.value = null, T.value = !1;
|
|
9586
9592
|
};
|
|
9587
9593
|
ce("Enter", (e) => {
|
|
@@ -9705,7 +9711,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9705
9711
|
"--inset-size": "4px",
|
|
9706
9712
|
"--flex-gap": "4px"
|
|
9707
9713
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
9708
|
-
}, [u(
|
|
9714
|
+
}, [u(uu, {
|
|
9709
9715
|
modelValue: m.value,
|
|
9710
9716
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
9711
9717
|
"wrap-content": T.value,
|
|
@@ -9731,7 +9737,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9731
9737
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
9732
9738
|
onFocus: _e,
|
|
9733
9739
|
onBlur: _e
|
|
9734
|
-
}, null, 44,
|
|
9740
|
+
}, null, 44, du), [[H, p.value]])], 4),
|
|
9735
9741
|
m.value && !e.hideClearButton ? (D(), i(Qn, {
|
|
9736
9742
|
key: 1,
|
|
9737
9743
|
variant: "ghost",
|
|
@@ -9739,7 +9745,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9739
9745
|
size: "md",
|
|
9740
9746
|
onClick: ie
|
|
9741
9747
|
})) : a("", !0),
|
|
9742
|
-
B.value ? (D(), o("p",
|
|
9748
|
+
B.value ? (D(), o("p", fu, P(R.value), 1)) : a("", !0),
|
|
9743
9749
|
I.value ? ae((D(), i(Ro, {
|
|
9744
9750
|
key: 3,
|
|
9745
9751
|
class: "pv-scrollbar-visible",
|
|
@@ -9749,12 +9755,12 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9749
9755
|
listId: N,
|
|
9750
9756
|
listRole: "listbox"
|
|
9751
9757
|
}, c({
|
|
9752
|
-
default: G(() => [e.optionsLoading ? (D(), o("div",
|
|
9758
|
+
default: G(() => [e.optionsLoading ? (D(), o("div", gu, [u(Ot, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [se.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(q.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
9753
9759
|
key: 0,
|
|
9754
9760
|
id: F(r),
|
|
9755
9761
|
role: "presentation",
|
|
9756
9762
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
9757
|
-
}, P(e), 9,
|
|
9763
|
+
}, P(e), 9, pu)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
9758
9764
|
key: `${e}-${t.id}`,
|
|
9759
9765
|
id: ee(ue.value.get(t) ?? -1),
|
|
9760
9766
|
role: "option",
|
|
@@ -9766,7 +9772,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9766
9772
|
config: l,
|
|
9767
9773
|
queryText: p.value,
|
|
9768
9774
|
onHandleSelected: (e) => he(t)
|
|
9769
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
9775
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, mu))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", hu, [j(n.$slots, "empty")])) : a("", !0)], 64))]),
|
|
9770
9776
|
_: 2
|
|
9771
9777
|
}, [n.$slots.header ? {
|
|
9772
9778
|
name: "header",
|
|
@@ -9779,7 +9785,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9779
9785
|
} : void 0]), 1536)), [[U, C.value]]) : a("", !0)
|
|
9780
9786
|
], 34)), [[z(tt), me]]);
|
|
9781
9787
|
}
|
|
9782
|
-
}),
|
|
9788
|
+
}), vu = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
9783
9789
|
let i = k(null), a = k(null), o = k(null), s = k(null), c = (e) => {
|
|
9784
9790
|
let t = e.parentElement;
|
|
9785
9791
|
for (; t && t !== document.body;) {
|
|
@@ -9830,13 +9836,13 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9830
9836
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
9831
9837
|
}
|
|
9832
9838
|
};
|
|
9833
|
-
},
|
|
9834
|
-
let e = m(
|
|
9839
|
+
}, yu = Symbol.for("pv.rum-context"), bu = () => {
|
|
9840
|
+
let e = m(yu, void 0);
|
|
9835
9841
|
return () => {
|
|
9836
9842
|
let t = e?.value;
|
|
9837
9843
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
9838
9844
|
};
|
|
9839
|
-
},
|
|
9845
|
+
}, xu = (e, t = {}, n = {}) => {
|
|
9840
9846
|
try {
|
|
9841
9847
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
9842
9848
|
let r = n.consumer == null ? t : {
|
|
@@ -9845,33 +9851,33 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9845
9851
|
};
|
|
9846
9852
|
window.DD_RUM.addAction(e, r);
|
|
9847
9853
|
} catch {}
|
|
9848
|
-
},
|
|
9854
|
+
}, Su = (e) => {
|
|
9849
9855
|
queueMicrotask(() => {
|
|
9850
9856
|
try {
|
|
9851
9857
|
e();
|
|
9852
9858
|
} catch {}
|
|
9853
9859
|
});
|
|
9854
|
-
},
|
|
9860
|
+
}, 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 = {
|
|
9855
9861
|
class: "pv-flex",
|
|
9856
9862
|
style: { "--flex-wrap": "nowrap" }
|
|
9857
|
-
},
|
|
9863
|
+
}, ed = ["id"], td = {
|
|
9858
9864
|
key: 1,
|
|
9859
9865
|
style: { "padding-left": "16px" }
|
|
9860
|
-
},
|
|
9866
|
+
}, nd = [
|
|
9861
9867
|
"checked",
|
|
9862
9868
|
"disabled",
|
|
9863
9869
|
"onChange"
|
|
9864
|
-
],
|
|
9870
|
+
], rd = { class: "pv-text-body-md" }, id = { key: 2 }, ad = {
|
|
9865
9871
|
key: 0,
|
|
9866
9872
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
9867
|
-
},
|
|
9873
|
+
}, od = /* @__PURE__ */ d({
|
|
9868
9874
|
__name: "GroupBySelector",
|
|
9869
9875
|
props: {
|
|
9870
9876
|
rowGroupLimit: {},
|
|
9871
9877
|
enableFocusView: { type: Boolean }
|
|
9872
9878
|
},
|
|
9873
9879
|
setup(e) {
|
|
9874
|
-
let n = m(
|
|
9880
|
+
let n = m(Eu, k(null)), c = m(Au, k([])), l = m(ju, k([])), u = e;
|
|
9875
9881
|
W(l, () => {}, { deep: !0 });
|
|
9876
9882
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
9877
9883
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -9903,7 +9909,7 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9903
9909
|
class: y(p.value),
|
|
9904
9910
|
onListOrderUpdated: x
|
|
9905
9911
|
}, {
|
|
9906
|
-
trigger: G(() => [s("div",
|
|
9912
|
+
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(Yn), {
|
|
9907
9913
|
key: 0,
|
|
9908
9914
|
value: z(l).length,
|
|
9909
9915
|
variant: "tertiary"
|
|
@@ -9916,25 +9922,25 @@ var kl = "__pv_filter_panel_scoped_value__", Al = (e) => typeof e == "object" &&
|
|
|
9916
9922
|
key: 0,
|
|
9917
9923
|
name: "reorder",
|
|
9918
9924
|
class: "pv-text-subdued"
|
|
9919
|
-
})) : (D(), o("span",
|
|
9925
|
+
})) : (D(), o("span", td)),
|
|
9920
9926
|
s("input", {
|
|
9921
9927
|
type: "checkbox",
|
|
9922
9928
|
class: "pv-checkbox",
|
|
9923
9929
|
checked: d(e.value),
|
|
9924
9930
|
disabled: !d(e.value) && h.value,
|
|
9925
9931
|
onChange: (t) => f(e.value, t.target.checked)
|
|
9926
|
-
}, null, 40,
|
|
9927
|
-
s("span",
|
|
9928
|
-
d(e.value) ? (D(), o("sup",
|
|
9929
|
-
], 2)], 8,
|
|
9932
|
+
}, null, 40, nd),
|
|
9933
|
+
s("span", rd, P(e.label), 1),
|
|
9934
|
+
d(e.value) ? (D(), o("sup", id, P(n + 1), 1)) : a("", !0)
|
|
9935
|
+
], 2)], 8, ed))], 64))), 128)), h.value ? (D(), o("p", ad, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
9930
9936
|
_: 1
|
|
9931
9937
|
}, 8, ["class"]));
|
|
9932
9938
|
}
|
|
9933
|
-
}),
|
|
9934
|
-
function
|
|
9935
|
-
return D(), o("div",
|
|
9939
|
+
}), sd = {}, cd = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
9940
|
+
function ld(e, t) {
|
|
9941
|
+
return D(), o("div", cd);
|
|
9936
9942
|
}
|
|
9937
|
-
var
|
|
9943
|
+
var ud = /* @__PURE__ */ cn(sd, [["render", ld]]), dd = ["innerHTML"], fd = { key: 2 }, pd = /* @__PURE__ */ d({
|
|
9938
9944
|
__name: "ColDefCellRenderer",
|
|
9939
9945
|
props: {
|
|
9940
9946
|
colDef: {},
|
|
@@ -9948,9 +9954,9 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
9948
9954
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (D(), o("span", {
|
|
9949
9955
|
key: 1,
|
|
9950
9956
|
innerHTML: c.value
|
|
9951
|
-
}, null, 8,
|
|
9957
|
+
}, null, 8, dd)) : a.value === "string" ? (D(), o("span", fd, P(s.value), 1)) : j(t.$slots, "default", { key: 3 });
|
|
9952
9958
|
}
|
|
9953
|
-
}),
|
|
9959
|
+
}), md = (e = null, t = !1) => {
|
|
9954
9960
|
let n = k(e?.focuses || []), i = k(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
9955
9961
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
9956
9962
|
}, l = (e) => {
|
|
@@ -9974,21 +9980,21 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
9974
9980
|
setFocuses: l,
|
|
9975
9981
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
9976
9982
|
};
|
|
9977
|
-
},
|
|
9983
|
+
}, 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 = {
|
|
9978
9984
|
key: 0,
|
|
9979
9985
|
class: "pv-flex",
|
|
9980
9986
|
style: {
|
|
9981
9987
|
flex: "1",
|
|
9982
9988
|
"--flex-justify": "flex-end"
|
|
9983
9989
|
}
|
|
9984
|
-
},
|
|
9990
|
+
}, Sd = {
|
|
9985
9991
|
key: 0,
|
|
9986
9992
|
class: "pv-table-row-number pv-text-quaternary"
|
|
9987
|
-
},
|
|
9993
|
+
}, Cd = /* @__PURE__ */ d({
|
|
9988
9994
|
__name: "GroupedCellRenderer",
|
|
9989
9995
|
props: { params: {} },
|
|
9990
9996
|
setup(e) {
|
|
9991
|
-
let n = e, i = m(
|
|
9997
|
+
let n = e, i = m(ju, k([])), c = m(Mu, k(null)), d = m(Nu, k({})), f = q(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
9992
9998
|
let e = f.value.data;
|
|
9993
9999
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
9994
10000
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -10010,7 +10016,7 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
10010
10016
|
}), S = (e) => {
|
|
10011
10017
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
10012
10018
|
n != null && (d.value[n] = t);
|
|
10013
|
-
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } =
|
|
10019
|
+
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } = hd(), j = r(() => w(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
10014
10020
|
let e = E.value;
|
|
10015
10021
|
return f.value.key && e.includes(f.value.key);
|
|
10016
10022
|
});
|
|
@@ -10025,7 +10031,7 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
10025
10031
|
}), (n, r) => (D(), o(t, null, [h.value ? (D(), o("div", {
|
|
10026
10032
|
key: 0,
|
|
10027
10033
|
class: y(j.value)
|
|
10028
|
-
}, [s("div",
|
|
10034
|
+
}, [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(Ha, {
|
|
10029
10035
|
variant: "dark",
|
|
10030
10036
|
tooltipPosition: "center-left",
|
|
10031
10037
|
size: "sm"
|
|
@@ -10039,9 +10045,9 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
10039
10045
|
}, null, 8, ["class"])]),
|
|
10040
10046
|
"tooltip-content": G(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
10041
10047
|
_: 1
|
|
10042
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span",
|
|
10048
|
+
})])) : 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));
|
|
10043
10049
|
}
|
|
10044
|
-
}),
|
|
10050
|
+
}), wd = {
|
|
10045
10051
|
key: 2,
|
|
10046
10052
|
class: "pv-table-child-cell",
|
|
10047
10053
|
style: {
|
|
@@ -10050,7 +10056,7 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
10050
10056
|
width: "100%",
|
|
10051
10057
|
height: "100%"
|
|
10052
10058
|
}
|
|
10053
|
-
},
|
|
10059
|
+
}, Td = {
|
|
10054
10060
|
key: 0,
|
|
10055
10061
|
class: "pv-table-row-number",
|
|
10056
10062
|
style: {
|
|
@@ -10058,11 +10064,11 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
10058
10064
|
"text-align": "center",
|
|
10059
10065
|
color: "var(--color-text-quaternary, #89989b)"
|
|
10060
10066
|
}
|
|
10061
|
-
},
|
|
10067
|
+
}, Ed = /* @__PURE__ */ d({
|
|
10062
10068
|
__name: "AutoGroupColDefRenderer",
|
|
10063
10069
|
props: { params: {} },
|
|
10064
10070
|
setup(e) {
|
|
10065
|
-
let t = e, n = m(
|
|
10071
|
+
let t = e, n = m(Mu, k(null)), s = r(() => t.params.rowNode.group), c = r(() => {
|
|
10066
10072
|
let e = t.params.rowNode.rowIndex, n = t.params.rowNode.parent?.rowIndex;
|
|
10067
10073
|
return e != null && n != null ? e - n : null;
|
|
10068
10074
|
}), l = r(() => ({
|
|
@@ -10090,35 +10096,35 @@ var dd = /* @__PURE__ */ cn(cd, [["render", ud]]), fd = ["innerHTML"], pd = { ke
|
|
|
10090
10096
|
return (t, n) => e.params.plainLabel ? (D(), o("span", {
|
|
10091
10097
|
key: 0,
|
|
10092
10098
|
class: y(["pv-text-body-md", { "pv-text-bold": e.params.boldLabel }])
|
|
10093
|
-
}, P(e.params.formattedValue ?? e.params.rowNode.key), 3)) : s.value ? (D(), i(
|
|
10099
|
+
}, P(e.params.formattedValue ?? e.params.rowNode.key), 3)) : s.value ? (D(), i(pd, {
|
|
10094
10100
|
key: 1,
|
|
10095
10101
|
"col-def": d.value,
|
|
10096
10102
|
"cell-params": e.params.cellParams
|
|
10097
10103
|
}, {
|
|
10098
|
-
default: G(() => [u(
|
|
10104
|
+
default: G(() => [u(Cd, { params: e.params }, null, 8, ["params"])]),
|
|
10099
10105
|
_: 1
|
|
10100
|
-
}, 8, ["col-def", "cell-params"])) : (D(), o("div",
|
|
10106
|
+
}, 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, {
|
|
10101
10107
|
"col-def": f.value,
|
|
10102
10108
|
"cell-params": p.value
|
|
10103
10109
|
}, {
|
|
10104
|
-
default: G(() => [u(
|
|
10110
|
+
default: G(() => [u(Cd, { params: l.value }, null, 8, ["params"])]),
|
|
10105
10111
|
_: 1
|
|
10106
10112
|
}, 8, ["col-def", "cell-params"])]));
|
|
10107
10113
|
}
|
|
10108
10114
|
});
|
|
10109
10115
|
//#endregion
|
|
10110
10116
|
//#region src/functions/aggregations.ts
|
|
10111
|
-
function
|
|
10117
|
+
function Dd(e) {
|
|
10112
10118
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
10113
10119
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
10114
10120
|
}
|
|
10115
10121
|
//#endregion
|
|
10116
10122
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
10117
|
-
var
|
|
10123
|
+
var Od = { style: { "line-height": "20px" } }, kd = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, Ad = /* @__PURE__ */ d({
|
|
10118
10124
|
__name: "GroupAggCellRenderer",
|
|
10119
10125
|
props: { params: {} },
|
|
10120
10126
|
setup(e) {
|
|
10121
|
-
let t = e, n = m(
|
|
10127
|
+
let t = e, n = m(Nu, k({})), i = r(() => {
|
|
10122
10128
|
let e = t.params.column?.getColDef(), n = Ts(e);
|
|
10123
10129
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
10124
10130
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -10145,20 +10151,20 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10145
10151
|
style: x(f.value),
|
|
10146
10152
|
class: "pv-flex",
|
|
10147
10153
|
ondblclick: a
|
|
10148
|
-
}, [s("div",
|
|
10154
|
+
}, [s("div", Od, [s("p", null, P(d.value), 1), s("p", kd, P(i.value), 1)])], 4));
|
|
10149
10155
|
}
|
|
10150
|
-
}),
|
|
10156
|
+
}), jd = {
|
|
10151
10157
|
agSetColumnFilter: "set",
|
|
10152
10158
|
agMultiColumnFilter: "multi",
|
|
10153
10159
|
agTextColumnFilter: "text"
|
|
10154
|
-
},
|
|
10160
|
+
}, 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) => {
|
|
10155
10161
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
10156
|
-
let n = e?.filterType || null, r =
|
|
10162
|
+
let n = e?.filterType || null, r = Md(t);
|
|
10157
10163
|
if (!r || r === n) return e;
|
|
10158
10164
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
10159
10165
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
10160
10166
|
if (e.filterType == "set") {
|
|
10161
|
-
let n = e.values || [], r =
|
|
10167
|
+
let n = e.values || [], r = Nd(t);
|
|
10162
10168
|
r > -1 && r < a.length && (a[r] = {
|
|
10163
10169
|
filterType: "set",
|
|
10164
10170
|
values: n
|
|
@@ -10168,7 +10174,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10168
10174
|
filterType: "multi",
|
|
10169
10175
|
filterModels: a
|
|
10170
10176
|
};
|
|
10171
|
-
},
|
|
10177
|
+
}, Fd = (e, t) => {
|
|
10172
10178
|
let n = t.filter((e) => e !== null && e !== "");
|
|
10173
10179
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
10174
10180
|
filterType: "text",
|
|
@@ -10185,18 +10191,18 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10185
10191
|
filter: t
|
|
10186
10192
|
}))
|
|
10187
10193
|
};
|
|
10188
|
-
},
|
|
10194
|
+
}, Id = (e) => {
|
|
10189
10195
|
let t = [];
|
|
10190
10196
|
return Object.keys(e).forEach((n) => {
|
|
10191
10197
|
let r = e[n];
|
|
10192
10198
|
if (r) {
|
|
10193
10199
|
if (r.filterType === "set" && r.values) {
|
|
10194
|
-
let e =
|
|
10200
|
+
let e = Fd(n, r.values);
|
|
10195
10201
|
e && t.push(e);
|
|
10196
10202
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
10197
10203
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
10198
10204
|
if (e?.values) {
|
|
10199
|
-
let r =
|
|
10205
|
+
let r = Fd(n, e.values);
|
|
10200
10206
|
r && t.push(r);
|
|
10201
10207
|
}
|
|
10202
10208
|
}
|
|
@@ -10206,11 +10212,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10206
10212
|
type: "AND",
|
|
10207
10213
|
conditions: t
|
|
10208
10214
|
};
|
|
10209
|
-
},
|
|
10215
|
+
}, Ld = (e, t, n = !1) => {
|
|
10210
10216
|
if (!e) return e;
|
|
10211
10217
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
10212
10218
|
if (n) {
|
|
10213
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
10219
|
+
let t = e?.filter?.advancedFilterModel, n = Id(i), a = t || null, o = null;
|
|
10214
10220
|
return o = a && n ? {
|
|
10215
10221
|
filterType: "join",
|
|
10216
10222
|
type: "AND",
|
|
@@ -10223,12 +10229,12 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10223
10229
|
}
|
|
10224
10230
|
let a = {};
|
|
10225
10231
|
return Object.keys(i).forEach((e) => {
|
|
10226
|
-
a[e] =
|
|
10232
|
+
a[e] = Pd(i[e] || {}, t.find((t) => t.field === e));
|
|
10227
10233
|
}), r.filter = {
|
|
10228
10234
|
...r.filter,
|
|
10229
10235
|
filterModel: a
|
|
10230
10236
|
}, r;
|
|
10231
|
-
},
|
|
10237
|
+
}, Rd = (e) => {
|
|
10232
10238
|
if (!e || e.queryTerms.length === 0) return {};
|
|
10233
10239
|
let t = {};
|
|
10234
10240
|
return e.queryTerms.forEach((e) => {
|
|
@@ -10260,7 +10266,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10260
10266
|
};
|
|
10261
10267
|
}
|
|
10262
10268
|
}), t;
|
|
10263
|
-
},
|
|
10269
|
+
}, zd = (e) => {
|
|
10264
10270
|
if (!e || e.queryTerms.length === 0) return null;
|
|
10265
10271
|
let t = /* @__PURE__ */ new Map();
|
|
10266
10272
|
e.queryTerms.forEach((e) => {
|
|
@@ -10295,7 +10301,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10295
10301
|
type: "AND",
|
|
10296
10302
|
conditions: n
|
|
10297
10303
|
};
|
|
10298
|
-
},
|
|
10304
|
+
}, Bd = (e, t) => {
|
|
10299
10305
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
10300
10306
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
10301
10307
|
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");
|
|
@@ -10303,26 +10309,26 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10303
10309
|
filterType: "multi",
|
|
10304
10310
|
filterModels: r
|
|
10305
10311
|
};
|
|
10306
|
-
},
|
|
10312
|
+
}, Vd = (e, t) => {
|
|
10307
10313
|
if (!e || Object.keys(e).length === 0) return t;
|
|
10308
10314
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
10309
10315
|
let n = { ...e };
|
|
10310
10316
|
return t.filterModels?.forEach((e, t) => {
|
|
10311
10317
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
10312
10318
|
}), n;
|
|
10313
|
-
},
|
|
10319
|
+
}, 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) => {
|
|
10314
10320
|
let r = { ...t };
|
|
10315
10321
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
10316
|
-
let i =
|
|
10317
|
-
r[t] =
|
|
10322
|
+
let i = Bd(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
10323
|
+
r[t] = Vd(a, i);
|
|
10318
10324
|
}), r);
|
|
10319
|
-
},
|
|
10325
|
+
}, Wd = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? Nd(e) !== void 0 && Nd(e) > -1 : !1, Gd = (e, t) => {
|
|
10320
10326
|
let n = { ...e };
|
|
10321
10327
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
10322
10328
|
...n.filterParams,
|
|
10323
10329
|
values: t
|
|
10324
10330
|
}, n;
|
|
10325
|
-
let r =
|
|
10331
|
+
let r = Nd(e);
|
|
10326
10332
|
if (r !== void 0 && r > -1) {
|
|
10327
10333
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
10328
10334
|
a.filterParams = {
|
|
@@ -10336,13 +10342,13 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10336
10342
|
};
|
|
10337
10343
|
}
|
|
10338
10344
|
return n;
|
|
10339
|
-
},
|
|
10345
|
+
}, Kd = async (e, t) => {
|
|
10340
10346
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
10341
10347
|
if (r?.filterType == "set") return r;
|
|
10342
10348
|
if (r?.filterType != "multi") return null;
|
|
10343
|
-
let i =
|
|
10349
|
+
let i = Nd(t);
|
|
10344
10350
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
10345
|
-
},
|
|
10351
|
+
}, qd = async (e, t, n) => {
|
|
10346
10352
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
10347
10353
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
10348
10354
|
if (i?.filterType != "multi") return null;
|
|
@@ -10351,50 +10357,50 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10351
10357
|
filterType: "multi",
|
|
10352
10358
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
10353
10359
|
};
|
|
10354
|
-
let o =
|
|
10360
|
+
let o = Nd(t), s = !n || n.length === 0 ? null : {
|
|
10355
10361
|
filterType: "set",
|
|
10356
10362
|
values: n
|
|
10357
10363
|
};
|
|
10358
10364
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
10359
|
-
},
|
|
10365
|
+
}, Jd = (e, t) => {
|
|
10360
10366
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
10361
10367
|
let n = t[e.field];
|
|
10362
10368
|
if (!n) return [];
|
|
10363
10369
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
10364
10370
|
if (n.filterType === "multi") {
|
|
10365
|
-
let t =
|
|
10371
|
+
let t = Nd(e);
|
|
10366
10372
|
if (t !== void 0 && t > -1) {
|
|
10367
10373
|
let e = n.filterModels[t];
|
|
10368
10374
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
10369
10375
|
}
|
|
10370
10376
|
}
|
|
10371
10377
|
return [];
|
|
10372
|
-
},
|
|
10378
|
+
}, 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) => {
|
|
10373
10379
|
if (e === void 0) return "undefined";
|
|
10374
10380
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
10375
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
10381
|
+
if (Array.isArray(e)) return `[${e.map(Qd).join(",")}]`;
|
|
10376
10382
|
let t = e;
|
|
10377
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
10378
|
-
},
|
|
10383
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${Qd(t[e])}`).join(",")}}`;
|
|
10384
|
+
}, $d = (e) => {
|
|
10379
10385
|
if (e.filterType !== "join") return e;
|
|
10380
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
10386
|
+
let t = e, n = [...t.conditions ?? []].map($d).sort((e, t) => Qd(e).localeCompare(Qd(t)));
|
|
10381
10387
|
return {
|
|
10382
10388
|
...t,
|
|
10383
10389
|
conditions: n
|
|
10384
10390
|
};
|
|
10385
|
-
},
|
|
10386
|
-
if (
|
|
10387
|
-
let n =
|
|
10388
|
-
if (n !==
|
|
10389
|
-
if (n) return ct(
|
|
10391
|
+
}, ef = (e, t) => {
|
|
10392
|
+
if (Zd(e) && Zd(t)) return !0;
|
|
10393
|
+
let n = Yd(e);
|
|
10394
|
+
if (n !== Yd(t)) return !1;
|
|
10395
|
+
if (n) return ct($d(e), $d(t));
|
|
10390
10396
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
10391
10397
|
if (a.length !== o.length) return !1;
|
|
10392
10398
|
for (let e of a) if (!ct(r?.[e], i?.[e])) return !1;
|
|
10393
10399
|
return !0;
|
|
10394
|
-
},
|
|
10395
|
-
if (!t) return
|
|
10400
|
+
}, tf = (e, t, n) => {
|
|
10401
|
+
if (!t) return nf(e, n);
|
|
10396
10402
|
if (!e) return t;
|
|
10397
|
-
let r =
|
|
10403
|
+
let r = nf(e, n);
|
|
10398
10404
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
10399
10405
|
filterType: "join",
|
|
10400
10406
|
type: "AND",
|
|
@@ -10404,53 +10410,53 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10404
10410
|
type: "AND",
|
|
10405
10411
|
conditions: [r, t]
|
|
10406
10412
|
} : t;
|
|
10407
|
-
},
|
|
10413
|
+
}, nf = (e, t) => {
|
|
10408
10414
|
if (!e) return null;
|
|
10409
10415
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
10410
|
-
let n = e, r = n.conditions.map((e) =>
|
|
10416
|
+
let n = e, r = n.conditions.map((e) => nf(e, t)).filter((e) => e !== null);
|
|
10411
10417
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
10412
10418
|
filterType: "join",
|
|
10413
10419
|
type: n.type,
|
|
10414
10420
|
conditions: r
|
|
10415
10421
|
};
|
|
10416
|
-
},
|
|
10422
|
+
}, rf = (e, t) => {
|
|
10417
10423
|
if (!t) return [];
|
|
10418
10424
|
if (t.filterType !== "join") {
|
|
10419
10425
|
let n = t;
|
|
10420
10426
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
10421
10427
|
}
|
|
10422
10428
|
let n = t, r = [];
|
|
10423
|
-
for (let t of n.conditions) r.push(...
|
|
10429
|
+
for (let t of n.conditions) r.push(...rf(e, t));
|
|
10424
10430
|
return r;
|
|
10425
|
-
},
|
|
10431
|
+
}, af = (e, t) => {
|
|
10426
10432
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
10427
10433
|
let n = t[e];
|
|
10428
10434
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
10429
|
-
},
|
|
10435
|
+
}, of = (e, t) => {
|
|
10430
10436
|
if (!e) return null;
|
|
10431
|
-
if (
|
|
10432
|
-
let n =
|
|
10437
|
+
if (Yd(e)) {
|
|
10438
|
+
let n = rf(t, e);
|
|
10433
10439
|
return n.length > 0 ? n : null;
|
|
10434
10440
|
}
|
|
10435
|
-
let n =
|
|
10441
|
+
let n = af(t, e);
|
|
10436
10442
|
return n.length > 0 ? n : null;
|
|
10437
|
-
},
|
|
10443
|
+
}, sf = (e, t) => {
|
|
10438
10444
|
if (!e) return e;
|
|
10439
|
-
if (
|
|
10445
|
+
if (Yd(e)) return nf(e, t);
|
|
10440
10446
|
let n = { ...e };
|
|
10441
10447
|
return delete n[t], n;
|
|
10442
|
-
},
|
|
10443
|
-
if (
|
|
10444
|
-
let r =
|
|
10445
|
-
return
|
|
10448
|
+
}, cf = (e, t, n, r) => {
|
|
10449
|
+
if (Yd(e) || !e && r) {
|
|
10450
|
+
let r = Fd(t, n);
|
|
10451
|
+
return tf(e ?? null, r, t);
|
|
10446
10452
|
}
|
|
10447
10453
|
let i = { ...e || {} };
|
|
10448
10454
|
return i[t] = {
|
|
10449
10455
|
filterType: "set",
|
|
10450
10456
|
values: n
|
|
10451
10457
|
}, i;
|
|
10452
|
-
},
|
|
10453
|
-
if (
|
|
10458
|
+
}, lf = (e, t, n, r) => {
|
|
10459
|
+
if (Yd(e) || !e && r) return cf(e, t, n, r);
|
|
10454
10460
|
let i = { ...e || {} }, a = i[t];
|
|
10455
10461
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
10456
10462
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -10466,11 +10472,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10466
10472
|
values: n
|
|
10467
10473
|
};
|
|
10468
10474
|
return i;
|
|
10469
|
-
},
|
|
10470
|
-
let i = (
|
|
10471
|
-
return i.length === 0 ?
|
|
10472
|
-
},
|
|
10473
|
-
let e =
|
|
10475
|
+
}, uf = (e, t, n, r) => {
|
|
10476
|
+
let i = (of(e, t) ?? []).filter((e) => e !== n);
|
|
10477
|
+
return i.length === 0 ? sf(e, t) : lf(e, t, i, r);
|
|
10478
|
+
}, df = (e) => !!(e && "filterType" in e), ff = (e) => !!(e && !df(e)), pf = (e) => !!(e && !df(e)), mf = () => {
|
|
10479
|
+
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) => ({
|
|
10474
10480
|
hasMore: e.filterHasMoreMap.value[t],
|
|
10475
10481
|
totalCount: e.filterTotalCountMap.value[t],
|
|
10476
10482
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -10485,7 +10491,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10485
10491
|
});
|
|
10486
10492
|
let g = r(() => d.value != null), _ = r(() => {
|
|
10487
10493
|
let e = n.value;
|
|
10488
|
-
return e ?
|
|
10494
|
+
return e ? df(e) ? !Xd(e) : Object.keys(e).length === 0 : !0;
|
|
10489
10495
|
}), v = r(() => {
|
|
10490
10496
|
let e = a.value || {};
|
|
10491
10497
|
return Object.keys(e).length === 0;
|
|
@@ -10523,9 +10529,9 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10523
10529
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
10524
10530
|
}, z = async (e, t) => {
|
|
10525
10531
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
10526
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
10532
|
+
if (t?.useStaged !== !1 && i.value != null) if (ff(i.value)) {
|
|
10527
10533
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
10528
|
-
o = P(e &&
|
|
10534
|
+
o = P(e && ff(e) ? e : void 0);
|
|
10529
10535
|
} else o = i.value;
|
|
10530
10536
|
let l = {
|
|
10531
10537
|
api: t?.api,
|
|
@@ -10607,7 +10613,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10607
10613
|
}, V = (e, t) => {
|
|
10608
10614
|
b.value[e] = t;
|
|
10609
10615
|
let r = [], i = n.value;
|
|
10610
|
-
if (
|
|
10616
|
+
if (pf(i)) {
|
|
10611
10617
|
let t = i[e];
|
|
10612
10618
|
if (t?.values) {
|
|
10613
10619
|
let e = t.values || [];
|
|
@@ -10624,7 +10630,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10624
10630
|
let t = n.value;
|
|
10625
10631
|
if (!t) return x.value;
|
|
10626
10632
|
let r = e.map((e) => {
|
|
10627
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
10633
|
+
let n = e.field ?? e.colId ?? "", r = n ? of(t, n) : null;
|
|
10628
10634
|
return r && r.length > 0 ? {
|
|
10629
10635
|
colDef: e,
|
|
10630
10636
|
colId: n,
|
|
@@ -10682,7 +10688,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10682
10688
|
}, _e = (e) => t.value?.refreshData(e), ve = (e) => {
|
|
10683
10689
|
let t = /* @__PURE__ */ new Map();
|
|
10684
10690
|
if (!e) return t;
|
|
10685
|
-
if (
|
|
10691
|
+
if (df(e)) {
|
|
10686
10692
|
let n = (e) => {
|
|
10687
10693
|
if (e.filterType === "join") {
|
|
10688
10694
|
e.conditions.forEach(n);
|
|
@@ -10769,14 +10775,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10769
10775
|
filterValuesHasMoreMap: f,
|
|
10770
10776
|
filterValuesTotalCountMap: p
|
|
10771
10777
|
};
|
|
10772
|
-
},
|
|
10773
|
-
O(
|
|
10774
|
-
},
|
|
10775
|
-
let e = m(
|
|
10778
|
+
}, hf = mf, gf = (e) => {
|
|
10779
|
+
O(Cu, e);
|
|
10780
|
+
}, _f = () => m(Cu, null) || mf(), vf = () => {
|
|
10781
|
+
let e = m(Cu, null);
|
|
10776
10782
|
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().");
|
|
10777
10783
|
return e;
|
|
10778
|
-
},
|
|
10779
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c =
|
|
10784
|
+
}, yf = (e) => {
|
|
10785
|
+
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({
|
|
10780
10786
|
get: () => X.value ? I(J.value) : b(J.value),
|
|
10781
10787
|
set: (e) => {
|
|
10782
10788
|
X.value ? L(J.value, e) : C(J.value, e);
|
|
@@ -10805,8 +10811,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10805
10811
|
let n = [];
|
|
10806
10812
|
if (H.value && l.value) {
|
|
10807
10813
|
let e = l.value.getAdvancedFilterModel();
|
|
10808
|
-
n =
|
|
10809
|
-
} else n =
|
|
10814
|
+
n = rf(J.value, e);
|
|
10815
|
+
} else n = Jd(t.value, p.value);
|
|
10810
10816
|
e ? U.value = n : U.value = Array.from(new Set([...b(J.value), ...n]));
|
|
10811
10817
|
}, Le = (e) => {
|
|
10812
10818
|
let t = (n) => {
|
|
@@ -10834,7 +10840,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10834
10840
|
}
|
|
10835
10841
|
return;
|
|
10836
10842
|
}
|
|
10837
|
-
let s = await
|
|
10843
|
+
let s = await Kd(l.value, t.value);
|
|
10838
10844
|
if (s) {
|
|
10839
10845
|
if (x.value && o) {
|
|
10840
10846
|
s.refreshFilterValues();
|
|
@@ -10871,21 +10877,21 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10871
10877
|
if (!Ts(t.value).metadataDisplayFields?.length) return !1;
|
|
10872
10878
|
let r = y(J.value, e);
|
|
10873
10879
|
return r == null || r.label == null;
|
|
10874
|
-
}, Ye = (e) => Fe.value || y(J.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) =>
|
|
10880
|
+
}, Ye = (e) => Fe.value || y(J.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({
|
|
10875
10881
|
fallbackSubText: n,
|
|
10876
10882
|
getDisplayName: Xe,
|
|
10877
10883
|
matchedField: e?.matchedField,
|
|
10878
10884
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
10879
10885
|
primaryText: r,
|
|
10880
10886
|
showPrefix: Ts(t.value).showSearchMatchSubTextPrefix !== !1
|
|
10881
|
-
}), Qe = r(() =>
|
|
10887
|
+
}), Qe = r(() => Zl(J.value, Ts(t.value).queryColIds, (e) => e === J.value && Y.value || Xe(e))), $e = (e) => {
|
|
10882
10888
|
if (!e.startsWith("__")) return { value: e };
|
|
10883
10889
|
let t = e.slice(2).split("__");
|
|
10884
10890
|
return t.length < 2 ? { value: e } : {
|
|
10885
10891
|
field: t[0],
|
|
10886
10892
|
value: t[1]
|
|
10887
10893
|
};
|
|
10888
|
-
}, et = (e) =>
|
|
10894
|
+
}, et = (e) => Wl(e, rt()), tt = (e) => {
|
|
10889
10895
|
let t = $e(e.value), n = { ...e };
|
|
10890
10896
|
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;
|
|
10891
10897
|
}, nt = r(() => [...u.filterValueMap.value[J.value] || [], ...u.filterValueSelectedMetadataMap.value[J.value] || []].map((e) => e && tt(e))), rt = () => nt.value, it = (e, t) => {
|
|
@@ -10902,7 +10908,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
10902
10908
|
let e = n.children ? at(n.children, t) : void 0;
|
|
10903
10909
|
if (e) return e;
|
|
10904
10910
|
}
|
|
10905
|
-
}, ot = (e, t) =>
|
|
10911
|
+
}, ot = (e, t) => Gl(rt(), e, t), st = (e) => {
|
|
10906
10912
|
let t = (n) => {
|
|
10907
10913
|
if (n) {
|
|
10908
10914
|
if (String(Ue(n) ?? $e(n.value).value) === e) return n;
|
|
@@ -11055,7 +11061,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11055
11061
|
n = [r.length > 0 ? r[r.length - 1] : n[n.length - 1]];
|
|
11056
11062
|
}
|
|
11057
11063
|
let r = xt;
|
|
11058
|
-
xt = !1, r ||
|
|
11064
|
+
xt = !1, r || Su(() => {
|
|
11059
11065
|
let e = new Set(t), r = new Set(n);
|
|
11060
11066
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
11061
11067
|
for (let t of e) r.has(t) || wt(t, "deselect", "click", r.size);
|
|
@@ -11076,27 +11082,27 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11076
11082
|
if (e !== void 0 && n !== void 0) {
|
|
11077
11083
|
let r = e || J.value, i = new Set([J.value, r]), a = n;
|
|
11078
11084
|
if (H.value) {
|
|
11079
|
-
let e =
|
|
11085
|
+
let e = Fd(r, a || []);
|
|
11080
11086
|
if (X.value) {
|
|
11081
|
-
let t = h.value, n =
|
|
11087
|
+
let t = h.value, n = tf(t, e, r);
|
|
11082
11088
|
N(i, !0), h.value = n;
|
|
11083
11089
|
return;
|
|
11084
11090
|
}
|
|
11085
|
-
let t =
|
|
11091
|
+
let t = tf(l.value.getAdvancedFilterModel(), e, r);
|
|
11086
11092
|
N(i), v(() => {
|
|
11087
11093
|
l.value?.setAdvancedFilterModel(t);
|
|
11088
11094
|
});
|
|
11089
11095
|
return;
|
|
11090
11096
|
}
|
|
11091
11097
|
if (X.value) {
|
|
11092
|
-
let e = await
|
|
11098
|
+
let e = await qd(l.value, t.value, a);
|
|
11093
11099
|
N(i, !0), h.value = {
|
|
11094
11100
|
...h.value,
|
|
11095
11101
|
[r]: e
|
|
11096
11102
|
};
|
|
11097
11103
|
return;
|
|
11098
11104
|
}
|
|
11099
|
-
let o = await
|
|
11105
|
+
let o = await qd(l.value, t.value, a);
|
|
11100
11106
|
N(i), l.value.setColumnFilterModel(r, o).then(() => {
|
|
11101
11107
|
l.value && l.value.onFilterChanged();
|
|
11102
11108
|
});
|
|
@@ -11110,11 +11116,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11110
11116
|
for (let t of e) {
|
|
11111
11117
|
let e = i[t] || [];
|
|
11112
11118
|
if (e.length > 0) {
|
|
11113
|
-
let n =
|
|
11119
|
+
let n = Fd(t, e);
|
|
11114
11120
|
n && r.push(n);
|
|
11115
11121
|
}
|
|
11116
11122
|
}
|
|
11117
|
-
for (let t of e) n =
|
|
11123
|
+
for (let t of e) n = tf(n, null, t);
|
|
11118
11124
|
if (r.length > 0) {
|
|
11119
11125
|
let e = r.length === 1 ? r[0] : {
|
|
11120
11126
|
filterType: "join",
|
|
@@ -11128,23 +11134,23 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11128
11134
|
} : e;
|
|
11129
11135
|
}
|
|
11130
11136
|
} else {
|
|
11131
|
-
let t = U.value.length > 0 ? U.value : null, r =
|
|
11132
|
-
n =
|
|
11137
|
+
let t = U.value.length > 0 ? U.value : null, r = Fd(J.value, t || []);
|
|
11138
|
+
n = tf(n, r, J.value);
|
|
11133
11139
|
let i = !1;
|
|
11134
11140
|
if (a?.value) {
|
|
11135
11141
|
let e = o.filterGroup?.fields ?? [];
|
|
11136
11142
|
for (let t of e) {
|
|
11137
11143
|
let e = a.value.has(t);
|
|
11138
|
-
if (e ===
|
|
11144
|
+
if (e === rf(t, n).includes("true")) continue;
|
|
11139
11145
|
i = !0, s.add(t);
|
|
11140
|
-
let r = e ?
|
|
11141
|
-
n =
|
|
11146
|
+
let r = e ? Fd(t, ["true"]) : null;
|
|
11147
|
+
n = tf(n, r, t);
|
|
11142
11148
|
}
|
|
11143
11149
|
}
|
|
11144
|
-
let c = U.value.filter((e) => e !== null), l =
|
|
11150
|
+
let c = U.value.filter((e) => e !== null), l = rf(J.value, e), u = new Set(l), d = new Set(c);
|
|
11145
11151
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
11146
11152
|
}
|
|
11147
|
-
if (r?.skipIfUnchanged &&
|
|
11153
|
+
if (r?.skipIfUnchanged && ef(e, n)) return;
|
|
11148
11154
|
if (N(Z.value ? Q() : new Set([J.value, ...s]), X.value), X.value) h.value = n;
|
|
11149
11155
|
else {
|
|
11150
11156
|
let e = n;
|
|
@@ -11156,26 +11162,26 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11156
11162
|
}
|
|
11157
11163
|
let s = U.value.length > 0 ? U.value : null;
|
|
11158
11164
|
if (r?.skipIfUnchanged) {
|
|
11159
|
-
let e =
|
|
11165
|
+
let e = Jd(t.value, l.value.getFilterModel());
|
|
11160
11166
|
if (Me(U.value, e)) return;
|
|
11161
11167
|
}
|
|
11162
11168
|
if (X.value) {
|
|
11163
|
-
let e = await
|
|
11169
|
+
let e = await qd(l.value, t.value, s);
|
|
11164
11170
|
N(new Set([J.value]), !0), h.value = {
|
|
11165
11171
|
...h.value,
|
|
11166
11172
|
[J.value]: e
|
|
11167
11173
|
};
|
|
11168
11174
|
return;
|
|
11169
11175
|
}
|
|
11170
|
-
let c = await
|
|
11176
|
+
let c = await qd(l.value, t.value, s);
|
|
11171
11177
|
N(new Set([J.value])), l.value.setColumnFilterModel(J.value, c).then(() => {
|
|
11172
11178
|
l.value && l.value.onFilterChanged();
|
|
11173
11179
|
});
|
|
11174
11180
|
}, bt = r(() => X.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
11175
11181
|
xt = !0;
|
|
11176
11182
|
let n = q.value || "";
|
|
11177
|
-
|
|
11178
|
-
|
|
11183
|
+
Su(() => {
|
|
11184
|
+
xu("filter_bulk_action", {
|
|
11179
11185
|
filter_name: Y.value,
|
|
11180
11186
|
filter_field: J.value,
|
|
11181
11187
|
action: e,
|
|
@@ -11185,7 +11191,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11185
11191
|
}, c());
|
|
11186
11192
|
});
|
|
11187
11193
|
}, Ct = (e) => !Z.value || e == null ? J.value : He(Ve(e)) || ($e(e).field ?? J.value), wt = (e, t, n, r) => {
|
|
11188
|
-
|
|
11194
|
+
xu("filter_option_selected", {
|
|
11189
11195
|
filter_name: Y.value,
|
|
11190
11196
|
filter_field: Ct(e),
|
|
11191
11197
|
selected_value: qe(e),
|
|
@@ -11208,7 +11214,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11208
11214
|
};
|
|
11209
11215
|
}, Et = (e, t) => {
|
|
11210
11216
|
let n = Tt(e), r = Tt(t);
|
|
11211
|
-
|
|
11217
|
+
Su(() => {
|
|
11212
11218
|
let e = no(t);
|
|
11213
11219
|
for (let t of r.selected) n.selected.has(t) || wt(t, "select", "click", e);
|
|
11214
11220
|
for (let t of n.selected) r.selected.has(t) || wt(t, "deselect", "click", e);
|
|
@@ -11233,7 +11239,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11233
11239
|
let o = e != null && (U.value.includes(e) || a != null && Le(a)), s = U.value.slice();
|
|
11234
11240
|
if (e && ve.value ? U.value = [e] : e && !o && (U.value = [...U.value, e]), e != null && !o) {
|
|
11235
11241
|
let t = U.value.length, n = ve.value;
|
|
11236
|
-
|
|
11242
|
+
Su(() => {
|
|
11237
11243
|
if (n) for (let n of s) n !== e && wt(n, "deselect", r, t);
|
|
11238
11244
|
wt(e, "select", r, t);
|
|
11239
11245
|
});
|
|
@@ -11246,7 +11252,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11246
11252
|
let a = U.value.includes(e);
|
|
11247
11253
|
if (U.value = U.value.filter((t) => t !== e), e != null && a) {
|
|
11248
11254
|
let t = U.value.length;
|
|
11249
|
-
|
|
11255
|
+
Su(() => {
|
|
11250
11256
|
wt(e, "deselect", r, t);
|
|
11251
11257
|
});
|
|
11252
11258
|
}
|
|
@@ -11274,7 +11280,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11274
11280
|
} finally {
|
|
11275
11281
|
r && (me.value = !1);
|
|
11276
11282
|
}
|
|
11277
|
-
}, Nt = (e, n) =>
|
|
11283
|
+
}, Nt = (e, n) => Jl({
|
|
11278
11284
|
baseModel: n,
|
|
11279
11285
|
colDef: t.value,
|
|
11280
11286
|
options: rt(),
|
|
@@ -11285,7 +11291,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11285
11291
|
if (n?.skipIfUnchanged && r === Pe.value) return Ne.value = e, !1;
|
|
11286
11292
|
if (Ne.value = e, ut(e), Ms(t.value).length === 0) return !1;
|
|
11287
11293
|
let a = X.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
11288
|
-
if (n?.skipIfUnchanged &&
|
|
11294
|
+
if (n?.skipIfUnchanged && ef(a, o)) return Pe.value = r, !1;
|
|
11289
11295
|
if (X.value) h.value = o;
|
|
11290
11296
|
else {
|
|
11291
11297
|
let e = o;
|
|
@@ -11296,7 +11302,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11296
11302
|
return Pe.value = r, N(Q(), X.value), i?.(), !0;
|
|
11297
11303
|
}, Ft = (e) => {
|
|
11298
11304
|
if (!Z.value || !Ms(t.value).length) return;
|
|
11299
|
-
let n =
|
|
11305
|
+
let n = Xl({
|
|
11300
11306
|
colDef: t.value,
|
|
11301
11307
|
model: e,
|
|
11302
11308
|
options: rt()
|
|
@@ -11319,10 +11325,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11319
11325
|
if (Z.value) {
|
|
11320
11326
|
let r = Ms(t.value);
|
|
11321
11327
|
for (let t of r) {
|
|
11322
|
-
let r =
|
|
11328
|
+
let r = rf(t, n);
|
|
11323
11329
|
e.push(...r);
|
|
11324
11330
|
}
|
|
11325
|
-
} else e =
|
|
11331
|
+
} else e = rf(J.value, n);
|
|
11326
11332
|
U.value = e;
|
|
11327
11333
|
return;
|
|
11328
11334
|
}
|
|
@@ -11335,11 +11341,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11335
11341
|
return;
|
|
11336
11342
|
}
|
|
11337
11343
|
if (H.value) {
|
|
11338
|
-
let e = p.value, t =
|
|
11344
|
+
let e = p.value, t = rf(J.value, e);
|
|
11339
11345
|
Ie(U.value.some((e) => e !== null && !t.includes(e)));
|
|
11340
11346
|
return;
|
|
11341
11347
|
}
|
|
11342
|
-
let e =
|
|
11348
|
+
let e = Jd(t.value, p.value);
|
|
11343
11349
|
Ie(U.value.some((t) => !e.includes(t)));
|
|
11344
11350
|
}, { deep: !0 }), W(() => g.value, () => {
|
|
11345
11351
|
U.value = [], Ne.value = [], Pe.value = "[]";
|
|
@@ -11362,8 +11368,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11362
11368
|
let t = e.toLocaleLowerCase(), n = gt.value;
|
|
11363
11369
|
return Z.value ? ro(n, t, !0).length : n.filter((e) => e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)).length;
|
|
11364
11370
|
}, zt = (e) => {
|
|
11365
|
-
|
|
11366
|
-
|
|
11371
|
+
Su(() => {
|
|
11372
|
+
xu("filter_search", {
|
|
11367
11373
|
filter_name: Y.value,
|
|
11368
11374
|
filter_field: J.value,
|
|
11369
11375
|
query: e,
|
|
@@ -11390,7 +11396,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11390
11396
|
P(J.value);
|
|
11391
11397
|
let e = Ms(t.value);
|
|
11392
11398
|
if (e.length && ee(J.value, e), Ie(), Z.value && H.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
11393
|
-
let e = Z.value || (Ts(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && H.value ? Ms(t.value).some((e) =>
|
|
11399
|
+
let e = Z.value || (Ts(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && H.value ? Ms(t.value).some((e) => rf(e, p.value).length > 0) : U.value.length > 0;
|
|
11394
11400
|
e && n && d(t.value, {
|
|
11395
11401
|
api: l.value,
|
|
11396
11402
|
filterModel: p.value ?? void 0
|
|
@@ -11451,26 +11457,26 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11451
11457
|
disableFilterValue: Ye,
|
|
11452
11458
|
updateFilterModelWithSelectedValues: yt
|
|
11453
11459
|
};
|
|
11454
|
-
},
|
|
11460
|
+
}, bf = {
|
|
11455
11461
|
key: 0,
|
|
11456
11462
|
role: "list",
|
|
11457
11463
|
class: "pv-popover-list"
|
|
11458
|
-
},
|
|
11464
|
+
}, xf = ["data-active"], Sf = { key: 1 }, Cf = {
|
|
11459
11465
|
key: 1,
|
|
11460
11466
|
class: "pv-flex pv-inset-square-8",
|
|
11461
11467
|
style: { "justify-content": "center" }
|
|
11462
|
-
},
|
|
11468
|
+
}, wf = /* @__PURE__ */ d({
|
|
11463
11469
|
__name: "FilterGroupMenu",
|
|
11464
11470
|
props: { filterColDef: {} },
|
|
11465
11471
|
setup(e, { expose: n }) {
|
|
11466
|
-
let s = e, c = m(
|
|
11472
|
+
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(() => Ts(s.filterColDef).filterGroup), w = (e) => {
|
|
11467
11473
|
let t = new Set(e);
|
|
11468
11474
|
s.filterColDef.field && t.add(s.filterColDef.field), h(t);
|
|
11469
|
-
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } =
|
|
11475
|
+
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } = vu({
|
|
11470
11476
|
alignment: "top right",
|
|
11471
11477
|
useTeleport: !0
|
|
11472
11478
|
}), N = (e) => {
|
|
11473
|
-
let t =
|
|
11479
|
+
let t = of(f.value, e);
|
|
11474
11480
|
return t !== null && t.length > 0 && t.includes("true");
|
|
11475
11481
|
}, ee = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
11476
11482
|
if (!p.value || !c.value) return;
|
|
@@ -11492,7 +11498,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11492
11498
|
if (!c.value) return;
|
|
11493
11499
|
let t = _.value.has(e);
|
|
11494
11500
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
11495
|
-
let n =
|
|
11501
|
+
let n = tf(c.value.getAdvancedFilterModel(), t ? null : Fd(e, ["true"]), e);
|
|
11496
11502
|
w(new Set([e])), v(() => {
|
|
11497
11503
|
c.value?.setAdvancedFilterModel(n);
|
|
11498
11504
|
});
|
|
@@ -11504,7 +11510,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11504
11510
|
return;
|
|
11505
11511
|
}
|
|
11506
11512
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
11507
|
-
for (let r of e) _.value.has(r) || (t =
|
|
11513
|
+
for (let r of e) _.value.has(r) || (t = tf(t, Fd(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
11508
11514
|
n.size > 0 && (w(n), v(() => {
|
|
11509
11515
|
c.value?.setAdvancedFilterModel(t);
|
|
11510
11516
|
}));
|
|
@@ -11515,7 +11521,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11515
11521
|
return;
|
|
11516
11522
|
}
|
|
11517
11523
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
11518
|
-
for (let n of C.value.fields) e =
|
|
11524
|
+
for (let n of C.value.fields) e = nf(e, n), _.value.delete(n), t.add(n);
|
|
11519
11525
|
w(t), v(() => {
|
|
11520
11526
|
c.value?.setAdvancedFilterModel(e);
|
|
11521
11527
|
});
|
|
@@ -11578,7 +11584,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11578
11584
|
}
|
|
11579
11585
|
}, {
|
|
11580
11586
|
default: G(() => [
|
|
11581
|
-
x.value && ne.value.length > 0 ? (D(), o("ul",
|
|
11587
|
+
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", {
|
|
11582
11588
|
key: 0,
|
|
11583
11589
|
"data-active": e.isSelected ? "true" : null
|
|
11584
11590
|
}, [u(Fo, {
|
|
@@ -11593,7 +11599,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11593
11599
|
"text",
|
|
11594
11600
|
"selectedIds",
|
|
11595
11601
|
"onHandleSelected"
|
|
11596
|
-
])], 8,
|
|
11602
|
+
])], 8, xf)) : (D(), o("li", Sf, [u(Ha, {
|
|
11597
11603
|
variant: "dark",
|
|
11598
11604
|
size: "sm",
|
|
11599
11605
|
"tooltip-position": "bottom-right",
|
|
@@ -11610,8 +11616,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11610
11616
|
"tooltip-content": G(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
11611
11617
|
_: 2
|
|
11612
11618
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
11613
|
-
x.value && te.value ? (D(), o("div",
|
|
11614
|
-
x.value ? (D(), i(
|
|
11619
|
+
x.value && te.value ? (D(), o("div", Cf, [u(Ot, { variant: "dark" })])) : a("", !0),
|
|
11620
|
+
x.value ? (D(), i(tl, {
|
|
11615
11621
|
key: 2,
|
|
11616
11622
|
class: "pv-border-top pv-inset-square-8",
|
|
11617
11623
|
style: { "padding-top": "8px" },
|
|
@@ -11624,7 +11630,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11624
11630
|
_: 1
|
|
11625
11631
|
}, 8, ["class", "css-custom-properties"])])), [[z(tt), [R, { ignore: [".pv-popover"] }]]]);
|
|
11626
11632
|
}
|
|
11627
|
-
}),
|
|
11633
|
+
}), Tf = {
|
|
11628
11634
|
key: 0,
|
|
11629
11635
|
role: "list",
|
|
11630
11636
|
class: "pv-flex pv-stack-4",
|
|
@@ -11632,37 +11638,37 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11632
11638
|
"--flex-wrap": "wrap",
|
|
11633
11639
|
"max-width": "100%"
|
|
11634
11640
|
}
|
|
11635
|
-
},
|
|
11641
|
+
}, Ef = {
|
|
11636
11642
|
key: 0,
|
|
11637
11643
|
style: {
|
|
11638
11644
|
"max-width": "100%",
|
|
11639
11645
|
"line-height": "1rem"
|
|
11640
11646
|
}
|
|
11641
|
-
},
|
|
11647
|
+
}, Df = {
|
|
11642
11648
|
key: 0,
|
|
11643
11649
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
11644
11650
|
style: { "--inset-size": "4px" }
|
|
11645
|
-
},
|
|
11651
|
+
}, Of = {
|
|
11646
11652
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
11647
11653
|
style: { "--inset-size": "8px" }
|
|
11648
|
-
},
|
|
11654
|
+
}, kf = {
|
|
11649
11655
|
class: "pv-inset-inline",
|
|
11650
11656
|
style: { "--inset-size": "8px" }
|
|
11651
|
-
},
|
|
11657
|
+
}, Af = {
|
|
11652
11658
|
key: 0,
|
|
11653
11659
|
class: "pv-full-width"
|
|
11654
|
-
},
|
|
11660
|
+
}, jf = {
|
|
11655
11661
|
key: 0,
|
|
11656
11662
|
class: "pv-flex-inline",
|
|
11657
11663
|
style: { "max-width": "100%" }
|
|
11658
|
-
},
|
|
11664
|
+
}, Mf = {
|
|
11659
11665
|
role: "list",
|
|
11660
11666
|
class: "pv-flex",
|
|
11661
11667
|
style: {
|
|
11662
11668
|
"--flex-wrap": "wrap",
|
|
11663
11669
|
"max-width": "100%"
|
|
11664
11670
|
}
|
|
11665
|
-
},
|
|
11671
|
+
}, Nf = { class: "pv-text-subdued pv-text-body-xxs" }, Pf = 4, Ff = /* @__PURE__ */ d({
|
|
11666
11672
|
__name: "SetFilter",
|
|
11667
11673
|
props: {
|
|
11668
11674
|
enableFocusView: {
|
|
@@ -11691,14 +11697,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11691
11697
|
"handle-settings-icon"
|
|
11692
11698
|
],
|
|
11693
11699
|
setup(e, { emit: n }) {
|
|
11694
|
-
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: K, filterFooterPosition: oe, filterOptionsSortDescription: se, filterOptionsSortTooltip: ce, filterValueContext: q, formatDisplayValue: le, resolvedFilterValueContext: ue, isUnresolvedMetadataValue: J, getLatestFilterValues: de, addSelectedValue: Y, removeSelectedValue: X, recordBulkAction: fe, rumLocation: pe, handleDropdownOpen: me, handleDropdownClosed: he, handleSeeMore: ge, getColDisplayNameForField: _e, hasMoreOptions: ve, totalOptionCount: ye, isAggregate: be, cascadeSelectionState: xe, cascadeSelectionStateModel: Se } =
|
|
11700
|
+
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: K, filterFooterPosition: oe, filterOptionsSortDescription: se, filterOptionsSortTooltip: ce, filterValueContext: q, formatDisplayValue: le, resolvedFilterValueContext: ue, isUnresolvedMetadataValue: J, getLatestFilterValues: de, addSelectedValue: Y, 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({
|
|
11695
11701
|
filterColDef: L(d, "filterColDef"),
|
|
11696
11702
|
filterStyle: L(d, "filterStyle"),
|
|
11697
11703
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
11698
11704
|
filterGroupStagedFields: x,
|
|
11699
11705
|
readOnly: L(d, "readOnly"),
|
|
11700
11706
|
disableUnselected: L(d, "disableUnselected")
|
|
11701
|
-
}), Ce =
|
|
11707
|
+
}), Ce = bu(), { handleFocusUpdate: we, isFocused: Te, removeFocus: Ee, isFocusable: De, canRemoveFocus: Oe } = hd(), ke = (e) => {
|
|
11702
11708
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
11703
11709
|
if (e.id.startsWith("__")) {
|
|
11704
11710
|
let t = e.id.slice(2).split("__");
|
|
@@ -11739,7 +11745,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11739
11745
|
X(e, void 0, "remove_chip");
|
|
11740
11746
|
let t = ue(e)?.colField || F.value, n = je(e);
|
|
11741
11747
|
Te(n, t) && Oe() && Ee(n);
|
|
11742
|
-
}, Q = m(
|
|
11748
|
+
}, Q = m(Xu, k(!1)), Me = r(() => !!Ts(d.filterColDef).filterGroup && Q.value), Ne = null, Pe = null, Fe = () => {
|
|
11743
11749
|
try {
|
|
11744
11750
|
return be.value ? JSON.stringify(xe.value) : JSON.stringify([...C.value].sort());
|
|
11745
11751
|
} catch {
|
|
@@ -11753,8 +11759,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11753
11759
|
let t = Fe(), n = Pe != null && t != null && Pe !== t;
|
|
11754
11760
|
Pe = null;
|
|
11755
11761
|
let r = C.value.length;
|
|
11756
|
-
|
|
11757
|
-
|
|
11762
|
+
Su(() => {
|
|
11763
|
+
xu("filter_dropdown_closed", {
|
|
11758
11764
|
filter_name: I.value,
|
|
11759
11765
|
filter_field: F.value,
|
|
11760
11766
|
selection_count: r,
|
|
@@ -11769,7 +11775,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11769
11775
|
let t = ue(e)?.colField || F.value;
|
|
11770
11776
|
return Te(je(e), t);
|
|
11771
11777
|
}, ze = r(() => S.value > 0 ? !0 : be.value ? xe.value.length > 0 : C.value.length > 0);
|
|
11772
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [z(R) && z(C).length > 0 ? (D(), o("ul",
|
|
11778
|
+
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(J)(n) ? a("", !0) : (D(), o("li", Ef, [u(Oc, {
|
|
11773
11779
|
label: z(le)(n) || "",
|
|
11774
11780
|
showClear: !e.readOnly && (!Re(n) || z(Oe)()),
|
|
11775
11781
|
disabled: e.readOnly,
|
|
@@ -11779,7 +11785,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11779
11785
|
"showClear",
|
|
11780
11786
|
"disabled",
|
|
11781
11787
|
"onHandleClose"
|
|
11782
|
-
])]))], 64))), 128))])) : a("", !0), u(z(
|
|
11788
|
+
])]))], 64))), 128))])) : a("", !0), u(z(cl), {
|
|
11783
11789
|
modelValue: z(ne),
|
|
11784
11790
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null,
|
|
11785
11791
|
disabled: !z(R) && e.readOnly && e.disableUnselected && !ze.value,
|
|
@@ -11833,7 +11839,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11833
11839
|
onSelectAll: r[4] ||= (e) => z(fe)("select_all", e),
|
|
11834
11840
|
onClearAll: r[5] ||= (e) => z(fe)("clear_all", e)
|
|
11835
11841
|
}, c({
|
|
11836
|
-
preferences: G(() => [s("div",
|
|
11842
|
+
preferences: G(() => [s("div", Of, [r[7] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(z(da), {
|
|
11837
11843
|
variant: "dark",
|
|
11838
11844
|
size: "sm",
|
|
11839
11845
|
"use-teleport": !0
|
|
@@ -11847,7 +11853,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11847
11853
|
content: G(() => [...r[6] ||= [l(" Open Preferences ", -1)]]),
|
|
11848
11854
|
_: 1
|
|
11849
11855
|
})])]),
|
|
11850
|
-
suggestions: G(() => [s("div",
|
|
11856
|
+
suggestions: G(() => [s("div", kf, [u(z(da), {
|
|
11851
11857
|
variant: "dark",
|
|
11852
11858
|
disableInteractive: !0,
|
|
11853
11859
|
position: "top-left",
|
|
@@ -11867,8 +11873,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11867
11873
|
z(ae) || Me.value || z(j) ? {
|
|
11868
11874
|
name: "header",
|
|
11869
11875
|
fn: G((t) => [
|
|
11870
|
-
z(j) ? (D(), o("p",
|
|
11871
|
-
Me.value ? (D(), i(
|
|
11876
|
+
z(j) ? (D(), o("p", Df, " Type " + P(z(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
11877
|
+
Me.value ? (D(), i(wf, {
|
|
11872
11878
|
key: 1,
|
|
11873
11879
|
ref_key: "filterGroupMenuRef",
|
|
11874
11880
|
ref: g,
|
|
@@ -11889,7 +11895,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11889
11895
|
fn: G((e) => [(D(), i(N(z(K)), b(p(e)), null, 16))]),
|
|
11890
11896
|
key: "2"
|
|
11891
11897
|
} : void 0
|
|
11892
|
-
]), 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",
|
|
11898
|
+
]), 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(da), {
|
|
11893
11899
|
variant: "dark",
|
|
11894
11900
|
disableInteractive: !0,
|
|
11895
11901
|
position: "bottom-left",
|
|
@@ -11897,20 +11903,20 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11897
11903
|
"use-teleport": !0,
|
|
11898
11904
|
style: { "--max-width": "200px" }
|
|
11899
11905
|
}, c({
|
|
11900
|
-
trigger: G(() => [s("li",
|
|
11906
|
+
trigger: G(() => [s("li", Nf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(ce) ? "pv-set-filter-suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11901
11907
|
_: 2
|
|
11902
11908
|
}, [z(ce) ? {
|
|
11903
11909
|
name: "content",
|
|
11904
11910
|
fn: G(() => [l(P(z(ce)), 1)]),
|
|
11905
11911
|
key: "0"
|
|
11906
|
-
} : void 0]), 1024), (D(!0), o(t, null, A(z(te).filter((e) => e !== "" && e != null).slice(0,
|
|
11912
|
+
} : void 0]), 1024), (D(!0), o(t, null, A(z(te).filter((e) => e !== "" && e != null).slice(0, Pf), (e) => (D(), o("li", {
|
|
11907
11913
|
key: `${z(I)}-${e}-suggest`,
|
|
11908
11914
|
class: y(z(w) ? "pv-shimmer" : ""),
|
|
11909
11915
|
style: {
|
|
11910
11916
|
"max-width": "100%",
|
|
11911
11917
|
"line-height": "1rem"
|
|
11912
11918
|
}
|
|
11913
|
-
}, [u(z(
|
|
11919
|
+
}, [u(z(zc), {
|
|
11914
11920
|
disabled: z(w),
|
|
11915
11921
|
label: z(le)(e) || "",
|
|
11916
11922
|
onHandleClick: (t) => z(Y)(e, z(q)(z(F), e)?.colField)
|
|
@@ -11920,26 +11926,26 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11920
11926
|
"onHandleClick"
|
|
11921
11927
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
11922
11928
|
}
|
|
11923
|
-
}),
|
|
11929
|
+
}), If = .5, Lf = ({ itemWidths: e, containerWidth: t, trailingWidth: n, gap: r, pinnedIndex: i }) => {
|
|
11924
11930
|
let a = /* @__PURE__ */ new Set(), o = n, s = +(n > 0), c = (n) => {
|
|
11925
11931
|
let i = o + e[n] + (s > 0 ? r : 0);
|
|
11926
|
-
return i > t +
|
|
11932
|
+
return i > t + If ? !1 : (o = i, s += 1, a.add(n), !0);
|
|
11927
11933
|
}, l = i !== void 0 && i >= 0 && i < e.length;
|
|
11928
11934
|
l && c(i);
|
|
11929
11935
|
for (let t = 0; t < e.length && !(!(l && t === i) && !c(t)); t++);
|
|
11930
11936
|
return a;
|
|
11931
|
-
},
|
|
11937
|
+
}, Rf = ["inert"], zf = { class: "pv-flex pv-space-between pv-stack-8" }, Bf = { class: "pv-text-title-lg" }, Vf = {
|
|
11932
11938
|
id: "filter-vertical-drawer",
|
|
11933
11939
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
11934
11940
|
style: { height: "100%" }
|
|
11935
|
-
},
|
|
11941
|
+
}, 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 = {
|
|
11936
11942
|
class: "pv-flex",
|
|
11937
11943
|
style: {
|
|
11938
11944
|
"--flex-justify": "end",
|
|
11939
11945
|
"--flex-gap": "8px",
|
|
11940
11946
|
"margin-top": "auto"
|
|
11941
11947
|
}
|
|
11942
|
-
},
|
|
11948
|
+
}, Yf = /* @__PURE__ */ cn(/* @__PURE__ */ d({
|
|
11943
11949
|
__name: "FilterPanel",
|
|
11944
11950
|
props: {
|
|
11945
11951
|
enableFocusView: {
|
|
@@ -11972,7 +11978,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11972
11978
|
},
|
|
11973
11979
|
emits: ["handle-settings-icon"],
|
|
11974
11980
|
setup(e, { expose: n }) {
|
|
11975
|
-
let c = m(
|
|
11981
|
+
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) => Ms(e))), L = r(() => d.value.flatMap((e) => Ts(e).filterGroup?.fields ?? [])), R = (e) => {
|
|
11976
11982
|
let t = v.value;
|
|
11977
11983
|
if (!t) return !1;
|
|
11978
11984
|
let n = Ps(e) ? Ms(e) : [e.field || ""];
|
|
@@ -11982,7 +11988,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
11982
11988
|
}
|
|
11983
11989
|
let r = t;
|
|
11984
11990
|
return n.some((e) => !!r[e]);
|
|
11985
|
-
}, B = (e) => h.readOnly && !R(e), te = r(() => d.value.filter((e) =>
|
|
11991
|
+
}, 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) => {
|
|
11986
11992
|
let n = Ps(e), r = Ps(t);
|
|
11987
11993
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
11988
11994
|
})), V = r(() => te.value), ne = r(() => {
|
|
@@ -12018,7 +12024,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12018
12024
|
let Y = r(() => {
|
|
12019
12025
|
let e = re.value.map((e) => e.field || ""), t = f.value ? e.indexOf(f.value.field || "") : -1;
|
|
12020
12026
|
if (!ie.value || !ae.value) return new Set(e);
|
|
12021
|
-
let n =
|
|
12027
|
+
let n = Lf({
|
|
12022
12028
|
itemWidths: e.map((e) => ce.value[e] ?? 0),
|
|
12023
12029
|
containerWidth: K.value,
|
|
12024
12030
|
trailingWidth: se.value,
|
|
@@ -12058,7 +12064,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12058
12064
|
});
|
|
12059
12065
|
}
|
|
12060
12066
|
}
|
|
12061
|
-
}, { clearAllFocuses: ge } =
|
|
12067
|
+
}, { clearAllFocuses: ge } = hd(), _e = () => {
|
|
12062
12068
|
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);
|
|
12063
12069
|
}, ve = () => {
|
|
12064
12070
|
N.value = !1, F.value = "";
|
|
@@ -12089,7 +12095,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12089
12095
|
ref: (e) => de(r.field || "", e),
|
|
12090
12096
|
class: y(["pv-filter-panel-item", { "pv-filter-panel-item-collapsed": !Y.value.has(r.field || "") }]),
|
|
12091
12097
|
inert: !Y.value.has(r.field || "") || void 0
|
|
12092
|
-
}, [u(
|
|
12098
|
+
}, [u(Ff, {
|
|
12093
12099
|
"enable-focus-view": h.enableFocusView,
|
|
12094
12100
|
"display-preferences-icon": h.displayPreferencesIcon,
|
|
12095
12101
|
"focus-text": h.focusText,
|
|
@@ -12104,7 +12110,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12104
12110
|
"filterColDef",
|
|
12105
12111
|
"read-only",
|
|
12106
12112
|
"disable-unselected"
|
|
12107
|
-
])], 10,
|
|
12113
|
+
])], 10, Rf)) : a("", !0)], 64))), 128)),
|
|
12108
12114
|
s("div", {
|
|
12109
12115
|
ref_key: "filterActionsRef",
|
|
12110
12116
|
ref: U,
|
|
@@ -12132,7 +12138,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12132
12138
|
variant: "tertiary"
|
|
12133
12139
|
}, null, 8, ["value"])) : a("", !0)
|
|
12134
12140
|
])) : a("", !0)], 512),
|
|
12135
|
-
h.enableVerticalPanel ? (D(), i(z(
|
|
12141
|
+
h.enableVerticalPanel ? (D(), i(z($c), {
|
|
12136
12142
|
key: 0,
|
|
12137
12143
|
modelValue: N.value,
|
|
12138
12144
|
"onUpdate:modelValue": n[9] ||= (e) => N.value = e,
|
|
@@ -12144,7 +12150,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12144
12150
|
"z-index": "10"
|
|
12145
12151
|
}
|
|
12146
12152
|
}, {
|
|
12147
|
-
header: G(() => [s("div",
|
|
12153
|
+
header: G(() => [s("div", zf, [s("p", Bf, "All Filters (" + P(V.value.length) + ")", 1), s("button", {
|
|
12148
12154
|
class: "pv-button-ghost",
|
|
12149
12155
|
"aria-label": "Close",
|
|
12150
12156
|
onClick: n[2] ||= (e) => ye()
|
|
@@ -12153,7 +12159,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12153
12159
|
"onUpdate:modelValue": n[3] ||= (e) => F.value = e,
|
|
12154
12160
|
placeholder: "Search Filters"
|
|
12155
12161
|
}, null, 8, ["modelValue"])]),
|
|
12156
|
-
footer: G(() => [s("div",
|
|
12162
|
+
footer: G(() => [s("div", Kf, [h.readOnly ? (D(), i(z(Qn), {
|
|
12157
12163
|
key: 1,
|
|
12158
12164
|
variant: "ghost",
|
|
12159
12165
|
label: "Close",
|
|
@@ -12162,7 +12168,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12162
12168
|
class: "pv-button-ghost",
|
|
12163
12169
|
"data-dd-action-name": "Clear all page filters",
|
|
12164
12170
|
onClick: n[5] ||= (e) => _e()
|
|
12165
|
-
}, " Clear All "), s("div",
|
|
12171
|
+
}, " Clear All "), s("div", qf, [u(z(Qn), {
|
|
12166
12172
|
variant: "ghost",
|
|
12167
12173
|
label: "Cancel",
|
|
12168
12174
|
"data-dd-action-name": "Cancel filter changes",
|
|
@@ -12179,7 +12185,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12179
12185
|
label: "No Changes",
|
|
12180
12186
|
disabled: ""
|
|
12181
12187
|
}))])], 64))])]),
|
|
12182
|
-
default: G(() => [s("div",
|
|
12188
|
+
default: G(() => [s("div", Vf, [s("div", Hf, [(D(!0), o(t, null, A(ne.value, (t, r) => (D(), o("div", {
|
|
12183
12189
|
key: t.field,
|
|
12184
12190
|
class: y([{ "pv-border-bottom": r < ne.value.length - 1 }, "pv-stack-12"])
|
|
12185
12191
|
}, [s("details", {
|
|
@@ -12189,7 +12195,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12189
12195
|
class: "pv-flex pv-full-width",
|
|
12190
12196
|
"data-dd-action-name": `Expand ${t.headerName} section`,
|
|
12191
12197
|
onClick: (e) => B(t) && e.preventDefault()
|
|
12192
|
-
}, [s("span",
|
|
12198
|
+
}, [s("span", Gf, P(t.headerName), 1)], 8, Wf), s("div", null, [z(c) ? (D(), i(Ff, {
|
|
12193
12199
|
key: 0,
|
|
12194
12200
|
"filter-style": "vertical",
|
|
12195
12201
|
"enable-focus-view": h.enableFocusView,
|
|
@@ -12207,7 +12213,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12207
12213
|
"focus-text",
|
|
12208
12214
|
"read-only",
|
|
12209
12215
|
"disable-unselected"
|
|
12210
|
-
])) : a("", !0)])], 10,
|
|
12216
|
+
])) : a("", !0)])], 10, Uf)], 2))), 128))])])]),
|
|
12211
12217
|
_: 1
|
|
12212
12218
|
}, 8, ["modelValue"])) : a("", !0)
|
|
12213
12219
|
], 6), u(z(Pc), {
|
|
@@ -12216,7 +12222,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12216
12222
|
header: "Clear All Filters"
|
|
12217
12223
|
}, {
|
|
12218
12224
|
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)]]),
|
|
12219
|
-
footer: G(() => [s("div",
|
|
12225
|
+
footer: G(() => [s("div", Jf, [u(z(Qn), {
|
|
12220
12226
|
label: "Cancel",
|
|
12221
12227
|
variant: "secondary",
|
|
12222
12228
|
size: "lg",
|
|
@@ -12232,18 +12238,18 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12232
12238
|
_: 1
|
|
12233
12239
|
}, 8, ["modelValue"])], 64));
|
|
12234
12240
|
}
|
|
12235
|
-
}), [["__scopeId", "data-v-a59c5643"]]),
|
|
12241
|
+
}), [["__scopeId", "data-v-a59c5643"]]), Xf = { key: 2 }, Zf = { style: {
|
|
12236
12242
|
"max-width": "220px",
|
|
12237
12243
|
"white-space": "normal",
|
|
12238
12244
|
"overflow-wrap": "break-word"
|
|
12239
|
-
} },
|
|
12245
|
+
} }, Qf = {
|
|
12240
12246
|
key: 0,
|
|
12241
12247
|
class: "pv-flex ag-header-actions"
|
|
12242
|
-
},
|
|
12248
|
+
}, $f = /* @__PURE__ */ d({
|
|
12243
12249
|
__name: "HeaderCellRenderer",
|
|
12244
12250
|
props: { params: {} },
|
|
12245
12251
|
setup(e, { expose: t }) {
|
|
12246
|
-
let n = m(
|
|
12252
|
+
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(() => {
|
|
12247
12253
|
let e = l.params.column.getColDef();
|
|
12248
12254
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
12249
12255
|
}), C = r(() => {
|
|
@@ -12333,7 +12339,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12333
12339
|
"popoverProperties",
|
|
12334
12340
|
"icon",
|
|
12335
12341
|
"label"
|
|
12336
|
-
])) : (D(), o("p",
|
|
12342
|
+
])) : (D(), o("p", Xf, P(p.value), 1)),
|
|
12337
12343
|
g.value ? (D(), i(da, {
|
|
12338
12344
|
key: 3,
|
|
12339
12345
|
variant: "white",
|
|
@@ -12350,14 +12356,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12350
12356
|
class: "pv-text-subdued",
|
|
12351
12357
|
onClick: t[2] ||= oe(() => {}, ["stop"])
|
|
12352
12358
|
})]),
|
|
12353
|
-
content: G(() => [s("div",
|
|
12359
|
+
content: G(() => [s("div", Zf, P(g.value), 1)]),
|
|
12354
12360
|
_: 1
|
|
12355
12361
|
})) : a("", !0),
|
|
12356
12362
|
f.value && C.value !== "" ? (D(), i(Jn, {
|
|
12357
12363
|
key: 4,
|
|
12358
12364
|
name: C.value
|
|
12359
12365
|
}, null, 8, ["name"])) : a("", !0)
|
|
12360
|
-
], 6), b.value ? (D(), o("div",
|
|
12366
|
+
], 6), b.value ? (D(), o("div", Qf, [s("div", {
|
|
12361
12367
|
ref_key: "menuButton",
|
|
12362
12368
|
ref: _,
|
|
12363
12369
|
class: "ag-header-cell-menu-button",
|
|
@@ -12370,7 +12376,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12370
12376
|
onClick: oe(L, ["stop", "prevent"])
|
|
12371
12377
|
})], 4)])) : a("", !0)], 6));
|
|
12372
12378
|
}
|
|
12373
|
-
}),
|
|
12379
|
+
}), ep = {
|
|
12374
12380
|
backgroundColor: "var(--color-background-body, white)",
|
|
12375
12381
|
foregroundColor: "var(--color-text-body, #121313)",
|
|
12376
12382
|
headerHeight: "30px",
|
|
@@ -12387,14 +12393,14 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12387
12393
|
rangeSelectionBorderStyle: "solid",
|
|
12388
12394
|
menuBackgroundColor: "var(--color-background-body, white)",
|
|
12389
12395
|
accentColor: "var(--color-background-brand, #36c5ba)"
|
|
12390
|
-
},
|
|
12391
|
-
...
|
|
12396
|
+
}, tp = Ie.withParams({
|
|
12397
|
+
...ep,
|
|
12392
12398
|
headerRowBorder: !0,
|
|
12393
12399
|
rowHoverColor: "var(--color-background-table-hover, #f7f8f8)",
|
|
12394
12400
|
wrapperBorder: !0,
|
|
12395
12401
|
wrapperBorderRadius: "8px"
|
|
12396
|
-
}),
|
|
12397
|
-
...
|
|
12402
|
+
}), np = Ie.withParams({
|
|
12403
|
+
...ep,
|
|
12398
12404
|
headerRowBorder: !1,
|
|
12399
12405
|
rowHoverColor: "transparent",
|
|
12400
12406
|
wrapperBorder: !1,
|
|
@@ -12403,18 +12409,18 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12403
12409
|
rowBorder: !1,
|
|
12404
12410
|
columnBorder: !1,
|
|
12405
12411
|
rowHeight: "50px"
|
|
12406
|
-
}),
|
|
12407
|
-
"pv-data-table-base":
|
|
12412
|
+
}), rp = {
|
|
12413
|
+
"pv-data-table-base": tp,
|
|
12408
12414
|
"pv-data-table-grouped": Ie.withParams({
|
|
12409
|
-
...
|
|
12415
|
+
...ep,
|
|
12410
12416
|
headerRowBorder: !0,
|
|
12411
12417
|
rowHoverColor: "var(--color-background-table-hover, #f7f8f8)",
|
|
12412
12418
|
wrapperBorder: !0,
|
|
12413
12419
|
wrapperBorderRadius: "8px"
|
|
12414
12420
|
}),
|
|
12415
|
-
"pv-data-table-grouped-card":
|
|
12421
|
+
"pv-data-table-grouped-card": np,
|
|
12416
12422
|
"pv-data-table-classic": Ie.withParams({
|
|
12417
|
-
...
|
|
12423
|
+
...ep,
|
|
12418
12424
|
borderColor: "var(--color-border, #e3e7ea)",
|
|
12419
12425
|
headerHeight: "33px",
|
|
12420
12426
|
headerBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -12430,10 +12436,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12430
12436
|
wrapperBorder: !1,
|
|
12431
12437
|
wrapperBorderRadius: "0px"
|
|
12432
12438
|
})
|
|
12433
|
-
},
|
|
12439
|
+
}, ip = { class: "pv-popover-menu" }, ap = {
|
|
12434
12440
|
class: "pv-popover",
|
|
12435
12441
|
style: { "--height": "auto" }
|
|
12436
|
-
},
|
|
12442
|
+
}, op = ["disabled"], sp = /* @__PURE__ */ d({
|
|
12437
12443
|
__name: "ExportMenu",
|
|
12438
12444
|
props: { getCsvData: { type: Function } },
|
|
12439
12445
|
setup(e) {
|
|
@@ -12448,26 +12454,26 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12448
12454
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
12449
12455
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
12450
12456
|
}
|
|
12451
|
-
return (e, n) => (D(), o("nav",
|
|
12457
|
+
return (e, n) => (D(), o("nav", ip, [n[0] ||= s("button", {
|
|
12452
12458
|
type: "button",
|
|
12453
12459
|
class: "pv-button-icon"
|
|
12454
12460
|
}, [s("svg", {
|
|
12455
12461
|
"aria-hidden": "true",
|
|
12456
12462
|
class: "pv-icon-24"
|
|
12457
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
12463
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", ap, [s("button", {
|
|
12458
12464
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
12459
12465
|
onClick: oe(i, ["prevent"]),
|
|
12460
12466
|
disabled: r.value
|
|
12461
|
-
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
12467
|
+
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, op)])]));
|
|
12462
12468
|
}
|
|
12463
|
-
}),
|
|
12469
|
+
}), cp = /* @__PURE__ */ d({
|
|
12464
12470
|
__name: "PaginationPanel",
|
|
12465
12471
|
props: { panelSize: { default: "xl" } },
|
|
12466
12472
|
setup(e) {
|
|
12467
|
-
let t = m(
|
|
12473
|
+
let t = m(Eu, k(null)), n = m(Iu, k(1)), r = m(Lu, k(0)), i = e, a = (e) => {
|
|
12468
12474
|
e >= 1 && e <= r.value && t.value && t?.value.paginationGoToPage(e - 1);
|
|
12469
12475
|
};
|
|
12470
|
-
return (e, t) => (D(), o("div", { class: y({ "pv-hide": z(r) <= 1 }) }, [u(
|
|
12476
|
+
return (e, t) => (D(), o("div", { class: y({ "pv-hide": z(r) <= 1 }) }, [u(El, {
|
|
12471
12477
|
"model-value": z(n),
|
|
12472
12478
|
"onUpdate:modelValue": a,
|
|
12473
12479
|
"max-pages": z(r),
|
|
@@ -12478,7 +12484,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12478
12484
|
"size"
|
|
12479
12485
|
])], 2));
|
|
12480
12486
|
}
|
|
12481
|
-
}),
|
|
12487
|
+
}), lp = (e, t) => e.value?.querySelector(t) ?? null, up = (e) => {
|
|
12482
12488
|
let t = ee(null), n = ee(null), i = ee(null), a = k(0), o = (e) => de(e, void 0, { box: "border-box" }).height, s = o(t), c = o(n), l = o(i);
|
|
12483
12489
|
return {
|
|
12484
12490
|
contentHeight: r(() => {
|
|
@@ -12487,42 +12493,42 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12487
12493
|
return Math.ceil(a.value + s.value + c.value + (e ? l.value : 0));
|
|
12488
12494
|
}),
|
|
12489
12495
|
observe: () => v(() => {
|
|
12490
|
-
let r =
|
|
12491
|
-
a.value = r ? r.offsetHeight - r.clientHeight : 0, t.value =
|
|
12496
|
+
let r = lp(e, ".ag-root-wrapper");
|
|
12497
|
+
a.value = r ? r.offsetHeight - r.clientHeight : 0, t.value = lp(e, ".ag-header"), n.value = lp(e, ".ag-center-cols-container"), i.value = lp(e, ".ag-body-horizontal-scroll");
|
|
12492
12498
|
})
|
|
12493
12499
|
};
|
|
12494
|
-
},
|
|
12500
|
+
}, dp = (e, t) => {
|
|
12495
12501
|
let n = ee(null), r = k(t);
|
|
12496
12502
|
return Y(n, () => {
|
|
12497
|
-
let t =
|
|
12503
|
+
let t = lp(e, ".ag-pinned-left-header .ag-header-cell");
|
|
12498
12504
|
!t || !e.value || (r.value = Math.round(t.getBoundingClientRect().top - e.value.getBoundingClientRect().top));
|
|
12499
12505
|
}), {
|
|
12500
12506
|
height: r,
|
|
12501
12507
|
observe: () => v(() => {
|
|
12502
|
-
n.value =
|
|
12508
|
+
n.value = lp(e, ".ag-header");
|
|
12503
12509
|
})
|
|
12504
12510
|
};
|
|
12505
|
-
},
|
|
12511
|
+
}, fp = {
|
|
12506
12512
|
class: "pv-pivot-skeleton",
|
|
12507
12513
|
role: "status",
|
|
12508
12514
|
"aria-busy": "true",
|
|
12509
12515
|
"aria-label": "Loading table",
|
|
12510
12516
|
"data-testid": "pv-pivot-skeleton"
|
|
12511
|
-
},
|
|
12517
|
+
}, pp = { class: "pv-bordered-lg" }, mp = 4, hp = 2, gp = 8, _p = /* @__PURE__ */ d({
|
|
12512
12518
|
__name: "PivotTableSkeleton",
|
|
12513
12519
|
setup(e) {
|
|
12514
|
-
let n =
|
|
12515
|
-
return (e, c) => (D(), o("div",
|
|
12520
|
+
let n = mp * hp, r = { gridTemplateColumns: `minmax(160px, 1.5fr) repeat(${n}, minmax(0, 1fr))` }, i = (e) => _t[e % _t.length].slice(0, 7), a = (e) => e > 0 && (e - 1) % hp == 0;
|
|
12521
|
+
return (e, c) => (D(), o("div", fp, [s("div", {
|
|
12516
12522
|
class: "pv-pivot-skeleton__row pv-pivot-skeleton__tabs",
|
|
12517
12523
|
style: r
|
|
12518
|
-
}, [c[1] ||= s("div", null, null, -1), (D(), o(t, null, A(
|
|
12524
|
+
}, [c[1] ||= s("div", null, null, -1), (D(), o(t, null, A(mp, (e) => s("div", {
|
|
12519
12525
|
key: e,
|
|
12520
12526
|
class: "pv-pivot-group pv-relative pv-flex pv-flex-vertical pv-inset-squish-8",
|
|
12521
12527
|
style: x({
|
|
12522
|
-
gridColumn: `span ${
|
|
12528
|
+
gridColumn: `span ${hp}`,
|
|
12523
12529
|
"--pv-pivot-group-color": i(e - 1)
|
|
12524
12530
|
})
|
|
12525
|
-
}, [...c[0] ||= [s("div", { class: "pv-shimmer pv-pivot-skeleton__bar" }, null, -1)]], 4)), 64))]), s("div",
|
|
12531
|
+
}, [...c[0] ||= [s("div", { class: "pv-shimmer pv-pivot-skeleton__bar" }, null, -1)]], 4)), 64))]), s("div", pp, [(D(!0), o(t, null, A(gp + 1, (e) => (D(), o("div", {
|
|
12526
12532
|
key: e,
|
|
12527
12533
|
class: y(["pv-pivot-skeleton__row", e === 1 ? "pv-surface-accent pv-radius-lg-top" : "pv-border-top"]),
|
|
12528
12534
|
style: r
|
|
@@ -12531,10 +12537,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12531
12537
|
class: y(["pv-inset-squish-12", { "pv-border-left": a(e - 1) }])
|
|
12532
12538
|
}, [...c[2] ||= [s("div", { class: "pv-shimmer pv-pivot-skeleton__bar" }, null, -1)]], 2))), 128))], 2))), 128))])]));
|
|
12533
12539
|
}
|
|
12534
|
-
}),
|
|
12540
|
+
}), vp = {
|
|
12535
12541
|
key: 0,
|
|
12536
12542
|
class: "pv-tag"
|
|
12537
|
-
},
|
|
12543
|
+
}, yp = /* @__PURE__ */ d({
|
|
12538
12544
|
__name: "TagCellRenderer",
|
|
12539
12545
|
props: { params: {} },
|
|
12540
12546
|
setup(e) {
|
|
@@ -12542,12 +12548,12 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12542
12548
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
12543
12549
|
return e.trim() === "" ? null : e;
|
|
12544
12550
|
});
|
|
12545
|
-
return (e, t) => n.value ? (D(), o("div",
|
|
12551
|
+
return (e, t) => n.value ? (D(), o("div", vp, P(n.value), 1)) : a("", !0);
|
|
12546
12552
|
}
|
|
12547
|
-
}),
|
|
12553
|
+
}), bp = {
|
|
12548
12554
|
key: 0,
|
|
12549
12555
|
class: "pv-table-row-number pv-text-quaternary"
|
|
12550
|
-
},
|
|
12556
|
+
}, xp = /* @__PURE__ */ cn(/* @__PURE__ */ d({
|
|
12551
12557
|
__name: "RowCountCellRenderer",
|
|
12552
12558
|
props: { params: {} },
|
|
12553
12559
|
setup(e) {
|
|
@@ -12555,9 +12561,9 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12555
12561
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
12556
12562
|
return e && ks(e) ? n.toLocaleString() : n;
|
|
12557
12563
|
});
|
|
12558
|
-
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span",
|
|
12564
|
+
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span", bp, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
12559
12565
|
}
|
|
12560
|
-
}), [["__scopeId", "data-v-a6fadb75"]]),
|
|
12566
|
+
}), [["__scopeId", "data-v-a6fadb75"]]), Sp = 4, Cp = /* @__PURE__ */ d({
|
|
12561
12567
|
__name: "TableSearch",
|
|
12562
12568
|
props: {
|
|
12563
12569
|
placeholder: {},
|
|
@@ -12565,8 +12571,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12565
12571
|
size: {}
|
|
12566
12572
|
},
|
|
12567
12573
|
setup(e) {
|
|
12568
|
-
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(
|
|
12569
|
-
f(c.value ?
|
|
12574
|
+
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) => {
|
|
12575
|
+
f(c.value ? zd(e) : Rd(e));
|
|
12570
12576
|
}, h = async (e) => {
|
|
12571
12577
|
if (!s?.value || typeof s.value.setGridOption != "function") return;
|
|
12572
12578
|
if (!l.value) {
|
|
@@ -12628,7 +12634,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12628
12634
|
debounce: 300,
|
|
12629
12635
|
immediate: !0,
|
|
12630
12636
|
deep: !0
|
|
12631
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(
|
|
12637
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(_u, {
|
|
12632
12638
|
key: 0,
|
|
12633
12639
|
placeholder: e.placeholder,
|
|
12634
12640
|
"search-text": r.value,
|
|
@@ -12638,7 +12644,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12638
12644
|
options: a.value,
|
|
12639
12645
|
"onUpdate:options": s[2] ||= (e) => a.value = e,
|
|
12640
12646
|
"options-loading": o.value,
|
|
12641
|
-
"query-term-display-limit":
|
|
12647
|
+
"query-term-display-limit": Sp,
|
|
12642
12648
|
size: e.size
|
|
12643
12649
|
}, null, 8, [
|
|
12644
12650
|
"placeholder",
|
|
@@ -12659,10 +12665,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12659
12665
|
"modelValue"
|
|
12660
12666
|
]));
|
|
12661
12667
|
}
|
|
12662
|
-
}),
|
|
12668
|
+
}), wp = ["title"], Tp = { class: "pv-pivot-group-header__name pv-text-body-lg pv-text-medium" }, Ep = {
|
|
12663
12669
|
key: 0,
|
|
12664
12670
|
class: "pv-text-body-xs pv-text-subdued"
|
|
12665
|
-
},
|
|
12671
|
+
}, Dp = /* @__PURE__ */ d({
|
|
12666
12672
|
__name: "PvPivotGroupHeader",
|
|
12667
12673
|
props: { params: {} },
|
|
12668
12674
|
setup(e) {
|
|
@@ -12670,34 +12676,34 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12670
12676
|
class: "pv-pivot-group-header pv-flex-vertical pv-full-width pv-text-center",
|
|
12671
12677
|
"data-testid": "pv-pivot-group-header",
|
|
12672
12678
|
title: e.params.tooltip ?? e.params.displayName
|
|
12673
|
-
}, [s("span",
|
|
12679
|
+
}, [s("span", Tp, P(e.params.displayName), 1), e.params.subtitle ? (D(), o("span", Ep, P(e.params.subtitle), 1)) : a("", !0)], 8, wp));
|
|
12674
12680
|
}
|
|
12675
|
-
}),
|
|
12681
|
+
}), Op = {
|
|
12676
12682
|
style: {
|
|
12677
12683
|
"background-color": "var(--color-background-body, white)",
|
|
12678
12684
|
"max-width": "300px"
|
|
12679
12685
|
},
|
|
12680
12686
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
12681
|
-
},
|
|
12687
|
+
}, kp = { style: { color: "var(--color-text-body, black)" } }, Ap = /* @__PURE__ */ d({
|
|
12682
12688
|
__name: "TableTooltip",
|
|
12683
12689
|
props: { params: {} },
|
|
12684
12690
|
setup(e) {
|
|
12685
|
-
return (t, n) => (D(), o("div",
|
|
12691
|
+
return (t, n) => (D(), o("div", Op, [s("p", kp, P(e.params.value), 1)]));
|
|
12686
12692
|
}
|
|
12687
|
-
}),
|
|
12693
|
+
}), jp = { class: "pv-stack-16" }, Mp = { class: "pv-flex pv-space-between" }, Np = {
|
|
12688
12694
|
class: "pv-flex",
|
|
12689
12695
|
style: {
|
|
12690
12696
|
"--flex-gap": "8px",
|
|
12691
12697
|
flex: "1 1 0",
|
|
12692
12698
|
"min-width": "0"
|
|
12693
12699
|
}
|
|
12694
|
-
},
|
|
12700
|
+
}, Pp = {
|
|
12695
12701
|
key: 1,
|
|
12696
12702
|
class: "pv-table-overlay"
|
|
12697
|
-
},
|
|
12703
|
+
}, Fp = {
|
|
12698
12704
|
class: "pv-text-body-xs pv-text-center",
|
|
12699
12705
|
style: { "padding-top": "16px" }
|
|
12700
|
-
},
|
|
12706
|
+
}, Ip = /* @__PURE__ */ d({
|
|
12701
12707
|
__name: "PvDataTable",
|
|
12702
12708
|
props: {
|
|
12703
12709
|
allFieldsAreFocusable: {
|
|
@@ -12956,12 +12962,12 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12956
12962
|
let h = f.shrinkToContent && !f.layout, g = r(() => f.layout ? {} : {
|
|
12957
12963
|
[h ? "maxHeight" : "height"]: f.containerHeight,
|
|
12958
12964
|
minHeight: f.containerMinHeight
|
|
12959
|
-
}), w = k(null), T = h ?
|
|
12965
|
+
}), w = k(null), T = h ? up(w) : void 0, E = h ? {
|
|
12960
12966
|
position: "absolute",
|
|
12961
12967
|
top: 0,
|
|
12962
12968
|
left: 0
|
|
12963
12969
|
} : void 0, A = r(() => f.theme != null && typeof f.theme != "string"), M = r(() => f.theme && typeof f.theme == "string" ? f.theme : pt.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), N = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", F = r(() => {
|
|
12964
|
-
let e = A.value ? f.theme :
|
|
12970
|
+
let e = A.value ? f.theme : rp[M.value];
|
|
12965
12971
|
return V ? e.withParams({
|
|
12966
12972
|
rowHeight: "36px",
|
|
12967
12973
|
headerFontWeight: 500,
|
|
@@ -12975,10 +12981,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
12975
12981
|
...t.flatMap((e) => ot.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
12976
12982
|
]));
|
|
12977
12983
|
}, te = (e, t) => {
|
|
12978
|
-
if (
|
|
12984
|
+
if (Hd(e, t)) return !0;
|
|
12979
12985
|
let n = ot.find((e) => Ns(e) === t);
|
|
12980
|
-
return !!n && B(n).some((t) =>
|
|
12981
|
-
}, V = !!f.pivot, ne = V ?
|
|
12986
|
+
return !!n && B(n).some((t) => Hd(e, t));
|
|
12987
|
+
}, V = !!f.pivot, ne = V ? dp(w, 48) : void 0, re = r(() => ne ? { "--pv-pivot-corner-height": `${ne.height.value}px` } : void 0), ie = !V && "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
12982
12988
|
if (!vt.value) {
|
|
12983
12989
|
e.success({ rowData: [] }), mt.value = !0;
|
|
12984
12990
|
return;
|
|
@@ -13011,7 +13017,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13011
13017
|
filter: t.bucketMax
|
|
13012
13018
|
}]
|
|
13013
13019
|
};
|
|
13014
|
-
n =
|
|
13020
|
+
n = tf(n, i, e);
|
|
13015
13021
|
}
|
|
13016
13022
|
}), n && (e.request.filterModel = n);
|
|
13017
13023
|
} else {
|
|
@@ -13052,7 +13058,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13052
13058
|
}, f.serverSideRowHandler?.(e);
|
|
13053
13059
|
} } : null, H = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
13054
13060
|
let t = [], n = { ...Tt.value };
|
|
13055
|
-
t = !mt.value && dt ?
|
|
13061
|
+
t = !mt.value && dt ? of(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await At(e.colDef, {
|
|
13056
13062
|
api: e.api,
|
|
13057
13063
|
filterModel: n,
|
|
13058
13064
|
useStaged: !1
|
|
@@ -13072,19 +13078,19 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13072
13078
|
suppressColumnsToolPanel: !0,
|
|
13073
13079
|
minWidth: 150,
|
|
13074
13080
|
flex: 1,
|
|
13075
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
13081
|
+
headerComponent: f.enableInlineFilters ? void 0 : $f,
|
|
13076
13082
|
cellDataType: !1,
|
|
13077
|
-
tooltipComponent:
|
|
13083
|
+
tooltipComponent: Ap,
|
|
13078
13084
|
cellClass: (e) => hn(e.column) ? "" : ks(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
13079
13085
|
cellRendererSelector: (e) => {
|
|
13080
13086
|
if (K(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
13081
|
-
component:
|
|
13087
|
+
component: Ad,
|
|
13082
13088
|
params: e
|
|
13083
13089
|
};
|
|
13084
13090
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && !V && pt.value.length === 0) {
|
|
13085
13091
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
13086
13092
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
13087
|
-
component:
|
|
13093
|
+
component: xp,
|
|
13088
13094
|
params: e
|
|
13089
13095
|
};
|
|
13090
13096
|
}
|
|
@@ -13122,7 +13128,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13122
13128
|
let t = e.headerValueGetter;
|
|
13123
13129
|
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 || "";
|
|
13124
13130
|
}
|
|
13125
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Bt(e, r.dataType) : r.dataType === ys.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Rt(e, r.valueDecimals || 0) : r.dataType === ys.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Lt(e, r.valueDecimals || 0) : r.dataType === ys.Integer && !e.valueFormatter ? n.valueFormatter = zt : r.dataType === ys.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
13131
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Bt(e, r.dataType) : r.dataType === ys.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Rt(e, r.valueDecimals || 0) : r.dataType === ys.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Lt(e, r.valueDecimals || 0) : r.dataType === ys.Integer && !e.valueFormatter ? n.valueFormatter = zt : r.dataType === ys.Tag && !e.cellRenderer && (n.cellRenderer = yp), n;
|
|
13126
13132
|
}, J = (e) => e.colId || e.field || "", de = (e, t = () => null) => (f.colDefs ?? []).map((e, t) => ({
|
|
13127
13133
|
colDef: e,
|
|
13128
13134
|
index: t
|
|
@@ -13154,7 +13160,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13154
13160
|
};
|
|
13155
13161
|
}, it = f.colDefs?.map((e) => {
|
|
13156
13162
|
let t = { ...e };
|
|
13157
|
-
(ie || V) && H &&
|
|
13163
|
+
(ie || V) && H && Wd(e) && (t = Gd(e, H));
|
|
13158
13164
|
let n = e.context;
|
|
13159
13165
|
return n && (t = ue(t, n)), t;
|
|
13160
13166
|
}).filter((e) => e != null) || [], at = {
|
|
@@ -13170,13 +13176,13 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13170
13176
|
if (!V || !e) return e;
|
|
13171
13177
|
let t = { ...e };
|
|
13172
13178
|
return delete t.rowGroup, delete t.pivot, delete t.aggregation, t;
|
|
13173
|
-
}, dt = ut(
|
|
13179
|
+
}, dt = ut(Ld(f.initialGridState, ot, f.enableAdvancedFilter)), ft = k(null), pt = k([]), mt = m(Pu, k(!1)), ht = k(!1), gt = r(() => {
|
|
13174
13180
|
if (pt.value.length > 0) {
|
|
13175
13181
|
let e = pt.value[0], t = ot.find((t) => t.field === e), n = Tt.value, r = !n;
|
|
13176
|
-
if (!r &&
|
|
13182
|
+
if (!r && ff(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
13177
13183
|
}
|
|
13178
13184
|
return null;
|
|
13179
|
-
}), vt = r(() => St.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : gt.value === null), yt = r(() => gt.value ? `Select at least one value for "${gt.value}" to view data.` : "Select a filter to view data."), bt = ee(null), xt = k([]), St = f.filterStore ||
|
|
13185
|
+
}), vt = r(() => St.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : gt.value === null), yt = r(() => gt.value ? `Select at least one value for "${gt.value}" to view data.` : "Select a filter to view data."), bt = ee(null), xt = k([]), St = f.filterStore || _f(), Ct = m(wu, null), wt = Ct || md(null, f.allFieldsAreFocusable), Tt = St.filterModel, Et = St.tableSearchFilterModel, Dt = St.filterValueMap, Ot = St.filterValuesMap, kt = St.filterValueSelectedMetadataMap, At = St.fetchFilterValues, jt = St.filterStoreHandler, Mt = St.tableSearchHandler;
|
|
13180
13186
|
if (jt.value = f.filterValuesSetHandler, jt.value) {
|
|
13181
13187
|
let e = (e) => ({
|
|
13182
13188
|
hasMore: St.filterHasMoreMap.value[e],
|
|
@@ -13205,7 +13211,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13205
13211
|
debounce: 250
|
|
13206
13212
|
});
|
|
13207
13213
|
let Nt = k(null), Pt = r(() => wt?.computedFocusType.value || null), Ft = r(() => wt?.computedFocuses.value || []), It = r(() => ot.filter((e) => e.filter)), Vt = r(() => ot.filter((e) => e.enableRowGroup)), Ht = r(() => it.filter((e) => e.aggFunc)), Ut = k(null), Wt = k({}), Gt = k(1), Kt = k(0);
|
|
13208
|
-
O(
|
|
13214
|
+
O(Cu, St), O(wu, wt), O(Tu, xt), O(Eu, bt), O(Du, Nt), O(Ou, ft), O(ku, It), O(Au, Vt), O(ju, pt), O(Mu, Ut), O(Nu, Wt), O(Pu, mt), O(Fu, ht), O(Iu, Gt), O(Lu, Kt), O(Xu, r(() => f.enableAdvancedFilter));
|
|
13209
13215
|
let qt = ee(void 0), Jt = r(() => {
|
|
13210
13216
|
let e = Y?.pivotCols[0], t = e && me(e), n = qt.value ?? f.rowData;
|
|
13211
13217
|
if (!t || !n) return /* @__PURE__ */ new Map();
|
|
@@ -13225,7 +13231,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13225
13231
|
filterType: "join",
|
|
13226
13232
|
type: "AND",
|
|
13227
13233
|
conditions: [e, t]
|
|
13228
|
-
} : t :
|
|
13234
|
+
} : t : Ud(ot, e, t);
|
|
13229
13235
|
}, Zt = 0, Qt = async () => {
|
|
13230
13236
|
if (!Y || !f.serverSidePivotHandler) return;
|
|
13231
13237
|
let e = ++Zt;
|
|
@@ -13274,7 +13280,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13274
13280
|
data: a,
|
|
13275
13281
|
focused: Pt.value === r && Ft.value.map(String).includes(i)
|
|
13276
13282
|
}) || {};
|
|
13277
|
-
e.headerGroupComponent =
|
|
13283
|
+
e.headerGroupComponent = Dp, e.marryChildren = !0, e.autoHeaderHeight = !0;
|
|
13278
13284
|
let c = o ?? (i == null ? void 0 : rn(r, i, a));
|
|
13279
13285
|
c && (e.headerName = c), e.headerGroupComponentParams = {
|
|
13280
13286
|
...e.headerGroupComponentParams,
|
|
@@ -13319,7 +13325,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13319
13325
|
}, pn = (e) => {
|
|
13320
13326
|
if (bt.value) {
|
|
13321
13327
|
let t = bn();
|
|
13322
|
-
|
|
13328
|
+
ef(Tt.value, t) || (Tt.value = t, L("filter-changed", e));
|
|
13323
13329
|
}
|
|
13324
13330
|
}, mn = (e) => {
|
|
13325
13331
|
xt.value = e.api?.getState()?.sort?.sortModel || [], mt.value && L("sort-changed", e);
|
|
@@ -13405,10 +13411,10 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13405
13411
|
}, bn = () => bt.value ? f.enableAdvancedFilter ? bt.value.getAdvancedFilterModel() : bt.value.getFilterModel() : Tt.value, xn = (e) => {
|
|
13406
13412
|
if (!bt.value) return !1;
|
|
13407
13413
|
if (f.enableAdvancedFilter) {
|
|
13408
|
-
let t = e &&
|
|
13414
|
+
let t = e && ff(e) ? Id(e) : e;
|
|
13409
13415
|
bt.value.setAdvancedFilterModel(t);
|
|
13410
13416
|
} else {
|
|
13411
|
-
if (e && !
|
|
13417
|
+
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;
|
|
13412
13418
|
bt.value.setFilterModel(e);
|
|
13413
13419
|
}
|
|
13414
13420
|
return !0;
|
|
@@ -13459,7 +13465,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13459
13465
|
e.finished && (Nt.value = [...e.api.getAllGridColumns()]), V && f.pivotValueOrder && e.finished && e.source === "uiColumnMoved" && v(dn), mt.value && L("column-moved", e);
|
|
13460
13466
|
}, kn = (e) => {
|
|
13461
13467
|
e.api && (Gt.value = e.api.paginationGetCurrentPage() + 1, Kt.value = e.api.paginationGetTotalPages());
|
|
13462
|
-
}, An = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, jn = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Mn = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) :
|
|
13468
|
+
}, An = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, jn = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Mn = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) : ud), Nn = { loadingMessage: "One moment please..." }, Pn = k((() => {
|
|
13463
13469
|
let e = {
|
|
13464
13470
|
headerName: "",
|
|
13465
13471
|
minWidth: 200,
|
|
@@ -13469,7 +13475,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13469
13475
|
headerComponent: void 0,
|
|
13470
13476
|
cellRendererParams: {
|
|
13471
13477
|
suppressCount: !0,
|
|
13472
|
-
innerRenderer:
|
|
13478
|
+
innerRenderer: Ed,
|
|
13473
13479
|
innerRendererParams: (e) => ({
|
|
13474
13480
|
plainLabel: V,
|
|
13475
13481
|
boldLabel: V && !Y?.rowGroupCols.length,
|
|
@@ -13490,7 +13496,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13490
13496
|
Pn.value.headerName = "", Pn.value.headerComponent = void 0, Pn.value.context = null, Pn.value.sortable = !1, Pn.value.filter = void 0, Pn.value.enableRowGroup = void 0;
|
|
13491
13497
|
return;
|
|
13492
13498
|
}
|
|
13493
|
-
Pn.value.field = e.field, Pn.value.headerName = e.headerName, Pn.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
13499
|
+
Pn.value.field = e.field, Pn.value.headerName = e.headerName, Pn.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : $f), Pn.value.context = { dataType: e.context?.dataType || null }, Pn.value.sortable = e.sortable, Pn.value.filter = e.filter, Pn.value.enableRowGroup = e.enableRowGroup, Pn.value.onCellClicked = e.onCellClicked;
|
|
13494
13500
|
}, In = (e) => {
|
|
13495
13501
|
if (e.node.group && !V) return {
|
|
13496
13502
|
backgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -13503,12 +13509,12 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13503
13509
|
let t = e.values;
|
|
13504
13510
|
if (e.rowNode.leafGroup) return {
|
|
13505
13511
|
values: t,
|
|
13506
|
-
value:
|
|
13512
|
+
value: Dd(t)
|
|
13507
13513
|
};
|
|
13508
13514
|
let n = e.values.flatMap((e) => e.values || []);
|
|
13509
13515
|
return {
|
|
13510
13516
|
values: n,
|
|
13511
|
-
value:
|
|
13517
|
+
value: Dd(n)
|
|
13512
13518
|
};
|
|
13513
13519
|
} };
|
|
13514
13520
|
S(() => {
|
|
@@ -13528,7 +13534,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13528
13534
|
let t = bt.value;
|
|
13529
13535
|
if (!t) return;
|
|
13530
13536
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
13531
|
-
n && !
|
|
13537
|
+
n && !ef(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ct(r, pt.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
13532
13538
|
let a = e.columnOrder?.orderedColIds;
|
|
13533
13539
|
lt && a?.length && (ct(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
13534
13540
|
state: a.map((e) => ({ colId: e })),
|
|
@@ -13537,7 +13543,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13537
13543
|
};
|
|
13538
13544
|
W(() => f.initialGridState, () => {
|
|
13539
13545
|
if (f.initialGridState) {
|
|
13540
|
-
let e = ut(
|
|
13546
|
+
let e = ut(Ld(f.initialGridState, ot, f.enableAdvancedFilter));
|
|
13541
13547
|
e && zn(e);
|
|
13542
13548
|
}
|
|
13543
13549
|
}, { deep: !0 });
|
|
@@ -13590,13 +13596,13 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13590
13596
|
content: G(() => [...r[12] ||= [l(" Dev Mode ", -1)]]),
|
|
13591
13597
|
_: 1
|
|
13592
13598
|
})) : a("", !0),
|
|
13593
|
-
ae(s("div",
|
|
13599
|
+
ae(s("div", jp, [s("div", Mp, [s("div", Np, [e.enableTableSearch && e.tableSearchInline ? (D(), o("div", {
|
|
13594
13600
|
key: 0,
|
|
13595
13601
|
style: x(Xn.value)
|
|
13596
|
-
}, [u(
|
|
13602
|
+
}, [u(Cp, b(p(Zn.value)), null, 16)], 4)) : a("", !0), (D(), i(n, {
|
|
13597
13603
|
to: e.filterTeleportLocation,
|
|
13598
13604
|
disabled: !e.filterTeleportLocation
|
|
13599
|
-
}, [It.value.length > 0 && !f.enableInlineFilters ? (D(), i(
|
|
13605
|
+
}, [It.value.length > 0 && !f.enableInlineFilters ? (D(), i(Yf, {
|
|
13600
13606
|
key: 0,
|
|
13601
13607
|
ref_key: "filterPanelRef",
|
|
13602
13608
|
ref: Wn,
|
|
@@ -13624,12 +13630,12 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13624
13630
|
class: "pv-flex",
|
|
13625
13631
|
style: x([{ flexShrink: 0 }, Jn.value ? { minHeight: Yn } : void 0])
|
|
13626
13632
|
}, [
|
|
13627
|
-
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(
|
|
13633
|
+
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(od, {
|
|
13628
13634
|
key: 0,
|
|
13629
13635
|
rowGroupLimit: e.rowGroupLimit,
|
|
13630
13636
|
enableFocusView: e.enableFocusView
|
|
13631
13637
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0),
|
|
13632
|
-
e.enableCsvExport ? (D(), i(
|
|
13638
|
+
e.enableCsvExport ? (D(), i(sp, {
|
|
13633
13639
|
key: 1,
|
|
13634
13640
|
getCsvData: yn
|
|
13635
13641
|
})) : a("", !0),
|
|
@@ -13649,7 +13655,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13649
13655
|
}, [e.enableTableSearch && !e.tableSearchInline ? (D(), o("div", {
|
|
13650
13656
|
key: 0,
|
|
13651
13657
|
style: x(Xn.value)
|
|
13652
|
-
}, [u(
|
|
13658
|
+
}, [u(Cp, b(p(Zn.value)), null, 16)], 4)) : a("", !0), qn.value ? j(t.$slots, "top-slot", { key: 1 }) : a("", !0)], 2)) : a("", !0),
|
|
13653
13659
|
s("div", {
|
|
13654
13660
|
ref_key: "gridWrapperRef",
|
|
13655
13661
|
ref: w,
|
|
@@ -13756,16 +13762,16 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13756
13762
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
13757
13763
|
advancedFilterParent: Gn.value
|
|
13758
13764
|
}), 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(".")),
|
|
13759
|
-
$t.value ? (D(), i(
|
|
13760
|
-
!e.isLoading && !vt.value ? (D(), o("div",
|
|
13765
|
+
$t.value ? (D(), i(_p, { key: 0 })) : a("", !0),
|
|
13766
|
+
!e.isLoading && !vt.value ? (D(), o("div", Pp, [s("p", Fp, P(yt.value), 1)])) : a("", !0)
|
|
13761
13767
|
], 6),
|
|
13762
|
-
e.pagination ? (D(), i(
|
|
13768
|
+
e.pagination ? (D(), i(cp, { key: 2 })) : a("", !0)
|
|
13763
13769
|
], 4));
|
|
13764
13770
|
}
|
|
13765
|
-
}),
|
|
13771
|
+
}), Lp = {
|
|
13766
13772
|
class: "pv-flex pv-full-width pv-space-between",
|
|
13767
13773
|
style: { "white-space": "nowrap" }
|
|
13768
|
-
},
|
|
13774
|
+
}, Rp = { class: "pv-text-body-md" }, zp = /* @__PURE__ */ d({
|
|
13769
13775
|
inheritAttrs: !1,
|
|
13770
13776
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
13771
13777
|
props: {
|
|
@@ -13774,22 +13780,22 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13774
13780
|
context: {}
|
|
13775
13781
|
},
|
|
13776
13782
|
setup(e) {
|
|
13777
|
-
return (t, n) => (D(), o("div",
|
|
13783
|
+
return (t, n) => (D(), o("div", Lp, [s("span", Rp, P(e.text), 1), e.context?.rightIcon ? (D(), i(Jn, {
|
|
13778
13784
|
key: 0,
|
|
13779
13785
|
name: e.context.rightIcon,
|
|
13780
13786
|
class: "pv-text-subdued"
|
|
13781
13787
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
13782
13788
|
}
|
|
13783
|
-
}),
|
|
13789
|
+
}), Bp = { class: "pv-relative" }, Vp = {
|
|
13784
13790
|
role: "list",
|
|
13785
13791
|
class: "pv-relative"
|
|
13786
|
-
},
|
|
13792
|
+
}, Hp = ["data-active"], Up = ["data-active"], Wp = {
|
|
13787
13793
|
key: 2,
|
|
13788
13794
|
style: { cursor: "pointer" }
|
|
13789
|
-
},
|
|
13795
|
+
}, Gp = {
|
|
13790
13796
|
key: 0,
|
|
13791
13797
|
role: "list"
|
|
13792
|
-
},
|
|
13798
|
+
}, Kp = /* @__PURE__ */ d({
|
|
13793
13799
|
__name: "PvTableOptionsPanel",
|
|
13794
13800
|
props: {
|
|
13795
13801
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -13801,7 +13807,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13801
13807
|
"column-config-change"
|
|
13802
13808
|
],
|
|
13803
13809
|
setup(e, { emit: n }) {
|
|
13804
|
-
let i = e, c = n, l = m(
|
|
13810
|
+
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({
|
|
13805
13811
|
alignment: "top",
|
|
13806
13812
|
popoverCssProperties: {
|
|
13807
13813
|
maxWidth: "300px",
|
|
@@ -13868,7 +13874,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13868
13874
|
previousHiddenColIds: r.hiddenColIds
|
|
13869
13875
|
});
|
|
13870
13876
|
};
|
|
13871
|
-
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div",
|
|
13877
|
+
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div", Bp, [u(qa, {
|
|
13872
13878
|
open: v.value,
|
|
13873
13879
|
label: "Table Configuration",
|
|
13874
13880
|
icon: "settings",
|
|
@@ -13888,7 +13894,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13888
13894
|
"padding-top": "4px",
|
|
13889
13895
|
"padding-bottom": "12px"
|
|
13890
13896
|
}
|
|
13891
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
13897
|
+
}, " Table Configuration ")], -1), s("ul", Vp, [
|
|
13892
13898
|
C.value ? (D(), o("li", {
|
|
13893
13899
|
key: 0,
|
|
13894
13900
|
id: "table-config-overlay",
|
|
@@ -13901,7 +13907,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13901
13907
|
icon: "layers-2",
|
|
13902
13908
|
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
13903
13909
|
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
13904
|
-
}, null, 8, ["class-list"])], 8,
|
|
13910
|
+
}, null, 8, ["class-list"])], 8, Hp)) : a("", !0),
|
|
13905
13911
|
P.value ? (D(), o("li", {
|
|
13906
13912
|
key: 1,
|
|
13907
13913
|
id: "table-config-columns",
|
|
@@ -13914,8 +13920,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13914
13920
|
icon: "columns-3",
|
|
13915
13921
|
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
13916
13922
|
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
13917
|
-
}, null, 8, ["class-list"])], 8,
|
|
13918
|
-
F.value ? (D(), o("li",
|
|
13923
|
+
}, null, 8, ["class-list"])], 8, Up)) : a("", !0),
|
|
13924
|
+
F.value ? (D(), o("li", Wp, [u(Fo, {
|
|
13919
13925
|
config: { variant: "icon" },
|
|
13920
13926
|
id: "table-config-group-toggle",
|
|
13921
13927
|
class: "pv-text-subdued",
|
|
@@ -13936,11 +13942,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13936
13942
|
},
|
|
13937
13943
|
isList: b.value !== "columns"
|
|
13938
13944
|
}, {
|
|
13939
|
-
default: G(() => [b.value === "overlay" ? (D(), o("ul",
|
|
13945
|
+
default: G(() => [b.value === "overlay" ? (D(), o("ul", Gp, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(Fo, {
|
|
13940
13946
|
id: e.id,
|
|
13941
13947
|
config: {
|
|
13942
13948
|
variant: "checkbox",
|
|
13943
|
-
renderer:
|
|
13949
|
+
renderer: zp
|
|
13944
13950
|
},
|
|
13945
13951
|
text: e.text,
|
|
13946
13952
|
context: e.context,
|
|
@@ -13965,7 +13971,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13965
13971
|
"padding-left": "2px",
|
|
13966
13972
|
"padding-bottom": "6px"
|
|
13967
13973
|
}
|
|
13968
|
-
}, " Currently Viewing ", -1), u(
|
|
13974
|
+
}, " Currently Viewing ", -1), u(yl, {
|
|
13969
13975
|
modelValue: B.value,
|
|
13970
13976
|
options: R.value,
|
|
13971
13977
|
showPlaceholders: !1,
|
|
@@ -13978,18 +13984,18 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
13978
13984
|
"isList"
|
|
13979
13985
|
])], 64)) : a("", !0);
|
|
13980
13986
|
}
|
|
13981
|
-
}),
|
|
13987
|
+
}), qp = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, Jp = ["data-group-name"], Yp = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, Xp = ["data-loading"], Zp = { class: "pv-chart-chip-label pv-flex-item" }, Qp = { class: "pv-chart-chip-value" }, $p = /* @__PURE__ */ d({
|
|
13982
13988
|
__name: "PvBenchmarkChips",
|
|
13983
13989
|
props: { sections: {} },
|
|
13984
13990
|
emits: ["chip-hover"],
|
|
13985
13991
|
setup(e, { emit: n }) {
|
|
13986
13992
|
let r = n;
|
|
13987
|
-
return (n, c) => (D(), o("div",
|
|
13993
|
+
return (n, c) => (D(), o("div", qp, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
13988
13994
|
key: e.groupName,
|
|
13989
13995
|
"data-testid": "chip-section",
|
|
13990
13996
|
"data-group-name": e.groupName,
|
|
13991
13997
|
class: "pv-flex-vertical"
|
|
13992
|
-
}, [s("p",
|
|
13998
|
+
}, [s("p", Yp, P(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
13993
13999
|
key: e.key,
|
|
13994
14000
|
"data-testid": "benchmark-chip",
|
|
13995
14001
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -14001,11 +14007,11 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14001
14007
|
}, F(e.loading || e.excludeFromCrossline ? {} : {
|
|
14002
14008
|
mouseenter: () => r("chip-hover", e.key),
|
|
14003
14009
|
mouseleave: () => r("chip-hover", null)
|
|
14004
|
-
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(
|
|
14010
|
+
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(Dl, {
|
|
14005
14011
|
"data-testid": "benchmark-chip-skeleton",
|
|
14006
14012
|
size: "sm",
|
|
14007
14013
|
width: "60%"
|
|
14008
|
-
}), u(
|
|
14014
|
+
}), u(Dl, {
|
|
14009
14015
|
"data-testid": "benchmark-chip-skeleton",
|
|
14010
14016
|
size: "sm",
|
|
14011
14017
|
width: "30%"
|
|
@@ -14016,8 +14022,8 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14016
14022
|
class: "pv-chart-benchmark-chip-accent",
|
|
14017
14023
|
style: x({ backgroundColor: e.color })
|
|
14018
14024
|
}, null, 4)) : a("", !0),
|
|
14019
|
-
s("span",
|
|
14020
|
-
s("span",
|
|
14025
|
+
s("span", Zp, P(e.label), 1),
|
|
14026
|
+
s("span", Qp, P(e.formattedValue), 1),
|
|
14021
14027
|
e.excludeFromCrossline ? (D(), i(z(da), {
|
|
14022
14028
|
key: 1,
|
|
14023
14029
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -14040,16 +14046,16 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14040
14046
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
14041
14047
|
_: 1
|
|
14042
14048
|
})) : a("", !0)
|
|
14043
|
-
], 64))], 16,
|
|
14049
|
+
], 64))], 16, Xp))), 128))], 8, Jp))), 128))]));
|
|
14044
14050
|
}
|
|
14045
|
-
}),
|
|
14051
|
+
}), em = (e) => e.field === "state" || Ts(e).dataType === ys.Location, tm = (e) => e.filter(em), nm = (e, t, n) => {
|
|
14046
14052
|
if (!n || t.length === 0) return e;
|
|
14047
14053
|
let r = new Set(n(t).map((e) => e.field));
|
|
14048
14054
|
return e.filter((e) => r.has(e));
|
|
14049
|
-
},
|
|
14055
|
+
}, rm = (e) => e.filter((e) => !ks(e)), im = (e) => e.filter((e) => ks(e)), am = {
|
|
14050
14056
|
xAxis: {
|
|
14051
14057
|
selectMode: "sortable",
|
|
14052
|
-
filterColumns:
|
|
14058
|
+
filterColumns: rm
|
|
14053
14059
|
},
|
|
14054
14060
|
yAxis: {},
|
|
14055
14061
|
secondaryYAxis: {},
|
|
@@ -14058,16 +14064,16 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14058
14064
|
rowGroupLimit: 2,
|
|
14059
14065
|
supportsFocusView: !0,
|
|
14060
14066
|
storeBeforeChange: !0
|
|
14061
|
-
},
|
|
14067
|
+
}, om = [
|
|
14062
14068
|
{
|
|
14063
|
-
...
|
|
14069
|
+
...am,
|
|
14064
14070
|
id: "column",
|
|
14065
14071
|
text: "Column",
|
|
14066
14072
|
icon: "chart-column",
|
|
14067
14073
|
agChartType: "bar"
|
|
14068
14074
|
},
|
|
14069
14075
|
{
|
|
14070
|
-
...
|
|
14076
|
+
...am,
|
|
14071
14077
|
id: "bar",
|
|
14072
14078
|
text: "Bar",
|
|
14073
14079
|
icon: "chart-bar",
|
|
@@ -14075,28 +14081,28 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14075
14081
|
isHorizontal: !0
|
|
14076
14082
|
},
|
|
14077
14083
|
{
|
|
14078
|
-
...
|
|
14084
|
+
...am,
|
|
14079
14085
|
id: "line",
|
|
14080
14086
|
text: "Line",
|
|
14081
14087
|
icon: "chart-line",
|
|
14082
14088
|
agChartType: "line"
|
|
14083
14089
|
},
|
|
14084
14090
|
{
|
|
14085
|
-
...
|
|
14091
|
+
...am,
|
|
14086
14092
|
id: "area",
|
|
14087
14093
|
text: "Area",
|
|
14088
14094
|
icon: "chart-area",
|
|
14089
14095
|
agChartType: "area"
|
|
14090
14096
|
},
|
|
14091
14097
|
{
|
|
14092
|
-
...
|
|
14098
|
+
...am,
|
|
14093
14099
|
id: "column_stacked",
|
|
14094
14100
|
text: "Stacked Column",
|
|
14095
14101
|
icon: "chart-column-stacked",
|
|
14096
14102
|
agChartType: "bar"
|
|
14097
14103
|
},
|
|
14098
14104
|
{
|
|
14099
|
-
...
|
|
14105
|
+
...am,
|
|
14100
14106
|
id: "bar_stacked",
|
|
14101
14107
|
text: "Stacked Bar",
|
|
14102
14108
|
icon: "chart-bar-stacked",
|
|
@@ -14104,7 +14110,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14104
14110
|
isHorizontal: !0
|
|
14105
14111
|
},
|
|
14106
14112
|
{
|
|
14107
|
-
...
|
|
14113
|
+
...am,
|
|
14108
14114
|
id: "pie",
|
|
14109
14115
|
text: "Pie",
|
|
14110
14116
|
icon: "chart-pie",
|
|
@@ -14118,7 +14124,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14118
14124
|
icon: "chart-column",
|
|
14119
14125
|
xAxis: {
|
|
14120
14126
|
selectMode: "single",
|
|
14121
|
-
filterColumns:
|
|
14127
|
+
filterColumns: im,
|
|
14122
14128
|
hideLabel: !0
|
|
14123
14129
|
},
|
|
14124
14130
|
yAxis: {
|
|
@@ -14139,7 +14145,7 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14139
14145
|
icon: "map",
|
|
14140
14146
|
xAxis: {
|
|
14141
14147
|
selectMode: "single",
|
|
14142
|
-
filterColumns:
|
|
14148
|
+
filterColumns: tm,
|
|
14143
14149
|
hideLabel: !0
|
|
14144
14150
|
},
|
|
14145
14151
|
yAxis: {},
|
|
@@ -14151,36 +14157,36 @@ var kd = { style: { "line-height": "20px" } }, Ad = { class: "pv-text-subdued pv
|
|
|
14151
14157
|
supportsFocusView: !1,
|
|
14152
14158
|
storeBeforeChange: !1
|
|
14153
14159
|
}
|
|
14154
|
-
],
|
|
14155
|
-
function
|
|
14156
|
-
return
|
|
14160
|
+
], sm = new Map(om.map((e) => [e.id, e])), cm = sm.get("column");
|
|
14161
|
+
function lm(e) {
|
|
14162
|
+
return sm.get(e) || cm;
|
|
14157
14163
|
}
|
|
14158
14164
|
//#endregion
|
|
14159
14165
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue?vue&type=script&setup=true&lang.ts
|
|
14160
|
-
var
|
|
14166
|
+
var um = { class: "pv-stack-16 pv-chart-options-panel" }, dm = { class: "pv-flex pv-relative" }, fm = [
|
|
14161
14167
|
"id",
|
|
14162
14168
|
"aria-label",
|
|
14163
14169
|
"onKeydown"
|
|
14164
|
-
],
|
|
14170
|
+
], pm = {
|
|
14165
14171
|
role: "list",
|
|
14166
14172
|
class: "pv-popover-list pv-relative"
|
|
14167
|
-
},
|
|
14173
|
+
}, mm = [
|
|
14168
14174
|
"id",
|
|
14169
14175
|
"data-active",
|
|
14170
14176
|
"data-dd-action-name",
|
|
14171
14177
|
"onMouseenter",
|
|
14172
14178
|
"onClick"
|
|
14173
|
-
],
|
|
14179
|
+
], hm = { style: { "max-width": "100px" } }, gm = {
|
|
14174
14180
|
key: 1,
|
|
14175
14181
|
class: "pv-flex"
|
|
14176
|
-
},
|
|
14182
|
+
}, _m = {
|
|
14177
14183
|
key: 0,
|
|
14178
14184
|
class: "pv-inset-square-8"
|
|
14179
|
-
},
|
|
14185
|
+
}, vm = {
|
|
14180
14186
|
key: 1,
|
|
14181
14187
|
role: "list",
|
|
14182
14188
|
class: "pv-popover-list"
|
|
14183
|
-
},
|
|
14189
|
+
}, ym = ["data-active"], bm = "This metric isn’t available with the selected chart type.", xm = /* @__PURE__ */ cn(/* @__PURE__ */ d({
|
|
14184
14190
|
__name: "PvChartOptionsPanel",
|
|
14185
14191
|
props: {
|
|
14186
14192
|
enablePanel: { type: Boolean },
|
|
@@ -14199,17 +14205,17 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14199
14205
|
},
|
|
14200
14206
|
emits: ["series-agg-func-selected"],
|
|
14201
14207
|
setup(e, { emit: n }) {
|
|
14202
|
-
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } =
|
|
14208
|
+
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } = vu({
|
|
14203
14209
|
alignment: "top right",
|
|
14204
14210
|
popoverCssProperties: {
|
|
14205
14211
|
maxWidth: "500px",
|
|
14206
14212
|
maxHeight: "900px"
|
|
14207
14213
|
},
|
|
14208
14214
|
useTeleport: !0
|
|
14209
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(
|
|
14215
|
+
}), 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(() => lm(w.value?.id || "")), ee = r(() => {
|
|
14210
14216
|
let e = w.value?.id ?? "";
|
|
14211
14217
|
return j.value.length > 1 && !e.endsWith("_stacked") && !l.metricOverlayWithRowGroups;
|
|
14212
|
-
}), F = m(
|
|
14218
|
+
}), 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) => ({
|
|
14213
14219
|
id: e.id,
|
|
14214
14220
|
text: e.label,
|
|
14215
14221
|
disabled: e.disabled,
|
|
@@ -14220,7 +14226,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14220
14226
|
W(ee, (e) => {
|
|
14221
14227
|
e && L.value && (L.value = void 0), e && te.value.length > 0 && (te.value = []);
|
|
14222
14228
|
}, { immediate: !0 });
|
|
14223
|
-
let H = m(
|
|
14229
|
+
let H = m(Ru, k("")), U = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
14224
14230
|
label: e.label,
|
|
14225
14231
|
value: e.value
|
|
14226
14232
|
})) : []), se = r(() => {
|
|
@@ -14270,10 +14276,10 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14270
14276
|
case "sort": return "Select Chart Sort";
|
|
14271
14277
|
default: return;
|
|
14272
14278
|
}
|
|
14273
|
-
}, J =
|
|
14279
|
+
}, J = bu(), de = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, Y = (e, t, n = "select") => {
|
|
14274
14280
|
if (!t) return;
|
|
14275
14281
|
let r = Z.value.find((t) => t.value === e), i = r?.availableOptions ? q(r.availableOptions, t) : void 0;
|
|
14276
|
-
|
|
14282
|
+
xu("chart_option_selected", {
|
|
14277
14283
|
panel: de(e),
|
|
14278
14284
|
selected_value: i?.text ?? t,
|
|
14279
14285
|
selected_value_id: t,
|
|
@@ -14281,26 +14287,26 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14281
14287
|
}, J());
|
|
14282
14288
|
}, X = (e, t) => {
|
|
14283
14289
|
let n = new Set(e.activeOptionIds);
|
|
14284
|
-
e.updateSelectedOptions?.(t),
|
|
14290
|
+
e.updateSelectedOptions?.(t), Su(() => {
|
|
14285
14291
|
for (let r of t) n.has(r.id) || Y(e.value, r.id);
|
|
14286
14292
|
});
|
|
14287
14293
|
}, fe = (e, t) => {
|
|
14288
|
-
e.updateSelectedOption?.(t?.id || ""),
|
|
14294
|
+
e.updateSelectedOption?.(t?.id || ""), Su(() => Y(e.value, t?.id));
|
|
14289
14295
|
}, pe = (e, t) => {
|
|
14290
14296
|
let n = t.option;
|
|
14291
14297
|
if (e.isMultiSelect) {
|
|
14292
14298
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
14293
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(le(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) ||
|
|
14299
|
+
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(le(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) || Su(() => Y(e.value, n.id));
|
|
14294
14300
|
return;
|
|
14295
14301
|
}
|
|
14296
|
-
e.updateSelectedOption?.(n.id),
|
|
14302
|
+
e.updateSelectedOption?.(n.id), Su(() => Y(e.value, n.id));
|
|
14297
14303
|
}, me = (e, t) => {
|
|
14298
14304
|
let n = e.activeOptions?.value ?? [];
|
|
14299
|
-
e.activeOptions && (e.activeOptions.value = t),
|
|
14305
|
+
e.activeOptions && (e.activeOptions.value = t), Su(() => {
|
|
14300
14306
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
14301
14307
|
for (let n of t) a.has(n.id) || Y(e.value, n.id, "select");
|
|
14302
14308
|
for (let t of n) o.has(t.id) || Y(e.value, t.id, "deselect");
|
|
14303
|
-
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") &&
|
|
14309
|
+
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && xu("chart_option_selected", {
|
|
14304
14310
|
panel: de(e.value),
|
|
14305
14311
|
selected_value: t.map((e) => e.text).join(", "),
|
|
14306
14312
|
selected_value_id: i.join(","),
|
|
@@ -14311,7 +14317,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14311
14317
|
let r = !!e && t === e;
|
|
14312
14318
|
return {
|
|
14313
14319
|
disabled: r,
|
|
14314
|
-
description: r ?
|
|
14320
|
+
description: r ? bm : n
|
|
14315
14321
|
};
|
|
14316
14322
|
}, ye = (e, t) => {
|
|
14317
14323
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
@@ -14550,12 +14556,12 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14550
14556
|
let t = Q.value;
|
|
14551
14557
|
if (!t?.isMultiSelect) return;
|
|
14552
14558
|
let n = new Set(t.activeOptionIds ?? []);
|
|
14553
|
-
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))),
|
|
14559
|
+
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Su(() => {
|
|
14554
14560
|
for (let r of e) n.has(r) || Y(t.value, r);
|
|
14555
14561
|
});
|
|
14556
14562
|
}, Le = (e) => {
|
|
14557
14563
|
let t = Q.value;
|
|
14558
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id),
|
|
14564
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Su(() => Y(t.value, e.id)));
|
|
14559
14565
|
}, Re = (e) => {
|
|
14560
14566
|
let t = Q.value;
|
|
14561
14567
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
@@ -14566,7 +14572,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14566
14572
|
}, Ve = () => {
|
|
14567
14573
|
S.value = void 0;
|
|
14568
14574
|
};
|
|
14569
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
14575
|
+
return (n, r) => (D(), o(t, null, [s("div", um, [s("div", null, [ae((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", dm, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(qa, {
|
|
14570
14576
|
open: b.value,
|
|
14571
14577
|
label: "Chart Configuration",
|
|
14572
14578
|
icon: "chart-area",
|
|
@@ -14603,7 +14609,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14603
14609
|
"padding-left": "2px",
|
|
14604
14610
|
"padding-bottom": "6px"
|
|
14605
14611
|
}
|
|
14606
|
-
}, " Viewing ", -1), u(
|
|
14612
|
+
}, " Viewing ", -1), u(yl, {
|
|
14607
14613
|
modelValue: Q.value.activeOptions.value,
|
|
14608
14614
|
"onUpdate:modelValue": r[1] ||= (e) => me(Q.value, e),
|
|
14609
14615
|
options: Q.value.availableOptions || [],
|
|
@@ -14615,7 +14621,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14615
14621
|
"options",
|
|
14616
14622
|
"activeOptionLimit",
|
|
14617
14623
|
"lockedOptions"
|
|
14618
|
-
])], 40,
|
|
14624
|
+
])], 40, fm)) : Q.value ? (D(), i(Ko, {
|
|
14619
14625
|
key: 1,
|
|
14620
14626
|
id: t,
|
|
14621
14627
|
"aria-label": `${Q.value.label} options`,
|
|
@@ -14658,7 +14664,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14658
14664
|
zIndex: 5
|
|
14659
14665
|
}
|
|
14660
14666
|
}, {
|
|
14661
|
-
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",
|
|
14667
|
+
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", pm, [(D(!0), o(t, null, A(Z.value, (t) => (D(), o("li", {
|
|
14662
14668
|
id: `pv-chart-config-${t.value}`,
|
|
14663
14669
|
key: t.value,
|
|
14664
14670
|
"data-active": S.value === t.value ? !0 : null,
|
|
@@ -14689,9 +14695,9 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14689
14695
|
_: 2
|
|
14690
14696
|
}, [t.disabled && t.disabledReason ? {
|
|
14691
14697
|
name: "content",
|
|
14692
|
-
fn: G(() => [s("div",
|
|
14698
|
+
fn: G(() => [s("div", hm, P(t.disabledReason), 1)]),
|
|
14693
14699
|
key: "0"
|
|
14694
|
-
} : void 0]), 1024)], 40,
|
|
14700
|
+
} : void 0]), 1024)], 40, mm))), 128))])]),
|
|
14695
14701
|
_: 1
|
|
14696
14702
|
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[z(tt), [$, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
14697
14703
|
class: "pv-flex pv-space-between",
|
|
@@ -14701,7 +14707,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14701
14707
|
options: U.value,
|
|
14702
14708
|
modelValue: z(H),
|
|
14703
14709
|
"onUpdate:modelValue": r[4] ||= (e) => h(H) ? H.value = e : null
|
|
14704
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
14710
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", gm, [(D(!0), o(t, null, A(Z.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(cl, {
|
|
14705
14711
|
key: 0,
|
|
14706
14712
|
label: n.label,
|
|
14707
14713
|
prefixLabel: n.prefixLabel,
|
|
@@ -14754,13 +14760,13 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14754
14760
|
...z(p)
|
|
14755
14761
|
}
|
|
14756
14762
|
}, {
|
|
14757
|
-
default: G(() => [Q.value ? (D(), o(t, { key: 0 }, [Q.value.isSortableList ? (D(), o("div",
|
|
14763
|
+
default: G(() => [Q.value ? (D(), o(t, { key: 0 }, [Q.value.isSortableList ? (D(), o("div", _m, [r[9] ||= s("p", {
|
|
14758
14764
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
14759
14765
|
style: {
|
|
14760
14766
|
"padding-left": "2px",
|
|
14761
14767
|
"padding-bottom": "6px"
|
|
14762
14768
|
}
|
|
14763
|
-
}, " Viewing ", -1), u(
|
|
14769
|
+
}, " Viewing ", -1), u(yl, {
|
|
14764
14770
|
modelValue: Q.value.activeOptions.value,
|
|
14765
14771
|
"onUpdate:modelValue": r[5] ||= (e) => me(Q.value, e),
|
|
14766
14772
|
options: Q.value.availableOptions || [],
|
|
@@ -14772,7 +14778,7 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14772
14778
|
"options",
|
|
14773
14779
|
"activeOptionLimit",
|
|
14774
14780
|
"lockedOptions"
|
|
14775
|
-
])])) : (D(), o("ul",
|
|
14781
|
+
])])) : (D(), o("ul", vm, [(D(!0), o(t, null, A(Q.value.availableOptions, (t) => (D(), o("li", {
|
|
14776
14782
|
key: t.id,
|
|
14777
14783
|
"data-active": Re(t)
|
|
14778
14784
|
}, [u(Fo, {
|
|
@@ -14797,14 +14803,14 @@ var dm = { class: "pv-stack-16 pv-chart-options-panel" }, fm = { class: "pv-flex
|
|
|
14797
14803
|
"disabled",
|
|
14798
14804
|
"selectedIds",
|
|
14799
14805
|
"onHandleSelected"
|
|
14800
|
-
])], 8,
|
|
14806
|
+
])], 8, ym))), 128))]))], 64)) : a("", !0)]),
|
|
14801
14807
|
_: 1
|
|
14802
14808
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
14803
14809
|
}
|
|
14804
14810
|
}), [["__scopeId", "data-v-21e451cd"]]);
|
|
14805
14811
|
//#endregion
|
|
14806
14812
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
14807
|
-
function
|
|
14813
|
+
function Sm(e, t, n, r, i) {
|
|
14808
14814
|
return i ? {
|
|
14809
14815
|
xKey: n,
|
|
14810
14816
|
xName: r,
|
|
@@ -14817,7 +14823,7 @@ function Cm(e, t, n, r, i) {
|
|
|
14817
14823
|
yName: r
|
|
14818
14824
|
};
|
|
14819
14825
|
}
|
|
14820
|
-
var
|
|
14826
|
+
var Cm = (e, t) => {
|
|
14821
14827
|
if (t.length === 0) return null;
|
|
14822
14828
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
14823
14829
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -14828,22 +14834,22 @@ var wm = (e, t) => {
|
|
|
14828
14834
|
}
|
|
14829
14835
|
}
|
|
14830
14836
|
return null;
|
|
14831
|
-
},
|
|
14837
|
+
}, wm = (e, t) => {
|
|
14832
14838
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
14833
14839
|
return {
|
|
14834
14840
|
categoryPadOffset: n,
|
|
14835
14841
|
axisMin: 0 - i,
|
|
14836
14842
|
axisMax: r + i
|
|
14837
14843
|
};
|
|
14838
|
-
},
|
|
14844
|
+
}, Tm = (e, t) => {
|
|
14839
14845
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
14840
14846
|
return (e + n - r) / (i - r);
|
|
14841
|
-
},
|
|
14847
|
+
}, Em = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
14842
14848
|
...t,
|
|
14843
14849
|
color: t.color ?? e.color,
|
|
14844
14850
|
formatValue: t.formatValue ?? e.formatValue,
|
|
14845
14851
|
key: `${e.id}-${t.label}`
|
|
14846
|
-
}))),
|
|
14852
|
+
}))), Dm = (e, t, n) => {
|
|
14847
14853
|
let r = /* @__PURE__ */ new Map();
|
|
14848
14854
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
14849
14855
|
let t = r.get(e.groupName) ?? {
|
|
@@ -14865,18 +14871,18 @@ var wm = (e, t) => {
|
|
|
14865
14871
|
});
|
|
14866
14872
|
}), r.set(e.groupName, t);
|
|
14867
14873
|
}), [...r.values()];
|
|
14868
|
-
},
|
|
14869
|
-
function
|
|
14870
|
-
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) =>
|
|
14874
|
+
}, Om = (e) => !!(e.visible && !e.disabled);
|
|
14875
|
+
function km(e) {
|
|
14876
|
+
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) => Om(e)).map((e) => e.id))), u = new Map(t.value.map((e) => [e.id, Om(e)]));
|
|
14871
14877
|
W(t, (e) => {
|
|
14872
14878
|
let t = new Set(l.value), n = !1, r = c?.value !== void 0;
|
|
14873
14879
|
for (let i of e) {
|
|
14874
|
-
let e =
|
|
14880
|
+
let e = Om(i), a = u.has(i.id) ? !u.get(i.id) : !r;
|
|
14875
14881
|
e && a ? (t.add(i.id), n = !0) : !e && u.get(i.id) && (t.delete(i.id), n = !0);
|
|
14876
14882
|
}
|
|
14877
|
-
u = new Map(e.map((e) => [e.id,
|
|
14883
|
+
u = new Map(e.map((e) => [e.id, Om(e)])), n && (l.value = t);
|
|
14878
14884
|
});
|
|
14879
|
-
let d = r(() =>
|
|
14885
|
+
let d = r(() => Em(t.value, l.value)), f = r(() => Dm(t.value, l.value, s)), p = k(null);
|
|
14880
14886
|
return {
|
|
14881
14887
|
activeCrosslineOverlayGroups: l,
|
|
14882
14888
|
resolvedCrosslineOverlays: d,
|
|
@@ -14886,11 +14892,11 @@ function Am(e) {
|
|
|
14886
14892
|
if (!p.value || !a.value) return null;
|
|
14887
14893
|
let e = d.value.find((e) => e.key === p.value);
|
|
14888
14894
|
if (!e) return null;
|
|
14889
|
-
let t =
|
|
14895
|
+
let t = Cm(e.value, a.value);
|
|
14890
14896
|
if (t == null) return null;
|
|
14891
14897
|
let r = (o.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
14892
14898
|
if (!r) return null;
|
|
14893
|
-
let c =
|
|
14899
|
+
let c = Tm(t, wm(a.value.length || 1, n.value)), l = e.formatValue ? e.formatValue(e.value) : s(e.value);
|
|
14894
14900
|
return i.value ? {
|
|
14895
14901
|
label: e.label,
|
|
14896
14902
|
value: l,
|
|
@@ -14917,10 +14923,10 @@ function Am(e) {
|
|
|
14917
14923
|
}
|
|
14918
14924
|
//#endregion
|
|
14919
14925
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
14920
|
-
var
|
|
14926
|
+
var Am = { style: {
|
|
14921
14927
|
height: "100%",
|
|
14922
14928
|
width: "100%"
|
|
14923
|
-
} },
|
|
14929
|
+
} }, jm = {
|
|
14924
14930
|
key: 0,
|
|
14925
14931
|
class: "pv-flex",
|
|
14926
14932
|
style: {
|
|
@@ -14928,26 +14934,26 @@ var jm = { style: {
|
|
|
14928
14934
|
flex: "0 1 auto"
|
|
14929
14935
|
},
|
|
14930
14936
|
"data-testid": "pv-data-table-with-chart-filter-panel-actions"
|
|
14931
|
-
},
|
|
14937
|
+
}, Mm = {
|
|
14932
14938
|
key: 0,
|
|
14933
14939
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
14934
|
-
},
|
|
14940
|
+
}, Nm = { class: "pv-flex" }, Pm = {
|
|
14935
14941
|
class: "pv-flex",
|
|
14936
14942
|
style: { "align-items": "stretch" }
|
|
14937
|
-
},
|
|
14943
|
+
}, Fm = { class: "pv-flex pv-space-between" }, Im = { class: "pv-chart-tooltip-label" }, Lm = { class: "pv-chart-tooltip-value" }, Rm = {
|
|
14938
14944
|
key: 2,
|
|
14939
14945
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
14940
|
-
},
|
|
14946
|
+
}, zm = { key: 0 }, Bm = {
|
|
14941
14947
|
key: 1,
|
|
14942
14948
|
class: "pv-text-body-xs",
|
|
14943
14949
|
style: { "text-align": "center" }
|
|
14944
|
-
},
|
|
14950
|
+
}, Vm = {
|
|
14945
14951
|
class: "pv-flex",
|
|
14946
14952
|
style: { "text-wrap": "nowrap" }
|
|
14947
|
-
},
|
|
14953
|
+
}, Hm = {
|
|
14948
14954
|
key: 2,
|
|
14949
14955
|
class: "pv-text-body-xs"
|
|
14950
|
-
},
|
|
14956
|
+
}, Um = {
|
|
14951
14957
|
key: 0,
|
|
14952
14958
|
class: "pv-stack-8",
|
|
14953
14959
|
style: {
|
|
@@ -14957,15 +14963,15 @@ var jm = { style: {
|
|
|
14957
14963
|
"column-gap": "4px"
|
|
14958
14964
|
},
|
|
14959
14965
|
"data-testid": "pv-data-table-with-chart-stack-values-legend"
|
|
14960
|
-
},
|
|
14966
|
+
}, Wm = ["title"], Gm = {
|
|
14961
14967
|
key: 1,
|
|
14962
14968
|
class: "pv-flex pv-space-between",
|
|
14963
14969
|
style: { "align-items": "center" },
|
|
14964
14970
|
"data-testid": "pv-data-table-with-chart-stack-values-pagination"
|
|
14965
|
-
},
|
|
14971
|
+
}, Km = {
|
|
14966
14972
|
class: "pv-text-body-xs pv-text-subdued",
|
|
14967
14973
|
"data-testid": "pv-data-table-with-chart-stack-values-cap-message"
|
|
14968
|
-
},
|
|
14974
|
+
}, qm = /* @__PURE__ */ d({
|
|
14969
14975
|
__name: "PvDataTableWithChart",
|
|
14970
14976
|
props: {
|
|
14971
14977
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -15297,16 +15303,16 @@ var jm = { style: {
|
|
|
15297
15303
|
formatter: n.valueFormatter,
|
|
15298
15304
|
dataType: n.context?.dataType
|
|
15299
15305
|
};
|
|
15300
|
-
})), le = d.filterStore ||
|
|
15301
|
-
O(
|
|
15302
|
-
let ue =
|
|
15306
|
+
})), le = d.filterStore || _f();
|
|
15307
|
+
O(Cu, le);
|
|
15308
|
+
let ue = md({
|
|
15303
15309
|
focusType: d.initialFocusData?.focusType,
|
|
15304
15310
|
focuses: d.initialFocusData?.focuses || [],
|
|
15305
15311
|
focusRequired: d.focusRequired
|
|
15306
15312
|
}, d.allFieldsAreFocusable);
|
|
15307
|
-
O(
|
|
15313
|
+
O(wu, ue);
|
|
15308
15314
|
let { setFilterSelectedValues: J } = le, de = k(!1);
|
|
15309
|
-
O(
|
|
15315
|
+
O(Pu, de);
|
|
15310
15316
|
let Y = k(d.isTableGrouped), X = (e) => {
|
|
15311
15317
|
p("table-overlay-change", e);
|
|
15312
15318
|
}, fe = r(() => dn.value ? !1 : !!(d.emptyChartFilterRenderer && d.requireFiltersToShowData && le.filterModelEmpty.value)), pe = r(() => ue?.computedFocusType.value || null), me = r(() => ue?.computedFocuses.value || []), he = (e) => {
|
|
@@ -15420,7 +15426,7 @@ var jm = { style: {
|
|
|
15420
15426
|
...R.value.length > 1 ? ls : cs,
|
|
15421
15427
|
us,
|
|
15422
15428
|
ds
|
|
15423
|
-
].filter((e) => d.enabledChartTypes?.includes(e.id))), Q = k(void 0), Me = k(void 0), Ne = k(void 0), Pe = !1, Fe = r(() =>
|
|
15429
|
+
].filter((e) => d.enabledChartTypes?.includes(e.id))), Q = k(void 0), Me = k(void 0), Ne = k(void 0), Pe = !1, Fe = r(() => lm(Q.value?.id || "")), Ie = r(() => Math.min(Fe.value.rowGroupLimit, d.rowGroupLimit)), Le = r(() => {
|
|
15424
15430
|
let e = Fe.value.xAxis.filterColumns, t = e ? e(L.value) : L.value, n = d.rowGroupOptionOrder;
|
|
15425
15431
|
if (!n || n.length === 0) return t;
|
|
15426
15432
|
let r = (e) => {
|
|
@@ -15449,20 +15455,20 @@ var jm = { style: {
|
|
|
15449
15455
|
He.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
15450
15456
|
}, { immediate: !0 });
|
|
15451
15457
|
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("");
|
|
15452
|
-
O(
|
|
15458
|
+
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, K), O(Ku, Ve), O(Ju, He), O(qu, se), O(Yu, Ue), O(Qu, Ke), W(ke, (e) => {
|
|
15453
15459
|
e && Xe.value && (Xe.value = void 0);
|
|
15454
15460
|
}, { immediate: !0 });
|
|
15455
15461
|
let Qe = (e) => {
|
|
15456
15462
|
Q.value = Z.value.find((t) => t.id === e) ?? Z.value[0];
|
|
15457
15463
|
}, $e = (e) => {
|
|
15458
15464
|
let t = R.value.length, n = (e) => {
|
|
15459
|
-
let n =
|
|
15465
|
+
let n = lm(e.id);
|
|
15460
15466
|
return t <= Math.min(n.rowGroupLimit, d.rowGroupLimit);
|
|
15461
15467
|
}, r = Z.value.find((t) => t.id === e);
|
|
15462
15468
|
return r && n(r) ? r.id : Z.value.find(n)?.id ?? Z.value[0]?.id;
|
|
15463
15469
|
};
|
|
15464
15470
|
W(() => Z.value, () => {
|
|
15465
|
-
let e = gt.value, t = e !== Pe, n =
|
|
15471
|
+
let e = gt.value, t = e !== Pe, n = lm(Q.value?.id || ""), r = Z.value.some((e) => e.id === Q.value?.id), i = R.value.length > Math.min(n.rowGroupLimit, d.rowGroupLimit);
|
|
15466
15472
|
if (Pe = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
15467
15473
|
let a = $e((e ? Ne?.value : Me?.value) ?? d.chartType);
|
|
15468
15474
|
a && Qe(a);
|
|
@@ -15474,7 +15480,7 @@ var jm = { style: {
|
|
|
15474
15480
|
if (d.chartFilter && m.value) {
|
|
15475
15481
|
let t = d.chartFilter.colId, n = d.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
15476
15482
|
n && n.length === 0 && (n = null), J(t, n || []);
|
|
15477
|
-
let r =
|
|
15483
|
+
let r = Pd({
|
|
15478
15484
|
filterType: "set",
|
|
15479
15485
|
values: n
|
|
15480
15486
|
}, De(t));
|
|
@@ -15577,7 +15583,7 @@ var jm = { style: {
|
|
|
15577
15583
|
}))), We.value.length > 0) {
|
|
15578
15584
|
let t = De(B.value)?.context?.metadataDisplayFields?.[0] || B.value, r = dt.value;
|
|
15579
15585
|
for (let i of We.value) {
|
|
15580
|
-
let a = ce(se.value, i), o = et(a), s = e ? `${i}${vs}` : i, c =
|
|
15586
|
+
let a = ce(se.value, i), o = et(a), s = e ? `${i}${vs}` : i, c = Sm(B.value, t, s, o, ut.value), l = (Wt.value ?? []).filter((e) => e[s] != null).length, u = {
|
|
15581
15587
|
type: r,
|
|
15582
15588
|
id: Ue.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
15583
15589
|
data: Wt.value,
|
|
@@ -15621,12 +15627,12 @@ var jm = { style: {
|
|
|
15621
15627
|
label: { enabled: !1 },
|
|
15622
15628
|
tooltip: { enabled: !1 },
|
|
15623
15629
|
visible: !1
|
|
15624
|
-
}, { categoryPadOffset: i } =
|
|
15630
|
+
}, { categoryPadOffset: i } = wm(e, !0), a = {
|
|
15625
15631
|
type: "scatter",
|
|
15626
15632
|
xKey: "__dummy_x__",
|
|
15627
15633
|
yKey: "__dummy_y__",
|
|
15628
15634
|
data: Mt.value.flatMap((e) => {
|
|
15629
|
-
let t =
|
|
15635
|
+
let t = Cm(e.value, At.value || []);
|
|
15630
15636
|
if (t === null) return [];
|
|
15631
15637
|
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;
|
|
15632
15638
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
@@ -15688,8 +15694,8 @@ var jm = { style: {
|
|
|
15688
15694
|
oldState: { secondarySeriesField: t?.join(",") || void 0 }
|
|
15689
15695
|
});
|
|
15690
15696
|
}), W(Q, (e, t) => {
|
|
15691
|
-
e?.id &&
|
|
15692
|
-
let n =
|
|
15697
|
+
e?.id && lm(e.id).storeBeforeChange && (gt.value ? Ne.value = e.id : Me.value = e.id);
|
|
15698
|
+
let n = lm(e?.id || ""), r = lm(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? R.value : nm(R.value, L.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, d.rowGroupLimit));
|
|
15693
15699
|
n.seriesFamily === "map" && i.length === 0 && Le.value.some((e) => e.field === "state") && i.push(fs), ct(i, R.value) || (R.value = i), n.yAxis.defaultValue ? $.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
15694
15700
|
d.yKey ? $.value = d.yKey : K.value.length > 0 && ($.value = K.value[0].value);
|
|
15695
15701
|
}), p("chart-state-changed", {
|
|
@@ -15757,7 +15763,7 @@ var jm = { style: {
|
|
|
15757
15763
|
if (d.serverSideChartHandler) {
|
|
15758
15764
|
let e = le.filterModel.value, n = m.value?.getColumnDefs() || [];
|
|
15759
15765
|
if (e === null && d.initialGridState) {
|
|
15760
|
-
let t =
|
|
15766
|
+
let t = Ld(d.initialGridState, n, d.enableAdvancedFilter);
|
|
15761
15767
|
e = (d.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
15762
15768
|
}
|
|
15763
15769
|
e ||= {};
|
|
@@ -15839,7 +15845,7 @@ var jm = { style: {
|
|
|
15839
15845
|
];
|
|
15840
15846
|
}
|
|
15841
15847
|
return e;
|
|
15842
|
-
}), { activeCrosslineOverlayGroups: jt, resolvedCrosslineOverlays: Mt, chipSections: Nt, hoveredBenchmarkKey: Pt, hoveredCrosslineTooltip: Ft } =
|
|
15848
|
+
}), { activeCrosslineOverlayGroups: jt, resolvedCrosslineOverlays: Mt, chipSections: Nt, hoveredBenchmarkKey: Pt, hoveredCrosslineTooltip: Ft } = km({
|
|
15843
15849
|
crosslineOverlayGroups: Ke,
|
|
15844
15850
|
isHistogramWithBuckets: yt,
|
|
15845
15851
|
isHorizontalBarChart: ut,
|
|
@@ -15851,7 +15857,7 @@ var jm = { style: {
|
|
|
15851
15857
|
},
|
|
15852
15858
|
initialActiveOverlayGroupIds: r(() => d.initialActiveOverlayGroupIds)
|
|
15853
15859
|
});
|
|
15854
|
-
O(
|
|
15860
|
+
O(Zu, jt), W(jt, (e) => p("active-overlay-group-ids-change", [...e]), { deep: !0 });
|
|
15855
15861
|
let It = new Set([gs, _s]), Lt = k(void 0), Rt = r(() => Q.value?.id === "map"), zt = r(() => $.value || K.value[0]?.value || "value"), Bt = r(() => "600px"), Vt = r(() => {
|
|
15856
15862
|
let e = B.value, t = zt.value;
|
|
15857
15863
|
return !e || !t ? [] : (At.value ?? []).filter((t) => {
|
|
@@ -15997,7 +16003,7 @@ var jm = { style: {
|
|
|
15997
16003
|
paddingOuter: yt.value ? 0 : sn.value,
|
|
15998
16004
|
groupPaddingInner: cn.value
|
|
15999
16005
|
}), yt.value && Mt.value.length > 0) {
|
|
16000
|
-
let { categoryPadOffset: e, axisMin: t, axisMax: n } =
|
|
16006
|
+
let { categoryPadOffset: e, axisMin: t, axisMax: n } = wm(At.value?.length || 1, !0);
|
|
16001
16007
|
o.push({
|
|
16002
16008
|
type: "number",
|
|
16003
16009
|
keys: ["__dummy_x__"],
|
|
@@ -16012,7 +16018,7 @@ var jm = { style: {
|
|
|
16012
16018
|
gridLine: { enabled: !1 },
|
|
16013
16019
|
crossLines: Mt.value.map((t) => {
|
|
16014
16020
|
if (!At.value) return null;
|
|
16015
|
-
let n =
|
|
16021
|
+
let n = Cm(t.value, At.value);
|
|
16016
16022
|
if (n == null) return null;
|
|
16017
16023
|
let r = Pt.value != null && t.key === Pt.value, i = Pt.value != null && !r;
|
|
16018
16024
|
return {
|
|
@@ -16111,13 +16117,13 @@ var jm = { style: {
|
|
|
16111
16117
|
}
|
|
16112
16118
|
}), T(async () => {
|
|
16113
16119
|
await v(), E.value = d.filterPanelAboveChart;
|
|
16114
|
-
}), (n, r) => (D(), o("div",
|
|
16120
|
+
}), (n, r) => (D(), o("div", Am, [
|
|
16115
16121
|
s("div", { class: y(["pv-stack-16", { "pv-flex": ee.value }]) }, [s("div", {
|
|
16116
16122
|
id: w,
|
|
16117
16123
|
style: x(ee.value ? "flex: 1 1 0" : void 0)
|
|
16118
|
-
}, null, 4), ee.value ? (D(), o("div",
|
|
16124
|
+
}, null, 4), ee.value ? (D(), o("div", jm, [j(n.$slots, "filter-panel-actions")])) : a("", !0)], 2),
|
|
16119
16125
|
j(n.$slots, "above-chart"),
|
|
16120
|
-
e.hideChart ? a("", !0) : (D(), o("div",
|
|
16126
|
+
e.hideChart ? a("", !0) : (D(), o("div", Mm, [
|
|
16121
16127
|
u(Qn, {
|
|
16122
16128
|
rightIcon: "chevrons-down-up",
|
|
16123
16129
|
label: "Collapse",
|
|
@@ -16129,7 +16135,7 @@ var jm = { style: {
|
|
|
16129
16135
|
onClick: r[0] ||= (e) => Sn(!C.value),
|
|
16130
16136
|
class: y(e.hideChart || C.value ? "pv-hide" : "")
|
|
16131
16137
|
}, null, 8, ["class"]),
|
|
16132
|
-
s("div", { class: y(e.hideChart || !C.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
16138
|
+
s("div", { class: y(e.hideChart || !C.value ? "pv-hide" : "pv-space-between") }, [s("div", Nm, [u(Jn, {
|
|
16133
16139
|
name: "chart-line",
|
|
16134
16140
|
size: 20,
|
|
16135
16141
|
class: "pv-text-subdued"
|
|
@@ -16143,7 +16149,7 @@ var jm = { style: {
|
|
|
16143
16149
|
onClick: r[1] ||= (e) => Sn(!C.value)
|
|
16144
16150
|
})], 2),
|
|
16145
16151
|
s("div", { class: y(e.hideChart || C.value ? "pv-hide" : "") }, [
|
|
16146
|
-
u(
|
|
16152
|
+
u(xm, {
|
|
16147
16153
|
enablePanel: At.value != null && At.value.length > 0,
|
|
16148
16154
|
chartFilter: e.chartFilter,
|
|
16149
16155
|
rowGroupLimit: Ie.value,
|
|
@@ -16167,7 +16173,7 @@ var jm = { style: {
|
|
|
16167
16173
|
"read-only",
|
|
16168
16174
|
"percent-of-focus-view-y-key"
|
|
16169
16175
|
]),
|
|
16170
|
-
s("div",
|
|
16176
|
+
s("div", Pm, [z(Nt).length > 0 ? (D(), i($p, {
|
|
16171
16177
|
key: 0,
|
|
16172
16178
|
sections: z(Nt),
|
|
16173
16179
|
onChipHover: r[2] ||= (e) => Pt.value = e
|
|
@@ -16225,7 +16231,7 @@ var jm = { style: {
|
|
|
16225
16231
|
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", z(Ft).arrowClass]),
|
|
16226
16232
|
"data-variant": "white",
|
|
16227
16233
|
style: x(z(Ft).style)
|
|
16228
|
-
}, [s("div",
|
|
16234
|
+
}, [s("div", Fm, [s("div", Im, P(z(Ft).label), 1), s("div", Lm, P(z(Ft).value), 1)])], 6)) : a("", !0)], 4)], 6)), Rt.value ? a("", !0) : (D(), o("div", Rm, [fe.value ? (D(), o("div", zm, [(D(), i(N(e.emptyChartFilterRenderer)))])) : _n.value ? (D(), o("div", Bm, [s("span", null, "Select focus " + P(fn.value) + " to view Visualization. You can select a focus " + P(fn.value) + " by", 1), s("span", Vm, [
|
|
16229
16235
|
r[12] ||= l(" opening the filter dropdown and clicking on the focus icon ", -1),
|
|
16230
16236
|
u(Jn, {
|
|
16231
16237
|
name: "focus",
|
|
@@ -16234,8 +16240,8 @@ var jm = { style: {
|
|
|
16234
16240
|
style: { "vertical-align": "middle" }
|
|
16235
16241
|
}),
|
|
16236
16242
|
r[13] ||= l(" on the right hand side. ", -1)
|
|
16237
|
-
])])) : xn.value ? (D(), o("p",
|
|
16238
|
-
rt.value.length > 0 ? (D(), o("div",
|
|
16243
|
+
])])) : xn.value ? (D(), o("p", Hm, P(pn.value), 1)) : a("", !0)]))], 4)]),
|
|
16244
|
+
rt.value.length > 0 ? (D(), o("div", Um, [(D(!0), o(t, null, A(rt.value, (e) => (D(), o("div", {
|
|
16239
16245
|
key: e.key,
|
|
16240
16246
|
class: "pv-flex",
|
|
16241
16247
|
style: {
|
|
@@ -16254,8 +16260,8 @@ var jm = { style: {
|
|
|
16254
16260
|
overflow: "hidden",
|
|
16255
16261
|
"text-overflow": "ellipsis"
|
|
16256
16262
|
}
|
|
16257
|
-
}, P(e.label), 9,
|
|
16258
|
-
nt.value ? (D(), o("div",
|
|
16263
|
+
}, P(e.label), 9, Wm)]))), 128))])) : a("", !0),
|
|
16264
|
+
nt.value ? (D(), o("div", Gm, [s("p", Km, P(nt.value), 1), u(El, {
|
|
16259
16265
|
variant: "short",
|
|
16260
16266
|
maxPages: Ye.value?.pageCount ?? 1,
|
|
16261
16267
|
modelValue: Je.value + 1,
|
|
@@ -16263,7 +16269,7 @@ var jm = { style: {
|
|
|
16263
16269
|
}, null, 8, ["maxPages", "modelValue"])])) : a("", !0)
|
|
16264
16270
|
], 2)
|
|
16265
16271
|
])),
|
|
16266
|
-
(D(), i(
|
|
16272
|
+
(D(), i(Ip, _({
|
|
16267
16273
|
ref_key: "pvDataTableRef",
|
|
16268
16274
|
ref: h,
|
|
16269
16275
|
key: ae.value
|
|
@@ -16285,7 +16291,7 @@ var jm = { style: {
|
|
|
16285
16291
|
onHandleSettingsIcon: r[9] ||= (e) => p("handle-settings-icon", e),
|
|
16286
16292
|
onFocusUpdate: r[10] ||= (e) => p("focus-update", e)
|
|
16287
16293
|
}), {
|
|
16288
|
-
"top-slot": G(() => [e.enableGroupingToggle && !H.value ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
16294
|
+
"top-slot": G(() => [e.enableGroupingToggle && !H.value ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(Kp, {
|
|
16289
16295
|
key: 0,
|
|
16290
16296
|
groupedModeEnabled: Y.value,
|
|
16291
16297
|
tableConfigOptions: d.tableConfigOptions,
|
|
@@ -16310,7 +16316,7 @@ var jm = { style: {
|
|
|
16310
16316
|
]))
|
|
16311
16317
|
]));
|
|
16312
16318
|
}
|
|
16313
|
-
}),
|
|
16319
|
+
}), Jm = "Unable to load data", Ym = (e, t = {}) => {
|
|
16314
16320
|
let n = k([]), i = k(!1), a = k(), o = 0, s = async () => {
|
|
16315
16321
|
let t = ++o;
|
|
16316
16322
|
i.value = !0;
|
|
@@ -16340,6 +16346,6 @@ var jm = { style: {
|
|
|
16340
16346
|
};
|
|
16341
16347
|
};
|
|
16342
16348
|
//#endregion
|
|
16343
|
-
export {
|
|
16349
|
+
export { Au as AvailableRowGroupColumnsKey, ys as ColDefDataType, Du as ColumnDisplayOrderKey, Jm as DEFAULT_DATA_WIDGET_ERROR_TEXT, Cu as FilterStoreKey, Pu as FirstDataRenderedKey, wu as FocusStoreKey, Eu as GridApiKey, Mu as GroupColumnCellValueColumnKey, Ut as MAX_LABEL_LENGTH, Ht as NO_DATA_OVERLAY_TEXT, Vt as NULL_PLACEHOLDER_VALUE, Tt as PitViperAGChartsMonochromeTheme, wt as PitViperAGChartsMonochromeThemeName, Dt as PitViperAGChartsMulticolorTheme, Et as PitViperAGChartsMulticolorThemeName, ln as PvChart, An as PvChartWidget, Ip as PvDataTable, qm as PvDataTableWithChart, Cc as PvDataWidget, $o as PvMapChart, yu as RumContextKey, vt as SCATTER_MARKER_STROKE, xu as addRumAction, Ld as cleanInitialGridState, Ts 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, gn as getChartScrollContentStyle, hn as getChartScrollOverflowStyle, mn as getScrollableChartMinHeight, of as getSelectedValues, rf as getSelectedValuesFromAdvancedFilterModel, Jd as getSelectedValuesFromFilterModel, af as getSelectedValuesFromFilterModelByColId, Yd as isAdvancedFilterModel, ks as isColDefNumericDataType, Zd as isFilterModelEmpty, Is as mapColsToColumnV0, bs as mapEntityTypeToHeaderIcon, Pd as mapFilterBasedOnColDef, tf as mergeAdvancedFilterCondition, Ud as mergeFilterModels, _t as multicolorFills, Nt as preloadAgCharts, Fs as processRowGroupCols, gf as providePvDataTableFilterStore, sf as removeColumnFilter, nf as removeColumnFromAdvancedFilter, Cs as truncateValue, lf as updateMultiOrSetFilter, cf as updateSetFilter, vf as usePvDataTableFilterStore, Ym as usePvDataWidgetData, bu as useRumContext };
|
|
16344
16350
|
|
|
16345
16351
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|