@hortiview/shared-components 2.14.0 → 2.15.0
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/CHANGELOG.md +10 -0
- package/dist/GenericCard-IWX-Bmb_.js +90 -0
- package/dist/assets/GenericCard.css +1 -1
- package/dist/assets/GenericTable.css +1 -1
- package/dist/components/GenericTable/GenericTable.js +141 -133
- package/dist/components/GenericTable/Mobile/GenericCard.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +11 -11
- package/package.json +1 -1
- package/dist/GenericCard-CeqYrtLH.js +0 -89
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.15.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.14.0...v2.15.0) (2026-02-18)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add full-width styling for mobile table components ([af387f3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/af387f352aecbeb4e4af5b4857a8aef13afeb461)), closes [#19352](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/issues/19352)
|
|
6
|
+
|
|
7
|
+
### Code Refactoring
|
|
8
|
+
|
|
9
|
+
* remove inline styling ([c18008b](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/c18008bda0e5ab634526156921a4e828139db90a))
|
|
10
|
+
|
|
1
11
|
## [2.14.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.13.0...v2.14.0) (2026-02-10)
|
|
2
12
|
|
|
3
13
|
### Features
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { C, a as y, b as T, c as g, d as v } from "./index.es-BPv5dCFQ.js";
|
|
3
|
+
import { G as m, a as u, b as l } from "./index.es-CeQB6igi.js";
|
|
4
|
+
import { d as f } from "./index.es-SjZ_-d7U.js";
|
|
5
|
+
import { useMemo as b } from "react";
|
|
6
|
+
import { OverflowTooltip as c } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
7
|
+
import './assets/GenericCard.css';const x = "_cardTitle_1w5we_1", B = "_cardBody_1w5we_5", N = "_cardContent_1w5we_10", $ = "_row_1w5we_14", G = "_font_1w5we_18", k = "_fontHeader_1w5we_23", H = "_title_1w5we_27", S = "_emptyContainer_1w5we_33", W = "_empty_1w5we_33", A = "_fullWidth_1w5we_45", i = {
|
|
8
|
+
cardTitle: x,
|
|
9
|
+
cardBody: B,
|
|
10
|
+
cardContent: N,
|
|
11
|
+
row: $,
|
|
12
|
+
font: G,
|
|
13
|
+
fontHeader: k,
|
|
14
|
+
title: H,
|
|
15
|
+
emptyContainer: S,
|
|
16
|
+
empty: W,
|
|
17
|
+
fullWidth: A
|
|
18
|
+
}, _ = {
|
|
19
|
+
desktopCol: 6,
|
|
20
|
+
phoneCol: 2,
|
|
21
|
+
tabletCol: 4,
|
|
22
|
+
verticalAlign: "bottom"
|
|
23
|
+
}, q = ({ item: e, columns: t, hiddenColumns: o }) => {
|
|
24
|
+
const d = t.find((a) => a.asCardTitle), w = t.find((a) => a.asCardSubtitle), p = b(
|
|
25
|
+
() => t.filter(
|
|
26
|
+
(a) => !a.asCardTitle && !a.asCardSubtitle && a.id !== "actions"
|
|
27
|
+
),
|
|
28
|
+
[t]
|
|
29
|
+
);
|
|
30
|
+
return /* @__PURE__ */ r(
|
|
31
|
+
C,
|
|
32
|
+
{
|
|
33
|
+
variant: "raised",
|
|
34
|
+
"data-testid": `card${d ? "-" + e[d.accessor] : ""}`,
|
|
35
|
+
children: /* @__PURE__ */ s(y, { className: i.cardContent, "data-testid": "card-content", children: [
|
|
36
|
+
/* @__PURE__ */ r(j, { item: e, titleColumn: d, subTitleColumn: w }),
|
|
37
|
+
/* @__PURE__ */ r(T, { className: i.cardBody, "data-testid": "card-body", children: /* @__PURE__ */ r(m, { fullHeight: !0, fullWidth: !0, variant: "none", children: p.map((a) => o?.includes(a.id) ? null : /* @__PURE__ */ s(u, { className: i.row, "data-testid": "row", children: [
|
|
38
|
+
/* @__PURE__ */ r(l, { horizontalAlign: "right", ..._, children: /* @__PURE__ */ s(
|
|
39
|
+
f,
|
|
40
|
+
{
|
|
41
|
+
level: 2,
|
|
42
|
+
themeColor: "text-secondary-on-background",
|
|
43
|
+
className: `${i.font} ${i.fontHeader}`,
|
|
44
|
+
tag: "div",
|
|
45
|
+
children: [
|
|
46
|
+
a.header,
|
|
47
|
+
":"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
/* @__PURE__ */ r(l, { horizontalAlign: "left", ..._, children: /* @__PURE__ */ r(n, { column: a, item: e }) })
|
|
52
|
+
] }, a.id)) }) })
|
|
53
|
+
] })
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}, j = ({ item: e, titleColumn: t, subTitleColumn: o }) => {
|
|
57
|
+
const d = e.actions;
|
|
58
|
+
return !t && !o && !d ? null : /* @__PURE__ */ s(h, { children: [
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
|
+
g,
|
|
61
|
+
{
|
|
62
|
+
"data-testid": "card-title",
|
|
63
|
+
className: i.cardTitle,
|
|
64
|
+
primaryText: t !== void 0 && /* @__PURE__ */ r(n, { column: t, item: e, isTitle: !0 }),
|
|
65
|
+
secondaryText: o !== void 0 && /* @__PURE__ */ r(n, { column: o, item: e, isTitle: !0 }),
|
|
66
|
+
trailingBlock: d,
|
|
67
|
+
trailingBlockType: d ? "title-actions" : void 0
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ r(v, {})
|
|
71
|
+
] });
|
|
72
|
+
}, n = ({ item: e, column: t, isTitle: o = !1 }) => t.cellTemplate ? t.cellTemplate({ row: { original: e } }) : o ? /* @__PURE__ */ r(
|
|
73
|
+
c,
|
|
74
|
+
{
|
|
75
|
+
id: `tip_${t.id}_${e[t.accessor]}`,
|
|
76
|
+
text: e[t.accessor],
|
|
77
|
+
children: /* @__PURE__ */ r("span", { className: i.title, children: e[t.accessor] })
|
|
78
|
+
}
|
|
79
|
+
) : /* @__PURE__ */ r(
|
|
80
|
+
c,
|
|
81
|
+
{
|
|
82
|
+
id: `tip_${t.id}_${e[t.accessor]}`,
|
|
83
|
+
text: e[t.accessor],
|
|
84
|
+
children: /* @__PURE__ */ r(f, { level: 2, themeColor: "text-primary-on-background", className: i.font, children: e[t.accessor] })
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
export {
|
|
88
|
+
q as G,
|
|
89
|
+
i as s
|
|
90
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cardTitle_1w5we_1{padding:.5rem!important}._cardBody_1w5we_5{padding:.25rem .5rem!important;overflow:hidden!important}._cardContent_1w5we_10{border-radius:.5rem}._row_1w5we_14{padding:.25rem 0}._font_1w5we_18{font-weight:400;align-self:end}._fontHeader_1w5we_23{text-align:right}._title_1w5we_27{display:inline-block;width:65vw;text-wrap:nowrap}._emptyContainer_1w5we_33{width:inherit;height:inherit}._empty_1w5we_33{position:relative;top:50%;left:50%;transform:translate(-50%,-25%)}._fullWidth_1w5we_45{width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._topBar_wc5ga_1 [class*=lmnt-table__top-bar__title]{display:none}._filterBar_wc5ga_5{padding:1rem;width:inherit!important}._start_wc5ga_10{padding-top:0;padding-bottom:0}._emptyTable_wc5ga_15{height:16rem}[class*=mnt-pagination][class*=mdc-data-table__pagination]{border-top:1px solid var(--lmnt-theme-on-secondary-stroke)}._elevation_wc5ga_23{border-radius:.4rem;width:100%}._table_wc5ga_28,._table_wc5ga_28 [class*=mdc-data-table__table-container]{border-radius:.4rem}._table_wc5ga_28 *[id=actions]{width:44px;padding:0 2px;position:sticky;right:0;background-color:var(--lmnt-theme-background)}._table_wc5ga_28 tr:hover td[id=actions]{background-color:var(--table-bg-color-hover)}._noBorder_wc5ga_48{border:none}._fullWidth_wc5ga_52{width:100%}
|
|
@@ -5,7 +5,7 @@ import { P as Hu } from "../../index.es-BanVdXEd.js";
|
|
|
5
5
|
import { v as Fs, w as Ms, n as Fu, u as Ls, ae as Mu, y as Gi, B as Lu, j as Oa, k as $s, af as $u, f as zu, ag as Gu, z as Wu, M as ku, A as Uu, N as ju, l as zs, o as qu, G as Vu, p as Xu, s as Ba, t as Na, a5 as Ku, S as Yu, D as Ju, H as Qu, _ as rr, a as wt, c as _r, P as B, b as Lt, d as $r } from "../../index-BcGujPyk.js";
|
|
6
6
|
import { _ as qr, a as $t, b as Vr, c as Xr, d as Gt, e as zt, f as Kr, g as Zu } from "../../defineProperty-BTsGZ3c1.js";
|
|
7
7
|
import K, { useRef as ft, useMemo as st, useLayoutEffect as ed, useEffect as ze, useCallback as Mt, useState as ct, memo as td, useReducer as rd, createContext as po, useContext as an, createElement as Xa, PureComponent as nd, forwardRef as Rr, useImperativeHandle as Un, Fragment as Gs } from "react";
|
|
8
|
-
import { e as Ha, _ as Wn, i as Ra, s as Ws, k as tn, H as od, t as ad, g as ks, C as id, d as
|
|
8
|
+
import { e as Ha, _ as Wn, i as Ra, s as Ws, k as tn, H as od, t as ad, g as ks, C as id, d as En } from "../../index.es-Da7ok-B-.js";
|
|
9
9
|
import { m as ld, e as sd, n as ud, _ as pr } from "../../slicedToArray-ByMQIs5x.js";
|
|
10
10
|
import { a as dd, _ as kn } from "../../index.es-DGoBge9W.js";
|
|
11
11
|
import { _ as Sa, c as al } from "../../index.es-BHvm4m-B.js";
|
|
@@ -388,7 +388,7 @@ var Zt = {
|
|
|
388
388
|
}, vl = {
|
|
389
389
|
SORTED_IN_DESCENDING: "Sorted in descending order",
|
|
390
390
|
SORTED_IN_ASCENDING: "Sorted in ascending order"
|
|
391
|
-
},
|
|
391
|
+
}, zn = {
|
|
392
392
|
ARIA_SELECTED: gl.ARIA_SELECTED,
|
|
393
393
|
ARIA_SORT: gl.ARIA_SORT
|
|
394
394
|
}, Nr;
|
|
@@ -566,10 +566,10 @@ var Nd = (
|
|
|
566
566
|
}
|
|
567
567
|
}, t.prototype.handleSortAction = function(r) {
|
|
568
568
|
for (var n = r.columnId, i = r.columnIndex, u = r.headerCell, s = 0; s < this.adapter.getHeaderCellCount(); s++)
|
|
569
|
-
s !== i && (this.adapter.removeClassNameByHeaderCellIndex(s, Zt.HEADER_CELL_SORTED), this.adapter.removeClassNameByHeaderCellIndex(s, Zt.HEADER_CELL_SORTED_DESCENDING), this.adapter.setAttributeByHeaderCellIndex(s,
|
|
569
|
+
s !== i && (this.adapter.removeClassNameByHeaderCellIndex(s, Zt.HEADER_CELL_SORTED), this.adapter.removeClassNameByHeaderCellIndex(s, Zt.HEADER_CELL_SORTED_DESCENDING), this.adapter.setAttributeByHeaderCellIndex(s, zn.ARIA_SORT, Nr.NONE), this.adapter.setSortStatusLabelByHeaderCellIndex(s, Nr.NONE));
|
|
570
570
|
this.adapter.setClassNameByHeaderCellIndex(i, Zt.HEADER_CELL_SORTED);
|
|
571
|
-
var w = this.adapter.getAttributeByHeaderCellIndex(i,
|
|
572
|
-
w === Nr.ASCENDING ? (this.adapter.setClassNameByHeaderCellIndex(i, Zt.HEADER_CELL_SORTED_DESCENDING), this.adapter.setAttributeByHeaderCellIndex(i,
|
|
571
|
+
var w = this.adapter.getAttributeByHeaderCellIndex(i, zn.ARIA_SORT), x = Nr.NONE;
|
|
572
|
+
w === Nr.ASCENDING ? (this.adapter.setClassNameByHeaderCellIndex(i, Zt.HEADER_CELL_SORTED_DESCENDING), this.adapter.setAttributeByHeaderCellIndex(i, zn.ARIA_SORT, Nr.DESCENDING), x = Nr.DESCENDING) : w === Nr.DESCENDING ? (this.adapter.removeClassNameByHeaderCellIndex(i, Zt.HEADER_CELL_SORTED_DESCENDING), this.adapter.setAttributeByHeaderCellIndex(i, zn.ARIA_SORT, Nr.ASCENDING), x = Nr.ASCENDING) : (this.adapter.setAttributeByHeaderCellIndex(i, zn.ARIA_SORT, Nr.ASCENDING), x = Nr.ASCENDING), this.adapter.setSortStatusLabelByHeaderCellIndex(i, x), this.adapter.notifySortAction({
|
|
573
573
|
columnId: n,
|
|
574
574
|
columnIndex: i,
|
|
575
575
|
headerCell: u,
|
|
@@ -586,7 +586,7 @@ var Nd = (
|
|
|
586
586
|
}, t.prototype.setHeaderRowCheckboxState = function() {
|
|
587
587
|
this.adapter.getSelectedRowCount() === 0 ? (this.adapter.setHeaderRowCheckboxChecked(!1), this.adapter.setHeaderRowCheckboxIndeterminate(!1)) : this.adapter.getSelectedRowCount() === this.adapter.getRowCount() ? (this.adapter.setHeaderRowCheckboxChecked(!0), this.adapter.setHeaderRowCheckboxIndeterminate(!1)) : (this.adapter.setHeaderRowCheckboxIndeterminate(!0), this.adapter.setHeaderRowCheckboxChecked(!1));
|
|
588
588
|
}, t.prototype.selectRowAtIndex = function(r, n) {
|
|
589
|
-
n ? (this.adapter.addClassAtRowIndex(r, Zt.ROW_SELECTED), this.adapter.setAttributeAtRowIndex(r,
|
|
589
|
+
n ? (this.adapter.addClassAtRowIndex(r, Zt.ROW_SELECTED), this.adapter.setAttributeAtRowIndex(r, zn.ARIA_SELECTED, "true")) : (this.adapter.removeClassAtRowIndex(r, Zt.ROW_SELECTED), this.adapter.setAttributeAtRowIndex(r, zn.ARIA_SELECTED, "false"));
|
|
590
590
|
}, t;
|
|
591
591
|
})(Ks)
|
|
592
592
|
);
|
|
@@ -1156,7 +1156,7 @@ function ic() {
|
|
|
1156
1156
|
this.set(L[0], L[1]);
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function Tn() {
|
|
1160
1160
|
this.__data__ = [];
|
|
1161
1161
|
}
|
|
1162
1162
|
function sn(d) {
|
|
@@ -1177,7 +1177,7 @@ function ic() {
|
|
|
1177
1177
|
var D = this.__data__, L = vn(D, d);
|
|
1178
1178
|
return L < 0 ? D.push([d, h]) : D[L][1] = h, this;
|
|
1179
1179
|
}
|
|
1180
|
-
tr.prototype.clear =
|
|
1180
|
+
tr.prototype.clear = Tn, tr.prototype.delete = sn, tr.prototype.get = Gr, tr.prototype.has = Ro, tr.prototype.set = So;
|
|
1181
1181
|
function Mr(d) {
|
|
1182
1182
|
var h = -1, D = d ? d.length : 0;
|
|
1183
1183
|
for (this.clear(); ++h < D; ) {
|
|
@@ -1185,7 +1185,7 @@ function ic() {
|
|
|
1185
1185
|
this.set(L[0], L[1]);
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function In() {
|
|
1189
1189
|
this.__data__ = {
|
|
1190
1190
|
hash: new fr(),
|
|
1191
1191
|
map: new (nt || tr)(),
|
|
@@ -1198,13 +1198,13 @@ function ic() {
|
|
|
1198
1198
|
function Po(d) {
|
|
1199
1199
|
return yn(this, d).get(d);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function An(d) {
|
|
1202
1202
|
return yn(this, d).has(d);
|
|
1203
1203
|
}
|
|
1204
1204
|
function jn(d, h) {
|
|
1205
1205
|
return yn(this, d).set(d, h), this;
|
|
1206
1206
|
}
|
|
1207
|
-
Mr.prototype.clear =
|
|
1207
|
+
Mr.prototype.clear = In, Mr.prototype.delete = xo, Mr.prototype.get = Po, Mr.prototype.has = An, Mr.prototype.set = jn;
|
|
1208
1208
|
function gn(d) {
|
|
1209
1209
|
var h = -1, D = d ? d.length : 0;
|
|
1210
1210
|
for (this.__data__ = new Mr(); ++h < D; )
|
|
@@ -1256,7 +1256,7 @@ function ic() {
|
|
|
1256
1256
|
return -1;
|
|
1257
1257
|
}
|
|
1258
1258
|
var Xn = hn(Kn);
|
|
1259
|
-
function
|
|
1259
|
+
function _n(d, h, D, L, Z) {
|
|
1260
1260
|
var o = -1, l = d.length;
|
|
1261
1261
|
for (D || (D = lo), Z || (Z = []); ++o < l; ) {
|
|
1262
1262
|
var f = d[o];
|
|
@@ -1264,7 +1264,7 @@ function ic() {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
return Z;
|
|
1266
1266
|
}
|
|
1267
|
-
var un =
|
|
1267
|
+
var un = Bn();
|
|
1268
1268
|
function Kn(d, h) {
|
|
1269
1269
|
return d && un(d, h, me);
|
|
1270
1270
|
}
|
|
@@ -1296,9 +1296,9 @@ function ic() {
|
|
|
1296
1296
|
return o || (o = new Wr()), D(q, ae, L, Z, o);
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
return I ? (o || (o = new Wr()),
|
|
1299
|
+
return I ? (o || (o = new Wr()), Nn(d, h, D, L, Z, o)) : !1;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Dn(d, h, D, L) {
|
|
1302
1302
|
var Z = D.length, o = Z;
|
|
1303
1303
|
if (d == null)
|
|
1304
1304
|
return !o;
|
|
@@ -1322,7 +1322,7 @@ function ic() {
|
|
|
1322
1322
|
return !0;
|
|
1323
1323
|
}
|
|
1324
1324
|
function Bo(d) {
|
|
1325
|
-
if (!ue(d) ||
|
|
1325
|
+
if (!ue(d) || Mn(d))
|
|
1326
1326
|
return !1;
|
|
1327
1327
|
var h = Y(d) || cr(d) ? Xt : Ct;
|
|
1328
1328
|
return h.test(R(d));
|
|
@@ -1348,9 +1348,9 @@ function ic() {
|
|
|
1348
1348
|
}), L;
|
|
1349
1349
|
}
|
|
1350
1350
|
function ro(d) {
|
|
1351
|
-
var h =
|
|
1351
|
+
var h = Hn(d);
|
|
1352
1352
|
return h.length == 1 && h[0][2] ? v(h[0][0], h[0][1]) : function(D) {
|
|
1353
|
-
return D === d ||
|
|
1353
|
+
return D === d || Dn(D, d, h);
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
1356
|
function Ho(d, h) {
|
|
@@ -1398,7 +1398,7 @@ function ic() {
|
|
|
1398
1398
|
function oo(d) {
|
|
1399
1399
|
return te(d) ? d : y(d);
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function On(d, h) {
|
|
1402
1402
|
if (d !== h) {
|
|
1403
1403
|
var D = d !== void 0, L = d === null, Z = d === d, o = be(d), l = h !== void 0, f = h === null, c = h === h, C = be(h);
|
|
1404
1404
|
if (!f && !C && !o && d > h || o && l && c && !f && !C || L && l && c || !D && c || !Z)
|
|
@@ -1410,7 +1410,7 @@ function ic() {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
function ao(d, h, D) {
|
|
1412
1412
|
for (var L = -1, Z = d.criteria, o = h.criteria, l = Z.length, f = D.length; ++L < l; ) {
|
|
1413
|
-
var c =
|
|
1413
|
+
var c = On(Z[L], o[L]);
|
|
1414
1414
|
if (c) {
|
|
1415
1415
|
if (L >= f)
|
|
1416
1416
|
return c;
|
|
@@ -1431,7 +1431,7 @@ function ic() {
|
|
|
1431
1431
|
return D;
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Bn(d) {
|
|
1435
1435
|
return function(h, D, L) {
|
|
1436
1436
|
for (var Z = -1, o = Object(h), l = L(h), f = l.length; f--; ) {
|
|
1437
1437
|
var c = l[++Z];
|
|
@@ -1509,7 +1509,7 @@ function ic() {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
return !1;
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function Nn(d, h, D, L, Z, o) {
|
|
1513
1513
|
var l = Z & s, f = me(d), c = f.length, C = me(h), S = C.length;
|
|
1514
1514
|
if (c != S && !l)
|
|
1515
1515
|
return !1;
|
|
@@ -1544,7 +1544,7 @@ function ic() {
|
|
|
1544
1544
|
var D = d.__data__;
|
|
1545
1545
|
return so(h) ? D[typeof h == "string" ? "string" : "hash"] : D.map;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Hn(d) {
|
|
1548
1548
|
for (var h = me(d), D = h.length; D--; ) {
|
|
1549
1549
|
var L = h[D], Z = d[L];
|
|
1550
1550
|
h[D] = [L, Z, g(Z)];
|
|
@@ -1592,7 +1592,7 @@ function ic() {
|
|
|
1592
1592
|
function bn(d, h) {
|
|
1593
1593
|
return h = h ?? w, !!h && (typeof d == "number" || lt.test(d)) && d > -1 && d % 1 == 0 && d < h;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function Fn(d, h, D) {
|
|
1596
1596
|
if (!ue(D))
|
|
1597
1597
|
return !1;
|
|
1598
1598
|
var L = typeof h;
|
|
@@ -1608,7 +1608,7 @@ function ic() {
|
|
|
1608
1608
|
var h = typeof d;
|
|
1609
1609
|
return h == "string" || h == "number" || h == "symbol" || h == "boolean" ? d !== "__proto__" : d === null;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function Mn(d) {
|
|
1612
1612
|
return !!br && br in d;
|
|
1613
1613
|
}
|
|
1614
1614
|
function a(d) {
|
|
@@ -1653,7 +1653,7 @@ function ic() {
|
|
|
1653
1653
|
if (d == null)
|
|
1654
1654
|
return [];
|
|
1655
1655
|
var D = h.length;
|
|
1656
|
-
return D > 1 &&
|
|
1656
|
+
return D > 1 && Fn(d, h[0], h[1]) ? h = [] : D > 2 && Fn(h[0], h[1], h[2]) && (h = [h[0]]), no(d, _n(h), []);
|
|
1657
1657
|
});
|
|
1658
1658
|
function k(d, h) {
|
|
1659
1659
|
if (typeof d != "function" || h && typeof h != "function")
|
|
@@ -2552,7 +2552,7 @@ function dc() {
|
|
|
2552
2552
|
function tr(a) {
|
|
2553
2553
|
return typeof a == "number" ? isNaN(a) || a === 1 / 0 || a === -1 / 0 ? "" : String(a) : typeof a == "string" ? a : "";
|
|
2554
2554
|
}
|
|
2555
|
-
var
|
|
2555
|
+
var Tn = Object.freeze({ __proto__: null, alphanumeric: function(a, g, v) {
|
|
2556
2556
|
var y = ir(a, g, v), T = y[0], R = y[1];
|
|
2557
2557
|
for (T = tr(T), R = tr(R), T = T.split(Pt).filter(Boolean), R = R.split(Pt).filter(Boolean); T.length && R.length; ) {
|
|
2558
2558
|
var _ = T.shift(), k = R.shift(), U = parseInt(_, 10), X = parseInt(k, 10), te = [U, X].sort();
|
|
@@ -2656,7 +2656,7 @@ function dc() {
|
|
|
2656
2656
|
return C.id === o.id;
|
|
2657
2657
|
}));
|
|
2658
2658
|
if (!l) throw new Error("React-Table: Could not find a column with id: " + o.id + " while sorting");
|
|
2659
|
-
var f = l.sortType, c = Ye(f) || (k || {})[f] ||
|
|
2659
|
+
var f = l.sortType, c = Ye(f) || (k || {})[f] || Tn[f];
|
|
2660
2660
|
if (!c) throw new Error("React-Table: Could not find a valid sortType of '" + f + "' for column '" + o.id + "'.");
|
|
2661
2661
|
return function(C, S) {
|
|
2662
2662
|
return c(C, S, o.id, o.desc);
|
|
@@ -2686,7 +2686,7 @@ function dc() {
|
|
|
2686
2686
|
}));
|
|
2687
2687
|
}
|
|
2688
2688
|
p.resetPage = "resetPage", p.gotoPage = "gotoPage", p.setPageSize = "setPageSize";
|
|
2689
|
-
var
|
|
2689
|
+
var In = function(a) {
|
|
2690
2690
|
a.stateReducers.push(xo), a.useInstance.push(Po);
|
|
2691
2691
|
};
|
|
2692
2692
|
function xo(a, g, v, y) {
|
|
@@ -2735,11 +2735,11 @@ function dc() {
|
|
|
2735
2735
|
}), [se]);
|
|
2736
2736
|
Object.assign(a, { pageOptions: d, pageCount: et, page: h, canPreviousPage: D, canNextPage: L, gotoPage: Z, previousPage: o, nextPage: l, setPageSize: f });
|
|
2737
2737
|
}
|
|
2738
|
-
|
|
2739
|
-
var
|
|
2738
|
+
In.pluginName = "usePagination", p.resetPivot = "resetPivot", p.togglePivot = "togglePivot";
|
|
2739
|
+
var An = function(a) {
|
|
2740
2740
|
a.getPivotToggleProps = [gn], a.stateReducers.push(Eo), a.useInstanceAfterData.push(To), a.allColumns.push(Wr), a.accessValue.push(Io), a.materializedColumns.push(qn), a.materializedColumnsDeps.push(Vn), a.visibleColumns.push(Ao), a.visibleColumnsDeps.push(_o), a.useInstance.push(Do), a.prepareRow.push(vn);
|
|
2741
2741
|
};
|
|
2742
|
-
|
|
2742
|
+
An.pluginName = "usePivotColumns";
|
|
2743
2743
|
var jn = [], gn = function(a, g) {
|
|
2744
2744
|
var v = g.header;
|
|
2745
2745
|
return [a, { onClick: v.canPivot ? function(y) {
|
|
@@ -2840,10 +2840,10 @@ function dc() {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
p.resetSelectedRows = "resetSelectedRows", p.toggleAllRowsSelected = "toggleAllRowsSelected", p.toggleRowSelected = "toggleRowSelected", p.toggleAllPageRowsSelected = "toggleAllPageRowsSelected";
|
|
2842
2842
|
var Xn = function(a) {
|
|
2843
|
-
a.getToggleRowSelectedProps = [
|
|
2843
|
+
a.getToggleRowSelectedProps = [_n], a.getToggleAllRowsSelectedProps = [un], a.getToggleAllPageRowsSelectedProps = [Kn], a.stateReducers.push(Yn), a.useInstance.push(Jn), a.prepareRow.push(Oo);
|
|
2844
2844
|
};
|
|
2845
2845
|
Xn.pluginName = "useRowSelect";
|
|
2846
|
-
var
|
|
2846
|
+
var _n = function(a, g) {
|
|
2847
2847
|
var v = g.instance, y = g.row, T = v.manualRowSelectedKey, R = T === void 0 ? "isSelected" : T;
|
|
2848
2848
|
return [a, { onChange: function(_) {
|
|
2849
2849
|
y.toggleRowSelected(_.target.checked);
|
|
@@ -2948,7 +2948,7 @@ function dc() {
|
|
|
2948
2948
|
return {};
|
|
2949
2949
|
};
|
|
2950
2950
|
p.setRowState = "setRowState", p.setCellState = "setCellState", p.resetRowState = "resetRowState";
|
|
2951
|
-
var
|
|
2951
|
+
var Dn = function(a) {
|
|
2952
2952
|
a.stateReducers.push(Bo), a.useInstance.push(Zn), a.prepareRow.push(No);
|
|
2953
2953
|
};
|
|
2954
2954
|
function Bo(a, g, v, y) {
|
|
@@ -2986,7 +2986,7 @@ function dc() {
|
|
|
2986
2986
|
};
|
|
2987
2987
|
})));
|
|
2988
2988
|
}
|
|
2989
|
-
|
|
2989
|
+
Dn.pluginName = "useRowState", p.resetColumnOrder = "resetColumnOrder", p.setColumnOrder = "setColumnOrder";
|
|
2990
2990
|
var eo = function(a) {
|
|
2991
2991
|
a.stateReducers.push(to), a.visibleColumnsDeps.push((function(g, v) {
|
|
2992
2992
|
var y = v.instance;
|
|
@@ -3101,42 +3101,42 @@ function dc() {
|
|
|
3101
3101
|
}), [v]);
|
|
3102
3102
|
Object.assign(a, { resetResizing: k });
|
|
3103
3103
|
}
|
|
3104
|
-
var
|
|
3104
|
+
var On = { position: "absolute", top: 0 }, ao = function(a) {
|
|
3105
3105
|
a.getTableBodyProps.push(hn), a.getRowProps.push(hn), a.getHeaderGroupProps.push(hn), a.getFooterGroupProps.push(hn), a.getHeaderProps.push((function(g, v) {
|
|
3106
3106
|
var y = v.column;
|
|
3107
|
-
return [g, { style: s({},
|
|
3107
|
+
return [g, { style: s({}, On, { left: y.totalLeft + "px", width: y.totalWidth + "px" }) }];
|
|
3108
3108
|
})), a.getCellProps.push((function(g, v) {
|
|
3109
3109
|
var y = v.cell;
|
|
3110
|
-
return [g, { style: s({},
|
|
3110
|
+
return [g, { style: s({}, On, { left: y.column.totalLeft + "px", width: y.column.totalWidth + "px" }) }];
|
|
3111
3111
|
})), a.getFooterProps.push((function(g, v) {
|
|
3112
3112
|
var y = v.column;
|
|
3113
|
-
return [g, { style: s({},
|
|
3113
|
+
return [g, { style: s({}, On, { left: y.totalLeft + "px", width: y.totalWidth + "px" }) }];
|
|
3114
3114
|
}));
|
|
3115
3115
|
};
|
|
3116
3116
|
ao.pluginName = "useAbsoluteLayout";
|
|
3117
3117
|
var hn = function(a, g) {
|
|
3118
3118
|
return [a, { style: { position: "relative", width: g.instance.totalColumnsWidth + "px" } }];
|
|
3119
|
-
},
|
|
3119
|
+
}, Bn = { display: "inline-block", boxSizing: "border-box" }, mn = function(a, g) {
|
|
3120
3120
|
return [a, { style: { display: "flex", width: g.instance.totalColumnsWidth + "px" } }];
|
|
3121
3121
|
}, io = function(a) {
|
|
3122
3122
|
a.getRowProps.push(mn), a.getHeaderGroupProps.push(mn), a.getFooterGroupProps.push(mn), a.getHeaderProps.push((function(g, v) {
|
|
3123
3123
|
var y = v.column;
|
|
3124
|
-
return [g, { style: s({},
|
|
3124
|
+
return [g, { style: s({}, Bn, { width: y.totalWidth + "px" }) }];
|
|
3125
3125
|
})), a.getCellProps.push((function(g, v) {
|
|
3126
3126
|
var y = v.cell;
|
|
3127
|
-
return [g, { style: s({},
|
|
3127
|
+
return [g, { style: s({}, Bn, { width: y.column.totalWidth + "px" }) }];
|
|
3128
3128
|
})), a.getFooterProps.push((function(g, v) {
|
|
3129
3129
|
var y = v.column;
|
|
3130
|
-
return [g, { style: s({},
|
|
3130
|
+
return [g, { style: s({}, Bn, { width: y.totalWidth + "px" }) }];
|
|
3131
3131
|
}));
|
|
3132
3132
|
};
|
|
3133
|
-
function
|
|
3134
|
-
a.getTableProps.push(yn), a.getRowProps.push(
|
|
3133
|
+
function Nn(a) {
|
|
3134
|
+
a.getTableProps.push(yn), a.getRowProps.push(Hn), a.getHeaderGroupProps.push(Hn), a.getFooterGroupProps.push(Hn), a.getHeaderProps.push(nn), a.getCellProps.push(Jr), a.getFooterProps.push($o);
|
|
3135
3135
|
}
|
|
3136
|
-
io.pluginName = "useBlockLayout",
|
|
3136
|
+
io.pluginName = "useBlockLayout", Nn.pluginName = "useFlexLayout";
|
|
3137
3137
|
var yn = function(a, g) {
|
|
3138
3138
|
return [a, { style: { minWidth: g.instance.totalColumnsMinWidth + "px" } }];
|
|
3139
|
-
},
|
|
3139
|
+
}, Hn = function(a, g) {
|
|
3140
3140
|
return [a, { style: { display: "flex", flex: "1 0 auto", minWidth: g.instance.totalColumnsMinWidth + "px" } }];
|
|
3141
3141
|
}, nn = function(a, g) {
|
|
3142
3142
|
var v = g.column;
|
|
@@ -3149,7 +3149,7 @@ function dc() {
|
|
|
3149
3149
|
return [a, { style: { boxSizing: "border-box", flex: v.totalFlexWidth ? v.totalFlexWidth + " 0 auto" : void 0, minWidth: v.totalMinWidth + "px", width: v.totalWidth + "px" } }];
|
|
3150
3150
|
};
|
|
3151
3151
|
function lo(a) {
|
|
3152
|
-
a.stateReducers.push(so), a.getTableProps.push(bn), a.getHeaderProps.push(
|
|
3152
|
+
a.stateReducers.push(so), a.getTableProps.push(bn), a.getHeaderProps.push(Fn), a.getRowProps.push(dn);
|
|
3153
3153
|
}
|
|
3154
3154
|
p.columnStartResizing = "columnStartResizing", p.columnResizing = "columnResizing", p.columnDoneResizing = "columnDoneResizing", p.resetResize = "resetResize", lo.pluginName = "useGridLayout";
|
|
3155
3155
|
var bn = function(a, g) {
|
|
@@ -3158,7 +3158,7 @@ function dc() {
|
|
|
3158
3158
|
var T;
|
|
3159
3159
|
return v.state.gridLayout.columnWidths[y.id] ? v.state.gridLayout.columnWidths[y.id] + "px" : (T = v.state.columnResizing) != null && T.isResizingColumn ? v.state.gridLayout.startWidths[y.id] + "px" : typeof y.width == "number" ? y.width + "px" : y.width;
|
|
3160
3160
|
})).join(" ") } }];
|
|
3161
|
-
},
|
|
3161
|
+
}, Fn = function(a, g) {
|
|
3162
3162
|
var v = g.column;
|
|
3163
3163
|
return [a, { id: "header-cell-" + v.id, style: { position: "sticky", gridColumn: "span " + v.totalVisibleHeaderCount } }];
|
|
3164
3164
|
}, dn = function(a, g) {
|
|
@@ -3169,11 +3169,11 @@ function dc() {
|
|
|
3169
3169
|
if (g.type === p.init) return s({ gridLayout: { columnWidths: {} } }, a);
|
|
3170
3170
|
if (g.type === p.resetResize) return s({}, a, { gridLayout: { columnWidths: {} } });
|
|
3171
3171
|
if (g.type === p.columnStartResizing) {
|
|
3172
|
-
var T = g.columnId, R = g.headerIdWidths, _ =
|
|
3172
|
+
var T = g.columnId, R = g.headerIdWidths, _ = Mn(T);
|
|
3173
3173
|
if (_ !== void 0) {
|
|
3174
3174
|
var k = y.visibleColumns.reduce((function(se, Me) {
|
|
3175
3175
|
var me;
|
|
3176
|
-
return s({}, se, ((me = {})[Me.id] =
|
|
3176
|
+
return s({}, se, ((me = {})[Me.id] = Mn(Me.id), me));
|
|
3177
3177
|
}), {}), U = y.visibleColumns.reduce((function(se, Me) {
|
|
3178
3178
|
var me;
|
|
3179
3179
|
return s({}, se, ((me = {})[Me.id] = Me.minWidth, me));
|
|
@@ -3182,7 +3182,7 @@ function dc() {
|
|
|
3182
3182
|
return s({}, se, ((me = {})[Me.id] = Me.maxWidth, me));
|
|
3183
3183
|
}), {}), te = R.map((function(se) {
|
|
3184
3184
|
var Me = se[0];
|
|
3185
|
-
return [Me,
|
|
3185
|
+
return [Me, Mn(Me)];
|
|
3186
3186
|
}));
|
|
3187
3187
|
return s({}, a, { gridLayout: s({}, a.gridLayout, { startWidths: k, minWidths: U, maxWidths: X, headerIdGridWidths: te, columnWidth: _ }) });
|
|
3188
3188
|
}
|
|
@@ -3197,11 +3197,11 @@ function dc() {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
return g.type === p.columnDoneResizing ? s({}, a, { gridLayout: s({}, a.gridLayout, { startWidths: {}, minWidths: {}, maxWidths: {} }) }) : void 0;
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function Mn(a) {
|
|
3201
3201
|
var g, v = (g = document.getElementById("header-cell-" + a)) == null ? void 0 : g.offsetWidth;
|
|
3202
3202
|
if (v !== void 0) return v;
|
|
3203
3203
|
}
|
|
3204
|
-
r._UNSTABLE_usePivotColumns =
|
|
3204
|
+
r._UNSTABLE_usePivotColumns = An, r.actions = p, r.defaultColumn = z, r.defaultGroupByFn = Ze, r.defaultOrderByFn = Mr, r.defaultRenderer = E, r.emptyRenderer = b, r.ensurePluginOrder = O, r.flexRender = le, r.functionalUpdate = M, r.loopHooks = H, r.makePropGetter = N, r.makeRenderer = j, r.reduceHooks = P, r.safeUseLayoutEffect = V, r.useAbsoluteLayout = ao, r.useAsyncDebounce = function(a, g) {
|
|
3205
3205
|
g === void 0 && (g = 0);
|
|
3206
3206
|
var v = n.useRef({}), y = $(a), T = $(g);
|
|
3207
3207
|
return n.useCallback((function() {
|
|
@@ -3241,7 +3241,7 @@ function dc() {
|
|
|
3241
3241
|
return R.apply(this, arguments);
|
|
3242
3242
|
};
|
|
3243
3243
|
})(), [y, T]);
|
|
3244
|
-
}, r.useBlockLayout = io, r.useColumnOrder = eo, r.useExpanded = nr, r.useFilters = ot, r.useFlexLayout =
|
|
3244
|
+
}, r.useBlockLayout = io, r.useColumnOrder = eo, r.useExpanded = nr, r.useFilters = ot, r.useFlexLayout = Nn, r.useGetLatest = $, r.useGlobalFilter = Nt, r.useGridLayout = lo, r.useGroupBy = Er, r.useMountedLayoutEffect = W, r.usePagination = In, r.useResizeColumns = no, r.useRowSelect = Xn, r.useRowState = Dn, r.useSortBy = sn, r.useTable = function(a) {
|
|
3245
3245
|
for (var g = arguments.length, v = new Array(g > 1 ? g - 1 : 0), y = 1; y < g; y++) v[y - 1] = arguments[y];
|
|
3246
3246
|
a = Dr(a), v = [Ot].concat(v);
|
|
3247
3247
|
var T = n.useRef({}), R = $(T.current);
|
|
@@ -4066,8 +4066,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4066
4066
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4067
4067
|
[Ce, Le]
|
|
4068
4068
|
), m().visibleColumns = Ce;
|
|
4069
|
-
var It = Xt(Ne), wr = It[0],
|
|
4070
|
-
return m().totalColumnsMinWidth = wr, m().totalColumnsWidth =
|
|
4069
|
+
var It = Xt(Ne), wr = It[0], Ln = It[1], zo = It[2];
|
|
4070
|
+
return m().totalColumnsMinWidth = wr, m().totalColumnsWidth = Ln, m().totalColumnsMaxWidth = zo, $(I().useInstance, m()), [].concat(m().flatHeaders, m().allColumns).forEach(function(Oe) {
|
|
4071
4071
|
Oe.render = we(m(), Oe), Oe.getHeaderProps = O(I().getHeaderProps, {
|
|
4072
4072
|
instance: m(),
|
|
4073
4073
|
column: Oe
|
|
@@ -4641,7 +4641,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4641
4641
|
typeof f == "number" && (l = Math.max(l, f));
|
|
4642
4642
|
}), l;
|
|
4643
4643
|
}
|
|
4644
|
-
function
|
|
4644
|
+
function Tn(o) {
|
|
4645
4645
|
var l = o[0] || 0, f = o[0] || 0;
|
|
4646
4646
|
return o.forEach(function(c) {
|
|
4647
4647
|
typeof c == "number" && (l = Math.min(l, c), f = Math.max(f, c));
|
|
@@ -4667,12 +4667,12 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4667
4667
|
function Mr(o) {
|
|
4668
4668
|
return o.length;
|
|
4669
4669
|
}
|
|
4670
|
-
var
|
|
4670
|
+
var In = /* @__PURE__ */ Object.freeze({
|
|
4671
4671
|
__proto__: null,
|
|
4672
4672
|
sum: ar,
|
|
4673
4673
|
min: ir,
|
|
4674
4674
|
max: tr,
|
|
4675
|
-
minMax:
|
|
4675
|
+
minMax: Tn,
|
|
4676
4676
|
average: sn,
|
|
4677
4677
|
median: Gr,
|
|
4678
4678
|
unique: Ro,
|
|
@@ -4680,13 +4680,13 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4680
4680
|
count: Mr
|
|
4681
4681
|
}), xo = [], Po = {};
|
|
4682
4682
|
b.resetGroupBy = "resetGroupBy", b.setGroupBy = "setGroupBy", b.toggleGroupBy = "toggleGroupBy";
|
|
4683
|
-
var
|
|
4683
|
+
var An = function(l) {
|
|
4684
4684
|
l.getGroupByToggleProps = [jn], l.stateReducers.push(gn), l.visibleColumnsDeps.push(function(f, c) {
|
|
4685
4685
|
var C = c.instance;
|
|
4686
4686
|
return [].concat(f, [C.state.groupBy]);
|
|
4687
4687
|
}), l.visibleColumns.push(Eo), l.useInstance.push(Wr), l.prepareRow.push(Io);
|
|
4688
4688
|
};
|
|
4689
|
-
|
|
4689
|
+
An.pluginName = "useGroupBy";
|
|
4690
4690
|
var jn = function(l, f) {
|
|
4691
4691
|
var c = f.header;
|
|
4692
4692
|
return [l, {
|
|
@@ -4780,19 +4780,19 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4780
4780
|
Cn[Qt.id] = Ir[0] ? Ir[0].values[Qt.id] : null;
|
|
4781
4781
|
return;
|
|
4782
4782
|
}
|
|
4783
|
-
var da = typeof Qt.aggregate == "function" ? Qt.aggregate : ae[Qt.aggregate] ||
|
|
4783
|
+
var da = typeof Qt.aggregate == "function" ? Qt.aggregate : ae[Qt.aggregate] || In[Qt.aggregate];
|
|
4784
4784
|
if (da) {
|
|
4785
|
-
var uo = Ir.map(function(
|
|
4786
|
-
return
|
|
4787
|
-
}), qa = wn.map(function(
|
|
4788
|
-
var Rn =
|
|
4785
|
+
var uo = Ir.map(function($n) {
|
|
4786
|
+
return $n.values[Qt.id];
|
|
4787
|
+
}), qa = wn.map(function($n) {
|
|
4788
|
+
var Rn = $n.values[Qt.id];
|
|
4789
4789
|
if (!ua && Qt.aggregateValue) {
|
|
4790
|
-
var Sn = typeof Qt.aggregateValue == "function" ? Qt.aggregateValue : ae[Qt.aggregateValue] ||
|
|
4790
|
+
var Sn = typeof Qt.aggregateValue == "function" ? Qt.aggregateValue : ae[Qt.aggregateValue] || In[Qt.aggregateValue];
|
|
4791
4791
|
if (!Sn)
|
|
4792
4792
|
throw console.info({
|
|
4793
4793
|
column: Qt
|
|
4794
4794
|
}), new Error("React Table: Invalid column.aggregateValue option for column listed above");
|
|
4795
|
-
Rn = Sn(Rn,
|
|
4795
|
+
Rn = Sn(Rn, $n, Qt);
|
|
4796
4796
|
}
|
|
4797
4797
|
return Rn;
|
|
4798
4798
|
});
|
|
@@ -4805,7 +4805,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4805
4805
|
Cn[Qt.id] = null;
|
|
4806
4806
|
}
|
|
4807
4807
|
}), Cn;
|
|
4808
|
-
}, It = [], wr = {},
|
|
4808
|
+
}, It = [], wr = {}, Ln = [], zo = {}, Oe = [], Ft = {}, lr = function vr(wn, Ir, ua) {
|
|
4809
4809
|
if (Ir === void 0 && (Ir = 0), Ir === Ne.length)
|
|
4810
4810
|
return wn.map(function(uo) {
|
|
4811
4811
|
return s({}, uo, {
|
|
@@ -4813,13 +4813,13 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4813
4813
|
});
|
|
4814
4814
|
});
|
|
4815
4815
|
var Cn = Ne[Ir], Qt = F(wn, Cn), da = Object.entries(Qt).map(function(uo, qa) {
|
|
4816
|
-
var
|
|
4816
|
+
var $n = uo[0], Rn = uo[1], Sn = Cn + ":" + $n;
|
|
4817
4817
|
Sn = ua ? ua + ">" + Sn : Sn;
|
|
4818
4818
|
var nl = vr(Rn, Ir + 1, Sn), ol = Ir ? ut(Rn, "leafRows") : Rn, Du = Le(ol, Rn, Ir), Ou = {
|
|
4819
4819
|
id: Sn,
|
|
4820
4820
|
isGrouped: !0,
|
|
4821
4821
|
groupByID: Cn,
|
|
4822
|
-
groupByVal:
|
|
4822
|
+
groupByVal: $n,
|
|
4823
4823
|
values: Du,
|
|
4824
4824
|
subRows: nl,
|
|
4825
4825
|
leafRows: ol,
|
|
@@ -4827,14 +4827,14 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4827
4827
|
index: qa
|
|
4828
4828
|
};
|
|
4829
4829
|
return nl.forEach(function(on) {
|
|
4830
|
-
It.push(on), wr[on.id] = on, on.isGrouped ? (
|
|
4830
|
+
It.push(on), wr[on.id] = on, on.isGrouped ? (Ln.push(on), zo[on.id] = on) : (Oe.push(on), Ft[on.id] = on);
|
|
4831
4831
|
}), Ou;
|
|
4832
4832
|
});
|
|
4833
4833
|
return da;
|
|
4834
4834
|
}, Br = lr(f);
|
|
4835
4835
|
return Br.forEach(function(vr) {
|
|
4836
|
-
It.push(vr), wr[vr.id] = vr, vr.isGrouped ? (
|
|
4837
|
-
}), [Br, It, wr,
|
|
4836
|
+
It.push(vr), wr[vr.id] = vr, vr.isGrouped ? (Ln.push(vr), zo[vr.id] = vr) : (Oe.push(vr), Ft[vr.id] = vr);
|
|
4837
|
+
}), [Br, It, wr, Ln, zo, Oe, Ft];
|
|
4838
4838
|
}, [G, ie, f, c, C, S, ae, F]), pe = fe[0], Se = fe[1], je = fe[2], Ve = fe[3], Et = fe[4], Ce = fe[5], gr = fe[6], Xe = j(ye);
|
|
4839
4839
|
ne(function() {
|
|
4840
4840
|
Xe() && de({
|
|
@@ -4892,11 +4892,11 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4892
4892
|
};
|
|
4893
4893
|
function _o(o, l, f) {
|
|
4894
4894
|
var c = un(o, l, f), C = c[0], S = c[1];
|
|
4895
|
-
return C = C.getTime(), S = S.getTime(),
|
|
4895
|
+
return C = C.getTime(), S = S.getTime(), _n(C, S);
|
|
4896
4896
|
}
|
|
4897
4897
|
function Do(o, l, f) {
|
|
4898
4898
|
var c = un(o, l, f), C = c[0], S = c[1];
|
|
4899
|
-
return
|
|
4899
|
+
return _n(C, S);
|
|
4900
4900
|
}
|
|
4901
4901
|
function vn(o, l, f) {
|
|
4902
4902
|
var c = un(o, l, f), C = c[0], S = c[1];
|
|
@@ -4915,9 +4915,9 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4915
4915
|
}
|
|
4916
4916
|
function Xn(o, l, f) {
|
|
4917
4917
|
var c = un(o, l, f), C = c[0], S = c[1], m = /[^0-9.]/gi;
|
|
4918
|
-
return C = Number(String(C).replace(m, "")), S = Number(String(S).replace(m, "")),
|
|
4918
|
+
return C = Number(String(C).replace(m, "")), S = Number(String(S).replace(m, "")), _n(C, S);
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function _n(o, l) {
|
|
4921
4921
|
return o === l ? 0 : o > l ? 1 : -1;
|
|
4922
4922
|
}
|
|
4923
4923
|
function un(o, l, f) {
|
|
@@ -5007,7 +5007,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5007
5007
|
}
|
|
5008
5008
|
}
|
|
5009
5009
|
function Qn(o) {
|
|
5010
|
-
var l = o.data, f = o.rows, c = o.flatRows, C = o.allColumns, S = o.orderByFn, m = S === void 0 ?
|
|
5010
|
+
var l = o.data, f = o.rows, c = o.flatRows, C = o.allColumns, S = o.orderByFn, m = S === void 0 ? Dn : S, I = o.sortTypes, F = o.manualSortBy, G = o.defaultCanSort, q = o.disableSortBy, ae = o.flatHeaders, Q = o.state.sortBy, ie = o.dispatch, de = o.plugins, J = o.getHooks, ye = o.autoResetSortBy, xe = ye === void 0 ? !0 : ye;
|
|
5011
5011
|
V(de, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
|
|
5012
5012
|
var Be = n.useCallback(function(Se) {
|
|
5013
5013
|
ie({
|
|
@@ -5061,8 +5061,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5061
5061
|
var Le = Ne.sortType, It = Te(Le) || (I || {})[Le] || Yn[Le];
|
|
5062
5062
|
if (!It)
|
|
5063
5063
|
throw new Error("React-Table: Could not find a valid sortType of '" + Le + "' for column '" + Xe.id + "'.");
|
|
5064
|
-
return function(wr,
|
|
5065
|
-
return It(wr,
|
|
5064
|
+
return function(wr, Ln) {
|
|
5065
|
+
return It(wr, Ln, Xe.id, Xe.desc);
|
|
5066
5066
|
};
|
|
5067
5067
|
}),
|
|
5068
5068
|
// Map the directions
|
|
@@ -5094,7 +5094,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5094
5094
|
toggleSortBy: ge
|
|
5095
5095
|
});
|
|
5096
5096
|
}
|
|
5097
|
-
function
|
|
5097
|
+
function Dn(o, l, f) {
|
|
5098
5098
|
return [].concat(o).sort(function(c, C) {
|
|
5099
5099
|
for (var S = 0; S < l.length; S += 1) {
|
|
5100
5100
|
var m = l[S], I = f[S] === !1 || f[S] === "desc", F = m(c, C);
|
|
@@ -5193,7 +5193,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5193
5193
|
}
|
|
5194
5194
|
b.resetPivot = "resetPivot", b.togglePivot = "togglePivot";
|
|
5195
5195
|
var to = function(l) {
|
|
5196
|
-
l.getPivotToggleProps = [Ho], l.stateReducers.push(no), l.useInstanceAfterData.push(Fo), l.allColumns.push(Mo), l.accessValue.push(Lo), l.materializedColumns.push(oo), l.materializedColumnsDeps.push(
|
|
5196
|
+
l.getPivotToggleProps = [Ho], l.stateReducers.push(no), l.useInstanceAfterData.push(Fo), l.allColumns.push(Mo), l.accessValue.push(Lo), l.materializedColumns.push(oo), l.materializedColumnsDeps.push(On), l.visibleColumns.push(ao), l.visibleColumnsDeps.push(hn), l.useInstance.push(Bn), l.prepareRow.push(mn);
|
|
5197
5197
|
};
|
|
5198
5198
|
to.pluginName = "usePivotColumns";
|
|
5199
5199
|
var ro = [], Ho = function(l, f) {
|
|
@@ -5289,7 +5289,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5289
5289
|
}, F = at(I());
|
|
5290
5290
|
return [].concat(o, F);
|
|
5291
5291
|
}
|
|
5292
|
-
function
|
|
5292
|
+
function On(o, l) {
|
|
5293
5293
|
var f = l.instance.state, c = f.pivotColumns, C = f.groupBy;
|
|
5294
5294
|
return [].concat(o, [c, C]);
|
|
5295
5295
|
}
|
|
@@ -5305,7 +5305,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5305
5305
|
var f = l.instance;
|
|
5306
5306
|
return [].concat(o, [f.state.pivotColumns, f.state.groupBy]);
|
|
5307
5307
|
}
|
|
5308
|
-
function
|
|
5308
|
+
function Bn(o) {
|
|
5309
5309
|
var l = o.columns, f = o.allColumns, c = o.flatHeaders, C = o.getHooks, S = o.plugins, m = o.dispatch, I = o.autoResetPivot, F = I === void 0 ? !0 : I, G = o.manaulPivot, q = o.disablePivot, ae = o.defaultCanPivot;
|
|
5310
5310
|
V(S, ["useGroupBy"], "usePivotColumns");
|
|
5311
5311
|
var Q = j(o);
|
|
@@ -5344,10 +5344,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5344
5344
|
}
|
|
5345
5345
|
var io = "useRowSelect";
|
|
5346
5346
|
b.resetSelectedRows = "resetSelectedRows", b.toggleAllRowsSelected = "toggleAllRowsSelected", b.toggleRowSelected = "toggleRowSelected", b.toggleAllPageRowsSelected = "toggleAllPageRowsSelected";
|
|
5347
|
-
var
|
|
5348
|
-
l.getToggleRowSelectedProps = [yn], l.getToggleAllRowsSelectedProps = [
|
|
5347
|
+
var Nn = function(l) {
|
|
5348
|
+
l.getToggleRowSelectedProps = [yn], l.getToggleAllRowsSelectedProps = [Hn], l.getToggleAllPageRowsSelectedProps = [nn], l.stateReducers.push(Jr), l.useInstance.push($o), l.prepareRow.push(lo);
|
|
5349
5349
|
};
|
|
5350
|
-
|
|
5350
|
+
Nn.pluginName = io;
|
|
5351
5351
|
var yn = function(l, f) {
|
|
5352
5352
|
var c = f.instance, C = f.row, S = c.manualRowSelectedKey, m = S === void 0 ? "isSelected" : S, I = !1;
|
|
5353
5353
|
return C.original && C.original[m] ? I = !0 : I = C.isSelected, [l, {
|
|
@@ -5361,7 +5361,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5361
5361
|
title: "Toggle Row Selected",
|
|
5362
5362
|
indeterminate: C.isSomeSelected
|
|
5363
5363
|
}];
|
|
5364
|
-
},
|
|
5364
|
+
}, Hn = function(l, f) {
|
|
5365
5365
|
var c = f.instance;
|
|
5366
5366
|
return [l, {
|
|
5367
5367
|
onChange: function(S) {
|
|
@@ -5516,18 +5516,18 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5516
5516
|
}
|
|
5517
5517
|
return !1;
|
|
5518
5518
|
}
|
|
5519
|
-
var
|
|
5519
|
+
var Fn = function(l) {
|
|
5520
5520
|
return {};
|
|
5521
5521
|
}, dn = function(l) {
|
|
5522
5522
|
return {};
|
|
5523
5523
|
};
|
|
5524
5524
|
b.setRowState = "setRowState", b.setCellState = "setCellState", b.resetRowState = "resetRowState";
|
|
5525
5525
|
var so = function(l) {
|
|
5526
|
-
l.stateReducers.push(
|
|
5526
|
+
l.stateReducers.push(Mn), l.useInstance.push(a), l.prepareRow.push(g);
|
|
5527
5527
|
};
|
|
5528
5528
|
so.pluginName = "useRowState";
|
|
5529
|
-
function
|
|
5530
|
-
var C = c.initialRowStateAccessor, S = C === void 0 ?
|
|
5529
|
+
function Mn(o, l, f, c) {
|
|
5530
|
+
var C = c.initialRowStateAccessor, S = C === void 0 ? Fn : C, m = c.initialCellStateAccessor, I = m === void 0 ? dn : m, F = c.rowsById;
|
|
5531
5531
|
if (l.type === b.init)
|
|
5532
5532
|
return s({
|
|
5533
5533
|
rowState: {}
|
|
@@ -5578,7 +5578,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
5578
5578
|
});
|
|
5579
5579
|
}
|
|
5580
5580
|
function g(o, l) {
|
|
5581
|
-
var f = l.instance, c = f.initialRowStateAccessor, C = c === void 0 ?
|
|
5581
|
+
var f = l.instance, c = f.initialRowStateAccessor, C = c === void 0 ? Fn : c, S = f.initialCellStateAccessor, m = S === void 0 ? dn : S, I = f.state.rowState;
|
|
5582
5582
|
o && (o.state = typeof I[o.id] < "u" ? I[o.id] : C(o), o.setState = function(F) {
|
|
5583
5583
|
return f.setRowState(o.id, F);
|
|
5584
5584
|
}, o.cells.forEach(function(F) {
|
|
@@ -6009,7 +6009,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
6009
6009
|
if (f !== void 0)
|
|
6010
6010
|
return f;
|
|
6011
6011
|
}
|
|
6012
|
-
r._UNSTABLE_usePivotColumns = to, r.actions = b, r.defaultColumn = N, r.defaultGroupByFn = qn, r.defaultOrderByFn =
|
|
6012
|
+
r._UNSTABLE_usePivotColumns = to, r.actions = b, r.defaultColumn = N, r.defaultGroupByFn = qn, r.defaultOrderByFn = Dn, r.defaultRenderer = z, r.emptyRenderer = A, r.ensurePluginOrder = V, r.flexRender = Ae, r.functionalUpdate = W, r.loopHooks = $, r.makePropGetter = O, r.makeRenderer = we, r.reduceHooks = M, r.safeUseLayoutEffect = le, r.useAbsoluteLayout = Y, r.useAsyncDebounce = he, r.useBlockLayout = be, r.useColumnOrder = v, r.useExpanded = xt, r.useFilters = Tr, r.useFlexLayout = Ge, r.useGetLatest = j, r.useGlobalFilter = Fr, r.useGridLayout = et, r.useGroupBy = An, r.useMountedLayoutEffect = ne, r.usePagination = Zn, r.useResizeColumns = _, r.useRowSelect = Nn, r.useRowState = so, r.useSortBy = Jn, r.useTable = St, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
6013
6013
|
}));
|
|
6014
6014
|
})(Yo, Yo.exports)), Yo.exports;
|
|
6015
6015
|
}
|
|
@@ -8157,10 +8157,10 @@ const pu = /* @__PURE__ */ po({
|
|
|
8157
8157
|
scaleX: 1,
|
|
8158
8158
|
scaleY: 1
|
|
8159
8159
|
});
|
|
8160
|
-
var
|
|
8160
|
+
var Pn;
|
|
8161
8161
|
(function(e) {
|
|
8162
8162
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
8163
|
-
})(
|
|
8163
|
+
})(Pn || (Pn = {}));
|
|
8164
8164
|
const jf = /* @__PURE__ */ td(function(t) {
|
|
8165
8165
|
var r, n, i, u;
|
|
8166
8166
|
let {
|
|
@@ -8174,7 +8174,7 @@ const jf = /* @__PURE__ */ td(function(t) {
|
|
|
8174
8174
|
modifiers: A,
|
|
8175
8175
|
...N
|
|
8176
8176
|
} = t;
|
|
8177
|
-
const P = rd(zf, void 0, $f), [H, O] = P, [M, $] = $c(), [V, W] = ct(
|
|
8177
|
+
const P = rd(zf, void 0, $f), [H, O] = P, [M, $] = $c(), [V, W] = ct(Pn.Uninitialized), j = V === Pn.Initialized, {
|
|
8178
8178
|
draggable: {
|
|
8179
8179
|
active: le,
|
|
8180
8180
|
nodes: ne,
|
|
@@ -8314,7 +8314,7 @@ const jf = /* @__PURE__ */ td(function(t) {
|
|
|
8314
8314
|
}
|
|
8315
8315
|
};
|
|
8316
8316
|
ga(() => {
|
|
8317
|
-
Yt?.(Pr), W(
|
|
8317
|
+
Yt?.(Pr), W(Pn.Initializing), O({
|
|
8318
8318
|
type: hr.DragStart,
|
|
8319
8319
|
initialCoordinates: bt,
|
|
8320
8320
|
active: Ut
|
|
@@ -8358,7 +8358,7 @@ const jf = /* @__PURE__ */ td(function(t) {
|
|
|
8358
8358
|
He.current = null, ga(() => {
|
|
8359
8359
|
O({
|
|
8360
8360
|
type: bt
|
|
8361
|
-
}), W(
|
|
8361
|
+
}), W(Pn.Uninitialized), yr(null), at(null), it(null), Vt.current = null;
|
|
8362
8362
|
const Jt = bt === hr.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
8363
8363
|
if (or) {
|
|
8364
8364
|
const Tr = rt.current[Jt];
|
|
@@ -8390,7 +8390,7 @@ const jf = /* @__PURE__ */ td(function(t) {
|
|
|
8390
8390
|
}, He.current = ot, kt($e, Ie));
|
|
8391
8391
|
}, [ne, kt]), Xt = Rf(E, St);
|
|
8392
8392
|
_f(E), ln(() => {
|
|
8393
|
-
Ee && V ===
|
|
8393
|
+
Ee && V === Pn.Initializing && W(Pn.Initialized);
|
|
8394
8394
|
}, [Ee, V]), ze(
|
|
8395
8395
|
() => {
|
|
8396
8396
|
const {
|
|
@@ -10186,7 +10186,7 @@ var Bg = {
|
|
|
10186
10186
|
*
|
|
10187
10187
|
* Defaults to **null**.
|
|
10188
10188
|
*/
|
|
10189
|
-
topBar:
|
|
10189
|
+
topBar: En(B.node, "Table", "Use `leadingContent` instead."),
|
|
10190
10190
|
/**
|
|
10191
10191
|
* Custom content to appear inside the table container directly below the actual table.
|
|
10192
10192
|
*
|
|
@@ -10359,7 +10359,7 @@ var Bg = {
|
|
|
10359
10359
|
*
|
|
10360
10360
|
* Defaults to **undefined**.
|
|
10361
10361
|
*/
|
|
10362
|
-
backgroundColor:
|
|
10362
|
+
backgroundColor: En(B.string, "TableCell", "This prop has been deprecated in favor of `cellProps` in the column schema (see README), which offers more flexibility."),
|
|
10363
10363
|
/**
|
|
10364
10364
|
* React-Table cell object.
|
|
10365
10365
|
*
|
|
@@ -10533,7 +10533,7 @@ var Bg = {
|
|
|
10533
10533
|
*
|
|
10534
10534
|
* Defaults to **undefined**.
|
|
10535
10535
|
*/
|
|
10536
|
-
backgroundColor:
|
|
10536
|
+
backgroundColor: En(B.string, "TableHeaderCell", "This prop has been deprecated in favor of `cellProps` in the column schema (see README), which offers more flexibility."),
|
|
10537
10537
|
/**
|
|
10538
10538
|
* Mostly commonly a string, accepts any valid markup.
|
|
10539
10539
|
*
|
|
@@ -10748,7 +10748,7 @@ var Bg = {
|
|
|
10748
10748
|
*
|
|
10749
10749
|
* Defaults to **undefined**.
|
|
10750
10750
|
*/
|
|
10751
|
-
prominent:
|
|
10751
|
+
prominent: En(B.bool, "TableTopBar", "May be removed pending further review."),
|
|
10752
10752
|
/**
|
|
10753
10753
|
* Can be used to add a title to the table.
|
|
10754
10754
|
*
|
|
@@ -11567,7 +11567,7 @@ var Hv = {
|
|
|
11567
11567
|
*
|
|
11568
11568
|
* Defaults to **undefined**.
|
|
11569
11569
|
*/
|
|
11570
|
-
dividerColor:
|
|
11570
|
+
dividerColor: En(B.string, "Divider", "Use `themeColor` instead."),
|
|
11571
11571
|
/**
|
|
11572
11572
|
* @deprecated _Use `themeColorImportant` instead._
|
|
11573
11573
|
*
|
|
@@ -11575,7 +11575,7 @@ var Hv = {
|
|
|
11575
11575
|
*
|
|
11576
11576
|
* Defaults to **undefined**.
|
|
11577
11577
|
*/
|
|
11578
|
-
dividerColorImportant:
|
|
11578
|
+
dividerColorImportant: En(B.bool, "Divider", "Use `themeColorImportant` instead."),
|
|
11579
11579
|
/**
|
|
11580
11580
|
* @deprecated _Use `variant` instead._
|
|
11581
11581
|
*
|
|
@@ -11583,7 +11583,7 @@ var Hv = {
|
|
|
11583
11583
|
*
|
|
11584
11584
|
* Defaults to **undefined**.
|
|
11585
11585
|
*/
|
|
11586
|
-
dividerHeight:
|
|
11586
|
+
dividerHeight: En(B.string, "Divider", "Use `variant` instead."),
|
|
11587
11587
|
/**
|
|
11588
11588
|
* Set the border-style with default browser styles. In general, avoid using.
|
|
11589
11589
|
*
|
|
@@ -11603,7 +11603,7 @@ var Hv = {
|
|
|
11603
11603
|
*
|
|
11604
11604
|
* Defaults to **undefined**.
|
|
11605
11605
|
*/
|
|
11606
|
-
themeColorImportant:
|
|
11606
|
+
themeColorImportant: En(B.bool, "Divider", "No longer needed."),
|
|
11607
11607
|
/**
|
|
11608
11608
|
* Choose between dense and tall variants.
|
|
11609
11609
|
*
|
|
@@ -11649,7 +11649,7 @@ function _s(e, t) {
|
|
|
11649
11649
|
}
|
|
11650
11650
|
return r;
|
|
11651
11651
|
}
|
|
11652
|
-
function
|
|
11652
|
+
function Gn(e) {
|
|
11653
11653
|
for (var t = 1; t < arguments.length; t++) {
|
|
11654
11654
|
var r, n, i = arguments[t] != null ? arguments[t] : {};
|
|
11655
11655
|
t % 2 ? Lt(r = _s(Object(i), !0)).call(r, function(u) {
|
|
@@ -11696,14 +11696,14 @@ var $v = (function(e) {
|
|
|
11696
11696
|
return null;
|
|
11697
11697
|
var j = _a(p, (N = W.original) === null || N === void 0 ? void 0 : N.rowProps, [W.original, $]), le = !0;
|
|
11698
11698
|
x(W);
|
|
11699
|
-
var ne =
|
|
11699
|
+
var ne = Gn(Gn({}, j?.style), V);
|
|
11700
11700
|
w === "flex" && z && (ne.width = "".concat(z, "px"));
|
|
11701
11701
|
var he = n && i && (W.isExpanded || s), we = W.depth > 0 && Us(E).call(E, function(Ye) {
|
|
11702
11702
|
var at, ke;
|
|
11703
11703
|
return Ye.depth === 0 && ((at = Ye.original) === null || at === void 0 ? void 0 : at.isGrouped) && xa(E).call(E, Ye) < $ && wc(ke = Wi(E).call(E, xa(E).call(E, Ye) + 1, $ + 1)).call(ke, function(it) {
|
|
11704
11704
|
return it.depth > 0;
|
|
11705
11705
|
});
|
|
11706
|
-
}), Ae = W.depth === 0 && ((P = W.original) === null || P === void 0 ? void 0 : P.isGrouped) && W.isExpanded, Qe = Ae || we, Ke = Qe ? "lmnt-table__grouped-row" : "", He =
|
|
11706
|
+
}), Ae = W.depth === 0 && ((P = W.original) === null || P === void 0 ? void 0 : P.isGrouped) && W.isExpanded, Qe = Ae || we, Ke = Qe ? "lmnt-table__grouped-row" : "", He = Gn({}, W.getRowProps(Gn(Gn({}, j), {}, {
|
|
11707
11707
|
row: W,
|
|
11708
11708
|
alwaysUseDivTags: t,
|
|
11709
11709
|
style: ne,
|
|
@@ -11716,7 +11716,7 @@ var $v = (function(e) {
|
|
|
11716
11716
|
return /* @__PURE__ */ K.createElement(wo, wt({
|
|
11717
11717
|
layout: w,
|
|
11718
11718
|
columnIndex: at
|
|
11719
|
-
}, Ye.getCellProps(
|
|
11719
|
+
}, Ye.getCellProps(Gn(Gn({}, ke), {}, {
|
|
11720
11720
|
cell: Ye,
|
|
11721
11721
|
alwaysUseDivTags: t
|
|
11722
11722
|
}))));
|
|
@@ -12153,7 +12153,7 @@ var Ue = Ng, rl = /* @__PURE__ */ Rr(function(e, t) {
|
|
|
12153
12153
|
if (!tr && !p && !Dr) return /* @__PURE__ */ K.createElement(sa, {
|
|
12154
12154
|
ref: t
|
|
12155
12155
|
}, qe);
|
|
12156
|
-
var
|
|
12156
|
+
var Tn = {
|
|
12157
12157
|
ariaLabel: u,
|
|
12158
12158
|
className: b,
|
|
12159
12159
|
columnStriped: P,
|
|
@@ -12212,7 +12212,7 @@ var Ue = Ng, rl = /* @__PURE__ */ Rr(function(e, t) {
|
|
|
12212
12212
|
layout: "standard",
|
|
12213
12213
|
ref: t,
|
|
12214
12214
|
trailingContent: Yt
|
|
12215
|
-
},
|
|
12215
|
+
}, Tn, fr), p))) : /* @__PURE__ */ K.createElement(oa.Provider, {
|
|
12216
12216
|
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
12217
12217
|
value: {
|
|
12218
12218
|
customProps: fr,
|
|
@@ -12277,15 +12277,16 @@ var rp = ["title", "actions", "prominent", "filterBar", "className"], Vo = ov, D
|
|
|
12277
12277
|
});
|
|
12278
12278
|
Da.displayName = "TableTopBar";
|
|
12279
12279
|
Da.propTypes = nv;
|
|
12280
|
-
const np = "
|
|
12280
|
+
const np = "_topBar_wc5ga_1", op = "_filterBar_wc5ga_5", ap = "_start_wc5ga_10", ip = "_emptyTable_wc5ga_15", lp = "_elevation_wc5ga_23", sp = "_table_wc5ga_28", up = "_noBorder_wc5ga_48", dp = "_fullWidth_wc5ga_52", xn = {
|
|
12281
12281
|
topBar: np,
|
|
12282
12282
|
filterBar: op,
|
|
12283
12283
|
start: ap,
|
|
12284
12284
|
emptyTable: ip,
|
|
12285
12285
|
elevation: lp,
|
|
12286
12286
|
table: sp,
|
|
12287
|
-
noBorder: up
|
|
12288
|
-
|
|
12287
|
+
noBorder: up,
|
|
12288
|
+
fullWidth: dp
|
|
12289
|
+
}, nh = ({
|
|
12289
12290
|
data: e = [],
|
|
12290
12291
|
hiddenColumns: t = [],
|
|
12291
12292
|
order: r = [],
|
|
@@ -12339,13 +12340,13 @@ const np = "_topBar_47g7x_1", op = "_filterBar_47g7x_5", ap = "_start_47g7x_10",
|
|
|
12339
12340
|
Nu,
|
|
12340
12341
|
{
|
|
12341
12342
|
elevation: O,
|
|
12342
|
-
className:
|
|
12343
|
+
className: xn.elevation,
|
|
12343
12344
|
"data-testid": "generic-table-elevation",
|
|
12344
12345
|
children: /* @__PURE__ */ Lr(
|
|
12345
12346
|
rl,
|
|
12346
12347
|
{
|
|
12347
12348
|
"data-testid": `generic-table${E ? "-" + E : ""}`,
|
|
12348
|
-
className: `${
|
|
12349
|
+
className: `${xn.table} ${O === 0 ? xn.noBorder : ""}`,
|
|
12349
12350
|
fullWidth: !0,
|
|
12350
12351
|
alwaysUseDivTags: !0,
|
|
12351
12352
|
layout: M,
|
|
@@ -12355,13 +12356,13 @@ const np = "_topBar_47g7x_1", op = "_filterBar_47g7x_5", ap = "_start_47g7x_10",
|
|
|
12355
12356
|
leadingContent: E && i?.length === 0 ? /* @__PURE__ */ Lr(Da, { title: E }) : i?.length > 0 && /* @__PURE__ */ Lr(
|
|
12356
12357
|
Da,
|
|
12357
12358
|
{
|
|
12358
|
-
className:
|
|
12359
|
+
className: xn.topBar,
|
|
12359
12360
|
filterBar: /* @__PURE__ */ Bu(Va, { fullWidth: !0, direction: "vertical", gap: "none", children: [
|
|
12360
12361
|
E && /* @__PURE__ */ Lr(Hu, { children: /* @__PURE__ */ Lr(Vs, { level: 6, children: E }) }),
|
|
12361
12362
|
/* @__PURE__ */ Lr(
|
|
12362
12363
|
Va,
|
|
12363
12364
|
{
|
|
12364
|
-
className: `${
|
|
12365
|
+
className: `${xn.filterBar} ${H === "start" ? xn.start : ""}`,
|
|
12365
12366
|
fullWidth: !0,
|
|
12366
12367
|
primaryAlign: H,
|
|
12367
12368
|
secondaryAlign: "center",
|
|
@@ -12381,22 +12382,29 @@ const np = "_topBar_47g7x_1", op = "_filterBar_47g7x_5", ap = "_start_47g7x_10",
|
|
|
12381
12382
|
fullWidth: !0,
|
|
12382
12383
|
primaryAlign: "center",
|
|
12383
12384
|
secondaryAlign: "center",
|
|
12384
|
-
className:
|
|
12385
|
+
className: xn.emptyTable,
|
|
12385
12386
|
children: /* @__PURE__ */ Lr(xd, { children: u })
|
|
12386
12387
|
}
|
|
12387
12388
|
) : /* @__PURE__ */ Lr(fl, { ...V })
|
|
12388
12389
|
}
|
|
12389
12390
|
)
|
|
12390
12391
|
}
|
|
12391
|
-
) : $ ? /* @__PURE__ */ Lr(
|
|
12392
|
-
|
|
12392
|
+
) : $ ? /* @__PURE__ */ Lr(
|
|
12393
|
+
"div",
|
|
12393
12394
|
{
|
|
12394
|
-
data:
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12395
|
+
"data-testid": `generic-card-list${E ? "-" + E : ""}`,
|
|
12396
|
+
className: xn.fullWidth,
|
|
12397
|
+
children: /* @__PURE__ */ Lr(
|
|
12398
|
+
Dd,
|
|
12399
|
+
{
|
|
12400
|
+
data: le,
|
|
12401
|
+
columns: j,
|
|
12402
|
+
hiddenColumns: t,
|
|
12403
|
+
noContentText: u
|
|
12404
|
+
}
|
|
12405
|
+
)
|
|
12398
12406
|
}
|
|
12399
|
-
)
|
|
12407
|
+
) : /* @__PURE__ */ Lr(
|
|
12400
12408
|
fl,
|
|
12401
12409
|
{
|
|
12402
12410
|
...V,
|
|
@@ -12405,5 +12413,5 @@ const np = "_topBar_47g7x_1", op = "_filterBar_47g7x_5", ap = "_start_47g7x_10",
|
|
|
12405
12413
|
);
|
|
12406
12414
|
};
|
|
12407
12415
|
export {
|
|
12408
|
-
|
|
12416
|
+
nh as GenericTable
|
|
12409
12417
|
};
|
|
@@ -4,7 +4,7 @@ import "../../../index.es-CeQB6igi.js";
|
|
|
4
4
|
import "../../../index.es-SjZ_-d7U.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../OverflowTooltip/OverflowTooltip.js";
|
|
7
|
-
import { G } from "../../../GenericCard-
|
|
7
|
+
import { G } from "../../../GenericCard-IWX-Bmb_.js";
|
|
8
8
|
export {
|
|
9
9
|
G as GenericCard
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { a as c, s as o } from "../../../react.esm-Bm0cAgpZ.js";
|
|
3
|
-
import { G as i } from "../../../GenericCard-
|
|
3
|
+
import { G as i } from "../../../GenericCard-IWX-Bmb_.js";
|
|
4
4
|
import { d as m, t as s, g as e } from "../../../vi.bdSIJ99Y-B308Q-4w.js";
|
|
5
5
|
m("GenericCard", () => {
|
|
6
6
|
const d = {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { G as
|
|
3
|
-
import { P as
|
|
2
|
+
import { G as l } from "../../../index.es-oxil0uFe.js";
|
|
3
|
+
import { P as c } from "../../../index.es-BanVdXEd.js";
|
|
4
4
|
import { a as o } from "../../../index.es-SjZ_-d7U.js";
|
|
5
|
-
import { s as
|
|
6
|
-
const
|
|
5
|
+
import { s as e, G as m } from "../../../GenericCard-IWX-Bmb_.js";
|
|
6
|
+
const g = ({
|
|
7
7
|
columns: n,
|
|
8
|
-
data:
|
|
8
|
+
data: t,
|
|
9
9
|
hiddenColumns: a = [],
|
|
10
|
-
noContentText:
|
|
11
|
-
}) =>
|
|
10
|
+
noContentText: s
|
|
11
|
+
}) => t?.length === 0 ? /* @__PURE__ */ r("div", { "data-testid": "empty-generic-card-list", className: e.emptyContainer, children: /* @__PURE__ */ r(c, { variant: "standard", style: { textAlign: "center" }, className: e.empty, children: /* @__PURE__ */ r(o, { children: s }) }) }) : (
|
|
12
12
|
// needs the div to surround the Group by an element with display: block to avoid visual errors
|
|
13
|
-
/* @__PURE__ */ r("div", {
|
|
13
|
+
/* @__PURE__ */ r("div", { className: e.fullWidth, children: /* @__PURE__ */ r(l, { fullWidth: !0, direction: "vertical", primaryAlign: "center", secondaryAlign: "center", children: t?.map((i, d) => /* @__PURE__ */ r(
|
|
14
14
|
m,
|
|
15
15
|
{
|
|
16
|
-
item:
|
|
16
|
+
item: i,
|
|
17
17
|
columns: n,
|
|
18
18
|
hiddenColumns: a
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
i.id ?? d
|
|
21
21
|
)) }) })
|
|
22
22
|
);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
g as GenericCardList
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.15.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as d, Fragment as C } from "react/jsx-runtime";
|
|
2
|
-
import { C as h, a as m, b as T, c as g, d as v } from "./index.es-BPv5dCFQ.js";
|
|
3
|
-
import { G as b, a as x, b as c } from "./index.es-CeQB6igi.js";
|
|
4
|
-
import { d as f } from "./index.es-SjZ_-d7U.js";
|
|
5
|
-
import { useMemo as w } from "react";
|
|
6
|
-
import { OverflowTooltip as l } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
7
|
-
import './assets/GenericCard.css';const u = "_cardTitle_ny9m0_1", B = "_cardBody_ny9m0_5", N = "_cardContent_ny9m0_10", $ = "_row_ny9m0_14", G = "_font_ny9m0_18", k = "_fontHeader_ny9m0_23", H = "_title_ny9m0_27", S = "_emptyContainer_ny9m0_33", A = "_empty_ny9m0_33", n = {
|
|
8
|
-
cardTitle: u,
|
|
9
|
-
cardBody: B,
|
|
10
|
-
cardContent: N,
|
|
11
|
-
row: $,
|
|
12
|
-
font: G,
|
|
13
|
-
fontHeader: k,
|
|
14
|
-
title: H,
|
|
15
|
-
emptyContainer: S,
|
|
16
|
-
empty: A
|
|
17
|
-
}, _ = {
|
|
18
|
-
desktopCol: 6,
|
|
19
|
-
phoneCol: 2,
|
|
20
|
-
tabletCol: 4,
|
|
21
|
-
verticalAlign: "bottom"
|
|
22
|
-
}, W = ({ item: e, columns: t, hiddenColumns: o }) => {
|
|
23
|
-
const i = t.find((a) => a.asCardTitle), y = t.find((a) => a.asCardSubtitle), p = w(
|
|
24
|
-
() => t.filter(
|
|
25
|
-
(a) => !a.asCardTitle && !a.asCardSubtitle && a.id !== "actions"
|
|
26
|
-
),
|
|
27
|
-
[t]
|
|
28
|
-
);
|
|
29
|
-
return /* @__PURE__ */ r(
|
|
30
|
-
h,
|
|
31
|
-
{
|
|
32
|
-
variant: "raised",
|
|
33
|
-
"data-testid": `card${i ? "-" + e[i.accessor] : ""}`,
|
|
34
|
-
children: /* @__PURE__ */ d(m, { className: n.cardContent, "data-testid": "card-content", children: [
|
|
35
|
-
/* @__PURE__ */ r(j, { item: e, titleColumn: i, subTitleColumn: y }),
|
|
36
|
-
/* @__PURE__ */ r(T, { className: n.cardBody, "data-testid": "card-body", children: /* @__PURE__ */ r(b, { fullHeight: !0, fullWidth: !0, variant: "none", children: p.map((a) => o?.includes(a.id) ? null : /* @__PURE__ */ d(x, { className: n.row, "data-testid": "row", children: [
|
|
37
|
-
/* @__PURE__ */ r(c, { horizontalAlign: "right", ..._, children: /* @__PURE__ */ d(
|
|
38
|
-
f,
|
|
39
|
-
{
|
|
40
|
-
level: 2,
|
|
41
|
-
themeColor: "text-secondary-on-background",
|
|
42
|
-
className: `${n.font} ${n.fontHeader}`,
|
|
43
|
-
tag: "div",
|
|
44
|
-
children: [
|
|
45
|
-
a.header,
|
|
46
|
-
":"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
) }),
|
|
50
|
-
/* @__PURE__ */ r(c, { horizontalAlign: "left", ..._, children: /* @__PURE__ */ r(s, { column: a, item: e }) })
|
|
51
|
-
] }, a.id)) }) })
|
|
52
|
-
] })
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}, j = ({ item: e, titleColumn: t, subTitleColumn: o }) => {
|
|
56
|
-
const i = e.actions;
|
|
57
|
-
return !t && !o && !i ? null : /* @__PURE__ */ d(C, { children: [
|
|
58
|
-
/* @__PURE__ */ r(
|
|
59
|
-
g,
|
|
60
|
-
{
|
|
61
|
-
"data-testid": "card-title",
|
|
62
|
-
className: n.cardTitle,
|
|
63
|
-
primaryText: t !== void 0 && /* @__PURE__ */ r(s, { column: t, item: e, isTitle: !0 }),
|
|
64
|
-
secondaryText: o !== void 0 && /* @__PURE__ */ r(s, { column: o, item: e, isTitle: !0 }),
|
|
65
|
-
trailingBlock: i,
|
|
66
|
-
trailingBlockType: i ? "title-actions" : void 0
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ r(v, {})
|
|
70
|
-
] });
|
|
71
|
-
}, s = ({ item: e, column: t, isTitle: o = !1 }) => t.cellTemplate ? t.cellTemplate({ row: { original: e } }) : o ? /* @__PURE__ */ r(
|
|
72
|
-
l,
|
|
73
|
-
{
|
|
74
|
-
id: `tip_${t.id}_${e[t.accessor]}`,
|
|
75
|
-
text: e[t.accessor],
|
|
76
|
-
children: /* @__PURE__ */ r("span", { className: n.title, children: e[t.accessor] })
|
|
77
|
-
}
|
|
78
|
-
) : /* @__PURE__ */ r(
|
|
79
|
-
l,
|
|
80
|
-
{
|
|
81
|
-
id: `tip_${t.id}_${e[t.accessor]}`,
|
|
82
|
-
text: e[t.accessor],
|
|
83
|
-
children: /* @__PURE__ */ r(f, { level: 2, themeColor: "text-primary-on-background", className: n.font, children: e[t.accessor] })
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
export {
|
|
87
|
-
W as G,
|
|
88
|
-
n as s
|
|
89
|
-
};
|