@splunk/react-ui 5.0.0-rc.2 → 5.1.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.
Files changed (104) hide show
  1. package/Accordion.js +59 -59
  2. package/Avatar.js +20 -20
  3. package/Breadcrumbs.js +46 -46
  4. package/Button.js +24 -24
  5. package/CHANGELOG.md +380 -0
  6. package/Calendar.js +69 -69
  7. package/Card.js +68 -68
  8. package/Chip.js +16 -16
  9. package/Clickable.js +29 -29
  10. package/Code.js +654 -519
  11. package/CollapsiblePanel.js +112 -112
  12. package/Color.js +107 -107
  13. package/ColumnLayout.js +35 -35
  14. package/ComboBox.js +190 -206
  15. package/ControlGroup.js +129 -121
  16. package/Date.js +148 -146
  17. package/DefinitionList.js +26 -26
  18. package/Dropdown.js +9 -9
  19. package/DualListbox.js +701 -717
  20. package/File.js +403 -403
  21. package/FormRows.js +66 -63
  22. package/Image.js +15 -15
  23. package/JSONTree.js +458 -357
  24. package/Layer.js +60 -72
  25. package/MIGRATION.md +550 -1
  26. package/Markdown.js +66 -66
  27. package/Menu.js +44 -44
  28. package/Message.js +47 -43
  29. package/Modal.js +49 -49
  30. package/ModalLayer.js +21 -17
  31. package/Monogram.js +16 -16
  32. package/Multiselect.js +673 -669
  33. package/Number.js +100 -100
  34. package/Paginator.js +7 -7
  35. package/Popover.js +473 -424
  36. package/Progress.js +12 -12
  37. package/Prose.js +6 -6
  38. package/README.md +6 -6
  39. package/RadioBar.js +180 -166
  40. package/RadioList.js +80 -79
  41. package/ResultsMenu.js +129 -128
  42. package/Scroll.js +50 -50
  43. package/Search.js +148 -164
  44. package/Select.js +674 -674
  45. package/Slider.js +30 -30
  46. package/SlidingPanels.js +24 -24
  47. package/SplitButton.js +50 -50
  48. package/StepBar.js +100 -100
  49. package/Switch.js +45 -45
  50. package/TabBar.js +196 -196
  51. package/TabLayout.js +16 -16
  52. package/Table.js +1207 -1193
  53. package/Text.js +65 -65
  54. package/TextArea.js +108 -93
  55. package/Tooltip.js +203 -197
  56. package/TransitionOpen.js +4 -1
  57. package/Tree.js +464 -366
  58. package/package.json +11 -11
  59. package/stubs-dependencies.d.ts +0 -70
  60. package/stubs-splunkui.d.ts +4 -0
  61. package/types/src/Code/Code.d.ts +17 -1
  62. package/types/src/Code/LineHighlights.d.ts +11 -0
  63. package/types/src/Code/LineNumbers.d.ts +6 -0
  64. package/types/src/Code/docs/examples/LineHighlights.d.ts +3 -0
  65. package/types/src/Code/docs/examples/LineNumbers.d.ts +3 -0
  66. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +3 -0
  67. package/types/src/Date/Date.d.ts +6 -1
  68. package/types/src/DefinitionList/DefinitionList.d.ts +6 -6
  69. package/types/src/Dropdown/Dropdown.d.ts +1 -0
  70. package/types/src/FormRows/FormRows.d.ts +1 -1
  71. package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
  72. package/types/src/Markdown/Markdown.d.ts +1 -1
  73. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  74. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  75. package/types/src/Markdown/renderers/index.d.ts +1 -1
  76. package/types/src/Popover/Popover.d.ts +8 -2
  77. package/types/src/RadioBar/Option.d.ts +1 -1
  78. package/types/src/RadioBar/RadioBar.d.ts +13 -6
  79. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  80. package/types/src/RadioList/RadioList.d.ts +2 -1
  81. package/types/src/ResultsMenu/ResultsMenu.d.ts +2 -1
  82. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +3 -0
  83. package/types/src/Scroll/Inner.d.ts +1 -1
  84. package/types/src/Select/Option.d.ts +1 -1
  85. package/types/src/Select/Select.d.ts +1 -1
  86. package/types/src/Slider/docs/examples/Controlled.d.ts +1 -1
  87. package/types/src/TabLayout/Panel.d.ts +0 -1
  88. package/types/src/Table/Head.d.ts +1 -0
  89. package/types/src/Table/HeadCell.d.ts +2 -3
  90. package/types/src/Table/HeadDropdownCell.d.ts +2 -2
  91. package/types/src/Table/HeadInner.d.ts +4 -4
  92. package/types/src/Table/KeyboardSensor.d.ts +1 -1
  93. package/types/src/Table/RowDragCell.d.ts +1 -1
  94. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  95. package/types/src/Tree/Item.d.ts +63 -0
  96. package/types/src/Tree/Tree.d.ts +13 -6
  97. package/types/src/Tree/TreeContext.d.ts +1 -1
  98. package/types/src/Tree/index.d.ts +1 -1
  99. package/types/src/useControlled/useControlled.d.ts +3 -1
  100. package/useControlled.js +29 -13
  101. package/CHANGELOG.v5.md +0 -354
  102. package/MIGRATION.v5.md +0 -552
  103. package/types/src/Button/docs/examples/Truncated.d.ts +0 -3
  104. package/types/src/Tree/TreeItem.d.ts +0 -44
package/Table.js CHANGED
@@ -67,58 +67,58 @@
67
67
  Head: () => /* reexport */ Zt,
68
68
  HeadCell: () => /* reexport */ _n,
69
69
  HeadDropdownCell: () => /* reexport */ Cr,
70
- Row: () => /* reexport */ _t,
70
+ Row: () => /* reexport */ Nt,
71
71
  default: () => /* reexport */ Jo
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
74
74
  const t = require("react");
75
75
  var r = e.n(t);
76
- // CONCATENATED MODULE: external "prop-types"
77
- const o = require("prop-types");
78
- var i = e.n(o);
79
76
  // CONCATENATED MODULE: external "@dnd-kit/core"
80
- const a = require("@dnd-kit/core");
81
- // CONCATENATED MODULE: external "@dnd-kit/sortable"
82
- const l = require("@dnd-kit/sortable");
77
+ const o = require("@dnd-kit/core");
83
78
  // CONCATENATED MODULE: external "@dnd-kit/modifiers"
84
- const u = require("@dnd-kit/modifiers");
79
+ const i = require("@dnd-kit/modifiers");
80
+ // CONCATENATED MODULE: external "@dnd-kit/sortable"
81
+ const a = require("@dnd-kit/sortable");
85
82
  // CONCATENATED MODULE: external "lodash/forEach"
86
- const s = require("lodash/forEach");
87
- var c = e.n(s);
83
+ const l = require("lodash/forEach");
84
+ var u = e.n(l);
88
85
  // CONCATENATED MODULE: external "lodash/has"
89
- const d = require("lodash/has");
90
- var f = e.n(d);
86
+ const s = require("lodash/has");
87
+ var c = e.n(s);
91
88
  // CONCATENATED MODULE: external "lodash/indexOf"
92
- const v = require("lodash/indexOf");
93
- var p = e.n(v);
89
+ const d = require("lodash/indexOf");
90
+ var f = e.n(d);
94
91
  // CONCATENATED MODULE: external "lodash/isEqual"
95
- const m = require("lodash/isEqual");
96
- var b = e.n(m);
92
+ const v = require("lodash/isEqual");
93
+ var p = e.n(v);
97
94
  // CONCATENATED MODULE: external "lodash/isNumber"
98
- const h = require("lodash/isNumber");
95
+ const m = require("lodash/isNumber");
99
96
  // CONCATENATED MODULE: external "lodash/omit"
100
- const y = require("lodash/omit");
101
- var g = e.n(y);
97
+ const b = require("lodash/omit");
98
+ var h = e.n(b);
102
99
  // CONCATENATED MODULE: external "lodash/throttle"
103
- const w = require("lodash/throttle");
100
+ const y = require("lodash/throttle");
101
+ var g = e.n(y);
102
+ // CONCATENATED MODULE: external "prop-types"
103
+ const w = require("prop-types");
104
104
  var C = e.n(w);
105
105
  // CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
106
106
  const x = require("@splunk/react-ui/EventListener");
107
107
  var S = e.n(x);
108
- // CONCATENATED MODULE: external "@splunk/react-ui/useResizeObserver"
109
- const k = require("@splunk/react-ui/useResizeObserver");
110
- var O = e.n(k);
111
- // CONCATENATED MODULE: external "@splunk/ui-utils/id"
112
- const R = require("@splunk/ui-utils/id");
113
108
  // CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
114
- const E = require("@splunk/react-ui/ScrollContainerContext");
109
+ const k = require("@splunk/react-ui/ScrollContainerContext");
115
110
  // CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
116
- const I = require("@splunk/react-ui/usePrevious");
117
- var T = e.n(I);
111
+ const O = require("@splunk/react-ui/usePrevious");
112
+ var R = e.n(O);
113
+ // CONCATENATED MODULE: external "@splunk/react-ui/useResizeObserver"
114
+ const E = require("@splunk/react-ui/useResizeObserver");
115
+ var I = e.n(E);
116
+ // CONCATENATED MODULE: external "@splunk/ui-utils/format"
117
+ const T = require("@splunk/ui-utils/format");
118
118
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
119
119
  const j = require("@splunk/ui-utils/i18n");
120
- // CONCATENATED MODULE: external "@splunk/ui-utils/format"
121
- const D = require("@splunk/ui-utils/format");
120
+ // CONCATENATED MODULE: external "@splunk/ui-utils/id"
121
+ const D = require("@splunk/ui-utils/id");
122
122
  // CONCATENATED MODULE: external "lodash/includes"
123
123
  const q = require("lodash/includes");
124
124
  var A = e.n(q);
@@ -235,19 +235,19 @@
235
235
  }
236
236
  var G = {
237
237
  /** @private. Generally passed by Table rather than added directly. */
238
- actions: i().bool,
239
- children: i().node,
240
- elementRef: i().oneOfType([ i().func, i().object ]),
238
+ actions: C().bool,
239
+ children: C().node,
240
+ elementRef: C().oneOfType([ C().func, C().object ]),
241
241
  /** @private. Generally passed by Table rather than added directly. */
242
- movableColumns: i().bool,
242
+ movableColumns: C().bool,
243
243
  /** @private. Generally passed by Table rather than added directly. */
244
- rowExpansion: i().oneOf([ "single", "multi", "none", "controlled" ]),
244
+ rowExpansion: C().oneOf([ "single", "multi", "none", "controlled" ]),
245
245
  /** @private. Generally passed by Table rather than added directly. */
246
- onRequestMoveRow: i().func,
246
+ onRequestMoveRow: C().func,
247
247
  /** @private. Generally passed by Table rather than added directly. */
248
- primaryColumnIndex: i().number,
248
+ primaryColumnIndex: C().number,
249
249
  /** @private. Generally passed by Table rather than added directly. */
250
- stripeRows: i().bool
250
+ stripeRows: C().bool
251
251
  };
252
252
  function J(e) {
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" ]);
@@ -292,7 +292,7 @@
292
292
  n.set(a, Array.from({
293
293
  length: l
294
294
  }, (function() {
295
- return (0, R.createDOMID)();
295
+ return (0, D.createDOMID)();
296
296
  })));
297
297
  r = true;
298
298
  }
@@ -441,8 +441,8 @@
441
441
  return t;
442
442
  }
443
443
  var ce = {
444
- children: i().node.isRequired,
445
- side: i().oneOf([ "top", "bottom" ])
444
+ children: C().node.isRequired,
445
+ side: C().oneOf([ "top", "bottom" ])
446
446
  };
447
447
  /**
448
448
  * Tables that use a docked header must place the caption on the bottom side.
@@ -539,27 +539,27 @@
539
539
  return t;
540
540
  }
541
541
  /** @public */ var Ce = {
542
- align: i().oneOf([ "left", "center", "right" ]),
542
+ align: C().oneOf([ "left", "center", "right" ]),
543
543
  /** @private */
544
- appearance: i().oneOf([ "data", "link", "rowLink" ]),
544
+ appearance: C().oneOf([ "data", "link", "rowLink" ]),
545
545
  /** @private Used to set the $clickable appearance without an onClick */
546
- appearClickable: i().bool,
547
- children: i().node,
548
- data: i().any,
549
- elementRef: i().oneOfType([ i().func, i().object ]),
546
+ appearClickable: C().bool,
547
+ children: C().node,
548
+ data: C().any,
549
+ elementRef: C().oneOfType([ C().func, C().object ]),
550
550
  /** @private */
551
- isPrimaryCell: i().bool,
552
- onClick: i().func,
551
+ isPrimaryCell: C().bool,
552
+ onClick: C().func,
553
553
  /** @private */
554
- onKeyDown: i().func,
554
+ onKeyDown: C().func,
555
555
  /** @private */
556
- disabled: i().bool,
556
+ disabled: C().bool,
557
557
  /** @private. */
558
- expand: i().bool,
558
+ expand: C().bool,
559
559
  /** @private. */
560
- stripe: i().oneOf([ "odd", "even", "none" ]),
560
+ stripe: C().oneOf([ "odd", "even", "none" ]),
561
561
  /** @private. */
562
- variant: i().oneOf([ "toggle", "expand", "drag", "actions" ])
562
+ variant: C().oneOf([ "toggle", "expand", "drag", "actions" ])
563
563
  };
