@stenajs-webui/grid 20.17.4 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/standard-table/components/StandardTable.d.ts +1 -7
- package/dist/features/standard-table/components/StandardTableHeadItem.d.ts +0 -2
- package/dist/features/standard-table/components/StandardTableHeadRow.d.ts +1 -3
- package/dist/features/table-ui/components/table/TableHeadItem.d.ts +2 -3
- package/dist/index.es.js +480 -500
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._tableRow_1cphw_1:focus-within{background:var(--focus-within-background, var(--lhds-color-blue-50))}._standardTable_1iok0_1{--swui-standard-table-height: 40px;--swui-sticky-header-shadow: 2px 4px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-header-shadow-and-right: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-right);--swui-sticky-header-shadow-and-left: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-left);--swui-sticky-column-shadow-right: 4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-column-shadow-left: -4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-header-z-index: 10;--swui-sticky-column-z-index: 20;--swui-sticky-group-group-z-index: 25;--swui-sticky-group-header-z-index: 26;--swui-sticky-header-column-group-z-index: 30;--swui-sticky-column-group-label-z-index: 40;--swui-sticky-header-in-sticky-column-z-index: 50;--swui-sticky-popover-z-index: 60;--swui-expand-cell-width: 45px;--swui-checkbox-cell-width: 45px;--swui-expand-highlight-border-width: 2px;--current-row-height: var(--swui-standard-table-height);--current-left-offset: 0px;border-spacing:0}._standardTable_1iok0_1 td{border-top:1px solid var(--lhds-color-ui-300);padding:0}._standardTable_1iok0_1 th{padding:0}._standardTable_1iok0_1._relaxed_1iok0_37{--current-row-height: 48px}._standardTable_1iok0_1._condensed_1iok0_41{--current-row-height: 32px}._standardTable_1iok0_1._compact_1iok0_45{--current-row-height: 24px}._standardTableCell_1xzcm_1{outline:none}._textCell_1yv6v_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._summaryRow_12x8k_1 td{border-top:1px solid var(--lhds-color-ui-400)}._standardTableHeadTh_swsxb_8{height:1px}@-moz-document url-prefix(){._standardTableHeadTh_swsxb_8{height:100%}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
import { jsx as a, Fragment as
|
|
3
|
-
import * as
|
|
4
|
-
import { useMemo as y, useRef as ce, useState as ke, useCallback as P, useEffect as ht, useContext as
|
|
5
|
-
import { InputSpinner as We, Icon as
|
|
6
|
-
import { cssColor as
|
|
2
|
+
import { jsx as a, Fragment as M, jsxs as C } from "react/jsx-runtime";
|
|
3
|
+
import * as R from "react";
|
|
4
|
+
import { useMemo as y, useRef as ce, useState as ke, useCallback as P, useEffect as ht, useContext as z, createContext as H, useReducer as Zt, useId as en } from "react";
|
|
5
|
+
import { InputSpinner as We, Icon as Q, stenaExclamationTriangle as Pe, stenaArrowRight as mt, stenaInfoCircle as tn, FlatButton as Ne, stenaDotsVertical as nn, stenaAngleDown as ft, stenaAngleRight as pt, ResultListBanner as rn, Banner as Ke } from "@stenajs-webui/elements";
|
|
6
|
+
import { cssColor as j } from "@stenajs-webui/theme";
|
|
7
7
|
import { Tooltip as we, Popover as on } from "@stenajs-webui/tooltip";
|
|
8
|
-
import { Text as
|
|
8
|
+
import { Text as X, Indent as N, Space as W, Row as T, Box as le, exhaustSwitchCaseElseThrow as sn, Heading as wt, booleanOrNumberToNumber as an, useArraySet as gt, useOnScreen as cn, Spacing as Me } from "@stenajs-webui/core";
|
|
9
9
|
import { faSortAlphaDown as ln } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
|
|
10
10
|
import { faSortAlphaUp as un } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
|
|
11
11
|
import { faSortAmountDownAlt as dn } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
|
|
@@ -20,7 +20,7 @@ import { combineReducers as Cn } from "redux";
|
|
|
20
20
|
import { LoadingScreen as xn, ErrorScreen as kn } from "@stenajs-webui/panels";
|
|
21
21
|
import { compact as Sn, upperFirst as Pn, lowerCase as On } from "lodash-es";
|
|
22
22
|
import In from "@emotion/styled";
|
|
23
|
-
const bt =
|
|
23
|
+
const bt = R.createContext({}), Zs = ({
|
|
24
24
|
children: e,
|
|
25
25
|
numCols: t,
|
|
26
26
|
numRows: n,
|
|
@@ -40,17 +40,17 @@ const bt = G.createContext({}), Zs = ({
|
|
|
40
40
|
return null;
|
|
41
41
|
const { errorMessage: t, hasError: n, loading: r, creating: o, deleting: s, updating: i } = e;
|
|
42
42
|
if (r || o || s || i)
|
|
43
|
-
return /* @__PURE__ */ a(We, { color:
|
|
43
|
+
return /* @__PURE__ */ a(We, { color: j("--lhds-color-ui-500") });
|
|
44
44
|
if (n) {
|
|
45
45
|
const c = /* @__PURE__ */ a(
|
|
46
|
-
|
|
46
|
+
Q,
|
|
47
47
|
{
|
|
48
48
|
icon: Pe,
|
|
49
|
-
color:
|
|
49
|
+
color: j("--lhds-color-orange-600"),
|
|
50
50
|
size: 14
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
return /* @__PURE__ */ a(
|
|
53
|
+
return /* @__PURE__ */ a(M, { children: t ? /* @__PURE__ */ a(we, { label: t, children: c }) : c });
|
|
54
54
|
}
|
|
55
55
|
return null;
|
|
56
56
|
}, Tn = ({
|
|
@@ -61,25 +61,25 @@ const bt = G.createContext({}), Zs = ({
|
|
|
61
61
|
crudStatus: o
|
|
62
62
|
}) => {
|
|
63
63
|
const s = t && (r == null ? void 0 : r.modified) && (r == null ? void 0 : r.newValue) === "", i = o && Ae(o), c = s || i;
|
|
64
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ C(M, { children: [
|
|
65
65
|
/* @__PURE__ */ a(
|
|
66
|
-
|
|
66
|
+
X,
|
|
67
67
|
{
|
|
68
68
|
color: e ? "var(--swui-primary-action-color)" : void 0,
|
|
69
69
|
variant: r != null && r.modified ? "bold" : void 0,
|
|
70
70
|
children: n
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
(r == null ? void 0 : r.newValue) !== void 0 && /* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */ a(
|
|
75
|
-
/* @__PURE__ */ a(
|
|
73
|
+
(r == null ? void 0 : r.newValue) !== void 0 && /* @__PURE__ */ C(M, { children: [
|
|
74
|
+
/* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(Q, { icon: mt, size: 12 }) }),
|
|
75
|
+
/* @__PURE__ */ a(X, { color: "var(--swui-primary-action-color)", variant: "bold", children: r.newValue })
|
|
76
76
|
] }),
|
|
77
|
-
c && /* @__PURE__ */ a(
|
|
78
|
-
s ? /* @__PURE__ */ a(we, { label: t,
|
|
79
|
-
|
|
77
|
+
c && /* @__PURE__ */ a(W, {}),
|
|
78
|
+
s ? /* @__PURE__ */ a(we, { label: t, children: /* @__PURE__ */ a(
|
|
79
|
+
Q,
|
|
80
80
|
{
|
|
81
81
|
icon: Pe,
|
|
82
|
-
color:
|
|
82
|
+
color: j("--lhds-color-orange-600"),
|
|
83
83
|
size: 14
|
|
84
84
|
}
|
|
85
85
|
) }) : /* @__PURE__ */ a(vt, { crudStatus: o })
|
|
@@ -100,7 +100,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
100
100
|
indent: r,
|
|
101
101
|
...o
|
|
102
102
|
}
|
|
103
|
-
), En = "var(--lhds-color-ui-300)", Mn = "var(--lhds-color-blue-500)", Ct = "var(--lhds-color-blue-50)", Rn = "var(--lhds-color-blue-100)", fe = `1px solid ${En}`, Gn = "1px solid transparent", Fe = "var(--swui-expand-highlight-border-width) solid transparent", xt = `var(--swui-expand-highlight-border-width) solid ${Mn}`, He = "40px",
|
|
103
|
+
), En = "var(--lhds-color-ui-300)", Mn = "var(--lhds-color-blue-500)", Ct = "var(--lhds-color-blue-50)", Rn = "var(--lhds-color-blue-100)", fe = `1px solid ${En}`, Gn = "1px solid transparent", Fe = "var(--swui-expand-highlight-border-width) solid transparent", xt = `var(--swui-expand-highlight-border-width) solid ${Mn}`, He = "40px", Ye = "40px", kt = "40px", ea = (e) => /* @__PURE__ */ a(
|
|
104
104
|
Dn,
|
|
105
105
|
{
|
|
106
106
|
width: kt,
|
|
@@ -111,10 +111,10 @@ const bt = G.createContext({}), Zs = ({
|
|
|
111
111
|
iconVariant: e = "amount",
|
|
112
112
|
direction: t
|
|
113
113
|
}) => /* @__PURE__ */ a(le, { width: "14px", children: /* @__PURE__ */ a(
|
|
114
|
-
|
|
114
|
+
Q,
|
|
115
115
|
{
|
|
116
116
|
size: 14,
|
|
117
|
-
color:
|
|
117
|
+
color: j("--lhds-color-ui-500"),
|
|
118
118
|
icon: Wn(t, e)
|
|
119
119
|
}
|
|
120
120
|
) }), Wn = (e, t) => {
|
|
@@ -128,7 +128,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
128
128
|
default:
|
|
129
129
|
return sn(t);
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, ze = R.memo(
|
|
132
132
|
({
|
|
133
133
|
label: e,
|
|
134
134
|
arrow: t,
|
|
@@ -141,35 +141,34 @@ const bt = G.createContext({}), Zs = ({
|
|
|
141
141
|
overflow: l = "hidden",
|
|
142
142
|
alignRight: d,
|
|
143
143
|
sortOrderIconVariant: u,
|
|
144
|
-
|
|
145
|
-
...p
|
|
144
|
+
...m
|
|
146
145
|
}) => {
|
|
147
|
-
const
|
|
148
|
-
return /* @__PURE__ */
|
|
146
|
+
const p = ce(null), f = n ? { cursor: "pointer", userSelect: "none" } : void 0, w = !e && !t && !c;
|
|
147
|
+
return /* @__PURE__ */ C(
|
|
149
148
|
T,
|
|
150
149
|
{
|
|
151
150
|
height: "100%",
|
|
152
151
|
alignItems: "center",
|
|
153
|
-
ref:
|
|
152
|
+
ref: p,
|
|
154
153
|
overflow: l,
|
|
155
154
|
justifyContent: d ? "flex-end" : "flex-start",
|
|
156
155
|
borderTop: "2px solid transparent",
|
|
157
|
-
borderBottom: `2px solid ${o ?
|
|
158
|
-
...
|
|
156
|
+
borderBottom: `2px solid ${o ? j("--lhds-color-blue-500") : "transparent"}`,
|
|
157
|
+
...m,
|
|
159
158
|
children: [
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
!t && d && /* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */ a(
|
|
159
|
+
/* @__PURE__ */ C(T, { alignItems: "center", indent: !0, children: [
|
|
160
|
+
!t && d && /* @__PURE__ */ C(M, { children: [
|
|
161
|
+
/* @__PURE__ */ a(W, {}),
|
|
163
162
|
/* @__PURE__ */ a(le, { width: "14px" }),
|
|
164
|
-
/* @__PURE__ */ a(
|
|
163
|
+
/* @__PURE__ */ a(W, { num: 0.5 })
|
|
165
164
|
] }),
|
|
166
|
-
(r || e) && /* @__PURE__ */
|
|
167
|
-
r && /* @__PURE__ */
|
|
165
|
+
(r || e) && /* @__PURE__ */ C(T, { onClick: n, style: f, alignItems: "center", children: [
|
|
166
|
+
r && /* @__PURE__ */ C(M, { children: [
|
|
168
167
|
r,
|
|
169
|
-
!
|
|
168
|
+
!w && /* @__PURE__ */ a(W, { num: 0.5 })
|
|
170
169
|
] }),
|
|
171
|
-
t && d && /* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */ a(
|
|
170
|
+
t && d && /* @__PURE__ */ C(M, { children: [
|
|
171
|
+
/* @__PURE__ */ a(W, {}),
|
|
173
172
|
/* @__PURE__ */ a(
|
|
174
173
|
Ze,
|
|
175
174
|
{
|
|
@@ -177,11 +176,11 @@ const bt = G.createContext({}), Zs = ({
|
|
|
177
176
|
iconVariant: u
|
|
178
177
|
}
|
|
179
178
|
),
|
|
180
|
-
/* @__PURE__ */ a(
|
|
179
|
+
/* @__PURE__ */ a(W, { num: 0.5 })
|
|
181
180
|
] }),
|
|
182
181
|
e && /* @__PURE__ */ a(wt, { variant: "h6", style: { textAlign: "left" }, children: e }),
|
|
183
|
-
t && !d && /* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */ a(
|
|
182
|
+
t && !d && /* @__PURE__ */ C(M, { children: [
|
|
183
|
+
/* @__PURE__ */ a(W, { num: 0.5 }),
|
|
185
184
|
/* @__PURE__ */ a(
|
|
186
185
|
Ze,
|
|
187
186
|
{
|
|
@@ -189,53 +188,51 @@ const bt = G.createContext({}), Zs = ({
|
|
|
189
188
|
iconVariant: u
|
|
190
189
|
}
|
|
191
190
|
),
|
|
192
|
-
/* @__PURE__ */ a(
|
|
191
|
+
/* @__PURE__ */ a(W, {})
|
|
193
192
|
] })
|
|
194
193
|
] }),
|
|
195
|
-
c && /* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */ a(
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */ a(
|
|
199
|
-
|
|
194
|
+
c && /* @__PURE__ */ C(M, { children: [
|
|
195
|
+
/* @__PURE__ */ a(W, {}),
|
|
196
|
+
/* @__PURE__ */ C(T, { onClick: (h) => h.stopPropagation(), children: [
|
|
197
|
+
/* @__PURE__ */ a(we, { label: c, children: /* @__PURE__ */ a(
|
|
198
|
+
Q,
|
|
200
199
|
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
children: /* @__PURE__ */ a(
|
|
205
|
-
X,
|
|
206
|
-
{
|
|
207
|
-
icon: tn,
|
|
208
|
-
size: 14,
|
|
209
|
-
color: V("--lhds-color-blue-400")
|
|
210
|
-
}
|
|
211
|
-
)
|
|
200
|
+
icon: tn,
|
|
201
|
+
size: 14,
|
|
202
|
+
color: j("--lhds-color-blue-400")
|
|
212
203
|
}
|
|
213
|
-
),
|
|
214
|
-
/* @__PURE__ */ a(
|
|
204
|
+
) }),
|
|
205
|
+
/* @__PURE__ */ a(W, {})
|
|
215
206
|
] })
|
|
216
207
|
] })
|
|
217
208
|
] }),
|
|
218
209
|
/* @__PURE__ */ a(T, { children: i ? /* @__PURE__ */ a(We, {}) : s ? /* @__PURE__ */ a(
|
|
219
210
|
on,
|
|
220
211
|
{
|
|
221
|
-
|
|
212
|
+
renderTrigger: (h) => /* @__PURE__ */ a(
|
|
213
|
+
Ne,
|
|
214
|
+
{
|
|
215
|
+
leftIcon: nn,
|
|
216
|
+
size: "small",
|
|
217
|
+
...h
|
|
218
|
+
}
|
|
219
|
+
),
|
|
222
220
|
trigger: "click",
|
|
223
|
-
zIndex: 1e3,
|
|
224
221
|
disablePadding: !0,
|
|
225
|
-
children:
|
|
222
|
+
children: s
|
|
226
223
|
}
|
|
227
224
|
) : null }),
|
|
228
|
-
!t && !d && /* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */ a(
|
|
225
|
+
!t && !d && /* @__PURE__ */ C(M, { children: [
|
|
226
|
+
/* @__PURE__ */ a(W, {}),
|
|
230
227
|
/* @__PURE__ */ a(le, { width: "14px" }),
|
|
231
|
-
/* @__PURE__ */ a(
|
|
228
|
+
/* @__PURE__ */ a(W, { num: 0.5 })
|
|
232
229
|
] })
|
|
233
230
|
]
|
|
234
231
|
}
|
|
235
232
|
);
|
|
236
233
|
}
|
|
237
234
|
), ta = (e) => /* @__PURE__ */ a(
|
|
238
|
-
|
|
235
|
+
ze,
|
|
239
236
|
{
|
|
240
237
|
width: kt,
|
|
241
238
|
justifyContent: "center",
|
|
@@ -246,14 +243,14 @@ const bt = G.createContext({}), Zs = ({
|
|
|
246
243
|
flex: t,
|
|
247
244
|
width: n,
|
|
248
245
|
indent: r = 1,
|
|
249
|
-
height: o =
|
|
250
|
-
}) => /* @__PURE__ */ a(
|
|
251
|
-
({ style: e, height: t =
|
|
246
|
+
height: o = Ye
|
|
247
|
+
}) => /* @__PURE__ */ a(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ a(le, { indent: r, spacing: !0, children: /* @__PURE__ */ a(X, { variant: "bold", children: e }) }) }), ra = R.memo(
|
|
248
|
+
({ style: e, height: t = Ye, ...n }) => /* @__PURE__ */ a(T, { style: e, height: t, ...n })
|
|
252
249
|
), Nn = "_tableRow_1cphw_1", Ln = {
|
|
253
250
|
tableRow: Nn
|
|
254
251
|
}, oa = ({
|
|
255
252
|
hideBorderTop: e,
|
|
256
|
-
height: t =
|
|
253
|
+
height: t = Ye,
|
|
257
254
|
className: n,
|
|
258
255
|
...r
|
|
259
256
|
}) => /* @__PURE__ */ a(
|
|
@@ -316,13 +313,13 @@ const bt = G.createContext({}), Zs = ({
|
|
|
316
313
|
const [c, l] = ke(!1), [d, u] = ke(
|
|
317
314
|
void 0
|
|
318
315
|
), m = Bn(e), { getValue: p, revert: f, setValue: w, setRevertValue: h } = m, g = P(
|
|
319
|
-
(
|
|
320
|
-
t && (w(e), h(e), l(!0), o && o(
|
|
316
|
+
(v) => {
|
|
317
|
+
t && (w(e), h(e), l(!0), o && o(v));
|
|
321
318
|
},
|
|
322
319
|
[t, o, h, w, e]
|
|
323
320
|
), b = P(() => {
|
|
324
321
|
t && (l(!1), s && s(), r && r(p()));
|
|
325
|
-
}, [t, r, s, p, l]),
|
|
322
|
+
}, [t, r, s, p, l]), S = P(() => {
|
|
326
323
|
t && (l(!1), s && s(), f());
|
|
327
324
|
}, [t, s, f, l]);
|
|
328
325
|
return {
|
|
@@ -351,16 +348,16 @@ const bt = G.createContext({}), Zs = ({
|
|
|
351
348
|
revertableValue: m,
|
|
352
349
|
startEditing: g,
|
|
353
350
|
stopEditing: b,
|
|
354
|
-
stopEditingAndRevert:
|
|
351
|
+
stopEditingAndRevert: S,
|
|
355
352
|
onDoubleClick: g
|
|
356
353
|
};
|
|
357
|
-
},
|
|
354
|
+
}, Yn = (e) => e === "all" || e === "numeric" || e === "alphanumeric", zn = (e) => e === "all" || e === "alphanumeric" || e === "letters", qn = (e) => !!e.match(/^[-+*<>]$/), _n = (e) => !!e.match(/^[a-zA-Z0-9]$/), jn = (e) => !isNaN(parseInt(e, 10)), Vn = (e, t, n, r, o, s, i) => (c) => {
|
|
358
355
|
if (!(c.ctrlKey || c.metaKey || c.shiftKey)) {
|
|
359
356
|
if (c.key === "Enter" && t)
|
|
360
357
|
r(void 0), n(), i.commit(), c.preventDefault(), c.stopPropagation();
|
|
361
358
|
else if (t) {
|
|
362
359
|
const l = An(c);
|
|
363
|
-
(jn(c.key) &&
|
|
360
|
+
(jn(c.key) && Yn(o) || _n(c.key) && zn(o) || qn(c.key)) && (n(l), r(l), i.commit(), i.setValue(s(l.key)), c.preventDefault(), c.stopPropagation());
|
|
364
361
|
}
|
|
365
362
|
}
|
|
366
363
|
}, $n = (e, t, n, r) => {
|
|
@@ -405,7 +402,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
405
402
|
throw new Error("numCols is required.");
|
|
406
403
|
return e;
|
|
407
404
|
}, St = (e) => {
|
|
408
|
-
const t =
|
|
405
|
+
const t = z(bt);
|
|
409
406
|
return y(
|
|
410
407
|
() => Zn({
|
|
411
408
|
...t,
|
|
@@ -560,52 +557,52 @@ const bt = G.createContext({}), Zs = ({
|
|
|
560
557
|
}) {
|
|
561
558
|
const f = pn(), w = Qe(
|
|
562
559
|
c.selectors.getState
|
|
563
|
-
), h = Qe(i.selectors.getState), g = w.entities[r], b = h.entities[r],
|
|
564
|
-
(
|
|
565
|
-
f(
|
|
560
|
+
), h = Qe(i.selectors.getState), g = w.entities[r], b = h.entities[r], S = P(
|
|
561
|
+
(A = "") => {
|
|
562
|
+
f(A === n ? c.actions.clearEntity(r) : c.actions.setEntity({
|
|
566
563
|
id: r,
|
|
567
564
|
originalValue: n,
|
|
568
|
-
newValue:
|
|
565
|
+
newValue: A,
|
|
569
566
|
modified: !0
|
|
570
567
|
}));
|
|
571
568
|
},
|
|
572
569
|
[f, r, c.actions, n]
|
|
573
570
|
), {
|
|
574
|
-
isEditing:
|
|
575
|
-
stopEditing:
|
|
576
|
-
editorValue:
|
|
577
|
-
setEditorValue:
|
|
578
|
-
stopEditingAndRevert:
|
|
579
|
-
stopEditingAndMove:
|
|
571
|
+
isEditing: I,
|
|
572
|
+
stopEditing: v,
|
|
573
|
+
editorValue: E,
|
|
574
|
+
setEditorValue: G,
|
|
575
|
+
stopEditingAndRevert: k,
|
|
576
|
+
stopEditingAndMove: L,
|
|
580
577
|
lastKeyEvent: B,
|
|
581
|
-
requiredProps: { onKeyDown:
|
|
578
|
+
requiredProps: { onKeyDown: V, ...Z }
|
|
582
579
|
} = Oe(n, {
|
|
583
580
|
rowIndex: d,
|
|
584
581
|
colIndex: l,
|
|
585
582
|
numCols: u,
|
|
586
583
|
numRows: m,
|
|
587
584
|
tableId: "serviceManningMatrixTable",
|
|
588
|
-
onChange:
|
|
585
|
+
onChange: S,
|
|
589
586
|
isEditable: o,
|
|
590
587
|
allowedInputType: t
|
|
591
|
-
}),
|
|
592
|
-
(
|
|
593
|
-
|
|
588
|
+
}), Y = P(
|
|
589
|
+
(A) => {
|
|
590
|
+
A.key === "Delete" ? (f(c.actions.clearEntity(r)), f(
|
|
594
591
|
i.actions.setEntityFields(r, {
|
|
595
592
|
hasError: !1,
|
|
596
593
|
errorMessage: void 0
|
|
597
594
|
})
|
|
598
|
-
)) : A
|
|
595
|
+
)) : V(A);
|
|
599
596
|
},
|
|
600
597
|
[
|
|
601
|
-
|
|
598
|
+
V,
|
|
602
599
|
r,
|
|
603
600
|
f,
|
|
604
601
|
c.actions,
|
|
605
602
|
i.actions
|
|
606
603
|
]
|
|
607
604
|
);
|
|
608
|
-
return /* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ C(
|
|
609
606
|
T,
|
|
610
607
|
{
|
|
611
608
|
height: He,
|
|
@@ -614,7 +611,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
614
611
|
hoverBackground: "var(--ui7)",
|
|
615
612
|
alignItems: "center",
|
|
616
613
|
children: [
|
|
617
|
-
s && /* @__PURE__ */ a(
|
|
614
|
+
s && /* @__PURE__ */ a(N, { num: s }),
|
|
618
615
|
/* @__PURE__ */ a(
|
|
619
616
|
T,
|
|
620
617
|
{
|
|
@@ -624,34 +621,34 @@ const bt = G.createContext({}), Zs = ({
|
|
|
624
621
|
alignItems: "center",
|
|
625
622
|
border: "1px solid transparent",
|
|
626
623
|
borderRadius: "4px",
|
|
627
|
-
focusBorder:
|
|
628
|
-
hoverBorder:
|
|
629
|
-
onKeyDown:
|
|
630
|
-
...
|
|
631
|
-
children: /* @__PURE__ */ a(
|
|
624
|
+
focusBorder: I ? void 0 : "1px solid var(--primary-action-color)",
|
|
625
|
+
hoverBorder: I ? void 0 : "var(--ui5) solid 1px;",
|
|
626
|
+
onKeyDown: Y,
|
|
627
|
+
...Z,
|
|
628
|
+
children: /* @__PURE__ */ a(N, { row: !0, alignItems: "center", children: I ? /* @__PURE__ */ a(
|
|
632
629
|
Le,
|
|
633
630
|
{
|
|
634
|
-
onValueChange:
|
|
635
|
-
value:
|
|
636
|
-
onDone:
|
|
637
|
-
onEsc:
|
|
631
|
+
onValueChange: G,
|
|
632
|
+
value: E,
|
|
633
|
+
onDone: v,
|
|
634
|
+
onEsc: k,
|
|
638
635
|
autoFocus: !0,
|
|
639
636
|
selectAllOnMount: !B,
|
|
640
|
-
onMove:
|
|
637
|
+
onMove: L
|
|
641
638
|
}
|
|
642
|
-
) : /* @__PURE__ */
|
|
639
|
+
) : /* @__PURE__ */ C(M, { children: [
|
|
643
640
|
/* @__PURE__ */ a(
|
|
644
|
-
|
|
641
|
+
X,
|
|
645
642
|
{
|
|
646
643
|
color: o ? "var(--primary-action-color)" : void 0,
|
|
647
644
|
variant: g != null && g.modified ? "bold" : void 0,
|
|
648
645
|
children: n
|
|
649
646
|
}
|
|
650
647
|
),
|
|
651
|
-
(g == null ? void 0 : g.newValue) !== void 0 && /* @__PURE__ */
|
|
652
|
-
/* @__PURE__ */ a(
|
|
648
|
+
(g == null ? void 0 : g.newValue) !== void 0 && /* @__PURE__ */ C(M, { children: [
|
|
649
|
+
/* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(Q, { icon: mt, size: 12 }) }),
|
|
653
650
|
/* @__PURE__ */ a(
|
|
654
|
-
|
|
651
|
+
X,
|
|
655
652
|
{
|
|
656
653
|
color: "var(--primary-action-color)",
|
|
657
654
|
variant: "bold",
|
|
@@ -659,9 +656,9 @@ const bt = G.createContext({}), Zs = ({
|
|
|
659
656
|
}
|
|
660
657
|
)
|
|
661
658
|
] }),
|
|
662
|
-
b && Ae(b) && /* @__PURE__ */ a(
|
|
663
|
-
p && (g != null && g.modified) && (g == null ? void 0 : g.newValue) === "" ? /* @__PURE__ */ a(we, { label: p,
|
|
664
|
-
|
|
659
|
+
b && Ae(b) && /* @__PURE__ */ a(W, { num: 2 }),
|
|
660
|
+
p && (g != null && g.modified) && (g == null ? void 0 : g.newValue) === "" ? /* @__PURE__ */ a(we, { label: p, children: /* @__PURE__ */ a(
|
|
661
|
+
Q,
|
|
665
662
|
{
|
|
666
663
|
icon: Pe,
|
|
667
664
|
color: "var(--ui-alert1)",
|
|
@@ -671,34 +668,34 @@ const bt = G.createContext({}), Zs = ({
|
|
|
671
668
|
] }) })
|
|
672
669
|
}
|
|
673
670
|
),
|
|
674
|
-
s && /* @__PURE__ */ a(
|
|
671
|
+
s && /* @__PURE__ */ a(N, { num: s })
|
|
675
672
|
]
|
|
676
673
|
}
|
|
677
674
|
);
|
|
678
|
-
}, It =
|
|
675
|
+
}, It = H(""), Tt = H(
|
|
679
676
|
void 0
|
|
680
|
-
), Dt =
|
|
677
|
+
), Dt = H(void 0), Et = H(void 0), rr = () => ({
|
|
681
678
|
sortOrder: wn(),
|
|
682
679
|
selectedIds: Xe(),
|
|
683
680
|
expandedRows: Xe(),
|
|
684
681
|
fields: gn()
|
|
685
|
-
}),
|
|
682
|
+
}), _ = (e, t) => `${e}.${t}`, Mt = (e = void 0, t = !1, n = [], r = []) => ({
|
|
686
683
|
sortOrder: yn(e, t),
|
|
687
684
|
selectedIds: Ue(n),
|
|
688
685
|
expandedRows: Ue(r),
|
|
689
686
|
fields: { lastSelectedId: void 0 }
|
|
690
687
|
}), or = (e, t) => {
|
|
691
688
|
const n = xe(
|
|
692
|
-
|
|
689
|
+
_(e, "sortOrder"),
|
|
693
690
|
bn(t == null ? void 0 : t.sortOrder)
|
|
694
691
|
), r = xe(
|
|
695
|
-
|
|
692
|
+
_(e, "selectedIds"),
|
|
696
693
|
Je(t == null ? void 0 : t.selectedIds)
|
|
697
694
|
), o = xe(
|
|
698
|
-
|
|
695
|
+
_(e, "expandedRows"),
|
|
699
696
|
Je(t == null ? void 0 : t.expandedRows)
|
|
700
697
|
), s = xe(
|
|
701
|
-
|
|
698
|
+
_(e, "fields"),
|
|
702
699
|
vn((t == null ? void 0 : t.fields) ?? {})
|
|
703
700
|
);
|
|
704
701
|
return Cn({
|
|
@@ -707,16 +704,16 @@ const bt = G.createContext({}), Zs = ({
|
|
|
707
704
|
expandedRows: o,
|
|
708
705
|
fields: s
|
|
709
706
|
});
|
|
710
|
-
}, qe = () =>
|
|
707
|
+
}, qe = () => z(It), O = () => z(Et), oe = () => z(Tt), ge = () => z(Dt), Rt = H([]), J = () => z(
|
|
711
708
|
Rt
|
|
712
709
|
), Gt = () => {
|
|
713
|
-
const e =
|
|
710
|
+
const e = O(), t = J();
|
|
714
711
|
let n = 0;
|
|
715
712
|
return e.enableExpandCollapse && n++, e.showRowCheckbox && n++, n + y(
|
|
716
713
|
() => t.map((r) => r.groupConfig.columnOrder.length).reduce((r, o) => r + o, 0),
|
|
717
714
|
[t]
|
|
718
715
|
);
|
|
719
|
-
}, Wt =
|
|
716
|
+
}, Wt = H(void 0), sr = () => z(Wt), Nt = H(void 0), ar = () => z(Nt), Lt = H(void 0), ir = H(!1), cr = () => z(Lt), lr = H("standard"), Bt = H({}), _e = () => z(Bt), At = H(0), je = () => z(At), Ft = (e, t, n) => e ? Sn(
|
|
720
717
|
(t == null ? void 0 : t.map((r) => {
|
|
721
718
|
const o = e == null ? void 0 : e[r];
|
|
722
719
|
return {
|
|
@@ -746,16 +743,16 @@ const bt = G.createContext({}), Zs = ({
|
|
|
746
743
|
if (!(e === 0 || t !== 0) && n)
|
|
747
744
|
return n === !0 ? fe : n;
|
|
748
745
|
}, ye = (e) => {
|
|
749
|
-
const { columns: t } =
|
|
746
|
+
const { columns: t } = O(), n = t[e];
|
|
750
747
|
if (!n)
|
|
751
748
|
throw new Error("No config for column with id=" + e);
|
|
752
749
|
return n;
|
|
753
750
|
}, ur = () => {
|
|
754
751
|
var n, r, o;
|
|
755
|
-
const e =
|
|
752
|
+
const e = O(), t = (o = (r = (n = J()) == null ? void 0 : n[0]) == null ? void 0 : r.groupConfig.columnOrder) == null ? void 0 : o[0];
|
|
756
753
|
return t ? e.columns[t] : void 0;
|
|
757
754
|
}, dr = () => {
|
|
758
|
-
const e =
|
|
755
|
+
const e = O(), t = J(), n = t[t.length - 1], r = (n == null ? void 0 : n.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1]) ?? void 0;
|
|
759
756
|
return r ? e.columns[r] : void 0;
|
|
760
757
|
}, hr = function({
|
|
761
758
|
columnId: t,
|
|
@@ -765,52 +762,44 @@ const bt = G.createContext({}), Zs = ({
|
|
|
765
762
|
isFirstGroup: s,
|
|
766
763
|
isLastGroup: i
|
|
767
764
|
}) {
|
|
768
|
-
const { label: c, render: l, contentLeft: d, contentRight: u, loading: m, error: p } = n, { width: f, minWidth: w, zIndex: h, borderLeft: g } = ye(t), b =
|
|
765
|
+
const { label: c, render: l, contentLeft: d, contentRight: u, loading: m, error: p } = n, { width: f, minWidth: w, zIndex: h, borderLeft: g } = ye(t), b = O(), { stickyHeader: S, headerRowOffsetTop: I } = b, v = "columnGroupOrder" in b ? b.stickyColumnGroups : void 0, E = mr(r, g), G = s && (v === "first" || v === "both"), k = i && (v === "last" || v === "both"), L = G || k || S, B = G || k;
|
|
769
766
|
return /* @__PURE__ */ a(
|
|
770
767
|
"th",
|
|
771
768
|
{
|
|
772
769
|
colSpan: o,
|
|
773
770
|
style: {
|
|
774
|
-
position:
|
|
771
|
+
position: L ? "sticky" : void 0,
|
|
775
772
|
height: "var(--current-row-height)",
|
|
776
773
|
width: f,
|
|
777
774
|
minWidth: w ?? f ?? "20px",
|
|
778
|
-
background:
|
|
779
|
-
left:
|
|
780
|
-
right:
|
|
781
|
-
top:
|
|
782
|
-
borderLeft:
|
|
783
|
-
zIndex:
|
|
784
|
-
boxShadow:
|
|
775
|
+
background: L ? "white" : "transparent",
|
|
776
|
+
left: G ? "var(--current-left-offset)" : void 0,
|
|
777
|
+
right: k ? "0px" : void 0,
|
|
778
|
+
top: S ? I ?? "0px" : void 0,
|
|
779
|
+
borderLeft: E,
|
|
780
|
+
zIndex: S && B ? "var(--swui-sticky-column-group-label-z-index)" : B ? "var(--swui-sticky-group-group-z-index)" : S ? h ?? "var(--swui-sticky-header-column-group-z-index)" : h ?? 1,
|
|
781
|
+
boxShadow: G ? "var(--swui-sticky-column-shadow-right)" : k ? "var(--swui-sticky-column-shadow-left)" : void 0
|
|
785
782
|
},
|
|
786
|
-
children: /* @__PURE__ */ a(T, { alignItems: "center", children: /* @__PURE__ */
|
|
787
|
-
d && /* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */ a(
|
|
783
|
+
children: /* @__PURE__ */ a(T, { alignItems: "center", children: /* @__PURE__ */ C(M, { children: [
|
|
784
|
+
d && /* @__PURE__ */ C(M, { children: [
|
|
785
|
+
/* @__PURE__ */ a(W, {}),
|
|
789
786
|
d,
|
|
790
|
-
/* @__PURE__ */ a(
|
|
787
|
+
/* @__PURE__ */ a(W, { num: 0.5 })
|
|
791
788
|
] }),
|
|
792
|
-
l ? l(n) : /* @__PURE__ */ a(
|
|
793
|
-
u && /* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */ a(
|
|
789
|
+
l ? l(n) : /* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(wt, { variant: "h5", whiteSpace: "nowrap", children: c }) }),
|
|
790
|
+
u && /* @__PURE__ */ C(M, { children: [
|
|
791
|
+
/* @__PURE__ */ a(W, { num: 0.5 }),
|
|
795
792
|
u
|
|
796
793
|
] }),
|
|
797
|
-
(p || m) && /* @__PURE__ */ a(
|
|
798
|
-
m ? /* @__PURE__ */ a(We, {}) : p ? /* @__PURE__ */ a(
|
|
799
|
-
|
|
794
|
+
(p || m) && /* @__PURE__ */ a(N, {}),
|
|
795
|
+
m ? /* @__PURE__ */ a(We, {}) : p ? /* @__PURE__ */ a(we, { label: p, placement: "bottom", children: /* @__PURE__ */ a(
|
|
796
|
+
Q,
|
|
800
797
|
{
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
children: /* @__PURE__ */ a(
|
|
805
|
-
X,
|
|
806
|
-
{
|
|
807
|
-
icon: Pe,
|
|
808
|
-
color: V("--lhds-color-red-500"),
|
|
809
|
-
size: 14
|
|
810
|
-
}
|
|
811
|
-
)
|
|
798
|
+
icon: Pe,
|
|
799
|
+
color: j("--lhds-color-red-500"),
|
|
800
|
+
size: 14
|
|
812
801
|
}
|
|
813
|
-
) : void 0
|
|
802
|
+
) }) : void 0
|
|
814
803
|
] }) })
|
|
815
804
|
}
|
|
816
805
|
);
|
|
@@ -832,10 +821,10 @@ const bt = G.createContext({}), Zs = ({
|
|
|
832
821
|
return t;
|
|
833
822
|
if (e)
|
|
834
823
|
return 0;
|
|
835
|
-
}, wr =
|
|
824
|
+
}, wr = R.memo(function({
|
|
836
825
|
height: t = He
|
|
837
826
|
}) {
|
|
838
|
-
const n =
|
|
827
|
+
const n = J(), r = O(), {
|
|
839
828
|
showHeaderCheckbox: o,
|
|
840
829
|
enableExpandCollapse: s,
|
|
841
830
|
rowIndent: i,
|
|
@@ -849,7 +838,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
849
838
|
u,
|
|
850
839
|
c
|
|
851
840
|
), p = l ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
|
|
852
|
-
return /* @__PURE__ */
|
|
841
|
+
return /* @__PURE__ */ C(
|
|
853
842
|
"tr",
|
|
854
843
|
{
|
|
855
844
|
style: {
|
|
@@ -915,10 +904,10 @@ const bt = G.createContext({}), Zs = ({
|
|
|
915
904
|
columnIndexPerColumnId: n,
|
|
916
905
|
numNavigableColumns: r
|
|
917
906
|
};
|
|
918
|
-
}, yr = (e) => !e.disableGridCell, Ht =
|
|
907
|
+
}, yr = (e) => !e.disableGridCell, Ht = H({
|
|
919
908
|
columnIndexPerColumnId: {},
|
|
920
909
|
numNavigableColumns: 0
|
|
921
|
-
}),
|
|
910
|
+
}), Yt = () => z(
|
|
922
911
|
Ht
|
|
923
912
|
), br = (e) => {
|
|
924
913
|
"columnGroupOrder" in e && (vr(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && tt(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && tt(
|
|
@@ -1018,31 +1007,31 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1018
1007
|
}), t;
|
|
1019
1008
|
}, Tr = (e, t) => ({
|
|
1020
1009
|
setSelectedIds: (n) => ne(
|
|
1021
|
-
|
|
1010
|
+
_(e, "selectedIds"),
|
|
1022
1011
|
t.selectedIds.setSelectedIds(n)
|
|
1023
1012
|
),
|
|
1024
1013
|
clearSelection: () => ne(
|
|
1025
|
-
|
|
1014
|
+
_(e, "selectedIds"),
|
|
1026
1015
|
t.selectedIds.clearSelectedIds()
|
|
1027
1016
|
),
|
|
1028
1017
|
expandByIds: (n) => ne(
|
|
1029
|
-
|
|
1018
|
+
_(e, "expandedRows"),
|
|
1030
1019
|
t.expandedRows.setSelectedIds(n)
|
|
1031
1020
|
),
|
|
1032
1021
|
collapseAll: () => ne(
|
|
1033
|
-
|
|
1022
|
+
_(e, "expandedRows"),
|
|
1034
1023
|
t.expandedRows.clearSelectedIds()
|
|
1035
1024
|
),
|
|
1036
1025
|
sortBy: (n, r) => ne(
|
|
1037
|
-
|
|
1026
|
+
_(e, "sortOrder"),
|
|
1038
1027
|
t.sortOrder.sortBy(n, r ?? !1)
|
|
1039
1028
|
),
|
|
1040
1029
|
clearSortOrder: () => ne(
|
|
1041
|
-
|
|
1030
|
+
_(e, "sortOrder"),
|
|
1042
1031
|
t.sortOrder.clearSortOrder()
|
|
1043
1032
|
),
|
|
1044
1033
|
setLastSelectedId: (n) => ne(
|
|
1045
|
-
|
|
1034
|
+
_(e, "fields"),
|
|
1046
1035
|
t.fields.setEntityFields({ lastSelectedId: n })
|
|
1047
1036
|
)
|
|
1048
1037
|
}), Dr = (e, t = Mt()) => {
|
|
@@ -1074,15 +1063,15 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1074
1063
|
return n + (((i = o == null ? void 0 : o.columnOrder) == null ? void 0 : i.length) ?? 0);
|
|
1075
1064
|
}, 0) : ((t = e.columnOrder) == null ? void 0 : t.length) ?? 0;
|
|
1076
1065
|
}, Rr = () => {
|
|
1077
|
-
const e =
|
|
1078
|
-
return /* @__PURE__ */
|
|
1066
|
+
const e = O(), t = J(), n = e.enableExpandCollapse || e.showRowCheckbox, r = an(e.rowIndent);
|
|
1067
|
+
return /* @__PURE__ */ C(M, { children: [
|
|
1079
1068
|
r ? /* @__PURE__ */ a("colgroup", { children: /* @__PURE__ */ a(
|
|
1080
1069
|
"col",
|
|
1081
1070
|
{
|
|
1082
1071
|
style: { width: `calc(var(--swui-metrics-indent) * ${r})` }
|
|
1083
1072
|
}
|
|
1084
1073
|
) }) : null,
|
|
1085
|
-
n && /* @__PURE__ */
|
|
1074
|
+
n && /* @__PURE__ */ C("colgroup", { children: [
|
|
1086
1075
|
e.enableExpandCollapse && /* @__PURE__ */ a("col", { style: { width: "var(--swui-expand-cell-width)" } }),
|
|
1087
1076
|
e.showRowCheckbox && /* @__PURE__ */ a("col", { style: { width: "var(--swui-checkbox-cell-width)" } })
|
|
1088
1077
|
] }),
|
|
@@ -1109,13 +1098,13 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1109
1098
|
condensed: Nr,
|
|
1110
1099
|
compact: Lr
|
|
1111
1100
|
}, Br = (e, t) => e != null && t == null ? -1 : e == null && t != null ? 1 : Re(e, t, "number") ? Number(e) - Number(t) : Re(e, t, "boolean") ? Number(t) - Number(e) : Re(e, t, "string") ? String(e).localeCompare(String(t)) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : 0, Re = (e, t, n) => typeof e === n && typeof t === n, Ar = (e) => {
|
|
1112
|
-
const { columns: t } =
|
|
1101
|
+
const { columns: t } = O();
|
|
1113
1102
|
if (!e)
|
|
1114
1103
|
return;
|
|
1115
1104
|
const n = t[e];
|
|
1116
1105
|
if (n)
|
|
1117
1106
|
return n.itemValueResolver;
|
|
1118
|
-
}, Fr =
|
|
1107
|
+
}, Fr = R.memo(
|
|
1119
1108
|
function({
|
|
1120
1109
|
value: t,
|
|
1121
1110
|
onValueChange: n,
|
|
@@ -1157,8 +1146,8 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1157
1146
|
return;
|
|
1158
1147
|
const s = Math.min(r, o), i = Math.max(r, o);
|
|
1159
1148
|
return e.slice(s, i + 1);
|
|
1160
|
-
},
|
|
1161
|
-
const { keyResolver: n } =
|
|
1149
|
+
}, Yr = (e, t) => {
|
|
1150
|
+
const { keyResolver: n } = O(), {
|
|
1162
1151
|
selectedIds: { selectedIds: r },
|
|
1163
1152
|
fields: { lastSelectedId: o }
|
|
1164
1153
|
} = oe(), {
|
|
@@ -1200,7 +1189,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1200
1189
|
shiftAndToggleSelected: f
|
|
1201
1190
|
};
|
|
1202
1191
|
}, $e = (e) => {
|
|
1203
|
-
const { keyResolver: t } =
|
|
1192
|
+
const { keyResolver: t } = O(), {
|
|
1204
1193
|
expandedRows: { selectedIds: n }
|
|
1205
1194
|
} = oe(), {
|
|
1206
1195
|
actions: { expandByIds: r },
|
|
@@ -1218,7 +1207,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1218
1207
|
}, [c, s]),
|
|
1219
1208
|
isExpanded: i
|
|
1220
1209
|
};
|
|
1221
|
-
},
|
|
1210
|
+
}, zr = function({
|
|
1222
1211
|
item: e,
|
|
1223
1212
|
colIndex: t,
|
|
1224
1213
|
numRows: n,
|
|
@@ -1230,7 +1219,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1230
1219
|
numRows: n,
|
|
1231
1220
|
rowIndex: r,
|
|
1232
1221
|
tableId: s
|
|
1233
|
-
}), { requiredProps: c } = i, { expandCollapseDisableResolver: l } =
|
|
1222
|
+
}), { requiredProps: c } = i, { expandCollapseDisableResolver: l } = O(), { toggleRowExpanded: d, isExpanded: u } = $e(e), m = y(() => l ? l(e) : !1, [l, e]);
|
|
1234
1223
|
return /* @__PURE__ */ a(T, { alignItems: "center", justifyContent: "center", indent: !0, children: !m && /* @__PURE__ */ a(
|
|
1235
1224
|
Ne,
|
|
1236
1225
|
{
|
|
@@ -1240,18 +1229,18 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1240
1229
|
...c
|
|
1241
1230
|
}
|
|
1242
1231
|
) });
|
|
1243
|
-
}, qr = (e, t, n) => e ? e(t) : n,
|
|
1232
|
+
}, qr = (e, t, n) => e ? e(t) : n, zt = (e, t, n) => y(
|
|
1244
1233
|
() => qr(e, t, n),
|
|
1245
1234
|
[e, t, n]
|
|
1246
1235
|
), _r = (e, t) => {
|
|
1247
1236
|
const { background: n, backgroundResolver: r } = ye(e);
|
|
1248
|
-
return
|
|
1237
|
+
return zt(r, t, n);
|
|
1249
1238
|
}, ot = (e, t) => {
|
|
1250
1239
|
const { background: n, backgroundResolver: r } = e ?? {};
|
|
1251
|
-
return
|
|
1240
|
+
return zt(r, t, n);
|
|
1252
1241
|
}, jr = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), Vr = (e) => Pn(On(e)), $r = "_standardTableCell_1xzcm_1", Kr = {
|
|
1253
1242
|
standardTableCell: $r
|
|
1254
|
-
}, Qr =
|
|
1243
|
+
}, Qr = R.memo(
|
|
1255
1244
|
function({
|
|
1256
1245
|
enableGridCell: t,
|
|
1257
1246
|
children: n,
|
|
@@ -1293,16 +1282,16 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1293
1282
|
}
|
|
1294
1283
|
), Xr = "_textCell_1yv6v_1", Ur = {
|
|
1295
1284
|
textCell: Xr
|
|
1296
|
-
}, Jr =
|
|
1285
|
+
}, Jr = R.memo(function({
|
|
1297
1286
|
label: t,
|
|
1298
1287
|
size: n,
|
|
1299
1288
|
color: r
|
|
1300
1289
|
}) {
|
|
1301
|
-
return /* @__PURE__ */ a(
|
|
1290
|
+
return /* @__PURE__ */ a(N, { overflow: "hidden", children: /* @__PURE__ */ a(X, { className: Ur.textCell, title: t, size: n, color: r, children: t }) });
|
|
1302
1291
|
}), Zr = ({
|
|
1303
1292
|
label: e,
|
|
1304
1293
|
textSize: t
|
|
1305
|
-
}) => /* @__PURE__ */ a(Jr, { label: e, size: t }), eo =
|
|
1294
|
+
}) => /* @__PURE__ */ a(Jr, { label: e, size: t }), eo = R.memo(function({
|
|
1306
1295
|
columnId: t,
|
|
1307
1296
|
item: n,
|
|
1308
1297
|
colIndex: r,
|
|
@@ -1315,29 +1304,29 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1315
1304
|
keyResolver: l,
|
|
1316
1305
|
enableGridCell: d,
|
|
1317
1306
|
gridCellOptions: u
|
|
1318
|
-
} =
|
|
1319
|
-
itemValueResolver:
|
|
1320
|
-
itemLabelFormatter:
|
|
1321
|
-
width:
|
|
1322
|
-
minWidth:
|
|
1323
|
-
justifyContentCell:
|
|
1307
|
+
} = O(), m = oe().selectedIds.selectedIds, p = qe(), f = sr(), { numNavigableColumns: w } = Yt(), h = _e(), g = y(() => l(n), [n, l]), b = y(() => m.indexOf(g) >= 0, [g, m]), { defaultCellRenderer: S = Zr, defaultTextSize: I } = O(), {
|
|
1308
|
+
itemValueResolver: v,
|
|
1309
|
+
itemLabelFormatter: E,
|
|
1310
|
+
width: G,
|
|
1311
|
+
minWidth: k,
|
|
1312
|
+
justifyContentCell: L = "flex-start",
|
|
1324
1313
|
borderLeft: B,
|
|
1325
|
-
renderCell:
|
|
1326
|
-
gridCellOptions:
|
|
1327
|
-
isEditable:
|
|
1328
|
-
onChange:
|
|
1329
|
-
onKeyDown:
|
|
1314
|
+
renderCell: V = S,
|
|
1315
|
+
gridCellOptions: Z,
|
|
1316
|
+
isEditable: Y,
|
|
1317
|
+
onChange: A,
|
|
1318
|
+
onKeyDown: ee,
|
|
1330
1319
|
disableGridCell: De,
|
|
1331
1320
|
disableGridCellFocus: be,
|
|
1332
1321
|
zIndex: ve
|
|
1333
|
-
} = ye(t),
|
|
1334
|
-
() =>
|
|
1335
|
-
[
|
|
1336
|
-
), se = typeof
|
|
1322
|
+
} = ye(t), $ = y(() => v ? v(n) : t in n ? n[t] : "", [v, n, t]), ue = y(
|
|
1323
|
+
() => E ? E($, n) : jr($),
|
|
1324
|
+
[$, E, n]
|
|
1325
|
+
), se = typeof Y == "boolean" ? Y : Y ? Y(n) : void 0, de = P(
|
|
1337
1326
|
(Ce) => {
|
|
1338
|
-
|
|
1327
|
+
ee == null || ee(Ce, { columnId: t, item: n }), f == null || f(Ce, { columnId: t, item: n });
|
|
1339
1328
|
},
|
|
1340
|
-
[f, t, n,
|
|
1329
|
+
[f, t, n, ee]
|
|
1341
1330
|
), te = Oe(ue, {
|
|
1342
1331
|
colIndex: r,
|
|
1343
1332
|
rowIndex: o,
|
|
@@ -1345,46 +1334,46 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1345
1334
|
numCols: w,
|
|
1346
1335
|
tableId: p,
|
|
1347
1336
|
isEditable: se,
|
|
1348
|
-
onChange:
|
|
1337
|
+
onChange: A ? (Ce) => A(n, Ce) : void 0,
|
|
1349
1338
|
...u,
|
|
1350
|
-
...
|
|
1351
|
-
}),
|
|
1352
|
-
() =>
|
|
1339
|
+
...Z
|
|
1340
|
+
}), F = h[t], Qt = _r(t, n) ?? "inherit", Ee = F.sticky ? ve ?? "var(--swui-sticky-column-z-index)" : ve ?? 1, Xt = y(
|
|
1341
|
+
() => V({
|
|
1353
1342
|
label: ue,
|
|
1354
|
-
value:
|
|
1343
|
+
value: $,
|
|
1355
1344
|
item: n,
|
|
1356
1345
|
gridCell: te,
|
|
1357
1346
|
isEditable: se,
|
|
1358
1347
|
isSelected: b,
|
|
1359
1348
|
zIndex: Ee,
|
|
1360
|
-
textSize:
|
|
1349
|
+
textSize: I,
|
|
1361
1350
|
itemKey: g
|
|
1362
1351
|
}),
|
|
1363
1352
|
[
|
|
1364
|
-
|
|
1353
|
+
V,
|
|
1365
1354
|
ue,
|
|
1366
|
-
|
|
1355
|
+
$,
|
|
1367
1356
|
n,
|
|
1368
1357
|
te,
|
|
1369
1358
|
se,
|
|
1370
1359
|
b,
|
|
1371
1360
|
Ee,
|
|
1372
1361
|
g,
|
|
1373
|
-
|
|
1362
|
+
I
|
|
1374
1363
|
]
|
|
1375
1364
|
), Ut = Ve(
|
|
1376
1365
|
i,
|
|
1377
1366
|
c,
|
|
1378
1367
|
B
|
|
1379
|
-
), Jt =
|
|
1368
|
+
), Jt = F.sticky && F.type === "last-group" && F.isFirstColumnInLastGroup || F.sticky && F.type === "column" && F.right ? "var(--swui-sticky-column-shadow-left)" : F.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0;
|
|
1380
1369
|
return /* @__PURE__ */ a(
|
|
1381
1370
|
"td",
|
|
1382
1371
|
{
|
|
1383
1372
|
style: {
|
|
1384
1373
|
borderLeft: Ut,
|
|
1385
|
-
position:
|
|
1386
|
-
left:
|
|
1387
|
-
right:
|
|
1374
|
+
position: F.sticky ? "sticky" : void 0,
|
|
1375
|
+
left: F.sticky ? F.left : void 0,
|
|
1376
|
+
right: F.sticky ? F.right : void 0,
|
|
1388
1377
|
boxShadow: Jt,
|
|
1389
1378
|
zIndex: Ee,
|
|
1390
1379
|
height: "var(--current-row-height)",
|
|
@@ -1396,9 +1385,9 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1396
1385
|
enableGridCell: d && !De && !be,
|
|
1397
1386
|
gridCellRequiredProps: te.requiredProps,
|
|
1398
1387
|
isEditing: te.isEditing,
|
|
1399
|
-
width:
|
|
1400
|
-
minWidth:
|
|
1401
|
-
justifyContent:
|
|
1388
|
+
width: G,
|
|
1389
|
+
minWidth: k,
|
|
1390
|
+
justifyContent: L,
|
|
1402
1391
|
onKeyDown: de,
|
|
1403
1392
|
children: Xt
|
|
1404
1393
|
}
|
|
@@ -1406,8 +1395,8 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1406
1395
|
}
|
|
1407
1396
|
);
|
|
1408
1397
|
}), to = function({ item: t }) {
|
|
1409
|
-
const { renderRowExpansion: n, enableExpandCollapse: r } =
|
|
1410
|
-
return /* @__PURE__ */ a(
|
|
1398
|
+
const { renderRowExpansion: n, enableExpandCollapse: r } = O(), { isExpanded: o, toggleRowExpanded: s } = $e(t), i = je();
|
|
1399
|
+
return /* @__PURE__ */ a(M, { children: r && n && o && /* @__PURE__ */ a(
|
|
1411
1400
|
"tr",
|
|
1412
1401
|
{
|
|
1413
1402
|
style: {
|
|
@@ -1426,7 +1415,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1426
1415
|
background: ${e};
|
|
1427
1416
|
}
|
|
1428
1417
|
` : ""}
|
|
1429
|
-
`, no =
|
|
1418
|
+
`, no = R.memo(function({
|
|
1430
1419
|
item: t,
|
|
1431
1420
|
idListForEnabledItems: n,
|
|
1432
1421
|
rowIndex: r,
|
|
@@ -1435,55 +1424,55 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1435
1424
|
alwaysVisible: i,
|
|
1436
1425
|
shiftPressedRef: c
|
|
1437
1426
|
}) {
|
|
1438
|
-
const l = ce(null), d = je(), { stickyCheckboxColumn: u } =
|
|
1427
|
+
const l = ce(null), d = je(), { stickyCheckboxColumn: u } = O(), m = J(), { columnIndexPerColumnId: p } = Yt(), {
|
|
1439
1428
|
showRowCheckbox: f,
|
|
1440
1429
|
rowBackgroundResolver: w,
|
|
1441
1430
|
checkboxDisabledResolver: h,
|
|
1442
1431
|
enableGridCell: g,
|
|
1443
1432
|
rowIndent: b,
|
|
1444
|
-
enableExpandCollapse:
|
|
1445
|
-
} =
|
|
1433
|
+
enableExpandCollapse: S
|
|
1434
|
+
} = O(), { isExpanded: I } = $e(t), { isSelected: v, toggleSelected: E, shiftAndToggleSelected: G } = Yr(
|
|
1446
1435
|
t,
|
|
1447
1436
|
n
|
|
1448
|
-
),
|
|
1437
|
+
), k = cn(l, {
|
|
1449
1438
|
rootMargin: "400px 0px 400px 0px",
|
|
1450
1439
|
threshold: 0
|
|
1451
|
-
}),
|
|
1452
|
-
() => w == null ? void 0 : w(t,
|
|
1453
|
-
[
|
|
1440
|
+
}), L = y(
|
|
1441
|
+
() => w == null ? void 0 : w(t, v),
|
|
1442
|
+
[v, t, w]
|
|
1454
1443
|
), B = ro(
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
),
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
),
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
),
|
|
1444
|
+
L,
|
|
1445
|
+
v,
|
|
1446
|
+
I
|
|
1447
|
+
), V = oo(
|
|
1448
|
+
L,
|
|
1449
|
+
v,
|
|
1450
|
+
I
|
|
1451
|
+
), Z = so(
|
|
1452
|
+
L,
|
|
1453
|
+
v,
|
|
1454
|
+
V
|
|
1455
|
+
), Y = y(
|
|
1467
1456
|
() => h == null ? void 0 : h(t),
|
|
1468
1457
|
[t, h]
|
|
1469
|
-
),
|
|
1470
|
-
|
|
1458
|
+
), A = ur(), ee = ot(
|
|
1459
|
+
A,
|
|
1471
1460
|
t
|
|
1472
1461
|
), De = dr(), be = ot(
|
|
1473
1462
|
De,
|
|
1474
1463
|
t
|
|
1475
1464
|
), ve = y(
|
|
1476
|
-
() => /* @__PURE__ */ a(
|
|
1465
|
+
() => /* @__PURE__ */ a(M, { children: /* @__PURE__ */ C(M, { children: [
|
|
1477
1466
|
b && /* @__PURE__ */ a(
|
|
1478
1467
|
"td",
|
|
1479
1468
|
{
|
|
1480
1469
|
style: {
|
|
1481
|
-
background:
|
|
1470
|
+
background: ee
|
|
1482
1471
|
},
|
|
1483
|
-
children: /* @__PURE__ */ a(
|
|
1472
|
+
children: /* @__PURE__ */ a(N, { num: b })
|
|
1484
1473
|
}
|
|
1485
1474
|
),
|
|
1486
|
-
|
|
1475
|
+
S && /* @__PURE__ */ a(
|
|
1487
1476
|
"td",
|
|
1488
1477
|
{
|
|
1489
1478
|
style: {
|
|
@@ -1501,7 +1490,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1501
1490
|
alignItems: "center",
|
|
1502
1491
|
justifyContent: "center",
|
|
1503
1492
|
children: /* @__PURE__ */ a(
|
|
1504
|
-
|
|
1493
|
+
zr,
|
|
1505
1494
|
{
|
|
1506
1495
|
colIndex: s,
|
|
1507
1496
|
rowIndex: g ? r : 0,
|
|
@@ -1519,7 +1508,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1519
1508
|
style: {
|
|
1520
1509
|
background: u ? "inherit" : void 0,
|
|
1521
1510
|
position: u ? "sticky" : void 0,
|
|
1522
|
-
left:
|
|
1511
|
+
left: S && u ? "var(--swui-expand-cell-width)" : u ? "0px" : void 0,
|
|
1523
1512
|
textAlign: "center",
|
|
1524
1513
|
boxShadow: u ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1525
1514
|
zIndex: u ? "var(--swui-sticky-column-z-index)" : void 0
|
|
@@ -1534,11 +1523,11 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1534
1523
|
children: /* @__PURE__ */ a(
|
|
1535
1524
|
Fr,
|
|
1536
1525
|
{
|
|
1537
|
-
disabled:
|
|
1538
|
-
value:
|
|
1539
|
-
onValueChange:
|
|
1540
|
-
onValueChangeAndShift:
|
|
1541
|
-
colIndex: s + (
|
|
1526
|
+
disabled: Y,
|
|
1527
|
+
value: v,
|
|
1528
|
+
onValueChange: E,
|
|
1529
|
+
onValueChangeAndShift: G,
|
|
1530
|
+
colIndex: s + (S ? 1 : 0),
|
|
1542
1531
|
rowIndex: r,
|
|
1543
1532
|
numRows: o,
|
|
1544
1533
|
shiftPressedRef: c
|
|
@@ -1548,7 +1537,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1548
1537
|
)
|
|
1549
1538
|
}
|
|
1550
1539
|
),
|
|
1551
|
-
m.map(({ groupConfig:
|
|
1540
|
+
m.map(({ groupConfig: $, groupId: ue }, se) => /* @__PURE__ */ a(R.Fragment, { children: $.columnOrder.map((de, te) => /* @__PURE__ */ a(
|
|
1552
1541
|
eo,
|
|
1553
1542
|
{
|
|
1554
1543
|
columnId: de,
|
|
@@ -1559,7 +1548,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1559
1548
|
borderFromGroup: Ie(
|
|
1560
1549
|
se,
|
|
1561
1550
|
te,
|
|
1562
|
-
|
|
1551
|
+
$.borderLeft
|
|
1563
1552
|
),
|
|
1564
1553
|
disableBorderLeft: se === 0 && te === 0
|
|
1565
1554
|
},
|
|
@@ -1571,7 +1560,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1571
1560
|
style: {
|
|
1572
1561
|
background: be
|
|
1573
1562
|
},
|
|
1574
|
-
children: /* @__PURE__ */ a(
|
|
1563
|
+
children: /* @__PURE__ */ a(N, { num: b })
|
|
1575
1564
|
}
|
|
1576
1565
|
),
|
|
1577
1566
|
/* @__PURE__ */ a("td", {})
|
|
@@ -1579,34 +1568,34 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1579
1568
|
[
|
|
1580
1569
|
s,
|
|
1581
1570
|
p,
|
|
1582
|
-
|
|
1583
|
-
|
|
1571
|
+
Y,
|
|
1572
|
+
S,
|
|
1584
1573
|
g,
|
|
1585
|
-
|
|
1574
|
+
ee,
|
|
1586
1575
|
m,
|
|
1587
|
-
|
|
1576
|
+
v,
|
|
1588
1577
|
t,
|
|
1589
1578
|
be,
|
|
1590
1579
|
o,
|
|
1591
1580
|
b,
|
|
1592
1581
|
r,
|
|
1593
|
-
|
|
1582
|
+
G,
|
|
1594
1583
|
c,
|
|
1595
1584
|
f,
|
|
1596
1585
|
u,
|
|
1597
|
-
|
|
1586
|
+
E
|
|
1598
1587
|
]
|
|
1599
1588
|
);
|
|
1600
|
-
return /* @__PURE__ */
|
|
1589
|
+
return /* @__PURE__ */ C(M, { children: [
|
|
1601
1590
|
/* @__PURE__ */ a(
|
|
1602
1591
|
qt,
|
|
1603
1592
|
{
|
|
1604
|
-
hoverBackground:
|
|
1593
|
+
hoverBackground: V,
|
|
1605
1594
|
background: B,
|
|
1606
|
-
focusBackground:
|
|
1607
|
-
borderLeft:
|
|
1595
|
+
focusBackground: Z,
|
|
1596
|
+
borderLeft: I ? xt : Fe,
|
|
1608
1597
|
ref: l,
|
|
1609
|
-
children:
|
|
1598
|
+
children: k || i || I ? ve : /* @__PURE__ */ a(
|
|
1610
1599
|
"td",
|
|
1611
1600
|
{
|
|
1612
1601
|
colSpan: d,
|
|
@@ -1617,14 +1606,14 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1617
1606
|
),
|
|
1618
1607
|
/* @__PURE__ */ a(to, { item: t })
|
|
1619
1608
|
] });
|
|
1620
|
-
}), ro = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ?
|
|
1609
|
+
}), ro = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ? j("--lhds-color-blue-100") : n ? Ct : "white", oo = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.hoverBackground : t ? j("--lhds-color-blue-200") : n ? Rn : j("--lhds-color-ui-200"), so = (e, t, n) => {
|
|
1621
1610
|
if (t)
|
|
1622
|
-
return
|
|
1611
|
+
return j("--lhds-color-blue-200");
|
|
1623
1612
|
if (e)
|
|
1624
1613
|
return n;
|
|
1625
1614
|
}, ao = (e) => Object.values(e).some((t) => io(t)), io = (e) => !!(e.renderSummaryCell || e.summaryText), co = "_summaryRow_12x8k_1", lo = {
|
|
1626
1615
|
summaryRow: co
|
|
1627
|
-
}, uo =
|
|
1616
|
+
}, uo = R.memo(function({
|
|
1628
1617
|
columnId: t,
|
|
1629
1618
|
items: n,
|
|
1630
1619
|
disableBorderLeft: r,
|
|
@@ -1643,9 +1632,9 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1643
1632
|
o,
|
|
1644
1633
|
r,
|
|
1645
1634
|
d
|
|
1646
|
-
), h = i[t], g = h.sticky ? u ?? "var(--swui-sticky-column-z-index)" : u ?? 1, b = h.sticky && h.type === "last-group" && h.isFirstColumnInLastGroup || h.sticky && h.type === "column" && h.right ? "var(--swui-sticky-column-shadow-left)" : h.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1647
|
-
() => c == null ? void 0 : c({ items: n, text:
|
|
1648
|
-
[n, c,
|
|
1635
|
+
), h = i[t], g = h.sticky ? u ?? "var(--swui-sticky-column-z-index)" : u ?? 1, b = h.sticky && h.type === "last-group" && h.isFirstColumnInLastGroup || h.sticky && h.type === "column" && h.right ? "var(--swui-sticky-column-shadow-left)" : h.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, S = y(() => l == null ? void 0 : l({ items: n }), [n, l]), I = y(
|
|
1636
|
+
() => c == null ? void 0 : c({ items: n, text: S }),
|
|
1637
|
+
[n, c, S]
|
|
1649
1638
|
);
|
|
1650
1639
|
return /* @__PURE__ */ a(
|
|
1651
1640
|
"td",
|
|
@@ -1669,7 +1658,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1669
1658
|
overflow: "hidden",
|
|
1670
1659
|
justifyContent: f,
|
|
1671
1660
|
alignItems: "center",
|
|
1672
|
-
children: c ?
|
|
1661
|
+
children: c ? I : /* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(X, { variant: "bold", children: S }) })
|
|
1673
1662
|
}
|
|
1674
1663
|
)
|
|
1675
1664
|
}
|
|
@@ -1686,16 +1675,16 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1686
1675
|
i > 1 && (r += i - 1);
|
|
1687
1676
|
}
|
|
1688
1677
|
return n;
|
|
1689
|
-
}, mo =
|
|
1678
|
+
}, mo = R.memo(
|
|
1690
1679
|
function({
|
|
1691
1680
|
items: t
|
|
1692
1681
|
}) {
|
|
1693
|
-
const n =
|
|
1694
|
-
return /* @__PURE__ */
|
|
1695
|
-
i && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(
|
|
1682
|
+
const n = J(), { showRowCheckbox: r, enableExpandCollapse: o, columns: s, rowIndent: i } = O();
|
|
1683
|
+
return /* @__PURE__ */ C("tr", { className: lo.summaryRow, children: [
|
|
1684
|
+
i && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(N, { num: i }) }),
|
|
1696
1685
|
o && /* @__PURE__ */ a("td", {}),
|
|
1697
1686
|
r && /* @__PURE__ */ a("td", {}),
|
|
1698
|
-
n.map(({ groupConfig: c, groupId: l }, d) => /* @__PURE__ */ a(
|
|
1687
|
+
n.map(({ groupConfig: c, groupId: l }, d) => /* @__PURE__ */ a(R.Fragment, { children: ho(c.columnOrder, s).map(
|
|
1699
1688
|
({ columnId: u, colSpan: m }, p) => /* @__PURE__ */ a(
|
|
1700
1689
|
uo,
|
|
1701
1690
|
{
|
|
@@ -1712,14 +1701,14 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1712
1701
|
u
|
|
1713
1702
|
)
|
|
1714
1703
|
) }, l)),
|
|
1715
|
-
i && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(
|
|
1704
|
+
i && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(N, { num: i }) }),
|
|
1716
1705
|
/* @__PURE__ */ a("td", {})
|
|
1717
1706
|
] });
|
|
1718
1707
|
}
|
|
1719
1708
|
), fo = function({ items: t }) {
|
|
1720
|
-
const { columns: n } =
|
|
1709
|
+
const { columns: n } = O();
|
|
1721
1710
|
return y(() => ao(n), [n]) ? /* @__PURE__ */ a(mo, { items: t }) : null;
|
|
1722
|
-
}, _t = (e) => (t) => e == null ? !0 : !e(t), po =
|
|
1711
|
+
}, _t = (e) => (t) => e == null ? !0 : !e(t), po = R.memo(function({
|
|
1723
1712
|
items: t,
|
|
1724
1713
|
colIndexOffset: n = 0,
|
|
1725
1714
|
rowIndexOffset: r = 0
|
|
@@ -1729,7 +1718,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1729
1718
|
disableInfiniteList: c,
|
|
1730
1719
|
checkboxDisabledResolver: l,
|
|
1731
1720
|
enableExternalSorting: d
|
|
1732
|
-
} =
|
|
1721
|
+
} = O(), {
|
|
1733
1722
|
sortOrder: { sortBy: u, desc: m }
|
|
1734
1723
|
} = oe(), p = Ar(u), f = y(() => {
|
|
1735
1724
|
if (d)
|
|
@@ -1758,7 +1747,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1758
1747
|
return document.addEventListener("keyup", h), document.addEventListener("keydown", g), () => {
|
|
1759
1748
|
document.removeEventListener("keyup", h), document.removeEventListener("keydown", g);
|
|
1760
1749
|
};
|
|
1761
|
-
}, []), /* @__PURE__ */
|
|
1750
|
+
}, []), /* @__PURE__ */ C(R.Fragment, { children: [
|
|
1762
1751
|
f.map((h, g) => /* @__PURE__ */ a(
|
|
1763
1752
|
no,
|
|
1764
1753
|
{
|
|
@@ -1774,7 +1763,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1774
1763
|
)),
|
|
1775
1764
|
/* @__PURE__ */ a(fo, { items: f })
|
|
1776
1765
|
] }, o.current);
|
|
1777
|
-
}), wo =
|
|
1766
|
+
}), wo = R.memo(function({
|
|
1778
1767
|
error: t,
|
|
1779
1768
|
bannerError: n,
|
|
1780
1769
|
loading: r,
|
|
@@ -1806,7 +1795,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1806
1795
|
variant: "info",
|
|
1807
1796
|
children: c
|
|
1808
1797
|
}
|
|
1809
|
-
) }) }) }) }) : /* @__PURE__ */
|
|
1798
|
+
) }) }) }) }) : /* @__PURE__ */ C("tbody", { children: [
|
|
1810
1799
|
f == null ? void 0 : f(),
|
|
1811
1800
|
/* @__PURE__ */ a(
|
|
1812
1801
|
po,
|
|
@@ -1820,7 +1809,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1820
1809
|
w == null ? void 0 : w()
|
|
1821
1810
|
] });
|
|
1822
1811
|
}), go = (e) => {
|
|
1823
|
-
const { keyResolver: t, checkboxDisabledResolver: n } =
|
|
1812
|
+
const { keyResolver: t, checkboxDisabledResolver: n } = O(), {
|
|
1824
1813
|
selectedIds: { selectedIds: r }
|
|
1825
1814
|
} = oe(), {
|
|
1826
1815
|
actions: { setSelectedIds: o, clearSelection: s },
|
|
@@ -1846,7 +1835,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1846
1835
|
onClickCheckbox: d
|
|
1847
1836
|
};
|
|
1848
1837
|
}, yo = (e) => {
|
|
1849
|
-
const { keyResolver: t } =
|
|
1838
|
+
const { keyResolver: t } = O(), {
|
|
1850
1839
|
expandedRows: { selectedIds: n }
|
|
1851
1840
|
} = oe(), {
|
|
1852
1841
|
actions: { collapseAll: r, expandByIds: o },
|
|
@@ -1883,62 +1872,60 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1883
1872
|
}, [e, s, o, t, n, r]);
|
|
1884
1873
|
}, vo = "_standardTableHeadTh_swsxb_8", Co = {
|
|
1885
1874
|
standardTableHeadTh: vo
|
|
1886
|
-
}, xo =
|
|
1875
|
+
}, xo = R.memo(
|
|
1887
1876
|
function({
|
|
1888
1877
|
columnId: t,
|
|
1889
1878
|
borderFromGroup: n,
|
|
1890
1879
|
disableBorderLeft: r,
|
|
1891
1880
|
stickyHeader: o,
|
|
1892
|
-
top: s
|
|
1893
|
-
appendTooltipTo: i
|
|
1881
|
+
top: s
|
|
1894
1882
|
}) {
|
|
1895
1883
|
const {
|
|
1896
|
-
justifyContentHeader:
|
|
1897
|
-
columnLabel:
|
|
1898
|
-
borderLeft:
|
|
1899
|
-
infoIconTooltipText:
|
|
1900
|
-
background:
|
|
1901
|
-
zIndex:
|
|
1902
|
-
sortOrderIconVariant:
|
|
1903
|
-
width:
|
|
1904
|
-
minWidth:
|
|
1884
|
+
justifyContentHeader: i,
|
|
1885
|
+
columnLabel: c,
|
|
1886
|
+
borderLeft: l,
|
|
1887
|
+
infoIconTooltipText: d,
|
|
1888
|
+
background: u,
|
|
1889
|
+
zIndex: m,
|
|
1890
|
+
sortOrderIconVariant: p,
|
|
1891
|
+
width: f,
|
|
1892
|
+
minWidth: w
|
|
1905
1893
|
} = ye(t), {
|
|
1906
|
-
disableSorting:
|
|
1907
|
-
sortOrderIconVariant:
|
|
1908
|
-
} =
|
|
1894
|
+
disableSorting: h,
|
|
1895
|
+
sortOrderIconVariant: g
|
|
1896
|
+
} = O(), b = _e(), { arrow: S, selected: I, onClickColumnHead: v } = bo(t), E = typeof c == "string" ? c : Vr(t), G = Ve(
|
|
1909
1897
|
n,
|
|
1910
1898
|
r,
|
|
1911
|
-
|
|
1912
|
-
),
|
|
1899
|
+
l
|
|
1900
|
+
), k = b[t];
|
|
1913
1901
|
return /* @__PURE__ */ a(
|
|
1914
1902
|
"th",
|
|
1915
1903
|
{
|
|
1916
1904
|
className: Co.standardTableHeadTh,
|
|
1917
1905
|
style: {
|
|
1918
|
-
background:
|
|
1919
|
-
borderLeft:
|
|
1920
|
-
position: o ||
|
|
1921
|
-
left:
|
|
1922
|
-
right:
|
|
1906
|
+
background: u ?? "white",
|
|
1907
|
+
borderLeft: G,
|
|
1908
|
+
position: o || k.sticky ? "sticky" : void 0,
|
|
1909
|
+
left: k.left,
|
|
1910
|
+
right: k.right,
|
|
1923
1911
|
top: s,
|
|
1924
|
-
boxShadow:
|
|
1925
|
-
zIndex: o &&
|
|
1926
|
-
width:
|
|
1927
|
-
minWidth:
|
|
1912
|
+
boxShadow: k.sticky && k.isFirstColumnInLastGroup && o ? "var(--swui-sticky-header-shadow-and-left)" : k.sticky && k.isFirstColumnInLastGroup ? "var(--swui-sticky-column-shadow-left)" : o && k.sticky ? "var(--swui-sticky-header-shadow-and-right)" : o ? "var(--swui-sticky-header-shadow)" : k.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1913
|
+
zIndex: o && k.sticky ? "var(--swui-sticky-header-in-sticky-column-z-index)" : o ? "var(--swui-sticky-header-z-index)" : k.sticky ? "var(--swui-sticky-group-header-z-index)" : m,
|
|
1914
|
+
width: f,
|
|
1915
|
+
minWidth: w
|
|
1928
1916
|
},
|
|
1929
1917
|
children: /* @__PURE__ */ a(
|
|
1930
|
-
|
|
1918
|
+
ze,
|
|
1931
1919
|
{
|
|
1932
1920
|
width: "inherit",
|
|
1933
1921
|
minWidth: "inherit",
|
|
1934
|
-
arrow: !
|
|
1935
|
-
onClick:
|
|
1936
|
-
label:
|
|
1937
|
-
infoIconTooltipText:
|
|
1938
|
-
alignRight:
|
|
1939
|
-
sortOrderIconVariant:
|
|
1940
|
-
|
|
1941
|
-
selected: S,
|
|
1922
|
+
arrow: !h && E ? S : void 0,
|
|
1923
|
+
onClick: h ? void 0 : v,
|
|
1924
|
+
label: E,
|
|
1925
|
+
infoIconTooltipText: d,
|
|
1926
|
+
alignRight: i === "flex-end",
|
|
1927
|
+
sortOrderIconVariant: p ?? g,
|
|
1928
|
+
selected: I,
|
|
1942
1929
|
height: "100%"
|
|
1943
1930
|
}
|
|
1944
1931
|
)
|
|
@@ -1954,40 +1941,36 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1954
1941
|
return e;
|
|
1955
1942
|
if (r)
|
|
1956
1943
|
return 0;
|
|
1957
|
-
}, So =
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
stickyCheckboxColumn: p,
|
|
1971
|
-
showRowCheckbox: f
|
|
1972
|
-
} = I(), w = cr(), { allItemsAreExpanded: h, toggleExpanded: g } = yo(t), { allItemsAreSelected: b, onClickCheckbox: k, selectionIsEmpty: O } = go(t), S = !t || t.length === 0, D = {
|
|
1973
|
-
zIndex: m && p ? "var(--swui-sticky-header-in-sticky-column-z-index)" : p ? "var(--swui-sticky-group-header-z-index)" : m ? "var(--swui-sticky-header-z-index)" : u,
|
|
1944
|
+
}, So = R.memo(function({ items: t, height: n = He }) {
|
|
1945
|
+
const r = J(), {
|
|
1946
|
+
showHeaderCheckbox: o,
|
|
1947
|
+
showHeaderExpandCollapse: s,
|
|
1948
|
+
enableExpandCollapse: i,
|
|
1949
|
+
rowIndent: c,
|
|
1950
|
+
headerRowOffsetTop: l,
|
|
1951
|
+
zIndex: d,
|
|
1952
|
+
stickyHeader: u,
|
|
1953
|
+
stickyCheckboxColumn: m,
|
|
1954
|
+
showRowCheckbox: p
|
|
1955
|
+
} = O(), f = cr(), { allItemsAreExpanded: w, toggleExpanded: h } = yo(t), { allItemsAreSelected: g, onClickCheckbox: b, selectionIsEmpty: S } = go(t), I = !t || t.length === 0, v = {
|
|
1956
|
+
zIndex: u && m ? "var(--swui-sticky-header-in-sticky-column-z-index)" : m ? "var(--swui-sticky-group-header-z-index)" : u ? "var(--swui-sticky-header-z-index)" : d,
|
|
1974
1957
|
top: ko(
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1958
|
+
l,
|
|
1959
|
+
f,
|
|
1960
|
+
n,
|
|
1961
|
+
u
|
|
1979
1962
|
),
|
|
1980
|
-
background:
|
|
1981
|
-
position:
|
|
1982
|
-
boxShadow:
|
|
1963
|
+
background: u || m ? "white" : void 0,
|
|
1964
|
+
position: u || m ? "sticky" : void 0,
|
|
1965
|
+
boxShadow: u && m ? "var(--swui-sticky-header-shadow-and-right)" : m ? "var(--swui-sticky-column-shadow-right)" : u ? "var(--swui-sticky-header-shadow)" : void 0
|
|
1983
1966
|
};
|
|
1984
|
-
return /* @__PURE__ */
|
|
1985
|
-
|
|
1986
|
-
|
|
1967
|
+
return /* @__PURE__ */ C(qt, { height: n, borderLeft: Fe, children: [
|
|
1968
|
+
c && /* @__PURE__ */ a("th", { style: v, children: /* @__PURE__ */ a(T, { indent: c }) }),
|
|
1969
|
+
i && /* @__PURE__ */ a(
|
|
1987
1970
|
"th",
|
|
1988
1971
|
{
|
|
1989
1972
|
style: {
|
|
1990
|
-
...
|
|
1973
|
+
...v,
|
|
1991
1974
|
left: "0px",
|
|
1992
1975
|
textAlign: "left"
|
|
1993
1976
|
},
|
|
@@ -1998,25 +1981,25 @@ const bt = G.createContext({}), Zs = ({
|
|
|
1998
1981
|
minWidth: "var(--swui-expand-cell-width)",
|
|
1999
1982
|
alignItems: "center",
|
|
2000
1983
|
justifyContent: "center",
|
|
2001
|
-
children:
|
|
1984
|
+
children: s && /* @__PURE__ */ a(
|
|
2002
1985
|
Ne,
|
|
2003
1986
|
{
|
|
2004
1987
|
size: "small",
|
|
2005
|
-
leftIcon:
|
|
2006
|
-
onClick:
|
|
1988
|
+
leftIcon: w ? ft : pt,
|
|
1989
|
+
onClick: h
|
|
2007
1990
|
}
|
|
2008
1991
|
)
|
|
2009
1992
|
}
|
|
2010
1993
|
)
|
|
2011
1994
|
}
|
|
2012
1995
|
),
|
|
2013
|
-
(
|
|
1996
|
+
(p || o) && /* @__PURE__ */ a(
|
|
2014
1997
|
"th",
|
|
2015
1998
|
{
|
|
2016
1999
|
style: {
|
|
2017
|
-
...
|
|
2000
|
+
...v,
|
|
2018
2001
|
overflow: "hidden",
|
|
2019
|
-
left:
|
|
2002
|
+
left: m && i ? "var(--swui-expand-cell-width)" : m ? "0px" : void 0
|
|
2020
2003
|
},
|
|
2021
2004
|
children: /* @__PURE__ */ a(
|
|
2022
2005
|
T,
|
|
@@ -2025,38 +2008,37 @@ const bt = G.createContext({}), Zs = ({
|
|
|
2025
2008
|
minWidth: "var(--swui-checkbox-cell-width)",
|
|
2026
2009
|
alignItems: "center",
|
|
2027
2010
|
justifyContent: "center",
|
|
2028
|
-
children:
|
|
2011
|
+
children: o && /* @__PURE__ */ a(
|
|
2029
2012
|
Be,
|
|
2030
2013
|
{
|
|
2031
2014
|
size: "small",
|
|
2032
|
-
disabled:
|
|
2033
|
-
value:
|
|
2034
|
-
indeterminate: !
|
|
2035
|
-
onValueChange:
|
|
2015
|
+
disabled: I,
|
|
2016
|
+
value: g,
|
|
2017
|
+
indeterminate: !S && !g,
|
|
2018
|
+
onValueChange: b
|
|
2036
2019
|
}
|
|
2037
2020
|
)
|
|
2038
2021
|
}
|
|
2039
2022
|
)
|
|
2040
2023
|
}
|
|
2041
2024
|
),
|
|
2042
|
-
|
|
2025
|
+
r.map(({ groupConfig: E, groupId: G }, k) => /* @__PURE__ */ a(R.Fragment, { children: E.columnOrder.map((L, B) => /* @__PURE__ */ a(
|
|
2043
2026
|
xo,
|
|
2044
2027
|
{
|
|
2045
|
-
columnId:
|
|
2028
|
+
columnId: L,
|
|
2046
2029
|
borderFromGroup: Ie(
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2030
|
+
k,
|
|
2031
|
+
B,
|
|
2032
|
+
E.borderLeft
|
|
2050
2033
|
),
|
|
2051
|
-
disableBorderLeft:
|
|
2052
|
-
stickyHeader:
|
|
2053
|
-
top:
|
|
2054
|
-
appendTooltipTo: n
|
|
2034
|
+
disableBorderLeft: k === 0 && B === 0,
|
|
2035
|
+
stickyHeader: u,
|
|
2036
|
+
top: v.top
|
|
2055
2037
|
},
|
|
2056
|
-
|
|
2057
|
-
)) },
|
|
2058
|
-
|
|
2059
|
-
/* @__PURE__ */ a("th", { style:
|
|
2038
|
+
L
|
|
2039
|
+
)) }, G)),
|
|
2040
|
+
c && /* @__PURE__ */ a("th", { style: v, children: /* @__PURE__ */ a(T, { indent: c }) }),
|
|
2041
|
+
/* @__PURE__ */ a("th", { style: v })
|
|
2060
2042
|
] });
|
|
2061
2043
|
}), aa = function({
|
|
2062
2044
|
tableContext: t,
|
|
@@ -2066,81 +2048,80 @@ const bt = G.createContext({}), Zs = ({
|
|
|
2066
2048
|
variant: s = "standard",
|
|
2067
2049
|
onKeyDown: i,
|
|
2068
2050
|
onSortOrderChange: c,
|
|
2069
|
-
|
|
2070
|
-
...d
|
|
2051
|
+
...l
|
|
2071
2052
|
}) {
|
|
2072
|
-
const
|
|
2073
|
-
initialSortOrderDesc:
|
|
2074
|
-
initialSortOrder:
|
|
2075
|
-
enableExpandCollapse:
|
|
2076
|
-
stickyCheckboxColumn:
|
|
2077
|
-
} = n, { tableContext:
|
|
2078
|
-
o ??
|
|
2079
|
-
Mt(
|
|
2080
|
-
),
|
|
2053
|
+
const d = en(), {
|
|
2054
|
+
initialSortOrderDesc: u,
|
|
2055
|
+
initialSortOrder: m,
|
|
2056
|
+
enableExpandCollapse: p,
|
|
2057
|
+
stickyCheckboxColumn: f
|
|
2058
|
+
} = n, { tableContext: w } = Dr(
|
|
2059
|
+
o ?? d,
|
|
2060
|
+
Mt(m, u)
|
|
2061
|
+
), h = t || w, { state: g, actions: b, dispatch: S } = h, I = y(
|
|
2081
2062
|
() => ({
|
|
2082
|
-
actions:
|
|
2083
|
-
dispatch:
|
|
2063
|
+
actions: b,
|
|
2064
|
+
dispatch: S
|
|
2084
2065
|
}),
|
|
2085
|
-
[
|
|
2086
|
-
),
|
|
2066
|
+
[b, S]
|
|
2067
|
+
), v = !!(r ?? "columnGroupOrder" in n), E = "columnGroups" in n ? n.columnGroups : void 0, G = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, k = "columnOrder" in n ? n.columnOrder : void 0, L = y(
|
|
2087
2068
|
() => Ft(
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2069
|
+
E,
|
|
2070
|
+
G,
|
|
2071
|
+
k
|
|
2091
2072
|
),
|
|
2092
|
-
[
|
|
2093
|
-
),
|
|
2073
|
+
[E, G, k]
|
|
2074
|
+
), B = y(
|
|
2094
2075
|
() => gr(n),
|
|
2095
2076
|
[n]
|
|
2096
|
-
),
|
|
2077
|
+
), V = y(() => Er(n), [n]), Z = y(
|
|
2097
2078
|
() => Pr(n),
|
|
2098
2079
|
[n]
|
|
2099
|
-
),
|
|
2080
|
+
), Y = y(() => {
|
|
2100
2081
|
try {
|
|
2101
2082
|
br(n);
|
|
2102
2083
|
return;
|
|
2103
|
-
} catch (
|
|
2104
|
-
return
|
|
2084
|
+
} catch (A) {
|
|
2085
|
+
return A instanceof Error ? A : new Error("Unknown error");
|
|
2105
2086
|
}
|
|
2106
2087
|
}, [n]);
|
|
2107
|
-
return
|
|
2088
|
+
return Y ? /* @__PURE__ */ a(kn, { text: Y.message }) : /* @__PURE__ */ a(
|
|
2108
2089
|
"table",
|
|
2109
2090
|
{
|
|
2110
2091
|
className: yt(rt.standardTable, rt[s]),
|
|
2111
2092
|
style: {
|
|
2112
2093
|
width: "100%",
|
|
2113
2094
|
isolation: "isolate",
|
|
2114
|
-
"--current-left-offset":
|
|
2095
|
+
"--current-left-offset": p && f ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : f ? "var(--swui-checkbox-cell-width)" : p ? "var(--swui-expand-cell-width)" : "0px"
|
|
2115
2096
|
},
|
|
2116
|
-
children: /* @__PURE__ */ a(Bt.Provider, { value:
|
|
2097
|
+
children: /* @__PURE__ */ a(Bt.Provider, { value: Z, children: /* @__PURE__ */ a(At.Provider, { value: V, children: /* @__PURE__ */ a(lr.Provider, { value: s, children: /* @__PURE__ */ a(
|
|
2117
2098
|
It.Provider,
|
|
2118
2099
|
{
|
|
2119
|
-
value: o ??
|
|
2120
|
-
children: /* @__PURE__ */ a(Tt.Provider, { value:
|
|
2100
|
+
value: o ?? d,
|
|
2101
|
+
children: /* @__PURE__ */ a(Tt.Provider, { value: g, children: /* @__PURE__ */ a(Dt.Provider, { value: I, children: /* @__PURE__ */ a(Et.Provider, { value: n, children: /* @__PURE__ */ a(
|
|
2121
2102
|
Rt.Provider,
|
|
2122
2103
|
{
|
|
2123
|
-
value:
|
|
2104
|
+
value: L,
|
|
2124
2105
|
children: /* @__PURE__ */ a(
|
|
2125
2106
|
Ht.Provider,
|
|
2126
2107
|
{
|
|
2127
|
-
value:
|
|
2108
|
+
value: B,
|
|
2128
2109
|
children: /* @__PURE__ */ a(
|
|
2129
2110
|
ir.Provider,
|
|
2130
2111
|
{
|
|
2131
|
-
value:
|
|
2132
|
-
children: /* @__PURE__ */
|
|
2112
|
+
value: v,
|
|
2113
|
+
children: /* @__PURE__ */ C(
|
|
2133
2114
|
Lt.Provider,
|
|
2134
2115
|
{
|
|
2135
2116
|
value: "columnGroupOrder" in n ? r ?? n.columnGroupOrder : r,
|
|
2136
2117
|
children: [
|
|
2137
2118
|
/* @__PURE__ */ a(Rr, {}),
|
|
2138
|
-
/* @__PURE__ */ a(Wt.Provider, { value: i, children: /* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ a(Wt.Provider, { value: i, children: /* @__PURE__ */ C(
|
|
2139
2120
|
Nt.Provider,
|
|
2140
2121
|
{
|
|
2141
2122
|
value: c,
|
|
2142
2123
|
children: [
|
|
2143
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ C("thead", { children: [
|
|
2144
2125
|
(r || "columnGroupOrder" in n) && /* @__PURE__ */ a(
|
|
2145
2126
|
wr,
|
|
2146
2127
|
{
|
|
@@ -2150,9 +2131,8 @@ const bt = G.createContext({}), Zs = ({
|
|
|
2150
2131
|
/* @__PURE__ */ a(
|
|
2151
2132
|
So,
|
|
2152
2133
|
{
|
|
2153
|
-
items:
|
|
2154
|
-
height: "var(--current-row-height)"
|
|
2155
|
-
appendTooltipTo: l
|
|
2134
|
+
items: l.items,
|
|
2135
|
+
height: "var(--current-row-height)"
|
|
2156
2136
|
}
|
|
2157
2137
|
)
|
|
2158
2138
|
] }),
|
|
@@ -2160,7 +2140,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
2160
2140
|
wo,
|
|
2161
2141
|
{
|
|
2162
2142
|
variant: s,
|
|
2163
|
-
...
|
|
2143
|
+
...l
|
|
2164
2144
|
}
|
|
2165
2145
|
)
|
|
2166
2146
|
]
|
|
@@ -2204,7 +2184,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
2204
2184
|
selectAllOnMount: !i,
|
|
2205
2185
|
onMove: l
|
|
2206
2186
|
}
|
|
2207
|
-
) : /* @__PURE__ */ a(
|
|
2187
|
+
) : /* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(X, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), ia = (e, t, n) => ({
|
|
2208
2188
|
label: r,
|
|
2209
2189
|
item: o,
|
|
2210
2190
|
gridCell: {
|
|
@@ -2230,7 +2210,7 @@ const bt = G.createContext({}), Zs = ({
|
|
|
2230
2210
|
selectAllOnMount: !d,
|
|
2231
2211
|
onMove: m
|
|
2232
2212
|
}
|
|
2233
|
-
) : /* @__PURE__ */ a(
|
|
2213
|
+
) : /* @__PURE__ */ a(N, { row: !0, alignItems: "center", children: /* @__PURE__ */ a(
|
|
2234
2214
|
Tn,
|
|
2235
2215
|
{
|
|
2236
2216
|
value: r,
|
|
@@ -2245,12 +2225,12 @@ function q(e) {
|
|
|
2245
2225
|
const t = Object.prototype.toString.call(e);
|
|
2246
2226
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
2247
2227
|
}
|
|
2248
|
-
function
|
|
2228
|
+
function U(e, t) {
|
|
2249
2229
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2250
2230
|
}
|
|
2251
|
-
function
|
|
2231
|
+
function D(e, t) {
|
|
2252
2232
|
const n = q(e);
|
|
2253
|
-
return isNaN(t) ?
|
|
2233
|
+
return isNaN(t) ? U(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
2254
2234
|
}
|
|
2255
2235
|
const jt = 6048e5, Oo = 864e5;
|
|
2256
2236
|
let Io = {};
|
|
@@ -2266,9 +2246,9 @@ function Se(e) {
|
|
|
2266
2246
|
return pe(e, { weekStartsOn: 1 });
|
|
2267
2247
|
}
|
|
2268
2248
|
function Vt(e) {
|
|
2269
|
-
const t = q(e), n = t.getFullYear(), r =
|
|
2249
|
+
const t = q(e), n = t.getFullYear(), r = U(e, 0);
|
|
2270
2250
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
2271
|
-
const o = Se(r), s =
|
|
2251
|
+
const o = Se(r), s = U(e, 0);
|
|
2272
2252
|
s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
|
|
2273
2253
|
const i = Se(s);
|
|
2274
2254
|
return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
|
|
@@ -2296,7 +2276,7 @@ function To(e, t) {
|
|
|
2296
2276
|
return Math.round((o - s) / Oo);
|
|
2297
2277
|
}
|
|
2298
2278
|
function Do(e) {
|
|
2299
|
-
const t = Vt(e), n =
|
|
2279
|
+
const t = Vt(e), n = U(e, 0);
|
|
2300
2280
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), Se(n);
|
|
2301
2281
|
}
|
|
2302
2282
|
function Eo(e) {
|
|
@@ -2309,7 +2289,7 @@ function Mo(e) {
|
|
|
2309
2289
|
return !isNaN(Number(t));
|
|
2310
2290
|
}
|
|
2311
2291
|
function Ro(e) {
|
|
2312
|
-
const t = q(e), n =
|
|
2292
|
+
const t = q(e), n = U(e, 0);
|
|
2313
2293
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
2314
2294
|
}
|
|
2315
2295
|
const Go = {
|
|
@@ -2436,11 +2416,11 @@ function he(e) {
|
|
|
2436
2416
|
return o[s];
|
|
2437
2417
|
};
|
|
2438
2418
|
}
|
|
2439
|
-
const
|
|
2419
|
+
const Yo = {
|
|
2440
2420
|
narrow: ["B", "A"],
|
|
2441
2421
|
abbreviated: ["BC", "AD"],
|
|
2442
2422
|
wide: ["Before Christ", "Anno Domini"]
|
|
2443
|
-
},
|
|
2423
|
+
}, zo = {
|
|
2444
2424
|
narrow: ["1", "2", "3", "4"],
|
|
2445
2425
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
2446
2426
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
@@ -2564,11 +2544,11 @@ const zo = {
|
|
|
2564
2544
|
}, Ko = {
|
|
2565
2545
|
ordinalNumber: $o,
|
|
2566
2546
|
era: he({
|
|
2567
|
-
values:
|
|
2547
|
+
values: Yo,
|
|
2568
2548
|
defaultWidth: "wide"
|
|
2569
2549
|
}),
|
|
2570
2550
|
quarter: he({
|
|
2571
|
-
values:
|
|
2551
|
+
values: zo,
|
|
2572
2552
|
defaultWidth: "wide",
|
|
2573
2553
|
argumentCallback: (e) => e - 1
|
|
2574
2554
|
}),
|
|
@@ -2755,40 +2735,40 @@ function ms(e) {
|
|
|
2755
2735
|
}
|
|
2756
2736
|
function $t(e, t) {
|
|
2757
2737
|
var u, m, p, f;
|
|
2758
|
-
const n = q(e), r = n.getFullYear(), o = Te(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((f = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i =
|
|
2738
|
+
const n = q(e), r = n.getFullYear(), o = Te(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((f = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = U(e, 0);
|
|
2759
2739
|
i.setFullYear(r + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
2760
|
-
const c = pe(i, t), l =
|
|
2740
|
+
const c = pe(i, t), l = U(e, 0);
|
|
2761
2741
|
l.setFullYear(r, 0, s), l.setHours(0, 0, 0, 0);
|
|
2762
2742
|
const d = pe(l, t);
|
|
2763
2743
|
return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
2764
2744
|
}
|
|
2765
2745
|
function fs(e, t) {
|
|
2766
2746
|
var c, l, d, u;
|
|
2767
|
-
const n = Te(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = $t(e, t), s =
|
|
2747
|
+
const n = Te(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = $t(e, t), s = U(e, 0);
|
|
2768
2748
|
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), pe(s, t);
|
|
2769
2749
|
}
|
|
2770
2750
|
function ps(e, t) {
|
|
2771
2751
|
const n = q(e), r = +pe(n, t) - +fs(n, t);
|
|
2772
2752
|
return Math.round(r / jt) + 1;
|
|
2773
2753
|
}
|
|
2774
|
-
function
|
|
2754
|
+
function x(e, t) {
|
|
2775
2755
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
2776
2756
|
return n + r;
|
|
2777
2757
|
}
|
|
2778
|
-
const
|
|
2758
|
+
const K = {
|
|
2779
2759
|
// Year
|
|
2780
2760
|
y(e, t) {
|
|
2781
2761
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
2782
|
-
return
|
|
2762
|
+
return x(t === "yy" ? r % 100 : r, t.length);
|
|
2783
2763
|
},
|
|
2784
2764
|
// Month
|
|
2785
2765
|
M(e, t) {
|
|
2786
2766
|
const n = e.getMonth();
|
|
2787
|
-
return t === "M" ? String(n + 1) :
|
|
2767
|
+
return t === "M" ? String(n + 1) : x(n + 1, 2);
|
|
2788
2768
|
},
|
|
2789
2769
|
// Day of the month
|
|
2790
2770
|
d(e, t) {
|
|
2791
|
-
return
|
|
2771
|
+
return x(e.getDate(), t.length);
|
|
2792
2772
|
},
|
|
2793
2773
|
// AM or PM
|
|
2794
2774
|
a(e, t) {
|
|
@@ -2808,26 +2788,26 @@ const Q = {
|
|
|
2808
2788
|
},
|
|
2809
2789
|
// Hour [1-12]
|
|
2810
2790
|
h(e, t) {
|
|
2811
|
-
return
|
|
2791
|
+
return x(e.getHours() % 12 || 12, t.length);
|
|
2812
2792
|
},
|
|
2813
2793
|
// Hour [0-23]
|
|
2814
2794
|
H(e, t) {
|
|
2815
|
-
return
|
|
2795
|
+
return x(e.getHours(), t.length);
|
|
2816
2796
|
},
|
|
2817
2797
|
// Minute
|
|
2818
2798
|
m(e, t) {
|
|
2819
|
-
return
|
|
2799
|
+
return x(e.getMinutes(), t.length);
|
|
2820
2800
|
},
|
|
2821
2801
|
// Second
|
|
2822
2802
|
s(e, t) {
|
|
2823
|
-
return
|
|
2803
|
+
return x(e.getSeconds(), t.length);
|
|
2824
2804
|
},
|
|
2825
2805
|
// Fraction of second
|
|
2826
2806
|
S(e, t) {
|
|
2827
2807
|
const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
|
|
2828
2808
|
r * Math.pow(10, n - 3)
|
|
2829
2809
|
);
|
|
2830
|
-
return
|
|
2810
|
+
return x(o, t.length);
|
|
2831
2811
|
}
|
|
2832
2812
|
}, ie = {
|
|
2833
2813
|
am: "am",
|
|
@@ -2860,21 +2840,21 @@ const Q = {
|
|
|
2860
2840
|
const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
2861
2841
|
return n.ordinalNumber(o, { unit: "year" });
|
|
2862
2842
|
}
|
|
2863
|
-
return
|
|
2843
|
+
return K.y(e, t);
|
|
2864
2844
|
},
|
|
2865
2845
|
// Local week-numbering year
|
|
2866
2846
|
Y: function(e, t, n, r) {
|
|
2867
2847
|
const o = $t(e, r), s = o > 0 ? o : 1 - o;
|
|
2868
2848
|
if (t === "YY") {
|
|
2869
2849
|
const i = s % 100;
|
|
2870
|
-
return
|
|
2850
|
+
return x(i, 2);
|
|
2871
2851
|
}
|
|
2872
|
-
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) :
|
|
2852
|
+
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : x(s, t.length);
|
|
2873
2853
|
},
|
|
2874
2854
|
// ISO week-numbering year
|
|
2875
2855
|
R: function(e, t) {
|
|
2876
2856
|
const n = Vt(e);
|
|
2877
|
-
return
|
|
2857
|
+
return x(n, t.length);
|
|
2878
2858
|
},
|
|
2879
2859
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
2880
2860
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -2887,7 +2867,7 @@ const Q = {
|
|
|
2887
2867
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
2888
2868
|
u: function(e, t) {
|
|
2889
2869
|
const n = e.getFullYear();
|
|
2890
|
-
return
|
|
2870
|
+
return x(n, t.length);
|
|
2891
2871
|
},
|
|
2892
2872
|
// Quarter
|
|
2893
2873
|
Q: function(e, t, n) {
|
|
@@ -2896,7 +2876,7 @@ const Q = {
|
|
|
2896
2876
|
case "Q":
|
|
2897
2877
|
return String(r);
|
|
2898
2878
|
case "QQ":
|
|
2899
|
-
return
|
|
2879
|
+
return x(r, 2);
|
|
2900
2880
|
case "Qo":
|
|
2901
2881
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
2902
2882
|
case "QQQ":
|
|
@@ -2924,7 +2904,7 @@ const Q = {
|
|
|
2924
2904
|
case "q":
|
|
2925
2905
|
return String(r);
|
|
2926
2906
|
case "qq":
|
|
2927
|
-
return
|
|
2907
|
+
return x(r, 2);
|
|
2928
2908
|
case "qo":
|
|
2929
2909
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
2930
2910
|
case "qqq":
|
|
@@ -2951,7 +2931,7 @@ const Q = {
|
|
|
2951
2931
|
switch (t) {
|
|
2952
2932
|
case "M":
|
|
2953
2933
|
case "MM":
|
|
2954
|
-
return
|
|
2934
|
+
return K.M(e, t);
|
|
2955
2935
|
case "Mo":
|
|
2956
2936
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
2957
2937
|
case "MMM":
|
|
@@ -2976,7 +2956,7 @@ const Q = {
|
|
|
2976
2956
|
case "L":
|
|
2977
2957
|
return String(r + 1);
|
|
2978
2958
|
case "LL":
|
|
2979
|
-
return
|
|
2959
|
+
return x(r + 1, 2);
|
|
2980
2960
|
case "Lo":
|
|
2981
2961
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
2982
2962
|
case "LLL":
|
|
@@ -2997,21 +2977,21 @@ const Q = {
|
|
|
2997
2977
|
// Local week of year
|
|
2998
2978
|
w: function(e, t, n, r) {
|
|
2999
2979
|
const o = ps(e, r);
|
|
3000
|
-
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) :
|
|
2980
|
+
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : x(o, t.length);
|
|
3001
2981
|
},
|
|
3002
2982
|
// ISO week of year
|
|
3003
2983
|
I: function(e, t, n) {
|
|
3004
2984
|
const r = ms(e);
|
|
3005
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
2985
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : x(r, t.length);
|
|
3006
2986
|
},
|
|
3007
2987
|
// Day of the month
|
|
3008
2988
|
d: function(e, t, n) {
|
|
3009
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
2989
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : K.d(e, t);
|
|
3010
2990
|
},
|
|
3011
2991
|
// Day of year
|
|
3012
2992
|
D: function(e, t, n) {
|
|
3013
2993
|
const r = hs(e);
|
|
3014
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
2994
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : x(r, t.length);
|
|
3015
2995
|
},
|
|
3016
2996
|
// Day of week
|
|
3017
2997
|
E: function(e, t, n) {
|
|
@@ -3049,7 +3029,7 @@ const Q = {
|
|
|
3049
3029
|
case "e":
|
|
3050
3030
|
return String(s);
|
|
3051
3031
|
case "ee":
|
|
3052
|
-
return
|
|
3032
|
+
return x(s, 2);
|
|
3053
3033
|
case "eo":
|
|
3054
3034
|
return n.ordinalNumber(s, { unit: "day" });
|
|
3055
3035
|
case "eee":
|
|
@@ -3082,7 +3062,7 @@ const Q = {
|
|
|
3082
3062
|
case "c":
|
|
3083
3063
|
return String(s);
|
|
3084
3064
|
case "cc":
|
|
3085
|
-
return
|
|
3065
|
+
return x(s, t.length);
|
|
3086
3066
|
case "co":
|
|
3087
3067
|
return n.ordinalNumber(s, { unit: "day" });
|
|
3088
3068
|
case "ccc":
|
|
@@ -3115,7 +3095,7 @@ const Q = {
|
|
|
3115
3095
|
case "i":
|
|
3116
3096
|
return String(o);
|
|
3117
3097
|
case "ii":
|
|
3118
|
-
return
|
|
3098
|
+
return x(o, t.length);
|
|
3119
3099
|
case "io":
|
|
3120
3100
|
return n.ordinalNumber(o, { unit: "day" });
|
|
3121
3101
|
case "iii":
|
|
@@ -3229,33 +3209,33 @@ const Q = {
|
|
|
3229
3209
|
let r = e.getHours() % 12;
|
|
3230
3210
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
3231
3211
|
}
|
|
3232
|
-
return
|
|
3212
|
+
return K.h(e, t);
|
|
3233
3213
|
},
|
|
3234
3214
|
// Hour [0-23]
|
|
3235
3215
|
H: function(e, t, n) {
|
|
3236
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
3216
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : K.H(e, t);
|
|
3237
3217
|
},
|
|
3238
3218
|
// Hour [0-11]
|
|
3239
3219
|
K: function(e, t, n) {
|
|
3240
3220
|
const r = e.getHours() % 12;
|
|
3241
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
3221
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : x(r, t.length);
|
|
3242
3222
|
},
|
|
3243
3223
|
// Hour [1-24]
|
|
3244
3224
|
k: function(e, t, n) {
|
|
3245
3225
|
let r = e.getHours();
|
|
3246
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
3226
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : x(r, t.length);
|
|
3247
3227
|
},
|
|
3248
3228
|
// Minute
|
|
3249
3229
|
m: function(e, t, n) {
|
|
3250
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
3230
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : K.m(e, t);
|
|
3251
3231
|
},
|
|
3252
3232
|
// Second
|
|
3253
3233
|
s: function(e, t, n) {
|
|
3254
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
3234
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : K.s(e, t);
|
|
3255
3235
|
},
|
|
3256
3236
|
// Fraction of second
|
|
3257
3237
|
S: function(e, t) {
|
|
3258
|
-
return
|
|
3238
|
+
return K.S(e, t);
|
|
3259
3239
|
},
|
|
3260
3240
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
3261
3241
|
X: function(e, t, n) {
|
|
@@ -3318,23 +3298,23 @@ const Q = {
|
|
|
3318
3298
|
// Seconds timestamp
|
|
3319
3299
|
t: function(e, t, n) {
|
|
3320
3300
|
const r = Math.trunc(e.getTime() / 1e3);
|
|
3321
|
-
return
|
|
3301
|
+
return x(r, t.length);
|
|
3322
3302
|
},
|
|
3323
3303
|
// Milliseconds timestamp
|
|
3324
3304
|
T: function(e, t, n) {
|
|
3325
3305
|
const r = e.getTime();
|
|
3326
|
-
return
|
|
3306
|
+
return x(r, t.length);
|
|
3327
3307
|
}
|
|
3328
3308
|
};
|
|
3329
3309
|
function ct(e, t = "") {
|
|
3330
3310
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
|
|
3331
|
-
return s === 0 ? n + String(o) : n + String(o) + t +
|
|
3311
|
+
return s === 0 ? n + String(o) : n + String(o) + t + x(s, 2);
|
|
3332
3312
|
}
|
|
3333
3313
|
function lt(e, t) {
|
|
3334
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
3314
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + x(Math.abs(e) / 60, 2) : re(e, t);
|
|
3335
3315
|
}
|
|
3336
3316
|
function re(e, t = "") {
|
|
3337
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), o =
|
|
3317
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = x(Math.trunc(r / 60), 2), s = x(r % 60, 2);
|
|
3338
3318
|
return n + o + t + s;
|
|
3339
3319
|
}
|
|
3340
3320
|
const ut = (e, t) => {
|
|
@@ -3454,7 +3434,7 @@ const Rs = () => [
|
|
|
3454
3434
|
name: "Postnord",
|
|
3455
3435
|
ship: "McBoat",
|
|
3456
3436
|
numPassengers: 1241,
|
|
3457
|
-
departure:
|
|
3437
|
+
departure: D(/* @__PURE__ */ new Date(), 1)
|
|
3458
3438
|
},
|
|
3459
3439
|
{
|
|
3460
3440
|
id: "124",
|
|
@@ -3462,7 +3442,7 @@ const Rs = () => [
|
|
|
3462
3442
|
name: "Schenker",
|
|
3463
3443
|
ship: "Boatface",
|
|
3464
3444
|
numPassengers: 31,
|
|
3465
|
-
departure:
|
|
3445
|
+
departure: D(/* @__PURE__ */ new Date(), 21)
|
|
3466
3446
|
},
|
|
3467
3447
|
{
|
|
3468
3448
|
id: "125",
|
|
@@ -3470,7 +3450,7 @@ const Rs = () => [
|
|
|
3470
3450
|
name: "Fedex",
|
|
3471
3451
|
ship: "RoboBoat",
|
|
3472
3452
|
numPassengers: 534,
|
|
3473
|
-
departure:
|
|
3453
|
+
departure: D(/* @__PURE__ */ new Date(), 14)
|
|
3474
3454
|
},
|
|
3475
3455
|
{
|
|
3476
3456
|
id: "126",
|
|
@@ -3478,7 +3458,7 @@ const Rs = () => [
|
|
|
3478
3458
|
name: "UPS",
|
|
3479
3459
|
ship: "Boatinator",
|
|
3480
3460
|
numPassengers: 213,
|
|
3481
|
-
departure:
|
|
3461
|
+
departure: D(/* @__PURE__ */ new Date(), 63)
|
|
3482
3462
|
},
|
|
3483
3463
|
{
|
|
3484
3464
|
id: "127",
|
|
@@ -3486,7 +3466,7 @@ const Rs = () => [
|
|
|
3486
3466
|
name: "DHL",
|
|
3487
3467
|
ship: "Airplane",
|
|
3488
3468
|
numPassengers: 821,
|
|
3489
|
-
departure:
|
|
3469
|
+
departure: D(/* @__PURE__ */ new Date(), 18)
|
|
3490
3470
|
},
|
|
3491
3471
|
{
|
|
3492
3472
|
id: "128",
|
|
@@ -3494,7 +3474,7 @@ const Rs = () => [
|
|
|
3494
3474
|
name: "Fedex",
|
|
3495
3475
|
ship: "RoboBoat",
|
|
3496
3476
|
numPassengers: 534,
|
|
3497
|
-
departure:
|
|
3477
|
+
departure: D(/* @__PURE__ */ new Date(), 14)
|
|
3498
3478
|
},
|
|
3499
3479
|
{
|
|
3500
3480
|
id: "129",
|
|
@@ -3502,7 +3482,7 @@ const Rs = () => [
|
|
|
3502
3482
|
name: "Postnord",
|
|
3503
3483
|
ship: "Boaty",
|
|
3504
3484
|
numPassengers: 548,
|
|
3505
|
-
departure:
|
|
3485
|
+
departure: D(/* @__PURE__ */ new Date(), 18)
|
|
3506
3486
|
},
|
|
3507
3487
|
{
|
|
3508
3488
|
id: "130",
|
|
@@ -3510,7 +3490,7 @@ const Rs = () => [
|
|
|
3510
3490
|
name: "Schenker",
|
|
3511
3491
|
ship: "Airplane",
|
|
3512
3492
|
numPassengers: 425,
|
|
3513
|
-
departure:
|
|
3493
|
+
departure: D(/* @__PURE__ */ new Date(), 19)
|
|
3514
3494
|
},
|
|
3515
3495
|
{
|
|
3516
3496
|
id: "131",
|
|
@@ -3518,7 +3498,7 @@ const Rs = () => [
|
|
|
3518
3498
|
name: "Fedex",
|
|
3519
3499
|
ship: "RoboBoat",
|
|
3520
3500
|
numPassengers: 625,
|
|
3521
|
-
departure:
|
|
3501
|
+
departure: D(/* @__PURE__ */ new Date(), 1)
|
|
3522
3502
|
},
|
|
3523
3503
|
{
|
|
3524
3504
|
id: "132",
|
|
@@ -3526,7 +3506,7 @@ const Rs = () => [
|
|
|
3526
3506
|
name: "UPS",
|
|
3527
3507
|
ship: "Boatinator",
|
|
3528
3508
|
numPassengers: 222,
|
|
3529
|
-
departure:
|
|
3509
|
+
departure: D(/* @__PURE__ */ new Date(), 5)
|
|
3530
3510
|
},
|
|
3531
3511
|
{
|
|
3532
3512
|
id: "133",
|
|
@@ -3534,7 +3514,7 @@ const Rs = () => [
|
|
|
3534
3514
|
name: "DHL",
|
|
3535
3515
|
ship: "McBoat",
|
|
3536
3516
|
numPassengers: 333,
|
|
3537
|
-
departure:
|
|
3517
|
+
departure: D(/* @__PURE__ */ new Date(), 8)
|
|
3538
3518
|
},
|
|
3539
3519
|
{
|
|
3540
3520
|
id: "134",
|
|
@@ -3542,7 +3522,7 @@ const Rs = () => [
|
|
|
3542
3522
|
name: "Fedex",
|
|
3543
3523
|
ship: "RoboBoat",
|
|
3544
3524
|
numPassengers: 99,
|
|
3545
|
-
departure:
|
|
3525
|
+
departure: D(/* @__PURE__ */ new Date(), 12)
|
|
3546
3526
|
},
|
|
3547
3527
|
{
|
|
3548
3528
|
id: "135",
|
|
@@ -3550,7 +3530,7 @@ const Rs = () => [
|
|
|
3550
3530
|
name: "Schenker",
|
|
3551
3531
|
ship: "MS Britannica",
|
|
3552
3532
|
numPassengers: 842,
|
|
3553
|
-
departure:
|
|
3533
|
+
departure: D(/* @__PURE__ */ new Date(), 20)
|
|
3554
3534
|
},
|
|
3555
3535
|
{
|
|
3556
3536
|
id: "136",
|
|
@@ -3558,7 +3538,7 @@ const Rs = () => [
|
|
|
3558
3538
|
name: "UPS",
|
|
3559
3539
|
ship: "Airplane",
|
|
3560
3540
|
numPassengers: 295,
|
|
3561
|
-
departure:
|
|
3541
|
+
departure: D(/* @__PURE__ */ new Date(), 25)
|
|
3562
3542
|
},
|
|
3563
3543
|
{
|
|
3564
3544
|
id: "137",
|
|
@@ -3566,7 +3546,7 @@ const Rs = () => [
|
|
|
3566
3546
|
name: "Postnord",
|
|
3567
3547
|
ship: "RoboBoat",
|
|
3568
3548
|
numPassengers: 555,
|
|
3569
|
-
departure:
|
|
3549
|
+
departure: D(/* @__PURE__ */ new Date(), 30)
|
|
3570
3550
|
},
|
|
3571
3551
|
{
|
|
3572
3552
|
id: "138",
|
|
@@ -3574,7 +3554,7 @@ const Rs = () => [
|
|
|
3574
3554
|
name: "Schenker",
|
|
3575
3555
|
ship: "Boaty",
|
|
3576
3556
|
numPassengers: 333,
|
|
3577
|
-
departure:
|
|
3557
|
+
departure: D(/* @__PURE__ */ new Date(), 4)
|
|
3578
3558
|
},
|
|
3579
3559
|
{
|
|
3580
3560
|
id: "139",
|
|
@@ -3582,7 +3562,7 @@ const Rs = () => [
|
|
|
3582
3562
|
name: "DHL",
|
|
3583
3563
|
ship: "McBoat",
|
|
3584
3564
|
numPassengers: 534,
|
|
3585
|
-
departure:
|
|
3565
|
+
departure: D(/* @__PURE__ */ new Date(), 27)
|
|
3586
3566
|
},
|
|
3587
3567
|
{
|
|
3588
3568
|
id: "140",
|
|
@@ -3590,7 +3570,7 @@ const Rs = () => [
|
|
|
3590
3570
|
name: "UPS",
|
|
3591
3571
|
ship: "Boatinator",
|
|
3592
3572
|
numPassengers: 515,
|
|
3593
|
-
departure:
|
|
3573
|
+
departure: D(/* @__PURE__ */ new Date(), 21)
|
|
3594
3574
|
},
|
|
3595
3575
|
{
|
|
3596
3576
|
id: "141",
|
|
@@ -3598,7 +3578,7 @@ const Rs = () => [
|
|
|
3598
3578
|
name: "Postnord",
|
|
3599
3579
|
ship: "MS Britannica",
|
|
3600
3580
|
numPassengers: 888,
|
|
3601
|
-
departure:
|
|
3581
|
+
departure: D(/* @__PURE__ */ new Date(), 7)
|
|
3602
3582
|
},
|
|
3603
3583
|
{
|
|
3604
3584
|
id: "142",
|
|
@@ -3606,7 +3586,7 @@ const Rs = () => [
|
|
|
3606
3586
|
name: "Fedex",
|
|
3607
3587
|
ship: "RoboBoat",
|
|
3608
3588
|
numPassengers: 785,
|
|
3609
|
-
departure:
|
|
3589
|
+
departure: D(/* @__PURE__ */ new Date(), 13)
|
|
3610
3590
|
},
|
|
3611
3591
|
{
|
|
3612
3592
|
id: "A really long id, or could be a very long title",
|
|
@@ -3614,7 +3594,7 @@ const Rs = () => [
|
|
|
3614
3594
|
name: "Schenker",
|
|
3615
3595
|
ship: "MS Britannica",
|
|
3616
3596
|
numPassengers: 655,
|
|
3617
|
-
departure:
|
|
3597
|
+
departure: D(/* @__PURE__ */ new Date(), 5)
|
|
3618
3598
|
}
|
|
3619
3599
|
], dt = (e, t, n) => e.map((r) => r.id === t ? { ...r, ...n } : r), ca = {
|
|
3620
3600
|
keyResolver: (e) => e.id,
|
|
@@ -3627,7 +3607,7 @@ const Rs = () => [
|
|
|
3627
3607
|
}),
|
|
3628
3608
|
active: ae((e) => e.active, {
|
|
3629
3609
|
disableGridCellFocus: !0,
|
|
3630
|
-
renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ a(
|
|
3610
|
+
renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(Be, { value: e.active, ...t }) }),
|
|
3631
3611
|
infoIconTooltipText: "Active means out on the sea."
|
|
3632
3612
|
}),
|
|
3633
3613
|
name: ae((e) => e.name, {
|
|
@@ -3703,7 +3683,7 @@ export {
|
|
|
3703
3683
|
It as StandardTableTableIdContext,
|
|
3704
3684
|
Dn as TableCell,
|
|
3705
3685
|
na as TableColumnGroupHead,
|
|
3706
|
-
|
|
3686
|
+
ze as TableHeadItem,
|
|
3707
3687
|
ra as TableHeadRow,
|
|
3708
3688
|
oa as TableRow,
|
|
3709
3689
|
Jr as TextCell,
|
|
@@ -3716,7 +3696,7 @@ export {
|
|
|
3716
3696
|
Tr as createStandardTableActions,
|
|
3717
3697
|
Mt as createStandardTableInitialState,
|
|
3718
3698
|
or as createStandardTableReducer,
|
|
3719
|
-
|
|
3699
|
+
Ye as defaultTableHeadRowHeight,
|
|
3720
3700
|
He as defaultTableRowHeight,
|
|
3721
3701
|
Ot as focusOnCell,
|
|
3722
3702
|
Vr as formatColumnIdToHeaderCellLabel,
|
|
@@ -3748,9 +3728,9 @@ export {
|
|
|
3748
3728
|
ua as useListState,
|
|
3749
3729
|
Dr as useLocalStateTableContext,
|
|
3750
3730
|
Bn as useRevertableValue,
|
|
3751
|
-
|
|
3731
|
+
Yr as useRowCheckbox,
|
|
3752
3732
|
ge as useStandardTableActions,
|
|
3753
|
-
|
|
3733
|
+
O as useStandardTableConfig,
|
|
3754
3734
|
qe as useStandardTableId,
|
|
3755
3735
|
oe as useStandardTableState,
|
|
3756
3736
|
go as useTableHeadCheckbox,
|