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.
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +9 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +150 -147
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +14 -1
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +95 -31
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +4 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +78 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +10 -2
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +130 -107
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +4 -1
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +131 -32
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +2 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +60 -41
- package/dist/components/data/data-table/data-table-list-header.js +1 -1
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table.types.d.ts +1 -0
- package/dist/components/data/data-table/index.d.ts +3 -0
- package/dist/components/data/data-table/index.js +67 -63
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +13 -2
- package/dist/components/forms/choice-card/choice-card.js +432 -342
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +164 -111
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/i18n/defaultMessages.d.ts +17 -0
- package/dist/i18n/defaultMessages.js +52 -38
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +15 -1
- package/dist/i18n/locales/es.js +15 -1
- package/dist/i18n/locales/hi.js +15 -1
- package/dist/i18n/locales/kn.js +15 -1
- package/dist/impact-nova-components.css +189 -14
- package/dist/impact-nova-tokens.scss +2 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +621 -607
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- 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
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { AllEnterpriseModule as
|
|
5
|
-
import { AgGridReact as
|
|
6
|
-
import { useAgGridDragList as
|
|
7
|
-
import { customAgGridTheme as
|
|
8
|
-
import { AG_GRID_LIST_ROW_HEIGHT_PX as
|
|
9
|
-
import { AG_GRID_LIST_RANK_GRADIENT as
|
|
10
|
-
import { syncAgGridThemeMode as
|
|
11
|
-
import { CustomHeader as
|
|
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
|
|
14
|
-
import { DefaultTextCellRenderer as
|
|
15
|
-
import { GridHeaderContext as
|
|
16
|
-
import { convertToAgGridFilterModel as
|
|
17
|
-
import { AG_GRID_VALUE_FORMATTERS as
|
|
18
|
-
import { useGridAutoSizeStrategyOnResize as
|
|
19
|
-
import { subscribeGridApiEvent as
|
|
20
|
-
import { notifyColumnIndicatorSync as
|
|
21
|
-
import { setActiveSearchColumnId as
|
|
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
|
|
24
|
-
import { useListRowDropZones as
|
|
25
|
-
import { isAgGridHeaderLabelTooltipOverflowing as
|
|
26
|
-
const
|
|
27
|
-
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((
|
|
28
|
-
default:
|
|
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
|
-
|
|
32
|
-
const S = "", V = "", Q = (
|
|
33
|
-
if (!
|
|
34
|
-
const n =
|
|
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 =
|
|
36
|
+
const a = c.cellEditorParams?.splits;
|
|
37
37
|
if (Array.isArray(a) && a.length > 0) return a;
|
|
38
|
-
}, Y = (
|
|
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 =
|
|
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 = (
|
|
63
|
+
}, ee = (c) => {
|
|
64
64
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
65
|
-
navigator.clipboard.writeText(
|
|
65
|
+
navigator.clipboard.writeText(c).catch(() => te(c));
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
te(
|
|
69
|
-
}, te = (
|
|
68
|
+
te(c);
|
|
69
|
+
}, te = (c) => {
|
|
70
70
|
if (typeof document > "u") return;
|
|
71
71
|
const n = document.createElement("textarea");
|
|
72
|
-
n.value =
|
|
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
|
|
80
|
-
children:
|
|
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:
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
onRowMoveBeyondEdge: ce,
|
|
103
|
+
isRowDragDisabled: ue,
|
|
104
|
+
getRowDragHandleLabel: de,
|
|
105
|
+
canDropRow: pe,
|
|
106
|
+
rowLoading: me = !1,
|
|
106
107
|
className: K,
|
|
107
|
-
...
|
|
108
|
+
...s
|
|
108
109
|
}) {
|
|
109
|
-
const u = _(null),
|
|
110
|
-
b.current = q,
|
|
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
|
-
|
|
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 [
|
|
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 }),
|
|
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 }),
|
|
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 =
|
|
160
|
-
u.current.setFilterModel(t), u.current.onFilterChanged(),
|
|
160
|
+
const t = nt(e);
|
|
161
|
+
u.current.setFilterModel(t), u.current.onFilterChanged(), G(u.current);
|
|
161
162
|
}
|
|
162
|
-
}), []),
|
|
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
|
-
}),
|
|
170
|
-
}, [d]),
|
|
170
|
+
}), P(b.current, null), d && d(e);
|
|
171
|
+
}, [d]), ye = f(
|
|
171
172
|
(e) => {
|
|
172
|
-
|
|
173
|
+
st(b.current), u.current = null, U(null), p?.(e);
|
|
173
174
|
},
|
|
174
175
|
[p]
|
|
175
|
-
),
|
|
176
|
+
), be = f(
|
|
176
177
|
(e) => {
|
|
177
|
-
|
|
178
|
+
G(e.api), x?.(e);
|
|
178
179
|
},
|
|
179
180
|
[x]
|
|
180
|
-
),
|
|
181
|
+
), xe = f(
|
|
181
182
|
(e) => {
|
|
182
183
|
y?.(e);
|
|
183
184
|
},
|
|
184
185
|
[y]
|
|
185
|
-
),
|
|
186
|
+
), Se = f(
|
|
186
187
|
(e) => {
|
|
187
|
-
|
|
188
|
+
R?.(e);
|
|
188
189
|
},
|
|
189
|
-
[
|
|
190
|
+
[R]
|
|
190
191
|
);
|
|
191
192
|
Z(() => {
|
|
192
|
-
const e =
|
|
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
|
|
206
|
-
headerComponent:
|
|
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:
|
|
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]),
|
|
236
|
-
() =>
|
|
236
|
+
}), [a]), Re = h(
|
|
237
|
+
() => et(C ?? void 0, H),
|
|
237
238
|
[C, H]
|
|
238
239
|
), Fe = h(() => ({
|
|
239
|
-
...
|
|
240
|
+
...it,
|
|
240
241
|
// Always available - value formatters
|
|
241
242
|
CustomInnerHeaderGroup: B,
|
|
242
243
|
CustomHeaderGroup: B,
|
|
243
|
-
...
|
|
244
|
+
...s.components,
|
|
244
245
|
// User components override
|
|
245
246
|
...v
|
|
246
247
|
// Optional custom formatters override defaults
|
|
247
|
-
}), [v,
|
|
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
|
-
}, []),
|
|
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
|
|
295
|
-
o.push(
|
|
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
|
-
...
|
|
326
|
-
}), [A,
|
|
326
|
+
...s.defaultCsvExportParams ?? {}
|
|
327
|
+
}), [A, s.defaultCsvExportParams]), Me = h(() => ({
|
|
327
328
|
processCellCallback: A,
|
|
328
|
-
...
|
|
329
|
-
}), [A,
|
|
330
|
-
isDragList:
|
|
331
|
-
isListVariant:
|
|
332
|
-
hideColumnHeader:
|
|
333
|
-
dragListColumnDefs:
|
|
334
|
-
dragListGridProps:
|
|
335
|
-
listHeaderGridProps:
|
|
336
|
-
dragPreviewPortal:
|
|
337
|
-
liveRegion:
|
|
338
|
-
} =
|
|
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:
|
|
343
|
+
mergedColumnDefs: Re,
|
|
343
344
|
listRowGradient: le,
|
|
344
345
|
listDragPreview: ie,
|
|
345
|
-
isRowDragDisabled:
|
|
346
|
-
getRowDragHandleLabel:
|
|
347
|
-
canDropRow:
|
|
346
|
+
isRowDragDisabled: ue,
|
|
347
|
+
getRowDragHandleLabel: de,
|
|
348
|
+
canDropRow: pe,
|
|
348
349
|
onRowReorder: se,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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 =
|
|
361
|
-
return /* @__PURE__ */ Pe(
|
|
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:
|
|
368
|
+
ref: F,
|
|
366
369
|
"data-component": "ag-grid-react",
|
|
367
|
-
"data-variant":
|
|
368
|
-
"data-list-drag":
|
|
369
|
-
"data-list-header":
|
|
370
|
-
"data-row-loading":
|
|
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
|
-
...
|
|
378
|
+
...D ? { "--ag-row-height": `${J}px` } : null
|
|
376
379
|
},
|
|
377
380
|
children: /* @__PURE__ */ w(
|
|
378
|
-
|
|
381
|
+
ze,
|
|
379
382
|
{
|
|
380
|
-
theme:
|
|
381
|
-
defaultColDef:
|
|
382
|
-
columnDefs:
|
|
383
|
+
theme: _e,
|
|
384
|
+
defaultColDef: we,
|
|
385
|
+
columnDefs: Le,
|
|
383
386
|
cellSelection: !0,
|
|
384
387
|
defaultColGroupDef: H,
|
|
385
|
-
onGridReady:
|
|
386
|
-
onGridPreDestroyed:
|
|
387
|
-
onFilterChanged:
|
|
388
|
-
onSelectionChanged:
|
|
389
|
-
onModelUpdated:
|
|
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:
|
|
395
|
-
processCellFromClipboard:
|
|
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:
|
|
406
|
+
columnTypes: Ce,
|
|
404
407
|
autoSizeStrategy: T,
|
|
405
|
-
...
|
|
406
|
-
...
|
|
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:
|
|
412
|
-
getMainMenuItems:
|
|
414
|
+
defaultExcelExportParams: Me,
|
|
415
|
+
getMainMenuItems: he
|
|
413
416
|
}
|
|
414
417
|
)
|
|
415
418
|
}
|
|
416
419
|
),
|
|
417
|
-
He,
|
|
418
420
|
je,
|
|
419
|
-
|
|
421
|
+
Oe,
|
|
422
|
+
c,
|
|
420
423
|
/* @__PURE__ */ w(
|
|
421
|
-
|
|
424
|
+
ut,
|
|
422
425
|
{
|
|
423
|
-
isOpen:
|
|
424
|
-
columnId:
|
|
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
|
|
433
|
-
isOpen:
|
|
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 (!
|
|
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 =
|
|
443
|
-
return /* @__PURE__ */ w(
|
|
444
|
-
|
|
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:
|
|
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
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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'];
|