@splunk/react-ui 4.21.1 → 4.22.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/Table.js CHANGED
@@ -68,17 +68,17 @@
68
68
  HeadCell: () => /* reexport */ vn,
69
69
  HeadDropdownCell: () => /* reexport */ zo,
70
70
  Row: () => /* reexport */ qr,
71
- default: () => /* reexport */ Ta
71
+ default: () => /* reexport */ Ti
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
74
74
  const n = require("react");
75
75
  var r = e.n(n);
76
76
  // CONCATENATED MODULE: external "prop-types"
77
77
  const o = require("prop-types");
78
- var a = e.n(o);
78
+ var i = e.n(o);
79
79
  // CONCATENATED MODULE: external "lodash/forEach"
80
- const i = require("lodash/forEach");
81
- var l = e.n(i);
80
+ const a = require("lodash/forEach");
81
+ var l = e.n(a);
82
82
  // CONCATENATED MODULE: external "lodash/has"
83
83
  const s = require("lodash/has");
84
84
  var c = e.n(s);
@@ -103,9 +103,9 @@
103
103
  const x = require("@splunk/react-ui/EventListener");
104
104
  var k = e.n(x);
105
105
  // CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
106
- const S = require("@splunk/ui-utils/keyboard");
106
+ const C = require("@splunk/ui-utils/keyboard");
107
107
  // CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
108
- const C = require("@splunk/react-ui/ScrollContainerContext");
108
+ const S = require("@splunk/react-ui/ScrollContainerContext");
109
109
  // CONCATENATED MODULE: external "lodash/findIndex"
110
110
  const O = require("lodash/findIndex");
111
111
  var E = e.n(O);
@@ -295,12 +295,12 @@
295
295
  }
