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