@splunk/react-ui 5.0.0-beta.4 → 5.0.0-rc.1

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 (88) hide show
  1. package/Button.js +3 -1
  2. package/ButtonSimple.js +92 -168
  3. package/CHANGELOG.md +4 -1
  4. package/CHANGELOG.v5.mdx +59 -0
  5. package/Card.js +29 -28
  6. package/Chip.js +171 -225
  7. package/Clickable.js +79 -76
  8. package/CollapsiblePanel.js +172 -164
  9. package/Color.js +584 -506
  10. package/ComboBox.js +1 -1
  11. package/ControlGroup.js +132 -127
  12. package/Date.js +163 -198
  13. package/Dropdown.js +97 -99
  14. package/DualListbox.js +439 -504
  15. package/File.js +449 -324
  16. package/FormRows.js +177 -175
  17. package/JSONTree.js +586 -617
  18. package/Layer.js +162 -97
  19. package/Link.js +20 -13
  20. package/MIGRATION.v5.mdx +98 -0
  21. package/Markdown.js +1 -1
  22. package/Menu.js +194 -195
  23. package/Message.js +119 -141
  24. package/MessageBar.js +109 -168
  25. package/ModalLayer.js +171 -217
  26. package/Multiselect.js +595 -602
  27. package/Number.js +103 -102
  28. package/Popover.js +195 -190
  29. package/Progress.js +68 -54
  30. package/RadioBar.js +146 -145
  31. package/RadioList.js +67 -65
  32. package/Resize.js +377 -265
  33. package/ResultsMenu.js +573 -663
  34. package/ScrollContainerContext.js +13 -9
  35. package/Search.js +50 -50
  36. package/Select.js +206 -199
  37. package/Slider.js +454 -329
  38. package/StepBar.js +2 -2
  39. package/Switch.js +220 -146
  40. package/TabBar.js +411 -409
  41. package/TabLayout.js +34 -34
  42. package/Table.js +1163 -1156
  43. package/Text.js +58 -58
  44. package/TextArea.js +278 -152
  45. package/Tooltip.js +173 -177
  46. package/Tree.js +177 -188
  47. package/Typography.js +30 -28
  48. package/WaitSpinner.js +6 -11
  49. package/cypress/support/commands.ts +14 -4
  50. package/cypress/support/index.d.ts +1 -1
  51. package/package.json +5 -5
  52. package/stubs-splunkui.d.ts +0 -4
  53. package/types/src/Card/Card.d.ts +3 -1
  54. package/types/src/Card/Header.d.ts +2 -0
  55. package/types/src/Card/docs/examples/HeadingTitle.d.ts +3 -0
  56. package/types/src/Clickable/Clickable.d.ts +11 -3
  57. package/types/src/Color/Color.d.ts +2 -2
  58. package/types/src/Layer/Layer.d.ts +2 -1
  59. package/types/src/Layer/index.d.ts +1 -0
  60. package/types/src/Link/Link.d.ts +4 -0
  61. package/types/src/Message/Message.d.ts +1 -1
  62. package/types/src/MessageBar/MessageBar.d.ts +1 -1
  63. package/types/src/ModalLayer/ModalLayer.d.ts +16 -21
  64. package/types/src/Multiselect/Multiselect.d.ts +1 -8
  65. package/types/src/Multiselect/Normal.d.ts +1 -7
  66. package/types/src/Multiselect/docs/examples/Children.d.ts +2 -9
  67. package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -9
  68. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -9
  69. package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -9
  70. package/types/src/Multiselect/docs/examples/Error.d.ts +2 -9
  71. package/types/src/Multiselect/docs/examples/Fetching.d.ts +2 -22
  72. package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
  73. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -25
  74. package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -9
  75. package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -9
  76. package/types/src/Popover/Popover.d.ts +4 -2
  77. package/types/src/ResultsMenu/ResultsMenu.d.ts +23 -34
  78. package/types/src/Select/SelectBase.d.ts +2 -2
  79. package/types/src/TabBar/TabBar.d.ts +8 -5
  80. package/types/src/TabBar/TabBarContext.d.ts +1 -1
  81. package/types/src/TabLayout/TabLayout.d.ts +8 -5
  82. package/types/src/Typography/Typography.d.ts +27 -22
  83. package/useRovingFocus.js +20 -23
  84. package/types/src/Date/Icon.d.ts +0 -3
  85. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +0 -3
  86. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +0 -3
  87. /package/types/src/TabBar/docs/examples/{IconsLeft.d.ts → Icons.d.ts} +0 -0
  88. /package/types/src/TabBar/docs/examples/{VerticalIconsLeft.d.ts → VerticalIcons.d.ts} +0 -0
package/Table.js CHANGED
@@ -61,14 +61,14 @@
61
61
  e.r(n);
62
62
  // EXPORTS
