@turquoisehealth/pit-viper 2.202.2-dev.2 → 2.203.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.css +12 -2
- package/_site/assets/css/pit-viper-consumer.css +7 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +7 -0
- package/_site/assets/css/pit-viper-v2.css +159 -2
- package/_site/assets/css/pit-viper.css +7 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +4 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +2 -10
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +581 -584
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1 -1
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +4 -1
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -6112,14 +6112,14 @@ var Sa = {
|
|
|
6112
6112
|
displayName: e.getColDef().headerName || "",
|
|
6113
6113
|
field: e.getColDef().field || "",
|
|
6114
6114
|
aggFunc: e.getAggFunc() || void 0
|
|
6115
|
-
})), Io = (e
|
|
6116
|
-
let
|
|
6117
|
-
return
|
|
6118
|
-
}, Lo = (e, t) => {
|
|
6115
|
+
})), Io = (e) => {
|
|
6116
|
+
let t = $(e);
|
|
6117
|
+
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
6118
|
+
}, Lo = (e, t, n) => n.has(e) && typeof t == "string" ? `${e}_${t}` : e, Ro = (e, t) => {
|
|
6119
6119
|
if (!Number.isFinite(e) || e <= 0 || t <= 0) return 0;
|
|
6120
6120
|
let n = e / t, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
6121
6121
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 2.5 ? 2.5 : i <= 5 ? 5 : 10) * r * t;
|
|
6122
|
-
},
|
|
6122
|
+
}, zo = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i, yAxisName: a, yAxisOptionCount: o }) => e === 0 ? "No groups selected. Select at least one group to display data." : n ? t ? r ?? `Select focus ${i} to view Visualization.` : a && (o ?? 0) > 1 ? `No data available for ${a}, please select a different one.` : jt : "", Bo = (e, t) => `${e}_${t}`, Vo = (e) => `secondaryCategory_${e}`, Ho = (e, t, n, r, i = []) => {
|
|
6123
6123
|
if (!e || e.length === 0) return {
|
|
6124
6124
|
data: [],
|
|
6125
6125
|
uniqueFieldValues: []
|
|
@@ -6132,7 +6132,7 @@ var Sa = {
|
|
|
6132
6132
|
let o = e.reduce((e, o) => {
|
|
6133
6133
|
let s = o[t];
|
|
6134
6134
|
e[s] || (e[s] = {});
|
|
6135
|
-
let c = o[n], l =
|
|
6135
|
+
let c = o[n], l = Vo(c);
|
|
6136
6136
|
e[s][l] = `${s}-${c}`;
|
|
6137
6137
|
for (let t of r) {
|
|
6138
6138
|
let r = t.value, i = 0;
|
|
@@ -6140,7 +6140,7 @@ var Sa = {
|
|
|
6140
6140
|
let l = o[r];
|
|
6141
6141
|
if (a.add(c), n && l) {
|
|
6142
6142
|
let t = l ?? 0;
|
|
6143
|
-
e[s][
|
|
6143
|
+
e[s][Bo(r, c)] = t, i += t;
|
|
6144
6144
|
}
|
|
6145
6145
|
e[s][`${r}${yo}`] = i;
|
|
6146
6146
|
}
|
|
@@ -6154,7 +6154,7 @@ var Sa = {
|
|
|
6154
6154
|
})),
|
|
6155
6155
|
uniqueFieldValues: Array.from(a)
|
|
6156
6156
|
};
|
|
6157
|
-
},
|
|
6157
|
+
}, Uo = (e, t, n) => {
|
|
6158
6158
|
let r = -Infinity;
|
|
6159
6159
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
6160
6160
|
let n = e[t + yo];
|
|
@@ -6163,7 +6163,7 @@ var Sa = {
|
|
|
6163
6163
|
let n = e[t];
|
|
6164
6164
|
typeof n == "number" && n > r && (r = n);
|
|
6165
6165
|
})), r;
|
|
6166
|
-
},
|
|
6166
|
+
}, Wo = (e, t, n) => {
|
|
6167
6167
|
let r = Infinity;
|
|
6168
6168
|
if (!e || e.length === 0) return r;
|
|
6169
6169
|
let i = n ? t + yo : t;
|
|
@@ -6171,13 +6171,13 @@ var Sa = {
|
|
|
6171
6171
|
let t = e[i];
|
|
6172
6172
|
typeof t == "number" && t < r && (r = t);
|
|
6173
6173
|
}), r;
|
|
6174
|
-
},
|
|
6174
|
+
}, Go = new Map(oo.map((e) => [e.value, e])), Ko = (e) => e !== null, qo = (e) => {
|
|
6175
6175
|
let t = Number(e ?? 0);
|
|
6176
6176
|
return Number.isFinite(t) ? t : 0;
|
|
6177
|
-
},
|
|
6177
|
+
}, Jo = (e) => {
|
|
6178
6178
|
let t = typeof e == "string" ? { value: e } : e, n = t.value;
|
|
6179
6179
|
if (!n) return null;
|
|
6180
|
-
let r =
|
|
6180
|
+
let r = Go.get(n), i = t.label ?? r?.label ?? n;
|
|
6181
6181
|
return {
|
|
6182
6182
|
ariaLabel: t.ariaLabel ?? i,
|
|
6183
6183
|
icon: t.icon ?? r?.icon,
|
|
@@ -6185,10 +6185,10 @@ var Sa = {
|
|
|
6185
6185
|
label: i,
|
|
6186
6186
|
value: n
|
|
6187
6187
|
};
|
|
6188
|
-
},
|
|
6189
|
-
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e : so).map(
|
|
6188
|
+
}, Yo = (e = [], t = {}) => {
|
|
6189
|
+
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e : so).map(Jo).filter(Ko);
|
|
6190
6190
|
if (!r.some((e) => e.value !== "table")) {
|
|
6191
|
-
let e =
|
|
6191
|
+
let e = Jo(co);
|
|
6192
6192
|
e && (r = [e, ...r]);
|
|
6193
6193
|
}
|
|
6194
6194
|
if (!e.some((e) => typeof e == "object" && !!e)) {
|
|
@@ -6203,21 +6203,21 @@ var Sa = {
|
|
|
6203
6203
|
}
|
|
6204
6204
|
}
|
|
6205
6205
|
return r;
|
|
6206
|
-
},
|
|
6206
|
+
}, Xo = (e, t) => t.find((t) => t.value === e)?.value ?? t[0]?.value ?? "table", Zo = (e, t = []) => {
|
|
6207
6207
|
if (t.length > 0) return t.filter((e) => !e.hide);
|
|
6208
6208
|
let n = e[0];
|
|
6209
6209
|
return n ? Object.keys(n).map((e) => ({
|
|
6210
6210
|
field: e,
|
|
6211
6211
|
headerName: e
|
|
6212
6212
|
})) : [];
|
|
6213
|
-
},
|
|
6213
|
+
}, Qo = (e, t = "") => e?.context?.chartSeriesDisplayName ?? e?.headerName ?? e?.field ?? t, $o = (e) => String(e?.context?.dataType ?? e?.dataType ?? e?.type ?? "").toLowerCase(), es = (e, t) => {
|
|
6214
6214
|
if (!e) return !1;
|
|
6215
|
-
let n =
|
|
6215
|
+
let n = $o(e);
|
|
6216
6216
|
return uo.has(n) ? !0 : t.some((t) => typeof t[e.field] == "number");
|
|
6217
|
-
},
|
|
6217
|
+
}, ts = (e, t) => {
|
|
6218
6218
|
let n = e[t];
|
|
6219
6219
|
return n == null ? "" : String(n);
|
|
6220
|
-
},
|
|
6220
|
+
}, ns = (e, t) => {
|
|
6221
6221
|
let n = e, r = { ...n };
|
|
6222
6222
|
if (t.noDataOverlayText) {
|
|
6223
6223
|
let e = on(n.overlays), i = on(e?.noData);
|
|
@@ -6238,26 +6238,26 @@ var Sa = {
|
|
|
6238
6238
|
hideValueAxis: t.hideValueAxis,
|
|
6239
6239
|
showAxes: !t.hideAxes
|
|
6240
6240
|
});
|
|
6241
|
-
},
|
|
6241
|
+
}, rs = ({ dataRows: e, categoryColumn: t, seriesColumn: n, stackColumn: r }) => {
|
|
6242
6242
|
if (!t || !n || !r) return {
|
|
6243
6243
|
data: e,
|
|
6244
6244
|
stackValues: []
|
|
6245
6245
|
};
|
|
6246
6246
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
6247
6247
|
return e.forEach((e) => {
|
|
6248
|
-
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c =
|
|
6248
|
+
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c = Bo(n.field, s);
|
|
6249
6249
|
a.add(s);
|
|
6250
6250
|
let l = i.get(o) ?? { [t.field]: o };
|
|
6251
|
-
l[c] = Number(l[c] ?? 0) +
|
|
6251
|
+
l[c] = Number(l[c] ?? 0) + qo(e[n.field]), i.set(o, l);
|
|
6252
6252
|
}), {
|
|
6253
6253
|
data: Array.from(i.values()),
|
|
6254
6254
|
stackValues: Array.from(a)
|
|
6255
6255
|
};
|
|
6256
|
-
},
|
|
6256
|
+
}, is = ({ dataRows: e, categoryColumn: t, seriesColumn: n }) => {
|
|
6257
6257
|
if (!t || !n) return e;
|
|
6258
6258
|
let r = /* @__PURE__ */ new Map();
|
|
6259
6259
|
return e.forEach((e) => {
|
|
6260
|
-
let i = e[t.field] ?? "", a = String(i), o =
|
|
6260
|
+
let i = e[t.field] ?? "", a = String(i), o = qo(e[n.field]), s = r.get(a);
|
|
6261
6261
|
if (s) {
|
|
6262
6262
|
s[n.field] = Number(s[n.field] ?? 0) + o;
|
|
6263
6263
|
return;
|
|
@@ -6268,16 +6268,16 @@ var Sa = {
|
|
|
6268
6268
|
[n.field]: o
|
|
6269
6269
|
});
|
|
6270
6270
|
}), Array.from(r.values());
|
|
6271
|
-
},
|
|
6271
|
+
}, as = ({ dataRows: e, mapColumn: t, seriesColumn: n }) => {
|
|
6272
6272
|
if (!t || !n) return [];
|
|
6273
6273
|
let r = /* @__PURE__ */ new Map();
|
|
6274
6274
|
return e.forEach((e) => {
|
|
6275
6275
|
let i = String(e[t.field] ?? "");
|
|
6276
6276
|
if (!i) return;
|
|
6277
6277
|
let a = r.get(i) ?? { state: i };
|
|
6278
|
-
a[n.field] = Number(a[n.field] ?? 0) +
|
|
6278
|
+
a[n.field] = Number(a[n.field] ?? 0) + qo(e[n.field]), r.set(i, a);
|
|
6279
6279
|
}), Array.from(r.values());
|
|
6280
|
-
},
|
|
6280
|
+
}, os = (e, t) => {
|
|
6281
6281
|
if (!t || e.length === 0) return {
|
|
6282
6282
|
min: 0,
|
|
6283
6283
|
max: 0
|
|
@@ -6293,8 +6293,8 @@ var Sa = {
|
|
|
6293
6293
|
min: 0,
|
|
6294
6294
|
max: 0
|
|
6295
6295
|
};
|
|
6296
|
-
},
|
|
6297
|
-
let t =
|
|
6296
|
+
}, ss = (e) => {
|
|
6297
|
+
let t = $o(e);
|
|
6298
6298
|
return t === "currency" ? (e) => e.toLocaleString("en-US", {
|
|
6299
6299
|
currency: "USD",
|
|
6300
6300
|
maximumFractionDigits: 0,
|
|
@@ -6303,7 +6303,7 @@ var Sa = {
|
|
|
6303
6303
|
maximumFractionDigits: 0,
|
|
6304
6304
|
style: "percent"
|
|
6305
6305
|
}) : (e) => e.toLocaleString("en-US");
|
|
6306
|
-
},
|
|
6306
|
+
}, cs = ({ aggregatedCategoryChartData: e, categoryColumn: t, dataLimit: n, displayDataRows: r, hideAxes: i, hideAxisTitles: a, hideLegend: o, hideValueAxis: s, noDataOverlayText: c, numericColumns: l, providedChartOptions: u, secondarySeriesColumn: d, selectedChartType: f, seriesColumn: p, showSeriesLabels: m, stackColumn: h, stackedChartData: g, useDisplayDataRows: _, xKey: v, yKey: y }) => {
|
|
6307
6307
|
let b = {
|
|
6308
6308
|
dataLimit: n,
|
|
6309
6309
|
hideAxes: i,
|
|
@@ -6312,12 +6312,12 @@ var Sa = {
|
|
|
6312
6312
|
hideValueAxis: s,
|
|
6313
6313
|
noDataOverlayText: c
|
|
6314
6314
|
};
|
|
6315
|
-
if (u) return
|
|
6315
|
+
if (u) return ns({
|
|
6316
6316
|
...u,
|
|
6317
6317
|
data: _ ? r : u.data ?? r
|
|
6318
6318
|
}, b);
|
|
6319
|
-
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w =
|
|
6320
|
-
if (x === "pie") return
|
|
6319
|
+
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w = Qo(t, S), T = Qo(p, C);
|
|
6320
|
+
if (x === "pie") return ns({
|
|
6321
6321
|
data: e,
|
|
6322
6322
|
series: [{
|
|
6323
6323
|
type: "pie",
|
|
@@ -6329,34 +6329,34 @@ var Sa = {
|
|
|
6329
6329
|
}, b);
|
|
6330
6330
|
if (x === "scatter") {
|
|
6331
6331
|
let e = v === void 0 ? l[0] ?? t : t, n = y === void 0 ? l.find((t) => t.field !== e?.field) ?? d ?? p : p, i = e?.field ?? S, a = n?.field ?? C;
|
|
6332
|
-
return
|
|
6332
|
+
return ns({
|
|
6333
6333
|
data: r,
|
|
6334
6334
|
series: [{
|
|
6335
6335
|
type: "scatter",
|
|
6336
6336
|
xKey: i,
|
|
6337
|
-
xName:
|
|
6337
|
+
xName: Qo(e, i),
|
|
6338
6338
|
yKey: a,
|
|
6339
|
-
yName:
|
|
6339
|
+
yName: Qo(n, a)
|
|
6340
6340
|
}],
|
|
6341
6341
|
axes: [{
|
|
6342
6342
|
type: "number",
|
|
6343
6343
|
position: "bottom",
|
|
6344
|
-
title: { text:
|
|
6344
|
+
title: { text: Qo(e, i) }
|
|
6345
6345
|
}, {
|
|
6346
6346
|
type: "number",
|
|
6347
6347
|
position: "left",
|
|
6348
|
-
title: { text:
|
|
6348
|
+
title: { text: Qo(n, a) }
|
|
6349
6349
|
}]
|
|
6350
6350
|
}, b);
|
|
6351
6351
|
}
|
|
6352
6352
|
if (x === "histogram") {
|
|
6353
6353
|
let e = v === void 0 ? l[0] ?? p ?? t : t, n = e?.field ?? C;
|
|
6354
|
-
return
|
|
6354
|
+
return ns({
|
|
6355
6355
|
data: r,
|
|
6356
6356
|
series: [{
|
|
6357
6357
|
type: "histogram",
|
|
6358
6358
|
xKey: n,
|
|
6359
|
-
xName:
|
|
6359
|
+
xName: Qo(e, n)
|
|
6360
6360
|
}]
|
|
6361
6361
|
}, b);
|
|
6362
6362
|
}
|
|
@@ -6364,13 +6364,13 @@ var Sa = {
|
|
|
6364
6364
|
enabled: !0,
|
|
6365
6365
|
...D === "bar" ? { placement: "outside-end" } : {}
|
|
6366
6366
|
} } : {}, A = x.endsWith("_stacked") && !!h, j = !!h && (A || g.stackValues.length > 1);
|
|
6367
|
-
return
|
|
6367
|
+
return ns({
|
|
6368
6368
|
data: j ? g.data : e,
|
|
6369
6369
|
series: j ? g.stackValues.map((e) => ({
|
|
6370
6370
|
type: D,
|
|
6371
6371
|
xKey: S,
|
|
6372
6372
|
xName: w,
|
|
6373
|
-
yKey:
|
|
6373
|
+
yKey: Bo(C, e),
|
|
6374
6374
|
yName: e,
|
|
6375
6375
|
...D === "bar" ? { direction: O ? "horizontal" : "vertical" } : {},
|
|
6376
6376
|
...A ? { stacked: !0 } : {},
|
|
@@ -6394,16 +6394,16 @@ var Sa = {
|
|
|
6394
6394
|
title: { text: T }
|
|
6395
6395
|
}]
|
|
6396
6396
|
}, b);
|
|
6397
|
-
},
|
|
6397
|
+
}, ls = {
|
|
6398
6398
|
key: 0,
|
|
6399
6399
|
class: "pv-flex pv-space-between pv-stack-12"
|
|
6400
|
-
},
|
|
6400
|
+
}, us = {
|
|
6401
6401
|
key: 0,
|
|
6402
6402
|
class: "pv-heading-2"
|
|
6403
|
-
},
|
|
6403
|
+
}, ds = {
|
|
6404
6404
|
key: 1,
|
|
6405
6405
|
class: "pv-stack-12"
|
|
6406
|
-
},
|
|
6406
|
+
}, fs = { class: "pv-data-widget__body" }, ps = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6407
6407
|
__name: "PvDataWidget",
|
|
6408
6408
|
props: /* @__PURE__ */ g({
|
|
6409
6409
|
appliedFilters: { default: () => [] },
|
|
@@ -6473,12 +6473,12 @@ var Sa = {
|
|
|
6473
6473
|
let n = e, c = R(e, "chartType"), l = (e) => {
|
|
6474
6474
|
let t = e?.data;
|
|
6475
6475
|
return Array.isArray(t) ? t : [];
|
|
6476
|
-
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() =>
|
|
6477
|
-
get: () =>
|
|
6476
|
+
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() => Yo(F.value ? n.chartTypes : n.chartTypes.filter((e) => !d(e)), { useDefaultChartTypesWhenEmpty: n.chartTypes.length === 0 })), p = r({
|
|
6477
|
+
get: () => Xo(c.value, f.value),
|
|
6478
6478
|
set: (e) => {
|
|
6479
6479
|
c.value = e;
|
|
6480
6480
|
}
|
|
6481
|
-
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => cn(_.value, n.dataLimit)), b = r(() =>
|
|
6481
|
+
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => cn(_.value, n.dataLimit)), b = r(() => Zo(_.value, n.colDefs)), S = (e) => es(e, _.value), C = r(() => b.value.filter((e) => !e.context?.hideFromCharting)), w = r(() => C.value.filter(S)), T = r(() => {
|
|
6482
6482
|
if (n.xKey !== void 0) {
|
|
6483
6483
|
let e = n.xKey;
|
|
6484
6484
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
@@ -6501,34 +6501,34 @@ var Sa = {
|
|
|
6501
6501
|
let e = n.mapKey;
|
|
6502
6502
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
6503
6503
|
}
|
|
6504
|
-
return C.value.find((e) => e.field === "state") ?? C.value.find((e) =>
|
|
6504
|
+
return C.value.find((e) => e.field === "state") ?? C.value.find((e) => $o(e) === "location");
|
|
6505
6505
|
}), F = r(() => {
|
|
6506
6506
|
let e = N.value?.field;
|
|
6507
6507
|
return !!(e && T.value?.field === e);
|
|
6508
6508
|
}), I = r(() => !!n.chartOptions || _.value.length > 0 || b.value.length > 0), L = r(() => p.value === lo), ee = r(() => p.value === "map" && F.value), z = O(), B = r(() => b.value.map((e) => ({
|
|
6509
6509
|
field: e.field,
|
|
6510
|
-
label:
|
|
6511
|
-
}))), te = r(() => v.value.map((e) => b.value.map((t) =>
|
|
6510
|
+
label: Qo(e, e.field)
|
|
6511
|
+
}))), te = r(() => v.value.map((e) => b.value.map((t) => ts(e, t.field)))), ne = r(() => n.showTableBelowChart && !L.value && b.value.length > 0), V = r(() => tn(n) || !!(n.enableTableScrolling && n.tableMaxHeight)), U = r(() => en(n)), W = r(() => {
|
|
6512
6512
|
if (!n.enableTableScrolling) return;
|
|
6513
6513
|
let e = {
|
|
6514
6514
|
overflowX: "auto",
|
|
6515
6515
|
overflowY: "auto"
|
|
6516
6516
|
}, t = $t(n.tableMaxHeight);
|
|
6517
6517
|
return t && (e.maxHeight = t), e;
|
|
6518
|
-
}), G = r(() =>
|
|
6518
|
+
}), G = r(() => rs({
|
|
6519
6519
|
dataRows: v.value,
|
|
6520
6520
|
categoryColumn: T.value,
|
|
6521
6521
|
seriesColumn: D.value,
|
|
6522
6522
|
stackColumn: M.value
|
|
6523
|
-
})), re = r(() =>
|
|
6523
|
+
})), re = r(() => is({
|
|
6524
6524
|
dataRows: v.value,
|
|
6525
6525
|
categoryColumn: T.value,
|
|
6526
6526
|
seriesColumn: D.value
|
|
6527
|
-
})), ie = r(() =>
|
|
6527
|
+
})), ie = r(() => as({
|
|
6528
6528
|
dataRows: v.value,
|
|
6529
6529
|
mapColumn: N.value,
|
|
6530
6530
|
seriesColumn: D.value
|
|
6531
|
-
})), ae = r(() =>
|
|
6531
|
+
})), ae = r(() => os(ie.value, D.value?.field)), K = r(() => ss(D.value)), q = r(() => cs({
|
|
6532
6532
|
aggregatedCategoryChartData: re.value,
|
|
6533
6533
|
categoryColumn: T.value,
|
|
6534
6534
|
dataLimit: n.dataLimit,
|
|
@@ -6568,15 +6568,15 @@ var Sa = {
|
|
|
6568
6568
|
style: x(U.value)
|
|
6569
6569
|
}, {
|
|
6570
6570
|
default: H(() => [
|
|
6571
|
-
h.value ? (E(), o("div",
|
|
6571
|
+
h.value ? (E(), o("div", ls, [s("div", null, [e.title ? (E(), o("span", us, P(e.title), 1)) : a("", !0)]), s("div", null, [m.value ? (E(), i(Ei, {
|
|
6572
6572
|
key: 0,
|
|
6573
6573
|
modelValue: p.value,
|
|
6574
6574
|
"onUpdate:modelValue": r[0] ||= (e) => p.value = e,
|
|
6575
6575
|
options: f.value,
|
|
6576
6576
|
size: "lg"
|
|
6577
6577
|
}, null, 8, ["modelValue", "options"])) : a("", !0)])])) : a("", !0),
|
|
6578
|
-
g.value ? (E(), o("div",
|
|
6579
|
-
s("div",
|
|
6578
|
+
g.value ? (E(), o("div", ds, [(E(!0), o(t, null, k(e.appliedFilters, (e) => (E(), o("span", { key: e }, P(e), 1))), 128))])) : a("", !0),
|
|
6579
|
+
s("div", fs, [A(n.$slots, "default", {}, void 0, !0), I.value ? (E(), o(t, { key: 0 }, [L.value ? (E(), o("div", {
|
|
6580
6580
|
key: 0,
|
|
6581
6581
|
class: y(["pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
6582
6582
|
style: x(W.value)
|
|
@@ -6634,7 +6634,7 @@ var Sa = {
|
|
|
6634
6634
|
_: 3
|
|
6635
6635
|
}, 8, ["class", "style"]));
|
|
6636
6636
|
}
|
|
6637
|
-
}), [["__scopeId", "data-v-1681e679"]]),
|
|
6637
|
+
}), [["__scopeId", "data-v-1681e679"]]), ms = ["data-align"], hs = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6638
6638
|
__name: "PvPopover",
|
|
6639
6639
|
props: {
|
|
6640
6640
|
alignment: { default: void 0 },
|
|
@@ -6667,15 +6667,15 @@ var Sa = {
|
|
|
6667
6667
|
role: "list",
|
|
6668
6668
|
class: "pv-popover-list",
|
|
6669
6669
|
style: x(e.cssCustomListProperties)
|
|
6670
|
-
}, [A(t.$slots, "default", {}, void 0, !0)], 4)) : A(t.$slots, "default", { key: 1 }, void 0, !0)], 12,
|
|
6670
|
+
}, [A(t.$slots, "default", {}, void 0, !0)], 4)) : A(t.$slots, "default", { key: 1 }, void 0, !0)], 12, ms));
|
|
6671
6671
|
}
|
|
6672
|
-
}), [["__scopeId", "data-v-c6181252"]]),
|
|
6672
|
+
}), [["__scopeId", "data-v-c6181252"]]), gs = {
|
|
6673
6673
|
class: "pv-relative",
|
|
6674
6674
|
style: { width: "fit-content" }
|
|
6675
|
-
},
|
|
6675
|
+
}, _s = ["disabled"], vs = {
|
|
6676
6676
|
key: 0,
|
|
6677
6677
|
class: "pv-shimmer"
|
|
6678
|
-
},
|
|
6678
|
+
}, ys = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6679
6679
|
__name: "PvDropdown",
|
|
6680
6680
|
props: {
|
|
6681
6681
|
defaultOpen: {
|
|
@@ -6729,7 +6729,7 @@ var Sa = {
|
|
|
6729
6729
|
zIndex: 10,
|
|
6730
6730
|
...d.popoverCssProperties
|
|
6731
6731
|
} : d.popoverCssProperties);
|
|
6732
|
-
return (t, r) => U((E(), o("div",
|
|
6732
|
+
return (t, r) => U((E(), o("div", gs, [s("button", {
|
|
6733
6733
|
ref_key: "triggerRef",
|
|
6734
6734
|
ref: m,
|
|
6735
6735
|
class: y({
|
|
@@ -6739,10 +6739,10 @@ var Sa = {
|
|
|
6739
6739
|
style: { width: "auto" },
|
|
6740
6740
|
onClick: S,
|
|
6741
6741
|
disabled: e.disabled
|
|
6742
|
-
}, [A(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 10,
|
|
6742
|
+
}, [A(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 10, _s), (E(), i(n, {
|
|
6743
6743
|
to: e.teleportLocation,
|
|
6744
6744
|
disabled: !e.useTeleport
|
|
6745
|
-
}, [u(
|
|
6745
|
+
}, [u(hs, {
|
|
6746
6746
|
ref_key: "popoverRef",
|
|
6747
6747
|
ref: h,
|
|
6748
6748
|
class: y(x.value),
|
|
@@ -6752,7 +6752,7 @@ var Sa = {
|
|
|
6752
6752
|
isSortable: e.isSortable,
|
|
6753
6753
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
6754
6754
|
}, {
|
|
6755
|
-
default: H(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span",
|
|
6755
|
+
default: H(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", vs, "Loading...")) : a("", !0)], !0)]),
|
|
6756
6756
|
_: 3
|
|
6757
6757
|
}, 8, [
|
|
6758
6758
|
"class",
|
|
@@ -6762,7 +6762,7 @@ var Sa = {
|
|
|
6762
6762
|
"isSortable"
|
|
6763
6763
|
])], 8, ["to", "disabled"]))])), [[I(Y), C]]);
|
|
6764
6764
|
}
|
|
6765
|
-
}), [["__scopeId", "data-v-79a7def3"]]),
|
|
6765
|
+
}), [["__scopeId", "data-v-79a7def3"]]), bs = ["data-style"], xs = /* @__PURE__ */ d({
|
|
6766
6766
|
__name: "PvTag",
|
|
6767
6767
|
props: {
|
|
6768
6768
|
size: { default: "md" },
|
|
@@ -6822,20 +6822,20 @@ var Sa = {
|
|
|
6822
6822
|
name: "close",
|
|
6823
6823
|
onClick: r[0] ||= W((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
6824
6824
|
})) : a("", !0)
|
|
6825
|
-
], 14,
|
|
6825
|
+
], 14, bs));
|
|
6826
6826
|
}
|
|
6827
|
-
}),
|
|
6827
|
+
}), Ss = { class: "pv-inset-squish-12" }, Cs = {
|
|
6828
6828
|
key: 0,
|
|
6829
6829
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
6830
6830
|
style: { "--flex-align": "flex-start" }
|
|
6831
|
-
},
|
|
6831
|
+
}, ws = { class: "pv-heading-3" }, Ts = {
|
|
6832
6832
|
key: 0,
|
|
6833
6833
|
class: "pv-text-body-md"
|
|
6834
|
-
},
|
|
6834
|
+
}, Es = {
|
|
6835
6835
|
key: 0,
|
|
6836
6836
|
class: "pv-inset-squish-12 pv-border-top",
|
|
6837
6837
|
style: { "--color-border": "#d2d8dc" }
|
|
6838
|
-
},
|
|
6838
|
+
}, Ds = /* @__PURE__ */ d({
|
|
6839
6839
|
__name: "PvModal",
|
|
6840
6840
|
props: /* @__PURE__ */ g({
|
|
6841
6841
|
header: {},
|
|
@@ -6873,21 +6873,21 @@ var Sa = {
|
|
|
6873
6873
|
style: { "--max-width": "480px" },
|
|
6874
6874
|
onClose: i,
|
|
6875
6875
|
onClick: c
|
|
6876
|
-
}, [s("div",
|
|
6876
|
+
}, [s("div", Ss, [e.hideHeader ? a("", !0) : (E(), o("div", Cs, [s("span", ws, P(e.header), 1), e.subheader ? (E(), o("span", Ts, P(e.subheader), 1)) : a("", !0)])), A(t.$slots, "body")]), e.hideFooter ? a("", !0) : (E(), o("div", Es, [A(t.$slots, "footer")]))], 544));
|
|
6877
6877
|
}
|
|
6878
|
-
}),
|
|
6878
|
+
}), Os = /* @__PURE__ */ function(e) {
|
|
6879
6879
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
6880
6880
|
}({});
|
|
6881
6881
|
(/* @__PURE__ */ (function(e) {
|
|
6882
6882
|
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
6883
|
-
})({})).Primary,
|
|
6883
|
+
})({})).Primary, Os.Horizontal;
|
|
6884
6884
|
//#endregion
|
|
6885
6885
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
6886
|
-
var
|
|
6886
|
+
var ks = [
|
|
6887
6887
|
"data-style",
|
|
6888
6888
|
"disabled",
|
|
6889
6889
|
"title"
|
|
6890
|
-
],
|
|
6890
|
+
], As = { class: "pv-truncate" }, js = /* @__PURE__ */ d({
|
|
6891
6891
|
__name: "PvSuggestionTag",
|
|
6892
6892
|
props: {
|
|
6893
6893
|
size: { default: "md" },
|
|
@@ -6923,36 +6923,36 @@ var Os = [
|
|
|
6923
6923
|
name: e.icon,
|
|
6924
6924
|
size: 12,
|
|
6925
6925
|
class: y(e.iconClasses)
|
|
6926
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
6926
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", As, P(e.label), 1)], 10, ks));
|
|
6927
6927
|
}
|
|
6928
6928
|
});
|
|
6929
6929
|
Ze.extend(et), Ze.extend(Qe), Ze.extend($e);
|
|
6930
6930
|
//#endregion
|
|
6931
6931
|
//#region src/components/base/PvDrawer/PvDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
6932
|
-
var
|
|
6932
|
+
var Ms = {
|
|
6933
6933
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
6934
6934
|
style: { "flex-shrink": "0" }
|
|
6935
|
-
},
|
|
6935
|
+
}, Ns = {
|
|
6936
6936
|
class: "pv-flex-vertical pv-stack-16",
|
|
6937
6937
|
style: { "--flex-align": "flex-start" }
|
|
6938
|
-
},
|
|
6938
|
+
}, Ps = { class: "pv-flex pv-full-width" }, Fs = { class: "pv-full-width pv-heading-3" }, Is = {
|
|
6939
6939
|
key: 0,
|
|
6940
6940
|
class: "pv-text-body-md"
|
|
6941
|
-
},
|
|
6941
|
+
}, Ls = {
|
|
6942
6942
|
key: 0,
|
|
6943
6943
|
class: "pv-inset-inline-16"
|
|
6944
|
-
},
|
|
6944
|
+
}, Rs = {
|
|
6945
6945
|
class: "pv-inset-inline-16",
|
|
6946
6946
|
style: {
|
|
6947
6947
|
flex: "1",
|
|
6948
6948
|
"overflow-y": "auto",
|
|
6949
6949
|
"min-height": "0"
|
|
6950
6950
|
}
|
|
6951
|
-
},
|
|
6951
|
+
}, zs = {
|
|
6952
6952
|
key: 0,
|
|
6953
6953
|
class: "pv-inset-squish-12 pv-border-top",
|
|
6954
6954
|
style: { "flex-shrink": "0" }
|
|
6955
|
-
},
|
|
6955
|
+
}, Bs = /* @__PURE__ */ d({
|
|
6956
6956
|
__name: "PvDrawer",
|
|
6957
6957
|
props: /* @__PURE__ */ g({
|
|
6958
6958
|
header: {},
|
|
@@ -7000,26 +7000,26 @@ var js = {
|
|
|
7000
7000
|
height: "100%"
|
|
7001
7001
|
}
|
|
7002
7002
|
}, [
|
|
7003
|
-
s("div",
|
|
7003
|
+
s("div", Ms, [n.$slots.header ? A(n.$slots, "header", { key: 0 }) : (E(), o(t, { key: 1 }, [s("div", Ns, [s("div", Ps, [s("span", Fs, P(e.header), 1), u(An, {
|
|
7004
7004
|
"left-icon": "close",
|
|
7005
7005
|
ariaLabel: "Close",
|
|
7006
7006
|
size: "md",
|
|
7007
7007
|
onClick: p,
|
|
7008
7008
|
"data-testid": "pv-side-panel-close-button",
|
|
7009
7009
|
variant: "ghost"
|
|
7010
|
-
})]), e.subheader ? (E(), o("span",
|
|
7010
|
+
})]), e.subheader ? (E(), o("span", Is, P(e.subheader), 1)) : a("", !0)]), e.showSearchbar && l.value !== void 0 ? (E(), o("div", Ls, [u(qi, _({
|
|
7011
7011
|
"data-testid": "pv-side-panel-input-search",
|
|
7012
7012
|
modelValue: l.value,
|
|
7013
7013
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
7014
7014
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))]),
|
|
7015
|
-
s("div",
|
|
7016
|
-
n.$slots.footer ? (E(), o("div",
|
|
7015
|
+
s("div", Rs, [A(n.$slots, "default")]),
|
|
7016
|
+
n.$slots.footer ? (E(), o("div", zs, [A(n.$slots, "footer")])) : a("", !0)
|
|
7017
7017
|
], 512));
|
|
7018
7018
|
}
|
|
7019
|
-
}),
|
|
7019
|
+
}), Vs = {
|
|
7020
7020
|
"data-testid": "pv-select-menu-control-panel",
|
|
7021
7021
|
class: "pv-flex pv-space-between"
|
|
7022
|
-
},
|
|
7022
|
+
}, Hs = /* @__PURE__ */ d({
|
|
7023
7023
|
__name: "PvMenuControlPanel",
|
|
7024
7024
|
props: {
|
|
7025
7025
|
variant: {},
|
|
@@ -7032,7 +7032,7 @@ var js = {
|
|
|
7032
7032
|
"handle-confirm"
|
|
7033
7033
|
],
|
|
7034
7034
|
setup(e) {
|
|
7035
|
-
return (n, r) => (E(), o("div",
|
|
7035
|
+
return (n, r) => (E(), o("div", Vs, [e.variant === "select-clear" ? (E(), o(t, { key: 0 }, [u(An, {
|
|
7036
7036
|
variant: "ghost",
|
|
7037
7037
|
"data-testid": "pv-select-menu-item-select-all",
|
|
7038
7038
|
onClick: r[0] ||= (e) => n.$emit("handle-select-all"),
|
|
@@ -7057,34 +7057,34 @@ var js = {
|
|
|
7057
7057
|
disabled: e.disabled
|
|
7058
7058
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
7059
7059
|
}
|
|
7060
|
-
}),
|
|
7060
|
+
}), Us = {
|
|
7061
7061
|
key: 0,
|
|
7062
7062
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
7063
|
-
},
|
|
7063
|
+
}, Ws = {
|
|
7064
7064
|
key: 1,
|
|
7065
7065
|
class: "pv-inset-square-8"
|
|
7066
|
-
},
|
|
7066
|
+
}, Gs = {
|
|
7067
7067
|
key: 1,
|
|
7068
7068
|
class: "pv-text-body-sm pv-inset-inline",
|
|
7069
7069
|
style: {
|
|
7070
7070
|
color: "#89989b",
|
|
7071
7071
|
"--inset-size": "8px"
|
|
7072
7072
|
}
|
|
7073
|
-
},
|
|
7073
|
+
}, Ks = {
|
|
7074
7074
|
key: 2,
|
|
7075
7075
|
class: "pv-border-top",
|
|
7076
7076
|
style: { margin: "8px 0" }
|
|
7077
|
-
},
|
|
7077
|
+
}, qs = {
|
|
7078
7078
|
key: 3,
|
|
7079
7079
|
class: "pv-flex pv-inset-square-8",
|
|
7080
7080
|
style: { "justify-content": "center" }
|
|
7081
|
-
},
|
|
7081
|
+
}, Js = {
|
|
7082
7082
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
7083
7083
|
style: {
|
|
7084
7084
|
"--flex-justify": "space-between",
|
|
7085
7085
|
"--bottom": "0"
|
|
7086
7086
|
}
|
|
7087
|
-
},
|
|
7087
|
+
}, Ys = /* @__PURE__ */ d({
|
|
7088
7088
|
__name: "PvMultiSelectButton",
|
|
7089
7089
|
props: /* @__PURE__ */ g({
|
|
7090
7090
|
companyLogo: {},
|
|
@@ -7356,7 +7356,7 @@ var js = {
|
|
|
7356
7356
|
...e.popoverCssProperties
|
|
7357
7357
|
})
|
|
7358
7358
|
}, [
|
|
7359
|
-
e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
7359
|
+
e.disableSearchInput ? a("", !0) : (E(), o("div", Us, [u(qi, {
|
|
7360
7360
|
ref: "searchInputRef",
|
|
7361
7361
|
"model-value": B.value,
|
|
7362
7362
|
"onUpdate:modelValue": r[1] ||= (e) => B.value = e,
|
|
@@ -7368,9 +7368,9 @@ var js = {
|
|
|
7368
7368
|
"placeholder",
|
|
7369
7369
|
"disabled"
|
|
7370
7370
|
])])),
|
|
7371
|
-
n.$slots.header || I(ge) ? (E(), o("div",
|
|
7371
|
+
n.$slots.header || I(ge) ? (E(), o("div", Ws, [A(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
7372
7372
|
se.value.length > 0 ? (E(), o(t, { key: 2 }, [fe.value ? (E(!0), o(t, { key: 0 }, k(de.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
7373
|
-
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span",
|
|
7373
|
+
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", Gs, P(t), 1)),
|
|
7374
7374
|
u(Qa, {
|
|
7375
7375
|
selectedItems: K.value,
|
|
7376
7376
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
@@ -7397,7 +7397,7 @@ var js = {
|
|
|
7397
7397
|
"hasMoreOptions",
|
|
7398
7398
|
"readOnly"
|
|
7399
7399
|
]),
|
|
7400
|
-
de.value && s !== de.value.length - 1 ? (E(), o("div",
|
|
7400
|
+
de.value && s !== de.value.length - 1 ? (E(), o("div", Ks)) : a("", !0)
|
|
7401
7401
|
]))), 128)) : (E(), i(Qa, {
|
|
7402
7402
|
key: 1,
|
|
7403
7403
|
selectedItems: K.value,
|
|
@@ -7423,8 +7423,8 @@ var js = {
|
|
|
7423
7423
|
"hasMoreOptions",
|
|
7424
7424
|
"readOnly"
|
|
7425
7425
|
]))], 64)) : a("", !0),
|
|
7426
|
-
e.isLoading ? (E(), o("div",
|
|
7427
|
-
s("div",
|
|
7426
|
+
e.isLoading ? (E(), o("div", qs, [u(St, { variant: "dark" })])) : se.value.length === 0 ? (E(), o(t, { key: 4 }, [I(_e) ? A(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (E(), i(ha, { key: 1 }))], 64)) : a("", !0),
|
|
7427
|
+
s("div", Js, [I(ve) ? A(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Hs, {
|
|
7428
7428
|
key: 1,
|
|
7429
7429
|
variant: e.menuActionsVariant,
|
|
7430
7430
|
disabled: e.isLoading,
|
|
@@ -7444,7 +7444,7 @@ Math.random().toString(), Math.random().toString(), new Intl.NumberFormat("en-US
|
|
|
7444
7444
|
});
|
|
7445
7445
|
//#endregion
|
|
7446
7446
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
7447
|
-
var
|
|
7447
|
+
var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" && !!e, Qs = (e) => {
|
|
7448
7448
|
try {
|
|
7449
7449
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7450
7450
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7458,7 +7458,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7458
7458
|
} catch {
|
|
7459
7459
|
return [];
|
|
7460
7460
|
}
|
|
7461
|
-
},
|
|
7461
|
+
}, $s = (e) => {
|
|
7462
7462
|
if (!e.startsWith("__")) return null;
|
|
7463
7463
|
let t = e.slice(2).split("__");
|
|
7464
7464
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7471,68 +7471,68 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7471
7471
|
pairs: n,
|
|
7472
7472
|
value: n[0].value
|
|
7473
7473
|
};
|
|
7474
|
-
},
|
|
7474
|
+
}, ec = (e) => {
|
|
7475
7475
|
if (e == null) return null;
|
|
7476
|
-
if (!e.startsWith(
|
|
7476
|
+
if (!e.startsWith(Xs)) return $s(e) ?? {
|
|
7477
7477
|
pairs: [],
|
|
7478
7478
|
value: e
|
|
7479
7479
|
};
|
|
7480
|
-
let t =
|
|
7480
|
+
let t = Qs(e.slice(32));
|
|
7481
7481
|
return {
|
|
7482
7482
|
field: t[0]?.field,
|
|
7483
7483
|
pairs: t,
|
|
7484
7484
|
value: t[0]?.value ?? e
|
|
7485
7485
|
};
|
|
7486
|
-
},
|
|
7486
|
+
}, tc = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : Zs(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) : ec(e.value)?.value ?? e.value : null, nc = (e, t) => e?.field ? e.field : e?.colField ? e.colField : ec(e?.value)?.field ?? t, rc = (e, t, n, r) => nc(e, r) === t && tc(e) === n, ic = (e) => {
|
|
7487
7487
|
let t = e;
|
|
7488
7488
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7489
|
-
},
|
|
7489
|
+
}, ac = (e) => {
|
|
7490
7490
|
let t = e;
|
|
7491
|
-
return
|
|
7491
|
+
return ic(e) ? {
|
|
7492
7492
|
...t,
|
|
7493
|
-
conditions: (t.conditions ?? []).map(
|
|
7493
|
+
conditions: (t.conditions ?? []).map(ac)
|
|
7494
7494
|
} : { ...t };
|
|
7495
|
-
},
|
|
7495
|
+
}, oc = (e, t) => {
|
|
7496
7496
|
if (!e) return null;
|
|
7497
7497
|
let n = t instanceof Set ? t : new Set(t);
|
|
7498
|
-
if (!n.size) return
|
|
7499
|
-
if (!
|
|
7498
|
+
if (!n.size) return ac(e);
|
|
7499
|
+
if (!ic(e)) {
|
|
7500
7500
|
let t = e;
|
|
7501
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7501
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : ac(e);
|
|
7502
7502
|
}
|
|
7503
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7503
|
+
let r = e, i = (r.conditions ?? []).map((e) => oc(e, n)).filter((e) => !!e);
|
|
7504
7504
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7505
7505
|
...r,
|
|
7506
7506
|
conditions: i
|
|
7507
7507
|
} : null;
|
|
7508
|
-
},
|
|
7508
|
+
}, sc = (e) => e ? [e.field, ...(e.children ?? []).flatMap(sc)] : [], cc = (e) => e ? e.children?.length ? e.children.flatMap(cc) : [e.field] : [], lc = (e) => {
|
|
7509
7509
|
let t = e?.context ?? {};
|
|
7510
|
-
return t.aggregateFieldHierarchy ?
|
|
7511
|
-
},
|
|
7510
|
+
return t.aggregateFieldHierarchy ? sc(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7511
|
+
}, uc = (e) => {
|
|
7512
7512
|
let t = e?.context ?? {};
|
|
7513
7513
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7514
|
-
},
|
|
7514
|
+
}, dc = (e, t) => {
|
|
7515
7515
|
for (let n of e ?? []) {
|
|
7516
7516
|
if (!n) continue;
|
|
7517
7517
|
if (n.value === t) return n;
|
|
7518
|
-
let e =
|
|
7518
|
+
let e = dc(n.children, t);
|
|
7519
7519
|
if (e) return e;
|
|
7520
7520
|
}
|
|
7521
|
-
},
|
|
7522
|
-
let n =
|
|
7521
|
+
}, fc = (e, t) => {
|
|
7522
|
+
let n = dc(t, e), r = n ? nc(n, "") : void 0, i = n ? tc(n) : null;
|
|
7523
7523
|
if (r && i !== null) return {
|
|
7524
7524
|
field: r,
|
|
7525
7525
|
value: i
|
|
7526
7526
|
};
|
|
7527
|
-
let a =
|
|
7527
|
+
let a = ec(e);
|
|
7528
7528
|
return {
|
|
7529
7529
|
field: a?.field,
|
|
7530
7530
|
value: a?.value ?? e
|
|
7531
7531
|
};
|
|
7532
|
-
},
|
|
7532
|
+
}, pc = (e, t, n) => {
|
|
7533
7533
|
let r = (e) => {
|
|
7534
7534
|
if (!e) return;
|
|
7535
|
-
let i =
|
|
7535
|
+
let i = nc(e, ""), a = tc(e);
|
|
7536
7536
|
if (i === t && a === n) return e.value;
|
|
7537
7537
|
for (let t of e.children ?? []) {
|
|
7538
7538
|
let e = r(t);
|
|
@@ -7544,9 +7544,9 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7544
7544
|
if (e) return e;
|
|
7545
7545
|
}
|
|
7546
7546
|
return `__${t}__${n}`;
|
|
7547
|
-
},
|
|
7547
|
+
}, mc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...mc(e.children)]), hc = (e, t) => {
|
|
7548
7548
|
if (e.state !== "selected") return null;
|
|
7549
|
-
let { field: n, value: r } =
|
|
7549
|
+
let { field: n, value: r } = fc(e.id, t);
|
|
7550
7550
|
if (!n) return null;
|
|
7551
7551
|
let i = [{
|
|
7552
7552
|
colId: n,
|
|
@@ -7554,8 +7554,8 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7554
7554
|
filterType: "text",
|
|
7555
7555
|
type: "equals"
|
|
7556
7556
|
}];
|
|
7557
|
-
for (let n of
|
|
7558
|
-
let e =
|
|
7557
|
+
for (let n of mc(e.children)) {
|
|
7558
|
+
let e = fc(n.id, t);
|
|
7559
7559
|
e.field && i.push({
|
|
7560
7560
|
colId: e.field,
|
|
7561
7561
|
filter: e.value,
|
|
@@ -7568,10 +7568,10 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7568
7568
|
filterType: "join",
|
|
7569
7569
|
type: "AND"
|
|
7570
7570
|
};
|
|
7571
|
-
},
|
|
7572
|
-
let t =
|
|
7571
|
+
}, gc = (e) => {
|
|
7572
|
+
let t = lc(e.colDef), n = oc(e.baseModel, t);
|
|
7573
7573
|
if (!t.length) return n;
|
|
7574
|
-
let r = e.state.map((t) =>
|
|
7574
|
+
let r = e.state.map((t) => hc(t, e.options)).filter((e) => !!e);
|
|
7575
7575
|
if (!r.length) return n;
|
|
7576
7576
|
let i = r.length === 1 ? r[0] : {
|
|
7577
7577
|
conditions: r,
|
|
@@ -7583,17 +7583,17 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7583
7583
|
filterType: "join",
|
|
7584
7584
|
type: "AND"
|
|
7585
7585
|
} : i;
|
|
7586
|
-
},
|
|
7586
|
+
}, _c = (e, t, n) => {
|
|
7587
7587
|
if (!e) return [];
|
|
7588
7588
|
let r = e;
|
|
7589
|
-
if (
|
|
7589
|
+
if (ic(e)) {
|
|
7590
7590
|
let e = r.conditions ?? [];
|
|
7591
7591
|
if (r.type === "AND") {
|
|
7592
7592
|
let r = e.find((e) => {
|
|
7593
7593
|
let r = e;
|
|
7594
7594
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7595
7595
|
});
|
|
7596
|
-
return e.flatMap((e) =>
|
|
7596
|
+
return e.flatMap((e) => _c(e, t, n).map((e) => ({
|
|
7597
7597
|
...e,
|
|
7598
7598
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7599
7599
|
colId: r.colId,
|
|
@@ -7601,20 +7601,20 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7601
7601
|
} : void 0)
|
|
7602
7602
|
})));
|
|
7603
7603
|
}
|
|
7604
|
-
return e.flatMap((e) =>
|
|
7604
|
+
return e.flatMap((e) => _c(e, t, n));
|
|
7605
7605
|
}
|
|
7606
7606
|
return r.colId && t.has(r.colId) ? [{
|
|
7607
7607
|
colId: r.colId,
|
|
7608
7608
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7609
7609
|
type: r.type
|
|
7610
7610
|
}] : [];
|
|
7611
|
-
},
|
|
7612
|
-
let t =
|
|
7611
|
+
}, vc = (e) => {
|
|
7612
|
+
let t = lc(e.colDef);
|
|
7613
7613
|
if (!t.length) return [];
|
|
7614
|
-
let n = new Set(
|
|
7614
|
+
let n = new Set(cc(e.colDef.context?.aggregateFieldHierarchy)), r = uc(e.colDef), i = _c(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
7615
7615
|
for (let t of i) {
|
|
7616
7616
|
if (!t.filter) continue;
|
|
7617
|
-
let n =
|
|
7617
|
+
let n = pc(e.options, t.colId, String(t.filter));
|
|
7618
7618
|
if (t.type === "equals") {
|
|
7619
7619
|
let e = a.get(n);
|
|
7620
7620
|
a.set(n, {
|
|
@@ -7625,7 +7625,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7625
7625
|
continue;
|
|
7626
7626
|
}
|
|
7627
7627
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7628
|
-
let r =
|
|
7628
|
+
let r = pc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7629
7629
|
children: [],
|
|
7630
7630
|
id: r,
|
|
7631
7631
|
state: "selected"
|
|
@@ -7637,17 +7637,17 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7637
7637
|
}
|
|
7638
7638
|
}
|
|
7639
7639
|
return [...a.values()];
|
|
7640
|
-
},
|
|
7640
|
+
}, yc = (e, t, n) => {
|
|
7641
7641
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
7642
7642
|
if (r.length <= 1) return "Search";
|
|
7643
7643
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
7644
7644
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
7645
|
-
},
|
|
7646
|
-
if (!r ||
|
|
7645
|
+
}, bc = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), xc = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
7646
|
+
if (!r || bc(i) === bc(r)) return e;
|
|
7647
7647
|
if (!a || !n) return r;
|
|
7648
7648
|
let o = t(n);
|
|
7649
7649
|
return o ? `${o}: ${r}` : r;
|
|
7650
|
-
},
|
|
7650
|
+
}, Sc = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Cc = (e, t) => t ?? e, wc = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Tc = (e) => {
|
|
7651
7651
|
let t = /* @__PURE__ */ new Map();
|
|
7652
7652
|
for (let n of e) {
|
|
7653
7653
|
if (!n) continue;
|
|
@@ -7659,34 +7659,34 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7659
7659
|
t.set(n.value, {
|
|
7660
7660
|
...e,
|
|
7661
7661
|
...n,
|
|
7662
|
-
children:
|
|
7663
|
-
totalChildCount:
|
|
7662
|
+
children: Tc([...e.children ?? [], ...n.children ?? []]),
|
|
7663
|
+
totalChildCount: Cc(e.totalChildCount, n.totalChildCount)
|
|
7664
7664
|
});
|
|
7665
7665
|
}
|
|
7666
7666
|
return [...t.values()];
|
|
7667
|
-
},
|
|
7667
|
+
}, Ec = (e, t) => {
|
|
7668
7668
|
for (let n of e ?? []) {
|
|
7669
7669
|
if (!n) continue;
|
|
7670
7670
|
if (n.value === t) return n;
|
|
7671
|
-
let e =
|
|
7671
|
+
let e = Ec(n.children, t);
|
|
7672
7672
|
if (e) return e;
|
|
7673
7673
|
}
|
|
7674
|
-
},
|
|
7674
|
+
}, Dc = (e, t, n) => {
|
|
7675
7675
|
if (!e || t === null) return !1;
|
|
7676
7676
|
if (e.value === t) return !0;
|
|
7677
|
-
let r =
|
|
7678
|
-
return r !== null && r === t ||
|
|
7679
|
-
},
|
|
7680
|
-
let r =
|
|
7677
|
+
let r = tc(e);
|
|
7678
|
+
return r !== null && r === t || rc(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Dc(e, t, n)) ?? !1;
|
|
7679
|
+
}, Oc = (e, t, n) => {
|
|
7680
|
+
let r = Ec(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7681
7681
|
return e.map((e) => e && (e.value === t ? {
|
|
7682
7682
|
...e,
|
|
7683
|
-
children:
|
|
7684
|
-
totalChildCount:
|
|
7683
|
+
children: Tc([...e.children ?? [], ...i]),
|
|
7684
|
+
totalChildCount: Cc(e.totalChildCount, r?.totalChildCount)
|
|
7685
7685
|
} : e.children?.length ? {
|
|
7686
7686
|
...e,
|
|
7687
|
-
children:
|
|
7687
|
+
children: Oc(e.children, t, n).filter((e) => !!e)
|
|
7688
7688
|
} : e));
|
|
7689
|
-
},
|
|
7689
|
+
}, kc = (e, t) => `${e}::${t}`, Ac = () => {
|
|
7690
7690
|
let e = O(null), t = O(null), n = O(), r = O({}), i = O({}), a = O({}), o = O({}), s = O({}), c = O({}), l = O({}), u = O({}), d = O({}), f = O({}), p = O({}), m = O({}), h = O({}), g = O({}), _ = O(), v = O({}), y = (e) => {
|
|
7691
7691
|
_.value = e;
|
|
7692
7692
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7695,11 +7695,11 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7695
7695
|
let r = n ? o : i;
|
|
7696
7696
|
r.value[e] = t;
|
|
7697
7697
|
}, w = () => {
|
|
7698
|
-
o.value =
|
|
7698
|
+
o.value = wc(i.value), s.value = wc(a.value);
|
|
7699
7699
|
}, T = () => {
|
|
7700
7700
|
o.value = {}, s.value = {};
|
|
7701
7701
|
}, E = () => {
|
|
7702
|
-
i.value =
|
|
7702
|
+
i.value = wc(o.value), a.value = wc(s.value), T();
|
|
7703
7703
|
}, D = (e, t) => {
|
|
7704
7704
|
c.value[e] = t;
|
|
7705
7705
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7721,7 +7721,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7721
7721
|
if (!o) return [];
|
|
7722
7722
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7723
7723
|
c.value[n.field] = s;
|
|
7724
|
-
let l = n.parentId ?
|
|
7724
|
+
let l = n.parentId ? Ec(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? kc(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7725
7725
|
h.value[b] = x;
|
|
7726
7726
|
try {
|
|
7727
7727
|
let c = await o({
|
|
@@ -7732,17 +7732,17 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7732
7732
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7733
7733
|
});
|
|
7734
7734
|
if (h.value[b] !== x) return [];
|
|
7735
|
-
let l =
|
|
7735
|
+
let l = Sc(c);
|
|
7736
7736
|
if (n.parentId) {
|
|
7737
|
-
let e =
|
|
7737
|
+
let e = kc(n.field, n.parentId);
|
|
7738
7738
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7739
7739
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7740
7740
|
let _ = a.value[n.field] ?? [], y;
|
|
7741
|
-
y = n.parentId ?
|
|
7741
|
+
y = n.parentId ? Oc(r.value[n.field] ?? [], n.parentId, l.values) : v ? Tc([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7742
7742
|
for (let e of _) {
|
|
7743
7743
|
if (!e) continue;
|
|
7744
|
-
let t =
|
|
7745
|
-
y.some((e) =>
|
|
7744
|
+
let t = tc(e) ?? e.value;
|
|
7745
|
+
y.some((e) => Dc(e, t, n.field)) || y.push(e);
|
|
7746
7746
|
}
|
|
7747
7747
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7748
7748
|
} finally {
|
|
@@ -7775,7 +7775,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7775
7775
|
stagedFilterSelectedMetadataMap: s,
|
|
7776
7776
|
stagedFilterSelectedValueMap: o
|
|
7777
7777
|
};
|
|
7778
|
-
},
|
|
7778
|
+
}, jc = () => {
|
|
7779
7779
|
let e = (e, n) => {
|
|
7780
7780
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
7781
7781
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -7789,13 +7789,13 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7789
7789
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
7790
7790
|
}
|
|
7791
7791
|
};
|
|
7792
|
-
},
|
|
7792
|
+
}, Mc = { class: "pv-flex" }, Nc = { class: "pv-text-body-md" }, Pc = ["textContent"], Fc = {
|
|
7793
7793
|
key: 0,
|
|
7794
7794
|
class: "pv-text-body-xs"
|
|
7795
|
-
},
|
|
7795
|
+
}, Ic = { key: 0 }, Lc = {
|
|
7796
7796
|
class: "pv-text-subdued pv-text-body-xs",
|
|
7797
7797
|
style: { "font-weight": "500" }
|
|
7798
|
-
},
|
|
7798
|
+
}, Rc = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7799
7799
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
7800
7800
|
props: {
|
|
7801
7801
|
id: {},
|
|
@@ -7841,13 +7841,13 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7841
7841
|
bold: !1
|
|
7842
7842
|
}), n;
|
|
7843
7843
|
});
|
|
7844
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
7844
|
+
return (e, n) => (E(), o("div", null, [s("div", Mc, [u(En, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", Nc, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
7845
7845
|
key: t,
|
|
7846
7846
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
7847
7847
|
textContent: P(e.text)
|
|
7848
|
-
}, null, 12,
|
|
7848
|
+
}, null, 12, Pc))), 128))]), f.value ? (E(), o("p", Fc, [c.value ? a("", !0) : (E(), o("span", Ic, "Search in ")), s("span", Lc, P(f.value), 1)])) : a("", !0)])])]));
|
|
7849
7849
|
}
|
|
7850
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
7850
|
+
}), [["__scopeId", "data-v-ff951d17"]]), zc = /* @__PURE__ */ d({
|
|
7851
7851
|
__name: "QueryFormatter",
|
|
7852
7852
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
7853
7853
|
modelValue: { required: !0 },
|
|
@@ -7861,7 +7861,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7861
7861
|
}),
|
|
7862
7862
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
7863
7863
|
setup(e) {
|
|
7864
|
-
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } =
|
|
7864
|
+
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } = jc(), u = r(() => {
|
|
7865
7865
|
let e = s.value?.queryTerms || [];
|
|
7866
7866
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
7867
7867
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -7877,7 +7877,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7877
7877
|
};
|
|
7878
7878
|
l(s.value, t);
|
|
7879
7879
|
};
|
|
7880
|
-
return (e, n) => (E(), o(t, null, [(E(!0), o(t, null, k(u.value, (e, t) => (E(), i(
|
|
7880
|
+
return (e, n) => (E(), o(t, null, [(E(!0), o(t, null, k(u.value, (e, t) => (E(), i(xs, {
|
|
7881
7881
|
key: `${t}-${e.queryText}`,
|
|
7882
7882
|
variant: p(e),
|
|
7883
7883
|
label: f(e),
|
|
@@ -7887,23 +7887,23 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7887
7887
|
"variant",
|
|
7888
7888
|
"label",
|
|
7889
7889
|
"onHandleClose"
|
|
7890
|
-
]))), 128)), d.value > 0 ? (E(), i(
|
|
7890
|
+
]))), 128)), d.value > 0 ? (E(), i(xs, {
|
|
7891
7891
|
key: 0,
|
|
7892
7892
|
label: `+${d.value}`,
|
|
7893
7893
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
7894
7894
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
7895
7895
|
}
|
|
7896
|
-
}),
|
|
7896
|
+
}), Bc = [
|
|
7897
7897
|
"disabled",
|
|
7898
7898
|
"placeholder",
|
|
7899
7899
|
"data-invalid"
|
|
7900
|
-
],
|
|
7900
|
+
], Vc = {
|
|
7901
7901
|
key: 2,
|
|
7902
7902
|
class: "pv-text-red pv-text-body-xs"
|
|
7903
|
-
},
|
|
7903
|
+
}, Hc = {
|
|
7904
7904
|
key: 1,
|
|
7905
7905
|
class: "pv-text-center"
|
|
7906
|
-
},
|
|
7906
|
+
}, Uc = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7907
7907
|
__name: "PvQueryBuilderInput",
|
|
7908
7908
|
props: /* @__PURE__ */ g({
|
|
7909
7909
|
placeholder: { default: "Search" },
|
|
@@ -7951,7 +7951,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
7951
7951
|
"update:options"
|
|
7952
7952
|
],
|
|
7953
7953
|
setup(e) {
|
|
7954
|
-
let n = e, c = { renderer:
|
|
7954
|
+
let n = e, c = { renderer: Rc }, l = z("search-input"), d = R(e, "searchText"), f = R(e, "query"), p = R(e, "options"), { addQueryOption: m, containsQueryOption: h } = jc(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
7955
7955
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
7956
7956
|
};
|
|
7957
7957
|
n.enableCustomOptionsInput && ae("Enter", () => {
|
|
@@ -8025,7 +8025,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8025
8025
|
"--inset-size": "4px",
|
|
8026
8026
|
"--flex-gap": "4px"
|
|
8027
8027
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
8028
|
-
}, [u(
|
|
8028
|
+
}, [u(zc, {
|
|
8029
8029
|
modelValue: f.value,
|
|
8030
8030
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8031
8031
|
"wrap-content": b.value,
|
|
@@ -8045,7 +8045,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8045
8045
|
"data-invalid": w.value ? "true" : void 0,
|
|
8046
8046
|
onFocus: F,
|
|
8047
8047
|
onBlur: F
|
|
8048
|
-
}, null, 40,
|
|
8048
|
+
}, null, 40, Bc), [[te, d.value]])], 4),
|
|
8049
8049
|
f.value && !e.hideClearButton ? (E(), i(An, {
|
|
8050
8050
|
key: 1,
|
|
8051
8051
|
variant: "ghost",
|
|
@@ -8053,8 +8053,8 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8053
8053
|
size: "md",
|
|
8054
8054
|
onClick: T
|
|
8055
8055
|
})) : a("", !0),
|
|
8056
|
-
w.value ? (E(), o("p",
|
|
8057
|
-
A.value.length > 0 || e.optionsLoading ? (E(), i(
|
|
8056
|
+
w.value ? (E(), o("p", Vc, P(C.value), 1)) : a("", !0),
|
|
8057
|
+
A.value.length > 0 || e.optionsLoading ? (E(), i(hs, {
|
|
8058
8058
|
key: 3,
|
|
8059
8059
|
class: y({ "pv-hide": !g.value }),
|
|
8060
8060
|
"css-custom-properties": {
|
|
@@ -8063,7 +8063,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8063
8063
|
},
|
|
8064
8064
|
isList: !0
|
|
8065
8065
|
}, {
|
|
8066
|
-
default: H(() => [e.optionsLoading ? (E(), o("div",
|
|
8066
|
+
default: H(() => [e.optionsLoading ? (E(), o("div", Hc, [u(St, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(Ja, _({
|
|
8067
8067
|
key: `${t}-${e.searchText}`,
|
|
8068
8068
|
ref_for: !0
|
|
8069
8069
|
}, e, {
|
|
@@ -8074,27 +8074,27 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8074
8074
|
}, 8, ["class"])) : a("", !0)
|
|
8075
8075
|
], 32)), [[I(Y), j]]);
|
|
8076
8076
|
}
|
|
8077
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
8077
|
+
}), [["__scopeId", "data-v-4decbec2"]]), Wc = Symbol("FilterStoreKey"), Gc = Symbol("FocusStoreKey"), Kc = Symbol("SortStateKey"), qc = Symbol("GridApiKey"), Jc = Symbol("ColumnDisplayOrderKey"), Yc = Symbol("currentlyActiveFilterKey"), Xc = Symbol("AvailableFilterColumnsKey"), Zc = Symbol("AvailableRowGroupColumnsKey"), Qc = Symbol("RowGroupColumnFieldsKey"), $c = Symbol("GroupColumnCellValueColumnKey"), el = Symbol("ExpandedRowsKey"), tl = Symbol("FirstDataRenderedKey"), nl = Symbol("RowsLoadingKey"), rl = Symbol("CurrentPageKey"), il = Symbol("TotalPageKey"), al = Symbol("ActiveChartFilterOptionKey"), ol = Symbol("RowGroupColumnsKey"), sl = Symbol("ChartTypeKey"), cl = Symbol("SortTypesKey"), ll = Symbol("ActiveChartKey"), ul = Symbol("ActiveSortKey"), dl = Symbol("ActiveSeriesKey"), fl = Symbol("AvailableSeriesKey"), pl = Symbol("ActiveSecondarySeriesKey"), ml = Symbol("AvailableSecondarySeriesKey"), hl = Symbol("EnableAdvancedFilterKey"), gl = Symbol("ActiveCrosslineOverlayGroupsKey"), _l = Symbol("AvailableCrosslineOverlayGroupsKey"), vl = {
|
|
8078
8078
|
class: "pv-flex",
|
|
8079
8079
|
style: { "--flex-wrap": "nowrap" }
|
|
8080
|
-
},
|
|
8080
|
+
}, yl = ["id"], bl = {
|
|
8081
8081
|
key: 1,
|
|
8082
8082
|
style: { "padding-left": "16px" }
|
|
8083
|
-
},
|
|
8083
|
+
}, xl = [
|
|
8084
8084
|
"checked",
|
|
8085
8085
|
"disabled",
|
|
8086
8086
|
"onChange"
|
|
8087
|
-
],
|
|
8087
|
+
], Sl = { class: "pv-text-body-md" }, Cl = { key: 2 }, wl = {
|
|
8088
8088
|
key: 0,
|
|
8089
8089
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
8090
|
-
},
|
|
8090
|
+
}, Tl = /* @__PURE__ */ d({
|
|
8091
8091
|
__name: "GroupBySelector",
|
|
8092
8092
|
props: {
|
|
8093
8093
|
rowGroupLimit: {},
|
|
8094
8094
|
enableFocusView: { type: Boolean }
|
|
8095
8095
|
},
|
|
8096
8096
|
setup(e) {
|
|
8097
|
-
let n = m(
|
|
8097
|
+
let n = m(qc, O(null)), c = m(Zc, O([])), l = m(Qc, O([])), u = e;
|
|
8098
8098
|
V(l, () => {}, { deep: !0 });
|
|
8099
8099
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
8100
8100
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -8118,7 +8118,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8118
8118
|
let t = e.findIndex((e) => e === "divider"), r = e.slice(0, t).slice(0, u.rowGroupLimit).map((e) => e.replace("group-by-list-item-", ""));
|
|
8119
8119
|
n.value && n.value.setRowGroupColumns(r);
|
|
8120
8120
|
};
|
|
8121
|
-
return (n, r) => (E(), i(
|
|
8121
|
+
return (n, r) => (E(), i(ys, {
|
|
8122
8122
|
isList: !0,
|
|
8123
8123
|
isSortable: !0,
|
|
8124
8124
|
popoverCssProperties: { width: "auto" },
|
|
@@ -8126,7 +8126,7 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8126
8126
|
class: y(p.value),
|
|
8127
8127
|
onListOrderUpdated: x
|
|
8128
8128
|
}, {
|
|
8129
|
-
trigger: H(() => [s("div",
|
|
8129
|
+
trigger: H(() => [s("div", vl, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(Dn), {
|
|
8130
8130
|
key: 0,
|
|
8131
8131
|
value: I(l).length,
|
|
8132
8132
|
variant: "tertiary"
|
|
@@ -8139,25 +8139,25 @@ var Ys = "__pv_filter_panel_scoped_value__", Xs = (e) => typeof e == "object" &&
|
|
|
8139
8139
|
key: 0,
|
|
8140
8140
|
name: "reorder",
|
|
8141
8141
|
class: "pv-text-subdued"
|
|
8142
|
-
})) : (E(), o("span",
|
|
8142
|
+
})) : (E(), o("span", bl)),
|
|
8143
8143
|
s("input", {
|
|
8144
8144
|
type: "checkbox",
|
|
8145
8145
|
class: "pv-checkbox",
|
|
8146
8146
|
checked: d(e.value),
|
|
8147
8147
|
disabled: !d(e.value) && h.value,
|
|
8148
8148
|
onChange: (t) => f(e.value, t.target.checked)
|
|
8149
|
-
}, null, 40,
|
|
8150
|
-
s("span",
|
|
8151
|
-
d(e.value) ? (E(), o("sup",
|
|
8152
|
-
], 2)], 8,
|
|
8149
|
+
}, null, 40, xl),
|
|
8150
|
+
s("span", Sl, P(e.label), 1),
|
|
8151
|
+
d(e.value) ? (E(), o("sup", Cl, P(n + 1), 1)) : a("", !0)
|
|
8152
|
+
], 2)], 8, yl))], 64))), 128)), h.value ? (E(), o("p", wl, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
8153
8153
|
_: 1
|
|
8154
8154
|
}, 8, ["class"]));
|
|
8155
8155
|
}
|
|
8156
|
-
}),
|
|
8157
|
-
function
|
|
8158
|
-
return E(), o("div",
|
|
8156
|
+
}), El = {}, Dl = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
8157
|
+
function Ol(e, t) {
|
|
8158
|
+
return E(), o("div", Dl);
|
|
8159
8159
|
}
|
|
8160
|
-
var
|
|
8160
|
+
var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { key: 2 }, Ml = /* @__PURE__ */ d({
|
|
8161
8161
|
__name: "ColDefCellRenderer",
|
|
8162
8162
|
props: {
|
|
8163
8163
|
colDef: {},
|
|
@@ -8171,9 +8171,9 @@ var Ol = /* @__PURE__ */ Xt(Tl, [["render", Dl]]), kl = ["innerHTML"], Al = { ke
|
|
|
8171
8171
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (E(), o("span", {
|
|
8172
8172
|
key: 1,
|
|
8173
8173
|
innerHTML: c.value
|
|
8174
|
-
}, null, 8,
|
|
8174
|
+
}, null, 8, Al)) : a.value === "string" ? (E(), o("span", jl, P(s.value), 1)) : A(t.$slots, "default", { key: 3 });
|
|
8175
8175
|
}
|
|
8176
|
-
}),
|
|
8176
|
+
}), Nl = (e = null, t = !1) => {
|
|
8177
8177
|
let n = O(e?.focuses || []), i = O(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
8178
8178
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
8179
8179
|
}, l = (e) => {
|
|
@@ -8197,21 +8197,21 @@ var Ol = /* @__PURE__ */ Xt(Tl, [["render", Dl]]), kl = ["innerHTML"], Al = { ke
|
|
|
8197
8197
|
setFocuses: l,
|
|
8198
8198
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
8199
8199
|
};
|
|
8200
|
-
},
|
|
8200
|
+
}, Pl = () => m(Gc, null) || Nl(), Fl = { class: "pv-table-group-cell" }, Il = { class: "pv-text-body-xxs pv-text-subdued" }, Ll = { key: 0 }, Rl = { style: { "line-height": "20px" } }, zl = { class: "pv-text-title-md" }, Bl = {
|
|
8201
8201
|
key: 0,
|
|
8202
8202
|
class: "pv-flex",
|
|
8203
8203
|
style: {
|
|
8204
8204
|
flex: "1",
|
|
8205
8205
|
"--flex-justify": "flex-end"
|
|
8206
8206
|
}
|
|
8207
|
-
},
|
|
8207
|
+
}, Vl = {
|
|
8208
8208
|
key: 0,
|
|
8209
8209
|
class: "pv-table-row-number"
|
|
8210
|
-
},
|
|
8210
|
+
}, Hl = /* @__PURE__ */ d({
|
|
8211
8211
|
__name: "GroupedCellRenderer",
|
|
8212
8212
|
props: { params: {} },
|
|
8213
8213
|
setup(e) {
|
|
8214
|
-
let n = e, i = m(
|
|
8214
|
+
let n = e, i = m(Qc, O([])), c = m($c, O(null)), d = m(el, O({})), f = K(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
8215
8215
|
let e = f.value.data;
|
|
8216
8216
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
8217
8217
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -8233,7 +8233,7 @@ var Ol = /* @__PURE__ */ Xt(Tl, [["render", Dl]]), kl = ["innerHTML"], Al = { ke
|
|
|
8233
8233
|
}), S = (e) => {
|
|
8234
8234
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
8235
8235
|
n != null && (d.value[n] = t);
|
|
8236
|
-
}, { isFocused: T, computedFocuses: D, removeFocus: k, canRemoveFocus: A } =
|
|
8236
|
+
}, { isFocused: T, computedFocuses: D, removeFocus: k, canRemoveFocus: A } = Pl(), j = r(() => T(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
8237
8237
|
let e = D.value;
|
|
8238
8238
|
return f.value.key && e.includes(f.value.key);
|
|
8239
8239
|
});
|
|
@@ -8248,7 +8248,7 @@ var Ol = /* @__PURE__ */ Xt(Tl, [["render", Dl]]), kl = ["innerHTML"], Al = { ke
|
|
|
8248
8248
|
}), (n, r) => (E(), o(t, null, [h.value ? (E(), o("div", {
|
|
8249
8249
|
key: 0,
|
|
8250
8250
|
class: y(j.value)
|
|
8251
|
-
}, [s("div",
|
|
8251
|
+
}, [s("div", Fl, [s("p", Il, [l(P(I(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (E(), o("span", Ll, " (" + P(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", Rl, [s("p", zl, P(g.value), 1)])]), M.value && I(A)() ? (E(), o("div", Bl, [u(oa, {
|
|
8252
8252
|
variant: "dark",
|
|
8253
8253
|
tooltipPosition: "center-left",
|
|
8254
8254
|
size: "sm"
|
|
@@ -8262,13 +8262,13 @@ var Ol = /* @__PURE__ */ Xt(Tl, [["render", Dl]]), kl = ["innerHTML"], Al = { ke
|
|
|
8262
8262
|
}, null, 8, ["class"])]),
|
|
8263
8263
|
"tooltip-content": H(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
8264
8264
|
_: 1
|
|
8265
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span",
|
|
8265
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", Vl, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
8266
8266
|
}
|
|
8267
|
-
}),
|
|
8267
|
+
}), Ul = /* @__PURE__ */ d({
|
|
8268
8268
|
__name: "AutoGroupColDefRenderer",
|
|
8269
8269
|
props: { params: {} },
|
|
8270
8270
|
setup(e) {
|
|
8271
|
-
let t = e, n = m(
|
|
8271
|
+
let t = e, n = m($c, O(null)), a = r(() => t.params.rowNode.group), o = r(() => a.value ? t.params.cellParams.node?.rowGroupColumn?.getColDef() ?? null : null), s = r(() => a.value ? null : n.value?.getColDef() ?? null), c = r(() => {
|
|
8272
8272
|
let e = n.value;
|
|
8273
8273
|
if (!e) return t.params.cellParams;
|
|
8274
8274
|
let r = e.getColDef(), i = e.getColId(), a = t.params.cellParams.data, o = a?.[i] ?? null, s = r.valueFormatter, c = null;
|
|
@@ -8287,36 +8287,36 @@ var Ol = /* @__PURE__ */ Xt(Tl, [["render", Dl]]), kl = ["innerHTML"], Al = { ke
|
|
|
8287
8287
|
valueFormatted: c
|
|
8288
8288
|
};
|
|
8289
8289
|
});
|
|
8290
|
-
return (t, n) => a.value ? (E(), i(
|
|
8290
|
+
return (t, n) => a.value ? (E(), i(Ml, {
|
|
8291
8291
|
key: 0,
|
|
8292
8292
|
"col-def": o.value,
|
|
8293
8293
|
"cell-params": e.params.cellParams
|
|
8294
8294
|
}, {
|
|
8295
|
-
default: H(() => [u(
|
|
8295
|
+
default: H(() => [u(Hl, { params: e.params }, null, 8, ["params"])]),
|
|
8296
8296
|
_: 1
|
|
8297
|
-
}, 8, ["col-def", "cell-params"])) : (E(), i(
|
|
8297
|
+
}, 8, ["col-def", "cell-params"])) : (E(), i(Ml, {
|
|
8298
8298
|
key: 1,
|
|
8299
8299
|
"col-def": s.value,
|
|
8300
8300
|
"cell-params": c.value
|
|
8301
8301
|
}, {
|
|
8302
|
-
default: H(() => [u(
|
|
8302
|
+
default: H(() => [u(Hl, { params: e.params }, null, 8, ["params"])]),
|
|
8303
8303
|
_: 1
|
|
8304
8304
|
}, 8, ["col-def", "cell-params"]));
|
|
8305
8305
|
}
|
|
8306
8306
|
});
|
|
8307
8307
|
//#endregion
|
|
8308
8308
|
//#region src/functions/aggregations.ts
|
|
8309
|
-
function
|
|
8309
|
+
function Wl(e) {
|
|
8310
8310
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
8311
8311
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
8312
8312
|
}
|
|
8313
8313
|
//#endregion
|
|
8314
8314
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
8315
|
-
var
|
|
8315
|
+
var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, ql = /* @__PURE__ */ d({
|
|
8316
8316
|
__name: "GroupAggCellRenderer",
|
|
8317
8317
|
props: { params: {} },
|
|
8318
8318
|
setup(e) {
|
|
8319
|
-
let t = e, n = m(
|
|
8319
|
+
let t = e, n = m(el, O({})), i = r(() => {
|
|
8320
8320
|
let e = t.params.column?.getColDef(), n = $(e);
|
|
8321
8321
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
8322
8322
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -8343,20 +8343,20 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8343
8343
|
style: x(f.value),
|
|
8344
8344
|
class: "pv-flex",
|
|
8345
8345
|
ondblclick: a
|
|
8346
|
-
}, [s("div",
|
|
8346
|
+
}, [s("div", Gl, [s("p", null, P(d.value), 1), s("p", Kl, P(i.value), 1)])], 4));
|
|
8347
8347
|
}
|
|
8348
|
-
}),
|
|
8348
|
+
}), Jl = {
|
|
8349
8349
|
agSetColumnFilter: "set",
|
|
8350
8350
|
agMultiColumnFilter: "multi",
|
|
8351
8351
|
agTextColumnFilter: "text"
|
|
8352
|
-
},
|
|
8352
|
+
}, Yl = (e) => !e || !e.filter ? null : e.filter in Jl ? Jl[e.filter] : null, Xl = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), Zl = (e, t) => {
|
|
8353
8353
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
8354
|
-
let n = e?.filterType || null, r =
|
|
8354
|
+
let n = e?.filterType || null, r = Yl(t);
|
|
8355
8355
|
if (!r || r === n) return e;
|
|
8356
8356
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
8357
8357
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
8358
8358
|
if (e.filterType == "set") {
|
|
8359
|
-
let n = e.values || [], r =
|
|
8359
|
+
let n = e.values || [], r = Xl(t);
|
|
8360
8360
|
r > -1 && r < a.length && (a[r] = {
|
|
8361
8361
|
filterType: "set",
|
|
8362
8362
|
values: n
|
|
@@ -8366,7 +8366,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8366
8366
|
filterType: "multi",
|
|
8367
8367
|
filterModels: a
|
|
8368
8368
|
};
|
|
8369
|
-
},
|
|
8369
|
+
}, Ql = (e, t) => {
|
|
8370
8370
|
let n = t.filter((e) => e !== null && e !== "");
|
|
8371
8371
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
8372
8372
|
filterType: "text",
|
|
@@ -8383,18 +8383,18 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8383
8383
|
filter: t
|
|
8384
8384
|
}))
|
|
8385
8385
|
};
|
|
8386
|
-
},
|
|
8386
|
+
}, $l = (e) => {
|
|
8387
8387
|
let t = [];
|
|
8388
8388
|
return Object.keys(e).forEach((n) => {
|
|
8389
8389
|
let r = e[n];
|
|
8390
8390
|
if (r) {
|
|
8391
8391
|
if (r.filterType === "set" && r.values) {
|
|
8392
|
-
let e =
|
|
8392
|
+
let e = Ql(n, r.values);
|
|
8393
8393
|
e && t.push(e);
|
|
8394
8394
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
8395
8395
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
8396
8396
|
if (e?.values) {
|
|
8397
|
-
let r =
|
|
8397
|
+
let r = Ql(n, e.values);
|
|
8398
8398
|
r && t.push(r);
|
|
8399
8399
|
}
|
|
8400
8400
|
}
|
|
@@ -8404,11 +8404,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8404
8404
|
type: "AND",
|
|
8405
8405
|
conditions: t
|
|
8406
8406
|
};
|
|
8407
|
-
},
|
|
8407
|
+
}, eu = (e, t, n = !1) => {
|
|
8408
8408
|
if (!e) return e;
|
|
8409
8409
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
8410
8410
|
if (n) {
|
|
8411
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
8411
|
+
let t = e?.filter?.advancedFilterModel, n = $l(i), a = t || null, o = null;
|
|
8412
8412
|
return o = a && n ? {
|
|
8413
8413
|
filterType: "join",
|
|
8414
8414
|
type: "AND",
|
|
@@ -8421,12 +8421,12 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8421
8421
|
}
|
|
8422
8422
|
let a = {};
|
|
8423
8423
|
return Object.keys(i).forEach((e) => {
|
|
8424
|
-
a[e] =
|
|
8424
|
+
a[e] = Zl(i[e] || {}, t.find((t) => t.field === e));
|
|
8425
8425
|
}), r.filter = {
|
|
8426
8426
|
...r.filter,
|
|
8427
8427
|
filterModel: a
|
|
8428
8428
|
}, r;
|
|
8429
|
-
},
|
|
8429
|
+
}, tu = (e) => {
|
|
8430
8430
|
if (!e || e.queryTerms.length === 0) return {};
|
|
8431
8431
|
let t = {};
|
|
8432
8432
|
return e.queryTerms.forEach((e) => {
|
|
@@ -8458,7 +8458,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8458
8458
|
};
|
|
8459
8459
|
}
|
|
8460
8460
|
}), t;
|
|
8461
|
-
},
|
|
8461
|
+
}, nu = (e) => {
|
|
8462
8462
|
if (!e || e.queryTerms.length === 0) return null;
|
|
8463
8463
|
let t = /* @__PURE__ */ new Map();
|
|
8464
8464
|
e.queryTerms.forEach((e) => {
|
|
@@ -8493,7 +8493,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8493
8493
|
type: "AND",
|
|
8494
8494
|
conditions: n
|
|
8495
8495
|
};
|
|
8496
|
-
},
|
|
8496
|
+
}, ru = (e, t) => {
|
|
8497
8497
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
8498
8498
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
8499
8499
|
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");
|
|
@@ -8501,26 +8501,26 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8501
8501
|
filterType: "multi",
|
|
8502
8502
|
filterModels: r
|
|
8503
8503
|
};
|
|
8504
|
-
},
|
|
8504
|
+
}, iu = (e, t) => {
|
|
8505
8505
|
if (!e || Object.keys(e).length === 0) return t;
|
|
8506
8506
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
8507
8507
|
let n = { ...e };
|
|
8508
8508
|
return t.filterModels?.forEach((e, t) => {
|
|
8509
8509
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
8510
8510
|
}), n;
|
|
8511
|
-
},
|
|
8511
|
+
}, au = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => au(e, t)) : e.colId === t : t in e : !1, ou = (e, t, n) => {
|
|
8512
8512
|
let r = { ...t };
|
|
8513
8513
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
8514
|
-
let i =
|
|
8515
|
-
r[t] =
|
|
8514
|
+
let i = ru(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
8515
|
+
r[t] = iu(a, i);
|
|
8516
8516
|
}), r);
|
|
8517
|
-
},
|
|
8517
|
+
}, su = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? Xl(e) !== void 0 && Xl(e) > -1 : !1, cu = (e, t) => {
|
|
8518
8518
|
let n = { ...e };
|
|
8519
8519
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
8520
8520
|
...n.filterParams,
|
|
8521
8521
|
values: t
|
|
8522
8522
|
}, n;
|
|
8523
|
-
let r =
|
|
8523
|
+
let r = Xl(e);
|
|
8524
8524
|
if (r !== void 0 && r > -1) {
|
|
8525
8525
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
8526
8526
|
a.filterParams = {
|
|
@@ -8534,13 +8534,13 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8534
8534
|
};
|
|
8535
8535
|
}
|
|
8536
8536
|
return n;
|
|
8537
|
-
},
|
|
8537
|
+
}, lu = async (e, t) => {
|
|
8538
8538
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
8539
8539
|
if (r?.filterType == "set") return r;
|
|
8540
8540
|
if (r?.filterType != "multi") return null;
|
|
8541
|
-
let i =
|
|
8541
|
+
let i = Xl(t);
|
|
8542
8542
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
8543
|
-
},
|
|
8543
|
+
}, uu = async (e, t, n) => {
|
|
8544
8544
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
8545
8545
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
8546
8546
|
if (i?.filterType != "multi") return null;
|
|
@@ -8549,50 +8549,50 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8549
8549
|
filterType: "multi",
|
|
8550
8550
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
8551
8551
|
};
|
|
8552
|
-
let o =
|
|
8552
|
+
let o = Xl(t), s = !n || n.length === 0 ? null : {
|
|
8553
8553
|
filterType: "set",
|
|
8554
8554
|
values: n
|
|
8555
8555
|
};
|
|
8556
8556
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
8557
|
-
},
|
|
8557
|
+
}, du = (e, t) => {
|
|
8558
8558
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
8559
8559
|
let n = t[e.field];
|
|
8560
8560
|
if (!n) return [];
|
|
8561
8561
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
8562
8562
|
if (n.filterType === "multi") {
|
|
8563
|
-
let t =
|
|
8563
|
+
let t = Xl(e);
|
|
8564
8564
|
if (t !== void 0 && t > -1) {
|
|
8565
8565
|
let e = n.filterModels[t];
|
|
8566
8566
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
8567
8567
|
}
|
|
8568
8568
|
}
|
|
8569
8569
|
return [];
|
|
8570
|
-
},
|
|
8570
|
+
}, fu = (e) => !!e && "filterType" in e, pu = (e) => e.filterType === "join" ? e.conditions.some(pu) : "colId" in e, mu = (e) => e ? fu(e) ? !pu(e) : Object.keys(e).length === 0 : !0, hu = (e) => {
|
|
8571
8571
|
if (e === void 0) return "undefined";
|
|
8572
8572
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
8573
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
8573
|
+
if (Array.isArray(e)) return `[${e.map(hu).join(",")}]`;
|
|
8574
8574
|
let t = e;
|
|
8575
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
8576
|
-
},
|
|
8575
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${hu(t[e])}`).join(",")}}`;
|
|
8576
|
+
}, gu = (e) => {
|
|
8577
8577
|
if (e.filterType !== "join") return e;
|
|
8578
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
8578
|
+
let t = e, n = [...t.conditions ?? []].map(gu).sort((e, t) => hu(e).localeCompare(hu(t)));
|
|
8579
8579
|
return {
|
|
8580
8580
|
...t,
|
|
8581
8581
|
conditions: n
|
|
8582
8582
|
};
|
|
8583
|
-
},
|
|
8584
|
-
if (
|
|
8585
|
-
let n =
|
|
8586
|
-
if (n !==
|
|
8587
|
-
if (n) return tt(
|
|
8583
|
+
}, _u = (e, t) => {
|
|
8584
|
+
if (mu(e) && mu(t)) return !0;
|
|
8585
|
+
let n = fu(e);
|
|
8586
|
+
if (n !== fu(t)) return !1;
|
|
8587
|
+
if (n) return tt(gu(e), gu(t));
|
|
8588
8588
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
8589
8589
|
if (a.length !== o.length) return !1;
|
|
8590
8590
|
for (let e of a) if (!tt(r?.[e], i?.[e])) return !1;
|
|
8591
8591
|
return !0;
|
|
8592
|
-
},
|
|
8593
|
-
if (!t) return
|
|
8592
|
+
}, vu = (e, t, n) => {
|
|
8593
|
+
if (!t) return yu(e, n);
|
|
8594
8594
|
if (!e) return t;
|
|
8595
|
-
let r =
|
|
8595
|
+
let r = yu(e, n);
|
|
8596
8596
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
8597
8597
|
filterType: "join",
|
|
8598
8598
|
type: "AND",
|
|
@@ -8602,53 +8602,53 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8602
8602
|
type: "AND",
|
|
8603
8603
|
conditions: [r, t]
|
|
8604
8604
|
} : t;
|
|
8605
|
-
},
|
|
8605
|
+
}, yu = (e, t) => {
|
|
8606
8606
|
if (!e) return null;
|
|
8607
8607
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
8608
|
-
let n = e, r = n.conditions.map((e) =>
|
|
8608
|
+
let n = e, r = n.conditions.map((e) => yu(e, t)).filter((e) => e !== null);
|
|
8609
8609
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
8610
8610
|
filterType: "join",
|
|
8611
8611
|
type: n.type,
|
|
8612
8612
|
conditions: r
|
|
8613
8613
|
};
|
|
8614
|
-
},
|
|
8614
|
+
}, bu = (e, t) => {
|
|
8615
8615
|
if (!t) return [];
|
|
8616
8616
|
if (t.filterType !== "join") {
|
|
8617
8617
|
let n = t;
|
|
8618
8618
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
8619
8619
|
}
|
|
8620
8620
|
let n = t, r = [];
|
|
8621
|
-
for (let t of n.conditions) r.push(...
|
|
8621
|
+
for (let t of n.conditions) r.push(...bu(e, t));
|
|
8622
8622
|
return r;
|
|
8623
|
-
},
|
|
8623
|
+
}, xu = (e, t) => {
|
|
8624
8624
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
8625
8625
|
let n = t[e];
|
|
8626
8626
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
8627
|
-
},
|
|
8627
|
+
}, Su = (e, t) => {
|
|
8628
8628
|
if (!e) return null;
|
|
8629
|
-
if (
|
|
8630
|
-
let n =
|
|
8629
|
+
if (fu(e)) {
|
|
8630
|
+
let n = bu(t, e);
|
|
8631
8631
|
return n.length > 0 ? n : null;
|
|
8632
8632
|
}
|
|
8633
|
-
let n =
|
|
8633
|
+
let n = xu(t, e);
|
|
8634
8634
|
return n.length > 0 ? n : null;
|
|
8635
|
-
},
|
|
8635
|
+
}, Cu = (e, t) => {
|
|
8636
8636
|
if (!e) return e;
|
|
8637
|
-
if (
|
|
8637
|
+
if (fu(e)) return yu(e, t);
|
|
8638
8638
|
let n = { ...e };
|
|
8639
8639
|
return delete n[t], n;
|
|
8640
|
-
},
|
|
8641
|
-
if (
|
|
8642
|
-
let r =
|
|
8643
|
-
return
|
|
8640
|
+
}, wu = (e, t, n, r) => {
|
|
8641
|
+
if (fu(e) || !e && r) {
|
|
8642
|
+
let r = Ql(t, n);
|
|
8643
|
+
return vu(e ?? null, r, t);
|
|
8644
8644
|
}
|
|
8645
8645
|
let i = { ...e || {} };
|
|
8646
8646
|
return i[t] = {
|
|
8647
8647
|
filterType: "set",
|
|
8648
8648
|
values: n
|
|
8649
8649
|
}, i;
|
|
8650
|
-
},
|
|
8651
|
-
if (
|
|
8650
|
+
}, Tu = (e, t, n, r) => {
|
|
8651
|
+
if (fu(e) || !e && r) return wu(e, t, n, r);
|
|
8652
8652
|
let i = { ...e || {} }, a = i[t];
|
|
8653
8653
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
8654
8654
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -8664,11 +8664,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8664
8664
|
values: n
|
|
8665
8665
|
};
|
|
8666
8666
|
return i;
|
|
8667
|
-
},
|
|
8668
|
-
let i = (
|
|
8669
|
-
return i.length === 0 ?
|
|
8670
|
-
},
|
|
8671
|
-
let e =
|
|
8667
|
+
}, Eu = (e, t, n, r) => {
|
|
8668
|
+
let i = (Su(e, t) ?? []).filter((e) => e !== n);
|
|
8669
|
+
return i.length === 0 ? Cu(e, t) : Tu(e, t, i, r);
|
|
8670
|
+
}, Du = (e) => !!(e && "filterType" in e), Ou = (e) => !!(e && !Du(e)), ku = (e) => !!(e && !Du(e)), Au = () => {
|
|
8671
|
+
let e = Ac(), t = N(null), n = e.filterModel, i = e.stagedFilterModel, a = O(null), o = O({}), s = O({}), c = e.filterRequestIdMap, l = O(0), u = e.filterLoadingMap, d = O(void 0), f = e.filterHasMoreMap, p = e.filterTotalCountMap, m = O(void 0), h = (t) => ({
|
|
8672
8672
|
hasMore: e.filterHasMoreMap.value[t],
|
|
8673
8673
|
totalCount: e.filterTotalCountMap.value[t],
|
|
8674
8674
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -8683,7 +8683,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8683
8683
|
});
|
|
8684
8684
|
let g = r(() => d.value != null), _ = r(() => {
|
|
8685
8685
|
let e = n.value;
|
|
8686
|
-
return e ?
|
|
8686
|
+
return e ? Du(e) ? !pu(e) : Object.keys(e).length === 0 : !0;
|
|
8687
8687
|
}), v = r(() => {
|
|
8688
8688
|
let e = a.value || {};
|
|
8689
8689
|
return Object.keys(e).length === 0;
|
|
@@ -8721,9 +8721,9 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8721
8721
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
8722
8722
|
}, z = async (e, t) => {
|
|
8723
8723
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
8724
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
8724
|
+
if (t?.useStaged !== !1 && i.value != null) if (Ou(i.value)) {
|
|
8725
8725
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
8726
|
-
o = F(e &&
|
|
8726
|
+
o = F(e && Ou(e) ? e : void 0);
|
|
8727
8727
|
} else o = i.value;
|
|
8728
8728
|
let l = {
|
|
8729
8729
|
api: t?.api,
|
|
@@ -8805,7 +8805,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8805
8805
|
}, ne = (e, t) => {
|
|
8806
8806
|
b.value[e] = t;
|
|
8807
8807
|
let r = [], i = n.value;
|
|
8808
|
-
if (
|
|
8808
|
+
if (ku(i)) {
|
|
8809
8809
|
let t = i[e];
|
|
8810
8810
|
if (t?.values) {
|
|
8811
8811
|
let e = t.values || [];
|
|
@@ -8822,7 +8822,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8822
8822
|
let t = n.value;
|
|
8823
8823
|
if (!t) return x.value;
|
|
8824
8824
|
let r = e.map((e) => {
|
|
8825
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
8825
|
+
let n = e.field ?? e.colId ?? "", r = n ? Su(t, n) : null;
|
|
8826
8826
|
return r && r.length > 0 ? {
|
|
8827
8827
|
colDef: e,
|
|
8828
8828
|
colId: n,
|
|
@@ -8939,14 +8939,14 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8939
8939
|
filterValuesHasMoreMap: f,
|
|
8940
8940
|
filterValuesTotalCountMap: p
|
|
8941
8941
|
};
|
|
8942
|
-
},
|
|
8943
|
-
D(
|
|
8944
|
-
},
|
|
8945
|
-
let e = m(
|
|
8942
|
+
}, ju = Au, Mu = (e) => {
|
|
8943
|
+
D(Wc, e);
|
|
8944
|
+
}, Nu = () => m(Wc, null) || Au(), Pu = () => {
|
|
8945
|
+
let e = m(Wc, null);
|
|
8946
8946
|
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().");
|
|
8947
8947
|
return e;
|
|
8948
|
-
},
|
|
8949
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(
|
|
8948
|
+
}, Fu = (e) => {
|
|
8949
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(qc, O(null)), c = Nu(), { fetchFilterValues: l, invalidateFilterRequest: u, filterModel: d, stagedFilterModel: f, filterModelCleared: p, filterValuesLoadingStatus: h, filterValueContext: g, getFilterSelectedValues: _, isServerSideFilter: y, setFilterValueSearchText: b, setFilterSelectedValues: x, getFilterValues: S, setFilterValues: C, filterStaleMap: E, refreshFiltersInBackground: D, stageFilterChangesUntilDropdownCloses: k, filterSearchMinLength: A, markOtherFieldsStale: j, registerAggregateField: M, registerFilterField: N, unregisterFilterField: P, getStagedSelectedValues: F, setStagedSelectedValues: I, filterValueSearchTextMap: L, filterValuesHasMoreMap: R, filterValuesTotalCountMap: ee } = c, { computedFocuses: z, removeFocus: B, computedFocusType: te } = Pl(), ne = m(nl, O(!1)), H = m(tl, O(!1)), U = m(hl, O(!1)), W = r({
|
|
8950
8950
|
get: () => J.value ? F(q.value) : _(q.value),
|
|
8951
8951
|
set: (e) => {
|
|
8952
8952
|
J.value ? I(q.value, e) : x(q.value, e);
|
|
@@ -8972,8 +8972,8 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8972
8972
|
let n = [];
|
|
8973
8973
|
if (U.value && s.value) {
|
|
8974
8974
|
let e = s.value.getAdvancedFilterModel();
|
|
8975
|
-
n =
|
|
8976
|
-
} else n =
|
|
8975
|
+
n = bu(q.value, e);
|
|
8976
|
+
} else n = du(t.value, d.value);
|
|
8977
8977
|
e ? W.value = n : W.value = Array.from(new Set([..._(q.value), ...n]));
|
|
8978
8978
|
}, Ae = (e) => {
|
|
8979
8979
|
let t = (n) => {
|
|
@@ -8998,7 +8998,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
8998
8998
|
}
|
|
8999
8999
|
return;
|
|
9000
9000
|
}
|
|
9001
|
-
let u = await
|
|
9001
|
+
let u = await lu(s.value, t.value);
|
|
9002
9002
|
if (u) {
|
|
9003
9003
|
if (y.value && c) {
|
|
9004
9004
|
u.refreshFilterValues();
|
|
@@ -9030,21 +9030,21 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9030
9030
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
9031
9031
|
let n = g(q.value, e);
|
|
9032
9032
|
return n == null || n.label == null;
|
|
9033
|
-
}, Ve = (e) => Oe.value || g(q.value, e)?.isSelectable === !1 ? !0 : pe.value ? !1 : be.value && !W.value.includes(e), He = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", Ue = (e, n, r) =>
|
|
9033
|
+
}, Ve = (e) => Oe.value || g(q.value, e)?.isSelectable === !1 ? !0 : pe.value ? !1 : be.value && !W.value.includes(e), He = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", Ue = (e, n, r) => xc({
|
|
9034
9034
|
fallbackSubText: n,
|
|
9035
9035
|
getDisplayName: He,
|
|
9036
9036
|
matchedField: e?.matchedField,
|
|
9037
9037
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
9038
9038
|
primaryText: r,
|
|
9039
9039
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
9040
|
-
}), We = r(() =>
|
|
9040
|
+
}), We = r(() => yc(q.value, $(t.value).queryColIds, (e) => e === q.value && se.value || He(e))), Q = (e) => {
|
|
9041
9041
|
if (!e.startsWith("__")) return { value: e };
|
|
9042
9042
|
let t = e.slice(2).split("__");
|
|
9043
9043
|
return t.length < 2 ? { value: e } : {
|
|
9044
9044
|
field: t[0],
|
|
9045
9045
|
value: t[1]
|
|
9046
9046
|
};
|
|
9047
|
-
}, Ge = (e) =>
|
|
9047
|
+
}, Ge = (e) => fc(e, Je()), Ke = (e) => {
|
|
9048
9048
|
let t = Q(e.value), n = { ...e };
|
|
9049
9049
|
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(Ke)), n;
|
|
9050
9050
|
}, qe = r(() => [...c.filterValueMap.value[q.value] || [], ...c.filterValueSelectedMetadataMap.value[q.value] || []].map((e) => e && Ke(e))), Je = () => qe.value, Ye = (e, t) => {
|
|
@@ -9061,7 +9061,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9061
9061
|
let e = n.children ? Xe(n.children, t) : void 0;
|
|
9062
9062
|
if (e) return e;
|
|
9063
9063
|
}
|
|
9064
|
-
}, Ze = (e, t) =>
|
|
9064
|
+
}, Ze = (e, t) => pc(Je(), e, t), Qe = (e) => {
|
|
9065
9065
|
let t = (n) => {
|
|
9066
9066
|
if (n) {
|
|
9067
9067
|
if (String(Fe(n) ?? Q(n.value).value) === e) return n;
|
|
@@ -9218,27 +9218,27 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9218
9218
|
if (e !== void 0 && n !== void 0) {
|
|
9219
9219
|
let r = e || q.value, i = n;
|
|
9220
9220
|
if (U.value) {
|
|
9221
|
-
let e =
|
|
9221
|
+
let e = Ql(r, i || []);
|
|
9222
9222
|
if (J.value) {
|
|
9223
9223
|
let t = f.value;
|
|
9224
|
-
f.value =
|
|
9224
|
+
f.value = vu(t, e, r), j(new Set([r]));
|
|
9225
9225
|
return;
|
|
9226
9226
|
}
|
|
9227
|
-
let t =
|
|
9227
|
+
let t = vu(s.value.getAdvancedFilterModel(), e, r);
|
|
9228
9228
|
v(() => {
|
|
9229
9229
|
s.value?.setAdvancedFilterModel(t);
|
|
9230
9230
|
}), j(new Set([r]));
|
|
9231
9231
|
return;
|
|
9232
9232
|
}
|
|
9233
9233
|
if (J.value) {
|
|
9234
|
-
let e = await
|
|
9234
|
+
let e = await uu(s.value, t.value, i);
|
|
9235
9235
|
f.value = {
|
|
9236
9236
|
...f.value,
|
|
9237
9237
|
[r]: e
|
|
9238
9238
|
};
|
|
9239
9239
|
return;
|
|
9240
9240
|
}
|
|
9241
|
-
let a = await
|
|
9241
|
+
let a = await uu(s.value, t.value, i);
|
|
9242
9242
|
s.value.setColumnFilterModel(r, a).then(() => {
|
|
9243
9243
|
s.value && s.value.onFilterChanged();
|
|
9244
9244
|
});
|
|
@@ -9252,11 +9252,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9252
9252
|
for (let t of e) {
|
|
9253
9253
|
let e = i[t] || [];
|
|
9254
9254
|
if (e.length > 0) {
|
|
9255
|
-
let n =
|
|
9255
|
+
let n = Ql(t, e);
|
|
9256
9256
|
n && r.push(n);
|
|
9257
9257
|
}
|
|
9258
9258
|
}
|
|
9259
|
-
for (let t of e) n =
|
|
9259
|
+
for (let t of e) n = vu(n, null, t);
|
|
9260
9260
|
if (r.length > 0) {
|
|
9261
9261
|
let e = r.length === 1 ? r[0] : {
|
|
9262
9262
|
filterType: "join",
|
|
@@ -9270,23 +9270,23 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9270
9270
|
} : e;
|
|
9271
9271
|
}
|
|
9272
9272
|
} else {
|
|
9273
|
-
let t = W.value.length > 0 ? W.value : null, r =
|
|
9274
|
-
n =
|
|
9273
|
+
let t = W.value.length > 0 ? W.value : null, r = Ql(q.value, t || []);
|
|
9274
|
+
n = vu(n, r, q.value);
|
|
9275
9275
|
let i = !1;
|
|
9276
9276
|
if (a?.value) {
|
|
9277
9277
|
let e = o.filterGroup?.fields ?? [];
|
|
9278
9278
|
for (let t of e) {
|
|
9279
9279
|
let e = a.value.has(t);
|
|
9280
|
-
if (e ===
|
|
9280
|
+
if (e === bu(t, n).includes("true")) continue;
|
|
9281
9281
|
i = !0;
|
|
9282
|
-
let r = e ?
|
|
9283
|
-
n =
|
|
9282
|
+
let r = e ? Ql(t, ["true"]) : null;
|
|
9283
|
+
n = vu(n, r, t);
|
|
9284
9284
|
}
|
|
9285
9285
|
}
|
|
9286
|
-
let s = W.value.filter((e) => e !== null), c =
|
|
9286
|
+
let s = W.value.filter((e) => e !== null), c = bu(q.value, e), l = new Set(c), u = new Set(s);
|
|
9287
9287
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
9288
9288
|
}
|
|
9289
|
-
if (r?.skipIfUnchanged &&
|
|
9289
|
+
if (r?.skipIfUnchanged && _u(e, n)) return;
|
|
9290
9290
|
let c = Z.value ? we() : new Set([q.value]);
|
|
9291
9291
|
if (J.value) f.value = n, j(c);
|
|
9292
9292
|
else {
|
|
@@ -9299,18 +9299,18 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9299
9299
|
}
|
|
9300
9300
|
let c = W.value.length > 0 ? W.value : null;
|
|
9301
9301
|
if (r?.skipIfUnchanged) {
|
|
9302
|
-
let e =
|
|
9302
|
+
let e = du(t.value, s.value.getFilterModel());
|
|
9303
9303
|
if (Te(W.value, e)) return;
|
|
9304
9304
|
}
|
|
9305
9305
|
if (J.value) {
|
|
9306
|
-
let e = await
|
|
9306
|
+
let e = await uu(s.value, t.value, c);
|
|
9307
9307
|
f.value = {
|
|
9308
9308
|
...f.value,
|
|
9309
9309
|
[q.value]: e
|
|
9310
9310
|
};
|
|
9311
9311
|
return;
|
|
9312
9312
|
}
|
|
9313
|
-
let l = await
|
|
9313
|
+
let l = await uu(s.value, t.value, c);
|
|
9314
9314
|
s.value.setColumnFilterModel(q.value, l).then(() => {
|
|
9315
9315
|
s.value && s.value.onFilterChanged();
|
|
9316
9316
|
});
|
|
@@ -9348,7 +9348,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9348
9348
|
} finally {
|
|
9349
9349
|
r && (Y.value = !1);
|
|
9350
9350
|
}
|
|
9351
|
-
}, pt = (e, n) =>
|
|
9351
|
+
}, pt = (e, n) => gc({
|
|
9352
9352
|
baseModel: n,
|
|
9353
9353
|
colDef: t.value,
|
|
9354
9354
|
options: Je(),
|
|
@@ -9359,7 +9359,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9359
9359
|
if (n?.skipIfUnchanged && r === De.value) return Ee.value = e, !1;
|
|
9360
9360
|
if (Ee.value = e, tt(e), jo(t.value).length === 0) return !1;
|
|
9361
9361
|
let a = J.value ? f.value : s.value.getAdvancedFilterModel(), o = pt(e, a);
|
|
9362
|
-
if (n?.skipIfUnchanged &&
|
|
9362
|
+
if (n?.skipIfUnchanged && _u(a, o)) return De.value = r, !1;
|
|
9363
9363
|
if (J.value) f.value = o;
|
|
9364
9364
|
else {
|
|
9365
9365
|
let e = o;
|
|
@@ -9370,7 +9370,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9370
9370
|
return De.value = r, j(we()), i?.(), !0;
|
|
9371
9371
|
}, ht = (e) => {
|
|
9372
9372
|
if (!Z.value || !jo(t.value).length) return;
|
|
9373
|
-
let n =
|
|
9373
|
+
let n = vc({
|
|
9374
9374
|
colDef: t.value,
|
|
9375
9375
|
model: e,
|
|
9376
9376
|
options: Je()
|
|
@@ -9393,10 +9393,10 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9393
9393
|
if (Z.value) {
|
|
9394
9394
|
let r = jo(t.value);
|
|
9395
9395
|
for (let t of r) {
|
|
9396
|
-
let r =
|
|
9396
|
+
let r = bu(t, n);
|
|
9397
9397
|
e.push(...r);
|
|
9398
9398
|
}
|
|
9399
|
-
} else e =
|
|
9399
|
+
} else e = bu(q.value, n);
|
|
9400
9400
|
W.value = e;
|
|
9401
9401
|
return;
|
|
9402
9402
|
}
|
|
@@ -9409,11 +9409,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9409
9409
|
return;
|
|
9410
9410
|
}
|
|
9411
9411
|
if (U.value) {
|
|
9412
|
-
let e = d.value, t =
|
|
9412
|
+
let e = d.value, t = bu(q.value, e);
|
|
9413
9413
|
ke(W.value.some((e) => e !== null && !t.includes(e)));
|
|
9414
9414
|
return;
|
|
9415
9415
|
}
|
|
9416
|
-
let e =
|
|
9416
|
+
let e = du(t.value, d.value);
|
|
9417
9417
|
ke(W.value.some((t) => !e.includes(t)));
|
|
9418
9418
|
}, { deep: !0 }), V(() => p.value, () => {
|
|
9419
9419
|
W.value = [], Ee.value = [], De.value = "[]";
|
|
@@ -9433,7 +9433,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9433
9433
|
N(q.value);
|
|
9434
9434
|
let e = jo(t.value);
|
|
9435
9435
|
if (e.length && M(q.value, e), ke(), Z.value && U.value && ht(d.value), o?.value && y.value && s.value) {
|
|
9436
|
-
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && U.value ? jo(t.value).some((e) =>
|
|
9436
|
+
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && U.value ? jo(t.value).some((e) => bu(e, d.value).length > 0) : W.value.length > 0;
|
|
9437
9437
|
e && n && l(t.value, {
|
|
9438
9438
|
api: s.value,
|
|
9439
9439
|
filterModel: d.value ?? void 0
|
|
@@ -9489,7 +9489,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9489
9489
|
disableFilterValue: Ve,
|
|
9490
9490
|
updateFilterModelWithSelectedValues: st
|
|
9491
9491
|
};
|
|
9492
|
-
},
|
|
9492
|
+
}, Iu = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
9493
9493
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
9494
9494
|
let t = e.parentElement;
|
|
9495
9495
|
for (; t && t !== document.body;) {
|
|
@@ -9540,23 +9540,23 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9540
9540
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
9541
9541
|
}
|
|
9542
9542
|
};
|
|
9543
|
-
},
|
|
9543
|
+
}, Lu = {
|
|
9544
9544
|
key: 0,
|
|
9545
9545
|
role: "list",
|
|
9546
9546
|
class: "pv-popover-list"
|
|
9547
|
-
},
|
|
9547
|
+
}, Ru = ["data-active"], zu = { key: 1 }, Bu = {
|
|
9548
9548
|
key: 1,
|
|
9549
9549
|
class: "pv-flex pv-inset-square-8",
|
|
9550
9550
|
style: { "justify-content": "center" }
|
|
9551
|
-
},
|
|
9551
|
+
}, Vu = /* @__PURE__ */ d({
|
|
9552
9552
|
__name: "FilterGroupMenu",
|
|
9553
9553
|
props: { filterColDef: {} },
|
|
9554
9554
|
setup(e, { expose: n }) {
|
|
9555
|
-
let s = e, c = m(
|
|
9555
|
+
let s = e, c = m(qc, O(null)), d = m(nl, O(!1)), { filterModel: f, filterStoreHandler: p, markOtherFieldsStale: h, stageFilterChangesUntilDropdownCloses: g } = Nu(), _ = O(/* @__PURE__ */ new Set()), b = O(/* @__PURE__ */ new Set()), x = O(!1), S = O(null), C = r(() => $(s.filterColDef).filterGroup), { popoverPositionStyle: w, updateRects: D, triggerRef: A, popoverRef: j } = Iu({
|
|
9556
9556
|
alignment: "top right",
|
|
9557
9557
|
useTeleport: !0
|
|
9558
9558
|
}), M = (e) => {
|
|
9559
|
-
let t =
|
|
9559
|
+
let t = Su(f.value, e);
|
|
9560
9560
|
return t !== null && t.length > 0 && t.includes("true");
|
|
9561
9561
|
}, N = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
9562
9562
|
if (!p.value || !c.value) return;
|
|
@@ -9578,7 +9578,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9578
9578
|
if (!c.value) return;
|
|
9579
9579
|
let t = _.value.has(e);
|
|
9580
9580
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
9581
|
-
let n =
|
|
9581
|
+
let n = vu(c.value.getAdvancedFilterModel(), t ? null : Ql(e, ["true"]), e);
|
|
9582
9582
|
v(() => {
|
|
9583
9583
|
c.value?.setAdvancedFilterModel(n);
|
|
9584
9584
|
}), h(new Set([e]));
|
|
@@ -9590,7 +9590,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9590
9590
|
return;
|
|
9591
9591
|
}
|
|
9592
9592
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
9593
|
-
for (let r of e) _.value.has(r) || (t =
|
|
9593
|
+
for (let r of e) _.value.has(r) || (t = vu(t, Ql(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
9594
9594
|
n.size > 0 && (v(() => {
|
|
9595
9595
|
c.value?.setAdvancedFilterModel(t);
|
|
9596
9596
|
}), h(n));
|
|
@@ -9601,7 +9601,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9601
9601
|
return;
|
|
9602
9602
|
}
|
|
9603
9603
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
9604
|
-
for (let n of C.value.fields) e =
|
|
9604
|
+
for (let n of C.value.fields) e = yu(e, n), _.value.delete(n), t.add(n);
|
|
9605
9605
|
v(() => {
|
|
9606
9606
|
c.value?.setAdvancedFilterModel(e);
|
|
9607
9607
|
}), h(t);
|
|
@@ -9651,7 +9651,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9651
9651
|
"id",
|
|
9652
9652
|
"text",
|
|
9653
9653
|
"secondary-text"
|
|
9654
|
-
]), u(
|
|
9654
|
+
]), u(hs, {
|
|
9655
9655
|
ref_key: "popoverRef",
|
|
9656
9656
|
ref: j,
|
|
9657
9657
|
class: y({ "pv-hide": !x.value }),
|
|
@@ -9661,7 +9661,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9661
9661
|
}
|
|
9662
9662
|
}, {
|
|
9663
9663
|
default: H(() => [
|
|
9664
|
-
x.value && ne.value.length > 0 ? (E(), o("ul",
|
|
9664
|
+
x.value && ne.value.length > 0 ? (E(), o("ul", Lu, [(E(!0), o(t, null, k(ne.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
9665
9665
|
key: 0,
|
|
9666
9666
|
"data-active": e.isSelected ? "true" : null
|
|
9667
9667
|
}, [u(Ja, {
|
|
@@ -9676,7 +9676,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9676
9676
|
"text",
|
|
9677
9677
|
"selectedIds",
|
|
9678
9678
|
"onHandleSelected"
|
|
9679
|
-
])], 8,
|
|
9679
|
+
])], 8, Ru)) : (E(), o("li", zu, [u(oa, {
|
|
9680
9680
|
variant: "dark",
|
|
9681
9681
|
size: "sm",
|
|
9682
9682
|
"tooltip-position": "bottom-right",
|
|
@@ -9693,8 +9693,8 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9693
9693
|
"tooltip-content": H(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
9694
9694
|
_: 2
|
|
9695
9695
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
9696
|
-
x.value && B.value ? (E(), o("div",
|
|
9697
|
-
x.value ? (E(), i(
|
|
9696
|
+
x.value && B.value ? (E(), o("div", Bu, [u(St, { variant: "dark" })])) : a("", !0),
|
|
9697
|
+
x.value ? (E(), i(Hs, {
|
|
9698
9698
|
key: 2,
|
|
9699
9699
|
class: "pv-border-top pv-inset-square-8",
|
|
9700
9700
|
style: { "padding-top": "8px" },
|
|
@@ -9707,7 +9707,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9707
9707
|
_: 1
|
|
9708
9708
|
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Y), [ee, { ignore: [".pv-popover"] }]]]);
|
|
9709
9709
|
}
|
|
9710
|
-
}),
|
|
9710
|
+
}), Hu = {
|
|
9711
9711
|
key: 0,
|
|
9712
9712
|
role: "list",
|
|
9713
9713
|
class: "pv-flex pv-stack-4",
|
|
@@ -9715,37 +9715,37 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9715
9715
|
"--flex-wrap": "wrap",
|
|
9716
9716
|
"max-width": "100%"
|
|
9717
9717
|
}
|
|
9718
|
-
},
|
|
9718
|
+
}, Uu = {
|
|
9719
9719
|
key: 0,
|
|
9720
9720
|
style: {
|
|
9721
9721
|
"max-width": "100%",
|
|
9722
9722
|
"line-height": "1rem"
|
|
9723
9723
|
}
|
|
9724
|
-
},
|
|
9724
|
+
}, Wu = {
|
|
9725
9725
|
key: 0,
|
|
9726
9726
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
9727
9727
|
style: { "--inset-size": "4px" }
|
|
9728
|
-
},
|
|
9728
|
+
}, Gu = {
|
|
9729
9729
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
9730
9730
|
style: { "--inset-size": "8px" }
|
|
9731
|
-
},
|
|
9731
|
+
}, Ku = {
|
|
9732
9732
|
class: "pv-inset-inline",
|
|
9733
9733
|
style: { "--inset-size": "8px" }
|
|
9734
|
-
},
|
|
9734
|
+
}, qu = {
|
|
9735
9735
|
key: 0,
|
|
9736
9736
|
class: "pv-full-width"
|
|
9737
|
-
},
|
|
9737
|
+
}, Ju = {
|
|
9738
9738
|
key: 0,
|
|
9739
9739
|
class: "pv-flex-inline",
|
|
9740
9740
|
style: { "max-width": "100%" }
|
|
9741
|
-
},
|
|
9741
|
+
}, Yu = {
|
|
9742
9742
|
role: "list",
|
|
9743
9743
|
class: "pv-flex",
|
|
9744
9744
|
style: {
|
|
9745
9745
|
"--flex-wrap": "wrap",
|
|
9746
9746
|
"max-width": "100%"
|
|
9747
9747
|
}
|
|
9748
|
-
},
|
|
9748
|
+
}, Xu = { class: "pv-text-subdued pv-text-body-xxs" }, Zu = 4, Qu = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
9749
9749
|
__name: "SetFilter",
|
|
9750
9750
|
props: {
|
|
9751
9751
|
enableFocusView: {
|
|
@@ -9774,13 +9774,13 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9774
9774
|
"handle-settings-icon"
|
|
9775
9775
|
],
|
|
9776
9776
|
setup(e, { emit: n }) {
|
|
9777
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: L, filterField: R, filterDisplayName: ee, isInFilterPanel: z, suggestedValues: B, displayedFilterValues: te, selectedFilterValues: ne, showSearchBar: V, filterSearchPlaceholder: U, emptyFilterResultsRenderer: W, filterOptionsRenderer: G, filterHeaderRenderer: re, filterFooterRenderer: ie, filterOptionsSortDescription: ae, filterOptionsSortTooltip: K, filterValueContext: q, formatDisplayValue: oe, resolvedFilterValueContext: se, isUnresolvedMetadataValue: J, getLatestFilterValues: ce, addSelectedValue: le, removeSelectedValue: Y, handleDropdownOpen: ue, handleDropdownClosed: de, handleSeeMore: fe, getColDisplayNameForField: pe, hasMoreOptions: me, totalOptionCount: he, isAggregate: ge, cascadeSelectionState: _e } =
|
|
9777
|
+
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: L, filterField: R, filterDisplayName: ee, isInFilterPanel: z, suggestedValues: B, displayedFilterValues: te, selectedFilterValues: ne, showSearchBar: V, filterSearchPlaceholder: U, emptyFilterResultsRenderer: W, filterOptionsRenderer: G, filterHeaderRenderer: re, filterFooterRenderer: ie, filterOptionsSortDescription: ae, filterOptionsSortTooltip: K, filterValueContext: q, formatDisplayValue: oe, resolvedFilterValueContext: se, isUnresolvedMetadataValue: J, getLatestFilterValues: ce, addSelectedValue: le, removeSelectedValue: Y, handleDropdownOpen: ue, handleDropdownClosed: de, handleSeeMore: fe, getColDisplayNameForField: pe, hasMoreOptions: me, totalOptionCount: he, isAggregate: ge, cascadeSelectionState: _e } = Fu({
|
|
9778
9778
|
filterColDef: F(d, "filterColDef"),
|
|
9779
9779
|
filterStyle: F(d, "filterStyle"),
|
|
9780
9780
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
9781
9781
|
filterGroupStagedFields: x,
|
|
9782
9782
|
readOnly: F(d, "readOnly")
|
|
9783
|
-
}), { handleFocusUpdate: ve, isFocused: ye, removeFocus: X, isFocusable: be, canRemoveFocus: xe } =
|
|
9783
|
+
}), { handleFocusUpdate: ve, isFocused: ye, removeFocus: X, isFocusable: be, canRemoveFocus: xe } = Pl(), Se = (e) => {
|
|
9784
9784
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
9785
9785
|
if (e.id.startsWith("__")) {
|
|
9786
9786
|
let t = e.id.slice(2).split("__");
|
|
@@ -9821,7 +9821,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9821
9821
|
Y(e);
|
|
9822
9822
|
let t = se(e)?.colField || R.value, n = Z(e);
|
|
9823
9823
|
ye(n, t) && xe() && X(n);
|
|
9824
|
-
}, Te = m(
|
|
9824
|
+
}, Te = m(hl, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Te.value), De = () => {
|
|
9825
9825
|
ue(), ce(!0);
|
|
9826
9826
|
}, Oe = () => {
|
|
9827
9827
|
v(() => {
|
|
@@ -9831,7 +9831,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9831
9831
|
let t = se(e)?.colField || R.value;
|
|
9832
9832
|
return ye(Z(e), t);
|
|
9833
9833
|
}, Ae = r(() => S.value > 0 ? !0 : ge.value ? _e.value.length > 0 : C.value.length > 0);
|
|
9834
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul",
|
|
9834
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul", Hu, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(ee)}-${n}` }, [I(J)(n) ? a("", !0) : (E(), o("li", Uu, [u(xs, {
|
|
9835
9835
|
label: I(oe)(n) || "",
|
|
9836
9836
|
showClear: !e.readOnly && (!ke(n) || I(xe)()),
|
|
9837
9837
|
disabled: e.readOnly,
|
|
@@ -9841,7 +9841,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9841
9841
|
"showClear",
|
|
9842
9842
|
"disabled",
|
|
9843
9843
|
"onHandleClose"
|
|
9844
|
-
])]))], 64))), 128))])) : a("", !0), u(I(
|
|
9844
|
+
])]))], 64))), 128))])) : a("", !0), u(I(Ys), {
|
|
9845
9845
|
modelValue: I(ne),
|
|
9846
9846
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null,
|
|
9847
9847
|
readOnly: e.readOnly,
|
|
@@ -9891,7 +9891,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9891
9891
|
onDropdownClosed: Oe,
|
|
9892
9892
|
onSeeMore: I(fe)
|
|
9893
9893
|
}, c({
|
|
9894
|
-
preferences: H(() => [s("div",
|
|
9894
|
+
preferences: H(() => [s("div", Gu, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(Ti), {
|
|
9895
9895
|
variant: "dark",
|
|
9896
9896
|
size: "sm",
|
|
9897
9897
|
"use-teleport": !0
|
|
@@ -9905,7 +9905,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9905
9905
|
content: H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
9906
9906
|
_: 1
|
|
9907
9907
|
})])]),
|
|
9908
|
-
suggestions: H(() => [s("div",
|
|
9908
|
+
suggestions: H(() => [s("div", Ku, [u(I(Ti), {
|
|
9909
9909
|
variant: "dark",
|
|
9910
9910
|
disableInteractive: !0,
|
|
9911
9911
|
position: "top-left",
|
|
@@ -9925,8 +9925,8 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9925
9925
|
I(re) || Ee.value || I(j) ? {
|
|
9926
9926
|
name: "header",
|
|
9927
9927
|
fn: H((t) => [
|
|
9928
|
-
I(j) ? (E(), o("p",
|
|
9929
|
-
Ee.value ? (E(), i(
|
|
9928
|
+
I(j) ? (E(), o("p", Wu, " Type " + P(I(A)) + " or more characters to search ", 1)) : a("", !0),
|
|
9929
|
+
Ee.value ? (E(), i(Vu, {
|
|
9930
9930
|
key: 1,
|
|
9931
9931
|
ref_key: "filterGroupMenuRef",
|
|
9932
9932
|
ref: g,
|
|
@@ -9947,7 +9947,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9947
9947
|
fn: H((e) => [(E(), i(M(I(ie)), b(p(e)), null, 16))]),
|
|
9948
9948
|
key: "2"
|
|
9949
9949
|
} : void 0
|
|
9950
|
-
]), 1032, /* @__PURE__ */ "modelValue.readOnly.disabled.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div",
|
|
9950
|
+
]), 1032, /* @__PURE__ */ "modelValue.readOnly.disabled.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div", qu, [I(B).length > 0 ? (E(), o("div", Ju, [s("ul", Yu, [u(I(Ti), {
|
|
9951
9951
|
variant: "dark",
|
|
9952
9952
|
disableInteractive: !0,
|
|
9953
9953
|
position: "bottom-left",
|
|
@@ -9955,20 +9955,20 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9955
9955
|
"use-teleport": !0,
|
|
9956
9956
|
style: { "--max-width": "200px" }
|
|
9957
9957
|
}, c({
|
|
9958
|
-
trigger: H(() => [s("li",
|
|
9958
|
+
trigger: H(() => [s("li", Xu, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(K) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
9959
9959
|
_: 2
|
|
9960
9960
|
}, [I(K) ? {
|
|
9961
9961
|
name: "content",
|
|
9962
9962
|
fn: H(() => [l(P(I(K)), 1)]),
|
|
9963
9963
|
key: "0"
|
|
9964
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(B).filter((e) => e !== "" && e != null).slice(0,
|
|
9964
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(B).filter((e) => e !== "" && e != null).slice(0, Zu), (e) => (E(), o("li", {
|
|
9965
9965
|
key: `${I(ee)}-${e}-suggest`,
|
|
9966
9966
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
9967
9967
|
style: {
|
|
9968
9968
|
"max-width": "100%",
|
|
9969
9969
|
"line-height": "1rem"
|
|
9970
9970
|
}
|
|
9971
|
-
}, [u(I(
|
|
9971
|
+
}, [u(I(js), {
|
|
9972
9972
|
disabled: I(w),
|
|
9973
9973
|
label: I(oe)(e) || "",
|
|
9974
9974
|
onHandleClick: (t) => I(le)(e, I(q)(I(R), e)?.colField)
|
|
@@ -9978,18 +9978,18 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
9978
9978
|
"onHandleClick"
|
|
9979
9979
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
9980
9980
|
}
|
|
9981
|
-
}), [["__scopeId", "data-v-1f71e32f"]]),
|
|
9981
|
+
}), [["__scopeId", "data-v-1f71e32f"]]), $u = { class: "pv-flex" }, ed = { class: "pv-flex" }, td = { class: "pv-flex pv-space-between pv-stack-8" }, nd = { class: "pv-text-title-lg" }, rd = {
|
|
9982
9982
|
id: "filter-vertical-drawer",
|
|
9983
9983
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
9984
9984
|
style: { height: "100%" }
|
|
9985
|
-
},
|
|
9985
|
+
}, id = { class: "pv-full-width" }, ad = ["open"], od = ["onClick"], sd = { class: "pv-text-title-lg" }, cd = { class: "pv-flex pv-space-between" }, ld = { class: "pv-flex" }, ud = {
|
|
9986
9986
|
class: "pv-flex",
|
|
9987
9987
|
style: {
|
|
9988
9988
|
"--flex-justify": "end",
|
|
9989
9989
|
"--flex-gap": "8px",
|
|
9990
9990
|
"margin-top": "auto"
|
|
9991
9991
|
}
|
|
9992
|
-
},
|
|
9992
|
+
}, dd = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
9993
9993
|
__name: "FilterPanel",
|
|
9994
9994
|
props: {
|
|
9995
9995
|
enableFocusView: {
|
|
@@ -10018,7 +10018,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10018
10018
|
},
|
|
10019
10019
|
emits: ["handle-settings-icon"],
|
|
10020
10020
|
setup(e) {
|
|
10021
|
-
let n = m(
|
|
10021
|
+
let n = m(qc, O(null)), c = m(Xc, O([])), d = m(Yc, O(null)), f = m(hl, O(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, filterValuesMap: x, fetchFilterValues: S, filterValuesLoadingStatus: C } = Nu(), w = O(!1), T = O(!1), D = O(""), A = r(() => c.value.flatMap((e) => jo(e))), j = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), M = (e) => {
|
|
10022
10022
|
let t = _.value;
|
|
10023
10023
|
if (!t) return !1;
|
|
10024
10024
|
let n = No(e) ? jo(e) : [e.field || ""];
|
|
@@ -10028,7 +10028,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10028
10028
|
}
|
|
10029
10029
|
let r = t;
|
|
10030
10030
|
return n.some((e) => !!r[e]);
|
|
10031
|
-
}, N = (e) => p.readOnly && !M(e), F = r(() => c.value.filter((e) =>
|
|
10031
|
+
}, N = (e) => p.readOnly && !M(e), F = r(() => c.value.filter((e) => su(e) && !A.value.includes(e.field || "") && !j.value.includes(e.field || "")).sort((e, t) => {
|
|
10032
10032
|
let n = No(e), r = No(t);
|
|
10033
10033
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
10034
10034
|
})), L = r(() => F.value), R = r(() => {
|
|
@@ -10072,7 +10072,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10072
10072
|
});
|
|
10073
10073
|
}
|
|
10074
10074
|
}
|
|
10075
|
-
}, { clearAllFocuses: U } =
|
|
10075
|
+
}, { clearAllFocuses: U } = Pl(), W = () => {
|
|
10076
10076
|
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, U(), T.value = !1);
|
|
10077
10077
|
}, G = () => {
|
|
10078
10078
|
w.value = !1, D.value = "";
|
|
@@ -10081,8 +10081,8 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10081
10081
|
}, ie = () => {
|
|
10082
10082
|
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, G();
|
|
10083
10083
|
};
|
|
10084
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
10085
|
-
(E(!0), o(t, null, k(ee.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(
|
|
10084
|
+
return (e, r) => (E(), o(t, null, [s("div", $u, [
|
|
10085
|
+
(E(!0), o(t, null, k(ee.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(Qu, {
|
|
10086
10086
|
key: 0,
|
|
10087
10087
|
"enable-focus-view": p.enableFocusView,
|
|
10088
10088
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -10099,7 +10099,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10099
10099
|
"read-only",
|
|
10100
10100
|
"disable-unselected"
|
|
10101
10101
|
])) : a("", !0)], 64))), 128)),
|
|
10102
|
-
s("div",
|
|
10102
|
+
s("div", ed, [p.enableVerticalPanel ? (E(), i(I(An), {
|
|
10103
10103
|
key: 0,
|
|
10104
10104
|
label: "All Filters",
|
|
10105
10105
|
onClick: V,
|
|
@@ -10119,7 +10119,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10119
10119
|
variant: "tertiary"
|
|
10120
10120
|
}, null, 8, ["value"])) : a("", !0)
|
|
10121
10121
|
])) : a("", !0)]),
|
|
10122
|
-
p.enableVerticalPanel ? (E(), i(I(
|
|
10122
|
+
p.enableVerticalPanel ? (E(), i(I(Bs), {
|
|
10123
10123
|
key: 0,
|
|
10124
10124
|
modelValue: w.value,
|
|
10125
10125
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
@@ -10131,7 +10131,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10131
10131
|
"z-index": "10"
|
|
10132
10132
|
}
|
|
10133
10133
|
}, {
|
|
10134
|
-
header: H(() => [s("div",
|
|
10134
|
+
header: H(() => [s("div", td, [s("p", nd, "All Filters (" + P(L.value.length) + ")", 1), s("button", {
|
|
10135
10135
|
class: "pv-button-ghost",
|
|
10136
10136
|
"aria-label": "Close",
|
|
10137
10137
|
onClick: r[2] ||= (e) => re()
|
|
@@ -10140,7 +10140,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10140
10140
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
10141
10141
|
placeholder: "Search Filters"
|
|
10142
10142
|
}, null, 8, ["modelValue"])]),
|
|
10143
|
-
footer: H(() => [s("div",
|
|
10143
|
+
footer: H(() => [s("div", cd, [p.readOnly ? (E(), i(I(An), {
|
|
10144
10144
|
key: 1,
|
|
10145
10145
|
variant: "ghost",
|
|
10146
10146
|
label: "Close",
|
|
@@ -10148,7 +10148,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10148
10148
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
10149
10149
|
class: "pv-button-ghost",
|
|
10150
10150
|
onClick: r[5] ||= (e) => W()
|
|
10151
|
-
}, "Clear All"), s("div",
|
|
10151
|
+
}, "Clear All"), s("div", ld, [u(I(An), {
|
|
10152
10152
|
variant: "ghost",
|
|
10153
10153
|
label: "Cancel",
|
|
10154
10154
|
onClick: r[6] ||= (e) => re()
|
|
@@ -10163,7 +10163,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10163
10163
|
label: "No Changes",
|
|
10164
10164
|
disabled: ""
|
|
10165
10165
|
}))])], 64))])]),
|
|
10166
|
-
default: H(() => [s("div",
|
|
10166
|
+
default: H(() => [s("div", rd, [s("div", id, [(E(!0), o(t, null, k(R.value, (t, c) => (E(), o("div", {
|
|
10167
10167
|
key: t.field,
|
|
10168
10168
|
class: y([{ "pv-border-bottom": c < R.value.length - 1 }, "pv-stack-12"])
|
|
10169
10169
|
}, [s("details", {
|
|
@@ -10172,7 +10172,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10172
10172
|
}, [s("summary", {
|
|
10173
10173
|
class: "pv-flex pv-full-width",
|
|
10174
10174
|
onClick: (e) => N(t) && e.preventDefault()
|
|
10175
|
-
}, [s("span",
|
|
10175
|
+
}, [s("span", sd, P(t.headerName), 1)], 8, od), s("div", null, [I(n) ? (E(), i(Qu, {
|
|
10176
10176
|
key: 0,
|
|
10177
10177
|
"filter-style": "vertical",
|
|
10178
10178
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -10190,17 +10190,17 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10190
10190
|
"focus-text",
|
|
10191
10191
|
"read-only",
|
|
10192
10192
|
"disable-unselected"
|
|
10193
|
-
])) : a("", !0)])], 10,
|
|
10193
|
+
])) : a("", !0)])], 10, ad)], 2))), 128))])])]),
|
|
10194
10194
|
_: 1
|
|
10195
10195
|
}, 8, ["modelValue"])) : a("", !0)
|
|
10196
|
-
]), u(I(
|
|
10196
|
+
]), u(I(Ds), {
|
|
10197
10197
|
modelValue: T.value,
|
|
10198
10198
|
"onUpdate:modelValue": r[12] ||= (e) => T.value = e,
|
|
10199
10199
|
header: "Clear All Filters",
|
|
10200
10200
|
style: { top: "50%" }
|
|
10201
10201
|
}, {
|
|
10202
10202
|
body: H(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
10203
|
-
footer: H(() => [s("div",
|
|
10203
|
+
footer: H(() => [s("div", ud, [u(I(An), {
|
|
10204
10204
|
label: "Cancel",
|
|
10205
10205
|
variant: "secondary",
|
|
10206
10206
|
size: "lg",
|
|
@@ -10214,14 +10214,14 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10214
10214
|
_: 1
|
|
10215
10215
|
}, 8, ["modelValue"])], 64));
|
|
10216
10216
|
}
|
|
10217
|
-
}), [["__scopeId", "data-v-91375005"]]),
|
|
10217
|
+
}), [["__scopeId", "data-v-91375005"]]), fd = { key: 2 }, pd = {
|
|
10218
10218
|
key: 0,
|
|
10219
10219
|
class: "pv-flex ag-header-actions"
|
|
10220
|
-
},
|
|
10220
|
+
}, md = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
10221
10221
|
__name: "HeaderCellRenderer",
|
|
10222
10222
|
props: { params: {} },
|
|
10223
10223
|
setup(e, { expose: t }) {
|
|
10224
|
-
let n = m(
|
|
10224
|
+
let n = m(Kc, O([])), c = m(Qc, O([])), l = e, d = O(!1), f = O(!1), p = O(null), h = O(null), g = O(null), _ = O(!1), v = r(() => {
|
|
10225
10225
|
let e = l.params.column.getColDef();
|
|
10226
10226
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
10227
10227
|
}), b = r(() => {
|
|
@@ -10297,12 +10297,12 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10297
10297
|
"modelValue",
|
|
10298
10298
|
"options",
|
|
10299
10299
|
"label"
|
|
10300
|
-
])) : (E(), o("p",
|
|
10300
|
+
])) : (E(), o("p", fd, P(p.value), 1)),
|
|
10301
10301
|
f.value && b.value !== "" ? (E(), i(En, {
|
|
10302
10302
|
key: 3,
|
|
10303
10303
|
name: b.value
|
|
10304
10304
|
}, null, 8, ["name"])) : a("", !0)
|
|
10305
|
-
], 6), v.value ? (E(), o("div",
|
|
10305
|
+
], 6), v.value ? (E(), o("div", pd, [s("div", {
|
|
10306
10306
|
ref_key: "menuButton",
|
|
10307
10307
|
ref: g,
|
|
10308
10308
|
class: "ag-header-cell-menu-button",
|
|
@@ -10315,7 +10315,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10315
10315
|
onClick: W(N, ["stop", "prevent"])
|
|
10316
10316
|
})], 4)])) : a("", !0)], 4));
|
|
10317
10317
|
}
|
|
10318
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
10318
|
+
}), [["__scopeId", "data-v-385ad98a"]]), hd = {
|
|
10319
10319
|
headerHeight: "30px",
|
|
10320
10320
|
headerBackgroundColor: "white",
|
|
10321
10321
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -10330,14 +10330,14 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10330
10330
|
rangeSelectionBorderStyle: "solid",
|
|
10331
10331
|
menuBackgroundColor: "white",
|
|
10332
10332
|
accentColor: "#36C5BA"
|
|
10333
|
-
},
|
|
10334
|
-
...
|
|
10333
|
+
}, gd = Me.withParams({
|
|
10334
|
+
...hd,
|
|
10335
10335
|
headerRowBorder: !0,
|
|
10336
10336
|
rowHoverColor: "#F7F8F8",
|
|
10337
10337
|
wrapperBorder: !0,
|
|
10338
10338
|
wrapperBorderRadius: "8px"
|
|
10339
|
-
}),
|
|
10340
|
-
...
|
|
10339
|
+
}), _d = Me.withParams({
|
|
10340
|
+
...hd,
|
|
10341
10341
|
headerRowBorder: !1,
|
|
10342
10342
|
rowHoverColor: "transparent",
|
|
10343
10343
|
wrapperBorder: !1,
|
|
@@ -10345,20 +10345,20 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10345
10345
|
rowBorder: !1,
|
|
10346
10346
|
columnBorder: !1,
|
|
10347
10347
|
rowHeight: "50px"
|
|
10348
|
-
}),
|
|
10349
|
-
"pv-data-table-base":
|
|
10348
|
+
}), vd = {
|
|
10349
|
+
"pv-data-table-base": gd,
|
|
10350
10350
|
"pv-data-table-grouped": Me.withParams({
|
|
10351
|
-
...
|
|
10351
|
+
...hd,
|
|
10352
10352
|
headerRowBorder: !0,
|
|
10353
10353
|
rowHoverColor: "#F7F8F8",
|
|
10354
10354
|
wrapperBorder: !0,
|
|
10355
10355
|
wrapperBorderRadius: "8px"
|
|
10356
10356
|
}),
|
|
10357
|
-
"pv-data-table-grouped-card":
|
|
10358
|
-
},
|
|
10357
|
+
"pv-data-table-grouped-card": _d
|
|
10358
|
+
}, yd = { class: "pv-popover-menu" }, bd = {
|
|
10359
10359
|
class: "pv-popover",
|
|
10360
10360
|
style: { "--height": "auto" }
|
|
10361
|
-
},
|
|
10361
|
+
}, xd = ["disabled"], Sd = /* @__PURE__ */ d({
|
|
10362
10362
|
__name: "ExportMenu",
|
|
10363
10363
|
props: { getCsvData: { type: Function } },
|
|
10364
10364
|
setup(e) {
|
|
@@ -10373,27 +10373,27 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10373
10373
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
10374
10374
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
10375
10375
|
}
|
|
10376
|
-
return (e, n) => (E(), o("nav",
|
|
10376
|
+
return (e, n) => (E(), o("nav", yd, [n[0] ||= s("button", {
|
|
10377
10377
|
type: "button",
|
|
10378
10378
|
class: "pv-button-icon"
|
|
10379
10379
|
}, [s("svg", {
|
|
10380
10380
|
"aria-hidden": "true",
|
|
10381
10381
|
class: "pv-icon-24"
|
|
10382
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
10382
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", bd, [s("button", {
|
|
10383
10383
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
10384
10384
|
onClick: W(i, ["prevent"]),
|
|
10385
10385
|
disabled: r.value
|
|
10386
|
-
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
10386
|
+
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, xd)])]));
|
|
10387
10387
|
}
|
|
10388
|
-
}),
|
|
10388
|
+
}), Cd = {
|
|
10389
10389
|
key: 1,
|
|
10390
10390
|
class: ""
|
|
10391
|
-
},
|
|
10391
|
+
}, wd = /* @__PURE__ */ d({
|
|
10392
10392
|
__name: "PaginationPanel",
|
|
10393
10393
|
props: { panelSize: { default: "xl" } },
|
|
10394
10394
|
setup(e) {
|
|
10395
10395
|
Se.registerModules([X]);
|
|
10396
|
-
let n = m(
|
|
10396
|
+
let n = m(qc, O(null)), a = m(rl, O(1)), s = m(il, O(0)), c = e, l = r(() => {
|
|
10397
10397
|
let e = s.value, t = a.value;
|
|
10398
10398
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
10399
10399
|
let n = [];
|
|
@@ -10425,7 +10425,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10425
10425
|
"size",
|
|
10426
10426
|
"onClick",
|
|
10427
10427
|
"label"
|
|
10428
|
-
])) : (E(), o("span",
|
|
10428
|
+
])) : (E(), o("span", Cd, "..."))], 64))), 128)),
|
|
10429
10429
|
u(An, {
|
|
10430
10430
|
variant: "ghost",
|
|
10431
10431
|
onClick: f,
|
|
@@ -10436,10 +10436,10 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10436
10436
|
}, null, 8, ["disabled", "size"])
|
|
10437
10437
|
], 2));
|
|
10438
10438
|
}
|
|
10439
|
-
}),
|
|
10439
|
+
}), Td = {
|
|
10440
10440
|
key: 0,
|
|
10441
10441
|
class: "pv-tag"
|
|
10442
|
-
},
|
|
10442
|
+
}, Ed = /* @__PURE__ */ d({
|
|
10443
10443
|
__name: "TagCellRenderer",
|
|
10444
10444
|
props: { params: {} },
|
|
10445
10445
|
setup(e) {
|
|
@@ -10447,12 +10447,12 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10447
10447
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
10448
10448
|
return e.trim() === "" ? null : e;
|
|
10449
10449
|
});
|
|
10450
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
10450
|
+
return (e, t) => n.value ? (E(), o("div", Td, P(n.value), 1)) : a("", !0);
|
|
10451
10451
|
}
|
|
10452
|
-
}),
|
|
10452
|
+
}), Dd = {
|
|
10453
10453
|
key: 0,
|
|
10454
10454
|
class: "pv-table-row-number"
|
|
10455
|
-
},
|
|
10455
|
+
}, Od = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
10456
10456
|
__name: "RowCountCellRenderer",
|
|
10457
10457
|
props: { params: {} },
|
|
10458
10458
|
setup(e) {
|
|
@@ -10460,16 +10460,16 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10460
10460
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
10461
10461
|
return e && ko(e) ? n.toLocaleString() : n;
|
|
10462
10462
|
});
|
|
10463
|
-
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span",
|
|
10463
|
+
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span", Dd, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
10464
10464
|
}
|
|
10465
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
10465
|
+
}), [["__scopeId", "data-v-686928ce"]]), kd = /* @__PURE__ */ d({
|
|
10466
10466
|
__name: "TableSearch",
|
|
10467
10467
|
props: {
|
|
10468
10468
|
placeholder: {},
|
|
10469
10469
|
searchStyle: {}
|
|
10470
10470
|
},
|
|
10471
10471
|
setup(e) {
|
|
10472
|
-
let t = e, n = O(null), r = O(""), a = O([]), o = O(!1), s = m(
|
|
10472
|
+
let t = e, n = O(null), r = O(""), a = O([]), o = O(!1), s = m(qc, O(null)), c = m(hl, O(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = Nu(), p = (e) => {
|
|
10473
10473
|
!s?.value || typeof s.value.setGridOption != "function" || (l.value ? console.error("Server-side filtering with table free text search is not yet supported.") : s.value.setGridOption("quickFilterText", e));
|
|
10474
10474
|
}, h = (e) => {
|
|
10475
10475
|
if (s?.value) {
|
|
@@ -10477,7 +10477,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10477
10477
|
console.error("Client-side filtering with query builder is not yet supported");
|
|
10478
10478
|
return;
|
|
10479
10479
|
}
|
|
10480
|
-
f(c.value ?
|
|
10480
|
+
f(c.value ? nu(e) : tu(e));
|
|
10481
10481
|
}
|
|
10482
10482
|
}, g = async (e) => {
|
|
10483
10483
|
if (!e || e.length < 2) {
|
|
@@ -10511,7 +10511,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10511
10511
|
debounce: 300,
|
|
10512
10512
|
immediate: !0,
|
|
10513
10513
|
deep: !0
|
|
10514
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(
|
|
10514
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(Uc, {
|
|
10515
10515
|
key: 0,
|
|
10516
10516
|
placeholder: e.placeholder,
|
|
10517
10517
|
"search-text": r.value,
|
|
@@ -10534,28 +10534,28 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10534
10534
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
10535
10535
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
10536
10536
|
}
|
|
10537
|
-
}),
|
|
10537
|
+
}), Ad = {
|
|
10538
10538
|
style: {
|
|
10539
10539
|
"background-color": "white",
|
|
10540
10540
|
"max-width": "300px"
|
|
10541
10541
|
},
|
|
10542
10542
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
10543
|
-
},
|
|
10543
|
+
}, jd = { style: { color: "black" } }, Md = /* @__PURE__ */ d({
|
|
10544
10544
|
__name: "TableTooltip",
|
|
10545
10545
|
props: { params: {} },
|
|
10546
10546
|
setup(e) {
|
|
10547
|
-
return (t, n) => (E(), o("div",
|
|
10547
|
+
return (t, n) => (E(), o("div", Ad, [s("p", jd, P(e.params.value), 1)]));
|
|
10548
10548
|
}
|
|
10549
|
-
}),
|
|
10549
|
+
}), Nd = { class: "pv-stack-16" }, Pd = { class: "pv-flex pv-space-between" }, Fd = { class: "pv-flex" }, Id = { style: {
|
|
10550
10550
|
width: "30%",
|
|
10551
10551
|
"max-width": "50%"
|
|
10552
|
-
} },
|
|
10552
|
+
} }, Ld = {
|
|
10553
10553
|
key: 0,
|
|
10554
10554
|
class: "pv-table-overlay"
|
|
10555
|
-
},
|
|
10555
|
+
}, Rd = {
|
|
10556
10556
|
class: "pv-text-body-xs pv-text-center",
|
|
10557
10557
|
style: { "padding-top": "16px" }
|
|
10558
|
-
},
|
|
10558
|
+
}, zd = /* @__PURE__ */ d({
|
|
10559
10559
|
__name: "PvDataTable",
|
|
10560
10560
|
props: {
|
|
10561
10561
|
allFieldsAreFocusable: {
|
|
@@ -10784,7 +10784,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10784
10784
|
let p = r(() => f.layout ? {} : {
|
|
10785
10785
|
height: f.containerHeight,
|
|
10786
10786
|
minHeight: f.containerMinHeight
|
|
10787
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme :
|
|
10787
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme : vd[g.value]), T = c, k = O(!1), j = (e) => {
|
|
10788
10788
|
let t = jo(e), n = e.context;
|
|
10789
10789
|
return Array.from(new Set([
|
|
10790
10790
|
...t,
|
|
@@ -10792,9 +10792,9 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10792
10792
|
...t.flatMap((e) => G.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
10793
10793
|
]));
|
|
10794
10794
|
}, M = (e, t) => {
|
|
10795
|
-
if (
|
|
10795
|
+
if (au(e, t)) return !0;
|
|
10796
10796
|
let n = G.find((e) => Mo(e) === t);
|
|
10797
|
-
return !!n && j(n).some((t) =>
|
|
10797
|
+
return !!n && j(n).some((t) => au(e, t));
|
|
10798
10798
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
10799
10799
|
if (!J.value) {
|
|
10800
10800
|
e.success({ rowData: [] }), q.value = !0;
|
|
@@ -10828,7 +10828,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10828
10828
|
filter: t.bucketMax
|
|
10829
10829
|
}]
|
|
10830
10830
|
};
|
|
10831
|
-
n =
|
|
10831
|
+
n = vu(n, i, e);
|
|
10832
10832
|
}
|
|
10833
10833
|
}), n && (e.request.filterModel = n);
|
|
10834
10834
|
} else {
|
|
@@ -10864,7 +10864,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10864
10864
|
} : e.request.filterModel = s;
|
|
10865
10865
|
} else {
|
|
10866
10866
|
let t = e.request.filterModel;
|
|
10867
|
-
e.request.filterModel =
|
|
10867
|
+
e.request.filterModel = ou(G, t, s);
|
|
10868
10868
|
}
|
|
10869
10869
|
e.success = (e) => {
|
|
10870
10870
|
if (oe.value = !1, f.enableFocusView && ct.value.length > 0 && st.value && e.rowData) {
|
|
@@ -10880,7 +10880,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10880
10880
|
}, f.serverSideRowHandler?.(e);
|
|
10881
10881
|
} } : null, L = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
10882
10882
|
let t = [], n = { ...Ze.value };
|
|
10883
|
-
t = !q.value && ie ?
|
|
10883
|
+
t = !q.value && ie ? Su(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await rt(e.colDef, {
|
|
10884
10884
|
api: e.api,
|
|
10885
10885
|
filterModel: n,
|
|
10886
10886
|
useStaged: !1
|
|
@@ -10899,19 +10899,19 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10899
10899
|
suppressColumnsToolPanel: !0,
|
|
10900
10900
|
minWidth: 150,
|
|
10901
10901
|
flex: 1,
|
|
10902
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
10902
|
+
headerComponent: f.enableInlineFilters ? void 0 : md,
|
|
10903
10903
|
cellDataType: !1,
|
|
10904
|
-
tooltipComponent:
|
|
10904
|
+
tooltipComponent: Md,
|
|
10905
10905
|
cellClass: (e) => bt(e.column) ? "" : ko(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
10906
10906
|
cellRendererSelector: (e) => {
|
|
10907
10907
|
if (R(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
10908
|
-
component:
|
|
10908
|
+
component: ql,
|
|
10909
10909
|
params: e
|
|
10910
10910
|
};
|
|
10911
10911
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
10912
10912
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
10913
10913
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
10914
|
-
component:
|
|
10914
|
+
component: Od,
|
|
10915
10915
|
params: e
|
|
10916
10916
|
};
|
|
10917
10917
|
}
|
|
@@ -10947,21 +10947,21 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10947
10947
|
let t = e.headerValueGetter;
|
|
10948
10948
|
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 || "";
|
|
10949
10949
|
}
|
|
10950
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === bo.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === bo.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === bo.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === bo.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
10950
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === bo.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === bo.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === bo.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === bo.Tag && !e.cellRenderer && (n.cellRenderer = Ed), n;
|
|
10951
10951
|
}, G = f.colDefs?.map((e) => {
|
|
10952
10952
|
let t = { ...e };
|
|
10953
|
-
F && L &&
|
|
10953
|
+
F && L && su(e) && (t = cu(e, L));
|
|
10954
10954
|
let n = e.context;
|
|
10955
10955
|
return n && (t = W(t, n)), t;
|
|
10956
10956
|
}).filter((e) => e != null) || [], re = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
10957
10957
|
for (let e of G) for (let t of jo(e)) re.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
10958
|
-
let ie =
|
|
10958
|
+
let ie = eu(f.initialGridState, G, f.enableAdvancedFilter), ae = O(null), K = O([]), q = m(tl, O(!1)), oe = O(!1), se = r(() => {
|
|
10959
10959
|
if (K.value.length > 0) {
|
|
10960
10960
|
let e = K.value[0], t = G.find((t) => t.field === e), n = Ze.value, r = !n;
|
|
10961
|
-
if (!r &&
|
|
10961
|
+
if (!r && Ou(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
10962
10962
|
}
|
|
10963
10963
|
return null;
|
|
10964
|
-
}), J = r(() => Se.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : se.value === null), ce = r(() => se.value ? `Select at least one value for "${se.value}" to view data.` : "Select a filter to view data."), Y = N(null), X = O([]), Se = f.filterStore ||
|
|
10964
|
+
}), J = r(() => Se.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : se.value === null), ce = r(() => se.value ? `Select at least one value for "${se.value}" to view data.` : "Select a filter to view data."), Y = N(null), X = O([]), Se = f.filterStore || Nu(), Me = m(Gc, null), Xe = Me || Nl(null, f.allFieldsAreFocusable), Ze = Se.filterModel, Qe = Se.tableSearchFilterModel, $e = Se.filterValueMap, et = Se.filterValuesMap, nt = Se.filterValueSelectedMetadataMap, rt = Se.fetchFilterValues, it = Se.filterStoreHandler, at = Se.tableSearchHandler;
|
|
10965
10965
|
if (it.value = f.filterValuesSetHandler, it.value) {
|
|
10966
10966
|
let e = (e) => ({
|
|
10967
10967
|
hasMore: Se.filterHasMoreMap.value[e],
|
|
@@ -10990,7 +10990,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
10990
10990
|
debounce: 250
|
|
10991
10991
|
});
|
|
10992
10992
|
let ot = O(null), st = r(() => Xe?.computedFocusType.value || null), ct = r(() => Xe?.computedFocuses.value || []), lt = r(() => G.filter((e) => e.filter)), ut = r(() => G.filter((e) => e.enableRowGroup)), dt = r(() => G.filter((e) => e.aggFunc)), ft = O(null), pt = O({}), mt = O(1), ht = O(0);
|
|
10993
|
-
D(
|
|
10993
|
+
D(Wc, Se), D(Gc, Xe), D(Kc, X), D(qc, Y), D(Jc, ot), D(Yc, ae), D(Xc, lt), D(Zc, ut), D(Qc, K), D($c, ft), D(el, pt), D(tl, q), D(nl, oe), D(rl, mt), D(il, ht), D(hl, r(() => f.enableAdvancedFilter));
|
|
10994
10994
|
let gt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ct.value.length && !st.value ? f.rowData : To(f.rowData, st.value, ct.value));
|
|
10995
10995
|
V(() => ct.value, (e) => {
|
|
10996
10996
|
T("focus-update", {
|
|
@@ -11013,7 +11013,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11013
11013
|
}, vt = (e) => {
|
|
11014
11014
|
if (Y.value) {
|
|
11015
11015
|
let t = Tt();
|
|
11016
|
-
|
|
11016
|
+
_u(Ze.value, t) || (Ze.value = t, T("filter-changed", e));
|
|
11017
11017
|
}
|
|
11018
11018
|
}, yt = (e) => {
|
|
11019
11019
|
X.value = e.api?.getState()?.sort?.sortModel || [], q.value && T("sort-changed", e);
|
|
@@ -11094,10 +11094,10 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11094
11094
|
}, Tt = () => Y.value ? f.enableAdvancedFilter ? Y.value.getAdvancedFilterModel() : Y.value.getFilterModel() : Ze.value, At = (e) => {
|
|
11095
11095
|
if (!Y.value) return !1;
|
|
11096
11096
|
if (f.enableAdvancedFilter) {
|
|
11097
|
-
let t = e &&
|
|
11097
|
+
let t = e && Ou(e) ? $l(e) : e;
|
|
11098
11098
|
Y.value.setAdvancedFilterModel(t);
|
|
11099
11099
|
} else {
|
|
11100
|
-
if (e && !
|
|
11100
|
+
if (e && !Ou(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;
|
|
11101
11101
|
Y.value.setFilterModel(e);
|
|
11102
11102
|
}
|
|
11103
11103
|
return !0;
|
|
@@ -11153,7 +11153,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11153
11153
|
if (e) return e.click(), !0;
|
|
11154
11154
|
}
|
|
11155
11155
|
return !1;
|
|
11156
|
-
}, Bt = O(
|
|
11156
|
+
}, Bt = O(kl), Vt = O({ loadingMessage: "One moment please..." }), Ht = O((() => {
|
|
11157
11157
|
let e = {
|
|
11158
11158
|
headerName: "",
|
|
11159
11159
|
minWidth: 200,
|
|
@@ -11163,7 +11163,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11163
11163
|
headerComponent: void 0,
|
|
11164
11164
|
cellRendererParams: {
|
|
11165
11165
|
suppressCount: !0,
|
|
11166
|
-
innerRenderer:
|
|
11166
|
+
innerRenderer: Ul,
|
|
11167
11167
|
innerRendererParams: (e) => ({
|
|
11168
11168
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
11169
11169
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -11182,7 +11182,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11182
11182
|
Ht.value.headerName = "", Ht.value.headerComponent = void 0, Ht.value.context = null, Ht.value.sortable = !1, Ht.value.filter = void 0, Ht.value.enableRowGroup = void 0;
|
|
11183
11183
|
return;
|
|
11184
11184
|
}
|
|
11185
|
-
Ht.value.field = e.field, Ht.value.headerName = e.headerName, Ht.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
11185
|
+
Ht.value.field = e.field, Ht.value.headerName = e.headerName, Ht.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : md), Ht.value.context = { dataType: e.context?.dataType || null }, Ht.value.sortable = e.sortable, Ht.value.filter = e.filter, Ht.value.enableRowGroup = e.enableRowGroup, Ht.value.onCellClicked = e.onCellClicked;
|
|
11186
11186
|
}, Wt = (e) => {
|
|
11187
11187
|
if (e.node.group) return {
|
|
11188
11188
|
backgroundColor: "#F7F8F8",
|
|
@@ -11192,12 +11192,12 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11192
11192
|
let t = e.values;
|
|
11193
11193
|
if (e.rowNode.leafGroup) return {
|
|
11194
11194
|
values: t,
|
|
11195
|
-
value:
|
|
11195
|
+
value: Wl(t)
|
|
11196
11196
|
};
|
|
11197
11197
|
let n = e.values.flatMap((e) => e.values || []);
|
|
11198
11198
|
return {
|
|
11199
11199
|
values: n,
|
|
11200
|
-
value:
|
|
11200
|
+
value: Wl(n)
|
|
11201
11201
|
};
|
|
11202
11202
|
} };
|
|
11203
11203
|
S(() => {
|
|
@@ -11217,11 +11217,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11217
11217
|
let t = Y.value;
|
|
11218
11218
|
if (!t) return;
|
|
11219
11219
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
11220
|
-
n && !
|
|
11220
|
+
n && !_u(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !tt(r, K.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
11221
11221
|
};
|
|
11222
11222
|
V(() => f.initialGridState, () => {
|
|
11223
11223
|
if (f.initialGridState) {
|
|
11224
|
-
let e =
|
|
11224
|
+
let e = eu(f.initialGridState, G, f.enableAdvancedFilter);
|
|
11225
11225
|
e && Kt(e);
|
|
11226
11226
|
}
|
|
11227
11227
|
}, { deep: !0 });
|
|
@@ -11254,10 +11254,10 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11254
11254
|
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
11255
11255
|
_: 1
|
|
11256
11256
|
})) : a("", !0),
|
|
11257
|
-
U(s("div",
|
|
11257
|
+
U(s("div", Nd, [s("div", Pd, [(E(), i(n, {
|
|
11258
11258
|
to: e.filterTeleportLocation,
|
|
11259
11259
|
disabled: !e.filterTeleportLocation
|
|
11260
|
-
}, [lt.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
11260
|
+
}, [lt.value.length > 0 && !f.enableInlineFilters ? (E(), i(dd, {
|
|
11261
11261
|
key: 0,
|
|
11262
11262
|
"enable-focus-view": e.enableFocusView,
|
|
11263
11263
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -11277,11 +11277,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11277
11277
|
"max-horizontal-filters",
|
|
11278
11278
|
"read-only",
|
|
11279
11279
|
"disable-unselected-filters"
|
|
11280
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
11280
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", Fd, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Tl, {
|
|
11281
11281
|
key: 0,
|
|
11282
11282
|
rowGroupLimit: e.rowGroupLimit,
|
|
11283
11283
|
enableFocusView: e.enableFocusView
|
|
11284
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
11284
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Sd, {
|
|
11285
11285
|
key: 1,
|
|
11286
11286
|
getCsvData: wt
|
|
11287
11287
|
})) : a("", !0)])])], 512), [[ne, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
@@ -11293,7 +11293,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11293
11293
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
11294
11294
|
key: 1,
|
|
11295
11295
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
11296
|
-
}, [s("div",
|
|
11296
|
+
}, [s("div", Id, [e.enableTableSearch ? (E(), i(kd, {
|
|
11297
11297
|
key: 0,
|
|
11298
11298
|
placeholder: e.tableSearchPlaceholder,
|
|
11299
11299
|
disabled: !J.value,
|
|
@@ -11389,14 +11389,14 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11389
11389
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
11390
11390
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
11391
11391
|
advancedFilterParent: Zt.value
|
|
11392
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !J.value ? (E(), o("div",
|
|
11393
|
-
e.pagination ? (E(), i(
|
|
11392
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !J.value ? (E(), o("div", Ld, [s("p", Rd, P(ce.value), 1)])) : a("", !0)], 2),
|
|
11393
|
+
e.pagination ? (E(), i(wd, { key: 2 })) : a("", !0)
|
|
11394
11394
|
], 4));
|
|
11395
11395
|
}
|
|
11396
|
-
}),
|
|
11396
|
+
}), Bd = {
|
|
11397
11397
|
class: "pv-flex",
|
|
11398
11398
|
style: { "white-space": "nowrap" }
|
|
11399
|
-
},
|
|
11399
|
+
}, Vd = { class: "pv-text-body-md" }, Hd = /* @__PURE__ */ d({
|
|
11400
11400
|
inheritAttrs: !1,
|
|
11401
11401
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
11402
11402
|
props: {
|
|
@@ -11405,16 +11405,16 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11405
11405
|
context: {}
|
|
11406
11406
|
},
|
|
11407
11407
|
setup(e) {
|
|
11408
|
-
return (t, n) => (E(), o("div",
|
|
11408
|
+
return (t, n) => (E(), o("div", Bd, [s("span", Vd, P(e.text), 1), e.context?.rightIcon ? (E(), i(En, {
|
|
11409
11409
|
key: 0,
|
|
11410
11410
|
name: e.context.rightIcon,
|
|
11411
11411
|
class: "pv-text-subdued"
|
|
11412
11412
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
11413
11413
|
}
|
|
11414
|
-
}),
|
|
11414
|
+
}), Ud = { class: "pv-relative" }, Wd = {
|
|
11415
11415
|
role: "list",
|
|
11416
11416
|
class: "pv-relative"
|
|
11417
|
-
},
|
|
11417
|
+
}, Gd = ["data-active"], Kd = { style: { cursor: "pointer" } }, qd = { role: "list" }, Jd = /* @__PURE__ */ d({
|
|
11418
11418
|
__name: "PvTableOptionsPanel",
|
|
11419
11419
|
props: {
|
|
11420
11420
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -11422,7 +11422,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11422
11422
|
},
|
|
11423
11423
|
emits: ["toggle-group", "table-overlay-change"],
|
|
11424
11424
|
setup(e, { emit: n }) {
|
|
11425
|
-
let i = e, c = n, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
11425
|
+
let i = e, c = n, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = Iu({
|
|
11426
11426
|
alignment: "top",
|
|
11427
11427
|
popoverCssProperties: {
|
|
11428
11428
|
maxWidth: "300px",
|
|
@@ -11449,13 +11449,13 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11449
11449
|
}, C = () => {
|
|
11450
11450
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
11451
11451
|
};
|
|
11452
|
-
return (n, r) => (E(), o(t, null, [U((E(), o("div",
|
|
11452
|
+
return (n, r) => (E(), o(t, null, [U((E(), o("div", Ud, [u(da, {
|
|
11453
11453
|
open: m.value,
|
|
11454
11454
|
label: "Table Configuration",
|
|
11455
11455
|
icon: "settings",
|
|
11456
11456
|
onClick: r[0] ||= (e) => m.value = !m.value,
|
|
11457
11457
|
onHandleToggleDropdown: r[1] ||= (e) => h.value = !1
|
|
11458
|
-
}, null, 8, ["open"]), u(
|
|
11458
|
+
}, null, 8, ["open"]), u(hs, {
|
|
11459
11459
|
class: y({ "pv-hide": !m.value }),
|
|
11460
11460
|
"css-custom-properties": {
|
|
11461
11461
|
minWidth: "240px",
|
|
@@ -11470,7 +11470,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11470
11470
|
"padding-top": "4px",
|
|
11471
11471
|
"padding-bottom": "12px"
|
|
11472
11472
|
}
|
|
11473
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
11473
|
+
}, " Table Configuration ")], -1), s("ul", Wd, [v.value ? (E(), o("li", {
|
|
11474
11474
|
key: 0,
|
|
11475
11475
|
id: "table-config-overlay",
|
|
11476
11476
|
"data-active": h.value ? !0 : null,
|
|
@@ -11483,7 +11483,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11483
11483
|
text: "Table Overlay",
|
|
11484
11484
|
icon: "layers-2",
|
|
11485
11485
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
11486
|
-
}, null, 8, ["class-list"])], 40,
|
|
11486
|
+
}, null, 8, ["class-list"])], 40, Gd)) : a("", !0), s("li", Kd, [u(Ja, {
|
|
11487
11487
|
config: { variant: "icon" },
|
|
11488
11488
|
id: "table-config-group-toggle",
|
|
11489
11489
|
class: "pv-text-subdued",
|
|
@@ -11492,7 +11492,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11492
11492
|
onHandleSelected: S
|
|
11493
11493
|
}, null, 8, ["text", "icon"])])])]),
|
|
11494
11494
|
_: 1
|
|
11495
|
-
}, 8, ["class"])])), [[I(Y), [x, { ignore: [".pv-popover"] }]]]), u(
|
|
11495
|
+
}, 8, ["class"])])), [[I(Y), [x, { ignore: [".pv-popover"] }]]]), u(hs, {
|
|
11496
11496
|
ref_key: "nestedMenuPopoverRef",
|
|
11497
11497
|
ref: g,
|
|
11498
11498
|
class: y({ "pv-hide": !(m.value && h.value) }),
|
|
@@ -11503,11 +11503,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11503
11503
|
},
|
|
11504
11504
|
isList: !0
|
|
11505
11505
|
}, {
|
|
11506
|
-
default: H(() => [s("ul",
|
|
11506
|
+
default: H(() => [s("ul", qd, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(Ja, {
|
|
11507
11507
|
id: e.id,
|
|
11508
11508
|
config: {
|
|
11509
11509
|
variant: "checkbox",
|
|
11510
|
-
renderer:
|
|
11510
|
+
renderer: Hd
|
|
11511
11511
|
},
|
|
11512
11512
|
text: e.text,
|
|
11513
11513
|
context: e.context,
|
|
@@ -11524,13 +11524,13 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11524
11524
|
_: 1
|
|
11525
11525
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
11526
11526
|
}
|
|
11527
|
-
}),
|
|
11527
|
+
}), Yd = ["id"], Xd = {
|
|
11528
11528
|
key: 0,
|
|
11529
11529
|
class: "sort-divider-container"
|
|
11530
|
-
},
|
|
11530
|
+
}, Zd = ["data-label"], Qd = ["onDrop"], $d = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, ef = { class: "pv-text-body-sm pv-text-tertiary" }, tf = { class: "pv-flex pv-full-width pv-sort-option" }, nf = { class: "pv-text-body-sm" }, rf = {
|
|
11531
11531
|
key: 1,
|
|
11532
11532
|
class: "pv-button-placeholder"
|
|
11533
|
-
},
|
|
11533
|
+
}, af = "--divider--", of = "placeholder-", sf = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
11534
11534
|
__name: "PvSortableList",
|
|
11535
11535
|
props: /* @__PURE__ */ g({
|
|
11536
11536
|
options: { default: () => [] },
|
|
@@ -11550,11 +11550,11 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11550
11550
|
emits: ["update:modelValue"],
|
|
11551
11551
|
setup(e) {
|
|
11552
11552
|
let n = e, c = R(e, "modelValue"), l = {
|
|
11553
|
-
id:
|
|
11553
|
+
id: af,
|
|
11554
11554
|
text: "",
|
|
11555
11555
|
disabled: !0
|
|
11556
11556
|
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
11557
|
-
id: `${
|
|
11557
|
+
id: `${of}${t}`,
|
|
11558
11558
|
text: "",
|
|
11559
11559
|
disabled: !0,
|
|
11560
11560
|
isPlaceholder: !0
|
|
@@ -11568,20 +11568,20 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11568
11568
|
];
|
|
11569
11569
|
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
11570
11570
|
if (!m.value) return;
|
|
11571
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
11571
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === af);
|
|
11572
11572
|
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
11573
11573
|
};
|
|
11574
11574
|
w(() => {
|
|
11575
11575
|
m.value && (g = new nt(m.value, {
|
|
11576
11576
|
animation: 200,
|
|
11577
|
-
filter: `#${
|
|
11577
|
+
filter: `#${af}, [id^="placeholder-"]`,
|
|
11578
11578
|
dragoverBubble: !0,
|
|
11579
11579
|
onStart: (e) => {
|
|
11580
11580
|
_ = e.item;
|
|
11581
11581
|
},
|
|
11582
11582
|
onMove: (e) => {
|
|
11583
11583
|
let t = e.related;
|
|
11584
|
-
if (t?.id ===
|
|
11584
|
+
if (t?.id === af || t?.id?.startsWith("placeholder-")) return !1;
|
|
11585
11585
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
11586
11586
|
return r && D(r);
|
|
11587
11587
|
},
|
|
@@ -11629,20 +11629,20 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11629
11629
|
key: e.id,
|
|
11630
11630
|
id: e.id,
|
|
11631
11631
|
class: "pv-stack-4"
|
|
11632
|
-
}, [e.id ===
|
|
11632
|
+
}, [e.id === af ? (E(), o("div", Xd, [s("div", {
|
|
11633
11633
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
11634
11634
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
11635
|
-
}, null, 8,
|
|
11635
|
+
}, null, 8, Zd)])) : e.id.includes(of) ? (E(), o("div", {
|
|
11636
11636
|
key: 1,
|
|
11637
11637
|
class: "placeholder-zone",
|
|
11638
11638
|
onDragover: r[0] ||= (e) => b(e),
|
|
11639
11639
|
onDragleave: r[1] ||= (e) => S(e),
|
|
11640
11640
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
11641
|
-
}, [s("div",
|
|
11641
|
+
}, [s("div", $d, [s("span", ef, P(n.placeholderText), 1)])], 40, Qd)) : (E(), o("div", {
|
|
11642
11642
|
key: 2,
|
|
11643
11643
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
11644
11644
|
style: x(M(e))
|
|
11645
|
-
}, [s("div",
|
|
11645
|
+
}, [s("div", tf, [
|
|
11646
11646
|
u(En, {
|
|
11647
11647
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
11648
11648
|
name: "reorder"
|
|
@@ -11652,8 +11652,8 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11652
11652
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
11653
11653
|
name: e.icon
|
|
11654
11654
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
11655
|
-
s("span",
|
|
11656
|
-
]), j(e) ? (E(), o("div",
|
|
11655
|
+
s("span", nf, P(e.text), 1)
|
|
11656
|
+
]), j(e) ? (E(), o("div", rf)) : (E(), i(An, {
|
|
11657
11657
|
key: 0,
|
|
11658
11658
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
11659
11659
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -11665,16 +11665,16 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11665
11665
|
"ariaLabel",
|
|
11666
11666
|
"style",
|
|
11667
11667
|
"onClick"
|
|
11668
|
-
]))], 6))], 8,
|
|
11668
|
+
]))], 6))], 8, Yd))), 128))], 512)], 512));
|
|
11669
11669
|
}
|
|
11670
|
-
}), [["__scopeId", "data-v-34615cd0"]]),
|
|
11670
|
+
}), [["__scopeId", "data-v-34615cd0"]]), cf = (e) => e.field === "state" || $(e).dataType === bo.Location, lf = (e) => e, uf = (e, t, n) => {
|
|
11671
11671
|
if (!n || t.length === 0) return e;
|
|
11672
11672
|
let r = new Set(n(t).map((e) => e.field));
|
|
11673
11673
|
return e.filter((e) => r.has(e));
|
|
11674
|
-
},
|
|
11674
|
+
}, df = (e) => e.filter((e) => !ko(e)), ff = (e) => e.filter((e) => ko(e)), pf = {
|
|
11675
11675
|
xAxis: {
|
|
11676
11676
|
selectMode: "sortable",
|
|
11677
|
-
filterColumns:
|
|
11677
|
+
filterColumns: df
|
|
11678
11678
|
},
|
|
11679
11679
|
yAxis: {},
|
|
11680
11680
|
secondaryYAxis: {},
|
|
@@ -11683,16 +11683,16 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11683
11683
|
rowGroupLimit: 2,
|
|
11684
11684
|
supportsFocusView: !0,
|
|
11685
11685
|
storeBeforeChange: !0
|
|
11686
|
-
},
|
|
11686
|
+
}, mf = [
|
|
11687
11687
|
{
|
|
11688
|
-
...
|
|
11688
|
+
...pf,
|
|
11689
11689
|
id: "column",
|
|
11690
11690
|
text: "Column",
|
|
11691
11691
|
icon: "chart-column",
|
|
11692
11692
|
agChartType: "bar"
|
|
11693
11693
|
},
|
|
11694
11694
|
{
|
|
11695
|
-
...
|
|
11695
|
+
...pf,
|
|
11696
11696
|
id: "bar",
|
|
11697
11697
|
text: "Bar",
|
|
11698
11698
|
icon: "chart-bar",
|
|
@@ -11700,28 +11700,28 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11700
11700
|
isHorizontal: !0
|
|
11701
11701
|
},
|
|
11702
11702
|
{
|
|
11703
|
-
...
|
|
11703
|
+
...pf,
|
|
11704
11704
|
id: "line",
|
|
11705
11705
|
text: "Line",
|
|
11706
11706
|
icon: "chart-line",
|
|
11707
11707
|
agChartType: "line"
|
|
11708
11708
|
},
|
|
11709
11709
|
{
|
|
11710
|
-
...
|
|
11710
|
+
...pf,
|
|
11711
11711
|
id: "area",
|
|
11712
11712
|
text: "Area",
|
|
11713
11713
|
icon: "chart-area",
|
|
11714
11714
|
agChartType: "area"
|
|
11715
11715
|
},
|
|
11716
11716
|
{
|
|
11717
|
-
...
|
|
11717
|
+
...pf,
|
|
11718
11718
|
id: "column_stacked",
|
|
11719
11719
|
text: "Stacked Column",
|
|
11720
11720
|
icon: "chart-column-stacked",
|
|
11721
11721
|
agChartType: "bar"
|
|
11722
11722
|
},
|
|
11723
11723
|
{
|
|
11724
|
-
...
|
|
11724
|
+
...pf,
|
|
11725
11725
|
id: "bar_stacked",
|
|
11726
11726
|
text: "Stacked Bar",
|
|
11727
11727
|
icon: "chart-bar-stacked",
|
|
@@ -11729,7 +11729,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11729
11729
|
isHorizontal: !0
|
|
11730
11730
|
},
|
|
11731
11731
|
{
|
|
11732
|
-
...
|
|
11732
|
+
...pf,
|
|
11733
11733
|
id: "pie",
|
|
11734
11734
|
text: "Pie",
|
|
11735
11735
|
icon: "chart-pie",
|
|
@@ -11743,7 +11743,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11743
11743
|
icon: "chart-column",
|
|
11744
11744
|
xAxis: {
|
|
11745
11745
|
selectMode: "single",
|
|
11746
|
-
filterColumns:
|
|
11746
|
+
filterColumns: ff,
|
|
11747
11747
|
hideLabel: !0
|
|
11748
11748
|
},
|
|
11749
11749
|
yAxis: {
|
|
@@ -11764,7 +11764,7 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11764
11764
|
icon: "map",
|
|
11765
11765
|
xAxis: {
|
|
11766
11766
|
selectMode: "single",
|
|
11767
|
-
filterColumns:
|
|
11767
|
+
filterColumns: df,
|
|
11768
11768
|
hideLabel: !0
|
|
11769
11769
|
},
|
|
11770
11770
|
yAxis: {},
|
|
@@ -11776,16 +11776,16 @@ var Wl = { style: { "line-height": "20px" } }, Gl = { class: "pv-text-subdued pv
|
|
|
11776
11776
|
supportsFocusView: !1,
|
|
11777
11777
|
storeBeforeChange: !1
|
|
11778
11778
|
}
|
|
11779
|
-
],
|
|
11780
|
-
function
|
|
11781
|
-
return
|
|
11779
|
+
], hf = new Map(mf.map((e) => [e.id, e])), gf = hf.get("column");
|
|
11780
|
+
function _f(e) {
|
|
11781
|
+
return hf.get(e) || gf;
|
|
11782
11782
|
}
|
|
11783
11783
|
//#endregion
|
|
11784
11784
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
11785
|
-
var
|
|
11785
|
+
var vf = {
|
|
11786
11786
|
class: "pv-full-width pv-flex",
|
|
11787
11787
|
style: { "--flex-gap": "8px" }
|
|
11788
|
-
},
|
|
11788
|
+
}, yf = ["title"], bf = { style: { "max-width": "220px" } }, xf = /* @__PURE__ */ d({
|
|
11789
11789
|
inheritAttrs: !1,
|
|
11790
11790
|
__name: "PvChartOptionMenuItemRenderer",
|
|
11791
11791
|
props: {
|
|
@@ -11793,10 +11793,10 @@ var _f = {
|
|
|
11793
11793
|
context: {}
|
|
11794
11794
|
},
|
|
11795
11795
|
setup(e) {
|
|
11796
|
-
return (t, n) => (E(), o("div",
|
|
11796
|
+
return (t, n) => (E(), o("div", vf, [s("span", {
|
|
11797
11797
|
class: "pv-text-body-md pv-truncate",
|
|
11798
11798
|
title: e.text
|
|
11799
|
-
}, P(e.text), 9,
|
|
11799
|
+
}, P(e.text), 9, yf), e.context?.description ? (E(), i(I(Ti), {
|
|
11800
11800
|
key: 0,
|
|
11801
11801
|
variant: "dark",
|
|
11802
11802
|
position: "center-right",
|
|
@@ -11810,25 +11810,25 @@ var _f = {
|
|
|
11810
11810
|
name: "info-circle",
|
|
11811
11811
|
class: "pv-text-subdued"
|
|
11812
11812
|
})]),
|
|
11813
|
-
content: H(() => [s("div",
|
|
11813
|
+
content: H(() => [s("div", bf, P(e.context.description), 1)]),
|
|
11814
11814
|
_: 1
|
|
11815
11815
|
})) : a("", !0)]));
|
|
11816
11816
|
}
|
|
11817
|
-
}),
|
|
11817
|
+
}), Sf = { class: "pv-stack-16 pv-chart-options-panel" }, Cf = { class: "pv-flex pv-relative" }, wf = {
|
|
11818
11818
|
role: "list",
|
|
11819
11819
|
class: "pv-relative"
|
|
11820
|
-
},
|
|
11820
|
+
}, Tf = [
|
|
11821
11821
|
"id",
|
|
11822
11822
|
"data-active",
|
|
11823
11823
|
"onMouseenter",
|
|
11824
11824
|
"onClick"
|
|
11825
|
-
],
|
|
11825
|
+
], Ef = { style: { "max-width": "100px" } }, Df = {
|
|
11826
11826
|
key: 1,
|
|
11827
11827
|
class: "pv-flex"
|
|
11828
|
-
},
|
|
11828
|
+
}, Of = {
|
|
11829
11829
|
key: 1,
|
|
11830
11830
|
role: "list"
|
|
11831
|
-
},
|
|
11831
|
+
}, kf = ["data-active"], Af = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
11832
11832
|
__name: "PvChartOptionsPanel",
|
|
11833
11833
|
props: {
|
|
11834
11834
|
enablePanel: { type: Boolean },
|
|
@@ -11839,17 +11839,17 @@ var _f = {
|
|
|
11839
11839
|
readOnly: { type: Boolean }
|
|
11840
11840
|
},
|
|
11841
11841
|
setup(e) {
|
|
11842
|
-
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
11842
|
+
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = Iu({
|
|
11843
11843
|
alignment: "top right",
|
|
11844
11844
|
popoverCssProperties: {
|
|
11845
11845
|
maxWidth: "500px",
|
|
11846
11846
|
maxHeight: "900px"
|
|
11847
11847
|
},
|
|
11848
11848
|
useTeleport: !0
|
|
11849
|
-
}), g = O(!1), _ = O(void 0), v = O(null), b = m(
|
|
11849
|
+
}), g = O(!1), _ = O(void 0), v = O(null), b = m(ll, O(void 0)), S = m(sl, O([])), C = m(ul, O(void 0)), w = m(cl, O([])), T = m(ol, O([])), D = m(Zc, O([])), A = r(() => _f(b.value?.id || "")), j = r(() => {
|
|
11850
11850
|
let e = b.value?.id ?? "";
|
|
11851
11851
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
11852
|
-
}), M = m(
|
|
11852
|
+
}), M = m(dl, O("")), N = m(fl, O([])), F = m(pl, O(void 0)), L = m(ml, O([])), R = m(gl, O(/* @__PURE__ */ new Set())), ee = m(_l, O([])), z = r(() => ee.value.filter((e) => R.value.has(e.id)).map((e) => ({
|
|
11853
11853
|
id: e.id,
|
|
11854
11854
|
text: e.label,
|
|
11855
11855
|
disabled: e.disabled,
|
|
@@ -11860,7 +11860,7 @@ var _f = {
|
|
|
11860
11860
|
V(j, (e) => {
|
|
11861
11861
|
e && F.value && (F.value = void 0);
|
|
11862
11862
|
}, { immediate: !0 });
|
|
11863
|
-
let te = m(
|
|
11863
|
+
let te = m(al, O("")), ne = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
11864
11864
|
label: e.label,
|
|
11865
11865
|
value: e.value
|
|
11866
11866
|
})) : []), W = r(() => {
|
|
@@ -12016,22 +12016,22 @@ var _f = {
|
|
|
12016
12016
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
12017
12017
|
}, J = (e) => oe.value?.isMultiSelect ? null : se(e), ce = (e) => oe.value?.isMultiSelect ? {
|
|
12018
12018
|
variant: "checkbox",
|
|
12019
|
-
renderer:
|
|
12020
|
-
} : G(e) ? { renderer:
|
|
12019
|
+
renderer: xf
|
|
12020
|
+
} : G(e) ? { renderer: xf } : { variant: "icon" }, le = (e) => {
|
|
12021
12021
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
12022
12022
|
}, ue = () => {
|
|
12023
12023
|
g.value = !1, _.value = void 0;
|
|
12024
12024
|
}, de = () => {
|
|
12025
12025
|
_.value = void 0;
|
|
12026
12026
|
};
|
|
12027
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
12027
|
+
return (n, r) => (E(), o(t, null, [s("div", Sf, [s("div", null, [U((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Cf, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(da, {
|
|
12028
12028
|
open: g.value,
|
|
12029
12029
|
label: "Chart Configuration",
|
|
12030
12030
|
icon: "chart-area",
|
|
12031
12031
|
disabled: e.readOnly,
|
|
12032
12032
|
onClick: r[0] ||= (t) => e.readOnly ? null : g.value = !g.value,
|
|
12033
12033
|
onHandleToggleDropdown: de
|
|
12034
|
-
}, null, 8, ["open", "disabled"]), u(
|
|
12034
|
+
}, null, 8, ["open", "disabled"]), u(hs, {
|
|
12035
12035
|
class: y({ "pv-hide": !g.value }),
|
|
12036
12036
|
"css-custom-properties": {
|
|
12037
12037
|
width: "171px",
|
|
@@ -12046,7 +12046,7 @@ var _f = {
|
|
|
12046
12046
|
"padding-top": "4px",
|
|
12047
12047
|
"padding-bottom": "12px"
|
|
12048
12048
|
}
|
|
12049
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
12049
|
+
}, " Chart Configuration ")], -1), s("ul", wf, [(E(!0), o(t, null, k(q.value, (e) => (E(), o("li", {
|
|
12050
12050
|
id: `pv-chart-config-${e.value}`,
|
|
12051
12051
|
key: e.value,
|
|
12052
12052
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -12076,9 +12076,9 @@ var _f = {
|
|
|
12076
12076
|
_: 2
|
|
12077
12077
|
}, [e.disabled && e.disabledReason ? {
|
|
12078
12078
|
name: "content",
|
|
12079
|
-
fn: H(() => [s("div",
|
|
12079
|
+
fn: H(() => [s("div", Ef, P(e.disabledReason), 1)]),
|
|
12080
12080
|
key: "0"
|
|
12081
|
-
} : void 0]), 1024)], 40,
|
|
12081
|
+
} : void 0]), 1024)], 40, Tf))), 128))])]),
|
|
12082
12082
|
_: 1
|
|
12083
12083
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Y), [ue, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
12084
12084
|
class: "pv-flex pv-space-between",
|
|
@@ -12088,7 +12088,7 @@ var _f = {
|
|
|
12088
12088
|
options: ne.value,
|
|
12089
12089
|
modelValue: I(te),
|
|
12090
12090
|
"onUpdate:modelValue": r[1] ||= (e) => h(te) ? te.value = e : null
|
|
12091
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div",
|
|
12091
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", Df, [(E(!0), o(t, null, k(q.value, (n) => (E(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (E(), i(Ys, {
|
|
12092
12092
|
key: 0,
|
|
12093
12093
|
label: n.label,
|
|
12094
12094
|
prefixLabel: n.prefixLabel,
|
|
@@ -12098,7 +12098,7 @@ var _f = {
|
|
|
12098
12098
|
disableSearchInput: !0,
|
|
12099
12099
|
disabled: n.disabled || e.readOnly,
|
|
12100
12100
|
optionsVariant: "checkbox",
|
|
12101
|
-
optionsRenderer:
|
|
12101
|
+
optionsRenderer: xf
|
|
12102
12102
|
}, null, 8, [
|
|
12103
12103
|
"label",
|
|
12104
12104
|
"prefixLabel",
|
|
@@ -12125,7 +12125,7 @@ var _f = {
|
|
|
12125
12125
|
"options",
|
|
12126
12126
|
"disableDeselect",
|
|
12127
12127
|
"disabled"
|
|
12128
|
-
]))], 64))), 128))]))], 4)])]), u(
|
|
12128
|
+
]))], 64))), 128))]))], 4)])]), u(hs, {
|
|
12129
12129
|
ref_key: "nestedMenuPopoverRef",
|
|
12130
12130
|
ref: v,
|
|
12131
12131
|
class: y({ "pv-hide": !(g.value && _.value !== void 0) }),
|
|
@@ -12142,7 +12142,7 @@ var _f = {
|
|
|
12142
12142
|
"padding-left": "2px",
|
|
12143
12143
|
"padding-bottom": "6px"
|
|
12144
12144
|
}
|
|
12145
|
-
}, " Viewing ", -1), u(
|
|
12145
|
+
}, " Viewing ", -1), u(sf, {
|
|
12146
12146
|
modelValue: oe.value.activeOptions.value,
|
|
12147
12147
|
"onUpdate:modelValue": r[2] ||= (e) => oe.value.activeOptions.value = e,
|
|
12148
12148
|
options: oe.value.availableOptions || [],
|
|
@@ -12152,7 +12152,7 @@ var _f = {
|
|
|
12152
12152
|
"modelValue",
|
|
12153
12153
|
"options",
|
|
12154
12154
|
"activeOptionLimit"
|
|
12155
|
-
])], 64)) : (E(), o("ul",
|
|
12155
|
+
])], 64)) : (E(), o("ul", Of, [(E(!0), o(t, null, k(oe.value.availableOptions, (e) => (E(), o("li", {
|
|
12156
12156
|
key: e.id,
|
|
12157
12157
|
"data-active": J(e)
|
|
12158
12158
|
}, [u(Ja, {
|
|
@@ -12177,14 +12177,14 @@ var _f = {
|
|
|
12177
12177
|
"disabled",
|
|
12178
12178
|
"selectedIds",
|
|
12179
12179
|
"onHandleSelected"
|
|
12180
|
-
])], 8,
|
|
12180
|
+
])], 8, kf))), 128))]))], 64)) : a("", !0)]),
|
|
12181
12181
|
_: 1
|
|
12182
12182
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
12183
12183
|
}
|
|
12184
12184
|
}), [["__scopeId", "data-v-4a384de9"]]);
|
|
12185
12185
|
//#endregion
|
|
12186
12186
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
12187
|
-
function
|
|
12187
|
+
function jf(e, t, n, r, i) {
|
|
12188
12188
|
return i ? {
|
|
12189
12189
|
xKey: n,
|
|
12190
12190
|
xName: r,
|
|
@@ -12199,19 +12199,19 @@ function Af(e, t, n, r, i) {
|
|
|
12199
12199
|
}
|
|
12200
12200
|
//#endregion
|
|
12201
12201
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
12202
|
-
var
|
|
12202
|
+
var Mf = { style: {
|
|
12203
12203
|
height: "100%",
|
|
12204
12204
|
width: "100%"
|
|
12205
|
-
} },
|
|
12205
|
+
} }, Nf = {
|
|
12206
12206
|
key: 0,
|
|
12207
12207
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
12208
|
-
},
|
|
12208
|
+
}, Pf = { class: "pv-flex" }, Ff = { class: "pv-relative pv-margin-auto" }, If = {
|
|
12209
12209
|
key: 2,
|
|
12210
12210
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
12211
|
-
},
|
|
12211
|
+
}, Lf = { key: 0 }, Rf = {
|
|
12212
12212
|
key: 1,
|
|
12213
12213
|
class: "pv-text-body-xs"
|
|
12214
|
-
},
|
|
12214
|
+
}, zf = /* @__PURE__ */ d({
|
|
12215
12215
|
__name: "PvDataTableWithChart",
|
|
12216
12216
|
props: {
|
|
12217
12217
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -12413,7 +12413,7 @@ var jf = { style: {
|
|
|
12413
12413
|
if (!e) return !1;
|
|
12414
12414
|
if (e === "state") return !0;
|
|
12415
12415
|
let t = k.value.find((t) => t.field === e);
|
|
12416
|
-
return !!(t &&
|
|
12416
|
+
return !!(t && cf(t));
|
|
12417
12417
|
}), I = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", L = r(() => {
|
|
12418
12418
|
let e = me.value;
|
|
12419
12419
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
@@ -12434,17 +12434,14 @@ var jf = { style: {
|
|
|
12434
12434
|
});
|
|
12435
12435
|
}), R = r(() => {
|
|
12436
12436
|
let e = m.value?.availableAggFuncColumns || [], t = new Set(j.value);
|
|
12437
|
-
return e.filter((e) => Io(e
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
secondaryAxisMax: n.context?.secondaryAxisMax
|
|
12446
|
-
};
|
|
12447
|
-
});
|
|
12437
|
+
return e.filter((e) => Io(e)).map((e) => ({
|
|
12438
|
+
label: I(e),
|
|
12439
|
+
value: Lo(e.field || "", e.aggFunc, t),
|
|
12440
|
+
formatter: e.valueFormatter,
|
|
12441
|
+
dataType: e.context?.dataType,
|
|
12442
|
+
tooltipRenderer: e.context?.customTooltipRenderer,
|
|
12443
|
+
secondaryAxisMax: e.context?.secondaryAxisMax
|
|
12444
|
+
}));
|
|
12448
12445
|
}), ee = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
12449
12446
|
let t = $(e);
|
|
12450
12447
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
@@ -12456,16 +12453,16 @@ var jf = { style: {
|
|
|
12456
12453
|
formatter: n.valueFormatter,
|
|
12457
12454
|
dataType: n.context?.dataType
|
|
12458
12455
|
};
|
|
12459
|
-
})), z = l.filterStore ||
|
|
12460
|
-
D(
|
|
12461
|
-
let B =
|
|
12456
|
+
})), z = l.filterStore || Nu();
|
|
12457
|
+
D(Wc, z);
|
|
12458
|
+
let B = Nl({
|
|
12462
12459
|
focusType: l.initialFocusData?.focusType,
|
|
12463
12460
|
focuses: l.initialFocusData?.focuses || [],
|
|
12464
12461
|
focusRequired: l.focusRequired
|
|
12465
12462
|
}, l.allFieldsAreFocusable);
|
|
12466
|
-
D(
|
|
12463
|
+
D(Gc, B);
|
|
12467
12464
|
let { setFilterSelectedValues: te } = z, ne = O(!1);
|
|
12468
|
-
D(
|
|
12465
|
+
D(tl, ne);
|
|
12469
12466
|
let U = O(l.isTableGrouped), W = (e) => {
|
|
12470
12467
|
d("table-overlay-change", e);
|
|
12471
12468
|
}, G = r(() => ut.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && z.filterModelEmpty.value)), re = r(() => B?.computedFocusType.value || null), ie = r(() => B?.computedFocuses.value || []), ae = (e) => {
|
|
@@ -12527,8 +12524,8 @@ var jf = { style: {
|
|
|
12527
12524
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
12528
12525
|
}, Y = r(() => {
|
|
12529
12526
|
let e = [...j.value.length > 1 ? mo : po, ho];
|
|
12530
|
-
return
|
|
12531
|
-
}), ue = O(void 0), de = O(void 0), fe = O(void 0), pe = !1, me = r(() =>
|
|
12527
|
+
return lf(F.value) && e.push(go), e.filter((e) => l.enabledChartTypes?.includes(e.id));
|
|
12528
|
+
}), ue = O(void 0), de = O(void 0), fe = O(void 0), pe = !1, me = r(() => _f(ue.value?.id || "")), he = r(() => Math.min(me.value.rowGroupLimit, l.rowGroupLimit)), ge = r(() => {
|
|
12532
12529
|
let e = me.value.xAxis.filterColumns;
|
|
12533
12530
|
return e ? e(k.value) : k.value;
|
|
12534
12531
|
}), _e = O([{
|
|
@@ -12540,18 +12537,18 @@ var jf = { style: {
|
|
|
12540
12537
|
id: "desc",
|
|
12541
12538
|
icon: "arrow-down-narrow-wide"
|
|
12542
12539
|
}]), ve = O([]), ye = O([]), X = O(l.yKey), be = O(R.value[0]?.value), xe = r(() => l.crosslineOverlayGroups ?? []), Se = O(new Set(xe.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), Ce = r(() => xe.value.filter((e) => Se.value.has(e.id)).flatMap((e) => e.overlays)), Z = O(null), we = O(_e.value.find((e) => e.id === l.initialSort || "")), Te = O("");
|
|
12543
|
-
D(
|
|
12540
|
+
D(qc, p), D(al, Te), D(Zc, ge), D(ol, j), D(sl, Y), D(cl, _e), D(ll, ue), D(ul, we), D(dl, X), D(fl, L), D(pl, be), D(ml, R), D(gl, Se), D(_l, xe);
|
|
12544
12541
|
let Ee = (e) => {
|
|
12545
12542
|
ue.value = Y.value.find((t) => t.id === e) ?? Y.value[0];
|
|
12546
12543
|
}, De = (e) => {
|
|
12547
12544
|
let t = j.value.length, n = (e) => {
|
|
12548
|
-
let n =
|
|
12545
|
+
let n = _f(e.id);
|
|
12549
12546
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
12550
12547
|
}, r = Y.value.find((t) => t.id === e);
|
|
12551
12548
|
return r && n(r) ? r.id : Y.value.find(n)?.id ?? Y.value[0]?.id;
|
|
12552
12549
|
};
|
|
12553
12550
|
V(() => Y.value, () => {
|
|
12554
|
-
let e = Ie.value, t = e !== pe, n =
|
|
12551
|
+
let e = Ie.value, t = e !== pe, n = _f(ue.value?.id || ""), r = Y.value.some((e) => e.id === ue.value?.id), i = j.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
12555
12552
|
if (pe = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
12556
12553
|
let a = De((e ? fe?.value : de?.value) ?? l.chartType);
|
|
12557
12554
|
a && Ee(a);
|
|
@@ -12561,7 +12558,7 @@ var jf = { style: {
|
|
|
12561
12558
|
if (l.chartFilter && p.value) {
|
|
12562
12559
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
12563
12560
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
12564
|
-
let r =
|
|
12561
|
+
let r = Zl({
|
|
12565
12562
|
filterType: "set",
|
|
12566
12563
|
values: n
|
|
12567
12564
|
}, ce(t));
|
|
@@ -12582,7 +12579,7 @@ var jf = { style: {
|
|
|
12582
12579
|
let o = {
|
|
12583
12580
|
type: t,
|
|
12584
12581
|
xKey: N.value,
|
|
12585
|
-
yKey:
|
|
12582
|
+
yKey: Bo(X.value, a),
|
|
12586
12583
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
12587
12584
|
stacked: e,
|
|
12588
12585
|
label: {
|
|
@@ -12638,7 +12635,7 @@ var jf = { style: {
|
|
|
12638
12635
|
}))), be.value) {
|
|
12639
12636
|
let t;
|
|
12640
12637
|
t = e ? `${be.value}_sort_total` : be.value;
|
|
12641
|
-
let r = ce(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i =
|
|
12638
|
+
let r = ce(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = jf(N.value, r, t, Ae.value, je.value), a = {
|
|
12642
12639
|
type: "scatter",
|
|
12643
12640
|
id: "metric-overlay",
|
|
12644
12641
|
data: Qe.value,
|
|
@@ -12730,8 +12727,8 @@ var jf = { style: {
|
|
|
12730
12727
|
oldState: { secondarySeriesField: t }
|
|
12731
12728
|
});
|
|
12732
12729
|
}), V(ue, (e, t) => {
|
|
12733
|
-
e?.id &&
|
|
12734
|
-
let n =
|
|
12730
|
+
e?.id && _f(e.id).storeBeforeChange && (Ie.value ? fe.value = e.id : de.value = e.id);
|
|
12731
|
+
let n = _f(e?.id || ""), r = _f(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? j.value : uf(j.value, k.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
12735
12732
|
tt(i, j.value) || (j.value = i), n.yAxis.defaultValue ? X.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
12736
12733
|
l.yKey ? X.value = l.yKey : L.value.length > 0 && (X.value = L.value[0].value);
|
|
12737
12734
|
}), d("chart-state-changed", {
|
|
@@ -12783,7 +12780,7 @@ var jf = { style: {
|
|
|
12783
12780
|
return;
|
|
12784
12781
|
}
|
|
12785
12782
|
if (t) {
|
|
12786
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
12783
|
+
let { stackedData: n, uniqueFieldValues: r } = Ho(e, N.value, t, He.value, ee.value);
|
|
12787
12784
|
ye.value = n, Z.value = {
|
|
12788
12785
|
fieldName: t,
|
|
12789
12786
|
fieldValues: r
|
|
@@ -12796,7 +12793,7 @@ var jf = { style: {
|
|
|
12796
12793
|
if (l.serverSideChartHandler) {
|
|
12797
12794
|
let e = z.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
12798
12795
|
if (e === null && l.initialGridState) {
|
|
12799
|
-
let t =
|
|
12796
|
+
let t = eu(l.initialGridState, n, l.enableAdvancedFilter);
|
|
12800
12797
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
12801
12798
|
}
|
|
12802
12799
|
e ||= {};
|
|
@@ -12844,10 +12841,10 @@ var jf = { style: {
|
|
|
12844
12841
|
n.add(o);
|
|
12845
12842
|
let s = t.aggData;
|
|
12846
12843
|
if (o && s) {
|
|
12847
|
-
let n = String(o), s =
|
|
12844
|
+
let n = String(o), s = Vo(n);
|
|
12848
12845
|
r[s] = `${e.key}-${n}`;
|
|
12849
12846
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
12850
|
-
r[
|
|
12847
|
+
r[Bo(a.value, n)] = c, i += c;
|
|
12851
12848
|
}
|
|
12852
12849
|
}), r[`${a.value}${yo}`] = i;
|
|
12853
12850
|
return {
|
|
@@ -12915,18 +12912,18 @@ var jf = { style: {
|
|
|
12915
12912
|
let n = e[r];
|
|
12916
12913
|
if (typeof n != "number") return e;
|
|
12917
12914
|
let a = 0;
|
|
12918
|
-
for (let n of i) typeof e[
|
|
12915
|
+
for (let n of i) typeof e[Bo(t, String(n))] == "number" && a++;
|
|
12919
12916
|
return {
|
|
12920
12917
|
...e,
|
|
12921
12918
|
[r]: a > 0 ? n / a : null
|
|
12922
12919
|
};
|
|
12923
12920
|
});
|
|
12924
|
-
}), $e = r(() => Q.value?.length || 0), et = r(() =>
|
|
12921
|
+
}), $e = r(() => Q.value?.length || 0), et = r(() => Uo(Me.value ? ye.value : Q.value, X.value, Me.value)), nt = r(() => be.value ? Uo(Me.value ? ye.value : Q.value, be.value, Me.value) : -Infinity), rt = r(() => Wo(Me.value ? ye.value : Q.value, X.value, Me.value)), it = r(() => be.value ? Wo(Me.value ? ye.value : Q.value, be.value, Me.value) : Infinity), at = r(() => Z.value?.fieldValues?.length || 0), ot = r(() => {
|
|
12925
12922
|
let e = .25 * Math.exp(-.12 * $e.value);
|
|
12926
12923
|
return Math.min(Math.max(e, .05), .75);
|
|
12927
12924
|
}), st = r(() => at.value > 5 ? .5 : 1), ct = r(() => at.value > 5 ? .25 : .1), lt = r(() => !Q.value || Q.value?.length === 0 ? !0 : et.value === -Infinity || Me.value === !0 && et.value === 0), ut = r(() => !!(l.enableFocusView && re.value && ie.value.length === 0 && l.percentOfFocusViewYKey && X.value && X.value === l.percentOfFocusViewYKey)), dt = r(() => {
|
|
12928
12925
|
let e = ce(re.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
12929
|
-
return
|
|
12926
|
+
return zo({
|
|
12930
12927
|
currentRowGroupColumnsLength: j.value.length,
|
|
12931
12928
|
shouldShowFocusOverlayText: ut.value || l.focusRequired && ie.value.length === 0,
|
|
12932
12929
|
chartDataEmpty: lt.value,
|
|
@@ -12952,10 +12949,10 @@ var jf = { style: {
|
|
|
12952
12949
|
preventHidingAll: !0,
|
|
12953
12950
|
enabled: j.value.length > 1
|
|
12954
12951
|
};
|
|
12955
|
-
let t = Me.value ? Z.value?.fieldValues.map((e) =>
|
|
12952
|
+
let t = Me.value ? Z.value?.fieldValues.map((e) => Bo(X.value, e)) || [] : X.value ? [X.value] : [], n = (() => {
|
|
12956
12953
|
if (!be.value) return [];
|
|
12957
12954
|
let e = be.value;
|
|
12958
|
-
return Fe.value ? [`${e}${yo}`] : Me.value ? Z.value?.fieldValues.map((t) =>
|
|
12955
|
+
return Fe.value ? [`${e}${yo}`] : Me.value ? Z.value?.fieldValues.map((t) => Bo(e, String(t))) || [] : [e];
|
|
12959
12956
|
})(), r = me.value.xAxis.hideLabel === !0, i = ue.value?.id === "histogram" && Q.value && Q.value.length > 0 && typeof Q.value[0]?.bucketMin == "number" && typeof Q.value[0]?.bucketMax == "number", a = [];
|
|
12960
12957
|
if (a.push({
|
|
12961
12958
|
type: "category",
|
|
@@ -13018,7 +13015,7 @@ var jf = { style: {
|
|
|
13018
13015
|
}).filter((e) => e !== null)
|
|
13019
13016
|
});
|
|
13020
13017
|
}
|
|
13021
|
-
let o = !!be.value, s = o ? ke.value?.secondaryAxisMax : void 0, c = o && Number.isFinite(rt.value) && rt.value < 0, u = o && Number.isFinite(it.value) && it.value < 0, d = c || u, f = o ?
|
|
13018
|
+
let o = !!be.value, s = o ? ke.value?.secondaryAxisMax : void 0, c = o && Number.isFinite(rt.value) && rt.value < 0, u = o && Number.isFinite(it.value) && it.value < 0, d = c || u, f = o ? Ro(et.value, 5) : 0, p = o ? s ?? Ro(nt.value, 5) : 0, m = o && !d && f > 0 && p > 0;
|
|
13022
13019
|
if (a.push({
|
|
13023
13020
|
type: "number",
|
|
13024
13021
|
keys: t,
|
|
@@ -13097,12 +13094,12 @@ var jf = { style: {
|
|
|
13097
13094
|
}
|
|
13098
13095
|
}), w(async () => {
|
|
13099
13096
|
await v(), x.value = l.filterPanelAboveChart;
|
|
13100
|
-
}), (n, r) => (E(), o("div",
|
|
13097
|
+
}), (n, r) => (E(), o("div", Mf, [
|
|
13101
13098
|
s("div", {
|
|
13102
13099
|
class: "pv-stack-16",
|
|
13103
13100
|
id: b
|
|
13104
13101
|
}),
|
|
13105
|
-
e.hideChart ? a("", !0) : (E(), o("div",
|
|
13102
|
+
e.hideChart ? a("", !0) : (E(), o("div", Nf, [
|
|
13106
13103
|
u(An, {
|
|
13107
13104
|
rightIcon: "chevrons-down-up",
|
|
13108
13105
|
label: "Collapse",
|
|
@@ -13114,7 +13111,7 @@ var jf = { style: {
|
|
|
13114
13111
|
onClick: r[0] ||= (e) => vt(!g.value),
|
|
13115
13112
|
class: y(e.hideChart || g.value ? "pv-hide" : "")
|
|
13116
13113
|
}, null, 8, ["class"]),
|
|
13117
|
-
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
13114
|
+
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div", Pf, [u(En, {
|
|
13118
13115
|
name: "chart-line",
|
|
13119
13116
|
size: 20,
|
|
13120
13117
|
class: "pv-text-subdued"
|
|
@@ -13127,7 +13124,7 @@ var jf = { style: {
|
|
|
13127
13124
|
variant: "secondary",
|
|
13128
13125
|
onClick: r[1] ||= (e) => vt(!g.value)
|
|
13129
13126
|
})], 2),
|
|
13130
|
-
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(
|
|
13127
|
+
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(Af, {
|
|
13131
13128
|
enablePanel: Q.value != null && Q.value.length > 0,
|
|
13132
13129
|
chartFilter: e.chartFilter,
|
|
13133
13130
|
rowGroupLimit: he.value,
|
|
@@ -13141,7 +13138,7 @@ var jf = { style: {
|
|
|
13141
13138
|
"use-combined-button",
|
|
13142
13139
|
"chart-config-options",
|
|
13143
13140
|
"read-only"
|
|
13144
|
-
]), s("div",
|
|
13141
|
+
]), s("div", Ff, [qe.value ? (E(), i(ro, {
|
|
13145
13142
|
key: 0,
|
|
13146
13143
|
selectedRegion: Ke.value,
|
|
13147
13144
|
"onUpdate:selectedRegion": r[2] ||= (e) => Ke.value = e,
|
|
@@ -13173,9 +13170,9 @@ var jf = { style: {
|
|
|
13173
13170
|
"isLoading",
|
|
13174
13171
|
"options",
|
|
13175
13172
|
"enableFocusView"
|
|
13176
|
-
])), qe.value ? a("", !0) : (E(), o("div",
|
|
13173
|
+
])), qe.value ? a("", !0) : (E(), o("div", If, [G.value ? (E(), o("div", Lf, [(E(), i(M(e.emptyChartFilterRenderer)))])) : _t.value ? (E(), o("p", Rf, P(dt.value), 1)) : a("", !0)]))])], 2)
|
|
13177
13174
|
])),
|
|
13178
|
-
u(
|
|
13175
|
+
u(zd, _({
|
|
13179
13176
|
ref_key: "pvDataTableRef",
|
|
13180
13177
|
ref: m
|
|
13181
13178
|
}, n.$props, {
|
|
@@ -13192,7 +13189,7 @@ var jf = { style: {
|
|
|
13192
13189
|
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
13193
13190
|
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
13194
13191
|
}), {
|
|
13195
|
-
"top-slot": H(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(
|
|
13192
|
+
"top-slot": H(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(Jd, {
|
|
13196
13193
|
key: 0,
|
|
13197
13194
|
groupedModeEnabled: U.value,
|
|
13198
13195
|
tableConfigOptions: l.tableConfigOptions,
|
|
@@ -13210,7 +13207,7 @@ var jf = { style: {
|
|
|
13210
13207
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
13211
13208
|
]));
|
|
13212
13209
|
}
|
|
13213
|
-
}),
|
|
13210
|
+
}), Bf = "Unable to load data", Vf = (e, t = {}) => {
|
|
13214
13211
|
let n = O([]), i = O(!1), a = O(), o = 0, s = async () => {
|
|
13215
13212
|
let t = ++o;
|
|
13216
13213
|
i.value = !0;
|
|
@@ -13240,6 +13237,6 @@ var jf = { style: {
|
|
|
13240
13237
|
};
|
|
13241
13238
|
};
|
|
13242
13239
|
//#endregion
|
|
13243
|
-
export {
|
|
13240
|
+
export { Bf as DEFAULT_DATA_WIDGET_ERROR_TEXT, yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart, _n as PvChartWidget, zd as PvDataTable, zf as PvDataTableWithChart, ps as PvDataWidget, ro as PvMapChart, ft as SCATTER_MARKER_STROKE, Ql as constructAdvancedFilterCondition, $l as convertFilterModelToAdvanced, ju as createPvDataTableFilterStore, Eu as excludeValueFromSetFilter, au as filterModelContainsColId, _u as filterModelsEqual, Su as getSelectedValues, bu as getSelectedValuesFromAdvancedFilterModel, du as getSelectedValuesFromFilterModel, xu as getSelectedValuesFromFilterModelByColId, fu as isAdvancedFilterModel, mu as isFilterModelEmpty, vu as mergeAdvancedFilterCondition, ou as mergeFilterModels, Mu as providePvDataTableFilterStore, Cu as removeColumnFilter, yu as removeColumnFromAdvancedFilter, Tu as updateMultiOrSetFilter, wu as updateSetFilter, Pu as usePvDataTableFilterStore, Vf as usePvDataWidgetData };
|
|
13244
13241
|
|
|
13245
13242
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|