@stenajs-webui/grid 19.0.0-next.1 → 19.0.0-next.12

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