63
63
  e.d(n, {
64
- Body: () => /* reexport */ Z,
65
- Caption: () => /* reexport */ ve,
66
- Cell: () => /* reexport */ ke,
67
- Head: () => /* reexport */ Jt,
68
- HeadCell: () => /* reexport */ En,
69
- HeadDropdownCell: () => /* reexport */ gr,
70
- Row: () => /* reexport */ At,
71
- default: () => /* reexport */ Yo
64
+ Body: () => /* reexport */ Q,
65
+ Caption: () => /* reexport */ fe,
66
+ Cell: () => /* reexport */ Se,
67
+ Head: () => /* reexport */ Qt,
68
+ HeadCell: () => /* reexport */ In,
69
+ HeadDropdownCell: () => /* reexport */ wr,
70
+ Row: () => /* reexport */ Pt,
71
+ default: () => /* reexport */ Go
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
74
74
  const t = require("react");
@@ -106,37 +106,35 @@
106
106
  const x = require("@splunk/react-ui/EventListener");
107
107
  var S = e.n(x);
108
108
  // CONCATENATED MODULE: external "@splunk/react-ui/useResizeObserver"
109
- const k = require("@splunk/react-ui/useResizeObserver");
110
- var O = e.n(k);
109
+ const O = require("@splunk/react-ui/useResizeObserver");
110
+ var k = e.n(O);
111
111
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
112
112
  const R = require("@splunk/ui-utils/id");
113
- // CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
114
- const E = require("@splunk/ui-utils/keyboard");
115
113
  // CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
116
- const I = require("@splunk/react-ui/ScrollContainerContext");
114
+ const E = require("@splunk/react-ui/ScrollContainerContext");
117
115
  // CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
118
- const T = require("@splunk/react-ui/usePrevious");
119
- var j = e.n(T);
116
+ const I = require("@splunk/react-ui/usePrevious");
117
+ var T = e.n(I);
120
118
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
121
- const D = require("@splunk/ui-utils/i18n");
119
+ const j = require("@splunk/ui-utils/i18n");
122
120
  // CONCATENATED MODULE: external "@splunk/ui-utils/format"
123
- const q = require("@splunk/ui-utils/format");
121
+ const D = require("@splunk/ui-utils/format");
124
122
  // CONCATENATED MODULE: external "lodash/includes"
125
- const A = require("lodash/includes");
126
- var P = e.n(A);
123
+ const q = require("lodash/includes");
124
+ var A = e.n(q);
127
125
  // CONCATENATED MODULE: external "lodash/without"
128
- const _ = require("lodash/without");
129
- var z = e.n(_);
126
+ const P = require("lodash/without");
127
+ var _ = e.n(P);
130
128
  // CONCATENATED MODULE: external "styled-components"
131
- const M = require("styled-components");
132
- var $ = e.n(M);
129
+ const z = require("styled-components");
130
+ var M = e.n(z);
133
131
  // CONCATENATED MODULE: external "@splunk/themes"
134
- const N = require("@splunk/themes");
132
+ const $ = require("@splunk/themes");
135
133
  // CONCATENATED MODULE: ./src/Table/BodyStyles.ts
136
- var W = $().tbody.withConfig({
134
+ var N = M().tbody.withConfig({
137
135
  displayName: "BodyStyles__Styled",
138
136
  componentId: "sc-1k5p6pq-0"
139
- })([ "", " z-index:0;" ], N.mixins.reset("table-row-group"));
137
+ })([ "", " z-index:0;" ], $.mixins.reset("table-row-group"));
140
138
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
141
139
  /**
142
140
  * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
@@ -144,7 +142,7 @@
144
142
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
145
143
  * @param current - The new value of the ref.
146
144
  */
147
- function L(e, n) {
145
+ function W(e, n) {
148
146
  if (e) {
149
147
  if (typeof e === "function") {
150
148
  e(n);
@@ -157,8 +155,8 @@
157
155
  }
158
156
  }
159
157
  // CONCATENATED MODULE: ./src/Table/Body.tsx
160
- function H() {
161
- return H = Object.assign ? Object.assign.bind() : function(e) {
158
+ function L() {
159
+ return L = Object.assign ? Object.assign.bind() : function(e) {
162
160
  for (var n = 1; n < arguments.length; n++) {
163
161
  var t = arguments[n];
164
162
  for (var r in t) {
@@ -166,29 +164,29 @@
166
164
  }
167
165
  }
168
166
  return e;
169
- }, H.apply(null, arguments);
167
+ }, L.apply(null, arguments);
170
168
  }
171
- function K(e, n) {
172
- return X(e) || U(e, n) || V(e, n) || B();
169
+ function H(e, n) {
170
+ return U(e) || F(e, n) || B(e, n) || K();
173
171
  }
174
- function B() {
172
+ function K() {
175
173
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
176
174
  }
177
- function V(e, n) {
175
+ function B(e, n) {
178
176
  if (e) {
179
- if ("string" == typeof e) return F(e, n);
177
+ if ("string" == typeof e) return V(e, n);
180
178
  var t = {}.toString.call(e).slice(8, -1);
181
- 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) ? F(e, n) : void 0;
179
+ 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) ? V(e, n) : void 0;
182
180
  }
183
181
  }
184
- function F(e, n) {
182
+ function V(e, n) {
185
183
  (null == n || n > e.length) && (n = e.length);
186
184
  for (var t = 0, r = Array(n); t < n; t++) {
187
185
  r[t] = e[t];
188
186
  }
189
187
  return r;
190
188
  }
191
- function U(e, n) {
189
+ function F(e, n) {
192
190
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
193
191
  if (null != t) {
194
192
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -210,12 +208,12 @@
210
208
  return l;
211
209
  }
212
210
  }
213
- function X(e) {
211
+ function U(e) {
214
212
  if (Array.isArray(e)) return e;
215
213
  }
216
- function Y(e, n) {
214
+ function X(e, n) {
217
215
  if (null == e) return {};
218
- var t, r, o = G(e, n);
216
+ var t, r, o = Y(e, n);
219
217
  if (Object.getOwnPropertySymbols) {
220
218
  var i = Object.getOwnPropertySymbols(e);
221
219
  for (r = 0; r < i.length; r++) {
@@ -224,7 +222,7 @@
224
222
  }
225
223
  return o;
226
224
  }
227
- function G(e, n) {
225
+ function Y(e, n) {
228
226
  if (null == e) return {};
229
227
  var t = {};
230
228
  for (var r in e) {
@@ -235,7 +233,7 @@
235
233
  }
236
234
  return t;
237
235
  }
238
- var J = {
236
+ var G = {
239
237
  /** @private. Generally passed by Table rather than added directly. */
240
238
  actions: i().bool,
241
239
  children: i().node,
@@ -251,27 +249,27 @@
251
249
  /** @private. Generally passed by Table rather than added directly. */
252
250
  stripeRows: i().bool
253
251
  };
254
- function Q(e) {
255
- 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 = Y(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
252
+ function J(e) {
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" ]);
256
254
  // @docs-props-type BodyPropsBase
257
255
  var v = [];
258
- var p = (0, t.useState)([]), b = K(p, 2), m = b[0], h = b[1];
256
+ var p = (0, t.useState)([]), b = H(p, 2), m = b[0], h = b[1];
259
257
  var y = (0, t.useRef)(null);
260
258
  var g = (0, t.useCallback)((function(e) {
261
259
  y.current = e;
262
- L(i, e);
260
+ W(i, e);
263
261
  }), [ i, y ]);
264
262
  var w = function e(n, t, r) {
265
263
  var o = m;
266
264
  if (s === "single") {
267
- if (P()(o, t)) {
265
+ if (A()(o, t)) {
268
266
  h([]);
269
267
  } else {
270
268
  h([ t ]);
271
269
  }
272
270
  } else if (s === "multi") {
273
- if (P()(o, t)) {
274
- h(z()(o, t));
271
+ if (A()(o, t)) {
272
+ h(_()(o, t));
275
273
  } else {
276
274
  h(o === null || o === void 0 ? void 0 : o.concat(t));
277
275
  }
@@ -279,45 +277,61 @@
279
277
  r === null || r === void 0 ? void 0 : r(n);
280
278
  };
281
279
  var C = t.Children.toArray(o).filter(t.isValidElement);
282
- // elements here are in the same order as in filteredChildren
283
- var x = (0, t.useMemo)((function() {
284
- return C.map((function(e) {
285
- return e.props.expansionRow ? t.Children.map(e.props.expansionRow, (function() {
286
- return (0, R.createDOMID)();
287
- })) : undefined;
280
+ var x = (0, t.useState)(new Map), S = H(x, 2), O = S[0], k = S[1];
281
+ r().useEffect((function() {
282
+ k((function(e) {
283
+ var n = new Map(e);
284
+ var r = false;
285
+ C.forEach((function(o) {
286
+ var i;
287
+ if (!o.props.expansionRow) return;
288
+ var a = (i = o.key) !== null && i !== void 0 ? i : C.indexOf(o);
289
+ var l = t.Children.count(o.props.expansionRow);
290
+ var u = e.get(a);
291
+ if (!u || u.length !== l) {
292
+ n.set(a, Array.from({
293
+ length: l
294
+ }, (function() {
295
+ return (0, R.createDOMID)();
296
+ })));
297
+ r = true;
298
+ }
299
+ }));
300
+ return r ? n : e;
288
301
  }));
289
302
  }), [ C ]);
290
303
  C.forEach((function(e, r) {
291
304
  if (e) {
305
+ var o, i;
292
306
  if (false) {}
293
- var o = e.key;
294
- var i = r % 2 ? "even" : "odd";
295
- var u = d ? i : "none";
296
- var f = s === "controlled" ? e.props.expanded : P()(m, o);
297
- var p = function n(t) {
298
- w(t, o, e.props.onExpansion);
307
+ var u = (o = e.key) !== null && o !== void 0 ? o : r;
308
+ var f = r % 2 ? "even" : "odd";
309
+ var p = d ? f : "none";
310
+ var b = s === "controlled" ? e.props.expanded : A()(m, u);
311
+ var h = function n(t) {
312
+ w(t, u, e.props.onExpansion);
299
313
  };
300
- var b = x[r];
301
- var h = b === null || b === void 0 ? void 0 : b.join(" ");
314
+ var y = e.props.expansionRow ? (i = O.get(u)) === null || i === void 0 ? void 0 : i.join(" ") : undefined;
302
315
  v.push( (0, t.cloneElement)(e, {
303
- stripe: u,
316
+ stripe: p,
304
317
  actions: n,
305
- expanded: f,
306
- expansionRowIds: h,
318
+ expanded: b,
319
+ expansionRowIds: y,
307
320
  expandable: s !== "none",
308
321
  isDraggable: !!l,
309
322
  movableColumns: a,
310
323
  primaryColumnIndex: c,
311
- onExpansion: p,
324
+ onExpansion: h,
312
325
  key: e.key || r
313
326
  }));
314
- if (f && e.props.expansionRow && Array.isArray(b)) {
327
+ if (b && e.props.expansionRow) {
315
328
  t.Children.forEach(e.props.expansionRow, (function(e, n) {
316
- var r = b[n];
329
+ var r;
330
+ var o = (r = O.get(u)) === null || r === void 0 ? void 0 : r[n];
317
331
  v.push( (0, t.cloneElement)(e, {
318
- key: r,
319
- id: r,
320
- stripe: u,
332
+ key: o,
333
+ id: o,
334
+ stripe: p,
321
335
  movableColumns: a,
322
336
  "data-expansion-row": "true"
323
337
  }));
@@ -329,60 +343,60 @@
329
343
  return null;
330
344
  }
331
345
 
332
- return r().createElement(W, H({
346
+ return r().createElement(N, L({
333
347
  "data-test": "body"
334
348
  }, f, {
335
349
  ref: g
336
350
  }), v);
337
351
  }
338
- Q.propTypes = J;
339
- Q.splunkUiType = "Table.Body";
340
- /* harmony default export */ const Z = Q;
352
+ J.propTypes = G;
353
+ J.splunkUiType = "Table.Body";
354
+ /* harmony default export */ const Q = J;
341
355
  // CONCATENATED MODULE: ./src/Table/TableStyles.ts
342
- var ee = $().div.withConfig({
356
+ var Z = M().div.withConfig({
343
357
  displayName: "TableStyles__Styled",
344
358
  componentId: "sc-1cmfss7-0"
345
- })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], N.mixins.reset("block"));
346
- var ne = $().div.withConfig({
359
+ })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], $.mixins.reset("block"));
360
+ var ee = M().div.withConfig({
347
361
  displayName: "TableStyles__StyledTableContainer",
348
362
  componentId: "sc-1cmfss7-1"
349
363
  })([ "overflow:auto;", " &::before{content:'';width:100%;height:0;top:0;position:absolute;}" ], (function(e) {
350
364
  var n = e.$dragging;
351
- return n && (0, M.css)([ "overflow:hidden;" ]);
365
+ return n && (0, z.css)([ "overflow:hidden;" ]);
352
366
  }));
353
- var te = $().table.withConfig({
367
+ var ne = M().table.withConfig({
354
368
  displayName: "TableStyles__StyledTable",
355
369
  componentId: "sc-1cmfss7-2"
356
- })([ "", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;height:1px;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}" ], N.mixins.reset("table"), (function(e) {
370
+ })([ "", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;height:1px;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}" ], $.mixins.reset("table"), (function(e) {
357
371
  var n = e.$resizableFillLayout;
358
- return n && (0, M.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
372
+ return n && (0, z.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
359
373
  }));
360
- var re = $().div.withConfig({
374
+ var te = M().div.withConfig({
361
375
  displayName: "TableStyles__StyledDockedScrollbar",
362
376
  componentId: "sc-1cmfss7-3"
363
- })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], N.variables.zindexFixedNavbar);
364
- var oe = $().div.withConfig({
377
+ })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], $.variables.zindexFixedNavbar);
378
+ var re = M().div.withConfig({
365
379
  displayName: "TableStyles__StyledDockedScrollbarContent",
366
380
  componentId: "sc-1cmfss7-4"
367
381
  })([ "height:1px;" ]);
368
- var ie = $().caption.withConfig({
382
+ var oe = M().caption.withConfig({
369
383
  displayName: "TableStyles__StyledTableCaption",
370
384
  componentId: "sc-1cmfss7-5"
371
- })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], N.variables.spacingXSmall, N.variables.fontSizeLarge, (function(e) {
385
+ })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], $.variables.spacingXSmall, $.variables.fontSizeLarge, (function(e) {
372
386
  var n = e.side;
373
387
  return n;
374
388
  }));
375
- var ae = $().table.withConfig({
389
+ var ie = M().table.withConfig({
376
390
  displayName: "TableStyles__StyledDragShadowTable",
377
391
  componentId: "sc-1cmfss7-6"
378
- })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], N.variables.interactiveColorOverlayDrag, (function(e) {
392
+ })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], $.variables.interactiveColorOverlayDrag, (function(e) {
379
393
  var n = e.$height;
380
394
  return "".concat(n, "px");
381
395
  }), (function(e) {
382
396
  var n = e.$width;
383
397
  return "".concat(n, "px");
384
398
  }));
385
- var le = $().div.withConfig({
399
+ var ae = M().div.withConfig({
386
400
  displayName: "TableStyles__StyledGuideLine",
387
401
  componentId: "sc-1cmfss7-7"
388
402
  })([ "position:absolute;width:1px;left:", ";top:0;height:", ";pointer-events:none;background-color:", ";" ], (function(e) {
@@ -391,10 +405,10 @@
391
405
  }), (function(e) {
392
406
  var n = e.$height;
393
407
  return "".concat(n, "px");
394
- }), N.variables.interactiveColorAccent);
408
+ }), $.variables.interactiveColorAccent);
395
409
  // CONCATENATED MODULE: ./src/Table/Caption.tsx
396
- function ue() {
397
- return ue = Object.assign ? Object.assign.bind() : function(e) {
410
+ function le() {
411
+ return le = Object.assign ? Object.assign.bind() : function(e) {
398
412
  for (var n = 1; n < arguments.length; n++) {
399
413
  var t = arguments[n];
400
414
  for (var r in t) {
@@ -402,11 +416,11 @@
402
416
  }
403
417
  }
404
418
  return e;
405
- }, ue.apply(null, arguments);
419
+ }, le.apply(null, arguments);
406
420
  }
407
- function se(e, n) {
421
+ function ue(e, n) {
408
422
  if (null == e) return {};
409
- var t, r, o = ce(e, n);
423
+ var t, r, o = se(e, n);
410
424
  if (Object.getOwnPropertySymbols) {
411
425
  var i = Object.getOwnPropertySymbols(e);
412
426
  for (r = 0; r < i.length; r++) {
@@ -415,7 +429,7 @@
415
429
  }
416
430
  return o;
417
431
  }
418
- function ce(e, n) {
432
+ function se(e, n) {
419
433
  if (null == e) return {};
420
434
  var t = {};
421
435
  for (var r in e) {
@@ -426,70 +440,70 @@
426
440
  }
427
441
  return t;
428
442
  }
429
- var de = {
443
+ var ce = {
430
444
  children: i().node.isRequired,
431
445
  side: i().oneOf([ "top", "bottom" ])
432
446
  };
433
447
  /**
434
448
  * Tables that use a docked header must place the caption on the bottom side.
435
449
  * Tables that use a fixed header cannot use captions.
436
- */ function fe(e) {
437
- var n = e.children, t = e.side, o = t === void 0 ? "top" : t, i = se(e, [ "children", "side" ]);
450
+ */ function de(e) {
451
+ var n = e.children, t = e.side, o = t === void 0 ? "top" : t, i = ue(e, [ "children", "side" ]);
438
452
  // @docs-props-type CaptionPropsBase
439
453
 
440
- return r().createElement(ie, ue({
454
+ return r().createElement(oe, le({
441
455
  "data-test": "caption",
442
456
  side: o
443
457
  }, i), n);
444
458
  }
445
- fe.propTypes = de;
446
- fe.splunkUiType = "Table.Caption";
447
- /* harmony default export */ const ve = fe;
459
+ de.propTypes = ce;
460
+ de.splunkUiType = "Table.Caption";
461
+ /* harmony default export */ const fe = de;
448
462
  // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
449
- const pe = require("@splunk/react-ui/ButtonSimple");
463
+ const ve = require("@splunk/react-ui/ButtonSimple");
450
464
  // CONCATENATED MODULE: ./src/Table/CellStyles.ts
451
- var be = "2px";
452
- var me = (0, M.css)([ "box-shadow:", ";" ], N.variables.focusShadowInset);
453
- var he = $().td.withConfig({
465
+ var pe = "2px";
466
+ var be = (0, z.css)([ "box-shadow:", ";" ], $.variables.focusShadowInset);
467
+ var me = M().td.withConfig({
454
468
  displayName: "CellStyles__Styled",
455
469
  componentId: "sc-1955xk2-0"
456
- })([ "", " padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;line-height:20px;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], N.mixins.reset("table-cell"), be, N.variables.spacingSmall, N.variables.contentColorDefault, N.variables.focusShadowInset, (0,
457
- N.pickVariant)("$variant", {
458
- expand: (0, M.css)([ "padding:0;vertical-align:top;height:100%;" ]),
459
- toggle: (0, M.css)([ "padding:0;vertical-align:top;height:100%;" ])
470
+ })([ "", " padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;line-height:20px;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], $.mixins.reset("table-cell"), pe, $.variables.spacingSmall, $.variables.contentColorDefault, $.variables.focusShadowInset, (0,
471
+ $.pickVariant)("$variant", {
472
+ expand: (0, z.css)([ "padding:0;vertical-align:top;height:100%;" ]),
473
+ toggle: (0, z.css)([ "padding:0;vertical-align:top;height:100%;" ])
460
474
  }), (function(e) {
461
475
  var n = e.$variant, t = e.$isPrimaryCell;
462
- return (0, N.pickVariant)("$appearance", {
463
- data: (0, M.css)([ "", "" ], n === "actions" && (0, M.css)([ "cursor:default;*:where(button){", " &:focus{box-shadow:", ";}}" ], (0,
464
- pe.buttonMixin)("subtle", {
465
- color: N.variables.contentColorDefault
466
- }), N.variables.focusShadowInset)),
467
- rowLink: (0, M.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], N.variables.contentColorActive, t && (0,
468
- M.css)([ "text-decoration:underline;" ])),
469
- link: (0, M.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], N.variables.contentColorLink, N.variables.focusShadowInset)
476
+ return (0, $.pickVariant)("$appearance", {
477
+ data: (0, z.css)([ "", "" ], n === "actions" && (0, z.css)([ "cursor:default;*:where(button){", " &:focus{box-shadow:", ";}}" ], (0,
478
+ ve.buttonMixin)("subtle", {
479
+ color: $.variables.contentColorDefault
480
+ }), $.variables.focusShadowInset)),
481
+ rowLink: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], $.variables.contentColorActive, t && (0,
482
+ z.css)([ "text-decoration:underline;" ])),
483
+ link: (0, z.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], $.variables.contentColorLink, $.variables.focusShadowInset)
470
484
  });
471
485
  }), (function(e) {
472
486
  var n = e.$clickable, t = e.$focusWithin, r = e.$stripe;
473
- return n && (0, M.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? N.variables.neutral300 : N.variables.neutral100, me, r === "even" ? N.variables.neutral300 : N.variables.neutral100, t && (0,
474
- M.css)([ "&:focus-within{", " background-color:", ";}" ], me, r === "even" ? N.variables.neutral300 : N.variables.neutral100));
487
+ return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? $.variables.neutral300 : $.variables.neutral100, be, r === "even" ? $.variables.neutral300 : $.variables.neutral100, t && (0,
488
+ z.css)([ "&:focus-within{", " background-color:", ";}" ], be, r === "even" ? $.variables.neutral300 : $.variables.neutral100));
475
489
  }));
476
490
  /*
477
491
  * A wrapper ensures that the Table Cell contents align to the top while staying within the height of inputHeight.
478
492
  * This allows text to align properly with expand and select icons when other cell contents are larger.
479
- */ var ye = $().div.withConfig({
493
+ */ var he = M().div.withConfig({
480
494
  displayName: "CellStyles__StyledCellContent",
481
495
  componentId: "sc-1955xk2-1"
482
- })([ "display:flex;align-items:center;word-break:break-word;min-height:", ";", " ", "" ], N.variables.inputHeight, (0,
483
- N.pickVariant)("$variant", {
484
- expand: (0, M.css)([ "height:100%;" ]),
485
- toggle: (0, M.css)([ "height:100%;" ])
496
+ })([ "display:flex;align-items:center;word-break:break-word;min-height:", ";", " ", "" ], $.variables.inputHeight, (0,
497
+ $.pickVariant)("$variant", {
498
+ expand: (0, z.css)([ "height:100%;" ]),
499
+ toggle: (0, z.css)([ "height:100%;" ])
486
500
  }), (function(e) {
487
501
  var n = e.$variant, t = e.$align;
488
- return n ? (0, M.css)([ "display:block;text-align:", ";" ], t) : (0, M.css)([ "justify-content:", ";" ], t);
502
+ return n ? (0, z.css)([ "display:block;text-align:", ";" ], t) : (0, z.css)([ "justify-content:", ";text-align:", ";" ], t, t);
489
503
  }));
490
504
  // CONCATENATED MODULE: ./src/Table/Cell.tsx
491
- function ge() {
492
- return ge = Object.assign ? Object.assign.bind() : function(e) {
505
+ function ye() {
506
+ return ye = Object.assign ? Object.assign.bind() : function(e) {
493
507
  for (var n = 1; n < arguments.length; n++) {
494
508
  var t = arguments[n];
495
509
  for (var r in t) {
@@ -497,11 +511,11 @@
497
511
  }
498
512
  }
499
513
  return e;
500
- }, ge.apply(null, arguments);
514
+ }, ye.apply(null, arguments);
501
515
  }
502
- function we(e, n) {
516
+ function ge(e, n) {
503
517
  if (null == e) return {};
504
- var t, r, o = Ce(e, n);
518
+ var t, r, o = we(e, n);
505
519
  if (Object.getOwnPropertySymbols) {
506
520
  var i = Object.getOwnPropertySymbols(e);
507
521
  for (r = 0; r < i.length; r++) {
@@ -510,7 +524,7 @@
510
524
  }
511
525
  return o;
512
526
  }
513
- function Ce(e, n) {
527
+ function we(e, n) {
514
528
  if (null == e) return {};
515
529
  var t = {};
516
530
  for (var r in e) {
@@ -521,7 +535,7 @@
521
535
  }
522
536
  return t;
523
537
  }
524
- /** @public */ var xe = {
538
+ /** @public */ var Ce = {
525
539
  align: i().oneOf([ "left", "center", "right" ]),
526
540
  /** @private */
527
541
  appearance: i().oneOf([ "data", "link", "rowLink" ]),
@@ -544,14 +558,14 @@
544
558
  /** @private. */
545
559
  variant: i().oneOf([ "toggle", "expand", "drag", "actions" ])
546
560
  };
547
- function Se(e) {
548
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, b = e.variant, m = we(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
561
+ function xe(e) {
562
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, b = e.variant, m = ge(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
549
563
  // @docs-props-type CellPropsBase
550
564
  var h = f !== undefined;
551
565
  var y = a || h;
552
566
  var g = y ? "link" : "data";
553
567
  var w = (0, t.useCallback)((function(e) {
554
- L(c, e);
568
+ W(c, e);
555
569
  }), [ c ]);
556
570
  var C = (0, t.useCallback)((function(e) {
557
571
  if (b === "actions") {
@@ -561,13 +575,13 @@
561
575
  f === null || f === void 0 ? void 0 : f(e, u);
562
576
  }), [ u, f, b ]);
563
577
  var x = (0, t.useCallback)((function(e) {
564
- if ((0, E.keycode)(e.nativeEvent) === "enter") {
578
+ if (e.key === "Enter") {
565
579
  f === null || f === void 0 ? void 0 : f(e, u);
566
580
  }
567
581
  v === null || v === void 0 ? void 0 : v(e);
568
582
  }), [ u, f, v ]);
569
583
 
570
- return r().createElement(he, ge({
584
+ return r().createElement(me, ye({
571
585
  "data-test": "cell",
572
586
  $appearance: i || g,
573
587
  $clickable: y ? true : undefined,
@@ -580,89 +594,79 @@
580
594
  onKeyDown: x,
581
595
  ref: w,
582
596
  tabIndex: h ? 0 : undefined
583
- }, m), r().createElement(ye, {
597
+ }, m), r().createElement(he, {
584
598
  $align: o,
585
599
  $variant: b
586
600
  }, l));
587
601
  }
588
- Se.propTypes = xe;
589
- Se.splunkUiType = "Table.Cell";
590
- /* harmony default export */ const ke = Se;
602
+ xe.propTypes = Ce;
603
+ xe.splunkUiType = "Table.Cell";
604
+ /* harmony default export */ const Se = xe;
591
605
  // CONCATENATED MODULE: external "lodash/isString"
592
606
  const Oe = require("lodash/isString");
593
- var Re = e.n(Oe);
607
+ var ke = e.n(Oe);
594
608
  // CONCATENATED MODULE: external "lodash/merge"
595
- const Ee = require("lodash/merge");
596
- var Ie = e.n(Ee);
609
+ const Re = require("lodash/merge");
610
+ var Ee = e.n(Re);
597
611
  // CONCATENATED MODULE: external "@splunk/react-icons/ParallelDots"
598
- const Te = require("@splunk/react-icons/ParallelDots");
599
- var je = e.n(Te);
612
+ const Ie = require("@splunk/react-icons/ParallelDots");
613
+ var Te = e.n(Ie);
600
614
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
601
- const De = require("@splunk/react-icons/ArrowDown");
602
- var qe = e.n(De);
615
+ const je = require("@splunk/react-icons/ArrowDown");
616
+ var De = e.n(je);
603
617
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
604
- const Ae = require("@splunk/react-icons/ArrowUp");
605
- var Pe = e.n(Ae);
618
+ const qe = require("@splunk/react-icons/ArrowUp");
619
+ var Ae = e.n(qe);
606
620
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
607
- const _e = require("@splunk/react-icons/ArrowUpDown");
608
- var ze = e.n(_e);
621
+ const Pe = require("@splunk/react-icons/ArrowUpDown");
622
+ var _e = e.n(Pe);
609
623
  // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
610
- const Me = require("@splunk/react-icons/CaretSmallDown");
611
- var $e = e.n(Me);
624
+ const ze = require("@splunk/react-icons/CaretSmallDown");
625
+ var Me = e.n(ze);
612
626
  // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
613
- const Ne = require("@splunk/react-ui/Divider");
614
- var We = e.n(Ne);
627
+ const $e = require("@splunk/react-ui/Divider");
628
+ var Ne = e.n($e);
615
629
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
616
- var Le = "2px";
617
- var He = $().span.withConfig({
618
- displayName: "HeadInnerStyles__StyledMenuIcon",
619
- componentId: "sc-1sa0wng-0"
620
- })([ "position:relative;color:", ";" ], N.variables.contentColorDefault);
621
- var Ke = $().span.withConfig({
630
+ var We = "2px";
631
+ var Le = M().span.withConfig({
622
632
  displayName: "HeadInnerStyles__StyledLabel",
623
- componentId: "sc-1sa0wng-1"
624
- })([ "display:flex;flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", "" ], (0,
625
- N.pickVariant)("$truncate", {
626
- true: (0, M.css)([ "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" ])
627
- }), (0, N.pickVariant)("$fill", {
628
- true: (0, M.css)([ "flex:1 0 0px;" ])
629
- }), (0, N.pickVariant)("$align", {
630
- right: (0, M.css)([ "& > &{text-align:right;}" ]),
631
- left: (0, M.css)([ "& > &{text-align:left;}" ]),
632
- center: (0, M.css)([ "& > &{text-align:center;}" ])
633
+ componentId: "sc-1sa0wng-0"
634
+ })([ "display:flex;flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", "" ], (0,
635
+ $.pickVariant)("$truncate", {
636
+ true: (0, z.css)([ "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" ])
637
+ }), (0, $.pickVariant)("$align", {
638
+ right: (0, z.css)([ "& > &{text-align:right;}" ]),
639
+ left: (0, z.css)([ "& > &{text-align:left;}" ]),
640
+ center: (0, z.css)([ "& > &{text-align:center;}" ])
633
641
  }), (function(e) {
634
642
  var n = e.$variant;
635
- return n === "toggleAll" && (0, M.css)([ "width:100%;" ]);
643
+ return n === "toggleAll" && (0, z.css)([ "width:100%;" ]);
636
644
  }));
637
- var Be = $().span.withConfig({
638
- displayName: "HeadInnerStyles__StyledSortIcon",
639
- componentId: "sc-1sa0wng-2"
640
- })([ "color:", ";" ], N.variables.contentColorDefault);
641
- var Ve = (0, M.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;", ",", "{color:", ";}" ], N.variables.focusShadowInset, N.variables.contentColorActive, /* sc-sel */ Be, /* sc-sel */ He, N.variables.contentColorActive);
642
- var Fe = $().div.withConfig({
645
+ var He = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
646
+ var Ke = M().div.withConfig({
643
647
  displayName: "HeadInnerStyles__Styled",
644
- componentId: "sc-1sa0wng-3"
645
- })([ "", ";", ";", ";position:relative;flex-grow:1;justify-content:", ";gap:", ";padding:", " ", ";min-height:calc(", " + ", "*2);align-items:center;", " @media print{background-image:none;}", "" ], N.mixins.reset("flex"), N.mixins.clearfix(), N.mixins.typography("body", {
648
+ componentId: "sc-1sa0wng-1"
649
+ })([ "", ";", ";", ";position:relative;flex-grow:1;justify-content:", ";gap:", ";padding:", " ", ";min-height:calc(", " + ", "*2);align-items:center;", " @media print{background-image:none;}", "" ], $.mixins.reset("flex"), $.mixins.clearfix(), $.mixins.typography("body", {
646
650
  weight: "bold"
647
- }), (0, N.pickVariant)("$align", {
651
+ }), (0, $.pickVariant)("$align", {
648
652
  center: "center",
649
653
  left: "flex-start",
650
654
  right: "flex-end"
651
- }), N.variables.spacingXSmall, Le, N.variables.spacingSmall, N.variables.inputHeight, Le, (function(e) {
655
+ }), $.variables.spacingXSmall, We, $.variables.spacingSmall, $.variables.inputHeight, We, (function(e) {
652
656
  var n = e.$variant;
653
- return n === "toggleAll" && (0, M.css)([ "padding:0;" ]);
657
+ return n === "toggleAll" && (0, z.css)([ "padding:0;" ]);
654
658
  }), (function(e) {
655
659
  var n = e.$clickable, t = e.$focusWithin;
656
- return n && (0, M.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";", ",", "{color:", ";}}" ], Ve, t && (0,
657
- M.css)([ "&:focus-within{", "}" ], Ve), N.variables.contentColorActive, /* sc-sel */ Be, /* sc-sel */ He, N.variables.contentColorActive);
660
+ return n && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], He, t && (0,
661
+ z.css)([ "&:focus-within{", "}" ], He), $.variables.contentColorActive);
658
662
  }));
659
- var Ue = $()(We()).withConfig({
663
+ var Be = M()(Ne()).withConfig({
660
664
  displayName: "HeadInnerStyles__StyledResize",
661
- componentId: "sc-1sa0wng-4"
662
- })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > ", " > &{right:0;width:5px;}&::-moz-focus-inner{border:0;padding:0;}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], N.mixins.reset("block"), /* sc-sel */ Fe, N.variables.focusColor, N.variables.focusShadow);
665
+ componentId: "sc-1sa0wng-2"
666
+ })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:0;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], $.mixins.reset("block"), /* sc-sel */ Ke, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
663
667
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
664
668
  /* eslint-disable @typescript-eslint/no-empty-function */
665
- var Xe = {
669
+ var Ve = {
666
670
  body: {
667
671
  appendChild: function e() {
668
672
  return [];
@@ -716,14 +720,16 @@
716
720
  search: ""
717
721
  }
718
722
  };
719
- function Ye() {
720
- var e = typeof document !== "undefined" ? document : Xe;
723
+ function Fe() {
724
+ var e = typeof document !== "undefined" ? document : Ve;
721
725
  return e;
722
726
  }
727
+ var Ue = Fe();
728
+ /* harmony default export */ const Xe = /* unused pure expression or super */ null && Ue;
723
729
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
724
730
  /* eslint-disable @typescript-eslint/no-empty-function */
725
- var Ge = {
726
- document: Xe,
731
+ var Ye = {
732
+ document: Ve,
727
733
  navigator: {
728
734
  userAgent: ""
729
735
  },
@@ -777,13 +783,15 @@
777
783
  clearTimeout(n);
778
784
  }
779
785
  };
780
- function Je() {
781
- var e = typeof window !== "undefined" ? window : Ge;
786
+ function Ge() {
787
+ var e = typeof window !== "undefined" ? window : Ye;
782
788
  return e;
783
789
  }
790
+ var Je = Ge();
791
+ /* harmony default export */ const Qe = /* unused pure expression or super */ null && Je;
784
792
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
785
- function Qe() {
786
- return Qe = Object.assign ? Object.assign.bind() : function(e) {
793
+ function Ze() {
794
+ return Ze = Object.assign ? Object.assign.bind() : function(e) {
787
795
  for (var n = 1; n < arguments.length; n++) {
788
796
  var t = arguments[n];
789
797
  for (var r in t) {
@@ -791,41 +799,41 @@
791
799
  }
792
800
  }
793
801
  return e;
794
- }, Qe.apply(null, arguments);
802
+ }, Ze.apply(null, arguments);
795
803
  }
796
- function Ze(e) {
797
- return tn(e) || nn(e) || an(e) || en();
804
+ function en(e) {
805
+ return rn(e) || tn(e) || ln(e) || nn();
798
806
  }
799
- function en() {
807
+ function nn() {
800
808
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
801
809
  }
802
- function nn(e) {
810
+ function tn(e) {
803
811
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
804
812
  }
805
- function tn(e) {
806
- if (Array.isArray(e)) return ln(e);
813
+ function rn(e) {
814
+ if (Array.isArray(e)) return un(e);
807
815
  }
808
- function rn(e, n) {
809
- return sn(e) || un(e, n) || an(e, n) || on();
816
+ function on(e, n) {
817
+ return cn(e) || sn(e, n) || ln(e, n) || an();
810
818
  }
811
- function on() {
819
+ function an() {
812
820
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
813
821
  }
814
- function an(e, n) {
822
+ function ln(e, n) {
815
823
  if (e) {
816
- if ("string" == typeof e) return ln(e, n);
824
+ if ("string" == typeof e) return un(e, n);
817
825
  var t = {}.toString.call(e).slice(8, -1);
818
- 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) ? ln(e, n) : void 0;
826
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? un(e, n) : void 0;
819
827
  }
820
828
  }
821
- function ln(e, n) {
829
+ function un(e, n) {
822
830
  (null == n || n > e.length) && (n = e.length);
823
831
  for (var t = 0, r = Array(n); t < n; t++) {
824
832
  r[t] = e[t];
825
833
  }
826
834
  return r;
827
835
  }
828
- function un(e, n) {
836
+ function sn(e, n) {
829
837
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
830
838
  if (null != t) {
831
839
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -847,12 +855,12 @@
847
855
  return l;
848
856
  }
849
857
  }
850
- function sn(e) {
858
+ function cn(e) {
851
859
  if (Array.isArray(e)) return e;
852
860
  }
853
- function cn(e, n) {
861
+ function dn(e, n) {
854
862
  if (null == e) return {};
855
- var t, r, o = dn(e, n);
863
+ var t, r, o = fn(e, n);
856
864
  if (Object.getOwnPropertySymbols) {
857
865
  var i = Object.getOwnPropertySymbols(e);
858
866
  for (r = 0; r < i.length; r++) {
@@ -861,7 +869,7 @@
861
869
  }
862
870
  return o;
863
871
  }
864
- function dn(e, n) {
872
+ function fn(e, n) {
865
873
  if (null == e) return {};
866
874
  var t = {};
867
875
  for (var r in e) {
@@ -872,7 +880,7 @@
872
880
  }
873
881
  return t;
874
882
  }
875
- var fn = {
883
+ var vn = {
876
884
  align: i().oneOf([ "left", "center", "right" ]),
877
885
  clickable: i().bool,
878
886
  columnId: i().string,
@@ -890,64 +898,64 @@
890
898
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ]),
891
899
  variant: i().oneOf([ "toggleAll", "info", "actions" ])
892
900
  };
893
- var vn = new Set([ "none", "asc", "desc" ]);
894
- var pn = Object.freeze({
895
- none: (0, D._)("Click to sort"),
896
- asc: (0, D._)("Press to sort descending"),
897
- desc: (0, D._)("Press to sort ascending")
898
- });
901
+ var pn = new Set([ "none", "asc", "desc" ]);
899
902
  var bn = Object.freeze({
900
- none: ze(),
901
- asc: Pe(),
902
- desc: qe()
903
+ none: (0, j._)("Click to sort"),
904
+ asc: (0, j._)("Press to sort descending"),
905
+ desc: (0, j._)("Press to sort ascending")
903
906
  });
904
- function mn(e) {
905
- var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.columnId, l = e.elementRef, u = e.focusWithin, s = e.id, c = e.index, d = e.isMenu, f = d === void 0 ? false : d, v = e.label, p = e.onAutosizeColumn, b = e.onRequestResize, m = e.resizable, h = m === void 0 ? true : m, y = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, x = e.variant, k = e.width, O = cn(e, [ "align", "clickable", "columnId", "elementRef", "focusWithin", "id", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
907
+ var mn = Object.freeze({
908
+ none: _e(),
909
+ asc: Ae(),
910
+ desc: De()
911
+ });
912
+ function hn(e) {
913
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.columnId, l = e.elementRef, u = e.focusWithin, s = e.id, c = e.index, d = e.isMenu, f = d === void 0 ? false : d, v = e.label, p = e.onAutosizeColumn, b = e.onRequestResize, m = e.resizable, h = m === void 0 ? true : m, y = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, x = e.variant, O = e.width, k = dn(e, [ "align", "clickable", "columnId", "elementRef", "focusWithin", "id", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
906
914
  if (false) {}
907
- var R = (0, D._)("Click to open menu");
908
- var I = (0, t.useState)(false), T = rn(I, 2), j = T[0], A = T[1];
909
- var P = (0, t.useState)(0), _ = rn(P, 2), z = _[0], M = _[1];
910
- var $ = (0, t.useState)(0), N = rn($, 2), W = N[0], H = N[1];
911
- var K = (0, t.useRef)(null);
912
- var B = (0, t.useRef)(k === "auto" ? undefined : k);
915
+ var R = (0, j._)("Click to open menu");
916
+ var E = (0, t.useState)(false), I = on(E, 2), T = I[0], q = I[1];
917
+ var A = (0, t.useState)(0), P = on(A, 2), _ = P[0], z = P[1];
918
+ var M = (0, t.useState)(0), $ = on(M, 2), N = $[0], L = $[1];
919
+ var H = (0, t.useRef)(null);
920
+ var K = (0, t.useRef)(O === "auto" ? undefined : O);
921
+ var B;
913
922
  var V;
914
- var F;
915
- if (y !== undefined && vn.has(y)) {
923
+ if (y !== undefined && pn.has(y)) {
924
+ B = mn[y];
916
925
  V = bn[y];
917
- F = pn[y];
918
926
  }
919
- if (k === "auto") {
920
- var U;
921
- var X = K.current;
922
- var Y = X === null || X === void 0 ? void 0 : (U = X.parentElement) === null || U === void 0 ? void 0 : U.getBoundingClientRect();
923
- B.current = Y === null || Y === void 0 ? void 0 : Y.width;
927
+ if (O === "auto") {
928
+ var F;
929
+ var U = H.current;
930
+ var X = U === null || U === void 0 ? void 0 : (F = U.parentElement) === null || F === void 0 ? void 0 : F.getBoundingClientRect();
931
+ K.current = X === null || X === void 0 ? void 0 : X.width;
924
932
  } else {
925
- B.current = k;
933
+ K.current = O;
926
934
  }
935
+ var Y = (0, t.useCallback)((function(e) {
936
+ H.current = e;
937
+ W(l, e);
938
+ }), [ l, H ]);
927
939
  var G = (0, t.useCallback)((function(e) {
928
- K.current = e;
929
- L(l, e);
930
- }), [ l, K ]);
931
- var J = (0, t.useCallback)((function(e) {
932
- var n = (0, E.keycode)(e.nativeEvent);
940
+ var n = e.key;
933
941
  if (b === undefined || c === undefined) {
934
942
  return;
935
943
  }
936
- if (k === "auto") {
944
+ if (O === "auto") {
937
945
  var t;
938
- var r = K.current;
946
+ var r = H.current;
939
947
  var o = r === null || r === void 0 ? void 0 : (t = r.parentElement) === null || t === void 0 ? void 0 : t.getBoundingClientRect();
940
- B.current = o === null || o === void 0 ? void 0 : o.width;
948
+ K.current = o === null || o === void 0 ? void 0 : o.width;
941
949
  } else {
942
- B.current = k;
950
+ K.current = O;
943
951
  }
944
- if (B.current === undefined) {
952
+ if (K.current === undefined) {
945
953
  return;
946
954
  }
947
- if (n === "left") {
955
+ if (n === "ArrowLeft") {
948
956
  e.preventDefault();
949
957
  // prevent text selection
950
- var i = Math.max(B.current - 10, 20);
958
+ var i = Math.max(K.current - 10, 20);
951
959
  b(e, {
952
960
  index: c,
953
961
  columnId: a,
@@ -955,10 +963,10 @@
955
963
  width: i
956
964
  });
957
965
  }
958
- if (n === "right") {
966
+ if (n === "ArrowRight") {
959
967
  e.preventDefault();
960
968
  // prevent text selection
961
- var l = B.current + 10;
969
+ var l = K.current + 10;
962
970
  b(e, {
963
971
  index: c,
964
972
  columnId: a,
@@ -966,32 +974,32 @@
966
974
  width: l
967
975
  });
968
976
  }
969
- if (n === "enter") {
977
+ if (n === "Enter") {
970
978
  e.preventDefault();
971
979
  // SUI-7320: prevent sorting and dropdown opening
972
980
  }
973
- }), [ a, s, c, b, k ]);
974
- var Q = (0, t.useCallback)((function(e) {
975
- if (k === "auto") {
981
+ }), [ a, s, c, b, O ]);
982
+ var J = (0, t.useCallback)((function(e) {
983
+ if (O === "auto") {
976
984
  var n;
977
- var t = K.current;
985
+ var t = H.current;
978
986
  var r = t === null || t === void 0 ? void 0 : (n = t.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
979
- B.current = r === null || r === void 0 ? void 0 : r.width;
987
+ K.current = r === null || r === void 0 ? void 0 : r.width;
980
988
  } else {
981
- B.current = k;
989
+ K.current = O;
982
990
  }
983
- if (B.current === undefined) {
991
+ if (K.current === undefined) {
984
992
  return;
985
993
  }
986
994
  e.preventDefault();
987
995
  // prevent text selection
988
- M(e.clientX);
989
- H(B.current || 0);
990
- A(true);
991
- }), [ k ]);
992
- var Z = function e(n) {
993
- var t = z - n.clientX;
994
- var r = Math.max(W - t, 16);
996
+ z(e.clientX);
997
+ L(K.current || 0);
998
+ q(true);
999
+ }), [ O ]);
1000
+ var Q = function e(n) {
1001
+ var t = _ - n.clientX;
1002
+ var r = Math.max(N - t, 16);
995
1003
  if (c !== undefined) {
996
1004
  b === null || b === void 0 ? void 0 : b(n, {
997
1005
  index: c,
@@ -1001,10 +1009,10 @@
1001
1009
  });
1002
1010
  }
1003
1011
  };
1004
- var ee = function e() {
1005
- A(false);
1012
+ var Z = function e() {
1013
+ q(false);
1006
1014
  };
1007
- var ne = (0, t.useCallback)((function(e) {
1015
+ var ee = (0, t.useCallback)((function(e) {
1008
1016
  if (c !== undefined) {
1009
1017
  p === null || p === void 0 ? void 0 : p(e, {
1010
1018
  index: c,
@@ -1012,86 +1020,85 @@
1012
1020
  });
1013
1021
  }
1014
1022
  }), [ a, c, p ]);
1015
- var te = Je();
1016
- var re = B.current ? (0, q.sprintf)((0, D._)("%(width)d pixels"), {
1017
- width: B.current
1023
+ var ne = Ge();
1024
+ var te = K.current ? (0, D.sprintf)((0, j._)("%(width)d pixels"), {
1025
+ width: K.current
1018
1026
  }) : undefined;
1019
- var oe = a ? {
1027
+ var re = a ? {
1020
1028
  ariaControls: a
1021
1029
  } : {};
1022
1030
 
1023
- return r().createElement(Fe, Qe({
1031
+ return r().createElement(Ke, Ze({
1024
1032
  as: i ? "button" : "div",
1025
- ref: G,
1033
+ ref: Y,
1026
1034
  $align: o,
1027
1035
  $clickable: i,
1028
1036
  $focusWithin: u,
1029
1037
  $variant: x
1030
- }, g()(O, [].concat(Ze(Object.keys(mn.propTypes)), [ "id" ]))), j && r().createElement(r().Fragment, null, r().createElement(S(), {
1031
- target: te,
1038
+ }, g()(k, [].concat(en(Object.keys(hn.propTypes)), [ "id" ]))), T && r().createElement(r().Fragment, null, r().createElement(S(), {
1039
+ target: ne,
1032
1040
  eventType: "mouseup",
1033
- listener: ee
1041
+ listener: Z
1034
1042
  }), r().createElement(S(), {
1035
- target: te,
1043
+ target: ne,
1036
1044
  eventType: "mousemove",
1037
- listener: Z
1038
- })), b && h && r().createElement(Ue, Qe({
1039
- "aria-label": (0, q.sprintf)((0, D._)("Resize %(label)s"), {
1045
+ listener: Q
1046
+ })), b && h && r().createElement(Be, Ze({
1047
+ "aria-label": (0, D.sprintf)((0, j._)("Resize %(label)s"), {
1040
1048
  label: v
1041
1049
  })
1042
- }, oe, {
1043
- "aria-valuetext": re,
1050
+ }, re, {
1051
+ "aria-valuetext": te,
1044
1052
  "data-test": "resize",
1045
- onMouseDown: Q,
1046
- onDoubleClick: ne,
1047
- onKeyDown: J,
1053
+ onMouseDown: J,
1054
+ onDoubleClick: ee,
1055
+ onKeyDown: G,
1048
1056
  orientation: "vertical",
1049
1057
  tabIndex: 0
1050
- })), r().createElement(Ke, {
1058
+ })), r().createElement(Le, {
1051
1059
  $align: o,
1052
1060
  $truncate: C,
1053
- $fill: !!f,
1054
1061
  $variant: x
1055
- }, v, f &&
1056
-
1057
- // this icon indicates "has a menu" in all themes
1058
- r().createElement(He, null, r().createElement($e(), {
1062
+ }, v), f && r().createElement(Me(), {
1059
1063
  "data-test": "caret-down",
1060
1064
  "aria-label": R
1061
- }))), y && r().createElement(Be, null, V !== undefined && r().createElement(V, {
1065
+ }), y && B !== undefined && r().createElement(B, {
1062
1066
  "aria-hidden": false,
1063
- "aria-label": F
1064
- })));
1067
+ "aria-label": V
1068
+ }));
1065
1069
  }
1066
- mn.propTypes = fn;
1067
- /* harmony default export */ const hn = mn;
1070
+ hn.propTypes = vn;
1071
+ /* harmony default export */ const yn = hn;
1068
1072
  // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
1069
- var yn = $().div.withConfig({
1073
+ var gn = M().div.withConfig({
1070
1074
  displayName: "HeadCellStyles__StyledInnerWrapper",
1071
1075
  componentId: "sc-1hj81sa-0"
1072
- })([ "display:flex;" ]);
1073
- var gn = $().th.withConfig({
1076
+ })([ "display:flex;height:100%;align-items:flex-start;" ]);
1077
+ var wn = M().th.withConfig({
1074
1078
  displayName: "HeadCellStyles__Styled",
1075
1079
  componentId: "sc-1hj81sa-1"
1076
- })([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;&:not(:first-child){", "{border-left:1px solid ", ";}}*:where(button):focus{box-shadow:", ";}", " ", "" ], N.mixins.reset("table-cell"), N.variables.neutral100, (function(e) {
1080
+ })([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;height:100%;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], $.mixins.reset("table-cell"), $.variables.neutral100, (function(e) {
1077
1081
  var n = e.$variant;
1078
1082
  return n ? "middle" : "top";
1079
- }), /* sc-sel */ yn, N.variables.borderColorWeak, N.variables.focusShadowInset, (function(e) {
1083
+ }), Be, /* sc-sel */ gn, $.variables.borderColorWeak, Be, /* sc-sel */ gn, $.variables.borderColor, Be, /* sc-sel */ gn, $.variables.focusShadowInset, (function(e) {
1080
1084
  var n = e.$isDragging;
1081
- return n && (0, M.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], N.variables.backgroundColorPage);
1082
- }), (0, N.pickVariant)("$variant", {
1083
- actions: (0, M.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, pe.buttonMixin)("subtle", {
1084
- color: N.variables.contentColorDefault
1085
- }), N.variables.focusShadowInset)
1085
+ return n && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
1086
+ }), (function(e) {
1087
+ var n = e.$variant;
1088
+ return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], gn, $.variables.borderColorWeak);
1089
+ }), (0, $.pickVariant)("$variant", {
1090
+ actions: (0, z.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, ve.buttonMixin)("subtle", {
1091
+ color: $.variables.contentColorDefault
1092
+ }), $.variables.focusShadowInset)
1086
1093
  }));
1087
1094
  // TODO(SUI-7400): Refactor the drag handler of re-order column
1088
- var wn = $().div.withConfig({
1095
+ var Cn = M().div.withConfig({
1089
1096
  displayName: "HeadCellStyles__StyledDragHandler",
1090
1097
  componentId: "sc-1hj81sa-2"
1091
- })([ "display:inline-flex;align-items:center;justify-content:center;width:20px;cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], N.variables.interactiveColorOverlayHover, N.variables.contentColorActive, N.variables.interactiveColorOverlayDrag, N.variables.focusShadowInset, N.variables.contentColorActive);
1098
+ })([ "display:inline-flex;align-items:center;align-self:stretch;justify-content:center;width:20px;cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
1092
1099
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1093
- function Cn() {
1094
- return Cn = Object.assign ? Object.assign.bind() : function(e) {
1100
+ function xn() {
1101
+ return xn = Object.assign ? Object.assign.bind() : function(e) {
1095
1102
  for (var n = 1; n < arguments.length; n++) {
1096
1103
  var t = arguments[n];
1097
1104
  for (var r in t) {
@@ -1099,11 +1106,11 @@
1099
1106
  }
1100
1107
  }
1101
1108
  return e;
1102
- }, Cn.apply(null, arguments);
1109
+ }, xn.apply(null, arguments);
1103
1110
  }
1104
- function xn(e, n) {
1111
+ function Sn(e, n) {
1105
1112
  if (null == e) return {};
1106
- var t, r, o = Sn(e, n);
1113
+ var t, r, o = On(e, n);
1107
1114
  if (Object.getOwnPropertySymbols) {
1108
1115
  var i = Object.getOwnPropertySymbols(e);
1109
1116
  for (r = 0; r < i.length; r++) {
@@ -1112,7 +1119,7 @@
1112
1119
  }
1113
1120
  return o;
1114
1121
  }
1115
- function Sn(e, n) {
1122
+ function On(e, n) {
1116
1123
  if (null == e) return {};
1117
1124
  var t = {};
1118
1125
  for (var r in e) {
@@ -1163,31 +1170,31 @@
1163
1170
  visible: i().bool,
1164
1171
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ])
1165
1172
  };
1166
- var On = {
1173
+ var Rn = {
1167
1174
  asc: "ascending",
1168
1175
  desc: "descending",
1169
1176
  none: "none"
1170
1177
  };
1171
- function Rn(e) {
1172
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearClickable, a = e.children, u = e.columnId, s = e.elementRef, c = e.dragId, d = e.headCellScreenReaderText, f = e.id, v = e.index, p = e.onAutosizeColumn, b = e.onClick, m = e.onKeyDown, h = e.onRequestMoveColumn, y = e.onRequestResize, g = e.onSort, w = e.resizable, C = w === void 0 ? true : w, x = e.sortDir, S = x === void 0 ? "none" : x, k = e.sortKey, O = e.style, R = e.truncate, E = R === void 0 ? true : R, I = e.variant, T = e.visible, j = T === void 0 ? true : T, A = e.width, P = xn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "truncate", "variant", "visible", "width" ]);
1178
+ function En(e) {
1179
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearClickable, a = e.children, u = e.columnId, s = e.elementRef, c = e.dragId, d = e.headCellScreenReaderText, f = e.id, v = e.index, p = e.onAutosizeColumn, b = e.onClick, m = e.onKeyDown, h = e.onRequestMoveColumn, y = e.onRequestResize, g = e.onSort, w = e.resizable, C = w === void 0 ? true : w, x = e.sortDir, S = x === void 0 ? "none" : x, O = e.sortKey, k = e.style, R = e.truncate, E = R === void 0 ? true : R, I = e.variant, T = e.visible, q = T === void 0 ? true : T, A = e.width, P = Sn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "truncate", "variant", "visible", "width" ]);
1173
1180
  // @docs-props-type HeadCellPropsBase
1174
1181
  var _ = !!h;
1175
1182
  var z = (0, l.useSortable)({
1176
1183
  // dragId is optional in HeadCell but required by useSortable
1177
1184
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
1178
1185
  id: c
1179
- }), M = z.attributes, $ = z.isDragging, N = z.listeners, W = z.setNodeRef;
1186
+ }), M = z.attributes, $ = z.isDragging, N = z.listeners, L = z.setNodeRef;
1180
1187
  var H = (0, t.useCallback)((function(e) {
1181
- L(s, e);
1188
+ W(s, e);
1182
1189
  if (_) {
1183
- W(e);
1190
+ L(e);
1184
1191
  }
1185
- }), [ _, s, W ]);
1192
+ }), [ _, s, L ]);
1186
1193
  var K = (0, t.useCallback)((function(e) {
1187
1194
  // ignore clicks on the resize handle
1188
1195
  if (e.target.getAttribute("data-test") !== "resize" && g && v !== undefined) {
1189
1196
  g(e, {
1190
- sortKey: k,
1197
+ sortKey: O,
1191
1198
  sortDir: S,
1192
1199
  id: f,
1193
1200
  columnId: u,
@@ -1195,7 +1202,7 @@
1195
1202
  });
1196
1203
  }
1197
1204
  b === null || b === void 0 ? void 0 : b();
1198
- }), [ u, f, v, b, g, S, k ]);
1205
+ }), [ u, f, v, b, g, S, O ]);
1199
1206
  var B = (0, t.useCallback)((function(e) {
1200
1207
  if (v !== undefined) {
1201
1208
  m === null || m === void 0 ? void 0 : m(e, {
@@ -1208,34 +1215,34 @@
1208
1215
  var F = b !== undefined;
1209
1216
  var U = I === "actions" ? false : E;
1210
1217
  var X = (0, t.useMemo)((function() {
1211
- return Ie()({}, O, {
1218
+ return Ee()({}, k, {
1212
1219
  width: A
1213
1220
  });
1214
- }), [ O, A ]);
1221
+ }), [ k, A ]);
1215
1222
  var Y;
1216
1223
  if (d) {
1217
1224
  Y = d;
1218
- } else if (Re()(a)) {
1225
+ } else if (ke()(a)) {
1219
1226
  Y = a;
1220
1227
  }
1221
1228
 
1222
- return r().createElement(gn, Cn({
1229
+ return r().createElement(wn, xn({
1223
1230
  style: X,
1224
1231
  ref: H,
1225
- "aria-sort": g && (On[S] || "none"),
1232
+ "aria-sort": g && (Rn[S] || "none"),
1226
1233
  "data-test": "head-cell",
1227
- "data-test-label": Re()(a) ? a : undefined,
1234
+ "data-test-label": ke()(a) ? a : undefined,
1228
1235
  "data-test-sort-dir": g && S,
1229
- id: j ? f : undefined,
1236
+ id: q ? f : undefined,
1230
1237
  $isDragging: _ && $,
1231
1238
  $variant: I
1232
- }, P), r().createElement(yn, null, _ && r().createElement(wn, Cn({
1233
- "aria-label": (0, q.sprintf)((0, D._)("Reorder %(labelString)s"), {
1239
+ }, P), r().createElement(gn, null, _ && r().createElement(Cn, xn({
1240
+ "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
1234
1241
  labelString: Y
1235
1242
  }),
1236
1243
  "data-test": "drag",
1237
1244
  draggable: true
1238
- }, M, N), r().createElement(je(), null)), r().createElement(hn, {
1245
+ }, M, N), r().createElement(Te(), null)), r().createElement(yn, {
1239
1246
  align: o,
1240
1247
  clickable: i || V || F,
1241
1248
  columnId: u,
@@ -1247,51 +1254,51 @@
1247
1254
  onClick: g || F ? K : undefined,
1248
1255
  onKeyDown: g || F ? B : undefined,
1249
1256
  onRequestResize: y,
1250
- resizable: j && C,
1257
+ resizable: q && C,
1251
1258
  sortDir: g && S,
1252
1259
  truncate: U,
1253
1260
  variant: I,
1254
1261
  width: A
1255
1262
  })));
1256
1263
  }
1257
- Rn.propTypes = kn;
1258
- Rn.splunkUiType = "Table.HeadCell";
1259
- /* harmony default export */ const En = Rn;
1264
+ En.propTypes = kn;
1265
+ En.splunkUiType = "Table.HeadCell";
1266
+ /* harmony default export */ const In = En;
1260
1267
  // CONCATENATED MODULE: external "@dnd-kit/utilities"
1261
- const In = require("@dnd-kit/utilities");
1268
+ const Tn = require("@dnd-kit/utilities");
1262
1269
  // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
1263
- const Tn = require("@splunk/react-icons/DotsThreeVertical");
1264
- var jn = e.n(Tn);
1270
+ const jn = require("@splunk/react-icons/DotsThreeVertical");
1271
+ var Dn = e.n(jn);
1265
1272
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1266
- const Dn = require("@splunk/react-ui/Button");
1267
- var qn = e.n(Dn);
1273
+ const qn = require("@splunk/react-ui/Button");
1274
+ var An = e.n(qn);
1268
1275
  // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1269
- const An = require("@splunk/react-ui/Dropdown");
1270
- var Pn = e.n(An);
1276
+ const Pn = require("@splunk/react-ui/Dropdown");
1277
+ var _n = e.n(Pn);
1271
1278
  // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
1272
- const _n = require("@splunk/react-ui/Tooltip");
1273
- var zn = e.n(_n);
1279
+ const zn = require("@splunk/react-ui/Tooltip");
1280
+ var Mn = e.n(zn);
1274
1281
  // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1275
- const Mn = require("@splunk/react-icons/ChevronRight");
1276
- var $n = e.n(Mn);
1282
+ const $n = require("@splunk/react-icons/ChevronRight");
1283
+ var Nn = e.n($n);
1277
1284
  // CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
1278
- var Nn = "2px";
1279
- var Wn = "16px";
1280
- var Ln = (0, M.css)([ "padding-top:calc((", " + ", "*2 - ", ") / 2);" ], N.variables.inputHeight, Nn, Wn);
1281
- var Hn = $().button.withConfig({
1285
+ var Wn = "2px";
1286
+ var Ln = "16px";
1287
+ var Hn = (0, z.css)([ "padding-top:calc((", " + ", "*2 - ", ") / 2);" ], $.variables.inputHeight, Wn, Ln);
1288
+ var Kn = M().button.withConfig({
1282
1289
  displayName: "ExpandButtonStyles__StyledButton",
1283
1290
  componentId: "sc-7nlw5q-0"
1284
- })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;padding:", ";", ";color:", " &:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], N.mixins.reset("flex"), N.variables.spacingXSmall, Ln, N.variables.contentColorDefault, N.variables.contentColorActive, N.variables.contentColorActive, N.variables.focusShadowInset);
1285
- var Kn = $()($n()).withConfig({
1291
+ })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;padding:", ";", ";color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], $.mixins.reset("flex"), $.variables.spacingXSmall, Hn, $.variables.contentColorDefault, $.variables.contentColorActive, $.variables.contentColorActive, $.variables.focusShadowInset);
1292
+ var Bn = M()(Nn()).withConfig({
1286
1293
  displayName: "ExpandButtonStyles__StyledChevron",
1287
1294
  componentId: "sc-7nlw5q-1"
1288
1295
  })([ "transition:transform 200ms;", "" ], (function(e) {
1289
1296
  var n = e.$expanded;
1290
- return n && (0, M.css)([ "transform:rotate(90deg);" ]);
1297
+ return n && (0, z.css)([ "transform:rotate(90deg);" ]);
1291
1298
  }));
1292
1299
  // CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
1293
- function Bn() {
1294
- return Bn = Object.assign ? Object.assign.bind() : function(e) {
1300
+ function Vn() {
1301
+ return Vn = Object.assign ? Object.assign.bind() : function(e) {
1295
1302
  for (var n = 1; n < arguments.length; n++) {
1296
1303
  var t = arguments[n];
1297
1304
  for (var r in t) {
@@ -1299,11 +1306,11 @@
1299
1306
  }
1300
1307
  }
1301
1308
  return e;
1302
- }, Bn.apply(null, arguments);
1309
+ }, Vn.apply(null, arguments);
1303
1310
  }
1304
- function Vn(e, n) {
1311
+ function Fn(e, n) {
1305
1312
  if (null == e) return {};
1306
- var t, r, o = Fn(e, n);
1313
+ var t, r, o = Un(e, n);
1307
1314
  if (Object.getOwnPropertySymbols) {
1308
1315
  var i = Object.getOwnPropertySymbols(e);
1309
1316
  for (r = 0; r < i.length; r++) {
@@ -1312,7 +1319,7 @@
1312
1319
  }
1313
1320
  return o;
1314
1321
  }
1315
- function Fn(e, n) {
1322
+ function Un(e, n) {
1316
1323
  if (null == e) return {};
1317
1324
  var t = {};
1318
1325
  for (var r in e) {
@@ -1323,32 +1330,32 @@
1323
1330
  }
1324
1331
  return t;
1325
1332
  }
1326
- var Un = {
1333
+ var Xn = {
1327
1334
  expanded: i().bool
1328
1335
  };
1329
- var Xn = function e(n) {
1330
- var t = n.expanded, o = Vn(n, [ "expanded" ]);
1336
+ var Yn = function e(n) {
1337
+ var t = n.expanded, o = Fn(n, [ "expanded" ]);
1331
1338
 
1332
- return r().createElement(Hn, Bn({
1333
- title: t ? (0, D._)("Collapse row") : (0, D._)("Expand row")
1334
- }, o), r().createElement(Kn, {
1339
+ return r().createElement(Kn, Vn({
1340
+ title: t ? (0, j._)("Collapse row") : (0, j._)("Expand row")
1341
+ }, o), r().createElement(Bn, {
1335
1342
  $expanded: t
1336
1343
  }));
1337
1344
  };
1338
- Xn.propTypes = Un;
1339
- /* harmony default export */ const Yn = Xn;
1345
+ Yn.propTypes = Xn;
1346
+ /* harmony default export */ const Gn = Yn;
1340
1347
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
1341
- var Gn = $().td.withConfig({
1348
+ var Jn = M().td.withConfig({
1342
1349
  displayName: "RowDragCellStyles__StyledCell",
1343
1350
  componentId: "sc-9kbaj2-0"
1344
- })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], N.mixins.reset("table-cell"));
1345
- var Jn = $().div.withConfig({
1351
+ })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], $.mixins.reset("table-cell"));
1352
+ var Qn = M().div.withConfig({
1346
1353
  displayName: "RowDragCellStyles__StyledDrag",
1347
1354
  componentId: "sc-9kbaj2-1"
1348
- })([ "", " ", ";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;}" ], N.mixins.reset("flex"), N.mixins.clearfix(), N.variables.focusShadowInset, N.variables.interactiveColorOverlayDrag, N.variables.interactiveColorOverlayActive, N.variables.focusShadowInset);
1355
+ })([ "", " ", ";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);
1349
1356
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
1350
- function Qn() {
1351
- return Qn = Object.assign ? Object.assign.bind() : function(e) {
1357
+ function Zn() {
1358
+ return Zn = Object.assign ? Object.assign.bind() : function(e) {
1352
1359
  for (var n = 1; n < arguments.length; n++) {
1353
1360
  var t = arguments[n];
1354
1361
  for (var r in t) {
@@ -1356,11 +1363,11 @@
1356
1363
  }
1357
1364
  }
1358
1365
  return e;
1359
- }, Qn.apply(null, arguments);
1366
+ }, Zn.apply(null, arguments);
1360
1367
  }
1361
- function Zn(e, n) {
1368
+ function et(e, n) {
1362
1369
  if (null == e) return {};
1363
- var t, r, o = et(e, n);
1370
+ var t, r, o = nt(e, n);
1364
1371
  if (Object.getOwnPropertySymbols) {
1365
1372
  var i = Object.getOwnPropertySymbols(e);
1366
1373
  for (r = 0; r < i.length; r++) {
@@ -1369,7 +1376,7 @@
1369
1376
  }
1370
1377
  return o;
1371
1378
  }
1372
- function et(e, n) {
1379
+ function nt(e, n) {
1373
1380
  if (null == e) return {};
1374
1381
  var t = {};
1375
1382
  for (var r in e) {
@@ -1380,61 +1387,61 @@
1380
1387
  }
1381
1388
  return t;
1382
1389
  }
1383
- var nt = {
1390
+ var tt = {
1384
1391
  setActivatorNodeRef: i().func.isRequired,
1385
1392
  listeners: i().objectOf(i().func)
1386
1393
  };
1387
- function tt(e) {
1388
- var n = e.listeners, t = e.setActivatorNodeRef, o = Zn(e, [ "listeners", "setActivatorNodeRef" ]);
1394
+ function rt(e) {
1395
+ var n = e.listeners, t = e.setActivatorNodeRef, o = et(e, [ "listeners", "setActivatorNodeRef" ]);
1389
1396
 
1390
- return r().createElement(Gn, {
1397
+ return r().createElement(Jn, {
1391
1398
  "data-helper": true
1392
- }, r().createElement(Jn, Qn({
1399
+ }, r().createElement(Qn, Zn({
1393
1400
  "data-test": "drag",
1394
1401
  draggable: true,
1395
1402
  ref: t,
1396
1403
  tabIndex: 0
1397
- }, n, o), r().createElement(je(), null)));
1404
+ }, n, o), r().createElement(Te(), null)));
1398
1405
  }
1399
- tt.propTypes = nt;
1400
- /* harmony default export */ const rt = tt;
1406
+ rt.propTypes = tt;
1407
+ /* harmony default export */ const ot = rt;
1401
1408
  // CONCATENATED MODULE: ./src/Table/RowStyles.ts
1402
- var ot = $().tr.withConfig({
1409
+ var it = M().tr.withConfig({
1403
1410
  displayName: "RowStyles__StyledStripeNone",
1404
1411
  componentId: "f0igqq-0"
1405
- })([ "", ";", ";", " @media print{background-color:none;}" ], N.mixins.reset("table-row"), (function(e) {
1412
+ })([ "", ";", ";", " @media print{background-color:none;}" ], $.mixins.reset("table-row"), (function(e) {
1406
1413
  var n = e.$clickable;
1407
- return n && (0, M.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], N.variables.neutral100, N.variables.neutral100, N.variables.focusShadowInset);
1414
+ return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], $.variables.neutral100, $.variables.neutral100, $.variables.focusShadowInset);
1408
1415
  }), (function(e) {
1409
1416
  var n = e.disabled, t = e.$expandable, r = e.$isDraggable;
1410
- return !n && !t && r && (0, M.css)([ "&:hover{background-color:", ";}" ], N.variables.interactiveColorOverlayHover);
1417
+ return !n && !t && r && (0, z.css)([ "&:hover{background-color:", ";}" ], $.variables.interactiveColorOverlayHover);
1411
1418
  }));
1412
- var it = $()(ot).withConfig({
1419
+ var at = M()(it).withConfig({
1413
1420
  displayName: "RowStyles__StyledStripeEven",
1414
1421
  componentId: "f0igqq-1"
1415
- })([ "background-color:", ";", ";" ], N.variables.neutral50, (function(e) {
1422
+ })([ "background-color:", ";", ";" ], $.variables.neutral50, (function(e) {
1416
1423
  var n = e.$clickable;
1417
- return n && (0, M.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], N.variables.neutral300);
1424
+ return n && (0, z.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], $.variables.neutral300);
1418
1425
  }));
1419
1426
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1420
- const at = require("@splunk/react-ui/Clickable");
1421
- var lt = e.n(at);
1427
+ const lt = require("@splunk/react-ui/Clickable");
1428
+ var ut = e.n(lt);
1422
1429
  // CONCATENATED MODULE: external "@splunk/react-ui/NonInteractiveCheckbox"
1423
- const ut = require("@splunk/react-ui/NonInteractiveCheckbox");
1424
- var st = e.n(ut);
1430
+ const st = require("@splunk/react-ui/NonInteractiveCheckbox");
1431
+ var ct = e.n(st);
1425
1432
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
1426
- var ct = "2px";
1427
- var dt = $()(lt()).withConfig({
1433
+ var dt = "2px";
1434
+ var ft = M()(ut()).withConfig({
1428
1435
  displayName: "ToggleStyles__StyledClickable",
1429
1436
  componentId: "sc-1x3ikch-0"
1430
- })([ "height:100%;width:100%;display:flex;justify-content:center;min-height:calc(", " + ", "*2);&[disabled]{cursor:not-allowed;}" ], N.variables.inputHeight, ct);
1431
- var ft = $()(st()).withConfig({
1437
+ })([ "height:100%;width:100%;display:flex;justify-content:center;min-height:calc(", " + ", "*2);&[disabled]{cursor:not-allowed;}" ], $.variables.inputHeight, dt);
1438
+ var vt = M()(ct()).withConfig({
1432
1439
  displayName: "ToggleStyles__StyledNonInteractiveCheckbox",
1433
1440
  componentId: "sc-1x3ikch-1"
1434
- })([ "align-items:flex-start;padding-top:", ";" ], N.variables.spacingSmall);
1441
+ })([ "align-items:flex-start;padding-top:", ";" ], $.variables.spacingSmall);
1435
1442
  // CONCATENATED MODULE: ./src/Table/Toggle.tsx
1436
- function vt() {
1437
- return vt = Object.assign ? Object.assign.bind() : function(e) {
1443
+ function pt() {
1444
+ return pt = Object.assign ? Object.assign.bind() : function(e) {
1438
1445
  for (var n = 1; n < arguments.length; n++) {
1439
1446
  var t = arguments[n];
1440
1447
  for (var r in t) {
@@ -1442,11 +1449,11 @@
1442
1449
  }
1443
1450
  }
1444
1451
  return e;
1445
- }, vt.apply(null, arguments);
1452
+ }, pt.apply(null, arguments);
1446
1453
  }
1447
- function pt(e, n) {
1454
+ function bt(e, n) {
1448
1455
  if (null == e) return {};
1449
- var t, r, o = bt(e, n);
1456
+ var t, r, o = mt(e, n);
1450
1457
  if (Object.getOwnPropertySymbols) {
1451
1458
  var i = Object.getOwnPropertySymbols(e);
1452
1459
  for (r = 0; r < i.length; r++) {
@@ -1455,7 +1462,7 @@
1455
1462
  }
1456
1463
  return o;
1457
1464
  }
1458
- function bt(e, n) {
1465
+ function mt(e, n) {
1459
1466
  if (null == e) return {};
1460
1467
  var t = {};
1461
1468
  for (var r in e) {
@@ -1466,38 +1473,38 @@
1466
1473
  }
1467
1474
  return t;
1468
1475
  }
1469
- var mt = {
1476
+ var ht = {
1470
1477
  disabled: i().bool,
1471
1478
  onClick: i().func,
1472
1479
  selected: i().oneOf([ true, false, "some" ])
1473
1480
  };
1474
- function ht(e) {
1475
- var n = e.disabled, t = e.onClick, o = e.selected, i = pt(e, [ "disabled", "onClick", "selected" ]);
1481
+ function yt(e) {
1482
+ var n = e.disabled, t = e.onClick, o = e.selected, i = bt(e, [ "disabled", "onClick", "selected" ]);
1476
1483
  var a = n === true ? "disabled" : undefined;
1477
1484
 
1478
1485
  // 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).
1479
- return r().createElement(dt, vt({
1486
+ return r().createElement(ft, pt({
1480
1487
  "aria-checked": o === "some" ? "mixed" : o,
1481
1488
  disabled: a,
1482
1489
  onClick: t,
1483
1490
  role: "checkbox"
1484
- }, i), r().createElement(ft, {
1491
+ }, i), r().createElement(vt, {
1485
1492
  disabled: !!a,
1486
1493
  selected: o
1487
1494
  }));
1488
1495
  }
1489
- ht.propTypes = mt;
1490
- /* harmony default export */ const yt = ht;
1496
+ yt.propTypes = ht;
1497
+ /* harmony default export */ const gt = yt;
1491
1498
  // CONCATENATED MODULE: ./src/Table/Row.tsx
1492
- function gt(e) {
1499
+ function wt(e) {
1493
1500
  "@babel/helpers - typeof";
1494
- return gt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1501
+ return wt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1495
1502
  return typeof e;
1496
1503
  } : function(e) {
1497
1504
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1498
- }, gt(e);
1505
+ }, wt(e);
1499
1506
  }
1500
- function wt(e, n) {
1507
+ function Ct(e, n) {
1501
1508
  var t = Object.keys(e);
1502
1509
  if (Object.getOwnPropertySymbols) {
1503
1510
  var r = Object.getOwnPropertySymbols(e);
@@ -1507,42 +1514,42 @@
1507
1514
  }
1508
1515
  return t;
1509
1516
  }
1510
- function Ct(e) {
1517
+ function xt(e) {
1511
1518
  for (var n = 1; n < arguments.length; n++) {
1512
1519
  var t = null != arguments[n] ? arguments[n] : {};
1513
- n % 2 ? wt(Object(t), !0).forEach((function(n) {
1514
- xt(e, n, t[n]);
1515
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : wt(Object(t)).forEach((function(n) {
1520
+ n % 2 ? Ct(Object(t), !0).forEach((function(n) {
1521
+ St(e, n, t[n]);
1522
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ct(Object(t)).forEach((function(n) {
1516
1523
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1517
1524
  }));
1518
1525
  }
1519
1526
  return e;
1520
1527
  }
1521
- function xt(e, n, t) {
1522
- return (n = St(n)) in e ? Object.defineProperty(e, n, {
1528
+ function St(e, n, t) {
1529
+ return (n = Ot(n)) in e ? Object.defineProperty(e, n, {
1523
1530
  value: t,
1524
1531
  enumerable: !0,
1525
1532
  configurable: !0,
1526
1533
  writable: !0
1527
1534
  }) : e[n] = t, e;
1528
1535
  }
1529
- function St(e) {
1536
+ function Ot(e) {
1530
1537
  var n = kt(e, "string");
1531
- return "symbol" == gt(n) ? n : n + "";
1538
+ return "symbol" == wt(n) ? n : n + "";
1532
1539
  }
1533
1540
  function kt(e, n) {
1534
- if ("object" != gt(e) || !e) return e;
1541
+ if ("object" != wt(e) || !e) return e;
1535
1542
  var t = e[Symbol.toPrimitive];
1536
1543
  if (void 0 !== t) {
1537
1544
  var r = t.call(e, n || "default");
1538
- if ("object" != gt(r)) return r;
1545
+ if ("object" != wt(r)) return r;
1539
1546
  throw new TypeError("@@toPrimitive must return a primitive value.");
1540
1547
  }
1541
1548
  return ("string" === n ? String : Number)(e);
1542
1549
  }
1543
- function Ot(e, n) {
1550
+ function Rt(e, n) {
1544
1551
  if (null == e) return {};
1545
- var t, r, o = Rt(e, n);
1552
+ var t, r, o = Et(e, n);
1546
1553
  if (Object.getOwnPropertySymbols) {
1547
1554
  var i = Object.getOwnPropertySymbols(e);
1548
1555
  for (r = 0; r < i.length; r++) {
@@ -1551,7 +1558,7 @@
1551
1558
  }
1552
1559
  return o;
1553
1560
  }
1554
- function Rt(e, n) {
1561
+ function Et(e, n) {
1555
1562
  if (null == e) return {};
1556
1563
  var t = {};
1557
1564
  for (var r in e) {
@@ -1562,8 +1569,8 @@
1562
1569
  }
1563
1570
  return t;
1564
1571
  }
1565
- function Et() {
1566
- return Et = Object.assign ? Object.assign.bind() : function(e) {
1572
+ function It() {
1573
+ return It = Object.assign ? Object.assign.bind() : function(e) {
1567
1574
  for (var n = 1; n < arguments.length; n++) {
1568
1575
  var t = arguments[n];
1569
1576
  for (var r in t) {
@@ -1571,18 +1578,18 @@
1571
1578
  }
1572
1579
  }
1573
1580
  return e;
1574
- }, Et.apply(null, arguments);
1581
+ }, It.apply(null, arguments);
1575
1582
  }
1576
- var It = {
1577
- odd: ot,
1578
- even: it,
1579
- none: ot
1583
+ var Tt = {
1584
+ odd: it,
1585
+ even: at,
1586
+ none: it
1580
1587
  };
1581
1588
  /** @public */
1582
1589
  /** @public */
1583
1590
  /** @public */
1584
1591
  /** @public */
1585
- /** @public */ var Tt = {
1592
+ /** @public */ var jt = {
1586
1593
  /** @private. Generally passed by Table rather than added directly. */
1587
1594
  activeElementId: i().string,
1588
1595
  actionPrimary: i().element,
@@ -1621,41 +1628,41 @@
1621
1628
  /** @private. */
1622
1629
  stripe: i().oneOf([ "odd", "even", "none" ])
1623
1630
  };
1624
- var jt = r().createElement(jn(), null);
1625
- var Dt = r().forwardRef((function(e, n) {
1631
+ var Dt = r().createElement(Dn(), null);
1632
+ var qt = r().forwardRef((function(e, n) {
1626
1633
 
1627
- return r().createElement(zn(), Et({
1628
- content: (0, D._)("Actions"),
1634
+ return r().createElement(Mn(), It({
1635
+ content: (0, j._)("Actions"),
1629
1636
  contentRelationship: "label"
1630
- }, e), r().createElement(qn(), {
1637
+ }, e), r().createElement(An(), {
1631
1638
  appearance: "subtle",
1632
1639
  "data-test": "actions-secondary-toggle",
1633
- icon: jt,
1640
+ icon: Dt,
1634
1641
  elementRef: n
1635
1642
  }));
1636
1643
  }));
1637
- function qt(e) {
1644
+ function At(e) {
1638
1645
  var n;
1639
- var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, b = e.expanded, m = e.expansionRowIds, h = e.expansionRow, y = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, k = e.onRequestToggle, O = e.primaryColumnIndex, I = O === void 0 ? 0 : O, T = e.rowScreenReaderText, j = e.selected, A = e.stripe, P = A === void 0 ? "none" : A, _ = e.style, z = Ot(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" ]);
1646
+ var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, b = e.expanded, m = e.expansionRowIds, h = e.expansionRow, y = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, O = e.onRequestToggle, k = e.primaryColumnIndex, E = k === void 0 ? 0 : k, I = e.rowScreenReaderText, T = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = Rt(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1640
1647
  // @docs-props-type RowPropsBase
1641
- var M = (0, t.useMemo)((function() {
1648
+ var z = (0, t.useMemo)((function() {
1642
1649
  return {
1643
1650
  id: f ? c : (0, R.createGUID)(),
1644
1651
  disabled: !f
1645
1652
  };
1646
1653
  }), [ f, c ]);
1647
- var $ = (0, l.useSortable)(M), N = $.attributes, W = $.listeners, H = $.transform, K = $.transition, B = $.setNodeRef, V = $.setActivatorNodeRef;
1648
- var F = (0, t.useMemo)((function() {
1649
- return f ? Ct(Ct({}, _), {}, {
1650
- transform: In.CSS.Translate.toString(H),
1651
- transition: K
1652
- }) : _;
1653
- }), [ f, H, K, _ ]);
1654
- var U = (0, t.useRef)(null);
1655
- var X = (0, t.useCallback)((function(e) {
1654
+ var M = (0, l.useSortable)(z), $ = M.attributes, N = M.listeners, L = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1655
+ var V = (0, t.useMemo)((function() {
1656
+ return f ? xt(xt({}, P), {}, {
1657
+ transform: Tn.CSS.Translate.toString(L),
1658
+ transition: H
1659
+ }) : P;
1660
+ }), [ f, L, H, P ]);
1661
+ var F = (0, t.useRef)(null);
1662
+ var U = (0, t.useCallback)((function(e) {
1656
1663
  var n = e.target;
1657
1664
  while (n) {
1658
- if (U.current === n) {
1665
+ if (F.current === n) {
1659
1666
  break;
1660
1667
  }
1661
1668
  // Ignore clicks on row-actions
@@ -1668,23 +1675,23 @@
1668
1675
  C === null || C === void 0 ? void 0 : C(e, s);
1669
1676
  }
1670
1677
  }), [ s, C ]);
1671
- var Y = (0, t.useCallback)((function(e) {
1672
- if ((0, E.keycode)(e.nativeEvent) === "enter" && C) {
1678
+ var X = (0, t.useCallback)((function(e) {
1679
+ if (e.key === "Enter" && C) {
1673
1680
  C(e, s);
1674
1681
  }
1675
1682
  S === null || S === void 0 ? void 0 : S(e);
1676
1683
  }), [ s, C, S ]);
1677
- var G = (0, t.useCallback)((function(e) {
1684
+ var Y = (0, t.useCallback)((function(e) {
1678
1685
  if (!d) {
1679
1686
  e.preventDefault();
1680
- k === null || k === void 0 ? void 0 : k(e, s);
1687
+ O === null || O === void 0 ? void 0 : O(e, s);
1681
1688
  }
1682
- }), [ s, d, k ]);
1683
- var J = (0, t.useCallback)((function(e) {
1689
+ }), [ s, d, O ]);
1690
+ var G = (0, t.useCallback)((function(e) {
1684
1691
  e.preventDefault();
1685
1692
  x === null || x === void 0 ? void 0 : x(e, s);
1686
1693
  }), [ s, x ]);
1687
- var Q = function n() {
1694
+ var J = function n() {
1688
1695
  if (i && i.props.onClick) {
1689
1696
 
1690
1697
  return (0, t.cloneElement)(i, {
@@ -1697,7 +1704,7 @@
1697
1704
  }
1698
1705
  return i;
1699
1706
  };
1700
- var Z = function n() {
1707
+ var Q = function n() {
1701
1708
  if (a && a.props.children) {
1702
1709
  var r = t.Children.toArray(a.props.children).filter(t.isValidElement);
1703
1710
  var o = r.map((function(n) {
@@ -1720,150 +1727,150 @@
1720
1727
  }
1721
1728
  return a;
1722
1729
  };
1723
- function ee(e) {
1724
- U.current = e;
1725
- L(v, e);
1730
+ function Z(e) {
1731
+ F.current = e;
1732
+ W(v, e);
1726
1733
  if (f) {
1727
- B(e);
1734
+ K(e);
1728
1735
  }
1729
1736
  }
1730
- var ne = t.Children.toArray(u).map((function(e, n) {
1737
+ var ee = t.Children.toArray(u).map((function(e, n) {
1731
1738
 
1732
1739
  return (0, t.cloneElement)(e, {
1733
1740
  appearance: C ? "rowLink" : e.props.appearance,
1734
1741
  disabled: d,
1735
- isPrimaryCell: I === n,
1736
- stripe: P
1742
+ isPrimaryCell: E === n,
1743
+ stripe: A
1737
1744
  });
1738
1745
  }));
1739
- var te;
1740
- if (T) {
1741
- te = T;
1742
- } else if ((n = ne[I]) === null || n === void 0 ? void 0 : n.props.children) {
1743
- var re;
1744
- te = "".concat((re = ne[I]) === null || re === void 0 ? void 0 : re.props.children);
1746
+ var ne;
1747
+ if (I) {
1748
+ ne = I;
1749
+ } else if ((n = ee[E]) === null || n === void 0 ? void 0 : n.props.children) {
1750
+ var te;
1751
+ ne = "".concat((te = ee[E]) === null || te === void 0 ? void 0 : te.props.children);
1745
1752
  } else {
1746
- var oe;
1747
- te = "".concat((oe = ne[0]) === null || oe === void 0 ? void 0 : oe.props.children);
1753
+ var re;
1754
+ ne = "".concat((re = ee[0]) === null || re === void 0 ? void 0 : re.props.children);
1748
1755
  if (false) {}
1749
1756
  }
1750
- var ie = (0, q.sprintf)((0, D._)("%(selected)s"), {
1751
- selected: j ? "selected" : "unselected"
1757
+ var oe = (0, D.sprintf)((0, j._)("%(selected)s"), {
1758
+ selected: T ? "selected" : "unselected"
1752
1759
  });
1753
- var ae = It[P];
1754
- var le = b ? t.Children.count(h) + 1 : undefined;
1755
- var ue = w ? "false" : undefined;
1756
- var se = function e() {
1760
+ var ie = Tt[A];
1761
+ var ae = b ? t.Children.count(h) + 1 : undefined;
1762
+ var le = w ? "false" : undefined;
1763
+ var ue = function e() {
1757
1764
 
1758
- return r().createElement(Dt, null);
1765
+ return r().createElement(qt, null);
1759
1766
  };
1760
- var ce = (0, q.sprintf)((0, D._)("Collapse row - %(rowLabelValue)s"), {
1761
- rowLabelValue: te
1767
+ var se = (0, D.sprintf)((0, j._)("Collapse row - %(rowLabelValue)s"), {
1768
+ rowLabelValue: ne
1762
1769
  });
1763
- var de = (0, q.sprintf)((0, D._)("Expand row - %(rowLabelValue)s"), {
1764
- rowLabelValue: te
1770
+ var ce = (0, D.sprintf)((0, j._)("Expand row - %(rowLabelValue)s"), {
1771
+ rowLabelValue: ne
1765
1772
  });
1766
1773
 
1767
- return r().createElement(ae, Et({
1774
+ return r().createElement(ie, It({
1768
1775
  "data-test": "row",
1769
- "data-test-selected": k ? j : undefined,
1776
+ "data-test-selected": O ? T : undefined,
1770
1777
  $clickable: !!C,
1771
1778
  "data-has-movable-columns": w ? "true" : undefined,
1772
1779
  disabled: !!d,
1773
1780
  $expandable: !!p,
1774
1781
  $isDraggable: !!f,
1775
- ref: ee,
1782
+ ref: Z,
1776
1783
  tabIndex: C ? 0 : undefined
1777
- }, g()(z, "data"), {
1778
- onClick: C ? X : undefined,
1779
- onKeyDown: Y,
1780
- $rowSelected: !!(k && j),
1781
- style: F
1782
- }), f && y != null && r().createElement(rt, Et({
1783
- "aria-label": (0, q.sprintf)((0, D._)("Reorder %(rowLabelValue)s"), {
1784
- rowLabelValue: te
1784
+ }, g()(_, "data"), {
1785
+ onClick: C ? U : undefined,
1786
+ onKeyDown: X,
1787
+ $rowSelected: !!(O && T),
1788
+ style: V
1789
+ }), f && y != null && r().createElement(ot, It({
1790
+ "aria-label": (0, D.sprintf)((0, j._)("Reorder %(rowLabelValue)s"), {
1791
+ rowLabelValue: ne
1785
1792
  }),
1786
- setActivatorNodeRef: V,
1787
- listeners: W
1788
- }, N)), k && r().createElement(ke, {
1793
+ setActivatorNodeRef: B,
1794
+ listeners: N
1795
+ }, $)), O && r().createElement(Se, {
1789
1796
  align: "center",
1790
1797
  appearance: C ? "rowLink" : "data",
1791
1798
  disabled: d,
1792
1799
  variant: "toggle",
1793
- "data-movable-column": ue,
1794
- rowSpan: le,
1800
+ "data-movable-column": le,
1801
+ rowSpan: ae,
1795
1802
  "data-test": "toggle"
1796
- }, r().createElement(yt, {
1797
- "aria-label": (0, q.sprintf)((0, D._)("%(rowLabelValue)s %(selectedString)s"), {
1798
- rowLabelValue: te,
1799
- selectedString: ie
1803
+ }, r().createElement(gt, {
1804
+ "aria-label": (0, D.sprintf)((0, j._)("%(rowLabelValue)s %(selectedString)s"), {
1805
+ rowLabelValue: ne,
1806
+ selectedString: oe
1800
1807
  }),
1801
1808
  disabled: d,
1802
- onClick: G,
1803
- selected: j
1804
- })), p && h && r().createElement(ke, {
1809
+ onClick: Y,
1810
+ selected: T
1811
+ })), p && h && r().createElement(Se, {
1805
1812
  align: "center",
1806
1813
  appearance: "data",
1807
- "data-movable-column": ue,
1814
+ "data-movable-column": le,
1808
1815
  "data-test": "expand",
1809
1816
  expand: b,
1810
- rowSpan: le,
1817
+ rowSpan: ae,
1811
1818
  variant: "expand"
1812
- }, r().createElement(Yn, {
1819
+ }, r().createElement(Gn, {
1813
1820
  expanded: b,
1814
- onClick: J,
1815
- title: b ? ce : de,
1821
+ onClick: G,
1822
+ title: b ? se : ce,
1816
1823
  "aria-controls": b ? m : undefined,
1817
1824
  "aria-expanded": b
1818
- })), p && !h && r().createElement(ke, {
1825
+ })), p && !h && r().createElement(Se, {
1819
1826
  variant: "expand",
1820
- "data-movable-column": ue
1821
- }), ne, o && !i && !a && r().createElement(ke, {
1827
+ "data-movable-column": le
1828
+ }), ee, o && !i && !a && r().createElement(Se, {
1822
1829
  align: "right",
1823
1830
  appearance: C ? "rowLink" : "data",
1824
1831
  "data-test": "row-actions",
1825
1832
  variant: "actions",
1826
- "data-movable-column": ue
1827
- }), (i || a) && r().createElement(ke, {
1833
+ "data-movable-column": le
1834
+ }), (i || a) && r().createElement(Se, {
1828
1835
  align: "right",
1829
1836
  appearance: "data",
1830
1837
  "data-test": "row-actions",
1831
1838
  variant: "actions",
1832
- "data-movable-column": ue
1833
- }, i && Q(), a && r().createElement(Pn(), {
1834
- toggle: se()
1835
- }, Z())));
1836
- }
1837
- qt.propTypes = Tt;
1838
- qt.splunkUiType = "Table.Row";
1839
- /* harmony default export */ const At = qt;
1839
+ "data-movable-column": le
1840
+ }, i && J(), a && r().createElement(_n(), {
1841
+ toggle: ue()
1842
+ }, Q())));
1843
+ }
1844
+ At.propTypes = jt;
1845
+ At.splunkUiType = "Table.Row";
1846
+ /* harmony default export */ const Pt = At;
1840
1847
  // CONCATENATED MODULE: ./src/Table/TableContext.ts
1841
- var Pt = (0, t.createContext)({});
1842
- Pt.displayName = "Table";
1843
- /* harmony default export */ const _t = Pt;
1848
+ var _t = (0, t.createContext)({});
1849
+ _t.displayName = "Table";
1850
+ /* harmony default export */ const zt = _t;
1844
1851
  // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1845
- var zt = $().thead.withConfig({
1852
+ var Mt = M().thead.withConfig({
1846
1853
  displayName: "HeadStyles__Styled",
1847
1854
  componentId: "iap21t-0"
1848
- })([ "", ";", "" ], N.mixins.reset("table-header-group"), (function(e) {
1855
+ })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1849
1856
  var n = e.$isFixed, t = e.$zIndex;
1850
- return n && (0, M.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1857
+ return n && (0, z.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1851
1858
  }));
1852
- var Mt = $()(En).withConfig({
1859
+ var $t = M()(In).withConfig({
1853
1860
  displayName: "HeadStyles__StyledToggleAll",
1854
1861
  componentId: "iap21t-1"
1855
- })([ "width:32px;", "{gap:0;}" ], /* sc-sel */ Fe);
1856
- var $t = $()(En).withConfig({
1862
+ })([ "width:32px;", "{gap:0;}" ], /* sc-sel */ Ke);
1863
+ var Nt = M()(In).withConfig({
1857
1864
  displayName: "HeadStyles__StyledInfo",
1858
1865
  componentId: "iap21t-2"
1859
1866
  })([ "width:32px;" ]);
1860
- var Nt = $()(En).withConfig({
1867
+ var Wt = M()(In).withConfig({
1861
1868
  displayName: "HeadStyles__StyledDragRow",
1862
1869
  componentId: "iap21t-3"
1863
1870
  })([ "width:32px;" ]);
1864
1871
  // CONCATENATED MODULE: ./src/Table/Head.tsx
1865
- function Wt() {
1866
- return Wt = Object.assign ? Object.assign.bind() : function(e) {
1872
+ function Lt() {
1873
+ return Lt = Object.assign ? Object.assign.bind() : function(e) {
1867
1874
  for (var n = 1; n < arguments.length; n++) {
1868
1875
  var t = arguments[n];
1869
1876
  for (var r in t) {
@@ -1871,11 +1878,11 @@
1871
1878
  }
1872
1879
  }
1873
1880
  return e;
1874
- }, Wt.apply(null, arguments);
1881
+ }, Lt.apply(null, arguments);
1875
1882
  }
1876
- function Lt(e, n) {
1883
+ function Ht(e, n) {
1877
1884
  if (null == e) return {};
1878
- var t, r, o = Ht(e, n);
1885
+ var t, r, o = Kt(e, n);
1879
1886
  if (Object.getOwnPropertySymbols) {
1880
1887
  var i = Object.getOwnPropertySymbols(e);
1881
1888
  for (r = 0; r < i.length; r++) {
@@ -1884,7 +1891,7 @@
1884
1891
  }
1885
1892
  return o;
1886
1893
  }
1887
- function Ht(e, n) {
1894
+ function Kt(e, n) {
1888
1895
  if (null == e) return {};
1889
1896
  var t = {};
1890
1897
  for (var r in e) {
@@ -1895,7 +1902,7 @@
1895
1902
  }
1896
1903
  return t;
1897
1904
  }
1898
- var Kt = {
1905
+ var Bt = {
1899
1906
  /** @private. */
1900
1907
  actions: i().arrayOf(i().node),
1901
1908
  /** @private. */
@@ -1919,18 +1926,18 @@
1919
1926
  /** @private. */
1920
1927
  rowSelection: i().oneOf([ "all", "some", "none" ])
1921
1928
  };
1922
- var Bt = 1;
1923
- var Vt = {
1929
+ var Vt = 1;
1930
+ var Ft = {
1924
1931
  all: true,
1925
1932
  none: false,
1926
1933
  some: "some"
1927
1934
  };
1928
- var Ft = (0, D._)("No rows selected");
1929
- var Ut = (0, D._)("Some rows selected");
1930
- var Xt = (0, D._)("All rows selected");
1931
- var Yt = function e(n) {
1935
+ var Ut = (0, j._)("No rows selected");
1936
+ var Xt = (0, j._)("Some rows selected");
1937
+ var Yt = (0, j._)("All rows selected");
1938
+ var Gt = function e(n) {
1932
1939
  var t, r;
1933
- var o = Je();
1940
+ var o = Ge();
1934
1941
  if (!n) {
1935
1942
  return [];
1936
1943
  }
@@ -1939,9 +1946,9 @@
1939
1946
  return e.clientWidth - parseFloat(n.getPropertyValue("padding-right")) - parseFloat(n.getPropertyValue("padding-left"));
1940
1947
  }));
1941
1948
  };
1942
- function Gt(e) {
1943
- var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, b = e.onRequestToggleAllRows, m = e.rowSelection, h = Lt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
1944
- var y = (0, t.useContext)(_t), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
1949
+ function Jt(e) {
1950
+ var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, b = e.onRequestToggleAllRows, m = e.rowSelection, h = Ht(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
1951
+ var y = (0, t.useContext)(zt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
1945
1952
  var x = (0, t.useRef)(null);
1946
1953
  var S = (0, t.useRef)([]);
1947
1954
  (0, t.useEffect)((function() {
@@ -1950,7 +1957,7 @@
1950
1957
  var e;
1951
1958
  }
1952
1959
  }), [ u, p, C ]);
1953
- var k = (0, t.useCallback)((function(e) {
1960
+ var O = (0, t.useCallback)((function(e) {
1954
1961
  var n = e.fromIndex, r = e.toIndex;
1955
1962
  if (r < t.Children.toArray(u).length) {
1956
1963
  // HeadCell never requests less than zero
@@ -1960,9 +1967,9 @@
1960
1967
  });
1961
1968
  }
1962
1969
  }), [ u, v ]);
1963
- var O = (0, t.useCallback)((function(e, n) {
1970
+ var k = (0, t.useCallback)((function(e, n) {
1964
1971
  var t = n.columnId, r = n.id, o = n.index, i = n.width;
1965
- var a = Yt(x.current);
1972
+ var a = Gt(x.current);
1966
1973
  if (o >= a.length) {
1967
1974
  p === null || p === void 0 ? void 0 : p(e, n);
1968
1975
  return;
@@ -2043,12 +2050,12 @@
2043
2050
  } else {
2044
2051
  // make the cell as big as we can without letting perceivedWidthOfLastCell go below cellMinWidth
2045
2052
  var C = g - l;
2046
- var k = u + C;
2053
+ var O = u + C;
2047
2054
  p === null || p === void 0 ? void 0 : p(e, {
2048
2055
  columnId: t,
2049
2056
  id: r,
2050
2057
  index: o,
2051
- width: k
2058
+ width: O
2052
2059
  });
2053
2060
  }
2054
2061
  } else {
@@ -2062,7 +2069,7 @@
2062
2069
  }
2063
2070
  }), [ l, p, w ]);
2064
2071
  var R = (0, t.useCallback)((function(e) {
2065
- L(s, e);
2072
+ W(s, e);
2066
2073
  x.current = e;
2067
2074
  }), [ s ]);
2068
2075
  var E = (0, t.useMemo)((function() {
@@ -2076,25 +2083,25 @@
2076
2083
 
2077
2084
  return (0, t.cloneElement)(n, {
2078
2085
  index: r,
2079
- onRequestResize: C ? O : p,
2080
- onRequestMoveColumn: v ? k : undefined,
2086
+ onRequestResize: C ? k : p,
2087
+ onRequestMoveColumn: v ? O : undefined,
2081
2088
  onAutosizeColumn: f,
2082
2089
  key: n.key || n.props.columnId || r
2083
2090
  });
2084
2091
  }));
2085
2092
  S.current = e;
2086
2093
  return n;
2087
- }), [ E, C, O, p, v, k, f ]);
2088
- var j = m === undefined ? undefined : Vt[m];
2094
+ }), [ E, C, k, p, v, O, f ]);
2095
+ var j = m === undefined ? undefined : Ft[m];
2089
2096
  var D = i || 48;
2090
2097
  var q = g === "fixed" ? "fixed-head" : "head";
2091
2098
  var A;
2092
2099
  if (j === "some") {
2093
- A = Ut;
2094
- } else if (j) {
2095
2100
  A = Xt;
2101
+ } else if (j) {
2102
+ A = Yt;
2096
2103
  } else {
2097
- A = Ft;
2104
+ A = Ut;
2098
2105
  }
2099
2106
  var P = (0, t.useMemo)((function() {
2100
2107
  return {
@@ -2107,33 +2114,33 @@
2107
2114
  };
2108
2115
  }), [ i ]);
2109
2116
 
2110
- return r().createElement(zt, Wt({
2117
+ return r().createElement(Mt, Lt({
2111
2118
  ref: R,
2112
2119
  "data-test": q,
2113
2120
  $isFixed: g === "fixed",
2114
- $zIndex: I + Bt
2115
- }, h), r().createElement(At, null, c && r().createElement(Nt, {
2121
+ $zIndex: I + Vt
2122
+ }, h), r().createElement(Pt, null, c && r().createElement(Wt, {
2116
2123
  key: "drag_rows_head_cell",
2117
2124
  "data-test": "drag-rows-head-cell",
2118
2125
  align: "center",
2119
2126
  resizable: false
2120
- }), b && r().createElement(Mt, {
2127
+ }), b && r().createElement($t, {
2121
2128
  key: "toggle_all",
2122
2129
  resizable: false,
2123
2130
  align: "center",
2124
2131
  variant: "toggleAll",
2125
2132
  truncate: false,
2126
2133
  "data-test": "toggle-all"
2127
- }, r().createElement(yt, {
2134
+ }, r().createElement(gt, {
2128
2135
  "aria-label": A,
2129
2136
  onClick: b,
2130
2137
  selected: j
2131
- })), d && r().createElement($t, {
2138
+ })), d && r().createElement(Nt, {
2132
2139
  key: "more_info_head_cell",
2133
2140
  "data-test": "more-info-head-cell",
2134
2141
  resizable: false,
2135
2142
  variant: "info"
2136
- }), T, o.length > 0 && r().createElement(En, {
2143
+ }), T, o.length > 0 && r().createElement(In, {
2137
2144
  key: "actions_head_cell",
2138
2145
  "data-test": "actions-head-cell",
2139
2146
  align: "right",
@@ -2141,7 +2148,7 @@
2141
2148
  width: D,
2142
2149
  style: P,
2143
2150
  variant: "actions"
2144
- }, o), o.length === 0 && i && r().createElement(En, {
2151
+ }, o), o.length === 0 && i && r().createElement(In, {
2145
2152
  key: "actions_head_cell",
2146
2153
  "data-test": "actions-head-cell",
2147
2154
  align: "right",
@@ -2151,24 +2158,24 @@
2151
2158
  variant: "actions"
2152
2159
  }, " ")));
2153
2160
  }
2154
- Gt.propTypes = Kt;
2155
- Gt.splunkUiType = "Table.Head";
2156
- /* harmony default export */ const Jt = Gt;
2161
+ Jt.propTypes = Bt;
2162
+ Jt.splunkUiType = "Table.Head";
2163
+ /* harmony default export */ const Qt = Jt;
2157
2164
  // CONCATENATED MODULE: external "lodash/isFinite"
2158
- const Qt = require("lodash/isFinite");
2159
- var Zt = e.n(Qt);
2165
+ const Zt = require("lodash/isFinite");
2166
+ var er = e.n(Zt);
2160
2167
  // CONCATENATED MODULE: external "lodash/isFunction"
2161
- const er = require("lodash/isFunction");
2162
- var nr = e.n(er);
2168
+ const nr = require("lodash/isFunction");
2169
+ var tr = e.n(nr);
2163
2170
  // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
2164
- const tr = require("@splunk/react-ui/Popover");
2165
- var rr = e.n(tr);
2171
+ const rr = require("@splunk/react-ui/Popover");
2172
+ var or = e.n(rr);
2166
2173
  // CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
2167
- const or = require("@splunk/react-ui/useControlled");
2168
- var ir = e.n(or);
2174
+ const ir = require("@splunk/react-ui/useControlled");
2175
+ var ar = e.n(ir);
2169
2176
  // CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
2170
- function ar() {
2171
- return ar = Object.assign ? Object.assign.bind() : function(e) {
2177
+ function lr() {
2178
+ return lr = Object.assign ? Object.assign.bind() : function(e) {
2172
2179
  for (var n = 1; n < arguments.length; n++) {
2173
2180
  var t = arguments[n];
2174
2181
  for (var r in t) {
@@ -2176,29 +2183,29 @@
2176
2183
  }
2177
2184
  }
2178
2185
  return e;
2179
- }, ar.apply(null, arguments);
2186
+ }, lr.apply(null, arguments);
2180
2187
  }
2181
- function lr(e, n) {
2182
- return fr(e) || dr(e, n) || sr(e, n) || ur();
2188
+ function ur(e, n) {
2189
+ return vr(e) || fr(e, n) || cr(e, n) || sr();
2183
2190
  }
2184
- function ur() {
2191
+ function sr() {
2185
2192
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2186
2193
  }
2187
- function sr(e, n) {
2194
+ function cr(e, n) {
2188
2195
  if (e) {
2189
- if ("string" == typeof e) return cr(e, n);
2196
+ if ("string" == typeof e) return dr(e, n);
2190
2197
  var t = {}.toString.call(e).slice(8, -1);
2191
- 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) ? cr(e, n) : void 0;
2198
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dr(e, n) : void 0;
2192
2199
  }
2193
2200
  }
2194
- function cr(e, n) {
2201
+ function dr(e, n) {
2195
2202
  (null == n || n > e.length) && (n = e.length);
2196
2203
  for (var t = 0, r = Array(n); t < n; t++) {
2197
2204
  r[t] = e[t];
2198
2205
  }
2199
2206
  return r;
2200
2207
  }
2201
- function dr(e, n) {
2208
+ function fr(e, n) {
2202
2209
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2203
2210
  if (null != t) {
2204
2211
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2220,12 +2227,12 @@
2220
2227
  return l;
2221
2228
  }
2222
2229
  }
2223
- function fr(e) {
2230
+ function vr(e) {
2224
2231
  if (Array.isArray(e)) return e;
2225
2232
  }
2226
- function vr(e, n) {
2233
+ function pr(e, n) {
2227
2234
  if (null == e) return {};
2228
- var t, r, o = pr(e, n);
2235
+ var t, r, o = br(e, n);
2229
2236
  if (Object.getOwnPropertySymbols) {
2230
2237
  var i = Object.getOwnPropertySymbols(e);
2231
2238
  for (r = 0; r < i.length; r++) {
@@ -2234,7 +2241,7 @@
2234
2241
  }
2235
2242
  return o;
2236
2243
  }
2237
- function pr(e, n) {
2244
+ function br(e, n) {
2238
2245
  if (null == e) return {};
2239
2246
  var t = {};
2240
2247
  for (var r in e) {
@@ -2247,19 +2254,19 @@
2247
2254
  }
2248
2255
  /** @public */
2249
2256
  /** @public */
2250
- /** @public */ var br = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2251
- var mr = {
2257
+ /** @public */ var mr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2258
+ var hr = {
2252
2259
  align: i().oneOf([ "left", "center", "right" ]),
2253
2260
  buttonRef: i().oneOfType([ i().func, i().object ]),
2254
2261
  canCoverHead: i().bool,
2255
2262
  children: i().node.isRequired,
2256
- closeReasons: i().arrayOf(i().oneOf(br)),
2263
+ closeReasons: i().arrayOf(i().oneOf(mr)),
2257
2264
  columnId: i().string,
2258
2265
  /** @private. */
2259
2266
  dragId: i().oneOfType([ i().string, i().number ]),
2260
2267
  elementRef: i().oneOfType([ i().func, i().object ]),
2261
2268
  headCellScreenReaderText: i().string,
2262
- focusToggleReasons: i().arrayOf(i().oneOf(br)),
2269
+ focusToggleReasons: i().arrayOf(i().oneOf(mr)),
2263
2270
  /** @private The index of the cell, skipping the info column. */
2264
2271
  index: i().number,
2265
2272
  label: i().node,
@@ -2291,24 +2298,24 @@
2291
2298
  /** @private. */
2292
2299
  variant: i().oneOf([ "toggleAll", "info", "actions" ])
2293
2300
  };
2294
- var hr = [ "contentClick", "escapeKey", "toggleClick" ];
2295
- function yr(e) {
2296
- 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 ? br : c, f = e.columnId, v = e.dragId, p = e.elementRef, b = e.headCellScreenReaderText, m = e.focusToggleReasons, h = m === void 0 ? hr : m, 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, T = e.repositionMode, A = T === void 0 ? "flip" : T, _ = e.resizable, z = _ === void 0 ? true : _, M = e.retainFocus, $ = e.style, N = e.takeFocus, W = 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 = vr(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" ]);
2301
+ var yr = [ "contentClick", "escapeKey", "toggleClick" ];
2302
+ function gr(e) {
2303
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.buttonRef, a = e.canCoverHead, u = a === void 0 ? true : a, s = e.children, c = e.closeReasons, d = c === void 0 ? mr : c, f = e.columnId, v = e.dragId, p = e.elementRef, b = e.headCellScreenReaderText, m = e.focusToggleReasons, h = m === void 0 ? yr : m, y = e.id, g = e.index, w = e.label, C = e.onAutosizeColumn, x = e.onKeyDown, S = e.onRequestClose, O = e.onRequestMoveColumn, k = e.onRequestOpen, E = e.onRequestResize, I = e.open, q = e.repositionMode, P = q === void 0 ? "flip" : q, _ = e.resizable, z = _ === void 0 ? true : _, M = e.retainFocus, $ = e.style, N = e.takeFocus, L = N === void 0 ? true : N, H = e.truncate, K = H === void 0 ? true : H, B = e.variant, V = e.visible, F = V === void 0 ? true : V, U = e.width, X = pr(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2297
2304
  // @docs-props-type HeadDropdownCellPropsBase
2298
- var Y = ir()({
2305
+ var Y = ar()({
2299
2306
  componentName: "HeadDropdownCell",
2300
2307
  /* eslint-disable-next-line prefer-rest-params */
2301
2308
  componentProps: arguments[0],
2302
2309
  // see SUI-7028
2303
2310
  valuePropName: "open"
2304
2311
  });
2305
- var G = (0, t.useState)(), J = lr(G, 2), Q = J[0], Z = J[1];
2306
- var ee = (0, t.useState)(null), ne = lr(ee, 2), te = ne[0], re = ne[1];
2307
- var oe = (0, t.useState)(null), ie = lr(oe, 2), ae = ie[0], le = ie[1];
2308
- var ue = (0, t.useState)(false), se = lr(ue, 2), ce = se[0], de = se[1];
2312
+ var G = (0, t.useState)(), J = ur(G, 2), Q = J[0], Z = J[1];
2313
+ var ee = (0, t.useState)(null), ne = ur(ee, 2), te = ne[0], re = ne[1];
2314
+ var oe = (0, t.useState)(null), ie = ur(oe, 2), ae = ie[0], le = ie[1];
2315
+ var ue = (0, t.useState)(false), se = ur(ue, 2), ce = se[0], de = se[1];
2309
2316
  var fe = (0, R.createDOMID)("popover");
2310
2317
  var ve = (0, R.createDOMID)("cellId");
2311
- var pe = !!k;
2318
+ var pe = !!O;
2312
2319
  var be = (0, l.useSortable)({
2313
2320
  // dragId is optional in HeadCell but required by useSortable
2314
2321
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
@@ -2317,7 +2324,7 @@
2317
2324
  var we = (0, t.useMemo)((function() {
2318
2325
  return Y ? I : ce;
2319
2326
  }), [ Y, ce, I ]);
2320
- var Ce = j()(F);
2327
+ var Ce = T()(F);
2321
2328
  var xe = y || ve;
2322
2329
  (0, t.useEffect)((function() {
2323
2330
  if (false) {}
@@ -2334,8 +2341,8 @@
2334
2341
  r = r.parentNode;
2335
2342
  }
2336
2343
  }
2337
- if (we && P()(d, n) && g !== undefined) {
2338
- if (P()(h, n)) {
2344
+ if (we && A()(d, n) && g !== undefined) {
2345
+ if (A()(h, n)) {
2339
2346
  ae === null || ae === void 0 ? void 0 : ae.focus();
2340
2347
  }
2341
2348
  if (!Y) {
@@ -2355,16 +2362,16 @@
2355
2362
  });
2356
2363
  }
2357
2364
  }), [ Se, Ce, F ]);
2358
- var ke = (0, t.useCallback)((function(e) {
2359
- L(p, e);
2365
+ var Oe = (0, t.useCallback)((function(e) {
2366
+ W(p, e);
2360
2367
  if (pe) {
2361
2368
  ye(e);
2362
2369
  }
2363
2370
  }), [ pe, p, ye ]);
2364
- var Oe = (0, t.useCallback)((function(e) {
2371
+ var ke = (0, t.useCallback)((function(e) {
2365
2372
  le(e);
2366
2373
  re(e);
2367
- L(i, e);
2374
+ W(i, e);
2368
2375
  }), [ i ]);
2369
2376
  var Re = (0, t.useCallback)((function(e) {
2370
2377
  e.stopPropagation();
@@ -2381,7 +2388,7 @@
2381
2388
  event: e
2382
2389
  });
2383
2390
  } else if (g !== undefined) {
2384
- O === null || O === void 0 ? void 0 : O(e, {
2391
+ k === null || k === void 0 ? void 0 : k(e, {
2385
2392
  reason: "toggleClick",
2386
2393
  columnId: f,
2387
2394
  index: g
@@ -2390,8 +2397,8 @@
2390
2397
  de(true);
2391
2398
  }
2392
2399
  }
2393
- }), [ f, Se, g, Y, we, O ]);
2394
- var Ee = (0, t.useCallback)((function(e) {
2400
+ }), [ f, Se, g, Y, we, k ]);
2401
+ var Ie = (0, t.useCallback)((function(e) {
2395
2402
  if (g !== undefined) {
2396
2403
  x === null || x === void 0 ? void 0 : x(e, {
2397
2404
  index: g,
@@ -2399,14 +2406,14 @@
2399
2406
  });
2400
2407
  }
2401
2408
  }), [ f, g, x ]);
2402
- var Te = (0, t.useCallback)((function(e) {
2409
+ var je = (0, t.useCallback)((function(e) {
2403
2410
  Se({
2404
2411
  reason: "contentClick",
2405
2412
  event: e
2406
2413
  });
2407
2414
  }), [ Se ]);
2408
2415
  var De = (0, t.useMemo)((function() {
2409
- if (Q !== undefined && Zt()(Q)) {
2416
+ if (Q !== undefined && er()(Q)) {
2410
2417
  var e;
2411
2418
  return {
2412
2419
  x: Q - ((e = te === null || te === void 0 ? void 0 : te.getBoundingClientRect().left) !== null && e !== void 0 ? e : 0)
@@ -2415,7 +2422,7 @@
2415
2422
  return undefined;
2416
2423
  }), [ Q, te ]);
2417
2424
  var qe = (0, t.useMemo)((function() {
2418
- return Ie()({}, $, {
2425
+ return Ee()({}, $, {
2419
2426
  width: U
2420
2427
  });
2421
2428
  }), [ $, U ]);
@@ -2426,26 +2433,26 @@
2426
2433
  Ae = w;
2427
2434
  }
2428
2435
 
2429
- return r().createElement(gn, ar({
2436
+ return r().createElement(wn, lr({
2430
2437
  style: qe,
2431
2438
  "data-test": "head-cell",
2432
2439
  $isDragging: pe && ge,
2433
2440
  $variant: B,
2434
2441
  id: F ? xe : undefined,
2435
- ref: ke
2436
- }, X), r().createElement(yn, null, pe && r().createElement(wn, ar({
2437
- "aria-label": (0, q.sprintf)((0, D._)("Reorder %(labelString)s"), {
2442
+ ref: Oe
2443
+ }, X), r().createElement(gn, null, pe && r().createElement(Cn, lr({
2444
+ "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
2438
2445
  labelString: Ae
2439
2446
  }),
2440
2447
  "data-test": "drag"
2441
- }, me, he), r().createElement(je(), null)), r().createElement(hn, {
2448
+ }, me, he), r().createElement(Te(), null)), r().createElement(yn, {
2442
2449
  align: o,
2443
2450
  "aria-expanded": we,
2444
2451
  "aria-haspopup": true,
2445
2452
  "aria-owns": fe,
2446
2453
  clickable: true,
2447
2454
  columnId: f,
2448
- elementRef: Oe,
2455
+ elementRef: ke,
2449
2456
  id: y,
2450
2457
  index: g,
2451
2458
  isMenu: true,
@@ -2454,57 +2461,57 @@
2454
2461
  onAutosizeColumn: C,
2455
2462
  onRequestResize: E,
2456
2463
  onClick: Re,
2457
- onKeyDown: Ee,
2464
+ onKeyDown: Ie,
2458
2465
  truncate: K,
2459
2466
  width: U,
2460
2467
  "data-test": "inner"
2461
- }), r().createElement(rr(), {
2468
+ }), r().createElement(or(), {
2462
2469
  align: "center",
2463
2470
  anchor: te,
2464
2471
  "aria-labelledby": xe,
2465
- autoCloseWhenOffScreen: P()(d, "offScreen"),
2472
+ autoCloseWhenOffScreen: A()(d, "offScreen"),
2466
2473
  canCoverAnchor: u,
2467
2474
  defaultPlacement: "below",
2468
2475
  id: fe,
2469
2476
  onRequestClose: Se,
2470
2477
  open: !!te && we,
2471
2478
  pointTo: De,
2472
- repositionMode: A,
2479
+ repositionMode: P,
2473
2480
  retainFocus: M,
2474
- takeFocus: W
2475
- }, nr()(s) ? function() {
2481
+ takeFocus: L
2482
+ }, tr()(s) ? function() {
2476
2483
 
2477
2484
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2478
2485
  return r().createElement("div", {
2479
- onClick: Te
2486
+ onClick: je
2480
2487
  }, s.apply(void 0, arguments));
2481
2488
  } :
2482
2489
 
2483
2490
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2484
2491
  r().createElement("div", {
2485
- onClick: Te
2492
+ onClick: je
2486
2493
  }, s))));
2487
2494
  }
2488
- yr.propTypes = mr;
2489
- yr.splunkUiType = "Table.HeadDropdownCell";
2490
- yr.possibleCloseReasons = br;
2491
- /* harmony default export */ const gr = yr;
2495
+ gr.propTypes = hr;
2496
+ gr.splunkUiType = "Table.HeadDropdownCell";
2497
+ gr.possibleCloseReasons = mr;
2498
+ /* harmony default export */ const wr = gr;
2492
2499
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
2493
- function wr(e) {
2500
+ function Cr(e) {
2494
2501
  "@babel/helpers - typeof";
2495
- return wr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2502
+ return Cr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2496
2503
  return typeof e;
2497
2504
  } : function(e) {
2498
2505
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2499
- }, wr(e);
2506
+ }, Cr(e);
2500
2507
  }
2501
- function Cr(e, n) {
2502
- return kr(e) || Sr(e, n) || Er(e, n) || xr();
2508
+ function xr(e, n) {
2509
+ return kr(e) || Or(e, n) || Ir(e, n) || Sr();
2503
2510
  }
2504
- function xr() {
2511
+ function Sr() {
2505
2512
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2506
2513
  }
2507
- function Sr(e, n) {
2514
+ function Or(e, n) {
2508
2515
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2509
2516
  if (null != t) {
2510
2517
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2529,65 +2536,65 @@
2529
2536
  function kr(e) {
2530
2537
  if (Array.isArray(e)) return e;
2531
2538
  }
2532
- function Or(e) {
2533
- return Tr(e) || Ir(e) || Er(e) || Rr();
2539
+ function Rr(e) {
2540
+ return jr(e) || Tr(e) || Ir(e) || Er();
2534
2541
  }
2535
- function Rr() {
2542
+ function Er() {
2536
2543
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2537
2544
  }
2538
- function Er(e, n) {
2545
+ function Ir(e, n) {
2539
2546
  if (e) {
2540
- if ("string" == typeof e) return jr(e, n);
2547
+ if ("string" == typeof e) return Dr(e, n);
2541
2548
  var t = {}.toString.call(e).slice(8, -1);
2542
- 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) ? jr(e, n) : void 0;
2549
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Dr(e, n) : void 0;
2543
2550
  }
2544
2551
  }
2545
- function Ir(e) {
2552
+ function Tr(e) {
2546
2553
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
2547
2554
  }
2548
- function Tr(e) {
2549
- if (Array.isArray(e)) return jr(e);
2555
+ function jr(e) {
2556
+ if (Array.isArray(e)) return Dr(e);
2550
2557
  }
2551
- function jr(e, n) {
2558
+ function Dr(e, n) {
2552
2559
  (null == n || n > e.length) && (n = e.length);
2553
2560
  for (var t = 0, r = Array(n); t < n; t++) {
2554
2561
  r[t] = e[t];
2555
2562
  }
2556
2563
  return r;
2557
2564
  }
2558
- function Dr(e, n) {
2565
+ function qr(e, n) {
2559
2566
  if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
2560
2567
  }
2561
- function qr(e, n) {
2568
+ function Ar(e, n) {
2562
2569
  for (var t = 0; t < n.length; t++) {
2563
2570
  var r = n[t];
2564
2571
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
2565
- Object.defineProperty(e, _r(r.key), r);
2572
+ Object.defineProperty(e, zr(r.key), r);
2566
2573
  }
2567
2574
  }
2568
- function Ar(e, n, t) {
2569
- return n && qr(e.prototype, n), t && qr(e, t), Object.defineProperty(e, "prototype", {
2575
+ function Pr(e, n, t) {
2576
+ return n && Ar(e.prototype, n), t && Ar(e, t), Object.defineProperty(e, "prototype", {
2570
2577
  writable: !1
2571
2578
  }), e;
2572
2579
  }
2573
- function Pr(e, n, t) {
2574
- return (n = _r(n)) in e ? Object.defineProperty(e, n, {
2580
+ function _r(e, n, t) {
2581
+ return (n = zr(n)) in e ? Object.defineProperty(e, n, {
2575
2582
  value: t,
2576
2583
  enumerable: !0,
2577
2584
  configurable: !0,
2578
2585
  writable: !0
2579
2586
  }) : e[n] = t, e;
2580
2587
  }
2581
- function _r(e) {
2582
- var n = zr(e, "string");
2583
- return "symbol" == wr(n) ? n : n + "";
2588
+ function zr(e) {
2589
+ var n = Mr(e, "string");
2590
+ return "symbol" == Cr(n) ? n : n + "";
2584
2591
  }
2585
- function zr(e, n) {
2586
- if ("object" != wr(e) || !e) return e;
2592
+ function Mr(e, n) {
2593
+ if ("object" != Cr(e) || !e) return e;
2587
2594
  var t = e[Symbol.toPrimitive];
2588
2595
  if (void 0 !== t) {
2589
2596
  var r = t.call(e, n || "default");
2590
- if ("object" != wr(r)) return r;
2597
+ if ("object" != Cr(r)) return r;
2591
2598
  throw new TypeError("@@toPrimitive must return a primitive value.");
2592
2599
  }
2593
2600
  return ("string" === n ? String : Number)(e);
@@ -2595,21 +2602,21 @@
2595
2602
  // based on https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/keyboard/KeyboardSensor.ts
2596
2603
  // eslint-disable-next-line max-classes-per-file
2597
2604
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/utilities/Listeners.ts
2598
- var Mr = function() {
2605
+ var $r = function() {
2599
2606
  function e(n) {
2600
2607
  var t = this;
2601
- Dr(this, e);
2602
- Pr(this, "listeners", []);
2603
- Pr(this, "removeAll", (function() {
2608
+ qr(this, e);
2609
+ _r(this, "listeners", []);
2610
+ _r(this, "removeAll", (function() {
2604
2611
  t.listeners.forEach((function(e) {
2605
2612
  var n;
2606
- return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Or(e));
2613
+ return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Rr(e));
2607
2614
  }));
2608
2615
  }));
2609
2616
  this.target = n;
2610
2617
  this.target = n;
2611
2618
  }
2612
- Ar(e, [ {
2619
+ Pr(e, [ {
2613
2620
  key: "add",
2614
2621
  value: function e(n, t, r) {
2615
2622
  var o;
@@ -2620,7 +2627,7 @@
2620
2627
  return e;
2621
2628
  }();
2622
2629
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/parseTransform.ts
2623
- function $r(e) {
2630
+ function Nr(e) {
2624
2631
  if (e.startsWith("matrix3d(")) {
2625
2632
  var n = e.slice(9, -1).split(/, /);
2626
2633
  return {
@@ -2642,8 +2649,8 @@
2642
2649
  return null;
2643
2650
  }
2644
2651
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/inverseTransform.ts
2645
- function Nr(e, n, t) {
2646
- var r = $r(n);
2652
+ function Wr(e, n, t) {
2653
+ var r = Nr(n);
2647
2654
  if (!r) {
2648
2655
  return e;
2649
2656
  }
@@ -2661,17 +2668,17 @@
2661
2668
  left: u
2662
2669
  };
2663
2670
  }
2664
- var Wr = {
2671
+ var Lr = {
2665
2672
  ignoreTransform: false
2666
2673
  };
2667
2674
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/rect/getRect.ts
2668
- function Lr(e) {
2669
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Wr;
2675
+ function Hr(e) {
2676
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Lr;
2670
2677
  var t = e.getBoundingClientRect();
2671
2678
  if (n.ignoreTransform) {
2672
- var r = (0, In.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2679
+ var r = (0, Tn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2673
2680
  if (o) {
2674
- t = Nr(t, o, i);
2681
+ t = Wr(t, o, i);
2675
2682
  }
2676
2683
  }
2677
2684
  var a = t, l = a.top, u = a.left, s = a.width, c = a.height, d = a.bottom, f = a.right;
@@ -2684,7 +2691,7 @@
2684
2691
  right: f
2685
2692
  };
2686
2693
  }
2687
- function Hr(e) {
2694
+ function Kr(e) {
2688
2695
  if (e === document.scrollingElement) {
2689
2696
  var n = window, t = n.innerWidth, r = n.innerHeight;
2690
2697
  return {
@@ -2707,19 +2714,19 @@
2707
2714
  };
2708
2715
  }
2709
2716
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
2710
- function Kr(e) {
2711
- if (!In.canUseDOM || !e) {
2717
+ function Br(e) {
2718
+ if (!Tn.canUseDOM || !e) {
2712
2719
  return false;
2713
2720
  }
2714
2721
  return e === document.scrollingElement;
2715
2722
  }
2716
2723
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollPosition.ts
2717
- function Br(e) {
2724
+ function Vr(e) {
2718
2725
  var n = {
2719
2726
  x: 0,
2720
2727
  y: 0
2721
2728
  };
2722
- var t = Kr(e) ? {
2729
+ var t = Br(e) ? {
2723
2730
  height: window.innerHeight,
2724
2731
  width: window.innerWidth
2725
2732
  } : {
@@ -2744,20 +2751,20 @@
2744
2751
  };
2745
2752
  }
2746
2753
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/coordinates/constants.ts
2747
- var Vr = {
2754
+ var Fr = {
2748
2755
  x: 0,
2749
2756
  y: 0
2750
2757
  };
2751
2758
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
2752
- function Fr(e) {
2759
+ function Ur(e) {
2753
2760
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2754
- In.getWindow)(e).getComputedStyle(e);
2761
+ Tn.getWindow)(e).getComputedStyle(e);
2755
2762
  return n.position === "fixed";
2756
2763
  }
2757
2764
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
2758
- function Ur(e) {
2765
+ function Xr(e) {
2759
2766
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2760
- In.getWindow)(e).getComputedStyle(e);
2767
+ Tn.getWindow)(e).getComputedStyle(e);
2761
2768
  var t = /(auto|scroll|overlay)/;
2762
2769
  var r = [ "overflow", "overflowX", "overflowY" ];
2763
2770
  return r.some((function(e) {
@@ -2766,7 +2773,7 @@
2766
2773
  }));
2767
2774
  }
2768
2775
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2769
- function Xr(e, n) {
2776
+ function Yr(e, n) {
2770
2777
  var t = [];
2771
2778
  function r(o) {
2772
2779
  if (n != null && t.length >= n) {
@@ -2775,23 +2782,23 @@
2775
2782
  if (!o) {
2776
2783
  return t;
2777
2784
  }
2778
- if ((0, In.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2785
+ if ((0, Tn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2779
2786
  t.push(o.scrollingElement);
2780
2787
  return t;
2781
2788
  }
2782
- if (!(0, In.isHTMLElement)(o) || (0, In.isSVGElement)(o)) {
2789
+ if (!(0, Tn.isHTMLElement)(o) || (0, Tn.isSVGElement)(o)) {
2783
2790
  return t;
2784
2791
  }
2785
2792
  if (t.includes(o)) {
2786
2793
  return t;
2787
2794
  }
2788
- var i = (0, In.getWindow)(e).getComputedStyle(o);
2795
+ var i = (0, Tn.getWindow)(e).getComputedStyle(o);
2789
2796
  if (o !== e) {
2790
- if (Ur(o, i)) {
2797
+ if (Xr(o, i)) {
2791
2798
  t.push(o);
2792
2799
  }
2793
2800
  }
2794
- if (Fr(o, i)) {
2801
+ if (Ur(o, i)) {
2795
2802
  return t;
2796
2803
  }
2797
2804
  return r(o.parentNode);
@@ -2802,23 +2809,23 @@
2802
2809
  return r(e);
2803
2810
  }
2804
2811
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2805
- function Yr(e) {
2806
- var n = Xr(e, 1), t = Cr(n, 1), r = t[0];
2812
+ function Gr(e) {
2813
+ var n = Yr(e, 1), t = xr(n, 1), r = t[0];
2807
2814
  return r !== null && r !== void 0 ? r : null;
2808
2815
  }
2809
- var Gr = {
2816
+ var Jr = {
2810
2817
  start: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ],
2811
2818
  cancel: [ a.KeyboardCode.Esc ],
2812
2819
  end: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ]
2813
2820
  };
2814
2821
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/scrollIntoViewIfNeeded.ts
2815
- function Jr(e) {
2816
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Lr;
2822
+ function Qr(e) {
2823
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Hr;
2817
2824
  if (!e) {
2818
2825
  return;
2819
2826
  }
2820
2827
  var t = n(e), r = t.top, o = t.left, i = t.bottom, a = t.right;
2821
- var l = Yr(e);
2828
+ var l = Gr(e);
2822
2829
  if (!l) {
2823
2830
  return;
2824
2831
  }
@@ -2829,23 +2836,23 @@
2829
2836
  });
2830
2837
  }
2831
2838
  }
2832
- var Qr = function() {
2839
+ var Zr = function() {
2833
2840
  function e(n) {
2834
- Dr(this, e);
2835
- Pr(this, "autoScrollEnabled", false);
2836
- Pr(this, "referenceCoordinates", void 0);
2837
- Pr(this, "listeners", void 0);
2838
- Pr(this, "windowListeners", void 0);
2841
+ qr(this, e);
2842
+ _r(this, "autoScrollEnabled", false);
2843
+ _r(this, "referenceCoordinates", void 0);
2844
+ _r(this, "listeners", void 0);
2845
+ _r(this, "windowListeners", void 0);
2839
2846
  this.props = n;
2840
2847
  var t = n.event.target;
2841
2848
  this.props = n;
2842
- this.listeners = new Mr((0, In.getOwnerDocument)(t));
2843
- this.windowListeners = new Mr((0, In.getWindow)(t));
2849
+ this.listeners = new $r((0, Tn.getOwnerDocument)(t));
2850
+ this.windowListeners = new $r((0, Tn.getWindow)(t));
2844
2851
  this.handleKeyDown = this.handleKeyDown.bind(this);
2845
2852
  this.handleCancel = this.handleCancel.bind(this);
2846
2853
  this.attach();
2847
2854
  }
2848
- Ar(e, [ {
2855
+ Pr(e, [ {
2849
2856
  key: "attach",
2850
2857
  value: function e() {
2851
2858
  var n = this;
@@ -2862,16 +2869,16 @@
2862
2869
  var n = this.props, t = n.activeNode, r = n.onStart;
2863
2870
  var o = t.node.current;
2864
2871
  if (o) {
2865
- Jr(o);
2872
+ Qr(o);
2866
2873
  }
2867
- r(Vr);
2874
+ r(Fr);
2868
2875
  }
2869
2876
  }, {
2870
2877
  key: "handleKeyDown",
2871
2878
  value: function e(n) {
2872
- if ((0, In.isKeyboardEvent)(n)) {
2879
+ if ((0, Tn.isKeyboardEvent)(n)) {
2873
2880
  var t = this.props, r = t.active, o = t.context, i = t.options;
2874
- var l = i.keyboardCodes, u = l === void 0 ? Gr : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
2881
+ var l = i.keyboardCodes, u = l === void 0 ? Jr : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
2875
2882
  var f = n.code;
2876
2883
  if (u.end.includes(f)) {
2877
2884
  this.handleEnd(n);
@@ -2885,7 +2892,7 @@
2885
2892
  var p = v ? {
2886
2893
  x: v.left,
2887
2894
  y: v.top
2888
- } : Vr;
2895
+ } : Fr;
2889
2896
  if (!this.referenceCoordinates) {
2890
2897
  this.referenceCoordinates = p;
2891
2898
  }
@@ -2895,7 +2902,7 @@
2895
2902
  currentCoordinates: p
2896
2903
  });
2897
2904
  if (b) {
2898
- var m = (0, In.subtract)(b, p);
2905
+ var m = (0, Tn.subtract)(b, p);
2899
2906
  var h = {
2900
2907
  x: 0,
2901
2908
  y: 0
@@ -2904,14 +2911,14 @@
2904
2911
  for (var g = 0; g < y.length; g += 1) {
2905
2912
  var w = y[g];
2906
2913
  var C = n.code;
2907
- var x = Br(w), S = x.isTop, k = x.isRight, O = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
2908
- var T = Hr(w);
2914
+ var x = Vr(w), S = x.isTop, O = x.isRight, k = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
2915
+ var T = Kr(w);
2909
2916
  // isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
2910
2917
  // we want to scroll only when a dragging node will be out of view,
2911
2918
  // originally it tries to always place a dragging node in the middle of the container
2912
2919
  var j = T.top <= b.y && T.bottom >= b.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
2913
2920
  var D = T.left <= b.x && T.right >= b.x + ((v === null || v === void 0 ? void 0 : v.width) || 0);
2914
- var q = (C === a.KeyboardCode.Right && !k || C === a.KeyboardCode.Left && !O) && !D;
2921
+ var q = (C === a.KeyboardCode.Right && !O || C === a.KeyboardCode.Left && !k) && !D;
2915
2922
  var A = (C === a.KeyboardCode.Down && !R || C === a.KeyboardCode.Up && !S) && !j;
2916
2923
  if (q) {
2917
2924
  var P = w.scrollLeft + m.x;
@@ -2963,7 +2970,7 @@
2963
2970
  break;
2964
2971
  }
2965
2972
  }
2966
- this.handleMove(n, (0, In.add)((0, In.subtract)(b, this.referenceCoordinates), h));
2973
+ this.handleMove(n, (0, Tn.add)((0, Tn.subtract)(b, this.referenceCoordinates), h));
2967
2974
  }
2968
2975
  }
2969
2976
  }
@@ -2999,10 +3006,10 @@
2999
3006
  } ]);
3000
3007
  return e;
3001
3008
  }();
3002
- Pr(Qr, "activators", [ {
3009
+ _r(Zr, "activators", [ {
3003
3010
  eventName: "onKeyDown",
3004
3011
  handler: function e(n, t, r) {
3005
- var o = t.keyboardCodes, i = o === void 0 ? Gr : o, a = t.onActivation;
3012
+ var o = t.keyboardCodes, i = o === void 0 ? Jr : o, a = t.onActivation;
3006
3013
  var l = r.active;
3007
3014
  var u = n.nativeEvent.code;
3008
3015
  if (i.start.includes(u)) {
@@ -3020,24 +3027,24 @@
3020
3027
  }
3021
3028
  } ]);
3022
3029
  // CONCATENATED MODULE: external "lodash/extend"
3023
- const Zr = require("lodash/extend");
3024
- var eo = e.n(Zr);
3030
+ const eo = require("lodash/extend");
3031
+ var no = e.n(eo);
3025
3032
  // CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
3026
- var no = $()(te).withConfig({
3033
+ var to = M()(ne).withConfig({
3027
3034
  displayName: "HeadTableStyles__Styled",
3028
3035
  componentId: "g85wgf-0"
3029
3036
  })([ "min-width:0;table-layout:fixed;" ]);
3030
- var to = $().div.withConfig({
3037
+ var ro = M().div.withConfig({
3031
3038
  displayName: "HeadTableStyles__StyledDockedContainer",
3032
3039
  componentId: "g85wgf-1"
3033
- })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], N.variables.zindexFixedNavbar);
3034
- var ro = $()(to).withConfig({
3040
+ })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
3041
+ var oo = M()(ro).withConfig({
3035
3042
  displayName: "HeadTableStyles__StyledFixedContainer",
3036
3043
  componentId: "g85wgf-2"
3037
3044
  })([ "position:absolute;box-shadow:none;z-index:1;" ]);
3038
3045
  // CONCATENATED MODULE: ./src/Table/HeadTable.tsx
3039
- function oo() {
3040
- return oo = Object.assign ? Object.assign.bind() : function(e) {
3046
+ function io() {
3047
+ return io = Object.assign ? Object.assign.bind() : function(e) {
3041
3048
  for (var n = 1; n < arguments.length; n++) {
3042
3049
  var t = arguments[n];
3043
3050
  for (var r in t) {
@@ -3045,11 +3052,11 @@
3045
3052
  }
3046
3053
  }
3047
3054
  return e;
3048
- }, oo.apply(null, arguments);
3055
+ }, io.apply(null, arguments);
3049
3056
  }
3050
- function io(e, n) {
3057
+ function ao(e, n) {
3051
3058
  if (null == e) return {};
3052
- var t, r, o = ao(e, n);
3059
+ var t, r, o = lo(e, n);
3053
3060
  if (Object.getOwnPropertySymbols) {
3054
3061
  var i = Object.getOwnPropertySymbols(e);
3055
3062
  for (r = 0; r < i.length; r++) {
@@ -3058,7 +3065,7 @@
3058
3065
  }
3059
3066
  return o;
3060
3067
  }
3061
- function ao(e, n) {
3068
+ function lo(e, n) {
3062
3069
  if (null == e) return {};
3063
3070
  var t = {};
3064
3071
  for (var r in e) {
@@ -3069,7 +3076,7 @@
3069
3076
  }
3070
3077
  return t;
3071
3078
  }
3072
- var lo = {
3079
+ var uo = {
3073
3080
  cellWidths: i().arrayOf(i().number).isRequired,
3074
3081
  dragIndex: i().number,
3075
3082
  elementRef: i().oneOfType([ i().func, i().object ]),
@@ -3090,13 +3097,13 @@
3090
3097
  * @private
3091
3098
  * HeadTable is an internal component that provides a detached table head that can
3092
3099
  * then be positioned in different ways outside of the main table.
3093
- */ function uo(e) {
3094
- var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, b = e.top, m = e.width, h = io(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
3100
+ */ function so(e) {
3101
+ var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, b = e.top, m = e.width, h = ao(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
3095
3102
  var y = u === "docked";
3096
- var w = y ? to : ro;
3103
+ var w = y ? ro : oo;
3097
3104
  var C = (0, t.useRef)(null);
3098
3105
  var x = (0, t.useCallback)((function(e) {
3099
- L(C, e);
3106
+ W(C, e);
3100
3107
  }), [ C ]);
3101
3108
  var S = 0;
3102
3109
  if (a) {
@@ -3109,27 +3116,27 @@
3109
3116
  S += 1;
3110
3117
  }
3111
3118
  // Set the widths of the head cells if not fixed column
3112
- var k = (0, t.useMemo)((function() {
3119
+ var O = (0, t.useMemo)((function() {
3113
3120
  return t.Children.toArray(p.props.children);
3114
3121
  }), [ p.props.children ]);
3115
- var O = (0, t.useMemo)((function() {
3122
+ var k = (0, t.useMemo)((function() {
3116
3123
  if (d) {
3117
3124
  // ensure consistent keys
3118
- return k;
3125
+ return O;
3119
3126
  }
3120
- return k.filter(t.isValidElement).map((function(e, r) {
3127
+ return O.filter(t.isValidElement).map((function(e, r) {
3121
3128
 
3122
3129
  return (0, t.cloneElement)(e, {
3123
- style: eo()({}, e.props.style, {
3130
+ style: no()({}, e.props.style, {
3124
3131
  width: n[r + S]
3125
3132
  })
3126
3133
  });
3127
3134
  }));
3128
- }), [ n, S, d, k ]);
3135
+ }), [ n, S, d, O ]);
3129
3136
  var R = (0, t.cloneElement)(p, {
3130
3137
  elementRef: x,
3131
3138
  "data-test": "".concat(u, "-head")
3132
- }, O);
3139
+ }, k);
3133
3140
  var E = (0, t.useMemo)((function() {
3134
3141
  return {
3135
3142
  top: b,
@@ -3140,27 +3147,27 @@
3140
3147
  return r().createElement(w, {
3141
3148
  style: E,
3142
3149
  ref: o
3143
- }, r().createElement(no, oo({
3150
+ }, r().createElement(to, io({
3144
3151
  "data-test": "".concat(u, "-head-table"),
3145
3152
  "data-fixed-column": d ? "true" : undefined,
3146
- style: eo()({}, f, {
3153
+ style: no()({}, f, {
3147
3154
  marginLeft: c,
3148
3155
  width: d ? undefined : v
3149
3156
  })
3150
3157
  }, g()(h, "dragIndex")), R));
3151
3158
  }
3152
- uo.propTypes = lo;
3153
- /* harmony default export */ const so = uo;
3159
+ so.propTypes = uo;
3160
+ /* harmony default export */ const co = so;
3154
3161
  // CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
3155
- function co(e) {
3162
+ function fo(e) {
3156
3163
  "@babel/helpers - typeof";
3157
- return co = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3164
+ return fo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3158
3165
  return typeof e;
3159
3166
  } : function(e) {
3160
3167
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3161
- }, co(e);
3168
+ }, fo(e);
3162
3169
  }
3163
- function fo(e, n) {
3170
+ function vo(e, n) {
3164
3171
  var t = Object.keys(e);
3165
3172
  if (Object.getOwnPropertySymbols) {
3166
3173
  var r = Object.getOwnPropertySymbols(e);
@@ -3170,46 +3177,46 @@
3170
3177
  }
3171
3178
  return t;
3172
3179
  }
3173
- function vo(e) {
3180
+ function po(e) {
3174
3181
  for (var n = 1; n < arguments.length; n++) {
3175
3182
  var t = null != arguments[n] ? arguments[n] : {};
3176
- n % 2 ? fo(Object(t), !0).forEach((function(n) {
3177
- po(e, n, t[n]);
3178
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : fo(Object(t)).forEach((function(n) {
3183
+ n % 2 ? vo(Object(t), !0).forEach((function(n) {
3184
+ bo(e, n, t[n]);
3185
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : vo(Object(t)).forEach((function(n) {
3179
3186
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
3180
3187
  }));
3181
3188
  }
3182
3189
  return e;
3183
3190
  }
3184
- function po(e, n, t) {
3185
- return (n = bo(n)) in e ? Object.defineProperty(e, n, {
3191
+ function bo(e, n, t) {
3192
+ return (n = mo(n)) in e ? Object.defineProperty(e, n, {
3186
3193
  value: t,
3187
3194
  enumerable: !0,
3188
3195
  configurable: !0,
3189
3196
  writable: !0
3190
3197
  }) : e[n] = t, e;
3191
3198
  }
3192
- function bo(e) {
3193
- var n = mo(e, "string");
3194
- return "symbol" == co(n) ? n : n + "";
3199
+ function mo(e) {
3200
+ var n = ho(e, "string");
3201
+ return "symbol" == fo(n) ? n : n + "";
3195
3202
  }
3196
- function mo(e, n) {
3197
- if ("object" != co(e) || !e) return e;
3203
+ function ho(e, n) {
3204
+ if ("object" != fo(e) || !e) return e;
3198
3205
  var t = e[Symbol.toPrimitive];
3199
3206
  if (void 0 !== t) {
3200
3207
  var r = t.call(e, n || "default");
3201
- if ("object" != co(r)) return r;
3208
+ if ("object" != fo(r)) return r;
3202
3209
  throw new TypeError("@@toPrimitive must return a primitive value.");
3203
3210
  }
3204
3211
  return ("string" === n ? String : Number)(e);
3205
3212
  }
3206
3213
  // Checks if browser is Safari
3207
- function ho() {
3214
+ function yo() {
3208
3215
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
3209
3216
  }
3210
3217
  // Formats return value to DOMRect
3211
- function yo(e) {
3212
- return vo(vo({}, e), {}, {
3218
+ function go(e) {
3219
+ return po(po({}, e), {}, {
3213
3220
  top: e.y,
3214
3221
  left: e.x,
3215
3222
  right: e.x + e.width,
@@ -3223,18 +3230,18 @@
3223
3230
  * @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
3224
3231
  * @returns {Omit<DOMRect, 'toJSON'>}
3225
3232
  * @public
3226
- */ function go(e, n) {
3233
+ */ function wo(e, n) {
3227
3234
  var t, r;
3228
3235
  var o = e.getBoundingClientRect();
3229
- var i = ho();
3236
+ var i = yo();
3230
3237
  if (!n || !i) {
3231
3238
  return o;
3232
3239
  }
3233
- var a = Je();
3240
+ var a = Ge();
3234
3241
  var l = o.left + (((t = a.visualViewport) === null || t === void 0 ? void 0 : t.offsetLeft) || 0);
3235
3242
  var u = o.top + (((r = a.visualViewport) === null || r === void 0 ? void 0 : r.offsetTop) || 0);
3236
3243
  var s = o.width, c = o.height;
3237
- return yo({
3244
+ return go({
3238
3245
  width: s,
3239
3246
  height: c,
3240
3247
  x: l,
@@ -3251,14 +3258,14 @@
3251
3258
  // erroneously included in react-ui's public api.
3252
3259
  // see https://github.com/microsoft/TypeScript/pull/12253
3253
3260
  // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
3254
- function wo(e, n) {
3261
+ function Co(e, n) {
3255
3262
  if (e === undefined || e === null) {
3256
3263
  throw new Error(n !== null && n !== void 0 ? n : "Unexpected undefined or null");
3257
3264
  }
3258
3265
  }
3259
3266
  // CONCATENATED MODULE: ./src/Table/Table.tsx
3260
- function Co() {
3261
- return Co = Object.assign ? Object.assign.bind() : function(e) {
3267
+ function xo() {
3268
+ return xo = Object.assign ? Object.assign.bind() : function(e) {
3262
3269
  for (var n = 1; n < arguments.length; n++) {
3263
3270
  var t = arguments[n];
3264
3271
  for (var r in t) {
@@ -3266,41 +3273,41 @@
3266
3273
  }
3267
3274
  }
3268
3275
  return e;
3269
- }, Co.apply(null, arguments);
3276
+ }, xo.apply(null, arguments);
3270
3277
  }
3271
- function xo(e) {
3272
- return Oo(e) || ko(e) || Io(e) || So();
3278
+ function So(e) {
3279
+ return Ro(e) || ko(e) || To(e) || Oo();
3273
3280
  }
3274
- function So() {
3281
+ function Oo() {
3275
3282
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3276
3283
  }
3277
3284
  function ko(e) {
3278
3285
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
3279
3286
  }
3280
- function Oo(e) {
3281
- if (Array.isArray(e)) return To(e);
3287
+ function Ro(e) {
3288
+ if (Array.isArray(e)) return jo(e);
3282
3289
  }
3283
- function Ro(e, n) {
3284
- return Do(e) || jo(e, n) || Io(e, n) || Eo();
3290
+ function Eo(e, n) {
3291
+ return qo(e) || Do(e, n) || To(e, n) || Io();
3285
3292
  }
3286
- function Eo() {
3293
+ function Io() {
3287
3294
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3288
3295
  }
3289
- function Io(e, n) {
3296
+ function To(e, n) {
3290
3297
  if (e) {
3291
- if ("string" == typeof e) return To(e, n);
3298
+ if ("string" == typeof e) return jo(e, n);
3292
3299
  var t = {}.toString.call(e).slice(8, -1);
3293
- 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) ? To(e, n) : void 0;
3300
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? jo(e, n) : void 0;
3294
3301
  }
3295
3302
  }
3296
- function To(e, n) {
3303
+ function jo(e, n) {
3297
3304
  (null == n || n > e.length) && (n = e.length);
3298
3305
  for (var t = 0, r = Array(n); t < n; t++) {
3299
3306
  r[t] = e[t];
3300
3307
  }
3301
3308
  return r;
3302
3309
  }
3303
- function jo(e, n) {
3310
+ function Do(e, n) {
3304
3311
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
3305
3312
  if (null != t) {
3306
3313
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -3322,12 +3329,12 @@
3322
3329
  return l;
3323
3330
  }
3324
3331
  }
3325
- function Do(e) {
3332
+ function qo(e) {
3326
3333
  if (Array.isArray(e)) return e;
3327
3334
  }
3328
- function qo(e, n) {
3335
+ function Ao(e, n) {
3329
3336
  if (null == e) return {};
3330
- var t, r, o = Ao(e, n);
3337
+ var t, r, o = Po(e, n);
3331
3338
  if (Object.getOwnPropertySymbols) {
3332
3339
  var i = Object.getOwnPropertySymbols(e);
3333
3340
  for (r = 0; r < i.length; r++) {
@@ -3336,7 +3343,7 @@
3336
3343
  }
3337
3344
  return o;
3338
3345
  }
3339
- function Ao(e, n) {
3346
+ function Po(e, n) {
3340
3347
  if (null == e) return {};
3341
3348
  var t = {};
3342
3349
  for (var r in e) {
@@ -3351,7 +3358,7 @@
3351
3358
  // Internal Helper Modules
3352
3359
  /** @public */
3353
3360
  /** @public */
3354
- /** @public */ var Po = {
3361
+ /** @public */ var _o = {
3355
3362
  actions: i().arrayOf(i().element),
3356
3363
  actionsColumnWidth: i().number,
3357
3364
  children: i().node,
@@ -3373,25 +3380,25 @@
3373
3380
  onRequestResizeColumn: i().func,
3374
3381
  resizableFillLayout: i().bool
3375
3382
  };
3376
- var _o = function e(n) {
3383
+ var zo = function e(n) {
3377
3384
  return n === "inline";
3378
3385
  };
3379
- var zo = function e(n) {
3386
+ var Mo = function e(n) {
3380
3387
  return n === "docked";
3381
3388
  };
3382
- var Mo = function e(n) {
3389
+ var $o = function e(n) {
3383
3390
  return n === "fixed";
3384
3391
  };
3385
- var $o = function e(n) {
3386
- var t = Je();
3387
- var r = go(n);
3392
+ var No = function e(n) {
3393
+ var t = Ge();
3394
+ var r = wo(n);
3388
3395
  return {
3389
3396
  top: r.top + t.pageYOffset,
3390
3397
  left: r.left + t.pageXOffset
3391
3398
  };
3392
3399
  };
3393
- var No = function e(n) {
3394
- var t = Ye();
3400
+ var Wo = function e(n) {
3401
+ var t = Fe();
3395
3402
  if (n === undefined || n === null) {
3396
3403
  return undefined;
3397
3404
  }
@@ -3413,20 +3420,20 @@
3413
3420
  }
3414
3421
  return undefined;
3415
3422
  };
3416
- var Wo = function e(n, t) {
3417
- return n.indexOf(t) + 1;
3418
- };
3419
3423
  var Lo = function e(n, t) {
3420
3424
  return n.indexOf(t) + 1;
3421
3425
  };
3422
- var Ho = {
3423
- coordinateGetter: l.sortableKeyboardCoordinates
3426
+ var Ho = function e(n, t) {
3427
+ return n.indexOf(t) + 1;
3424
3428
  };
3425
3429
  var Ko = {
3426
- draggable: (0, D._)("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.")
3430
+ coordinateGetter: l.sortableKeyboardCoordinates
3427
3431
  };
3428
3432
  var Bo = {
3429
- draggable: (0, D._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3433
+ draggable: (0, j._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
3434
+ };
3435
+ var Vo = {
3436
+ draggable: (0, j._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3430
3437
  };
3431
3438
  /**
3432
3439
  * @private
@@ -3437,7 +3444,7 @@
3437
3444
  * @param {String} headFocusState.target - Focus can be applied to a 'headCell' or a
3438
3445
  * 'resizeButton'.
3439
3446
  * @param {Number} headFocusState.index - The index of the element to set focus on.
3440
- */ function Vo(e, n) {
3447
+ */ function Fo(e, n) {
3441
3448
  var t, r;
3442
3449
  var o = n.target, i = n.index;
3443
3450
  if (false) {}
@@ -3450,149 +3457,149 @@
3450
3457
  if (false) {}
3451
3458
  (t = a) === null || t === void 0 ? void 0 : (r = t.focus) === null || r === void 0 ? void 0 : r.call(t);
3452
3459
  }
3453
- var Fo = {
3460
+ var Uo = {
3454
3461
  passive: false,
3455
3462
  capture: true
3456
3463
  };
3457
- var Uo = [];
3458
- function Xo(e) {
3459
- var n = e.actions, o = n === void 0 ? Uo : n, i = e.actionsColumnWidth, s = e.children, d = e.dockOffset, v = d === void 0 ? 0 : d, p = e.dockScrollBar, b = e.elementRef, h = e.headType, y = h === void 0 ? "inline" : h, w = e.innerStyle, x = e.onRequestMoveColumn, k = e.onRequestMoveRow, T = e.onRequestResizeColumn, A = e.onRequestToggleAllRows, P = e.onScroll, _ = e.outerStyle, z = e.primaryColumnIndex, M = z === void 0 ? 0 : z, $ = e.resizableFillLayout, N = e.rowExpansion, W = N === void 0 ? "none" : N, H = e.rowSelection, K = H === void 0 ? "none" : H, B = e.stripeRows, V = e.tableStyle, F = qo(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3464
+ var Xo = [];
3465
+ function Yo(e) {
3466
+ var n = e.actions, o = n === void 0 ? Xo : n, i = e.actionsColumnWidth, s = e.children, d = e.dockOffset, v = d === void 0 ? 0 : d, p = e.dockScrollBar, b = e.elementRef, h = e.headType, y = h === void 0 ? "inline" : h, w = e.innerStyle, x = e.onRequestMoveColumn, O = e.onRequestMoveRow, I = e.onRequestResizeColumn, q = e.onRequestToggleAllRows, A = e.onScroll, P = e.outerStyle, _ = e.primaryColumnIndex, z = _ === void 0 ? 0 : _, M = e.resizableFillLayout, $ = e.rowExpansion, N = $ === void 0 ? "none" : $, L = e.rowSelection, H = L === void 0 ? "none" : L, K = e.stripeRows, B = e.tableStyle, V = Ao(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3460
3467
  // @docs-props-type TablePropsBase
3461
- var U = (0, t.useState)([]), X = Ro(U, 2), Y = X[0], G = X[1];
3462
- var J = (0, t.useState)(), Q = Ro(J, 2), Z = Q[0], ie = Q[1];
3463
- var ue = (0, t.useState)(), se = Ro(ue, 2), ce = se[0], de = se[1];
3464
- var fe = (0, t.useState)(), ve = Ro(fe, 2), pe = ve[0], be = ve[1];
3465
- var me = (0, t.useState)(), he = Ro(me, 2), ye = he[0], ge = he[1];
3466
- var we = (0, t.useRef)(true);
3467
- var Ce = (0, t.useContext)(I.ScrollContainerContext);
3468
- var xe = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
3469
- a.useSensor)(Qr, Ho));
3470
- var Se = (0, t.useState)([]), ke = Ro(Se, 2), Oe = ke[0], Re = ke[1];
3471
- var Ee = (0, t.useState)(-1), Ie = Ro(Ee, 2), Te = Ie[0], je = Ie[1];
3468
+ var F = (0, t.useState)([]), U = Eo(F, 2), X = U[0], Y = U[1];
3469
+ var G = (0, t.useState)(), J = Eo(G, 2), Q = J[0], oe = J[1];
3470
+ var le = (0, t.useState)(), ue = Eo(le, 2), se = ue[0], ce = ue[1];
3471
+ var de = (0, t.useState)(), fe = Eo(de, 2), ve = fe[0], pe = fe[1];
3472
+ var be = (0, t.useState)(), me = Eo(be, 2), he = me[0], ye = me[1];
3473
+ var ge = (0, t.useRef)(true);
3474
+ var we = (0, t.useContext)(E.ScrollContainerContext);
3475
+ var Ce = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
3476
+ a.useSensor)(Zr, Ko));
3477
+ var xe = (0, t.useState)([]), Se = Eo(xe, 2), Oe = Se[0], ke = Se[1];
3478
+ var Re = (0, t.useState)(-1), Ee = Eo(Re, 2), Ie = Ee[0], Te = Ee[1];
3479
+ var je = (0, t.useRef)();
3472
3480
  var De = (0, t.useRef)();
3473
- var qe = (0, t.useRef)();
3474
- var Ae = (0, t.useState)(), Pe = Ro(Ae, 2), _e = Pe[0], ze = Pe[1];
3481
+ var qe = (0, t.useState)(), Ae = Eo(qe, 2), Pe = Ae[0], _e = Ae[1];
3482
+ var ze = (0, t.useRef)(null);
3475
3483
  var Me = (0, t.useRef)(null);
3476
- var $e = (0, t.useRef)(null);
3477
- var Ne = (0, t.useRef)();
3478
- var We = (0, t.useRef)(null);
3479
- var Le = (0, t.useRef)();
3484
+ var $e = (0, t.useRef)();
3485
+ var Ne = (0, t.useRef)(null);
3486
+ var We = (0, t.useRef)();
3487
+ var Le = (0, t.useRef)(null);
3480
3488
  var He = (0, t.useRef)(null);
3481
- var Ke = (0, t.useRef)(null);
3482
- var Be = j()(y);
3489
+ var Ke = T()(y);
3490
+ var Be = [];
3483
3491
  var Ve = [];
3484
- var Fe = [];
3485
3492
  var Ue = [];
3486
3493
  var Xe = [];
3487
- var Ge = (0, t.useCallback)((function() {
3494
+ var Ye = (0, t.useCallback)((function() {
3488
3495
  var e;
3489
- var n = Je();
3490
- if (_o(y)) {
3496
+ var n = Ge();
3497
+ if (zo(y)) {
3491
3498
  return;
3492
3499
  }
3493
- var t = Ke.current;
3494
- var r = $e.current;
3495
- var o = He.current;
3500
+ var t = He.current;
3501
+ var r = Me.current;
3502
+ var o = Le.current;
3496
3503
  if (!o || !r) {
3497
3504
  return;
3498
3505
  }
3499
- var i = Yt($e.current);
3500
- var a = (e = $e.current) === null || e === void 0 ? void 0 : e.clientHeight;
3501
- var l = $o(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3506
+ var i = Gt(Me.current);
3507
+ var a = (e = Me.current) === null || e === void 0 ? void 0 : e.clientHeight;
3508
+ var l = No(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3502
3509
  var u = Math.min(l, Number(v));
3503
- ge(t === null || t === void 0 ? void 0 : t.clientWidth);
3504
- de(o === null || o === void 0 ? void 0 : o.clientWidth);
3505
- G(i);
3506
- be(u);
3510
+ ye(t === null || t === void 0 ? void 0 : t.clientWidth);
3511
+ ce(o === null || o === void 0 ? void 0 : o.clientWidth);
3512
+ Y(i);
3513
+ pe(u);
3507
3514
  }), [ v, y ]);
3508
3515
  (0, t.useEffect)((function() {
3509
- var e = $e.current;
3510
- var n = We.current;
3516
+ var e = Me.current;
3517
+ var n = Ne.current;
3511
3518
  if (e && n) {
3512
- var t = Yt($e.current);
3513
- if (!m()(Y, t)) {
3514
- Ge();
3519
+ var t = Gt(Me.current);
3520
+ if (!m()(X, t)) {
3521
+ Ye();
3515
3522
  }
3516
3523
  }
3517
- if (Be === "inline" && y === "inline") {
3518
- Ge();
3524
+ if (Ke === "inline" && y === "inline") {
3525
+ Ye();
3519
3526
  }
3520
3527
  if (false) {}
3521
- }), [ Y, y, Be, e, Ge ]);
3522
- var Qe = (0, t.useCallback)((function(e) {
3523
- var n = Ke.current;
3524
- P === null || P === void 0 ? void 0 : P(e);
3525
- if ((Mo(y) || zo(y)) && n) {
3526
- ie(-n.scrollLeft);
3527
- }
3528
- if (Me.current && Le.current !== "dockedScrollBar" && n) {
3529
- Le.current = "container";
3530
- Me.current.scrollLeft = n.scrollLeft;
3528
+ }), [ X, y, Ke, e, Ye ]);
3529
+ var Je = (0, t.useCallback)((function(e) {
3530
+ var n = He.current;
3531
+ A === null || A === void 0 ? void 0 : A(e);
3532
+ if (($o(y) || Mo(y)) && n) {
3533
+ oe(-n.scrollLeft);
3534
+ }
3535
+ if (ze.current && We.current !== "dockedScrollBar" && n) {
3536
+ We.current = "container";
3537
+ ze.current.scrollLeft = n.scrollLeft;
3531
3538
  } else {
3532
- Le.current = undefined;
3533
- }
3534
- }), [ y, P ]);
3535
- var Ze = function e() {
3536
- var n = Ke.current;
3537
- if (Le.current !== "container" && n && Me.current) {
3538
- Le.current = "dockedScrollBar";
3539
- n.scrollLeft = Me.current.scrollLeft;
3539
+ We.current = undefined;
3540
+ }
3541
+ }), [ y, A ]);
3542
+ var Qe = function e() {
3543
+ var n = He.current;
3544
+ if (We.current !== "container" && n && ze.current) {
3545
+ We.current = "dockedScrollBar";
3546
+ n.scrollLeft = ze.current.scrollLeft;
3540
3547
  } else {
3541
- Le.current = undefined;
3548
+ We.current = undefined;
3542
3549
  }
3543
3550
  };
3544
- var en = C()(Ge, 0);
3545
- var nn = C()(Ge, 50);
3546
- O()(Ke, nn);
3551
+ var Ze = C()(Ye, 0);
3552
+ var en = C()(Ye, 50);
3553
+ k()(He, en);
3547
3554
  (0, t.useEffect)((function() {
3548
3555
  // Using the return value of useCallback to recreate componentWillUnmount
3549
3556
  return function() {
3557
+ Ze.cancel();
3550
3558
  en.cancel();
3551
- nn.cancel();
3552
3559
  };
3553
3560
  }));
3554
- var tn = function e(n) {
3561
+ var nn = function e(n) {
3555
3562
  return function(e) {
3556
- $e.current = e;
3557
- L(n.props.elementRef, e);
3563
+ Me.current = e;
3564
+ W(n.props.elementRef, e);
3558
3565
  };
3559
3566
  };
3560
- var rn = function e(n) {
3567
+ var tn = function e(n) {
3561
3568
  if (n) {
3562
3569
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
3563
- if (Ne.current) {
3564
- Vo(We.current, Ne.current);
3565
- Ne.current = undefined;
3570
+ if ($e.current) {
3571
+ Fo(Ne.current, $e.current);
3572
+ $e.current = undefined;
3566
3573
  }
3567
3574
  } else {
3568
3575
  // On unmount, focus the applicable primary head cell if a docked head cell was focused.
3569
- var t = No(We.current);
3576
+ var t = Wo(Ne.current);
3570
3577
  if (t) {
3571
- Vo($e.current, t);
3578
+ Fo(Me.current, t);
3572
3579
  }
3573
3580
  }
3574
- We.current = n;
3581
+ Ne.current = n;
3575
3582
  };
3576
- var on = function e(n) {
3577
- var t = Ke.current;
3578
- if (!We.current || !t || (0, E.keycode)(n.nativeEvent) !== "tab") {
3583
+ var rn = function e(n) {
3584
+ var t = He.current;
3585
+ if (!Ne.current || !t || n.key !== "Tab") {
3579
3586
  return;
3580
3587
  }
3581
- var r = We.current.scrollLeft;
3588
+ var r = Ne.current.scrollLeft;
3582
3589
  if (r !== 0) {
3583
- We.current.scrollLeft = 0;
3590
+ Ne.current.scrollLeft = 0;
3584
3591
  t.scrollLeft += r;
3585
3592
  }
3586
3593
  };
3587
- var an = function e(n, t) {
3594
+ var on = function e(n, t) {
3588
3595
  var r, o;
3589
3596
  var i = t.index, a = t.columnId;
3590
- var l = Ye();
3597
+ var l = Fe();
3591
3598
  if (i === undefined) {
3592
3599
  return;
3593
3600
  }
3594
- var u = W === "none" ? 1 : 2;
3595
- var s = (r = Ke.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(i + u, "), tbody td:nth-child(").concat(i + u, ")"));
3601
+ var u = N === "none" ? 1 : 2;
3602
+ 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, ")"));
3596
3603
  var d = l.createElement("div");
3597
3604
  // TODO: find a styled-components compliant way to do this
3598
3605
  d.style["float"] = "left";
@@ -3609,43 +3616,43 @@
3609
3616
  d.appendChild(n);
3610
3617
  }));
3611
3618
  l.body.appendChild(d);
3612
- T === null || T === void 0 ? void 0 : T(n, {
3619
+ I === null || I === void 0 ? void 0 : I(n, {
3613
3620
  index: i,
3614
3621
  columnId: a,
3615
3622
  width: d.clientWidth + 1
3616
3623
  });
3617
3624
  (o = d.parentNode) === null || o === void 0 ? void 0 : o.removeChild(d);
3618
3625
  };
3619
- var ln = (0, t.useCallback)((function(e) {
3626
+ var an = (0, t.useCallback)((function(e) {
3620
3627
  var n = e.active;
3621
3628
  var t = n.id;
3622
- De.current = Xe.indexOf(t);
3623
- ze(t);
3629
+ je.current = Xe.indexOf(t);
3630
+ _e(t);
3624
3631
  }), [ Xe ]);
3625
- var un = (0, t.useCallback)((function(e) {
3632
+ var ln = (0, t.useCallback)((function(e) {
3626
3633
  if (e.over) {
3627
3634
  var n = e.over.id;
3628
3635
  var t = Xe.indexOf(n);
3629
3636
  var r = t;
3630
- if (De.current !== undefined && t > De.current) {
3637
+ if (je.current !== undefined && t > je.current) {
3631
3638
  r = t + 1;
3632
3639
  }
3633
- je(r);
3640
+ Te(r);
3634
3641
  } else {
3635
- je(-1);
3642
+ Te(-1);
3636
3643
  }
3637
3644
  }), [ Xe ]);
3638
3645
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
3639
3646
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
3640
- var sn = (0, t.useMemo)((function() {
3641
- return C()(un, 100);
3642
- }), [ un ]);
3647
+ var un = (0, t.useMemo)((function() {
3648
+ return C()(ln, 100);
3649
+ }), [ ln ]);
3643
3650
  (0, t.useEffect)((function() {
3644
3651
  return function() {
3645
- sn.cancel();
3652
+ un.cancel();
3646
3653
  };
3647
- }), [ sn ]);
3648
- var cn = (0, t.useCallback)((function(e) {
3654
+ }), [ un ]);
3655
+ var sn = (0, t.useCallback)((function(e) {
3649
3656
  var n = e.active, t = e.over;
3650
3657
  if (t && n.id !== t.id) {
3651
3658
  var r = Xe.indexOf(n.id);
@@ -3655,28 +3662,28 @@
3655
3662
  toIndex: o
3656
3663
  });
3657
3664
  }
3658
- ze(undefined);
3659
- je(-1);
3660
- qe.current = undefined;
3665
+ _e(undefined);
3666
+ Te(-1);
3661
3667
  De.current = undefined;
3668
+ je.current = undefined;
3662
3669
  }), [ Xe, x ]);
3663
- var dn = (0, t.useCallback)((function(e) {
3670
+ var cn = (0, t.useCallback)((function(e) {
3664
3671
  var n = e.active, t = e.over;
3665
- we.current = true;
3672
+ ge.current = true;
3666
3673
  if (t && n.id !== t.id) {
3667
- var r = Fe.indexOf(n.id);
3668
- var o = Fe.indexOf(t === null || t === void 0 ? void 0 : t.id);
3669
- k === null || k === void 0 ? void 0 : k({
3674
+ var r = Ve.indexOf(n.id);
3675
+ var o = Ve.indexOf(t === null || t === void 0 ? void 0 : t.id);
3676
+ O === null || O === void 0 ? void 0 : O({
3670
3677
  fromIndex: r,
3671
3678
  toIndex: o
3672
3679
  });
3673
3680
  }
3674
- }), [ Fe, k ]);
3675
- var fn = (0, t.useCallback)((function() {
3676
- we.current = true;
3681
+ }), [ Ve, O ]);
3682
+ var dn = (0, t.useCallback)((function() {
3683
+ ge.current = true;
3677
3684
  }), []);
3678
- var vn = (0, t.useRef)({});
3679
- var pn = function e(n) {
3685
+ var fn = (0, t.useRef)({});
3686
+ var vn = function e(n) {
3680
3687
  var r = t.Children.toArray(n.props.children).filter(t.isValidElement).map((function(e, n) {
3681
3688
  var r = e;
3682
3689
  var o = r.key || (0, R.createDOMID)("col-");
@@ -3693,8 +3700,8 @@
3693
3700
  index: n,
3694
3701
  dragId: o,
3695
3702
  elementRef: function e(n) {
3696
- vn.current[o] = n;
3697
- L(r.props.elementRef, n);
3703
+ fn.current[o] = n;
3704
+ W(r.props.elementRef, n);
3698
3705
  }
3699
3706
  });
3700
3707
  }));
@@ -3702,42 +3709,42 @@
3702
3709
  var l = (0, t.cloneElement)(n, {
3703
3710
  actions: a,
3704
3711
  actionsColumnWidth: i,
3705
- hasInfoColumn: W !== "none",
3706
- hasDragColumn: !!k,
3707
- onAutosizeColumn: an,
3712
+ hasInfoColumn: N !== "none",
3713
+ hasDragColumn: !!O,
3714
+ onAutosizeColumn: on,
3708
3715
  onRequestMoveColumn: x,
3709
- onRequestResizeColumn: T,
3710
- onRequestToggleAllRows: A,
3711
- elementRef: tn(n),
3712
- rowSelection: K
3716
+ onRequestResizeColumn: I,
3717
+ onRequestToggleAllRows: q,
3718
+ elementRef: nn(n),
3719
+ rowSelection: H
3713
3720
  }, r);
3714
3721
  return l;
3715
3722
  };
3716
- var bn = (0, t.useMemo)((function() {
3723
+ var pn = (0, t.useMemo)((function() {
3717
3724
  var e, n;
3718
- if (Te === -1 || !$e.current || !Ke.current) return null;
3719
- var t = !!k;
3720
- var o = W !== "none";
3721
- var i = Array.from((e = (n = $e.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(A ? 1 : 0);
3725
+ if (Ie === -1 || !Me.current || !He.current) return null;
3726
+ var t = !!O;
3727
+ var o = N !== "none";
3728
+ 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);
3722
3729
  var a;
3723
- if (Te === 0) {
3730
+ if (Ie === 0) {
3724
3731
  var l;
3725
3732
  a = ((l = i[0]) === null || l === void 0 ? void 0 : l.offsetLeft) || 0;
3726
- } else if (Te >= i.length) {
3733
+ } else if (Ie >= i.length) {
3727
3734
  var u = i[i.length - 1];
3728
3735
  a = ((u === null || u === void 0 ? void 0 : u.offsetLeft) || 0) + ((u === null || u === void 0 ? void 0 : u.offsetWidth) || 0) - 1;
3729
3736
  // -1 makes the last guideline visible
3730
3737
  } else {
3731
3738
  var s;
3732
- a = ((s = i[Te]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3739
+ a = ((s = i[Ie]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3733
3740
  }
3734
3741
 
3735
- return r().createElement(le, {
3736
- $height: Ke.current.clientHeight,
3742
+ return r().createElement(ae, {
3743
+ $height: He.current.clientHeight,
3737
3744
  $left: a
3738
3745
  });
3739
- }), [ Te, k, W, A ]);
3740
- var mn = function e(n) {
3746
+ }), [ Ie, O, N, q ]);
3747
+ var bn = function e(n) {
3741
3748
  var r = (o === null || o === void 0 ? void 0 : o.filter(t.isValidElement).length) > 0;
3742
3749
  var a = false;
3743
3750
  t.Children.toArray(n === null || n === void 0 ? void 0 : n.props.children).filter(t.isValidElement).forEach((function(e, n) {
@@ -3752,116 +3759,116 @@
3752
3759
  if (!i.startsWith("row-")) {
3753
3760
  i = "row-".concat(i);
3754
3761
  }
3755
- Ve.push( (0, t.cloneElement)(e, {
3762
+ Be.push( (0, t.cloneElement)(e, {
3756
3763
  index: n,
3757
3764
  dragId: i
3758
3765
  }));
3759
- Fe.push(i);
3766
+ Ve.push(i);
3760
3767
  }));
3761
3768
  var l = r || a || !!i;
3762
3769
 
3763
3770
  return (0, t.cloneElement)(n, {
3764
3771
  actions: l,
3765
3772
  movableColumns: !!x,
3766
- onRequestMoveRow: k,
3767
- primaryColumnIndex: M,
3768
- rowExpansion: W,
3769
- stripeRows: B
3770
- }, Ve);
3773
+ onRequestMoveRow: O,
3774
+ primaryColumnIndex: z,
3775
+ rowExpansion: N,
3776
+ stripeRows: K
3777
+ }, Be);
3771
3778
  };
3772
- var hn = function e() {
3773
- var n = Ke.current;
3774
- var t = Je();
3775
- if (!zo(y) || !He.current || !$e.current || !n) {
3779
+ var mn = function e() {
3780
+ var n = He.current;
3781
+ var t = Ge();
3782
+ if (!Mo(y) || !Le.current || !Me.current || !n) {
3776
3783
  return false;
3777
3784
  }
3778
- var r = $o(n).top;
3785
+ var r = No(n).top;
3779
3786
  return t.pageYOffset >= r - (v || 0);
3780
3787
  };
3781
- var yn = function e() {
3782
- var n = Je();
3783
- var t = Ke.current;
3784
- if (!p || !He.current || !t) {
3788
+ var hn = function e() {
3789
+ var n = Ge();
3790
+ var t = He.current;
3791
+ if (!p || !Le.current || !t) {
3785
3792
  return false;
3786
3793
  }
3787
- var r = go(t);
3794
+ var r = wo(t);
3788
3795
  return r.bottom > n.innerHeight && r.top < n.innerHeight;
3789
3796
  };
3790
- var gn = function e(n, o) {
3791
- if (hn()) {
3797
+ var yn = function e(n, o) {
3798
+ if (mn()) {
3792
3799
  // FIXME: handle inline
3793
3800
  // Save the current head focus state so that it can be applied to the docked version
3794
3801
  // after the `HeadTable` mounts.
3795
- Ne.current = No($e.current);
3796
- if (Y === undefined || ce === undefined || pe === undefined || ye === undefined) {
3802
+ $e.current = Wo(Me.current);
3803
+ if (X === undefined || se === undefined || ve === undefined || he === undefined) {
3797
3804
  return false;
3798
3805
  }
3799
3806
  var i = (0, t.cloneElement)(n);
3800
3807
 
3801
- return r().createElement(so, {
3808
+ return r().createElement(co, {
3802
3809
  headType: "docked",
3803
3810
  tHead: i,
3804
- cellWidths: Y,
3805
- horizontalOffset: Z,
3806
- tableWidth: ce,
3807
- top: pe,
3808
- width: ye,
3809
- tableStyle: V,
3811
+ cellWidths: X,
3812
+ horizontalOffset: Q,
3813
+ tableWidth: se,
3814
+ top: ve,
3815
+ width: he,
3816
+ tableStyle: B,
3810
3817
  isFixedColumn: o,
3811
- onKeyUp: on,
3812
- elementRef: rn,
3813
- hasDragColumn: !!k,
3814
- hasRowExpansion: W !== "none",
3815
- hasRowSelection: !!A
3818
+ onKeyUp: rn,
3819
+ elementRef: tn,
3820
+ hasDragColumn: !!O,
3821
+ hasRowExpansion: N !== "none",
3822
+ hasRowSelection: !!q
3816
3823
  });
3817
3824
  }
3818
3825
  return false;
3819
3826
  };
3820
- var wn = (0, t.useMemo)((function() {
3827
+ var gn = (0, t.useMemo)((function() {
3821
3828
  var e, n, t;
3822
- if (!Me.current || !$e.current || !He.current) {
3829
+ if (!ze.current || !Me.current || !Le.current) {
3823
3830
  return 0;
3824
3831
  }
3825
- var r = Je();
3826
- var o = (e = go(He.current).top) !== null && e !== void 0 ? e : 0;
3827
- var i = (n = (t = $e.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3832
+ var r = Ge();
3833
+ var o = (e = wo(Le.current).top) !== null && e !== void 0 ? e : 0;
3834
+ var i = (n = (t = Me.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3828
3835
  var a = r.innerHeight - o - i;
3829
- return Math.min(a - Me.current.offsetHeight, 0);
3836
+ return Math.min(a - ze.current.offsetHeight, 0);
3830
3837
  }), []);
3831
- var Cn = (0, t.useMemo)((function() {
3838
+ var wn = (0, t.useMemo)((function() {
3832
3839
  return {
3833
- width: ye,
3834
- marginBottom: wn
3840
+ width: he,
3841
+ marginBottom: gn
3835
3842
  };
3836
- }), [ ye, wn ]);
3837
- var xn = (0, t.useMemo)((function() {
3843
+ }), [ he, gn ]);
3844
+ var Cn = (0, t.useMemo)((function() {
3838
3845
  return {
3839
- width: ce
3846
+ width: se
3840
3847
  };
3841
- }), [ ce ]);
3842
- var Sn = function e() {
3843
- if (!yn()) {
3848
+ }), [ se ]);
3849
+ var xn = function e() {
3850
+ if (!hn()) {
3844
3851
  return false;
3845
3852
  }
3846
3853
 
3847
- return r().createElement(re, {
3848
- style: Cn,
3849
- onScroll: Ze,
3854
+ return r().createElement(te, {
3855
+ style: wn,
3856
+ onScroll: Qe,
3850
3857
  "data-test": "docked-scroll-bar",
3851
- ref: Me
3852
- }, r().createElement(oe, {
3853
- style: xn,
3858
+ ref: ze
3859
+ }, r().createElement(re, {
3860
+ style: Cn,
3854
3861
  "data-test": "docked-scroll-content"
3855
3862
  }));
3856
3863
  };
3857
- var kn = function e() {
3858
- var n = $e.current;
3859
- var t = Ke.current;
3864
+ var Sn = function e() {
3865
+ var n = Me.current;
3866
+ var t = He.current;
3860
3867
  /**
3861
3868
  * there is slightly less space for the table than tableContainer's width,
3862
3869
  * because there is a 1 px border added to every column but the first
3863
3870
  */ if (n) {
3864
- var r = Yt($e.current);
3871
+ var r = Gt(Me.current);
3865
3872
  var o = r === null || r === void 0 ? void 0 : r.length;
3866
3873
  var i = t === null || t === void 0 ? void 0 : t.clientWidth;
3867
3874
  if (i != null) {
@@ -3872,56 +3879,56 @@
3872
3879
  return null;
3873
3880
  };
3874
3881
  var On;
3882
+ var kn;
3875
3883
  var Rn;
3876
- var En;
3877
- var In = !!T;
3884
+ var En = !!I;
3878
3885
  t.Children.toArray(s).forEach((function(e) {
3879
3886
  var n = e.type.splunkUiType;
3880
3887
  if (n === "Table.Head") {
3881
- On = pn(e);
3882
- if (!In) {
3888
+ On = vn(e);
3889
+ if (!En) {
3883
3890
  // if all the HeadCells are fixed width, then the table is fixed.
3884
- In = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3891
+ En = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3885
3892
  return !f()(e.props, "width");
3886
3893
  }));
3887
3894
  }
3888
3895
  } else if (n === "Table.Body") {
3889
- Rn = mn(e);
3896
+ kn = bn(e);
3890
3897
  } else if (n === "Table.Caption") {
3891
3898
  // the html spec mandates that a caption must be the first table child.
3892
3899
  // catch the caption here so that it can be placed first later. note: a
3893
3900
  // caption can be placed on the bottom side of a table by adjusting the
3894
3901
  // caption's side prop.
3895
- En = e;
3902
+ Rn = e;
3896
3903
  }
3897
3904
  }));
3898
- wo(On, "A Table.Head is required.");
3899
- var Tn = gn(On, In);
3905
+ Co(On, "A Table.Head is required.");
3906
+ var In = yn(On, En);
3900
3907
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
3901
3908
  // interactions will be handled by the overlaid `headTable` instead.
3902
- var jn = t.Children.toArray(On.props.children).filter(t.isValidElement).map((function(e) {
3909
+ var Tn = t.Children.toArray(On.props.children).filter(t.isValidElement).map((function(e) {
3903
3910
 
3904
3911
  // TS: onClick is different for regular/dropdown head cells, that's ok
3905
3912
  return (0, t.cloneElement)(e, {
3906
- visible: !Tn
3913
+ visible: !In
3907
3914
  });
3908
3915
  }));
3909
- On = (0, t.cloneElement)(On, {}, jn);
3910
- var Dn = Ce || Je();
3911
- var qn = Mo(y) ? Ke.current : Dn;
3912
- if ($) {
3913
- In = false;
3916
+ On = (0, t.cloneElement)(On, {}, Tn);
3917
+ var jn = we || Ge();
3918
+ var Dn = $o(y) ? He.current : jn;
3919
+ if (M) {
3920
+ En = false;
3914
3921
  }
3915
- var An = kn();
3916
- var Pn = (0, t.useMemo)((function() {
3922
+ var qn = Sn();
3923
+ var An = (0, t.useMemo)((function() {
3917
3924
  return {
3918
3925
  headType: y,
3919
- resizableFillLayout: $,
3920
- tableContainerWidthWithoutBorders: An
3926
+ resizableFillLayout: M,
3927
+ tableContainerWidthWithoutBorders: qn
3921
3928
  };
3922
- }), [ y, $, An ]);
3923
- var _n = (0, t.useMemo)((function() {
3924
- if (!k) {
3929
+ }), [ y, M, qn ]);
3930
+ var Pn = (0, t.useMemo)((function() {
3931
+ if (!O) {
3925
3932
  return {
3926
3933
  onDragStart: function e() {
3927
3934
  return undefined;
@@ -3943,27 +3950,27 @@
3943
3950
  if (t === undefined) {
3944
3951
  return undefined;
3945
3952
  }
3946
- var r = Wo(Fe, t);
3947
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Picked up sortable row in position %(pos)d of %(total)d."), {
3953
+ var r = Lo(Ve, t);
3954
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable row in position %(pos)d of %(total)d."), {
3948
3955
  pos: r,
3949
- total: Fe.length
3956
+ total: Ve.length
3950
3957
  }) : undefined;
3951
3958
  },
3952
3959
  onDragOver: function e(n) {
3953
3960
  var t = n.active, r = n.over;
3954
- if (we.current) {
3955
- we.current = false;
3961
+ if (ge.current) {
3962
+ ge.current = false;
3956
3963
  return undefined;
3957
3964
  }
3958
3965
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
3959
3966
  return undefined;
3960
3967
  }
3961
- var o = Wo(Fe, t.id);
3962
- var i = Wo(Fe, r.id);
3963
- return (0, q.sprintf)((0, D._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
3968
+ var o = Lo(Ve, t.id);
3969
+ var i = Lo(Ve, r.id);
3970
+ return (0, D.sprintf)((0, j._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
3964
3971
  from: o,
3965
3972
  to: i,
3966
- total: Fe.length
3973
+ total: Ve.length
3967
3974
  });
3968
3975
  },
3969
3976
  onDragEnd: function e(n) {
@@ -3971,10 +3978,10 @@
3971
3978
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
3972
3979
  return undefined;
3973
3980
  }
3974
- var r = Wo(Fe, t.id);
3975
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Row dropped at position %(pos)d of %(total)d."), {
3981
+ var r = Lo(Ve, t.id);
3982
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row dropped at position %(pos)d of %(total)d."), {
3976
3983
  pos: r,
3977
- total: Fe.length
3984
+ total: Ve.length
3978
3985
  }) : undefined;
3979
3986
  },
3980
3987
  onDragCancel: function e(n) {
@@ -3982,14 +3989,14 @@
3982
3989
  if (t === undefined) {
3983
3990
  return undefined;
3984
3991
  }
3985
- var r = Wo(Fe, t);
3986
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Row returned to its starting position of %(pos)d."), {
3992
+ var r = Lo(Ve, t);
3993
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row returned to its starting position of %(pos)d."), {
3987
3994
  pos: r
3988
3995
  }) : undefined;
3989
3996
  }
3990
3997
  };
3991
- }), [ Fe, k ]);
3992
- var zn = (0, t.useMemo)((function() {
3998
+ }), [ Ve, O ]);
3999
+ var _n = (0, t.useMemo)((function() {
3993
4000
  if (!x) {
3994
4001
  return {
3995
4002
  onDragStart: function e() {
@@ -4012,25 +4019,25 @@
4012
4019
  if (t === undefined) {
4013
4020
  return undefined;
4014
4021
  }
4015
- var r = Lo(Xe, t);
4016
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4022
+ var r = Ho(Xe, t);
4023
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4017
4024
  pos: r,
4018
4025
  total: Xe.length
4019
4026
  }) : undefined;
4020
4027
  },
4021
4028
  onDragOver: function e(n) {
4022
4029
  var t = n.active, r = n.over;
4023
- if (we.current) {
4024
- we.current = false;
4030
+ if (ge.current) {
4031
+ ge.current = false;
4025
4032
  return undefined;
4026
4033
  }
4027
4034
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4028
4035
  return undefined;
4029
4036
  }
4030
- var o = Lo(Xe, t.id);
4031
- var i = Lo(Xe, r.id);
4037
+ var o = Ho(Xe, t.id);
4038
+ var i = Ho(Xe, r.id);
4032
4039
  if (typeof o !== "number" || typeof i !== "number") return undefined;
4033
- return (0, q.sprintf)((0, D._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4040
+ return (0, D.sprintf)((0, j._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4034
4041
  from: o,
4035
4042
  to: i,
4036
4043
  total: Xe.length
@@ -4041,8 +4048,8 @@
4041
4048
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4042
4049
  return undefined;
4043
4050
  }
4044
- var r = Lo(Xe, t.id);
4045
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Column dropped at position %(pos)d of %(total)d."), {
4051
+ var r = Ho(Xe, t.id);
4052
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column dropped at position %(pos)d of %(total)d."), {
4046
4053
  pos: r,
4047
4054
  total: Xe.length
4048
4055
  }) : undefined;
@@ -4052,51 +4059,51 @@
4052
4059
  if (t === undefined) {
4053
4060
  return undefined;
4054
4061
  }
4055
- var r = Lo(Xe, t);
4056
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Column returned to its starting position of %(pos)d."), {
4062
+ var r = Ho(Xe, t);
4063
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column returned to its starting position of %(pos)d."), {
4057
4064
  pos: r
4058
4065
  }) : undefined;
4059
4066
  }
4060
4067
  };
4061
4068
  }), [ Xe, x ]);
4062
- var Mn = (0, t.useMemo)((function() {
4069
+ var zn = (0, t.useMemo)((function() {
4063
4070
  return {
4064
- screenReaderInstructions: k ? Ko : Bo,
4065
- announcements: k ? _n : zn
4071
+ screenReaderInstructions: O ? Bo : Vo,
4072
+ announcements: O ? Pn : _n
4066
4073
  };
4067
- }), [ _n, zn, k ]);
4068
- var $n = (0, t.useCallback)((function(e) {
4074
+ }), [ Pn, _n, O ]);
4075
+ var Mn = (0, t.useCallback)((function(e) {
4069
4076
  var n = e.active.id;
4070
4077
  if (n.startsWith("col-") && x) {
4071
- Re([ u.restrictToHorizontalAxis ]);
4072
- ln(e);
4073
- } else if (n.startsWith("row-") && k) {
4074
- Re([ u.restrictToVerticalAxis ]);
4078
+ ke([ u.restrictToHorizontalAxis ]);
4079
+ an(e);
4080
+ } else if (n.startsWith("row-") && O) {
4081
+ ke([ u.restrictToVerticalAxis ]);
4075
4082
  }
4076
- }), [ x, k, ln ]);
4077
- var Nn = (0, t.useCallback)((function(e) {
4078
- Re([]);
4083
+ }), [ x, O, an ]);
4084
+ var $n = (0, t.useCallback)((function(e) {
4085
+ ke([]);
4079
4086
  var n = e.active.id;
4080
4087
  if (n.startsWith("col-") && x) {
4088
+ sn(e);
4089
+ } else if (n.startsWith("row-") && O) {
4081
4090
  cn(e);
4082
- } else if (n.startsWith("row-") && k) {
4083
- dn(e);
4084
4091
  }
4085
- }), [ cn, dn, x, k ]);
4086
- var Wn = (0, t.useCallback)((function(e) {
4092
+ }), [ sn, cn, x, O ]);
4093
+ var Nn = (0, t.useCallback)((function(e) {
4087
4094
  var n = e.active.id;
4088
4095
  if (n.startsWith("col-") && x) {
4089
- sn(e);
4096
+ un(e);
4090
4097
  }
4091
- }), [ sn, x ]);
4092
- var Ln = (0, t.useCallback)((function(e) {
4093
- Re([]);
4098
+ }), [ un, x ]);
4099
+ var Wn = (0, t.useCallback)((function(e) {
4100
+ ke([]);
4094
4101
  var n = e.active.id;
4095
- if (n.startsWith("row-") && k) {
4096
- fn();
4102
+ if (n.startsWith("row-") && O) {
4103
+ dn();
4097
4104
  }
4098
- }), [ fn, k ]);
4099
- var Hn = (0, t.useMemo)((function() {
4105
+ }), [ dn, O ]);
4106
+ var Ln = (0, t.useMemo)((function() {
4100
4107
  return function(e) {
4101
4108
  var n = (0, a.pointerWithin)(e);
4102
4109
  // Collision detection algorithms return an array of collisions
@@ -4107,64 +4114,64 @@
4107
4114
  return (0, a.rectIntersection)(e);
4108
4115
  };
4109
4116
  }), []);
4110
- var Kn = _e ? vn.current[_e] : null;
4111
- var Bn = Kn ? go(Kn).width : undefined;
4112
- var Vn = Ke.current ? go(Ke.current).height : undefined;
4117
+ var Hn = Pe ? fn.current[Pe] : null;
4118
+ var Kn = Hn ? wo(Hn).width : undefined;
4119
+ var Bn = He.current ? wo(He.current).height : undefined;
4113
4120
 
4114
- return r().createElement(ee, Co({
4121
+ return r().createElement(Z, xo({
4115
4122
  "data-test": "table",
4116
4123
  ref: b,
4117
- style: _,
4118
- "data-test-row-selection": A ? K : undefined
4119
- }, g()(F, [].concat(xo(Object.keys(Po)), [ "style" ]))), r().createElement(S(), {
4120
- target: Je(),
4124
+ style: P,
4125
+ "data-test-row-selection": q ? H : undefined
4126
+ }, g()(V, [].concat(So(Object.keys(_o)), [ "style" ]))), r().createElement(S(), {
4127
+ target: Ge(),
4121
4128
  eventType: "scroll",
4122
- listener: en,
4123
- options: Fo
4124
- }), r().createElement(_t.Provider, {
4125
- value: Pn
4126
- }, Tn, r().createElement(ne, {
4127
- onScroll: Qe,
4128
- ref: Ke,
4129
+ listener: Ze,
4130
+ options: Uo
4131
+ }), r().createElement(zt.Provider, {
4132
+ value: An
4133
+ }, In, r().createElement(ee, {
4134
+ onScroll: Je,
4135
+ ref: He,
4129
4136
  style: w,
4130
- $dragging: !!_e
4131
- }, r().createElement(I.ScrollContainerProvider, {
4132
- value: qn
4137
+ $dragging: !!Pe
4138
+ }, r().createElement(E.ScrollContainerProvider, {
4139
+ value: Dn
4133
4140
  }, r().createElement(a.DndContext, {
4134
- accessibility: Mn,
4135
- collisionDetection: Hn,
4141
+ accessibility: zn,
4142
+ collisionDetection: Ln,
4136
4143
  modifiers: Oe,
4137
- onDragCancel: Ln,
4138
- onDragEnd: Nn,
4139
- onDragOver: Wn,
4140
- onDragStart: $n,
4141
- sensors: xe
4142
- }, r().createElement(te, {
4143
- ref: He,
4144
+ onDragCancel: Wn,
4145
+ onDragEnd: $n,
4146
+ onDragOver: Nn,
4147
+ onDragStart: Mn,
4148
+ sensors: Ce
4149
+ }, r().createElement(ne, {
4150
+ ref: Le,
4144
4151
  "data-test": "main-table",
4145
- style: V,
4146
- "data-fixed-column": In ? "true" : undefined,
4147
- $resizableFillLayout: $
4148
- }, En, x ? r().createElement(l.SortableContext, {
4152
+ style: B,
4153
+ "data-fixed-column": En ? "true" : undefined,
4154
+ $resizableFillLayout: M
4155
+ }, Rn, x ? r().createElement(l.SortableContext, {
4149
4156
  items: Xe,
4150
4157
  strategy: l.horizontalListSortingStrategy
4151
- }, On) : On, k ? r().createElement(l.SortableContext, {
4152
- items: Fe,
4158
+ }, On) : On, O ? r().createElement(l.SortableContext, {
4159
+ items: Ve,
4153
4160
  strategy: l.verticalListSortingStrategy
4154
- }, Rn) : Rn), _e && r().createElement(a.DragOverlay, null, r().createElement(ae, {
4155
- $width: Bn,
4156
- $height: Vn
4157
- })), _e && bn))), Sn()));
4158
- }
4159
- Xo.propTypes = Po;
4160
- Xo.Body = Z;
4161
- Xo.Caption = ve;
4162
- Xo.Cell = ke;
4163
- Xo.Head = Jt;
4164
- Xo.HeadCell = En;
4165
- Xo.HeadDropdownCell = gr;
4166
- Xo.Row = At;
4167
- /* harmony default export */ const Yo = Xo;
4161
+ }, kn) : kn), Pe && r().createElement(a.DragOverlay, null, r().createElement(ie, {
4162
+ $width: Kn,
4163
+ $height: Bn
4164
+ })), Pe && pn))), xn()));
4165
+ }
4166
+ Yo.propTypes = _o;
4167
+ Yo.Body = Q;
4168
+ Yo.Caption = fe;
4169
+ Yo.Cell = Se;
4170
+ Yo.Head = Qt;
4171
+ Yo.HeadCell = In;
4172
+ Yo.HeadDropdownCell = wr;
4173
+ Yo.Row = Pt;
4174
+ /* harmony default export */ const Go = Yo;
4168
4175
  // CONCATENATED MODULE: ./src/Table/index.ts
4169
4176
  module.exports = n;
4170
4177
  /******/})();