@splunk/react-ui 4.44.1 → 4.45.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 +8 -0
- package/Concertina.js +357 -232
- package/File.js +404 -279
- package/Layer.js +149 -84
- package/Multiselect.js +437 -433
- package/Popover.js +150 -146
- package/Resize.js +234 -109
- package/ResultsMenu.js +49 -45
- package/ScrollContainerContext.js +13 -9
- package/Select.js +278 -274
- package/Slider.js +351 -226
- package/Table.js +788 -768
- package/TextArea.js +526 -401
- package/package.json +4 -4
package/Table.js
CHANGED
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
Body: () => /* reexport */ be,
|
|
65
65
|
Caption: () => /* reexport */ Re,
|
|
66
66
|
Cell: () => /* reexport */ Ye,
|
|
67
|
-
Head: () => /* reexport */
|
|
68
|
-
HeadCell: () => /* reexport */
|
|
69
|
-
HeadDropdownCell: () => /* reexport */
|
|
70
|
-
Row: () => /* reexport */
|
|
71
|
-
TableBase: () => /* reexport */
|
|
72
|
-
default: () => /* reexport */
|
|
67
|
+
Head: () => /* reexport */ Mo,
|
|
68
|
+
HeadCell: () => /* reexport */ Hn,
|
|
69
|
+
HeadDropdownCell: () => /* reexport */ hi,
|
|
70
|
+
Row: () => /* reexport */ po,
|
|
71
|
+
TableBase: () => /* reexport */ sl,
|
|
72
|
+
default: () => /* reexport */ dl
|
|
73
73
|
});
|
|
74
74
|
// CONCATENATED MODULE: external "react"
|
|
75
75
|
const n = require("react");
|
|
@@ -379,45 +379,61 @@
|
|
|
379
379
|
r === null || r === void 0 ? void 0 : r(t);
|
|
380
380
|
};
|
|
381
381
|
var w = n.Children.toArray(o).filter(n.isValidElement);
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
var x = (0, n.useState)(new Map), C = re(x, 2), S = C[0], k = C[1];
|
|
383
|
+
r().useEffect((function() {
|
|
384
|
+
k((function(e) {
|
|
385
|
+
var t = new Map(e);
|
|
386
|
+
var r = false;
|
|
387
|
+
w.forEach((function(o) {
|
|
388
|
+
var i, a;
|
|
389
|
+
if (!o.props.expansionRow) return;
|
|
390
|
+
var l = (i = (a = o.key) !== null && a !== void 0 ? a : o.props.dataId) !== null && i !== void 0 ? i : w.indexOf(o);
|
|
391
|
+
var c = n.Children.count(o.props.expansionRow);
|
|
392
|
+
var s = e.get(l);
|
|
393
|
+
if (!s || s.length !== c) {
|
|
394
|
+
t.set(l, Array.from({
|
|
395
|
+
length: c
|
|
396
|
+
}, (function() {
|
|
397
|
+
return (0, z.createDOMID)();
|
|
398
|
+
})));
|
|
399
|
+
r = true;
|
|
400
|
+
}
|
|
401
|
+
}));
|
|
402
|
+
return r ? t : e;
|
|
388
403
|
}));
|
|
389
404
|
}), [ w ]);
|
|
390
405
|
w.forEach((function(e, r) {
|
|
391
406
|
if (e) {
|
|
407
|
+
var o, i, d;
|
|
392
408
|
if (false) {}
|
|
393
|
-
var o = e.key;
|
|
394
|
-
var
|
|
395
|
-
var
|
|
396
|
-
var
|
|
397
|
-
var
|
|
398
|
-
g(n,
|
|
409
|
+
var p = (o = (i = e.key) !== null && i !== void 0 ? i : e.props.dataId) !== null && o !== void 0 ? o : r;
|
|
410
|
+
var v = r % 2 ? "even" : "odd";
|
|
411
|
+
var y = u ? v : "none";
|
|
412
|
+
var h = c === "controlled" ? e.props.expanded : _()(b, p);
|
|
413
|
+
var m = function t(n) {
|
|
414
|
+
g(n, p, e.props.onExpansion);
|
|
399
415
|
};
|
|
400
|
-
var
|
|
401
|
-
var h = y === null || y === void 0 ? void 0 : y.join(" ");
|
|
416
|
+
var w = e.props.expansionRow ? (d = S.get(p)) === null || d === void 0 ? void 0 : d.join(" ") : undefined;
|
|
402
417
|
f.push( (0, n.cloneElement)(e, {
|
|
403
|
-
stripe:
|
|
418
|
+
stripe: y,
|
|
404
419
|
actions: t,
|
|
405
|
-
expanded:
|
|
406
|
-
expansionRowIds:
|
|
420
|
+
expanded: h,
|
|
421
|
+
expansionRowIds: w,
|
|
407
422
|
expandable: c !== "none",
|
|
408
423
|
draggable: !!l,
|
|
409
424
|
movableColumns: a,
|
|
410
425
|
primaryColumnIndex: s,
|
|
411
|
-
onExpansion:
|
|
426
|
+
onExpansion: m,
|
|
412
427
|
key: e.key || e.props.dataId || r
|
|
413
428
|
}));
|
|
414
|
-
if (
|
|
429
|
+
if (h && e.props.expansionRow) {
|
|
415
430
|
n.Children.forEach(e.props.expansionRow, (function(e, t) {
|
|
416
|
-
var r
|
|
431
|
+
var r;
|
|
432
|
+
var o = (r = S.get(p)) === null || r === void 0 ? void 0 : r[t];
|
|
417
433
|
f.push( (0, n.cloneElement)(e, {
|
|
418
|
-
key:
|
|
419
|
-
id:
|
|
420
|
-
stripe:
|
|
434
|
+
key: o,
|
|
435
|
+
id: o,
|
|
436
|
+
stripe: y,
|
|
421
437
|
movableColumns: a,
|
|
422
438
|
"data-expansion-row": "true"
|
|
423
439
|
}));
|
|
@@ -1160,9 +1176,11 @@
|
|
|
1160
1176
|
var e = typeof document !== "undefined" ? document : Nt;
|
|
1161
1177
|
return e;
|
|
1162
1178
|
}
|
|
1179
|
+
var Mt = Ht();
|
|
1180
|
+
/* harmony default export */ const Lt = /* unused pure expression or super */ null && Mt;
|
|
1163
1181
|
// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
1164
1182
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
1165
|
-
var
|
|
1183
|
+
var Bt = {
|
|
1166
1184
|
document: Nt,
|
|
1167
1185
|
navigator: {
|
|
1168
1186
|
userAgent: ""
|
|
@@ -1217,13 +1235,15 @@
|
|
|
1217
1235
|
clearTimeout(t);
|
|
1218
1236
|
}
|
|
1219
1237
|
};
|
|
1220
|
-
function
|
|
1221
|
-
var e = typeof window !== "undefined" ? window :
|
|
1238
|
+
function $t() {
|
|
1239
|
+
var e = typeof window !== "undefined" ? window : Bt;
|
|
1222
1240
|
return e;
|
|
1223
1241
|
}
|
|
1242
|
+
var Wt = $t();
|
|
1243
|
+
/* harmony default export */ const Kt = /* unused pure expression or super */ null && Wt;
|
|
1224
1244
|
// CONCATENATED MODULE: ./src/Table/HeadInner.tsx
|
|
1225
|
-
function
|
|
1226
|
-
return
|
|
1245
|
+
function Ft() {
|
|
1246
|
+
return Ft = Object.assign ? Object.assign.bind() : function(e) {
|
|
1227
1247
|
for (var t = 1; t < arguments.length; t++) {
|
|
1228
1248
|
var n = arguments[t];
|
|
1229
1249
|
for (var r in n) {
|
|
@@ -1231,41 +1251,41 @@
|
|
|
1231
1251
|
}
|
|
1232
1252
|
}
|
|
1233
1253
|
return e;
|
|
1234
|
-
},
|
|
1254
|
+
}, Ft.apply(null, arguments);
|
|
1235
1255
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return
|
|
1256
|
+
function Vt(e) {
|
|
1257
|
+
return Xt(e) || Gt(e) || Qt(e) || Ut();
|
|
1238
1258
|
}
|
|
1239
|
-
function
|
|
1259
|
+
function Ut() {
|
|
1240
1260
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1241
1261
|
}
|
|
1242
|
-
function
|
|
1262
|
+
function Gt(e) {
|
|
1243
1263
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
1244
1264
|
}
|
|
1245
|
-
function
|
|
1246
|
-
if (Array.isArray(e)) return
|
|
1265
|
+
function Xt(e) {
|
|
1266
|
+
if (Array.isArray(e)) return Zt(e);
|
|
1247
1267
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return
|
|
1268
|
+
function Yt(e, t) {
|
|
1269
|
+
return tn(e) || en(e, t) || Qt(e, t) || Jt();
|
|
1250
1270
|
}
|
|
1251
|
-
function
|
|
1271
|
+
function Jt() {
|
|
1252
1272
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1253
1273
|
}
|
|
1254
|
-
function
|
|
1274
|
+
function Qt(e, t) {
|
|
1255
1275
|
if (e) {
|
|
1256
|
-
if ("string" == typeof e) return
|
|
1276
|
+
if ("string" == typeof e) return Zt(e, t);
|
|
1257
1277
|
var n = {}.toString.call(e).slice(8, -1);
|
|
1258
|
-
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) ?
|
|
1278
|
+
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) ? Zt(e, t) : void 0;
|
|
1259
1279
|
}
|
|
1260
1280
|
}
|
|
1261
|
-
function
|
|
1281
|
+
function Zt(e, t) {
|
|
1262
1282
|
(null == t || t > e.length) && (t = e.length);
|
|
1263
1283
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
1264
1284
|
r[n] = e[n];
|
|
1265
1285
|
}
|
|
1266
1286
|
return r;
|
|
1267
1287
|
}
|
|
1268
|
-
function
|
|
1288
|
+
function en(e, t) {
|
|
1269
1289
|
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
1270
1290
|
if (null != n) {
|
|
1271
1291
|
var r, o, i, a, l = [], c = !0, s = !1;
|
|
@@ -1287,12 +1307,12 @@
|
|
|
1287
1307
|
return l;
|
|
1288
1308
|
}
|
|
1289
1309
|
}
|
|
1290
|
-
function
|
|
1310
|
+
function tn(e) {
|
|
1291
1311
|
if (Array.isArray(e)) return e;
|
|
1292
1312
|
}
|
|
1293
|
-
function
|
|
1313
|
+
function nn(e, t) {
|
|
1294
1314
|
if (null == e) return {};
|
|
1295
|
-
var n, r, o =
|
|
1315
|
+
var n, r, o = rn(e, t);
|
|
1296
1316
|
if (Object.getOwnPropertySymbols) {
|
|
1297
1317
|
var i = Object.getOwnPropertySymbols(e);
|
|
1298
1318
|
for (r = 0; r < i.length; r++) {
|
|
@@ -1301,7 +1321,7 @@
|
|
|
1301
1321
|
}
|
|
1302
1322
|
return o;
|
|
1303
1323
|
}
|
|
1304
|
-
function
|
|
1324
|
+
function rn(e, t) {
|
|
1305
1325
|
if (null == e) return {};
|
|
1306
1326
|
var n = {};
|
|
1307
1327
|
for (var r in e) {
|
|
@@ -1312,7 +1332,7 @@
|
|
|
1312
1332
|
}
|
|
1313
1333
|
return n;
|
|
1314
1334
|
}
|
|
1315
|
-
var
|
|
1335
|
+
var on = {
|
|
1316
1336
|
align: i().oneOf([ "left", "center", "right" ]),
|
|
1317
1337
|
clickable: i().bool,
|
|
1318
1338
|
columnId: i().any,
|
|
@@ -1333,32 +1353,32 @@
|
|
|
1333
1353
|
width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ]),
|
|
1334
1354
|
variant: i().oneOf([ "toggleAll", "info", "actions" ])
|
|
1335
1355
|
};
|
|
1336
|
-
var
|
|
1337
|
-
var
|
|
1356
|
+
var an = new Set([ "none", "asc", "desc" ]);
|
|
1357
|
+
var ln = Object.freeze({
|
|
1338
1358
|
none: (0, P._)("Click to sort"),
|
|
1339
1359
|
asc: (0, P._)("Press to sort descending"),
|
|
1340
1360
|
desc: (0, P._)("Press to sort ascending")
|
|
1341
1361
|
});
|
|
1342
|
-
var
|
|
1362
|
+
var cn = Object.freeze({
|
|
1343
1363
|
none: vt(),
|
|
1344
1364
|
asc: Pt,
|
|
1345
1365
|
desc: It
|
|
1346
1366
|
});
|
|
1347
|
-
var
|
|
1367
|
+
var sn = Object.freeze({
|
|
1348
1368
|
none: ut(),
|
|
1349
1369
|
asc: ct(),
|
|
1350
1370
|
desc: at()
|
|
1351
1371
|
});
|
|
1352
|
-
function
|
|
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, _ =
|
|
1372
|
+
function un(e) {
|
|
1373
|
+
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, _ = nn(e, [ "index", "clickable", "columnId", "elementRef", "focusWithin", "id", "width", "onDragEnd", "onAutosizeColumn", "align", "label", "hasActionsHead", "isMenu", "onDragStart", "onRequestResize", "resizable", "sortDir", "truncate", "variant" ]);
|
|
1354
1374
|
if (false) {}
|
|
1355
1375
|
var q = (0, M.useSplunkTheme)(), A = q.isEnterprise;
|
|
1356
1376
|
var z = (0, P._)("Click to open menu");
|
|
1357
|
-
var N = (0, n.useState)(), H =
|
|
1358
|
-
var W = (0, n.useState)(false), K =
|
|
1359
|
-
var U = (0, n.useState)(false), G =
|
|
1360
|
-
var J = (0, n.useState)(0), Q =
|
|
1361
|
-
var te = (0, n.useState)(0), ne =
|
|
1377
|
+
var N = (0, n.useState)(), H = Yt(N, 2), L = H[0], $ = H[1];
|
|
1378
|
+
var W = (0, n.useState)(false), K = Yt(W, 2), F = K[0], V = K[1];
|
|
1379
|
+
var U = (0, n.useState)(false), G = Yt(U, 2), X = G[0], Y = G[1];
|
|
1380
|
+
var J = (0, n.useState)(0), Q = Yt(J, 2), Z = Q[0], ee = Q[1];
|
|
1381
|
+
var te = (0, n.useState)(0), ne = Yt(te, 2), re = ne[0], oe = ne[1];
|
|
1362
1382
|
var ie = (0, n.useRef)(null);
|
|
1363
1383
|
var ae = (0, n.useRef)(s === "auto" ? undefined : s);
|
|
1364
1384
|
// Cleanup dragend, and unmount during drag
|
|
@@ -1369,10 +1389,10 @@
|
|
|
1369
1389
|
}), [ L ]);
|
|
1370
1390
|
var le;
|
|
1371
1391
|
var ce;
|
|
1372
|
-
if (R !== undefined &&
|
|
1373
|
-
var se = A ?
|
|
1392
|
+
if (R !== undefined && an.has(R)) {
|
|
1393
|
+
var se = A ? cn : sn;
|
|
1374
1394
|
le = se[R];
|
|
1375
|
-
ce =
|
|
1395
|
+
ce = ln[R];
|
|
1376
1396
|
}
|
|
1377
1397
|
if (s === "auto") {
|
|
1378
1398
|
var ue;
|
|
@@ -1496,7 +1516,7 @@
|
|
|
1496
1516
|
}
|
|
1497
1517
|
}), [ i, t, d ]);
|
|
1498
1518
|
var xe = !!w;
|
|
1499
|
-
var Ce =
|
|
1519
|
+
var Ce = $t();
|
|
1500
1520
|
var Se = ae.current ? (0, T.sprintf)((0, P._)("%(width)d pixels"), {
|
|
1501
1521
|
width: ae.current
|
|
1502
1522
|
}) : undefined;
|
|
@@ -1504,7 +1524,7 @@
|
|
|
1504
1524
|
ariaControls: i
|
|
1505
1525
|
} : {};
|
|
1506
1526
|
|
|
1507
|
-
return r().createElement(Et,
|
|
1527
|
+
return r().createElement(Et, Ft({
|
|
1508
1528
|
draggable: xe || undefined,
|
|
1509
1529
|
onDragStart: xe ? me : undefined,
|
|
1510
1530
|
onDragEnd: xe ? ge : undefined,
|
|
@@ -1517,7 +1537,7 @@
|
|
|
1517
1537
|
$clickable: o,
|
|
1518
1538
|
$focusWithin: l,
|
|
1519
1539
|
$variant: D
|
|
1520
|
-
}, g()(_, [].concat(
|
|
1540
|
+
}, g()(_, [].concat(Vt(Object.keys(un.propTypes)), [ "id" ]))), F && r().createElement(r().Fragment, null, r().createElement(O(), {
|
|
1521
1541
|
target: Ce,
|
|
1522
1542
|
eventType: "mouseup",
|
|
1523
1543
|
listener: he
|
|
@@ -1525,7 +1545,7 @@
|
|
|
1525
1545
|
target: Ce,
|
|
1526
1546
|
eventType: "mousemove",
|
|
1527
1547
|
listener: ye
|
|
1528
|
-
})), x && S && r().createElement(jt,
|
|
1548
|
+
})), x && S && r().createElement(jt, Ft({
|
|
1529
1549
|
"aria-label": (0, T.sprintf)((0, P._)("Resize %(label)s"), {
|
|
1530
1550
|
label: v
|
|
1531
1551
|
})
|
|
@@ -1567,23 +1587,23 @@
|
|
|
1567
1587
|
"aria-label": ce
|
|
1568
1588
|
}))));
|
|
1569
1589
|
}
|
|
1570
|
-
|
|
1571
|
-
/* harmony default export */ const
|
|
1590
|
+
un.propTypes = on;
|
|
1591
|
+
/* harmony default export */ const dn = un;
|
|
1572
1592
|
// CONCATENATED MODULE: ./src/Table/TableContext.ts
|
|
1573
|
-
var
|
|
1574
|
-
|
|
1575
|
-
/* harmony default export */ const
|
|
1593
|
+
var fn = (0, n.createContext)({});
|
|
1594
|
+
fn.displayName = "Table";
|
|
1595
|
+
/* harmony default export */ const pn = fn;
|
|
1576
1596
|
// CONCATENATED MODULE: ./src/Table/HeadCell.tsx
|
|
1577
|
-
function
|
|
1597
|
+
function vn(e) {
|
|
1578
1598
|
"@babel/helpers - typeof";
|
|
1579
|
-
return
|
|
1599
|
+
return vn = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
1580
1600
|
return typeof e;
|
|
1581
1601
|
} : function(e) {
|
|
1582
1602
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1583
|
-
},
|
|
1603
|
+
}, vn(e);
|
|
1584
1604
|
}
|
|
1585
|
-
function
|
|
1586
|
-
return
|
|
1605
|
+
function bn() {
|
|
1606
|
+
return bn = Object.assign ? Object.assign.bind() : function(e) {
|
|
1587
1607
|
for (var t = 1; t < arguments.length; t++) {
|
|
1588
1608
|
var n = arguments[t];
|
|
1589
1609
|
for (var r in n) {
|
|
@@ -1591,50 +1611,50 @@
|
|
|
1591
1611
|
}
|
|
1592
1612
|
}
|
|
1593
1613
|
return e;
|
|
1594
|
-
},
|
|
1614
|
+
}, bn.apply(null, arguments);
|
|
1595
1615
|
}
|
|
1596
|
-
function
|
|
1597
|
-
return
|
|
1616
|
+
function yn(e) {
|
|
1617
|
+
return wn(e) || gn(e) || mn(e) || hn();
|
|
1598
1618
|
}
|
|
1599
|
-
function
|
|
1619
|
+
function hn() {
|
|
1600
1620
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1601
1621
|
}
|
|
1602
|
-
function
|
|
1622
|
+
function mn(e, t) {
|
|
1603
1623
|
if (e) {
|
|
1604
|
-
if ("string" == typeof e) return
|
|
1624
|
+
if ("string" == typeof e) return xn(e, t);
|
|
1605
1625
|
var n = {}.toString.call(e).slice(8, -1);
|
|
1606
|
-
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) ?
|
|
1626
|
+
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) ? xn(e, t) : void 0;
|
|
1607
1627
|
}
|
|
1608
1628
|
}
|
|
1609
|
-
function
|
|
1629
|
+
function gn(e) {
|
|
1610
1630
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
1611
1631
|
}
|
|
1612
|
-
function
|
|
1613
|
-
if (Array.isArray(e)) return
|
|
1632
|
+
function wn(e) {
|
|
1633
|
+
if (Array.isArray(e)) return xn(e);
|
|
1614
1634
|
}
|
|
1615
|
-
function
|
|
1635
|
+
function xn(e, t) {
|
|
1616
1636
|
(null == t || t > e.length) && (t = e.length);
|
|
1617
1637
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
1618
1638
|
r[n] = e[n];
|
|
1619
1639
|
}
|
|
1620
1640
|
return r;
|
|
1621
1641
|
}
|
|
1622
|
-
function
|
|
1642
|
+
function Cn(e, t) {
|
|
1623
1643
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1624
1644
|
}
|
|
1625
|
-
function
|
|
1645
|
+
function Sn(e, t) {
|
|
1626
1646
|
for (var n = 0; n < t.length; n++) {
|
|
1627
1647
|
var r = t[n];
|
|
1628
1648
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
1629
|
-
Object.defineProperty(e,
|
|
1649
|
+
Object.defineProperty(e, _n(r.key), r);
|
|
1630
1650
|
}
|
|
1631
1651
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return t &&
|
|
1652
|
+
function kn(e, t, n) {
|
|
1653
|
+
return t && Sn(e.prototype, t), n && Sn(e, n), Object.defineProperty(e, "prototype", {
|
|
1634
1654
|
writable: !1
|
|
1635
1655
|
}), e;
|
|
1636
1656
|
}
|
|
1637
|
-
function
|
|
1657
|
+
function On(e, t) {
|
|
1638
1658
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
1639
1659
|
e.prototype = Object.create(t && t.prototype, {
|
|
1640
1660
|
constructor: {
|
|
@@ -1644,69 +1664,69 @@
|
|
|
1644
1664
|
}
|
|
1645
1665
|
}), Object.defineProperty(e, "prototype", {
|
|
1646
1666
|
writable: !1
|
|
1647
|
-
}), t &&
|
|
1667
|
+
}), t && En(e, t);
|
|
1648
1668
|
}
|
|
1649
|
-
function
|
|
1650
|
-
return
|
|
1669
|
+
function En(e, t) {
|
|
1670
|
+
return En = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1651
1671
|
return e.__proto__ = t, e;
|
|
1652
|
-
},
|
|
1672
|
+
}, En(e, t);
|
|
1653
1673
|
}
|
|
1654
|
-
function
|
|
1655
|
-
var t =
|
|
1674
|
+
function Rn(e) {
|
|
1675
|
+
var t = Pn();
|
|
1656
1676
|
return function() {
|
|
1657
|
-
var n, r =
|
|
1677
|
+
var n, r = Tn(e);
|
|
1658
1678
|
if (t) {
|
|
1659
|
-
var o =
|
|
1679
|
+
var o = Tn(this).constructor;
|
|
1660
1680
|
n = Reflect.construct(r, arguments, o);
|
|
1661
1681
|
} else n = r.apply(this, arguments);
|
|
1662
|
-
return
|
|
1682
|
+
return jn(this, n);
|
|
1663
1683
|
};
|
|
1664
1684
|
}
|
|
1665
|
-
function
|
|
1666
|
-
if (t && ("object" ==
|
|
1685
|
+
function jn(e, t) {
|
|
1686
|
+
if (t && ("object" == vn(t) || "function" == typeof t)) return t;
|
|
1667
1687
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1668
|
-
return
|
|
1688
|
+
return In(e);
|
|
1669
1689
|
}
|
|
1670
|
-
function
|
|
1690
|
+
function In(e) {
|
|
1671
1691
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1672
1692
|
return e;
|
|
1673
1693
|
}
|
|
1674
|
-
function
|
|
1694
|
+
function Pn() {
|
|
1675
1695
|
try {
|
|
1676
1696
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
1677
1697
|
} catch (e) {}
|
|
1678
|
-
return (
|
|
1698
|
+
return (Pn = function t() {
|
|
1679
1699
|
return !!e;
|
|
1680
1700
|
})();
|
|
1681
1701
|
}
|
|
1682
|
-
function
|
|
1683
|
-
return
|
|
1702
|
+
function Tn(e) {
|
|
1703
|
+
return Tn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
1684
1704
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
1685
|
-
},
|
|
1705
|
+
}, Tn(e);
|
|
1686
1706
|
}
|
|
1687
|
-
function
|
|
1688
|
-
return (t =
|
|
1707
|
+
function Dn(e, t, n) {
|
|
1708
|
+
return (t = _n(t)) in e ? Object.defineProperty(e, t, {
|
|
1689
1709
|
value: n,
|
|
1690
1710
|
enumerable: !0,
|
|
1691
1711
|
configurable: !0,
|
|
1692
1712
|
writable: !0
|
|
1693
1713
|
}) : e[t] = n, e;
|
|
1694
1714
|
}
|
|
1695
|
-
function
|
|
1696
|
-
var t =
|
|
1697
|
-
return "symbol" ==
|
|
1715
|
+
function _n(e) {
|
|
1716
|
+
var t = qn(e, "string");
|
|
1717
|
+
return "symbol" == vn(t) ? t : t + "";
|
|
1698
1718
|
}
|
|
1699
|
-
function
|
|
1700
|
-
if ("object" !=
|
|
1719
|
+
function qn(e, t) {
|
|
1720
|
+
if ("object" != vn(e) || !e) return e;
|
|
1701
1721
|
var n = e[Symbol.toPrimitive];
|
|
1702
1722
|
if (void 0 !== n) {
|
|
1703
1723
|
var r = n.call(e, t || "default");
|
|
1704
|
-
if ("object" !=
|
|
1724
|
+
if ("object" != vn(r)) return r;
|
|
1705
1725
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1706
1726
|
}
|
|
1707
1727
|
return ("string" === t ? String : Number)(e);
|
|
1708
1728
|
}
|
|
1709
|
-
/** @public */ var
|
|
1729
|
+
/** @public */ var An = {
|
|
1710
1730
|
align: i().oneOf([ "left", "center", "right" ]),
|
|
1711
1731
|
/** @private Used to set the $clickable appearance without an onClick */
|
|
1712
1732
|
appearClickable: i().bool,
|
|
@@ -1750,7 +1770,7 @@
|
|
|
1750
1770
|
/** @private. */
|
|
1751
1771
|
zIndex: i().number
|
|
1752
1772
|
};
|
|
1753
|
-
var
|
|
1773
|
+
var zn = {
|
|
1754
1774
|
align: "left",
|
|
1755
1775
|
resizable: true,
|
|
1756
1776
|
showGuideline: "none",
|
|
@@ -1759,15 +1779,15 @@
|
|
|
1759
1779
|
visible: true,
|
|
1760
1780
|
zIndex: 1
|
|
1761
1781
|
};
|
|
1762
|
-
var
|
|
1763
|
-
|
|
1764
|
-
var t =
|
|
1782
|
+
var Nn = function(e) {
|
|
1783
|
+
On(n, e);
|
|
1784
|
+
var t = Rn(n);
|
|
1765
1785
|
// @docs-props-type HeadCellPropsBase
|
|
1766
1786
|
function n(e) {
|
|
1767
1787
|
var r;
|
|
1768
|
-
|
|
1788
|
+
Cn(this, n);
|
|
1769
1789
|
r = t.call(this, e);
|
|
1770
|
-
|
|
1790
|
+
Dn(In(r), "handleClick", (function(e) {
|
|
1771
1791
|
var t, n;
|
|
1772
1792
|
// ignore clicks on the resize handle
|
|
1773
1793
|
if (e.target.getAttribute("data-test") !== "resize" && r.props.onSort && r.props.index !== undefined) {
|
|
@@ -1782,7 +1802,7 @@
|
|
|
1782
1802
|
}
|
|
1783
1803
|
(t = (n = r.props).onClick) === null || t === void 0 ? void 0 : t.call(n);
|
|
1784
1804
|
}));
|
|
1785
|
-
|
|
1805
|
+
Dn(In(r), "handleKeyDown", (function(e) {
|
|
1786
1806
|
var t = r.props, n = t.columnId, o = t.index, i = t.onKeyDown, a = t.onRequestMoveColumn;
|
|
1787
1807
|
if (e.target.getAttribute("data-test") !== "resize") {
|
|
1788
1808
|
if ((0, E.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
|
|
@@ -1806,19 +1826,19 @@
|
|
|
1806
1826
|
});
|
|
1807
1827
|
}
|
|
1808
1828
|
}));
|
|
1809
|
-
|
|
1829
|
+
Dn(In(r), "handleDragStart", (function(e, t) {
|
|
1810
1830
|
var n, o;
|
|
1811
1831
|
r.setState({
|
|
1812
1832
|
isDragging: true
|
|
1813
1833
|
});
|
|
1814
1834
|
(n = (o = r.props).onDragStart) === null || n === void 0 ? void 0 : n.call(o, e, t);
|
|
1815
1835
|
}));
|
|
1816
|
-
|
|
1836
|
+
Dn(In(r), "handleDragEnd", (function() {
|
|
1817
1837
|
r.setState({
|
|
1818
1838
|
isDragging: false
|
|
1819
1839
|
});
|
|
1820
1840
|
}));
|
|
1821
|
-
|
|
1841
|
+
Dn(In(r), "sortDirAriaMapping", {
|
|
1822
1842
|
asc: "ascending",
|
|
1823
1843
|
desc: "descending",
|
|
1824
1844
|
none: "none"
|
|
@@ -1828,7 +1848,7 @@
|
|
|
1828
1848
|
};
|
|
1829
1849
|
return r;
|
|
1830
1850
|
}
|
|
1831
|
-
|
|
1851
|
+
kn(n, [ {
|
|
1832
1852
|
key: "render",
|
|
1833
1853
|
value: function e() {
|
|
1834
1854
|
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;
|
|
@@ -1841,7 +1861,7 @@
|
|
|
1841
1861
|
var T = s ? false : S;
|
|
1842
1862
|
var D = this.context.headType;
|
|
1843
1863
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
1844
|
-
return r().createElement(Tt,
|
|
1864
|
+
return r().createElement(Tt, bn({
|
|
1845
1865
|
style: P,
|
|
1846
1866
|
ref: c,
|
|
1847
1867
|
"aria-sort": y && (this.sortDirAriaMapping[w] || "none"),
|
|
@@ -1854,9 +1874,9 @@
|
|
|
1854
1874
|
$variant: C,
|
|
1855
1875
|
$zIndex: E,
|
|
1856
1876
|
$isFixed: D === "fixed"
|
|
1857
|
-
}, g()(this.props, [].concat(
|
|
1877
|
+
}, g()(this.props, [].concat(yn(Object.keys(n.propTypes)), [ "id", "style" ])), {
|
|
1858
1878
|
onKeyDown: R || y || I ? this.handleKeyDown : undefined
|
|
1859
|
-
}), r().createElement(
|
|
1879
|
+
}), r().createElement(dn, {
|
|
1860
1880
|
label: a,
|
|
1861
1881
|
align: o,
|
|
1862
1882
|
columnId: l,
|
|
@@ -1881,27 +1901,27 @@
|
|
|
1881
1901
|
} ]);
|
|
1882
1902
|
return n;
|
|
1883
1903
|
}(n.Component);
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
/* harmony default export */ const
|
|
1904
|
+
Dn(Nn, "splunkUiType", "Table.HeadCell");
|
|
1905
|
+
Dn(Nn, "propTypes", An);
|
|
1906
|
+
Dn(Nn, "defaultProps", zn);
|
|
1907
|
+
Dn(Nn, "contextType", pn);
|
|
1908
|
+
/* harmony default export */ const Hn = Nn;
|
|
1889
1909
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Info"
|
|
1890
|
-
const
|
|
1891
|
-
var
|
|
1910
|
+
const Mn = require("@splunk/react-icons/enterprise/Info");
|
|
1911
|
+
var Ln = e.n(Mn);
|
|
1892
1912
|
// CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
|
|
1893
|
-
const
|
|
1894
|
-
var
|
|
1913
|
+
const Bn = require("@splunk/react-icons/ChevronRight");
|
|
1914
|
+
var $n = e.n(Bn);
|
|
1895
1915
|
// CONCATENATED MODULE: ./src/Table/icons/HeadExpandRows.tsx
|
|
1896
1916
|
/* This file works around the use of withSplunkTheme in Head. */
|
|
1897
|
-
function
|
|
1917
|
+
function Wn() {
|
|
1898
1918
|
var e = (0, M.useSplunkTheme)(), t = e.isEnterprise;
|
|
1899
1919
|
var n = (0, P._)("More Information");
|
|
1900
|
-
return t ? r().createElement(
|
|
1920
|
+
return t ? r().createElement(Ln(), {
|
|
1901
1921
|
hideDefaultTooltip: true,
|
|
1902
1922
|
screenReaderText: n,
|
|
1903
1923
|
"aria-hidden": false
|
|
1904
|
-
}) : r().createElement(
|
|
1924
|
+
}) : r().createElement($n(), {
|
|
1905
1925
|
"aria-label": n,
|
|
1906
1926
|
"aria-hidden": false,
|
|
1907
1927
|
height: "16px",
|
|
@@ -1909,24 +1929,24 @@
|
|
|
1909
1929
|
});
|
|
1910
1930
|
}
|
|
1911
1931
|
// CONCATENATED MODULE: external "@dnd-kit/utilities"
|
|
1912
|
-
const
|
|
1932
|
+
const Kn = require("@dnd-kit/utilities");
|
|
1913
1933
|
// CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
|
|
1914
|
-
const
|
|
1915
|
-
var
|
|
1934
|
+
const Fn = require("@splunk/react-icons/DotsThreeVertical");
|
|
1935
|
+
var Vn = e.n(Fn);
|
|
1916
1936
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
1917
|
-
const
|
|
1918
|
-
var
|
|
1937
|
+
const Un = require("@splunk/react-ui/Button");
|
|
1938
|
+
var Gn = e.n(Un);
|
|
1919
1939
|
// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
1920
|
-
const
|
|
1921
|
-
var
|
|
1940
|
+
const Xn = require("@splunk/react-ui/Dropdown");
|
|
1941
|
+
var Yn = e.n(Xn);
|
|
1922
1942
|
// CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
|
|
1923
|
-
const
|
|
1924
|
-
var
|
|
1943
|
+
const Jn = require("@splunk/react-ui/Tooltip");
|
|
1944
|
+
var Qn = e.n(Jn);
|
|
1925
1945
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
|
|
1926
|
-
const
|
|
1927
|
-
var
|
|
1946
|
+
const Zn = require("@splunk/react-icons/enterprise/ChevronRight");
|
|
1947
|
+
var er = e.n(Zn);
|
|
1928
1948
|
// CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
|
|
1929
|
-
var
|
|
1949
|
+
var tr = H().button.withConfig({
|
|
1930
1950
|
displayName: "ExpandButtonStyles__StyledClickable",
|
|
1931
1951
|
componentId: "sc-7nlw5q-0"
|
|
1932
1952
|
})([ "", ";display:flex;text-align:center;height:100%;width:100%;cursor:pointer;", " &:hover{background-color:", ";}&:focus{box-shadow:", ";}" ], M.mixins.reset("block"), (0,
|
|
@@ -1943,21 +1963,21 @@
|
|
|
1943
1963
|
},
|
|
1944
1964
|
prisma: M.variables.interactiveColorOverlayHover
|
|
1945
1965
|
}), M.variables.focusShadowInset);
|
|
1946
|
-
var
|
|
1966
|
+
var nr = H().span.withConfig({
|
|
1947
1967
|
displayName: "ExpandButtonStyles__StyledIconContainer",
|
|
1948
1968
|
componentId: "sc-7nlw5q-1"
|
|
1949
1969
|
})([ "height:", ";width:100%;" ], M.variables.lineHeight);
|
|
1950
1970
|
// CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
|
|
1951
|
-
function
|
|
1971
|
+
function rr(e) {
|
|
1952
1972
|
"@babel/helpers - typeof";
|
|
1953
|
-
return
|
|
1973
|
+
return rr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
1954
1974
|
return typeof e;
|
|
1955
1975
|
} : function(e) {
|
|
1956
1976
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1957
|
-
},
|
|
1977
|
+
}, rr(e);
|
|
1958
1978
|
}
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1979
|
+
function or() {
|
|
1980
|
+
return or = Object.assign ? Object.assign.bind() : function(e) {
|
|
1961
1981
|
for (var t = 1; t < arguments.length; t++) {
|
|
1962
1982
|
var n = arguments[t];
|
|
1963
1983
|
for (var r in n) {
|
|
@@ -1965,9 +1985,9 @@
|
|
|
1965
1985
|
}
|
|
1966
1986
|
}
|
|
1967
1987
|
return e;
|
|
1968
|
-
},
|
|
1988
|
+
}, or.apply(null, arguments);
|
|
1969
1989
|
}
|
|
1970
|
-
function
|
|
1990
|
+
function ir(e, t) {
|
|
1971
1991
|
var n = Object.keys(e);
|
|
1972
1992
|
if (Object.getOwnPropertySymbols) {
|
|
1973
1993
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1977,42 +1997,42 @@
|
|
|
1977
1997
|
}
|
|
1978
1998
|
return n;
|
|
1979
1999
|
}
|
|
1980
|
-
function
|
|
2000
|
+
function ar(e) {
|
|
1981
2001
|
for (var t = 1; t < arguments.length; t++) {
|
|
1982
2002
|
var n = null != arguments[t] ? arguments[t] : {};
|
|
1983
|
-
t % 2 ?
|
|
1984
|
-
|
|
1985
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2003
|
+
t % 2 ? ir(Object(n), !0).forEach((function(t) {
|
|
2004
|
+
lr(e, t, n[t]);
|
|
2005
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ir(Object(n)).forEach((function(t) {
|
|
1986
2006
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1987
2007
|
}));
|
|
1988
2008
|
}
|
|
1989
2009
|
return e;
|
|
1990
2010
|
}
|
|
1991
|
-
function
|
|
1992
|
-
return (t =
|
|
2011
|
+
function lr(e, t, n) {
|
|
2012
|
+
return (t = cr(t)) in e ? Object.defineProperty(e, t, {
|
|
1993
2013
|
value: n,
|
|
1994
2014
|
enumerable: !0,
|
|
1995
2015
|
configurable: !0,
|
|
1996
2016
|
writable: !0
|
|
1997
2017
|
}) : e[t] = n, e;
|
|
1998
2018
|
}
|
|
1999
|
-
function
|
|
2000
|
-
var t =
|
|
2001
|
-
return "symbol" ==
|
|
2019
|
+
function cr(e) {
|
|
2020
|
+
var t = sr(e, "string");
|
|
2021
|
+
return "symbol" == rr(t) ? t : t + "";
|
|
2002
2022
|
}
|
|
2003
|
-
function
|
|
2004
|
-
if ("object" !=
|
|
2023
|
+
function sr(e, t) {
|
|
2024
|
+
if ("object" != rr(e) || !e) return e;
|
|
2005
2025
|
var n = e[Symbol.toPrimitive];
|
|
2006
2026
|
if (void 0 !== n) {
|
|
2007
2027
|
var r = n.call(e, t || "default");
|
|
2008
|
-
if ("object" !=
|
|
2028
|
+
if ("object" != rr(r)) return r;
|
|
2009
2029
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2010
2030
|
}
|
|
2011
2031
|
return ("string" === t ? String : Number)(e);
|
|
2012
2032
|
}
|
|
2013
|
-
function
|
|
2033
|
+
function ur(e, t) {
|
|
2014
2034
|
if (null == e) return {};
|
|
2015
|
-
var n, r, o =
|
|
2035
|
+
var n, r, o = dr(e, t);
|
|
2016
2036
|
if (Object.getOwnPropertySymbols) {
|
|
2017
2037
|
var i = Object.getOwnPropertySymbols(e);
|
|
2018
2038
|
for (r = 0; r < i.length; r++) {
|
|
@@ -2021,7 +2041,7 @@
|
|
|
2021
2041
|
}
|
|
2022
2042
|
return o;
|
|
2023
2043
|
}
|
|
2024
|
-
function
|
|
2044
|
+
function dr(e, t) {
|
|
2025
2045
|
if (null == e) return {};
|
|
2026
2046
|
var n = {};
|
|
2027
2047
|
for (var r in e) {
|
|
@@ -2032,28 +2052,28 @@
|
|
|
2032
2052
|
}
|
|
2033
2053
|
return n;
|
|
2034
2054
|
}
|
|
2035
|
-
var
|
|
2055
|
+
var fr = {
|
|
2036
2056
|
className: i().string,
|
|
2037
2057
|
expanded: i().bool
|
|
2038
2058
|
};
|
|
2039
|
-
var
|
|
2040
|
-
var n = t.className, o = t.expanded, i =
|
|
2059
|
+
var pr = function e(t) {
|
|
2060
|
+
var n = t.className, o = t.expanded, i = ur(t, [ "className", "expanded" ]);
|
|
2041
2061
|
var a = (0, M.useSplunkTheme)(), l = a.isEnterprise;
|
|
2042
2062
|
var c = {
|
|
2043
2063
|
className: n
|
|
2044
2064
|
};
|
|
2045
|
-
var s =
|
|
2065
|
+
var s = ar(ar({}, c), {}, {
|
|
2046
2066
|
hideDefaultTooltip: true,
|
|
2047
2067
|
screenReaderText: null
|
|
2048
2068
|
});
|
|
2049
|
-
var u =
|
|
2050
|
-
var d = l ? r().createElement(
|
|
2069
|
+
var u = ar({}, c);
|
|
2070
|
+
var d = l ? r().createElement(er(), s) : r().createElement($n(), u);
|
|
2051
2071
|
|
|
2052
|
-
return r().createElement(
|
|
2072
|
+
return r().createElement(tr, or({
|
|
2053
2073
|
title: o ? (0, P._)("Collapse row") : (0, P._)("Expand row")
|
|
2054
|
-
}, i), r().createElement(
|
|
2074
|
+
}, i), r().createElement(nr, null, d));
|
|
2055
2075
|
};
|
|
2056
|
-
var
|
|
2076
|
+
var vr = H()(pr).withConfig({
|
|
2057
2077
|
displayName: "ExpandButton__StyledExpandButton",
|
|
2058
2078
|
componentId: "ttb2no-0"
|
|
2059
2079
|
})([ "transition:transform ", ";", "" ], (0, M.pick)({
|
|
@@ -2062,10 +2082,10 @@
|
|
|
2062
2082
|
}), (function(e) {
|
|
2063
2083
|
return e.expanded && (0, N.css)([ "transform:rotate(90deg);" ]);
|
|
2064
2084
|
}));
|
|
2065
|
-
|
|
2066
|
-
/* harmony default export */ const
|
|
2085
|
+
vr.propTypes = fr;
|
|
2086
|
+
/* harmony default export */ const br = vr;
|
|
2067
2087
|
// CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
|
|
2068
|
-
var
|
|
2088
|
+
var yr = H().td.withConfig({
|
|
2069
2089
|
displayName: "RowDragCellStyles__StyledCell",
|
|
2070
2090
|
componentId: "sc-9kbaj2-0"
|
|
2071
2091
|
})([ "", " cursor:move;touch-action:none;width:", ";position:relative;vertical-align:middle;& + &{border-left:", ";}" ], M.mixins.reset("table-cell"), (0,
|
|
@@ -2076,7 +2096,7 @@
|
|
|
2076
2096
|
enterprise: "1px solid ".concat(M.variables.backgroundColor),
|
|
2077
2097
|
prisma: "1px solid ".concat(M.variables.interactiveColorBorder)
|
|
2078
2098
|
}));
|
|
2079
|
-
var
|
|
2099
|
+
var hr = H().div.withConfig({
|
|
2080
2100
|
displayName: "RowDragCellStyles__StyledDrag",
|
|
2081
2101
|
componentId: "sc-9kbaj2-1"
|
|
2082
2102
|
})([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], M.mixins.reset("flex"), M.mixins.clearfix(), M.variables.focusShadowInset, (0,
|
|
@@ -2090,8 +2110,8 @@
|
|
|
2090
2110
|
prisma: M.variables.interactiveColorOverlayActive
|
|
2091
2111
|
}), M.variables.focusShadowInset);
|
|
2092
2112
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2093
|
-
function
|
|
2094
|
-
return
|
|
2113
|
+
function mr() {
|
|
2114
|
+
return mr = Object.assign ? Object.assign.bind() : function(e) {
|
|
2095
2115
|
for (var t = 1; t < arguments.length; t++) {
|
|
2096
2116
|
var n = arguments[t];
|
|
2097
2117
|
for (var r in n) {
|
|
@@ -2099,11 +2119,11 @@
|
|
|
2099
2119
|
}
|
|
2100
2120
|
}
|
|
2101
2121
|
return e;
|
|
2102
|
-
},
|
|
2122
|
+
}, mr.apply(null, arguments);
|
|
2103
2123
|
}
|
|
2104
|
-
function
|
|
2124
|
+
function gr(e, t) {
|
|
2105
2125
|
if (null == e) return {};
|
|
2106
|
-
var n, r, o =
|
|
2126
|
+
var n, r, o = wr(e, t);
|
|
2107
2127
|
if (Object.getOwnPropertySymbols) {
|
|
2108
2128
|
var i = Object.getOwnPropertySymbols(e);
|
|
2109
2129
|
for (r = 0; r < i.length; r++) {
|
|
@@ -2112,7 +2132,7 @@
|
|
|
2112
2132
|
}
|
|
2113
2133
|
return o;
|
|
2114
2134
|
}
|
|
2115
|
-
function
|
|
2135
|
+
function wr(e, t) {
|
|
2116
2136
|
if (null == e) return {};
|
|
2117
2137
|
var n = {};
|
|
2118
2138
|
for (var r in e) {
|
|
@@ -2123,25 +2143,25 @@
|
|
|
2123
2143
|
}
|
|
2124
2144
|
return n;
|
|
2125
2145
|
}
|
|
2126
|
-
var
|
|
2146
|
+
var xr = {
|
|
2127
2147
|
setActivatorNodeRef: i().func.isRequired,
|
|
2128
2148
|
listeners: i().objectOf(i().func)
|
|
2129
2149
|
};
|
|
2130
|
-
function
|
|
2131
|
-
var t = e.listeners, n = e.setActivatorNodeRef, o =
|
|
2150
|
+
function Cr(e) {
|
|
2151
|
+
var t = e.listeners, n = e.setActivatorNodeRef, o = gr(e, [ "listeners", "setActivatorNodeRef" ]);
|
|
2132
2152
|
|
|
2133
|
-
return r().createElement(
|
|
2153
|
+
return r().createElement(yr, {
|
|
2134
2154
|
"data-helper": true
|
|
2135
|
-
}, r().createElement(
|
|
2155
|
+
}, r().createElement(hr, mr({
|
|
2136
2156
|
"data-test": "drag",
|
|
2137
2157
|
ref: n,
|
|
2138
2158
|
tabIndex: 0
|
|
2139
2159
|
}, t, o), r().createElement(zt, null)));
|
|
2140
2160
|
}
|
|
2141
|
-
|
|
2142
|
-
/* harmony default export */ const
|
|
2161
|
+
Cr.propTypes = xr;
|
|
2162
|
+
/* harmony default export */ const Sr = Cr;
|
|
2143
2163
|
// CONCATENATED MODULE: ./src/Table/RowStyles.ts
|
|
2144
|
-
var
|
|
2164
|
+
var kr = H().tr.withConfig({
|
|
2145
2165
|
displayName: "RowStyles__StyledStripeNone",
|
|
2146
2166
|
componentId: "f0igqq-0"
|
|
2147
2167
|
})([ "", " background-color:", ";", ";@media print{background-color:none;}", " ", "" ], M.mixins.reset("table-row"), (0,
|
|
@@ -2169,7 +2189,7 @@
|
|
|
2169
2189
|
prisma: M.variables.contentColorDisabled
|
|
2170
2190
|
}));
|
|
2171
2191
|
}));
|
|
2172
|
-
var
|
|
2192
|
+
var Or = H()(kr).withConfig({
|
|
2173
2193
|
displayName: "RowStyles__StyledStripeOdd",
|
|
2174
2194
|
componentId: "f0igqq-1"
|
|
2175
2195
|
})([ "background-color:", ";" ], (0, M.pick)({
|
|
@@ -2178,7 +2198,7 @@
|
|
|
2178
2198
|
},
|
|
2179
2199
|
prisma: M.variables.transparent
|
|
2180
2200
|
}));
|
|
2181
|
-
var
|
|
2201
|
+
var Er = H()(kr).withConfig({
|
|
2182
2202
|
displayName: "RowStyles__StyledStripeEven",
|
|
2183
2203
|
componentId: "f0igqq-2"
|
|
2184
2204
|
})([ "background-color:", ";" ], (0, M.pick)({
|
|
@@ -2191,11 +2211,11 @@
|
|
|
2191
2211
|
dark: M.variables.black
|
|
2192
2212
|
}
|
|
2193
2213
|
}));
|
|
2194
|
-
var
|
|
2214
|
+
var Rr = H()(Ye).withConfig({
|
|
2195
2215
|
displayName: "RowStyles__StyledToggleCell",
|
|
2196
2216
|
componentId: "f0igqq-3"
|
|
2197
2217
|
})([ "height:1px;" ]);
|
|
2198
|
-
var
|
|
2218
|
+
var jr = H()(Ye).withConfig({
|
|
2199
2219
|
displayName: "RowStyles__StyledCellExpansionDisabled",
|
|
2200
2220
|
componentId: "f0igqq-4"
|
|
2201
2221
|
})([ "width:", ";" ], (0, M.pick)({
|
|
@@ -2203,13 +2223,13 @@
|
|
|
2203
2223
|
prisma: "40px"
|
|
2204
2224
|
}));
|
|
2205
2225
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
2206
|
-
const
|
|
2207
|
-
var
|
|
2226
|
+
const Ir = require("@splunk/react-ui/Clickable");
|
|
2227
|
+
var Pr = e.n(Ir);
|
|
2208
2228
|
// CONCATENATED MODULE: external "@splunk/react-ui/Switch"
|
|
2209
|
-
const
|
|
2210
|
-
var
|
|
2229
|
+
const Tr = require("@splunk/react-ui/Switch");
|
|
2230
|
+
var Dr = e.n(Tr);
|
|
2211
2231
|
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
2212
|
-
var
|
|
2232
|
+
var _r = H()(Pr()).withConfig({
|
|
2213
2233
|
displayName: "ToggleStyles__StyledClickable",
|
|
2214
2234
|
componentId: "sc-1x3ikch-0"
|
|
2215
2235
|
})([ "height:100%;width:100%;display:flex;justify-content:center;padding:", ";&:focus{box-shadow:", ";}" ], (0,
|
|
@@ -2220,7 +2240,7 @@
|
|
|
2220
2240
|
compact: "6px 8px 8px"
|
|
2221
2241
|
}
|
|
2222
2242
|
}), M.variables.focusShadowInset);
|
|
2223
|
-
var
|
|
2243
|
+
var qr = H()(Dr()).withConfig({
|
|
2224
2244
|
displayName: "ToggleStyles__StyledSwitch",
|
|
2225
2245
|
componentId: "sc-1x3ikch-1"
|
|
2226
2246
|
})([ "margin:", ";", " justify-content:center;" ], (0, M.pickVariant)("$allRows", {
|
|
@@ -2236,8 +2256,8 @@
|
|
|
2236
2256
|
}));
|
|
2237
2257
|
}));
|
|
2238
2258
|
// CONCATENATED MODULE: ./src/Table/Toggle.tsx
|
|
2239
|
-
function
|
|
2240
|
-
return
|
|
2259
|
+
function Ar() {
|
|
2260
|
+
return Ar = Object.assign ? Object.assign.bind() : function(e) {
|
|
2241
2261
|
for (var t = 1; t < arguments.length; t++) {
|
|
2242
2262
|
var n = arguments[t];
|
|
2243
2263
|
for (var r in n) {
|
|
@@ -2245,11 +2265,11 @@
|
|
|
2245
2265
|
}
|
|
2246
2266
|
}
|
|
2247
2267
|
return e;
|
|
2248
|
-
},
|
|
2268
|
+
}, Ar.apply(null, arguments);
|
|
2249
2269
|
}
|
|
2250
|
-
function
|
|
2270
|
+
function zr(e, t) {
|
|
2251
2271
|
if (null == e) return {};
|
|
2252
|
-
var n, r, o =
|
|
2272
|
+
var n, r, o = Nr(e, t);
|
|
2253
2273
|
if (Object.getOwnPropertySymbols) {
|
|
2254
2274
|
var i = Object.getOwnPropertySymbols(e);
|
|
2255
2275
|
for (r = 0; r < i.length; r++) {
|
|
@@ -2258,7 +2278,7 @@
|
|
|
2258
2278
|
}
|
|
2259
2279
|
return o;
|
|
2260
2280
|
}
|
|
2261
|
-
function
|
|
2281
|
+
function Nr(e, t) {
|
|
2262
2282
|
if (null == e) return {};
|
|
2263
2283
|
var n = {};
|
|
2264
2284
|
for (var r in e) {
|
|
@@ -2269,21 +2289,21 @@
|
|
|
2269
2289
|
}
|
|
2270
2290
|
return n;
|
|
2271
2291
|
}
|
|
2272
|
-
var
|
|
2292
|
+
var Hr = {
|
|
2273
2293
|
allRows: i().bool,
|
|
2274
2294
|
disabled: i().bool,
|
|
2275
2295
|
onClick: i().func,
|
|
2276
2296
|
selected: i().oneOf([ true, false, "some" ])
|
|
2277
2297
|
};
|
|
2278
|
-
function
|
|
2279
|
-
var t = e.allRows, n = e.disabled, o = e.onClick, i = e.selected, a =
|
|
2298
|
+
function Mr(e) {
|
|
2299
|
+
var t = e.allRows, n = e.disabled, o = e.onClick, i = e.selected, a = zr(e, [ "allRows", "disabled", "onClick", "selected" ]);
|
|
2280
2300
|
|
|
2281
|
-
return r().createElement(
|
|
2301
|
+
return r().createElement(_r, Ar({
|
|
2282
2302
|
"aria-checked": i === "some" ? "mixed" : i,
|
|
2283
2303
|
disabled: n,
|
|
2284
2304
|
onClick: o,
|
|
2285
2305
|
role: "checkbox"
|
|
2286
|
-
}, a), r().createElement(
|
|
2306
|
+
}, a), r().createElement(qr, {
|
|
2287
2307
|
$allRows: t || false,
|
|
2288
2308
|
interactive: false,
|
|
2289
2309
|
disabled: n,
|
|
@@ -2291,33 +2311,33 @@
|
|
|
2291
2311
|
selected: i
|
|
2292
2312
|
}));
|
|
2293
2313
|
}
|
|
2294
|
-
|
|
2295
|
-
/* harmony default export */ const
|
|
2314
|
+
Mr.propTypes = Hr;
|
|
2315
|
+
/* harmony default export */ const Lr = Mr;
|
|
2296
2316
|
// CONCATENATED MODULE: ./src/Table/Row.tsx
|
|
2297
|
-
function
|
|
2317
|
+
function Br(e) {
|
|
2298
2318
|
"@babel/helpers - typeof";
|
|
2299
|
-
return
|
|
2319
|
+
return Br = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
2300
2320
|
return typeof e;
|
|
2301
2321
|
} : function(e) {
|
|
2302
2322
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2303
|
-
},
|
|
2323
|
+
}, Br(e);
|
|
2304
2324
|
}
|
|
2305
|
-
function
|
|
2325
|
+
function $r(e, t) {
|
|
2306
2326
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2307
2327
|
}
|
|
2308
|
-
function
|
|
2328
|
+
function Wr(e, t) {
|
|
2309
2329
|
for (var n = 0; n < t.length; n++) {
|
|
2310
2330
|
var r = t[n];
|
|
2311
2331
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
2312
|
-
Object.defineProperty(e,
|
|
2332
|
+
Object.defineProperty(e, to(r.key), r);
|
|
2313
2333
|
}
|
|
2314
2334
|
}
|
|
2315
|
-
function
|
|
2316
|
-
return t &&
|
|
2335
|
+
function Kr(e, t, n) {
|
|
2336
|
+
return t && Wr(e.prototype, t), n && Wr(e, n), Object.defineProperty(e, "prototype", {
|
|
2317
2337
|
writable: !1
|
|
2318
2338
|
}), e;
|
|
2319
2339
|
}
|
|
2320
|
-
function
|
|
2340
|
+
function Fr(e, t) {
|
|
2321
2341
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
2322
2342
|
e.prototype = Object.create(t && t.prototype, {
|
|
2323
2343
|
constructor: {
|
|
@@ -2327,47 +2347,47 @@
|
|
|
2327
2347
|
}
|
|
2328
2348
|
}), Object.defineProperty(e, "prototype", {
|
|
2329
2349
|
writable: !1
|
|
2330
|
-
}), t &&
|
|
2350
|
+
}), t && Vr(e, t);
|
|
2331
2351
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2352
|
+
function Vr(e, t) {
|
|
2353
|
+
return Vr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
2334
2354
|
return e.__proto__ = t, e;
|
|
2335
|
-
},
|
|
2355
|
+
}, Vr(e, t);
|
|
2336
2356
|
}
|
|
2337
|
-
function
|
|
2338
|
-
var t =
|
|
2357
|
+
function Ur(e) {
|
|
2358
|
+
var t = Yr();
|
|
2339
2359
|
return function() {
|
|
2340
|
-
var n, r =
|
|
2360
|
+
var n, r = Jr(e);
|
|
2341
2361
|
if (t) {
|
|
2342
|
-
var o =
|
|
2362
|
+
var o = Jr(this).constructor;
|
|
2343
2363
|
n = Reflect.construct(r, arguments, o);
|
|
2344
2364
|
} else n = r.apply(this, arguments);
|
|
2345
|
-
return
|
|
2365
|
+
return Gr(this, n);
|
|
2346
2366
|
};
|
|
2347
2367
|
}
|
|
2348
|
-
function
|
|
2349
|
-
if (t && ("object" ==
|
|
2368
|
+
function Gr(e, t) {
|
|
2369
|
+
if (t && ("object" == Br(t) || "function" == typeof t)) return t;
|
|
2350
2370
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2351
|
-
return
|
|
2371
|
+
return Xr(e);
|
|
2352
2372
|
}
|
|
2353
|
-
function
|
|
2373
|
+
function Xr(e) {
|
|
2354
2374
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2355
2375
|
return e;
|
|
2356
2376
|
}
|
|
2357
|
-
function
|
|
2377
|
+
function Yr() {
|
|
2358
2378
|
try {
|
|
2359
2379
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
2360
2380
|
} catch (e) {}
|
|
2361
|
-
return (
|
|
2381
|
+
return (Yr = function t() {
|
|
2362
2382
|
return !!e;
|
|
2363
2383
|
})();
|
|
2364
2384
|
}
|
|
2365
|
-
function
|
|
2366
|
-
return
|
|
2385
|
+
function Jr(e) {
|
|
2386
|
+
return Jr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2367
2387
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2368
|
-
},
|
|
2388
|
+
}, Jr(e);
|
|
2369
2389
|
}
|
|
2370
|
-
function
|
|
2390
|
+
function Qr(e, t) {
|
|
2371
2391
|
var n = Object.keys(e);
|
|
2372
2392
|
if (Object.getOwnPropertySymbols) {
|
|
2373
2393
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2377,42 +2397,42 @@
|
|
|
2377
2397
|
}
|
|
2378
2398
|
return n;
|
|
2379
2399
|
}
|
|
2380
|
-
function
|
|
2400
|
+
function Zr(e) {
|
|
2381
2401
|
for (var t = 1; t < arguments.length; t++) {
|
|
2382
2402
|
var n = null != arguments[t] ? arguments[t] : {};
|
|
2383
|
-
t % 2 ?
|
|
2384
|
-
|
|
2385
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2403
|
+
t % 2 ? Qr(Object(n), !0).forEach((function(t) {
|
|
2404
|
+
eo(e, t, n[t]);
|
|
2405
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qr(Object(n)).forEach((function(t) {
|
|
2386
2406
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2387
2407
|
}));
|
|
2388
2408
|
}
|
|
2389
2409
|
return e;
|
|
2390
2410
|
}
|
|
2391
|
-
function
|
|
2392
|
-
return (t =
|
|
2411
|
+
function eo(e, t, n) {
|
|
2412
|
+
return (t = to(t)) in e ? Object.defineProperty(e, t, {
|
|
2393
2413
|
value: n,
|
|
2394
2414
|
enumerable: !0,
|
|
2395
2415
|
configurable: !0,
|
|
2396
2416
|
writable: !0
|
|
2397
2417
|
}) : e[t] = n, e;
|
|
2398
2418
|
}
|
|
2399
|
-
function
|
|
2400
|
-
var t =
|
|
2401
|
-
return "symbol" ==
|
|
2419
|
+
function to(e) {
|
|
2420
|
+
var t = no(e, "string");
|
|
2421
|
+
return "symbol" == Br(t) ? t : t + "";
|
|
2402
2422
|
}
|
|
2403
|
-
function
|
|
2404
|
-
if ("object" !=
|
|
2423
|
+
function no(e, t) {
|
|
2424
|
+
if ("object" != Br(e) || !e) return e;
|
|
2405
2425
|
var n = e[Symbol.toPrimitive];
|
|
2406
2426
|
if (void 0 !== n) {
|
|
2407
2427
|
var r = n.call(e, t || "default");
|
|
2408
|
-
if ("object" !=
|
|
2428
|
+
if ("object" != Br(r)) return r;
|
|
2409
2429
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2410
2430
|
}
|
|
2411
2431
|
return ("string" === t ? String : Number)(e);
|
|
2412
2432
|
}
|
|
2413
|
-
function
|
|
2433
|
+
function ro(e, t) {
|
|
2414
2434
|
if (null == e) return {};
|
|
2415
|
-
var n, r, o =
|
|
2435
|
+
var n, r, o = oo(e, t);
|
|
2416
2436
|
if (Object.getOwnPropertySymbols) {
|
|
2417
2437
|
var i = Object.getOwnPropertySymbols(e);
|
|
2418
2438
|
for (r = 0; r < i.length; r++) {
|
|
@@ -2421,7 +2441,7 @@
|
|
|
2421
2441
|
}
|
|
2422
2442
|
return o;
|
|
2423
2443
|
}
|
|
2424
|
-
function
|
|
2444
|
+
function oo(e, t) {
|
|
2425
2445
|
if (null == e) return {};
|
|
2426
2446
|
var n = {};
|
|
2427
2447
|
for (var r in e) {
|
|
@@ -2432,8 +2452,8 @@
|
|
|
2432
2452
|
}
|
|
2433
2453
|
return n;
|
|
2434
2454
|
}
|
|
2435
|
-
function
|
|
2436
|
-
return
|
|
2455
|
+
function io() {
|
|
2456
|
+
return io = Object.assign ? Object.assign.bind() : function(e) {
|
|
2437
2457
|
for (var t = 1; t < arguments.length; t++) {
|
|
2438
2458
|
var n = arguments[t];
|
|
2439
2459
|
for (var r in n) {
|
|
@@ -2441,18 +2461,18 @@
|
|
|
2441
2461
|
}
|
|
2442
2462
|
}
|
|
2443
2463
|
return e;
|
|
2444
|
-
},
|
|
2464
|
+
}, io.apply(null, arguments);
|
|
2445
2465
|
}
|
|
2446
|
-
var
|
|
2447
|
-
odd:
|
|
2448
|
-
even:
|
|
2449
|
-
none:
|
|
2466
|
+
var ao = {
|
|
2467
|
+
odd: Or,
|
|
2468
|
+
even: Er,
|
|
2469
|
+
none: kr
|
|
2450
2470
|
};
|
|
2451
2471
|
/** @public */
|
|
2452
2472
|
/** @public */
|
|
2453
2473
|
/** @public */
|
|
2454
2474
|
/** @public */
|
|
2455
|
-
/** @public */ var
|
|
2475
|
+
/** @public */ var lo = {
|
|
2456
2476
|
/** @private. Generally passed by Table rather than added directly. */
|
|
2457
2477
|
activeElementId: i().string,
|
|
2458
2478
|
actionPrimary: i().element,
|
|
@@ -2491,30 +2511,30 @@
|
|
|
2491
2511
|
/** @private. */
|
|
2492
2512
|
stripe: i().oneOf([ "odd", "even", "none" ])
|
|
2493
2513
|
};
|
|
2494
|
-
var
|
|
2514
|
+
var co = {
|
|
2495
2515
|
stripe: "none",
|
|
2496
2516
|
primaryColumnIndex: 0
|
|
2497
2517
|
};
|
|
2498
|
-
var
|
|
2518
|
+
var so = r().forwardRef((function(e, t) {
|
|
2499
2519
|
var n = (0, M.useSplunkTheme)(), o = n.isCompact;
|
|
2500
2520
|
var i = o ? "20px" : "24px";
|
|
2501
2521
|
|
|
2502
|
-
return r().createElement(
|
|
2522
|
+
return r().createElement(Qn(), io({
|
|
2503
2523
|
content: (0, P._)("Actions"),
|
|
2504
2524
|
contentRelationship: "label"
|
|
2505
|
-
}, e), r().createElement(
|
|
2525
|
+
}, e), r().createElement(Gn(), {
|
|
2506
2526
|
appearance: "subtle",
|
|
2507
2527
|
"data-test": "actions-secondary-toggle",
|
|
2508
|
-
icon: r().createElement(
|
|
2528
|
+
icon: r().createElement(Vn(), {
|
|
2509
2529
|
height: i,
|
|
2510
2530
|
width: i
|
|
2511
2531
|
}),
|
|
2512
2532
|
elementRef: t
|
|
2513
2533
|
}));
|
|
2514
2534
|
}));
|
|
2515
|
-
function
|
|
2535
|
+
function uo(e) {
|
|
2516
2536
|
var t;
|
|
2517
|
-
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, _ =
|
|
2537
|
+
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, _ = ro(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" ]);
|
|
2518
2538
|
var q = (0, n.useMemo)((function() {
|
|
2519
2539
|
return {
|
|
2520
2540
|
id: f ? u : (0, z.createGUID)(),
|
|
@@ -2523,8 +2543,8 @@
|
|
|
2523
2543
|
}), [ f, u ]);
|
|
2524
2544
|
var A = (0, l.useSortable)(q), N = A.attributes, H = A.listeners, M = A.transform, L = A.transition, $ = A.setNodeRef, W = A.setActivatorNodeRef;
|
|
2525
2545
|
var K = (0, n.useMemo)((function() {
|
|
2526
|
-
return f ?
|
|
2527
|
-
transform:
|
|
2546
|
+
return f ? Zr(Zr({}, D), {}, {
|
|
2547
|
+
transform: Kn.CSS.Translate.toString(M),
|
|
2528
2548
|
transition: L
|
|
2529
2549
|
}) : D;
|
|
2530
2550
|
}), [ f, M, L, D ]);
|
|
@@ -2630,12 +2650,12 @@
|
|
|
2630
2650
|
var re = (0, T.sprintf)((0, P._)("%(selected)s"), {
|
|
2631
2651
|
selected: j ? "selected" : "unselected"
|
|
2632
2652
|
});
|
|
2633
|
-
var oe =
|
|
2653
|
+
var oe = ao[I];
|
|
2634
2654
|
var ie = b ? n.Children.count(h) + 1 : undefined;
|
|
2635
2655
|
var ae = w ? "false" : undefined;
|
|
2636
2656
|
var le = function e() {
|
|
2637
2657
|
|
|
2638
|
-
return r().createElement(
|
|
2658
|
+
return r().createElement(so, null);
|
|
2639
2659
|
};
|
|
2640
2660
|
var ce = (0, T.sprintf)((0, P._)("Collapse row - %(rowLabelValue)s"), {
|
|
2641
2661
|
rowLabelValue: ee
|
|
@@ -2644,7 +2664,7 @@
|
|
|
2644
2664
|
rowLabelValue: ee
|
|
2645
2665
|
});
|
|
2646
2666
|
|
|
2647
|
-
return r().createElement(oe,
|
|
2667
|
+
return r().createElement(oe, io({
|
|
2648
2668
|
"data-test": "row",
|
|
2649
2669
|
"data-test-selected": k ? j : undefined,
|
|
2650
2670
|
$clickable: !!x,
|
|
@@ -2658,13 +2678,13 @@
|
|
|
2658
2678
|
onKeyDown: U,
|
|
2659
2679
|
$rowSelected: !!(k && j),
|
|
2660
2680
|
style: K
|
|
2661
|
-
}), f && m != null && r().createElement(
|
|
2681
|
+
}), f && m != null && r().createElement(Sr, io({
|
|
2662
2682
|
"aria-label": (0, T.sprintf)((0, P._)("Reorder %(rowLabelValue)s"), {
|
|
2663
2683
|
rowLabelValue: ee
|
|
2664
2684
|
}),
|
|
2665
2685
|
setActivatorNodeRef: W,
|
|
2666
2686
|
listeners: H
|
|
2667
|
-
}, N)), k && r().createElement(
|
|
2687
|
+
}, N)), k && r().createElement(Rr, {
|
|
2668
2688
|
align: "center",
|
|
2669
2689
|
appearance: x ? "rowLink" : "data",
|
|
2670
2690
|
disabled: d,
|
|
@@ -2672,7 +2692,7 @@
|
|
|
2672
2692
|
"data-movable-column": ae,
|
|
2673
2693
|
rowSpan: ie,
|
|
2674
2694
|
"data-test": "toggle"
|
|
2675
|
-
}, r().createElement(
|
|
2695
|
+
}, r().createElement(Lr, {
|
|
2676
2696
|
"aria-label": (0, T.sprintf)((0, P._)("%(rowLabelValue)s %(selectedString)s"), {
|
|
2677
2697
|
rowLabelValue: ee,
|
|
2678
2698
|
selectedString: re
|
|
@@ -2688,18 +2708,18 @@
|
|
|
2688
2708
|
expand: b,
|
|
2689
2709
|
rowSpan: ie,
|
|
2690
2710
|
variant: "expand"
|
|
2691
|
-
}, r().createElement(
|
|
2711
|
+
}, r().createElement(br, {
|
|
2692
2712
|
expanded: b,
|
|
2693
2713
|
onClick: X,
|
|
2694
2714
|
title: b ? ce : se,
|
|
2695
2715
|
"aria-controls": b ? y : undefined,
|
|
2696
2716
|
"aria-expanded": b
|
|
2697
|
-
})), v && !h && r().createElement(
|
|
2717
|
+
})), v && !h && r().createElement(jr, {
|
|
2698
2718
|
variant: "expand",
|
|
2699
2719
|
"data-movable-column": ae
|
|
2700
2720
|
}), Z, o && !i && !a && r().createElement(Ye, {
|
|
2701
2721
|
align: "right",
|
|
2702
|
-
appearance:
|
|
2722
|
+
appearance: x ? "rowLink" : "data",
|
|
2703
2723
|
"data-test": "row-actions",
|
|
2704
2724
|
variant: "actions",
|
|
2705
2725
|
"data-movable-column": ae
|
|
@@ -2709,53 +2729,53 @@
|
|
|
2709
2729
|
"data-test": "row-actions",
|
|
2710
2730
|
variant: "actions",
|
|
2711
2731
|
"data-movable-column": ae
|
|
2712
|
-
}, i && Y(), a && r().createElement(
|
|
2732
|
+
}, i && Y(), a && r().createElement(Yn(), {
|
|
2713
2733
|
toggle: le()
|
|
2714
2734
|
}, J())));
|
|
2715
2735
|
}
|
|
2716
|
-
|
|
2717
|
-
var
|
|
2718
|
-
|
|
2719
|
-
var t =
|
|
2736
|
+
uo.propTypes = lo;
|
|
2737
|
+
var fo = function(e) {
|
|
2738
|
+
Fr(n, e);
|
|
2739
|
+
var t = Ur(n);
|
|
2720
2740
|
function n() {
|
|
2721
|
-
|
|
2741
|
+
$r(this, n);
|
|
2722
2742
|
return t.apply(this, arguments);
|
|
2723
2743
|
}
|
|
2724
|
-
|
|
2744
|
+
Kr(n, [ {
|
|
2725
2745
|
key: "render",
|
|
2726
2746
|
// @docs-props-type RowPropsBase
|
|
2727
2747
|
value: function e() {
|
|
2728
2748
|
|
|
2729
|
-
return r().createElement(
|
|
2749
|
+
return r().createElement(uo, this.props);
|
|
2730
2750
|
}
|
|
2731
2751
|
} ]);
|
|
2732
2752
|
return n;
|
|
2733
2753
|
}(n.Component);
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
/* harmony default export */ const
|
|
2754
|
+
eo(fo, "splunkUiType", "Table.Row");
|
|
2755
|
+
eo(fo, "propTypes", lo);
|
|
2756
|
+
eo(fo, "defaultProps", co);
|
|
2757
|
+
fo.propTypes = lo;
|
|
2758
|
+
/* harmony default export */ const po = fo;
|
|
2739
2759
|
// CONCATENATED MODULE: ./src/Table/HeadStyles.ts
|
|
2740
|
-
var
|
|
2760
|
+
var vo = H().thead.withConfig({
|
|
2741
2761
|
displayName: "HeadStyles__Styled",
|
|
2742
2762
|
componentId: "iap21t-0"
|
|
2743
2763
|
})([ "", ";" ], M.mixins.reset("table-header-group"));
|
|
2744
|
-
var
|
|
2764
|
+
var bo = H()(Hn).withConfig({
|
|
2745
2765
|
displayName: "HeadStyles__StyledToggleAll",
|
|
2746
2766
|
componentId: "iap21t-1"
|
|
2747
2767
|
})([ "width:", ";" ], (0, M.pick)({
|
|
2748
2768
|
enterprise: "42px",
|
|
2749
2769
|
prisma: "40px"
|
|
2750
2770
|
}));
|
|
2751
|
-
var
|
|
2771
|
+
var yo = H()(Hn).withConfig({
|
|
2752
2772
|
displayName: "HeadStyles__StyledInfo",
|
|
2753
2773
|
componentId: "iap21t-2"
|
|
2754
2774
|
})([ "width:", ";" ], (0, M.pick)({
|
|
2755
2775
|
enterprise: "32px",
|
|
2756
2776
|
prisma: "40px"
|
|
2757
2777
|
}));
|
|
2758
|
-
var
|
|
2778
|
+
var ho = H()(Hn).withConfig({
|
|
2759
2779
|
displayName: "HeadStyles__StyledDragRow",
|
|
2760
2780
|
componentId: "iap21t-3"
|
|
2761
2781
|
})([ "width:", ";" ], (0, M.pick)({
|
|
@@ -2763,16 +2783,16 @@
|
|
|
2763
2783
|
prisma: "40px"
|
|
2764
2784
|
}));
|
|
2765
2785
|
// CONCATENATED MODULE: ./src/Table/Head.tsx
|
|
2766
|
-
function
|
|
2786
|
+
function mo(e) {
|
|
2767
2787
|
"@babel/helpers - typeof";
|
|
2768
|
-
return
|
|
2788
|
+
return mo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
2769
2789
|
return typeof e;
|
|
2770
2790
|
} : function(e) {
|
|
2771
2791
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2772
|
-
},
|
|
2792
|
+
}, mo(e);
|
|
2773
2793
|
}
|
|
2774
|
-
function
|
|
2775
|
-
return
|
|
2794
|
+
function go() {
|
|
2795
|
+
return go = Object.assign ? Object.assign.bind() : function(e) {
|
|
2776
2796
|
for (var t = 1; t < arguments.length; t++) {
|
|
2777
2797
|
var n = arguments[t];
|
|
2778
2798
|
for (var r in n) {
|
|
@@ -2780,24 +2800,24 @@
|
|
|
2780
2800
|
}
|
|
2781
2801
|
}
|
|
2782
2802
|
return e;
|
|
2783
|
-
},
|
|
2803
|
+
}, go.apply(null, arguments);
|
|
2784
2804
|
}
|
|
2785
|
-
function
|
|
2805
|
+
function wo(e, t) {
|
|
2786
2806
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2787
2807
|
}
|
|
2788
|
-
function
|
|
2808
|
+
function xo(e, t) {
|
|
2789
2809
|
for (var n = 0; n < t.length; n++) {
|
|
2790
2810
|
var r = t[n];
|
|
2791
2811
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
2792
|
-
Object.defineProperty(e,
|
|
2812
|
+
Object.defineProperty(e, To(r.key), r);
|
|
2793
2813
|
}
|
|
2794
2814
|
}
|
|
2795
|
-
function
|
|
2796
|
-
return t &&
|
|
2815
|
+
function Co(e, t, n) {
|
|
2816
|
+
return t && xo(e.prototype, t), n && xo(e, n), Object.defineProperty(e, "prototype", {
|
|
2797
2817
|
writable: !1
|
|
2798
2818
|
}), e;
|
|
2799
2819
|
}
|
|
2800
|
-
function
|
|
2820
|
+
function So(e, t) {
|
|
2801
2821
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
2802
2822
|
e.prototype = Object.create(t && t.prototype, {
|
|
2803
2823
|
constructor: {
|
|
@@ -2807,69 +2827,69 @@
|
|
|
2807
2827
|
}
|
|
2808
2828
|
}), Object.defineProperty(e, "prototype", {
|
|
2809
2829
|
writable: !1
|
|
2810
|
-
}), t &&
|
|
2830
|
+
}), t && ko(e, t);
|
|
2811
2831
|
}
|
|
2812
|
-
function
|
|
2813
|
-
return
|
|
2832
|
+
function ko(e, t) {
|
|
2833
|
+
return ko = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
2814
2834
|
return e.__proto__ = t, e;
|
|
2815
|
-
},
|
|
2835
|
+
}, ko(e, t);
|
|
2816
2836
|
}
|
|
2817
|
-
function
|
|
2818
|
-
var t =
|
|
2837
|
+
function Oo(e) {
|
|
2838
|
+
var t = jo();
|
|
2819
2839
|
return function() {
|
|
2820
|
-
var n, r =
|
|
2840
|
+
var n, r = Io(e);
|
|
2821
2841
|
if (t) {
|
|
2822
|
-
var o =
|
|
2842
|
+
var o = Io(this).constructor;
|
|
2823
2843
|
n = Reflect.construct(r, arguments, o);
|
|
2824
2844
|
} else n = r.apply(this, arguments);
|
|
2825
|
-
return
|
|
2845
|
+
return Eo(this, n);
|
|
2826
2846
|
};
|
|
2827
2847
|
}
|
|
2828
|
-
function
|
|
2829
|
-
if (t && ("object" ==
|
|
2848
|
+
function Eo(e, t) {
|
|
2849
|
+
if (t && ("object" == mo(t) || "function" == typeof t)) return t;
|
|
2830
2850
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2831
|
-
return
|
|
2851
|
+
return Ro(e);
|
|
2832
2852
|
}
|
|
2833
|
-
function
|
|
2853
|
+
function Ro(e) {
|
|
2834
2854
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2835
2855
|
return e;
|
|
2836
2856
|
}
|
|
2837
|
-
function
|
|
2857
|
+
function jo() {
|
|
2838
2858
|
try {
|
|
2839
2859
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
2840
2860
|
} catch (e) {}
|
|
2841
|
-
return (
|
|
2861
|
+
return (jo = function t() {
|
|
2842
2862
|
return !!e;
|
|
2843
2863
|
})();
|
|
2844
2864
|
}
|
|
2845
|
-
function
|
|
2846
|
-
return
|
|
2865
|
+
function Io(e) {
|
|
2866
|
+
return Io = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2847
2867
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2848
|
-
},
|
|
2868
|
+
}, Io(e);
|
|
2849
2869
|
}
|
|
2850
|
-
function
|
|
2851
|
-
return (t =
|
|
2870
|
+
function Po(e, t, n) {
|
|
2871
|
+
return (t = To(t)) in e ? Object.defineProperty(e, t, {
|
|
2852
2872
|
value: n,
|
|
2853
2873
|
enumerable: !0,
|
|
2854
2874
|
configurable: !0,
|
|
2855
2875
|
writable: !0
|
|
2856
2876
|
}) : e[t] = n, e;
|
|
2857
2877
|
}
|
|
2858
|
-
function
|
|
2859
|
-
var t =
|
|
2860
|
-
return "symbol" ==
|
|
2878
|
+
function To(e) {
|
|
2879
|
+
var t = Do(e, "string");
|
|
2880
|
+
return "symbol" == mo(t) ? t : t + "";
|
|
2861
2881
|
}
|
|
2862
|
-
function
|
|
2863
|
-
if ("object" !=
|
|
2882
|
+
function Do(e, t) {
|
|
2883
|
+
if ("object" != mo(e) || !e) return e;
|
|
2864
2884
|
var n = e[Symbol.toPrimitive];
|
|
2865
2885
|
if (void 0 !== n) {
|
|
2866
2886
|
var r = n.call(e, t || "default");
|
|
2867
|
-
if ("object" !=
|
|
2887
|
+
if ("object" != mo(r)) return r;
|
|
2868
2888
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2869
2889
|
}
|
|
2870
2890
|
return ("string" === t ? String : Number)(e);
|
|
2871
2891
|
}
|
|
2872
|
-
var
|
|
2892
|
+
var _o = {
|
|
2873
2893
|
/** @private. */
|
|
2874
2894
|
actions: i().arrayOf(i().node),
|
|
2875
2895
|
/** @private. */
|
|
@@ -2901,25 +2921,25 @@
|
|
|
2901
2921
|
/** @private. */
|
|
2902
2922
|
rowSelection: i().oneOf([ "all", "some", "none" ])
|
|
2903
2923
|
};
|
|
2904
|
-
var
|
|
2924
|
+
var qo = {
|
|
2905
2925
|
cellMinWidth: 60,
|
|
2906
2926
|
actions: []
|
|
2907
2927
|
};
|
|
2908
|
-
var
|
|
2909
|
-
var
|
|
2910
|
-
var
|
|
2911
|
-
var
|
|
2912
|
-
|
|
2913
|
-
var t =
|
|
2928
|
+
var Ao = 3;
|
|
2929
|
+
var zo = 2;
|
|
2930
|
+
var No = 1;
|
|
2931
|
+
var Ho = function(e) {
|
|
2932
|
+
So(o, e);
|
|
2933
|
+
var t = Oo(o);
|
|
2914
2934
|
// @docs-props-type HeadPropsBase
|
|
2915
2935
|
function o(e) {
|
|
2916
2936
|
var r;
|
|
2917
|
-
|
|
2937
|
+
wo(this, o);
|
|
2918
2938
|
r = t.call(this, e);
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2939
|
+
Po(Ro(r), "cells", void 0);
|
|
2940
|
+
Po(Ro(r), "el", null);
|
|
2941
|
+
Po(Ro(r), "providedWidths", []);
|
|
2942
|
+
Po(Ro(r), "onRequestMoveColumn", (function(e) {
|
|
2923
2943
|
var t = e.columnId, o = e.fromIndex, i = e.toIndex;
|
|
2924
2944
|
if (i < n.Children.toArray(r.props.children).length) {
|
|
2925
2945
|
var a, l;
|
|
@@ -2931,7 +2951,7 @@
|
|
|
2931
2951
|
});
|
|
2932
2952
|
}
|
|
2933
2953
|
}));
|
|
2934
|
-
|
|
2954
|
+
Po(Ro(r), "manageResize", (function(e, t) {
|
|
2935
2955
|
var n = t.columnId, o = t.id, i = t.index, a = t.width;
|
|
2936
2956
|
var l = r.props, c = l.cellMinWidth, s = l.onRequestResizeColumn;
|
|
2937
2957
|
var u = r.context.tableContainerWidthWithoutBorders;
|
|
@@ -3034,13 +3054,13 @@
|
|
|
3034
3054
|
}
|
|
3035
3055
|
}
|
|
3036
3056
|
}));
|
|
3037
|
-
|
|
3057
|
+
Po(Ro(r), "handleMount", (function(e) {
|
|
3038
3058
|
r.el = e;
|
|
3039
3059
|
B(r.props.elementRef, e);
|
|
3040
3060
|
}));
|
|
3041
|
-
|
|
3061
|
+
Po(Ro(r), "handleDragStart", (function(e, t) {
|
|
3042
3062
|
var n, o;
|
|
3043
|
-
var i =
|
|
3063
|
+
var i = $t();
|
|
3044
3064
|
r.setState({
|
|
3045
3065
|
dragColumnId: t
|
|
3046
3066
|
});
|
|
@@ -3049,7 +3069,7 @@
|
|
|
3049
3069
|
dragIndex: e
|
|
3050
3070
|
});
|
|
3051
3071
|
}));
|
|
3052
|
-
|
|
3072
|
+
Po(Ro(r), "handleDragEnd", (function() {
|
|
3053
3073
|
var e = r.state.dragColumnId;
|
|
3054
3074
|
var t = r.props.dragIndex;
|
|
3055
3075
|
var n = r.calculateGuideIndex();
|
|
@@ -3071,7 +3091,7 @@
|
|
|
3071
3091
|
if (false) {}
|
|
3072
3092
|
return r;
|
|
3073
3093
|
}
|
|
3074
|
-
|
|
3094
|
+
Co(o, [ {
|
|
3075
3095
|
key: "componentDidUpdate",
|
|
3076
3096
|
value: function e() {
|
|
3077
3097
|
if (false) {}
|
|
@@ -3085,7 +3105,7 @@
|
|
|
3085
3105
|
key: "getCellWidths",
|
|
3086
3106
|
value: function e() {
|
|
3087
3107
|
var t, n, r;
|
|
3088
|
-
var o =
|
|
3108
|
+
var o = $t();
|
|
3089
3109
|
var i = Array.from((t = (n = this.el) === null || n === void 0 ? void 0 : (r = n.firstElementChild) === null || r === void 0 ? void 0 : r.children) !== null && t !== void 0 ? t : []);
|
|
3090
3110
|
var a = i.map((function(e) {
|
|
3091
3111
|
var t = o.getComputedStyle(e);
|
|
@@ -3132,7 +3152,7 @@
|
|
|
3132
3152
|
}, {
|
|
3133
3153
|
key: "cleanupDrag",
|
|
3134
3154
|
value: function e() {
|
|
3135
|
-
var t =
|
|
3155
|
+
var t = $t();
|
|
3136
3156
|
t.removeEventListener("dragend", this.handleDragEnd);
|
|
3137
3157
|
this.cells = undefined;
|
|
3138
3158
|
}
|
|
@@ -3182,36 +3202,36 @@
|
|
|
3182
3202
|
I = (0, P._)("All rows selected");
|
|
3183
3203
|
}
|
|
3184
3204
|
|
|
3185
|
-
return r().createElement(
|
|
3205
|
+
return r().createElement(vo, go({
|
|
3186
3206
|
ref: this.handleMount,
|
|
3187
3207
|
"data-test": j
|
|
3188
|
-
}, g()(this.props, et()(o.propTypes))), r().createElement(
|
|
3208
|
+
}, g()(this.props, et()(o.propTypes))), r().createElement(po, null, s && r().createElement(ho, {
|
|
3189
3209
|
key: "drag_rows_head_cell",
|
|
3190
3210
|
"data-test": "drag-rows-head-cell",
|
|
3191
3211
|
align: "center",
|
|
3192
3212
|
resizable: false,
|
|
3193
|
-
zIndex: C +
|
|
3194
|
-
}), v && r().createElement(
|
|
3213
|
+
zIndex: C + Ao
|
|
3214
|
+
}), v && r().createElement(bo, {
|
|
3195
3215
|
key: "toggle_all",
|
|
3196
3216
|
resizable: false,
|
|
3197
3217
|
align: "center",
|
|
3198
3218
|
variant: "toggleAll",
|
|
3199
3219
|
truncate: false,
|
|
3200
|
-
zIndex: C +
|
|
3220
|
+
zIndex: C + zo,
|
|
3201
3221
|
"data-test": "toggle-all"
|
|
3202
|
-
}, r().createElement(
|
|
3222
|
+
}, r().createElement(Lr, {
|
|
3203
3223
|
allRows: true,
|
|
3204
3224
|
"aria-label": I,
|
|
3205
3225
|
onClick: v,
|
|
3206
3226
|
selected: E
|
|
3207
|
-
})), u && r().createElement(
|
|
3227
|
+
})), u && r().createElement(yo, {
|
|
3208
3228
|
key: "more_info_head_cell",
|
|
3209
3229
|
"data-test": "more-info-head-cell",
|
|
3210
3230
|
align: "center",
|
|
3211
3231
|
resizable: false,
|
|
3212
3232
|
variant: "info",
|
|
3213
|
-
zIndex: C +
|
|
3214
|
-
}, r().createElement(
|
|
3233
|
+
zIndex: C + No
|
|
3234
|
+
}, r().createElement(Wn, null)), k, a.length > 0 && r().createElement(Hn, {
|
|
3215
3235
|
hasActionsHead: true,
|
|
3216
3236
|
key: "actions_head_cell",
|
|
3217
3237
|
"data-test": "actions-head-cell",
|
|
@@ -3223,7 +3243,7 @@
|
|
|
3223
3243
|
},
|
|
3224
3244
|
variant: "actions",
|
|
3225
3245
|
zIndex: 1
|
|
3226
|
-
}, a), a.length === 0 && l && r().createElement(
|
|
3246
|
+
}, a), a.length === 0 && l && r().createElement(Hn, {
|
|
3227
3247
|
key: "actions_head_cell",
|
|
3228
3248
|
"data-test": "actions-head-cell",
|
|
3229
3249
|
align: "right",
|
|
@@ -3246,31 +3266,31 @@
|
|
|
3246
3266
|
} ]);
|
|
3247
3267
|
return o;
|
|
3248
3268
|
}(n.Component);
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
/* harmony default export */ const
|
|
3269
|
+
Po(Ho, "contextType", pn);
|
|
3270
|
+
Po(Ho, "splunkUiType", "Table.Head");
|
|
3271
|
+
Po(Ho, "propTypes", _o);
|
|
3272
|
+
Po(Ho, "defaultProps", qo);
|
|
3273
|
+
/* harmony default export */ const Mo = Ho;
|
|
3254
3274
|
// CONCATENATED MODULE: external "lodash/isFinite"
|
|
3255
|
-
const
|
|
3256
|
-
var
|
|
3275
|
+
const Lo = require("lodash/isFinite");
|
|
3276
|
+
var Bo = e.n(Lo);
|
|
3257
3277
|
// CONCATENATED MODULE: external "lodash/isFunction"
|
|
3258
|
-
const
|
|
3259
|
-
var
|
|
3278
|
+
const $o = require("lodash/isFunction");
|
|
3279
|
+
var Wo = e.n($o);
|
|
3260
3280
|
// CONCATENATED MODULE: external "@splunk/react-ui/Popover"
|
|
3261
|
-
const
|
|
3262
|
-
var
|
|
3281
|
+
const Ko = require("@splunk/react-ui/Popover");
|
|
3282
|
+
var Fo = e.n(Ko);
|
|
3263
3283
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
3264
|
-
function
|
|
3284
|
+
function Vo(e) {
|
|
3265
3285
|
"@babel/helpers - typeof";
|
|
3266
|
-
return
|
|
3286
|
+
return Vo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
3267
3287
|
return typeof e;
|
|
3268
3288
|
} : function(e) {
|
|
3269
3289
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3270
|
-
},
|
|
3290
|
+
}, Vo(e);
|
|
3271
3291
|
}
|
|
3272
|
-
function
|
|
3273
|
-
return
|
|
3292
|
+
function Uo() {
|
|
3293
|
+
return Uo = Object.assign ? Object.assign.bind() : function(e) {
|
|
3274
3294
|
for (var t = 1; t < arguments.length; t++) {
|
|
3275
3295
|
var n = arguments[t];
|
|
3276
3296
|
for (var r in n) {
|
|
@@ -3278,50 +3298,50 @@
|
|
|
3278
3298
|
}
|
|
3279
3299
|
}
|
|
3280
3300
|
return e;
|
|
3281
|
-
},
|
|
3301
|
+
}, Uo.apply(null, arguments);
|
|
3282
3302
|
}
|
|
3283
|
-
function
|
|
3284
|
-
return
|
|
3303
|
+
function Go(e) {
|
|
3304
|
+
return Qo(e) || Jo(e) || Yo(e) || Xo();
|
|
3285
3305
|
}
|
|
3286
|
-
function
|
|
3306
|
+
function Xo() {
|
|
3287
3307
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3288
3308
|
}
|
|
3289
|
-
function
|
|
3309
|
+
function Yo(e, t) {
|
|
3290
3310
|
if (e) {
|
|
3291
|
-
if ("string" == typeof e) return
|
|
3311
|
+
if ("string" == typeof e) return Zo(e, t);
|
|
3292
3312
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3293
|
-
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) ?
|
|
3313
|
+
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) ? Zo(e, t) : void 0;
|
|
3294
3314
|
}
|
|
3295
3315
|
}
|
|
3296
|
-
function
|
|
3316
|
+
function Jo(e) {
|
|
3297
3317
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
3298
3318
|
}
|
|
3299
|
-
function
|
|
3300
|
-
if (Array.isArray(e)) return
|
|
3319
|
+
function Qo(e) {
|
|
3320
|
+
if (Array.isArray(e)) return Zo(e);
|
|
3301
3321
|
}
|
|
3302
|
-
function
|
|
3322
|
+
function Zo(e, t) {
|
|
3303
3323
|
(null == t || t > e.length) && (t = e.length);
|
|
3304
3324
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
3305
3325
|
r[n] = e[n];
|
|
3306
3326
|
}
|
|
3307
3327
|
return r;
|
|
3308
3328
|
}
|
|
3309
|
-
function
|
|
3329
|
+
function ei(e, t) {
|
|
3310
3330
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3311
3331
|
}
|
|
3312
|
-
function
|
|
3332
|
+
function ti(e, t) {
|
|
3313
3333
|
for (var n = 0; n < t.length; n++) {
|
|
3314
3334
|
var r = t[n];
|
|
3315
3335
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
3316
|
-
Object.defineProperty(e,
|
|
3336
|
+
Object.defineProperty(e, di(r.key), r);
|
|
3317
3337
|
}
|
|
3318
3338
|
}
|
|
3319
|
-
function
|
|
3320
|
-
return t &&
|
|
3339
|
+
function ni(e, t, n) {
|
|
3340
|
+
return t && ti(e.prototype, t), n && ti(e, n), Object.defineProperty(e, "prototype", {
|
|
3321
3341
|
writable: !1
|
|
3322
3342
|
}), e;
|
|
3323
3343
|
}
|
|
3324
|
-
function
|
|
3344
|
+
function ri(e, t) {
|
|
3325
3345
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
3326
3346
|
e.prototype = Object.create(t && t.prototype, {
|
|
3327
3347
|
constructor: {
|
|
@@ -3331,80 +3351,80 @@
|
|
|
3331
3351
|
}
|
|
3332
3352
|
}), Object.defineProperty(e, "prototype", {
|
|
3333
3353
|
writable: !1
|
|
3334
|
-
}), t &&
|
|
3354
|
+
}), t && oi(e, t);
|
|
3335
3355
|
}
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3356
|
+
function oi(e, t) {
|
|
3357
|
+
return oi = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
3338
3358
|
return e.__proto__ = t, e;
|
|
3339
|
-
},
|
|
3359
|
+
}, oi(e, t);
|
|
3340
3360
|
}
|
|
3341
|
-
function
|
|
3342
|
-
var t =
|
|
3361
|
+
function ii(e) {
|
|
3362
|
+
var t = ci();
|
|
3343
3363
|
return function() {
|
|
3344
|
-
var n, r =
|
|
3364
|
+
var n, r = si(e);
|
|
3345
3365
|
if (t) {
|
|
3346
|
-
var o =
|
|
3366
|
+
var o = si(this).constructor;
|
|
3347
3367
|
n = Reflect.construct(r, arguments, o);
|
|
3348
3368
|
} else n = r.apply(this, arguments);
|
|
3349
|
-
return
|
|
3369
|
+
return ai(this, n);
|
|
3350
3370
|
};
|
|
3351
3371
|
}
|
|
3352
|
-
function
|
|
3353
|
-
if (t && ("object" ==
|
|
3372
|
+
function ai(e, t) {
|
|
3373
|
+
if (t && ("object" == Vo(t) || "function" == typeof t)) return t;
|
|
3354
3374
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3355
|
-
return
|
|
3375
|
+
return li(e);
|
|
3356
3376
|
}
|
|
3357
|
-
function
|
|
3377
|
+
function li(e) {
|
|
3358
3378
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3359
3379
|
return e;
|
|
3360
3380
|
}
|
|
3361
|
-
function
|
|
3381
|
+
function ci() {
|
|
3362
3382
|
try {
|
|
3363
3383
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
3364
3384
|
} catch (e) {}
|
|
3365
|
-
return (
|
|
3385
|
+
return (ci = function t() {
|
|
3366
3386
|
return !!e;
|
|
3367
3387
|
})();
|
|
3368
3388
|
}
|
|
3369
|
-
function
|
|
3370
|
-
return
|
|
3389
|
+
function si(e) {
|
|
3390
|
+
return si = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
3371
3391
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
3372
|
-
},
|
|
3392
|
+
}, si(e);
|
|
3373
3393
|
}
|
|
3374
|
-
function
|
|
3375
|
-
return (t =
|
|
3394
|
+
function ui(e, t, n) {
|
|
3395
|
+
return (t = di(t)) in e ? Object.defineProperty(e, t, {
|
|
3376
3396
|
value: n,
|
|
3377
3397
|
enumerable: !0,
|
|
3378
3398
|
configurable: !0,
|
|
3379
3399
|
writable: !0
|
|
3380
3400
|
}) : e[t] = n, e;
|
|
3381
3401
|
}
|
|
3382
|
-
function
|
|
3383
|
-
var t =
|
|
3384
|
-
return "symbol" ==
|
|
3402
|
+
function di(e) {
|
|
3403
|
+
var t = fi(e, "string");
|
|
3404
|
+
return "symbol" == Vo(t) ? t : t + "";
|
|
3385
3405
|
}
|
|
3386
|
-
function
|
|
3387
|
-
if ("object" !=
|
|
3406
|
+
function fi(e, t) {
|
|
3407
|
+
if ("object" != Vo(e) || !e) return e;
|
|
3388
3408
|
var n = e[Symbol.toPrimitive];
|
|
3389
3409
|
if (void 0 !== n) {
|
|
3390
3410
|
var r = n.call(e, t || "default");
|
|
3391
|
-
if ("object" !=
|
|
3411
|
+
if ("object" != Vo(r)) return r;
|
|
3392
3412
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3393
3413
|
}
|
|
3394
3414
|
return ("string" === t ? String : Number)(e);
|
|
3395
3415
|
}
|
|
3396
3416
|
/** @public */
|
|
3397
3417
|
/** @public */
|
|
3398
|
-
/** @public */ var
|
|
3399
|
-
var
|
|
3418
|
+
/** @public */ var pi = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
|
|
3419
|
+
var vi = {
|
|
3400
3420
|
align: i().oneOf([ "left", "center", "right" ]),
|
|
3401
3421
|
canCoverHead: i().bool,
|
|
3402
3422
|
children: i().node.isRequired,
|
|
3403
|
-
closeReasons: i().arrayOf(i().oneOf(
|
|
3423
|
+
closeReasons: i().arrayOf(i().oneOf(pi)),
|
|
3404
3424
|
columnId: i().any,
|
|
3405
3425
|
defaultPlacement: i().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
|
|
3406
3426
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
3407
|
-
focusToggleReasons: i().arrayOf(i().oneOf(
|
|
3427
|
+
focusToggleReasons: i().arrayOf(i().oneOf(pi)),
|
|
3408
3428
|
/** @private The index of the cell, skipping the info column. */
|
|
3409
3429
|
index: i().number,
|
|
3410
3430
|
label: i().node,
|
|
@@ -3442,10 +3462,10 @@
|
|
|
3442
3462
|
/** @private. */
|
|
3443
3463
|
zIndex: i().number
|
|
3444
3464
|
};
|
|
3445
|
-
var
|
|
3465
|
+
var bi = {
|
|
3446
3466
|
align: "left",
|
|
3447
3467
|
canCoverHead: true,
|
|
3448
|
-
closeReasons:
|
|
3468
|
+
closeReasons: pi,
|
|
3449
3469
|
defaultPlacement: "below",
|
|
3450
3470
|
focusToggleReasons: [ "contentClick", "escapeKey", "toggleClick" ],
|
|
3451
3471
|
repositionMode: "flip",
|
|
@@ -3456,9 +3476,9 @@
|
|
|
3456
3476
|
visible: true,
|
|
3457
3477
|
zIndex: 1
|
|
3458
3478
|
};
|
|
3459
|
-
var
|
|
3460
|
-
|
|
3461
|
-
var t =
|
|
3479
|
+
var yi = function(e) {
|
|
3480
|
+
ri(n, e);
|
|
3481
|
+
var t = ii(n);
|
|
3462
3482
|
// @docs-props-type HeadDropdownCellPropsBase
|
|
3463
3483
|
/**
|
|
3464
3484
|
* Enumeration of the possible reasons for closing the Select.
|
|
@@ -3466,23 +3486,23 @@
|
|
|
3466
3486
|
* docs extraction.
|
|
3467
3487
|
*/ function n(e) {
|
|
3468
3488
|
var r;
|
|
3469
|
-
|
|
3489
|
+
ei(this, n);
|
|
3470
3490
|
r = t.call(this, e);
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3491
|
+
ui(li(r), "cellId", void 0);
|
|
3492
|
+
ui(li(r), "controlledExternally", void 0);
|
|
3493
|
+
ui(li(r), "popoverId", void 0);
|
|
3494
|
+
ui(li(r), "handleMount", (function(e) {
|
|
3475
3495
|
r.setState({
|
|
3476
3496
|
el: e
|
|
3477
3497
|
});
|
|
3478
3498
|
B(r.props.elementRef, e);
|
|
3479
3499
|
}));
|
|
3480
|
-
|
|
3500
|
+
ui(li(r), "handleInnerButtonMount", (function(e) {
|
|
3481
3501
|
r.setState({
|
|
3482
3502
|
innerButtonEl: e
|
|
3483
3503
|
});
|
|
3484
3504
|
}));
|
|
3485
|
-
|
|
3505
|
+
ui(li(r), "handleRequestClose", (function(e) {
|
|
3486
3506
|
var t = e.reason, n = e.event;
|
|
3487
3507
|
var o = r.props, i = o.closeReasons, a = o.columnId, l = o.focusToggleReasons, c = o.index, s = o.onRequestClose;
|
|
3488
3508
|
if (t === "clickAway" && n !== undefined) {
|
|
@@ -3511,7 +3531,7 @@
|
|
|
3511
3531
|
});
|
|
3512
3532
|
}
|
|
3513
3533
|
}));
|
|
3514
|
-
|
|
3534
|
+
ui(li(r), "handleClick", (function(e) {
|
|
3515
3535
|
var t = r.props, n = t.columnId, o = t.index;
|
|
3516
3536
|
// ignore clicks on the resize handle
|
|
3517
3537
|
if (e.target.getAttribute("data-test") === "resize") {
|
|
@@ -3542,7 +3562,7 @@
|
|
|
3542
3562
|
}
|
|
3543
3563
|
}
|
|
3544
3564
|
}));
|
|
3545
|
-
|
|
3565
|
+
ui(li(r), "handleKeyDown", (function(e) {
|
|
3546
3566
|
var t = r.props, n = t.columnId, o = t.index, i = t.onKeyDown, a = t.onRequestMoveColumn;
|
|
3547
3567
|
if (e.target.getAttribute("data-test") !== "resize") {
|
|
3548
3568
|
if ((0, E.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
|
|
@@ -3566,20 +3586,20 @@
|
|
|
3566
3586
|
});
|
|
3567
3587
|
}
|
|
3568
3588
|
}));
|
|
3569
|
-
|
|
3589
|
+
ui(li(r), "handleContentClick", (function(e) {
|
|
3570
3590
|
r.handleRequestClose({
|
|
3571
3591
|
reason: "contentClick",
|
|
3572
3592
|
event: e
|
|
3573
3593
|
});
|
|
3574
3594
|
}));
|
|
3575
|
-
|
|
3595
|
+
ui(li(r), "handleDragStart", (function(e, t) {
|
|
3576
3596
|
var n, o;
|
|
3577
3597
|
r.setState({
|
|
3578
3598
|
isDragging: true
|
|
3579
3599
|
});
|
|
3580
3600
|
(n = (o = r.props).onDragStart) === null || n === void 0 ? void 0 : n.call(o, e, t);
|
|
3581
3601
|
}));
|
|
3582
|
-
|
|
3602
|
+
ui(li(r), "handleDragEnd", (function() {
|
|
3583
3603
|
r.setState({
|
|
3584
3604
|
isDragging: false
|
|
3585
3605
|
});
|
|
@@ -3597,7 +3617,7 @@
|
|
|
3597
3617
|
if (false) {}
|
|
3598
3618
|
return r;
|
|
3599
3619
|
}
|
|
3600
|
-
|
|
3620
|
+
ni(n, [ {
|
|
3601
3621
|
key: "componentDidUpdate",
|
|
3602
3622
|
value: function e(t) {
|
|
3603
3623
|
if (t.visible && !this.props.visible) {
|
|
@@ -3635,7 +3655,7 @@
|
|
|
3635
3655
|
var q = f || this.cellId;
|
|
3636
3656
|
var A = this.context.headType;
|
|
3637
3657
|
|
|
3638
|
-
return r().createElement(Tt,
|
|
3658
|
+
return r().createElement(Tt, Uo({
|
|
3639
3659
|
style: ot()(S, {
|
|
3640
3660
|
width: j
|
|
3641
3661
|
}),
|
|
@@ -3644,12 +3664,12 @@
|
|
|
3644
3664
|
$variant: E,
|
|
3645
3665
|
id: R ? q : undefined,
|
|
3646
3666
|
ref: this.handleMount
|
|
3647
|
-
}, g()(this.props, [].concat(
|
|
3667
|
+
}, g()(this.props, [].concat(Go(Object.keys(n.propTypes)), [ "id", "style" ])), {
|
|
3648
3668
|
onClick: this.handleClick,
|
|
3649
3669
|
onKeyDown: this.handleKeyDown,
|
|
3650
3670
|
$isFixed: A === "fixed",
|
|
3651
3671
|
$zIndex: I
|
|
3652
|
-
}), r().createElement(
|
|
3672
|
+
}), r().createElement(dn, {
|
|
3653
3673
|
elementRef: this.handleInnerButtonMount,
|
|
3654
3674
|
label: v,
|
|
3655
3675
|
align: a,
|
|
@@ -3670,7 +3690,7 @@
|
|
|
3670
3690
|
"aria-expanded": this.isOpen()
|
|
3671
3691
|
}), C !== "none" && r().createElement(Dt, {
|
|
3672
3692
|
$position: C
|
|
3673
|
-
}), r().createElement(
|
|
3693
|
+
}), r().createElement(Fo(), {
|
|
3674
3694
|
align: "center",
|
|
3675
3695
|
open: !!T && this.isOpen(),
|
|
3676
3696
|
autoCloseWhenOffScreen: _()(s, "offScreen"),
|
|
@@ -3683,10 +3703,10 @@
|
|
|
3683
3703
|
id: this.popoverId,
|
|
3684
3704
|
"aria-labelledby": f || this.cellId,
|
|
3685
3705
|
takeFocus: k,
|
|
3686
|
-
pointTo: D !== undefined &&
|
|
3706
|
+
pointTo: D !== undefined && Bo()(D) ? {
|
|
3687
3707
|
x: D - ((t = T === null || T === void 0 ? void 0 : T.getBoundingClientRect().left) !== null && t !== void 0 ? t : 0)
|
|
3688
3708
|
} : undefined
|
|
3689
|
-
},
|
|
3709
|
+
}, Wo()(c) ? function() {
|
|
3690
3710
|
|
|
3691
3711
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
3692
3712
|
return r().createElement("div", {
|
|
@@ -3702,28 +3722,28 @@
|
|
|
3702
3722
|
} ]);
|
|
3703
3723
|
return n;
|
|
3704
3724
|
}(n.Component);
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
/* harmony default export */ const
|
|
3725
|
+
ui(yi, "splunkUiType", "Table.HeadDropdownCell");
|
|
3726
|
+
ui(yi, "possibleCloseReasons", pi);
|
|
3727
|
+
ui(yi, "propTypes", vi);
|
|
3728
|
+
ui(yi, "defaultProps", bi);
|
|
3729
|
+
ui(yi, "contextType", pn);
|
|
3730
|
+
/* harmony default export */ const hi = yi;
|
|
3711
3731
|
// CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
|
|
3712
|
-
function
|
|
3732
|
+
function mi(e) {
|
|
3713
3733
|
"@babel/helpers - typeof";
|
|
3714
|
-
return
|
|
3734
|
+
return mi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
3715
3735
|
return typeof e;
|
|
3716
3736
|
} : function(e) {
|
|
3717
3737
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3718
|
-
},
|
|
3738
|
+
}, mi(e);
|
|
3719
3739
|
}
|
|
3720
|
-
function
|
|
3721
|
-
return
|
|
3740
|
+
function gi(e, t) {
|
|
3741
|
+
return Ci(e) || xi(e, t) || Oi(e, t) || wi();
|
|
3722
3742
|
}
|
|
3723
|
-
function
|
|
3743
|
+
function wi() {
|
|
3724
3744
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3725
3745
|
}
|
|
3726
|
-
function
|
|
3746
|
+
function xi(e, t) {
|
|
3727
3747
|
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
3728
3748
|
if (null != n) {
|
|
3729
3749
|
var r, o, i, a, l = [], c = !0, s = !1;
|
|
@@ -3745,68 +3765,68 @@
|
|
|
3745
3765
|
return l;
|
|
3746
3766
|
}
|
|
3747
3767
|
}
|
|
3748
|
-
function
|
|
3768
|
+
function Ci(e) {
|
|
3749
3769
|
if (Array.isArray(e)) return e;
|
|
3750
3770
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3771
|
+
function Si(e) {
|
|
3772
|
+
return Ri(e) || Ei(e) || Oi(e) || ki();
|
|
3753
3773
|
}
|
|
3754
|
-
function
|
|
3774
|
+
function ki() {
|
|
3755
3775
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3756
3776
|
}
|
|
3757
|
-
function
|
|
3777
|
+
function Oi(e, t) {
|
|
3758
3778
|
if (e) {
|
|
3759
|
-
if ("string" == typeof e) return
|
|
3779
|
+
if ("string" == typeof e) return ji(e, t);
|
|
3760
3780
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3761
|
-
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) ?
|
|
3781
|
+
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) ? ji(e, t) : void 0;
|
|
3762
3782
|
}
|
|
3763
3783
|
}
|
|
3764
|
-
function
|
|
3784
|
+
function Ei(e) {
|
|
3765
3785
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
3766
3786
|
}
|
|
3767
|
-
function
|
|
3768
|
-
if (Array.isArray(e)) return
|
|
3787
|
+
function Ri(e) {
|
|
3788
|
+
if (Array.isArray(e)) return ji(e);
|
|
3769
3789
|
}
|
|
3770
|
-
function
|
|
3790
|
+
function ji(e, t) {
|
|
3771
3791
|
(null == t || t > e.length) && (t = e.length);
|
|
3772
3792
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
3773
3793
|
r[n] = e[n];
|
|
3774
3794
|
}
|
|
3775
3795
|
return r;
|
|
3776
3796
|
}
|
|
3777
|
-
function
|
|
3797
|
+
function Ii(e, t) {
|
|
3778
3798
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3779
3799
|
}
|
|
3780
|
-
function
|
|
3800
|
+
function Pi(e, t) {
|
|
3781
3801
|
for (var n = 0; n < t.length; n++) {
|
|
3782
3802
|
var r = t[n];
|
|
3783
3803
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
3784
|
-
Object.defineProperty(e,
|
|
3804
|
+
Object.defineProperty(e, _i(r.key), r);
|
|
3785
3805
|
}
|
|
3786
3806
|
}
|
|
3787
|
-
function
|
|
3788
|
-
return t &&
|
|
3807
|
+
function Ti(e, t, n) {
|
|
3808
|
+
return t && Pi(e.prototype, t), n && Pi(e, n), Object.defineProperty(e, "prototype", {
|
|
3789
3809
|
writable: !1
|
|
3790
3810
|
}), e;
|
|
3791
3811
|
}
|
|
3792
|
-
function
|
|
3793
|
-
return (t =
|
|
3812
|
+
function Di(e, t, n) {
|
|
3813
|
+
return (t = _i(t)) in e ? Object.defineProperty(e, t, {
|
|
3794
3814
|
value: n,
|
|
3795
3815
|
enumerable: !0,
|
|
3796
3816
|
configurable: !0,
|
|
3797
3817
|
writable: !0
|
|
3798
3818
|
}) : e[t] = n, e;
|
|
3799
3819
|
}
|
|
3800
|
-
function
|
|
3801
|
-
var t =
|
|
3802
|
-
return "symbol" ==
|
|
3820
|
+
function _i(e) {
|
|
3821
|
+
var t = qi(e, "string");
|
|
3822
|
+
return "symbol" == mi(t) ? t : t + "";
|
|
3803
3823
|
}
|
|
3804
|
-
function
|
|
3805
|
-
if ("object" !=
|
|
3824
|
+
function qi(e, t) {
|
|
3825
|
+
if ("object" != mi(e) || !e) return e;
|
|
3806
3826
|
var n = e[Symbol.toPrimitive];
|
|
3807
3827
|
if (void 0 !== n) {
|
|
3808
3828
|
var r = n.call(e, t || "default");
|
|
3809
|
-
if ("object" !=
|
|
3829
|
+
if ("object" != mi(r)) return r;
|
|
3810
3830
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3811
3831
|
}
|
|
3812
3832
|
return ("string" === t ? String : Number)(e);
|
|
@@ -3814,21 +3834,21 @@
|
|
|
3814
3834
|
// based on https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/keyboard/KeyboardSensor.ts
|
|
3815
3835
|
// eslint-disable-next-line max-classes-per-file
|
|
3816
3836
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/utilities/Listeners.ts
|
|
3817
|
-
var
|
|
3837
|
+
var Ai = function() {
|
|
3818
3838
|
function e(t) {
|
|
3819
3839
|
var n = this;
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3840
|
+
Ii(this, e);
|
|
3841
|
+
Di(this, "listeners", []);
|
|
3842
|
+
Di(this, "removeAll", (function() {
|
|
3823
3843
|
n.listeners.forEach((function(e) {
|
|
3824
3844
|
var t;
|
|
3825
|
-
return (t = n.target) === null || t === void 0 ? void 0 : t.removeEventListener.apply(t,
|
|
3845
|
+
return (t = n.target) === null || t === void 0 ? void 0 : t.removeEventListener.apply(t, Si(e));
|
|
3826
3846
|
}));
|
|
3827
3847
|
}));
|
|
3828
3848
|
this.target = t;
|
|
3829
3849
|
this.target = t;
|
|
3830
3850
|
}
|
|
3831
|
-
|
|
3851
|
+
Ti(e, [ {
|
|
3832
3852
|
key: "add",
|
|
3833
3853
|
value: function e(t, n, r) {
|
|
3834
3854
|
var o;
|
|
@@ -3839,7 +3859,7 @@
|
|
|
3839
3859
|
return e;
|
|
3840
3860
|
}();
|
|
3841
3861
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/parseTransform.ts
|
|
3842
|
-
function
|
|
3862
|
+
function zi(e) {
|
|
3843
3863
|
if (e.startsWith("matrix3d(")) {
|
|
3844
3864
|
var t = e.slice(9, -1).split(/, /);
|
|
3845
3865
|
return {
|
|
@@ -3861,8 +3881,8 @@
|
|
|
3861
3881
|
return null;
|
|
3862
3882
|
}
|
|
3863
3883
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/inverseTransform.ts
|
|
3864
|
-
function
|
|
3865
|
-
var r =
|
|
3884
|
+
function Ni(e, t, n) {
|
|
3885
|
+
var r = zi(t);
|
|
3866
3886
|
if (!r) {
|
|
3867
3887
|
return e;
|
|
3868
3888
|
}
|
|
@@ -3880,17 +3900,17 @@
|
|
|
3880
3900
|
left: c
|
|
3881
3901
|
};
|
|
3882
3902
|
}
|
|
3883
|
-
var
|
|
3903
|
+
var Hi = {
|
|
3884
3904
|
ignoreTransform: false
|
|
3885
3905
|
};
|
|
3886
3906
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/rect/getRect.ts
|
|
3887
|
-
function
|
|
3888
|
-
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
3907
|
+
function Mi(e) {
|
|
3908
|
+
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Hi;
|
|
3889
3909
|
var n = e.getBoundingClientRect();
|
|
3890
3910
|
if (t.ignoreTransform) {
|
|
3891
|
-
var r = (0,
|
|
3911
|
+
var r = (0, Kn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
|
|
3892
3912
|
if (o) {
|
|
3893
|
-
n =
|
|
3913
|
+
n = Ni(n, o, i);
|
|
3894
3914
|
}
|
|
3895
3915
|
}
|
|
3896
3916
|
var a = n, l = a.top, c = a.left, s = a.width, u = a.height, d = a.bottom, f = a.right;
|
|
@@ -3903,7 +3923,7 @@
|
|
|
3903
3923
|
right: f
|
|
3904
3924
|
};
|
|
3905
3925
|
}
|
|
3906
|
-
function
|
|
3926
|
+
function Li(e) {
|
|
3907
3927
|
if (e === document.scrollingElement) {
|
|
3908
3928
|
var t = window, n = t.innerWidth, r = t.innerHeight;
|
|
3909
3929
|
return {
|
|
@@ -3926,19 +3946,19 @@
|
|
|
3926
3946
|
};
|
|
3927
3947
|
}
|
|
3928
3948
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
|
|
3929
|
-
function
|
|
3930
|
-
if (!
|
|
3949
|
+
function Bi(e) {
|
|
3950
|
+
if (!Kn.canUseDOM || !e) {
|
|
3931
3951
|
return false;
|
|
3932
3952
|
}
|
|
3933
3953
|
return e === document.scrollingElement;
|
|
3934
3954
|
}
|
|
3935
3955
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollPosition.ts
|
|
3936
|
-
function
|
|
3956
|
+
function $i(e) {
|
|
3937
3957
|
var t = {
|
|
3938
3958
|
x: 0,
|
|
3939
3959
|
y: 0
|
|
3940
3960
|
};
|
|
3941
|
-
var n =
|
|
3961
|
+
var n = Bi(e) ? {
|
|
3942
3962
|
height: window.innerHeight,
|
|
3943
3963
|
width: window.innerWidth
|
|
3944
3964
|
} : {
|
|
@@ -3963,20 +3983,20 @@
|
|
|
3963
3983
|
};
|
|
3964
3984
|
}
|
|
3965
3985
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/coordinates/constants.ts
|
|
3966
|
-
var
|
|
3986
|
+
var Wi = {
|
|
3967
3987
|
x: 0,
|
|
3968
3988
|
y: 0
|
|
3969
3989
|
};
|
|
3970
3990
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
|
|
3971
|
-
function
|
|
3991
|
+
function Ki(e) {
|
|
3972
3992
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
|
|
3973
|
-
|
|
3993
|
+
Kn.getWindow)(e).getComputedStyle(e);
|
|
3974
3994
|
return t.position === "fixed";
|
|
3975
3995
|
}
|
|
3976
3996
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
|
|
3977
|
-
function
|
|
3997
|
+
function Fi(e) {
|
|
3978
3998
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
|
|
3979
|
-
|
|
3999
|
+
Kn.getWindow)(e).getComputedStyle(e);
|
|
3980
4000
|
var n = /(auto|scroll|overlay)/;
|
|
3981
4001
|
var r = [ "overflow", "overflowX", "overflowY" ];
|
|
3982
4002
|
return r.some((function(e) {
|
|
@@ -3985,7 +4005,7 @@
|
|
|
3985
4005
|
}));
|
|
3986
4006
|
}
|
|
3987
4007
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
|
|
3988
|
-
function
|
|
4008
|
+
function Vi(e, t) {
|
|
3989
4009
|
var n = [];
|
|
3990
4010
|
function r(o) {
|
|
3991
4011
|
if (t != null && n.length >= t) {
|
|
@@ -3994,23 +4014,23 @@
|
|
|
3994
4014
|
if (!o) {
|
|
3995
4015
|
return n;
|
|
3996
4016
|
}
|
|
3997
|
-
if ((0,
|
|
4017
|
+
if ((0, Kn.isDocument)(o) && o.scrollingElement != null && !n.includes(o.scrollingElement)) {
|
|
3998
4018
|
n.push(o.scrollingElement);
|
|
3999
4019
|
return n;
|
|
4000
4020
|
}
|
|
4001
|
-
if (!(0,
|
|
4021
|
+
if (!(0, Kn.isHTMLElement)(o) || (0, Kn.isSVGElement)(o)) {
|
|
4002
4022
|
return n;
|
|
4003
4023
|
}
|
|
4004
4024
|
if (n.includes(o)) {
|
|
4005
4025
|
return n;
|
|
4006
4026
|
}
|
|
4007
|
-
var i = (0,
|
|
4027
|
+
var i = (0, Kn.getWindow)(e).getComputedStyle(o);
|
|
4008
4028
|
if (o !== e) {
|
|
4009
|
-
if (
|
|
4029
|
+
if (Fi(o, i)) {
|
|
4010
4030
|
n.push(o);
|
|
4011
4031
|
}
|
|
4012
4032
|
}
|
|
4013
|
-
if (
|
|
4033
|
+
if (Ki(o, i)) {
|
|
4014
4034
|
return n;
|
|
4015
4035
|
}
|
|
4016
4036
|
return r(o.parentNode);
|
|
@@ -4021,23 +4041,23 @@
|
|
|
4021
4041
|
return r(e);
|
|
4022
4042
|
}
|
|
4023
4043
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
|
|
4024
|
-
function
|
|
4025
|
-
var t =
|
|
4044
|
+
function Ui(e) {
|
|
4045
|
+
var t = Vi(e, 1), n = gi(t, 1), r = n[0];
|
|
4026
4046
|
return r !== null && r !== void 0 ? r : null;
|
|
4027
4047
|
}
|
|
4028
|
-
var
|
|
4048
|
+
var Gi = {
|
|
4029
4049
|
start: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ],
|
|
4030
4050
|
cancel: [ a.KeyboardCode.Esc ],
|
|
4031
4051
|
end: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ]
|
|
4032
4052
|
};
|
|
4033
4053
|
// https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/scrollIntoViewIfNeeded.ts
|
|
4034
|
-
function
|
|
4035
|
-
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
4054
|
+
function Xi(e) {
|
|
4055
|
+
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Mi;
|
|
4036
4056
|
if (!e) {
|
|
4037
4057
|
return;
|
|
4038
4058
|
}
|
|
4039
4059
|
var n = t(e), r = n.top, o = n.left, i = n.bottom, a = n.right;
|
|
4040
|
-
var l =
|
|
4060
|
+
var l = Ui(e);
|
|
4041
4061
|
if (!l) {
|
|
4042
4062
|
return;
|
|
4043
4063
|
}
|
|
@@ -4048,23 +4068,23 @@
|
|
|
4048
4068
|
});
|
|
4049
4069
|
}
|
|
4050
4070
|
}
|
|
4051
|
-
var
|
|
4071
|
+
var Yi = function() {
|
|
4052
4072
|
function e(t) {
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4073
|
+
Ii(this, e);
|
|
4074
|
+
Di(this, "autoScrollEnabled", false);
|
|
4075
|
+
Di(this, "referenceCoordinates", void 0);
|
|
4076
|
+
Di(this, "listeners", void 0);
|
|
4077
|
+
Di(this, "windowListeners", void 0);
|
|
4058
4078
|
this.props = t;
|
|
4059
4079
|
var n = t.event.target;
|
|
4060
4080
|
this.props = t;
|
|
4061
|
-
this.listeners = new
|
|
4062
|
-
this.windowListeners = new
|
|
4081
|
+
this.listeners = new Ai((0, Kn.getOwnerDocument)(n));
|
|
4082
|
+
this.windowListeners = new Ai((0, Kn.getWindow)(n));
|
|
4063
4083
|
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
4064
4084
|
this.handleCancel = this.handleCancel.bind(this);
|
|
4065
4085
|
this.attach();
|
|
4066
4086
|
}
|
|
4067
|
-
|
|
4087
|
+
Ti(e, [ {
|
|
4068
4088
|
key: "attach",
|
|
4069
4089
|
value: function e() {
|
|
4070
4090
|
var t = this;
|
|
@@ -4081,16 +4101,16 @@
|
|
|
4081
4101
|
var t = this.props, n = t.activeNode, r = t.onStart;
|
|
4082
4102
|
var o = n.node.current;
|
|
4083
4103
|
if (o) {
|
|
4084
|
-
|
|
4104
|
+
Xi(o);
|
|
4085
4105
|
}
|
|
4086
|
-
r(
|
|
4106
|
+
r(Wi);
|
|
4087
4107
|
}
|
|
4088
4108
|
}, {
|
|
4089
4109
|
key: "handleKeyDown",
|
|
4090
4110
|
value: function e(t) {
|
|
4091
|
-
if ((0,
|
|
4111
|
+
if ((0, Kn.isKeyboardEvent)(t)) {
|
|
4092
4112
|
var n = this.props, r = n.active, o = n.context, i = n.options;
|
|
4093
|
-
var l = i.keyboardCodes, c = l === void 0 ?
|
|
4113
|
+
var l = i.keyboardCodes, c = l === void 0 ? Gi : l, s = i.coordinateGetter, u = i.scrollBehavior, d = u === void 0 ? "smooth" : u;
|
|
4094
4114
|
var f = t.code;
|
|
4095
4115
|
if (c.end.includes(f)) {
|
|
4096
4116
|
this.handleEnd(t);
|
|
@@ -4104,7 +4124,7 @@
|
|
|
4104
4124
|
var v = p ? {
|
|
4105
4125
|
x: p.left,
|
|
4106
4126
|
y: p.top
|
|
4107
|
-
} :
|
|
4127
|
+
} : Wi;
|
|
4108
4128
|
if (!this.referenceCoordinates) {
|
|
4109
4129
|
this.referenceCoordinates = v;
|
|
4110
4130
|
}
|
|
@@ -4114,7 +4134,7 @@
|
|
|
4114
4134
|
currentCoordinates: v
|
|
4115
4135
|
});
|
|
4116
4136
|
if (b) {
|
|
4117
|
-
var y = (0,
|
|
4137
|
+
var y = (0, Kn.subtract)(b, v);
|
|
4118
4138
|
var h = {
|
|
4119
4139
|
x: 0,
|
|
4120
4140
|
y: 0
|
|
@@ -4123,8 +4143,8 @@
|
|
|
4123
4143
|
for (var g = 0; g < m.length; g += 1) {
|
|
4124
4144
|
var w = m[g];
|
|
4125
4145
|
var x = t.code;
|
|
4126
|
-
var C =
|
|
4127
|
-
var I =
|
|
4146
|
+
var C = $i(w), S = C.isTop, k = C.isRight, O = C.isLeft, E = C.isBottom, R = C.maxScroll, j = C.minScroll;
|
|
4147
|
+
var I = Li(w);
|
|
4128
4148
|
// isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
|
|
4129
4149
|
// we want to scroll only when a dragging node will be out of view,
|
|
4130
4150
|
// originally it tries to always place a dragging node in the middle of the container
|
|
@@ -4182,7 +4202,7 @@
|
|
|
4182
4202
|
break;
|
|
4183
4203
|
}
|
|
4184
4204
|
}
|
|
4185
|
-
this.handleMove(t, (0,
|
|
4205
|
+
this.handleMove(t, (0, Kn.add)((0, Kn.subtract)(b, this.referenceCoordinates), h));
|
|
4186
4206
|
}
|
|
4187
4207
|
}
|
|
4188
4208
|
}
|
|
@@ -4218,10 +4238,10 @@
|
|
|
4218
4238
|
} ]);
|
|
4219
4239
|
return e;
|
|
4220
4240
|
}();
|
|
4221
|
-
|
|
4241
|
+
Di(Yi, "activators", [ {
|
|
4222
4242
|
eventName: "onKeyDown",
|
|
4223
4243
|
handler: function e(t, n, r) {
|
|
4224
|
-
var o = n.keyboardCodes, i = o === void 0 ?
|
|
4244
|
+
var o = n.keyboardCodes, i = o === void 0 ? Gi : o, a = n.onActivation;
|
|
4225
4245
|
var l = r.active;
|
|
4226
4246
|
var c = t.nativeEvent.code;
|
|
4227
4247
|
if (i.start.includes(c)) {
|
|
@@ -4239,14 +4259,14 @@
|
|
|
4239
4259
|
}
|
|
4240
4260
|
} ]);
|
|
4241
4261
|
// CONCATENATED MODULE: external "lodash/extend"
|
|
4242
|
-
const
|
|
4243
|
-
var
|
|
4262
|
+
const Ji = require("lodash/extend");
|
|
4263
|
+
var Qi = e.n(Ji);
|
|
4244
4264
|
// CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
|
|
4245
|
-
var
|
|
4265
|
+
var Zi = H()(me).withConfig({
|
|
4246
4266
|
displayName: "HeadTableStyles__Styled",
|
|
4247
4267
|
componentId: "g85wgf-0"
|
|
4248
4268
|
})([ "min-width:0;table-layout:fixed;" ]);
|
|
4249
|
-
var
|
|
4269
|
+
var ea = H().div.withConfig({
|
|
4250
4270
|
displayName: "HeadTableStyles__StyledDockedContainer",
|
|
4251
4271
|
componentId: "g85wgf-1"
|
|
4252
4272
|
})([ "overflow:hidden;position:fixed;box-shadow:", ";z-index:", ";@media print{display:none;}" ], (0,
|
|
@@ -4254,21 +4274,21 @@
|
|
|
4254
4274
|
enterprise: M.variables.overlayShadow,
|
|
4255
4275
|
prisma: "none"
|
|
4256
4276
|
}), M.variables.zindexFixedNavbar);
|
|
4257
|
-
var
|
|
4277
|
+
var ta = H()(ea).withConfig({
|
|
4258
4278
|
displayName: "HeadTableStyles__StyledFixedContainer",
|
|
4259
4279
|
componentId: "g85wgf-2"
|
|
4260
4280
|
})([ "position:absolute;box-shadow:none;z-index:1;" ]);
|
|
4261
4281
|
// CONCATENATED MODULE: ./src/Table/HeadTable.tsx
|
|
4262
|
-
function
|
|
4282
|
+
function na(e) {
|
|
4263
4283
|
"@babel/helpers - typeof";
|
|
4264
|
-
return
|
|
4284
|
+
return na = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
4265
4285
|
return typeof e;
|
|
4266
4286
|
} : function(e) {
|
|
4267
4287
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4268
|
-
},
|
|
4288
|
+
}, na(e);
|
|
4269
4289
|
}
|
|
4270
|
-
function
|
|
4271
|
-
return
|
|
4290
|
+
function ra() {
|
|
4291
|
+
return ra = Object.assign ? Object.assign.bind() : function(e) {
|
|
4272
4292
|
for (var t = 1; t < arguments.length; t++) {
|
|
4273
4293
|
var n = arguments[t];
|
|
4274
4294
|
for (var r in n) {
|
|
@@ -4276,11 +4296,11 @@
|
|
|
4276
4296
|
}
|
|
4277
4297
|
}
|
|
4278
4298
|
return e;
|
|
4279
|
-
},
|
|
4299
|
+
}, ra.apply(null, arguments);
|
|
4280
4300
|
}
|
|
4281
|
-
function
|
|
4301
|
+
function oa(e, t) {
|
|
4282
4302
|
if (null == e) return {};
|
|
4283
|
-
var n, r, o =
|
|
4303
|
+
var n, r, o = ia(e, t);
|
|
4284
4304
|
if (Object.getOwnPropertySymbols) {
|
|
4285
4305
|
var i = Object.getOwnPropertySymbols(e);
|
|
4286
4306
|
for (r = 0; r < i.length; r++) {
|
|
@@ -4289,7 +4309,7 @@
|
|
|
4289
4309
|
}
|
|
4290
4310
|
return o;
|
|
4291
4311
|
}
|
|
4292
|
-
function
|
|
4312
|
+
function ia(e, t) {
|
|
4293
4313
|
if (null == e) return {};
|
|
4294
4314
|
var n = {};
|
|
4295
4315
|
for (var r in e) {
|
|
@@ -4300,22 +4320,22 @@
|
|
|
4300
4320
|
}
|
|
4301
4321
|
return n;
|
|
4302
4322
|
}
|
|
4303
|
-
function
|
|
4323
|
+
function aa(e, t) {
|
|
4304
4324
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
4305
4325
|
}
|
|
4306
|
-
function
|
|
4326
|
+
function la(e, t) {
|
|
4307
4327
|
for (var n = 0; n < t.length; n++) {
|
|
4308
4328
|
var r = t[n];
|
|
4309
4329
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
4310
|
-
Object.defineProperty(e,
|
|
4330
|
+
Object.defineProperty(e, ha(r.key), r);
|
|
4311
4331
|
}
|
|
4312
4332
|
}
|
|
4313
|
-
function
|
|
4314
|
-
return t &&
|
|
4333
|
+
function ca(e, t, n) {
|
|
4334
|
+
return t && la(e.prototype, t), n && la(e, n), Object.defineProperty(e, "prototype", {
|
|
4315
4335
|
writable: !1
|
|
4316
4336
|
}), e;
|
|
4317
4337
|
}
|
|
4318
|
-
function
|
|
4338
|
+
function sa(e, t) {
|
|
4319
4339
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
4320
4340
|
e.prototype = Object.create(t && t.prototype, {
|
|
4321
4341
|
constructor: {
|
|
@@ -4325,69 +4345,69 @@
|
|
|
4325
4345
|
}
|
|
4326
4346
|
}), Object.defineProperty(e, "prototype", {
|
|
4327
4347
|
writable: !1
|
|
4328
|
-
}), t &&
|
|
4348
|
+
}), t && ua(e, t);
|
|
4329
4349
|
}
|
|
4330
|
-
function
|
|
4331
|
-
return
|
|
4350
|
+
function ua(e, t) {
|
|
4351
|
+
return ua = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4332
4352
|
return e.__proto__ = t, e;
|
|
4333
|
-
},
|
|
4353
|
+
}, ua(e, t);
|
|
4334
4354
|
}
|
|
4335
|
-
function
|
|
4336
|
-
var t =
|
|
4355
|
+
function da(e) {
|
|
4356
|
+
var t = va();
|
|
4337
4357
|
return function() {
|
|
4338
|
-
var n, r =
|
|
4358
|
+
var n, r = ba(e);
|
|
4339
4359
|
if (t) {
|
|
4340
|
-
var o =
|
|
4360
|
+
var o = ba(this).constructor;
|
|
4341
4361
|
n = Reflect.construct(r, arguments, o);
|
|
4342
4362
|
} else n = r.apply(this, arguments);
|
|
4343
|
-
return
|
|
4363
|
+
return fa(this, n);
|
|
4344
4364
|
};
|
|
4345
4365
|
}
|
|
4346
|
-
function
|
|
4347
|
-
if (t && ("object" ==
|
|
4366
|
+
function fa(e, t) {
|
|
4367
|
+
if (t && ("object" == na(t) || "function" == typeof t)) return t;
|
|
4348
4368
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
4349
|
-
return
|
|
4369
|
+
return pa(e);
|
|
4350
4370
|
}
|
|
4351
|
-
function
|
|
4371
|
+
function pa(e) {
|
|
4352
4372
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4353
4373
|
return e;
|
|
4354
4374
|
}
|
|
4355
|
-
function
|
|
4375
|
+
function va() {
|
|
4356
4376
|
try {
|
|
4357
4377
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
4358
4378
|
} catch (e) {}
|
|
4359
|
-
return (
|
|
4379
|
+
return (va = function t() {
|
|
4360
4380
|
return !!e;
|
|
4361
4381
|
})();
|
|
4362
4382
|
}
|
|
4363
|
-
function
|
|
4364
|
-
return
|
|
4383
|
+
function ba(e) {
|
|
4384
|
+
return ba = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
4365
4385
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
4366
|
-
},
|
|
4386
|
+
}, ba(e);
|
|
4367
4387
|
}
|
|
4368
|
-
function
|
|
4369
|
-
return (t =
|
|
4388
|
+
function ya(e, t, n) {
|
|
4389
|
+
return (t = ha(t)) in e ? Object.defineProperty(e, t, {
|
|
4370
4390
|
value: n,
|
|
4371
4391
|
enumerable: !0,
|
|
4372
4392
|
configurable: !0,
|
|
4373
4393
|
writable: !0
|
|
4374
4394
|
}) : e[t] = n, e;
|
|
4375
4395
|
}
|
|
4376
|
-
function
|
|
4377
|
-
var t =
|
|
4378
|
-
return "symbol" ==
|
|
4396
|
+
function ha(e) {
|
|
4397
|
+
var t = ma(e, "string");
|
|
4398
|
+
return "symbol" == na(t) ? t : t + "";
|
|
4379
4399
|
}
|
|
4380
|
-
function
|
|
4381
|
-
if ("object" !=
|
|
4400
|
+
function ma(e, t) {
|
|
4401
|
+
if ("object" != na(e) || !e) return e;
|
|
4382
4402
|
var n = e[Symbol.toPrimitive];
|
|
4383
4403
|
if (void 0 !== n) {
|
|
4384
4404
|
var r = n.call(e, t || "default");
|
|
4385
|
-
if ("object" !=
|
|
4405
|
+
if ("object" != na(r)) return r;
|
|
4386
4406
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4387
4407
|
}
|
|
4388
4408
|
return ("string" === t ? String : Number)(e);
|
|
4389
4409
|
}
|
|
4390
|
-
var
|
|
4410
|
+
var ga = {
|
|
4391
4411
|
cellWidths: i().arrayOf(i().number).isRequired,
|
|
4392
4412
|
dragIndex: i().number,
|
|
4393
4413
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
@@ -4404,30 +4424,30 @@
|
|
|
4404
4424
|
top: i().number.isRequired,
|
|
4405
4425
|
width: i().number.isRequired
|
|
4406
4426
|
};
|
|
4407
|
-
var
|
|
4427
|
+
var wa = {
|
|
4408
4428
|
horizontalOffset: 0
|
|
4409
4429
|
};
|
|
4410
4430
|
/**
|
|
4411
4431
|
* @private
|
|
4412
4432
|
* HeadTable is an internal component that provides a detached table head that can
|
|
4413
4433
|
* then be positioned in different ways outside of the main table.
|
|
4414
|
-
*/ var
|
|
4415
|
-
|
|
4416
|
-
var t =
|
|
4434
|
+
*/ var xa = function(e) {
|
|
4435
|
+
sa(o, e);
|
|
4436
|
+
var t = da(o);
|
|
4417
4437
|
function o() {
|
|
4418
4438
|
var e;
|
|
4419
|
-
|
|
4439
|
+
aa(this, o);
|
|
4420
4440
|
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) {
|
|
4421
4441
|
r[i] = arguments[i];
|
|
4422
4442
|
}
|
|
4423
4443
|
e = t.call.apply(t, [ this ].concat(r));
|
|
4424
|
-
|
|
4425
|
-
|
|
4444
|
+
ya(pa(e), "head", null);
|
|
4445
|
+
ya(pa(e), "handleHeadMount", (function(t) {
|
|
4426
4446
|
e.head = t;
|
|
4427
4447
|
}));
|
|
4428
4448
|
return e;
|
|
4429
4449
|
}
|
|
4430
|
-
|
|
4450
|
+
ca(o, [ {
|
|
4431
4451
|
key: "getHead",
|
|
4432
4452
|
// eslint-disable-next-line react/no-unused-class-component-methods
|
|
4433
4453
|
value: function e() {
|
|
@@ -4436,9 +4456,9 @@
|
|
|
4436
4456
|
}, {
|
|
4437
4457
|
key: "render",
|
|
4438
4458
|
value: function e() {
|
|
4439
|
-
var t = this.props, o = t.cellWidths, i = t.elementRef, a = t.hasDragColumn, l = t.hasRowExpansion, c = t.hasRowSelection, s = t.headType, u = t.horizontalOffset, d = t.isFixedColumn, f = t.tableStyle, p = t.tableWidth, v = t.tHead, b = t.top, y = t.width, h =
|
|
4459
|
+
var t = this.props, o = t.cellWidths, i = t.elementRef, a = t.hasDragColumn, l = t.hasRowExpansion, c = t.hasRowSelection, s = t.headType, u = t.horizontalOffset, d = t.isFixedColumn, f = t.tableStyle, p = t.tableWidth, v = t.tHead, b = t.top, y = t.width, h = oa(t, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
|
|
4440
4460
|
var m = s === "docked";
|
|
4441
|
-
var w = m ?
|
|
4461
|
+
var w = m ? ea : ta;
|
|
4442
4462
|
var x = 0;
|
|
4443
4463
|
if (l) {
|
|
4444
4464
|
x += 1;
|
|
@@ -4453,7 +4473,7 @@
|
|
|
4453
4473
|
var C = d ? n.Children.toArray(v.props.children) : n.Children.toArray(v.props.children).filter(n.isValidElement).map((function(e, t) {
|
|
4454
4474
|
|
|
4455
4475
|
return (0, n.cloneElement)(e, {
|
|
4456
|
-
style:
|
|
4476
|
+
style: Qi()({}, e.props.style, {
|
|
4457
4477
|
width: o[t + x]
|
|
4458
4478
|
})
|
|
4459
4479
|
});
|
|
@@ -4469,10 +4489,10 @@
|
|
|
4469
4489
|
width: y
|
|
4470
4490
|
},
|
|
4471
4491
|
ref: i
|
|
4472
|
-
}, r().createElement(
|
|
4492
|
+
}, r().createElement(Zi, ra({
|
|
4473
4493
|
"data-test": "".concat(s, "-head-table"),
|
|
4474
4494
|
"data-fixed-column": d ? "true" : undefined,
|
|
4475
|
-
style:
|
|
4495
|
+
style: Qi()({}, f, {
|
|
4476
4496
|
marginLeft: u,
|
|
4477
4497
|
width: d ? undefined : p
|
|
4478
4498
|
})
|
|
@@ -4481,9 +4501,9 @@
|
|
|
4481
4501
|
} ]);
|
|
4482
4502
|
return o;
|
|
4483
4503
|
}(n.Component);
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
/* harmony default export */ const
|
|
4504
|
+
ya(xa, "propTypes", ga);
|
|
4505
|
+
ya(xa, "defaultProps", wa);
|
|
4506
|
+
/* harmony default export */ const Ca = xa;
|
|
4487
4507
|
// CONCATENATED MODULE: ./src/utils/types.ts
|
|
4488
4508
|
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
|
|
4489
4509
|
// regarding the css prop. certain (versions of) libraries included in the compilation
|
|
@@ -4494,36 +4514,36 @@
|
|
|
4494
4514
|
// erroneously included in react-ui's public api.
|
|
4495
4515
|
// see https://github.com/microsoft/TypeScript/pull/12253
|
|
4496
4516
|
// see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
|
|
4497
|
-
function
|
|
4517
|
+
function Sa(e, t) {
|
|
4498
4518
|
if (e === undefined || e === null) {
|
|
4499
4519
|
throw new Error(t !== null && t !== void 0 ? t : "Unexpected undefined or null");
|
|
4500
4520
|
}
|
|
4501
4521
|
}
|
|
4502
4522
|
// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4503
|
-
function
|
|
4523
|
+
function ka(e) {
|
|
4504
4524
|
"@babel/helpers - typeof";
|
|
4505
|
-
return
|
|
4525
|
+
return ka = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
4506
4526
|
return typeof e;
|
|
4507
4527
|
} : function(e) {
|
|
4508
4528
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4509
|
-
},
|
|
4529
|
+
}, ka(e);
|
|
4510
4530
|
}
|
|
4511
|
-
function
|
|
4531
|
+
function Oa(e, t) {
|
|
4512
4532
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
4513
4533
|
}
|
|
4514
|
-
function
|
|
4534
|
+
function Ea(e, t) {
|
|
4515
4535
|
for (var n = 0; n < t.length; n++) {
|
|
4516
4536
|
var r = t[n];
|
|
4517
4537
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
4518
|
-
Object.defineProperty(e,
|
|
4538
|
+
Object.defineProperty(e, za(r.key), r);
|
|
4519
4539
|
}
|
|
4520
4540
|
}
|
|
4521
|
-
function
|
|
4522
|
-
return t &&
|
|
4541
|
+
function Ra(e, t, n) {
|
|
4542
|
+
return t && Ea(e.prototype, t), n && Ea(e, n), Object.defineProperty(e, "prototype", {
|
|
4523
4543
|
writable: !1
|
|
4524
4544
|
}), e;
|
|
4525
4545
|
}
|
|
4526
|
-
function
|
|
4546
|
+
function ja(e, t) {
|
|
4527
4547
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
4528
4548
|
e.prototype = Object.create(t && t.prototype, {
|
|
4529
4549
|
constructor: {
|
|
@@ -4533,70 +4553,70 @@
|
|
|
4533
4553
|
}
|
|
4534
4554
|
}), Object.defineProperty(e, "prototype", {
|
|
4535
4555
|
writable: !1
|
|
4536
|
-
}), t &&
|
|
4556
|
+
}), t && Ia(e, t);
|
|
4537
4557
|
}
|
|
4538
|
-
function
|
|
4539
|
-
return
|
|
4558
|
+
function Ia(e, t) {
|
|
4559
|
+
return Ia = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4540
4560
|
return e.__proto__ = t, e;
|
|
4541
|
-
},
|
|
4561
|
+
}, Ia(e, t);
|
|
4542
4562
|
}
|
|
4543
|
-
function
|
|
4544
|
-
var t =
|
|
4563
|
+
function Pa(e) {
|
|
4564
|
+
var t = _a();
|
|
4545
4565
|
return function() {
|
|
4546
|
-
var n, r =
|
|
4566
|
+
var n, r = qa(e);
|
|
4547
4567
|
if (t) {
|
|
4548
|
-
var o =
|
|
4568
|
+
var o = qa(this).constructor;
|
|
4549
4569
|
n = Reflect.construct(r, arguments, o);
|
|
4550
4570
|
} else n = r.apply(this, arguments);
|
|
4551
|
-
return
|
|
4571
|
+
return Ta(this, n);
|
|
4552
4572
|
};
|
|
4553
4573
|
}
|
|
4554
|
-
function
|
|
4555
|
-
if (t && ("object" ==
|
|
4574
|
+
function Ta(e, t) {
|
|
4575
|
+
if (t && ("object" == ka(t) || "function" == typeof t)) return t;
|
|
4556
4576
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
4557
|
-
return
|
|
4577
|
+
return Da(e);
|
|
4558
4578
|
}
|
|
4559
|
-
function
|
|
4579
|
+
function Da(e) {
|
|
4560
4580
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4561
4581
|
return e;
|
|
4562
4582
|
}
|
|
4563
|
-
function
|
|
4583
|
+
function _a() {
|
|
4564
4584
|
try {
|
|
4565
4585
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
4566
4586
|
} catch (e) {}
|
|
4567
|
-
return (
|
|
4587
|
+
return (_a = function t() {
|
|
4568
4588
|
return !!e;
|
|
4569
4589
|
})();
|
|
4570
4590
|
}
|
|
4571
|
-
function
|
|
4572
|
-
return
|
|
4591
|
+
function qa(e) {
|
|
4592
|
+
return qa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
4573
4593
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
4574
|
-
},
|
|
4594
|
+
}, qa(e);
|
|
4575
4595
|
}
|
|
4576
|
-
function
|
|
4577
|
-
return (t =
|
|
4596
|
+
function Aa(e, t, n) {
|
|
4597
|
+
return (t = za(t)) in e ? Object.defineProperty(e, t, {
|
|
4578
4598
|
value: n,
|
|
4579
4599
|
enumerable: !0,
|
|
4580
4600
|
configurable: !0,
|
|
4581
4601
|
writable: !0
|
|
4582
4602
|
}) : e[t] = n, e;
|
|
4583
4603
|
}
|
|
4584
|
-
function
|
|
4585
|
-
var t =
|
|
4586
|
-
return "symbol" ==
|
|
4604
|
+
function za(e) {
|
|
4605
|
+
var t = Na(e, "string");
|
|
4606
|
+
return "symbol" == ka(t) ? t : t + "";
|
|
4587
4607
|
}
|
|
4588
|
-
function
|
|
4589
|
-
if ("object" !=
|
|
4608
|
+
function Na(e, t) {
|
|
4609
|
+
if ("object" != ka(e) || !e) return e;
|
|
4590
4610
|
var n = e[Symbol.toPrimitive];
|
|
4591
4611
|
if (void 0 !== n) {
|
|
4592
4612
|
var r = n.call(e, t || "default");
|
|
4593
|
-
if ("object" !=
|
|
4613
|
+
if ("object" != ka(r)) return r;
|
|
4594
4614
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4595
4615
|
}
|
|
4596
4616
|
return ("string" === t ? String : Number)(e);
|
|
4597
4617
|
}
|
|
4598
|
-
function
|
|
4599
|
-
return
|
|
4618
|
+
function Ha() {
|
|
4619
|
+
return Ha = Object.assign ? Object.assign.bind() : function(e) {
|
|
4600
4620
|
for (var t = 1; t < arguments.length; t++) {
|
|
4601
4621
|
var n = arguments[t];
|
|
4602
4622
|
for (var r in n) {
|
|
@@ -4604,41 +4624,41 @@
|
|
|
4604
4624
|
}
|
|
4605
4625
|
}
|
|
4606
4626
|
return e;
|
|
4607
|
-
},
|
|
4627
|
+
}, Ha.apply(null, arguments);
|
|
4608
4628
|
}
|
|
4609
|
-
function
|
|
4610
|
-
return
|
|
4629
|
+
function Ma(e) {
|
|
4630
|
+
return $a(e) || Ba(e) || Fa(e) || La();
|
|
4611
4631
|
}
|
|
4612
|
-
function
|
|
4632
|
+
function La() {
|
|
4613
4633
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4614
4634
|
}
|
|
4615
|
-
function
|
|
4635
|
+
function Ba(e) {
|
|
4616
4636
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
4617
4637
|
}
|
|
4618
|
-
function
|
|
4619
|
-
if (Array.isArray(e)) return
|
|
4638
|
+
function $a(e) {
|
|
4639
|
+
if (Array.isArray(e)) return Va(e);
|
|
4620
4640
|
}
|
|
4621
|
-
function
|
|
4622
|
-
return
|
|
4641
|
+
function Wa(e, t) {
|
|
4642
|
+
return Ga(e) || Ua(e, t) || Fa(e, t) || Ka();
|
|
4623
4643
|
}
|
|
4624
|
-
function
|
|
4644
|
+
function Ka() {
|
|
4625
4645
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4626
4646
|
}
|
|
4627
|
-
function
|
|
4647
|
+
function Fa(e, t) {
|
|
4628
4648
|
if (e) {
|
|
4629
|
-
if ("string" == typeof e) return
|
|
4649
|
+
if ("string" == typeof e) return Va(e, t);
|
|
4630
4650
|
var n = {}.toString.call(e).slice(8, -1);
|
|
4631
|
-
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) ?
|
|
4651
|
+
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) ? Va(e, t) : void 0;
|
|
4632
4652
|
}
|
|
4633
4653
|
}
|
|
4634
|
-
function
|
|
4654
|
+
function Va(e, t) {
|
|
4635
4655
|
(null == t || t > e.length) && (t = e.length);
|
|
4636
4656
|
for (var n = 0, r = Array(t); n < t; n++) {
|
|
4637
4657
|
r[n] = e[n];
|
|
4638
4658
|
}
|
|
4639
4659
|
return r;
|
|
4640
4660
|
}
|
|
4641
|
-
function
|
|
4661
|
+
function Ua(e, t) {
|
|
4642
4662
|
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
4643
4663
|
if (null != n) {
|
|
4644
4664
|
var r, o, i, a, l = [], c = !0, s = !1;
|
|
@@ -4660,12 +4680,12 @@
|
|
|
4660
4680
|
return l;
|
|
4661
4681
|
}
|
|
4662
4682
|
}
|
|
4663
|
-
function
|
|
4683
|
+
function Ga(e) {
|
|
4664
4684
|
if (Array.isArray(e)) return e;
|
|
4665
4685
|
}
|
|
4666
|
-
function
|
|
4686
|
+
function Xa(e, t) {
|
|
4667
4687
|
if (null == e) return {};
|
|
4668
|
-
var n, r, o =
|
|
4688
|
+
var n, r, o = Ya(e, t);
|
|
4669
4689
|
if (Object.getOwnPropertySymbols) {
|
|
4670
4690
|
var i = Object.getOwnPropertySymbols(e);
|
|
4671
4691
|
for (r = 0; r < i.length; r++) {
|
|
@@ -4674,7 +4694,7 @@
|
|
|
4674
4694
|
}
|
|
4675
4695
|
return o;
|
|
4676
4696
|
}
|
|
4677
|
-
function
|
|
4697
|
+
function Ya(e, t) {
|
|
4678
4698
|
if (null == e) return {};
|
|
4679
4699
|
var n = {};
|
|
4680
4700
|
for (var r in e) {
|
|
@@ -4689,7 +4709,7 @@
|
|
|
4689
4709
|
// Internal Helper Modules
|
|
4690
4710
|
/** @public */
|
|
4691
4711
|
/** @public */
|
|
4692
|
-
/** @public */ var
|
|
4712
|
+
/** @public */ var Ja = {
|
|
4693
4713
|
actions: i().arrayOf(i().element),
|
|
4694
4714
|
actionsColumnWidth: i().number,
|
|
4695
4715
|
children: i().node,
|
|
@@ -4711,7 +4731,7 @@
|
|
|
4711
4731
|
onRequestResizeColumn: i().func,
|
|
4712
4732
|
resizableFillLayout: i().bool
|
|
4713
4733
|
};
|
|
4714
|
-
var
|
|
4734
|
+
var Qa = {
|
|
4715
4735
|
actions: [],
|
|
4716
4736
|
dockOffset: 0,
|
|
4717
4737
|
headType: "inline",
|
|
@@ -4720,24 +4740,24 @@
|
|
|
4720
4740
|
resizableFillLayout: false,
|
|
4721
4741
|
primaryColumnIndex: 0
|
|
4722
4742
|
};
|
|
4723
|
-
var
|
|
4743
|
+
var Za = function e(t) {
|
|
4724
4744
|
return t === "inline";
|
|
4725
4745
|
};
|
|
4726
|
-
var
|
|
4746
|
+
var el = function e(t) {
|
|
4727
4747
|
return t === "docked";
|
|
4728
4748
|
};
|
|
4729
|
-
var
|
|
4749
|
+
var tl = function e(t) {
|
|
4730
4750
|
return t === "fixed";
|
|
4731
4751
|
};
|
|
4732
|
-
var
|
|
4733
|
-
var n =
|
|
4752
|
+
var nl = function e(t) {
|
|
4753
|
+
var n = $t();
|
|
4734
4754
|
var r = t.getBoundingClientRect();
|
|
4735
4755
|
return {
|
|
4736
4756
|
top: r.top + n.pageYOffset,
|
|
4737
4757
|
left: r.left + n.pageXOffset
|
|
4738
4758
|
};
|
|
4739
4759
|
};
|
|
4740
|
-
var
|
|
4760
|
+
var rl = function e(t) {
|
|
4741
4761
|
var n, r;
|
|
4742
4762
|
var o = Ht();
|
|
4743
4763
|
if (t === undefined || t === null) {
|
|
@@ -4761,14 +4781,14 @@
|
|
|
4761
4781
|
}
|
|
4762
4782
|
return undefined;
|
|
4763
4783
|
};
|
|
4764
|
-
var
|
|
4784
|
+
var ol = function e(t, n) {
|
|
4765
4785
|
return t.indexOf(n) + 1;
|
|
4766
4786
|
};
|
|
4767
|
-
var
|
|
4787
|
+
var il = {
|
|
4768
4788
|
coordinateGetter: l.sortableKeyboardCoordinates
|
|
4769
4789
|
};
|
|
4770
|
-
var
|
|
4771
|
-
var
|
|
4790
|
+
var al = [ c.restrictToParentElement ];
|
|
4791
|
+
var ll = {
|
|
4772
4792
|
draggable: (0, P._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
|
|
4773
4793
|
};
|
|
4774
4794
|
/**
|
|
@@ -4780,7 +4800,7 @@
|
|
|
4780
4800
|
* @param {String} headFocusState.target - Focus can be applied to a 'headCell' or a
|
|
4781
4801
|
* 'resizeButton'.
|
|
4782
4802
|
* @param {Number} headFocusState.index - The index of the element to set focus on.
|
|
4783
|
-
*/ function
|
|
4803
|
+
*/ function cl(e, t) {
|
|
4784
4804
|
var n, r;
|
|
4785
4805
|
var o = t.target, i = t.index;
|
|
4786
4806
|
if (false) {}
|
|
@@ -4795,20 +4815,20 @@
|
|
|
4795
4815
|
if (false) {}
|
|
4796
4816
|
(n = a) === null || n === void 0 ? void 0 : (r = n.focus) === null || r === void 0 ? void 0 : r.call(n);
|
|
4797
4817
|
}
|
|
4798
|
-
function
|
|
4799
|
-
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 =
|
|
4800
|
-
var N = (0, n.useState)([]), H =
|
|
4801
|
-
var B = (0, n.useState)(), $ =
|
|
4802
|
-
var F = (0, n.useState)(), V =
|
|
4803
|
-
var X = (0, n.useState)(), Y =
|
|
4804
|
-
var Z = (0, n.useState)(), ee =
|
|
4818
|
+
function sl(e) {
|
|
4819
|
+
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 = Xa(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
|
|
4820
|
+
var N = (0, n.useState)([]), H = Wa(N, 2), M = H[0], L = H[1];
|
|
4821
|
+
var B = (0, n.useState)(), $ = Wa(B, 2), W = $[0], K = $[1];
|
|
4822
|
+
var F = (0, n.useState)(), V = Wa(F, 2), U = V[0], G = V[1];
|
|
4823
|
+
var X = (0, n.useState)(), Y = Wa(X, 2), J = Y[0], Q = Y[1];
|
|
4824
|
+
var Z = (0, n.useState)(), ee = Wa(Z, 2), te = ee[0], ne = ee[1];
|
|
4805
4825
|
// states are used with dragging effect
|
|
4806
|
-
var re = (0, n.useState)(), oe =
|
|
4807
|
-
var le = (0, n.useState)(), ce =
|
|
4826
|
+
var re = (0, n.useState)(), oe = Wa(re, 2), ie = oe[0], ae = oe[1];
|
|
4827
|
+
var le = (0, n.useState)(), ce = Wa(le, 2), se = ce[0], ue = ce[1];
|
|
4808
4828
|
var de = (0, n.useRef)(true);
|
|
4809
4829
|
var fe = (0, n.useContext)(R.ScrollContainerContext);
|
|
4810
4830
|
var pe = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
|
|
4811
|
-
a.useSensor)(
|
|
4831
|
+
a.useSensor)(Yi, il));
|
|
4812
4832
|
var ve = (0, n.useRef)(null);
|
|
4813
4833
|
var be = (0, n.useRef)(null);
|
|
4814
4834
|
var xe = (0, n.useRef)();
|
|
@@ -4821,8 +4841,8 @@
|
|
|
4821
4841
|
var je = [];
|
|
4822
4842
|
var Ie = [];
|
|
4823
4843
|
var Pe = (0, n.useCallback)((function() {
|
|
4824
|
-
var e =
|
|
4825
|
-
if (
|
|
4844
|
+
var e = $t();
|
|
4845
|
+
if (Za(p)) {
|
|
4826
4846
|
return;
|
|
4827
4847
|
}
|
|
4828
4848
|
var t = Ee.current;
|
|
@@ -4833,7 +4853,7 @@
|
|
|
4833
4853
|
}
|
|
4834
4854
|
var o = n.getCellWidths();
|
|
4835
4855
|
var i = n.getClientHeight();
|
|
4836
|
-
var a =
|
|
4856
|
+
var a = nl(r).top - e.pageYOffset - (i || 0) + r.offsetHeight;
|
|
4837
4857
|
var l = Math.min(a, Number(c));
|
|
4838
4858
|
ne(t === null || t === void 0 ? void 0 : t.clientWidth);
|
|
4839
4859
|
G(r === null || r === void 0 ? void 0 : r.clientWidth);
|
|
@@ -4857,7 +4877,7 @@
|
|
|
4857
4877
|
var Te = (0, n.useCallback)((function(e) {
|
|
4858
4878
|
var t = Ee.current;
|
|
4859
4879
|
C === null || C === void 0 ? void 0 : C(e);
|
|
4860
|
-
if ((
|
|
4880
|
+
if ((tl(p) || el(p)) && t) {
|
|
4861
4881
|
K(-t.scrollLeft);
|
|
4862
4882
|
}
|
|
4863
4883
|
if (ve.current && ke.current !== "dockedScrollBar" && t) {
|
|
@@ -4892,15 +4912,15 @@
|
|
|
4892
4912
|
if (t) {
|
|
4893
4913
|
// On mount, focus the applicable docked head cell if a primary head cell was focused.
|
|
4894
4914
|
if (xe.current) {
|
|
4895
|
-
|
|
4915
|
+
cl(t.getHead(), xe.current);
|
|
4896
4916
|
xe.current = undefined;
|
|
4897
4917
|
}
|
|
4898
4918
|
} else {
|
|
4899
4919
|
var n;
|
|
4900
4920
|
// On unmount, focus the applicable primary head cell if a docked head cell was focused.
|
|
4901
|
-
var r =
|
|
4921
|
+
var r = rl((n = Ce.current) === null || n === void 0 ? void 0 : n.getHead());
|
|
4902
4922
|
if (r) {
|
|
4903
|
-
|
|
4923
|
+
cl(be.current, r);
|
|
4904
4924
|
}
|
|
4905
4925
|
}
|
|
4906
4926
|
Ce.current = t;
|
|
@@ -4980,7 +5000,7 @@
|
|
|
4980
5000
|
Ve();
|
|
4981
5001
|
};
|
|
4982
5002
|
var Ve = function e() {
|
|
4983
|
-
var t =
|
|
5003
|
+
var t = $t();
|
|
4984
5004
|
t.removeEventListener("dragenter", We);
|
|
4985
5005
|
t.removeEventListener("dragover", $e);
|
|
4986
5006
|
t.removeEventListener("drop", Ke);
|
|
@@ -4999,7 +5019,7 @@
|
|
|
4999
5019
|
}), []);
|
|
5000
5020
|
var Ue = function e(t) {
|
|
5001
5021
|
var n = t.dragIndex;
|
|
5002
|
-
var r =
|
|
5022
|
+
var r = $t();
|
|
5003
5023
|
ae(n);
|
|
5004
5024
|
r.addEventListener("dragenter", We);
|
|
5005
5025
|
r.addEventListener("dragover", $e);
|
|
@@ -5072,15 +5092,15 @@
|
|
|
5072
5092
|
};
|
|
5073
5093
|
var Qe = function e() {
|
|
5074
5094
|
var t = Ee.current;
|
|
5075
|
-
var n =
|
|
5076
|
-
if (!
|
|
5095
|
+
var n = $t();
|
|
5096
|
+
if (!el(p) || !Oe.current || !be.current || !t) {
|
|
5077
5097
|
return false;
|
|
5078
5098
|
}
|
|
5079
|
-
var r =
|
|
5099
|
+
var r = nl(t).top;
|
|
5080
5100
|
return n.pageYOffset >= r - (c || 0);
|
|
5081
5101
|
};
|
|
5082
5102
|
var Ze = function e() {
|
|
5083
|
-
var t =
|
|
5103
|
+
var t = $t();
|
|
5084
5104
|
var n = Ee.current;
|
|
5085
5105
|
if (!s || !Oe.current || !n) {
|
|
5086
5106
|
return false;
|
|
@@ -5093,7 +5113,7 @@
|
|
|
5093
5113
|
// FIXME: handle inline
|
|
5094
5114
|
// Save the current head focus state so that it can be applied to the docked version
|
|
5095
5115
|
// after the `HeadTable` mounts.
|
|
5096
|
-
xe.current =
|
|
5116
|
+
xe.current = rl(be.current);
|
|
5097
5117
|
if (M === undefined || U === undefined || J === undefined || te === undefined) {
|
|
5098
5118
|
return false;
|
|
5099
5119
|
}
|
|
@@ -5101,7 +5121,7 @@
|
|
|
5101
5121
|
elementRef: null
|
|
5102
5122
|
});
|
|
5103
5123
|
|
|
5104
|
-
return r().createElement(
|
|
5124
|
+
return r().createElement(Ca, {
|
|
5105
5125
|
headType: "docked",
|
|
5106
5126
|
tHead: i,
|
|
5107
5127
|
cellWidths: M,
|
|
@@ -5122,7 +5142,7 @@
|
|
|
5122
5142
|
return false;
|
|
5123
5143
|
};
|
|
5124
5144
|
var tt = function e() {
|
|
5125
|
-
var t =
|
|
5145
|
+
var t = $t();
|
|
5126
5146
|
if (!Ze()) {
|
|
5127
5147
|
return false;
|
|
5128
5148
|
}
|
|
@@ -5190,7 +5210,7 @@
|
|
|
5190
5210
|
it = e;
|
|
5191
5211
|
}
|
|
5192
5212
|
}));
|
|
5193
|
-
|
|
5213
|
+
Sa(rt, "A Table.Head is required.");
|
|
5194
5214
|
var lt = et(rt, at);
|
|
5195
5215
|
// When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
|
|
5196
5216
|
// interactions will be handled by the overlaid `headTable` instead.
|
|
@@ -5202,8 +5222,8 @@
|
|
|
5202
5222
|
});
|
|
5203
5223
|
}));
|
|
5204
5224
|
rt = (0, n.cloneElement)(rt, {}, ct);
|
|
5205
|
-
var st = fe ||
|
|
5206
|
-
var ut =
|
|
5225
|
+
var st = fe || $t();
|
|
5226
|
+
var ut = tl(p) ? Ee.current : st;
|
|
5207
5227
|
if (P) {
|
|
5208
5228
|
at = false;
|
|
5209
5229
|
}
|
|
@@ -5218,7 +5238,7 @@
|
|
|
5218
5238
|
var pt = {
|
|
5219
5239
|
onDragStart: function e(t) {
|
|
5220
5240
|
var n = t.active.id;
|
|
5221
|
-
return (0, T.sprintf)("Picked up sortable row in position %d of %d.",
|
|
5241
|
+
return (0, T.sprintf)("Picked up sortable row in position %d of %d.", ol(Ie, n), Ie.length);
|
|
5222
5242
|
},
|
|
5223
5243
|
onDragOver: function e(t) {
|
|
5224
5244
|
var n = t.active, r = t.over;
|
|
@@ -5229,25 +5249,25 @@
|
|
|
5229
5249
|
de.current = false;
|
|
5230
5250
|
return undefined;
|
|
5231
5251
|
}
|
|
5232
|
-
return r ? (0, T.sprintf)("Row moved from position %d to position %d of %d.",
|
|
5252
|
+
return r ? (0, T.sprintf)("Row moved from position %d to position %d of %d.", ol(Ie, n.id), ol(Ie, r.id), Ie.length) : undefined;
|
|
5233
5253
|
},
|
|
5234
5254
|
onDragEnd: function e(t) {
|
|
5235
5255
|
var n = t.over;
|
|
5236
|
-
return n ? (0, T.sprintf)("Row dropped at position %d of %d.",
|
|
5256
|
+
return n ? (0, T.sprintf)("Row dropped at position %d of %d.", ol(Ie, n.id), Ie.length) : undefined;
|
|
5237
5257
|
},
|
|
5238
5258
|
onDragCancel: function e(t) {
|
|
5239
5259
|
var n = t.active.id;
|
|
5240
|
-
return (0, T.sprintf)("Row returned to it's starting position of %d.",
|
|
5260
|
+
return (0, T.sprintf)("Row returned to it's starting position of %d.", ol(Ie, n));
|
|
5241
5261
|
}
|
|
5242
5262
|
};
|
|
5243
5263
|
|
|
5244
|
-
return r().createElement(ye,
|
|
5264
|
+
return r().createElement(ye, Ha({
|
|
5245
5265
|
"data-test": "table",
|
|
5246
5266
|
ref: d,
|
|
5247
5267
|
style: k,
|
|
5248
5268
|
"data-test-row-selection": w ? _ : undefined
|
|
5249
|
-
}, g()(z, [].concat(
|
|
5250
|
-
target:
|
|
5269
|
+
}, g()(z, [].concat(Ma(Object.keys(Ja)), [ "style" ]))), r().createElement(O(), {
|
|
5270
|
+
target: $t(),
|
|
5251
5271
|
eventType: "scroll",
|
|
5252
5272
|
listener: _e,
|
|
5253
5273
|
options: {
|
|
@@ -5257,7 +5277,7 @@
|
|
|
5257
5277
|
}), r().createElement(S(), {
|
|
5258
5278
|
handleWidth: true,
|
|
5259
5279
|
onResize: qe
|
|
5260
|
-
}), r().createElement(
|
|
5280
|
+
}), r().createElement(pn.Provider, {
|
|
5261
5281
|
value: ft
|
|
5262
5282
|
}, lt, r().createElement(he, {
|
|
5263
5283
|
onScroll: Te,
|
|
@@ -5267,14 +5287,14 @@
|
|
|
5267
5287
|
value: ut
|
|
5268
5288
|
}, r().createElement(a.DndContext, {
|
|
5269
5289
|
accessibility: {
|
|
5270
|
-
screenReaderInstructions:
|
|
5290
|
+
screenReaderInstructions: ll,
|
|
5271
5291
|
announcements: pt
|
|
5272
5292
|
},
|
|
5273
5293
|
sensors: pe,
|
|
5274
5294
|
onDragEnd: Ge,
|
|
5275
5295
|
onDragCancel: Xe,
|
|
5276
5296
|
collisionDetection: a.closestCenter,
|
|
5277
|
-
modifiers:
|
|
5297
|
+
modifiers: al
|
|
5278
5298
|
}, r().createElement(l.SortableContext, {
|
|
5279
5299
|
items: Ie,
|
|
5280
5300
|
strategy: l.verticalListSortingStrategy
|
|
@@ -5286,41 +5306,41 @@
|
|
|
5286
5306
|
$resizableFillLayout: P
|
|
5287
5307
|
}, it, rt, ot))))), tt()));
|
|
5288
5308
|
}
|
|
5289
|
-
|
|
5290
|
-
var
|
|
5291
|
-
|
|
5292
|
-
var t =
|
|
5309
|
+
sl.propTypes = Ja;
|
|
5310
|
+
var ul = function(e) {
|
|
5311
|
+
ja(n, e);
|
|
5312
|
+
var t = Pa(n);
|
|
5293
5313
|
function n() {
|
|
5294
|
-
|
|
5314
|
+
Oa(this, n);
|
|
5295
5315
|
return t.apply(this, arguments);
|
|
5296
5316
|
}
|
|
5297
|
-
|
|
5317
|
+
Ra(n, [ {
|
|
5298
5318
|
key: "render",
|
|
5299
5319
|
// @docs-props-type TablePropsBase
|
|
5300
5320
|
value: function e() {
|
|
5301
5321
|
|
|
5302
|
-
return r().createElement(
|
|
5322
|
+
return r().createElement(sl, this.props);
|
|
5303
5323
|
}
|
|
5304
5324
|
} ]);
|
|
5305
5325
|
return n;
|
|
5306
5326
|
}(n.Component);
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
/* harmony default export */ const
|
|
5327
|
+
Aa(ul, "propTypes", Ja);
|
|
5328
|
+
Aa(ul, "defaultProps", Qa);
|
|
5329
|
+
Aa(ul, "Caption", Re);
|
|
5330
|
+
Aa(ul, "Head", Mo);
|
|
5331
|
+
Aa(ul, "HeadCell", Hn);
|
|
5332
|
+
Aa(ul, "HeadDropdownCell", hi);
|
|
5333
|
+
Aa(ul, "Body", be);
|
|
5334
|
+
Aa(ul, "Row", po);
|
|
5335
|
+
Aa(ul, "Cell", Ye);
|
|
5336
|
+
ul.Caption = Re;
|
|
5337
|
+
ul.Head = Mo;
|
|
5338
|
+
ul.HeadCell = Hn;
|
|
5339
|
+
ul.HeadDropdownCell = hi;
|
|
5340
|
+
ul.Body = be;
|
|
5341
|
+
ul.Row = po;
|
|
5342
|
+
ul.Cell = Ye;
|
|
5343
|
+
/* harmony default export */ const dl = ul;
|
|
5324
5344
|
// CONCATENATED MODULE: ./src/Table/index.ts
|
|
5325
5345
|
module.exports = t;
|
|
5326
5346
|
/******/})();
|