@epam/ai-dial-ui-kit 0.16.0-dev.68 → 0.16.0-dev.69
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/CHANGELOG.md +5 -0
- package/dist/{DateCellRenderer-DMq0adkA.cjs → DateCellRenderer-VFKHZI-J.cjs} +23 -23
- package/dist/components/New/Grid/Grid.js +201 -182
- package/dist/components/New/Grid/components/GridEmptyState.js +13 -0
- package/dist/components/New/Select/Select.js +112 -109
- package/dist/components-manifest.json +50 -11
- package/dist/dial-ui-kit.cjs +3 -3
- package/dist/grid.cjs +1 -1
- package/dist/migration-guides/0.16.0/grid-empty-state-pattern.md +100 -0
- package/dist/migration-guides/README.md +1 -0
- package/dist/src/components/New/Grid/Grid.d.ts +42 -7
- package/dist/src/components/New/Grid/components/GridEmptyState.d.ts +21 -0
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +8 -0
- package/dist/src/components/New/Select/Select.d.ts +6 -0
- package/dist/src/components/New/constants/icon.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,127 +1,130 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { themeBalham as
|
|
3
|
-
import { AgGridReact as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
const Xe = "dial-kit-grid-selection", er = 150, rr = 100, tr = ["rightAligned", "numericColumn"], ne = (f) => [f?.type ?? []].flat().some((a) => tr.includes(a)), Ar = ({
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { themeBalham as we, colorSchemeDark as Oe, colorSchemeLight as ve } from "../../../node_modules/ag-grid-community/dist/package/main.esm.js";
|
|
3
|
+
import { AgGridReact as ye } from "../../../node_modules/ag-grid-react/dist/package/index.esm.js";
|
|
4
|
+
import { useState as He, useRef as w, useId as xe, useCallback as a, useMemo as d, useEffect as _ } from "react";
|
|
5
|
+
import { useIsMobileScreen as Pe } from "../../../hooks/use-is-mobile-screen.js";
|
|
6
|
+
import { useIsTabletScreen as ke } from "../../../hooks/use-is-tablet-screen.js";
|
|
7
|
+
import { GridSelectionMode as ne } from "../../../models/selection-mode.js";
|
|
8
|
+
import { DropdownTrigger as We } from "../../../types/dropdown.js";
|
|
9
|
+
import { GridAppearance as ie, GridColorScheme as se } from "../../../types/grid.js";
|
|
10
|
+
import { debounceFn as ze } from "../../../utils/debounce.js";
|
|
11
|
+
import { baseColumnComparator as Ue, omitUndefined as Fe } from "../../../utils/grid-comparators.js";
|
|
12
|
+
import { registerAgGridModulesOnce as Me } from "../../../utils/grid-registration.js";
|
|
13
|
+
import { mergeClasses as O } from "../../../utils/merge-classes.js";
|
|
14
|
+
import { Dropdown as Be } from "../Dropdown/Dropdown.js";
|
|
15
|
+
import { EllipsisTooltip as Ve } from "../EllipsisTooltip/EllipsisTooltip.js";
|
|
16
|
+
import { selectGridEmptyStateOverlay as je } from "./components/GridEmptyState.js";
|
|
17
|
+
import { SelectionCell as Je } from "./components/SelectionCell.js";
|
|
18
|
+
import { SelectionHeader as Ye } from "./components/SelectionHeader.js";
|
|
19
|
+
import { GRID_THEME_PARAMS as v, SelectionEventSourceType as p, GRID_ROW_SELECT_CLASS as $e, GRID_HEADER_SELECT_CLASS as qe, ROW_HEIGHT as le, GRID_CHAT_CLASS as Ke, GRID_WITHOUT_HEADER_BORDERS_CLASS as Qe, GRID_SELECTION_VISIBLE_CLASS as Xe, GRID_WITH_SELECTION_CLASS as Ze, GRID_ROOT_CLASS as er } from "./constants.js";
|
|
20
|
+
import { SELECTION_COL_DEF as rr } from "./renderers/constants.js";
|
|
21
|
+
const tr = "dial-kit-grid-selection", or = 150, nr = 100, ir = ["rightAligned", "numericColumn"], ae = (f) => [f?.type ?? []].flat().some((i) => ir.includes(i)), Ar = ({
|
|
23
22
|
columnDefs: f,
|
|
24
|
-
rowData:
|
|
23
|
+
rowData: i,
|
|
25
24
|
additionalGridOptions: y,
|
|
26
25
|
getContextMenuItems: N,
|
|
27
|
-
className:
|
|
28
|
-
ariaLabel:
|
|
29
|
-
wrapCustomCellRenderers:
|
|
26
|
+
className: ce,
|
|
27
|
+
ariaLabel: de = "Data grid",
|
|
28
|
+
wrapCustomCellRenderers: G = !0,
|
|
30
29
|
disabledRowIds: C,
|
|
31
30
|
selectedRowIds: c,
|
|
32
31
|
onSelectionChange: H,
|
|
33
|
-
onGridApiChange:
|
|
34
|
-
getRowId:
|
|
35
|
-
alternateOddRowColors:
|
|
32
|
+
onGridApiChange: ue,
|
|
33
|
+
getRowId: x,
|
|
34
|
+
alternateOddRowColors: P = !1,
|
|
36
35
|
filterPlaceholder: k = "Enter value",
|
|
37
|
-
emptyStateIcon:
|
|
38
|
-
emptyStateTitle:
|
|
39
|
-
emptyStateDescription:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
emptyStateIcon: I,
|
|
37
|
+
emptyStateTitle: W = "No items yet",
|
|
38
|
+
emptyStateDescription: z = "Items will appear here once they are added.",
|
|
39
|
+
emptyStateAction: U,
|
|
40
|
+
emptyStateLive: F = !1,
|
|
41
|
+
filteredEmptyStateTitle: M = "No items found",
|
|
42
|
+
filteredEmptyStateDescription: B = "Try a different search term or check your filters.",
|
|
43
|
+
loading: V = !1,
|
|
44
|
+
wrapperBorder: j = !0,
|
|
45
|
+
withoutHeaderBorders: me = !1,
|
|
46
|
+
allowDisabledContextMenu: J = !1,
|
|
47
|
+
selectionMode: o,
|
|
48
|
+
selectRowLabel: Y,
|
|
49
|
+
selectAllLabel: $ = "Select all rows",
|
|
50
|
+
colorScheme: T = se.Light,
|
|
51
|
+
appearance: fe = ie.Default
|
|
49
52
|
}) => {
|
|
50
|
-
|
|
51
|
-
const [t,
|
|
53
|
+
Me();
|
|
54
|
+
const [t, Se] = He(), pe = Pe(), Ce = ke(), A = w(/* @__PURE__ */ new Set()), q = w(
|
|
52
55
|
void 0
|
|
53
|
-
),
|
|
54
|
-
getRowId:
|
|
56
|
+
), K = `dial-kit-grid-selection-${xe()}`, u = w({
|
|
57
|
+
getRowId: x,
|
|
55
58
|
getContextMenuItems: N,
|
|
56
59
|
onSelectionChange: H,
|
|
57
|
-
selectRowLabel:
|
|
58
|
-
wrapCustomCellRenderers:
|
|
60
|
+
selectRowLabel: Y,
|
|
61
|
+
wrapCustomCellRenderers: G
|
|
59
62
|
});
|
|
60
|
-
|
|
61
|
-
getRowId:
|
|
63
|
+
u.current = {
|
|
64
|
+
getRowId: x,
|
|
62
65
|
getContextMenuItems: N,
|
|
63
66
|
onSelectionChange: H,
|
|
64
|
-
selectRowLabel:
|
|
65
|
-
wrapCustomCellRenderers:
|
|
67
|
+
selectRowLabel: Y,
|
|
68
|
+
wrapCustomCellRenderers: G
|
|
66
69
|
};
|
|
67
|
-
const
|
|
68
|
-
const r =
|
|
70
|
+
const s = a((e) => {
|
|
71
|
+
const r = u.current.getRowId;
|
|
69
72
|
return r ? r(e) : String(e.id ?? JSON.stringify(e));
|
|
70
|
-
}, []),
|
|
71
|
-
() =>
|
|
72
|
-
|
|
73
|
+
}, []), Q = !!N, X = !!G, D = fe === ie.Chat, he = d(
|
|
74
|
+
() => we.withPart(
|
|
75
|
+
T === se.Dark ? Oe : ve
|
|
73
76
|
).withParams({
|
|
74
|
-
...
|
|
77
|
+
...v,
|
|
75
78
|
// The shared params pin `browserColorScheme` to light and are applied
|
|
76
79
|
// after the part, so the chosen scheme is set again here.
|
|
77
|
-
browserColorScheme:
|
|
78
|
-
oddRowBackgroundColor:
|
|
80
|
+
browserColorScheme: T,
|
|
81
|
+
oddRowBackgroundColor: P ? v.oddRowBackgroundColor : v.backgroundColor,
|
|
79
82
|
// The Chat table is a borderless card whose row dividers stop at the
|
|
80
83
|
// cell padding, so `styles/grid.scss` draws them instead. Its header
|
|
81
84
|
// and row cells take 12px on each side, not Balham's 8px.
|
|
82
|
-
...
|
|
85
|
+
...D ? {
|
|
83
86
|
wrapperBorder: !1,
|
|
84
87
|
rowBorder: !1,
|
|
85
88
|
cellHorizontalPadding: 12
|
|
86
|
-
} : { wrapperBorder:
|
|
89
|
+
} : { wrapperBorder: j }
|
|
87
90
|
}),
|
|
88
|
-
[
|
|
89
|
-
),
|
|
91
|
+
[P, T, j, D]
|
|
92
|
+
), Re = a((e) => {
|
|
90
93
|
e.api.sizeColumnsToFit();
|
|
91
|
-
}, []),
|
|
92
|
-
(e) => !!e && !!C?.has(
|
|
93
|
-
[C,
|
|
94
|
-
), h =
|
|
95
|
-
(e, r,
|
|
96
|
-
|
|
94
|
+
}, []), ge = pe || Ce || (c?.size ?? 0) > 0, m = a(
|
|
95
|
+
(e) => !!e && !!C?.has(s(e)),
|
|
96
|
+
[C, s]
|
|
97
|
+
), h = a(
|
|
98
|
+
(e, r, n) => Q ? /* @__PURE__ */ l(
|
|
99
|
+
Be,
|
|
97
100
|
{
|
|
98
|
-
trigger: [
|
|
99
|
-
items: e.data ?
|
|
101
|
+
trigger: [We.ContextMenu],
|
|
102
|
+
items: e.data ? u.current.getContextMenuItems?.(e.data) ?? [] : [],
|
|
100
103
|
anchorToMouse: !0,
|
|
101
104
|
matchReferenceWidth: !0,
|
|
102
|
-
className:
|
|
105
|
+
className: O(
|
|
103
106
|
"size-full",
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
n && "cursor-not-allowed opacity-75",
|
|
108
|
+
ae(e.colDef) && "text-end"
|
|
106
109
|
),
|
|
107
|
-
disabled:
|
|
108
|
-
children: /* @__PURE__ */
|
|
110
|
+
disabled: n && !J,
|
|
111
|
+
children: /* @__PURE__ */ l("span", { className: "block min-w-0 max-w-full flex-1", children: r })
|
|
109
112
|
}
|
|
110
113
|
) : r,
|
|
111
|
-
[
|
|
112
|
-
),
|
|
114
|
+
[Q, J]
|
|
115
|
+
), L = a(
|
|
113
116
|
(e) => {
|
|
114
117
|
if (!e.data) return null;
|
|
115
|
-
const r =
|
|
118
|
+
const r = m(e.data);
|
|
116
119
|
return h(
|
|
117
120
|
e,
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
|
|
121
|
+
/* @__PURE__ */ l(
|
|
122
|
+
Ve,
|
|
120
123
|
{
|
|
121
124
|
text: e.value == null ? "" : String(e.value),
|
|
122
|
-
className:
|
|
125
|
+
className: O(
|
|
123
126
|
"max-w-full dial-small-text text-primary",
|
|
124
|
-
|
|
127
|
+
ae(e.colDef) && "text-end"
|
|
125
128
|
),
|
|
126
129
|
hideTooltip: r
|
|
127
130
|
}
|
|
@@ -129,72 +132,72 @@ const Xe = "dial-kit-grid-selection", er = 150, rr = 100, tr = ["rightAligned",
|
|
|
129
132
|
r
|
|
130
133
|
);
|
|
131
134
|
},
|
|
132
|
-
[
|
|
133
|
-
), R =
|
|
135
|
+
[m, h]
|
|
136
|
+
), R = a(
|
|
134
137
|
(e) => e === p.API || e === p.ROW_DATA_CHANGED,
|
|
135
138
|
[]
|
|
136
|
-
),
|
|
137
|
-
() =>
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
[R,
|
|
142
|
-
),
|
|
143
|
-
if (
|
|
139
|
+
), Ee = d(
|
|
140
|
+
() => ze((e) => {
|
|
141
|
+
const n = (e.selectedNodes ?? []).map((te) => te.data), S = new Set(n.map(s));
|
|
142
|
+
A.current = S, q.current = e.source, !R(e.source) && u.current.onSelectionChange?.(S, n);
|
|
143
|
+
}, nr),
|
|
144
|
+
[R, s]
|
|
145
|
+
), b = d(() => {
|
|
146
|
+
if (o)
|
|
144
147
|
return {
|
|
145
|
-
...
|
|
146
|
-
colId:
|
|
148
|
+
...rr,
|
|
149
|
+
colId: tr,
|
|
147
150
|
headerName: "",
|
|
148
|
-
headerClass:
|
|
149
|
-
cellClass:
|
|
150
|
-
headerComponent:
|
|
151
|
-
headerComponentParams: { label:
|
|
151
|
+
headerClass: qe,
|
|
152
|
+
cellClass: $e,
|
|
153
|
+
headerComponent: o === ne.MULTIPLE ? Ye : void 0,
|
|
154
|
+
headerComponentParams: { label: $ },
|
|
152
155
|
cellRenderer: (e) => {
|
|
153
156
|
if (!e.data) return null;
|
|
154
|
-
const r =
|
|
155
|
-
return /* @__PURE__ */
|
|
156
|
-
|
|
157
|
+
const r = s(e.data);
|
|
158
|
+
return /* @__PURE__ */ l(
|
|
159
|
+
Je,
|
|
157
160
|
{
|
|
158
161
|
params: e,
|
|
159
|
-
mode:
|
|
162
|
+
mode: o,
|
|
160
163
|
rowId: r,
|
|
161
|
-
radioName:
|
|
162
|
-
label:
|
|
164
|
+
radioName: K,
|
|
165
|
+
label: u.current.selectRowLabel?.(e.data) ?? "Select row",
|
|
163
166
|
disabled: C?.has(r)
|
|
164
167
|
}
|
|
165
168
|
);
|
|
166
169
|
}
|
|
167
170
|
};
|
|
168
171
|
}, [
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
o,
|
|
173
|
+
$,
|
|
174
|
+
s,
|
|
172
175
|
C,
|
|
173
|
-
|
|
174
|
-
]),
|
|
176
|
+
K
|
|
177
|
+
]), Z = a(
|
|
175
178
|
(e) => {
|
|
176
179
|
if (!e.cellRenderer)
|
|
177
|
-
return { ...e, cellRenderer:
|
|
178
|
-
const r =
|
|
180
|
+
return { ...e, cellRenderer: L };
|
|
181
|
+
const r = u.current.wrapCustomCellRenderers;
|
|
179
182
|
if (!(typeof r == "function" ? r(e) : !!r))
|
|
180
183
|
return e;
|
|
181
184
|
const S = e.cellRenderer;
|
|
182
185
|
return { ...e, cellRenderer: (E) => {
|
|
183
|
-
const
|
|
184
|
-
return h(E,
|
|
186
|
+
const Le = m(E.data), oe = typeof S == "function" ? S : void 0, be = oe ? /* @__PURE__ */ l(oe, { ...E }) : L(E);
|
|
187
|
+
return h(E, be, Le);
|
|
185
188
|
} };
|
|
186
189
|
},
|
|
187
|
-
[
|
|
188
|
-
),
|
|
189
|
-
const e =
|
|
190
|
-
return
|
|
191
|
-
}, [f, Z,
|
|
192
|
-
defaultColDef:
|
|
190
|
+
[m, L, h]
|
|
191
|
+
), _e = d(() => {
|
|
192
|
+
const e = X ? (f ?? []).map(Z) : f ?? [];
|
|
193
|
+
return b ? [b, ...e] : e;
|
|
194
|
+
}, [f, X, Z, b]), {
|
|
195
|
+
defaultColDef: ee,
|
|
193
196
|
rowSelection: g,
|
|
194
|
-
...
|
|
195
|
-
} = y ?? {},
|
|
197
|
+
...Ne
|
|
198
|
+
} = y ?? {}, Ge = d(
|
|
196
199
|
() => ({
|
|
197
|
-
minWidth:
|
|
200
|
+
minWidth: or,
|
|
198
201
|
resizable: !0,
|
|
199
202
|
sortable: !0,
|
|
200
203
|
floatingFilter: !0,
|
|
@@ -203,119 +206,135 @@ const Xe = "dial-kit-grid-selection", er = 150, rr = 100, tr = ["rightAligned",
|
|
|
203
206
|
filterPlaceholder: k,
|
|
204
207
|
buttons: ["reset"]
|
|
205
208
|
},
|
|
206
|
-
comparator:
|
|
207
|
-
...
|
|
209
|
+
comparator: Ue,
|
|
210
|
+
...Fe(ee)
|
|
208
211
|
}),
|
|
209
|
-
[k,
|
|
210
|
-
),
|
|
211
|
-
e.api.sizeColumnsToFit(),
|
|
212
|
+
[k, ee]
|
|
213
|
+
), Ie = (e) => {
|
|
214
|
+
e.api.sizeColumnsToFit(), Se(e.api), y?.onGridReady?.(e), ue?.(e.api);
|
|
212
215
|
};
|
|
213
216
|
_(() => {
|
|
214
|
-
t &&
|
|
215
|
-
}, [t,
|
|
216
|
-
const
|
|
217
|
-
() =>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
217
|
+
t && i && t.setGridOption("rowData", i);
|
|
218
|
+
}, [t, i]);
|
|
219
|
+
const Te = d(
|
|
220
|
+
() => ({
|
|
221
|
+
empty: {
|
|
222
|
+
title: W,
|
|
223
|
+
description: z,
|
|
224
|
+
icon: I,
|
|
225
|
+
action: U,
|
|
226
|
+
live: F
|
|
227
|
+
},
|
|
228
|
+
// The user has just changed a filter, so this one is always announced.
|
|
229
|
+
filtered: {
|
|
230
|
+
title: M,
|
|
231
|
+
description: B,
|
|
232
|
+
icon: I,
|
|
233
|
+
live: !0
|
|
224
234
|
}
|
|
225
|
-
),
|
|
226
|
-
[
|
|
227
|
-
|
|
228
|
-
|
|
235
|
+
}),
|
|
236
|
+
[
|
|
237
|
+
W,
|
|
238
|
+
z,
|
|
239
|
+
I,
|
|
240
|
+
U,
|
|
241
|
+
F,
|
|
242
|
+
M,
|
|
243
|
+
B
|
|
244
|
+
]
|
|
245
|
+
), re = typeof g == "object" ? g : void 0, Ae = d(() => o ? {
|
|
246
|
+
isRowSelectable: (e) => !m(e.data),
|
|
229
247
|
/*
|
|
230
248
|
Merged, not replaced, the way `defaultColDef` is: a consumer reaching
|
|
231
249
|
for `isRowSelectable` alone would otherwise hand ag-Grid a whole new
|
|
232
250
|
object and lose the three settings below with it.
|
|
233
251
|
*/
|
|
234
|
-
...
|
|
252
|
+
...re,
|
|
235
253
|
/*
|
|
236
254
|
`selectionMode` owns the mode, because it also decides whether the
|
|
237
255
|
selection column draws checkboxes or radios.
|
|
238
256
|
*/
|
|
239
|
-
mode:
|
|
257
|
+
mode: o === ne.SINGLE ? "singleRow" : "multiRow",
|
|
240
258
|
// The controls live in this component's own selection column, so
|
|
241
259
|
// ag-Grid's inputs are switched off and only its behaviour is used.
|
|
242
260
|
checkboxes: !1,
|
|
243
261
|
headerCheckbox: !1
|
|
244
262
|
} : g, [
|
|
245
263
|
g,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
264
|
+
re,
|
|
265
|
+
m,
|
|
266
|
+
o
|
|
249
267
|
]);
|
|
250
268
|
_(() => {
|
|
251
|
-
t &&
|
|
269
|
+
t && i && A.current.size && A.current.forEach((e) => {
|
|
252
270
|
const r = t.getRowNode(e);
|
|
253
271
|
r && !r.isSelected() && r.setSelected(!0, !1, p.API);
|
|
254
272
|
});
|
|
255
|
-
}, [t,
|
|
273
|
+
}, [t, i]), _(() => {
|
|
256
274
|
t && c && (t.deselectAll("all", p.API), c.forEach((e) => {
|
|
257
275
|
const r = t.getRowNode(e);
|
|
258
276
|
r && !r.isSelected() && r.setSelected(!0, !1, p.API);
|
|
259
277
|
}));
|
|
260
278
|
}, [t, c]);
|
|
261
|
-
const
|
|
262
|
-
(e) => e.data ?
|
|
263
|
-
[
|
|
279
|
+
const De = a(
|
|
280
|
+
(e) => e.data ? s(e.data) : "",
|
|
281
|
+
[s]
|
|
264
282
|
);
|
|
265
283
|
return _(() => {
|
|
266
284
|
const e = R(
|
|
267
|
-
|
|
285
|
+
q.current
|
|
268
286
|
);
|
|
269
287
|
if (t && c?.size && e) {
|
|
270
288
|
const r = Array.from(c)[0];
|
|
271
289
|
if (r) {
|
|
272
|
-
const
|
|
273
|
-
|
|
290
|
+
const n = t.getRowNode(r);
|
|
291
|
+
n && t.ensureNodeVisible(n);
|
|
274
292
|
}
|
|
275
293
|
}
|
|
276
|
-
}, [t, R, c]), /* @__PURE__ */
|
|
294
|
+
}, [t, R, c]), /* @__PURE__ */ l(
|
|
277
295
|
"div",
|
|
278
296
|
{
|
|
279
|
-
className:
|
|
280
|
-
|
|
297
|
+
className: O(
|
|
298
|
+
er,
|
|
281
299
|
"size-full",
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
300
|
+
o && Ze,
|
|
301
|
+
o && ge && Xe,
|
|
302
|
+
me && Qe,
|
|
303
|
+
D && Ke,
|
|
304
|
+
ce
|
|
287
305
|
),
|
|
288
306
|
role: "region",
|
|
289
|
-
"aria-label":
|
|
290
|
-
"aria-busy":
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
|
|
307
|
+
"aria-label": de,
|
|
308
|
+
"aria-busy": V,
|
|
309
|
+
children: /* @__PURE__ */ l("div", { className: "h-full overflow-x-auto", children: /* @__PURE__ */ l(
|
|
310
|
+
ye,
|
|
293
311
|
{
|
|
294
312
|
rowModelType: "clientSide",
|
|
295
|
-
headerHeight:
|
|
296
|
-
rowHeight:
|
|
313
|
+
headerHeight: le,
|
|
314
|
+
rowHeight: le,
|
|
297
315
|
cellSelection: !1,
|
|
298
|
-
theme:
|
|
316
|
+
theme: he,
|
|
299
317
|
autoSizeStrategy: { type: "fitGridWidth" },
|
|
300
|
-
columnDefs:
|
|
301
|
-
defaultColDef:
|
|
302
|
-
onGridSizeChanged:
|
|
303
|
-
onGridReady:
|
|
304
|
-
loading:
|
|
318
|
+
columnDefs: _e,
|
|
319
|
+
defaultColDef: Ge,
|
|
320
|
+
onGridSizeChanged: Re,
|
|
321
|
+
onGridReady: Ie,
|
|
322
|
+
loading: V,
|
|
305
323
|
suppressCellFocus: !0,
|
|
306
324
|
suppressDragLeaveHidesColumns: !0,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
325
|
+
overlayComponentSelector: je,
|
|
326
|
+
overlayComponentParams: Te,
|
|
327
|
+
rowData: i,
|
|
328
|
+
rowSelection: Ae,
|
|
329
|
+
onSelectionChanged: Ee,
|
|
330
|
+
getRowId: De,
|
|
331
|
+
...Ne
|
|
313
332
|
}
|
|
314
333
|
) })
|
|
315
334
|
}
|
|
316
335
|
);
|
|
317
336
|
};
|
|
318
337
|
export {
|
|
319
|
-
|
|
338
|
+
tr as GRID_SELECTION_COLUMN_ID,
|
|
320
339
|
Ar as Grid
|
|
321
340
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { NoDataContent as s } from "../../NoDataContent/NoDataContent.js";
|
|
3
|
+
const c = ["noRows", "noMatchingRows"], i = ({
|
|
4
|
+
overlayType: o,
|
|
5
|
+
empty: t,
|
|
6
|
+
filtered: n
|
|
7
|
+
}) => /* @__PURE__ */ e(s, { ...o === "noMatchingRows" ? n : t }), m = ({
|
|
8
|
+
overlayType: o
|
|
9
|
+
}) => c.includes(o) ? { component: i } : void 0;
|
|
10
|
+
export {
|
|
11
|
+
i as GridEmptyState,
|
|
12
|
+
m as selectGridEmptyStateOverlay
|
|
13
|
+
};
|