296
296
  function B(e, t) {
297
297
  if (e == null) return {};
298
- var n = F(e, t);
298
+ var n = W(e, t);
299
299
  var r, o;
300
300
  if (Object.getOwnPropertySymbols) {
301
- var a = Object.getOwnPropertySymbols(e);
302
- for (o = 0; o < a.length; o++) {
303
- r = a[o];
301
+ var i = Object.getOwnPropertySymbols(e);
302
+ for (o = 0; o < i.length; o++) {
303
+ r = i[o];
304
304
  if (t.indexOf(r) >= 0) continue;
305
305
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
306
306
  n[r] = e[r];
@@ -308,24 +308,24 @@
308
308
  }
309
309
  return n;
310
310
  }
311
- function F(e, t) {
311
+ function W(e, t) {
312
312
  if (e == null) return {};
313
313
  var n = {};
314
314
  var r = Object.keys(e);
315
- var o, a;
316
- for (a = 0; a < r.length; a++) {
317
- o = r[a];
315
+ var o, i;
316
+ for (i = 0; i < r.length; i++) {
317
+ o = r[i];
318
318
  if (t.indexOf(o) >= 0) continue;
319
319
  n[o] = e[o];
320
320
  }
321
321
  return n;
322
322
  }
323
- function K(e, t) {
323
+ function F(e, t) {
324
324
  if (!(e instanceof t)) {
325
325
  throw new TypeError("Cannot call a class as a function");
326
326
  }
327
327
  }
328
- function W(e, t) {
328
+ function K(e, t) {
329
329
  for (var n = 0; n < t.length; n++) {
330
330
  var r = t[n];
331
331
  r.enumerable = r.enumerable || false;
@@ -335,8 +335,8 @@
335
335
  }
336
336
  }
337
337
  function U(e, t, n) {
338
- if (t) W(e.prototype, t);
339
- if (n) W(e, n);
338
+ if (t) K(e.prototype, t);
339
+ if (n) K(e, n);
340
340
  return e;
341
341
  }
342
342
  function V(e, t) {
@@ -364,8 +364,8 @@
364
364
  return function n() {
365
365
  var r = Z(e), o;
366
366
  if (t) {
367
- var a = Z(this).constructor;
368
- o = Reflect.construct(r, arguments, a);
367
+ var i = Z(this).constructor;
368
+ o = Reflect.construct(r, arguments, i);
369
369
  } else {
370
370
  o = r.apply(this, arguments);
371
371
  }
@@ -416,19 +416,19 @@
416
416
  }
417
417
  var te = {
418
418
  /** @private. Generally passed by Table rather than added directly. */
419
- actions: a().bool,
420
- children: a().node,
421
- elementRef: a().oneOfType([ a().func, a().object ]),
419
+ actions: i().bool,
420
+ children: i().node,
421
+ elementRef: i().oneOfType([ i().func, i().object ]),
422
422
  /** @private. Generally passed by Table rather than added directly. */
423
- movableColumns: a().bool,
423
+ movableColumns: i().bool,
424
424
  /** @private. Generally passed by Table rather than added directly. */
425
- rowExpansion: a().oneOf([ "single", "multi", "none", "controlled" ]),
425
+ rowExpansion: i().oneOf([ "single", "multi", "none", "controlled" ]),
426
426
  /** @private. Generally passed by Table rather than added directly. */
427
- onRequestMoveRow: a().func,
427
+ onRequestMoveRow: i().func,
428
428
  /** @private. Generally passed by Table rather than added directly. */
429
- primaryColumnIndex: a().number,
429
+ primaryColumnIndex: i().number,
430
430
  /** @private. Generally passed by Table rather than added directly. */
431
- stripeRows: a().bool
431
+ stripeRows: i().bool
432
432
  };
433
433
  var ne = {
434
434
  actions: false,
@@ -441,17 +441,17 @@
441
441
  // @docs-props-type BodyPropsBase
442
442
  function o(e) {
443
443
  var r;
444
- K(this, o);
444
+ F(this, o);
445
445
  r = t.call(this, e);
446
446
  ee(Q(r), "el", null);
447
447
  ee(Q(r), "rect", void 0);
448
448
  ee(Q(r), "rowHeight", void 0);
449
449
  ee(Q(r), "rows", void 0);
450
450
  ee(Q(r), "handleDragStart", (function(e, t) {
451
- var n, o, a, i;
451
+ var n, o, i, a;
452
452
  var l = $();
453
- r.rect = (n = r.el) === null || n === void 0 ? void 0 : (o = n.parentElement) === null || o === void 0 ? void 0 : (a = o.parentElement) === null || a === void 0 ? void 0 : a.getBoundingClientRect();
454
- r.rowHeight = (i = r.el) === null || i === void 0 ? void 0 : i.children[0].getBoundingClientRect().height;
453
+ r.rect = (n = r.el) === null || n === void 0 ? void 0 : (o = n.parentElement) === null || o === void 0 ? void 0 : (i = o.parentElement) === null || i === void 0 ? void 0 : i.getBoundingClientRect();
454
+ r.rowHeight = (a = r.el) === null || a === void 0 ? void 0 : a.children[0].getBoundingClientRect().height;
455
455
  r.setState({
456
456
  dragIndex: e,
457
457
  dragDataId: t
@@ -487,12 +487,12 @@
487
487
  var o = r.calculateGuideIndex();
488
488
  // The new index is not necessarily the same as the guidelineIndex
489
489
  if (t !== undefined) {
490
- var a = t < o ? o - 1 : o;
491
- if (t !== a) {
492
- var i, l;
493
- (i = (l = r.props).onRequestMoveRow) === null || i === void 0 ? void 0 : i.call(l, {
490
+ var i = t < o ? o - 1 : o;
491
+ if (t !== i) {
492
+ var a, l;
493
+ (a = (l = r.props).onRequestMoveRow) === null || a === void 0 ? void 0 : a.call(l, {
494
494
  fromIndex: t,
495
- toIndex: a,
495
+ toIndex: i,
496
496
  dataId: n
497
497
  });
498
498
  }
@@ -503,15 +503,15 @@
503
503
  r.cleanupDrag();
504
504
  }));
505
505
  ee(Q(r), "onRequestMoveRow", (function(e) {
506
- var t = e.dataId, o = e.fromIndex, a = e.toIndex;
506
+ var t = e.dataId, o = e.fromIndex, i = e.toIndex;
507
507
  r.setState({
508
508
  dragDataId: t
509
509
  });
510
- if (a < n.Children.toArray(r.props.children).length) {
511
- var i, l;
512
- (i = (l = r.props).onRequestMoveRow) === null || i === void 0 ? void 0 : i.call(l, {
510
+ if (i < n.Children.toArray(r.props.children).length) {
511
+ var a, l;
512
+ (a = (l = r.props).onRequestMoveRow) === null || a === void 0 ? void 0 : a.call(l, {
513
513
  fromIndex: o,
514
- toIndex: a,
514
+ toIndex: i,
515
515
  dataId: t
516
516
  });
517
517
  }
@@ -576,8 +576,8 @@
576
576
  }));
577
577
  if (o === -1) {
578
578
  // must be too far left or right;
579
- var a = this.el.getBoundingClientRect();
580
- return r < a.top ? 0 : this.rows.length;
579
+ var i = this.el.getBoundingClientRect();
580
+ return r < i.top ? 0 : this.rows.length;
581
581
  }
582
582
  if (n !== undefined && o > n) {
583
583
  return o + 1;
@@ -616,7 +616,7 @@
616
616
  key: "render",
617
617
  value: function e() {
618
618
  var t, o = this;
619
- var a = this.props, i = a.actions, l = a.children, s = a.movableColumns, c = a.onRequestMoveRow, u = a.rowExpansion, d = a.primaryColumnIndex, f = a.stripeRows, p = B(a, [ "actions", "children", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
619
+ var i = this.props, a = i.actions, l = i.children, s = i.movableColumns, c = i.onRequestMoveRow, u = i.rowExpansion, d = i.primaryColumnIndex, f = i.stripeRows, p = B(i, [ "actions", "children", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
620
620
  var v = [];
621
621
  var h = this.calculateGuideIndex();
622
622
  var b = (t = this.state.dragDataId) === null || t === void 0 ? void 0 : t.toString();
@@ -630,18 +630,18 @@
630
630
  }
631
631
  if (e) {
632
632
  if (false) {}
633
- var a = e.key;
633
+ var i = e.key;
634
634
  var l = t % 2 ? "even" : "odd";
635
635
  var p = f ? l : "none";
636
- var m = u === "controlled" ? e.props.expanded : D()(o.state.expanded, a);
636
+ var m = u === "controlled" ? e.props.expanded : D()(o.state.expanded, i);
637
637
  var g = function t(n) {
638
- o.handleRowExpansion(n, a, e.props.onExpansion);
638
+ o.handleRowExpansion(n, i, e.props.onExpansion);
639
639
  };
640
640
  v.push( (0, n.cloneElement)(e, {
641
641
  index: t,
642
642
  showRowGuideline: r,
643
643
  stripe: p,
644
- actions: i,
644
+ actions: a,
645
645
  expanded: m,
646
646
  expandable: u !== "none",
647
647
  draggable: !!c,
@@ -657,7 +657,7 @@
657
657
  if (m && e.props.expansionRow) {
658
658
  n.Children.forEach(e.props.expansionRow, (function(e, t) {
659
659
  return v.push( (0, n.cloneElement)(e, {
660
- key: "".concat(a, "-expansion-").concat(t),
660
+ key: "".concat(i, "-expansion-").concat(t),
661
661
  stripe: p,
662
662
  movableColumns: s,
663
663
  onRequestMoveRow: c,
@@ -685,11 +685,11 @@
685
685
  ee(re, "defaultProps", ne);
686
686
  /* harmony default export */ const oe = re;
687
687
  // CONCATENATED MODULE: ./src/Table/TableStyles.ts
688
- var ae = _().div.withConfig({
688
+ var ie = _().div.withConfig({
689
689
  displayName: "TableStyles__Styled",
690
690
  componentId: "sc-1cmfss7-0"
691
691
  })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], P.mixins.reset("block"));
692
- var ie = _().div.withConfig({
692
+ var ae = _().div.withConfig({
693
693
  displayName: "TableStyles__StyledTableContainer",
694
694
  componentId: "sc-1cmfss7-1"
695
695
  })([ "overflow:auto;&::before{content:'';width:100%;height:0;top:0;position:absolute;}" ]);
@@ -738,9 +738,9 @@
738
738
  var n = pe(e, t);
739
739
  var r, o;
740
740
  if (Object.getOwnPropertySymbols) {
741
- var a = Object.getOwnPropertySymbols(e);
742
- for (o = 0; o < a.length; o++) {
743
- r = a[o];
741
+ var i = Object.getOwnPropertySymbols(e);
742
+ for (o = 0; o < i.length; o++) {
743
+ r = i[o];
744
744
  if (t.indexOf(r) >= 0) continue;
745
745
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
746
746
  n[r] = e[r];
@@ -752,29 +752,29 @@
752
752
  if (e == null) return {};
753
753
  var n = {};
754
754
  var r = Object.keys(e);
755
- var o, a;
756
- for (a = 0; a < r.length; a++) {
757
- o = r[a];
755
+ var o, i;
756
+ for (i = 0; i < r.length; i++) {
757
+ o = r[i];
758
758
  if (t.indexOf(o) >= 0) continue;
759
759
  n[o] = e[o];
760
760
  }
761
761
  return n;
762
762
  }
763
763
  var ve = {
764
- children: a().node.isRequired,
765
- side: a().oneOf([ "top", "bottom" ])
764
+ children: i().node.isRequired,
765
+ side: i().oneOf([ "top", "bottom" ])
766
766
  };
767
767
  /**
768
768
  * Tables that use a docked header must place the caption on the bottom side.
769
769
  * Tables that use a fixed header cannot use captions.
770
770
  */ function he(e) {
771
- var t = e.children, n = e.side, o = n === void 0 ? "top" : n, a = fe(e, [ "children", "side" ]);
771
+ var t = e.children, n = e.side, o = n === void 0 ? "top" : n, i = fe(e, [ "children", "side" ]);
772
772
  // @docs-props-type CaptionPropsBase
773
773
 
774
774
  return r().createElement(ue, de({
775
775
  "data-test": "caption",
776
776
  side: o
777
- }, a), t);
777
+ }, i), t);
778
778
  }
779
779
  he.propTypes = ve;
780
780
  he.splunkUiType = "Table.Caption";
@@ -884,9 +884,9 @@
884
884
  var n = xe(e, t);
885
885
  var r, o;
886
886
  if (Object.getOwnPropertySymbols) {
887
- var a = Object.getOwnPropertySymbols(e);
888
- for (o = 0; o < a.length; o++) {
889
- r = a[o];
887
+ var i = Object.getOwnPropertySymbols(e);
888
+ for (o = 0; o < i.length; o++) {
889
+ r = i[o];
890
890
  if (t.indexOf(r) >= 0) continue;
891
891
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
892
892
  n[r] = e[r];
@@ -898,9 +898,9 @@
898
898
  if (e == null) return {};
899
899
  var n = {};
900
900
  var r = Object.keys(e);
901
- var o, a;
902
- for (a = 0; a < r.length; a++) {
903
- o = r[a];
901
+ var o, i;
902
+ for (i = 0; i < r.length; i++) {
903
+ o = r[i];
904
904
  if (t.indexOf(o) >= 0) continue;
905
905
  n[o] = e[o];
906
906
  }
@@ -911,7 +911,7 @@
911
911
  throw new TypeError("Cannot call a class as a function");
912
912
  }
913
913
  }
914
- function Se(e, t) {
914
+ function Ce(e, t) {
915
915
  for (var n = 0; n < t.length; n++) {
916
916
  var r = t[n];
917
917
  r.enumerable = r.enumerable || false;
@@ -920,9 +920,9 @@
920
920
  Object.defineProperty(e, r.key, r);
921
921
  }
922
922
  }
923
- function Ce(e, t, n) {
924
- if (t) Se(e.prototype, t);
925
- if (n) Se(e, n);
923
+ function Se(e, t, n) {
924
+ if (t) Ce(e.prototype, t);
925
+ if (n) Ce(e, n);
926
926
  return e;
927
927
  }
928
928
  function Oe(e, t) {
@@ -950,8 +950,8 @@
950
950
  return function n() {
951
951
  var r = je(e), o;
952
952
  if (t) {
953
- var a = je(this).constructor;
954
- o = Reflect.construct(r, arguments, a);
953
+ var i = je(this).constructor;
954
+ o = Reflect.construct(r, arguments, i);
955
955
  } else {
956
956
  o = r.apply(this, arguments);
957
957
  }
@@ -1001,21 +1001,21 @@
1001
1001
  return e;
1002
1002
  }
1003
1003
  var Pe = {
1004
- align: a().oneOf([ "left", "center", "right" ]),
1004
+ align: i().oneOf([ "left", "center", "right" ]),
1005
1005
  /** @private */
1006
- appearance: a().oneOf([ "data", "link", "rowLink" ]),
1007
- children: a().node,
1008
- data: a().any,
1009
- elementRef: a().oneOfType([ a().func, a().object ]),
1010
- onClick: a().func,
1006
+ appearance: i().oneOf([ "data", "link", "rowLink" ]),
1007
+ children: i().node,
1008
+ data: i().any,
1009
+ elementRef: i().oneOfType([ i().func, i().object ]),
1010
+ onClick: i().func,
1011
1011
  /** @private */
1012
- onKeyDown: a().func,
1012
+ onKeyDown: i().func,
1013
1013
  /** @private */
1014
- disabled: a().bool,
1014
+ disabled: i().bool,
1015
1015
  /** @private. */
1016
- expand: a().bool,
1016
+ expand: i().bool,
1017
1017
  /** @private. */
1018
- variant: a().oneOf([ "toggle", "expand", "drag", "actions" ])
1018
+ variant: i().oneOf([ "toggle", "expand", "drag", "actions" ])
1019
1019
  };
1020
1020
  var qe = {
1021
1021
  align: "left"
@@ -1026,8 +1026,8 @@
1026
1026
  function n() {
1027
1027
  var e;
1028
1028
  ke(this, n);
1029
- for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
1030
- o[a] = arguments[a];
1029
+ for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
1030
+ o[i] = arguments[i];
1031
1031
  }
1032
1032
  e = t.call.apply(t, [ this ].concat(o));
1033
1033
  _e(Ie(e), "el", null);
@@ -1040,18 +1040,18 @@
1040
1040
  o === null || o === void 0 ? void 0 : o(t, r);
1041
1041
  }));
1042
1042
  _e(Ie(e), "handleKeyDown", (function(t) {
1043
- var n = e.props, r = n.data, o = n.onClick, a = n.onKeyDown;
1044
- if ((0, S.keycode)(t.nativeEvent) === "enter") {
1043
+ var n = e.props, r = n.data, o = n.onClick, i = n.onKeyDown;
1044
+ if ((0, C.keycode)(t.nativeEvent) === "enter") {
1045
1045
  o === null || o === void 0 ? void 0 : o(t, r);
1046
1046
  }
1047
- a === null || a === void 0 ? void 0 : a(t);
1047
+ i === null || i === void 0 ? void 0 : i(t);
1048
1048
  }));
1049
1049
  return e;
1050
1050
  }
1051
- Ce(n, [ {
1051
+ Se(n, [ {
1052
1052
  key: "render",
1053
1053
  value: function e() {
1054
- var t = this.props, n = t.align, o = t.appearance, a = t.children, i = t.disabled, l = t.elementRef, s = t.onClick, c = t.onKeyDown, u = t.variant, d = we(t, [ "align", "appearance", "children", "disabled", "elementRef", "onClick", "onKeyDown", "variant" ]);
1054
+ var t = this.props, n = t.align, o = t.appearance, i = t.children, a = t.disabled, l = t.elementRef, s = t.onClick, c = t.onKeyDown, u = t.variant, d = we(t, [ "align", "appearance", "children", "disabled", "elementRef", "onClick", "onKeyDown", "variant" ]);
1055
1055
  var f = s !== undefined;
1056
1056
  var p = f ? "link" : "data";
1057
1057
 
@@ -1060,13 +1060,13 @@
1060
1060
  $align: n,
1061
1061
  $appearance: o || p,
1062
1062
  $clickable: f ? true : undefined,
1063
- $disabled: !!i,
1063
+ $disabled: !!a,
1064
1064
  $variant: u,
1065
1065
  onClick: this.handleClick,
1066
1066
  onKeyDown: this.handleKeyDown,
1067
1067
  ref: this.handleMount,
1068
1068
  tabIndex: f ? 0 : undefined
1069
- }, d), a);
1069
+ }, d), i);
1070
1070
  }
1071
1071
  } ]);
1072
1072
  return n;
@@ -1085,11 +1085,11 @@
1085
1085
  const Le = require("lodash/merge");
1086
1086
  var Be = e.n(Le);
1087
1087
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
1088
- const Fe = require("@splunk/react-icons/ArrowDown");
1089
- var Ke = e.n(Fe);
1088
+ const We = require("@splunk/react-icons/ArrowDown");
1089
+ var Fe = e.n(We);
1090
1090
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
1091
- const We = require("@splunk/react-icons/ArrowUp");
1092
- var Ue = e.n(We);
1091
+ const Ke = require("@splunk/react-icons/ArrowUp");
1092
+ var Ue = e.n(Ke);
1093
1093
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
1094
1094
  const Ve = require("@splunk/react-icons/ArrowUpDown");
1095
1095
  var Ge = e.n(Ve);
@@ -1109,7 +1109,7 @@
1109
1109
  var rt = e.n(nt);
1110
1110
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
1111
1111
  var ot = "12px";
1112
- var at = _().div.withConfig({
1112
+ var it = _().div.withConfig({
1113
1113
  displayName: "HeadInnerStyles__StyledDragContainer",
1114
1114
  componentId: "sc-1sa0wng-0"
1115
1115
  })([ "position:absolute;cursor:move;top:0;", " padding:", ";" ], (0, P.pick)({
@@ -1122,7 +1122,7 @@
1122
1122
  compact: "9px 4px 6px"
1123
1123
  }
1124
1124
  }));
1125
- var it = _().span.withConfig({
1125
+ var at = _().span.withConfig({
1126
1126
  displayName: "HeadInnerStyles__StyledMenuIcon",
1127
1127
  componentId: "sc-1sa0wng-1"
1128
1128
  })([ "", " color:", ";position:relative;" ], (0, P.pick)({
@@ -1152,7 +1152,7 @@
1152
1152
  center: (0, j.css)([ "& > &{text-align:center;}" ])
1153
1153
  }),
1154
1154
  /* sc-sel */
1155
- at, (0, P.pick)({
1155
+ it, (0, P.pick)({
1156
1156
  enterprise: ot
1157
1157
  }));
1158
1158
  var st = _().div.withConfig({
@@ -1418,7 +1418,7 @@
1418
1418
  }));
1419
1419
  // CONCATENATED MODULE: ./src/Table/DragHandle.tsx
1420
1420
  var gt = {
1421
- screenReaderContent: a().string
1421
+ screenReaderContent: i().string
1422
1422
  };
1423
1423
  var wt = {};
1424
1424
  function xt(e) {
@@ -1429,8 +1429,8 @@
1429
1429
  xt.propTypes = gt;
1430
1430
  /* harmony default export */ const kt = xt;
1431
1431
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
1432
- function St() {
1433
- St = Object.assign || function(e) {
1432
+ function Ct() {
1433
+ Ct = Object.assign || function(e) {
1434
1434
  for (var t = 1; t < arguments.length; t++) {
1435
1435
  var n = arguments[t];
1436
1436
  for (var r in n) {
@@ -1441,9 +1441,9 @@
1441
1441
  }
1442
1442
  return e;
1443
1443
  };
1444
- return St.apply(this, arguments);
1444
+ return Ct.apply(this, arguments);
1445
1445
  }
1446
- function Ct(e) {
1446
+ function St(e) {
1447
1447
  return Rt(e) || Et(e) || Tt(e) || Ot();
1448
1448
  }
1449
1449
  function Ot() {
@@ -1481,20 +1481,20 @@
1481
1481
  var n = [];
1482
1482
  var r = true;
1483
1483
  var o = false;
1484
- var a = undefined;
1484
+ var i = undefined;
1485
1485
  try {
1486
- for (var i = e[Symbol.iterator](), l; !(r = (l = i.next()).done); r = true) {
1486
+ for (var a = e[Symbol.iterator](), l; !(r = (l = a.next()).done); r = true) {
1487
1487
  n.push(l.value);
1488
1488
  if (t && n.length === t) break;
1489
1489
  }
1490
1490
  } catch (e) {
1491
1491
  o = true;
1492
- a = e;
1492
+ i = e;
1493
1493
  } finally {
1494
1494
  try {
1495
- if (!r && i["return"] != null) i["return"]();
1495
+ if (!r && a["return"] != null) a["return"]();
1496
1496
  } finally {
1497
- if (o) throw a;
1497
+ if (o) throw i;
1498
1498
  }
1499
1499
  }
1500
1500
  return n;
@@ -1507,9 +1507,9 @@
1507
1507
  var n = At(e, t);
1508
1508
  var r, o;
1509
1509
  if (Object.getOwnPropertySymbols) {
1510
- var a = Object.getOwnPropertySymbols(e);
1511
- for (o = 0; o < a.length; o++) {
1512
- r = a[o];
1510
+ var i = Object.getOwnPropertySymbols(e);
1511
+ for (o = 0; o < i.length; o++) {
1512
+ r = i[o];
1513
1513
  if (t.indexOf(r) >= 0) continue;
1514
1514
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
1515
1515
  n[r] = e[r];
@@ -1521,30 +1521,30 @@
1521
1521
  if (e == null) return {};
1522
1522
  var n = {};
1523
1523
  var r = Object.keys(e);
1524
- var o, a;
1525
- for (a = 0; a < r.length; a++) {
1526
- o = r[a];
1524
+ var o, i;
1525
+ for (i = 0; i < r.length; i++) {
1526
+ o = r[i];
1527
1527
  if (t.indexOf(o) >= 0) continue;
1528
1528
  n[o] = e[o];
1529
1529
  }
1530
1530
  return n;
1531
1531
  }
1532
1532
  var zt = {
1533
- align: a().oneOf([ "left", "center", "right" ]),
1534
- columnId: a().any,
1535
- hasActionsHead: a().bool,
1536
- id: a().string,
1537
- index: a().number,
1538
- isMenu: a().bool,
1539
- label: a().node,
1540
- onAutosizeColumn: a().func,
1541
- onDragEnd: a().func,
1542
- onDragStart: a().func,
1543
- onRequestResize: a().func,
1544
- resizable: a().bool,
1545
- sortDir: a().oneOf([ "none", "asc", "desc" ]),
1546
- truncate: a().bool,
1547
- width: a().oneOfType([ a().number, a().oneOf([ "auto" ]) ])
1533
+ align: i().oneOf([ "left", "center", "right" ]),
1534
+ columnId: i().any,
1535
+ hasActionsHead: i().bool,
1536
+ id: i().string,
1537
+ index: i().number,
1538
+ isMenu: i().bool,
1539
+ label: i().node,
1540
+ onAutosizeColumn: i().func,
1541
+ onDragEnd: i().func,
1542
+ onDragStart: i().func,
1543
+ onRequestResize: i().func,
1544
+ resizable: i().bool,
1545
+ sortDir: i().oneOf([ "none", "asc", "desc" ]),
1546
+ truncate: i().bool,
1547
+ width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ])
1548
1548
  };
1549
1549
  var Ht = new Set([ "none", "asc", "desc" ]);
1550
1550
  var Mt = Object.freeze({
@@ -1560,16 +1560,16 @@
1560
1560
  var Nt = Object.freeze({
1561
1561
  none: Ge(),
1562
1562
  asc: Ue(),
1563
- desc: Ke()
1563
+ desc: Fe()
1564
1564
  });
1565
1565
  function Lt(e) {
1566
- var t = e.index, o = e.columnId, a = e.id, i = e.width, l = e.onDragEnd, s = e.onAutosizeColumn, c = e.align, u = c === void 0 ? "left" : c, d = e.label, f = e.hasActionsHead, p = f === void 0 ? false : f, v = e.isMenu, h = v === void 0 ? false : v, y = e.onDragStart, m = e.onRequestResize, g = e.resizable, w = g === void 0 ? true : g, x = e.sortDir, C = x === void 0 ? undefined : x, O = e.truncate, E = O === void 0 ? true : O, R = qt(e, [ "index", "columnId", "id", "width", "onDragEnd", "onAutosizeColumn", "align", "label", "hasActionsHead", "isMenu", "onDragStart", "onRequestResize", "resizable", "sortDir", "truncate" ]);
1566
+ var t = e.index, o = e.columnId, i = e.id, a = e.width, l = e.onDragEnd, s = e.onAutosizeColumn, c = e.align, u = c === void 0 ? "left" : c, d = e.label, f = e.hasActionsHead, p = f === void 0 ? false : f, v = e.isMenu, h = v === void 0 ? false : v, y = e.onDragStart, m = e.onRequestResize, g = e.resizable, w = g === void 0 ? true : g, x = e.sortDir, S = x === void 0 ? undefined : x, O = e.truncate, E = O === void 0 ? true : O, R = qt(e, [ "index", "columnId", "id", "width", "onDragEnd", "onAutosizeColumn", "align", "label", "hasActionsHead", "isMenu", "onDragStart", "onRequestResize", "resizable", "sortDir", "truncate" ]);
1567
1567
  if (false) {}
1568
1568
  var D = (0, P.useSplunkTheme)(), I = D.isEnterprise;
1569
1569
  var T = (0, tt._)("Click to open menu");
1570
1570
  var j = (0, n.useState)(), _ = Dt(j, 2), q = _[0], A = _[1];
1571
1571
  var z = (0, n.useState)(false), M = Dt(z, 2), N = M[0], L = M[1];
1572
- var B = (0, n.useState)(false), F = Dt(B, 2), K = F[0], W = F[1];
1572
+ var B = (0, n.useState)(false), W = Dt(B, 2), F = W[0], K = W[1];
1573
1573
  var U = (0, n.useState)(0), V = Dt(U, 2), G = V[0], X = V[1];
1574
1574
  var Y = (0, n.useState)(0), Q = Dt(Y, 2), J = Q[0], Z = Q[1];
1575
1575
  var ee = (0, n.useRef)(null);
@@ -1582,31 +1582,31 @@
1582
1582
  var te;
1583
1583
  var ne;
1584
1584
  var re;
1585
- if (C !== undefined && Ht.has(C)) {
1585
+ if (S !== undefined && Ht.has(S)) {
1586
1586
  var oe = I ? $t : Nt;
1587
- ne = oe[C];
1588
- re = Mt[C];
1587
+ ne = oe[S];
1588
+ re = Mt[S];
1589
1589
  }
1590
- if (i === "auto") {
1591
- var ae;
1592
- var ie = ee.current;
1593
- var le = ie === null || ie === void 0 ? void 0 : (ae = ie.parentElement) === null || ae === void 0 ? void 0 : ae.getBoundingClientRect();
1590
+ if (a === "auto") {
1591
+ var ie;
1592
+ var ae = ee.current;
1593
+ var le = ae === null || ae === void 0 ? void 0 : (ie = ae.parentElement) === null || ie === void 0 ? void 0 : ie.getBoundingClientRect();
1594
1594
  te = le === null || le === void 0 ? void 0 : le.width;
1595
1595
  } else {
1596
- te = i;
1596
+ te = a;
1597
1597
  }
1598
1598
  var se = function e(n) {
1599
- var r = (0, S.keycode)(n.nativeEvent);
1599
+ var r = (0, C.keycode)(n.nativeEvent);
1600
1600
  if (m === undefined || t === undefined) {
1601
1601
  return;
1602
1602
  }
1603
- if (i === "auto") {
1603
+ if (a === "auto") {
1604
1604
  var l;
1605
1605
  var s = ee.current;
1606
1606
  var c = s === null || s === void 0 ? void 0 : (l = s.parentElement) === null || l === void 0 ? void 0 : l.getBoundingClientRect();
1607
1607
  te = c === null || c === void 0 ? void 0 : c.width;
1608
1608
  } else {
1609
- te = i;
1609
+ te = a;
1610
1610
  }
1611
1611
  if (te === undefined) {
1612
1612
  return;
@@ -1618,7 +1618,7 @@
1618
1618
  m(n, {
1619
1619
  index: t,
1620
1620
  columnId: o,
1621
- id: a,
1621
+ id: i,
1622
1622
  width: u
1623
1623
  });
1624
1624
  }
@@ -1629,19 +1629,19 @@
1629
1629
  m(n, {
1630
1630
  index: t,
1631
1631
  columnId: o,
1632
- id: a,
1632
+ id: i,
1633
1633
  width: d
1634
1634
  });
1635
1635
  }
1636
1636
  };
1637
1637
  var ce = function e(t) {
1638
- if (i === "auto") {
1638
+ if (a === "auto") {
1639
1639
  var n;
1640
1640
  var r = ee.current;
1641
1641
  var o = r === null || r === void 0 ? void 0 : (n = r.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
1642
1642
  te = o === null || o === void 0 ? void 0 : o.width;
1643
1643
  } else {
1644
- te = i;
1644
+ te = a;
1645
1645
  }
1646
1646
  if (te === undefined) {
1647
1647
  return;
@@ -1654,13 +1654,13 @@
1654
1654
  };
1655
1655
  var ue = function e(n) {
1656
1656
  var r = G - n.clientX;
1657
- var i = Math.max(J - r, 16);
1657
+ var a = Math.max(J - r, 16);
1658
1658
  if (t !== undefined) {
1659
1659
  m === null || m === void 0 ? void 0 : m(n, {
1660
1660
  index: t,
1661
1661
  columnId: o,
1662
- id: a,
1663
- width: i
1662
+ id: i,
1663
+ width: a
1664
1664
  });
1665
1665
  }
1666
1666
  };
@@ -1669,27 +1669,27 @@
1669
1669
  };
1670
1670
  var fe = function e(n) {
1671
1671
  var r;
1672
- var a = H();
1673
- var i = ee.current;
1674
- if (n.dataTransfer.setDragImage && (i === null || i === void 0 ? void 0 : i.parentElement)) {
1675
- var l = i.parentElement.getBoundingClientRect();
1676
- var s = i.cloneNode(true);
1672
+ var i = H();
1673
+ var a = ee.current;
1674
+ if (n.dataTransfer.setDragImage && (a === null || a === void 0 ? void 0 : a.parentElement)) {
1675
+ var l = a.parentElement.getBoundingClientRect();
1676
+ var s = a.cloneNode(true);
1677
1677
  s.style.width = "".concat(l.width, "px");
1678
1678
  s.style.height = "".concat(l.height, "px");
1679
1679
  s.setAttribute("data-helper", "true");
1680
- a.body.appendChild(s);
1680
+ i.body.appendChild(s);
1681
1681
  n.dataTransfer.setDragImage(s, n.clientX - l.left, n.clientY - l.top);
1682
- W(true);
1682
+ K(true);
1683
1683
  A(s);
1684
1684
  }
1685
1685
  n.dataTransfer.effectAllowed = "move";
1686
- n.dataTransfer.setData("text", (r = i === null || i === void 0 ? void 0 : i.textContent) !== null && r !== void 0 ? r : "");
1686
+ n.dataTransfer.setData("text", (r = a === null || a === void 0 ? void 0 : a.textContent) !== null && r !== void 0 ? r : "");
1687
1687
  // Required for Firefox
1688
1688
  y === null || y === void 0 ? void 0 : y(t, o);
1689
1689
  };
1690
1690
  var pe = function e() {
1691
1691
  A(undefined);
1692
- W(false);
1692
+ K(false);
1693
1693
  l === null || l === void 0 ? void 0 : l();
1694
1694
  };
1695
1695
  var ve = function e(n) {
@@ -1703,7 +1703,7 @@
1703
1703
  var he = !!y;
1704
1704
  var be = $();
1705
1705
 
1706
- return r().createElement(st, St({
1706
+ return r().createElement(st, Ct({
1707
1707
  draggable: he || undefined,
1708
1708
  onDragStart: he ? fe : undefined,
1709
1709
  onDragEnd: he ? pe : undefined,
@@ -1711,8 +1711,8 @@
1711
1711
  $hasActionsHead: !!p,
1712
1712
  $align: u,
1713
1713
  $draggable: he,
1714
- $dragging: !!K
1715
- }, b()(R, [].concat(Ct(Object.keys(Lt.propTypes)), [ "id" ]))), N && r().createElement(r().Fragment, null, r().createElement(k(), {
1714
+ $dragging: !!F
1715
+ }, b()(R, [].concat(St(Object.keys(Lt.propTypes)), [ "id" ]))), N && r().createElement(r().Fragment, null, r().createElement(k(), {
1716
1716
  target: be,
1717
1717
  eventType: "mouseup",
1718
1718
  listener: de
@@ -1725,7 +1725,7 @@
1725
1725
  onDoubleClick: ve,
1726
1726
  onKeyDown: se,
1727
1727
  "data-test": "resize"
1728
- }), he && r().createElement(at, null, r().createElement(kt, {
1728
+ }), he && r().createElement(it, null, r().createElement(kt, {
1729
1729
  screenReaderContent: (0, tt._)("Press left or right arrow key to reorder the columns.")
1730
1730
  })), r().createElement(lt, {
1731
1731
  $align: u,
@@ -1734,7 +1734,7 @@
1734
1734
  }, d, h &&
1735
1735
 
1736
1736
  // this icon indicates "has a menu" in all themes
1737
- r().createElement(it, null, I ? r().createElement(et(), {
1737
+ r().createElement(at, null, I ? r().createElement(et(), {
1738
1738
  "data-test": "caret-down",
1739
1739
  screenReaderText: T,
1740
1740
  hideDefaultTooltip: true,
@@ -1742,8 +1742,8 @@
1742
1742
  }) : r().createElement(Ye(), {
1743
1743
  "data-test": "caret-down",
1744
1744
  "aria-label": T
1745
- }))), C && r().createElement(ct, {
1746
- $sorted: C !== "none"
1745
+ }))), S && r().createElement(ct, {
1746
+ $sorted: S !== "none"
1747
1747
  }, ne !== undefined && (I ? r().createElement(ne, {
1748
1748
  inline: true,
1749
1749
  "aria-hidden": false,
@@ -1758,22 +1758,22 @@
1758
1758
  Lt.propTypes = zt;
1759
1759
  /* harmony default export */ const Bt = Lt;
1760
1760
  // CONCATENATED MODULE: ./src/Table/TableContext.ts
1761
- var Ft = (0, n.createContext)({});
1762
- Ft.displayName = "Table";
1763
- /* harmony default export */ const Kt = Ft;
1761
+ var Wt = (0, n.createContext)({});
1762
+ Wt.displayName = "Table";
1763
+ /* harmony default export */ const Ft = Wt;
1764
1764
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1765
- function Wt(e) {
1765
+ function Kt(e) {
1766
1766
  "@babel/helpers - typeof";
1767
1767
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1768
- Wt = function e(t) {
1768
+ Kt = function e(t) {
1769
1769
  return typeof t;
1770
1770
  };
1771
1771
  } else {
1772
- Wt = function e(t) {
1772
+ Kt = function e(t) {
1773
1773
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1774
1774
  };
1775
1775
  }
1776
- return Wt(e);
1776
+ return Kt(e);
1777
1777
  }
1778
1778
  function Ut() {
1779
1779
  Ut = Object.assign || function(e) {
@@ -1860,8 +1860,8 @@
1860
1860
  return function n() {
1861
1861
  var r = cn(e), o;
1862
1862
  if (t) {
1863
- var a = cn(this).constructor;
1864
- o = Reflect.construct(r, arguments, a);
1863
+ var i = cn(this).constructor;
1864
+ o = Reflect.construct(r, arguments, i);
1865
1865
  } else {
1866
1866
  o = r.apply(this, arguments);
1867
1867
  }
@@ -1869,7 +1869,7 @@
1869
1869
  };
1870
1870
  }
1871
1871
  function an(e, t) {
1872
- if (t && (Wt(t) === "object" || typeof t === "function")) {
1872
+ if (t && (Kt(t) === "object" || typeof t === "function")) {
1873
1873
  return t;
1874
1874
  }
1875
1875
  return ln(e);
@@ -1911,46 +1911,46 @@
1911
1911
  return e;
1912
1912
  }
1913
1913
  var dn = {
1914
- align: a().oneOf([ "left", "center", "right" ]),
1915
- children: a().node,
1916
- columnId: a().any,
1917
- elementRef: a().oneOfType([ a().func, a().object ]),
1914
+ align: i().oneOf([ "left", "center", "right" ]),
1915
+ children: i().node,
1916
+ columnId: i().any,
1917
+ elementRef: i().oneOfType([ i().func, i().object ]),
1918
1918
  /** @private Indicates the presence of actions. */
1919
- hasActionsHead: a().bool,
1919
+ hasActionsHead: i().bool,
1920
1920
  /** @private The index of the cell, skipping the info column. */
1921
- index: a().number,
1921
+ index: i().number,
1922
1922
  /** @private. */
1923
- onAutosizeColumn: a().func,
1924
- onSort: a().func,
1923
+ onAutosizeColumn: i().func,
1924
+ onSort: i().func,
1925
1925
  /** @private. */
1926
- onDragStart: a().func,
1926
+ onDragStart: i().func,
1927
1927
  /**
1928
1928
  * @private. Passed through and works as expected.
1929
1929
  */
1930
- onKeyDown: a().func,
1930
+ onKeyDown: i().func,
1931
1931
  /** @private. */
1932
- onClick: a().func,
1932
+ onClick: i().func,
1933
1933
  /** @private. */
1934
- onRequestMoveColumn: a().func,
1934
+ onRequestMoveColumn: i().func,
1935
1935
  /** @private. */
1936
- onRequestResize: a().func,
1937
- resizable: a().bool,
1936
+ onRequestResize: i().func,
1937
+ resizable: i().bool,
1938
1938
  /** @private. */
1939
- showGuideline: a().oneOf([ "none", "before", "after" ]),
1940
- sortDir: a().oneOf([ "asc", "desc", "none" ]),
1941
- sortKey: a().string,
1942
- truncate: a().bool,
1939
+ showGuideline: i().oneOf([ "none", "before", "after" ]),
1940
+ sortDir: i().oneOf([ "asc", "desc", "none" ]),
1941
+ sortKey: i().string,
1942
+ truncate: i().bool,
1943
1943
  /**
1944
1944
  * Used internally to suppress focus and id when this `HeadCell` is superseded by one in an
1945
1945
  * overlaid `HeadTable` for user interactions.
1946
1946
  * @private
1947
1947
  */
1948
- visible: a().bool,
1949
- width: a().oneOfType([ a().number, a().oneOf([ "auto" ]) ]),
1948
+ visible: i().bool,
1949
+ width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ]),
1950
1950
  /** @private. */
1951
- variant: a().oneOf([ "toggleAll", "info", "actions" ]),
1951
+ variant: i().oneOf([ "toggleAll", "info", "actions" ]),
1952
1952
  /** @private. */
1953
- zIndex: a().number
1953
+ zIndex: i().number
1954
1954
  };
1955
1955
  var fn = {
1956
1956
  align: "left",
@@ -1973,10 +1973,10 @@
1973
1973
  var t, n;
1974
1974
  // ignore clicks on the resize handle
1975
1975
  if (e.target.getAttribute("data-test") !== "resize" && r.props.onSort && r.props.index !== undefined) {
1976
- var o = r.props, a = o.sortKey, i = o.sortDir, l = o.id, s = o.index, c = o.columnId;
1976
+ var o = r.props, i = o.sortKey, a = o.sortDir, l = o.id, s = o.index, c = o.columnId;
1977
1977
  r.props.onSort(e, {
1978
- sortKey: a,
1979
- sortDir: i,
1978
+ sortKey: i,
1979
+ sortDir: a,
1980
1980
  id: l,
1981
1981
  columnId: c,
1982
1982
  index: s
@@ -1985,18 +1985,18 @@
1985
1985
  (t = (n = r.props).onClick) === null || t === void 0 ? void 0 : t.call(n);
1986
1986
  }));
1987
1987
  un(ln(r), "handleKeyDown", (function(e) {
1988
- var t = r.props, n = t.columnId, o = t.index, a = t.onKeyDown, i = t.onRequestMoveColumn;
1988
+ var t = r.props, n = t.columnId, o = t.index, i = t.onKeyDown, a = t.onRequestMoveColumn;
1989
1989
  if (e.target.getAttribute("data-test") !== "resize") {
1990
- if ((0, S.keycode)(e.nativeEvent) === "enter") {
1990
+ if ((0, C.keycode)(e.nativeEvent) === "enter") {
1991
1991
  r.handleClick(e);
1992
- } else if ((0, S.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
1993
- i === null || i === void 0 ? void 0 : i({
1992
+ } else if ((0, C.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
1993
+ a === null || a === void 0 ? void 0 : a({
1994
1994
  fromIndex: o,
1995
1995
  toIndex: o - 1,
1996
1996
  columnId: n
1997
1997
  });
1998
- } else if ((0, S.keycode)(e.nativeEvent) === "right" && o !== undefined) {
1999
- i === null || i === void 0 ? void 0 : i({
1998
+ } else if ((0, C.keycode)(e.nativeEvent) === "right" && o !== undefined) {
1999
+ a === null || a === void 0 ? void 0 : a({
2000
2000
  fromIndex: o,
2001
2001
  toIndex: o + 1,
2002
2002
  columnId: n
@@ -2004,7 +2004,7 @@
2004
2004
  }
2005
2005
  }
2006
2006
  if (o !== undefined) {
2007
- a === null || a === void 0 ? void 0 : a(e, {
2007
+ i === null || i === void 0 ? void 0 : i(e, {
2008
2008
  index: o,
2009
2009
  columnId: n
2010
2010
  });
@@ -2035,12 +2035,12 @@
2035
2035
  tn(n, [ {
2036
2036
  key: "render",
2037
2037
  value: function e() {
2038
- var t = this.props, o = t.align, a = t.children, i = t.columnId, l = t.elementRef, s = t.hasActionsHead, c = t.id, u = t.index, d = t.onAutosizeColumn, f = t.onClick, p = t.onDragStart, v = t.onRequestResize, h = t.onSort, y = t.resizable, m = t.showGuideline, g = t.sortDir, w = t.style, x = t.variant, k = t.truncate, S = t.visible, C = t.width, O = t.zIndex;
2038
+ var t = this.props, o = t.align, i = t.children, a = t.columnId, l = t.elementRef, s = t.hasActionsHead, c = t.id, u = t.index, d = t.onAutosizeColumn, f = t.onClick, p = t.onDragStart, v = t.onRequestResize, h = t.onSort, y = t.resizable, m = t.showGuideline, g = t.sortDir, w = t.style, x = t.variant, k = t.truncate, C = t.visible, S = t.width, O = t.zIndex;
2039
2039
  var E = !!p;
2040
2040
  var R = !!h && !!g;
2041
2041
  var D = f !== undefined;
2042
2042
  var I = Be()(w, {
2043
- width: C
2043
+ width: S
2044
2044
  });
2045
2045
  var T = s ? false : k;
2046
2046
  var j = this.context.headType;
@@ -2050,11 +2050,11 @@
2050
2050
  ref: l,
2051
2051
  "aria-sort": h && (this.sortDirAriaMapping[g] || "none"),
2052
2052
  "data-test": "head-cell",
2053
- "data-test-label": Ne()(a) ? a : undefined,
2053
+ "data-test-label": Ne()(i) ? i : undefined,
2054
2054
  "data-test-sort-dir": h && g,
2055
- id: S ? c : undefined,
2055
+ id: C ? c : undefined,
2056
2056
  onClick: h || D ? this.handleClick : undefined,
2057
- tabIndex: S && (E || h || D) ? 0 : undefined,
2057
+ tabIndex: C && (E || h || D) ? 0 : undefined,
2058
2058
  $dragging: this.state.isDragging || undefined,
2059
2059
  $clickable: E || R || D,
2060
2060
  $variant: x,
@@ -2063,20 +2063,20 @@
2063
2063
  }, b()(this.props, [].concat(Vt(Object.keys(n.propTypes)), [ "id", "style" ])), {
2064
2064
  onKeyDown: E || h || D ? this.handleKeyDown : undefined
2065
2065
  }), r().createElement(Bt, {
2066
- label: a,
2066
+ label: i,
2067
2067
  align: o,
2068
- columnId: i,
2068
+ columnId: a,
2069
2069
  hasActionsHead: s,
2070
2070
  id: c,
2071
2071
  index: u,
2072
- resizable: S && y,
2072
+ resizable: C && y,
2073
2073
  onDragStart: p ? this.handleDragStart : undefined,
2074
2074
  onDragEnd: p ? this.handleDragEnd : undefined,
2075
2075
  onAutosizeColumn: d,
2076
2076
  onRequestResize: v,
2077
2077
  sortDir: h && g,
2078
2078
  truncate: T,
2079
- width: C
2079
+ width: S
2080
2080
  }), m !== "none" && r().createElement(vt, {
2081
2081
  $position: m
2082
2082
  }));
@@ -2087,7 +2087,7 @@
2087
2087
  un(pn, "splunkUiType", "Table.HeadCell");
2088
2088
  un(pn, "propTypes", dn);
2089
2089
  un(pn, "defaultProps", fn);
2090
- un(pn, "contextType", Kt);
2090
+ un(pn, "contextType", Ft);
2091
2091
  /* harmony default export */ const vn = pn;
2092
2092
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Info"
2093
2093
  const hn = require("@splunk/react-icons/enterprise/Info");
@@ -2114,10 +2114,10 @@
2114
2114
  var xn = e.n(wn);
2115
2115
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
2116
2116
  const kn = require("@splunk/react-ui/Button");
2117
- var Sn = e.n(kn);
2117
+ var Cn = e.n(kn);
2118
2118
  // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
2119
- const Cn = require("@splunk/react-ui/Dropdown");
2120
- var On = e.n(Cn);
2119
+ const Sn = require("@splunk/react-ui/Dropdown");
2120
+ var On = e.n(Sn);
2121
2121
  // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
2122
2122
  const En = require("@splunk/react-ui/Tooltip");
2123
2123
  var Rn = e.n(En);
@@ -2169,12 +2169,12 @@
2169
2169
  return e;
2170
2170
  }
2171
2171
  var qn = {
2172
- className: a().string,
2173
- expanded: a().bool
2172
+ className: i().string,
2173
+ expanded: i().bool
2174
2174
  };
2175
2175
  var An = function e(t) {
2176
2176
  var n = t.className, o = t.expanded;
2177
- var a = (0, P.useSplunkTheme)(), i = a.isEnterprise;
2177
+ var i = (0, P.useSplunkTheme)(), a = i.isEnterprise;
2178
2178
  var l = {
2179
2179
  className: n
2180
2180
  };
@@ -2183,7 +2183,7 @@
2183
2183
  screenReaderText: null
2184
2184
  });
2185
2185
  var c = _n({}, l);
2186
- var u = i ? r().createElement(Tn(), s) : r().createElement(mn(), c);
2186
+ var u = a ? r().createElement(Tn(), s) : r().createElement(mn(), c);
2187
2187
 
2188
2188
  return r().createElement("div", {
2189
2189
  "aria-hidden": true,
@@ -2245,29 +2245,29 @@
2245
2245
  configurable: true
2246
2246
  }
2247
2247
  });
2248
- if (t) Fn(e, t);
2248
+ if (t) Wn(e, t);
2249
2249
  }
2250
- function Fn(e, t) {
2251
- Fn = Object.setPrototypeOf || function e(t, n) {
2250
+ function Wn(e, t) {
2251
+ Wn = Object.setPrototypeOf || function e(t, n) {
2252
2252
  t.__proto__ = n;
2253
2253
  return t;
2254
2254
  };
2255
- return Fn(e, t);
2255
+ return Wn(e, t);
2256
2256
  }
2257
- function Kn(e) {
2257
+ function Fn(e) {
2258
2258
  var t = Vn();
2259
2259
  return function n() {
2260
2260
  var r = Gn(e), o;
2261
2261
  if (t) {
2262
- var a = Gn(this).constructor;
2263
- o = Reflect.construct(r, arguments, a);
2262
+ var i = Gn(this).constructor;
2263
+ o = Reflect.construct(r, arguments, i);
2264
2264
  } else {
2265
2265
  o = r.apply(this, arguments);
2266
2266
  }
2267
- return Wn(this, o);
2267
+ return Kn(this, o);
2268
2268
  };
2269
2269
  }
2270
- function Wn(e, t) {
2270
+ function Kn(e, t) {
2271
2271
  if (t && (Mn(t) === "object" || typeof t === "function")) {
2272
2272
  return t;
2273
2273
  }
@@ -2310,22 +2310,22 @@
2310
2310
  return e;
2311
2311
  }
2312
2312
  var Yn = {
2313
- activeElementId: a().string,
2314
- dataId: a().oneOfType([ a().string, a().number ]),
2315
- index: a().number,
2316
- onDragEnd: a().func,
2317
- onDragStart: a().func,
2318
- onKeyDown: a().func,
2319
- onRequestMoveRow: a().func,
2320
- rowSpan: a().number,
2321
- showRowGuideline: a().oneOf([ "none", "before", "after" ])
2313
+ activeElementId: i().string,
2314
+ dataId: i().oneOfType([ i().string, i().number ]),
2315
+ index: i().number,
2316
+ onDragEnd: i().func,
2317
+ onDragStart: i().func,
2318
+ onKeyDown: i().func,
2319
+ onRequestMoveRow: i().func,
2320
+ rowSpan: i().number,
2321
+ showRowGuideline: i().oneOf([ "none", "before", "after" ])
2322
2322
  };
2323
2323
  var Qn = {
2324
2324
  showRowGuideline: "none"
2325
2325
  };
2326
2326
  var Jn = function(e) {
2327
2327
  Bn(n, e);
2328
- var t = Kn(n);
2328
+ var t = Fn(n);
2329
2329
  function n(e) {
2330
2330
  var r;
2331
2331
  $n(this, n);
@@ -2336,7 +2336,7 @@
2336
2336
  r.el = e;
2337
2337
  }));
2338
2338
  Xn(Un(r), "handleDragStart", (function(e) {
2339
- var t, n, o, a, i;
2339
+ var t, n, o, i, a;
2340
2340
  var l = H();
2341
2341
  e.stopPropagation();
2342
2342
  if (e.dataTransfer.setDragImage && ((t = r.el) === null || t === void 0 ? void 0 : t.parentElement)) {
@@ -2356,7 +2356,7 @@
2356
2356
  e.dataTransfer.effectAllowed = "move";
2357
2357
  e.dataTransfer.setData("text", (n = (o = r.el) === null || o === void 0 ? void 0 : o.textContent) !== null && n !== void 0 ? n : "");
2358
2358
  // Required for Firefox
2359
- (a = (i = r.props).onDragStart) === null || a === void 0 ? void 0 : a.call(i, r.props.index, r.props.dataId);
2359
+ (i = (a = r.props).onDragStart) === null || i === void 0 ? void 0 : i.call(a, r.props.index, r.props.dataId);
2360
2360
  }));
2361
2361
  Xn(Un(r), "handleDragEnd", (function() {
2362
2362
  var e, t;
@@ -2367,8 +2367,8 @@
2367
2367
  (e = (t = r.props).onDragEnd) === null || e === void 0 ? void 0 : e.call(t);
2368
2368
  }));
2369
2369
  Xn(Un(r), "handleKeyDown", (function(e) {
2370
- var t = r.props, n = t.onRequestMoveRow, o = t.index, a = t.dataId, i = t.onKeyDown;
2371
- var l = (0, S.keycode)(e.nativeEvent);
2370
+ var t = r.props, n = t.onRequestMoveRow, o = t.index, i = t.dataId, a = t.onKeyDown;
2371
+ var l = (0, C.keycode)(e.nativeEvent);
2372
2372
  if (l === "up" || l === "down") {
2373
2373
  e.preventDefault();
2374
2374
  }
@@ -2376,19 +2376,19 @@
2376
2376
  n === null || n === void 0 ? void 0 : n({
2377
2377
  fromIndex: o,
2378
2378
  toIndex: o - 1,
2379
- dataId: a
2379
+ dataId: i
2380
2380
  });
2381
2381
  } else if (l === "down" && o !== undefined) {
2382
2382
  n === null || n === void 0 ? void 0 : n({
2383
2383
  fromIndex: o,
2384
2384
  toIndex: o + 1,
2385
- dataId: a
2385
+ dataId: i
2386
2386
  });
2387
2387
  }
2388
2388
  if (o !== undefined) {
2389
- i === null || i === void 0 ? void 0 : i(e, {
2389
+ a === null || a === void 0 ? void 0 : a(e, {
2390
2390
  index: o,
2391
- dataId: a
2391
+ dataId: i
2392
2392
  });
2393
2393
  }
2394
2394
  }));
@@ -2403,8 +2403,8 @@
2403
2403
  // get handle of the element and add focus
2404
2404
  var t = this.props, n = t.dataId, r = t.activeElementId;
2405
2405
  if (n === r) {
2406
- var o, a;
2407
- (o = this.el) === null || o === void 0 ? void 0 : (a = o.parentElement) === null || a === void 0 ? void 0 : a.focus();
2406
+ var o, i;
2407
+ (o = this.el) === null || o === void 0 ? void 0 : (i = o.parentElement) === null || i === void 0 ? void 0 : i.focus();
2408
2408
  }
2409
2409
  }
2410
2410
  }, {
@@ -2517,10 +2517,10 @@
2517
2517
  prisma: "40px"
2518
2518
  }));
2519
2519
  // CONCATENATED MODULE: external "@splunk/react-ui/Switch"
2520
- const ar = require("@splunk/react-ui/Switch");
2521
- var ir = e.n(ar);
2520
+ const ir = require("@splunk/react-ui/Switch");
2521
+ var ar = e.n(ir);
2522
2522
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
2523
- var lr = _()(ir()).withConfig({
2523
+ var lr = _()(ar()).withConfig({
2524
2524
  displayName: "ToggleStyles__StyledSwitch",
2525
2525
  componentId: "sc-1x3ikch-0"
2526
2526
  })([ "margin:", ";justify-content:center;" ], (0, P.pickVariant)("$allRows", {
@@ -2550,9 +2550,9 @@
2550
2550
  var n = ur(e, t);
2551
2551
  var r, o;
2552
2552
  if (Object.getOwnPropertySymbols) {
2553
- var a = Object.getOwnPropertySymbols(e);
2554
- for (o = 0; o < a.length; o++) {
2555
- r = a[o];
2553
+ var i = Object.getOwnPropertySymbols(e);
2554
+ for (o = 0; o < i.length; o++) {
2555
+ r = i[o];
2556
2556
  if (t.indexOf(r) >= 0) continue;
2557
2557
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2558
2558
  n[r] = e[r];
@@ -2564,26 +2564,26 @@
2564
2564
  if (e == null) return {};
2565
2565
  var n = {};
2566
2566
  var r = Object.keys(e);
2567
- var o, a;
2568
- for (a = 0; a < r.length; a++) {
2569
- o = r[a];
2567
+ var o, i;
2568
+ for (i = 0; i < r.length; i++) {
2569
+ o = r[i];
2570
2570
  if (t.indexOf(o) >= 0) continue;
2571
2571
  n[o] = e[o];
2572
2572
  }
2573
2573
  return n;
2574
2574
  }
2575
2575
  var dr = {
2576
- allRows: a().bool,
2577
- disabled: a().bool,
2578
- onClick: a().func,
2579
- selected: a().oneOf([ true, false, "some" ])
2576
+ allRows: i().bool,
2577
+ disabled: i().bool,
2578
+ onClick: i().func,
2579
+ selected: i().oneOf([ true, false, "some" ])
2580
2580
  };
2581
2581
  function fr(e) {
2582
- var t = e.allRows, n = t === void 0 ? false : t, o = e.disabled, a = e.selected, i = a === void 0 ? false : a, l = cr(e, [ "allRows", "disabled", "selected" ]);
2582
+ var t = e.allRows, n = t === void 0 ? false : t, o = e.disabled, i = e.selected, a = i === void 0 ? false : i, l = cr(e, [ "allRows", "disabled", "selected" ]);
2583
2583
  var s = n ? (0, tt._)("No rows selected") : (0, tt._)("Row unselected");
2584
- if (i === "some") {
2584
+ if (a === "some") {
2585
2585
  s = (0, tt._)("Some rows selected");
2586
- } else if (i) {
2586
+ } else if (a) {
2587
2587
  s = n ? (0, tt._)("All rows selected") : (0, tt._)("Row selected");
2588
2588
  }
2589
2589
 
@@ -2593,7 +2593,7 @@
2593
2593
  interactive: false,
2594
2594
  disabled: o,
2595
2595
  value: "",
2596
- selected: i,
2596
+ selected: a,
2597
2597
  "aria-label": s,
2598
2598
  selectedLabel: n ? (0, tt._)("All rows selected") : (0, tt._)("Row selected"),
2599
2599
  unselectedLabel: n ? (0, tt._)("No rows selected") : (0, tt._)("Row unselected"),
@@ -2621,9 +2621,9 @@
2621
2621
  var n = br(e, t);
2622
2622
  var r, o;
2623
2623
  if (Object.getOwnPropertySymbols) {
2624
- var a = Object.getOwnPropertySymbols(e);
2625
- for (o = 0; o < a.length; o++) {
2626
- r = a[o];
2624
+ var i = Object.getOwnPropertySymbols(e);
2625
+ for (o = 0; o < i.length; o++) {
2626
+ r = i[o];
2627
2627
  if (t.indexOf(r) >= 0) continue;
2628
2628
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2629
2629
  n[r] = e[r];
@@ -2635,9 +2635,9 @@
2635
2635
  if (e == null) return {};
2636
2636
  var n = {};
2637
2637
  var r = Object.keys(e);
2638
- var o, a;
2639
- for (a = 0; a < r.length; a++) {
2640
- o = r[a];
2638
+ var o, i;
2639
+ for (i = 0; i < r.length; i++) {
2640
+ o = r[i];
2641
2641
  if (t.indexOf(o) >= 0) continue;
2642
2642
  n[o] = e[o];
2643
2643
  }
@@ -2687,21 +2687,21 @@
2687
2687
  return function n() {
2688
2688
  var r = Er(e), o;
2689
2689
  if (t) {
2690
- var a = Er(this).constructor;
2691
- o = Reflect.construct(r, arguments, a);
2690
+ var i = Er(this).constructor;
2691
+ o = Reflect.construct(r, arguments, i);
2692
2692
  } else {
2693
2693
  o = r.apply(this, arguments);
2694
2694
  }
2695
- return Sr(this, o);
2695
+ return Cr(this, o);
2696
2696
  };
2697
2697
  }
2698
- function Sr(e, t) {
2698
+ function Cr(e, t) {
2699
2699
  if (t && (vr(t) === "object" || typeof t === "function")) {
2700
2700
  return t;
2701
2701
  }
2702
- return Cr(e);
2702
+ return Sr(e);
2703
2703
  }
2704
- function Cr(e) {
2704
+ function Sr(e) {
2705
2705
  if (e === void 0) {
2706
2706
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2707
2707
  }
@@ -2758,44 +2758,44 @@
2758
2758
  };
2759
2759
  /** @public */ var Tr = {
2760
2760
  /** @private. Generally passed by Table rather than added directly. */
2761
- activeElementId: a().string,
2762
- actionPrimary: a().element,
2763
- actionsSecondary: a().element,
2764
- children: a().node,
2765
- data: a().any,
2761
+ activeElementId: i().string,
2762
+ actionPrimary: i().element,
2763
+ actionsSecondary: i().element,
2764
+ children: i().node,
2765
+ data: i().any,
2766
2766
  /** @private. Generally passed by Table rather than added directly. */
2767
- dataId: a().oneOfType([ a().string, a().number ]),
2768
- disabled: a().bool,
2767
+ dataId: i().oneOfType([ i().string, i().number ]),
2768
+ disabled: i().bool,
2769
2769
  /** @private. Generally passed by Table rather than added directly. */
2770
- draggable: a().bool,
2771
- elementRef: a().oneOfType([ a().func, a().object ]),
2770
+ draggable: i().bool,
2771
+ elementRef: i().oneOfType([ i().func, i().object ]),
2772
2772
  /** @private. */
2773
- expandable: a().bool,
2774
- expanded: a().bool,
2775
- expansionRow: a().oneOfType([ a().element, a().arrayOf(a().element) ]),
2773
+ expandable: i().bool,
2774
+ expanded: i().bool,
2775
+ expansionRow: i().oneOfType([ i().element, i().arrayOf(i().element) ]),
2776
2776
  /** @private. Indicates whether the table has an actions column. */
2777
- actions: a().bool,
2777
+ actions: i().bool,
2778
2778
  /** @private. Generally passed by `Table` rather than added directly. */
2779
- index: a().number,
2779
+ index: i().number,
2780
2780
  /** @private. Generally passed by `Table` rather than added directly. */
2781
- movableColumns: a().bool,
2782
- onClick: a().func,
2781
+ movableColumns: i().bool,
2782
+ onClick: i().func,
2783
2783
  /** @private. Generally passed by `Table` rather than added directly. */
2784
- onDragStart: a().func,
2785
- onExpansion: a().func,
2784
+ onDragStart: i().func,
2785
+ onExpansion: i().func,
2786
2786
  /** @private. This is passed through and works as expected. */
2787
- onKeyDown: a().func,
2787
+ onKeyDown: i().func,
2788
2788
  /** @private. Generally passed by `Table` rather than added directly. */
2789
- onRequestMoveRow: a().func,
2790
- onRequestToggle: a().func,
2789
+ onRequestMoveRow: i().func,
2790
+ onRequestToggle: i().func,
2791
2791
  /** @private. Generally passed by `Table` rather than added directly. */
2792
- primaryColumnIndex: a().number,
2793
- rowScreenReaderText: a().string,
2794
- selected: a().bool,
2792
+ primaryColumnIndex: i().number,
2793
+ rowScreenReaderText: i().string,
2794
+ selected: i().bool,
2795
2795
  /** @private. Generally passed by `Table` rather than added directly. */
2796
- showRowGuideline: a().oneOf([ "none", "before", "after" ]),
2796
+ showRowGuideline: i().oneOf([ "none", "before", "after" ]),
2797
2797
  /** @private. */
2798
- stripe: a().oneOf([ "odd", "even", "none" ])
2798
+ stripe: i().oneOf([ "odd", "even", "none" ])
2799
2799
  };
2800
2800
  var jr = {
2801
2801
  stripe: "none",
@@ -2803,17 +2803,17 @@
2803
2803
  };
2804
2804
  var _r = r().forwardRef((function(e, t) {
2805
2805
  var n = (0, P.useSplunkTheme)(), o = n.isCompact;
2806
- var a = o ? "20px" : "24px";
2806
+ var i = o ? "20px" : "24px";
2807
2807
 
2808
2808
  return r().createElement(Rn(), Dr({
2809
2809
  content: (0, tt._)("Actions"),
2810
2810
  contentRelationship: "label"
2811
- }, e), r().createElement(Sn(), {
2811
+ }, e), r().createElement(Cn(), {
2812
2812
  appearance: "secondary",
2813
2813
  "data-test": "actions-secondary-toggle",
2814
2814
  icon: r().createElement(xn(), {
2815
- height: a,
2816
- width: a
2815
+ height: i,
2816
+ width: i
2817
2817
  }),
2818
2818
  elementRef: t
2819
2819
  }));
@@ -2824,62 +2824,62 @@
2824
2824
  function o() {
2825
2825
  var e;
2826
2826
  yr(this, o);
2827
- for (var r = arguments.length, a = new Array(r), i = 0; i < r; i++) {
2828
- a[i] = arguments[i];
2827
+ for (var r = arguments.length, i = new Array(r), a = 0; a < r; a++) {
2828
+ i[a] = arguments[a];
2829
2829
  }
2830
- e = t.call.apply(t, [ this ].concat(a));
2831
- Rr(Cr(e), "elementRef", null);
2832
- Rr(Cr(e), "handleClick", (function(t) {
2830
+ e = t.call.apply(t, [ this ].concat(i));
2831
+ Rr(Sr(e), "elementRef", null);
2832
+ Rr(Sr(e), "handleClick", (function(t) {
2833
2833
  var n = e.props, r = n.data, o = n.onClick;
2834
- var a = t.target;
2835
- while (a) {
2836
- if (e.elementRef === a) {
2834
+ var i = t.target;
2835
+ while (i) {
2836
+ if (e.elementRef === i) {
2837
2837
  break;
2838
2838
  }
2839
2839
  // Ignore clicks on row-actions
2840
- if (a.tagName === "BUTTON" || a.tagName === "A") {
2840
+ if (i.tagName === "BUTTON" || i.tagName === "A") {
2841
2841
  return;
2842
2842
  }
2843
- a = a.parentNode;
2843
+ i = i.parentNode;
2844
2844
  }
2845
2845
  if (!t.defaultPrevented) {
2846
2846
  o === null || o === void 0 ? void 0 : o(t, r);
2847
2847
  }
2848
2848
  }));
2849
- Rr(Cr(e), "handleKeyDown", (function(t) {
2850
- var n = e.props, r = n.data, o = n.onClick, a = n.onKeyDown;
2851
- if ((0, S.keycode)(t.nativeEvent) === "enter" && o) {
2849
+ Rr(Sr(e), "handleKeyDown", (function(t) {
2850
+ var n = e.props, r = n.data, o = n.onClick, i = n.onKeyDown;
2851
+ if ((0, C.keycode)(t.nativeEvent) === "enter" && o) {
2852
2852
  o(t, r);
2853
2853
  }
2854
- a === null || a === void 0 ? void 0 : a(t);
2854
+ i === null || i === void 0 ? void 0 : i(t);
2855
2855
  }));
2856
- Rr(Cr(e), "handleToggle", (function(t) {
2857
- var n = e.props, r = n.data, o = n.disabled, a = n.onRequestToggle;
2856
+ Rr(Sr(e), "handleToggle", (function(t) {
2857
+ var n = e.props, r = n.data, o = n.disabled, i = n.onRequestToggle;
2858
2858
  if (!o) {
2859
2859
  t.preventDefault();
2860
- a === null || a === void 0 ? void 0 : a(t, r);
2860
+ i === null || i === void 0 ? void 0 : i(t, r);
2861
2861
  }
2862
2862
  }));
2863
- Rr(Cr(e), "handleExpansion", (function(t) {
2863
+ Rr(Sr(e), "handleExpansion", (function(t) {
2864
2864
  var n = e.props, r = n.data, o = n.onExpansion;
2865
2865
  t.preventDefault();
2866
2866
  o === null || o === void 0 ? void 0 : o(t, r);
2867
2867
  }));
2868
- Rr(Cr(e), "renderActionPrimary", (function() {
2868
+ Rr(Sr(e), "renderActionPrimary", (function() {
2869
2869
  var t = e.props.actionPrimary;
2870
2870
  if (t && t.props.onClick) {
2871
2871
 
2872
2872
  return (0, n.cloneElement)(t, {
2873
2873
  onClick: function n(r) {
2874
- var o, a;
2874
+ var o, i;
2875
2875
  r.preventDefault();
2876
- return (o = (a = t.props).onClick) === null || o === void 0 ? void 0 : o.call(a, r, e.props.data);
2876
+ return (o = (i = t.props).onClick) === null || o === void 0 ? void 0 : o.call(i, r, e.props.data);
2877
2877
  }
2878
2878
  });
2879
2879
  }
2880
2880
  return t;
2881
2881
  }));
2882
- Rr(Cr(e), "renderActionsSecondary", (function() {
2882
+ Rr(Sr(e), "renderActionsSecondary", (function() {
2883
2883
  var t = e.props.actionsSecondary;
2884
2884
  if (t && t.props.children) {
2885
2885
  var r = n.Children.toArray(t.props.children).filter(n.isValidElement);
@@ -2888,9 +2888,9 @@
2888
2888
 
2889
2889
  return (0, n.cloneElement)(t, {
2890
2890
  onClick: function n(r) {
2891
- var o, a;
2891
+ var o, i;
2892
2892
  r.preventDefault();
2893
- return (o = (a = t.props).onClick) === null || o === void 0 ? void 0 : o.call(a, r, e.props.data);
2893
+ return (o = (i = t.props).onClick) === null || o === void 0 ? void 0 : o.call(i, r, e.props.data);
2894
2894
  }
2895
2895
  });
2896
2896
  }
@@ -2903,7 +2903,7 @@
2903
2903
  }
2904
2904
  return t;
2905
2905
  }));
2906
- Rr(Cr(e), "handleMount", (function(t) {
2906
+ Rr(Sr(e), "handleMount", (function(t) {
2907
2907
  A(e.props.elementRef, t);
2908
2908
  e.elementRef = t;
2909
2909
  }));
@@ -2913,7 +2913,7 @@
2913
2913
  key: "render",
2914
2914
  value: function e() {
2915
2915
  var t;
2916
- var o = this.props, a = o.actions, i = o.actionPrimary, l = o.actionsSecondary, s = o.activeElementId, c = o.children, u = o.dataId, d = o.disabled, f = o.draggable, p = o.elementRef, v = o.expandable, h = o.expanded, y = o.expansionRow, m = o.index, g = o.movableColumns, w = o.onClick, x = o.onDragStart, k = o.onExpansion, S = o.onRequestMoveRow, C = o.onRequestToggle, O = o.primaryColumnIndex, E = o.rowScreenReaderText, R = o.selected, D = o.showRowGuideline, I = o.stripe, T = hr(o, [ "actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onDragStart", "onExpansion", "onRequestMoveRow", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "showRowGuideline", "stripe" ]);
2916
+ var o = this.props, i = o.actions, a = o.actionPrimary, l = o.actionsSecondary, s = o.activeElementId, c = o.children, u = o.dataId, d = o.disabled, f = o.draggable, p = o.elementRef, v = o.expandable, h = o.expanded, y = o.expansionRow, m = o.index, g = o.movableColumns, w = o.onClick, x = o.onDragStart, k = o.onExpansion, C = o.onRequestMoveRow, S = o.onRequestToggle, O = o.primaryColumnIndex, E = o.rowScreenReaderText, R = o.selected, D = o.showRowGuideline, I = o.stripe, T = hr(o, [ "actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onDragStart", "onExpansion", "onRequestMoveRow", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "showRowGuideline", "stripe" ]);
2917
2917
  var j = !w ? n.Children.toArray(c).map((function(e) {
2918
2918
 
2919
2919
  return (0, n.cloneElement)(e, {
@@ -2948,7 +2948,7 @@
2948
2948
 
2949
2949
  return r().createElement(z, Dr({
2950
2950
  "data-test": "row",
2951
- "data-test-selected": C ? R : undefined,
2951
+ "data-test-selected": S ? R : undefined,
2952
2952
  $clickable: !!w,
2953
2953
  "data-has-movable-columns": g ? "true" : undefined,
2954
2954
  disabled: !!d,
@@ -2958,17 +2958,17 @@
2958
2958
  }, b()(T, "data"), {
2959
2959
  onClick: w ? this.handleClick : undefined,
2960
2960
  onKeyDown: this.handleKeyDown,
2961
- $rowSelected: !!(C && R)
2961
+ $rowSelected: !!(S && R)
2962
2962
  }), f && r().createElement(Zn, {
2963
2963
  activeElementId: s,
2964
2964
  dataId: u,
2965
2965
  "data-movable-column": $,
2966
2966
  index: m,
2967
- onRequestMoveRow: S,
2967
+ onRequestMoveRow: C,
2968
2968
  onDragStart: x,
2969
2969
  rowSpan: M,
2970
2970
  showRowGuideline: D
2971
- }), C && r().createElement(H, {
2971
+ }), S && r().createElement(H, {
2972
2972
  "aria-label": (0, Dn.sprintf)((0, tt._)("%(rowLabelValue)s %(selectedString)s"), {
2973
2973
  rowLabelValue: _,
2974
2974
  selectedString: A
@@ -3000,19 +3000,19 @@
3000
3000
  })), v && !y && r().createElement(or, {
3001
3001
  variant: "expand",
3002
3002
  "data-movable-column": $
3003
- }), j, a && !i && !l && r().createElement(ze, {
3003
+ }), j, i && !a && !l && r().createElement(ze, {
3004
3004
  align: "right",
3005
3005
  appearance: d ? "data" : "rowLink",
3006
3006
  "data-test": "row-actions",
3007
3007
  variant: "actions",
3008
3008
  "data-movable-column": $
3009
- }), (i || l) && r().createElement(ze, {
3009
+ }), (a || l) && r().createElement(ze, {
3010
3010
  align: "right",
3011
3011
  appearance: "rowLink",
3012
3012
  "data-test": "row-actions",
3013
3013
  variant: "actions",
3014
3014
  "data-movable-column": $
3015
- }, i && this.renderActionPrimary(), l && r().createElement(On(), {
3015
+ }, a && this.renderActionPrimary(), l && r().createElement(On(), {
3016
3016
  toggle: N
3017
3017
  }, this.renderActionsSecondary())));
3018
3018
  }
@@ -3091,12 +3091,12 @@
3091
3091
  Object.defineProperty(e, r.key, r);
3092
3092
  }
3093
3093
  }
3094
- function Fr(e, t, n) {
3094
+ function Wr(e, t, n) {
3095
3095
  if (t) Br(e.prototype, t);
3096
3096
  if (n) Br(e, n);
3097
3097
  return e;
3098
3098
  }
3099
- function Kr(e, t) {
3099
+ function Fr(e, t) {
3100
3100
  if (typeof t !== "function" && t !== null) {
3101
3101
  throw new TypeError("Super expression must either be null or a function");
3102
3102
  }
@@ -3107,22 +3107,22 @@
3107
3107
  configurable: true
3108
3108
  }
3109
3109
  });
3110
- if (t) Wr(e, t);
3110
+ if (t) Kr(e, t);
3111
3111
  }
3112
- function Wr(e, t) {
3113
- Wr = Object.setPrototypeOf || function e(t, n) {
3112
+ function Kr(e, t) {
3113
+ Kr = Object.setPrototypeOf || function e(t, n) {
3114
3114
  t.__proto__ = n;
3115
3115
  return t;
3116
3116
  };
3117
- return Wr(e, t);
3117
+ return Kr(e, t);
3118
3118
  }
3119
3119
  function Ur(e) {
3120
3120
  var t = Xr();
3121
3121
  return function n() {
3122
3122
  var r = Yr(e), o;
3123
3123
  if (t) {
3124
- var a = Yr(this).constructor;
3125
- o = Reflect.construct(r, arguments, a);
3124
+ var i = Yr(this).constructor;
3125
+ o = Reflect.construct(r, arguments, i);
3126
3126
  } else {
3127
3127
  o = r.apply(this, arguments);
3128
3128
  }
@@ -3173,40 +3173,43 @@
3173
3173
  }
3174
3174
  var Jr = {
3175
3175
  /** @private. */
3176
- actions: a().arrayOf(a().node),
3176
+ actions: i().arrayOf(i().node),
3177
3177
  /** @private. */
3178
- actionsColumnWidth: a().number,
3179
- children: a().node,
3178
+ actionsColumnWidth: i().number,
3179
+ /** @private */
3180
+ cellMinWidth: i().number,
3181
+ children: i().node,
3180
3182
  /** @private. */
3181
- dragPosition: a().number,
3183
+ dragPosition: i().number,
3182
3184
  /** @private. */
3183
- dragIndex: a().number,
3184
- elementRef: a().oneOfType([ a().func, a().object ]),
3185
+ dragIndex: i().number,
3186
+ elementRef: i().oneOfType([ i().func, i().object ]),
3185
3187
  /** @private. */
3186
- hasDragColumn: a().bool,
3188
+ hasDragColumn: i().bool,
3187
3189
  /** @private. */
3188
- hasInfoColumn: a().bool,
3190
+ hasInfoColumn: i().bool,
3189
3191
  /** @private. */
3190
- onAutosizeColumn: a().func,
3192
+ onAutosizeColumn: i().func,
3191
3193
  /** @private. */
3192
- onDragStart: a().func,
3194
+ onDragStart: i().func,
3193
3195
  /** @private. */
3194
- onRequestMoveColumn: a().func,
3196
+ onRequestMoveColumn: i().func,
3195
3197
  /** @private. */
3196
- onRequestResizeColumn: a().func,
3198
+ onRequestResizeColumn: i().func,
3197
3199
  /** @private. */
3198
- onRequestToggleAllRows: a().func,
3200
+ onRequestToggleAllRows: i().func,
3199
3201
  /** @private. */
3200
- rowSelection: a().oneOf([ "all", "some", "none" ])
3202
+ rowSelection: i().oneOf([ "all", "some", "none" ])
3201
3203
  };
3202
3204
  var Zr = {
3205
+ cellMinWidth: 60,
3203
3206
  actions: []
3204
3207
  };
3205
3208
  var eo = 3;
3206
3209
  var to = 2;
3207
3210
  var no = 1;
3208
3211
  var ro = function(e) {
3209
- Kr(o, e);
3212
+ Fr(o, e);
3210
3213
  var t = Ur(o);
3211
3214
  // @docs-props-type HeadPropsBase
3212
3215
  function o(e) {
@@ -3215,29 +3218,133 @@
3215
3218
  r = t.call(this, e);
3216
3219
  Qr(Gr(r), "cells", void 0);
3217
3220
  Qr(Gr(r), "el", null);
3221
+ Qr(Gr(r), "providedWidths", []);
3218
3222
  Qr(Gr(r), "onRequestMoveColumn", (function(e) {
3219
- var t = e.columnId, o = e.fromIndex, a = e.toIndex;
3220
- if (a < n.Children.toArray(r.props.children).length) {
3221
- var i, l;
3223
+ var t = e.columnId, o = e.fromIndex, i = e.toIndex;
3224
+ if (i < n.Children.toArray(r.props.children).length) {
3225
+ var a, l;
3222
3226
  // HeadCell never requests less than zero
3223
- (i = (l = r.props).onRequestMoveColumn) === null || i === void 0 ? void 0 : i.call(l, {
3227
+ (a = (l = r.props).onRequestMoveColumn) === null || a === void 0 ? void 0 : a.call(l, {
3224
3228
  fromIndex: o,
3225
- toIndex: a,
3229
+ toIndex: i,
3226
3230
  columnId: t
3227
3231
  });
3228
3232
  }
3229
3233
  }));
3234
+ Qr(Gr(r), "manageResize", (function(e, t) {
3235
+ var n = t.columnId, o = t.id, i = t.index, a = t.width;
3236
+ var l = r.props, s = l.cellMinWidth, c = l.onRequestResizeColumn;
3237
+ var u = r.context.tableContainerWidthWithoutBorders;
3238
+ var d = r.getCellWidths();
3239
+ if (i >= d.length) {
3240
+ c === null || c === void 0 ? void 0 : c(e, t);
3241
+ return;
3242
+ }
3243
+ var f = d[i];
3244
+ var p = a - f;
3245
+ if (p <= 0) {
3246
+ // handle shrinking
3247
+ if (a >= s) {
3248
+ c === null || c === void 0 ? void 0 : c(e, t);
3249
+ } else {
3250
+ // shrink the cell as small as we can
3251
+ c === null || c === void 0 ? void 0 : c(e, {
3252
+ columnId: n,
3253
+ id: o,
3254
+ index: i,
3255
+ width: s
3256
+ });
3257
+ }
3258
+ } else {
3259
+ // handle expansion
3260
+ var v = [];
3261
+ var h = 0;
3262
+ var b = true;
3263
+ if (r.providedWidths.length !== d.length) {
3264
+ c === null || c === void 0 ? void 0 : c(e, t);
3265
+ return;
3266
+ }
3267
+ r.providedWidths.forEach((function(e, t) {
3268
+ if (e === "auto") {
3269
+ h += 1;
3270
+ v.push(t);
3271
+ }
3272
+ }));
3273
+ if (h > 0) {
3274
+ // if there are auto width cells, check if shrinking them by changePerEachAutoCell make them smaller than cellMinWidth
3275
+ var y = p / h;
3276
+ v.every((function(e) {
3277
+ if (e < d.length && d[e] - y < s) {
3278
+ b = false;
3279
+ return false;
3280
+ }
3281
+ return true;
3282
+ }));
3283
+ if (b) {
3284
+ c === null || c === void 0 ? void 0 : c(e, t);
3285
+ } else {
3286
+ // make the cell as big as we can without letting any cells go below cellMinWidth
3287
+ // that means all auto cells are at cellMinWidth and all the set width cells stay the same size
3288
+ var m = 0;
3289
+ v.forEach((function(e) {
3290
+ if (e < d.length) {
3291
+ m += Math.max(d[e] - s, 0);
3292
+ }
3293
+ }));
3294
+ var g = d[i] + m;
3295
+ c === null || c === void 0 ? void 0 : c(e, {
3296
+ columnId: n,
3297
+ id: o,
3298
+ index: i,
3299
+ width: g
3300
+ });
3301
+ }
3302
+ } else if (u != null) {
3303
+ // if there are no auto width cells, check if shrinking the last cell by requested change makes it smaller than cellMinWidth
3304
+ /**
3305
+ * We need to calculate the percieved width of the last cell, because if the user modifies the size of the last head cell,
3306
+ * the width of the last cell will technically be whatever they made it, but the last cell will get cut off if it extends past
3307
+ * the table container's width.
3308
+ */
3309
+ var w = d.slice(0, d.length - 1);
3310
+ var x = w.reduce((function(e, t) {
3311
+ return e + t;
3312
+ }));
3313
+ var k = u - x;
3314
+ if (k - p >= s) {
3315
+ c === null || c === void 0 ? void 0 : c(e, t);
3316
+ } else {
3317
+ // make the cell as big as we can without letting perceivedWidthOfLastCell go below cellMinWidth
3318
+ var C = k - s;
3319
+ var S = f + C;
3320
+ c === null || c === void 0 ? void 0 : c(e, {
3321
+ columnId: n,
3322
+ id: o,
3323
+ index: i,
3324
+ width: S
3325
+ });
3326
+ }
3327
+ } else {
3328
+ /**
3329
+ * If tableContainerWidthWithoutBorders == null, there isn't a way to correctly calculate
3330
+ * the perceived width so this case will result in columns possibly going offscreen. In testing,
3331
+ * tableContainerWidthWithoutBorders attains a value quickly enough that it isn't a problem.
3332
+ */
3333
+ c === null || c === void 0 ? void 0 : c(e, t);
3334
+ }
3335
+ }
3336
+ }));
3230
3337
  Qr(Gr(r), "handleMount", (function(e) {
3231
3338
  r.el = e;
3232
3339
  A(r.props.elementRef, e);
3233
3340
  }));
3234
3341
  Qr(Gr(r), "handleDragStart", (function(e, t) {
3235
3342
  var n, o;
3236
- var a = $();
3343
+ var i = $();
3237
3344
  r.setState({
3238
3345
  dragColumnId: t
3239
3346
  });
3240
- a.addEventListener("dragend", r.handleDragEnd);
3347
+ i.addEventListener("dragend", r.handleDragEnd);
3241
3348
  (n = (o = r.props).onDragStart) === null || n === void 0 ? void 0 : n.call(o, {
3242
3349
  dragIndex: e
3243
3350
  });
@@ -3249,8 +3356,8 @@
3249
3356
  // The new index is not necessarily the same as the guidelineIndex
3250
3357
  var o = t !== undefined && t < n ? n - 1 : n;
3251
3358
  if (t !== undefined && t !== o) {
3252
- var a, i;
3253
- (a = (i = r.props).onRequestMoveColumn) === null || a === void 0 ? void 0 : a.call(i, {
3359
+ var i, a;
3360
+ (i = (a = r.props).onRequestMoveColumn) === null || i === void 0 ? void 0 : i.call(a, {
3254
3361
  fromIndex: t,
3255
3362
  toIndex: o,
3256
3363
  columnId: e
@@ -3264,7 +3371,7 @@
3264
3371
  if (false) {}
3265
3372
  return r;
3266
3373
  }
3267
- Fr(o, [ {
3374
+ Wr(o, [ {
3268
3375
  key: "componentDidUpdate",
3269
3376
  value: function e() {
3270
3377
  if (false) {}
@@ -3279,12 +3386,12 @@
3279
3386
  value: function e() {
3280
3387
  var t, n, r;
3281
3388
  var o = $();
3282
- var a = 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 : []);
3283
- var i = a.map((function(e) {
3389
+ 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 : []);
3390
+ var a = i.map((function(e) {
3284
3391
  var t = o.getComputedStyle(e);
3285
3392
  return e.clientWidth - parseFloat(t.getPropertyValue("padding-right")) - parseFloat(t.getPropertyValue("padding-left"));
3286
3393
  }));
3287
- return i;
3394
+ return a;
3288
3395
  }
3289
3396
  }, {
3290
3397
  key: "getClientHeight",
@@ -3301,21 +3408,21 @@
3301
3408
  key: "calculateGuideIndex",
3302
3409
  value: function e() {
3303
3410
  var t, n, r;
3304
- var o = this.props, a = o.dragIndex, i = o.dragPosition, l = o.hasInfoColumn, s = o.hasDragColumn, c = o.onRequestToggleAllRows;
3411
+ var o = this.props, i = o.dragIndex, a = o.dragPosition, l = o.hasInfoColumn, s = o.hasDragColumn, c = o.onRequestToggleAllRows;
3305
3412
  if (this.props.dragPosition === undefined || !this.el) {
3306
3413
  return -1;
3307
3414
  }
3308
3415
  this.cells = 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 : []).slice(l ? 1 : 0).slice(s ? 1 : 0).slice(c ? 1 : 0);
3309
3416
  var u = E()(this.cells, (function(e) {
3310
3417
  var t = e.getBoundingClientRect();
3311
- return i !== undefined && i > t.left && i < t.right;
3418
+ return a !== undefined && a > t.left && a < t.right;
3312
3419
  }));
3313
3420
  if (u === -1) {
3314
3421
  // must be too far left or right;
3315
3422
  var d = this.el.getBoundingClientRect();
3316
- return i !== undefined && i < d.left ? 0 : this.cells.length;
3423
+ return a !== undefined && a < d.left ? 0 : this.cells.length;
3317
3424
  }
3318
- if (a !== undefined && u > a) {
3425
+ if (i !== undefined && u > i) {
3319
3426
  return u + 1;
3320
3427
  }
3321
3428
  return u;
@@ -3331,49 +3438,52 @@
3331
3438
  key: "render",
3332
3439
  value: function e() {
3333
3440
  var t = this;
3334
- var a = this.props, i = a.actions, l = a.actionsColumnWidth, s = a.children, c = a.hasDragColumn, u = a.hasInfoColumn, d = a.onAutosizeColumn, f = a.onRequestMoveColumn, p = a.onRequestResizeColumn, v = a.onRequestToggleAllRows, h = a.rowSelection;
3335
- var y = this.context.headType;
3336
- var m = this.calculateGuideIndex();
3337
- var g = n.Children.toArray(s).filter(n.isValidElement);
3338
- var w = g.length + (i.length || l ? 1 : 0);
3339
- var x = g.map((function(e, r, o) {
3340
- var a = "none";
3341
- if (m === o.length && r + 1 === o.length) {
3342
- a = "after";
3343
- } else if (m === r) {
3344
- a = "before";
3441
+ var i = this.props, a = i.actions, l = i.actionsColumnWidth, s = i.children, c = i.hasDragColumn, u = i.hasInfoColumn, d = i.onAutosizeColumn, f = i.onRequestMoveColumn, p = i.onRequestResizeColumn, v = i.onRequestToggleAllRows, h = i.rowSelection;
3442
+ var y = this.context, m = y.headType, g = y.resizableFillLayout;
3443
+ var w = this.calculateGuideIndex();
3444
+ var x = n.Children.toArray(s).filter(n.isValidElement);
3445
+ var k = x.length + (a.length || l ? 1 : 0);
3446
+ var C = [];
3447
+ var S = x.map((function(e, r, o) {
3448
+ var i = "none";
3449
+ if (w === o.length && r + 1 === o.length) {
3450
+ i = "after";
3451
+ } else if (w === r) {
3452
+ i = "before";
3345
3453
  }
3454
+ C.push(e.props.width);
3346
3455
 
3347
3456
  return (0, n.cloneElement)(e, {
3348
3457
  index: r,
3349
- showGuideline: a,
3350
- onRequestResize: p,
3458
+ showGuideline: i,
3459
+ onRequestResize: g ? t.manageResize : p,
3351
3460
  onDragStart: f ? t.handleDragStart : undefined,
3352
3461
  onRequestMoveColumn: f ? t.onRequestMoveColumn : undefined,
3353
3462
  onAutosizeColumn: d,
3354
3463
  key: e.key || e.props.columnId || r,
3355
- zIndex: w - r
3464
+ zIndex: k - r
3356
3465
  });
3357
3466
  }));
3358
- var k = {
3467
+ this.providedWidths = C;
3468
+ var O = {
3359
3469
  all: true,
3360
3470
  none: false,
3361
3471
  some: "some"
3362
3472
  };
3363
- var S = h === undefined ? undefined : k[h];
3364
- var C = S === "some" ? "mixed" : S;
3365
- var O = l || 48;
3366
- var E = y === "fixed" ? "fixed-head" : "head";
3473
+ var E = h === undefined ? undefined : O[h];
3474
+ var R = E === "some" ? "mixed" : E;
3475
+ var D = l || 48;
3476
+ var I = m === "fixed" ? "fixed-head" : "head";
3367
3477
 
3368
3478
  return r().createElement(Ar, Nr({
3369
3479
  ref: this.handleMount,
3370
- "data-test": E
3480
+ "data-test": I
3371
3481
  }, b()(this.props, Me()(o.propTypes))), r().createElement(qr, null, c && r().createElement(Mr, {
3372
3482
  key: "drag_rows_head_cell",
3373
3483
  "data-test": "drag-rows-head-cell",
3374
3484
  align: "center",
3375
3485
  resizable: false,
3376
- zIndex: w + eo
3486
+ zIndex: k + eo
3377
3487
  }), v && r().createElement(zr, {
3378
3488
  key: "toggle_all",
3379
3489
  "data-test": "toggle-all",
@@ -3383,10 +3493,10 @@
3383
3493
  variant: "toggleAll",
3384
3494
  truncate: false,
3385
3495
  role: "checkbox",
3386
- "aria-checked": C,
3387
- zIndex: w + to
3496
+ "aria-checked": R,
3497
+ zIndex: k + to
3388
3498
  }, r().createElement(pr, {
3389
- selected: S,
3499
+ selected: E,
3390
3500
  allRows: true
3391
3501
  })), u && r().createElement(Hr, {
3392
3502
  key: "more_info_head_cell",
@@ -3394,20 +3504,20 @@
3394
3504
  align: "center",
3395
3505
  resizable: false,
3396
3506
  variant: "info",
3397
- zIndex: w + no
3398
- }, r().createElement(gn, null)), x, i.length > 0 && r().createElement(vn, {
3507
+ zIndex: k + no
3508
+ }, r().createElement(gn, null)), S, a.length > 0 && r().createElement(vn, {
3399
3509
  hasActionsHead: true,
3400
3510
  key: "actions_head_cell",
3401
3511
  "data-test": "actions-head-cell",
3402
3512
  align: "right",
3403
3513
  resizable: false,
3404
- width: O,
3514
+ width: D,
3405
3515
  style: {
3406
- minWidth: O
3516
+ minWidth: D
3407
3517
  },
3408
3518
  variant: "actions",
3409
3519
  zIndex: 1
3410
- }, i), i.length === 0 && l && r().createElement(vn, {
3520
+ }, a), a.length === 0 && l && r().createElement(vn, {
3411
3521
  key: "actions_head_cell",
3412
3522
  "data-test": "actions-head-cell",
3413
3523
  align: "right",
@@ -3430,14 +3540,14 @@
3430
3540
  } ]);
3431
3541
  return o;
3432
3542
  }(n.Component);
3433
- Qr(ro, "contextType", Kt);
3543
+ Qr(ro, "contextType", Ft);
3434
3544
  Qr(ro, "splunkUiType", "Table.Head");
3435
3545
  Qr(ro, "propTypes", Jr);
3436
3546
  Qr(ro, "defaultProps", Zr);
3437
3547
  /* harmony default export */ const oo = ro;
3438
3548
  // CONCATENATED MODULE: external "lodash/isFinite"
3439
- const ao = require("lodash/isFinite");
3440
- var io = e.n(ao);
3549
+ const io = require("lodash/isFinite");
3550
+ var ao = e.n(io);
3441
3551
  // CONCATENATED MODULE: external "lodash/isFunction"
3442
3552
  const lo = require("lodash/isFunction");
3443
3553
  var so = e.n(lo);
@@ -3515,12 +3625,12 @@
3515
3625
  Object.defineProperty(e, r.key, r);
3516
3626
  }
3517
3627
  }
3518
- function So(e, t, n) {
3628
+ function Co(e, t, n) {
3519
3629
  if (t) ko(e.prototype, t);
3520
3630
  if (n) ko(e, n);
3521
3631
  return e;
3522
3632
  }
3523
- function Co(e, t) {
3633
+ function So(e, t) {
3524
3634
  if (typeof t !== "function" && t !== null) {
3525
3635
  throw new TypeError("Super expression must either be null or a function");
3526
3636
  }
@@ -3545,8 +3655,8 @@
3545
3655
  return function n() {
3546
3656
  var r = To(e), o;
3547
3657
  if (t) {
3548
- var a = To(this).constructor;
3549
- o = Reflect.construct(r, arguments, a);
3658
+ var i = To(this).constructor;
3659
+ o = Reflect.construct(r, arguments, i);
3550
3660
  } else {
3551
3661
  o = r.apply(this, arguments);
3552
3662
  }
@@ -3597,50 +3707,50 @@
3597
3707
  }
3598
3708
  /** @public */ var _o = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
3599
3709
  var Po = {
3600
- align: a().oneOf([ "left", "center", "right" ]),
3601
- canCoverHead: a().bool,
3602
- children: a().node.isRequired,
3603
- closeReasons: a().arrayOf(a().oneOf(_o)),
3604
- columnId: a().any,
3605
- defaultPlacement: a().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
3606
- elementRef: a().oneOfType([ a().func, a().object ]),
3607
- focusToggleReasons: a().arrayOf(a().oneOf(_o)),
3710
+ align: i().oneOf([ "left", "center", "right" ]),
3711
+ canCoverHead: i().bool,
3712
+ children: i().node.isRequired,
3713
+ closeReasons: i().arrayOf(i().oneOf(_o)),
3714
+ columnId: i().any,
3715
+ defaultPlacement: i().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
3716
+ elementRef: i().oneOfType([ i().func, i().object ]),
3717
+ focusToggleReasons: i().arrayOf(i().oneOf(_o)),
3608
3718
  /** @private The index of the cell, skipping the info column. */
3609
- index: a().number,
3610
- label: a().node,
3719
+ index: i().number,
3720
+ label: i().node,
3611
3721
  /** @private. */
3612
- onAutosizeColumn: a().func,
3722
+ onAutosizeColumn: i().func,
3613
3723
  /** @private. */
3614
- onDragStart: a().func,
3724
+ onDragStart: i().func,
3615
3725
  /**
3616
3726
  * @private. This will be passed through, and will work as expected.
3617
3727
  */
3618
- onKeyDown: a().func,
3619
- onRequestClose: a().func,
3728
+ onKeyDown: i().func,
3729
+ onRequestClose: i().func,
3620
3730
  /** @private. */
3621
- onRequestMoveColumn: a().func,
3622
- onRequestOpen: a().func,
3731
+ onRequestMoveColumn: i().func,
3732
+ onRequestOpen: i().func,
3623
3733
  /** @private. */
3624
- onRequestResize: a().func,
3625
- open: a().bool,
3626
- repositionMode: a().oneOf([ "none", "flip", "any" ]),
3627
- resizable: a().bool,
3628
- retainFocus: a().bool,
3734
+ onRequestResize: i().func,
3735
+ open: i().bool,
3736
+ repositionMode: i().oneOf([ "none", "flip", "any" ]),
3737
+ resizable: i().bool,
3738
+ retainFocus: i().bool,
3629
3739
  /** @private. */
3630
- showGuideline: a().oneOf([ "none", "before", "after" ]),
3631
- takeFocus: a().bool,
3632
- truncate: a().bool,
3740
+ showGuideline: i().oneOf([ "none", "before", "after" ]),
3741
+ takeFocus: i().bool,
3742
+ truncate: i().bool,
3633
3743
  /**
3634
3744
  * @private
3635
3745
  * Used internally to suppress focus when this `HeadDropdownCell` is superseded by one in an
3636
3746
  * overlaid `HeadTable` for user interactions.
3637
3747
  */
3638
- visible: a().bool,
3639
- width: a().number,
3748
+ visible: i().bool,
3749
+ width: i().number,
3640
3750
  /** @private. */
3641
- variant: a().oneOf([ "toggleAll", "info", "actions" ]),
3751
+ variant: i().oneOf([ "toggleAll", "info", "actions" ]),
3642
3752
  /** @private. */
3643
- zIndex: a().number
3753
+ zIndex: i().number
3644
3754
  };
3645
3755
  var qo = {
3646
3756
  align: "left",
@@ -3657,7 +3767,7 @@
3657
3767
  zIndex: 1
3658
3768
  };
3659
3769
  var Ao = function(e) {
3660
- Co(n, e);
3770
+ So(n, e);
3661
3771
  var t = Eo(n);
3662
3772
  // @docs-props-type HeadDropdownCellPropsBase
3663
3773
  /**
@@ -3679,7 +3789,7 @@
3679
3789
  }));
3680
3790
  jo(Do(r), "handleRequestClose", (function(e) {
3681
3791
  var t = e.reason, n = e.event;
3682
- var o = r.props, a = o.closeReasons, i = o.columnId, l = o.focusToggleReasons, s = o.index, c = o.onRequestClose;
3792
+ var o = r.props, i = o.closeReasons, a = o.columnId, l = o.focusToggleReasons, s = o.index, c = o.onRequestClose;
3683
3793
  if (t === "clickAway" && n !== undefined) {
3684
3794
  var u = n.target;
3685
3795
  while (u) {
@@ -3690,7 +3800,7 @@
3690
3800
  u = u.parentNode;
3691
3801
  }
3692
3802
  }
3693
- if (r.isOpen() && D()(a, t) && s !== undefined) {
3803
+ if (r.isOpen() && D()(i, t) && s !== undefined) {
3694
3804
  if (D()(l, t)) {
3695
3805
  r.focus();
3696
3806
  }
@@ -3702,7 +3812,7 @@
3702
3812
  c === null || c === void 0 ? void 0 : c(n, {
3703
3813
  index: s,
3704
3814
  reason: t,
3705
- columnId: i
3815
+ columnId: a
3706
3816
  });
3707
3817
  }
3708
3818
  }));
@@ -3716,8 +3826,8 @@
3716
3826
  clientX: e.clientX || undefined
3717
3827
  });
3718
3828
  if (r.isOpen()) {
3719
- var a, i;
3720
- (a = (i = r).handleRequestClose) === null || a === void 0 ? void 0 : a.call(i, {
3829
+ var i, a;
3830
+ (i = (a = r).handleRequestClose) === null || i === void 0 ? void 0 : i.call(a, {
3721
3831
  reason: "toggleClick",
3722
3832
  event: e
3723
3833
  });
@@ -3736,18 +3846,18 @@
3736
3846
  }
3737
3847
  }));
3738
3848
  jo(Do(r), "handleKeyDown", (function(e) {
3739
- var t = r.props, n = t.columnId, o = t.index, a = t.onKeyDown, i = t.onRequestMoveColumn;
3849
+ var t = r.props, n = t.columnId, o = t.index, i = t.onKeyDown, a = t.onRequestMoveColumn;
3740
3850
  if (e.target.getAttribute("data-test") !== "resize") {
3741
- if ((0, S.keycode)(e.nativeEvent) === "enter") {
3851
+ if ((0, C.keycode)(e.nativeEvent) === "enter") {
3742
3852
  r.handleClick(e);
3743
- } else if ((0, S.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
3744
- i === null || i === void 0 ? void 0 : i({
3853
+ } else if ((0, C.keycode)(e.nativeEvent) === "left" && o !== undefined && o > 0) {
3854
+ a === null || a === void 0 ? void 0 : a({
3745
3855
  fromIndex: o,
3746
3856
  toIndex: o - 1,
3747
3857
  columnId: n
3748
3858
  });
3749
- } else if ((0, S.keycode)(e.nativeEvent) === "right" && o !== undefined) {
3750
- i === null || i === void 0 ? void 0 : i({
3859
+ } else if ((0, C.keycode)(e.nativeEvent) === "right" && o !== undefined) {
3860
+ a === null || a === void 0 ? void 0 : a({
3751
3861
  fromIndex: o,
3752
3862
  toIndex: o + 1,
3753
3863
  columnId: n
@@ -3755,7 +3865,7 @@
3755
3865
  }
3756
3866
  }
3757
3867
  if (o !== undefined) {
3758
- a === null || a === void 0 ? void 0 : a(e, {
3868
+ i === null || i === void 0 ? void 0 : i(e, {
3759
3869
  index: o,
3760
3870
  columnId: n
3761
3871
  });
@@ -3790,7 +3900,7 @@
3790
3900
  if (false) {}
3791
3901
  return r;
3792
3902
  }
3793
- So(n, [ {
3903
+ Co(n, [ {
3794
3904
  key: "componentDidUpdate",
3795
3905
  value: function e(t) {
3796
3906
  if (t.visible && !this.props.visible) {
@@ -3823,13 +3933,13 @@
3823
3933
  key: "render",
3824
3934
  value: function e() {
3825
3935
  var t, o = this;
3826
- var a = this.props, i = a.align, l = a.canCoverHead, s = a.children, c = a.closeReasons, u = a.columnId, d = a.defaultPlacement, f = a.id, p = a.index, v = a.label, h = a.onAutosizeColumn, y = a.onDragStart, m = a.onRequestResize, g = a.repositionMode, w = a.resizable, x = a.retainFocus, k = a.showGuideline, S = a.style, C = a.takeFocus, O = a.truncate, E = a.variant, R = a.visible, I = a.width, T = a.zIndex;
3936
+ var i = this.props, a = i.align, l = i.canCoverHead, s = i.children, c = i.closeReasons, u = i.columnId, d = i.defaultPlacement, f = i.id, p = i.index, v = i.label, h = i.onAutosizeColumn, y = i.onDragStart, m = i.onRequestResize, g = i.repositionMode, w = i.resizable, x = i.retainFocus, k = i.showGuideline, C = i.style, S = i.takeFocus, O = i.truncate, E = i.variant, R = i.visible, I = i.width, T = i.zIndex;
3827
3937
  var j = this.state, _ = j.el, P = j.clientX;
3828
3938
  var q = f || this.cellId;
3829
3939
  var A = this.context.headType;
3830
3940
 
3831
3941
  return r().createElement(pt, vo({
3832
- style: Be()(S, {
3942
+ style: Be()(C, {
3833
3943
  width: I
3834
3944
  }),
3835
3945
  "data-test": "head-cell",
@@ -3849,7 +3959,7 @@
3849
3959
  $zIndex: T
3850
3960
  }), r().createElement(Bt, {
3851
3961
  label: v,
3852
- align: i,
3962
+ align: a,
3853
3963
  columnId: u,
3854
3964
  id: f,
3855
3965
  index: p,
@@ -3875,8 +3985,8 @@
3875
3985
  repositionMode: g,
3876
3986
  id: this.popoverId,
3877
3987
  "aria-labelledby": f || this.cellId,
3878
- takeFocus: C,
3879
- pointTo: P !== undefined && io()(P) ? {
3988
+ takeFocus: S,
3989
+ pointTo: P !== undefined && ao()(P) ? {
3880
3990
  x: P - ((t = _ === null || _ === void 0 ? void 0 : _.getBoundingClientRect().left) !== null && t !== void 0 ? t : 0)
3881
3991
  } : undefined
3882
3992
  }, so()(s) ? function() {
@@ -3899,7 +4009,7 @@
3899
4009
  jo(Ao, "possibleCloseReasons", _o);
3900
4010
  jo(Ao, "propTypes", Po);
3901
4011
  jo(Ao, "defaultProps", qo);
3902
- jo(Ao, "contextType", Kt);
4012
+ jo(Ao, "contextType", Ft);
3903
4013
  /* harmony default export */ const zo = Ao;
3904
4014
  // CONCATENATED MODULE: external "lodash/extend"
3905
4015
  const Ho = require("lodash/extend");
@@ -3935,8 +4045,8 @@
3935
4045
  }
3936
4046
  return Bo(e);
3937
4047
  }
3938
- function Fo() {
3939
- Fo = Object.assign || function(e) {
4048
+ function Wo() {
4049
+ Wo = Object.assign || function(e) {
3940
4050
  for (var t = 1; t < arguments.length; t++) {
3941
4051
  var n = arguments[t];
3942
4052
  for (var r in n) {
@@ -3947,16 +4057,16 @@
3947
4057
  }
3948
4058
  return e;
3949
4059
  };
3950
- return Fo.apply(this, arguments);
4060
+ return Wo.apply(this, arguments);
3951
4061
  }
3952
- function Ko(e, t) {
4062
+ function Fo(e, t) {
3953
4063
  if (e == null) return {};
3954
- var n = Wo(e, t);
4064
+ var n = Ko(e, t);
3955
4065
  var r, o;
3956
4066
  if (Object.getOwnPropertySymbols) {
3957
- var a = Object.getOwnPropertySymbols(e);
3958
- for (o = 0; o < a.length; o++) {
3959
- r = a[o];
4067
+ var i = Object.getOwnPropertySymbols(e);
4068
+ for (o = 0; o < i.length; o++) {
4069
+ r = i[o];
3960
4070
  if (t.indexOf(r) >= 0) continue;
3961
4071
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
3962
4072
  n[r] = e[r];
@@ -3964,13 +4074,13 @@
3964
4074
  }
3965
4075
  return n;
3966
4076
  }
3967
- function Wo(e, t) {
4077
+ function Ko(e, t) {
3968
4078
  if (e == null) return {};
3969
4079
  var n = {};
3970
4080
  var r = Object.keys(e);
3971
- var o, a;
3972
- for (a = 0; a < r.length; a++) {
3973
- o = r[a];
4081
+ var o, i;
4082
+ for (i = 0; i < r.length; i++) {
4083
+ o = r[i];
3974
4084
  if (t.indexOf(o) >= 0) continue;
3975
4085
  n[o] = e[o];
3976
4086
  }
@@ -4016,12 +4126,12 @@
4016
4126
  return Yo(e, t);
4017
4127
  }
4018
4128
  function Qo(e) {
4019
- var t = ea();
4129
+ var t = ei();
4020
4130
  return function n() {
4021
- var r = ta(e), o;
4131
+ var r = ti(e), o;
4022
4132
  if (t) {
4023
- var a = ta(this).constructor;
4024
- o = Reflect.construct(r, arguments, a);
4133
+ var i = ti(this).constructor;
4134
+ o = Reflect.construct(r, arguments, i);
4025
4135
  } else {
4026
4136
  o = r.apply(this, arguments);
4027
4137
  }
@@ -4040,7 +4150,7 @@
4040
4150
  }
4041
4151
  return e;
4042
4152
  }
4043
- function ea() {
4153
+ function ei() {
4044
4154
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
4045
4155
  if (Reflect.construct.sham) return false;
4046
4156
  if (typeof Proxy === "function") return true;
@@ -4051,13 +4161,13 @@
4051
4161
  return false;
4052
4162
  }
4053
4163
  }
4054
- function ta(e) {
4055
- ta = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
4164
+ function ti(e) {
4165
+ ti = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
4056
4166
  return t.__proto__ || Object.getPrototypeOf(t);
4057
4167
  };
4058
- return ta(e);
4168
+ return ti(e);
4059
4169
  }
4060
- function na(e, t, n) {
4170
+ function ni(e, t, n) {
4061
4171
  if (t in e) {
4062
4172
  Object.defineProperty(e, t, {
4063
4173
  value: n,
@@ -4070,42 +4180,42 @@
4070
4180
  }
4071
4181
  return e;
4072
4182
  }
4073
- var ra = {
4074
- cellWidths: a().arrayOf(a().number).isRequired,
4075
- dragIndex: a().number,
4076
- elementRef: a().oneOfType([ a().func, a().object ]),
4077
- hasDragColumn: a().bool,
4078
- hasRowExpansion: a().bool,
4079
- hasRowSelection: a().bool,
4080
- headType: a().oneOf([ "docked", "fixed" ]).isRequired,
4081
- horizontalOffset: a().number,
4082
- isFixedColumn: a().bool,
4083
- rowSelection: a().oneOf([ "all", "some", "none" ]),
4084
- tableStyle: a().object,
4085
- tableWidth: a().number.isRequired,
4086
- tHead: a().element.isRequired,
4087
- top: a().number.isRequired,
4088
- width: a().number.isRequired
4183
+ var ri = {
4184
+ cellWidths: i().arrayOf(i().number).isRequired,
4185
+ dragIndex: i().number,
4186
+ elementRef: i().oneOfType([ i().func, i().object ]),
4187
+ hasDragColumn: i().bool,
4188
+ hasRowExpansion: i().bool,
4189
+ hasRowSelection: i().bool,
4190
+ headType: i().oneOf([ "docked", "fixed" ]).isRequired,
4191
+ horizontalOffset: i().number,
4192
+ isFixedColumn: i().bool,
4193
+ rowSelection: i().oneOf([ "all", "some", "none" ]),
4194
+ tableStyle: i().object,
4195
+ tableWidth: i().number.isRequired,
4196
+ tHead: i().element.isRequired,
4197
+ top: i().number.isRequired,
4198
+ width: i().number.isRequired
4089
4199
  };
4090
- var oa = {
4200
+ var oi = {
4091
4201
  horizontalOffset: 0
4092
4202
  };
4093
4203
  /**
4094
4204
  * @private
4095
4205
  * HeadTable is an internal component that provides a detached table head that can
4096
4206
  * then be positioned in different ways outside of the main table.
4097
- */ var aa = function(e) {
4207
+ */ var ii = function(e) {
4098
4208
  Xo(o, e);
4099
4209
  var t = Qo(o);
4100
4210
  function o() {
4101
4211
  var e;
4102
4212
  Uo(this, o);
4103
- for (var n = arguments.length, r = new Array(n), a = 0; a < n; a++) {
4104
- r[a] = arguments[a];
4213
+ for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) {
4214
+ r[i] = arguments[i];
4105
4215
  }
4106
4216
  e = t.call.apply(t, [ this ].concat(r));
4107
- na(Zo(e), "head", null);
4108
- na(Zo(e), "handleHeadMount", (function(t) {
4217
+ ni(Zo(e), "head", null);
4218
+ ni(Zo(e), "handleHeadMount", (function(t) {
4109
4219
  e.head = t;
4110
4220
  }));
4111
4221
  return e;
@@ -4118,7 +4228,7 @@
4118
4228
  }, {
4119
4229
  key: "render",
4120
4230
  value: function e() {
4121
- var t = this.props, o = t.cellWidths, a = t.elementRef, i = t.hasDragColumn, l = t.hasRowExpansion, s = t.hasRowSelection, c = t.headType, u = t.horizontalOffset, d = t.isFixedColumn, f = t.tableStyle, p = t.tableWidth, v = t.tHead, h = t.top, y = t.width, m = Ko(t, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
4231
+ var t = this.props, o = t.cellWidths, i = t.elementRef, a = t.hasDragColumn, l = t.hasRowExpansion, s = t.hasRowSelection, c = t.headType, u = t.horizontalOffset, d = t.isFixedColumn, f = t.tableStyle, p = t.tableWidth, v = t.tHead, h = t.top, y = t.width, m = Fo(t, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
4122
4232
  var g = c === "docked";
4123
4233
  var w = g ? No : Lo;
4124
4234
  var x = 0;
@@ -4128,7 +4238,7 @@
4128
4238
  if (s) {
4129
4239
  x += 1;
4130
4240
  }
4131
- if (i) {
4241
+ if (a) {
4132
4242
  x += 1;
4133
4243
  }
4134
4244
  // Set the widths of the head cells if not fixed column
@@ -4141,7 +4251,7 @@
4141
4251
  })
4142
4252
  });
4143
4253
  }));
4144
- var S = (0, n.cloneElement)(v, {
4254
+ var C = (0, n.cloneElement)(v, {
4145
4255
  ref: this.handleHeadMount,
4146
4256
  "data-test": "".concat(c, "-head")
4147
4257
  }, k);
@@ -4151,22 +4261,22 @@
4151
4261
  top: h,
4152
4262
  width: y
4153
4263
  },
4154
- ref: a
4155
- }, r().createElement($o, Fo({
4264
+ ref: i
4265
+ }, r().createElement($o, Wo({
4156
4266
  "data-test": "".concat(c, "-head-table"),
4157
4267
  "data-fixed-column": d ? "true" : undefined,
4158
4268
  style: Mo()({}, f, {
4159
4269
  marginLeft: u,
4160
4270
  width: d ? undefined : p
4161
4271
  })
4162
- }, b()(m, "dragIndex")), S));
4272
+ }, b()(m, "dragIndex")), C));
4163
4273
  }
4164
4274
  } ]);
4165
4275
  return o;
4166
4276
  }(n.Component);
4167
- na(aa, "propTypes", ra);
4168
- na(aa, "defaultProps", oa);
4169
- /* harmony default export */ const ia = aa;
4277
+ ni(ii, "propTypes", ri);
4278
+ ni(ii, "defaultProps", oi);
4279
+ /* harmony default export */ const ai = ii;
4170
4280
  // CONCATENATED MODULE: ./src/utils/types.ts
4171
4281
  // see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
4172
4282
  // regarding the css prop. certain (versions of) libraries included in the compilation
@@ -4177,27 +4287,27 @@
4177
4287
  // erroneously included in react-ui's public api.
4178
4288
  // see https://github.com/microsoft/TypeScript/pull/12253
4179
4289
  // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
4180
- function la(e, t) {
4290
+ function li(e, t) {
4181
4291
  if (e === undefined || e === null) {
4182
4292
  throw new Error(t !== null && t !== void 0 ? t : "Unexpected undefined or null");
4183
4293
  }
4184
4294
  }
4185
4295
  // CONCATENATED MODULE: ./src/Table/Table.tsx
4186
- function sa(e) {
4296
+ function si(e) {
4187
4297
  "@babel/helpers - typeof";
4188
4298
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
4189
- sa = function e(t) {
4299
+ si = function e(t) {
4190
4300
  return typeof t;
4191
4301
  };
4192
4302
  } else {
4193
- sa = function e(t) {
4303
+ si = function e(t) {
4194
4304
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4195
4305
  };
4196
4306
  }
4197
- return sa(e);
4307
+ return si(e);
4198
4308
  }
4199
- function ca() {
4200
- ca = Object.assign || function(e) {
4309
+ function ci() {
4310
+ ci = Object.assign || function(e) {
4201
4311
  for (var t = 1; t < arguments.length; t++) {
4202
4312
  var n = arguments[t];
4203
4313
  for (var r in n) {
@@ -4208,41 +4318,41 @@
4208
4318
  }
4209
4319
  return e;
4210
4320
  };
4211
- return ca.apply(this, arguments);
4321
+ return ci.apply(this, arguments);
4212
4322
  }
4213
- function ua(e) {
4214
- return va(e) || pa(e) || fa(e) || da();
4323
+ function ui(e) {
4324
+ return vi(e) || pi(e) || fi(e) || di();
4215
4325
  }
4216
- function da() {
4326
+ function di() {
4217
4327
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4218
4328
  }
4219
- function fa(e, t) {
4329
+ function fi(e, t) {
4220
4330
  if (!e) return;
4221
- if (typeof e === "string") return ha(e, t);
4331
+ if (typeof e === "string") return hi(e, t);
4222
4332
  var n = Object.prototype.toString.call(e).slice(8, -1);
4223
4333
  if (n === "Object" && e.constructor) n = e.constructor.name;
4224
4334
  if (n === "Map" || n === "Set") return Array.from(e);
4225
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ha(e, t);
4335
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return hi(e, t);
4226
4336
  }
4227
- function pa(e) {
4337
+ function pi(e) {
4228
4338
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
4229
4339
  }
4230
- function va(e) {
4231
- if (Array.isArray(e)) return ha(e);
4340
+ function vi(e) {
4341
+ if (Array.isArray(e)) return hi(e);
4232
4342
  }
4233
- function ha(e, t) {
4343
+ function hi(e, t) {
4234
4344
  if (t == null || t > e.length) t = e.length;
4235
4345
  for (var n = 0, r = new Array(t); n < t; n++) {
4236
4346
  r[n] = e[n];
4237
4347
  }
4238
4348
  return r;
4239
4349
  }
4240
- function ba(e, t) {
4350
+ function bi(e, t) {
4241
4351
  if (!(e instanceof t)) {
4242
4352
  throw new TypeError("Cannot call a class as a function");
4243
4353
  }
4244
4354
  }
4245
- function ya(e, t) {
4355
+ function yi(e, t) {
4246
4356
  for (var n = 0; n < t.length; n++) {
4247
4357
  var r = t[n];
4248
4358
  r.enumerable = r.enumerable || false;
@@ -4251,12 +4361,12 @@
4251
4361
  Object.defineProperty(e, r.key, r);
4252
4362
  }
4253
4363
  }
4254
- function ma(e, t, n) {
4255
- if (t) ya(e.prototype, t);
4256
- if (n) ya(e, n);
4364
+ function mi(e, t, n) {
4365
+ if (t) yi(e.prototype, t);
4366
+ if (n) yi(e, n);
4257
4367
  return e;
4258
4368
  }
4259
- function ga(e, t) {
4369
+ function gi(e, t) {
4260
4370
  if (typeof t !== "function" && t !== null) {
4261
4371
  throw new TypeError("Super expression must either be null or a function");
4262
4372
  }
@@ -4267,41 +4377,41 @@
4267
4377
  configurable: true
4268
4378
  }
4269
4379
  });
4270
- if (t) wa(e, t);
4380
+ if (t) wi(e, t);
4271
4381
  }
4272
- function wa(e, t) {
4273
- wa = Object.setPrototypeOf || function e(t, n) {
4382
+ function wi(e, t) {
4383
+ wi = Object.setPrototypeOf || function e(t, n) {
4274
4384
  t.__proto__ = n;
4275
4385
  return t;
4276
4386
  };
4277
- return wa(e, t);
4387
+ return wi(e, t);
4278
4388
  }
4279
- function xa(e) {
4280
- var t = Ca();
4389
+ function xi(e) {
4390
+ var t = Si();
4281
4391
  return function n() {
4282
- var r = Oa(e), o;
4392
+ var r = Oi(e), o;
4283
4393
  if (t) {
4284
- var a = Oa(this).constructor;
4285
- o = Reflect.construct(r, arguments, a);
4394
+ var i = Oi(this).constructor;
4395
+ o = Reflect.construct(r, arguments, i);
4286
4396
  } else {
4287
4397
  o = r.apply(this, arguments);
4288
4398
  }
4289
- return ka(this, o);
4399
+ return ki(this, o);
4290
4400
  };
4291
4401
  }
4292
- function ka(e, t) {
4293
- if (t && (sa(t) === "object" || typeof t === "function")) {
4402
+ function ki(e, t) {
4403
+ if (t && (si(t) === "object" || typeof t === "function")) {
4294
4404
  return t;
4295
4405
  }
4296
- return Sa(e);
4406
+ return Ci(e);
4297
4407
  }
4298
- function Sa(e) {
4408
+ function Ci(e) {
4299
4409
  if (e === void 0) {
4300
4410
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4301
4411
  }
4302
4412
  return e;
4303
4413
  }
4304
- function Ca() {
4414
+ function Si() {
4305
4415
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
4306
4416
  if (Reflect.construct.sham) return false;
4307
4417
  if (typeof Proxy === "function") return true;
@@ -4312,13 +4422,13 @@
4312
4422
  return false;
4313
4423
  }
4314
4424
  }
4315
- function Oa(e) {
4316
- Oa = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
4425
+ function Oi(e) {
4426
+ Oi = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
4317
4427
  return t.__proto__ || Object.getPrototypeOf(t);
4318
4428
  };
4319
- return Oa(e);
4429
+ return Oi(e);
4320
4430
  }
4321
- function Ea(e, t, n) {
4431
+ function Ei(e, t, n) {
4322
4432
  if (t in e) {
4323
4433
  Object.defineProperty(e, t, {
4324
4434
  value: n,
@@ -4333,28 +4443,28 @@
4333
4443
  }
4334
4444
  // Exposed as static members of the Table class
4335
4445
  // Internal Helper Modules
4336
- /** @public */ var Ra = {
4337
- actions: a().arrayOf(a().element),
4338
- actionsColumnWidth: a().number,
4339
- children: a().node,
4340
- dockOffset: a().number,
4341
- dockScrollBar: a().bool,
4342
- elementRef: a().oneOfType([ a().func, a().object ]),
4343
- headType: a().oneOf([ "docked", "fixed", "inline" ]),
4344
- innerStyle: a().object,
4345
- onRequestToggleAllRows: a().func,
4346
- onScroll: a().func,
4347
- outerStyle: a().object,
4348
- primaryColumnIndex: a().number,
4349
- rowExpansion: a().oneOf([ "single", "multi", "controlled", "none" ]),
4350
- rowSelection: a().oneOf([ "all", "some", "none" ]),
4351
- stripeRows: a().bool,
4352
- tableStyle: a().object,
4353
- onRequestMoveColumn: a().func,
4354
- onRequestMoveRow: a().func,
4355
- onRequestResizeColumn: a().func
4446
+ /** @public */ var Ri = {
4447
+ actions: i().arrayOf(i().element),
4448
+ actionsColumnWidth: i().number,
4449
+ children: i().node,
4450
+ dockOffset: i().number,
4451
+ dockScrollBar: i().bool,
4452
+ elementRef: i().oneOfType([ i().func, i().object ]),
4453
+ headType: i().oneOf([ "docked", "fixed", "inline" ]),
4454
+ innerStyle: i().object,
4455
+ onRequestToggleAllRows: i().func,
4456
+ onScroll: i().func,
4457
+ outerStyle: i().object,
4458
+ primaryColumnIndex: i().number,
4459
+ rowExpansion: i().oneOf([ "single", "multi", "controlled", "none" ]),
4460
+ rowSelection: i().oneOf([ "all", "some", "none" ]),
4461
+ stripeRows: i().bool,
4462
+ tableStyle: i().object,
4463
+ onRequestMoveColumn: i().func,
4464
+ onRequestMoveRow: i().func,
4465
+ onRequestResizeColumn: i().func
4356
4466
  };
4357
- var Da = {
4467
+ var Di = {
4358
4468
  actions: [],
4359
4469
  dockOffset: 0,
4360
4470
  headType: "inline",
@@ -4363,10 +4473,10 @@
4363
4473
  resizableFillLayout: false,
4364
4474
  primaryColumnIndex: 0
4365
4475
  };
4366
- var Ia = function(e) {
4367
- ga(o, e);
4368
- var t = xa(o);
4369
- ma(o, null, [ {
4476
+ var Ii = function(e) {
4477
+ gi(o, e);
4478
+ var t = xi(o);
4479
+ mi(o, null, [ {
4370
4480
  key: "getHeadFocusState",
4371
4481
  // @docs-props-type TablePropsBase
4372
4482
  /**
@@ -4383,12 +4493,12 @@
4383
4493
  if (t === undefined || t === null) {
4384
4494
  return undefined;
4385
4495
  }
4386
- var a = (n = t.getEl()) === null || n === void 0 ? void 0 : n.children[0].children;
4387
- var i = d()(a, o.activeElement);
4388
- if (i > -1) {
4496
+ var i = (n = t.getEl()) === null || n === void 0 ? void 0 : n.children[0].children;
4497
+ var a = d()(i, o.activeElement);
4498
+ if (a > -1) {
4389
4499
  return {
4390
4500
  target: "headCell",
4391
- index: i
4501
+ index: a
4392
4502
  };
4393
4503
  }
4394
4504
  var l = (r = t.getEl()) === null || r === void 0 ? void 0 : r.querySelectorAll("[data-test=resize]");
@@ -4424,15 +4534,15 @@
4424
4534
  key: "applyHeadFocusState",
4425
4535
  value: function e(t, n) {
4426
4536
  var r, o;
4427
- var a = n.target, i = n.index;
4537
+ var i = n.target, a = n.index;
4428
4538
  if (false) {}
4429
4539
  var l;
4430
- if (a === "headCell") {
4540
+ if (i === "headCell") {
4431
4541
  var s;
4432
- l = t === null || t === void 0 ? void 0 : (s = t.getEl()) === null || s === void 0 ? void 0 : s.children[0].children[i];
4433
- } else if (a === "resizeButton") {
4542
+ l = t === null || t === void 0 ? void 0 : (s = t.getEl()) === null || s === void 0 ? void 0 : s.children[0].children[a];
4543
+ } else if (i === "resizeButton") {
4434
4544
  var c;
4435
- l = t === null || t === void 0 ? void 0 : (c = t.getEl()) === null || c === void 0 ? void 0 : c.querySelectorAll("[data-test=resize]")[i];
4545
+ l = t === null || t === void 0 ? void 0 : (c = t.getEl()) === null || c === void 0 ? void 0 : c.querySelectorAll("[data-test=resize]")[a];
4436
4546
  }
4437
4547
  if (false) {}
4438
4548
  (r = l) === null || r === void 0 ? void 0 : (o = r.focus) === null || o === void 0 ? void 0 : o.call(r);
@@ -4440,40 +4550,40 @@
4440
4550
  } ]);
4441
4551
  function o(e) {
4442
4552
  var n;
4443
- ba(this, o);
4553
+ bi(this, o);
4444
4554
  n = t.call(this, e);
4445
- Ea(Sa(n), "dockedScrollBar", null);
4446
- Ea(Sa(n), "head", null);
4447
- Ea(Sa(n), "headFocusState", void 0);
4448
- Ea(Sa(n), "headTable", null);
4449
- Ea(Sa(n), "headTableEl", null);
4450
- Ea(Sa(n), "scrollSource", void 0);
4451
- Ea(Sa(n), "table", null);
4452
- Ea(Sa(n), "tableContainer", null);
4453
- Ea(Sa(n), "updateDockedHeadState", (function() {
4555
+ Ei(Ci(n), "dockedScrollBar", null);
4556
+ Ei(Ci(n), "head", null);
4557
+ Ei(Ci(n), "headFocusState", void 0);
4558
+ Ei(Ci(n), "headTable", null);
4559
+ Ei(Ci(n), "headTableEl", null);
4560
+ Ei(Ci(n), "scrollSource", void 0);
4561
+ Ei(Ci(n), "table", null);
4562
+ Ei(Ci(n), "tableContainer", null);
4563
+ Ei(Ci(n), "updateDockedHeadState", (function() {
4454
4564
  var e = $();
4455
4565
  if (n.isInline()) {
4456
4566
  return;
4457
4567
  }
4458
- var t = Sa(n), r = t.tableContainer, a = t.head, i = t.table;
4568
+ var t = Ci(n), r = t.tableContainer, i = t.head, a = t.table;
4459
4569
  var l = n.props.dockOffset;
4460
- if (!i || !a) {
4570
+ if (!a || !i) {
4461
4571
  return;
4462
4572
  }
4463
- var s = a.getCellWidths();
4464
- var c = a.getClientHeight();
4465
- var u = o.getOffset(i).top - e.pageYOffset - (c !== null && c !== void 0 ? c : 0) + i.offsetHeight;
4573
+ var s = i.getCellWidths();
4574
+ var c = i.getClientHeight();
4575
+ var u = o.getOffset(a).top - e.pageYOffset - (c !== null && c !== void 0 ? c : 0) + a.offsetHeight;
4466
4576
  var d = Math.min(u, l);
4467
4577
  n.setState({
4468
4578
  width: r === null || r === void 0 ? void 0 : r.clientWidth,
4469
- tableWidth: i === null || i === void 0 ? void 0 : i.clientWidth,
4579
+ tableWidth: a === null || a === void 0 ? void 0 : a.clientWidth,
4470
4580
  cellWidths: s,
4471
4581
  top: d
4472
4582
  });
4473
4583
  }));
4474
- Ea(Sa(n), "handleScroll", m()(n.updateDockedHeadState, 0));
4475
- Ea(Sa(n), "handleResize", m()(n.updateDockedHeadState, 50));
4476
- Ea(Sa(n), "handleContainerScroll", (function(e) {
4584
+ Ei(Ci(n), "handleScroll", m()(n.updateDockedHeadState, 0));
4585
+ Ei(Ci(n), "handleResize", m()(n.updateDockedHeadState, 50));
4586
+ Ei(Ci(n), "handleContainerScroll", (function(e) {
4477
4587
  var t, r;
4478
4588
  (t = (r = n.props).onScroll) === null || t === void 0 ? void 0 : t.call(r, e);
4479
4589
  if ((n.isFixed() || n.headerIsDocked()) && n.tableContainer) {
@@ -4488,7 +4598,7 @@
4488
4598
  n.scrollSource = undefined;
4489
4599
  }
4490
4600
  }));
4491
- Ea(Sa(n), "handleDockedScrollBarScroll", (function() {
4601
+ Ei(Ci(n), "handleDockedScrollBarScroll", (function() {
4492
4602
  if (n.scrollSource !== "container" && n.tableContainer && n.dockedScrollBar) {
4493
4603
  n.scrollSource = "dockedScrollBar";
4494
4604
  n.tableContainer.scrollLeft = n.dockedScrollBar.scrollLeft;
@@ -4496,7 +4606,7 @@
4496
4606
  n.scrollSource = undefined;
4497
4607
  }
4498
4608
  }));
4499
- Ea(Sa(n), "handleDragStart", (function(e) {
4609
+ Ei(Ci(n), "handleDragStart", (function(e) {
4500
4610
  var t = e.dragIndex;
4501
4611
  var r = $();
4502
4612
  n.setState({
@@ -4507,7 +4617,7 @@
4507
4617
  r.addEventListener("drop", n.handleDrop);
4508
4618
  r.addEventListener("dragend", n.handleDragEnd);
4509
4619
  }));
4510
- Ea(Sa(n), "handleDragOver", (function(e) {
4620
+ Ei(Ci(n), "handleDragOver", (function(e) {
4511
4621
  e.preventDefault();
4512
4622
  // necessary for the drop event to fire
4513
4623
  if (e.dataTransfer) {
@@ -4515,27 +4625,27 @@
4515
4625
  }
4516
4626
  n.updateDragPosition(e.clientX);
4517
4627
  }));
4518
- Ea(Sa(n), "handleDragEnter", (function(e) {
4628
+ Ei(Ci(n), "handleDragEnter", (function(e) {
4519
4629
  e.preventDefault();
4520
4630
  // necessary for the drop event to fire
4521
4631
  n.setState({
4522
4632
  dragPosition: e.clientX
4523
4633
  });
4524
4634
  }));
4525
- Ea(Sa(n), "handleDragEnd", (function() {
4635
+ Ei(Ci(n), "handleDragEnd", (function() {
4526
4636
  n.setState({
4527
4637
  dragPosition: undefined
4528
4638
  });
4529
4639
  n.cleanupDrag();
4530
4640
  }));
4531
- Ea(Sa(n), "handleDrop", (function(e) {
4641
+ Ei(Ci(n), "handleDrop", (function(e) {
4532
4642
  e.preventDefault();
4533
4643
  // necessary to prevent cell from animating to original position;
4534
4644
  }));
4535
- Ea(Sa(n), "handleHeadMount", (function(e) {
4645
+ Ei(Ci(n), "handleHeadMount", (function(e) {
4536
4646
  n.head = e;
4537
4647
  }));
4538
- Ea(Sa(n), "handleHeadTableMount", (function(e) {
4648
+ Ei(Ci(n), "handleHeadTableMount", (function(e) {
4539
4649
  if (e) {
4540
4650
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
4541
4651
  if (n.headFocusState) {
@@ -4552,11 +4662,11 @@
4552
4662
  }
4553
4663
  n.headTable = e;
4554
4664
  }));
4555
- Ea(Sa(n), "handleHeadTableElementMount", (function(e) {
4665
+ Ei(Ci(n), "handleHeadTableElementMount", (function(e) {
4556
4666
  n.headTableEl = e;
4557
4667
  }));
4558
- Ea(Sa(n), "handleHeadTableKeyUp", (function(e) {
4559
- if (!n.headTableEl || !n.tableContainer || (0, S.keycode)(e.nativeEvent) !== "tab") {
4668
+ Ei(Ci(n), "handleHeadTableKeyUp", (function(e) {
4669
+ if (!n.headTableEl || !n.tableContainer || (0, C.keycode)(e.nativeEvent) !== "tab") {
4560
4670
  return;
4561
4671
  }
4562
4672
  var t = n.headTableEl.scrollLeft;
@@ -4565,8 +4675,8 @@
4565
4675
  n.tableContainer.scrollLeft += t;
4566
4676
  }
4567
4677
  }));
4568
- Ea(Sa(n), "handleAutosizeColumn", (function(e, t) {
4569
- var r, o, a, i;
4678
+ Ei(Ci(n), "handleAutosizeColumn", (function(e, t) {
4679
+ var r, o, i, a;
4570
4680
  var s = t.index, c = t.columnId;
4571
4681
  var u = H();
4572
4682
  if (s === undefined) {
@@ -4590,14 +4700,14 @@
4590
4700
  p.appendChild(t);
4591
4701
  }));
4592
4702
  u.body.appendChild(p);
4593
- (o = (a = n.props).onRequestResizeColumn) === null || o === void 0 ? void 0 : o.call(a, e, {
4703
+ (o = (i = n.props).onRequestResizeColumn) === null || o === void 0 ? void 0 : o.call(i, e, {
4594
4704
  index: s,
4595
4705
  columnId: c,
4596
4706
  width: p.clientWidth + 1
4597
4707
  });
4598
- (i = p.parentNode) === null || i === void 0 ? void 0 : i.removeChild(p);
4708
+ (a = p.parentNode) === null || a === void 0 ? void 0 : a.removeChild(p);
4599
4709
  }));
4600
- Ea(Sa(n), "updateDragPosition", m()(n.updateDragPositionImpl, 100, {
4710
+ Ei(Ci(n), "updateDragPosition", m()(n.updateDragPositionImpl, 100, {
4601
4711
  trailing: false
4602
4712
  }));
4603
4713
  n.state = {
@@ -4606,7 +4716,7 @@
4606
4716
  if (false) {}
4607
4717
  return n;
4608
4718
  }
4609
- ma(o, [ {
4719
+ mi(o, [ {
4610
4720
  key: "componentDidUpdate",
4611
4721
  value: function e(t) {
4612
4722
  var n = this.head, r = this.headTable;
@@ -4663,20 +4773,20 @@
4663
4773
  }, {
4664
4774
  key: "createHead",
4665
4775
  value: function e(t) {
4666
- var r = this.props, o = r.actions, a = r.actionsColumnWidth, i = r.onRequestMoveColumn, l = r.onRequestMoveRow, s = r.onRequestResizeColumn, c = r.onRequestToggleAllRows, u = r.rowExpansion, d = r.rowSelection;
4776
+ var r = this.props, o = r.actions, i = r.actionsColumnWidth, a = r.onRequestMoveColumn, l = r.onRequestMoveRow, s = r.onRequestResizeColumn, c = r.onRequestToggleAllRows, u = r.rowExpansion, d = r.rowSelection;
4667
4777
  var f = this.state.dragIndex;
4668
4778
  var p = n.Children.toArray(t.props.children).filter(n.isValidElement);
4669
4779
  var v = o.filter(n.isValidElement);
4670
4780
  var h = (0, n.cloneElement)(t, {
4671
4781
  actions: v,
4672
- actionsColumnWidth: a,
4782
+ actionsColumnWidth: i,
4673
4783
  dragIndex: f,
4674
4784
  dragPosition: this.state.dragPosition,
4675
4785
  hasInfoColumn: u !== "none",
4676
4786
  hasDragColumn: !!l,
4677
4787
  onAutosizeColumn: this.handleAutosizeColumn,
4678
- onDragStart: i ? this.handleDragStart : undefined,
4679
- onRequestMoveColumn: i,
4788
+ onDragStart: a ? this.handleDragStart : undefined,
4789
+ onRequestMoveColumn: a,
4680
4790
  onRequestResizeColumn: s,
4681
4791
  onRequestToggleAllRows: c,
4682
4792
  ref: this.handleHeadMount,
@@ -4761,15 +4871,15 @@
4761
4871
  // Save the current head focus state so that it can be applied to the docked version
4762
4872
  // after the `HeadTable` mounts.
4763
4873
  this.headFocusState = o.getHeadFocusState(this.head);
4764
- var a = this.state, i = a.cellWidths, l = a.dragIndex, s = a.horizontalOffset, c = a.tableWidth, u = a.top, d = a.width;
4765
- if (i === undefined || c === undefined || u === undefined || d === undefined) {
4874
+ var i = this.state, a = i.cellWidths, l = i.dragIndex, s = i.horizontalOffset, c = i.tableWidth, u = i.top, d = i.width;
4875
+ if (a === undefined || c === undefined || u === undefined || d === undefined) {
4766
4876
  return false;
4767
4877
  }
4768
4878
 
4769
- return r().createElement(ia, {
4879
+ return r().createElement(ai, {
4770
4880
  headType: "docked",
4771
4881
  tHead: t,
4772
- cellWidths: i,
4882
+ cellWidths: a,
4773
4883
  dragIndex: l,
4774
4884
  horizontalOffset: s,
4775
4885
  tableWidth: c,
@@ -4797,8 +4907,8 @@
4797
4907
  }
4798
4908
  var o = 0;
4799
4909
  if (this.dockedScrollBar && this.head && this.table && this.head) {
4800
- var a, i;
4801
- var l = n.innerHeight - this.table.getBoundingClientRect().top - ((a = (i = this.head.getEl()) === null || i === void 0 ? void 0 : i.offsetHeight) !== null && a !== void 0 ? a : 0);
4910
+ var i, a;
4911
+ var l = n.innerHeight - this.table.getBoundingClientRect().top - ((i = (a = this.head.getEl()) === null || a === void 0 ? void 0 : a.offsetHeight) !== null && i !== void 0 ? i : 0);
4802
4912
  o = Math.min(l - this.dockedScrollBar.offsetHeight, 0);
4803
4913
  }
4804
4914
 
@@ -4819,22 +4929,41 @@
4819
4929
  "data-test": "docked-scroll-content"
4820
4930
  }));
4821
4931
  }
4932
+ }, {
4933
+ key: "getTableContainerWidthWithoutBorders",
4934
+ value: function e() {
4935
+ /**
4936
+ * there is slightly less space for the table than tableContainer's width,
4937
+ * because there is a 1 px border added to every column but the first
4938
+ */
4939
+ if (this.head) {
4940
+ var t;
4941
+ var n = this.head.getCellWidths();
4942
+ var r = n.length;
4943
+ var o = (t = this.tableContainer) === null || t === void 0 ? void 0 : t.clientWidth;
4944
+ if (o != null) {
4945
+ var i = Math.max(0, r - 1);
4946
+ return o - i;
4947
+ }
4948
+ }
4949
+ return null;
4950
+ }
4822
4951
  }, {
4823
4952
  key: "render",
4824
4953
  value: function e() {
4825
4954
  var t = this;
4826
- var a = this.props, i = a.children, l = a.elementRef, s = a.headType, u = a.innerStyle, d = a.onRequestResizeColumn, f = a.onRequestToggleAllRows, p = a.outerStyle, v = a.resizableFillLayout, h = a.rowSelection, y = a.tableStyle;
4955
+ var i = this.props, a = i.children, l = i.elementRef, s = i.headType, u = i.innerStyle, d = i.onRequestResizeColumn, f = i.onRequestToggleAllRows, p = i.outerStyle, v = i.resizableFillLayout, h = i.rowSelection, y = i.tableStyle;
4827
4956
  var m;
4828
4957
  var g;
4829
4958
  var x;
4830
- var S = !!d;
4831
- n.Children.toArray(i).forEach((function(e) {
4959
+ var C = !!d;
4960
+ n.Children.toArray(a).forEach((function(e) {
4832
4961
  var r = e.type.splunkUiType;
4833
4962
  if (r === "Table.Head") {
4834
4963
  m = t.createHead(e);
4835
- if (!S) {
4964
+ if (!C) {
4836
4965
  // if all the HeadCells are fixed width, then the table is fixed.
4837
- S = !n.Children.toArray(e.props.children).filter(n.isValidElement).some((function(e) {
4966
+ C = !n.Children.toArray(e.props.children).filter(n.isValidElement).some((function(e) {
4838
4967
  return !c()(e.props, "width");
4839
4968
  }));
4840
4969
  }
@@ -4848,8 +4977,8 @@
4848
4977
  x = e;
4849
4978
  }
4850
4979
  }));
4851
- la(m, "A Table.Head is required.");
4852
- var O = this.renderHeadTable(m, S);
4980
+ li(m, "A Table.Head is required.");
4981
+ var O = this.renderHeadTable(m, C);
4853
4982
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
4854
4983
  // interactions will be handled by the overlaid `headTable` instead.
4855
4984
  var E = n.Children.toArray(m.props.children).filter(n.isValidElement).map((function(e) {
@@ -4863,15 +4992,16 @@
4863
4992
  var R = this.context || $();
4864
4993
  var D = this.isFixed() ? this.tableContainer : R;
4865
4994
  if (v) {
4866
- S = false;
4995
+ C = false;
4867
4996
  }
4997
+ var I = this.getTableContainerWidthWithoutBorders();
4868
4998
 
4869
- return r().createElement(ae, ca({
4999
+ return r().createElement(ie, ci({
4870
5000
  "data-test": "table",
4871
5001
  ref: l,
4872
5002
  style: p,
4873
5003
  "data-test-row-selection": f ? h : undefined
4874
- }, b()(this.props, [].concat(ua(Object.keys(o.propTypes)), [ "style" ]))), r().createElement(k(), {
5004
+ }, b()(this.props, [].concat(ui(Object.keys(o.propTypes)), [ "style" ]))), r().createElement(k(), {
4875
5005
  target: $(),
4876
5006
  eventType: "scroll",
4877
5007
  listener: this.handleScroll,
@@ -4882,17 +5012,19 @@
4882
5012
  }), r().createElement(w(), {
4883
5013
  handleWidth: true,
4884
5014
  onResize: this.handleResize
4885
- }), r().createElement(Kt.Provider, {
5015
+ }), r().createElement(Ft.Provider, {
4886
5016
  value: {
4887
- headType: s
5017
+ headType: s,
5018
+ resizableFillLayout: v,
5019
+ tableContainerWidthWithoutBorders: I
4888
5020
  }
4889
- }, O, r().createElement(ie, {
5021
+ }, O, r().createElement(ae, {
4890
5022
  onScroll: this.handleContainerScroll,
4891
5023
  ref: function e(n) {
4892
5024
  t.tableContainer = n;
4893
5025
  },
4894
5026
  style: u
4895
- }, r().createElement(C.ScrollContainerProvider, {
5027
+ }, r().createElement(S.ScrollContainerProvider, {
4896
5028
  value: D
4897
5029
  }, r().createElement(le, {
4898
5030
  ref: function e(n) {
@@ -4900,24 +5032,24 @@
4900
5032
  },
4901
5033
  "data-test": "main-table",
4902
5034
  style: y,
4903
- "data-fixed-column": S ? "true" : undefined,
5035
+ "data-fixed-column": C ? "true" : undefined,
4904
5036
  $resizableFillLayout: v
4905
5037
  }, x, m, g))), this.renderDockedScrollbar()));
4906
5038
  }
4907
5039
  } ]);
4908
5040
  return o;
4909
5041
  }(n.Component);
4910
- Ea(Ia, "propTypes", Ra);
4911
- Ea(Ia, "contextType", C.ScrollContainerContext);
4912
- Ea(Ia, "defaultProps", Da);
4913
- Ea(Ia, "Caption", be);
4914
- Ea(Ia, "Head", oo);
4915
- Ea(Ia, "HeadCell", vn);
4916
- Ea(Ia, "HeadDropdownCell", zo);
4917
- Ea(Ia, "Body", oe);
4918
- Ea(Ia, "Row", qr);
4919
- Ea(Ia, "Cell", ze);
4920
- /* harmony default export */ const Ta = Ia;
5042
+ Ei(Ii, "propTypes", Ri);
5043
+ Ei(Ii, "contextType", S.ScrollContainerContext);
5044
+ Ei(Ii, "defaultProps", Di);
5045
+ Ei(Ii, "Caption", be);
5046
+ Ei(Ii, "Head", oo);
5047
+ Ei(Ii, "HeadCell", vn);
5048
+ Ei(Ii, "HeadDropdownCell", zo);
5049
+ Ei(Ii, "Body", oe);
5050
+ Ei(Ii, "Row", qr);
5051
+ Ei(Ii, "Cell", ze);
5052
+ /* harmony default export */ const Ti = Ii;
4921
5053
  // CONCATENATED MODULE: ./src/Table/index.ts
4922
5054
  module.exports = t;
4923
5055
  /******/})();