@reportportal/ui-kit 0.0.1-alpha.255 → 0.0.1-alpha.256
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/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-fc873b61.js → table-8e741031.js} +314 -313
- package/dist/table.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as j, Fragment as Qt } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as ee, useState as U, useCallback as A, useEffect as B, useRef as W, useLayoutEffect as pt, forwardRef as Zt, Fragment as Ot } from "react";
|
|
3
3
|
import { Resizable as Dt } from "react-resizable";
|
|
4
4
|
import { c as He } from "./bind-06a7ff84.js";
|
|
@@ -11,168 +11,168 @@ import "react-dnd";
|
|
|
11
11
|
import "react-dnd-html5-backend";
|
|
12
12
|
import { u as tn } from "./useEllipsisTitle-462fa254.js";
|
|
13
13
|
import { i as nn } from "./isEmpty-ccacb5ff.js";
|
|
14
|
-
const ft = (t) => typeof t == "string", rn = "
|
|
14
|
+
const ft = (t) => typeof t == "string", rn = "_table_1wp8m_1", sn = "_resizable_1wp8m_65", cn = "_selectable_1wp8m_90", on = "_expanded_1wp8m_86", ln = "_label_1wp8m_391", an = {
|
|
15
15
|
table: rn,
|
|
16
|
-
"fixed-header": "_fixed-
|
|
17
|
-
"external-scroll-container": "_external-scroll-
|
|
18
|
-
"horizontally-scrollable-container": "_horizontally-scrollable-
|
|
19
|
-
"table-header": "_table-
|
|
20
|
-
"sticky-header": "_sticky-
|
|
21
|
-
"pinned-header": "_pinned-
|
|
22
|
-
"horizontally-scrollable": "_horizontally-
|
|
16
|
+
"fixed-header": "_fixed-header_1wp8m_9",
|
|
17
|
+
"external-scroll-container": "_external-scroll-container_1wp8m_13",
|
|
18
|
+
"horizontally-scrollable-container": "_horizontally-scrollable-container_1wp8m_20",
|
|
19
|
+
"table-header": "_table-header_1wp8m_25",
|
|
20
|
+
"sticky-header": "_sticky-header_1wp8m_33",
|
|
21
|
+
"pinned-header": "_pinned-header_1wp8m_42",
|
|
22
|
+
"horizontally-scrollable": "_horizontally-scrollable_1wp8m_20",
|
|
23
23
|
resizable: sn,
|
|
24
|
-
"resizable-column": "_resizable-
|
|
25
|
-
"select-all-checkbox": "_select-all-
|
|
26
|
-
"select-all-checkbox-selected": "_select-all-checkbox-
|
|
27
|
-
"table-row": "_table-
|
|
28
|
-
"expanded-cell": "_expanded-
|
|
24
|
+
"resizable-column": "_resizable-column_1wp8m_65",
|
|
25
|
+
"select-all-checkbox": "_select-all-checkbox_1wp8m_72",
|
|
26
|
+
"select-all-checkbox-selected": "_select-all-checkbox-selected_1wp8m_76",
|
|
27
|
+
"table-row": "_table-row_1wp8m_81",
|
|
28
|
+
"expanded-cell": "_expanded-cell_1wp8m_86",
|
|
29
29
|
selectable: cn,
|
|
30
|
-
"row-content-wrapper": "_row-content-
|
|
31
|
-
"pinned-column": "_pinned-
|
|
32
|
-
"has-scroll": "_has-
|
|
33
|
-
"table-row-content": "_table-row-
|
|
34
|
-
"expand-cell": "_expand-
|
|
35
|
-
"left-border-accent": "_left-border-
|
|
36
|
-
"size-small": "_size-
|
|
37
|
-
"size-large": "_size-
|
|
38
|
-
"table-body": "_table-
|
|
39
|
-
"scrollable-body": "_scrollable-
|
|
40
|
-
"expanded-content-row": "_expanded-content-
|
|
41
|
-
"with-checkbox-track": "_with-checkbox-
|
|
42
|
-
"expanded-content-cell": "_expanded-content-
|
|
43
|
-
"primitive-cell-text": "_primitive-cell-
|
|
44
|
-
"table-header-cell": "_table-header-
|
|
45
|
-
"table-cell": "_table-
|
|
46
|
-
"action-menu-cell": "_action-menu-
|
|
47
|
-
"checkbox-cell": "_checkbox-
|
|
48
|
-
"expand-all-tooltip-wrapper": "_expand-all-tooltip-
|
|
49
|
-
"expand-all-tooltip-content": "_expand-all-tooltip-
|
|
50
|
-
"expand-icon": "_expand-
|
|
30
|
+
"row-content-wrapper": "_row-content-wrapper_1wp8m_94",
|
|
31
|
+
"pinned-column": "_pinned-column_1wp8m_102",
|
|
32
|
+
"has-scroll": "_has-scroll_1wp8m_102",
|
|
33
|
+
"table-row-content": "_table-row-content_1wp8m_105",
|
|
34
|
+
"expand-cell": "_expand-cell_1wp8m_122",
|
|
35
|
+
"left-border-accent": "_left-border-accent_1wp8m_125",
|
|
36
|
+
"size-small": "_size-small_1wp8m_135",
|
|
37
|
+
"size-large": "_size-large_1wp8m_146",
|
|
38
|
+
"table-body": "_table-body_1wp8m_158",
|
|
39
|
+
"scrollable-body": "_scrollable-body_1wp8m_164",
|
|
40
|
+
"expanded-content-row": "_expanded-content-row_1wp8m_228",
|
|
41
|
+
"with-checkbox-track": "_with-checkbox-track_1wp8m_243",
|
|
42
|
+
"expanded-content-cell": "_expanded-content-cell_1wp8m_246",
|
|
43
|
+
"primitive-cell-text": "_primitive-cell-text_1wp8m_255",
|
|
44
|
+
"table-header-cell": "_table-header-cell_1wp8m_264",
|
|
45
|
+
"table-cell": "_table-cell_1wp8m_265",
|
|
46
|
+
"action-menu-cell": "_action-menu-cell_1wp8m_271",
|
|
47
|
+
"checkbox-cell": "_checkbox-cell_1wp8m_299",
|
|
48
|
+
"expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1wp8m_340",
|
|
49
|
+
"expand-all-tooltip-content": "_expand-all-tooltip-content_1wp8m_349",
|
|
50
|
+
"expand-icon": "_expand-icon_1wp8m_358",
|
|
51
51
|
expanded: on,
|
|
52
|
-
"primary-cell": "_primary-
|
|
52
|
+
"primary-cell": "_primary-cell_1wp8m_367",
|
|
53
53
|
label: ln,
|
|
54
|
-
"sortable-cell": "_sortable-
|
|
55
|
-
"sort-disabled": "_sort-
|
|
56
|
-
"sort-disabled-tooltip-wrapper": "_sort-disabled-tooltip-
|
|
57
|
-
"align-right": "_align-
|
|
58
|
-
"align-center": "_align-
|
|
59
|
-
"table-wrapper": "_table-
|
|
60
|
-
"checkbox-column": "_checkbox-
|
|
61
|
-
"checkbox-header": "_checkbox-
|
|
62
|
-
"checkbox-body": "_checkbox-
|
|
63
|
-
"checkbox-row": "_checkbox-
|
|
64
|
-
"checkbox-tooltip-wrapper": "_checkbox-tooltip-
|
|
65
|
-
}, ut = "asc", Q = 32, _t = 100,
|
|
54
|
+
"sortable-cell": "_sortable-cell_1wp8m_405",
|
|
55
|
+
"sort-disabled": "_sort-disabled_1wp8m_408",
|
|
56
|
+
"sort-disabled-tooltip-wrapper": "_sort-disabled-tooltip-wrapper_1wp8m_414",
|
|
57
|
+
"align-right": "_align-right_1wp8m_419",
|
|
58
|
+
"align-center": "_align-center_1wp8m_425",
|
|
59
|
+
"table-wrapper": "_table-wrapper_1wp8m_479",
|
|
60
|
+
"checkbox-column": "_checkbox-column_1wp8m_491",
|
|
61
|
+
"checkbox-header": "_checkbox-header_1wp8m_500",
|
|
62
|
+
"checkbox-body": "_checkbox-body_1wp8m_521",
|
|
63
|
+
"checkbox-row": "_checkbox-row_1wp8m_528",
|
|
64
|
+
"checkbox-tooltip-wrapper": "_checkbox-tooltip-wrapper_1wp8m_539"
|
|
65
|
+
}, ut = "asc", Q = 32, _t = 100, dn = 48, We = 48, hn = (t) => t.toLowerCase() === ut, pn = (t) => t.map((c) => c.key), J = (t) => "primary" in t && t.primary === !0, lt = (t) => {
|
|
66
66
|
var r;
|
|
67
67
|
return `size-${((r = t.rowConfigs) == null ? void 0 : r.size) ?? "default"}`;
|
|
68
|
-
}, Me = (t) => ft(t) ? t : `${t}px`, fn = (t, c, r, i, h,
|
|
68
|
+
}, Me = (t) => ft(t) ? t : `${t}px`, fn = (t, c, r, i, h, m = !1) => {
|
|
69
69
|
let p = 0;
|
|
70
|
-
i && (p += Q), h && !
|
|
71
|
-
for (let
|
|
72
|
-
const
|
|
73
|
-
if (J(
|
|
74
|
-
const o = r.current.get(
|
|
70
|
+
i && (p += Q), h && !m && (p += Q);
|
|
71
|
+
for (let g = 0; g < t; g++) {
|
|
72
|
+
const d = c[g];
|
|
73
|
+
if (J(d)) {
|
|
74
|
+
const o = r.current.get(d.key) || _t;
|
|
75
75
|
p += o;
|
|
76
76
|
} else {
|
|
77
|
-
const o =
|
|
77
|
+
const o = d, l = ft(o.width) ? parseInt(o.width, 10) || 0 : o.width;
|
|
78
78
|
p += l;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return p;
|
|
82
|
-
}, he = (t, c, r, i, h,
|
|
83
|
-
const
|
|
82
|
+
}, he = (t, c, r, i, h, m, p, g = !1) => {
|
|
83
|
+
const d = {};
|
|
84
84
|
if (!J(t)) {
|
|
85
85
|
const o = t;
|
|
86
|
-
|
|
86
|
+
d.textAlign = o.align;
|
|
87
87
|
}
|
|
88
88
|
if (c && r !== void 0) {
|
|
89
89
|
const o = fn(
|
|
90
90
|
r,
|
|
91
91
|
i,
|
|
92
92
|
h,
|
|
93
|
-
|
|
93
|
+
m,
|
|
94
94
|
p,
|
|
95
|
-
|
|
95
|
+
g
|
|
96
96
|
);
|
|
97
|
-
|
|
97
|
+
d.left = `${o}px`;
|
|
98
98
|
}
|
|
99
|
-
return
|
|
100
|
-
},
|
|
99
|
+
return d;
|
|
100
|
+
}, at = (t, c, r, i, h, m = !1, p, g = !1, d = !1) => {
|
|
101
101
|
const o = [];
|
|
102
|
-
r && o.push(`${Q}px`),
|
|
102
|
+
r && o.push(`${Q}px`), m && i && !d && o.push(`${Q}px`);
|
|
103
103
|
const l = (f) => {
|
|
104
104
|
if ((p == null ? void 0 : p[f.key]) !== void 0) {
|
|
105
105
|
o.push(`${p[f.key]}px`);
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
if (J(f)) {
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
-
o.push(Me(
|
|
109
|
+
const v = f;
|
|
110
|
+
if (g && v.width) {
|
|
111
|
+
o.push(Me(v.width));
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
const L =
|
|
114
|
+
const L = v.width ? Me(v.width) : `${_t}px`;
|
|
115
115
|
o.push(`minmax(${L}, 1fr)`);
|
|
116
116
|
} else {
|
|
117
117
|
const L = Me(f.width);
|
|
118
118
|
o.push(L);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
return t.forEach(l), c.forEach(l), h && o.push(`${
|
|
121
|
+
return t.forEach(l), c.forEach(l), h && o.push(`${dn}px`), o.join(" ");
|
|
122
122
|
}, un = ({
|
|
123
123
|
primaryColumns: t,
|
|
124
124
|
fixedColumns: c,
|
|
125
125
|
pinnedColumnKeys: r
|
|
126
126
|
}) => ee(() => {
|
|
127
127
|
const i = [], h = [];
|
|
128
|
-
return t.forEach((
|
|
129
|
-
const p = { ...
|
|
130
|
-
r.includes(
|
|
131
|
-
}), c.forEach((
|
|
132
|
-
r.includes(
|
|
128
|
+
return t.forEach((m) => {
|
|
129
|
+
const p = { ...m, primary: !0 };
|
|
130
|
+
r.includes(m.key) ? i.push(p) : h.push(p);
|
|
131
|
+
}), c.forEach((m) => {
|
|
132
|
+
r.includes(m.key) ? i.push(m) : h.push(m);
|
|
133
133
|
}), {
|
|
134
134
|
pinnedColumns: i,
|
|
135
135
|
scrollableColumns: h
|
|
136
136
|
};
|
|
137
137
|
}, [t, c, r]), _n = () => {
|
|
138
|
-
const [t, c] = U(null), [r, i] = U(null), h = A((
|
|
139
|
-
c(
|
|
140
|
-
}, []),
|
|
138
|
+
const [t, c] = U(null), [r, i] = U(null), h = A((d) => {
|
|
139
|
+
c(d);
|
|
140
|
+
}, []), m = A(() => {
|
|
141
141
|
c(null);
|
|
142
|
-
}, []), p = A((
|
|
143
|
-
i(
|
|
144
|
-
}, []),
|
|
142
|
+
}, []), p = A((d) => {
|
|
143
|
+
i(d);
|
|
144
|
+
}, []), g = A(() => {
|
|
145
145
|
i(null);
|
|
146
146
|
}, []);
|
|
147
147
|
return {
|
|
148
148
|
hoveredColumn: t,
|
|
149
149
|
hoveredRow: r,
|
|
150
150
|
handleColumnMouseEnter: h,
|
|
151
|
-
handleColumnMouseLeave:
|
|
151
|
+
handleColumnMouseLeave: m,
|
|
152
152
|
handleRowMouseEnter: p,
|
|
153
|
-
handleRowMouseLeave:
|
|
153
|
+
handleRowMouseLeave: g
|
|
154
154
|
};
|
|
155
|
-
},
|
|
155
|
+
}, wn = ({
|
|
156
156
|
primaryColumns: t,
|
|
157
157
|
fixedColumns: c,
|
|
158
158
|
expandedRowIds: r,
|
|
159
159
|
onToggleRowExpansion: i
|
|
160
160
|
}) => {
|
|
161
|
-
const [h,
|
|
161
|
+
const [h, m] = U(/* @__PURE__ */ new Set());
|
|
162
162
|
B(() => {
|
|
163
|
-
const
|
|
163
|
+
const d = [
|
|
164
164
|
...t.map((l) => l.key),
|
|
165
165
|
...c.map((l) => l.key)
|
|
166
166
|
], o = /* @__PURE__ */ new Set();
|
|
167
167
|
r.forEach((l) => {
|
|
168
|
-
|
|
168
|
+
d.forEach((f) => {
|
|
169
169
|
o.add(`${l}-${f}`);
|
|
170
170
|
});
|
|
171
|
-
}),
|
|
171
|
+
}), m((l) => {
|
|
172
172
|
if (l.size === o.size) {
|
|
173
173
|
let f = !0;
|
|
174
|
-
if (l.forEach((
|
|
175
|
-
o.has(
|
|
174
|
+
if (l.forEach((v) => {
|
|
175
|
+
o.has(v) || (f = !1);
|
|
176
176
|
}), f)
|
|
177
177
|
return l;
|
|
178
178
|
}
|
|
@@ -180,23 +180,23 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
180
180
|
});
|
|
181
181
|
}, [r, t, c]);
|
|
182
182
|
const p = A(
|
|
183
|
-
(
|
|
184
|
-
const o = new Set(h), l = r.includes(
|
|
185
|
-
...t.map((
|
|
186
|
-
...c.map((
|
|
183
|
+
(d) => {
|
|
184
|
+
const o = new Set(h), l = r.includes(d), f = [
|
|
185
|
+
...t.map((v) => v.key),
|
|
186
|
+
...c.map((v) => v.key)
|
|
187
187
|
];
|
|
188
|
-
l ? f.forEach((
|
|
189
|
-
const L = `${
|
|
188
|
+
l ? f.forEach((v) => {
|
|
189
|
+
const L = `${d}-${v}`;
|
|
190
190
|
o.delete(L);
|
|
191
|
-
}) : f.forEach((
|
|
192
|
-
const L = `${
|
|
191
|
+
}) : f.forEach((v) => {
|
|
192
|
+
const L = `${d}-${v}`;
|
|
193
193
|
o.add(L);
|
|
194
|
-
}),
|
|
194
|
+
}), m(o), i(d);
|
|
195
195
|
},
|
|
196
196
|
[h, r, t, c, i]
|
|
197
|
-
),
|
|
198
|
-
(
|
|
199
|
-
const l = `${
|
|
197
|
+
), g = A(
|
|
198
|
+
(d, o) => {
|
|
199
|
+
const l = `${d}-${o}`;
|
|
200
200
|
return h.has(l);
|
|
201
201
|
},
|
|
202
202
|
[h]
|
|
@@ -204,9 +204,9 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
204
204
|
return {
|
|
205
205
|
expandedCells: h,
|
|
206
206
|
handleToggleRowExpansion: p,
|
|
207
|
-
isCellExpanded:
|
|
207
|
+
isCellExpanded: g
|
|
208
208
|
};
|
|
209
|
-
},
|
|
209
|
+
}, mn = () => {
|
|
210
210
|
const t = W(/* @__PURE__ */ new Map()), c = A(
|
|
211
211
|
(r) => (i) => {
|
|
212
212
|
if (!i)
|
|
@@ -220,22 +220,22 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
220
220
|
columnWidthsRef: t,
|
|
221
221
|
setCellRef: c
|
|
222
222
|
};
|
|
223
|
-
},
|
|
223
|
+
}, gn = ({
|
|
224
224
|
enabled: t = !1,
|
|
225
225
|
minWidth: c = 50,
|
|
226
226
|
maxWidth: r = 500,
|
|
227
227
|
columns: i = [],
|
|
228
228
|
columnWidthsRef: h,
|
|
229
|
-
onColumnResize:
|
|
229
|
+
onColumnResize: m,
|
|
230
230
|
initialColumnWidths: p
|
|
231
231
|
}) => {
|
|
232
|
-
const [
|
|
232
|
+
const [g, d] = U({}), o = W(i), l = W(void 0);
|
|
233
233
|
B(() => {
|
|
234
234
|
o.current = i;
|
|
235
235
|
}, [i]);
|
|
236
236
|
const f = A(
|
|
237
237
|
($) => {
|
|
238
|
-
const k = i.find((
|
|
238
|
+
const k = i.find((b) => b.key === $);
|
|
239
239
|
return {
|
|
240
240
|
minWidth: (k == null ? void 0 : k.minWidth) ?? c,
|
|
241
241
|
maxWidth: (k == null ? void 0 : k.maxWidth) ?? r
|
|
@@ -246,40 +246,40 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
246
246
|
B(() => {
|
|
247
247
|
if (p && l.current !== p) {
|
|
248
248
|
const k = {};
|
|
249
|
-
Object.entries(p).forEach(([
|
|
250
|
-
const
|
|
251
|
-
k[
|
|
252
|
-
}),
|
|
249
|
+
Object.entries(p).forEach(([b, R]) => {
|
|
250
|
+
const y = o.current.find((Z) => Z.key === b), F = (y == null ? void 0 : y.minWidth) ?? c, H = (y == null ? void 0 : y.maxWidth) ?? r;
|
|
251
|
+
k[b] = Math.min(H, Math.max(F, R));
|
|
252
|
+
}), d(k), l.current = p;
|
|
253
253
|
}
|
|
254
254
|
}, [p, c, r]);
|
|
255
|
-
const
|
|
256
|
-
if (!t || Object.keys(
|
|
255
|
+
const v = A(() => {
|
|
256
|
+
if (!t || Object.keys(g).length > 0 || !h)
|
|
257
257
|
return;
|
|
258
258
|
const $ = {};
|
|
259
|
-
h.current.forEach((k,
|
|
260
|
-
$[
|
|
261
|
-
}),
|
|
262
|
-
}, [t,
|
|
263
|
-
($) => (k, { size:
|
|
259
|
+
h.current.forEach((k, b) => {
|
|
260
|
+
$[b] = k;
|
|
261
|
+
}), d($);
|
|
262
|
+
}, [t, g, h]), L = A(
|
|
263
|
+
($) => (k, { size: b }) => {
|
|
264
264
|
if (!t)
|
|
265
265
|
return;
|
|
266
|
-
const { minWidth: R, maxWidth:
|
|
267
|
-
|
|
266
|
+
const { minWidth: R, maxWidth: y } = f($), F = Math.min(y, Math.max(R, b.width));
|
|
267
|
+
d((H) => ({ ...H, [$]: F }));
|
|
268
268
|
},
|
|
269
269
|
[t, f]
|
|
270
270
|
), G = A(
|
|
271
271
|
($) => () => {
|
|
272
|
-
!t || !
|
|
272
|
+
!t || !g[$] || m == null || m($, g[$]);
|
|
273
273
|
},
|
|
274
|
-
[t,
|
|
274
|
+
[t, g, m]
|
|
275
275
|
);
|
|
276
276
|
return {
|
|
277
|
-
columnWidths:
|
|
277
|
+
columnWidths: g,
|
|
278
278
|
handleResize: L,
|
|
279
279
|
handleResizeStop: G,
|
|
280
|
-
handleResizeStart:
|
|
280
|
+
handleResizeStart: v
|
|
281
281
|
};
|
|
282
|
-
},
|
|
282
|
+
}, vn = (t, c, r, i, h, m, p, g) => ee(() => {
|
|
283
283
|
if (!t)
|
|
284
284
|
return {
|
|
285
285
|
visible: !1,
|
|
@@ -292,13 +292,13 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
292
292
|
position: { top: 0, left: 0 },
|
|
293
293
|
size: { width: 0, height: 0 }
|
|
294
294
|
};
|
|
295
|
-
const o = t.getBoundingClientRect(), l = (c == null ? void 0 : c.offsetHeight) || 0, f = r == null ? void 0 : r.getBoundingClientRect(),
|
|
295
|
+
const o = t.getBoundingClientRect(), l = (c == null ? void 0 : c.offsetHeight) || 0, f = r == null ? void 0 : r.getBoundingClientRect(), v = Math.min(
|
|
296
296
|
o.bottom,
|
|
297
297
|
(f == null ? void 0 : f.bottom) || Number.MAX_SAFE_INTEGER
|
|
298
298
|
);
|
|
299
299
|
let L;
|
|
300
300
|
i && r && f ? L = f.top - o.top + l : L = l;
|
|
301
|
-
const G = o.top + L, k = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0,
|
|
301
|
+
const G = o.top + L, k = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, b = v - G - k, y = t.scrollHeight > t.clientHeight ? t.offsetWidth - t.clientWidth : 0, F = o.right - We - y;
|
|
302
302
|
return {
|
|
303
303
|
visible: !0,
|
|
304
304
|
position: {
|
|
@@ -307,7 +307,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
307
307
|
},
|
|
308
308
|
size: {
|
|
309
309
|
width: We,
|
|
310
|
-
height:
|
|
310
|
+
height: b
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}, [
|
|
@@ -316,10 +316,10 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
316
316
|
r,
|
|
317
317
|
i,
|
|
318
318
|
h,
|
|
319
|
-
|
|
319
|
+
m,
|
|
320
320
|
p,
|
|
321
|
-
|
|
322
|
-
]),
|
|
321
|
+
g
|
|
322
|
+
]), bn = (t, c, r, i, h, m, p, g) => ee(() => {
|
|
323
323
|
if (!t)
|
|
324
324
|
return {
|
|
325
325
|
visible: !1,
|
|
@@ -357,27 +357,27 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
357
357
|
position: { top: 0, left: 0 },
|
|
358
358
|
size: { width: 0, height: 0 }
|
|
359
359
|
};
|
|
360
|
-
const
|
|
360
|
+
const v = l.find(
|
|
361
361
|
(O) => parseInt(O.getAttribute("data-pinned-index") || "-1", 10) === f
|
|
362
362
|
);
|
|
363
|
-
if (!
|
|
363
|
+
if (!v)
|
|
364
364
|
return {
|
|
365
365
|
visible: !1,
|
|
366
366
|
position: { top: 0, left: 0 },
|
|
367
367
|
size: { width: 0, height: 0 }
|
|
368
368
|
};
|
|
369
|
-
const L =
|
|
369
|
+
const L = v.getBoundingClientRect(), G = t.getBoundingClientRect(), $ = (r == null ? void 0 : r.offsetHeight) || 0, k = i == null ? void 0 : i.getBoundingClientRect(), b = L.right, R = Math.min(
|
|
370
370
|
G.bottom,
|
|
371
371
|
(k == null ? void 0 : k.bottom) || Number.MAX_SAFE_INTEGER
|
|
372
372
|
);
|
|
373
|
-
let
|
|
374
|
-
h && i && k ?
|
|
375
|
-
const F = G.top +
|
|
373
|
+
let y;
|
|
374
|
+
h && i && k ? y = k.top - G.top + $ : y = $;
|
|
375
|
+
const F = G.top + y, Z = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, pe = R - F - Z;
|
|
376
376
|
return {
|
|
377
377
|
visible: !0,
|
|
378
378
|
position: {
|
|
379
379
|
top: F,
|
|
380
|
-
left:
|
|
380
|
+
left: b
|
|
381
381
|
},
|
|
382
382
|
size: {
|
|
383
383
|
width: We,
|
|
@@ -390,93 +390,93 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
390
390
|
r,
|
|
391
391
|
i,
|
|
392
392
|
h,
|
|
393
|
-
|
|
393
|
+
m,
|
|
394
394
|
p,
|
|
395
|
-
|
|
396
|
-
]),
|
|
395
|
+
g
|
|
396
|
+
]), yn = ({ enabled: t, rowCount: c }) => {
|
|
397
397
|
const r = W(/* @__PURE__ */ new Map()), i = W(/* @__PURE__ */ new Map()), h = A(
|
|
398
|
-
(
|
|
399
|
-
const l = String(
|
|
398
|
+
(d) => (o) => {
|
|
399
|
+
const l = String(d);
|
|
400
400
|
o ? r.current.set(l, o) : r.current.delete(l);
|
|
401
401
|
},
|
|
402
402
|
[]
|
|
403
|
-
),
|
|
404
|
-
(
|
|
405
|
-
const l = String(
|
|
403
|
+
), m = A(
|
|
404
|
+
(d) => (o) => {
|
|
405
|
+
const l = String(d);
|
|
406
406
|
o ? i.current.set(l, o) : i.current.delete(l);
|
|
407
407
|
},
|
|
408
408
|
[]
|
|
409
|
-
), p = A((
|
|
410
|
-
const l = `${
|
|
409
|
+
), p = A((d, o) => {
|
|
410
|
+
const l = `${d.offsetHeight}px`;
|
|
411
411
|
o.style.height !== l && (o.style.height = l);
|
|
412
|
-
}, []),
|
|
413
|
-
r.current.forEach((
|
|
412
|
+
}, []), g = A(() => {
|
|
413
|
+
r.current.forEach((d, o) => {
|
|
414
414
|
const l = i.current.get(o);
|
|
415
|
-
l && p(
|
|
415
|
+
l && p(d, l);
|
|
416
416
|
});
|
|
417
417
|
}, [p]);
|
|
418
418
|
return B(() => {
|
|
419
419
|
if (!t)
|
|
420
420
|
return;
|
|
421
|
-
const
|
|
421
|
+
const d = new ResizeObserver((o) => {
|
|
422
422
|
requestAnimationFrame(() => {
|
|
423
423
|
o.forEach((l) => {
|
|
424
|
-
const f = l.target,
|
|
424
|
+
const f = l.target, v = f.dataset.rowId, L = v ? i.current.get(v) : void 0;
|
|
425
425
|
L && p(f, L);
|
|
426
426
|
});
|
|
427
427
|
});
|
|
428
428
|
});
|
|
429
|
-
return r.current.forEach((o) =>
|
|
429
|
+
return r.current.forEach((o) => d.observe(o)), () => d.disconnect();
|
|
430
430
|
}, [t, c, p]), pt(() => {
|
|
431
|
-
t &&
|
|
432
|
-
}, [t, c,
|
|
431
|
+
t && g();
|
|
432
|
+
}, [t, c, g]), { setTableRowRef: h, setCheckboxRowRef: m, syncAllHeights: g };
|
|
433
433
|
}, kn = {
|
|
434
434
|
"resize-handle": "_resize-handle_15uk3_1"
|
|
435
435
|
}, xn = He.bind(kn), En = Zt(
|
|
436
|
-
(t, c) => /* @__PURE__ */
|
|
436
|
+
(t, c) => /* @__PURE__ */ a("div", { ref: c, className: xn("resize-handle"), ...t, children: /* @__PURE__ */ a(Kt, {}) })
|
|
437
437
|
), Ln = {
|
|
438
438
|
"gradient-overlay": "_gradient-overlay_hx7m8_1",
|
|
439
439
|
"direction-right": "_direction-right_hx7m8_5",
|
|
440
440
|
"direction-left": "_direction-left_hx7m8_13"
|
|
441
|
-
}, Nn = He.bind(Ln),
|
|
441
|
+
}, Nn = He.bind(Ln), dt = ({
|
|
442
442
|
portalContainer: t,
|
|
443
443
|
visible: c,
|
|
444
444
|
position: r,
|
|
445
445
|
size: i,
|
|
446
446
|
direction: h,
|
|
447
|
-
className:
|
|
447
|
+
className: m,
|
|
448
448
|
dataTestId: p
|
|
449
449
|
}) => {
|
|
450
450
|
if (!c || !t)
|
|
451
451
|
return null;
|
|
452
|
-
const
|
|
452
|
+
const g = {
|
|
453
453
|
position: "fixed",
|
|
454
454
|
top: `${r.top}px`,
|
|
455
455
|
width: `${i.width}px`,
|
|
456
456
|
height: `${i.height}px`
|
|
457
457
|
};
|
|
458
|
-
return r.left !== void 0 && (
|
|
459
|
-
/* @__PURE__ */
|
|
458
|
+
return r.left !== void 0 && (g.left = `${r.left}px`), r.right !== void 0 && (g.right = `${r.right}px`), en(
|
|
459
|
+
/* @__PURE__ */ a(
|
|
460
460
|
"div",
|
|
461
461
|
{
|
|
462
|
-
className: Nn("gradient-overlay", `direction-${h}`,
|
|
463
|
-
style:
|
|
462
|
+
className: Nn("gradient-overlay", `direction-${h}`, m),
|
|
463
|
+
style: g,
|
|
464
464
|
"data-gradient-type": p
|
|
465
465
|
}
|
|
466
466
|
),
|
|
467
467
|
t
|
|
468
468
|
);
|
|
469
|
-
},
|
|
469
|
+
}, w = He.bind(an), Tn = ({
|
|
470
470
|
value: t,
|
|
471
471
|
expanded: c
|
|
472
472
|
}) => {
|
|
473
473
|
const { ref: r, title: i } = tn(c ? void 0 : t), h = String(t);
|
|
474
|
-
return /* @__PURE__ */
|
|
474
|
+
return /* @__PURE__ */ a(
|
|
475
475
|
"span",
|
|
476
476
|
{
|
|
477
477
|
ref: r,
|
|
478
478
|
title: c ? void 0 : i,
|
|
479
|
-
className:
|
|
479
|
+
className: w({ "primitive-cell-text": !c }),
|
|
480
480
|
children: h
|
|
481
481
|
}
|
|
482
482
|
);
|
|
@@ -490,36 +490,36 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
490
490
|
return null;
|
|
491
491
|
} else
|
|
492
492
|
r = t;
|
|
493
|
-
return typeof r == "string" || typeof r == "number" ? /* @__PURE__ */
|
|
493
|
+
return typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ a(Tn, { value: r, expanded: c }) : r;
|
|
494
494
|
}, zn = ({ column: t }) => {
|
|
495
495
|
const c = W(null), [r, i] = U(!1);
|
|
496
496
|
return B(() => {
|
|
497
497
|
if (c.current) {
|
|
498
|
-
const h = c.current.offsetWidth,
|
|
499
|
-
i(
|
|
498
|
+
const h = c.current.offsetWidth, m = c.current.scrollWidth;
|
|
499
|
+
i(m > h);
|
|
500
500
|
}
|
|
501
|
-
}, [t.header]), /* @__PURE__ */
|
|
501
|
+
}, [t.header]), /* @__PURE__ */ a("span", { ref: c, title: r ? t.header : void 0, children: t.header });
|
|
502
502
|
}, Xn = ({
|
|
503
503
|
data: t,
|
|
504
504
|
primaryColumn: c,
|
|
505
505
|
fixedColumns: r,
|
|
506
506
|
renderRowActions: i,
|
|
507
507
|
className: h = "",
|
|
508
|
-
wrapperClassName:
|
|
508
|
+
wrapperClassName: m = "",
|
|
509
509
|
rowClassName: p = "",
|
|
510
|
-
headerClassName:
|
|
511
|
-
bodyClassName:
|
|
510
|
+
headerClassName: g = "",
|
|
511
|
+
bodyClassName: d = "",
|
|
512
512
|
checkboxColumnClassName: o = "",
|
|
513
513
|
expandColumnClassName: l = "",
|
|
514
514
|
selectable: f = !1,
|
|
515
|
-
selectedRowIds:
|
|
515
|
+
selectedRowIds: v = [],
|
|
516
516
|
sortingDirection: L = ut,
|
|
517
517
|
sortingColumn: G,
|
|
518
518
|
sortableColumns: $,
|
|
519
519
|
isHeaderFixed: k = !1,
|
|
520
|
-
isHorizontallyScrollable:
|
|
520
|
+
isHorizontallyScrollable: b = !1,
|
|
521
521
|
pinnedColumnKeys: R = [],
|
|
522
|
-
isRowsExpandable:
|
|
522
|
+
isRowsExpandable: y = !1,
|
|
523
523
|
isExpandAllVisible: F = !0,
|
|
524
524
|
expandedRowIds: H = [],
|
|
525
525
|
canExpandRow: Z = () => !0,
|
|
@@ -531,18 +531,18 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
531
531
|
isResizable: P = !1,
|
|
532
532
|
minColumnWidth: fe = 50,
|
|
533
533
|
maxColumnWidth: Be = 500,
|
|
534
|
-
isSelectAllCheckboxAlwaysVisible:
|
|
534
|
+
isSelectAllCheckboxAlwaysVisible: wt = !1,
|
|
535
535
|
isCheckboxOutside: T = !1,
|
|
536
536
|
disabledRowIds: ue,
|
|
537
|
-
onChangeSorting:
|
|
537
|
+
onChangeSorting: mt = () => {
|
|
538
538
|
},
|
|
539
|
-
onToggleRowSelection:
|
|
539
|
+
onToggleRowSelection: gt = () => {
|
|
540
540
|
},
|
|
541
|
-
onToggleAllRowsSelection:
|
|
541
|
+
onToggleAllRowsSelection: vt = () => {
|
|
542
542
|
},
|
|
543
|
-
onToggleRowExpansion:
|
|
543
|
+
onToggleRowExpansion: bt = () => {
|
|
544
544
|
},
|
|
545
|
-
onToggleAllRowsExpansion:
|
|
545
|
+
onToggleAllRowsExpansion: yt = () => {
|
|
546
546
|
},
|
|
547
547
|
onColumnResize: kt = () => {
|
|
548
548
|
},
|
|
@@ -567,22 +567,22 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
567
567
|
handleColumnMouseLeave: Tt,
|
|
568
568
|
handleRowMouseEnter: Fe,
|
|
569
569
|
handleRowMouseLeave: qe
|
|
570
|
-
} = _n(), { columnWidthsRef: te, setCellRef: Ue } =
|
|
570
|
+
} = _n(), { columnWidthsRef: te, setCellRef: Ue } = mn(), zt = ee(() => {
|
|
571
571
|
const e = {};
|
|
572
572
|
return D.forEach((n) => {
|
|
573
573
|
"width" in n && typeof n.width == "number" && (e[n.key] = n.width);
|
|
574
574
|
}), r.forEach((n) => {
|
|
575
575
|
"width" in n && typeof n.width == "number" && (e[n.key] = n.width);
|
|
576
576
|
}), Object.keys(e).length > 0 ? e : void 0;
|
|
577
|
-
}, [D, r]), { handleToggleRowExpansion: $t, isCellExpanded: je } =
|
|
577
|
+
}, [D, r]), { handleToggleRowExpansion: $t, isCellExpanded: je } = wn({
|
|
578
578
|
primaryColumns: D,
|
|
579
579
|
fixedColumns: r,
|
|
580
580
|
expandedRowIds: H,
|
|
581
|
-
onToggleRowExpansion:
|
|
581
|
+
onToggleRowExpansion: bt
|
|
582
582
|
}), At = ee(
|
|
583
583
|
() => [...q, ...C],
|
|
584
584
|
[q, C]
|
|
585
|
-
), { columnWidths: oe, handleResize: Mt, handleResizeStop: Wt, handleResizeStart: Ht } =
|
|
585
|
+
), { columnWidths: oe, handleResize: Mt, handleResizeStop: Wt, handleResizeStart: Ht } = gn({
|
|
586
586
|
enabled: P,
|
|
587
587
|
minWidth: fe,
|
|
588
588
|
maxWidth: Be,
|
|
@@ -590,29 +590,29 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
590
590
|
columnWidthsRef: te,
|
|
591
591
|
onColumnResize: kt,
|
|
592
592
|
initialColumnWidths: zt
|
|
593
|
-
}), { setTableRowRef: St, setCheckboxRowRef: Pt } =
|
|
593
|
+
}), { setTableRowRef: St, setCheckboxRowRef: Pt } = yn({
|
|
594
594
|
enabled: f && T,
|
|
595
595
|
rowCount: t.length
|
|
596
596
|
}), Re = (e, n) => {
|
|
597
597
|
const s = e.minWidth ?? fe, u = e.maxWidth ?? Be;
|
|
598
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ a(
|
|
599
599
|
Dt,
|
|
600
600
|
{
|
|
601
601
|
width: oe[e.key] ?? (typeof e.width == "number" ? e.width : fe),
|
|
602
602
|
height: 0,
|
|
603
603
|
axis: "x",
|
|
604
|
-
handle: /* @__PURE__ */
|
|
604
|
+
handle: /* @__PURE__ */ a(En, {}),
|
|
605
605
|
onResizeStart: Ht,
|
|
606
606
|
onResize: Mt(e.key),
|
|
607
607
|
onResizeStop: Wt(e.key),
|
|
608
608
|
minConstraints: [s, 0],
|
|
609
609
|
maxConstraints: [u, 0],
|
|
610
|
-
className:
|
|
610
|
+
className: w("resizable-column"),
|
|
611
611
|
children: n
|
|
612
612
|
},
|
|
613
613
|
e.key
|
|
614
614
|
);
|
|
615
|
-
}, z = W(null), X = W(null), Bt = W(null), ne = W(null),
|
|
615
|
+
}, z = W(null), X = W(null), Bt = W(null), ne = W(null), we = W(null), [I, Gt] = U(!1), ie = A((e) => {
|
|
616
616
|
const n = X.current;
|
|
617
617
|
if (n && n.contains(e))
|
|
618
618
|
return;
|
|
@@ -621,95 +621,95 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
621
621
|
return;
|
|
622
622
|
const u = window.getComputedStyle(s), _ = parseFloat(u.paddingTop) || 0, E = parseFloat(u.paddingBottom) || 0, M = e.offsetHeight + _ + E;
|
|
623
623
|
e.style.setProperty("--expand-cell-top", `${_}px`), e.style.setProperty("--expand-cell-height", `${M}px`);
|
|
624
|
-
}, []), [Xe,
|
|
624
|
+
}, []), [Xe, me] = U(0), [Ie, ge] = U(0), [Ve, ve] = U(0), [Ye, Je] = U(0), le = W(!1), be = W(/* @__PURE__ */ new Set()), re = W(null), ye = vn(
|
|
625
625
|
z.current,
|
|
626
626
|
X.current,
|
|
627
627
|
(x == null ? void 0 : x.current) instanceof HTMLElement ? x.current : null,
|
|
628
|
-
|
|
628
|
+
I,
|
|
629
629
|
Xe,
|
|
630
630
|
Ie,
|
|
631
631
|
Ve,
|
|
632
632
|
Ye
|
|
633
|
-
), ke =
|
|
633
|
+
), ke = bn(
|
|
634
634
|
z.current,
|
|
635
635
|
Xe,
|
|
636
636
|
X.current,
|
|
637
637
|
(x == null ? void 0 : x.current) instanceof HTMLElement ? x.current : null,
|
|
638
|
-
|
|
638
|
+
I,
|
|
639
639
|
Ie,
|
|
640
640
|
Ve,
|
|
641
641
|
Ye
|
|
642
642
|
), Ft = (e) => {
|
|
643
|
-
ce.includes(e) && (S != null && S[e] ||
|
|
644
|
-
}, qt = (e) => ce.includes(e) ? (K == null ? void 0 : K.key) === e ? hn(L) ? /* @__PURE__ */
|
|
643
|
+
ce.includes(e) && (S != null && S[e] || mt({ key: e, direction: L }));
|
|
644
|
+
}, qt = (e) => ce.includes(e) ? (K == null ? void 0 : K.key) === e ? hn(L) ? /* @__PURE__ */ a(ot, {}) : /* @__PURE__ */ a(Ct, {}) : /* @__PURE__ */ a(ot, {}) : null, Qe = (e, n) => {
|
|
645
645
|
const s = S == null ? void 0 : S[n], u = /* @__PURE__ */ j(
|
|
646
646
|
"div",
|
|
647
647
|
{
|
|
648
|
-
className:
|
|
648
|
+
className: w("label", { "sort-disabled": !!s }),
|
|
649
649
|
onClick: () => Ft(n),
|
|
650
650
|
onMouseEnter: () => Nt(n),
|
|
651
651
|
onMouseLeave: Tt,
|
|
652
652
|
children: [
|
|
653
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ a(zn, { column: e }),
|
|
654
654
|
(Lt === n || (K == null ? void 0 : K.key) === n) && qt(n)
|
|
655
655
|
]
|
|
656
656
|
}
|
|
657
657
|
);
|
|
658
|
-
return s ? /* @__PURE__ */
|
|
658
|
+
return s ? /* @__PURE__ */ a(
|
|
659
659
|
Ae,
|
|
660
660
|
{
|
|
661
661
|
content: s,
|
|
662
662
|
placement: "top",
|
|
663
663
|
dynamicWidth: !0,
|
|
664
664
|
portalRoot: se ?? void 0,
|
|
665
|
-
wrapperClassName:
|
|
665
|
+
wrapperClassName: w("sort-disabled-tooltip-wrapper"),
|
|
666
666
|
wrapperTabIndex: -1,
|
|
667
667
|
children: u
|
|
668
668
|
}
|
|
669
669
|
) : u;
|
|
670
670
|
}, Ut = (e) => {
|
|
671
|
-
|
|
671
|
+
gt(e);
|
|
672
672
|
}, Ze = () => {
|
|
673
|
-
|
|
674
|
-
}, xe =
|
|
675
|
-
|
|
673
|
+
vt();
|
|
674
|
+
}, xe = y ? t.filter(Z) : [], Oe = xe.length > 0, jt = () => {
|
|
675
|
+
yt(xe.map((e) => e.id));
|
|
676
676
|
}, Ee = (e) => (ue == null ? void 0 : ue.includes(e)) ?? !1, De = t.every(
|
|
677
|
-
(e) => Ee(e.id) ||
|
|
677
|
+
(e) => Ee(e.id) || v.includes(e.id)
|
|
678
678
|
), Le = t.some(
|
|
679
|
-
(e) => !Ee(e.id) &&
|
|
680
|
-
), Ne = (
|
|
679
|
+
(e) => !Ee(e.id) && v.includes(e.id)
|
|
680
|
+
), Ne = (v == null ? void 0 : v.length) > 0, Rt = !nn(t), Ke = wt && Rt || Ne, Te = pe === "detail", Xt = Oe && xe.every((e) => H.includes(e.id)), It = Se !== void 0 ? Se : Xt, ze = at(
|
|
681
681
|
q,
|
|
682
682
|
C,
|
|
683
|
-
|
|
683
|
+
y,
|
|
684
684
|
f,
|
|
685
685
|
!!i,
|
|
686
686
|
!1,
|
|
687
687
|
P ? oe : void 0,
|
|
688
688
|
P,
|
|
689
689
|
T
|
|
690
|
-
), Vt =
|
|
690
|
+
), Vt = at(
|
|
691
691
|
q,
|
|
692
692
|
C,
|
|
693
|
-
|
|
693
|
+
y,
|
|
694
694
|
f,
|
|
695
695
|
!!i,
|
|
696
696
|
!0,
|
|
697
697
|
P ? oe : void 0,
|
|
698
698
|
P,
|
|
699
699
|
T
|
|
700
|
-
), Ce = f && !T, Yt = Ce ? `${Q}px ${ze}` : ze, et = /* @__PURE__ */
|
|
700
|
+
), Ce = f && !T, Yt = Ce ? `${Q}px ${ze}` : ze, et = /* @__PURE__ */ a("button", { onClick: jt, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ a("span", { className: w("expand-icon", { expanded: It }), children: /* @__PURE__ */ a(it, {}) }) });
|
|
701
701
|
B(() => {
|
|
702
702
|
if (!(x != null && x.current) || !z.current || !X.current)
|
|
703
703
|
return;
|
|
704
|
-
const e = x.current, n = z.current, s = X.current, u =
|
|
705
|
-
const N = n.getBoundingClientRect(), M = e.getBoundingClientRect(), Y = s.offsetHeight,
|
|
704
|
+
const e = x.current, n = z.current, s = X.current, u = we.current, _ = () => {
|
|
705
|
+
const N = n.getBoundingClientRect(), M = e.getBoundingClientRect(), Y = s.offsetHeight, V = N.top - M.top, ae = N.bottom - M.top, st = e.scrollTop > 0 && V <= 0 && ae > Y;
|
|
706
706
|
if (Gt(st), st) {
|
|
707
|
-
const
|
|
708
|
-
s.classList.add(
|
|
707
|
+
const de = N.left, ct = M.top;
|
|
708
|
+
s.classList.add(w("pinned-header")), b && (s.style.overflow = "hidden", s.style.overflowX = "hidden", s.scrollLeft = n.scrollLeft), s.style.left = `${de}px`, s.style.top = `${ct}px`, s.style.width = `${N.width}px`, u && T && (u.style.top = `${ct}px`);
|
|
709
709
|
} else {
|
|
710
|
-
const
|
|
711
|
-
le.current = !0, s.classList.remove(
|
|
712
|
-
n.scrollLeft =
|
|
710
|
+
const de = n.scrollLeft;
|
|
711
|
+
le.current = !0, s.classList.remove(w("pinned-header")), b && (s.scrollLeft = 0), s.style.left = "", s.style.top = "", s.style.width = "", b && (s.style.overflow = "", s.style.overflowX = ""), u && T && (u.style.top = "", u.classList.remove(w("pinned-header"))), b && de > 0 ? requestAnimationFrame(() => {
|
|
712
|
+
n.scrollLeft = de, setTimeout(() => {
|
|
713
713
|
le.current = !1;
|
|
714
714
|
}, 0);
|
|
715
715
|
}) : le.current = !1;
|
|
@@ -720,14 +720,14 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
720
720
|
return e.addEventListener("scroll", _), window.addEventListener("resize", _), () => {
|
|
721
721
|
cancelAnimationFrame(E), e.removeEventListener("scroll", _), window.removeEventListener("resize", _);
|
|
722
722
|
};
|
|
723
|
-
}, [x,
|
|
724
|
-
if (!(x != null && x.current) || !z.current || !X.current || !
|
|
723
|
+
}, [x, b, T]), B(() => {
|
|
724
|
+
if (!(x != null && x.current) || !z.current || !X.current || !I)
|
|
725
725
|
return;
|
|
726
|
-
const e = x.current, n = z.current, s = X.current, u =
|
|
727
|
-
const
|
|
728
|
-
s.style.left = `${
|
|
729
|
-
}, E = (
|
|
730
|
-
le.current || (
|
|
726
|
+
const e = x.current, n = z.current, s = X.current, u = we.current, _ = () => {
|
|
727
|
+
const V = n.getBoundingClientRect(), ae = e.getBoundingClientRect();
|
|
728
|
+
s.style.left = `${V.left}px`, s.style.top = `${ae.top}px`, s.style.width = `${V.width}px`, u && T && (u.style.top = `${ae.top}px`);
|
|
729
|
+
}, E = (V) => {
|
|
730
|
+
le.current || (V === s ? n.scrollLeft = s.scrollLeft : s.scrollLeft = n.scrollLeft, re.current && re.current());
|
|
731
731
|
}, N = () => {
|
|
732
732
|
E(n), _();
|
|
733
733
|
}, M = () => {
|
|
@@ -735,16 +735,16 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
735
735
|
}, Y = () => {
|
|
736
736
|
_();
|
|
737
737
|
};
|
|
738
|
-
return n.addEventListener("scroll", N),
|
|
739
|
-
n.removeEventListener("scroll", N),
|
|
738
|
+
return n.addEventListener("scroll", N), b && s.addEventListener("scroll", M), e.addEventListener("scroll", Y), window.addEventListener("resize", _), E(n), _(), () => {
|
|
739
|
+
n.removeEventListener("scroll", N), b && s.removeEventListener("scroll", M), e.removeEventListener("scroll", Y), window.removeEventListener("resize", _);
|
|
740
740
|
};
|
|
741
|
-
}, [
|
|
742
|
-
if (!z.current || !
|
|
741
|
+
}, [I, x, b, T]), B(() => {
|
|
742
|
+
if (!z.current || !b)
|
|
743
743
|
return;
|
|
744
744
|
const e = z.current, n = x == null ? void 0 : x.current;
|
|
745
|
-
|
|
745
|
+
me(e.scrollLeft), ge((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), ve(e.scrollWidth);
|
|
746
746
|
const s = () => {
|
|
747
|
-
e && (
|
|
747
|
+
e && (me(e.scrollLeft), ge((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), ve(e.scrollWidth));
|
|
748
748
|
};
|
|
749
749
|
let u = null;
|
|
750
750
|
const _ = () => {
|
|
@@ -760,7 +760,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
760
760
|
passive: !0
|
|
761
761
|
});
|
|
762
762
|
const M = () => {
|
|
763
|
-
s(), Je((
|
|
763
|
+
s(), Je((V) => V + 1);
|
|
764
764
|
};
|
|
765
765
|
window.addEventListener("resize", M), re.current = s, s();
|
|
766
766
|
const Y = new ResizeObserver(() => {
|
|
@@ -769,14 +769,14 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
769
769
|
return e && Y.observe(e), () => {
|
|
770
770
|
e.removeEventListener("scroll", E), n && n.removeEventListener("scroll", N), window.removeEventListener("resize", M), Y.disconnect(), u !== null && (cancelAnimationFrame(u), u = null);
|
|
771
771
|
};
|
|
772
|
-
}, [
|
|
773
|
-
if (!z.current || !
|
|
772
|
+
}, [b, x, I, H]), B(() => {
|
|
773
|
+
if (!z.current || !b)
|
|
774
774
|
return;
|
|
775
775
|
const e = z.current, n = x == null ? void 0 : x.current;
|
|
776
776
|
requestAnimationFrame(() => {
|
|
777
|
-
e && (
|
|
777
|
+
e && (me(e.scrollLeft), ge((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), ve(e.scrollWidth), re.current && re.current());
|
|
778
778
|
});
|
|
779
|
-
}, [oe,
|
|
779
|
+
}, [oe, b, x]), B(() => {
|
|
780
780
|
if (!z.current)
|
|
781
781
|
return;
|
|
782
782
|
const e = z.current, n = () => {
|
|
@@ -785,16 +785,16 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
785
785
|
requestAnimationFrame(() => {
|
|
786
786
|
n();
|
|
787
787
|
});
|
|
788
|
-
}, [
|
|
788
|
+
}, [y, t, ie]), B(() => {
|
|
789
789
|
if (!z.current)
|
|
790
790
|
return;
|
|
791
|
-
const e = z.current, n = new Set(H), s =
|
|
791
|
+
const e = z.current, n = new Set(H), s = be.current, u = /* @__PURE__ */ new Set();
|
|
792
792
|
if (H.forEach((E) => {
|
|
793
793
|
s.has(E) || u.add(E);
|
|
794
794
|
}), s.forEach((E) => {
|
|
795
795
|
n.has(E) || u.add(E);
|
|
796
796
|
}), u.size === 0) {
|
|
797
|
-
|
|
797
|
+
be.current = n;
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
800
|
const _ = setTimeout(() => {
|
|
@@ -805,8 +805,8 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
805
805
|
N && ie(N);
|
|
806
806
|
}), Je((E) => E + 1);
|
|
807
807
|
}, 0);
|
|
808
|
-
return
|
|
809
|
-
}, [
|
|
808
|
+
return be.current = n, () => clearTimeout(_);
|
|
809
|
+
}, [y, H, ie]), B(() => {
|
|
810
810
|
if (!ne.current || !z.current || !T)
|
|
811
811
|
return;
|
|
812
812
|
const e = ne.current, n = z.current, s = () => {
|
|
@@ -831,39 +831,39 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
831
831
|
return u.observe(e), () => u.disconnect();
|
|
832
832
|
}, []);
|
|
833
833
|
const tt = (e) => {
|
|
834
|
-
const n = Ee(e.id), s = _e == null ? void 0 : _e(e.id), u = /* @__PURE__ */
|
|
834
|
+
const n = Ee(e.id), s = _e == null ? void 0 : _e(e.id), u = /* @__PURE__ */ a(
|
|
835
835
|
$e,
|
|
836
836
|
{
|
|
837
|
-
value:
|
|
837
|
+
value: v.includes(e.id),
|
|
838
838
|
disabled: n,
|
|
839
839
|
onChange: () => Ut(e.id),
|
|
840
|
-
className:
|
|
840
|
+
className: w("checkbox-cell")
|
|
841
841
|
}
|
|
842
842
|
);
|
|
843
|
-
return s ? /* @__PURE__ */
|
|
843
|
+
return s ? /* @__PURE__ */ a(
|
|
844
844
|
Ae,
|
|
845
845
|
{
|
|
846
846
|
content: s,
|
|
847
847
|
placement: "top",
|
|
848
|
-
wrapperClassName:
|
|
848
|
+
wrapperClassName: w("checkbox-tooltip-wrapper"),
|
|
849
849
|
portalRoot: se ?? void 0,
|
|
850
850
|
children: u
|
|
851
851
|
}
|
|
852
852
|
) : u;
|
|
853
|
-
}, nt =
|
|
853
|
+
}, nt = w("checkbox-cell", "select-all-checkbox", {
|
|
854
854
|
"select-all-checkbox-selected": Le
|
|
855
|
-
}), Jt = () => /* @__PURE__ */ j("div", { className:
|
|
856
|
-
/* @__PURE__ */
|
|
855
|
+
}), Jt = () => /* @__PURE__ */ j("div", { className: w("checkbox-column", o), ref: ne, children: [
|
|
856
|
+
/* @__PURE__ */ a(
|
|
857
857
|
"div",
|
|
858
858
|
{
|
|
859
|
-
ref:
|
|
860
|
-
className:
|
|
859
|
+
ref: we,
|
|
860
|
+
className: w(
|
|
861
861
|
"table-header",
|
|
862
862
|
"checkbox-header",
|
|
863
|
-
{ "pinned-header":
|
|
864
|
-
|
|
863
|
+
{ "pinned-header": I },
|
|
864
|
+
g
|
|
865
865
|
),
|
|
866
|
-
children: Ke && /* @__PURE__ */
|
|
866
|
+
children: Ke && /* @__PURE__ */ a(
|
|
867
867
|
$e,
|
|
868
868
|
{
|
|
869
869
|
value: De,
|
|
@@ -874,11 +874,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
874
874
|
)
|
|
875
875
|
}
|
|
876
876
|
),
|
|
877
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ a("div", { className: w("checkbox-body", d), children: t.map((e, n) => /* @__PURE__ */ a(
|
|
878
878
|
"div",
|
|
879
879
|
{
|
|
880
880
|
ref: Pt(e.id),
|
|
881
|
-
className:
|
|
881
|
+
className: w("checkbox-row", "table-row", lt(e), p),
|
|
882
882
|
onMouseEnter: () => Fe(n),
|
|
883
883
|
onMouseLeave: qe,
|
|
884
884
|
children: (Ne || Ge === n) && tt(e)
|
|
@@ -889,11 +889,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
889
889
|
"div",
|
|
890
890
|
{
|
|
891
891
|
ref: z,
|
|
892
|
-
className:
|
|
892
|
+
className: w(
|
|
893
893
|
"table",
|
|
894
894
|
{
|
|
895
895
|
"fixed-header": k,
|
|
896
|
-
"horizontally-scrollable-container": k && (
|
|
896
|
+
"horizontally-scrollable-container": k && (b || P),
|
|
897
897
|
"external-scroll-container": k && !!x
|
|
898
898
|
},
|
|
899
899
|
h
|
|
@@ -903,23 +903,24 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
903
903
|
"div",
|
|
904
904
|
{
|
|
905
905
|
ref: X,
|
|
906
|
-
className:
|
|
906
|
+
className: w(
|
|
907
907
|
"table-header",
|
|
908
908
|
{
|
|
909
|
-
"sticky-header": k && !
|
|
910
|
-
"
|
|
909
|
+
"sticky-header": k && !I,
|
|
910
|
+
"pinned-header": I,
|
|
911
|
+
"horizontally-scrollable": b,
|
|
911
912
|
resizable: P
|
|
912
913
|
},
|
|
913
|
-
|
|
914
|
+
g
|
|
914
915
|
),
|
|
915
916
|
style: { gridTemplateColumns: Vt },
|
|
916
917
|
children: [
|
|
917
|
-
f && !T && /* @__PURE__ */
|
|
918
|
+
f && !T && /* @__PURE__ */ a(
|
|
918
919
|
"div",
|
|
919
920
|
{
|
|
920
|
-
className:
|
|
921
|
-
"data-base-left":
|
|
922
|
-
children: Ke && /* @__PURE__ */
|
|
921
|
+
className: w("table-header-cell", "checkbox-cell"),
|
|
922
|
+
"data-base-left": y ? Q : 0,
|
|
923
|
+
children: Ke && /* @__PURE__ */ a(
|
|
923
924
|
$e,
|
|
924
925
|
{
|
|
925
926
|
value: De,
|
|
@@ -930,36 +931,36 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
930
931
|
)
|
|
931
932
|
}
|
|
932
933
|
),
|
|
933
|
-
|
|
934
|
+
y && /* @__PURE__ */ a(
|
|
934
935
|
"div",
|
|
935
936
|
{
|
|
936
|
-
className:
|
|
937
|
+
className: w(
|
|
937
938
|
"table-header-cell",
|
|
938
939
|
"expand-cell",
|
|
939
940
|
"left-border-accent",
|
|
940
941
|
l
|
|
941
942
|
),
|
|
942
943
|
"data-base-left": "0",
|
|
943
|
-
children: F && Oe && (Pe ? /* @__PURE__ */
|
|
944
|
+
children: F && Oe && (Pe ? /* @__PURE__ */ a(
|
|
944
945
|
Ae,
|
|
945
946
|
{
|
|
946
947
|
content: Pe,
|
|
947
948
|
placement: "top",
|
|
948
|
-
wrapperClassName:
|
|
949
|
-
contentClassName:
|
|
949
|
+
wrapperClassName: w("expand-all-tooltip-wrapper"),
|
|
950
|
+
contentClassName: w("expand-all-tooltip-content"),
|
|
950
951
|
children: et
|
|
951
952
|
}
|
|
952
953
|
) : et)
|
|
953
954
|
}
|
|
954
955
|
),
|
|
955
956
|
q.map((e, n) => {
|
|
956
|
-
const s = /* @__PURE__ */
|
|
957
|
+
const s = /* @__PURE__ */ a(
|
|
957
958
|
"button",
|
|
958
959
|
{
|
|
959
960
|
"data-column-key": e.key,
|
|
960
961
|
"data-pinned-index": n,
|
|
961
962
|
"aria-disabled": !!(S != null && S[e.key]),
|
|
962
|
-
className:
|
|
963
|
+
className: w("table-header-cell", "pinned-column", {
|
|
963
964
|
[`align-${e.align}`]: "align" in e,
|
|
964
965
|
"primary-cell": J(e),
|
|
965
966
|
"sortable-cell": ce.includes(e.key),
|
|
@@ -971,7 +972,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
971
972
|
n,
|
|
972
973
|
q,
|
|
973
974
|
te,
|
|
974
|
-
|
|
975
|
+
y,
|
|
975
976
|
f,
|
|
976
977
|
T
|
|
977
978
|
),
|
|
@@ -982,11 +983,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
982
983
|
return P ? Re(e, s) : s;
|
|
983
984
|
}),
|
|
984
985
|
C.map((e) => {
|
|
985
|
-
const n = /* @__PURE__ */
|
|
986
|
+
const n = /* @__PURE__ */ a(
|
|
986
987
|
"button",
|
|
987
988
|
{
|
|
988
989
|
"aria-disabled": !!(S != null && S[e.key]),
|
|
989
|
-
className:
|
|
990
|
+
className: w("table-header-cell", {
|
|
990
991
|
[`align-${e.align}`]: "align" in e,
|
|
991
992
|
"primary-cell": J(e),
|
|
992
993
|
"sortable-cell": ce.includes(e.key),
|
|
@@ -998,7 +999,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
998
999
|
void 0,
|
|
999
1000
|
q,
|
|
1000
1001
|
te,
|
|
1001
|
-
|
|
1002
|
+
y,
|
|
1002
1003
|
f,
|
|
1003
1004
|
T
|
|
1004
1005
|
),
|
|
@@ -1008,25 +1009,25 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1008
1009
|
);
|
|
1009
1010
|
return P ? Re(e, n) : n;
|
|
1010
1011
|
}),
|
|
1011
|
-
i && /* @__PURE__ */
|
|
1012
|
+
i && /* @__PURE__ */ a("div", { className: w("table-header-cell", "action-menu-cell") })
|
|
1012
1013
|
]
|
|
1013
1014
|
}
|
|
1014
1015
|
),
|
|
1015
|
-
/* @__PURE__ */
|
|
1016
|
+
/* @__PURE__ */ a(
|
|
1016
1017
|
"div",
|
|
1017
1018
|
{
|
|
1018
1019
|
ref: Bt,
|
|
1019
|
-
className:
|
|
1020
|
+
className: w(
|
|
1020
1021
|
"table-body",
|
|
1021
1022
|
{
|
|
1022
1023
|
"scrollable-body": k,
|
|
1023
|
-
"horizontally-scrollable":
|
|
1024
|
+
"horizontally-scrollable": b,
|
|
1024
1025
|
resizable: P
|
|
1025
1026
|
},
|
|
1026
|
-
|
|
1027
|
+
d
|
|
1027
1028
|
),
|
|
1028
1029
|
children: t.map((e, n) => {
|
|
1029
|
-
const s =
|
|
1030
|
+
const s = y && Z(e), u = s && H.includes(e.id);
|
|
1030
1031
|
return /* @__PURE__ */ j(Ot, { children: [
|
|
1031
1032
|
/* @__PURE__ */ j(
|
|
1032
1033
|
"div",
|
|
@@ -1034,25 +1035,25 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1034
1035
|
"data-row-index": n,
|
|
1035
1036
|
"data-row-id": e.id,
|
|
1036
1037
|
ref: St(e.id),
|
|
1037
|
-
className:
|
|
1038
|
+
className: w("table-row", lt(e), p, {
|
|
1038
1039
|
selectable: f && !T
|
|
1039
1040
|
}),
|
|
1040
1041
|
onMouseEnter: () => Fe(n),
|
|
1041
1042
|
onMouseLeave: qe,
|
|
1042
1043
|
children: [
|
|
1043
|
-
f && !T && /* @__PURE__ */
|
|
1044
|
+
f && !T && /* @__PURE__ */ a(
|
|
1044
1045
|
"div",
|
|
1045
1046
|
{
|
|
1046
|
-
className:
|
|
1047
|
-
"data-base-left":
|
|
1047
|
+
className: w("table-cell", "checkbox-cell"),
|
|
1048
|
+
"data-base-left": y ? Q : 0,
|
|
1048
1049
|
children: (Ne || Ge === n) && tt(e)
|
|
1049
1050
|
}
|
|
1050
1051
|
),
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
|
|
1052
|
+
/* @__PURE__ */ a("div", { className: w("row-content-wrapper"), children: /* @__PURE__ */ j("div", { className: w("table-row-content"), style: { gridTemplateColumns: ze }, children: [
|
|
1053
|
+
y && /* @__PURE__ */ a(
|
|
1053
1054
|
"div",
|
|
1054
1055
|
{
|
|
1055
|
-
className:
|
|
1056
|
+
className: w(
|
|
1056
1057
|
"table-cell",
|
|
1057
1058
|
"expand-cell",
|
|
1058
1059
|
"left-border-accent",
|
|
@@ -1060,26 +1061,26 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1060
1061
|
),
|
|
1061
1062
|
"data-base-left": "0",
|
|
1062
1063
|
"data-row-id": e.id,
|
|
1063
|
-
children: s && /* @__PURE__ */
|
|
1064
|
+
children: s && /* @__PURE__ */ a(
|
|
1064
1065
|
"button",
|
|
1065
1066
|
{
|
|
1066
1067
|
onClick: () => $t(e.id),
|
|
1067
1068
|
"aria-label": u ? "Collapse row" : "Expand row",
|
|
1068
1069
|
"aria-expanded": u,
|
|
1069
|
-
children: /* @__PURE__ */
|
|
1070
|
+
children: /* @__PURE__ */ a("span", { className: w("expand-icon", { expanded: u }), children: /* @__PURE__ */ a(it, {}) })
|
|
1070
1071
|
}
|
|
1071
1072
|
)
|
|
1072
1073
|
}
|
|
1073
1074
|
),
|
|
1074
1075
|
q.map((_, E) => {
|
|
1075
1076
|
const N = !Te && je(e.id, _.key), M = J(_);
|
|
1076
|
-
return /* @__PURE__ */
|
|
1077
|
+
return /* @__PURE__ */ a(
|
|
1077
1078
|
"div",
|
|
1078
1079
|
{
|
|
1079
1080
|
"data-column-key": _.key,
|
|
1080
1081
|
"data-pinned-index": E,
|
|
1081
1082
|
ref: M ? Ue(_.key) : void 0,
|
|
1082
|
-
className:
|
|
1083
|
+
className: w("table-cell", "pinned-column", {
|
|
1083
1084
|
"primary-cell": M,
|
|
1084
1085
|
"expanded-cell": N
|
|
1085
1086
|
}),
|
|
@@ -1089,7 +1090,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1089
1090
|
E,
|
|
1090
1091
|
q,
|
|
1091
1092
|
te,
|
|
1092
|
-
|
|
1093
|
+
y,
|
|
1093
1094
|
f,
|
|
1094
1095
|
T
|
|
1095
1096
|
),
|
|
@@ -1100,11 +1101,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1100
1101
|
}),
|
|
1101
1102
|
C.map((_) => {
|
|
1102
1103
|
const E = !Te && je(e.id, _.key), N = J(_);
|
|
1103
|
-
return /* @__PURE__ */
|
|
1104
|
+
return /* @__PURE__ */ a(
|
|
1104
1105
|
"div",
|
|
1105
1106
|
{
|
|
1106
1107
|
ref: N ? Ue(_.key) : void 0,
|
|
1107
|
-
className:
|
|
1108
|
+
className: w("table-cell", {
|
|
1108
1109
|
"primary-cell": N,
|
|
1109
1110
|
"expanded-cell": E
|
|
1110
1111
|
}),
|
|
@@ -1114,7 +1115,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1114
1115
|
void 0,
|
|
1115
1116
|
q,
|
|
1116
1117
|
te,
|
|
1117
|
-
|
|
1118
|
+
y,
|
|
1118
1119
|
f,
|
|
1119
1120
|
T
|
|
1120
1121
|
),
|
|
@@ -1123,41 +1124,41 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1123
1124
|
_.key
|
|
1124
1125
|
);
|
|
1125
1126
|
}),
|
|
1126
|
-
i && /* @__PURE__ */
|
|
1127
|
+
i && /* @__PURE__ */ a("div", { className: w("table-cell", "action-menu-cell"), children: i(e.metaData) })
|
|
1127
1128
|
] }) })
|
|
1128
1129
|
]
|
|
1129
1130
|
}
|
|
1130
1131
|
),
|
|
1131
|
-
u && Te && O && /* @__PURE__ */
|
|
1132
|
+
u && Te && O && /* @__PURE__ */ a(
|
|
1132
1133
|
"div",
|
|
1133
1134
|
{
|
|
1134
|
-
className:
|
|
1135
|
+
className: w("expanded-content-row", {
|
|
1135
1136
|
"with-checkbox-track": Ce
|
|
1136
1137
|
}),
|
|
1137
1138
|
"data-expanded-row-for": e.id,
|
|
1138
1139
|
style: { gridTemplateColumns: Yt },
|
|
1139
|
-
children: /* @__PURE__ */
|
|
1140
|
+
children: /* @__PURE__ */ a("div", { className: w("expanded-content-cell"), children: O(e) })
|
|
1140
1141
|
}
|
|
1141
1142
|
)
|
|
1142
1143
|
] }, e.id);
|
|
1143
1144
|
})
|
|
1144
1145
|
}
|
|
1145
1146
|
),
|
|
1146
|
-
|
|
1147
|
-
/* @__PURE__ */
|
|
1148
|
-
|
|
1147
|
+
b && /* @__PURE__ */ j(Qt, { children: [
|
|
1148
|
+
/* @__PURE__ */ a(
|
|
1149
|
+
dt,
|
|
1149
1150
|
{
|
|
1150
1151
|
portalContainer: se,
|
|
1151
|
-
visible:
|
|
1152
|
-
position:
|
|
1153
|
-
size:
|
|
1152
|
+
visible: ye.visible,
|
|
1153
|
+
position: ye.position,
|
|
1154
|
+
size: ye.size,
|
|
1154
1155
|
direction: "right",
|
|
1155
1156
|
className: xt,
|
|
1156
1157
|
dataTestId: "right-gradient"
|
|
1157
1158
|
}
|
|
1158
1159
|
),
|
|
1159
|
-
/* @__PURE__ */
|
|
1160
|
-
|
|
1160
|
+
/* @__PURE__ */ a(
|
|
1161
|
+
dt,
|
|
1161
1162
|
{
|
|
1162
1163
|
portalContainer: se,
|
|
1163
1164
|
visible: ke.visible,
|
|
@@ -1172,7 +1173,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
|
|
|
1172
1173
|
]
|
|
1173
1174
|
}
|
|
1174
1175
|
);
|
|
1175
|
-
return T ? /* @__PURE__ */ j("div", { className:
|
|
1176
|
+
return T ? /* @__PURE__ */ j("div", { className: w("table-wrapper", { "fixed-header": k }, m), children: [
|
|
1176
1177
|
Jt(),
|
|
1177
1178
|
rt()
|
|
1178
1179
|
] }) : rt();
|