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