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