@splunk/react-ui 5.0.0-rc.1 → 5.0.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
@@ -64,11 +64,11 @@
64
64
  Body: () => /* reexport */ Q,
65
65
  Caption: () => /* reexport */ fe,
66
66
  Cell: () => /* reexport */ Se,
67
- Head: () => /* reexport */ Qt,
68
- HeadCell: () => /* reexport */ In,
69
- HeadDropdownCell: () => /* reexport */ wr,
70
- Row: () => /* reexport */ Pt,
71
- default: () => /* reexport */ Go
67
+ Head: () => /* reexport */ Zt,
68
+ HeadCell: () => /* reexport */ _n,
69
+ HeadDropdownCell: () => /* reexport */ Cr,
70
+ Row: () => /* reexport */ _t,
71
+ default: () => /* reexport */ Jo
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
74
74
  const t = require("react");
@@ -92,8 +92,8 @@
92
92
  const v = require("lodash/indexOf");
93
93
  var p = e.n(v);
94
94
  // CONCATENATED MODULE: external "lodash/isEqual"
95
- const b = require("lodash/isEqual");
96
- var m = e.n(b);
95
+ const m = require("lodash/isEqual");
96
+ var b = e.n(m);
97
97
  // CONCATENATED MODULE: external "lodash/isNumber"
98
98
  const h = require("lodash/isNumber");
99
99
  // CONCATENATED MODULE: external "lodash/omit"
@@ -106,8 +106,8 @@
106
106
  const x = require("@splunk/react-ui/EventListener");
107
107
  var S = e.n(x);
108
108
  // CONCATENATED MODULE: external "@splunk/react-ui/useResizeObserver"
109
- const O = require("@splunk/react-ui/useResizeObserver");
110
- var k = e.n(O);
109
+ const k = require("@splunk/react-ui/useResizeObserver");
110
+ var O = e.n(k);
111
111
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
112
112
  const R = require("@splunk/ui-utils/id");
113
113
  // CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
