@stenajs-webui/grid 20.6.11 → 20.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/config/TableConfig.d.ts +2 -2
  2. package/dist/features/grid-cell/hooks/UseEditableCell.d.ts +3 -3
  3. package/dist/features/grid-cell/hooks/UseGridCell.d.ts +1 -1
  4. package/dist/features/grid-cell/hooks/UseGridNavigation.d.ts +4 -4
  5. package/dist/features/standard-table/components/StandardTable.d.ts +2 -2
  6. package/dist/features/standard-table/components/StandardTableCell.d.ts +2 -2
  7. package/dist/features/standard-table/components/StandardTableContent.d.ts +2 -2
  8. package/dist/features/standard-table/components/StandardTableRow.d.ts +2 -2
  9. package/dist/features/standard-table/components/StandardTableRowList.d.ts +2 -2
  10. package/dist/features/standard-table/config/StandardTableColumnConfig.d.ts +8 -8
  11. package/dist/features/standard-table/config/StandardTableConfig.d.ts +2 -2
  12. package/dist/features/standard-table/context/GroupConfigsAndIdsForRowsContext.d.ts +1 -1
  13. package/dist/features/standard-table/features/checkboxes/UseTableHeadCheckbox.d.ts +1 -1
  14. package/dist/features/standard-table/features/column-groups/ColumnGroupFactory.d.ts +1 -1
  15. package/dist/features/standard-table/features/column-index-per-column-id/ColumnIndexCalculator.d.ts +1 -1
  16. package/dist/features/standard-table/features/expand-collapse/UseTableHeadExpandCollapse.d.ts +1 -1
  17. package/dist/features/standard-table/features/sorting/MultitypeComparator.d.ts +1 -1
  18. package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupOffsetCalculator.d.ts +5 -5
  19. package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupValidator.d.ts +3 -3
  20. package/dist/features/standard-table/features/sticky-columns/StickyPropsPerColumnCalculator.d.ts +2 -2
  21. package/dist/features/standard-table/features/sticky-columns/types.d.ts +2 -2
  22. package/dist/features/standard-table/features/summary-row/SummaryCellColSpanCalculator.d.ts +3 -3
  23. package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts +2 -2
  24. package/dist/features/standard-table/features/summary-row/components/SummaryRowSwitcher.d.ts +2 -2
  25. package/dist/features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCellWithStatus.d.ts +1 -1
  26. package/dist/features/standard-table/redux/ReducerIdFactory.d.ts +1 -1
  27. package/dist/features/standard-table/redux/StandardTableReducer.d.ts +2 -2
  28. package/dist/features/standard-table/types/StandardTableEvents.d.ts +2 -2
  29. package/dist/features/standard-table/util/ActionsFactory.d.ts +1 -1
  30. package/dist/features/standard-table/util/FilterItemsOnEnabledCheckboxes.d.ts +2 -2
  31. package/dist/features/table-ui/components/table/SortOrderIcon.d.ts +2 -2
  32. package/dist/index.es.js +184 -195
  33. package/dist/index.es.js.map +1 -1
  34. package/dist/index.js +2 -2
  35. package/dist/index.js.map +1 -1
  36. package/dist/util/DirectionCalculator.d.ts +2 -2
  37. package/package.json +9 -9
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { useMemo as y, useRef as ue, useState as Se, useCallback as P, useEffect
5
5
  import { InputSpinner as We, Icon as J, stenaExclamationTriangle as Ie, stenaArrowRight as dt, stenaInfoCircle as Jt, FlatButton as Ne, stenaDotsVertical as Zt, stenaAngleDown as ht, stenaAngleRight as mt, ResultListBanner as er, Banner as $e } from "@stenajs-webui/elements";
6
6
  import { cssColor as V } from "@stenajs-webui/theme";
7
7
  import { Tooltip as ge, Popover as tr } from "@stenajs-webui/tooltip";
8
- import { Text as Z, Indent as L, Space as N, Row as O, Box as de, exhaustSwitchCaseElseThrow as rr, Heading as ft, booleanOrNumberToNumber as nr, useArraySet as pt, useOnScreen as or, Spacing as Me } from "@stenajs-webui/core";
8
+ import { Text as Z, Indent as U, Space as N, Row as O, Box as de, exhaustSwitchCaseElseThrow as rr, Heading as ft, booleanOrNumberToNumber as nr, useArraySet as pt, useOnScreen as or, Spacing as Me } from "@stenajs-webui/core";
9
9
  import { faSortAlphaDown as ar } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
10
10
  import { faSortAlphaUp as sr } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
11
11
  import { faSortAmountDownAlt as ir } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
@@ -13,14 +13,14 @@ import { faSortAmountUpAlt as cr } from "@fortawesome/free-solid-svg-icons/faSor
13
13
  import { faSortNumericDown as lr } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
14
14
  import { faSortNumericUp as ur } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
15
15
  import vt from "classnames";
16
- import { TextInput as Le, Checkbox as Ue } from "@stenajs-webui/forms";
16
+ import { TextInput as Ue, Checkbox as Le } from "@stenajs-webui/forms";
17
17
  import { useDispatch as dr, useSelector as Ke } from "react-redux";
18
18
  import { createSortOrderActions as hr, createSelectedIdsActions as Qe, createEntityActions as mr, createSortOrderReducerInitialState as fr, createSelectedIdsReducerInitialState as Xe, reducerIdGate as ke, createSortOrderReducer as pr, createSelectedIdsReducer as Je, createEntityReducer as vr, reducerIdGateAction as ne } from "@stenajs-webui/redux";
19
19
  import { combineReducers as gr } from "redux";
20
20
  import { LoadingScreen as wr, ErrorScreen as yr } from "@stenajs-webui/panels";
21
21
  import { compact as Cr, upperFirst as br, lowerCase as xr } from "lodash-es";
22
22
  import kr from "@emotion/styled";
23
- const gt = G.createContext({}), ns = ({
23
+ const gt = G.createContext({}), Qa = ({
24
24
  children: e,
25
25
  numCols: t,
26
26
  numRows: r,
@@ -71,7 +71,7 @@ const gt = G.createContext({}), ns = ({
71
71
  }
72
72
  ),
73
73
  (n == null ? void 0 : n.newValue) !== void 0 && /* @__PURE__ */ x(R, { children: [
74
- /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(J, { icon: dt, size: 12 }) }),
74
+ /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(J, { icon: dt, size: 12 }) }),
75
75
  /* @__PURE__ */ s(Z, { color: "var(--swui-primary-action-color)", variant: "bold", children: n.newValue })
76
76
  ] }),
77
77
  c && /* @__PURE__ */ s(N, {}),
@@ -100,7 +100,7 @@ const gt = G.createContext({}), ns = ({
100
100
  indent: n,
101
101
  ...o
102
102
  }
103
- ), Pr = "var(--lhds-color-ui-300)", Ir = "var(--lhds-color-blue-500)", yt = "var(--lhds-color-blue-50)", Or = "var(--lhds-color-blue-100)", ve = `1px solid ${Pr}`, Dr = "1px solid transparent", Ae = "var(--swui-expand-highlight-border-width) solid transparent", Ct = `var(--swui-expand-highlight-border-width) solid ${Ir}`, Fe = "40px", He = "40px", bt = "40px", os = (e) => /* @__PURE__ */ s(
103
+ ), Pr = "var(--lhds-color-ui-300)", Ir = "var(--lhds-color-blue-500)", yt = "var(--lhds-color-blue-50)", Or = "var(--lhds-color-blue-100)", ve = `1px solid ${Pr}`, Dr = "1px solid transparent", Ae = "var(--swui-expand-highlight-border-width) solid transparent", Ct = `var(--swui-expand-highlight-border-width) solid ${Ir}`, Fe = "40px", He = "40px", bt = "40px", Xa = (e) => /* @__PURE__ */ s(
104
104
  Tr,
105
105
  {
106
106
  width: bt,
@@ -236,24 +236,24 @@ const gt = G.createContext({}), ns = ({
236
236
  }
237
237
  );
238
238
  }
239
- ), as = (e) => /* @__PURE__ */ s(
239
+ ), Ja = (e) => /* @__PURE__ */ s(
240
240
  Ye,
241
241
  {
242
242
  width: bt,
243
243
  justifyContent: "center",
244
244
  ...e
245
245
  }
246
- ), ss = ({
246
+ ), Za = ({
247
247
  label: e,
248
248
  flex: t,
249
249
  width: r,
250
250
  indent: n = 1,
251
251
  height: o = He
252
- }) => /* @__PURE__ */ s(Ye, { width: r, flex: t, height: o, children: /* @__PURE__ */ s(de, { indent: n, spacing: !0, children: /* @__PURE__ */ s(Z, { variant: "bold", children: e }) }) }), is = G.memo(
252
+ }) => /* @__PURE__ */ s(Ye, { width: r, flex: t, height: o, children: /* @__PURE__ */ s(de, { indent: n, spacing: !0, children: /* @__PURE__ */ s(Z, { variant: "bold", children: e }) }) }), es = G.memo(
253
253
  ({ style: e, height: t = He, ...r }) => /* @__PURE__ */ s(O, { style: e, height: t, ...r })
254
254
  ), Mr = "_tableRow_1cphw_1", Rr = {
255
255
  tableRow: Mr
256
- }, cs = ({
256
+ }, ts = ({
257
257
  hideBorderTop: e,
258
258
  height: t = He,
259
259
  className: r,
@@ -307,7 +307,7 @@ const gt = G.createContext({}), ns = ({
307
307
  repeat: e.repeat,
308
308
  shiftKey: e.shiftKey,
309
309
  which: e.which
310
- }), Nr = (e) => e, Lr = (e, {
310
+ }), Nr = (e) => e, Ur = (e, {
311
311
  isEditable: t = !1,
312
312
  allowedInputType: r = "all",
313
313
  onChange: n,
@@ -356,13 +356,13 @@ const gt = G.createContext({}), ns = ({
356
356
  stopEditingAndRevert: C,
357
357
  onDoubleClick: v
358
358
  };
359
- }, Ur = (e) => e === "all" || e === "numeric" || e === "alphanumeric", Br = (e) => e === "all" || e === "alphanumeric" || e === "letters", Ar = (e) => !!e.match(/^[-+*<>]$/), Fr = (e) => !!e.match(/^[a-zA-Z0-9]$/), Hr = (e) => !isNaN(parseInt(e, 10)), Yr = (e, t, r, n, o, a, i) => (c) => {
359
+ }, Lr = (e) => e === "all" || e === "numeric" || e === "alphanumeric", Br = (e) => e === "all" || e === "alphanumeric" || e === "letters", Ar = (e) => !!e.match(/^[-+*<>]$/), Fr = (e) => !!e.match(/^[a-zA-Z0-9]$/), Hr = (e) => !isNaN(parseInt(e, 10)), Yr = (e, t, r, n, o, a, i) => (c) => {
360
360
  if (!(c.ctrlKey || c.metaKey || c.shiftKey)) {
361
361
  if (c.key === "Enter" && t)
362
362
  n(void 0), r(), i.commit(), c.preventDefault(), c.stopPropagation();
363
363
  else if (t) {
364
364
  const l = Wr(c);
365
- (Hr(c.key) && Ur(o) || Fr(c.key) && Br(o) || Ar(c.key)) && (r(l), n(l), i.commit(), i.setValue(a(l.key)), c.preventDefault(), c.stopPropagation());
365
+ (Hr(c.key) && Lr(o) || Fr(c.key) && Br(o) || Ar(c.key)) && (r(l), n(l), i.commit(), i.setValue(a(l.key)), c.preventDefault(), c.stopPropagation());
366
366
  }
367
367
  }
368
368
  }, zr = (e, t, r, n) => {
@@ -498,7 +498,7 @@ const gt = G.createContext({}), ns = ({
498
498
  );
499
499
  r && r.focus();
500
500
  }, Oe = (e, t) => {
501
- const { tableId: r } = xt(t), n = Qr(t), o = Lr(e, t), a = y(
501
+ const { tableId: r } = xt(t), n = Qr(t), o = Ur(e, t), a = y(
502
502
  () => ({
503
503
  rowIndex: t.rowIndex,
504
504
  colIndex: t.colIndex
@@ -546,7 +546,7 @@ const gt = G.createContext({}), ns = ({
546
546
  stopEditingAndRevert: l,
547
547
  stopEditingAndMove: u
548
548
  };
549
- }, ls = function({
549
+ }, rs = function({
550
550
  allowedInputType: t,
551
551
  value: r = "",
552
552
  entityId: n,
@@ -616,7 +616,7 @@ const gt = G.createContext({}), ns = ({
616
616
  hoverBackground: "var(--ui7)",
617
617
  alignItems: "center",
618
618
  children: [
619
- a && /* @__PURE__ */ s(L, { num: a }),
619
+ a && /* @__PURE__ */ s(U, { num: a }),
620
620
  /* @__PURE__ */ s(
621
621
  O,
622
622
  {
@@ -630,8 +630,8 @@ const gt = G.createContext({}), ns = ({
630
630
  hoverBorder: k ? void 0 : "var(--ui5) solid 1px;",
631
631
  onKeyDown: _,
632
632
  ...te,
633
- children: /* @__PURE__ */ s(L, { row: !0, alignItems: "center", children: k ? /* @__PURE__ */ s(
634
- Le,
633
+ children: /* @__PURE__ */ s(U, { row: !0, alignItems: "center", children: k ? /* @__PURE__ */ s(
634
+ Ue,
635
635
  {
636
636
  onValueChange: M,
637
637
  value: D,
@@ -651,7 +651,7 @@ const gt = G.createContext({}), ns = ({
651
651
  }
652
652
  ),
653
653
  (v == null ? void 0 : v.newValue) !== void 0 && /* @__PURE__ */ x(R, { children: [
654
- /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(J, { icon: dt, size: 12 }) }),
654
+ /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(J, { icon: dt, size: 12 }) }),
655
655
  /* @__PURE__ */ s(
656
656
  Z,
657
657
  {
@@ -673,7 +673,7 @@ const gt = G.createContext({}), ns = ({
673
673
  ] }) })
674
674
  }
675
675
  ),
676
- a && /* @__PURE__ */ s(L, { num: a })
676
+ a && /* @__PURE__ */ s(U, { num: a })
677
677
  ]
678
678
  }
679
679
  );
@@ -718,7 +718,7 @@ const gt = G.createContext({}), ns = ({
718
718
  () => t.map((n) => n.groupConfig.columnOrder.length).reduce((n, o) => n + o, 0),
719
719
  [t]
720
720
  );
721
- }, Rt = Y(void 0), tn = () => q(Rt), Gt = Y(void 0), rn = () => q(Gt), Wt = Y(void 0), nn = Y(!1), on = () => q(Wt), an = Y("standard"), Nt = Y({}), qe = () => q(Nt), Lt = Y(0), _e = () => q(Lt), Ut = (e, t, r) => e ? Cr(
721
+ }, Rt = Y(void 0), tn = () => q(Rt), Gt = Y(void 0), rn = () => q(Gt), Wt = Y(void 0), nn = Y(!1), on = () => q(Wt), an = Y("standard"), Nt = Y({}), qe = () => q(Nt), Ut = Y(0), _e = () => q(Ut), Lt = (e, t, r) => e ? Cr(
722
722
  (t == null ? void 0 : t.map((n) => {
723
723
  const o = e == null ? void 0 : e[n];
724
724
  return {
@@ -791,12 +791,12 @@ const gt = G.createContext({}), ns = ({
791
791
  u,
792
792
  /* @__PURE__ */ s(N, { num: 0.5 })
793
793
  ] }),
794
- l ? l(r) : /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(ft, { variant: "h5", whiteSpace: "nowrap", children: c }) }),
794
+ l ? l(r) : /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(ft, { variant: "h5", whiteSpace: "nowrap", children: c }) }),
795
795
  d && /* @__PURE__ */ x(R, { children: [
796
796
  /* @__PURE__ */ s(N, { num: 0.5 }),
797
797
  d
798
798
  ] }),
799
- (f || h) && /* @__PURE__ */ s(L, {}),
799
+ (f || h) && /* @__PURE__ */ s(U, {}),
800
800
  h ? /* @__PURE__ */ s(We, {}) : f ? /* @__PURE__ */ s(
801
801
  ge,
802
802
  {
@@ -903,7 +903,7 @@ const gt = G.createContext({}), ns = ({
903
903
  }
904
904
  );
905
905
  }), fn = (e) => {
906
- const t = Ut(
906
+ const t = Lt(
907
907
  "columnGroups" in e ? e.columnGroups : void 0,
908
908
  "columnGroupOrder" in e ? e.columnGroupOrder : void 0,
909
909
  "columnOrder" in e ? e.columnOrder : void 0
@@ -929,7 +929,8 @@ const gt = G.createContext({}), ns = ({
929
929
  ));
930
930
  }, gn = (e) => {
931
931
  Object.keys(e.columns).forEach((r) => {
932
- if (e.columns[r].sticky)
932
+ const n = e.columns[r];
933
+ if ("sticky" in n && n.sticky)
933
934
  throw new Error(
934
935
  "Columns can not be sticky when column groups are used. columnId: " + r
935
936
  );
@@ -1116,7 +1117,7 @@ const gt = G.createContext({}), ns = ({
1116
1117
  const r = t[e];
1117
1118
  if (r)
1118
1119
  return r.itemValueResolver;
1119
- }, Ln = G.memo(
1120
+ }, Un = G.memo(
1120
1121
  function({
1121
1122
  value: t,
1122
1123
  onValueChange: r,
@@ -1140,7 +1141,7 @@ const gt = G.createContext({}), ns = ({
1140
1141
  [r, c, l]
1141
1142
  );
1142
1143
  return /* @__PURE__ */ s(
1143
- Ue,
1144
+ Le,
1144
1145
  {
1145
1146
  size: "small",
1146
1147
  disabled: i,
@@ -1150,7 +1151,7 @@ const gt = G.createContext({}), ns = ({
1150
1151
  }
1151
1152
  );
1152
1153
  }
1153
- ), Un = (e, t, r) => {
1154
+ ), Ln = (e, t, r) => {
1154
1155
  if (t == null || r == null || e == null || t === r)
1155
1156
  return;
1156
1157
  const n = e.indexOf(t), o = e.indexOf(r);
@@ -1173,7 +1174,7 @@ const gt = G.createContext({}), ns = ({
1173
1174
  (m) => c(a(m))
1174
1175
  ), p = P(() => {
1175
1176
  if (t && o) {
1176
- const m = Un(
1177
+ const m = Ln(
1177
1178
  t,
1178
1179
  o,
1179
1180
  l
@@ -1299,7 +1300,7 @@ const gt = G.createContext({}), ns = ({
1299
1300
  size: r,
1300
1301
  color: n
1301
1302
  }) {
1302
- return /* @__PURE__ */ s(L, { overflow: "hidden", children: /* @__PURE__ */ s(Z, { className: $n.textCell, title: t, size: r, color: n, children: t }) });
1303
+ return /* @__PURE__ */ s(U, { overflow: "hidden", children: /* @__PURE__ */ s(Z, { className: $n.textCell, title: t, size: r, color: n, children: t }) });
1303
1304
  }), Qn = ({
1304
1305
  label: e,
1305
1306
  textSize: t
@@ -1481,7 +1482,7 @@ const gt = G.createContext({}), ns = ({
1481
1482
  style: {
1482
1483
  background: K
1483
1484
  },
1484
- children: /* @__PURE__ */ s(L, { num: g })
1485
+ children: /* @__PURE__ */ s(U, { num: g })
1485
1486
  }
1486
1487
  ),
1487
1488
  C && /* @__PURE__ */ s(
@@ -1533,7 +1534,7 @@ const gt = G.createContext({}), ns = ({
1533
1534
  alignItems: "center",
1534
1535
  justifyContent: "center",
1535
1536
  children: /* @__PURE__ */ s(
1536
- Ln,
1537
+ Un,
1537
1538
  {
1538
1539
  disabled: _,
1539
1540
  value: T,
@@ -1572,7 +1573,7 @@ const gt = G.createContext({}), ns = ({
1572
1573
  style: {
1573
1574
  background: Ce
1574
1575
  },
1575
- children: /* @__PURE__ */ s(L, { num: g })
1576
+ children: /* @__PURE__ */ s(U, { num: g })
1576
1577
  }
1577
1578
  ),
1578
1579
  /* @__PURE__ */ s("td", {})
@@ -1670,7 +1671,7 @@ const gt = G.createContext({}), ns = ({
1670
1671
  overflow: "hidden",
1671
1672
  justifyContent: p,
1672
1673
  alignItems: "center",
1673
- children: c ? k : /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(Z, { variant: "bold", children: C }) })
1674
+ children: c ? k : /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(Z, { variant: "bold", children: C }) })
1674
1675
  }
1675
1676
  )
1676
1677
  }
@@ -1693,7 +1694,7 @@ const gt = G.createContext({}), ns = ({
1693
1694
  }) {
1694
1695
  const r = ee(), { showRowCheckbox: n, enableExpandCollapse: o, columns: a, rowIndent: i } = I();
1695
1696
  return /* @__PURE__ */ x("tr", { className: so.summaryRow, children: [
1696
- i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(L, { num: i }) }),
1697
+ i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(U, { num: i }) }),
1697
1698
  o && /* @__PURE__ */ s("td", {}),
1698
1699
  n && /* @__PURE__ */ s("td", {}),
1699
1700
  r.map(({ groupConfig: c, groupId: l }, u) => /* @__PURE__ */ s(G.Fragment, { children: co(c.columnOrder, a).map(
@@ -1713,13 +1714,11 @@ const gt = G.createContext({}), ns = ({
1713
1714
  d
1714
1715
  )
1715
1716
  ) }, l)),
1716
- i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(L, { num: i }) }),
1717
+ i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(U, { num: i }) }),
1717
1718
  /* @__PURE__ */ s("td", {})
1718
1719
  ] });
1719
1720
  }
1720
- ), uo = function({
1721
- items: t
1722
- }) {
1721
+ ), uo = function({ items: t }) {
1723
1722
  const { columns: r } = I();
1724
1723
  return y(() => no(r), [r]) ? /* @__PURE__ */ s(lo, { items: t }) : null;
1725
1724
  }, Yt = (e) => (t) => !(e != null && e(t)), ho = G.memo(function({
@@ -2020,7 +2019,7 @@ const gt = G.createContext({}), ns = ({
2020
2019
  alignItems: "center",
2021
2020
  justifyContent: "center",
2022
2021
  children: a && /* @__PURE__ */ s(
2023
- Ue,
2022
+ Le,
2024
2023
  {
2025
2024
  size: "small",
2026
2025
  disabled: T,
@@ -2052,7 +2051,7 @@ const gt = G.createContext({}), ns = ({
2052
2051
  l && /* @__PURE__ */ s("th", { style: D, children: /* @__PURE__ */ s(O, { indent: l }) }),
2053
2052
  /* @__PURE__ */ s("th", { style: D })
2054
2053
  ] });
2055
- }), us = function({
2054
+ }), ns = function({
2056
2055
  tableContext: t,
2057
2056
  config: r,
2058
2057
  columnOrder: n,
@@ -2079,7 +2078,7 @@ const gt = G.createContext({}), ns = ({
2079
2078
  }),
2080
2079
  [k, T]
2081
2080
  ), M = !!(o ?? "columnGroupOrder" in r), W = "columnGroups" in r ? r.columnGroups : void 0, S = "columnGroupOrder" in r ? r.columnGroupOrder : void 0, B = "columnOrder" in r ? r.columnOrder : void 0, A = y(
2082
- () => Ut(
2081
+ () => Lt(
2083
2082
  W,
2084
2083
  S,
2085
2084
  B
@@ -2108,7 +2107,7 @@ const gt = G.createContext({}), ns = ({
2108
2107
  isolation: "isolate",
2109
2108
  "--current-left-offset": w && m ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : m ? "var(--swui-checkbox-cell-width)" : w ? "var(--swui-expand-cell-width)" : "0px"
2110
2109
  },
2111
- children: /* @__PURE__ */ s(Nt.Provider, { value: z, children: /* @__PURE__ */ s(Lt.Provider, { value: _, children: /* @__PURE__ */ s(an.Provider, { value: i, children: /* @__PURE__ */ s(
2110
+ children: /* @__PURE__ */ s(Nt.Provider, { value: z, children: /* @__PURE__ */ s(Ut.Provider, { value: _, children: /* @__PURE__ */ s(an.Provider, { value: i, children: /* @__PURE__ */ s(
2112
2111
  Tt.Provider,
2113
2112
  {
2114
2113
  value: a ?? h,
@@ -2189,7 +2188,7 @@ const gt = G.createContext({}), ns = ({
2189
2188
  stopEditingAndMove: l
2190
2189
  }
2191
2190
  }) => n ? /* @__PURE__ */ s(
2192
- Le,
2191
+ Ue,
2193
2192
  {
2194
2193
  onValueChange: o,
2195
2194
  value: r,
@@ -2199,7 +2198,7 @@ const gt = G.createContext({}), ns = ({
2199
2198
  selectAllOnMount: !i,
2200
2199
  onMove: l
2201
2200
  }
2202
- ) : /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(Z, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), ds = (e, t, r) => ({
2201
+ ) : /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(Z, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), os = (e, t, r) => ({
2203
2202
  label: n,
2204
2203
  item: o,
2205
2204
  gridCell: {
@@ -2215,7 +2214,7 @@ const gt = G.createContext({}), ns = ({
2215
2214
  }) => {
2216
2215
  const p = typeof e == "function" ? e(o) : e, w = t ? t(o) : void 0, m = r ? r(o) : void 0;
2217
2216
  return f && i ? /* @__PURE__ */ s(
2218
- Le,
2217
+ Ue,
2219
2218
  {
2220
2219
  onValueChange: c,
2221
2220
  value: a,
@@ -2225,7 +2224,7 @@ const gt = G.createContext({}), ns = ({
2225
2224
  selectAllOnMount: !u,
2226
2225
  onMove: h
2227
2226
  }
2228
- ) : /* @__PURE__ */ s(L, { row: !0, alignItems: "center", children: /* @__PURE__ */ s(
2227
+ ) : /* @__PURE__ */ s(U, { row: !0, alignItems: "center", children: /* @__PURE__ */ s(
2229
2228
  Sr,
2230
2229
  {
2231
2230
  value: n,
@@ -2242,22 +2241,22 @@ function H(e) {
2242
2241
  var t = Number(e);
2243
2242
  return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
2244
2243
  }
2245
- function U(e, t) {
2244
+ function L(e, t) {
2246
2245
  if (t.length < e)
2247
2246
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
2248
2247
  }
2249
2248
  function $(e) {
2250
- U(1, arguments);
2249
+ L(1, arguments);
2251
2250
  var t = Object.prototype.toString.call(e);
2252
2251
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
2253
2252
  }
2254
2253
  function E(e, t) {
2255
- U(2, arguments);
2254
+ L(2, arguments);
2256
2255
  var r = $(e), n = H(t);
2257
2256
  return isNaN(n) ? /* @__PURE__ */ new Date(NaN) : (n && r.setDate(r.getDate() + n), r);
2258
2257
  }
2259
2258
  function ko(e, t) {
2260
- U(2, arguments);
2259
+ L(2, arguments);
2261
2260
  var r = $(e).getTime(), n = H(t);
2262
2261
  return new Date(r + n);
2263
2262
  }
@@ -2266,10 +2265,10 @@ function So(e) {
2266
2265
  return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
2267
2266
  }
2268
2267
  function To(e) {
2269
- return U(1, arguments), e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
2268
+ return L(1, arguments), e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
2270
2269
  }
2271
2270
  function Po(e) {
2272
- if (U(1, arguments), !To(e) && typeof e != "number")
2271
+ if (L(1, arguments), !To(e) && typeof e != "number")
2273
2272
  return !1;
2274
2273
  var t = $(e);
2275
2274
  return !isNaN(Number(t));
@@ -2340,54 +2339,50 @@ var Io = {
2340
2339
  var n, o = Io[e];
2341
2340
  return typeof o == "string" ? n = o : t === 1 ? n = o.one : n = o.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
2342
2341
  };
2343
- const Do = Oo;
2344
2342
  function Ge(e) {
2345
2343
  return function() {
2346
2344
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = t.width ? String(t.width) : e.defaultWidth, n = e.formats[r] || e.formats[e.defaultWidth];
2347
2345
  return n;
2348
2346
  };
2349
2347
  }
2350
- var Eo = {
2348
+ var Do = {
2351
2349
  full: "EEEE, MMMM do, y",
2352
2350
  long: "MMMM do, y",
2353
2351
  medium: "MMM d, y",
2354
2352
  short: "MM/dd/yyyy"
2355
- }, Mo = {
2353
+ }, Eo = {
2356
2354
  full: "h:mm:ss a zzzz",
2357
2355
  long: "h:mm:ss a z",
2358
2356
  medium: "h:mm:ss a",
2359
2357
  short: "h:mm a"
2360
- }, Ro = {
2358
+ }, Mo = {
2361
2359
  full: "{{date}} 'at' {{time}}",
2362
2360
  long: "{{date}} 'at' {{time}}",
2363
2361
  medium: "{{date}}, {{time}}",
2364
2362
  short: "{{date}}, {{time}}"
2365
- }, Go = {
2363
+ }, Ro = {
2366
2364
  date: Ge({
2367
- formats: Eo,
2365
+ formats: Do,
2368
2366
  defaultWidth: "full"
2369
2367
  }),
2370
2368
  time: Ge({
2371
- formats: Mo,
2369
+ formats: Eo,
2372
2370
  defaultWidth: "full"
2373
2371
  }),
2374
2372
  dateTime: Ge({
2375
- formats: Ro,
2373
+ formats: Mo,
2376
2374
  defaultWidth: "full"
2377
2375
  })
2378
- };
2379
- const Wo = Go;
2380
- var No = {
2376
+ }, Go = {
2381
2377
  lastWeek: "'last' eeee 'at' p",
2382
2378
  yesterday: "'yesterday at' p",
2383
2379
  today: "'today at' p",
2384
2380
  tomorrow: "'tomorrow at' p",
2385
2381
  nextWeek: "eeee 'at' p",
2386
2382
  other: "P"
2387
- }, Lo = function(e, t, r, n) {
2388
- return No[e];
2383
+ }, Wo = function(e, t, r, n) {
2384
+ return Go[e];
2389
2385
  };
2390
- const Uo = Lo;
2391
2386
  function fe(e) {
2392
2387
  return function(t, r) {
2393
2388
  var n = r || {}, o = n.context ? String(n.context) : "standalone", a;
@@ -2402,24 +2397,24 @@ function fe(e) {
2402
2397
  return a[d];
2403
2398
  };
2404
2399
  }
2405
- var Bo = {
2400
+ var No = {
2406
2401
  narrow: ["B", "A"],
2407
2402
  abbreviated: ["BC", "AD"],
2408
2403
  wide: ["Before Christ", "Anno Domini"]
2409
- }, Ao = {
2404
+ }, Uo = {
2410
2405
  narrow: ["1", "2", "3", "4"],
2411
2406
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
2412
2407
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
2413
- }, Fo = {
2408
+ }, Lo = {
2414
2409
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
2415
2410
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
2416
2411
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
2417
- }, Ho = {
2412
+ }, Bo = {
2418
2413
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
2419
2414
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
2420
2415
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
2421
2416
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
2422
- }, Yo = {
2417
+ }, Ao = {
2423
2418
  narrow: {
2424
2419
  am: "a",
2425
2420
  pm: "p",
@@ -2450,7 +2445,7 @@ var Bo = {
2450
2445
  evening: "evening",
2451
2446
  night: "night"
2452
2447
  }
2453
- }, zo = {
2448
+ }, Fo = {
2454
2449
  narrow: {
2455
2450
  am: "a",
2456
2451
  pm: "p",
@@ -2481,7 +2476,7 @@ var Bo = {
2481
2476
  evening: "in the evening",
2482
2477
  night: "at night"
2483
2478
  }
2484
- }, qo = function(e, t) {
2479
+ }, Ho = function(e, t) {
2485
2480
  var r = Number(e), n = r % 100;
2486
2481
  if (n > 20 || n < 10)
2487
2482
  switch (n % 10) {
@@ -2493,43 +2488,42 @@ var Bo = {
2493
2488
  return r + "rd";
2494
2489
  }
2495
2490
  return r + "th";
2496
- }, _o = {
2497
- ordinalNumber: qo,
2491
+ }, Yo = {
2492
+ ordinalNumber: Ho,
2498
2493
  era: fe({
2499
- values: Bo,
2494
+ values: No,
2500
2495
  defaultWidth: "wide"
2501
2496
  }),
2502
2497
  quarter: fe({
2503
- values: Ao,
2498
+ values: Uo,
2504
2499
  defaultWidth: "wide",
2505
2500
  argumentCallback: function(e) {
2506
2501
  return e - 1;
2507
2502
  }
2508
2503
  }),
2509
2504
  month: fe({
2510
- values: Fo,
2505
+ values: Lo,
2511
2506
  defaultWidth: "wide"
2512
2507
  }),
2513
2508
  day: fe({
2514
- values: Ho,
2509
+ values: Bo,
2515
2510
  defaultWidth: "wide"
2516
2511
  }),
2517
2512
  dayPeriod: fe({
2518
- values: Yo,
2513
+ values: Ao,
2519
2514
  defaultWidth: "wide",
2520
- formattingValues: zo,
2515
+ formattingValues: Fo,
2521
2516
  defaultFormattingWidth: "wide"
2522
2517
  })
2523
2518
  };
2524
- const jo = _o;
2525
2519
  function pe(e) {
2526
2520
  return function(t) {
2527
2521
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.width, o = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
2528
2522
  if (!a)
2529
2523
  return null;
2530
- var i = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(c) ? $o(c, function(h) {
2524
+ var i = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(c) ? qo(c, function(h) {
2531
2525
  return h.test(i);
2532
- }) : Vo(c, function(h) {
2526
+ }) : zo(c, function(h) {
2533
2527
  return h.test(i);
2534
2528
  }), u;
2535
2529
  u = e.valueCallback ? e.valueCallback(l) : l, u = r.valueCallback ? r.valueCallback(u) : u;
@@ -2540,17 +2534,17 @@ function pe(e) {
2540
2534
  };
2541
2535
  };
2542
2536
  }
2543
- function Vo(e, t) {
2537
+ function zo(e, t) {
2544
2538
  for (var r in e)
2545
2539
  if (e.hasOwnProperty(r) && t(e[r]))
2546
2540
  return r;
2547
2541
  }
2548
- function $o(e, t) {
2542
+ function qo(e, t) {
2549
2543
  for (var r = 0; r < e.length; r++)
2550
2544
  if (t(e[r]))
2551
2545
  return r;
2552
2546
  }
2553
- function Ko(e) {
2547
+ function _o(e) {
2554
2548
  return function(t) {
2555
2549
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
2556
2550
  if (!n)
@@ -2567,37 +2561,37 @@ function Ko(e) {
2567
2561
  };
2568
2562
  };
2569
2563
  }
2570
- var Qo = /^(\d+)(th|st|nd|rd)?/i, Xo = /\d+/i, Jo = {
2564
+ var jo = /^(\d+)(th|st|nd|rd)?/i, Vo = /\d+/i, $o = {
2571
2565
  narrow: /^(b|a)/i,
2572
2566
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
2573
2567
  wide: /^(before christ|before common era|anno domini|common era)/i
2574
- }, Zo = {
2568
+ }, Ko = {
2575
2569
  any: [/^b/i, /^(a|c)/i]
2576
- }, ea = {
2570
+ }, Qo = {
2577
2571
  narrow: /^[1234]/i,
2578
2572
  abbreviated: /^q[1234]/i,
2579
2573
  wide: /^[1234](th|st|nd|rd)? quarter/i
2580
- }, ta = {
2574
+ }, Xo = {
2581
2575
  any: [/1/i, /2/i, /3/i, /4/i]
2582
- }, ra = {
2576
+ }, Jo = {
2583
2577
  narrow: /^[jfmasond]/i,
2584
2578
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
2585
2579
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
2586
- }, na = {
2580
+ }, Zo = {
2587
2581
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
2588
2582
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
2589
- }, oa = {
2583
+ }, ea = {
2590
2584
  narrow: /^[smtwf]/i,
2591
2585
  short: /^(su|mo|tu|we|th|fr|sa)/i,
2592
2586
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
2593
2587
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
2594
- }, aa = {
2588
+ }, ta = {
2595
2589
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
2596
2590
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
2597
- }, sa = {
2591
+ }, ra = {
2598
2592
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
2599
2593
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
2600
- }, ia = {
2594
+ }, na = {
2601
2595
  any: {
2602
2596
  am: /^a/i,
2603
2597
  pm: /^p/i,
@@ -2608,64 +2602,61 @@ var Qo = /^(\d+)(th|st|nd|rd)?/i, Xo = /\d+/i, Jo = {
2608
2602
  evening: /evening/i,
2609
2603
  night: /night/i
2610
2604
  }
2611
- }, ca = {
2612
- ordinalNumber: Ko({
2613
- matchPattern: Qo,
2614
- parsePattern: Xo,
2605
+ }, oa = {
2606
+ ordinalNumber: _o({
2607
+ matchPattern: jo,
2608
+ parsePattern: Vo,
2615
2609
  valueCallback: function(e) {
2616
2610
  return parseInt(e, 10);
2617
2611
  }
2618
2612
  }),
2619
2613
  era: pe({
2620
- matchPatterns: Jo,
2614
+ matchPatterns: $o,
2621
2615
  defaultMatchWidth: "wide",
2622
- parsePatterns: Zo,
2616
+ parsePatterns: Ko,
2623
2617
  defaultParseWidth: "any"
2624
2618
  }),
2625
2619
  quarter: pe({
2626
- matchPatterns: ea,
2620
+ matchPatterns: Qo,
2627
2621
  defaultMatchWidth: "wide",
2628
- parsePatterns: ta,
2622
+ parsePatterns: Xo,
2629
2623
  defaultParseWidth: "any",
2630
2624
  valueCallback: function(e) {
2631
2625
  return e + 1;
2632
2626
  }
2633
2627
  }),
2634
2628
  month: pe({
2635
- matchPatterns: ra,
2629
+ matchPatterns: Jo,
2636
2630
  defaultMatchWidth: "wide",
2637
- parsePatterns: na,
2631
+ parsePatterns: Zo,
2638
2632
  defaultParseWidth: "any"
2639
2633
  }),
2640
2634
  day: pe({
2641
- matchPatterns: oa,
2635
+ matchPatterns: ea,
2642
2636
  defaultMatchWidth: "wide",
2643
- parsePatterns: aa,
2637
+ parsePatterns: ta,
2644
2638
  defaultParseWidth: "any"
2645
2639
  }),
2646
2640
  dayPeriod: pe({
2647
- matchPatterns: sa,
2641
+ matchPatterns: ra,
2648
2642
  defaultMatchWidth: "any",
2649
- parsePatterns: ia,
2643
+ parsePatterns: na,
2650
2644
  defaultParseWidth: "any"
2651
2645
  })
2652
- };
2653
- const la = ca;
2654
- var ua = {
2646
+ }, aa = {
2655
2647
  code: "en-US",
2656
- formatDistance: Do,
2657
- formatLong: Wo,
2658
- formatRelative: Uo,
2659
- localize: jo,
2660
- match: la,
2648
+ formatDistance: Oo,
2649
+ formatLong: Ro,
2650
+ formatRelative: Wo,
2651
+ localize: Yo,
2652
+ match: oa,
2661
2653
  options: {
2662
2654
  weekStartsOn: 0,
2663
2655
  firstWeekContainsDate: 1
2664
2656
  }
2665
2657
  };
2666
- const da = ua;
2667
- function ha(e, t) {
2668
- U(2, arguments);
2658
+ function sa(e, t) {
2659
+ L(2, arguments);
2669
2660
  var r = H(t);
2670
2661
  return ko(e, -r);
2671
2662
  }
@@ -2674,7 +2665,7 @@ function b(e, t) {
2674
2665
  n = "0" + n;
2675
2666
  return r + n;
2676
2667
  }
2677
- var ma = {
2668
+ var X = {
2678
2669
  // Year
2679
2670
  y: function(e, t) {
2680
2671
  var r = e.getUTCFullYear(), n = r > 0 ? r : 1 - r;
@@ -2726,23 +2717,21 @@ var ma = {
2726
2717
  var r = t.length, n = e.getUTCMilliseconds(), o = Math.floor(n * Math.pow(10, r - 3));
2727
2718
  return b(o, t.length);
2728
2719
  }
2729
- };
2730
- const X = ma;
2731
- var fa = 864e5;
2732
- function pa(e) {
2733
- U(1, arguments);
2720
+ }, ia = 864e5;
2721
+ function ca(e) {
2722
+ L(1, arguments);
2734
2723
  var t = $(e), r = t.getTime();
2735
2724
  t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
2736
2725
  var n = t.getTime(), o = r - n;
2737
- return Math.floor(o / fa) + 1;
2726
+ return Math.floor(o / ia) + 1;
2738
2727
  }
2739
2728
  function Te(e) {
2740
- U(1, arguments);
2729
+ L(1, arguments);
2741
2730
  var t = 1, r = $(e), n = r.getUTCDay(), o = (n < t ? 7 : 0) + n - t;
2742
2731
  return r.setUTCDate(r.getUTCDate() - o), r.setUTCHours(0, 0, 0, 0), r;
2743
2732
  }
2744
2733
  function zt(e) {
2745
- U(1, arguments);
2734
+ L(1, arguments);
2746
2735
  var t = $(e), r = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
2747
2736
  n.setUTCFullYear(r + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
2748
2737
  var o = Te(n), a = /* @__PURE__ */ new Date(0);
@@ -2750,21 +2739,21 @@ function zt(e) {
2750
2739
  var i = Te(a);
2751
2740
  return t.getTime() >= o.getTime() ? r + 1 : t.getTime() >= i.getTime() ? r : r - 1;
2752
2741
  }
2753
- function va(e) {
2754
- U(1, arguments);
2742
+ function la(e) {
2743
+ L(1, arguments);
2755
2744
  var t = zt(e), r = /* @__PURE__ */ new Date(0);
2756
2745
  r.setUTCFullYear(t, 0, 4), r.setUTCHours(0, 0, 0, 0);
2757
2746
  var n = Te(r);
2758
2747
  return n;
2759
2748
  }
2760
- var ga = 6048e5;
2761
- function wa(e) {
2762
- U(1, arguments);
2763
- var t = $(e), r = Te(t).getTime() - va(t).getTime();
2764
- return Math.round(r / ga) + 1;
2749
+ var ua = 6048e5;
2750
+ function da(e) {
2751
+ L(1, arguments);
2752
+ var t = $(e), r = Te(t).getTime() - la(t).getTime();
2753
+ return Math.round(r / ua) + 1;
2765
2754
  }
2766
2755
  function Pe(e, t) {
2767
- U(1, arguments);
2756
+ L(1, arguments);
2768
2757
  var r = t || {}, n = r.locale, o = n && n.options && n.options.weekStartsOn, a = o == null ? 0 : H(o), i = r.weekStartsOn == null ? a : H(r.weekStartsOn);
2769
2758
  if (!(i >= 0 && i <= 6))
2770
2759
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
@@ -2772,7 +2761,7 @@ function Pe(e, t) {
2772
2761
  return c.setUTCDate(c.getUTCDate() - u), c.setUTCHours(0, 0, 0, 0), c;
2773
2762
  }
2774
2763
  function qt(e, t) {
2775
- U(1, arguments);
2764
+ L(1, arguments);
2776
2765
  var r = $(e, t), n = r.getUTCFullYear(), o = t || {}, a = o.locale, i = a && a.options && a.options.firstWeekContainsDate, c = i == null ? 1 : H(i), l = o.firstWeekContainsDate == null ? c : H(o.firstWeekContainsDate);
2777
2766
  if (!(l >= 1 && l <= 7))
2778
2767
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
@@ -2783,18 +2772,18 @@ function qt(e, t) {
2783
2772
  var f = Pe(h, t);
2784
2773
  return r.getTime() >= d.getTime() ? n + 1 : r.getTime() >= f.getTime() ? n : n - 1;
2785
2774
  }
2786
- function ya(e, t) {
2787
- U(1, arguments);
2775
+ function ha(e, t) {
2776
+ L(1, arguments);
2788
2777
  var r = t || {}, n = r.locale, o = n && n.options && n.options.firstWeekContainsDate, a = o == null ? 1 : H(o), i = r.firstWeekContainsDate == null ? a : H(r.firstWeekContainsDate), c = qt(e, t), l = /* @__PURE__ */ new Date(0);
2789
2778
  l.setUTCFullYear(c, 0, i), l.setUTCHours(0, 0, 0, 0);
2790
2779
  var u = Pe(l, t);
2791
2780
  return u;
2792
2781
  }
2793
- var Ca = 6048e5;
2794
- function ba(e, t) {
2795
- U(1, arguments);
2796
- var r = $(e), n = Pe(r, t).getTime() - ya(r, t).getTime();
2797
- return Math.round(n / Ca) + 1;
2782
+ var ma = 6048e5;
2783
+ function fa(e, t) {
2784
+ L(1, arguments);
2785
+ var r = $(e), n = Pe(r, t).getTime() - ha(r, t).getTime();
2786
+ return Math.round(n / ma) + 1;
2798
2787
  }
2799
2788
  var le = {
2800
2789
  am: "am",
@@ -2805,7 +2794,7 @@ var le = {
2805
2794
  afternoon: "afternoon",
2806
2795
  evening: "evening",
2807
2796
  night: "night"
2808
- }, xa = {
2797
+ }, pa = {
2809
2798
  // Era
2810
2799
  G: function(e, t, r) {
2811
2800
  var n = e.getUTCFullYear() > 0 ? 1 : 0;
@@ -2987,14 +2976,14 @@ var le = {
2987
2976
  },
2988
2977
  // Local week of year
2989
2978
  w: function(e, t, r, n) {
2990
- var o = ba(e, n);
2979
+ var o = fa(e, n);
2991
2980
  return t === "wo" ? r.ordinalNumber(o, {
2992
2981
  unit: "week"
2993
2982
  }) : b(o, t.length);
2994
2983
  },
2995
2984
  // ISO week of year
2996
2985
  I: function(e, t, r) {
2997
- var n = wa(e);
2986
+ var n = da(e);
2998
2987
  return t === "Io" ? r.ordinalNumber(n, {
2999
2988
  unit: "week"
3000
2989
  }) : b(n, t.length);
@@ -3007,7 +2996,7 @@ var le = {
3007
2996
  },
3008
2997
  // Day of year
3009
2998
  D: function(e, t, r) {
3010
- var n = pa(e);
2999
+ var n = ca(e);
3011
3000
  return t === "Do" ? r.ordinalNumber(n, {
3012
3001
  unit: "dayOfYear"
3013
3002
  }) : b(n, t.length);
@@ -3345,7 +3334,7 @@ function at(e, t) {
3345
3334
  var r = e > 0 ? "-" : "+", n = Math.abs(e), o = Math.floor(n / 60), a = n % 60;
3346
3335
  if (a === 0)
3347
3336
  return r + String(o);
3348
- var i = t || "";
3337
+ var i = t;
3349
3338
  return r + String(o) + i + b(a, 2);
3350
3339
  }
3351
3340
  function st(e, t) {
@@ -3401,7 +3390,7 @@ function _t(e, t) {
3401
3390
  });
3402
3391
  }
3403
3392
  }
3404
- function ka(e, t) {
3393
+ function va(e, t) {
3405
3394
  var r = e.match(/(P+)(p+)?/), n = r[1], o = r[2];
3406
3395
  if (!o)
3407
3396
  return it(e, t);
@@ -3431,15 +3420,15 @@ function ka(e, t) {
3431
3420
  }
3432
3421
  return a.replace("{{date}}", it(n, t)).replace("{{time}}", _t(o, t));
3433
3422
  }
3434
- var Sa = {
3423
+ var ga = {
3435
3424
  p: _t,
3436
- P: ka
3437
- }, Ta = ["D", "DD"], Pa = ["YY", "YYYY"];
3438
- function Ia(e) {
3439
- return Ta.indexOf(e) !== -1;
3425
+ P: va
3426
+ }, wa = ["D", "DD"], ya = ["YY", "YYYY"];
3427
+ function Ca(e) {
3428
+ return wa.indexOf(e) !== -1;
3440
3429
  }
3441
- function Oa(e) {
3442
- return Pa.indexOf(e) !== -1;
3430
+ function ba(e) {
3431
+ return ya.indexOf(e) !== -1;
3443
3432
  }
3444
3433
  function ct(e, t, r) {
3445
3434
  if (e === "YYYY")
@@ -3451,10 +3440,10 @@ function ct(e, t, r) {
3451
3440
  if (e === "DD")
3452
3441
  throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(r, "`; see: https://git.io/fxCyr"));
3453
3442
  }
3454
- var Da = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ea = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ma = /^'([^]*?)'?$/, Ra = /''/g, Ga = /[a-zA-Z]/;
3455
- function Wa(e, t, r) {
3456
- U(2, arguments);
3457
- var n = String(t), o = r || {}, a = o.locale || da, i = a.options && a.options.firstWeekContainsDate, c = i == null ? 1 : H(i), l = o.firstWeekContainsDate == null ? c : H(o.firstWeekContainsDate);
3443
+ var xa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ka = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Sa = /^'([^]*?)'?$/, Ta = /''/g, Pa = /[a-zA-Z]/;
3444
+ function Ia(e, t, r) {
3445
+ L(2, arguments);
3446
+ var n = String(t), o = {}, a = o.locale || aa, i = a.options && a.options.firstWeekContainsDate, c = i == null ? 1 : H(i), l = o.firstWeekContainsDate == null ? c : H(o.firstWeekContainsDate);
3458
3447
  if (!(l >= 1 && l <= 7))
3459
3448
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
3460
3449
  var u = a.options && a.options.weekStartsOn, d = u == null ? 0 : H(u), h = o.weekStartsOn == null ? d : H(o.weekStartsOn);
@@ -3467,37 +3456,37 @@ function Wa(e, t, r) {
3467
3456
  var f = $(e);
3468
3457
  if (!Po(f))
3469
3458
  throw new RangeError("Invalid time value");
3470
- var p = So(f), w = ha(f, p), m = {
3459
+ var p = So(f), w = sa(f, p), m = {
3471
3460
  firstWeekContainsDate: l,
3472
3461
  weekStartsOn: h,
3473
3462
  locale: a,
3474
3463
  _originalDate: f
3475
- }, v = n.match(Ea).map(function(g) {
3464
+ }, v = n.match(ka).map(function(g) {
3476
3465
  var C = g[0];
3477
3466
  if (C === "p" || C === "P") {
3478
- var k = Sa[C];
3467
+ var k = ga[C];
3479
3468
  return k(g, a.formatLong, m);
3480
3469
  }
3481
3470
  return g;
3482
- }).join("").match(Da).map(function(g) {
3471
+ }).join("").match(xa).map(function(g) {
3483
3472
  if (g === "''")
3484
3473
  return "'";
3485
3474
  var C = g[0];
3486
3475
  if (C === "'")
3487
- return Na(g);
3488
- var k = xa[C];
3476
+ return Oa(g);
3477
+ var k = pa[C];
3489
3478
  if (k)
3490
- return !o.useAdditionalWeekYearTokens && Oa(g) && ct(g, t, e), !o.useAdditionalDayOfYearTokens && Ia(g) && ct(g, t, e), k(w, g, a.localize, m);
3491
- if (C.match(Ga))
3479
+ return !o.useAdditionalWeekYearTokens && ba(g) && ct(g, t, e), !o.useAdditionalDayOfYearTokens && Ca(g) && ct(g, t, e), k(w, g, a.localize, m);
3480
+ if (C.match(Pa))
3492
3481
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + C + "`");
3493
3482
  return g;
3494
3483
  }).join("");
3495
3484
  return v;
3496
3485
  }
3497
- function Na(e) {
3498
- return e.match(Ma)[1].replace(Ra, "'");
3486
+ function Oa(e) {
3487
+ return e.match(Sa)[1].replace(Ta, "'");
3499
3488
  }
3500
- const La = () => [
3489
+ const Da = () => [
3501
3490
  {
3502
3491
  id: "123",
3503
3492
  active: !1,
@@ -3666,7 +3655,7 @@ const La = () => [
3666
3655
  numPassengers: 655,
3667
3656
  departure: E(/* @__PURE__ */ new Date(), 5)
3668
3657
  }
3669
- ], lt = (e, t, r) => e.map((n) => n.id === t ? { ...n, ...r } : n), hs = {
3658
+ ], lt = (e, t, r) => e.map((n) => n.id === t ? { ...n, ...r } : n), as = {
3670
3659
  keyResolver: (e) => e.id,
3671
3660
  showHeaderCheckbox: !0,
3672
3661
  showRowCheckbox: !0,
@@ -3677,7 +3666,7 @@ const La = () => [
3677
3666
  }),
3678
3667
  active: ce((e) => e.active, {
3679
3668
  disableGridCellFocus: !0,
3680
- renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(Ue, { value: e.active, ...t }) }),
3669
+ renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(Le, { value: e.active, ...t }) }),
3681
3670
  infoIconTooltipText: "Active means out on the sea."
3682
3671
  }),
3683
3672
  name: ce((e) => e.name, {
@@ -3700,12 +3689,12 @@ const La = () => [
3700
3689
  width: "140px"
3701
3690
  }),
3702
3691
  departure: ce((e) => e.departure, {
3703
- itemLabelFormatter: (e) => Wa(e, "yyyy-MM-dd"),
3692
+ itemLabelFormatter: (e) => Ia(e, "yyyy-MM-dd"),
3704
3693
  borderLeft: !0
3705
3694
  })
3706
3695
  },
3707
3696
  columnOrder: ["id", "active", "name", "ship", "numPassengers", "departure"]
3708
- }, ms = La(), fs = (e) => {
3697
+ }, ss = Da(), is = (e) => {
3709
3698
  const [t, r] = Se(e), n = P(
3710
3699
  (a, i) => {
3711
3700
  r(
@@ -3733,13 +3722,13 @@ const La = () => [
3733
3722
  };
3734
3723
  export {
3735
3724
  wt as CrudStatusIndicator,
3736
- ls as EditableTextCellWithCrudAndModified,
3725
+ rs as EditableTextCellWithCrudAndModified,
3737
3726
  gt as GridHooksContext,
3738
- ns as GridHooksTable,
3727
+ Qa as GridHooksTable,
3739
3728
  Sr as ModifiedField,
3740
- os as SmallTableCell,
3741
- as as SmallTableHead,
3742
- us as StandardTable,
3729
+ Xa as SmallTableCell,
3730
+ Ja as SmallTableHead,
3731
+ ns as StandardTable,
3743
3732
  It as StandardTableActionsContext,
3744
3733
  Xn as StandardTableCell,
3745
3734
  jn as StandardTableCellUi,
@@ -3747,21 +3736,21 @@ export {
3747
3736
  mo as StandardTableContent,
3748
3737
  bo as StandardTableHeadRow,
3749
3738
  Zn as StandardTableRow,
3750
- Ln as StandardTableRowCheckbox,
3739
+ Un as StandardTableRowCheckbox,
3751
3740
  ho as StandardTableRowList,
3752
3741
  Pt as StandardTableStateContext,
3753
3742
  Tt as StandardTableTableIdContext,
3754
3743
  Tr as TableCell,
3755
- ss as TableColumnGroupHead,
3744
+ Za as TableColumnGroupHead,
3756
3745
  Ye as TableHeadItem,
3757
- is as TableHeadRow,
3758
- cs as TableRow,
3746
+ es as TableHeadRow,
3747
+ ts as TableRow,
3759
3748
  Kn as TextCell,
3760
3749
  ce as createColumnConfig,
3761
- ds as createEditableTextCellWithStatus,
3762
- Ut as createGroupConfigAndIdsForRows,
3750
+ os as createEditableTextCellWithStatus,
3751
+ Lt as createGroupConfigAndIdsForRows,
3763
3752
  Zr as createInternalStandardTableActions,
3764
- La as createItemsMocks,
3753
+ Da as createItemsMocks,
3765
3754
  xo as createStandardEditableTextCell,
3766
3755
  Tn as createStandardTableActions,
3767
3756
  Dt as createStandardTableInitialState,
@@ -3772,11 +3761,11 @@ export {
3772
3761
  zn as formatColumnIdToHeaderCellLabel,
3773
3762
  Yn as formatValueLabel,
3774
3763
  Be as hasIndicatorContent,
3775
- ms as mockedItems,
3764
+ ss as mockedItems,
3776
3765
  Wn as multitypeComparator,
3777
3766
  lt as setListItemFields,
3778
3767
  bt as smallTableRowWidth,
3779
- hs as standardTableConfigForStories,
3768
+ as as standardTableConfigForStories,
3780
3769
  yt as tableBackgroundColorExpanded,
3781
3770
  Or as tableBackgroundHoverColorExpanded,
3782
3771
  ve as tableBorder,
@@ -3789,13 +3778,13 @@ export {
3789
3778
  Hn as useCellBackgroundByColumnId,
3790
3779
  ye as useColumnConfigById,
3791
3780
  Nn as useColumnValueResolver,
3792
- Lr as useEditableCell,
3781
+ Ur as useEditableCell,
3793
3782
  sn as useFirstColumnConfig,
3794
3783
  Oe as useGridCell,
3795
3784
  Qr as useGridNavigation,
3796
3785
  xt as useGridNavigationOptionsFromContext,
3797
3786
  cn as useLastColumnConfig,
3798
- fs as useListState,
3787
+ is as useListState,
3799
3788
  Pn as useLocalStateTableContext,
3800
3789
  Gr as useRevertableValue,
3801
3790
  Bn as useRowCheckbox,