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