impact-nova 2.6.2 → 2.6.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.
@@ -1,6 +1,6 @@
1
- import { jsxs as ye, jsx as F } from "react/jsx-runtime";
2
- import { lazy as be, useRef as L, useState as O, useId as xe, useEffect as q, useCallback as m, useMemo as f, Suspense as Se } from "react";
3
- import { ModuleRegistry as Fe, AllCommunityModule as Ae } from "ag-grid-community";
1
+ import { jsxs as ye, jsx as S } from "react/jsx-runtime";
2
+ import { lazy as be, useRef as O, useState as H, useId as xe, useEffect as q, useCallback as m, useMemo as g, Suspense as Fe } from "react";
3
+ import { ModuleRegistry as Se, AllCommunityModule as Ae } from "ag-grid-community";
4
4
  import { AllEnterpriseModule as Ee } from "ag-grid-enterprise";
5
5
  import { AgGridReact as Ge } from "ag-grid-react";
6
6
  import { customAgGridTheme as Me } from "./theme.js";
@@ -8,100 +8,100 @@ import { syncAgGridThemeMode as Re } from "./sync-ag-grid-theme-mode.js";
8
8
  import { CustomHeader as Te } from "./headers/custom-header.js";
9
9
  import { CustomHeaderGroup as z } from "./headers/custom-inner-header-group.js";
10
10
  import { mergeColumnGroupDefsWithDefault as we } from "./merge-column-group-defs.js";
11
- import { DefaultTextCellRenderer as ke } from "./cell-renderers/default-text-cell-renderer.js";
12
- import { GridHeaderContext as Ie } from "./headers/context/grid-header-context.js";
13
- import { convertToAgGridFilterModel as je, getMultiFilterIndices as Pe, convertFromAgGridFilterModel as De } from "./headers/utils/filter-utils.js";
11
+ import { DefaultTextCellRenderer as De } from "./cell-renderers/default-text-cell-renderer.js";
12
+ import { GridHeaderContext as ke } from "./headers/context/grid-header-context.js";
13
+ import { convertToAgGridFilterModel as Ie, getMultiFilterIndices as je, convertFromAgGridFilterModel as Pe } from "./headers/utils/filter-utils.js";
14
14
  import { AG_GRID_VALUE_FORMATTERS as Le } from "./value-formatters.js";
15
15
  import { useGridAutoSizeStrategyOnResize as Oe } from "./useGridAutoSizeStrategyOnResize.js";
16
16
  import { subscribeGridApiEvent as ct, subscribeGridApiEvents as at } from "./grid-api-event-subscription.js";
17
- import { notifyColumnIndicatorSync as R } from "./notify-column-indicator-sync.js";
18
- import { setActiveSearchColumnId as H, clearHeaderSearchActiveState as He } from "./headers/header-search-active-state.js";
17
+ import { notifyColumnIndicatorSync as M } from "./notify-column-indicator-sync.js";
18
+ import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as He } from "./headers/header-search-active-state.js";
19
19
  /* empty css */
20
20
  import { useAgGridTruncationTooltip as dt } from "./use-ag-grid-truncation-tooltip.js";
21
21
  import { isAgGridHeaderLabelTooltipOverflowing as mt, isAgGridTextOverflowing as ft } from "./ag-grid-tooltip-overflow.js";
22
22
  const Ne = be(
23
- () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((s) => ({
24
- default: s.AdvancedFilterDialog
23
+ () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
24
+ default: c.AdvancedFilterDialog
25
25
  }))
26
26
  );
