impact-nova 2.2.3 → 2.2.4

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