@stenajs-webui/grid 18.12.2 → 18.12.3
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 +190 -188
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { jsx as r, Fragment as O, jsxs as
|
|
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)}._standardTableHeadTh_swsxb_8{height:1px;@-moz-document url-prefix(){height:100%}}")),document.head.appendChild(e)}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
+
import { jsx as r, Fragment as O, jsxs as b } from "react/jsx-runtime";
|
|
3
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
|
|
4
|
+
import { useMemo as v, useRef as ne, useState as ve, useCallback as I, useEffect as je, useContext as $, createContext as H, useReducer as Et, useId as Rt } from "react";
|
|
5
5
|
import { faExclamationTriangle as ue } from "@fortawesome/free-solid-svg-icons/faExclamationTriangle";
|
|
6
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";
|
|
7
7
|
import { cssColor as j } from "@stenajs-webui/theme";
|
|
@@ -10,14 +10,14 @@ import { Text as U, Indent as N, Space as D, Row as E, Box as oe, exhaustSwitchC
|
|
|
10
10
|
import { faEllipsisV as Dt } from "@fortawesome/free-solid-svg-icons/faEllipsisV";
|
|
11
11
|
import { faSortAlphaDown as Nt } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
|
|
12
12
|
import { faSortAlphaUp as zt } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
|
|
13
|
-
import { faSortAmountDownAlt as
|
|
13
|
+
import { faSortAmountDownAlt as Ht } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
|
|
14
14
|
import { faSortAmountUpAlt as $t } from "@fortawesome/free-solid-svg-icons/faSortAmountUpAlt";
|
|
15
|
-
import { faSortNumericDown as
|
|
16
|
-
import { faSortNumericUp as
|
|
15
|
+
import { faSortNumericDown as Kt } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
|
|
16
|
+
import { faSortNumericUp as _t } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
|
|
17
17
|
import Fe from "classnames";
|
|
18
|
-
import { faArrowRight as
|
|
19
|
-
import { TextInput as
|
|
20
|
-
import { useDispatch as
|
|
18
|
+
import { faArrowRight as Mt } from "@fortawesome/free-solid-svg-icons/faArrowRight";
|
|
19
|
+
import { TextInput as be, Checkbox as Ue } from "@stenajs-webui/forms";
|
|
20
|
+
import { useDispatch as Vt, useSelector as Be } from "react-redux";
|
|
21
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
22
|
import { combineReducers as Zt } from "redux";
|
|
23
23
|
import { LoadingScreen as Jt, ErrorScreen as Xt } from "@stenajs-webui/panels";
|
|
@@ -25,7 +25,7 @@ import { compact as Yt, upperFirst as Qt, lowerCase as en } from "lodash";
|
|
|
25
25
|
import { faChevronDown as Ze } from "@fortawesome/free-solid-svg-icons/faChevronDown";
|
|
26
26
|
import { faChevronRight as Je } from "@fortawesome/free-solid-svg-icons/faChevronRight";
|
|
27
27
|
import tn from "@emotion/styled";
|
|
28
|
-
const Xe = P.createContext({}),
|
|
28
|
+
const Xe = P.createContext({}), Sr = ({
|
|
29
29
|
children: e,
|
|
30
30
|
numCols: t,
|
|
31
31
|
numRows: n,
|
|
@@ -37,11 +37,11 @@ const Xe = P.createContext({}), br = ({
|
|
|
37
37
|
[t, n, o, s]
|
|
38
38
|
);
|
|
39
39
|
return /* @__PURE__ */ r(Xe.Provider, { value: c, children: e });
|
|
40
|
-
},
|
|
40
|
+
}, ge = (e) => {
|
|
41
41
|
const { loading: t, creating: n, deleting: o, updating: s, hasError: c } = e;
|
|
42
42
|
return Boolean(t || n || o || s || c);
|
|
43
43
|
}, Ye = ({ crudStatus: e }) => {
|
|
44
|
-
if (!e || !
|
|
44
|
+
if (!e || !ge(e))
|
|
45
45
|
return null;
|
|
46
46
|
const { errorMessage: t, hasError: n, loading: o, creating: s, deleting: c, updating: l } = e;
|
|
47
47
|
if (o || s || c || l)
|
|
@@ -65,8 +65,8 @@ const Xe = P.createContext({}), br = ({
|
|
|
65
65
|
modifiedField: o,
|
|
66
66
|
crudStatus: s
|
|
67
67
|
}) => {
|
|
68
|
-
const c = t && (o == null ? void 0 : o.modified) && (o == null ? void 0 : o.newValue) === "", l = s &&
|
|
69
|
-
return /* @__PURE__ */
|
|
68
|
+
const c = t && (o == null ? void 0 : o.modified) && (o == null ? void 0 : o.newValue) === "", l = s && ge(s), i = c || l;
|
|
69
|
+
return /* @__PURE__ */ b(O, { children: [
|
|
70
70
|
/* @__PURE__ */ r(
|
|
71
71
|
U,
|
|
72
72
|
{
|
|
@@ -75,7 +75,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
75
75
|
children: n
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
|
-
(o == null ? void 0 : o.newValue) !== void 0 && /* @__PURE__ */
|
|
78
|
+
(o == null ? void 0 : o.newValue) !== void 0 && /* @__PURE__ */ b(O, { children: [
|
|
79
79
|
/* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(F, { icon: Tt, size: 12 }) }),
|
|
80
80
|
/* @__PURE__ */ r(U, { color: "var(--swui-primary-action-color)", variant: "bold", children: o.newValue })
|
|
81
81
|
] }),
|
|
@@ -105,14 +105,14 @@ const Xe = P.createContext({}), br = ({
|
|
|
105
105
|
indent: o,
|
|
106
106
|
...s
|
|
107
107
|
}
|
|
108
|
-
), 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",
|
|
108
|
+
), 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", Ir = (e) => /* @__PURE__ */ r(
|
|
109
109
|
on,
|
|
110
110
|
{
|
|
111
111
|
width: tt,
|
|
112
112
|
justifyContent: "center",
|
|
113
113
|
...e
|
|
114
114
|
}
|
|
115
|
-
),
|
|
115
|
+
), He = ({
|
|
116
116
|
iconVariant: e = "amount",
|
|
117
117
|
direction: t
|
|
118
118
|
}) => /* @__PURE__ */ r(oe, { width: "14px", children: /* @__PURE__ */ r(
|
|
@@ -127,9 +127,9 @@ const Xe = P.createContext({}), br = ({
|
|
|
127
127
|
case "alpha":
|
|
128
128
|
return e === "up" ? zt : Nt;
|
|
129
129
|
case "numeric":
|
|
130
|
-
return e === "up" ?
|
|
130
|
+
return e === "up" ? _t : Kt;
|
|
131
131
|
case "amount":
|
|
132
|
-
return e === "up" ? $t :
|
|
132
|
+
return e === "up" ? $t : Ht;
|
|
133
133
|
default:
|
|
134
134
|
return At(t);
|
|
135
135
|
}
|
|
@@ -150,7 +150,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
150
150
|
...f
|
|
151
151
|
}) => {
|
|
152
152
|
const m = ne(null), C = n ? { cursor: "pointer", userSelect: "none" } : void 0, p = !e && !t && !i;
|
|
153
|
-
return /* @__PURE__ */
|
|
153
|
+
return /* @__PURE__ */ b(
|
|
154
154
|
E,
|
|
155
155
|
{
|
|
156
156
|
height: "100%",
|
|
@@ -162,21 +162,21 @@ const Xe = P.createContext({}), br = ({
|
|
|
162
162
|
borderBottom: `2px solid ${s ? j("--lhds-color-blue-500") : "transparent"}`,
|
|
163
163
|
...f,
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
!t && u && /* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ b(E, { alignItems: "center", indent: !0, children: [
|
|
166
|
+
!t && u && /* @__PURE__ */ b(O, { children: [
|
|
167
167
|
/* @__PURE__ */ r(D, {}),
|
|
168
168
|
/* @__PURE__ */ r(oe, { width: "14px" }),
|
|
169
169
|
/* @__PURE__ */ r(D, { num: 0.5 })
|
|
170
170
|
] }),
|
|
171
|
-
(o || e) && /* @__PURE__ */
|
|
172
|
-
o && /* @__PURE__ */
|
|
171
|
+
(o || e) && /* @__PURE__ */ b(E, { onClick: n, style: C, alignItems: "center", children: [
|
|
172
|
+
o && /* @__PURE__ */ b(O, { children: [
|
|
173
173
|
o,
|
|
174
174
|
!p && /* @__PURE__ */ r(D, { num: 0.5 })
|
|
175
175
|
] }),
|
|
176
|
-
t && u && /* @__PURE__ */
|
|
176
|
+
t && u && /* @__PURE__ */ b(O, { children: [
|
|
177
177
|
/* @__PURE__ */ r(D, {}),
|
|
178
178
|
/* @__PURE__ */ r(
|
|
179
|
-
|
|
179
|
+
He,
|
|
180
180
|
{
|
|
181
181
|
direction: t,
|
|
182
182
|
iconVariant: d
|
|
@@ -185,10 +185,10 @@ const Xe = P.createContext({}), br = ({
|
|
|
185
185
|
/* @__PURE__ */ r(D, { num: 0.5 })
|
|
186
186
|
] }),
|
|
187
187
|
e && /* @__PURE__ */ r(We, { variant: "h6", style: { textAlign: "left" }, children: e }),
|
|
188
|
-
t && !u && /* @__PURE__ */
|
|
188
|
+
t && !u && /* @__PURE__ */ b(O, { children: [
|
|
189
189
|
/* @__PURE__ */ r(D, { num: 0.5 }),
|
|
190
190
|
/* @__PURE__ */ r(
|
|
191
|
-
|
|
191
|
+
He,
|
|
192
192
|
{
|
|
193
193
|
direction: t,
|
|
194
194
|
iconVariant: d
|
|
@@ -197,9 +197,9 @@ const Xe = P.createContext({}), br = ({
|
|
|
197
197
|
/* @__PURE__ */ r(D, {})
|
|
198
198
|
] })
|
|
199
199
|
] }),
|
|
200
|
-
i && /* @__PURE__ */
|
|
200
|
+
i && /* @__PURE__ */ b(O, { children: [
|
|
201
201
|
/* @__PURE__ */ r(D, {}),
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ b(E, { onClick: (w) => w.stopPropagation(), children: [
|
|
203
203
|
/* @__PURE__ */ r(
|
|
204
204
|
se,
|
|
205
205
|
{
|
|
@@ -232,7 +232,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
232
232
|
children: /* @__PURE__ */ r(xe, { leftIcon: Dt, size: "small" })
|
|
233
233
|
}
|
|
234
234
|
) : null }),
|
|
235
|
-
!t && !u && /* @__PURE__ */
|
|
235
|
+
!t && !u && /* @__PURE__ */ b(O, { children: [
|
|
236
236
|
/* @__PURE__ */ r(D, {}),
|
|
237
237
|
/* @__PURE__ */ r(oe, { width: "14px" }),
|
|
238
238
|
/* @__PURE__ */ r(D, { num: 0.5 })
|
|
@@ -241,24 +241,24 @@ const Xe = P.createContext({}), br = ({
|
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
|
-
),
|
|
244
|
+
), Er = (e) => /* @__PURE__ */ r(
|
|
245
245
|
Ee,
|
|
246
246
|
{
|
|
247
247
|
width: tt,
|
|
248
248
|
justifyContent: "center",
|
|
249
249
|
...e
|
|
250
250
|
}
|
|
251
|
-
),
|
|
251
|
+
), Rr = ({
|
|
252
252
|
label: e,
|
|
253
253
|
flex: t,
|
|
254
254
|
width: n,
|
|
255
255
|
indent: o = 1,
|
|
256
256
|
height: s = Ie
|
|
257
|
-
}) => /* @__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 }) }) }),
|
|
257
|
+
}) => /* @__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 }) }) }), Tr = P.memo(
|
|
258
258
|
({ style: e, height: t = Ie, ...n }) => /* @__PURE__ */ r(E, { style: e, height: t, ...n })
|
|
259
259
|
), dn = "_tableRow_1cphw_1", un = {
|
|
260
260
|
tableRow: dn
|
|
261
|
-
},
|
|
261
|
+
}, Gr = ({
|
|
262
262
|
hideBorderTop: e,
|
|
263
263
|
height: t = Ie,
|
|
264
264
|
className: n,
|
|
@@ -329,12 +329,12 @@ const Xe = P.createContext({}), br = ({
|
|
|
329
329
|
[t, s, p, C, e]
|
|
330
330
|
), y = I(() => {
|
|
331
331
|
t && (a(!1), c && c(), o && o(f()));
|
|
332
|
-
}, [t, o, c, f, a]),
|
|
332
|
+
}, [t, o, c, f, a]), g = I(() => {
|
|
333
333
|
t && (a(!1), c && c(), m());
|
|
334
334
|
}, [t, c, m, a]);
|
|
335
335
|
return {
|
|
336
336
|
onKeyDown: v(
|
|
337
|
-
() =>
|
|
337
|
+
() => bn(
|
|
338
338
|
i,
|
|
339
339
|
t,
|
|
340
340
|
w,
|
|
@@ -358,10 +358,10 @@ const Xe = P.createContext({}), br = ({
|
|
|
358
358
|
revertableValue: h,
|
|
359
359
|
startEditing: w,
|
|
360
360
|
stopEditing: y,
|
|
361
|
-
stopEditingAndRevert:
|
|
361
|
+
stopEditingAndRevert: g,
|
|
362
362
|
onDoubleClick: w
|
|
363
363
|
};
|
|
364
|
-
}, 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)),
|
|
364
|
+
}, 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)), bn = (e, t, n, o, s, c, l) => (i) => {
|
|
365
365
|
if (!(i.ctrlKey || i.metaKey || i.shiftKey)) {
|
|
366
366
|
if (i.key === "Enter" && t)
|
|
367
367
|
o(void 0), n(), l.commit(), i.preventDefault(), i.stopPropagation();
|
|
@@ -370,7 +370,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
370
370
|
(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());
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, gn = (e, t, n, o) => {
|
|
374
374
|
let s = e, c = t;
|
|
375
375
|
return t > o && (c = 0), t < 0 && (c = o), e > n && (s = 0), e < 0 && (s = n), {
|
|
376
376
|
realX: s,
|
|
@@ -380,7 +380,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
380
380
|
rowIndex: $e(e.rowIndex, 0, t),
|
|
381
381
|
colIndex: $e(e.colIndex, 0, n)
|
|
382
382
|
}), Sn = (e, t, n) => {
|
|
383
|
-
const o =
|
|
383
|
+
const o = gn(e.colIndex, e.rowIndex, n, t);
|
|
384
384
|
return {
|
|
385
385
|
rowIndex: o.realY,
|
|
386
386
|
colIndex: o.realX
|
|
@@ -551,7 +551,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
551
551
|
stopEditingAndRevert: a,
|
|
552
552
|
stopEditingAndMove: u
|
|
553
553
|
};
|
|
554
|
-
},
|
|
554
|
+
}, Or = function({
|
|
555
555
|
allowedInputType: t,
|
|
556
556
|
value: n = "",
|
|
557
557
|
entityId: o,
|
|
@@ -565,14 +565,14 @@ const Xe = P.createContext({}), br = ({
|
|
|
565
565
|
numRows: h,
|
|
566
566
|
warningOnEmpty: f
|
|
567
567
|
}) {
|
|
568
|
-
const m =
|
|
568
|
+
const m = Vt(), C = Be(
|
|
569
569
|
i.selectors.getState
|
|
570
|
-
), p = Be(l.selectors.getState), w = C.entities[o], y = p.entities[o],
|
|
571
|
-
(
|
|
572
|
-
m(
|
|
570
|
+
), p = Be(l.selectors.getState), w = C.entities[o], y = p.entities[o], g = I(
|
|
571
|
+
(_ = "") => {
|
|
572
|
+
m(_ === n ? i.actions.clearEntity(o) : i.actions.setEntity({
|
|
573
573
|
id: o,
|
|
574
574
|
originalValue: n,
|
|
575
|
-
newValue:
|
|
575
|
+
newValue: _,
|
|
576
576
|
modified: !0
|
|
577
577
|
}));
|
|
578
578
|
},
|
|
@@ -592,17 +592,17 @@ const Xe = P.createContext({}), br = ({
|
|
|
592
592
|
numCols: d,
|
|
593
593
|
numRows: h,
|
|
594
594
|
tableId: "serviceManningMatrixTable",
|
|
595
|
-
onChange:
|
|
595
|
+
onChange: g,
|
|
596
596
|
isEditable: s,
|
|
597
597
|
allowedInputType: t
|
|
598
|
-
}),
|
|
599
|
-
(
|
|
600
|
-
|
|
598
|
+
}), K = I(
|
|
599
|
+
(_) => {
|
|
600
|
+
_.key === "Delete" ? (m(i.actions.clearEntity(o)), m(
|
|
601
601
|
l.actions.setEntityFields(o, {
|
|
602
602
|
hasError: !1,
|
|
603
603
|
errorMessage: void 0
|
|
604
604
|
})
|
|
605
|
-
)) : A(
|
|
605
|
+
)) : A(_);
|
|
606
606
|
},
|
|
607
607
|
[
|
|
608
608
|
A,
|
|
@@ -612,7 +612,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
612
612
|
l.actions
|
|
613
613
|
]
|
|
614
614
|
);
|
|
615
|
-
return /* @__PURE__ */
|
|
615
|
+
return /* @__PURE__ */ b(
|
|
616
616
|
E,
|
|
617
617
|
{
|
|
618
618
|
height: Se,
|
|
@@ -633,10 +633,10 @@ const Xe = P.createContext({}), br = ({
|
|
|
633
633
|
borderRadius: "4px",
|
|
634
634
|
focusBorder: k ? void 0 : "1px solid var(--primary-action-color)",
|
|
635
635
|
hoverBorder: k ? void 0 : "var(--ui5) solid 1px;",
|
|
636
|
-
onKeyDown:
|
|
636
|
+
onKeyDown: K,
|
|
637
637
|
...W,
|
|
638
638
|
children: /* @__PURE__ */ r(N, { row: !0, alignItems: "center", children: k ? /* @__PURE__ */ r(
|
|
639
|
-
|
|
639
|
+
be,
|
|
640
640
|
{
|
|
641
641
|
onValueChange: G,
|
|
642
642
|
value: T,
|
|
@@ -646,7 +646,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
646
646
|
selectAllOnMount: !z,
|
|
647
647
|
onMove: x
|
|
648
648
|
}
|
|
649
|
-
) : /* @__PURE__ */
|
|
649
|
+
) : /* @__PURE__ */ b(O, { children: [
|
|
650
650
|
/* @__PURE__ */ r(
|
|
651
651
|
U,
|
|
652
652
|
{
|
|
@@ -655,8 +655,8 @@ const Xe = P.createContext({}), br = ({
|
|
|
655
655
|
children: n
|
|
656
656
|
}
|
|
657
657
|
),
|
|
658
|
-
(w == null ? void 0 : w.newValue) !== void 0 && /* @__PURE__ */
|
|
659
|
-
/* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(F, { icon:
|
|
658
|
+
(w == null ? void 0 : w.newValue) !== void 0 && /* @__PURE__ */ b(O, { children: [
|
|
659
|
+
/* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(F, { icon: Mt, size: 12 }) }),
|
|
660
660
|
/* @__PURE__ */ r(
|
|
661
661
|
U,
|
|
662
662
|
{
|
|
@@ -666,7 +666,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
666
666
|
}
|
|
667
667
|
)
|
|
668
668
|
] }),
|
|
669
|
-
y &&
|
|
669
|
+
y && ge(y) && /* @__PURE__ */ r(D, { num: 2 }),
|
|
670
670
|
f && (w == null ? void 0 : w.modified) && (w == null ? void 0 : w.newValue) === "" ? /* @__PURE__ */ r(se, { label: f, zIndex: 100, children: /* @__PURE__ */ r(
|
|
671
671
|
F,
|
|
672
672
|
{
|
|
@@ -682,14 +682,14 @@ const Xe = P.createContext({}), br = ({
|
|
|
682
682
|
]
|
|
683
683
|
}
|
|
684
684
|
);
|
|
685
|
-
}, st =
|
|
685
|
+
}, st = H(""), ct = H(
|
|
686
686
|
void 0
|
|
687
|
-
), lt =
|
|
687
|
+
), lt = H(void 0), it = H(void 0), An = () => ({
|
|
688
688
|
sortOrder: jt(),
|
|
689
689
|
selectedIds: De(),
|
|
690
690
|
expandedRows: De(),
|
|
691
691
|
fields: Wt()
|
|
692
|
-
}),
|
|
692
|
+
}), V = (e, t) => `${e}.${t}`, at = (e = void 0, t = !1, n = [], o = []) => ({
|
|
693
693
|
sortOrder: qt(e, t),
|
|
694
694
|
selectedIds: Ne(n),
|
|
695
695
|
expandedRows: Ne(o),
|
|
@@ -697,16 +697,16 @@ const Xe = P.createContext({}), br = ({
|
|
|
697
697
|
}), Ln = (e, t) => {
|
|
698
698
|
var l;
|
|
699
699
|
const n = de(
|
|
700
|
-
|
|
700
|
+
V(e, "sortOrder"),
|
|
701
701
|
Ft(t == null ? void 0 : t.sortOrder)
|
|
702
702
|
), o = de(
|
|
703
|
-
|
|
703
|
+
V(e, "selectedIds"),
|
|
704
704
|
ze(t == null ? void 0 : t.selectedIds)
|
|
705
705
|
), s = de(
|
|
706
|
-
|
|
706
|
+
V(e, "expandedRows"),
|
|
707
707
|
ze(t == null ? void 0 : t.expandedRows)
|
|
708
708
|
), c = de(
|
|
709
|
-
|
|
709
|
+
V(e, "fields"),
|
|
710
710
|
Ut((l = t == null ? void 0 : t.fields) != null ? l : {})
|
|
711
711
|
);
|
|
712
712
|
return Zt({
|
|
@@ -715,7 +715,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
715
715
|
expandedRows: s,
|
|
716
716
|
fields: c
|
|
717
717
|
});
|
|
718
|
-
}, Re = () => $(st), R = () => $(it), Q = () => $(ct), ce = () => $(lt), dt =
|
|
718
|
+
}, Re = () => $(st), R = () => $(it), Q = () => $(ct), ce = () => $(lt), dt = H([]), Z = () => $(
|
|
719
719
|
dt
|
|
720
720
|
), ut = () => {
|
|
721
721
|
const e = R(), t = Z();
|
|
@@ -724,7 +724,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
724
724
|
() => t.map((o) => o.groupConfig.columnOrder.length).reduce((o, s) => o + s, 0),
|
|
725
725
|
[t]
|
|
726
726
|
);
|
|
727
|
-
}, ht =
|
|
727
|
+
}, ht = H(void 0), Bn = () => $(ht), pt = H(void 0), Dn = () => $(pt), mt = H(void 0), Nn = H(!1), zn = () => $(mt), Hn = H("standard"), ft = H({}), Te = () => $(ft), wt = H(0), Ge = () => $(wt), Ct = (e, t, n) => {
|
|
728
728
|
var o;
|
|
729
729
|
return e ? Yt(
|
|
730
730
|
(o = t == null ? void 0 : t.map((s) => {
|
|
@@ -765,11 +765,11 @@ const Xe = P.createContext({}), br = ({
|
|
|
765
765
|
var n, o, s;
|
|
766
766
|
const e = R(), t = (s = (o = (n = Z()) == null ? void 0 : n[0]) == null ? void 0 : o.groupConfig.columnOrder) == null ? void 0 : s[0];
|
|
767
767
|
return t ? e.columns[t] : void 0;
|
|
768
|
-
},
|
|
768
|
+
}, Kn = () => {
|
|
769
769
|
var s;
|
|
770
770
|
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;
|
|
771
771
|
return o ? e.columns[o] : void 0;
|
|
772
|
-
},
|
|
772
|
+
}, _n = function({
|
|
773
773
|
columnId: t,
|
|
774
774
|
groupConfig: n,
|
|
775
775
|
borderFromGroup: o,
|
|
@@ -778,7 +778,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
778
778
|
isLastGroup: l
|
|
779
779
|
}) {
|
|
780
780
|
var A;
|
|
781
|
-
const { label: i, render: a, contentLeft: u, contentRight: d, loading: h, error: f } = n, { width: m, minWidth: C, zIndex: p, borderLeft: w } = le(t), y = R(), { stickyHeader:
|
|
781
|
+
const { label: i, render: a, contentLeft: u, contentRight: d, loading: h, error: f } = n, { width: m, minWidth: C, zIndex: p, borderLeft: w } = le(t), y = R(), { stickyHeader: g, headerRowOffsetTop: k } = y, S = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, T = Mn(o, w), G = c && (S === "first" || S === "both"), L = l && (S === "last" || S === "both"), x = G || L || g, z = G || L;
|
|
782
782
|
return /* @__PURE__ */ r(
|
|
783
783
|
"th",
|
|
784
784
|
{
|
|
@@ -791,19 +791,19 @@ const Xe = P.createContext({}), br = ({
|
|
|
791
791
|
background: x ? "white" : "transparent",
|
|
792
792
|
left: G ? "var(--current-left-offset)" : void 0,
|
|
793
793
|
right: L ? "0px" : void 0,
|
|
794
|
-
top:
|
|
794
|
+
top: g ? k != null ? k : "0px" : void 0,
|
|
795
795
|
borderLeft: T,
|
|
796
|
-
zIndex:
|
|
796
|
+
zIndex: g && z ? "var(--swui-sticky-column-group-label-z-index)" : z ? "var(--swui-sticky-group-group-z-index)" : g ? p != null ? p : "var(--swui-sticky-header-column-group-z-index)" : p != null ? p : 1,
|
|
797
797
|
boxShadow: G ? "var(--swui-sticky-column-shadow-right)" : L ? "var(--swui-sticky-column-shadow-left)" : void 0
|
|
798
798
|
},
|
|
799
|
-
children: /* @__PURE__ */ r(E, { alignItems: "center", children: /* @__PURE__ */
|
|
800
|
-
u && /* @__PURE__ */
|
|
799
|
+
children: /* @__PURE__ */ r(E, { alignItems: "center", children: /* @__PURE__ */ b(O, { children: [
|
|
800
|
+
u && /* @__PURE__ */ b(O, { children: [
|
|
801
801
|
/* @__PURE__ */ r(D, {}),
|
|
802
802
|
u,
|
|
803
803
|
/* @__PURE__ */ r(D, { num: 0.5 })
|
|
804
804
|
] }),
|
|
805
805
|
a ? a(n) : /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(We, { variant: "h5", whiteSpace: "nowrap", children: i }) }),
|
|
806
|
-
d && /* @__PURE__ */
|
|
806
|
+
d && /* @__PURE__ */ b(O, { children: [
|
|
807
807
|
/* @__PURE__ */ r(D, { num: 0.5 }),
|
|
808
808
|
d
|
|
809
809
|
] }),
|
|
@@ -827,12 +827,12 @@ const Xe = P.createContext({}), br = ({
|
|
|
827
827
|
] }) })
|
|
828
828
|
}
|
|
829
829
|
);
|
|
830
|
-
},
|
|
830
|
+
}, Mn = (e, t) => {
|
|
831
831
|
if (e)
|
|
832
832
|
return e;
|
|
833
833
|
if (t)
|
|
834
834
|
return "1px solid transparent";
|
|
835
|
-
},
|
|
835
|
+
}, Vn = (e, t, n, o) => ({
|
|
836
836
|
top: e ? jn(e, n) : void 0,
|
|
837
837
|
background: e || t ? "white" : void 0,
|
|
838
838
|
position: e || t ? "sticky" : void 0,
|
|
@@ -856,13 +856,13 @@ const Xe = P.createContext({}), br = ({
|
|
|
856
856
|
stickyHeader: a,
|
|
857
857
|
stickyCheckboxColumn: u,
|
|
858
858
|
headerRowOffsetTop: d
|
|
859
|
-
} = o, h =
|
|
859
|
+
} = o, h = Vn(
|
|
860
860
|
a,
|
|
861
861
|
u,
|
|
862
862
|
d,
|
|
863
863
|
i
|
|
864
864
|
), f = a ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
|
|
865
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ b(
|
|
866
866
|
"tr",
|
|
867
867
|
{
|
|
868
868
|
style: {
|
|
@@ -893,7 +893,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
893
893
|
}
|
|
894
894
|
),
|
|
895
895
|
n.map(({ groupConfig: m, groupId: C }, p) => /* @__PURE__ */ r(
|
|
896
|
-
|
|
896
|
+
_n,
|
|
897
897
|
{
|
|
898
898
|
isFirstGroup: p === 0,
|
|
899
899
|
isLastGroup: p === n.length - 1,
|
|
@@ -928,13 +928,13 @@ const Xe = P.createContext({}), br = ({
|
|
|
928
928
|
columnIndexPerColumnId: n,
|
|
929
929
|
numNavigableColumns: o
|
|
930
930
|
};
|
|
931
|
-
}, Fn = (e) => !e.disableGridCell, vt =
|
|
931
|
+
}, Fn = (e) => !e.disableGridCell, vt = H({
|
|
932
932
|
columnIndexPerColumnId: {},
|
|
933
933
|
numNavigableColumns: 0
|
|
934
934
|
}), yt = () => $(
|
|
935
935
|
vt
|
|
936
936
|
), Un = (e) => {
|
|
937
|
-
"columnGroupOrder" in e && (Zn(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") &&
|
|
937
|
+
"columnGroupOrder" in e && (Zn(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && Ke(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && Ke(
|
|
938
938
|
e,
|
|
939
939
|
e.columnGroupOrder.length - 1
|
|
940
940
|
));
|
|
@@ -945,7 +945,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
945
945
|
"Columns can not be sticky when column groups are used. columnId: " + n
|
|
946
946
|
);
|
|
947
947
|
});
|
|
948
|
-
},
|
|
948
|
+
}, Ke = (e, t) => {
|
|
949
949
|
var s;
|
|
950
950
|
if (!e.columnGroupOrder || e.columnGroupOrder.length === 0)
|
|
951
951
|
throw new Error(
|
|
@@ -963,11 +963,11 @@ const Xe = P.createContext({}), br = ({
|
|
|
963
963
|
);
|
|
964
964
|
});
|
|
965
965
|
}, Jn = (e) => {
|
|
966
|
-
const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ?
|
|
966
|
+
const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ? _e(
|
|
967
967
|
Yn(e),
|
|
968
968
|
e.columns,
|
|
969
969
|
!0
|
|
970
|
-
) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ?
|
|
970
|
+
) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ? _e(
|
|
971
971
|
Qn(e),
|
|
972
972
|
e.columns,
|
|
973
973
|
!1
|
|
@@ -976,7 +976,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
976
976
|
...t,
|
|
977
977
|
...n
|
|
978
978
|
};
|
|
979
|
-
},
|
|
979
|
+
}, _e = (e, t, n) => {
|
|
980
980
|
var c;
|
|
981
981
|
const o = {}, s = [
|
|
982
982
|
n ? "var(--current-left-offset)" : "0px"
|
|
@@ -1032,31 +1032,31 @@ const Xe = P.createContext({}), br = ({
|
|
|
1032
1032
|
}), t;
|
|
1033
1033
|
}, oo = (e, t) => ({
|
|
1034
1034
|
setSelectedIds: (n) => Y(
|
|
1035
|
-
|
|
1035
|
+
V(e, "selectedIds"),
|
|
1036
1036
|
t.selectedIds.setSelectedIds(n)
|
|
1037
1037
|
),
|
|
1038
1038
|
clearSelection: () => Y(
|
|
1039
|
-
|
|
1039
|
+
V(e, "selectedIds"),
|
|
1040
1040
|
t.selectedIds.clearSelectedIds()
|
|
1041
1041
|
),
|
|
1042
1042
|
expandByIds: (n) => Y(
|
|
1043
|
-
|
|
1043
|
+
V(e, "expandedRows"),
|
|
1044
1044
|
t.expandedRows.setSelectedIds(n)
|
|
1045
1045
|
),
|
|
1046
1046
|
collapseAll: () => Y(
|
|
1047
|
-
|
|
1047
|
+
V(e, "expandedRows"),
|
|
1048
1048
|
t.expandedRows.clearSelectedIds()
|
|
1049
1049
|
),
|
|
1050
1050
|
sortBy: (n, o) => Y(
|
|
1051
|
-
|
|
1051
|
+
V(e, "sortOrder"),
|
|
1052
1052
|
t.sortOrder.sortBy(n, o != null ? o : !1)
|
|
1053
1053
|
),
|
|
1054
1054
|
clearSortOrder: () => Y(
|
|
1055
|
-
|
|
1055
|
+
V(e, "sortOrder"),
|
|
1056
1056
|
t.sortOrder.clearSortOrder()
|
|
1057
1057
|
),
|
|
1058
1058
|
setLastSelectedId: (n) => Y(
|
|
1059
|
-
|
|
1059
|
+
V(e, "fields"),
|
|
1060
1060
|
t.fields.setEntityFields({ lastSelectedId: n })
|
|
1061
1061
|
)
|
|
1062
1062
|
}), ro = (e, t = at()) => {
|
|
@@ -1089,14 +1089,14 @@ const Xe = P.createContext({}), br = ({
|
|
|
1089
1089
|
}, 0) : (n = (t = e.columnOrder) == null ? void 0 : t.length) != null ? n : 0;
|
|
1090
1090
|
}, lo = () => {
|
|
1091
1091
|
const e = R(), t = Z(), n = e.enableExpandCollapse || e.showRowCheckbox, o = Lt(e.rowIndent);
|
|
1092
|
-
return /* @__PURE__ */
|
|
1092
|
+
return /* @__PURE__ */ b(O, { children: [
|
|
1093
1093
|
o ? /* @__PURE__ */ r("colgroup", { children: /* @__PURE__ */ r(
|
|
1094
1094
|
"col",
|
|
1095
1095
|
{
|
|
1096
1096
|
style: { width: `calc(var(--swui-metrics-indent) * ${o})` }
|
|
1097
1097
|
}
|
|
1098
1098
|
) }) : null,
|
|
1099
|
-
n && /* @__PURE__ */
|
|
1099
|
+
n && /* @__PURE__ */ b("colgroup", { children: [
|
|
1100
1100
|
e.enableExpandCollapse && /* @__PURE__ */ r("col", { style: { width: "var(--swui-expand-cell-width)" } }),
|
|
1101
1101
|
e.showRowCheckbox && /* @__PURE__ */ r("col", { style: { width: "var(--swui-checkbox-cell-width)" } })
|
|
1102
1102
|
] }),
|
|
@@ -1117,7 +1117,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
) }) : null
|
|
1119
1119
|
] });
|
|
1120
|
-
}, io = "_standardTable_1iok0_1", ao = "_relaxed_1iok0_37", uo = "_condensed_1iok0_41", ho = "_compact_1iok0_45",
|
|
1120
|
+
}, io = "_standardTable_1iok0_1", ao = "_relaxed_1iok0_37", uo = "_condensed_1iok0_41", ho = "_compact_1iok0_45", Me = {
|
|
1121
1121
|
standardTable: io,
|
|
1122
1122
|
relaxed: ao,
|
|
1123
1123
|
condensed: uo,
|
|
@@ -1260,10 +1260,10 @@ const Xe = P.createContext({}), br = ({
|
|
|
1260
1260
|
), xo = (e, t) => {
|
|
1261
1261
|
const { background: n, backgroundResolver: o } = le(e);
|
|
1262
1262
|
return xt(o, t, n);
|
|
1263
|
-
},
|
|
1263
|
+
}, Ve = (e, t) => {
|
|
1264
1264
|
const { background: n, backgroundResolver: o } = e != null ? e : {};
|
|
1265
1265
|
return xt(o, t, n);
|
|
1266
|
-
},
|
|
1266
|
+
}, bo = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), go = (e) => Qt(en(e)), ko = "_standardTableCell_1xzcm_1", So = {
|
|
1267
1267
|
standardTableCell: ko
|
|
1268
1268
|
}, Io = P.memo(
|
|
1269
1269
|
function({
|
|
@@ -1326,7 +1326,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1326
1326
|
enableGridCell: u,
|
|
1327
1327
|
gridCellOptions: d
|
|
1328
1328
|
} = R(), h = Q().selectedIds.selectedIds, f = Re(), m = Bn(), { numNavigableColumns: C } = yt(), p = Te(), w = v(() => a(n), [n, a]), y = v(() => h.indexOf(w) >= 0, [w, h]), {
|
|
1329
|
-
itemValueResolver:
|
|
1329
|
+
itemValueResolver: g,
|
|
1330
1330
|
itemLabelFormatter: k,
|
|
1331
1331
|
width: S,
|
|
1332
1332
|
minWidth: T,
|
|
@@ -1336,18 +1336,18 @@ const Xe = P.createContext({}), br = ({
|
|
|
1336
1336
|
gridCellOptions: z,
|
|
1337
1337
|
isEditable: A,
|
|
1338
1338
|
onChange: W,
|
|
1339
|
-
onKeyDown:
|
|
1340
|
-
disableGridCell:
|
|
1339
|
+
onKeyDown: K,
|
|
1340
|
+
disableGridCell: _,
|
|
1341
1341
|
disableGridCellFocus: J,
|
|
1342
|
-
zIndex:
|
|
1343
|
-
} = le(t), q = v(() =>
|
|
1344
|
-
() => k ? k(q, n) :
|
|
1342
|
+
zIndex: M
|
|
1343
|
+
} = le(t), q = v(() => g ? g(n) : t in n ? n[t] : "", [g, n, t]), ee = v(
|
|
1344
|
+
() => k ? k(q, n) : bo(q),
|
|
1345
1345
|
[q, k, n]
|
|
1346
1346
|
), te = typeof A == "boolean" ? A : A ? A(n) : void 0, me = I(
|
|
1347
1347
|
(ae) => {
|
|
1348
|
-
|
|
1348
|
+
K == null || K(ae, { columnId: t, item: n }), m == null || m(ae, { columnId: t, item: n });
|
|
1349
1349
|
},
|
|
1350
|
-
[m, t, n,
|
|
1350
|
+
[m, t, n, K]
|
|
1351
1351
|
), X = he(ee, {
|
|
1352
1352
|
colIndex: o,
|
|
1353
1353
|
rowIndex: s,
|
|
@@ -1358,7 +1358,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1358
1358
|
onChange: W ? (ae) => W(n, ae) : void 0,
|
|
1359
1359
|
...d,
|
|
1360
1360
|
...z
|
|
1361
|
-
}), B = p[t], ie = (Ae = xo(t, n)) != null ? Ae : "inherit", fe = B.sticky ?
|
|
1361
|
+
}), B = p[t], ie = (Ae = xo(t, n)) != null ? Ae : "inherit", fe = B.sticky ? M != null ? M : "var(--swui-sticky-column-z-index)" : M != null ? M : 1, kt = v(
|
|
1362
1362
|
() => x ? x({
|
|
1363
1363
|
label: ee,
|
|
1364
1364
|
value: q,
|
|
@@ -1401,7 +1401,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1401
1401
|
children: /* @__PURE__ */ r(
|
|
1402
1402
|
Io,
|
|
1403
1403
|
{
|
|
1404
|
-
enableGridCell: u && !
|
|
1404
|
+
enableGridCell: u && !_ && !J,
|
|
1405
1405
|
gridCellRequiredProps: X.requiredProps,
|
|
1406
1406
|
isEditing: X.isEditing,
|
|
1407
1407
|
width: S,
|
|
@@ -1425,7 +1425,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1425
1425
|
children: /* @__PURE__ */ r("td", { colSpan: l, children: n(t, { onRequestCollapse: c }) })
|
|
1426
1426
|
}
|
|
1427
1427
|
) });
|
|
1428
|
-
},
|
|
1428
|
+
}, bt = tn.tr`
|
|
1429
1429
|
${({ focusBackground: e }) => e ? `--focus-within-background: ${e};` : ""}
|
|
1430
1430
|
${({ borderLeft: e }) => e ? `border-left: ${e};` : ""};
|
|
1431
1431
|
${({ background: e }) => e ? `background: ${e};` : ""};
|
|
@@ -1449,7 +1449,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1449
1449
|
checkboxDisabledResolver: p,
|
|
1450
1450
|
enableGridCell: w,
|
|
1451
1451
|
rowIndent: y,
|
|
1452
|
-
enableExpandCollapse:
|
|
1452
|
+
enableExpandCollapse: g
|
|
1453
1453
|
} = R(), { isExpanded: k } = Pe(t), { isSelected: S, toggleSelected: T, shiftAndToggleSelected: G } = Co(
|
|
1454
1454
|
t,
|
|
1455
1455
|
n
|
|
@@ -1471,17 +1471,17 @@ const Xe = P.createContext({}), br = ({
|
|
|
1471
1471
|
x,
|
|
1472
1472
|
S,
|
|
1473
1473
|
A
|
|
1474
|
-
),
|
|
1474
|
+
), K = v(
|
|
1475
1475
|
() => p == null ? void 0 : p(t),
|
|
1476
1476
|
[t, p]
|
|
1477
|
-
),
|
|
1478
|
-
|
|
1477
|
+
), _ = $n(), J = Ve(
|
|
1478
|
+
_,
|
|
1479
1479
|
t
|
|
1480
|
-
),
|
|
1481
|
-
|
|
1480
|
+
), M = Kn(), q = Ve(
|
|
1481
|
+
M,
|
|
1482
1482
|
t
|
|
1483
1483
|
), ee = v(
|
|
1484
|
-
() => /* @__PURE__ */ r(O, { children: /* @__PURE__ */
|
|
1484
|
+
() => /* @__PURE__ */ r(O, { children: /* @__PURE__ */ b(O, { children: [
|
|
1485
1485
|
y && /* @__PURE__ */ r(
|
|
1486
1486
|
"td",
|
|
1487
1487
|
{
|
|
@@ -1491,7 +1491,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1491
1491
|
children: /* @__PURE__ */ r(N, { num: y })
|
|
1492
1492
|
}
|
|
1493
1493
|
),
|
|
1494
|
-
|
|
1494
|
+
g && /* @__PURE__ */ r(
|
|
1495
1495
|
"td",
|
|
1496
1496
|
{
|
|
1497
1497
|
style: {
|
|
@@ -1527,7 +1527,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1527
1527
|
style: {
|
|
1528
1528
|
background: d ? "inherit" : void 0,
|
|
1529
1529
|
position: d ? "sticky" : void 0,
|
|
1530
|
-
left:
|
|
1530
|
+
left: g && d ? "var(--swui-expand-cell-width)" : d ? "0px" : void 0,
|
|
1531
1531
|
textAlign: "center",
|
|
1532
1532
|
boxShadow: d ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1533
1533
|
zIndex: d ? "var(--swui-sticky-column-z-index)" : void 0
|
|
@@ -1542,11 +1542,11 @@ const Xe = P.createContext({}), br = ({
|
|
|
1542
1542
|
children: /* @__PURE__ */ r(
|
|
1543
1543
|
fo,
|
|
1544
1544
|
{
|
|
1545
|
-
disabled:
|
|
1545
|
+
disabled: K,
|
|
1546
1546
|
value: S,
|
|
1547
1547
|
onValueChange: T,
|
|
1548
1548
|
onValueChangeAndShift: G,
|
|
1549
|
-
colIndex: c + (
|
|
1549
|
+
colIndex: c + (g ? 1 : 0),
|
|
1550
1550
|
rowIndex: o,
|
|
1551
1551
|
numRows: s,
|
|
1552
1552
|
shiftPressedRef: i
|
|
@@ -1587,8 +1587,8 @@ const Xe = P.createContext({}), br = ({
|
|
|
1587
1587
|
[
|
|
1588
1588
|
c,
|
|
1589
1589
|
f,
|
|
1590
|
-
|
|
1591
|
-
|
|
1590
|
+
K,
|
|
1591
|
+
g,
|
|
1592
1592
|
w,
|
|
1593
1593
|
J,
|
|
1594
1594
|
h,
|
|
@@ -1605,9 +1605,9 @@ const Xe = P.createContext({}), br = ({
|
|
|
1605
1605
|
T
|
|
1606
1606
|
]
|
|
1607
1607
|
);
|
|
1608
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ b(O, { children: [
|
|
1609
1609
|
/* @__PURE__ */ r(
|
|
1610
|
-
|
|
1610
|
+
bt,
|
|
1611
1611
|
{
|
|
1612
1612
|
hoverBackground: A,
|
|
1613
1613
|
background: z,
|
|
@@ -1630,7 +1630,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1630
1630
|
return j("--lhds-color-blue-200");
|
|
1631
1631
|
if (e)
|
|
1632
1632
|
return n;
|
|
1633
|
-
}, Do = (e) => Object.values(e).some((t) => No(t)), No = (e) => Boolean(e.renderSummaryCell || e.summaryText), zo = "_summaryRow_12x8k_1",
|
|
1633
|
+
}, Do = (e) => Object.values(e).some((t) => No(t)), No = (e) => Boolean(e.renderSummaryCell || e.summaryText), zo = "_summaryRow_12x8k_1", Ho = {
|
|
1634
1634
|
summaryRow: zo
|
|
1635
1635
|
}, $o = P.memo(function({
|
|
1636
1636
|
columnId: t,
|
|
@@ -1651,9 +1651,9 @@ const Xe = P.createContext({}), br = ({
|
|
|
1651
1651
|
s,
|
|
1652
1652
|
o,
|
|
1653
1653
|
u
|
|
1654
|
-
), 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,
|
|
1655
|
-
() => i == null ? void 0 : i({ items: n, text:
|
|
1656
|
-
[n, i,
|
|
1654
|
+
), 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, g = v(() => a == null ? void 0 : a({ items: n }), [n, a]), k = v(
|
|
1655
|
+
() => i == null ? void 0 : i({ items: n, text: g }),
|
|
1656
|
+
[n, i, g]
|
|
1657
1657
|
);
|
|
1658
1658
|
return /* @__PURE__ */ r(
|
|
1659
1659
|
"td",
|
|
@@ -1677,12 +1677,12 @@ const Xe = P.createContext({}), br = ({
|
|
|
1677
1677
|
overflow: "hidden",
|
|
1678
1678
|
justifyContent: m,
|
|
1679
1679
|
alignItems: "center",
|
|
1680
|
-
children: i ? k : /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(U, { variant: "bold", children:
|
|
1680
|
+
children: i ? k : /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(U, { variant: "bold", children: g }) })
|
|
1681
1681
|
}
|
|
1682
1682
|
)
|
|
1683
1683
|
}
|
|
1684
1684
|
);
|
|
1685
|
-
}),
|
|
1685
|
+
}), Ko = (e, t) => {
|
|
1686
1686
|
const n = [];
|
|
1687
1687
|
for (let o = 0; o < e.length; o++) {
|
|
1688
1688
|
const { summaryCellColSpan: s } = t[e[o]], c = Math.min(
|
|
@@ -1694,16 +1694,16 @@ const Xe = P.createContext({}), br = ({
|
|
|
1694
1694
|
l > 1 && (o += l - 1);
|
|
1695
1695
|
}
|
|
1696
1696
|
return n;
|
|
1697
|
-
},
|
|
1697
|
+
}, _o = P.memo(
|
|
1698
1698
|
function({
|
|
1699
1699
|
items: t
|
|
1700
1700
|
}) {
|
|
1701
1701
|
const n = Z(), { showRowCheckbox: o, enableExpandCollapse: s, columns: c, rowIndent: l } = R();
|
|
1702
|
-
return /* @__PURE__ */
|
|
1702
|
+
return /* @__PURE__ */ b("tr", { className: Ho.summaryRow, children: [
|
|
1703
1703
|
l && /* @__PURE__ */ r("td", { children: /* @__PURE__ */ r(N, { num: l }) }),
|
|
1704
1704
|
s && /* @__PURE__ */ r("td", {}),
|
|
1705
1705
|
o && /* @__PURE__ */ r("td", {}),
|
|
1706
|
-
n.map(({ groupConfig: i, groupId: a }, u) => /* @__PURE__ */ r(P.Fragment, { children:
|
|
1706
|
+
n.map(({ groupConfig: i, groupId: a }, u) => /* @__PURE__ */ r(P.Fragment, { children: Ko(i.columnOrder, c).map(
|
|
1707
1707
|
({ columnId: d, colSpan: h }, f) => /* @__PURE__ */ r(
|
|
1708
1708
|
$o,
|
|
1709
1709
|
{
|
|
@@ -1724,12 +1724,12 @@ const Xe = P.createContext({}), br = ({
|
|
|
1724
1724
|
/* @__PURE__ */ r("td", {})
|
|
1725
1725
|
] });
|
|
1726
1726
|
}
|
|
1727
|
-
),
|
|
1727
|
+
), Mo = function({
|
|
1728
1728
|
items: t
|
|
1729
1729
|
}) {
|
|
1730
1730
|
const { columns: n } = R();
|
|
1731
|
-
return v(() => Do(n), [n]) ? /* @__PURE__ */ r(
|
|
1732
|
-
},
|
|
1731
|
+
return v(() => Do(n), [n]) ? /* @__PURE__ */ r(_o, { items: t }) : null;
|
|
1732
|
+
}, gt = (e) => (t) => !(e != null && e(t)), Vo = P.memo(function({
|
|
1733
1733
|
items: t,
|
|
1734
1734
|
colIndexOffset: n = 0,
|
|
1735
1735
|
rowIndexOffset: o = 0
|
|
@@ -1753,7 +1753,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1753
1753
|
(w, y) => po(f(w), f(y))
|
|
1754
1754
|
), h && p.reverse(), i || s.current++, p;
|
|
1755
1755
|
}, [u, t, f, h, i]), C = v(
|
|
1756
|
-
() => m.filter(
|
|
1756
|
+
() => m.filter(gt(a)).map((p) => l(p)),
|
|
1757
1757
|
[m, a, l]
|
|
1758
1758
|
);
|
|
1759
1759
|
return je(() => {
|
|
@@ -1765,7 +1765,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1765
1765
|
return document.addEventListener("keyup", p), document.addEventListener("keydown", w), () => {
|
|
1766
1766
|
document.removeEventListener("keyup", p), document.removeEventListener("keydown", w);
|
|
1767
1767
|
};
|
|
1768
|
-
}, []), /* @__PURE__ */
|
|
1768
|
+
}, []), /* @__PURE__ */ b(P.Fragment, { children: [
|
|
1769
1769
|
m.map((p, w) => /* @__PURE__ */ r(
|
|
1770
1770
|
Po,
|
|
1771
1771
|
{
|
|
@@ -1779,7 +1779,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1779
1779
|
},
|
|
1780
1780
|
l(p)
|
|
1781
1781
|
)),
|
|
1782
|
-
/* @__PURE__ */ r(
|
|
1782
|
+
/* @__PURE__ */ r(Mo, { items: m })
|
|
1783
1783
|
] }, s.current);
|
|
1784
1784
|
}), jo = P.memo(function({
|
|
1785
1785
|
error: t,
|
|
@@ -1813,7 +1813,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1813
1813
|
children: i
|
|
1814
1814
|
}
|
|
1815
1815
|
) }) }) }) }) : /* @__PURE__ */ r("tbody", { children: /* @__PURE__ */ r(
|
|
1816
|
-
|
|
1816
|
+
Vo,
|
|
1817
1817
|
{
|
|
1818
1818
|
variant: h,
|
|
1819
1819
|
items: s,
|
|
@@ -1830,7 +1830,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1830
1830
|
} = ce(), i = o.length === 0, a = e ? e.length > 0 && o.length === e.length : !1, u = I(() => {
|
|
1831
1831
|
e && l(
|
|
1832
1832
|
i ? s(
|
|
1833
|
-
e.filter(
|
|
1833
|
+
e.filter(gt(n)).map((d) => t(d))
|
|
1834
1834
|
) : c()
|
|
1835
1835
|
);
|
|
1836
1836
|
}, [
|
|
@@ -1883,7 +1883,9 @@ const Xe = P.createContext({}), br = ({
|
|
|
1883
1883
|
}
|
|
1884
1884
|
};
|
|
1885
1885
|
}, [e, c, s, t, n, o]);
|
|
1886
|
-
}, Uo =
|
|
1886
|
+
}, Uo = "_standardTableHeadTh_swsxb_8", Zo = {
|
|
1887
|
+
standardTableHeadTh: Uo
|
|
1888
|
+
}, Jo = P.memo(
|
|
1887
1889
|
function({
|
|
1888
1890
|
columnId: t,
|
|
1889
1891
|
borderFromGroup: n,
|
|
@@ -1905,14 +1907,15 @@ const Xe = P.createContext({}), br = ({
|
|
|
1905
1907
|
} = le(t), {
|
|
1906
1908
|
disableSorting: w,
|
|
1907
1909
|
sortOrderIconVariant: y
|
|
1908
|
-
} = R(),
|
|
1910
|
+
} = R(), g = Te(), { arrow: k, selected: S, onClickColumnHead: T } = Fo(t), G = typeof a == "string" ? a : go(t), L = Oe(
|
|
1909
1911
|
n,
|
|
1910
1912
|
o,
|
|
1911
1913
|
u
|
|
1912
|
-
), x =
|
|
1914
|
+
), x = g[t];
|
|
1913
1915
|
return /* @__PURE__ */ r(
|
|
1914
1916
|
"th",
|
|
1915
1917
|
{
|
|
1918
|
+
className: Zo.standardTableHeadTh,
|
|
1916
1919
|
style: {
|
|
1917
1920
|
background: h != null ? h : "white",
|
|
1918
1921
|
borderLeft: L,
|
|
@@ -1922,7 +1925,6 @@ const Xe = P.createContext({}), br = ({
|
|
|
1922
1925
|
top: c,
|
|
1923
1926
|
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,
|
|
1924
1927
|
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,
|
|
1925
|
-
height: 0,
|
|
1926
1928
|
width: C,
|
|
1927
1929
|
minWidth: p
|
|
1928
1930
|
},
|
|
@@ -1945,7 +1947,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1945
1947
|
}
|
|
1946
1948
|
);
|
|
1947
1949
|
}
|
|
1948
|
-
),
|
|
1950
|
+
), Xo = (e, t, n, o) => {
|
|
1949
1951
|
if (e && t !== void 0)
|
|
1950
1952
|
return `calc(${e} + ${n})`;
|
|
1951
1953
|
if (o && t)
|
|
@@ -1954,7 +1956,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1954
1956
|
return e;
|
|
1955
1957
|
if (o)
|
|
1956
1958
|
return 0;
|
|
1957
|
-
},
|
|
1959
|
+
}, Yo = P.memo(function({
|
|
1958
1960
|
items: t,
|
|
1959
1961
|
appendTooltipTo: n,
|
|
1960
1962
|
height: o = Se
|
|
@@ -1969,9 +1971,9 @@ const Xe = P.createContext({}), br = ({
|
|
|
1969
1971
|
stickyHeader: h,
|
|
1970
1972
|
stickyCheckboxColumn: f,
|
|
1971
1973
|
showRowCheckbox: m
|
|
1972
|
-
} = R(), C = zn(), { allItemsAreExpanded: p, toggleExpanded: w } = qo(t), { allItemsAreSelected: y, onClickCheckbox:
|
|
1974
|
+
} = R(), C = zn(), { allItemsAreExpanded: p, toggleExpanded: w } = qo(t), { allItemsAreSelected: y, onClickCheckbox: g, selectionIsEmpty: k } = Wo(t), S = !t || t.length === 0, T = {
|
|
1973
1975
|
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,
|
|
1974
|
-
top:
|
|
1976
|
+
top: Xo(
|
|
1975
1977
|
u,
|
|
1976
1978
|
C,
|
|
1977
1979
|
o,
|
|
@@ -1981,7 +1983,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
1981
1983
|
position: h || f ? "sticky" : void 0,
|
|
1982
1984
|
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
|
|
1983
1985
|
};
|
|
1984
|
-
return /* @__PURE__ */
|
|
1986
|
+
return /* @__PURE__ */ b(bt, { height: o, borderLeft: ke, children: [
|
|
1985
1987
|
a && /* @__PURE__ */ r("th", { style: T, children: /* @__PURE__ */ r(E, { indent: a }) }),
|
|
1986
1988
|
i && /* @__PURE__ */ r(
|
|
1987
1989
|
"th",
|
|
@@ -2032,7 +2034,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2032
2034
|
disabled: S,
|
|
2033
2035
|
value: y,
|
|
2034
2036
|
indeterminate: !k && !y,
|
|
2035
|
-
onValueChange:
|
|
2037
|
+
onValueChange: g
|
|
2036
2038
|
}
|
|
2037
2039
|
)
|
|
2038
2040
|
}
|
|
@@ -2040,7 +2042,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2040
2042
|
}
|
|
2041
2043
|
),
|
|
2042
2044
|
s.map(({ groupConfig: G, groupId: L }, x) => /* @__PURE__ */ r(P.Fragment, { children: G.columnOrder.map((z, A) => /* @__PURE__ */ r(
|
|
2043
|
-
|
|
2045
|
+
Jo,
|
|
2044
2046
|
{
|
|
2045
2047
|
columnId: z,
|
|
2046
2048
|
borderFromGroup: pe(
|
|
@@ -2058,7 +2060,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2058
2060
|
a && /* @__PURE__ */ r("th", { style: T, children: /* @__PURE__ */ r(E, { indent: a }) }),
|
|
2059
2061
|
/* @__PURE__ */ r("th", { style: T })
|
|
2060
2062
|
] });
|
|
2061
|
-
}),
|
|
2063
|
+
}), Pr = function({
|
|
2062
2064
|
tableContext: t,
|
|
2063
2065
|
config: n,
|
|
2064
2066
|
columnOrder: o,
|
|
@@ -2078,7 +2080,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2078
2080
|
} = n, { tableContext: w } = ro(
|
|
2079
2081
|
c != null ? c : h,
|
|
2080
2082
|
at(m, f)
|
|
2081
|
-
), y = t || w, { state:
|
|
2083
|
+
), y = t || w, { state: g, actions: k, dispatch: S } = y, T = v(
|
|
2082
2084
|
() => ({
|
|
2083
2085
|
actions: k,
|
|
2084
2086
|
dispatch: S
|
|
@@ -2096,31 +2098,31 @@ const Xe = P.createContext({}), br = ({
|
|
|
2096
2098
|
), W = v(
|
|
2097
2099
|
() => qn(n),
|
|
2098
2100
|
[n]
|
|
2099
|
-
),
|
|
2101
|
+
), K = v(() => so(n), [n]), _ = v(
|
|
2100
2102
|
() => eo(n),
|
|
2101
2103
|
[n]
|
|
2102
2104
|
), J = v(() => {
|
|
2103
2105
|
try {
|
|
2104
2106
|
Un(n);
|
|
2105
2107
|
return;
|
|
2106
|
-
} catch (
|
|
2107
|
-
return
|
|
2108
|
+
} catch (M) {
|
|
2109
|
+
return M instanceof Error ? M : new Error("Unknown error");
|
|
2108
2110
|
}
|
|
2109
2111
|
}, [n]);
|
|
2110
2112
|
return J ? /* @__PURE__ */ r(Xt, { text: J.message }) : /* @__PURE__ */ r(
|
|
2111
2113
|
"table",
|
|
2112
2114
|
{
|
|
2113
|
-
className: Fe(
|
|
2115
|
+
className: Fe(Me.standardTable, Me[l]),
|
|
2114
2116
|
style: {
|
|
2115
2117
|
width: "100%",
|
|
2116
2118
|
isolation: "isolate",
|
|
2117
2119
|
"--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"
|
|
2118
2120
|
},
|
|
2119
|
-
children: /* @__PURE__ */ r(ft.Provider, { value:
|
|
2121
|
+
children: /* @__PURE__ */ r(ft.Provider, { value: _, children: /* @__PURE__ */ r(wt.Provider, { value: K, children: /* @__PURE__ */ r(Hn.Provider, { value: l, children: /* @__PURE__ */ r(
|
|
2120
2122
|
st.Provider,
|
|
2121
2123
|
{
|
|
2122
2124
|
value: c != null ? c : h,
|
|
2123
|
-
children: /* @__PURE__ */ r(ct.Provider, { value:
|
|
2125
|
+
children: /* @__PURE__ */ r(ct.Provider, { value: g, children: /* @__PURE__ */ r(lt.Provider, { value: T, children: /* @__PURE__ */ r(it.Provider, { value: n, children: /* @__PURE__ */ r(
|
|
2124
2126
|
dt.Provider,
|
|
2125
2127
|
{
|
|
2126
2128
|
value: A,
|
|
@@ -2132,18 +2134,18 @@ const Xe = P.createContext({}), br = ({
|
|
|
2132
2134
|
Nn.Provider,
|
|
2133
2135
|
{
|
|
2134
2136
|
value: G,
|
|
2135
|
-
children: /* @__PURE__ */
|
|
2137
|
+
children: /* @__PURE__ */ b(
|
|
2136
2138
|
mt.Provider,
|
|
2137
2139
|
{
|
|
2138
2140
|
value: "columnGroupOrder" in n ? s != null ? s : n.columnGroupOrder : s,
|
|
2139
2141
|
children: [
|
|
2140
2142
|
/* @__PURE__ */ r(lo, {}),
|
|
2141
|
-
/* @__PURE__ */ r(ht.Provider, { value: i, children: /* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ r(ht.Provider, { value: i, children: /* @__PURE__ */ b(
|
|
2142
2144
|
pt.Provider,
|
|
2143
2145
|
{
|
|
2144
2146
|
value: a,
|
|
2145
2147
|
children: [
|
|
2146
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ b("thead", { children: [
|
|
2147
2149
|
(s || "columnGroupOrder" in n) && /* @__PURE__ */ r(
|
|
2148
2150
|
Wn,
|
|
2149
2151
|
{
|
|
@@ -2151,7 +2153,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2151
2153
|
}
|
|
2152
2154
|
),
|
|
2153
2155
|
/* @__PURE__ */ r(
|
|
2154
|
-
|
|
2156
|
+
Yo,
|
|
2155
2157
|
{
|
|
2156
2158
|
items: d.items,
|
|
2157
2159
|
height: "var(--current-row-height)",
|
|
@@ -2182,10 +2184,10 @@ const Xe = P.createContext({}), br = ({
|
|
|
2182
2184
|
) }) }) })
|
|
2183
2185
|
}
|
|
2184
2186
|
);
|
|
2185
|
-
},
|
|
2187
|
+
}, Ar = (e, t) => ({
|
|
2186
2188
|
...t,
|
|
2187
2189
|
itemValueResolver: e
|
|
2188
|
-
}),
|
|
2190
|
+
}), Lr = () => ({
|
|
2189
2191
|
label: e,
|
|
2190
2192
|
gridCell: {
|
|
2191
2193
|
editorValue: t,
|
|
@@ -2197,7 +2199,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2197
2199
|
stopEditingAndMove: i
|
|
2198
2200
|
}
|
|
2199
2201
|
}) => n ? /* @__PURE__ */ r(
|
|
2200
|
-
|
|
2202
|
+
be,
|
|
2201
2203
|
{
|
|
2202
2204
|
onValueChange: o,
|
|
2203
2205
|
value: t,
|
|
@@ -2207,7 +2209,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2207
2209
|
selectAllOnMount: !c,
|
|
2208
2210
|
onMove: i
|
|
2209
2211
|
}
|
|
2210
|
-
) : /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(U, { color: "var(--swui-primary-action-color)", children: e }) }),
|
|
2212
|
+
) : /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(U, { color: "var(--swui-primary-action-color)", children: e }) }), Br = (e, t, n) => ({
|
|
2211
2213
|
label: o,
|
|
2212
2214
|
item: s,
|
|
2213
2215
|
gridCell: {
|
|
@@ -2223,7 +2225,7 @@ const Xe = P.createContext({}), br = ({
|
|
|
2223
2225
|
}) => {
|
|
2224
2226
|
const m = typeof e == "function" ? e(s) : e, C = t ? t(s) : void 0, p = n ? n(s) : void 0;
|
|
2225
2227
|
return f && l ? /* @__PURE__ */ r(
|
|
2226
|
-
|
|
2228
|
+
be,
|
|
2227
2229
|
{
|
|
2228
2230
|
onValueChange: i,
|
|
2229
2231
|
value: c,
|
|
@@ -2246,44 +2248,44 @@ const Xe = P.createContext({}), br = ({
|
|
|
2246
2248
|
};
|
|
2247
2249
|
export {
|
|
2248
2250
|
Ye as CrudStatusIndicator,
|
|
2249
|
-
|
|
2251
|
+
Or as EditableTextCellWithCrudAndModified,
|
|
2250
2252
|
Xe as GridHooksContext,
|
|
2251
|
-
|
|
2253
|
+
Sr as GridHooksTable,
|
|
2252
2254
|
nn as ModifiedField,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2255
|
+
Ir as SmallTableCell,
|
|
2256
|
+
Er as SmallTableHead,
|
|
2257
|
+
Pr as StandardTable,
|
|
2256
2258
|
lt as StandardTableActionsContext,
|
|
2257
2259
|
Go as StandardTableCell,
|
|
2258
2260
|
Io as StandardTableCellUi,
|
|
2259
2261
|
it as StandardTableConfigContext,
|
|
2260
2262
|
jo as StandardTableContent,
|
|
2261
|
-
|
|
2263
|
+
Yo as StandardTableHeadRow,
|
|
2262
2264
|
Po as StandardTableRow,
|
|
2263
2265
|
fo as StandardTableRowCheckbox,
|
|
2264
|
-
|
|
2266
|
+
Vo as StandardTableRowList,
|
|
2265
2267
|
ct as StandardTableStateContext,
|
|
2266
2268
|
st as StandardTableTableIdContext,
|
|
2267
2269
|
on as TableCell,
|
|
2268
|
-
|
|
2270
|
+
Rr as TableColumnGroupHead,
|
|
2269
2271
|
Ee as TableHeadItem,
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
+
Tr as TableHeadRow,
|
|
2273
|
+
Gr as TableRow,
|
|
2272
2274
|
To as TextCell,
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
+
Ar as createColumnConfig,
|
|
2276
|
+
Br as createEditableTextCellWithStatus,
|
|
2275
2277
|
Ct as createGroupConfigAndIdsForRows,
|
|
2276
2278
|
An as createInternalStandardTableActions,
|
|
2277
|
-
|
|
2279
|
+
Lr as createStandardEditableTextCell,
|
|
2278
2280
|
oo as createStandardTableActions,
|
|
2279
2281
|
at as createStandardTableInitialState,
|
|
2280
2282
|
Ln as createStandardTableReducer,
|
|
2281
2283
|
Ie as defaultTableHeadRowHeight,
|
|
2282
2284
|
Se as defaultTableRowHeight,
|
|
2283
2285
|
rt as focusOnCell,
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2286
|
+
go as formatColumnIdToHeaderCellLabel,
|
|
2287
|
+
bo as formatValueLabel,
|
|
2288
|
+
ge as hasIndicatorContent,
|
|
2287
2289
|
po as multitypeComparator,
|
|
2288
2290
|
tt as smallTableRowWidth,
|
|
2289
2291
|
Qe as tableBackgroundColorExpanded,
|
|
@@ -2294,7 +2296,7 @@ export {
|
|
|
2294
2296
|
ln as tableBorderHidden,
|
|
2295
2297
|
ke as tableBorderLeft,
|
|
2296
2298
|
et as tableBorderLeftExpanded,
|
|
2297
|
-
|
|
2299
|
+
Ve as useCellBackgroundByColumnConfig,
|
|
2298
2300
|
xo as useCellBackgroundByColumnId,
|
|
2299
2301
|
le as useColumnConfigById,
|
|
2300
2302
|
mo as useColumnValueResolver,
|
|
@@ -2303,7 +2305,7 @@ export {
|
|
|
2303
2305
|
he as useGridCell,
|
|
2304
2306
|
Gn as useGridNavigation,
|
|
2305
2307
|
nt as useGridNavigationOptionsFromContext,
|
|
2306
|
-
|
|
2308
|
+
Kn as useLastColumnConfig,
|
|
2307
2309
|
ro as useLocalStateTableContext,
|
|
2308
2310
|
hn as useRevertableValue,
|
|
2309
2311
|
Co as useRowCheckbox,
|