@stenajs-webui/grid 23.14.0 → 23.15.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/config/StandardTableColumnConfig.d.ts +5 -1
- package/dist/features/table-ui/components/table/TableHeadItem.d.ts +1 -0
- package/dist/index.es.js +431 -426
- 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,7 +1,7 @@
|
|
|
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_d7cgg_1{--swui-standard-table-height: 40px;--swui-field-height: calc(var(--current-row-height) - 4px);--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-column-z-index: 20;--swui-sticky-head-z-index: 22;--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_d7cgg_1 td{border-top:1px solid var(--lhds-color-ui-300);padding:0}._standardTable_d7cgg_1 th{padding:0}._standardTable_d7cgg_1._relaxed_d7cgg_39{--current-row-height: 48px}._standardTable_d7cgg_1._condensed_d7cgg_43{--current-row-height: 32px}._standardTable_d7cgg_1._compact_d7cgg_47{--current-row-height: 24px}._standardTableCell_1xzcm_1{outline:none}._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(d){console.error("vite-plugin-css-injected-by-js",d)}})();
|
|
2
|
-
import { jsx as s, Fragment as
|
|
3
|
-
import * as
|
|
4
|
-
import { useMemo as
|
|
2
|
+
import { jsx as s, Fragment as E, jsxs as v } from "react/jsx-runtime";
|
|
3
|
+
import * as R from "react";
|
|
4
|
+
import { useMemo as b, useRef as ue, useState as Pe, useCallback as P, useEffect as pt, useContext as V, createContext as B, useReducer as tn, useId as nn } from "react";
|
|
5
5
|
import { InputSpinner as Fe, Icon as X, stenaExclamationTriangle as Ie, stenaArrowRight as gt, stenaSortUpMini as rn, stenaSortDownMini as on, stenaInfoCircle as sn, FlatButton as Be, stenaDotsVertical as an, stenaAngleDown as wt, stenaAngleRight as yt, ResultListBanner as cn, Banner as Xe } from "@stenajs-webui/elements";
|
|
6
6
|
import { cssColor as j } from "@stenajs-webui/theme";
|
|
7
7
|
import { Tooltip as ye, Popover as ln } from "@stenajs-webui/tooltip";
|
|
@@ -14,14 +14,14 @@ import { combineReducers as yn } from "redux";
|
|
|
14
14
|
import { LoadingScreen as bn, ErrorScreen as vn } from "@stenajs-webui/panels";
|
|
15
15
|
import { compact as Cn, upperFirst as xn, lowerCase as kn } from "lodash-es";
|
|
16
16
|
import Sn from "@emotion/styled";
|
|
17
|
-
const xt =
|
|
17
|
+
const xt = R.createContext({}), Ys = ({
|
|
18
18
|
children: e,
|
|
19
19
|
numCols: t,
|
|
20
20
|
numRows: n,
|
|
21
21
|
tableId: r,
|
|
22
22
|
wrap: o
|
|
23
23
|
}) => {
|
|
24
|
-
const a =
|
|
24
|
+
const a = b(
|
|
25
25
|
() => ({ numCols: t, numRows: n, tableId: r, wrap: o }),
|
|
26
26
|
[t, n, r, o]
|
|
27
27
|
);
|
|
@@ -44,7 +44,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
44
44
|
size: 14
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
return /* @__PURE__ */ s(
|
|
47
|
+
return /* @__PURE__ */ s(E, { children: t ? /* @__PURE__ */ s(ye, { label: t, children: c }) : c });
|
|
48
48
|
}
|
|
49
49
|
return null;
|
|
50
50
|
}, Pn = ({
|
|
@@ -55,7 +55,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
55
55
|
crudStatus: o
|
|
56
56
|
}) => {
|
|
57
57
|
const a = t && r?.modified && r?.newValue === "", i = o && He(o), c = a || i;
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ v(E, { children: [
|
|
59
59
|
/* @__PURE__ */ s(
|
|
60
60
|
U,
|
|
61
61
|
{
|
|
@@ -64,7 +64,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
64
64
|
children: n
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
r?.newValue !== void 0 && /* @__PURE__ */
|
|
67
|
+
r?.newValue !== void 0 && /* @__PURE__ */ v(E, { children: [
|
|
68
68
|
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(X, { icon: gt, size: 12 }) }),
|
|
69
69
|
/* @__PURE__ */ s(U, { color: "var(--swui-primary-action-color)", variant: "bold", children: r.newValue })
|
|
70
70
|
] }),
|
|
@@ -108,7 +108,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
108
108
|
color: j("--lhds-color-ui-500"),
|
|
109
109
|
icon: e === "up" ? rn : on
|
|
110
110
|
}
|
|
111
|
-
) }), qe =
|
|
111
|
+
) }), qe = R.memo(
|
|
112
112
|
({
|
|
113
113
|
label: e,
|
|
114
114
|
arrow: t,
|
|
@@ -120,78 +120,81 @@ const xt = E.createContext({}), Ys = ({
|
|
|
120
120
|
infoIconTooltipAppendTo: c,
|
|
121
121
|
infoIconTooltipText: l,
|
|
122
122
|
infoIconTooltipZIndex: h,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
columnHeadContent: d,
|
|
124
|
+
overflow: u = "hidden",
|
|
125
|
+
alignRight: f,
|
|
125
126
|
...p
|
|
126
127
|
}) => {
|
|
127
|
-
const
|
|
128
|
-
return /* @__PURE__ */
|
|
128
|
+
const g = ue(null), m = n ? { cursor: "pointer", userSelect: "none" } : void 0, w = !e && !t && !l;
|
|
129
|
+
return /* @__PURE__ */ v(
|
|
129
130
|
I,
|
|
130
131
|
{
|
|
131
132
|
height: "100%",
|
|
132
133
|
alignItems: "center",
|
|
133
|
-
ref:
|
|
134
|
-
overflow:
|
|
135
|
-
justifyContent:
|
|
134
|
+
ref: g,
|
|
135
|
+
overflow: u,
|
|
136
|
+
justifyContent: f ? "flex-end" : "flex-start",
|
|
136
137
|
borderTop: "2px solid transparent",
|
|
137
138
|
borderBottom: `2px solid ${o ? j("--lhds-color-blue-500") : "transparent"}`,
|
|
138
139
|
...p,
|
|
139
140
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
!t &&
|
|
141
|
+
/* @__PURE__ */ v(I, { alignItems: "center", indent: !0, children: [
|
|
142
|
+
!t && f && /* @__PURE__ */ v(E, { children: [
|
|
142
143
|
/* @__PURE__ */ s(M, {}),
|
|
143
144
|
/* @__PURE__ */ s(he, { width: "14px" }),
|
|
144
145
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
145
146
|
] }),
|
|
146
|
-
(r || e) && /* @__PURE__ */
|
|
147
|
-
r && /* @__PURE__ */
|
|
147
|
+
(r || e) && /* @__PURE__ */ v(I, { onClick: n, style: m, alignItems: "center", children: [
|
|
148
|
+
r && /* @__PURE__ */ v(E, { children: [
|
|
148
149
|
r,
|
|
149
|
-
!
|
|
150
|
+
!w && /* @__PURE__ */ s(M, { num: 0.5 })
|
|
150
151
|
] }),
|
|
151
|
-
t &&
|
|
152
|
+
t && f && /* @__PURE__ */ v(E, { children: [
|
|
152
153
|
/* @__PURE__ */ s(M, {}),
|
|
153
154
|
/* @__PURE__ */ s(tt, { direction: t }),
|
|
154
155
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
155
156
|
] }),
|
|
156
157
|
e && /* @__PURE__ */ s(bt, { variant: "h6", style: { textAlign: "left" }, children: e }),
|
|
157
|
-
t && !
|
|
158
|
+
t && !f && /* @__PURE__ */ v(E, { children: [
|
|
158
159
|
/* @__PURE__ */ s(M, { num: 0.5 }),
|
|
159
160
|
/* @__PURE__ */ s(tt, { direction: t }),
|
|
160
161
|
/* @__PURE__ */ s(M, {})
|
|
161
162
|
] })
|
|
162
163
|
] }),
|
|
163
|
-
|
|
164
|
+
d && /* @__PURE__ */ v(E, { children: [
|
|
164
165
|
/* @__PURE__ */ s(M, {}),
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
166
|
+
/* @__PURE__ */ s(I, { children: d })
|
|
167
|
+
] }),
|
|
168
|
+
l && /* @__PURE__ */ v(E, { children: [
|
|
169
|
+
/* @__PURE__ */ s(M, {}),
|
|
170
|
+
/* @__PURE__ */ s(I, { onClick: (y) => y.stopPropagation(), children: /* @__PURE__ */ s(
|
|
171
|
+
ye,
|
|
172
|
+
{
|
|
173
|
+
appendTo: c,
|
|
174
|
+
label: l,
|
|
175
|
+
zIndex: h,
|
|
176
|
+
children: /* @__PURE__ */ s(
|
|
177
|
+
X,
|
|
178
|
+
{
|
|
179
|
+
icon: sn,
|
|
180
|
+
size: 14,
|
|
181
|
+
color: j("--lhds-color-blue-400")
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
) })
|
|
186
|
+
] }),
|
|
187
|
+
(d || l) && /* @__PURE__ */ s(M, {})
|
|
185
188
|
] }),
|
|
186
189
|
/* @__PURE__ */ s(I, { children: i ? /* @__PURE__ */ s(Fe, {}) : a ? /* @__PURE__ */ s(
|
|
187
190
|
ln,
|
|
188
191
|
{
|
|
189
|
-
renderTrigger: (
|
|
192
|
+
renderTrigger: (y) => /* @__PURE__ */ s(
|
|
190
193
|
Be,
|
|
191
194
|
{
|
|
192
195
|
leftIcon: an,
|
|
193
196
|
size: "small",
|
|
194
|
-
...
|
|
197
|
+
...y
|
|
195
198
|
}
|
|
196
199
|
),
|
|
197
200
|
trigger: "click",
|
|
@@ -199,7 +202,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
199
202
|
children: a
|
|
200
203
|
}
|
|
201
204
|
) : null }),
|
|
202
|
-
!t && !
|
|
205
|
+
!t && !f && /* @__PURE__ */ v(E, { children: [
|
|
203
206
|
/* @__PURE__ */ s(M, {}),
|
|
204
207
|
/* @__PURE__ */ s(he, { width: "14px" }),
|
|
205
208
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
@@ -221,7 +224,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
221
224
|
width: n,
|
|
222
225
|
indent: r = 1,
|
|
223
226
|
height: o = ze
|
|
224
|
-
}) => /* @__PURE__ */ s(qe, { width: n, flex: t, height: o, children: /* @__PURE__ */ s(he, { indent: r, spacing: !0, children: /* @__PURE__ */ s(U, { variant: "bold", children: e }) }) }), js =
|
|
227
|
+
}) => /* @__PURE__ */ s(qe, { width: n, flex: t, height: o, children: /* @__PURE__ */ s(he, { indent: r, spacing: !0, children: /* @__PURE__ */ s(U, { variant: "bold", children: e }) }) }), js = R.memo(
|
|
225
228
|
({ style: e, height: t = ze, ...n }) => /* @__PURE__ */ s(I, { style: e, height: t, ...n })
|
|
226
229
|
), Rn = "_tableRow_1cphw_1", Mn = {
|
|
227
230
|
tableRow: Rn
|
|
@@ -239,7 +242,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
239
242
|
...r
|
|
240
243
|
}
|
|
241
244
|
), Gn = (e) => {
|
|
242
|
-
const [t, n] = Pe(e), r = ue(e), o = ue(e), a =
|
|
245
|
+
const [t, n] = Pe(e), r = ue(e), o = ue(e), a = P(
|
|
243
246
|
(d) => {
|
|
244
247
|
n(d), o.current = d;
|
|
245
248
|
},
|
|
@@ -248,17 +251,17 @@ const xt = E.createContext({}), Ys = ({
|
|
|
248
251
|
pt(() => {
|
|
249
252
|
a(e);
|
|
250
253
|
}, [a, e]);
|
|
251
|
-
const i =
|
|
254
|
+
const i = P(() => {
|
|
252
255
|
r && a(r.current);
|
|
253
|
-
}, [a, r]), c =
|
|
256
|
+
}, [a, r]), c = P(
|
|
254
257
|
(d) => {
|
|
255
258
|
r.current = t, d && a(d);
|
|
256
259
|
},
|
|
257
260
|
[t, a]
|
|
258
|
-
), l =
|
|
261
|
+
), l = P(
|
|
259
262
|
(d) => r.current = d,
|
|
260
263
|
[r]
|
|
261
|
-
), h =
|
|
264
|
+
), h = P(() => o.current, [o]);
|
|
262
265
|
return {
|
|
263
266
|
value: t,
|
|
264
267
|
setValue: a,
|
|
@@ -289,22 +292,22 @@ const xt = E.createContext({}), Ys = ({
|
|
|
289
292
|
}) => {
|
|
290
293
|
const [c, l] = Pe(!1), [h, d] = Pe(
|
|
291
294
|
void 0
|
|
292
|
-
), u = Gn(e), { getValue:
|
|
293
|
-
(
|
|
294
|
-
t && (
|
|
295
|
+
), u = Gn(e), { getValue: f, revert: p, setValue: g, setRevertValue: m } = u, w = P(
|
|
296
|
+
(x) => {
|
|
297
|
+
t && (g(e), m(e), l(!0), o && o(x));
|
|
295
298
|
},
|
|
296
|
-
[t, o, m,
|
|
297
|
-
),
|
|
298
|
-
t && (l(!1), a && a(), r && r(
|
|
299
|
-
}, [t, r, a,
|
|
300
|
-
t && (l(!1), a && a(),
|
|
301
|
-
}, [t, a,
|
|
299
|
+
[t, o, m, g, e]
|
|
300
|
+
), y = P(() => {
|
|
301
|
+
t && (l(!1), a && a(), r && r(f()));
|
|
302
|
+
}, [t, r, a, f, l]), S = P(() => {
|
|
303
|
+
t && (l(!1), a && a(), p());
|
|
304
|
+
}, [t, a, p, l]);
|
|
302
305
|
return {
|
|
303
|
-
onKeyDown:
|
|
306
|
+
onKeyDown: b(
|
|
304
307
|
() => zn(
|
|
305
308
|
c,
|
|
306
309
|
t,
|
|
307
|
-
|
|
310
|
+
w,
|
|
308
311
|
d,
|
|
309
312
|
n,
|
|
310
313
|
i,
|
|
@@ -313,7 +316,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
313
316
|
[
|
|
314
317
|
c,
|
|
315
318
|
t,
|
|
316
|
-
|
|
319
|
+
w,
|
|
317
320
|
d,
|
|
318
321
|
n,
|
|
319
322
|
i,
|
|
@@ -323,10 +326,10 @@ const xt = E.createContext({}), Ys = ({
|
|
|
323
326
|
isEditing: c,
|
|
324
327
|
lastKeyEvent: h,
|
|
325
328
|
revertableValue: u,
|
|
326
|
-
startEditing:
|
|
327
|
-
stopEditing:
|
|
328
|
-
stopEditingAndRevert:
|
|
329
|
-
onDoubleClick:
|
|
329
|
+
startEditing: w,
|
|
330
|
+
stopEditing: y,
|
|
331
|
+
stopEditingAndRevert: S,
|
|
332
|
+
onDoubleClick: w
|
|
330
333
|
};
|
|
331
334
|
}, Ln = (e) => e === "all" || e === "numeric" || e === "alphanumeric", An = (e) => e === "all" || e === "alphanumeric" || e === "letters", Hn = (e) => !!e.match(/^[-+*<>]$/), Nn = (e) => !!e.match(/^[a-zA-Z0-9]$/), Yn = (e) => !isNaN(parseInt(e, 10)), zn = (e, t, n, r, o, a, i) => (c) => {
|
|
332
335
|
if (!(c.ctrlKey || c.metaKey || c.shiftKey)) {
|
|
@@ -380,7 +383,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
380
383
|
return e;
|
|
381
384
|
}, It = (e) => {
|
|
382
385
|
const t = V(xt);
|
|
383
|
-
return
|
|
386
|
+
return b(
|
|
384
387
|
() => Qn({
|
|
385
388
|
...t,
|
|
386
389
|
...e
|
|
@@ -397,7 +400,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
397
400
|
edgeMode: i,
|
|
398
401
|
onCellMove: c,
|
|
399
402
|
onCellNavigation: l
|
|
400
|
-
} = It(e), h =
|
|
403
|
+
} = It(e), h = b(
|
|
401
404
|
() => Un(
|
|
402
405
|
a,
|
|
403
406
|
t,
|
|
@@ -418,13 +421,13 @@ const xt = E.createContext({}), Ys = ({
|
|
|
418
421
|
c,
|
|
419
422
|
l
|
|
420
423
|
]
|
|
421
|
-
), d =
|
|
424
|
+
), d = b(
|
|
422
425
|
() => Jn(h),
|
|
423
426
|
[h]
|
|
424
|
-
), u =
|
|
427
|
+
), u = b(
|
|
425
428
|
() => Tt(a, t, n),
|
|
426
429
|
[a, t, n]
|
|
427
|
-
),
|
|
430
|
+
), f = b(
|
|
428
431
|
() => ({
|
|
429
432
|
tabIndex: 0,
|
|
430
433
|
onKeyDown: d,
|
|
@@ -435,7 +438,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
435
438
|
return {
|
|
436
439
|
focusOnCell: Dt,
|
|
437
440
|
moveHandler: h,
|
|
438
|
-
requiredProps:
|
|
441
|
+
requiredProps: f
|
|
439
442
|
};
|
|
440
443
|
}, Un = (e, t, n, r, o, a, i, c) => (l) => {
|
|
441
444
|
const h = Vn(
|
|
@@ -470,34 +473,34 @@ const xt = E.createContext({}), Ys = ({
|
|
|
470
473
|
);
|
|
471
474
|
n && n.focus();
|
|
472
475
|
}, Te = (e, t) => {
|
|
473
|
-
const { tableId: n } = It(t), r = Xn(t), o = Bn(e, t), a =
|
|
476
|
+
const { tableId: n } = It(t), r = Xn(t), o = Bn(e, t), a = b(
|
|
474
477
|
() => ({
|
|
475
478
|
rowIndex: t.rowIndex,
|
|
476
479
|
colIndex: t.colIndex
|
|
477
480
|
}),
|
|
478
481
|
[t.rowIndex, t.colIndex]
|
|
479
|
-
), i =
|
|
482
|
+
), i = P(() => {
|
|
480
483
|
o.startEditing(), r.focusOnCell(n, a);
|
|
481
|
-
}, [o, r, n, a]), c =
|
|
484
|
+
}, [o, r, n, a]), c = P(() => {
|
|
482
485
|
o.stopEditing(), r.focusOnCell(n, a);
|
|
483
|
-
}, [o, r, n, a]), l =
|
|
486
|
+
}, [o, r, n, a]), l = P(() => {
|
|
484
487
|
o.stopEditingAndRevert(), r.focusOnCell(n, a);
|
|
485
|
-
}, [o, r, n, a]), h =
|
|
486
|
-
(
|
|
487
|
-
o.stopEditing(), r.moveHandler(
|
|
488
|
+
}, [o, r, n, a]), h = P(
|
|
489
|
+
(p) => {
|
|
490
|
+
o.stopEditing(), r.moveHandler(p);
|
|
488
491
|
},
|
|
489
492
|
[o, r]
|
|
490
|
-
), d =
|
|
491
|
-
(
|
|
492
|
-
r.moveHandler(
|
|
493
|
+
), d = P(
|
|
494
|
+
(p) => {
|
|
495
|
+
r.moveHandler(p);
|
|
493
496
|
},
|
|
494
497
|
[r]
|
|
495
|
-
), u =
|
|
496
|
-
(
|
|
497
|
-
o.isEditing || r.requiredProps.onKeyDown(
|
|
498
|
+
), u = P(
|
|
499
|
+
(p) => {
|
|
500
|
+
o.isEditing || r.requiredProps.onKeyDown(p) || o.onKeyDown(p);
|
|
498
501
|
},
|
|
499
502
|
[o, r.requiredProps]
|
|
500
|
-
),
|
|
503
|
+
), f = b(
|
|
501
504
|
() => ({
|
|
502
505
|
...r.requiredProps,
|
|
503
506
|
onKeyDown: u,
|
|
@@ -511,7 +514,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
511
514
|
editorValue: o.revertableValue.value,
|
|
512
515
|
setEditorValue: o.revertableValue.setValue,
|
|
513
516
|
revertEditorValue: o.revertableValue.revert,
|
|
514
|
-
requiredProps:
|
|
517
|
+
requiredProps: f,
|
|
515
518
|
move: d,
|
|
516
519
|
startEditing: i,
|
|
517
520
|
stopEditing: c,
|
|
@@ -530,24 +533,24 @@ const xt = E.createContext({}), Ys = ({
|
|
|
530
533
|
rowIndex: h,
|
|
531
534
|
numCols: d,
|
|
532
535
|
numRows: u,
|
|
533
|
-
warningOnEmpty:
|
|
536
|
+
warningOnEmpty: f
|
|
534
537
|
}) {
|
|
535
|
-
const
|
|
538
|
+
const p = hn(), g = Ue(
|
|
536
539
|
c.selectors.getState
|
|
537
|
-
), m = Ue(i.selectors.getState),
|
|
540
|
+
), m = Ue(i.selectors.getState), w = g.entities[r], y = m.entities[r], S = P(
|
|
538
541
|
(H = "") => {
|
|
539
|
-
|
|
542
|
+
p(H === n ? c.actions.clearEntity(r) : c.actions.setEntity({
|
|
540
543
|
id: r,
|
|
541
544
|
originalValue: n,
|
|
542
545
|
newValue: H,
|
|
543
546
|
modified: !0
|
|
544
547
|
}));
|
|
545
548
|
},
|
|
546
|
-
[
|
|
549
|
+
[p, r, c.actions, n]
|
|
547
550
|
), {
|
|
548
|
-
isEditing:
|
|
549
|
-
stopEditing:
|
|
550
|
-
editorValue:
|
|
551
|
+
isEditing: O,
|
|
552
|
+
stopEditing: x,
|
|
553
|
+
editorValue: k,
|
|
551
554
|
setEditorValue: W,
|
|
552
555
|
stopEditingAndRevert: L,
|
|
553
556
|
stopEditingAndMove: A,
|
|
@@ -559,12 +562,12 @@ const xt = E.createContext({}), Ys = ({
|
|
|
559
562
|
numCols: d,
|
|
560
563
|
numRows: u,
|
|
561
564
|
tableId: "serviceManningMatrixTable",
|
|
562
|
-
onChange:
|
|
565
|
+
onChange: S,
|
|
563
566
|
isEditable: o,
|
|
564
567
|
allowedInputType: t
|
|
565
|
-
}), q =
|
|
568
|
+
}), q = P(
|
|
566
569
|
(H) => {
|
|
567
|
-
H.key === "Delete" ? (
|
|
570
|
+
H.key === "Delete" ? (p(c.actions.clearEntity(r)), p(
|
|
568
571
|
i.actions.setEntityFields(r, {
|
|
569
572
|
hasError: !1,
|
|
570
573
|
errorMessage: void 0
|
|
@@ -574,12 +577,12 @@ const xt = E.createContext({}), Ys = ({
|
|
|
574
577
|
[
|
|
575
578
|
z,
|
|
576
579
|
r,
|
|
577
|
-
|
|
580
|
+
p,
|
|
578
581
|
c.actions,
|
|
579
582
|
i.actions
|
|
580
583
|
]
|
|
581
584
|
);
|
|
582
|
-
return /* @__PURE__ */
|
|
585
|
+
return /* @__PURE__ */ v(
|
|
583
586
|
I,
|
|
584
587
|
{
|
|
585
588
|
height: Ye,
|
|
@@ -598,50 +601,50 @@ const xt = E.createContext({}), Ys = ({
|
|
|
598
601
|
alignItems: "center",
|
|
599
602
|
border: "1px solid transparent",
|
|
600
603
|
borderRadius: "4px",
|
|
601
|
-
focusBorder:
|
|
602
|
-
hoverBorder:
|
|
604
|
+
focusBorder: O ? void 0 : "1px solid var(--primary-action-color)",
|
|
605
|
+
hoverBorder: O ? void 0 : "var(--ui5) solid 1px;",
|
|
603
606
|
onKeyDown: q,
|
|
604
607
|
...$,
|
|
605
|
-
children: /* @__PURE__ */ s(G, { row: !0, alignItems: "center", children:
|
|
608
|
+
children: /* @__PURE__ */ s(G, { row: !0, alignItems: "center", children: O ? /* @__PURE__ */ s(
|
|
606
609
|
Le,
|
|
607
610
|
{
|
|
608
611
|
onValueChange: W,
|
|
609
|
-
value:
|
|
610
|
-
onDone:
|
|
612
|
+
value: k,
|
|
613
|
+
onDone: x,
|
|
611
614
|
onEsc: L,
|
|
612
615
|
autoFocus: !0,
|
|
613
616
|
selectAllOnMount: !Y,
|
|
614
617
|
onMove: A
|
|
615
618
|
}
|
|
616
|
-
) : /* @__PURE__ */
|
|
619
|
+
) : /* @__PURE__ */ v(E, { children: [
|
|
617
620
|
/* @__PURE__ */ s(
|
|
618
621
|
U,
|
|
619
622
|
{
|
|
620
623
|
color: o ? "var(--primary-action-color)" : void 0,
|
|
621
|
-
variant:
|
|
624
|
+
variant: w?.modified ? "bold" : void 0,
|
|
622
625
|
children: n
|
|
623
626
|
}
|
|
624
627
|
),
|
|
625
|
-
|
|
628
|
+
w?.newValue !== void 0 && /* @__PURE__ */ v(E, { children: [
|
|
626
629
|
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(X, { icon: gt, size: 12 }) }),
|
|
627
630
|
/* @__PURE__ */ s(
|
|
628
631
|
U,
|
|
629
632
|
{
|
|
630
633
|
color: "var(--primary-action-color)",
|
|
631
634
|
variant: "bold",
|
|
632
|
-
children:
|
|
635
|
+
children: w.newValue
|
|
633
636
|
}
|
|
634
637
|
)
|
|
635
638
|
] }),
|
|
636
|
-
|
|
637
|
-
|
|
639
|
+
y && He(y) && /* @__PURE__ */ s(M, { num: 2 }),
|
|
640
|
+
f && w?.modified && w?.newValue === "" ? /* @__PURE__ */ s(ye, { label: f, children: /* @__PURE__ */ s(
|
|
638
641
|
X,
|
|
639
642
|
{
|
|
640
643
|
icon: Ie,
|
|
641
644
|
color: "var(--ui-alert1)",
|
|
642
645
|
size: 14
|
|
643
646
|
}
|
|
644
|
-
) }) : /* @__PURE__ */ s(kt, { crudStatus:
|
|
647
|
+
) }) : /* @__PURE__ */ s(kt, { crudStatus: y })
|
|
645
648
|
] }) })
|
|
646
649
|
}
|
|
647
650
|
),
|
|
@@ -681,12 +684,12 @@ const xt = E.createContext({}), Ys = ({
|
|
|
681
684
|
expandedRows: o,
|
|
682
685
|
fields: a
|
|
683
686
|
});
|
|
684
|
-
}, _e = () => V(Et),
|
|
687
|
+
}, _e = () => V(Et), T = () => V(Gt), ae = () => V(Rt), be = () => V(Mt), Ft = B([]), J = () => V(
|
|
685
688
|
Ft
|
|
686
689
|
), Bt = () => {
|
|
687
|
-
const e =
|
|
690
|
+
const e = T(), t = J();
|
|
688
691
|
let n = 0;
|
|
689
|
-
return e.enableExpandCollapse && n++, e.showRowCheckbox && n++, n +
|
|
692
|
+
return e.enableExpandCollapse && n++, e.showRowCheckbox && n++, n + b(
|
|
690
693
|
() => t.map((r) => r.groupConfig.columnOrder.length).reduce((r, o) => r + o, 0),
|
|
691
694
|
[t]
|
|
692
695
|
);
|
|
@@ -717,15 +720,15 @@ const xt = E.createContext({}), Ys = ({
|
|
|
717
720
|
if (!(e === 0 || t !== 0) && n)
|
|
718
721
|
return n === !0 ? ge : n;
|
|
719
722
|
}, ve = (e) => {
|
|
720
|
-
const { columns: t } =
|
|
723
|
+
const { columns: t } = T(), n = t[e];
|
|
721
724
|
if (!n)
|
|
722
725
|
throw new Error("No config for column with id=" + e);
|
|
723
726
|
return n;
|
|
724
727
|
}, ar = () => {
|
|
725
|
-
const e =
|
|
728
|
+
const e = T(), t = J()?.[0]?.groupConfig.columnOrder?.[0];
|
|
726
729
|
return t ? e.columns[t] : void 0;
|
|
727
730
|
}, ir = () => {
|
|
728
|
-
const e =
|
|
731
|
+
const e = T(), t = J(), n = t[t.length - 1], r = n?.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1] ?? void 0;
|
|
729
732
|
return r ? e.columns[r] : void 0;
|
|
730
733
|
}, cr = function({
|
|
731
734
|
columnId: t,
|
|
@@ -735,7 +738,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
735
738
|
isFirstGroup: a,
|
|
736
739
|
isLastGroup: i
|
|
737
740
|
}) {
|
|
738
|
-
const { label: c, render: l, contentLeft: h, contentRight: d, loading: u, error:
|
|
741
|
+
const { label: c, render: l, contentLeft: h, contentRight: d, loading: u, error: f } = n, { width: p, minWidth: g, zIndex: m, borderLeft: w } = ve(t), y = T(), { stickyHeader: S, headerRowOffsetTop: O } = y, x = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, k = lr(r, w), W = a && (x === "first" || x === "both"), L = i && (x === "last" || x === "both"), A = W || L || S, Y = W || L;
|
|
739
742
|
return /* @__PURE__ */ s(
|
|
740
743
|
"th",
|
|
741
744
|
{
|
|
@@ -743,29 +746,29 @@ const xt = E.createContext({}), Ys = ({
|
|
|
743
746
|
style: {
|
|
744
747
|
position: A ? "sticky" : void 0,
|
|
745
748
|
height: "var(--current-row-height)",
|
|
746
|
-
width:
|
|
747
|
-
minWidth:
|
|
749
|
+
width: p,
|
|
750
|
+
minWidth: g ?? p ?? "20px",
|
|
748
751
|
background: A ? "white" : "transparent",
|
|
749
752
|
left: W ? "var(--current-left-offset)" : void 0,
|
|
750
753
|
right: L ? "0px" : void 0,
|
|
751
|
-
top:
|
|
752
|
-
borderLeft:
|
|
753
|
-
zIndex:
|
|
754
|
+
top: S ? O ?? "0px" : void 0,
|
|
755
|
+
borderLeft: k,
|
|
756
|
+
zIndex: S && Y ? "var(--swui-sticky-column-group-label-z-index)" : Y ? "var(--swui-sticky-group-group-z-index)" : S ? m ?? "var(--swui-sticky-header-column-group-z-index)" : m ?? 1,
|
|
754
757
|
boxShadow: W ? "var(--swui-sticky-column-shadow-right)" : L ? "var(--swui-sticky-column-shadow-left)" : void 0
|
|
755
758
|
},
|
|
756
|
-
children: /* @__PURE__ */ s(I, { alignItems: "center", children: /* @__PURE__ */
|
|
757
|
-
h && /* @__PURE__ */
|
|
759
|
+
children: /* @__PURE__ */ s(I, { alignItems: "center", children: /* @__PURE__ */ v(E, { children: [
|
|
760
|
+
h && /* @__PURE__ */ v(E, { children: [
|
|
758
761
|
/* @__PURE__ */ s(M, {}),
|
|
759
762
|
h,
|
|
760
763
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
761
764
|
] }),
|
|
762
765
|
l ? l(n) : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(bt, { variant: "h5", whiteSpace: "nowrap", children: c }) }),
|
|
763
|
-
d && /* @__PURE__ */
|
|
766
|
+
d && /* @__PURE__ */ v(E, { children: [
|
|
764
767
|
/* @__PURE__ */ s(M, { num: 0.5 }),
|
|
765
768
|
d
|
|
766
769
|
] }),
|
|
767
|
-
(
|
|
768
|
-
u ? /* @__PURE__ */ s(Fe, {}) :
|
|
770
|
+
(f || u) && /* @__PURE__ */ s(G, {}),
|
|
771
|
+
u ? /* @__PURE__ */ s(Fe, {}) : f ? /* @__PURE__ */ s(ye, { label: f, placement: "bottom", children: /* @__PURE__ */ s(
|
|
769
772
|
X,
|
|
770
773
|
{
|
|
771
774
|
icon: Ie,
|
|
@@ -794,10 +797,10 @@ const xt = E.createContext({}), Ys = ({
|
|
|
794
797
|
return t;
|
|
795
798
|
if (e)
|
|
796
799
|
return 0;
|
|
797
|
-
}, hr =
|
|
800
|
+
}, hr = R.memo(function({
|
|
798
801
|
height: t = Ye
|
|
799
802
|
}) {
|
|
800
|
-
const n = J(), r =
|
|
803
|
+
const n = J(), r = T(), {
|
|
801
804
|
showHeaderCheckbox: o,
|
|
802
805
|
enableExpandCollapse: a,
|
|
803
806
|
rowIndent: i,
|
|
@@ -810,8 +813,8 @@ const xt = E.createContext({}), Ys = ({
|
|
|
810
813
|
h,
|
|
811
814
|
d,
|
|
812
815
|
c
|
|
813
|
-
),
|
|
814
|
-
return /* @__PURE__ */
|
|
816
|
+
), f = l ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
|
|
817
|
+
return /* @__PURE__ */ v(
|
|
815
818
|
"tr",
|
|
816
819
|
{
|
|
817
820
|
style: {
|
|
@@ -827,7 +830,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
827
830
|
...u,
|
|
828
831
|
width: "var(--swui-expand-cell-width)",
|
|
829
832
|
left: h ? "0px" : void 0,
|
|
830
|
-
zIndex:
|
|
833
|
+
zIndex: f
|
|
831
834
|
}
|
|
832
835
|
}
|
|
833
836
|
),
|
|
@@ -837,25 +840,25 @@ const xt = E.createContext({}), Ys = ({
|
|
|
837
840
|
style: {
|
|
838
841
|
...u,
|
|
839
842
|
left: h && a ? "var(--swui-expand-cell-width)" : h ? "0px" : void 0,
|
|
840
|
-
zIndex:
|
|
843
|
+
zIndex: f
|
|
841
844
|
}
|
|
842
845
|
}
|
|
843
846
|
),
|
|
844
|
-
n.map(({ groupConfig:
|
|
847
|
+
n.map(({ groupConfig: p, groupId: g }, m) => /* @__PURE__ */ s(
|
|
845
848
|
cr,
|
|
846
849
|
{
|
|
847
850
|
isFirstGroup: m === 0,
|
|
848
851
|
isLastGroup: m === n.length - 1,
|
|
849
|
-
groupConfig:
|
|
850
|
-
columnId:
|
|
851
|
-
colSpan:
|
|
852
|
+
groupConfig: p,
|
|
853
|
+
columnId: p.columnOrder[0],
|
|
854
|
+
colSpan: p.columnOrder.length,
|
|
852
855
|
borderFromGroup: De(
|
|
853
856
|
m,
|
|
854
857
|
0,
|
|
855
|
-
|
|
858
|
+
p.borderLeft
|
|
856
859
|
)
|
|
857
860
|
},
|
|
858
|
-
|
|
861
|
+
g
|
|
859
862
|
)),
|
|
860
863
|
i && /* @__PURE__ */ s("th", { style: u }),
|
|
861
864
|
/* @__PURE__ */ s("th", { style: u })
|
|
@@ -961,14 +964,14 @@ const xt = E.createContext({}), Ys = ({
|
|
|
961
964
|
return n.forEach((i, c) => {
|
|
962
965
|
const h = e.columnGroups[i].columnOrder;
|
|
963
966
|
h.forEach((d, u) => {
|
|
964
|
-
const
|
|
967
|
+
const f = c === 0, p = c === n.length - 1, g = f && o, m = p && a, w = u === 0 && p, y = u === h.length - 1 && f;
|
|
965
968
|
t[d] = {
|
|
966
|
-
sticky:
|
|
967
|
-
left:
|
|
969
|
+
sticky: g || m,
|
|
970
|
+
left: g ? r[d] : void 0,
|
|
968
971
|
right: m ? r[d] : void 0,
|
|
969
|
-
type:
|
|
970
|
-
isFirstColumnInLastGroup:
|
|
971
|
-
isLastColumnInFirstGroup:
|
|
972
|
+
type: g ? "first-group" : m ? "last-group" : void 0,
|
|
973
|
+
isFirstColumnInLastGroup: w,
|
|
974
|
+
isLastColumnInFirstGroup: y
|
|
972
975
|
};
|
|
973
976
|
});
|
|
974
977
|
}), t;
|
|
@@ -1005,7 +1008,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1005
1008
|
const [n, r] = tn(
|
|
1006
1009
|
er(e),
|
|
1007
1010
|
t
|
|
1008
|
-
), o =
|
|
1011
|
+
), o = b(
|
|
1009
1012
|
() => Sr(
|
|
1010
1013
|
e,
|
|
1011
1014
|
Zn()
|
|
@@ -1013,7 +1016,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1013
1016
|
[e]
|
|
1014
1017
|
);
|
|
1015
1018
|
return {
|
|
1016
|
-
tableContext:
|
|
1019
|
+
tableContext: b(
|
|
1017
1020
|
() => ({
|
|
1018
1021
|
dispatch: r,
|
|
1019
1022
|
actions: o,
|
|
@@ -1026,15 +1029,15 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1026
1029
|
const r = e.columnGroups?.[n];
|
|
1027
1030
|
return t + (r?.columnOrder?.length ?? 0);
|
|
1028
1031
|
}, 0) : e.columnOrder?.length ?? 0, Tr = () => {
|
|
1029
|
-
const e =
|
|
1030
|
-
return /* @__PURE__ */
|
|
1032
|
+
const e = T(), t = J(), n = e.enableExpandCollapse || e.showRowCheckbox, r = dn(e.rowIndent);
|
|
1033
|
+
return /* @__PURE__ */ v(E, { children: [
|
|
1031
1034
|
r ? /* @__PURE__ */ s("colgroup", { children: /* @__PURE__ */ s(
|
|
1032
1035
|
"col",
|
|
1033
1036
|
{
|
|
1034
1037
|
style: { width: `calc(var(--swui-metrics-indent) * ${r})` }
|
|
1035
1038
|
}
|
|
1036
1039
|
) }) : null,
|
|
1037
|
-
n && /* @__PURE__ */
|
|
1040
|
+
n && /* @__PURE__ */ v("colgroup", { children: [
|
|
1038
1041
|
e.enableExpandCollapse && /* @__PURE__ */ s("col", { style: { width: "var(--swui-expand-cell-width)" } }),
|
|
1039
1042
|
e.showRowCheckbox && /* @__PURE__ */ s("col", { style: { width: "var(--swui-checkbox-cell-width)" } })
|
|
1040
1043
|
] }),
|
|
@@ -1061,13 +1064,13 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1061
1064
|
condensed: Rr,
|
|
1062
1065
|
compact: Mr
|
|
1063
1066
|
}, Gr = (e, t) => e != null && t == null ? -1 : e == null && t != null ? 1 : Ge(e, t, "number") ? Number(e) - Number(t) : Ge(e, t, "boolean") ? Number(t) - Number(e) : Ge(e, t, "string") ? String(e).localeCompare(String(t)) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : 0, Ge = (e, t, n) => typeof e === n && typeof t === n, Wr = (e) => {
|
|
1064
|
-
const { columns: t } =
|
|
1067
|
+
const { columns: t } = T();
|
|
1065
1068
|
if (!e)
|
|
1066
1069
|
return;
|
|
1067
1070
|
const n = t[e];
|
|
1068
1071
|
if (n)
|
|
1069
1072
|
return n.itemValueResolver;
|
|
1070
|
-
}, Fr =
|
|
1073
|
+
}, Fr = R.memo(
|
|
1071
1074
|
function({
|
|
1072
1075
|
value: t,
|
|
1073
1076
|
onValueChange: n,
|
|
@@ -1084,9 +1087,9 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1084
1087
|
numRows: a,
|
|
1085
1088
|
rowIndex: o,
|
|
1086
1089
|
tableId: d
|
|
1087
|
-
}), { requiredProps:
|
|
1088
|
-
(
|
|
1089
|
-
l.current ? c?.(
|
|
1090
|
+
}), { requiredProps: f } = u, p = P(
|
|
1091
|
+
(g) => {
|
|
1092
|
+
l.current ? c?.(g) : n?.(g);
|
|
1090
1093
|
},
|
|
1091
1094
|
[n, c, l]
|
|
1092
1095
|
);
|
|
@@ -1096,8 +1099,8 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1096
1099
|
size: "small",
|
|
1097
1100
|
disabled: i,
|
|
1098
1101
|
value: t,
|
|
1099
|
-
onValueChange:
|
|
1100
|
-
...
|
|
1102
|
+
onValueChange: p,
|
|
1103
|
+
...f
|
|
1101
1104
|
}
|
|
1102
1105
|
);
|
|
1103
1106
|
}
|
|
@@ -1110,26 +1113,26 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1110
1113
|
const a = Math.min(r, o), i = Math.max(r, o);
|
|
1111
1114
|
return e.slice(a, i + 1);
|
|
1112
1115
|
}, Lr = (e, t) => {
|
|
1113
|
-
const { keyResolver: n } =
|
|
1116
|
+
const { keyResolver: n } = T(), {
|
|
1114
1117
|
selectedIds: { selectedIds: r },
|
|
1115
1118
|
fields: { lastSelectedId: o }
|
|
1116
1119
|
} = ae(), {
|
|
1117
1120
|
actions: { setSelectedIds: a, setLastSelectedId: i },
|
|
1118
1121
|
dispatch: c
|
|
1119
|
-
} = be(), l =
|
|
1122
|
+
} = be(), l = b(() => n(e), [n, e]), h = b(
|
|
1120
1123
|
() => r.includes(l),
|
|
1121
1124
|
[r, l]
|
|
1122
|
-
), { toggle: d, addMultiple: u, removeMultiple:
|
|
1125
|
+
), { toggle: d, addMultiple: u, removeMultiple: f } = vt(
|
|
1123
1126
|
r,
|
|
1124
1127
|
(m) => c(a(m))
|
|
1125
|
-
),
|
|
1128
|
+
), p = P(() => {
|
|
1126
1129
|
if (t && o) {
|
|
1127
1130
|
const m = Br(
|
|
1128
1131
|
t,
|
|
1129
1132
|
o,
|
|
1130
1133
|
l
|
|
1131
1134
|
);
|
|
1132
|
-
m?.length ? h ?
|
|
1135
|
+
m?.length ? h ? f(m) : u(m) : d(l);
|
|
1133
1136
|
} else
|
|
1134
1137
|
d(l);
|
|
1135
1138
|
c(i(l));
|
|
@@ -1140,24 +1143,24 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1140
1143
|
i,
|
|
1141
1144
|
l,
|
|
1142
1145
|
h,
|
|
1143
|
-
|
|
1146
|
+
f,
|
|
1144
1147
|
u,
|
|
1145
1148
|
d
|
|
1146
|
-
]),
|
|
1149
|
+
]), g = P(() => {
|
|
1147
1150
|
d(l), c(i(l));
|
|
1148
1151
|
}, [d, l, c, i]);
|
|
1149
1152
|
return {
|
|
1150
1153
|
isSelected: h,
|
|
1151
|
-
toggleSelected:
|
|
1152
|
-
shiftAndToggleSelected:
|
|
1154
|
+
toggleSelected: g,
|
|
1155
|
+
shiftAndToggleSelected: p
|
|
1153
1156
|
};
|
|
1154
1157
|
}, $e = (e) => {
|
|
1155
|
-
const { keyResolver: t } =
|
|
1158
|
+
const { keyResolver: t } = T(), {
|
|
1156
1159
|
expandedRows: { selectedIds: n }
|
|
1157
1160
|
} = ae(), {
|
|
1158
1161
|
actions: { expandByIds: r },
|
|
1159
1162
|
dispatch: o
|
|
1160
|
-
} = be(), a =
|
|
1163
|
+
} = be(), a = b(() => t(e), [t, e]), i = b(
|
|
1161
1164
|
() => n.includes(a),
|
|
1162
1165
|
[n, a]
|
|
1163
1166
|
), { toggle: c } = vt(
|
|
@@ -1165,7 +1168,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1165
1168
|
(h) => o(r(h))
|
|
1166
1169
|
);
|
|
1167
1170
|
return {
|
|
1168
|
-
toggleRowExpanded:
|
|
1171
|
+
toggleRowExpanded: P(() => {
|
|
1169
1172
|
c(a);
|
|
1170
1173
|
}, [c, a]),
|
|
1171
1174
|
isExpanded: i
|
|
@@ -1182,7 +1185,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1182
1185
|
numRows: n,
|
|
1183
1186
|
rowIndex: r,
|
|
1184
1187
|
tableId: a
|
|
1185
|
-
}), { requiredProps: c } = i, { expandCollapseDisableResolver: l } =
|
|
1188
|
+
}), { requiredProps: c } = i, { expandCollapseDisableResolver: l } = T(), { toggleRowExpanded: h, isExpanded: d } = $e(e), u = b(() => l ? l(e) : !1, [l, e]);
|
|
1186
1189
|
return /* @__PURE__ */ s(I, { alignItems: "center", justifyContent: "center", indent: !0, children: !u && /* @__PURE__ */ s(
|
|
1187
1190
|
Be,
|
|
1188
1191
|
{
|
|
@@ -1192,7 +1195,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1192
1195
|
...c
|
|
1193
1196
|
}
|
|
1194
1197
|
) });
|
|
1195
|
-
}, Hr = (e, t, n) => e ? e(t) : n, _t = (e, t, n) =>
|
|
1198
|
+
}, Hr = (e, t, n) => e ? e(t) : n, _t = (e, t, n) => b(
|
|
1196
1199
|
() => Hr(e, t, n),
|
|
1197
1200
|
[e, t, n]
|
|
1198
1201
|
), Nr = (e, t) => {
|
|
@@ -1203,7 +1206,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1203
1206
|
return _t(r, t, n);
|
|
1204
1207
|
}, Yr = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), zr = (e) => xn(kn(e)), qr = "_standardTableCell_1xzcm_1", _r = {
|
|
1205
1208
|
standardTableCell: qr
|
|
1206
|
-
}, jr =
|
|
1209
|
+
}, jr = R.memo(
|
|
1207
1210
|
function({
|
|
1208
1211
|
enableGridCell: t,
|
|
1209
1212
|
children: n,
|
|
@@ -1243,7 +1246,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1243
1246
|
}
|
|
1244
1247
|
);
|
|
1245
1248
|
}
|
|
1246
|
-
), Vr =
|
|
1249
|
+
), Vr = R.memo(function({
|
|
1247
1250
|
label: t,
|
|
1248
1251
|
size: n,
|
|
1249
1252
|
color: r
|
|
@@ -1263,7 +1266,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1263
1266
|
}), Kr = ({
|
|
1264
1267
|
label: e,
|
|
1265
1268
|
textSize: t
|
|
1266
|
-
}) => /* @__PURE__ */ s(Vr, { label: e, size: t }), $r =
|
|
1269
|
+
}) => /* @__PURE__ */ s(Vr, { label: e, size: t }), $r = R.memo(function({
|
|
1267
1270
|
columnId: t,
|
|
1268
1271
|
item: n,
|
|
1269
1272
|
colIndex: r,
|
|
@@ -1276,14 +1279,14 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1276
1279
|
keyResolver: l,
|
|
1277
1280
|
enableGridCell: h,
|
|
1278
1281
|
gridCellOptions: d
|
|
1279
|
-
} =
|
|
1280
|
-
itemValueResolver:
|
|
1281
|
-
itemLabelFormatter:
|
|
1282
|
+
} = T(), u = ae().selectedIds.selectedIds, f = _e(), p = tr(), { numNavigableColumns: g } = qt(), m = je(), w = b(() => l(n), [n, l]), y = b(() => u.indexOf(w) >= 0, [w, u]), { defaultCellRenderer: S = Kr, defaultTextSize: O } = T(), {
|
|
1283
|
+
itemValueResolver: x,
|
|
1284
|
+
itemLabelFormatter: k,
|
|
1282
1285
|
width: W,
|
|
1283
1286
|
minWidth: L,
|
|
1284
1287
|
justifyContentCell: A = "flex-start",
|
|
1285
1288
|
borderLeft: Y,
|
|
1286
|
-
renderCell: z =
|
|
1289
|
+
renderCell: z = S,
|
|
1287
1290
|
gridCellOptions: $,
|
|
1288
1291
|
isEditable: q,
|
|
1289
1292
|
onChange: H,
|
|
@@ -1292,35 +1295,35 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1292
1295
|
disableGridCellFocus: ee,
|
|
1293
1296
|
zIndex: ie,
|
|
1294
1297
|
height: te
|
|
1295
|
-
} = ve(t), ne =
|
|
1296
|
-
() =>
|
|
1297
|
-
[ne,
|
|
1298
|
-
), re = typeof q == "boolean" ? q : q ? q(n) : void 0, Ce =
|
|
1298
|
+
} = ve(t), ne = b(() => x ? x(n) : t in n ? n[t] : "", [x, n, t]), ce = b(
|
|
1299
|
+
() => k ? k(ne, n) : Yr(ne),
|
|
1300
|
+
[ne, k, n]
|
|
1301
|
+
), re = typeof q == "boolean" ? q : q ? q(n) : void 0, Ce = P(
|
|
1299
1302
|
(ke) => {
|
|
1300
|
-
Z?.(ke, { columnId: t, item: n }),
|
|
1303
|
+
Z?.(ke, { columnId: t, item: n }), p?.(ke, { columnId: t, item: n });
|
|
1301
1304
|
},
|
|
1302
|
-
[
|
|
1305
|
+
[p, t, n, Z]
|
|
1303
1306
|
), xe = Te(ce, {
|
|
1304
1307
|
colIndex: r,
|
|
1305
1308
|
rowIndex: o,
|
|
1306
1309
|
numRows: a,
|
|
1307
|
-
numCols:
|
|
1308
|
-
tableId:
|
|
1310
|
+
numCols: g,
|
|
1311
|
+
tableId: f,
|
|
1309
1312
|
isEditable: re,
|
|
1310
1313
|
onChange: H ? (ke) => H(n, ke) : void 0,
|
|
1311
1314
|
...d,
|
|
1312
1315
|
...$
|
|
1313
|
-
}), F = m[t], Ut = Nr(t, n) ?? "inherit", Re = F.sticky ? ie ?? "var(--swui-sticky-column-z-index)" : ie ?? 1, Qe = te ?? "var(--current-row-height)", Jt =
|
|
1316
|
+
}), F = m[t], Ut = Nr(t, n) ?? "inherit", Re = F.sticky ? ie ?? "var(--swui-sticky-column-z-index)" : ie ?? 1, Qe = te ?? "var(--current-row-height)", Jt = b(
|
|
1314
1317
|
() => z({
|
|
1315
1318
|
label: ce,
|
|
1316
1319
|
value: ne,
|
|
1317
1320
|
item: n,
|
|
1318
1321
|
gridCell: xe,
|
|
1319
1322
|
isEditable: re,
|
|
1320
|
-
isSelected:
|
|
1323
|
+
isSelected: y,
|
|
1321
1324
|
zIndex: Re,
|
|
1322
|
-
textSize:
|
|
1323
|
-
itemKey:
|
|
1325
|
+
textSize: O,
|
|
1326
|
+
itemKey: w,
|
|
1324
1327
|
height: Qe
|
|
1325
1328
|
}),
|
|
1326
1329
|
[
|
|
@@ -1330,10 +1333,10 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1330
1333
|
n,
|
|
1331
1334
|
xe,
|
|
1332
1335
|
re,
|
|
1333
|
-
|
|
1336
|
+
y,
|
|
1334
1337
|
Re,
|
|
1335
|
-
|
|
1336
|
-
|
|
1338
|
+
w,
|
|
1339
|
+
O,
|
|
1337
1340
|
Qe
|
|
1338
1341
|
]
|
|
1339
1342
|
), Zt = Ke(
|
|
@@ -1370,8 +1373,8 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1370
1373
|
}
|
|
1371
1374
|
);
|
|
1372
1375
|
}), Qr = function({ item: t }) {
|
|
1373
|
-
const { renderRowExpansion: n, enableExpandCollapse: r } =
|
|
1374
|
-
return /* @__PURE__ */ s(
|
|
1376
|
+
const { renderRowExpansion: n, enableExpandCollapse: r } = T(), { isExpanded: o, toggleRowExpanded: a } = $e(t), i = Ve();
|
|
1377
|
+
return /* @__PURE__ */ s(E, { children: r && n && o && /* @__PURE__ */ s(
|
|
1375
1378
|
"tr",
|
|
1376
1379
|
{
|
|
1377
1380
|
style: {
|
|
@@ -1390,7 +1393,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1390
1393
|
background: ${e};
|
|
1391
1394
|
}
|
|
1392
1395
|
` : ""}
|
|
1393
|
-
`, Xr =
|
|
1396
|
+
`, Xr = R.memo(function({
|
|
1394
1397
|
item: t,
|
|
1395
1398
|
idListForEnabledItems: n,
|
|
1396
1399
|
rowIndex: r,
|
|
@@ -1399,35 +1402,35 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1399
1402
|
alwaysVisible: i,
|
|
1400
1403
|
shiftPressedRef: c
|
|
1401
1404
|
}) {
|
|
1402
|
-
const l = ue(null), h = Ve(), { stickyCheckboxColumn: d } =
|
|
1403
|
-
showRowCheckbox:
|
|
1404
|
-
rowBackgroundResolver:
|
|
1405
|
+
const l = ue(null), h = Ve(), { stickyCheckboxColumn: d } = T(), u = J(), { columnIndexPerColumnId: f } = qt(), {
|
|
1406
|
+
showRowCheckbox: p,
|
|
1407
|
+
rowBackgroundResolver: g,
|
|
1405
1408
|
checkboxDisabledResolver: m,
|
|
1406
|
-
enableGridCell:
|
|
1407
|
-
rowIndent:
|
|
1408
|
-
enableExpandCollapse:
|
|
1409
|
-
} =
|
|
1409
|
+
enableGridCell: w,
|
|
1410
|
+
rowIndent: y,
|
|
1411
|
+
enableExpandCollapse: S
|
|
1412
|
+
} = T(), { isExpanded: O } = $e(t), { isSelected: x, toggleSelected: k, shiftAndToggleSelected: W } = Lr(
|
|
1410
1413
|
t,
|
|
1411
1414
|
n
|
|
1412
1415
|
), L = un(l, {
|
|
1413
1416
|
rootMargin: "400px 0px 400px 0px",
|
|
1414
1417
|
threshold: 0
|
|
1415
|
-
}), A =
|
|
1416
|
-
() =>
|
|
1417
|
-
[
|
|
1418
|
+
}), A = b(
|
|
1419
|
+
() => g?.(t, x),
|
|
1420
|
+
[x, t, g]
|
|
1418
1421
|
), Y = Ur(
|
|
1419
1422
|
A,
|
|
1420
|
-
|
|
1421
|
-
|
|
1423
|
+
x,
|
|
1424
|
+
O
|
|
1422
1425
|
), z = Jr(
|
|
1423
1426
|
A,
|
|
1424
|
-
|
|
1425
|
-
|
|
1427
|
+
x,
|
|
1428
|
+
O
|
|
1426
1429
|
), $ = Zr(
|
|
1427
1430
|
A,
|
|
1428
|
-
|
|
1431
|
+
x,
|
|
1429
1432
|
z
|
|
1430
|
-
), q =
|
|
1433
|
+
), q = b(
|
|
1431
1434
|
() => m?.(t),
|
|
1432
1435
|
[t, m]
|
|
1433
1436
|
), H = ar(), Z = at(
|
|
@@ -1436,18 +1439,18 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1436
1439
|
), me = ir(), ee = at(
|
|
1437
1440
|
me,
|
|
1438
1441
|
t
|
|
1439
|
-
), ie =
|
|
1440
|
-
() => /* @__PURE__ */ s(
|
|
1441
|
-
|
|
1442
|
+
), ie = b(
|
|
1443
|
+
() => /* @__PURE__ */ s(E, { children: /* @__PURE__ */ v(E, { children: [
|
|
1444
|
+
y && /* @__PURE__ */ s(
|
|
1442
1445
|
"td",
|
|
1443
1446
|
{
|
|
1444
1447
|
style: {
|
|
1445
1448
|
background: Z
|
|
1446
1449
|
},
|
|
1447
|
-
children: /* @__PURE__ */ s(G, { num:
|
|
1450
|
+
children: /* @__PURE__ */ s(G, { num: y })
|
|
1448
1451
|
}
|
|
1449
1452
|
),
|
|
1450
|
-
|
|
1453
|
+
S && /* @__PURE__ */ s(
|
|
1451
1454
|
"td",
|
|
1452
1455
|
{
|
|
1453
1456
|
style: {
|
|
@@ -1468,8 +1471,8 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1468
1471
|
Ar,
|
|
1469
1472
|
{
|
|
1470
1473
|
colIndex: a,
|
|
1471
|
-
rowIndex:
|
|
1472
|
-
numRows:
|
|
1474
|
+
rowIndex: w ? r : 0,
|
|
1475
|
+
numRows: w ? o : 0,
|
|
1473
1476
|
item: t
|
|
1474
1477
|
}
|
|
1475
1478
|
)
|
|
@@ -1477,13 +1480,13 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1477
1480
|
)
|
|
1478
1481
|
}
|
|
1479
1482
|
),
|
|
1480
|
-
|
|
1483
|
+
p && /* @__PURE__ */ s(
|
|
1481
1484
|
"td",
|
|
1482
1485
|
{
|
|
1483
1486
|
style: {
|
|
1484
1487
|
background: d ? "inherit" : void 0,
|
|
1485
1488
|
position: d ? "sticky" : void 0,
|
|
1486
|
-
left:
|
|
1489
|
+
left: S && d ? "var(--swui-expand-cell-width)" : d ? "0px" : void 0,
|
|
1487
1490
|
textAlign: "center",
|
|
1488
1491
|
boxShadow: d ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1489
1492
|
zIndex: d ? "var(--swui-sticky-column-z-index)" : void 0
|
|
@@ -1499,10 +1502,10 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1499
1502
|
Fr,
|
|
1500
1503
|
{
|
|
1501
1504
|
disabled: q,
|
|
1502
|
-
value:
|
|
1503
|
-
onValueChange:
|
|
1505
|
+
value: x,
|
|
1506
|
+
onValueChange: k,
|
|
1504
1507
|
onValueChangeAndShift: W,
|
|
1505
|
-
colIndex: a + (
|
|
1508
|
+
colIndex: a + (S ? 1 : 0),
|
|
1506
1509
|
rowIndex: r,
|
|
1507
1510
|
numRows: o,
|
|
1508
1511
|
shiftPressedRef: c
|
|
@@ -1512,12 +1515,12 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1512
1515
|
)
|
|
1513
1516
|
}
|
|
1514
1517
|
),
|
|
1515
|
-
u.map(({ groupConfig: te, groupId: ne }, ce) => /* @__PURE__ */ s(
|
|
1518
|
+
u.map(({ groupConfig: te, groupId: ne }, ce) => /* @__PURE__ */ s(R.Fragment, { children: te.columnOrder.map((re, Ce) => /* @__PURE__ */ s(
|
|
1516
1519
|
$r,
|
|
1517
1520
|
{
|
|
1518
1521
|
columnId: re,
|
|
1519
1522
|
item: t,
|
|
1520
|
-
colIndex: a +
|
|
1523
|
+
colIndex: a + f[re],
|
|
1521
1524
|
rowIndex: r,
|
|
1522
1525
|
numRows: o,
|
|
1523
1526
|
borderFromGroup: De(
|
|
@@ -1529,48 +1532,48 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1529
1532
|
},
|
|
1530
1533
|
re
|
|
1531
1534
|
)) }, ne)),
|
|
1532
|
-
|
|
1535
|
+
y && /* @__PURE__ */ s(
|
|
1533
1536
|
"td",
|
|
1534
1537
|
{
|
|
1535
1538
|
style: {
|
|
1536
1539
|
background: ee
|
|
1537
1540
|
},
|
|
1538
|
-
children: /* @__PURE__ */ s(G, { num:
|
|
1541
|
+
children: /* @__PURE__ */ s(G, { num: y })
|
|
1539
1542
|
}
|
|
1540
1543
|
),
|
|
1541
1544
|
/* @__PURE__ */ s("td", {})
|
|
1542
1545
|
] }) }),
|
|
1543
1546
|
[
|
|
1544
1547
|
a,
|
|
1545
|
-
|
|
1548
|
+
f,
|
|
1546
1549
|
q,
|
|
1547
|
-
|
|
1548
|
-
|
|
1550
|
+
S,
|
|
1551
|
+
w,
|
|
1549
1552
|
Z,
|
|
1550
1553
|
u,
|
|
1551
|
-
|
|
1554
|
+
x,
|
|
1552
1555
|
t,
|
|
1553
1556
|
ee,
|
|
1554
1557
|
o,
|
|
1555
|
-
|
|
1558
|
+
y,
|
|
1556
1559
|
r,
|
|
1557
1560
|
W,
|
|
1558
1561
|
c,
|
|
1559
|
-
|
|
1562
|
+
p,
|
|
1560
1563
|
d,
|
|
1561
|
-
|
|
1564
|
+
k
|
|
1562
1565
|
]
|
|
1563
1566
|
);
|
|
1564
|
-
return /* @__PURE__ */
|
|
1567
|
+
return /* @__PURE__ */ v(E, { children: [
|
|
1565
1568
|
/* @__PURE__ */ s(
|
|
1566
1569
|
jt,
|
|
1567
1570
|
{
|
|
1568
1571
|
hoverBackground: z,
|
|
1569
1572
|
background: Y,
|
|
1570
1573
|
focusBackground: $,
|
|
1571
|
-
borderLeft:
|
|
1574
|
+
borderLeft: O ? Pt : Ne,
|
|
1572
1575
|
ref: l,
|
|
1573
|
-
children: L || i ||
|
|
1576
|
+
children: L || i || O ? ie : /* @__PURE__ */ s(
|
|
1574
1577
|
"td",
|
|
1575
1578
|
{
|
|
1576
1579
|
colSpan: h,
|
|
@@ -1588,7 +1591,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1588
1591
|
return n;
|
|
1589
1592
|
}, eo = (e) => Object.values(e).some((t) => to(t)), to = (e) => !!(e.renderSummaryCell || e.summaryText), no = "_summaryRow_12x8k_1", ro = {
|
|
1590
1593
|
summaryRow: no
|
|
1591
|
-
}, oo =
|
|
1594
|
+
}, oo = R.memo(function({
|
|
1592
1595
|
columnId: t,
|
|
1593
1596
|
items: n,
|
|
1594
1597
|
disableBorderLeft: r,
|
|
@@ -1601,39 +1604,39 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1601
1604
|
borderLeft: h,
|
|
1602
1605
|
zIndex: d,
|
|
1603
1606
|
width: u,
|
|
1604
|
-
minWidth:
|
|
1605
|
-
justifyContentCell:
|
|
1606
|
-
} = ve(t),
|
|
1607
|
+
minWidth: f,
|
|
1608
|
+
justifyContentCell: p
|
|
1609
|
+
} = ve(t), g = Ke(
|
|
1607
1610
|
o,
|
|
1608
1611
|
r,
|
|
1609
1612
|
h
|
|
1610
|
-
), m = i[t],
|
|
1611
|
-
() => c?.({ items: n, text:
|
|
1612
|
-
[n, c,
|
|
1613
|
+
), m = i[t], w = m.sticky ? d ?? "var(--swui-sticky-column-z-index)" : d ?? 1, y = m.sticky && m.type === "last-group" && m.isFirstColumnInLastGroup || m.sticky && m.type === "column" && m.right ? "var(--swui-sticky-column-shadow-left)" : m.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, S = b(() => l?.({ items: n }), [n, l]), O = b(
|
|
1614
|
+
() => c?.({ items: n, text: S }),
|
|
1615
|
+
[n, c, S]
|
|
1613
1616
|
);
|
|
1614
1617
|
return /* @__PURE__ */ s(
|
|
1615
1618
|
"td",
|
|
1616
1619
|
{
|
|
1617
1620
|
colSpan: a,
|
|
1618
1621
|
style: {
|
|
1619
|
-
borderLeft:
|
|
1622
|
+
borderLeft: g,
|
|
1620
1623
|
position: m.sticky ? "sticky" : void 0,
|
|
1621
1624
|
left: m.sticky ? m.left : void 0,
|
|
1622
1625
|
right: m.sticky ? m.right : void 0,
|
|
1623
|
-
boxShadow:
|
|
1624
|
-
zIndex:
|
|
1626
|
+
boxShadow: y,
|
|
1627
|
+
zIndex: w,
|
|
1625
1628
|
height: "var(--current-row-height)"
|
|
1626
1629
|
},
|
|
1627
1630
|
children: /* @__PURE__ */ s(
|
|
1628
1631
|
I,
|
|
1629
1632
|
{
|
|
1630
1633
|
width: u,
|
|
1631
|
-
minWidth:
|
|
1634
|
+
minWidth: f,
|
|
1632
1635
|
height: "inherit",
|
|
1633
1636
|
overflow: "hidden",
|
|
1634
|
-
justifyContent:
|
|
1637
|
+
justifyContent: p,
|
|
1635
1638
|
alignItems: "center",
|
|
1636
|
-
children: c ?
|
|
1639
|
+
children: c ? O : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(U, { variant: "bold", children: S }) })
|
|
1637
1640
|
}
|
|
1638
1641
|
)
|
|
1639
1642
|
}
|
|
@@ -1650,17 +1653,17 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1650
1653
|
i > 1 && (r += i - 1);
|
|
1651
1654
|
}
|
|
1652
1655
|
return n;
|
|
1653
|
-
}, ao =
|
|
1656
|
+
}, ao = R.memo(
|
|
1654
1657
|
function({
|
|
1655
1658
|
items: t
|
|
1656
1659
|
}) {
|
|
1657
|
-
const n = J(), { showRowCheckbox: r, enableExpandCollapse: o, columns: a, rowIndent: i } =
|
|
1658
|
-
return /* @__PURE__ */
|
|
1660
|
+
const n = J(), { showRowCheckbox: r, enableExpandCollapse: o, columns: a, rowIndent: i } = T();
|
|
1661
|
+
return /* @__PURE__ */ v("tr", { className: ro.summaryRow, children: [
|
|
1659
1662
|
i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(G, { num: i }) }),
|
|
1660
1663
|
o && /* @__PURE__ */ s("td", {}),
|
|
1661
1664
|
r && /* @__PURE__ */ s("td", {}),
|
|
1662
|
-
n.map(({ groupConfig: c, groupId: l }, h) => /* @__PURE__ */ s(
|
|
1663
|
-
({ columnId: d, colSpan: u },
|
|
1665
|
+
n.map(({ groupConfig: c, groupId: l }, h) => /* @__PURE__ */ s(R.Fragment, { children: so(c.columnOrder, a).map(
|
|
1666
|
+
({ columnId: d, colSpan: u }, f) => /* @__PURE__ */ s(
|
|
1664
1667
|
oo,
|
|
1665
1668
|
{
|
|
1666
1669
|
colSpan: u,
|
|
@@ -1668,10 +1671,10 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1668
1671
|
items: t,
|
|
1669
1672
|
borderFromGroup: De(
|
|
1670
1673
|
h,
|
|
1671
|
-
|
|
1674
|
+
f,
|
|
1672
1675
|
c.borderLeft
|
|
1673
1676
|
),
|
|
1674
|
-
disableBorderLeft: h === 0 &&
|
|
1677
|
+
disableBorderLeft: h === 0 && f === 0
|
|
1675
1678
|
},
|
|
1676
1679
|
d
|
|
1677
1680
|
)
|
|
@@ -1681,9 +1684,9 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1681
1684
|
] });
|
|
1682
1685
|
}
|
|
1683
1686
|
), io = function({ items: t }) {
|
|
1684
|
-
const { columns: n } =
|
|
1685
|
-
return
|
|
1686
|
-
}, Vt = (e) => (t) => e == null ? !0 : !e(t), co =
|
|
1687
|
+
const { columns: n } = T();
|
|
1688
|
+
return b(() => eo(n), [n]) ? /* @__PURE__ */ s(ao, { items: t }) : null;
|
|
1689
|
+
}, Vt = (e) => (t) => e == null ? !0 : !e(t), co = R.memo(function({
|
|
1687
1690
|
items: t,
|
|
1688
1691
|
colIndexOffset: n = 0,
|
|
1689
1692
|
rowIndexOffset: r = 0
|
|
@@ -1693,52 +1696,52 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1693
1696
|
disableInfiniteList: c,
|
|
1694
1697
|
checkboxDisabledResolver: l,
|
|
1695
1698
|
enableExternalSorting: h
|
|
1696
|
-
} =
|
|
1699
|
+
} = T(), {
|
|
1697
1700
|
sortOrder: { sortBy: d, desc: u }
|
|
1698
|
-
} = ae(),
|
|
1701
|
+
} = ae(), f = Wr(d), p = b(() => {
|
|
1699
1702
|
if (h)
|
|
1700
1703
|
return t ?? [];
|
|
1701
1704
|
if (!t || !t.length)
|
|
1702
1705
|
return [];
|
|
1703
|
-
if (!
|
|
1706
|
+
if (!f)
|
|
1704
1707
|
return t;
|
|
1705
1708
|
const m = [...t];
|
|
1706
1709
|
return m.sort(
|
|
1707
|
-
(
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
+
(w, y) => Gr(
|
|
1711
|
+
f(w),
|
|
1712
|
+
f(y)
|
|
1710
1713
|
)
|
|
1711
1714
|
), u && m.reverse(), c || o.current++, m;
|
|
1712
|
-
}, [h, t,
|
|
1713
|
-
() =>
|
|
1714
|
-
[
|
|
1715
|
+
}, [h, t, f, u, c]), g = b(
|
|
1716
|
+
() => p.filter(Vt(l)).map((m) => i(m)),
|
|
1717
|
+
[p, l, i]
|
|
1715
1718
|
);
|
|
1716
1719
|
return pt(() => {
|
|
1717
|
-
const m = (
|
|
1718
|
-
|
|
1719
|
-
},
|
|
1720
|
-
|
|
1720
|
+
const m = (y) => {
|
|
1721
|
+
y.key === "Shift" && (a.current = !1);
|
|
1722
|
+
}, w = (y) => {
|
|
1723
|
+
y.key === "Shift" && (a.current = !0);
|
|
1721
1724
|
};
|
|
1722
|
-
return document.addEventListener("keyup", m), document.addEventListener("keydown",
|
|
1723
|
-
document.removeEventListener("keyup", m), document.removeEventListener("keydown",
|
|
1725
|
+
return document.addEventListener("keyup", m), document.addEventListener("keydown", w), () => {
|
|
1726
|
+
document.removeEventListener("keyup", m), document.removeEventListener("keydown", w);
|
|
1724
1727
|
};
|
|
1725
|
-
}, []), /* @__PURE__ */
|
|
1726
|
-
|
|
1728
|
+
}, []), /* @__PURE__ */ v(R.Fragment, { children: [
|
|
1729
|
+
p.map((m, w) => /* @__PURE__ */ s(
|
|
1727
1730
|
Xr,
|
|
1728
1731
|
{
|
|
1729
|
-
alwaysVisible: c ||
|
|
1732
|
+
alwaysVisible: c || p.length < 30,
|
|
1730
1733
|
item: m,
|
|
1731
|
-
idListForEnabledItems:
|
|
1734
|
+
idListForEnabledItems: g,
|
|
1732
1735
|
colIndexOffset: n,
|
|
1733
|
-
rowIndex:
|
|
1734
|
-
numRows:
|
|
1736
|
+
rowIndex: w + r,
|
|
1737
|
+
numRows: p.length,
|
|
1735
1738
|
shiftPressedRef: a
|
|
1736
1739
|
},
|
|
1737
1740
|
i(m)
|
|
1738
1741
|
)),
|
|
1739
|
-
/* @__PURE__ */ s(io, { items:
|
|
1742
|
+
/* @__PURE__ */ s(io, { items: p })
|
|
1740
1743
|
] }, o.current);
|
|
1741
|
-
}), lo =
|
|
1744
|
+
}), lo = R.memo(function({
|
|
1742
1745
|
error: t,
|
|
1743
1746
|
bannerError: n,
|
|
1744
1747
|
loading: r,
|
|
@@ -1750,15 +1753,15 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1750
1753
|
colIndexOffset: h,
|
|
1751
1754
|
rowIndexOffset: d,
|
|
1752
1755
|
variant: u,
|
|
1753
|
-
errorLabel:
|
|
1754
|
-
renderExtraRowTop:
|
|
1755
|
-
renderExtraRowBottom:
|
|
1756
|
+
errorLabel: f,
|
|
1757
|
+
renderExtraRowTop: p,
|
|
1758
|
+
renderExtraRowBottom: g
|
|
1756
1759
|
}) {
|
|
1757
1760
|
const m = Ve();
|
|
1758
|
-
return n ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ s(he, { alignItems: "center", children: /* @__PURE__ */ s(cn, { bannerState: n, variant: "error" }) }) }) }) }) }) : t ||
|
|
1761
|
+
return n ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ s(he, { alignItems: "center", children: /* @__PURE__ */ s(cn, { bannerState: n, variant: "error" }) }) }) }) }) }) : t || f ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ s(he, { alignItems: "center", children: /* @__PURE__ */ s(
|
|
1759
1762
|
Xe,
|
|
1760
1763
|
{
|
|
1761
|
-
headerText: (t ? t.message :
|
|
1764
|
+
headerText: (t ? t.message : f) ?? "Unknown error",
|
|
1762
1765
|
variant: "error"
|
|
1763
1766
|
}
|
|
1764
1767
|
) }) }) }) }) }) : r ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, children: /* @__PURE__ */ s(bn, {}) }) }) }) }) : !o || !o.length ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(I, { spacing: 4, justifyContent: "center", children: /* @__PURE__ */ s(
|
|
@@ -1770,8 +1773,8 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1770
1773
|
variant: "info",
|
|
1771
1774
|
children: c
|
|
1772
1775
|
}
|
|
1773
|
-
) }) }) }) }) : /* @__PURE__ */
|
|
1774
|
-
|
|
1776
|
+
) }) }) }) }) : /* @__PURE__ */ v("tbody", { children: [
|
|
1777
|
+
p?.(),
|
|
1775
1778
|
/* @__PURE__ */ s(
|
|
1776
1779
|
co,
|
|
1777
1780
|
{
|
|
@@ -1781,15 +1784,15 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1781
1784
|
rowIndexOffset: d
|
|
1782
1785
|
}
|
|
1783
1786
|
),
|
|
1784
|
-
|
|
1787
|
+
g?.()
|
|
1785
1788
|
] });
|
|
1786
1789
|
}), uo = (e) => {
|
|
1787
|
-
const { keyResolver: t, checkboxDisabledResolver: n } =
|
|
1790
|
+
const { keyResolver: t, checkboxDisabledResolver: n } = T(), {
|
|
1788
1791
|
selectedIds: { selectedIds: r }
|
|
1789
1792
|
} = ae(), {
|
|
1790
1793
|
actions: { setSelectedIds: o, clearSelection: a },
|
|
1791
1794
|
dispatch: i
|
|
1792
|
-
} = be(), c = r.length === 0, l = e ? e.length > 0 && r.length === e.length : !1, h =
|
|
1795
|
+
} = be(), c = r.length === 0, l = e ? e.length > 0 && r.length === e.length : !1, h = P(() => {
|
|
1793
1796
|
e && i(
|
|
1794
1797
|
c ? o(
|
|
1795
1798
|
e.filter(Vt(n)).map((d) => t(d))
|
|
@@ -1810,12 +1813,12 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1810
1813
|
onClickCheckbox: h
|
|
1811
1814
|
};
|
|
1812
1815
|
}, ho = (e) => {
|
|
1813
|
-
const { keyResolver: t } =
|
|
1816
|
+
const { keyResolver: t } = T(), {
|
|
1814
1817
|
expandedRows: { selectedIds: n }
|
|
1815
1818
|
} = ae(), {
|
|
1816
1819
|
actions: { collapseAll: r, expandByIds: o },
|
|
1817
1820
|
dispatch: a
|
|
1818
|
-
} = be(), i = e ? e.length > 0 && n.length === e.length : !1, c =
|
|
1821
|
+
} = be(), i = e ? e.length > 0 && n.length === e.length : !1, c = P(() => {
|
|
1819
1822
|
e && a(i ? r() : o(e.map((l) => t(l))));
|
|
1820
1823
|
}, [
|
|
1821
1824
|
i,
|
|
@@ -1833,7 +1836,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1833
1836
|
const { dispatch: t, actions: n } = be(), r = nr(), {
|
|
1834
1837
|
sortOrder: { desc: o, sortBy: a }
|
|
1835
1838
|
} = ae();
|
|
1836
|
-
return
|
|
1839
|
+
return b(() => {
|
|
1837
1840
|
const i = e === a;
|
|
1838
1841
|
return {
|
|
1839
1842
|
arrow: i ? o ? "up" : "down" : void 0,
|
|
@@ -1847,7 +1850,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1847
1850
|
}, [e, a, o, t, n, r]);
|
|
1848
1851
|
}, fo = "_standardTableHeadTh_swsxb_8", po = {
|
|
1849
1852
|
standardTableHeadTh: fo
|
|
1850
|
-
}, go =
|
|
1853
|
+
}, go = R.memo(
|
|
1851
1854
|
function({
|
|
1852
1855
|
columnId: t,
|
|
1853
1856
|
borderFromGroup: n,
|
|
@@ -1858,49 +1861,51 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1858
1861
|
columnLabel: a,
|
|
1859
1862
|
borderLeft: i,
|
|
1860
1863
|
infoIconTooltipText: c,
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1864
|
+
columnHeadContent: l,
|
|
1865
|
+
background: h,
|
|
1866
|
+
width: d,
|
|
1867
|
+
minWidth: u
|
|
1868
|
+
} = ve(t), { disableSorting: f, infoIconTooltipAppendTo: p, infoIconTooltipZIndex: g } = T(), m = je(), { arrow: w, selected: y, onClickColumnHead: S } = mo(t), O = typeof a == "string" ? a : zr(t), x = Ke(
|
|
1865
1869
|
n,
|
|
1866
1870
|
r,
|
|
1867
1871
|
i
|
|
1868
|
-
),
|
|
1872
|
+
), k = m[t];
|
|
1869
1873
|
return /* @__PURE__ */ s(
|
|
1870
1874
|
"th",
|
|
1871
1875
|
{
|
|
1872
1876
|
className: po.standardTableHeadTh,
|
|
1873
1877
|
style: {
|
|
1874
|
-
background:
|
|
1875
|
-
borderLeft:
|
|
1876
|
-
position:
|
|
1877
|
-
left:
|
|
1878
|
-
right:
|
|
1879
|
-
boxShadow:
|
|
1880
|
-
zIndex:
|
|
1881
|
-
width:
|
|
1882
|
-
minWidth:
|
|
1878
|
+
background: h ?? "white",
|
|
1879
|
+
borderLeft: x,
|
|
1880
|
+
position: k.sticky ? "sticky" : void 0,
|
|
1881
|
+
left: k.left,
|
|
1882
|
+
right: k.right,
|
|
1883
|
+
boxShadow: k.sticky && k.isFirstColumnInLastGroup && k.sticky && k.isFirstColumnInLastGroup ? "var(--swui-sticky-column-shadow-left)" : k.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1884
|
+
zIndex: k.sticky ? "var(--swui-sticky-group-header-z-index)" : void 0,
|
|
1885
|
+
width: d,
|
|
1886
|
+
minWidth: u
|
|
1883
1887
|
},
|
|
1884
1888
|
children: /* @__PURE__ */ s(
|
|
1885
1889
|
qe,
|
|
1886
1890
|
{
|
|
1887
1891
|
width: "inherit",
|
|
1888
1892
|
minWidth: "inherit",
|
|
1889
|
-
arrow: !
|
|
1890
|
-
onClick:
|
|
1891
|
-
label:
|
|
1893
|
+
arrow: !f && O ? w : void 0,
|
|
1894
|
+
onClick: f ? void 0 : S,
|
|
1895
|
+
label: O,
|
|
1892
1896
|
infoIconTooltipAppendTo: p,
|
|
1893
1897
|
infoIconTooltipText: c,
|
|
1894
|
-
infoIconTooltipZIndex:
|
|
1898
|
+
infoIconTooltipZIndex: g,
|
|
1899
|
+
columnHeadContent: l,
|
|
1895
1900
|
alignRight: o === "flex-end",
|
|
1896
|
-
selected:
|
|
1901
|
+
selected: y,
|
|
1897
1902
|
height: "100%"
|
|
1898
1903
|
}
|
|
1899
1904
|
)
|
|
1900
1905
|
}
|
|
1901
1906
|
);
|
|
1902
1907
|
}
|
|
1903
|
-
), wo =
|
|
1908
|
+
), wo = R.memo(function({ items: t, height: n = Ye }) {
|
|
1904
1909
|
const r = J(), {
|
|
1905
1910
|
showHeaderCheckbox: o,
|
|
1906
1911
|
showHeaderExpandCollapse: a,
|
|
@@ -1908,19 +1913,19 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1908
1913
|
rowIndent: c,
|
|
1909
1914
|
stickyCheckboxColumn: l,
|
|
1910
1915
|
showRowCheckbox: h
|
|
1911
|
-
} =
|
|
1916
|
+
} = T(), { allItemsAreExpanded: d, toggleExpanded: u } = ho(t), { allItemsAreSelected: f, onClickCheckbox: p, selectionIsEmpty: g } = uo(t), m = !t || t.length === 0, w = {
|
|
1912
1917
|
zIndex: l ? "var(--swui-sticky-group-header-z-index)" : void 0,
|
|
1913
1918
|
background: l ? "white" : void 0,
|
|
1914
1919
|
position: l ? "sticky" : void 0,
|
|
1915
1920
|
boxShadow: l ? "var(--swui-sticky-column-shadow-right)" : void 0
|
|
1916
1921
|
};
|
|
1917
|
-
return /* @__PURE__ */
|
|
1922
|
+
return /* @__PURE__ */ v(jt, { height: n, borderLeft: Ne, children: [
|
|
1918
1923
|
c && /* @__PURE__ */ s("th", { children: /* @__PURE__ */ s(I, { indent: c }) }),
|
|
1919
1924
|
i && /* @__PURE__ */ s(
|
|
1920
1925
|
"th",
|
|
1921
1926
|
{
|
|
1922
1927
|
style: {
|
|
1923
|
-
...
|
|
1928
|
+
...w,
|
|
1924
1929
|
left: "0px",
|
|
1925
1930
|
textAlign: "left"
|
|
1926
1931
|
},
|
|
@@ -1947,7 +1952,7 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1947
1952
|
"th",
|
|
1948
1953
|
{
|
|
1949
1954
|
style: {
|
|
1950
|
-
...
|
|
1955
|
+
...w,
|
|
1951
1956
|
overflow: "hidden",
|
|
1952
1957
|
left: l && i ? "var(--swui-expand-cell-width)" : l ? "0px" : void 0
|
|
1953
1958
|
},
|
|
@@ -1963,28 +1968,28 @@ const xt = E.createContext({}), Ys = ({
|
|
|
1963
1968
|
{
|
|
1964
1969
|
size: "small",
|
|
1965
1970
|
disabled: m,
|
|
1966
|
-
value:
|
|
1967
|
-
indeterminate: !
|
|
1968
|
-
onValueChange:
|
|
1971
|
+
value: f,
|
|
1972
|
+
indeterminate: !g && !f,
|
|
1973
|
+
onValueChange: p
|
|
1969
1974
|
}
|
|
1970
1975
|
)
|
|
1971
1976
|
}
|
|
1972
1977
|
)
|
|
1973
1978
|
}
|
|
1974
1979
|
),
|
|
1975
|
-
r.map(({ groupConfig:
|
|
1980
|
+
r.map(({ groupConfig: y, groupId: S }, O) => /* @__PURE__ */ s(R.Fragment, { children: y.columnOrder.map((x, k) => /* @__PURE__ */ s(
|
|
1976
1981
|
go,
|
|
1977
1982
|
{
|
|
1978
|
-
columnId:
|
|
1983
|
+
columnId: x,
|
|
1979
1984
|
borderFromGroup: De(
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1985
|
+
O,
|
|
1986
|
+
k,
|
|
1987
|
+
y.borderLeft
|
|
1983
1988
|
),
|
|
1984
|
-
disableBorderLeft:
|
|
1989
|
+
disableBorderLeft: O === 0 && k === 0
|
|
1985
1990
|
},
|
|
1986
|
-
|
|
1987
|
-
)) },
|
|
1991
|
+
x
|
|
1992
|
+
)) }, S)),
|
|
1988
1993
|
c && /* @__PURE__ */ s("th", { children: /* @__PURE__ */ s(I, { indent: c }) }),
|
|
1989
1994
|
/* @__PURE__ */ s("th", {})
|
|
1990
1995
|
] });
|
|
@@ -2001,35 +2006,35 @@ const xt = E.createContext({}), Ys = ({
|
|
|
2001
2006
|
}) {
|
|
2002
2007
|
const d = nn(), {
|
|
2003
2008
|
initialSortOrderDesc: u,
|
|
2004
|
-
initialSortOrder:
|
|
2005
|
-
enableExpandCollapse:
|
|
2006
|
-
stickyCheckboxColumn:
|
|
2009
|
+
initialSortOrder: f,
|
|
2010
|
+
enableExpandCollapse: p,
|
|
2011
|
+
stickyCheckboxColumn: g,
|
|
2007
2012
|
headerRowOffsetTop: m,
|
|
2008
|
-
stickyHeader:
|
|
2009
|
-
zIndex:
|
|
2010
|
-
} = n, { tableContext:
|
|
2013
|
+
stickyHeader: w,
|
|
2014
|
+
zIndex: y
|
|
2015
|
+
} = n, { tableContext: S } = Pr(
|
|
2011
2016
|
o ?? d,
|
|
2012
|
-
Wt(
|
|
2013
|
-
),
|
|
2017
|
+
Wt(f, u)
|
|
2018
|
+
), O = t || S, { state: x, actions: k, dispatch: W } = O, L = b(
|
|
2014
2019
|
() => ({
|
|
2015
|
-
actions:
|
|
2020
|
+
actions: k,
|
|
2016
2021
|
dispatch: W
|
|
2017
2022
|
}),
|
|
2018
|
-
[
|
|
2019
|
-
), A = !!(r ?? "columnGroupOrder" in n), Y = "columnGroups" in n ? n.columnGroups : void 0, z = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, $ = "columnOrder" in n ? n.columnOrder : void 0, q =
|
|
2023
|
+
[k, W]
|
|
2024
|
+
), A = !!(r ?? "columnGroupOrder" in n), Y = "columnGroups" in n ? n.columnGroups : void 0, z = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, $ = "columnOrder" in n ? n.columnOrder : void 0, q = b(
|
|
2020
2025
|
() => Yt(
|
|
2021
2026
|
Y,
|
|
2022
2027
|
z,
|
|
2023
2028
|
$
|
|
2024
2029
|
),
|
|
2025
2030
|
[Y, z, $]
|
|
2026
|
-
), H =
|
|
2031
|
+
), H = b(
|
|
2027
2032
|
() => mr(n),
|
|
2028
2033
|
[n]
|
|
2029
|
-
), Z =
|
|
2034
|
+
), Z = b(() => Or(n), [n]), me = b(
|
|
2030
2035
|
() => Cr(n),
|
|
2031
2036
|
[n]
|
|
2032
|
-
), ee =
|
|
2037
|
+
), ee = b(() => {
|
|
2033
2038
|
try {
|
|
2034
2039
|
pr(n);
|
|
2035
2040
|
return;
|
|
@@ -2037,11 +2042,11 @@ const xt = E.createContext({}), Ys = ({
|
|
|
2037
2042
|
return te instanceof Error ? te : new Error("Unknown error");
|
|
2038
2043
|
}
|
|
2039
2044
|
}, [n]), ie = {
|
|
2040
|
-
background:
|
|
2041
|
-
position:
|
|
2042
|
-
top:
|
|
2043
|
-
boxShadow:
|
|
2044
|
-
zIndex:
|
|
2045
|
+
background: w || g ? "white" : void 0,
|
|
2046
|
+
position: w || g ? "sticky" : void 0,
|
|
2047
|
+
top: w || g ? m ?? 0 : void 0,
|
|
2048
|
+
boxShadow: w && g ? "var(--swui-sticky-header-shadow-and-right)" : g ? "var(--swui-sticky-column-shadow-right)" : w ? "var(--swui-sticky-header-shadow)" : void 0,
|
|
2049
|
+
zIndex: w && g ? "var(--swui-sticky-header-in-sticky-column-z-index)" : g ? "var(--swui-sticky-group-header-z-index)" : w ? "var(--swui-sticky-head-z-index)" : y
|
|
2045
2050
|
};
|
|
2046
2051
|
return ee ? /* @__PURE__ */ s(vn, { text: ee.message }) : /* @__PURE__ */ s(
|
|
2047
2052
|
"table",
|
|
@@ -2050,13 +2055,13 @@ const xt = E.createContext({}), Ys = ({
|
|
|
2050
2055
|
style: {
|
|
2051
2056
|
width: "100%",
|
|
2052
2057
|
isolation: "isolate",
|
|
2053
|
-
"--current-left-offset":
|
|
2058
|
+
"--current-left-offset": p && g ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : g ? "var(--swui-checkbox-cell-width)" : p ? "var(--swui-expand-cell-width)" : "0px"
|
|
2054
2059
|
},
|
|
2055
2060
|
children: /* @__PURE__ */ s(Ht.Provider, { value: me, children: /* @__PURE__ */ s(Nt.Provider, { value: Z, children: /* @__PURE__ */ s(sr.Provider, { value: a, children: /* @__PURE__ */ s(
|
|
2056
2061
|
Et.Provider,
|
|
2057
2062
|
{
|
|
2058
2063
|
value: o ?? d,
|
|
2059
|
-
children: /* @__PURE__ */ s(Rt.Provider, { value:
|
|
2064
|
+
children: /* @__PURE__ */ s(Rt.Provider, { value: x, children: /* @__PURE__ */ s(Mt.Provider, { value: L, children: /* @__PURE__ */ s(Gt.Provider, { value: n, children: /* @__PURE__ */ s(
|
|
2060
2065
|
Ft.Provider,
|
|
2061
2066
|
{
|
|
2062
2067
|
value: q,
|
|
@@ -2068,18 +2073,18 @@ const xt = E.createContext({}), Ys = ({
|
|
|
2068
2073
|
or.Provider,
|
|
2069
2074
|
{
|
|
2070
2075
|
value: A,
|
|
2071
|
-
children: /* @__PURE__ */
|
|
2076
|
+
children: /* @__PURE__ */ v(
|
|
2072
2077
|
rr.Provider,
|
|
2073
2078
|
{
|
|
2074
2079
|
value: "columnGroupOrder" in n ? r ?? n.columnGroupOrder : r,
|
|
2075
2080
|
children: [
|
|
2076
2081
|
/* @__PURE__ */ s(Tr, {}),
|
|
2077
|
-
/* @__PURE__ */ s(Lt.Provider, { value: i, children: /* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ s(Lt.Provider, { value: i, children: /* @__PURE__ */ v(
|
|
2078
2083
|
At.Provider,
|
|
2079
2084
|
{
|
|
2080
2085
|
value: c,
|
|
2081
2086
|
children: [
|
|
2082
|
-
/* @__PURE__ */
|
|
2087
|
+
/* @__PURE__ */ v("thead", { style: ie, children: [
|
|
2083
2088
|
(r || "columnGroupOrder" in n) && /* @__PURE__ */ s(
|
|
2084
2089
|
hr,
|
|
2085
2090
|
{
|
|
@@ -2155,10 +2160,10 @@ const xt = E.createContext({}), Ys = ({
|
|
|
2155
2160
|
stopEditing: d,
|
|
2156
2161
|
stopEditingAndMove: u
|
|
2157
2162
|
},
|
|
2158
|
-
isEditable:
|
|
2163
|
+
isEditable: f
|
|
2159
2164
|
}) => {
|
|
2160
|
-
const
|
|
2161
|
-
return
|
|
2165
|
+
const p = typeof e == "function" ? e(o) : e, g = t ? t(o) : void 0, m = n ? n(o) : void 0;
|
|
2166
|
+
return f && i ? /* @__PURE__ */ s(
|
|
2162
2167
|
Le,
|
|
2163
2168
|
{
|
|
2164
2169
|
onValueChange: c,
|
|
@@ -2174,9 +2179,9 @@ const xt = E.createContext({}), Ys = ({
|
|
|
2174
2179
|
{
|
|
2175
2180
|
value: r,
|
|
2176
2181
|
modifiedField: m,
|
|
2177
|
-
crudStatus:
|
|
2178
|
-
isEditable:
|
|
2179
|
-
warningOnEmpty:
|
|
2182
|
+
crudStatus: g,
|
|
2183
|
+
isEditable: f,
|
|
2184
|
+
warningOnEmpty: p
|
|
2180
2185
|
}
|
|
2181
2186
|
) });
|
|
2182
2187
|
}, Kt = 6048e5, bo = 864e5, it = Symbol.for("constructDateFrom");
|
|
@@ -2186,7 +2191,7 @@ function K(e, t) {
|
|
|
2186
2191
|
function N(e, t) {
|
|
2187
2192
|
return K(t || e, e);
|
|
2188
2193
|
}
|
|
2189
|
-
function
|
|
2194
|
+
function D(e, t, n) {
|
|
2190
2195
|
const r = N(e, n?.in);
|
|
2191
2196
|
return isNaN(t) ? K(e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
2192
2197
|
}
|
|
@@ -2711,7 +2716,7 @@ function ls(e, t) {
|
|
|
2711
2716
|
const n = N(e, t?.in), r = +we(n, t) - +cs(n, t);
|
|
2712
2717
|
return Math.round(r / Kt) + 1;
|
|
2713
2718
|
}
|
|
2714
|
-
function
|
|
2719
|
+
function C(e, t) {
|
|
2715
2720
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
2716
2721
|
return n + r;
|
|
2717
2722
|
}
|
|
@@ -2719,16 +2724,16 @@ const Q = {
|
|
|
2719
2724
|
// Year
|
|
2720
2725
|
y(e, t) {
|
|
2721
2726
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
2722
|
-
return
|
|
2727
|
+
return C(t === "yy" ? r % 100 : r, t.length);
|
|
2723
2728
|
},
|
|
2724
2729
|
// Month
|
|
2725
2730
|
M(e, t) {
|
|
2726
2731
|
const n = e.getMonth();
|
|
2727
|
-
return t === "M" ? String(n + 1) :
|
|
2732
|
+
return t === "M" ? String(n + 1) : C(n + 1, 2);
|
|
2728
2733
|
},
|
|
2729
2734
|
// Day of the month
|
|
2730
2735
|
d(e, t) {
|
|
2731
|
-
return
|
|
2736
|
+
return C(e.getDate(), t.length);
|
|
2732
2737
|
},
|
|
2733
2738
|
// AM or PM
|
|
2734
2739
|
a(e, t) {
|
|
@@ -2748,26 +2753,26 @@ const Q = {
|
|
|
2748
2753
|
},
|
|
2749
2754
|
// Hour [1-12]
|
|
2750
2755
|
h(e, t) {
|
|
2751
|
-
return
|
|
2756
|
+
return C(e.getHours() % 12 || 12, t.length);
|
|
2752
2757
|
},
|
|
2753
2758
|
// Hour [0-23]
|
|
2754
2759
|
H(e, t) {
|
|
2755
|
-
return
|
|
2760
|
+
return C(e.getHours(), t.length);
|
|
2756
2761
|
},
|
|
2757
2762
|
// Minute
|
|
2758
2763
|
m(e, t) {
|
|
2759
|
-
return
|
|
2764
|
+
return C(e.getMinutes(), t.length);
|
|
2760
2765
|
},
|
|
2761
2766
|
// Second
|
|
2762
2767
|
s(e, t) {
|
|
2763
|
-
return
|
|
2768
|
+
return C(e.getSeconds(), t.length);
|
|
2764
2769
|
},
|
|
2765
2770
|
// Fraction of second
|
|
2766
2771
|
S(e, t) {
|
|
2767
2772
|
const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
|
|
2768
2773
|
r * Math.pow(10, n - 3)
|
|
2769
2774
|
);
|
|
2770
|
-
return
|
|
2775
|
+
return C(o, t.length);
|
|
2771
2776
|
}
|
|
2772
2777
|
}, de = {
|
|
2773
2778
|
midnight: "midnight",
|
|
@@ -2808,14 +2813,14 @@ const Q = {
|
|
|
2808
2813
|
const o = Qt(e, r), a = o > 0 ? o : 1 - o;
|
|
2809
2814
|
if (t === "YY") {
|
|
2810
2815
|
const i = a % 100;
|
|
2811
|
-
return
|
|
2816
|
+
return C(i, 2);
|
|
2812
2817
|
}
|
|
2813
|
-
return t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) :
|
|
2818
|
+
return t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : C(a, t.length);
|
|
2814
2819
|
},
|
|
2815
2820
|
// ISO week-numbering year
|
|
2816
2821
|
R: function(e, t) {
|
|
2817
2822
|
const n = $t(e);
|
|
2818
|
-
return
|
|
2823
|
+
return C(n, t.length);
|
|
2819
2824
|
},
|
|
2820
2825
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
2821
2826
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -2828,7 +2833,7 @@ const Q = {
|
|
|
2828
2833
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
2829
2834
|
u: function(e, t) {
|
|
2830
2835
|
const n = e.getFullYear();
|
|
2831
|
-
return
|
|
2836
|
+
return C(n, t.length);
|
|
2832
2837
|
},
|
|
2833
2838
|
// Quarter
|
|
2834
2839
|
Q: function(e, t, n) {
|
|
@@ -2839,7 +2844,7 @@ const Q = {
|
|
|
2839
2844
|
return String(r);
|
|
2840
2845
|
// 01, 02, 03, 04
|
|
2841
2846
|
case "QQ":
|
|
2842
|
-
return
|
|
2847
|
+
return C(r, 2);
|
|
2843
2848
|
// 1st, 2nd, 3rd, 4th
|
|
2844
2849
|
case "Qo":
|
|
2845
2850
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
@@ -2873,7 +2878,7 @@ const Q = {
|
|
|
2873
2878
|
return String(r);
|
|
2874
2879
|
// 01, 02, 03, 04
|
|
2875
2880
|
case "qq":
|
|
2876
|
-
return
|
|
2881
|
+
return C(r, 2);
|
|
2877
2882
|
// 1st, 2nd, 3rd, 4th
|
|
2878
2883
|
case "qo":
|
|
2879
2884
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
@@ -2935,7 +2940,7 @@ const Q = {
|
|
|
2935
2940
|
return String(r + 1);
|
|
2936
2941
|
// 01, 02, ..., 12
|
|
2937
2942
|
case "LL":
|
|
2938
|
-
return
|
|
2943
|
+
return C(r + 1, 2);
|
|
2939
2944
|
// 1st, 2nd, ..., 12th
|
|
2940
2945
|
case "Lo":
|
|
2941
2946
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
@@ -2960,12 +2965,12 @@ const Q = {
|
|
|
2960
2965
|
// Local week of year
|
|
2961
2966
|
w: function(e, t, n, r) {
|
|
2962
2967
|
const o = ls(e, r);
|
|
2963
|
-
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) :
|
|
2968
|
+
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : C(o, t.length);
|
|
2964
2969
|
},
|
|
2965
2970
|
// ISO week of year
|
|
2966
2971
|
I: function(e, t, n) {
|
|
2967
2972
|
const r = is(e);
|
|
2968
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
2973
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : C(r, t.length);
|
|
2969
2974
|
},
|
|
2970
2975
|
// Day of the month
|
|
2971
2976
|
d: function(e, t, n) {
|
|
@@ -2974,7 +2979,7 @@ const Q = {
|
|
|
2974
2979
|
// Day of year
|
|
2975
2980
|
D: function(e, t, n) {
|
|
2976
2981
|
const r = as(e);
|
|
2977
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
2982
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : C(r, t.length);
|
|
2978
2983
|
},
|
|
2979
2984
|
// Day of week
|
|
2980
2985
|
E: function(e, t, n) {
|
|
@@ -3018,7 +3023,7 @@ const Q = {
|
|
|
3018
3023
|
return String(a);
|
|
3019
3024
|
// Padded numerical value
|
|
3020
3025
|
case "ee":
|
|
3021
|
-
return
|
|
3026
|
+
return C(a, 2);
|
|
3022
3027
|
// 1st, 2nd, ..., 7th
|
|
3023
3028
|
case "eo":
|
|
3024
3029
|
return n.ordinalNumber(a, { unit: "day" });
|
|
@@ -3057,7 +3062,7 @@ const Q = {
|
|
|
3057
3062
|
return String(a);
|
|
3058
3063
|
// Padded numerical value
|
|
3059
3064
|
case "cc":
|
|
3060
|
-
return
|
|
3065
|
+
return C(a, t.length);
|
|
3061
3066
|
// 1st, 2nd, ..., 7th
|
|
3062
3067
|
case "co":
|
|
3063
3068
|
return n.ordinalNumber(a, { unit: "day" });
|
|
@@ -3096,7 +3101,7 @@ const Q = {
|
|
|
3096
3101
|
return String(o);
|
|
3097
3102
|
// 02
|
|
3098
3103
|
case "ii":
|
|
3099
|
-
return
|
|
3104
|
+
return C(o, t.length);
|
|
3100
3105
|
// 2nd
|
|
3101
3106
|
case "io":
|
|
3102
3107
|
return n.ordinalNumber(o, { unit: "day" });
|
|
@@ -3224,12 +3229,12 @@ const Q = {
|
|
|
3224
3229
|
// Hour [0-11]
|
|
3225
3230
|
K: function(e, t, n) {
|
|
3226
3231
|
const r = e.getHours() % 12;
|
|
3227
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
3232
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : C(r, t.length);
|
|
3228
3233
|
},
|
|
3229
3234
|
// Hour [1-24]
|
|
3230
3235
|
k: function(e, t, n) {
|
|
3231
3236
|
let r = e.getHours();
|
|
3232
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
3237
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : C(r, t.length);
|
|
3233
3238
|
},
|
|
3234
3239
|
// Minute
|
|
3235
3240
|
m: function(e, t, n) {
|
|
@@ -3324,22 +3329,22 @@ const Q = {
|
|
|
3324
3329
|
// Seconds timestamp
|
|
3325
3330
|
t: function(e, t, n) {
|
|
3326
3331
|
const r = Math.trunc(+e / 1e3);
|
|
3327
|
-
return
|
|
3332
|
+
return C(r, t.length);
|
|
3328
3333
|
},
|
|
3329
3334
|
// Milliseconds timestamp
|
|
3330
3335
|
T: function(e, t, n) {
|
|
3331
|
-
return
|
|
3336
|
+
return C(+e, t.length);
|
|
3332
3337
|
}
|
|
3333
3338
|
};
|
|
3334
3339
|
function ut(e, t = "") {
|
|
3335
3340
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), a = r % 60;
|
|
3336
|
-
return a === 0 ? n + String(o) : n + String(o) + t +
|
|
3341
|
+
return a === 0 ? n + String(o) : n + String(o) + t + C(a, 2);
|
|
3337
3342
|
}
|
|
3338
3343
|
function ht(e, t) {
|
|
3339
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
3344
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + C(Math.abs(e) / 60, 2) : se(e, t);
|
|
3340
3345
|
}
|
|
3341
3346
|
function se(e, t = "") {
|
|
3342
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), o =
|
|
3347
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = C(Math.trunc(r / 60), 2), a = C(r % 60, 2);
|
|
3343
3348
|
return n + o + t + a;
|
|
3344
3349
|
}
|
|
3345
3350
|
const mt = (e, t) => {
|
|
@@ -3413,8 +3418,8 @@ function Ss(e, t, n) {
|
|
|
3413
3418
|
let l = t.match(vs).map((d) => {
|
|
3414
3419
|
const u = d[0];
|
|
3415
3420
|
if (u === "p" || u === "P") {
|
|
3416
|
-
const
|
|
3417
|
-
return
|
|
3421
|
+
const f = us[u];
|
|
3422
|
+
return f(d, o.formatLong);
|
|
3418
3423
|
}
|
|
3419
3424
|
return d;
|
|
3420
3425
|
}).join("").match(bs).map((d) => {
|
|
@@ -3441,8 +3446,8 @@ function Ss(e, t, n) {
|
|
|
3441
3446
|
if (!d.isToken) return d.value;
|
|
3442
3447
|
const u = d.value;
|
|
3443
3448
|
(gs(u) || ps(u)) && ws(u, t, String(e));
|
|
3444
|
-
const
|
|
3445
|
-
return
|
|
3449
|
+
const f = dt[u[0]];
|
|
3450
|
+
return f(c, u, o.localize, h);
|
|
3446
3451
|
}).join("");
|
|
3447
3452
|
}
|
|
3448
3453
|
function Ps(e) {
|
|
@@ -3456,7 +3461,7 @@ const Os = () => [
|
|
|
3456
3461
|
name: "Postnord",
|
|
3457
3462
|
ship: "McBoat",
|
|
3458
3463
|
numPassengers: 1241,
|
|
3459
|
-
departure:
|
|
3464
|
+
departure: D(/* @__PURE__ */ new Date(), 1)
|
|
3460
3465
|
},
|
|
3461
3466
|
{
|
|
3462
3467
|
id: "124",
|
|
@@ -3464,7 +3469,7 @@ const Os = () => [
|
|
|
3464
3469
|
name: "Schenker",
|
|
3465
3470
|
ship: "Boatface",
|
|
3466
3471
|
numPassengers: 31,
|
|
3467
|
-
departure:
|
|
3472
|
+
departure: D(/* @__PURE__ */ new Date(), 21)
|
|
3468
3473
|
},
|
|
3469
3474
|
{
|
|
3470
3475
|
id: "125",
|
|
@@ -3472,7 +3477,7 @@ const Os = () => [
|
|
|
3472
3477
|
name: "Fedex",
|
|
3473
3478
|
ship: "RoboBoat",
|
|
3474
3479
|
numPassengers: 534,
|
|
3475
|
-
departure:
|
|
3480
|
+
departure: D(/* @__PURE__ */ new Date(), 14)
|
|
3476
3481
|
},
|
|
3477
3482
|
{
|
|
3478
3483
|
id: "126",
|
|
@@ -3480,7 +3485,7 @@ const Os = () => [
|
|
|
3480
3485
|
name: "UPS",
|
|
3481
3486
|
ship: "Boatinator",
|
|
3482
3487
|
numPassengers: 213,
|
|
3483
|
-
departure:
|
|
3488
|
+
departure: D(/* @__PURE__ */ new Date(), 63)
|
|
3484
3489
|
},
|
|
3485
3490
|
{
|
|
3486
3491
|
id: "127",
|
|
@@ -3488,7 +3493,7 @@ const Os = () => [
|
|
|
3488
3493
|
name: "DHL",
|
|
3489
3494
|
ship: "Airplane",
|
|
3490
3495
|
numPassengers: 821,
|
|
3491
|
-
departure:
|
|
3496
|
+
departure: D(/* @__PURE__ */ new Date(), 18)
|
|
3492
3497
|
},
|
|
3493
3498
|
{
|
|
3494
3499
|
id: "128",
|
|
@@ -3496,7 +3501,7 @@ const Os = () => [
|
|
|
3496
3501
|
name: "Fedex",
|
|
3497
3502
|
ship: "RoboBoat",
|
|
3498
3503
|
numPassengers: 534,
|
|
3499
|
-
departure:
|
|
3504
|
+
departure: D(/* @__PURE__ */ new Date(), 14)
|
|
3500
3505
|
},
|
|
3501
3506
|
{
|
|
3502
3507
|
id: "129",
|
|
@@ -3504,7 +3509,7 @@ const Os = () => [
|
|
|
3504
3509
|
name: "Postnord",
|
|
3505
3510
|
ship: "Boaty",
|
|
3506
3511
|
numPassengers: 548,
|
|
3507
|
-
departure:
|
|
3512
|
+
departure: D(/* @__PURE__ */ new Date(), 18)
|
|
3508
3513
|
},
|
|
3509
3514
|
{
|
|
3510
3515
|
id: "130",
|
|
@@ -3512,7 +3517,7 @@ const Os = () => [
|
|
|
3512
3517
|
name: "Schenker",
|
|
3513
3518
|
ship: "Airplane",
|
|
3514
3519
|
numPassengers: 425,
|
|
3515
|
-
departure:
|
|
3520
|
+
departure: D(/* @__PURE__ */ new Date(), 19)
|
|
3516
3521
|
},
|
|
3517
3522
|
{
|
|
3518
3523
|
id: "131",
|
|
@@ -3520,7 +3525,7 @@ const Os = () => [
|
|
|
3520
3525
|
name: "Fedex",
|
|
3521
3526
|
ship: "RoboBoat",
|
|
3522
3527
|
numPassengers: 625,
|
|
3523
|
-
departure:
|
|
3528
|
+
departure: D(/* @__PURE__ */ new Date(), 1)
|
|
3524
3529
|
},
|
|
3525
3530
|
{
|
|
3526
3531
|
id: "132",
|
|
@@ -3528,7 +3533,7 @@ const Os = () => [
|
|
|
3528
3533
|
name: "UPS",
|
|
3529
3534
|
ship: "Boatinator",
|
|
3530
3535
|
numPassengers: 222,
|
|
3531
|
-
departure:
|
|
3536
|
+
departure: D(/* @__PURE__ */ new Date(), 5)
|
|
3532
3537
|
},
|
|
3533
3538
|
{
|
|
3534
3539
|
id: "133",
|
|
@@ -3536,7 +3541,7 @@ const Os = () => [
|
|
|
3536
3541
|
name: "DHL",
|
|
3537
3542
|
ship: "McBoat",
|
|
3538
3543
|
numPassengers: 333,
|
|
3539
|
-
departure:
|
|
3544
|
+
departure: D(/* @__PURE__ */ new Date(), 8)
|
|
3540
3545
|
},
|
|
3541
3546
|
{
|
|
3542
3547
|
id: "134",
|
|
@@ -3544,7 +3549,7 @@ const Os = () => [
|
|
|
3544
3549
|
name: "Fedex",
|
|
3545
3550
|
ship: "RoboBoat",
|
|
3546
3551
|
numPassengers: 99,
|
|
3547
|
-
departure:
|
|
3552
|
+
departure: D(/* @__PURE__ */ new Date(), 12)
|
|
3548
3553
|
},
|
|
3549
3554
|
{
|
|
3550
3555
|
id: "135",
|
|
@@ -3552,7 +3557,7 @@ const Os = () => [
|
|
|
3552
3557
|
name: "Schenker",
|
|
3553
3558
|
ship: "MS Britannica",
|
|
3554
3559
|
numPassengers: 842,
|
|
3555
|
-
departure:
|
|
3560
|
+
departure: D(/* @__PURE__ */ new Date(), 20)
|
|
3556
3561
|
},
|
|
3557
3562
|
{
|
|
3558
3563
|
id: "136",
|
|
@@ -3560,7 +3565,7 @@ const Os = () => [
|
|
|
3560
3565
|
name: "UPS",
|
|
3561
3566
|
ship: "Airplane",
|
|
3562
3567
|
numPassengers: 295,
|
|
3563
|
-
departure:
|
|
3568
|
+
departure: D(/* @__PURE__ */ new Date(), 25)
|
|
3564
3569
|
},
|
|
3565
3570
|
{
|
|
3566
3571
|
id: "137",
|
|
@@ -3568,7 +3573,7 @@ const Os = () => [
|
|
|
3568
3573
|
name: "Postnord",
|
|
3569
3574
|
ship: "RoboBoat",
|
|
3570
3575
|
numPassengers: 555,
|
|
3571
|
-
departure:
|
|
3576
|
+
departure: D(/* @__PURE__ */ new Date(), 30)
|
|
3572
3577
|
},
|
|
3573
3578
|
{
|
|
3574
3579
|
id: "138",
|
|
@@ -3576,7 +3581,7 @@ const Os = () => [
|
|
|
3576
3581
|
name: "Schenker",
|
|
3577
3582
|
ship: "Boaty",
|
|
3578
3583
|
numPassengers: 333,
|
|
3579
|
-
departure:
|
|
3584
|
+
departure: D(/* @__PURE__ */ new Date(), 4)
|
|
3580
3585
|
},
|
|
3581
3586
|
{
|
|
3582
3587
|
id: "139",
|
|
@@ -3584,7 +3589,7 @@ const Os = () => [
|
|
|
3584
3589
|
name: "DHL",
|
|
3585
3590
|
ship: "McBoat",
|
|
3586
3591
|
numPassengers: 534,
|
|
3587
|
-
departure:
|
|
3592
|
+
departure: D(/* @__PURE__ */ new Date(), 27)
|
|
3588
3593
|
},
|
|
3589
3594
|
{
|
|
3590
3595
|
id: "140",
|
|
@@ -3592,7 +3597,7 @@ const Os = () => [
|
|
|
3592
3597
|
name: "UPS",
|
|
3593
3598
|
ship: "Boatinator",
|
|
3594
3599
|
numPassengers: 515,
|
|
3595
|
-
departure:
|
|
3600
|
+
departure: D(/* @__PURE__ */ new Date(), 21)
|
|
3596
3601
|
},
|
|
3597
3602
|
{
|
|
3598
3603
|
id: "141",
|
|
@@ -3600,7 +3605,7 @@ const Os = () => [
|
|
|
3600
3605
|
name: "Postnord",
|
|
3601
3606
|
ship: "MS Britannica",
|
|
3602
3607
|
numPassengers: 888,
|
|
3603
|
-
departure:
|
|
3608
|
+
departure: D(/* @__PURE__ */ new Date(), 7)
|
|
3604
3609
|
},
|
|
3605
3610
|
{
|
|
3606
3611
|
id: "142",
|
|
@@ -3608,7 +3613,7 @@ const Os = () => [
|
|
|
3608
3613
|
name: "Fedex",
|
|
3609
3614
|
ship: "RoboBoat",
|
|
3610
3615
|
numPassengers: 785,
|
|
3611
|
-
departure:
|
|
3616
|
+
departure: D(/* @__PURE__ */ new Date(), 13)
|
|
3612
3617
|
},
|
|
3613
3618
|
{
|
|
3614
3619
|
id: "A really long id, or could be a very long title",
|
|
@@ -3616,7 +3621,7 @@ const Os = () => [
|
|
|
3616
3621
|
name: "Schenker",
|
|
3617
3622
|
ship: "MS Britannica",
|
|
3618
3623
|
numPassengers: 655,
|
|
3619
|
-
departure:
|
|
3624
|
+
departure: D(/* @__PURE__ */ new Date(), 5)
|
|
3620
3625
|
}
|
|
3621
3626
|
], ft = (e, t, n) => e.map((r) => r.id === t ? { ...r, ...n } : r), Xs = {
|
|
3622
3627
|
keyResolver: (e) => e.id,
|
|
@@ -3652,7 +3657,7 @@ const Os = () => [
|
|
|
3652
3657
|
},
|
|
3653
3658
|
columnOrder: ["id", "active", "name", "ship", "numPassengers", "departure"]
|
|
3654
3659
|
}, Us = Os(), Js = (e) => {
|
|
3655
|
-
const [t, n] = Pe(e), r =
|
|
3660
|
+
const [t, n] = Pe(e), r = P(
|
|
3656
3661
|
(a, i) => {
|
|
3657
3662
|
n(
|
|
3658
3663
|
ft(t, a.id, {
|
|
@@ -3661,7 +3666,7 @@ const Os = () => [
|
|
|
3661
3666
|
);
|
|
3662
3667
|
},
|
|
3663
3668
|
[t, n]
|
|
3664
|
-
), o =
|
|
3669
|
+
), o = P(
|
|
3665
3670
|
(a, i) => {
|
|
3666
3671
|
n(
|
|
3667
3672
|
ft(t, a.id, {
|
|
@@ -3746,7 +3751,7 @@ export {
|
|
|
3746
3751
|
Gn as useRevertableValue,
|
|
3747
3752
|
Lr as useRowCheckbox,
|
|
3748
3753
|
be as useStandardTableActions,
|
|
3749
|
-
|
|
3754
|
+
T as useStandardTableConfig,
|
|
3750
3755
|
_e as useStandardTableId,
|
|
3751
3756
|
ae as useStandardTableState,
|
|
3752
3757
|
uo as useTableHeadCheckbox,
|