@reportportal/ui-kit 0.0.1-alpha.152 → 0.0.1-alpha.154
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/chip.js +72 -0
- package/dist/components/chip/chip.d.ts +15 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/issueList/constants.d.ts +5 -0
- package/dist/components/issueList/index.d.ts +2 -0
- package/dist/components/issueList/issueList.d.ts +18 -0
- package/dist/components/table/hooks/useGradientPosition.d.ts +2 -2
- package/dist/index.js +142 -138
- package/dist/issueList.js +125 -0
- package/dist/style.css +1 -1
- package/dist/{table-2c659767.js → table-1aaae76c.js} +348 -347
- package/dist/table.js +1 -1
- package/package.json +1 -1
|
@@ -1,181 +1,181 @@
|
|
|
1
1
|
import { jsx as h, jsxs as F, Fragment as _t } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as ie, useState as
|
|
3
|
-
import { Resizable as
|
|
4
|
-
import { c as
|
|
5
|
-
import { c as
|
|
6
|
-
import { C as
|
|
7
|
-
import { Tooltip as
|
|
2
|
+
import { useMemo as ie, useState as x, useCallback as $, useEffect as S, useRef as C, forwardRef as gt } from "react";
|
|
3
|
+
import { Resizable as vt } from "react-resizable";
|
|
4
|
+
import { c as ye } from "./bind-06a7ff84.js";
|
|
5
|
+
import { c as bt, b as He, a as Pe, S as mt } from "./resizeColumn-d4107941.js";
|
|
6
|
+
import { C as Be } from "./checkbox-ed6cc375.js";
|
|
7
|
+
import { Tooltip as wt } from "./tooltip.js";
|
|
8
8
|
import { createPortal as kt } from "react-dom";
|
|
9
9
|
import { i as Et } from "./isEmpty-ccacb5ff.js";
|
|
10
|
-
const
|
|
11
|
-
table:
|
|
12
|
-
"fixed-header": "_fixed-
|
|
13
|
-
"external-scroll-container": "_external-scroll-
|
|
14
|
-
"horizontally-scrollable-container": "_horizontally-scrollable-
|
|
15
|
-
"table-header": "_table-
|
|
16
|
-
"sticky-header": "_sticky-
|
|
17
|
-
"pinned-header": "_pinned-
|
|
18
|
-
"horizontally-scrollable": "_horizontally-
|
|
19
|
-
resizable:
|
|
20
|
-
"resizable-column": "_resizable-
|
|
21
|
-
"table-row": "_table-
|
|
22
|
-
"expanded-cell": "_expanded-
|
|
10
|
+
const Fe = (t) => typeof t == "string", Tt = "_table_1s7py_1", Lt = "_resizable_1s7py_67", zt = "_selectable_1s7py_84", Nt = "_expanded_1s7py_80", At = "_label_1s7py_352", $t = {
|
|
11
|
+
table: Tt,
|
|
12
|
+
"fixed-header": "_fixed-header_1s7py_10",
|
|
13
|
+
"external-scroll-container": "_external-scroll-container_1s7py_14",
|
|
14
|
+
"horizontally-scrollable-container": "_horizontally-scrollable-container_1s7py_21",
|
|
15
|
+
"table-header": "_table-header_1s7py_26",
|
|
16
|
+
"sticky-header": "_sticky-header_1s7py_34",
|
|
17
|
+
"pinned-header": "_pinned-header_1s7py_44",
|
|
18
|
+
"horizontally-scrollable": "_horizontally-scrollable_1s7py_21",
|
|
19
|
+
resizable: Lt,
|
|
20
|
+
"resizable-column": "_resizable-column_1s7py_67",
|
|
21
|
+
"table-row": "_table-row_1s7py_75",
|
|
22
|
+
"expanded-cell": "_expanded-cell_1s7py_80",
|
|
23
23
|
selectable: zt,
|
|
24
|
-
"row-content-wrapper": "_row-content-
|
|
25
|
-
"pinned-column": "_pinned-
|
|
26
|
-
"has-scroll": "_has-
|
|
27
|
-
"table-row-content": "_table-row-
|
|
28
|
-
"expand-cell": "_expand-
|
|
29
|
-
"left-border-accent": "_left-border-
|
|
30
|
-
"size-small": "_size-
|
|
31
|
-
"size-large": "_size-
|
|
32
|
-
"table-body": "_table-
|
|
33
|
-
"scrollable-body": "_scrollable-
|
|
34
|
-
"table-header-cell": "_table-header-
|
|
35
|
-
"table-cell": "_table-
|
|
36
|
-
"action-menu-cell": "_action-menu-
|
|
37
|
-
"checkbox-cell": "_checkbox-
|
|
38
|
-
"expand-all-tooltip-wrapper": "_expand-all-tooltip-
|
|
39
|
-
"expand-all-tooltip-content": "_expand-all-tooltip-
|
|
40
|
-
"expand-icon": "_expand-
|
|
24
|
+
"row-content-wrapper": "_row-content-wrapper_1s7py_88",
|
|
25
|
+
"pinned-column": "_pinned-column_1s7py_96",
|
|
26
|
+
"has-scroll": "_has-scroll_1s7py_96",
|
|
27
|
+
"table-row-content": "_table-row-content_1s7py_99",
|
|
28
|
+
"expand-cell": "_expand-cell_1s7py_116",
|
|
29
|
+
"left-border-accent": "_left-border-accent_1s7py_119",
|
|
30
|
+
"size-small": "_size-small_1s7py_129",
|
|
31
|
+
"size-large": "_size-large_1s7py_140",
|
|
32
|
+
"table-body": "_table-body_1s7py_152",
|
|
33
|
+
"scrollable-body": "_scrollable-body_1s7py_158",
|
|
34
|
+
"table-header-cell": "_table-header-cell_1s7py_222",
|
|
35
|
+
"table-cell": "_table-cell_1s7py_223",
|
|
36
|
+
"action-menu-cell": "_action-menu-cell_1s7py_229",
|
|
37
|
+
"checkbox-cell": "_checkbox-cell_1s7py_257",
|
|
38
|
+
"expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1s7py_301",
|
|
39
|
+
"expand-all-tooltip-content": "_expand-all-tooltip-content_1s7py_310",
|
|
40
|
+
"expand-icon": "_expand-icon_1s7py_319",
|
|
41
41
|
expanded: Nt,
|
|
42
|
-
"primary-cell": "_primary-
|
|
43
|
-
label:
|
|
44
|
-
"sortable-cell": "_sortable-
|
|
45
|
-
"align-right": "_align-
|
|
46
|
-
"align-center": "_align-
|
|
47
|
-
},
|
|
48
|
-
var
|
|
49
|
-
return `size-${((
|
|
50
|
-
}, ue = (t) =>
|
|
42
|
+
"primary-cell": "_primary-cell_1s7py_328",
|
|
43
|
+
label: At,
|
|
44
|
+
"sortable-cell": "_sortable-cell_1s7py_366",
|
|
45
|
+
"align-right": "_align-right_1s7py_369",
|
|
46
|
+
"align-center": "_align-center_1s7py_375"
|
|
47
|
+
}, Oe = "asc", q = 32, Ue = 100, xt = 48, fe = 48, Mt = (t) => t.toLowerCase() === Oe, Wt = (t) => t.map((i) => i.key), O = (t) => "primary" in t && t.primary === !0, Ht = (t) => {
|
|
48
|
+
var n;
|
|
49
|
+
return `size-${((n = t.rowConfigs) == null ? void 0 : n.size) ?? "default"}`;
|
|
50
|
+
}, ue = (t) => Fe(t) ? t : `${t}px`, Pt = (t, i, n, l, d) => {
|
|
51
51
|
let c = 0;
|
|
52
52
|
l && (c += q), d && (c += q);
|
|
53
53
|
for (let f = 0; f < t; f++) {
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
56
|
-
const o =
|
|
54
|
+
const v = i[f];
|
|
55
|
+
if (O(v)) {
|
|
56
|
+
const o = n.current.get(v.key) || Ue;
|
|
57
57
|
c += o;
|
|
58
58
|
} else {
|
|
59
|
-
const o =
|
|
59
|
+
const o = v, p = Fe(o.width) ? parseInt(o.width, 10) || 0 : o.width;
|
|
60
60
|
c += p;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return c;
|
|
64
|
-
}, re = (t, i,
|
|
65
|
-
const
|
|
66
|
-
if (!
|
|
64
|
+
}, re = (t, i, n, l, d, c, f) => {
|
|
65
|
+
const v = {};
|
|
66
|
+
if (!O(t)) {
|
|
67
67
|
const o = t;
|
|
68
|
-
|
|
68
|
+
v.textAlign = o.align;
|
|
69
69
|
}
|
|
70
|
-
if (i &&
|
|
71
|
-
const o =
|
|
72
|
-
|
|
70
|
+
if (i && n !== void 0) {
|
|
71
|
+
const o = Pt(
|
|
72
|
+
n,
|
|
73
73
|
l,
|
|
74
74
|
d,
|
|
75
75
|
c,
|
|
76
76
|
f
|
|
77
77
|
);
|
|
78
|
-
|
|
78
|
+
v.left = `${o}px`;
|
|
79
79
|
}
|
|
80
|
-
return
|
|
81
|
-
},
|
|
80
|
+
return v;
|
|
81
|
+
}, Ge = (t, i, n, l, d, c = !1, f, v = !1) => {
|
|
82
82
|
const o = [];
|
|
83
|
-
|
|
83
|
+
n && o.push(`${q}px`), c && l && o.push(`${q}px`);
|
|
84
84
|
const p = (a) => {
|
|
85
85
|
if ((f == null ? void 0 : f[a.key]) !== void 0) {
|
|
86
86
|
o.push(`${f[a.key]}px`);
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
o.push(ue(
|
|
89
|
+
if (O(a)) {
|
|
90
|
+
const y = a;
|
|
91
|
+
if (v && y.width) {
|
|
92
|
+
o.push(ue(y.width));
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
o.push(`minmax(${
|
|
95
|
+
const w = y.width ? ue(y.width) : `${Ue}px`;
|
|
96
|
+
o.push(`minmax(${w}, 1fr)`);
|
|
97
97
|
} else {
|
|
98
|
-
const
|
|
99
|
-
o.push(
|
|
98
|
+
const w = ue(a.width);
|
|
99
|
+
o.push(w);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
return t.forEach(p), i.forEach(p), d && o.push(`${
|
|
103
|
-
},
|
|
102
|
+
return t.forEach(p), i.forEach(p), d && o.push(`${xt}px`), o.join(" ");
|
|
103
|
+
}, Bt = ({
|
|
104
104
|
primaryColumns: t,
|
|
105
105
|
fixedColumns: i,
|
|
106
|
-
pinnedColumnKeys:
|
|
106
|
+
pinnedColumnKeys: n
|
|
107
107
|
}) => ie(() => {
|
|
108
108
|
const l = [], d = [];
|
|
109
109
|
return t.forEach((c) => {
|
|
110
110
|
const f = { ...c, primary: !0 };
|
|
111
|
-
|
|
111
|
+
n.includes(c.key) ? l.push(f) : d.push(f);
|
|
112
112
|
}), i.forEach((c) => {
|
|
113
|
-
|
|
113
|
+
n.includes(c.key) ? l.push(c) : d.push(c);
|
|
114
114
|
}), {
|
|
115
115
|
pinnedColumns: l,
|
|
116
116
|
scrollableColumns: d
|
|
117
117
|
};
|
|
118
|
-
}, [t, i,
|
|
119
|
-
const [t, i] =
|
|
118
|
+
}, [t, i, n]), Gt = () => {
|
|
119
|
+
const [t, i] = x(null), [n, l] = x(null), d = $((o) => {
|
|
120
120
|
i(o);
|
|
121
|
-
}, []), c =
|
|
121
|
+
}, []), c = $(() => {
|
|
122
122
|
i(null);
|
|
123
|
-
}, []), f =
|
|
123
|
+
}, []), f = $((o) => {
|
|
124
124
|
l(o);
|
|
125
|
-
}, []),
|
|
125
|
+
}, []), v = $(() => {
|
|
126
126
|
l(null);
|
|
127
127
|
}, []);
|
|
128
128
|
return {
|
|
129
129
|
hoveredColumn: t,
|
|
130
|
-
hoveredRow:
|
|
130
|
+
hoveredRow: n,
|
|
131
131
|
handleColumnMouseEnter: d,
|
|
132
132
|
handleColumnMouseLeave: c,
|
|
133
133
|
handleRowMouseEnter: f,
|
|
134
|
-
handleRowMouseLeave:
|
|
134
|
+
handleRowMouseLeave: v
|
|
135
135
|
};
|
|
136
|
-
},
|
|
136
|
+
}, St = ({
|
|
137
137
|
primaryColumns: t,
|
|
138
138
|
fixedColumns: i,
|
|
139
|
-
expandedRowIds:
|
|
139
|
+
expandedRowIds: n,
|
|
140
140
|
onToggleRowExpansion: l
|
|
141
141
|
}) => {
|
|
142
|
-
const [d, c] =
|
|
143
|
-
|
|
142
|
+
const [d, c] = x(/* @__PURE__ */ new Set());
|
|
143
|
+
S(() => {
|
|
144
144
|
const o = [
|
|
145
145
|
...t.map((a) => a.key),
|
|
146
146
|
...i.map((a) => a.key)
|
|
147
147
|
], p = /* @__PURE__ */ new Set();
|
|
148
|
-
|
|
149
|
-
o.forEach((
|
|
150
|
-
p.add(`${a}-${
|
|
148
|
+
n.forEach((a) => {
|
|
149
|
+
o.forEach((y) => {
|
|
150
|
+
p.add(`${a}-${y}`);
|
|
151
151
|
});
|
|
152
152
|
}), c((a) => {
|
|
153
153
|
if (a.size === p.size) {
|
|
154
|
-
let
|
|
155
|
-
if (a.forEach((
|
|
156
|
-
p.has(
|
|
157
|
-
}),
|
|
154
|
+
let y = !0;
|
|
155
|
+
if (a.forEach((w) => {
|
|
156
|
+
p.has(w) || (y = !1);
|
|
157
|
+
}), y)
|
|
158
158
|
return a;
|
|
159
159
|
}
|
|
160
160
|
return p;
|
|
161
161
|
});
|
|
162
|
-
}, [
|
|
163
|
-
const f =
|
|
162
|
+
}, [n, t, i]);
|
|
163
|
+
const f = $(
|
|
164
164
|
(o) => {
|
|
165
|
-
const p = new Set(d), a =
|
|
166
|
-
...t.map((
|
|
167
|
-
...i.map((
|
|
165
|
+
const p = new Set(d), a = n.includes(o), y = [
|
|
166
|
+
...t.map((w) => w.key),
|
|
167
|
+
...i.map((w) => w.key)
|
|
168
168
|
];
|
|
169
|
-
a ?
|
|
170
|
-
const
|
|
171
|
-
p.delete(
|
|
172
|
-
}) :
|
|
173
|
-
const
|
|
174
|
-
p.add(
|
|
169
|
+
a ? y.forEach((w) => {
|
|
170
|
+
const T = `${o}-${w}`;
|
|
171
|
+
p.delete(T);
|
|
172
|
+
}) : y.forEach((w) => {
|
|
173
|
+
const T = `${o}-${w}`;
|
|
174
|
+
p.add(T);
|
|
175
175
|
}), c(p), l(o);
|
|
176
176
|
},
|
|
177
|
-
[d,
|
|
178
|
-
),
|
|
177
|
+
[d, n, t, i, l]
|
|
178
|
+
), v = $(
|
|
179
179
|
(o, p) => {
|
|
180
180
|
const a = `${o}-${p}`;
|
|
181
181
|
return d.has(a);
|
|
@@ -185,15 +185,15 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
185
185
|
return {
|
|
186
186
|
expandedCells: d,
|
|
187
187
|
handleToggleRowExpansion: f,
|
|
188
|
-
isCellExpanded:
|
|
188
|
+
isCellExpanded: v
|
|
189
189
|
};
|
|
190
|
-
},
|
|
191
|
-
const t =
|
|
192
|
-
(
|
|
190
|
+
}, Ct = () => {
|
|
191
|
+
const t = C(/* @__PURE__ */ new Map()), i = $(
|
|
192
|
+
(n) => (l) => {
|
|
193
193
|
if (!l)
|
|
194
194
|
return;
|
|
195
195
|
const d = l.getBoundingClientRect().width;
|
|
196
|
-
d > 0 && t.current.set(
|
|
196
|
+
d > 0 && t.current.set(n, d);
|
|
197
197
|
},
|
|
198
198
|
[]
|
|
199
199
|
);
|
|
@@ -204,26 +204,26 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
204
204
|
}, Ft = ({
|
|
205
205
|
enabled: t = !1,
|
|
206
206
|
minWidth: i = 50,
|
|
207
|
-
maxWidth:
|
|
207
|
+
maxWidth: n = 500,
|
|
208
208
|
columnWidthsRef: l,
|
|
209
209
|
onColumnResize: d
|
|
210
210
|
}) => {
|
|
211
|
-
const [c, f] =
|
|
211
|
+
const [c, f] = x({}), v = $(() => {
|
|
212
212
|
if (!t || Object.keys(c).length > 0 || !l)
|
|
213
213
|
return;
|
|
214
214
|
const a = {};
|
|
215
|
-
l.current.forEach((
|
|
216
|
-
a[
|
|
215
|
+
l.current.forEach((y, w) => {
|
|
216
|
+
a[w] = y;
|
|
217
217
|
}), f(a);
|
|
218
|
-
}, [t, c, l]), o =
|
|
219
|
-
(a) => (
|
|
218
|
+
}, [t, c, l]), o = $(
|
|
219
|
+
(a) => (y, { size: w }) => {
|
|
220
220
|
if (!t)
|
|
221
221
|
return;
|
|
222
|
-
const
|
|
223
|
-
f((
|
|
222
|
+
const T = Math.min(n, Math.max(i, w.width));
|
|
223
|
+
f((b) => ({ ...b, [a]: T }));
|
|
224
224
|
},
|
|
225
|
-
[t, i,
|
|
226
|
-
), p =
|
|
225
|
+
[t, i, n]
|
|
226
|
+
), p = $(
|
|
227
227
|
(a) => () => {
|
|
228
228
|
!t || !c[a] || d == null || d(a, c[a]);
|
|
229
229
|
},
|
|
@@ -233,9 +233,9 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
233
233
|
columnWidths: c,
|
|
234
234
|
handleResize: o,
|
|
235
235
|
handleResizeStop: p,
|
|
236
|
-
handleResizeStart:
|
|
236
|
+
handleResizeStart: v
|
|
237
237
|
};
|
|
238
|
-
},
|
|
238
|
+
}, Ot = (t, i, n, l, d, c, f, v) => ie(() => {
|
|
239
239
|
if (!t)
|
|
240
240
|
return {
|
|
241
241
|
visible: !1,
|
|
@@ -248,18 +248,18 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
248
248
|
position: { top: 0, left: 0 },
|
|
249
249
|
size: { width: 0, height: 0 }
|
|
250
250
|
};
|
|
251
|
-
const p = t.getBoundingClientRect(), a = (i == null ? void 0 : i.offsetHeight) || 0,
|
|
251
|
+
const p = t.getBoundingClientRect(), a = (i == null ? void 0 : i.offsetHeight) || 0, y = n == null ? void 0 : n.getBoundingClientRect(), w = Math.min(
|
|
252
252
|
p.bottom,
|
|
253
|
-
(
|
|
253
|
+
(y == null ? void 0 : y.bottom) || Number.MAX_SAFE_INTEGER
|
|
254
254
|
);
|
|
255
|
-
let
|
|
256
|
-
l &&
|
|
257
|
-
const
|
|
255
|
+
let T;
|
|
256
|
+
l && n && y ? T = y.top - p.top + a : T = a;
|
|
257
|
+
const b = p.top + T, k = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, N = w - b - k, P = t.scrollHeight > t.clientHeight ? t.offsetWidth - t.clientWidth : 0, L = p.right - fe - P;
|
|
258
258
|
return {
|
|
259
259
|
visible: !0,
|
|
260
260
|
position: {
|
|
261
|
-
top:
|
|
262
|
-
left:
|
|
261
|
+
top: b,
|
|
262
|
+
left: L
|
|
263
263
|
},
|
|
264
264
|
size: {
|
|
265
265
|
width: fe,
|
|
@@ -269,13 +269,13 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
269
269
|
}, [
|
|
270
270
|
t,
|
|
271
271
|
i,
|
|
272
|
-
|
|
272
|
+
n,
|
|
273
273
|
l,
|
|
274
274
|
d,
|
|
275
275
|
c,
|
|
276
276
|
f,
|
|
277
|
-
|
|
278
|
-
]),
|
|
277
|
+
v
|
|
278
|
+
]), Ut = (t, i, n, l, d, c, f, v) => ie(() => {
|
|
279
279
|
if (!t)
|
|
280
280
|
return {
|
|
281
281
|
visible: !1,
|
|
@@ -302,37 +302,37 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
302
302
|
position: { top: 0, left: 0 },
|
|
303
303
|
size: { width: 0, height: 0 }
|
|
304
304
|
};
|
|
305
|
-
const
|
|
305
|
+
const y = Math.max(
|
|
306
306
|
...a.map(
|
|
307
|
-
(
|
|
307
|
+
(j) => parseInt(j.getAttribute("data-pinned-index") || "-1", 10)
|
|
308
308
|
)
|
|
309
309
|
);
|
|
310
|
-
if (
|
|
310
|
+
if (y < 0)
|
|
311
311
|
return {
|
|
312
312
|
visible: !1,
|
|
313
313
|
position: { top: 0, left: 0 },
|
|
314
314
|
size: { width: 0, height: 0 }
|
|
315
315
|
};
|
|
316
|
-
const
|
|
317
|
-
(
|
|
316
|
+
const w = a.find(
|
|
317
|
+
(j) => parseInt(j.getAttribute("data-pinned-index") || "-1", 10) === y
|
|
318
318
|
);
|
|
319
|
-
if (!
|
|
319
|
+
if (!w)
|
|
320
320
|
return {
|
|
321
321
|
visible: !1,
|
|
322
322
|
position: { top: 0, left: 0 },
|
|
323
323
|
size: { width: 0, height: 0 }
|
|
324
324
|
};
|
|
325
|
-
const
|
|
326
|
-
|
|
325
|
+
const T = w.getBoundingClientRect(), b = t.getBoundingClientRect(), D = (n == null ? void 0 : n.offsetHeight) || 0, k = l == null ? void 0 : l.getBoundingClientRect(), N = T.right, X = Math.min(
|
|
326
|
+
b.bottom,
|
|
327
327
|
(k == null ? void 0 : k.bottom) || Number.MAX_SAFE_INTEGER
|
|
328
328
|
);
|
|
329
|
-
let
|
|
330
|
-
d && l && k ?
|
|
331
|
-
const
|
|
329
|
+
let P;
|
|
330
|
+
d && l && k ? P = k.top - b.top + D : P = D;
|
|
331
|
+
const L = b.top + P, Q = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, oe = X - L - Q;
|
|
332
332
|
return {
|
|
333
333
|
visible: !0,
|
|
334
334
|
position: {
|
|
335
|
-
top:
|
|
335
|
+
top: L,
|
|
336
336
|
left: N
|
|
337
337
|
},
|
|
338
338
|
size: {
|
|
@@ -343,24 +343,24 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
343
343
|
}, [
|
|
344
344
|
t,
|
|
345
345
|
i,
|
|
346
|
-
|
|
346
|
+
n,
|
|
347
347
|
l,
|
|
348
348
|
d,
|
|
349
349
|
c,
|
|
350
350
|
f,
|
|
351
|
-
|
|
351
|
+
v
|
|
352
352
|
]), qt = {
|
|
353
353
|
"resize-handle": "_resize-handle_15uk3_1"
|
|
354
|
-
}, Dt =
|
|
355
|
-
(t, i) => /* @__PURE__ */ h("div", { ref: i, className: Dt("resize-handle"), ...t, children: /* @__PURE__ */ h(
|
|
356
|
-
),
|
|
354
|
+
}, Dt = ye.bind(qt), Xt = gt(
|
|
355
|
+
(t, i) => /* @__PURE__ */ h("div", { ref: i, className: Dt("resize-handle"), ...t, children: /* @__PURE__ */ h(bt, {}) })
|
|
356
|
+
), jt = {
|
|
357
357
|
"gradient-overlay": "_gradient-overlay_hx7m8_1",
|
|
358
358
|
"direction-right": "_direction-right_hx7m8_5",
|
|
359
359
|
"direction-left": "_direction-left_hx7m8_13"
|
|
360
|
-
}, Vt =
|
|
360
|
+
}, Vt = ye.bind(jt), Se = ({
|
|
361
361
|
portalContainer: t,
|
|
362
362
|
visible: i,
|
|
363
|
-
position:
|
|
363
|
+
position: n,
|
|
364
364
|
size: l,
|
|
365
365
|
direction: d,
|
|
366
366
|
className: c,
|
|
@@ -368,247 +368,247 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
368
368
|
}) => {
|
|
369
369
|
if (!i || !t)
|
|
370
370
|
return null;
|
|
371
|
-
const
|
|
371
|
+
const v = {
|
|
372
372
|
position: "fixed",
|
|
373
|
-
top: `${
|
|
373
|
+
top: `${n.top}px`,
|
|
374
374
|
width: `${l.width}px`,
|
|
375
375
|
height: `${l.height}px`
|
|
376
376
|
};
|
|
377
|
-
return
|
|
377
|
+
return n.left !== void 0 && (v.left = `${n.left}px`), n.right !== void 0 && (v.right = `${n.right}px`), kt(
|
|
378
378
|
/* @__PURE__ */ h(
|
|
379
379
|
"div",
|
|
380
380
|
{
|
|
381
381
|
className: Vt("gradient-overlay", `direction-${d}`, c),
|
|
382
|
-
style:
|
|
382
|
+
style: v,
|
|
383
383
|
"data-gradient-type": f
|
|
384
384
|
}
|
|
385
385
|
),
|
|
386
386
|
t
|
|
387
387
|
);
|
|
388
|
-
}, g =
|
|
389
|
-
const i =
|
|
390
|
-
return
|
|
388
|
+
}, g = ye.bind($t), Ce = ({ column: t }) => {
|
|
389
|
+
const i = C(null), [n, l] = x(!1);
|
|
390
|
+
return S(() => {
|
|
391
391
|
if (i.current) {
|
|
392
392
|
const d = i.current.offsetWidth, c = i.current.scrollWidth;
|
|
393
393
|
l(c > d);
|
|
394
394
|
}
|
|
395
|
-
}, [t.header]), /* @__PURE__ */ h("span", { ref: i, title:
|
|
396
|
-
},
|
|
395
|
+
}, [t.header]), /* @__PURE__ */ h("span", { ref: i, title: n ? t.header : void 0, children: t.header });
|
|
396
|
+
}, ns = ({
|
|
397
397
|
data: t,
|
|
398
398
|
primaryColumn: i,
|
|
399
|
-
fixedColumns:
|
|
399
|
+
fixedColumns: n,
|
|
400
400
|
renderRowActions: l,
|
|
401
401
|
className: d = "",
|
|
402
402
|
rowClassName: c = "",
|
|
403
403
|
headerClassName: f = "",
|
|
404
|
-
bodyClassName:
|
|
404
|
+
bodyClassName: v = "",
|
|
405
405
|
selectable: o = !1,
|
|
406
406
|
selectedRowIds: p = [],
|
|
407
|
-
sortingDirection: a =
|
|
408
|
-
sortingColumn:
|
|
409
|
-
sortableColumns:
|
|
410
|
-
isHeaderFixed:
|
|
411
|
-
isHorizontallyScrollable:
|
|
407
|
+
sortingDirection: a = Oe,
|
|
408
|
+
sortingColumn: y,
|
|
409
|
+
sortableColumns: w,
|
|
410
|
+
isHeaderFixed: T = !1,
|
|
411
|
+
isHorizontallyScrollable: b = !1,
|
|
412
412
|
pinnedColumnKeys: D = [],
|
|
413
413
|
isRowsExpandable: k = !1,
|
|
414
414
|
expandedRowIds: N = [],
|
|
415
|
-
isAllExpandedByDefault:
|
|
416
|
-
expandAllTooltip:
|
|
417
|
-
isResizable:
|
|
415
|
+
isAllExpandedByDefault: X,
|
|
416
|
+
expandAllTooltip: P,
|
|
417
|
+
isResizable: L = !1,
|
|
418
418
|
minColumnWidth: J = 50,
|
|
419
419
|
maxColumnWidth: Q = 500,
|
|
420
420
|
isSelectAllCheckboxAlwaysVisible: oe = !1,
|
|
421
|
-
onChangeSorting:
|
|
421
|
+
onChangeSorting: j = () => {
|
|
422
422
|
},
|
|
423
|
-
onToggleRowSelection:
|
|
423
|
+
onToggleRowSelection: qe = () => {
|
|
424
424
|
},
|
|
425
|
-
onToggleAllRowsSelection:
|
|
425
|
+
onToggleAllRowsSelection: De = () => {
|
|
426
426
|
},
|
|
427
|
-
onToggleRowExpansion:
|
|
427
|
+
onToggleRowExpansion: Xe = () => {
|
|
428
428
|
},
|
|
429
|
-
onToggleAllRowsExpansion:
|
|
429
|
+
onToggleAllRowsExpansion: je = () => {
|
|
430
430
|
},
|
|
431
|
-
onColumnResize:
|
|
431
|
+
onColumnResize: Ve = () => {
|
|
432
432
|
},
|
|
433
433
|
externalScrollContainerRef: _,
|
|
434
434
|
portalContainer: _e = typeof document < "u" ? document.body : null,
|
|
435
|
-
rightGradientClassName:
|
|
436
|
-
pinnedGradientClassName:
|
|
435
|
+
rightGradientClassName: Ie,
|
|
436
|
+
pinnedGradientClassName: Ye
|
|
437
437
|
}) => {
|
|
438
438
|
const Z = ie(
|
|
439
439
|
() => Array.isArray(i) ? i : [i],
|
|
440
440
|
[i]
|
|
441
|
-
),
|
|
441
|
+
), M = y ?? Z[0], K = w ?? Wt([...Z, ...n]), { pinnedColumns: B, scrollableColumns: R } = Bt({
|
|
442
442
|
primaryColumns: Z,
|
|
443
|
-
fixedColumns:
|
|
443
|
+
fixedColumns: n,
|
|
444
444
|
pinnedColumnKeys: D
|
|
445
445
|
}), {
|
|
446
446
|
hoveredColumn: ge,
|
|
447
|
-
hoveredRow:
|
|
448
|
-
handleColumnMouseEnter:
|
|
449
|
-
handleColumnMouseLeave:
|
|
450
|
-
handleRowMouseEnter:
|
|
451
|
-
handleRowMouseLeave:
|
|
452
|
-
} =
|
|
447
|
+
hoveredRow: Je,
|
|
448
|
+
handleColumnMouseEnter: ve,
|
|
449
|
+
handleColumnMouseLeave: be,
|
|
450
|
+
handleRowMouseEnter: Qe,
|
|
451
|
+
handleRowMouseLeave: Ze
|
|
452
|
+
} = Gt(), { columnWidthsRef: V, setCellRef: me } = Ct(), { handleToggleRowExpansion: Ke, isCellExpanded: we } = St({
|
|
453
453
|
primaryColumns: Z,
|
|
454
|
-
fixedColumns:
|
|
454
|
+
fixedColumns: n,
|
|
455
455
|
expandedRowIds: N,
|
|
456
|
-
onToggleRowExpansion:
|
|
457
|
-
}), { columnWidths: ee, handleResize:
|
|
458
|
-
enabled:
|
|
456
|
+
onToggleRowExpansion: Xe
|
|
457
|
+
}), { columnWidths: ee, handleResize: Re, handleResizeStop: et, handleResizeStart: tt } = Ft({
|
|
458
|
+
enabled: L,
|
|
459
459
|
minWidth: J,
|
|
460
460
|
maxWidth: Q,
|
|
461
461
|
columnWidthsRef: V,
|
|
462
|
-
onColumnResize:
|
|
462
|
+
onColumnResize: Ve
|
|
463
463
|
}), ke = (e, r) => /* @__PURE__ */ h(
|
|
464
|
-
|
|
464
|
+
vt,
|
|
465
465
|
{
|
|
466
466
|
width: ee[e.key] ?? (typeof e.width == "number" ? e.width : J),
|
|
467
467
|
height: 0,
|
|
468
468
|
axis: "x",
|
|
469
|
-
handle: /* @__PURE__ */ h(
|
|
470
|
-
onResizeStart:
|
|
471
|
-
onResize:
|
|
472
|
-
onResizeStop:
|
|
469
|
+
handle: /* @__PURE__ */ h(Xt, {}),
|
|
470
|
+
onResizeStart: tt,
|
|
471
|
+
onResize: Re(e.key),
|
|
472
|
+
onResizeStop: et(e.key),
|
|
473
473
|
minConstraints: [J, 0],
|
|
474
474
|
maxConstraints: [Q, 0],
|
|
475
475
|
className: g("resizable-column"),
|
|
476
476
|
children: r
|
|
477
477
|
},
|
|
478
478
|
e.key
|
|
479
|
-
), z =
|
|
480
|
-
const r =
|
|
479
|
+
), z = C(null), G = C(null), st = C(null), [U, nt] = x(!1), te = $((e) => {
|
|
480
|
+
const r = G.current;
|
|
481
481
|
if (r && r.contains(e))
|
|
482
482
|
return;
|
|
483
|
-
const
|
|
484
|
-
if (!
|
|
483
|
+
const s = e.parentElement;
|
|
484
|
+
if (!s)
|
|
485
485
|
return;
|
|
486
|
-
const u = window.getComputedStyle(
|
|
487
|
-
e.style.setProperty("--expand-cell-top", `${
|
|
488
|
-
}, []), [Ee, le] =
|
|
486
|
+
const u = window.getComputedStyle(s), E = parseFloat(u.paddingTop) || 0, m = parseFloat(u.paddingBottom) || 0, W = e.offsetHeight + E + m;
|
|
487
|
+
e.style.setProperty("--expand-cell-top", `${E}px`), e.style.setProperty("--expand-cell-height", `${W}px`);
|
|
488
|
+
}, []), [Ee, le] = x(0), [Te, ce] = x(0), [Le, ae] = x(0), [ze, Ne] = x(0), se = C(!1), de = C(/* @__PURE__ */ new Set()), I = C(null), he = Ot(
|
|
489
489
|
z.current,
|
|
490
|
-
|
|
490
|
+
G.current,
|
|
491
491
|
(_ == null ? void 0 : _.current) instanceof HTMLElement ? _.current : null,
|
|
492
|
-
|
|
492
|
+
U,
|
|
493
493
|
Ee,
|
|
494
|
-
Le,
|
|
495
494
|
Te,
|
|
495
|
+
Le,
|
|
496
496
|
ze
|
|
497
|
-
), pe =
|
|
497
|
+
), pe = Ut(
|
|
498
498
|
z.current,
|
|
499
499
|
Ee,
|
|
500
|
-
|
|
500
|
+
G.current,
|
|
501
501
|
(_ == null ? void 0 : _.current) instanceof HTMLElement ? _.current : null,
|
|
502
|
-
|
|
503
|
-
Le,
|
|
502
|
+
U,
|
|
504
503
|
Te,
|
|
504
|
+
Le,
|
|
505
505
|
ze
|
|
506
|
-
),
|
|
507
|
-
K.includes(e) &&
|
|
506
|
+
), Ae = (e) => {
|
|
507
|
+
K.includes(e) && j({ key: e, direction: a });
|
|
508
508
|
}, rt = (e) => {
|
|
509
|
-
|
|
509
|
+
qe(e);
|
|
510
510
|
}, it = () => {
|
|
511
|
-
|
|
511
|
+
De();
|
|
512
512
|
}, ot = () => {
|
|
513
|
-
|
|
514
|
-
},
|
|
515
|
-
|
|
513
|
+
je();
|
|
514
|
+
}, $e = (e) => K.includes(e) ? (M == null ? void 0 : M.key) === e ? Mt(a) ? /* @__PURE__ */ h(Pe, {}) : /* @__PURE__ */ h(mt, {}) : /* @__PURE__ */ h(Pe, {}) : null, lt = t.every((e) => p.includes(e.id)), ct = t.some((e) => p.includes(e.id)), xe = (p == null ? void 0 : p.length) > 0, at = !Et(t), dt = oe && at || xe, ht = t.every((e) => N.includes(e.id)), pt = X !== void 0 ? X : ht, ut = Ge(
|
|
515
|
+
B,
|
|
516
516
|
R,
|
|
517
517
|
k,
|
|
518
518
|
o,
|
|
519
519
|
!!l,
|
|
520
520
|
!1,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
), ft =
|
|
524
|
-
|
|
521
|
+
L ? ee : void 0,
|
|
522
|
+
L
|
|
523
|
+
), ft = Ge(
|
|
524
|
+
B,
|
|
525
525
|
R,
|
|
526
526
|
k,
|
|
527
527
|
o,
|
|
528
528
|
!!l,
|
|
529
529
|
!0,
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
),
|
|
533
|
-
return
|
|
534
|
-
if (!(_ != null && _.current) || !z.current || !
|
|
530
|
+
L ? ee : void 0,
|
|
531
|
+
L
|
|
532
|
+
), Me = /* @__PURE__ */ h("button", { onClick: ot, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ h("span", { className: g("expand-icon", { expanded: pt }), children: /* @__PURE__ */ h(He, {}) }) });
|
|
533
|
+
return S(() => {
|
|
534
|
+
if (!(_ != null && _.current) || !z.current || !G.current)
|
|
535
535
|
return;
|
|
536
|
-
const e = _.current, r = z.current,
|
|
537
|
-
const
|
|
538
|
-
if (nt(
|
|
539
|
-
const
|
|
540
|
-
|
|
536
|
+
const e = _.current, r = z.current, s = G.current, u = () => {
|
|
537
|
+
const m = r.getBoundingClientRect(), A = e.getBoundingClientRect(), W = s.offsetHeight, H = m.top - A.top, Y = m.bottom - A.top, We = e.scrollTop > 0 && H <= 0 && Y > W;
|
|
538
|
+
if (nt(We), We) {
|
|
539
|
+
const ne = m.left, yt = A.top;
|
|
540
|
+
s.classList.add(g("pinned-header")), b && (s.style.overflow = "hidden", s.style.overflowX = "hidden"), s.style.left = `${ne}px`, s.style.top = `${yt}px`, s.style.width = `${m.width}px`;
|
|
541
541
|
} else {
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
r.scrollLeft =
|
|
545
|
-
|
|
542
|
+
const ne = r.scrollLeft;
|
|
543
|
+
se.current = !0, s.classList.remove(g("pinned-header")), b && (s.scrollLeft = 0), s.style.left = "", s.style.top = "", s.style.width = "", b && (s.style.overflow = "", s.style.overflowX = ""), b && ne > 0 ? requestAnimationFrame(() => {
|
|
544
|
+
r.scrollLeft = ne, setTimeout(() => {
|
|
545
|
+
se.current = !1;
|
|
546
546
|
}, 0);
|
|
547
|
-
}) :
|
|
547
|
+
}) : se.current = !1;
|
|
548
548
|
}
|
|
549
|
-
},
|
|
549
|
+
}, E = requestAnimationFrame(() => {
|
|
550
550
|
u();
|
|
551
551
|
});
|
|
552
552
|
return e.addEventListener("scroll", u), window.addEventListener("resize", u), () => {
|
|
553
|
-
cancelAnimationFrame(
|
|
553
|
+
cancelAnimationFrame(E), e.removeEventListener("scroll", u), window.removeEventListener("resize", u);
|
|
554
554
|
};
|
|
555
|
-
}, [_,
|
|
556
|
-
if (!(_ != null && _.current) || !z.current || !
|
|
555
|
+
}, [_, b]), S(() => {
|
|
556
|
+
if (!(_ != null && _.current) || !z.current || !G.current || !U)
|
|
557
557
|
return;
|
|
558
|
-
const e = _.current, r = z.current,
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
},
|
|
564
|
-
|
|
558
|
+
const e = _.current, r = z.current, s = G.current, u = () => {
|
|
559
|
+
const H = r.getBoundingClientRect(), Y = e.getBoundingClientRect();
|
|
560
|
+
s.style.left = `${H.left}px`, s.style.top = `${Y.top}px`, s.style.width = `${H.width}px`;
|
|
561
|
+
}, E = (H) => {
|
|
562
|
+
se.current || (H === s ? r.scrollLeft = s.scrollLeft : s.scrollLeft = r.scrollLeft, I.current && I.current());
|
|
563
|
+
}, m = () => {
|
|
564
|
+
E(r), u();
|
|
565
565
|
}, A = () => {
|
|
566
|
-
|
|
567
|
-
},
|
|
566
|
+
E(s);
|
|
567
|
+
}, W = () => {
|
|
568
568
|
u();
|
|
569
569
|
};
|
|
570
|
-
return r.addEventListener("scroll",
|
|
571
|
-
r.removeEventListener("scroll",
|
|
570
|
+
return r.addEventListener("scroll", m), b && s.addEventListener("scroll", A), e.addEventListener("scroll", W), window.addEventListener("resize", u), E(r), u(), () => {
|
|
571
|
+
r.removeEventListener("scroll", m), b && s.removeEventListener("scroll", A), e.removeEventListener("scroll", W), window.removeEventListener("resize", u);
|
|
572
572
|
};
|
|
573
|
-
}, [
|
|
574
|
-
if (!z.current || !
|
|
573
|
+
}, [U, _, b]), S(() => {
|
|
574
|
+
if (!z.current || !b)
|
|
575
575
|
return;
|
|
576
576
|
const e = z.current, r = _ == null ? void 0 : _.current;
|
|
577
577
|
le(e.scrollLeft), ce((r == null ? void 0 : r.scrollTop) || e.scrollTop || 0), ae(e.scrollWidth);
|
|
578
|
-
const
|
|
578
|
+
const s = () => {
|
|
579
579
|
e && (le(e.scrollLeft), ce((r == null ? void 0 : r.scrollTop) || e.scrollTop || 0), ae(e.scrollWidth));
|
|
580
580
|
};
|
|
581
581
|
let u = null;
|
|
582
|
-
const
|
|
582
|
+
const E = () => {
|
|
583
583
|
u === null && (u = requestAnimationFrame(() => {
|
|
584
|
-
|
|
584
|
+
s(), u = null;
|
|
585
585
|
}));
|
|
586
|
-
},
|
|
587
|
-
|
|
586
|
+
}, m = () => {
|
|
587
|
+
E();
|
|
588
588
|
}, A = () => {
|
|
589
|
-
|
|
589
|
+
E();
|
|
590
590
|
};
|
|
591
|
-
e.addEventListener("scroll",
|
|
591
|
+
e.addEventListener("scroll", m, { passive: !0 }), r && r.addEventListener("scroll", A, {
|
|
592
592
|
passive: !0
|
|
593
593
|
});
|
|
594
|
-
const
|
|
595
|
-
|
|
594
|
+
const W = () => {
|
|
595
|
+
s(), Ne((Y) => Y + 1);
|
|
596
596
|
};
|
|
597
|
-
window.addEventListener("resize",
|
|
598
|
-
const
|
|
599
|
-
|
|
597
|
+
window.addEventListener("resize", W), I.current = s, s();
|
|
598
|
+
const H = new ResizeObserver(() => {
|
|
599
|
+
s();
|
|
600
600
|
});
|
|
601
|
-
return e &&
|
|
602
|
-
e.removeEventListener("scroll",
|
|
601
|
+
return e && H.observe(e), () => {
|
|
602
|
+
e.removeEventListener("scroll", m), r && r.removeEventListener("scroll", A), window.removeEventListener("resize", W), H.disconnect(), u !== null && (cancelAnimationFrame(u), u = null);
|
|
603
603
|
};
|
|
604
|
-
}, [
|
|
605
|
-
if (!z.current || !
|
|
604
|
+
}, [b, _, U, N]), S(() => {
|
|
605
|
+
if (!z.current || !b)
|
|
606
606
|
return;
|
|
607
607
|
const e = z.current, r = _ == null ? void 0 : _.current;
|
|
608
608
|
requestAnimationFrame(() => {
|
|
609
609
|
e && (le(e.scrollLeft), ce((r == null ? void 0 : r.scrollTop) || e.scrollTop || 0), ae(e.scrollWidth), I.current && I.current());
|
|
610
610
|
});
|
|
611
|
-
}, [ee,
|
|
611
|
+
}, [ee, b, _]), S(() => {
|
|
612
612
|
if (!z.current)
|
|
613
613
|
return;
|
|
614
614
|
const e = z.current, r = () => {
|
|
@@ -617,26 +617,27 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
617
617
|
requestAnimationFrame(() => {
|
|
618
618
|
r();
|
|
619
619
|
});
|
|
620
|
-
}, [k, t, te]),
|
|
620
|
+
}, [k, t, te]), S(() => {
|
|
621
621
|
if (!z.current)
|
|
622
622
|
return;
|
|
623
|
-
const e = z.current, r = new Set(N),
|
|
623
|
+
const e = z.current, r = new Set(N), s = de.current, u = /* @__PURE__ */ new Set();
|
|
624
624
|
if (N.forEach((m) => {
|
|
625
|
-
|
|
626
|
-
}),
|
|
625
|
+
s.has(m) || u.add(m);
|
|
626
|
+
}), s.forEach((m) => {
|
|
627
627
|
r.has(m) || u.add(m);
|
|
628
628
|
}), u.size === 0) {
|
|
629
629
|
de.current = r;
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
const E = setTimeout(() => {
|
|
633
633
|
u.forEach((m) => {
|
|
634
|
-
const
|
|
634
|
+
const A = e.querySelector(
|
|
635
635
|
`[data-base-left="0"][data-row-id="${m}"]`
|
|
636
636
|
);
|
|
637
|
-
|
|
638
|
-
});
|
|
639
|
-
}
|
|
637
|
+
A && te(A);
|
|
638
|
+
}), Ne((m) => m + 1);
|
|
639
|
+
}, 0);
|
|
640
|
+
return de.current = r, () => clearTimeout(E);
|
|
640
641
|
}, [k, N, te]), /* @__PURE__ */ F(
|
|
641
642
|
"div",
|
|
642
643
|
{
|
|
@@ -644,9 +645,9 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
644
645
|
className: g(
|
|
645
646
|
"table",
|
|
646
647
|
{
|
|
647
|
-
"fixed-header":
|
|
648
|
-
"horizontally-scrollable-container":
|
|
649
|
-
"external-scroll-container":
|
|
648
|
+
"fixed-header": T,
|
|
649
|
+
"horizontally-scrollable-container": T && (b || L),
|
|
650
|
+
"external-scroll-container": T && !!_
|
|
650
651
|
},
|
|
651
652
|
d
|
|
652
653
|
),
|
|
@@ -654,13 +655,13 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
654
655
|
/* @__PURE__ */ F(
|
|
655
656
|
"div",
|
|
656
657
|
{
|
|
657
|
-
ref:
|
|
658
|
+
ref: G,
|
|
658
659
|
className: g(
|
|
659
660
|
"table-header",
|
|
660
661
|
{
|
|
661
|
-
"sticky-header":
|
|
662
|
-
"horizontally-scrollable":
|
|
663
|
-
resizable:
|
|
662
|
+
"sticky-header": T && !U,
|
|
663
|
+
"horizontally-scrollable": b,
|
|
664
|
+
resizable: L
|
|
664
665
|
},
|
|
665
666
|
f
|
|
666
667
|
),
|
|
@@ -672,7 +673,7 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
672
673
|
className: g("table-header-cell", "checkbox-cell"),
|
|
673
674
|
"data-base-left": k ? q : 0,
|
|
674
675
|
children: dt && /* @__PURE__ */ h(
|
|
675
|
-
|
|
676
|
+
Be,
|
|
676
677
|
{
|
|
677
678
|
value: lt,
|
|
678
679
|
partiallyChecked: ct,
|
|
@@ -687,35 +688,35 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
687
688
|
{
|
|
688
689
|
className: g("table-header-cell", "expand-cell", "left-border-accent"),
|
|
689
690
|
"data-base-left": "0",
|
|
690
|
-
children:
|
|
691
|
-
|
|
691
|
+
children: P ? /* @__PURE__ */ h(
|
|
692
|
+
wt,
|
|
692
693
|
{
|
|
693
|
-
content:
|
|
694
|
+
content: P,
|
|
694
695
|
placement: "top",
|
|
695
696
|
wrapperClassName: g("expand-all-tooltip-wrapper"),
|
|
696
697
|
contentClassName: g("expand-all-tooltip-content"),
|
|
697
|
-
children:
|
|
698
|
+
children: Me
|
|
698
699
|
}
|
|
699
|
-
) :
|
|
700
|
+
) : Me
|
|
700
701
|
}
|
|
701
702
|
),
|
|
702
|
-
|
|
703
|
-
const
|
|
703
|
+
B.map((e, r) => {
|
|
704
|
+
const s = /* @__PURE__ */ h(
|
|
704
705
|
"button",
|
|
705
706
|
{
|
|
706
707
|
"data-column-key": e.key,
|
|
707
708
|
"data-pinned-index": r,
|
|
708
709
|
className: g("table-header-cell", "pinned-column", {
|
|
709
710
|
[`align-${e.align}`]: "align" in e,
|
|
710
|
-
"primary-cell":
|
|
711
|
+
"primary-cell": O(e),
|
|
711
712
|
"sortable-cell": K.includes(e.key),
|
|
712
|
-
resizable:
|
|
713
|
+
resizable: L
|
|
713
714
|
}),
|
|
714
715
|
style: re(
|
|
715
716
|
e,
|
|
716
717
|
!0,
|
|
717
718
|
r,
|
|
718
|
-
|
|
719
|
+
B,
|
|
719
720
|
V,
|
|
720
721
|
k,
|
|
721
722
|
o
|
|
@@ -724,19 +725,19 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
724
725
|
"div",
|
|
725
726
|
{
|
|
726
727
|
className: g("label"),
|
|
727
|
-
onClick: () =>
|
|
728
|
-
onMouseEnter: () =>
|
|
729
|
-
onMouseLeave:
|
|
728
|
+
onClick: () => Ae(e.key),
|
|
729
|
+
onMouseEnter: () => ve(e.key),
|
|
730
|
+
onMouseLeave: be,
|
|
730
731
|
children: [
|
|
731
|
-
/* @__PURE__ */ h(
|
|
732
|
-
(ge === e.key || (
|
|
732
|
+
/* @__PURE__ */ h(Ce, { column: e }),
|
|
733
|
+
(ge === e.key || (M == null ? void 0 : M.key) === e.key) && $e(e.key)
|
|
733
734
|
]
|
|
734
735
|
}
|
|
735
736
|
)
|
|
736
737
|
},
|
|
737
738
|
e.key
|
|
738
739
|
);
|
|
739
|
-
return
|
|
740
|
+
return L ? ke(e, s) : s;
|
|
740
741
|
}),
|
|
741
742
|
R.map((e) => {
|
|
742
743
|
const r = /* @__PURE__ */ h(
|
|
@@ -744,15 +745,15 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
744
745
|
{
|
|
745
746
|
className: g("table-header-cell", {
|
|
746
747
|
[`align-${e.align}`]: "align" in e,
|
|
747
|
-
"primary-cell":
|
|
748
|
+
"primary-cell": O(e),
|
|
748
749
|
"sortable-cell": K.includes(e.key),
|
|
749
|
-
resizable:
|
|
750
|
+
resizable: L
|
|
750
751
|
}),
|
|
751
752
|
style: re(
|
|
752
753
|
e,
|
|
753
754
|
!1,
|
|
754
755
|
void 0,
|
|
755
|
-
|
|
756
|
+
B,
|
|
756
757
|
V,
|
|
757
758
|
k,
|
|
758
759
|
o
|
|
@@ -761,19 +762,19 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
761
762
|
"div",
|
|
762
763
|
{
|
|
763
764
|
className: g("label"),
|
|
764
|
-
onClick: () =>
|
|
765
|
-
onMouseEnter: () =>
|
|
766
|
-
onMouseLeave:
|
|
765
|
+
onClick: () => Ae(e.key),
|
|
766
|
+
onMouseEnter: () => ve(e.key),
|
|
767
|
+
onMouseLeave: be,
|
|
767
768
|
children: [
|
|
768
|
-
/* @__PURE__ */ h(
|
|
769
|
-
(ge === e.key || (
|
|
769
|
+
/* @__PURE__ */ h(Ce, { column: e }),
|
|
770
|
+
(ge === e.key || (M == null ? void 0 : M.key) === e.key) && $e(e.key)
|
|
770
771
|
]
|
|
771
772
|
}
|
|
772
773
|
)
|
|
773
774
|
},
|
|
774
775
|
e.key
|
|
775
776
|
);
|
|
776
|
-
return
|
|
777
|
+
return L ? ke(e, r) : r;
|
|
777
778
|
}),
|
|
778
779
|
l && /* @__PURE__ */ h("div", { className: g("table-header-cell", "action-menu-cell") })
|
|
779
780
|
]
|
|
@@ -782,33 +783,33 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
782
783
|
/* @__PURE__ */ h(
|
|
783
784
|
"div",
|
|
784
785
|
{
|
|
785
|
-
ref:
|
|
786
|
+
ref: st,
|
|
786
787
|
className: g(
|
|
787
788
|
"table-body",
|
|
788
789
|
{
|
|
789
|
-
"scrollable-body":
|
|
790
|
-
"horizontally-scrollable":
|
|
791
|
-
resizable:
|
|
790
|
+
"scrollable-body": T,
|
|
791
|
+
"horizontally-scrollable": b,
|
|
792
|
+
resizable: L
|
|
792
793
|
},
|
|
793
|
-
|
|
794
|
+
v
|
|
794
795
|
),
|
|
795
796
|
children: t.map((e, r) => /* @__PURE__ */ F(
|
|
796
797
|
"div",
|
|
797
798
|
{
|
|
798
799
|
"data-row-index": r,
|
|
799
|
-
className: g("table-row",
|
|
800
|
+
className: g("table-row", Ht(e), c, {
|
|
800
801
|
selectable: o
|
|
801
802
|
}),
|
|
802
|
-
onMouseEnter: () =>
|
|
803
|
-
onMouseLeave:
|
|
803
|
+
onMouseEnter: () => Qe(r),
|
|
804
|
+
onMouseLeave: Ze,
|
|
804
805
|
children: [
|
|
805
806
|
o && /* @__PURE__ */ h(
|
|
806
807
|
"div",
|
|
807
808
|
{
|
|
808
809
|
className: g("table-cell", "checkbox-cell"),
|
|
809
810
|
"data-base-left": k ? q : 0,
|
|
810
|
-
children: (
|
|
811
|
-
|
|
811
|
+
children: (xe || Je === r) && /* @__PURE__ */ h(
|
|
812
|
+
Be,
|
|
812
813
|
{
|
|
813
814
|
value: p.includes(e.id),
|
|
814
815
|
onChange: () => rt(e.id),
|
|
@@ -827,7 +828,7 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
827
828
|
children: /* @__PURE__ */ h(
|
|
828
829
|
"button",
|
|
829
830
|
{
|
|
830
|
-
onClick: () =>
|
|
831
|
+
onClick: () => Ke(e.id),
|
|
831
832
|
"aria-label": N.includes(e.id) ? "Collapse row" : "Expand row",
|
|
832
833
|
"aria-expanded": N.includes(e.id),
|
|
833
834
|
children: /* @__PURE__ */ h(
|
|
@@ -836,61 +837,61 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
836
837
|
className: g("expand-icon", {
|
|
837
838
|
expanded: N.includes(e.id)
|
|
838
839
|
}),
|
|
839
|
-
children: /* @__PURE__ */ h(
|
|
840
|
+
children: /* @__PURE__ */ h(He, {})
|
|
840
841
|
}
|
|
841
842
|
)
|
|
842
843
|
}
|
|
843
844
|
)
|
|
844
845
|
}
|
|
845
846
|
),
|
|
846
|
-
|
|
847
|
-
const
|
|
847
|
+
B.map((s, u) => {
|
|
848
|
+
const E = we(e.id, s.key), m = O(s);
|
|
848
849
|
return /* @__PURE__ */ h(
|
|
849
850
|
"div",
|
|
850
851
|
{
|
|
851
|
-
"data-column-key":
|
|
852
|
+
"data-column-key": s.key,
|
|
852
853
|
"data-pinned-index": u,
|
|
853
|
-
ref:
|
|
854
|
+
ref: m ? me(s.key) : void 0,
|
|
854
855
|
className: g("table-cell", "pinned-column", {
|
|
855
|
-
"primary-cell":
|
|
856
|
-
"expanded-cell":
|
|
856
|
+
"primary-cell": m,
|
|
857
|
+
"expanded-cell": E
|
|
857
858
|
}),
|
|
858
859
|
style: re(
|
|
859
|
-
|
|
860
|
+
s,
|
|
860
861
|
!0,
|
|
861
862
|
u,
|
|
862
|
-
|
|
863
|
+
B,
|
|
863
864
|
V,
|
|
864
865
|
k,
|
|
865
866
|
o
|
|
866
867
|
),
|
|
867
|
-
children: e[
|
|
868
|
+
children: e[s.key].component || e[s.key].content || e[s.key]
|
|
868
869
|
},
|
|
869
|
-
|
|
870
|
+
s.key
|
|
870
871
|
);
|
|
871
872
|
}),
|
|
872
|
-
R.map((
|
|
873
|
-
const u =
|
|
873
|
+
R.map((s) => {
|
|
874
|
+
const u = we(e.id, s.key), E = O(s);
|
|
874
875
|
return /* @__PURE__ */ h(
|
|
875
876
|
"div",
|
|
876
877
|
{
|
|
877
|
-
ref:
|
|
878
|
+
ref: E ? me(s.key) : void 0,
|
|
878
879
|
className: g("table-cell", {
|
|
879
|
-
"primary-cell":
|
|
880
|
+
"primary-cell": E,
|
|
880
881
|
"expanded-cell": u
|
|
881
882
|
}),
|
|
882
883
|
style: re(
|
|
883
|
-
|
|
884
|
+
s,
|
|
884
885
|
!1,
|
|
885
886
|
void 0,
|
|
886
|
-
|
|
887
|
+
B,
|
|
887
888
|
V,
|
|
888
889
|
k,
|
|
889
890
|
o
|
|
890
891
|
),
|
|
891
|
-
children: e[
|
|
892
|
+
children: e[s.key].component || e[s.key].content || e[s.key]
|
|
892
893
|
},
|
|
893
|
-
|
|
894
|
+
s.key
|
|
894
895
|
);
|
|
895
896
|
}),
|
|
896
897
|
l && /* @__PURE__ */ h("div", { className: g("table-cell", "action-menu-cell"), children: l(e.metaData) })
|
|
@@ -901,28 +902,28 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
901
902
|
))
|
|
902
903
|
}
|
|
903
904
|
),
|
|
904
|
-
|
|
905
|
+
b && /* @__PURE__ */ F(_t, { children: [
|
|
905
906
|
/* @__PURE__ */ h(
|
|
906
|
-
|
|
907
|
+
Se,
|
|
907
908
|
{
|
|
908
909
|
portalContainer: _e,
|
|
909
910
|
visible: he.visible,
|
|
910
911
|
position: he.position,
|
|
911
912
|
size: he.size,
|
|
912
913
|
direction: "right",
|
|
913
|
-
className:
|
|
914
|
+
className: Ie,
|
|
914
915
|
dataTestId: "right-gradient"
|
|
915
916
|
}
|
|
916
917
|
),
|
|
917
918
|
/* @__PURE__ */ h(
|
|
918
|
-
|
|
919
|
+
Se,
|
|
919
920
|
{
|
|
920
921
|
portalContainer: _e,
|
|
921
922
|
visible: pe.visible,
|
|
922
923
|
position: pe.position,
|
|
923
924
|
size: pe.size,
|
|
924
925
|
direction: "left",
|
|
925
|
-
className:
|
|
926
|
+
className: Ye,
|
|
926
927
|
dataTestId: "pinned-gradient"
|
|
927
928
|
}
|
|
928
929
|
)
|
|
@@ -932,5 +933,5 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
932
933
|
);
|
|
933
934
|
};
|
|
934
935
|
export {
|
|
935
|
-
|
|
936
|
+
ns as T
|
|
936
937
|
};
|