@turquoisehealth/pit-viper 2.202.2-dev.1 → 2.202.2-dev.3
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/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +700 -703
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -6026,11 +6026,100 @@ var Sa = {
|
|
|
6026
6026
|
text: "Map",
|
|
6027
6027
|
id: "map",
|
|
6028
6028
|
icon: "map"
|
|
6029
|
-
}, _o = "state", vo = "--SEPARATOR--", yo = "_sort_total", bo = (e
|
|
6029
|
+
}, _o = "state", vo = "--SEPARATOR--", yo = "_sort_total", bo = /* @__PURE__ */ function(e) {
|
|
6030
|
+
return e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Date = "date", e.Currency = "currency", e.Formula = "formula", e.Select = "select", e.Percent = "percent", e.Entity = "entity", e.Id = "id", e.Integer = "integer", e.User = "user", e.Link = "link", e.Location = "location", e.Status = "status", e.Tag = "tag", e.File = "file", e.None = "none", e;
|
|
6031
|
+
}({}), xo = (e) => {
|
|
6032
|
+
switch (e) {
|
|
6033
|
+
case bo.String: return "fonts";
|
|
6034
|
+
case bo.Number: return "hash";
|
|
6035
|
+
case bo.Boolean: return "list";
|
|
6036
|
+
case bo.Date: return "calendar";
|
|
6037
|
+
case bo.Currency: return "currency-dollar";
|
|
6038
|
+
case bo.Formula: return "formula";
|
|
6039
|
+
case bo.Select: return "list";
|
|
6040
|
+
case bo.Percent: return "percent";
|
|
6041
|
+
case bo.Entity: return "building";
|
|
6042
|
+
case bo.Id: return "id-2";
|
|
6043
|
+
case bo.Link: return "link";
|
|
6044
|
+
case bo.Location: return "location";
|
|
6045
|
+
case bo.Integer: return "hash";
|
|
6046
|
+
case bo.User: return "user";
|
|
6047
|
+
case bo.Status: return "circle-chevron-down";
|
|
6048
|
+
case bo.Tag: return "circle-chevron-down";
|
|
6049
|
+
case bo.File: return "file";
|
|
6050
|
+
case bo.None: return null;
|
|
6051
|
+
default: return null;
|
|
6052
|
+
}
|
|
6053
|
+
}, So = (e, t) => {
|
|
6054
|
+
if (!e) return e;
|
|
6055
|
+
switch (t) {
|
|
6056
|
+
case bo.Percent: return e.replace(/^%+/, "").trim();
|
|
6057
|
+
default: return e;
|
|
6058
|
+
}
|
|
6059
|
+
}, Co = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e, wo = (e, t = !1, n = 0) => {
|
|
6060
|
+
let r = [
|
|
6061
|
+
"",
|
|
6062
|
+
"K",
|
|
6063
|
+
"M",
|
|
6064
|
+
"B",
|
|
6065
|
+
"T"
|
|
6066
|
+
], i = Math.abs(e), a = Math.abs(n), o = t ? 2 : 0, s = Math.floor(Math.log10(i) / 3);
|
|
6067
|
+
if ((Math.floor(Math.log10(a) / 3) >= s || s > 3) && (o = 2), i < 1e3) return {
|
|
6068
|
+
newValue: Co(e.toFixed(o)),
|
|
6069
|
+
newSuffix: ""
|
|
6070
|
+
};
|
|
6071
|
+
let c = r[s] || `e${s * 3}`;
|
|
6072
|
+
return {
|
|
6073
|
+
newValue: Co((e / 10 ** (s * 3)).toFixed(o)),
|
|
6074
|
+
newSuffix: c
|
|
6075
|
+
};
|
|
6076
|
+
}, To = (e, t, n) => !e || e.length === 0 ? e : e.slice().sort((e, r) => !n.includes(e[t]) - +!n.includes(r[t])), $ = (e) => e && e.context || {}, Eo = (e) => {
|
|
6077
|
+
let t = $(e);
|
|
6078
|
+
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
6079
|
+
}, Do = (e) => $(e).filterSelectMax || null, Oo = (e) => {
|
|
6080
|
+
let t = $(e);
|
|
6081
|
+
if (t.filterSelectMin) {
|
|
6082
|
+
let n = Do(e);
|
|
6083
|
+
return t.filterSelectMin === 1 && n === 1;
|
|
6084
|
+
}
|
|
6085
|
+
return !1;
|
|
6086
|
+
}, ko = (e) => {
|
|
6087
|
+
let t = $(e).dataType;
|
|
6088
|
+
return t ? [
|
|
6089
|
+
bo.Currency,
|
|
6090
|
+
bo.Percent,
|
|
6091
|
+
bo.Number,
|
|
6092
|
+
bo.Integer,
|
|
6093
|
+
bo.Formula
|
|
6094
|
+
].includes(t) : !1;
|
|
6095
|
+
}, Ao = (e) => e ? [e.field, ...(e.children || []).flatMap(Ao)] : [], jo = (e) => {
|
|
6096
|
+
let t = $(e);
|
|
6097
|
+
return t.aggregateFieldHierarchy ? Ao(t.aggregateFieldHierarchy) : t.aggregateFields || [];
|
|
6098
|
+
}, Mo = (e) => {
|
|
6099
|
+
let t = $(e);
|
|
6100
|
+
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6101
|
+
}, No = (e) => jo(e).length > 0, Po = (e, t) => !e || !t ? e || [] : e.map((e) => {
|
|
6102
|
+
let n = t.find((t) => t?.field === e.field);
|
|
6103
|
+
return n && ko(n) ? {
|
|
6104
|
+
...e,
|
|
6105
|
+
aggFunc: fo
|
|
6106
|
+
} : {
|
|
6107
|
+
...e,
|
|
6108
|
+
aggFunc: void 0
|
|
6109
|
+
};
|
|
6110
|
+
}), Fo = (e) => e.map((e) => ({
|
|
6111
|
+
id: e.getColId(),
|
|
6112
|
+
displayName: e.getColDef().headerName || "",
|
|
6113
|
+
field: e.getColDef().field || "",
|
|
6114
|
+
aggFunc: e.getAggFunc() || void 0
|
|
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) => {
|
|
6030
6119
|
if (!Number.isFinite(e) || e <= 0 || t <= 0) return 0;
|
|
6031
6120
|
let n = e / t, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
6032
6121
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 2.5 ? 2.5 : i <= 5 ? 5 : 10) * r * t;
|
|
6033
|
-
},
|
|
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 = []) => {
|
|
6034
6123
|
if (!e || e.length === 0) return {
|
|
6035
6124
|
data: [],
|
|
6036
6125
|
uniqueFieldValues: []
|
|
@@ -6043,7 +6132,7 @@ var Sa = {
|
|
|
6043
6132
|
let o = e.reduce((e, o) => {
|
|
6044
6133
|
let s = o[t];
|
|
6045
6134
|
e[s] || (e[s] = {});
|
|
6046
|
-
let c = o[n], l =
|
|
6135
|
+
let c = o[n], l = Vo(c);
|
|
6047
6136
|
e[s][l] = `${s}-${c}`;
|
|
6048
6137
|
for (let t of r) {
|
|
6049
6138
|
let r = t.value, i = 0;
|
|
@@ -6051,7 +6140,7 @@ var Sa = {
|
|
|
6051
6140
|
let l = o[r];
|
|
6052
6141
|
if (a.add(c), n && l) {
|
|
6053
6142
|
let t = l ?? 0;
|
|
6054
|
-
e[s][
|
|
6143
|
+
e[s][Bo(r, c)] = t, i += t;
|
|
6055
6144
|
}
|
|
6056
6145
|
e[s][`${r}${yo}`] = i;
|
|
6057
6146
|
}
|
|
@@ -6065,7 +6154,7 @@ var Sa = {
|
|
|
6065
6154
|
})),
|
|
6066
6155
|
uniqueFieldValues: Array.from(a)
|
|
6067
6156
|
};
|
|
6068
|
-
},
|
|
6157
|
+
}, Uo = (e, t, n) => {
|
|
6069
6158
|
let r = -Infinity;
|
|
6070
6159
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
6071
6160
|
let n = e[t + yo];
|
|
@@ -6074,7 +6163,7 @@ var Sa = {
|
|
|
6074
6163
|
let n = e[t];
|
|
6075
6164
|
typeof n == "number" && n > r && (r = n);
|
|
6076
6165
|
})), r;
|
|
6077
|
-
},
|
|
6166
|
+
}, Wo = (e, t, n) => {
|
|
6078
6167
|
let r = Infinity;
|
|
6079
6168
|
if (!e || e.length === 0) return r;
|
|
6080
6169
|
let i = n ? t + yo : t;
|
|
@@ -6082,13 +6171,13 @@ var Sa = {
|
|
|
6082
6171
|
let t = e[i];
|
|
6083
6172
|
typeof t == "number" && t < r && (r = t);
|
|
6084
6173
|
}), r;
|
|
6085
|
-
},
|
|
6174
|
+
}, Go = new Map(oo.map((e) => [e.value, e])), Ko = (e) => e !== null, qo = (e) => {
|
|
6086
6175
|
let t = Number(e ?? 0);
|
|
6087
6176
|
return Number.isFinite(t) ? t : 0;
|
|
6088
|
-
},
|
|
6177
|
+
}, Jo = (e) => {
|
|
6089
6178
|
let t = typeof e == "string" ? { value: e } : e, n = t.value;
|
|
6090
6179
|
if (!n) return null;
|
|
6091
|
-
let r =
|
|
6180
|
+
let r = Go.get(n), i = t.label ?? r?.label ?? n;
|
|
6092
6181
|
return {
|
|
6093
6182
|
ariaLabel: t.ariaLabel ?? i,
|
|
6094
6183
|
icon: t.icon ?? r?.icon,
|
|
@@ -6096,10 +6185,10 @@ var Sa = {
|
|
|
6096
6185
|
label: i,
|
|
6097
6186
|
value: n
|
|
6098
6187
|
};
|
|
6099
|
-
},
|
|
6100
|
-
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);
|
|
6101
6190
|
if (!r.some((e) => e.value !== "table")) {
|
|
6102
|
-
let e =
|
|
6191
|
+
let e = Jo(co);
|
|
6103
6192
|
e && (r = [e, ...r]);
|
|
6104
6193
|
}
|
|
6105
6194
|
if (!e.some((e) => typeof e == "object" && !!e)) {
|
|
@@ -6114,21 +6203,21 @@ var Sa = {
|
|
|
6114
6203
|
}
|
|
6115
6204
|
}
|
|
6116
6205
|
return r;
|
|
6117
|
-
},
|
|
6206
|
+
}, Xo = (e, t) => t.find((t) => t.value === e)?.value ?? t[0]?.value ?? "table", Zo = (e, t = []) => {
|
|
6118
6207
|
if (t.length > 0) return t.filter((e) => !e.hide);
|
|
6119
6208
|
let n = e[0];
|
|
6120
6209
|
return n ? Object.keys(n).map((e) => ({
|
|
6121
6210
|
field: e,
|
|
6122
6211
|
headerName: e
|
|
6123
6212
|
})) : [];
|
|
6124
|
-
},
|
|
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) => {
|
|
6125
6214
|
if (!e) return !1;
|
|
6126
|
-
let n =
|
|
6215
|
+
let n = $o(e);
|
|
6127
6216
|
return uo.has(n) ? !0 : t.some((t) => typeof t[e.field] == "number");
|
|
6128
|
-
},
|
|
6217
|
+
}, ts = (e, t) => {
|
|
6129
6218
|
let n = e[t];
|
|
6130
6219
|
return n == null ? "" : String(n);
|
|
6131
|
-
},
|
|
6220
|
+
}, ns = (e, t) => {
|
|
6132
6221
|
let n = e, r = { ...n };
|
|
6133
6222
|
if (t.noDataOverlayText) {
|
|
6134
6223
|
let e = on(n.overlays), i = on(e?.noData);
|
|
@@ -6149,26 +6238,26 @@ var Sa = {
|
|
|
6149
6238
|
hideValueAxis: t.hideValueAxis,
|
|
6150
6239
|
showAxes: !t.hideAxes
|
|
6151
6240
|
});
|
|
6152
|
-
},
|
|
6241
|
+
}, rs = ({ dataRows: e, categoryColumn: t, seriesColumn: n, stackColumn: r }) => {
|
|
6153
6242
|
if (!t || !n || !r) return {
|
|
6154
6243
|
data: e,
|
|
6155
6244
|
stackValues: []
|
|
6156
6245
|
};
|
|
6157
6246
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
6158
6247
|
return e.forEach((e) => {
|
|
6159
|
-
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);
|
|
6160
6249
|
a.add(s);
|
|
6161
6250
|
let l = i.get(o) ?? { [t.field]: o };
|
|
6162
|
-
l[c] = Number(l[c] ?? 0) +
|
|
6251
|
+
l[c] = Number(l[c] ?? 0) + qo(e[n.field]), i.set(o, l);
|
|
6163
6252
|
}), {
|
|
6164
6253
|
data: Array.from(i.values()),
|
|
6165
6254
|
stackValues: Array.from(a)
|
|
6166
6255
|
};
|
|
6167
|
-
},
|
|
6256
|
+
}, is = ({ dataRows: e, categoryColumn: t, seriesColumn: n }) => {
|
|
6168
6257
|
if (!t || !n) return e;
|
|
6169
6258
|
let r = /* @__PURE__ */ new Map();
|
|
6170
6259
|
return e.forEach((e) => {
|
|
6171
|
-
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);
|
|
6172
6261
|
if (s) {
|
|
6173
6262
|
s[n.field] = Number(s[n.field] ?? 0) + o;
|
|
6174
6263
|
return;
|
|
@@ -6179,16 +6268,16 @@ var Sa = {
|
|
|
6179
6268
|
[n.field]: o
|
|
6180
6269
|
});
|
|
6181
6270
|
}), Array.from(r.values());
|
|
6182
|
-
},
|
|
6271
|
+
}, as = ({ dataRows: e, mapColumn: t, seriesColumn: n }) => {
|
|
6183
6272
|
if (!t || !n) return [];
|
|
6184
6273
|
let r = /* @__PURE__ */ new Map();
|
|
6185
6274
|
return e.forEach((e) => {
|
|
6186
6275
|
let i = String(e[t.field] ?? "");
|
|
6187
6276
|
if (!i) return;
|
|
6188
6277
|
let a = r.get(i) ?? { state: i };
|
|
6189
|
-
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);
|
|
6190
6279
|
}), Array.from(r.values());
|
|
6191
|
-
},
|
|
6280
|
+
}, os = (e, t) => {
|
|
6192
6281
|
if (!t || e.length === 0) return {
|
|
6193
6282
|
min: 0,
|
|
6194
6283
|
max: 0
|
|
@@ -6204,8 +6293,8 @@ var Sa = {
|
|
|
6204
6293
|
min: 0,
|
|
6205
6294
|
max: 0
|
|
6206
6295
|
};
|
|
6207
|
-
},
|
|
6208
|
-
let t =
|
|
6296
|
+
}, ss = (e) => {
|
|
6297
|
+
let t = $o(e);
|
|
6209
6298
|
return t === "currency" ? (e) => e.toLocaleString("en-US", {
|
|
6210
6299
|
currency: "USD",
|
|
6211
6300
|
maximumFractionDigits: 0,
|
|
@@ -6214,7 +6303,7 @@ var Sa = {
|
|
|
6214
6303
|
maximumFractionDigits: 0,
|
|
6215
6304
|
style: "percent"
|
|
6216
6305
|
}) : (e) => e.toLocaleString("en-US");
|
|
6217
|
-
},
|
|
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 }) => {
|
|
6218
6307
|
let b = {
|
|
6219
6308
|
dataLimit: n,
|
|
6220
6309
|
hideAxes: i,
|
|
@@ -6223,12 +6312,12 @@ var Sa = {
|
|
|
6223
6312
|
hideValueAxis: s,
|
|
6224
6313
|
noDataOverlayText: c
|
|
6225
6314
|
};
|
|
6226
|
-
if (u) return
|
|
6315
|
+
if (u) return ns({
|
|
6227
6316
|
...u,
|
|
6228
6317
|
data: _ ? r : u.data ?? r
|
|
6229
6318
|
}, b);
|
|
6230
|
-
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w =
|
|
6231
|
-
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({
|
|
6232
6321
|
data: e,
|
|
6233
6322
|
series: [{
|
|
6234
6323
|
type: "pie",
|
|
@@ -6240,34 +6329,34 @@ var Sa = {
|
|
|
6240
6329
|
}, b);
|
|
6241
6330
|
if (x === "scatter") {
|
|
6242
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;
|
|
6243
|
-
return
|
|
6332
|
+
return ns({
|
|
6244
6333
|
data: r,
|
|
6245
6334
|
series: [{
|
|
6246
6335
|
type: "scatter",
|
|
6247
6336
|
xKey: i,
|
|
6248
|
-
xName:
|
|
6337
|
+
xName: Qo(e, i),
|
|
6249
6338
|
yKey: a,
|
|
6250
|
-
yName:
|
|
6339
|
+
yName: Qo(n, a)
|
|
6251
6340
|
}],
|
|
6252
6341
|
axes: [{
|
|
6253
6342
|
type: "number",
|
|
6254
6343
|
position: "bottom",
|
|
6255
|
-
title: { text:
|
|
6344
|
+
title: { text: Qo(e, i) }
|
|
6256
6345
|
}, {
|
|
6257
6346
|
type: "number",
|
|
6258
6347
|
position: "left",
|
|
6259
|
-
title: { text:
|
|
6348
|
+
title: { text: Qo(n, a) }
|
|
6260
6349
|
}]
|
|
6261
6350
|
}, b);
|
|
6262
6351
|
}
|
|
6263
6352
|
if (x === "histogram") {
|
|
6264
6353
|
let e = v === void 0 ? l[0] ?? p ?? t : t, n = e?.field ?? C;
|
|
6265
|
-
return
|
|
6354
|
+
return ns({
|
|
6266
6355
|
data: r,
|
|
6267
6356
|
series: [{
|
|
6268
6357
|
type: "histogram",
|
|
6269
6358
|
xKey: n,
|
|
6270
|
-
xName:
|
|
6359
|
+
xName: Qo(e, n)
|
|
6271
6360
|
}]
|
|
6272
6361
|
}, b);
|
|
6273
6362
|
}
|
|
@@ -6275,13 +6364,13 @@ var Sa = {
|
|
|
6275
6364
|
enabled: !0,
|
|
6276
6365
|
...D === "bar" ? { placement: "outside-end" } : {}
|
|
6277
6366
|
} } : {}, A = x.endsWith("_stacked") && !!h, j = !!h && (A || g.stackValues.length > 1);
|
|
6278
|
-
return
|
|
6367
|
+
return ns({
|
|
6279
6368
|
data: j ? g.data : e,
|
|
6280
6369
|
series: j ? g.stackValues.map((e) => ({
|
|
6281
6370
|
type: D,
|
|
6282
6371
|
xKey: S,
|
|
6283
6372
|
xName: w,
|
|
6284
|
-
yKey:
|
|
6373
|
+
yKey: Bo(C, e),
|
|
6285
6374
|
yName: e,
|
|
6286
6375
|
...D === "bar" ? { direction: O ? "horizontal" : "vertical" } : {},
|
|
6287
6376
|
...A ? { stacked: !0 } : {},
|
|
@@ -6305,16 +6394,16 @@ var Sa = {
|
|
|
6305
6394
|
title: { text: T }
|
|
6306
6395
|
}]
|
|
6307
6396
|
}, b);
|
|
6308
|
-
},
|
|
6397
|
+
}, ls = {
|
|
6309
6398
|
key: 0,
|
|
6310
6399
|
class: "pv-flex pv-space-between pv-stack-12"
|
|
6311
|
-
},
|
|
6400
|
+
}, us = {
|
|
6312
6401
|
key: 0,
|
|
6313
6402
|
class: "pv-heading-2"
|
|
6314
|
-
},
|
|
6403
|
+
}, ds = {
|
|
6315
6404
|
key: 1,
|
|
6316
6405
|
class: "pv-stack-12"
|
|
6317
|
-
},
|
|
6406
|
+
}, fs = { class: "pv-data-widget__body" }, ps = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6318
6407
|
__name: "PvDataWidget",
|
|
6319
6408
|
props: /* @__PURE__ */ g({
|
|
6320
6409
|
appliedFilters: { default: () => [] },
|
|
@@ -6384,12 +6473,12 @@ var Sa = {
|
|
|
6384
6473
|
let n = e, c = R(e, "chartType"), l = (e) => {
|
|
6385
6474
|
let t = e?.data;
|
|
6386
6475
|
return Array.isArray(t) ? t : [];
|
|
6387
|
-
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() =>
|
|
6388
|
-
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),
|
|
6389
6478
|
set: (e) => {
|
|
6390
6479
|
c.value = e;
|
|
6391
6480
|
}
|
|
6392
|
-
}), 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(() => {
|
|
6393
6482
|
if (n.xKey !== void 0) {
|
|
6394
6483
|
let e = n.xKey;
|
|
6395
6484
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
@@ -6412,34 +6501,34 @@ var Sa = {
|
|
|
6412
6501
|
let e = n.mapKey;
|
|
6413
6502
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
6414
6503
|
}
|
|
6415
|
-
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");
|
|
6416
6505
|
}), F = r(() => {
|
|
6417
6506
|
let e = N.value?.field;
|
|
6418
6507
|
return !!(e && T.value?.field === e);
|
|
6419
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) => ({
|
|
6420
6509
|
field: e.field,
|
|
6421
|
-
label:
|
|
6422
|
-
}))), 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(() => {
|
|
6423
6512
|
if (!n.enableTableScrolling) return;
|
|
6424
6513
|
let e = {
|
|
6425
6514
|
overflowX: "auto",
|
|
6426
6515
|
overflowY: "auto"
|
|
6427
6516
|
}, t = $t(n.tableMaxHeight);
|
|
6428
6517
|
return t && (e.maxHeight = t), e;
|
|
6429
|
-
}), G = r(() =>
|
|
6518
|
+
}), G = r(() => rs({
|
|
6430
6519
|
dataRows: v.value,
|
|
6431
6520
|
categoryColumn: T.value,
|
|
6432
6521
|
seriesColumn: D.value,
|
|
6433
6522
|
stackColumn: M.value
|
|
6434
|
-
})), re = r(() =>
|
|
6523
|
+
})), re = r(() => is({
|
|
6435
6524
|
dataRows: v.value,
|
|
6436
6525
|
categoryColumn: T.value,
|
|
6437
6526
|
seriesColumn: D.value
|
|
6438
|
-
})), ie = r(() =>
|
|
6527
|
+
})), ie = r(() => as({
|
|
6439
6528
|
dataRows: v.value,
|
|
6440
6529
|
mapColumn: N.value,
|
|
6441
6530
|
seriesColumn: D.value
|
|
6442
|
-
})), ae = r(() =>
|
|
6531
|
+
})), ae = r(() => os(ie.value, D.value?.field)), K = r(() => ss(D.value)), q = r(() => cs({
|
|
6443
6532
|
aggregatedCategoryChartData: re.value,
|
|
6444
6533
|
categoryColumn: T.value,
|
|
6445
6534
|
dataLimit: n.dataLimit,
|
|
@@ -6479,15 +6568,15 @@ var Sa = {
|
|
|
6479
6568
|
style: x(U.value)
|
|
6480
6569
|
}, {
|
|
6481
6570
|
default: H(() => [
|
|
6482
|
-
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, {
|
|
6483
6572
|
key: 0,
|
|
6484
6573
|
modelValue: p.value,
|
|
6485
6574
|
"onUpdate:modelValue": r[0] ||= (e) => p.value = e,
|
|
6486
6575
|
options: f.value,
|
|
6487
6576
|
size: "lg"
|
|
6488
6577
|
}, null, 8, ["modelValue", "options"])) : a("", !0)])])) : a("", !0),
|
|
6489
|
-
g.value ? (E(), o("div",
|
|
6490
|
-
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", {
|
|
6491
6580
|
key: 0,
|
|
6492
6581
|
class: y(["pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
6493
6582
|
style: x(W.value)
|
|
@@ -6545,7 +6634,7 @@ var Sa = {
|
|
|
6545
6634
|
_: 3
|
|
6546
6635
|
}, 8, ["class", "style"]));
|
|
6547
6636
|
}
|
|
6548
|
-
}), [["__scopeId", "data-v-1681e679"]]),
|
|
6637
|
+
}), [["__scopeId", "data-v-1681e679"]]), ms = ["data-align"], hs = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6549
6638
|
__name: "PvPopover",
|
|
6550
6639
|
props: {
|
|
6551
6640
|
alignment: { default: void 0 },
|
|
@@ -6578,15 +6667,15 @@ var Sa = {
|
|
|
6578
6667
|
role: "list",
|
|
6579
6668
|
class: "pv-popover-list",
|
|
6580
6669
|
style: x(e.cssCustomListProperties)
|
|
6581
|
-
}, [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));
|
|
6582
6671
|
}
|
|
6583
|
-
}), [["__scopeId", "data-v-c6181252"]]),
|
|
6672
|
+
}), [["__scopeId", "data-v-c6181252"]]), gs = {
|
|
6584
6673
|
class: "pv-relative",
|
|
6585
6674
|
style: { width: "fit-content" }
|
|
6586
|
-
},
|
|
6675
|
+
}, _s = ["disabled"], vs = {
|
|
6587
6676
|
key: 0,
|
|
6588
6677
|
class: "pv-shimmer"
|
|
6589
|
-
},
|
|
6678
|
+
}, ys = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6590
6679
|
__name: "PvDropdown",
|
|
6591
6680
|
props: {
|
|
6592
6681
|
defaultOpen: {
|
|
@@ -6640,7 +6729,7 @@ var Sa = {
|
|
|
6640
6729
|
zIndex: 10,
|
|
6641
6730
|
...d.popoverCssProperties
|
|
6642
6731
|
} : d.popoverCssProperties);
|
|
6643
|
-
return (t, r) => U((E(), o("div",
|
|
6732
|
+
return (t, r) => U((E(), o("div", gs, [s("button", {
|
|
6644
6733
|
ref_key: "triggerRef",
|
|
6645
6734
|
ref: m,
|
|
6646
6735
|
class: y({
|
|
@@ -6650,10 +6739,10 @@ var Sa = {
|
|
|
6650
6739
|
style: { width: "auto" },
|
|
6651
6740
|
onClick: S,
|
|
6652
6741
|
disabled: e.disabled
|
|
6653
|
-
}, [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, {
|
|
6654
6743
|
to: e.teleportLocation,
|
|
6655
6744
|
disabled: !e.useTeleport
|
|
6656
|
-
}, [u(
|
|
6745
|
+
}, [u(hs, {
|
|
6657
6746
|
ref_key: "popoverRef",
|
|
6658
6747
|
ref: h,
|
|
6659
6748
|
class: y(x.value),
|
|
@@ -6663,7 +6752,7 @@ var Sa = {
|
|
|
6663
6752
|
isSortable: e.isSortable,
|
|
6664
6753
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
6665
6754
|
}, {
|
|
6666
|
-
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)]),
|
|
6667
6756
|
_: 3
|
|
6668
6757
|
}, 8, [
|
|
6669
6758
|
"class",
|
|
@@ -6673,7 +6762,7 @@ var Sa = {
|
|
|
6673
6762
|
"isSortable"
|
|
6674
6763
|
])], 8, ["to", "disabled"]))])), [[I(Y), C]]);
|
|
6675
6764
|
}
|
|
6676
|
-
}), [["__scopeId", "data-v-79a7def3"]]),
|
|
6765
|
+
}), [["__scopeId", "data-v-79a7def3"]]), bs = ["data-style"], xs = /* @__PURE__ */ d({
|
|
6677
6766
|
__name: "PvTag",
|
|
6678
6767
|
props: {
|
|
6679
6768
|
size: { default: "md" },
|
|
@@ -6733,20 +6822,20 @@ var Sa = {
|
|
|
6733
6822
|
name: "close",
|
|
6734
6823
|
onClick: r[0] ||= W((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
6735
6824
|
})) : a("", !0)
|
|
6736
|
-
], 14,
|
|
6825
|
+
], 14, bs));
|
|
6737
6826
|
}
|
|
6738
|
-
}),
|
|
6827
|
+
}), Ss = { class: "pv-inset-squish-12" }, Cs = {
|
|
6739
6828
|
key: 0,
|
|
6740
6829
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
6741
6830
|
style: { "--flex-align": "flex-start" }
|
|
6742
|
-
},
|
|
6831
|
+
}, ws = { class: "pv-heading-3" }, Ts = {
|
|
6743
6832
|
key: 0,
|
|
6744
6833
|
class: "pv-text-body-md"
|
|
6745
|
-
},
|
|
6834
|
+
}, Es = {
|
|
6746
6835
|
key: 0,
|
|
6747
6836
|
class: "pv-inset-squish-12 pv-border-top",
|
|
6748
6837
|
style: { "--color-border": "#d2d8dc" }
|
|
6749
|
-
},
|
|
6838
|
+
}, Ds = /* @__PURE__ */ d({
|
|
6750
6839
|
__name: "PvModal",
|
|
6751
6840
|
props: /* @__PURE__ */ g({
|
|
6752
6841
|
header: {},
|
|
@@ -6784,21 +6873,21 @@ var Sa = {
|
|
|
6784
6873
|
style: { "--max-width": "480px" },
|
|
6785
6874
|
onClose: i,
|
|
6786
6875
|
onClick: c
|
|
6787
|
-
}, [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));
|
|
6788
6877
|
}
|
|
6789
|
-
}),
|
|
6878
|
+
}), Os = /* @__PURE__ */ function(e) {
|
|
6790
6879
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
6791
6880
|
}({});
|
|
6792
6881
|
(/* @__PURE__ */ (function(e) {
|
|
6793
6882
|
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
6794
|
-
})({})).Primary,
|
|
6883
|
+
})({})).Primary, Os.Horizontal;
|
|
6795
6884
|
//#endregion
|
|
6796
6885
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
6797
|
-
var
|
|
6886
|
+
var ks = [
|
|
6798
6887
|
"data-style",
|
|
6799
6888
|
"disabled",
|
|
6800
6889
|
"title"
|
|
6801
|
-
],
|
|
6890
|
+
], As = { class: "pv-truncate" }, js = /* @__PURE__ */ d({
|
|
6802
6891
|
__name: "PvSuggestionTag",
|
|
6803
6892
|
props: {
|
|
6804
6893
|
size: { default: "md" },
|
|
@@ -6834,36 +6923,36 @@ var ds = [
|
|
|
6834
6923
|
name: e.icon,
|
|
6835
6924
|
size: 12,
|
|
6836
6925
|
class: y(e.iconClasses)
|
|
6837
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
6926
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", As, P(e.label), 1)], 10, ks));
|
|
6838
6927
|
}
|
|
6839
6928
|
});
|
|
6840
6929
|
Ze.extend(et), Ze.extend(Qe), Ze.extend($e);
|
|
6841
6930
|
//#endregion
|
|
6842
6931
|
//#region src/components/base/PvDrawer/PvDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
6843
|
-
var
|
|
6932
|
+
var Ms = {
|
|
6844
6933
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
6845
6934
|
style: { "flex-shrink": "0" }
|
|
6846
|
-
},
|
|
6935
|
+
}, Ns = {
|
|
6847
6936
|
class: "pv-flex-vertical pv-stack-16",
|
|
6848
6937
|
style: { "--flex-align": "flex-start" }
|
|
6849
|
-
},
|
|
6938
|
+
}, Ps = { class: "pv-flex pv-full-width" }, Fs = { class: "pv-full-width pv-heading-3" }, Is = {
|
|
6850
6939
|
key: 0,
|
|
6851
6940
|
class: "pv-text-body-md"
|
|
6852
|
-
},
|
|
6941
|
+
}, Ls = {
|
|
6853
6942
|
key: 0,
|
|
6854
6943
|
class: "pv-inset-inline-16"
|
|
6855
|
-
},
|
|
6944
|
+
}, Rs = {
|
|
6856
6945
|
class: "pv-inset-inline-16",
|
|
6857
6946
|
style: {
|
|
6858
6947
|
flex: "1",
|
|
6859
6948
|
"overflow-y": "auto",
|
|
6860
6949
|
"min-height": "0"
|
|
6861
6950
|
}
|
|
6862
|
-
},
|
|
6951
|
+
}, zs = {
|
|
6863
6952
|
key: 0,
|
|
6864
6953
|
class: "pv-inset-squish-12 pv-border-top",
|
|
6865
6954
|
style: { "flex-shrink": "0" }
|
|
6866
|
-
},
|
|
6955
|
+
}, Bs = /* @__PURE__ */ d({
|
|
6867
6956
|
__name: "PvDrawer",
|
|
6868
6957
|
props: /* @__PURE__ */ g({
|
|
6869
6958
|
header: {},
|
|
@@ -6911,26 +7000,26 @@ var ms = {
|
|
|
6911
7000
|
height: "100%"
|
|
6912
7001
|
}
|
|
6913
7002
|
}, [
|
|
6914
|
-
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, {
|
|
6915
7004
|
"left-icon": "close",
|
|
6916
7005
|
ariaLabel: "Close",
|
|
6917
7006
|
size: "md",
|
|
6918
7007
|
onClick: p,
|
|
6919
7008
|
"data-testid": "pv-side-panel-close-button",
|
|
6920
7009
|
variant: "ghost"
|
|
6921
|
-
})]), 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, _({
|
|
6922
7011
|
"data-testid": "pv-side-panel-input-search",
|
|
6923
7012
|
modelValue: l.value,
|
|
6924
7013
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
6925
7014
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))]),
|
|
6926
|
-
s("div",
|
|
6927
|
-
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)
|
|
6928
7017
|
], 512));
|
|
6929
7018
|
}
|
|
6930
|
-
}),
|
|
7019
|
+
}), Vs = {
|
|
6931
7020
|
"data-testid": "pv-select-menu-control-panel",
|
|
6932
7021
|
class: "pv-flex pv-space-between"
|
|
6933
|
-
},
|
|
7022
|
+
}, Hs = /* @__PURE__ */ d({
|
|
6934
7023
|
__name: "PvMenuControlPanel",
|
|
6935
7024
|
props: {
|
|
6936
7025
|
variant: {},
|
|
@@ -6943,7 +7032,7 @@ var ms = {
|
|
|
6943
7032
|
"handle-confirm"
|
|
6944
7033
|
],
|
|
6945
7034
|
setup(e) {
|
|
6946
|
-
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, {
|
|
6947
7036
|
variant: "ghost",
|
|
6948
7037
|
"data-testid": "pv-select-menu-item-select-all",
|
|
6949
7038
|
onClick: r[0] ||= (e) => n.$emit("handle-select-all"),
|
|
@@ -6968,34 +7057,34 @@ var ms = {
|
|
|
6968
7057
|
disabled: e.disabled
|
|
6969
7058
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
6970
7059
|
}
|
|
6971
|
-
}),
|
|
7060
|
+
}), Us = {
|
|
6972
7061
|
key: 0,
|
|
6973
7062
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
6974
|
-
},
|
|
7063
|
+
}, Ws = {
|
|
6975
7064
|
key: 1,
|
|
6976
7065
|
class: "pv-inset-square-8"
|
|
6977
|
-
},
|
|
7066
|
+
}, Gs = {
|
|
6978
7067
|
key: 1,
|
|
6979
7068
|
class: "pv-text-body-sm pv-inset-inline",
|
|
6980
7069
|
style: {
|
|
6981
7070
|
color: "#89989b",
|
|
6982
7071
|
"--inset-size": "8px"
|
|
6983
7072
|
}
|
|
6984
|
-
},
|
|
7073
|
+
}, Ks = {
|
|
6985
7074
|
key: 2,
|
|
6986
7075
|
class: "pv-border-top",
|
|
6987
7076
|
style: { margin: "8px 0" }
|
|
6988
|
-
},
|
|
7077
|
+
}, qs = {
|
|
6989
7078
|
key: 3,
|
|
6990
7079
|
class: "pv-flex pv-inset-square-8",
|
|
6991
7080
|
style: { "justify-content": "center" }
|
|
6992
|
-
},
|
|
7081
|
+
}, Js = {
|
|
6993
7082
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
6994
7083
|
style: {
|
|
6995
7084
|
"--flex-justify": "space-between",
|
|
6996
7085
|
"--bottom": "0"
|
|
6997
7086
|
}
|
|
6998
|
-
},
|
|
7087
|
+
}, Ys = /* @__PURE__ */ d({
|
|
6999
7088
|
__name: "PvMultiSelectButton",
|
|
7000
7089
|
props: /* @__PURE__ */ g({
|
|
7001
7090
|
companyLogo: {},
|
|
@@ -7267,7 +7356,7 @@ var ms = {
|
|
|
7267
7356
|
...e.popoverCssProperties
|
|
7268
7357
|
})
|
|
7269
7358
|
}, [
|
|
7270
|
-
e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
7359
|
+
e.disableSearchInput ? a("", !0) : (E(), o("div", Us, [u(qi, {
|
|
7271
7360
|
ref: "searchInputRef",
|
|
7272
7361
|
"model-value": B.value,
|
|
7273
7362
|
"onUpdate:modelValue": r[1] ||= (e) => B.value = e,
|
|
@@ -7279,9 +7368,9 @@ var ms = {
|
|
|
7279
7368
|
"placeholder",
|
|
7280
7369
|
"disabled"
|
|
7281
7370
|
])])),
|
|
7282
|
-
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),
|
|
7283
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 }, [
|
|
7284
|
-
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)),
|
|
7285
7374
|
u(Qa, {
|
|
7286
7375
|
selectedItems: K.value,
|
|
7287
7376
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
@@ -7308,7 +7397,7 @@ var ms = {
|
|
|
7308
7397
|
"hasMoreOptions",
|
|
7309
7398
|
"readOnly"
|
|
7310
7399
|
]),
|
|
7311
|
-
de.value && s !== de.value.length - 1 ? (E(), o("div",
|
|
7400
|
+
de.value && s !== de.value.length - 1 ? (E(), o("div", Ks)) : a("", !0)
|
|
7312
7401
|
]))), 128)) : (E(), i(Qa, {
|
|
7313
7402
|
key: 1,
|
|
7314
7403
|
selectedItems: K.value,
|
|
@@ -7334,8 +7423,8 @@ var ms = {
|
|
|
7334
7423
|
"hasMoreOptions",
|
|
7335
7424
|
"readOnly"
|
|
7336
7425
|
]))], 64)) : a("", !0),
|
|
7337
|
-
e.isLoading ? (E(), o("div",
|
|
7338
|
-
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, {
|
|
7339
7428
|
key: 1,
|
|
7340
7429
|
variant: e.menuActionsVariant,
|
|
7341
7430
|
disabled: e.isLoading,
|
|
@@ -7355,7 +7444,7 @@ Math.random().toString(), Math.random().toString(), new Intl.NumberFormat("en-US
|
|
|
7355
7444
|
});
|
|
7356
7445
|
//#endregion
|
|
7357
7446
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
7358
|
-
var
|
|
7447
|
+
var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" && !!e, Qs = (e) => {
|
|
7359
7448
|
try {
|
|
7360
7449
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7361
7450
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7369,7 +7458,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7369
7458
|
} catch {
|
|
7370
7459
|
return [];
|
|
7371
7460
|
}
|
|
7372
|
-
},
|
|
7461
|
+
}, $s = (e) => {
|
|
7373
7462
|
if (!e.startsWith("__")) return null;
|
|
7374
7463
|
let t = e.slice(2).split("__");
|
|
7375
7464
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7382,68 +7471,68 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7382
7471
|
pairs: n,
|
|
7383
7472
|
value: n[0].value
|
|
7384
7473
|
};
|
|
7385
|
-
},
|
|
7474
|
+
}, ec = (e) => {
|
|
7386
7475
|
if (e == null) return null;
|
|
7387
|
-
if (!e.startsWith(
|
|
7476
|
+
if (!e.startsWith(Xs)) return $s(e) ?? {
|
|
7388
7477
|
pairs: [],
|
|
7389
7478
|
value: e
|
|
7390
7479
|
};
|
|
7391
|
-
let t =
|
|
7480
|
+
let t = Qs(e.slice(32));
|
|
7392
7481
|
return {
|
|
7393
7482
|
field: t[0]?.field,
|
|
7394
7483
|
pairs: t,
|
|
7395
7484
|
value: t[0]?.value ?? e
|
|
7396
7485
|
};
|
|
7397
|
-
},
|
|
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) => {
|
|
7398
7487
|
let t = e;
|
|
7399
7488
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7400
|
-
},
|
|
7489
|
+
}, ac = (e) => {
|
|
7401
7490
|
let t = e;
|
|
7402
|
-
return
|
|
7491
|
+
return ic(e) ? {
|
|
7403
7492
|
...t,
|
|
7404
|
-
conditions: (t.conditions ?? []).map(
|
|
7493
|
+
conditions: (t.conditions ?? []).map(ac)
|
|
7405
7494
|
} : { ...t };
|
|
7406
|
-
},
|
|
7495
|
+
}, oc = (e, t) => {
|
|
7407
7496
|
if (!e) return null;
|
|
7408
7497
|
let n = t instanceof Set ? t : new Set(t);
|
|
7409
|
-
if (!n.size) return
|
|
7410
|
-
if (!
|
|
7498
|
+
if (!n.size) return ac(e);
|
|
7499
|
+
if (!ic(e)) {
|
|
7411
7500
|
let t = e;
|
|
7412
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7501
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : ac(e);
|
|
7413
7502
|
}
|
|
7414
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7503
|
+
let r = e, i = (r.conditions ?? []).map((e) => oc(e, n)).filter((e) => !!e);
|
|
7415
7504
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7416
7505
|
...r,
|
|
7417
7506
|
conditions: i
|
|
7418
7507
|
} : null;
|
|
7419
|
-
},
|
|
7508
|
+
}, sc = (e) => e ? [e.field, ...(e.children ?? []).flatMap(sc)] : [], cc = (e) => e ? e.children?.length ? e.children.flatMap(cc) : [e.field] : [], lc = (e) => {
|
|
7420
7509
|
let t = e?.context ?? {};
|
|
7421
|
-
return t.aggregateFieldHierarchy ?
|
|
7422
|
-
},
|
|
7510
|
+
return t.aggregateFieldHierarchy ? sc(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7511
|
+
}, uc = (e) => {
|
|
7423
7512
|
let t = e?.context ?? {};
|
|
7424
7513
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7425
|
-
},
|
|
7514
|
+
}, dc = (e, t) => {
|
|
7426
7515
|
for (let n of e ?? []) {
|
|
7427
7516
|
if (!n) continue;
|
|
7428
7517
|
if (n.value === t) return n;
|
|
7429
|
-
let e =
|
|
7518
|
+
let e = dc(n.children, t);
|
|
7430
7519
|
if (e) return e;
|
|
7431
7520
|
}
|
|
7432
|
-
},
|
|
7433
|
-
let n =
|
|
7521
|
+
}, fc = (e, t) => {
|
|
7522
|
+
let n = dc(t, e), r = n ? nc(n, "") : void 0, i = n ? tc(n) : null;
|
|
7434
7523
|
if (r && i !== null) return {
|
|
7435
7524
|
field: r,
|
|
7436
7525
|
value: i
|
|
7437
7526
|
};
|
|
7438
|
-
let a =
|
|
7527
|
+
let a = ec(e);
|
|
7439
7528
|
return {
|
|
7440
7529
|
field: a?.field,
|
|
7441
7530
|
value: a?.value ?? e
|
|
7442
7531
|
};
|
|
7443
|
-
},
|
|
7532
|
+
}, pc = (e, t, n) => {
|
|
7444
7533
|
let r = (e) => {
|
|
7445
7534
|
if (!e) return;
|
|
7446
|
-
let i =
|
|
7535
|
+
let i = nc(e, ""), a = tc(e);
|
|
7447
7536
|
if (i === t && a === n) return e.value;
|
|
7448
7537
|
for (let t of e.children ?? []) {
|
|
7449
7538
|
let e = r(t);
|
|
@@ -7455,9 +7544,9 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7455
7544
|
if (e) return e;
|
|
7456
7545
|
}
|
|
7457
7546
|
return `__${t}__${n}`;
|
|
7458
|
-
},
|
|
7547
|
+
}, mc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...mc(e.children)]), hc = (e, t) => {
|
|
7459
7548
|
if (e.state !== "selected") return null;
|
|
7460
|
-
let { field: n, value: r } =
|
|
7549
|
+
let { field: n, value: r } = fc(e.id, t);
|
|
7461
7550
|
if (!n) return null;
|
|
7462
7551
|
let i = [{
|
|
7463
7552
|
colId: n,
|
|
@@ -7465,8 +7554,8 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7465
7554
|
filterType: "text",
|
|
7466
7555
|
type: "equals"
|
|
7467
7556
|
}];
|
|
7468
|
-
for (let n of
|
|
7469
|
-
let e =
|
|
7557
|
+
for (let n of mc(e.children)) {
|
|
7558
|
+
let e = fc(n.id, t);
|
|
7470
7559
|
e.field && i.push({
|
|
7471
7560
|
colId: e.field,
|
|
7472
7561
|
filter: e.value,
|
|
@@ -7479,10 +7568,10 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7479
7568
|
filterType: "join",
|
|
7480
7569
|
type: "AND"
|
|
7481
7570
|
};
|
|
7482
|
-
},
|
|
7483
|
-
let t =
|
|
7571
|
+
}, gc = (e) => {
|
|
7572
|
+
let t = lc(e.colDef), n = oc(e.baseModel, t);
|
|
7484
7573
|
if (!t.length) return n;
|
|
7485
|
-
let r = e.state.map((t) =>
|
|
7574
|
+
let r = e.state.map((t) => hc(t, e.options)).filter((e) => !!e);
|
|
7486
7575
|
if (!r.length) return n;
|
|
7487
7576
|
let i = r.length === 1 ? r[0] : {
|
|
7488
7577
|
conditions: r,
|
|
@@ -7494,17 +7583,17 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7494
7583
|
filterType: "join",
|
|
7495
7584
|
type: "AND"
|
|
7496
7585
|
} : i;
|
|
7497
|
-
},
|
|
7586
|
+
}, _c = (e, t, n) => {
|
|
7498
7587
|
if (!e) return [];
|
|
7499
7588
|
let r = e;
|
|
7500
|
-
if (
|
|
7589
|
+
if (ic(e)) {
|
|
7501
7590
|
let e = r.conditions ?? [];
|
|
7502
7591
|
if (r.type === "AND") {
|
|
7503
7592
|
let r = e.find((e) => {
|
|
7504
7593
|
let r = e;
|
|
7505
7594
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7506
7595
|
});
|
|
7507
|
-
return e.flatMap((e) =>
|
|
7596
|
+
return e.flatMap((e) => _c(e, t, n).map((e) => ({
|
|
7508
7597
|
...e,
|
|
7509
7598
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7510
7599
|
colId: r.colId,
|
|
@@ -7512,20 +7601,20 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7512
7601
|
} : void 0)
|
|
7513
7602
|
})));
|
|
7514
7603
|
}
|
|
7515
|
-
return e.flatMap((e) =>
|
|
7604
|
+
return e.flatMap((e) => _c(e, t, n));
|
|
7516
7605
|
}
|
|
7517
7606
|
return r.colId && t.has(r.colId) ? [{
|
|
7518
7607
|
colId: r.colId,
|
|
7519
7608
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7520
7609
|
type: r.type
|
|
7521
7610
|
}] : [];
|
|
7522
|
-
},
|
|
7523
|
-
let t =
|
|
7611
|
+
}, vc = (e) => {
|
|
7612
|
+
let t = lc(e.colDef);
|
|
7524
7613
|
if (!t.length) return [];
|
|
7525
|
-
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();
|
|
7526
7615
|
for (let t of i) {
|
|
7527
7616
|
if (!t.filter) continue;
|
|
7528
|
-
let n =
|
|
7617
|
+
let n = pc(e.options, t.colId, String(t.filter));
|
|
7529
7618
|
if (t.type === "equals") {
|
|
7530
7619
|
let e = a.get(n);
|
|
7531
7620
|
a.set(n, {
|
|
@@ -7536,7 +7625,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7536
7625
|
continue;
|
|
7537
7626
|
}
|
|
7538
7627
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7539
|
-
let r =
|
|
7628
|
+
let r = pc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7540
7629
|
children: [],
|
|
7541
7630
|
id: r,
|
|
7542
7631
|
state: "selected"
|
|
@@ -7548,17 +7637,17 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7548
7637
|
}
|
|
7549
7638
|
}
|
|
7550
7639
|
return [...a.values()];
|
|
7551
|
-
},
|
|
7640
|
+
}, yc = (e, t, n) => {
|
|
7552
7641
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
7553
7642
|
if (r.length <= 1) return "Search";
|
|
7554
7643
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
7555
7644
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
7556
|
-
},
|
|
7557
|
-
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;
|
|
7558
7647
|
if (!a || !n) return r;
|
|
7559
7648
|
let o = t(n);
|
|
7560
7649
|
return o ? `${o}: ${r}` : r;
|
|
7561
|
-
},
|
|
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) => {
|
|
7562
7651
|
let t = /* @__PURE__ */ new Map();
|
|
7563
7652
|
for (let n of e) {
|
|
7564
7653
|
if (!n) continue;
|
|
@@ -7570,34 +7659,34 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7570
7659
|
t.set(n.value, {
|
|
7571
7660
|
...e,
|
|
7572
7661
|
...n,
|
|
7573
|
-
children:
|
|
7574
|
-
totalChildCount:
|
|
7662
|
+
children: Tc([...e.children ?? [], ...n.children ?? []]),
|
|
7663
|
+
totalChildCount: Cc(e.totalChildCount, n.totalChildCount)
|
|
7575
7664
|
});
|
|
7576
7665
|
}
|
|
7577
7666
|
return [...t.values()];
|
|
7578
|
-
},
|
|
7667
|
+
}, Ec = (e, t) => {
|
|
7579
7668
|
for (let n of e ?? []) {
|
|
7580
7669
|
if (!n) continue;
|
|
7581
7670
|
if (n.value === t) return n;
|
|
7582
|
-
let e =
|
|
7671
|
+
let e = Ec(n.children, t);
|
|
7583
7672
|
if (e) return e;
|
|
7584
7673
|
}
|
|
7585
|
-
},
|
|
7674
|
+
}, Dc = (e, t, n) => {
|
|
7586
7675
|
if (!e || t === null) return !1;
|
|
7587
7676
|
if (e.value === t) return !0;
|
|
7588
|
-
let r =
|
|
7589
|
-
return r !== null && r === t ||
|
|
7590
|
-
},
|
|
7591
|
-
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);
|
|
7592
7681
|
return e.map((e) => e && (e.value === t ? {
|
|
7593
7682
|
...e,
|
|
7594
|
-
children:
|
|
7595
|
-
totalChildCount:
|
|
7683
|
+
children: Tc([...e.children ?? [], ...i]),
|
|
7684
|
+
totalChildCount: Cc(e.totalChildCount, r?.totalChildCount)
|
|
7596
7685
|
} : e.children?.length ? {
|
|
7597
7686
|
...e,
|
|
7598
|
-
children:
|
|
7687
|
+
children: Oc(e.children, t, n).filter((e) => !!e)
|
|
7599
7688
|
} : e));
|
|
7600
|
-
},
|
|
7689
|
+
}, kc = (e, t) => `${e}::${t}`, Ac = () => {
|
|
7601
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) => {
|
|
7602
7691
|
_.value = e;
|
|
7603
7692
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7606,11 +7695,11 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7606
7695
|
let r = n ? o : i;
|
|
7607
7696
|
r.value[e] = t;
|
|
7608
7697
|
}, w = () => {
|
|
7609
|
-
o.value =
|
|
7698
|
+
o.value = wc(i.value), s.value = wc(a.value);
|
|
7610
7699
|
}, T = () => {
|
|
7611
7700
|
o.value = {}, s.value = {};
|
|
7612
7701
|
}, E = () => {
|
|
7613
|
-
i.value =
|
|
7702
|
+
i.value = wc(o.value), a.value = wc(s.value), T();
|
|
7614
7703
|
}, D = (e, t) => {
|
|
7615
7704
|
c.value[e] = t;
|
|
7616
7705
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7632,7 +7721,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7632
7721
|
if (!o) return [];
|
|
7633
7722
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7634
7723
|
c.value[n.field] = s;
|
|
7635
|
-
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;
|
|
7636
7725
|
h.value[b] = x;
|
|
7637
7726
|
try {
|
|
7638
7727
|
let c = await o({
|
|
@@ -7643,17 +7732,17 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7643
7732
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7644
7733
|
});
|
|
7645
7734
|
if (h.value[b] !== x) return [];
|
|
7646
|
-
let l =
|
|
7735
|
+
let l = Sc(c);
|
|
7647
7736
|
if (n.parentId) {
|
|
7648
|
-
let e =
|
|
7737
|
+
let e = kc(n.field, n.parentId);
|
|
7649
7738
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7650
7739
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7651
7740
|
let _ = a.value[n.field] ?? [], y;
|
|
7652
|
-
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;
|
|
7653
7742
|
for (let e of _) {
|
|
7654
7743
|
if (!e) continue;
|
|
7655
|
-
let t =
|
|
7656
|
-
y.some((e) =>
|
|
7744
|
+
let t = tc(e) ?? e.value;
|
|
7745
|
+
y.some((e) => Dc(e, t, n.field)) || y.push(e);
|
|
7657
7746
|
}
|
|
7658
7747
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7659
7748
|
} finally {
|
|
@@ -7686,7 +7775,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7686
7775
|
stagedFilterSelectedMetadataMap: s,
|
|
7687
7776
|
stagedFilterSelectedValueMap: o
|
|
7688
7777
|
};
|
|
7689
|
-
},
|
|
7778
|
+
}, jc = () => {
|
|
7690
7779
|
let e = (e, n) => {
|
|
7691
7780
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
7692
7781
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -7700,13 +7789,13 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7700
7789
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
7701
7790
|
}
|
|
7702
7791
|
};
|
|
7703
|
-
},
|
|
7792
|
+
}, Mc = { class: "pv-flex" }, Nc = { class: "pv-text-body-md" }, Pc = ["textContent"], Fc = {
|
|
7704
7793
|
key: 0,
|
|
7705
7794
|
class: "pv-text-body-xs"
|
|
7706
|
-
},
|
|
7795
|
+
}, Ic = { key: 0 }, Lc = {
|
|
7707
7796
|
class: "pv-text-subdued pv-text-body-xs",
|
|
7708
7797
|
style: { "font-weight": "500" }
|
|
7709
|
-
},
|
|
7798
|
+
}, Rc = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7710
7799
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
7711
7800
|
props: {
|
|
7712
7801
|
id: {},
|
|
@@ -7752,13 +7841,13 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7752
7841
|
bold: !1
|
|
7753
7842
|
}), n;
|
|
7754
7843
|
});
|
|
7755
|
-
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", {
|
|
7756
7845
|
key: t,
|
|
7757
7846
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
7758
7847
|
textContent: P(e.text)
|
|
7759
|
-
}, 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)])])]));
|
|
7760
7849
|
}
|
|
7761
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
7850
|
+
}), [["__scopeId", "data-v-ff951d17"]]), zc = /* @__PURE__ */ d({
|
|
7762
7851
|
__name: "QueryFormatter",
|
|
7763
7852
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
7764
7853
|
modelValue: { required: !0 },
|
|
@@ -7772,7 +7861,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7772
7861
|
}),
|
|
7773
7862
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
7774
7863
|
setup(e) {
|
|
7775
|
-
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(() => {
|
|
7776
7865
|
let e = s.value?.queryTerms || [];
|
|
7777
7866
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
7778
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) => {
|
|
@@ -7788,7 +7877,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7788
7877
|
};
|
|
7789
7878
|
l(s.value, t);
|
|
7790
7879
|
};
|
|
7791
|
-
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, {
|
|
7792
7881
|
key: `${t}-${e.queryText}`,
|
|
7793
7882
|
variant: p(e),
|
|
7794
7883
|
label: f(e),
|
|
@@ -7798,23 +7887,23 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7798
7887
|
"variant",
|
|
7799
7888
|
"label",
|
|
7800
7889
|
"onHandleClose"
|
|
7801
|
-
]))), 128)), d.value > 0 ? (E(), i(
|
|
7890
|
+
]))), 128)), d.value > 0 ? (E(), i(xs, {
|
|
7802
7891
|
key: 0,
|
|
7803
7892
|
label: `+${d.value}`,
|
|
7804
7893
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
7805
7894
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
7806
7895
|
}
|
|
7807
|
-
}),
|
|
7896
|
+
}), Bc = [
|
|
7808
7897
|
"disabled",
|
|
7809
7898
|
"placeholder",
|
|
7810
7899
|
"data-invalid"
|
|
7811
|
-
],
|
|
7900
|
+
], Vc = {
|
|
7812
7901
|
key: 2,
|
|
7813
7902
|
class: "pv-text-red pv-text-body-xs"
|
|
7814
|
-
},
|
|
7903
|
+
}, Hc = {
|
|
7815
7904
|
key: 1,
|
|
7816
7905
|
class: "pv-text-center"
|
|
7817
|
-
},
|
|
7906
|
+
}, Uc = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7818
7907
|
__name: "PvQueryBuilderInput",
|
|
7819
7908
|
props: /* @__PURE__ */ g({
|
|
7820
7909
|
placeholder: { default: "Search" },
|
|
@@ -7862,7 +7951,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7862
7951
|
"update:options"
|
|
7863
7952
|
],
|
|
7864
7953
|
setup(e) {
|
|
7865
|
-
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 = () => {
|
|
7866
7955
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
7867
7956
|
};
|
|
7868
7957
|
n.enableCustomOptionsInput && ae("Enter", () => {
|
|
@@ -7936,7 +8025,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7936
8025
|
"--inset-size": "4px",
|
|
7937
8026
|
"--flex-gap": "4px"
|
|
7938
8027
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
7939
|
-
}, [u(
|
|
8028
|
+
}, [u(zc, {
|
|
7940
8029
|
modelValue: f.value,
|
|
7941
8030
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
7942
8031
|
"wrap-content": b.value,
|
|
@@ -7956,7 +8045,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7956
8045
|
"data-invalid": w.value ? "true" : void 0,
|
|
7957
8046
|
onFocus: F,
|
|
7958
8047
|
onBlur: F
|
|
7959
|
-
}, null, 40,
|
|
8048
|
+
}, null, 40, Bc), [[te, d.value]])], 4),
|
|
7960
8049
|
f.value && !e.hideClearButton ? (E(), i(An, {
|
|
7961
8050
|
key: 1,
|
|
7962
8051
|
variant: "ghost",
|
|
@@ -7964,8 +8053,8 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7964
8053
|
size: "md",
|
|
7965
8054
|
onClick: T
|
|
7966
8055
|
})) : a("", !0),
|
|
7967
|
-
w.value ? (E(), o("p",
|
|
7968
|
-
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, {
|
|
7969
8058
|
key: 3,
|
|
7970
8059
|
class: y({ "pv-hide": !g.value }),
|
|
7971
8060
|
"css-custom-properties": {
|
|
@@ -7974,7 +8063,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7974
8063
|
},
|
|
7975
8064
|
isList: !0
|
|
7976
8065
|
}, {
|
|
7977
|
-
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, _({
|
|
7978
8067
|
key: `${t}-${e.searchText}`,
|
|
7979
8068
|
ref_for: !0
|
|
7980
8069
|
}, e, {
|
|
@@ -7985,27 +8074,27 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
7985
8074
|
}, 8, ["class"])) : a("", !0)
|
|
7986
8075
|
], 32)), [[I(Y), j]]);
|
|
7987
8076
|
}
|
|
7988
|
-
}), [["__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 = {
|
|
7989
8078
|
class: "pv-flex",
|
|
7990
8079
|
style: { "--flex-wrap": "nowrap" }
|
|
7991
|
-
},
|
|
8080
|
+
}, yl = ["id"], bl = {
|
|
7992
8081
|
key: 1,
|
|
7993
8082
|
style: { "padding-left": "16px" }
|
|
7994
|
-
},
|
|
8083
|
+
}, xl = [
|
|
7995
8084
|
"checked",
|
|
7996
8085
|
"disabled",
|
|
7997
8086
|
"onChange"
|
|
7998
|
-
],
|
|
8087
|
+
], Sl = { class: "pv-text-body-md" }, Cl = { key: 2 }, wl = {
|
|
7999
8088
|
key: 0,
|
|
8000
8089
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
8001
|
-
},
|
|
8090
|
+
}, Tl = /* @__PURE__ */ d({
|
|
8002
8091
|
__name: "GroupBySelector",
|
|
8003
8092
|
props: {
|
|
8004
8093
|
rowGroupLimit: {},
|
|
8005
8094
|
enableFocusView: { type: Boolean }
|
|
8006
8095
|
},
|
|
8007
8096
|
setup(e) {
|
|
8008
|
-
let n = m(
|
|
8097
|
+
let n = m(qc, O(null)), c = m(Zc, O([])), l = m(Qc, O([])), u = e;
|
|
8009
8098
|
V(l, () => {}, { deep: !0 });
|
|
8010
8099
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
8011
8100
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -8029,7 +8118,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
8029
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-", ""));
|
|
8030
8119
|
n.value && n.value.setRowGroupColumns(r);
|
|
8031
8120
|
};
|
|
8032
|
-
return (n, r) => (E(), i(
|
|
8121
|
+
return (n, r) => (E(), i(ys, {
|
|
8033
8122
|
isList: !0,
|
|
8034
8123
|
isSortable: !0,
|
|
8035
8124
|
popoverCssProperties: { width: "auto" },
|
|
@@ -8037,7 +8126,7 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
8037
8126
|
class: y(p.value),
|
|
8038
8127
|
onListOrderUpdated: x
|
|
8039
8128
|
}, {
|
|
8040
|
-
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), {
|
|
8041
8130
|
key: 0,
|
|
8042
8131
|
value: I(l).length,
|
|
8043
8132
|
variant: "tertiary"
|
|
@@ -8050,25 +8139,25 @@ var Ms = "__pv_filter_panel_scoped_value__", Ns = (e) => typeof e == "object" &&
|
|
|
8050
8139
|
key: 0,
|
|
8051
8140
|
name: "reorder",
|
|
8052
8141
|
class: "pv-text-subdued"
|
|
8053
|
-
})) : (E(), o("span",
|
|
8142
|
+
})) : (E(), o("span", bl)),
|
|
8054
8143
|
s("input", {
|
|
8055
8144
|
type: "checkbox",
|
|
8056
8145
|
class: "pv-checkbox",
|
|
8057
8146
|
checked: d(e.value),
|
|
8058
8147
|
disabled: !d(e.value) && h.value,
|
|
8059
8148
|
onChange: (t) => f(e.value, t.target.checked)
|
|
8060
|
-
}, null, 40,
|
|
8061
|
-
s("span",
|
|
8062
|
-
d(e.value) ? (E(), o("sup",
|
|
8063
|
-
], 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)]),
|
|
8064
8153
|
_: 1
|
|
8065
8154
|
}, 8, ["class"]));
|
|
8066
8155
|
}
|
|
8067
|
-
}),
|
|
8068
|
-
function
|
|
8069
|
-
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);
|
|
8070
8159
|
}
|
|
8071
|
-
var
|
|
8160
|
+
var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { key: 2 }, Ml = /* @__PURE__ */ d({
|
|
8072
8161
|
__name: "ColDefCellRenderer",
|
|
8073
8162
|
props: {
|
|
8074
8163
|
colDef: {},
|
|
@@ -8082,9 +8171,9 @@ var dl = /* @__PURE__ */ Xt(cl, [["render", ul]]), fl = ["innerHTML"], pl = { ke
|
|
|
8082
8171
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (E(), o("span", {
|
|
8083
8172
|
key: 1,
|
|
8084
8173
|
innerHTML: c.value
|
|
8085
|
-
}, null, 8,
|
|
8174
|
+
}, null, 8, Al)) : a.value === "string" ? (E(), o("span", jl, P(s.value), 1)) : A(t.$slots, "default", { key: 3 });
|
|
8086
8175
|
}
|
|
8087
|
-
}),
|
|
8176
|
+
}), Nl = (e = null, t = !1) => {
|
|
8088
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) => {
|
|
8089
8178
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
8090
8179
|
}, l = (e) => {
|
|
@@ -8108,21 +8197,21 @@ var dl = /* @__PURE__ */ Xt(cl, [["render", ul]]), fl = ["innerHTML"], pl = { ke
|
|
|
8108
8197
|
setFocuses: l,
|
|
8109
8198
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
8110
8199
|
};
|
|
8111
|
-
},
|
|
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 = {
|
|
8112
8201
|
key: 0,
|
|
8113
8202
|
class: "pv-flex",
|
|
8114
8203
|
style: {
|
|
8115
8204
|
flex: "1",
|
|
8116
8205
|
"--flex-justify": "flex-end"
|
|
8117
8206
|
}
|
|
8118
|
-
},
|
|
8207
|
+
}, Vl = {
|
|
8119
8208
|
key: 0,
|
|
8120
8209
|
class: "pv-table-row-number"
|
|
8121
|
-
},
|
|
8210
|
+
}, Hl = /* @__PURE__ */ d({
|
|
8122
8211
|
__name: "GroupedCellRenderer",
|
|
8123
8212
|
props: { params: {} },
|
|
8124
8213
|
setup(e) {
|
|
8125
|
-
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(() => {
|
|
8126
8215
|
let e = f.value.data;
|
|
8127
8216
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
8128
8217
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -8144,7 +8233,7 @@ var dl = /* @__PURE__ */ Xt(cl, [["render", ul]]), fl = ["innerHTML"], pl = { ke
|
|
|
8144
8233
|
}), S = (e) => {
|
|
8145
8234
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
8146
8235
|
n != null && (d.value[n] = t);
|
|
8147
|
-
}, { 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(() => {
|
|
8148
8237
|
let e = D.value;
|
|
8149
8238
|
return f.value.key && e.includes(f.value.key);
|
|
8150
8239
|
});
|
|
@@ -8159,7 +8248,7 @@ var dl = /* @__PURE__ */ Xt(cl, [["render", ul]]), fl = ["innerHTML"], pl = { ke
|
|
|
8159
8248
|
}), (n, r) => (E(), o(t, null, [h.value ? (E(), o("div", {
|
|
8160
8249
|
key: 0,
|
|
8161
8250
|
class: y(j.value)
|
|
8162
|
-
}, [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, {
|
|
8163
8252
|
variant: "dark",
|
|
8164
8253
|
tooltipPosition: "center-left",
|
|
8165
8254
|
size: "sm"
|
|
@@ -8173,13 +8262,13 @@ var dl = /* @__PURE__ */ Xt(cl, [["render", ul]]), fl = ["innerHTML"], pl = { ke
|
|
|
8173
8262
|
}, null, 8, ["class"])]),
|
|
8174
8263
|
"tooltip-content": H(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
8175
8264
|
_: 1
|
|
8176
|
-
})])) : 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));
|
|
8177
8266
|
}
|
|
8178
|
-
}),
|
|
8267
|
+
}), Ul = /* @__PURE__ */ d({
|
|
8179
8268
|
__name: "AutoGroupColDefRenderer",
|
|
8180
8269
|
props: { params: {} },
|
|
8181
8270
|
setup(e) {
|
|
8182
|
-
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(() => {
|
|
8183
8272
|
let e = n.value;
|
|
8184
8273
|
if (!e) return t.params.cellParams;
|
|
8185
8274
|
let r = e.getColDef(), i = e.getColId(), a = t.params.cellParams.data, o = a?.[i] ?? null, s = r.valueFormatter, c = null;
|
|
@@ -8198,122 +8287,36 @@ var dl = /* @__PURE__ */ Xt(cl, [["render", ul]]), fl = ["innerHTML"], pl = { ke
|
|
|
8198
8287
|
valueFormatted: c
|
|
8199
8288
|
};
|
|
8200
8289
|
});
|
|
8201
|
-
return (t, n) => a.value ? (E(), i(
|
|
8290
|
+
return (t, n) => a.value ? (E(), i(Ml, {
|
|
8202
8291
|
key: 0,
|
|
8203
8292
|
"col-def": o.value,
|
|
8204
8293
|
"cell-params": e.params.cellParams
|
|
8205
8294
|
}, {
|
|
8206
|
-
default: H(() => [u(
|
|
8295
|
+
default: H(() => [u(Hl, { params: e.params }, null, 8, ["params"])]),
|
|
8207
8296
|
_: 1
|
|
8208
|
-
}, 8, ["col-def", "cell-params"])) : (E(), i(
|
|
8297
|
+
}, 8, ["col-def", "cell-params"])) : (E(), i(Ml, {
|
|
8209
8298
|
key: 1,
|
|
8210
8299
|
"col-def": s.value,
|
|
8211
8300
|
"cell-params": c.value
|
|
8212
8301
|
}, {
|
|
8213
|
-
default: H(() => [u(
|
|
8302
|
+
default: H(() => [u(Hl, { params: e.params }, null, 8, ["params"])]),
|
|
8214
8303
|
_: 1
|
|
8215
8304
|
}, 8, ["col-def", "cell-params"]));
|
|
8216
8305
|
}
|
|
8217
8306
|
});
|
|
8218
8307
|
//#endregion
|
|
8219
8308
|
//#region src/functions/aggregations.ts
|
|
8220
|
-
function
|
|
8309
|
+
function Wl(e) {
|
|
8221
8310
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
8222
8311
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
8223
8312
|
}
|
|
8224
8313
|
//#endregion
|
|
8225
|
-
//#region src/components/tables/PvDataTable/table-components/
|
|
8226
|
-
var
|
|
8227
|
-
return e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Date = "date", e.Currency = "currency", e.Formula = "formula", e.Select = "select", e.Percent = "percent", e.Entity = "entity", e.Id = "id", e.Integer = "integer", e.User = "user", e.Link = "link", e.Location = "location", e.Status = "status", e.Tag = "tag", e.File = "file", e.None = "none", e;
|
|
8228
|
-
}({}), Ol = (e) => {
|
|
8229
|
-
switch (e) {
|
|
8230
|
-
case Dl.String: return "fonts";
|
|
8231
|
-
case Dl.Number: return "hash";
|
|
8232
|
-
case Dl.Boolean: return "list";
|
|
8233
|
-
case Dl.Date: return "calendar";
|
|
8234
|
-
case Dl.Currency: return "currency-dollar";
|
|
8235
|
-
case Dl.Formula: return "formula";
|
|
8236
|
-
case Dl.Select: return "list";
|
|
8237
|
-
case Dl.Percent: return "percent";
|
|
8238
|
-
case Dl.Entity: return "building";
|
|
8239
|
-
case Dl.Id: return "id-2";
|
|
8240
|
-
case Dl.Link: return "link";
|
|
8241
|
-
case Dl.Location: return "location";
|
|
8242
|
-
case Dl.Integer: return "hash";
|
|
8243
|
-
case Dl.User: return "user";
|
|
8244
|
-
case Dl.Status: return "circle-chevron-down";
|
|
8245
|
-
case Dl.Tag: return "circle-chevron-down";
|
|
8246
|
-
case Dl.File: return "file";
|
|
8247
|
-
case Dl.None: return null;
|
|
8248
|
-
default: return null;
|
|
8249
|
-
}
|
|
8250
|
-
}, kl = (e, t) => {
|
|
8251
|
-
if (!e) return e;
|
|
8252
|
-
switch (t) {
|
|
8253
|
-
case Dl.Percent: return e.replace(/^%+/, "").trim();
|
|
8254
|
-
default: return e;
|
|
8255
|
-
}
|
|
8256
|
-
}, Al = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e, jl = (e, t = !1, n = 0) => {
|
|
8257
|
-
let r = [
|
|
8258
|
-
"",
|
|
8259
|
-
"K",
|
|
8260
|
-
"M",
|
|
8261
|
-
"B",
|
|
8262
|
-
"T"
|
|
8263
|
-
], i = Math.abs(e), a = Math.abs(n), o = t ? 2 : 0, s = Math.floor(Math.log10(i) / 3);
|
|
8264
|
-
if ((Math.floor(Math.log10(a) / 3) >= s || s > 3) && (o = 2), i < 1e3) return {
|
|
8265
|
-
newValue: Al(e.toFixed(o)),
|
|
8266
|
-
newSuffix: ""
|
|
8267
|
-
};
|
|
8268
|
-
let c = r[s] || `e${s * 3}`;
|
|
8269
|
-
return {
|
|
8270
|
-
newValue: Al((e / 10 ** (s * 3)).toFixed(o)),
|
|
8271
|
-
newSuffix: c
|
|
8272
|
-
};
|
|
8273
|
-
}, Ml = (e, t, n) => !e || e.length === 0 ? e : e.slice().sort((e, r) => !n.includes(e[t]) - +!n.includes(r[t])), $ = (e) => e && e.context || {}, Nl = (e) => {
|
|
8274
|
-
let t = $(e);
|
|
8275
|
-
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
8276
|
-
}, Pl = (e) => $(e).filterSelectMax || null, Fl = (e) => {
|
|
8277
|
-
let t = $(e);
|
|
8278
|
-
if (t.filterSelectMin) {
|
|
8279
|
-
let n = Pl(e);
|
|
8280
|
-
return t.filterSelectMin === 1 && n === 1;
|
|
8281
|
-
}
|
|
8282
|
-
return !1;
|
|
8283
|
-
}, Il = (e) => {
|
|
8284
|
-
let t = $(e).dataType;
|
|
8285
|
-
return t ? [
|
|
8286
|
-
Dl.Currency,
|
|
8287
|
-
Dl.Percent,
|
|
8288
|
-
Dl.Number,
|
|
8289
|
-
Dl.Integer,
|
|
8290
|
-
Dl.Formula
|
|
8291
|
-
].includes(t) : !1;
|
|
8292
|
-
}, Ll = (e) => e ? [e.field, ...(e.children || []).flatMap(Ll)] : [], Rl = (e) => {
|
|
8293
|
-
let t = $(e);
|
|
8294
|
-
return t.aggregateFieldHierarchy ? Ll(t.aggregateFieldHierarchy) : t.aggregateFields || [];
|
|
8295
|
-
}, zl = (e) => {
|
|
8296
|
-
let t = $(e);
|
|
8297
|
-
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
8298
|
-
}, Bl = (e) => Rl(e).length > 0, Vl = (e, t) => !e || !t ? e || [] : e.map((e) => {
|
|
8299
|
-
let n = t.find((t) => t?.field === e.field);
|
|
8300
|
-
return n && Il(n) ? {
|
|
8301
|
-
...e,
|
|
8302
|
-
aggFunc: fo
|
|
8303
|
-
} : {
|
|
8304
|
-
...e,
|
|
8305
|
-
aggFunc: void 0
|
|
8306
|
-
};
|
|
8307
|
-
}), Hl = (e) => e.map((e) => ({
|
|
8308
|
-
id: e.getColId(),
|
|
8309
|
-
displayName: e.getColDef().headerName || "",
|
|
8310
|
-
field: e.getColDef().field || "",
|
|
8311
|
-
aggFunc: e.getAggFunc() || void 0
|
|
8312
|
-
})), Ul = { style: { "line-height": "20px" } }, Wl = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, Gl = /* @__PURE__ */ d({
|
|
8314
|
+
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
8315
|
+
var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, ql = /* @__PURE__ */ d({
|
|
8313
8316
|
__name: "GroupAggCellRenderer",
|
|
8314
8317
|
props: { params: {} },
|
|
8315
8318
|
setup(e) {
|
|
8316
|
-
let t = e, n = m(
|
|
8319
|
+
let t = e, n = m(el, O({})), i = r(() => {
|
|
8317
8320
|
let e = t.params.column?.getColDef(), n = $(e);
|
|
8318
8321
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
8319
8322
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -8327,9 +8330,9 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8327
8330
|
}, c = r(() => t.params.node?.rowIndex), l = r(() => {
|
|
8328
8331
|
let e = !1;
|
|
8329
8332
|
return c.value != null && (e = c.value in n.value ? n.value[c.value] : !1), e;
|
|
8330
|
-
}), u = r(() =>
|
|
8333
|
+
}), u = r(() => ko(t.params.column?.getColDef())), d = r(() => {
|
|
8331
8334
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value || "";
|
|
8332
|
-
return e &&
|
|
8335
|
+
return e && ko(e) ? n.toLocaleString() : n;
|
|
8333
8336
|
}), f = r(() => ({
|
|
8334
8337
|
"flex-direction": u.value ? "row-reverse" : "row",
|
|
8335
8338
|
"--flex-justify": "space-between"
|
|
@@ -8340,20 +8343,20 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8340
8343
|
style: x(f.value),
|
|
8341
8344
|
class: "pv-flex",
|
|
8342
8345
|
ondblclick: a
|
|
8343
|
-
}, [s("div",
|
|
8346
|
+
}, [s("div", Gl, [s("p", null, P(d.value), 1), s("p", Kl, P(i.value), 1)])], 4));
|
|
8344
8347
|
}
|
|
8345
|
-
}),
|
|
8348
|
+
}), Jl = {
|
|
8346
8349
|
agSetColumnFilter: "set",
|
|
8347
8350
|
agMultiColumnFilter: "multi",
|
|
8348
8351
|
agTextColumnFilter: "text"
|
|
8349
|
-
},
|
|
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) => {
|
|
8350
8353
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
8351
|
-
let n = e?.filterType || null, r =
|
|
8354
|
+
let n = e?.filterType || null, r = Yl(t);
|
|
8352
8355
|
if (!r || r === n) return e;
|
|
8353
8356
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
8354
8357
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
8355
8358
|
if (e.filterType == "set") {
|
|
8356
|
-
let n = e.values || [], r =
|
|
8359
|
+
let n = e.values || [], r = Xl(t);
|
|
8357
8360
|
r > -1 && r < a.length && (a[r] = {
|
|
8358
8361
|
filterType: "set",
|
|
8359
8362
|
values: n
|
|
@@ -8363,7 +8366,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8363
8366
|
filterType: "multi",
|
|
8364
8367
|
filterModels: a
|
|
8365
8368
|
};
|
|
8366
|
-
},
|
|
8369
|
+
}, Ql = (e, t) => {
|
|
8367
8370
|
let n = t.filter((e) => e !== null && e !== "");
|
|
8368
8371
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
8369
8372
|
filterType: "text",
|
|
@@ -8380,18 +8383,18 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8380
8383
|
filter: t
|
|
8381
8384
|
}))
|
|
8382
8385
|
};
|
|
8383
|
-
},
|
|
8386
|
+
}, $l = (e) => {
|
|
8384
8387
|
let t = [];
|
|
8385
8388
|
return Object.keys(e).forEach((n) => {
|
|
8386
8389
|
let r = e[n];
|
|
8387
8390
|
if (r) {
|
|
8388
8391
|
if (r.filterType === "set" && r.values) {
|
|
8389
|
-
let e =
|
|
8392
|
+
let e = Ql(n, r.values);
|
|
8390
8393
|
e && t.push(e);
|
|
8391
8394
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
8392
8395
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
8393
8396
|
if (e?.values) {
|
|
8394
|
-
let r =
|
|
8397
|
+
let r = Ql(n, e.values);
|
|
8395
8398
|
r && t.push(r);
|
|
8396
8399
|
}
|
|
8397
8400
|
}
|
|
@@ -8401,11 +8404,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8401
8404
|
type: "AND",
|
|
8402
8405
|
conditions: t
|
|
8403
8406
|
};
|
|
8404
|
-
},
|
|
8407
|
+
}, eu = (e, t, n = !1) => {
|
|
8405
8408
|
if (!e) return e;
|
|
8406
8409
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
8407
8410
|
if (n) {
|
|
8408
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
8411
|
+
let t = e?.filter?.advancedFilterModel, n = $l(i), a = t || null, o = null;
|
|
8409
8412
|
return o = a && n ? {
|
|
8410
8413
|
filterType: "join",
|
|
8411
8414
|
type: "AND",
|
|
@@ -8418,12 +8421,12 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8418
8421
|
}
|
|
8419
8422
|
let a = {};
|
|
8420
8423
|
return Object.keys(i).forEach((e) => {
|
|
8421
|
-
a[e] =
|
|
8424
|
+
a[e] = Zl(i[e] || {}, t.find((t) => t.field === e));
|
|
8422
8425
|
}), r.filter = {
|
|
8423
8426
|
...r.filter,
|
|
8424
8427
|
filterModel: a
|
|
8425
8428
|
}, r;
|
|
8426
|
-
},
|
|
8429
|
+
}, tu = (e) => {
|
|
8427
8430
|
if (!e || e.queryTerms.length === 0) return {};
|
|
8428
8431
|
let t = {};
|
|
8429
8432
|
return e.queryTerms.forEach((e) => {
|
|
@@ -8455,7 +8458,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8455
8458
|
};
|
|
8456
8459
|
}
|
|
8457
8460
|
}), t;
|
|
8458
|
-
},
|
|
8461
|
+
}, nu = (e) => {
|
|
8459
8462
|
if (!e || e.queryTerms.length === 0) return null;
|
|
8460
8463
|
let t = /* @__PURE__ */ new Map();
|
|
8461
8464
|
e.queryTerms.forEach((e) => {
|
|
@@ -8490,7 +8493,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8490
8493
|
type: "AND",
|
|
8491
8494
|
conditions: n
|
|
8492
8495
|
};
|
|
8493
|
-
},
|
|
8496
|
+
}, ru = (e, t) => {
|
|
8494
8497
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
8495
8498
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
8496
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");
|
|
@@ -8498,26 +8501,26 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8498
8501
|
filterType: "multi",
|
|
8499
8502
|
filterModels: r
|
|
8500
8503
|
};
|
|
8501
|
-
},
|
|
8504
|
+
}, iu = (e, t) => {
|
|
8502
8505
|
if (!e || Object.keys(e).length === 0) return t;
|
|
8503
8506
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
8504
8507
|
let n = { ...e };
|
|
8505
8508
|
return t.filterModels?.forEach((e, t) => {
|
|
8506
8509
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
8507
8510
|
}), n;
|
|
8508
|
-
},
|
|
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) => {
|
|
8509
8512
|
let r = { ...t };
|
|
8510
8513
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
8511
|
-
let i =
|
|
8512
|
-
r[t] =
|
|
8514
|
+
let i = ru(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
8515
|
+
r[t] = iu(a, i);
|
|
8513
8516
|
}), r);
|
|
8514
|
-
},
|
|
8517
|
+
}, su = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? Xl(e) !== void 0 && Xl(e) > -1 : !1, cu = (e, t) => {
|
|
8515
8518
|
let n = { ...e };
|
|
8516
8519
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
8517
8520
|
...n.filterParams,
|
|
8518
8521
|
values: t
|
|
8519
8522
|
}, n;
|
|
8520
|
-
let r =
|
|
8523
|
+
let r = Xl(e);
|
|
8521
8524
|
if (r !== void 0 && r > -1) {
|
|
8522
8525
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
8523
8526
|
a.filterParams = {
|
|
@@ -8531,13 +8534,13 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8531
8534
|
};
|
|
8532
8535
|
}
|
|
8533
8536
|
return n;
|
|
8534
|
-
},
|
|
8537
|
+
}, lu = async (e, t) => {
|
|
8535
8538
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
8536
8539
|
if (r?.filterType == "set") return r;
|
|
8537
8540
|
if (r?.filterType != "multi") return null;
|
|
8538
|
-
let i =
|
|
8541
|
+
let i = Xl(t);
|
|
8539
8542
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
8540
|
-
},
|
|
8543
|
+
}, uu = async (e, t, n) => {
|
|
8541
8544
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
8542
8545
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
8543
8546
|
if (i?.filterType != "multi") return null;
|
|
@@ -8546,50 +8549,50 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8546
8549
|
filterType: "multi",
|
|
8547
8550
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
8548
8551
|
};
|
|
8549
|
-
let o =
|
|
8552
|
+
let o = Xl(t), s = !n || n.length === 0 ? null : {
|
|
8550
8553
|
filterType: "set",
|
|
8551
8554
|
values: n
|
|
8552
8555
|
};
|
|
8553
8556
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
8554
|
-
},
|
|
8557
|
+
}, du = (e, t) => {
|
|
8555
8558
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
8556
8559
|
let n = t[e.field];
|
|
8557
8560
|
if (!n) return [];
|
|
8558
8561
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
8559
8562
|
if (n.filterType === "multi") {
|
|
8560
|
-
let t =
|
|
8563
|
+
let t = Xl(e);
|
|
8561
8564
|
if (t !== void 0 && t > -1) {
|
|
8562
8565
|
let e = n.filterModels[t];
|
|
8563
8566
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
8564
8567
|
}
|
|
8565
8568
|
}
|
|
8566
8569
|
return [];
|
|
8567
|
-
},
|
|
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) => {
|
|
8568
8571
|
if (e === void 0) return "undefined";
|
|
8569
8572
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
8570
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
8573
|
+
if (Array.isArray(e)) return `[${e.map(hu).join(",")}]`;
|
|
8571
8574
|
let t = e;
|
|
8572
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
8573
|
-
},
|
|
8575
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${hu(t[e])}`).join(",")}}`;
|
|
8576
|
+
}, gu = (e) => {
|
|
8574
8577
|
if (e.filterType !== "join") return e;
|
|
8575
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
8578
|
+
let t = e, n = [...t.conditions ?? []].map(gu).sort((e, t) => hu(e).localeCompare(hu(t)));
|
|
8576
8579
|
return {
|
|
8577
8580
|
...t,
|
|
8578
8581
|
conditions: n
|
|
8579
8582
|
};
|
|
8580
|
-
},
|
|
8581
|
-
if (
|
|
8582
|
-
let n =
|
|
8583
|
-
if (n !==
|
|
8584
|
-
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));
|
|
8585
8588
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
8586
8589
|
if (a.length !== o.length) return !1;
|
|
8587
8590
|
for (let e of a) if (!tt(r?.[e], i?.[e])) return !1;
|
|
8588
8591
|
return !0;
|
|
8589
|
-
},
|
|
8590
|
-
if (!t) return
|
|
8592
|
+
}, vu = (e, t, n) => {
|
|
8593
|
+
if (!t) return yu(e, n);
|
|
8591
8594
|
if (!e) return t;
|
|
8592
|
-
let r =
|
|
8595
|
+
let r = yu(e, n);
|
|
8593
8596
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
8594
8597
|
filterType: "join",
|
|
8595
8598
|
type: "AND",
|
|
@@ -8599,53 +8602,53 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8599
8602
|
type: "AND",
|
|
8600
8603
|
conditions: [r, t]
|
|
8601
8604
|
} : t;
|
|
8602
|
-
},
|
|
8605
|
+
}, yu = (e, t) => {
|
|
8603
8606
|
if (!e) return null;
|
|
8604
8607
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
8605
|
-
let n = e, r = n.conditions.map((e) =>
|
|
8608
|
+
let n = e, r = n.conditions.map((e) => yu(e, t)).filter((e) => e !== null);
|
|
8606
8609
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
8607
8610
|
filterType: "join",
|
|
8608
8611
|
type: n.type,
|
|
8609
8612
|
conditions: r
|
|
8610
8613
|
};
|
|
8611
|
-
},
|
|
8614
|
+
}, bu = (e, t) => {
|
|
8612
8615
|
if (!t) return [];
|
|
8613
8616
|
if (t.filterType !== "join") {
|
|
8614
8617
|
let n = t;
|
|
8615
8618
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
8616
8619
|
}
|
|
8617
8620
|
let n = t, r = [];
|
|
8618
|
-
for (let t of n.conditions) r.push(...
|
|
8621
|
+
for (let t of n.conditions) r.push(...bu(e, t));
|
|
8619
8622
|
return r;
|
|
8620
|
-
},
|
|
8623
|
+
}, xu = (e, t) => {
|
|
8621
8624
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
8622
8625
|
let n = t[e];
|
|
8623
8626
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
8624
|
-
},
|
|
8627
|
+
}, Su = (e, t) => {
|
|
8625
8628
|
if (!e) return null;
|
|
8626
|
-
if (
|
|
8627
|
-
let n =
|
|
8629
|
+
if (fu(e)) {
|
|
8630
|
+
let n = bu(t, e);
|
|
8628
8631
|
return n.length > 0 ? n : null;
|
|
8629
8632
|
}
|
|
8630
|
-
let n =
|
|
8633
|
+
let n = xu(t, e);
|
|
8631
8634
|
return n.length > 0 ? n : null;
|
|
8632
|
-
},
|
|
8635
|
+
}, Cu = (e, t) => {
|
|
8633
8636
|
if (!e) return e;
|
|
8634
|
-
if (
|
|
8637
|
+
if (fu(e)) return yu(e, t);
|
|
8635
8638
|
let n = { ...e };
|
|
8636
8639
|
return delete n[t], n;
|
|
8637
|
-
},
|
|
8638
|
-
if (
|
|
8639
|
-
let r =
|
|
8640
|
-
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);
|
|
8641
8644
|
}
|
|
8642
8645
|
let i = { ...e || {} };
|
|
8643
8646
|
return i[t] = {
|
|
8644
8647
|
filterType: "set",
|
|
8645
8648
|
values: n
|
|
8646
8649
|
}, i;
|
|
8647
|
-
},
|
|
8648
|
-
if (
|
|
8650
|
+
}, Tu = (e, t, n, r) => {
|
|
8651
|
+
if (fu(e) || !e && r) return wu(e, t, n, r);
|
|
8649
8652
|
let i = { ...e || {} }, a = i[t];
|
|
8650
8653
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
8651
8654
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -8661,11 +8664,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8661
8664
|
values: n
|
|
8662
8665
|
};
|
|
8663
8666
|
return i;
|
|
8664
|
-
},
|
|
8665
|
-
let i = (
|
|
8666
|
-
return i.length === 0 ?
|
|
8667
|
-
},
|
|
8668
|
-
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) => ({
|
|
8669
8672
|
hasMore: e.filterHasMoreMap.value[t],
|
|
8670
8673
|
totalCount: e.filterTotalCountMap.value[t],
|
|
8671
8674
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -8680,7 +8683,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8680
8683
|
});
|
|
8681
8684
|
let g = r(() => d.value != null), _ = r(() => {
|
|
8682
8685
|
let e = n.value;
|
|
8683
|
-
return e ?
|
|
8686
|
+
return e ? Du(e) ? !pu(e) : Object.keys(e).length === 0 : !0;
|
|
8684
8687
|
}), v = r(() => {
|
|
8685
8688
|
let e = a.value || {};
|
|
8686
8689
|
return Object.keys(e).length === 0;
|
|
@@ -8718,9 +8721,9 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8718
8721
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
8719
8722
|
}, z = async (e, t) => {
|
|
8720
8723
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
8721
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
8724
|
+
if (t?.useStaged !== !1 && i.value != null) if (Ou(i.value)) {
|
|
8722
8725
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
8723
|
-
o = F(e &&
|
|
8726
|
+
o = F(e && Ou(e) ? e : void 0);
|
|
8724
8727
|
} else o = i.value;
|
|
8725
8728
|
let l = {
|
|
8726
8729
|
api: t?.api,
|
|
@@ -8802,7 +8805,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8802
8805
|
}, ne = (e, t) => {
|
|
8803
8806
|
b.value[e] = t;
|
|
8804
8807
|
let r = [], i = n.value;
|
|
8805
|
-
if (
|
|
8808
|
+
if (ku(i)) {
|
|
8806
8809
|
let t = i[e];
|
|
8807
8810
|
if (t?.values) {
|
|
8808
8811
|
let e = t.values || [];
|
|
@@ -8819,7 +8822,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8819
8822
|
let t = n.value;
|
|
8820
8823
|
if (!t) return x.value;
|
|
8821
8824
|
let r = e.map((e) => {
|
|
8822
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
8825
|
+
let n = e.field ?? e.colId ?? "", r = n ? Su(t, n) : null;
|
|
8823
8826
|
return r && r.length > 0 ? {
|
|
8824
8827
|
colDef: e,
|
|
8825
8828
|
colId: n,
|
|
@@ -8936,14 +8939,14 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8936
8939
|
filterValuesHasMoreMap: f,
|
|
8937
8940
|
filterValuesTotalCountMap: p
|
|
8938
8941
|
};
|
|
8939
|
-
},
|
|
8940
|
-
D(
|
|
8941
|
-
},
|
|
8942
|
-
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);
|
|
8943
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().");
|
|
8944
8947
|
return e;
|
|
8945
|
-
},
|
|
8946
|
-
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({
|
|
8947
8950
|
get: () => J.value ? F(q.value) : _(q.value),
|
|
8948
8951
|
set: (e) => {
|
|
8949
8952
|
J.value ? I(q.value, e) : x(q.value, e);
|
|
@@ -8961,7 +8964,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8961
8964
|
}), K = r(() => {
|
|
8962
8965
|
let e = A.value ?? 0, t = ae.value?.length ?? 0;
|
|
8963
8966
|
return e > 0 && t > 0 && t < e;
|
|
8964
|
-
}), q = r(() => t.value.field || ""), oe = r(() => t.value.filter || ""), se = r(() => t.value.headerName || ""), J = r(() => n?.value === "vertical"), ce = O(!1), Y = O(!1), ue = O([]), de = r(() =>
|
|
8967
|
+
}), q = r(() => t.value.field || ""), oe = r(() => t.value.filter || ""), se = r(() => t.value.headerName || ""), J = r(() => n?.value === "vertical"), ce = O(!1), Y = O(!1), ue = O([]), de = r(() => Eo(t.value)), fe = r(() => Do(t.value)), pe = r(() => Oo(t.value)), me = r(() => $(t.value).filterOptionsSortDescription), he = r(() => $(t.value).filterOptionsSortTooltip), ge = r(() => !$(t.value).filterSearch), _e = r(() => $(t.value).emptyFilterResultsRenderer), ve = r(() => $(t.value).filterOptionsRenderer), ye = r(() => $(t.value).filterHeaderRenderer), X = r(() => $(t.value).filterFooterRenderer), be = r(() => fe.value ? W.value.length >= fe.value : !1), xe = r(() => G.value.filter((e) => e != null && !W.value.includes(e))), Se = r(() => ee.value[q.value]), Ce = r(() => R.value[q.value]), Z = r(() => No(t.value)), we = () => new Set([q.value, ...jo(t.value)]), Te = (e, t) => {
|
|
8965
8968
|
let n = new Set(e), r = new Set(t);
|
|
8966
8969
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
8967
8970
|
}, Ee = O([]), De = O("[]"), Oe = r(() => G.value.length === 1 && G.value[0] === null && W.value.length === 0), ke = (e = !1) => {
|
|
@@ -8969,8 +8972,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8969
8972
|
let n = [];
|
|
8970
8973
|
if (U.value && s.value) {
|
|
8971
8974
|
let e = s.value.getAdvancedFilterModel();
|
|
8972
|
-
n =
|
|
8973
|
-
} else n =
|
|
8975
|
+
n = bu(q.value, e);
|
|
8976
|
+
} else n = du(t.value, d.value);
|
|
8974
8977
|
e ? W.value = n : W.value = Array.from(new Set([..._(q.value), ...n]));
|
|
8975
8978
|
}, Ae = (e) => {
|
|
8976
8979
|
let t = (n) => {
|
|
@@ -8995,7 +8998,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
8995
8998
|
}
|
|
8996
8999
|
return;
|
|
8997
9000
|
}
|
|
8998
|
-
let u = await
|
|
9001
|
+
let u = await lu(s.value, t.value);
|
|
8999
9002
|
if (u) {
|
|
9000
9003
|
if (y.value && c) {
|
|
9001
9004
|
u.refreshFilterValues();
|
|
@@ -9017,7 +9020,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9017
9020
|
let n = de.value, r = t, i = Pe(t);
|
|
9018
9021
|
if (i && Z.value) {
|
|
9019
9022
|
let e = s.value?.getColumnDef(i);
|
|
9020
|
-
n = e ?
|
|
9023
|
+
n = e ? Eo(e) ?? n : n, r = Le(t, e ?? void 0);
|
|
9021
9024
|
}
|
|
9022
9025
|
return n ? n({
|
|
9023
9026
|
value: Ie(e, r),
|
|
@@ -9027,21 +9030,21 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9027
9030
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
9028
9031
|
let n = g(q.value, e);
|
|
9029
9032
|
return n == null || n.label == null;
|
|
9030
|
-
}, 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({
|
|
9031
9034
|
fallbackSubText: n,
|
|
9032
9035
|
getDisplayName: He,
|
|
9033
9036
|
matchedField: e?.matchedField,
|
|
9034
9037
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
9035
9038
|
primaryText: r,
|
|
9036
9039
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
9037
|
-
}), We = r(() =>
|
|
9040
|
+
}), We = r(() => yc(q.value, $(t.value).queryColIds, (e) => e === q.value && se.value || He(e))), Q = (e) => {
|
|
9038
9041
|
if (!e.startsWith("__")) return { value: e };
|
|
9039
9042
|
let t = e.slice(2).split("__");
|
|
9040
9043
|
return t.length < 2 ? { value: e } : {
|
|
9041
9044
|
field: t[0],
|
|
9042
9045
|
value: t[1]
|
|
9043
9046
|
};
|
|
9044
|
-
}, Ge = (e) =>
|
|
9047
|
+
}, Ge = (e) => fc(e, Je()), Ke = (e) => {
|
|
9045
9048
|
let t = Q(e.value), n = { ...e };
|
|
9046
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;
|
|
9047
9050
|
}, qe = r(() => [...c.filterValueMap.value[q.value] || [], ...c.filterValueSelectedMetadataMap.value[q.value] || []].map((e) => e && Ke(e))), Je = () => qe.value, Ye = (e, t) => {
|
|
@@ -9058,7 +9061,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9058
9061
|
let e = n.children ? Xe(n.children, t) : void 0;
|
|
9059
9062
|
if (e) return e;
|
|
9060
9063
|
}
|
|
9061
|
-
}, Ze = (e, t) =>
|
|
9064
|
+
}, Ze = (e, t) => pc(Je(), e, t), Qe = (e) => {
|
|
9062
9065
|
let t = (n) => {
|
|
9063
9066
|
if (n) {
|
|
9064
9067
|
if (String(Fe(n) ?? Q(n.value).value) === e) return n;
|
|
@@ -9093,7 +9096,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9093
9096
|
};
|
|
9094
9097
|
}, et = (e) => {
|
|
9095
9098
|
let n = Je(), r = Ye(n, (t) => t.value === e.id);
|
|
9096
|
-
return r?.children?.length ? r : Xe(n, e.id) || (r && Pe(r) ===
|
|
9099
|
+
return r?.children?.length ? r : Xe(n, e.id) || (r && Pe(r) === Mo(t.value) ? r : $e(e.id) || r);
|
|
9097
9100
|
}, tt = (e) => {
|
|
9098
9101
|
if (!Z.value) return;
|
|
9099
9102
|
let t = c.filterValueSelectedMetadataMap.value[q.value] || [], n = /* @__PURE__ */ new Map();
|
|
@@ -9215,27 +9218,27 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9215
9218
|
if (e !== void 0 && n !== void 0) {
|
|
9216
9219
|
let r = e || q.value, i = n;
|
|
9217
9220
|
if (U.value) {
|
|
9218
|
-
let e =
|
|
9221
|
+
let e = Ql(r, i || []);
|
|
9219
9222
|
if (J.value) {
|
|
9220
9223
|
let t = f.value;
|
|
9221
|
-
f.value =
|
|
9224
|
+
f.value = vu(t, e, r), j(new Set([r]));
|
|
9222
9225
|
return;
|
|
9223
9226
|
}
|
|
9224
|
-
let t =
|
|
9227
|
+
let t = vu(s.value.getAdvancedFilterModel(), e, r);
|
|
9225
9228
|
v(() => {
|
|
9226
9229
|
s.value?.setAdvancedFilterModel(t);
|
|
9227
9230
|
}), j(new Set([r]));
|
|
9228
9231
|
return;
|
|
9229
9232
|
}
|
|
9230
9233
|
if (J.value) {
|
|
9231
|
-
let e = await
|
|
9234
|
+
let e = await uu(s.value, t.value, i);
|
|
9232
9235
|
f.value = {
|
|
9233
9236
|
...f.value,
|
|
9234
9237
|
[r]: e
|
|
9235
9238
|
};
|
|
9236
9239
|
return;
|
|
9237
9240
|
}
|
|
9238
|
-
let a = await
|
|
9241
|
+
let a = await uu(s.value, t.value, i);
|
|
9239
9242
|
s.value.setColumnFilterModel(r, a).then(() => {
|
|
9240
9243
|
s.value && s.value.onFilterChanged();
|
|
9241
9244
|
});
|
|
@@ -9245,15 +9248,15 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9245
9248
|
if (U.value) {
|
|
9246
9249
|
let e = J.value ? f.value : s.value.getAdvancedFilterModel(), n = e;
|
|
9247
9250
|
if (Z.value) {
|
|
9248
|
-
let e =
|
|
9251
|
+
let e = jo(t.value), r = [];
|
|
9249
9252
|
for (let t of e) {
|
|
9250
9253
|
let e = i[t] || [];
|
|
9251
9254
|
if (e.length > 0) {
|
|
9252
|
-
let n =
|
|
9255
|
+
let n = Ql(t, e);
|
|
9253
9256
|
n && r.push(n);
|
|
9254
9257
|
}
|
|
9255
9258
|
}
|
|
9256
|
-
for (let t of e) n =
|
|
9259
|
+
for (let t of e) n = vu(n, null, t);
|
|
9257
9260
|
if (r.length > 0) {
|
|
9258
9261
|
let e = r.length === 1 ? r[0] : {
|
|
9259
9262
|
filterType: "join",
|
|
@@ -9267,23 +9270,23 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9267
9270
|
} : e;
|
|
9268
9271
|
}
|
|
9269
9272
|
} else {
|
|
9270
|
-
let t = W.value.length > 0 ? W.value : null, r =
|
|
9271
|
-
n =
|
|
9273
|
+
let t = W.value.length > 0 ? W.value : null, r = Ql(q.value, t || []);
|
|
9274
|
+
n = vu(n, r, q.value);
|
|
9272
9275
|
let i = !1;
|
|
9273
9276
|
if (a?.value) {
|
|
9274
9277
|
let e = o.filterGroup?.fields ?? [];
|
|
9275
9278
|
for (let t of e) {
|
|
9276
9279
|
let e = a.value.has(t);
|
|
9277
|
-
if (e ===
|
|
9280
|
+
if (e === bu(t, n).includes("true")) continue;
|
|
9278
9281
|
i = !0;
|
|
9279
|
-
let r = e ?
|
|
9280
|
-
n =
|
|
9282
|
+
let r = e ? Ql(t, ["true"]) : null;
|
|
9283
|
+
n = vu(n, r, t);
|
|
9281
9284
|
}
|
|
9282
9285
|
}
|
|
9283
|
-
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);
|
|
9284
9287
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
9285
9288
|
}
|
|
9286
|
-
if (r?.skipIfUnchanged &&
|
|
9289
|
+
if (r?.skipIfUnchanged && _u(e, n)) return;
|
|
9287
9290
|
let c = Z.value ? we() : new Set([q.value]);
|
|
9288
9291
|
if (J.value) f.value = n, j(c);
|
|
9289
9292
|
else {
|
|
@@ -9296,24 +9299,24 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9296
9299
|
}
|
|
9297
9300
|
let c = W.value.length > 0 ? W.value : null;
|
|
9298
9301
|
if (r?.skipIfUnchanged) {
|
|
9299
|
-
let e =
|
|
9302
|
+
let e = du(t.value, s.value.getFilterModel());
|
|
9300
9303
|
if (Te(W.value, e)) return;
|
|
9301
9304
|
}
|
|
9302
9305
|
if (J.value) {
|
|
9303
|
-
let e = await
|
|
9306
|
+
let e = await uu(s.value, t.value, c);
|
|
9304
9307
|
f.value = {
|
|
9305
9308
|
...f.value,
|
|
9306
9309
|
[q.value]: e
|
|
9307
9310
|
};
|
|
9308
9311
|
return;
|
|
9309
9312
|
}
|
|
9310
|
-
let l = await
|
|
9313
|
+
let l = await uu(s.value, t.value, c);
|
|
9311
9314
|
s.value.setColumnFilterModel(q.value, l).then(() => {
|
|
9312
9315
|
s.value && s.value.onFilterChanged();
|
|
9313
9316
|
});
|
|
9314
9317
|
}, ct = (e, n) => {
|
|
9315
9318
|
if (e && pe.value ? W.value = [e] : e && !W.value.includes(e) && (W.value = [...W.value, e]), Z.value && e) {
|
|
9316
|
-
let r = n ||
|
|
9319
|
+
let r = n || jo(t.value)[0] || q.value, i = e.startsWith("__") ? e : Ze(r, e) || e;
|
|
9317
9320
|
Ee.value.find((e) => e.id === i) || (Ee.value = [...Ee.value, {
|
|
9318
9321
|
id: i,
|
|
9319
9322
|
state: "selected"
|
|
@@ -9322,7 +9325,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9322
9325
|
(!k.value || J.value) && (Z.value && e ? mt(Ee.value) : n && n !== q.value ? st(n, [e]) : st()), i?.();
|
|
9323
9326
|
}, lt = (e, n) => {
|
|
9324
9327
|
if (W.value = W.value.filter((t) => t !== e), Z.value && e) {
|
|
9325
|
-
let r = n ||
|
|
9328
|
+
let r = n || jo(t.value)[0] || q.value, i = e.startsWith("__") ? e : Ze(r, e) || e;
|
|
9326
9329
|
Ee.value = Ee.value.filter((e) => e.id !== i);
|
|
9327
9330
|
}
|
|
9328
9331
|
(!k.value || J.value) && (Z.value && e ? mt(Ee.value) : n && n !== q.value ? st(n, null) : st()), i?.();
|
|
@@ -9345,7 +9348,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9345
9348
|
} finally {
|
|
9346
9349
|
r && (Y.value = !1);
|
|
9347
9350
|
}
|
|
9348
|
-
}, pt = (e, n) =>
|
|
9351
|
+
}, pt = (e, n) => gc({
|
|
9349
9352
|
baseModel: n,
|
|
9350
9353
|
colDef: t.value,
|
|
9351
9354
|
options: Je(),
|
|
@@ -9354,9 +9357,9 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9354
9357
|
if (!s.value || !Z.value) return !1;
|
|
9355
9358
|
let r = JSON.stringify(e);
|
|
9356
9359
|
if (n?.skipIfUnchanged && r === De.value) return Ee.value = e, !1;
|
|
9357
|
-
if (Ee.value = e, tt(e),
|
|
9360
|
+
if (Ee.value = e, tt(e), jo(t.value).length === 0) return !1;
|
|
9358
9361
|
let a = J.value ? f.value : s.value.getAdvancedFilterModel(), o = pt(e, a);
|
|
9359
|
-
if (n?.skipIfUnchanged &&
|
|
9362
|
+
if (n?.skipIfUnchanged && _u(a, o)) return De.value = r, !1;
|
|
9360
9363
|
if (J.value) f.value = o;
|
|
9361
9364
|
else {
|
|
9362
9365
|
let e = o;
|
|
@@ -9366,8 +9369,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9366
9369
|
}
|
|
9367
9370
|
return De.value = r, j(we()), i?.(), !0;
|
|
9368
9371
|
}, ht = (e) => {
|
|
9369
|
-
if (!Z.value || !
|
|
9370
|
-
let n =
|
|
9372
|
+
if (!Z.value || !jo(t.value).length) return;
|
|
9373
|
+
let n = vc({
|
|
9371
9374
|
colDef: t.value,
|
|
9372
9375
|
model: e,
|
|
9373
9376
|
options: Je()
|
|
@@ -9388,12 +9391,12 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9388
9391
|
if (U.value) {
|
|
9389
9392
|
let e = [], n = f.value;
|
|
9390
9393
|
if (Z.value) {
|
|
9391
|
-
let r =
|
|
9394
|
+
let r = jo(t.value);
|
|
9392
9395
|
for (let t of r) {
|
|
9393
|
-
let r =
|
|
9396
|
+
let r = bu(t, n);
|
|
9394
9397
|
e.push(...r);
|
|
9395
9398
|
}
|
|
9396
|
-
} else e =
|
|
9399
|
+
} else e = bu(q.value, n);
|
|
9397
9400
|
W.value = e;
|
|
9398
9401
|
return;
|
|
9399
9402
|
}
|
|
@@ -9406,11 +9409,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9406
9409
|
return;
|
|
9407
9410
|
}
|
|
9408
9411
|
if (U.value) {
|
|
9409
|
-
let e = d.value, t =
|
|
9412
|
+
let e = d.value, t = bu(q.value, e);
|
|
9410
9413
|
ke(W.value.some((e) => e !== null && !t.includes(e)));
|
|
9411
9414
|
return;
|
|
9412
9415
|
}
|
|
9413
|
-
let e =
|
|
9416
|
+
let e = du(t.value, d.value);
|
|
9414
9417
|
ke(W.value.some((t) => !e.includes(t)));
|
|
9415
9418
|
}, { deep: !0 }), V(() => p.value, () => {
|
|
9416
9419
|
W.value = [], Ee.value = [], De.value = "[]";
|
|
@@ -9428,9 +9431,9 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9428
9431
|
await Me(!0, !0);
|
|
9429
9432
|
}, { debounce: 300 }), w(() => {
|
|
9430
9433
|
N(q.value);
|
|
9431
|
-
let e =
|
|
9434
|
+
let e = jo(t.value);
|
|
9432
9435
|
if (e.length && M(q.value, e), ke(), Z.value && U.value && ht(d.value), o?.value && y.value && s.value) {
|
|
9433
|
-
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && U.value ?
|
|
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;
|
|
9434
9437
|
e && n && l(t.value, {
|
|
9435
9438
|
api: s.value,
|
|
9436
9439
|
filterModel: d.value ?? void 0
|
|
@@ -9486,7 +9489,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9486
9489
|
disableFilterValue: Ve,
|
|
9487
9490
|
updateFilterModelWithSelectedValues: st
|
|
9488
9491
|
};
|
|
9489
|
-
},
|
|
9492
|
+
}, Iu = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
9490
9493
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
9491
9494
|
let t = e.parentElement;
|
|
9492
9495
|
for (; t && t !== document.body;) {
|
|
@@ -9537,23 +9540,23 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9537
9540
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
9538
9541
|
}
|
|
9539
9542
|
};
|
|
9540
|
-
},
|
|
9543
|
+
}, Lu = {
|
|
9541
9544
|
key: 0,
|
|
9542
9545
|
role: "list",
|
|
9543
9546
|
class: "pv-popover-list"
|
|
9544
|
-
},
|
|
9547
|
+
}, Ru = ["data-active"], zu = { key: 1 }, Bu = {
|
|
9545
9548
|
key: 1,
|
|
9546
9549
|
class: "pv-flex pv-inset-square-8",
|
|
9547
9550
|
style: { "justify-content": "center" }
|
|
9548
|
-
},
|
|
9551
|
+
}, Vu = /* @__PURE__ */ d({
|
|
9549
9552
|
__name: "FilterGroupMenu",
|
|
9550
9553
|
props: { filterColDef: {} },
|
|
9551
9554
|
setup(e, { expose: n }) {
|
|
9552
|
-
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({
|
|
9553
9556
|
alignment: "top right",
|
|
9554
9557
|
useTeleport: !0
|
|
9555
9558
|
}), M = (e) => {
|
|
9556
|
-
let t =
|
|
9559
|
+
let t = Su(f.value, e);
|
|
9557
9560
|
return t !== null && t.length > 0 && t.includes("true");
|
|
9558
9561
|
}, N = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
9559
9562
|
if (!p.value || !c.value) return;
|
|
@@ -9575,7 +9578,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9575
9578
|
if (!c.value) return;
|
|
9576
9579
|
let t = _.value.has(e);
|
|
9577
9580
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
9578
|
-
let n =
|
|
9581
|
+
let n = vu(c.value.getAdvancedFilterModel(), t ? null : Ql(e, ["true"]), e);
|
|
9579
9582
|
v(() => {
|
|
9580
9583
|
c.value?.setAdvancedFilterModel(n);
|
|
9581
9584
|
}), h(new Set([e]));
|
|
@@ -9587,7 +9590,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9587
9590
|
return;
|
|
9588
9591
|
}
|
|
9589
9592
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
9590
|
-
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));
|
|
9591
9594
|
n.size > 0 && (v(() => {
|
|
9592
9595
|
c.value?.setAdvancedFilterModel(t);
|
|
9593
9596
|
}), h(n));
|
|
@@ -9598,7 +9601,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9598
9601
|
return;
|
|
9599
9602
|
}
|
|
9600
9603
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
9601
|
-
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);
|
|
9602
9605
|
v(() => {
|
|
9603
9606
|
c.value?.setAdvancedFilterModel(e);
|
|
9604
9607
|
}), h(t);
|
|
@@ -9648,7 +9651,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9648
9651
|
"id",
|
|
9649
9652
|
"text",
|
|
9650
9653
|
"secondary-text"
|
|
9651
|
-
]), u(
|
|
9654
|
+
]), u(hs, {
|
|
9652
9655
|
ref_key: "popoverRef",
|
|
9653
9656
|
ref: j,
|
|
9654
9657
|
class: y({ "pv-hide": !x.value }),
|
|
@@ -9658,7 +9661,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9658
9661
|
}
|
|
9659
9662
|
}, {
|
|
9660
9663
|
default: H(() => [
|
|
9661
|
-
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", {
|
|
9662
9665
|
key: 0,
|
|
9663
9666
|
"data-active": e.isSelected ? "true" : null
|
|
9664
9667
|
}, [u(Ja, {
|
|
@@ -9673,7 +9676,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9673
9676
|
"text",
|
|
9674
9677
|
"selectedIds",
|
|
9675
9678
|
"onHandleSelected"
|
|
9676
|
-
])], 8,
|
|
9679
|
+
])], 8, Ru)) : (E(), o("li", zu, [u(oa, {
|
|
9677
9680
|
variant: "dark",
|
|
9678
9681
|
size: "sm",
|
|
9679
9682
|
"tooltip-position": "bottom-right",
|
|
@@ -9690,8 +9693,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9690
9693
|
"tooltip-content": H(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
9691
9694
|
_: 2
|
|
9692
9695
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
9693
|
-
x.value && B.value ? (E(), o("div",
|
|
9694
|
-
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, {
|
|
9695
9698
|
key: 2,
|
|
9696
9699
|
class: "pv-border-top pv-inset-square-8",
|
|
9697
9700
|
style: { "padding-top": "8px" },
|
|
@@ -9704,7 +9707,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9704
9707
|
_: 1
|
|
9705
9708
|
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Y), [ee, { ignore: [".pv-popover"] }]]]);
|
|
9706
9709
|
}
|
|
9707
|
-
}),
|
|
9710
|
+
}), Hu = {
|
|
9708
9711
|
key: 0,
|
|
9709
9712
|
role: "list",
|
|
9710
9713
|
class: "pv-flex pv-stack-4",
|
|
@@ -9712,37 +9715,37 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9712
9715
|
"--flex-wrap": "wrap",
|
|
9713
9716
|
"max-width": "100%"
|
|
9714
9717
|
}
|
|
9715
|
-
},
|
|
9718
|
+
}, Uu = {
|
|
9716
9719
|
key: 0,
|
|
9717
9720
|
style: {
|
|
9718
9721
|
"max-width": "100%",
|
|
9719
9722
|
"line-height": "1rem"
|
|
9720
9723
|
}
|
|
9721
|
-
},
|
|
9724
|
+
}, Wu = {
|
|
9722
9725
|
key: 0,
|
|
9723
9726
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
9724
9727
|
style: { "--inset-size": "4px" }
|
|
9725
|
-
},
|
|
9728
|
+
}, Gu = {
|
|
9726
9729
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
9727
9730
|
style: { "--inset-size": "8px" }
|
|
9728
|
-
},
|
|
9731
|
+
}, Ku = {
|
|
9729
9732
|
class: "pv-inset-inline",
|
|
9730
9733
|
style: { "--inset-size": "8px" }
|
|
9731
|
-
},
|
|
9734
|
+
}, qu = {
|
|
9732
9735
|
key: 0,
|
|
9733
9736
|
class: "pv-full-width"
|
|
9734
|
-
},
|
|
9737
|
+
}, Ju = {
|
|
9735
9738
|
key: 0,
|
|
9736
9739
|
class: "pv-flex-inline",
|
|
9737
9740
|
style: { "max-width": "100%" }
|
|
9738
|
-
},
|
|
9741
|
+
}, Yu = {
|
|
9739
9742
|
role: "list",
|
|
9740
9743
|
class: "pv-flex",
|
|
9741
9744
|
style: {
|
|
9742
9745
|
"--flex-wrap": "wrap",
|
|
9743
9746
|
"max-width": "100%"
|
|
9744
9747
|
}
|
|
9745
|
-
},
|
|
9748
|
+
}, Xu = { class: "pv-text-subdued pv-text-body-xxs" }, Zu = 4, Qu = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
9746
9749
|
__name: "SetFilter",
|
|
9747
9750
|
props: {
|
|
9748
9751
|
enableFocusView: {
|
|
@@ -9771,13 +9774,13 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9771
9774
|
"handle-settings-icon"
|
|
9772
9775
|
],
|
|
9773
9776
|
setup(e, { emit: n }) {
|
|
9774
|
-
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({
|
|
9775
9778
|
filterColDef: F(d, "filterColDef"),
|
|
9776
9779
|
filterStyle: F(d, "filterStyle"),
|
|
9777
9780
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
9778
9781
|
filterGroupStagedFields: x,
|
|
9779
9782
|
readOnly: F(d, "readOnly")
|
|
9780
|
-
}), { handleFocusUpdate: ve, isFocused: ye, removeFocus: X, isFocusable: be, canRemoveFocus: xe } =
|
|
9783
|
+
}), { handleFocusUpdate: ve, isFocused: ye, removeFocus: X, isFocusable: be, canRemoveFocus: xe } = Pl(), Se = (e) => {
|
|
9781
9784
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
9782
9785
|
if (e.id.startsWith("__")) {
|
|
9783
9786
|
let t = e.id.slice(2).split("__");
|
|
@@ -9785,7 +9788,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9785
9788
|
}
|
|
9786
9789
|
return e.id;
|
|
9787
9790
|
}, Ce = r(() => {
|
|
9788
|
-
if (be(
|
|
9791
|
+
if (be(No(d.filterColDef) ? jo(d.filterColDef) : [R.value])) return {
|
|
9789
9792
|
icon: "focus",
|
|
9790
9793
|
isDisabled: (e) => !be([e.context?.colField || R.value]),
|
|
9791
9794
|
tooltipText: (e) => {
|
|
@@ -9818,7 +9821,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9818
9821
|
Y(e);
|
|
9819
9822
|
let t = se(e)?.colField || R.value, n = Z(e);
|
|
9820
9823
|
ye(n, t) && xe() && X(n);
|
|
9821
|
-
}, Te = m(
|
|
9824
|
+
}, Te = m(hl, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Te.value), De = () => {
|
|
9822
9825
|
ue(), ce(!0);
|
|
9823
9826
|
}, Oe = () => {
|
|
9824
9827
|
v(() => {
|
|
@@ -9828,7 +9831,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9828
9831
|
let t = se(e)?.colField || R.value;
|
|
9829
9832
|
return ye(Z(e), t);
|
|
9830
9833
|
}, Ae = r(() => S.value > 0 ? !0 : ge.value ? _e.value.length > 0 : C.value.length > 0);
|
|
9831
|
-
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, {
|
|
9832
9835
|
label: I(oe)(n) || "",
|
|
9833
9836
|
showClear: !e.readOnly && (!ke(n) || I(xe)()),
|
|
9834
9837
|
disabled: e.readOnly,
|
|
@@ -9838,7 +9841,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9838
9841
|
"showClear",
|
|
9839
9842
|
"disabled",
|
|
9840
9843
|
"onHandleClose"
|
|
9841
|
-
])]))], 64))), 128))])) : a("", !0), u(I(
|
|
9844
|
+
])]))], 64))), 128))])) : a("", !0), u(I(Ys), {
|
|
9842
9845
|
modelValue: I(ne),
|
|
9843
9846
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null,
|
|
9844
9847
|
readOnly: e.readOnly,
|
|
@@ -9888,7 +9891,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9888
9891
|
onDropdownClosed: Oe,
|
|
9889
9892
|
onSeeMore: I(fe)
|
|
9890
9893
|
}, c({
|
|
9891
|
-
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), {
|
|
9892
9895
|
variant: "dark",
|
|
9893
9896
|
size: "sm",
|
|
9894
9897
|
"use-teleport": !0
|
|
@@ -9902,7 +9905,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9902
9905
|
content: H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
9903
9906
|
_: 1
|
|
9904
9907
|
})])]),
|
|
9905
|
-
suggestions: H(() => [s("div",
|
|
9908
|
+
suggestions: H(() => [s("div", Ku, [u(I(Ti), {
|
|
9906
9909
|
variant: "dark",
|
|
9907
9910
|
disableInteractive: !0,
|
|
9908
9911
|
position: "top-left",
|
|
@@ -9922,8 +9925,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9922
9925
|
I(re) || Ee.value || I(j) ? {
|
|
9923
9926
|
name: "header",
|
|
9924
9927
|
fn: H((t) => [
|
|
9925
|
-
I(j) ? (E(), o("p",
|
|
9926
|
-
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, {
|
|
9927
9930
|
key: 1,
|
|
9928
9931
|
ref_key: "filterGroupMenuRef",
|
|
9929
9932
|
ref: g,
|
|
@@ -9944,7 +9947,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9944
9947
|
fn: H((e) => [(E(), i(M(I(ie)), b(p(e)), null, 16))]),
|
|
9945
9948
|
key: "2"
|
|
9946
9949
|
} : void 0
|
|
9947
|
-
]), 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), {
|
|
9948
9951
|
variant: "dark",
|
|
9949
9952
|
disableInteractive: !0,
|
|
9950
9953
|
position: "bottom-left",
|
|
@@ -9952,20 +9955,20 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9952
9955
|
"use-teleport": !0,
|
|
9953
9956
|
style: { "--max-width": "200px" }
|
|
9954
9957
|
}, c({
|
|
9955
|
-
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)])]),
|
|
9956
9959
|
_: 2
|
|
9957
9960
|
}, [I(K) ? {
|
|
9958
9961
|
name: "content",
|
|
9959
9962
|
fn: H(() => [l(P(I(K)), 1)]),
|
|
9960
9963
|
key: "0"
|
|
9961
|
-
} : 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", {
|
|
9962
9965
|
key: `${I(ee)}-${e}-suggest`,
|
|
9963
9966
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
9964
9967
|
style: {
|
|
9965
9968
|
"max-width": "100%",
|
|
9966
9969
|
"line-height": "1rem"
|
|
9967
9970
|
}
|
|
9968
|
-
}, [u(I(
|
|
9971
|
+
}, [u(I(js), {
|
|
9969
9972
|
disabled: I(w),
|
|
9970
9973
|
label: I(oe)(e) || "",
|
|
9971
9974
|
onHandleClick: (t) => I(le)(e, I(q)(I(R), e)?.colField)
|
|
@@ -9975,18 +9978,18 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
9975
9978
|
"onHandleClick"
|
|
9976
9979
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
9977
9980
|
}
|
|
9978
|
-
}), [["__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 = {
|
|
9979
9982
|
id: "filter-vertical-drawer",
|
|
9980
9983
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
9981
9984
|
style: { height: "100%" }
|
|
9982
|
-
},
|
|
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 = {
|
|
9983
9986
|
class: "pv-flex",
|
|
9984
9987
|
style: {
|
|
9985
9988
|
"--flex-justify": "end",
|
|
9986
9989
|
"--flex-gap": "8px",
|
|
9987
9990
|
"margin-top": "auto"
|
|
9988
9991
|
}
|
|
9989
|
-
},
|
|
9992
|
+
}, dd = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
9990
9993
|
__name: "FilterPanel",
|
|
9991
9994
|
props: {
|
|
9992
9995
|
enableFocusView: {
|
|
@@ -10015,18 +10018,18 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10015
10018
|
},
|
|
10016
10019
|
emits: ["handle-settings-icon"],
|
|
10017
10020
|
setup(e) {
|
|
10018
|
-
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) => {
|
|
10019
10022
|
let t = _.value;
|
|
10020
10023
|
if (!t) return !1;
|
|
10021
|
-
let n =
|
|
10024
|
+
let n = No(e) ? jo(e) : [e.field || ""];
|
|
10022
10025
|
if (f.value) {
|
|
10023
10026
|
let e = /* @__PURE__ */ new Set();
|
|
10024
10027
|
return z(t, e), n.some((t) => e.has(t));
|
|
10025
10028
|
}
|
|
10026
10029
|
let r = t;
|
|
10027
10030
|
return n.some((e) => !!r[e]);
|
|
10028
|
-
}, N = (e) => p.readOnly && !M(e), F = r(() => c.value.filter((e) =>
|
|
10029
|
-
let n =
|
|
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
|
+
let n = No(e), r = No(t);
|
|
10030
10033
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
10031
10034
|
})), L = r(() => F.value), R = r(() => {
|
|
10032
10035
|
let e = D.value?.trim().toLowerCase() || "";
|
|
@@ -10069,7 +10072,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10069
10072
|
});
|
|
10070
10073
|
}
|
|
10071
10074
|
}
|
|
10072
|
-
}, { clearAllFocuses: U } =
|
|
10075
|
+
}, { clearAllFocuses: U } = Pl(), W = () => {
|
|
10073
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);
|
|
10074
10077
|
}, G = () => {
|
|
10075
10078
|
w.value = !1, D.value = "";
|
|
@@ -10078,8 +10081,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10078
10081
|
}, ie = () => {
|
|
10079
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();
|
|
10080
10083
|
};
|
|
10081
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
10082
|
-
(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, {
|
|
10083
10086
|
key: 0,
|
|
10084
10087
|
"enable-focus-view": p.enableFocusView,
|
|
10085
10088
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -10096,7 +10099,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10096
10099
|
"read-only",
|
|
10097
10100
|
"disable-unselected"
|
|
10098
10101
|
])) : a("", !0)], 64))), 128)),
|
|
10099
|
-
s("div",
|
|
10102
|
+
s("div", ed, [p.enableVerticalPanel ? (E(), i(I(An), {
|
|
10100
10103
|
key: 0,
|
|
10101
10104
|
label: "All Filters",
|
|
10102
10105
|
onClick: V,
|
|
@@ -10116,7 +10119,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10116
10119
|
variant: "tertiary"
|
|
10117
10120
|
}, null, 8, ["value"])) : a("", !0)
|
|
10118
10121
|
])) : a("", !0)]),
|
|
10119
|
-
p.enableVerticalPanel ? (E(), i(I(
|
|
10122
|
+
p.enableVerticalPanel ? (E(), i(I(Bs), {
|
|
10120
10123
|
key: 0,
|
|
10121
10124
|
modelValue: w.value,
|
|
10122
10125
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
@@ -10128,7 +10131,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10128
10131
|
"z-index": "10"
|
|
10129
10132
|
}
|
|
10130
10133
|
}, {
|
|
10131
|
-
header: H(() => [s("div",
|
|
10134
|
+
header: H(() => [s("div", td, [s("p", nd, "All Filters (" + P(L.value.length) + ")", 1), s("button", {
|
|
10132
10135
|
class: "pv-button-ghost",
|
|
10133
10136
|
"aria-label": "Close",
|
|
10134
10137
|
onClick: r[2] ||= (e) => re()
|
|
@@ -10137,7 +10140,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10137
10140
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
10138
10141
|
placeholder: "Search Filters"
|
|
10139
10142
|
}, null, 8, ["modelValue"])]),
|
|
10140
|
-
footer: H(() => [s("div",
|
|
10143
|
+
footer: H(() => [s("div", cd, [p.readOnly ? (E(), i(I(An), {
|
|
10141
10144
|
key: 1,
|
|
10142
10145
|
variant: "ghost",
|
|
10143
10146
|
label: "Close",
|
|
@@ -10145,7 +10148,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10145
10148
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
10146
10149
|
class: "pv-button-ghost",
|
|
10147
10150
|
onClick: r[5] ||= (e) => W()
|
|
10148
|
-
}, "Clear All"), s("div",
|
|
10151
|
+
}, "Clear All"), s("div", ld, [u(I(An), {
|
|
10149
10152
|
variant: "ghost",
|
|
10150
10153
|
label: "Cancel",
|
|
10151
10154
|
onClick: r[6] ||= (e) => re()
|
|
@@ -10160,7 +10163,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10160
10163
|
label: "No Changes",
|
|
10161
10164
|
disabled: ""
|
|
10162
10165
|
}))])], 64))])]),
|
|
10163
|
-
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", {
|
|
10164
10167
|
key: t.field,
|
|
10165
10168
|
class: y([{ "pv-border-bottom": c < R.value.length - 1 }, "pv-stack-12"])
|
|
10166
10169
|
}, [s("details", {
|
|
@@ -10169,7 +10172,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10169
10172
|
}, [s("summary", {
|
|
10170
10173
|
class: "pv-flex pv-full-width",
|
|
10171
10174
|
onClick: (e) => N(t) && e.preventDefault()
|
|
10172
|
-
}, [s("span",
|
|
10175
|
+
}, [s("span", sd, P(t.headerName), 1)], 8, od), s("div", null, [I(n) ? (E(), i(Qu, {
|
|
10173
10176
|
key: 0,
|
|
10174
10177
|
"filter-style": "vertical",
|
|
10175
10178
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -10187,17 +10190,17 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10187
10190
|
"focus-text",
|
|
10188
10191
|
"read-only",
|
|
10189
10192
|
"disable-unselected"
|
|
10190
|
-
])) : a("", !0)])], 10,
|
|
10193
|
+
])) : a("", !0)])], 10, ad)], 2))), 128))])])]),
|
|
10191
10194
|
_: 1
|
|
10192
10195
|
}, 8, ["modelValue"])) : a("", !0)
|
|
10193
|
-
]), u(I(
|
|
10196
|
+
]), u(I(Ds), {
|
|
10194
10197
|
modelValue: T.value,
|
|
10195
10198
|
"onUpdate:modelValue": r[12] ||= (e) => T.value = e,
|
|
10196
10199
|
header: "Clear All Filters",
|
|
10197
10200
|
style: { top: "50%" }
|
|
10198
10201
|
}, {
|
|
10199
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)]]),
|
|
10200
|
-
footer: H(() => [s("div",
|
|
10203
|
+
footer: H(() => [s("div", ud, [u(I(An), {
|
|
10201
10204
|
label: "Cancel",
|
|
10202
10205
|
variant: "secondary",
|
|
10203
10206
|
size: "lg",
|
|
@@ -10211,21 +10214,21 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10211
10214
|
_: 1
|
|
10212
10215
|
}, 8, ["modelValue"])], 64));
|
|
10213
10216
|
}
|
|
10214
|
-
}), [["__scopeId", "data-v-91375005"]]),
|
|
10217
|
+
}), [["__scopeId", "data-v-91375005"]]), fd = { key: 2 }, pd = {
|
|
10215
10218
|
key: 0,
|
|
10216
10219
|
class: "pv-flex ag-header-actions"
|
|
10217
|
-
},
|
|
10220
|
+
}, md = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
10218
10221
|
__name: "HeaderCellRenderer",
|
|
10219
10222
|
props: { params: {} },
|
|
10220
10223
|
setup(e, { expose: t }) {
|
|
10221
|
-
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(() => {
|
|
10222
10225
|
let e = l.params.column.getColDef();
|
|
10223
10226
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
10224
10227
|
}), b = r(() => {
|
|
10225
10228
|
if (!n.value || n.value.length === 0) return "";
|
|
10226
10229
|
let e = n.value.find((e) => e.colId === l.params.column.getColId()), t = e ? e.sort : "";
|
|
10227
10230
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
10228
|
-
}), C = r(() =>
|
|
10231
|
+
}), C = r(() => ko(l.params.column.getColDef())), w = r(() => {
|
|
10229
10232
|
let e = l.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
10230
10233
|
if (!t || t.length <= 1) return [];
|
|
10231
10234
|
let n = $(e).aggFuncDisplayNameMap || {};
|
|
@@ -10241,7 +10244,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10241
10244
|
}, N = () => {
|
|
10242
10245
|
_.value = !0, g.value && l.params.showColumnMenu(g.value, M);
|
|
10243
10246
|
}, F = (e) => {
|
|
10244
|
-
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value =
|
|
10247
|
+
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value = xo(e.column.getColDef().context?.dataType), p.value = So(p.value, e.column.getColDef().context?.dataType);
|
|
10245
10248
|
}, I = () => {
|
|
10246
10249
|
f.value && l.params.progressSort(!1);
|
|
10247
10250
|
};
|
|
@@ -10294,12 +10297,12 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10294
10297
|
"modelValue",
|
|
10295
10298
|
"options",
|
|
10296
10299
|
"label"
|
|
10297
|
-
])) : (E(), o("p",
|
|
10300
|
+
])) : (E(), o("p", fd, P(p.value), 1)),
|
|
10298
10301
|
f.value && b.value !== "" ? (E(), i(En, {
|
|
10299
10302
|
key: 3,
|
|
10300
10303
|
name: b.value
|
|
10301
10304
|
}, null, 8, ["name"])) : a("", !0)
|
|
10302
|
-
], 6), v.value ? (E(), o("div",
|
|
10305
|
+
], 6), v.value ? (E(), o("div", pd, [s("div", {
|
|
10303
10306
|
ref_key: "menuButton",
|
|
10304
10307
|
ref: g,
|
|
10305
10308
|
class: "ag-header-cell-menu-button",
|
|
@@ -10312,7 +10315,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10312
10315
|
onClick: W(N, ["stop", "prevent"])
|
|
10313
10316
|
})], 4)])) : a("", !0)], 4));
|
|
10314
10317
|
}
|
|
10315
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
10318
|
+
}), [["__scopeId", "data-v-385ad98a"]]), hd = {
|
|
10316
10319
|
headerHeight: "30px",
|
|
10317
10320
|
headerBackgroundColor: "white",
|
|
10318
10321
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -10327,14 +10330,14 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10327
10330
|
rangeSelectionBorderStyle: "solid",
|
|
10328
10331
|
menuBackgroundColor: "white",
|
|
10329
10332
|
accentColor: "#36C5BA"
|
|
10330
|
-
},
|
|
10331
|
-
...
|
|
10333
|
+
}, gd = Me.withParams({
|
|
10334
|
+
...hd,
|
|
10332
10335
|
headerRowBorder: !0,
|
|
10333
10336
|
rowHoverColor: "#F7F8F8",
|
|
10334
10337
|
wrapperBorder: !0,
|
|
10335
10338
|
wrapperBorderRadius: "8px"
|
|
10336
|
-
}),
|
|
10337
|
-
...
|
|
10339
|
+
}), _d = Me.withParams({
|
|
10340
|
+
...hd,
|
|
10338
10341
|
headerRowBorder: !1,
|
|
10339
10342
|
rowHoverColor: "transparent",
|
|
10340
10343
|
wrapperBorder: !1,
|
|
@@ -10342,20 +10345,20 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10342
10345
|
rowBorder: !1,
|
|
10343
10346
|
columnBorder: !1,
|
|
10344
10347
|
rowHeight: "50px"
|
|
10345
|
-
}),
|
|
10346
|
-
"pv-data-table-base":
|
|
10348
|
+
}), vd = {
|
|
10349
|
+
"pv-data-table-base": gd,
|
|
10347
10350
|
"pv-data-table-grouped": Me.withParams({
|
|
10348
|
-
...
|
|
10351
|
+
...hd,
|
|
10349
10352
|
headerRowBorder: !0,
|
|
10350
10353
|
rowHoverColor: "#F7F8F8",
|
|
10351
10354
|
wrapperBorder: !0,
|
|
10352
10355
|
wrapperBorderRadius: "8px"
|
|
10353
10356
|
}),
|
|
10354
|
-
"pv-data-table-grouped-card":
|
|
10355
|
-
},
|
|
10357
|
+
"pv-data-table-grouped-card": _d
|
|
10358
|
+
}, yd = { class: "pv-popover-menu" }, bd = {
|
|
10356
10359
|
class: "pv-popover",
|
|
10357
10360
|
style: { "--height": "auto" }
|
|
10358
|
-
},
|
|
10361
|
+
}, xd = ["disabled"], Sd = /* @__PURE__ */ d({
|
|
10359
10362
|
__name: "ExportMenu",
|
|
10360
10363
|
props: { getCsvData: { type: Function } },
|
|
10361
10364
|
setup(e) {
|
|
@@ -10370,27 +10373,27 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10370
10373
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
10371
10374
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
10372
10375
|
}
|
|
10373
|
-
return (e, n) => (E(), o("nav",
|
|
10376
|
+
return (e, n) => (E(), o("nav", yd, [n[0] ||= s("button", {
|
|
10374
10377
|
type: "button",
|
|
10375
10378
|
class: "pv-button-icon"
|
|
10376
10379
|
}, [s("svg", {
|
|
10377
10380
|
"aria-hidden": "true",
|
|
10378
10381
|
class: "pv-icon-24"
|
|
10379
|
-
}, [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", {
|
|
10380
10383
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
10381
10384
|
onClick: W(i, ["prevent"]),
|
|
10382
10385
|
disabled: r.value
|
|
10383
|
-
}, [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)])]));
|
|
10384
10387
|
}
|
|
10385
|
-
}),
|
|
10388
|
+
}), Cd = {
|
|
10386
10389
|
key: 1,
|
|
10387
10390
|
class: ""
|
|
10388
|
-
},
|
|
10391
|
+
}, wd = /* @__PURE__ */ d({
|
|
10389
10392
|
__name: "PaginationPanel",
|
|
10390
10393
|
props: { panelSize: { default: "xl" } },
|
|
10391
10394
|
setup(e) {
|
|
10392
10395
|
Se.registerModules([X]);
|
|
10393
|
-
let n = m(
|
|
10396
|
+
let n = m(qc, O(null)), a = m(rl, O(1)), s = m(il, O(0)), c = e, l = r(() => {
|
|
10394
10397
|
let e = s.value, t = a.value;
|
|
10395
10398
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
10396
10399
|
let n = [];
|
|
@@ -10422,7 +10425,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10422
10425
|
"size",
|
|
10423
10426
|
"onClick",
|
|
10424
10427
|
"label"
|
|
10425
|
-
])) : (E(), o("span",
|
|
10428
|
+
])) : (E(), o("span", Cd, "..."))], 64))), 128)),
|
|
10426
10429
|
u(An, {
|
|
10427
10430
|
variant: "ghost",
|
|
10428
10431
|
onClick: f,
|
|
@@ -10433,10 +10436,10 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10433
10436
|
}, null, 8, ["disabled", "size"])
|
|
10434
10437
|
], 2));
|
|
10435
10438
|
}
|
|
10436
|
-
}),
|
|
10439
|
+
}), Td = {
|
|
10437
10440
|
key: 0,
|
|
10438
10441
|
class: "pv-tag"
|
|
10439
|
-
},
|
|
10442
|
+
}, Ed = /* @__PURE__ */ d({
|
|
10440
10443
|
__name: "TagCellRenderer",
|
|
10441
10444
|
props: { params: {} },
|
|
10442
10445
|
setup(e) {
|
|
@@ -10444,29 +10447,29 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10444
10447
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
10445
10448
|
return e.trim() === "" ? null : e;
|
|
10446
10449
|
});
|
|
10447
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
10450
|
+
return (e, t) => n.value ? (E(), o("div", Td, P(n.value), 1)) : a("", !0);
|
|
10448
10451
|
}
|
|
10449
|
-
}),
|
|
10452
|
+
}), Dd = {
|
|
10450
10453
|
key: 0,
|
|
10451
10454
|
class: "pv-table-row-number"
|
|
10452
|
-
},
|
|
10455
|
+
}, Od = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
10453
10456
|
__name: "RowCountCellRenderer",
|
|
10454
10457
|
props: { params: {} },
|
|
10455
10458
|
setup(e) {
|
|
10456
10459
|
let t = e, n = r(() => (t.params.node?.rowIndex || 0) + 1), i = r(() => {
|
|
10457
10460
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
10458
|
-
return e &&
|
|
10461
|
+
return e && ko(e) ? n.toLocaleString() : n;
|
|
10459
10462
|
});
|
|
10460
|
-
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)])]));
|
|
10461
10464
|
}
|
|
10462
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
10465
|
+
}), [["__scopeId", "data-v-686928ce"]]), kd = /* @__PURE__ */ d({
|
|
10463
10466
|
__name: "TableSearch",
|
|
10464
10467
|
props: {
|
|
10465
10468
|
placeholder: {},
|
|
10466
10469
|
searchStyle: {}
|
|
10467
10470
|
},
|
|
10468
10471
|
setup(e) {
|
|
10469
|
-
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) => {
|
|
10470
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));
|
|
10471
10474
|
}, h = (e) => {
|
|
10472
10475
|
if (s?.value) {
|
|
@@ -10474,7 +10477,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10474
10477
|
console.error("Client-side filtering with query builder is not yet supported");
|
|
10475
10478
|
return;
|
|
10476
10479
|
}
|
|
10477
|
-
f(c.value ?
|
|
10480
|
+
f(c.value ? nu(e) : tu(e));
|
|
10478
10481
|
}
|
|
10479
10482
|
}, g = async (e) => {
|
|
10480
10483
|
if (!e || e.length < 2) {
|
|
@@ -10489,7 +10492,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10489
10492
|
};
|
|
10490
10493
|
o.value = !0, a.value = ((await d.value?.(t))?.filter((e) => e !== null) || []).map((e) => {
|
|
10491
10494
|
let t = "search", n = s.value?.getColumnDef(e.queryField || "");
|
|
10492
|
-
return n && (t =
|
|
10495
|
+
return n && (t = xo(n.context?.dataType || null) || "search"), {
|
|
10493
10496
|
id: `${e.queryField}-${e.queryText}`,
|
|
10494
10497
|
text: e.queryText,
|
|
10495
10498
|
icon: t,
|
|
@@ -10508,7 +10511,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10508
10511
|
debounce: 300,
|
|
10509
10512
|
immediate: !0,
|
|
10510
10513
|
deep: !0
|
|
10511
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(
|
|
10514
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(Uc, {
|
|
10512
10515
|
key: 0,
|
|
10513
10516
|
placeholder: e.placeholder,
|
|
10514
10517
|
"search-text": r.value,
|
|
@@ -10531,28 +10534,28 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10531
10534
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
10532
10535
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
10533
10536
|
}
|
|
10534
|
-
}),
|
|
10537
|
+
}), Ad = {
|
|
10535
10538
|
style: {
|
|
10536
10539
|
"background-color": "white",
|
|
10537
10540
|
"max-width": "300px"
|
|
10538
10541
|
},
|
|
10539
10542
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
10540
|
-
},
|
|
10543
|
+
}, jd = { style: { color: "black" } }, Md = /* @__PURE__ */ d({
|
|
10541
10544
|
__name: "TableTooltip",
|
|
10542
10545
|
props: { params: {} },
|
|
10543
10546
|
setup(e) {
|
|
10544
|
-
return (t, n) => (E(), o("div",
|
|
10547
|
+
return (t, n) => (E(), o("div", Ad, [s("p", jd, P(e.params.value), 1)]));
|
|
10545
10548
|
}
|
|
10546
|
-
}),
|
|
10549
|
+
}), Nd = { class: "pv-stack-16" }, Pd = { class: "pv-flex pv-space-between" }, Fd = { class: "pv-flex" }, Id = { style: {
|
|
10547
10550
|
width: "30%",
|
|
10548
10551
|
"max-width": "50%"
|
|
10549
|
-
} },
|
|
10552
|
+
} }, Ld = {
|
|
10550
10553
|
key: 0,
|
|
10551
10554
|
class: "pv-table-overlay"
|
|
10552
|
-
},
|
|
10555
|
+
}, Rd = {
|
|
10553
10556
|
class: "pv-text-body-xs pv-text-center",
|
|
10554
10557
|
style: { "padding-top": "16px" }
|
|
10555
|
-
},
|
|
10558
|
+
}, zd = /* @__PURE__ */ d({
|
|
10556
10559
|
__name: "PvDataTable",
|
|
10557
10560
|
props: {
|
|
10558
10561
|
allFieldsAreFocusable: {
|
|
@@ -10781,17 +10784,17 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10781
10784
|
let p = r(() => f.layout ? {} : {
|
|
10782
10785
|
height: f.containerHeight,
|
|
10783
10786
|
minHeight: f.containerMinHeight
|
|
10784
|
-
}), 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 :
|
|
10785
|
-
let t =
|
|
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
|
+
let t = jo(e), n = e.context;
|
|
10786
10789
|
return Array.from(new Set([
|
|
10787
10790
|
...t,
|
|
10788
10791
|
...n?.queryColIds || [],
|
|
10789
10792
|
...t.flatMap((e) => G.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
10790
10793
|
]));
|
|
10791
10794
|
}, M = (e, t) => {
|
|
10792
|
-
if (
|
|
10793
|
-
let n = G.find((e) =>
|
|
10794
|
-
return !!n && j(n).some((t) =>
|
|
10795
|
+
if (au(e, t)) return !0;
|
|
10796
|
+
let n = G.find((e) => Mo(e) === t);
|
|
10797
|
+
return !!n && j(n).some((t) => au(e, t));
|
|
10795
10798
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
10796
10799
|
if (!J.value) {
|
|
10797
10800
|
e.success({ rowData: [] }), q.value = !0;
|
|
@@ -10803,7 +10806,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10803
10806
|
let t = e.request.rowGroupCols[0].id;
|
|
10804
10807
|
o = M(s, t);
|
|
10805
10808
|
}
|
|
10806
|
-
if (e.request.rowGroupCols =
|
|
10809
|
+
if (e.request.rowGroupCols = Po(e.request.rowGroupCols, e.api.getColumnDefs?.()), (e.request.groupKeys?.length || 0) > 0) {
|
|
10807
10810
|
let t = e.parentNode?.data;
|
|
10808
10811
|
if (t?.bucketMin != null && t?.bucketMax != null) {
|
|
10809
10812
|
if (f.enableAdvancedFilter) {
|
|
@@ -10825,7 +10828,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10825
10828
|
filter: t.bucketMax
|
|
10826
10829
|
}]
|
|
10827
10830
|
};
|
|
10828
|
-
n =
|
|
10831
|
+
n = vu(n, i, e);
|
|
10829
10832
|
}
|
|
10830
10833
|
}), n && (e.request.filterModel = n);
|
|
10831
10834
|
} else {
|
|
@@ -10861,11 +10864,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10861
10864
|
} : e.request.filterModel = s;
|
|
10862
10865
|
} else {
|
|
10863
10866
|
let t = e.request.filterModel;
|
|
10864
|
-
e.request.filterModel =
|
|
10867
|
+
e.request.filterModel = ou(G, t, s);
|
|
10865
10868
|
}
|
|
10866
10869
|
e.success = (e) => {
|
|
10867
10870
|
if (oe.value = !1, f.enableFocusView && ct.value.length > 0 && st.value && e.rowData) {
|
|
10868
|
-
let n =
|
|
10871
|
+
let n = To(e.rowData, st.value, ct.value);
|
|
10869
10872
|
if (n) {
|
|
10870
10873
|
e.rowData = n, t(e);
|
|
10871
10874
|
return;
|
|
@@ -10877,7 +10880,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10877
10880
|
}, f.serverSideRowHandler?.(e);
|
|
10878
10881
|
} } : null, L = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
10879
10882
|
let t = [], n = { ...Ze.value };
|
|
10880
|
-
t = !q.value && ie ?
|
|
10883
|
+
t = !q.value && ie ? Su(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await rt(e.colDef, {
|
|
10881
10884
|
api: e.api,
|
|
10882
10885
|
filterModel: n,
|
|
10883
10886
|
useStaged: !1
|
|
@@ -10896,19 +10899,19 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10896
10899
|
suppressColumnsToolPanel: !0,
|
|
10897
10900
|
minWidth: 150,
|
|
10898
10901
|
flex: 1,
|
|
10899
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
10902
|
+
headerComponent: f.enableInlineFilters ? void 0 : md,
|
|
10900
10903
|
cellDataType: !1,
|
|
10901
|
-
tooltipComponent:
|
|
10902
|
-
cellClass: (e) => bt(e.column) ? "" :
|
|
10904
|
+
tooltipComponent: Md,
|
|
10905
|
+
cellClass: (e) => bt(e.column) ? "" : ko(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
10903
10906
|
cellRendererSelector: (e) => {
|
|
10904
10907
|
if (R(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
10905
|
-
component:
|
|
10908
|
+
component: ql,
|
|
10906
10909
|
params: e
|
|
10907
10910
|
};
|
|
10908
10911
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
10909
10912
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
10910
10913
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
10911
|
-
component:
|
|
10914
|
+
component: Od,
|
|
10912
10915
|
params: e
|
|
10913
10916
|
};
|
|
10914
10917
|
}
|
|
@@ -10933,7 +10936,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10933
10936
|
}
|
|
10934
10937
|
}, W = (e, t) => {
|
|
10935
10938
|
if (!e) return null;
|
|
10936
|
-
let n = { ...e }, r = t, i =
|
|
10939
|
+
let n = { ...e }, r = t, i = jo(e);
|
|
10937
10940
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
10938
10941
|
else return null;
|
|
10939
10942
|
if (i.length > 0) {
|
|
@@ -10944,21 +10947,21 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10944
10947
|
let t = e.headerValueGetter;
|
|
10945
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 || "";
|
|
10946
10949
|
}
|
|
10947
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType ===
|
|
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;
|
|
10948
10951
|
}, G = f.colDefs?.map((e) => {
|
|
10949
10952
|
let t = { ...e };
|
|
10950
|
-
F && L &&
|
|
10953
|
+
F && L && su(e) && (t = cu(e, L));
|
|
10951
10954
|
let n = e.context;
|
|
10952
10955
|
return n && (t = W(t, n)), t;
|
|
10953
10956
|
}).filter((e) => e != null) || [], re = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
10954
|
-
for (let e of G) for (let t of
|
|
10955
|
-
let ie =
|
|
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 = eu(f.initialGridState, G, f.enableAdvancedFilter), ae = O(null), K = O([]), q = m(tl, O(!1)), oe = O(!1), se = r(() => {
|
|
10956
10959
|
if (K.value.length > 0) {
|
|
10957
10960
|
let e = K.value[0], t = G.find((t) => t.field === e), n = Ze.value, r = !n;
|
|
10958
|
-
if (!r &&
|
|
10961
|
+
if (!r && Ou(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
10959
10962
|
}
|
|
10960
10963
|
return null;
|
|
10961
|
-
}), 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;
|
|
10962
10965
|
if (it.value = f.filterValuesSetHandler, it.value) {
|
|
10963
10966
|
let e = (e) => ({
|
|
10964
10967
|
hasMore: Se.filterHasMoreMap.value[e],
|
|
@@ -10987,8 +10990,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
10987
10990
|
debounce: 250
|
|
10988
10991
|
});
|
|
10989
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);
|
|
10990
|
-
D(
|
|
10991
|
-
let gt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ct.value.length && !st.value ? f.rowData :
|
|
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
|
+
let gt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ct.value.length && !st.value ? f.rowData : To(f.rowData, st.value, ct.value));
|
|
10992
10995
|
V(() => ct.value, (e) => {
|
|
10993
10996
|
T("focus-update", {
|
|
10994
10997
|
filterField: st.value,
|
|
@@ -11010,7 +11013,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11010
11013
|
}, vt = (e) => {
|
|
11011
11014
|
if (Y.value) {
|
|
11012
11015
|
let t = Tt();
|
|
11013
|
-
|
|
11016
|
+
_u(Ze.value, t) || (Ze.value = t, T("filter-changed", e));
|
|
11014
11017
|
}
|
|
11015
11018
|
}, yt = (e) => {
|
|
11016
11019
|
X.value = e.api?.getState()?.sort?.sortModel || [], q.value && T("sort-changed", e);
|
|
@@ -11091,10 +11094,10 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11091
11094
|
}, Tt = () => Y.value ? f.enableAdvancedFilter ? Y.value.getAdvancedFilterModel() : Y.value.getFilterModel() : Ze.value, At = (e) => {
|
|
11092
11095
|
if (!Y.value) return !1;
|
|
11093
11096
|
if (f.enableAdvancedFilter) {
|
|
11094
|
-
let t = e &&
|
|
11097
|
+
let t = e && Ou(e) ? $l(e) : e;
|
|
11095
11098
|
Y.value.setAdvancedFilterModel(t);
|
|
11096
11099
|
} else {
|
|
11097
|
-
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;
|
|
11098
11101
|
Y.value.setFilterModel(e);
|
|
11099
11102
|
}
|
|
11100
11103
|
return !0;
|
|
@@ -11150,7 +11153,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11150
11153
|
if (e) return e.click(), !0;
|
|
11151
11154
|
}
|
|
11152
11155
|
return !1;
|
|
11153
|
-
}, Bt = O(
|
|
11156
|
+
}, Bt = O(kl), Vt = O({ loadingMessage: "One moment please..." }), Ht = O((() => {
|
|
11154
11157
|
let e = {
|
|
11155
11158
|
headerName: "",
|
|
11156
11159
|
minWidth: 200,
|
|
@@ -11160,7 +11163,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11160
11163
|
headerComponent: void 0,
|
|
11161
11164
|
cellRendererParams: {
|
|
11162
11165
|
suppressCount: !0,
|
|
11163
|
-
innerRenderer:
|
|
11166
|
+
innerRenderer: Ul,
|
|
11164
11167
|
innerRendererParams: (e) => ({
|
|
11165
11168
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
11166
11169
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -11179,7 +11182,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11179
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;
|
|
11180
11183
|
return;
|
|
11181
11184
|
}
|
|
11182
|
-
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;
|
|
11183
11186
|
}, Wt = (e) => {
|
|
11184
11187
|
if (e.node.group) return {
|
|
11185
11188
|
backgroundColor: "#F7F8F8",
|
|
@@ -11189,12 +11192,12 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11189
11192
|
let t = e.values;
|
|
11190
11193
|
if (e.rowNode.leafGroup) return {
|
|
11191
11194
|
values: t,
|
|
11192
|
-
value:
|
|
11195
|
+
value: Wl(t)
|
|
11193
11196
|
};
|
|
11194
11197
|
let n = e.values.flatMap((e) => e.values || []);
|
|
11195
11198
|
return {
|
|
11196
11199
|
values: n,
|
|
11197
|
-
value:
|
|
11200
|
+
value: Wl(n)
|
|
11198
11201
|
};
|
|
11199
11202
|
} };
|
|
11200
11203
|
S(() => {
|
|
@@ -11214,11 +11217,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11214
11217
|
let t = Y.value;
|
|
11215
11218
|
if (!t) return;
|
|
11216
11219
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
11217
|
-
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);
|
|
11218
11221
|
};
|
|
11219
11222
|
V(() => f.initialGridState, () => {
|
|
11220
11223
|
if (f.initialGridState) {
|
|
11221
|
-
let e =
|
|
11224
|
+
let e = eu(f.initialGridState, G, f.enableAdvancedFilter);
|
|
11222
11225
|
e && Kt(e);
|
|
11223
11226
|
}
|
|
11224
11227
|
}, { deep: !0 });
|
|
@@ -11251,10 +11254,10 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11251
11254
|
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
11252
11255
|
_: 1
|
|
11253
11256
|
})) : a("", !0),
|
|
11254
|
-
U(s("div",
|
|
11257
|
+
U(s("div", Nd, [s("div", Pd, [(E(), i(n, {
|
|
11255
11258
|
to: e.filterTeleportLocation,
|
|
11256
11259
|
disabled: !e.filterTeleportLocation
|
|
11257
|
-
}, [lt.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
11260
|
+
}, [lt.value.length > 0 && !f.enableInlineFilters ? (E(), i(dd, {
|
|
11258
11261
|
key: 0,
|
|
11259
11262
|
"enable-focus-view": e.enableFocusView,
|
|
11260
11263
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -11274,11 +11277,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11274
11277
|
"max-horizontal-filters",
|
|
11275
11278
|
"read-only",
|
|
11276
11279
|
"disable-unselected-filters"
|
|
11277
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
11280
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", Fd, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Tl, {
|
|
11278
11281
|
key: 0,
|
|
11279
11282
|
rowGroupLimit: e.rowGroupLimit,
|
|
11280
11283
|
enableFocusView: e.enableFocusView
|
|
11281
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
11284
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Sd, {
|
|
11282
11285
|
key: 1,
|
|
11283
11286
|
getCsvData: wt
|
|
11284
11287
|
})) : a("", !0)])])], 512), [[ne, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
@@ -11290,7 +11293,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11290
11293
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
11291
11294
|
key: 1,
|
|
11292
11295
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
11293
|
-
}, [s("div",
|
|
11296
|
+
}, [s("div", Id, [e.enableTableSearch ? (E(), i(kd, {
|
|
11294
11297
|
key: 0,
|
|
11295
11298
|
placeholder: e.tableSearchPlaceholder,
|
|
11296
11299
|
disabled: !J.value,
|
|
@@ -11386,14 +11389,14 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11386
11389
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
11387
11390
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
11388
11391
|
advancedFilterParent: Zt.value
|
|
11389
|
-
}), 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",
|
|
11390
|
-
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)
|
|
11391
11394
|
], 4));
|
|
11392
11395
|
}
|
|
11393
|
-
}),
|
|
11396
|
+
}), Bd = {
|
|
11394
11397
|
class: "pv-flex",
|
|
11395
11398
|
style: { "white-space": "nowrap" }
|
|
11396
|
-
},
|
|
11399
|
+
}, Vd = { class: "pv-text-body-md" }, Hd = /* @__PURE__ */ d({
|
|
11397
11400
|
inheritAttrs: !1,
|
|
11398
11401
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
11399
11402
|
props: {
|
|
@@ -11402,16 +11405,16 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11402
11405
|
context: {}
|
|
11403
11406
|
},
|
|
11404
11407
|
setup(e) {
|
|
11405
|
-
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, {
|
|
11406
11409
|
key: 0,
|
|
11407
11410
|
name: e.context.rightIcon,
|
|
11408
11411
|
class: "pv-text-subdued"
|
|
11409
11412
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
11410
11413
|
}
|
|
11411
|
-
}),
|
|
11414
|
+
}), Ud = { class: "pv-relative" }, Wd = {
|
|
11412
11415
|
role: "list",
|
|
11413
11416
|
class: "pv-relative"
|
|
11414
|
-
},
|
|
11417
|
+
}, Gd = ["data-active"], Kd = { style: { cursor: "pointer" } }, qd = { role: "list" }, Jd = /* @__PURE__ */ d({
|
|
11415
11418
|
__name: "PvTableOptionsPanel",
|
|
11416
11419
|
props: {
|
|
11417
11420
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -11419,7 +11422,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11419
11422
|
},
|
|
11420
11423
|
emits: ["toggle-group", "table-overlay-change"],
|
|
11421
11424
|
setup(e, { emit: n }) {
|
|
11422
|
-
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({
|
|
11423
11426
|
alignment: "top",
|
|
11424
11427
|
popoverCssProperties: {
|
|
11425
11428
|
maxWidth: "300px",
|
|
@@ -11446,13 +11449,13 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11446
11449
|
}, C = () => {
|
|
11447
11450
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
11448
11451
|
};
|
|
11449
|
-
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, {
|
|
11450
11453
|
open: m.value,
|
|
11451
11454
|
label: "Table Configuration",
|
|
11452
11455
|
icon: "settings",
|
|
11453
11456
|
onClick: r[0] ||= (e) => m.value = !m.value,
|
|
11454
11457
|
onHandleToggleDropdown: r[1] ||= (e) => h.value = !1
|
|
11455
|
-
}, null, 8, ["open"]), u(
|
|
11458
|
+
}, null, 8, ["open"]), u(hs, {
|
|
11456
11459
|
class: y({ "pv-hide": !m.value }),
|
|
11457
11460
|
"css-custom-properties": {
|
|
11458
11461
|
minWidth: "240px",
|
|
@@ -11467,7 +11470,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11467
11470
|
"padding-top": "4px",
|
|
11468
11471
|
"padding-bottom": "12px"
|
|
11469
11472
|
}
|
|
11470
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
11473
|
+
}, " Table Configuration ")], -1), s("ul", Wd, [v.value ? (E(), o("li", {
|
|
11471
11474
|
key: 0,
|
|
11472
11475
|
id: "table-config-overlay",
|
|
11473
11476
|
"data-active": h.value ? !0 : null,
|
|
@@ -11480,7 +11483,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11480
11483
|
text: "Table Overlay",
|
|
11481
11484
|
icon: "layers-2",
|
|
11482
11485
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
11483
|
-
}, null, 8, ["class-list"])], 40,
|
|
11486
|
+
}, null, 8, ["class-list"])], 40, Gd)) : a("", !0), s("li", Kd, [u(Ja, {
|
|
11484
11487
|
config: { variant: "icon" },
|
|
11485
11488
|
id: "table-config-group-toggle",
|
|
11486
11489
|
class: "pv-text-subdued",
|
|
@@ -11489,7 +11492,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11489
11492
|
onHandleSelected: S
|
|
11490
11493
|
}, null, 8, ["text", "icon"])])])]),
|
|
11491
11494
|
_: 1
|
|
11492
|
-
}, 8, ["class"])])), [[I(Y), [x, { ignore: [".pv-popover"] }]]]), u(
|
|
11495
|
+
}, 8, ["class"])])), [[I(Y), [x, { ignore: [".pv-popover"] }]]]), u(hs, {
|
|
11493
11496
|
ref_key: "nestedMenuPopoverRef",
|
|
11494
11497
|
ref: g,
|
|
11495
11498
|
class: y({ "pv-hide": !(m.value && h.value) }),
|
|
@@ -11500,11 +11503,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11500
11503
|
},
|
|
11501
11504
|
isList: !0
|
|
11502
11505
|
}, {
|
|
11503
|
-
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, {
|
|
11504
11507
|
id: e.id,
|
|
11505
11508
|
config: {
|
|
11506
11509
|
variant: "checkbox",
|
|
11507
|
-
renderer:
|
|
11510
|
+
renderer: Hd
|
|
11508
11511
|
},
|
|
11509
11512
|
text: e.text,
|
|
11510
11513
|
context: e.context,
|
|
@@ -11521,13 +11524,13 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11521
11524
|
_: 1
|
|
11522
11525
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
11523
11526
|
}
|
|
11524
|
-
}),
|
|
11527
|
+
}), Yd = ["id"], Xd = {
|
|
11525
11528
|
key: 0,
|
|
11526
11529
|
class: "sort-divider-container"
|
|
11527
|
-
},
|
|
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 = {
|
|
11528
11531
|
key: 1,
|
|
11529
11532
|
class: "pv-button-placeholder"
|
|
11530
|
-
},
|
|
11533
|
+
}, af = "--divider--", of = "placeholder-", sf = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
11531
11534
|
__name: "PvSortableList",
|
|
11532
11535
|
props: /* @__PURE__ */ g({
|
|
11533
11536
|
options: { default: () => [] },
|
|
@@ -11547,11 +11550,11 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11547
11550
|
emits: ["update:modelValue"],
|
|
11548
11551
|
setup(e) {
|
|
11549
11552
|
let n = e, c = R(e, "modelValue"), l = {
|
|
11550
|
-
id:
|
|
11553
|
+
id: af,
|
|
11551
11554
|
text: "",
|
|
11552
11555
|
disabled: !0
|
|
11553
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) => ({
|
|
11554
|
-
id: `${
|
|
11557
|
+
id: `${of}${t}`,
|
|
11555
11558
|
text: "",
|
|
11556
11559
|
disabled: !0,
|
|
11557
11560
|
isPlaceholder: !0
|
|
@@ -11565,20 +11568,20 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11565
11568
|
];
|
|
11566
11569
|
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
11567
11570
|
if (!m.value) return;
|
|
11568
|
-
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);
|
|
11569
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);
|
|
11570
11573
|
};
|
|
11571
11574
|
w(() => {
|
|
11572
11575
|
m.value && (g = new nt(m.value, {
|
|
11573
11576
|
animation: 200,
|
|
11574
|
-
filter: `#${
|
|
11577
|
+
filter: `#${af}, [id^="placeholder-"]`,
|
|
11575
11578
|
dragoverBubble: !0,
|
|
11576
11579
|
onStart: (e) => {
|
|
11577
11580
|
_ = e.item;
|
|
11578
11581
|
},
|
|
11579
11582
|
onMove: (e) => {
|
|
11580
11583
|
let t = e.related;
|
|
11581
|
-
if (t?.id ===
|
|
11584
|
+
if (t?.id === af || t?.id?.startsWith("placeholder-")) return !1;
|
|
11582
11585
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
11583
11586
|
return r && D(r);
|
|
11584
11587
|
},
|
|
@@ -11626,20 +11629,20 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11626
11629
|
key: e.id,
|
|
11627
11630
|
id: e.id,
|
|
11628
11631
|
class: "pv-stack-4"
|
|
11629
|
-
}, [e.id ===
|
|
11632
|
+
}, [e.id === af ? (E(), o("div", Xd, [s("div", {
|
|
11630
11633
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
11631
11634
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
11632
|
-
}, null, 8,
|
|
11635
|
+
}, null, 8, Zd)])) : e.id.includes(of) ? (E(), o("div", {
|
|
11633
11636
|
key: 1,
|
|
11634
11637
|
class: "placeholder-zone",
|
|
11635
11638
|
onDragover: r[0] ||= (e) => b(e),
|
|
11636
11639
|
onDragleave: r[1] ||= (e) => S(e),
|
|
11637
11640
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
11638
|
-
}, [s("div",
|
|
11641
|
+
}, [s("div", $d, [s("span", ef, P(n.placeholderText), 1)])], 40, Qd)) : (E(), o("div", {
|
|
11639
11642
|
key: 2,
|
|
11640
11643
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
11641
11644
|
style: x(M(e))
|
|
11642
|
-
}, [s("div",
|
|
11645
|
+
}, [s("div", tf, [
|
|
11643
11646
|
u(En, {
|
|
11644
11647
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
11645
11648
|
name: "reorder"
|
|
@@ -11649,8 +11652,8 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11649
11652
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
11650
11653
|
name: e.icon
|
|
11651
11654
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
11652
|
-
s("span",
|
|
11653
|
-
]), j(e) ? (E(), o("div",
|
|
11655
|
+
s("span", nf, P(e.text), 1)
|
|
11656
|
+
]), j(e) ? (E(), o("div", rf)) : (E(), i(An, {
|
|
11654
11657
|
key: 0,
|
|
11655
11658
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
11656
11659
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -11662,16 +11665,16 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11662
11665
|
"ariaLabel",
|
|
11663
11666
|
"style",
|
|
11664
11667
|
"onClick"
|
|
11665
|
-
]))], 6))], 8,
|
|
11668
|
+
]))], 6))], 8, Yd))), 128))], 512)], 512));
|
|
11666
11669
|
}
|
|
11667
|
-
}), [["__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) => {
|
|
11668
11671
|
if (!n || t.length === 0) return e;
|
|
11669
11672
|
let r = new Set(n(t).map((e) => e.field));
|
|
11670
11673
|
return e.filter((e) => r.has(e));
|
|
11671
|
-
},
|
|
11674
|
+
}, df = (e) => e.filter((e) => !ko(e)), ff = (e) => e.filter((e) => ko(e)), pf = {
|
|
11672
11675
|
xAxis: {
|
|
11673
11676
|
selectMode: "sortable",
|
|
11674
|
-
filterColumns:
|
|
11677
|
+
filterColumns: df
|
|
11675
11678
|
},
|
|
11676
11679
|
yAxis: {},
|
|
11677
11680
|
secondaryYAxis: {},
|
|
@@ -11680,16 +11683,16 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11680
11683
|
rowGroupLimit: 2,
|
|
11681
11684
|
supportsFocusView: !0,
|
|
11682
11685
|
storeBeforeChange: !0
|
|
11683
|
-
},
|
|
11686
|
+
}, mf = [
|
|
11684
11687
|
{
|
|
11685
|
-
...
|
|
11688
|
+
...pf,
|
|
11686
11689
|
id: "column",
|
|
11687
11690
|
text: "Column",
|
|
11688
11691
|
icon: "chart-column",
|
|
11689
11692
|
agChartType: "bar"
|
|
11690
11693
|
},
|
|
11691
11694
|
{
|
|
11692
|
-
...
|
|
11695
|
+
...pf,
|
|
11693
11696
|
id: "bar",
|
|
11694
11697
|
text: "Bar",
|
|
11695
11698
|
icon: "chart-bar",
|
|
@@ -11697,28 +11700,28 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11697
11700
|
isHorizontal: !0
|
|
11698
11701
|
},
|
|
11699
11702
|
{
|
|
11700
|
-
...
|
|
11703
|
+
...pf,
|
|
11701
11704
|
id: "line",
|
|
11702
11705
|
text: "Line",
|
|
11703
11706
|
icon: "chart-line",
|
|
11704
11707
|
agChartType: "line"
|
|
11705
11708
|
},
|
|
11706
11709
|
{
|
|
11707
|
-
...
|
|
11710
|
+
...pf,
|
|
11708
11711
|
id: "area",
|
|
11709
11712
|
text: "Area",
|
|
11710
11713
|
icon: "chart-area",
|
|
11711
11714
|
agChartType: "area"
|
|
11712
11715
|
},
|
|
11713
11716
|
{
|
|
11714
|
-
...
|
|
11717
|
+
...pf,
|
|
11715
11718
|
id: "column_stacked",
|
|
11716
11719
|
text: "Stacked Column",
|
|
11717
11720
|
icon: "chart-column-stacked",
|
|
11718
11721
|
agChartType: "bar"
|
|
11719
11722
|
},
|
|
11720
11723
|
{
|
|
11721
|
-
...
|
|
11724
|
+
...pf,
|
|
11722
11725
|
id: "bar_stacked",
|
|
11723
11726
|
text: "Stacked Bar",
|
|
11724
11727
|
icon: "chart-bar-stacked",
|
|
@@ -11726,7 +11729,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11726
11729
|
isHorizontal: !0
|
|
11727
11730
|
},
|
|
11728
11731
|
{
|
|
11729
|
-
...
|
|
11732
|
+
...pf,
|
|
11730
11733
|
id: "pie",
|
|
11731
11734
|
text: "Pie",
|
|
11732
11735
|
icon: "chart-pie",
|
|
@@ -11740,7 +11743,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11740
11743
|
icon: "chart-column",
|
|
11741
11744
|
xAxis: {
|
|
11742
11745
|
selectMode: "single",
|
|
11743
|
-
filterColumns:
|
|
11746
|
+
filterColumns: ff,
|
|
11744
11747
|
hideLabel: !0
|
|
11745
11748
|
},
|
|
11746
11749
|
yAxis: {
|
|
@@ -11761,7 +11764,7 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11761
11764
|
icon: "map",
|
|
11762
11765
|
xAxis: {
|
|
11763
11766
|
selectMode: "single",
|
|
11764
|
-
filterColumns:
|
|
11767
|
+
filterColumns: df,
|
|
11765
11768
|
hideLabel: !0
|
|
11766
11769
|
},
|
|
11767
11770
|
yAxis: {},
|
|
@@ -11773,16 +11776,16 @@ var Dl = /* @__PURE__ */ function(e) {
|
|
|
11773
11776
|
supportsFocusView: !1,
|
|
11774
11777
|
storeBeforeChange: !1
|
|
11775
11778
|
}
|
|
11776
|
-
],
|
|
11777
|
-
function
|
|
11778
|
-
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;
|
|
11779
11782
|
}
|
|
11780
11783
|
//#endregion
|
|
11781
11784
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
11782
|
-
var
|
|
11785
|
+
var vf = {
|
|
11783
11786
|
class: "pv-full-width pv-flex",
|
|
11784
11787
|
style: { "--flex-gap": "8px" }
|
|
11785
|
-
},
|
|
11788
|
+
}, yf = ["title"], bf = { style: { "max-width": "220px" } }, xf = /* @__PURE__ */ d({
|
|
11786
11789
|
inheritAttrs: !1,
|
|
11787
11790
|
__name: "PvChartOptionMenuItemRenderer",
|
|
11788
11791
|
props: {
|
|
@@ -11790,10 +11793,10 @@ var gf = {
|
|
|
11790
11793
|
context: {}
|
|
11791
11794
|
},
|
|
11792
11795
|
setup(e) {
|
|
11793
|
-
return (t, n) => (E(), o("div",
|
|
11796
|
+
return (t, n) => (E(), o("div", vf, [s("span", {
|
|
11794
11797
|
class: "pv-text-body-md pv-truncate",
|
|
11795
11798
|
title: e.text
|
|
11796
|
-
}, P(e.text), 9,
|
|
11799
|
+
}, P(e.text), 9, yf), e.context?.description ? (E(), i(I(Ti), {
|
|
11797
11800
|
key: 0,
|
|
11798
11801
|
variant: "dark",
|
|
11799
11802
|
position: "center-right",
|
|
@@ -11807,25 +11810,25 @@ var gf = {
|
|
|
11807
11810
|
name: "info-circle",
|
|
11808
11811
|
class: "pv-text-subdued"
|
|
11809
11812
|
})]),
|
|
11810
|
-
content: H(() => [s("div",
|
|
11813
|
+
content: H(() => [s("div", bf, P(e.context.description), 1)]),
|
|
11811
11814
|
_: 1
|
|
11812
11815
|
})) : a("", !0)]));
|
|
11813
11816
|
}
|
|
11814
|
-
}),
|
|
11817
|
+
}), Sf = { class: "pv-stack-16 pv-chart-options-panel" }, Cf = { class: "pv-flex pv-relative" }, wf = {
|
|
11815
11818
|
role: "list",
|
|
11816
11819
|
class: "pv-relative"
|
|
11817
|
-
},
|
|
11820
|
+
}, Tf = [
|
|
11818
11821
|
"id",
|
|
11819
11822
|
"data-active",
|
|
11820
11823
|
"onMouseenter",
|
|
11821
11824
|
"onClick"
|
|
11822
|
-
],
|
|
11825
|
+
], Ef = { style: { "max-width": "100px" } }, Df = {
|
|
11823
11826
|
key: 1,
|
|
11824
11827
|
class: "pv-flex"
|
|
11825
|
-
},
|
|
11828
|
+
}, Of = {
|
|
11826
11829
|
key: 1,
|
|
11827
11830
|
role: "list"
|
|
11828
|
-
},
|
|
11831
|
+
}, kf = ["data-active"], Af = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
11829
11832
|
__name: "PvChartOptionsPanel",
|
|
11830
11833
|
props: {
|
|
11831
11834
|
enablePanel: { type: Boolean },
|
|
@@ -11836,17 +11839,17 @@ var gf = {
|
|
|
11836
11839
|
readOnly: { type: Boolean }
|
|
11837
11840
|
},
|
|
11838
11841
|
setup(e) {
|
|
11839
|
-
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
11842
|
+
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = Iu({
|
|
11840
11843
|
alignment: "top right",
|
|
11841
11844
|
popoverCssProperties: {
|
|
11842
11845
|
maxWidth: "500px",
|
|
11843
11846
|
maxHeight: "900px"
|
|
11844
11847
|
},
|
|
11845
11848
|
useTeleport: !0
|
|
11846
|
-
}), 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(() => {
|
|
11847
11850
|
let e = b.value?.id ?? "";
|
|
11848
11851
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
11849
|
-
}), 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) => ({
|
|
11850
11853
|
id: e.id,
|
|
11851
11854
|
text: e.label,
|
|
11852
11855
|
disabled: e.disabled,
|
|
@@ -11857,7 +11860,7 @@ var gf = {
|
|
|
11857
11860
|
V(j, (e) => {
|
|
11858
11861
|
e && F.value && (F.value = void 0);
|
|
11859
11862
|
}, { immediate: !0 });
|
|
11860
|
-
let te = m(
|
|
11863
|
+
let te = m(al, O("")), ne = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
11861
11864
|
label: e.label,
|
|
11862
11865
|
value: e.value
|
|
11863
11866
|
})) : []), W = r(() => {
|
|
@@ -11902,7 +11905,7 @@ var gf = {
|
|
|
11902
11905
|
}))), ae = r(() => D.value.map((e) => ({
|
|
11903
11906
|
id: e.field || "",
|
|
11904
11907
|
text: e.headerName || e.field || "",
|
|
11905
|
-
icon:
|
|
11908
|
+
icon: xo(e.context?.dataType || null) || "circle-chevron-down"
|
|
11906
11909
|
}))), K = r({
|
|
11907
11910
|
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
11908
11911
|
set: (e) => {
|
|
@@ -12013,22 +12016,22 @@ var gf = {
|
|
|
12013
12016
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
12014
12017
|
}, J = (e) => oe.value?.isMultiSelect ? null : se(e), ce = (e) => oe.value?.isMultiSelect ? {
|
|
12015
12018
|
variant: "checkbox",
|
|
12016
|
-
renderer:
|
|
12017
|
-
} : G(e) ? { renderer:
|
|
12019
|
+
renderer: xf
|
|
12020
|
+
} : G(e) ? { renderer: xf } : { variant: "icon" }, le = (e) => {
|
|
12018
12021
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
12019
12022
|
}, ue = () => {
|
|
12020
12023
|
g.value = !1, _.value = void 0;
|
|
12021
12024
|
}, de = () => {
|
|
12022
12025
|
_.value = void 0;
|
|
12023
12026
|
};
|
|
12024
|
-
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, {
|
|
12025
12028
|
open: g.value,
|
|
12026
12029
|
label: "Chart Configuration",
|
|
12027
12030
|
icon: "chart-area",
|
|
12028
12031
|
disabled: e.readOnly,
|
|
12029
12032
|
onClick: r[0] ||= (t) => e.readOnly ? null : g.value = !g.value,
|
|
12030
12033
|
onHandleToggleDropdown: de
|
|
12031
|
-
}, null, 8, ["open", "disabled"]), u(
|
|
12034
|
+
}, null, 8, ["open", "disabled"]), u(hs, {
|
|
12032
12035
|
class: y({ "pv-hide": !g.value }),
|
|
12033
12036
|
"css-custom-properties": {
|
|
12034
12037
|
width: "171px",
|
|
@@ -12043,7 +12046,7 @@ var gf = {
|
|
|
12043
12046
|
"padding-top": "4px",
|
|
12044
12047
|
"padding-bottom": "12px"
|
|
12045
12048
|
}
|
|
12046
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
12049
|
+
}, " Chart Configuration ")], -1), s("ul", wf, [(E(!0), o(t, null, k(q.value, (e) => (E(), o("li", {
|
|
12047
12050
|
id: `pv-chart-config-${e.value}`,
|
|
12048
12051
|
key: e.value,
|
|
12049
12052
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -12073,9 +12076,9 @@ var gf = {
|
|
|
12073
12076
|
_: 2
|
|
12074
12077
|
}, [e.disabled && e.disabledReason ? {
|
|
12075
12078
|
name: "content",
|
|
12076
|
-
fn: H(() => [s("div",
|
|
12079
|
+
fn: H(() => [s("div", Ef, P(e.disabledReason), 1)]),
|
|
12077
12080
|
key: "0"
|
|
12078
|
-
} : void 0]), 1024)], 40,
|
|
12081
|
+
} : void 0]), 1024)], 40, Tf))), 128))])]),
|
|
12079
12082
|
_: 1
|
|
12080
12083
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Y), [ue, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
12081
12084
|
class: "pv-flex pv-space-between",
|
|
@@ -12085,7 +12088,7 @@ var gf = {
|
|
|
12085
12088
|
options: ne.value,
|
|
12086
12089
|
modelValue: I(te),
|
|
12087
12090
|
"onUpdate:modelValue": r[1] ||= (e) => h(te) ? te.value = e : null
|
|
12088
|
-
}, 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, {
|
|
12089
12092
|
key: 0,
|
|
12090
12093
|
label: n.label,
|
|
12091
12094
|
prefixLabel: n.prefixLabel,
|
|
@@ -12095,7 +12098,7 @@ var gf = {
|
|
|
12095
12098
|
disableSearchInput: !0,
|
|
12096
12099
|
disabled: n.disabled || e.readOnly,
|
|
12097
12100
|
optionsVariant: "checkbox",
|
|
12098
|
-
optionsRenderer:
|
|
12101
|
+
optionsRenderer: xf
|
|
12099
12102
|
}, null, 8, [
|
|
12100
12103
|
"label",
|
|
12101
12104
|
"prefixLabel",
|
|
@@ -12122,7 +12125,7 @@ var gf = {
|
|
|
12122
12125
|
"options",
|
|
12123
12126
|
"disableDeselect",
|
|
12124
12127
|
"disabled"
|
|
12125
|
-
]))], 64))), 128))]))], 4)])]), u(
|
|
12128
|
+
]))], 64))), 128))]))], 4)])]), u(hs, {
|
|
12126
12129
|
ref_key: "nestedMenuPopoverRef",
|
|
12127
12130
|
ref: v,
|
|
12128
12131
|
class: y({ "pv-hide": !(g.value && _.value !== void 0) }),
|
|
@@ -12139,7 +12142,7 @@ var gf = {
|
|
|
12139
12142
|
"padding-left": "2px",
|
|
12140
12143
|
"padding-bottom": "6px"
|
|
12141
12144
|
}
|
|
12142
|
-
}, " Viewing ", -1), u(
|
|
12145
|
+
}, " Viewing ", -1), u(sf, {
|
|
12143
12146
|
modelValue: oe.value.activeOptions.value,
|
|
12144
12147
|
"onUpdate:modelValue": r[2] ||= (e) => oe.value.activeOptions.value = e,
|
|
12145
12148
|
options: oe.value.availableOptions || [],
|
|
@@ -12149,7 +12152,7 @@ var gf = {
|
|
|
12149
12152
|
"modelValue",
|
|
12150
12153
|
"options",
|
|
12151
12154
|
"activeOptionLimit"
|
|
12152
|
-
])], 64)) : (E(), o("ul",
|
|
12155
|
+
])], 64)) : (E(), o("ul", Of, [(E(!0), o(t, null, k(oe.value.availableOptions, (e) => (E(), o("li", {
|
|
12153
12156
|
key: e.id,
|
|
12154
12157
|
"data-active": J(e)
|
|
12155
12158
|
}, [u(Ja, {
|
|
@@ -12174,14 +12177,14 @@ var gf = {
|
|
|
12174
12177
|
"disabled",
|
|
12175
12178
|
"selectedIds",
|
|
12176
12179
|
"onHandleSelected"
|
|
12177
|
-
])], 8,
|
|
12180
|
+
])], 8, kf))), 128))]))], 64)) : a("", !0)]),
|
|
12178
12181
|
_: 1
|
|
12179
12182
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
12180
12183
|
}
|
|
12181
12184
|
}), [["__scopeId", "data-v-4a384de9"]]);
|
|
12182
12185
|
//#endregion
|
|
12183
12186
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
12184
|
-
function
|
|
12187
|
+
function jf(e, t, n, r, i) {
|
|
12185
12188
|
return i ? {
|
|
12186
12189
|
xKey: n,
|
|
12187
12190
|
xName: r,
|
|
@@ -12196,19 +12199,19 @@ function kf(e, t, n, r, i) {
|
|
|
12196
12199
|
}
|
|
12197
12200
|
//#endregion
|
|
12198
12201
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
12199
|
-
var
|
|
12202
|
+
var Mf = { style: {
|
|
12200
12203
|
height: "100%",
|
|
12201
12204
|
width: "100%"
|
|
12202
|
-
} },
|
|
12205
|
+
} }, Nf = {
|
|
12203
12206
|
key: 0,
|
|
12204
12207
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
12205
|
-
},
|
|
12208
|
+
}, Pf = { class: "pv-flex" }, Ff = { class: "pv-relative pv-margin-auto" }, If = {
|
|
12206
12209
|
key: 2,
|
|
12207
12210
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
12208
|
-
},
|
|
12211
|
+
}, Lf = { key: 0 }, Rf = {
|
|
12209
12212
|
key: 1,
|
|
12210
12213
|
class: "pv-text-body-xs"
|
|
12211
|
-
},
|
|
12214
|
+
}, zf = /* @__PURE__ */ d({
|
|
12212
12215
|
__name: "PvDataTableWithChart",
|
|
12213
12216
|
props: {
|
|
12214
12217
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -12410,7 +12413,7 @@ var Af = { style: {
|
|
|
12410
12413
|
if (!e) return !1;
|
|
12411
12414
|
if (e === "state") return !0;
|
|
12412
12415
|
let t = k.value.find((t) => t.field === e);
|
|
12413
|
-
return !!(t &&
|
|
12416
|
+
return !!(t && cf(t));
|
|
12414
12417
|
}), I = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", L = r(() => {
|
|
12415
12418
|
let e = me.value;
|
|
12416
12419
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
@@ -12431,20 +12434,14 @@ var Af = { style: {
|
|
|
12431
12434
|
});
|
|
12432
12435
|
}), R = r(() => {
|
|
12433
12436
|
let e = m.value?.availableAggFuncColumns || [], t = new Set(j.value);
|
|
12434
|
-
return e.filter((e) => {
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
formatter: n.valueFormatter,
|
|
12443
|
-
dataType: n.context?.dataType,
|
|
12444
|
-
tooltipRenderer: n.context?.customTooltipRenderer,
|
|
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 Af = { 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) => {
|
|
@@ -12506,12 +12503,12 @@ var Af = { style: {
|
|
|
12506
12503
|
return (r) => {
|
|
12507
12504
|
if (r.data = ve.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
12508
12505
|
let i = "", a = ce(e);
|
|
12509
|
-
if (l.truncateLabelValues && n && a &&
|
|
12506
|
+
if (l.truncateLabelValues && n && a && ko(a) && !isNaN(Number(r.value))) {
|
|
12510
12507
|
if (Fe.value) {
|
|
12511
12508
|
let e = r.datum?.[N.value], t = ye.value?.find((t) => t[N.value] === e)?.[`${X.value}_sort_total`] || Infinity;
|
|
12512
12509
|
if (r.value / t < .05) return "";
|
|
12513
12510
|
}
|
|
12514
|
-
let { newValue: e, newSuffix: t } =
|
|
12511
|
+
let { newValue: e, newSuffix: t } = wo(r.value, bo.Percent === $(a).dataType, et.value);
|
|
12515
12512
|
r.value = e, i = t;
|
|
12516
12513
|
}
|
|
12517
12514
|
let o = r.value;
|
|
@@ -12527,8 +12524,8 @@ var Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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,13 +12793,13 @@ var Af = { 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 ||= {};
|
|
12803
|
-
let r =
|
|
12800
|
+
let r = Po(Fo(j.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() === X.value || i.has(e.getColId())), o = {
|
|
12804
12801
|
rowGroupCols: r || [],
|
|
12805
|
-
valueCols:
|
|
12802
|
+
valueCols: Fo(a || []),
|
|
12806
12803
|
filterModel: e
|
|
12807
12804
|
};
|
|
12808
12805
|
C.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
@@ -12844,10 +12841,10 @@ var Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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 Af = { 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
|