impact-nova 3.0.0-alpha.18 → 3.0.0-alpha.19
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 +6 -0
- package/dist/components/data/ag-grid-react/headers/custom-header.js +56 -56
- package/dist/components/data/ag-grid-react/index.d.ts +2 -1
- package/dist/components/data/ag-grid-react/index.js +307 -291
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +6 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +57 -51
- package/dist/components/flows/iris-chat/iris-chat-composer.js +213 -184
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +23 -10
- package/dist/components/flows/iris-chat/iris-chat.variants.js +4 -4
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/primitives/tabs/tabs.js +64 -51
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +2 -0
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- 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,267 +1,282 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
12
|
-
import { CustomHeaderGroup as
|
|
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
|
|
1
|
+
import { jsxs as We, jsx as G } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as Ke, useRef as V, useState as W, useId as $e, useEffect as K, useCallback as m, useMemo as g, Suspense as Ue } from "react";
|
|
3
|
+
import { ModuleRegistry as ze, AllCommunityModule as qe } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as Xe } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as Je } from "ag-grid-react";
|
|
6
|
+
import { useAgGridDragList as Ze } from "./use-ag-grid-list-drag.js";
|
|
7
|
+
import { customAgGridTheme as Be } from "./theme.js";
|
|
8
|
+
import { AG_GRID_LIST_ROW_HEIGHT_PX as Qe, customAgGridListTheme as Ye } from "./ag-grid-list.js";
|
|
9
|
+
import { AG_GRID_LIST_RANK_GRADIENT as Pt } from "./ag-grid-list.js";
|
|
10
|
+
import { syncAgGridThemeMode as et } from "./sync-ag-grid-theme-mode.js";
|
|
11
|
+
import { CustomHeader as tt } from "./headers/custom-header.js";
|
|
12
|
+
import { CustomHeaderGroup as Y } from "./headers/custom-inner-header-group.js";
|
|
13
|
+
import { mergeColumnGroupDefsWithDefault as rt } from "./merge-column-group-defs.js";
|
|
14
|
+
import { DefaultTextCellRenderer as ot } from "./cell-renderers/default-text-cell-renderer.js";
|
|
15
|
+
import { GridHeaderContext as nt } from "./headers/context/grid-header-context.js";
|
|
16
|
+
import { convertToAgGridFilterModel as it, getMultiFilterIndices as lt, convertFromAgGridFilterModel as st } from "./headers/utils/filter-utils.js";
|
|
17
|
+
import { AG_GRID_VALUE_FORMATTERS as at } from "./value-formatters.js";
|
|
18
|
+
import { useGridAutoSizeStrategyOnResize as ct } from "./useGridAutoSizeStrategyOnResize.js";
|
|
19
|
+
import { subscribeGridApiEvent as Vt, subscribeGridApiEvents as Wt } from "./grid-api-event-subscription.js";
|
|
20
|
+
import { notifyColumnIndicatorSync as I } from "./notify-column-indicator-sync.js";
|
|
21
|
+
import { setActiveSearchColumnId as $, clearHeaderSearchActiveState as ut } from "./headers/header-search-active-state.js";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
23
|
+
import { readNumericColumnTypeConfig as dt, normalizeColumnDefsNumericHeaderAlignment as pt } from "./numeric-column-header-alignment.js";
|
|
24
|
+
import { useAgGridTruncationTooltip as $t } from "./use-ag-grid-truncation-tooltip.js";
|
|
25
|
+
import { useListRowDropZones as zt } from "./use-list-row-drop-zones.js";
|
|
26
|
+
import { isAgGridHeaderLabelTooltipOverflowing as Xt, isAgGridTextOverflowing as Jt } from "./ag-grid-tooltip-overflow.js";
|
|
27
|
+
const ft = Ke(
|
|
27
28
|
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
|
|
28
29
|
default: c.AdvancedFilterDialog
|
|
29
30
|
}))
|
|
30
31
|
);
|
|
31
|
-
|
|
32
|
-
const
|
|
32
|
+
ze.registerModules([qe, Xe]);
|
|
33
|
+
const R = "", U = "", ee = (c) => {
|
|
33
34
|
if (!c) return;
|
|
34
|
-
const
|
|
35
|
-
if (Array.isArray(
|
|
36
|
-
const
|
|
37
|
-
if (Array.isArray(
|
|
38
|
-
},
|
|
39
|
-
const
|
|
40
|
-
for (const C of
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
|
|
35
|
+
const o = c.cellRendererParams?.splits;
|
|
36
|
+
if (Array.isArray(o) && o.length > 0) return o;
|
|
37
|
+
const s = c.cellEditorParams?.splits;
|
|
38
|
+
if (Array.isArray(s) && s.length > 0) return s;
|
|
39
|
+
}, te = (c, o) => {
|
|
40
|
+
const s = [];
|
|
41
|
+
for (const C of o) {
|
|
42
|
+
const y = C?.field?.split(".").pop();
|
|
43
|
+
if (!y) {
|
|
44
|
+
s.push("");
|
|
44
45
|
continue;
|
|
45
46
|
}
|
|
46
|
-
const d = c[
|
|
47
|
+
const d = c[y];
|
|
47
48
|
if (d == null) {
|
|
48
|
-
|
|
49
|
+
s.push("");
|
|
49
50
|
continue;
|
|
50
51
|
}
|
|
51
52
|
if (typeof d == "object" && "value" in d) {
|
|
52
53
|
const p = d.value;
|
|
53
|
-
|
|
54
|
+
s.push(p == null ? "" : String(p));
|
|
54
55
|
continue;
|
|
55
56
|
}
|
|
56
57
|
if (typeof d != "object") {
|
|
57
|
-
|
|
58
|
+
s.push(String(d));
|
|
58
59
|
continue;
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
+
s.push("");
|
|
61
62
|
}
|
|
62
|
-
return
|
|
63
|
-
},
|
|
63
|
+
return s;
|
|
64
|
+
}, re = (c) => {
|
|
64
65
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
65
|
-
navigator.clipboard.writeText(c).catch(() =>
|
|
66
|
+
navigator.clipboard.writeText(c).catch(() => oe(c));
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
68
|
-
|
|
69
|
-
},
|
|
69
|
+
oe(c);
|
|
70
|
+
}, oe = (c) => {
|
|
70
71
|
if (typeof document > "u") return;
|
|
71
|
-
const
|
|
72
|
-
|
|
72
|
+
const o = document.createElement("textarea");
|
|
73
|
+
o.value = c, 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);
|
|
73
74
|
try {
|
|
74
|
-
|
|
75
|
+
o.select(), document.execCommand("copy");
|
|
75
76
|
} finally {
|
|
76
|
-
document.body.removeChild(
|
|
77
|
+
document.body.removeChild(o);
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
|
-
function
|
|
80
|
+
function Ot({
|
|
80
81
|
children: c,
|
|
81
|
-
defaultColDef:
|
|
82
|
-
defaultColGroupDef:
|
|
82
|
+
defaultColDef: o,
|
|
83
|
+
defaultColGroupDef: s,
|
|
83
84
|
columnDefs: C,
|
|
84
|
-
valueFormatters:
|
|
85
|
+
valueFormatters: y,
|
|
85
86
|
onGridReady: d,
|
|
86
87
|
onGridPreDestroyed: p,
|
|
87
|
-
onFilterChanged:
|
|
88
|
-
onSelectionChanged:
|
|
89
|
-
onModelUpdated:
|
|
90
|
-
ensureDomOrder:
|
|
91
|
-
autoSizeStrategy:
|
|
92
|
-
tooltipShowMode:
|
|
93
|
-
tooltipShowDelay:
|
|
94
|
-
tooltipHideDelay:
|
|
95
|
-
tooltipInteraction:
|
|
96
|
-
themeOverride:
|
|
97
|
-
variant:
|
|
98
|
-
listRowGradient:
|
|
99
|
-
listDragPreview:
|
|
100
|
-
listHeader:
|
|
101
|
-
onRowReorder:
|
|
102
|
-
onRowMoveBeyondEdge:
|
|
103
|
-
isRowDragDisabled:
|
|
104
|
-
getRowDragHandleLabel:
|
|
105
|
-
canDropRow:
|
|
106
|
-
rowLoading:
|
|
107
|
-
|
|
108
|
-
|
|
88
|
+
onFilterChanged: w,
|
|
89
|
+
onSelectionChanged: x,
|
|
90
|
+
onModelUpdated: D,
|
|
91
|
+
ensureDomOrder: L = !1,
|
|
92
|
+
autoSizeStrategy: k,
|
|
93
|
+
tooltipShowMode: j = "whenTruncated",
|
|
94
|
+
tooltipShowDelay: O = 500,
|
|
95
|
+
tooltipHideDelay: ne = 5e3,
|
|
96
|
+
tooltipInteraction: ie = !0,
|
|
97
|
+
themeOverride: le,
|
|
98
|
+
variant: z = "table",
|
|
99
|
+
listRowGradient: se,
|
|
100
|
+
listDragPreview: ae,
|
|
101
|
+
listHeader: ce = "columns",
|
|
102
|
+
onRowReorder: ue,
|
|
103
|
+
onRowMoveBeyondEdge: de,
|
|
104
|
+
isRowDragDisabled: pe,
|
|
105
|
+
getRowDragHandleLabel: fe,
|
|
106
|
+
canDropRow: me,
|
|
107
|
+
rowLoading: ge = !1,
|
|
108
|
+
numericColumnHeaderAlignment: h = "right",
|
|
109
|
+
className: q,
|
|
110
|
+
...a
|
|
109
111
|
}) {
|
|
110
|
-
const u =
|
|
111
|
-
|
|
112
|
+
const u = V(null), E = V(null), [b, X] = W(null), J = $e(), S = V(J);
|
|
113
|
+
S.current = J, ct(b, E, k), K(() => {
|
|
112
114
|
const e = document.documentElement, t = () => {
|
|
113
|
-
|
|
115
|
+
et(e.classList.contains("dark") ? "dark" : "light", e);
|
|
114
116
|
};
|
|
115
117
|
t();
|
|
116
|
-
const
|
|
117
|
-
return
|
|
118
|
+
const n = new MutationObserver(t);
|
|
119
|
+
return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
|
|
118
120
|
}, []);
|
|
119
|
-
const [
|
|
121
|
+
const [he, Z] = W(!1), [ve, B] = W(null), Ce = m(() => [], []), F = g(
|
|
122
|
+
() => dt(h),
|
|
123
|
+
[h]
|
|
124
|
+
), ye = g(() => ({
|
|
120
125
|
numericColumn: {
|
|
121
|
-
|
|
122
|
-
headerClass: "ag-right-aligned-header",
|
|
123
|
-
filter: "agNumberColumnFilter"
|
|
126
|
+
...F
|
|
124
127
|
},
|
|
125
128
|
currency: {
|
|
126
|
-
|
|
127
|
-
headerClass: "ag-right-aligned-header",
|
|
128
|
-
filter: "agNumberColumnFilter",
|
|
129
|
+
...F,
|
|
129
130
|
valueFormatter: (e) => e.value != null ? `$${Number(e.value).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : ""
|
|
130
131
|
},
|
|
131
132
|
percentage: {
|
|
132
|
-
|
|
133
|
-
headerClass: "ag-right-aligned-header",
|
|
134
|
-
filter: "agNumberColumnFilter",
|
|
133
|
+
...F,
|
|
135
134
|
valueFormatter: (e) => e.value != null ? `${Number(e.value).toFixed(2)}%` : ""
|
|
136
135
|
},
|
|
137
136
|
dateColumn: {
|
|
138
137
|
filter: "agDateColumnFilter"
|
|
139
138
|
}
|
|
140
|
-
}), []),
|
|
141
|
-
gridScopeId:
|
|
139
|
+
}), [F]), H = g(() => ({
|
|
140
|
+
gridScopeId: S.current,
|
|
142
141
|
openSearch: (e) => {
|
|
143
142
|
if (!u.current) return;
|
|
144
143
|
const t = u.current.getGridOption("context") || {};
|
|
145
|
-
u.current.setGridOption("context", { ...t, activeSearchColumnId: e }),
|
|
144
|
+
u.current.setGridOption("context", { ...t, activeSearchColumnId: e }), $(S.current, e), I(u.current);
|
|
146
145
|
},
|
|
147
146
|
closeSearch: () => {
|
|
148
147
|
if (!u.current) return;
|
|
149
148
|
const e = u.current.getGridOption("context") || {};
|
|
150
|
-
u.current.setGridOption("context", { ...e, activeSearchColumnId: null }),
|
|
149
|
+
u.current.setGridOption("context", { ...e, activeSearchColumnId: null }), $(S.current, null), I(u.current);
|
|
151
150
|
},
|
|
152
151
|
openAdvancedFilter: (e) => {
|
|
153
|
-
|
|
152
|
+
B(e || null), Z(!0);
|
|
154
153
|
},
|
|
155
154
|
closeAdvancedFilter: () => {
|
|
156
|
-
|
|
155
|
+
Z(!1), B(null);
|
|
157
156
|
},
|
|
158
157
|
applyAdvancedFilter: (e) => {
|
|
159
158
|
if (!u.current) return;
|
|
160
|
-
const t =
|
|
161
|
-
u.current.setFilterModel(t), u.current.onFilterChanged(),
|
|
159
|
+
const t = it(e);
|
|
160
|
+
u.current.setFilterModel(t), u.current.onFilterChanged(), I(u.current);
|
|
162
161
|
}
|
|
163
|
-
}), []),
|
|
164
|
-
u.current = e.api,
|
|
162
|
+
}), []), xe = m((e) => {
|
|
163
|
+
u.current = e.api, X(e.api);
|
|
165
164
|
const t = e.api.getGridOption("context") || {};
|
|
166
165
|
e.api.setGridOption("context", {
|
|
167
166
|
...t,
|
|
168
167
|
activeSearchColumnId: null,
|
|
169
|
-
headerSearchScopeId:
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
headerSearchScopeId: S.current,
|
|
169
|
+
numericColumnHeaderAlignment: h
|
|
170
|
+
}), $(S.current, null), d && d(e);
|
|
171
|
+
}, [h, d]);
|
|
172
|
+
K(() => {
|
|
173
|
+
if (!b) return;
|
|
174
|
+
const e = b.getGridOption("context") || {};
|
|
175
|
+
b.setGridOption("context", {
|
|
176
|
+
...e,
|
|
177
|
+
numericColumnHeaderAlignment: h
|
|
178
|
+
}), b.refreshHeader();
|
|
179
|
+
}, [b, h]);
|
|
180
|
+
const be = m(
|
|
172
181
|
(e) => {
|
|
173
|
-
|
|
182
|
+
ut(S.current), u.current = null, X(null), p?.(e);
|
|
174
183
|
},
|
|
175
184
|
[p]
|
|
176
|
-
),
|
|
185
|
+
), Se = m(
|
|
177
186
|
(e) => {
|
|
178
|
-
|
|
187
|
+
I(e.api), w?.(e);
|
|
179
188
|
},
|
|
180
|
-
[
|
|
181
|
-
),
|
|
189
|
+
[w]
|
|
190
|
+
), we = m(
|
|
182
191
|
(e) => {
|
|
183
|
-
|
|
192
|
+
x?.(e);
|
|
184
193
|
},
|
|
185
|
-
[
|
|
186
|
-
),
|
|
194
|
+
[x]
|
|
195
|
+
), Re = m(
|
|
187
196
|
(e) => {
|
|
188
|
-
|
|
197
|
+
D?.(e);
|
|
189
198
|
},
|
|
190
|
-
[
|
|
199
|
+
[D]
|
|
191
200
|
);
|
|
192
|
-
|
|
193
|
-
const e =
|
|
201
|
+
K(() => {
|
|
202
|
+
const e = E.current;
|
|
194
203
|
if (!e) return;
|
|
195
|
-
const t = (
|
|
196
|
-
if (
|
|
197
|
-
const
|
|
198
|
-
if (!
|
|
199
|
-
const r =
|
|
204
|
+
const t = (n) => {
|
|
205
|
+
if (n.key !== "Enter" && n.key !== " ") return;
|
|
206
|
+
const l = n.target;
|
|
207
|
+
if (!l.classList.contains("ag-cell") && !l.classList.contains("ag-header-cell")) return;
|
|
208
|
+
const r = l.querySelector(
|
|
200
209
|
'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
|
|
201
210
|
);
|
|
202
|
-
r && (
|
|
211
|
+
r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
|
|
203
212
|
};
|
|
204
213
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
205
214
|
}, []);
|
|
206
|
-
const
|
|
207
|
-
headerComponent:
|
|
215
|
+
const Ge = g(() => ({
|
|
216
|
+
headerComponent: tt,
|
|
208
217
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
209
218
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
210
219
|
// anonymous flex text nodes, but works on flex child elements).
|
|
211
|
-
cellRenderer:
|
|
212
|
-
...
|
|
220
|
+
cellRenderer: ot,
|
|
221
|
+
...o,
|
|
213
222
|
suppressHeaderKeyboardEvent: (e) => {
|
|
214
|
-
const { event: t } = e,
|
|
215
|
-
if (
|
|
223
|
+
const { event: t } = e, n = t.target;
|
|
224
|
+
if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
|
|
216
225
|
return !(t.key === "Escape" || t.key === "Tab");
|
|
217
226
|
if (t.key === "Enter" || t.key === " ") {
|
|
218
|
-
const r =
|
|
227
|
+
const r = n.closest(".ag-header-cell");
|
|
219
228
|
if (r) {
|
|
220
|
-
const
|
|
221
|
-
if (
|
|
222
|
-
return t.preventDefault(),
|
|
229
|
+
const i = r.querySelector('[role="checkbox"], button, [role="switch"], input');
|
|
230
|
+
if (i)
|
|
231
|
+
return t.preventDefault(), i.click(), !0;
|
|
223
232
|
}
|
|
224
233
|
}
|
|
225
|
-
return
|
|
234
|
+
return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
|
|
226
235
|
},
|
|
227
236
|
headerComponentParams: {
|
|
228
|
-
...
|
|
237
|
+
...o?.headerComponentParams
|
|
229
238
|
}
|
|
230
|
-
}), [
|
|
231
|
-
...
|
|
239
|
+
}), [o]), _ = g(() => ({
|
|
240
|
+
...s,
|
|
232
241
|
headerGroupComponentParams: {
|
|
233
|
-
...
|
|
234
|
-
innerHeaderGroupComponent:
|
|
242
|
+
...s?.headerGroupComponentParams,
|
|
243
|
+
innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
235
244
|
}
|
|
236
|
-
}), [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
}), [s]), De = g(() => {
|
|
246
|
+
const e = rt(
|
|
247
|
+
C ?? void 0,
|
|
248
|
+
_
|
|
249
|
+
);
|
|
250
|
+
return pt(
|
|
251
|
+
e ?? void 0,
|
|
252
|
+
h
|
|
253
|
+
);
|
|
254
|
+
}, [C, _, h]), Ee = g(() => ({
|
|
255
|
+
...at,
|
|
241
256
|
// Always available - value formatters
|
|
242
|
-
CustomInnerHeaderGroup:
|
|
243
|
-
CustomHeaderGroup:
|
|
244
|
-
...
|
|
257
|
+
CustomInnerHeaderGroup: Y,
|
|
258
|
+
CustomHeaderGroup: Y,
|
|
259
|
+
...a.components,
|
|
245
260
|
// User components override
|
|
246
|
-
...
|
|
261
|
+
...y
|
|
247
262
|
// Optional custom formatters override defaults
|
|
248
|
-
}), [
|
|
263
|
+
}), [y, a.components]), Fe = m((e) => {
|
|
249
264
|
const t = e.value;
|
|
250
265
|
if (t != null && typeof t == "object") {
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
const
|
|
256
|
-
return
|
|
266
|
+
const l = ee(e.column?.getColDef());
|
|
267
|
+
if (l && l.length > 0) {
|
|
268
|
+
const i = te(t, l);
|
|
269
|
+
if (l.length === 1) {
|
|
270
|
+
const P = l[0]?.field?.split(".").pop(), v = P ? t[P] : void 0;
|
|
271
|
+
return v && typeof v == "object" && "value" in v ? v.value ?? "" : i[0];
|
|
257
272
|
}
|
|
258
|
-
return
|
|
273
|
+
return U + i.join(R);
|
|
259
274
|
}
|
|
260
|
-
const r = Object.entries(t).map(([,
|
|
261
|
-
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(
|
|
275
|
+
const r = Object.entries(t).map(([, i]) => i && typeof i == "object" && "value" in i ? i.value : typeof i != "object" && typeof i < "u" ? i : null).filter((i) => i != null);
|
|
276
|
+
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(R);
|
|
262
277
|
}
|
|
263
278
|
return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
|
|
264
|
-
}, []),
|
|
279
|
+
}, []), Ae = m((e) => {
|
|
265
280
|
if (typeof e.value == "string") {
|
|
266
281
|
const t = e.value.trim();
|
|
267
282
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -272,200 +287,201 @@ function Tt({
|
|
|
272
287
|
}
|
|
273
288
|
}
|
|
274
289
|
return e.value;
|
|
275
|
-
}, []),
|
|
290
|
+
}, []), Te = m((e) => {
|
|
276
291
|
const t = e?.data ?? "";
|
|
277
|
-
if (!t.includes(
|
|
278
|
-
|
|
292
|
+
if (!t.includes(R) && !t.includes(U)) {
|
|
293
|
+
re(t);
|
|
279
294
|
return;
|
|
280
295
|
}
|
|
281
|
-
const
|
|
296
|
+
const n = [], l = t.split(`
|
|
282
297
|
`);
|
|
283
|
-
for (let r = 0; r <
|
|
284
|
-
const
|
|
285
|
-
if (
|
|
286
|
-
|
|
298
|
+
for (let r = 0; r < l.length; r++) {
|
|
299
|
+
const i = l[r];
|
|
300
|
+
if (i.length === 0 && r === l.length - 1) {
|
|
301
|
+
n.push("");
|
|
287
302
|
continue;
|
|
288
303
|
}
|
|
289
|
-
const
|
|
290
|
-
if (
|
|
291
|
-
|
|
304
|
+
const v = i.split(" ").map((f) => f.startsWith(U) ? { isSplit: !0, slots: f.slice(1).split(R) } : { isSplit: !1, slots: f.split(R) }), N = Math.max(1, ...v.map((f) => f.slots.length));
|
|
305
|
+
if (N === 1) {
|
|
306
|
+
n.push(v.map((f) => f.slots[0] ?? "").join(" "));
|
|
292
307
|
continue;
|
|
293
308
|
}
|
|
294
|
-
for (let
|
|
295
|
-
const
|
|
296
|
-
|
|
309
|
+
for (let f = 0; f < N; f++) {
|
|
310
|
+
const Ve = v.map((M) => !M.isSplit && M.slots.length === 1 ? M.slots[0] : M.slots[f] ?? "");
|
|
311
|
+
n.push(Ve.join(" "));
|
|
297
312
|
}
|
|
298
313
|
}
|
|
299
|
-
|
|
314
|
+
re(n.join(`
|
|
300
315
|
`));
|
|
301
|
-
}, []), A =
|
|
316
|
+
}, []), A = m((e) => {
|
|
302
317
|
const t = e.value;
|
|
303
318
|
if (t == null) return "";
|
|
304
319
|
if (typeof t != "object")
|
|
305
320
|
return e.column?.getColDef()?.useValueFormatterForExport === !0 ? String(e.formatValue?.(t) ?? t) : String(t);
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
const r =
|
|
309
|
-
return
|
|
321
|
+
const n = ee(e.column?.getColDef());
|
|
322
|
+
if (n && n.length > 0) {
|
|
323
|
+
const r = te(t, n);
|
|
324
|
+
return n.length === 1 ? r[0] : r.join(`
|
|
310
325
|
`);
|
|
311
326
|
}
|
|
312
|
-
const
|
|
327
|
+
const l = [];
|
|
313
328
|
for (const r of Object.values(t)) {
|
|
314
329
|
if (r && typeof r == "object" && "value" in r) {
|
|
315
|
-
const
|
|
316
|
-
if (
|
|
317
|
-
|
|
330
|
+
const i = r.value;
|
|
331
|
+
if (i == null) continue;
|
|
332
|
+
l.push(String(i));
|
|
318
333
|
continue;
|
|
319
334
|
}
|
|
320
|
-
r != null && typeof r != "object" &&
|
|
335
|
+
r != null && typeof r != "object" && l.push(String(r));
|
|
321
336
|
}
|
|
322
|
-
return
|
|
337
|
+
return l.length === 0 ? "" : l.length === 1 ? l[0] : l.join(`
|
|
323
338
|
`);
|
|
324
|
-
}, []),
|
|
339
|
+
}, []), Me = g(() => ({
|
|
325
340
|
processCellCallback: A,
|
|
326
|
-
...
|
|
327
|
-
}), [A,
|
|
341
|
+
...a.defaultCsvExportParams ?? {}
|
|
342
|
+
}), [A, a.defaultCsvExportParams]), Ie = g(() => ({
|
|
328
343
|
processCellCallback: A,
|
|
329
|
-
...
|
|
330
|
-
}), [A,
|
|
331
|
-
isDragList:
|
|
332
|
-
isListVariant:
|
|
333
|
-
hideColumnHeader:
|
|
334
|
-
dragListColumnDefs:
|
|
335
|
-
dragListGridProps:
|
|
344
|
+
...a.defaultExcelExportParams ?? {}
|
|
345
|
+
}), [A, a.defaultExcelExportParams]), {
|
|
346
|
+
isDragList: Le,
|
|
347
|
+
isListVariant: T,
|
|
348
|
+
hideColumnHeader: ke,
|
|
349
|
+
dragListColumnDefs: je,
|
|
350
|
+
dragListGridProps: Oe,
|
|
336
351
|
listHeaderGridProps: He,
|
|
337
|
-
dragPreviewPortal:
|
|
338
|
-
liveRegion:
|
|
339
|
-
} =
|
|
340
|
-
variant:
|
|
341
|
-
listHeader:
|
|
352
|
+
dragPreviewPortal: _e,
|
|
353
|
+
liveRegion: Pe
|
|
354
|
+
} = Ze({
|
|
355
|
+
variant: z,
|
|
356
|
+
listHeader: ce,
|
|
342
357
|
columnDefs: C,
|
|
343
|
-
mergedColumnDefs:
|
|
344
|
-
listRowGradient:
|
|
345
|
-
listDragPreview:
|
|
346
|
-
isRowDragDisabled:
|
|
347
|
-
getRowDragHandleLabel:
|
|
348
|
-
canDropRow:
|
|
349
|
-
onRowReorder:
|
|
350
|
-
onRowMoveBeyondEdge:
|
|
351
|
-
getRowStyle:
|
|
352
|
-
getRowId:
|
|
353
|
-
rowData:
|
|
354
|
-
rowDragManaged:
|
|
355
|
-
rowDragText:
|
|
356
|
-
onRowDragEnter:
|
|
357
|
-
onRowDragMove:
|
|
358
|
-
onRowDragLeave:
|
|
359
|
-
onRowDragCancel:
|
|
360
|
-
onRowDragEnd:
|
|
361
|
-
gridContainerRef:
|
|
358
|
+
mergedColumnDefs: De,
|
|
359
|
+
listRowGradient: se,
|
|
360
|
+
listDragPreview: ae,
|
|
361
|
+
isRowDragDisabled: pe,
|
|
362
|
+
getRowDragHandleLabel: fe,
|
|
363
|
+
canDropRow: me,
|
|
364
|
+
onRowReorder: ue,
|
|
365
|
+
onRowMoveBeyondEdge: de,
|
|
366
|
+
getRowStyle: a.getRowStyle,
|
|
367
|
+
getRowId: a.getRowId,
|
|
368
|
+
rowData: a.rowData,
|
|
369
|
+
rowDragManaged: a.rowDragManaged,
|
|
370
|
+
rowDragText: a.rowDragText,
|
|
371
|
+
onRowDragEnter: a.onRowDragEnter,
|
|
372
|
+
onRowDragMove: a.onRowDragMove,
|
|
373
|
+
onRowDragLeave: a.onRowDragLeave,
|
|
374
|
+
onRowDragCancel: a.onRowDragCancel,
|
|
375
|
+
onRowDragEnd: a.onRowDragEnd,
|
|
376
|
+
gridContainerRef: E,
|
|
362
377
|
gridApiRef: u
|
|
363
|
-
}),
|
|
364
|
-
return /* @__PURE__ */
|
|
365
|
-
/* @__PURE__ */
|
|
378
|
+
}), Q = a.rowHeight ?? Qe, Ne = le ?? (T ? Ye : Be);
|
|
379
|
+
return /* @__PURE__ */ We(nt.Provider, { value: H, children: [
|
|
380
|
+
/* @__PURE__ */ G(
|
|
366
381
|
"div",
|
|
367
382
|
{
|
|
368
|
-
ref:
|
|
383
|
+
ref: E,
|
|
369
384
|
"data-component": "ag-grid-react",
|
|
370
|
-
"data-variant":
|
|
371
|
-
"data-list-drag":
|
|
372
|
-
"data-list-header":
|
|
373
|
-
"data-row-loading":
|
|
374
|
-
className: `table-with-loader${
|
|
385
|
+
"data-variant": T ? "list" : z,
|
|
386
|
+
"data-list-drag": Le ? "true" : void 0,
|
|
387
|
+
"data-list-header": ke ? "none" : void 0,
|
|
388
|
+
"data-row-loading": ge ? "true" : "false",
|
|
389
|
+
className: `table-with-loader${q ? ` ${q}` : ""}`,
|
|
375
390
|
style: {
|
|
376
391
|
width: "100%",
|
|
377
392
|
height: "100%",
|
|
378
|
-
...
|
|
393
|
+
...T ? { "--ag-row-height": `${Q}px` } : null
|
|
379
394
|
},
|
|
380
|
-
children: /* @__PURE__ */
|
|
381
|
-
|
|
395
|
+
children: /* @__PURE__ */ G(
|
|
396
|
+
Je,
|
|
382
397
|
{
|
|
383
|
-
theme:
|
|
384
|
-
defaultColDef:
|
|
385
|
-
columnDefs:
|
|
398
|
+
theme: Ne,
|
|
399
|
+
defaultColDef: Ge,
|
|
400
|
+
columnDefs: je,
|
|
386
401
|
cellSelection: !0,
|
|
387
|
-
defaultColGroupDef:
|
|
388
|
-
onGridReady:
|
|
389
|
-
onGridPreDestroyed:
|
|
390
|
-
onFilterChanged:
|
|
391
|
-
onSelectionChanged:
|
|
392
|
-
onModelUpdated:
|
|
393
|
-
tooltipShowMode:
|
|
394
|
-
tooltipShowDelay:
|
|
395
|
-
tooltipHideDelay:
|
|
396
|
-
tooltipInteraction:
|
|
397
|
-
processCellForClipboard:
|
|
398
|
-
processCellFromClipboard:
|
|
399
|
-
sendToClipboard:
|
|
400
|
-
ensureDomOrder:
|
|
402
|
+
defaultColGroupDef: _,
|
|
403
|
+
onGridReady: xe,
|
|
404
|
+
onGridPreDestroyed: be,
|
|
405
|
+
onFilterChanged: Se,
|
|
406
|
+
onSelectionChanged: we,
|
|
407
|
+
onModelUpdated: Re,
|
|
408
|
+
tooltipShowMode: j,
|
|
409
|
+
tooltipShowDelay: O,
|
|
410
|
+
tooltipHideDelay: ne,
|
|
411
|
+
tooltipInteraction: ie,
|
|
412
|
+
processCellForClipboard: Fe,
|
|
413
|
+
processCellFromClipboard: Ae,
|
|
414
|
+
sendToClipboard: Te,
|
|
415
|
+
ensureDomOrder: L,
|
|
401
416
|
suppressHeaderFocus: !1,
|
|
402
417
|
suppressFocusAfterRefresh: !0,
|
|
403
418
|
suppressGroupRowsSticky: !0,
|
|
404
419
|
hidePaddedHeaderRows: !0,
|
|
405
420
|
suppressServerSideFullWidthLoadingRow: !0,
|
|
406
|
-
columnTypes:
|
|
407
|
-
autoSizeStrategy:
|
|
408
|
-
...
|
|
409
|
-
...
|
|
421
|
+
columnTypes: ye,
|
|
422
|
+
autoSizeStrategy: k,
|
|
423
|
+
...a,
|
|
424
|
+
...T ? { rowHeight: Q, cellSelection: a.cellSelection ?? !1 } : null,
|
|
410
425
|
...He,
|
|
411
|
-
...
|
|
412
|
-
components:
|
|
413
|
-
defaultCsvExportParams:
|
|
414
|
-
defaultExcelExportParams:
|
|
415
|
-
getMainMenuItems:
|
|
426
|
+
...Oe,
|
|
427
|
+
components: Ee,
|
|
428
|
+
defaultCsvExportParams: Me,
|
|
429
|
+
defaultExcelExportParams: Ie,
|
|
430
|
+
getMainMenuItems: Ce
|
|
416
431
|
}
|
|
417
432
|
)
|
|
418
433
|
}
|
|
419
434
|
),
|
|
420
|
-
|
|
421
|
-
|
|
435
|
+
_e,
|
|
436
|
+
Pe,
|
|
422
437
|
c,
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
|
|
438
|
+
/* @__PURE__ */ G(
|
|
439
|
+
mt,
|
|
425
440
|
{
|
|
426
|
-
isOpen:
|
|
427
|
-
columnId:
|
|
428
|
-
gridApi:
|
|
429
|
-
onClose:
|
|
430
|
-
onApply:
|
|
441
|
+
isOpen: he,
|
|
442
|
+
columnId: ve,
|
|
443
|
+
gridApi: b,
|
|
444
|
+
onClose: H.closeAdvancedFilter,
|
|
445
|
+
onApply: H.applyAdvancedFilter
|
|
431
446
|
}
|
|
432
447
|
)
|
|
433
448
|
] });
|
|
434
449
|
}
|
|
435
|
-
function
|
|
450
|
+
function mt({
|
|
436
451
|
isOpen: c,
|
|
437
|
-
columnId:
|
|
438
|
-
gridApi:
|
|
452
|
+
columnId: o,
|
|
453
|
+
gridApi: s,
|
|
439
454
|
onClose: C,
|
|
440
|
-
onApply:
|
|
455
|
+
onApply: y
|
|
441
456
|
}) {
|
|
442
|
-
if (!c || !
|
|
443
|
-
const d =
|
|
457
|
+
if (!c || !o || !s) return null;
|
|
458
|
+
const d = s.getColumn(o);
|
|
444
459
|
if (!d) return null;
|
|
445
|
-
const p = d.getColDef(),
|
|
446
|
-
return /* @__PURE__ */
|
|
447
|
-
|
|
460
|
+
const p = d.getColDef(), w = p.headerComponentParams, x = lt(p), D = x.text !== -1 || x.number !== -1 || x.date !== -1, L = x.set !== -1, j = p.filter === "agMultiColumnFilter" && (D || L) ? "multi" : p.filter === "agNumberColumnFilter" ? "number" : p.filter === "agDateColumnFilter" ? "date" : p.filter === "agSetColumnFilter" || w?.selectOptions ? "select" : "text", O = st(s.getFilterModel());
|
|
461
|
+
return /* @__PURE__ */ G(Ue, { fallback: null, children: /* @__PURE__ */ G(
|
|
462
|
+
ft,
|
|
448
463
|
{
|
|
449
464
|
isOpen: c,
|
|
450
465
|
onClose: C,
|
|
451
|
-
onApply:
|
|
452
|
-
columnId:
|
|
453
|
-
columnLabel: p.headerName ||
|
|
454
|
-
columnType:
|
|
455
|
-
selectOptions:
|
|
456
|
-
isMultiSelect:
|
|
457
|
-
initialModel:
|
|
458
|
-
api:
|
|
466
|
+
onApply: y,
|
|
467
|
+
columnId: o,
|
|
468
|
+
columnLabel: p.headerName || o,
|
|
469
|
+
columnType: j,
|
|
470
|
+
selectOptions: w?.selectOptions,
|
|
471
|
+
isMultiSelect: w?.isMultiSelect,
|
|
472
|
+
initialModel: O,
|
|
473
|
+
api: s
|
|
459
474
|
}
|
|
460
475
|
) });
|
|
461
476
|
}
|
|
462
477
|
export {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
478
|
+
Pt as AG_GRID_LIST_RANK_GRADIENT,
|
|
479
|
+
Ot as AgGridWrapper,
|
|
480
|
+
Xt as isAgGridHeaderLabelTooltipOverflowing,
|
|
481
|
+
Jt as isAgGridTextOverflowing,
|
|
482
|
+
pt as normalizeColumnDefsNumericHeaderAlignment,
|
|
483
|
+
Vt as subscribeGridApiEvent,
|
|
484
|
+
Wt as subscribeGridApiEvents,
|
|
485
|
+
$t as useAgGridTruncationTooltip,
|
|
486
|
+
zt as useListRowDropZones
|
|
471
487
|
};
|