564
564
  function xe(e) {
565
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" ]);
@@ -617,35 +617,20 @@
617
617
  // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
618
618
  const je = require("@splunk/react-ui/Tooltip");
619
619
  var De = e.n(je);
620
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
621
- const qe = require("@splunk/react-icons/ArrowDown");
622
- var Ae = e.n(qe);
623
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
624
- const Pe = require("@splunk/react-icons/ArrowUp");
625
- var _e = e.n(Pe);
626
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
627
- const ze = require("@splunk/react-icons/ArrowUpDown");
628
- var Me = e.n(ze);
629
- // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
630
- const $e = require("@splunk/react-icons/CaretSmallDown");
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
620
  // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
636
- const He = require("@splunk/react-ui/Divider");
637
- var Ke = e.n(He);
621
+ const qe = require("@splunk/react-ui/Divider");
622
+ var Ae = e.n(qe);
638
623
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
639
- var Be = (0, z.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
640
- var Ve = M().span.withConfig({
624
+ var Pe = (0, z.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
625
+ var _e = M().span.withConfig({
641
626
  displayName: "HeadInnerStyles__StyledIcon",
642
627
  componentId: "sc-1sa0wng-0"
643
- })([ "", " grid-column:icon;" ], Be);
644
- var Fe = M().span.withConfig({
628
+ })([ "", " grid-column:icon;" ], Pe);
629
+ var ze = M().span.withConfig({
645
630
  displayName: "HeadInnerStyles__StyledTooltipIcon",
646
631
  componentId: "sc-1sa0wng-1"
647
- })([ "", " grid-column:tooltip;" ], Be);
648
- var Ue = M().span.withConfig({
632
+ })([ "", " grid-column:tooltip;" ], Pe);
633
+ var Me = M().span.withConfig({
649
634
  displayName: "HeadInnerStyles__StyledLabel",
650
635
  componentId: "sc-1sa0wng-2"
651
636
  })([ "grid-column:label;grid-row:1 / -1;position:relative;word-wrap:break-word;word-break:break-word;height:100%;", " ", " ", "" ], (function(e) {
@@ -658,8 +643,8 @@
658
643
  left: (0, z.css)([ "& > &{text-align:left;}" ]),
659
644
  center: (0, z.css)([ "& > &{text-align:center;}" ])
660
645
  }));
661
- var Xe = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
662
- var Ye = M().div.withConfig({
646
+ var $e = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
647
+ var Ne = M().div.withConfig({
663
648
  displayName: "HeadInnerStyles__Styled",
664
649
  componentId: "sc-1sa0wng-3"
665
650
  })([ "", ";", ";", ";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", {
@@ -682,16 +667,66 @@
682
667
  actions: (0, z.css)([ "padding-block:2px;" ])
683
668
  }), (function(e) {
684
669
  var n = e.$clickable, t = e.$focusWithin;
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);
670
+ return n && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], $e, t && (0,
671
+ z.css)([ "&:focus-within{", "}" ], $e), $.variables.contentColorActive);
687
672
  }));
688
- var Ge = M()(Ke()).withConfig({
673
+ var We = M()(Ae()).withConfig({
689
674
  displayName: "HeadInnerStyles__StyledResize",
690
675
  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);
676
+ })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:1px;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 */ Ne, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
677
+ // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
678
+ var Le = M().div.withConfig({
679
+ displayName: "HeadCellStyles__StyledInnerWrapper",
680
+ componentId: "sc-1hj81sa-0"
681
+ })([ "display:flex;height:100%;align-items:flex-start;" ]);
682
+ var He = M().th.withConfig({
683
+ displayName: "HeadCellStyles__Styled",
684
+ componentId: "sc-1hj81sa-1"
685
+ })([ "", ";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) {
686
+ var n = e.$variant;
687
+ return n ? "middle" : "top";
688
+ }), We, /* sc-sel */ Le, $.variables.borderColorWeak, We, /* sc-sel */ Le, $.variables.borderColor, We, /* sc-sel */ Le, $.variables.focusShadowInset, (function(e) {
689
+ var n = e.$isDragging;
690
+ return n && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
691
+ }), (function(e) {
692
+ var n = e.$variant;
693
+ return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], Le, $.variables.borderColorWeak);
694
+ }), (0, $.pickVariant)("$variant", {
695
+ actions: (0, z.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, ve.buttonMixin)("subtle", {
696
+ color: $.variables.contentColorDefault
697
+ }), $.variables.focusShadowInset)
698
+ }));
699
+ var Ke = M().div.withConfig({
700
+ displayName: "HeadCellStyles__StyledIcon",
701
+ componentId: "sc-1hj81sa-2"
702
+ })([ "display:inline-flex;align-items:center;height:1lh;" ]);
703
+ // TODO(SUI-7400): Refactor the drag handler of re-order column
704
+ var Be = M().div.withConfig({
705
+ displayName: "HeadCellStyles__StyledDragHandler",
706
+ componentId: "sc-1hj81sa-3"
707
+ })([ "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,
708
+ $.pick)({
709
+ comfortable: "8px",
710
+ compact: "6px"
711
+ }), $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
712
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
713
+ const Ve = require("@splunk/react-icons/ArrowDown");
714
+ var Fe = e.n(Ve);
715
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
716
+ const Ue = require("@splunk/react-icons/ArrowUp");
717
+ var Xe = e.n(Ue);
718
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
719
+ const Ye = require("@splunk/react-icons/ArrowUpDown");
720
+ var Ge = e.n(Ye);
721
+ // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
722
+ const Je = require("@splunk/react-icons/CaretSmallDown");
723
+ var Qe = e.n(Je);
724
+ // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
725
+ const Ze = require("@splunk/react-icons/InformationCircle");
726
+ var en = e.n(Ze);
692
727
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
693
728
  /* eslint-disable @typescript-eslint/no-empty-function */
694
- var Je = {
729
+ var nn = {
695
730
  body: {
696
731
  appendChild: function e() {
697
732
  return [];
@@ -745,16 +780,16 @@
745
780
  search: ""
746
781
  }
747
782
  };
748
- function Qe() {
749
- var e = typeof document !== "undefined" ? document : Je;
783
+ function tn() {
784
+ var e = typeof document !== "undefined" ? document : nn;
750
785
  return e;
751
786
  }
752
- var Ze = Qe();
753
- /* harmony default export */ const en = /* unused pure expression or super */ null && Ze;
787
+ var rn = tn();
788
+ /* harmony default export */ const on = /* unused pure expression or super */ null && rn;
754
789
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
755
790
  /* eslint-disable @typescript-eslint/no-empty-function */
756
- var nn = {
757
- document: Je,
791
+ var an = {
792
+ document: nn,
758
793
  navigator: {
759
794
  userAgent: ""
760
795
  },
@@ -808,15 +843,15 @@
808
843
  clearTimeout(n);
809
844
  }
810
845
  };
811
- function tn() {
812
- var e = typeof window !== "undefined" ? window : nn;
846
+ function ln() {
847
+ var e = typeof window !== "undefined" ? window : an;
813
848
  return e;
814
849
  }
815
- var rn = tn();
816
- /* harmony default export */ const on = /* unused pure expression or super */ null && rn;
850
+ var un = ln();
851
+ /* harmony default export */ const sn = /* unused pure expression or super */ null && un;
817
852
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
818
- function an() {
819
- return an = Object.assign ? Object.assign.bind() : function(e) {
853
+ function cn() {
854
+ return cn = Object.assign ? Object.assign.bind() : function(e) {
820
855
  for (var n = 1; n < arguments.length; n++) {
821
856
  var t = arguments[n];
822
857
  for (var r in t) {
@@ -824,41 +859,41 @@
824
859
  }
825
860
  }
826
861
  return e;
827
- }, an.apply(null, arguments);
862
+ }, cn.apply(null, arguments);
828
863
  }
829
- function ln(e) {
830
- return cn(e) || sn(e) || vn(e) || un();
864
+ function dn(e) {
865
+ return pn(e) || vn(e) || hn(e) || fn();
831
866
  }
832
- function un() {
867
+ function fn() {
833
868
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
834
869
  }
835
- function sn(e) {
870
+ function vn(e) {
836
871
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
837
872
  }
838
- function cn(e) {
839
- if (Array.isArray(e)) return pn(e);
873
+ function pn(e) {
874
+ if (Array.isArray(e)) return yn(e);
840
875
  }
841
- function dn(e, n) {
842
- return bn(e) || mn(e, n) || vn(e, n) || fn();
876
+ function mn(e, n) {
877
+ return wn(e) || gn(e, n) || hn(e, n) || bn();
843
878
  }
844
- function fn() {
879
+ function bn() {
845
880
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
846
881
  }
847
- function vn(e, n) {
882
+ function hn(e, n) {
848
883
  if (e) {
849
- if ("string" == typeof e) return pn(e, n);
884
+ if ("string" == typeof e) return yn(e, n);
850
885
  var t = {}.toString.call(e).slice(8, -1);
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;
886
+ 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) ? yn(e, n) : void 0;
852
887
  }
853
888
  }
854
- function pn(e, n) {
889
+ function yn(e, n) {
855
890
  (null == n || n > e.length) && (n = e.length);
856
891
  for (var t = 0, r = Array(n); t < n; t++) {
857
892
  r[t] = e[t];
858
893
  }
859
894
  return r;
860
895
  }
861
- function mn(e, n) {
896
+ function gn(e, n) {
862
897
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
863
898
  if (null != t) {
864
899
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -880,12 +915,12 @@
880
915
  return l;
881
916
  }
882
917
  }
883
- function bn(e) {
918
+ function wn(e) {
884
919
  if (Array.isArray(e)) return e;
885
920
  }
886
- function hn(e, n) {
921
+ function Cn(e, n) {
887
922
  if (null == e) return {};
888
- var t, r, o = yn(e, n);
923
+ var t, r, o = xn(e, n);
889
924
  if (Object.getOwnPropertySymbols) {
890
925
  var i = Object.getOwnPropertySymbols(e);
891
926
  for (r = 0; r < i.length; r++) {
@@ -894,7 +929,7 @@
894
929
  }
895
930
  return o;
896
931
  }
897
- function yn(e, n) {
932
+ function xn(e, n) {
898
933
  if (null == e) return {};
899
934
  var t = {};
900
935
  for (var r in e) {
@@ -905,235 +940,197 @@
905
940
  }
906
941
  return t;
907
942
  }
908
- var gn = {
909
- align: i().oneOf([ "left", "center", "right" ]),
910
- clickable: i().bool,
911
- columnId: i().string,
912
- elementRef: i().oneOfType([ i().func, i().object ]),
913
- focusWithin: i().bool,
914
- hasTooltip: i().bool,
915
- id: i().string,
916
- index: i().number,
917
- isMenu: i().bool,
918
- label: i().node,
919
- onAutosizeColumn: i().func,
920
- onRequestResize: i().func,
921
- resizable: i().bool,
922
- sortDir: i().oneOf([ "none", "asc", "desc" ]),
923
- truncate: i().bool,
924
- width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ]),
925
- variant: i().oneOf([ "toggleAll", "info", "actions" ])
943
+ var Sn = {
944
+ align: C().oneOf([ "left", "center", "right" ]),
945
+ cellId: C().string,
946
+ clickable: C().bool,
947
+ columnId: C().string,
948
+ elementRef: C().oneOfType([ C().func, C().object ]),
949
+ focusWithin: C().bool,
950
+ hasTooltip: C().bool,
951
+ index: C().number,
952
+ isMenu: C().bool,
953
+ label: C().node,
954
+ onAutosizeColumn: C().func,
955
+ onRequestResize: C().func,
956
+ resizable: C().bool,
957
+ sortDir: C().oneOf([ "none", "asc", "desc" ]),
958
+ truncate: C().bool,
959
+ width: C().oneOfType([ C().number, C().oneOf([ "auto" ]) ]),
960
+ variant: C().oneOf([ "toggleAll", "info", "actions" ])
926
961
  };
927
- var wn = new Set([ "none", "asc", "desc" ]);
928
- var Cn = Object.freeze({
962
+ var kn = new Set([ "none", "asc", "desc" ]);
963
+ var On = Object.freeze({
929
964
  none: (0, j._)("Click to sort"),
930
965
  asc: (0, j._)("Press to sort descending"),
931
966
  desc: (0, j._)("Press to sort ascending")
932
967
  });
933
- var xn = Object.freeze({
934
- none: Me(),
935
- asc: _e(),
936
- desc: Ae()
968
+ var Rn = Object.freeze({
969
+ none: Ge(),
970
+ asc: Xe(),
971
+ desc: Fe()
937
972
  });
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" ]);
940
- if (false) {}
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);
973
+ function En(e) {
974
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.cellId, l = e.columnId, u = e.elementRef, s = e.focusWithin, c = e.hasTooltip, d = e.index, f = e.isMenu, v = e.label, p = e.onAutosizeColumn, m = e.onRequestResize, b = e.resizable, y = b === void 0 ? true : b, g = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, x = e.variant, k = e.width, O = Cn(e, [ "align", "clickable", "cellId", "columnId", "elementRef", "focusWithin", "hasTooltip", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
975
+ var R = (0, j._)("Click to open menu");
976
+ var E = (0, t.useState)(false), I = mn(E, 2), D = I[0], q = I[1];
977
+ var A = (0, t.useState)(0), P = mn(A, 2), _ = P[0], z = P[1];
978
+ var M = (0, t.useState)(0), $ = mn(M, 2), N = $[0], L = $[1];
979
+ var H = (0, t.useRef)(null);
980
+ var K = (0, t.useRef)(k === "auto" ? undefined : k);
981
+ var B;
947
982
  var V;
948
- var F;
949
- if (w !== undefined && wn.has(w)) {
950
- V = xn[w];
951
- F = Cn[w];
983
+ if (g !== undefined && kn.has(g)) {
984
+ B = Rn[g];
985
+ V = On[g];
952
986
  }
953
- if (O === "auto") {
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;
987
+ if (k === "auto") {
988
+ var F;
989
+ var U = H.current;
990
+ var X = U === null || U === void 0 ? void 0 : (F = U.parentElement) === null || F === void 0 ? void 0 : F.getBoundingClientRect();
991
+ K.current = X === null || X === void 0 ? void 0 : X.width;
958
992
  } else {
959
- B.current = O;
993
+ K.current = k;
960
994
  }
995
+ var Y = (0, t.useCallback)((function(e) {
996
+ H.current = e;
997
+ W(u, e);
998
+ }), [ u, H ]);
961
999
  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) {
966
1000
  var n = e.key;
967
- if (b === undefined || d === undefined) {
1001
+ if (m === undefined || d === undefined) {
968
1002
  return;
969
1003
  }
970
- if (O === "auto") {
1004
+ if (k === "auto") {
971
1005
  var t;
972
- var r = K.current;
1006
+ var r = H.current;
973
1007
  var o = r === null || r === void 0 ? void 0 : (t = r.parentElement) === null || t === void 0 ? void 0 : t.getBoundingClientRect();
974
- B.current = o === null || o === void 0 ? void 0 : o.width;
1008
+ K.current = o === null || o === void 0 ? void 0 : o.width;
975
1009
  } else {
976
- B.current = O;
1010
+ K.current = k;
977
1011
  }
978
- if (B.current === undefined) {
1012
+ if (K.current === undefined) {
979
1013
  return;
980
1014
  }
981
1015
  if (n === "ArrowLeft") {
982
1016
  e.preventDefault();
983
1017
  // prevent text selection
984
- var i = Math.max(B.current - 10, 20);
985
- b(e, {
1018
+ var i = Math.max(K.current - 10, 20);
1019
+ m(e, {
986
1020
  index: d,
987
- columnId: a,
988
- id: c,
1021
+ columnId: l,
1022
+ id: a,
989
1023
  width: i
990
1024
  });
991
1025
  }
992
1026
  if (n === "ArrowRight") {
993
1027
  e.preventDefault();
994
1028
  // prevent text selection
995
- var l = B.current + 10;
996
- b(e, {
1029
+ var u = K.current + 10;
1030
+ m(e, {
997
1031
  index: d,
998
- columnId: a,
999
- id: c,
1000
- width: l
1032
+ columnId: l,
1033
+ id: a,
1034
+ width: u
1001
1035
  });
1002
1036
  }
1003
1037
  if (n === "Enter") {
1004
1038
  e.preventDefault();
1005
1039
  // SUI-7320: prevent sorting and dropdown opening
1006
1040
  }
1007
- }), [ a, c, d, b, O ]);
1008
- var Q = (0, t.useCallback)((function(e) {
1009
- if (O === "auto") {
1041
+ }), [ l, a, d, m, k ]);
1042
+ var J = (0, t.useCallback)((function(e) {
1043
+ if (k === "auto") {
1010
1044
  var n;
1011
- var t = K.current;
1045
+ var t = H.current;
1012
1046
  var r = t === null || t === void 0 ? void 0 : (n = t.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
1013
- B.current = r === null || r === void 0 ? void 0 : r.width;
1047
+ K.current = r === null || r === void 0 ? void 0 : r.width;
1014
1048
  } else {
1015
- B.current = O;
1049
+ K.current = k;
1016
1050
  }
1017
- if (B.current === undefined) {
1051
+ if (K.current === undefined) {
1018
1052
  return;
1019
1053
  }
1020
1054
  e.preventDefault();
1021
1055
  // prevent text selection
1022
- M(e.clientX);
1023
- H(B.current || 0);
1024
- A(true);
1025
- }), [ O ]);
1026
- var Z = function e(n) {
1027
- var t = z - n.clientX;
1028
- var r = Math.max(L - t, 16);
1056
+ z(e.clientX);
1057
+ L(K.current || 0);
1058
+ q(true);
1059
+ }), [ k ]);
1060
+ var Q = function e(n) {
1061
+ var t = _ - n.clientX;
1062
+ var r = Math.max(N - t, 16);
1029
1063
  if (d !== undefined) {
1030
- b === null || b === void 0 ? void 0 : b(n, {
1064
+ m === null || m === void 0 ? void 0 : m(n, {
1031
1065
  index: d,
1032
- columnId: a,
1033
- id: c,
1066
+ columnId: l,
1067
+ id: a,
1034
1068
  width: r
1035
1069
  });
1036
1070
  }
1037
1071
  };
1038
- var ee = function e() {
1039
- A(false);
1072
+ var Z = function e() {
1073
+ q(false);
1040
1074
  };
1041
- var ne = (0, t.useCallback)((function(e) {
1075
+ var ee = (0, t.useCallback)((function(e) {
1042
1076
  if (d !== undefined) {
1043
- m === null || m === void 0 ? void 0 : m(e, {
1077
+ p === null || p === void 0 ? void 0 : p(e, {
1044
1078
  index: d,
1045
- columnId: a
1079
+ columnId: l,
1080
+ id: a
1046
1081
  });
1047
1082
  }
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
1083
+ }), [ a, l, d, p ]);
1084
+ var ne = ln();
1085
+ var te = K.current ? (0, T.sprintf)((0, j._)("%(width)d pixels"), {
1086
+ width: K.current
1052
1087
  }) : undefined;
1053
- var oe = a ? {
1054
- ariaControls: a
1055
- } : {};
1056
1088
 
1057
- return r().createElement(Ye, an({
1089
+ return r().createElement(Ne, cn({
1058
1090
  as: i ? "button" : "div",
1059
- ref: G,
1091
+ ref: Y,
1060
1092
  $align: o,
1061
1093
  $clickable: i,
1062
- $focusWithin: u,
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,
1094
+ $focusWithin: s,
1095
+ $hasIcon: !!f || !!g,
1096
+ $hasTooltip: !!c,
1097
+ $variant: x
1098
+ }, h()(O, [].concat(dn(Object.keys(En.propTypes)), [ "id" ]))), D && r().createElement(r().Fragment, null, r().createElement(S(), {
1099
+ target: ne,
1068
1100
  eventType: "mouseup",
1069
- listener: ee
1101
+ listener: Z
1070
1102
  }), r().createElement(S(), {
1071
- target: te,
1103
+ target: ne,
1072
1104
  eventType: "mousemove",
1073
- listener: Z
1074
- })), b && y && r().createElement(Ge, an({
1075
- "aria-label": (0, D.sprintf)((0, j._)("Resize %(label)s"), {
1076
- label: p
1077
- })
1078
- }, oe, {
1079
- "aria-valuetext": re,
1105
+ listener: Q
1106
+ })), m && y && r().createElement(We, {
1107
+ "aria-label": (0, T.sprintf)((0, j._)("Resize %(label)s"), {
1108
+ label: v
1109
+ }),
1110
+ "aria-controls": a,
1111
+ "aria-valuetext": te,
1080
1112
  "data-test": "resize",
1081
- onMouseDown: Q,
1082
- onDoubleClick: ne,
1083
- onKeyDown: J,
1113
+ onMouseDown: J,
1114
+ onDoubleClick: ee,
1115
+ onKeyDown: G,
1084
1116
  orientation: "vertical",
1085
1117
  tabIndex: 0
1086
- })), r().createElement(Ue, {
1118
+ }), r().createElement(Me, {
1087
1119
  $align: o,
1088
- $truncate: x,
1089
- $variant: k
1090
- }, p), s && r().createElement(Fe, null, r().createElement(Le(), {
1120
+ $truncate: C,
1121
+ $variant: x
1122
+ }, v), c && r().createElement(ze, null, r().createElement(en(), {
1091
1123
  "data-test": "tooltip-icon"
1092
- })), v && r().createElement(Ve, null, r().createElement(Ne(), {
1124
+ })), f && r().createElement(_e, null, r().createElement(Qe(), {
1093
1125
  "data-test": "caret-down",
1094
- "aria-label": E
1095
- })), w && r().createElement(Ve, null, V !== undefined && r().createElement(V, {
1126
+ "aria-label": R
1127
+ })), g && r().createElement(_e, null, B !== undefined && r().createElement(B, {
1096
1128
  "aria-hidden": false,
1097
- "aria-label": F
1129
+ "aria-label": V
1098
1130
  })));
1099
1131
  }
1100
- Sn.propTypes = gn;
1101
- /* harmony default export */ const kn = Sn;
1102
- // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
1103
- var On = M().div.withConfig({
1104
- displayName: "HeadCellStyles__StyledInnerWrapper",
1105
- componentId: "sc-1hj81sa-0"
1106
- })([ "display:flex;height:100%;align-items:flex-start;" ]);
1107
- var Rn = M().th.withConfig({
1108
- displayName: "HeadCellStyles__Styled",
1109
- componentId: "sc-1hj81sa-1"
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) {
1111
- var n = e.$variant;
1112
- return n ? "middle" : "top";
1113
- }), Ge, /* sc-sel */ On, $.variables.borderColorWeak, Ge, /* sc-sel */ On, $.variables.borderColor, Ge, /* sc-sel */ On, $.variables.focusShadowInset, (function(e) {
1114
- var n = e.$isDragging;
1115
- return n && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
1116
- }), (function(e) {
1117
- var n = e.$variant;
1118
- return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], On, $.variables.borderColorWeak);
1119
- }), (0, $.pickVariant)("$variant", {
1120
- actions: (0, z.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, ve.buttonMixin)("subtle", {
1121
- color: $.variables.contentColorDefault
1122
- }), $.variables.focusShadowInset)
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;" ]);
1128
- // TODO(SUI-7400): Refactor the drag handler of re-order column
1129
- var In = M().div.withConfig({
1130
- displayName: "HeadCellStyles__StyledDragHandler",
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);
1132
+ En.propTypes = Sn;
1133
+ /* harmony default export */ const In = En;
1137
1134
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1138
1135
  function Tn() {
1139
1136
  return Tn = Object.assign ? Object.assign.bind() : function(e) {
@@ -1170,44 +1167,44 @@
1170
1167
  }
1171
1168
  /** @public */
1172
1169
  /** @public */ var qn = {
1173
- align: i().oneOf([ "left", "center", "right" ]),
1170
+ align: C().oneOf([ "left", "center", "right" ]),
1174
1171
  /** @private Used to set the $clickable appearance without an onClick */
1175
- appearClickable: i().bool,
1176
- children: i().node,
1177
- columnId: i().string,
1172
+ appearClickable: C().bool,
1173
+ children: C().node,
1174
+ columnId: C().string,
1178
1175
  /** @private. */
1179
- dragId: i().oneOfType([ i().string, i().number ]),
1180
- elementRef: i().oneOfType([ i().func, i().object ]),
1181
- headCellScreenReaderText: i().string,
1176
+ dragId: C().oneOfType([ C().string, C().number ]),
1177
+ elementRef: C().oneOfType([ C().func, C().object ]),
1178
+ headCellScreenReaderText: C().string,
1182
1179
  /** @private The index of the cell, skipping the info column. */
1183
- index: i().number,
1180
+ index: C().number,
1184
1181
  /** @private. */
1185
- onAutosizeColumn: i().func,
1182
+ onAutosizeColumn: C().func,
1186
1183
  /** @private. */
1187
- onClick: i().func,
1184
+ onClick: C().func,
1188
1185
  /**
1189
1186
  * @private. Passed through and works as expected.
1190
1187
  */
1191
- onKeyDown: i().func,
1188
+ onKeyDown: C().func,
1192
1189
  /** @private. */
1193
- onRequestMoveColumn: i().func,
1190
+ onRequestMoveColumn: C().func,
1194
1191
  /** @private. */
1195
- onRequestResize: i().func,
1196
- onSort: i().func,
1197
- resizable: i().bool,
1198
- sortDir: i().oneOf([ "asc", "desc", "none" ]),
1199
- sortKey: i().string,
1200
- tooltip: i().node,
1201
- truncate: i().bool,
1192
+ onRequestResize: C().func,
1193
+ onSort: C().func,
1194
+ resizable: C().bool,
1195
+ sortDir: C().oneOf([ "asc", "desc", "none" ]),
1196
+ sortKey: C().string,
1197
+ tooltip: C().node,
1198
+ truncate: C().bool,
1202
1199
  /** @private. */
1203
- variant: i().oneOf([ "toggleAll", "info", "actions" ]),
1200
+ variant: C().oneOf([ "toggleAll", "info", "actions" ]),
1204
1201
  /**
1205
1202
  * Used internally to suppress focus and id when this `HeadCell` is superseded by one in an
1206
1203
  * overlaid `HeadTable` for user interactions.
1207
1204
  * @private
1208
1205
  */
1209
- visible: i().bool,
1210
- width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ])
1206
+ visible: C().bool,
1207
+ width: C().oneOfType([ C().number, C().oneOf([ "auto" ]) ])
1211
1208
  };
1212
1209
  var An = {
1213
1210
  asc: "ascending",
@@ -1215,126 +1212,149 @@
1215
1212
  none: "none"
1216
1213
  };
1217
1214
  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" ]);
1215
+ var n;
1216
+ var o = e.align, i = o === void 0 ? "left" : o, l = e.appearClickable, u = e.children, s = e.columnId, c = e.elementRef, d = e.dragId, f = e.headCellScreenReaderText, v = e.id, p = e.index, m = e.onAutosizeColumn, b = e.onClick, h = e.onKeyDown, y = e.onRequestMoveColumn, g = e.onRequestResize, w = e.onSort, C = e.resizable, x = C === void 0 ? true : C, S = e.sortDir, k = S === void 0 ? "none" : S, O = e.sortKey, R = e.style, E = e.tooltip, I = e.truncate, q = I === void 0 ? true : I, A = e.variant, P = e.visible, _ = P === void 0 ? true : P, z = e.width, M = 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" ]);
1219
1217
  // @docs-props-type HeadCellPropsBase
1220
- var z = !!h;
1221
- var M = (0, l.useSortable)({
1218
+ var $ = !!y;
1219
+ var N = (0, a.useSortable)({
1222
1220
  // dragId is optional in HeadCell but required by useSortable
1223
1221
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
1224
- id: c
1225
- }), $ = M.attributes, N = M.isDragging, L = M.listeners, H = M.setNodeRef;
1226
- var K = (0, t.useCallback)((function(e) {
1227
- W(s, e);
1228
- if (z) {
1229
- H(e);
1222
+ id: d
1223
+ }), L = N.attributes, H = N.isDragging, K = N.listeners, B = N.setNodeRef;
1224
+ var V = (0, t.useCallback)((function(e) {
1225
+ W(c, e);
1226
+ if ($) {
1227
+ B(e);
1230
1228
  }
1231
- }), [ z, s, H ]);
1232
- var B = (0, t.useCallback)((function(e) {
1229
+ }), [ $, c, B ]);
1230
+ var F = (0, t.useCallback)((function(e) {
1233
1231
  // ignore clicks on the resize handle
1234
- if (e.target.getAttribute("data-test") !== "resize" && g && v !== undefined) {
1235
- g(e, {
1236
- sortKey: k,
1237
- sortDir: S,
1238
- id: f,
1239
- columnId: u,
1240
- index: v
1232
+ if (e.target.getAttribute("data-test") !== "resize" && w && p !== undefined) {
1233
+ w(e, {
1234
+ sortKey: O,
1235
+ sortDir: k,
1236
+ id: v,
1237
+ columnId: s,
1238
+ index: p
1241
1239
  });
1242
1240
  }
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) {
1246
- if (v !== undefined) {
1247
- b === null || b === void 0 ? void 0 : b(e, {
1248
- index: v,
1249
- columnId: u
1241
+ b === null || b === void 0 ? void 0 : b();
1242
+ }), [ s, v, p, b, w, k, O ]);
1243
+ var U = (0, t.useCallback)((function(e) {
1244
+ if (p !== undefined) {
1245
+ h === null || h === void 0 ? void 0 : h(e, {
1246
+ index: p,
1247
+ columnId: s
1250
1248
  });
1251
1249
  }
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
1250
+ }), [ s, p, h ]);
1251
+ var X = !!w && !!k;
1252
+ var Y = b !== undefined;
1253
+ var G = A === "actions" ? false : q;
1254
+ var J = (0, t.useMemo)((function() {
1255
+ return Ee()({}, R, {
1256
+ width: z
1259
1257
  });
1260
- }), [ O, P ]);
1261
- var G;
1262
- if (d) {
1263
- G = d;
1264
- } else if (Oe()(a)) {
1265
- G = a;
1258
+ }), [ R, z ]);
1259
+ var Q;
1260
+ if (f) {
1261
+ Q = f;
1262
+ } else if (Oe()(u)) {
1263
+ Q = u;
1266
1264
  }
1267
- var J = (0, t.useMemo)((function() {
1265
+ var Z = (n = v !== null && v !== void 0 ? v : s) !== null && n !== void 0 ? n : (0,
1266
+ D.createDOMID)("headCellId-");
1267
+ var ee = (0, t.useMemo)((function() {
1268
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
1269
+ align: i,
1270
+ clickable: l || X || Y,
1271
+ columnId: s,
1272
+ focusWithin: l,
1273
+ label: u,
1274
+ cellId: Z,
1275
+ index: p,
1276
+ onAutosizeColumn: m,
1277
+ onClick: w || Y ? F : undefined,
1278
+ onKeyDown: w || Y ? U : undefined,
1279
+ onRequestResize: g,
1280
+ resizable: _ && x,
1281
+ sortDir: w && k,
1282
+ truncate: G,
1283
+ variant: A,
1284
+ width: z
1285
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) {
1286
+ }), [ i, l, X, Y, s, u, Z, p, m, w, F, U, g, _, x, k, G, A, z ]);
1287
+ var ne = (0, t.useCallback)((function(e) {
1288
1288
 
1289
- return r().createElement(kn, Tn({}, e, J, {
1289
+ return r().createElement(In, Tn({}, e, ee, {
1290
1290
  hasTooltip: true
1291
1291
  }));
1292
- }), [ J ]);
1292
+ }), [ ee ]);
1293
1293
 
1294
- return r().createElement(Rn, Tn({
1295
- style: Y,
1296
- ref: K,
1297
- "aria-sort": g && (An[S] || "none"),
1294
+ return r().createElement(He, Tn({
1295
+ style: J,
1296
+ ref: V,
1297
+ "aria-sort": w && (An[k] || "none"),
1298
1298
  "data-test": "head-cell",
1299
- "data-test-label": Oe()(a) ? a : undefined,
1300
- "data-test-sort-dir": g && S,
1301
- id: A ? f : undefined,
1302
- $isDragging: z && N,
1303
- $variant: T
1304
- }, _), r().createElement(On, null, z && r().createElement(In, Tn({
1305
- "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
1306
- labelString: G
1299
+ "data-test-label": Oe()(u) ? u : undefined,
1300
+ "data-test-sort-dir": w && k,
1301
+ id: _ ? Z : undefined,
1302
+ $isDragging: $ && H,
1303
+ $variant: A
1304
+ }, M), r().createElement(Le, null, $ && r().createElement(Be, Tn({
1305
+ "aria-label": (0, T.sprintf)((0, j._)("Reorder %(labelString)s"), {
1306
+ labelString: Q
1307
1307
  }),
1308
1308
  "data-test": "drag",
1309
1309
  draggable: true
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)));
1310
+ }, L, K), r().createElement(Ke, null, r().createElement(Te(), null))), E ? r().createElement(De(), {
1311
+ content: E,
1312
+ renderAnchor: ne
1313
+ }) : r().createElement(In, ee)));
1314
1314
  }
1315
1315
  Pn.propTypes = qn;
1316
1316
  Pn.splunkUiType = "Table.HeadCell";
1317
1317
  /* harmony default export */ const _n = Pn;
1318
+ // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1319
+ var zn = M().thead.withConfig({
1320
+ displayName: "HeadStyles__Styled",
1321
+ componentId: "iap21t-0"
1322
+ })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1323
+ var n = e.$isFixed, t = e.$zIndex;
1324
+ return n && (0, z.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1325
+ }));
1326
+ var Mn = M()(_n).withConfig({
1327
+ displayName: "HeadStyles__StyledToggleAll",
1328
+ componentId: "iap21t-1"
1329
+ })([ "width:32px;" ]);
1330
+ var $n = M()(_n).withConfig({
1331
+ displayName: "HeadStyles__StyledInfo",
1332
+ componentId: "iap21t-2"
1333
+ })([ "width:32px;" ]);
1334
+ var Nn = M()(_n).withConfig({
1335
+ displayName: "HeadStyles__StyledDragRow",
1336
+ componentId: "iap21t-3"
1337
+ })([ "width:32px;" ]);
1318
1338
  // CONCATENATED MODULE: external "@dnd-kit/utilities"
1319
- const zn = require("@dnd-kit/utilities");
1339
+ const Wn = require("@dnd-kit/utilities");
1320
1340
  // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
1321
- const Mn = require("@splunk/react-icons/DotsThreeVertical");
1322
- var $n = e.n(Mn);
1341
+ const Ln = require("@splunk/react-icons/DotsThreeVertical");
1342
+ var Hn = e.n(Ln);
1323
1343
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1324
- const Nn = require("@splunk/react-ui/Button");
1325
- var Wn = e.n(Nn);
1344
+ const Kn = require("@splunk/react-ui/Button");
1345
+ var Bn = e.n(Kn);
1326
1346
  // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1327
- const Ln = require("@splunk/react-ui/Dropdown");
1328
- var Hn = e.n(Ln);
1347
+ const Vn = require("@splunk/react-ui/Dropdown");
1348
+ var Fn = e.n(Vn);
1329
1349
  // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1330
- const Kn = require("@splunk/react-icons/ChevronRight");
1331
- var Bn = e.n(Kn);
1350
+ const Un = require("@splunk/react-icons/ChevronRight");
1351
+ var Xn = e.n(Un);
1332
1352
  // CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
1333
- var Vn = M().button.withConfig({
1353
+ var Yn = M().button.withConfig({
1334
1354
  displayName: "ExpandButtonStyles__StyledButton",
1335
1355
  componentId: "sc-7nlw5q-0"
1336
1356
  })([ "", ";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({
1357
+ var Gn = M()(Xn()).withConfig({
1338
1358
  displayName: "ExpandButtonStyles__StyledChevron",
1339
1359
  componentId: "sc-7nlw5q-1"
1340
1360
  })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, $.pick)({
@@ -1345,8 +1365,8 @@
1345
1365
  return n && (0, z.css)([ "transform:rotate(90deg);" ]);
1346
1366
  }));
1347
1367
  // CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
1348
- function Un() {
1349
- return Un = Object.assign ? Object.assign.bind() : function(e) {
1368
+ function Jn() {
1369
+ return Jn = Object.assign ? Object.assign.bind() : function(e) {
1350
1370
  for (var n = 1; n < arguments.length; n++) {
1351
1371
  var t = arguments[n];
1352
1372
  for (var r in t) {
@@ -1354,11 +1374,11 @@
1354
1374
  }
1355
1375
  }
1356
1376
  return e;
1357
- }, Un.apply(null, arguments);
1377
+ }, Jn.apply(null, arguments);
1358
1378
  }
1359
- function Xn(e, n) {
1379
+ function Qn(e, n) {
1360
1380
  if (null == e) return {};
1361
- var t, r, o = Yn(e, n);
1381
+ var t, r, o = Zn(e, n);
1362
1382
  if (Object.getOwnPropertySymbols) {
1363
1383
  var i = Object.getOwnPropertySymbols(e);
1364
1384
  for (r = 0; r < i.length; r++) {
@@ -1367,7 +1387,7 @@
1367
1387
  }
1368
1388
  return o;
1369
1389
  }
1370
- function Yn(e, n) {
1390
+ function Zn(e, n) {
1371
1391
  if (null == e) return {};
1372
1392
  var t = {};
1373
1393
  for (var r in e) {
@@ -1378,32 +1398,32 @@
1378
1398
  }
1379
1399
  return t;
1380
1400
  }
1381
- var Gn = {
1382
- expanded: i().bool
1401
+ var et = {
1402
+ expanded: C().bool
1383
1403
  };
1384
- var Jn = function e(n) {
1385
- var t = n.expanded, o = Xn(n, [ "expanded" ]);
1404
+ var nt = function e(n) {
1405
+ var t = n.expanded, o = Qn(n, [ "expanded" ]);
1386
1406
 
1387
- return r().createElement(Vn, Un({
1407
+ return r().createElement(Yn, Jn({
1388
1408
  title: t ? (0, j._)("Collapse row") : (0, j._)("Expand row")
1389
- }, o), r().createElement(Fn, {
1409
+ }, o), r().createElement(Gn, {
1390
1410
  $expanded: t
1391
1411
  }));
1392
1412
  };
1393
- Jn.propTypes = Gn;
1394
- /* harmony default export */ const Qn = Jn;
1413
+ nt.propTypes = et;
1414
+ /* harmony default export */ const tt = nt;
1395
1415
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
1396
- var Zn = M().td.withConfig({
1416
+ var rt = M().td.withConfig({
1397
1417
  displayName: "RowDragCellStyles__StyledCell",
1398
1418
  componentId: "sc-9kbaj2-0"
1399
1419
  })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], $.mixins.reset("table-cell"));
1400
- var et = M().div.withConfig({
1420
+ var ot = M().div.withConfig({
1401
1421
  displayName: "RowDragCellStyles__StyledDrag",
1402
1422
  componentId: "sc-9kbaj2-1"
1403
1423
  })([ "", " ", ";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);
1404
1424
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
1405
- function nt() {
1406
- return nt = Object.assign ? Object.assign.bind() : function(e) {
1425
+ function it() {
1426
+ return it = Object.assign ? Object.assign.bind() : function(e) {
1407
1427
  for (var n = 1; n < arguments.length; n++) {
1408
1428
  var t = arguments[n];
1409
1429
  for (var r in t) {
@@ -1411,11 +1431,11 @@
1411
1431
  }
1412
1432
  }
1413
1433
  return e;
1414
- }, nt.apply(null, arguments);
1434
+ }, it.apply(null, arguments);
1415
1435
  }
1416
- function tt(e, n) {
1436
+ function at(e, n) {
1417
1437
  if (null == e) return {};
1418
- var t, r, o = rt(e, n);
1438
+ var t, r, o = lt(e, n);
1419
1439
  if (Object.getOwnPropertySymbols) {
1420
1440
  var i = Object.getOwnPropertySymbols(e);
1421
1441
  for (r = 0; r < i.length; r++) {
@@ -1424,7 +1444,7 @@
1424
1444
  }
1425
1445
  return o;
1426
1446
  }
1427
- function rt(e, n) {
1447
+ function lt(e, n) {
1428
1448
  if (null == e) return {};
1429
1449
  var t = {};
1430
1450
  for (var r in e) {
@@ -1435,26 +1455,26 @@
1435
1455
  }
1436
1456
  return t;
1437
1457
  }
1438
- var ot = {
1439
- setActivatorNodeRef: i().func.isRequired,
1440
- listeners: i().objectOf(i().func)
1458
+ var ut = {
1459
+ setActivatorNodeRef: C().func.isRequired,
1460
+ listeners: C().objectOf(C().func)
1441
1461
  };
1442
- function it(e) {
1443
- var n = e.listeners, t = e.setActivatorNodeRef, o = tt(e, [ "listeners", "setActivatorNodeRef" ]);
1462
+ function st(e) {
1463
+ var n = e.listeners, t = e.setActivatorNodeRef, o = at(e, [ "listeners", "setActivatorNodeRef" ]);
1444
1464
 
1445
- return r().createElement(Zn, {
1465
+ return r().createElement(rt, {
1446
1466
  "data-helper": true
1447
- }, r().createElement(et, nt({
1467
+ }, r().createElement(ot, it({
1448
1468
  "data-test": "drag",
1449
1469
  draggable: true,
1450
1470
  ref: t,
1451
1471
  tabIndex: 0
1452
1472
  }, n, o), r().createElement(Te(), null)));
1453
1473
  }
1454
- it.propTypes = ot;
1455
- /* harmony default export */ const at = it;
1474
+ st.propTypes = ut;
1475
+ /* harmony default export */ const ct = st;
1456
1476
  // CONCATENATED MODULE: ./src/Table/RowStyles.ts
1457
- var lt = M().tr.withConfig({
1477
+ var dt = M().tr.withConfig({
1458
1478
  displayName: "RowStyles__StyledStripeNone",
1459
1479
  componentId: "f0igqq-0"
1460
1480
  })([ "", ";", ";", " @media print{background-color:none;}" ], $.mixins.reset("table-row"), (function(e) {
@@ -1464,7 +1484,7 @@
1464
1484
  var n = e.disabled, t = e.$expandable, r = e.$isDraggable;
1465
1485
  return !n && !t && r && (0, z.css)([ "&:hover{background-color:", ";}" ], $.variables.interactiveColorOverlayHover);
1466
1486
  }));
1467
- var ut = M()(lt).withConfig({
1487
+ var ft = M()(dt).withConfig({
1468
1488
  displayName: "RowStyles__StyledStripeEven",
1469
1489
  componentId: "f0igqq-1"
1470
1490
  })([ "background-color:", ";", ";" ], $.variables.neutral50, (function(e) {
@@ -1472,17 +1492,17 @@
1472
1492
  return n && (0, z.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], $.variables.neutral300);
1473
1493
  }));
1474
1494
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1475
- const st = require("@splunk/react-ui/Clickable");
1476
- var ct = e.n(st);
1495
+ const vt = require("@splunk/react-ui/Clickable");
1496
+ var pt = e.n(vt);
1477
1497
  // CONCATENATED MODULE: external "@splunk/react-ui/NonInteractiveCheckbox"
1478
- const dt = require("@splunk/react-ui/NonInteractiveCheckbox");
1479
- var ft = e.n(dt);
1498
+ const mt = require("@splunk/react-ui/NonInteractiveCheckbox");
1499
+ var bt = e.n(mt);
1480
1500
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
1481
- var vt = M()(ct()).withConfig({
1501
+ var ht = M()(pt()).withConfig({
1482
1502
  displayName: "ToggleStyles__StyledClickable",
1483
1503
  componentId: "sc-1x3ikch-0"
1484
1504
  })([ "height:100%;width:100%;display:flex;justify-content:center;&[disabled]{cursor:not-allowed;}" ]);
1485
- var pt = M()(ft()).withConfig({
1505
+ var yt = M()(bt()).withConfig({
1486
1506
  displayName: "ToggleStyles__StyledNonInteractiveCheckbox",
1487
1507
  componentId: "sc-1x3ikch-1"
1488
1508
  })([ "align-items:flex-start;padding-block:", ";" ], (0, $.pick)({
@@ -1490,8 +1510,8 @@
1490
1510
  compact: "6px"
1491
1511
  }));
1492
1512
  // CONCATENATED MODULE: ./src/Table/Toggle.tsx
1493
- function mt() {
1494
- return mt = Object.assign ? Object.assign.bind() : function(e) {
1513
+ function gt() {
1514
+ return gt = Object.assign ? Object.assign.bind() : function(e) {
1495
1515
  for (var n = 1; n < arguments.length; n++) {
1496
1516
  var t = arguments[n];
1497
1517
  for (var r in t) {
@@ -1499,11 +1519,11 @@
1499
1519
  }
1500
1520
  }
1501
1521
  return e;
1502
- }, mt.apply(null, arguments);
1522
+ }, gt.apply(null, arguments);
1503
1523
  }
1504
- function bt(e, n) {
1524
+ function wt(e, n) {
1505
1525
  if (null == e) return {};
1506
- var t, r, o = ht(e, n);
1526
+ var t, r, o = Ct(e, n);
1507
1527
  if (Object.getOwnPropertySymbols) {
1508
1528
  var i = Object.getOwnPropertySymbols(e);
1509
1529
  for (r = 0; r < i.length; r++) {
@@ -1512,7 +1532,7 @@
1512
1532
  }
1513
1533
  return o;
1514
1534
  }
1515
- function ht(e, n) {
1535
+ function Ct(e, n) {
1516
1536
  if (null == e) return {};
1517
1537
  var t = {};
1518
1538
  for (var r in e) {
@@ -1523,38 +1543,38 @@
1523
1543
  }
1524
1544
  return t;
1525
1545
  }
1526
- var yt = {
1527
- disabled: i().bool,
1528
- onClick: i().func,
1529
- selected: i().oneOf([ true, false, "some" ])
1546
+ var xt = {
1547
+ disabled: C().bool,
1548
+ onClick: C().func,
1549
+ selected: C().oneOf([ true, false, "some" ])
1530
1550
  };
1531
- function gt(e) {
1532
- var n = e.disabled, t = e.onClick, o = e.selected, i = bt(e, [ "disabled", "onClick", "selected" ]);
1551
+ function St(e) {
1552
+ var n = e.disabled, t = e.onClick, o = e.selected, i = wt(e, [ "disabled", "onClick", "selected" ]);
1533
1553
  var a = n === true ? "disabled" : undefined;
1534
1554
 
1535
1555
  // 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).
1536
- return r().createElement(vt, mt({
1556
+ return r().createElement(ht, gt({
1537
1557
  "aria-checked": o === "some" ? "mixed" : o,
1538
1558
  disabled: a,
1539
1559
  onClick: t,
1540
1560
  role: "checkbox"
1541
- }, i), r().createElement(pt, {
1561
+ }, i), r().createElement(yt, {
1542
1562
  disabled: !!a,
1543
1563
  selected: o
1544
1564
  }));
1545
1565
  }
1546
- gt.propTypes = yt;
1547
- /* harmony default export */ const wt = gt;
1566
+ St.propTypes = xt;
1567
+ /* harmony default export */ const kt = St;
1548
1568
  // CONCATENATED MODULE: ./src/Table/Row.tsx
1549
- function Ct(e) {
1569
+ function Ot(e) {
1550
1570
  "@babel/helpers - typeof";
1551
- return Ct = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1571
+ return Ot = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1552
1572
  return typeof e;
1553
1573
  } : function(e) {
1554
1574
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1555
- }, Ct(e);
1575
+ }, Ot(e);
1556
1576
  }
1557
- function xt(e, n) {
1577
+ function Rt(e, n) {
1558
1578
  var t = Object.keys(e);
1559
1579
  if (Object.getOwnPropertySymbols) {
1560
1580
  var r = Object.getOwnPropertySymbols(e);
@@ -1564,42 +1584,42 @@
1564
1584
  }
1565
1585
  return t;
1566
1586
  }
1567
- function St(e) {
1587
+ function Et(e) {
1568
1588
  for (var n = 1; n < arguments.length; n++) {
1569
1589
  var t = null != arguments[n] ? arguments[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) {
1590
+ n % 2 ? Rt(Object(t), !0).forEach((function(n) {
1591
+ It(e, n, t[n]);
1592
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rt(Object(t)).forEach((function(n) {
1573
1593
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1574
1594
  }));
1575
1595
  }
1576
1596
  return e;
1577
1597
  }
1578
- function kt(e, n, t) {
1579
- return (n = Ot(n)) in e ? Object.defineProperty(e, n, {
1598
+ function It(e, n, t) {
1599
+ return (n = Tt(n)) in e ? Object.defineProperty(e, n, {
1580
1600
  value: t,
1581
1601
  enumerable: !0,
1582
1602
  configurable: !0,
1583
1603
  writable: !0
1584
1604
  }) : e[n] = t, e;
1585
1605
  }
1586
- function Ot(e) {
1587
- var n = Rt(e, "string");
1588
- return "symbol" == Ct(n) ? n : n + "";
1606
+ function Tt(e) {
1607
+ var n = jt(e, "string");
1608
+ return "symbol" == Ot(n) ? n : n + "";
1589
1609
  }
1590
- function Rt(e, n) {
1591
- if ("object" != Ct(e) || !e) return e;
1610
+ function jt(e, n) {
1611
+ if ("object" != Ot(e) || !e) return e;
1592
1612
  var t = e[Symbol.toPrimitive];
1593
1613
  if (void 0 !== t) {
1594
1614
  var r = t.call(e, n || "default");
1595
- if ("object" != Ct(r)) return r;
1615
+ if ("object" != Ot(r)) return r;
1596
1616
  throw new TypeError("@@toPrimitive must return a primitive value.");
1597
1617
  }
1598
1618
  return ("string" === n ? String : Number)(e);
1599
1619
  }
1600
- function Et(e, n) {
1620
+ function Dt(e, n) {
1601
1621
  if (null == e) return {};
1602
- var t, r, o = It(e, n);
1622
+ var t, r, o = qt(e, n);
1603
1623
  if (Object.getOwnPropertySymbols) {
1604
1624
  var i = Object.getOwnPropertySymbols(e);
1605
1625
  for (r = 0; r < i.length; r++) {
@@ -1608,7 +1628,7 @@
1608
1628
  }
1609
1629
  return o;
1610
1630
  }
1611
- function It(e, n) {
1631
+ function qt(e, n) {
1612
1632
  if (null == e) return {};
1613
1633
  var t = {};
1614
1634
  for (var r in e) {
@@ -1619,8 +1639,8 @@
1619
1639
  }
1620
1640
  return t;
1621
1641
  }
1622
- function Tt() {
1623
- return Tt = Object.assign ? Object.assign.bind() : function(e) {
1642
+ function At() {
1643
+ return At = Object.assign ? Object.assign.bind() : function(e) {
1624
1644
  for (var n = 1; n < arguments.length; n++) {
1625
1645
  var t = arguments[n];
1626
1646
  for (var r in t) {
@@ -1628,83 +1648,83 @@
1628
1648
  }
1629
1649
  }
1630
1650
  return e;
1631
- }, Tt.apply(null, arguments);
1651
+ }, At.apply(null, arguments);
1632
1652
  }
1633
- var jt = {
1634
- odd: lt,
1635
- even: ut,
1636
- none: lt
1653
+ var Pt = {
1654
+ odd: dt,
1655
+ even: ft,
1656
+ none: dt
1637
1657
  };
1638
1658
  /** @public */
1639
1659
  /** @public */
1640
1660
  /** @public */
1641
1661
  /** @public */
1642
- /** @public */ var Dt = {
1662
+ /** @public */ var _t = {
1643
1663
  /** @private. Generally passed by Table rather than added directly. */
1644
- activeElementId: i().string,
1645
- actionPrimary: i().element,
1646
- actionsSecondary: i().element,
1647
- children: i().node,
1648
- data: i().any,
1649
- disabled: i().bool,
1664
+ activeElementId: C().string,
1665
+ actionPrimary: C().element,
1666
+ actionsSecondary: C().element,
1667
+ children: C().node,
1668
+ data: C().any,
1669
+ disabled: C().bool,
1650
1670
  /** @private. Generally passed by Table rather than added directly. */
1651
- isDraggable: i().bool,
1671
+ isDraggable: C().bool,
1652
1672
  /** @private. Generally passed by Table rather than added directly. */
1653
- dragId: i().oneOfType([ i().string, i().number ]),
1654
- elementRef: i().oneOfType([ i().func, i().object ]),
1673
+ dragId: C().oneOfType([ C().string, C().number ]),
1674
+ elementRef: C().oneOfType([ C().func, C().object ]),
1655
1675
  /** @private. */
1656
- expandable: i().bool,
1657
- expanded: i().bool,
1676
+ expandable: C().bool,
1677
+ expanded: C().bool,
1658
1678
  /** @private. Identifies the unique id (or ids) for an expanded row (or rows). In expandable rows `ExpansionRowIcon` uses `expansionRowId` for accessibility aria attributes. */
1659
- expansionRowIds: i().string,
1660
- expansionRow: i().oneOfType([ i().element, i().arrayOf(i().element) ]),
1679
+ expansionRowIds: C().string,
1680
+ expansionRow: C().oneOfType([ C().element, C().arrayOf(C().element) ]),
1661
1681
  /** @private. Indicates whether the table has an actions column. */
1662
- actions: i().bool,
1682
+ actions: C().bool,
1663
1683
  /** @private. Generally passed by `Table` rather than added directly. */
1664
- index: i().number,
1684
+ index: C().number,
1665
1685
  /** @private. Generally passed by `Table` rather than added directly. */
1666
- movableColumns: i().bool,
1667
- onClick: i().func,
1668
- onExpansion: i().func,
1686
+ movableColumns: C().bool,
1687
+ onClick: C().func,
1688
+ onExpansion: C().func,
1669
1689
  /** @private. This is passed through and works as expected. */
1670
- onKeyDown: i().func,
1690
+ onKeyDown: C().func,
1671
1691
  /** @private. Generally passed by `Table` rather than added directly. */
1672
- onRequestMoveRow: i().func,
1673
- onRequestToggle: i().func,
1692
+ onRequestMoveRow: C().func,
1693
+ onRequestToggle: C().func,
1674
1694
  /** @private. Generally passed by `Table` rather than added directly. */
1675
- primaryColumnIndex: i().number,
1676
- rowScreenReaderText: i().string,
1677
- selected: i().bool,
1695
+ primaryColumnIndex: C().number,
1696
+ rowScreenReaderText: C().string,
1697
+ selected: C().bool,
1678
1698
  /** @private. */
1679
- stripe: i().oneOf([ "odd", "even", "none" ])
1699
+ stripe: C().oneOf([ "odd", "even", "none" ])
1680
1700
  };
1681
- var qt = r().createElement($n(), null);
1682
- var At = r().forwardRef((function(e, n) {
1701
+ var zt = r().createElement(Hn(), null);
1702
+ var Mt = r().forwardRef((function(e, n) {
1683
1703
 
1684
- return r().createElement(De(), Tt({
1704
+ return r().createElement(De(), At({
1685
1705
  content: (0, j._)("Actions"),
1686
1706
  contentRelationship: "label"
1687
- }, e), r().createElement(Wn(), {
1707
+ }, e), r().createElement(Bn(), {
1688
1708
  appearance: "subtle",
1689
1709
  "data-test": "actions-secondary-toggle",
1690
- icon: qt,
1710
+ icon: zt,
1691
1711
  elementRef: n
1692
1712
  }));
1693
1713
  }));
1694
- function Pt(e) {
1714
+ function $t(e) {
1695
1715
  var n;
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" ]);
1716
+ var o = e.actions, i = e.actionPrimary, l = 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, y = e.expansionRow, g = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, k = e.onRequestToggle, O = e.primaryColumnIndex, R = O === void 0 ? 0 : O, E = e.rowScreenReaderText, I = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = Dt(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" ]);
1697
1717
  // @docs-props-type RowPropsBase
1698
1718
  var z = (0, t.useMemo)((function() {
1699
1719
  return {
1700
- id: f ? c : (0, R.createGUID)(),
1720
+ id: f ? c : (0, D.createGUID)(),
1701
1721
  disabled: !f
1702
1722
  };
1703
1723
  }), [ f, c ]);
1704
- var M = (0, l.useSortable)(z), $ = M.attributes, N = M.listeners, L = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1724
+ var M = (0, a.useSortable)(z), $ = M.attributes, N = M.listeners, L = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1705
1725
  var V = (0, t.useMemo)((function() {
1706
- return f ? St(St({}, P), {}, {
1707
- transform: zn.CSS.Translate.toString(L),
1726
+ return f ? Et(Et({}, P), {}, {
1727
+ transform: Wn.CSS.Translate.toString(L),
1708
1728
  transition: H
1709
1729
  }) : P;
1710
1730
  }), [ f, L, H, P ]);
@@ -1755,8 +1775,8 @@
1755
1775
  return i;
1756
1776
  };
1757
1777
  var Q = function n() {
1758
- if (a && a.props.children) {
1759
- var r = t.Children.toArray(a.props.children).filter(t.isValidElement);
1778
+ if (l && l.props.children) {
1779
+ var r = t.Children.toArray(l.props.children).filter(t.isValidElement);
1760
1780
  var o = r.map((function(n) {
1761
1781
  if (n.props.onClick) {
1762
1782
 
@@ -1771,11 +1791,11 @@
1771
1791
  return n;
1772
1792
  }));
1773
1793
 
1774
- return (0, t.cloneElement)(a, {
1794
+ return (0, t.cloneElement)(l, {
1775
1795
  children: o
1776
1796
  });
1777
1797
  }
1778
- return a;
1798
+ return l;
1779
1799
  };
1780
1800
  function Z(e) {
1781
1801
  F.current = e;
@@ -1789,41 +1809,41 @@
1789
1809
  return (0, t.cloneElement)(e, {
1790
1810
  appearance: C ? "rowLink" : e.props.appearance,
1791
1811
  disabled: d,
1792
- isPrimaryCell: E === n,
1812
+ isPrimaryCell: R === n,
1793
1813
  stripe: A
1794
1814
  });
1795
1815
  }));
1796
1816
  var ne;
1797
- if (I) {
1798
- ne = I;
1799
- } else if ((n = ee[E]) === null || n === void 0 ? void 0 : n.props.children) {
1817
+ if (E) {
1818
+ ne = E;
1819
+ } else if ((n = ee[R]) === null || n === void 0 ? void 0 : n.props.children) {
1800
1820
  var te;
1801
- ne = "".concat((te = ee[E]) === null || te === void 0 ? void 0 : te.props.children);
1821
+ ne = "".concat((te = ee[R]) === null || te === void 0 ? void 0 : te.props.children);
1802
1822
  } else {
1803
1823
  var re;
1804
1824
  ne = "".concat((re = ee[0]) === null || re === void 0 ? void 0 : re.props.children);
1805
1825
  if (false) {}
1806
1826
  }
1807
- var oe = (0, D.sprintf)((0, j._)("%(selected)s"), {
1808
- selected: T ? "selected" : "unselected"
1827
+ var oe = (0, T.sprintf)((0, j._)("%(selected)s"), {
1828
+ selected: I ? "selected" : "unselected"
1809
1829
  });
1810
- var ie = jt[A];
1811
- var ae = m ? t.Children.count(h) + 1 : undefined;
1830
+ var ie = Pt[A];
1831
+ var ae = m ? t.Children.count(y) + 1 : undefined;
1812
1832
  var le = w ? "false" : undefined;
1813
1833
  var ue = function e() {
1814
1834
 
1815
- return r().createElement(At, null);
1835
+ return r().createElement(Mt, null);
1816
1836
  };
1817
- var se = (0, D.sprintf)((0, j._)("Collapse row - %(rowLabelValue)s"), {
1837
+ var se = (0, T.sprintf)((0, j._)("Collapse row - %(rowLabelValue)s"), {
1818
1838
  rowLabelValue: ne
1819
1839
  });
1820
- var ce = (0, D.sprintf)((0, j._)("Expand row - %(rowLabelValue)s"), {
1840
+ var ce = (0, T.sprintf)((0, j._)("Expand row - %(rowLabelValue)s"), {
1821
1841
  rowLabelValue: ne
1822
1842
  });
1823
1843
 
1824
- return r().createElement(ie, Tt({
1844
+ return r().createElement(ie, At({
1825
1845
  "data-test": "row",
1826
- "data-test-selected": k ? T : undefined,
1846
+ "data-test-selected": k ? I : undefined,
1827
1847
  $clickable: !!C,
1828
1848
  "data-has-movable-columns": w ? "true" : undefined,
1829
1849
  disabled: !!d,
@@ -1831,13 +1851,13 @@
1831
1851
  $isDraggable: !!f,
1832
1852
  ref: Z,
1833
1853
  tabIndex: C ? 0 : undefined
1834
- }, g()(_, "data"), {
1854
+ }, h()(_, "data"), {
1835
1855
  onClick: C ? U : undefined,
1836
1856
  onKeyDown: X,
1837
- $rowSelected: !!(k && T),
1857
+ $rowSelected: !!(k && I),
1838
1858
  style: V
1839
- }), f && y != null && r().createElement(at, Tt({
1840
- "aria-label": (0, D.sprintf)((0, j._)("Reorder %(rowLabelValue)s"), {
1859
+ }), f && g != null && r().createElement(ct, At({
1860
+ "aria-label": (0, T.sprintf)((0, j._)("Reorder %(rowLabelValue)s"), {
1841
1861
  rowLabelValue: ne
1842
1862
  }),
1843
1863
  setActivatorNodeRef: B,
@@ -1850,15 +1870,15 @@
1850
1870
  "data-movable-column": le,
1851
1871
  rowSpan: ae,
1852
1872
  "data-test": "toggle"
1853
- }, r().createElement(wt, {
1854
- "aria-label": (0, D.sprintf)((0, j._)("%(rowLabelValue)s %(selectedString)s"), {
1873
+ }, r().createElement(kt, {
1874
+ "aria-label": (0, T.sprintf)((0, j._)("%(rowLabelValue)s %(selectedString)s"), {
1855
1875
  rowLabelValue: ne,
1856
1876
  selectedString: oe
1857
1877
  }),
1858
1878
  disabled: d,
1859
1879
  onClick: Y,
1860
- selected: T
1861
- })), p && h && r().createElement(Se, {
1880
+ selected: I
1881
+ })), p && y && r().createElement(Se, {
1862
1882
  align: "center",
1863
1883
  appearance: "data",
1864
1884
  "data-movable-column": le,
@@ -1866,58 +1886,38 @@
1866
1886
  expand: m,
1867
1887
  rowSpan: ae,
1868
1888
  variant: "expand"
1869
- }, r().createElement(Qn, {
1889
+ }, r().createElement(tt, {
1870
1890
  expanded: m,
1871
1891
  onClick: G,
1872
1892
  title: m ? se : ce,
1873
1893
  "aria-controls": m ? b : undefined,
1874
1894
  "aria-expanded": m
1875
- })), p && !h && r().createElement(Se, {
1895
+ })), p && !y && r().createElement(Se, {
1876
1896
  variant: "expand",
1877
1897
  "data-movable-column": le
1878
- }), ee, o && !i && !a && r().createElement(Se, {
1898
+ }), ee, o && !i && !l && r().createElement(Se, {
1879
1899
  align: "right",
1880
1900
  appearance: C ? "rowLink" : "data",
1881
1901
  "data-test": "row-actions",
1882
1902
  variant: "actions",
1883
1903
  "data-movable-column": le
1884
- }), (i || a) && r().createElement(Se, {
1904
+ }), (i || l) && r().createElement(Se, {
1885
1905
  align: "right",
1886
1906
  appearance: "data",
1887
1907
  "data-test": "row-actions",
1888
1908
  variant: "actions",
1889
1909
  "data-movable-column": le
1890
- }, i && J(), a && r().createElement(Hn(), {
1910
+ }, i && J(), l && r().createElement(Fn(), {
1891
1911
  toggle: ue()
1892
1912
  }, Q())));
1893
1913
  }
1894
- Pt.propTypes = Dt;
1895
- Pt.splunkUiType = "Table.Row";
1896
- /* harmony default export */ const _t = Pt;
1914
+ $t.propTypes = _t;
1915
+ $t.splunkUiType = "Table.Row";
1916
+ /* harmony default export */ const Nt = $t;
1897
1917
  // CONCATENATED MODULE: ./src/Table/TableContext.ts
1898
- var zt = (0, t.createContext)({});
1899
- zt.displayName = "Table";
1900
- /* harmony default export */ const Mt = zt;
1901
- // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1902
- var $t = M().thead.withConfig({
1903
- displayName: "HeadStyles__Styled",
1904
- componentId: "iap21t-0"
1905
- })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1906
- var n = e.$isFixed, t = e.$zIndex;
1907
- return n && (0, z.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1908
- }));
1909
- var Nt = M()(_n).withConfig({
1910
- displayName: "HeadStyles__StyledToggleAll",
1911
- componentId: "iap21t-1"
1912
- })([ "width:32px;" ]);
1913
- var Wt = M()(_n).withConfig({
1914
- displayName: "HeadStyles__StyledInfo",
1915
- componentId: "iap21t-2"
1916
- })([ "width:32px;" ]);
1917
- var Lt = M()(_n).withConfig({
1918
- displayName: "HeadStyles__StyledDragRow",
1919
- componentId: "iap21t-3"
1920
- })([ "width:32px;" ]);
1918
+ var Wt = (0, t.createContext)({});
1919
+ Wt.displayName = "Table";
1920
+ /* harmony default export */ const Lt = Wt;
1921
1921
  // CONCATENATED MODULE: ./src/Table/Head.tsx
1922
1922
  function Ht() {
1923
1923
  return Ht = Object.assign ? Object.assign.bind() : function(e) {
@@ -1954,27 +1954,27 @@
1954
1954
  }
1955
1955
  var Vt = {
1956
1956
  /** @private. */
1957
- actions: i().arrayOf(i().node),
1957
+ actions: C().arrayOf(C().node),
1958
1958
  /** @private. */
1959
- actionsColumnWidth: i().number,
1959
+ actionsColumnWidth: C().number,
1960
1960
  /** @private */
1961
- cellMinWidth: i().number,
1962
- children: i().node,
1963
- elementRef: i().oneOfType([ i().func, i().object ]),
1961
+ cellMinWidth: C().number,
1962
+ children: C().node,
1963
+ elementRef: C().oneOfType([ C().func, C().object ]),
1964
1964
  /** @private. */
1965
- hasDragColumn: i().bool,
1965
+ hasDragColumn: C().bool,
1966
1966
  /** @private. */
1967
- hasInfoColumn: i().bool,
1967
+ hasInfoColumn: C().bool,
1968
1968
  /** @private. */
1969
- onAutosizeColumn: i().func,
1969
+ onAutosizeColumn: C().func,
1970
1970
  /** @private. */
1971
- onRequestMoveColumn: i().func,
1971
+ onRequestMoveColumn: C().func,
1972
1972
  /** @private. */
1973
- onRequestResizeColumn: i().func,
1973
+ onRequestResizeColumn: C().func,
1974
1974
  /** @private. */
1975
- onRequestToggleAllRows: i().func,
1975
+ onRequestToggleAllRows: C().func,
1976
1976
  /** @private. */
1977
- rowSelection: i().oneOf([ "all", "some", "none" ])
1977
+ rowSelection: C().oneOf([ "all", "some", "none" ])
1978
1978
  };
1979
1979
  var Ft = 1;
1980
1980
  var Ut = {
@@ -1987,7 +1987,7 @@
1987
1987
  var Gt = (0, j._)("All rows selected");
1988
1988
  var Jt = function e(n) {
1989
1989
  var t, r;
1990
- var o = tn();
1990
+ var o = ln();
1991
1991
  if (!n) {
1992
1992
  return [];
1993
1993
  }
@@ -1998,7 +1998,7 @@
1998
1998
  };
1999
1999
  function Qt(e) {
2000
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;
2001
+ var y = (0, t.useContext)(Lt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
2002
2002
  var x = (0, t.useRef)(null);
2003
2003
  var S = (0, t.useRef)([]);
2004
2004
  (0, t.useEffect)((function() {
@@ -2164,28 +2164,28 @@
2164
2164
  };
2165
2165
  }), [ i ]);
2166
2166
 
2167
- return r().createElement($t, Ht({
2167
+ return r().createElement(zn, Ht({
2168
2168
  ref: R,
2169
2169
  "data-test": q,
2170
2170
  $isFixed: g === "fixed",
2171
2171
  $zIndex: I + Ft
2172
- }, h), r().createElement(_t, null, c && r().createElement(Lt, {
2172
+ }, h), r().createElement(Nt, null, c && r().createElement(Nn, {
2173
2173
  key: "drag_rows_head_cell",
2174
2174
  "data-test": "drag-rows-head-cell",
2175
2175
  align: "center",
2176
2176
  resizable: false
2177
- }), m && r().createElement(Nt, {
2177
+ }), m && r().createElement(Mn, {
2178
2178
  key: "toggle_all",
2179
2179
  resizable: false,
2180
2180
  align: "center",
2181
2181
  variant: "toggleAll",
2182
2182
  truncate: false,
2183
2183
  "data-test": "toggle-all"
2184
- }, r().createElement(wt, {
2184
+ }, r().createElement(kt, {
2185
2185
  "aria-label": A,
2186
2186
  onClick: m,
2187
2187
  selected: j
2188
- })), d && r().createElement(Wt, {
2188
+ })), d && r().createElement($n, {
2189
2189
  key: "more_info_head_cell",
2190
2190
  "data-test": "more-info-head-cell",
2191
2191
  resizable: false,
@@ -2306,123 +2306,124 @@
2306
2306
  /** @public */
2307
2307
  /** @public */ var hr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2308
2308
  var yr = {
2309
- align: i().oneOf([ "left", "center", "right" ]),
2310
- buttonRef: i().oneOfType([ i().func, i().object ]),
2311
- canCoverHead: i().bool,
2312
- children: i().node.isRequired,
2313
- closeReasons: i().arrayOf(i().oneOf(hr)),
2314
- columnId: i().string,
2309
+ align: C().oneOf([ "left", "center", "right" ]),
2310
+ buttonRef: C().oneOfType([ C().func, C().object ]),
2311
+ canCoverHead: C().bool,
2312
+ children: C().node.isRequired,
2313
+ closeReasons: C().arrayOf(C().oneOf(hr)),
2314
+ columnId: C().string,
2315
2315
  /** @private. */
2316
- dragId: i().oneOfType([ i().string, i().number ]),
2317
- elementRef: i().oneOfType([ i().func, i().object ]),
2318
- headCellScreenReaderText: i().string,
2319
- focusToggleReasons: i().arrayOf(i().oneOf(hr)),
2316
+ dragId: C().oneOfType([ C().string, C().number ]),
2317
+ elementRef: C().oneOfType([ C().func, C().object ]),
2318
+ headCellScreenReaderText: C().string,
2319
+ focusToggleReasons: C().arrayOf(C().oneOf(hr)),
2320
2320
  /** @private The index of the cell, skipping the info column. */
2321
- index: i().number,
2322
- label: i().node,
2321
+ index: C().number,
2322
+ label: C().node,
2323
2323
  /** @private. */
2324
- onAutosizeColumn: i().func,
2324
+ onAutosizeColumn: C().func,
2325
2325
  /**
2326
2326
  * @private. This will be passed through, and will work as expected.
2327
2327
  */
2328
- onKeyDown: i().func,
2329
- onRequestClose: i().func,
2328
+ onKeyDown: C().func,
2329
+ onRequestClose: C().func,
2330
2330
  /** @private. */
2331
- onRequestMoveColumn: i().func,
2332
- onRequestOpen: i().func,
2331
+ onRequestMoveColumn: C().func,
2332
+ onRequestOpen: C().func,
2333
2333
  /** @private. */
2334
- onRequestResize: i().func,
2335
- open: i().bool,
2336
- repositionMode: i().oneOf([ "none", "flip", "any" ]),
2337
- resizable: i().bool,
2338
- retainFocus: i().bool,
2339
- takeFocus: i().bool,
2340
- truncate: i().bool,
2334
+ onRequestResize: C().func,
2335
+ open: C().bool,
2336
+ repositionMode: C().oneOf([ "none", "flip", "any" ]),
2337
+ resizable: C().bool,
2338
+ retainFocus: C().bool,
2339
+ takeFocus: C().bool,
2340
+ truncate: C().bool,
2341
2341
  /**
2342
2342
  * @private
2343
2343
  * Used internally to suppress focus when this `HeadDropdownCell` is superseded by one in an
2344
2344
  * overlaid `HeadTable` for user interactions.
2345
2345
  */
2346
- visible: i().bool,
2347
- width: i().number,
2346
+ visible: C().bool,
2347
+ width: C().number,
2348
2348
  /** @private. */
2349
- variant: i().oneOf([ "toggleAll", "info", "actions" ])
2349
+ variant: C().oneOf([ "toggleAll", "info", "actions" ])
2350
2350
  };
2351
2351
  var gr = [ "contentClick", "escapeKey", "toggleClick" ];
2352
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" ]);
2353
+ var n;
2354
+ var o = e.align, i = o === void 0 ? "left" : o, l = e.buttonRef, u = e.canCoverHead, s = u === void 0 ? true : u, c = e.children, d = e.closeReasons, f = d === void 0 ? hr : d, v = e.columnId, p = e.dragId, m = e.elementRef, b = e.headCellScreenReaderText, h = e.focusToggleReasons, y = h === void 0 ? gr : h, g = e.id, w = e.index, C = e.label, x = e.onAutosizeColumn, S = e.onKeyDown, k = e.onRequestClose, O = e.onRequestMoveColumn, E = e.onRequestOpen, I = e.onRequestResize, q = e.open, P = e.repositionMode, _ = P === void 0 ? "flip" : P, z = e.resizable, M = z === void 0 ? true : z, $ = e.retainFocus, N = e.style, L = e.takeFocus, H = L === void 0 ? true : L, K = e.truncate, B = K === void 0 ? true : K, V = e.variant, F = e.visible, U = F === void 0 ? true : F, X = e.width, Y = 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" ]);
2354
2355
  // @docs-props-type HeadDropdownCellPropsBase
2355
- var Y = lr()({
2356
+ var G = lr()({
2356
2357
  componentName: "HeadDropdownCell",
2357
2358
  /* eslint-disable-next-line prefer-rest-params */
2358
2359
  componentProps: arguments[0],
2359
2360
  // see SUI-7028
2360
2361
  valuePropName: "open"
2361
2362
  });
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];
2366
- var fe = (0, R.createDOMID)("popover");
2367
- var ve = (0, R.createDOMID)("cellId");
2368
- var pe = !!k;
2369
- var me = (0, l.useSortable)({
2363
+ var J = (0, t.useState)(), Q = sr(J, 2), Z = Q[0], ee = Q[1];
2364
+ var ne = (0, t.useState)(null), te = sr(ne, 2), re = te[0], oe = te[1];
2365
+ var ie = (0, t.useState)(null), ae = sr(ie, 2), le = ae[0], ue = ae[1];
2366
+ var se = (0, t.useState)(false), ce = sr(se, 2), de = ce[0], fe = ce[1];
2367
+ var ve = (0, D.createDOMID)("popover");
2368
+ var pe = !!O;
2369
+ var me = (0, a.useSortable)({
2370
2370
  // dragId is optional in HeadCell but required by useSortable
2371
2371
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
2372
- id: v
2372
+ id: p
2373
2373
  }), be = me.attributes, he = me.listeners, ye = me.setNodeRef, ge = me.isDragging;
2374
2374
  var we = (0, t.useMemo)((function() {
2375
- return Y ? I : ce;
2376
- }), [ Y, ce, I ]);
2377
- var Ce = T()(F);
2378
- var xe = y || ve;
2375
+ return G ? q : de;
2376
+ }), [ G, de, q ]);
2377
+ var Ce = R()(U);
2378
+ var xe = (n = g !== null && g !== void 0 ? g : v) !== null && n !== void 0 ? n : (0,
2379
+ D.createDOMID)("headCellId-");
2379
2380
  (0, t.useEffect)((function() {
2380
2381
  if (false) {}
2381
- }), [ E, K ]);
2382
+ }), [ I, B ]);
2382
2383
  var Se = (0, t.useCallback)((function(e) {
2383
2384
  var n = e.reason, t = e.event;
2384
2385
  if (n === "clickAway" && t !== undefined) {
2385
2386
  var r = t.target;
2386
2387
  while (r) {
2387
2388
  // Ignore clicks on toggle.
2388
- if (r === ae) {
2389
+ if (r === le) {
2389
2390
  return;
2390
2391
  }
2391
2392
  r = r.parentNode;
2392
2393
  }
2393
2394
  }
2394
- if (we && A()(d, n) && g !== undefined) {
2395
- if (A()(h, n)) {
2396
- ae === null || ae === void 0 ? void 0 : ae.focus();
2395
+ if (we && A()(f, n) && w !== undefined) {
2396
+ if (A()(y, n)) {
2397
+ le === null || le === void 0 ? void 0 : le.focus();
2397
2398
  }
2398
- if (!Y) {
2399
- de(false);
2399
+ if (!G) {
2400
+ fe(false);
2400
2401
  }
2401
- S === null || S === void 0 ? void 0 : S(t, {
2402
- index: g,
2402
+ k === null || k === void 0 ? void 0 : k(t, {
2403
+ index: w,
2403
2404
  reason: n,
2404
- columnId: f
2405
+ columnId: v
2405
2406
  });
2406
2407
  }
2407
- }), [ d, f, h, g, ae, Y, we, S ]);
2408
+ }), [ f, v, y, w, le, G, we, k ]);
2408
2409
  (0, t.useEffect)((function() {
2409
- if (Ce && !F) {
2410
+ if (Ce && !U) {
2410
2411
  Se({
2411
2412
  reason: "offScreen"
2412
2413
  });
2413
2414
  }
2414
- }), [ Se, Ce, F ]);
2415
+ }), [ Se, Ce, U ]);
2415
2416
  var ke = (0, t.useCallback)((function(e) {
2416
- W(p, e);
2417
+ W(m, e);
2417
2418
  if (pe) {
2418
2419
  ye(e);
2419
2420
  }
2420
- }), [ pe, p, ye ]);
2421
+ }), [ pe, m, ye ]);
2421
2422
  var Oe = (0, t.useCallback)((function(e) {
2422
- le(e);
2423
- re(e);
2424
- W(i, e);
2425
- }), [ i ]);
2423
+ ue(e);
2424
+ oe(e);
2425
+ W(l, e);
2426
+ }), [ l ]);
2426
2427
  var Re = (0, t.useCallback)((function(e) {
2427
2428
  e.stopPropagation();
2428
2429
  // ignore clicks on the resize handle
@@ -2430,32 +2431,32 @@
2430
2431
  return;
2431
2432
  }
2432
2433
  if (!we) {
2433
- Z(e.clientX || undefined);
2434
+ ee(e.clientX || undefined);
2434
2435
  }
2435
2436
  if (we) {
2436
2437
  Se === null || Se === void 0 ? void 0 : Se({
2437
2438
  reason: "toggleClick",
2438
2439
  event: e
2439
2440
  });
2440
- } else if (g !== undefined) {
2441
- O === null || O === void 0 ? void 0 : O(e, {
2441
+ } else if (w !== undefined) {
2442
+ E === null || E === void 0 ? void 0 : E(e, {
2442
2443
  reason: "toggleClick",
2443
- columnId: f,
2444
- index: g
2444
+ columnId: v,
2445
+ index: w
2445
2446
  });
2446
- if (!Y) {
2447
- de(true);
2447
+ if (!G) {
2448
+ fe(true);
2448
2449
  }
2449
2450
  }
2450
- }), [ f, Se, g, Y, we, O ]);
2451
+ }), [ v, Se, w, G, we, E ]);
2451
2452
  var Ie = (0, t.useCallback)((function(e) {
2452
- if (g !== undefined) {
2453
- x === null || x === void 0 ? void 0 : x(e, {
2454
- index: g,
2455
- columnId: f
2453
+ if (w !== undefined) {
2454
+ S === null || S === void 0 ? void 0 : S(e, {
2455
+ index: w,
2456
+ columnId: v
2456
2457
  });
2457
2458
  }
2458
- }), [ f, g, x ]);
2459
+ }), [ v, w, S ]);
2459
2460
  var je = (0, t.useCallback)((function(e) {
2460
2461
  Se({
2461
2462
  reason: "contentClick",
@@ -2463,105 +2464,237 @@
2463
2464
  });
2464
2465
  }), [ Se ]);
2465
2466
  var De = (0, t.useMemo)((function() {
2466
- if (Q !== undefined && nr()(Q)) {
2467
+ if (Z !== undefined && nr()(Z)) {
2467
2468
  var e;
2468
2469
  return {
2469
- x: Q - ((e = te === null || te === void 0 ? void 0 : te.getBoundingClientRect().left) !== null && e !== void 0 ? e : 0)
2470
+ x: Z - ((e = re === null || re === void 0 ? void 0 : re.getBoundingClientRect().left) !== null && e !== void 0 ? e : 0)
2470
2471
  };
2471
2472
  }
2472
2473
  return undefined;
2473
- }), [ Q, te ]);
2474
+ }), [ Z, re ]);
2474
2475
  var qe = (0, t.useMemo)((function() {
2475
- return Ee()({}, $, {
2476
- width: U
2476
+ return Ee()({}, N, {
2477
+ width: X
2477
2478
  });
2478
- }), [ $, U ]);
2479
+ }), [ N, X ]);
2479
2480
  var Ae;
2480
- if (m) {
2481
- Ae = m;
2482
- } else if (typeof w === "string") {
2483
- Ae = w;
2481
+ if (b) {
2482
+ Ae = b;
2483
+ } else if (typeof C === "string") {
2484
+ Ae = C;
2484
2485
  }
2485
2486
 
2486
- return r().createElement(Rn, ur({
2487
+ return r().createElement(He, ur({
2487
2488
  style: qe,
2488
2489
  "data-test": "head-cell",
2489
2490
  $isDragging: pe && ge,
2490
- $variant: B,
2491
- id: F ? xe : undefined,
2491
+ $variant: V,
2492
+ id: U ? xe : undefined,
2492
2493
  ref: ke
2493
- }, X), r().createElement(On, null, pe && r().createElement(In, ur({
2494
- "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
2494
+ }, Y), r().createElement(Le, null, pe && r().createElement(Be, ur({
2495
+ "aria-label": (0, T.sprintf)((0, j._)("Reorder %(labelString)s"), {
2495
2496
  labelString: Ae
2496
2497
  }),
2497
2498
  "data-test": "drag"
2498
- }, be, he), r().createElement(En, null, r().createElement(Te(), null))), r().createElement(kn, {
2499
- align: o,
2499
+ }, be, he), r().createElement(Ke, null, r().createElement(Te(), null))), r().createElement(In, {
2500
+ align: i,
2500
2501
  "aria-expanded": we,
2501
2502
  "aria-haspopup": true,
2502
- "aria-owns": fe,
2503
+ "aria-owns": ve,
2503
2504
  clickable: true,
2504
- columnId: f,
2505
+ columnId: v,
2505
2506
  elementRef: Oe,
2506
- id: y,
2507
- index: g,
2507
+ cellId: xe,
2508
+ index: w,
2508
2509
  isMenu: true,
2509
- label: w,
2510
- resizable: F && z,
2511
- onAutosizeColumn: C,
2512
- onRequestResize: E,
2510
+ label: C,
2511
+ resizable: U && M,
2512
+ onAutosizeColumn: x,
2513
+ onRequestResize: I,
2513
2514
  onClick: Re,
2514
2515
  onKeyDown: Ie,
2515
- truncate: K,
2516
- width: U,
2516
+ truncate: B,
2517
+ width: X,
2517
2518
  "data-test": "inner"
2518
2519
  }), r().createElement(ir(), {
2519
2520
  align: "center",
2520
- anchor: te,
2521
+ anchor: re,
2521
2522
  "aria-labelledby": xe,
2522
- autoCloseWhenOffScreen: A()(d, "offScreen"),
2523
- canCoverAnchor: u,
2523
+ autoCloseWhenOffScreen: A()(f, "offScreen"),
2524
+ canCoverAnchor: s,
2524
2525
  defaultPlacement: "below",
2525
- id: fe,
2526
+ id: ve,
2526
2527
  onRequestClose: Se,
2527
- open: !!te && we,
2528
+ open: !!re && we,
2528
2529
  pointTo: De,
2529
- repositionMode: P,
2530
- retainFocus: M,
2531
- takeFocus: L
2532
- }, rr()(s) ? function() {
2530
+ repositionMode: _,
2531
+ retainFocus: $,
2532
+ takeFocus: H
2533
+ }, rr()(c) ? function() {
2533
2534
 
2534
2535
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2535
2536
  return r().createElement("div", {
2536
2537
  onClick: je
2537
- }, s.apply(void 0, arguments));
2538
+ }, c.apply(void 0, arguments));
2538
2539
  } :
2539
2540
 
2540
2541
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2541
2542
  r().createElement("div", {
2542
2543
  onClick: je
2543
- }, s))));
2544
+ }, c))));
2544
2545
  }
2545
2546
  wr.propTypes = yr;
2546
2547
  wr.splunkUiType = "Table.HeadDropdownCell";
2547
2548
  wr.possibleCloseReasons = hr;
2548
2549
  /* harmony default export */ const Cr = wr;
2550
+ // CONCATENATED MODULE: external "lodash/extend"
2551
+ const xr = require("lodash/extend");
2552
+ var Sr = e.n(xr);
2553
+ // CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
2554
+ var kr = M()(ne).withConfig({
2555
+ displayName: "HeadTableStyles__Styled",
2556
+ componentId: "g85wgf-0"
2557
+ })([ "min-width:0;table-layout:fixed;" ]);
2558
+ var Or = M().div.withConfig({
2559
+ displayName: "HeadTableStyles__StyledDockedContainer",
2560
+ componentId: "g85wgf-1"
2561
+ })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
2562
+ var Rr = M()(Or).withConfig({
2563
+ displayName: "HeadTableStyles__StyledFixedContainer",
2564
+ componentId: "g85wgf-2"
2565
+ })([ "position:absolute;box-shadow:none;z-index:1;" ]);
2566
+ // CONCATENATED MODULE: ./src/Table/HeadTable.tsx
2567
+ function Er() {
2568
+ return Er = Object.assign ? Object.assign.bind() : function(e) {
2569
+ for (var n = 1; n < arguments.length; n++) {
2570
+ var t = arguments[n];
2571
+ for (var r in t) {
2572
+ ({}).hasOwnProperty.call(t, r) && (e[r] = t[r]);
2573
+ }
2574
+ }
2575
+ return e;
2576
+ }, Er.apply(null, arguments);
2577
+ }
2578
+ function Ir(e, n) {
2579
+ if (null == e) return {};
2580
+ var t, r, o = Tr(e, n);
2581
+ if (Object.getOwnPropertySymbols) {
2582
+ var i = Object.getOwnPropertySymbols(e);
2583
+ for (r = 0; r < i.length; r++) {
2584
+ t = i[r], n.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
2585
+ }
2586
+ }
2587
+ return o;
2588
+ }
2589
+ function Tr(e, n) {
2590
+ if (null == e) return {};
2591
+ var t = {};
2592
+ for (var r in e) {
2593
+ if ({}.hasOwnProperty.call(e, r)) {
2594
+ if (n.includes(r)) continue;
2595
+ t[r] = e[r];
2596
+ }
2597
+ }
2598
+ return t;
2599
+ }
2600
+ var jr = {
2601
+ cellWidths: C().arrayOf(C().number).isRequired,
2602
+ dragIndex: C().number,
2603
+ elementRef: C().oneOfType([ C().func, C().object ]),
2604
+ hasDragColumn: C().bool,
2605
+ hasRowExpansion: C().bool,
2606
+ hasRowSelection: C().bool,
2607
+ headType: C().oneOf([ "docked", "fixed" ]).isRequired,
2608
+ horizontalOffset: C().number,
2609
+ isFixedColumn: C().bool,
2610
+ rowSelection: C().oneOf([ "all", "some", "none" ]),
2611
+ tableStyle: C().object,
2612
+ tableWidth: C().number.isRequired,
2613
+ tHead: C().element.isRequired,
2614
+ top: C().number.isRequired,
2615
+ width: C().number.isRequired
2616
+ };
2617
+ /**
2618
+ * @private
2619
+ * HeadTable is an internal component that provides a detached table head that can
2620
+ * then be positioned in different ways outside of the main table.
2621
+ */ function Dr(e) {
2622
+ 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, y = Ir(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
2623
+ var g = u === "docked";
2624
+ var w = g ? Or : Rr;
2625
+ var C = (0, t.useRef)(null);
2626
+ var x = (0, t.useCallback)((function(e) {
2627
+ W(C, e);
2628
+ }), [ C ]);
2629
+ var S = 0;
2630
+ if (a) {
2631
+ S += 1;
2632
+ }
2633
+ if (l) {
2634
+ S += 1;
2635
+ }
2636
+ if (i) {
2637
+ S += 1;
2638
+ }
2639
+ // Set the widths of the head cells if not fixed column
2640
+ var k = (0, t.useMemo)((function() {
2641
+ return t.Children.toArray(p.props.children);
2642
+ }), [ p.props.children ]);
2643
+ var O = (0, t.useMemo)((function() {
2644
+ if (d) {
2645
+ // ensure consistent keys
2646
+ return k;
2647
+ }
2648
+ return k.filter(t.isValidElement).map((function(e, r) {
2649
+
2650
+ return (0, t.cloneElement)(e, {
2651
+ style: Sr()({}, e.props.style, {
2652
+ width: n[r + S]
2653
+ })
2654
+ });
2655
+ }));
2656
+ }), [ n, S, d, k ]);
2657
+ var R = (0, t.cloneElement)(p, {
2658
+ elementRef: x,
2659
+ "data-test": "".concat(u, "-head")
2660
+ }, O);
2661
+ var E = (0, t.useMemo)((function() {
2662
+ return {
2663
+ top: m,
2664
+ width: b
2665
+ };
2666
+ }), [ m, b ]);
2667
+
2668
+ return r().createElement(w, {
2669
+ style: E,
2670
+ ref: o
2671
+ }, r().createElement(kr, Er({
2672
+ "data-test": "".concat(u, "-head-table"),
2673
+ "data-fixed-column": d ? "true" : undefined,
2674
+ style: Sr()({}, f, {
2675
+ marginLeft: c,
2676
+ width: d ? undefined : v
2677
+ })
2678
+ }, h()(y, "dragIndex")), R));
2679
+ }
2680
+ Dr.propTypes = jr;
2681
+ /* harmony default export */ const qr = Dr;
2549
2682
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
2550
- function xr(e) {
2683
+ function Ar(e) {
2551
2684
  "@babel/helpers - typeof";
2552
- return xr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2685
+ return Ar = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2553
2686
  return typeof e;
2554
2687
  } : function(e) {
2555
2688
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2556
- }, xr(e);
2689
+ }, Ar(e);
2557
2690
  }
2558
- function Sr(e, n) {
2559
- return Rr(e) || Or(e, n) || Tr(e, n) || kr();
2691
+ function Pr(e, n) {
2692
+ return Mr(e) || zr(e, n) || Wr(e, n) || _r();
2560
2693
  }
2561
- function kr() {
2694
+ function _r() {
2562
2695
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2563
2696
  }
2564
- function Or(e, n) {
2697
+ function zr(e, n) {
2565
2698
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2566
2699
  if (null != t) {
2567
2700
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2583,68 +2716,68 @@
2583
2716
  return l;
2584
2717
  }
2585
2718
  }
2586
- function Rr(e) {
2719
+ function Mr(e) {
2587
2720
  if (Array.isArray(e)) return e;
2588
2721
  }
2589
- function Er(e) {
2590
- return Dr(e) || jr(e) || Tr(e) || Ir();
2722
+ function $r(e) {
2723
+ return Hr(e) || Lr(e) || Wr(e) || Nr();
2591
2724
  }
2592
- function Ir() {
2725
+ function Nr() {
2593
2726
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2594
2727
  }
2595
- function Tr(e, n) {
2728
+ function Wr(e, n) {
2596
2729
  if (e) {
2597
- if ("string" == typeof e) return qr(e, n);
2730
+ if ("string" == typeof e) return Kr(e, n);
2598
2731
  var t = {}.toString.call(e).slice(8, -1);
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;
2732
+ 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) ? Kr(e, n) : void 0;
2600
2733
  }
2601
2734
  }
2602
- function jr(e) {
2735
+ function Lr(e) {
2603
2736
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
2604
2737
  }
2605
- function Dr(e) {
2606
- if (Array.isArray(e)) return qr(e);
2738
+ function Hr(e) {
2739
+ if (Array.isArray(e)) return Kr(e);
2607
2740
  }
2608
- function qr(e, n) {
2741
+ function Kr(e, n) {
2609
2742
  (null == n || n > e.length) && (n = e.length);
2610
2743
  for (var t = 0, r = Array(n); t < n; t++) {
2611
2744
  r[t] = e[t];
2612
2745
  }
2613
2746
  return r;
2614
2747
  }
2615
- function Ar(e, n) {
2748
+ function Br(e, n) {
2616
2749
  if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
2617
2750
  }
2618
- function Pr(e, n) {
2751
+ function Vr(e, n) {
2619
2752
  for (var t = 0; t < n.length; t++) {
2620
2753
  var r = n[t];
2621
2754
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
2622
- Object.defineProperty(e, Mr(r.key), r);
2755
+ Object.defineProperty(e, Xr(r.key), r);
2623
2756
  }
2624
2757
  }
2625
- function _r(e, n, t) {
2626
- return n && Pr(e.prototype, n), t && Pr(e, t), Object.defineProperty(e, "prototype", {
2758
+ function Fr(e, n, t) {
2759
+ return n && Vr(e.prototype, n), t && Vr(e, t), Object.defineProperty(e, "prototype", {
2627
2760
  writable: !1
2628
2761
  }), e;
2629
2762
  }
2630
- function zr(e, n, t) {
2631
- return (n = Mr(n)) in e ? Object.defineProperty(e, n, {
2763
+ function Ur(e, n, t) {
2764
+ return (n = Xr(n)) in e ? Object.defineProperty(e, n, {
2632
2765
  value: t,
2633
2766
  enumerable: !0,
2634
2767
  configurable: !0,
2635
2768
  writable: !0
2636
2769
  }) : e[n] = t, e;
2637
2770
  }
2638
- function Mr(e) {
2639
- var n = $r(e, "string");
2640
- return "symbol" == xr(n) ? n : n + "";
2771
+ function Xr(e) {
2772
+ var n = Yr(e, "string");
2773
+ return "symbol" == Ar(n) ? n : n + "";
2641
2774
  }
2642
- function $r(e, n) {
2643
- if ("object" != xr(e) || !e) return e;
2775
+ function Yr(e, n) {
2776
+ if ("object" != Ar(e) || !e) return e;
2644
2777
  var t = e[Symbol.toPrimitive];
2645
2778
  if (void 0 !== t) {
2646
2779
  var r = t.call(e, n || "default");
2647
- if ("object" != xr(r)) return r;
2780
+ if ("object" != Ar(r)) return r;
2648
2781
  throw new TypeError("@@toPrimitive must return a primitive value.");
2649
2782
  }
2650
2783
  return ("string" === n ? String : Number)(e);
@@ -2652,21 +2785,21 @@
2652
2785
  // based on https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/keyboard/KeyboardSensor.ts
2653
2786
  // eslint-disable-next-line max-classes-per-file
2654
2787
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/utilities/Listeners.ts
2655
- var Nr = function() {
2788
+ var Gr = function() {
2656
2789
  function e(n) {
2657
2790
  var t = this;
2658
- Ar(this, e);
2659
- zr(this, "listeners", []);
2660
- zr(this, "removeAll", (function() {
2791
+ Br(this, e);
2792
+ Ur(this, "listeners", []);
2793
+ Ur(this, "removeAll", (function() {
2661
2794
  t.listeners.forEach((function(e) {
2662
2795
  var n;
2663
- return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Er(e));
2796
+ return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, $r(e));
2664
2797
  }));
2665
2798
  }));
2666
2799
  this.target = n;
2667
2800
  this.target = n;
2668
2801
  }
2669
- _r(e, [ {
2802
+ Fr(e, [ {
2670
2803
  key: "add",
2671
2804
  value: function e(n, t, r) {
2672
2805
  var o;
@@ -2677,7 +2810,7 @@
2677
2810
  return e;
2678
2811
  }();
2679
2812
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/parseTransform.ts
2680
- function Wr(e) {
2813
+ function Jr(e) {
2681
2814
  if (e.startsWith("matrix3d(")) {
2682
2815
  var n = e.slice(9, -1).split(/, /);
2683
2816
  return {
@@ -2699,8 +2832,8 @@
2699
2832
  return null;
2700
2833
  }
2701
2834
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/inverseTransform.ts
2702
- function Lr(e, n, t) {
2703
- var r = Wr(n);
2835
+ function Qr(e, n, t) {
2836
+ var r = Jr(n);
2704
2837
  if (!r) {
2705
2838
  return e;
2706
2839
  }
@@ -2718,17 +2851,17 @@
2718
2851
  left: u
2719
2852
  };
2720
2853
  }
2721
- var Hr = {
2854
+ var Zr = {
2722
2855
  ignoreTransform: false
2723
2856
  };
2724
2857
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/rect/getRect.ts
2725
- function Kr(e) {
2726
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Hr;
2858
+ function eo(e) {
2859
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Zr;
2727
2860
  var t = e.getBoundingClientRect();
2728
2861
  if (n.ignoreTransform) {
2729
- var r = (0, zn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2862
+ var r = (0, Wn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2730
2863
  if (o) {
2731
- t = Lr(t, o, i);
2864
+ t = Qr(t, o, i);
2732
2865
  }
2733
2866
  }
2734
2867
  var a = t, l = a.top, u = a.left, s = a.width, c = a.height, d = a.bottom, f = a.right;
@@ -2741,7 +2874,7 @@
2741
2874
  right: f
2742
2875
  };
2743
2876
  }
2744
- function Br(e) {
2877
+ function no(e) {
2745
2878
  if (e === document.scrollingElement) {
2746
2879
  var n = window, t = n.innerWidth, r = n.innerHeight;
2747
2880
  return {
@@ -2764,19 +2897,19 @@
2764
2897
  };
2765
2898
  }
2766
2899
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
2767
- function Vr(e) {
2768
- if (!zn.canUseDOM || !e) {
2900
+ function to(e) {
2901
+ if (!Wn.canUseDOM || !e) {
2769
2902
  return false;
2770
2903
  }
2771
2904
  return e === document.scrollingElement;
2772
2905
  }
2773
2906
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollPosition.ts
2774
- function Fr(e) {
2907
+ function ro(e) {
2775
2908
  var n = {
2776
2909
  x: 0,
2777
2910
  y: 0
2778
2911
  };
2779
- var t = Vr(e) ? {
2912
+ var t = to(e) ? {
2780
2913
  height: window.innerHeight,
2781
2914
  width: window.innerWidth
2782
2915
  } : {
@@ -2801,20 +2934,20 @@
2801
2934
  };
2802
2935
  }
2803
2936
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/coordinates/constants.ts
2804
- var Ur = {
2937
+ var oo = {
2805
2938
  x: 0,
2806
2939
  y: 0
2807
2940
  };
2808
2941
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
2809
- function Xr(e) {
2942
+ function io(e) {
2810
2943
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2811
- zn.getWindow)(e).getComputedStyle(e);
2944
+ Wn.getWindow)(e).getComputedStyle(e);
2812
2945
  return n.position === "fixed";
2813
2946
  }
2814
2947
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
2815
- function Yr(e) {
2948
+ function ao(e) {
2816
2949
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2817
- zn.getWindow)(e).getComputedStyle(e);
2950
+ Wn.getWindow)(e).getComputedStyle(e);
2818
2951
  var t = /(auto|scroll|overlay)/;
2819
2952
  var r = [ "overflow", "overflowX", "overflowY" ];
2820
2953
  return r.some((function(e) {
@@ -2823,7 +2956,7 @@
2823
2956
  }));
2824
2957
  }
2825
2958
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2826
- function Gr(e, n) {
2959
+ function lo(e, n) {
2827
2960
  var t = [];
2828
2961
  function r(o) {
2829
2962
  if (n != null && t.length >= n) {
@@ -2832,23 +2965,23 @@
2832
2965
  if (!o) {
2833
2966
  return t;
2834
2967
  }
2835
- if ((0, zn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2968
+ if ((0, Wn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2836
2969
  t.push(o.scrollingElement);
2837
2970
  return t;
2838
2971
  }
2839
- if (!(0, zn.isHTMLElement)(o) || (0, zn.isSVGElement)(o)) {
2972
+ if (!(0, Wn.isHTMLElement)(o) || (0, Wn.isSVGElement)(o)) {
2840
2973
  return t;
2841
2974
  }
2842
2975
  if (t.includes(o)) {
2843
2976
  return t;
2844
2977
  }
2845
- var i = (0, zn.getWindow)(e).getComputedStyle(o);
2978
+ var i = (0, Wn.getWindow)(e).getComputedStyle(o);
2846
2979
  if (o !== e) {
2847
- if (Yr(o, i)) {
2980
+ if (ao(o, i)) {
2848
2981
  t.push(o);
2849
2982
  }
2850
2983
  }
2851
- if (Xr(o, i)) {
2984
+ if (io(o, i)) {
2852
2985
  return t;
2853
2986
  }
2854
2987
  return r(o.parentNode);
@@ -2859,23 +2992,23 @@
2859
2992
  return r(e);
2860
2993
  }
2861
2994
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2862
- function Jr(e) {
2863
- var n = Gr(e, 1), t = Sr(n, 1), r = t[0];
2995
+ function uo(e) {
2996
+ var n = lo(e, 1), t = Pr(n, 1), r = t[0];
2864
2997
  return r !== null && r !== void 0 ? r : null;
2865
2998
  }
2866
- var Qr = {
2867
- start: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ],
2868
- cancel: [ a.KeyboardCode.Esc ],
2869
- end: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ]
2999
+ var so = {
3000
+ start: [ o.KeyboardCode.Space, o.KeyboardCode.Enter ],
3001
+ cancel: [ o.KeyboardCode.Esc ],
3002
+ end: [ o.KeyboardCode.Space, o.KeyboardCode.Enter ]
2870
3003
  };
2871
3004
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/scrollIntoViewIfNeeded.ts
2872
- function Zr(e) {
2873
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Kr;
3005
+ function co(e) {
3006
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : eo;
2874
3007
  if (!e) {
2875
3008
  return;
2876
3009
  }
2877
3010
  var t = n(e), r = t.top, o = t.left, i = t.bottom, a = t.right;
2878
- var l = Jr(e);
3011
+ var l = uo(e);
2879
3012
  if (!l) {
2880
3013
  return;
2881
3014
  }
@@ -2886,23 +3019,23 @@
2886
3019
  });
2887
3020
  }
2888
3021
  }
2889
- var eo = function() {
3022
+ var fo = function() {
2890
3023
  function e(n) {
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);
3024
+ Br(this, e);
3025
+ Ur(this, "autoScrollEnabled", false);
3026
+ Ur(this, "referenceCoordinates", void 0);
3027
+ Ur(this, "listeners", void 0);
3028
+ Ur(this, "windowListeners", void 0);
2896
3029
  this.props = n;
2897
3030
  var t = n.event.target;
2898
3031
  this.props = n;
2899
- this.listeners = new Nr((0, zn.getOwnerDocument)(t));
2900
- this.windowListeners = new Nr((0, zn.getWindow)(t));
3032
+ this.listeners = new Gr((0, Wn.getOwnerDocument)(t));
3033
+ this.windowListeners = new Gr((0, Wn.getWindow)(t));
2901
3034
  this.handleKeyDown = this.handleKeyDown.bind(this);
2902
3035
  this.handleCancel = this.handleCancel.bind(this);
2903
3036
  this.attach();
2904
3037
  }
2905
- _r(e, [ {
3038
+ Fr(e, [ {
2906
3039
  key: "attach",
2907
3040
  value: function e() {
2908
3041
  var n = this;
@@ -2919,16 +3052,16 @@
2919
3052
  var n = this.props, t = n.activeNode, r = n.onStart;
2920
3053
  var o = t.node.current;
2921
3054
  if (o) {
2922
- Zr(o);
3055
+ co(o);
2923
3056
  }
2924
- r(Ur);
3057
+ r(oo);
2925
3058
  }
2926
3059
  }, {
2927
3060
  key: "handleKeyDown",
2928
3061
  value: function e(n) {
2929
- if ((0, zn.isKeyboardEvent)(n)) {
2930
- var t = this.props, r = t.active, o = t.context, i = t.options;
2931
- var l = i.keyboardCodes, u = l === void 0 ? Qr : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
3062
+ if ((0, Wn.isKeyboardEvent)(n)) {
3063
+ var t = this.props, r = t.active, i = t.context, a = t.options;
3064
+ var l = a.keyboardCodes, u = l === void 0 ? so : l, s = a.coordinateGetter, c = a.scrollBehavior, d = c === void 0 ? "smooth" : c;
2932
3065
  var f = n.code;
2933
3066
  if (u.end.includes(f)) {
2934
3067
  this.handleEnd(n);
@@ -2938,41 +3071,41 @@
2938
3071
  this.handleCancel(n);
2939
3072
  return;
2940
3073
  }
2941
- var v = o.current.collisionRect;
3074
+ var v = i.current.collisionRect;
2942
3075
  var p = v ? {
2943
3076
  x: v.left,
2944
3077
  y: v.top
2945
- } : Ur;
3078
+ } : oo;
2946
3079
  if (!this.referenceCoordinates) {
2947
3080
  this.referenceCoordinates = p;
2948
3081
  }
2949
3082
  var m = s(n, {
2950
3083
  active: r,
2951
- context: o.current,
3084
+ context: i.current,
2952
3085
  currentCoordinates: p
2953
3086
  });
2954
3087
  if (m) {
2955
- var b = (0, zn.subtract)(m, p);
3088
+ var b = (0, Wn.subtract)(m, p);
2956
3089
  var h = {
2957
3090
  x: 0,
2958
3091
  y: 0
2959
3092
  };
2960
- var y = o.current.scrollableAncestors;
3093
+ var y = i.current.scrollableAncestors;
2961
3094
  for (var g = 0; g < y.length; g += 1) {
2962
3095
  var w = y[g];
2963
3096
  var C = n.code;
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);
3097
+ var x = ro(w), S = x.isTop, k = x.isRight, O = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
3098
+ var T = no(w);
2966
3099
  // isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
2967
3100
  // we want to scroll only when a dragging node will be out of view,
2968
3101
  // originally it tries to always place a dragging node in the middle of the container
2969
3102
  var j = T.top <= m.y && T.bottom >= m.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
2970
3103
  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;
2972
- var A = (C === a.KeyboardCode.Down && !R || C === a.KeyboardCode.Up && !S) && !j;
3104
+ var q = (C === o.KeyboardCode.Right && !k || C === o.KeyboardCode.Left && !O) && !D;
3105
+ var A = (C === o.KeyboardCode.Down && !R || C === o.KeyboardCode.Up && !S) && !j;
2973
3106
  if (q) {
2974
3107
  var P = w.scrollLeft + b.x;
2975
- var _ = C === a.KeyboardCode.Right && P <= E.x || C === a.KeyboardCode.Left && P >= I.x;
3108
+ var _ = C === o.KeyboardCode.Right && P <= E.x || C === o.KeyboardCode.Left && P >= I.x;
2976
3109
  if (_ && !b.y) {
2977
3110
  // We don't need to update coordinates, the scroll adjustment alone will trigger
2978
3111
  // logic to auto-detect the new container we are over
@@ -2985,7 +3118,7 @@
2985
3118
  if (_) {
2986
3119
  h.x = w.scrollLeft - P;
2987
3120
  } else {
2988
- h.x = C === a.KeyboardCode.Right ? w.scrollLeft - E.x : w.scrollLeft - I.x;
3121
+ h.x = C === o.KeyboardCode.Right ? w.scrollLeft - E.x : w.scrollLeft - I.x;
2989
3122
  }
2990
3123
  if (h.x) {
2991
3124
  w.scrollBy({
@@ -2996,7 +3129,7 @@
2996
3129
  break;
2997
3130
  } else if (A) {
2998
3131
  var z = w.scrollTop + b.y;
2999
- var M = C === a.KeyboardCode.Down && z <= E.y || C === a.KeyboardCode.Up && z >= I.y;
3132
+ var M = C === o.KeyboardCode.Down && z <= E.y || C === o.KeyboardCode.Up && z >= I.y;
3000
3133
  if (M && !b.x) {
3001
3134
  // We don't need to update coordinates, the scroll adjustment alone will trigger
3002
3135
  // logic to auto-detect the new container we are over
@@ -3009,7 +3142,7 @@
3009
3142
  if (M) {
3010
3143
  h.y = w.scrollTop - z;
3011
3144
  } else {
3012
- h.y = C === a.KeyboardCode.Down ? w.scrollTop - E.y : w.scrollTop - I.y;
3145
+ h.y = C === o.KeyboardCode.Down ? w.scrollTop - E.y : w.scrollTop - I.y;
3013
3146
  }
3014
3147
  if (h.y) {
3015
3148
  w.scrollBy({
@@ -3020,7 +3153,7 @@
3020
3153
  break;
3021
3154
  }
3022
3155
  }
3023
- this.handleMove(n, (0, zn.add)((0, zn.subtract)(m, this.referenceCoordinates), h));
3156
+ this.handleMove(n, (0, Wn.add)((0, Wn.subtract)(m, this.referenceCoordinates), h));
3024
3157
  }
3025
3158
  }
3026
3159
  }
@@ -3056,10 +3189,10 @@
3056
3189
  } ]);
3057
3190
  return e;
3058
3191
  }();
3059
- zr(eo, "activators", [ {
3192
+ Ur(fo, "activators", [ {
3060
3193
  eventName: "onKeyDown",
3061
3194
  handler: function e(n, t, r) {
3062
- var o = t.keyboardCodes, i = o === void 0 ? Qr : o, a = t.onActivation;
3195
+ var o = t.keyboardCodes, i = o === void 0 ? so : o, a = t.onActivation;
3063
3196
  var l = r.active;
3064
3197
  var u = n.nativeEvent.code;
3065
3198
  if (i.start.includes(u)) {
@@ -3076,138 +3209,6 @@
3076
3209
  return false;
3077
3210
  }
3078
3211
  } ]);
3079
- // CONCATENATED MODULE: external "lodash/extend"
3080
- const no = require("lodash/extend");
3081
- var to = e.n(no);
3082
- // CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
3083
- var ro = M()(ne).withConfig({
3084
- displayName: "HeadTableStyles__Styled",
3085
- componentId: "g85wgf-0"
3086
- })([ "min-width:0;table-layout:fixed;" ]);
3087
- var oo = M().div.withConfig({
3088
- displayName: "HeadTableStyles__StyledDockedContainer",
3089
- componentId: "g85wgf-1"
3090
- })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
3091
- var io = M()(oo).withConfig({
3092
- displayName: "HeadTableStyles__StyledFixedContainer",
3093
- componentId: "g85wgf-2"
3094
- })([ "position:absolute;box-shadow:none;z-index:1;" ]);
3095
- // CONCATENATED MODULE: ./src/Table/HeadTable.tsx
3096
- function ao() {
3097
- return ao = Object.assign ? Object.assign.bind() : function(e) {
3098
- for (var n = 1; n < arguments.length; n++) {
3099
- var t = arguments[n];
3100
- for (var r in t) {
3101
- ({}).hasOwnProperty.call(t, r) && (e[r] = t[r]);
3102
- }
3103
- }
3104
- return e;
3105
- }, ao.apply(null, arguments);
3106
- }
3107
- function lo(e, n) {
3108
- if (null == e) return {};
3109
- var t, r, o = uo(e, n);
3110
- if (Object.getOwnPropertySymbols) {
3111
- var i = Object.getOwnPropertySymbols(e);
3112
- for (r = 0; r < i.length; r++) {
3113
- t = i[r], n.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
3114
- }
3115
- }
3116
- return o;
3117
- }
3118
- function uo(e, n) {
3119
- if (null == e) return {};
3120
- var t = {};
3121
- for (var r in e) {
3122
- if ({}.hasOwnProperty.call(e, r)) {
3123
- if (n.includes(r)) continue;
3124
- t[r] = e[r];
3125
- }
3126
- }
3127
- return t;
3128
- }
3129
- var so = {
3130
- cellWidths: i().arrayOf(i().number).isRequired,
3131
- dragIndex: i().number,
3132
- elementRef: i().oneOfType([ i().func, i().object ]),
3133
- hasDragColumn: i().bool,
3134
- hasRowExpansion: i().bool,
3135
- hasRowSelection: i().bool,
3136
- headType: i().oneOf([ "docked", "fixed" ]).isRequired,
3137
- horizontalOffset: i().number,
3138
- isFixedColumn: i().bool,
3139
- rowSelection: i().oneOf([ "all", "some", "none" ]),
3140
- tableStyle: i().object,
3141
- tableWidth: i().number.isRequired,
3142
- tHead: i().element.isRequired,
3143
- top: i().number.isRequired,
3144
- width: i().number.isRequired
3145
- };
3146
- /**
3147
- * @private
3148
- * HeadTable is an internal component that provides a detached table head that can
3149
- * then be positioned in different ways outside of the main table.
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" ]);
3152
- var y = u === "docked";
3153
- var w = y ? oo : io;
3154
- var C = (0, t.useRef)(null);
3155
- var x = (0, t.useCallback)((function(e) {
3156
- W(C, e);
3157
- }), [ C ]);
3158
- var S = 0;
3159
- if (a) {
3160
- S += 1;
3161
- }
3162
- if (l) {
3163
- S += 1;
3164
- }
3165
- if (i) {
3166
- S += 1;
3167
- }
3168
- // Set the widths of the head cells if not fixed column
3169
- var k = (0, t.useMemo)((function() {
3170
- return t.Children.toArray(p.props.children);
3171
- }), [ p.props.children ]);
3172
- var O = (0, t.useMemo)((function() {
3173
- if (d) {
3174
- // ensure consistent keys
3175
- return k;
3176
- }
3177
- return k.filter(t.isValidElement).map((function(e, r) {
3178
-
3179
- return (0, t.cloneElement)(e, {
3180
- style: to()({}, e.props.style, {
3181
- width: n[r + S]
3182
- })
3183
- });
3184
- }));
3185
- }), [ n, S, d, k ]);
3186
- var R = (0, t.cloneElement)(p, {
3187
- elementRef: x,
3188
- "data-test": "".concat(u, "-head")
3189
- }, O);
3190
- var E = (0, t.useMemo)((function() {
3191
- return {
3192
- top: m,
3193
- width: b
3194
- };
3195
- }), [ m, b ]);
3196
-
3197
- return r().createElement(w, {
3198
- style: E,
3199
- ref: o
3200
- }, r().createElement(ro, ao({
3201
- "data-test": "".concat(u, "-head-table"),
3202
- "data-fixed-column": d ? "true" : undefined,
3203
- style: to()({}, f, {
3204
- marginLeft: c,
3205
- width: d ? undefined : v
3206
- })
3207
- }, g()(h, "dragIndex")), R));
3208
- }
3209
- co.propTypes = so;
3210
- /* harmony default export */ const fo = co;
3211
3212
  // CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
3212
3213
  function vo(e) {
3213
3214
  "@babel/helpers - typeof";
@@ -3287,7 +3288,7 @@
3287
3288
  if (!n || !i) {
3288
3289
  return o;
3289
3290
  }
3290
- var a = tn();
3291
+ var a = ln();
3291
3292
  var l = o.left + (((t = a.visualViewport) === null || t === void 0 ? void 0 : t.offsetLeft) || 0);
3292
3293
  var u = o.top + (((r = a.visualViewport) === null || r === void 0 ? void 0 : r.offsetTop) || 0);
3293
3294
  var s = o.width, c = o.height;
@@ -3409,26 +3410,26 @@
3409
3410
  /** @public */
3410
3411
  /** @public */
3411
3412
  /** @public */ var zo = {
3412
- actions: i().arrayOf(i().element),
3413
- actionsColumnWidth: i().number,
3414
- children: i().node,
3415
- dockOffset: i().number,
3416
- dockScrollBar: i().bool,
3417
- elementRef: i().oneOfType([ i().func, i().object ]),
3418
- headType: i().oneOf([ "docked", "fixed", "inline" ]),
3419
- innerStyle: i().object,
3420
- onRequestToggleAllRows: i().func,
3421
- onScroll: i().func,
3422
- outerStyle: i().object,
3423
- primaryColumnIndex: i().number,
3424
- rowExpansion: i().oneOf([ "single", "multi", "controlled", "none" ]),
3425
- rowSelection: i().oneOf([ "all", "some", "none" ]),
3426
- stripeRows: i().bool,
3427
- tableStyle: i().object,
3428
- onRequestMoveColumn: i().func,
3429
- onRequestMoveRow: i().func,
3430
- onRequestResizeColumn: i().func,
3431
- resizableFillLayout: i().bool
3413
+ actions: C().arrayOf(C().element),
3414
+ actionsColumnWidth: C().number,
3415
+ children: C().node,
3416
+ dockOffset: C().number,
3417
+ dockScrollBar: C().bool,
3418
+ elementRef: C().oneOfType([ C().func, C().object ]),
3419
+ headType: C().oneOf([ "docked", "fixed", "inline" ]),
3420
+ innerStyle: C().object,
3421
+ onRequestToggleAllRows: C().func,
3422
+ onScroll: C().func,
3423
+ outerStyle: C().object,
3424
+ primaryColumnIndex: C().number,
3425
+ rowExpansion: C().oneOf([ "single", "multi", "controlled", "none" ]),
3426
+ rowSelection: C().oneOf([ "all", "some", "none" ]),
3427
+ stripeRows: C().bool,
3428
+ tableStyle: C().object,
3429
+ onRequestMoveColumn: C().func,
3430
+ onRequestMoveRow: C().func,
3431
+ onRequestResizeColumn: C().func,
3432
+ resizableFillLayout: C().bool
3432
3433
  };
3433
3434
  var Mo = function e(n) {
3434
3435
  return n === "inline";
@@ -3440,7 +3441,7 @@
3440
3441
  return n === "fixed";
3441
3442
  };
3442
3443
  var Wo = function e(n) {
3443
- var t = tn();
3444
+ var t = ln();
3444
3445
  var r = Co(n);
3445
3446
  return {
3446
3447
  top: r.top + t.pageYOffset,
@@ -3448,12 +3449,12 @@
3448
3449
  };
3449
3450
  };
3450
3451
  var Lo = function e(n) {
3451
- var t = Qe();
3452
+ var t = tn();
3452
3453
  if (n === undefined || n === null) {
3453
3454
  return undefined;
3454
3455
  }
3455
3456
  var r = n.children[0].children;
3456
- var o = p()(r, t.activeElement);
3457
+ var o = f()(r, t.activeElement);
3457
3458
  if (o > -1) {
3458
3459
  return {
3459
3460
  target: "headCell",
@@ -3461,7 +3462,7 @@
3461
3462
  };
3462
3463
  }
3463
3464
  var i = n.querySelectorAll("[data-test=resize]");
3464
- var a = p()(i, t.activeElement);
3465
+ var a = f()(i, t.activeElement);
3465
3466
  if (a > -1) {
3466
3467
  return {
3467
3468
  target: "resizeButton",
@@ -3477,7 +3478,7 @@
3477
3478
  return n.indexOf(t) + 1;
3478
3479
  };
3479
3480
  var Bo = {
3480
- coordinateGetter: l.sortableKeyboardCoordinates
3481
+ coordinateGetter: a.sortableKeyboardCoordinates
3481
3482
  };
3482
3483
  var Vo = {
3483
3484
  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.")
@@ -3513,7 +3514,7 @@
3513
3514
  };
3514
3515
  var Yo = [];
3515
3516
  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" ]);
3517
+ var n = e.actions, l = n === void 0 ? Yo : n, s = e.actionsColumnWidth, d = e.children, f = e.dockOffset, v = f === void 0 ? 0 : f, m = e.dockScrollBar, b = e.elementRef, y = e.headType, w = y === void 0 ? "inline" : y, C = e.innerStyle, x = e.onRequestMoveColumn, O = e.onRequestMoveRow, E = 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" ]);
3517
3518
  // @docs-props-type TablePropsBase
3518
3519
  var F = (0, t.useState)([]), U = Io(F, 2), X = U[0], Y = U[1];
3519
3520
  var G = (0, t.useState)(), J = Io(G, 2), Q = J[0], oe = J[1];
@@ -3521,9 +3522,9 @@
3521
3522
  var de = (0, t.useState)(), fe = Io(de, 2), ve = fe[0], pe = fe[1];
3522
3523
  var me = (0, t.useState)(), be = Io(me, 2), he = be[0], ye = be[1];
3523
3524
  var ge = (0, t.useRef)(true);
3524
- var we = (0, t.useContext)(E.ScrollContainerContext);
3525
- var Ce = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
3526
- a.useSensor)(eo, Bo));
3525
+ var we = (0, t.useContext)(k.ScrollContainerContext);
3526
+ var Ce = (0, o.useSensors)((0, o.useSensor)(o.MouseSensor, {}), (0, o.useSensor)(o.TouchSensor, {}), (0,
3527
+ o.useSensor)(fo, Bo));
3527
3528
  var xe = (0, t.useState)([]), Se = Io(xe, 2), ke = Se[0], Oe = Se[1];
3528
3529
  var Re = (0, t.useState)(-1), Ee = Io(Re, 2), Ie = Ee[0], Te = Ee[1];
3529
3530
  var je = (0, t.useRef)();
@@ -3536,15 +3537,18 @@
3536
3537
  var We = (0, t.useRef)();
3537
3538
  var Le = (0, t.useRef)(null);
3538
3539
  var He = (0, t.useRef)(null);
3539
- var Ke = T()(y);
3540
- var Be = [];
3541
- var Ve = [];
3542
- var Fe = [];
3543
- var Ue = [];
3544
- var Xe = (0, t.useCallback)((function() {
3540
+ var Ke = R()(w);
3541
+ var Be = (0, t.useRef)([]);
3542
+ var Ve = (0, t.useRef)([]);
3543
+ var Fe = (0, t.useRef)([]);
3544
+ var Ue = (0, t.useRef)([]);
3545
+ var Xe = Ve.current;
3546
+ var Ye = Be.current;
3547
+ var Ge = Ue.current;
3548
+ var Je = (0, t.useCallback)((function() {
3545
3549
  var e;
3546
- var n = tn();
3547
- if (Mo(y)) {
3550
+ var n = ln();
3551
+ if (Mo(w)) {
3548
3552
  return;
3549
3553
  }
3550
3554
  var t = He.current;
@@ -3561,25 +3565,25 @@
3561
3565
  ce(o === null || o === void 0 ? void 0 : o.clientWidth);
3562
3566
  Y(i);
3563
3567
  pe(u);
3564
- }), [ v, y ]);
3568
+ }), [ v, w ]);
3565
3569
  (0, t.useEffect)((function() {
3566
3570
  var e = Me.current;
3567
3571
  var n = Ne.current;
3568
3572
  if (e && n) {
3569
3573
  var t = Jt(Me.current);
3570
- if (!b()(X, t)) {
3571
- Xe();
3574
+ if (!p()(X, t)) {
3575
+ Je();
3572
3576
  }
3573
3577
  }
3574
- if (Ke === "inline" && y === "inline") {
3575
- Xe();
3578
+ if (Ke === "inline" && w === "inline") {
3579
+ Je();
3576
3580
  }
3577
3581
  if (false) {}
3578
- }), [ X, y, Ke, e, Xe ]);
3579
- var Ye = (0, t.useCallback)((function(e) {
3582
+ }), [ X, w, Ke, e, Je ]);
3583
+ var Qe = (0, t.useCallback)((function(e) {
3580
3584
  var n = He.current;
3581
3585
  A === null || A === void 0 ? void 0 : A(e);
3582
- if ((No(y) || $o(y)) && n) {
3586
+ if ((No(w) || $o(w)) && n) {
3583
3587
  oe(-n.scrollLeft);
3584
3588
  }
3585
3589
  if (ze.current && We.current !== "dockedScrollBar" && n) {
@@ -3588,8 +3592,8 @@
3588
3592
  } else {
3589
3593
  We.current = undefined;
3590
3594
  }
3591
- }), [ y, A ]);
3592
- var Ge = function e() {
3595
+ }), [ w, A ]);
3596
+ var Ze = function e() {
3593
3597
  var n = He.current;
3594
3598
  if (We.current !== "container" && n && ze.current) {
3595
3599
  We.current = "dockedScrollBar";
@@ -3598,23 +3602,23 @@
3598
3602
  We.current = undefined;
3599
3603
  }
3600
3604
  };
3601
- var Je = C()(Xe, 0);
3602
- var Ze = C()(Xe, 50);
3603
- O()(He, Ze);
3605
+ var en = g()(Je, 0);
3606
+ var nn = g()(Je, 50);
3607
+ I()(He, nn);
3604
3608
  (0, t.useEffect)((function() {
3605
3609
  // Using the return value of useCallback to recreate componentWillUnmount
3606
3610
  return function() {
3607
- Je.cancel();
3608
- Ze.cancel();
3611
+ en.cancel();
3612
+ nn.cancel();
3609
3613
  };
3610
3614
  }));
3611
- var en = function e(n) {
3615
+ var rn = function e(n) {
3612
3616
  return function(e) {
3613
3617
  Me.current = e;
3614
3618
  W(n.props.elementRef, e);
3615
3619
  };
3616
3620
  };
3617
- var nn = function e(n) {
3621
+ var on = function e(n) {
3618
3622
  if (n) {
3619
3623
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
3620
3624
  if ($e.current) {
@@ -3630,7 +3634,7 @@
3630
3634
  }
3631
3635
  Ne.current = n;
3632
3636
  };
3633
- var rn = function e(n) {
3637
+ var an = function e(n) {
3634
3638
  var t = He.current;
3635
3639
  if (!Ne.current || !t || n.key !== "Tab") {
3636
3640
  return;
@@ -3641,48 +3645,49 @@
3641
3645
  t.scrollLeft += r;
3642
3646
  }
3643
3647
  };
3644
- var on = function e(n, t) {
3648
+ var un = function e(n, t) {
3645
3649
  var r, o;
3646
- var i = t.index, a = t.columnId;
3647
- var l = Qe();
3648
- if (i === undefined) {
3650
+ var i = t.columnId, a = t.index, l = t.id;
3651
+ var s = tn();
3652
+ if (a === undefined) {
3649
3653
  return;
3650
3654
  }
3651
- var u = N === "none" ? 1 : 2;
3652
- var s = (r = He.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(i + u, "), tbody td:nth-child(").concat(i + u, ")"));
3653
- var d = l.createElement("div");
3655
+ var c = N === "none" ? 1 : 2;
3656
+ var d = (r = He.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(a + c, "), tbody td:nth-child(").concat(a + c, ")"));
3657
+ var f = s.createElement("div");
3654
3658
  // TODO: find a styled-components compliant way to do this
3655
- d.style["float"] = "left";
3656
- d.style.position = "fixed";
3657
- d.style.top = "-100";
3658
- d.style.left = "0";
3659
- d.style.maxHeight = "10px";
3660
- d.style.overflow = "hidden";
3661
- c()(s, (function(e) {
3659
+ f.style["float"] = "left";
3660
+ f.style.position = "fixed";
3661
+ f.style.top = "-100";
3662
+ f.style.left = "0";
3663
+ f.style.maxHeight = "10px";
3664
+ f.style.overflow = "hidden";
3665
+ u()(d, (function(e) {
3662
3666
  var n = e.cloneNode(true);
3663
3667
  // TS: this seems safe to assume?
3664
3668
  n.style.display = "block";
3665
3669
  n.style.width = "auto";
3666
- d.appendChild(n);
3670
+ f.appendChild(n);
3667
3671
  }));
3668
- l.body.appendChild(d);
3669
- I === null || I === void 0 ? void 0 : I(n, {
3670
- index: i,
3671
- columnId: a,
3672
- width: d.clientWidth + 1
3672
+ s.body.appendChild(f);
3673
+ E === null || E === void 0 ? void 0 : E(n, {
3674
+ columnId: i,
3675
+ id: l,
3676
+ index: a,
3677
+ width: f.clientWidth + 1
3673
3678
  });
3674
- (o = d.parentNode) === null || o === void 0 ? void 0 : o.removeChild(d);
3679
+ (o = f.parentNode) === null || o === void 0 ? void 0 : o.removeChild(f);
3675
3680
  };
3676
- var an = (0, t.useCallback)((function(e) {
3681
+ var sn = (0, t.useCallback)((function(e) {
3677
3682
  var n = e.active;
3678
3683
  var t = n.id;
3679
- je.current = Ue.indexOf(t);
3684
+ je.current = Ge.indexOf(t);
3680
3685
  _e(t);
3681
- }), [ Ue ]);
3682
- var ln = (0, t.useCallback)((function(e) {
3686
+ }), [ Ge ]);
3687
+ var cn = (0, t.useCallback)((function(e) {
3683
3688
  if (e.over) {
3684
3689
  var n = e.over.id;
3685
- var t = Ue.indexOf(n);
3690
+ var t = Ge.indexOf(n);
3686
3691
  var r = t;
3687
3692
  if (je.current !== undefined && t > je.current) {
3688
3693
  r = t + 1;
@@ -3691,22 +3696,22 @@
3691
3696
  } else {
3692
3697
  Te(-1);
3693
3698
  }
3694
- }), [ Ue ]);
3699
+ }), [ Ge ]);
3695
3700
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
3696
3701
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
3697
- var un = (0, t.useMemo)((function() {
3698
- return C()(ln, 100);
3699
- }), [ ln ]);
3702
+ var dn = (0, t.useMemo)((function() {
3703
+ return g()(cn, 100);
3704
+ }), [ cn ]);
3700
3705
  (0, t.useEffect)((function() {
3701
3706
  return function() {
3702
- un.cancel();
3707
+ dn.cancel();
3703
3708
  };
3704
- }), [ un ]);
3705
- var sn = (0, t.useCallback)((function(e) {
3709
+ }), [ dn ]);
3710
+ var fn = (0, t.useCallback)((function(e) {
3706
3711
  var n = e.active, t = e.over;
3707
3712
  if (t && n.id !== t.id) {
3708
- var r = Ue.indexOf(n.id);
3709
- var o = Ue.indexOf(t === null || t === void 0 ? void 0 : t.id);
3713
+ var r = Ge.indexOf(n.id);
3714
+ var o = Ge.indexOf(t === null || t === void 0 ? void 0 : t.id);
3710
3715
  x === null || x === void 0 ? void 0 : x({
3711
3716
  fromIndex: r,
3712
3717
  toIndex: o
@@ -3716,64 +3721,68 @@
3716
3721
  Te(-1);
3717
3722
  De.current = undefined;
3718
3723
  je.current = undefined;
3719
- }), [ Ue, x ]);
3720
- var cn = (0, t.useCallback)((function(e) {
3724
+ }), [ Ge, x ]);
3725
+ var vn = (0, t.useCallback)((function(e) {
3721
3726
  var n = e.active, t = e.over;
3722
3727
  ge.current = true;
3723
3728
  if (t && n.id !== t.id) {
3724
- var r = Ve.indexOf(n.id);
3725
- var o = Ve.indexOf(t === null || t === void 0 ? void 0 : t.id);
3726
- k === null || k === void 0 ? void 0 : k({
3729
+ var r = Xe.indexOf(n.id);
3730
+ var o = Xe.indexOf(t === null || t === void 0 ? void 0 : t.id);
3731
+ O === null || O === void 0 ? void 0 : O({
3727
3732
  fromIndex: r,
3728
3733
  toIndex: o
3729
3734
  });
3730
3735
  }
3731
- }), [ Ve, k ]);
3732
- var dn = (0, t.useCallback)((function() {
3736
+ }), [ Xe, O ]);
3737
+ var pn = (0, t.useCallback)((function() {
3733
3738
  ge.current = true;
3734
3739
  }), []);
3735
- var fn = (0, t.useRef)({});
3736
- var vn = function e(n) {
3737
- var r = t.Children.toArray(n.props.children).filter(t.isValidElement).map((function(e, n) {
3738
- var r = e;
3739
- var o = r.key || (0, R.createDOMID)("col-");
3740
- o = String(o);
3740
+ var mn = (0, t.useRef)({});
3741
+ var bn = function e(n) {
3742
+ var r = [];
3743
+ var o = [];
3744
+ var i = t.Children.toArray(n.props.children).filter(t.isValidElement).map((function(e, n) {
3745
+ var i = e;
3746
+ var a = i.key || (0, D.createDOMID)("col-");
3747
+ a = String(a);
3741
3748
  // `col-` prefix is necessary to distinguish row or column reordering.
3742
3749
  // Append the `col-` prefix if is missing from dragId
3743
- if (!o.startsWith("col-")) {
3744
- o = "col-".concat(o);
3750
+ if (!a.startsWith("col-")) {
3751
+ a = "col-".concat(a);
3745
3752
  }
3746
- Fe.push(r);
3747
- Ue.push(o);
3753
+ r.push(i);
3754
+ o.push(a);
3748
3755
 
3749
- return (0, t.cloneElement)(r, {
3756
+ return (0, t.cloneElement)(i, {
3750
3757
  index: n,
3751
- dragId: o,
3758
+ dragId: a,
3752
3759
  elementRef: function e(n) {
3753
- fn.current[o] = n;
3754
- W(r.props.elementRef, n);
3760
+ mn.current[a] = n;
3761
+ W(i.props.elementRef, n);
3755
3762
  }
3756
3763
  });
3757
3764
  }));
3758
- var a = o === null || o === void 0 ? void 0 : o.filter(t.isValidElement);
3759
- var l = (0, t.cloneElement)(n, {
3765
+ Fe.current = r;
3766
+ Ge = o;
3767
+ var a = l === null || l === void 0 ? void 0 : l.filter(t.isValidElement);
3768
+ var u = (0, t.cloneElement)(n, {
3760
3769
  actions: a,
3761
- actionsColumnWidth: i,
3770
+ actionsColumnWidth: s,
3762
3771
  hasInfoColumn: N !== "none",
3763
- hasDragColumn: !!k,
3764
- onAutosizeColumn: on,
3772
+ hasDragColumn: !!O,
3773
+ onAutosizeColumn: un,
3765
3774
  onRequestMoveColumn: x,
3766
- onRequestResizeColumn: I,
3775
+ onRequestResizeColumn: E,
3767
3776
  onRequestToggleAllRows: q,
3768
- elementRef: en(n),
3777
+ elementRef: rn(n),
3769
3778
  rowSelection: H
3770
- }, r);
3771
- return l;
3779
+ }, i);
3780
+ return u;
3772
3781
  };
3773
- var pn = (0, t.useMemo)((function() {
3782
+ var hn = (0, t.useMemo)((function() {
3774
3783
  var e, n;
3775
3784
  if (Ie === -1 || !Me.current || !He.current) return null;
3776
- var t = !!k;
3785
+ var t = !!O;
3777
3786
  var o = N !== "none";
3778
3787
  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);
3779
3788
  var a;
@@ -3793,59 +3802,63 @@
3793
3802
  $height: He.current.clientHeight,
3794
3803
  $left: a
3795
3804
  });
3796
- }), [ Ie, k, N, q ]);
3797
- var mn = function e(n) {
3798
- var r = (o === null || o === void 0 ? void 0 : o.filter(t.isValidElement).length) > 0;
3799
- var a = false;
3805
+ }), [ Ie, O, N, q ]);
3806
+ var yn = function e(n) {
3807
+ var r = (l === null || l === void 0 ? void 0 : l.filter(t.isValidElement).length) > 0;
3808
+ var o = false;
3809
+ var i = [];
3810
+ var a = [];
3800
3811
  t.Children.toArray(n === null || n === void 0 ? void 0 : n.props.children).filter(t.isValidElement).forEach((function(e, n) {
3801
- var r, o;
3802
- if (((r = e.props) === null || r === void 0 ? void 0 : r.actionPrimary) || ((o = e.props) === null || o === void 0 ? void 0 : o.actionsSecondary)) {
3803
- a = true;
3812
+ var r, l;
3813
+ if (((r = e.props) === null || r === void 0 ? void 0 : r.actionPrimary) || ((l = e.props) === null || l === void 0 ? void 0 : l.actionsSecondary)) {
3814
+ o = true;
3804
3815
  }
3805
- var i = e.key || (0, R.createDOMID)("row-");
3806
- i = String(i);
3816
+ var u = e.key || (0, D.createDOMID)("row-");
3817
+ u = String(u);
3807
3818
  // `row-` prefix is necessary to distinguish row or column reordering.
3808
3819
  // Append the `row-` prefix if is missing from dragId
3809
- if (!i.startsWith("row-")) {
3810
- i = "row-".concat(i);
3820
+ if (!u.startsWith("row-")) {
3821
+ u = "row-".concat(u);
3811
3822
  }
3812
- Be.push( (0, t.cloneElement)(e, {
3823
+ i.push( (0, t.cloneElement)(e, {
3813
3824
  index: n,
3814
- dragId: i
3825
+ dragId: u
3815
3826
  }));
3816
- Ve.push(i);
3827
+ a.push(u);
3817
3828
  }));
3818
- var l = r || a || !!i;
3829
+ var u = r || o || !!s;
3830
+ Ye = i;
3831
+ Xe = a;
3819
3832
 
3820
3833
  return (0, t.cloneElement)(n, {
3821
- actions: l,
3834
+ actions: u,
3822
3835
  movableColumns: !!x,
3823
- onRequestMoveRow: k,
3836
+ onRequestMoveRow: O,
3824
3837
  primaryColumnIndex: z,
3825
3838
  rowExpansion: N,
3826
3839
  stripeRows: K
3827
- }, Be);
3840
+ }, Ye);
3828
3841
  };
3829
- var bn = function e() {
3842
+ var gn = function e() {
3830
3843
  var n = He.current;
3831
- var t = tn();
3832
- if (!$o(y) || !Le.current || !Me.current || !n) {
3844
+ var t = ln();
3845
+ if (!$o(w) || !Le.current || !Me.current || !n) {
3833
3846
  return false;
3834
3847
  }
3835
3848
  var r = Wo(n).top;
3836
3849
  return t.pageYOffset >= r - (v || 0);
3837
3850
  };
3838
- var hn = function e() {
3839
- var n = tn();
3851
+ var wn = function e() {
3852
+ var n = ln();
3840
3853
  var t = He.current;
3841
- if (!p || !Le.current || !t) {
3854
+ if (!m || !Le.current || !t) {
3842
3855
  return false;
3843
3856
  }
3844
3857
  var r = Co(t);
3845
3858
  return r.bottom > n.innerHeight && r.top < n.innerHeight;
3846
3859
  };
3847
- var yn = function e(n, o) {
3848
- if (bn()) {
3860
+ var Cn = function e(n, o) {
3861
+ if (gn()) {
3849
3862
  // FIXME: handle inline
3850
3863
  // Save the current head focus state so that it can be applied to the docked version
3851
3864
  // after the `HeadTable` mounts.
@@ -3855,7 +3868,7 @@
3855
3868
  }
3856
3869
  var i = (0, t.cloneElement)(n);
3857
3870
 
3858
- return r().createElement(fo, {
3871
+ return r().createElement(qr, {
3859
3872
  headType: "docked",
3860
3873
  tHead: i,
3861
3874
  cellWidths: X,
@@ -3865,53 +3878,53 @@
3865
3878
  width: he,
3866
3879
  tableStyle: B,
3867
3880
  isFixedColumn: o,
3868
- onKeyUp: rn,
3869
- elementRef: nn,
3870
- hasDragColumn: !!k,
3881
+ onKeyUp: an,
3882
+ elementRef: on,
3883
+ hasDragColumn: !!O,
3871
3884
  hasRowExpansion: N !== "none",
3872
3885
  hasRowSelection: !!q
3873
3886
  });
3874
3887
  }
3875
3888
  return false;
3876
3889
  };
3877
- var gn = (0, t.useMemo)((function() {
3890
+ var xn = (0, t.useMemo)((function() {
3878
3891
  var e, n, t;
3879
3892
  if (!ze.current || !Me.current || !Le.current) {
3880
3893
  return 0;
3881
3894
  }
3882
- var r = tn();
3895
+ var r = ln();
3883
3896
  var o = (e = Co(Le.current).top) !== null && e !== void 0 ? e : 0;
3884
3897
  var i = (n = (t = Me.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3885
3898
  var a = r.innerHeight - o - i;
3886
3899
  return Math.min(a - ze.current.offsetHeight, 0);
3887
3900
  }), []);
3888
- var wn = (0, t.useMemo)((function() {
3901
+ var Sn = (0, t.useMemo)((function() {
3889
3902
  return {
3890
3903
  width: he,
3891
- marginBottom: gn
3904
+ marginBottom: xn
3892
3905
  };
3893
- }), [ he, gn ]);
3894
- var Cn = (0, t.useMemo)((function() {
3906
+ }), [ he, xn ]);
3907
+ var kn = (0, t.useMemo)((function() {
3895
3908
  return {
3896
3909
  width: se
3897
3910
  };
3898
3911
  }), [ se ]);
3899
- var xn = function e() {
3900
- if (!hn()) {
3912
+ var On = function e() {
3913
+ if (!wn()) {
3901
3914
  return false;
3902
3915
  }
3903
3916
 
3904
3917
  return r().createElement(te, {
3905
- style: wn,
3906
- onScroll: Ge,
3918
+ style: Sn,
3919
+ onScroll: Ze,
3907
3920
  "data-test": "docked-scroll-bar",
3908
3921
  ref: ze
3909
3922
  }, r().createElement(re, {
3910
- style: Cn,
3923
+ style: kn,
3911
3924
  "data-test": "docked-scroll-content"
3912
3925
  }));
3913
3926
  };
3914
- var Sn = function e() {
3927
+ var Rn = function e() {
3915
3928
  var n = Me.current;
3916
3929
  var t = He.current;
3917
3930
  /**
@@ -3928,57 +3941,57 @@
3928
3941
  }
3929
3942
  return null;
3930
3943
  };
3931
- var kn;
3932
- var On;
3933
- var Rn;
3934
- var En = !!I;
3935
- t.Children.toArray(s).forEach((function(e) {
3944
+ var En;
3945
+ var In;
3946
+ var Tn;
3947
+ var jn = !!E;
3948
+ t.Children.toArray(d).forEach((function(e) {
3936
3949
  var n = e.type.splunkUiType;
3937
3950
  if (n === "Table.Head") {
3938
- kn = vn(e);
3939
- if (!En) {
3951
+ En = bn(e);
3952
+ if (!jn) {
3940
3953
  // if all the HeadCells are fixed width, then the table is fixed.
3941
- En = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3942
- return !f()(e.props, "width");
3954
+ jn = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3955
+ return !c()(e.props, "width");
3943
3956
  }));
3944
3957
  }
3945
3958
  } else if (n === "Table.Body") {
3946
- On = mn(e);
3959
+ In = yn(e);
3947
3960
  } else if (n === "Table.Caption") {
3948
3961
  // the html spec mandates that a caption must be the first table child.
3949
3962
  // catch the caption here so that it can be placed first later. note: a
3950
3963
  // caption can be placed on the bottom side of a table by adjusting the
3951
3964
  // caption's side prop.
3952
- Rn = e;
3965
+ Tn = e;
3953
3966
  }
3954
3967
  }));
3955
- xo(kn, "A Table.Head is required.");
3956
- var In = yn(kn, En);
3968
+ xo(En, "A Table.Head is required.");
3969
+ var Dn = Cn(En, jn);
3957
3970
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
3958
3971
  // interactions will be handled by the overlaid `headTable` instead.
3959
- var Tn = t.Children.toArray(kn.props.children).filter(t.isValidElement).map((function(e) {
3972
+ var qn = t.Children.toArray(En.props.children).filter(t.isValidElement).map((function(e) {
3960
3973
 
3961
3974
  // TS: onClick is different for regular/dropdown head cells, that's ok
3962
3975
  return (0, t.cloneElement)(e, {
3963
- visible: !In
3976
+ visible: !Dn
3964
3977
  });
3965
3978
  }));
3966
- kn = (0, t.cloneElement)(kn, {}, Tn);
3967
- var jn = we || tn();
3968
- var Dn = No(y) ? He.current : jn;
3979
+ En = (0, t.cloneElement)(En, {}, qn);
3980
+ var An = we || ln();
3981
+ var Pn = No(w) ? He.current : An;
3969
3982
  if (M) {
3970
- En = false;
3983
+ jn = false;
3971
3984
  }
3972
- var qn = Sn();
3973
- var An = (0, t.useMemo)((function() {
3985
+ var _n = Rn();
3986
+ var zn = (0, t.useMemo)((function() {
3974
3987
  return {
3975
- headType: y,
3988
+ headType: w,
3976
3989
  resizableFillLayout: M,
3977
- tableContainerWidthWithoutBorders: qn
3990
+ tableContainerWidthWithoutBorders: _n
3978
3991
  };
3979
- }), [ y, M, qn ]);
3980
- var Pn = (0, t.useMemo)((function() {
3981
- if (!k) {
3992
+ }), [ w, M, _n ]);
3993
+ var Mn = (0, t.useMemo)((function() {
3994
+ if (!O) {
3982
3995
  return {
3983
3996
  onDragStart: function e() {
3984
3997
  return undefined;
@@ -4000,10 +4013,10 @@
4000
4013
  if (t === undefined) {
4001
4014
  return undefined;
4002
4015
  }
4003
- var r = Ho(Ve, t);
4004
- return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable row in position %(pos)d of %(total)d."), {
4016
+ var r = Ho(Xe, t);
4017
+ return typeof r === "number" ? (0, T.sprintf)((0, j._)("Picked up sortable row in position %(pos)d of %(total)d."), {
4005
4018
  pos: r,
4006
- total: Ve.length
4019
+ total: Xe.length
4007
4020
  }) : undefined;
4008
4021
  },
4009
4022
  onDragOver: function e(n) {
@@ -4015,12 +4028,12 @@
4015
4028
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4016
4029
  return undefined;
4017
4030
  }
4018
- var o = Ho(Ve, t.id);
4019
- var i = Ho(Ve, r.id);
4020
- return (0, D.sprintf)((0, j._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
4031
+ var o = Ho(Xe, t.id);
4032
+ var i = Ho(Xe, r.id);
4033
+ return (0, T.sprintf)((0, j._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
4021
4034
  from: o,
4022
4035
  to: i,
4023
- total: Ve.length
4036
+ total: Xe.length
4024
4037
  });
4025
4038
  },
4026
4039
  onDragEnd: function e(n) {
@@ -4028,10 +4041,10 @@
4028
4041
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4029
4042
  return undefined;
4030
4043
  }
4031
- var r = Ho(Ve, t.id);
4032
- return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row dropped at position %(pos)d of %(total)d."), {
4044
+ var r = Ho(Xe, t.id);
4045
+ return typeof r === "number" ? (0, T.sprintf)((0, j._)("Row dropped at position %(pos)d of %(total)d."), {
4033
4046
  pos: r,
4034
- total: Ve.length
4047
+ total: Xe.length
4035
4048
  }) : undefined;
4036
4049
  },
4037
4050
  onDragCancel: function e(n) {
@@ -4039,14 +4052,14 @@
4039
4052
  if (t === undefined) {
4040
4053
  return undefined;
4041
4054
  }
4042
- var r = Ho(Ve, t);
4043
- return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row returned to its starting position of %(pos)d."), {
4055
+ var r = Ho(Xe, t);
4056
+ return typeof r === "number" ? (0, T.sprintf)((0, j._)("Row returned to its starting position of %(pos)d."), {
4044
4057
  pos: r
4045
4058
  }) : undefined;
4046
4059
  }
4047
4060
  };
4048
- }), [ Ve, k ]);
4049
- var _n = (0, t.useMemo)((function() {
4061
+ }), [ Xe, O ]);
4062
+ var $n = (0, t.useMemo)((function() {
4050
4063
  if (!x) {
4051
4064
  return {
4052
4065
  onDragStart: function e() {
@@ -4069,10 +4082,10 @@
4069
4082
  if (t === undefined) {
4070
4083
  return undefined;
4071
4084
  }
4072
- var r = Ko(Ue, t);
4073
- return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4085
+ var r = Ko(Ge, t);
4086
+ return typeof r === "number" ? (0, T.sprintf)((0, j._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4074
4087
  pos: r,
4075
- total: Ue.length
4088
+ total: Ge.length
4076
4089
  }) : undefined;
4077
4090
  },
4078
4091
  onDragOver: function e(n) {
@@ -4084,13 +4097,13 @@
4084
4097
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4085
4098
  return undefined;
4086
4099
  }
4087
- var o = Ko(Ue, t.id);
4088
- var i = Ko(Ue, r.id);
4100
+ var o = Ko(Ge, t.id);
4101
+ var i = Ko(Ge, r.id);
4089
4102
  if (typeof o !== "number" || typeof i !== "number") return undefined;
4090
- return (0, D.sprintf)((0, j._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4103
+ return (0, T.sprintf)((0, j._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4091
4104
  from: o,
4092
4105
  to: i,
4093
- total: Ue.length
4106
+ total: Ge.length
4094
4107
  });
4095
4108
  },
4096
4109
  onDragEnd: function e(n) {
@@ -4098,10 +4111,10 @@
4098
4111
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4099
4112
  return undefined;
4100
4113
  }
4101
- var r = Ko(Ue, t.id);
4102
- return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column dropped at position %(pos)d of %(total)d."), {
4114
+ var r = Ko(Ge, t.id);
4115
+ return typeof r === "number" ? (0, T.sprintf)((0, j._)("Column dropped at position %(pos)d of %(total)d."), {
4103
4116
  pos: r,
4104
- total: Ue.length
4117
+ total: Ge.length
4105
4118
  }) : undefined;
4106
4119
  },
4107
4120
  onDragCancel: function e(n) {
@@ -4109,109 +4122,110 @@
4109
4122
  if (t === undefined) {
4110
4123
  return undefined;
4111
4124
  }
4112
- var r = Ko(Ue, t);
4113
- return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column returned to its starting position of %(pos)d."), {
4125
+ var r = Ko(Ge, t);
4126
+ return typeof r === "number" ? (0, T.sprintf)((0, j._)("Column returned to its starting position of %(pos)d."), {
4114
4127
  pos: r
4115
4128
  }) : undefined;
4116
4129
  }
4117
4130
  };
4118
- }), [ Ue, x ]);
4119
- var zn = (0, t.useMemo)((function() {
4131
+ }), [ Ge, x ]);
4132
+ var Nn = (0, t.useMemo)((function() {
4120
4133
  return {
4121
- screenReaderInstructions: k ? Vo : Fo,
4122
- announcements: k ? Pn : _n
4134
+ screenReaderInstructions: O ? Vo : Fo,
4135
+ announcements: O ? Mn : $n
4123
4136
  };
4124
- }), [ Pn, _n, k ]);
4125
- var Mn = (0, t.useCallback)((function(e) {
4137
+ }), [ Mn, $n, O ]);
4138
+ var Wn = (0, t.useCallback)((function(e) {
4126
4139
  var n = e.active.id;
4127
4140
  if (n.startsWith("col-") && x) {
4128
- Oe([ u.restrictToHorizontalAxis ]);
4129
- an(e);
4130
- } else if (n.startsWith("row-") && k) {
4131
- Oe([ u.restrictToVerticalAxis ]);
4141
+ Oe([ i.restrictToHorizontalAxis ]);
4142
+ sn(e);
4143
+ } else if (n.startsWith("row-") && O) {
4144
+ Oe([ i.restrictToVerticalAxis ]);
4132
4145
  }
4133
- }), [ x, k, an ]);
4134
- var $n = (0, t.useCallback)((function(e) {
4146
+ }), [ x, O, sn ]);
4147
+ var Ln = (0, t.useCallback)((function(e) {
4135
4148
  Oe([]);
4136
4149
  var n = e.active.id;
4137
4150
  if (n.startsWith("col-") && x) {
4138
- sn(e);
4139
- } else if (n.startsWith("row-") && k) {
4140
- cn(e);
4151
+ fn(e);
4152
+ } else if (n.startsWith("row-") && O) {
4153
+ vn(e);
4141
4154
  }
4142
- }), [ sn, cn, x, k ]);
4143
- var Nn = (0, t.useCallback)((function(e) {
4155
+ }), [ fn, vn, x, O ]);
4156
+ var Hn = (0, t.useCallback)((function(e) {
4144
4157
  var n = e.active.id;
4145
4158
  if (n.startsWith("col-") && x) {
4146
- un(e);
4159
+ dn(e);
4147
4160
  }
4148
- }), [ un, x ]);
4149
- var Wn = (0, t.useCallback)((function(e) {
4161
+ }), [ dn, x ]);
4162
+ var Kn = (0, t.useCallback)((function(e) {
4150
4163
  Oe([]);
4151
4164
  var n = e.active.id;
4152
- if (n.startsWith("row-") && k) {
4153
- dn();
4165
+ if (n.startsWith("row-") && O) {
4166
+ pn();
4154
4167
  }
4155
- }), [ dn, k ]);
4156
- var Ln = (0, t.useMemo)((function() {
4168
+ }), [ pn, O ]);
4169
+ var Bn = (0, t.useMemo)((function() {
4157
4170
  return function(e) {
4158
- var n = (0, a.pointerWithin)(e);
4171
+ var n = (0, o.pointerWithin)(e);
4159
4172
  // Collision detection algorithms return an array of collisions
4160
4173
  if (n.length > 0) {
4161
4174
  return n;
4162
4175
  }
4163
4176
  // If there are no collisions with the pointer, return rectangle intersections
4164
- return (0, a.rectIntersection)(e);
4177
+ return (0, o.rectIntersection)(e);
4165
4178
  };
4166
4179
  }), []);
4167
- var Hn = Pe ? fn.current[Pe] : null;
4168
- var Kn = Hn ? Co(Hn).width : undefined;
4169
- var Bn = He.current ? Co(He.current).height : undefined;
4180
+ var Vn = Pe ? mn.current[Pe] : null;
4181
+ var Fn = Vn ? Co(Vn).width : undefined;
4182
+ var Un = He.current ? Co(He.current).height : undefined;
4170
4183
 
4171
4184
  return r().createElement(Z, So({
4172
4185
  "data-test": "table",
4173
- ref: m,
4186
+ ref: b,
4174
4187
  style: P,
4175
4188
  "data-test-row-selection": q ? H : undefined
4176
- }, g()(V, [].concat(ko(Object.keys(zo)), [ "style" ]))), r().createElement(S(), {
4177
- target: tn(),
4189
+ }, h()(V, [].concat(ko(Object.keys(zo)), [ "style" ]))), r().createElement(S(), {
4190
+ target: ln(),
4178
4191
  eventType: "scroll",
4179
- listener: Je,
4192
+ listener: en,
4180
4193
  options: Xo
4181
- }), r().createElement(Mt.Provider, {
4182
- value: An
4183
- }, In, r().createElement(ee, {
4184
- onScroll: Ye,
4194
+ }), r().createElement(Lt.Provider, {
4195
+ value: zn
4196
+ }, Dn, r().createElement(ee, {
4197
+ "data-test": "scroll-container",
4198
+ onScroll: Qe,
4185
4199
  ref: He,
4186
- style: w,
4200
+ style: C,
4187
4201
  $dragging: !!Pe
4188
- }, r().createElement(E.ScrollContainerProvider, {
4189
- value: Dn
4190
- }, r().createElement(a.DndContext, {
4191
- accessibility: zn,
4192
- collisionDetection: Ln,
4202
+ }, r().createElement(k.ScrollContainerProvider, {
4203
+ value: Pn
4204
+ }, r().createElement(o.DndContext, {
4205
+ accessibility: Nn,
4206
+ collisionDetection: Bn,
4193
4207
  modifiers: ke,
4194
- onDragCancel: Wn,
4195
- onDragEnd: $n,
4196
- onDragOver: Nn,
4197
- onDragStart: Mn,
4208
+ onDragCancel: Kn,
4209
+ onDragEnd: Ln,
4210
+ onDragOver: Hn,
4211
+ onDragStart: Wn,
4198
4212
  sensors: Ce
4199
4213
  }, r().createElement(ne, {
4200
4214
  ref: Le,
4201
4215
  "data-test": "main-table",
4202
4216
  style: B,
4203
- "data-fixed-column": En ? "true" : undefined,
4217
+ "data-fixed-column": jn ? "true" : undefined,
4204
4218
  $resizableFillLayout: M
4205
- }, Rn, x ? r().createElement(l.SortableContext, {
4206
- items: Ue,
4207
- strategy: l.horizontalListSortingStrategy
4208
- }, kn) : kn, k ? r().createElement(l.SortableContext, {
4209
- items: Ve,
4210
- strategy: l.verticalListSortingStrategy
4211
- }, On) : On), Pe && r().createElement(a.DragOverlay, null, r().createElement(ie, {
4212
- $width: Kn,
4213
- $height: Bn
4214
- })), Pe && pn))), xn()));
4219
+ }, Tn, x ? r().createElement(a.SortableContext, {
4220
+ items: Ge,
4221
+ strategy: a.horizontalListSortingStrategy
4222
+ }, En) : En, O ? r().createElement(a.SortableContext, {
4223
+ items: Xe,
4224
+ strategy: a.verticalListSortingStrategy
4225
+ }, In) : In), Pe && r().createElement(o.DragOverlay, null, r().createElement(ie, {
4226
+ $width: Fn,
4227
+ $height: Un
4228
+ })), Pe && hn))), On()));
4215
4229
  }
4216
4230
  Go.propTypes = zo;
4217
4231
  Go.Body = Q;
@@ -4220,7 +4234,7 @@
4220
4234
  Go.Head = Zt;
4221
4235
  Go.HeadCell = _n;
4222
4236
  Go.HeadDropdownCell = Cr;
4223
- Go.Row = _t;
4237
+ Go.Row = Nt;
4224
4238
  /* harmony default export */ const Jo = Go;
4225
4239
  // CONCATENATED MODULE: ./src/Table/index.ts
4226
4240
  module.exports = n;