@epam/ai-dial-ui-kit 0.16.0-dev.43 → 0.16.0-dev.44
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 +4 -0
- package/dist/{DateCellRenderer-f1EmpTB0.cjs → DateCellRenderer-FseALDXV.cjs} +27 -27
- package/dist/components/New/Grid/Grid.js +137 -133
- package/dist/components/New/Grid/constants.js +9 -8
- package/dist/components-manifest.json +25 -2
- package/dist/dial-ui-kit.cjs +3 -3
- package/dist/dial-ui-kit.js +56 -55
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +20 -19
- package/dist/index.css +1 -1
- package/dist/src/components/New/Grid/Grid.d.ts +8 -2
- package/dist/src/components/New/Grid/constants.d.ts +2 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/subpaths/grid.d.ts +1 -1
- package/dist/src/types/grid.d.ts +10 -0
- package/dist/types/grid.js +3 -2
- package/package.json +1 -1
|
@@ -1,105 +1,108 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { themeBalham as
|
|
3
|
-
import { AgGridReact as
|
|
4
|
-
import { IconZoomCancel as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { useIsMobileScreen as
|
|
7
|
-
import { useIsTabletScreen as
|
|
8
|
-
import { GridSelectionMode as
|
|
9
|
-
import { DropdownTrigger as
|
|
10
|
-
import { GridColorScheme as
|
|
11
|
-
import { debounceFn as
|
|
12
|
-
import { baseColumnComparator as
|
|
13
|
-
import { registerAgGridModulesOnce as
|
|
14
|
-
import { mergeClasses as
|
|
15
|
-
import { Dropdown as
|
|
16
|
-
import { EllipsisTooltip as
|
|
17
|
-
import { NoDataContent as
|
|
18
|
-
import { SelectionCell as
|
|
19
|
-
import { SelectionHeader as
|
|
20
|
-
import { GRID_THEME_PARAMS as
|
|
21
|
-
import { SELECTION_COL_DEF as
|
|
22
|
-
const
|
|
23
|
-
columnDefs:
|
|
2
|
+
import { themeBalham as Ae, colorSchemeDark as De, colorSchemeLight as Ge } from "../../../node_modules/ag-grid-community/dist/package/main.esm.js";
|
|
3
|
+
import { AgGridReact as Le } from "../../../node_modules/ag-grid-react/dist/package/index.esm.js";
|
|
4
|
+
import { IconZoomCancel as be } from "@tabler/icons-react";
|
|
5
|
+
import { useState as we, useRef as b, useId as Oe, useCallback as s, useMemo as m, useEffect as _ } from "react";
|
|
6
|
+
import { useIsMobileScreen as ye } from "../../../hooks/use-is-mobile-screen.js";
|
|
7
|
+
import { useIsTabletScreen as ve } from "../../../hooks/use-is-tablet-screen.js";
|
|
8
|
+
import { GridSelectionMode as Y } from "../../../models/selection-mode.js";
|
|
9
|
+
import { DropdownTrigger as He } from "../../../types/dropdown.js";
|
|
10
|
+
import { GridAppearance as ee, GridColorScheme as re } from "../../../types/grid.js";
|
|
11
|
+
import { debounceFn as ke } from "../../../utils/debounce.js";
|
|
12
|
+
import { baseColumnComparator as xe, omitUndefined as We } from "../../../utils/grid-comparators.js";
|
|
13
|
+
import { registerAgGridModulesOnce as ze } from "../../../utils/grid-registration.js";
|
|
14
|
+
import { mergeClasses as te } from "../../../utils/merge-classes.js";
|
|
15
|
+
import { Dropdown as Pe } from "../Dropdown/Dropdown.js";
|
|
16
|
+
import { EllipsisTooltip as Fe } from "../EllipsisTooltip/EllipsisTooltip.js";
|
|
17
|
+
import { NoDataContent as Ue } from "../NoDataContent/NoDataContent.js";
|
|
18
|
+
import { SelectionCell as Be } from "./components/SelectionCell.js";
|
|
19
|
+
import { SelectionHeader as Me } from "./components/SelectionHeader.js";
|
|
20
|
+
import { GRID_THEME_PARAMS as w, SelectionEventSourceType as S, GRID_ROW_SELECT_CLASS as Ve, GRID_HEADER_SELECT_CLASS as je, ROW_HEIGHT as oe, GRID_CHAT_CLASS as Je, GRID_WITHOUT_HEADER_BORDERS_CLASS as Ze, GRID_SELECTION_VISIBLE_CLASS as $e, GRID_WITH_SELECTION_CLASS as qe, GRID_ROOT_CLASS as Ke } from "./constants.js";
|
|
21
|
+
import { SELECTION_COL_DEF as Qe } from "./renderers/constants.js";
|
|
22
|
+
const Xe = "dial-kit-grid-selection", Ye = 150, er = 100, Nr = ({
|
|
23
|
+
columnDefs: g,
|
|
24
24
|
rowData: c,
|
|
25
|
-
additionalGridOptions:
|
|
25
|
+
additionalGridOptions: O,
|
|
26
26
|
getContextMenuItems: N,
|
|
27
|
-
className:
|
|
28
|
-
ariaLabel:
|
|
27
|
+
className: ne,
|
|
28
|
+
ariaLabel: ie = "Data grid",
|
|
29
29
|
wrapCustomCellRenderers: I = !0,
|
|
30
30
|
disabledRowIds: p,
|
|
31
31
|
selectedRowIds: l,
|
|
32
|
-
onSelectionChange:
|
|
33
|
-
onGridApiChange:
|
|
34
|
-
getRowId:
|
|
35
|
-
alternateOddRowColors:
|
|
32
|
+
onSelectionChange: y,
|
|
33
|
+
onGridApiChange: se,
|
|
34
|
+
getRowId: v,
|
|
35
|
+
alternateOddRowColors: H = !1,
|
|
36
36
|
filterPlaceholder: k = "Enter value",
|
|
37
37
|
emptyStateIcon: x,
|
|
38
|
-
emptyStateTitle:
|
|
39
|
-
emptyStateDescription:
|
|
40
|
-
loading:
|
|
41
|
-
wrapperBorder:
|
|
42
|
-
withoutHeaderBorders:
|
|
43
|
-
allowDisabledContextMenu:
|
|
38
|
+
emptyStateTitle: W = "No results found",
|
|
39
|
+
emptyStateDescription: z = "Sorry, we couldn't find any results for your search.",
|
|
40
|
+
loading: P = !1,
|
|
41
|
+
wrapperBorder: F = !0,
|
|
42
|
+
withoutHeaderBorders: ae = !1,
|
|
43
|
+
allowDisabledContextMenu: U = !1,
|
|
44
44
|
selectionMode: n,
|
|
45
|
-
selectRowLabel:
|
|
45
|
+
selectRowLabel: B,
|
|
46
46
|
selectAllLabel: M = "Select all rows",
|
|
47
|
-
colorScheme: T =
|
|
47
|
+
colorScheme: T = re.Light,
|
|
48
|
+
appearance: le = ee.Default
|
|
48
49
|
}) => {
|
|
49
|
-
|
|
50
|
-
const [t,
|
|
50
|
+
ze();
|
|
51
|
+
const [t, ce] = we(), de = ye(), ue = ve(), A = b(/* @__PURE__ */ new Set()), V = b(
|
|
51
52
|
void 0
|
|
52
|
-
),
|
|
53
|
-
getRowId:
|
|
53
|
+
), j = `dial-kit-grid-selection-${Oe()}`, d = b({
|
|
54
|
+
getRowId: v,
|
|
54
55
|
getContextMenuItems: N,
|
|
55
|
-
onSelectionChange:
|
|
56
|
-
selectRowLabel:
|
|
56
|
+
onSelectionChange: y,
|
|
57
|
+
selectRowLabel: B,
|
|
57
58
|
wrapCustomCellRenderers: I
|
|
58
59
|
});
|
|
59
60
|
d.current = {
|
|
60
|
-
getRowId:
|
|
61
|
+
getRowId: v,
|
|
61
62
|
getContextMenuItems: N,
|
|
62
|
-
onSelectionChange:
|
|
63
|
-
selectRowLabel:
|
|
63
|
+
onSelectionChange: y,
|
|
64
|
+
selectRowLabel: B,
|
|
64
65
|
wrapCustomCellRenderers: I
|
|
65
66
|
};
|
|
66
67
|
const a = s((e) => {
|
|
67
68
|
const r = d.current.getRowId;
|
|
68
69
|
return r ? r(e) : String(e.id ?? JSON.stringify(e));
|
|
69
|
-
}, []),
|
|
70
|
-
() =>
|
|
71
|
-
T ===
|
|
70
|
+
}, []), J = !!N, Z = !!I, D = le === ee.Chat, me = m(
|
|
71
|
+
() => Ae.withPart(
|
|
72
|
+
T === re.Dark ? De : Ge
|
|
72
73
|
).withParams({
|
|
73
|
-
...
|
|
74
|
+
...w,
|
|
74
75
|
// The shared params pin `browserColorScheme` to light and are applied
|
|
75
76
|
// after the part, so the chosen scheme is set again here.
|
|
76
77
|
browserColorScheme: T,
|
|
77
|
-
oddRowBackgroundColor:
|
|
78
|
-
|
|
78
|
+
oddRowBackgroundColor: H ? w.oddRowBackgroundColor : w.backgroundColor,
|
|
79
|
+
// The Chat table is a borderless card whose row dividers stop at the
|
|
80
|
+
// cell padding, so `styles/grid.scss` draws them instead.
|
|
81
|
+
...D ? { wrapperBorder: !1, rowBorder: !1 } : { wrapperBorder: F }
|
|
79
82
|
}),
|
|
80
|
-
[
|
|
81
|
-
),
|
|
83
|
+
[H, T, F, D]
|
|
84
|
+
), fe = s((e) => {
|
|
82
85
|
e.api.sizeColumnsToFit();
|
|
83
|
-
}, []),
|
|
86
|
+
}, []), Se = de || ue || (l?.size ?? 0) > 0, u = s(
|
|
84
87
|
(e) => !!e && !!p?.has(a(e)),
|
|
85
88
|
[p, a]
|
|
86
89
|
), C = s(
|
|
87
|
-
(e, r, i) =>
|
|
88
|
-
|
|
90
|
+
(e, r, i) => J ? /* @__PURE__ */ o(
|
|
91
|
+
Pe,
|
|
89
92
|
{
|
|
90
|
-
trigger: [
|
|
93
|
+
trigger: [He.ContextMenu],
|
|
91
94
|
items: e.data ? d.current.getContextMenuItems?.(e.data) ?? [] : [],
|
|
92
95
|
anchorToMouse: !0,
|
|
93
96
|
matchReferenceWidth: !0,
|
|
94
|
-
className:
|
|
97
|
+
className: te(
|
|
95
98
|
"size-full",
|
|
96
99
|
i && "cursor-not-allowed opacity-75"
|
|
97
100
|
),
|
|
98
|
-
disabled: i && !
|
|
101
|
+
disabled: i && !U,
|
|
99
102
|
children: /* @__PURE__ */ o("span", { className: "block min-w-0 max-w-full flex-1", children: r })
|
|
100
103
|
}
|
|
101
104
|
) : r,
|
|
102
|
-
[
|
|
105
|
+
[J, U]
|
|
103
106
|
), G = s(
|
|
104
107
|
(e) => {
|
|
105
108
|
if (!e.data) return null;
|
|
@@ -107,7 +110,7 @@ const $e = "dial-kit-grid-selection", qe = 150, Ke = 100, Rr = ({
|
|
|
107
110
|
return C(
|
|
108
111
|
e,
|
|
109
112
|
/* @__PURE__ */ o(
|
|
110
|
-
|
|
113
|
+
Fe,
|
|
111
114
|
{
|
|
112
115
|
text: e.value == null ? "" : String(e.value),
|
|
113
116
|
className: "max-w-full dial-small-text text-primary",
|
|
@@ -121,32 +124,32 @@ const $e = "dial-kit-grid-selection", qe = 150, Ke = 100, Rr = ({
|
|
|
121
124
|
), h = s(
|
|
122
125
|
(e) => e === S.API || e === S.ROW_DATA_CHANGED,
|
|
123
126
|
[]
|
|
124
|
-
),
|
|
125
|
-
() =>
|
|
126
|
-
const i = (e.selectedNodes ?? []).map((
|
|
127
|
-
|
|
128
|
-
},
|
|
127
|
+
), pe = m(
|
|
128
|
+
() => ke((e) => {
|
|
129
|
+
const i = (e.selectedNodes ?? []).map((Q) => Q.data), f = new Set(i.map(a));
|
|
130
|
+
A.current = f, V.current = e.source, !h(e.source) && d.current.onSelectionChange?.(f, i);
|
|
131
|
+
}, er),
|
|
129
132
|
[h, a]
|
|
130
|
-
),
|
|
133
|
+
), L = m(() => {
|
|
131
134
|
if (n)
|
|
132
135
|
return {
|
|
133
|
-
...
|
|
134
|
-
colId:
|
|
136
|
+
...Qe,
|
|
137
|
+
colId: Xe,
|
|
135
138
|
headerName: "",
|
|
136
|
-
headerClass:
|
|
137
|
-
cellClass:
|
|
138
|
-
headerComponent: n ===
|
|
139
|
+
headerClass: je,
|
|
140
|
+
cellClass: Ve,
|
|
141
|
+
headerComponent: n === Y.MULTIPLE ? Me : void 0,
|
|
139
142
|
headerComponentParams: { label: M },
|
|
140
143
|
cellRenderer: (e) => {
|
|
141
144
|
if (!e.data) return null;
|
|
142
145
|
const r = a(e.data);
|
|
143
146
|
return /* @__PURE__ */ o(
|
|
144
|
-
|
|
147
|
+
Be,
|
|
145
148
|
{
|
|
146
149
|
params: e,
|
|
147
150
|
mode: n,
|
|
148
151
|
rowId: r,
|
|
149
|
-
radioName:
|
|
152
|
+
radioName: j,
|
|
150
153
|
label: d.current.selectRowLabel?.(e.data) ?? "Select row",
|
|
151
154
|
disabled: p?.has(r)
|
|
152
155
|
}
|
|
@@ -158,8 +161,8 @@ const $e = "dial-kit-grid-selection", qe = 150, Ke = 100, Rr = ({
|
|
|
158
161
|
M,
|
|
159
162
|
a,
|
|
160
163
|
p,
|
|
161
|
-
|
|
162
|
-
]),
|
|
164
|
+
j
|
|
165
|
+
]), $ = s(
|
|
163
166
|
(e) => {
|
|
164
167
|
if (!e.cellRenderer)
|
|
165
168
|
return { ...e, cellRenderer: G };
|
|
@@ -168,21 +171,21 @@ const $e = "dial-kit-grid-selection", qe = 150, Ke = 100, Rr = ({
|
|
|
168
171
|
return e;
|
|
169
172
|
const f = e.cellRenderer;
|
|
170
173
|
return { ...e, cellRenderer: (E) => {
|
|
171
|
-
const
|
|
172
|
-
return C(E,
|
|
174
|
+
const Ie = u(E.data), X = typeof f == "function" ? f : void 0, Te = X ? /* @__PURE__ */ o(X, { ...E }) : G(E);
|
|
175
|
+
return C(E, Te, Ie);
|
|
173
176
|
} };
|
|
174
177
|
},
|
|
175
178
|
[u, G, C]
|
|
176
|
-
),
|
|
177
|
-
const e =
|
|
178
|
-
return
|
|
179
|
-
}, [
|
|
180
|
-
defaultColDef:
|
|
179
|
+
), Ce = m(() => {
|
|
180
|
+
const e = Z ? (g ?? []).map($) : g ?? [];
|
|
181
|
+
return L ? [L, ...e] : e;
|
|
182
|
+
}, [g, Z, $, L]), {
|
|
183
|
+
defaultColDef: q,
|
|
181
184
|
rowSelection: R,
|
|
182
|
-
...
|
|
183
|
-
} =
|
|
185
|
+
...he
|
|
186
|
+
} = O ?? {}, Re = m(
|
|
184
187
|
() => ({
|
|
185
|
-
minWidth:
|
|
188
|
+
minWidth: Ye,
|
|
186
189
|
resizable: !0,
|
|
187
190
|
sortable: !0,
|
|
188
191
|
floatingFilter: !0,
|
|
@@ -191,68 +194,68 @@ const $e = "dial-kit-grid-selection", qe = 150, Ke = 100, Rr = ({
|
|
|
191
194
|
filterPlaceholder: k,
|
|
192
195
|
buttons: ["reset"]
|
|
193
196
|
},
|
|
194
|
-
comparator:
|
|
195
|
-
...
|
|
197
|
+
comparator: xe,
|
|
198
|
+
...We(q)
|
|
196
199
|
}),
|
|
197
|
-
[k,
|
|
198
|
-
),
|
|
199
|
-
e.api.sizeColumnsToFit(),
|
|
200
|
+
[k, q]
|
|
201
|
+
), Ee = (e) => {
|
|
202
|
+
e.api.sizeColumnsToFit(), ce(e.api), O?.onGridReady?.(e), se?.(e.api);
|
|
200
203
|
};
|
|
201
|
-
|
|
204
|
+
_(() => {
|
|
202
205
|
t && c && t.setGridOption("rowData", c);
|
|
203
206
|
}, [t, c]);
|
|
204
|
-
const
|
|
207
|
+
const _e = s(
|
|
205
208
|
() => /* @__PURE__ */ o(
|
|
206
|
-
|
|
209
|
+
Ue,
|
|
207
210
|
{
|
|
208
211
|
live: !0,
|
|
209
|
-
title:
|
|
210
|
-
description:
|
|
211
|
-
icon: x ?? /* @__PURE__ */ o(
|
|
212
|
+
title: W,
|
|
213
|
+
description: z,
|
|
214
|
+
icon: x ?? /* @__PURE__ */ o(be, { size: 100, stroke: 0.5, "aria-hidden": "true" })
|
|
212
215
|
}
|
|
213
216
|
),
|
|
214
|
-
[
|
|
215
|
-
),
|
|
217
|
+
[W, z, x]
|
|
218
|
+
), K = typeof R == "object" ? R : void 0, ge = m(() => n ? {
|
|
216
219
|
isRowSelectable: (e) => !u(e.data),
|
|
217
220
|
/*
|
|
218
221
|
Merged, not replaced, the way `defaultColDef` is: a consumer reaching
|
|
219
222
|
for `isRowSelectable` alone would otherwise hand ag-Grid a whole new
|
|
220
223
|
object and lose the three settings below with it.
|
|
221
224
|
*/
|
|
222
|
-
...
|
|
225
|
+
...K,
|
|
223
226
|
/*
|
|
224
227
|
`selectionMode` owns the mode, because it also decides whether the
|
|
225
228
|
selection column draws checkboxes or radios.
|
|
226
229
|
*/
|
|
227
|
-
mode: n ===
|
|
230
|
+
mode: n === Y.SINGLE ? "singleRow" : "multiRow",
|
|
228
231
|
// The controls live in this component's own selection column, so
|
|
229
232
|
// ag-Grid's inputs are switched off and only its behaviour is used.
|
|
230
233
|
checkboxes: !1,
|
|
231
234
|
headerCheckbox: !1
|
|
232
235
|
} : R, [
|
|
233
236
|
R,
|
|
234
|
-
|
|
237
|
+
K,
|
|
235
238
|
u,
|
|
236
239
|
n
|
|
237
240
|
]);
|
|
238
|
-
|
|
239
|
-
t && c &&
|
|
241
|
+
_(() => {
|
|
242
|
+
t && c && A.current.size && A.current.forEach((e) => {
|
|
240
243
|
const r = t.getRowNode(e);
|
|
241
244
|
r && !r.isSelected() && r.setSelected(!0, !1, S.API);
|
|
242
245
|
});
|
|
243
|
-
}, [t, c]),
|
|
246
|
+
}, [t, c]), _(() => {
|
|
244
247
|
t && l && (t.deselectAll("all", S.API), l.forEach((e) => {
|
|
245
248
|
const r = t.getRowNode(e);
|
|
246
249
|
r && !r.isSelected() && r.setSelected(!0, !1, S.API);
|
|
247
250
|
}));
|
|
248
251
|
}, [t, l]);
|
|
249
|
-
const
|
|
252
|
+
const Ne = s(
|
|
250
253
|
(e) => e.data ? a(e.data) : "",
|
|
251
254
|
[a]
|
|
252
255
|
);
|
|
253
|
-
return
|
|
256
|
+
return _(() => {
|
|
254
257
|
const e = h(
|
|
255
|
-
|
|
258
|
+
V.current
|
|
256
259
|
);
|
|
257
260
|
if (t && l?.size && e) {
|
|
258
261
|
const r = Array.from(l)[0];
|
|
@@ -264,45 +267,46 @@ const $e = "dial-kit-grid-selection", qe = 150, Ke = 100, Rr = ({
|
|
|
264
267
|
}, [t, h, l]), /* @__PURE__ */ o(
|
|
265
268
|
"div",
|
|
266
269
|
{
|
|
267
|
-
className:
|
|
268
|
-
|
|
270
|
+
className: te(
|
|
271
|
+
Ke,
|
|
269
272
|
"size-full",
|
|
270
|
-
n &&
|
|
271
|
-
n &&
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
n && qe,
|
|
274
|
+
n && Se && $e,
|
|
275
|
+
ae && Ze,
|
|
276
|
+
D && Je,
|
|
277
|
+
ne
|
|
274
278
|
),
|
|
275
279
|
role: "region",
|
|
276
|
-
"aria-label":
|
|
277
|
-
"aria-busy":
|
|
280
|
+
"aria-label": ie,
|
|
281
|
+
"aria-busy": P,
|
|
278
282
|
children: /* @__PURE__ */ o("div", { className: "h-full overflow-x-auto", children: /* @__PURE__ */ o(
|
|
279
|
-
|
|
283
|
+
Le,
|
|
280
284
|
{
|
|
281
285
|
rowModelType: "clientSide",
|
|
282
|
-
headerHeight:
|
|
283
|
-
rowHeight:
|
|
286
|
+
headerHeight: oe,
|
|
287
|
+
rowHeight: oe,
|
|
284
288
|
cellSelection: !1,
|
|
285
|
-
theme:
|
|
289
|
+
theme: me,
|
|
286
290
|
autoSizeStrategy: { type: "fitGridWidth" },
|
|
287
|
-
columnDefs:
|
|
288
|
-
defaultColDef:
|
|
289
|
-
onGridSizeChanged:
|
|
290
|
-
onGridReady:
|
|
291
|
-
loading:
|
|
291
|
+
columnDefs: Ce,
|
|
292
|
+
defaultColDef: Re,
|
|
293
|
+
onGridSizeChanged: fe,
|
|
294
|
+
onGridReady: Ee,
|
|
295
|
+
loading: P,
|
|
292
296
|
suppressCellFocus: !0,
|
|
293
297
|
suppressDragLeaveHidesColumns: !0,
|
|
294
|
-
noRowsOverlayComponent:
|
|
298
|
+
noRowsOverlayComponent: _e,
|
|
295
299
|
rowData: c,
|
|
296
|
-
rowSelection:
|
|
297
|
-
onSelectionChanged:
|
|
298
|
-
getRowId:
|
|
299
|
-
...
|
|
300
|
+
rowSelection: ge,
|
|
301
|
+
onSelectionChanged: pe,
|
|
302
|
+
getRowId: Ne,
|
|
303
|
+
...he
|
|
300
304
|
}
|
|
301
305
|
) })
|
|
302
306
|
}
|
|
303
307
|
);
|
|
304
308
|
};
|
|
305
309
|
export {
|
|
306
|
-
|
|
307
|
-
|
|
310
|
+
Xe as GRID_SELECTION_COLUMN_ID,
|
|
311
|
+
Nr as Grid
|
|
308
312
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = "dial-kit-grid", t = "dial-kit-grid-with-selection", d = "dial-kit-grid-without-header-borders",
|
|
1
|
+
const a = "dial-kit-grid", t = "dial-kit-grid-with-selection", d = "dial-kit-grid-chat", i = "dial-kit-grid-without-header-borders", l = "dial-kit-grid-row-select", n = "dial-kit-grid-header-select", c = "dial-kit-grid-selection-visible", C = "dial-kit-grid-align-right", s = 40, o = "0.5px solid var(--stroke-tertiary, #E0E6F0)", _ = {
|
|
2
2
|
accentColor: "var(--bg-control-accent, #1D4ED8)",
|
|
3
3
|
backgroundColor: "var(--bg-layer-raised, #FCFCFC)",
|
|
4
4
|
oddRowBackgroundColor: "var(--bg-layer-sunken, #EEF1F7)",
|
|
@@ -43,14 +43,15 @@ const a = "dial-kit-grid", t = "dial-kit-grid-with-selection", d = "dial-kit-gri
|
|
|
43
43
|
};
|
|
44
44
|
var e = /* @__PURE__ */ ((r) => (r.API = "api", r.ROW_DATA_CHANGED = "rowDataChanged", r.CHECKBOX_SELECTED = "checkboxSelected", r))(e || {});
|
|
45
45
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
C as GRID_ALIGN_RIGHT_CLASS,
|
|
47
|
+
d as GRID_CHAT_CLASS,
|
|
48
|
+
n as GRID_HEADER_SELECT_CLASS,
|
|
48
49
|
a as GRID_ROOT_CLASS,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
l as GRID_ROW_SELECT_CLASS,
|
|
51
|
+
c as GRID_SELECTION_VISIBLE_CLASS,
|
|
52
|
+
_ as GRID_THEME_PARAMS,
|
|
53
|
+
i as GRID_WITHOUT_HEADER_BORDERS_CLASS,
|
|
53
54
|
t as GRID_WITH_SELECTION_CLASS,
|
|
54
|
-
|
|
55
|
+
s as ROW_HEIGHT,
|
|
55
56
|
e as SelectionEventSourceType
|
|
56
57
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.16.0-dev.
|
|
3
|
-
"generatedAt": "2026-10-
|
|
2
|
+
"version": "0.16.0-dev.44",
|
|
3
|
+
"generatedAt": "2026-10-24T20:43:47.618Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -5585,6 +5585,13 @@
|
|
|
5585
5585
|
"required": false,
|
|
5586
5586
|
"defaultValue": "GridColorScheme.Light",
|
|
5587
5587
|
"description": "AG Grid color scheme. `dark` paints native controls dark."
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
"name": "appearance",
|
|
5591
|
+
"type": "GridAppearance",
|
|
5592
|
+
"required": false,
|
|
5593
|
+
"defaultValue": "GridAppearance.Default",
|
|
5594
|
+
"description": "Visual treatment; `chat` draws the borderless \"Chat table\"."
|
|
5588
5595
|
}
|
|
5589
5596
|
],
|
|
5590
5597
|
"examples": [
|
|
@@ -11847,6 +11854,22 @@
|
|
|
11847
11854
|
"sourceFile": "types/transfer-queue.ts",
|
|
11848
11855
|
"description": "Lifecycle status of one item in a `TransferQueue`."
|
|
11849
11856
|
},
|
|
11857
|
+
{
|
|
11858
|
+
"name": "GridAppearance",
|
|
11859
|
+
"kind": "enum",
|
|
11860
|
+
"members": [
|
|
11861
|
+
{
|
|
11862
|
+
"name": "Default",
|
|
11863
|
+
"value": "'default'"
|
|
11864
|
+
},
|
|
11865
|
+
{
|
|
11866
|
+
"name": "Chat",
|
|
11867
|
+
"value": "'chat'"
|
|
11868
|
+
}
|
|
11869
|
+
],
|
|
11870
|
+
"sourceFile": "types/grid.ts",
|
|
11871
|
+
"description": "Visual treatment of `Grid`. `Default` is the framed data grid. `Chat` is the\n\"Chat table\" of the design: a borderless card with a 12px corner and the MD\nshadow, row dividers inset by the cell padding, and rounded hover and\nselected rows."
|
|
11872
|
+
},
|
|
11850
11873
|
{
|
|
11851
11874
|
"name": "GridColorScheme",
|
|
11852
11875
|
"kind": "enum",
|