@splunk/react-ui 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/Badge.js +154 -0
  2. package/CHANGELOG.md +27 -0
  3. package/Code.js +1097 -500
  4. package/Color.js +142 -141
  5. package/ComboBox.js +6 -5
  6. package/Link.js +74 -44
  7. package/MIGRATION.md +32 -1
  8. package/Menu.js +41 -43
  9. package/Multiselect.js +596 -2143
  10. package/Number.js +3 -3
  11. package/PhoneNumber.d.ts +2 -0
  12. package/PhoneNumber.js +769 -0
  13. package/Popover.js +73 -75
  14. package/RadioList.js +166 -151
  15. package/ResultsMenu.js +27 -29
  16. package/Select.js +179 -1768
  17. package/SelectBase.d.ts +2 -0
  18. package/SelectBase.js +1681 -0
  19. package/Slider.js +202 -199
  20. package/SlidingPanels.js +55 -62
  21. package/Switch.js +42 -27
  22. package/TabBar.js +295 -294
  23. package/TabLayout.js +14 -14
  24. package/Table.js +1087 -1040
  25. package/TransitionOpen.js +82 -74
  26. package/docker-compose.yml +99 -52
  27. package/package.json +9 -5
  28. package/stubs-splunkui.d.ts +0 -86
  29. package/test-runner-jest.config.js +1 -0
  30. package/types/src/Badge/Badge.d.ts +29 -0
  31. package/types/src/Badge/docs/examples/Basic.d.ts +5 -0
  32. package/types/src/Badge/docs/examples/Count.d.ts +6 -0
  33. package/types/src/Badge/docs/examples/CustomColors.d.ts +8 -0
  34. package/types/src/Badge/docs/examples/Icon.d.ts +6 -0
  35. package/types/src/Badge/index.d.ts +2 -0
  36. package/types/src/Code/Code.d.ts +4 -3
  37. package/types/src/Code/index.d.ts +1 -0
  38. package/types/src/Link/Link.d.ts +4 -0
  39. package/types/src/Link/LinkContext.d.ts +14 -0
  40. package/types/src/Link/docs/examples/Visited.d.ts +7 -0
  41. package/types/src/Link/index.d.ts +1 -0
  42. package/types/src/Multiselect/Compact.d.ts +1 -1
  43. package/types/src/Multiselect/Multiselect.d.ts +1 -1
  44. package/types/src/PhoneNumber/PhoneNumber.d.ts +139 -0
  45. package/types/src/PhoneNumber/docs/examples/Controlled.d.ts +7 -0
  46. package/types/src/PhoneNumber/docs/examples/DefaultCountry.d.ts +7 -0
  47. package/types/src/PhoneNumber/docs/examples/Disabled.d.ts +6 -0
  48. package/types/src/PhoneNumber/docs/examples/Error.d.ts +6 -0
  49. package/types/src/PhoneNumber/docs/examples/Inline.d.ts +7 -0
  50. package/types/src/PhoneNumber/docs/examples/Uncontrolled.d.ts +7 -0
  51. package/types/src/PhoneNumber/index.d.ts +2 -0
  52. package/types/src/PhoneNumber/utils.d.ts +47 -0
  53. package/types/src/RadioList/Option.d.ts +6 -1
  54. package/types/src/RadioList/docs/examples/Description.d.ts +6 -0
  55. package/types/src/Select/Option.d.ts +8 -3
  56. package/types/src/Select/Select.d.ts +1 -1
  57. package/types/src/{Select → SelectBase}/OptionBase.d.ts +8 -2
  58. package/types/src/{Select → SelectBase}/SelectBase.d.ts +3 -1
  59. package/types/src/SelectBase/index.d.ts +2 -0
  60. package/types/src/Switch/Switch.d.ts +3 -0
  61. package/types/src/Table/Body.d.ts +6 -1
  62. package/types/src/Table/Cell.d.ts +5 -1
  63. package/types/src/Table/Head.d.ts +6 -2
  64. package/types/src/Table/HeadCell.d.ts +5 -1
  65. package/types/src/Table/Row.d.ts +5 -1
  66. package/types/src/Table/Table.d.ts +20 -1
  67. package/types/src/Table/TableContext.d.ts +1 -0
  68. package/types/src/Table/docs/examples/HorizontalOverflowScroll.d.ts +8 -0
  69. package/types/src/Table/docs/examples/PinActionColumn.d.ts +7 -0
  70. package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -1
  71. package/types/src/useResizeObserver/useResizeObserver.d.ts +2 -0
  72. package/types/src/useRovingFocus/useRovingFocus.d.ts +8 -1
  73. package/usePrevious.d.ts +2 -0
  74. package/useResizeObserver.js +59 -92
  75. package/useRovingFocus.js +96 -41
  76. /package/types/src/{Select → SelectBase}/SelectAllOption.d.ts +0 -0
