@stenajs-webui/grid 21.24.2 → 21.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,26 +1,26 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._tableRow_1cphw_1:focus-within{background:var(--focus-within-background, var(--lhds-color-blue-50))}._standardTable_cqns6_1{--swui-standard-table-height: 40px;--swui-sticky-header-shadow: 2px 4px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-header-shadow-and-right: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-right);--swui-sticky-header-shadow-and-left: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-left);--swui-sticky-column-shadow-right: 4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-column-shadow-left: -4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-column-z-index: 20;--swui-sticky-head-z-index: 22;--swui-sticky-group-group-z-index: 25;--swui-sticky-group-header-z-index: 26;--swui-sticky-header-column-group-z-index: 30;--swui-sticky-column-group-label-z-index: 40;--swui-sticky-header-in-sticky-column-z-index: 50;--swui-sticky-popover-z-index: 60;--swui-expand-cell-width: 45px;--swui-checkbox-cell-width: 45px;--swui-expand-highlight-border-width: 2px;--current-row-height: var(--swui-standard-table-height);--current-left-offset: 0px;border-spacing:0}._standardTable_cqns6_1 td{border-top:1px solid var(--lhds-color-ui-300);padding:0}._standardTable_cqns6_1 th{padding:0}._standardTable_cqns6_1._relaxed_cqns6_38{--current-row-height: 48px}._standardTable_cqns6_1._condensed_cqns6_42{--current-row-height: 32px}._standardTable_cqns6_1._compact_cqns6_46{--current-row-height: 24px}._standardTableCell_1xzcm_1{outline:none}._textCell_1yv6v_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._summaryRow_12x8k_1 td{border-top:1px solid var(--lhds-color-ui-400)}._standardTableHeadTh_swsxb_8{height:1px}@-moz-document url-prefix(){._standardTableHeadTh_swsxb_8{height:100%}}")),document.head.appendChild(e)}}catch(s){console.error("vite-plugin-css-injected-by-js",s)}})();
2
- import { jsx as a, Fragment as E, jsxs as v } from "react/jsx-runtime";
2
+ import { jsx as a, Fragment as E, jsxs as C } from "react/jsx-runtime";
3
3
  import * as M from "react";
4
- import { useMemo as b, useRef as ue, useState as Se, useCallback as S, useEffect as mt, useContext as $, createContext as A, useReducer as Zt, useId as en } from "react";
5
- import { InputSpinner as We, Icon as J, stenaExclamationTriangle as Oe, stenaArrowRight as ft, stenaInfoCircle as tn, FlatButton as Ne, stenaDotsVertical as nn, stenaAngleDown as wt, stenaAngleRight as gt, ResultListBanner as rn, Banner as Ke } from "@stenajs-webui/elements";
4
+ import { useMemo as b, useRef as de, useState as Se, useCallback as S, useEffect as ft, useContext as $, createContext as A, useReducer as Zt, useId as en } from "react";
5
+ import { InputSpinner as We, Icon as J, stenaExclamationTriangle as Oe, stenaArrowRight as mt, stenaInfoCircle as tn, FlatButton as Ne, stenaDotsVertical as nn, stenaAngleDown as wt, stenaAngleRight as gt, ResultListBanner as rn, Banner as Ke } from "@stenajs-webui/elements";
6
6
  import { cssColor as V } from "@stenajs-webui/theme";
7
7
  import { Tooltip as be, Popover as on } from "@stenajs-webui/tooltip";
8
- import { Text as Z, Indent as W, Space as G, Row as T, Box as de, exhaustSwitchCaseElseThrow as sn, Heading as pt, booleanOrNumberToNumber as an, useArraySet as yt, useOnScreen as cn, Spacing as Me } from "@stenajs-webui/core";
9
- import { faSortAlphaDown as ln } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
10
- import { faSortAlphaUp as un } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
11
- import { faSortAmountDownAlt as dn } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
8
+ import { Text as Z, Indent as W, Space as G, Row as T, Box as le, exhaustSwitchCaseElseThrow as sn, Heading as pt, booleanOrNumberToNumber as an, useArraySet as yt, useOnScreen as cn, Spacing as Me } from "@stenajs-webui/core";
9
+ import { faSortAlphaDown as un } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
10
+ import { faSortAlphaUp as dn } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
11
+ import { faSortAmountDownAlt as ln } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
12
12
  import { faSortAmountUpAlt as hn } from "@fortawesome/free-solid-svg-icons/faSortAmountUpAlt";
13
- import { faSortNumericDown as mn } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
14
- import { faSortNumericUp as fn } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
13
+ import { faSortNumericDown as fn } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
14
+ import { faSortNumericUp as mn } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
15
15
  import bt from "classnames";
16
16
  import { TextInput as Ae, Checkbox as Be } from "@stenajs-webui/forms";
17
17
  import { useDispatch as wn, useSelector as Qe } from "react-redux";
18
- import { createSortOrderActions as gn, createSelectedIdsActions as Xe, createEntityActions as pn, createSortOrderReducerInitialState as yn, createSelectedIdsReducerInitialState as Ue, reducerIdGate as ke, createSortOrderReducer as bn, createSelectedIdsReducer as Je, createEntityReducer as vn, reducerIdGateAction as re } from "@stenajs-webui/redux";
19
- import { combineReducers as Cn } from "redux";
20
- import { LoadingScreen as xn, ErrorScreen as kn } from "@stenajs-webui/panels";
18
+ import { createSortOrderActions as gn, createSelectedIdsActions as Xe, createEntityActions as pn, createSortOrderReducerInitialState as yn, createSelectedIdsReducerInitialState as Ue, reducerIdGate as ve, createSortOrderReducer as bn, createSelectedIdsReducer as Je, createEntityReducer as Cn, reducerIdGateAction as re } from "@stenajs-webui/redux";
19
+ import { combineReducers as xn } from "redux";
20
+ import { LoadingScreen as kn, ErrorScreen as vn } from "@stenajs-webui/panels";
21
21
  import { compact as Sn, upperFirst as Pn, lowerCase as On } from "lodash-es";
22
22
  import In from "@emotion/styled";