@@ -253,14 +253,14 @@
253
253
  var n = e.actions, o = e.children, i = e.elementRef, a = e.movableColumns, l = e.onRequestMoveRow, u = e.rowExpansion, s = u === void 0 ? "none" : u, c = e.primaryColumnIndex, d = e.stripeRows, f = X(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
254
254
  // @docs-props-type BodyPropsBase
255
255
  var v = [];
256
- var p = (0, t.useState)([]), b = H(p, 2), m = b[0], h = b[1];
256
+ var p = (0, t.useState)([]), m = H(p, 2), b = m[0], h = m[1];
257
257
  var y = (0, t.useRef)(null);
258
258
  var g = (0, t.useCallback)((function(e) {
259
259
  y.current = e;
260
260
  W(i, e);
261
261
  }), [ i, y ]);
262
262
  var w = function e(n, t, r) {
263
- var o = m;
263
+ var o = b;
264
264
  if (s === "single") {
265
265
  if (A()(o, t)) {
266
266
  h([]);
@@ -277,9 +277,9 @@
277
277
  r === null || r === void 0 ? void 0 : r(n);
278
278
  };
279
279
  var C = t.Children.toArray(o).filter(t.isValidElement);
280
- var x = (0, t.useState)(new Map), S = H(x, 2), O = S[0], k = S[1];
280
+ var x = (0, t.useState)(new Map), S = H(x, 2), k = S[0], O = S[1];
281
281
  r().useEffect((function() {
282
- k((function(e) {
282
+ O((function(e) {
283
283
  var n = new Map(e);
284
284
  var r = false;
285
285
  C.forEach((function(o) {
@@ -307,15 +307,15 @@
307
307
  var u = (o = e.key) !== null && o !== void 0 ? o : r;
308
308
  var f = r % 2 ? "even" : "odd";
309
309
  var p = d ? f : "none";
310
- var b = s === "controlled" ? e.props.expanded : A()(m, u);
310
+ var m = s === "controlled" ? e.props.expanded : A()(b, u);
311
311
  var h = function n(t) {
312
312
  w(t, u, e.props.onExpansion);
313
313
  };
314
- var y = e.props.expansionRow ? (i = O.get(u)) === null || i === void 0 ? void 0 : i.join(" ") : undefined;
314
+ var y = e.props.expansionRow ? (i = k.get(u)) === null || i === void 0 ? void 0 : i.join(" ") : undefined;
315
315
  v.push( (0, t.cloneElement)(e, {
316
316
  stripe: p,
317
317
  actions: n,
318
- expanded: b,
318
+ expanded: m,
319
319
  expansionRowIds: y,
320
320
  expandable: s !== "none",
321
321
  isDraggable: !!l,
@@ -324,10 +324,10 @@
324
324
  onExpansion: h,
325
325
  key: e.key || r
326
326
  }));
327
- if (b && e.props.expansionRow) {
327
+ if (m && e.props.expansionRow) {
328
328
  t.Children.forEach(e.props.expansionRow, (function(e, n) {
329
329
  var r;
330
- var o = (r = O.get(u)) === null || r === void 0 ? void 0 : r[n];
330
+ var o = (r = k.get(u)) === null || r === void 0 ? void 0 : r[n];
331
331
  v.push( (0, t.cloneElement)(e, {
332
332
  key: o,
333
333
  id: o,
@@ -463,18 +463,21 @@
463
463
  const ve = require("@splunk/react-ui/ButtonSimple");
464
464
  // CONCATENATED MODULE: ./src/Table/CellStyles.ts
465
465
  var pe = "2px";
466
- var be = (0, z.css)([ "box-shadow:", ";" ], $.variables.focusShadowInset);
467
- var me = M().td.withConfig({
466
+ var me = (0, z.css)([ "box-shadow:", ";" ], $.variables.focusShadowInset);
467
+ var be = M().td.withConfig({
468
468
  displayName: "CellStyles__Styled",
469
469
  componentId: "sc-1955xk2-0"
470
- })([ "", " padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;line-height:20px;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], $.mixins.reset("table-cell"), pe, $.variables.spacingSmall, $.variables.contentColorDefault, $.variables.focusShadowInset, (0,
471
- $.pickVariant)("$variant", {
472
- expand: (0, z.css)([ "padding:0;vertical-align:top;height:100%;" ]),
473
- toggle: (0, z.css)([ "padding:0;vertical-align:top;height:100%;" ])
470
+ })([ "", " padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;line-height:20px;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}padding-block:", ";padding-inline:", ";", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], $.mixins.reset("table-cell"), pe, $.variables.spacingSmall, $.variables.contentColorDefault, $.variables.focusShadowInset, (0,
471
+ $.pick)({
472
+ comfortable: "8px",
473
+ compact: "6px"
474
+ }), $.variables.spacingSmall, (0, $.pickVariant)("$variant", {
475
+ expand: (0, z.css)([ "height:100%;padding:0;" ]),
476
+ toggle: (0, z.css)([ "height:100%;padding:0;" ])
474
477
  }), (function(e) {
475
478
  var n = e.$variant, t = e.$isPrimaryCell;
476
479
  return (0, $.pickVariant)("$appearance", {
477
- data: (0, z.css)([ "", "" ], n === "actions" && (0, z.css)([ "cursor:default;*:where(button){", " &:focus{box-shadow:", ";}}" ], (0,
480
+ data: (0, z.css)([ "", "" ], n === "actions" && (0, z.css)([ "cursor:default;padding-block:", ";padding-inline:", ";*:where(button){", " &:focus{box-shadow:", ";}}" ], pe, $.variables.spacingSmall, (0,
478
481
  ve.buttonMixin)("subtle", {
479
482
  color: $.variables.contentColorDefault
480
483
  }), $.variables.focusShadowInset)),
@@ -484,8 +487,8 @@
484
487
  });
485
488
  }), (function(e) {
486
489
  var n = e.$clickable, t = e.$focusWithin, r = e.$stripe;
487
- return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? $.variables.neutral300 : $.variables.neutral100, be, r === "even" ? $.variables.neutral300 : $.variables.neutral100, t && (0,
488
- z.css)([ "&:focus-within{", " background-color:", ";}" ], be, r === "even" ? $.variables.neutral300 : $.variables.neutral100));
490
+ return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? $.variables.neutral300 : $.variables.neutral100, me, r === "even" ? $.variables.neutral300 : $.variables.neutral100, t && (0,
491
+ z.css)([ "&:focus-within{", " background-color:", ";}" ], me, r === "even" ? $.variables.neutral300 : $.variables.neutral100));
489
492
  }));
490
493
  /*
491
494
  * A wrapper ensures that the Table Cell contents align to the top while staying within the height of inputHeight.
@@ -493,7 +496,7 @@
493
496
  */ var he = M().div.withConfig({
494
497
  displayName: "CellStyles__StyledCellContent",
495
498
  componentId: "sc-1955xk2-1"
496
- })([ "display:flex;align-items:center;word-break:break-word;min-height:", ";", " ", "" ], $.variables.inputHeight, (0,
499
+ })([ "display:flex;align-items:flex-start;word-break:break-word;", " ", "" ], (0,
497
500
  $.pickVariant)("$variant", {
498
501
  expand: (0, z.css)([ "height:100%;" ]),
499
502
  toggle: (0, z.css)([ "height:100%;" ])
@@ -559,7 +562,7 @@
559
562
  variant: i().oneOf([ "toggle", "expand", "drag", "actions" ])
560
563
  };
561
564
  function xe(e) {
562
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, b = e.variant, m = ge(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
565
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, m = e.variant, b = ge(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
563
566
  // @docs-props-type CellPropsBase
564
567
  var h = f !== undefined;
565
568
  var y = a || h;
@@ -568,12 +571,12 @@
568
571
  W(c, e);
569
572
  }), [ c ]);
570
573
  var C = (0, t.useCallback)((function(e) {
571
- if (b === "actions") {
574
+ if (m === "actions") {
572
575
  // Action buttons have their own onClicks inside the cell so we don't want Row onClick to fire
573
576
  e.stopPropagation();
574
577
  }
575
578
  f === null || f === void 0 ? void 0 : f(e, u);
576
- }), [ u, f, b ]);
579
+ }), [ u, f, m ]);
577
580
  var x = (0, t.useCallback)((function(e) {
578
581
  if (e.key === "Enter") {
579
582
  f === null || f === void 0 ? void 0 : f(e, u);
@@ -581,7 +584,7 @@
581
584
  v === null || v === void 0 ? void 0 : v(e);
582
585
  }), [ u, f, v ]);
583
586
 
584
- return r().createElement(me, ye({
587
+ return r().createElement(be, ye({
585
588
  "data-test": "cell",
586
589
  $appearance: i || g,
587
590
  $clickable: y ? true : undefined,
@@ -589,84 +592,106 @@
589
592
  $focusWithin: a,
590
593
  $isPrimaryCell: d,
591
594
  $stripe: p,
592
- $variant: b,
595
+ $variant: m,
593
596
  onClick: C,
594
597
  onKeyDown: x,
595
598
  ref: w,
596
599
  tabIndex: h ? 0 : undefined
597
- }, m), r().createElement(he, {
600
+ }, b), r().createElement(he, {
598
601
  $align: o,
599
- $variant: b
602
+ $variant: m
600
603
  }, l));
601
604
  }
602
605
  xe.propTypes = Ce;
603
606
  xe.splunkUiType = "Table.Cell";
604
607
  /* harmony default export */ const Se = xe;
605
608
  // CONCATENATED MODULE: external "lodash/isString"
606
- const Oe = require("lodash/isString");
607
- var ke = e.n(Oe);
609
+ const ke = require("lodash/isString");
610
+ var Oe = e.n(ke);
608
611
  // CONCATENATED MODULE: external "lodash/merge"
609
612
  const Re = require("lodash/merge");
610
613
  var Ee = e.n(Re);
611
614
  // CONCATENATED MODULE: external "@splunk/react-icons/ParallelDots"
612
615
  const Ie = require("@splunk/react-icons/ParallelDots");
613
616
  var Te = e.n(Ie);
614
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
615
- const je = require("@splunk/react-icons/ArrowDown");
617
+ // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
618
+ const je = require("@splunk/react-ui/Tooltip");
616
619
  var De = e.n(je);
617
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
618
- const qe = require("@splunk/react-icons/ArrowUp");
620
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
621
+ const qe = require("@splunk/react-icons/ArrowDown");
619
622
  var Ae = e.n(qe);
620
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
621
- const Pe = require("@splunk/react-icons/ArrowUpDown");
623
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
624
+ const Pe = require("@splunk/react-icons/ArrowUp");
622
625
  var _e = e.n(Pe);
623
- // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
624
- const ze = require("@splunk/react-icons/CaretSmallDown");
626
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
627
+ const ze = require("@splunk/react-icons/ArrowUpDown");
625
628
  var Me = e.n(ze);
626
- // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
627
- const $e = require("@splunk/react-ui/Divider");
629
+ // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
630
+ const $e = require("@splunk/react-icons/CaretSmallDown");
628
631
  var Ne = e.n($e);
632
+ // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
633
+ const We = require("@splunk/react-icons/InformationCircle");
634
+ var Le = e.n(We);
635
+ // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
636
+ const He = require("@splunk/react-ui/Divider");
637
+ var Ke = e.n(He);
629
638
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
630
- var We = "2px";
631
- var Le = M().span.withConfig({
632
- displayName: "HeadInnerStyles__StyledLabel",
639
+ var Be = (0, z.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
640
+ var Ve = M().span.withConfig({
641
+ displayName: "HeadInnerStyles__StyledIcon",
633
642
  componentId: "sc-1sa0wng-0"
634
- })([ "display:flex;flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", "" ], (0,
635
- $.pickVariant)("$truncate", {
643
+ })([ "", " grid-column:icon;" ], Be);
644
+ var Fe = M().span.withConfig({
645
+ displayName: "HeadInnerStyles__StyledTooltipIcon",
646
+ componentId: "sc-1sa0wng-1"
647
+ })([ "", " grid-column:tooltip;" ], Be);
648
+ var Ue = M().span.withConfig({
649
+ displayName: "HeadInnerStyles__StyledLabel",
650
+ componentId: "sc-1sa0wng-2"
651
+ })([ "grid-column:label;grid-row:1 / -1;position:relative;word-wrap:break-word;word-break:break-word;height:100%;", " ", " ", "" ], (function(e) {
652
+ var n = e.$variant;
653
+ return n === "toggleAll" && (0, z.css)([ "grid-column:1 / -1;" ]);
654
+ }), (0, $.pickVariant)("$truncate", {
636
655
  true: (0, z.css)([ "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" ])
637
656
  }), (0, $.pickVariant)("$align", {
638
657
  right: (0, z.css)([ "& > &{text-align:right;}" ]),
639
658
  left: (0, z.css)([ "& > &{text-align:left;}" ]),
640
659
  center: (0, z.css)([ "& > &{text-align:center;}" ])
641
- }), (function(e) {
642
- var n = e.$variant;
643
- return n === "toggleAll" && (0, z.css)([ "width:100%;" ]);
644
660
  }));
645
- var He = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
646
- var Ke = M().div.withConfig({
661
+ var Xe = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
662
+ var Ye = M().div.withConfig({
647
663
  displayName: "HeadInnerStyles__Styled",
648
- componentId: "sc-1sa0wng-1"
649
- })([ "", ";", ";", ";position:relative;flex-grow:1;justify-content:", ";gap:", ";padding:", " ", ";min-height:calc(", " + ", "*2);align-items:center;", " @media print{background-image:none;}", "" ], $.mixins.reset("flex"), $.mixins.clearfix(), $.mixins.typography("body", {
664
+ componentId: "sc-1sa0wng-3"
665
+ })([ "", ";", ";", ";position:relative;", " grid-template-rows:1lh auto;align-items:start;flex-grow:1;height:100%;padding-block:", ";padding-inline:", ";justify-content:", ";", " ", " @media print{background-image:none;}", "" ], $.mixins.reset("grid"), $.mixins.clearfix(), $.mixins.typography("body", {
650
666
  weight: "bold"
651
- }), (0, $.pickVariant)("$align", {
667
+ }), (function(e) {
668
+ var n = e.$hasTooltip, t = e.$hasIcon;
669
+ return (0, z.css)([ "grid-template-columns:[label] auto ", " ", ";column-gap:", ";" ], n ? "[tooltip] min-content" : "", t ? "[icon] min-content" : "", n || t ? $.variables.spacingXSmall : 0);
670
+ }), (0, $.pick)({
671
+ comfortable: "8px",
672
+ compact: "6px"
673
+ }), $.variables.spacingSmall, (0, $.pickVariant)("$align", {
652
674
  center: "center",
653
675
  left: "flex-start",
654
676
  right: "flex-end"
655
- }), $.variables.spacingXSmall, We, $.variables.spacingSmall, $.variables.inputHeight, We, (function(e) {
677
+ }), (function(e) {
656
678
  var n = e.$variant;
657
- return n === "toggleAll" && (0, z.css)([ "padding:0;" ]);
679
+ return n && (0, z.css)([ "grid-template-columns:1fr;grid-template-rows:1fr;" ]);
680
+ }), (0, $.pickVariant)("$variant", {
681
+ toggleAll: (0, z.css)([ "padding:0;" ]),
682
+ actions: (0, z.css)([ "padding-block:2px;" ])
658
683
  }), (function(e) {
659
684
  var n = e.$clickable, t = e.$focusWithin;
660
- return n && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], He, t && (0,
661
- z.css)([ "&:focus-within{", "}" ], He), $.variables.contentColorActive);
685
+ return n && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], Xe, t && (0,
686
+ z.css)([ "&:focus-within{", "}" ], Xe), $.variables.contentColorActive);
662
687
  }));
663
- var Be = M()(Ne()).withConfig({
688
+ var Ge = M()(Ke()).withConfig({
664
689
  displayName: "HeadInnerStyles__StyledResize",
665
- componentId: "sc-1sa0wng-2"
666
- })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:0;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], $.mixins.reset("block"), /* sc-sel */ Ke, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
690
+ componentId: "sc-1sa0wng-4"
691
+ })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:0;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], $.mixins.reset("block"), /* sc-sel */ Ye, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
667
692
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
668
693
  /* eslint-disable @typescript-eslint/no-empty-function */
669
- var Ve = {
694
+ var Je = {
670
695
  body: {
671
696
  appendChild: function e() {
672
697
  return [];
@@ -720,16 +745,16 @@
720
745
  search: ""
721
746
  }
722
747
  };
723
- function Fe() {
724
- var e = typeof document !== "undefined" ? document : Ve;
748
+ function Qe() {
749
+ var e = typeof document !== "undefined" ? document : Je;
725
750
  return e;
726
751
  }
727
- var Ue = Fe();
728
- /* harmony default export */ const Xe = /* unused pure expression or super */ null && Ue;
752
+ var Ze = Qe();
753
+ /* harmony default export */ const en = /* unused pure expression or super */ null && Ze;
729
754
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
730
755
  /* eslint-disable @typescript-eslint/no-empty-function */
731
- var Ye = {
732
- document: Ve,
756
+ var nn = {
757
+ document: Je,
733
758
  navigator: {
734
759
  userAgent: ""
735
760
  },
@@ -783,15 +808,15 @@
783
808
  clearTimeout(n);
784
809
  }
785
810
  };
786
- function Ge() {
787
- var e = typeof window !== "undefined" ? window : Ye;
811
+ function tn() {
812
+ var e = typeof window !== "undefined" ? window : nn;
788
813
  return e;
789
814
  }
790
- var Je = Ge();
791
- /* harmony default export */ const Qe = /* unused pure expression or super */ null && Je;
815
+ var rn = tn();
816
+ /* harmony default export */ const on = /* unused pure expression or super */ null && rn;
792
817
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
793
- function Ze() {
794
- return Ze = Object.assign ? Object.assign.bind() : function(e) {
818
+ function an() {
819
+ return an = Object.assign ? Object.assign.bind() : function(e) {
795
820
  for (var n = 1; n < arguments.length; n++) {
796
821
  var t = arguments[n];
797
822
  for (var r in t) {
@@ -799,41 +824,41 @@
799
824
  }
800
825
  }
801
826
  return e;
802
- }, Ze.apply(null, arguments);
827
+ }, an.apply(null, arguments);
803
828
  }
804
- function en(e) {
805
- return rn(e) || tn(e) || ln(e) || nn();
829
+ function ln(e) {
830
+ return cn(e) || sn(e) || vn(e) || un();
806
831
  }
807
- function nn() {
832
+ function un() {
808
833
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
809
834
  }
810
- function tn(e) {
835
+ function sn(e) {
811
836
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
812
837
  }
813
- function rn(e) {
814
- if (Array.isArray(e)) return un(e);
838
+ function cn(e) {
839
+ if (Array.isArray(e)) return pn(e);
815
840
  }
816
- function on(e, n) {
817
- return cn(e) || sn(e, n) || ln(e, n) || an();
841
+ function dn(e, n) {
842
+ return bn(e) || mn(e, n) || vn(e, n) || fn();
818
843
  }
819
- function an() {
844
+ function fn() {
820
845
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
821
846
  }
822
- function ln(e, n) {
847
+ function vn(e, n) {
823
848
  if (e) {
824
- if ("string" == typeof e) return un(e, n);
849
+ if ("string" == typeof e) return pn(e, n);
825
850
  var t = {}.toString.call(e).slice(8, -1);
826
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? un(e, n) : void 0;
851
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? pn(e, n) : void 0;
827
852
  }
828
853
  }
829
- function un(e, n) {
854
+ function pn(e, n) {
830
855
  (null == n || n > e.length) && (n = e.length);
831
856
  for (var t = 0, r = Array(n); t < n; t++) {
832
857
  r[t] = e[t];
833
858
  }
834
859
  return r;
835
860
  }
836
- function sn(e, n) {
861
+ function mn(e, n) {
837
862
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
838
863
  if (null != t) {
839
864
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -855,12 +880,12 @@
855
880
  return l;
856
881
  }
857
882
  }
858
- function cn(e) {
883
+ function bn(e) {
859
884
  if (Array.isArray(e)) return e;
860
885
  }
861
- function dn(e, n) {
886
+ function hn(e, n) {
862
887
  if (null == e) return {};
863
- var t, r, o = fn(e, n);
888
+ var t, r, o = yn(e, n);
864
889
  if (Object.getOwnPropertySymbols) {
865
890
  var i = Object.getOwnPropertySymbols(e);
866
891
  for (r = 0; r < i.length; r++) {
@@ -869,7 +894,7 @@
869
894
  }
870
895
  return o;
871
896
  }
872
- function fn(e, n) {
897
+ function yn(e, n) {
873
898
  if (null == e) return {};
874
899
  var t = {};
875
900
  for (var r in e) {
@@ -880,12 +905,13 @@
880
905
  }
881
906
  return t;
882
907
  }
883
- var vn = {
908
+ var gn = {
884
909
  align: i().oneOf([ "left", "center", "right" ]),
885
910
  clickable: i().bool,
886
911
  columnId: i().string,
887
912
  elementRef: i().oneOfType([ i().func, i().object ]),
888
913
  focusWithin: i().bool,
914
+ hasTooltip: i().bool,
889
915
  id: i().string,
890
916
  index: i().number,
891
917
  isMenu: i().bool,
@@ -898,79 +924,79 @@
898
924
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ]),
899
925
  variant: i().oneOf([ "toggleAll", "info", "actions" ])
900
926
  };
901
- var pn = new Set([ "none", "asc", "desc" ]);
902
- var bn = Object.freeze({
927
+ var wn = new Set([ "none", "asc", "desc" ]);
928
+ var Cn = Object.freeze({
903
929
  none: (0, j._)("Click to sort"),
904
930
  asc: (0, j._)("Press to sort descending"),
905
931
  desc: (0, j._)("Press to sort ascending")
906
932
  });
907
- var mn = Object.freeze({
908
- none: _e(),
909
- asc: Ae(),
910
- desc: De()
933
+ var xn = Object.freeze({
934
+ none: Me(),
935
+ asc: _e(),
936
+ desc: Ae()
911
937
  });
912
- function hn(e) {
913
- var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.columnId, l = e.elementRef, u = e.focusWithin, s = e.id, c = e.index, d = e.isMenu, f = d === void 0 ? false : d, v = e.label, p = e.onAutosizeColumn, b = e.onRequestResize, m = e.resizable, h = m === void 0 ? true : m, y = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, x = e.variant, O = e.width, k = dn(e, [ "align", "clickable", "columnId", "elementRef", "focusWithin", "id", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
938
+ function Sn(e) {
939
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.columnId, l = e.elementRef, u = e.focusWithin, s = e.hasTooltip, c = e.id, d = e.index, f = e.isMenu, v = f === void 0 ? false : f, p = e.label, m = e.onAutosizeColumn, b = e.onRequestResize, h = e.resizable, y = h === void 0 ? true : h, w = e.sortDir, C = e.truncate, x = C === void 0 ? true : C, k = e.variant, O = e.width, R = hn(e, [ "align", "clickable", "columnId", "elementRef", "focusWithin", "hasTooltip", "id", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
914
940
  if (false) {}
915
- var R = (0, j._)("Click to open menu");
916
- var E = (0, t.useState)(false), I = on(E, 2), T = I[0], q = I[1];
917
- var A = (0, t.useState)(0), P = on(A, 2), _ = P[0], z = P[1];
918
- var M = (0, t.useState)(0), $ = on(M, 2), N = $[0], L = $[1];
919
- var H = (0, t.useRef)(null);
920
- var K = (0, t.useRef)(O === "auto" ? undefined : O);
921
- var B;
941
+ var E = (0, j._)("Click to open menu");
942
+ var I = (0, t.useState)(false), T = dn(I, 2), q = T[0], A = T[1];
943
+ var P = (0, t.useState)(0), _ = dn(P, 2), z = _[0], M = _[1];
944
+ var $ = (0, t.useState)(0), N = dn($, 2), L = N[0], H = N[1];
945
+ var K = (0, t.useRef)(null);
946
+ var B = (0, t.useRef)(O === "auto" ? undefined : O);
922
947
  var V;
923
- if (y !== undefined && pn.has(y)) {
924
- B = mn[y];
925
- V = bn[y];
948
+ var F;
949
+ if (w !== undefined && wn.has(w)) {
950
+ V = xn[w];
951
+ F = Cn[w];
926
952
  }
927
953
  if (O === "auto") {
928
- var F;
929
- var U = H.current;
930
- var X = U === null || U === void 0 ? void 0 : (F = U.parentElement) === null || F === void 0 ? void 0 : F.getBoundingClientRect();
931
- K.current = X === null || X === void 0 ? void 0 : X.width;
954
+ var U;
955
+ var X = K.current;
956
+ var Y = X === null || X === void 0 ? void 0 : (U = X.parentElement) === null || U === void 0 ? void 0 : U.getBoundingClientRect();
957
+ B.current = Y === null || Y === void 0 ? void 0 : Y.width;
932
958
  } else {
933
- K.current = O;
959
+ B.current = O;
934
960
  }
935
- var Y = (0, t.useCallback)((function(e) {
936
- H.current = e;
937
- W(l, e);
938
- }), [ l, H ]);
939
961
  var G = (0, t.useCallback)((function(e) {
962
+ K.current = e;
963
+ W(l, e);
964
+ }), [ l, K ]);
965
+ var J = (0, t.useCallback)((function(e) {
940
966
  var n = e.key;
941
- if (b === undefined || c === undefined) {
967
+ if (b === undefined || d === undefined) {
942
968
  return;
943
969
  }
944
970
  if (O === "auto") {
945
971
  var t;
946
- var r = H.current;
972
+ var r = K.current;
947
973
  var o = r === null || r === void 0 ? void 0 : (t = r.parentElement) === null || t === void 0 ? void 0 : t.getBoundingClientRect();
948
- K.current = o === null || o === void 0 ? void 0 : o.width;
974
+ B.current = o === null || o === void 0 ? void 0 : o.width;
949
975
  } else {
950
- K.current = O;
976
+ B.current = O;
951
977
  }
952
- if (K.current === undefined) {
978
+ if (B.current === undefined) {
953
979
  return;
954
980
  }
955
981
  if (n === "ArrowLeft") {
956
982
  e.preventDefault();
957
983
  // prevent text selection
958
- var i = Math.max(K.current - 10, 20);
984
+ var i = Math.max(B.current - 10, 20);
959
985
  b(e, {
960
- index: c,
986
+ index: d,
961
987
  columnId: a,
962
- id: s,
988
+ id: c,
963
989
  width: i
964
990
  });
965
991
  }
966
992
  if (n === "ArrowRight") {
967
993
  e.preventDefault();
968
994
  // prevent text selection
969
- var l = K.current + 10;
995
+ var l = B.current + 10;
970
996
  b(e, {
971
- index: c,
997
+ index: d,
972
998
  columnId: a,
973
- id: s,
999
+ id: c,
974
1000
  width: l
975
1001
  });
976
1002
  }
@@ -978,127 +1004,139 @@
978
1004
  e.preventDefault();
979
1005
  // SUI-7320: prevent sorting and dropdown opening
980
1006
  }
981
- }), [ a, s, c, b, O ]);
982
- var J = (0, t.useCallback)((function(e) {
1007
+ }), [ a, c, d, b, O ]);
1008
+ var Q = (0, t.useCallback)((function(e) {
983
1009
  if (O === "auto") {
984
1010
  var n;
985
- var t = H.current;
1011
+ var t = K.current;
986
1012
  var r = t === null || t === void 0 ? void 0 : (n = t.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
987
- K.current = r === null || r === void 0 ? void 0 : r.width;
1013
+ B.current = r === null || r === void 0 ? void 0 : r.width;
988
1014
  } else {
989
- K.current = O;
1015
+ B.current = O;
990
1016
  }
991
- if (K.current === undefined) {
1017
+ if (B.current === undefined) {
992
1018
  return;
993
1019
  }
994
1020
  e.preventDefault();
995
1021
  // prevent text selection
996
- z(e.clientX);
997
- L(K.current || 0);
998
- q(true);
1022
+ M(e.clientX);
1023
+ H(B.current || 0);
1024
+ A(true);
999
1025
  }), [ O ]);
1000
- var Q = function e(n) {
1001
- var t = _ - n.clientX;
1002
- var r = Math.max(N - t, 16);
1003
- if (c !== undefined) {
1026
+ var Z = function e(n) {
1027
+ var t = z - n.clientX;
1028
+ var r = Math.max(L - t, 16);
1029
+ if (d !== undefined) {
1004
1030
  b === null || b === void 0 ? void 0 : b(n, {
1005
- index: c,
1031
+ index: d,
1006
1032
  columnId: a,
1007
- id: s,
1033
+ id: c,
1008
1034
  width: r
1009
1035
  });
1010
1036
  }
1011
1037
  };
1012
- var Z = function e() {
1013
- q(false);
1038
+ var ee = function e() {
1039
+ A(false);
1014
1040
  };
1015
- var ee = (0, t.useCallback)((function(e) {
1016
- if (c !== undefined) {
1017
- p === null || p === void 0 ? void 0 : p(e, {
1018
- index: c,
1041
+ var ne = (0, t.useCallback)((function(e) {
1042
+ if (d !== undefined) {
1043
+ m === null || m === void 0 ? void 0 : m(e, {
1044
+ index: d,
1019
1045
  columnId: a
1020
1046
  });
1021
1047
  }
1022
- }), [ a, c, p ]);
1023
- var ne = Ge();
1024
- var te = K.current ? (0, D.sprintf)((0, j._)("%(width)d pixels"), {
1025
- width: K.current
1048
+ }), [ a, d, m ]);
1049
+ var te = tn();
1050
+ var re = B.current ? (0, D.sprintf)((0, j._)("%(width)d pixels"), {
1051
+ width: B.current
1026
1052
  }) : undefined;
1027
- var re = a ? {
1053
+ var oe = a ? {
1028
1054
  ariaControls: a
1029
1055
  } : {};
1030
1056
 
1031
- return r().createElement(Ke, Ze({
1057
+ return r().createElement(Ye, an({
1032
1058
  as: i ? "button" : "div",
1033
- ref: Y,
1059
+ ref: G,
1034
1060
  $align: o,
1035
1061
  $clickable: i,
1036
1062
  $focusWithin: u,
1037
- $variant: x
1038
- }, g()(k, [].concat(en(Object.keys(hn.propTypes)), [ "id" ]))), T && r().createElement(r().Fragment, null, r().createElement(S(), {
1039
- target: ne,
1063
+ $hasIcon: !!v || !!w,
1064
+ $hasTooltip: !!s,
1065
+ $variant: k
1066
+ }, g()(R, [].concat(ln(Object.keys(Sn.propTypes)), [ "id" ]))), q && r().createElement(r().Fragment, null, r().createElement(S(), {
1067
+ target: te,
1040
1068
  eventType: "mouseup",
1041
- listener: Z
1069
+ listener: ee
1042
1070
  }), r().createElement(S(), {
1043
- target: ne,
1071
+ target: te,
1044
1072
  eventType: "mousemove",
1045
- listener: Q
1046
- })), b && h && r().createElement(Be, Ze({
1073
+ listener: Z
1074
+ })), b && y && r().createElement(Ge, an({
1047
1075
  "aria-label": (0, D.sprintf)((0, j._)("Resize %(label)s"), {
1048
- label: v
1076
+ label: p
1049
1077
  })
1050
- }, re, {
1051
- "aria-valuetext": te,
1078
+ }, oe, {
1079
+ "aria-valuetext": re,
1052
1080
  "data-test": "resize",
1053
- onMouseDown: J,
1054
- onDoubleClick: ee,
1055
- onKeyDown: G,
1081
+ onMouseDown: Q,
1082
+ onDoubleClick: ne,
1083
+ onKeyDown: J,
1056
1084
  orientation: "vertical",
1057
1085
  tabIndex: 0
1058
- })), r().createElement(Le, {
1086
+ })), r().createElement(Ue, {
1059
1087
  $align: o,
1060
- $truncate: C,
1061
- $variant: x
1062
- }, v), f && r().createElement(Me(), {
1088
+ $truncate: x,
1089
+ $variant: k
1090
+ }, p), s && r().createElement(Fe, null, r().createElement(Le(), {
1091
+ "data-test": "tooltip-icon"
1092
+ })), v && r().createElement(Ve, null, r().createElement(Ne(), {
1063
1093
  "data-test": "caret-down",
1064
- "aria-label": R
1065
- }), y && B !== undefined && r().createElement(B, {
1094
+ "aria-label": E
1095
+ })), w && r().createElement(Ve, null, V !== undefined && r().createElement(V, {
1066
1096
  "aria-hidden": false,
1067
- "aria-label": V
1068
- }));
1097
+ "aria-label": F
1098
+ })));
1069
1099
  }
1070
- hn.propTypes = vn;
1071
- /* harmony default export */ const yn = hn;
1100
+ Sn.propTypes = gn;
1101
+ /* harmony default export */ const kn = Sn;
1072
1102
  // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
1073
- var gn = M().div.withConfig({
1103
+ var On = M().div.withConfig({
1074
1104
  displayName: "HeadCellStyles__StyledInnerWrapper",
1075
1105
  componentId: "sc-1hj81sa-0"
1076
1106
  })([ "display:flex;height:100%;align-items:flex-start;" ]);
1077
- var wn = M().th.withConfig({
1107
+ var Rn = M().th.withConfig({
1078
1108
  displayName: "HeadCellStyles__Styled",
1079
1109
  componentId: "sc-1hj81sa-1"
1080
- })([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;height:100%;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], $.mixins.reset("table-cell"), $.variables.neutral100, (function(e) {
1110
+ })([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;height:100%;line-height:20px;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], $.mixins.reset("table-cell"), $.variables.neutral100, (function(e) {
1081
1111
  var n = e.$variant;
1082
1112
  return n ? "middle" : "top";
1083
- }), Be, /* sc-sel */ gn, $.variables.borderColorWeak, Be, /* sc-sel */ gn, $.variables.borderColor, Be, /* sc-sel */ gn, $.variables.focusShadowInset, (function(e) {
1113
+ }), Ge, /* sc-sel */ On, $.variables.borderColorWeak, Ge, /* sc-sel */ On, $.variables.borderColor, Ge, /* sc-sel */ On, $.variables.focusShadowInset, (function(e) {
1084
1114
  var n = e.$isDragging;
1085
1115
  return n && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
1086
1116
  }), (function(e) {
1087
1117
  var n = e.$variant;
1088
- return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], gn, $.variables.borderColorWeak);
1118
+ return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], On, $.variables.borderColorWeak);
1089
1119
  }), (0, $.pickVariant)("$variant", {
1090
1120
  actions: (0, z.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, ve.buttonMixin)("subtle", {
1091
1121
  color: $.variables.contentColorDefault
1092
1122
  }), $.variables.focusShadowInset)
1093
1123
  }));
1124
+ var En = M().div.withConfig({
1125
+ displayName: "HeadCellStyles__StyledIcon",
1126
+ componentId: "sc-1hj81sa-2"
1127
+ })([ "display:inline-flex;align-items:center;height:1lh;" ]);
1094
1128
  // TODO(SUI-7400): Refactor the drag handler of re-order column
1095
- var Cn = M().div.withConfig({
1129
+ var In = M().div.withConfig({
1096
1130
  displayName: "HeadCellStyles__StyledDragHandler",
1097
- componentId: "sc-1hj81sa-2"
1098
- })([ "display:inline-flex;align-items:center;align-self:stretch;justify-content:center;width:20px;cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
1131
+ componentId: "sc-1hj81sa-3"
1132
+ })([ "display:inline-flex;align-items:start;align-self:stretch;justify-content:center;min-width:20px;cursor:move;padding-block:", ";-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], (0,
1133
+ $.pick)({
1134
+ comfortable: "8px",
1135
+ compact: "6px"
1136
+ }), $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
1099
1137
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1100
- function xn() {
1101
- return xn = Object.assign ? Object.assign.bind() : function(e) {
1138
+ function Tn() {
1139
+ return Tn = Object.assign ? Object.assign.bind() : function(e) {
1102
1140
  for (var n = 1; n < arguments.length; n++) {
1103
1141
  var t = arguments[n];
1104
1142
  for (var r in t) {
@@ -1106,11 +1144,11 @@
1106
1144
  }
1107
1145
  }
1108
1146
  return e;
1109
- }, xn.apply(null, arguments);
1147
+ }, Tn.apply(null, arguments);
1110
1148
  }
1111
- function Sn(e, n) {
1149
+ function jn(e, n) {
1112
1150
  if (null == e) return {};
1113
- var t, r, o = On(e, n);
1151
+ var t, r, o = Dn(e, n);
1114
1152
  if (Object.getOwnPropertySymbols) {
1115
1153
  var i = Object.getOwnPropertySymbols(e);
1116
1154
  for (r = 0; r < i.length; r++) {
@@ -1119,7 +1157,7 @@
1119
1157
  }
1120
1158
  return o;
1121
1159
  }
1122
- function On(e, n) {
1160
+ function Dn(e, n) {
1123
1161
  if (null == e) return {};
1124
1162
  var t = {};
1125
1163
  for (var r in e) {
@@ -1131,7 +1169,7 @@
1131
1169
  return t;
1132
1170
  }
1133
1171
  /** @public */
1134
- /** @public */ var kn = {
1172
+ /** @public */ var qn = {
1135
1173
  align: i().oneOf([ "left", "center", "right" ]),
1136
1174
  /** @private Used to set the $clickable appearance without an onClick */
1137
1175
  appearClickable: i().bool,
@@ -1159,6 +1197,7 @@
1159
1197
  resizable: i().bool,
1160
1198
  sortDir: i().oneOf([ "asc", "desc", "none" ]),
1161
1199
  sortKey: i().string,
1200
+ tooltip: i().node,
1162
1201
  truncate: i().bool,
1163
1202
  /** @private. */
1164
1203
  variant: i().oneOf([ "toggleAll", "info", "actions" ]),
@@ -1170,135 +1209,144 @@
1170
1209
  visible: i().bool,
1171
1210
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ])
1172
1211
  };
1173
- var Rn = {
1212
+ var An = {
1174
1213
  asc: "ascending",
1175
1214
  desc: "descending",
1176
1215
  none: "none"
1177
1216
  };
1178
- function En(e) {
1179
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearClickable, a = e.children, u = e.columnId, s = e.elementRef, c = e.dragId, d = e.headCellScreenReaderText, f = e.id, v = e.index, p = e.onAutosizeColumn, b = e.onClick, m = e.onKeyDown, h = e.onRequestMoveColumn, y = e.onRequestResize, g = e.onSort, w = e.resizable, C = w === void 0 ? true : w, x = e.sortDir, S = x === void 0 ? "none" : x, O = e.sortKey, k = e.style, R = e.truncate, E = R === void 0 ? true : R, I = e.variant, T = e.visible, q = T === void 0 ? true : T, A = e.width, P = Sn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "truncate", "variant", "visible", "width" ]);
1217
+ function Pn(e) {
1218
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearClickable, a = e.children, u = e.columnId, s = e.elementRef, c = e.dragId, d = e.headCellScreenReaderText, f = e.id, v = e.index, p = e.onAutosizeColumn, m = e.onClick, b = e.onKeyDown, h = e.onRequestMoveColumn, y = e.onRequestResize, g = e.onSort, w = e.resizable, C = w === void 0 ? true : w, x = e.sortDir, S = x === void 0 ? "none" : x, k = e.sortKey, O = e.style, R = e.tooltip, E = e.truncate, I = E === void 0 ? true : E, T = e.variant, q = e.visible, A = q === void 0 ? true : q, P = e.width, _ = jn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "tooltip", "truncate", "variant", "visible", "width" ]);
1180
1219
  // @docs-props-type HeadCellPropsBase
1181
- var _ = !!h;
1182
- var z = (0, l.useSortable)({
1220
+ var z = !!h;
1221
+ var M = (0, l.useSortable)({
1183
1222
  // dragId is optional in HeadCell but required by useSortable
1184
1223
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
1185
1224
  id: c
1186
- }), M = z.attributes, $ = z.isDragging, N = z.listeners, L = z.setNodeRef;
1187
- var H = (0, t.useCallback)((function(e) {
1225
+ }), $ = M.attributes, N = M.isDragging, L = M.listeners, H = M.setNodeRef;
1226
+ var K = (0, t.useCallback)((function(e) {
1188
1227
  W(s, e);
1189
- if (_) {
1190
- L(e);
1228
+ if (z) {
1229
+ H(e);
1191
1230
  }
1192
- }), [ _, s, L ]);
1193
- var K = (0, t.useCallback)((function(e) {
1231
+ }), [ z, s, H ]);
1232
+ var B = (0, t.useCallback)((function(e) {
1194
1233
  // ignore clicks on the resize handle
1195
1234
  if (e.target.getAttribute("data-test") !== "resize" && g && v !== undefined) {
1196
1235
  g(e, {
1197
- sortKey: O,
1236
+ sortKey: k,
1198
1237
  sortDir: S,
1199
1238
  id: f,
1200
1239
  columnId: u,
1201
1240
  index: v
1202
1241
  });
1203
1242
  }
1204
- b === null || b === void 0 ? void 0 : b();
1205
- }), [ u, f, v, b, g, S, O ]);
1206
- var B = (0, t.useCallback)((function(e) {
1243
+ m === null || m === void 0 ? void 0 : m();
1244
+ }), [ u, f, v, m, g, S, k ]);
1245
+ var V = (0, t.useCallback)((function(e) {
1207
1246
  if (v !== undefined) {
1208
- m === null || m === void 0 ? void 0 : m(e, {
1247
+ b === null || b === void 0 ? void 0 : b(e, {
1209
1248
  index: v,
1210
1249
  columnId: u
1211
1250
  });
1212
1251
  }
1213
- }), [ u, v, m ]);
1214
- var V = !!g && !!S;
1215
- var F = b !== undefined;
1216
- var U = I === "actions" ? false : E;
1217
- var X = (0, t.useMemo)((function() {
1218
- return Ee()({}, k, {
1219
- width: A
1252
+ }), [ u, v, b ]);
1253
+ var F = !!g && !!S;
1254
+ var U = m !== undefined;
1255
+ var X = T === "actions" ? false : I;
1256
+ var Y = (0, t.useMemo)((function() {
1257
+ return Ee()({}, O, {
1258
+ width: P
1220
1259
  });
1221
- }), [ k, A ]);
1222
- var Y;
1260
+ }), [ O, P ]);
1261
+ var G;
1223
1262
  if (d) {
1224
- Y = d;
1225
- } else if (ke()(a)) {
1226
- Y = a;
1263
+ G = d;
1264
+ } else if (Oe()(a)) {
1265
+ G = a;
1227
1266
  }
1267
+ var J = (0, t.useMemo)((function() {
1268
+ return {
1269
+ align: o,
1270
+ clickable: i || F || U,
1271
+ columnId: u,
1272
+ focusWithin: i,
1273
+ label: a,
1274
+ id: f,
1275
+ index: v,
1276
+ onAutosizeColumn: p,
1277
+ onClick: g || U ? B : undefined,
1278
+ onKeyDown: g || U ? V : undefined,
1279
+ onRequestResize: y,
1280
+ resizable: A && C,
1281
+ sortDir: g && S,
1282
+ truncate: X,
1283
+ variant: T,
1284
+ width: P
1285
+ };
1286
+ }), [ o, i, F, U, u, a, f, v, p, g, B, V, y, A, C, S, X, T, P ]);
1287
+ var Q = (0, t.useCallback)((function(e) {
1288
+
1289
+ return r().createElement(kn, Tn({}, e, J, {
1290
+ hasTooltip: true
1291
+ }));
1292
+ }), [ J ]);
1228
1293
 
1229
- return r().createElement(wn, xn({
1230
- style: X,
1231
- ref: H,
1232
- "aria-sort": g && (Rn[S] || "none"),
1294
+ return r().createElement(Rn, Tn({
1295
+ style: Y,
1296
+ ref: K,
1297
+ "aria-sort": g && (An[S] || "none"),
1233
1298
  "data-test": "head-cell",
1234
- "data-test-label": ke()(a) ? a : undefined,
1299
+ "data-test-label": Oe()(a) ? a : undefined,
1235
1300
  "data-test-sort-dir": g && S,
1236
- id: q ? f : undefined,
1237
- $isDragging: _ && $,
1238
- $variant: I
1239
- }, P), r().createElement(gn, null, _ && r().createElement(Cn, xn({
1301
+ id: A ? f : undefined,
1302
+ $isDragging: z && N,
1303
+ $variant: T
1304
+ }, _), r().createElement(On, null, z && r().createElement(In, Tn({
1240
1305
  "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
1241
- labelString: Y
1306
+ labelString: G
1242
1307
  }),
1243
1308
  "data-test": "drag",
1244
1309
  draggable: true
1245
- }, M, N), r().createElement(Te(), null)), r().createElement(yn, {
1246
- align: o,
1247
- clickable: i || V || F,
1248
- columnId: u,
1249
- focusWithin: i,
1250
- label: a,
1251
- id: f,
1252
- index: v,
1253
- onAutosizeColumn: p,
1254
- onClick: g || F ? K : undefined,
1255
- onKeyDown: g || F ? B : undefined,
1256
- onRequestResize: y,
1257
- resizable: q && C,
1258
- sortDir: g && S,
1259
- truncate: U,
1260
- variant: I,
1261
- width: A
1262
- })));
1263
- }
1264
- En.propTypes = kn;
1265
- En.splunkUiType = "Table.HeadCell";
1266
- /* harmony default export */ const In = En;
1310
+ }, $, L), r().createElement(En, null, r().createElement(Te(), null))), R ? r().createElement(De(), {
1311
+ content: R,
1312
+ renderAnchor: Q
1313
+ }) : r().createElement(kn, J)));
1314
+ }
1315
+ Pn.propTypes = qn;
1316
+ Pn.splunkUiType = "Table.HeadCell";
1317
+ /* harmony default export */ const _n = Pn;
1267
1318
  // CONCATENATED MODULE: external "@dnd-kit/utilities"
1268
- const Tn = require("@dnd-kit/utilities");
1319
+ const zn = require("@dnd-kit/utilities");
1269
1320
  // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
1270
- const jn = require("@splunk/react-icons/DotsThreeVertical");
1271
- var Dn = e.n(jn);
1321
+ const Mn = require("@splunk/react-icons/DotsThreeVertical");
1322
+ var $n = e.n(Mn);
1272
1323
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1273
- const qn = require("@splunk/react-ui/Button");
1274
- var An = e.n(qn);
1324
+ const Nn = require("@splunk/react-ui/Button");
1325
+ var Wn = e.n(Nn);
1275
1326
  // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1276
- const Pn = require("@splunk/react-ui/Dropdown");
1277
- var _n = e.n(Pn);
1278
- // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
1279
- const zn = require("@splunk/react-ui/Tooltip");
1280
- var Mn = e.n(zn);
1327
+ const Ln = require("@splunk/react-ui/Dropdown");
1328
+ var Hn = e.n(Ln);
1281
1329
  // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1282
- const $n = require("@splunk/react-icons/ChevronRight");
1283
- var Nn = e.n($n);
1330
+ const Kn = require("@splunk/react-icons/ChevronRight");
1331
+ var Bn = e.n(Kn);
1284
1332
  // CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
1285
- var Wn = "2px";
1286
- var Ln = "16px";
1287
- var Hn = (0, z.css)([ "padding-top:calc((", " + ", "*2 - ", ") / 2);" ], $.variables.inputHeight, Wn, Ln);
1288
- var Kn = M().button.withConfig({
1333
+ var Vn = M().button.withConfig({
1289
1334
  displayName: "ExpandButtonStyles__StyledButton",
1290
1335
  componentId: "sc-7nlw5q-0"
1291
- })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;padding:", ";", ";color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], $.mixins.reset("flex"), $.variables.spacingXSmall, Hn, $.variables.contentColorDefault, $.variables.contentColorActive, $.variables.contentColorActive, $.variables.focusShadowInset);
1292
- var Bn = M()(Nn()).withConfig({
1336
+ })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], $.mixins.reset("flex"), $.variables.contentColorDefault, $.variables.contentColorActive, $.variables.contentColorActive, $.variables.focusShadowInset);
1337
+ var Fn = M()(Bn()).withConfig({
1293
1338
  displayName: "ExpandButtonStyles__StyledChevron",
1294
1339
  componentId: "sc-7nlw5q-1"
1295
- })([ "transition:transform 200ms;", "" ], (function(e) {
1340
+ })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, $.pick)({
1341
+ comfortable: "10px",
1342
+ compact: "8px"
1343
+ }), (function(e) {
1296
1344
  var n = e.$expanded;
1297
1345
  return n && (0, z.css)([ "transform:rotate(90deg);" ]);
1298
1346
  }));
1299
1347
  // CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
1300
- function Vn() {
1301
- return Vn = Object.assign ? Object.assign.bind() : function(e) {
1348
+ function Un() {
1349
+ return Un = Object.assign ? Object.assign.bind() : function(e) {
1302
1350
  for (var n = 1; n < arguments.length; n++) {
1303
1351
  var t = arguments[n];
1304
1352
  for (var r in t) {
@@ -1306,11 +1354,11 @@
1306
1354
  }
1307
1355
  }
1308
1356
  return e;
1309
- }, Vn.apply(null, arguments);
1357
+ }, Un.apply(null, arguments);
1310
1358
  }
1311
- function Fn(e, n) {
1359
+ function Xn(e, n) {
1312
1360
  if (null == e) return {};
1313
- var t, r, o = Un(e, n);
1361
+ var t, r, o = Yn(e, n);
1314
1362
  if (Object.getOwnPropertySymbols) {
1315
1363
  var i = Object.getOwnPropertySymbols(e);
1316
1364
  for (r = 0; r < i.length; r++) {
@@ -1319,7 +1367,7 @@
1319
1367
  }
1320
1368
  return o;
1321
1369
  }
1322
- function Un(e, n) {
1370
+ function Yn(e, n) {
1323
1371
  if (null == e) return {};
1324
1372
  var t = {};
1325
1373
  for (var r in e) {
@@ -1330,32 +1378,32 @@
1330
1378
  }
1331
1379
  return t;
1332
1380
  }
1333
- var Xn = {
1381
+ var Gn = {
1334
1382
  expanded: i().bool
1335
1383
  };
1336
- var Yn = function e(n) {
1337
- var t = n.expanded, o = Fn(n, [ "expanded" ]);
1384
+ var Jn = function e(n) {
1385
+ var t = n.expanded, o = Xn(n, [ "expanded" ]);
1338
1386
 
1339
- return r().createElement(Kn, Vn({
1387
+ return r().createElement(Vn, Un({
1340
1388
  title: t ? (0, j._)("Collapse row") : (0, j._)("Expand row")
1341
- }, o), r().createElement(Bn, {
1389
+ }, o), r().createElement(Fn, {
1342
1390
  $expanded: t
1343
1391
  }));
1344
1392
  };
1345
- Yn.propTypes = Xn;
1346
- /* harmony default export */ const Gn = Yn;
1393
+ Jn.propTypes = Gn;
1394
+ /* harmony default export */ const Qn = Jn;
1347
1395
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
1348
- var Jn = M().td.withConfig({
1396
+ var Zn = M().td.withConfig({
1349
1397
  displayName: "RowDragCellStyles__StyledCell",
1350
1398
  componentId: "sc-9kbaj2-0"
1351
1399
  })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], $.mixins.reset("table-cell"));
1352
- var Qn = M().div.withConfig({
1400
+ var et = M().div.withConfig({
1353
1401
  displayName: "RowDragCellStyles__StyledDrag",
1354
1402
  componentId: "sc-9kbaj2-1"
1355
1403
  })([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], $.mixins.reset("flex"), $.mixins.clearfix(), $.variables.focusShadowInset, $.variables.interactiveColorOverlayDrag, $.variables.interactiveColorOverlayActive, $.variables.focusShadowInset);
1356
1404
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
1357
- function Zn() {
1358
- return Zn = Object.assign ? Object.assign.bind() : function(e) {
1405
+ function nt() {
1406
+ return nt = Object.assign ? Object.assign.bind() : function(e) {
1359
1407
  for (var n = 1; n < arguments.length; n++) {
1360
1408
  var t = arguments[n];
1361
1409
  for (var r in t) {
@@ -1363,11 +1411,11 @@
1363
1411
  }
1364
1412
  }
1365
1413
  return e;
1366
- }, Zn.apply(null, arguments);
1414
+ }, nt.apply(null, arguments);
1367
1415
  }
1368
- function et(e, n) {
1416
+ function tt(e, n) {
1369
1417
  if (null == e) return {};
1370
- var t, r, o = nt(e, n);
1418
+ var t, r, o = rt(e, n);
1371
1419
  if (Object.getOwnPropertySymbols) {
1372
1420
  var i = Object.getOwnPropertySymbols(e);
1373
1421
  for (r = 0; r < i.length; r++) {
@@ -1376,7 +1424,7 @@
1376
1424
  }
1377
1425
  return o;
1378
1426
  }
1379
- function nt(e, n) {
1427
+ function rt(e, n) {
1380
1428
  if (null == e) return {};
1381
1429
  var t = {};
1382
1430
  for (var r in e) {
@@ -1387,26 +1435,26 @@
1387
1435
  }
1388
1436
  return t;
1389
1437
  }
1390
- var tt = {
1438
+ var ot = {
1391
1439
  setActivatorNodeRef: i().func.isRequired,
1392
1440
  listeners: i().objectOf(i().func)
1393
1441
  };
1394
- function rt(e) {
1395
- var n = e.listeners, t = e.setActivatorNodeRef, o = et(e, [ "listeners", "setActivatorNodeRef" ]);
1442
+ function it(e) {
1443
+ var n = e.listeners, t = e.setActivatorNodeRef, o = tt(e, [ "listeners", "setActivatorNodeRef" ]);
1396
1444
 
1397
- return r().createElement(Jn, {
1445
+ return r().createElement(Zn, {
1398
1446
  "data-helper": true
1399
- }, r().createElement(Qn, Zn({
1447
+ }, r().createElement(et, nt({
1400
1448
  "data-test": "drag",
1401
1449
  draggable: true,
1402
1450
  ref: t,
1403
1451
  tabIndex: 0
1404
1452
  }, n, o), r().createElement(Te(), null)));
1405
1453
  }
1406
- rt.propTypes = tt;
1407
- /* harmony default export */ const ot = rt;
1454
+ it.propTypes = ot;
1455
+ /* harmony default export */ const at = it;
1408
1456
  // CONCATENATED MODULE: ./src/Table/RowStyles.ts
1409
- var it = M().tr.withConfig({
1457
+ var lt = M().tr.withConfig({
1410
1458
  displayName: "RowStyles__StyledStripeNone",
1411
1459
  componentId: "f0igqq-0"
1412
1460
  })([ "", ";", ";", " @media print{background-color:none;}" ], $.mixins.reset("table-row"), (function(e) {
@@ -1416,7 +1464,7 @@
1416
1464
  var n = e.disabled, t = e.$expandable, r = e.$isDraggable;
1417
1465
  return !n && !t && r && (0, z.css)([ "&:hover{background-color:", ";}" ], $.variables.interactiveColorOverlayHover);
1418
1466
  }));
1419
- var at = M()(it).withConfig({
1467
+ var ut = M()(lt).withConfig({
1420
1468
  displayName: "RowStyles__StyledStripeEven",
1421
1469
  componentId: "f0igqq-1"
1422
1470
  })([ "background-color:", ";", ";" ], $.variables.neutral50, (function(e) {
@@ -1424,24 +1472,26 @@
1424
1472
  return n && (0, z.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], $.variables.neutral300);
1425
1473
  }));
1426
1474
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1427
- const lt = require("@splunk/react-ui/Clickable");
1428
- var ut = e.n(lt);
1429
- // CONCATENATED MODULE: external "@splunk/react-ui/NonInteractiveCheckbox"
1430
- const st = require("@splunk/react-ui/NonInteractiveCheckbox");
1475
+ const st = require("@splunk/react-ui/Clickable");
1431
1476
  var ct = e.n(st);
1477
+ // CONCATENATED MODULE: external "@splunk/react-ui/NonInteractiveCheckbox"
1478
+ const dt = require("@splunk/react-ui/NonInteractiveCheckbox");
1479
+ var ft = e.n(dt);
1432
1480
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
1433
- var dt = "2px";
1434
- var ft = M()(ut()).withConfig({
1481
+ var vt = M()(ct()).withConfig({
1435
1482
  displayName: "ToggleStyles__StyledClickable",
1436
1483
  componentId: "sc-1x3ikch-0"
1437
- })([ "height:100%;width:100%;display:flex;justify-content:center;min-height:calc(", " + ", "*2);&[disabled]{cursor:not-allowed;}" ], $.variables.inputHeight, dt);
1438
- var vt = M()(ct()).withConfig({
1484
+ })([ "height:100%;width:100%;display:flex;justify-content:center;&[disabled]{cursor:not-allowed;}" ]);
1485
+ var pt = M()(ft()).withConfig({
1439
1486
  displayName: "ToggleStyles__StyledNonInteractiveCheckbox",
1440
1487
  componentId: "sc-1x3ikch-1"
1441
- })([ "align-items:flex-start;padding-top:", ";" ], $.variables.spacingSmall);
1488
+ })([ "align-items:flex-start;padding-block:", ";" ], (0, $.pick)({
1489
+ comfortable: "8px",
1490
+ compact: "6px"
1491
+ }));
1442
1492
  // CONCATENATED MODULE: ./src/Table/Toggle.tsx
1443
- function pt() {
1444
- return pt = Object.assign ? Object.assign.bind() : function(e) {
1493
+ function mt() {
1494
+ return mt = Object.assign ? Object.assign.bind() : function(e) {
1445
1495
  for (var n = 1; n < arguments.length; n++) {
1446
1496
  var t = arguments[n];
1447
1497
  for (var r in t) {
@@ -1449,11 +1499,11 @@
1449
1499
  }
1450
1500
  }
1451
1501
  return e;
1452
- }, pt.apply(null, arguments);
1502
+ }, mt.apply(null, arguments);
1453
1503
  }
1454
1504
  function bt(e, n) {
1455
1505
  if (null == e) return {};
1456
- var t, r, o = mt(e, n);
1506
+ var t, r, o = ht(e, n);
1457
1507
  if (Object.getOwnPropertySymbols) {
1458
1508
  var i = Object.getOwnPropertySymbols(e);
1459
1509
  for (r = 0; r < i.length; r++) {
@@ -1462,7 +1512,7 @@
1462
1512
  }
1463
1513
  return o;
1464
1514
  }
1465
- function mt(e, n) {
1515
+ function ht(e, n) {
1466
1516
  if (null == e) return {};
1467
1517
  var t = {};
1468
1518
  for (var r in e) {
@@ -1473,38 +1523,38 @@
1473
1523
  }
1474
1524
  return t;
1475
1525
  }
1476
- var ht = {
1526
+ var yt = {
1477
1527
  disabled: i().bool,
1478
1528
  onClick: i().func,
1479
1529
  selected: i().oneOf([ true, false, "some" ])
1480
1530
  };
1481
- function yt(e) {
1531
+ function gt(e) {
1482
1532
  var n = e.disabled, t = e.onClick, o = e.selected, i = bt(e, [ "disabled", "onClick", "selected" ]);
1483
1533
  var a = n === true ? "disabled" : undefined;
1484
1534
 
1485
1535
  // Note we use a clickable around the NonInteractiveCheckbox (which can seem ironic) so that the whole table cell is clickable and we cannot use the Cell's onClick itself because of a11y issues we have faced in the past (see SUI-5958).
1486
- return r().createElement(ft, pt({
1536
+ return r().createElement(vt, mt({
1487
1537
  "aria-checked": o === "some" ? "mixed" : o,
1488
1538
  disabled: a,
1489
1539
  onClick: t,
1490
1540
  role: "checkbox"
1491
- }, i), r().createElement(vt, {
1541
+ }, i), r().createElement(pt, {
1492
1542
  disabled: !!a,
1493
1543
  selected: o
1494
1544
  }));
1495
1545
  }
1496
- yt.propTypes = ht;
1497
- /* harmony default export */ const gt = yt;
1546
+ gt.propTypes = yt;
1547
+ /* harmony default export */ const wt = gt;
1498
1548
  // CONCATENATED MODULE: ./src/Table/Row.tsx
1499
- function wt(e) {
1549
+ function Ct(e) {
1500
1550
  "@babel/helpers - typeof";
1501
- return wt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1551
+ return Ct = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1502
1552
  return typeof e;
1503
1553
  } : function(e) {
1504
1554
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1505
- }, wt(e);
1555
+ }, Ct(e);
1506
1556
  }
1507
- function Ct(e, n) {
1557
+ function xt(e, n) {
1508
1558
  var t = Object.keys(e);
1509
1559
  if (Object.getOwnPropertySymbols) {
1510
1560
  var r = Object.getOwnPropertySymbols(e);
@@ -1514,18 +1564,18 @@
1514
1564
  }
1515
1565
  return t;
1516
1566
  }
1517
- function xt(e) {
1567
+ function St(e) {
1518
1568
  for (var n = 1; n < arguments.length; n++) {
1519
1569
  var t = null != arguments[n] ? arguments[n] : {};
1520
- n % 2 ? Ct(Object(t), !0).forEach((function(n) {
1521
- St(e, n, t[n]);
1522
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ct(Object(t)).forEach((function(n) {
1570
+ n % 2 ? xt(Object(t), !0).forEach((function(n) {
1571
+ kt(e, n, t[n]);
1572
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : xt(Object(t)).forEach((function(n) {
1523
1573
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1524
1574
  }));
1525
1575
  }
1526
1576
  return e;
1527
1577
  }
1528
- function St(e, n, t) {
1578
+ function kt(e, n, t) {
1529
1579
  return (n = Ot(n)) in e ? Object.defineProperty(e, n, {
1530
1580
  value: t,
1531
1581
  enumerable: !0,
@@ -1534,22 +1584,22 @@
1534
1584
  }) : e[n] = t, e;
1535
1585
  }
1536
1586
  function Ot(e) {
1537
- var n = kt(e, "string");
1538
- return "symbol" == wt(n) ? n : n + "";
1587
+ var n = Rt(e, "string");
1588
+ return "symbol" == Ct(n) ? n : n + "";
1539
1589
  }
1540
- function kt(e, n) {
1541
- if ("object" != wt(e) || !e) return e;
1590
+ function Rt(e, n) {
1591
+ if ("object" != Ct(e) || !e) return e;
1542
1592
  var t = e[Symbol.toPrimitive];
1543
1593
  if (void 0 !== t) {
1544
1594
  var r = t.call(e, n || "default");
1545
- if ("object" != wt(r)) return r;
1595
+ if ("object" != Ct(r)) return r;
1546
1596
  throw new TypeError("@@toPrimitive must return a primitive value.");
1547
1597
  }
1548
1598
  return ("string" === n ? String : Number)(e);
1549
1599
  }
1550
- function Rt(e, n) {
1600
+ function Et(e, n) {
1551
1601
  if (null == e) return {};
1552
- var t, r, o = Et(e, n);
1602
+ var t, r, o = It(e, n);
1553
1603
  if (Object.getOwnPropertySymbols) {
1554
1604
  var i = Object.getOwnPropertySymbols(e);
1555
1605
  for (r = 0; r < i.length; r++) {
@@ -1558,7 +1608,7 @@
1558
1608
  }
1559
1609
  return o;
1560
1610
  }
1561
- function Et(e, n) {
1611
+ function It(e, n) {
1562
1612
  if (null == e) return {};
1563
1613
  var t = {};
1564
1614
  for (var r in e) {
@@ -1569,8 +1619,8 @@
1569
1619
  }
1570
1620
  return t;
1571
1621
  }
1572
- function It() {
1573
- return It = Object.assign ? Object.assign.bind() : function(e) {
1622
+ function Tt() {
1623
+ return Tt = Object.assign ? Object.assign.bind() : function(e) {
1574
1624
  for (var n = 1; n < arguments.length; n++) {
1575
1625
  var t = arguments[n];
1576
1626
  for (var r in t) {
@@ -1578,18 +1628,18 @@
1578
1628
  }
1579
1629
  }
1580
1630
  return e;
1581
- }, It.apply(null, arguments);
1631
+ }, Tt.apply(null, arguments);
1582
1632
  }
1583
- var Tt = {
1584
- odd: it,
1585
- even: at,
1586
- none: it
1633
+ var jt = {
1634
+ odd: lt,
1635
+ even: ut,
1636
+ none: lt
1587
1637
  };
1588
1638
  /** @public */
1589
1639
  /** @public */
1590
1640
  /** @public */
1591
1641
  /** @public */
1592
- /** @public */ var jt = {
1642
+ /** @public */ var Dt = {
1593
1643
  /** @private. Generally passed by Table rather than added directly. */
1594
1644
  activeElementId: i().string,
1595
1645
  actionPrimary: i().element,
@@ -1628,22 +1678,22 @@
1628
1678
  /** @private. */
1629
1679
  stripe: i().oneOf([ "odd", "even", "none" ])
1630
1680
  };
1631
- var Dt = r().createElement(Dn(), null);
1632
- var qt = r().forwardRef((function(e, n) {
1681
+ var qt = r().createElement($n(), null);
1682
+ var At = r().forwardRef((function(e, n) {
1633
1683
 
1634
- return r().createElement(Mn(), It({
1684
+ return r().createElement(De(), Tt({
1635
1685
  content: (0, j._)("Actions"),
1636
1686
  contentRelationship: "label"
1637
- }, e), r().createElement(An(), {
1687
+ }, e), r().createElement(Wn(), {
1638
1688
  appearance: "subtle",
1639
1689
  "data-test": "actions-secondary-toggle",
1640
- icon: Dt,
1690
+ icon: qt,
1641
1691
  elementRef: n
1642
1692
  }));
1643
1693
  }));
1644
- function At(e) {
1694
+ function Pt(e) {
1645
1695
  var n;
1646
- var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, b = e.expanded, m = e.expansionRowIds, h = e.expansionRow, y = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, O = e.onRequestToggle, k = e.primaryColumnIndex, E = k === void 0 ? 0 : k, I = e.rowScreenReaderText, T = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = Rt(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1696
+ var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, m = e.expanded, b = e.expansionRowIds, h = e.expansionRow, y = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, k = e.onRequestToggle, O = e.primaryColumnIndex, E = O === void 0 ? 0 : O, I = e.rowScreenReaderText, T = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = Et(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1647
1697
  // @docs-props-type RowPropsBase
1648
1698
  var z = (0, t.useMemo)((function() {
1649
1699
  return {
@@ -1653,8 +1703,8 @@
1653
1703
  }), [ f, c ]);
1654
1704
  var M = (0, l.useSortable)(z), $ = M.attributes, N = M.listeners, L = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1655
1705
  var V = (0, t.useMemo)((function() {
1656
- return f ? xt(xt({}, P), {}, {
1657
- transform: Tn.CSS.Translate.toString(L),
1706
+ return f ? St(St({}, P), {}, {
1707
+ transform: zn.CSS.Translate.toString(L),
1658
1708
  transition: H
1659
1709
  }) : P;
1660
1710
  }), [ f, L, H, P ]);
@@ -1684,9 +1734,9 @@
1684
1734
  var Y = (0, t.useCallback)((function(e) {
1685
1735
  if (!d) {
1686
1736
  e.preventDefault();
1687
- O === null || O === void 0 ? void 0 : O(e, s);
1737
+ k === null || k === void 0 ? void 0 : k(e, s);
1688
1738
  }
1689
- }), [ s, d, O ]);
1739
+ }), [ s, d, k ]);
1690
1740
  var G = (0, t.useCallback)((function(e) {
1691
1741
  e.preventDefault();
1692
1742
  x === null || x === void 0 ? void 0 : x(e, s);
@@ -1757,12 +1807,12 @@
1757
1807
  var oe = (0, D.sprintf)((0, j._)("%(selected)s"), {
1758
1808
  selected: T ? "selected" : "unselected"
1759
1809
  });
1760
- var ie = Tt[A];
1761
- var ae = b ? t.Children.count(h) + 1 : undefined;
1810
+ var ie = jt[A];
1811
+ var ae = m ? t.Children.count(h) + 1 : undefined;
1762
1812
  var le = w ? "false" : undefined;
1763
1813
  var ue = function e() {
1764
1814
 
1765
- return r().createElement(qt, null);
1815
+ return r().createElement(At, null);
1766
1816
  };
1767
1817
  var se = (0, D.sprintf)((0, j._)("Collapse row - %(rowLabelValue)s"), {
1768
1818
  rowLabelValue: ne
@@ -1771,9 +1821,9 @@
1771
1821
  rowLabelValue: ne
1772
1822
  });
1773
1823
 
1774
- return r().createElement(ie, It({
1824
+ return r().createElement(ie, Tt({
1775
1825
  "data-test": "row",
1776
- "data-test-selected": O ? T : undefined,
1826
+ "data-test-selected": k ? T : undefined,
1777
1827
  $clickable: !!C,
1778
1828
  "data-has-movable-columns": w ? "true" : undefined,
1779
1829
  disabled: !!d,
@@ -1784,15 +1834,15 @@
1784
1834
  }, g()(_, "data"), {
1785
1835
  onClick: C ? U : undefined,
1786
1836
  onKeyDown: X,
1787
- $rowSelected: !!(O && T),
1837
+ $rowSelected: !!(k && T),
1788
1838
  style: V
1789
- }), f && y != null && r().createElement(ot, It({
1839
+ }), f && y != null && r().createElement(at, Tt({
1790
1840
  "aria-label": (0, D.sprintf)((0, j._)("Reorder %(rowLabelValue)s"), {
1791
1841
  rowLabelValue: ne
1792
1842
  }),
1793
1843
  setActivatorNodeRef: B,
1794
1844
  listeners: N
1795
- }, $)), O && r().createElement(Se, {
1845
+ }, $)), k && r().createElement(Se, {
1796
1846
  align: "center",
1797
1847
  appearance: C ? "rowLink" : "data",
1798
1848
  disabled: d,
@@ -1800,7 +1850,7 @@
1800
1850
  "data-movable-column": le,
1801
1851
  rowSpan: ae,
1802
1852
  "data-test": "toggle"
1803
- }, r().createElement(gt, {
1853
+ }, r().createElement(wt, {
1804
1854
  "aria-label": (0, D.sprintf)((0, j._)("%(rowLabelValue)s %(selectedString)s"), {
1805
1855
  rowLabelValue: ne,
1806
1856
  selectedString: oe
@@ -1813,15 +1863,15 @@
1813
1863
  appearance: "data",
1814
1864
  "data-movable-column": le,
1815
1865
  "data-test": "expand",
1816
- expand: b,
1866
+ expand: m,
1817
1867
  rowSpan: ae,
1818
1868
  variant: "expand"
1819
- }, r().createElement(Gn, {
1820
- expanded: b,
1869
+ }, r().createElement(Qn, {
1870
+ expanded: m,
1821
1871
  onClick: G,
1822
- title: b ? se : ce,
1823
- "aria-controls": b ? m : undefined,
1824
- "aria-expanded": b
1872
+ title: m ? se : ce,
1873
+ "aria-controls": m ? b : undefined,
1874
+ "aria-expanded": m
1825
1875
  })), p && !h && r().createElement(Se, {
1826
1876
  variant: "expand",
1827
1877
  "data-movable-column": le
@@ -1837,40 +1887,40 @@
1837
1887
  "data-test": "row-actions",
1838
1888
  variant: "actions",
1839
1889
  "data-movable-column": le
1840
- }, i && J(), a && r().createElement(_n(), {
1890
+ }, i && J(), a && r().createElement(Hn(), {
1841
1891
  toggle: ue()
1842
1892
  }, Q())));
1843
1893
  }
1844
- At.propTypes = jt;
1845
- At.splunkUiType = "Table.Row";
1846
- /* harmony default export */ const Pt = At;
1894
+ Pt.propTypes = Dt;
1895
+ Pt.splunkUiType = "Table.Row";
1896
+ /* harmony default export */ const _t = Pt;
1847
1897
  // CONCATENATED MODULE: ./src/Table/TableContext.ts
1848
- var _t = (0, t.createContext)({});
1849
- _t.displayName = "Table";
1850
- /* harmony default export */ const zt = _t;
1898
+ var zt = (0, t.createContext)({});
1899
+ zt.displayName = "Table";
1900
+ /* harmony default export */ const Mt = zt;
1851
1901
  // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1852
- var Mt = M().thead.withConfig({
1902
+ var $t = M().thead.withConfig({
1853
1903
  displayName: "HeadStyles__Styled",
1854
1904
  componentId: "iap21t-0"
1855
1905
  })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1856
1906
  var n = e.$isFixed, t = e.$zIndex;
1857
1907
  return n && (0, z.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1858
1908
  }));
1859
- var $t = M()(In).withConfig({
1909
+ var Nt = M()(_n).withConfig({
1860
1910
  displayName: "HeadStyles__StyledToggleAll",
1861
1911
  componentId: "iap21t-1"
1862
- })([ "width:32px;", "{gap:0;}" ], /* sc-sel */ Ke);
1863
- var Nt = M()(In).withConfig({
1912
+ })([ "width:32px;" ]);
1913
+ var Wt = M()(_n).withConfig({
1864
1914
  displayName: "HeadStyles__StyledInfo",
1865
1915
  componentId: "iap21t-2"
1866
1916
  })([ "width:32px;" ]);
1867
- var Wt = M()(In).withConfig({
1917
+ var Lt = M()(_n).withConfig({
1868
1918
  displayName: "HeadStyles__StyledDragRow",
1869
1919
  componentId: "iap21t-3"
1870
1920
  })([ "width:32px;" ]);
1871
1921
  // CONCATENATED MODULE: ./src/Table/Head.tsx
1872
- function Lt() {
1873
- return Lt = Object.assign ? Object.assign.bind() : function(e) {
1922
+ function Ht() {
1923
+ return Ht = Object.assign ? Object.assign.bind() : function(e) {
1874
1924
  for (var n = 1; n < arguments.length; n++) {
1875
1925
  var t = arguments[n];
1876
1926
  for (var r in t) {
@@ -1878,11 +1928,11 @@
1878
1928
  }
1879
1929
  }
1880
1930
  return e;
1881
- }, Lt.apply(null, arguments);
1931
+ }, Ht.apply(null, arguments);
1882
1932
  }
1883
- function Ht(e, n) {
1933
+ function Kt(e, n) {
1884
1934
  if (null == e) return {};
1885
- var t, r, o = Kt(e, n);
1935
+ var t, r, o = Bt(e, n);
1886
1936
  if (Object.getOwnPropertySymbols) {
1887
1937
  var i = Object.getOwnPropertySymbols(e);
1888
1938
  for (r = 0; r < i.length; r++) {
@@ -1891,7 +1941,7 @@
1891
1941
  }
1892
1942
  return o;
1893
1943
  }
1894
- function Kt(e, n) {
1944
+ function Bt(e, n) {
1895
1945
  if (null == e) return {};
1896
1946
  var t = {};
1897
1947
  for (var r in e) {
@@ -1902,7 +1952,7 @@
1902
1952
  }
1903
1953
  return t;
1904
1954
  }
1905
- var Bt = {
1955
+ var Vt = {
1906
1956
  /** @private. */
1907
1957
  actions: i().arrayOf(i().node),
1908
1958
  /** @private. */
@@ -1926,18 +1976,18 @@
1926
1976
  /** @private. */
1927
1977
  rowSelection: i().oneOf([ "all", "some", "none" ])
1928
1978
  };
1929
- var Vt = 1;
1930
- var Ft = {
1979
+ var Ft = 1;
1980
+ var Ut = {
1931
1981
  all: true,
1932
1982
  none: false,
1933
1983
  some: "some"
1934
1984
  };
1935
- var Ut = (0, j._)("No rows selected");
1936
- var Xt = (0, j._)("Some rows selected");
1937
- var Yt = (0, j._)("All rows selected");
1938
- var Gt = function e(n) {
1985
+ var Xt = (0, j._)("No rows selected");
1986
+ var Yt = (0, j._)("Some rows selected");
1987
+ var Gt = (0, j._)("All rows selected");
1988
+ var Jt = function e(n) {
1939
1989
  var t, r;
1940
- var o = Ge();
1990
+ var o = tn();
1941
1991
  if (!n) {
1942
1992
  return [];
1943
1993
  }
@@ -1946,9 +1996,9 @@
1946
1996
  return e.clientWidth - parseFloat(n.getPropertyValue("padding-right")) - parseFloat(n.getPropertyValue("padding-left"));
1947
1997
  }));
1948
1998
  };
1949
- function Jt(e) {
1950
- var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, b = e.onRequestToggleAllRows, m = e.rowSelection, h = Ht(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
1951
- var y = (0, t.useContext)(zt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
1999
+ function Qt(e) {
2000
+ var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, m = e.onRequestToggleAllRows, b = e.rowSelection, h = Kt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
2001
+ var y = (0, t.useContext)(Mt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
1952
2002
  var x = (0, t.useRef)(null);
1953
2003
  var S = (0, t.useRef)([]);
1954
2004
  (0, t.useEffect)((function() {
@@ -1957,7 +2007,7 @@
1957
2007
  var e;
1958
2008
  }
1959
2009
  }), [ u, p, C ]);
1960
- var O = (0, t.useCallback)((function(e) {
2010
+ var k = (0, t.useCallback)((function(e) {
1961
2011
  var n = e.fromIndex, r = e.toIndex;
1962
2012
  if (r < t.Children.toArray(u).length) {
1963
2013
  // HeadCell never requests less than zero
@@ -1967,9 +2017,9 @@
1967
2017
  });
1968
2018
  }
1969
2019
  }), [ u, v ]);
1970
- var k = (0, t.useCallback)((function(e, n) {
2020
+ var O = (0, t.useCallback)((function(e, n) {
1971
2021
  var t = n.columnId, r = n.id, o = n.index, i = n.width;
1972
- var a = Gt(x.current);
2022
+ var a = Jt(x.current);
1973
2023
  if (o >= a.length) {
1974
2024
  p === null || p === void 0 ? void 0 : p(e, n);
1975
2025
  return;
@@ -2019,18 +2069,18 @@
2019
2069
  } else {
2020
2070
  // make the cell as big as we can without letting any cells go below cellMinWidth
2021
2071
  // that means all auto cells are at cellMinWidth and all the set width cells stay the same size
2022
- var b = 0;
2072
+ var m = 0;
2023
2073
  c.forEach((function(e) {
2024
2074
  if (e < a.length) {
2025
- b += Math.max(a[e] - l, 0);
2075
+ m += Math.max(a[e] - l, 0);
2026
2076
  }
2027
2077
  }));
2028
- var m = a[o] + b;
2078
+ var b = a[o] + m;
2029
2079
  p === null || p === void 0 ? void 0 : p(e, {
2030
2080
  columnId: t,
2031
2081
  id: r,
2032
2082
  index: o,
2033
- width: m
2083
+ width: b
2034
2084
  });
2035
2085
  }
2036
2086
  } else if (w != null) {
@@ -2050,12 +2100,12 @@
2050
2100
  } else {
2051
2101
  // make the cell as big as we can without letting perceivedWidthOfLastCell go below cellMinWidth
2052
2102
  var C = g - l;
2053
- var O = u + C;
2103
+ var k = u + C;
2054
2104
  p === null || p === void 0 ? void 0 : p(e, {
2055
2105
  columnId: t,
2056
2106
  id: r,
2057
2107
  index: o,
2058
- width: O
2108
+ width: k
2059
2109
  });
2060
2110
  }
2061
2111
  } else {
@@ -2083,25 +2133,25 @@
2083
2133
 
2084
2134
  return (0, t.cloneElement)(n, {
2085
2135
  index: r,
2086
- onRequestResize: C ? k : p,
2087
- onRequestMoveColumn: v ? O : undefined,
2136
+ onRequestResize: C ? O : p,
2137
+ onRequestMoveColumn: v ? k : undefined,
2088
2138
  onAutosizeColumn: f,
2089
2139
  key: n.key || n.props.columnId || r
2090
2140
  });
2091
2141
  }));
2092
2142
  S.current = e;
2093
2143
  return n;
2094
- }), [ E, C, k, p, v, O, f ]);
2095
- var j = m === undefined ? undefined : Ft[m];
2144
+ }), [ E, C, O, p, v, k, f ]);
2145
+ var j = b === undefined ? undefined : Ut[b];
2096
2146
  var D = i || 48;
2097
2147
  var q = g === "fixed" ? "fixed-head" : "head";
2098
2148
  var A;
2099
2149
  if (j === "some") {
2100
- A = Xt;
2101
- } else if (j) {
2102
2150
  A = Yt;
2151
+ } else if (j) {
2152
+ A = Gt;
2103
2153
  } else {
2104
- A = Ut;
2154
+ A = Xt;
2105
2155
  }
2106
2156
  var P = (0, t.useMemo)((function() {
2107
2157
  return {
@@ -2114,33 +2164,33 @@
2114
2164
  };
2115
2165
  }), [ i ]);
2116
2166
 
2117
- return r().createElement(Mt, Lt({
2167
+ return r().createElement($t, Ht({
2118
2168
  ref: R,
2119
2169
  "data-test": q,
2120
2170
  $isFixed: g === "fixed",
2121
- $zIndex: I + Vt
2122
- }, h), r().createElement(Pt, null, c && r().createElement(Wt, {
2171
+ $zIndex: I + Ft
2172
+ }, h), r().createElement(_t, null, c && r().createElement(Lt, {
2123
2173
  key: "drag_rows_head_cell",
2124
2174
  "data-test": "drag-rows-head-cell",
2125
2175
  align: "center",
2126
2176
  resizable: false
2127
- }), b && r().createElement($t, {
2177
+ }), m && r().createElement(Nt, {
2128
2178
  key: "toggle_all",
2129
2179
  resizable: false,
2130
2180
  align: "center",
2131
2181
  variant: "toggleAll",
2132
2182
  truncate: false,
2133
2183
  "data-test": "toggle-all"
2134
- }, r().createElement(gt, {
2184
+ }, r().createElement(wt, {
2135
2185
  "aria-label": A,
2136
- onClick: b,
2186
+ onClick: m,
2137
2187
  selected: j
2138
- })), d && r().createElement(Nt, {
2188
+ })), d && r().createElement(Wt, {
2139
2189
  key: "more_info_head_cell",
2140
2190
  "data-test": "more-info-head-cell",
2141
2191
  resizable: false,
2142
2192
  variant: "info"
2143
- }), T, o.length > 0 && r().createElement(In, {
2193
+ }), T, o.length > 0 && r().createElement(_n, {
2144
2194
  key: "actions_head_cell",
2145
2195
  "data-test": "actions-head-cell",
2146
2196
  align: "right",
@@ -2148,7 +2198,7 @@
2148
2198
  width: D,
2149
2199
  style: P,
2150
2200
  variant: "actions"
2151
- }, o), o.length === 0 && i && r().createElement(In, {
2201
+ }, o), o.length === 0 && i && r().createElement(_n, {
2152
2202
  key: "actions_head_cell",
2153
2203
  "data-test": "actions-head-cell",
2154
2204
  align: "right",
@@ -2158,24 +2208,24 @@
2158
2208
  variant: "actions"
2159
2209
  }, " ")));
2160
2210
  }
2161
- Jt.propTypes = Bt;
2162
- Jt.splunkUiType = "Table.Head";
2163
- /* harmony default export */ const Qt = Jt;
2211
+ Qt.propTypes = Vt;
2212
+ Qt.splunkUiType = "Table.Head";
2213
+ /* harmony default export */ const Zt = Qt;
2164
2214
  // CONCATENATED MODULE: external "lodash/isFinite"
2165
- const Zt = require("lodash/isFinite");
2166
- var er = e.n(Zt);
2215
+ const er = require("lodash/isFinite");
2216
+ var nr = e.n(er);
2167
2217
  // CONCATENATED MODULE: external "lodash/isFunction"
2168
- const nr = require("lodash/isFunction");
2169
- var tr = e.n(nr);
2218
+ const tr = require("lodash/isFunction");
2219
+ var rr = e.n(tr);
2170
2220
  // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
2171
- const rr = require("@splunk/react-ui/Popover");
2172
- var or = e.n(rr);
2221
+ const or = require("@splunk/react-ui/Popover");
2222
+ var ir = e.n(or);
2173
2223
  // CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
2174
- const ir = require("@splunk/react-ui/useControlled");
2175
- var ar = e.n(ir);
2224
+ const ar = require("@splunk/react-ui/useControlled");
2225
+ var lr = e.n(ar);
2176
2226
  // CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
2177
- function lr() {
2178
- return lr = Object.assign ? Object.assign.bind() : function(e) {
2227
+ function ur() {
2228
+ return ur = Object.assign ? Object.assign.bind() : function(e) {
2179
2229
  for (var n = 1; n < arguments.length; n++) {
2180
2230
  var t = arguments[n];
2181
2231
  for (var r in t) {
@@ -2183,29 +2233,29 @@
2183
2233
  }
2184
2234
  }
2185
2235
  return e;
2186
- }, lr.apply(null, arguments);
2236
+ }, ur.apply(null, arguments);
2187
2237
  }
2188
- function ur(e, n) {
2189
- return vr(e) || fr(e, n) || cr(e, n) || sr();
2238
+ function sr(e, n) {
2239
+ return pr(e) || vr(e, n) || dr(e, n) || cr();
2190
2240
  }
2191
- function sr() {
2241
+ function cr() {
2192
2242
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2193
2243
  }
2194
- function cr(e, n) {
2244
+ function dr(e, n) {
2195
2245
  if (e) {
2196
- if ("string" == typeof e) return dr(e, n);
2246
+ if ("string" == typeof e) return fr(e, n);
2197
2247
  var t = {}.toString.call(e).slice(8, -1);
2198
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dr(e, n) : void 0;
2248
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? fr(e, n) : void 0;
2199
2249
  }
2200
2250
  }
2201
- function dr(e, n) {
2251
+ function fr(e, n) {
2202
2252
  (null == n || n > e.length) && (n = e.length);
2203
2253
  for (var t = 0, r = Array(n); t < n; t++) {
2204
2254
  r[t] = e[t];
2205
2255
  }
2206
2256
  return r;
2207
2257
  }
2208
- function fr(e, n) {
2258
+ function vr(e, n) {
2209
2259
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2210
2260
  if (null != t) {
2211
2261
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2227,10 +2277,10 @@
2227
2277
  return l;
2228
2278
  }
2229
2279
  }
2230
- function vr(e) {
2280
+ function pr(e) {
2231
2281
  if (Array.isArray(e)) return e;
2232
2282
  }
2233
- function pr(e, n) {
2283
+ function mr(e, n) {
2234
2284
  if (null == e) return {};
2235
2285
  var t, r, o = br(e, n);
2236
2286
  if (Object.getOwnPropertySymbols) {
@@ -2254,19 +2304,19 @@
2254
2304
  }
2255
2305
  /** @public */
2256
2306
  /** @public */
2257
- /** @public */ var mr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2258
- var hr = {
2307
+ /** @public */ var hr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2308
+ var yr = {
2259
2309
  align: i().oneOf([ "left", "center", "right" ]),
2260
2310
  buttonRef: i().oneOfType([ i().func, i().object ]),
2261
2311
  canCoverHead: i().bool,
2262
2312
  children: i().node.isRequired,
2263
- closeReasons: i().arrayOf(i().oneOf(mr)),
2313
+ closeReasons: i().arrayOf(i().oneOf(hr)),
2264
2314
  columnId: i().string,
2265
2315
  /** @private. */
2266
2316
  dragId: i().oneOfType([ i().string, i().number ]),
2267
2317
  elementRef: i().oneOfType([ i().func, i().object ]),
2268
2318
  headCellScreenReaderText: i().string,
2269
- focusToggleReasons: i().arrayOf(i().oneOf(mr)),
2319
+ focusToggleReasons: i().arrayOf(i().oneOf(hr)),
2270
2320
  /** @private The index of the cell, skipping the info column. */
2271
2321
  index: i().number,
2272
2322
  label: i().node,
@@ -2298,29 +2348,29 @@
2298
2348
  /** @private. */
2299
2349
  variant: i().oneOf([ "toggleAll", "info", "actions" ])
2300
2350
  };
2301
- var yr = [ "contentClick", "escapeKey", "toggleClick" ];
2302
- function gr(e) {
2303
- var n = e.align, o = n === void 0 ? "left" : n, i = e.buttonRef, a = e.canCoverHead, u = a === void 0 ? true : a, s = e.children, c = e.closeReasons, d = c === void 0 ? mr : c, f = e.columnId, v = e.dragId, p = e.elementRef, b = e.headCellScreenReaderText, m = e.focusToggleReasons, h = m === void 0 ? yr : m, y = e.id, g = e.index, w = e.label, C = e.onAutosizeColumn, x = e.onKeyDown, S = e.onRequestClose, O = e.onRequestMoveColumn, k = e.onRequestOpen, E = e.onRequestResize, I = e.open, q = e.repositionMode, P = q === void 0 ? "flip" : q, _ = e.resizable, z = _ === void 0 ? true : _, M = e.retainFocus, $ = e.style, N = e.takeFocus, L = N === void 0 ? true : N, H = e.truncate, K = H === void 0 ? true : H, B = e.variant, V = e.visible, F = V === void 0 ? true : V, U = e.width, X = pr(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2351
+ var gr = [ "contentClick", "escapeKey", "toggleClick" ];
2352
+ function wr(e) {
2353
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.buttonRef, a = e.canCoverHead, u = a === void 0 ? true : a, s = e.children, c = e.closeReasons, d = c === void 0 ? hr : c, f = e.columnId, v = e.dragId, p = e.elementRef, m = e.headCellScreenReaderText, b = e.focusToggleReasons, h = b === void 0 ? gr : b, y = e.id, g = e.index, w = e.label, C = e.onAutosizeColumn, x = e.onKeyDown, S = e.onRequestClose, k = e.onRequestMoveColumn, O = e.onRequestOpen, E = e.onRequestResize, I = e.open, q = e.repositionMode, P = q === void 0 ? "flip" : q, _ = e.resizable, z = _ === void 0 ? true : _, M = e.retainFocus, $ = e.style, N = e.takeFocus, L = N === void 0 ? true : N, H = e.truncate, K = H === void 0 ? true : H, B = e.variant, V = e.visible, F = V === void 0 ? true : V, U = e.width, X = mr(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2304
2354
  // @docs-props-type HeadDropdownCellPropsBase
2305
- var Y = ar()({
2355
+ var Y = lr()({
2306
2356
  componentName: "HeadDropdownCell",
2307
2357
  /* eslint-disable-next-line prefer-rest-params */
2308
2358
  componentProps: arguments[0],
2309
2359
  // see SUI-7028
2310
2360
  valuePropName: "open"
2311
2361
  });
2312
- var G = (0, t.useState)(), J = ur(G, 2), Q = J[0], Z = J[1];
2313
- var ee = (0, t.useState)(null), ne = ur(ee, 2), te = ne[0], re = ne[1];
2314
- var oe = (0, t.useState)(null), ie = ur(oe, 2), ae = ie[0], le = ie[1];
2315
- var ue = (0, t.useState)(false), se = ur(ue, 2), ce = se[0], de = se[1];
2362
+ var G = (0, t.useState)(), J = sr(G, 2), Q = J[0], Z = J[1];
2363
+ var ee = (0, t.useState)(null), ne = sr(ee, 2), te = ne[0], re = ne[1];
2364
+ var oe = (0, t.useState)(null), ie = sr(oe, 2), ae = ie[0], le = ie[1];
2365
+ var ue = (0, t.useState)(false), se = sr(ue, 2), ce = se[0], de = se[1];
2316
2366
  var fe = (0, R.createDOMID)("popover");
2317
2367
  var ve = (0, R.createDOMID)("cellId");
2318
- var pe = !!O;
2319
- var be = (0, l.useSortable)({
2368
+ var pe = !!k;
2369
+ var me = (0, l.useSortable)({
2320
2370
  // dragId is optional in HeadCell but required by useSortable
2321
2371
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
2322
2372
  id: v
2323
- }), me = be.attributes, he = be.listeners, ye = be.setNodeRef, ge = be.isDragging;
2373
+ }), be = me.attributes, he = me.listeners, ye = me.setNodeRef, ge = me.isDragging;
2324
2374
  var we = (0, t.useMemo)((function() {
2325
2375
  return Y ? I : ce;
2326
2376
  }), [ Y, ce, I ]);
@@ -2362,13 +2412,13 @@
2362
2412
  });
2363
2413
  }
2364
2414
  }), [ Se, Ce, F ]);
2365
- var Oe = (0, t.useCallback)((function(e) {
2415
+ var ke = (0, t.useCallback)((function(e) {
2366
2416
  W(p, e);
2367
2417
  if (pe) {
2368
2418
  ye(e);
2369
2419
  }
2370
2420
  }), [ pe, p, ye ]);
2371
- var ke = (0, t.useCallback)((function(e) {
2421
+ var Oe = (0, t.useCallback)((function(e) {
2372
2422
  le(e);
2373
2423
  re(e);
2374
2424
  W(i, e);
@@ -2388,7 +2438,7 @@
2388
2438
  event: e
2389
2439
  });
2390
2440
  } else if (g !== undefined) {
2391
- k === null || k === void 0 ? void 0 : k(e, {
2441
+ O === null || O === void 0 ? void 0 : O(e, {
2392
2442
  reason: "toggleClick",
2393
2443
  columnId: f,
2394
2444
  index: g
@@ -2397,7 +2447,7 @@
2397
2447
  de(true);
2398
2448
  }
2399
2449
  }
2400
- }), [ f, Se, g, Y, we, k ]);
2450
+ }), [ f, Se, g, Y, we, O ]);
2401
2451
  var Ie = (0, t.useCallback)((function(e) {
2402
2452
  if (g !== undefined) {
2403
2453
  x === null || x === void 0 ? void 0 : x(e, {
@@ -2413,7 +2463,7 @@
2413
2463
  });
2414
2464
  }), [ Se ]);
2415
2465
  var De = (0, t.useMemo)((function() {
2416
- if (Q !== undefined && er()(Q)) {
2466
+ if (Q !== undefined && nr()(Q)) {
2417
2467
  var e;
2418
2468
  return {
2419
2469
  x: Q - ((e = te === null || te === void 0 ? void 0 : te.getBoundingClientRect().left) !== null && e !== void 0 ? e : 0)
@@ -2427,32 +2477,32 @@
2427
2477
  });
2428
2478
  }), [ $, U ]);
2429
2479
  var Ae;
2430
- if (b) {
2431
- Ae = b;
2480
+ if (m) {
2481
+ Ae = m;
2432
2482
  } else if (typeof w === "string") {
2433
2483
  Ae = w;
2434
2484
  }
2435
2485
 
2436
- return r().createElement(wn, lr({
2486
+ return r().createElement(Rn, ur({
2437
2487
  style: qe,
2438
2488
  "data-test": "head-cell",
2439
2489
  $isDragging: pe && ge,
2440
2490
  $variant: B,
2441
2491
  id: F ? xe : undefined,
2442
- ref: Oe
2443
- }, X), r().createElement(gn, null, pe && r().createElement(Cn, lr({
2492
+ ref: ke
2493
+ }, X), r().createElement(On, null, pe && r().createElement(In, ur({
2444
2494
  "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
2445
2495
  labelString: Ae
2446
2496
  }),
2447
2497
  "data-test": "drag"
2448
- }, me, he), r().createElement(Te(), null)), r().createElement(yn, {
2498
+ }, be, he), r().createElement(En, null, r().createElement(Te(), null))), r().createElement(kn, {
2449
2499
  align: o,
2450
2500
  "aria-expanded": we,
2451
2501
  "aria-haspopup": true,
2452
2502
  "aria-owns": fe,
2453
2503
  clickable: true,
2454
2504
  columnId: f,
2455
- elementRef: ke,
2505
+ elementRef: Oe,
2456
2506
  id: y,
2457
2507
  index: g,
2458
2508
  isMenu: true,
@@ -2465,7 +2515,7 @@
2465
2515
  truncate: K,
2466
2516
  width: U,
2467
2517
  "data-test": "inner"
2468
- }), r().createElement(or(), {
2518
+ }), r().createElement(ir(), {
2469
2519
  align: "center",
2470
2520
  anchor: te,
2471
2521
  "aria-labelledby": xe,
@@ -2479,7 +2529,7 @@
2479
2529
  repositionMode: P,
2480
2530
  retainFocus: M,
2481
2531
  takeFocus: L
2482
- }, tr()(s) ? function() {
2532
+ }, rr()(s) ? function() {
2483
2533
 
2484
2534
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2485
2535
  return r().createElement("div", {
@@ -2492,23 +2542,23 @@
2492
2542
  onClick: je
2493
2543
  }, s))));
2494
2544
  }
2495
- gr.propTypes = hr;
2496
- gr.splunkUiType = "Table.HeadDropdownCell";
2497
- gr.possibleCloseReasons = mr;
2498
- /* harmony default export */ const wr = gr;
2545
+ wr.propTypes = yr;
2546
+ wr.splunkUiType = "Table.HeadDropdownCell";
2547
+ wr.possibleCloseReasons = hr;
2548
+ /* harmony default export */ const Cr = wr;
2499
2549
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
2500
- function Cr(e) {
2550
+ function xr(e) {
2501
2551
  "@babel/helpers - typeof";
2502
- return Cr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2552
+ return xr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2503
2553
  return typeof e;
2504
2554
  } : function(e) {
2505
2555
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2506
- }, Cr(e);
2556
+ }, xr(e);
2507
2557
  }
2508
- function xr(e, n) {
2509
- return kr(e) || Or(e, n) || Ir(e, n) || Sr();
2558
+ function Sr(e, n) {
2559
+ return Rr(e) || Or(e, n) || Tr(e, n) || kr();
2510
2560
  }
2511
- function Sr() {
2561
+ function kr() {
2512
2562
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2513
2563
  }
2514
2564
  function Or(e, n) {
@@ -2533,68 +2583,68 @@
2533
2583
  return l;
2534
2584
  }
2535
2585
  }
2536
- function kr(e) {
2586
+ function Rr(e) {
2537
2587
  if (Array.isArray(e)) return e;
2538
2588
  }
2539
- function Rr(e) {
2540
- return jr(e) || Tr(e) || Ir(e) || Er();
2589
+ function Er(e) {
2590
+ return Dr(e) || jr(e) || Tr(e) || Ir();
2541
2591
  }
2542
- function Er() {
2592
+ function Ir() {
2543
2593
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2544
2594
  }
2545
- function Ir(e, n) {
2595
+ function Tr(e, n) {
2546
2596
  if (e) {
2547
- if ("string" == typeof e) return Dr(e, n);
2597
+ if ("string" == typeof e) return qr(e, n);
2548
2598
  var t = {}.toString.call(e).slice(8, -1);
2549
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Dr(e, n) : void 0;
2599
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qr(e, n) : void 0;
2550
2600
  }
2551
2601
  }
2552
- function Tr(e) {
2602
+ function jr(e) {
2553
2603
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
2554
2604
  }
2555
- function jr(e) {
2556
- if (Array.isArray(e)) return Dr(e);
2605
+ function Dr(e) {
2606
+ if (Array.isArray(e)) return qr(e);
2557
2607
  }
2558
- function Dr(e, n) {
2608
+ function qr(e, n) {
2559
2609
  (null == n || n > e.length) && (n = e.length);
2560
2610
  for (var t = 0, r = Array(n); t < n; t++) {
2561
2611
  r[t] = e[t];
2562
2612
  }
2563
2613
  return r;
2564
2614
  }
2565
- function qr(e, n) {
2615
+ function Ar(e, n) {
2566
2616
  if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
2567
2617
  }
2568
- function Ar(e, n) {
2618
+ function Pr(e, n) {
2569
2619
  for (var t = 0; t < n.length; t++) {
2570
2620
  var r = n[t];
2571
2621
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
2572
- Object.defineProperty(e, zr(r.key), r);
2622
+ Object.defineProperty(e, Mr(r.key), r);
2573
2623
  }
2574
2624
  }
2575
- function Pr(e, n, t) {
2576
- return n && Ar(e.prototype, n), t && Ar(e, t), Object.defineProperty(e, "prototype", {
2625
+ function _r(e, n, t) {
2626
+ return n && Pr(e.prototype, n), t && Pr(e, t), Object.defineProperty(e, "prototype", {
2577
2627
  writable: !1
2578
2628
  }), e;
2579
2629
  }
2580
- function _r(e, n, t) {
2581
- return (n = zr(n)) in e ? Object.defineProperty(e, n, {
2630
+ function zr(e, n, t) {
2631
+ return (n = Mr(n)) in e ? Object.defineProperty(e, n, {
2582
2632
  value: t,
2583
2633
  enumerable: !0,
2584
2634
  configurable: !0,
2585
2635
  writable: !0
2586
2636
  }) : e[n] = t, e;
2587
2637
  }
2588
- function zr(e) {
2589
- var n = Mr(e, "string");
2590
- return "symbol" == Cr(n) ? n : n + "";
2638
+ function Mr(e) {
2639
+ var n = $r(e, "string");
2640
+ return "symbol" == xr(n) ? n : n + "";
2591
2641
  }
2592
- function Mr(e, n) {
2593
- if ("object" != Cr(e) || !e) return e;
2642
+ function $r(e, n) {
2643
+ if ("object" != xr(e) || !e) return e;
2594
2644
  var t = e[Symbol.toPrimitive];
2595
2645
  if (void 0 !== t) {
2596
2646
  var r = t.call(e, n || "default");
2597
- if ("object" != Cr(r)) return r;
2647
+ if ("object" != xr(r)) return r;
2598
2648
  throw new TypeError("@@toPrimitive must return a primitive value.");
2599
2649
  }
2600
2650
  return ("string" === n ? String : Number)(e);
@@ -2602,21 +2652,21 @@
2602
2652
  // based on https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/keyboard/KeyboardSensor.ts
2603
2653
  // eslint-disable-next-line max-classes-per-file
2604
2654
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/utilities/Listeners.ts
2605
- var $r = function() {
2655
+ var Nr = function() {
2606
2656
  function e(n) {
2607
2657
  var t = this;
2608
- qr(this, e);
2609
- _r(this, "listeners", []);
2610
- _r(this, "removeAll", (function() {
2658
+ Ar(this, e);
2659
+ zr(this, "listeners", []);
2660
+ zr(this, "removeAll", (function() {
2611
2661
  t.listeners.forEach((function(e) {
2612
2662
  var n;
2613
- return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Rr(e));
2663
+ return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Er(e));
2614
2664
  }));
2615
2665
  }));
2616
2666
  this.target = n;
2617
2667
  this.target = n;
2618
2668
  }
2619
- Pr(e, [ {
2669
+ _r(e, [ {
2620
2670
  key: "add",
2621
2671
  value: function e(n, t, r) {
2622
2672
  var o;
@@ -2627,7 +2677,7 @@
2627
2677
  return e;
2628
2678
  }();
2629
2679
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/parseTransform.ts
2630
- function Nr(e) {
2680
+ function Wr(e) {
2631
2681
  if (e.startsWith("matrix3d(")) {
2632
2682
  var n = e.slice(9, -1).split(/, /);
2633
2683
  return {
@@ -2649,8 +2699,8 @@
2649
2699
  return null;
2650
2700
  }
2651
2701
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/inverseTransform.ts
2652
- function Wr(e, n, t) {
2653
- var r = Nr(n);
2702
+ function Lr(e, n, t) {
2703
+ var r = Wr(n);
2654
2704
  if (!r) {
2655
2705
  return e;
2656
2706
  }
@@ -2668,17 +2718,17 @@
2668
2718
  left: u
2669
2719
  };
2670
2720
  }
2671
- var Lr = {
2721
+ var Hr = {
2672
2722
  ignoreTransform: false
2673
2723
  };
2674
2724
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/rect/getRect.ts
2675
- function Hr(e) {
2676
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Lr;
2725
+ function Kr(e) {
2726
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Hr;
2677
2727
  var t = e.getBoundingClientRect();
2678
2728
  if (n.ignoreTransform) {
2679
- var r = (0, Tn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2729
+ var r = (0, zn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2680
2730
  if (o) {
2681
- t = Wr(t, o, i);
2731
+ t = Lr(t, o, i);
2682
2732
  }
2683
2733
  }
2684
2734
  var a = t, l = a.top, u = a.left, s = a.width, c = a.height, d = a.bottom, f = a.right;
@@ -2691,7 +2741,7 @@
2691
2741
  right: f
2692
2742
  };
2693
2743
  }
2694
- function Kr(e) {
2744
+ function Br(e) {
2695
2745
  if (e === document.scrollingElement) {
2696
2746
  var n = window, t = n.innerWidth, r = n.innerHeight;
2697
2747
  return {
@@ -2714,19 +2764,19 @@
2714
2764
  };
2715
2765
  }
2716
2766
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
2717
- function Br(e) {
2718
- if (!Tn.canUseDOM || !e) {
2767
+ function Vr(e) {
2768
+ if (!zn.canUseDOM || !e) {
2719
2769
  return false;
2720
2770
  }
2721
2771
  return e === document.scrollingElement;
2722
2772
  }
2723
2773
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollPosition.ts
2724
- function Vr(e) {
2774
+ function Fr(e) {
2725
2775
  var n = {
2726
2776
  x: 0,
2727
2777
  y: 0
2728
2778
  };
2729
- var t = Br(e) ? {
2779
+ var t = Vr(e) ? {
2730
2780
  height: window.innerHeight,
2731
2781
  width: window.innerWidth
2732
2782
  } : {
@@ -2751,20 +2801,20 @@
2751
2801
  };
2752
2802
  }
2753
2803
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/coordinates/constants.ts
2754
- var Fr = {
2804
+ var Ur = {
2755
2805
  x: 0,
2756
2806
  y: 0
2757
2807
  };
2758
2808
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
2759
- function Ur(e) {
2809
+ function Xr(e) {
2760
2810
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2761
- Tn.getWindow)(e).getComputedStyle(e);
2811
+ zn.getWindow)(e).getComputedStyle(e);
2762
2812
  return n.position === "fixed";
2763
2813
  }
2764
2814
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
2765
- function Xr(e) {
2815
+ function Yr(e) {
2766
2816
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2767
- Tn.getWindow)(e).getComputedStyle(e);
2817
+ zn.getWindow)(e).getComputedStyle(e);
2768
2818
  var t = /(auto|scroll|overlay)/;
2769
2819
  var r = [ "overflow", "overflowX", "overflowY" ];
2770
2820
  return r.some((function(e) {
@@ -2773,7 +2823,7 @@
2773
2823
  }));
2774
2824
  }
2775
2825
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2776
- function Yr(e, n) {
2826
+ function Gr(e, n) {
2777
2827
  var t = [];
2778
2828
  function r(o) {
2779
2829
  if (n != null && t.length >= n) {
@@ -2782,23 +2832,23 @@
2782
2832
  if (!o) {
2783
2833
  return t;
2784
2834
  }
2785
- if ((0, Tn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2835
+ if ((0, zn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2786
2836
  t.push(o.scrollingElement);
2787
2837
  return t;
2788
2838
  }
2789
- if (!(0, Tn.isHTMLElement)(o) || (0, Tn.isSVGElement)(o)) {
2839
+ if (!(0, zn.isHTMLElement)(o) || (0, zn.isSVGElement)(o)) {
2790
2840
  return t;
2791
2841
  }
2792
2842
  if (t.includes(o)) {
2793
2843
  return t;
2794
2844
  }
2795
- var i = (0, Tn.getWindow)(e).getComputedStyle(o);
2845
+ var i = (0, zn.getWindow)(e).getComputedStyle(o);
2796
2846
  if (o !== e) {
2797
- if (Xr(o, i)) {
2847
+ if (Yr(o, i)) {
2798
2848
  t.push(o);
2799
2849
  }
2800
2850
  }
2801
- if (Ur(o, i)) {
2851
+ if (Xr(o, i)) {
2802
2852
  return t;
2803
2853
  }
2804
2854
  return r(o.parentNode);
@@ -2809,23 +2859,23 @@
2809
2859
  return r(e);
2810
2860
  }
2811
2861
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2812
- function Gr(e) {
2813
- var n = Yr(e, 1), t = xr(n, 1), r = t[0];
2862
+ function Jr(e) {
2863
+ var n = Gr(e, 1), t = Sr(n, 1), r = t[0];
2814
2864
  return r !== null && r !== void 0 ? r : null;
2815
2865
  }
2816
- var Jr = {
2866
+ var Qr = {
2817
2867
  start: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ],
2818
2868
  cancel: [ a.KeyboardCode.Esc ],
2819
2869
  end: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ]
2820
2870
  };
2821
2871
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/scrollIntoViewIfNeeded.ts
2822
- function Qr(e) {
2823
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Hr;
2872
+ function Zr(e) {
2873
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Kr;
2824
2874
  if (!e) {
2825
2875
  return;
2826
2876
  }
2827
2877
  var t = n(e), r = t.top, o = t.left, i = t.bottom, a = t.right;
2828
- var l = Gr(e);
2878
+ var l = Jr(e);
2829
2879
  if (!l) {
2830
2880
  return;
2831
2881
  }
@@ -2836,23 +2886,23 @@
2836
2886
  });
2837
2887
  }
2838
2888
  }
2839
- var Zr = function() {
2889
+ var eo = function() {
2840
2890
  function e(n) {
2841
- qr(this, e);
2842
- _r(this, "autoScrollEnabled", false);
2843
- _r(this, "referenceCoordinates", void 0);
2844
- _r(this, "listeners", void 0);
2845
- _r(this, "windowListeners", void 0);
2891
+ Ar(this, e);
2892
+ zr(this, "autoScrollEnabled", false);
2893
+ zr(this, "referenceCoordinates", void 0);
2894
+ zr(this, "listeners", void 0);
2895
+ zr(this, "windowListeners", void 0);
2846
2896
  this.props = n;
2847
2897
  var t = n.event.target;
2848
2898
  this.props = n;
2849
- this.listeners = new $r((0, Tn.getOwnerDocument)(t));
2850
- this.windowListeners = new $r((0, Tn.getWindow)(t));
2899
+ this.listeners = new Nr((0, zn.getOwnerDocument)(t));
2900
+ this.windowListeners = new Nr((0, zn.getWindow)(t));
2851
2901
  this.handleKeyDown = this.handleKeyDown.bind(this);
2852
2902
  this.handleCancel = this.handleCancel.bind(this);
2853
2903
  this.attach();
2854
2904
  }
2855
- Pr(e, [ {
2905
+ _r(e, [ {
2856
2906
  key: "attach",
2857
2907
  value: function e() {
2858
2908
  var n = this;
@@ -2869,16 +2919,16 @@
2869
2919
  var n = this.props, t = n.activeNode, r = n.onStart;
2870
2920
  var o = t.node.current;
2871
2921
  if (o) {
2872
- Qr(o);
2922
+ Zr(o);
2873
2923
  }
2874
- r(Fr);
2924
+ r(Ur);
2875
2925
  }
2876
2926
  }, {
2877
2927
  key: "handleKeyDown",
2878
2928
  value: function e(n) {
2879
- if ((0, Tn.isKeyboardEvent)(n)) {
2929
+ if ((0, zn.isKeyboardEvent)(n)) {
2880
2930
  var t = this.props, r = t.active, o = t.context, i = t.options;
2881
- var l = i.keyboardCodes, u = l === void 0 ? Jr : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
2931
+ var l = i.keyboardCodes, u = l === void 0 ? Qr : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
2882
2932
  var f = n.code;
2883
2933
  if (u.end.includes(f)) {
2884
2934
  this.handleEnd(n);
@@ -2892,17 +2942,17 @@
2892
2942
  var p = v ? {
2893
2943
  x: v.left,
2894
2944
  y: v.top
2895
- } : Fr;
2945
+ } : Ur;
2896
2946
  if (!this.referenceCoordinates) {
2897
2947
  this.referenceCoordinates = p;
2898
2948
  }
2899
- var b = s(n, {
2949
+ var m = s(n, {
2900
2950
  active: r,
2901
2951
  context: o.current,
2902
2952
  currentCoordinates: p
2903
2953
  });
2904
- if (b) {
2905
- var m = (0, Tn.subtract)(b, p);
2954
+ if (m) {
2955
+ var b = (0, zn.subtract)(m, p);
2906
2956
  var h = {
2907
2957
  x: 0,
2908
2958
  y: 0
@@ -2911,19 +2961,19 @@
2911
2961
  for (var g = 0; g < y.length; g += 1) {
2912
2962
  var w = y[g];
2913
2963
  var C = n.code;
2914
- var x = Vr(w), S = x.isTop, O = x.isRight, k = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
2915
- var T = Kr(w);
2964
+ var x = Fr(w), S = x.isTop, k = x.isRight, O = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
2965
+ var T = Br(w);
2916
2966
  // isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
2917
2967
  // we want to scroll only when a dragging node will be out of view,
2918
2968
  // originally it tries to always place a dragging node in the middle of the container
2919
- var j = T.top <= b.y && T.bottom >= b.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
2920
- var D = T.left <= b.x && T.right >= b.x + ((v === null || v === void 0 ? void 0 : v.width) || 0);
2921
- var q = (C === a.KeyboardCode.Right && !O || C === a.KeyboardCode.Left && !k) && !D;
2969
+ var j = T.top <= m.y && T.bottom >= m.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
2970
+ var D = T.left <= m.x && T.right >= m.x + ((v === null || v === void 0 ? void 0 : v.width) || 0);
2971
+ var q = (C === a.KeyboardCode.Right && !k || C === a.KeyboardCode.Left && !O) && !D;
2922
2972
  var A = (C === a.KeyboardCode.Down && !R || C === a.KeyboardCode.Up && !S) && !j;
2923
2973
  if (q) {
2924
- var P = w.scrollLeft + m.x;
2974
+ var P = w.scrollLeft + b.x;
2925
2975
  var _ = C === a.KeyboardCode.Right && P <= E.x || C === a.KeyboardCode.Left && P >= I.x;
2926
- if (_ && !m.y) {
2976
+ if (_ && !b.y) {
2927
2977
  // We don't need to update coordinates, the scroll adjustment alone will trigger
2928
2978
  // logic to auto-detect the new container we are over
2929
2979
  w.scrollTo({
@@ -2945,9 +2995,9 @@
2945
2995
  }
2946
2996
  break;
2947
2997
  } else if (A) {
2948
- var z = w.scrollTop + m.y;
2998
+ var z = w.scrollTop + b.y;
2949
2999
  var M = C === a.KeyboardCode.Down && z <= E.y || C === a.KeyboardCode.Up && z >= I.y;
2950
- if (M && !m.x) {
3000
+ if (M && !b.x) {
2951
3001
  // We don't need to update coordinates, the scroll adjustment alone will trigger
2952
3002
  // logic to auto-detect the new container we are over
2953
3003
  w.scrollTo({
@@ -2970,7 +3020,7 @@
2970
3020
  break;
2971
3021
  }
2972
3022
  }
2973
- this.handleMove(n, (0, Tn.add)((0, Tn.subtract)(b, this.referenceCoordinates), h));
3023
+ this.handleMove(n, (0, zn.add)((0, zn.subtract)(m, this.referenceCoordinates), h));
2974
3024
  }
2975
3025
  }
2976
3026
  }
@@ -3006,10 +3056,10 @@
3006
3056
  } ]);
3007
3057
  return e;
3008
3058
  }();
3009
- _r(Zr, "activators", [ {
3059
+ zr(eo, "activators", [ {
3010
3060
  eventName: "onKeyDown",
3011
3061
  handler: function e(n, t, r) {
3012
- var o = t.keyboardCodes, i = o === void 0 ? Jr : o, a = t.onActivation;
3062
+ var o = t.keyboardCodes, i = o === void 0 ? Qr : o, a = t.onActivation;
3013
3063
  var l = r.active;
3014
3064
  var u = n.nativeEvent.code;
3015
3065
  if (i.start.includes(u)) {
@@ -3027,24 +3077,24 @@
3027
3077
  }
3028
3078
  } ]);
3029
3079
  // CONCATENATED MODULE: external "lodash/extend"
3030
- const eo = require("lodash/extend");
3031
- var no = e.n(eo);
3080
+ const no = require("lodash/extend");
3081
+ var to = e.n(no);
3032
3082
  // CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
3033
- var to = M()(ne).withConfig({
3083
+ var ro = M()(ne).withConfig({
3034
3084
  displayName: "HeadTableStyles__Styled",
3035
3085
  componentId: "g85wgf-0"
3036
3086
  })([ "min-width:0;table-layout:fixed;" ]);
3037
- var ro = M().div.withConfig({
3087
+ var oo = M().div.withConfig({
3038
3088
  displayName: "HeadTableStyles__StyledDockedContainer",
3039
3089
  componentId: "g85wgf-1"
3040
3090
  })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
3041
- var oo = M()(ro).withConfig({
3091
+ var io = M()(oo).withConfig({
3042
3092
  displayName: "HeadTableStyles__StyledFixedContainer",
3043
3093
  componentId: "g85wgf-2"
3044
3094
  })([ "position:absolute;box-shadow:none;z-index:1;" ]);
3045
3095
  // CONCATENATED MODULE: ./src/Table/HeadTable.tsx
3046
- function io() {
3047
- return io = Object.assign ? Object.assign.bind() : function(e) {
3096
+ function ao() {
3097
+ return ao = Object.assign ? Object.assign.bind() : function(e) {
3048
3098
  for (var n = 1; n < arguments.length; n++) {
3049
3099
  var t = arguments[n];
3050
3100
  for (var r in t) {
@@ -3052,11 +3102,11 @@
3052
3102
  }
3053
3103
  }
3054
3104
  return e;
3055
- }, io.apply(null, arguments);
3105
+ }, ao.apply(null, arguments);
3056
3106
  }
3057
- function ao(e, n) {
3107
+ function lo(e, n) {
3058
3108
  if (null == e) return {};
3059
- var t, r, o = lo(e, n);
3109
+ var t, r, o = uo(e, n);
3060
3110
  if (Object.getOwnPropertySymbols) {
3061
3111
  var i = Object.getOwnPropertySymbols(e);
3062
3112
  for (r = 0; r < i.length; r++) {
@@ -3065,7 +3115,7 @@
3065
3115
  }
3066
3116
  return o;
3067
3117
  }
3068
- function lo(e, n) {
3118
+ function uo(e, n) {
3069
3119
  if (null == e) return {};
3070
3120
  var t = {};
3071
3121
  for (var r in e) {
@@ -3076,7 +3126,7 @@
3076
3126
  }
3077
3127
  return t;
3078
3128
  }
3079
- var uo = {
3129
+ var so = {
3080
3130
  cellWidths: i().arrayOf(i().number).isRequired,
3081
3131
  dragIndex: i().number,
3082
3132
  elementRef: i().oneOfType([ i().func, i().object ]),
@@ -3097,10 +3147,10 @@
3097
3147
  * @private
3098
3148
  * HeadTable is an internal component that provides a detached table head that can
3099
3149
  * then be positioned in different ways outside of the main table.
3100
- */ function so(e) {
3101
- var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, b = e.top, m = e.width, h = ao(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
3150
+ */ function co(e) {
3151
+ var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, m = e.top, b = e.width, h = lo(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
3102
3152
  var y = u === "docked";
3103
- var w = y ? ro : oo;
3153
+ var w = y ? oo : io;
3104
3154
  var C = (0, t.useRef)(null);
3105
3155
  var x = (0, t.useCallback)((function(e) {
3106
3156
  W(C, e);
@@ -3116,58 +3166,58 @@
3116
3166
  S += 1;
3117
3167
  }
3118
3168
  // Set the widths of the head cells if not fixed column
3119
- var O = (0, t.useMemo)((function() {
3169
+ var k = (0, t.useMemo)((function() {
3120
3170
  return t.Children.toArray(p.props.children);
3121
3171
  }), [ p.props.children ]);
3122
- var k = (0, t.useMemo)((function() {
3172
+ var O = (0, t.useMemo)((function() {
3123
3173
  if (d) {
3124
3174
  // ensure consistent keys
3125
- return O;
3175
+ return k;
3126
3176
  }
3127
- return O.filter(t.isValidElement).map((function(e, r) {
3177
+ return k.filter(t.isValidElement).map((function(e, r) {
3128
3178
 
3129
3179
  return (0, t.cloneElement)(e, {
3130
- style: no()({}, e.props.style, {
3180
+ style: to()({}, e.props.style, {
3131
3181
  width: n[r + S]
3132
3182
  })
3133
3183
  });
3134
3184
  }));
3135
- }), [ n, S, d, O ]);
3185
+ }), [ n, S, d, k ]);
3136
3186
  var R = (0, t.cloneElement)(p, {
3137
3187
  elementRef: x,
3138
3188
  "data-test": "".concat(u, "-head")
3139
- }, k);
3189
+ }, O);
3140
3190
  var E = (0, t.useMemo)((function() {
3141
3191
  return {
3142
- top: b,
3143
- width: m
3192
+ top: m,
3193
+ width: b
3144
3194
  };
3145
- }), [ b, m ]);
3195
+ }), [ m, b ]);
3146
3196
 
3147
3197
  return r().createElement(w, {
3148
3198
  style: E,
3149
3199
  ref: o
3150
- }, r().createElement(to, io({
3200
+ }, r().createElement(ro, ao({
3151
3201
  "data-test": "".concat(u, "-head-table"),
3152
3202
  "data-fixed-column": d ? "true" : undefined,
3153
- style: no()({}, f, {
3203
+ style: to()({}, f, {
3154
3204
  marginLeft: c,
3155
3205
  width: d ? undefined : v
3156
3206
  })
3157
3207
  }, g()(h, "dragIndex")), R));
3158
3208
  }
3159
- so.propTypes = uo;
3160
- /* harmony default export */ const co = so;
3209
+ co.propTypes = so;
3210
+ /* harmony default export */ const fo = co;
3161
3211
  // CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
3162
- function fo(e) {
3212
+ function vo(e) {
3163
3213
  "@babel/helpers - typeof";
3164
- return fo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3214
+ return vo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3165
3215
  return typeof e;
3166
3216
  } : function(e) {
3167
3217
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3168
- }, fo(e);
3218
+ }, vo(e);
3169
3219
  }
3170
- function vo(e, n) {
3220
+ function po(e, n) {
3171
3221
  var t = Object.keys(e);
3172
3222
  if (Object.getOwnPropertySymbols) {
3173
3223
  var r = Object.getOwnPropertySymbols(e);
@@ -3177,46 +3227,46 @@
3177
3227
  }
3178
3228
  return t;
3179
3229
  }
3180
- function po(e) {
3230
+ function mo(e) {
3181
3231
  for (var n = 1; n < arguments.length; n++) {
3182
3232
  var t = null != arguments[n] ? arguments[n] : {};
3183
- n % 2 ? vo(Object(t), !0).forEach((function(n) {
3233
+ n % 2 ? po(Object(t), !0).forEach((function(n) {
3184
3234
  bo(e, n, t[n]);
3185
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : vo(Object(t)).forEach((function(n) {
3235
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : po(Object(t)).forEach((function(n) {
3186
3236
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
3187
3237
  }));
3188
3238
  }
3189
3239
  return e;
3190
3240
  }
3191
3241
  function bo(e, n, t) {
3192
- return (n = mo(n)) in e ? Object.defineProperty(e, n, {
3242
+ return (n = ho(n)) in e ? Object.defineProperty(e, n, {
3193
3243
  value: t,
3194
3244
  enumerable: !0,
3195
3245
  configurable: !0,
3196
3246
  writable: !0
3197
3247
  }) : e[n] = t, e;
3198
3248
  }
3199
- function mo(e) {
3200
- var n = ho(e, "string");
3201
- return "symbol" == fo(n) ? n : n + "";
3249
+ function ho(e) {
3250
+ var n = yo(e, "string");
3251
+ return "symbol" == vo(n) ? n : n + "";
3202
3252
  }
3203
- function ho(e, n) {
3204
- if ("object" != fo(e) || !e) return e;
3253
+ function yo(e, n) {
3254
+ if ("object" != vo(e) || !e) return e;
3205
3255
  var t = e[Symbol.toPrimitive];
3206
3256
  if (void 0 !== t) {
3207
3257
  var r = t.call(e, n || "default");
3208
- if ("object" != fo(r)) return r;
3258
+ if ("object" != vo(r)) return r;
3209
3259
  throw new TypeError("@@toPrimitive must return a primitive value.");
3210
3260
  }
3211
3261
  return ("string" === n ? String : Number)(e);
3212
3262
  }
3213
3263
  // Checks if browser is Safari
3214
- function yo() {
3264
+ function go() {
3215
3265
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
3216
3266
  }
3217
3267
  // Formats return value to DOMRect
3218
- function go(e) {
3219
- return po(po({}, e), {}, {
3268
+ function wo(e) {
3269
+ return mo(mo({}, e), {}, {
3220
3270
  top: e.y,
3221
3271
  left: e.x,
3222
3272
  right: e.x + e.width,
@@ -3230,18 +3280,18 @@
3230
3280
  * @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
3231
3281
  * @returns {Omit<DOMRect, 'toJSON'>}
3232
3282
  * @public
3233
- */ function wo(e, n) {
3283
+ */ function Co(e, n) {
3234
3284
  var t, r;
3235
3285
  var o = e.getBoundingClientRect();
3236
- var i = yo();
3286
+ var i = go();
3237
3287
  if (!n || !i) {
3238
3288
  return o;
3239
3289
  }
3240
- var a = Ge();
3290
+ var a = tn();
3241
3291
  var l = o.left + (((t = a.visualViewport) === null || t === void 0 ? void 0 : t.offsetLeft) || 0);
3242
3292
  var u = o.top + (((r = a.visualViewport) === null || r === void 0 ? void 0 : r.offsetTop) || 0);
3243
3293
  var s = o.width, c = o.height;
3244
- return go({
3294
+ return wo({
3245
3295
  width: s,
3246
3296
  height: c,
3247
3297
  x: l,
@@ -3258,14 +3308,14 @@
3258
3308
  // erroneously included in react-ui's public api.
3259
3309
  // see https://github.com/microsoft/TypeScript/pull/12253
3260
3310
  // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
3261
- function Co(e, n) {
3311
+ function xo(e, n) {
3262
3312
  if (e === undefined || e === null) {
3263
3313
  throw new Error(n !== null && n !== void 0 ? n : "Unexpected undefined or null");
3264
3314
  }
3265
3315
  }
3266
3316
  // CONCATENATED MODULE: ./src/Table/Table.tsx
3267
- function xo() {
3268
- return xo = Object.assign ? Object.assign.bind() : function(e) {
3317
+ function So() {
3318
+ return So = Object.assign ? Object.assign.bind() : function(e) {
3269
3319
  for (var n = 1; n < arguments.length; n++) {
3270
3320
  var t = arguments[n];
3271
3321
  for (var r in t) {
@@ -3273,41 +3323,41 @@
3273
3323
  }
3274
3324
  }
3275
3325
  return e;
3276
- }, xo.apply(null, arguments);
3326
+ }, So.apply(null, arguments);
3277
3327
  }
3278
- function So(e) {
3279
- return Ro(e) || ko(e) || To(e) || Oo();
3328
+ function ko(e) {
3329
+ return Eo(e) || Ro(e) || jo(e) || Oo();
3280
3330
  }
3281
3331
  function Oo() {
3282
3332
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3283
3333
  }
3284
- function ko(e) {
3334
+ function Ro(e) {
3285
3335
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
3286
3336
  }
3287
- function Ro(e) {
3288
- if (Array.isArray(e)) return jo(e);
3337
+ function Eo(e) {
3338
+ if (Array.isArray(e)) return Do(e);
3289
3339
  }
3290
- function Eo(e, n) {
3291
- return qo(e) || Do(e, n) || To(e, n) || Io();
3340
+ function Io(e, n) {
3341
+ return Ao(e) || qo(e, n) || jo(e, n) || To();
3292
3342
  }
3293
- function Io() {
3343
+ function To() {
3294
3344
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3295
3345
  }
3296
- function To(e, n) {
3346
+ function jo(e, n) {
3297
3347
  if (e) {
3298
- if ("string" == typeof e) return jo(e, n);
3348
+ if ("string" == typeof e) return Do(e, n);
3299
3349
  var t = {}.toString.call(e).slice(8, -1);
3300
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? jo(e, n) : void 0;
3350
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Do(e, n) : void 0;
3301
3351
  }
3302
3352
  }
3303
- function jo(e, n) {
3353
+ function Do(e, n) {
3304
3354
  (null == n || n > e.length) && (n = e.length);
3305
3355
  for (var t = 0, r = Array(n); t < n; t++) {
3306
3356
  r[t] = e[t];
3307
3357
  }
3308
3358
  return r;
3309
3359
  }
3310
- function Do(e, n) {
3360
+ function qo(e, n) {
3311
3361
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
3312
3362
  if (null != t) {
3313
3363
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -3329,12 +3379,12 @@
3329
3379
  return l;
3330
3380
  }
3331
3381
  }
3332
- function qo(e) {
3382
+ function Ao(e) {
3333
3383
  if (Array.isArray(e)) return e;
3334
3384
  }
3335
- function Ao(e, n) {
3385
+ function Po(e, n) {
3336
3386
  if (null == e) return {};
3337
- var t, r, o = Po(e, n);
3387
+ var t, r, o = _o(e, n);
3338
3388
  if (Object.getOwnPropertySymbols) {
3339
3389
  var i = Object.getOwnPropertySymbols(e);
3340
3390
  for (r = 0; r < i.length; r++) {
@@ -3343,7 +3393,7 @@
3343
3393
  }
3344
3394
  return o;
3345
3395
  }
3346
- function Po(e, n) {
3396
+ function _o(e, n) {
3347
3397
  if (null == e) return {};
3348
3398
  var t = {};
3349
3399
  for (var r in e) {
@@ -3358,7 +3408,7 @@
3358
3408
  // Internal Helper Modules
3359
3409
  /** @public */
3360
3410
  /** @public */
3361
- /** @public */ var _o = {
3411
+ /** @public */ var zo = {
3362
3412
  actions: i().arrayOf(i().element),
3363
3413
  actionsColumnWidth: i().number,
3364
3414
  children: i().node,
@@ -3380,25 +3430,25 @@
3380
3430
  onRequestResizeColumn: i().func,
3381
3431
  resizableFillLayout: i().bool
3382
3432
  };
3383
- var zo = function e(n) {
3433
+ var Mo = function e(n) {
3384
3434
  return n === "inline";
3385
3435
  };
3386
- var Mo = function e(n) {
3436
+ var $o = function e(n) {
3387
3437
  return n === "docked";
3388
3438
  };
3389
- var $o = function e(n) {
3439
+ var No = function e(n) {
3390
3440
  return n === "fixed";
3391
3441
  };
3392
- var No = function e(n) {
3393
- var t = Ge();
3394
- var r = wo(n);
3442
+ var Wo = function e(n) {
3443
+ var t = tn();
3444
+ var r = Co(n);
3395
3445
  return {
3396
3446
  top: r.top + t.pageYOffset,
3397
3447
  left: r.left + t.pageXOffset
3398
3448
  };
3399
3449
  };
3400
- var Wo = function e(n) {
3401
- var t = Fe();
3450
+ var Lo = function e(n) {
3451
+ var t = Qe();
3402
3452
  if (n === undefined || n === null) {
3403
3453
  return undefined;
3404
3454
  }
@@ -3420,19 +3470,19 @@
3420
3470
  }
3421
3471
  return undefined;
3422
3472
  };
3423
- var Lo = function e(n, t) {
3473
+ var Ho = function e(n, t) {
3424
3474
  return n.indexOf(t) + 1;
3425
3475
  };
3426
- var Ho = function e(n, t) {
3476
+ var Ko = function e(n, t) {
3427
3477
  return n.indexOf(t) + 1;
3428
3478
  };
3429
- var Ko = {
3479
+ var Bo = {
3430
3480
  coordinateGetter: l.sortableKeyboardCoordinates
3431
3481
  };
3432
- var Bo = {
3482
+ var Vo = {
3433
3483
  draggable: (0, j._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
3434
3484
  };
3435
- var Vo = {
3485
+ var Fo = {
3436
3486
  draggable: (0, j._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3437
3487
  };
3438
3488
  /**
@@ -3444,7 +3494,7 @@
3444
3494
  * @param {String} headFocusState.target - Focus can be applied to a 'headCell' or a
3445
3495
  * 'resizeButton'.
3446
3496
  * @param {Number} headFocusState.index - The index of the element to set focus on.
3447
- */ function Fo(e, n) {
3497
+ */ function Uo(e, n) {
3448
3498
  var t, r;
3449
3499
  var o = n.target, i = n.index;
3450
3500
  if (false) {}
@@ -3457,28 +3507,28 @@
3457
3507
  if (false) {}
3458
3508
  (t = a) === null || t === void 0 ? void 0 : (r = t.focus) === null || r === void 0 ? void 0 : r.call(t);
3459
3509
  }
3460
- var Uo = {
3510
+ var Xo = {
3461
3511
  passive: false,
3462
3512
  capture: true
3463
3513
  };
3464
- var Xo = [];
3465
- function Yo(e) {
3466
- var n = e.actions, o = n === void 0 ? Xo : n, i = e.actionsColumnWidth, s = e.children, d = e.dockOffset, v = d === void 0 ? 0 : d, p = e.dockScrollBar, b = e.elementRef, h = e.headType, y = h === void 0 ? "inline" : h, w = e.innerStyle, x = e.onRequestMoveColumn, O = e.onRequestMoveRow, I = e.onRequestResizeColumn, q = e.onRequestToggleAllRows, A = e.onScroll, P = e.outerStyle, _ = e.primaryColumnIndex, z = _ === void 0 ? 0 : _, M = e.resizableFillLayout, $ = e.rowExpansion, N = $ === void 0 ? "none" : $, L = e.rowSelection, H = L === void 0 ? "none" : L, K = e.stripeRows, B = e.tableStyle, V = Ao(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3514
+ var Yo = [];
3515
+ function Go(e) {
3516
+ var n = e.actions, o = n === void 0 ? Yo : n, i = e.actionsColumnWidth, s = e.children, d = e.dockOffset, v = d === void 0 ? 0 : d, p = e.dockScrollBar, m = e.elementRef, h = e.headType, y = h === void 0 ? "inline" : h, w = e.innerStyle, x = e.onRequestMoveColumn, k = e.onRequestMoveRow, I = e.onRequestResizeColumn, q = e.onRequestToggleAllRows, A = e.onScroll, P = e.outerStyle, _ = e.primaryColumnIndex, z = _ === void 0 ? 0 : _, M = e.resizableFillLayout, $ = e.rowExpansion, N = $ === void 0 ? "none" : $, L = e.rowSelection, H = L === void 0 ? "none" : L, K = e.stripeRows, B = e.tableStyle, V = Po(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3467
3517
  // @docs-props-type TablePropsBase
3468
- var F = (0, t.useState)([]), U = Eo(F, 2), X = U[0], Y = U[1];
3469
- var G = (0, t.useState)(), J = Eo(G, 2), Q = J[0], oe = J[1];
3470
- var le = (0, t.useState)(), ue = Eo(le, 2), se = ue[0], ce = ue[1];
3471
- var de = (0, t.useState)(), fe = Eo(de, 2), ve = fe[0], pe = fe[1];
3472
- var be = (0, t.useState)(), me = Eo(be, 2), he = me[0], ye = me[1];
3518
+ var F = (0, t.useState)([]), U = Io(F, 2), X = U[0], Y = U[1];
3519
+ var G = (0, t.useState)(), J = Io(G, 2), Q = J[0], oe = J[1];
3520
+ var le = (0, t.useState)(), ue = Io(le, 2), se = ue[0], ce = ue[1];
3521
+ var de = (0, t.useState)(), fe = Io(de, 2), ve = fe[0], pe = fe[1];
3522
+ var me = (0, t.useState)(), be = Io(me, 2), he = be[0], ye = be[1];
3473
3523
  var ge = (0, t.useRef)(true);
3474
3524
  var we = (0, t.useContext)(E.ScrollContainerContext);
3475
3525
  var Ce = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
3476
- a.useSensor)(Zr, Ko));
3477
- var xe = (0, t.useState)([]), Se = Eo(xe, 2), Oe = Se[0], ke = Se[1];
3478
- var Re = (0, t.useState)(-1), Ee = Eo(Re, 2), Ie = Ee[0], Te = Ee[1];
3526
+ a.useSensor)(eo, Bo));
3527
+ var xe = (0, t.useState)([]), Se = Io(xe, 2), ke = Se[0], Oe = Se[1];
3528
+ var Re = (0, t.useState)(-1), Ee = Io(Re, 2), Ie = Ee[0], Te = Ee[1];
3479
3529
  var je = (0, t.useRef)();
3480
3530
  var De = (0, t.useRef)();
3481
- var qe = (0, t.useState)(), Ae = Eo(qe, 2), Pe = Ae[0], _e = Ae[1];
3531
+ var qe = (0, t.useState)(), Ae = Io(qe, 2), Pe = Ae[0], _e = Ae[1];
3482
3532
  var ze = (0, t.useRef)(null);
3483
3533
  var Me = (0, t.useRef)(null);
3484
3534
  var $e = (0, t.useRef)();
@@ -3489,12 +3539,12 @@
3489
3539
  var Ke = T()(y);
3490
3540
  var Be = [];
3491
3541
  var Ve = [];
3542
+ var Fe = [];
3492
3543
  var Ue = [];
3493
- var Xe = [];
3494
- var Ye = (0, t.useCallback)((function() {
3544
+ var Xe = (0, t.useCallback)((function() {
3495
3545
  var e;
3496
- var n = Ge();
3497
- if (zo(y)) {
3546
+ var n = tn();
3547
+ if (Mo(y)) {
3498
3548
  return;
3499
3549
  }
3500
3550
  var t = He.current;
@@ -3503,9 +3553,9 @@
3503
3553
  if (!o || !r) {
3504
3554
  return;
3505
3555
  }
3506
- var i = Gt(Me.current);
3556
+ var i = Jt(Me.current);
3507
3557
  var a = (e = Me.current) === null || e === void 0 ? void 0 : e.clientHeight;
3508
- var l = No(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3558
+ var l = Wo(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3509
3559
  var u = Math.min(l, Number(v));
3510
3560
  ye(t === null || t === void 0 ? void 0 : t.clientWidth);
3511
3561
  ce(o === null || o === void 0 ? void 0 : o.clientWidth);
@@ -3516,20 +3566,20 @@
3516
3566
  var e = Me.current;
3517
3567
  var n = Ne.current;
3518
3568
  if (e && n) {
3519
- var t = Gt(Me.current);
3520
- if (!m()(X, t)) {
3521
- Ye();
3569
+ var t = Jt(Me.current);
3570
+ if (!b()(X, t)) {
3571
+ Xe();
3522
3572
  }
3523
3573
  }
3524
3574
  if (Ke === "inline" && y === "inline") {
3525
- Ye();
3575
+ Xe();
3526
3576
  }
3527
3577
  if (false) {}
3528
- }), [ X, y, Ke, e, Ye ]);
3529
- var Je = (0, t.useCallback)((function(e) {
3578
+ }), [ X, y, Ke, e, Xe ]);
3579
+ var Ye = (0, t.useCallback)((function(e) {
3530
3580
  var n = He.current;
3531
3581
  A === null || A === void 0 ? void 0 : A(e);
3532
- if (($o(y) || Mo(y)) && n) {
3582
+ if ((No(y) || $o(y)) && n) {
3533
3583
  oe(-n.scrollLeft);
3534
3584
  }
3535
3585
  if (ze.current && We.current !== "dockedScrollBar" && n) {
@@ -3539,7 +3589,7 @@
3539
3589
  We.current = undefined;
3540
3590
  }
3541
3591
  }), [ y, A ]);
3542
- var Qe = function e() {
3592
+ var Ge = function e() {
3543
3593
  var n = He.current;
3544
3594
  if (We.current !== "container" && n && ze.current) {
3545
3595
  We.current = "dockedScrollBar";
@@ -3548,34 +3598,34 @@
3548
3598
  We.current = undefined;
3549
3599
  }
3550
3600
  };
3551
- var Ze = C()(Ye, 0);
3552
- var en = C()(Ye, 50);
3553
- k()(He, en);
3601
+ var Je = C()(Xe, 0);
3602
+ var Ze = C()(Xe, 50);
3603
+ O()(He, Ze);
3554
3604
  (0, t.useEffect)((function() {
3555
3605
  // Using the return value of useCallback to recreate componentWillUnmount
3556
3606
  return function() {
3607
+ Je.cancel();
3557
3608
  Ze.cancel();
3558
- en.cancel();
3559
3609
  };
3560
3610
  }));
3561
- var nn = function e(n) {
3611
+ var en = function e(n) {
3562
3612
  return function(e) {
3563
3613
  Me.current = e;
3564
3614
  W(n.props.elementRef, e);
3565
3615
  };
3566
3616
  };
3567
- var tn = function e(n) {
3617
+ var nn = function e(n) {
3568
3618
  if (n) {
3569
3619
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
3570
3620
  if ($e.current) {
3571
- Fo(Ne.current, $e.current);
3621
+ Uo(Ne.current, $e.current);
3572
3622
  $e.current = undefined;
3573
3623
  }
3574
3624
  } else {
3575
3625
  // On unmount, focus the applicable primary head cell if a docked head cell was focused.
3576
- var t = Wo(Ne.current);
3626
+ var t = Lo(Ne.current);
3577
3627
  if (t) {
3578
- Fo(Me.current, t);
3628
+ Uo(Me.current, t);
3579
3629
  }
3580
3630
  }
3581
3631
  Ne.current = n;
@@ -3594,7 +3644,7 @@
3594
3644
  var on = function e(n, t) {
3595
3645
  var r, o;
3596
3646
  var i = t.index, a = t.columnId;
3597
- var l = Fe();
3647
+ var l = Qe();
3598
3648
  if (i === undefined) {
3599
3649
  return;
3600
3650
  }
@@ -3626,13 +3676,13 @@
3626
3676
  var an = (0, t.useCallback)((function(e) {
3627
3677
  var n = e.active;
3628
3678
  var t = n.id;
3629
- je.current = Xe.indexOf(t);
3679
+ je.current = Ue.indexOf(t);
3630
3680
  _e(t);
3631
- }), [ Xe ]);
3681
+ }), [ Ue ]);
3632
3682
  var ln = (0, t.useCallback)((function(e) {
3633
3683
  if (e.over) {
3634
3684
  var n = e.over.id;
3635
- var t = Xe.indexOf(n);
3685
+ var t = Ue.indexOf(n);
3636
3686
  var r = t;
3637
3687
  if (je.current !== undefined && t > je.current) {
3638
3688
  r = t + 1;
@@ -3641,7 +3691,7 @@
3641
3691
  } else {
3642
3692
  Te(-1);
3643
3693
  }
3644
- }), [ Xe ]);
3694
+ }), [ Ue ]);
3645
3695
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
3646
3696
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
3647
3697
  var un = (0, t.useMemo)((function() {
@@ -3655,8 +3705,8 @@
3655
3705
  var sn = (0, t.useCallback)((function(e) {
3656
3706
  var n = e.active, t = e.over;
3657
3707
  if (t && n.id !== t.id) {
3658
- var r = Xe.indexOf(n.id);
3659
- var o = Xe.indexOf(t === null || t === void 0 ? void 0 : t.id);
3708
+ var r = Ue.indexOf(n.id);
3709
+ var o = Ue.indexOf(t === null || t === void 0 ? void 0 : t.id);
3660
3710
  x === null || x === void 0 ? void 0 : x({
3661
3711
  fromIndex: r,
3662
3712
  toIndex: o
@@ -3666,19 +3716,19 @@
3666
3716
  Te(-1);
3667
3717
  De.current = undefined;
3668
3718
  je.current = undefined;
3669
- }), [ Xe, x ]);
3719
+ }), [ Ue, x ]);
3670
3720
  var cn = (0, t.useCallback)((function(e) {
3671
3721
  var n = e.active, t = e.over;
3672
3722
  ge.current = true;
3673
3723
  if (t && n.id !== t.id) {
3674
3724
  var r = Ve.indexOf(n.id);
3675
3725
  var o = Ve.indexOf(t === null || t === void 0 ? void 0 : t.id);
3676
- O === null || O === void 0 ? void 0 : O({
3726
+ k === null || k === void 0 ? void 0 : k({
3677
3727
  fromIndex: r,
3678
3728
  toIndex: o
3679
3729
  });
3680
3730
  }
3681
- }), [ Ve, O ]);
3731
+ }), [ Ve, k ]);
3682
3732
  var dn = (0, t.useCallback)((function() {
3683
3733
  ge.current = true;
3684
3734
  }), []);
@@ -3693,8 +3743,8 @@
3693
3743
  if (!o.startsWith("col-")) {
3694
3744
  o = "col-".concat(o);
3695
3745
  }
3696
- Ue.push(r);
3697
- Xe.push(o);
3746
+ Fe.push(r);
3747
+ Ue.push(o);
3698
3748
 
3699
3749
  return (0, t.cloneElement)(r, {
3700
3750
  index: n,
@@ -3710,12 +3760,12 @@
3710
3760
  actions: a,
3711
3761
  actionsColumnWidth: i,
3712
3762
  hasInfoColumn: N !== "none",
3713
- hasDragColumn: !!O,
3763
+ hasDragColumn: !!k,
3714
3764
  onAutosizeColumn: on,
3715
3765
  onRequestMoveColumn: x,
3716
3766
  onRequestResizeColumn: I,
3717
3767
  onRequestToggleAllRows: q,
3718
- elementRef: nn(n),
3768
+ elementRef: en(n),
3719
3769
  rowSelection: H
3720
3770
  }, r);
3721
3771
  return l;
@@ -3723,7 +3773,7 @@
3723
3773
  var pn = (0, t.useMemo)((function() {
3724
3774
  var e, n;
3725
3775
  if (Ie === -1 || !Me.current || !He.current) return null;
3726
- var t = !!O;
3776
+ var t = !!k;
3727
3777
  var o = N !== "none";
3728
3778
  var i = Array.from((e = (n = Me.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(q ? 1 : 0);
3729
3779
  var a;
@@ -3743,8 +3793,8 @@
3743
3793
  $height: He.current.clientHeight,
3744
3794
  $left: a
3745
3795
  });
3746
- }), [ Ie, O, N, q ]);
3747
- var bn = function e(n) {
3796
+ }), [ Ie, k, N, q ]);
3797
+ var mn = function e(n) {
3748
3798
  var r = (o === null || o === void 0 ? void 0 : o.filter(t.isValidElement).length) > 0;
3749
3799
  var a = false;
3750
3800
  t.Children.toArray(n === null || n === void 0 ? void 0 : n.props.children).filter(t.isValidElement).forEach((function(e, n) {
@@ -3770,42 +3820,42 @@
3770
3820
  return (0, t.cloneElement)(n, {
3771
3821
  actions: l,
3772
3822
  movableColumns: !!x,
3773
- onRequestMoveRow: O,
3823
+ onRequestMoveRow: k,
3774
3824
  primaryColumnIndex: z,
3775
3825
  rowExpansion: N,
3776
3826
  stripeRows: K
3777
3827
  }, Be);
3778
3828
  };
3779
- var mn = function e() {
3829
+ var bn = function e() {
3780
3830
  var n = He.current;
3781
- var t = Ge();
3782
- if (!Mo(y) || !Le.current || !Me.current || !n) {
3831
+ var t = tn();
3832
+ if (!$o(y) || !Le.current || !Me.current || !n) {
3783
3833
  return false;
3784
3834
  }
3785
- var r = No(n).top;
3835
+ var r = Wo(n).top;
3786
3836
  return t.pageYOffset >= r - (v || 0);
3787
3837
  };
3788
3838
  var hn = function e() {
3789
- var n = Ge();
3839
+ var n = tn();
3790
3840
  var t = He.current;
3791
3841
  if (!p || !Le.current || !t) {
3792
3842
  return false;
3793
3843
  }
3794
- var r = wo(t);
3844
+ var r = Co(t);
3795
3845
  return r.bottom > n.innerHeight && r.top < n.innerHeight;
3796
3846
  };
3797
3847
  var yn = function e(n, o) {
3798
- if (mn()) {
3848
+ if (bn()) {
3799
3849
  // FIXME: handle inline
3800
3850
  // Save the current head focus state so that it can be applied to the docked version
3801
3851
  // after the `HeadTable` mounts.
3802
- $e.current = Wo(Me.current);
3852
+ $e.current = Lo(Me.current);
3803
3853
  if (X === undefined || se === undefined || ve === undefined || he === undefined) {
3804
3854
  return false;
3805
3855
  }
3806
3856
  var i = (0, t.cloneElement)(n);
3807
3857
 
3808
- return r().createElement(co, {
3858
+ return r().createElement(fo, {
3809
3859
  headType: "docked",
3810
3860
  tHead: i,
3811
3861
  cellWidths: X,
@@ -3816,8 +3866,8 @@
3816
3866
  tableStyle: B,
3817
3867
  isFixedColumn: o,
3818
3868
  onKeyUp: rn,
3819
- elementRef: tn,
3820
- hasDragColumn: !!O,
3869
+ elementRef: nn,
3870
+ hasDragColumn: !!k,
3821
3871
  hasRowExpansion: N !== "none",
3822
3872
  hasRowSelection: !!q
3823
3873
  });
@@ -3829,8 +3879,8 @@
3829
3879
  if (!ze.current || !Me.current || !Le.current) {
3830
3880
  return 0;
3831
3881
  }
3832
- var r = Ge();
3833
- var o = (e = wo(Le.current).top) !== null && e !== void 0 ? e : 0;
3882
+ var r = tn();
3883
+ var o = (e = Co(Le.current).top) !== null && e !== void 0 ? e : 0;
3834
3884
  var i = (n = (t = Me.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3835
3885
  var a = r.innerHeight - o - i;
3836
3886
  return Math.min(a - ze.current.offsetHeight, 0);
@@ -3853,7 +3903,7 @@
3853
3903
 
3854
3904
  return r().createElement(te, {
3855
3905
  style: wn,
3856
- onScroll: Qe,
3906
+ onScroll: Ge,
3857
3907
  "data-test": "docked-scroll-bar",
3858
3908
  ref: ze
3859
3909
  }, r().createElement(re, {
@@ -3868,7 +3918,7 @@
3868
3918
  * there is slightly less space for the table than tableContainer's width,
3869
3919
  * because there is a 1 px border added to every column but the first
3870
3920
  */ if (n) {
3871
- var r = Gt(Me.current);
3921
+ var r = Jt(Me.current);
3872
3922
  var o = r === null || r === void 0 ? void 0 : r.length;
3873
3923
  var i = t === null || t === void 0 ? void 0 : t.clientWidth;
3874
3924
  if (i != null) {
@@ -3878,14 +3928,14 @@
3878
3928
  }
3879
3929
  return null;
3880
3930
  };
3881
- var On;
3882
3931
  var kn;
3932
+ var On;
3883
3933
  var Rn;
3884
3934
  var En = !!I;
3885
3935
  t.Children.toArray(s).forEach((function(e) {
3886
3936
  var n = e.type.splunkUiType;
3887
3937
  if (n === "Table.Head") {
3888
- On = vn(e);
3938
+ kn = vn(e);
3889
3939
  if (!En) {
3890
3940
  // if all the HeadCells are fixed width, then the table is fixed.
3891
3941
  En = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
@@ -3893,7 +3943,7 @@
3893
3943
  }));
3894
3944
  }
3895
3945
  } else if (n === "Table.Body") {
3896
- kn = bn(e);
3946
+ On = mn(e);
3897
3947
  } else if (n === "Table.Caption") {
3898
3948
  // the html spec mandates that a caption must be the first table child.
3899
3949
  // catch the caption here so that it can be placed first later. note: a
@@ -3902,20 +3952,20 @@
3902
3952
  Rn = e;
3903
3953
  }
3904
3954
  }));
3905
- Co(On, "A Table.Head is required.");
3906
- var In = yn(On, En);
3955
+ xo(kn, "A Table.Head is required.");
3956
+ var In = yn(kn, En);
3907
3957
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
3908
3958
  // interactions will be handled by the overlaid `headTable` instead.
3909
- var Tn = t.Children.toArray(On.props.children).filter(t.isValidElement).map((function(e) {
3959
+ var Tn = t.Children.toArray(kn.props.children).filter(t.isValidElement).map((function(e) {
3910
3960
 
3911
3961
  // TS: onClick is different for regular/dropdown head cells, that's ok
3912
3962
  return (0, t.cloneElement)(e, {
3913
3963
  visible: !In
3914
3964
  });
3915
3965
  }));
3916
- On = (0, t.cloneElement)(On, {}, Tn);
3917
- var jn = we || Ge();
3918
- var Dn = $o(y) ? He.current : jn;
3966
+ kn = (0, t.cloneElement)(kn, {}, Tn);
3967
+ var jn = we || tn();
3968
+ var Dn = No(y) ? He.current : jn;
3919
3969
  if (M) {
3920
3970
  En = false;
3921
3971
  }
@@ -3928,7 +3978,7 @@
3928
3978
  };
3929
3979
  }), [ y, M, qn ]);
3930
3980
  var Pn = (0, t.useMemo)((function() {
3931
- if (!O) {
3981
+ if (!k) {
3932
3982
  return {
3933
3983
  onDragStart: function e() {
3934
3984
  return undefined;
@@ -3950,7 +4000,7 @@
3950
4000
  if (t === undefined) {
3951
4001
  return undefined;
3952
4002
  }
3953
- var r = Lo(Ve, t);
4003
+ var r = Ho(Ve, t);
3954
4004
  return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable row in position %(pos)d of %(total)d."), {
3955
4005
  pos: r,
3956
4006
  total: Ve.length
@@ -3965,8 +4015,8 @@
3965
4015
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
3966
4016
  return undefined;
3967
4017
  }
3968
- var o = Lo(Ve, t.id);
3969
- var i = Lo(Ve, r.id);
4018
+ var o = Ho(Ve, t.id);
4019
+ var i = Ho(Ve, r.id);
3970
4020
  return (0, D.sprintf)((0, j._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
3971
4021
  from: o,
3972
4022
  to: i,
@@ -3978,7 +4028,7 @@
3978
4028
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
3979
4029
  return undefined;
3980
4030
  }
3981
- var r = Lo(Ve, t.id);
4031
+ var r = Ho(Ve, t.id);
3982
4032
  return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row dropped at position %(pos)d of %(total)d."), {
3983
4033
  pos: r,
3984
4034
  total: Ve.length
@@ -3989,13 +4039,13 @@
3989
4039
  if (t === undefined) {
3990
4040
  return undefined;
3991
4041
  }
3992
- var r = Lo(Ve, t);
4042
+ var r = Ho(Ve, t);
3993
4043
  return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row returned to its starting position of %(pos)d."), {
3994
4044
  pos: r
3995
4045
  }) : undefined;
3996
4046
  }
3997
4047
  };
3998
- }), [ Ve, O ]);
4048
+ }), [ Ve, k ]);
3999
4049
  var _n = (0, t.useMemo)((function() {
4000
4050
  if (!x) {
4001
4051
  return {
@@ -4019,10 +4069,10 @@
4019
4069
  if (t === undefined) {
4020
4070
  return undefined;
4021
4071
  }
4022
- var r = Ho(Xe, t);
4072
+ var r = Ko(Ue, t);
4023
4073
  return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4024
4074
  pos: r,
4025
- total: Xe.length
4075
+ total: Ue.length
4026
4076
  }) : undefined;
4027
4077
  },
4028
4078
  onDragOver: function e(n) {
@@ -4034,13 +4084,13 @@
4034
4084
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4035
4085
  return undefined;
4036
4086
  }
4037
- var o = Ho(Xe, t.id);
4038
- var i = Ho(Xe, r.id);
4087
+ var o = Ko(Ue, t.id);
4088
+ var i = Ko(Ue, r.id);
4039
4089
  if (typeof o !== "number" || typeof i !== "number") return undefined;
4040
4090
  return (0, D.sprintf)((0, j._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4041
4091
  from: o,
4042
4092
  to: i,
4043
- total: Xe.length
4093
+ total: Ue.length
4044
4094
  });
4045
4095
  },
4046
4096
  onDragEnd: function e(n) {
@@ -4048,10 +4098,10 @@
4048
4098
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4049
4099
  return undefined;
4050
4100
  }
4051
- var r = Ho(Xe, t.id);
4101
+ var r = Ko(Ue, t.id);
4052
4102
  return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column dropped at position %(pos)d of %(total)d."), {
4053
4103
  pos: r,
4054
- total: Xe.length
4104
+ total: Ue.length
4055
4105
  }) : undefined;
4056
4106
  },
4057
4107
  onDragCancel: function e(n) {
@@ -4059,37 +4109,37 @@
4059
4109
  if (t === undefined) {
4060
4110
  return undefined;
4061
4111
  }
4062
- var r = Ho(Xe, t);
4112
+ var r = Ko(Ue, t);
4063
4113
  return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column returned to its starting position of %(pos)d."), {
4064
4114
  pos: r
4065
4115
  }) : undefined;
4066
4116
  }
4067
4117
  };
4068
- }), [ Xe, x ]);
4118
+ }), [ Ue, x ]);
4069
4119
  var zn = (0, t.useMemo)((function() {
4070
4120
  return {
4071
- screenReaderInstructions: O ? Bo : Vo,
4072
- announcements: O ? Pn : _n
4121
+ screenReaderInstructions: k ? Vo : Fo,
4122
+ announcements: k ? Pn : _n
4073
4123
  };
4074
- }), [ Pn, _n, O ]);
4124
+ }), [ Pn, _n, k ]);
4075
4125
  var Mn = (0, t.useCallback)((function(e) {
4076
4126
  var n = e.active.id;
4077
4127
  if (n.startsWith("col-") && x) {
4078
- ke([ u.restrictToHorizontalAxis ]);
4128
+ Oe([ u.restrictToHorizontalAxis ]);
4079
4129
  an(e);
4080
- } else if (n.startsWith("row-") && O) {
4081
- ke([ u.restrictToVerticalAxis ]);
4130
+ } else if (n.startsWith("row-") && k) {
4131
+ Oe([ u.restrictToVerticalAxis ]);
4082
4132
  }
4083
- }), [ x, O, an ]);
4133
+ }), [ x, k, an ]);
4084
4134
  var $n = (0, t.useCallback)((function(e) {
4085
- ke([]);
4135
+ Oe([]);
4086
4136
  var n = e.active.id;
4087
4137
  if (n.startsWith("col-") && x) {
4088
4138
  sn(e);
4089
- } else if (n.startsWith("row-") && O) {
4139
+ } else if (n.startsWith("row-") && k) {
4090
4140
  cn(e);
4091
4141
  }
4092
- }), [ sn, cn, x, O ]);
4142
+ }), [ sn, cn, x, k ]);
4093
4143
  var Nn = (0, t.useCallback)((function(e) {
4094
4144
  var n = e.active.id;
4095
4145
  if (n.startsWith("col-") && x) {
@@ -4097,12 +4147,12 @@
4097
4147
  }
4098
4148
  }), [ un, x ]);
4099
4149
  var Wn = (0, t.useCallback)((function(e) {
4100
- ke([]);
4150
+ Oe([]);
4101
4151
  var n = e.active.id;
4102
- if (n.startsWith("row-") && O) {
4152
+ if (n.startsWith("row-") && k) {
4103
4153
  dn();
4104
4154
  }
4105
- }), [ dn, O ]);
4155
+ }), [ dn, k ]);
4106
4156
  var Ln = (0, t.useMemo)((function() {
4107
4157
  return function(e) {
4108
4158
  var n = (0, a.pointerWithin)(e);
@@ -4115,23 +4165,23 @@
4115
4165
  };
4116
4166
  }), []);
4117
4167
  var Hn = Pe ? fn.current[Pe] : null;
4118
- var Kn = Hn ? wo(Hn).width : undefined;
4119
- var Bn = He.current ? wo(He.current).height : undefined;
4168
+ var Kn = Hn ? Co(Hn).width : undefined;
4169
+ var Bn = He.current ? Co(He.current).height : undefined;
4120
4170
 
4121
- return r().createElement(Z, xo({
4171
+ return r().createElement(Z, So({
4122
4172
  "data-test": "table",
4123
- ref: b,
4173
+ ref: m,
4124
4174
  style: P,
4125
4175
  "data-test-row-selection": q ? H : undefined
4126
- }, g()(V, [].concat(So(Object.keys(_o)), [ "style" ]))), r().createElement(S(), {
4127
- target: Ge(),
4176
+ }, g()(V, [].concat(ko(Object.keys(zo)), [ "style" ]))), r().createElement(S(), {
4177
+ target: tn(),
4128
4178
  eventType: "scroll",
4129
- listener: Ze,
4130
- options: Uo
4131
- }), r().createElement(zt.Provider, {
4179
+ listener: Je,
4180
+ options: Xo
4181
+ }), r().createElement(Mt.Provider, {
4132
4182
  value: An
4133
4183
  }, In, r().createElement(ee, {
4134
- onScroll: Je,
4184
+ onScroll: Ye,
4135
4185
  ref: He,
4136
4186
  style: w,
4137
4187
  $dragging: !!Pe
@@ -4140,7 +4190,7 @@
4140
4190
  }, r().createElement(a.DndContext, {
4141
4191
  accessibility: zn,
4142
4192
  collisionDetection: Ln,
4143
- modifiers: Oe,
4193
+ modifiers: ke,
4144
4194
  onDragCancel: Wn,
4145
4195
  onDragEnd: $n,
4146
4196
  onDragOver: Nn,
@@ -4153,25 +4203,25 @@
4153
4203
  "data-fixed-column": En ? "true" : undefined,
4154
4204
  $resizableFillLayout: M
4155
4205
  }, Rn, x ? r().createElement(l.SortableContext, {
4156
- items: Xe,
4206
+ items: Ue,
4157
4207
  strategy: l.horizontalListSortingStrategy
4158
- }, On) : On, O ? r().createElement(l.SortableContext, {
4208
+ }, kn) : kn, k ? r().createElement(l.SortableContext, {
4159
4209
  items: Ve,
4160
4210
  strategy: l.verticalListSortingStrategy
4161
- }, kn) : kn), Pe && r().createElement(a.DragOverlay, null, r().createElement(ie, {
4211
+ }, On) : On), Pe && r().createElement(a.DragOverlay, null, r().createElement(ie, {
4162
4212
  $width: Kn,
4163
4213
  $height: Bn
4164
4214
  })), Pe && pn))), xn()));
4165
4215
  }
4166
- Yo.propTypes = _o;
4167
- Yo.Body = Q;
4168
- Yo.Caption = fe;
4169
- Yo.Cell = Se;
4170
- Yo.Head = Qt;
4171
- Yo.HeadCell = In;
4172
- Yo.HeadDropdownCell = wr;
4173
- Yo.Row = Pt;
4174
- /* harmony default export */ const Go = Yo;
4216
+ Go.propTypes = zo;
4217
+ Go.Body = Q;
4218
+ Go.Caption = fe;
4219
+ Go.Cell = Se;
4220
+ Go.Head = Zt;
4221
+ Go.HeadCell = _n;
4222
+ Go.HeadDropdownCell = Cr;
4223
+ Go.Row = _t;
4224
+ /* harmony default export */ const Jo = Go;
4175
4225
  // CONCATENATED MODULE: ./src/Table/index.ts
4176
4226
  module.exports = n;
4177
4227
  /******/})();