package/Table.js CHANGED
@@ -63,11 +63,11 @@
63
63
  e.d(n, {
64
64
  Body: () => /* reexport */ J,
65
65
  Caption: () => /* reexport */ de,
66
- Cell: () => /* reexport */ xe,
66
+ Cell: () => /* reexport */ Oe,
67
67
  Head: () => /* reexport */ er,
68
- HeadCell: () => /* reexport */ zn,
68
+ HeadCell: () => /* reexport */ Mn,
69
69
  HeadDropdownCell: () => /* reexport */ xr,
70
- Row: () => /* reexport */ Lt,
70
+ Row: () => /* reexport */ Ht,
71
71
  default: () => /* reexport */ Qo
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
@@ -120,20 +120,20 @@
120
120
  const j = require("@splunk/ui-utils/id");
121
121
  // CONCATENATED MODULE: external "lodash/includes"
122
122
  const D = require("lodash/includes");
123
- var q = e.n(D);
123
+ var P = e.n(D);
124
124
  // CONCATENATED MODULE: external "lodash/without"
125
125
  const A = require("lodash/without");
126
- var P = e.n(A);
126
+ var q = e.n(A);
127
127
  // CONCATENATED MODULE: external "styled-components"
128
128
  const _ = require("styled-components");
129
129
  var z = e.n(_);
130
130
  // CONCATENATED MODULE: external "@splunk/themes"
131
- const M = require("@splunk/themes");
131
+ const $ = require("@splunk/themes");
132
132
  // CONCATENATED MODULE: ./src/Table/BodyStyles.ts
133
- var $ = z().tbody.withConfig({
133
+ var M = z().tbody.withConfig({
134
134
  displayName: "BodyStyles__Styled",
135
135
  componentId: "sc-1k5p6pq-0"
136
- })([ "", " z-index:0;" ], M.mixins.reset("table-row-group"));
136
+ })([ "", " z-index:0;" ], $.mixins.reset("table-row-group"));
137
137
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
138
138
  /**
139
139
  * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
@@ -166,26 +166,26 @@
166
166
  }, L.apply(null, arguments);
167
167
  }
168
168
  function W(e, n) {
169
- return F(e) || V(e, n) || K(e, n) || H();
169
+ return F(e) || B(e, n) || K(e, n) || H();
170
170
  }
171
171
  function H() {
172
172
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
173
173
  }
174
174
  function K(e, n) {
175
175
  if (e) {
176
- if ("string" == typeof e) return B(e, n);
176
+ if ("string" == typeof e) return V(e, n);
177
177
  var t = {}.toString.call(e).slice(8, -1);
178
- 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) ? B(e, n) : void 0;
178
+ 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;
179
179
  }
180
180
  }
181
- function B(e, n) {
181
+ function V(e, n) {
182
182
  (null == n || n > e.length) && (n = e.length);
183
183
  for (var t = 0, r = Array(n); t < n; t++) {
184
184
  r[t] = e[t];
185
185
  }
186
186
  return r;
187
187
  }
188
- function V(e, n) {
188
+ function B(e, n) {
189
189
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
190
190
  if (null != t) {
191
191
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -243,48 +243,50 @@
243
243
  rowExpansion: w().oneOf([ "single", "multi", "none", "controlled" ]),
244
244
  /** @private. Generally passed by Table rather than added directly. */
245
245
  onRequestMoveRow: w().func,
246
+ /** @private. */
247
+ pinnedColumns: w().object,
246
248
  /** @private. Generally passed by Table rather than added directly. */
247
249
  primaryColumnIndex: w().number,
248
250
  /** @private. Generally passed by Table rather than added directly. */
249
251
  stripeRows: w().bool
250
252
  };
251
253
  function G(e) {
252
- 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 = U(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
254
+ var n = e.actions, o = e.children, i = e.elementRef, a = e.pinnedColumns, l = e.movableColumns, u = e.onRequestMoveRow, s = e.rowExpansion, c = s === void 0 ? "none" : s, d = e.primaryColumnIndex, f = e.stripeRows, v = U(e, [ "actions", "children", "elementRef", "pinnedColumns", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
253
255
  // @docs-props-type BodyPropsBase
254
- var v = [];
255
- var p = (0, t.useState)([]), m = W(p, 2), b = m[0], h = m[1];
256
- var y = (0, t.useRef)(null);
257
- var g = (0, t.useCallback)((function(e) {
258
- y.current = e;
256
+ var p = [];
257
+ var m = (0, t.useState)([]), b = W(m, 2), h = b[0], y = b[1];
258
+ var g = (0, t.useRef)(null);
259
+ var w = (0, t.useCallback)((function(e) {
260
+ g.current = e;
259
261
  N(i, e);
260
- }), [ i, y ]);
261
- var w = function e(n, t, r) {
262
- var o = b;
263
- if (s === "single") {
264
- if (q()(o, t)) {
265
- h([]);
262
+ }), [ i, g ]);
263
+ var C = function e(n, t, r) {
264
+ var o = h;
265
+ if (c === "single") {
266
+ if (P()(o, t)) {
267
+ y([]);
266
268
  } else {
267
- h([ t ]);
269
+ y([ t ]);
268
270
  }
269
- } else if (s === "multi") {
270
- if (q()(o, t)) {
271
- h(P()(o, t));
271
+ } else if (c === "multi") {
272
+ if (P()(o, t)) {
273
+ y(q()(o, t));
272
274
  } else {
273
- h(o === null || o === void 0 ? void 0 : o.concat(t));
275
+ y(o === null || o === void 0 ? void 0 : o.concat(t));
274
276
  }
275
277
  }
276
278
  r === null || r === void 0 ? void 0 : r(n);
277
279
  };
278
- var C = t.Children.toArray(o).filter(t.isValidElement);
279
- var x = (0, t.useState)(new Map), S = W(x, 2), O = S[0], k = S[1];
280
+ var x = t.Children.toArray(o).filter(t.isValidElement);
281
+ var S = (0, t.useState)(new Map), O = W(S, 2), k = O[0], R = O[1];
280
282
  r().useEffect((function() {
281
- k((function(e) {
283
+ R((function(e) {
282
284
  var n = new Map(e);
283
285
  var r = false;
284
- C.forEach((function(o) {
286
+ x.forEach((function(o) {
285
287
  var i;
286
288
  if (!o.props.expansionRow) return;
287
- var a = (i = o.key) !== null && i !== void 0 ? i : C.indexOf(o);
289
+ var a = (i = o.key) !== null && i !== void 0 ? i : x.indexOf(o);
288
290
  var l = t.Children.count(o.props.expansionRow);
289
291
  var u = e.get(a);
290
292
  if (!u || u.length !== l) {
@@ -298,55 +300,56 @@
298
300
  }));
299
301
  return r ? n : e;
300
302
  }));
301
- }), [ C ]);
302
- C.forEach((function(e, r) {
303
+ }), [ x ]);
304
+ x.forEach((function(e, r) {
303
305
  if (e) {
304
306
  var o, i;
305
307
  if (false) {}
306
- var u = (o = e.key) !== null && o !== void 0 ? o : r;
307
- var f = r % 2 ? "even" : "odd";
308
- var p = d ? f : "none";
309
- var m = s === "controlled" ? e.props.expanded : q()(b, u);
310
- var h = function n(t) {
311
- w(t, u, e.props.onExpansion);
308
+ var s = (o = e.key) !== null && o !== void 0 ? o : r;
309
+ var v = r % 2 ? "even" : "odd";
310
+ var m = f ? v : "none";
311
+ var b = c === "controlled" ? e.props.expanded : P()(h, s);
312
+ var y = function n(t) {
313
+ C(t, s, e.props.onExpansion);
312
314
  };
313
- var y = e.props.expansionRow ? (i = O.get(u)) === null || i === void 0 ? void 0 : i.join(" ") : undefined;
314
- v.push( (0, t.cloneElement)(e, {
315
- stripe: p,
315
+ var g = e.props.expansionRow ? (i = k.get(s)) === null || i === void 0 ? void 0 : i.join(" ") : undefined;
316
+ p.push( (0, t.cloneElement)(e, {
317
+ stripe: m,
316
318
  actions: n,
317
- expanded: m,
318
- expansionRowIds: y,
319
- expandable: s !== "none",
320
- isDraggable: !!l,
321
- movableColumns: a,
322
- primaryColumnIndex: c,
323
- onExpansion: h,
319
+ expanded: b,
320
+ expansionRowIds: g,
321
+ expandable: c !== "none",
322
+ pinnedColumns: a,
323
+ isDraggable: !!u,
324
+ movableColumns: l,
325
+ primaryColumnIndex: d,
326
+ onExpansion: y,
324
327
  key: e.key || r
325
328
  }));
326
- if (m && e.props.expansionRow) {
329
+ if (b && e.props.expansionRow) {
327
330
  t.Children.forEach(e.props.expansionRow, (function(e, n) {
328
331
  var r;
329
- var o = (r = O.get(u)) === null || r === void 0 ? void 0 : r[n];
330
- v.push( (0, t.cloneElement)(e, {
332
+ var o = (r = k.get(s)) === null || r === void 0 ? void 0 : r[n];
333
+ p.push( (0, t.cloneElement)(e, {
331
334
  key: o,
332
335
  id: o,
333
- stripe: p,
334
- movableColumns: a,
336
+ stripe: m,
337
+ movableColumns: l,
335
338
  "data-expansion-row": "true"
336
339
  }));
337
340
  }));
338
341
  }
339
342
  }
340
343
  }));
341
- if (v.length === 0) {
344
+ if (p.length === 0) {
342
345
  return null;
343
346
  }
344
347
 
345
- return r().createElement($, L({
348
+ return r().createElement(M, L({
346
349
  "data-test": "body"
347
- }, f, {
348
- ref: g
349
- }), v);
350
+ }, v, {
351
+ ref: w
352
+ }), p);
350
353
  }
351
354
  G.propTypes = Y;
352
355
  G.splunkUiType = "Table.Body";
@@ -355,7 +358,7 @@
355
358
  var Q = z().div.withConfig({
356
359
  displayName: "TableStyles__Styled",
357
360
  componentId: "sc-1cmfss7-0"
358
- })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], M.mixins.reset("block"));
361
+ })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], $.mixins.reset("block"));
359
362
  var Z = z().div.withConfig({
360
363
  displayName: "TableStyles__StyledTableContainer",
361
364
  componentId: "sc-1cmfss7-1"
@@ -366,14 +369,14 @@
366
369
  var ee = z().table.withConfig({
367
370
  displayName: "TableStyles__StyledTable",
368
371
  componentId: "sc-1cmfss7-2"
369
- })([ "", ";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;}" ], M.mixins.reset("table"), (function(e) {
372
+ })([ "", ";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) {
370
373
  var n = e.$resizableFillLayout;
371
374
  return n && (0, _.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
372
375
  }));
373
376
  var ne = z().div.withConfig({
374
377
  displayName: "TableStyles__StyledDockedScrollbar",
375
378
  componentId: "sc-1cmfss7-3"
376
- })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], M.variables.zindexFixedNavbar);
379
+ })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], $.variables.zindexFixedNavbar);
377
380
  var te = z().div.withConfig({
378
381
  displayName: "TableStyles__StyledDockedScrollbarContent",
379
382
  componentId: "sc-1cmfss7-4"
@@ -381,14 +384,14 @@
381
384
  var re = z().caption.withConfig({
382
385
  displayName: "TableStyles__StyledTableCaption",
383
386
  componentId: "sc-1cmfss7-5"
384
- })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], M.variables.spacingXSmall, M.variables.fontSizeLarge, (function(e) {
387
+ })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], $.variables.spacingXSmall, $.variables.fontSizeLarge, (function(e) {
385
388
  var n = e.side;
386
389
  return n;
387
390
  }));
388
391
  var oe = z().table.withConfig({
389
392
  displayName: "TableStyles__StyledDragShadowTable",
390
393
  componentId: "sc-1cmfss7-6"
391
- })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], M.variables.interactiveColorOverlayDrag, (function(e) {
394
+ })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], $.variables.interactiveColorOverlayDrag, (function(e) {
392
395
  var n = e.$height;
393
396
  return "".concat(n, "px");
394
397
  }), (function(e) {
@@ -404,7 +407,7 @@
404
407
  }), (function(e) {
405
408
  var n = e.$height;
406
409
  return "".concat(n, "px");
407
- }), M.variables.interactiveColorAccent);
410
+ }), $.variables.interactiveColorAccent);
408
411
  // CONCATENATED MODULE: ./src/Table/Caption.tsx
409
412
  function ae() {
410
413
  return ae = Object.assign ? Object.assign.bind() : function(e) {
@@ -462,32 +465,35 @@
462
465
  const fe = require("@splunk/react-ui/ButtonSimple");
463
466
  // CONCATENATED MODULE: ./src/Table/CellStyles.ts
464
467
  var ve = "2px";
465
- var pe = (0, _.css)([ "box-shadow:", ";" ], M.variables.focusShadowInset);
468
+ var pe = (0, _.css)([ "box-shadow:", ";" ], $.variables.focusShadowInset);
466
469
  var me = z().td.withConfig({
467
470
  displayName: "CellStyles__Styled",
468
471
  componentId: "sc-1955xk2-0"
469
- })([ "", " line-height:", ";padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}padding-block:", ";padding-inline:", ";", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], M.mixins.reset("table-cell"), M.variables.lineHeightSpacious, ve, M.variables.spacingSmall, M.variables.contentColorDefault, M.variables.focusShadowInset, (0,
470
- M.pick)({
472
+ })([ "", " line-height:", ";padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}padding-block:", ";padding-inline:", ";", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}", "" ], $.mixins.reset("table-cell"), $.variables.lineHeightSpacious, ve, $.variables.spacingSmall, $.variables.contentColorDefault, $.variables.focusShadowInset, (0,
473
+ $.pick)({
471
474
  comfortable: "8px",
472
475
  compact: "6px"
473
- }), M.variables.spacingSmall, (0, M.pickVariant)("$variant", {
476
+ }), $.variables.spacingSmall, (0, $.pickVariant)("$variant", {
474
477
  expand: (0, _.css)([ "height:100%;padding:0;" ]),
475
478
  toggle: (0, _.css)([ "height:100%;padding:0;" ])
476
479
  }), (function(e) {
477
480
  var n = e.$variant, t = e.$isPrimaryCell;
478
- return (0, M.pickVariant)("$appearance", {
479
- data: (0, _.css)([ "", "" ], n === "actions" && (0, _.css)([ "cursor:default;padding-block:", ";padding-inline:", ";*:where(button){", " &:focus{box-shadow:", ";}}" ], ve, M.variables.spacingSmall, (0,
481
+ return (0, $.pickVariant)("$appearance", {
482
+ data: (0, _.css)([ "", "" ], n === "actions" && (0, _.css)([ "cursor:default;padding-block:", ";padding-inline:", ";*:where(button){", " &:focus{box-shadow:", ";}}" ], ve, $.variables.spacingSmall, (0,
480
483
  fe.buttonMixin)("subtle", {
481
- color: M.variables.contentColorDefault
482
- }), M.variables.focusShadowInset)),
483
- rowLink: (0, _.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], M.variables.contentColorActive, t && (0,
484
+ color: $.variables.contentColorDefault
485
+ }), $.variables.focusShadowInset)),
486
+ rowLink: (0, _.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], $.variables.contentColorActive, t && (0,
484
487
  _.css)([ "text-decoration:underline;" ])),
485
- link: (0, _.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], M.variables.contentColorLink, M.variables.focusShadowInset)
488
+ link: (0, _.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], $.variables.contentColorLink, $.variables.focusShadowInset)
486
489
  });
487
490
  }), (function(e) {
488
491
  var n = e.$clickable, t = e.$focusWithin, r = e.$stripe;
489
- return n && (0, _.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? M.variables.neutral300 : M.variables.neutral100, pe, r === "even" ? M.variables.neutral300 : M.variables.neutral100, t && (0,
490
- _.css)([ "&:focus-within{", " background-color:", ";}" ], pe, r === "even" ? M.variables.neutral300 : M.variables.neutral100));
492
+ return n && (0, _.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? $.variables.neutral300 : $.variables.neutral100, pe, r === "even" ? $.variables.neutral300 : $.variables.neutral100, t && (0,
493
+ _.css)([ "&:focus-within{", " background-color:", ";}" ], pe, r === "even" ? $.variables.neutral300 : $.variables.neutral100));
494
+ }), (function(e) {
495
+ var n = e.$isPinned;
496
+ return n && (0, _.css)([ "background-color:", ";position:sticky;inset-inline-end:-1px;&::before{content:'';position:absolute;left:0;top:0;bottom:0;border-left:1px solid ", ";}" ], $.variables.backgroundColorPage, $.variables.borderColor);
491
497
  }));
492
498
  /*
493
499
  * A wrapper ensures that the Table Cell contents align to the top while staying within the height of inputHeight.
@@ -495,17 +501,23 @@
495
501
  */ var be = z().div.withConfig({
496
502
  displayName: "CellStyles__StyledCellContent",
497
503
  componentId: "sc-1955xk2-1"
498
- })([ "display:flex;align-items:flex-start;word-break:break-word;", " ", "" ], (0,
499
- M.pickVariant)("$variant", {
504
+ })([ "display:flex;align-items:flex-start;", " ", " ", "" ], (0, $.pickVariant)("$variant", {
500
505
  expand: (0, _.css)([ "height:100%;" ]),
501
506
  toggle: (0, _.css)([ "height:100%;" ])
502
507
  }), (function(e) {
503
508
  var n = e.$variant, t = e.$align;
504
509
  return n ? (0, _.css)([ "display:block;text-align:", ";" ], t) : (0, _.css)([ "justify-content:", ";text-align:", ";" ], t, t);
510
+ }), (0, $.pickVariant)("$horizontalOverflow", {
511
+ auto: (0, _.css)([ "word-break:break-word;" ]),
512
+ scroll: (0, _.css)([ "overflow-wrap:wrap;" ])
505
513
  }));
514
+ // CONCATENATED MODULE: ./src/Table/TableContext.ts
515
+ var he = (0, t.createContext)({});
516
+ he.displayName = "Table";
517
+ /* harmony default export */ const ye = he;
506
518
  // CONCATENATED MODULE: ./src/Table/Cell.tsx
507
- function he() {
508
- return he = Object.assign ? Object.assign.bind() : function(e) {
519
+ function ge() {
520
+ return ge = Object.assign ? Object.assign.bind() : function(e) {
509
521
  for (var n = 1; n < arguments.length; n++) {
510
522
  var t = arguments[n];
511
523
  for (var r in t) {
@@ -513,11 +525,11 @@
513
525
  }
514
526
  }
515
527
  return e;
516
- }, he.apply(null, arguments);
528
+ }, ge.apply(null, arguments);
517
529
  }
518
- function ye(e, n) {
530
+ function we(e, n) {
519
531
  if (null == e) return {};
520
- var t, r, o = ge(e, n);
532
+ var t, r, o = Ce(e, n);
521
533
  if (Object.getOwnPropertySymbols) {
522
534
  var i = Object.getOwnPropertySymbols(e);
523
535
  for (r = 0; r < i.length; r++) {
@@ -526,7 +538,7 @@
526
538
  }
527
539
  return o;
528
540
  }
529
- function ge(e, n) {
541
+ function Ce(e, n) {
530
542
  if (null == e) return {};
531
543
  var t = {};
532
544
  for (var r in e) {
@@ -537,7 +549,7 @@
537
549
  }
538
550
  return t;
539
551
  }
540
- /** @public */ var we = {
552
+ /** @public */ var xe = {
541
553
  align: w().oneOf([ "left", "center", "right" ]),
542
554
  /** @private */
543
555
  appearance: w().oneOf([ "data", "link", "rowLink" ]),
@@ -548,6 +560,8 @@
548
560
  elementRef: w().oneOfType([ w().func, w().object ]),
549
561
  /** @private */
550
562
  isPrimaryCell: w().bool,
563
+ /** @private */
564
+ isPinned: w().bool,
551
565
  onClick: w().func,
552
566
  /** @private */
553
567
  onKeyDown: w().func,
@@ -560,79 +574,82 @@
560
574
  /** @private. */
561
575
  variant: w().oneOf([ "toggle", "expand", "drag", "actions" ])
562
576
  };
563
- function Ce(e) {
564
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, m = e.variant, b = ye(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
577
+ function Se(e) {
578
+ 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.isPinned, f = e.isPrimaryCell, v = e.onClick, p = e.onKeyDown, m = e.stripe, b = e.variant, h = we(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPinned", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
565
579
  // @docs-props-type CellPropsBase
566
- var h = f !== undefined;
567
- var y = a || h;
568
- var g = y ? "link" : "data";
569
- var w = (0, t.useCallback)((function(e) {
580
+ var y = v !== undefined;
581
+ var g = a || y;
582
+ var w = g ? "link" : "data";
583
+ var C = (0, t.useContext)(ye), x = C.horizontalOverflow;
584
+ var S = (0, t.useCallback)((function(e) {
570
585
  N(c, e);
571
586
  }), [ c ]);
572
- var C = (0, t.useCallback)((function(e) {
573
- if (m === "actions") {
587
+ var O = (0, t.useCallback)((function(e) {
588
+ if (b === "actions") {
574
589
  // Action buttons have their own onClicks inside the cell so we don't want Row onClick to fire
575
590
  e.stopPropagation();
576
591
  }
577
- f === null || f === void 0 ? void 0 : f(e, u);
578
- }), [ u, f, m ]);
579
- var x = (0, t.useCallback)((function(e) {
592
+ v === null || v === void 0 ? void 0 : v(e, u);
593
+ }), [ u, v, b ]);
594
+ var k = (0, t.useCallback)((function(e) {
580
595
  if (e.key === "Enter") {
581
- f === null || f === void 0 ? void 0 : f(e, u);
596
+ v === null || v === void 0 ? void 0 : v(e, u);
582
597
  }
583
- v === null || v === void 0 ? void 0 : v(e);
584
- }), [ u, f, v ]);
598
+ p === null || p === void 0 ? void 0 : p(e);
599
+ }), [ u, v, p ]);
585
600
 
586
- return r().createElement(me, he({
601
+ return r().createElement(me, ge({
587
602
  "data-test": "cell",
588
- $appearance: i || g,
589
- $clickable: y ? true : undefined,
603
+ $appearance: i || w,
604
+ $clickable: g ? true : undefined,
590
605
  $disabled: !!s,
591
606
  $focusWithin: a,
592
- $isPrimaryCell: d,
593
- $stripe: p,
594
- $variant: m,
595
- onClick: C,
596
- onKeyDown: x,
597
- ref: w,
598
- tabIndex: h ? 0 : undefined
599
- }, b), r().createElement(be, {
607
+ $isPinned: d,
608
+ $isPrimaryCell: f,
609
+ $stripe: m,
610
+ $variant: b,
611
+ onClick: O,
612
+ onKeyDown: k,
613
+ ref: S,
614
+ tabIndex: y ? 0 : undefined
615
+ }, h), r().createElement(be, {
600
616
  $align: o,
601
- $variant: m
617
+ $horizontalOverflow: x,
618
+ $variant: b
602
619
  }, l));
603
620
  }
604
- Ce.propTypes = we;
605
- Ce.splunkUiType = "Table.Cell";
606
- /* harmony default export */ const xe = Ce;
621
+ Se.propTypes = xe;
622
+ Se.splunkUiType = "Table.Cell";
623
+ /* harmony default export */ const Oe = Se;
607
624
  // CONCATENATED MODULE: external "lodash/isString"
608
- const Se = require("lodash/isString");
609
- var Oe = e.n(Se);
610
- // CONCATENATED MODULE: external "lodash/merge"
611
- const ke = require("lodash/merge");
625
+ const ke = require("lodash/isString");
612
626
  var Re = e.n(ke);
613
- // CONCATENATED MODULE: external "@splunk/react-icons/ParallelDots"
614
- const Ee = require("@splunk/react-icons/ParallelDots");
627
+ // CONCATENATED MODULE: external "lodash/merge"
628
+ const Ee = require("lodash/merge");
615
629
  var Ie = e.n(Ee);
616
- // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
617
- const Te = require("@splunk/react-ui/Tooltip");
630
+ // CONCATENATED MODULE: external "@splunk/react-icons/ParallelDots"
631
+ const Te = require("@splunk/react-icons/ParallelDots");
618
632
  var je = e.n(Te);
633
+ // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
634
+ const De = require("@splunk/react-ui/Tooltip");
635
+ var Pe = e.n(De);
619
636
  // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
620
- const De = require("@splunk/react-ui/Divider");
621
- var qe = e.n(De);
637
+ const Ae = require("@splunk/react-ui/Divider");
638
+ var qe = e.n(Ae);
622
639
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
623
- var Ae = 4;
624
- var Pe = Ae;
640
+ var _e = 4;
641
+ var ze = _e;
625
642
  // While this could theoretically be different, it helps for cohesivity in look and feel when some columns are truncated and others are not.
626
- var _e = (0, _.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
627
- var ze = z().span.withConfig({
643
+ var $e = (0, _.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
644
+ var Me = z().span.withConfig({
628
645
  displayName: "HeadInnerStyles__StyledIcon",
629
646
  componentId: "sc-1sa0wng-0"
630
- })([ "", " grid-column:icon;" ], _e);
631
- var Me = z().span.withConfig({
647
+ })([ "", " grid-column:icon;" ], $e);
648
+ var Ne = z().span.withConfig({
632
649
  displayName: "HeadInnerStyles__StyledTooltipIcon",
633
650
  componentId: "sc-1sa0wng-1"
634
- })([ "", " grid-column:tooltip;" ], _e);
635
- var $e = z().span.withConfig({
651
+ })([ "", " grid-column:tooltip;" ], $e);
652
+ var Le = z().span.withConfig({
636
653
  displayName: "HeadInnerStyles__StyledLabel",
637
654
  componentId: "sc-1sa0wng-2"
638
655
  })([ "grid-column:label;grid-row:1 / -1;position:relative;height:100%;", " ", " ", " ", "" ], (function(e) {
@@ -640,99 +657,105 @@
640
657
  return n === "toggleAll" && (0, _.css)([ "grid-column:1 / -1;" ]);
641
658
  }), (function(e) {
642
659
  var n = e.$labelLength;
643
- return n && n > Pe && (0, _.css)([ "word-wrap:break-word;word-break:break-word;" ]);
660
+ return n && n > ze && (0, _.css)([ "word-wrap:break-word;word-break:break-word;" ]);
644
661
  }), (function(e) {
645
662
  var n = e.$truncate, t = e.$labelLength;
646
- return n && t && t > Ae && (0, _.css)([ "", " min-width:4ch;" ], M.mixins.ellipsis());
647
- }), (0, M.pickVariant)("$align", {
663
+ return (0, $.pickVariant)("$horizontalOverflow", {
664
+ auto: n && t && t > _e && (0, _.css)([ "", " min-width:4ch;" ], $.mixins.ellipsis()),
665
+ scroll: (0, _.css)([ "white-space:nowrap;" ])
666
+ });
667
+ }), (0, $.pickVariant)("$align", {
648
668
  right: (0, _.css)([ "& > &{text-align:right;}" ]),
649
669
  left: (0, _.css)([ "& > &{text-align:left;}" ]),
650
670
  center: (0, _.css)([ "& > &{text-align:center;}" ])
651
671
  }));
652
- var Ne = (0, _.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], M.variables.focusShadowInset, M.variables.contentColorActive);
653
- var Le = z().div.withConfig({
672
+ var We = (0, _.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
673
+ var He = z().div.withConfig({
654
674
  displayName: "HeadInnerStyles__Styled",
655
675
  componentId: "sc-1sa0wng-3"
656
- })([ "", ";", ";", ";position:relative;", " grid-template-rows:1lh 1fr;align-items:start;flex-grow:1;height:100%;padding-block:", ";padding-inline:", ";justify-content:", ";", " ", " @media print{background-image:none;}", "" ], M.mixins.reset("grid"), M.mixins.clearfix(), M.mixins.typography("body", {
676
+ })([ "", ";", ";", ";position:relative;", " grid-template-rows:1lh 1fr;align-items:start;flex-grow:1;height:100%;padding-block:", ";padding-inline:", ";justify-content:", ";", " ", " @media print{background-image:none;}", "" ], $.mixins.reset("grid"), $.mixins.clearfix(), $.mixins.typography("body", {
657
677
  weight: "bold"
658
678
  }), (function(e) {
659
679
  var n = e.$hasTooltip, t = e.$hasIcon;
660
- return (0, _.css)([ "grid-template-columns:[label] auto ", " ", ";column-gap:", ";" ], n ? "[tooltip] min-content" : "", t ? "[icon] min-content" : "", n || t ? M.variables.spacingXSmall : 0);
661
- }), (0, M.pick)({
680
+ return (0, _.css)([ "grid-template-columns:[label] auto ", " ", ";column-gap:", ";" ], n ? "[tooltip] min-content" : "", t ? "[icon] min-content" : "", n || t ? $.variables.spacingXSmall : 0);
681
+ }), (0, $.pick)({
662
682
  comfortable: "8px",
663
683
  compact: "6px"
664
- }), M.variables.spacingSmall, (0, M.pickVariant)("$align", {
684
+ }), $.variables.spacingSmall, (0, $.pickVariant)("$align", {
665
685
  center: "center",
666
686
  left: "flex-start",
667
687
  right: "flex-end"
668
688
  }), (function(e) {
669
689
  var n = e.$variant;
670
690
  return n && (0, _.css)([ "grid-template-columns:1fr;grid-template-rows:1fr;" ]);
671
- }), (0, M.pickVariant)("$variant", {
691
+ }), (0, $.pickVariant)("$variant", {
672
692
  toggleAll: (0, _.css)([ "padding:0;" ]),
673
693
  actions: (0, _.css)([ "padding-block:2px;" ])
674
694
  }), (function(e) {
675
695
  var n = e.$clickable, t = e.$focusWithin;
676
- return n && (0, _.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], Ne, t && (0,
677
- _.css)([ "&:focus-within{", "}" ], Ne), M.variables.contentColorActive);
696
+ return n && (0, _.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], We, t && (0,
697
+ _.css)([ "&:focus-within{", "}" ], We), $.variables.contentColorActive);
678
698
  }));
679
- var We = z()(qe()).withConfig({
699
+ var Ke = z()(qe()).withConfig({
680
700
  displayName: "HeadInnerStyles__StyledResize",
681
701
  componentId: "sc-1sa0wng-4"
682
- })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:1px;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], M.mixins.reset("block"), /* sc-sel */ Le, M.variables.borderColorStrong, M.variables.focusColor, M.variables.focusShadow);
702
+ })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:1px;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], $.mixins.reset("block"), /* sc-sel */ He, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
683
703
  // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
684
- var He = z().div.withConfig({
704
+ var Ve = z().div.withConfig({
685
705
  displayName: "HeadCellStyles__StyledInnerWrapper",
686
706
  componentId: "sc-1hj81sa-0"
687
707
  })([ "display:flex;height:100%;align-items:flex-start;" ]);
688
- var Ke = z().th.withConfig({
708
+ var Be = z().th.withConfig({
689
709
  displayName: "HeadCellStyles__Styled",
690
710
  componentId: "sc-1hj81sa-1"
691
- })([ "", " line-height:", ";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:", ";}", " ", " ", "" ], M.mixins.reset("table-cell"), M.variables.lineHeightSpacious, M.variables.neutral100, (function(e) {
711
+ })([ "", " line-height:", ";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.lineHeightSpacious, $.variables.neutral100, (function(e) {
692
712
  var n = e.$variant;
693
713
  return n ? "middle" : "top";
694
- }), We, /* sc-sel */ He, M.variables.borderColorWeak, We, /* sc-sel */ He, M.variables.borderColor, We, /* sc-sel */ He, M.variables.focusShadowInset, (function(e) {
714
+ }), Ke, /* sc-sel */ Ve, $.variables.borderColorWeak, Ke, /* sc-sel */ Ve, $.variables.borderColor, Ke, /* sc-sel */ Ve, $.variables.focusShadowInset, (function(e) {
695
715
  var n = e.$isDragging;
696
- return n && (0, _.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], M.variables.backgroundColorPage);
716
+ return n && (0, _.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
697
717
  }), (function(e) {
698
718
  var n = e.$variant;
699
- return n && (0, _.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], He, M.variables.borderColorWeak);
700
- }), (0, M.pickVariant)("$variant", {
719
+ return n && (0, _.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], Ve, $.variables.borderColorWeak);
720
+ }), (0, $.pickVariant)("$variant", {
701
721
  actions: (0, _.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, fe.buttonMixin)("subtle", {
702
- color: M.variables.contentColorDefault
703
- }), M.variables.focusShadowInset)
722
+ color: $.variables.contentColorDefault
723
+ }), $.variables.focusShadowInset)
724
+ }), (function(e) {
725
+ var n = e.$isPinned;
726
+ return n && (0, _.css)([ "position:sticky;inset-inline-end:-1px;&::before{content:'';position:absolute;left:0;top:0;bottom:0;border-left:1px solid ", ";}" ], $.variables.borderColor);
704
727
  }));
705
- var Be = z().div.withConfig({
728
+ var Fe = z().div.withConfig({
706
729
  displayName: "HeadCellStyles__StyledIcon",
707
730
  componentId: "sc-1hj81sa-2"
708
731
  })([ "display:inline-flex;align-items:center;height:1lh;" ]);
709
732
  // TODO(SUI-7400): Refactor the drag handler of re-order column
710
- var Ve = z().div.withConfig({
733
+ var Ue = z().div.withConfig({
711
734
  displayName: "HeadCellStyles__StyledDragHandler",
712
735
  componentId: "sc-1hj81sa-3"
713
736
  })([ "display:inline-flex;align-items:start;align-self:stretch;justify-content:center;min-width:20px;cursor:move;padding-block:", ";-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], (0,
714
- M.pick)({
737
+ $.pick)({
715
738
  comfortable: "8px",
716
739
  compact: "6px"
717
- }), M.variables.interactiveColorOverlayHover, M.variables.contentColorActive, M.variables.interactiveColorOverlayDrag, M.variables.focusShadowInset, M.variables.contentColorActive);
740
+ }), $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
718
741
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
719
- const Fe = require("@splunk/react-icons/ArrowDown");
720
- var Ue = e.n(Fe);
721
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
722
- const Xe = require("@splunk/react-icons/ArrowUp");
742
+ const Xe = require("@splunk/react-icons/ArrowDown");
723
743
  var Ye = e.n(Xe);
724
- // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
725
- const Ge = require("@splunk/react-icons/ArrowUpDown");
744
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
745
+ const Ge = require("@splunk/react-icons/ArrowUp");
726
746
  var Je = e.n(Ge);
727
- // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
728
- const Qe = require("@splunk/react-icons/CaretSmallDown");
747
+ // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
748
+ const Qe = require("@splunk/react-icons/ArrowUpDown");
729
749
  var Ze = e.n(Qe);
730
- // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
731
- const en = require("@splunk/react-icons/InformationCircle");
750
+ // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
751
+ const en = require("@splunk/react-icons/CaretSmallDown");
732
752
  var nn = e.n(en);
753
+ // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
754
+ const tn = require("@splunk/react-icons/InformationCircle");
755
+ var rn = e.n(tn);
733
756
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
734
757
  /* eslint-disable @typescript-eslint/no-empty-function */
735
- var tn = {
758
+ var on = {
736
759
  body: {
737
760
  appendChild: function e() {
738
761
  return [];
@@ -786,16 +809,16 @@
786
809
  search: ""
787
810
  }
788
811
  };
789
- function rn() {
790
- var e = typeof document !== "undefined" ? document : tn;
812
+ function an() {
813
+ var e = typeof document !== "undefined" ? document : on;
791
814
  return e;
792
815
  }
793
- var on = rn();
794
- /* harmony default export */ const an = /* unused pure expression or super */ null && on;
816
+ var ln = an();
817
+ /* harmony default export */ const un = /* unused pure expression or super */ null && ln;
795
818
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
796
819
  /* eslint-disable @typescript-eslint/no-empty-function */
797
- var ln = {
798
- document: tn,
820
+ var sn = {
821
+ document: on,
799
822
  navigator: {
800
823
  userAgent: ""
801
824
  },
@@ -849,15 +872,15 @@
849
872
  clearTimeout(n);
850
873
  }
851
874
  };
852
- function un() {
853
- var e = typeof window !== "undefined" ? window : ln;
875
+ function cn() {
876
+ var e = typeof window !== "undefined" ? window : sn;
854
877
  return e;
855
878
  }
856
- var sn = un();
857
- /* harmony default export */ const cn = /* unused pure expression or super */ null && sn;
879
+ var dn = cn();
880
+ /* harmony default export */ const fn = /* unused pure expression or super */ null && dn;
858
881
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
859
- function dn() {
860
- return dn = Object.assign ? Object.assign.bind() : function(e) {
882
+ function vn() {
883
+ return vn = Object.assign ? Object.assign.bind() : function(e) {
861
884
  for (var n = 1; n < arguments.length; n++) {
862
885
  var t = arguments[n];
863
886
  for (var r in t) {
@@ -865,41 +888,41 @@
865
888
  }
866
889
  }
867
890
  return e;
868
- }, dn.apply(null, arguments);
891
+ }, vn.apply(null, arguments);
869
892
  }
870
- function fn(e) {
871
- return mn(e) || pn(e) || yn(e) || vn();
893
+ function pn(e) {
894
+ return hn(e) || bn(e) || wn(e) || mn();
872
895
  }
873
- function vn() {
896
+ function mn() {
874
897
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
875
898
  }
876
- function pn(e) {
899
+ function bn(e) {
877
900
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
878
901
  }
879
- function mn(e) {
880
- if (Array.isArray(e)) return gn(e);
902
+ function hn(e) {
903
+ if (Array.isArray(e)) return Cn(e);
881
904
  }
882
- function bn(e, n) {
883
- return Cn(e) || wn(e, n) || yn(e, n) || hn();
905
+ function yn(e, n) {
906
+ return Sn(e) || xn(e, n) || wn(e, n) || gn();
884
907
  }
885
- function hn() {
908
+ function gn() {
886
909
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
887
910
  }
888
- function yn(e, n) {
911
+ function wn(e, n) {
889
912
  if (e) {
890
- if ("string" == typeof e) return gn(e, n);
913
+ if ("string" == typeof e) return Cn(e, n);
891
914
  var t = {}.toString.call(e).slice(8, -1);
892
- 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) ? gn(e, n) : void 0;
915
+ 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) ? Cn(e, n) : void 0;
893
916
  }
894
917
  }
895
- function gn(e, n) {
918
+ function Cn(e, n) {
896
919
  (null == n || n > e.length) && (n = e.length);
897
920
  for (var t = 0, r = Array(n); t < n; t++) {
898
921
  r[t] = e[t];
899
922
  }
900
923
  return r;
901
924
  }
902
- function wn(e, n) {
925
+ function xn(e, n) {
903
926
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
904
927
  if (null != t) {
905
928
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -921,12 +944,12 @@
921
944
  return l;
922
945
  }
923
946
  }
924
- function Cn(e) {
947
+ function Sn(e) {
925
948
  if (Array.isArray(e)) return e;
926
949
  }
927
- function xn(e, n) {
950
+ function On(e, n) {
928
951
  if (null == e) return {};
929
- var t, r, o = Sn(e, n);
952
+ var t, r, o = kn(e, n);
930
953
  if (Object.getOwnPropertySymbols) {
931
954
  var i = Object.getOwnPropertySymbols(e);
932
955
  for (r = 0; r < i.length; r++) {
@@ -935,7 +958,7 @@
935
958
  }
936
959
  return o;
937
960
  }
938
- function Sn(e, n) {
961
+ function kn(e, n) {
939
962
  if (null == e) return {};
940
963
  var t = {};
941
964
  for (var r in e) {
@@ -946,7 +969,7 @@
946
969
  }
947
970
  return t;
948
971
  }
949
- var On = {
972
+ var Rn = {
950
973
  align: w().oneOf([ "left", "center", "right" ]),
951
974
  cellId: w().string,
952
975
  clickable: w().bool,
@@ -965,67 +988,68 @@
965
988
  width: w().oneOfType([ w().number, w().oneOf([ "auto" ]) ]),
966
989
  variant: w().oneOf([ "toggleAll", "info", "actions" ])
967
990
  };
968
- var kn = new Set([ "none", "asc", "desc" ]);
969
- var Rn = Object.freeze({
991
+ var En = new Set([ "none", "asc", "desc" ]);
992
+ var In = Object.freeze({
970
993
  none: (0, T._)("Click to sort"),
971
994
  asc: (0, T._)("Press to sort descending"),
972
995
  desc: (0, T._)("Press to sort ascending")
973
996
  });
974
- var En = Object.freeze({
975
- none: Je(),
976
- asc: Ye(),
977
- desc: Ue()
997
+ var Tn = Object.freeze({
998
+ none: Ze(),
999
+ asc: Je(),
1000
+ desc: Ye()
978
1001
  });
979
- function In(e) {
980
- var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.cellId, l = e.columnId, u = e.elementRef, s = e.focusWithin, c = e.hasTooltip, d = e.index, f = e.isMenu, v = e.label, p = e.onAutosizeColumn, m = e.onRequestResize, h = e.resizable, y = h === void 0 ? true : h, g = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, S = e.variant, O = e.width, k = xn(e, [ "align", "clickable", "cellId", "columnId", "elementRef", "focusWithin", "hasTooltip", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
1002
+ function jn(e) {
1003
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.cellId, l = e.columnId, u = e.elementRef, s = e.focusWithin, c = e.hasTooltip, d = e.index, f = e.isMenu, v = e.label, p = e.onAutosizeColumn, m = e.onRequestResize, h = e.resizable, y = h === void 0 ? true : h, g = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, S = e.variant, O = e.width, k = On(e, [ "align", "clickable", "cellId", "columnId", "elementRef", "focusWithin", "hasTooltip", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
981
1004
  // @docs-props-type HeadInnerPropsBase
982
1005
  var R = (0, T._)("Click to open menu");
983
1006
  var E = (0, t.useMemo)((function() {
984
1007
  return typeof v === "string" ? v.length : 0;
985
1008
  }), [ v ]);
986
- var j = (0, t.useState)(false), D = bn(j, 2), q = D[0], A = D[1];
987
- var P = (0, t.useState)(0), _ = bn(P, 2), z = _[0], M = _[1];
988
- var $ = (0, t.useState)(0), L = bn($, 2), W = L[0], H = L[1];
989
- var K = (0, t.useRef)(null);
990
- var B = (0, t.useRef)(O === "auto" ? undefined : O);
991
- var V;
992
- var F;
993
- if (g !== undefined && kn.has(g)) {
994
- V = En[g];
995
- F = Rn[g];
1009
+ var j = (0, t.useContext)(ye), D = j.horizontalOverflow;
1010
+ var P = (0, t.useState)(false), A = yn(P, 2), q = A[0], _ = A[1];
1011
+ var z = (0, t.useState)(0), $ = yn(z, 2), M = $[0], L = $[1];
1012
+ var W = (0, t.useState)(0), H = yn(W, 2), K = H[0], V = H[1];
1013
+ var B = (0, t.useRef)(null);
1014
+ var F = (0, t.useRef)(O === "auto" ? undefined : O);
1015
+ var U;
1016
+ var X;
1017
+ if (g !== undefined && En.has(g)) {
1018
+ U = Tn[g];
1019
+ X = In[g];
996
1020
  }
997
1021
  if (O === "auto") {
998
- var U;
999
- var X = K.current;
1000
- var Y = X === null || X === void 0 ? void 0 : (U = X.parentElement) === null || U === void 0 ? void 0 : U.getBoundingClientRect();
1001
- B.current = Y === null || Y === void 0 ? void 0 : Y.width;
1022
+ var Y;
1023
+ var G = B.current;
1024
+ var J = G === null || G === void 0 ? void 0 : (Y = G.parentElement) === null || Y === void 0 ? void 0 : Y.getBoundingClientRect();
1025
+ F.current = J === null || J === void 0 ? void 0 : J.width;
1002
1026
  } else {
1003
- B.current = O;
1027
+ F.current = O;
1004
1028
  }
1005
- var G = (0, t.useCallback)((function(e) {
1006
- K.current = e;
1029
+ var Q = (0, t.useCallback)((function(e) {
1030
+ B.current = e;
1007
1031
  N(u, e);
1008
- }), [ u, K ]);
1009
- var J = (0, t.useCallback)((function(e) {
1032
+ }), [ u, B ]);
1033
+ var Z = (0, t.useCallback)((function(e) {
1010
1034
  var n = e.key;
1011
1035
  if (m === undefined || d === undefined) {
1012
1036
  return;
1013
1037
  }
1014
1038
  if (O === "auto") {
1015
1039
  var t;
1016
- var r = K.current;
1040
+ var r = B.current;
1017
1041
  var o = r === null || r === void 0 ? void 0 : (t = r.parentElement) === null || t === void 0 ? void 0 : t.getBoundingClientRect();
1018
- B.current = o === null || o === void 0 ? void 0 : o.width;
1042
+ F.current = o === null || o === void 0 ? void 0 : o.width;
1019
1043
  } else {
1020
- B.current = O;
1044
+ F.current = O;
1021
1045
  }
1022
- if (B.current === undefined) {
1046
+ if (F.current === undefined) {
1023
1047
  return;
1024
1048
  }
1025
1049
  if (n === "ArrowLeft") {
1026
1050
  e.preventDefault();
1027
1051
  // prevent text selection
1028
- var i = Math.max(B.current - 10, 20);
1052
+ var i = Math.max(F.current - 10, 20);
1029
1053
  m(e, {
1030
1054
  index: d,
1031
1055
  columnId: l,
@@ -1036,7 +1060,7 @@
1036
1060
  if (n === "ArrowRight") {
1037
1061
  e.preventDefault();
1038
1062
  // prevent text selection
1039
- var u = B.current + 10;
1063
+ var u = F.current + 10;
1040
1064
  m(e, {
1041
1065
  index: d,
1042
1066
  columnId: l,
@@ -1049,27 +1073,27 @@
1049
1073
  // SUI-7320: prevent sorting and dropdown opening
1050
1074
  }
1051
1075
  }), [ l, a, d, m, O ]);
1052
- var Q = (0, t.useCallback)((function(e) {
1076
+ var ee = (0, t.useCallback)((function(e) {
1053
1077
  if (O === "auto") {
1054
1078
  var n;
1055
- var t = K.current;
1079
+ var t = B.current;
1056
1080
  var r = t === null || t === void 0 ? void 0 : (n = t.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
1057
- B.current = r === null || r === void 0 ? void 0 : r.width;
1081
+ F.current = r === null || r === void 0 ? void 0 : r.width;
1058
1082
  } else {
1059
- B.current = O;
1083
+ F.current = O;
1060
1084
  }
1061
- if (B.current === undefined) {
1085
+ if (F.current === undefined) {
1062
1086
  return;
1063
1087
  }
1064
1088
  e.preventDefault();
1065
1089
  // prevent text selection
1066
- M(e.clientX);
1067
- H(B.current || 0);
1068
- A(true);
1090
+ L(e.clientX);
1091
+ V(F.current || 0);
1092
+ _(true);
1069
1093
  }), [ O ]);
1070
- var Z = function e(n) {
1071
- var t = z - n.clientX;
1072
- var r = Math.max(W - t, 16);
1094
+ var ne = function e(n) {
1095
+ var t = M - n.clientX;
1096
+ var r = Math.max(K - t, 16);
1073
1097
  if (d !== undefined) {
1074
1098
  m === null || m === void 0 ? void 0 : m(n, {
1075
1099
  index: d,
@@ -1079,10 +1103,10 @@
1079
1103
  });
1080
1104
  }
1081
1105
  };
1082
- var ee = function e() {
1083
- A(false);
1106
+ var te = function e() {
1107
+ _(false);
1084
1108
  };
1085
- var ne = (0, t.useCallback)((function(e) {
1109
+ var re = (0, t.useCallback)((function(e) {
1086
1110
  if (d !== undefined) {
1087
1111
  p === null || p === void 0 ? void 0 : p(e, {
1088
1112
  index: d,
@@ -1091,14 +1115,14 @@
1091
1115
  });
1092
1116
  }
1093
1117
  }), [ a, l, d, p ]);
1094
- var te = un();
1095
- var re = B.current ? (0, I.sprintf)((0, T._)("%(width)d pixels"), {
1096
- width: B.current
1118
+ var oe = cn();
1119
+ var ie = F.current ? (0, I.sprintf)((0, T._)("%(width)d pixels"), {
1120
+ width: F.current
1097
1121
  }) : undefined;
1098
1122
 
1099
- return r().createElement(Le, dn({
1123
+ return r().createElement(He, vn({
1100
1124
  as: i ? "button" : "div",
1101
- ref: G,
1125
+ ref: Q,
1102
1126
  $align: o,
1103
1127
  $clickable: i,
1104
1128
  $focusWithin: s,
@@ -1106,46 +1130,47 @@
1106
1130
  $hasTooltip: !!c,
1107
1131
  $variant: S,
1108
1132
  $labelLength: E
1109
- }, b()(k, [].concat(fn(Object.keys(In.propTypes)), [ "id" ]))), q && r().createElement(r().Fragment, null, r().createElement(x(), {
1110
- target: te,
1133
+ }, b()(k, [].concat(pn(Object.keys(jn.propTypes)), [ "id" ]))), q && r().createElement(r().Fragment, null, r().createElement(x(), {
1134
+ target: oe,
1111
1135
  eventType: "mouseup",
1112
- listener: ee
1136
+ listener: te
1113
1137
  }), r().createElement(x(), {
1114
- target: te,
1138
+ target: oe,
1115
1139
  eventType: "mousemove",
1116
- listener: Z
1117
- })), m && y && r().createElement(We, {
1140
+ listener: ne
1141
+ })), m && y && r().createElement(Ke, {
1118
1142
  "aria-label": (0, I.sprintf)((0, T._)("Resize %(label)s"), {
1119
1143
  label: v
1120
1144
  }),
1121
1145
  "aria-controls": a,
1122
- "aria-valuetext": re,
1146
+ "aria-valuetext": ie,
1123
1147
  "data-test": "resize",
1124
- onMouseDown: Q,
1125
- onDoubleClick: ne,
1126
- onKeyDown: J,
1148
+ onMouseDown: ee,
1149
+ onDoubleClick: re,
1150
+ onKeyDown: Z,
1127
1151
  orientation: "vertical",
1128
1152
  tabIndex: 0
1129
- }), r().createElement($e, {
1153
+ }), r().createElement(Le, {
1130
1154
  $align: o,
1155
+ $horizontalOverflow: D,
1156
+ $labelLength: E,
1131
1157
  $truncate: C,
1132
- $variant: S,
1133
- $labelLength: E
1134
- }, v), c && r().createElement(Me, null, r().createElement(nn(), {
1158
+ $variant: S
1159
+ }, v), c && r().createElement(Ne, null, r().createElement(rn(), {
1135
1160
  "data-test": "tooltip-icon"
1136
- })), f && r().createElement(ze, null, r().createElement(Ze(), {
1161
+ })), f && r().createElement(Me, null, r().createElement(nn(), {
1137
1162
  "data-test": "caret-down",
1138
1163
  "aria-label": R
1139
- })), g && r().createElement(ze, null, V !== undefined && r().createElement(V, {
1164
+ })), g && r().createElement(Me, null, U !== undefined && r().createElement(U, {
1140
1165
  "aria-hidden": false,
1141
- "aria-label": F
1166
+ "aria-label": X
1142
1167
  })));
1143
1168
  }
1144
- In.propTypes = On;
1145
- /* harmony default export */ const Tn = In;
1169
+ jn.propTypes = Rn;
1170
+ /* harmony default export */ const Dn = jn;
1146
1171
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1147
- function jn() {
1148
- return jn = Object.assign ? Object.assign.bind() : function(e) {
1172
+ function Pn() {
1173
+ return Pn = Object.assign ? Object.assign.bind() : function(e) {
1149
1174
  for (var n = 1; n < arguments.length; n++) {
1150
1175
  var t = arguments[n];
1151
1176
  for (var r in t) {
@@ -1153,9 +1178,9 @@
1153
1178
  }
1154
1179
  }
1155
1180
  return e;
1156
- }, jn.apply(null, arguments);
1181
+ }, Pn.apply(null, arguments);
1157
1182
  }
1158
- function Dn(e, n) {
1183
+ function An(e, n) {
1159
1184
  if (null == e) return {};
1160
1185
  var t, r, o = qn(e, n);
1161
1186
  if (Object.getOwnPropertySymbols) {
@@ -1178,7 +1203,7 @@
1178
1203
  return t;
1179
1204
  }
1180
1205
  /** @public */
1181
- /** @public */ var An = {
1206
+ /** @public */ var _n = {
1182
1207
  align: w().oneOf([ "left", "center", "right" ]),
1183
1208
  /** @private Used to set the $clickable appearance without an onClick */
1184
1209
  appearClickable: w().bool,
@@ -1191,6 +1216,8 @@
1191
1216
  /** @private The index of the cell, skipping the info column. */
1192
1217
  index: w().number,
1193
1218
  /** @private. */
1219
+ isPinned: w().bool,
1220
+ /** @private. */
1194
1221
  onAutosizeColumn: w().func,
1195
1222
  /** @private. */
1196
1223
  onClick: w().func,
@@ -1218,158 +1245,159 @@
1218
1245
  visible: w().bool,
1219
1246
  width: w().oneOfType([ w().number, w().oneOf([ "auto" ]) ])
1220
1247
  };
1221
- var Pn = {
1248
+ var zn = {
1222
1249
  asc: "ascending",
1223
1250
  desc: "descending",
1224
1251
  none: "none"
1225
1252
  };
1226
- function _n(e) {
1253
+ function $n(e) {
1227
1254
  var n;
1228
- var o = e.align, i = o === void 0 ? "left" : o, l = e.appearClickable, u = e.children, s = e.columnId, c = e.elementRef, d = e.dragId, f = e.headCellScreenReaderText, v = e.id, p = e.index, m = e.onAutosizeColumn, b = e.onClick, h = e.onKeyDown, y = e.onRequestMoveColumn, g = e.onRequestResize, w = e.onSort, C = e.resizable, x = C === void 0 ? true : C, S = e.sortDir, O = S === void 0 ? "none" : S, k = e.sortKey, R = e.style, E = e.tooltip, D = e.truncate, q = D === void 0 ? true : D, A = e.variant, P = e.visible, _ = P === void 0 ? true : P, z = e.width, M = Dn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "tooltip", "truncate", "variant", "visible", "width" ]);
1255
+ var o = e.align, i = o === void 0 ? "left" : o, l = e.appearClickable, u = e.children, s = e.columnId, c = e.elementRef, d = e.dragId, f = e.headCellScreenReaderText, v = e.id, p = e.index, m = e.isPinned, b = e.onAutosizeColumn, h = e.onClick, y = e.onKeyDown, g = e.onRequestMoveColumn, w = e.onRequestResize, C = e.onSort, x = e.resizable, S = x === void 0 ? true : x, O = e.sortDir, k = O === void 0 ? "none" : O, R = e.sortKey, E = e.style, D = e.tooltip, P = e.truncate, A = P === void 0 ? true : P, q = e.variant, _ = e.visible, z = _ === void 0 ? true : _, $ = e.width, M = An(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "isPinned", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "tooltip", "truncate", "variant", "visible", "width" ]);
1229
1256
  // @docs-props-type HeadCellPropsBase
1230
- var $ = !!y;
1231
- var L = (0, a.useSortable)({
1257
+ var L = !!g;
1258
+ var W = (0, a.useSortable)({
1232
1259
  // dragId is optional in HeadCell but required by useSortable
1233
1260
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
1234
1261
  id: d
1235
- }), W = L.attributes, H = L.isDragging, K = L.listeners, B = L.setNodeRef;
1236
- var V = (0, t.useCallback)((function(e) {
1262
+ }), H = W.attributes, K = W.isDragging, V = W.listeners, B = W.setNodeRef;
1263
+ var F = (0, t.useCallback)((function(e) {
1237
1264
  N(c, e);
1238
- if ($) {
1265
+ if (L) {
1239
1266
  B(e);
1240
1267
  }
1241
- }), [ $, c, B ]);
1242
- var F = (0, t.useCallback)((function(e) {
1268
+ }), [ L, c, B ]);
1269
+ var U = (0, t.useCallback)((function(e) {
1243
1270
  // ignore clicks on the resize handle
1244
- if (e.target.getAttribute("data-test") !== "resize" && w && p !== undefined) {
1245
- w(e, {
1246
- sortKey: k,
1247
- sortDir: O,
1271
+ if (e.target.getAttribute("data-test") !== "resize" && C && p !== undefined) {
1272
+ C(e, {
1273
+ sortKey: R,
1274
+ sortDir: k,
1248
1275
  id: v,
1249
1276
  columnId: s,
1250
1277
  index: p
1251
1278
  });
1252
1279
  }
1253
- b === null || b === void 0 ? void 0 : b();
1254
- }), [ s, v, p, b, w, O, k ]);
1255
- var U = (0, t.useCallback)((function(e) {
1280
+ h === null || h === void 0 ? void 0 : h();
1281
+ }), [ s, v, p, h, C, k, R ]);
1282
+ var X = (0, t.useCallback)((function(e) {
1256
1283
  if (p !== undefined) {
1257
- h === null || h === void 0 ? void 0 : h(e, {
1284
+ y === null || y === void 0 ? void 0 : y(e, {
1258
1285
  index: p,
1259
1286
  columnId: s
1260
1287
  });
1261
1288
  }
1262
- }), [ s, p, h ]);
1263
- var X = !!w && !!O;
1264
- var Y = b !== undefined;
1265
- var G = A === "actions" ? false : q;
1266
- var J = (0, t.useMemo)((function() {
1267
- return Re()({}, R, {
1268
- width: z
1289
+ }), [ s, p, y ]);
1290
+ var Y = !!C && !!k;
1291
+ var G = h !== undefined;
1292
+ var J = q === "actions" ? false : A;
1293
+ var Q = (0, t.useMemo)((function() {
1294
+ return Ie()({}, E, {
1295
+ width: $
1269
1296
  });
1270
- }), [ R, z ]);
1271
- var Q;
1297
+ }), [ E, $ ]);
1298
+ var Z;
1272
1299
  if (f) {
1273
- Q = f;
1274
- } else if (Oe()(u)) {
1275
- Q = u;
1300
+ Z = f;
1301
+ } else if (Re()(u)) {
1302
+ Z = u;
1276
1303
  }
1277
- var Z = (n = v !== null && v !== void 0 ? v : s) !== null && n !== void 0 ? n : (0,
1304
+ var ee = (n = v !== null && v !== void 0 ? v : s) !== null && n !== void 0 ? n : (0,
1278
1305
  j.createDOMID)("headCellId-");
1279
- var ee = (0, t.useMemo)((function() {
1306
+ var ne = (0, t.useMemo)((function() {
1280
1307
  return {
1281
1308
  align: i,
1282
- clickable: l || X || Y,
1309
+ clickable: l || Y || G,
1283
1310
  columnId: s,
1284
1311
  focusWithin: l,
1285
1312
  label: u,
1286
- cellId: Z,
1313
+ cellId: ee,
1287
1314
  index: p,
1288
- onAutosizeColumn: m,
1289
- onClick: w || Y ? F : undefined,
1290
- onKeyDown: w || Y ? U : undefined,
1291
- onRequestResize: g,
1292
- resizable: _ && x,
1293
- sortDir: w && O,
1294
- truncate: G,
1295
- variant: A,
1296
- width: z
1315
+ onAutosizeColumn: b,
1316
+ onClick: C || G ? U : undefined,
1317
+ onKeyDown: C || G ? X : undefined,
1318
+ onRequestResize: w,
1319
+ resizable: z && S,
1320
+ sortDir: C && k,
1321
+ truncate: J,
1322
+ variant: q,
1323
+ width: $
1297
1324
  };
1298
- }), [ i, l, X, Y, s, u, Z, p, m, w, F, U, g, _, x, O, G, A, z ]);
1299
- var ne = (0, t.useCallback)((function(e) {
1325
+ }), [ i, l, Y, G, s, u, ee, p, b, C, U, X, w, z, S, k, J, q, $ ]);
1326
+ var te = (0, t.useCallback)((function(e) {
1300
1327
 
1301
- return r().createElement(Tn, jn({}, e, ee, {
1328
+ return r().createElement(Dn, Pn({}, e, ne, {
1302
1329
  hasTooltip: true
1303
1330
  }));
1304
- }), [ ee ]);
1331
+ }), [ ne ]);
1305
1332
 
1306
- return r().createElement(Ke, jn({
1307
- style: J,
1308
- ref: V,
1309
- "aria-sort": w && (Pn[O] || "none"),
1333
+ return r().createElement(Be, Pn({
1334
+ style: Q,
1335
+ ref: F,
1336
+ "aria-sort": C && (zn[k] || "none"),
1310
1337
  "data-test": "head-cell",
1311
- "data-test-label": Oe()(u) ? u : undefined,
1312
- "data-test-sort-dir": w && O,
1313
- id: _ ? Z : undefined,
1314
- $isDragging: $ && H,
1315
- $variant: A
1316
- }, M), r().createElement(He, null, $ && r().createElement(Ve, jn({
1338
+ "data-test-label": Re()(u) ? u : undefined,
1339
+ "data-test-sort-dir": C && k,
1340
+ id: z ? ee : undefined,
1341
+ $isDragging: L && K,
1342
+ $isPinned: m,
1343
+ $variant: q
1344
+ }, M), r().createElement(Ve, null, L && r().createElement(Ue, Pn({
1317
1345
  "aria-label": (0, I.sprintf)((0, T._)("Reorder %(labelString)s"), {
1318
- labelString: Q
1346
+ labelString: Z
1319
1347
  }),
1320
1348
  "data-test": "drag",
1321
1349
  draggable: true
1322
- }, W, K), r().createElement(Be, null, r().createElement(Ie(), null))), E ? r().createElement(je(), {
1323
- content: E,
1324
- renderAnchor: ne
1325
- }) : r().createElement(Tn, ee)));
1326
- }
1327
- _n.propTypes = An;
1328
- _n.splunkUiType = "Table.HeadCell";
1329
- /* harmony default export */ const zn = _n;
1350
+ }, H, V), r().createElement(Fe, null, r().createElement(je(), null))), D ? r().createElement(Pe(), {
1351
+ content: D,
1352
+ renderAnchor: te
1353
+ }) : r().createElement(Dn, ne)));
1354
+ }
1355
+ $n.propTypes = _n;
1356
+ $n.splunkUiType = "Table.HeadCell";
1357
+ /* harmony default export */ const Mn = $n;
1330
1358
  // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1331
- var Mn = z().thead.withConfig({
1359
+ var Nn = z().thead.withConfig({
1332
1360
  displayName: "HeadStyles__Styled",
1333
1361
  componentId: "iap21t-0"
1334
- })([ "", ";", "" ], M.mixins.reset("table-header-group"), (function(e) {
1362
+ })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1335
1363
  var n = e.$isFixed, t = e.$zIndex;
1336
1364
  return n && (0, _.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1337
1365
  }));
1338
- var $n = z()(zn).withConfig({
1366
+ var Ln = z()(Mn).withConfig({
1339
1367
  displayName: "HeadStyles__StyledToggleAll",
1340
1368
  componentId: "iap21t-1"
1341
- })([ "width:32px;" ]);
1342
- var Nn = z()(zn).withConfig({
1369
+ })([ "width:32px;min-width:32px;" ]);
1370
+ var Wn = z()(Mn).withConfig({
1343
1371
  displayName: "HeadStyles__StyledInfo",
1344
1372
  componentId: "iap21t-2"
1345
- })([ "width:32px;" ]);
1346
- var Ln = z()(zn).withConfig({
1373
+ })([ "width:32px;min-width:32px;" ]);
1374
+ var Hn = z()(Mn).withConfig({
1347
1375
  displayName: "HeadStyles__StyledDragRow",
1348
1376
  componentId: "iap21t-3"
1349
1377
  })([ "width:32px;" ]);
1350
1378
  // CONCATENATED MODULE: external "@dnd-kit/utilities"
1351
- const Wn = require("@dnd-kit/utilities");
1379
+ const Kn = require("@dnd-kit/utilities");
1352
1380
  // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
1353
- const Hn = require("@splunk/react-icons/DotsThreeVertical");
1354
- var Kn = e.n(Hn);
1381
+ const Vn = require("@splunk/react-icons/DotsThreeVertical");
1382
+ var Bn = e.n(Vn);
1355
1383
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1356
- const Bn = require("@splunk/react-ui/Button");
1357
- var Vn = e.n(Bn);
1358
- // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1359
- const Fn = require("@splunk/react-ui/Dropdown");
1384
+ const Fn = require("@splunk/react-ui/Button");
1360
1385
  var Un = e.n(Fn);
1361
- // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1362
- const Xn = require("@splunk/react-icons/ChevronRight");
1386
+ // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1387
+ const Xn = require("@splunk/react-ui/Dropdown");
1363
1388
  var Yn = e.n(Xn);
1389
+ // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1390
+ const Gn = require("@splunk/react-icons/ChevronRight");
1391
+ var Jn = e.n(Gn);
1364
1392
  // CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
1365
- var Gn = z().button.withConfig({
1393
+ var Qn = z().button.withConfig({
1366
1394
  displayName: "ExpandButtonStyles__StyledButton",
1367
1395
  componentId: "sc-7nlw5q-0"
1368
- })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], M.mixins.reset("flex"), M.variables.contentColorDefault, M.variables.contentColorActive, M.variables.contentColorActive, M.variables.focusShadowInset);
1369
- var Jn = z()(Yn()).withConfig({
1396
+ })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], $.mixins.reset("flex"), $.variables.contentColorDefault, $.variables.contentColorActive, $.variables.contentColorActive, $.variables.focusShadowInset);
1397
+ var Zn = z()(Jn()).withConfig({
1370
1398
  displayName: "ExpandButtonStyles__StyledChevron",
1371
1399
  componentId: "sc-7nlw5q-1"
1372
- })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, M.pick)({
1400
+ })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, $.pick)({
1373
1401
  comfortable: "10px",
1374
1402
  compact: "8px"
1375
1403
  }), (function(e) {
@@ -1377,8 +1405,8 @@
1377
1405
  return n && (0, _.css)([ "transform:rotate(90deg);" ]);
1378
1406
  }));
1379
1407
  // CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
1380
- function Qn() {
1381
- return Qn = Object.assign ? Object.assign.bind() : function(e) {
1408
+ function et() {
1409
+ return et = Object.assign ? Object.assign.bind() : function(e) {
1382
1410
  for (var n = 1; n < arguments.length; n++) {
1383
1411
  var t = arguments[n];
1384
1412
  for (var r in t) {
@@ -1386,11 +1414,11 @@
1386
1414
  }
1387
1415
  }
1388
1416
  return e;
1389
- }, Qn.apply(null, arguments);
1417
+ }, et.apply(null, arguments);
1390
1418
  }
1391
- function Zn(e, n) {
1419
+ function nt(e, n) {
1392
1420
  if (null == e) return {};
1393
- var t, r, o = et(e, n);
1421
+ var t, r, o = tt(e, n);
1394
1422
  if (Object.getOwnPropertySymbols) {
1395
1423
  var i = Object.getOwnPropertySymbols(e);
1396
1424
  for (r = 0; r < i.length; r++) {
@@ -1399,7 +1427,7 @@
1399
1427
  }
1400
1428
  return o;
1401
1429
  }
1402
- function et(e, n) {
1430
+ function tt(e, n) {
1403
1431
  if (null == e) return {};
1404
1432
  var t = {};
1405
1433
  for (var r in e) {
@@ -1410,33 +1438,33 @@
1410
1438
  }
1411
1439
  return t;
1412
1440
  }
1413
- var nt = {
1441
+ var rt = {
1414
1442
  expanded: w().bool
1415
1443
  };
1416
- var tt = function e(n) {
1417
- var t = n.expanded, o = Zn(n, [ "expanded" ]);
1444
+ var ot = function e(n) {
1445
+ var t = n.expanded, o = nt(n, [ "expanded" ]);
1418
1446
  // @docs-props-type ExpandButtonPropsBase
1419
1447
 
1420
- return r().createElement(Gn, Qn({
1448
+ return r().createElement(Qn, et({
1421
1449
  title: t ? (0, T._)("Collapse row") : (0, T._)("Expand row")
1422
- }, o), r().createElement(Jn, {
1450
+ }, o), r().createElement(Zn, {
1423
1451
  $expanded: t
1424
1452
  }));
1425
1453
  };
1426
- tt.propTypes = nt;
1427
- /* harmony default export */ const rt = tt;
1454
+ ot.propTypes = rt;
1455
+ /* harmony default export */ const it = ot;
1428
1456
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
1429
- var ot = z().td.withConfig({
1457
+ var at = z().td.withConfig({
1430
1458
  displayName: "RowDragCellStyles__StyledCell",
1431
1459
  componentId: "sc-9kbaj2-0"
1432
- })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], M.mixins.reset("table-cell"));
1433
- var it = z().div.withConfig({
1460
+ })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], $.mixins.reset("table-cell"));
1461
+ var lt = z().div.withConfig({
1434
1462
  displayName: "RowDragCellStyles__StyledDrag",
1435
1463
  componentId: "sc-9kbaj2-1"
1436
- })([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], M.mixins.reset("flex"), M.mixins.clearfix(), M.variables.focusShadowInset, M.variables.interactiveColorOverlayDrag, M.variables.interactiveColorOverlayActive, M.variables.focusShadowInset);
1464
+ })([ "", " ", ";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);
1437
1465
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
1438
- function at() {
1439
- return at = Object.assign ? Object.assign.bind() : function(e) {
1466
+ function ut() {
1467
+ return ut = Object.assign ? Object.assign.bind() : function(e) {
1440
1468
  for (var n = 1; n < arguments.length; n++) {
1441
1469
  var t = arguments[n];
1442
1470
  for (var r in t) {
@@ -1444,11 +1472,11 @@
1444
1472
  }
1445
1473
  }
1446
1474
  return e;
1447
- }, at.apply(null, arguments);
1475
+ }, ut.apply(null, arguments);
1448
1476
  }
1449
- function lt(e, n) {
1477
+ function st(e, n) {
1450
1478
  if (null == e) return {};
1451
- var t, r, o = ut(e, n);
1479
+ var t, r, o = ct(e, n);
1452
1480
  if (Object.getOwnPropertySymbols) {
1453
1481
  var i = Object.getOwnPropertySymbols(e);
1454
1482
  for (r = 0; r < i.length; r++) {
@@ -1457,7 +1485,7 @@
1457
1485
  }
1458
1486
  return o;
1459
1487
  }
1460
- function ut(e, n) {
1488
+ function ct(e, n) {
1461
1489
  if (null == e) return {};
1462
1490
  var t = {};
1463
1491
  for (var r in e) {
@@ -1468,64 +1496,69 @@
1468
1496
  }
1469
1497
  return t;
1470
1498
  }
1471
- var st = {
1499
+ var dt = {
1472
1500
  setActivatorNodeRef: w().func.isRequired,
1473
1501
  listeners: w().objectOf(w().func)
1474
1502
  };
1475
- function ct(e) {
1476
- var n = e.listeners, t = e.setActivatorNodeRef, o = lt(e, [ "listeners", "setActivatorNodeRef" ]);
1503
+ function ft(e) {
1504
+ var n = e.listeners, t = e.setActivatorNodeRef, o = st(e, [ "listeners", "setActivatorNodeRef" ]);
1477
1505
  // @docs-props-type RowDragCellPropsBase
1478
1506
 
1479
- return r().createElement(ot, {
1507
+ return r().createElement(at, {
1480
1508
  "data-helper": true
1481
- }, r().createElement(it, at({
1509
+ }, r().createElement(lt, ut({
1482
1510
  "data-test": "drag",
1483
1511
  draggable: true,
1484
1512
  ref: t,
1485
1513
  tabIndex: 0
1486
- }, n, o), r().createElement(Ie(), null)));
1514
+ }, n, o), r().createElement(je(), null)));
1487
1515
  }
1488
- ct.propTypes = st;
1489
- /* harmony default export */ const dt = ct;
1516
+ ft.propTypes = dt;
1517
+ /* harmony default export */ const vt = ft;
1490
1518
  // CONCATENATED MODULE: ./src/Table/RowStyles.ts
1491
- var ft = z().tr.withConfig({
1519
+ var pt = z().tr.withConfig({
1492
1520
  displayName: "RowStyles__StyledStripeNone",
1493
1521
  componentId: "f0igqq-0"
1494
- })([ "", ";", ";", " @media print{background-color:none;}" ], M.mixins.reset("table-row"), (function(e) {
1495
- var n = e.$clickable;
1496
- return n && (0, _.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], M.variables.neutral100, M.variables.neutral100, M.variables.focusShadowInset);
1522
+ })([ "", ";", ";", " @media print{background-color:none;}" ], $.mixins.reset("table-row"), (function(e) {
1523
+ var n = e.$clickable, t = e.$isActionColumnPinned;
1524
+ return n && (0, _.css)([ "cursor:pointer;&:hover{background-color:", ";", "}&:focus{background-color:", ";position:relative;&::after{content:'';display:block;position:absolute;left:0;right:0;top:0;bottom:0;box-shadow:", ";pointer-events:none;}", "}" ], $.variables.neutral100, t && (0,
1525
+ _.css)([ "td[data-test='row-actions']{background-color:inherit;}" ]), $.variables.neutral100, $.variables.focusShadowInset, t && (0,
1526
+ _.css)([ "td[data-test='row-actions']{background-color:inherit;}" ]));
1497
1527
  }), (function(e) {
1498
1528
  var n = e.disabled, t = e.$expandable, r = e.$isDraggable;
1499
- return !n && !t && r && (0, _.css)([ "&:hover{background-color:", ";}" ], M.variables.interactiveColorOverlayHover);
1529
+ return !n && !t && r && (0, _.css)([ "&:hover{background-color:", ";}" ], $.variables.interactiveColorOverlayHover);
1500
1530
  }));
1501
- var vt = z()(ft).withConfig({
1531
+ var mt = z()(pt).withConfig({
1502
1532
  displayName: "RowStyles__StyledStripeEven",
1503
1533
  componentId: "f0igqq-1"
1504
- })([ "background-color:", ";", ";" ], M.variables.neutral50, (function(e) {
1534
+ })([ "background-color:", ";", " ", ";" ], $.variables.neutral50, (function(e) {
1535
+ var n = e.$isActionColumnPinned;
1536
+ return n && (0, _.css)([ "td[data-test='row-actions']{background-color:inherit;}" ]);
1537
+ }), (function(e) {
1505
1538
  var n = e.$clickable;
1506
- return n && (0, _.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], M.variables.neutral300);
1539
+ return n && (0, _.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], $.variables.neutral300);
1507
1540
  }));
1508
1541
  // CONCATENATED MODULE: external "@splunk/react-ui/Checkbox"
1509
- const pt = require("@splunk/react-ui/Checkbox");
1510
- var mt = e.n(pt);
1511
- // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1512
- const bt = require("@splunk/react-ui/Clickable");
1542
+ const bt = require("@splunk/react-ui/Checkbox");
1513
1543
  var ht = e.n(bt);
1544
+ // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1545
+ const yt = require("@splunk/react-ui/Clickable");
1546
+ var gt = e.n(yt);
1514
1547
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
1515
- var yt = z()(ht()).withConfig({
1548
+ var wt = z()(gt()).withConfig({
1516
1549
  displayName: "ToggleStyles__StyledClickable",
1517
1550
  componentId: "sc-1x3ikch-0"
1518
1551
  })([ "height:100%;width:100%;display:flex;justify-content:center;&[disabled]{cursor:not-allowed;}" ]);
1519
- var gt = z()(mt()).withConfig({
1552
+ var Ct = z()(ht()).withConfig({
1520
1553
  displayName: "ToggleStyles__StyledCheckbox",
1521
1554
  componentId: "sc-1x3ikch-1"
1522
- })([ "align-items:flex-start;padding-block:", ";" ], (0, M.pick)({
1555
+ })([ "align-items:flex-start;padding-block:", ";" ], (0, $.pick)({
1523
1556
  comfortable: "8px",
1524
1557
  compact: "6px"
1525
1558
  }));
1526
1559
  // CONCATENATED MODULE: ./src/Table/Toggle.tsx
1527
- function wt() {
1528
- return wt = Object.assign ? Object.assign.bind() : function(e) {
1560
+ function xt() {
1561
+ return xt = Object.assign ? Object.assign.bind() : function(e) {
1529
1562
  for (var n = 1; n < arguments.length; n++) {
1530
1563
  var t = arguments[n];
1531
1564
  for (var r in t) {
@@ -1533,11 +1566,11 @@
1533
1566
  }
1534
1567
  }
1535
1568
  return e;
1536
- }, wt.apply(null, arguments);
1569
+ }, xt.apply(null, arguments);
1537
1570
  }
1538
- function Ct(e, n) {
1571
+ function St(e, n) {
1539
1572
  if (null == e) return {};
1540
- var t, r, o = xt(e, n);
1573
+ var t, r, o = Ot(e, n);
1541
1574
  if (Object.getOwnPropertySymbols) {
1542
1575
  var i = Object.getOwnPropertySymbols(e);
1543
1576
  for (r = 0; r < i.length; r++) {
@@ -1546,7 +1579,7 @@
1546
1579
  }
1547
1580
  return o;
1548
1581
  }
1549
- function xt(e, n) {
1582
+ function Ot(e, n) {
1550
1583
  if (null == e) return {};
1551
1584
  var t = {};
1552
1585
  for (var r in e) {
@@ -1557,41 +1590,41 @@
1557
1590
  }
1558
1591
  return t;
1559
1592
  }
1560
- var St = {
1593
+ var kt = {
1561
1594
  disabled: w().bool,
1562
1595
  onClick: w().func,
1563
1596
  selected: w().oneOf([ true, false, "some" ])
1564
1597
  };
1565
- function Ot(e) {
1566
- var n = e.disabled, t = e.onClick, o = e.selected, i = Ct(e, [ "disabled", "onClick", "selected" ]);
1598
+ function Rt(e) {
1599
+ var n = e.disabled, t = e.onClick, o = e.selected, i = St(e, [ "disabled", "onClick", "selected" ]);
1567
1600
  // @docs-props-type TogglePropsBase
1568
1601
  var a = n === true ? "disabled" : undefined;
1569
1602
 
1570
1603
  // we use a Clickable around the inert Checkbox (which can seem ironic) so that the whole table cell is clickable
1571
1604
  // we cannot use the Cell's onClick itself because of a11y issues we have faced in the past (see SUI-5958).
1572
- return r().createElement(yt, wt({
1605
+ return r().createElement(wt, xt({
1573
1606
  "aria-checked": o === "some" ? "mixed" : o,
1574
1607
  disabled: a,
1575
1608
  onClick: t,
1576
1609
  role: "checkbox"
1577
- }, i), r().createElement(gt, {
1610
+ }, i), r().createElement(Ct, {
1578
1611
  checked: o === "some" ? "indeterminate" : o,
1579
1612
  disabled: !!a,
1580
1613
  inert: true
1581
1614
  }));
1582
1615
  }
1583
- Ot.propTypes = St;
1584
- /* harmony default export */ const kt = Ot;
1616
+ Rt.propTypes = kt;
1617
+ /* harmony default export */ const Et = Rt;
1585
1618
  // CONCATENATED MODULE: ./src/Table/Row.tsx
1586
- function Rt(e) {
1619
+ function It(e) {
1587
1620
  "@babel/helpers - typeof";
1588
- return Rt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1621
+ return It = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1589
1622
  return typeof e;
1590
1623
  } : function(e) {
1591
1624
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1592
- }, Rt(e);
1625
+ }, It(e);
1593
1626
  }
1594
- function Et(e, n) {
1627
+ function Tt(e, n) {
1595
1628
  var t = Object.keys(e);
1596
1629
  if (Object.getOwnPropertySymbols) {
1597
1630
  var r = Object.getOwnPropertySymbols(e);
@@ -1601,42 +1634,42 @@
1601
1634
  }
1602
1635
  return t;
1603
1636
  }
1604
- function It(e) {
1637
+ function jt(e) {
1605
1638
  for (var n = 1; n < arguments.length; n++) {
1606
1639
  var t = null != arguments[n] ? arguments[n] : {};
1607
- n % 2 ? Et(Object(t), !0).forEach((function(n) {
1608
- Tt(e, n, t[n]);
1609
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Et(Object(t)).forEach((function(n) {
1640
+ n % 2 ? Tt(Object(t), !0).forEach((function(n) {
1641
+ Dt(e, n, t[n]);
1642
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Tt(Object(t)).forEach((function(n) {
1610
1643
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1611
1644
  }));
1612
1645
  }
1613
1646
  return e;
1614
1647
  }
1615
- function Tt(e, n, t) {
1616
- return (n = jt(n)) in e ? Object.defineProperty(e, n, {
1648
+ function Dt(e, n, t) {
1649
+ return (n = Pt(n)) in e ? Object.defineProperty(e, n, {
1617
1650
  value: t,
1618
1651
  enumerable: !0,
1619
1652
  configurable: !0,
1620
1653
  writable: !0
1621
1654
  }) : e[n] = t, e;
1622
1655
  }
1623
- function jt(e) {
1624
- var n = Dt(e, "string");
1625
- return "symbol" == Rt(n) ? n : n + "";
1656
+ function Pt(e) {
1657
+ var n = At(e, "string");
1658
+ return "symbol" == It(n) ? n : n + "";
1626
1659
  }
1627
- function Dt(e, n) {
1628
- if ("object" != Rt(e) || !e) return e;
1660
+ function At(e, n) {
1661
+ if ("object" != It(e) || !e) return e;
1629
1662
  var t = e[Symbol.toPrimitive];
1630
1663
  if (void 0 !== t) {
1631
1664
  var r = t.call(e, n || "default");
1632
- if ("object" != Rt(r)) return r;
1665
+ if ("object" != It(r)) return r;
1633
1666
  throw new TypeError("@@toPrimitive must return a primitive value.");
1634
1667
  }
1635
1668
  return ("string" === n ? String : Number)(e);
1636
1669
  }
1637
1670
  function qt(e, n) {
1638
1671
  if (null == e) return {};
1639
- var t, r, o = At(e, n);
1672
+ var t, r, o = _t(e, n);
1640
1673
  if (Object.getOwnPropertySymbols) {
1641
1674
  var i = Object.getOwnPropertySymbols(e);
1642
1675
  for (r = 0; r < i.length; r++) {
@@ -1645,7 +1678,7 @@
1645
1678
  }
1646
1679
  return o;
1647
1680
  }
1648
- function At(e, n) {
1681
+ function _t(e, n) {
1649
1682
  if (null == e) return {};
1650
1683
  var t = {};
1651
1684
  for (var r in e) {
@@ -1656,8 +1689,8 @@
1656
1689
  }
1657
1690
  return t;
1658
1691
  }
1659
- function Pt() {
1660
- return Pt = Object.assign ? Object.assign.bind() : function(e) {
1692
+ function zt() {
1693
+ return zt = Object.assign ? Object.assign.bind() : function(e) {
1661
1694
  for (var n = 1; n < arguments.length; n++) {
1662
1695
  var t = arguments[n];
1663
1696
  for (var r in t) {
@@ -1665,18 +1698,18 @@
1665
1698
  }
1666
1699
  }
1667
1700
  return e;
1668
- }, Pt.apply(null, arguments);
1701
+ }, zt.apply(null, arguments);
1669
1702
  }
1670
- var _t = {
1671
- odd: ft,
1672
- even: vt,
1673
- none: ft
1703
+ var $t = {
1704
+ odd: pt,
1705
+ even: mt,
1706
+ none: pt
1674
1707
  };
1675
1708
  /** @public */
1676
1709
  /** @public */
1677
1710
  /** @public */
1678
1711
  /** @public */
1679
- /** @public */ var zt = {
1712
+ /** @public */ var Mt = {
1680
1713
  /** @private. Generally passed by Table rather than added directly. */
1681
1714
  activeElementId: w().string,
1682
1715
  actionPrimary: w().element,
@@ -1708,6 +1741,8 @@
1708
1741
  /** @private. Generally passed by `Table` rather than added directly. */
1709
1742
  onRequestMoveRow: w().func,
1710
1743
  onRequestToggle: w().func,
1744
+ /** @private. */
1745
+ pinnedColumns: w().object,
1711
1746
  /** @private. Generally passed by `Table` rather than added directly. */
1712
1747
  primaryColumnIndex: w().number,
1713
1748
  rowScreenReaderText: w().string,
@@ -1715,41 +1750,41 @@
1715
1750
  /** @private. */
1716
1751
  stripe: w().oneOf([ "odd", "even", "none" ])
1717
1752
  };
1718
- var Mt = r().createElement(Kn(), null);
1719
- var $t = r().forwardRef((function(e, n) {
1753
+ var Nt = r().createElement(Bn(), null);
1754
+ var Lt = r().forwardRef((function(e, n) {
1720
1755
 
1721
- return r().createElement(je(), Pt({
1756
+ return r().createElement(Pe(), zt({
1722
1757
  content: (0, T._)("Actions"),
1723
1758
  contentRelationship: "label"
1724
- }, e), r().createElement(Vn(), {
1759
+ }, e), r().createElement(Un(), {
1725
1760
  appearance: "subtle",
1726
1761
  "data-test": "actions-secondary-toggle",
1727
- icon: Mt,
1762
+ icon: Nt,
1728
1763
  elementRef: n
1729
1764
  }));
1730
1765
  }));
1731
- function Nt(e) {
1766
+ function Wt(e) {
1732
1767
  var n;
1733
- var o = e.actions, i = e.actionPrimary, l = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, m = e.expanded, h = e.expansionRowIds, y = e.expansionRow, g = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, O = e.onRequestToggle, k = e.primaryColumnIndex, R = k === void 0 ? 0 : k, E = e.rowScreenReaderText, D = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = qt(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" ]);
1768
+ var o = e.actions, i = e.actionPrimary, l = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.pinnedColumns, v = e.isDraggable, p = e.elementRef, m = e.expandable, h = e.expanded, y = e.expansionRowIds, g = e.expansionRow, w = e.index, C = e.movableColumns, x = e.onClick, S = e.onExpansion, O = e.onKeyDown, k = e.onRequestToggle, R = e.primaryColumnIndex, E = R === void 0 ? 0 : R, D = e.rowScreenReaderText, P = e.selected, A = e.stripe, q = A === void 0 ? "none" : A, _ = e.style, z = qt(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "pinnedColumns", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1734
1769
  // @docs-props-type RowPropsBase
1735
- var z = (0, t.useMemo)((function() {
1770
+ var $ = (0, t.useMemo)((function() {
1736
1771
  return {
1737
- id: f ? c : (0, j.createGUID)(),
1738
- disabled: !f
1772
+ id: v ? c : (0, j.createGUID)(),
1773
+ disabled: !v
1739
1774
  };
1740
- }), [ f, c ]);
1741
- var M = (0, a.useSortable)(z), $ = M.attributes, L = M.listeners, W = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1742
- var V = (0, t.useMemo)((function() {
1743
- return f ? It(It({}, P), {}, {
1744
- transform: Wn.CSS.Translate.toString(W),
1745
- transition: H
1746
- }) : P;
1747
- }), [ f, W, H, P ]);
1748
- var F = (0, t.useRef)(null);
1749
- var U = (0, t.useCallback)((function(e) {
1775
+ }), [ v, c ]);
1776
+ var M = (0, a.useSortable)($), L = M.attributes, W = M.listeners, H = M.transform, K = M.transition, V = M.setNodeRef, B = M.setActivatorNodeRef;
1777
+ var F = (0, t.useMemo)((function() {
1778
+ return v ? jt(jt({}, _), {}, {
1779
+ transform: Kn.CSS.Translate.toString(H),
1780
+ transition: K
1781
+ }) : _;
1782
+ }), [ v, H, K, _ ]);
1783
+ var U = (0, t.useRef)(null);
1784
+ var X = (0, t.useCallback)((function(e) {
1750
1785
  var n = e.target;
1751
1786
  while (n) {
1752
- if (F.current === n) {
1787
+ if (U.current === n) {
1753
1788
  break;
1754
1789
  }
1755
1790
  // Ignore clicks on row-actions
@@ -1759,26 +1794,26 @@
1759
1794
  n = n.parentNode;
1760
1795
  }
1761
1796
  if (!e.defaultPrevented) {
1762
- C === null || C === void 0 ? void 0 : C(e, s);
1797
+ x === null || x === void 0 ? void 0 : x(e, s);
1763
1798
  }
1764
- }), [ s, C ]);
1765
- var X = (0, t.useCallback)((function(e) {
1766
- if (e.key === "Enter" && C) {
1767
- C(e, s);
1768
- }
1769
- S === null || S === void 0 ? void 0 : S(e);
1770
- }), [ s, C, S ]);
1799
+ }), [ s, x ]);
1771
1800
  var Y = (0, t.useCallback)((function(e) {
1801
+ if (e.key === "Enter" && x) {
1802
+ x(e, s);
1803
+ }
1804
+ O === null || O === void 0 ? void 0 : O(e);
1805
+ }), [ s, x, O ]);
1806
+ var G = (0, t.useCallback)((function(e) {
1772
1807
  if (!d) {
1773
1808
  e.preventDefault();
1774
- O === null || O === void 0 ? void 0 : O(e, s);
1809
+ k === null || k === void 0 ? void 0 : k(e, s);
1775
1810
  }
1776
- }), [ s, d, O ]);
1777
- var G = (0, t.useCallback)((function(e) {
1811
+ }), [ s, d, k ]);
1812
+ var J = (0, t.useCallback)((function(e) {
1778
1813
  e.preventDefault();
1779
- x === null || x === void 0 ? void 0 : x(e, s);
1780
- }), [ s, x ]);
1781
- var J = function n() {
1814
+ S === null || S === void 0 ? void 0 : S(e, s);
1815
+ }), [ s, S ]);
1816
+ var Q = function n() {
1782
1817
  if (i && i.props.onClick) {
1783
1818
 
1784
1819
  return (0, t.cloneElement)(i, {
@@ -1791,7 +1826,7 @@
1791
1826
  }
1792
1827
  return i;
1793
1828
  };
1794
- var Q = function n() {
1829
+ var Z = function n() {
1795
1830
  if (l && l.props.children) {
1796
1831
  var r = t.Children.toArray(l.props.children).filter(t.isValidElement);
1797
1832
  var o = r.map((function(n) {
@@ -1814,126 +1849,125 @@
1814
1849
  }
1815
1850
  return l;
1816
1851
  };
1817
- function Z(e) {
1818
- F.current = e;
1819
- N(v, e);
1820
- if (f) {
1821
- K(e);
1852
+ function ee(e) {
1853
+ U.current = e;
1854
+ N(p, e);
1855
+ if (v) {
1856
+ V(e);
1822
1857
  }
1823
1858
  }
1824
- var ee = t.Children.toArray(u).map((function(e, n) {
1859
+ var ne = t.Children.toArray(u).map((function(e, n) {
1825
1860
 
1826
1861
  return (0, t.cloneElement)(e, {
1827
- appearance: C ? "rowLink" : e.props.appearance,
1862
+ appearance: x ? "rowLink" : e.props.appearance,
1828
1863
  disabled: d,
1829
- isPrimaryCell: R === n,
1830
- stripe: A
1864
+ isPrimaryCell: E === n,
1865
+ stripe: q
1831
1866
  });
1832
1867
  }));
1833
- var ne;
1834
- if (E) {
1835
- ne = E;
1836
- } else if ((n = ee[R]) === null || n === void 0 ? void 0 : n.props.children) {
1837
- var te;
1838
- ne = "".concat((te = ee[R]) === null || te === void 0 ? void 0 : te.props.children);
1839
- } else {
1868
+ var te;
1869
+ if (D) {
1870
+ te = D;
1871
+ } else if ((n = ne[E]) === null || n === void 0 ? void 0 : n.props.children) {
1840
1872
  var re;
1841
- ne = "".concat((re = ee[0]) === null || re === void 0 ? void 0 : re.props.children);
1873
+ te = "".concat((re = ne[E]) === null || re === void 0 ? void 0 : re.props.children);
1874
+ } else {
1875
+ var oe;
1876
+ te = "".concat((oe = ne[0]) === null || oe === void 0 ? void 0 : oe.props.children);
1842
1877
  if (false) {}
1843
1878
  }
1844
- var oe = (0, I.sprintf)((0, T._)("%(selected)s"), {
1845
- selected: D ? "selected" : "unselected"
1879
+ var ie = (0, I.sprintf)((0, T._)("%(selected)s"), {
1880
+ selected: P ? "selected" : "unselected"
1846
1881
  });
1847
- var ie = _t[A];
1848
- var ae = m ? t.Children.count(y) + 1 : undefined;
1849
- var le = w ? "false" : undefined;
1850
- var ue = function e() {
1882
+ var ae = $t[q];
1883
+ var le = h ? t.Children.count(g) + 1 : undefined;
1884
+ var ue = C ? "false" : undefined;
1885
+ var se = function e() {
1851
1886
 
1852
- return r().createElement($t, null);
1887
+ return r().createElement(Lt, null);
1853
1888
  };
1854
- var se = (0, I.sprintf)((0, T._)("Collapse row - %(rowLabelValue)s"), {
1855
- rowLabelValue: ne
1889
+ var ce = (0, I.sprintf)((0, T._)("Collapse row - %(rowLabelValue)s"), {
1890
+ rowLabelValue: te
1856
1891
  });
1857
- var ce = (0, I.sprintf)((0, T._)("Expand row - %(rowLabelValue)s"), {
1858
- rowLabelValue: ne
1892
+ var de = (0, I.sprintf)((0, T._)("Expand row - %(rowLabelValue)s"), {
1893
+ rowLabelValue: te
1859
1894
  });
1860
1895
 
1861
- return r().createElement(ie, Pt({
1896
+ return r().createElement(ae, zt({
1862
1897
  "data-test": "row",
1863
- "data-test-selected": O ? D : undefined,
1864
- $clickable: !!C,
1865
- "data-has-movable-columns": w ? "true" : undefined,
1898
+ "data-test-selected": k ? P : undefined,
1899
+ $clickable: !!x,
1900
+ "data-has-movable-columns": C ? "true" : undefined,
1866
1901
  disabled: !!d,
1867
- $expandable: !!p,
1868
- $isDraggable: !!f,
1869
- ref: Z,
1870
- tabIndex: C ? 0 : undefined
1871
- }, b()(_, "data"), {
1872
- onClick: C ? U : undefined,
1873
- onKeyDown: X,
1874
- $rowSelected: !!(O && D),
1875
- style: V
1876
- }), f && g != null && r().createElement(dt, Pt({
1902
+ $expandable: !!m,
1903
+ $isActionColumnPinned: f === null || f === void 0 ? void 0 : f.actions,
1904
+ $isDraggable: !!v,
1905
+ ref: ee,
1906
+ tabIndex: x ? 0 : undefined
1907
+ }, b()(z, "data"), {
1908
+ onClick: x ? X : undefined,
1909
+ onKeyDown: Y,
1910
+ $rowSelected: !!(k && P),
1911
+ style: F
1912
+ }), v && w != null && r().createElement(vt, zt({
1877
1913
  "aria-label": (0, I.sprintf)((0, T._)("Reorder %(rowLabelValue)s"), {
1878
- rowLabelValue: ne
1914
+ rowLabelValue: te
1879
1915
  }),
1880
1916
  setActivatorNodeRef: B,
1881
- listeners: L
1882
- }, $)), O && r().createElement(xe, {
1917
+ listeners: W
1918
+ }, L)), k && r().createElement(Oe, {
1883
1919
  align: "center",
1884
- appearance: C ? "rowLink" : "data",
1920
+ appearance: x ? "rowLink" : "data",
1885
1921
  disabled: d,
1886
1922
  variant: "toggle",
1887
- "data-movable-column": le,
1888
- rowSpan: ae,
1923
+ "data-movable-column": ue,
1924
+ rowSpan: le,
1889
1925
  "data-test": "toggle"
1890
- }, r().createElement(kt, {
1926
+ }, r().createElement(Et, {
1891
1927
  "aria-label": (0, I.sprintf)((0, T._)("%(rowLabelValue)s %(selectedString)s"), {
1892
- rowLabelValue: ne,
1893
- selectedString: oe
1928
+ rowLabelValue: te,
1929
+ selectedString: ie
1894
1930
  }),
1895
1931
  disabled: d,
1896
- onClick: Y,
1897
- selected: D
1898
- })), p && y && r().createElement(xe, {
1932
+ onClick: G,
1933
+ selected: P
1934
+ })), m && g && r().createElement(Oe, {
1899
1935
  align: "center",
1900
1936
  appearance: "data",
1901
- "data-movable-column": le,
1937
+ "data-movable-column": ue,
1902
1938
  "data-test": "expand",
1903
- expand: m,
1904
- rowSpan: ae,
1939
+ expand: h,
1940
+ rowSpan: le,
1905
1941
  variant: "expand"
1906
- }, r().createElement(rt, {
1907
- expanded: m,
1908
- onClick: G,
1909
- title: m ? se : ce,
1910
- "aria-controls": m ? h : undefined,
1911
- "aria-expanded": m
1912
- })), p && !y && r().createElement(xe, {
1942
+ }, r().createElement(it, {
1943
+ expanded: h,
1944
+ onClick: J,
1945
+ title: h ? ce : de,
1946
+ "aria-controls": h ? y : undefined,
1947
+ "aria-expanded": h
1948
+ })), m && !g && r().createElement(Oe, {
1913
1949
  variant: "expand",
1914
- "data-movable-column": le
1915
- }), ee, o && !i && !l && r().createElement(xe, {
1950
+ "data-movable-column": ue
1951
+ }), ne, o && !i && !l && r().createElement(Oe, {
1916
1952
  align: "right",
1917
- appearance: C ? "rowLink" : "data",
1953
+ appearance: x ? "rowLink" : "data",
1918
1954
  "data-test": "row-actions",
1919
1955
  variant: "actions",
1920
- "data-movable-column": le
1921
- }), (i || l) && r().createElement(xe, {
1956
+ "data-movable-column": ue,
1957
+ isPinned: f === null || f === void 0 ? void 0 : f.actions
1958
+ }), (i || l) && r().createElement(Oe, {
1922
1959
  align: "right",
1923
1960
  appearance: "data",
1924
1961
  "data-test": "row-actions",
1925
1962
  variant: "actions",
1926
- "data-movable-column": le
1927
- }, i && J(), l && r().createElement(Un(), {
1928
- toggle: ue()
1929
- }, Q())));
1930
- }
1931
- Nt.propTypes = zt;
1932
- Nt.splunkUiType = "Table.Row";
1933
- /* harmony default export */ const Lt = Nt;
1934
- // CONCATENATED MODULE: ./src/Table/TableContext.ts
1935
- var Wt = (0, t.createContext)({});
1936
- Wt.displayName = "Table";
1963
+ "data-movable-column": ue,
1964
+ isPinned: f === null || f === void 0 ? void 0 : f.actions
1965
+ }, i && Q(), l && r().createElement(Yn(), {
1966
+ toggle: se()
1967
+ }, Z())));
1968
+ }
1969
+ Wt.propTypes = Mt;
1970
+ Wt.splunkUiType = "Table.Row";
1937
1971
  /* harmony default export */ const Ht = Wt;
1938
1972
  // CONCATENATED MODULE: ./src/Table/Head.tsx
1939
1973
  function Kt() {
@@ -1947,9 +1981,9 @@
1947
1981
  return e;
1948
1982
  }, Kt.apply(null, arguments);
1949
1983
  }
1950
- function Bt(e, n) {
1984
+ function Vt(e, n) {
1951
1985
  if (null == e) return {};
1952
- var t, r, o = Vt(e, n);
1986
+ var t, r, o = Bt(e, n);
1953
1987
  if (Object.getOwnPropertySymbols) {
1954
1988
  var i = Object.getOwnPropertySymbols(e);
1955
1989
  for (r = 0; r < i.length; r++) {
@@ -1958,7 +1992,7 @@
1958
1992
  }
1959
1993
  return o;
1960
1994
  }
1961
- function Vt(e, n) {
1995
+ function Bt(e, n) {
1962
1996
  if (null == e) return {};
1963
1997
  var t = {};
1964
1998
  for (var r in e) {
@@ -1991,6 +2025,8 @@
1991
2025
  /** @private. */
1992
2026
  onRequestToggleAllRows: w().func,
1993
2027
  /** @private. */
2028
+ pinnedColumns: w().object,
2029
+ /** @private. */
1994
2030
  rowSelection: w().oneOf([ "all", "some", "none" ])
1995
2031
  };
1996
2032
  var Ut = 1;
@@ -2004,7 +2040,7 @@
2004
2040
  var Jt = (0, T._)("All rows selected");
2005
2041
  var Qt = function e(n) {
2006
2042
  var t, r;
2007
- var o = un();
2043
+ var o = cn();
2008
2044
  if (!n) {
2009
2045
  return [];
2010
2046
  }
@@ -2014,32 +2050,32 @@
2014
2050
  }));
2015
2051
  };
2016
2052
  function Zt(e) {
2017
- var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, m = e.onRequestToggleAllRows, b = e.rowSelection, h = Bt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
2053
+ 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.pinnedColumns, v = e.onAutosizeColumn, p = e.onRequestMoveColumn, m = e.onRequestResizeColumn, b = e.onRequestToggleAllRows, h = e.rowSelection, y = Vt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "pinnedColumns", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
2018
2054
  // @docs-props-type HeadPropsBase
2019
- var y = (0, t.useContext)(Ht), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
2020
- var x = (0, t.useRef)(null);
2021
- var S = (0, t.useRef)([]);
2055
+ var g = (0, t.useContext)(ye), w = g.headType, C = g.tableContainerWidthWithoutBorders, x = g.resizableFillLayout;
2056
+ var S = (0, t.useRef)(null);
2057
+ var O = (0, t.useRef)([]);
2022
2058
  (0, t.useEffect)((function() {
2023
2059
  // Validate children width
2024
2060
  if (false) {
2025
2061
  var e;
2026
2062
  }
2027
- }), [ u, p, C ]);
2028
- var O = (0, t.useCallback)((function(e) {
2063
+ }), [ u, m, x ]);
2064
+ var k = (0, t.useCallback)((function(e) {
2029
2065
  var n = e.fromIndex, r = e.toIndex;
2030
2066
  if (r < t.Children.toArray(u).length) {
2031
2067
  // HeadCell never requests less than zero
2032
- v === null || v === void 0 ? void 0 : v({
2068
+ p === null || p === void 0 ? void 0 : p({
2033
2069
  fromIndex: n,
2034
2070
  toIndex: r
2035
2071
  });
2036
2072
  }
2037
- }), [ u, v ]);
2038
- var k = (0, t.useCallback)((function(e, n) {
2073
+ }), [ u, p ]);
2074
+ var R = (0, t.useCallback)((function(e, n) {
2039
2075
  var t = n.columnId, r = n.id, o = n.index, i = n.width;
2040
- var a = Qt(x.current);
2076
+ var a = Qt(S.current);
2041
2077
  if (o >= a.length) {
2042
- p === null || p === void 0 ? void 0 : p(e, n);
2078
+ m === null || m === void 0 ? void 0 : m(e, n);
2043
2079
  return;
2044
2080
  }
2045
2081
  var u = a[o];
@@ -2047,10 +2083,10 @@
2047
2083
  if (s <= 0) {
2048
2084
  // handle shrinking
2049
2085
  if (i >= l) {
2050
- p === null || p === void 0 ? void 0 : p(e, n);
2086
+ m === null || m === void 0 ? void 0 : m(e, n);
2051
2087
  } else {
2052
2088
  // shrink the cell as small as we can
2053
- p === null || p === void 0 ? void 0 : p(e, {
2089
+ m === null || m === void 0 ? void 0 : m(e, {
2054
2090
  columnId: t,
2055
2091
  id: r,
2056
2092
  index: o,
@@ -2062,11 +2098,11 @@
2062
2098
  var c = [];
2063
2099
  var d = 0;
2064
2100
  var f = true;
2065
- if (S.current.length !== a.length) {
2066
- p === null || p === void 0 ? void 0 : p(e, n);
2101
+ if (O.current.length !== a.length) {
2102
+ m === null || m === void 0 ? void 0 : m(e, n);
2067
2103
  return;
2068
2104
  }
2069
- S.current.forEach((function(e, n) {
2105
+ O.current.forEach((function(e, n) {
2070
2106
  if (e === "auto") {
2071
2107
  d += 1;
2072
2108
  c.push(n);
@@ -2083,25 +2119,25 @@
2083
2119
  return true;
2084
2120
  }));
2085
2121
  if (f) {
2086
- p === null || p === void 0 ? void 0 : p(e, n);
2122
+ m === null || m === void 0 ? void 0 : m(e, n);
2087
2123
  } else {
2088
2124
  // make the cell as big as we can without letting any cells go below cellMinWidth
2089
2125
  // that means all auto cells are at cellMinWidth and all the set width cells stay the same size
2090
- var m = 0;
2126
+ var p = 0;
2091
2127
  c.forEach((function(e) {
2092
2128
  if (e < a.length) {
2093
- m += Math.max(a[e] - l, 0);
2129
+ p += Math.max(a[e] - l, 0);
2094
2130
  }
2095
2131
  }));
2096
- var b = a[o] + m;
2097
- p === null || p === void 0 ? void 0 : p(e, {
2132
+ var b = a[o] + p;
2133
+ m === null || m === void 0 ? void 0 : m(e, {
2098
2134
  columnId: t,
2099
2135
  id: r,
2100
2136
  index: o,
2101
2137
  width: b
2102
2138
  });
2103
2139
  }
2104
- } else if (w != null) {
2140
+ } else if (C != null) {
2105
2141
  // if there are no auto width cells, check if shrinking the last cell by requested change makes it smaller than cellMinWidth
2106
2142
  /**
2107
2143
  * We need to calculate the percieved width of the last cell, because if the user modifies the size of the last head cell,
@@ -2112,18 +2148,18 @@
2112
2148
  var y = h.reduce((function(e, n) {
2113
2149
  return e + n;
2114
2150
  }));
2115
- var g = w - y;
2151
+ var g = C - y;
2116
2152
  if (g - s >= l) {
2117
- p === null || p === void 0 ? void 0 : p(e, n);
2153
+ m === null || m === void 0 ? void 0 : m(e, n);
2118
2154
  } else {
2119
2155
  // make the cell as big as we can without letting perceivedWidthOfLastCell go below cellMinWidth
2120
- var C = g - l;
2121
- var O = u + C;
2122
- p === null || p === void 0 ? void 0 : p(e, {
2156
+ var w = g - l;
2157
+ var x = u + w;
2158
+ m === null || m === void 0 ? void 0 : m(e, {
2123
2159
  columnId: t,
2124
2160
  id: r,
2125
2161
  index: o,
2126
- width: O
2162
+ width: x
2127
2163
  });
2128
2164
  }
2129
2165
  } else {
@@ -2132,98 +2168,100 @@
2132
2168
  * the perceived width so this case will result in columns possibly going offscreen. In testing,
2133
2169
  * tableContainerWidthWithoutBorders attains a value quickly enough that it isn't a problem.
2134
2170
  */
2135
- p === null || p === void 0 ? void 0 : p(e, n);
2171
+ m === null || m === void 0 ? void 0 : m(e, n);
2136
2172
  }
2137
2173
  }
2138
- }), [ l, p, w ]);
2139
- var R = (0, t.useCallback)((function(e) {
2174
+ }), [ l, m, C ]);
2175
+ var E = (0, t.useCallback)((function(e) {
2140
2176
  N(s, e);
2141
- x.current = e;
2177
+ S.current = e;
2142
2178
  }), [ s ]);
2143
- var E = (0, t.useMemo)((function() {
2179
+ var I = (0, t.useMemo)((function() {
2144
2180
  return t.Children.toArray(u).filter(t.isValidElement);
2145
2181
  }), [ u ]);
2146
- var I = E.length + (o.length || i ? 1 : 0);
2147
- var T = (0, t.useMemo)((function() {
2182
+ var T = I.length + (o.length || i ? 1 : 0);
2183
+ var j = (0, t.useMemo)((function() {
2148
2184
  var e = [];
2149
- var n = E.map((function(n, r) {
2185
+ var n = I.map((function(n, r) {
2150
2186
  e.push(n.props.width);
2151
2187
 
2152
2188
  return (0, t.cloneElement)(n, {
2153
2189
  index: r,
2154
- onRequestResize: C ? k : p,
2155
- onRequestMoveColumn: v ? O : undefined,
2156
- onAutosizeColumn: f,
2190
+ onRequestResize: x ? R : m,
2191
+ onRequestMoveColumn: p ? k : undefined,
2192
+ onAutosizeColumn: v,
2157
2193
  key: n.key || n.props.columnId || r
2158
2194
  });
2159
2195
  }));
2160
- S.current = e;
2196
+ O.current = e;
2161
2197
  return n;
2162
- }), [ E, C, k, p, v, O, f ]);
2163
- var j = b === undefined ? undefined : Xt[b];
2164
- var D = i || 48;
2165
- var q = g === "fixed" ? "fixed-head" : "head";
2166
- var A;
2167
- if (j === "some") {
2168
- A = Gt;
2169
- } else if (j) {
2170
- A = Jt;
2198
+ }), [ I, x, R, m, p, k, v ]);
2199
+ var D = h === undefined ? undefined : Xt[h];
2200
+ var P = i || 48;
2201
+ var A = w === "fixed" ? "fixed-head" : "head";
2202
+ var q;
2203
+ if (D === "some") {
2204
+ q = Gt;
2205
+ } else if (D) {
2206
+ q = Jt;
2171
2207
  } else {
2172
- A = Yt;
2208
+ q = Yt;
2173
2209
  }
2174
- var P = (0, t.useMemo)((function() {
2210
+ var _ = (0, t.useMemo)((function() {
2175
2211
  return {
2176
- minWidth: D
2212
+ minWidth: P
2177
2213
  };
2178
- }), [ D ]);
2179
- var _ = (0, t.useMemo)((function() {
2214
+ }), [ P ]);
2215
+ var z = (0, t.useMemo)((function() {
2180
2216
  return {
2181
2217
  minWidth: i
2182
2218
  };
2183
2219
  }), [ i ]);
2184
2220
 
2185
- return r().createElement(Mn, Kt({
2186
- ref: R,
2187
- "data-test": q,
2188
- $isFixed: g === "fixed",
2189
- $zIndex: I + Ut
2190
- }, h), r().createElement(Lt, null, c && r().createElement(Ln, {
2221
+ return r().createElement(Nn, Kt({
2222
+ ref: E,
2223
+ "data-test": A,
2224
+ $isFixed: w === "fixed",
2225
+ $zIndex: T + Ut
2226
+ }, y), r().createElement(Ht, null, c && r().createElement(Hn, {
2191
2227
  key: "drag_rows_head_cell",
2192
2228
  "data-test": "drag-rows-head-cell",
2193
2229
  align: "center",
2194
2230
  resizable: false
2195
- }), m && r().createElement($n, {
2231
+ }), b && r().createElement(Ln, {
2196
2232
  key: "toggle_all",
2197
2233
  resizable: false,
2198
2234
  align: "center",
2199
2235
  variant: "toggleAll",
2200
2236
  truncate: false,
2201
2237
  "data-test": "toggle-all"
2202
- }, r().createElement(kt, {
2203
- "aria-label": A,
2204
- onClick: m,
2205
- selected: j
2206
- })), d && r().createElement(Nn, {
2238
+ }, r().createElement(Et, {
2239
+ "aria-label": q,
2240
+ onClick: b,
2241
+ selected: D
2242
+ })), d && r().createElement(Wn, {
2207
2243
  key: "more_info_head_cell",
2208
2244
  "data-test": "more-info-head-cell",
2209
2245
  resizable: false,
2210
2246
  variant: "info"
2211
- }), T, o.length > 0 && r().createElement(zn, {
2247
+ }), j, o.length > 0 && r().createElement(Mn, {
2212
2248
  key: "actions_head_cell",
2213
2249
  "data-test": "actions-head-cell",
2214
2250
  align: "right",
2215
2251
  resizable: false,
2216
- width: D,
2217
- style: P,
2218
- variant: "actions"
2219
- }, o), o.length === 0 && i && r().createElement(zn, {
2252
+ width: P,
2253
+ style: _,
2254
+ variant: "actions",
2255
+ isPinned: f === null || f === void 0 ? void 0 : f.actions
2256
+ }, o), o.length === 0 && i && r().createElement(Mn, {
2220
2257
  key: "actions_head_cell",
2221
2258
  "data-test": "actions-head-cell",
2222
2259
  align: "right",
2223
2260
  resizable: false,
2224
2261
  width: i,
2225
- style: _,
2226
- variant: "actions"
2262
+ style: z,
2263
+ variant: "actions",
2264
+ isPinned: f === null || f === void 0 ? void 0 : f.actions
2227
2265
  }, " ")));
2228
2266
  }
2229
2267
  Zt.propTypes = Ft;
@@ -2369,7 +2407,7 @@
2369
2407
  var wr = [ "contentClick", "escapeKey", "toggleClick" ];
2370
2408
  function Cr(e) {
2371
2409
  var n;
2372
- var o = e.align, i = o === void 0 ? "left" : o, l = e.buttonRef, u = e.canCoverHead, s = u === void 0 ? true : u, c = e.children, d = e.closeReasons, f = d === void 0 ? yr : d, v = e.columnId, p = e.dragId, m = e.elementRef, b = e.headCellScreenReaderText, h = e.focusToggleReasons, y = h === void 0 ? wr : h, g = e.id, w = e.index, C = e.label, x = e.onAutosizeColumn, S = e.onKeyDown, O = e.onRequestClose, R = e.onRequestMoveColumn, E = e.onRequestOpen, D = e.onRequestResize, A = e.open, P = e.repositionMode, _ = P === void 0 ? "flip" : P, z = e.resizable, M = z === void 0 ? true : z, $ = e.retainFocus, L = e.style, W = e.takeFocus, H = W === void 0 ? true : W, K = e.truncate, B = K === void 0 ? true : K, V = e.variant, F = e.visible, U = F === void 0 ? true : F, X = e.width, Y = br(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" ]);
2410
+ var o = e.align, i = o === void 0 ? "left" : o, l = e.buttonRef, u = e.canCoverHead, s = u === void 0 ? true : u, c = e.children, d = e.closeReasons, f = d === void 0 ? yr : d, v = e.columnId, p = e.dragId, m = e.elementRef, b = e.headCellScreenReaderText, h = e.focusToggleReasons, y = h === void 0 ? wr : h, g = e.id, w = e.index, C = e.label, x = e.onAutosizeColumn, S = e.onKeyDown, O = e.onRequestClose, R = e.onRequestMoveColumn, E = e.onRequestOpen, D = e.onRequestResize, A = e.open, q = e.repositionMode, _ = q === void 0 ? "flip" : q, z = e.resizable, $ = z === void 0 ? true : z, M = e.retainFocus, L = e.style, W = e.takeFocus, H = W === void 0 ? true : W, K = e.truncate, V = K === void 0 ? true : K, B = e.variant, F = e.visible, U = F === void 0 ? true : F, X = e.width, Y = br(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" ]);
2373
2411
  // @docs-props-type HeadDropdownCellPropsBase
2374
2412
  var G = ur()({
2375
2413
  componentName: "HeadDropdownCell",
@@ -2397,7 +2435,7 @@
2397
2435
  j.createDOMID)("headCellId-");
2398
2436
  (0, t.useEffect)((function() {
2399
2437
  if (false) {}
2400
- }), [ D, B ]);
2438
+ }), [ D, V ]);
2401
2439
  var Se = (0, t.useCallback)((function(e) {
2402
2440
  var n = e.reason, t = e.event;
2403
2441
  if (n === "clickAway" && t !== undefined) {
@@ -2410,8 +2448,8 @@
2410
2448
  r = r.parentNode;
2411
2449
  }
2412
2450
  }
2413
- if (we && q()(f, n) && w !== undefined) {
2414
- if (q()(y, n)) {
2451
+ if (we && P()(f, n) && w !== undefined) {
2452
+ if (P()(y, n)) {
2415
2453
  le === null || le === void 0 ? void 0 : le.focus();
2416
2454
  }
2417
2455
  if (!G) {
@@ -2442,7 +2480,7 @@
2442
2480
  oe(e);
2443
2481
  N(l, e);
2444
2482
  }), [ l ]);
2445
- var Ee = (0, t.useCallback)((function(e) {
2483
+ var Re = (0, t.useCallback)((function(e) {
2446
2484
  e.stopPropagation();
2447
2485
  // ignore clicks on the resize handle
2448
2486
  if (e.target.getAttribute("data-test") === "resize") {
@@ -2467,7 +2505,7 @@
2467
2505
  }
2468
2506
  }
2469
2507
  }), [ v, Se, w, G, we, E ]);
2470
- var Te = (0, t.useCallback)((function(e) {
2508
+ var Ee = (0, t.useCallback)((function(e) {
2471
2509
  if (w !== undefined) {
2472
2510
  S === null || S === void 0 ? void 0 : S(e, {
2473
2511
  index: w,
@@ -2475,7 +2513,7 @@
2475
2513
  });
2476
2514
  }
2477
2515
  }), [ v, w, S ]);
2478
- var je = (0, t.useCallback)((function(e) {
2516
+ var Te = (0, t.useCallback)((function(e) {
2479
2517
  Se({
2480
2518
  reason: "contentClick",
2481
2519
  event: e
@@ -2490,8 +2528,8 @@
2490
2528
  }
2491
2529
  return undefined;
2492
2530
  }), [ Z, re ]);
2493
- var qe = (0, t.useMemo)((function() {
2494
- return Re()({}, L, {
2531
+ var Pe = (0, t.useMemo)((function() {
2532
+ return Ie()({}, L, {
2495
2533
  width: X
2496
2534
  });
2497
2535
  }), [ L, X ]);
@@ -2502,19 +2540,19 @@
2502
2540
  Ae = C;
2503
2541
  }
2504
2542
 
2505
- return r().createElement(Ke, sr({
2506
- style: qe,
2543
+ return r().createElement(Be, sr({
2544
+ style: Pe,
2507
2545
  "data-test": "head-cell",
2508
2546
  $isDragging: pe && ge,
2509
- $variant: V,
2547
+ $variant: B,
2510
2548
  id: U ? xe : undefined,
2511
2549
  ref: Oe
2512
- }, Y), r().createElement(He, null, pe && r().createElement(Ve, sr({
2550
+ }, Y), r().createElement(Ve, null, pe && r().createElement(Ue, sr({
2513
2551
  "aria-label": (0, I.sprintf)((0, T._)("Reorder %(labelString)s"), {
2514
2552
  labelString: Ae
2515
2553
  }),
2516
2554
  "data-test": "drag"
2517
- }, be, he), r().createElement(Be, null, r().createElement(Ie(), null))), r().createElement(Tn, {
2555
+ }, be, he), r().createElement(Fe, null, r().createElement(je(), null))), r().createElement(Dn, {
2518
2556
  align: i,
2519
2557
  "aria-expanded": we,
2520
2558
  "aria-haspopup": true,
@@ -2526,19 +2564,19 @@
2526
2564
  index: w,
2527
2565
  isMenu: true,
2528
2566
  label: C,
2529
- resizable: U && M,
2567
+ resizable: U && $,
2530
2568
  onAutosizeColumn: x,
2531
2569
  onRequestResize: D,
2532
- onClick: Ee,
2533
- onKeyDown: Te,
2534
- truncate: B,
2570
+ onClick: Re,
2571
+ onKeyDown: Ee,
2572
+ truncate: V,
2535
2573
  width: X,
2536
2574
  "data-test": "inner"
2537
2575
  }), r().createElement(ar(), {
2538
2576
  align: "center",
2539
2577
  anchor: re,
2540
2578
  "aria-labelledby": xe,
2541
- autoCloseWhenOffScreen: q()(f, "offScreen"),
2579
+ autoCloseWhenOffScreen: P()(f, "offScreen"),
2542
2580
  canCoverAnchor: s,
2543
2581
  defaultPlacement: "below",
2544
2582
  id: ve,
@@ -2546,19 +2584,19 @@
2546
2584
  open: !!re && we,
2547
2585
  pointTo: De,
2548
2586
  repositionMode: _,
2549
- retainFocus: $,
2587
+ retainFocus: M,
2550
2588
  takeFocus: H
2551
2589
  }, or()(c) ? function() {
2552
2590
 
2553
2591
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2554
2592
  return r().createElement("div", {
2555
- onClick: je
2593
+ onClick: Te
2556
2594
  }, c.apply(void 0, arguments));
2557
2595
  } :
2558
2596
 
2559
2597
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2560
2598
  r().createElement("div", {
2561
- onClick: je
2599
+ onClick: Te
2562
2600
  }, c))));
2563
2601
  }
2564
2602
  Cr.propTypes = gr;
@@ -2576,7 +2614,7 @@
2576
2614
  var Rr = z().div.withConfig({
2577
2615
  displayName: "HeadTableStyles__StyledDockedContainer",
2578
2616
  componentId: "g85wgf-1"
2579
- })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], M.variables.zindexFixedNavbar);
2617
+ })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
2580
2618
  var Er = z()(Rr).withConfig({
2581
2619
  displayName: "HeadTableStyles__StyledFixedContainer",
2582
2620
  componentId: "g85wgf-2"
@@ -2636,7 +2674,7 @@
2636
2674
  * @private
2637
2675
  * HeadTable is an internal component that provides a detached table head that can
2638
2676
  * then be positioned in different ways outside of the main table.
2639
- */ function qr(e) {
2677
+ */ function Pr(e) {
2640
2678
  var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, m = e.top, h = e.width, y = Tr(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
2641
2679
  // @docs-props-type HeadTablePropsBase
2642
2680
  var g = u === "docked";
@@ -2696,24 +2734,24 @@
2696
2734
  })
2697
2735
  }, b()(y, "dragIndex")), R));
2698
2736
  }
2699
- qr.propTypes = Dr;
2700
- /* harmony default export */ const Ar = qr;
2737
+ Pr.propTypes = Dr;
2738
+ /* harmony default export */ const Ar = Pr;
2701
2739
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
2702
- function Pr(e) {
2740
+ function qr(e) {
2703
2741
  "@babel/helpers - typeof";
2704
- return Pr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2742
+ return qr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2705
2743
  return typeof e;
2706
2744
  } : function(e) {
2707
2745
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2708
- }, Pr(e);
2746
+ }, qr(e);
2709
2747
  }
2710
2748
  function _r(e, n) {
2711
- return $r(e) || Mr(e, n) || Wr(e, n) || zr();
2749
+ return Mr(e) || $r(e, n) || Wr(e, n) || zr();
2712
2750
  }
2713
2751
  function zr() {
2714
2752
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2715
2753
  }
2716
- function Mr(e, n) {
2754
+ function $r(e, n) {
2717
2755
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2718
2756
  if (null != t) {
2719
2757
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2735,7 +2773,7 @@
2735
2773
  return l;
2736
2774
  }
2737
2775
  }
2738
- function $r(e) {
2776
+ function Mr(e) {
2739
2777
  if (Array.isArray(e)) return e;
2740
2778
  }
2741
2779
  function Nr(e) {
@@ -2746,25 +2784,25 @@
2746
2784
  }
2747
2785
  function Wr(e, n) {
2748
2786
  if (e) {
2749
- if ("string" == typeof e) return Br(e, n);
2787
+ if ("string" == typeof e) return Vr(e, n);
2750
2788
  var t = {}.toString.call(e).slice(8, -1);
2751
- 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) ? Br(e, n) : void 0;
2789
+ 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) ? Vr(e, n) : void 0;
2752
2790
  }
2753
2791
  }
2754
2792
  function Hr(e) {
2755
2793
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
2756
2794
  }
2757
2795
  function Kr(e) {
2758
- if (Array.isArray(e)) return Br(e);
2796
+ if (Array.isArray(e)) return Vr(e);
2759
2797
  }
2760
- function Br(e, n) {
2798
+ function Vr(e, n) {
2761
2799
  (null == n || n > e.length) && (n = e.length);
2762
2800
  for (var t = 0, r = Array(n); t < n; t++) {
2763
2801
  r[t] = e[t];
2764
2802
  }
2765
2803
  return r;
2766
2804
  }
2767
- function Vr(e, n) {
2805
+ function Br(e, n) {
2768
2806
  if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
2769
2807
  }
2770
2808
  function Fr(e, n) {
@@ -2789,14 +2827,14 @@
2789
2827
  }
2790
2828
  function Yr(e) {
2791
2829
  var n = Gr(e, "string");
2792
- return "symbol" == Pr(n) ? n : n + "";
2830
+ return "symbol" == qr(n) ? n : n + "";
2793
2831
  }
2794
2832
  function Gr(e, n) {
2795
- if ("object" != Pr(e) || !e) return e;
2833
+ if ("object" != qr(e) || !e) return e;
2796
2834
  var t = e[Symbol.toPrimitive];
2797
2835
  if (void 0 !== t) {
2798
2836
  var r = t.call(e, n || "default");
2799
- if ("object" != Pr(r)) return r;
2837
+ if ("object" != qr(r)) return r;
2800
2838
  throw new TypeError("@@toPrimitive must return a primitive value.");
2801
2839
  }
2802
2840
  return ("string" === n ? String : Number)(e);
@@ -2807,7 +2845,7 @@
2807
2845
  var Jr = function() {
2808
2846
  function e(n) {
2809
2847
  var t = this;
2810
- Vr(this, e);
2848
+ Br(this, e);
2811
2849
  Xr(this, "listeners", []);
2812
2850
  Xr(this, "removeAll", (function() {
2813
2851
  t.listeners.forEach((function(e) {
@@ -2878,7 +2916,7 @@
2878
2916
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : eo;
2879
2917
  var t = e.getBoundingClientRect();
2880
2918
  if (n.ignoreTransform) {
2881
- var r = (0, Wn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2919
+ var r = (0, Kn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2882
2920
  if (o) {
2883
2921
  t = Zr(t, o, i);
2884
2922
  }
@@ -2917,7 +2955,7 @@
2917
2955
  }
2918
2956
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
2919
2957
  function ro(e) {
2920
- if (!Wn.canUseDOM || !e) {
2958
+ if (!Kn.canUseDOM || !e) {
2921
2959
  return false;
2922
2960
  }
2923
2961
  return e === document.scrollingElement;
@@ -2960,13 +2998,13 @@
2960
2998
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
2961
2999
  function ao(e) {
2962
3000
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2963
- Wn.getWindow)(e).getComputedStyle(e);
3001
+ Kn.getWindow)(e).getComputedStyle(e);
2964
3002
  return n.position === "fixed";
2965
3003
  }
2966
3004
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
2967
3005
  function lo(e) {
2968
3006
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2969
- Wn.getWindow)(e).getComputedStyle(e);
3007
+ Kn.getWindow)(e).getComputedStyle(e);
2970
3008
  var t = /(auto|scroll|overlay)/;
2971
3009
  var r = [ "overflow", "overflowX", "overflowY" ];
2972
3010
  return r.some((function(e) {
@@ -2984,17 +3022,17 @@
2984
3022
  if (!o) {
2985
3023
  return t;
2986
3024
  }
2987
- if ((0, Wn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
3025
+ if ((0, Kn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2988
3026
  t.push(o.scrollingElement);
2989
3027
  return t;
2990
3028
  }
2991
- if (!(0, Wn.isHTMLElement)(o) || (0, Wn.isSVGElement)(o)) {
3029
+ if (!(0, Kn.isHTMLElement)(o) || (0, Kn.isSVGElement)(o)) {
2992
3030
  return t;
2993
3031
  }
2994
3032
  if (t.includes(o)) {
2995
3033
  return t;
2996
3034
  }
2997
- var i = (0, Wn.getWindow)(e).getComputedStyle(o);
3035
+ var i = (0, Kn.getWindow)(e).getComputedStyle(o);
2998
3036
  if (o !== e) {
2999
3037
  if (lo(o, i)) {
3000
3038
  t.push(o);
@@ -3040,7 +3078,7 @@
3040
3078
  }
3041
3079
  var vo = function() {
3042
3080
  function e(n) {
3043
- Vr(this, e);
3081
+ Br(this, e);
3044
3082
  Xr(this, "autoScrollEnabled", false);
3045
3083
  Xr(this, "referenceCoordinates", void 0);
3046
3084
  Xr(this, "listeners", void 0);
@@ -3048,8 +3086,8 @@
3048
3086
  this.props = n;
3049
3087
  var t = n.event.target;
3050
3088
  this.props = n;
3051
- this.listeners = new Jr((0, Wn.getOwnerDocument)(t));
3052
- this.windowListeners = new Jr((0, Wn.getWindow)(t));
3089
+ this.listeners = new Jr((0, Kn.getOwnerDocument)(t));
3090
+ this.windowListeners = new Jr((0, Kn.getWindow)(t));
3053
3091
  this.handleKeyDown = this.handleKeyDown.bind(this);
3054
3092
  this.handleCancel = this.handleCancel.bind(this);
3055
3093
  this.attach();
@@ -3078,7 +3116,7 @@
3078
3116
  }, {
3079
3117
  key: "handleKeyDown",
3080
3118
  value: function e(n) {
3081
- if ((0, Wn.isKeyboardEvent)(n)) {
3119
+ if ((0, Kn.isKeyboardEvent)(n)) {
3082
3120
  var t = this.props, r = t.active, i = t.context, a = t.options;
3083
3121
  var l = a.keyboardCodes, u = l === void 0 ? co : l, s = a.coordinateGetter, c = a.scrollBehavior, d = c === void 0 ? "smooth" : c;
3084
3122
  var f = n.code;
@@ -3104,7 +3142,7 @@
3104
3142
  currentCoordinates: p
3105
3143
  });
3106
3144
  if (m) {
3107
- var b = (0, Wn.subtract)(m, p);
3145
+ var b = (0, Kn.subtract)(m, p);
3108
3146
  var h = {
3109
3147
  x: 0,
3110
3148
  y: 0
@@ -3120,22 +3158,22 @@
3120
3158
  // originally it tries to always place a dragging node in the middle of the container
3121
3159
  var j = T.top <= m.y && T.bottom >= m.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
3122
3160
  var D = T.left <= m.x && T.right >= m.x + ((v === null || v === void 0 ? void 0 : v.width) || 0);
3123
- var q = (C === o.KeyboardCode.Right && !O || C === o.KeyboardCode.Left && !k) && !D;
3161
+ var P = (C === o.KeyboardCode.Right && !O || C === o.KeyboardCode.Left && !k) && !D;
3124
3162
  var A = (C === o.KeyboardCode.Down && !R || C === o.KeyboardCode.Up && !S) && !j;
3125
- if (q) {
3126
- var P = w.scrollLeft + b.x;
3127
- var _ = C === o.KeyboardCode.Right && P <= E.x || C === o.KeyboardCode.Left && P >= I.x;
3163
+ if (P) {
3164
+ var q = w.scrollLeft + b.x;
3165
+ var _ = C === o.KeyboardCode.Right && q <= E.x || C === o.KeyboardCode.Left && q >= I.x;
3128
3166
  if (_ && !b.y) {
3129
3167
  // We don't need to update coordinates, the scroll adjustment alone will trigger
3130
3168
  // logic to auto-detect the new container we are over
3131
3169
  w.scrollTo({
3132
- left: P,
3170
+ left: q,
3133
3171
  behavior: d
3134
3172
  });
3135
3173
  return;
3136
3174
  }
3137
3175
  if (_) {
3138
- h.x = w.scrollLeft - P;
3176
+ h.x = w.scrollLeft - q;
3139
3177
  } else {
3140
3178
  h.x = C === o.KeyboardCode.Right ? w.scrollLeft - E.x : w.scrollLeft - I.x;
3141
3179
  }
@@ -3148,8 +3186,8 @@
3148
3186
  break;
3149
3187
  } else if (A) {
3150
3188
  var z = w.scrollTop + b.y;
3151
- var M = C === o.KeyboardCode.Down && z <= E.y || C === o.KeyboardCode.Up && z >= I.y;
3152
- if (M && !b.x) {
3189
+ var $ = C === o.KeyboardCode.Down && z <= E.y || C === o.KeyboardCode.Up && z >= I.y;
3190
+ if ($ && !b.x) {
3153
3191
  // We don't need to update coordinates, the scroll adjustment alone will trigger
3154
3192
  // logic to auto-detect the new container we are over
3155
3193
  w.scrollTo({
@@ -3158,7 +3196,7 @@
3158
3196
  });
3159
3197
  return;
3160
3198
  }
3161
- if (M) {
3199
+ if ($) {
3162
3200
  h.y = w.scrollTop - z;
3163
3201
  } else {
3164
3202
  h.y = C === o.KeyboardCode.Down ? w.scrollTop - E.y : w.scrollTop - I.y;
@@ -3172,7 +3210,7 @@
3172
3210
  break;
3173
3211
  }
3174
3212
  }
3175
- this.handleMove(n, (0, Wn.add)((0, Wn.subtract)(m, this.referenceCoordinates), h));
3213
+ this.handleMove(n, (0, Kn.add)((0, Kn.subtract)(m, this.referenceCoordinates), h));
3176
3214
  }
3177
3215
  }
3178
3216
  }
@@ -3307,7 +3345,7 @@
3307
3345
  if (!n || !i) {
3308
3346
  return o;
3309
3347
  }
3310
- var a = un();
3348
+ var a = cn();
3311
3349
  var l = o.left + (((t = a.visualViewport) === null || t === void 0 ? void 0 : t.offsetLeft) || 0);
3312
3350
  var u = o.top + (((r = a.visualViewport) === null || r === void 0 ? void 0 : r.offsetTop) || 0);
3313
3351
  var s = o.width, c = o.height;
@@ -3355,22 +3393,22 @@
3355
3393
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
3356
3394
  }
3357
3395
  function Io(e) {
3358
- if (Array.isArray(e)) return qo(e);
3396
+ if (Array.isArray(e)) return Po(e);
3359
3397
  }
3360
3398
  function To(e, n) {
3361
- return Po(e) || Ao(e, n) || Do(e, n) || jo();
3399
+ return qo(e) || Ao(e, n) || Do(e, n) || jo();
3362
3400
  }
3363
3401
  function jo() {
3364
3402
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3365
3403
  }
3366
3404
  function Do(e, n) {
3367
3405
  if (e) {
3368
- if ("string" == typeof e) return qo(e, n);
3406
+ if ("string" == typeof e) return Po(e, n);
3369
3407
  var t = {}.toString.call(e).slice(8, -1);
3370
- 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) ? qo(e, n) : void 0;
3408
+ 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) ? Po(e, n) : void 0;
3371
3409
  }
3372
3410
  }
3373
- function qo(e, n) {
3411
+ function Po(e, n) {
3374
3412
  (null == n || n > e.length) && (n = e.length);
3375
3413
  for (var t = 0, r = Array(n); t < n; t++) {
3376
3414
  r[t] = e[t];
@@ -3399,7 +3437,7 @@
3399
3437
  return l;
3400
3438
  }
3401
3439
  }
3402
- function Po(e) {
3440
+ function qo(e) {
3403
3441
  if (Array.isArray(e)) return e;
3404
3442
  }
3405
3443
  function _o(e, n) {
@@ -3428,7 +3466,8 @@
3428
3466
  // Internal Helper Modules
3429
3467
  /** @public */
3430
3468
  /** @public */
3431
- /** @public */ var Mo = {
3469
+ /** @public */
3470
+ /** @public */ var $o = {
3432
3471
  actions: w().arrayOf(w().element),
3433
3472
  actionsColumnWidth: w().number,
3434
3473
  children: w().node,
@@ -3436,10 +3475,12 @@
3436
3475
  dockScrollBar: w().bool,
3437
3476
  elementRef: w().oneOfType([ w().func, w().object ]),
3438
3477
  headType: w().oneOf([ "docked", "fixed", "inline" ]),
3478
+ horizontalOverflow: w().oneOf([ "auto", "scroll" ]),
3439
3479
  innerStyle: w().object,
3440
3480
  onRequestToggleAllRows: w().func,
3441
3481
  onScroll: w().func,
3442
3482
  outerStyle: w().object,
3483
+ pinnedColumns: w().object,
3443
3484
  primaryColumnIndex: w().number,
3444
3485
  rowExpansion: w().oneOf([ "single", "multi", "controlled", "none" ]),
3445
3486
  rowSelection: w().oneOf([ "all", "some", "none" ]),
@@ -3450,7 +3491,7 @@
3450
3491
  onRequestResizeColumn: w().func,
3451
3492
  resizableFillLayout: w().bool
3452
3493
  };
3453
- var $o = function e(n) {
3494
+ var Mo = function e(n) {
3454
3495
  return n === "inline";
3455
3496
  };
3456
3497
  var No = function e(n) {
@@ -3460,7 +3501,7 @@
3460
3501
  return n === "fixed";
3461
3502
  };
3462
3503
  var Wo = function e(n) {
3463
- var t = un();
3504
+ var t = cn();
3464
3505
  var r = xo(n);
3465
3506
  return {
3466
3507
  top: r.top + t.pageYOffset,
@@ -3468,7 +3509,7 @@
3468
3509
  };
3469
3510
  };
3470
3511
  var Ho = function e(n) {
3471
- var t = rn();
3512
+ var t = an();
3472
3513
  if (n === undefined || n === null) {
3473
3514
  return undefined;
3474
3515
  }
@@ -3493,10 +3534,10 @@
3493
3534
  var Ko = function e(n, t) {
3494
3535
  return n.indexOf(t) + 1;
3495
3536
  };
3496
- var Bo = function e(n, t) {
3537
+ var Vo = function e(n, t) {
3497
3538
  return n.indexOf(t) + 1;
3498
3539
  };
3499
- var Vo = {
3540
+ var Bo = {
3500
3541
  coordinateGetter: a.sortableKeyboardCoordinates
3501
3542
  };
3502
3543
  var Fo = {
@@ -3533,151 +3574,154 @@
3533
3574
  };
3534
3575
  var Go = [];
3535
3576
  function Jo(e) {
3536
- var n = e.actions, l = n === void 0 ? Go : n, s = e.actionsColumnWidth, c = e.children, d = e.dockOffset, f = d === void 0 ? 0 : d, p = e.dockScrollBar, m = e.elementRef, h = e.headType, g = h === void 0 ? "inline" : h, w = e.innerStyle, C = e.onRequestMoveColumn, O = e.onRequestMoveRow, R = e.onRequestResizeColumn, D = e.onRequestToggleAllRows, q = e.onScroll, A = e.outerStyle, P = e.primaryColumnIndex, _ = P === void 0 ? 0 : P, z = e.resizableFillLayout, M = e.rowExpansion, $ = M === void 0 ? "none" : M, L = e.rowSelection, W = L === void 0 ? "none" : L, H = e.stripeRows, K = e.tableStyle, B = _o(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3577
+ var n = e.actions, l = n === void 0 ? Go : n, s = e.actionsColumnWidth, c = e.children, d = e.dockOffset, f = d === void 0 ? 0 : d, p = e.dockScrollBar, m = e.elementRef, h = e.headType, g = h === void 0 ? "inline" : h, w = e.horizontalOverflow, C = w === void 0 ? "auto" : w, O = e.innerStyle, R = e.onRequestMoveColumn, D = e.onRequestMoveRow, P = e.onRequestResizeColumn, A = e.onRequestToggleAllRows, q = e.onScroll, _ = e.outerStyle, z = e.pinnedColumns, $ = e.primaryColumnIndex, M = $ === void 0 ? 0 : $, L = e.resizableFillLayout, W = e.rowExpansion, H = W === void 0 ? "none" : W, K = e.rowSelection, V = K === void 0 ? "none" : K, B = e.stripeRows, F = e.tableStyle, U = _o(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "horizontalOverflow", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "pinnedColumns", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3537
3578
  // @docs-props-type TablePropsBase
3538
- var V = (0, t.useState)([]), F = To(V, 2), U = F[0], X = F[1];
3539
- var Y = (0, t.useState)(), G = To(Y, 2), J = G[0], re = G[1];
3540
- var ae = (0, t.useState)(), le = To(ae, 2), ue = le[0], se = le[1];
3541
- var ce = (0, t.useState)(), de = To(ce, 2), fe = de[0], ve = de[1];
3542
- var pe = (0, t.useState)(), me = To(pe, 2), be = me[0], he = me[1];
3543
- var ye = (0, t.useRef)(true);
3544
- var ge = (0, t.useContext)(S.ScrollContainerContext);
3545
- var we = (0, o.useSensors)((0, o.useSensor)(o.MouseSensor, {}), (0, o.useSensor)(o.TouchSensor, {}), (0,
3546
- o.useSensor)(vo, Vo));
3547
- var Ce = (0, t.useState)([]), xe = To(Ce, 2), Se = xe[0], Oe = xe[1];
3548
- var ke = (0, t.useState)(-1), Re = To(ke, 2), Ee = Re[0], Ie = Re[1];
3549
- var Te = (0, t.useRef)();
3550
- var je = (0, t.useRef)();
3551
- var De = (0, t.useState)(), qe = To(De, 2), Ae = qe[0], Pe = qe[1];
3552
- var _e = (0, t.useRef)(null);
3553
- var ze = (0, t.useRef)(null);
3554
- var Me = (0, t.useRef)();
3555
- var $e = (0, t.useRef)(null);
3556
- var Ne = (0, t.useRef)();
3579
+ var X = (0, t.useState)([]), Y = To(X, 2), G = Y[0], J = Y[1];
3580
+ var re = (0, t.useState)(), ae = To(re, 2), le = ae[0], ue = ae[1];
3581
+ var se = (0, t.useState)(), ce = To(se, 2), de = ce[0], fe = ce[1];
3582
+ var ve = (0, t.useState)(), pe = To(ve, 2), me = pe[0], be = pe[1];
3583
+ var he = (0, t.useState)(), ge = To(he, 2), we = ge[0], Ce = ge[1];
3584
+ var xe = (0, t.useRef)(true);
3585
+ var Se = (0, t.useContext)(S.ScrollContainerContext);
3586
+ var Oe = (0, o.useSensors)((0, o.useSensor)(o.MouseSensor, {}), (0, o.useSensor)(o.TouchSensor, {}), (0,
3587
+ o.useSensor)(vo, Bo));
3588
+ var ke = (0, t.useState)([]), Re = To(ke, 2), Ee = Re[0], Ie = Re[1];
3589
+ var Te = (0, t.useState)(-1), je = To(Te, 2), De = je[0], Pe = je[1];
3590
+ var Ae = (0, t.useRef)();
3591
+ var qe = (0, t.useRef)();
3592
+ var _e = (0, t.useState)(), ze = To(_e, 2), $e = ze[0], Me = ze[1];
3593
+ var Ne = (0, t.useRef)(null);
3557
3594
  var Le = (0, t.useRef)(null);
3558
- var We = (0, t.useRef)(null);
3559
- var He = k()(g);
3560
- var Ke = (0, t.useRef)([]);
3561
- var Be = (0, t.useRef)([]);
3562
- var Ve = (0, t.useRef)([]);
3563
- var Fe = (0, t.useRef)([]);
3564
- var Ue = Be.current;
3565
- var Xe = Ke.current;
3566
- var Ye = Fe.current;
3567
- var Ge = (0, t.useCallback)((function() {
3595
+ var We = (0, t.useRef)();
3596
+ var He = (0, t.useRef)(null);
3597
+ var Ke = (0, t.useRef)();
3598
+ var Ve = (0, t.useRef)(null);
3599
+ var Be = (0, t.useRef)(null);
3600
+ var Fe = k()(g);
3601
+ var Ue = (0, t.useRef)([]);
3602
+ var Xe = (0, t.useRef)([]);
3603
+ var Ye = (0, t.useRef)([]);
3604
+ var Ge = (0, t.useRef)([]);
3605
+ var Je = Xe.current;
3606
+ var Qe = Ue.current;
3607
+ var Ze = Ge.current;
3608
+ var en = (0, t.useCallback)((function() {
3568
3609
  var e;
3569
- var n = un();
3570
- if ($o(g)) {
3610
+ var n = cn();
3611
+ if (Mo(g)) {
3571
3612
  return;
3572
3613
  }
3573
- var t = We.current;
3574
- var r = ze.current;
3575
- var o = Le.current;
3614
+ var t = Be.current;
3615
+ var r = Le.current;
3616
+ var o = Ve.current;
3576
3617
  if (!o || !r) {
3577
3618
  return;
3578
3619
  }
3579
- var i = Qt(ze.current);
3580
- var a = (e = ze.current) === null || e === void 0 ? void 0 : e.clientHeight;
3620
+ var i = Qt(Le.current);
3621
+ var a = (e = Le.current) === null || e === void 0 ? void 0 : e.clientHeight;
3581
3622
  var l = Wo(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3582
3623
  var u = Math.min(l, Number(f));
3583
- he(t === null || t === void 0 ? void 0 : t.clientWidth);
3584
- se(o === null || o === void 0 ? void 0 : o.clientWidth);
3585
- X(i);
3586
- ve(u);
3624
+ Ce(t === null || t === void 0 ? void 0 : t.clientWidth);
3625
+ fe(o === null || o === void 0 ? void 0 : o.clientWidth);
3626
+ J(i);
3627
+ be(u);
3587
3628
  }), [ f, g ]);
3588
3629
  (0, t.useEffect)((function() {
3589
- var e = ze.current;
3590
- var n = $e.current;
3630
+ var e = Le.current;
3631
+ var n = He.current;
3591
3632
  if (e && n) {
3592
- var t = Qt(ze.current);
3593
- if (!v()(U, t)) {
3594
- Ge();
3633
+ var t = Qt(Le.current);
3634
+ if (!v()(G, t)) {
3635
+ en();
3595
3636
  }
3596
3637
  }
3597
- if (He === "inline" && g === "inline") {
3598
- Ge();
3638
+ if (Fe === "inline" && g === "inline") {
3639
+ en();
3599
3640
  }
3600
3641
  if (false) {}
3601
- }), [ U, g, He, e, Ge ]);
3602
- var Je = (0, t.useCallback)((function(e) {
3603
- var n = We.current;
3642
+ }), [ G, g, Fe, e, en ]);
3643
+ (0, t.useEffect)((function() {
3644
+ if (false) {}
3645
+ }), [ z, C ]);
3646
+ var nn = (0, t.useCallback)((function(e) {
3647
+ var n = Be.current;
3604
3648
  q === null || q === void 0 ? void 0 : q(e);
3605
3649
  if ((Lo(g) || No(g)) && n) {
3606
- re(-n.scrollLeft);
3650
+ ue(-n.scrollLeft);
3607
3651
  }
3608
- if (_e.current && Ne.current !== "dockedScrollBar" && n) {
3609
- Ne.current = "container";
3610
- _e.current.scrollLeft = n.scrollLeft;
3652
+ if (Ne.current && Ke.current !== "dockedScrollBar" && n) {
3653
+ Ke.current = "container";
3654
+ Ne.current.scrollLeft = n.scrollLeft;
3611
3655
  } else {
3612
- Ne.current = undefined;
3656
+ Ke.current = undefined;
3613
3657
  }
3614
3658
  }), [ g, q ]);
3615
- var Qe = function e() {
3616
- var n = We.current;
3617
- if (Ne.current !== "container" && n && _e.current) {
3618
- Ne.current = "dockedScrollBar";
3619
- n.scrollLeft = _e.current.scrollLeft;
3659
+ var tn = function e() {
3660
+ var n = Be.current;
3661
+ if (Ke.current !== "container" && n && Ne.current) {
3662
+ Ke.current = "dockedScrollBar";
3663
+ n.scrollLeft = Ne.current.scrollLeft;
3620
3664
  } else {
3621
- Ne.current = undefined;
3665
+ Ke.current = undefined;
3622
3666
  }
3623
3667
  };
3624
- var Ze = y()(Ge, 0);
3625
- var en = (0, t.useCallback)((function() {
3626
- Ge();
3627
- }), [ Ge ]);
3628
- var nn = (0, t.useMemo)((function() {
3629
- return y()(en, 50);
3668
+ var rn = y()(en, 0);
3669
+ var on = (0, t.useCallback)((function() {
3670
+ en();
3630
3671
  }), [ en ]);
3631
- E()(We, nn);
3672
+ var ln = (0, t.useMemo)((function() {
3673
+ return y()(on, 50);
3674
+ }), [ on ]);
3675
+ E()(Be, ln);
3632
3676
  (0, t.useEffect)((function() {
3633
3677
  // Using the return value of useCallback to recreate componentWillUnmount
3634
3678
  return function() {
3635
- Ze.cancel();
3636
- nn.cancel();
3679
+ rn.cancel();
3680
+ ln.cancel();
3637
3681
  };
3638
3682
  }));
3639
- var tn = function e(n) {
3683
+ var un = function e(n) {
3640
3684
  return function(e) {
3641
- ze.current = e;
3685
+ Le.current = e;
3642
3686
  N(n.props.elementRef, e);
3643
3687
  };
3644
3688
  };
3645
- var on = function e(n) {
3689
+ var sn = function e(n) {
3646
3690
  if (n) {
3647
3691
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
3648
- if (Me.current) {
3649
- Xo($e.current, Me.current);
3650
- Me.current = undefined;
3692
+ if (We.current) {
3693
+ Xo(He.current, We.current);
3694
+ We.current = undefined;
3651
3695
  }
3652
3696
  } else {
3653
3697
  // On unmount, focus the applicable primary head cell if a docked head cell was focused.
3654
- var t = Ho($e.current);
3698
+ var t = Ho(He.current);
3655
3699
  if (t) {
3656
- Xo(ze.current, t);
3700
+ Xo(Le.current, t);
3657
3701
  }
3658
3702
  }
3659
- $e.current = n;
3703
+ He.current = n;
3660
3704
  };
3661
- var an = function e(n) {
3662
- var t = We.current;
3663
- if (!$e.current || !t || n.key !== "Tab") {
3705
+ var dn = function e(n) {
3706
+ var t = Be.current;
3707
+ if (!He.current || !t || n.key !== "Tab") {
3664
3708
  return;
3665
3709
  }
3666
- var r = $e.current.scrollLeft;
3710
+ var r = He.current.scrollLeft;
3667
3711
  if (r !== 0) {
3668
- $e.current.scrollLeft = 0;
3712
+ He.current.scrollLeft = 0;
3669
3713
  t.scrollLeft += r;
3670
3714
  }
3671
3715
  };
3672
- var ln = function e(n, t) {
3716
+ var fn = function e(n, t) {
3673
3717
  var r, o;
3674
3718
  var i = t.columnId, a = t.index, l = t.id;
3675
- var s = rn();
3719
+ var s = an();
3676
3720
  if (a === undefined) {
3677
3721
  return;
3678
3722
  }
3679
- var c = $ === "none" ? 1 : 2;
3680
- var d = (r = We.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(a + c, "), tbody td:nth-child(").concat(a + c, ")"));
3723
+ var c = H === "none" ? 1 : 2;
3724
+ var d = (r = Be.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(a + c, "), tbody td:nth-child(").concat(a + c, ")"));
3681
3725
  var f = s.createElement("div");
3682
3726
  // TODO: find a styled-components compliant way to do this
3683
3727
  f.style["float"] = "left";
@@ -3694,7 +3738,7 @@
3694
3738
  f.appendChild(n);
3695
3739
  }));
3696
3740
  s.body.appendChild(f);
3697
- R === null || R === void 0 ? void 0 : R(n, {
3741
+ P === null || P === void 0 ? void 0 : P(n, {
3698
3742
  columnId: i,
3699
3743
  id: l,
3700
3744
  index: a,
@@ -3702,67 +3746,67 @@
3702
3746
  });
3703
3747
  (o = f.parentNode) === null || o === void 0 ? void 0 : o.removeChild(f);
3704
3748
  };
3705
- var sn = (0, t.useCallback)((function(e) {
3749
+ var vn = (0, t.useCallback)((function(e) {
3706
3750
  var n = e.active;
3707
3751
  var t = n.id;
3708
- Te.current = Ye.indexOf(t);
3709
- Pe(t);
3710
- }), [ Ye ]);
3711
- var cn = (0, t.useCallback)((function(e) {
3752
+ Ae.current = Ze.indexOf(t);
3753
+ Me(t);
3754
+ }), [ Ze ]);
3755
+ var pn = (0, t.useCallback)((function(e) {
3712
3756
  if (e.over) {
3713
3757
  var n = e.over.id;
3714
- var t = Ye.indexOf(n);
3758
+ var t = Ze.indexOf(n);
3715
3759
  var r = t;
3716
- if (Te.current !== undefined && t > Te.current) {
3760
+ if (Ae.current !== undefined && t > Ae.current) {
3717
3761
  r = t + 1;
3718
3762
  }
3719
- Ie(r);
3763
+ Pe(r);
3720
3764
  } else {
3721
- Ie(-1);
3765
+ Pe(-1);
3722
3766
  }
3723
- }), [ Ye ]);
3767
+ }), [ Ze ]);
3724
3768
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
3725
3769
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
3726
- var dn = (0, t.useMemo)((function() {
3727
- return y()(cn, 100);
3728
- }), [ cn ]);
3770
+ var mn = (0, t.useMemo)((function() {
3771
+ return y()(pn, 100);
3772
+ }), [ pn ]);
3729
3773
  (0, t.useEffect)((function() {
3730
3774
  return function() {
3731
- dn.cancel();
3775
+ mn.cancel();
3732
3776
  };
3733
- }), [ dn ]);
3734
- var fn = (0, t.useCallback)((function(e) {
3777
+ }), [ mn ]);
3778
+ var bn = (0, t.useCallback)((function(e) {
3735
3779
  var n = e.active, t = e.over;
3736
3780
  if (t && n.id !== t.id) {
3737
- var r = Ye.indexOf(n.id);
3738
- var o = Ye.indexOf(t === null || t === void 0 ? void 0 : t.id);
3739
- C === null || C === void 0 ? void 0 : C({
3781
+ var r = Ze.indexOf(n.id);
3782
+ var o = Ze.indexOf(t === null || t === void 0 ? void 0 : t.id);
3783
+ R === null || R === void 0 ? void 0 : R({
3740
3784
  fromIndex: r,
3741
3785
  toIndex: o
3742
3786
  });
3743
3787
  }
3744
- Pe(undefined);
3745
- Ie(-1);
3746
- je.current = undefined;
3747
- Te.current = undefined;
3748
- }), [ Ye, C ]);
3749
- var vn = (0, t.useCallback)((function(e) {
3788
+ Me(undefined);
3789
+ Pe(-1);
3790
+ qe.current = undefined;
3791
+ Ae.current = undefined;
3792
+ }), [ Ze, R ]);
3793
+ var hn = (0, t.useCallback)((function(e) {
3750
3794
  var n = e.active, t = e.over;
3751
- ye.current = true;
3795
+ xe.current = true;
3752
3796
  if (t && n.id !== t.id) {
3753
- var r = Ue.indexOf(n.id);
3754
- var o = Ue.indexOf(t === null || t === void 0 ? void 0 : t.id);
3755
- O === null || O === void 0 ? void 0 : O({
3797
+ var r = Je.indexOf(n.id);
3798
+ var o = Je.indexOf(t === null || t === void 0 ? void 0 : t.id);
3799
+ D === null || D === void 0 ? void 0 : D({
3756
3800
  fromIndex: r,
3757
3801
  toIndex: o
3758
3802
  });
3759
3803
  }
3760
- }), [ Ue, O ]);
3761
- var pn = (0, t.useCallback)((function() {
3762
- ye.current = true;
3804
+ }), [ Je, D ]);
3805
+ var yn = (0, t.useCallback)((function() {
3806
+ xe.current = true;
3763
3807
  }), []);
3764
- var mn = (0, t.useRef)({});
3765
- var bn = function e(n) {
3808
+ var gn = (0, t.useRef)({});
3809
+ var wn = function e(n) {
3766
3810
  var r = [];
3767
3811
  var o = [];
3768
3812
  var i = t.Children.toArray(n.props.children).filter(t.isValidElement).map((function(e, n) {
@@ -3781,53 +3825,54 @@
3781
3825
  index: n,
3782
3826
  dragId: a,
3783
3827
  elementRef: function e(n) {
3784
- mn.current[a] = n;
3828
+ gn.current[a] = n;
3785
3829
  N(i.props.elementRef, n);
3786
3830
  }
3787
3831
  });
3788
3832
  }));
3789
- Ve.current = r;
3790
- Ye = o;
3833
+ Ye.current = r;
3834
+ Ze = o;
3791
3835
  var a = l === null || l === void 0 ? void 0 : l.filter(t.isValidElement);
3792
3836
  var u = (0, t.cloneElement)(n, {
3793
3837
  actions: a,
3794
3838
  actionsColumnWidth: s,
3795
- hasInfoColumn: $ !== "none",
3796
- hasDragColumn: !!O,
3797
- onAutosizeColumn: ln,
3798
- onRequestMoveColumn: C,
3799
- onRequestResizeColumn: R,
3800
- onRequestToggleAllRows: D,
3801
- elementRef: tn(n),
3802
- rowSelection: W
3839
+ hasInfoColumn: H !== "none",
3840
+ hasDragColumn: !!D,
3841
+ pinnedColumns: z,
3842
+ onAutosizeColumn: fn,
3843
+ onRequestMoveColumn: R,
3844
+ onRequestResizeColumn: P,
3845
+ onRequestToggleAllRows: A,
3846
+ elementRef: un(n),
3847
+ rowSelection: V
3803
3848
  }, i);
3804
3849
  return u;
3805
3850
  };
3806
- var hn = (0, t.useMemo)((function() {
3851
+ var Cn = (0, t.useMemo)((function() {
3807
3852
  var e, n;
3808
- if (Ee === -1 || !ze.current || !We.current) return null;
3809
- var t = !!O;
3810
- var o = $ !== "none";
3811
- var i = Array.from((e = (n = ze.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(D ? 1 : 0);
3853
+ if (De === -1 || !Le.current || !Be.current) return null;
3854
+ var t = !!D;
3855
+ var o = H !== "none";
3856
+ var i = Array.from((e = (n = Le.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);
3812
3857
  var a;
3813
- if (Ee === 0) {
3858
+ if (De === 0) {
3814
3859
  var l;
3815
3860
  a = ((l = i[0]) === null || l === void 0 ? void 0 : l.offsetLeft) || 0;
3816
- } else if (Ee >= i.length) {
3861
+ } else if (De >= i.length) {
3817
3862
  var u = i[i.length - 1];
3818
3863
  a = ((u === null || u === void 0 ? void 0 : u.offsetLeft) || 0) + ((u === null || u === void 0 ? void 0 : u.offsetWidth) || 0) - 1;
3819
3864
  // -1 makes the last guideline visible
3820
3865
  } else {
3821
3866
  var s;
3822
- a = ((s = i[Ee]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3867
+ a = ((s = i[De]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3823
3868
  }
3824
3869
 
3825
3870
  return r().createElement(ie, {
3826
- $height: We.current.clientHeight,
3871
+ $height: Be.current.clientHeight,
3827
3872
  $left: a
3828
3873
  });
3829
- }), [ Ee, O, $, D ]);
3830
- var yn = function e(n) {
3874
+ }), [ De, D, H, A ]);
3875
+ var xn = function e(n) {
3831
3876
  var r = (l === null || l === void 0 ? void 0 : l.filter(t.isValidElement).length) > 0;
3832
3877
  var o = false;
3833
3878
  var i = [];
@@ -3851,43 +3896,44 @@
3851
3896
  a.push(u);
3852
3897
  }));
3853
3898
  var u = r || o || !!s;
3854
- Xe = i;
3855
- Ue = a;
3899
+ Qe = i;
3900
+ Je = a;
3856
3901
 
3857
3902
  return (0, t.cloneElement)(n, {
3858
3903
  actions: u,
3859
- movableColumns: !!C,
3860
- onRequestMoveRow: O,
3861
- primaryColumnIndex: _,
3862
- rowExpansion: $,
3863
- stripeRows: H
3864
- }, Xe);
3904
+ movableColumns: !!R,
3905
+ onRequestMoveRow: D,
3906
+ primaryColumnIndex: M,
3907
+ rowExpansion: H,
3908
+ pinnedColumns: z,
3909
+ stripeRows: B
3910
+ }, Qe);
3865
3911
  };
3866
- var gn = function e() {
3867
- var n = We.current;
3868
- var t = un();
3869
- if (!No(g) || !Le.current || !ze.current || !n) {
3912
+ var Sn = function e() {
3913
+ var n = Be.current;
3914
+ var t = cn();
3915
+ if (!No(g) || !Ve.current || !Le.current || !n) {
3870
3916
  return false;
3871
3917
  }
3872
3918
  var r = Wo(n).top;
3873
3919
  return t.pageYOffset >= r - (f || 0);
3874
3920
  };
3875
- var wn = function e() {
3876
- var n = un();
3877
- var t = We.current;
3878
- if (!p || !Le.current || !t) {
3921
+ var On = function e() {
3922
+ var n = cn();
3923
+ var t = Be.current;
3924
+ if (!p || !Ve.current || !t) {
3879
3925
  return false;
3880
3926
  }
3881
3927
  var r = xo(t);
3882
3928
  return r.bottom > n.innerHeight && r.top < n.innerHeight;
3883
3929
  };
3884
- var Cn = function e(n, o) {
3885
- if (gn()) {
3930
+ var kn = function e(n, o) {
3931
+ if (Sn()) {
3886
3932
  // FIXME: handle inline
3887
3933
  // Save the current head focus state so that it can be applied to the docked version
3888
3934
  // after the `HeadTable` mounts.
3889
- Me.current = Ho(ze.current);
3890
- if (U === undefined || ue === undefined || fe === undefined || be === undefined) {
3935
+ We.current = Ho(Le.current);
3936
+ if (G === undefined || de === undefined || me === undefined || we === undefined) {
3891
3937
  return false;
3892
3938
  }
3893
3939
  var i = (0, t.cloneElement)(n);
@@ -3895,67 +3941,67 @@
3895
3941
  return r().createElement(Ar, {
3896
3942
  headType: "docked",
3897
3943
  tHead: i,
3898
- cellWidths: U,
3899
- horizontalOffset: J,
3900
- tableWidth: ue,
3901
- top: fe,
3902
- width: be,
3903
- tableStyle: K,
3944
+ cellWidths: G,
3945
+ horizontalOffset: le,
3946
+ tableWidth: de,
3947
+ top: me,
3948
+ width: we,
3949
+ tableStyle: F,
3904
3950
  isFixedColumn: o,
3905
- onKeyUp: an,
3906
- elementRef: on,
3907
- hasDragColumn: !!O,
3908
- hasRowExpansion: $ !== "none",
3909
- hasRowSelection: !!D
3951
+ onKeyUp: dn,
3952
+ elementRef: sn,
3953
+ hasDragColumn: !!D,
3954
+ hasRowExpansion: H !== "none",
3955
+ hasRowSelection: !!A
3910
3956
  });
3911
3957
  }
3912
3958
  return false;
3913
3959
  };
3914
- var xn = (0, t.useMemo)((function() {
3960
+ var Rn = (0, t.useMemo)((function() {
3915
3961
  var e, n, t;
3916
- if (!_e.current || !ze.current || !Le.current) {
3962
+ if (!Ne.current || !Le.current || !Ve.current) {
3917
3963
  return 0;
3918
3964
  }
3919
- var r = un();
3920
- var o = (e = xo(Le.current).top) !== null && e !== void 0 ? e : 0;
3921
- var i = (n = (t = ze.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3965
+ var r = cn();
3966
+ var o = (e = xo(Ve.current).top) !== null && e !== void 0 ? e : 0;
3967
+ var i = (n = (t = Le.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3922
3968
  var a = r.innerHeight - o - i;
3923
- return Math.min(a - _e.current.offsetHeight, 0);
3969
+ return Math.min(a - Ne.current.offsetHeight, 0);
3924
3970
  }), []);
3925
- var Sn = (0, t.useMemo)((function() {
3971
+ var En = (0, t.useMemo)((function() {
3926
3972
  return {
3927
- width: be,
3928
- marginBottom: xn
3973
+ width: we,
3974
+ marginBottom: Rn
3929
3975
  };
3930
- }), [ be, xn ]);
3931
- var On = (0, t.useMemo)((function() {
3976
+ }), [ we, Rn ]);
3977
+ var In = (0, t.useMemo)((function() {
3932
3978
  return {
3933
- width: ue
3979
+ width: de
3934
3980
  };
3935
- }), [ ue ]);
3936
- var kn = function e() {
3937
- if (!wn()) {
3981
+ }), [ de ]);
3982
+ var Tn = function e() {
3983
+ if (!On()) {
3938
3984
  return false;
3939
3985
  }
3940
3986
 
3941
3987
  return r().createElement(ne, {
3942
- style: Sn,
3943
- onScroll: Qe,
3988
+ style: En,
3989
+ onScroll: tn,
3944
3990
  "data-test": "docked-scroll-bar",
3945
- ref: _e
3991
+ ref: Ne
3946
3992
  }, r().createElement(te, {
3947
- style: On,
3993
+ style: In,
3948
3994
  "data-test": "docked-scroll-content"
3949
3995
  }));
3950
3996
  };
3951
- var Rn = function e() {
3952
- var n = ze.current;
3953
- var t = We.current;
3997
+ var jn = function e() {
3998
+ var n = Le.current;
3999
+ var t = Be.current;
3954
4000
  /**
3955
4001
  * there is slightly less space for the table than tableContainer's width,
3956
4002
  * because there is a 1 px border added to every column but the first
3957
4003
  */ if (n) {
3958
- var r = Qt(ze.current);
4004
+ var r = Qt(Le.current);
3959
4005
  var o = r === null || r === void 0 ? void 0 : r.length;
3960
4006
  var i = t === null || t === void 0 ? void 0 : t.clientWidth;
3961
4007
  if (i != null) {
@@ -3965,57 +4011,58 @@
3965
4011
  }
3966
4012
  return null;
3967
4013
  };
3968
- var En;
3969
- var In;
3970
- var Tn;
3971
- var jn = !!R;
4014
+ var Dn;
4015
+ var Pn;
4016
+ var An;
4017
+ var qn = !!P;
3972
4018
  t.Children.toArray(c).forEach((function(e) {
3973
4019
  var n = e.type.splunkUiType;
3974
4020
  if (n === "Table.Head") {
3975
- En = bn(e);
4021
+ Dn = wn(e);
3976
4022
  // Check if all HeadCells have a defined width (making the table fixed width)
3977
4023
  var r = t.Children.toArray(e.props.children).filter(t.isValidElement);
3978
4024
  var o = r.every((function(e) {
3979
4025
  return e.props.width && e.props.width !== undefined;
3980
4026
  }));
3981
- jn = o;
4027
+ qn = o;
3982
4028
  } else if (n === "Table.Body") {
3983
- In = yn(e);
4029
+ Pn = xn(e);
3984
4030
  } else if (n === "Table.Caption") {
3985
4031
  // the html spec mandates that a caption must be the first table child.
3986
4032
  // catch the caption here so that it can be placed first later. note: a
3987
4033
  // caption can be placed on the bottom side of a table by adjusting the
3988
4034
  // caption's side prop.
3989
- Tn = e;
4035
+ An = e;
3990
4036
  }
3991
4037
  }));
3992
- So(En, "A Table.Head is required.");
3993
- var Dn = Cn(En, jn);
4038
+ So(Dn, "A Table.Head is required.");
4039
+ var _n = kn(Dn, qn);
3994
4040
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
3995
4041
  // interactions will be handled by the overlaid `headTable` instead.
3996
- var qn = t.Children.toArray(En.props.children).filter(t.isValidElement).map((function(e) {
4042
+ var zn = t.Children.toArray(Dn.props.children).filter(t.isValidElement).map((function(e) {
3997
4043
 
3998
4044
  // TS: onClick is different for regular/dropdown head cells, that's ok
3999
4045
  return (0, t.cloneElement)(e, {
4000
- visible: !Dn
4046
+ visible: !_n
4001
4047
  });
4002
4048
  }));
4003
- En = (0, t.cloneElement)(En, {}, qn);
4004
- var An = ge || un();
4005
- var Pn = Lo(g) ? We.current : An;
4006
- if (z) {
4007
- jn = false;
4049
+ Dn = (0, t.cloneElement)(Dn, {}, zn);
4050
+ var $n = Se || cn();
4051
+ var Mn = Lo(g) ? Be.current : $n;
4052
+ if (L) {
4053
+ qn = false;
4008
4054
  }
4009
- var _n = Rn();
4010
- var zn = (0, t.useMemo)((function() {
4055
+ var Nn = jn();
4056
+ var Ln = (0, t.useMemo)((function() {
4011
4057
  return {
4012
4058
  headType: g,
4013
- resizableFillLayout: z,
4014
- tableContainerWidthWithoutBorders: _n
4059
+ horizontalOverflow: C,
4060
+ resizableFillLayout: L,
4061
+ tableContainerWidthWithoutBorders: Nn
4015
4062
  };
4016
- }), [ g, z, _n ]);
4017
- var Mn = (0, t.useMemo)((function() {
4018
- if (!O) {
4063
+ }), [ g, C, L, Nn ]);
4064
+ var Wn = (0, t.useMemo)((function() {
4065
+ if (!D) {
4019
4066
  return {
4020
4067
  onDragStart: function e() {
4021
4068
  return undefined;
@@ -4037,27 +4084,27 @@
4037
4084
  if (t === undefined) {
4038
4085
  return undefined;
4039
4086
  }
4040
- var r = Ko(Ue, t);
4087
+ var r = Ko(Je, t);
4041
4088
  return typeof r === "number" ? (0, I.sprintf)((0, T._)("Picked up sortable row in position %(pos)d of %(total)d."), {
4042
4089
  pos: r,
4043
- total: Ue.length
4090
+ total: Je.length
4044
4091
  }) : undefined;
4045
4092
  },
4046
4093
  onDragOver: function e(n) {
4047
4094
  var t = n.active, r = n.over;
4048
- if (ye.current) {
4049
- ye.current = false;
4095
+ if (xe.current) {
4096
+ xe.current = false;
4050
4097
  return undefined;
4051
4098
  }
4052
4099
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4053
4100
  return undefined;
4054
4101
  }
4055
- var o = Ko(Ue, t.id);
4056
- var i = Ko(Ue, r.id);
4102
+ var o = Ko(Je, t.id);
4103
+ var i = Ko(Je, r.id);
4057
4104
  return (0, I.sprintf)((0, T._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
4058
4105
  from: o,
4059
4106
  to: i,
4060
- total: Ue.length
4107
+ total: Je.length
4061
4108
  });
4062
4109
  },
4063
4110
  onDragEnd: function e(n) {
@@ -4065,10 +4112,10 @@
4065
4112
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4066
4113
  return undefined;
4067
4114
  }
4068
- var r = Ko(Ue, t.id);
4115
+ var r = Ko(Je, t.id);
4069
4116
  return typeof r === "number" ? (0, I.sprintf)((0, T._)("Row dropped at position %(pos)d of %(total)d."), {
4070
4117
  pos: r,
4071
- total: Ue.length
4118
+ total: Je.length
4072
4119
  }) : undefined;
4073
4120
  },
4074
4121
  onDragCancel: function e(n) {
@@ -4076,15 +4123,15 @@
4076
4123
  if (t === undefined) {
4077
4124
  return undefined;
4078
4125
  }
4079
- var r = Ko(Ue, t);
4126
+ var r = Ko(Je, t);
4080
4127
  return typeof r === "number" ? (0, I.sprintf)((0, T._)("Row returned to its starting position of %(pos)d."), {
4081
4128
  pos: r
4082
4129
  }) : undefined;
4083
4130
  }
4084
4131
  };
4085
- }), [ Ue, O ]);
4086
- var $n = (0, t.useMemo)((function() {
4087
- if (!C) {
4132
+ }), [ Je, D ]);
4133
+ var Hn = (0, t.useMemo)((function() {
4134
+ if (!R) {
4088
4135
  return {
4089
4136
  onDragStart: function e() {
4090
4137
  return undefined;
@@ -4106,28 +4153,28 @@
4106
4153
  if (t === undefined) {
4107
4154
  return undefined;
4108
4155
  }
4109
- var r = Bo(Ye, t);
4156
+ var r = Vo(Ze, t);
4110
4157
  return typeof r === "number" ? (0, I.sprintf)((0, T._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4111
4158
  pos: r,
4112
- total: Ye.length
4159
+ total: Ze.length
4113
4160
  }) : undefined;
4114
4161
  },
4115
4162
  onDragOver: function e(n) {
4116
4163
  var t = n.active, r = n.over;
4117
- if (ye.current) {
4118
- ye.current = false;
4164
+ if (xe.current) {
4165
+ xe.current = false;
4119
4166
  return undefined;
4120
4167
  }
4121
4168
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4122
4169
  return undefined;
4123
4170
  }
4124
- var o = Bo(Ye, t.id);
4125
- var i = Bo(Ye, r.id);
4171
+ var o = Vo(Ze, t.id);
4172
+ var i = Vo(Ze, r.id);
4126
4173
  if (typeof o !== "number" || typeof i !== "number") return undefined;
4127
4174
  return (0, I.sprintf)((0, T._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4128
4175
  from: o,
4129
4176
  to: i,
4130
- total: Ye.length
4177
+ total: Ze.length
4131
4178
  });
4132
4179
  },
4133
4180
  onDragEnd: function e(n) {
@@ -4135,10 +4182,10 @@
4135
4182
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4136
4183
  return undefined;
4137
4184
  }
4138
- var r = Bo(Ye, t.id);
4185
+ var r = Vo(Ze, t.id);
4139
4186
  return typeof r === "number" ? (0, I.sprintf)((0, T._)("Column dropped at position %(pos)d of %(total)d."), {
4140
4187
  pos: r,
4141
- total: Ye.length
4188
+ total: Ze.length
4142
4189
  }) : undefined;
4143
4190
  },
4144
4191
  onDragCancel: function e(n) {
@@ -4146,51 +4193,51 @@
4146
4193
  if (t === undefined) {
4147
4194
  return undefined;
4148
4195
  }
4149
- var r = Bo(Ye, t);
4196
+ var r = Vo(Ze, t);
4150
4197
  return typeof r === "number" ? (0, I.sprintf)((0, T._)("Column returned to its starting position of %(pos)d."), {
4151
4198
  pos: r
4152
4199
  }) : undefined;
4153
4200
  }
4154
4201
  };
4155
- }), [ Ye, C ]);
4156
- var Nn = (0, t.useMemo)((function() {
4202
+ }), [ Ze, R ]);
4203
+ var Kn = (0, t.useMemo)((function() {
4157
4204
  return {
4158
- screenReaderInstructions: O ? Fo : Uo,
4159
- announcements: O ? Mn : $n
4205
+ screenReaderInstructions: D ? Fo : Uo,
4206
+ announcements: D ? Wn : Hn
4160
4207
  };
4161
- }), [ Mn, $n, O ]);
4162
- var Ln = (0, t.useCallback)((function(e) {
4163
- var n = e.active.id;
4164
- if (n.startsWith("col-") && C) {
4165
- Oe([ i.restrictToHorizontalAxis ]);
4166
- sn(e);
4167
- } else if (n.startsWith("row-") && O) {
4168
- Oe([ i.restrictToVerticalAxis ]);
4169
- }
4170
- }), [ C, O, sn ]);
4171
- var Wn = (0, t.useCallback)((function(e) {
4172
- Oe([]);
4208
+ }), [ Wn, Hn, D ]);
4209
+ var Vn = (0, t.useCallback)((function(e) {
4173
4210
  var n = e.active.id;
4174
- if (n.startsWith("col-") && C) {
4175
- fn(e);
4176
- } else if (n.startsWith("row-") && O) {
4211
+ if (n.startsWith("col-") && R) {
4212
+ Ie([ i.restrictToHorizontalAxis ]);
4177
4213
  vn(e);
4214
+ } else if (n.startsWith("row-") && D) {
4215
+ Ie([ i.restrictToVerticalAxis ]);
4178
4216
  }
4179
- }), [ fn, vn, C, O ]);
4180
- var Hn = (0, t.useCallback)((function(e) {
4217
+ }), [ R, D, vn ]);
4218
+ var Bn = (0, t.useCallback)((function(e) {
4219
+ Ie([]);
4181
4220
  var n = e.active.id;
4182
- if (n.startsWith("col-") && C) {
4183
- dn(e);
4221
+ if (n.startsWith("col-") && R) {
4222
+ bn(e);
4223
+ } else if (n.startsWith("row-") && D) {
4224
+ hn(e);
4184
4225
  }
4185
- }), [ dn, C ]);
4186
- var Kn = (0, t.useCallback)((function(e) {
4187
- Oe([]);
4226
+ }), [ bn, hn, R, D ]);
4227
+ var Fn = (0, t.useCallback)((function(e) {
4188
4228
  var n = e.active.id;
4189
- if (n.startsWith("row-") && O) {
4190
- pn();
4229
+ if (n.startsWith("col-") && R) {
4230
+ mn(e);
4191
4231
  }
4192
- }), [ pn, O ]);
4193
- var Bn = (0, t.useMemo)((function() {
4232
+ }), [ mn, R ]);
4233
+ var Un = (0, t.useCallback)((function(e) {
4234
+ Ie([]);
4235
+ var n = e.active.id;
4236
+ if (n.startsWith("row-") && D) {
4237
+ yn();
4238
+ }
4239
+ }), [ yn, D ]);
4240
+ var Xn = (0, t.useMemo)((function() {
4194
4241
  return function(e) {
4195
4242
  var n = (0, o.pointerWithin)(e);
4196
4243
  // Collision detection algorithms return an array of collisions
@@ -4201,64 +4248,64 @@
4201
4248
  return (0, o.rectIntersection)(e);
4202
4249
  };
4203
4250
  }), []);
4204
- var Vn = Ae ? mn.current[Ae] : null;
4205
- var Fn = Vn ? xo(Vn).width : undefined;
4206
- var Un = We.current ? xo(We.current).height : undefined;
4251
+ var Yn = $e ? gn.current[$e] : null;
4252
+ var Gn = Yn ? xo(Yn).width : undefined;
4253
+ var Jn = Be.current ? xo(Be.current).height : undefined;
4207
4254
 
4208
4255
  return r().createElement(Q, Oo({
4209
4256
  "data-test": "table",
4210
4257
  ref: m,
4211
- style: A,
4212
- "data-test-row-selection": D ? W : undefined
4213
- }, b()(B, [].concat(ko(Object.keys(Mo)), [ "style" ]))), r().createElement(x(), {
4214
- target: un(),
4258
+ style: _,
4259
+ "data-test-row-selection": A ? V : undefined
4260
+ }, b()(U, [].concat(ko(Object.keys($o)), [ "style" ]))), r().createElement(x(), {
4261
+ target: cn(),
4215
4262
  eventType: "scroll",
4216
- listener: Ze,
4263
+ listener: rn,
4217
4264
  options: Yo
4218
- }), r().createElement(Ht.Provider, {
4219
- value: zn
4220
- }, Dn, r().createElement(Z, {
4265
+ }), r().createElement(ye.Provider, {
4266
+ value: Ln
4267
+ }, _n, r().createElement(Z, {
4221
4268
  "data-test": "scroll-container",
4222
- onScroll: Je,
4223
- ref: We,
4224
- style: w,
4225
- $dragging: !!Ae
4269
+ onScroll: nn,
4270
+ ref: Be,
4271
+ style: O,
4272
+ $dragging: !!$e
4226
4273
  }, r().createElement(S.ScrollContainerProvider, {
4227
- value: Pn
4274
+ value: Mn
4228
4275
  }, r().createElement(o.DndContext, {
4229
- accessibility: Nn,
4230
- collisionDetection: Bn,
4231
- modifiers: Se,
4232
- onDragCancel: Kn,
4233
- onDragEnd: Wn,
4234
- onDragOver: Hn,
4235
- onDragStart: Ln,
4236
- sensors: we
4276
+ accessibility: Kn,
4277
+ collisionDetection: Xn,
4278
+ modifiers: Ee,
4279
+ onDragCancel: Un,
4280
+ onDragEnd: Bn,
4281
+ onDragOver: Fn,
4282
+ onDragStart: Vn,
4283
+ sensors: Oe
4237
4284
  }, r().createElement(ee, {
4238
- ref: Le,
4285
+ ref: Ve,
4239
4286
  "data-test": "main-table",
4240
- style: K,
4241
- "data-fixed-column": jn ? "true" : undefined,
4242
- $resizableFillLayout: z
4243
- }, Tn, C ? r().createElement(a.SortableContext, {
4244
- items: Ye,
4287
+ style: F,
4288
+ "data-fixed-column": qn ? "true" : undefined,
4289
+ $resizableFillLayout: L
4290
+ }, An, R ? r().createElement(a.SortableContext, {
4291
+ items: Ze,
4245
4292
  strategy: a.horizontalListSortingStrategy
4246
- }, En) : En, O ? r().createElement(a.SortableContext, {
4247
- items: Ue,
4293
+ }, Dn) : Dn, D ? r().createElement(a.SortableContext, {
4294
+ items: Je,
4248
4295
  strategy: a.verticalListSortingStrategy
4249
- }, In) : In), Ae && r().createElement(o.DragOverlay, null, r().createElement(oe, {
4250
- $width: Fn,
4251
- $height: Un
4252
- })), Ae && hn))), kn()));
4296
+ }, Pn) : Pn), $e && r().createElement(o.DragOverlay, null, r().createElement(oe, {
4297
+ $width: Gn,
4298
+ $height: Jn
4299
+ })), $e && Cn))), Tn()));
4253
4300
  }
4254
- Jo.propTypes = Mo;
4301
+ Jo.propTypes = $o;
4255
4302
  Jo.Body = J;
4256
4303
  Jo.Caption = de;
4257
- Jo.Cell = xe;
4304
+ Jo.Cell = Oe;
4258
4305
  Jo.Head = er;
4259
- Jo.HeadCell = zn;
4306
+ Jo.HeadCell = Mn;
4260
4307
  Jo.HeadDropdownCell = xr;
4261
- Jo.Row = Lt;
4308
+ Jo.Row = Ht;
4262
4309
  /* harmony default export */ const Qo = Jo;
4263
4310
  // CONCATENATED MODULE: ./src/Table/index.ts
4264
4311
  module.exports = n;