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