23
- const vt = M.createContext({}), Zs = ({
23
+ const Ct = M.createContext({}), Zs = ({
24
24
  children: e,
25
25
  numCols: t,
26
26
  numRows: n,
@@ -31,11 +31,11 @@ const vt = M.createContext({}), Zs = ({
31
31
  () => ({ numCols: t, numRows: n, tableId: r, wrap: o }),
32
32
  [t, n, r, o]
33
33
  );
34
- return /* @__PURE__ */ a(vt.Provider, { value: s, children: e });
34
+ return /* @__PURE__ */ a(Ct.Provider, { value: s, children: e });
35
35
  }, Le = (e) => {
36
36
  const { loading: t, creating: n, deleting: r, updating: o, hasError: s } = e;
37
37
  return !!(t || n || r || o || s);
38
- }, Ct = ({ crudStatus: e }) => {
38
+ }, xt = ({ crudStatus: e }) => {
39
39
  if (!e || !Le(e))
40
40
  return null;
41
41
  const { errorMessage: t, hasError: n, loading: r, creating: o, deleting: s, updating: c } = e;
@@ -61,7 +61,7 @@ const vt = M.createContext({}), Zs = ({
61
61
  crudStatus: o
62
62
  }) => {
63
63
  const s = t && (r == null ? void 0 : r.modified) && (r == null ? void 0 : r.newValue) === "", c = o && Le(o), i = s || c;
64
- return /* @__PURE__ */ v(E, { children: [
64
+ return /* @__PURE__ */ C(E, { children: [
65
65
  /* @__PURE__ */ a(
66
66
  Z,
67
67
  {
@@ -70,8 +70,8 @@ const vt = M.createContext({}), Zs = ({
70
70
  children: n
71
71
  }
72
72
  ),
73
- (r == null ? void 0 : r.newValue) !== void 0 && /* @__PURE__ */ v(E, { children: [
74
- /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(J, { icon: ft, size: 12 }) }),
73
+ (r == null ? void 0 : r.newValue) !== void 0 && /* @__PURE__ */ C(E, { children: [
74
+ /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(J, { icon: mt, size: 12 }) }),
75
75
  /* @__PURE__ */ a(Z, { color: "var(--swui-primary-action-color)", variant: "bold", children: r.newValue })
76
76
  ] }),
77
77
  i && /* @__PURE__ */ a(G, {}),
@@ -82,7 +82,7 @@ const vt = M.createContext({}), Zs = ({
82
82
  color: V("--lhds-color-orange-600"),
83
83
  size: 14
84
84
  }
85
- ) }) : /* @__PURE__ */ a(Ct, { crudStatus: o })
85
+ ) }) : /* @__PURE__ */ a(xt, { crudStatus: o })
86
86
  ] });
87
87
  }, Dn = ({
88
88
  alignItems: e = "center",
@@ -100,7 +100,7 @@ const vt = M.createContext({}), Zs = ({
100
100
  indent: r,
101
101
  ...o
102
102
  }
103
- ), En = "var(--lhds-color-ui-300)", Mn = "var(--lhds-color-blue-500)", xt = "var(--lhds-color-blue-50)", Rn = "var(--lhds-color-blue-100)", pe = `1px solid ${En}`, Gn = "1px solid transparent", Fe = "var(--swui-expand-highlight-border-width) solid transparent", kt = `var(--swui-expand-highlight-border-width) solid ${Mn}`, He = "40px", Ye = "40px", St = "40px", ea = (e) => /* @__PURE__ */ a(
103
+ ), En = "var(--lhds-color-ui-300)", Mn = "var(--lhds-color-blue-500)", kt = "var(--lhds-color-blue-50)", Rn = "var(--lhds-color-blue-100)", pe = `1px solid ${En}`, Gn = "1px solid transparent", Fe = "var(--swui-expand-highlight-border-width) solid transparent", vt = `var(--swui-expand-highlight-border-width) solid ${Mn}`, He = "40px", Ye = "40px", St = "40px", ea = (e) => /* @__PURE__ */ a(
104
104
  Dn,
105
105
  {
106
106
  width: St,
@@ -110,7 +110,7 @@ const vt = M.createContext({}), Zs = ({
110
110
  ), Ze = ({
111
111
  iconVariant: e = "amount",
112
112
  direction: t
113
- }) => /* @__PURE__ */ a(de, { width: "14px", children: /* @__PURE__ */ a(
113
+ }) => /* @__PURE__ */ a(le, { width: "14px", children: /* @__PURE__ */ a(
114
114
  J,
115
115
  {
116
116
  size: 14,
@@ -120,11 +120,11 @@ const vt = M.createContext({}), Zs = ({
120
120
  ) }), Wn = (e, t) => {
121
121
  switch (t) {
122
122
  case "alpha":
123
- return e === "up" ? un : ln;
123
+ return e === "up" ? dn : un;
124
124
  case "numeric":
125
- return e === "up" ? fn : mn;
125
+ return e === "up" ? mn : fn;
126
126
  case "amount":
127
- return e === "up" ? hn : dn;
127
+ return e === "up" ? hn : ln;
128
128
  default:
129
129
  return sn(t);
130
130
  }
@@ -138,38 +138,38 @@ const vt = M.createContext({}), Zs = ({
138
138
  popoverContent: s,
139
139
  loading: c,
140
140
  infoIconTooltipAppendTo: i,
141
- infoIconTooltipText: l,
141
+ infoIconTooltipText: u,
142
142
  infoIconTooltipZIndex: h,
143
- overflow: u = "hidden",
144
- alignRight: m,
143
+ overflow: d = "hidden",
144
+ alignRight: f,
145
145
  sortOrderIconVariant: g,
146
- ...f
146
+ ...m
147
147
  }) => {
148
- const w = ue(null), d = n ? { cursor: "pointer", userSelect: "none" } : void 0, p = !e && !t && !l;
149
- return /* @__PURE__ */ v(
148
+ const w = de(null), l = n ? { cursor: "pointer", userSelect: "none" } : void 0, p = !e && !t && !u;
149
+ return /* @__PURE__ */ C(
150
150
  T,
151
151
  {
152
152
  height: "100%",
153
153
  alignItems: "center",
154
154
  ref: w,
155
- overflow: u,
156
- justifyContent: m ? "flex-end" : "flex-start",
155
+ overflow: d,
156
+ justifyContent: f ? "flex-end" : "flex-start",
157
157
  borderTop: "2px solid transparent",
158
158
  borderBottom: `2px solid ${o ? V("--lhds-color-blue-500") : "transparent"}`,
159
- ...f,
159
+ ...m,
160
160
  children: [
161
- /* @__PURE__ */ v(T, { alignItems: "center", indent: !0, children: [
162
- !t && m && /* @__PURE__ */ v(E, { children: [
161
+ /* @__PURE__ */ C(T, { alignItems: "center", indent: !0, children: [
162
+ !t && f && /* @__PURE__ */ C(E, { children: [
163
163
  /* @__PURE__ */ a(G, {}),
164
- /* @__PURE__ */ a(de, { width: "14px" }),
164
+ /* @__PURE__ */ a(le, { width: "14px" }),
165
165
  /* @__PURE__ */ a(G, { num: 0.5 })
166
166
  ] }),
167
- (r || e) && /* @__PURE__ */ v(T, { onClick: n, style: d, alignItems: "center", children: [
168
- r && /* @__PURE__ */ v(E, { children: [
167
+ (r || e) && /* @__PURE__ */ C(T, { onClick: n, style: l, alignItems: "center", children: [
168
+ r && /* @__PURE__ */ C(E, { children: [
169
169
  r,
170
170
  !p && /* @__PURE__ */ a(G, { num: 0.5 })
171
171
  ] }),
172
- t && m && /* @__PURE__ */ v(E, { children: [
172
+ t && f && /* @__PURE__ */ C(E, { children: [
173
173
  /* @__PURE__ */ a(G, {}),
174
174
  /* @__PURE__ */ a(
175
175
  Ze,
@@ -181,7 +181,7 @@ const vt = M.createContext({}), Zs = ({
181
181
  /* @__PURE__ */ a(G, { num: 0.5 })
182
182
  ] }),
183
183
  e && /* @__PURE__ */ a(pt, { variant: "h6", style: { textAlign: "left" }, children: e }),
184
- t && !m && /* @__PURE__ */ v(E, { children: [
184
+ t && !f && /* @__PURE__ */ C(E, { children: [
185
185
  /* @__PURE__ */ a(G, { num: 0.5 }),
186
186
  /* @__PURE__ */ a(
187
187
  Ze,
@@ -193,14 +193,14 @@ const vt = M.createContext({}), Zs = ({
193
193
  /* @__PURE__ */ a(G, {})
194
194
  ] })
195
195
  ] }),
196
- l && /* @__PURE__ */ v(E, { children: [
196
+ u && /* @__PURE__ */ C(E, { children: [
197
197
  /* @__PURE__ */ a(G, {}),
198
- /* @__PURE__ */ v(T, { onClick: (y) => y.stopPropagation(), children: [
198
+ /* @__PURE__ */ C(T, { onClick: (y) => y.stopPropagation(), children: [
199
199
  /* @__PURE__ */ a(
200
200
  be,
201
201
  {
202
202
  appendTo: i,
203
- label: l,
203
+ label: u,
204
204
  zIndex: h,
205
205
  children: /* @__PURE__ */ a(
206
206
  J,
@@ -232,9 +232,9 @@ const vt = M.createContext({}), Zs = ({
232
232
  children: s
233
233
  }
234
234
  ) : null }),
235
- !t && !m && /* @__PURE__ */ v(E, { children: [
235
+ !t && !f && /* @__PURE__ */ C(E, { children: [
236
236
  /* @__PURE__ */ a(G, {}),
237
- /* @__PURE__ */ a(de, { width: "14px" }),
237
+ /* @__PURE__ */ a(le, { width: "14px" }),
238
238
  /* @__PURE__ */ a(G, { num: 0.5 })
239
239
  ] })
240
240
  ]
@@ -254,7 +254,7 @@ const vt = M.createContext({}), Zs = ({
254
254
  width: n,
255
255
  indent: r = 1,
256
256
  height: o = Ye
257
- }) => /* @__PURE__ */ a(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ a(de, { indent: r, spacing: !0, children: /* @__PURE__ */ a(Z, { variant: "bold", children: e }) }) }), ra = M.memo(
257
+ }) => /* @__PURE__ */ a(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ a(le, { indent: r, spacing: !0, children: /* @__PURE__ */ a(Z, { variant: "bold", children: e }) }) }), ra = M.memo(
258
258
  ({ style: e, height: t = Ye, ...n }) => /* @__PURE__ */ a(T, { style: e, height: t, ...n })
259
259
  ), Nn = "_tableRow_1cphw_1", An = {
260
260
  tableRow: Nn
@@ -272,30 +272,30 @@ const vt = M.createContext({}), Zs = ({
272
272
  ...r
273
273
  }
274
274
  ), Bn = (e) => {
275
- const [t, n] = Se(e), r = ue(e), o = ue(e), s = S(
276
- (u) => {
277
- n(u), o.current = u;
275
+ const [t, n] = Se(e), r = de(e), o = de(e), s = S(
276
+ (d) => {
277
+ n(d), o.current = d;
278
278
  },
279
279
  [n, o]
280
280
  );
281
- mt(() => {
281
+ ft(() => {
282
282
  s(e);
283
283
  }, [s, e]);
284
284
  const c = S(() => {
285
285
  r && s(r.current);
286
286
  }, [s, r]), i = S(
287
- (u) => {
288
- r.current = t, u && s(u);
287
+ (d) => {
288
+ r.current = t, d && s(d);
289
289
  },
290
290
  [t, s]
291
- ), l = S(
292
- (u) => r.current = u,
291
+ ), u = S(
292
+ (d) => r.current = d,
293
293
  [r]
294
294
  ), h = S(() => o.current, [o]);
295
295
  return {
296
296
  value: t,
297
297
  setValue: s,
298
- setRevertValue: l,
298
+ setRevertValue: u,
299
299
  revert: c,
300
300
  commit: i,
301
301
  getValue: h
@@ -320,45 +320,45 @@ const vt = M.createContext({}), Zs = ({
320
320
  onStopEditing: s,
321
321
  transformEnteredValue: c = Fn
322
322
  }) => {
323
- const [i, l] = Se(!1), [h, u] = Se(
323
+ const [i, u] = Se(!1), [h, d] = Se(
324
324
  void 0
325
- ), m = Bn(e), { getValue: g, revert: f, setValue: w, setRevertValue: d } = m, p = S(
326
- (x) => {
327
- t && (w(e), d(e), l(!0), o && o(x));
325
+ ), f = Bn(e), { getValue: g, revert: m, setValue: w, setRevertValue: l } = f, p = S(
326
+ (k) => {
327
+ t && (w(e), l(e), u(!0), o && o(k));
328
328
  },
329
- [t, o, d, w, e]
329
+ [t, o, l, w, e]
330
330
  ), y = S(() => {
331
- t && (l(!1), s && s(), r && r(g()));
332
- }, [t, r, s, g, l]), k = S(() => {
333
- t && (l(!1), s && s(), f());
334
- }, [t, s, f, l]);
331
+ t && (u(!1), s && s(), r && r(g()));
332
+ }, [t, r, s, g, u]), v = S(() => {
333
+ t && (u(!1), s && s(), m());
334
+ }, [t, s, m, u]);
335
335
  return {
336
336
  onKeyDown: b(
337
337
  () => Vn(
338
338
  i,
339
339
  t,
340
340
  p,
341
- u,
341
+ d,
342
342
  n,
343
343
  c,
344
- m
344
+ f
345
345
  ),
346
346
  [
347
347
  i,
348
348
  t,
349
349
  p,
350
- u,
350
+ d,
351
351
  n,
352
352
  c,
353
- m
353
+ f
354
354
  ]
355
355
  ),
356
356
  isEditing: i,
357
357
  lastKeyEvent: h,
358
- revertableValue: m,
358
+ revertableValue: f,
359
359
  startEditing: p,
360
360
  stopEditing: y,
361
- stopEditingAndRevert: k,
361
+ stopEditingAndRevert: v,
362
362
  onDoubleClick: p
363
363
  };
364
364
  }, Yn = (e) => e === "all" || e === "numeric" || e === "alphanumeric", zn = (e) => e === "all" || e === "alphanumeric" || e === "letters", qn = (e) => !!e.match(/^[-+*<>]$/), _n = (e) => !!e.match(/^[a-zA-Z0-9]$/), jn = (e) => !isNaN(parseInt(e, 10)), Vn = (e, t, n, r, o, s, c) => (i) => {
@@ -366,8 +366,8 @@ const vt = M.createContext({}), Zs = ({
366
366
  if (i.key === "Enter" && t)
367
367
  r(void 0), n(), c.commit(), i.preventDefault(), i.stopPropagation();
368
368
  else if (t) {
369
- const l = Ln(i);
370
- (jn(i.key) && Yn(o) || _n(i.key) && zn(o) || qn(i.key)) && (n(l), r(l), c.commit(), c.setValue(s(l.key)), i.preventDefault(), i.stopPropagation());
369
+ const u = Ln(i);
370
+ (jn(i.key) && Yn(o) || _n(i.key) && zn(o) || qn(i.key)) && (n(u), r(u), c.commit(), c.setValue(s(u.key)), i.preventDefault(), i.stopPropagation());
371
371
  }
372
372
  }
373
373
  }, $n = (e, t, n, r) => {
@@ -412,7 +412,7 @@ const vt = M.createContext({}), Zs = ({
412
412
  throw new Error("numCols is required.");
413
413
  return e;
414
414
  }, Pt = (e) => {
415
- const t = $(vt);
415
+ const t = $(Ct);
416
416
  return b(
417
417
  () => Zn({
418
418
  ...t,
@@ -429,7 +429,7 @@ const vt = M.createContext({}), Zs = ({
429
429
  tableId: s,
430
430
  edgeMode: c,
431
431
  onCellMove: i,
432
- onCellNavigation: l
432
+ onCellNavigation: u
433
433
  } = Pt(e), h = b(
434
434
  () => tr(
435
435
  s,
@@ -439,7 +439,7 @@ const vt = M.createContext({}), Zs = ({
439
439
  o,
440
440
  c,
441
441
  i,
442
- l
442
+ u
443
443
  ),
444
444
  [
445
445
  s,
@@ -449,53 +449,53 @@ const vt = M.createContext({}), Zs = ({
449
449
  o,
450
450
  c,
451
451
  i,
452
- l
452
+ u
453
453
  ]
454
- ), u = b(
454
+ ), d = b(
455
455
  () => nr(h),
456
456
  [h]
457
- ), m = b(
457
+ ), f = b(
458
458
  () => Ot(s, t, n),
459
459
  [s, t, n]
460
460
  ), g = b(
461
461
  () => ({
462
462
  tabIndex: 0,
463
- onKeyDown: u,
464
- id: m
463
+ onKeyDown: d,
464
+ id: f
465
465
  }),
466
- [u, m]
466
+ [d, f]
467
467
  );
468
468
  return {
469
469
  focusOnCell: It,
470
470
  moveHandler: h,
471
471
  requiredProps: g
472
472
  };
473
- }, tr = (e, t, n, r, o, s, c, i) => (l) => {
473
+ }, tr = (e, t, n, r, o, s, c, i) => (u) => {
474
474
  const h = Xn(
475
475
  t,
476
476
  n,
477
477
  r,
478
478
  o,
479
- l,
479
+ u,
480
480
  s
481
- ), u = n !== h.colIndex, m = t !== h.rowIndex;
482
- (u || m) && (c && c({
483
- direction: l,
481
+ ), d = n !== h.colIndex, f = t !== h.rowIndex;
482
+ (d || f) && (c && c({
483
+ direction: u,
484
484
  fromRowIndex: t,
485
485
  fromColIndex: n,
486
486
  rowIndex: h.rowIndex,
487
487
  colIndex: h.colIndex,
488
- colDidChange: u,
489
- rowDidChange: m
488
+ colDidChange: d,
489
+ rowDidChange: f
490
490
  }), It(e, h)), i && i({
491
- direction: l,
491
+ direction: u,
492
492
  fromRowIndex: t,
493
493
  fromColIndex: n,
494
494
  rowIndex: h.rowIndex,
495
495
  colIndex: h.colIndex,
496
- colDidChange: u,
497
- rowDidChange: m,
498
- cellDidChange: u || m
496
+ colDidChange: d,
497
+ rowDidChange: f,
498
+ cellDidChange: d || f
499
499
  });
500
500
  }, Ot = (e, t, n) => Jn(`table-${e}-${t}-${n}`), nr = (e) => (t) => t.key === "ArrowLeft" ? (e("left"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowUp" ? (e("up"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowRight" ? (e("right"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowDown" ? (e("down"), t.preventDefault(), t.stopPropagation(), !0) : !1, It = (e, t) => {
501
501
  const n = document.getElementById(
@@ -513,30 +513,30 @@ const vt = M.createContext({}), Zs = ({
513
513
  o.startEditing(), r.focusOnCell(n, s);
514
514
  }, [o, r, n, s]), i = S(() => {
515
515
  o.stopEditing(), r.focusOnCell(n, s);
516
- }, [o, r, n, s]), l = S(() => {
516
+ }, [o, r, n, s]), u = S(() => {
517
517
  o.stopEditingAndRevert(), r.focusOnCell(n, s);
518
518
  }, [o, r, n, s]), h = S(
519
- (f) => {
520
- o.stopEditing(), r.moveHandler(f);
519
+ (m) => {
520
+ o.stopEditing(), r.moveHandler(m);
521
521
  },
522
522
  [o, r]
523
- ), u = S(
524
- (f) => {
525
- r.moveHandler(f);
523
+ ), d = S(
524
+ (m) => {
525
+ r.moveHandler(m);
526
526
  },
527
527
  [r]
528
- ), m = S(
529
- (f) => {
530
- o.isEditing || r.requiredProps.onKeyDown(f) || o.onKeyDown(f);
528
+ ), f = S(
529
+ (m) => {
530
+ o.isEditing || r.requiredProps.onKeyDown(m) || o.onKeyDown(m);
531
531
  },
532
532
  [o, r.requiredProps]
533
533
  ), g = b(
534
534
  () => ({
535
535
  ...r.requiredProps,
536
- onKeyDown: m,
536
+ onKeyDown: f,
537
537
  onDoubleClick: o.onDoubleClick
538
538
  }),
539
- [m, o.onDoubleClick, r.requiredProps]
539
+ [f, o.onDoubleClick, r.requiredProps]
540
540
  );
541
541
  return {
542
542
  isEditing: o.isEditing,
@@ -545,10 +545,10 @@ const vt = M.createContext({}), Zs = ({
545
545
  setEditorValue: o.revertableValue.setValue,
546
546
  revertEditorValue: o.revertableValue.revert,
547
547
  requiredProps: g,
548
- move: u,
548
+ move: d,
549
549
  startEditing: c,
550
550
  stopEditing: i,
551
- stopEditingAndRevert: l,
551
+ stopEditingAndRevert: u,
552
552
  stopEditingAndMove: h
553
553
  };
554
554
  }, sa = function({
@@ -559,27 +559,27 @@ const vt = M.createContext({}), Zs = ({
559
559
  rowIndent: s,
560
560
  crudStatusRedux: c,
561
561
  modifiedFieldsRedux: i,
562
- colIndex: l,
562
+ colIndex: u,
563
563
  rowIndex: h,
564
- numCols: u,
565
- numRows: m,
564
+ numCols: d,
565
+ numRows: f,
566
566
  warningOnEmpty: g
567
567
  }) {
568
- const f = wn(), w = Qe(
568
+ const m = wn(), w = Qe(
569
569
  i.selectors.getState
570
- ), d = Qe(c.selectors.getState), p = w.entities[r], y = d.entities[r], k = S(
570
+ ), l = Qe(c.selectors.getState), p = w.entities[r], y = l.entities[r], v = S(
571
571
  (F = "") => {
572
- f(F === n ? i.actions.clearEntity(r) : i.actions.setEntity({
572
+ m(F === n ? i.actions.clearEntity(r) : i.actions.setEntity({
573
573
  id: r,
574
574
  originalValue: n,
575
575
  newValue: F,
576
576
  modified: !0
577
577
  }));
578
578
  },
579
- [f, r, i.actions, n]
579
+ [m, r, i.actions, n]
580
580
  ), {
581
581
  isEditing: O,
582
- stopEditing: x,
582
+ stopEditing: k,
583
583
  editorValue: R,
584
584
  setEditorValue: P,
585
585
  stopEditingAndRevert: B,
@@ -588,16 +588,16 @@ const vt = M.createContext({}), Zs = ({
588
588
  requiredProps: { onKeyDown: z, ...X }
589
589
  } = Ie(n, {
590
590
  rowIndex: h,
591
- colIndex: l,
592
- numCols: u,
593
- numRows: m,
591
+ colIndex: u,
592
+ numCols: d,
593
+ numRows: f,
594
594
  tableId: "serviceManningMatrixTable",
595
- onChange: k,
595
+ onChange: v,
596
596
  isEditable: o,
597
597
  allowedInputType: t
598
598
  }), q = S(
599
599
  (F) => {
600
- F.key === "Delete" ? (f(i.actions.clearEntity(r)), f(
600
+ F.key === "Delete" ? (m(i.actions.clearEntity(r)), m(
601
601
  c.actions.setEntityFields(r, {
602
602
  hasError: !1,
603
603
  errorMessage: void 0
@@ -607,12 +607,12 @@ const vt = M.createContext({}), Zs = ({
607
607
  [
608
608
  z,
609
609
  r,
610
- f,
610
+ m,
611
611
  i.actions,
612
612
  c.actions
613
613
  ]
614
614
  );
615
- return /* @__PURE__ */ v(
615
+ return /* @__PURE__ */ C(
616
616
  T,
617
617
  {
618
618
  height: He,
@@ -640,13 +640,13 @@ const vt = M.createContext({}), Zs = ({
640
640
  {
641
641
  onValueChange: P,
642
642
  value: R,
643
- onDone: x,
643
+ onDone: k,
644
644
  onEsc: B,
645
645
  autoFocus: !0,
646
646
  selectAllOnMount: !Y,
647
647
  onMove: L
648
648
  }
649
- ) : /* @__PURE__ */ v(E, { children: [
649
+ ) : /* @__PURE__ */ C(E, { children: [
650
650
  /* @__PURE__ */ a(
651
651
  Z,
652
652
  {
@@ -655,8 +655,8 @@ const vt = M.createContext({}), Zs = ({
655
655
  children: n
656
656
  }
657
657
  ),
658
- (p == null ? void 0 : p.newValue) !== void 0 && /* @__PURE__ */ v(E, { children: [
659
- /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(J, { icon: ft, size: 12 }) }),
658
+ (p == null ? void 0 : p.newValue) !== void 0 && /* @__PURE__ */ C(E, { children: [
659
+ /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(J, { icon: mt, size: 12 }) }),
660
660
  /* @__PURE__ */ a(
661
661
  Z,
662
662
  {
@@ -674,7 +674,7 @@ const vt = M.createContext({}), Zs = ({
674
674
  color: "var(--ui-alert1)",
675
675
  size: 14
676
676
  }
677
- ) }) : /* @__PURE__ */ a(Ct, { crudStatus: y })
677
+ ) }) : /* @__PURE__ */ a(xt, { crudStatus: y })
678
678
  ] }) })
679
679
  }
680
680
  ),
@@ -695,26 +695,26 @@ const vt = M.createContext({}), Zs = ({
695
695
  expandedRows: Ue(r),
696
696
  fields: { lastSelectedId: void 0 }
697
697
  }), or = (e, t) => {
698
- const n = ke(
698
+ const n = ve(
699
699
  j(e, "sortOrder"),
700
700
  bn(t == null ? void 0 : t.sortOrder)
701
- ), r = ke(
701
+ ), r = ve(
702
702
  j(e, "selectedIds"),
703
703
  Je(t == null ? void 0 : t.selectedIds)
704
- ), o = ke(
704
+ ), o = ve(
705
705
  j(e, "expandedRows"),
706
706
  Je(t == null ? void 0 : t.expandedRows)
707
- ), s = ke(
707
+ ), s = ve(
708
708
  j(e, "fields"),
709
- vn((t == null ? void 0 : t.fields) ?? {})
709
+ Cn((t == null ? void 0 : t.fields) ?? {})
710
710
  );
711
- return Cn({
711
+ return xn({
712
712
  sortOrder: n,
713
713
  selectedIds: r,
714
714
  expandedRows: o,
715
715
  fields: s
716
716
  });
717
- }, qe = () => $(Tt), I = () => $(Mt), se = () => $(Dt), ve = () => $(Et), Gt = A([]), ee = () => $(
717
+ }, qe = () => $(Tt), I = () => $(Mt), se = () => $(Dt), Ce = () => $(Et), Gt = A([]), ee = () => $(
718
718
  Gt
719
719
  ), Wt = () => {
720
720
  const e = I(), t = ee();
@@ -723,7 +723,7 @@ const vt = M.createContext({}), Zs = ({
723
723
  () => t.map((r) => r.groupConfig.columnOrder.length).reduce((r, o) => r + o, 0),
724
724
  [t]
725
725
  );
726
- }, Nt = A(void 0), sr = () => $(Nt), At = A(void 0), ar = () => $(At), cr = A(void 0), ir = A(!1), lr = A("standard"), Bt = A({}), _e = () => $(Bt), Lt = A(0), je = () => $(Lt), Ft = (e, t, n) => e ? Sn(
726
+ }, Nt = A(void 0), sr = () => $(Nt), At = A(void 0), ar = () => $(At), cr = A(void 0), ir = A(!1), ur = A("standard"), Bt = A({}), _e = () => $(Bt), Lt = A(0), je = () => $(Lt), Ft = (e, t, n) => e ? Sn(
727
727
  (t == null ? void 0 : t.map((r) => {
728
728
  const o = e == null ? void 0 : e[r];
729
729
  return {
@@ -752,16 +752,16 @@ const vt = M.createContext({}), Zs = ({
752
752
  }, Te = (e, t, n) => {
753
753
  if (!(e === 0 || t !== 0) && n)
754
754
  return n === !0 ? pe : n;
755
- }, Ce = (e) => {
755
+ }, xe = (e) => {
756
756
  const { columns: t } = I(), n = t[e];
757
757
  if (!n)
758
758
  throw new Error("No config for column with id=" + e);
759
759
  return n;
760
- }, ur = () => {
760
+ }, dr = () => {
761
761
  var n, r, o;
762
762
  const e = I(), t = (o = (r = (n = ee()) == null ? void 0 : n[0]) == null ? void 0 : r.groupConfig.columnOrder) == null ? void 0 : o[0];
763
763
  return t ? e.columns[t] : void 0;
764
- }, dr = () => {
764
+ }, lr = () => {
765
765
  const e = I(), t = ee(), n = t[t.length - 1], r = (n == null ? void 0 : n.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1]) ?? void 0;
766
766
  return r ? e.columns[r] : void 0;
767
767
  }, hr = function({
@@ -772,7 +772,7 @@ const vt = M.createContext({}), Zs = ({
772
772
  isFirstGroup: s,
773
773
  isLastGroup: c
774
774
  }) {
775
- const { label: i, render: l, contentLeft: h, contentRight: u, loading: m, error: g } = n, { width: f, minWidth: w, zIndex: d, borderLeft: p } = Ce(t), y = I(), { stickyHeader: k, headerRowOffsetTop: O } = y, x = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, R = mr(r, p), P = s && (x === "first" || x === "both"), B = c && (x === "last" || x === "both"), L = P || B || k, Y = P || B;
775
+ const { label: i, render: u, contentLeft: h, contentRight: d, loading: f, error: g } = n, { width: m, minWidth: w, zIndex: l, borderLeft: p } = xe(t), y = I(), { stickyHeader: v, headerRowOffsetTop: O } = y, k = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, R = fr(r, p), P = s && (k === "first" || k === "both"), B = c && (k === "last" || k === "both"), L = P || B || v, Y = P || B;
776
776
  return /* @__PURE__ */ a(
777
777
  "th",
778
778
  {
@@ -780,29 +780,29 @@ const vt = M.createContext({}), Zs = ({
780
780
  style: {
781
781
  position: L ? "sticky" : void 0,
782
782
  height: "var(--current-row-height)",
783
- width: f,
784
- minWidth: w ?? f ?? "20px",
783
+ width: m,
784
+ minWidth: w ?? m ?? "20px",
785
785
  background: L ? "white" : "transparent",
786
786
  left: P ? "var(--current-left-offset)" : void 0,
787
787
  right: B ? "0px" : void 0,
788
- top: k ? O ?? "0px" : void 0,
788
+ top: v ? O ?? "0px" : void 0,
789
789
  borderLeft: R,
790
- zIndex: k && Y ? "var(--swui-sticky-column-group-label-z-index)" : Y ? "var(--swui-sticky-group-group-z-index)" : k ? d ?? "var(--swui-sticky-header-column-group-z-index)" : d ?? 1,
790
+ zIndex: v && Y ? "var(--swui-sticky-column-group-label-z-index)" : Y ? "var(--swui-sticky-group-group-z-index)" : v ? l ?? "var(--swui-sticky-header-column-group-z-index)" : l ?? 1,
791
791
  boxShadow: P ? "var(--swui-sticky-column-shadow-right)" : B ? "var(--swui-sticky-column-shadow-left)" : void 0
792
792
  },
793
- children: /* @__PURE__ */ a(T, { alignItems: "center", children: /* @__PURE__ */ v(E, { children: [
794
- h && /* @__PURE__ */ v(E, { children: [
793
+ children: /* @__PURE__ */ a(T, { alignItems: "center", children: /* @__PURE__ */ C(E, { children: [
794
+ h && /* @__PURE__ */ C(E, { children: [
795
795
  /* @__PURE__ */ a(G, {}),
796
796
  h,
797
797
  /* @__PURE__ */ a(G, { num: 0.5 })
798
798
  ] }),
799
- l ? l(n) : /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(pt, { variant: "h5", whiteSpace: "nowrap", children: i }) }),
800
- u && /* @__PURE__ */ v(E, { children: [
799
+ u ? u(n) : /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(pt, { variant: "h5", whiteSpace: "nowrap", children: i }) }),
800
+ d && /* @__PURE__ */ C(E, { children: [
801
801
  /* @__PURE__ */ a(G, { num: 0.5 }),
802
- u
802
+ d
803
803
  ] }),
804
- (g || m) && /* @__PURE__ */ a(W, {}),
805
- m ? /* @__PURE__ */ a(We, {}) : g ? /* @__PURE__ */ a(be, { label: g, placement: "bottom", children: /* @__PURE__ */ a(
804
+ (g || f) && /* @__PURE__ */ a(W, {}),
805
+ f ? /* @__PURE__ */ a(We, {}) : g ? /* @__PURE__ */ a(be, { label: g, placement: "bottom", children: /* @__PURE__ */ a(
806
806
  J,
807
807
  {
808
808
  icon: Oe,
@@ -813,12 +813,12 @@ const vt = M.createContext({}), Zs = ({
813
813
  ] }) })
814
814
  }
815
815
  );
816
- }, mr = (e, t) => {
816
+ }, fr = (e, t) => {
817
817
  if (e)
818
818
  return e;
819
819
  if (t)
820
820
  return "1px solid transparent";
821
- }, fr = (e, t, n, r) => ({
821
+ }, mr = (e, t, n, r) => ({
822
822
  top: e ? wr(e, n) : void 0,
823
823
  background: e || t ? "white" : void 0,
824
824
  position: e || t ? "sticky" : void 0,
@@ -839,16 +839,16 @@ const vt = M.createContext({}), Zs = ({
839
839
  enableExpandCollapse: s,
840
840
  rowIndent: c,
841
841
  zIndex: i,
842
- stickyHeader: l,
842
+ stickyHeader: u,
843
843
  stickyCheckboxColumn: h,
844
- headerRowOffsetTop: u
845
- } = r, m = fr(
846
- l,
847
- h,
844
+ headerRowOffsetTop: d
845
+ } = r, f = mr(
848
846
  u,
847
+ h,
848
+ d,
849
849
  i
850
- ), g = l ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
851
- return /* @__PURE__ */ v(
850
+ ), g = u ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
851
+ return /* @__PURE__ */ C(
852
852
  "tr",
853
853
  {
854
854
  style: {
@@ -856,12 +856,12 @@ const vt = M.createContext({}), Zs = ({
856
856
  borderLeft: Fe
857
857
  },
858
858
  children: [
859
- c && /* @__PURE__ */ a("th", { style: m }),
859
+ c && /* @__PURE__ */ a("th", { style: f }),
860
860
  s && /* @__PURE__ */ a(
861
861
  "th",
862
862
  {
863
863
  style: {
864
- ...m,
864
+ ...f,
865
865
  width: "var(--swui-expand-cell-width)",
866
866
  left: h ? "0px" : void 0,
867
867
  zIndex: g
@@ -872,30 +872,30 @@ const vt = M.createContext({}), Zs = ({
872
872
  "th",
873
873
  {
874
874
  style: {
875
- ...m,
875
+ ...f,
876
876
  left: h && s ? "var(--swui-expand-cell-width)" : h ? "0px" : void 0,
877
877
  zIndex: g
878
878
  }
879
879
  }
880
880
  ),
881
- n.map(({ groupConfig: f, groupId: w }, d) => /* @__PURE__ */ a(
881
+ n.map(({ groupConfig: m, groupId: w }, l) => /* @__PURE__ */ a(
882
882
  hr,
883
883
  {
884
- isFirstGroup: d === 0,
885
- isLastGroup: d === n.length - 1,
886
- groupConfig: f,
887
- columnId: f.columnOrder[0],
888
- colSpan: f.columnOrder.length,
884
+ isFirstGroup: l === 0,
885
+ isLastGroup: l === n.length - 1,
886
+ groupConfig: m,
887
+ columnId: m.columnOrder[0],
888
+ colSpan: m.columnOrder.length,
889
889
  borderFromGroup: Te(
890
- d,
890
+ l,
891
891
  0,
892
- f.borderLeft
892
+ m.borderLeft
893
893
  )
894
894
  },
895
895
  w
896
896
  )),
897
- c && /* @__PURE__ */ a("th", { style: m }),
898
- /* @__PURE__ */ a("th", { style: m })
897
+ c && /* @__PURE__ */ a("th", { style: f }),
898
+ /* @__PURE__ */ a("th", { style: f })
899
899
  ]
900
900
  }
901
901
  );
@@ -920,11 +920,11 @@ const vt = M.createContext({}), Zs = ({
920
920
  }), Yt = () => $(
921
921
  Ht
922
922
  ), br = (e) => {
923
- "columnGroupOrder" in e && (vr(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && tt(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && tt(
923
+ "columnGroupOrder" in e && (Cr(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && tt(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && tt(
924
924
  e,
925
925
  e.columnGroupOrder.length - 1
926
926
  ));
927
- }, vr = (e) => {
927
+ }, Cr = (e) => {
928
928
  Object.keys(e.columns).forEach((n) => {
929
929
  const r = e.columns[n];
930
930
  if ("sticky" in r && r.sticky)
@@ -949,9 +949,9 @@ const vt = M.createContext({}), Zs = ({
949
949
  "All columns in sticky column group must have width set."
950
950
  );
951
951
  });
952
- }, Cr = (e) => {
952
+ }, xr = (e) => {
953
953
  const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ? nt(
954
- kr(e),
954
+ vr(e),
955
955
  e.columns,
956
956
  !0
957
957
  ) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ? nt(
@@ -969,10 +969,10 @@ const vt = M.createContext({}), Zs = ({
969
969
  ];
970
970
  for (let s = 0; s < e.length; s++) {
971
971
  const c = e[s], i = t == null ? void 0 : t[c];
972
- r[c] = xr(o), o.push((i == null ? void 0 : i.width) ?? "0px");
972
+ r[c] = kr(o), o.push((i == null ? void 0 : i.width) ?? "0px");
973
973
  }
974
974
  return r;
975
- }, xr = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", kr = (e) => {
975
+ }, kr = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", vr = (e) => {
976
976
  var r, o;
977
977
  const t = (r = e.columnGroupOrder) == null ? void 0 : r[0];
978
978
  if (!t)
@@ -1000,16 +1000,16 @@ const vt = M.createContext({}), Zs = ({
1000
1000
  isLastColumnInFirstGroup: !1
1001
1001
  }, n;
1002
1002
  }, {}), Ir = (e) => {
1003
- const t = {}, n = e.columnGroupOrder, r = Cr(e), o = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", s = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
1003
+ const t = {}, n = e.columnGroupOrder, r = xr(e), o = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", s = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
1004
1004
  return n.forEach((c, i) => {
1005
1005
  const h = e.columnGroups[c].columnOrder;
1006
- h.forEach((u, m) => {
1007
- const g = i === 0, f = i === n.length - 1, w = g && o, d = f && s, p = m === 0 && f, y = m === h.length - 1 && g;
1008
- t[u] = {
1009
- sticky: w || d,
1010
- left: w ? r[u] : void 0,
1011
- right: d ? r[u] : void 0,
1012
- type: w ? "first-group" : d ? "last-group" : void 0,
1006
+ h.forEach((d, f) => {
1007
+ const g = i === 0, m = i === n.length - 1, w = g && o, l = m && s, p = f === 0 && m, y = f === h.length - 1 && g;
1008
+ t[d] = {
1009
+ sticky: w || l,
1010
+ left: w ? r[d] : void 0,
1011
+ right: l ? r[d] : void 0,
1012
+ type: w ? "first-group" : l ? "last-group" : void 0,
1013
1013
  isFirstColumnInLastGroup: p,
1014
1014
  isLastColumnInFirstGroup: y
1015
1015
  };
@@ -1074,14 +1074,14 @@ const vt = M.createContext({}), Zs = ({
1074
1074
  }, 0) : ((t = e.columnOrder) == null ? void 0 : t.length) ?? 0;
1075
1075
  }, Rr = () => {
1076
1076
  const e = I(), t = ee(), n = e.enableExpandCollapse || e.showRowCheckbox, r = an(e.rowIndent);
1077
- return /* @__PURE__ */ v(E, { children: [
1077
+ return /* @__PURE__ */ C(E, { children: [
1078
1078
  r ? /* @__PURE__ */ a("colgroup", { children: /* @__PURE__ */ a(
1079
1079
  "col",
1080
1080
  {
1081
1081
  style: { width: `calc(var(--swui-metrics-indent) * ${r})` }
1082
1082
  }
1083
1083
  ) }) : null,
1084
- n && /* @__PURE__ */ v("colgroup", { children: [
1084
+ n && /* @__PURE__ */ C("colgroup", { children: [
1085
1085
  e.enableExpandCollapse && /* @__PURE__ */ a("col", { style: { width: "var(--swui-expand-cell-width)" } }),
1086
1086
  e.showRowCheckbox && /* @__PURE__ */ a("col", { style: { width: "var(--swui-checkbox-cell-width)" } })
1087
1087
  ] }),
@@ -1123,19 +1123,19 @@ const vt = M.createContext({}), Zs = ({
1123
1123
  numRows: s,
1124
1124
  disabled: c,
1125
1125
  onValueChangeAndShift: i,
1126
- shiftPressedRef: l
1126
+ shiftPressedRef: u
1127
1127
  }) {
1128
- const h = Wt(), u = qe(), m = Ie(!!t, {
1128
+ const h = Wt(), d = qe(), f = Ie(!!t, {
1129
1129
  colIndex: r,
1130
1130
  numCols: h,
1131
1131
  numRows: s,
1132
1132
  rowIndex: o,
1133
- tableId: u
1134
- }), { requiredProps: g } = m, f = S(
1133
+ tableId: d
1134
+ }), { requiredProps: g } = f, m = S(
1135
1135
  (w) => {
1136
- l.current ? i == null || i(w) : n == null || n(w);
1136
+ u.current ? i == null || i(w) : n == null || n(w);
1137
1137
  },
1138
- [n, i, l]
1138
+ [n, i, u]
1139
1139
  );
1140
1140
  return /* @__PURE__ */ a(
1141
1141
  Be,
@@ -1143,7 +1143,7 @@ const vt = M.createContext({}), Zs = ({
1143
1143
  size: "small",
1144
1144
  disabled: c,
1145
1145
  value: t,
1146
- onValueChange: f,
1146
+ onValueChange: m,
1147
1147
  ...g
1148
1148
  }
1149
1149
  );
@@ -1163,40 +1163,40 @@ const vt = M.createContext({}), Zs = ({
1163
1163
  } = se(), {
1164
1164
  actions: { setSelectedIds: s, setLastSelectedId: c },
1165
1165
  dispatch: i
1166
- } = ve(), l = b(() => n(e), [n, e]), h = b(
1167
- () => r.includes(l),
1168
- [r, l]
1169
- ), { toggle: u, addMultiple: m, removeMultiple: g } = yt(
1166
+ } = Ce(), u = b(() => n(e), [n, e]), h = b(
1167
+ () => r.includes(u),
1168
+ [r, u]
1169
+ ), { toggle: d, addMultiple: f, removeMultiple: g } = yt(
1170
1170
  r,
1171
- (d) => i(s(d))
1172
- ), f = S(() => {
1171
+ (l) => i(s(l))
1172
+ ), m = S(() => {
1173
1173
  if (t && o) {
1174
- const d = Hr(
1174
+ const l = Hr(
1175
1175
  t,
1176
1176
  o,
1177
- l
1177
+ u
1178
1178
  );
1179
- d != null && d.length ? h ? g(d) : m(d) : u(l);
1179
+ l != null && l.length ? h ? g(l) : f(l) : d(u);
1180
1180
  } else
1181
- u(l);
1182
- i(c(l));
1181
+ d(u);
1182
+ i(c(u));
1183
1183
  }, [
1184
1184
  t,
1185
1185
  o,
1186
1186
  i,
1187
1187
  c,
1188
- l,
1188
+ u,
1189
1189
  h,
1190
1190
  g,
1191
- m,
1192
- u
1191
+ f,
1192
+ d
1193
1193
  ]), w = S(() => {
1194
- u(l), i(c(l));
1195
- }, [u, l, i, c]);
1194
+ d(u), i(c(u));
1195
+ }, [d, u, i, c]);
1196
1196
  return {
1197
1197
  isSelected: h,
1198
1198
  toggleSelected: w,
1199
- shiftAndToggleSelected: f
1199
+ shiftAndToggleSelected: m
1200
1200
  };
1201
1201
  }, $e = (e) => {
1202
1202
  const { keyResolver: t } = I(), {
@@ -1204,7 +1204,7 @@ const vt = M.createContext({}), Zs = ({
1204
1204
  } = se(), {
1205
1205
  actions: { expandByIds: r },
1206
1206
  dispatch: o
1207
- } = ve(), s = b(() => t(e), [t, e]), c = b(
1207
+ } = Ce(), s = b(() => t(e), [t, e]), c = b(
1208
1208
  () => n.includes(s),
1209
1209
  [n, s]
1210
1210
  ), { toggle: i } = yt(
@@ -1229,12 +1229,12 @@ const vt = M.createContext({}), Zs = ({
1229
1229
  numRows: n,
1230
1230
  rowIndex: r,
1231
1231
  tableId: s
1232
- }), { requiredProps: i } = c, { expandCollapseDisableResolver: l } = I(), { toggleRowExpanded: h, isExpanded: u } = $e(e), m = b(() => l ? l(e) : !1, [l, e]);
1233
- return /* @__PURE__ */ a(T, { alignItems: "center", justifyContent: "center", indent: !0, children: !m && /* @__PURE__ */ a(
1232
+ }), { requiredProps: i } = c, { expandCollapseDisableResolver: u } = I(), { toggleRowExpanded: h, isExpanded: d } = $e(e), f = b(() => u ? u(e) : !1, [u, e]);
1233
+ return /* @__PURE__ */ a(T, { alignItems: "center", justifyContent: "center", indent: !0, children: !f && /* @__PURE__ */ a(
1234
1234
  Ne,
1235
1235
  {
1236
1236
  size: "small",
1237
- leftIcon: u ? wt : gt,
1237
+ leftIcon: d ? wt : gt,
1238
1238
  onClick: h,
1239
1239
  ...i
1240
1240
  }
@@ -1243,7 +1243,7 @@ const vt = M.createContext({}), Zs = ({
1243
1243
  () => qr(e, t, n),
1244
1244
  [e, t, n]
1245
1245
  ), _r = (e, t) => {
1246
- const { background: n, backgroundResolver: r } = Ce(e);
1246
+ const { background: n, backgroundResolver: r } = xe(e);
1247
1247
  return zt(r, t, n);
1248
1248
  }, ot = (e, t) => {
1249
1249
  const { background: n, backgroundResolver: r } = e ?? {};
@@ -1259,13 +1259,13 @@ const vt = M.createContext({}), Zs = ({
1259
1259
  isEditing: s,
1260
1260
  justifyContent: c,
1261
1261
  onKeyDown: i,
1262
- width: l,
1262
+ width: u,
1263
1263
  minWidth: h
1264
1264
  }) {
1265
1265
  return /* @__PURE__ */ a(
1266
1266
  T,
1267
1267
  {
1268
- width: l,
1268
+ width: u,
1269
1269
  minWidth: h,
1270
1270
  height: "inherit",
1271
1271
  background: r,
@@ -1311,17 +1311,17 @@ const vt = M.createContext({}), Zs = ({
1311
1311
  disableBorderLeft: i
1312
1312
  }) {
1313
1313
  const {
1314
- keyResolver: l,
1314
+ keyResolver: u,
1315
1315
  enableGridCell: h,
1316
- gridCellOptions: u
1317
- } = I(), m = se().selectedIds.selectedIds, g = qe(), f = sr(), { numNavigableColumns: w } = Yt(), d = _e(), p = b(() => l(n), [n, l]), y = b(() => m.indexOf(p) >= 0, [p, m]), { defaultCellRenderer: k = Zr, defaultTextSize: O } = I(), {
1318
- itemValueResolver: x,
1316
+ gridCellOptions: d
1317
+ } = I(), f = se().selectedIds.selectedIds, g = qe(), m = sr(), { numNavigableColumns: w } = Yt(), l = _e(), p = b(() => u(n), [n, u]), y = b(() => f.indexOf(p) >= 0, [p, f]), { defaultCellRenderer: v = Zr, defaultTextSize: O } = I(), {
1318
+ itemValueResolver: k,
1319
1319
  itemLabelFormatter: R,
1320
1320
  width: P,
1321
1321
  minWidth: B,
1322
1322
  justifyContentCell: L = "flex-start",
1323
1323
  borderLeft: Y,
1324
- renderCell: z = k,
1324
+ renderCell: z = v,
1325
1325
  gridCellOptions: X,
1326
1326
  isEditable: q,
1327
1327
  onChange: F,
@@ -1329,27 +1329,27 @@ const vt = M.createContext({}), Zs = ({
1329
1329
  disableGridCell: he,
1330
1330
  disableGridCellFocus: te,
1331
1331
  zIndex: ae
1332
- } = Ce(t), _ = b(() => x ? x(n) : t in n ? n[t] : "", [x, n, t]), me = b(
1332
+ } = xe(t), _ = b(() => k ? k(n) : t in n ? n[t] : "", [k, n, t]), fe = b(
1333
1333
  () => R ? R(_, n) : jr(_),
1334
1334
  [_, R, n]
1335
- ), ce = typeof q == "boolean" ? q : q ? q(n) : void 0, fe = S(
1336
- (xe) => {
1337
- K == null || K(xe, { columnId: t, item: n }), f == null || f(xe, { columnId: t, item: n });
1335
+ ), ce = typeof q == "boolean" ? q : q ? q(n) : void 0, me = S(
1336
+ (ke) => {
1337
+ K == null || K(ke, { columnId: t, item: n }), m == null || m(ke, { columnId: t, item: n });
1338
1338
  },
1339
- [f, t, n, K]
1340
- ), ne = Ie(me, {
1339
+ [m, t, n, K]
1340
+ ), ne = Ie(fe, {
1341
1341
  colIndex: r,
1342
1342
  rowIndex: o,
1343
1343
  numRows: s,
1344
1344
  numCols: w,
1345
1345
  tableId: g,
1346
1346
  isEditable: ce,
1347
- onChange: F ? (xe) => F(n, xe) : void 0,
1348
- ...u,
1347
+ onChange: F ? (ke) => F(n, ke) : void 0,
1348
+ ...d,
1349
1349
  ...X
1350
- }), N = d[t], Qt = _r(t, n) ?? "inherit", Ee = N.sticky ? ae ?? "var(--swui-sticky-column-z-index)" : ae ?? 1, Xt = b(
1350
+ }), N = l[t], Qt = _r(t, n) ?? "inherit", Ee = N.sticky ? ae ?? "var(--swui-sticky-column-z-index)" : ae ?? 1, Xt = b(
1351
1351
  () => z({
1352
- label: me,
1352
+ label: fe,
1353
1353
  value: _,
1354
1354
  item: n,
1355
1355
  gridCell: ne,
@@ -1361,7 +1361,7 @@ const vt = M.createContext({}), Zs = ({
1361
1361
  }),
1362
1362
  [
1363
1363
  z,
1364
- me,
1364
+ fe,
1365
1365
  _,
1366
1366
  n,
1367
1367
  ne,
@@ -1398,7 +1398,7 @@ const vt = M.createContext({}), Zs = ({
1398
1398
  width: P,
1399
1399
  minWidth: B,
1400
1400
  justifyContent: L,
1401
- onKeyDown: fe,
1401
+ onKeyDown: me,
1402
1402
  children: Xt
1403
1403
  }
1404
1404
  )
@@ -1410,8 +1410,8 @@ const vt = M.createContext({}), Zs = ({
1410
1410
  "tr",
1411
1411
  {
1412
1412
  style: {
1413
- borderLeft: kt,
1414
- background: xt
1413
+ borderLeft: vt,
1414
+ background: kt
1415
1415
  },
1416
1416
  children: /* @__PURE__ */ a("td", { colSpan: c, children: n(t, { onRequestCollapse: s }) })
1417
1417
  }
@@ -1434,45 +1434,45 @@ const vt = M.createContext({}), Zs = ({
1434
1434
  alwaysVisible: c,
1435
1435
  shiftPressedRef: i
1436
1436
  }) {
1437
- const l = ue(null), h = je(), { stickyCheckboxColumn: u } = I(), m = ee(), { columnIndexPerColumnId: g } = Yt(), {
1438
- showRowCheckbox: f,
1437
+ const u = de(null), h = je(), { stickyCheckboxColumn: d } = I(), f = ee(), { columnIndexPerColumnId: g } = Yt(), {
1438
+ showRowCheckbox: m,
1439
1439
  rowBackgroundResolver: w,
1440
- checkboxDisabledResolver: d,
1440
+ checkboxDisabledResolver: l,
1441
1441
  enableGridCell: p,
1442
1442
  rowIndent: y,
1443
- enableExpandCollapse: k
1444
- } = I(), { isExpanded: O } = $e(t), { isSelected: x, toggleSelected: R, shiftAndToggleSelected: P } = Yr(
1443
+ enableExpandCollapse: v
1444
+ } = I(), { isExpanded: O } = $e(t), { isSelected: k, toggleSelected: R, shiftAndToggleSelected: P } = Yr(
1445
1445
  t,
1446
1446
  n
1447
- ), B = cn(l, {
1447
+ ), B = cn(u, {
1448
1448
  rootMargin: "400px 0px 400px 0px",
1449
1449
  threshold: 0
1450
1450
  }), L = b(
1451
- () => w == null ? void 0 : w(t, x),
1452
- [x, t, w]
1451
+ () => w == null ? void 0 : w(t, k),
1452
+ [k, t, w]
1453
1453
  ), Y = ro(
1454
1454
  L,
1455
- x,
1455
+ k,
1456
1456
  O
1457
1457
  ), z = oo(
1458
1458
  L,
1459
- x,
1459
+ k,
1460
1460
  O
1461
1461
  ), X = so(
1462
1462
  L,
1463
- x,
1463
+ k,
1464
1464
  z
1465
1465
  ), q = b(
1466
- () => d == null ? void 0 : d(t),
1467
- [t, d]
1468
- ), F = ur(), K = ot(
1466
+ () => l == null ? void 0 : l(t),
1467
+ [t, l]
1468
+ ), F = dr(), K = ot(
1469
1469
  F,
1470
1470
  t
1471
- ), he = dr(), te = ot(
1471
+ ), he = lr(), te = ot(
1472
1472
  he,
1473
1473
  t
1474
1474
  ), ae = b(
1475
- () => /* @__PURE__ */ a(E, { children: /* @__PURE__ */ v(E, { children: [
1475
+ () => /* @__PURE__ */ a(E, { children: /* @__PURE__ */ C(E, { children: [
1476
1476
  y && /* @__PURE__ */ a(
1477
1477
  "td",
1478
1478
  {
@@ -1482,15 +1482,15 @@ const vt = M.createContext({}), Zs = ({
1482
1482
  children: /* @__PURE__ */ a(W, { num: y })
1483
1483
  }
1484
1484
  ),
1485
- k && /* @__PURE__ */ a(
1485
+ v && /* @__PURE__ */ a(
1486
1486
  "td",
1487
1487
  {
1488
1488
  style: {
1489
- background: u ? "inherit" : void 0,
1490
- position: u ? "sticky" : void 0,
1491
- left: u ? "0px" : void 0,
1492
- boxShadow: u ? "var(--swui-sticky-column-shadow-right)" : void 0,
1493
- zIndex: u ? "var(--swui-sticky-column-z-index)" : void 0
1489
+ background: d ? "inherit" : void 0,
1490
+ position: d ? "sticky" : void 0,
1491
+ left: d ? "0px" : void 0,
1492
+ boxShadow: d ? "var(--swui-sticky-column-shadow-right)" : void 0,
1493
+ zIndex: d ? "var(--swui-sticky-column-z-index)" : void 0
1494
1494
  },
1495
1495
  children: /* @__PURE__ */ a(
1496
1496
  T,
@@ -1512,16 +1512,16 @@ const vt = M.createContext({}), Zs = ({
1512
1512
  )
1513
1513
  }
1514
1514
  ),
1515
- f && /* @__PURE__ */ a(
1515
+ m && /* @__PURE__ */ a(
1516
1516
  "td",
1517
1517
  {
1518
1518
  style: {
1519
- background: u ? "inherit" : void 0,
1520
- position: u ? "sticky" : void 0,
1521
- left: k && u ? "var(--swui-expand-cell-width)" : u ? "0px" : void 0,
1519
+ background: d ? "inherit" : void 0,
1520
+ position: d ? "sticky" : void 0,
1521
+ left: v && d ? "var(--swui-expand-cell-width)" : d ? "0px" : void 0,
1522
1522
  textAlign: "center",
1523
- boxShadow: u ? "var(--swui-sticky-column-shadow-right)" : void 0,
1524
- zIndex: u ? "var(--swui-sticky-column-z-index)" : void 0
1523
+ boxShadow: d ? "var(--swui-sticky-column-shadow-right)" : void 0,
1524
+ zIndex: d ? "var(--swui-sticky-column-z-index)" : void 0
1525
1525
  },
1526
1526
  children: /* @__PURE__ */ a(
1527
1527
  T,
@@ -1534,10 +1534,10 @@ const vt = M.createContext({}), Zs = ({
1534
1534
  Fr,
1535
1535
  {
1536
1536
  disabled: q,
1537
- value: x,
1537
+ value: k,
1538
1538
  onValueChange: R,
1539
1539
  onValueChangeAndShift: P,
1540
- colIndex: s + (k ? 1 : 0),
1540
+ colIndex: s + (v ? 1 : 0),
1541
1541
  rowIndex: r,
1542
1542
  numRows: o,
1543
1543
  shiftPressedRef: i
@@ -1547,12 +1547,12 @@ const vt = M.createContext({}), Zs = ({
1547
1547
  )
1548
1548
  }
1549
1549
  ),
1550
- m.map(({ groupConfig: _, groupId: me }, ce) => /* @__PURE__ */ a(M.Fragment, { children: _.columnOrder.map((fe, ne) => /* @__PURE__ */ a(
1550
+ f.map(({ groupConfig: _, groupId: fe }, ce) => /* @__PURE__ */ a(M.Fragment, { children: _.columnOrder.map((me, ne) => /* @__PURE__ */ a(
1551
1551
  eo,
1552
1552
  {
1553
- columnId: fe,
1553
+ columnId: me,
1554
1554
  item: t,
1555
- colIndex: s + g[fe],
1555
+ colIndex: s + g[me],
1556
1556
  rowIndex: r,
1557
1557
  numRows: o,
1558
1558
  borderFromGroup: Te(
@@ -1562,8 +1562,8 @@ const vt = M.createContext({}), Zs = ({
1562
1562
  ),
1563
1563
  disableBorderLeft: ce === 0 && ne === 0
1564
1564
  },
1565
- fe
1566
- )) }, me)),
1565
+ me
1566
+ )) }, fe)),
1567
1567
  y && /* @__PURE__ */ a(
1568
1568
  "td",
1569
1569
  {
@@ -1579,11 +1579,11 @@ const vt = M.createContext({}), Zs = ({
1579
1579
  s,
1580
1580
  g,
1581
1581
  q,
1582
- k,
1582
+ v,
1583
1583
  p,
1584
1584
  K,
1585
- m,
1586
- x,
1585
+ f,
1586
+ k,
1587
1587
  t,
1588
1588
  te,
1589
1589
  o,
@@ -1591,20 +1591,20 @@ const vt = M.createContext({}), Zs = ({
1591
1591
  r,
1592
1592
  P,
1593
1593
  i,
1594
- f,
1595
- u,
1594
+ m,
1595
+ d,
1596
1596
  R
1597
1597
  ]
1598
1598
  );
1599
- return /* @__PURE__ */ v(E, { children: [
1599
+ return /* @__PURE__ */ C(E, { children: [
1600
1600
  /* @__PURE__ */ a(
1601
1601
  qt,
1602
1602
  {
1603
1603
  hoverBackground: z,
1604
1604
  background: Y,
1605
1605
  focusBackground: X,
1606
- borderLeft: O ? kt : Fe,
1607
- ref: l,
1606
+ borderLeft: O ? vt : Fe,
1607
+ ref: u,
1608
1608
  children: B || c || O ? ae : /* @__PURE__ */ a(
1609
1609
  "td",
1610
1610
  {
@@ -1616,14 +1616,14 @@ const vt = M.createContext({}), Zs = ({
1616
1616
  ),
1617
1617
  /* @__PURE__ */ a(to, { item: t })
1618
1618
  ] });
1619
- }), ro = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ? V("--lhds-color-blue-100") : n ? xt : "white", oo = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.hoverBackground : t ? V("--lhds-color-blue-200") : n ? Rn : V("--lhds-color-ui-200"), so = (e, t, n) => {
1619
+ }), ro = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ? V("--lhds-color-blue-100") : n ? kt : "white", oo = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.hoverBackground : t ? V("--lhds-color-blue-200") : n ? Rn : V("--lhds-color-ui-200"), so = (e, t, n) => {
1620
1620
  if (t)
1621
1621
  return V("--lhds-color-blue-200");
1622
1622
  if (e)
1623
1623
  return n;
1624
- }, ao = (e) => Object.values(e).some((t) => co(t)), co = (e) => !!(e.renderSummaryCell || e.summaryText), io = "_summaryRow_12x8k_1", lo = {
1624
+ }, ao = (e) => Object.values(e).some((t) => co(t)), co = (e) => !!(e.renderSummaryCell || e.summaryText), io = "_summaryRow_12x8k_1", uo = {
1625
1625
  summaryRow: io
1626
- }, uo = M.memo(function({
1626
+ }, lo = M.memo(function({
1627
1627
  columnId: t,
1628
1628
  items: n,
1629
1629
  disableBorderLeft: r,
@@ -1632,19 +1632,19 @@ const vt = M.createContext({}), Zs = ({
1632
1632
  }) {
1633
1633
  const c = _e(), {
1634
1634
  renderSummaryCell: i,
1635
- summaryText: l,
1635
+ summaryText: u,
1636
1636
  borderLeft: h,
1637
- zIndex: u,
1638
- width: m,
1637
+ zIndex: d,
1638
+ width: f,
1639
1639
  minWidth: g,
1640
- justifyContentCell: f
1641
- } = Ce(t), w = Ve(
1640
+ justifyContentCell: m
1641
+ } = xe(t), w = Ve(
1642
1642
  o,
1643
1643
  r,
1644
1644
  h
1645
- ), d = c[t], p = d.sticky ? u ?? "var(--swui-sticky-column-z-index)" : u ?? 1, y = d.sticky && d.type === "last-group" && d.isFirstColumnInLastGroup || d.sticky && d.type === "column" && d.right ? "var(--swui-sticky-column-shadow-left)" : d.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, k = b(() => l == null ? void 0 : l({ items: n }), [n, l]), O = b(
1646
- () => i == null ? void 0 : i({ items: n, text: k }),
1647
- [n, i, k]
1645
+ ), l = c[t], p = l.sticky ? d ?? "var(--swui-sticky-column-z-index)" : d ?? 1, y = l.sticky && l.type === "last-group" && l.isFirstColumnInLastGroup || l.sticky && l.type === "column" && l.right ? "var(--swui-sticky-column-shadow-left)" : l.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, v = b(() => u == null ? void 0 : u({ items: n }), [n, u]), O = b(
1646
+ () => i == null ? void 0 : i({ items: n, text: v }),
1647
+ [n, i, v]
1648
1648
  );
1649
1649
  return /* @__PURE__ */ a(
1650
1650
  "td",
@@ -1652,9 +1652,9 @@ const vt = M.createContext({}), Zs = ({
1652
1652
  colSpan: s,
1653
1653
  style: {
1654
1654
  borderLeft: w,
1655
- position: d.sticky ? "sticky" : void 0,
1656
- left: d.sticky ? d.left : void 0,
1657
- right: d.sticky ? d.right : void 0,
1655
+ position: l.sticky ? "sticky" : void 0,
1656
+ left: l.sticky ? l.left : void 0,
1657
+ right: l.sticky ? l.right : void 0,
1658
1658
  boxShadow: y,
1659
1659
  zIndex: p,
1660
1660
  height: "var(--current-row-height)"
@@ -1662,13 +1662,13 @@ const vt = M.createContext({}), Zs = ({
1662
1662
  children: /* @__PURE__ */ a(
1663
1663
  T,
1664
1664
  {
1665
- width: m,
1665
+ width: f,
1666
1666
  minWidth: g,
1667
1667
  height: "inherit",
1668
1668
  overflow: "hidden",
1669
- justifyContent: f,
1669
+ justifyContent: m,
1670
1670
  alignItems: "center",
1671
- children: i ? O : /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(Z, { variant: "bold", children: k }) })
1671
+ children: i ? O : /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(Z, { variant: "bold", children: v }) })
1672
1672
  }
1673
1673
  )
1674
1674
  }
@@ -1685,21 +1685,21 @@ const vt = M.createContext({}), Zs = ({
1685
1685
  c > 1 && (r += c - 1);
1686
1686
  }
1687
1687
  return n;
1688
- }, mo = M.memo(
1688
+ }, fo = M.memo(
1689
1689
  function({
1690
1690
  items: t
1691
1691
  }) {
1692
1692
  const n = ee(), { showRowCheckbox: r, enableExpandCollapse: o, columns: s, rowIndent: c } = I();
1693
- return /* @__PURE__ */ v("tr", { className: lo.summaryRow, children: [
1693
+ return /* @__PURE__ */ C("tr", { className: uo.summaryRow, children: [
1694
1694
  c && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(W, { num: c }) }),
1695
1695
  o && /* @__PURE__ */ a("td", {}),
1696
1696
  r && /* @__PURE__ */ a("td", {}),
1697
- n.map(({ groupConfig: i, groupId: l }, h) => /* @__PURE__ */ a(M.Fragment, { children: ho(i.columnOrder, s).map(
1698
- ({ columnId: u, colSpan: m }, g) => /* @__PURE__ */ a(
1699
- uo,
1697
+ n.map(({ groupConfig: i, groupId: u }, h) => /* @__PURE__ */ a(M.Fragment, { children: ho(i.columnOrder, s).map(
1698
+ ({ columnId: d, colSpan: f }, g) => /* @__PURE__ */ a(
1699
+ lo,
1700
1700
  {
1701
- colSpan: m,
1702
- columnId: u,
1701
+ colSpan: f,
1702
+ columnId: d,
1703
1703
  items: t,
1704
1704
  borderFromGroup: Te(
1705
1705
  h,
@@ -1708,70 +1708,70 @@ const vt = M.createContext({}), Zs = ({
1708
1708
  ),
1709
1709
  disableBorderLeft: h === 0 && g === 0
1710
1710
  },
1711
- u
1711
+ d
1712
1712
  )
1713
- ) }, l)),
1713
+ ) }, u)),
1714
1714
  c && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(W, { num: c }) }),
1715
1715
  /* @__PURE__ */ a("td", {})
1716
1716
  ] });
1717
1717
  }
1718
- ), fo = function({ items: t }) {
1718
+ ), mo = function({ items: t }) {
1719
1719
  const { columns: n } = I();
1720
- return b(() => ao(n), [n]) ? /* @__PURE__ */ a(mo, { items: t }) : null;
1720
+ return b(() => ao(n), [n]) ? /* @__PURE__ */ a(fo, { items: t }) : null;
1721
1721
  }, _t = (e) => (t) => e == null ? !0 : !e(t), wo = M.memo(function({
1722
1722
  items: t,
1723
1723
  colIndexOffset: n = 0,
1724
1724
  rowIndexOffset: r = 0
1725
1725
  }) {
1726
- const o = ue(0), s = ue(!1), {
1726
+ const o = de(0), s = de(!1), {
1727
1727
  keyResolver: c,
1728
1728
  disableInfiniteList: i,
1729
- checkboxDisabledResolver: l,
1729
+ checkboxDisabledResolver: u,
1730
1730
  enableExternalSorting: h
1731
1731
  } = I(), {
1732
- sortOrder: { sortBy: u, desc: m }
1733
- } = se(), g = Lr(u), f = b(() => {
1732
+ sortOrder: { sortBy: d, desc: f }
1733
+ } = se(), g = Lr(d), m = b(() => {
1734
1734
  if (h)
1735
1735
  return t ?? [];
1736
1736
  if (!t || !t.length)
1737
1737
  return [];
1738
1738
  if (!g)
1739
1739
  return t;
1740
- const d = [...t];
1741
- return d.sort(
1740
+ const l = [...t];
1741
+ return l.sort(
1742
1742
  (p, y) => Br(
1743
1743
  g(p),
1744
1744
  g(y)
1745
1745
  )
1746
- ), m && d.reverse(), i || o.current++, d;
1747
- }, [h, t, g, m, i]), w = b(
1748
- () => f.filter(_t(l)).map((d) => c(d)),
1749
- [f, l, c]
1746
+ ), f && l.reverse(), i || o.current++, l;
1747
+ }, [h, t, g, f, i]), w = b(
1748
+ () => m.filter(_t(u)).map((l) => c(l)),
1749
+ [m, u, c]
1750
1750
  );
1751
- return mt(() => {
1752
- const d = (y) => {
1751
+ return ft(() => {
1752
+ const l = (y) => {
1753
1753
  y.key === "Shift" && (s.current = !1);
1754
1754
  }, p = (y) => {
1755
1755
  y.key === "Shift" && (s.current = !0);
1756
1756
  };
1757
- return document.addEventListener("keyup", d), document.addEventListener("keydown", p), () => {
1758
- document.removeEventListener("keyup", d), document.removeEventListener("keydown", p);
1757
+ return document.addEventListener("keyup", l), document.addEventListener("keydown", p), () => {
1758
+ document.removeEventListener("keyup", l), document.removeEventListener("keydown", p);
1759
1759
  };
1760
- }, []), /* @__PURE__ */ v(M.Fragment, { children: [
1761
- f.map((d, p) => /* @__PURE__ */ a(
1760
+ }, []), /* @__PURE__ */ C(M.Fragment, { children: [
1761
+ m.map((l, p) => /* @__PURE__ */ a(
1762
1762
  no,
1763
1763
  {
1764
- alwaysVisible: i || f.length < 30,
1765
- item: d,
1764
+ alwaysVisible: i || m.length < 30,
1765
+ item: l,
1766
1766
  idListForEnabledItems: w,
1767
1767
  colIndexOffset: n,
1768
1768
  rowIndex: p + r,
1769
- numRows: f.length,
1769
+ numRows: m.length,
1770
1770
  shiftPressedRef: s
1771
1771
  },
1772
- c(d)
1772
+ c(l)
1773
1773
  )),
1774
- /* @__PURE__ */ a(fo, { items: f })
1774
+ /* @__PURE__ */ a(mo, { items: m })
1775
1775
  ] }, o.current);
1776
1776
  }), go = M.memo(function({
1777
1777
  error: t,
@@ -1781,39 +1781,39 @@ const vt = M.createContext({}), Zs = ({
1781
1781
  noItemsLabel: s = "There is no data available.",
1782
1782
  noItemsContentRight: c,
1783
1783
  noItemsContentBottom: i,
1784
- noItemsHeader: l,
1784
+ noItemsHeader: u,
1785
1785
  colIndexOffset: h,
1786
- rowIndexOffset: u,
1787
- variant: m,
1786
+ rowIndexOffset: d,
1787
+ variant: f,
1788
1788
  errorLabel: g,
1789
- renderExtraRowTop: f,
1789
+ renderExtraRowTop: m,
1790
1790
  renderExtraRowBottom: w
1791
1791
  }) {
1792
- const d = je();
1793
- return n ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: d, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(de, { alignItems: "center", children: /* @__PURE__ */ a(rn, { bannerState: n, variant: "error" }) }) }) }) }) }) : t || g ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: d, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(de, { alignItems: "center", children: /* @__PURE__ */ a(
1792
+ const l = je();
1793
+ return n ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: l, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(le, { alignItems: "center", children: /* @__PURE__ */ a(rn, { bannerState: n, variant: "error" }) }) }) }) }) }) : t || g ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: l, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(le, { alignItems: "center", children: /* @__PURE__ */ a(
1794
1794
  Ke,
1795
1795
  {
1796
1796
  headerText: (t ? t.message : g) ?? "Unknown error",
1797
1797
  variant: "error"
1798
1798
  }
1799
- ) }) }) }) }) }) : r ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: d, children: /* @__PURE__ */ a(Me, { num: 4, children: /* @__PURE__ */ a(xn, {}) }) }) }) }) : !o || !o.length ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: d, children: /* @__PURE__ */ a(T, { spacing: 4, justifyContent: "center", children: /* @__PURE__ */ a(
1799
+ ) }) }) }) }) }) : r ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: l, children: /* @__PURE__ */ a(Me, { num: 4, children: /* @__PURE__ */ a(kn, {}) }) }) }) }) : !o || !o.length ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: l, children: /* @__PURE__ */ a(T, { spacing: 4, justifyContent: "center", children: /* @__PURE__ */ a(
1800
1800
  Ke,
1801
1801
  {
1802
1802
  text: s,
1803
- headerText: l,
1803
+ headerText: u,
1804
1804
  contentRight: c,
1805
1805
  variant: "info",
1806
1806
  children: i
1807
1807
  }
1808
- ) }) }) }) }) : /* @__PURE__ */ v("tbody", { children: [
1809
- f == null ? void 0 : f(),
1808
+ ) }) }) }) }) : /* @__PURE__ */ C("tbody", { children: [
1809
+ m == null ? void 0 : m(),
1810
1810
  /* @__PURE__ */ a(
1811
1811
  wo,
1812
1812
  {
1813
- variant: m,
1813
+ variant: f,
1814
1814
  items: o,
1815
1815
  colIndexOffset: h,
1816
- rowIndexOffset: u
1816
+ rowIndexOffset: d
1817
1817
  }
1818
1818
  ),
1819
1819
  w == null ? void 0 : w()
@@ -1824,10 +1824,10 @@ const vt = M.createContext({}), Zs = ({
1824
1824
  } = se(), {
1825
1825
  actions: { setSelectedIds: o, clearSelection: s },
1826
1826
  dispatch: c
1827
- } = ve(), i = r.length === 0, l = e ? e.length > 0 && r.length === e.length : !1, h = S(() => {
1827
+ } = Ce(), i = r.length === 0, u = e ? e.length > 0 && r.length === e.length : !1, h = S(() => {
1828
1828
  e && c(
1829
1829
  i ? o(
1830
- e.filter(_t(n)).map((u) => t(u))
1830
+ e.filter(_t(n)).map((d) => t(d))
1831
1831
  ) : s()
1832
1832
  );
1833
1833
  }, [
@@ -1841,7 +1841,7 @@ const vt = M.createContext({}), Zs = ({
1841
1841
  ]);
1842
1842
  return {
1843
1843
  selectionIsEmpty: i,
1844
- allItemsAreSelected: l,
1844
+ allItemsAreSelected: u,
1845
1845
  onClickCheckbox: h
1846
1846
  };
1847
1847
  }, yo = (e) => {
@@ -1850,8 +1850,8 @@ const vt = M.createContext({}), Zs = ({
1850
1850
  } = se(), {
1851
1851
  actions: { collapseAll: r, expandByIds: o },
1852
1852
  dispatch: s
1853
- } = ve(), c = e ? e.length > 0 && n.length === e.length : !1, i = S(() => {
1854
- e && s(c ? r() : o(e.map((l) => t(l))));
1853
+ } = Ce(), c = e ? e.length > 0 && n.length === e.length : !1, i = S(() => {
1854
+ e && s(c ? r() : o(e.map((u) => t(u))));
1855
1855
  }, [
1856
1856
  c,
1857
1857
  r,
@@ -1865,7 +1865,7 @@ const vt = M.createContext({}), Zs = ({
1865
1865
  toggleExpanded: i
1866
1866
  };
1867
1867
  }, bo = (e) => {
1868
- const { dispatch: t, actions: n } = ve(), r = ar(), {
1868
+ const { dispatch: t, actions: n } = Ce(), r = ar(), {
1869
1869
  sortOrder: { desc: o, sortBy: s }
1870
1870
  } = se();
1871
1871
  return b(() => {
@@ -1880,9 +1880,9 @@ const vt = M.createContext({}), Zs = ({
1880
1880
  }
1881
1881
  };
1882
1882
  }, [e, s, o, t, n, r]);
1883
- }, vo = "_standardTableHeadTh_swsxb_8", Co = {
1884
- standardTableHeadTh: vo
1885
- }, xo = M.memo(
1883
+ }, Co = "_standardTableHeadTh_swsxb_8", xo = {
1884
+ standardTableHeadTh: Co
1885
+ }, ko = M.memo(
1886
1886
  function({
1887
1887
  columnId: t,
1888
1888
  borderFromGroup: n,
@@ -1893,16 +1893,16 @@ const vt = M.createContext({}), Zs = ({
1893
1893
  columnLabel: s,
1894
1894
  borderLeft: c,
1895
1895
  infoIconTooltipText: i,
1896
- background: l,
1896
+ background: u,
1897
1897
  sortOrderIconVariant: h,
1898
- width: u,
1899
- minWidth: m
1900
- } = Ce(t), {
1898
+ width: d,
1899
+ minWidth: f
1900
+ } = xe(t), {
1901
1901
  disableSorting: g,
1902
- infoIconTooltipAppendTo: f,
1902
+ infoIconTooltipAppendTo: m,
1903
1903
  infoIconTooltipZIndex: w,
1904
- sortOrderIconVariant: d
1905
- } = I(), p = _e(), { arrow: y, selected: k, onClickColumnHead: O } = bo(t), x = typeof s == "string" ? s : Vr(t), R = Ve(
1904
+ sortOrderIconVariant: l
1905
+ } = I(), p = _e(), { arrow: y, selected: v, onClickColumnHead: O } = bo(t), k = typeof s == "string" ? s : Vr(t), R = Ve(
1906
1906
  n,
1907
1907
  r,
1908
1908
  c
@@ -1910,53 +1910,53 @@ const vt = M.createContext({}), Zs = ({
1910
1910
  return /* @__PURE__ */ a(
1911
1911
  "th",
1912
1912
  {
1913
- className: Co.standardTableHeadTh,
1913
+ className: xo.standardTableHeadTh,
1914
1914
  style: {
1915
- background: l ?? "white",
1915
+ background: u ?? "white",
1916
1916
  borderLeft: R,
1917
1917
  position: P.sticky ? "sticky" : void 0,
1918
1918
  left: P.left,
1919
1919
  right: P.right,
1920
1920
  boxShadow: P.sticky && P.isFirstColumnInLastGroup && P.sticky && P.isFirstColumnInLastGroup ? "var(--swui-sticky-column-shadow-left)" : P.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0,
1921
1921
  zIndex: P.sticky ? "var(--swui-sticky-group-header-z-index)" : void 0,
1922
- width: u,
1923
- minWidth: m
1922
+ width: d,
1923
+ minWidth: f
1924
1924
  },
1925
1925
  children: /* @__PURE__ */ a(
1926
1926
  ze,
1927
1927
  {
1928
1928
  width: "inherit",
1929
1929
  minWidth: "inherit",
1930
- arrow: !g && x ? y : void 0,
1930
+ arrow: !g && k ? y : void 0,
1931
1931
  onClick: g ? void 0 : O,
1932
- label: x,
1933
- infoIconTooltipAppendTo: f,
1932
+ label: k,
1933
+ infoIconTooltipAppendTo: m,
1934
1934
  infoIconTooltipText: i,
1935
1935
  infoIconTooltipZIndex: w,
1936
1936
  alignRight: o === "flex-end",
1937
- sortOrderIconVariant: h ?? d,
1938
- selected: k,
1937
+ sortOrderIconVariant: h ?? l,
1938
+ selected: v,
1939
1939
  height: "100%"
1940
1940
  }
1941
1941
  )
1942
1942
  }
1943
1943
  );
1944
1944
  }
1945
- ), ko = M.memo(function({ items: t, height: n = He }) {
1945
+ ), vo = M.memo(function({ items: t, height: n = He }) {
1946
1946
  const r = ee(), {
1947
1947
  showHeaderCheckbox: o,
1948
1948
  showHeaderExpandCollapse: s,
1949
1949
  enableExpandCollapse: c,
1950
1950
  rowIndent: i,
1951
- stickyCheckboxColumn: l,
1951
+ stickyCheckboxColumn: u,
1952
1952
  showRowCheckbox: h
1953
- } = I(), { allItemsAreExpanded: u, toggleExpanded: m } = yo(t), { allItemsAreSelected: g, onClickCheckbox: f, selectionIsEmpty: w } = po(t), d = !t || t.length === 0, p = {
1954
- zIndex: l ? "var(--swui-sticky-group-header-z-index)" : void 0,
1955
- background: l ? "white" : void 0,
1956
- position: l ? "sticky" : void 0,
1957
- boxShadow: l ? "var(--swui-sticky-column-shadow-right)" : void 0
1953
+ } = I(), { allItemsAreExpanded: d, toggleExpanded: f } = yo(t), { allItemsAreSelected: g, onClickCheckbox: m, selectionIsEmpty: w } = po(t), l = !t || t.length === 0, p = {
1954
+ zIndex: u ? "var(--swui-sticky-group-header-z-index)" : void 0,
1955
+ background: u ? "white" : void 0,
1956
+ position: u ? "sticky" : void 0,
1957
+ boxShadow: u ? "var(--swui-sticky-column-shadow-right)" : void 0
1958
1958
  };
1959
- return /* @__PURE__ */ v(qt, { height: n, borderLeft: Fe, children: [
1959
+ return /* @__PURE__ */ C(qt, { height: n, borderLeft: Fe, children: [
1960
1960
  i && /* @__PURE__ */ a("th", { children: /* @__PURE__ */ a(T, { indent: i }) }),
1961
1961
  c && /* @__PURE__ */ a(
1962
1962
  "th",
@@ -1977,8 +1977,8 @@ const vt = M.createContext({}), Zs = ({
1977
1977
  Ne,
1978
1978
  {
1979
1979
  size: "small",
1980
- leftIcon: u ? wt : gt,
1981
- onClick: m
1980
+ leftIcon: d ? wt : gt,
1981
+ onClick: f
1982
1982
  }
1983
1983
  )
1984
1984
  }
@@ -1991,7 +1991,7 @@ const vt = M.createContext({}), Zs = ({
1991
1991
  style: {
1992
1992
  ...p,
1993
1993
  overflow: "hidden",
1994
- left: l && c ? "var(--swui-expand-cell-width)" : l ? "0px" : void 0
1994
+ left: u && c ? "var(--swui-expand-cell-width)" : u ? "0px" : void 0
1995
1995
  },
1996
1996
  children: /* @__PURE__ */ a(
1997
1997
  T,
@@ -2004,20 +2004,20 @@ const vt = M.createContext({}), Zs = ({
2004
2004
  Be,
2005
2005
  {
2006
2006
  size: "small",
2007
- disabled: d,
2007
+ disabled: l,
2008
2008
  value: g,
2009
2009
  indeterminate: !w && !g,
2010
- onValueChange: f
2010
+ onValueChange: m
2011
2011
  }
2012
2012
  )
2013
2013
  }
2014
2014
  )
2015
2015
  }
2016
2016
  ),
2017
- r.map(({ groupConfig: y, groupId: k }, O) => /* @__PURE__ */ a(M.Fragment, { children: y.columnOrder.map((x, R) => /* @__PURE__ */ a(
2018
- xo,
2017
+ r.map(({ groupConfig: y, groupId: v }, O) => /* @__PURE__ */ a(M.Fragment, { children: y.columnOrder.map((k, R) => /* @__PURE__ */ a(
2018
+ ko,
2019
2019
  {
2020
- columnId: x,
2020
+ columnId: k,
2021
2021
  borderFromGroup: Te(
2022
2022
  O,
2023
2023
  R,
@@ -2025,8 +2025,8 @@ const vt = M.createContext({}), Zs = ({
2025
2025
  ),
2026
2026
  disableBorderLeft: O === 0 && R === 0
2027
2027
  },
2028
- x
2029
- )) }, k)),
2028
+ k
2029
+ )) }, v)),
2030
2030
  i && /* @__PURE__ */ a("th", { children: /* @__PURE__ */ a(T, { indent: i }) }),
2031
2031
  /* @__PURE__ */ a("th", {})
2032
2032
  ] });
@@ -2038,21 +2038,21 @@ const vt = M.createContext({}), Zs = ({
2038
2038
  variant: s = "standard",
2039
2039
  onKeyDown: c,
2040
2040
  onSortOrderChange: i,
2041
- renderExtraHeadRows: l,
2041
+ renderExtraHeadRows: u,
2042
2042
  ...h
2043
2043
  }) {
2044
- const u = en(), {
2045
- initialSortOrderDesc: m,
2044
+ const d = en(), {
2045
+ initialSortOrderDesc: f,
2046
2046
  initialSortOrder: g,
2047
- enableExpandCollapse: f,
2047
+ enableExpandCollapse: m,
2048
2048
  stickyCheckboxColumn: w,
2049
- headerRowOffsetTop: d,
2049
+ headerRowOffsetTop: l,
2050
2050
  stickyHeader: p,
2051
2051
  zIndex: y
2052
- } = n, { tableContext: k } = Dr(
2053
- o ?? u,
2054
- Rt(g, m)
2055
- ), O = t || k, { state: x, actions: R, dispatch: P } = O, B = b(
2052
+ } = n, { tableContext: v } = Dr(
2053
+ o ?? d,
2054
+ Rt(g, f)
2055
+ ), O = t || v, { state: k, actions: R, dispatch: P } = O, B = b(
2056
2056
  () => ({
2057
2057
  actions: R,
2058
2058
  dispatch: P
@@ -2081,24 +2081,24 @@ const vt = M.createContext({}), Zs = ({
2081
2081
  }, [n]), ae = {
2082
2082
  background: p || w ? "white" : void 0,
2083
2083
  position: p || w ? "sticky" : void 0,
2084
- top: p || w ? d ?? 0 : void 0,
2084
+ top: p || w ? l ?? 0 : void 0,
2085
2085
  boxShadow: p && w ? "var(--swui-sticky-header-shadow-and-right)" : w ? "var(--swui-sticky-column-shadow-right)" : p ? "var(--swui-sticky-header-shadow)" : void 0,
2086
2086
  zIndex: p && w ? "var(--swui-sticky-header-in-sticky-column-z-index)" : w ? "var(--swui-sticky-group-header-z-index)" : p ? "var(--swui-sticky-head-z-index)" : y
2087
2087
  };
2088
- return te ? /* @__PURE__ */ a(kn, { text: te.message }) : /* @__PURE__ */ a(
2088
+ return te ? /* @__PURE__ */ a(vn, { text: te.message }) : /* @__PURE__ */ a(
2089
2089
  "table",
2090
2090
  {
2091
2091
  className: bt(rt.standardTable, rt[s]),
2092
2092
  style: {
2093
2093
  width: "100%",
2094
2094
  isolation: "isolate",
2095
- "--current-left-offset": f && w ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : w ? "var(--swui-checkbox-cell-width)" : f ? "var(--swui-expand-cell-width)" : "0px"
2095
+ "--current-left-offset": m && w ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : w ? "var(--swui-checkbox-cell-width)" : m ? "var(--swui-expand-cell-width)" : "0px"
2096
2096
  },
2097
- children: /* @__PURE__ */ a(Bt.Provider, { value: he, children: /* @__PURE__ */ a(Lt.Provider, { value: K, children: /* @__PURE__ */ a(lr.Provider, { value: s, children: /* @__PURE__ */ a(
2097
+ children: /* @__PURE__ */ a(Bt.Provider, { value: he, children: /* @__PURE__ */ a(Lt.Provider, { value: K, children: /* @__PURE__ */ a(ur.Provider, { value: s, children: /* @__PURE__ */ a(
2098
2098
  Tt.Provider,
2099
2099
  {
2100
- value: o ?? u,
2101
- children: /* @__PURE__ */ a(Dt.Provider, { value: x, children: /* @__PURE__ */ a(Et.Provider, { value: B, children: /* @__PURE__ */ a(Mt.Provider, { value: n, children: /* @__PURE__ */ a(
2100
+ value: o ?? d,
2101
+ children: /* @__PURE__ */ a(Dt.Provider, { value: k, children: /* @__PURE__ */ a(Et.Provider, { value: B, children: /* @__PURE__ */ a(Mt.Provider, { value: n, children: /* @__PURE__ */ a(
2102
2102
  Gt.Provider,
2103
2103
  {
2104
2104
  value: q,
@@ -2110,18 +2110,18 @@ const vt = M.createContext({}), Zs = ({
2110
2110
  ir.Provider,
2111
2111
  {
2112
2112
  value: L,
2113
- children: /* @__PURE__ */ v(
2113
+ children: /* @__PURE__ */ C(
2114
2114
  cr.Provider,
2115
2115
  {
2116
2116
  value: "columnGroupOrder" in n ? r ?? n.columnGroupOrder : r,
2117
2117
  children: [
2118
2118
  /* @__PURE__ */ a(Rr, {}),
2119
- /* @__PURE__ */ a(Nt.Provider, { value: c, children: /* @__PURE__ */ v(
2119
+ /* @__PURE__ */ a(Nt.Provider, { value: c, children: /* @__PURE__ */ C(
2120
2120
  At.Provider,
2121
2121
  {
2122
2122
  value: i,
2123
2123
  children: [
2124
- /* @__PURE__ */ v("thead", { style: ae, children: [
2124
+ /* @__PURE__ */ C("thead", { style: ae, children: [
2125
2125
  (r || "columnGroupOrder" in n) && /* @__PURE__ */ a(
2126
2126
  gr,
2127
2127
  {
@@ -2129,13 +2129,13 @@ const vt = M.createContext({}), Zs = ({
2129
2129
  }
2130
2130
  ),
2131
2131
  /* @__PURE__ */ a(
2132
- ko,
2132
+ vo,
2133
2133
  {
2134
2134
  items: h.items,
2135
2135
  height: "var(--current-row-height)"
2136
2136
  }
2137
2137
  ),
2138
- l == null ? void 0 : l()
2138
+ u == null ? void 0 : u()
2139
2139
  ] }),
2140
2140
  /* @__PURE__ */ a(
2141
2141
  go,
@@ -2172,7 +2172,7 @@ const vt = M.createContext({}), Zs = ({
2172
2172
  stopEditingAndRevert: s,
2173
2173
  lastKeyEvent: c,
2174
2174
  stopEditing: i,
2175
- stopEditingAndMove: l
2175
+ stopEditingAndMove: u
2176
2176
  }
2177
2177
  }) => r ? /* @__PURE__ */ a(
2178
2178
  Ae,
@@ -2183,7 +2183,7 @@ const vt = M.createContext({}), Zs = ({
2183
2183
  onEsc: s,
2184
2184
  autoFocus: !0,
2185
2185
  selectAllOnMount: !c,
2186
- onMove: l
2186
+ onMove: u
2187
2187
  }
2188
2188
  ) : /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(Z, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), ca = (e, t, n) => ({
2189
2189
  label: r,
@@ -2192,33 +2192,33 @@ const vt = M.createContext({}), Zs = ({
2192
2192
  editorValue: s,
2193
2193
  isEditing: c,
2194
2194
  setEditorValue: i,
2195
- stopEditingAndRevert: l,
2195
+ stopEditingAndRevert: u,
2196
2196
  lastKeyEvent: h,
2197
- stopEditing: u,
2198
- stopEditingAndMove: m
2197
+ stopEditing: d,
2198
+ stopEditingAndMove: f
2199
2199
  },
2200
2200
  isEditable: g
2201
2201
  }) => {
2202
- const f = typeof e == "function" ? e(o) : e, w = t ? t(o) : void 0, d = n ? n(o) : void 0;
2202
+ const m = typeof e == "function" ? e(o) : e, w = t ? t(o) : void 0, l = n ? n(o) : void 0;
2203
2203
  return g && c ? /* @__PURE__ */ a(
2204
2204
  Ae,
2205
2205
  {
2206
2206
  onValueChange: i,
2207
2207
  value: s,
2208
- onDone: u,
2209
- onEsc: l,
2208
+ onDone: d,
2209
+ onEsc: u,
2210
2210
  autoFocus: !0,
2211
2211
  selectAllOnMount: !h,
2212
- onMove: m
2212
+ onMove: f
2213
2213
  }
2214
2214
  ) : /* @__PURE__ */ a(W, { row: !0, alignItems: "center", children: /* @__PURE__ */ a(
2215
2215
  Tn,
2216
2216
  {
2217
2217
  value: r,
2218
- modifiedField: d,
2218
+ modifiedField: l,
2219
2219
  crudStatus: w,
2220
2220
  isEditable: g,
2221
- warningOnEmpty: f
2221
+ warningOnEmpty: m
2222
2222
  }
2223
2223
  ) });
2224
2224
  }, jt = 6048e5, Po = 864e5, st = Symbol.for("constructDateFrom");
@@ -2237,8 +2237,8 @@ function De() {
2237
2237
  return Oo;
2238
2238
  }
2239
2239
  function ye(e, t) {
2240
- var i, l, h, u;
2241
- const n = De(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = H(e, t == null ? void 0 : t.in), s = o.getDay(), c = (s < r ? 7 : 0) + s - r;
2240
+ var i, u, h, d;
2241
+ const n = De(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((u = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((d = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = H(e, t == null ? void 0 : t.in), s = o.getDay(), c = (s < r ? 7 : 0) + s - r;
2242
2242
  return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
2243
2243
  }
2244
2244
  function Pe(e, t) {
@@ -2282,8 +2282,8 @@ function To(e, t, n) {
2282
2282
  n == null ? void 0 : n.in,
2283
2283
  e,
2284
2284
  t
2285
- ), s = ct(r), c = ct(o), i = +s - at(s), l = +c - at(c);
2286
- return Math.round((i - l) / Po);
2285
+ ), s = ct(r), c = ct(o), i = +s - at(s), u = +c - at(c);
2286
+ return Math.round((i - u) / Po);
2287
2287
  }
2288
2288
  function Do(e, t) {
2289
2289
  const n = Vt(e, t), r = Q(e, 0);
@@ -2579,17 +2579,17 @@ function ge(e) {
2579
2579
  const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
2580
2580
  if (!s)
2581
2581
  return null;
2582
- const c = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(i) ? Xo(i, (m) => m.test(c)) : (
2582
+ const c = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? Xo(i, (f) => f.test(c)) : (
2583
2583
  // [TODO] -- I challenge you to fix the type
2584
- Qo(i, (m) => m.test(c))
2584
+ Qo(i, (f) => f.test(c))
2585
2585
  );
2586
2586
  let h;
2587
- h = e.valueCallback ? e.valueCallback(l) : l, h = n.valueCallback ? (
2587
+ h = e.valueCallback ? e.valueCallback(u) : u, h = n.valueCallback ? (
2588
2588
  // [TODO] -- I challenge you to fix the type
2589
2589
  n.valueCallback(h)
2590
2590
  ) : h;
2591
- const u = t.slice(c.length);
2592
- return { value: h, rest: u };
2591
+ const d = t.slice(c.length);
2592
+ return { value: h, rest: d };
2593
2593
  };
2594
2594
  }
2595
2595
  function Qo(e, t) {
@@ -2670,7 +2670,7 @@ const Jo = /^(\d+)(th|st|nd|rd)?/i, Zo = /\d+/i, es = {
2670
2670
  }, is = {
2671
2671
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
2672
2672
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
2673
- }, ls = {
2673
+ }, us = {
2674
2674
  any: {
2675
2675
  am: /^a/i,
2676
2676
  pm: /^p/i,
@@ -2681,7 +2681,7 @@ const Jo = /^(\d+)(th|st|nd|rd)?/i, Zo = /\d+/i, es = {
2681
2681
  evening: /evening/i,
2682
2682
  night: /night/i
2683
2683
  }
2684
- }, us = {
2684
+ }, ds = {
2685
2685
  ordinalNumber: Uo({
2686
2686
  matchPattern: Jo,
2687
2687
  parsePattern: Zo,
@@ -2715,16 +2715,16 @@ const Jo = /^(\d+)(th|st|nd|rd)?/i, Zo = /\d+/i, es = {
2715
2715
  dayPeriod: ge({
2716
2716
  matchPatterns: is,
2717
2717
  defaultMatchWidth: "any",
2718
- parsePatterns: ls,
2718
+ parsePatterns: us,
2719
2719
  defaultParseWidth: "any"
2720
2720
  })
2721
- }, ds = {
2721
+ }, ls = {
2722
2722
  code: "en-US",
2723
2723
  formatDistance: Wo,
2724
2724
  formatLong: Lo,
2725
2725
  formatRelative: Ho,
2726
2726
  localize: Ko,
2727
- match: us,
2727
+ match: ds,
2728
2728
  options: {
2729
2729
  weekStartsOn: 0,
2730
2730
  firstWeekContainsDate: 1
@@ -2734,29 +2734,29 @@ function hs(e, t) {
2734
2734
  const n = H(e, t == null ? void 0 : t.in);
2735
2735
  return To(n, Ro(n)) + 1;
2736
2736
  }
2737
- function ms(e, t) {
2737
+ function fs(e, t) {
2738
2738
  const n = H(e, t == null ? void 0 : t.in), r = +Pe(n) - +Do(n);
2739
2739
  return Math.round(r / jt) + 1;
2740
2740
  }
2741
2741
  function $t(e, t) {
2742
- var u, m, g, f;
2743
- const n = H(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = De(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((f = (g = o.locale) == null ? void 0 : g.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, c = Q((t == null ? void 0 : t.in) || e, 0);
2742
+ var d, f, g, m;
2743
+ const n = H(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = De(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((m = (g = o.locale) == null ? void 0 : g.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, c = Q((t == null ? void 0 : t.in) || e, 0);
2744
2744
  c.setFullYear(r + 1, 0, s), c.setHours(0, 0, 0, 0);
2745
- const i = ye(c, t), l = Q((t == null ? void 0 : t.in) || e, 0);
2746
- l.setFullYear(r, 0, s), l.setHours(0, 0, 0, 0);
2747
- const h = ye(l, t);
2745
+ const i = ye(c, t), u = Q((t == null ? void 0 : t.in) || e, 0);
2746
+ u.setFullYear(r, 0, s), u.setHours(0, 0, 0, 0);
2747
+ const h = ye(u, t);
2748
2748
  return +n >= +i ? r + 1 : +n >= +h ? r : r - 1;
2749
2749
  }
2750
- function fs(e, t) {
2751
- var i, l, h, u;
2752
- const n = De(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = $t(e, t), s = Q((t == null ? void 0 : t.in) || e, 0);
2750
+ function ms(e, t) {
2751
+ var i, u, h, d;
2752
+ const n = De(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = $t(e, t), s = Q((t == null ? void 0 : t.in) || e, 0);
2753
2753
  return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), ye(s, t);
2754
2754
  }
2755
2755
  function ws(e, t) {
2756
- const n = H(e, t == null ? void 0 : t.in), r = +ye(n, t) - +fs(n, t);
2756
+ const n = H(e, t == null ? void 0 : t.in), r = +ye(n, t) - +ms(n, t);
2757
2757
  return Math.round(r / jt) + 1;
2758
2758
  }
2759
- function C(e, t) {
2759
+ function x(e, t) {
2760
2760
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
2761
2761
  return n + r;
2762
2762
  }
@@ -2764,16 +2764,16 @@ const U = {
2764
2764
  // Year
2765
2765
  y(e, t) {
2766
2766
  const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
2767
- return C(t === "yy" ? r % 100 : r, t.length);
2767
+ return x(t === "yy" ? r % 100 : r, t.length);
2768
2768
  },
2769
2769
  // Month
2770
2770
  M(e, t) {
2771
2771
  const n = e.getMonth();
2772
- return t === "M" ? String(n + 1) : C(n + 1, 2);
2772
+ return t === "M" ? String(n + 1) : x(n + 1, 2);
2773
2773
  },
2774
2774
  // Day of the month
2775
2775
  d(e, t) {
2776
- return C(e.getDate(), t.length);
2776
+ return x(e.getDate(), t.length);
2777
2777
  },
2778
2778
  // AM or PM
2779
2779
  a(e, t) {
@@ -2793,28 +2793,28 @@ const U = {
2793
2793
  },
2794
2794
  // Hour [1-12]
2795
2795
  h(e, t) {
2796
- return C(e.getHours() % 12 || 12, t.length);
2796
+ return x(e.getHours() % 12 || 12, t.length);
2797
2797
  },
2798
2798
  // Hour [0-23]
2799
2799
  H(e, t) {
2800
- return C(e.getHours(), t.length);
2800
+ return x(e.getHours(), t.length);
2801
2801
  },
2802
2802
  // Minute
2803
2803
  m(e, t) {
2804
- return C(e.getMinutes(), t.length);
2804
+ return x(e.getMinutes(), t.length);
2805
2805
  },
2806
2806
  // Second
2807
2807
  s(e, t) {
2808
- return C(e.getSeconds(), t.length);
2808
+ return x(e.getSeconds(), t.length);
2809
2809
  },
2810
2810
  // Fraction of second
2811
2811
  S(e, t) {
2812
2812
  const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
2813
2813
  r * Math.pow(10, n - 3)
2814
2814
  );
2815
- return C(o, t.length);
2815
+ return x(o, t.length);
2816
2816
  }
2817
- }, le = {
2817
+ }, ue = {
2818
2818
  am: "am",
2819
2819
  pm: "pm",
2820
2820
  midnight: "midnight",
@@ -2828,12 +2828,15 @@ const U = {
2828
2828
  G: function(e, t, n) {
2829
2829
  const r = e.getFullYear() > 0 ? 1 : 0;
2830
2830
  switch (t) {
2831
+ // AD, BC
2831
2832
  case "G":
2832
2833
  case "GG":
2833
2834
  case "GGG":
2834
2835
  return n.era(r, { width: "abbreviated" });
2836
+ // A, B
2835
2837
  case "GGGGG":
2836
2838
  return n.era(r, { width: "narrow" });
2839
+ // Anno Domini, Before Christ
2837
2840
  case "GGGG":
2838
2841
  default:
2839
2842
  return n.era(r, { width: "wide" });
@@ -2852,14 +2855,14 @@ const U = {
2852
2855
  const o = $t(e, r), s = o > 0 ? o : 1 - o;
2853
2856
  if (t === "YY") {
2854
2857
  const c = s % 100;
2855
- return C(c, 2);
2858
+ return x(c, 2);
2856
2859
  }
2857
- return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : C(s, t.length);
2860
+ return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : x(s, t.length);
2858
2861
  },
2859
2862
  // ISO week-numbering year
2860
2863
  R: function(e, t) {
2861
2864
  const n = Vt(e);
2862
- return C(n, t.length);
2865
+ return x(n, t.length);
2863
2866
  },
2864
2867
  // Extended year. This is a single number designating the year of this calendar system.
2865
2868
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -2872,28 +2875,34 @@ const U = {
2872
2875
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
2873
2876
  u: function(e, t) {
2874
2877
  const n = e.getFullYear();
2875
- return C(n, t.length);
2878
+ return x(n, t.length);
2876
2879
  },
2877
2880
  // Quarter
2878
2881
  Q: function(e, t, n) {
2879
2882
  const r = Math.ceil((e.getMonth() + 1) / 3);
2880
2883
  switch (t) {
2884
+ // 1, 2, 3, 4
2881
2885
  case "Q":
2882
2886
  return String(r);
2887
+ // 01, 02, 03, 04
2883
2888
  case "QQ":
2884
- return C(r, 2);
2889
+ return x(r, 2);
2890
+ // 1st, 2nd, 3rd, 4th
2885
2891
  case "Qo":
2886
2892
  return n.ordinalNumber(r, { unit: "quarter" });
2893
+ // Q1, Q2, Q3, Q4
2887
2894
  case "QQQ":
2888
2895
  return n.quarter(r, {
2889
2896
  width: "abbreviated",
2890
2897
  context: "formatting"
2891
2898
  });
2899
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2892
2900
  case "QQQQQ":
2893
2901
  return n.quarter(r, {
2894
2902
  width: "narrow",
2895
2903
  context: "formatting"
2896
2904
  });
2905
+ // 1st quarter, 2nd quarter, ...
2897
2906
  case "QQQQ":
2898
2907
  default:
2899
2908
  return n.quarter(r, {
@@ -2906,22 +2915,28 @@ const U = {
2906
2915
  q: function(e, t, n) {
2907
2916
  const r = Math.ceil((e.getMonth() + 1) / 3);
2908
2917
  switch (t) {
2918
+ // 1, 2, 3, 4
2909
2919
  case "q":
2910
2920
  return String(r);
2921
+ // 01, 02, 03, 04
2911
2922
  case "qq":
2912
- return C(r, 2);
2923
+ return x(r, 2);
2924
+ // 1st, 2nd, 3rd, 4th
2913
2925
  case "qo":
2914
2926
  return n.ordinalNumber(r, { unit: "quarter" });
2927
+ // Q1, Q2, Q3, Q4
2915
2928
  case "qqq":
2916
2929
  return n.quarter(r, {
2917
2930
  width: "abbreviated",
2918
2931
  context: "standalone"
2919
2932
  });
2933
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2920
2934
  case "qqqqq":
2921
2935
  return n.quarter(r, {
2922
2936
  width: "narrow",
2923
2937
  context: "standalone"
2924
2938
  });
2939
+ // 1st quarter, 2nd quarter, ...
2925
2940
  case "qqqq":
2926
2941
  default:
2927
2942
  return n.quarter(r, {
@@ -2937,18 +2952,22 @@ const U = {
2937
2952
  case "M":
2938
2953
  case "MM":
2939
2954
  return U.M(e, t);
2955
+ // 1st, 2nd, ..., 12th
2940
2956
  case "Mo":
2941
2957
  return n.ordinalNumber(r + 1, { unit: "month" });
2958
+ // Jan, Feb, ..., Dec
2942
2959
  case "MMM":
2943
2960
  return n.month(r, {
2944
2961
  width: "abbreviated",
2945
2962
  context: "formatting"
2946
2963
  });
2964
+ // J, F, ..., D
2947
2965
  case "MMMMM":
2948
2966
  return n.month(r, {
2949
2967
  width: "narrow",
2950
2968
  context: "formatting"
2951
2969
  });
2970
+ // January, February, ..., December
2952
2971
  case "MMMM":
2953
2972
  default:
2954
2973
  return n.month(r, { width: "wide", context: "formatting" });
@@ -2958,22 +2977,28 @@ const U = {
2958
2977
  L: function(e, t, n) {
2959
2978
  const r = e.getMonth();
2960
2979
  switch (t) {
2980
+ // 1, 2, ..., 12
2961
2981
  case "L":
2962
2982
  return String(r + 1);
2983
+ // 01, 02, ..., 12
2963
2984
  case "LL":
2964
- return C(r + 1, 2);
2985
+ return x(r + 1, 2);
2986
+ // 1st, 2nd, ..., 12th
2965
2987
  case "Lo":
2966
2988
  return n.ordinalNumber(r + 1, { unit: "month" });
2989
+ // Jan, Feb, ..., Dec
2967
2990
  case "LLL":
2968
2991
  return n.month(r, {
2969
2992
  width: "abbreviated",
2970
2993
  context: "standalone"
2971
2994
  });
2995
+ // J, F, ..., D
2972
2996
  case "LLLLL":
2973
2997
  return n.month(r, {
2974
2998
  width: "narrow",
2975
2999
  context: "standalone"
2976
3000
  });
3001
+ // January, February, ..., December
2977
3002
  case "LLLL":
2978
3003
  default:
2979
3004
  return n.month(r, { width: "wide", context: "standalone" });
@@ -2982,12 +3007,12 @@ const U = {
2982
3007
  // Local week of year
2983
3008
  w: function(e, t, n, r) {
2984
3009
  const o = ws(e, r);
2985
- return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : C(o, t.length);
3010
+ return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : x(o, t.length);
2986
3011
  },
2987
3012
  // ISO week of year
2988
3013
  I: function(e, t, n) {
2989
- const r = ms(e);
2990
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : C(r, t.length);
3014
+ const r = fs(e);
3015
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : x(r, t.length);
2991
3016
  },
2992
3017
  // Day of the month
2993
3018
  d: function(e, t, n) {
@@ -2996,12 +3021,13 @@ const U = {
2996
3021
  // Day of year
2997
3022
  D: function(e, t, n) {
2998
3023
  const r = hs(e);
2999
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : C(r, t.length);
3024
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : x(r, t.length);
3000
3025
  },
3001
3026
  // Day of week
3002
3027
  E: function(e, t, n) {
3003
3028
  const r = e.getDay();
3004
3029
  switch (t) {
3030
+ // Tue
3005
3031
  case "E":
3006
3032
  case "EE":
3007
3033
  case "EEE":
@@ -3009,16 +3035,19 @@ const U = {
3009
3035
  width: "abbreviated",
3010
3036
  context: "formatting"
3011
3037
  });
3038
+ // T
3012
3039
  case "EEEEE":
3013
3040
  return n.day(r, {
3014
3041
  width: "narrow",
3015
3042
  context: "formatting"
3016
3043
  });
3044
+ // Tu
3017
3045
  case "EEEEEE":
3018
3046
  return n.day(r, {
3019
3047
  width: "short",
3020
3048
  context: "formatting"
3021
3049
  });
3050
+ // Tuesday
3022
3051
  case "EEEE":
3023
3052
  default:
3024
3053
  return n.day(r, {
@@ -3031,10 +3060,13 @@ const U = {
3031
3060
  e: function(e, t, n, r) {
3032
3061
  const o = e.getDay(), s = (o - r.weekStartsOn + 8) % 7 || 7;
3033
3062
  switch (t) {
3063
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
3034
3064
  case "e":
3035
3065
  return String(s);
3066
+ // Padded numerical value
3036
3067
  case "ee":
3037
- return C(s, 2);
3068
+ return x(s, 2);
3069
+ // 1st, 2nd, ..., 7th
3038
3070
  case "eo":
3039
3071
  return n.ordinalNumber(s, { unit: "day" });
3040
3072
  case "eee":
@@ -3042,16 +3074,19 @@ const U = {
3042
3074
  width: "abbreviated",
3043
3075
  context: "formatting"
3044
3076
  });
3077
+ // T
3045
3078
  case "eeeee":
3046
3079
  return n.day(o, {
3047
3080
  width: "narrow",
3048
3081
  context: "formatting"
3049
3082
  });
3083
+ // Tu
3050
3084
  case "eeeeee":
3051
3085
  return n.day(o, {
3052
3086
  width: "short",
3053
3087
  context: "formatting"
3054
3088
  });
3089
+ // Tuesday
3055
3090
  case "eeee":
3056
3091
  default:
3057
3092
  return n.day(o, {
@@ -3064,10 +3099,13 @@ const U = {
3064
3099
  c: function(e, t, n, r) {
3065
3100
  const o = e.getDay(), s = (o - r.weekStartsOn + 8) % 7 || 7;
3066
3101
  switch (t) {
3102
+ // Numerical value (same as in `e`)
3067
3103
  case "c":
3068
3104
  return String(s);
3105
+ // Padded numerical value
3069
3106
  case "cc":
3070
- return C(s, t.length);
3107
+ return x(s, t.length);
3108
+ // 1st, 2nd, ..., 7th
3071
3109
  case "co":
3072
3110
  return n.ordinalNumber(s, { unit: "day" });
3073
3111
  case "ccc":
@@ -3075,16 +3113,19 @@ const U = {
3075
3113
  width: "abbreviated",
3076
3114
  context: "standalone"
3077
3115
  });
3116
+ // T
3078
3117
  case "ccccc":
3079
3118
  return n.day(o, {
3080
3119
  width: "narrow",
3081
3120
  context: "standalone"
3082
3121
  });
3122
+ // Tu
3083
3123
  case "cccccc":
3084
3124
  return n.day(o, {
3085
3125
  width: "short",
3086
3126
  context: "standalone"
3087
3127
  });
3128
+ // Tuesday
3088
3129
  case "cccc":
3089
3130
  default:
3090
3131
  return n.day(o, {
@@ -3097,27 +3138,34 @@ const U = {
3097
3138
  i: function(e, t, n) {
3098
3139
  const r = e.getDay(), o = r === 0 ? 7 : r;
3099
3140
  switch (t) {
3141
+ // 2
3100
3142
  case "i":
3101
3143
  return String(o);
3144
+ // 02
3102
3145
  case "ii":
3103
- return C(o, t.length);
3146
+ return x(o, t.length);
3147
+ // 2nd
3104
3148
  case "io":
3105
3149
  return n.ordinalNumber(o, { unit: "day" });
3150
+ // Tue
3106
3151
  case "iii":
3107
3152
  return n.day(r, {
3108
3153
  width: "abbreviated",
3109
3154
  context: "formatting"
3110
3155
  });
3156
+ // T
3111
3157
  case "iiiii":
3112
3158
  return n.day(r, {
3113
3159
  width: "narrow",
3114
3160
  context: "formatting"
3115
3161
  });
3162
+ // Tu
3116
3163
  case "iiiiii":
3117
3164
  return n.day(r, {
3118
3165
  width: "short",
3119
3166
  context: "formatting"
3120
3167
  });
3168
+ // Tuesday
3121
3169
  case "iiii":
3122
3170
  default:
3123
3171
  return n.day(r, {
@@ -3158,7 +3206,7 @@ const U = {
3158
3206
  b: function(e, t, n) {
3159
3207
  const r = e.getHours();
3160
3208
  let o;
3161
- switch (r === 12 ? o = le.noon : r === 0 ? o = le.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
3209
+ switch (r === 12 ? o = ue.noon : r === 0 ? o = ue.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
3162
3210
  case "b":
3163
3211
  case "bb":
3164
3212
  return n.dayPeriod(o, {
@@ -3187,7 +3235,7 @@ const U = {
3187
3235
  B: function(e, t, n) {
3188
3236
  const r = e.getHours();
3189
3237
  let o;
3190
- switch (r >= 17 ? o = le.evening : r >= 12 ? o = le.afternoon : r >= 4 ? o = le.morning : o = le.night, t) {
3238
+ switch (r >= 17 ? o = ue.evening : r >= 12 ? o = ue.afternoon : r >= 4 ? o = ue.morning : o = ue.night, t) {
3191
3239
  case "B":
3192
3240
  case "BB":
3193
3241
  case "BBB":
@@ -3223,12 +3271,12 @@ const U = {
3223
3271
  // Hour [0-11]
3224
3272
  K: function(e, t, n) {
3225
3273
  const r = e.getHours() % 12;
3226
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : C(r, t.length);
3274
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : x(r, t.length);
3227
3275
  },
3228
3276
  // Hour [1-24]
3229
3277
  k: function(e, t, n) {
3230
3278
  let r = e.getHours();
3231
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : C(r, t.length);
3279
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : x(r, t.length);
3232
3280
  },
3233
3281
  // Minute
3234
3282
  m: function(e, t, n) {
@@ -3248,13 +3296,21 @@ const U = {
3248
3296
  if (r === 0)
3249
3297
  return "Z";
3250
3298
  switch (t) {
3299
+ // Hours and optional minutes
3251
3300
  case "X":
3252
- return ut(r);
3301
+ return dt(r);
3302
+ // Hours, minutes and optional seconds without `:` delimiter
3303
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
3304
+ // so this token always has the same output as `XX`
3253
3305
  case "XXXX":
3254
3306
  case "XX":
3255
3307
  return oe(r);
3308
+ // Hours, minutes and optional seconds with `:` delimiter
3309
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
3310
+ // so this token always has the same output as `XXX`
3256
3311
  case "XXXXX":
3257
3312
  case "XXX":
3313
+ // Hours and minutes with `:` delimiter
3258
3314
  default:
3259
3315
  return oe(r, ":");
3260
3316
  }
@@ -3263,13 +3319,21 @@ const U = {
3263
3319
  x: function(e, t, n) {
3264
3320
  const r = e.getTimezoneOffset();
3265
3321
  switch (t) {
3322
+ // Hours and optional minutes
3266
3323
  case "x":
3267
- return ut(r);
3324
+ return dt(r);
3325
+ // Hours, minutes and optional seconds without `:` delimiter
3326
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
3327
+ // so this token always has the same output as `xx`
3268
3328
  case "xxxx":
3269
3329
  case "xx":
3270
3330
  return oe(r);
3331
+ // Hours, minutes and optional seconds with `:` delimiter
3332
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
3333
+ // so this token always has the same output as `xxx`
3271
3334
  case "xxxxx":
3272
3335
  case "xxx":
3336
+ // Hours and minutes with `:` delimiter
3273
3337
  default:
3274
3338
  return oe(r, ":");
3275
3339
  }
@@ -3278,10 +3342,12 @@ const U = {
3278
3342
  O: function(e, t, n) {
3279
3343
  const r = e.getTimezoneOffset();
3280
3344
  switch (t) {
3345
+ // Short
3281
3346
  case "O":
3282
3347
  case "OO":
3283
3348
  case "OOO":
3284
- return "GMT" + lt(r, ":");
3349
+ return "GMT" + ut(r, ":");
3350
+ // Long
3285
3351
  case "OOOO":
3286
3352
  default:
3287
3353
  return "GMT" + oe(r, ":");
@@ -3291,10 +3357,12 @@ const U = {
3291
3357
  z: function(e, t, n) {
3292
3358
  const r = e.getTimezoneOffset();
3293
3359
  switch (t) {
3360
+ // Short
3294
3361
  case "z":
3295
3362
  case "zz":
3296
3363
  case "zzz":
3297
- return "GMT" + lt(r, ":");
3364
+ return "GMT" + ut(r, ":");
3365
+ // Long
3298
3366
  case "zzzz":
3299
3367
  default:
3300
3368
  return "GMT" + oe(r, ":");
@@ -3303,25 +3371,25 @@ const U = {
3303
3371
  // Seconds timestamp
3304
3372
  t: function(e, t, n) {
3305
3373
  const r = Math.trunc(+e / 1e3);
3306
- return C(r, t.length);
3374
+ return x(r, t.length);
3307
3375
  },
3308
3376
  // Milliseconds timestamp
3309
3377
  T: function(e, t, n) {
3310
- return C(+e, t.length);
3378
+ return x(+e, t.length);
3311
3379
  }
3312
3380
  };
3313
- function lt(e, t = "") {
3381
+ function ut(e, t = "") {
3314
3382
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
3315
- return s === 0 ? n + String(o) : n + String(o) + t + C(s, 2);
3383
+ return s === 0 ? n + String(o) : n + String(o) + t + x(s, 2);
3316
3384
  }
3317
- function ut(e, t) {
3318
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + C(Math.abs(e) / 60, 2) : oe(e, t);
3385
+ function dt(e, t) {
3386
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + x(Math.abs(e) / 60, 2) : oe(e, t);
3319
3387
  }
3320
3388
  function oe(e, t = "") {
3321
- const n = e > 0 ? "-" : "+", r = Math.abs(e), o = C(Math.trunc(r / 60), 2), s = C(r % 60, 2);
3389
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), o = x(Math.trunc(r / 60), 2), s = x(r % 60, 2);
3322
3390
  return n + o + t + s;
3323
3391
  }
3324
- const dt = (e, t) => {
3392
+ const lt = (e, t) => {
3325
3393
  switch (e) {
3326
3394
  case "P":
3327
3395
  return t.date({ width: "short" });
@@ -3348,7 +3416,7 @@ const dt = (e, t) => {
3348
3416
  }, gs = (e, t) => {
3349
3417
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
3350
3418
  if (!o)
3351
- return dt(e, t);
3419
+ return lt(e, t);
3352
3420
  let s;
3353
3421
  switch (r) {
3354
3422
  case "P":
@@ -3365,20 +3433,20 @@ const dt = (e, t) => {
3365
3433
  s = t.dateTime({ width: "full" });
3366
3434
  break;
3367
3435
  }
3368
- return s.replace("{{date}}", dt(r, t)).replace("{{time}}", Kt(o, t));
3436
+ return s.replace("{{date}}", lt(r, t)).replace("{{time}}", Kt(o, t));
3369
3437
  }, ps = {
3370
3438
  p: Kt,
3371
3439
  P: gs
3372
- }, ys = /^D+$/, bs = /^Y+$/, vs = ["D", "DD", "YY", "YYYY"];
3373
- function Cs(e) {
3440
+ }, ys = /^D+$/, bs = /^Y+$/, Cs = ["D", "DD", "YY", "YYYY"];
3441
+ function xs(e) {
3374
3442
  return ys.test(e);
3375
3443
  }
3376
- function xs(e) {
3444
+ function ks(e) {
3377
3445
  return bs.test(e);
3378
3446
  }
3379
- function ks(e, t, n) {
3447
+ function vs(e, t, n) {
3380
3448
  const r = Ss(e, t, n);
3381
- if (console.warn(r), vs.includes(e)) throw new RangeError(r);
3449
+ if (console.warn(r), Cs.includes(e)) throw new RangeError(r);
3382
3450
  }
3383
3451
  function Ss(e, t, n) {
3384
3452
  const r = e[0] === "Y" ? "years" : "days of the month";
@@ -3386,43 +3454,43 @@ function Ss(e, t, n) {
3386
3454
  }
3387
3455
  const Ps = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Os = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Is = /^'([^]*?)'?$/, Ts = /''/g, Ds = /[a-zA-Z]/;
3388
3456
  function Es(e, t, n) {
3389
- var u, m, g, f;
3390
- const r = De(), o = r.locale ?? ds, s = r.firstWeekContainsDate ?? ((m = (u = r.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, c = r.weekStartsOn ?? ((f = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = H(e, n == null ? void 0 : n.in);
3457
+ var d, f, g, m;
3458
+ const r = De(), o = r.locale ?? ls, s = r.firstWeekContainsDate ?? ((f = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, c = r.weekStartsOn ?? ((m = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? 0, i = H(e, n == null ? void 0 : n.in);
3391
3459
  if (!Mo(i))
3392
3460
  throw new RangeError("Invalid time value");
3393
- let l = t.match(Os).map((w) => {
3394
- const d = w[0];
3395
- if (d === "p" || d === "P") {
3396
- const p = ps[d];
3461
+ let u = t.match(Os).map((w) => {
3462
+ const l = w[0];
3463
+ if (l === "p" || l === "P") {
3464
+ const p = ps[l];
3397
3465
  return p(w, o.formatLong);
3398
3466
  }
3399
3467
  return w;
3400
3468
  }).join("").match(Ps).map((w) => {
3401
3469
  if (w === "''")
3402
3470
  return { isToken: !1, value: "'" };
3403
- const d = w[0];
3404
- if (d === "'")
3471
+ const l = w[0];
3472
+ if (l === "'")
3405
3473
  return { isToken: !1, value: Ms(w) };
3406
- if (it[d])
3474
+ if (it[l])
3407
3475
  return { isToken: !0, value: w };
3408
- if (d.match(Ds))
3476
+ if (l.match(Ds))
3409
3477
  throw new RangeError(
3410
- "Format string contains an unescaped latin alphabet character `" + d + "`"
3478
+ "Format string contains an unescaped latin alphabet character `" + l + "`"
3411
3479
  );
3412
3480
  return { isToken: !1, value: w };
3413
3481
  });
3414
- o.localize.preprocessor && (l = o.localize.preprocessor(i, l));
3482
+ o.localize.preprocessor && (u = o.localize.preprocessor(i, u));
3415
3483
  const h = {
3416
3484
  firstWeekContainsDate: s,
3417
3485
  weekStartsOn: c,
3418
3486
  locale: o
3419
3487
  };
3420
- return l.map((w) => {
3488
+ return u.map((w) => {
3421
3489
  if (!w.isToken) return w.value;
3422
- const d = w.value;
3423
- (xs(d) || Cs(d)) && ks(d, t, String(e));
3424
- const p = it[d[0]];
3425
- return p(i, d, o.localize, h);
3490
+ const l = w.value;
3491
+ (ks(l) || xs(l)) && vs(l, t, String(e));
3492
+ const p = it[l[0]];
3493
+ return p(i, l, o.localize, h);
3426
3494
  }).join("");
3427
3495
  }
3428
3496
  function Ms(e) {
@@ -3637,7 +3705,7 @@ const Rs = () => [
3637
3705
  })
3638
3706
  },
3639
3707
  columnOrder: ["id", "active", "name", "ship", "numPassengers", "departure"]
3640
- }, la = Rs(), ua = (e) => {
3708
+ }, ua = Rs(), da = (e) => {
3641
3709
  const [t, n] = Se(e), r = S(
3642
3710
  (s, c) => {
3643
3711
  n(
@@ -3664,9 +3732,9 @@ const Rs = () => [
3664
3732
  };
3665
3733
  };
3666
3734
  export {
3667
- Ct as CrudStatusIndicator,
3735
+ xt as CrudStatusIndicator,
3668
3736
  sa as EditableTextCellWithCrudAndModified,
3669
- vt as GridHooksContext,
3737
+ Ct as GridHooksContext,
3670
3738
  Zs as GridHooksTable,
3671
3739
  Tn as ModifiedField,
3672
3740
  ea as SmallTableCell,
@@ -3677,7 +3745,7 @@ export {
3677
3745
  Qr as StandardTableCellUi,
3678
3746
  Mt as StandardTableConfigContext,
3679
3747
  go as StandardTableContent,
3680
- ko as StandardTableHeadRow,
3748
+ vo as StandardTableHeadRow,
3681
3749
  no as StandardTableRow,
3682
3750
  Fr as StandardTableRowCheckbox,
3683
3751
  wo as StandardTableRowList,
@@ -3704,34 +3772,34 @@ export {
3704
3772
  Vr as formatColumnIdToHeaderCellLabel,
3705
3773
  jr as formatValueLabel,
3706
3774
  Le as hasIndicatorContent,
3707
- la as mockedItems,
3775
+ ua as mockedItems,
3708
3776
  Br as multitypeComparator,
3709
3777
  ht as setListItemFields,
3710
3778
  St as smallTableRowWidth,
3711
3779
  ia as standardTableConfigForStories,
3712
- xt as tableBackgroundColorExpanded,
3780
+ kt as tableBackgroundColorExpanded,
3713
3781
  Rn as tableBackgroundHoverColorExpanded,
3714
3782
  pe as tableBorder,
3715
3783
  En as tableBorderColor,
3716
3784
  Mn as tableBorderColorExpanded,
3717
3785
  Gn as tableBorderHidden,
3718
3786
  Fe as tableBorderLeft,
3719
- kt as tableBorderLeftExpanded,
3787
+ vt as tableBorderLeftExpanded,
3720
3788
  ot as useCellBackgroundByColumnConfig,
3721
3789
  _r as useCellBackgroundByColumnId,
3722
- Ce as useColumnConfigById,
3790
+ xe as useColumnConfigById,
3723
3791
  Lr as useColumnValueResolver,
3724
3792
  Hn as useEditableCell,
3725
- ur as useFirstColumnConfig,
3793
+ dr as useFirstColumnConfig,
3726
3794
  Ie as useGridCell,
3727
3795
  er as useGridNavigation,
3728
3796
  Pt as useGridNavigationOptionsFromContext,
3729
- dr as useLastColumnConfig,
3730
- ua as useListState,
3797
+ lr as useLastColumnConfig,
3798
+ da as useListState,
3731
3799
  Dr as useLocalStateTableContext,
3732
3800
  Bn as useRevertableValue,
3733
3801
  Yr as useRowCheckbox,
3734
- ve as useStandardTableActions,
3802
+ Ce as useStandardTableActions,
3735
3803
  I as useStandardTableConfig,
3736
3804
  qe as useStandardTableId,
3737
3805
  se as useStandardTableState,