impact-nova 3.0.0-alpha.18 → 3.0.0-alpha.19

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 (25) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
  2. package/dist/components/data/ag-grid-react/headers/custom-header.js +56 -56
  3. package/dist/components/data/ag-grid-react/index.d.ts +2 -1
  4. package/dist/components/data/ag-grid-react/index.js +307 -291
  5. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  6. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  7. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +6 -2
  8. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +57 -51
  9. package/dist/components/flows/iris-chat/iris-chat-composer.js +213 -184
  10. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
  11. package/dist/components/flows/iris-chat/iris-chat-icons.js +23 -10
  12. package/dist/components/flows/iris-chat/iris-chat.variants.js +4 -4
  13. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  14. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  15. package/dist/components/primitives/tabs/tabs.js +64 -51
  16. package/dist/i18n/defaultMessages.d.ts +2 -0
  17. package/dist/i18n/defaultMessages.js +2 -0
  18. package/dist/i18n/locales/de.js +2 -0
  19. package/dist/i18n/locales/es.js +2 -0
  20. package/dist/i18n/locales/hi.js +2 -0
  21. package/dist/i18n/locales/kn.js +2 -0
  22. package/dist/impact-nova.css +1 -1
  23. package/dist/llms/rules/installation.js +1 -1
  24. package/dist/llms/rules/requirements.js +1 -1
  25. package/package.json +1 -1
@@ -1,267 +1,282 @@
1
- import { jsxs as Pe, jsx as w } from "react/jsx-runtime";
2
- import { lazy as Ve, useRef as _, useState as N, useId as We, useEffect as Z, useCallback as f, useMemo as h, Suspense as Ke } from "react";
3
- import { ModuleRegistry as $e, AllCommunityModule as Ue } from "ag-grid-community";
4
- import { AllEnterpriseModule as qe } from "ag-grid-enterprise";
5
- import { AgGridReact as ze } from "ag-grid-react";
6
- import { useAgGridDragList as Xe } from "./use-ag-grid-list-drag.js";
7
- import { customAgGridTheme as Je } from "./theme.js";
8
- import { AG_GRID_LIST_ROW_HEIGHT_PX as Ze, customAgGridListTheme as Be } from "./ag-grid-list.js";
9
- import { AG_GRID_LIST_RANK_GRADIENT as kt } from "./ag-grid-list.js";
10
- import { syncAgGridThemeMode as Qe } from "./sync-ag-grid-theme-mode.js";
11
- import { CustomHeader as Ye } from "./headers/custom-header.js";
12
- import { CustomHeaderGroup as B } from "./headers/custom-inner-header-group.js";
13
- import { mergeColumnGroupDefsWithDefault as et } from "./merge-column-group-defs.js";
14
- import { DefaultTextCellRenderer as tt } from "./cell-renderers/default-text-cell-renderer.js";
15
- import { GridHeaderContext as rt } from "./headers/context/grid-header-context.js";
16
- import { convertToAgGridFilterModel as nt, getMultiFilterIndices as ot, convertFromAgGridFilterModel as lt } from "./headers/utils/filter-utils.js";
17
- import { AG_GRID_VALUE_FORMATTERS as it } from "./value-formatters.js";
18
- import { useGridAutoSizeStrategyOnResize as at } from "./useGridAutoSizeStrategyOnResize.js";
19
- import { subscribeGridApiEvent as jt, subscribeGridApiEvents as Ot } from "./grid-api-event-subscription.js";
20
- import { notifyColumnIndicatorSync as G } from "./notify-column-indicator-sync.js";
21
- import { setActiveSearchColumnId as P, clearHeaderSearchActiveState as st } from "./headers/header-search-active-state.js";
1
+ import { jsxs as We, jsx as G } from "react/jsx-runtime";
2
+ import { lazy as Ke, useRef as V, useState as W, useId as $e, useEffect as K, useCallback as m, useMemo as g, Suspense as Ue } from "react";
3
+ import { ModuleRegistry as ze, AllCommunityModule as qe } from "ag-grid-community";
4
+ import { AllEnterpriseModule as Xe } from "ag-grid-enterprise";
5
+ import { AgGridReact as Je } from "ag-grid-react";
6
+ import { useAgGridDragList as Ze } from "./use-ag-grid-list-drag.js";
7
+ import { customAgGridTheme as Be } from "./theme.js";
8
+ import { AG_GRID_LIST_ROW_HEIGHT_PX as Qe, customAgGridListTheme as Ye } from "./ag-grid-list.js";
9
+ import { AG_GRID_LIST_RANK_GRADIENT as Pt } from "./ag-grid-list.js";
10
+ import { syncAgGridThemeMode as et } from "./sync-ag-grid-theme-mode.js";
11
+ import { CustomHeader as tt } from "./headers/custom-header.js";
12
+ import { CustomHeaderGroup as Y } from "./headers/custom-inner-header-group.js";
13
+ import { mergeColumnGroupDefsWithDefault as rt } from "./merge-column-group-defs.js";
14
+ import { DefaultTextCellRenderer as ot } from "./cell-renderers/default-text-cell-renderer.js";
15
+ import { GridHeaderContext as nt } from "./headers/context/grid-header-context.js";
16
+ import { convertToAgGridFilterModel as it, getMultiFilterIndices as lt, convertFromAgGridFilterModel as st } from "./headers/utils/filter-utils.js";
17
+ import { AG_GRID_VALUE_FORMATTERS as at } from "./value-formatters.js";
18
+ import { useGridAutoSizeStrategyOnResize as ct } from "./useGridAutoSizeStrategyOnResize.js";
19
+ import { subscribeGridApiEvent as Vt, subscribeGridApiEvents as Wt } from "./grid-api-event-subscription.js";
20
+ import { notifyColumnIndicatorSync as I } from "./notify-column-indicator-sync.js";
21
+ import { setActiveSearchColumnId as $, clearHeaderSearchActiveState as ut } from "./headers/header-search-active-state.js";
22
22
  /* empty css */
