@reportportal/ui-kit 0.0.1-alpha.152 → 0.0.1-alpha.153
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/index.js +142 -138
- package/dist/issueList.js +125 -0
- package/dist/style.css +1 -1
- package/dist/{table-2c659767.js → table-65ae1c11.js} +301 -301
- package/dist/table.js +1 -1
- package/package.json +1 -1
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { jsx as h, jsxs as
|
|
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
|
|
1
|
+
import { jsx as h, jsxs as C, Fragment as gt } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as ie, useState as x, useCallback as A, useEffect as S, useRef as F, forwardRef as mt } from "react";
|
|
3
|
+
import { Resizable as vt } from "react-resizable";
|
|
4
|
+
import { c as _e } from "./bind-06a7ff84.js";
|
|
5
|
+
import { c as yt, b as We, a as He, S as bt } from "./resizeColumn-d4107941.js";
|
|
6
|
+
import { C as Pe } 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
|
|
10
|
+
const Fe = (t) => typeof t == "string", Lt = "_table_1408m_1", Tt = "_resizable_1408m_67", zt = "_selectable_1408m_84", Nt = "_expanded_1408m_80", At = "_label_1408m_349", $t = {
|
|
11
11
|
table: Lt,
|
|
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-
|
|
12
|
+
"fixed-header": "_fixed-header_1408m_10",
|
|
13
|
+
"external-scroll-container": "_external-scroll-container_1408m_14",
|
|
14
|
+
"horizontally-scrollable-container": "_horizontally-scrollable-container_1408m_21",
|
|
15
|
+
"table-header": "_table-header_1408m_26",
|
|
16
|
+
"sticky-header": "_sticky-header_1408m_34",
|
|
17
|
+
"pinned-header": "_pinned-header_1408m_44",
|
|
18
|
+
"horizontally-scrollable": "_horizontally-scrollable_1408m_21",
|
|
19
19
|
resizable: Tt,
|
|
20
|
-
"resizable-column": "_resizable-
|
|
21
|
-
"table-row": "_table-
|
|
22
|
-
"expanded-cell": "_expanded-
|
|
20
|
+
"resizable-column": "_resizable-column_1408m_67",
|
|
21
|
+
"table-row": "_table-row_1408m_75",
|
|
22
|
+
"expanded-cell": "_expanded-cell_1408m_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_1408m_88",
|
|
25
|
+
"pinned-column": "_pinned-column_1408m_96",
|
|
26
|
+
"has-scroll": "_has-scroll_1408m_96",
|
|
27
|
+
"table-row-content": "_table-row-content_1408m_99",
|
|
28
|
+
"expand-cell": "_expand-cell_1408m_116",
|
|
29
|
+
"left-border-accent": "_left-border-accent_1408m_119",
|
|
30
|
+
"size-small": "_size-small_1408m_129",
|
|
31
|
+
"size-large": "_size-large_1408m_140",
|
|
32
|
+
"table-body": "_table-body_1408m_152",
|
|
33
|
+
"scrollable-body": "_scrollable-body_1408m_158",
|
|
34
|
+
"table-header-cell": "_table-header-cell_1408m_222",
|
|
35
|
+
"table-cell": "_table-cell_1408m_223",
|
|
36
|
+
"action-menu-cell": "_action-menu-cell_1408m_229",
|
|
37
|
+
"checkbox-cell": "_checkbox-cell_1408m_257",
|
|
38
|
+
"expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1408m_301",
|
|
39
|
+
"expand-all-tooltip-content": "_expand-all-tooltip-content_1408m_310",
|
|
40
|
+
"expand-icon": "_expand-icon_1408m_319",
|
|
41
41
|
expanded: Nt,
|
|
42
|
-
"primary-cell": "_primary-
|
|
43
|
-
label:
|
|
44
|
-
"sortable-cell": "_sortable-
|
|
45
|
-
"align-right": "_align-
|
|
46
|
-
"align-center": "_align-
|
|
47
|
-
},
|
|
42
|
+
"primary-cell": "_primary-cell_1408m_328",
|
|
43
|
+
label: At,
|
|
44
|
+
"sortable-cell": "_sortable-cell_1408m_363",
|
|
45
|
+
"align-right": "_align-right_1408m_366",
|
|
46
|
+
"align-center": "_align-center_1408m_372"
|
|
47
|
+
}, Ce = "asc", D = 32, Oe = 100, xt = 48, fe = 48, Mt = (t) => t.toLowerCase() === Ce, Wt = (t) => t.map((i) => i.key), O = (t) => "primary" in t && t.primary === !0, Ht = (t) => {
|
|
48
48
|
var s;
|
|
49
49
|
return `size-${((s = t.rowConfigs) == null ? void 0 : s.size) ?? "default"}`;
|
|
50
|
-
}, ue = (t) =>
|
|
50
|
+
}, ue = (t) => Fe(t) ? t : `${t}px`, Pt = (t, i, s, l, d) => {
|
|
51
51
|
let c = 0;
|
|
52
|
-
l && (c +=
|
|
52
|
+
l && (c += D), d && (c += D);
|
|
53
53
|
for (let f = 0; f < t; f++) {
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
56
|
-
const o = s.current.get(
|
|
54
|
+
const v = i[f];
|
|
55
|
+
if (O(v)) {
|
|
56
|
+
const o = s.current.get(v.key) || Oe;
|
|
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
64
|
}, re = (t, i, s, l, d, c, f) => {
|
|
65
|
-
const
|
|
66
|
-
if (!
|
|
65
|
+
const v = {};
|
|
66
|
+
if (!O(t)) {
|
|
67
67
|
const o = t;
|
|
68
|
-
|
|
68
|
+
v.textAlign = o.align;
|
|
69
69
|
}
|
|
70
70
|
if (i && s !== void 0) {
|
|
71
|
-
const o =
|
|
71
|
+
const o = Pt(
|
|
72
72
|
s,
|
|
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
|
+
}, Be = (t, i, s, l, d, c = !1, f, v = !1) => {
|
|
82
82
|
const o = [];
|
|
83
|
-
s && o.push(`${
|
|
83
|
+
s && o.push(`${D}px`), c && l && o.push(`${D}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 _ = a;
|
|
91
|
+
if (v && _.width) {
|
|
92
|
+
o.push(ue(_.width));
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
o.push(`minmax(${
|
|
95
|
+
const b = _.width ? ue(_.width) : `${Oe}px`;
|
|
96
|
+
o.push(`minmax(${b}, 1fr)`);
|
|
97
97
|
} else {
|
|
98
|
-
const
|
|
99
|
-
o.push(
|
|
98
|
+
const b = ue(a.width);
|
|
99
|
+
o.push(b);
|
|
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
106
|
pinnedColumnKeys: s
|
|
@@ -115,14 +115,14 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
115
115
|
pinnedColumns: l,
|
|
116
116
|
scrollableColumns: d
|
|
117
117
|
};
|
|
118
|
-
}, [t, i, s]),
|
|
119
|
-
const [t, i] =
|
|
118
|
+
}, [t, i, s]), Gt = () => {
|
|
119
|
+
const [t, i] = x(null), [s, l] = x(null), d = A((o) => {
|
|
120
120
|
i(o);
|
|
121
|
-
}, []), c =
|
|
121
|
+
}, []), c = A(() => {
|
|
122
122
|
i(null);
|
|
123
|
-
}, []), f =
|
|
123
|
+
}, []), f = A((o) => {
|
|
124
124
|
l(o);
|
|
125
|
-
}, []),
|
|
125
|
+
}, []), v = A(() => {
|
|
126
126
|
l(null);
|
|
127
127
|
}, []);
|
|
128
128
|
return {
|
|
@@ -131,51 +131,51 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
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
139
|
expandedRowIds: s,
|
|
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
148
|
s.forEach((a) => {
|
|
149
|
-
o.forEach((
|
|
150
|
-
p.add(`${a}-${
|
|
149
|
+
o.forEach((_) => {
|
|
150
|
+
p.add(`${a}-${_}`);
|
|
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 _ = !0;
|
|
155
|
+
if (a.forEach((b) => {
|
|
156
|
+
p.has(b) || (_ = !1);
|
|
157
|
+
}), _)
|
|
158
158
|
return a;
|
|
159
159
|
}
|
|
160
160
|
return p;
|
|
161
161
|
});
|
|
162
162
|
}, [s, t, i]);
|
|
163
|
-
const f =
|
|
163
|
+
const f = A(
|
|
164
164
|
(o) => {
|
|
165
|
-
const p = new Set(d), a = s.includes(o),
|
|
166
|
-
...t.map((
|
|
167
|
-
...i.map((
|
|
165
|
+
const p = new Set(d), a = s.includes(o), _ = [
|
|
166
|
+
...t.map((b) => b.key),
|
|
167
|
+
...i.map((b) => b.key)
|
|
168
168
|
];
|
|
169
|
-
a ?
|
|
170
|
-
const L = `${o}-${
|
|
169
|
+
a ? _.forEach((b) => {
|
|
170
|
+
const L = `${o}-${b}`;
|
|
171
171
|
p.delete(L);
|
|
172
|
-
}) :
|
|
173
|
-
const L = `${o}-${
|
|
172
|
+
}) : _.forEach((b) => {
|
|
173
|
+
const L = `${o}-${b}`;
|
|
174
174
|
p.add(L);
|
|
175
175
|
}), c(p), l(o);
|
|
176
176
|
},
|
|
177
177
|
[d, s, t, i, l]
|
|
178
|
-
),
|
|
178
|
+
), v = A(
|
|
179
179
|
(o, p) => {
|
|
180
180
|
const a = `${o}-${p}`;
|
|
181
181
|
return d.has(a);
|
|
@@ -185,10 +185,10 @@ 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 =
|
|
190
|
+
}, Ft = () => {
|
|
191
|
+
const t = F(/* @__PURE__ */ new Map()), i = A(
|
|
192
192
|
(s) => (l) => {
|
|
193
193
|
if (!l)
|
|
194
194
|
return;
|
|
@@ -201,29 +201,29 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
201
201
|
columnWidthsRef: t,
|
|
202
202
|
setCellRef: i
|
|
203
203
|
};
|
|
204
|
-
},
|
|
204
|
+
}, Ct = ({
|
|
205
205
|
enabled: t = !1,
|
|
206
206
|
minWidth: i = 50,
|
|
207
207
|
maxWidth: s = 500,
|
|
208
208
|
columnWidthsRef: l,
|
|
209
209
|
onColumnResize: d
|
|
210
210
|
}) => {
|
|
211
|
-
const [c, f] =
|
|
211
|
+
const [c, f] = x({}), v = A(() => {
|
|
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((_, b) => {
|
|
216
|
+
a[b] = _;
|
|
217
217
|
}), f(a);
|
|
218
|
-
}, [t, c, l]), o =
|
|
219
|
-
(a) => (
|
|
218
|
+
}, [t, c, l]), o = A(
|
|
219
|
+
(a) => (_, { size: b }) => {
|
|
220
220
|
if (!t)
|
|
221
221
|
return;
|
|
222
|
-
const L = Math.min(s, Math.max(i,
|
|
223
|
-
f((
|
|
222
|
+
const L = Math.min(s, Math.max(i, b.width));
|
|
223
|
+
f((y) => ({ ...y, [a]: L }));
|
|
224
224
|
},
|
|
225
225
|
[t, i, s]
|
|
226
|
-
), p =
|
|
226
|
+
), p = A(
|
|
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, s, l, d, c, f, v) => ie(() => {
|
|
239
239
|
if (!t)
|
|
240
240
|
return {
|
|
241
241
|
visible: !1,
|
|
@@ -248,17 +248,17 @@ 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, _ = s == null ? void 0 : s.getBoundingClientRect(), b = Math.min(
|
|
252
252
|
p.bottom,
|
|
253
|
-
(
|
|
253
|
+
(_ == null ? void 0 : _.bottom) || Number.MAX_SAFE_INTEGER
|
|
254
254
|
);
|
|
255
255
|
let L;
|
|
256
|
-
l && s &&
|
|
257
|
-
const
|
|
256
|
+
l && s && _ ? L = _.top - p.top + a : L = a;
|
|
257
|
+
const y = p.top + L, k = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, N = b - y - k, P = t.scrollHeight > t.clientHeight ? t.offsetWidth - t.clientWidth : 0, T = p.right - fe - P;
|
|
258
258
|
return {
|
|
259
259
|
visible: !0,
|
|
260
260
|
position: {
|
|
261
|
-
top:
|
|
261
|
+
top: y,
|
|
262
262
|
left: T
|
|
263
263
|
},
|
|
264
264
|
size: {
|
|
@@ -274,8 +274,8 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
274
274
|
d,
|
|
275
275
|
c,
|
|
276
276
|
f,
|
|
277
|
-
|
|
278
|
-
]),
|
|
277
|
+
v
|
|
278
|
+
]), qt = (t, i, s, l, d, c, f, v) => ie(() => {
|
|
279
279
|
if (!t)
|
|
280
280
|
return {
|
|
281
281
|
visible: !1,
|
|
@@ -302,33 +302,33 @@ 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 _ = 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 (_ < 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 b = a.find(
|
|
317
|
+
(j) => parseInt(j.getAttribute("data-pinned-index") || "-1", 10) === _
|
|
318
318
|
);
|
|
319
|
-
if (!
|
|
319
|
+
if (!b)
|
|
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 L =
|
|
326
|
-
|
|
325
|
+
const L = b.getBoundingClientRect(), y = t.getBoundingClientRect(), U = (s == null ? void 0 : s.offsetHeight) || 0, k = l == null ? void 0 : l.getBoundingClientRect(), N = L.right, X = Math.min(
|
|
326
|
+
y.bottom,
|
|
327
327
|
(k == null ? void 0 : k.bottom) || Number.MAX_SAFE_INTEGER
|
|
328
328
|
);
|
|
329
|
-
let
|
|
330
|
-
d && l && k ?
|
|
331
|
-
const T =
|
|
329
|
+
let P;
|
|
330
|
+
d && l && k ? P = k.top - y.top + U : P = U;
|
|
331
|
+
const T = y.top + P, Q = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, oe = X - T - Q;
|
|
332
332
|
return {
|
|
333
333
|
visible: !0,
|
|
334
334
|
position: {
|
|
@@ -348,16 +348,16 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
348
348
|
d,
|
|
349
349
|
c,
|
|
350
350
|
f,
|
|
351
|
-
|
|
352
|
-
]),
|
|
351
|
+
v
|
|
352
|
+
]), Dt = {
|
|
353
353
|
"resize-handle": "_resize-handle_15uk3_1"
|
|
354
|
-
},
|
|
355
|
-
(t, i) => /* @__PURE__ */ h("div", { ref: i, className:
|
|
356
|
-
),
|
|
354
|
+
}, Ut = _e.bind(Dt), Xt = mt(
|
|
355
|
+
(t, i) => /* @__PURE__ */ h("div", { ref: i, className: Ut("resize-handle"), ...t, children: /* @__PURE__ */ h(yt, {}) })
|
|
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 = _e.bind(jt), Ge = ({
|
|
361
361
|
portalContainer: t,
|
|
362
362
|
visible: i,
|
|
363
363
|
position: s,
|
|
@@ -368,26 +368,26 @@ 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
373
|
top: `${s.top}px`,
|
|
374
374
|
width: `${l.width}px`,
|
|
375
375
|
height: `${l.height}px`
|
|
376
376
|
};
|
|
377
|
-
return s.left !== void 0 && (
|
|
377
|
+
return s.left !== void 0 && (v.left = `${s.left}px`), s.right !== void 0 && (v.right = `${s.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
|
-
},
|
|
389
|
-
const i =
|
|
390
|
-
return
|
|
388
|
+
}, m = _e.bind($t), Se = ({ column: t }) => {
|
|
389
|
+
const i = F(null), [s, 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);
|
|
@@ -401,118 +401,118 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
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:
|
|
407
|
+
sortingDirection: a = Ce,
|
|
408
|
+
sortingColumn: _,
|
|
409
|
+
sortableColumns: b,
|
|
410
410
|
isHeaderFixed: L = !1,
|
|
411
|
-
isHorizontallyScrollable:
|
|
412
|
-
pinnedColumnKeys:
|
|
411
|
+
isHorizontallyScrollable: y = !1,
|
|
412
|
+
pinnedColumnKeys: U = [],
|
|
413
413
|
isRowsExpandable: k = !1,
|
|
414
414
|
expandedRowIds: N = [],
|
|
415
|
-
isAllExpandedByDefault:
|
|
416
|
-
expandAllTooltip:
|
|
415
|
+
isAllExpandedByDefault: X,
|
|
416
|
+
expandAllTooltip: P,
|
|
417
417
|
isResizable: T = !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: Ue = () => {
|
|
428
428
|
},
|
|
429
|
-
onToggleAllRowsExpansion:
|
|
429
|
+
onToggleAllRowsExpansion: Xe = () => {
|
|
430
430
|
},
|
|
431
|
-
onColumnResize:
|
|
431
|
+
onColumnResize: je = () => {
|
|
432
432
|
},
|
|
433
|
-
externalScrollContainerRef:
|
|
434
|
-
portalContainer:
|
|
433
|
+
externalScrollContainerRef: g,
|
|
434
|
+
portalContainer: ge = typeof document < "u" ? document.body : null,
|
|
435
435
|
rightGradientClassName: Ve,
|
|
436
436
|
pinnedGradientClassName: Ie
|
|
437
437
|
}) => {
|
|
438
438
|
const Z = ie(
|
|
439
439
|
() => Array.isArray(i) ? i : [i],
|
|
440
440
|
[i]
|
|
441
|
-
),
|
|
441
|
+
), M = _ ?? Z[0], K = b ?? Wt([...Z, ...s]), { pinnedColumns: B, scrollableColumns: R } = Bt({
|
|
442
442
|
primaryColumns: Z,
|
|
443
443
|
fixedColumns: s,
|
|
444
|
-
pinnedColumnKeys:
|
|
444
|
+
pinnedColumnKeys: U
|
|
445
445
|
}), {
|
|
446
|
-
hoveredColumn:
|
|
446
|
+
hoveredColumn: me,
|
|
447
447
|
hoveredRow: Ye,
|
|
448
|
-
handleColumnMouseEnter:
|
|
449
|
-
handleColumnMouseLeave:
|
|
448
|
+
handleColumnMouseEnter: ve,
|
|
449
|
+
handleColumnMouseLeave: ye,
|
|
450
450
|
handleRowMouseEnter: Je,
|
|
451
451
|
handleRowMouseLeave: Qe
|
|
452
|
-
} =
|
|
452
|
+
} = Gt(), { columnWidthsRef: V, setCellRef: be } = Ft(), { handleToggleRowExpansion: Ze, isCellExpanded: we } = St({
|
|
453
453
|
primaryColumns: Z,
|
|
454
454
|
fixedColumns: s,
|
|
455
455
|
expandedRowIds: N,
|
|
456
|
-
onToggleRowExpansion:
|
|
457
|
-
}), { columnWidths: ee, handleResize: Ke, handleResizeStop: Re, handleResizeStart: et } =
|
|
456
|
+
onToggleRowExpansion: Ue
|
|
457
|
+
}), { columnWidths: ee, handleResize: Ke, handleResizeStop: Re, handleResizeStart: et } = Ct({
|
|
458
458
|
enabled: T,
|
|
459
459
|
minWidth: J,
|
|
460
460
|
maxWidth: Q,
|
|
461
461
|
columnWidthsRef: V,
|
|
462
|
-
onColumnResize:
|
|
462
|
+
onColumnResize: je
|
|
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(
|
|
469
|
+
handle: /* @__PURE__ */ h(Xt, {}),
|
|
470
470
|
onResizeStart: et,
|
|
471
471
|
onResize: Ke(e.key),
|
|
472
472
|
onResizeStop: Re(e.key),
|
|
473
473
|
minConstraints: [J, 0],
|
|
474
474
|
maxConstraints: [Q, 0],
|
|
475
|
-
className:
|
|
475
|
+
className: m("resizable-column"),
|
|
476
476
|
children: r
|
|
477
477
|
},
|
|
478
478
|
e.key
|
|
479
|
-
), z =
|
|
480
|
-
const r =
|
|
479
|
+
), z = F(null), G = F(null), tt = F(null), [q, nt] = x(!1), te = A((e) => {
|
|
480
|
+
const r = G.current;
|
|
481
481
|
if (r && r.contains(e))
|
|
482
482
|
return;
|
|
483
483
|
const n = e.parentElement;
|
|
484
484
|
if (!n)
|
|
485
485
|
return;
|
|
486
|
-
const u = window.getComputedStyle(n),
|
|
487
|
-
e.style.setProperty("--expand-cell-top", `${
|
|
488
|
-
}, []), [Ee, le] =
|
|
486
|
+
const u = window.getComputedStyle(n), w = parseFloat(u.paddingTop) || 0, E = parseFloat(u.paddingBottom) || 0, W = e.offsetHeight + w + E;
|
|
487
|
+
e.style.setProperty("--expand-cell-top", `${w}px`), e.style.setProperty("--expand-cell-height", `${W}px`);
|
|
488
|
+
}, []), [Ee, le] = x(0), [Le, ce] = x(0), [Te, ae] = x(0), [ze, st] = x(0), ne = F(!1), de = F(/* @__PURE__ */ new Set()), I = F(null), he = Ot(
|
|
489
489
|
z.current,
|
|
490
|
-
|
|
491
|
-
(
|
|
492
|
-
|
|
490
|
+
G.current,
|
|
491
|
+
(g == null ? void 0 : g.current) instanceof HTMLElement ? g.current : null,
|
|
492
|
+
q,
|
|
493
493
|
Ee,
|
|
494
494
|
Le,
|
|
495
495
|
Te,
|
|
496
496
|
ze
|
|
497
|
-
), pe =
|
|
497
|
+
), pe = qt(
|
|
498
498
|
z.current,
|
|
499
499
|
Ee,
|
|
500
|
-
|
|
501
|
-
(
|
|
502
|
-
|
|
500
|
+
G.current,
|
|
501
|
+
(g == null ? void 0 : g.current) instanceof HTMLElement ? g.current : null,
|
|
502
|
+
q,
|
|
503
503
|
Le,
|
|
504
504
|
Te,
|
|
505
505
|
ze
|
|
506
506
|
), Ne = (e) => {
|
|
507
|
-
K.includes(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
|
+
Xe();
|
|
514
|
+
}, Ae = (e) => K.includes(e) ? (M == null ? void 0 : M.key) === e ? Mt(a) ? /* @__PURE__ */ h(He, {}) : /* @__PURE__ */ h(bt, {}) : /* @__PURE__ */ h(He, {}) : null, lt = t.every((e) => p.includes(e.id)), ct = t.some((e) => p.includes(e.id)), $e = (p == null ? void 0 : p.length) > 0, at = !Et(t), dt = oe && at || $e, ht = t.every((e) => N.includes(e.id)), pt = X !== void 0 ? X : ht, ut = Be(
|
|
515
|
+
B,
|
|
516
516
|
R,
|
|
517
517
|
k,
|
|
518
518
|
o,
|
|
@@ -520,8 +520,8 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
520
520
|
!1,
|
|
521
521
|
T ? ee : void 0,
|
|
522
522
|
T
|
|
523
|
-
), ft =
|
|
524
|
-
|
|
523
|
+
), ft = Be(
|
|
524
|
+
B,
|
|
525
525
|
R,
|
|
526
526
|
k,
|
|
527
527
|
o,
|
|
@@ -529,86 +529,86 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
529
529
|
!0,
|
|
530
530
|
T ? ee : void 0,
|
|
531
531
|
T
|
|
532
|
-
),
|
|
533
|
-
return
|
|
534
|
-
if (!(
|
|
532
|
+
), xe = /* @__PURE__ */ h("button", { onClick: ot, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ h("span", { className: m("expand-icon", { expanded: pt }), children: /* @__PURE__ */ h(We, {}) }) });
|
|
533
|
+
return S(() => {
|
|
534
|
+
if (!(g != null && g.current) || !z.current || !G.current)
|
|
535
535
|
return;
|
|
536
|
-
const e =
|
|
537
|
-
const E = r.getBoundingClientRect(),
|
|
538
|
-
if (nt(
|
|
539
|
-
const se = E.left,
|
|
540
|
-
n.classList.add(
|
|
536
|
+
const e = g.current, r = z.current, n = G.current, u = () => {
|
|
537
|
+
const E = r.getBoundingClientRect(), $ = e.getBoundingClientRect(), W = n.offsetHeight, H = E.top - $.top, Y = E.bottom - $.top, Me = e.scrollTop > 0 && H <= 0 && Y > W;
|
|
538
|
+
if (nt(Me), Me) {
|
|
539
|
+
const se = E.left, _t = $.top;
|
|
540
|
+
n.classList.add(m("pinned-header")), y && (n.style.overflow = "hidden", n.style.overflowX = "hidden"), n.style.left = `${se}px`, n.style.top = `${_t}px`, n.style.width = `${E.width}px`;
|
|
541
541
|
} else {
|
|
542
542
|
const se = r.scrollLeft;
|
|
543
|
-
ne.current = !0, n.classList.remove(
|
|
543
|
+
ne.current = !0, n.classList.remove(m("pinned-header")), y && (n.scrollLeft = 0), n.style.left = "", n.style.top = "", n.style.width = "", y && (n.style.overflow = "", n.style.overflowX = ""), y && se > 0 ? requestAnimationFrame(() => {
|
|
544
544
|
r.scrollLeft = se, setTimeout(() => {
|
|
545
545
|
ne.current = !1;
|
|
546
546
|
}, 0);
|
|
547
547
|
}) : ne.current = !1;
|
|
548
548
|
}
|
|
549
|
-
},
|
|
549
|
+
}, w = requestAnimationFrame(() => {
|
|
550
550
|
u();
|
|
551
551
|
});
|
|
552
552
|
return e.addEventListener("scroll", u), window.addEventListener("resize", u), () => {
|
|
553
|
-
cancelAnimationFrame(
|
|
553
|
+
cancelAnimationFrame(w), e.removeEventListener("scroll", u), window.removeEventListener("resize", u);
|
|
554
554
|
};
|
|
555
|
-
}, [
|
|
556
|
-
if (!(
|
|
555
|
+
}, [g, y]), S(() => {
|
|
556
|
+
if (!(g != null && g.current) || !z.current || !G.current || !q)
|
|
557
557
|
return;
|
|
558
|
-
const e =
|
|
559
|
-
const
|
|
560
|
-
n.style.left = `${
|
|
561
|
-
},
|
|
562
|
-
ne.current || (
|
|
558
|
+
const e = g.current, r = z.current, n = G.current, u = () => {
|
|
559
|
+
const H = r.getBoundingClientRect(), Y = e.getBoundingClientRect();
|
|
560
|
+
n.style.left = `${H.left}px`, n.style.top = `${Y.top}px`, n.style.width = `${H.width}px`;
|
|
561
|
+
}, w = (H) => {
|
|
562
|
+
ne.current || (H === n ? r.scrollLeft = n.scrollLeft : n.scrollLeft = r.scrollLeft, I.current && I.current());
|
|
563
563
|
}, E = () => {
|
|
564
|
-
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
},
|
|
564
|
+
w(r), u();
|
|
565
|
+
}, $ = () => {
|
|
566
|
+
w(n);
|
|
567
|
+
}, W = () => {
|
|
568
568
|
u();
|
|
569
569
|
};
|
|
570
|
-
return r.addEventListener("scroll", E),
|
|
571
|
-
r.removeEventListener("scroll", E),
|
|
570
|
+
return r.addEventListener("scroll", E), y && n.addEventListener("scroll", $), e.addEventListener("scroll", W), window.addEventListener("resize", u), w(r), u(), () => {
|
|
571
|
+
r.removeEventListener("scroll", E), y && n.removeEventListener("scroll", $), e.removeEventListener("scroll", W), window.removeEventListener("resize", u);
|
|
572
572
|
};
|
|
573
|
-
}, [
|
|
574
|
-
if (!z.current || !
|
|
573
|
+
}, [q, g, y]), S(() => {
|
|
574
|
+
if (!z.current || !y)
|
|
575
575
|
return;
|
|
576
|
-
const e = z.current, r =
|
|
576
|
+
const e = z.current, r = g == null ? void 0 : g.current;
|
|
577
577
|
le(e.scrollLeft), ce((r == null ? void 0 : r.scrollTop) || e.scrollTop || 0), ae(e.scrollWidth);
|
|
578
578
|
const n = () => {
|
|
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 w = () => {
|
|
583
583
|
u === null && (u = requestAnimationFrame(() => {
|
|
584
584
|
n(), u = null;
|
|
585
585
|
}));
|
|
586
586
|
}, E = () => {
|
|
587
|
-
|
|
588
|
-
},
|
|
589
|
-
|
|
587
|
+
w();
|
|
588
|
+
}, $ = () => {
|
|
589
|
+
w();
|
|
590
590
|
};
|
|
591
|
-
e.addEventListener("scroll", E, { passive: !0 }), r && r.addEventListener("scroll",
|
|
591
|
+
e.addEventListener("scroll", E, { passive: !0 }), r && r.addEventListener("scroll", $, {
|
|
592
592
|
passive: !0
|
|
593
593
|
});
|
|
594
|
-
const
|
|
594
|
+
const W = () => {
|
|
595
595
|
n(), st((Y) => Y + 1);
|
|
596
596
|
};
|
|
597
|
-
window.addEventListener("resize",
|
|
598
|
-
const
|
|
597
|
+
window.addEventListener("resize", W), I.current = n, n();
|
|
598
|
+
const H = new ResizeObserver(() => {
|
|
599
599
|
n();
|
|
600
600
|
});
|
|
601
|
-
return e &&
|
|
602
|
-
e.removeEventListener("scroll", E), r && r.removeEventListener("scroll",
|
|
601
|
+
return e && H.observe(e), () => {
|
|
602
|
+
e.removeEventListener("scroll", E), r && r.removeEventListener("scroll", $), window.removeEventListener("resize", W), H.disconnect(), u !== null && (cancelAnimationFrame(u), u = null);
|
|
603
603
|
};
|
|
604
|
-
}, [
|
|
605
|
-
if (!z.current || !
|
|
604
|
+
}, [y, g, q, N]), S(() => {
|
|
605
|
+
if (!z.current || !y)
|
|
606
606
|
return;
|
|
607
|
-
const e = z.current, r =
|
|
607
|
+
const e = z.current, r = g == null ? void 0 : g.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, y, g]), S(() => {
|
|
612
612
|
if (!z.current)
|
|
613
613
|
return;
|
|
614
614
|
const e = z.current, r = () => {
|
|
@@ -617,49 +617,49 @@ 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
623
|
const e = z.current, r = new Set(N), n = de.current, u = /* @__PURE__ */ new Set();
|
|
624
|
-
if (N.forEach((
|
|
625
|
-
n.has(
|
|
626
|
-
}), n.forEach((
|
|
627
|
-
r.has(
|
|
624
|
+
if (N.forEach((w) => {
|
|
625
|
+
n.has(w) || u.add(w);
|
|
626
|
+
}), n.forEach((w) => {
|
|
627
|
+
r.has(w) || u.add(w);
|
|
628
628
|
}), u.size === 0) {
|
|
629
629
|
de.current = r;
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
632
|
requestAnimationFrame(() => {
|
|
633
|
-
u.forEach((
|
|
633
|
+
u.forEach((w) => {
|
|
634
634
|
const E = e.querySelector(
|
|
635
|
-
`[data-base-left="0"][data-row-id="${
|
|
635
|
+
`[data-base-left="0"][data-row-id="${w}"]`
|
|
636
636
|
);
|
|
637
637
|
E && te(E);
|
|
638
638
|
});
|
|
639
639
|
}), de.current = r;
|
|
640
|
-
}, [k, N, te]), /* @__PURE__ */
|
|
640
|
+
}, [k, N, te]), /* @__PURE__ */ C(
|
|
641
641
|
"div",
|
|
642
642
|
{
|
|
643
643
|
ref: z,
|
|
644
|
-
className:
|
|
644
|
+
className: m(
|
|
645
645
|
"table",
|
|
646
646
|
{
|
|
647
647
|
"fixed-header": L,
|
|
648
|
-
"horizontally-scrollable-container": L && (
|
|
649
|
-
"external-scroll-container": L && !!
|
|
648
|
+
"horizontally-scrollable-container": L && (y || T),
|
|
649
|
+
"external-scroll-container": L && !!g
|
|
650
650
|
},
|
|
651
651
|
d
|
|
652
652
|
),
|
|
653
653
|
children: [
|
|
654
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ C(
|
|
655
655
|
"div",
|
|
656
656
|
{
|
|
657
|
-
ref:
|
|
658
|
-
className:
|
|
657
|
+
ref: G,
|
|
658
|
+
className: m(
|
|
659
659
|
"table-header",
|
|
660
660
|
{
|
|
661
|
-
"sticky-header": L && !
|
|
662
|
-
"horizontally-scrollable":
|
|
661
|
+
"sticky-header": L && !q,
|
|
662
|
+
"horizontally-scrollable": y,
|
|
663
663
|
resizable: T
|
|
664
664
|
},
|
|
665
665
|
f
|
|
@@ -669,15 +669,15 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
669
669
|
o && /* @__PURE__ */ h(
|
|
670
670
|
"div",
|
|
671
671
|
{
|
|
672
|
-
className:
|
|
673
|
-
"data-base-left": k ?
|
|
672
|
+
className: m("table-header-cell", "checkbox-cell"),
|
|
673
|
+
"data-base-left": k ? D : 0,
|
|
674
674
|
children: dt && /* @__PURE__ */ h(
|
|
675
|
-
|
|
675
|
+
Pe,
|
|
676
676
|
{
|
|
677
677
|
value: lt,
|
|
678
678
|
partiallyChecked: ct,
|
|
679
679
|
onChange: it,
|
|
680
|
-
className:
|
|
680
|
+
className: m("checkbox-cell")
|
|
681
681
|
}
|
|
682
682
|
)
|
|
683
683
|
}
|
|
@@ -685,29 +685,29 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
685
685
|
k && /* @__PURE__ */ h(
|
|
686
686
|
"div",
|
|
687
687
|
{
|
|
688
|
-
className:
|
|
688
|
+
className: m("table-header-cell", "expand-cell", "left-border-accent"),
|
|
689
689
|
"data-base-left": "0",
|
|
690
|
-
children:
|
|
691
|
-
|
|
690
|
+
children: P ? /* @__PURE__ */ h(
|
|
691
|
+
wt,
|
|
692
692
|
{
|
|
693
|
-
content:
|
|
693
|
+
content: P,
|
|
694
694
|
placement: "top",
|
|
695
|
-
wrapperClassName:
|
|
696
|
-
contentClassName:
|
|
697
|
-
children:
|
|
695
|
+
wrapperClassName: m("expand-all-tooltip-wrapper"),
|
|
696
|
+
contentClassName: m("expand-all-tooltip-content"),
|
|
697
|
+
children: xe
|
|
698
698
|
}
|
|
699
|
-
) :
|
|
699
|
+
) : xe
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
|
-
|
|
702
|
+
B.map((e, r) => {
|
|
703
703
|
const n = /* @__PURE__ */ h(
|
|
704
704
|
"button",
|
|
705
705
|
{
|
|
706
706
|
"data-column-key": e.key,
|
|
707
707
|
"data-pinned-index": r,
|
|
708
|
-
className:
|
|
708
|
+
className: m("table-header-cell", "pinned-column", {
|
|
709
709
|
[`align-${e.align}`]: "align" in e,
|
|
710
|
-
"primary-cell":
|
|
710
|
+
"primary-cell": O(e),
|
|
711
711
|
"sortable-cell": K.includes(e.key),
|
|
712
712
|
resizable: T
|
|
713
713
|
}),
|
|
@@ -715,21 +715,21 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
715
715
|
e,
|
|
716
716
|
!0,
|
|
717
717
|
r,
|
|
718
|
-
|
|
718
|
+
B,
|
|
719
719
|
V,
|
|
720
720
|
k,
|
|
721
721
|
o
|
|
722
722
|
),
|
|
723
|
-
children: /* @__PURE__ */
|
|
723
|
+
children: /* @__PURE__ */ C(
|
|
724
724
|
"div",
|
|
725
725
|
{
|
|
726
|
-
className:
|
|
726
|
+
className: m("label"),
|
|
727
727
|
onClick: () => Ne(e.key),
|
|
728
|
-
onMouseEnter: () =>
|
|
729
|
-
onMouseLeave:
|
|
728
|
+
onMouseEnter: () => ve(e.key),
|
|
729
|
+
onMouseLeave: ye,
|
|
730
730
|
children: [
|
|
731
|
-
/* @__PURE__ */ h(
|
|
732
|
-
(
|
|
731
|
+
/* @__PURE__ */ h(Se, { column: e }),
|
|
732
|
+
(me === e.key || (M == null ? void 0 : M.key) === e.key) && Ae(e.key)
|
|
733
733
|
]
|
|
734
734
|
}
|
|
735
735
|
)
|
|
@@ -742,9 +742,9 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
742
742
|
const r = /* @__PURE__ */ h(
|
|
743
743
|
"button",
|
|
744
744
|
{
|
|
745
|
-
className:
|
|
745
|
+
className: m("table-header-cell", {
|
|
746
746
|
[`align-${e.align}`]: "align" in e,
|
|
747
|
-
"primary-cell":
|
|
747
|
+
"primary-cell": O(e),
|
|
748
748
|
"sortable-cell": K.includes(e.key),
|
|
749
749
|
resizable: T
|
|
750
750
|
}),
|
|
@@ -752,21 +752,21 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
752
752
|
e,
|
|
753
753
|
!1,
|
|
754
754
|
void 0,
|
|
755
|
-
|
|
755
|
+
B,
|
|
756
756
|
V,
|
|
757
757
|
k,
|
|
758
758
|
o
|
|
759
759
|
),
|
|
760
|
-
children: /* @__PURE__ */
|
|
760
|
+
children: /* @__PURE__ */ C(
|
|
761
761
|
"div",
|
|
762
762
|
{
|
|
763
|
-
className:
|
|
763
|
+
className: m("label"),
|
|
764
764
|
onClick: () => Ne(e.key),
|
|
765
|
-
onMouseEnter: () =>
|
|
766
|
-
onMouseLeave:
|
|
765
|
+
onMouseEnter: () => ve(e.key),
|
|
766
|
+
onMouseLeave: ye,
|
|
767
767
|
children: [
|
|
768
|
-
/* @__PURE__ */ h(
|
|
769
|
-
(
|
|
768
|
+
/* @__PURE__ */ h(Se, { column: e }),
|
|
769
|
+
(me === e.key || (M == null ? void 0 : M.key) === e.key) && Ae(e.key)
|
|
770
770
|
]
|
|
771
771
|
}
|
|
772
772
|
)
|
|
@@ -775,7 +775,7 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
775
775
|
);
|
|
776
776
|
return T ? ke(e, r) : r;
|
|
777
777
|
}),
|
|
778
|
-
l && /* @__PURE__ */ h("div", { className:
|
|
778
|
+
l && /* @__PURE__ */ h("div", { className: m("table-header-cell", "action-menu-cell") })
|
|
779
779
|
]
|
|
780
780
|
}
|
|
781
781
|
),
|
|
@@ -783,20 +783,20 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
783
783
|
"div",
|
|
784
784
|
{
|
|
785
785
|
ref: tt,
|
|
786
|
-
className:
|
|
786
|
+
className: m(
|
|
787
787
|
"table-body",
|
|
788
788
|
{
|
|
789
789
|
"scrollable-body": L,
|
|
790
|
-
"horizontally-scrollable":
|
|
790
|
+
"horizontally-scrollable": y,
|
|
791
791
|
resizable: T
|
|
792
792
|
},
|
|
793
|
-
|
|
793
|
+
v
|
|
794
794
|
),
|
|
795
|
-
children: t.map((e, r) => /* @__PURE__ */
|
|
795
|
+
children: t.map((e, r) => /* @__PURE__ */ C(
|
|
796
796
|
"div",
|
|
797
797
|
{
|
|
798
798
|
"data-row-index": r,
|
|
799
|
-
className:
|
|
799
|
+
className: m("table-row", Ht(e), c, {
|
|
800
800
|
selectable: o
|
|
801
801
|
}),
|
|
802
802
|
onMouseEnter: () => Je(r),
|
|
@@ -805,23 +805,23 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
805
805
|
o && /* @__PURE__ */ h(
|
|
806
806
|
"div",
|
|
807
807
|
{
|
|
808
|
-
className:
|
|
809
|
-
"data-base-left": k ?
|
|
810
|
-
children: (
|
|
811
|
-
|
|
808
|
+
className: m("table-cell", "checkbox-cell"),
|
|
809
|
+
"data-base-left": k ? D : 0,
|
|
810
|
+
children: ($e || Ye === r) && /* @__PURE__ */ h(
|
|
811
|
+
Pe,
|
|
812
812
|
{
|
|
813
813
|
value: p.includes(e.id),
|
|
814
814
|
onChange: () => rt(e.id),
|
|
815
|
-
className:
|
|
815
|
+
className: m("checkbox-cell")
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
}
|
|
819
819
|
),
|
|
820
|
-
/* @__PURE__ */ h("div", { className:
|
|
820
|
+
/* @__PURE__ */ h("div", { className: m("row-content-wrapper"), children: /* @__PURE__ */ C("div", { className: m("table-row-content"), style: { gridTemplateColumns: ut }, children: [
|
|
821
821
|
k && /* @__PURE__ */ h(
|
|
822
822
|
"div",
|
|
823
823
|
{
|
|
824
|
-
className:
|
|
824
|
+
className: m("table-cell", "expand-cell", "left-border-accent"),
|
|
825
825
|
"data-base-left": "0",
|
|
826
826
|
"data-row-id": e.id,
|
|
827
827
|
children: /* @__PURE__ */ h(
|
|
@@ -833,33 +833,33 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
833
833
|
children: /* @__PURE__ */ h(
|
|
834
834
|
"span",
|
|
835
835
|
{
|
|
836
|
-
className:
|
|
836
|
+
className: m("expand-icon", {
|
|
837
837
|
expanded: N.includes(e.id)
|
|
838
838
|
}),
|
|
839
|
-
children: /* @__PURE__ */ h(
|
|
839
|
+
children: /* @__PURE__ */ h(We, {})
|
|
840
840
|
}
|
|
841
841
|
)
|
|
842
842
|
}
|
|
843
843
|
)
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
|
-
|
|
847
|
-
const
|
|
846
|
+
B.map((n, u) => {
|
|
847
|
+
const w = we(e.id, n.key), E = O(n);
|
|
848
848
|
return /* @__PURE__ */ h(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
851
|
"data-column-key": n.key,
|
|
852
852
|
"data-pinned-index": u,
|
|
853
|
-
ref: E ?
|
|
854
|
-
className:
|
|
853
|
+
ref: E ? be(n.key) : void 0,
|
|
854
|
+
className: m("table-cell", "pinned-column", {
|
|
855
855
|
"primary-cell": E,
|
|
856
|
-
"expanded-cell":
|
|
856
|
+
"expanded-cell": w
|
|
857
857
|
}),
|
|
858
858
|
style: re(
|
|
859
859
|
n,
|
|
860
860
|
!0,
|
|
861
861
|
u,
|
|
862
|
-
|
|
862
|
+
B,
|
|
863
863
|
V,
|
|
864
864
|
k,
|
|
865
865
|
o
|
|
@@ -870,20 +870,20 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
870
870
|
);
|
|
871
871
|
}),
|
|
872
872
|
R.map((n) => {
|
|
873
|
-
const u =
|
|
873
|
+
const u = we(e.id, n.key), w = O(n);
|
|
874
874
|
return /* @__PURE__ */ h(
|
|
875
875
|
"div",
|
|
876
876
|
{
|
|
877
|
-
ref:
|
|
878
|
-
className:
|
|
879
|
-
"primary-cell":
|
|
877
|
+
ref: w ? be(n.key) : void 0,
|
|
878
|
+
className: m("table-cell", {
|
|
879
|
+
"primary-cell": w,
|
|
880
880
|
"expanded-cell": u
|
|
881
881
|
}),
|
|
882
882
|
style: re(
|
|
883
883
|
n,
|
|
884
884
|
!1,
|
|
885
885
|
void 0,
|
|
886
|
-
|
|
886
|
+
B,
|
|
887
887
|
V,
|
|
888
888
|
k,
|
|
889
889
|
o
|
|
@@ -893,7 +893,7 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
893
893
|
n.key
|
|
894
894
|
);
|
|
895
895
|
}),
|
|
896
|
-
l && /* @__PURE__ */ h("div", { className:
|
|
896
|
+
l && /* @__PURE__ */ h("div", { className: m("table-cell", "action-menu-cell"), children: l(e.metaData) })
|
|
897
897
|
] }) })
|
|
898
898
|
]
|
|
899
899
|
},
|
|
@@ -901,11 +901,11 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
901
901
|
))
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
|
-
|
|
904
|
+
y && /* @__PURE__ */ C(gt, { children: [
|
|
905
905
|
/* @__PURE__ */ h(
|
|
906
|
-
|
|
906
|
+
Ge,
|
|
907
907
|
{
|
|
908
|
-
portalContainer:
|
|
908
|
+
portalContainer: ge,
|
|
909
909
|
visible: he.visible,
|
|
910
910
|
position: he.position,
|
|
911
911
|
size: he.size,
|
|
@@ -915,9 +915,9 @@ const Se = (t) => typeof t == "string", Lt = "_table_1jhbw_1", Tt = "_resizable_
|
|
|
915
915
|
}
|
|
916
916
|
),
|
|
917
917
|
/* @__PURE__ */ h(
|
|
918
|
-
|
|
918
|
+
Ge,
|
|
919
919
|
{
|
|
920
|
-
portalContainer:
|
|
920
|
+
portalContainer: ge,
|
|
921
921
|
visible: pe.visible,
|
|
922
922
|
position: pe.position,
|
|
923
923
|
size: pe.size,
|