@splunk/react-ui 4.42.0 → 4.43.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 +25 -0
- package/Code.js +611 -426
- package/ComboBox.js +25 -32
- package/Date.js +21 -26
- package/Dropdown.js +1 -1
- package/JSONTree.js +30 -24
- package/MIGRATION.mdx +48 -53
- package/Menu.js +12 -8
- package/Multiselect.js +1 -1
- package/Number.js +418 -392
- package/Paginator.js +269 -251
- package/Popover.js +412 -345
- package/RadioList.js +44 -43
- package/ResultsMenu.d.ts +2 -0
- package/Search.js +56 -65
- package/Select.js +1 -1
- package/TabBar.js +4 -0
- package/Table.js +146 -146
- package/TransitionOpen.js +16 -14
- package/Tree.js +20 -14
- package/package.json +6 -6
- package/types/src/Button/Button.d.ts +1 -0
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/ComboBox/ComboBox.d.ts +6 -3
- package/types/src/Date/Date.d.ts +0 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -0
- package/types/src/Multiselect/Multiselect.d.ts +2 -0
- package/types/src/Number/Number.d.ts +3 -10
- package/types/src/Number/utils.d.ts +29 -0
- package/types/src/Paginator/Paginator.d.ts +15 -2
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -0
- package/types/src/Popover/Popover.d.ts +17 -8
- package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
- package/types/src/Popover/PopoverProvider.d.ts +23 -0
- package/types/src/Popover/index.d.ts +2 -1
- package/types/src/RadioList/RadioList.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +1 -11
- package/types/src/Select/docs/examples/Basic.d.ts +1 -9
- package/types/src/Select/docs/examples/Children.d.ts +1 -9
- package/types/src/Select/docs/examples/Descriptions.d.ts +1 -9
- package/types/src/Select/docs/examples/Fetching.d.ts +1 -22
- package/types/src/Select/docs/examples/Filter.d.ts +1 -9
- package/types/src/Select/docs/examples/Headings.d.ts +1 -9
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -24
- package/types/src/Select/docs/examples/Prefix.d.ts +1 -9
- package/types/src/Select/docs/examples/Truncate.d.ts +1 -9
- package/types/src/Table/docs/examples/Click.d.ts +2 -16
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -16
- package/types/src/Table/docs/examples/Complex.d.ts +2 -50
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -13
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +1 -17
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -21
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -21
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -23
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -23
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -39
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -18
- package/types/src/Table/docs/examples/SortableColumns.d.ts +1 -11
- package/useResizeObserver.js +122 -90
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Popover/PopoverContext.d.ts +0 -6
package/Table.js
CHANGED
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
const C = require("react-resize-detector");
|
|
108
108
|
var S = e.n(C);
|
|
109
109
|
// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
110
|
-
const
|
|
111
|
-
var
|
|
110
|
+
const k = require("@splunk/react-ui/EventListener");
|
|
111
|
+
var O = e.n(k);
|
|
112
112
|
// CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
|
|
113
113
|
const E = require("@splunk/ui-utils/keyboard");
|
|
114
114
|
// CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
}
|
|
507
507
|
function Se(e, t) {
|
|
508
508
|
if (null == e) return {};
|
|
509
|
-
var n, r, o =
|
|
509
|
+
var n, r, o = ke(e, t);
|
|
510
510
|
if (Object.getOwnPropertySymbols) {
|
|
511
511
|
var i = Object.getOwnPropertySymbols(e);
|
|
512
512
|
for (r = 0; r < i.length; r++) {
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
}
|
|
516
516
|
return o;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function ke(e, t) {
|
|
519
519
|
if (null == e) return {};
|
|
520
520
|
var n = {};
|
|
521
521
|
for (var r in e) {
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
}
|
|
527
527
|
return n;
|
|
528
528
|
}
|
|
529
|
-
var
|
|
529
|
+
var Oe = {
|
|
530
530
|
children: i().node.isRequired,
|
|
531
531
|
side: i().oneOf([ "top", "bottom" ])
|
|
532
532
|
};
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
side: o
|
|
543
543
|
}, i), t);
|
|
544
544
|
}
|
|
545
|
-
Ee.propTypes =
|
|
545
|
+
Ee.propTypes = Oe;
|
|
546
546
|
Ee.splunkUiType = "Table.Caption";
|
|
547
547
|
/* harmony default export */ const Re = Ee;
|
|
548
548
|
// CONCATENATED MODULE: ./src/Table/CellStyles.ts
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
enterprise: M.variables.textGray,
|
|
896
896
|
prisma: M.variables.contentColorDefault
|
|
897
897
|
}));
|
|
898
|
-
var
|
|
898
|
+
var kt = H().span.withConfig({
|
|
899
899
|
displayName: "HeadInnerStyles__StyledLabel",
|
|
900
900
|
componentId: "sc-1sa0wng-2"
|
|
901
901
|
})([ "flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", " ", " + &{margin-left:", ";}" ], (0,
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
}), /* sc-sel */ Ct, (0, M.pick)({
|
|
917
917
|
enterprise: xt
|
|
918
918
|
}));
|
|
919
|
-
var
|
|
919
|
+
var Ot = (0, N.css)([ "box-shadow:", ";outline:none;", ";" ], M.variables.focusShadowInset, (0,
|
|
920
920
|
M.pick)({
|
|
921
921
|
enterprise: {
|
|
922
922
|
light: (0, N.css)([ "color:", ";" ], M.variables.accentColorD10),
|
|
@@ -977,8 +977,8 @@
|
|
|
977
977
|
enterprise: (0, N.css)([ "border:1px solid ", ";" ], M.variables.borderColor)
|
|
978
978
|
}), (function(e) {
|
|
979
979
|
var t = e.$clickable, n = e.$focusWithin;
|
|
980
|
-
return t && (0, N.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;color:", ";background-color:", ";}&:active{background-color:", ";}" ],
|
|
981
|
-
N.css)([ "&:focus-within{", "}" ],
|
|
980
|
+
return t && (0, N.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;color:", ";background-color:", ";}&:active{background-color:", ";}" ], Ot, n && (0,
|
|
981
|
+
N.css)([ "&:focus-within{", "}" ], Ot), (0, M.pick)({
|
|
982
982
|
enterprise: {
|
|
983
983
|
light: M.variables.accentColorD10,
|
|
984
984
|
dark: M.variables.linkColorHover
|
|
@@ -1350,7 +1350,7 @@
|
|
|
1350
1350
|
desc: at()
|
|
1351
1351
|
});
|
|
1352
1352
|
function an(e) {
|
|
1353
|
-
var t = e.index, o = e.clickable, i = e.columnId, a = e.elementRef, l = e.focusWithin, c = e.id, s = e.width, u = e.onDragEnd, d = e.onAutosizeColumn, f = e.align, p = f === void 0 ? "left" : f, v = e.label, b = e.hasActionsHead, y = b === void 0 ? false : b, h = e.isMenu, m = h === void 0 ? false : h, w = e.onDragStart, x = e.onRequestResize, C = e.resizable, S = C === void 0 ? true : C,
|
|
1353
|
+
var t = e.index, o = e.clickable, i = e.columnId, a = e.elementRef, l = e.focusWithin, c = e.id, s = e.width, u = e.onDragEnd, d = e.onAutosizeColumn, f = e.align, p = f === void 0 ? "left" : f, v = e.label, b = e.hasActionsHead, y = b === void 0 ? false : b, h = e.isMenu, m = h === void 0 ? false : h, w = e.onDragStart, x = e.onRequestResize, C = e.resizable, S = C === void 0 ? true : C, k = e.sortDir, R = k === void 0 ? undefined : k, j = e.truncate, I = j === void 0 ? true : j, D = e.variant, _ = Qt(e, [ "index", "clickable", "columnId", "elementRef", "focusWithin", "id", "width", "onDragEnd", "onAutosizeColumn", "align", "label", "hasActionsHead", "isMenu", "onDragStart", "onRequestResize", "resizable", "sortDir", "truncate", "variant" ]);
|
|
1354
1354
|
if (false) {}
|
|
1355
1355
|
var q = (0, M.useSplunkTheme)(), A = q.isEnterprise;
|
|
1356
1356
|
var z = (0, P._)("Click to open menu");
|
|
@@ -1360,13 +1360,13 @@
|
|
|
1360
1360
|
var J = (0, n.useState)(0), Q = Vt(J, 2), Z = Q[0], ee = Q[1];
|
|
1361
1361
|
var te = (0, n.useState)(0), ne = Vt(te, 2), re = ne[0], oe = ne[1];
|
|
1362
1362
|
var ie = (0, n.useRef)(null);
|
|
1363
|
+
var ae = (0, n.useRef)(s === "auto" ? undefined : s);
|
|
1363
1364
|
// Cleanup dragend, and unmount during drag
|
|
1364
1365
|
(0, n.useEffect)((function() {
|
|
1365
1366
|
return function() {
|
|
1366
1367
|
return L === null || L === void 0 ? void 0 : L.remove();
|
|
1367
1368
|
};
|
|
1368
1369
|
}), [ L ]);
|
|
1369
|
-
var ae;
|
|
1370
1370
|
var le;
|
|
1371
1371
|
var ce;
|
|
1372
1372
|
if (R !== undefined && tn.has(R)) {
|
|
@@ -1378,71 +1378,71 @@
|
|
|
1378
1378
|
var ue;
|
|
1379
1379
|
var de = ie.current;
|
|
1380
1380
|
var fe = de === null || de === void 0 ? void 0 : (ue = de.parentElement) === null || ue === void 0 ? void 0 : ue.getBoundingClientRect();
|
|
1381
|
-
ae = fe === null || fe === void 0 ? void 0 : fe.width;
|
|
1381
|
+
ae.current = fe === null || fe === void 0 ? void 0 : fe.width;
|
|
1382
1382
|
} else {
|
|
1383
|
-
ae = s;
|
|
1383
|
+
ae.current = s;
|
|
1384
1384
|
}
|
|
1385
1385
|
var pe = (0, n.useCallback)((function(e) {
|
|
1386
1386
|
ie.current = e;
|
|
1387
1387
|
B(a, e);
|
|
1388
1388
|
}), [ a, ie ]);
|
|
1389
|
-
var ve =
|
|
1390
|
-
var
|
|
1389
|
+
var ve = (0, n.useCallback)((function(e) {
|
|
1390
|
+
var n = (0, E.keycode)(e.nativeEvent);
|
|
1391
1391
|
if (x === undefined || t === undefined) {
|
|
1392
1392
|
return;
|
|
1393
1393
|
}
|
|
1394
1394
|
if (s === "auto") {
|
|
1395
|
-
var
|
|
1396
|
-
var
|
|
1397
|
-
var
|
|
1398
|
-
ae =
|
|
1395
|
+
var r;
|
|
1396
|
+
var o = ie.current;
|
|
1397
|
+
var a = o === null || o === void 0 ? void 0 : (r = o.parentElement) === null || r === void 0 ? void 0 : r.getBoundingClientRect();
|
|
1398
|
+
ae.current = a === null || a === void 0 ? void 0 : a.width;
|
|
1399
1399
|
} else {
|
|
1400
|
-
ae = s;
|
|
1400
|
+
ae.current = s;
|
|
1401
1401
|
}
|
|
1402
|
-
if (ae === undefined) {
|
|
1402
|
+
if (ae.current === undefined) {
|
|
1403
1403
|
return;
|
|
1404
1404
|
}
|
|
1405
|
-
if (
|
|
1406
|
-
|
|
1405
|
+
if (n === "left") {
|
|
1406
|
+
e.preventDefault();
|
|
1407
1407
|
// prevent text selection
|
|
1408
|
-
var
|
|
1409
|
-
x(
|
|
1408
|
+
var l = Math.max(ae.current - 10, 20);
|
|
1409
|
+
x(e, {
|
|
1410
1410
|
index: t,
|
|
1411
1411
|
columnId: i,
|
|
1412
1412
|
id: c,
|
|
1413
|
-
width:
|
|
1413
|
+
width: l
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
|
-
if (
|
|
1417
|
-
|
|
1416
|
+
if (n === "right") {
|
|
1417
|
+
e.preventDefault();
|
|
1418
1418
|
// prevent text selection
|
|
1419
|
-
var
|
|
1420
|
-
x(
|
|
1419
|
+
var u = ae.current + 10;
|
|
1420
|
+
x(e, {
|
|
1421
1421
|
index: t,
|
|
1422
1422
|
columnId: i,
|
|
1423
1423
|
id: c,
|
|
1424
|
-
width:
|
|
1424
|
+
width: u
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
|
-
};
|
|
1428
|
-
var be = function
|
|
1427
|
+
}), [ i, c, t, x, s ]);
|
|
1428
|
+
var be = (0, n.useCallback)((function(e) {
|
|
1429
1429
|
if (s === "auto") {
|
|
1430
|
-
var
|
|
1431
|
-
var
|
|
1432
|
-
var
|
|
1433
|
-
ae =
|
|
1430
|
+
var t;
|
|
1431
|
+
var n = ie.current;
|
|
1432
|
+
var r = n === null || n === void 0 ? void 0 : (t = n.parentElement) === null || t === void 0 ? void 0 : t.getBoundingClientRect();
|
|
1433
|
+
ae.current = r === null || r === void 0 ? void 0 : r.width;
|
|
1434
1434
|
} else {
|
|
1435
|
-
ae = s;
|
|
1435
|
+
ae.current = s;
|
|
1436
1436
|
}
|
|
1437
|
-
if (ae === undefined) {
|
|
1437
|
+
if (ae.current === undefined) {
|
|
1438
1438
|
return;
|
|
1439
1439
|
}
|
|
1440
|
-
|
|
1440
|
+
e.preventDefault();
|
|
1441
1441
|
// prevent text selection
|
|
1442
|
-
ee(
|
|
1443
|
-
oe(ae || 0);
|
|
1442
|
+
ee(e.clientX);
|
|
1443
|
+
oe(ae.current || 0);
|
|
1444
1444
|
V(true);
|
|
1445
|
-
};
|
|
1445
|
+
}), [ s ]);
|
|
1446
1446
|
var ye = function e(n) {
|
|
1447
1447
|
var r = Z - n.clientX;
|
|
1448
1448
|
var o = Math.max(re - r, 16);
|
|
@@ -1458,45 +1458,45 @@
|
|
|
1458
1458
|
var he = function e() {
|
|
1459
1459
|
V(false);
|
|
1460
1460
|
};
|
|
1461
|
-
var me =
|
|
1462
|
-
var
|
|
1463
|
-
var
|
|
1464
|
-
var
|
|
1465
|
-
if (
|
|
1466
|
-
var
|
|
1467
|
-
var
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1461
|
+
var me = (0, n.useCallback)((function(e) {
|
|
1462
|
+
var n;
|
|
1463
|
+
var r = Ht();
|
|
1464
|
+
var o = ie.current;
|
|
1465
|
+
if (e.dataTransfer.setDragImage && (o === null || o === void 0 ? void 0 : o.parentElement)) {
|
|
1466
|
+
var a = o.parentElement.getBoundingClientRect();
|
|
1467
|
+
var l = o.cloneNode(true);
|
|
1468
|
+
l.style.width = "".concat(a.width, "px");
|
|
1469
|
+
l.style.height = "".concat(a.height, "px");
|
|
1470
|
+
l.setAttribute("data-helper", "true");
|
|
1471
|
+
r.body.appendChild(l);
|
|
1472
|
+
e.dataTransfer.setDragImage(l, e.clientX - a.left, e.clientY - a.top);
|
|
1473
1473
|
Y(true);
|
|
1474
|
-
$(
|
|
1474
|
+
$(l);
|
|
1475
1475
|
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1476
|
+
e.dataTransfer.effectAllowed = "move";
|
|
1477
|
+
e.dataTransfer.setData("text", (n = o === null || o === void 0 ? void 0 : o.textContent) !== null && n !== void 0 ? n : "");
|
|
1478
1478
|
// Required for Firefox
|
|
1479
1479
|
w === null || w === void 0 ? void 0 : w(t, i);
|
|
1480
|
-
};
|
|
1481
|
-
var ge =
|
|
1480
|
+
}), [ i, t, w ]);
|
|
1481
|
+
var ge = (0, n.useCallback)((function() {
|
|
1482
1482
|
$(undefined);
|
|
1483
1483
|
Y(false);
|
|
1484
1484
|
u === null || u === void 0 ? void 0 : u();
|
|
1485
|
-
};
|
|
1486
|
-
var we =
|
|
1485
|
+
}), [ u ]);
|
|
1486
|
+
var we = (0, n.useCallback)((function(e) {
|
|
1487
1487
|
if (t !== undefined) {
|
|
1488
|
-
d === null || d === void 0 ? void 0 : d(
|
|
1488
|
+
d === null || d === void 0 ? void 0 : d(e, {
|
|
1489
1489
|
index: t,
|
|
1490
1490
|
columnId: i
|
|
1491
1491
|
});
|
|
1492
1492
|
}
|
|
1493
|
-
};
|
|
1493
|
+
}), [ i, t, d ]);
|
|
1494
1494
|
var xe = !!w;
|
|
1495
1495
|
var Ce = Lt();
|
|
1496
|
-
var Se = ae ? (0, T.sprintf)((0, P._)("%(width)d pixels"), {
|
|
1497
|
-
width: ae
|
|
1496
|
+
var Se = ae.current ? (0, T.sprintf)((0, P._)("%(width)d pixels"), {
|
|
1497
|
+
width: ae.current
|
|
1498
1498
|
}) : undefined;
|
|
1499
|
-
var
|
|
1499
|
+
var ke = i ? {
|
|
1500
1500
|
ariaControls: i
|
|
1501
1501
|
} : {};
|
|
1502
1502
|
|
|
@@ -1513,11 +1513,11 @@
|
|
|
1513
1513
|
$clickable: o,
|
|
1514
1514
|
$focusWithin: l,
|
|
1515
1515
|
$variant: D
|
|
1516
|
-
}, g()(_, [].concat($t(Object.keys(an.propTypes)), [ "id" ]))), F && r().createElement(r().Fragment, null, r().createElement(
|
|
1516
|
+
}, g()(_, [].concat($t(Object.keys(an.propTypes)), [ "id" ]))), F && r().createElement(r().Fragment, null, r().createElement(O(), {
|
|
1517
1517
|
target: Ce,
|
|
1518
1518
|
eventType: "mouseup",
|
|
1519
1519
|
listener: he
|
|
1520
|
-
}), r().createElement(
|
|
1520
|
+
}), r().createElement(O(), {
|
|
1521
1521
|
target: Ce,
|
|
1522
1522
|
eventType: "mousemove",
|
|
1523
1523
|
listener: ye
|
|
@@ -1525,7 +1525,7 @@
|
|
|
1525
1525
|
"aria-label": (0, T.sprintf)((0, P._)("Resize %(label)s"), {
|
|
1526
1526
|
label: v
|
|
1527
1527
|
})
|
|
1528
|
-
},
|
|
1528
|
+
}, ke, {
|
|
1529
1529
|
"aria-valuetext": Se,
|
|
1530
1530
|
"data-test": "resize",
|
|
1531
1531
|
onMouseDown: be,
|
|
@@ -1535,7 +1535,7 @@
|
|
|
1535
1535
|
tabIndex: 0
|
|
1536
1536
|
})), xe && r().createElement(Ct, null, r().createElement(zt, {
|
|
1537
1537
|
screenReaderContent: (0, P._)("Press left or right arrow key to reorder the columns.")
|
|
1538
|
-
})), r().createElement(
|
|
1538
|
+
})), r().createElement(kt, {
|
|
1539
1539
|
$align: p,
|
|
1540
1540
|
$truncate: I,
|
|
1541
1541
|
$fill: m
|
|
@@ -1655,15 +1655,15 @@
|
|
|
1655
1655
|
var o = Rn(this).constructor;
|
|
1656
1656
|
n = Reflect.construct(r, arguments, o);
|
|
1657
1657
|
} else n = r.apply(this, arguments);
|
|
1658
|
-
return
|
|
1658
|
+
return kn(this, n);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function kn(e, t) {
|
|
1662
1662
|
if (t && ("object" == un(t) || "function" == typeof t)) return t;
|
|
1663
1663
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1664
|
-
return
|
|
1664
|
+
return On(e);
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function On(e) {
|
|
1667
1667
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1668
1668
|
return e;
|
|
1669
1669
|
}
|
|
@@ -1763,7 +1763,7 @@
|
|
|
1763
1763
|
var r;
|
|
1764
1764
|
mn(this, n);
|
|
1765
1765
|
r = t.call(this, e);
|
|
1766
|
-
jn(
|
|
1766
|
+
jn(On(r), "handleClick", (function(e) {
|
|
1767
1767
|
var t, n;
|
|
1768
1768
|
// ignore clicks on the resize handle
|
|
1769
1769
|
if (e.target.getAttribute("data-test") !== "resize" && r.props.onSort && r.props.index !== undefined) {
|
|
@@ -1778,7 +1778,7 @@
|
|
|
1778
1778
|
}
|
|
1779
1779
|
(t = (n = r.props).onClick) === null || t === void 0 ? void 0 : t.call(n);
|
|
1780
1780
|
}));
|
|
1781
|
-
jn(
|
|
1781
|
+
jn(On(r), "handleKeyDown", (function(e) {
|
|
1782
1782
|
var t = r.props, n = t.columnId, o = t.index, i = t.onKeyDown, a = t.onRequestMoveColumn;
|
|
1783
1783
|
if (e.target.getAttribute("data-test") !== "resize") {
|
|
1784
1784
|
if ((0, E.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
|
|
@@ -1802,19 +1802,19 @@
|
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
}));
|
|
1805
|
-
jn(
|
|
1805
|
+
jn(On(r), "handleDragStart", (function(e, t) {
|
|
1806
1806
|
var n, o;
|
|
1807
1807
|
r.setState({
|
|
1808
1808
|
isDragging: true
|
|
1809
1809
|
});
|
|
1810
1810
|
(n = (o = r.props).onDragStart) === null || n === void 0 ? void 0 : n.call(o, e, t);
|
|
1811
1811
|
}));
|
|
1812
|
-
jn(
|
|
1812
|
+
jn(On(r), "handleDragEnd", (function() {
|
|
1813
1813
|
r.setState({
|
|
1814
1814
|
isDragging: false
|
|
1815
1815
|
});
|
|
1816
1816
|
}));
|
|
1817
|
-
jn(
|
|
1817
|
+
jn(On(r), "sortDirAriaMapping", {
|
|
1818
1818
|
asc: "ascending",
|
|
1819
1819
|
desc: "descending",
|
|
1820
1820
|
none: "none"
|
|
@@ -1827,12 +1827,12 @@
|
|
|
1827
1827
|
wn(n, [ {
|
|
1828
1828
|
key: "render",
|
|
1829
1829
|
value: function e() {
|
|
1830
|
-
var t = this.props, o = t.align, i = t.appearClickable, a = t.children, l = t.columnId, c = t.elementRef, s = t.hasActionsHead, u = t.id, d = t.index, f = t.onAutosizeColumn, p = t.onClick, v = t.onDragStart, b = t.onRequestResize, y = t.onSort, h = t.resizable, m = t.showGuideline, w = t.sortDir, x = t.style, C = t.variant, S = t.truncate,
|
|
1830
|
+
var t = this.props, o = t.align, i = t.appearClickable, a = t.children, l = t.columnId, c = t.elementRef, s = t.hasActionsHead, u = t.id, d = t.index, f = t.onAutosizeColumn, p = t.onClick, v = t.onDragStart, b = t.onRequestResize, y = t.onSort, h = t.resizable, m = t.showGuideline, w = t.sortDir, x = t.style, C = t.variant, S = t.truncate, k = t.visible, O = t.width, E = t.zIndex;
|
|
1831
1831
|
var R = !!v;
|
|
1832
1832
|
var j = !!y && !!w;
|
|
1833
1833
|
var I = p !== undefined;
|
|
1834
1834
|
var P = ot()(x, {
|
|
1835
|
-
width:
|
|
1835
|
+
width: O
|
|
1836
1836
|
});
|
|
1837
1837
|
var T = s ? false : S;
|
|
1838
1838
|
var D = this.context.headType;
|
|
@@ -1844,7 +1844,7 @@
|
|
|
1844
1844
|
"data-test": "head-cell",
|
|
1845
1845
|
"data-test-label": nt()(a) ? a : undefined,
|
|
1846
1846
|
"data-test-sort-dir": y && w,
|
|
1847
|
-
id:
|
|
1847
|
+
id: k ? u : undefined,
|
|
1848
1848
|
onClick: y || I ? this.handleClick : undefined,
|
|
1849
1849
|
$dragging: this.state.isDragging || undefined,
|
|
1850
1850
|
$variant: C,
|
|
@@ -1859,14 +1859,14 @@
|
|
|
1859
1859
|
hasActionsHead: s,
|
|
1860
1860
|
id: u,
|
|
1861
1861
|
index: d,
|
|
1862
|
-
resizable:
|
|
1862
|
+
resizable: k && h,
|
|
1863
1863
|
onDragStart: v ? this.handleDragStart : undefined,
|
|
1864
1864
|
onDragEnd: v ? this.handleDragEnd : undefined,
|
|
1865
1865
|
onAutosizeColumn: f,
|
|
1866
1866
|
onRequestResize: b,
|
|
1867
1867
|
sortDir: y && w,
|
|
1868
1868
|
truncate: T,
|
|
1869
|
-
width:
|
|
1869
|
+
width: O,
|
|
1870
1870
|
clickable: i || R || j || I,
|
|
1871
1871
|
focusWithin: i,
|
|
1872
1872
|
variant: C
|
|
@@ -2191,7 +2191,7 @@
|
|
|
2191
2191
|
displayName: "RowStyles__StyledToggleCell",
|
|
2192
2192
|
componentId: "f0igqq-3"
|
|
2193
2193
|
})([ "height:1px;" ]);
|
|
2194
|
-
var
|
|
2194
|
+
var kr = H()(Ye).withConfig({
|
|
2195
2195
|
displayName: "RowStyles__StyledCellExpansionDisabled",
|
|
2196
2196
|
componentId: "f0igqq-4"
|
|
2197
2197
|
})([ "width:", ";" ], (0, M.pick)({
|
|
@@ -2199,8 +2199,8 @@
|
|
|
2199
2199
|
prisma: "40px"
|
|
2200
2200
|
}));
|
|
2201
2201
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
2202
|
-
const
|
|
2203
|
-
var Er = e.n(
|
|
2202
|
+
const Or = require("@splunk/react-ui/Clickable");
|
|
2203
|
+
var Er = e.n(Or);
|
|
2204
2204
|
// CONCATENATED MODULE: external "@splunk/react-ui/Switch"
|
|
2205
2205
|
const Rr = require("@splunk/react-ui/Switch");
|
|
2206
2206
|
var jr = e.n(Rr);
|
|
@@ -2510,7 +2510,7 @@
|
|
|
2510
2510
|
}));
|
|
2511
2511
|
function ao(e) {
|
|
2512
2512
|
var t;
|
|
2513
|
-
var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, c = e.children, s = e.data, u = e.dataId, d = e.disabled, f = e.draggable, p = e.elementRef, v = e.expandable, b = e.expanded, y = e.expansionRowIds, h = e.expansionRow, m = e.index, w = e.movableColumns, x = e.onClick, C = e.onExpansion, S = e.onKeyDown,
|
|
2513
|
+
var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, c = e.children, s = e.data, u = e.dataId, d = e.disabled, f = e.draggable, p = e.elementRef, v = e.expandable, b = e.expanded, y = e.expansionRowIds, h = e.expansionRow, m = e.index, w = e.movableColumns, x = e.onClick, C = e.onExpansion, S = e.onKeyDown, k = e.onRequestToggle, O = e.primaryColumnIndex, R = e.rowScreenReaderText, j = e.selected, I = e.stripe, D = e.style, _ = Zr(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
|
|
2514
2514
|
var q = (0, n.useMemo)((function() {
|
|
2515
2515
|
return {
|
|
2516
2516
|
id: f ? u : (0, z.createGUID)(),
|
|
@@ -2550,7 +2550,7 @@
|
|
|
2550
2550
|
var G = function e(t) {
|
|
2551
2551
|
if (!d) {
|
|
2552
2552
|
t.preventDefault();
|
|
2553
|
-
|
|
2553
|
+
k === null || k === void 0 ? void 0 : k(t, s);
|
|
2554
2554
|
}
|
|
2555
2555
|
};
|
|
2556
2556
|
var X = function e(t) {
|
|
@@ -2615,9 +2615,9 @@
|
|
|
2615
2615
|
var ee;
|
|
2616
2616
|
if (R) {
|
|
2617
2617
|
ee = R;
|
|
2618
|
-
} else if ((t = Z[
|
|
2618
|
+
} else if ((t = Z[O]) === null || t === void 0 ? void 0 : t.props.children) {
|
|
2619
2619
|
var te;
|
|
2620
|
-
ee = "".concat((te = Z[
|
|
2620
|
+
ee = "".concat((te = Z[O]) === null || te === void 0 ? void 0 : te.props.children);
|
|
2621
2621
|
} else {
|
|
2622
2622
|
var ne;
|
|
2623
2623
|
ee = "".concat((ne = Z[0]) === null || ne === void 0 ? void 0 : ne.props.children);
|
|
@@ -2642,7 +2642,7 @@
|
|
|
2642
2642
|
|
|
2643
2643
|
return r().createElement(oe, to({
|
|
2644
2644
|
"data-test": "row",
|
|
2645
|
-
"data-test-selected":
|
|
2645
|
+
"data-test-selected": k ? j : undefined,
|
|
2646
2646
|
$clickable: !!x,
|
|
2647
2647
|
"data-has-movable-columns": w ? "true" : undefined,
|
|
2648
2648
|
disabled: !!d,
|
|
@@ -2652,7 +2652,7 @@
|
|
|
2652
2652
|
}, g()(_, "data"), {
|
|
2653
2653
|
onClick: x ? V : undefined,
|
|
2654
2654
|
onKeyDown: U,
|
|
2655
|
-
$rowSelected: !!(
|
|
2655
|
+
$rowSelected: !!(k && j),
|
|
2656
2656
|
style: K
|
|
2657
2657
|
}), f && m != null && r().createElement(gr, to({
|
|
2658
2658
|
"aria-label": (0, T.sprintf)((0, P._)("Reorder %(rowLabelValue)s"), {
|
|
@@ -2660,7 +2660,7 @@
|
|
|
2660
2660
|
}),
|
|
2661
2661
|
setActivatorNodeRef: W,
|
|
2662
2662
|
listeners: H
|
|
2663
|
-
}, N)),
|
|
2663
|
+
}, N)), k && r().createElement(Sr, {
|
|
2664
2664
|
align: "center",
|
|
2665
2665
|
appearance: x ? "rowLink" : "data",
|
|
2666
2666
|
disabled: d,
|
|
@@ -2690,7 +2690,7 @@
|
|
|
2690
2690
|
title: b ? ce : se,
|
|
2691
2691
|
"aria-controls": b ? y : undefined,
|
|
2692
2692
|
"aria-expanded": b
|
|
2693
|
-
})), v && !h && r().createElement(
|
|
2693
|
+
})), v && !h && r().createElement(kr, {
|
|
2694
2694
|
variant: "expand",
|
|
2695
2695
|
"data-movable-column": ae
|
|
2696
2696
|
}), Z, o && !i && !a && r().createElement(Ye, {
|
|
@@ -2811,11 +2811,11 @@
|
|
|
2811
2811
|
}, wo(e, t);
|
|
2812
2812
|
}
|
|
2813
2813
|
function xo(e) {
|
|
2814
|
-
var t =
|
|
2814
|
+
var t = ko();
|
|
2815
2815
|
return function() {
|
|
2816
|
-
var n, r =
|
|
2816
|
+
var n, r = Oo(e);
|
|
2817
2817
|
if (t) {
|
|
2818
|
-
var o =
|
|
2818
|
+
var o = Oo(this).constructor;
|
|
2819
2819
|
n = Reflect.construct(r, arguments, o);
|
|
2820
2820
|
} else n = r.apply(this, arguments);
|
|
2821
2821
|
return Co(this, n);
|
|
@@ -2830,18 +2830,18 @@
|
|
|
2830
2830
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2831
2831
|
return e;
|
|
2832
2832
|
}
|
|
2833
|
-
function
|
|
2833
|
+
function ko() {
|
|
2834
2834
|
try {
|
|
2835
2835
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
2836
2836
|
} catch (e) {}
|
|
2837
|
-
return (
|
|
2837
|
+
return (ko = function t() {
|
|
2838
2838
|
return !!e;
|
|
2839
2839
|
})();
|
|
2840
2840
|
}
|
|
2841
|
-
function
|
|
2842
|
-
return
|
|
2841
|
+
function Oo(e) {
|
|
2842
|
+
return Oo = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2843
2843
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2844
|
-
},
|
|
2844
|
+
}, Oo(e);
|
|
2845
2845
|
}
|
|
2846
2846
|
function Eo(e, t, n) {
|
|
2847
2847
|
return (t = Ro(t)) in e ? Object.defineProperty(e, t, {
|
|
@@ -3012,12 +3012,12 @@
|
|
|
3012
3012
|
} else {
|
|
3013
3013
|
// make the cell as big as we can without letting perceivedWidthOfLastCell go below cellMinWidth
|
|
3014
3014
|
var S = C - c;
|
|
3015
|
-
var
|
|
3015
|
+
var k = f + S;
|
|
3016
3016
|
s === null || s === void 0 ? void 0 : s(e, {
|
|
3017
3017
|
columnId: n,
|
|
3018
3018
|
id: o,
|
|
3019
3019
|
index: i,
|
|
3020
|
-
width:
|
|
3020
|
+
width: k
|
|
3021
3021
|
});
|
|
3022
3022
|
}
|
|
3023
3023
|
} else {
|
|
@@ -3142,7 +3142,7 @@
|
|
|
3142
3142
|
var x = n.Children.toArray(c).filter(n.isValidElement);
|
|
3143
3143
|
var C = x.length + (a.length || l ? 1 : 0);
|
|
3144
3144
|
var S = [];
|
|
3145
|
-
var
|
|
3145
|
+
var k = x.map((function(e, r, o) {
|
|
3146
3146
|
var i = "none";
|
|
3147
3147
|
if (w === o.length && r + 1 === o.length) {
|
|
3148
3148
|
i = "after";
|
|
@@ -3163,12 +3163,12 @@
|
|
|
3163
3163
|
});
|
|
3164
3164
|
}));
|
|
3165
3165
|
this.providedWidths = S;
|
|
3166
|
-
var
|
|
3166
|
+
var O = {
|
|
3167
3167
|
all: true,
|
|
3168
3168
|
none: false,
|
|
3169
3169
|
some: "some"
|
|
3170
3170
|
};
|
|
3171
|
-
var E = b === undefined ? undefined :
|
|
3171
|
+
var E = b === undefined ? undefined : O[b];
|
|
3172
3172
|
var R = l || 48;
|
|
3173
3173
|
var j = h === "fixed" ? "fixed-head" : "head";
|
|
3174
3174
|
var I = (0, P._)("No rows selected");
|
|
@@ -3207,7 +3207,7 @@
|
|
|
3207
3207
|
resizable: false,
|
|
3208
3208
|
variant: "info",
|
|
3209
3209
|
zIndex: C + _o
|
|
3210
|
-
}, r().createElement(Mn, null)),
|
|
3210
|
+
}, r().createElement(Mn, null)), k, a.length > 0 && r().createElement(qn, {
|
|
3211
3211
|
hasActionsHead: true,
|
|
3212
3212
|
key: "actions_head_cell",
|
|
3213
3213
|
"data-test": "actions-head-cell",
|
|
@@ -3626,7 +3626,7 @@
|
|
|
3626
3626
|
key: "render",
|
|
3627
3627
|
value: function e() {
|
|
3628
3628
|
var t, o = this;
|
|
3629
|
-
var i = this.props, a = i.align, l = i.canCoverHead, c = i.children, s = i.closeReasons, u = i.columnId, d = i.defaultPlacement, f = i.id, p = i.index, v = i.label, b = i.onAutosizeColumn, y = i.onDragStart, h = i.onRequestResize, m = i.repositionMode, w = i.resizable, x = i.retainFocus, C = i.showGuideline, S = i.style,
|
|
3629
|
+
var i = this.props, a = i.align, l = i.canCoverHead, c = i.children, s = i.closeReasons, u = i.columnId, d = i.defaultPlacement, f = i.id, p = i.index, v = i.label, b = i.onAutosizeColumn, y = i.onDragStart, h = i.onRequestResize, m = i.repositionMode, w = i.resizable, x = i.retainFocus, C = i.showGuideline, S = i.style, k = i.takeFocus, O = i.truncate, E = i.variant, R = i.visible, j = i.width, I = i.zIndex;
|
|
3630
3630
|
var P = this.state, T = P.el, D = P.clientX;
|
|
3631
3631
|
var q = f || this.cellId;
|
|
3632
3632
|
var A = this.context.headType;
|
|
@@ -3658,7 +3658,7 @@
|
|
|
3658
3658
|
onDragEnd: y ? this.handleDragEnd : undefined,
|
|
3659
3659
|
onAutosizeColumn: b,
|
|
3660
3660
|
onRequestResize: h,
|
|
3661
|
-
truncate:
|
|
3661
|
+
truncate: O,
|
|
3662
3662
|
width: j,
|
|
3663
3663
|
clickable: true,
|
|
3664
3664
|
"aria-haspopup": true,
|
|
@@ -3678,7 +3678,7 @@
|
|
|
3678
3678
|
repositionMode: m,
|
|
3679
3679
|
id: this.popoverId,
|
|
3680
3680
|
"aria-labelledby": f || this.cellId,
|
|
3681
|
-
takeFocus:
|
|
3681
|
+
takeFocus: k,
|
|
3682
3682
|
pointTo: D !== undefined && No()(D) ? {
|
|
3683
3683
|
x: D - ((t = T === null || T === void 0 ? void 0 : T.getBoundingClientRect().left) !== null && t !== void 0 ? t : 0)
|
|
3684
3684
|
} : undefined
|
|
@@ -3752,25 +3752,25 @@
|
|
|
3752
3752
|
}
|
|
3753
3753
|
function xi(e, t) {
|
|
3754
3754
|
if (e) {
|
|
3755
|
-
if ("string" == typeof e) return
|
|
3755
|
+
if ("string" == typeof e) return ki(e, t);
|
|
3756
3756
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3757
|
-
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3757
|
+
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ki(e, t) : void 0;
|
|
3758
3758
|
}
|
|
3759
3759
|
}
|
|
3760
3760
|
function Ci(e) {
|
|
3761
3761
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
3762
3762
|
}
|
|
3763
3763
|
function Si(e) {
|
|
3764
|
-
if (Array.isArray(e)) return
|
|
3764
|
+
if (Array.isArray(e)) return ki(e);
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function ki(e, t) {
|
|
3767
3767
|
(null == t || t > e.length) && (t = e.length);
|
|
3768
3768
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
3769
3769
|
r[n] = e[n];
|
|
3770
3770
|
}
|
|
3771
3771
|
return r;
|
|
3772
3772
|
}
|
|
3773
|
-
function
|
|
3773
|
+
function Oi(e, t) {
|
|
3774
3774
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3775
3775
|
}
|
|
3776
3776
|
function Ei(e, t) {
|
|
@@ -3813,7 +3813,7 @@
|
|
|
3813
3813
|
var Ti = function() {
|
|
3814
3814
|
function e(t) {
|
|
3815
3815
|
var n = this;
|
|
3816
|
-
|
|
3816
|
+
Oi(this, e);
|
|
3817
3817
|
ji(this, "listeners", []);
|
|
3818
3818
|
ji(this, "removeAll", (function() {
|
|
3819
3819
|
n.listeners.forEach((function(e) {
|
|
@@ -4046,7 +4046,7 @@
|
|
|
4046
4046
|
}
|
|
4047
4047
|
var Vi = function() {
|
|
4048
4048
|
function e(t) {
|
|
4049
|
-
|
|
4049
|
+
Oi(this, e);
|
|
4050
4050
|
ji(this, "autoScrollEnabled", false);
|
|
4051
4051
|
ji(this, "referenceCoordinates", void 0);
|
|
4052
4052
|
ji(this, "listeners", void 0);
|
|
@@ -4119,14 +4119,14 @@
|
|
|
4119
4119
|
for (var g = 0; g < m.length; g += 1) {
|
|
4120
4120
|
var w = m[g];
|
|
4121
4121
|
var x = t.code;
|
|
4122
|
-
var C = Hi(w), S = C.isTop,
|
|
4122
|
+
var C = Hi(w), S = C.isTop, k = C.isRight, O = C.isLeft, E = C.isBottom, R = C.maxScroll, j = C.minScroll;
|
|
4123
4123
|
var I = zi(w);
|
|
4124
4124
|
// isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
|
|
4125
4125
|
// we want to scroll only when a dragging node will be out of view,
|
|
4126
4126
|
// originally it tries to always place a dragging node in the middle of the container
|
|
4127
4127
|
var P = I.top <= b.y && I.bottom >= b.y + ((p === null || p === void 0 ? void 0 : p.height) || 0);
|
|
4128
4128
|
var T = I.left <= b.x && I.right >= b.x + ((p === null || p === void 0 ? void 0 : p.width) || 0);
|
|
4129
|
-
var D = (x === a.KeyboardCode.Right && !
|
|
4129
|
+
var D = (x === a.KeyboardCode.Right && !k || x === a.KeyboardCode.Left && !O) && !T;
|
|
4130
4130
|
var _ = (x === a.KeyboardCode.Down && !E || x === a.KeyboardCode.Up && !S) && !P;
|
|
4131
4131
|
if (D) {
|
|
4132
4132
|
var q = w.scrollLeft + y.x;
|
|
@@ -4519,7 +4519,7 @@
|
|
|
4519
4519
|
writable: !1
|
|
4520
4520
|
}), e;
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function ka(e, t) {
|
|
4523
4523
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
4524
4524
|
e.prototype = Object.create(t && t.prototype, {
|
|
4525
4525
|
constructor: {
|
|
@@ -4529,12 +4529,12 @@
|
|
|
4529
4529
|
}
|
|
4530
4530
|
}), Object.defineProperty(e, "prototype", {
|
|
4531
4531
|
writable: !1
|
|
4532
|
-
}), t &&
|
|
4532
|
+
}), t && Oa(e, t);
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4535
|
-
return
|
|
4534
|
+
function Oa(e, t) {
|
|
4535
|
+
return Oa = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4536
4536
|
return e.__proto__ = t, e;
|
|
4537
|
-
},
|
|
4537
|
+
}, Oa(e, t);
|
|
4538
4538
|
}
|
|
4539
4539
|
function Ea(e) {
|
|
4540
4540
|
var t = Ia();
|
|
@@ -4792,7 +4792,7 @@
|
|
|
4792
4792
|
(n = a) === null || n === void 0 ? void 0 : (r = n.focus) === null || r === void 0 ? void 0 : r.call(n);
|
|
4793
4793
|
}
|
|
4794
4794
|
function il(e) {
|
|
4795
|
-
var t = e.actions, o = e.actionsColumnWidth, i = e.children, c = e.dockOffset, s = e.dockScrollBar, d = e.elementRef, p = e.headType, v = e.innerStyle, b = e.onRequestMoveColumn, h = e.onRequestMoveRow, m = e.onRequestResizeColumn, w = e.onRequestToggleAllRows, C = e.onScroll,
|
|
4795
|
+
var t = e.actions, o = e.actionsColumnWidth, i = e.children, c = e.dockOffset, s = e.dockScrollBar, d = e.elementRef, p = e.headType, v = e.innerStyle, b = e.onRequestMoveColumn, h = e.onRequestMoveRow, m = e.onRequestResizeColumn, w = e.onRequestToggleAllRows, C = e.onScroll, k = e.outerStyle, j = e.primaryColumnIndex, P = e.resizableFillLayout, D = e.rowExpansion, _ = e.rowSelection, q = e.stripeRows, A = e.tableStyle, z = Fa(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
|
|
4796
4796
|
var N = (0, n.useState)([]), H = Ma(N, 2), M = H[0], L = H[1];
|
|
4797
4797
|
var B = (0, n.useState)(), $ = Ma(B, 2), W = $[0], K = $[1];
|
|
4798
4798
|
var F = (0, n.useState)(), V = Ma(F, 2), U = V[0], G = V[1];
|
|
@@ -4810,8 +4810,8 @@
|
|
|
4810
4810
|
var xe = (0, n.useRef)();
|
|
4811
4811
|
var Ce = (0, n.useRef)(null);
|
|
4812
4812
|
var Se = (0, n.useRef)(null);
|
|
4813
|
-
var
|
|
4814
|
-
var
|
|
4813
|
+
var ke = (0, n.useRef)();
|
|
4814
|
+
var Oe = (0, n.useRef)(null);
|
|
4815
4815
|
var Ee = (0, n.useRef)(null);
|
|
4816
4816
|
var Re = I()(p);
|
|
4817
4817
|
var je = [];
|
|
@@ -4823,7 +4823,7 @@
|
|
|
4823
4823
|
}
|
|
4824
4824
|
var t = Ee.current;
|
|
4825
4825
|
var n = be.current;
|
|
4826
|
-
var r =
|
|
4826
|
+
var r = Oe.current;
|
|
4827
4827
|
if (!r || !n) {
|
|
4828
4828
|
return;
|
|
4829
4829
|
}
|
|
@@ -4856,20 +4856,20 @@
|
|
|
4856
4856
|
if ((Ja(p) || Ya(p)) && t) {
|
|
4857
4857
|
K(-t.scrollLeft);
|
|
4858
4858
|
}
|
|
4859
|
-
if (ve.current &&
|
|
4860
|
-
|
|
4859
|
+
if (ve.current && ke.current !== "dockedScrollBar" && t) {
|
|
4860
|
+
ke.current = "container";
|
|
4861
4861
|
ve.current.scrollLeft = t.scrollLeft;
|
|
4862
4862
|
} else {
|
|
4863
|
-
|
|
4863
|
+
ke.current = undefined;
|
|
4864
4864
|
}
|
|
4865
4865
|
}), [ p, C ]);
|
|
4866
4866
|
var De = function e() {
|
|
4867
4867
|
var t = Ee.current;
|
|
4868
|
-
if (
|
|
4869
|
-
|
|
4868
|
+
if (ke.current !== "container" && t && ve.current) {
|
|
4869
|
+
ke.current = "dockedScrollBar";
|
|
4870
4870
|
t.scrollLeft = ve.current.scrollLeft;
|
|
4871
4871
|
} else {
|
|
4872
|
-
|
|
4872
|
+
ke.current = undefined;
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
4875
|
var _e = x()(Pe, 0);
|
|
@@ -5064,7 +5064,7 @@
|
|
|
5064
5064
|
var Qe = function e() {
|
|
5065
5065
|
var t = Ee.current;
|
|
5066
5066
|
var n = Lt();
|
|
5067
|
-
if (!Ya(p) || !
|
|
5067
|
+
if (!Ya(p) || !Oe.current || !be.current || !t) {
|
|
5068
5068
|
return false;
|
|
5069
5069
|
}
|
|
5070
5070
|
var r = Qa(t).top;
|
|
@@ -5073,7 +5073,7 @@
|
|
|
5073
5073
|
var Ze = function e() {
|
|
5074
5074
|
var t = Lt();
|
|
5075
5075
|
var n = Ee.current;
|
|
5076
|
-
if (!s || !
|
|
5076
|
+
if (!s || !Oe.current || !n) {
|
|
5077
5077
|
return false;
|
|
5078
5078
|
}
|
|
5079
5079
|
var r = n.getBoundingClientRect();
|
|
@@ -5118,10 +5118,10 @@
|
|
|
5118
5118
|
return false;
|
|
5119
5119
|
}
|
|
5120
5120
|
var n = 0;
|
|
5121
|
-
if (ve.current && be.current &&
|
|
5121
|
+
if (ve.current && be.current && Oe.current && be.current) {
|
|
5122
5122
|
var o, i, a, l;
|
|
5123
5123
|
var c = t.innerHeight - (// eslint-disable-next-line no-unsafe-optional-chaining
|
|
5124
|
-
(o =
|
|
5124
|
+
(o = Oe.current) === null || o === void 0 ? void 0 : o.getBoundingClientRect().top) - ((i = (a = be.current) === null || a === void 0 ? void 0 : (l = a.getEl()) === null || l === void 0 ? void 0 : l.offsetHeight) !== null && i !== void 0 ? i : 0);
|
|
5125
5125
|
n = Math.min(c - ve.current.offsetHeight, 0);
|
|
5126
5126
|
}
|
|
5127
5127
|
|
|
@@ -5235,9 +5235,9 @@
|
|
|
5235
5235
|
return r().createElement(ye, qa({
|
|
5236
5236
|
"data-test": "table",
|
|
5237
5237
|
ref: d,
|
|
5238
|
-
style:
|
|
5238
|
+
style: k,
|
|
5239
5239
|
"data-test-row-selection": w ? _ : undefined
|
|
5240
|
-
}, g()(z, [].concat(Aa(Object.keys(Ua)), [ "style" ]))), r().createElement(
|
|
5240
|
+
}, g()(z, [].concat(Aa(Object.keys(Ua)), [ "style" ]))), r().createElement(O(), {
|
|
5241
5241
|
target: Lt(),
|
|
5242
5242
|
eventType: "scroll",
|
|
5243
5243
|
listener: _e,
|
|
@@ -5270,7 +5270,7 @@
|
|
|
5270
5270
|
items: Ie,
|
|
5271
5271
|
strategy: l.verticalListSortingStrategy
|
|
5272
5272
|
}, r().createElement(me, {
|
|
5273
|
-
ref:
|
|
5273
|
+
ref: Oe,
|
|
5274
5274
|
"data-test": "main-table",
|
|
5275
5275
|
style: A,
|
|
5276
5276
|
"data-fixed-column": at ? "true" : undefined,
|
|
@@ -5279,7 +5279,7 @@
|
|
|
5279
5279
|
}
|
|
5280
5280
|
il.propTypes = Ua;
|
|
5281
5281
|
var al = function(e) {
|
|
5282
|
-
|
|
5282
|
+
ka(n, e);
|
|
5283
5283
|
var t = Ea(n);
|
|
5284
5284
|
function n() {
|
|
5285
5285
|
xa(this, n);
|