@reportportal/ui-kit 0.0.1-alpha.145 → 0.0.1-alpha.147
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/adaptiveTagList.js +69 -69
- package/dist/components/dropdown/constants.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts +2 -0
- package/dist/{datePicker-f8e0df24.js → datePicker-eaf5d130.js} +1 -1
- package/dist/datePicker.js +3 -3
- package/dist/dropdown-798def53.js +638 -0
- package/dist/dropdown.js +2 -2
- package/dist/index.js +3 -3
- package/dist/modal.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-a67da002.js → table-b4364f2c.js} +155 -153
- package/dist/table.js +1 -1
- package/package.json +1 -1
- package/dist/dropdown-893c692c.js +0 -634
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useMemo as se, useState as
|
|
1
|
+
import { jsx as o, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as se, useState as m, useCallback as w, useEffect as re, useRef as oe, forwardRef as Pe } from "react";
|
|
3
3
|
import { Resizable as De } from "react-resizable";
|
|
4
4
|
import { c as ce } from "./bind-06a7ff84.js";
|
|
5
5
|
import { c as We, b as ee, a as le, S as Oe } from "./resizeColumn-d4107941.js";
|
|
6
6
|
import { C as te } from "./checkbox-ed6cc375.js";
|
|
7
7
|
import { Tooltip as Ue } from "./tooltip.js";
|
|
8
|
-
const j = (l) => typeof l == "string", je = "
|
|
8
|
+
const j = (l) => typeof l == "string", je = "_table_1244e_1", He = "_resizable_1244e_46", Be = "_selectable_1244e_63", Ge = "_expanded_1244e_59", Xe = "_label_1244e_303", Ye = {
|
|
9
9
|
table: je,
|
|
10
|
-
"fixed-header": "_fixed-
|
|
11
|
-
"horizontally-scrollable-container": "_horizontally-scrollable-
|
|
12
|
-
"table-header": "_table-
|
|
13
|
-
"sticky-header": "_sticky-
|
|
14
|
-
"horizontally-scrollable": "_horizontally-
|
|
10
|
+
"fixed-header": "_fixed-header_1244e_8",
|
|
11
|
+
"horizontally-scrollable-container": "_horizontally-scrollable-container_1244e_14",
|
|
12
|
+
"table-header": "_table-header_1244e_19",
|
|
13
|
+
"sticky-header": "_sticky-header_1244e_26",
|
|
14
|
+
"horizontally-scrollable": "_horizontally-scrollable_1244e_14",
|
|
15
15
|
resizable: He,
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"resizable-column": "_resizable-column_1244e_46",
|
|
17
|
+
"table-row": "_table-row_1244e_54",
|
|
18
|
+
"expanded-cell": "_expanded-cell_1244e_59",
|
|
18
19
|
selectable: Be,
|
|
19
|
-
"row-content-wrapper": "_row-content-
|
|
20
|
-
"table-row-content": "_table-row-
|
|
21
|
-
"expand-cell": "_expand-
|
|
22
|
-
"size-small": "_size-
|
|
23
|
-
"size-large": "_size-
|
|
24
|
-
"table-body": "_table-
|
|
25
|
-
"scrollable-body": "_scrollable-
|
|
26
|
-
"table-header-cell": "_table-header-
|
|
27
|
-
"table-cell": "_table-
|
|
28
|
-
"action-menu-cell": "_action-menu-
|
|
29
|
-
"checkbox-cell": "_checkbox-
|
|
30
|
-
"expand-all-tooltip-wrapper": "_expand-all-tooltip-
|
|
31
|
-
"expand-all-tooltip-content": "_expand-all-tooltip-
|
|
32
|
-
"expand-icon": "_expand-
|
|
20
|
+
"row-content-wrapper": "_row-content-wrapper_1244e_67",
|
|
21
|
+
"table-row-content": "_table-row-content_1244e_75",
|
|
22
|
+
"expand-cell": "_expand-cell_1244e_89",
|
|
23
|
+
"size-small": "_size-small_1244e_92",
|
|
24
|
+
"size-large": "_size-large_1244e_103",
|
|
25
|
+
"table-body": "_table-body_1244e_115",
|
|
26
|
+
"scrollable-body": "_scrollable-body_1244e_121",
|
|
27
|
+
"table-header-cell": "_table-header-cell_1244e_181",
|
|
28
|
+
"table-cell": "_table-cell_1244e_182",
|
|
29
|
+
"action-menu-cell": "_action-menu-cell_1244e_188",
|
|
30
|
+
"checkbox-cell": "_checkbox-cell_1244e_213",
|
|
31
|
+
"expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1244e_255",
|
|
32
|
+
"expand-all-tooltip-content": "_expand-all-tooltip-content_1244e_264",
|
|
33
|
+
"expand-icon": "_expand-icon_1244e_273",
|
|
33
34
|
expanded: Ge,
|
|
34
|
-
"primary-cell": "_primary-
|
|
35
|
+
"primary-cell": "_primary-cell_1244e_282",
|
|
35
36
|
label: Xe,
|
|
36
|
-
"sortable-cell": "_sortable-
|
|
37
|
-
"align-right": "_align-
|
|
38
|
-
"align-center": "_align-
|
|
39
|
-
"pinned-column": "_pinned-
|
|
40
|
-
}, ie = "asc",
|
|
37
|
+
"sortable-cell": "_sortable-cell_1244e_317",
|
|
38
|
+
"align-right": "_align-right_1244e_320",
|
|
39
|
+
"align-center": "_align-center_1244e_326",
|
|
40
|
+
"pinned-column": "_pinned-column_1244e_329"
|
|
41
|
+
}, ie = "asc", S = 32, de = 100, qe = 48, Je = (l) => l.toLowerCase() === ie, Qe = (l) => l.map((n) => n.key), N = (l) => "primary" in l && l.primary === !0, Ve = (l) => {
|
|
41
42
|
var r;
|
|
42
43
|
return `size-${((r = l.rowConfigs) == null ? void 0 : r.size) ?? "default"}`;
|
|
43
|
-
}, Ze = (l,
|
|
44
|
+
}, Ze = (l, n, r, c, i) => {
|
|
44
45
|
let s = 0;
|
|
45
|
-
c && (s +=
|
|
46
|
+
c && (s += S), i && (s += S);
|
|
46
47
|
for (let _ = 0; _ < l; _++) {
|
|
47
|
-
const p =
|
|
48
|
+
const p = n[_];
|
|
48
49
|
if (N(p)) {
|
|
49
|
-
const t = r.current.get(p.key) ||
|
|
50
|
+
const t = r.current.get(p.key) || de;
|
|
50
51
|
s += t;
|
|
51
52
|
} else {
|
|
52
|
-
const t = p,
|
|
53
|
-
s +=
|
|
53
|
+
const t = p, d = j(t.width) ? parseInt(t.width, 10) || 0 : t.width;
|
|
54
|
+
s += d;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
return s;
|
|
57
|
-
}, D = (l,
|
|
58
|
+
}, D = (l, n, r, c, i, s, _) => {
|
|
58
59
|
const p = {};
|
|
59
60
|
if (!N(l)) {
|
|
60
61
|
const t = l;
|
|
61
62
|
p.textAlign = t.align;
|
|
62
63
|
}
|
|
63
|
-
if (
|
|
64
|
+
if (n && r !== void 0) {
|
|
64
65
|
const t = Ze(
|
|
65
66
|
r,
|
|
66
67
|
c,
|
|
@@ -71,43 +72,43 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
71
72
|
p.left = `${t}px`;
|
|
72
73
|
}
|
|
73
74
|
return p;
|
|
74
|
-
},
|
|
75
|
+
}, ne = (l, n, r, c, i, s = !1, _) => {
|
|
75
76
|
const p = [];
|
|
76
|
-
r && p.push(`${
|
|
77
|
-
const t = (
|
|
78
|
-
if ((_ == null ? void 0 : _[
|
|
79
|
-
p.push(`${_[
|
|
77
|
+
r && p.push(`${S}px`), s && c && p.push(`${S}px`);
|
|
78
|
+
const t = (d) => {
|
|
79
|
+
if ((_ == null ? void 0 : _[d.key]) !== void 0) {
|
|
80
|
+
p.push(`${_[d.key]}px`);
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
82
|
-
if (N(
|
|
83
|
-
const
|
|
83
|
+
if (N(d)) {
|
|
84
|
+
const a = d, f = a.width ? j(a.width) ? a.width : `${a.width}px` : `${de}px`;
|
|
84
85
|
p.push(`minmax(${f}, 1fr)`);
|
|
85
86
|
} else {
|
|
86
|
-
const
|
|
87
|
+
const a = d, f = j(a.width) ? a.width : `${a.width}px`;
|
|
87
88
|
p.push(f);
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
|
-
return l.forEach(t),
|
|
91
|
+
return l.forEach(t), n.forEach(t), i && p.push(`${qe}px`), p.join(" ");
|
|
91
92
|
}, Ke = ({
|
|
92
93
|
primaryColumns: l,
|
|
93
|
-
fixedColumns:
|
|
94
|
+
fixedColumns: n,
|
|
94
95
|
pinnedColumnKeys: r
|
|
95
96
|
}) => se(() => {
|
|
96
97
|
const c = [], i = [];
|
|
97
98
|
return l.forEach((s) => {
|
|
98
99
|
const _ = { ...s, primary: !0 };
|
|
99
100
|
r.includes(s.key) ? c.push(_) : i.push(_);
|
|
100
|
-
}),
|
|
101
|
+
}), n.forEach((s) => {
|
|
101
102
|
r.includes(s.key) ? c.push(s) : i.push(s);
|
|
102
103
|
}), {
|
|
103
104
|
pinnedColumns: c,
|
|
104
105
|
scrollableColumns: i
|
|
105
106
|
};
|
|
106
|
-
}, [l,
|
|
107
|
-
const [l,
|
|
108
|
-
|
|
107
|
+
}, [l, n, r]), Fe = () => {
|
|
108
|
+
const [l, n] = m(null), [r, c] = m(null), i = w((t) => {
|
|
109
|
+
n(t);
|
|
109
110
|
}, []), s = w(() => {
|
|
110
|
-
|
|
111
|
+
n(null);
|
|
111
112
|
}, []), _ = w((t) => {
|
|
112
113
|
c(t);
|
|
113
114
|
}, []), p = w(() => {
|
|
@@ -123,50 +124,50 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
123
124
|
};
|
|
124
125
|
}, Re = ({
|
|
125
126
|
primaryColumns: l,
|
|
126
|
-
fixedColumns:
|
|
127
|
+
fixedColumns: n,
|
|
127
128
|
expandedRowIds: r,
|
|
128
129
|
onToggleRowExpansion: c
|
|
129
130
|
}) => {
|
|
130
|
-
const [i, s] =
|
|
131
|
+
const [i, s] = m(/* @__PURE__ */ new Set());
|
|
131
132
|
re(() => {
|
|
132
133
|
const t = [
|
|
133
|
-
...l.map((
|
|
134
|
-
...
|
|
135
|
-
],
|
|
136
|
-
r.forEach((
|
|
134
|
+
...l.map((a) => a.key),
|
|
135
|
+
...n.map((a) => a.key)
|
|
136
|
+
], d = /* @__PURE__ */ new Set();
|
|
137
|
+
r.forEach((a) => {
|
|
137
138
|
t.forEach((f) => {
|
|
138
|
-
|
|
139
|
+
d.add(`${a}-${f}`);
|
|
139
140
|
});
|
|
140
|
-
}), s((
|
|
141
|
-
if (
|
|
141
|
+
}), s((a) => {
|
|
142
|
+
if (a.size === d.size) {
|
|
142
143
|
let f = !0;
|
|
143
|
-
if (
|
|
144
|
-
|
|
144
|
+
if (a.forEach((b) => {
|
|
145
|
+
d.has(b) || (f = !1);
|
|
145
146
|
}), f)
|
|
146
|
-
return
|
|
147
|
+
return a;
|
|
147
148
|
}
|
|
148
|
-
return
|
|
149
|
+
return d;
|
|
149
150
|
});
|
|
150
|
-
}, [r, l,
|
|
151
|
+
}, [r, l, n]);
|
|
151
152
|
const _ = w(
|
|
152
153
|
(t) => {
|
|
153
|
-
const
|
|
154
|
+
const d = new Set(i), a = r.includes(t), f = [
|
|
154
155
|
...l.map((b) => b.key),
|
|
155
|
-
...
|
|
156
|
+
...n.map((b) => b.key)
|
|
156
157
|
];
|
|
157
|
-
|
|
158
|
+
a ? f.forEach((b) => {
|
|
158
159
|
const u = `${t}-${b}`;
|
|
159
|
-
|
|
160
|
+
d.delete(u);
|
|
160
161
|
}) : f.forEach((b) => {
|
|
161
162
|
const u = `${t}-${b}`;
|
|
162
|
-
|
|
163
|
-
}), s(
|
|
163
|
+
d.add(u);
|
|
164
|
+
}), s(d), c(t);
|
|
164
165
|
},
|
|
165
|
-
[i, r, l,
|
|
166
|
+
[i, r, l, n, c]
|
|
166
167
|
), p = w(
|
|
167
|
-
(t,
|
|
168
|
-
const
|
|
169
|
-
return i.has(
|
|
168
|
+
(t, d) => {
|
|
169
|
+
const a = `${t}-${d}`;
|
|
170
|
+
return i.has(a);
|
|
170
171
|
},
|
|
171
172
|
[i]
|
|
172
173
|
);
|
|
@@ -176,7 +177,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
176
177
|
isCellExpanded: p
|
|
177
178
|
};
|
|
178
179
|
}, Ie = () => {
|
|
179
|
-
const l = oe(/* @__PURE__ */ new Map()),
|
|
180
|
+
const l = oe(/* @__PURE__ */ new Map()), n = w(
|
|
180
181
|
(r) => (c) => {
|
|
181
182
|
if (!c)
|
|
182
183
|
return;
|
|
@@ -187,57 +188,57 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
187
188
|
);
|
|
188
189
|
return {
|
|
189
190
|
columnWidthsRef: l,
|
|
190
|
-
setCellRef:
|
|
191
|
+
setCellRef: n
|
|
191
192
|
};
|
|
192
193
|
}, el = ({
|
|
193
194
|
enabled: l = !1,
|
|
194
|
-
minWidth:
|
|
195
|
+
minWidth: n = 50,
|
|
195
196
|
maxWidth: r = 500,
|
|
196
197
|
columnWidthsRef: c,
|
|
197
198
|
onColumnResize: i
|
|
198
199
|
}) => {
|
|
199
|
-
const [s, _] =
|
|
200
|
+
const [s, _] = m({}), p = w(() => {
|
|
200
201
|
if (!l || Object.keys(s).length > 0 || !c)
|
|
201
202
|
return;
|
|
202
|
-
const
|
|
203
|
+
const a = {};
|
|
203
204
|
c.current.forEach((f, b) => {
|
|
204
|
-
|
|
205
|
-
}), _(
|
|
205
|
+
a[b] = f;
|
|
206
|
+
}), _(a);
|
|
206
207
|
}, [l, s, c]), t = w(
|
|
207
|
-
(
|
|
208
|
+
(a) => (f, { size: b }) => {
|
|
208
209
|
if (!l)
|
|
209
210
|
return;
|
|
210
|
-
const u = Math.min(r, Math.max(
|
|
211
|
-
_((E) => ({ ...E, [
|
|
211
|
+
const u = Math.min(r, Math.max(n, b.width));
|
|
212
|
+
_((E) => ({ ...E, [a]: u }));
|
|
212
213
|
},
|
|
213
|
-
[l,
|
|
214
|
-
),
|
|
215
|
-
(
|
|
216
|
-
!l || !s[
|
|
214
|
+
[l, n, r]
|
|
215
|
+
), d = w(
|
|
216
|
+
(a) => () => {
|
|
217
|
+
!l || !s[a] || i == null || i(a, s[a]);
|
|
217
218
|
},
|
|
218
219
|
[l, s, i]
|
|
219
220
|
);
|
|
220
221
|
return {
|
|
221
222
|
columnWidths: s,
|
|
222
223
|
handleResize: t,
|
|
223
|
-
handleResizeStop:
|
|
224
|
+
handleResizeStop: d,
|
|
224
225
|
handleResizeStart: p
|
|
225
226
|
};
|
|
226
227
|
}, ll = {
|
|
227
228
|
"resize-handle": "_resize-handle_15uk3_1"
|
|
228
|
-
}, tl = ce.bind(ll),
|
|
229
|
-
(l,
|
|
230
|
-
),
|
|
231
|
-
const
|
|
229
|
+
}, tl = ce.bind(ll), nl = Pe(
|
|
230
|
+
(l, n) => /* @__PURE__ */ o("div", { ref: n, className: tl("resize-handle"), ...l, children: /* @__PURE__ */ o(We, {}) })
|
|
231
|
+
), h = ce.bind(Ye), ae = ({ column: l }) => {
|
|
232
|
+
const n = oe(null), [r, c] = m(!1);
|
|
232
233
|
return re(() => {
|
|
233
|
-
if (
|
|
234
|
-
const i =
|
|
234
|
+
if (n.current) {
|
|
235
|
+
const i = n.current.offsetWidth, s = n.current.scrollWidth;
|
|
235
236
|
c(s > i);
|
|
236
237
|
}
|
|
237
|
-
}, [l.header]), /* @__PURE__ */ o("span", { ref:
|
|
238
|
-
},
|
|
238
|
+
}, [l.header]), /* @__PURE__ */ o("span", { ref: n, title: r ? l.header : void 0, children: l.header });
|
|
239
|
+
}, hl = ({
|
|
239
240
|
data: l,
|
|
240
|
-
primaryColumn:
|
|
241
|
+
primaryColumn: n,
|
|
241
242
|
fixedColumns: r,
|
|
242
243
|
renderRowActions: c,
|
|
243
244
|
className: i = "",
|
|
@@ -245,13 +246,13 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
245
246
|
headerClassName: _ = "",
|
|
246
247
|
bodyClassName: p = "",
|
|
247
248
|
selectable: t = !1,
|
|
248
|
-
selectedRowIds:
|
|
249
|
-
sortingDirection:
|
|
249
|
+
selectedRowIds: d = [],
|
|
250
|
+
sortingDirection: a = ie,
|
|
250
251
|
sortingColumn: f,
|
|
251
252
|
sortableColumns: b,
|
|
252
253
|
isHeaderFixed: u = !1,
|
|
253
254
|
isHorizontallyScrollable: E = !1,
|
|
254
|
-
pinnedColumnKeys:
|
|
255
|
+
pinnedColumnKeys: he = [],
|
|
255
256
|
isRowsExpandable: k = !1,
|
|
256
257
|
expandedRowIds: $ = [],
|
|
257
258
|
isAllExpandedByDefault: H,
|
|
@@ -272,13 +273,13 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
272
273
|
onColumnResize: ue = () => {
|
|
273
274
|
}
|
|
274
275
|
}) => {
|
|
275
|
-
const
|
|
276
|
-
() => Array.isArray(
|
|
277
|
-
[
|
|
278
|
-
), x = f ??
|
|
279
|
-
primaryColumns:
|
|
276
|
+
const T = se(
|
|
277
|
+
() => Array.isArray(n) ? n : [n],
|
|
278
|
+
[n]
|
|
279
|
+
), x = f ?? T[0], A = b ?? Qe([...T, ...r]), { pinnedColumns: g, scrollableColumns: L } = Ke({
|
|
280
|
+
primaryColumns: T,
|
|
280
281
|
fixedColumns: r,
|
|
281
|
-
pinnedColumnKeys:
|
|
282
|
+
pinnedColumnKeys: he
|
|
282
283
|
}), {
|
|
283
284
|
hoveredColumn: X,
|
|
284
285
|
hoveredRow: ke,
|
|
@@ -287,7 +288,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
287
288
|
handleRowMouseEnter: ve,
|
|
288
289
|
handleRowMouseLeave: we
|
|
289
290
|
} = Fe(), { columnWidthsRef: M, setCellRef: J } = Ie(), { handleToggleRowExpansion: xe, isCellExpanded: Q } = Re({
|
|
290
|
-
primaryColumns:
|
|
291
|
+
primaryColumns: T,
|
|
291
292
|
fixedColumns: r,
|
|
292
293
|
expandedRowIds: $,
|
|
293
294
|
onToggleRowExpansion: fe
|
|
@@ -303,24 +304,25 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
303
304
|
width: O[e.key] ?? (typeof e.width == "number" ? e.width : W),
|
|
304
305
|
height: 0,
|
|
305
306
|
axis: "x",
|
|
306
|
-
handle: /* @__PURE__ */ o(
|
|
307
|
+
handle: /* @__PURE__ */ o(nl, {}),
|
|
307
308
|
onResizeStart: Ne,
|
|
308
309
|
onResize: Ce(e.key),
|
|
309
310
|
onResizeStop: ge(e.key),
|
|
310
311
|
minConstraints: [W, 0],
|
|
311
312
|
maxConstraints: [G, 0],
|
|
313
|
+
className: h("resizable-column"),
|
|
312
314
|
children: C
|
|
313
315
|
},
|
|
314
316
|
e.key
|
|
315
317
|
), Z = (e) => {
|
|
316
|
-
A.includes(e) && pe({ key: e, direction:
|
|
317
|
-
},
|
|
318
|
+
A.includes(e) && pe({ key: e, direction: a });
|
|
319
|
+
}, ze = (e) => {
|
|
318
320
|
_e(e);
|
|
319
|
-
},
|
|
321
|
+
}, Se = () => {
|
|
320
322
|
ye();
|
|
321
323
|
}, Ee = () => {
|
|
322
324
|
be();
|
|
323
|
-
}, K = (e) => A.includes(e) ? (x == null ? void 0 : x.key) === e ? Je(
|
|
325
|
+
}, K = (e) => A.includes(e) ? (x == null ? void 0 : x.key) === e ? Je(a) ? /* @__PURE__ */ o(le, {}) : /* @__PURE__ */ o(Oe, {}) : /* @__PURE__ */ o(le, {}) : null, $e = l.every((e) => d.includes(e.id)), Me = l.some((e) => d.includes(e.id)), F = (d == null ? void 0 : d.length) > 0, me = l.every((e) => $.includes(e.id)), Te = H !== void 0 ? H : me, Ae = ne(
|
|
324
326
|
g,
|
|
325
327
|
L,
|
|
326
328
|
k,
|
|
@@ -328,7 +330,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
328
330
|
!!c,
|
|
329
331
|
!1,
|
|
330
332
|
v ? O : void 0
|
|
331
|
-
), Le =
|
|
333
|
+
), Le = ne(
|
|
332
334
|
g,
|
|
333
335
|
L,
|
|
334
336
|
k,
|
|
@@ -336,11 +338,11 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
336
338
|
!!c,
|
|
337
339
|
!0,
|
|
338
340
|
v ? O : void 0
|
|
339
|
-
), R = /* @__PURE__ */ o("button", { onClick: Ee, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ o("span", { className:
|
|
340
|
-
return /* @__PURE__ */
|
|
341
|
+
), R = /* @__PURE__ */ o("button", { onClick: Ee, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ o("span", { className: h("expand-icon", { expanded: Te }), children: /* @__PURE__ */ o(ee, {}) }) });
|
|
342
|
+
return /* @__PURE__ */ z(
|
|
341
343
|
"div",
|
|
342
344
|
{
|
|
343
|
-
className:
|
|
345
|
+
className: h(
|
|
344
346
|
"table",
|
|
345
347
|
{
|
|
346
348
|
"fixed-header": u,
|
|
@@ -349,10 +351,10 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
349
351
|
i
|
|
350
352
|
),
|
|
351
353
|
children: [
|
|
352
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ z(
|
|
353
355
|
"div",
|
|
354
356
|
{
|
|
355
|
-
className:
|
|
357
|
+
className: h(
|
|
356
358
|
"table-header",
|
|
357
359
|
{
|
|
358
360
|
"sticky-header": u,
|
|
@@ -366,26 +368,26 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
366
368
|
t && /* @__PURE__ */ o(
|
|
367
369
|
"div",
|
|
368
370
|
{
|
|
369
|
-
className:
|
|
370
|
-
style: { left: k ? `${
|
|
371
|
+
className: h("table-header-cell", "checkbox-cell"),
|
|
372
|
+
style: { left: k ? `${S}px` : "0" },
|
|
371
373
|
children: F && /* @__PURE__ */ o(
|
|
372
374
|
te,
|
|
373
375
|
{
|
|
374
376
|
value: $e,
|
|
375
377
|
partiallyChecked: Me,
|
|
376
|
-
onChange:
|
|
377
|
-
className:
|
|
378
|
+
onChange: Se,
|
|
379
|
+
className: h("checkbox-cell")
|
|
378
380
|
}
|
|
379
381
|
)
|
|
380
382
|
}
|
|
381
383
|
),
|
|
382
|
-
k && /* @__PURE__ */ o("div", { className:
|
|
384
|
+
k && /* @__PURE__ */ o("div", { className: h("table-header-cell", "expand-cell"), style: { left: "0" }, children: B ? /* @__PURE__ */ o(
|
|
383
385
|
Ue,
|
|
384
386
|
{
|
|
385
387
|
content: B,
|
|
386
388
|
placement: "top",
|
|
387
|
-
wrapperClassName:
|
|
388
|
-
contentClassName:
|
|
389
|
+
wrapperClassName: h("expand-all-tooltip-wrapper"),
|
|
390
|
+
contentClassName: h("expand-all-tooltip-content"),
|
|
389
391
|
children: R
|
|
390
392
|
}
|
|
391
393
|
) : R }),
|
|
@@ -393,7 +395,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
393
395
|
const y = /* @__PURE__ */ o(
|
|
394
396
|
"button",
|
|
395
397
|
{
|
|
396
|
-
className:
|
|
398
|
+
className: h("table-header-cell", "pinned-column", {
|
|
397
399
|
[`align-${e.align}`]: "align" in e,
|
|
398
400
|
"primary-cell": N(e),
|
|
399
401
|
"sortable-cell": A.includes(e.key),
|
|
@@ -408,15 +410,15 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
408
410
|
k,
|
|
409
411
|
t
|
|
410
412
|
),
|
|
411
|
-
children: /* @__PURE__ */
|
|
413
|
+
children: /* @__PURE__ */ z(
|
|
412
414
|
"div",
|
|
413
415
|
{
|
|
414
|
-
className:
|
|
416
|
+
className: h("label"),
|
|
415
417
|
onClick: () => Z(e.key),
|
|
416
418
|
onMouseEnter: () => Y(e.key),
|
|
417
419
|
onMouseLeave: q,
|
|
418
420
|
children: [
|
|
419
|
-
/* @__PURE__ */ o(
|
|
421
|
+
/* @__PURE__ */ o(ae, { column: e }),
|
|
420
422
|
(X === e.key || (x == null ? void 0 : x.key) === e.key) && K(e.key)
|
|
421
423
|
]
|
|
422
424
|
}
|
|
@@ -430,7 +432,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
430
432
|
const C = /* @__PURE__ */ o(
|
|
431
433
|
"button",
|
|
432
434
|
{
|
|
433
|
-
className:
|
|
435
|
+
className: h("table-header-cell", {
|
|
434
436
|
[`align-${e.align}`]: "align" in e,
|
|
435
437
|
"primary-cell": N(e),
|
|
436
438
|
"sortable-cell": A.includes(e.key),
|
|
@@ -445,15 +447,15 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
445
447
|
k,
|
|
446
448
|
t
|
|
447
449
|
),
|
|
448
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ z(
|
|
449
451
|
"div",
|
|
450
452
|
{
|
|
451
|
-
className:
|
|
453
|
+
className: h("label"),
|
|
452
454
|
onClick: () => Z(e.key),
|
|
453
455
|
onMouseEnter: () => Y(e.key),
|
|
454
456
|
onMouseLeave: q,
|
|
455
457
|
children: [
|
|
456
|
-
/* @__PURE__ */ o(
|
|
458
|
+
/* @__PURE__ */ o(ae, { column: e }),
|
|
457
459
|
(X === e.key || (x == null ? void 0 : x.key) === e.key) && K(e.key)
|
|
458
460
|
]
|
|
459
461
|
}
|
|
@@ -463,14 +465,14 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
463
465
|
);
|
|
464
466
|
return v ? V(e, C) : C;
|
|
465
467
|
}),
|
|
466
|
-
c && /* @__PURE__ */ o("div", { className:
|
|
468
|
+
c && /* @__PURE__ */ o("div", { className: h("table-header-cell", "action-menu-cell") })
|
|
467
469
|
]
|
|
468
470
|
}
|
|
469
471
|
),
|
|
470
472
|
/* @__PURE__ */ o(
|
|
471
473
|
"div",
|
|
472
474
|
{
|
|
473
|
-
className:
|
|
475
|
+
className: h(
|
|
474
476
|
"table-body",
|
|
475
477
|
{
|
|
476
478
|
"scrollable-body": u,
|
|
@@ -479,10 +481,10 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
479
481
|
},
|
|
480
482
|
p
|
|
481
483
|
),
|
|
482
|
-
children: l.map((e, C) => /* @__PURE__ */
|
|
484
|
+
children: l.map((e, C) => /* @__PURE__ */ z(
|
|
483
485
|
"div",
|
|
484
486
|
{
|
|
485
|
-
className:
|
|
487
|
+
className: h("table-row", Ve(e), s, {
|
|
486
488
|
selectable: t
|
|
487
489
|
}),
|
|
488
490
|
onMouseEnter: () => ve(C),
|
|
@@ -491,20 +493,20 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
491
493
|
t && /* @__PURE__ */ o(
|
|
492
494
|
"div",
|
|
493
495
|
{
|
|
494
|
-
className:
|
|
495
|
-
style: { left: k ? `${
|
|
496
|
+
className: h("table-cell", "checkbox-cell"),
|
|
497
|
+
style: { left: k ? `${S}px` : "0" },
|
|
496
498
|
children: (F || ke === C) && /* @__PURE__ */ o(
|
|
497
499
|
te,
|
|
498
500
|
{
|
|
499
|
-
value:
|
|
500
|
-
onChange: () =>
|
|
501
|
-
className:
|
|
501
|
+
value: d.includes(e.id),
|
|
502
|
+
onChange: () => ze(e.id),
|
|
503
|
+
className: h("checkbox-cell")
|
|
502
504
|
}
|
|
503
505
|
)
|
|
504
506
|
}
|
|
505
507
|
),
|
|
506
|
-
/* @__PURE__ */ o("div", { className:
|
|
507
|
-
k && /* @__PURE__ */ o("div", { className:
|
|
508
|
+
/* @__PURE__ */ o("div", { className: h("row-content-wrapper"), children: /* @__PURE__ */ z("div", { className: h("table-row-content"), style: { gridTemplateColumns: Ae }, children: [
|
|
509
|
+
k && /* @__PURE__ */ o("div", { className: h("table-cell", "expand-cell"), style: { left: "0" }, children: /* @__PURE__ */ o(
|
|
508
510
|
"button",
|
|
509
511
|
{
|
|
510
512
|
onClick: () => xe(e.id),
|
|
@@ -513,7 +515,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
513
515
|
children: /* @__PURE__ */ o(
|
|
514
516
|
"span",
|
|
515
517
|
{
|
|
516
|
-
className:
|
|
518
|
+
className: h("expand-icon", {
|
|
517
519
|
expanded: $.includes(e.id)
|
|
518
520
|
}),
|
|
519
521
|
children: /* @__PURE__ */ o(ee, {})
|
|
@@ -527,7 +529,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
527
529
|
"div",
|
|
528
530
|
{
|
|
529
531
|
ref: I ? J(y.key) : void 0,
|
|
530
|
-
className:
|
|
532
|
+
className: h("table-cell", "pinned-column", {
|
|
531
533
|
"primary-cell": I,
|
|
532
534
|
"expanded-cell": P
|
|
533
535
|
}),
|
|
@@ -551,7 +553,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
551
553
|
"div",
|
|
552
554
|
{
|
|
553
555
|
ref: P ? J(y.key) : void 0,
|
|
554
|
-
className:
|
|
556
|
+
className: h("table-cell", {
|
|
555
557
|
"primary-cell": P,
|
|
556
558
|
"expanded-cell": U
|
|
557
559
|
}),
|
|
@@ -569,7 +571,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
569
571
|
y.key
|
|
570
572
|
);
|
|
571
573
|
}),
|
|
572
|
-
c && /* @__PURE__ */ o("div", { className:
|
|
574
|
+
c && /* @__PURE__ */ o("div", { className: h("table-cell", "action-menu-cell"), children: c(e.metaData) })
|
|
573
575
|
] }) })
|
|
574
576
|
]
|
|
575
577
|
},
|
|
@@ -582,5 +584,5 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
|
|
|
582
584
|
);
|
|
583
585
|
};
|
|
584
586
|
export {
|
|
585
|
-
|
|
587
|
+
hl as T
|
|
586
588
|
};
|
package/dist/table.js
CHANGED