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

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 (102) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +9 -0
  2. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
  3. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
  4. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
  5. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
  6. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
  7. package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
  8. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
  9. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
  10. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  11. package/dist/components/data/ag-grid-react/index.js +150 -147
  12. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +14 -1
  13. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +95 -31
  14. package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
  15. package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
  16. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
  17. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
  18. package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
  19. package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
  20. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +4 -0
  21. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +78 -0
  22. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +10 -2
  23. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +130 -107
  24. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +4 -1
  25. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +131 -32
  26. package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
  27. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +2 -0
  28. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +60 -41
  29. package/dist/components/data/data-table/data-table-list-header.js +1 -1
  30. package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
  31. package/dist/components/data/data-table/data-table-overlay.js +18 -0
  32. package/dist/components/data/data-table/data-table.types.d.ts +1 -0
  33. package/dist/components/data/data-table/index.d.ts +3 -0
  34. package/dist/components/data/data-table/index.js +67 -63
  35. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  36. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  37. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
  38. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
  39. package/dist/components/data/scenario-comparison/index.d.ts +3 -0
  40. package/dist/components/data/scenario-comparison/index.js +6 -0
  41. package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
  42. package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
  43. package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
  44. package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
  45. package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
  46. package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
  47. package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
  48. package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
  49. package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
  50. package/dist/components/data-display/badge/index.d.ts +2 -0
  51. package/dist/components/data-display/badge/index.js +4 -2
  52. package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
  53. package/dist/components/data-display/badge/trophy-icon.js +28 -0
  54. package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
  55. package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
  56. package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
  57. package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
  58. package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
  59. package/dist/components/feedback/find-bar/find-bar.js +266 -0
  60. package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
  61. package/dist/components/feedback/find-bar/index.d.ts +4 -0
  62. package/dist/components/feedback/find-bar/index.js +11 -0
  63. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  64. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  65. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  66. package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
  67. package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
  68. package/dist/components/forms/choice-card/choice-card.d.ts +13 -2
  69. package/dist/components/forms/choice-card/choice-card.js +432 -342
  70. package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
  71. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  72. package/dist/components/forms/select/components/Submenu.js +3 -2
  73. package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
  74. package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
  75. package/dist/components/primitives/tabs/tabs.js +164 -111
  76. package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
  77. package/dist/i18n/defaultMessages.d.ts +17 -0
  78. package/dist/i18n/defaultMessages.js +52 -38
  79. package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
  80. package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
  81. package/dist/i18n/index.d.ts +1 -1
  82. package/dist/i18n/locales/de.js +15 -1
  83. package/dist/i18n/locales/es.js +15 -1
  84. package/dist/i18n/locales/hi.js +15 -1
  85. package/dist/i18n/locales/kn.js +15 -1
  86. package/dist/impact-nova-components.css +189 -14
  87. package/dist/impact-nova-tokens.scss +2 -0
  88. package/dist/impact-nova.css +1 -1
  89. package/dist/index.d.ts +1 -0
  90. package/dist/index.js +621 -607
  91. package/dist/lib/virtualized/index.d.ts +2 -0
  92. package/dist/lib/virtualized/index.js +35 -31
  93. package/dist/lib/virtualized/list-index.d.ts +5 -0
  94. package/dist/lib/virtualized/list-index.js +13 -0
  95. package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
  96. package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
  97. package/dist/lib/virtualized/types.d.ts +4 -2
  98. package/dist/lib/virtualized/useRowState.js +60 -56
  99. package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
  100. package/dist/llms/rules/installation.js +1 -1
  101. package/dist/llms/rules/requirements.js +1 -1
  102. package/package.json +16 -3
@@ -1,41 +1,41 @@
1
1
  import { jsxs as Pe, jsx as w } from "react/jsx-runtime";
2
- import { lazy as Ne, useRef as _, useState as P, useId as Ve, useEffect as Z, useCallback as f, useMemo as h, Suspense as We } from "react";
3
- import { ModuleRegistry as Ke, AllCommunityModule as $e } from "ag-grid-community";
4
- import { AllEnterpriseModule as Ue } from "ag-grid-enterprise";
5
- import { AgGridReact as qe } from "ag-grid-react";
6
- import { useAgGridDragList as ze } from "./use-ag-grid-list-drag.js";
7
- import { customAgGridTheme as Xe } from "./theme.js";
8
- import { AG_GRID_LIST_ROW_HEIGHT_PX as Je, customAgGridListTheme as Ze } from "./ag-grid-list.js";
9
- import { AG_GRID_LIST_RANK_GRADIENT as Lt } from "./ag-grid-list.js";
10
- import { syncAgGridThemeMode as Be } from "./sync-ag-grid-theme-mode.js";
11
- import { CustomHeader as Qe } from "./headers/custom-header.js";
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
12
  import { CustomHeaderGroup as B } from "./headers/custom-inner-header-group.js";
