@stenajs-webui/grid 17.30.6 → 17.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,31 +1,31 @@
1
1
  (function(){"use strict";try{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_1iok0_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-header-z-index: 10;--swui-sticky-column-z-index: 20;--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_1iok0_1 td{border-top:1px solid var(--lhds-color-ui-300);padding:0}._standardTable_1iok0_1 th{padding:0}._standardTable_1iok0_1._relaxed_1iok0_37{--current-row-height: 48px}._standardTable_1iok0_1._condensed_1iok0_41{--current-row-height: 32px}._standardTable_1iok0_1._compact_1iok0_45{--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)}")),document.head.appendChild(e)}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
2
  import * as T from "react";
3
- import { useMemo as v, useRef as te, useState as ve, useCallback as I, useEffect as je, useContext as V, createContext as $, useReducer as It, useId as Et } from "react";
3
+ import { useMemo as v, useRef as ne, useState as ve, useCallback as I, useEffect as je, useContext as $, createContext as K, useReducer as Et, useId as Rt } from "react";
4
4
  import { jsx as r, Fragment as G, jsxs as g } from "react/jsx-runtime";
5
5
  import { faExclamationTriangle as ue } from "@fortawesome/free-solid-svg-icons/faExclamationTriangle";
6
- import { InputSpinner as ye, Icon as F, stenaArrowRight as Rt, stenaInfoCircle as Gt, FlatButton as xe, ResultListBanner as Tt, Banner as Le } from "@stenajs-webui/elements";
6
+ import { InputSpinner as ye, Icon as F, stenaArrowRight as Gt, stenaInfoCircle as Tt, FlatButton as xe, ResultListBanner as Ot, Banner as Le } from "@stenajs-webui/elements";
7
7
  import { cssColor as _ } from "@stenajs-webui/theme";
8
- import { Tooltip as re, Popover as Ot } from "@stenajs-webui/tooltip";
9
- import { Text as U, Indent as N, Space as B, Row as E, Box as ne, exhaustSwitchCaseElseThrow as Pt, Heading as We, useArraySet as qe, useOnScreen as At, Spacing as we, booleanOrNumberToNumber as Lt } from "@stenajs-webui/core";
10
- import { faEllipsisV as Bt } from "@fortawesome/free-solid-svg-icons/faEllipsisV";
11
- import { faSortAlphaDown as Dt } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
12
- import { faSortAlphaUp as Nt } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
13
- import { faSortAmountDownAlt as zt } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
14
- import { faSortAmountUpAlt as Kt } from "@fortawesome/free-solid-svg-icons/faSortAmountUpAlt";
15
- import { faSortNumericDown as Ht } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
16
- import { faSortNumericUp as $t } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
8
+ import { Tooltip as se, Popover as Pt } from "@stenajs-webui/tooltip";
9
+ import { Text as U, Indent as N, Space as L, Row as E, Box as oe, exhaustSwitchCaseElseThrow as At, Heading as We, booleanOrNumberToNumber as Lt, useArraySet as qe, useOnScreen as Bt, Spacing as we } from "@stenajs-webui/core";
10
+ import { faEllipsisV as Dt } from "@fortawesome/free-solid-svg-icons/faEllipsisV";
11
+ import { faSortAlphaDown as Nt } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
12
+ import { faSortAlphaUp as zt } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
13
+ import { faSortAmountDownAlt as Kt } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
14
+ import { faSortAmountUpAlt as Ht } from "@fortawesome/free-solid-svg-icons/faSortAmountUpAlt";
15
+ import { faSortNumericDown as $t } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
16
+ import { faSortNumericUp as Mt } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
17
17
  import Fe from "classnames";
18
- import { faArrowRight as Mt } from "@fortawesome/free-solid-svg-icons/faArrowRight";
18
+ import { faArrowRight as Vt } from "@fortawesome/free-solid-svg-icons/faArrowRight";
19
19
  import { TextInput as ge, Checkbox as Ue } from "@stenajs-webui/forms";
20
- import { useDispatch as Vt, useSelector as Be } from "react-redux";
21
- import { createSortOrderActions as _t, createSelectedIdsActions as De, createEntityActions as jt, createSortOrderReducerInitialState as Wt, createSelectedIdsReducerInitialState as Ne, reducerIdGate as de, createSortOrderReducer as qt, createSelectedIdsReducer as ze, createEntityReducer as Ft, reducerIdGateAction as X } from "@stenajs-webui/redux";
22
- import { combineReducers as Ut } from "redux";
23
- import { LoadingScreen as Zt, ErrorScreen as Jt } from "@stenajs-webui/panels";
24
- import { compact as Xt, upperFirst as Yt, lowerCase as Qt } from "lodash";
20
+ import { useDispatch as _t, useSelector as Be } from "react-redux";
21
+ import { createSortOrderActions as jt, createSelectedIdsActions as De, createEntityActions as Wt, createSortOrderReducerInitialState as qt, createSelectedIdsReducerInitialState as Ne, reducerIdGate as de, createSortOrderReducer as Ft, createSelectedIdsReducer as ze, createEntityReducer as Ut, reducerIdGateAction as Y } from "@stenajs-webui/redux";
22
+ import { combineReducers as Zt } from "redux";
23
+ import { LoadingScreen as Jt, ErrorScreen as Xt } from "@stenajs-webui/panels";
24
+ import { compact as Yt, upperFirst as Qt, lowerCase as en } from "lodash";
25
25
  import { faChevronDown as Ze } from "@fortawesome/free-solid-svg-icons/faChevronDown";
26
26
  import { faChevronRight as Je } from "@fortawesome/free-solid-svg-icons/faChevronRight";
27
- import en from "@emotion/styled";
28
- const Xe = T.createContext({}), xr = ({
27
+ import tn from "@emotion/styled";
28
+ const Xe = T.createContext({}), br = ({
29
29
  children: e,
30
30
  numCols: t,
31
31
  numRows: n,
@@ -75,7 +75,7 @@ const Xe = T.createContext({}), xr = ({
75
75
  size: 14
76
76
  });
77
77
  return /* @__PURE__ */ r(G, {
78
- children: t ? /* @__PURE__ */ r(re, {
78
+ children: t ? /* @__PURE__ */ r(se, {
79
79
  label: t,
80
80
  zIndex: 100,
81
81
  children: i
@@ -83,7 +83,7 @@ const Xe = T.createContext({}), xr = ({
83
83
  });
84
84
  }
85
85
  return null;
86
- }, tn = ({
86
+ }, nn = ({
87
87
  isEditable: e,
88
88
  warningOnEmpty: t,
89
89
  value: n,
@@ -99,7 +99,7 @@ const Xe = T.createContext({}), xr = ({
99
99
  }), (o == null ? void 0 : o.newValue) !== void 0 && /* @__PURE__ */ g(G, {
100
100
  children: [/* @__PURE__ */ r(N, {
101
101
  children: /* @__PURE__ */ r(F, {
102
- icon: Rt,
102
+ icon: Gt,
103
103
  size: 12
104
104
  })
105
105
  }), /* @__PURE__ */ r(U, {
@@ -107,7 +107,7 @@ const Xe = T.createContext({}), xr = ({
107
107
  variant: "bold",
108
108
  children: o.newValue
109
109
  })]
110
- }), i && /* @__PURE__ */ r(B, {}), c ? /* @__PURE__ */ r(re, {
110
+ }), i && /* @__PURE__ */ r(L, {}), c ? /* @__PURE__ */ r(se, {
111
111
  label: t,
112
112
  zIndex: 100,
113
113
  children: /* @__PURE__ */ r(F, {
@@ -119,7 +119,7 @@ const Xe = T.createContext({}), xr = ({
119
119
  crudStatus: s
120
120
  })]
121
121
  });
122
- }, nn = ({
122
+ }, on = ({
123
123
  alignItems: e = "center",
124
124
  justifyContent: t = "flex-start",
125
125
  overflow: n = "hidden",
@@ -132,30 +132,30 @@ const Xe = T.createContext({}), xr = ({
132
132
  overflow: n,
133
133
  indent: o,
134
134
  ...s
135
- }), on = "var(--lhds-color-ui-300)", rn = "var(--lhds-color-blue-500)", Qe = "var(--lhds-color-blue-50)", sn = "var(--lhds-color-blue-100)", oe = `1px solid ${on}`, cn = "1px solid transparent", ke = "var(--swui-expand-highlight-border-width) solid transparent", et = `var(--swui-expand-highlight-border-width) solid ${rn}`, Se = "40px", Ie = "40px", tt = "40px", gr = (e) => /* @__PURE__ */ r(nn, {
135
+ }), rn = "var(--lhds-color-ui-300)", sn = "var(--lhds-color-blue-500)", Qe = "var(--lhds-color-blue-50)", cn = "var(--lhds-color-blue-100)", re = `1px solid ${rn}`, ln = "1px solid transparent", ke = "var(--swui-expand-highlight-border-width) solid transparent", et = `var(--swui-expand-highlight-border-width) solid ${sn}`, Se = "40px", Ie = "40px", tt = "40px", kr = (e) => /* @__PURE__ */ r(on, {
136
136
  width: tt,
137
137
  justifyContent: "center",
138
138
  ...e
139
139
  }), Ke = ({
140
140
  iconVariant: e = "amount",
141
141
  direction: t
142
- }) => /* @__PURE__ */ r(ne, {
142
+ }) => /* @__PURE__ */ r(oe, {
143
143
  width: "14px",
144
144
  children: /* @__PURE__ */ r(F, {
145
145
  size: 14,
146
146
  color: _("--lhds-color-ui-500"),
147
- icon: ln(t, e)
147
+ icon: an(t, e)
148
148
  })
149
- }), ln = (e, t) => {
149
+ }), an = (e, t) => {
150
150
  switch (t) {
151
151
  case "alpha":
152
- return e === "up" ? Nt : Dt;
152
+ return e === "up" ? zt : Nt;
153
153
  case "numeric":
154
- return e === "up" ? $t : Ht;
154
+ return e === "up" ? Mt : $t;
155
155
  case "amount":
156
- return e === "up" ? Kt : zt;
156
+ return e === "up" ? Ht : Kt;
157
157
  default:
158
- return Pt(t);
158
+ return At(t);
159
159
  }
160
160
  }, Ee = T.memo(({
161
161
  label: e,
@@ -169,23 +169,23 @@ const Xe = T.createContext({}), xr = ({
169
169
  overflow: d = "hidden",
170
170
  alignRight: u,
171
171
  sortOrderIconVariant: a,
172
- ...h
172
+ ...p
173
173
  }) => {
174
- const m = te(null);
174
+ const f = ne(null);
175
175
  return /* @__PURE__ */ g(E, {
176
176
  height: "100%",
177
177
  alignItems: "center",
178
- ref: m,
178
+ ref: f,
179
179
  overflow: d,
180
180
  justifyContent: u ? "flex-end" : "flex-start",
181
- ...h,
181
+ ...p,
182
182
  children: [/* @__PURE__ */ g(E, {
183
183
  alignItems: "center",
184
184
  indent: !0,
185
185
  children: [!t && u && /* @__PURE__ */ g(G, {
186
- children: [/* @__PURE__ */ r(B, {}), /* @__PURE__ */ r(ne, {
186
+ children: [/* @__PURE__ */ r(L, {}), /* @__PURE__ */ r(oe, {
187
187
  width: "14px"
188
- }), /* @__PURE__ */ r(B, {
188
+ }), /* @__PURE__ */ r(L, {
189
189
  num: 0.5
190
190
  })]
191
191
  }), (o || e) && /* @__PURE__ */ g(E, {
@@ -196,14 +196,14 @@ const Xe = T.createContext({}), xr = ({
196
196
  } : void 0,
197
197
  alignItems: "center",
198
198
  children: [o && /* @__PURE__ */ g(G, {
199
- children: [o, !(!e && !t && !i) && /* @__PURE__ */ r(B, {
199
+ children: [o, !(!e && !t && !i) && /* @__PURE__ */ r(L, {
200
200
  num: 0.5
201
201
  })]
202
202
  }), t && u && /* @__PURE__ */ g(G, {
203
- children: [/* @__PURE__ */ r(B, {}), /* @__PURE__ */ r(Ke, {
203
+ children: [/* @__PURE__ */ r(L, {}), /* @__PURE__ */ r(Ke, {
204
204
  direction: t,
205
205
  iconVariant: a
206
- }), /* @__PURE__ */ r(B, {
206
+ }), /* @__PURE__ */ r(L, {
207
207
  num: 0.5
208
208
  })]
209
209
  }), e && /* @__PURE__ */ r(We, {
@@ -213,29 +213,29 @@ const Xe = T.createContext({}), xr = ({
213
213
  },
214
214
  children: e
215
215
  }), t && !u && /* @__PURE__ */ g(G, {
216
- children: [/* @__PURE__ */ r(B, {
216
+ children: [/* @__PURE__ */ r(L, {
217
217
  num: 0.5
218
218
  }), /* @__PURE__ */ r(Ke, {
219
219
  direction: t,
220
220
  iconVariant: a
221
- }), /* @__PURE__ */ r(B, {})]
221
+ }), /* @__PURE__ */ r(L, {})]
222
222
  })]
223
223
  }), i && /* @__PURE__ */ g(G, {
224
- children: [/* @__PURE__ */ r(B, {}), /* @__PURE__ */ g(E, {
225
- onClick: (p) => p.stopPropagation(),
226
- children: [/* @__PURE__ */ r(re, {
224
+ children: [/* @__PURE__ */ r(L, {}), /* @__PURE__ */ g(E, {
225
+ onClick: (h) => h.stopPropagation(),
226
+ children: [/* @__PURE__ */ r(se, {
227
227
  label: i,
228
228
  zIndex: "var(--swui-sticky-popover-z-index)",
229
229
  children: /* @__PURE__ */ r(F, {
230
- icon: Gt,
230
+ icon: Tt,
231
231
  size: 14,
232
232
  color: _("--lhds-color-blue-400")
233
233
  })
234
- }), /* @__PURE__ */ r(B, {})]
234
+ }), /* @__PURE__ */ r(L, {})]
235
235
  })]
236
236
  })]
237
237
  }), /* @__PURE__ */ r(E, {
238
- children: l ? /* @__PURE__ */ r(ye, {}) : c ? /* @__PURE__ */ r(Ot, {
238
+ children: l ? /* @__PURE__ */ r(ye, {}) : c ? /* @__PURE__ */ r(Pt, {
239
239
  content: c,
240
240
  trigger: "click",
241
241
  zIndex: 1e3,
@@ -243,23 +243,23 @@ const Xe = T.createContext({}), xr = ({
243
243
  variant: "outlined",
244
244
  arrow: !1,
245
245
  children: /* @__PURE__ */ r(xe, {
246
- leftIcon: Bt,
246
+ leftIcon: Dt,
247
247
  size: "small"
248
248
  })
249
249
  }) : null
250
250
  }), !t && !u && /* @__PURE__ */ g(G, {
251
- children: [/* @__PURE__ */ r(B, {}), /* @__PURE__ */ r(ne, {
251
+ children: [/* @__PURE__ */ r(L, {}), /* @__PURE__ */ r(oe, {
252
252
  width: "14px"
253
- }), /* @__PURE__ */ r(B, {
253
+ }), /* @__PURE__ */ r(L, {
254
254
  num: 0.5
255
255
  })]
256
256
  })]
257
257
  });
258
- }), br = (e) => /* @__PURE__ */ r(Ee, {
258
+ }), Sr = (e) => /* @__PURE__ */ r(Ee, {
259
259
  width: tt,
260
260
  justifyContent: "center",
261
261
  ...e
262
- }), kr = ({
262
+ }), Ir = ({
263
263
  label: e,
264
264
  flex: t,
265
265
  width: n,
@@ -269,7 +269,7 @@ const Xe = T.createContext({}), xr = ({
269
269
  width: n,
270
270
  flex: t,
271
271
  height: s,
272
- children: /* @__PURE__ */ r(ne, {
272
+ children: /* @__PURE__ */ r(oe, {
273
273
  indent: o,
274
274
  spacing: !0,
275
275
  children: /* @__PURE__ */ r(U, {
@@ -277,7 +277,7 @@ const Xe = T.createContext({}), xr = ({
277
277
  children: e
278
278
  })
279
279
  })
280
- }), Sr = T.memo(({
280
+ }), Er = T.memo(({
281
281
  style: e,
282
282
  height: t = Ie,
283
283
  ...n
@@ -285,20 +285,20 @@ const Xe = T.createContext({}), xr = ({
285
285
  style: e,
286
286
  height: t,
287
287
  ...n
288
- })), an = "_tableRow_1cphw_1", dn = {
289
- tableRow: an
290
- }, Ir = ({
288
+ })), dn = "_tableRow_1cphw_1", un = {
289
+ tableRow: dn
290
+ }, Rr = ({
291
291
  hideBorderTop: e,
292
292
  height: t = Ie,
293
293
  className: n,
294
294
  ...o
295
295
  }) => /* @__PURE__ */ r(E, {
296
- borderTop: e ? cn : oe,
296
+ borderTop: e ? ln : re,
297
297
  height: t,
298
- className: Fe(dn.tableRow, n),
298
+ className: Fe(un.tableRow, n),
299
299
  ...o
300
- }), un = (e) => {
301
- const [t, n] = ve(e), o = te(e), s = te(e), c = I(
300
+ }), hn = (e) => {
301
+ const [t, n] = ve(e), o = ne(e), s = ne(e), c = I(
302
302
  (a) => {
303
303
  n(a), s.current = a;
304
304
  },
@@ -326,7 +326,7 @@ const Xe = T.createContext({}), xr = ({
326
326
  commit: i,
327
327
  getValue: u
328
328
  };
329
- }, hn = (e) => ({
329
+ }, pn = (e) => ({
330
330
  altKey: e.altKey,
331
331
  charCode: e.charCode,
332
332
  ctrlKey: e.ctrlKey,
@@ -338,83 +338,83 @@ const Xe = T.createContext({}), xr = ({
338
338
  repeat: e.repeat,
339
339
  shiftKey: e.shiftKey,
340
340
  which: e.which
341
- }), pn = (e) => e, mn = (e, {
341
+ }), mn = (e) => e, fn = (e, {
342
342
  isEditable: t = !1,
343
343
  allowedInputType: n = "all",
344
344
  onChange: o,
345
345
  onStartEditing: s,
346
346
  onStopEditing: c,
347
- transformEnteredValue: l = pn
347
+ transformEnteredValue: l = mn
348
348
  }) => {
349
349
  const [i, d] = ve(!1), [u, a] = ve(
350
350
  void 0
351
- ), h = un(e), { getValue: m, revert: f, setValue: w, setRevertValue: p } = h, C = I(
352
- (y) => {
353
- t && (w(e), p(e), d(!0), s && s(y));
351
+ ), p = hn(e), { getValue: f, revert: m, setValue: C, setRevertValue: h } = p, w = I(
352
+ (x) => {
353
+ t && (C(e), h(e), d(!0), s && s(x));
354
354
  },
355
- [t, s, p, w, e]
356
- ), x = I(() => {
357
- t && (d(!1), c && c(), o && o(m()));
358
- }, [t, o, c, m, d]), b = I(() => {
359
- t && (d(!1), c && c(), f());
360
- }, [t, c, f, d]);
355
+ [t, s, h, C, e]
356
+ ), y = I(() => {
357
+ t && (d(!1), c && c(), o && o(f()));
358
+ }, [t, o, c, f, d]), b = I(() => {
359
+ t && (d(!1), c && c(), m());
360
+ }, [t, c, m, d]);
361
361
  return {
362
362
  onKeyDown: v(
363
- () => xn(
363
+ () => gn(
364
364
  i,
365
365
  t,
366
- C,
366
+ w,
367
367
  a,
368
368
  n,
369
369
  l,
370
- h
370
+ p
371
371
  ),
372
372
  [
373
373
  i,
374
374
  t,
375
- C,
375
+ w,
376
376
  a,
377
377
  n,
378
378
  l,
379
- h
379
+ p
380
380
  ]
381
381
  ),
382
382
  isEditing: i,
383
383
  lastKeyEvent: u,
384
- revertableValue: h,
385
- startEditing: C,
386
- stopEditing: x,
384
+ revertableValue: p,
385
+ startEditing: w,
386
+ stopEditing: y,
387
387
  stopEditingAndRevert: b,
388
- onDoubleClick: C
388
+ onDoubleClick: w
389
389
  };
390
- }, fn = (e) => e === "all" || e === "numeric" || e === "alphanumeric", wn = (e) => e === "all" || e === "alphanumeric" || e === "letters", Cn = (e) => !!e.match(/^[-+*<>]$/), vn = (e) => !!e.match(/^[a-zA-Z0-9]$/), yn = (e) => !isNaN(parseInt(e, 10)), xn = (e, t, n, o, s, c, l) => (i) => {
390
+ }, wn = (e) => e === "all" || e === "numeric" || e === "alphanumeric", Cn = (e) => e === "all" || e === "alphanumeric" || e === "letters", vn = (e) => !!e.match(/^[-+*<>]$/), yn = (e) => !!e.match(/^[a-zA-Z0-9]$/), xn = (e) => !isNaN(parseInt(e, 10)), gn = (e, t, n, o, s, c, l) => (i) => {
391
391
  if (!(i.ctrlKey || i.metaKey || i.shiftKey)) {
392
392
  if (i.key === "Enter" && t)
393
393
  o(void 0), n(), l.commit(), i.preventDefault(), i.stopPropagation();
394
394
  else if (t) {
395
- const d = hn(i);
396
- (yn(i.key) && fn(s) || vn(i.key) && wn(s) || Cn(i.key)) && (n(d), o(d), l.commit(), l.setValue(c(d.key)), i.preventDefault(), i.stopPropagation());
395
+ const d = pn(i);
396
+ (xn(i.key) && wn(s) || yn(i.key) && Cn(s) || vn(i.key)) && (n(d), o(d), l.commit(), l.setValue(c(d.key)), i.preventDefault(), i.stopPropagation());
397
397
  }
398
398
  }
399
- }, gn = (e, t, n, o) => {
399
+ }, bn = (e, t, n, o) => {
400
400
  let s = e, c = t;
401
401
  return t > o && (c = 0), t < 0 && (c = o), e > n && (s = 0), e < 0 && (s = n), {
402
402
  realX: s,
403
403
  realY: c
404
404
  };
405
- }, He = (e, t, n) => Math.max(Math.min(e, n), t), bn = (e, t, n) => ({
405
+ }, He = (e, t, n) => Math.max(Math.min(e, n), t), kn = (e, t, n) => ({
406
406
  rowIndex: He(e.rowIndex, 0, t),
407
407
  colIndex: He(e.colIndex, 0, n)
408
- }), kn = (e, t, n) => {
409
- const o = gn(e.colIndex, e.rowIndex, n, t);
408
+ }), Sn = (e, t, n) => {
409
+ const o = bn(e.colIndex, e.rowIndex, n, t);
410
410
  return {
411
411
  rowIndex: o.realY,
412
412
  colIndex: o.realX
413
413
  };
414
- }, Sn = (e, t, n, o, s, c = "clamped") => {
415
- const l = In(e, t, s);
416
- return c === "clamped" ? bn(l, n - 1, o - 1) : c === "wrapped" ? kn(l, n - 1, o - 1) : l;
417
- }, In = (e, t, n) => n === "up" ? {
414
+ }, In = (e, t, n, o, s, c = "clamped") => {
415
+ const l = En(e, t, s);
416
+ return c === "clamped" ? kn(l, n - 1, o - 1) : c === "wrapped" ? Sn(l, n - 1, o - 1) : l;
417
+ }, En = (e, t, n) => n === "up" ? {
418
418
  rowIndex: e - 1,
419
419
  colIndex: t
420
420
  } : n === "down" ? {
@@ -429,7 +429,7 @@ const Xe = T.createContext({}), xr = ({
429
429
  } : {
430
430
  rowIndex: e,
431
431
  colIndex: t
432
- }, En = (e) => e.replace(/^[^a-z]+|[^\w:.-]+/gi, ""), Rn = (e) => {
432
+ }, Rn = (e) => e.replace(/^[^a-z]+|[^\w:.-]+/gi, ""), Gn = (e) => {
433
433
  if (!e.tableId)
434
434
  throw new Error("tableId is required.");
435
435
  if (e.numRows == null)
@@ -438,15 +438,15 @@ const Xe = T.createContext({}), xr = ({
438
438
  throw new Error("numCols is required.");
439
439
  return e;
440
440
  }, nt = (e) => {
441
- const t = V(Xe);
441
+ const t = $(Xe);
442
442
  return v(
443
- () => Rn({
443
+ () => Gn({
444
444
  ...t,
445
445
  ...e
446
446
  }),
447
447
  [t, e]
448
448
  );
449
- }, Gn = (e) => {
449
+ }, Tn = (e) => {
450
450
  const {
451
451
  rowIndex: t,
452
452
  colIndex: n,
@@ -457,7 +457,7 @@ const Xe = T.createContext({}), xr = ({
457
457
  onCellMove: i,
458
458
  onCellNavigation: d
459
459
  } = nt(e), u = v(
460
- () => Tn(
460
+ () => On(
461
461
  c,
462
462
  t,
463
463
  n,
@@ -478,41 +478,41 @@ const Xe = T.createContext({}), xr = ({
478
478
  d
479
479
  ]
480
480
  ), a = v(
481
- () => On(u),
481
+ () => Pn(u),
482
482
  [u]
483
- ), h = v(
483
+ ), p = v(
484
484
  () => ot(c, t, n),
485
485
  [c, t, n]
486
- ), m = v(
486
+ ), f = v(
487
487
  () => ({
488
488
  tabIndex: 0,
489
489
  onKeyDown: a,
490
- id: h
490
+ id: p
491
491
  }),
492
- [a, h]
492
+ [a, p]
493
493
  );
494
494
  return {
495
495
  focusOnCell: rt,
496
496
  moveHandler: u,
497
- requiredProps: m
497
+ requiredProps: f
498
498
  };
499
- }, Tn = (e, t, n, o, s, c, l, i) => (d) => {
500
- const u = Sn(
499
+ }, On = (e, t, n, o, s, c, l, i) => (d) => {
500
+ const u = In(
501
501
  t,
502
502
  n,
503
503
  o,
504
504
  s,
505
505
  d,
506
506
  c
507
- ), a = n !== u.colIndex, h = t !== u.rowIndex;
508
- (a || h) && (l && l({
507
+ ), a = n !== u.colIndex, p = t !== u.rowIndex;
508
+ (a || p) && (l && l({
509
509
  direction: d,
510
510
  fromRowIndex: t,
511
511
  fromColIndex: n,
512
512
  rowIndex: u.rowIndex,
513
513
  colIndex: u.colIndex,
514
514
  colDidChange: a,
515
- rowDidChange: h
515
+ rowDidChange: p
516
516
  }), rt(e, u)), i && i({
517
517
  direction: d,
518
518
  fromRowIndex: t,
@@ -520,16 +520,16 @@ const Xe = T.createContext({}), xr = ({
520
520
  rowIndex: u.rowIndex,
521
521
  colIndex: u.colIndex,
522
522
  colDidChange: a,
523
- rowDidChange: h,
524
- cellDidChange: a || h
523
+ rowDidChange: p,
524
+ cellDidChange: a || p
525
525
  });
526
- }, ot = (e, t, n) => En(`table-${e}-${t}-${n}`), On = (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, rt = (e, t) => {
526
+ }, ot = (e, t, n) => Rn(`table-${e}-${t}-${n}`), Pn = (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, rt = (e, t) => {
527
527
  const n = document.getElementById(
528
528
  ot(e, t.rowIndex, t.colIndex)
529
529
  );
530
530
  n && n.focus();
531
531
  }, he = (e, t) => {
532
- const { tableId: n } = nt(t), o = Gn(t), s = mn(e, t), c = v(
532
+ const { tableId: n } = nt(t), o = Tn(t), s = fn(e, t), c = v(
533
533
  () => ({
534
534
  rowIndex: t.rowIndex,
535
535
  colIndex: t.colIndex
@@ -542,27 +542,27 @@ const Xe = T.createContext({}), xr = ({
542
542
  }, [s, o, n, c]), d = I(() => {
543
543
  s.stopEditingAndRevert(), o.focusOnCell(n, c);
544
544
  }, [s, o, n, c]), u = I(
545
- (f) => {
546
- s.stopEditing(), o.moveHandler(f);
545
+ (m) => {
546
+ s.stopEditing(), o.moveHandler(m);
547
547
  },
548
548
  [s, o]
549
549
  ), a = I(
550
- (f) => {
551
- o.moveHandler(f);
550
+ (m) => {
551
+ o.moveHandler(m);
552
552
  },
553
553
  [o]
554
- ), h = I(
555
- (f) => {
556
- s.isEditing || o.requiredProps.onKeyDown(f) || s.onKeyDown(f);
554
+ ), p = I(
555
+ (m) => {
556
+ s.isEditing || o.requiredProps.onKeyDown(m) || s.onKeyDown(m);
557
557
  },
558
558
  [s, o.requiredProps]
559
- ), m = v(
559
+ ), f = v(
560
560
  () => ({
561
561
  ...o.requiredProps,
562
- onKeyDown: h,
562
+ onKeyDown: p,
563
563
  onDoubleClick: s.onDoubleClick
564
564
  }),
565
- [h, s.onDoubleClick, o.requiredProps]
565
+ [p, s.onDoubleClick, o.requiredProps]
566
566
  );
567
567
  return {
568
568
  isEditing: s.isEditing,
@@ -570,14 +570,14 @@ const Xe = T.createContext({}), xr = ({
570
570
  editorValue: s.revertableValue.value,
571
571
  setEditorValue: s.revertableValue.setValue,
572
572
  revertEditorValue: s.revertableValue.revert,
573
- requiredProps: m,
573
+ requiredProps: f,
574
574
  move: a,
575
575
  startEditing: l,
576
576
  stopEditing: i,
577
577
  stopEditingAndRevert: d,
578
578
  stopEditingAndMove: u
579
579
  };
580
- }, Er = function({
580
+ }, Gr = function({
581
581
  allowedInputType: t,
582
582
  value: n = "",
583
583
  entityId: o,
@@ -588,22 +588,22 @@ const Xe = T.createContext({}), xr = ({
588
588
  colIndex: d,
589
589
  rowIndex: u,
590
590
  numCols: a,
591
- numRows: h,
592
- warningOnEmpty: m
591
+ numRows: p,
592
+ warningOnEmpty: f
593
593
  }) {
594
- const f = Vt(), w = Be(i.selectors.getState), p = Be(l.selectors.getState), C = w.entities[o], x = p.entities[o], b = I((H = "") => {
595
- f(H === n ? i.actions.clearEntity(o) : i.actions.setEntity({
594
+ const m = _t(), C = Be(i.selectors.getState), h = Be(l.selectors.getState), w = C.entities[o], y = h.entities[o], b = I((H = "") => {
595
+ m(H === n ? i.actions.clearEntity(o) : i.actions.setEntity({
596
596
  id: o,
597
597
  originalValue: n,
598
598
  newValue: H,
599
599
  modified: !0
600
600
  }));
601
- }, [f, o, i.actions, n]), {
601
+ }, [m, o, i.actions, n]), {
602
602
  isEditing: S,
603
- stopEditing: y,
604
- editorValue: A,
603
+ stopEditing: x,
604
+ editorValue: B,
605
605
  setEditorValue: k,
606
- stopEditingAndRevert: L,
606
+ stopEditingAndRevert: A,
607
607
  stopEditingAndMove: O,
608
608
  lastKeyEvent: z,
609
609
  requiredProps: {
@@ -614,21 +614,21 @@ const Xe = T.createContext({}), xr = ({
614
614
  rowIndex: u,
615
615
  colIndex: d,
616
616
  numCols: a,
617
- numRows: h,
617
+ numRows: p,
618
618
  tableId: "serviceManningMatrixTable",
619
619
  onChange: b,
620
620
  isEditable: s,
621
621
  allowedInputType: t
622
- }), K = I((H) => {
623
- H.key === "Delete" ? (f(i.actions.clearEntity(o)), f(l.actions.setEntityFields(o, {
622
+ }), M = I((H) => {
623
+ H.key === "Delete" ? (m(i.actions.clearEntity(o)), m(l.actions.setEntityFields(o, {
624
624
  hasError: !1,
625
625
  errorMessage: void 0
626
626
  }))) : D(H);
627
- }, [D, o, f, i.actions, l.actions]);
627
+ }, [D, o, m, i.actions, l.actions]);
628
628
  return /* @__PURE__ */ g(E, {
629
629
  height: Se,
630
630
  width: "100%",
631
- borderBottom: oe,
631
+ borderBottom: re,
632
632
  hoverBackground: "var(--ui7)",
633
633
  alignItems: "center",
634
634
  children: [c && /* @__PURE__ */ r(N, {
@@ -642,39 +642,39 @@ const Xe = T.createContext({}), xr = ({
642
642
  borderRadius: "4px",
643
643
  focusBorder: S ? void 0 : "1px solid var(--primary-action-color)",
644
644
  hoverBorder: S ? void 0 : "var(--ui5) solid 1px;",
645
- onKeyDown: K,
645
+ onKeyDown: M,
646
646
  ...j,
647
647
  children: /* @__PURE__ */ r(N, {
648
648
  row: !0,
649
649
  alignItems: "center",
650
650
  children: S ? /* @__PURE__ */ r(ge, {
651
651
  onValueChange: k,
652
- value: A,
653
- onDone: y,
654
- onEsc: L,
652
+ value: B,
653
+ onDone: x,
654
+ onEsc: A,
655
655
  autoFocus: !0,
656
656
  selectAllOnMount: !z,
657
657
  onMove: O
658
658
  }) : /* @__PURE__ */ g(G, {
659
659
  children: [/* @__PURE__ */ r(U, {
660
660
  color: s ? "var(--primary-action-color)" : void 0,
661
- variant: C != null && C.modified ? "bold" : void 0,
661
+ variant: w != null && w.modified ? "bold" : void 0,
662
662
  children: n
663
- }), (C == null ? void 0 : C.newValue) !== void 0 && /* @__PURE__ */ g(G, {
663
+ }), (w == null ? void 0 : w.newValue) !== void 0 && /* @__PURE__ */ g(G, {
664
664
  children: [/* @__PURE__ */ r(N, {
665
665
  children: /* @__PURE__ */ r(F, {
666
- icon: Mt,
666
+ icon: Vt,
667
667
  size: 12
668
668
  })
669
669
  }), /* @__PURE__ */ r(U, {
670
670
  color: "var(--primary-action-color)",
671
671
  variant: "bold",
672
- children: C.newValue
672
+ children: w.newValue
673
673
  })]
674
- }), x && be(x) && /* @__PURE__ */ r(B, {
674
+ }), y && be(y) && /* @__PURE__ */ r(L, {
675
675
  num: 2
676
- }), m && (C == null ? void 0 : C.modified) && (C == null ? void 0 : C.newValue) === "" ? /* @__PURE__ */ r(re, {
677
- label: m,
676
+ }), f && (w == null ? void 0 : w.modified) && (w == null ? void 0 : w.newValue) === "" ? /* @__PURE__ */ r(se, {
677
+ label: f,
678
678
  zIndex: 100,
679
679
  children: /* @__PURE__ */ r(F, {
680
680
  icon: ue,
@@ -682,7 +682,7 @@ const Xe = T.createContext({}), xr = ({
682
682
  size: 14
683
683
  })
684
684
  }) : /* @__PURE__ */ r(Ye, {
685
- crudStatus: x
685
+ crudStatus: y
686
686
  })]
687
687
  })
688
688
  })
@@ -690,40 +690,40 @@ const Xe = T.createContext({}), xr = ({
690
690
  num: c
691
691
  })]
692
692
  });
693
- }, st = $(""), ct = $(
693
+ }, st = K(""), ct = K(
694
694
  void 0
695
- ), lt = $(void 0), it = $(void 0), Pn = () => ({
696
- sortOrder: _t(),
695
+ ), lt = K(void 0), it = K(void 0), An = () => ({
696
+ sortOrder: jt(),
697
697
  selectedIds: De(),
698
698
  expandedRows: De(),
699
- fields: jt()
700
- }), M = (e, t) => `${e}.${t}`, at = (e = void 0, t = !1, n = [], o = []) => ({
701
- sortOrder: Wt(e, t),
699
+ fields: Wt()
700
+ }), V = (e, t) => `${e}.${t}`, at = (e = void 0, t = !1, n = [], o = []) => ({
701
+ sortOrder: qt(e, t),
702
702
  selectedIds: Ne(n),
703
703
  expandedRows: Ne(o),
704
704
  fields: { lastSelectedId: void 0 }
705
- }), An = (e, t) => {
705
+ }), Ln = (e, t) => {
706
706
  var l;
707
707
  const n = de(
708
- M(e, "sortOrder"),
709
- qt(t == null ? void 0 : t.sortOrder)
708
+ V(e, "sortOrder"),
709
+ Ft(t == null ? void 0 : t.sortOrder)
710
710
  ), o = de(
711
- M(e, "selectedIds"),
711
+ V(e, "selectedIds"),
712
712
  ze(t == null ? void 0 : t.selectedIds)
713
713
  ), s = de(
714
- M(e, "expandedRows"),
714
+ V(e, "expandedRows"),
715
715
  ze(t == null ? void 0 : t.expandedRows)
716
716
  ), c = de(
717
- M(e, "fields"),
718
- Ft((l = t == null ? void 0 : t.fields) != null ? l : {})
717
+ V(e, "fields"),
718
+ Ut((l = t == null ? void 0 : t.fields) != null ? l : {})
719
719
  );
720
- return Ut({
720
+ return Zt({
721
721
  sortOrder: n,
722
722
  selectedIds: o,
723
723
  expandedRows: s,
724
724
  fields: c
725
725
  });
726
- }, Re = () => V(st), R = () => V(it), Y = () => V(ct), se = () => V(lt), dt = $([]), Z = () => V(
726
+ }, Re = () => $(st), R = () => $(it), Q = () => $(ct), ce = () => $(lt), dt = K([]), Z = () => $(
727
727
  dt
728
728
  ), ut = () => {
729
729
  const e = R(), t = Z();
@@ -732,9 +732,9 @@ const Xe = T.createContext({}), xr = ({
732
732
  () => t.map((o) => o.groupConfig.columnOrder.length).reduce((o, s) => o + s, 0),
733
733
  [t]
734
734
  );
735
- }, ht = $(void 0), Ln = () => V(ht), pt = $(void 0), Bn = $(!1), Dn = () => V(pt), Nn = $("standard"), mt = $({}), Ge = () => V(mt), ft = $(0), Te = () => V(ft), wt = (e, t, n) => {
735
+ }, ht = K(void 0), Bn = () => $(ht), pt = K(void 0), Dn = () => $(pt), mt = K(void 0), Nn = K(!1), zn = () => $(mt), Kn = K("standard"), ft = K({}), Ge = () => $(ft), wt = K(0), Te = () => $(wt), Ct = (e, t, n) => {
736
736
  var o;
737
- return e ? Xt(
737
+ return e ? Yt(
738
738
  (o = t == null ? void 0 : t.map((s) => {
739
739
  const c = e == null ? void 0 : e[s];
740
740
  return {
@@ -758,26 +758,26 @@ const Xe = T.createContext({}), xr = ({
758
758
  ];
759
759
  }, Oe = (e, t, n) => {
760
760
  if (e)
761
- return e === !0 ? oe : e;
761
+ return e === !0 ? re : e;
762
762
  if (!t && !!n)
763
- return n === !0 ? oe : n;
763
+ return n === !0 ? re : n;
764
764
  }, pe = (e, t, n) => {
765
765
  if (!(e === 0 || t !== 0) && n)
766
- return n === !0 ? oe : n;
767
- }, ce = (e) => {
766
+ return n === !0 ? re : n;
767
+ }, le = (e) => {
768
768
  const { columns: t } = R(), n = t[e];
769
769
  if (!n)
770
770
  throw new Error("No config for column with id=" + e);
771
771
  return n;
772
- }, zn = () => {
772
+ }, Hn = () => {
773
773
  var n, o, s;
774
774
  const e = R(), t = (s = (o = (n = Z()) == null ? void 0 : n[0]) == null ? void 0 : o.groupConfig.columnOrder) == null ? void 0 : s[0];
775
775
  return t ? e.columns[t] : void 0;
776
- }, Kn = () => {
776
+ }, $n = () => {
777
777
  var s;
778
778
  const e = R(), t = Z(), n = t[t.length - 1], o = (s = n == null ? void 0 : n.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1]) != null ? s : void 0;
779
779
  return o ? e.columns[o] : void 0;
780
- }, Hn = function({
780
+ }, Mn = function({
781
781
  columnId: t,
782
782
  groupConfig: n,
783
783
  borderFromGroup: o,
@@ -791,37 +791,37 @@ const Xe = T.createContext({}), xr = ({
791
791
  render: d,
792
792
  contentLeft: u,
793
793
  contentRight: a,
794
- loading: h,
795
- error: m
794
+ loading: p,
795
+ error: f
796
796
  } = n, {
797
- width: f,
798
- minWidth: w,
799
- zIndex: p,
800
- borderLeft: C
801
- } = ce(t), x = R(), {
797
+ width: m,
798
+ minWidth: C,
799
+ zIndex: h,
800
+ borderLeft: w
801
+ } = le(t), y = R(), {
802
802
  stickyHeader: b,
803
803
  headerRowOffsetTop: S
804
- } = x, y = "columnGroupOrder" in x ? x.stickyColumnGroups : void 0, A = $n(o, C), k = c && (y === "first" || y === "both"), L = l && (y === "last" || y === "both"), O = k || L || b, z = k || L;
804
+ } = y, x = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, B = Vn(o, w), k = c && (x === "first" || x === "both"), A = l && (x === "last" || x === "both"), O = k || A || b, z = k || A;
805
805
  return /* @__PURE__ */ r("th", {
806
806
  colSpan: s,
807
807
  style: {
808
808
  position: O ? "sticky" : void 0,
809
809
  height: "var(--current-row-height)",
810
- width: f,
811
- minWidth: (D = w != null ? w : f) != null ? D : "20px",
810
+ width: m,
811
+ minWidth: (D = C != null ? C : m) != null ? D : "20px",
812
812
  background: O ? "white" : "transparent",
813
813
  left: k ? "var(--current-left-offset)" : void 0,
814
- right: L ? "0px" : void 0,
814
+ right: A ? "0px" : void 0,
815
815
  top: b ? S != null ? S : "0px" : void 0,
816
- borderLeft: A,
817
- zIndex: b && z ? "var(--swui-sticky-column-group-label-z-index)" : z ? "var(--swui-sticky-group-group-z-index)" : b ? p != null ? p : "var(--swui-sticky-header-column-group-z-index)" : p != null ? p : 1,
818
- boxShadow: k ? "var(--swui-sticky-column-shadow-right)" : L ? "var(--swui-sticky-column-shadow-left)" : void 0
816
+ borderLeft: B,
817
+ zIndex: b && z ? "var(--swui-sticky-column-group-label-z-index)" : z ? "var(--swui-sticky-group-group-z-index)" : b ? h != null ? h : "var(--swui-sticky-header-column-group-z-index)" : h != null ? h : 1,
818
+ boxShadow: k ? "var(--swui-sticky-column-shadow-right)" : A ? "var(--swui-sticky-column-shadow-left)" : void 0
819
819
  },
820
820
  children: /* @__PURE__ */ r(E, {
821
821
  alignItems: "center",
822
822
  children: /* @__PURE__ */ g(G, {
823
823
  children: [u && /* @__PURE__ */ g(G, {
824
- children: [/* @__PURE__ */ r(B, {}), u, /* @__PURE__ */ r(B, {
824
+ children: [/* @__PURE__ */ r(L, {}), u, /* @__PURE__ */ r(L, {
825
825
  num: 0.5
826
826
  })]
827
827
  }), d ? d(n) : /* @__PURE__ */ r(N, {
@@ -831,11 +831,11 @@ const Xe = T.createContext({}), xr = ({
831
831
  children: i
832
832
  })
833
833
  }), a && /* @__PURE__ */ g(G, {
834
- children: [/* @__PURE__ */ r(B, {
834
+ children: [/* @__PURE__ */ r(L, {
835
835
  num: 0.5
836
836
  }), a]
837
- }), (m || h) && /* @__PURE__ */ r(N, {}), h ? /* @__PURE__ */ r(ye, {}) : m ? /* @__PURE__ */ r(re, {
838
- label: m,
837
+ }), (f || p) && /* @__PURE__ */ r(N, {}), p ? /* @__PURE__ */ r(ye, {}) : f ? /* @__PURE__ */ r(se, {
838
+ label: f,
839
839
  placement: "bottom",
840
840
  appendTo: document.body,
841
841
  children: /* @__PURE__ */ r(F, {
@@ -847,25 +847,25 @@ const Xe = T.createContext({}), xr = ({
847
847
  })
848
848
  })
849
849
  });
850
- }, $n = (e, t) => {
850
+ }, Vn = (e, t) => {
851
851
  if (e)
852
852
  return e;
853
853
  if (t)
854
854
  return "1px solid transparent";
855
- }, Mn = (e, t, n, o) => ({
856
- top: e ? Vn(e, n) : void 0,
855
+ }, _n = (e, t, n, o) => ({
856
+ top: e ? jn(e, n) : void 0,
857
857
  background: e || t ? "white" : void 0,
858
858
  position: e || t ? "sticky" : void 0,
859
859
  boxShadow: t ? "var(--swui-sticky-column-shadow-right)" : void 0,
860
860
  zIndex: e || t ? o != null ? o : "var(--swui-sticky-header-z-index)" : o
861
- }), Vn = (e, t) => {
861
+ }), jn = (e, t) => {
862
862
  if (e && t)
863
863
  return t;
864
864
  if (t)
865
865
  return t;
866
866
  if (e)
867
867
  return 0;
868
- }, _n = T.memo(function({
868
+ }, Wn = T.memo(function({
869
869
  height: t = Se
870
870
  }) {
871
871
  const n = Z(), o = R(), {
@@ -876,43 +876,43 @@ const Xe = T.createContext({}), xr = ({
876
876
  stickyHeader: d,
877
877
  stickyCheckboxColumn: u,
878
878
  headerRowOffsetTop: a
879
- } = o, h = Mn(d, u, a, i), m = d ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
879
+ } = o, p = _n(d, u, a, i), f = d ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
880
880
  return /* @__PURE__ */ g("tr", {
881
881
  style: {
882
882
  height: t,
883
883
  borderLeft: ke
884
884
  },
885
885
  children: [l && /* @__PURE__ */ r("th", {
886
- style: h
886
+ style: p
887
887
  }), c && /* @__PURE__ */ r("th", {
888
888
  style: {
889
- ...h,
889
+ ...p,
890
890
  width: "var(--swui-expand-cell-width)",
891
891
  left: u ? "0px" : void 0,
892
- zIndex: m
892
+ zIndex: f
893
893
  }
894
894
  }), s && /* @__PURE__ */ r("th", {
895
895
  style: {
896
- ...h,
896
+ ...p,
897
897
  left: u && c ? "var(--swui-expand-cell-width)" : u ? "0px" : void 0,
898
- zIndex: m
898
+ zIndex: f
899
899
  }
900
900
  }), n.map(({
901
- groupConfig: f,
902
- groupId: w
903
- }, p) => /* @__PURE__ */ r(Hn, {
904
- isFirstGroup: p === 0,
905
- isLastGroup: p === n.length - 1,
906
- groupConfig: f,
907
- columnId: f.columnOrder[0],
908
- colSpan: f.columnOrder.length,
909
- borderFromGroup: pe(p, 0, f.borderLeft)
910
- }, w)), l && /* @__PURE__ */ r("th", {
911
- style: h
901
+ groupConfig: m,
902
+ groupId: C
903
+ }, h) => /* @__PURE__ */ r(Mn, {
904
+ isFirstGroup: h === 0,
905
+ isLastGroup: h === n.length - 1,
906
+ groupConfig: m,
907
+ columnId: m.columnOrder[0],
908
+ colSpan: m.columnOrder.length,
909
+ borderFromGroup: pe(h, 0, m.borderLeft)
910
+ }, C)), l && /* @__PURE__ */ r("th", {
911
+ style: p
912
912
  })]
913
913
  });
914
- }), jn = (e) => {
915
- const t = wt(
914
+ }), qn = (e) => {
915
+ const t = Ct(
916
916
  "columnGroups" in e ? e.columnGroups : void 0,
917
917
  "columnGroupOrder" in e ? e.columnGroupOrder : void 0,
918
918
  "columnOrder" in e ? e.columnOrder : void 0
@@ -920,23 +920,23 @@ const Xe = T.createContext({}), xr = ({
920
920
  let n = {}, o = 0;
921
921
  return e.showRowCheckbox && o++, e.enableExpandCollapse && o++, t.forEach((s) => {
922
922
  s.groupConfig.columnOrder.forEach((c) => {
923
- Wn(e.columns[c]) && (n[c] = o++);
923
+ Fn(e.columns[c]) && (n[c] = o++);
924
924
  });
925
925
  }), {
926
926
  columnIndexPerColumnId: n,
927
927
  numNavigableColumns: o
928
928
  };
929
- }, Wn = (e) => !e.disableGridCell, Ct = $({
929
+ }, Fn = (e) => !e.disableGridCell, vt = K({
930
930
  columnIndexPerColumnId: {},
931
931
  numNavigableColumns: 0
932
- }), vt = () => V(
933
- Ct
934
- ), qn = (e) => {
935
- "columnGroupOrder" in e && (Fn(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && $e(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && $e(
932
+ }), yt = () => $(
933
+ vt
934
+ ), Un = (e) => {
935
+ "columnGroupOrder" in e && (Zn(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && $e(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && $e(
936
936
  e,
937
937
  e.columnGroupOrder.length - 1
938
938
  ));
939
- }, Fn = (e) => {
939
+ }, Zn = (e) => {
940
940
  Object.keys(e.columns).forEach((n) => {
941
941
  if (e.columns[n].sticky)
942
942
  throw new Error(
@@ -960,13 +960,13 @@ const Xe = T.createContext({}), xr = ({
960
960
  "All columns in sticky column group must have width set."
961
961
  );
962
962
  });
963
- }, Un = (e) => {
963
+ }, Jn = (e) => {
964
964
  const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ? Me(
965
- Jn(e),
965
+ Yn(e),
966
966
  e.columns,
967
967
  !0
968
968
  ) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ? Me(
969
- Xn(e),
969
+ Qn(e),
970
970
  e.columns,
971
971
  !1
972
972
  ) : void 0;
@@ -981,17 +981,17 @@ const Xe = T.createContext({}), xr = ({
981
981
  ];
982
982
  for (let l = 0; l < e.length; l++) {
983
983
  const i = e[l], d = t == null ? void 0 : t[i];
984
- o[i] = Zn(s), s.push((c = d == null ? void 0 : d.width) != null ? c : "0px");
984
+ o[i] = Xn(s), s.push((c = d == null ? void 0 : d.width) != null ? c : "0px");
985
985
  }
986
986
  return o;
987
- }, Zn = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", Jn = (e) => {
987
+ }, Xn = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", Yn = (e) => {
988
988
  var o, s, c;
989
989
  const t = (o = e.columnGroupOrder) == null ? void 0 : o[0];
990
990
  if (!t)
991
991
  return [];
992
992
  const n = (s = e.columnGroups) == null ? void 0 : s[t];
993
993
  return (c = n == null ? void 0 : n.columnOrder) != null ? c : [];
994
- }, Xn = (e) => {
994
+ }, Qn = (e) => {
995
995
  var s, c, l;
996
996
  const t = (c = e.columnGroupOrder) == null ? void 0 : c[((s = e.columnGroupOrder) == null ? void 0 : s.length) - 1];
997
997
  if (!t)
@@ -1001,7 +1001,7 @@ const Xe = T.createContext({}), xr = ({
1001
1001
  return [];
1002
1002
  const o = [...n.columnOrder];
1003
1003
  return o.reverse(), o;
1004
- }, Yn = (e) => "columnGroups" in e ? eo(e) : Qn(e), Qn = (e) => Object.keys(e.columns).reduce((n, o) => {
1004
+ }, eo = (e) => "columnGroups" in e ? no(e) : to(e), to = (e) => Object.keys(e.columns).reduce((n, o) => {
1005
1005
  var l;
1006
1006
  const s = e.columns[o], c = Boolean(s.sticky);
1007
1007
  return n[o] = {
@@ -1012,59 +1012,59 @@ const Xe = T.createContext({}), xr = ({
1012
1012
  isFirstColumnInLastGroup: !1,
1013
1013
  isLastColumnInFirstGroup: !1
1014
1014
  }, n;
1015
- }, {}), eo = (e) => {
1016
- const t = {}, n = e.columnGroupOrder, o = Un(e), s = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", c = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
1015
+ }, {}), no = (e) => {
1016
+ const t = {}, n = e.columnGroupOrder, o = Jn(e), s = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", c = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
1017
1017
  return n.forEach((l, i) => {
1018
1018
  const u = e.columnGroups[l].columnOrder;
1019
- u.forEach((a, h) => {
1020
- const m = i === 0, f = i === n.length - 1, w = m && s, p = f && c, C = h === 0 && f, x = h === u.length - 1 && m;
1019
+ u.forEach((a, p) => {
1020
+ const f = i === 0, m = i === n.length - 1, C = f && s, h = m && c, w = p === 0 && m, y = p === u.length - 1 && f;
1021
1021
  t[a] = {
1022
- sticky: w || p,
1023
- left: w ? o[a] : void 0,
1024
- right: p ? o[a] : void 0,
1025
- type: w ? "first-group" : p ? "last-group" : void 0,
1026
- isFirstColumnInLastGroup: C,
1027
- isLastColumnInFirstGroup: x
1022
+ sticky: C || h,
1023
+ left: C ? o[a] : void 0,
1024
+ right: h ? o[a] : void 0,
1025
+ type: C ? "first-group" : h ? "last-group" : void 0,
1026
+ isFirstColumnInLastGroup: w,
1027
+ isLastColumnInFirstGroup: y
1028
1028
  };
1029
1029
  });
1030
1030
  }), t;
1031
- }, to = (e, t) => ({
1032
- setSelectedIds: (n) => X(
1033
- M(e, "selectedIds"),
1031
+ }, oo = (e, t) => ({
1032
+ setSelectedIds: (n) => Y(
1033
+ V(e, "selectedIds"),
1034
1034
  t.selectedIds.setSelectedIds(n)
1035
1035
  ),
1036
- clearSelection: () => X(
1037
- M(e, "selectedIds"),
1036
+ clearSelection: () => Y(
1037
+ V(e, "selectedIds"),
1038
1038
  t.selectedIds.clearSelectedIds()
1039
1039
  ),
1040
- expandByIds: (n) => X(
1041
- M(e, "expandedRows"),
1040
+ expandByIds: (n) => Y(
1041
+ V(e, "expandedRows"),
1042
1042
  t.expandedRows.setSelectedIds(n)
1043
1043
  ),
1044
- collapseAll: () => X(
1045
- M(e, "expandedRows"),
1044
+ collapseAll: () => Y(
1045
+ V(e, "expandedRows"),
1046
1046
  t.expandedRows.clearSelectedIds()
1047
1047
  ),
1048
- sortBy: (n, o) => X(
1049
- M(e, "sortOrder"),
1048
+ sortBy: (n, o) => Y(
1049
+ V(e, "sortOrder"),
1050
1050
  t.sortOrder.sortBy(n, o != null ? o : !1)
1051
1051
  ),
1052
- clearSortOrder: () => X(
1053
- M(e, "sortOrder"),
1052
+ clearSortOrder: () => Y(
1053
+ V(e, "sortOrder"),
1054
1054
  t.sortOrder.clearSortOrder()
1055
1055
  ),
1056
- setLastSelectedId: (n) => X(
1057
- M(e, "fields"),
1056
+ setLastSelectedId: (n) => Y(
1057
+ V(e, "fields"),
1058
1058
  t.fields.setEntityFields({ lastSelectedId: n })
1059
1059
  )
1060
- }), no = (e, t = at()) => {
1061
- const [n, o] = It(
1062
- An(e),
1060
+ }), ro = (e, t = at()) => {
1061
+ const [n, o] = Et(
1062
+ Ln(e),
1063
1063
  t
1064
1064
  ), s = v(
1065
- () => to(
1065
+ () => oo(
1066
1066
  e,
1067
- Pn()
1067
+ An()
1068
1068
  ),
1069
1069
  [e]
1070
1070
  );
@@ -1078,26 +1078,63 @@ const Xe = T.createContext({}), xr = ({
1078
1078
  [n, s, o]
1079
1079
  )
1080
1080
  };
1081
- }, oo = (e) => (e.rowIndent ? 2 : 0) + (e.enableExpandCollapse ? 1 : 0) + (e.showRowCheckbox ? 1 : 0) + ro(e), ro = (e) => {
1081
+ }, so = (e) => (e.rowIndent ? 2 : 0) + (e.enableExpandCollapse ? 1 : 0) + (e.showRowCheckbox ? 1 : 0) + co(e), co = (e) => {
1082
1082
  var t, n;
1083
1083
  return "columnGroupOrder" in e ? e.columnGroupOrder.reduce((o, s) => {
1084
1084
  var l, i, d;
1085
1085
  const c = (l = e.columnGroups) == null ? void 0 : l[s];
1086
1086
  return o + ((d = (i = c == null ? void 0 : c.columnOrder) == null ? void 0 : i.length) != null ? d : 0);
1087
1087
  }, 0) : (n = (t = e.columnOrder) == null ? void 0 : t.length) != null ? n : 0;
1088
- }, so = "_standardTable_1iok0_1", co = "_relaxed_1iok0_37", lo = "_condensed_1iok0_41", io = "_compact_1iok0_45", Ve = {
1089
- standardTable: so,
1090
- relaxed: co,
1091
- condensed: lo,
1092
- compact: io
1093
- }, ao = (e, t) => e != null && t == null ? -1 : e == null && t != null ? 1 : Ce(e, t, "number") ? Number(e) - Number(t) : Ce(e, t, "boolean") ? Number(t) - Number(e) : Ce(e, t, "string") ? String(e).localeCompare(String(t)) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : 0, Ce = (e, t, n) => typeof e === n && typeof t === n, uo = (e) => {
1088
+ }, lo = () => {
1089
+ const e = R(), t = Z(), n = e.enableExpandCollapse || e.showRowCheckbox, o = Lt(e.rowIndent);
1090
+ return /* @__PURE__ */ g(G, {
1091
+ children: [o ? /* @__PURE__ */ r("colgroup", {
1092
+ children: /* @__PURE__ */ r("col", {
1093
+ style: {
1094
+ width: `calc(var(--swui-metrics-indent) * ${o})`
1095
+ }
1096
+ })
1097
+ }) : null, n && /* @__PURE__ */ g("colgroup", {
1098
+ children: [e.enableExpandCollapse && /* @__PURE__ */ r("col", {
1099
+ style: {
1100
+ width: "var(--swui-expand-cell-width)"
1101
+ }
1102
+ }), e.showRowCheckbox && /* @__PURE__ */ r("col", {
1103
+ style: {
1104
+ width: "var(--swui-checkbox-cell-width)"
1105
+ }
1106
+ })]
1107
+ }), t.map(({
1108
+ groupConfig: s,
1109
+ groupId: c
1110
+ }) => /* @__PURE__ */ r("colgroup", {
1111
+ children: s.columnOrder.map((l) => /* @__PURE__ */ r("col", {
1112
+ style: {
1113
+ width: e.columns[l].width,
1114
+ minWidth: e.columns[l].minWidth
1115
+ }
1116
+ }, l))
1117
+ }, c)), o ? /* @__PURE__ */ r("colgroup", {
1118
+ children: /* @__PURE__ */ r("col", {
1119
+ style: {
1120
+ width: `calc(var(--swui-metrics-indent) * ${o})`
1121
+ }
1122
+ })
1123
+ }) : null]
1124
+ });
1125
+ }, io = "_standardTable_1iok0_1", ao = "_relaxed_1iok0_37", uo = "_condensed_1iok0_41", ho = "_compact_1iok0_45", Ve = {
1126
+ standardTable: io,
1127
+ relaxed: ao,
1128
+ condensed: uo,
1129
+ compact: ho
1130
+ }, po = (e, t) => e != null && t == null ? -1 : e == null && t != null ? 1 : Ce(e, t, "number") ? Number(e) - Number(t) : Ce(e, t, "boolean") ? Number(t) - Number(e) : Ce(e, t, "string") ? String(e).localeCompare(String(t)) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : 0, Ce = (e, t, n) => typeof e === n && typeof t === n, mo = (e) => {
1094
1131
  const { columns: t } = R();
1095
1132
  if (!e)
1096
1133
  return;
1097
1134
  const n = t[e];
1098
1135
  if (!!n)
1099
1136
  return n.itemValueResolver;
1100
- }, ho = T.memo(function({
1137
+ }, fo = T.memo(function({
1101
1138
  value: t,
1102
1139
  onValueChange: n,
1103
1140
  colIndex: o,
@@ -1107,25 +1144,25 @@ const Xe = T.createContext({}), xr = ({
1107
1144
  onValueChangeAndShift: i,
1108
1145
  shiftPressedRef: d
1109
1146
  }) {
1110
- const u = ut(), a = Re(), h = he(Boolean(t), {
1147
+ const u = ut(), a = Re(), p = he(Boolean(t), {
1111
1148
  colIndex: o,
1112
1149
  numCols: u,
1113
1150
  numRows: c,
1114
1151
  rowIndex: s,
1115
1152
  tableId: a
1116
1153
  }), {
1117
- requiredProps: m
1118
- } = h, f = I((w) => {
1119
- d.current ? i == null || i(w) : n == null || n(w);
1154
+ requiredProps: f
1155
+ } = p, m = I((C) => {
1156
+ d.current ? i == null || i(C) : n == null || n(C);
1120
1157
  }, [n, i, d]);
1121
1158
  return /* @__PURE__ */ r(Ue, {
1122
1159
  size: "small",
1123
1160
  disabled: l,
1124
1161
  value: t,
1125
- onValueChange: f,
1126
- ...m
1162
+ onValueChange: m,
1163
+ ...f
1127
1164
  });
1128
- }), po = (e, t, n) => {
1165
+ }), wo = (e, t, n) => {
1129
1166
  if (t == null || n == null || e == null || t === n)
1130
1167
  return;
1131
1168
  const o = e.indexOf(t), s = e.indexOf(n);
@@ -1133,27 +1170,27 @@ const Xe = T.createContext({}), xr = ({
1133
1170
  return;
1134
1171
  const c = Math.min(o, s), l = Math.max(o, s);
1135
1172
  return e.slice(c, l + 1);
1136
- }, mo = (e, t) => {
1173
+ }, Co = (e, t) => {
1137
1174
  const { keyResolver: n } = R(), {
1138
1175
  selectedIds: { selectedIds: o },
1139
1176
  fields: { lastSelectedId: s }
1140
- } = Y(), {
1177
+ } = Q(), {
1141
1178
  actions: { setSelectedIds: c, setLastSelectedId: l },
1142
1179
  dispatch: i
1143
- } = se(), d = v(() => n(e), [n, e]), u = v(
1180
+ } = ce(), d = v(() => n(e), [n, e]), u = v(
1144
1181
  () => o.includes(d),
1145
1182
  [o, d]
1146
- ), { toggle: a, addMultiple: h, removeMultiple: m } = qe(
1183
+ ), { toggle: a, addMultiple: p, removeMultiple: f } = qe(
1147
1184
  o,
1148
- (p) => i(c(p))
1149
- ), f = I(() => {
1185
+ (h) => i(c(h))
1186
+ ), m = I(() => {
1150
1187
  if (t && s) {
1151
- const p = po(
1188
+ const h = wo(
1152
1189
  t,
1153
1190
  s,
1154
1191
  d
1155
1192
  );
1156
- p != null && p.length ? u ? m(p) : h(p) : a(d);
1193
+ h != null && h.length ? u ? f(h) : p(h) : a(d);
1157
1194
  } else
1158
1195
  a(d);
1159
1196
  i(l(d));
@@ -1164,24 +1201,24 @@ const Xe = T.createContext({}), xr = ({
1164
1201
  l,
1165
1202
  d,
1166
1203
  u,
1167
- m,
1168
- h,
1204
+ f,
1205
+ p,
1169
1206
  a
1170
- ]), w = I(() => {
1207
+ ]), C = I(() => {
1171
1208
  a(d), i(l(d));
1172
1209
  }, [a, d, i, l]);
1173
1210
  return {
1174
1211
  isSelected: u,
1175
- toggleSelected: w,
1176
- shiftAndToggleSelected: f
1212
+ toggleSelected: C,
1213
+ shiftAndToggleSelected: m
1177
1214
  };
1178
1215
  }, Pe = (e) => {
1179
1216
  const { keyResolver: t } = R(), {
1180
1217
  expandedRows: { selectedIds: n }
1181
- } = Y(), {
1218
+ } = Q(), {
1182
1219
  actions: { expandByIds: o },
1183
1220
  dispatch: s
1184
- } = se(), c = v(() => t(e), [t, e]), l = v(
1221
+ } = ce(), c = v(() => t(e), [t, e]), l = v(
1185
1222
  () => n.includes(c),
1186
1223
  [n, c]
1187
1224
  ), { toggle: i } = qe(
@@ -1194,7 +1231,7 @@ const Xe = T.createContext({}), xr = ({
1194
1231
  }, [i, c]),
1195
1232
  isExpanded: l
1196
1233
  };
1197
- }, fo = function({
1234
+ }, vo = function({
1198
1235
  item: e,
1199
1236
  colIndex: t,
1200
1237
  numRows: n,
@@ -1213,30 +1250,30 @@ const Xe = T.createContext({}), xr = ({
1213
1250
  } = R(), {
1214
1251
  toggleRowExpanded: u,
1215
1252
  isExpanded: a
1216
- } = Pe(e), h = v(() => d ? d(e) : !1, [d, e]);
1253
+ } = Pe(e), p = v(() => d ? d(e) : !1, [d, e]);
1217
1254
  return /* @__PURE__ */ r(E, {
1218
1255
  alignItems: "center",
1219
1256
  justifyContent: "center",
1220
1257
  indent: !0,
1221
- children: !h && /* @__PURE__ */ r(xe, {
1258
+ children: !p && /* @__PURE__ */ r(xe, {
1222
1259
  size: "small",
1223
1260
  leftIcon: a ? Ze : Je,
1224
1261
  onClick: u,
1225
1262
  ...i
1226
1263
  })
1227
1264
  });
1228
- }, wo = (e, t, n) => e ? e(t) : n, yt = (e, t, n) => v(
1229
- () => wo(e, t, n),
1265
+ }, yo = (e, t, n) => e ? e(t) : n, xt = (e, t, n) => v(
1266
+ () => yo(e, t, n),
1230
1267
  [e, t, n]
1231
- ), Co = (e, t) => {
1232
- const { background: n, backgroundResolver: o } = ce(e);
1233
- return yt(o, t, n);
1268
+ ), xo = (e, t) => {
1269
+ const { background: n, backgroundResolver: o } = le(e);
1270
+ return xt(o, t, n);
1234
1271
  }, _e = (e, t) => {
1235
1272
  const { background: n, backgroundResolver: o } = e != null ? e : {};
1236
- return yt(o, t, n);
1237
- }, vo = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), yo = (e) => Yt(Qt(e)), xo = "_standardTableCell_1xzcm_1", go = {
1238
- standardTableCell: xo
1239
- }, bo = T.memo(function({
1273
+ return xt(o, t, n);
1274
+ }, go = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), bo = (e) => Qt(en(e)), ko = "_standardTableCell_1xzcm_1", So = {
1275
+ standardTableCell: ko
1276
+ }, Io = T.memo(function({
1240
1277
  enableGridCell: t,
1241
1278
  children: n,
1242
1279
  background: o,
@@ -1256,7 +1293,7 @@ const Xe = T.createContext({}), xr = ({
1256
1293
  onKeyDown: i,
1257
1294
  children: /* @__PURE__ */ r(E, {
1258
1295
  border: "1px solid transparent",
1259
- className: go.standardTableCell,
1296
+ className: So.standardTableCell,
1260
1297
  width: "100%",
1261
1298
  height: "100%",
1262
1299
  justifyContent: l,
@@ -1268,20 +1305,20 @@ const Xe = T.createContext({}), xr = ({
1268
1305
  children: n
1269
1306
  })
1270
1307
  });
1271
- }), ko = "_textCell_1yv6v_1", So = {
1272
- textCell: ko
1273
- }, Io = T.memo(function({
1308
+ }), Eo = "_textCell_1yv6v_1", Ro = {
1309
+ textCell: Eo
1310
+ }, Go = T.memo(function({
1274
1311
  label: t
1275
1312
  }) {
1276
1313
  return /* @__PURE__ */ r(N, {
1277
1314
  overflow: "hidden",
1278
1315
  children: /* @__PURE__ */ r(U, {
1279
- className: So.textCell,
1316
+ className: Ro.textCell,
1280
1317
  title: t,
1281
1318
  children: t
1282
1319
  })
1283
1320
  });
1284
- }), Eo = T.memo(function({
1321
+ }), To = T.memo(function({
1285
1322
  columnId: t,
1286
1323
  item: n,
1287
1324
  colIndex: o,
@@ -1295,76 +1332,76 @@ const Xe = T.createContext({}), xr = ({
1295
1332
  keyResolver: d,
1296
1333
  enableGridCell: u,
1297
1334
  gridCellOptions: a
1298
- } = R(), h = Y().selectedIds.selectedIds, m = Re(), f = Ln(), {
1299
- numNavigableColumns: w
1300
- } = vt(), p = Ge(), C = v(() => d(n), [n, d]), x = v(() => h.indexOf(C) >= 0, [C, h]), {
1335
+ } = R(), p = Q().selectedIds.selectedIds, f = Re(), m = Bn(), {
1336
+ numNavigableColumns: C
1337
+ } = yt(), h = Ge(), w = v(() => d(n), [n, d]), y = v(() => p.indexOf(w) >= 0, [w, p]), {
1301
1338
  itemValueResolver: b,
1302
1339
  itemLabelFormatter: S,
1303
- width: y,
1304
- minWidth: A,
1340
+ width: x,
1341
+ minWidth: B,
1305
1342
  justifyContentCell: k = "flex-start",
1306
- borderLeft: L,
1343
+ borderLeft: A,
1307
1344
  renderCell: O,
1308
1345
  gridCellOptions: z,
1309
1346
  isEditable: D,
1310
1347
  onChange: j,
1311
- onKeyDown: K,
1348
+ onKeyDown: M,
1312
1349
  disableGridCell: H,
1313
- disableGridCellFocus: le,
1350
+ disableGridCellFocus: J,
1314
1351
  zIndex: W
1315
- } = ce(t), q = v(() => b ? b(n) : t in n ? n[t] : "", [b, n, t]), Q = v(() => S ? S(q, n) : vo(q), [q, S, n]), ee = typeof D == "boolean" ? D : D ? D(n) : void 0, me = I((ae) => {
1316
- K == null || K(ae, {
1352
+ } = le(t), q = v(() => b ? b(n) : t in n ? n[t] : "", [b, n, t]), ee = v(() => S ? S(q, n) : go(q), [q, S, n]), te = typeof D == "boolean" ? D : D ? D(n) : void 0, me = I((ae) => {
1353
+ M == null || M(ae, {
1317
1354
  columnId: t,
1318
1355
  item: n
1319
- }), f == null || f(ae, {
1356
+ }), m == null || m(ae, {
1320
1357
  columnId: t,
1321
1358
  item: n
1322
1359
  });
1323
- }, [f, t, n, K]), J = he(Q, {
1360
+ }, [m, t, n, M]), X = he(ee, {
1324
1361
  colIndex: o,
1325
1362
  rowIndex: s,
1326
1363
  numRows: c,
1327
- numCols: w,
1328
- tableId: m,
1329
- isEditable: ee,
1364
+ numCols: C,
1365
+ tableId: f,
1366
+ isEditable: te,
1330
1367
  onChange: j ? (ae) => j(n, ae) : void 0,
1331
1368
  ...a,
1332
1369
  ...z
1333
- }), P = p[t], ie = (Ae = Co(t, n)) != null ? Ae : "inherit", fe = P.sticky ? W != null ? W : "var(--swui-sticky-column-z-index)" : W != null ? W : 1, bt = v(() => O ? O({
1334
- label: Q,
1370
+ }), P = h[t], ie = (Ae = xo(t, n)) != null ? Ae : "inherit", fe = P.sticky ? W != null ? W : "var(--swui-sticky-column-z-index)" : W != null ? W : 1, kt = v(() => O ? O({
1371
+ label: ee,
1335
1372
  value: q,
1336
1373
  item: n,
1337
- gridCell: J,
1338
- isEditable: ee,
1339
- isSelected: x,
1374
+ gridCell: X,
1375
+ isEditable: te,
1376
+ isSelected: y,
1340
1377
  zIndex: fe,
1341
- itemKey: C
1342
- }) : /* @__PURE__ */ r(Io, {
1343
- label: Q
1344
- }), [O, Q, q, n, J, ee, x, fe, C]), kt = Oe(l, i, L), St = P.sticky && P.type === "last-group" && P.isFirstColumnInLastGroup || P.sticky && P.type === "column" && P.right ? "var(--swui-sticky-column-shadow-left)" : P.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0;
1378
+ itemKey: w
1379
+ }) : /* @__PURE__ */ r(Go, {
1380
+ label: ee
1381
+ }), [O, ee, q, n, X, te, y, fe, w]), St = Oe(l, i, A), It = P.sticky && P.type === "last-group" && P.isFirstColumnInLastGroup || P.sticky && P.type === "column" && P.right ? "var(--swui-sticky-column-shadow-left)" : P.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0;
1345
1382
  return /* @__PURE__ */ r("td", {
1346
1383
  style: {
1347
- borderLeft: kt,
1384
+ borderLeft: St,
1348
1385
  position: P.sticky ? "sticky" : void 0,
1349
1386
  left: P.sticky ? P.left : void 0,
1350
1387
  right: P.sticky ? P.right : void 0,
1351
- boxShadow: St,
1388
+ boxShadow: It,
1352
1389
  zIndex: fe,
1353
1390
  height: "var(--current-row-height)",
1354
1391
  background: ie
1355
1392
  },
1356
- children: /* @__PURE__ */ r(bo, {
1357
- enableGridCell: u && !H && !le,
1358
- gridCellRequiredProps: J.requiredProps,
1359
- isEditing: J.isEditing,
1360
- width: y,
1361
- minWidth: A,
1393
+ children: /* @__PURE__ */ r(Io, {
1394
+ enableGridCell: u && !H && !J,
1395
+ gridCellRequiredProps: X.requiredProps,
1396
+ isEditing: X.isEditing,
1397
+ width: x,
1398
+ minWidth: B,
1362
1399
  justifyContent: k,
1363
1400
  onKeyDown: me,
1364
- children: bt
1401
+ children: kt
1365
1402
  })
1366
1403
  });
1367
- }), Ro = function({
1404
+ }), Oo = function({
1368
1405
  item: t
1369
1406
  }) {
1370
1407
  const {
@@ -1388,7 +1425,7 @@ const Xe = T.createContext({}), xr = ({
1388
1425
  })
1389
1426
  })
1390
1427
  });
1391
- }, xt = en.tr`
1428
+ }, gt = tn.tr`
1392
1429
  ${({
1393
1430
  focusBackground: e
1394
1431
  }) => e ? `--focus-within-background: ${e};` : ""}
@@ -1407,7 +1444,7 @@ const Xe = T.createContext({}), xr = ({
1407
1444
  background: ${e};
1408
1445
  }
1409
1446
  ` : ""}
1410
- `, Go = T.memo(function({
1447
+ `, Po = T.memo(function({
1411
1448
  item: t,
1412
1449
  idListForEnabledItems: n,
1413
1450
  rowIndex: o,
@@ -1416,34 +1453,34 @@ const Xe = T.createContext({}), xr = ({
1416
1453
  alwaysVisible: l,
1417
1454
  shiftPressedRef: i
1418
1455
  }) {
1419
- const d = te(null), u = Te(), {
1456
+ const d = ne(null), u = Te(), {
1420
1457
  stickyCheckboxColumn: a
1421
- } = R(), h = Z(), {
1422
- columnIndexPerColumnId: m
1423
- } = vt(), {
1424
- showRowCheckbox: f,
1425
- rowBackgroundResolver: w,
1426
- checkboxDisabledResolver: p,
1427
- enableGridCell: C,
1428
- rowIndent: x,
1458
+ } = R(), p = Z(), {
1459
+ columnIndexPerColumnId: f
1460
+ } = yt(), {
1461
+ showRowCheckbox: m,
1462
+ rowBackgroundResolver: C,
1463
+ checkboxDisabledResolver: h,
1464
+ enableGridCell: w,
1465
+ rowIndent: y,
1429
1466
  enableExpandCollapse: b
1430
1467
  } = R(), {
1431
1468
  isExpanded: S
1432
1469
  } = Pe(t), {
1433
- isSelected: y,
1434
- toggleSelected: A,
1470
+ isSelected: x,
1471
+ toggleSelected: B,
1435
1472
  shiftAndToggleSelected: k
1436
- } = mo(t, n), L = At(d, {
1473
+ } = Co(t, n), A = Bt(d, {
1437
1474
  rootMargin: "400px 0px 400px 0px",
1438
1475
  threshold: 0
1439
- }), O = v(() => w == null ? void 0 : w(t, y), [y, t, w]), z = To(O, y, S), D = Oo(O, y, S), j = Po(O, y, D), K = v(() => p == null ? void 0 : p(t), [t, p]), H = zn(), le = _e(H, t), W = Kn(), q = _e(W, t), Q = v(() => /* @__PURE__ */ r(G, {
1476
+ }), O = v(() => C == null ? void 0 : C(t, x), [x, t, C]), z = Ao(O, x, S), D = Lo(O, x, S), j = Bo(O, x, D), M = v(() => h == null ? void 0 : h(t), [t, h]), H = Hn(), J = _e(H, t), W = $n(), q = _e(W, t), ee = v(() => /* @__PURE__ */ r(G, {
1440
1477
  children: /* @__PURE__ */ g(G, {
1441
- children: [x && /* @__PURE__ */ r("td", {
1478
+ children: [y && /* @__PURE__ */ r("td", {
1442
1479
  style: {
1443
- background: le
1480
+ background: J
1444
1481
  },
1445
1482
  children: /* @__PURE__ */ r(N, {
1446
- num: x
1483
+ num: y
1447
1484
  })
1448
1485
  }), b && /* @__PURE__ */ r("td", {
1449
1486
  style: {
@@ -1458,14 +1495,14 @@ const Xe = T.createContext({}), xr = ({
1458
1495
  minWidth: "var(--swui-expand-cell-width)",
1459
1496
  alignItems: "center",
1460
1497
  justifyContent: "center",
1461
- children: /* @__PURE__ */ r(fo, {
1498
+ children: /* @__PURE__ */ r(vo, {
1462
1499
  colIndex: c,
1463
- rowIndex: C ? o : 0,
1464
- numRows: C ? s : 0,
1500
+ rowIndex: w ? o : 0,
1501
+ numRows: w ? s : 0,
1465
1502
  item: t
1466
1503
  })
1467
1504
  })
1468
- }), f && /* @__PURE__ */ r("td", {
1505
+ }), m && /* @__PURE__ */ r("td", {
1469
1506
  style: {
1470
1507
  background: a ? "inherit" : void 0,
1471
1508
  position: a ? "sticky" : void 0,
@@ -1479,10 +1516,10 @@ const Xe = T.createContext({}), xr = ({
1479
1516
  minWidth: "var(--swui-checkbox-cell-width)",
1480
1517
  alignItems: "center",
1481
1518
  justifyContent: "center",
1482
- children: /* @__PURE__ */ r(ho, {
1483
- disabled: K,
1484
- value: y,
1485
- onValueChange: A,
1519
+ children: /* @__PURE__ */ r(fo, {
1520
+ disabled: M,
1521
+ value: x,
1522
+ onValueChange: B,
1486
1523
  onValueChangeAndShift: k,
1487
1524
  colIndex: c + (b ? 1 : 0),
1488
1525
  rowIndex: o,
@@ -1490,54 +1527,54 @@ const Xe = T.createContext({}), xr = ({
1490
1527
  shiftPressedRef: i
1491
1528
  })
1492
1529
  })
1493
- }), h.map(({
1494
- groupConfig: ee,
1530
+ }), p.map(({
1531
+ groupConfig: te,
1495
1532
  groupId: me
1496
- }, J) => /* @__PURE__ */ r(T.Fragment, {
1497
- children: ee.columnOrder.map((P, ie) => /* @__PURE__ */ r(Eo, {
1533
+ }, X) => /* @__PURE__ */ r(T.Fragment, {
1534
+ children: te.columnOrder.map((P, ie) => /* @__PURE__ */ r(To, {
1498
1535
  columnId: P,
1499
1536
  item: t,
1500
- colIndex: c + m[P],
1537
+ colIndex: c + f[P],
1501
1538
  rowIndex: o,
1502
1539
  numRows: s,
1503
- borderFromGroup: pe(J, ie, ee.borderLeft),
1504
- disableBorderLeft: J === 0 && ie === 0
1540
+ borderFromGroup: pe(X, ie, te.borderLeft),
1541
+ disableBorderLeft: X === 0 && ie === 0
1505
1542
  }, P))
1506
- }, me)), x && /* @__PURE__ */ r("td", {
1543
+ }, me)), y && /* @__PURE__ */ r("td", {
1507
1544
  style: {
1508
1545
  background: q
1509
1546
  },
1510
1547
  children: /* @__PURE__ */ r(N, {
1511
- num: x
1548
+ num: y
1512
1549
  })
1513
1550
  }), /* @__PURE__ */ r("td", {})]
1514
1551
  })
1515
- }), [c, m, K, b, C, le, h, y, t, q, s, x, o, k, i, f, a, A]);
1552
+ }), [c, f, M, b, w, J, p, x, t, q, s, y, o, k, i, m, a, B]);
1516
1553
  return /* @__PURE__ */ g(G, {
1517
- children: [/* @__PURE__ */ r(xt, {
1554
+ children: [/* @__PURE__ */ r(gt, {
1518
1555
  hoverBackground: D,
1519
1556
  background: z,
1520
1557
  focusBackground: j,
1521
1558
  borderLeft: S ? et : ke,
1522
1559
  ref: d,
1523
- children: L || l || S ? Q : /* @__PURE__ */ r("td", {
1560
+ children: A || l || S ? ee : /* @__PURE__ */ r("td", {
1524
1561
  colSpan: u,
1525
1562
  style: {
1526
1563
  height: "var(--current-row-height)"
1527
1564
  }
1528
1565
  })
1529
- }), /* @__PURE__ */ r(Ro, {
1566
+ }), /* @__PURE__ */ r(Oo, {
1530
1567
  item: t
1531
1568
  })]
1532
1569
  });
1533
- }), To = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ? _("--lhds-color-blue-100") : n ? Qe : "white", Oo = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.hoverBackground : t ? _("--lhds-color-blue-200") : n ? sn : _("--lhds-color-ui-200"), Po = (e, t, n) => {
1570
+ }), Ao = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ? _("--lhds-color-blue-100") : n ? Qe : "white", Lo = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.hoverBackground : t ? _("--lhds-color-blue-200") : n ? cn : _("--lhds-color-ui-200"), Bo = (e, t, n) => {
1534
1571
  if (t)
1535
1572
  return _("--lhds-color-blue-200");
1536
1573
  if (e)
1537
1574
  return n;
1538
- }, Ao = (e) => Object.values(e).some((t) => Lo(t)), Lo = (e) => Boolean(e.renderSummaryCell || e.summaryText), Bo = "_summaryRow_12x8k_1", Do = {
1539
- summaryRow: Bo
1540
- }, No = T.memo(function({
1575
+ }, Do = (e) => Object.values(e).some((t) => No(t)), No = (e) => Boolean(e.renderSummaryCell || e.summaryText), zo = "_summaryRow_12x8k_1", Ko = {
1576
+ summaryRow: zo
1577
+ }, Ho = T.memo(function({
1541
1578
  columnId: t,
1542
1579
  items: n,
1543
1580
  disableBorderLeft: o,
@@ -1549,10 +1586,10 @@ const Xe = T.createContext({}), xr = ({
1549
1586
  summaryText: d,
1550
1587
  borderLeft: u,
1551
1588
  zIndex: a,
1552
- width: h,
1553
- minWidth: m,
1554
- justifyContentCell: f
1555
- } = ce(t), w = Oe(s, o, u), p = l[t], C = p.sticky ? a != null ? a : "var(--swui-sticky-column-z-index)" : a != null ? a : 1, x = p.sticky && p.type === "last-group" && p.isFirstColumnInLastGroup || p.sticky && p.type === "column" && p.right ? "var(--swui-sticky-column-shadow-left)" : p.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, b = v(() => d == null ? void 0 : d({
1589
+ width: p,
1590
+ minWidth: f,
1591
+ justifyContentCell: m
1592
+ } = le(t), C = Oe(s, o, u), h = l[t], w = h.sticky ? a != null ? a : "var(--swui-sticky-column-z-index)" : a != null ? a : 1, y = h.sticky && h.type === "last-group" && h.isFirstColumnInLastGroup || h.sticky && h.type === "column" && h.right ? "var(--swui-sticky-column-shadow-left)" : h.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, b = v(() => d == null ? void 0 : d({
1556
1593
  items: n
1557
1594
  }), [n, d]), S = v(() => i == null ? void 0 : i({
1558
1595
  items: n,
@@ -1561,20 +1598,20 @@ const Xe = T.createContext({}), xr = ({
1561
1598
  return /* @__PURE__ */ r("td", {
1562
1599
  colSpan: c,
1563
1600
  style: {
1564
- borderLeft: w,
1565
- position: p.sticky ? "sticky" : void 0,
1566
- left: p.sticky ? p.left : void 0,
1567
- right: p.sticky ? p.right : void 0,
1568
- boxShadow: x,
1569
- zIndex: C,
1601
+ borderLeft: C,
1602
+ position: h.sticky ? "sticky" : void 0,
1603
+ left: h.sticky ? h.left : void 0,
1604
+ right: h.sticky ? h.right : void 0,
1605
+ boxShadow: y,
1606
+ zIndex: w,
1570
1607
  height: "var(--current-row-height)"
1571
1608
  },
1572
1609
  children: /* @__PURE__ */ r(E, {
1573
- width: h,
1574
- minWidth: m,
1610
+ width: p,
1611
+ minWidth: f,
1575
1612
  height: "inherit",
1576
1613
  overflow: "hidden",
1577
- justifyContent: f,
1614
+ justifyContent: m,
1578
1615
  alignItems: "center",
1579
1616
  children: i ? S : /* @__PURE__ */ r(N, {
1580
1617
  children: /* @__PURE__ */ r(U, {
@@ -1584,7 +1621,7 @@ const Xe = T.createContext({}), xr = ({
1584
1621
  })
1585
1622
  })
1586
1623
  });
1587
- }), zo = (e, t) => {
1624
+ }), $o = (e, t) => {
1588
1625
  const n = [];
1589
1626
  for (let o = 0; o < e.length; o++) {
1590
1627
  const { summaryCellColSpan: s } = t[e[o]], c = Math.min(
@@ -1596,7 +1633,7 @@ const Xe = T.createContext({}), xr = ({
1596
1633
  l > 1 && (o += l - 1);
1597
1634
  }
1598
1635
  return n;
1599
- }, Ko = T.memo(function({
1636
+ }, Mo = T.memo(function({
1600
1637
  items: t
1601
1638
  }) {
1602
1639
  const n = Z(), {
@@ -1606,7 +1643,7 @@ const Xe = T.createContext({}), xr = ({
1606
1643
  rowIndent: l
1607
1644
  } = R();
1608
1645
  return /* @__PURE__ */ g("tr", {
1609
- className: Do.summaryRow,
1646
+ className: Ko.summaryRow,
1610
1647
  children: [l && /* @__PURE__ */ r("td", {
1611
1648
  children: /* @__PURE__ */ r(N, {
1612
1649
  num: l
@@ -1615,15 +1652,15 @@ const Xe = T.createContext({}), xr = ({
1615
1652
  groupConfig: i,
1616
1653
  groupId: d
1617
1654
  }, u) => /* @__PURE__ */ r(T.Fragment, {
1618
- children: zo(i.columnOrder, c).map(({
1655
+ children: $o(i.columnOrder, c).map(({
1619
1656
  columnId: a,
1620
- colSpan: h
1621
- }, m) => /* @__PURE__ */ r(No, {
1622
- colSpan: h,
1657
+ colSpan: p
1658
+ }, f) => /* @__PURE__ */ r(Ho, {
1659
+ colSpan: p,
1623
1660
  columnId: a,
1624
1661
  items: t,
1625
- borderFromGroup: pe(u, m, i.borderLeft),
1626
- disableBorderLeft: u === 0 && m === 0
1662
+ borderFromGroup: pe(u, f, i.borderLeft),
1663
+ disableBorderLeft: u === 0 && f === 0
1627
1664
  }, a))
1628
1665
  }, d)), l && /* @__PURE__ */ r("td", {
1629
1666
  children: /* @__PURE__ */ r(N, {
@@ -1631,60 +1668,63 @@ const Xe = T.createContext({}), xr = ({
1631
1668
  })
1632
1669
  }), /* @__PURE__ */ r("td", {})]
1633
1670
  });
1634
- }), Ho = function({
1671
+ }), Vo = function({
1635
1672
  items: t
1636
1673
  }) {
1637
1674
  const {
1638
1675
  columns: n
1639
1676
  } = R();
1640
- return v(() => Ao(n), [n]) ? /* @__PURE__ */ r(Ko, {
1677
+ return v(() => Do(n), [n]) ? /* @__PURE__ */ r(Mo, {
1641
1678
  items: t
1642
1679
  }) : null;
1643
- }, gt = (e) => (t) => !(e != null && e(t)), $o = T.memo(function({
1680
+ }, bt = (e) => (t) => !(e != null && e(t)), _o = T.memo(function({
1644
1681
  items: t,
1645
1682
  colIndexOffset: n = 0,
1646
1683
  rowIndexOffset: o = 0
1647
1684
  }) {
1648
- const s = te(0), c = te(!1), {
1685
+ const s = ne(0), c = ne(!1), {
1649
1686
  keyResolver: l,
1650
1687
  disableInfiniteList: i,
1651
- checkboxDisabledResolver: d
1688
+ checkboxDisabledResolver: d,
1689
+ enableExternalSorting: u
1652
1690
  } = R(), {
1653
1691
  sortOrder: {
1654
- sortBy: u,
1655
- desc: a
1692
+ sortBy: a,
1693
+ desc: p
1656
1694
  }
1657
- } = Y(), h = uo(u), m = v(() => {
1695
+ } = Q(), f = mo(a), m = v(() => {
1696
+ if (u)
1697
+ return t != null ? t : [];
1658
1698
  if (!t || !t.length)
1659
1699
  return [];
1660
- if (!h)
1700
+ if (!f)
1661
1701
  return t;
1662
- const w = [...t];
1663
- return w.sort((p, C) => ao(h(p), h(C))), a && w.reverse(), i || s.current++, w;
1664
- }, [t, h, a, i]), f = v(() => m.filter(gt(d)).map((w) => l(w)), [m, d, l]);
1702
+ const h = [...t];
1703
+ return h.sort((w, y) => po(f(w), f(y))), p && h.reverse(), i || s.current++, h;
1704
+ }, [u, t, f, p, i]), C = v(() => m.filter(bt(d)).map((h) => l(h)), [m, d, l]);
1665
1705
  return je(() => {
1666
- const w = (C) => {
1667
- C.key === "Shift" && (c.current = !1);
1668
- }, p = (C) => {
1669
- C.key === "Shift" && (c.current = !0);
1706
+ const h = (y) => {
1707
+ y.key === "Shift" && (c.current = !1);
1708
+ }, w = (y) => {
1709
+ y.key === "Shift" && (c.current = !0);
1670
1710
  };
1671
- return document.addEventListener("keyup", w), document.addEventListener("keydown", p), () => {
1672
- document.removeEventListener("keyup", w), document.removeEventListener("keydown", p);
1711
+ return document.addEventListener("keyup", h), document.addEventListener("keydown", w), () => {
1712
+ document.removeEventListener("keyup", h), document.removeEventListener("keydown", w);
1673
1713
  };
1674
1714
  }, []), /* @__PURE__ */ g(T.Fragment, {
1675
- children: [m.map((w, p) => /* @__PURE__ */ r(Go, {
1715
+ children: [m.map((h, w) => /* @__PURE__ */ r(Po, {
1676
1716
  alwaysVisible: i || m.length < 30,
1677
- item: w,
1678
- idListForEnabledItems: f,
1717
+ item: h,
1718
+ idListForEnabledItems: C,
1679
1719
  colIndexOffset: n,
1680
- rowIndex: p + o,
1720
+ rowIndex: w + o,
1681
1721
  numRows: m.length,
1682
1722
  shiftPressedRef: c
1683
- }, l(w))), /* @__PURE__ */ r(Ho, {
1723
+ }, l(h))), /* @__PURE__ */ r(Vo, {
1684
1724
  items: m
1685
1725
  })]
1686
1726
  }, s.current);
1687
- }), Mo = T.memo(function({
1727
+ }), jo = T.memo(function({
1688
1728
  error: t,
1689
1729
  bannerError: n,
1690
1730
  loading: o,
@@ -1695,21 +1735,21 @@ const Xe = T.createContext({}), xr = ({
1695
1735
  noItemsHeader: d,
1696
1736
  colIndexOffset: u,
1697
1737
  rowIndexOffset: a,
1698
- variant: h,
1699
- errorLabel: m
1738
+ variant: p,
1739
+ errorLabel: f
1700
1740
  }) {
1701
- var w;
1702
- const f = Te();
1741
+ var C;
1742
+ const m = Te();
1703
1743
  return n ? /* @__PURE__ */ r("tbody", {
1704
1744
  children: /* @__PURE__ */ r("tr", {
1705
1745
  children: /* @__PURE__ */ r("td", {
1706
- colSpan: f,
1746
+ colSpan: m,
1707
1747
  children: /* @__PURE__ */ r(we, {
1708
1748
  num: 4,
1709
1749
  justifyContent: "center",
1710
- children: /* @__PURE__ */ r(ne, {
1750
+ children: /* @__PURE__ */ r(oe, {
1711
1751
  alignItems: "center",
1712
- children: /* @__PURE__ */ r(Tt, {
1752
+ children: /* @__PURE__ */ r(Ot, {
1713
1753
  bannerState: n,
1714
1754
  variant: "error"
1715
1755
  })
@@ -1717,17 +1757,17 @@ const Xe = T.createContext({}), xr = ({
1717
1757
  })
1718
1758
  })
1719
1759
  })
1720
- }) : t || m ? /* @__PURE__ */ r("tbody", {
1760
+ }) : t || f ? /* @__PURE__ */ r("tbody", {
1721
1761
  children: /* @__PURE__ */ r("tr", {
1722
1762
  children: /* @__PURE__ */ r("td", {
1723
- colSpan: f,
1763
+ colSpan: m,
1724
1764
  children: /* @__PURE__ */ r(we, {
1725
1765
  num: 4,
1726
1766
  justifyContent: "center",
1727
- children: /* @__PURE__ */ r(ne, {
1767
+ children: /* @__PURE__ */ r(oe, {
1728
1768
  alignItems: "center",
1729
1769
  children: /* @__PURE__ */ r(Le, {
1730
- headerText: (w = t ? t.message : m) != null ? w : "Unknown error",
1770
+ headerText: (C = t ? t.message : f) != null ? C : "Unknown error",
1731
1771
  variant: "error"
1732
1772
  })
1733
1773
  })
@@ -1737,17 +1777,17 @@ const Xe = T.createContext({}), xr = ({
1737
1777
  }) : o ? /* @__PURE__ */ r("tbody", {
1738
1778
  children: /* @__PURE__ */ r("tr", {
1739
1779
  children: /* @__PURE__ */ r("td", {
1740
- colSpan: f,
1780
+ colSpan: m,
1741
1781
  children: /* @__PURE__ */ r(we, {
1742
1782
  num: 4,
1743
- children: /* @__PURE__ */ r(Zt, {})
1783
+ children: /* @__PURE__ */ r(Jt, {})
1744
1784
  })
1745
1785
  })
1746
1786
  })
1747
1787
  }) : !s || !s.length ? /* @__PURE__ */ r("tbody", {
1748
1788
  children: /* @__PURE__ */ r("tr", {
1749
1789
  children: /* @__PURE__ */ r("td", {
1750
- colSpan: f,
1790
+ colSpan: m,
1751
1791
  children: /* @__PURE__ */ r(E, {
1752
1792
  spacing: 4,
1753
1793
  justifyContent: "center",
@@ -1762,23 +1802,23 @@ const Xe = T.createContext({}), xr = ({
1762
1802
  })
1763
1803
  })
1764
1804
  }) : /* @__PURE__ */ r("tbody", {
1765
- children: /* @__PURE__ */ r($o, {
1766
- variant: h,
1805
+ children: /* @__PURE__ */ r(_o, {
1806
+ variant: p,
1767
1807
  items: s,
1768
1808
  colIndexOffset: u,
1769
1809
  rowIndexOffset: a
1770
1810
  })
1771
1811
  });
1772
- }), Vo = (e) => {
1812
+ }), Wo = (e) => {
1773
1813
  const { keyResolver: t, checkboxDisabledResolver: n } = R(), {
1774
1814
  selectedIds: { selectedIds: o }
1775
- } = Y(), {
1815
+ } = Q(), {
1776
1816
  actions: { setSelectedIds: s, clearSelection: c },
1777
1817
  dispatch: l
1778
- } = se(), i = o.length === 0, d = e ? e.length > 0 && o.length === e.length : !1, u = I(() => {
1818
+ } = ce(), i = o.length === 0, d = e ? e.length > 0 && o.length === e.length : !1, u = I(() => {
1779
1819
  e && l(
1780
1820
  i ? s(
1781
- e.filter(gt(n)).map((a) => t(a))
1821
+ e.filter(bt(n)).map((a) => t(a))
1782
1822
  ) : c()
1783
1823
  );
1784
1824
  }, [
@@ -1795,13 +1835,13 @@ const Xe = T.createContext({}), xr = ({
1795
1835
  allItemsAreSelected: d,
1796
1836
  onClickCheckbox: u
1797
1837
  };
1798
- }, _o = (e) => {
1838
+ }, qo = (e) => {
1799
1839
  const { keyResolver: t } = R(), {
1800
1840
  expandedRows: { selectedIds: n }
1801
- } = Y(), {
1841
+ } = Q(), {
1802
1842
  actions: { collapseAll: o, expandByIds: s },
1803
1843
  dispatch: c
1804
- } = se(), l = e ? e.length > 0 && n.length === e.length : !1, i = I(() => {
1844
+ } = ce(), l = e ? e.length > 0 && n.length === e.length : !1, i = I(() => {
1805
1845
  e && c(l ? o() : s(e.map((d) => t(d))));
1806
1846
  }, [
1807
1847
  l,
@@ -1815,22 +1855,23 @@ const Xe = T.createContext({}), xr = ({
1815
1855
  allItemsAreExpanded: l,
1816
1856
  toggleExpanded: i
1817
1857
  };
1818
- }, jo = (e) => {
1819
- const { dispatch: t, actions: n } = se(), {
1820
- sortOrder: { desc: o, sortBy: s }
1821
- } = Y();
1858
+ }, Fo = (e) => {
1859
+ const { dispatch: t, actions: n } = ce(), o = Dn(), {
1860
+ sortOrder: { desc: s, sortBy: c }
1861
+ } = Q();
1822
1862
  return v(() => {
1823
- const c = e === s;
1863
+ const l = e === c;
1824
1864
  return {
1825
- arrow: c ? o ? "up" : "down" : void 0,
1826
- selected: c,
1827
- desc: o,
1865
+ arrow: l ? s ? "up" : "down" : void 0,
1866
+ selected: l,
1867
+ desc: s,
1828
1868
  onClickColumnHead: () => {
1829
- t(n.sortBy(e, c ? !o : !1));
1869
+ const i = l ? !s : !1;
1870
+ t(n.sortBy(e, i)), o == null || o(e, i);
1830
1871
  }
1831
1872
  };
1832
- }, [s, o, n, e, t]);
1833
- }, Wo = T.memo(function({
1873
+ }, [e, c, s, t, n, o]);
1874
+ }, Uo = T.memo(function({
1834
1875
  columnId: t,
1835
1876
  borderFromGroup: n,
1836
1877
  disableBorderLeft: o,
@@ -1843,42 +1884,42 @@ const Xe = T.createContext({}), xr = ({
1843
1884
  borderLeft: d,
1844
1885
  infoIconTooltipText: u,
1845
1886
  background: a,
1846
- zIndex: h,
1847
- sortOrderIconVariant: m,
1848
- width: f,
1849
- minWidth: w
1850
- } = ce(t), {
1851
- disableSorting: p,
1852
- sortOrderIconVariant: C
1853
- } = R(), x = Ge(), {
1887
+ zIndex: p,
1888
+ sortOrderIconVariant: f,
1889
+ width: m,
1890
+ minWidth: C
1891
+ } = le(t), {
1892
+ disableSorting: h,
1893
+ sortOrderIconVariant: w
1894
+ } = R(), y = Ge(), {
1854
1895
  arrow: b,
1855
1896
  onClickColumnHead: S
1856
- } = jo(t), y = typeof i == "string" ? i : yo(t), A = Oe(n, o, d), k = x[t];
1897
+ } = Fo(t), x = typeof i == "string" ? i : bo(t), B = Oe(n, o, d), k = y[t];
1857
1898
  return /* @__PURE__ */ r("th", {
1858
1899
  style: {
1859
1900
  background: a != null ? a : "white",
1860
- borderLeft: A,
1901
+ borderLeft: B,
1861
1902
  position: s || k.sticky ? "sticky" : void 0,
1862
1903
  left: k.left,
1863
1904
  right: k.right,
1864
1905
  top: c,
1865
1906
  boxShadow: k.sticky && k.isFirstColumnInLastGroup && s ? "var(--swui-sticky-header-shadow-and-left)" : k.sticky && k.isFirstColumnInLastGroup ? "var(--swui-sticky-column-shadow-left)" : s && k.sticky ? "var(--swui-sticky-header-shadow-and-right)" : s ? "var(--swui-sticky-header-shadow)" : k.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0,
1866
- zIndex: s && k.sticky ? "var(--swui-sticky-header-in-sticky-column-z-index)" : s ? "var(--swui-sticky-header-z-index)" : k.sticky ? "var(--swui-sticky-group-header-z-index)" : h,
1867
- width: f,
1868
- minWidth: w
1907
+ zIndex: s && k.sticky ? "var(--swui-sticky-header-in-sticky-column-z-index)" : s ? "var(--swui-sticky-header-z-index)" : k.sticky ? "var(--swui-sticky-group-header-z-index)" : p,
1908
+ width: m,
1909
+ minWidth: C
1869
1910
  },
1870
1911
  children: /* @__PURE__ */ r(Ee, {
1871
1912
  width: "inherit",
1872
1913
  minWidth: "inherit",
1873
- arrow: !p && y ? b : void 0,
1874
- onClick: p ? void 0 : S,
1875
- label: y,
1914
+ arrow: !h && x ? b : void 0,
1915
+ onClick: h ? void 0 : S,
1916
+ label: x,
1876
1917
  infoIconTooltipText: u,
1877
1918
  alignRight: l === "flex-end",
1878
- sortOrderIconVariant: m != null ? m : C
1919
+ sortOrderIconVariant: f != null ? f : w
1879
1920
  })
1880
1921
  });
1881
- }), qo = (e, t, n, o) => {
1922
+ }), Zo = (e, t, n, o) => {
1882
1923
  if (e && t !== void 0)
1883
1924
  return `calc(${e} + ${n})`;
1884
1925
  if (o && t)
@@ -1887,7 +1928,7 @@ const Xe = T.createContext({}), xr = ({
1887
1928
  return e;
1888
1929
  if (o)
1889
1930
  return 0;
1890
- }, Fo = T.memo(function({
1931
+ }, Jo = T.memo(function({
1891
1932
  items: t,
1892
1933
  height: n = Se
1893
1934
  }) {
@@ -1899,33 +1940,33 @@ const Xe = T.createContext({}), xr = ({
1899
1940
  headerRowOffsetTop: d,
1900
1941
  zIndex: u,
1901
1942
  stickyHeader: a,
1902
- stickyCheckboxColumn: h,
1903
- showRowCheckbox: m
1904
- } = R(), f = Dn(), {
1905
- allItemsAreExpanded: w,
1906
- toggleExpanded: p
1907
- } = _o(t), {
1908
- allItemsAreSelected: C,
1909
- onClickCheckbox: x,
1943
+ stickyCheckboxColumn: p,
1944
+ showRowCheckbox: f
1945
+ } = R(), m = zn(), {
1946
+ allItemsAreExpanded: C,
1947
+ toggleExpanded: h
1948
+ } = qo(t), {
1949
+ allItemsAreSelected: w,
1950
+ onClickCheckbox: y,
1910
1951
  selectionIsEmpty: b
1911
- } = Vo(t), S = !t || t.length === 0, y = {
1912
- zIndex: a && h ? "var(--swui-sticky-header-in-sticky-column-z-index)" : h ? "var(--swui-sticky-group-header-z-index)" : a ? "var(--swui-sticky-header-z-index)" : u,
1913
- top: qo(d, f, n, a),
1914
- background: a || h ? "white" : void 0,
1915
- position: a || h ? "sticky" : void 0,
1916
- boxShadow: a && h ? "var(--swui-sticky-header-shadow-and-right)" : h ? "var(--swui-sticky-column-shadow-right)" : a ? "var(--swui-sticky-header-shadow)" : void 0
1952
+ } = Wo(t), S = !t || t.length === 0, x = {
1953
+ zIndex: a && p ? "var(--swui-sticky-header-in-sticky-column-z-index)" : p ? "var(--swui-sticky-group-header-z-index)" : a ? "var(--swui-sticky-header-z-index)" : u,
1954
+ top: Zo(d, m, n, a),
1955
+ background: a || p ? "white" : void 0,
1956
+ position: a || p ? "sticky" : void 0,
1957
+ boxShadow: a && p ? "var(--swui-sticky-header-shadow-and-right)" : p ? "var(--swui-sticky-column-shadow-right)" : a ? "var(--swui-sticky-header-shadow)" : void 0
1917
1958
  };
1918
- return /* @__PURE__ */ g(xt, {
1959
+ return /* @__PURE__ */ g(gt, {
1919
1960
  height: n,
1920
1961
  borderLeft: ke,
1921
1962
  children: [i && /* @__PURE__ */ r("th", {
1922
- style: y,
1963
+ style: x,
1923
1964
  children: /* @__PURE__ */ r(E, {
1924
1965
  indent: i
1925
1966
  })
1926
1967
  }), l && /* @__PURE__ */ r("th", {
1927
1968
  style: {
1928
- ...y,
1969
+ ...x,
1929
1970
  left: "0px",
1930
1971
  textAlign: "left"
1931
1972
  },
@@ -1936,15 +1977,15 @@ const Xe = T.createContext({}), xr = ({
1936
1977
  justifyContent: "center",
1937
1978
  children: c && /* @__PURE__ */ r(xe, {
1938
1979
  size: "small",
1939
- leftIcon: w ? Ze : Je,
1940
- onClick: p
1980
+ leftIcon: C ? Ze : Je,
1981
+ onClick: h
1941
1982
  })
1942
1983
  })
1943
- }), (m || s) && /* @__PURE__ */ r("th", {
1984
+ }), (f || s) && /* @__PURE__ */ r("th", {
1944
1985
  style: {
1945
- ...y,
1986
+ ...x,
1946
1987
  overflow: "hidden",
1947
- left: h && l ? "var(--swui-expand-cell-width)" : h ? "0px" : void 0
1988
+ left: p && l ? "var(--swui-expand-cell-width)" : p ? "0px" : void 0
1948
1989
  },
1949
1990
  children: /* @__PURE__ */ r(E, {
1950
1991
  width: "var(--swui-checkbox-cell-width)",
@@ -1954,69 +1995,32 @@ const Xe = T.createContext({}), xr = ({
1954
1995
  children: s && /* @__PURE__ */ r(Ue, {
1955
1996
  size: "small",
1956
1997
  disabled: S,
1957
- value: C,
1958
- indeterminate: !b && !C,
1959
- onValueChange: x
1998
+ value: w,
1999
+ indeterminate: !b && !w,
2000
+ onValueChange: y
1960
2001
  })
1961
2002
  })
1962
2003
  }), o.map(({
1963
- groupConfig: A,
2004
+ groupConfig: B,
1964
2005
  groupId: k
1965
- }, L) => /* @__PURE__ */ r(T.Fragment, {
1966
- children: A.columnOrder.map((O, z) => /* @__PURE__ */ r(Wo, {
2006
+ }, A) => /* @__PURE__ */ r(T.Fragment, {
2007
+ children: B.columnOrder.map((O, z) => /* @__PURE__ */ r(Uo, {
1967
2008
  columnId: O,
1968
- borderFromGroup: pe(L, z, A.borderLeft),
1969
- disableBorderLeft: L === 0 && z === 0,
2009
+ borderFromGroup: pe(A, z, B.borderLeft),
2010
+ disableBorderLeft: A === 0 && z === 0,
1970
2011
  stickyHeader: a,
1971
- top: y.top
2012
+ top: x.top
1972
2013
  }, O))
1973
2014
  }, k)), i && /* @__PURE__ */ r("th", {
1974
- style: y,
2015
+ style: x,
1975
2016
  children: /* @__PURE__ */ r(E, {
1976
2017
  indent: i
1977
2018
  })
1978
2019
  }), /* @__PURE__ */ r("th", {
1979
- style: y
2020
+ style: x
1980
2021
  })]
1981
2022
  });
1982
- }), Uo = () => {
1983
- const e = R(), t = Z(), n = e.enableExpandCollapse || e.showRowCheckbox, o = Lt(e.rowIndent);
1984
- return /* @__PURE__ */ g(G, {
1985
- children: [o ? /* @__PURE__ */ r("colgroup", {
1986
- children: /* @__PURE__ */ r("col", {
1987
- style: {
1988
- width: `calc(var(--swui-metrics-indent) * ${o})`
1989
- }
1990
- })
1991
- }) : null, n && /* @__PURE__ */ g("colgroup", {
1992
- children: [e.enableExpandCollapse && /* @__PURE__ */ r("col", {
1993
- style: {
1994
- width: "var(--swui-expand-cell-width)"
1995
- }
1996
- }), e.showRowCheckbox && /* @__PURE__ */ r("col", {
1997
- style: {
1998
- width: "var(--swui-checkbox-cell-width)"
1999
- }
2000
- })]
2001
- }), t.map(({
2002
- groupConfig: s,
2003
- groupId: c
2004
- }) => /* @__PURE__ */ r("colgroup", {
2005
- children: s.columnOrder.map((l) => /* @__PURE__ */ r("col", {
2006
- style: {
2007
- width: e.columns[l].width,
2008
- minWidth: e.columns[l].minWidth
2009
- }
2010
- }, l))
2011
- }, c)), o ? /* @__PURE__ */ r("colgroup", {
2012
- children: /* @__PURE__ */ r("col", {
2013
- style: {
2014
- width: `calc(var(--swui-metrics-indent) * ${o})`
2015
- }
2016
- })
2017
- }) : null]
2018
- });
2019
- }, Rr = function({
2023
+ }), Tr = function({
2020
2024
  tableContext: t,
2021
2025
  config: n,
2022
2026
  columnOrder: o,
@@ -2024,74 +2028,78 @@ const Xe = T.createContext({}), xr = ({
2024
2028
  tableId: c,
2025
2029
  variant: l = "standard",
2026
2030
  onKeyDown: i,
2027
- ...d
2031
+ onSortOrderChange: d,
2032
+ ...u
2028
2033
  }) {
2029
- const u = Et(), {
2030
- initialSortOrderDesc: a,
2031
- initialSortOrder: h,
2034
+ const a = Rt(), {
2035
+ initialSortOrderDesc: p,
2036
+ initialSortOrder: f,
2032
2037
  enableExpandCollapse: m,
2033
- stickyCheckboxColumn: f
2038
+ stickyCheckboxColumn: C
2034
2039
  } = n, {
2035
- tableContext: w
2036
- } = no(c != null ? c : u, at(h, a)), p = t || w, {
2037
- state: C,
2038
- actions: x,
2039
- dispatch: b
2040
- } = p, S = v(() => ({
2041
- actions: x,
2042
- dispatch: b
2043
- }), [x, b]), y = Boolean(s != null ? s : "columnGroupOrder" in n), A = "columnGroups" in n ? n.columnGroups : void 0, k = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, L = "columnOrder" in n ? n.columnOrder : void 0, O = v(() => wt(A, k, L), [A, k, L]), z = v(() => jn(n), [n]), D = v(() => oo(n), [n]), j = v(() => Yn(n), [n]), K = v(() => {
2040
+ tableContext: h
2041
+ } = ro(c != null ? c : a, at(f, p)), w = t || h, {
2042
+ state: y,
2043
+ actions: b,
2044
+ dispatch: S
2045
+ } = w, x = v(() => ({
2046
+ actions: b,
2047
+ dispatch: S
2048
+ }), [b, S]), B = Boolean(s != null ? s : "columnGroupOrder" in n), k = "columnGroups" in n ? n.columnGroups : void 0, A = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, O = "columnOrder" in n ? n.columnOrder : void 0, z = v(() => Ct(k, A, O), [k, A, O]), D = v(() => qn(n), [n]), j = v(() => so(n), [n]), M = v(() => eo(n), [n]), H = v(() => {
2044
2049
  try {
2045
- qn(n);
2050
+ Un(n);
2046
2051
  return;
2047
- } catch (H) {
2048
- return H instanceof Error ? H : new Error("Unknown error");
2052
+ } catch (J) {
2053
+ return J instanceof Error ? J : new Error("Unknown error");
2049
2054
  }
2050
2055
  }, [n]);
2051
- return K ? /* @__PURE__ */ r(Jt, {
2052
- text: K.message
2056
+ return H ? /* @__PURE__ */ r(Xt, {
2057
+ text: H.message
2053
2058
  }) : /* @__PURE__ */ r("table", {
2054
2059
  className: Fe(Ve.standardTable, Ve[l]),
2055
2060
  style: {
2056
2061
  width: "100%",
2057
2062
  isolation: "isolate",
2058
- "--current-left-offset": m && f ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : f ? "var(--swui-checkbox-cell-width)" : m ? "var(--swui-expand-cell-width)" : "0px"
2063
+ "--current-left-offset": m && C ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : C ? "var(--swui-checkbox-cell-width)" : m ? "var(--swui-expand-cell-width)" : "0px"
2059
2064
  },
2060
- children: /* @__PURE__ */ r(mt.Provider, {
2061
- value: j,
2062
- children: /* @__PURE__ */ r(ft.Provider, {
2063
- value: D,
2064
- children: /* @__PURE__ */ r(Nn.Provider, {
2065
+ children: /* @__PURE__ */ r(ft.Provider, {
2066
+ value: M,
2067
+ children: /* @__PURE__ */ r(wt.Provider, {
2068
+ value: j,
2069
+ children: /* @__PURE__ */ r(Kn.Provider, {
2065
2070
  value: l,
2066
2071
  children: /* @__PURE__ */ r(st.Provider, {
2067
- value: c != null ? c : u,
2072
+ value: c != null ? c : a,
2068
2073
  children: /* @__PURE__ */ r(ct.Provider, {
2069
- value: C,
2074
+ value: y,
2070
2075
  children: /* @__PURE__ */ r(lt.Provider, {
2071
- value: S,
2076
+ value: x,
2072
2077
  children: /* @__PURE__ */ r(it.Provider, {
2073
2078
  value: n,
2074
2079
  children: /* @__PURE__ */ r(dt.Provider, {
2075
- value: O,
2076
- children: /* @__PURE__ */ r(Ct.Provider, {
2077
- value: z,
2078
- children: /* @__PURE__ */ r(Bn.Provider, {
2079
- value: y,
2080
- children: /* @__PURE__ */ g(pt.Provider, {
2080
+ value: z,
2081
+ children: /* @__PURE__ */ r(vt.Provider, {
2082
+ value: D,
2083
+ children: /* @__PURE__ */ r(Nn.Provider, {
2084
+ value: B,
2085
+ children: /* @__PURE__ */ g(mt.Provider, {
2081
2086
  value: "columnGroupOrder" in n ? s != null ? s : n.columnGroupOrder : s,
2082
- children: [/* @__PURE__ */ r(Uo, {}), /* @__PURE__ */ g(ht.Provider, {
2087
+ children: [/* @__PURE__ */ r(lo, {}), /* @__PURE__ */ r(ht.Provider, {
2083
2088
  value: i,
2084
- children: [/* @__PURE__ */ g("thead", {
2085
- children: [(s || "columnGroupOrder" in n) && /* @__PURE__ */ r(_n, {
2086
- height: "var(--current-row-height)"
2087
- }), /* @__PURE__ */ r(Fo, {
2088
- items: d.items,
2089
- height: "var(--current-row-height)"
2089
+ children: /* @__PURE__ */ g(pt.Provider, {
2090
+ value: d,
2091
+ children: [/* @__PURE__ */ g("thead", {
2092
+ children: [(s || "columnGroupOrder" in n) && /* @__PURE__ */ r(Wn, {
2093
+ height: "var(--current-row-height)"
2094
+ }), /* @__PURE__ */ r(Jo, {
2095
+ items: u.items,
2096
+ height: "var(--current-row-height)"
2097
+ })]
2098
+ }), /* @__PURE__ */ r(jo, {
2099
+ variant: l,
2100
+ ...u
2090
2101
  })]
2091
- }), /* @__PURE__ */ r(Mo, {
2092
- variant: l,
2093
- ...d
2094
- })]
2102
+ })
2095
2103
  })]
2096
2104
  })
2097
2105
  })
@@ -2105,10 +2113,10 @@ const Xe = T.createContext({}), xr = ({
2105
2113
  })
2106
2114
  })
2107
2115
  });
2108
- }, Gr = (e, t) => ({
2116
+ }, Or = (e, t) => ({
2109
2117
  ...t,
2110
2118
  itemValueResolver: e
2111
- }), Tr = () => ({
2119
+ }), Pr = () => ({
2112
2120
  label: e,
2113
2121
  gridCell: {
2114
2122
  editorValue: t,
@@ -2132,7 +2140,7 @@ const Xe = T.createContext({}), xr = ({
2132
2140
  color: "var(--swui-primary-action-color)",
2133
2141
  children: e
2134
2142
  })
2135
- }), Or = (e, t, n) => ({
2143
+ }), Ar = (e, t, n) => ({
2136
2144
  label: o,
2137
2145
  item: s,
2138
2146
  gridCell: {
@@ -2142,99 +2150,99 @@ const Xe = T.createContext({}), xr = ({
2142
2150
  stopEditingAndRevert: d,
2143
2151
  lastKeyEvent: u,
2144
2152
  stopEditing: a,
2145
- stopEditingAndMove: h
2153
+ stopEditingAndMove: p
2146
2154
  },
2147
- isEditable: m
2155
+ isEditable: f
2148
2156
  }) => {
2149
- const f = typeof e == "function" ? e(s) : e, w = t ? t(s) : void 0, p = n ? n(s) : void 0;
2150
- return m && l ? /* @__PURE__ */ r(ge, {
2157
+ const m = typeof e == "function" ? e(s) : e, C = t ? t(s) : void 0, h = n ? n(s) : void 0;
2158
+ return f && l ? /* @__PURE__ */ r(ge, {
2151
2159
  onValueChange: i,
2152
2160
  value: c,
2153
2161
  onDone: a,
2154
2162
  onEsc: d,
2155
2163
  autoFocus: !0,
2156
2164
  selectAllOnMount: !u,
2157
- onMove: h
2165
+ onMove: p
2158
2166
  }) : /* @__PURE__ */ r(N, {
2159
2167
  row: !0,
2160
2168
  alignItems: "center",
2161
- children: /* @__PURE__ */ r(tn, {
2169
+ children: /* @__PURE__ */ r(nn, {
2162
2170
  value: o,
2163
- modifiedField: p,
2164
- crudStatus: w,
2165
- isEditable: m,
2166
- warningOnEmpty: f
2171
+ modifiedField: h,
2172
+ crudStatus: C,
2173
+ isEditable: f,
2174
+ warningOnEmpty: m
2167
2175
  })
2168
2176
  });
2169
2177
  };
2170
2178
  export {
2171
2179
  Ye as CrudStatusIndicator,
2172
- Er as EditableTextCellWithCrudAndModified,
2180
+ Gr as EditableTextCellWithCrudAndModified,
2173
2181
  Xe as GridHooksContext,
2174
- xr as GridHooksTable,
2175
- tn as ModifiedField,
2176
- gr as SmallTableCell,
2177
- br as SmallTableHead,
2178
- Rr as StandardTable,
2182
+ br as GridHooksTable,
2183
+ nn as ModifiedField,
2184
+ kr as SmallTableCell,
2185
+ Sr as SmallTableHead,
2186
+ Tr as StandardTable,
2179
2187
  lt as StandardTableActionsContext,
2180
- Eo as StandardTableCell,
2181
- bo as StandardTableCellUi,
2188
+ To as StandardTableCell,
2189
+ Io as StandardTableCellUi,
2182
2190
  it as StandardTableConfigContext,
2183
- Mo as StandardTableContent,
2184
- Fo as StandardTableHeadRow,
2185
- Go as StandardTableRow,
2186
- ho as StandardTableRowCheckbox,
2187
- $o as StandardTableRowList,
2191
+ jo as StandardTableContent,
2192
+ Jo as StandardTableHeadRow,
2193
+ Po as StandardTableRow,
2194
+ fo as StandardTableRowCheckbox,
2195
+ _o as StandardTableRowList,
2188
2196
  ct as StandardTableStateContext,
2189
2197
  st as StandardTableTableIdContext,
2190
- nn as TableCell,
2191
- kr as TableColumnGroupHead,
2198
+ on as TableCell,
2199
+ Ir as TableColumnGroupHead,
2192
2200
  Ee as TableHeadItem,
2193
- Sr as TableHeadRow,
2194
- Ir as TableRow,
2195
- Io as TextCell,
2196
- Gr as createColumnConfig,
2197
- Or as createEditableTextCellWithStatus,
2198
- wt as createGroupConfigAndIdsForRows,
2199
- Pn as createInternalStandardTableActions,
2200
- Tr as createStandardEditableTextCell,
2201
- to as createStandardTableActions,
2201
+ Er as TableHeadRow,
2202
+ Rr as TableRow,
2203
+ Go as TextCell,
2204
+ Or as createColumnConfig,
2205
+ Ar as createEditableTextCellWithStatus,
2206
+ Ct as createGroupConfigAndIdsForRows,
2207
+ An as createInternalStandardTableActions,
2208
+ Pr as createStandardEditableTextCell,
2209
+ oo as createStandardTableActions,
2202
2210
  at as createStandardTableInitialState,
2203
- An as createStandardTableReducer,
2211
+ Ln as createStandardTableReducer,
2204
2212
  Ie as defaultTableHeadRowHeight,
2205
2213
  Se as defaultTableRowHeight,
2206
2214
  rt as focusOnCell,
2207
- yo as formatColumnIdToHeaderCellLabel,
2208
- vo as formatValueLabel,
2215
+ bo as formatColumnIdToHeaderCellLabel,
2216
+ go as formatValueLabel,
2209
2217
  be as hasIndicatorContent,
2210
- ao as multitypeComparator,
2218
+ po as multitypeComparator,
2211
2219
  tt as smallTableRowWidth,
2212
2220
  Qe as tableBackgroundColorExpanded,
2213
- sn as tableBackgroundHoverColorExpanded,
2214
- oe as tableBorder,
2215
- on as tableBorderColor,
2216
- rn as tableBorderColorExpanded,
2217
- cn as tableBorderHidden,
2221
+ cn as tableBackgroundHoverColorExpanded,
2222
+ re as tableBorder,
2223
+ rn as tableBorderColor,
2224
+ sn as tableBorderColorExpanded,
2225
+ ln as tableBorderHidden,
2218
2226
  ke as tableBorderLeft,
2219
2227
  et as tableBorderLeftExpanded,
2220
2228
  _e as useCellBackgroundByColumnConfig,
2221
- Co as useCellBackgroundByColumnId,
2222
- ce as useColumnConfigById,
2223
- uo as useColumnValueResolver,
2224
- mn as useEditableCell,
2225
- zn as useFirstColumnConfig,
2229
+ xo as useCellBackgroundByColumnId,
2230
+ le as useColumnConfigById,
2231
+ mo as useColumnValueResolver,
2232
+ fn as useEditableCell,
2233
+ Hn as useFirstColumnConfig,
2226
2234
  he as useGridCell,
2227
- Gn as useGridNavigation,
2235
+ Tn as useGridNavigation,
2228
2236
  nt as useGridNavigationOptionsFromContext,
2229
- Kn as useLastColumnConfig,
2230
- no as useLocalStateTableContext,
2231
- un as useRevertableValue,
2232
- mo as useRowCheckbox,
2233
- se as useStandardTableActions,
2237
+ $n as useLastColumnConfig,
2238
+ ro as useLocalStateTableContext,
2239
+ hn as useRevertableValue,
2240
+ Co as useRowCheckbox,
2241
+ ce as useStandardTableActions,
2234
2242
  R as useStandardTableConfig,
2235
2243
  Re as useStandardTableId,
2236
- Y as useStandardTableState,
2237
- Vo as useTableHeadCheckbox,
2238
- jo as useTableSortHeader
2244
+ Q as useStandardTableState,
2245
+ Wo as useTableHeadCheckbox,
2246
+ Fo as useTableSortHeader
2239
2247
  };
2240
2248
  //# sourceMappingURL=index.es.js.map