23
- import { useAgGridTruncationTooltip as Nt } from "./use-ag-grid-truncation-tooltip.js";
24
- import { useListRowDropZones as Vt } from "./use-list-row-drop-zones.js";
25
- import { isAgGridHeaderLabelTooltipOverflowing as Kt, isAgGridTextOverflowing as $t } from "./ag-grid-tooltip-overflow.js";
26
- const ct = Ve(
23
+ import { readNumericColumnTypeConfig as dt, normalizeColumnDefsNumericHeaderAlignment as pt } from "./numeric-column-header-alignment.js";
24
+ import { useAgGridTruncationTooltip as $t } from "./use-ag-grid-truncation-tooltip.js";
25
+ import { useListRowDropZones as zt } from "./use-list-row-drop-zones.js";
26
+ import { isAgGridHeaderLabelTooltipOverflowing as Xt, isAgGridTextOverflowing as Jt } from "./ag-grid-tooltip-overflow.js";
27
+ const ft = Ke(
27
28
  () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
28
29
  default: c.AdvancedFilterDialog
29
30
  }))
30
31
  );
31
- $e.registerModules([Ue, qe]);
32
- const S = "", V = "", Q = (c) => {
32
+ ze.registerModules([qe, Xe]);
33
+ const R = "", U = "", ee = (c) => {
33
34
  if (!c) return;
34
- const n = c.cellRendererParams?.splits;
35
- if (Array.isArray(n) && n.length > 0) return n;
36
- const a = c.cellEditorParams?.splits;
37
- if (Array.isArray(a) && a.length > 0) return a;
38
- }, Y = (c, n) => {
39
- const a = [];
40
- for (const C of n) {
41
- const v = C?.field?.split(".").pop();
42
- if (!v) {
43
- a.push("");
35
+ const o = c.cellRendererParams?.splits;
36
+ if (Array.isArray(o) && o.length > 0) return o;
37
+ const s = c.cellEditorParams?.splits;
38
+ if (Array.isArray(s) && s.length > 0) return s;
39
+ }, te = (c, o) => {
40
+ const s = [];
41
+ for (const C of o) {
42
+ const y = C?.field?.split(".").pop();
43
+ if (!y) {
44
+ s.push("");
44
45
  continue;
45
46
  }
46
- const d = c[v];
47
+ const d = c[y];
47
48
  if (d == null) {
48
- a.push("");
49
+ s.push("");
49
50
  continue;
50
51
  }
51
52
  if (typeof d == "object" && "value" in d) {
52
53
  const p = d.value;
53
- a.push(p == null ? "" : String(p));
54
+ s.push(p == null ? "" : String(p));
54
55
  continue;
55
56
  }
56
57
  if (typeof d != "object") {
57
- a.push(String(d));
58
+ s.push(String(d));
58
59
  continue;
59
60
  }
60
- a.push("");
61
+ s.push("");
61
62
  }
62
- return a;
63
- }, ee = (c) => {
63
+ return s;
64
+ }, re = (c) => {
64
65
  if (typeof navigator < "u" && navigator.clipboard?.writeText) {
65
- navigator.clipboard.writeText(c).catch(() => te(c));
66
+ navigator.clipboard.writeText(c).catch(() => oe(c));
66
67
  return;
67
68
  }
68
- te(c);
69
- }, te = (c) => {
69
+ oe(c);
70
+ }, oe = (c) => {
70
71
  if (typeof document > "u") return;
71
- const n = document.createElement("textarea");
72
- 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);
72
+ const o = document.createElement("textarea");
73
+ o.value = c, 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);
73
74
  try {
74
- n.select(), document.execCommand("copy");
75
+ o.select(), document.execCommand("copy");
75
76
  } finally {
76
- document.body.removeChild(n);
77
+ document.body.removeChild(o);
77
78
  }
78
79
  };
79
- function Tt({
80
+ function Ot({
80
81
  children: c,
81
- defaultColDef: n,
82
- defaultColGroupDef: a,
82
+ defaultColDef: o,
83
+ defaultColGroupDef: s,
83
84
  columnDefs: C,
84
- valueFormatters: v,
85
+ valueFormatters: y,
85
86
  onGridReady: d,
86
87
  onGridPreDestroyed: p,
87
- onFilterChanged: x,
88
- onSelectionChanged: y,
89
- onModelUpdated: R,
90
- ensureDomOrder: M = !1,
91
- autoSizeStrategy: T,
92
- tooltipShowMode: I = "whenTruncated",
93
- tooltipShowDelay: L = 500,
94
- tooltipHideDelay: re = 5e3,
95
- tooltipInteraction: ne = !0,
96
- themeOverride: oe,
97
- variant: W = "table",
98
- listRowGradient: le,
99
- listDragPreview: ie,
100
- listHeader: ae = "columns",
101
- onRowReorder: se,
102
- onRowMoveBeyondEdge: ce,
103
- isRowDragDisabled: ue,
104
- getRowDragHandleLabel: de,
105
- canDropRow: pe,
106
- rowLoading: me = !1,
107
- className: K,
108
- ...s
88
+ onFilterChanged: w,
89
+ onSelectionChanged: x,
90
+ onModelUpdated: D,
91
+ ensureDomOrder: L = !1,
92
+ autoSizeStrategy: k,
93
+ tooltipShowMode: j = "whenTruncated",
94
+ tooltipShowDelay: O = 500,
95
+ tooltipHideDelay: ne = 5e3,
96
+ tooltipInteraction: ie = !0,
97
+ themeOverride: le,
98
+ variant: z = "table",
99
+ listRowGradient: se,
100
+ listDragPreview: ae,
101
+ listHeader: ce = "columns",
102
+ onRowReorder: ue,
103
+ onRowMoveBeyondEdge: de,
104
+ isRowDragDisabled: pe,
105
+ getRowDragHandleLabel: fe,
106
+ canDropRow: me,
107
+ rowLoading: ge = !1,
108
+ numericColumnHeaderAlignment: h = "right",
109
+ className: q,
110
+ ...a
109
111
  }) {
110
- const u = _(null), F = _(null), [$, U] = N(null), q = We(), b = _(q);
111
- b.current = q, at($, F, T), Z(() => {
112
+ const u = V(null), E = V(null), [b, X] = W(null), J = $e(), S = V(J);
113
+ S.current = J, ct(b, E, k), K(() => {
112
114
  const e = document.documentElement, t = () => {
113
- Qe(e.classList.contains("dark") ? "dark" : "light", e);
115
+ et(e.classList.contains("dark") ? "dark" : "light", e);
114
116
  };
115
117
  t();
116
- const o = new MutationObserver(t);
117
- return o.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => o.disconnect();
118
+ const n = new MutationObserver(t);
119
+ return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
118
120
  }, []);
119
- const [fe, z] = N(!1), [ge, X] = N(null), he = f(() => [], []), Ce = h(() => ({
121
+ const [he, Z] = W(!1), [ve, B] = W(null), Ce = m(() => [], []), F = g(
122
+ () => dt(h),
123
+ [h]
124
+ ), ye = g(() => ({
120
125
  numericColumn: {
121
- cellClass: "ag-right-aligned-cell",
122
- headerClass: "ag-right-aligned-header",
123
- filter: "agNumberColumnFilter"
126
+ ...F
124
127
  },
125
128
  currency: {
126
- cellClass: "ag-right-aligned-cell",
127
- headerClass: "ag-right-aligned-header",
128
- filter: "agNumberColumnFilter",
129
+ ...F,
129
130
  valueFormatter: (e) => e.value != null ? `$${Number(e.value).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : ""
130
131
  },
131
132
  percentage: {
132
- cellClass: "ag-right-aligned-cell",
133
- headerClass: "ag-right-aligned-header",
134
- filter: "agNumberColumnFilter",
133
+ ...F,
135
134
  valueFormatter: (e) => e.value != null ? `${Number(e.value).toFixed(2)}%` : ""
136
135
  },
137
136
  dateColumn: {
138
137
  filter: "agDateColumnFilter"
139
138
  }
140
- }), []), k = h(() => ({
141
- gridScopeId: b.current,
139
+ }), [F]), H = g(() => ({
140
+ gridScopeId: S.current,
142
141
  openSearch: (e) => {
143
142
  if (!u.current) return;
144
143
  const t = u.current.getGridOption("context") || {};
145
- u.current.setGridOption("context", { ...t, activeSearchColumnId: e }), P(b.current, e), G(u.current);
144
+ u.current.setGridOption("context", { ...t, activeSearchColumnId: e }), $(S.current, e), I(u.current);
146
145
  },
147
146
  closeSearch: () => {
148
147
  if (!u.current) return;
149
148
  const e = u.current.getGridOption("context") || {};
150
- u.current.setGridOption("context", { ...e, activeSearchColumnId: null }), P(b.current, null), G(u.current);
149
+ u.current.setGridOption("context", { ...e, activeSearchColumnId: null }), $(S.current, null), I(u.current);
151
150
  },
152
151
  openAdvancedFilter: (e) => {
153
- X(e || null), z(!0);
152
+ B(e || null), Z(!0);
154
153
  },
155
154
  closeAdvancedFilter: () => {
156
- z(!1), X(null);
155
+ Z(!1), B(null);
157
156
  },
158
157
  applyAdvancedFilter: (e) => {
159
158
  if (!u.current) return;
160
- const t = nt(e);
161
- u.current.setFilterModel(t), u.current.onFilterChanged(), G(u.current);
159
+ const t = it(e);
160
+ u.current.setFilterModel(t), u.current.onFilterChanged(), I(u.current);
162
161
  }
163
- }), []), ve = f((e) => {
164
- u.current = e.api, U(e.api);
162
+ }), []), xe = m((e) => {
163
+ u.current = e.api, X(e.api);
165
164
  const t = e.api.getGridOption("context") || {};
166
165
  e.api.setGridOption("context", {
167
166
  ...t,
168
167
  activeSearchColumnId: null,
169
- headerSearchScopeId: b.current
170
- }), P(b.current, null), d && d(e);
171
- }, [d]), ye = f(
168
+ headerSearchScopeId: S.current,
169
+ numericColumnHeaderAlignment: h
170
+ }), $(S.current, null), d && d(e);
171
+ }, [h, d]);
172
+ K(() => {
173
+ if (!b) return;
174
+ const e = b.getGridOption("context") || {};
175
+ b.setGridOption("context", {
176
+ ...e,
177
+ numericColumnHeaderAlignment: h
178
+ }), b.refreshHeader();
179
+ }, [b, h]);
180
+ const be = m(
172
181
  (e) => {
173
- st(b.current), u.current = null, U(null), p?.(e);
182
+ ut(S.current), u.current = null, X(null), p?.(e);
174
183
  },
175
184
  [p]
176
- ), be = f(
185
+ ), Se = m(
177
186
  (e) => {
178
- G(e.api), x?.(e);
187
+ I(e.api), w?.(e);
179
188
  },
180
- [x]
181
- ), xe = f(
189
+ [w]
190
+ ), we = m(
182
191
  (e) => {
183
- y?.(e);
192
+ x?.(e);
184
193
  },
185
- [y]
186
- ), Se = f(
194
+ [x]
195
+ ), Re = m(
187
196
  (e) => {
188
- R?.(e);
197
+ D?.(e);
189
198
  },
190
- [R]
199
+ [D]
191
200
  );
192
- Z(() => {
193
- const e = F.current;
201
+ K(() => {
202
+ const e = E.current;
194
203
  if (!e) return;
195
- const t = (o) => {
196
- if (o.key !== "Enter" && o.key !== " ") return;
197
- const i = o.target;
198
- if (!i.classList.contains("ag-cell") && !i.classList.contains("ag-header-cell")) return;
199
- const r = i.querySelector(
204
+ const t = (n) => {
205
+ if (n.key !== "Enter" && n.key !== " ") return;
206
+ const l = n.target;
207
+ if (!l.classList.contains("ag-cell") && !l.classList.contains("ag-header-cell")) return;
208
+ const r = l.querySelector(
200
209
  'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
201
210
  );
202
- r && (o.preventDefault(), o.stopPropagation(), r.click(), r.focus());
211
+ r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
203
212
  };
204
213
  return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
205
214
  }, []);
206
- const we = h(() => ({
207
- headerComponent: Ye,
215
+ const Ge = g(() => ({
216
+ headerComponent: tt,
208
217
  // Default cell renderer wraps text in a span so display:flex centering
209
218
  // and text-overflow:ellipsis both work (ellipsis doesn't work on
210
219
  // anonymous flex text nodes, but works on flex child elements).
211
- cellRenderer: tt,
212
- ...n,
220
+ cellRenderer: ot,
221
+ ...o,
213
222
  suppressHeaderKeyboardEvent: (e) => {
214
- const { event: t } = e, o = t.target;
215
- if (o.tagName === "INPUT" || o.tagName === "TEXTAREA")
223
+ const { event: t } = e, n = t.target;
224
+ if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
216
225
  return !(t.key === "Escape" || t.key === "Tab");
217
226
  if (t.key === "Enter" || t.key === " ") {
218
- const r = o.closest(".ag-header-cell");
227
+ const r = n.closest(".ag-header-cell");
219
228
  if (r) {
220
- const l = r.querySelector('[role="checkbox"], button, [role="switch"], input');
221
- if (l)
222
- return t.preventDefault(), l.click(), !0;
229
+ const i = r.querySelector('[role="checkbox"], button, [role="switch"], input');
230
+ if (i)
231
+ return t.preventDefault(), i.click(), !0;
223
232
  }
224
233
  }
225
- return n?.suppressHeaderKeyboardEvent?.(e) ?? !1;
234
+ return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
226
235
  },
227
236
  headerComponentParams: {
228
- ...n?.headerComponentParams
237
+ ...o?.headerComponentParams
229
238
  }
230
- }), [n]), H = h(() => ({
231
- ...a,
239
+ }), [o]), _ = g(() => ({
240
+ ...s,
232
241
  headerGroupComponentParams: {
233
- ...a?.headerGroupComponentParams,
234
- innerHeaderGroupComponent: a?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
242
+ ...s?.headerGroupComponentParams,
243
+ innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
235
244
  }
236
- }), [a]), Re = h(
237
- () => et(C ?? void 0, H),
238
- [C, H]
239
- ), Fe = h(() => ({
240
- ...it,
245
+ }), [s]), De = g(() => {
246
+ const e = rt(
247
+ C ?? void 0,
248
+ _
249
+ );
250
+ return pt(
251
+ e ?? void 0,
252
+ h
253
+ );
254
+ }, [C, _, h]), Ee = g(() => ({
255
+ ...at,
241
256
  // Always available - value formatters
242
- CustomInnerHeaderGroup: B,
243
- CustomHeaderGroup: B,
244
- ...s.components,
257
+ CustomInnerHeaderGroup: Y,
258
+ CustomHeaderGroup: Y,
259
+ ...a.components,
245
260
  // User components override
246
- ...v
261
+ ...y
247
262
  // Optional custom formatters override defaults
248
- }), [v, s.components]), Ae = f((e) => {
263
+ }), [y, a.components]), Fe = m((e) => {
249
264
  const t = e.value;
250
265
  if (t != null && typeof t == "object") {
251
- const i = Q(e.column?.getColDef());
252
- if (i && i.length > 0) {
253
- const l = Y(t, i);
254
- if (i.length === 1) {
255
- const j = i[0]?.field?.split(".").pop(), g = j ? t[j] : void 0;
256
- return g && typeof g == "object" && "value" in g ? g.value ?? "" : l[0];
266
+ const l = ee(e.column?.getColDef());
267
+ if (l && l.length > 0) {
268
+ const i = te(t, l);
269
+ if (l.length === 1) {
270
+ const P = l[0]?.field?.split(".").pop(), v = P ? t[P] : void 0;
271
+ return v && typeof v == "object" && "value" in v ? v.value ?? "" : i[0];
257
272
  }
258
- return V + l.join(S);
273
+ return U + i.join(R);
259
274
  }
260
- 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);
261
- return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(S);
275
+ const r = Object.entries(t).map(([, i]) => i && typeof i == "object" && "value" in i ? i.value : typeof i != "object" && typeof i < "u" ? i : null).filter((i) => i != null);
276
+ return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(R);
262
277
  }
263
278
  return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
264
- }, []), De = f((e) => {
279
+ }, []), Ae = m((e) => {
265
280
  if (typeof e.value == "string") {
266
281
  const t = e.value.trim();
267
282
  if (t.startsWith("{") || t.startsWith("["))
@@ -272,200 +287,201 @@ function Tt({
272
287
  }
273
288
  }
274
289
  return e.value;
275
- }, []), Ee = f((e) => {
290
+ }, []), Te = m((e) => {
276
291
  const t = e?.data ?? "";
277
- if (!t.includes(S) && !t.includes(V)) {
278
- ee(t);
292
+ if (!t.includes(R) && !t.includes(U)) {
293
+ re(t);
279
294
  return;
280
295
  }
281
- const o = [], i = t.split(`
296
+ const n = [], l = t.split(`
282
297
  `);
283
- for (let r = 0; r < i.length; r++) {
284
- const l = i[r];
285
- if (l.length === 0 && r === i.length - 1) {
286
- o.push("");
298
+ for (let r = 0; r < l.length; r++) {
299
+ const i = l[r];
300
+ if (i.length === 0 && r === l.length - 1) {
301
+ n.push("");
287
302
  continue;
288
303
  }
289
- const g = l.split(" ").map((m) => m.startsWith(V) ? { isSplit: !0, slots: m.slice(1).split(S) } : { isSplit: !1, slots: m.split(S) }), O = Math.max(1, ...g.map((m) => m.slots.length));
290
- if (O === 1) {
291
- o.push(g.map((m) => m.slots[0] ?? "").join(" "));
304
+ const v = i.split(" ").map((f) => f.startsWith(U) ? { isSplit: !0, slots: f.slice(1).split(R) } : { isSplit: !1, slots: f.split(R) }), N = Math.max(1, ...v.map((f) => f.slots.length));
305
+ if (N === 1) {
306
+ n.push(v.map((f) => f.slots[0] ?? "").join(" "));
292
307
  continue;
293
308
  }
294
- for (let m = 0; m < O; m++) {
295
- const Ne = g.map((E) => !E.isSplit && E.slots.length === 1 ? E.slots[0] : E.slots[m] ?? "");
296
- o.push(Ne.join(" "));
309
+ for (let f = 0; f < N; f++) {
310
+ const Ve = v.map((M) => !M.isSplit && M.slots.length === 1 ? M.slots[0] : M.slots[f] ?? "");
311
+ n.push(Ve.join(" "));
297
312
  }
298
313
  }
299
- ee(o.join(`
314
+ re(n.join(`
300
315
  `));
301
- }, []), A = f((e) => {
316
+ }, []), A = m((e) => {
302
317
  const t = e.value;
303
318
  if (t == null) return "";
304
319
  if (typeof t != "object")
305
320
  return e.column?.getColDef()?.useValueFormatterForExport === !0 ? String(e.formatValue?.(t) ?? t) : String(t);
306
- const o = Q(e.column?.getColDef());
307
- if (o && o.length > 0) {
308
- const r = Y(t, o);
309
- return o.length === 1 ? r[0] : r.join(`
321
+ const n = ee(e.column?.getColDef());
322
+ if (n && n.length > 0) {
323
+ const r = te(t, n);
324
+ return n.length === 1 ? r[0] : r.join(`
310
325
  `);
311
326
  }
312
- const i = [];
327
+ const l = [];
313
328
  for (const r of Object.values(t)) {
314
329
  if (r && typeof r == "object" && "value" in r) {
315
- const l = r.value;
316
- if (l == null) continue;
317
- i.push(String(l));
330
+ const i = r.value;
331
+ if (i == null) continue;
332
+ l.push(String(i));
318
333
  continue;
319
334
  }
320
- r != null && typeof r != "object" && i.push(String(r));
335
+ r != null && typeof r != "object" && l.push(String(r));
321
336
  }
322
- return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
337
+ return l.length === 0 ? "" : l.length === 1 ? l[0] : l.join(`
323
338
  `);
324
- }, []), Ge = h(() => ({
339
+ }, []), Me = g(() => ({
325
340
  processCellCallback: A,
326
- ...s.defaultCsvExportParams ?? {}
327
- }), [A, s.defaultCsvExportParams]), Me = h(() => ({
341
+ ...a.defaultCsvExportParams ?? {}
342
+ }), [A, a.defaultCsvExportParams]), Ie = g(() => ({
328
343
  processCellCallback: A,
329
- ...s.defaultExcelExportParams ?? {}
330
- }), [A, s.defaultExcelExportParams]), {
331
- isDragList: Te,
332
- isListVariant: D,
333
- hideColumnHeader: Ie,
334
- dragListColumnDefs: Le,
335
- dragListGridProps: ke,
344
+ ...a.defaultExcelExportParams ?? {}
345
+ }), [A, a.defaultExcelExportParams]), {
346
+ isDragList: Le,
347
+ isListVariant: T,
348
+ hideColumnHeader: ke,
349
+ dragListColumnDefs: je,
350
+ dragListGridProps: Oe,
336
351
  listHeaderGridProps: He,
337
- dragPreviewPortal: je,
338
- liveRegion: Oe
339
- } = Xe({
340
- variant: W,
341
- listHeader: ae,
352
+ dragPreviewPortal: _e,
353
+ liveRegion: Pe
354
+ } = Ze({
355
+ variant: z,
356
+ listHeader: ce,
342
357
  columnDefs: C,
343
- mergedColumnDefs: Re,
344
- listRowGradient: le,
345
- listDragPreview: ie,
346
- isRowDragDisabled: ue,
347
- getRowDragHandleLabel: de,
348
- canDropRow: pe,
349
- onRowReorder: se,
350
- onRowMoveBeyondEdge: ce,
351
- getRowStyle: s.getRowStyle,
352
- getRowId: s.getRowId,
353
- rowData: s.rowData,
354
- rowDragManaged: s.rowDragManaged,
355
- rowDragText: s.rowDragText,
356
- onRowDragEnter: s.onRowDragEnter,
357
- onRowDragMove: s.onRowDragMove,
358
- onRowDragLeave: s.onRowDragLeave,
359
- onRowDragCancel: s.onRowDragCancel,
360
- onRowDragEnd: s.onRowDragEnd,
361
- gridContainerRef: F,
358
+ mergedColumnDefs: De,
359
+ listRowGradient: se,
360
+ listDragPreview: ae,
361
+ isRowDragDisabled: pe,
362
+ getRowDragHandleLabel: fe,
363
+ canDropRow: me,
364
+ onRowReorder: ue,
365
+ onRowMoveBeyondEdge: de,
366
+ getRowStyle: a.getRowStyle,
367
+ getRowId: a.getRowId,
368
+ rowData: a.rowData,
369
+ rowDragManaged: a.rowDragManaged,
370
+ rowDragText: a.rowDragText,
371
+ onRowDragEnter: a.onRowDragEnter,
372
+ onRowDragMove: a.onRowDragMove,
373
+ onRowDragLeave: a.onRowDragLeave,
374
+ onRowDragCancel: a.onRowDragCancel,
375
+ onRowDragEnd: a.onRowDragEnd,
376
+ gridContainerRef: E,
362
377
  gridApiRef: u
363
- }), J = s.rowHeight ?? Ze, _e = oe ?? (D ? Be : Je);
364
- return /* @__PURE__ */ Pe(rt.Provider, { value: k, children: [
365
- /* @__PURE__ */ w(
378
+ }), Q = a.rowHeight ?? Qe, Ne = le ?? (T ? Ye : Be);
379
+ return /* @__PURE__ */ We(nt.Provider, { value: H, children: [
380
+ /* @__PURE__ */ G(
366
381
  "div",
367
382
  {
368
- ref: F,
383
+ ref: E,
369
384
  "data-component": "ag-grid-react",
370
- "data-variant": D ? "list" : W,
371
- "data-list-drag": Te ? "true" : void 0,
372
- "data-list-header": Ie ? "none" : void 0,
373
- "data-row-loading": me ? "true" : "false",
374
- className: `table-with-loader${K ? ` ${K}` : ""}`,
385
+ "data-variant": T ? "list" : z,
386
+ "data-list-drag": Le ? "true" : void 0,
387
+ "data-list-header": ke ? "none" : void 0,
388
+ "data-row-loading": ge ? "true" : "false",
389
+ className: `table-with-loader${q ? ` ${q}` : ""}`,
375
390
  style: {
376
391
  width: "100%",
377
392
  height: "100%",
378
- ...D ? { "--ag-row-height": `${J}px` } : null
393
+ ...T ? { "--ag-row-height": `${Q}px` } : null
379
394
  },
380
- children: /* @__PURE__ */ w(
381
- ze,
395
+ children: /* @__PURE__ */ G(
396
+ Je,
382
397
  {
383
- theme: _e,
384
- defaultColDef: we,
385
- columnDefs: Le,
398
+ theme: Ne,
399
+ defaultColDef: Ge,
400
+ columnDefs: je,
386
401
  cellSelection: !0,
387
- defaultColGroupDef: H,
388
- onGridReady: ve,
389
- onGridPreDestroyed: ye,
390
- onFilterChanged: be,
391
- onSelectionChanged: xe,
392
- onModelUpdated: Se,
393
- tooltipShowMode: I,
394
- tooltipShowDelay: L,
395
- tooltipHideDelay: re,
396
- tooltipInteraction: ne,
397
- processCellForClipboard: Ae,
398
- processCellFromClipboard: De,
399
- sendToClipboard: Ee,
400
- ensureDomOrder: M,
402
+ defaultColGroupDef: _,
403
+ onGridReady: xe,
404
+ onGridPreDestroyed: be,
405
+ onFilterChanged: Se,
406
+ onSelectionChanged: we,
407
+ onModelUpdated: Re,
408
+ tooltipShowMode: j,
409
+ tooltipShowDelay: O,
410
+ tooltipHideDelay: ne,
411
+ tooltipInteraction: ie,
412
+ processCellForClipboard: Fe,
413
+ processCellFromClipboard: Ae,
414
+ sendToClipboard: Te,
415
+ ensureDomOrder: L,
401
416
  suppressHeaderFocus: !1,
402
417
  suppressFocusAfterRefresh: !0,
403
418
  suppressGroupRowsSticky: !0,
404
419
  hidePaddedHeaderRows: !0,
405
420
  suppressServerSideFullWidthLoadingRow: !0,
406
- columnTypes: Ce,
407
- autoSizeStrategy: T,
408
- ...s,
409
- ...D ? { rowHeight: J, cellSelection: s.cellSelection ?? !1 } : null,
421
+ columnTypes: ye,
422
+ autoSizeStrategy: k,
423
+ ...a,
424
+ ...T ? { rowHeight: Q, cellSelection: a.cellSelection ?? !1 } : null,
410
425
  ...He,
411
- ...ke,
412
- components: Fe,
413
- defaultCsvExportParams: Ge,
414
- defaultExcelExportParams: Me,
415
- getMainMenuItems: he
426
+ ...Oe,
427
+ components: Ee,
428
+ defaultCsvExportParams: Me,
429
+ defaultExcelExportParams: Ie,
430
+ getMainMenuItems: Ce
416
431
  }
417
432
  )
418
433
  }
419
434
  ),
420
- je,
421
- Oe,
435
+ _e,
436
+ Pe,
422
437
  c,
423
- /* @__PURE__ */ w(
424
- ut,
438
+ /* @__PURE__ */ G(
439
+ mt,
425
440
  {
426
- isOpen: fe,
427
- columnId: ge,
428
- gridApi: $,
429
- onClose: k.closeAdvancedFilter,
430
- onApply: k.applyAdvancedFilter
441
+ isOpen: he,
442
+ columnId: ve,
443
+ gridApi: b,
444
+ onClose: H.closeAdvancedFilter,
445
+ onApply: H.applyAdvancedFilter
431
446
  }
432
447
  )
433
448
  ] });
434
449
  }
435
- function ut({
450
+ function mt({
436
451
  isOpen: c,
437
- columnId: n,
438
- gridApi: a,
452
+ columnId: o,
453
+ gridApi: s,
439
454
  onClose: C,
440
- onApply: v
455
+ onApply: y
441
456
  }) {
442
- if (!c || !n || !a) return null;
443
- const d = a.getColumn(n);
457
+ if (!c || !o || !s) return null;
458
+ const d = s.getColumn(o);
444
459
  if (!d) return null;
445
- const p = d.getColDef(), x = p.headerComponentParams, y = ot(p), R = y.text !== -1 || y.number !== -1 || y.date !== -1, M = y.set !== -1, I = p.filter === "agMultiColumnFilter" && (R || M) ? "multi" : p.filter === "agNumberColumnFilter" ? "number" : p.filter === "agDateColumnFilter" ? "date" : p.filter === "agSetColumnFilter" || x?.selectOptions ? "select" : "text", L = lt(a.getFilterModel());
446
- return /* @__PURE__ */ w(Ke, { fallback: null, children: /* @__PURE__ */ w(
447
- ct,
460
+ const p = d.getColDef(), w = p.headerComponentParams, x = lt(p), D = x.text !== -1 || x.number !== -1 || x.date !== -1, L = x.set !== -1, j = p.filter === "agMultiColumnFilter" && (D || L) ? "multi" : p.filter === "agNumberColumnFilter" ? "number" : p.filter === "agDateColumnFilter" ? "date" : p.filter === "agSetColumnFilter" || w?.selectOptions ? "select" : "text", O = st(s.getFilterModel());
461
+ return /* @__PURE__ */ G(Ue, { fallback: null, children: /* @__PURE__ */ G(
462
+ ft,
448
463
  {
449
464
  isOpen: c,
450
465
  onClose: C,
451
- onApply: v,
452
- columnId: n,
453
- columnLabel: p.headerName || n,
454
- columnType: I,
455
- selectOptions: x?.selectOptions,
456
- isMultiSelect: x?.isMultiSelect,
457
- initialModel: L,
458
- api: a
466
+ onApply: y,
467
+ columnId: o,
468
+ columnLabel: p.headerName || o,
469
+ columnType: j,
470
+ selectOptions: w?.selectOptions,
471
+ isMultiSelect: w?.isMultiSelect,
472
+ initialModel: O,
473
+ api: s
459
474
  }
460
475
  ) });
461
476
  }
462
477
  export {
463
- kt as AG_GRID_LIST_RANK_GRADIENT,
464
- Tt as AgGridWrapper,
465
- Kt as isAgGridHeaderLabelTooltipOverflowing,
466
- $t as isAgGridTextOverflowing,
467
- jt as subscribeGridApiEvent,
468
- Ot as subscribeGridApiEvents,
469
- Nt as useAgGridTruncationTooltip,
470
- Vt as useListRowDropZones
478
+ Pt as AG_GRID_LIST_RANK_GRADIENT,
479
+ Ot as AgGridWrapper,
480
+ Xt as isAgGridHeaderLabelTooltipOverflowing,
481
+ Jt as isAgGridTextOverflowing,
482
+ pt as normalizeColumnDefsNumericHeaderAlignment,
483
+ Vt as subscribeGridApiEvent,
484
+ Wt as subscribeGridApiEvents,
485
+ $t as useAgGridTruncationTooltip,
486
+ zt as useListRowDropZones
471
487
  };