13
- import { mergeColumnGroupDefsWithDefault as Ye } from "./merge-column-group-defs.js";
14
- import { DefaultTextCellRenderer as et } from "./cell-renderers/default-text-cell-renderer.js";
15
- import { GridHeaderContext as tt } from "./headers/context/grid-header-context.js";
16
- import { convertToAgGridFilterModel as rt, getMultiFilterIndices as nt, convertFromAgGridFilterModel as ot } from "./headers/utils/filter-utils.js";
17
- import { AG_GRID_VALUE_FORMATTERS as lt } from "./value-formatters.js";
18
- import { useGridAutoSizeStrategyOnResize as it } from "./useGridAutoSizeStrategyOnResize.js";
19
- import { subscribeGridApiEvent as Ht, subscribeGridApiEvents as jt } from "./grid-api-event-subscription.js";
20
- import { notifyColumnIndicatorSync as D } from "./notify-column-indicator-sync.js";
21
- import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as at } from "./headers/header-search-active-state.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";
22
22
  /* empty css */
23
- import { useAgGridTruncationTooltip as _t } from "./use-ag-grid-truncation-tooltip.js";
24
- import { useListRowDropZones as Nt } from "./use-list-row-drop-zones.js";
25
- import { isAgGridHeaderLabelTooltipOverflowing as Wt, isAgGridTextOverflowing as Kt } from "./ag-grid-tooltip-overflow.js";
26
- const st = Ne(
27
- () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((s) => ({
28
- default: s.AdvancedFilterDialog
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(
27
+ () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
28
+ default: c.AdvancedFilterDialog
29
29
  }))
30
30
  );
31
- Ke.registerModules([$e, Ue]);
32
- const S = "", V = "", Q = (s) => {
33
- if (!s) return;
34
- const n = s.cellRendererParams?.splits;
31
+ $e.registerModules([Ue, qe]);
32
+ const S = "", V = "", Q = (c) => {
33
+ if (!c) return;
34
+ const n = c.cellRendererParams?.splits;
35
35
  if (Array.isArray(n) && n.length > 0) return n;
36
- const a = s.cellEditorParams?.splits;
36
+ const a = c.cellEditorParams?.splits;
37
37
  if (Array.isArray(a) && a.length > 0) return a;
38
- }, Y = (s, n) => {
38
+ }, Y = (c, n) => {
39
39
  const a = [];
40
40
  for (const C of n) {
41
41
  const v = C?.field?.split(".").pop();
@@ -43,7 +43,7 @@ const S = "", V = "", Q = (s) => {
43
43
  a.push("");
44
44
  continue;
45
45
  }
46
- const d = s[v];
46
+ const d = c[v];
47
47
  if (d == null) {
48
48
  a.push("");
49
49
  continue;
@@ -60,24 +60,24 @@ const S = "", V = "", Q = (s) => {
60
60
  a.push("");
61
61
  }
62
62
  return a;
63
- }, ee = (s) => {
63
+ }, ee = (c) => {
64
64
  if (typeof navigator < "u" && navigator.clipboard?.writeText) {
65
- navigator.clipboard.writeText(s).catch(() => te(s));
65
+ navigator.clipboard.writeText(c).catch(() => te(c));
66
66
  return;
67
67
  }
68
- te(s);
69
- }, te = (s) => {
68
+ te(c);
69
+ }, te = (c) => {
70
70
  if (typeof document > "u") return;
71
71
  const n = document.createElement("textarea");
72
- n.value = s, 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
+ 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);
73
73
  try {
74
74
  n.select(), document.execCommand("copy");
75
75
  } finally {
76
76
  document.body.removeChild(n);
77
77
  }
78
78
  };
79
- function Mt({
80
- children: s,
79
+ function Tt({
80
+ children: c,
81
81
  defaultColDef: n,
82
82
  defaultColGroupDef: a,
83
83
  columnDefs: C,
@@ -86,7 +86,7 @@ function Mt({
86
86
  onGridPreDestroyed: p,
87
87
  onFilterChanged: x,
88
88
  onSelectionChanged: y,
89
- onModelUpdated: F,
89
+ onModelUpdated: R,
90
90
  ensureDomOrder: M = !1,
91
91
  autoSizeStrategy: T,
92
92
  tooltipShowMode: I = "whenTruncated",
@@ -99,23 +99,24 @@ function Mt({
99
99
  listDragPreview: ie,
100
100
  listHeader: ae = "columns",
101
101
  onRowReorder: se,
102
- isRowDragDisabled: ce,
103
- getRowDragHandleLabel: ue,
104
- canDropRow: de,
105
- rowLoading: pe = !1,
102
+ onRowMoveBeyondEdge: ce,
103
+ isRowDragDisabled: ue,
104
+ getRowDragHandleLabel: de,
105
+ canDropRow: pe,
106
+ rowLoading: me = !1,
106
107
  className: K,
107
- ...c
108
+ ...s
108
109
  }) {
109
- const u = _(null), R = _(null), [$, U] = P(null), q = Ve(), b = _(q);
110
- b.current = q, it($, R, T), Z(() => {
110
+ const u = _(null), F = _(null), [$, U] = N(null), q = We(), b = _(q);
111
+ b.current = q, at($, F, T), Z(() => {
111
112
  const e = document.documentElement, t = () => {
112
- Be(e.classList.contains("dark") ? "dark" : "light", e);
113
+ Qe(e.classList.contains("dark") ? "dark" : "light", e);
113
114
  };
114
115
  t();
115
116
  const o = new MutationObserver(t);
116
117
  return o.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => o.disconnect();
117
118
  }, []);
118
- const [me, z] = P(!1), [fe, X] = P(null), ge = f(() => [], []), he = h(() => ({
119
+ const [fe, z] = N(!1), [ge, X] = N(null), he = f(() => [], []), Ce = h(() => ({
119
120
  numericColumn: {
120
121
  cellClass: "ag-right-aligned-cell",
121
122
  headerClass: "ag-right-aligned-header",
@@ -141,12 +142,12 @@ function Mt({
141
142
  openSearch: (e) => {
142
143
  if (!u.current) return;
143
144
  const t = u.current.getGridOption("context") || {};
144
- u.current.setGridOption("context", { ...t, activeSearchColumnId: e }), N(b.current, e), D(u.current);
145
+ u.current.setGridOption("context", { ...t, activeSearchColumnId: e }), P(b.current, e), G(u.current);
145
146
  },
146
147
  closeSearch: () => {
147
148
  if (!u.current) return;
148
149
  const e = u.current.getGridOption("context") || {};
149
- u.current.setGridOption("context", { ...e, activeSearchColumnId: null }), N(b.current, null), D(u.current);
150
+ u.current.setGridOption("context", { ...e, activeSearchColumnId: null }), P(b.current, null), G(u.current);
150
151
  },
151
152
  openAdvancedFilter: (e) => {
152
153
  X(e || null), z(!0);
@@ -156,40 +157,40 @@ function Mt({
156
157
  },
157
158
  applyAdvancedFilter: (e) => {
158
159
  if (!u.current) return;
159
- const t = rt(e);
160
- u.current.setFilterModel(t), u.current.onFilterChanged(), D(u.current);
160
+ const t = nt(e);
161
+ u.current.setFilterModel(t), u.current.onFilterChanged(), G(u.current);
161
162
  }
162
- }), []), Ce = f((e) => {
163
+ }), []), ve = f((e) => {
163
164
  u.current = e.api, U(e.api);
164
165
  const t = e.api.getGridOption("context") || {};
165
166
  e.api.setGridOption("context", {
166
167
  ...t,
167
168
  activeSearchColumnId: null,
168
169
  headerSearchScopeId: b.current
169
- }), N(b.current, null), d && d(e);
170
- }, [d]), ve = f(
170
+ }), P(b.current, null), d && d(e);
171
+ }, [d]), ye = f(
171
172
  (e) => {
172
- at(b.current), u.current = null, U(null), p?.(e);
173
+ st(b.current), u.current = null, U(null), p?.(e);
173
174
  },
174
175
  [p]
175
- ), ye = f(
176
+ ), be = f(
176
177
  (e) => {
177
- D(e.api), x?.(e);
178
+ G(e.api), x?.(e);
178
179
  },
179
180
  [x]
180
- ), be = f(
181
+ ), xe = f(
181
182
  (e) => {
182
183
  y?.(e);
183
184
  },
184
185
  [y]
185
- ), xe = f(
186
+ ), Se = f(
186
187
  (e) => {
187
- F?.(e);
188
+ R?.(e);
188
189
  },
189
- [F]
190
+ [R]
190
191
  );
191
192
  Z(() => {
192
- const e = R.current;
193
+ const e = F.current;
193
194
  if (!e) return;
194
195
  const t = (o) => {
195
196
  if (o.key !== "Enter" && o.key !== " ") return;
@@ -202,12 +203,12 @@ function Mt({
202
203
  };
203
204
  return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
204
205
  }, []);
205
- const Se = h(() => ({
206
- headerComponent: Qe,
206
+ const we = h(() => ({
207
+ headerComponent: Ye,
207
208
  // Default cell renderer wraps text in a span so display:flex centering
208
209
  // and text-overflow:ellipsis both work (ellipsis doesn't work on
209
210
  // anonymous flex text nodes, but works on flex child elements).
210
- cellRenderer: et,
211
+ cellRenderer: tt,
211
212
  ...n,
212
213
  suppressHeaderKeyboardEvent: (e) => {
213
214
  const { event: t } = e, o = t.target;
@@ -232,19 +233,19 @@ function Mt({
232
233
  ...a?.headerGroupComponentParams,
233
234
  innerHeaderGroupComponent: a?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
234
235
  }
235
- }), [a]), we = h(
236
- () => Ye(C ?? void 0, H),
236
+ }), [a]), Re = h(
237
+ () => et(C ?? void 0, H),
237
238
  [C, H]
238
239
  ), Fe = h(() => ({
239
- ...lt,
240
+ ...it,
240
241
  // Always available - value formatters
241
242
  CustomInnerHeaderGroup: B,
242
243
  CustomHeaderGroup: B,
243
- ...c.components,
244
+ ...s.components,
244
245
  // User components override
245
246
  ...v
246
247
  // Optional custom formatters override defaults
247
- }), [v, c.components]), Re = f((e) => {
248
+ }), [v, s.components]), Ae = f((e) => {
248
249
  const t = e.value;
249
250
  if (t != null && typeof t == "object") {
250
251
  const i = Q(e.column?.getColDef());
@@ -260,7 +261,7 @@ function Mt({
260
261
  return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(S);
261
262
  }
262
263
  return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
263
- }, []), Ae = f((e) => {
264
+ }, []), De = f((e) => {
264
265
  if (typeof e.value == "string") {
265
266
  const t = e.value.trim();
266
267
  if (t.startsWith("{") || t.startsWith("["))
@@ -291,8 +292,8 @@ function Mt({
291
292
  continue;
292
293
  }
293
294
  for (let m = 0; m < O; m++) {
294
- const _e = g.map((G) => !G.isSplit && G.slots.length === 1 ? G.slots[0] : G.slots[m] ?? "");
295
- o.push(_e.join(" "));
295
+ const Ne = g.map((E) => !E.isSplit && E.slots.length === 1 ? E.slots[0] : E.slots[m] ?? "");
296
+ o.push(Ne.join(" "));
296
297
  }
297
298
  }
298
299
  ee(o.join(`
@@ -322,77 +323,79 @@ function Mt({
322
323
  `);
323
324
  }, []), Ge = h(() => ({
324
325
  processCellCallback: A,
325
- ...c.defaultCsvExportParams ?? {}
326
- }), [A, c.defaultCsvExportParams]), De = h(() => ({
326
+ ...s.defaultCsvExportParams ?? {}
327
+ }), [A, s.defaultCsvExportParams]), Me = h(() => ({
327
328
  processCellCallback: A,
328
- ...c.defaultExcelExportParams ?? {}
329
- }), [A, c.defaultExcelExportParams]), {
330
- isDragList: Me,
331
- isListVariant: E,
332
- hideColumnHeader: Te,
333
- dragListColumnDefs: Ie,
334
- dragListGridProps: Le,
335
- listHeaderGridProps: ke,
336
- dragPreviewPortal: He,
337
- liveRegion: je
338
- } = ze({
329
+ ...s.defaultExcelExportParams ?? {}
330
+ }), [A, s.defaultExcelExportParams]), {
331
+ isDragList: Te,
332
+ isListVariant: D,
333
+ hideColumnHeader: Ie,
334
+ dragListColumnDefs: Le,
335
+ dragListGridProps: ke,
336
+ listHeaderGridProps: He,
337
+ dragPreviewPortal: je,
338
+ liveRegion: Oe
339
+ } = Xe({
339
340
  variant: W,
340
341
  listHeader: ae,
341
342
  columnDefs: C,
342
- mergedColumnDefs: we,
343
+ mergedColumnDefs: Re,
343
344
  listRowGradient: le,
344
345
  listDragPreview: ie,
345
- isRowDragDisabled: ce,
346
- getRowDragHandleLabel: ue,
347
- canDropRow: de,
346
+ isRowDragDisabled: ue,
347
+ getRowDragHandleLabel: de,
348
+ canDropRow: pe,
348
349
  onRowReorder: se,
349
- getRowStyle: c.getRowStyle,
350
- getRowId: c.getRowId,
351
- rowData: c.rowData,
352
- rowDragManaged: c.rowDragManaged,
353
- rowDragText: c.rowDragText,
354
- onRowDragEnter: c.onRowDragEnter,
355
- onRowDragMove: c.onRowDragMove,
356
- onRowDragCancel: c.onRowDragCancel,
357
- onRowDragEnd: c.onRowDragEnd,
358
- gridContainerRef: R,
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,
359
362
  gridApiRef: u
360
- }), J = c.rowHeight ?? Je, Oe = oe ?? (E ? Ze : Xe);
361
- return /* @__PURE__ */ Pe(tt.Provider, { value: k, children: [
363
+ }), J = s.rowHeight ?? Ze, _e = oe ?? (D ? Be : Je);
364
+ return /* @__PURE__ */ Pe(rt.Provider, { value: k, children: [
362
365
  /* @__PURE__ */ w(
363
366
  "div",
364
367
  {
365
- ref: R,
368
+ ref: F,
366
369
  "data-component": "ag-grid-react",
367
- "data-variant": E ? "list" : W,
368
- "data-list-drag": Me ? "true" : void 0,
369
- "data-list-header": Te ? "none" : void 0,
370
- "data-row-loading": pe ? "true" : "false",
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",
371
374
  className: `table-with-loader${K ? ` ${K}` : ""}`,
372
375
  style: {
373
376
  width: "100%",
374
377
  height: "100%",
375
- ...E ? { "--ag-row-height": `${J}px` } : null
378
+ ...D ? { "--ag-row-height": `${J}px` } : null
376
379
  },
377
380
  children: /* @__PURE__ */ w(
378
- qe,
381
+ ze,
379
382
  {
380
- theme: Oe,
381
- defaultColDef: Se,
382
- columnDefs: Ie,
383
+ theme: _e,
384
+ defaultColDef: we,
385
+ columnDefs: Le,
383
386
  cellSelection: !0,
384
387
  defaultColGroupDef: H,
385
- onGridReady: Ce,
386
- onGridPreDestroyed: ve,
387
- onFilterChanged: ye,
388
- onSelectionChanged: be,
389
- onModelUpdated: xe,
388
+ onGridReady: ve,
389
+ onGridPreDestroyed: ye,
390
+ onFilterChanged: be,
391
+ onSelectionChanged: xe,
392
+ onModelUpdated: Se,
390
393
  tooltipShowMode: I,
391
394
  tooltipShowDelay: L,
392
395
  tooltipHideDelay: re,
393
396
  tooltipInteraction: ne,
394
- processCellForClipboard: Re,
395
- processCellFromClipboard: Ae,
397
+ processCellForClipboard: Ae,
398
+ processCellFromClipboard: De,
396
399
  sendToClipboard: Ee,
397
400
  ensureDomOrder: M,
398
401
  suppressHeaderFocus: !1,
@@ -400,28 +403,28 @@ function Mt({
400
403
  suppressGroupRowsSticky: !0,
401
404
  hidePaddedHeaderRows: !0,
402
405
  suppressServerSideFullWidthLoadingRow: !0,
403
- columnTypes: he,
406
+ columnTypes: Ce,
404
407
  autoSizeStrategy: T,
405
- ...c,
406
- ...E ? { rowHeight: J } : null,
408
+ ...s,
409
+ ...D ? { rowHeight: J, cellSelection: s.cellSelection ?? !1 } : null,
410
+ ...He,
407
411
  ...ke,
408
- ...Le,
409
412
  components: Fe,
410
413
  defaultCsvExportParams: Ge,
411
- defaultExcelExportParams: De,
412
- getMainMenuItems: ge
414
+ defaultExcelExportParams: Me,
415
+ getMainMenuItems: he
413
416
  }
414
417
  )
415
418
  }
416
419
  ),
417
- He,
418
420
  je,
419
- s,
421
+ Oe,
422
+ c,
420
423
  /* @__PURE__ */ w(
421
- ct,
424
+ ut,
422
425
  {
423
- isOpen: me,
424
- columnId: fe,
426
+ isOpen: fe,
427
+ columnId: ge,
425
428
  gridApi: $,
426
429
  onClose: k.closeAdvancedFilter,
427
430
  onApply: k.applyAdvancedFilter
@@ -429,21 +432,21 @@ function Mt({
429
432
  )
430
433
  ] });
431
434
  }
432
- function ct({
433
- isOpen: s,
435
+ function ut({
436
+ isOpen: c,
434
437
  columnId: n,
435
438
  gridApi: a,
436
439
  onClose: C,
437
440
  onApply: v
438
441
  }) {
439
- if (!s || !n || !a) return null;
442
+ if (!c || !n || !a) return null;
440
443
  const d = a.getColumn(n);
441
444
  if (!d) return null;
442
- const p = d.getColDef(), x = p.headerComponentParams, y = nt(p), F = y.text !== -1 || y.number !== -1 || y.date !== -1, M = y.set !== -1, I = p.filter === "agMultiColumnFilter" && (F || M) ? "multi" : p.filter === "agNumberColumnFilter" ? "number" : p.filter === "agDateColumnFilter" ? "date" : p.filter === "agSetColumnFilter" || x?.selectOptions ? "select" : "text", L = ot(a.getFilterModel());
443
- return /* @__PURE__ */ w(We, { fallback: null, children: /* @__PURE__ */ w(
444
- st,
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,
445
448
  {
446
- isOpen: s,
449
+ isOpen: c,
447
450
  onClose: C,
448
451
  onApply: v,
449
452
  columnId: n,
@@ -457,12 +460,12 @@ function ct({
457
460
  ) });
458
461
  }
459
462
  export {
460
- Lt as AG_GRID_LIST_RANK_GRADIENT,
461
- Mt as AgGridWrapper,
462
- Wt as isAgGridHeaderLabelTooltipOverflowing,
463
- Kt as isAgGridTextOverflowing,
464
- Ht as subscribeGridApiEvent,
465
- jt as subscribeGridApiEvents,
466
- _t as useAgGridTruncationTooltip,
467
- Nt as useListRowDropZones
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
468
471
  };
@@ -1,4 +1,4 @@
1
- import { IRowNode, RowDragEndEvent, RowDragMoveEvent } from 'ag-grid-community';
1
+ import { GridApi, IRowNode, RowDragEndEvent, RowDragMoveEvent } from 'ag-grid-community';
2
2
  import { AgGridReactProps } from 'ag-grid-react';
3
3
  import { ListDropPosition, isListDropAllowed } from './list-row-move';
4
4
  import { AgGridVisualVariant, AgGridWrapperProps } from './ag-grid.types';
@@ -14,7 +14,20 @@ export declare function isAgGridListDragEnabled(options: {
14
14
  getRowId?: unknown;
15
15
  }): boolean;
16
16
  export declare function readDragRowId<TData>(node: IRowNode<TData> | undefined): string | undefined;
17
+ /** Resolve the row under the drag handle / `.ag-row`, then fall back to the focused cell. */
18
+ export declare function readListKeyboardRow<TData>(options: {
19
+ api: GridApi<TData> | undefined;
20
+ target: EventTarget | null;
21
+ }): IRowNode<TData> | undefined;
22
+ export declare function formatListReorderLiveMessage(position: number, template: string): string;
17
23
  export declare function dropPositionFromEvent<TData>(event: RowDragMoveEvent<TData> | RowDragEndEvent<TData>): ListDropPosition;
24
+ /** Same-list line only while the pointer is over this grid. Cross-list drop paints the other grid. */
25
+ export declare function isListDragPointerOverHost(event: {
26
+ event?: {
27
+ clientX?: number;
28
+ clientY?: number;
29
+ } | null;
30
+ }, host: HTMLElement | null | undefined): boolean;
18
31
  export declare function itemIdFromGetRowId<TData>(getRowId: AgGridReactProps<TData>['getRowId'], data: TData): string | undefined;
19
32
  export declare function createDefaultRowDragText<TData>(columnDefs: AgGridReactProps<TData>['columnDefs']): NonNullable<AgGridReactProps<TData>['rowDragText']>;
20
33
  export declare function createListRowStyle<TData>(listRowGradient: AgGridWrapperProps<TData>['listRowGradient'], userGetRowStyle: AgGridReactProps<TData>['getRowStyle']): AgGridReactProps<TData>['getRowStyle'];