27
- Fe.registerModules([Ae, Ee]);
28
- const S = "", N = "", J = (s) => {
29
- if (!s) return;
30
- const o = s.cellRendererParams?.splits;
31
- if (Array.isArray(o) && o.length > 0) return o;
32
- const l = s.cellEditorParams?.splits;
33
- if (Array.isArray(l) && l.length > 0) return l;
34
- }, X = (s, o) => {
35
- const l = [];
36
- for (const y of o) {
37
- const g = y?.field?.split(".").pop();
38
- if (!g) {
39
- l.push("");
27
+ Se.registerModules([Ae, Ee]);
28
+ const F = "", V = "", J = (c) => {
29
+ if (!c) return;
30
+ const n = c.cellRendererParams?.splits;
31
+ if (Array.isArray(n) && n.length > 0) return n;
32
+ const s = c.cellEditorParams?.splits;
33
+ if (Array.isArray(s) && s.length > 0) return s;
34
+ }, X = (c, n) => {
35
+ const s = [];
36
+ for (const b of n) {
37
+ const h = b?.field?.split(".").pop();
38
+ if (!h) {
39
+ s.push("");
40
40
  continue;
41
41
  }
42
- const a = s[g];
43
- if (a == null) {
44
- l.push("");
42
+ const u = c[h];
43
+ if (u == null) {
44
+ s.push("");
45
45
  continue;
46
46
  }
47
- if (typeof a == "object" && "value" in a) {
48
- const u = a.value;
49
- l.push(u == null ? "" : String(u));
47
+ if (typeof u == "object" && "value" in u) {
48
+ const d = u.value;
49
+ s.push(d == null ? "" : String(d));
50
50
  continue;
51
51
  }
52
- if (typeof a != "object") {
53
- l.push(String(a));
52
+ if (typeof u != "object") {
53
+ s.push(String(u));
54
54
  continue;
55
55
  }
56
- l.push("");
56
+ s.push("");
57
57
  }
58
- return l;
59
- }, B = (s) => {
58
+ return s;
59
+ }, B = (c) => {
60
60
  if (typeof navigator < "u" && navigator.clipboard?.writeText) {
61
- navigator.clipboard.writeText(s).catch(() => Q(s));
61
+ navigator.clipboard.writeText(c).catch(() => Q(c));
62
62
  return;
63
63
  }
64
- Q(s);
65
- }, Q = (s) => {
64
+ Q(c);
65
+ }, Q = (c) => {
66
66
  if (typeof document > "u") return;
67
- const o = document.createElement("textarea");
68
- o.value = s, o.setAttribute("readonly", ""), o.style.position = "fixed", o.style.top = "0", o.style.left = "0", o.style.opacity = "0", o.style.pointerEvents = "none", document.body.appendChild(o);
67
+ const n = document.createElement("textarea");
68
+ n.value = c, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.top = "0", n.style.left = "0", n.style.opacity = "0", n.style.pointerEvents = "none", document.body.appendChild(n);
69
69
  try {
70
- o.select(), document.execCommand("copy");
70
+ n.select(), document.execCommand("copy");
71
71
  } finally {
72
- document.body.removeChild(o);
72
+ document.body.removeChild(n);
73
73
  }
74
74
  };
75
75
  function lt({
76
- children: s,
77
- defaultColDef: o,
78
- defaultColGroupDef: l,
79
- columnDefs: y,
80
- valueFormatters: g,
81
- onGridReady: a,
82
- onGridPreDestroyed: u,
83
- onFilterChanged: b,
84
- onSelectionChanged: h,
76
+ children: c,
77
+ defaultColDef: n,
78
+ defaultColGroupDef: s,
79
+ columnDefs: b,
80
+ valueFormatters: h,
81
+ onGridReady: u,
82
+ onGridPreDestroyed: d,
83
+ onFilterChanged: x,
84
+ onSelectionChanged: C,
85
85
  onModelUpdated: A,
86
- ensureDomOrder: T = !1,
87
- autoSizeStrategy: w,
88
- tooltipShowMode: k = "whenTruncated",
89
- tooltipShowDelay: I = 500,
86
+ ensureDomOrder: R = !1,
87
+ autoSizeStrategy: T,
88
+ tooltipShowMode: w = "whenTruncated",
89
+ tooltipShowDelay: D = 500,
90
90
  tooltipHideDelay: Y = 5e3,
91
91
  tooltipInteraction: Z = !0,
92
92
  themeOverride: ee,
93
- ...C
93
+ ...v
94
94
  }) {
95
- const c = L(null), j = L(null), [W, _] = O(null), K = xe(), v = L(K);
96
- v.current = K, Oe(W, j, w), q(() => {
95
+ const a = O(null), k = O(null), [W, _] = H(null), K = xe(), y = O(K);
96
+ y.current = K, Oe(W, k, T), q(() => {
97
97
  const e = document.documentElement, t = () => {
98
98
  Re(e.classList.contains("dark") ? "dark" : "light", e);
99
99
  };
100
100
  t();
101
- const n = new MutationObserver(t);
102
- return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
101
+ const o = new MutationObserver(t);
102
+ return o.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => o.disconnect();
103
103
  }, []);
104
- const [te, U] = O(!1), [re, V] = O(null), ne = m(() => [], []), oe = f(() => ({
104
+ const [te, U] = H(!1), [re, $] = H(null), ne = m(() => [], []), oe = g(() => ({
105
105
  numericColumn: {
106
106
  cellClass: "ag-right-aligned-cell",
107
107
  headerClass: "ag-right-aligned-header",
@@ -122,52 +122,52 @@ function lt({
122
122
  dateColumn: {
123
123
  filter: "agDateColumnFilter"
124
124
  }
125
- }), []), P = f(() => ({
126
- gridScopeId: v.current,
125
+ }), []), I = g(() => ({
126
+ gridScopeId: y.current,
127
127
  openSearch: (e) => {
128
- if (!c.current) return;
129
- const t = c.current.getGridOption("context") || {};
130
- c.current.setGridOption("context", { ...t, activeSearchColumnId: e }), H(v.current, e), R(c.current);
128
+ if (!a.current) return;
129
+ const t = a.current.getGridOption("context") || {};
130
+ a.current.setGridOption("context", { ...t, activeSearchColumnId: e }), N(y.current, e), M(a.current);
131
131
  },
132
132
  closeSearch: () => {
133
- if (!c.current) return;
134
- const e = c.current.getGridOption("context") || {};
135
- c.current.setGridOption("context", { ...e, activeSearchColumnId: null }), H(v.current, null), R(c.current);
133
+ if (!a.current) return;
134
+ const e = a.current.getGridOption("context") || {};
135
+ a.current.setGridOption("context", { ...e, activeSearchColumnId: null }), N(y.current, null), M(a.current);
136
136
  },
137
137
  openAdvancedFilter: (e) => {
138
- V(e || null), U(!0);
138
+ $(e || null), U(!0);
139
139
  },
140
140
  closeAdvancedFilter: () => {
141
- U(!1), V(null);
141
+ U(!1), $(null);
142
142
  },
143
143
  applyAdvancedFilter: (e) => {
144
- if (!c.current) return;
145
- const t = je(e);
146
- c.current.setFilterModel(t), c.current.onFilterChanged(), R(c.current);
144
+ if (!a.current) return;
145
+ const t = Ie(e);
146
+ a.current.setFilterModel(t), a.current.onFilterChanged(), M(a.current);
147
147
  }
148
148
  }), []), le = m((e) => {
149
- c.current = e.api, _(e.api);
149
+ a.current = e.api, _(e.api);
150
150
  const t = e.api.getGridOption("context") || {};
151
151
  e.api.setGridOption("context", {
152
152
  ...t,
153
153
  activeSearchColumnId: null,
154
- headerSearchScopeId: v.current
155
- }), H(v.current, null), a && a(e);
156
- }, [a]), ie = m(
154
+ headerSearchScopeId: y.current
155
+ }), N(y.current, null), u && u(e);
156
+ }, [u]), ie = m(
157
157
  (e) => {
158
- He(v.current), c.current = null, _(null), u?.(e);
158
+ He(y.current), a.current = null, _(null), d?.(e);
159
159
  },
160
- [u]
160
+ [d]
161
161
  ), se = m(
162
162
  (e) => {
163
- R(e.api), b?.(e);
163
+ M(e.api), x?.(e);
164
164
  },
165
- [b]
165
+ [x]
166
166
  ), ce = m(
167
167
  (e) => {
168
- h?.(e);
168
+ C?.(e);
169
169
  },
170
- [h]
170
+ [C]
171
171
  ), ae = m(
172
172
  (e) => {
173
173
  A?.(e);
@@ -175,75 +175,77 @@ function lt({
175
175
  [A]
176
176
  );
177
177
  q(() => {
178
- const e = j.current;
178
+ const e = k.current;
179
179
  if (!e) return;
180
- const t = (n) => {
181
- if (n.key !== "Enter" && n.key !== " ") return;
182
- const i = n.target;
180
+ const t = (o) => {
181
+ if (o.key !== "Enter" && o.key !== " ") return;
182
+ const i = o.target;
183
183
  if (!i.classList.contains("ag-cell") && !i.classList.contains("ag-header-cell")) return;
184
184
  const r = i.querySelector(
185
185
  'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
186
186
  );
187
- r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
187
+ r && (o.preventDefault(), o.stopPropagation(), r.click(), r.focus());
188
188
  };
189
189
  return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
190
190
  }, []);
191
- const ue = f(() => ({
191
+ const ue = g(() => ({
192
192
  headerComponent: Te,
193
193
  // Default cell renderer wraps text in a span so display:flex centering
194
194
  // and text-overflow:ellipsis both work (ellipsis doesn't work on
195
195
  // anonymous flex text nodes, but works on flex child elements).
196
- cellRenderer: ke,
197
- ...o,
196
+ cellRenderer: De,
197
+ ...n,
198
198
  suppressHeaderKeyboardEvent: (e) => {
199
- const { event: t } = e, n = t.target;
200
- if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
199
+ const { event: t } = e, o = t.target;
200
+ if (o.tagName === "INPUT" || o.tagName === "TEXTAREA")
201
201
  return !(t.key === "Escape" || t.key === "Tab");
202
202
  if (t.key === "Enter" || t.key === " ") {
203
- const r = n.closest(".ag-header-cell");
203
+ const r = o.closest(".ag-header-cell");
204
204
  if (r) {
205
- const d = r.querySelector('[role="checkbox"], button, [role="switch"], input');
206
- if (d)
207
- return t.preventDefault(), d.click(), !0;
205
+ const l = r.querySelector('[role="checkbox"], button, [role="switch"], input');
206
+ if (l)
207
+ return t.preventDefault(), l.click(), !0;
208
208
  }
209
209
  }
210
- return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
210
+ return n?.suppressHeaderKeyboardEvent?.(e) ?? !1;
211
211
  },
212
212
  headerComponentParams: {
213
- ...o?.headerComponentParams
213
+ ...n?.headerComponentParams
214
214
  }
215
- }), [o]), D = f(() => ({
216
- ...l,
215
+ }), [n]), j = g(() => ({
216
+ ...s,
217
217
  headerGroupComponentParams: {
218
- ...l?.headerGroupComponentParams,
219
- innerHeaderGroupComponent: l?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
218
+ ...s?.headerGroupComponentParams,
219
+ innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
220
220
  }
221
- }), [l]), de = f(
222
- () => we(y ?? void 0, D),
223
- [y, D]
224
- ), pe = f(() => ({
221
+ }), [s]), de = g(
222
+ () => we(b ?? void 0, j),
223
+ [b, j]
224
+ ), pe = g(() => ({
225
225
  ...Le,
226
226
  // Always available - value formatters
227
227
  CustomInnerHeaderGroup: z,
228
228
  CustomHeaderGroup: z,
229
- ...C.components,
229
+ ...v.components,
230
230
  // User components override
231
- ...g
231
+ ...h
232
232
  // Optional custom formatters override defaults
233
- }), [g, C.components]), me = m((e) => {
233
+ }), [h, v.components]), me = m((e) => {
234
234
  const t = e.value;
235
- if (t == null || typeof t != "object") return t;
236
- const n = J(e.column?.getColDef());
237
- if (n && n.length > 0) {
238
- const r = X(t, n);
239
- if (n.length === 1) {
240
- const d = n[0]?.field?.split(".").pop(), x = d ? t[d] : void 0;
241
- return x && typeof x == "object" && "value" in x ? x.value ?? "" : r[0];
235
+ if (t != null && typeof t == "object") {
236
+ const i = J(e.column?.getColDef());
237
+ if (i && i.length > 0) {
238
+ const l = X(t, i);
239
+ if (i.length === 1) {
240
+ const P = i[0]?.field?.split(".").pop(), f = P ? t[P] : void 0;
241
+ return f && typeof f == "object" && "value" in f ? f.value ?? "" : l[0];
242
+ }
243
+ return V + l.join(F);
242
244
  }
243
- return N + r.join(S);
245
+ const r = Object.entries(t).map(([, l]) => l && typeof l == "object" && "value" in l ? l.value : typeof l != "object" && typeof l < "u" ? l : null).filter((l) => l != null);
246
+ return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(F);
244
247
  }
245
- const i = Object.entries(t).map(([, r]) => r && typeof r == "object" && "value" in r ? r.value : typeof r != "object" && typeof r < "u" ? r : null).filter((r) => r != null);
246
- return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(S);
248
+ return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
247
249
  }, []), fe = m((e) => {
248
250
  if (typeof e.value == "string") {
249
251
  const t = e.value.trim();
@@ -257,132 +259,133 @@ function lt({
257
259
  return e.value;
258
260
  }, []), ge = m((e) => {
259
261
  const t = e?.data ?? "";
260
- if (!t.includes(S) && !t.includes(N)) {
262
+ if (!t.includes(F) && !t.includes(V)) {
261
263
  B(t);
262
264
  return;
263
265
  }
264
- const n = [], i = t.split(`
266
+ const o = [], i = t.split(`
265
267
  `);
266
268
  for (let r = 0; r < i.length; r++) {
267
- const d = i[r];
268
- if (d.length === 0 && r === i.length - 1) {
269
- n.push("");
269
+ const l = i[r];
270
+ if (l.length === 0 && r === i.length - 1) {
271
+ o.push("");
270
272
  continue;
271
273
  }
272
- const G = d.split(" ").map((p) => p.startsWith(N) ? { isSplit: !0, slots: p.slice(1).split(S) } : { isSplit: !1, slots: p.split(S) }), $ = Math.max(1, ...G.map((p) => p.slots.length));
273
- if ($ === 1) {
274
- n.push(G.map((p) => p.slots[0] ?? "").join(" "));
274
+ const f = l.split(" ").map((p) => p.startsWith(V) ? { isSplit: !0, slots: p.slice(1).split(F) } : { isSplit: !1, slots: p.split(F) }), L = Math.max(1, ...f.map((p) => p.slots.length));
275
+ if (L === 1) {
276
+ o.push(f.map((p) => p.slots[0] ?? "").join(" "));
275
277
  continue;
276
278
  }
277
- for (let p = 0; p < $; p++) {
278
- const ve = G.map((M) => !M.isSplit && M.slots.length === 1 ? M.slots[0] : M.slots[p] ?? "");
279
- n.push(ve.join(" "));
279
+ for (let p = 0; p < L; p++) {
280
+ const ve = f.map((G) => !G.isSplit && G.slots.length === 1 ? G.slots[0] : G.slots[p] ?? "");
281
+ o.push(ve.join(" "));
280
282
  }
281
283
  }
282
- B(n.join(`
284
+ B(o.join(`
283
285
  `));
284
286
  }, []), E = m((e) => {
285
287
  const t = e.value;
286
288
  if (t == null) return "";
287
- if (typeof t != "object") return String(t);
288
- const n = J(e.column?.getColDef());
289
- if (n && n.length > 0) {
290
- const r = X(t, n);
291
- return n.length === 1 ? r[0] : r.join(`
289
+ if (typeof t != "object")
290
+ return e.column?.getColDef()?.useValueFormatterForExport === !0 ? String(e.formatValue?.(t) ?? t) : String(t);
291
+ const o = J(e.column?.getColDef());
292
+ if (o && o.length > 0) {
293
+ const r = X(t, o);
294
+ return o.length === 1 ? r[0] : r.join(`
292
295
  `);
293
296
  }
294
297
  const i = [];
295
298
  for (const r of Object.values(t)) {
296
299
  if (r && typeof r == "object" && "value" in r) {
297
- const d = r.value;
298
- if (d == null) continue;
299
- i.push(String(d));
300
+ const l = r.value;
301
+ if (l == null) continue;
302
+ i.push(String(l));
300
303
  continue;
301
304
  }
302
305
  r != null && typeof r != "object" && i.push(String(r));
303
306
  }
304
307
  return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
305
308
  `);
306
- }, []), he = f(() => ({
309
+ }, []), he = g(() => ({
307
310
  processCellCallback: E,
308
- ...C.defaultCsvExportParams ?? {}
309
- }), [E, C.defaultCsvExportParams]), Ce = f(() => ({
311
+ ...v.defaultCsvExportParams ?? {}
312
+ }), [E, v.defaultCsvExportParams]), Ce = g(() => ({
310
313
  processCellCallback: E,
311
- ...C.defaultExcelExportParams ?? {}
312
- }), [E, C.defaultExcelExportParams]);
313
- return /* @__PURE__ */ ye(Ie.Provider, { value: P, children: [
314
- /* @__PURE__ */ F("div", { ref: j, "data-component": "ag-grid-react", style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ F(
314
+ ...v.defaultExcelExportParams ?? {}
315
+ }), [E, v.defaultExcelExportParams]);
316
+ return /* @__PURE__ */ ye(ke.Provider, { value: I, children: [
317
+ /* @__PURE__ */ S("div", { ref: k, "data-component": "ag-grid-react", style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ S(
315
318
  Ge,
316
319
  {
317
320
  theme: ee ?? Me,
318
321
  defaultColDef: ue,
319
322
  columnDefs: de,
320
323
  cellSelection: !0,
321
- defaultColGroupDef: D,
324
+ defaultColGroupDef: j,
322
325
  onGridReady: le,
323
326
  onGridPreDestroyed: ie,
324
327
  onFilterChanged: se,
325
328
  onSelectionChanged: ce,
326
329
  onModelUpdated: ae,
327
- tooltipShowMode: k,
328
- tooltipShowDelay: I,
330
+ tooltipShowMode: w,
331
+ tooltipShowDelay: D,
329
332
  tooltipHideDelay: Y,
330
333
  tooltipInteraction: Z,
331
334
  processCellForClipboard: me,
332
335
  processCellFromClipboard: fe,
333
336
  sendToClipboard: ge,
334
- ensureDomOrder: T,
337
+ ensureDomOrder: R,
335
338
  suppressHeaderFocus: !1,
336
339
  suppressFocusAfterRefresh: !0,
337
340
  suppressGroupRowsSticky: !0,
338
341
  hidePaddedHeaderRows: !0,
339
342
  suppressServerSideFullWidthLoadingRow: !0,
340
343
  columnTypes: oe,
341
- autoSizeStrategy: w,
342
- ...C,
344
+ autoSizeStrategy: T,
345
+ ...v,
343
346
  components: pe,
344
347
  defaultCsvExportParams: he,
345
348
  defaultExcelExportParams: Ce,
346
349
  getMainMenuItems: ne
347
350
  }
348
351
  ) }),
349
- s,
350
- /* @__PURE__ */ F(
351
- We,
352
+ c,
353
+ /* @__PURE__ */ S(
354
+ Ve,
352
355
  {
353
356
  isOpen: te,
354
357
  columnId: re,
355
358
  gridApi: W,
356
- onClose: P.closeAdvancedFilter,
357
- onApply: P.applyAdvancedFilter
359
+ onClose: I.closeAdvancedFilter,
360
+ onApply: I.applyAdvancedFilter
358
361
  }
359
362
  )
360
363
  ] });
361
364
  }
362
- function We({
363
- isOpen: s,
364
- columnId: o,
365
- gridApi: l,
366
- onClose: y,
367
- onApply: g
365
+ function Ve({
366
+ isOpen: c,
367
+ columnId: n,
368
+ gridApi: s,
369
+ onClose: b,
370
+ onApply: h
368
371
  }) {
369
- if (!s || !o || !l) return null;
370
- const a = l.getColumn(o);
371
- if (!a) return null;
372
- const u = a.getColDef(), b = u.headerComponentParams, h = Pe(u), A = h.text !== -1 || h.number !== -1 || h.date !== -1, T = h.set !== -1, k = u.filter === "agMultiColumnFilter" && (A || T) ? "multi" : u.filter === "agNumberColumnFilter" ? "number" : u.filter === "agDateColumnFilter" ? "date" : u.filter === "agSetColumnFilter" || b?.selectOptions ? "select" : "text", I = De(l.getFilterModel());
373
- return /* @__PURE__ */ F(Se, { fallback: null, children: /* @__PURE__ */ F(
372
+ if (!c || !n || !s) return null;
373
+ const u = s.getColumn(n);
374
+ if (!u) return null;
375
+ const d = u.getColDef(), x = d.headerComponentParams, C = je(d), A = C.text !== -1 || C.number !== -1 || C.date !== -1, R = C.set !== -1, w = d.filter === "agMultiColumnFilter" && (A || R) ? "multi" : d.filter === "agNumberColumnFilter" ? "number" : d.filter === "agDateColumnFilter" ? "date" : d.filter === "agSetColumnFilter" || x?.selectOptions ? "select" : "text", D = Pe(s.getFilterModel());
376
+ return /* @__PURE__ */ S(Fe, { fallback: null, children: /* @__PURE__ */ S(
374
377
  Ne,
375
378
  {
376
- isOpen: s,
377
- onClose: y,
378
- onApply: g,
379
- columnId: o,
380
- columnLabel: u.headerName || o,
381
- columnType: k,
382
- selectOptions: b?.selectOptions,
383
- isMultiSelect: b?.isMultiSelect,
384
- initialModel: I,
385
- api: l
379
+ isOpen: c,
380
+ onClose: b,
381
+ onApply: h,
382
+ columnId: n,
383
+ columnLabel: d.headerName || n,
384
+ columnType: w,
385
+ selectOptions: x?.selectOptions,
386
+ isMultiSelect: x?.isMultiSelect,
387
+ initialModel: D,
388
+ api: s
386
389
  }
387
390
  ) });
388
391
  }