@turquoisehealth/pit-viper 2.194.6-dev.1 → 2.194.6-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/tables/PvDataTable/useFilterStore.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +343 -336
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -4,7 +4,7 @@ import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCo
|
|
|
4
4
|
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
5
|
import { LicenseManager as ie } from "ag-charts-enterprise";
|
|
6
6
|
import { AgGridVue as ae } from "ag-grid-vue3";
|
|
7
|
-
import { CellStyleModule as
|
|
7
|
+
import { CellStyleModule as oe, CheckboxEditorModule as G, ClientSideRowModelModule as se, ColumnApiModule as ce, ColumnAutoSizeModule as K, CsvExportModule as le, CustomEditorModule as ue, CustomFilterModule as de, DateEditorModule as fe, EventApiModule as pe, GridStateModule as me, LargeTextEditorModule as he, ModuleRegistry as ge, NumberEditorModule as _e, PaginationModule as ve, QuickFilterModule as ye, RowApiModule as be, RowStyleModule as xe, ScrollApiModule as q, SelectEditorModule as Se, TextEditorModule as Ce, TextFilterModule as we, UndoRedoEditModule as J, themeQuartz as Y } from "ag-grid-community";
|
|
8
8
|
import { AdvancedFilterModule as Te, CellSelectionModule as Ee, ClientSideRowModelApiModule as De, ClipboardModule as Oe, ColumnMenuModule as ke, ContextMenuModule as Ae, LicenseManager as je, MultiFilterModule as Me, RenderApiModule as Ne, RichSelectModule as Pe, RowGroupingModule as Fe, RowSelectionModule as Ie, ServerSideRowModelApiModule as Le, ServerSideRowModelModule as Re, SetFilterModule as ze, TooltipModule as Be, ValidationModule as Ve } from "ag-grid-enterprise";
|
|
9
9
|
import { onClickOutside as He, onKeyStroke as Ue, toRef as We, useDebounceFn as X, useElementBounding as Ge, useElementHover as Z, useToggle as Ke, watchDebounced as qe } from "@vueuse/core";
|
|
10
10
|
import Je from "papaparse";
|
|
@@ -3030,12 +3030,12 @@ var ha = {
|
|
|
3030
3030
|
a(ie(r.id), r.id);
|
|
3031
3031
|
}
|
|
3032
3032
|
f.value = t, m.value = n, W.value = r;
|
|
3033
|
-
},
|
|
3033
|
+
}, oe = r({
|
|
3034
3034
|
get: () => W.value,
|
|
3035
3035
|
set: (e) => {
|
|
3036
3036
|
c.readOnly || re(e);
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), G = () => {
|
|
3039
3039
|
te.value = "", M.value = !1;
|
|
3040
3040
|
}, se = r(() => {
|
|
3041
3041
|
let e = c.size === "lg" ? 24 : 30;
|
|
@@ -3057,24 +3057,24 @@ var ha = {
|
|
|
3057
3057
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3058
3058
|
})) : (U(), g("dropdown-closed"));
|
|
3059
3059
|
});
|
|
3060
|
-
let
|
|
3060
|
+
let ce = r(() => {
|
|
3061
3061
|
if (te.value === "") return c.options;
|
|
3062
3062
|
let e = te.value.toLocaleLowerCase();
|
|
3063
3063
|
return c.enableCascadeSelection ? ma(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3064
|
-
}),
|
|
3064
|
+
}), K = () => {
|
|
3065
3065
|
if (c.enableCascadeSelection) {
|
|
3066
3066
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
3067
3067
|
for (let r of n) la(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
3068
3068
|
};
|
|
3069
|
-
t(
|
|
3069
|
+
t(ce.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3070
3070
|
}
|
|
3071
|
-
re(c.enableCascadeSelection ? ua(
|
|
3071
|
+
re(c.enableCascadeSelection ? ua(ce.value) : ce.value);
|
|
3072
3072
|
}, le = () => {
|
|
3073
3073
|
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3074
3074
|
}, ue = () => {
|
|
3075
|
-
U(),
|
|
3075
|
+
U(), G();
|
|
3076
3076
|
}, de = () => {
|
|
3077
|
-
H(),
|
|
3077
|
+
H(), G();
|
|
3078
3078
|
}, fe = r(() => {
|
|
3079
3079
|
if (!c.groupings) return;
|
|
3080
3080
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3099,7 +3099,7 @@ var ha = {
|
|
|
3099
3099
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3100
3100
|
}), { present: _e } = bn("header", { host: ge }), { present: ve } = bn("no-results", { host: ge }), { present: ye } = bn("footer", { host: ge });
|
|
3101
3101
|
return Ue("Escape", () => {
|
|
3102
|
-
M.value &&
|
|
3102
|
+
M.value && G();
|
|
3103
3103
|
}), (n, r) => (E(), i(gi, _({
|
|
3104
3104
|
modelValue: I(M),
|
|
3105
3105
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
@@ -3161,11 +3161,11 @@ var ha = {
|
|
|
3161
3161
|
"disabled"
|
|
3162
3162
|
])])),
|
|
3163
3163
|
I(_e) ? (E(), o("div", Ga, [A(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
3164
|
-
|
|
3164
|
+
ce.value.length > 0 ? (E(), o(t, { key: 2 }, [pe.value ? (E(!0), o(t, { key: 0 }, k(fe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3165
3165
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", Ka, P(t), 1)),
|
|
3166
3166
|
u(Ua, {
|
|
3167
|
-
selectedItems:
|
|
3168
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
3167
|
+
selectedItems: oe.value,
|
|
3168
|
+
"onUpdate:selectedItems": r[2] ||= (e) => oe.value = e,
|
|
3169
3169
|
options: i,
|
|
3170
3170
|
config: l.value,
|
|
3171
3171
|
queryText: e.highlightSearchText ? te.value : null,
|
|
@@ -3192,9 +3192,9 @@ var ha = {
|
|
|
3192
3192
|
fe.value && s !== fe.value.length - 1 ? (E(), o("div", qa)) : a("", !0)
|
|
3193
3193
|
]))), 128)) : (E(), i(Ua, {
|
|
3194
3194
|
key: 1,
|
|
3195
|
-
selectedItems:
|
|
3196
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
3197
|
-
options:
|
|
3195
|
+
selectedItems: oe.value,
|
|
3196
|
+
"onUpdate:selectedItems": r[3] ||= (e) => oe.value = e,
|
|
3197
|
+
options: ce.value,
|
|
3198
3198
|
config: l.value,
|
|
3199
3199
|
queryText: e.highlightSearchText ? te.value : null,
|
|
3200
3200
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
@@ -3215,13 +3215,13 @@ var ha = {
|
|
|
3215
3215
|
"hasMoreOptions",
|
|
3216
3216
|
"readOnly"
|
|
3217
3217
|
]))], 64)) : a("", !0),
|
|
3218
|
-
e.isLoading ? (E(), o("div", Ja, [u(St, { variant: "dark" })])) :
|
|
3218
|
+
e.isLoading ? (E(), o("div", Ja, [u(St, { variant: "dark" })])) : ce.value.length === 0 ? (E(), o(t, { key: 4 }, [I(ve) ? A(n.$slots, "no-results", b(_({ key: 0 }, me.value))) : (E(), i(ca, { key: 1 }))], 64)) : a("", !0),
|
|
3219
3219
|
s("div", Ya, [I(ye) ? A(n.$slots, "footer", b(_({ key: 0 }, me.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Xi, {
|
|
3220
3220
|
key: 1,
|
|
3221
3221
|
variant: e.menuActionsVariant,
|
|
3222
3222
|
disabled: e.isLoading,
|
|
3223
3223
|
onHandleClearAll: le,
|
|
3224
|
-
onHandleSelectAll:
|
|
3224
|
+
onHandleSelectAll: K,
|
|
3225
3225
|
onHandleCancel: ue,
|
|
3226
3226
|
onHandleConfirm: de
|
|
3227
3227
|
}, null, 8, ["variant", "disabled"])) : a("", !0)])
|
|
@@ -4795,7 +4795,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4795
4795
|
if (e.value === t.value) return !0;
|
|
4796
4796
|
let r = ee(e), i = ee(t);
|
|
4797
4797
|
return r != null && i != null && r === i ? !0 : e.children?.some((e) => L(e, t, n + 1)) ?? !1;
|
|
4798
|
-
}, R =
|
|
4798
|
+
}, R = (e) => {
|
|
4799
|
+
c.value[e] = (c.value[e] || 0) + 1;
|
|
4800
|
+
}, z = async (e, t) => {
|
|
4799
4801
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
4800
4802
|
if (t?.useStaged !== !1 && i.value != null) if (Xc(i.value)) {
|
|
4801
4803
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
@@ -4815,12 +4817,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4815
4817
|
h || (u.value[m] = !0);
|
|
4816
4818
|
let g = (c.value[m] || 0) + 1;
|
|
4817
4819
|
c.value[m] = g;
|
|
4818
|
-
let _ = a.map((e) =>
|
|
4820
|
+
let _ = a.map((e) => te(m, e) || {
|
|
4819
4821
|
value: e,
|
|
4820
4822
|
label: String(e)
|
|
4821
4823
|
}), v = await d.value?.(l), x;
|
|
4822
4824
|
if (v && !Array.isArray(v) ? (x = v.values, f.value[m] = v.hasMore, p.value[m] = v.totalCount) : (x = v, f.value[m] = void 0, p.value[m] = void 0), r && x && (x = x.map((t) => {
|
|
4823
|
-
let n =
|
|
4825
|
+
let n = ne(e, t);
|
|
4824
4826
|
return t && n && (t.matchedField = t.matchedField ?? n.matchedField, t.matchedValue = t.matchedValue ?? n.matchedValue), t;
|
|
4825
4827
|
})), g === c.value[m]) {
|
|
4826
4828
|
let e = (t?.offset ?? 0) > 0, n = !!t?.parentId;
|
|
@@ -4844,7 +4846,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4844
4846
|
let r = x?.filter((e) => e != null).map((e) => e.value) || [], i = r.filter((e, t) => r.indexOf(e) === t);
|
|
4845
4847
|
return C.value[m] = i, w.value[m] = !1, s.value[m] = Date.now(), h || (u.value[m] = !1), i;
|
|
4846
4848
|
} else return [];
|
|
4847
|
-
},
|
|
4849
|
+
}, te = (e, t) => {
|
|
4848
4850
|
let n = [...y.value[e] || [], ...x.value[e] || []], r = (e, t) => {
|
|
4849
4851
|
let n = /* @__PURE__ */ new Map();
|
|
4850
4852
|
for (let t of e.children || []) n.set(t.value, t);
|
|
@@ -4865,7 +4867,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4865
4867
|
}
|
|
4866
4868
|
};
|
|
4867
4869
|
return o(n);
|
|
4868
|
-
},
|
|
4870
|
+
}, ne = (e, t) => {
|
|
4869
4871
|
if (!t) return {};
|
|
4870
4872
|
let n = $(e)?.queryColIds || [];
|
|
4871
4873
|
if (n.length === 0) return {};
|
|
@@ -4878,7 +4880,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4878
4880
|
};
|
|
4879
4881
|
}
|
|
4880
4882
|
return {};
|
|
4881
|
-
},
|
|
4883
|
+
}, re = (e, t) => {
|
|
4882
4884
|
b.value[e] = t;
|
|
4883
4885
|
let r = [], i = n.value;
|
|
4884
4886
|
if (Zc(i)) {
|
|
@@ -4891,45 +4893,45 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4891
4893
|
r.push(...t);
|
|
4892
4894
|
let a = [];
|
|
4893
4895
|
return t.forEach((t) => {
|
|
4894
|
-
let n =
|
|
4896
|
+
let n = te(e, t);
|
|
4895
4897
|
n && a.push(n);
|
|
4896
4898
|
}), x.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4897
|
-
},
|
|
4899
|
+
}, B = (e) => b.value[e] || [], V = (e, t) => {
|
|
4898
4900
|
S.value[e] = t;
|
|
4899
|
-
},
|
|
4901
|
+
}, H = (e) => C.value[e] || [], U = (e, t) => {
|
|
4900
4902
|
C.value[e] = t;
|
|
4901
|
-
},
|
|
4903
|
+
}, W = (e, t) => {
|
|
4902
4904
|
A.value[e] = t;
|
|
4903
|
-
},
|
|
4905
|
+
}, ie = (e) => {
|
|
4904
4906
|
let t = M.value[e] ?? 0;
|
|
4905
4907
|
M.value[e] = t + 1, j.value.add(e);
|
|
4906
|
-
},
|
|
4908
|
+
}, ae = (e) => {
|
|
4907
4909
|
let t = M.value[e] ?? 0;
|
|
4908
4910
|
if (t <= 1) {
|
|
4909
4911
|
delete M.value[e], j.value.delete(e);
|
|
4910
4912
|
return;
|
|
4911
4913
|
}
|
|
4912
4914
|
M.value[e] = t - 1;
|
|
4913
|
-
},
|
|
4915
|
+
}, oe = (e) => {
|
|
4914
4916
|
let t = new Set(e);
|
|
4915
4917
|
for (let n of e) {
|
|
4916
4918
|
let e = A.value[n] || [];
|
|
4917
4919
|
for (let n of e) t.add(n);
|
|
4918
4920
|
}
|
|
4919
4921
|
for (let e of j.value) t.has(e) || (w.value[e] = !0);
|
|
4920
|
-
}, G = e.initStagedFilterSelections,
|
|
4922
|
+
}, G = e.initStagedFilterSelections, se = e.clearStagedFilterSelections, ce = (e) => P.value[e] || [], K = (e, t) => {
|
|
4921
4923
|
P.value[e] = t;
|
|
4922
|
-
}, ce = (e) => {
|
|
4923
|
-
t.value = e;
|
|
4924
4924
|
}, le = (e) => {
|
|
4925
|
+
t.value = e;
|
|
4926
|
+
}, ue = (e) => {
|
|
4925
4927
|
(!e || t.value === e) && (t.value = null);
|
|
4926
|
-
},
|
|
4928
|
+
}, de = () => t.value?.getFilterModel() ?? n.value, fe = (e) => {
|
|
4927
4929
|
let r = t.value?.setFilterModel(e);
|
|
4928
4930
|
(!t.value || r === !1) && (n.value = e);
|
|
4929
|
-
},
|
|
4931
|
+
}, pe = (e) => {
|
|
4930
4932
|
let n = t.value?.setTableSearchFilterModel(e);
|
|
4931
4933
|
(!t.value || n === !1) && (a.value = e);
|
|
4932
|
-
},
|
|
4934
|
+
}, me = (e) => t.value?.refreshData(e), he = (e, t) => {
|
|
4933
4935
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], i = t ? Object.keys(t) : [], a = r.filter((e) => i.includes(e));
|
|
4934
4936
|
[...r, ...i].filter((e) => !a.includes(e)).forEach((e) => n.add(e));
|
|
4935
4937
|
for (let r of a) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4939,7 +4941,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4939
4941
|
};
|
|
4940
4942
|
return qe([n, i], ([e, t], [r, i]) => {
|
|
4941
4943
|
let a = /* @__PURE__ */ new Set();
|
|
4942
|
-
JSON.stringify(e) !== JSON.stringify(r) &&
|
|
4944
|
+
JSON.stringify(e) !== JSON.stringify(r) && he(e || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(t) !== JSON.stringify(i) && he(t || {}, n.value || {}).forEach((e) => a.add(e)), a.size > 0 && oe(a);
|
|
4943
4945
|
}, {
|
|
4944
4946
|
deep: !0,
|
|
4945
4947
|
debounce: 200,
|
|
@@ -4957,42 +4959,43 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4957
4959
|
filterValueMap: y,
|
|
4958
4960
|
filterValueSelectedMetadataMap: x,
|
|
4959
4961
|
filterStoreHandler: d,
|
|
4960
|
-
fetchFilterValues:
|
|
4961
|
-
|
|
4962
|
+
fetchFilterValues: z,
|
|
4963
|
+
invalidateFilterRequest: R,
|
|
4964
|
+
filterValueContext: te,
|
|
4962
4965
|
filterModelEmpty: _,
|
|
4963
|
-
getFilterSelectedValues:
|
|
4964
|
-
getSearchMatchDataFromFilterContext:
|
|
4966
|
+
getFilterSelectedValues: B,
|
|
4967
|
+
getSearchMatchDataFromFilterContext: ne,
|
|
4965
4968
|
isServerSideFilter: g,
|
|
4966
4969
|
stagedFilterModel: i,
|
|
4967
|
-
setFilterSelectedValues:
|
|
4968
|
-
setFilterValueSearchText:
|
|
4970
|
+
setFilterSelectedValues: re,
|
|
4971
|
+
setFilterValueSearchText: V,
|
|
4969
4972
|
tableSearchFilterModel: a,
|
|
4970
4973
|
tableSearchFilterModelEmpty: v,
|
|
4971
4974
|
tableSearchHandler: m,
|
|
4972
4975
|
filterValuesMap: C,
|
|
4973
|
-
getFilterValues:
|
|
4974
|
-
setFilterValues:
|
|
4976
|
+
getFilterValues: H,
|
|
4977
|
+
setFilterValues: U,
|
|
4975
4978
|
filterStaleMap: w,
|
|
4976
4979
|
refreshFiltersInBackground: E,
|
|
4977
4980
|
stageFilterChangesUntilDropdownCloses: D,
|
|
4978
4981
|
filterSearchMinLength: k,
|
|
4979
|
-
markOtherFieldsStale:
|
|
4982
|
+
markOtherFieldsStale: oe,
|
|
4980
4983
|
aggregateFieldMap: A,
|
|
4981
|
-
registerAggregateField:
|
|
4984
|
+
registerAggregateField: W,
|
|
4982
4985
|
registeredFilterFields: j,
|
|
4983
|
-
registerFilterField:
|
|
4984
|
-
unregisterFilterField:
|
|
4986
|
+
registerFilterField: ie,
|
|
4987
|
+
unregisterFilterField: ae,
|
|
4985
4988
|
stagedSelectedValuesMap: P,
|
|
4986
4989
|
initStagedSelectedValues: G,
|
|
4987
|
-
clearStagedSelectedValues:
|
|
4988
|
-
getStagedSelectedValues:
|
|
4990
|
+
clearStagedSelectedValues: se,
|
|
4991
|
+
getStagedSelectedValues: ce,
|
|
4989
4992
|
setStagedSelectedValues: K,
|
|
4990
|
-
registerFilterController:
|
|
4991
|
-
unregisterFilterController:
|
|
4992
|
-
getFilterModel:
|
|
4993
|
-
applyFilterModel:
|
|
4994
|
-
applyTableSearchFilterModel:
|
|
4995
|
-
refreshData:
|
|
4993
|
+
registerFilterController: le,
|
|
4994
|
+
unregisterFilterController: ue,
|
|
4995
|
+
getFilterModel: de,
|
|
4996
|
+
applyFilterModel: fe,
|
|
4997
|
+
applyTableSearchFilterModel: pe,
|
|
4998
|
+
refreshData: me,
|
|
4996
4999
|
filterValueSearchTextMap: S,
|
|
4997
5000
|
filterValuesHasMoreMap: f,
|
|
4998
5001
|
filterValuesTotalCountMap: p
|
|
@@ -5004,129 +5007,129 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5004
5007
|
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().");
|
|
5005
5008
|
return e;
|
|
5006
5009
|
}, rl = (e) => {
|
|
5007
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { fetchFilterValues: l,
|
|
5008
|
-
get: () => K.value ?
|
|
5010
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { 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: ee, filterValuesHasMoreMap: L, filterValuesTotalCountMap: R } = c, { computedFocuses: z, removeFocus: te, computedFocusType: ne } = Fs(), re = m(rs, O(!1)), V = m(ns, O(!1)), H = m(gs, O(!1)), U = r({
|
|
5011
|
+
get: () => K.value ? F(G.value) : _(G.value),
|
|
5009
5012
|
set: (e) => {
|
|
5010
|
-
K.value ?
|
|
5013
|
+
K.value ? I(G.value, e) : x(G.value, e);
|
|
5011
5014
|
}
|
|
5012
|
-
}),
|
|
5013
|
-
let e =
|
|
5014
|
-
if (
|
|
5015
|
-
let t = new Set(e), n =
|
|
5015
|
+
}), W = r(() => {
|
|
5016
|
+
let e = S(G.value);
|
|
5017
|
+
if (le.value && de.value.length > 0) {
|
|
5018
|
+
let t = new Set(e), n = de.value.filter((e) => t.has(e)), r = new Set(de.value), i = e.filter((e) => !r.has(e));
|
|
5016
5019
|
return [...n, ...i];
|
|
5017
5020
|
}
|
|
5018
|
-
return
|
|
5019
|
-
}),
|
|
5020
|
-
get: () =>
|
|
5021
|
-
set: (e) =>
|
|
5022
|
-
}),
|
|
5023
|
-
let e =
|
|
5021
|
+
return Ae(e);
|
|
5022
|
+
}), ie = r(() => h.value[G.value] ?? !1), ae = r({
|
|
5023
|
+
get: () => ee.value[G.value] ?? "",
|
|
5024
|
+
set: (e) => b(G.value, e)
|
|
5025
|
+
}), oe = r(() => {
|
|
5026
|
+
let e = A.value ?? 0, t = ae.value?.length ?? 0;
|
|
5024
5027
|
return e > 0 && t > 0 && t < e;
|
|
5025
|
-
}), G = r(() => t.value.field || ""),
|
|
5028
|
+
}), G = r(() => t.value.field || ""), se = r(() => t.value.filter || ""), ce = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), le = O(!1), ue = O(!1), de = O([]), fe = r(() => rc(t.value)), pe = r(() => ic(t.value)), me = r(() => ac(t.value)), he = r(() => $(t.value).filterOptionsSortDescription), ge = r(() => $(t.value).filterOptionsSortTooltip), _e = r(() => !$(t.value).filterSearch), ve = r(() => $(t.value).emptyFilterResultsRenderer), ye = r(() => $(t.value).filterOptionsRenderer), be = r(() => $(t.value).filterHeaderRenderer), xe = r(() => $(t.value).filterFooterRenderer), q = r(() => pe.value ? U.value.length >= pe.value : !1), Se = r(() => W.value.filter((e) => e != null && !U.value.includes(e))), Ce = r(() => R.value[G.value]), we = r(() => L.value[G.value]), J = r(() => uc(t.value)), Y = () => new Set([G.value, ...cc(t.value)]), Te = (e, t) => {
|
|
5026
5029
|
let n = new Set(e), r = new Set(t);
|
|
5027
5030
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
5028
|
-
},
|
|
5031
|
+
}, Ee = O([]), De = r(() => W.value.length === 1 && W.value[0] === null && U.value.length === 0), Oe = (e = !1) => {
|
|
5029
5032
|
if (J.value) return;
|
|
5030
5033
|
let n = [];
|
|
5031
|
-
if (
|
|
5034
|
+
if (H.value && s.value) {
|
|
5032
5035
|
let e = s.value.getAdvancedFilterModel();
|
|
5033
5036
|
n = Hc(G.value, e);
|
|
5034
|
-
} else n = Nc(t.value,
|
|
5035
|
-
e ?
|
|
5036
|
-
},
|
|
5037
|
+
} else n = Nc(t.value, d.value);
|
|
5038
|
+
e ? U.value = n : U.value = Array.from(new Set([..._(G.value), ...n]));
|
|
5039
|
+
}, ke = (e) => {
|
|
5037
5040
|
let t = (n) => {
|
|
5038
5041
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
5039
5042
|
return !1;
|
|
5040
5043
|
};
|
|
5041
|
-
return t(
|
|
5042
|
-
},
|
|
5043
|
-
let n =
|
|
5044
|
+
return t(Ee.value);
|
|
5045
|
+
}, Ae = (e) => [...e].sort((e, t) => {
|
|
5046
|
+
let n = U.value.includes(e) || ke(e), r = U.value.includes(t) || ke(t);
|
|
5044
5047
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5045
|
-
}),
|
|
5048
|
+
}), je = async (e = !1, n = !1) => {
|
|
5046
5049
|
if (!s.value || o?.value) return;
|
|
5047
|
-
let r =
|
|
5048
|
-
if (
|
|
5049
|
-
if (
|
|
5050
|
+
let r = E.value[G.value] ?? !1, i = h.value[G.value] !== !0, a = (S(G.value) || []).length === 0, c = e && i && (r || n || a);
|
|
5051
|
+
if (H.value) {
|
|
5052
|
+
if (y.value && c) {
|
|
5050
5053
|
let e = await l(t.value, {
|
|
5051
5054
|
api: s.value,
|
|
5052
|
-
filterModel:
|
|
5055
|
+
filterModel: d.value ?? void 0,
|
|
5053
5056
|
useStaged: K.value
|
|
5054
5057
|
});
|
|
5055
|
-
|
|
5058
|
+
C(G.value, e), E.value[G.value] = !1, ht();
|
|
5056
5059
|
}
|
|
5057
5060
|
return;
|
|
5058
5061
|
}
|
|
5059
|
-
let
|
|
5060
|
-
if (
|
|
5061
|
-
if (
|
|
5062
|
-
|
|
5062
|
+
let u = await jc(s.value, t.value);
|
|
5063
|
+
if (u) {
|
|
5064
|
+
if (y.value && c) {
|
|
5065
|
+
u.refreshFilterValues();
|
|
5063
5066
|
return;
|
|
5064
5067
|
}
|
|
5065
|
-
|
|
5068
|
+
C(G.value, u.getFilterValues()), E.value[G.value] = !1;
|
|
5066
5069
|
}
|
|
5067
|
-
},
|
|
5068
|
-
let t =
|
|
5069
|
-
return !t && J.value && e && (t =
|
|
5070
|
-
},
|
|
5070
|
+
}, Me = (e) => {
|
|
5071
|
+
let t = g(G.value, e);
|
|
5072
|
+
return !t && J.value && e && (t = Xe(e)), t;
|
|
5073
|
+
}, Ne = (e) => e?.field ?? e?.colField, Pe = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? Ue(e.value).value : null : e.metadata.rawValue : e.rawValue, Fe = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, Ie = (e, t) => {
|
|
5071
5074
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
5072
5075
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
5073
5076
|
return n ? {
|
|
5074
5077
|
...e,
|
|
5075
5078
|
label: String(e.metadata?.[n])
|
|
5076
5079
|
} : e;
|
|
5077
|
-
},
|
|
5078
|
-
let n =
|
|
5080
|
+
}, Le = (e, t) => {
|
|
5081
|
+
let n = fe.value, r = t, i = Ne(t);
|
|
5079
5082
|
if (i && J.value) {
|
|
5080
5083
|
let e = s.value?.getColumnDef(i);
|
|
5081
|
-
n = e ? rc(e) ?? n : n, r =
|
|
5084
|
+
n = e ? rc(e) ?? n : n, r = Ie(t, e ?? void 0);
|
|
5082
5085
|
}
|
|
5083
5086
|
return n ? n({
|
|
5084
|
-
value:
|
|
5087
|
+
value: Fe(e, r),
|
|
5085
5088
|
context: r
|
|
5086
5089
|
}) : r?.label || e;
|
|
5087
|
-
},
|
|
5090
|
+
}, Re = (e) => Le(e, Me(e)), ze = (e) => {
|
|
5088
5091
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
5089
|
-
let n =
|
|
5092
|
+
let n = g(G.value, e);
|
|
5090
5093
|
return n == null || n.label == null;
|
|
5091
|
-
},
|
|
5094
|
+
}, Be = (e) => De.value || g(G.value, e)?.isSelectable === !1 ? !0 : me.value ? !1 : q.value && !U.value.includes(e), Ve = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", He = r(() => $a(G.value, $(t.value).queryColIds, (e) => e === G.value && ce.value || Ve(e))), Ue = (e) => {
|
|
5092
5095
|
if (!e.startsWith("__")) return { value: e };
|
|
5093
5096
|
let t = e.slice(2).split("__");
|
|
5094
5097
|
return t.length < 2 ? { value: e } : {
|
|
5095
5098
|
field: t[0],
|
|
5096
5099
|
value: t[1]
|
|
5097
5100
|
};
|
|
5098
|
-
},
|
|
5099
|
-
let t =
|
|
5100
|
-
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(
|
|
5101
|
-
},
|
|
5101
|
+
}, We = (e) => vo(e, Z()), X = (e) => {
|
|
5102
|
+
let t = Ue(e.value), n = { ...e };
|
|
5103
|
+
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(X)), n;
|
|
5104
|
+
}, Ge = r(() => [...c.filterValueMap.value[G.value] || [], ...c.filterValueSelectedMetadataMap.value[G.value] || []].map((e) => e && X(e))), Z = () => Ge.value, Ke = (e, t) => {
|
|
5102
5105
|
for (let n of e) {
|
|
5103
5106
|
if (!n) continue;
|
|
5104
5107
|
if (t(n)) return n;
|
|
5105
|
-
let e = n.children ?
|
|
5108
|
+
let e = n.children ? Ke(n.children, t) : void 0;
|
|
5106
5109
|
if (e) return e;
|
|
5107
5110
|
}
|
|
5108
|
-
},
|
|
5111
|
+
}, Je = (e, t) => {
|
|
5109
5112
|
for (let n of e) {
|
|
5110
5113
|
if (!n) continue;
|
|
5111
5114
|
if (n.children?.some((e) => e.value === t)) return n;
|
|
5112
|
-
let e = n.children ?
|
|
5115
|
+
let e = n.children ? Je(n.children, t) : void 0;
|
|
5113
5116
|
if (e) return e;
|
|
5114
5117
|
}
|
|
5115
|
-
},
|
|
5118
|
+
}, Ye = (e, t) => yo(Z(), e, t), Xe = (e) => {
|
|
5116
5119
|
let t = (n) => {
|
|
5117
5120
|
if (n) {
|
|
5118
|
-
if (String(
|
|
5121
|
+
if (String(Pe(n) ?? Ue(n.value).value) === e) return n;
|
|
5119
5122
|
for (let e of n.children || []) {
|
|
5120
5123
|
let n = t(e);
|
|
5121
5124
|
if (n) return n;
|
|
5122
5125
|
}
|
|
5123
5126
|
}
|
|
5124
5127
|
};
|
|
5125
|
-
for (let e of
|
|
5128
|
+
for (let e of Z()) {
|
|
5126
5129
|
let n = t(e);
|
|
5127
5130
|
if (n) return n;
|
|
5128
5131
|
}
|
|
5129
|
-
},
|
|
5132
|
+
}, Ze = (e) => {
|
|
5130
5133
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
5131
5134
|
if (t.length < 4) return;
|
|
5132
5135
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -5145,52 +5148,52 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5145
5148
|
}],
|
|
5146
5149
|
totalChildCount: 1
|
|
5147
5150
|
};
|
|
5148
|
-
}, Ze = (e) => {
|
|
5149
|
-
let n = Ge(), r = Z(n, (t) => t.value === e.id);
|
|
5150
|
-
return r?.children?.length ? r : Ke(n, e.id) || (r && Me(r) === lc(t.value) ? r : Xe(e.id) || r);
|
|
5151
5151
|
}, Qe = (e) => {
|
|
5152
|
+
let n = Z(), r = Ke(n, (t) => t.value === e.id);
|
|
5153
|
+
return r?.children?.length ? r : Je(n, e.id) || (r && Ne(r) === lc(t.value) ? r : Ze(e.id) || r);
|
|
5154
|
+
}, $e = (e) => {
|
|
5152
5155
|
if (!J.value) return;
|
|
5153
5156
|
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
5154
5157
|
for (let e of t) e && n.set(e.value, e);
|
|
5155
5158
|
for (let t of e) {
|
|
5156
5159
|
if (t.state !== "selected") continue;
|
|
5157
|
-
let e =
|
|
5160
|
+
let e = Qe(t);
|
|
5158
5161
|
e && n.set(e.value, e);
|
|
5159
5162
|
}
|
|
5160
5163
|
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
5161
|
-
},
|
|
5164
|
+
}, et = () => {
|
|
5162
5165
|
let e = /* @__PURE__ */ new Set();
|
|
5163
|
-
for (let t of
|
|
5166
|
+
for (let t of Ee.value) {
|
|
5164
5167
|
if (t.state !== "selected") continue;
|
|
5165
|
-
let n =
|
|
5168
|
+
let n = Qe(t);
|
|
5166
5169
|
n && e.add(n.value);
|
|
5167
5170
|
}
|
|
5168
|
-
return [...e].filter((e) => !
|
|
5169
|
-
},
|
|
5170
|
-
let n =
|
|
5171
|
+
return [...e].filter((e) => !W.value.includes(e));
|
|
5172
|
+
}, tt = (e) => {
|
|
5173
|
+
let n = g(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = he.value ? "suggestions" : null;
|
|
5171
5174
|
n?.isPreference && (i = "preferences");
|
|
5172
5175
|
let a = null, o = n?.matchedValue;
|
|
5173
5176
|
o ? a = eo({
|
|
5174
|
-
getDisplayName:
|
|
5177
|
+
getDisplayName: Ve,
|
|
5175
5178
|
matchedField: n?.matchedField,
|
|
5176
5179
|
matchedValue: o,
|
|
5177
5180
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5178
|
-
}) : n?.subText ? a = n.subText :
|
|
5179
|
-
let l,
|
|
5181
|
+
}) : n?.subText ? a = n.subText : Ne(n) && J.value && !r && (a = Ve(Ne(n)));
|
|
5182
|
+
let l, u, f;
|
|
5180
5183
|
if (r && (l = (n.children ?? []).map((e) => {
|
|
5181
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5184
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Ve(e.matchedField);
|
|
5182
5185
|
return {
|
|
5183
5186
|
...e.menuOption,
|
|
5184
5187
|
id: e.value,
|
|
5185
|
-
text:
|
|
5188
|
+
text: Le(e.value, e) || "",
|
|
5186
5189
|
searchText: t,
|
|
5187
5190
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5188
5191
|
subduedText: e.subduedText,
|
|
5189
|
-
disabled: e.menuOption?.disabled ??
|
|
5192
|
+
disabled: e.menuOption?.disabled ?? Be(e.value),
|
|
5190
5193
|
context: e,
|
|
5191
5194
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5192
5195
|
};
|
|
5193
|
-
}),
|
|
5196
|
+
}), u = n.totalChildCount, u && u > l.length && n.value != null)) {
|
|
5194
5197
|
let e = n.value;
|
|
5195
5198
|
f = async (n) => {
|
|
5196
5199
|
if (!s.value || !c.filterStoreHandler.value) return;
|
|
@@ -5198,22 +5201,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5198
5201
|
api: s.value,
|
|
5199
5202
|
colDef: t.value,
|
|
5200
5203
|
field: G.value,
|
|
5201
|
-
filterModel:
|
|
5202
|
-
query:
|
|
5204
|
+
filterModel: d.value ?? void 0,
|
|
5205
|
+
query: ae.value || void 0,
|
|
5203
5206
|
offset: r,
|
|
5204
5207
|
parentId: e,
|
|
5205
5208
|
reason: "child-load-more"
|
|
5206
5209
|
});
|
|
5207
5210
|
return (((i && !Array.isArray(i) ? i.values : i) || []).find((t) => t?.value === e)?.children || []).map((e) => {
|
|
5208
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5211
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Ve(e.matchedField);
|
|
5209
5212
|
return {
|
|
5210
5213
|
...e.menuOption,
|
|
5211
5214
|
id: e.value,
|
|
5212
|
-
text:
|
|
5215
|
+
text: Le(e.value, e) || "",
|
|
5213
5216
|
searchText: t,
|
|
5214
5217
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5215
5218
|
subduedText: e.subduedText,
|
|
5216
|
-
disabled: e.menuOption?.disabled ??
|
|
5219
|
+
disabled: e.menuOption?.disabled ?? Be(e.value),
|
|
5217
5220
|
context: e,
|
|
5218
5221
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5219
5222
|
};
|
|
@@ -5223,73 +5226,73 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5223
5226
|
return {
|
|
5224
5227
|
...n?.menuOption,
|
|
5225
5228
|
id: e || "",
|
|
5226
|
-
text:
|
|
5229
|
+
text: Re(e) || "",
|
|
5227
5230
|
searchText: o,
|
|
5228
5231
|
subduedText: n?.subduedText,
|
|
5229
5232
|
subText: a || void 0,
|
|
5230
5233
|
groupingLabel: i || "",
|
|
5231
|
-
disabled: n?.menuOption?.disabled ?? (r ? !1 :
|
|
5234
|
+
disabled: n?.menuOption?.disabled ?? (r ? !1 : Be(e)),
|
|
5232
5235
|
context: n || { value: e || "" },
|
|
5233
5236
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
5234
5237
|
children: l,
|
|
5235
|
-
totalChildCount:
|
|
5238
|
+
totalChildCount: u,
|
|
5236
5239
|
handleSeeMore: f
|
|
5237
5240
|
};
|
|
5238
|
-
},
|
|
5239
|
-
let e = [...J.value ?
|
|
5240
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
5241
|
-
}),
|
|
5242
|
-
get: () => J.value ? [] :
|
|
5243
|
-
let t =
|
|
5241
|
+
}, nt = r(() => {
|
|
5242
|
+
let e = [...J.value ? et() : U.value.filter((e) => e != null && e !== "" && !W.value.includes(e)), ...W.value];
|
|
5243
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !ze(e)).map(tt);
|
|
5244
|
+
}), rt = r({
|
|
5245
|
+
get: () => J.value ? [] : U.value.map((e) => {
|
|
5246
|
+
let t = g(G.value, e), n = Ne(t), r = n ? Ve(n) : void 0;
|
|
5244
5247
|
return {
|
|
5245
5248
|
id: e,
|
|
5246
|
-
text:
|
|
5249
|
+
text: Re(e),
|
|
5247
5250
|
subText: r,
|
|
5248
5251
|
context: t || { value: e || "" }
|
|
5249
5252
|
};
|
|
5250
5253
|
}),
|
|
5251
5254
|
set: (e) => {
|
|
5252
5255
|
if (J.value) {
|
|
5253
|
-
if (e.length === 0 && !
|
|
5254
|
-
|
|
5256
|
+
if (e.length === 0 && !le.value && k.value && !K.value) {
|
|
5257
|
+
ft([]);
|
|
5255
5258
|
return;
|
|
5256
5259
|
}
|
|
5257
5260
|
i?.();
|
|
5258
5261
|
return;
|
|
5259
5262
|
}
|
|
5260
|
-
|
|
5261
|
-
!
|
|
5263
|
+
U.value = e.map((e) => e.id), (e.length === 0 && !le.value || !k.value || K.value) && (at(), z.value.forEach((e) => {
|
|
5264
|
+
!U.value.includes(e) && ne.value === G.value && te(e);
|
|
5262
5265
|
})), i?.();
|
|
5263
5266
|
}
|
|
5264
|
-
}),
|
|
5267
|
+
}), it = (e) => {
|
|
5265
5268
|
let t = {};
|
|
5266
5269
|
for (let n of e) {
|
|
5267
5270
|
if (n === null) continue;
|
|
5268
|
-
let e =
|
|
5271
|
+
let e = Ne(g(G.value, n)) || G.value;
|
|
5269
5272
|
t[e] || (t[e] = []), t[e].push(n);
|
|
5270
5273
|
}
|
|
5271
5274
|
return t;
|
|
5272
|
-
},
|
|
5275
|
+
}, at = async (e, n, r) => {
|
|
5273
5276
|
if (!s.value) return;
|
|
5274
5277
|
if (e !== void 0 && n !== void 0) {
|
|
5275
5278
|
let r = e || G.value, i = n;
|
|
5276
|
-
if (
|
|
5279
|
+
if (H.value) {
|
|
5277
5280
|
let e = bc(r, i || []);
|
|
5278
5281
|
if (K.value) {
|
|
5279
|
-
let t =
|
|
5280
|
-
|
|
5282
|
+
let t = f.value;
|
|
5283
|
+
f.value = Bc(t, e, r), j(new Set([r]));
|
|
5281
5284
|
return;
|
|
5282
5285
|
}
|
|
5283
5286
|
let t = Bc(s.value.getAdvancedFilterModel(), e, r);
|
|
5284
5287
|
v(() => {
|
|
5285
5288
|
s.value?.setAdvancedFilterModel(t);
|
|
5286
|
-
}),
|
|
5289
|
+
}), j(new Set([r]));
|
|
5287
5290
|
return;
|
|
5288
5291
|
}
|
|
5289
5292
|
if (K.value) {
|
|
5290
5293
|
let e = await Mc(s.value, t.value, i);
|
|
5291
|
-
|
|
5292
|
-
...
|
|
5294
|
+
f.value = {
|
|
5295
|
+
...f.value,
|
|
5293
5296
|
[r]: e
|
|
5294
5297
|
};
|
|
5295
5298
|
return;
|
|
@@ -5300,9 +5303,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5300
5303
|
});
|
|
5301
5304
|
return;
|
|
5302
5305
|
}
|
|
5303
|
-
let i =
|
|
5304
|
-
if (
|
|
5305
|
-
let e = K.value ?
|
|
5306
|
+
let i = it(U.value), o = $(t.value);
|
|
5307
|
+
if (H.value) {
|
|
5308
|
+
let e = K.value ? f.value : s.value.getAdvancedFilterModel(), n = e;
|
|
5306
5309
|
if (J.value) {
|
|
5307
5310
|
let e = cc(t.value), r = [];
|
|
5308
5311
|
for (let t of e) {
|
|
@@ -5326,7 +5329,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5326
5329
|
} : e;
|
|
5327
5330
|
}
|
|
5328
5331
|
} else {
|
|
5329
|
-
let t =
|
|
5332
|
+
let t = U.value.length > 0 ? U.value : null, r = bc(G.value, t || []);
|
|
5330
5333
|
n = Bc(n, r, G.value);
|
|
5331
5334
|
let i = !1;
|
|
5332
5335
|
if (a?.value) {
|
|
@@ -5339,29 +5342,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5339
5342
|
n = Bc(n, r, t);
|
|
5340
5343
|
}
|
|
5341
5344
|
}
|
|
5342
|
-
let s =
|
|
5345
|
+
let s = U.value.filter((e) => e !== null), c = Hc(G.value, e), l = new Set(c), u = new Set(s);
|
|
5343
5346
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5344
5347
|
}
|
|
5345
5348
|
if (r?.skipIfUnchanged && zc(e, n)) return;
|
|
5346
|
-
let c = J.value ?
|
|
5347
|
-
if (K.value)
|
|
5349
|
+
let c = J.value ? Y() : new Set([G.value]);
|
|
5350
|
+
if (K.value) f.value = n, j(c);
|
|
5348
5351
|
else {
|
|
5349
5352
|
let e = n;
|
|
5350
5353
|
v(() => {
|
|
5351
5354
|
s.value?.setAdvancedFilterModel(e);
|
|
5352
|
-
}),
|
|
5355
|
+
}), j(c);
|
|
5353
5356
|
}
|
|
5354
5357
|
return;
|
|
5355
5358
|
}
|
|
5356
|
-
let c =
|
|
5359
|
+
let c = U.value.length > 0 ? U.value : null;
|
|
5357
5360
|
if (r?.skipIfUnchanged) {
|
|
5358
5361
|
let e = Nc(t.value, s.value.getFilterModel());
|
|
5359
|
-
if (
|
|
5362
|
+
if (Te(U.value, e)) return;
|
|
5360
5363
|
}
|
|
5361
5364
|
if (K.value) {
|
|
5362
5365
|
let e = await Mc(s.value, t.value, c);
|
|
5363
|
-
|
|
5364
|
-
...
|
|
5366
|
+
f.value = {
|
|
5367
|
+
...f.value,
|
|
5365
5368
|
[G.value]: e
|
|
5366
5369
|
};
|
|
5367
5370
|
return;
|
|
@@ -5370,79 +5373,79 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5370
5373
|
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5371
5374
|
s.value && s.value.onFilterChanged();
|
|
5372
5375
|
});
|
|
5373
|
-
},
|
|
5374
|
-
if (e &&
|
|
5375
|
-
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e :
|
|
5376
|
-
|
|
5376
|
+
}, ot = (e, n) => {
|
|
5377
|
+
if (e && me.value ? U.value = [e] : e && !U.value.includes(e) && (U.value = [...U.value, e]), J.value && e) {
|
|
5378
|
+
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ye(r, e) || e;
|
|
5379
|
+
Ee.value.find((e) => e.id === i) || (Ee.value = [...Ee.value, {
|
|
5377
5380
|
id: i,
|
|
5378
5381
|
state: "selected"
|
|
5379
5382
|
}]);
|
|
5380
5383
|
}
|
|
5381
|
-
(!
|
|
5382
|
-
},
|
|
5383
|
-
if (
|
|
5384
|
-
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e :
|
|
5385
|
-
|
|
5384
|
+
(!k.value || K.value) && (J.value && e ? ft(Ee.value) : n && n !== G.value ? at(n, [e]) : at()), i?.();
|
|
5385
|
+
}, st = (e, n) => {
|
|
5386
|
+
if (U.value = U.value.filter((t) => t !== e), J.value && e) {
|
|
5387
|
+
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ye(r, e) || e;
|
|
5388
|
+
Ee.value = Ee.value.filter((e) => e.id !== i);
|
|
5386
5389
|
}
|
|
5387
|
-
(!
|
|
5388
|
-
}, st = () => {
|
|
5389
|
-
ue.value = ke(x(G.value)), ce.value = !0;
|
|
5390
|
+
(!k.value || K.value) && (J.value && e ? ft(Ee.value) : n && n !== G.value ? at(n, null) : at()), i?.();
|
|
5390
5391
|
}, ct = () => {
|
|
5391
|
-
|
|
5392
|
-
}, lt =
|
|
5392
|
+
de.value = Ae(S(G.value)), le.value = !0;
|
|
5393
|
+
}, lt = () => {
|
|
5394
|
+
le.value = !1, de.value = [], ae.value = "", !o?.value && k.value && !K.value && (J.value ? ft(Ee.value, { skipIfUnchanged: !0 }) : at(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5395
|
+
}, ut = async (e) => {
|
|
5393
5396
|
if (!s.value) return;
|
|
5394
|
-
let n =
|
|
5395
|
-
r && (
|
|
5397
|
+
let n = W.value.length, r = !e.parentId;
|
|
5398
|
+
r && (ue.value = !0);
|
|
5396
5399
|
try {
|
|
5397
5400
|
await l(t.value, {
|
|
5398
5401
|
api: s.value,
|
|
5399
|
-
filterModel:
|
|
5402
|
+
filterModel: d.value ?? void 0,
|
|
5400
5403
|
offset: e.offset ?? n,
|
|
5401
5404
|
parentId: e.parentId,
|
|
5402
5405
|
useStaged: K.value
|
|
5403
5406
|
});
|
|
5404
5407
|
} finally {
|
|
5405
|
-
r && (
|
|
5408
|
+
r && (ue.value = !1);
|
|
5406
5409
|
}
|
|
5407
|
-
},
|
|
5410
|
+
}, dt = (e, n) => So({
|
|
5408
5411
|
baseModel: n,
|
|
5409
5412
|
colDef: t.value,
|
|
5410
|
-
options:
|
|
5413
|
+
options: Z(),
|
|
5411
5414
|
state: e
|
|
5412
|
-
}),
|
|
5413
|
-
if (!s.value || !J.value || (
|
|
5414
|
-
let r = K.value ?
|
|
5415
|
+
}), ft = (e, n) => {
|
|
5416
|
+
if (!s.value || !J.value || (Ee.value = e, $e(e), cc(t.value).length === 0)) return !1;
|
|
5417
|
+
let r = K.value ? f.value : s.value.getAdvancedFilterModel(), a = dt(e, r);
|
|
5415
5418
|
if (n?.skipIfUnchanged && zc(r, a)) return !1;
|
|
5416
|
-
if (K.value)
|
|
5419
|
+
if (K.value) f.value = a;
|
|
5417
5420
|
else {
|
|
5418
5421
|
let e = a;
|
|
5419
5422
|
v(() => {
|
|
5420
5423
|
s.value?.setAdvancedFilterModel(e);
|
|
5421
5424
|
});
|
|
5422
5425
|
}
|
|
5423
|
-
return
|
|
5424
|
-
},
|
|
5426
|
+
return j(Y()), i?.(), !0;
|
|
5427
|
+
}, pt = (e) => {
|
|
5425
5428
|
if (!J.value || !cc(t.value).length) return;
|
|
5426
5429
|
let n = wo({
|
|
5427
5430
|
colDef: t.value,
|
|
5428
5431
|
model: e,
|
|
5429
|
-
options:
|
|
5432
|
+
options: Z()
|
|
5430
5433
|
});
|
|
5431
|
-
JSON.stringify(
|
|
5432
|
-
},
|
|
5433
|
-
let { field: t, value: n } =
|
|
5434
|
-
return t ?
|
|
5435
|
-
}) : !1,
|
|
5436
|
-
!J.value || !
|
|
5434
|
+
JSON.stringify(Ee.value) !== JSON.stringify(n) && (Ee.value = n), $e(n);
|
|
5435
|
+
}, mt = () => J.value ? Ee.value.some((e) => {
|
|
5436
|
+
let { field: t, value: n } = We(e.id);
|
|
5437
|
+
return t ? Ye(t, n) !== e.id : !1;
|
|
5438
|
+
}) : !1, ht = () => {
|
|
5439
|
+
!J.value || !H.value || mt() && pt(d.value);
|
|
5437
5440
|
};
|
|
5438
|
-
return B(
|
|
5439
|
-
J.value && (
|
|
5440
|
-
}, { deep: !0 }), B(() =>
|
|
5441
|
-
e &&
|
|
5442
|
-
}), B(() =>
|
|
5441
|
+
return B(Ee, (e) => {
|
|
5442
|
+
J.value && ($e(e), !(k.value && !K.value) && ft(e));
|
|
5443
|
+
}, { deep: !0 }), B(() => E.value[G.value], (e) => {
|
|
5444
|
+
e && D.value && je(!0);
|
|
5445
|
+
}), B(() => f.value, () => {
|
|
5443
5446
|
if (K.value) {
|
|
5444
|
-
if (
|
|
5445
|
-
let e = [], n =
|
|
5447
|
+
if (H.value) {
|
|
5448
|
+
let e = [], n = f.value;
|
|
5446
5449
|
if (J.value) {
|
|
5447
5450
|
let r = cc(t.value);
|
|
5448
5451
|
for (let t of r) {
|
|
@@ -5450,93 +5453,97 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5450
5453
|
e.push(...r);
|
|
5451
5454
|
}
|
|
5452
5455
|
} else e = Hc(G.value, n);
|
|
5453
|
-
|
|
5456
|
+
U.value = e;
|
|
5454
5457
|
return;
|
|
5455
5458
|
}
|
|
5456
|
-
|
|
5459
|
+
se.value === "agSetColumnFilter" ? U.value = f.value?.[G.value]?.values || [] : se.value === "agMultiColumnFilter" ? U.value = f.value?.[G.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${se.value} is not yet supported.`);
|
|
5457
5460
|
}
|
|
5458
|
-
}), B(() =>
|
|
5461
|
+
}), B(() => d.value, () => {
|
|
5459
5462
|
if (K.value) return;
|
|
5460
5463
|
if (J.value) {
|
|
5461
|
-
|
|
5464
|
+
H.value && pt(d.value);
|
|
5462
5465
|
return;
|
|
5463
5466
|
}
|
|
5464
|
-
if (
|
|
5465
|
-
let e =
|
|
5466
|
-
|
|
5467
|
+
if (H.value) {
|
|
5468
|
+
let e = d.value, t = Hc(G.value, e);
|
|
5469
|
+
Oe(U.value.some((e) => e !== null && !t.includes(e)));
|
|
5467
5470
|
return;
|
|
5468
5471
|
}
|
|
5469
|
-
let e = Nc(t.value,
|
|
5470
|
-
|
|
5471
|
-
}, { deep: !0 }), B(() =>
|
|
5472
|
-
|
|
5472
|
+
let e = Nc(t.value, d.value);
|
|
5473
|
+
Oe(U.value.some((t) => !e.includes(t)));
|
|
5474
|
+
}, { deep: !0 }), B(() => p.value, () => {
|
|
5475
|
+
U.value = [], Ee.value = [];
|
|
5473
5476
|
}), B(() => s.value, (e) => {
|
|
5474
|
-
e &&
|
|
5475
|
-
}, { immediate: !0 }), B(() =>
|
|
5476
|
-
|
|
5477
|
-
await
|
|
5478
|
-
}, 2e3) : await
|
|
5479
|
-
}), qe(() =>
|
|
5480
|
-
|
|
5477
|
+
e && y.value && (E.value[G.value] = !0);
|
|
5478
|
+
}, { immediate: !0 }), B(() => V.value, async () => {
|
|
5479
|
+
D.value && (K.value ? setTimeout(async () => {
|
|
5480
|
+
await je(!0);
|
|
5481
|
+
}, 2e3) : await je(!0)), Oe();
|
|
5482
|
+
}), qe(() => ae.value, async () => {
|
|
5483
|
+
if (oe.value) {
|
|
5484
|
+
u(G.value);
|
|
5485
|
+
return;
|
|
5486
|
+
}
|
|
5487
|
+
await je(!0, !0);
|
|
5481
5488
|
}, { debounce: 300 }), w(() => {
|
|
5482
|
-
|
|
5489
|
+
N(G.value);
|
|
5483
5490
|
let e = cc(t.value);
|
|
5484
|
-
if (e.length &&
|
|
5485
|
-
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value &&
|
|
5491
|
+
if (e.length && M(G.value, e), Oe(), J.value && H.value && pt(d.value), o?.value && y.value && s.value) {
|
|
5492
|
+
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value && H.value ? cc(t.value).some((e) => Hc(e, d.value).length > 0) : U.value.length > 0;
|
|
5486
5493
|
e && n && l(t.value, {
|
|
5487
5494
|
api: s.value,
|
|
5488
|
-
filterModel:
|
|
5495
|
+
filterModel: d.value ?? void 0
|
|
5489
5496
|
});
|
|
5490
5497
|
}
|
|
5491
|
-
J.value || $(t.value).metadataDisplayFields?.length &&
|
|
5498
|
+
J.value || $(t.value).metadataDisplayFields?.length && U.value.some((e) => ze(e)) && je(!0, !0);
|
|
5492
5499
|
}), T(() => {
|
|
5493
|
-
|
|
5500
|
+
P(G.value), k.value && !K.value && (J.value ? ft(Ee.value, { skipIfUnchanged: !0 }) : at(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5494
5501
|
}), {
|
|
5495
|
-
selectedValues:
|
|
5496
|
-
filterValues:
|
|
5497
|
-
isLoading:
|
|
5498
|
-
isSeeMoreLoading:
|
|
5499
|
-
filterSearchText:
|
|
5500
|
-
filterSearchMinLength:
|
|
5501
|
-
belowFilterSearchMinLength:
|
|
5502
|
-
rowsLoading:
|
|
5502
|
+
selectedValues: U,
|
|
5503
|
+
filterValues: W,
|
|
5504
|
+
isLoading: ie,
|
|
5505
|
+
isSeeMoreLoading: ue,
|
|
5506
|
+
filterSearchText: ae,
|
|
5507
|
+
filterSearchMinLength: A,
|
|
5508
|
+
belowFilterSearchMinLength: oe,
|
|
5509
|
+
rowsLoading: re,
|
|
5503
5510
|
gridApi: s,
|
|
5504
5511
|
filterField: G,
|
|
5505
|
-
filterType:
|
|
5506
|
-
filterDisplayName:
|
|
5512
|
+
filterType: se,
|
|
5513
|
+
filterDisplayName: ce,
|
|
5507
5514
|
isInFilterPanel: K,
|
|
5508
|
-
maxSelectableValues:
|
|
5509
|
-
isSingleSelect:
|
|
5510
|
-
selectionLimitReached:
|
|
5511
|
-
suggestedValues:
|
|
5512
|
-
displayedFilterValues:
|
|
5513
|
-
selectedFilterValues:
|
|
5514
|
-
showSearchBar:
|
|
5515
|
-
filterSearchPlaceholder:
|
|
5516
|
-
emptyFilterResultsRenderer:
|
|
5517
|
-
filterOptionsRenderer:
|
|
5518
|
-
filterHeaderRenderer:
|
|
5519
|
-
filterFooterRenderer:
|
|
5520
|
-
filterOptionsSortDescription:
|
|
5521
|
-
filterOptionsSortTooltip:
|
|
5522
|
-
totalOptionCount:
|
|
5523
|
-
hasMoreOptions:
|
|
5515
|
+
maxSelectableValues: pe,
|
|
5516
|
+
isSingleSelect: me,
|
|
5517
|
+
selectionLimitReached: q,
|
|
5518
|
+
suggestedValues: Se,
|
|
5519
|
+
displayedFilterValues: nt,
|
|
5520
|
+
selectedFilterValues: rt,
|
|
5521
|
+
showSearchBar: _e,
|
|
5522
|
+
filterSearchPlaceholder: He,
|
|
5523
|
+
emptyFilterResultsRenderer: ve,
|
|
5524
|
+
filterOptionsRenderer: ye,
|
|
5525
|
+
filterHeaderRenderer: be,
|
|
5526
|
+
filterFooterRenderer: xe,
|
|
5527
|
+
filterOptionsSortDescription: he,
|
|
5528
|
+
filterOptionsSortTooltip: ge,
|
|
5529
|
+
totalOptionCount: Ce,
|
|
5530
|
+
hasMoreOptions: we,
|
|
5524
5531
|
isAggregate: J,
|
|
5525
|
-
cascadeSelectionState:
|
|
5526
|
-
filterValueContext:
|
|
5527
|
-
formatDisplayValue:
|
|
5528
|
-
resolvedFilterValueContext:
|
|
5529
|
-
isUnresolvedMetadataValue:
|
|
5530
|
-
getLatestFilterValues:
|
|
5531
|
-
addSelectedValue:
|
|
5532
|
-
removeSelectedValue:
|
|
5533
|
-
handleDropdownOpen:
|
|
5534
|
-
handleDropdownClosed:
|
|
5535
|
-
handleSeeMore:
|
|
5536
|
-
handleCascadeSelectionState:
|
|
5537
|
-
getColDisplayNameForField:
|
|
5538
|
-
disableFilterValue:
|
|
5539
|
-
updateFilterModelWithSelectedValues:
|
|
5532
|
+
cascadeSelectionState: Ee,
|
|
5533
|
+
filterValueContext: g,
|
|
5534
|
+
formatDisplayValue: Re,
|
|
5535
|
+
resolvedFilterValueContext: Me,
|
|
5536
|
+
isUnresolvedMetadataValue: ze,
|
|
5537
|
+
getLatestFilterValues: je,
|
|
5538
|
+
addSelectedValue: ot,
|
|
5539
|
+
removeSelectedValue: st,
|
|
5540
|
+
handleDropdownOpen: ct,
|
|
5541
|
+
handleDropdownClosed: lt,
|
|
5542
|
+
handleSeeMore: ut,
|
|
5543
|
+
handleCascadeSelectionState: ft,
|
|
5544
|
+
getColDisplayNameForField: Ve,
|
|
5545
|
+
disableFilterValue: Be,
|
|
5546
|
+
updateFilterModelWithSelectedValues: at
|
|
5540
5547
|
};
|
|
5541
5548
|
}, il = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5542
5549
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5819,13 +5826,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5819
5826
|
"handle-settings-icon"
|
|
5820
5827
|
],
|
|
5821
5828
|
setup(e, { emit: n }) {
|
|
5822
|
-
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: ee, filterField: L, filterDisplayName: R, isInFilterPanel: z, suggestedValues: te, displayedFilterValues: ne, selectedFilterValues: re, showSearchBar: B, filterSearchPlaceholder: H, emptyFilterResultsRenderer: U, filterOptionsRenderer: W, filterHeaderRenderer: ie, filterFooterRenderer: ae, filterOptionsSortDescription:
|
|
5829
|
+
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: ee, filterField: L, filterDisplayName: R, isInFilterPanel: z, suggestedValues: te, displayedFilterValues: ne, selectedFilterValues: re, showSearchBar: B, filterSearchPlaceholder: H, emptyFilterResultsRenderer: U, filterOptionsRenderer: W, filterHeaderRenderer: ie, filterFooterRenderer: ae, filterOptionsSortDescription: oe, filterOptionsSortTooltip: G, filterValueContext: se, formatDisplayValue: ce, resolvedFilterValueContext: K, isUnresolvedMetadataValue: le, getLatestFilterValues: ue, addSelectedValue: de, removeSelectedValue: fe, handleDropdownOpen: pe, handleDropdownClosed: me, handleSeeMore: he, getColDisplayNameForField: ge, hasMoreOptions: _e, totalOptionCount: ve, isAggregate: ye, cascadeSelectionState: be } = rl({
|
|
5823
5830
|
filterColDef: F(d, "filterColDef"),
|
|
5824
5831
|
filterStyle: F(d, "filterStyle"),
|
|
5825
5832
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5826
5833
|
filterGroupStagedFields: x,
|
|
5827
5834
|
readOnly: F(d, "readOnly")
|
|
5828
|
-
}), { handleFocusUpdate: xe, isFocused: q, removeFocus: Se, isFocusable: Ce, canRemoveFocus:
|
|
5835
|
+
}), { handleFocusUpdate: xe, isFocused: q, removeFocus: Se, isFocusable: Ce, canRemoveFocus: we } = Fs(), J = (e) => {
|
|
5829
5836
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5830
5837
|
if (e.id.startsWith("__")) {
|
|
5831
5838
|
let t = e.id.slice(2).split("__");
|
|
@@ -5839,23 +5846,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5839
5846
|
tooltipText: (e) => {
|
|
5840
5847
|
let t = e.context?.colField || L.value;
|
|
5841
5848
|
if (!Ce([t])) return `Group by ${ge(t)} to enable ${d.focusText}`;
|
|
5842
|
-
let n = q(ye.value ?
|
|
5843
|
-
return n && !
|
|
5849
|
+
let n = q(ye.value ? J(e) : e.id, t);
|
|
5850
|
+
return n && !we() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5844
5851
|
},
|
|
5845
5852
|
action: (e) => {
|
|
5846
5853
|
e && !C.value.includes(e.id) && de(e.id, e.context?.colField);
|
|
5847
5854
|
let t = e.context?.colField || L.value;
|
|
5848
|
-
xe(ye.value ?
|
|
5855
|
+
xe(ye.value ? J(e) : e.id, t);
|
|
5849
5856
|
},
|
|
5850
5857
|
alwaysShow: (e) => {
|
|
5851
5858
|
let t = e.context?.colField || L.value;
|
|
5852
|
-
return q(ye.value ?
|
|
5859
|
+
return q(ye.value ? J(e) : e.id, t);
|
|
5853
5860
|
}
|
|
5854
5861
|
};
|
|
5855
5862
|
}), Te = (e) => {
|
|
5856
5863
|
if (!e) return null;
|
|
5857
5864
|
if (!ye.value) return e;
|
|
5858
|
-
let t =
|
|
5865
|
+
let t = K(e);
|
|
5859
5866
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5860
5867
|
if (e.startsWith("__")) {
|
|
5861
5868
|
let t = e.slice(2).split("__");
|
|
@@ -5864,8 +5871,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5864
5871
|
return e;
|
|
5865
5872
|
}, Ee = (e) => {
|
|
5866
5873
|
fe(e);
|
|
5867
|
-
let t =
|
|
5868
|
-
q(n, t) &&
|
|
5874
|
+
let t = K(e)?.colField || L.value, n = Te(e);
|
|
5875
|
+
q(n, t) && we() && Se(n);
|
|
5869
5876
|
}, De = m(gs, O(!1)), Oe = r(() => !!$(d.filterColDef).filterGroup && De.value), ke = () => {
|
|
5870
5877
|
pe(), ue(!0);
|
|
5871
5878
|
}, Ae = () => {
|
|
@@ -5873,12 +5880,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5873
5880
|
me(), f("filter-closed");
|
|
5874
5881
|
});
|
|
5875
5882
|
}, je = (e) => {
|
|
5876
|
-
let t =
|
|
5883
|
+
let t = K(e)?.colField || L.value;
|
|
5877
5884
|
return q(Te(e), t);
|
|
5878
5885
|
}, Me = r(() => S.value > 0 ? !0 : ye.value ? be.value.length > 0 : C.value.length > 0);
|
|
5879
5886
|
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul", ul, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(R)}-${n}` }, [I(le)(n) ? a("", !0) : (E(), o("li", dl, [u(vi, {
|
|
5880
|
-
label: I(
|
|
5881
|
-
showClear: !e.readOnly && (!je(n) || I(
|
|
5887
|
+
label: I(ce)(n) || "",
|
|
5888
|
+
showClear: !e.readOnly && (!je(n) || I(we)()),
|
|
5882
5889
|
disabled: e.readOnly,
|
|
5883
5890
|
onHandleClose: (e) => Ee(n)
|
|
5884
5891
|
}, null, 8, [
|
|
@@ -5957,11 +5964,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5957
5964
|
"use-teleport": !0,
|
|
5958
5965
|
style: { "--max-width": "200px" }
|
|
5959
5966
|
}, c({
|
|
5960
|
-
trigger: V(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(
|
|
5967
|
+
trigger: V(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(G) ? "suggested-title-label" : ""]) }, P(I(oe)), 3)]),
|
|
5961
5968
|
_: 2
|
|
5962
|
-
}, [I(
|
|
5969
|
+
}, [I(G) ? {
|
|
5963
5970
|
name: "content",
|
|
5964
|
-
fn: V(() => [l(P(I(
|
|
5971
|
+
fn: V(() => [l(P(I(G)), 1)]),
|
|
5965
5972
|
key: "0"
|
|
5966
5973
|
} : void 0]), 1024)])]),
|
|
5967
5974
|
_: 2
|
|
@@ -5999,11 +6006,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5999
6006
|
"use-teleport": !0,
|
|
6000
6007
|
style: { "--max-width": "200px" }
|
|
6001
6008
|
}, c({
|
|
6002
|
-
trigger: V(() => [s("li", vl, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(
|
|
6009
|
+
trigger: V(() => [s("li", vl, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(G) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
6003
6010
|
_: 2
|
|
6004
|
-
}, [I(
|
|
6011
|
+
}, [I(G) ? {
|
|
6005
6012
|
name: "content",
|
|
6006
|
-
fn: V(() => [l(P(I(
|
|
6013
|
+
fn: V(() => [l(P(I(G)), 1)]),
|
|
6007
6014
|
key: "0"
|
|
6008
6015
|
} : void 0]), 1024), (E(!0), o(t, null, k(I(te).filter((e) => e !== "" && e != null).slice(0, yl), (e) => (E(), o("li", {
|
|
6009
6016
|
key: `${I(R)}-${e}-suggest`,
|
|
@@ -6014,7 +6021,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6014
6021
|
}
|
|
6015
6022
|
}, [u(I(Pi), {
|
|
6016
6023
|
disabled: I(w),
|
|
6017
|
-
label: I(
|
|
6024
|
+
label: I(ce)(e) || "",
|
|
6018
6025
|
onHandleClick: (t) => I(de)(e, I(se)(I(L), e)?.colField)
|
|
6019
6026
|
}, null, 8, [
|
|
6020
6027
|
"disabled",
|
|
@@ -6771,12 +6778,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6771
6778
|
let d = [
|
|
6772
6779
|
Te,
|
|
6773
6780
|
Ee,
|
|
6774
|
-
|
|
6781
|
+
oe,
|
|
6775
6782
|
De,
|
|
6776
6783
|
se,
|
|
6777
6784
|
Oe,
|
|
6778
|
-
K,
|
|
6779
6785
|
ce,
|
|
6786
|
+
K,
|
|
6780
6787
|
ke,
|
|
6781
6788
|
Ae,
|
|
6782
6789
|
le,
|
|
@@ -6787,7 +6794,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6787
6794
|
Re,
|
|
6788
6795
|
Le,
|
|
6789
6796
|
ze,
|
|
6790
|
-
|
|
6797
|
+
we,
|
|
6791
6798
|
Ne,
|
|
6792
6799
|
be,
|
|
6793
6800
|
Fe,
|
|
@@ -6797,8 +6804,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6797
6804
|
ye,
|
|
6798
6805
|
Be,
|
|
6799
6806
|
Ce,
|
|
6800
|
-
|
|
6801
|
-
|
|
6807
|
+
J,
|
|
6808
|
+
G,
|
|
6802
6809
|
Se,
|
|
6803
6810
|
he,
|
|
6804
6811
|
_e,
|
|
@@ -7901,12 +7908,12 @@ var Iu = {
|
|
|
7901
7908
|
}))), ae = r(() => ee.value.map((e) => ({
|
|
7902
7909
|
id: e.value,
|
|
7903
7910
|
text: e.label
|
|
7904
|
-
}))),
|
|
7911
|
+
}))), oe = r(() => D.value.map((e) => ({
|
|
7905
7912
|
id: e.field || "",
|
|
7906
7913
|
text: e.headerName || e.field || "",
|
|
7907
7914
|
icon: Ks(e.context?.dataType || null) || "circle-chevron-down"
|
|
7908
|
-
}))),
|
|
7909
|
-
get: () => T.value.map((e) =>
|
|
7915
|
+
}))), G = r({
|
|
7916
|
+
get: () => T.value.map((e) => oe.value.find((t) => t.id === e)).filter(Boolean),
|
|
7910
7917
|
set: (e) => {
|
|
7911
7918
|
T.value = e.map((e) => e.id);
|
|
7912
7919
|
}
|
|
@@ -7928,12 +7935,12 @@ var Iu = {
|
|
|
7928
7935
|
label: "X Axis",
|
|
7929
7936
|
icon: "align-end-horizontal",
|
|
7930
7937
|
allowDeselect: !1,
|
|
7931
|
-
availableOptions:
|
|
7938
|
+
availableOptions: oe.value,
|
|
7932
7939
|
...i ? {
|
|
7933
|
-
activeOptions:
|
|
7940
|
+
activeOptions: G,
|
|
7934
7941
|
activeOptionLimit: n.rowGroupLimit
|
|
7935
7942
|
} : {
|
|
7936
|
-
currentOption:
|
|
7943
|
+
currentOption: oe.value.find((e) => e.id === T.value[0]),
|
|
7937
7944
|
updateSelectedOption: (e) => {
|
|
7938
7945
|
T.value = e ? [e] : [];
|
|
7939
7946
|
}
|
|
@@ -8005,15 +8012,15 @@ var Iu = {
|
|
|
8005
8012
|
n && e.push(n);
|
|
8006
8013
|
}
|
|
8007
8014
|
let c = i ? 2 : 1;
|
|
8008
|
-
return
|
|
8015
|
+
return oe.value.length >= c && e.push(a), S.value.length > 1 && e.push(s), w.value.length > 0 && e.push(o), e.filter((e) => n.chartConfigOptions ? n.chartConfigOptions.includes(e.value) : !0);
|
|
8009
8016
|
});
|
|
8010
8017
|
B(v, (e) => {
|
|
8011
8018
|
e && (p.value = e);
|
|
8012
8019
|
});
|
|
8013
|
-
let
|
|
8014
|
-
let t =
|
|
8020
|
+
let ce = r(() => _.value && se.value.find((e) => e.value === _.value) || null), K = (e) => {
|
|
8021
|
+
let t = ce.value;
|
|
8015
8022
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
8016
|
-
}, le = (e) =>
|
|
8023
|
+
}, le = (e) => ce.value?.isMultiSelect ? null : K(e), ue = (e) => ce.value?.isMultiSelect ? {
|
|
8017
8024
|
variant: "checkbox",
|
|
8018
8025
|
renderer: zu
|
|
8019
8026
|
} : W(e) ? { renderer: zu } : { variant: "icon" }, de = (e) => {
|
|
@@ -8134,23 +8141,23 @@ var Iu = {
|
|
|
8134
8141
|
},
|
|
8135
8142
|
isList: !0
|
|
8136
8143
|
}, {
|
|
8137
|
-
default: V(() => [
|
|
8144
|
+
default: V(() => [ce.value ? (E(), o(t, { key: 0 }, [ce.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
8138
8145
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
8139
8146
|
style: {
|
|
8140
8147
|
"padding-left": "2px",
|
|
8141
8148
|
"padding-bottom": "6px"
|
|
8142
8149
|
}
|
|
8143
8150
|
}, " Viewing ", -1), u(Ou, {
|
|
8144
|
-
modelValue:
|
|
8145
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
8146
|
-
options:
|
|
8147
|
-
activeOptionLimit:
|
|
8151
|
+
modelValue: ce.value.activeOptions.value,
|
|
8152
|
+
"onUpdate:modelValue": r[2] ||= (e) => ce.value.activeOptions.value = e,
|
|
8153
|
+
options: ce.value.availableOptions || [],
|
|
8154
|
+
activeOptionLimit: ce.value.activeOptionLimit,
|
|
8148
8155
|
placeholderText: "Add to X Axis"
|
|
8149
8156
|
}, null, 8, [
|
|
8150
8157
|
"modelValue",
|
|
8151
8158
|
"options",
|
|
8152
8159
|
"activeOptionLimit"
|
|
8153
|
-
])], 64)) : (E(), o("ul", Ku, [(E(!0), o(t, null, k(
|
|
8160
|
+
])], 64)) : (E(), o("ul", Ku, [(E(!0), o(t, null, k(ce.value.availableOptions, (e) => (E(), o("li", {
|
|
8154
8161
|
key: e.id,
|
|
8155
8162
|
"data-active": le(e)
|
|
8156
8163
|
}, [u(za, {
|
|
@@ -8160,11 +8167,11 @@ var Iu = {
|
|
|
8160
8167
|
icon: e.icon,
|
|
8161
8168
|
context: e.context,
|
|
8162
8169
|
disabled: e.disabled,
|
|
8163
|
-
selectedIds:
|
|
8170
|
+
selectedIds: ce.value.isMultiSelect ? [...I(L)] : [],
|
|
8164
8171
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
8165
|
-
|
|
8172
|
+
ce.value?.updateSelectedOptions?.([...ce.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
8166
8173
|
},
|
|
8167
|
-
onHandleSelected: (t) =>
|
|
8174
|
+
onHandleSelected: (t) => ce.value.updateSelectedOption?.(e.id),
|
|
8168
8175
|
"class-list": ["pv-chart-option pv-flex"]
|
|
8169
8176
|
}, null, 8, [
|
|
8170
8177
|
"id",
|
|
@@ -8494,9 +8501,9 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8494
8501
|
d("table-overlay-change", e);
|
|
8495
8502
|
}, U = r(() => $e.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && R.filterModelEmpty.value)), W = r(() => z?.computedFocusType.value || null), ie = r(() => z?.computedFocuses.value || []), ae = (e) => {
|
|
8496
8503
|
p.value = e.api, re.value || p.value?.setRowGroupColumns([]), Ve(e.api), d("grid-ready", e);
|
|
8497
|
-
}, G = (e) => {
|
|
8498
|
-
d("first-data-rendered", e);
|
|
8499
8504
|
}, oe = (e) => {
|
|
8505
|
+
d("first-data-rendered", e);
|
|
8506
|
+
}, G = (e) => {
|
|
8500
8507
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8501
8508
|
if (re.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8502
8509
|
let t = ge.value;
|
|
@@ -8526,7 +8533,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8526
8533
|
}
|
|
8527
8534
|
p.value && Ve(p.value);
|
|
8528
8535
|
});
|
|
8529
|
-
function
|
|
8536
|
+
function ce(e, t, n = !0) {
|
|
8530
8537
|
return (r) => {
|
|
8531
8538
|
if (r.data = be.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8532
8539
|
let i = "", a = le(e);
|
|
@@ -8542,10 +8549,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8542
8549
|
return t && (o = t(r)), o + i;
|
|
8543
8550
|
};
|
|
8544
8551
|
}
|
|
8545
|
-
let
|
|
8552
|
+
let K = (e, t = !1) => {
|
|
8546
8553
|
if (!e) return;
|
|
8547
8554
|
let n = le(e);
|
|
8548
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8555
|
+
return n && typeof n.valueFormatter == "function" ? ce(e, n.valueFormatter, t) : ce(e, null, t);
|
|
8549
8556
|
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
8550
8557
|
let n = le(N.value);
|
|
8551
8558
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
@@ -8560,8 +8567,8 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8560
8567
|
text: "Descending",
|
|
8561
8568
|
id: "desc",
|
|
8562
8569
|
icon: "arrow-down-narrow-wide"
|
|
8563
|
-
}]), be = O([]), xe = O([]), q = O(l.yKey), Se = O(ee.value[0]?.value), Ce = r(() => l.crosslineOverlayGroups ?? []),
|
|
8564
|
-
D(Jo, p), D(os, Ee), D(Qo, ve), D(ss, j), D(cs, de), D(ls, ye), D(us, fe), D(ds, Te), D(fs, q), D(ps, I), D(ms, Se), D(hs, ee), D(_s,
|
|
8570
|
+
}]), be = O([]), xe = O([]), q = O(l.yKey), Se = O(ee.value[0]?.value), Ce = r(() => l.crosslineOverlayGroups ?? []), we = O(new Set(Ce.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), J = r(() => Ce.value.filter((e) => we.value.has(e.id)).flatMap((e) => e.overlays)), Y = O(null), Te = O(ye.value.find((e) => e.id === l.initialSort || "")), Ee = O("");
|
|
8571
|
+
D(Jo, p), D(os, Ee), D(Qo, ve), D(ss, j), D(cs, de), D(ls, ye), D(us, fe), D(ds, Te), D(fs, q), D(ps, I), D(ms, Se), D(hs, ee), D(_s, we), D(vs, Ce);
|
|
8565
8572
|
let De = (e) => {
|
|
8566
8573
|
fe.value = de.value.find((t) => t.id === e) ?? de.value[0];
|
|
8567
8574
|
};
|
|
@@ -8590,7 +8597,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8590
8597
|
let e = ee.value.find((e) => e.value === Se.value);
|
|
8591
8598
|
return e ? e.label : "";
|
|
8592
8599
|
}), je = r(() => ge.value.isHorizontal === !0), Me = r(() => j.value.length > 1), Ne = r(() => !fe.value || I.value.length === 0 ? [] : ge.value.seriesFamily === "pie" ? Re.value : Le.value), Pe = r(() => l.showSeriesLabels), Fe = r(() => fe.value?.id.includes("stacked")), Ie = r(() => j.value.length > 1), Le = r(() => {
|
|
8593
|
-
let e = Fe.value, t = ge.value.agChartType, n = [], r =
|
|
8600
|
+
let e = Fe.value, t = ge.value.agChartType, n = [], r = K(q.value, !0), i = K(Y.value?.fieldName, !0);
|
|
8594
8601
|
if (Me.value) Y.value?.fieldValues.forEach((a) => {
|
|
8595
8602
|
let o = {
|
|
8596
8603
|
type: t,
|
|
@@ -8670,7 +8677,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8670
8677
|
}
|
|
8671
8678
|
n = [...n, a];
|
|
8672
8679
|
}
|
|
8673
|
-
if (fe.value?.id === "histogram" && X.value && X.value.length > 0 && typeof X.value[0]?.bucketMin == "number" && typeof X.value[0]?.bucketMax == "number" &&
|
|
8680
|
+
if (fe.value?.id === "histogram" && X.value && X.value.length > 0 && typeof X.value[0]?.bucketMin == "number" && typeof X.value[0]?.bucketMax == "number" && J.value.length > 0 && X.value) {
|
|
8674
8681
|
let e = X.value.length, t = Number.isFinite(qe.value) ? qe.value : 0, r = {
|
|
8675
8682
|
type: "scatter",
|
|
8676
8683
|
xKey: "__dummy_x__",
|
|
@@ -8689,10 +8696,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8689
8696
|
type: "scatter",
|
|
8690
8697
|
xKey: "__dummy_x__",
|
|
8691
8698
|
yKey: "__dummy_y__",
|
|
8692
|
-
data:
|
|
8699
|
+
data: J.value.flatMap((e) => {
|
|
8693
8700
|
let t = nt(e.value, X.value || []);
|
|
8694
8701
|
if (t === null) return [];
|
|
8695
|
-
let n = Number.isFinite(qe.value) ? qe.value : 0, r =
|
|
8702
|
+
let n = Number.isFinite(qe.value) ? qe.value : 0, r = K(j.value?.[0]), i = typeof r == "function" ? r({ value: e.value }) : e.value;
|
|
8696
8703
|
return Array.from({ length: 30 }, (r, a) => ({
|
|
8697
8704
|
value: i,
|
|
8698
8705
|
__dummy_x__: t,
|
|
@@ -8959,7 +8966,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8959
8966
|
wrapping: "never",
|
|
8960
8967
|
formatter: r ? () => "" : (e) => {
|
|
8961
8968
|
if (e.value === "--SEPARATOR--") return "";
|
|
8962
|
-
let t = e.value, n =
|
|
8969
|
+
let t = e.value, n = K(N.value);
|
|
8963
8970
|
typeof n == "function" && (t = n(e));
|
|
8964
8971
|
let r = l.enableFocusView && ie.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8965
8972
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
@@ -8972,7 +8979,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8972
8979
|
paddingInner: Ye.value,
|
|
8973
8980
|
paddingOuter: Xe.value,
|
|
8974
8981
|
groupPaddingInner: Ze.value
|
|
8975
|
-
}), i &&
|
|
8982
|
+
}), i && J.value.length > 0) {
|
|
8976
8983
|
let e = X.value?.length || 1;
|
|
8977
8984
|
a.push({
|
|
8978
8985
|
type: "number",
|
|
@@ -8986,7 +8993,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8986
8993
|
tick: { enabled: !1 },
|
|
8987
8994
|
line: { enabled: !1 },
|
|
8988
8995
|
gridLine: { enabled: !1 },
|
|
8989
|
-
crossLines:
|
|
8996
|
+
crossLines: J.value.map((e) => {
|
|
8990
8997
|
if (!X.value) return null;
|
|
8991
8998
|
let t = nt(e.value, X.value);
|
|
8992
8999
|
return t == null ? null : {
|
|
@@ -9004,7 +9011,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9004
9011
|
type: "number",
|
|
9005
9012
|
keys: t,
|
|
9006
9013
|
position: je.value ? "bottom" : "left",
|
|
9007
|
-
label: { formatter:
|
|
9014
|
+
label: { formatter: K(q.value) },
|
|
9008
9015
|
title: {
|
|
9009
9016
|
enabled: !0,
|
|
9010
9017
|
text: Oe.value
|
|
@@ -9021,7 +9028,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9021
9028
|
text: Ae.value,
|
|
9022
9029
|
color: ft
|
|
9023
9030
|
}
|
|
9024
|
-
}), i &&
|
|
9031
|
+
}), i && J.value.length > 0) {
|
|
9025
9032
|
let e = Number.isFinite(qe.value) ? qe.value : 0;
|
|
9026
9033
|
a.push({
|
|
9027
9034
|
type: "number",
|
|
@@ -9117,12 +9124,12 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9117
9124
|
}, n.$props, {
|
|
9118
9125
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
9119
9126
|
pagination: e.pagination || !re.value,
|
|
9120
|
-
onColumnRowGroupChanged:
|
|
9127
|
+
onColumnRowGroupChanged: G,
|
|
9121
9128
|
onGridReady: ae,
|
|
9122
9129
|
onFilterChanged: se,
|
|
9123
9130
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
9124
9131
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
9125
|
-
onFirstDataRendered:
|
|
9132
|
+
onFirstDataRendered: oe,
|
|
9126
9133
|
onColumnMoved: r[5] ||= (e) => d("column-moved", e),
|
|
9127
9134
|
onColumnResized: r[6] ||= (e) => d("column-resized", e),
|
|
9128
9135
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|