impact-nova 2.1.0-alpha.9 → 2.2.0
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/cell-renderers/editors/split-cell-editor.js +73 -94
- package/dist/components/data/ag-grid-react/cell-renderers/editors/split-cell-focus.d.ts +53 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/split-cell-focus.js +98 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +15 -13
- package/dist/components/data/ag-grid-react/headers/custom-header.js +56 -58
- package/dist/components/data/ag-grid-react/headers/custom-inner-header-group.d.ts +12 -0
- package/dist/components/data/ag-grid-react/headers/custom-inner-header-group.js +31 -0
- package/dist/components/data/ag-grid-react/headers/header-search-active-state.d.ts +10 -0
- package/dist/components/data/ag-grid-react/headers/header-search-active-state.js +38 -0
- package/dist/components/data/ag-grid-react/index.js +166 -163
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -4
- package/dist/components/data/ag-grid-react/theme.js +0 -2
- package/dist/components/data/data-table/data-table-column-list.js +1 -1
- package/dist/components/data/data-table/data-table-saved-views.js +1 -1
- package/dist/components/data/nested-list/components/SortableItem.d.ts +3 -1
- package/dist/components/data/nested-list/components/SortableItem.js +111 -109
- package/dist/components/data-display/calendar/calendar-footer-emphasis.d.ts +28 -0
- package/dist/components/data-display/calendar/calendar-footer-emphasis.js +8 -0
- package/dist/components/data-display/calendar/calendar-footer.d.ts +4 -1
- package/dist/components/data-display/calendar/calendar-footer.js +60 -38
- package/dist/components/data-display/calendar/calendar.js +86 -82
- package/dist/components/data-display/calendar/calendar.types.d.ts +2 -0
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +3 -0
- package/dist/components/flows/filter-strip/filter-strip.js +36 -29
- package/dist/components/flows/filter-strip/filter-summary.js +2 -2
- package/dist/components/forms/date-picker/date-input-behavior.d.ts +118 -0
- package/dist/components/forms/date-picker/date-input-behavior.js +164 -0
- package/dist/components/forms/date-picker/date-picker.js +202 -138
- package/dist/components/forms/date-picker/date-range-picker.js +302 -215
- package/dist/components/forms/date-picker/month-picker.js +160 -119
- package/dist/components/forms/date-picker/month-range-picker.js +302 -245
- package/dist/components/forms/date-picker/multi-date-picker.js +94 -80
- package/dist/components/forms/date-picker/multi-month-picker.js +97 -83
- package/dist/components/forms/date-picker/multi-week-picker.js +107 -93
- package/dist/components/forms/date-picker/week-picker.js +230 -140
- package/dist/components/forms/date-picker/week-range-picker.js +332 -226
- package/dist/components/forms/file-upload/file-upload.js +312 -174
- package/dist/components/forms/file-upload/file-upload.types.d.ts +17 -2
- package/dist/components/layout/dynamic-layout/dynamic-layout.variants.d.ts +1 -1
- package/dist/components/layout/header/header.js +45 -38
- package/dist/components/layout/horizontal-scroller/index.d.ts +1 -0
- package/dist/components/layout/horizontal-scroller/index.js +3 -2
- package/dist/components/ui/local-raster-icons/assets/excel-error-icon.webp.js +4 -0
- package/dist/components/ui/local-raster-icons/assets/file-upload-error.webp.js +4 -0
- package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +2 -0
- package/dist/components/ui/local-raster-icons/rasterIcons.js +32 -22
- package/dist/components/ui/show.d.ts +10 -0
- package/dist/components/ui/show.js +7 -0
- package/dist/components/ui/show.types.d.ts +5 -0
- package/dist/i18n/defaultMessages.d.ts +17 -0
- package/dist/i18n/defaultMessages.js +29 -17
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +12 -0
- package/dist/i18n/locales/es.js +12 -0
- package/dist/i18n/locales/hi.js +12 -0
- package/dist/i18n/locales/kn.js +12 -0
- package/dist/impact-nova-base.scss +6 -2
- package/dist/impact-nova-components.css +141 -16
- package/dist/impact-nova-tokens.scss +12 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +273 -271
- package/dist/lib/utils.js +40 -24
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +36 -4
- package/dist/theme/tailwind-colors.js +3 -1
- package/package.json +11 -3
- package/tailwind.config.d.ts +3 -0
- package/dist/components/data/ag-grid-react/headers/custom-header-group.d.ts +0 -10
- package/dist/components/data/ag-grid-react/headers/custom-header-group.js +0 -58
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { AllEnterpriseModule as
|
|
5
|
-
import { AgGridReact as
|
|
6
|
-
import { customAgGridTheme as
|
|
7
|
-
import { syncAgGridThemeMode as
|
|
8
|
-
import { CustomHeader as
|
|
9
|
-
import { CustomHeaderGroup as
|
|
1
|
+
import { jsxs as Se, jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as Fe, useRef as S, useState as I, useEffect as q, useCallback as m, useMemo as v, Suspense as Me } from "react";
|
|
3
|
+
import { ModuleRegistry as Ae, AllCommunityModule as Ee, ValidationModule as Ge } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as Re } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as ke } from "ag-grid-react";
|
|
6
|
+
import { customAgGridTheme as we } from "./theme.js";
|
|
7
|
+
import { syncAgGridThemeMode as Ie } from "./sync-ag-grid-theme-mode.js";
|
|
8
|
+
import { CustomHeader as Te } from "./headers/custom-header.js";
|
|
9
|
+
import { CustomHeaderGroup as z } from "./headers/custom-inner-header-group.js";
|
|
10
10
|
import { DefaultTextCellRenderer as je } from "./cell-renderers/default-text-cell-renderer.js";
|
|
11
|
-
import { GridHeaderContext as
|
|
11
|
+
import { GridHeaderContext as He } from "./headers/context/grid-header-context.js";
|
|
12
12
|
import { convertToAgGridFilterModel as Oe, getMultiFilterIndices as Pe, convertFromAgGridFilterModel as De } from "./headers/utils/filter-utils.js";
|
|
13
|
-
import { ColumnSettingsMenu as
|
|
14
|
-
import { AG_GRID_VALUE_FORMATTERS as
|
|
15
|
-
import { useGridAutoSizeStrategyOnResize as
|
|
16
|
-
import { subscribeGridApiEvent as
|
|
17
|
-
import { notifyColumnIndicatorSync as
|
|
13
|
+
import { ColumnSettingsMenu as Le } from "./headers/column-menu/column-settings-menu.js";
|
|
14
|
+
import { AG_GRID_VALUE_FORMATTERS as Ne } from "./value-formatters.js";
|
|
15
|
+
import { useGridAutoSizeStrategyOnResize as _e } from "./useGridAutoSizeStrategyOnResize.js";
|
|
16
|
+
import { subscribeGridApiEvent as pt, subscribeGridApiEvents as mt } from "./grid-api-event-subscription.js";
|
|
17
|
+
import { notifyColumnIndicatorSync as B } from "./notify-column-indicator-sync.js";
|
|
18
|
+
import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as Ve } from "./headers/header-search-active-state.js";
|
|
18
19
|
/* empty css */
|
|
19
|
-
const
|
|
20
|
+
const We = Fe(
|
|
20
21
|
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((l) => ({
|
|
21
22
|
default: l.AdvancedFilterDialog
|
|
22
23
|
}))
|
|
23
24
|
);
|
|
24
|
-
|
|
25
|
-
const F = "",
|
|
26
|
-
function
|
|
25
|
+
Ae.registerModules([Ee, Re, Ge]);
|
|
26
|
+
const F = "", _ = "";
|
|
27
|
+
function J(l) {
|
|
27
28
|
return l.getColumns()?.some((n) => n.getColDef().headerCheckboxSelection) ?? !1;
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const X = (l) => {
|
|
30
31
|
if (!l) return;
|
|
31
32
|
const n = l.cellRendererParams?.splits;
|
|
32
33
|
if (Array.isArray(n) && n.length > 0) return n;
|
|
33
34
|
const i = l.cellEditorParams?.splits;
|
|
34
35
|
if (Array.isArray(i) && i.length > 0) return i;
|
|
35
|
-
},
|
|
36
|
+
}, Q = (l, n) => {
|
|
36
37
|
const i = [];
|
|
37
38
|
for (const g of n) {
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
39
|
+
const f = g?.field?.split(".").pop();
|
|
40
|
+
if (!f) {
|
|
40
41
|
i.push("");
|
|
41
42
|
continue;
|
|
42
43
|
}
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
44
|
+
const a = l[f];
|
|
45
|
+
if (a == null) {
|
|
45
46
|
i.push("");
|
|
46
47
|
continue;
|
|
47
48
|
}
|
|
48
|
-
if (typeof
|
|
49
|
-
const u =
|
|
49
|
+
if (typeof a == "object" && "value" in a) {
|
|
50
|
+
const u = a.value;
|
|
50
51
|
i.push(u == null ? "" : String(u));
|
|
51
52
|
continue;
|
|
52
53
|
}
|
|
53
|
-
if (typeof
|
|
54
|
-
i.push(String(
|
|
54
|
+
if (typeof a != "object") {
|
|
55
|
+
i.push(String(a));
|
|
55
56
|
continue;
|
|
56
57
|
}
|
|
57
58
|
i.push("");
|
|
58
59
|
}
|
|
59
60
|
return i;
|
|
60
|
-
},
|
|
61
|
+
}, Y = (l) => {
|
|
61
62
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
62
|
-
navigator.clipboard.writeText(l).catch(() =>
|
|
63
|
+
navigator.clipboard.writeText(l).catch(() => Z(l));
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
},
|
|
66
|
+
Z(l);
|
|
67
|
+
}, Z = (l) => {
|
|
67
68
|
if (typeof document > "u") return;
|
|
68
69
|
const n = document.createElement("textarea");
|
|
69
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);
|
|
@@ -73,36 +74,36 @@ const B = (l) => {
|
|
|
73
74
|
document.body.removeChild(n);
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
function
|
|
77
|
+
function ct({
|
|
77
78
|
children: l,
|
|
78
79
|
defaultColDef: n,
|
|
79
80
|
defaultColGroupDef: i,
|
|
80
81
|
columnDefs: g,
|
|
81
|
-
valueFormatters:
|
|
82
|
-
onGridReady:
|
|
82
|
+
valueFormatters: f,
|
|
83
|
+
onGridReady: a,
|
|
83
84
|
onGridPreDestroyed: u,
|
|
84
85
|
onFilterChanged: b,
|
|
85
86
|
onSelectionChanged: h,
|
|
86
87
|
onModelUpdated: M,
|
|
87
|
-
ensureDomOrder:
|
|
88
|
-
autoSizeStrategy:
|
|
89
|
-
tooltipShowMode:
|
|
90
|
-
tooltipShowDelay:
|
|
91
|
-
tooltipHideDelay:
|
|
92
|
-
tooltipInteraction:
|
|
93
|
-
themeOverride:
|
|
88
|
+
ensureDomOrder: T = !1,
|
|
89
|
+
autoSizeStrategy: j,
|
|
90
|
+
tooltipShowMode: H = "whenTruncated",
|
|
91
|
+
tooltipShowDelay: O = 500,
|
|
92
|
+
tooltipHideDelay: ee = 5e3,
|
|
93
|
+
tooltipInteraction: te = !0,
|
|
94
|
+
themeOverride: re,
|
|
94
95
|
...C
|
|
95
96
|
}) {
|
|
96
|
-
const
|
|
97
|
-
|
|
97
|
+
const c = S(null), P = S(null), [D, V] = I(null);
|
|
98
|
+
_e(D, P, j), q(() => {
|
|
98
99
|
const e = document.documentElement, t = () => {
|
|
99
|
-
|
|
100
|
+
Ie(e.classList.contains("dark") ? "dark" : "light", e);
|
|
100
101
|
};
|
|
101
102
|
t();
|
|
102
103
|
const o = new MutationObserver(t);
|
|
103
104
|
return o.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => o.disconnect();
|
|
104
105
|
}, []);
|
|
105
|
-
const [
|
|
106
|
+
const [ne, W] = I(!1), [oe, K] = I(null), [le, U] = I(!1), A = S(null), L = S(null), E = S(null), ie = m(() => [], []), se = v(() => ({
|
|
106
107
|
numericColumn: {
|
|
107
108
|
cellClass: "ag-right-aligned-cell",
|
|
108
109
|
headerClass: "ag-right-aligned-header",
|
|
@@ -123,68 +124,68 @@ function it({
|
|
|
123
124
|
dateColumn: {
|
|
124
125
|
filter: "agDateColumnFilter"
|
|
125
126
|
}
|
|
126
|
-
}), []),
|
|
127
|
+
}), []), G = v(() => ({
|
|
127
128
|
openSearch: (e) => {
|
|
128
|
-
if (!
|
|
129
|
-
const t =
|
|
130
|
-
|
|
129
|
+
if (!c.current) return;
|
|
130
|
+
const t = c.current.getGridOption("context") || {};
|
|
131
|
+
c.current.setGridOption("context", { ...t, activeSearchColumnId: e }), N(e), B(c.current);
|
|
131
132
|
},
|
|
132
133
|
closeSearch: () => {
|
|
133
|
-
if (!
|
|
134
|
-
const e =
|
|
135
|
-
|
|
134
|
+
if (!c.current) return;
|
|
135
|
+
const e = c.current.getGridOption("context") || {};
|
|
136
|
+
c.current.setGridOption("context", { ...e, activeSearchColumnId: null }), N(null), B(c.current);
|
|
136
137
|
},
|
|
137
138
|
openAdvancedFilter: (e) => {
|
|
138
|
-
|
|
139
|
+
K(e || null), W(!0);
|
|
139
140
|
},
|
|
140
141
|
closeAdvancedFilter: () => {
|
|
141
|
-
|
|
142
|
+
W(!1), K(null);
|
|
142
143
|
},
|
|
143
144
|
applyAdvancedFilter: (e) => {
|
|
144
|
-
if (!
|
|
145
|
+
if (!c.current) return;
|
|
145
146
|
const t = Oe(e);
|
|
146
|
-
|
|
147
|
+
c.current.setFilterModel(t), c.current.onFilterChanged(), c.current.refreshHeader();
|
|
147
148
|
},
|
|
148
149
|
openMenu: (e, t, o = "column") => {
|
|
149
|
-
|
|
150
|
+
A.current = e, L.current = t, E.current = o, U(!0);
|
|
150
151
|
},
|
|
151
152
|
closeMenu: () => {
|
|
152
|
-
|
|
153
|
+
A.current = null, L.current = null, E.current = null, U(!1);
|
|
153
154
|
},
|
|
154
155
|
// Getters read from refs - O(1) per header, no memory allocation
|
|
155
156
|
get activeMenuColumnId() {
|
|
156
|
-
return
|
|
157
|
+
return A.current;
|
|
157
158
|
},
|
|
158
159
|
get activeMenuVariant() {
|
|
159
|
-
return
|
|
160
|
+
return E.current;
|
|
160
161
|
}
|
|
161
|
-
}), []),
|
|
162
|
-
|
|
162
|
+
}), []), ae = m((e) => {
|
|
163
|
+
c.current = e.api, V(e.api);
|
|
163
164
|
const t = e.api.getGridOption("context") || {};
|
|
164
|
-
e.api.setGridOption("context", { ...t, activeSearchColumnId: null }),
|
|
165
|
-
}, [
|
|
165
|
+
e.api.setGridOption("context", { ...t, activeSearchColumnId: null }), N(null), a && a(e);
|
|
166
|
+
}, [a]), ce = m(
|
|
166
167
|
(e) => {
|
|
167
|
-
|
|
168
|
+
c.current = null, V(null), Ve(), u?.(e);
|
|
168
169
|
},
|
|
169
170
|
[u]
|
|
170
|
-
),
|
|
171
|
+
), ue = m(
|
|
171
172
|
(e) => {
|
|
172
173
|
e.api.getGridOption("context")?.activeSearchColumnId || e.api.refreshHeader(), b?.(e);
|
|
173
174
|
},
|
|
174
175
|
[b]
|
|
175
|
-
),
|
|
176
|
+
), de = m(
|
|
176
177
|
(e) => {
|
|
177
|
-
|
|
178
|
+
J(e.api) && e.api.refreshHeader(), h?.(e);
|
|
178
179
|
},
|
|
179
180
|
[h]
|
|
180
|
-
),
|
|
181
|
+
), pe = m(
|
|
181
182
|
(e) => {
|
|
182
|
-
e.api.getGridOption("rowModelType") !== "serverSide" &&
|
|
183
|
+
e.api.getGridOption("rowModelType") !== "serverSide" && J(e.api) && e.api.refreshHeader(), M?.(e);
|
|
183
184
|
},
|
|
184
185
|
[M]
|
|
185
186
|
);
|
|
186
|
-
|
|
187
|
-
const e =
|
|
187
|
+
q(() => {
|
|
188
|
+
const e = P.current;
|
|
188
189
|
if (!e) return;
|
|
189
190
|
const t = (o) => {
|
|
190
191
|
if (o.key !== "Enter" && o.key !== " ") return;
|
|
@@ -197,8 +198,8 @@ function it({
|
|
|
197
198
|
};
|
|
198
199
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
199
200
|
}, []);
|
|
200
|
-
const
|
|
201
|
-
headerComponent:
|
|
201
|
+
const me = v(() => ({
|
|
202
|
+
headerComponent: Te,
|
|
202
203
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
203
204
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
204
205
|
// anonymous flex text nodes, but works on flex child elements).
|
|
@@ -221,34 +222,36 @@ function it({
|
|
|
221
222
|
headerComponentParams: {
|
|
222
223
|
...n?.headerComponentParams
|
|
223
224
|
}
|
|
224
|
-
}), [n]),
|
|
225
|
-
headerGroupComponent: Te,
|
|
225
|
+
}), [n]), fe = v(() => ({
|
|
226
226
|
...i,
|
|
227
227
|
headerGroupComponentParams: {
|
|
228
|
-
...i?.headerGroupComponentParams
|
|
228
|
+
...i?.headerGroupComponentParams,
|
|
229
|
+
innerHeaderGroupComponent: i?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
229
230
|
}
|
|
230
|
-
}), [i]),
|
|
231
|
-
...
|
|
231
|
+
}), [i]), ge = v(() => ({
|
|
232
|
+
...Ne,
|
|
232
233
|
// Always available - value formatters
|
|
234
|
+
CustomInnerHeaderGroup: z,
|
|
235
|
+
CustomHeaderGroup: z,
|
|
233
236
|
...C.components,
|
|
234
237
|
// User components override
|
|
235
|
-
...
|
|
238
|
+
...f
|
|
236
239
|
// Optional custom formatters override defaults
|
|
237
|
-
}), [
|
|
240
|
+
}), [f, C.components]), he = m((e) => {
|
|
238
241
|
const t = e.value;
|
|
239
242
|
if (t == null || typeof t != "object") return t;
|
|
240
|
-
const o =
|
|
243
|
+
const o = X(e.column?.getColDef());
|
|
241
244
|
if (o && o.length > 0) {
|
|
242
|
-
const r =
|
|
245
|
+
const r = Q(t, o);
|
|
243
246
|
if (o.length === 1) {
|
|
244
247
|
const d = o[0]?.field?.split(".").pop(), x = d ? t[d] : void 0;
|
|
245
248
|
return x && typeof x == "object" && "value" in x ? x.value ?? "" : r[0];
|
|
246
249
|
}
|
|
247
|
-
return
|
|
250
|
+
return _ + r.join(F);
|
|
248
251
|
}
|
|
249
252
|
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);
|
|
250
253
|
return s.length === 0 ? "" : s.length === 1 ? s[0] : s.join(F);
|
|
251
|
-
}, []),
|
|
254
|
+
}, []), Ce = m((e) => {
|
|
252
255
|
if (typeof e.value == "string") {
|
|
253
256
|
const t = e.value.trim();
|
|
254
257
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -259,10 +262,10 @@ function it({
|
|
|
259
262
|
}
|
|
260
263
|
}
|
|
261
264
|
return e.value;
|
|
262
|
-
}, []),
|
|
265
|
+
}, []), ve = m((e) => {
|
|
263
266
|
const t = e?.data ?? "";
|
|
264
|
-
if (!t.includes(F) && !t.includes(
|
|
265
|
-
|
|
267
|
+
if (!t.includes(F) && !t.includes(_)) {
|
|
268
|
+
Y(t);
|
|
266
269
|
return;
|
|
267
270
|
}
|
|
268
271
|
const o = [], s = t.split(`
|
|
@@ -273,25 +276,25 @@ function it({
|
|
|
273
276
|
o.push("");
|
|
274
277
|
continue;
|
|
275
278
|
}
|
|
276
|
-
const k = d.split(" ").map((p) => p.startsWith(
|
|
277
|
-
if (
|
|
279
|
+
const k = d.split(" ").map((p) => p.startsWith(_) ? { isSplit: !0, slots: p.slice(1).split(F) } : { isSplit: !1, slots: p.split(F) }), $ = Math.max(1, ...k.map((p) => p.slots.length));
|
|
280
|
+
if ($ === 1) {
|
|
278
281
|
o.push(k.map((p) => p.slots[0] ?? "").join(" "));
|
|
279
282
|
continue;
|
|
280
283
|
}
|
|
281
|
-
for (let p = 0; p <
|
|
282
|
-
const
|
|
283
|
-
o.push(
|
|
284
|
+
for (let p = 0; p < $; p++) {
|
|
285
|
+
const xe = k.map((w) => !w.isSplit && w.slots.length === 1 ? w.slots[0] : w.slots[p] ?? "");
|
|
286
|
+
o.push(xe.join(" "));
|
|
284
287
|
}
|
|
285
288
|
}
|
|
286
|
-
|
|
289
|
+
Y(o.join(`
|
|
287
290
|
`));
|
|
288
|
-
}, []),
|
|
291
|
+
}, []), R = m((e) => {
|
|
289
292
|
const t = e.value;
|
|
290
293
|
if (t == null) return "";
|
|
291
294
|
if (typeof t != "object") return String(t);
|
|
292
|
-
const o =
|
|
295
|
+
const o = X(e.column?.getColDef());
|
|
293
296
|
if (o && o.length > 0) {
|
|
294
|
-
const r =
|
|
297
|
+
const r = Q(t, o);
|
|
295
298
|
return o.length === 1 ? r[0] : r.join(`
|
|
296
299
|
`);
|
|
297
300
|
}
|
|
@@ -307,122 +310,122 @@ function it({
|
|
|
307
310
|
}
|
|
308
311
|
return s.length === 0 ? "" : s.length === 1 ? s[0] : s.join(`
|
|
309
312
|
`);
|
|
310
|
-
}, []),
|
|
311
|
-
processCellCallback:
|
|
313
|
+
}, []), ye = v(() => ({
|
|
314
|
+
processCellCallback: R,
|
|
312
315
|
...C.defaultCsvExportParams ?? {}
|
|
313
|
-
}), [
|
|
314
|
-
processCellCallback:
|
|
316
|
+
}), [R, C.defaultCsvExportParams]), be = v(() => ({
|
|
317
|
+
processCellCallback: R,
|
|
315
318
|
...C.defaultExcelExportParams ?? {}
|
|
316
|
-
}), [
|
|
317
|
-
return /* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
|
|
319
|
+
}), [R, C.defaultExcelExportParams]);
|
|
320
|
+
return /* @__PURE__ */ Se(He.Provider, { value: G, children: [
|
|
321
|
+
/* @__PURE__ */ y("div", { ref: P, "data-component": "ag-grid-react", style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ y(
|
|
322
|
+
ke,
|
|
320
323
|
{
|
|
321
|
-
theme:
|
|
322
|
-
defaultColDef:
|
|
324
|
+
theme: re ?? we,
|
|
325
|
+
defaultColDef: me,
|
|
323
326
|
columnDefs: g,
|
|
324
327
|
cellSelection: !0,
|
|
325
|
-
defaultColGroupDef:
|
|
326
|
-
onGridReady:
|
|
327
|
-
onGridPreDestroyed:
|
|
328
|
-
onFilterChanged:
|
|
329
|
-
onSelectionChanged:
|
|
330
|
-
onModelUpdated:
|
|
331
|
-
components:
|
|
332
|
-
tooltipShowMode:
|
|
333
|
-
tooltipShowDelay:
|
|
334
|
-
tooltipHideDelay:
|
|
335
|
-
tooltipInteraction:
|
|
336
|
-
processCellForClipboard:
|
|
337
|
-
processCellFromClipboard:
|
|
338
|
-
sendToClipboard:
|
|
339
|
-
ensureDomOrder:
|
|
328
|
+
defaultColGroupDef: fe,
|
|
329
|
+
onGridReady: ae,
|
|
330
|
+
onGridPreDestroyed: ce,
|
|
331
|
+
onFilterChanged: ue,
|
|
332
|
+
onSelectionChanged: de,
|
|
333
|
+
onModelUpdated: pe,
|
|
334
|
+
components: ge,
|
|
335
|
+
tooltipShowMode: H,
|
|
336
|
+
tooltipShowDelay: O,
|
|
337
|
+
tooltipHideDelay: ee,
|
|
338
|
+
tooltipInteraction: te,
|
|
339
|
+
processCellForClipboard: he,
|
|
340
|
+
processCellFromClipboard: Ce,
|
|
341
|
+
sendToClipboard: ve,
|
|
342
|
+
ensureDomOrder: T,
|
|
340
343
|
suppressHeaderFocus: !1,
|
|
341
344
|
suppressFocusAfterRefresh: !0,
|
|
342
345
|
suppressGroupRowsSticky: !0,
|
|
343
346
|
hidePaddedHeaderRows: !0,
|
|
344
347
|
suppressServerSideFullWidthLoadingRow: !0,
|
|
345
|
-
columnTypes:
|
|
346
|
-
autoSizeStrategy:
|
|
348
|
+
columnTypes: se,
|
|
349
|
+
autoSizeStrategy: j,
|
|
347
350
|
...C,
|
|
348
|
-
defaultCsvExportParams:
|
|
349
|
-
defaultExcelExportParams:
|
|
350
|
-
getMainMenuItems:
|
|
351
|
+
defaultCsvExportParams: ye,
|
|
352
|
+
defaultExcelExportParams: be,
|
|
353
|
+
getMainMenuItems: ie
|
|
351
354
|
}
|
|
352
355
|
) }),
|
|
353
356
|
l,
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
|
|
357
|
+
/* @__PURE__ */ y(
|
|
358
|
+
Ke,
|
|
356
359
|
{
|
|
357
|
-
isOpen:
|
|
358
|
-
columnId:
|
|
359
|
-
gridApi:
|
|
360
|
-
onClose:
|
|
361
|
-
onApply:
|
|
360
|
+
isOpen: ne,
|
|
361
|
+
columnId: oe,
|
|
362
|
+
gridApi: D,
|
|
363
|
+
onClose: G.closeAdvancedFilter,
|
|
364
|
+
onApply: G.applyAdvancedFilter
|
|
362
365
|
}
|
|
363
366
|
),
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
-
|
|
367
|
+
/* @__PURE__ */ y(
|
|
368
|
+
Ue,
|
|
366
369
|
{
|
|
367
|
-
isOpen:
|
|
368
|
-
columnId:
|
|
369
|
-
gridApi:
|
|
370
|
+
isOpen: le,
|
|
371
|
+
columnId: A.current,
|
|
372
|
+
gridApi: D,
|
|
370
373
|
anchor: L.current,
|
|
371
|
-
variant:
|
|
372
|
-
onClose:
|
|
374
|
+
variant: E.current,
|
|
375
|
+
onClose: G.closeMenu
|
|
373
376
|
}
|
|
374
377
|
)
|
|
375
378
|
] });
|
|
376
379
|
}
|
|
377
|
-
function
|
|
380
|
+
function Ke({
|
|
378
381
|
isOpen: l,
|
|
379
382
|
columnId: n,
|
|
380
383
|
gridApi: i,
|
|
381
384
|
onClose: g,
|
|
382
|
-
onApply:
|
|
385
|
+
onApply: f
|
|
383
386
|
}) {
|
|
384
387
|
if (!l || !n || !i) return null;
|
|
385
|
-
const
|
|
386
|
-
if (!
|
|
387
|
-
const u =
|
|
388
|
-
return /* @__PURE__ */
|
|
389
|
-
|
|
388
|
+
const a = i.getColumn(n);
|
|
389
|
+
if (!a) return null;
|
|
390
|
+
const u = a.getColDef(), b = u.headerComponentParams, h = Pe(u), M = h.text !== -1 || h.number !== -1 || h.date !== -1, T = h.set !== -1, H = u.filter === "agMultiColumnFilter" && (M || T) ? "multi" : u.filter === "agNumberColumnFilter" ? "number" : u.filter === "agDateColumnFilter" ? "date" : u.filter === "agSetColumnFilter" || b?.selectOptions ? "select" : "text", O = De(i.getFilterModel());
|
|
391
|
+
return /* @__PURE__ */ y(Me, { fallback: null, children: /* @__PURE__ */ y(
|
|
392
|
+
We,
|
|
390
393
|
{
|
|
391
394
|
isOpen: l,
|
|
392
395
|
onClose: g,
|
|
393
|
-
onApply:
|
|
396
|
+
onApply: f,
|
|
394
397
|
columnId: n,
|
|
395
398
|
columnLabel: u.headerName || n,
|
|
396
|
-
columnType:
|
|
399
|
+
columnType: H,
|
|
397
400
|
selectOptions: b?.selectOptions,
|
|
398
401
|
isMultiSelect: b?.isMultiSelect,
|
|
399
|
-
initialModel:
|
|
402
|
+
initialModel: O,
|
|
400
403
|
api: i
|
|
401
404
|
}
|
|
402
405
|
) });
|
|
403
406
|
}
|
|
404
|
-
function
|
|
407
|
+
function Ue({
|
|
405
408
|
isOpen: l,
|
|
406
409
|
columnId: n,
|
|
407
410
|
gridApi: i,
|
|
408
411
|
anchor: g,
|
|
409
|
-
variant:
|
|
410
|
-
onClose:
|
|
412
|
+
variant: f,
|
|
413
|
+
onClose: a
|
|
411
414
|
}) {
|
|
412
|
-
return !l || !n || !i ? null : /* @__PURE__ */
|
|
413
|
-
|
|
415
|
+
return !l || !n || !i ? null : /* @__PURE__ */ y(
|
|
416
|
+
Le,
|
|
414
417
|
{
|
|
415
418
|
isOpen: l,
|
|
416
419
|
columnId: n,
|
|
417
420
|
gridApi: i,
|
|
418
421
|
anchor: g,
|
|
419
|
-
variant:
|
|
420
|
-
onClose:
|
|
422
|
+
variant: f || "column",
|
|
423
|
+
onClose: a
|
|
421
424
|
}
|
|
422
425
|
);
|
|
423
426
|
}
|
|
424
427
|
export {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
+
ct as AgGridWrapper,
|
|
429
|
+
pt as subscribeGridApiEvent,
|
|
430
|
+
mt as subscribeGridApiEvents
|
|
428
431
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GridApi } from 'ag-grid-community';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* which would refetch SSRM rows when the filter model is unchanged.
|
|
3
|
+
* Opening/closing inline header search updates grid context and the column-scoped
|
|
4
|
+
* header search store. Notify column-list listeners via the indicator bus — NOT
|
|
5
|
+
* `onFilterChanged`, which would refetch SSRM rows when the filter model is unchanged.
|
|
7
6
|
*/
|
|
8
7
|
export declare function notifyColumnIndicatorSync<TData = unknown>(gridApi: GridApi<TData>): void;
|
|
@@ -37,7 +37,6 @@ const d = e.withPart(o).withParams({
|
|
|
37
37
|
columnBorder: !0,
|
|
38
38
|
columnDropCellBorder: !0,
|
|
39
39
|
fontFamily: "inherit",
|
|
40
|
-
fontWeight: "inherit",
|
|
41
40
|
footerRowBorder: !0,
|
|
42
41
|
headerColumnBorder: !0,
|
|
43
42
|
headerFontFamily: "inherit",
|
|
@@ -97,7 +96,6 @@ const d = e.withPart(o).withParams({
|
|
|
97
96
|
columnBorder: !0,
|
|
98
97
|
columnDropCellBorder: !0,
|
|
99
98
|
fontFamily: "inherit",
|
|
100
|
-
fontWeight: "inherit",
|
|
101
99
|
footerRowBorder: !0,
|
|
102
100
|
headerColumnBorder: !0,
|
|
103
101
|
headerFontFamily: "inherit",
|
|
@@ -35,7 +35,7 @@ const Q = ({
|
|
|
35
35
|
(e, r) => {
|
|
36
36
|
if (!r.isLeaf) return null;
|
|
37
37
|
const l = e.data;
|
|
38
|
-
return !l?.hasSortApplied && !l?.hasFilterApplied ? null : /* @__PURE__ */ A("span", { className: "inline-flex items-center gap-1
|
|
38
|
+
return !l?.hasSortApplied && !l?.hasFilterApplied ? null : /* @__PURE__ */ A("span", { className: "inline-flex items-center gap-1 shrink-0", children: [
|
|
39
39
|
l?.hasSortApplied && /* @__PURE__ */ n(c, { type: "sort" }),
|
|
40
40
|
l?.hasFilterApplied && /* @__PURE__ */ n(c, { type: "filter" })
|
|
41
41
|
] });
|
|
@@ -196,7 +196,7 @@ const Ae = ["default", "active", "system"], _e = ({
|
|
|
196
196
|
{
|
|
197
197
|
"data-component": "data-table-saved-views",
|
|
198
198
|
className: k(
|
|
199
|
-
"mb-2 mx-4 flex min-w-0 flex-nowrap items-center justify-between gap-2 rounded-lg
|
|
199
|
+
"saved-view-bar-gradient mb-2 mx-4 flex min-w-0 flex-nowrap items-center justify-between gap-2 rounded-lg px-2 py-3",
|
|
200
200
|
re
|
|
201
201
|
),
|
|
202
202
|
children: [
|
|
@@ -25,5 +25,7 @@ interface SortableItemProps {
|
|
|
25
25
|
level: number;
|
|
26
26
|
}) => React.ReactNode;
|
|
27
27
|
}
|
|
28
|
+
declare const LEADING_RAIL_CLASS = "flex shrink-0 items-center h-5 gap-0.5";
|
|
29
|
+
declare const DRAG_HANDLE_CLASS = "flex h-5 w-5 shrink-0 cursor-grab active:cursor-grabbing items-center justify-center rounded-sm text-content-icon transition-colors hover:bg-canvas-muted hover:text-content";
|
|
30
|
+
export { LEADING_RAIL_CLASS, DRAG_HANDLE_CLASS };
|
|
28
31
|
export declare const SortableItem: React.NamedExoticComponent<SortableItemProps>;
|
|
29
|
-
export {};
|