@stenajs-webui/grid 25.15.0 → 26.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/index.css +1 -1
- package/dist/index.es.js +322 -320
- 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
|
@@ -13,7 +13,7 @@ import { combineReducers as vn } from "redux";
|
|
|
13
13
|
import { LoadingScreen as Cn, ErrorScreen as xn } from "@stenajs-webui/panels";
|
|
14
14
|
import { compact as kn, upperFirst as Sn, lowerCase as Pn } from "lodash-es";
|
|
15
15
|
import On from "@emotion/styled";
|
|
16
|
-
import './index.css';const kt = E.createContext({}),
|
|
16
|
+
import './index.css';const kt = E.createContext({}), Js = ({
|
|
17
17
|
children: e,
|
|
18
18
|
numCols: t,
|
|
19
19
|
numRows: n,
|
|
@@ -93,7 +93,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
93
93
|
indent: r,
|
|
94
94
|
...o
|
|
95
95
|
}
|
|
96
|
-
), Dn = "var(--lhds-color-ui-300)", Rn = "var(--lhds-color-blue-600)", Pt = "var(--lhds-color-ui-200)", En = "var(--lhds-color-ui-300)", ge = `1px solid ${Dn}`, Mn = "1px solid transparent", He = "var(--swui-expand-highlight-border-width) solid transparent",
|
|
96
|
+
), Dn = "var(--lhds-color-ui-300)", Rn = "var(--lhds-color-blue-600)", Pt = "var(--lhds-color-ui-200)", En = "var(--lhds-color-ui-300)", ge = `1px solid ${Dn}`, Mn = "1px solid transparent", He = "var(--swui-expand-highlight-border-width) solid transparent", Zs = `var(--swui-expand-highlight-border-width) solid ${Rn}`, _e = "40px", Ye = "40px", Ot = "40px", ea = (e) => /* @__PURE__ */ s(
|
|
97
97
|
Tn,
|
|
98
98
|
{
|
|
99
99
|
width: Ot,
|
|
@@ -107,7 +107,9 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
107
107
|
color: q("--lhds-color-ui-500"),
|
|
108
108
|
icon: e === "up" ? sn : an
|
|
109
109
|
}
|
|
110
|
-
) }),
|
|
110
|
+
) }), Gn = "_label_1ujj8_2", Wn = {
|
|
111
|
+
label: Gn
|
|
112
|
+
}, ze = E.memo(
|
|
111
113
|
({
|
|
112
114
|
label: e,
|
|
113
115
|
arrow: t,
|
|
@@ -153,7 +155,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
153
155
|
/* @__PURE__ */ s(nt, { direction: t }),
|
|
154
156
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
155
157
|
] }),
|
|
156
|
-
e && /* @__PURE__ */ s(vt, {
|
|
158
|
+
e && /* @__PURE__ */ s(vt, { as: "span", size: "xs", className: Wn.label, children: e }),
|
|
157
159
|
t && !f && /* @__PURE__ */ C(R, { children: [
|
|
158
160
|
/* @__PURE__ */ s(M, { num: 0.5 }),
|
|
159
161
|
/* @__PURE__ */ s(nt, { direction: t }),
|
|
@@ -210,24 +212,24 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
210
212
|
}
|
|
211
213
|
);
|
|
212
214
|
}
|
|
213
|
-
),
|
|
215
|
+
), ta = (e) => /* @__PURE__ */ s(
|
|
214
216
|
ze,
|
|
215
217
|
{
|
|
216
218
|
width: Ot,
|
|
217
219
|
justifyContent: "center",
|
|
218
220
|
...e
|
|
219
221
|
}
|
|
220
|
-
),
|
|
222
|
+
), na = ({
|
|
221
223
|
label: e,
|
|
222
224
|
flex: t,
|
|
223
225
|
width: n,
|
|
224
226
|
indent: r = 1,
|
|
225
227
|
height: o = Ye
|
|
226
|
-
}) => /* @__PURE__ */ s(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ s(le, { indent: r, spacing: !0, children: /* @__PURE__ */ s(te, { variant: "bold", children: e }) }) }),
|
|
228
|
+
}) => /* @__PURE__ */ s(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ s(le, { indent: r, spacing: !0, children: /* @__PURE__ */ s(te, { variant: "bold", children: e }) }) }), ra = E.memo(
|
|
227
229
|
({ style: e, height: t = Ye, ...n }) => /* @__PURE__ */ s(I, { style: e, height: t, ...n })
|
|
228
|
-
),
|
|
229
|
-
tableRow:
|
|
230
|
-
},
|
|
230
|
+
), Bn = "_tableRow_1cphw_1", Fn = {
|
|
231
|
+
tableRow: Bn
|
|
232
|
+
}, oa = ({
|
|
231
233
|
hideBorderTop: e,
|
|
232
234
|
height: t = Ye,
|
|
233
235
|
className: n,
|
|
@@ -237,10 +239,10 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
237
239
|
{
|
|
238
240
|
borderTop: e ? Mn : ge,
|
|
239
241
|
height: t,
|
|
240
|
-
className: xt(
|
|
242
|
+
className: xt(Fn.tableRow, n),
|
|
241
243
|
...r
|
|
242
244
|
}
|
|
243
|
-
),
|
|
245
|
+
), Ln = (e) => {
|
|
244
246
|
const [t, n] = Pe(e), r = X(e), o = X(e), a = P(
|
|
245
247
|
(l) => {
|
|
246
248
|
n(l), o.current = l;
|
|
@@ -269,7 +271,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
269
271
|
commit: c,
|
|
270
272
|
getValue: u
|
|
271
273
|
};
|
|
272
|
-
},
|
|
274
|
+
}, Nn = (e) => ({
|
|
273
275
|
altKey: e.altKey,
|
|
274
276
|
charCode: e.charCode,
|
|
275
277
|
ctrlKey: e.ctrlKey,
|
|
@@ -281,17 +283,17 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
281
283
|
repeat: e.repeat,
|
|
282
284
|
shiftKey: e.shiftKey,
|
|
283
285
|
which: e.which
|
|
284
|
-
}),
|
|
286
|
+
}), An = (e) => e, Hn = (e, {
|
|
285
287
|
isEditable: t = !1,
|
|
286
288
|
allowedInputType: n = "all",
|
|
287
289
|
onChange: r,
|
|
288
290
|
onStartEditing: o,
|
|
289
291
|
onStopEditing: a,
|
|
290
|
-
transformEnteredValue: i =
|
|
292
|
+
transformEnteredValue: i = An
|
|
291
293
|
}) => {
|
|
292
294
|
const [c, d] = Pe(!1), [u, l] = Pe(
|
|
293
295
|
void 0
|
|
294
|
-
), h =
|
|
296
|
+
), h = Ln(e), { getValue: f, revert: p, setValue: w, setRevertValue: m } = h, g = P(
|
|
295
297
|
(S) => {
|
|
296
298
|
t && (w(e), m(e), d(!0), o && o(S));
|
|
297
299
|
},
|
|
@@ -303,7 +305,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
303
305
|
}, [t, a, p, d]);
|
|
304
306
|
return {
|
|
305
307
|
onKeyDown: b(
|
|
306
|
-
() =>
|
|
308
|
+
() => Vn(
|
|
307
309
|
c,
|
|
308
310
|
t,
|
|
309
311
|
g,
|
|
@@ -330,34 +332,34 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
330
332
|
stopEditingAndRevert: k,
|
|
331
333
|
onDoubleClick: g
|
|
332
334
|
};
|
|
333
|
-
},
|
|
335
|
+
}, _n = (e) => e === "all" || e === "numeric" || e === "alphanumeric", Yn = (e) => e === "all" || e === "alphanumeric" || e === "letters", zn = (e) => !!e.match(/^[-+*<>]$/), qn = (e) => !!e.match(/^[a-zA-Z0-9]$/), jn = (e) => !isNaN(parseInt(e, 10)), Vn = (e, t, n, r, o, a, i) => (c) => {
|
|
334
336
|
if (!(c.ctrlKey || c.metaKey || c.shiftKey)) {
|
|
335
337
|
if (c.key === "Enter" && t)
|
|
336
338
|
r(void 0), n(), i.commit(), c.preventDefault(), c.stopPropagation();
|
|
337
339
|
else if (t) {
|
|
338
|
-
const d =
|
|
339
|
-
(
|
|
340
|
+
const d = Nn(c);
|
|
341
|
+
(jn(c.key) && _n(o) || qn(c.key) && Yn(o) || zn(c.key)) && (n(d), r(d), i.commit(), i.setValue(a(d.key)), c.preventDefault(), c.stopPropagation());
|
|
340
342
|
}
|
|
341
343
|
}
|
|
342
|
-
},
|
|
344
|
+
}, Kn = (e, t, n, r) => {
|
|
343
345
|
let o = e, a = t;
|
|
344
346
|
return t > r && (a = 0), t < 0 && (a = r), e > n && (o = 0), e < 0 && (o = n), {
|
|
345
347
|
realX: o,
|
|
346
348
|
realY: a
|
|
347
349
|
};
|
|
348
|
-
}, rt = (e, t, n) => Math.max(Math.min(e, n), t),
|
|
350
|
+
}, rt = (e, t, n) => Math.max(Math.min(e, n), t), $n = (e, t, n) => ({
|
|
349
351
|
rowIndex: rt(e.rowIndex, 0, t),
|
|
350
352
|
colIndex: rt(e.colIndex, 0, n)
|
|
351
|
-
}),
|
|
352
|
-
const r =
|
|
353
|
+
}), Qn = (e, t, n) => {
|
|
354
|
+
const r = Kn(e.colIndex, e.rowIndex, n, t);
|
|
353
355
|
return {
|
|
354
356
|
rowIndex: r.realY,
|
|
355
357
|
colIndex: r.realX
|
|
356
358
|
};
|
|
357
|
-
},
|
|
358
|
-
const i =
|
|
359
|
-
return a === "clamped" ?
|
|
360
|
-
},
|
|
359
|
+
}, Xn = (e, t, n, r, o, a = "clamped") => {
|
|
360
|
+
const i = Un(e, t, o);
|
|
361
|
+
return a === "clamped" ? $n(i, n - 1, r - 1) : a === "wrapped" ? Qn(i, n - 1, r - 1) : i;
|
|
362
|
+
}, Un = (e, t, n) => n === "up" ? {
|
|
361
363
|
rowIndex: e - 1,
|
|
362
364
|
colIndex: t
|
|
363
365
|
} : n === "down" ? {
|
|
@@ -372,7 +374,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
372
374
|
} : {
|
|
373
375
|
rowIndex: e,
|
|
374
376
|
colIndex: t
|
|
375
|
-
},
|
|
377
|
+
}, Jn = (e) => e.replace(/^[^a-z]+|[^\w:.-]+/gi, ""), Zn = (e) => {
|
|
376
378
|
if (!e.tableId)
|
|
377
379
|
throw new Error("tableId is required.");
|
|
378
380
|
if (e.numRows == null)
|
|
@@ -383,13 +385,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
383
385
|
}, It = (e) => {
|
|
384
386
|
const t = _(kt);
|
|
385
387
|
return b(
|
|
386
|
-
() =>
|
|
388
|
+
() => Zn({
|
|
387
389
|
...t,
|
|
388
390
|
...e
|
|
389
391
|
}),
|
|
390
392
|
[t, e]
|
|
391
393
|
);
|
|
392
|
-
},
|
|
394
|
+
}, er = (e) => {
|
|
393
395
|
const {
|
|
394
396
|
rowIndex: t,
|
|
395
397
|
colIndex: n,
|
|
@@ -400,7 +402,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
400
402
|
onCellMove: c,
|
|
401
403
|
onCellNavigation: d
|
|
402
404
|
} = It(e), u = b(
|
|
403
|
-
() =>
|
|
405
|
+
() => tr(
|
|
404
406
|
a,
|
|
405
407
|
t,
|
|
406
408
|
n,
|
|
@@ -421,7 +423,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
421
423
|
d
|
|
422
424
|
]
|
|
423
425
|
), l = b(
|
|
424
|
-
() =>
|
|
426
|
+
() => nr(u),
|
|
425
427
|
[u]
|
|
426
428
|
), h = b(
|
|
427
429
|
() => Tt(a, t, n),
|
|
@@ -439,8 +441,8 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
439
441
|
moveHandler: u,
|
|
440
442
|
requiredProps: f
|
|
441
443
|
};
|
|
442
|
-
},
|
|
443
|
-
const u =
|
|
444
|
+
}, tr = (e, t, n, r, o, a, i, c) => (d) => {
|
|
445
|
+
const u = Xn(
|
|
444
446
|
t,
|
|
445
447
|
n,
|
|
446
448
|
r,
|
|
@@ -466,13 +468,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
466
468
|
rowDidChange: h,
|
|
467
469
|
cellDidChange: l || h
|
|
468
470
|
});
|
|
469
|
-
}, Tt = (e, t, n) =>
|
|
471
|
+
}, Tt = (e, t, n) => Jn(`table-${e}-${t}-${n}`), nr = (e) => (t) => t.key === "ArrowLeft" ? (e("left"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowUp" ? (e("up"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowRight" ? (e("right"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowDown" ? (e("down"), t.preventDefault(), t.stopPropagation(), !0) : !1, Dt = (e, t) => {
|
|
470
472
|
const n = document.getElementById(
|
|
471
473
|
Tt(e, t.rowIndex, t.colIndex)
|
|
472
474
|
);
|
|
473
475
|
n && n.focus();
|
|
474
476
|
}, Te = (e, t) => {
|
|
475
|
-
const { tableId: n } = It(t), r =
|
|
477
|
+
const { tableId: n } = It(t), r = er(t), o = Hn(e, t), a = b(
|
|
476
478
|
() => ({
|
|
477
479
|
rowIndex: t.rowIndex,
|
|
478
480
|
colIndex: t.colIndex
|
|
@@ -520,7 +522,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
520
522
|
stopEditingAndRevert: d,
|
|
521
523
|
stopEditingAndMove: u
|
|
522
524
|
};
|
|
523
|
-
},
|
|
525
|
+
}, sa = function({
|
|
524
526
|
allowedInputType: t,
|
|
525
527
|
value: n = "",
|
|
526
528
|
entityId: r,
|
|
@@ -653,7 +655,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
653
655
|
);
|
|
654
656
|
}, Rt = F(""), Et = F(
|
|
655
657
|
void 0
|
|
656
|
-
), Mt = F(void 0), Gt = F(void 0),
|
|
658
|
+
), Mt = F(void 0), Gt = F(void 0), rr = () => ({
|
|
657
659
|
sortOrder: wn(),
|
|
658
660
|
selectedIds: Ze(),
|
|
659
661
|
expandedRows: Ze(),
|
|
@@ -663,7 +665,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
663
665
|
selectedIds: et(n),
|
|
664
666
|
expandedRows: et(r),
|
|
665
667
|
fields: { lastSelectedId: void 0 }
|
|
666
|
-
}),
|
|
668
|
+
}), or = (e, t) => {
|
|
667
669
|
const n = Se(
|
|
668
670
|
z(e, "sortOrder"),
|
|
669
671
|
yn(t?.sortOrder)
|
|
@@ -692,7 +694,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
692
694
|
() => t.map((r) => r.groupConfig.columnOrder.length).reduce((r, o) => r + o, 0),
|
|
693
695
|
[t]
|
|
694
696
|
);
|
|
695
|
-
}, Lt = F(void 0),
|
|
697
|
+
}, Lt = F(void 0), sr = () => _(Lt), Nt = F(void 0), ar = () => _(Nt), ir = F(void 0), cr = F(!1), At = F(void 0), dr = (e) => {
|
|
696
698
|
const t = X(/* @__PURE__ */ new Set()), n = X(void 0), r = X(void 0);
|
|
697
699
|
return n.current !== e && (n.current = e, r.current = new Set(e)), tn(() => {
|
|
698
700
|
t.current.forEach((o) => o());
|
|
@@ -705,13 +707,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
705
707
|
}),
|
|
706
708
|
[]
|
|
707
709
|
);
|
|
708
|
-
},
|
|
710
|
+
}, lr = (e) => {
|
|
709
711
|
const t = _(At);
|
|
710
712
|
return nn(
|
|
711
713
|
t.subscribe,
|
|
712
714
|
() => t.getSelectedIdsSet().has(e)
|
|
713
715
|
);
|
|
714
|
-
},
|
|
716
|
+
}, ur = F("standard"), Ht = F({}), je = () => _(Ht), _t = F(0), Ve = () => _(_t), Yt = (e, t, n) => e ? kn(
|
|
715
717
|
t?.map((r) => {
|
|
716
718
|
const o = e?.[r];
|
|
717
719
|
return {
|
|
@@ -742,13 +744,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
742
744
|
if (!n)
|
|
743
745
|
throw new Error("No config for column with id=" + e);
|
|
744
746
|
return n;
|
|
745
|
-
},
|
|
747
|
+
}, hr = () => {
|
|
746
748
|
const e = T(), t = ne()?.[0]?.groupConfig.columnOrder?.[0];
|
|
747
749
|
return t ? e.columns[t] : void 0;
|
|
748
|
-
},
|
|
750
|
+
}, mr = () => {
|
|
749
751
|
const e = T(), t = ne(), n = t[t.length - 1], r = n?.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1] ?? void 0;
|
|
750
752
|
return r ? e.columns[r] : void 0;
|
|
751
|
-
},
|
|
753
|
+
}, fr = function({
|
|
752
754
|
columnId: t,
|
|
753
755
|
groupConfig: n,
|
|
754
756
|
borderFromGroup: r,
|
|
@@ -756,7 +758,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
756
758
|
isFirstGroup: a,
|
|
757
759
|
isLastGroup: i
|
|
758
760
|
}) {
|
|
759
|
-
const { label: c, render: d, contentLeft: u, contentRight: l, loading: h, error: f } = n, { width: p, minWidth: w, zIndex: m, borderLeft: g } = Ce(t), y = T(), { stickyHeader: k, headerRowOffsetTop: O } = y, S = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, v =
|
|
761
|
+
const { label: c, render: d, contentLeft: u, contentRight: l, loading: h, error: f } = n, { width: p, minWidth: w, zIndex: m, borderLeft: g } = Ce(t), y = T(), { stickyHeader: k, headerRowOffsetTop: O } = y, S = "columnGroupOrder" in y ? y.stickyColumnGroups : void 0, v = pr(r, g), B = a && (S === "first" || S === "both"), L = i && (S === "last" || S === "both"), j = B || L || k, N = B || L;
|
|
760
762
|
return /* @__PURE__ */ s(
|
|
761
763
|
"th",
|
|
762
764
|
{
|
|
@@ -780,7 +782,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
780
782
|
u,
|
|
781
783
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
782
784
|
] }),
|
|
783
|
-
d ? d(n) : /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(vt, {
|
|
785
|
+
d ? d(n) : /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(vt, { as: "span", size: "s", whiteSpace: "nowrap", children: c }) }),
|
|
784
786
|
l && /* @__PURE__ */ C(R, { children: [
|
|
785
787
|
/* @__PURE__ */ s(M, { num: 0.5 }),
|
|
786
788
|
l
|
|
@@ -797,25 +799,25 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
797
799
|
] }) })
|
|
798
800
|
}
|
|
799
801
|
);
|
|
800
|
-
},
|
|
802
|
+
}, pr = (e, t) => {
|
|
801
803
|
if (e)
|
|
802
804
|
return e;
|
|
803
805
|
if (t)
|
|
804
806
|
return "1px solid transparent";
|
|
805
|
-
},
|
|
806
|
-
top: e ?
|
|
807
|
+
}, wr = (e, t, n, r) => ({
|
|
808
|
+
top: e ? gr(e, n) : void 0,
|
|
807
809
|
background: e || t ? "white" : void 0,
|
|
808
810
|
position: e || t ? "sticky" : void 0,
|
|
809
811
|
boxShadow: t ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
810
812
|
zIndex: e || t ? r ?? "var(--swui-sticky-header-z-index)" : r
|
|
811
|
-
}),
|
|
813
|
+
}), gr = (e, t) => {
|
|
812
814
|
if (e && t)
|
|
813
815
|
return t;
|
|
814
816
|
if (t)
|
|
815
817
|
return t;
|
|
816
818
|
if (e)
|
|
817
819
|
return 0;
|
|
818
|
-
},
|
|
820
|
+
}, yr = E.memo(function({
|
|
819
821
|
height: t = _e
|
|
820
822
|
}) {
|
|
821
823
|
const n = ne(), r = T(), {
|
|
@@ -826,7 +828,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
826
828
|
stickyHeader: d,
|
|
827
829
|
stickyCheckboxColumn: u,
|
|
828
830
|
headerRowOffsetTop: l
|
|
829
|
-
} = r, h =
|
|
831
|
+
} = r, h = wr(
|
|
830
832
|
d,
|
|
831
833
|
u,
|
|
832
834
|
l,
|
|
@@ -863,7 +865,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
863
865
|
}
|
|
864
866
|
),
|
|
865
867
|
n.map(({ groupConfig: p, groupId: w }, m) => /* @__PURE__ */ s(
|
|
866
|
-
|
|
868
|
+
fr,
|
|
867
869
|
{
|
|
868
870
|
isFirstGroup: m === 0,
|
|
869
871
|
isLastGroup: m === n.length - 1,
|
|
@@ -883,7 +885,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
883
885
|
]
|
|
884
886
|
}
|
|
885
887
|
);
|
|
886
|
-
}),
|
|
888
|
+
}), br = (e) => {
|
|
887
889
|
const t = Yt(
|
|
888
890
|
"columnGroups" in e ? e.columnGroups : void 0,
|
|
889
891
|
"columnGroupOrder" in e ? e.columnGroupOrder : void 0,
|
|
@@ -892,23 +894,23 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
892
894
|
let r = 0;
|
|
893
895
|
return e.showRowCheckbox && r++, e.enableExpandCollapse && r++, t.forEach((o) => {
|
|
894
896
|
o.groupConfig.columnOrder.forEach((a) => {
|
|
895
|
-
|
|
897
|
+
vr(e.columns[a]) && (n[a] = r++);
|
|
896
898
|
});
|
|
897
899
|
}), {
|
|
898
900
|
columnIndexPerColumnId: n,
|
|
899
901
|
numNavigableColumns: r
|
|
900
902
|
};
|
|
901
|
-
},
|
|
903
|
+
}, vr = (e) => !e.disableGridCell, zt = F({
|
|
902
904
|
columnIndexPerColumnId: {},
|
|
903
905
|
numNavigableColumns: 0
|
|
904
906
|
}), qt = () => _(
|
|
905
907
|
zt
|
|
906
|
-
),
|
|
907
|
-
"columnGroupOrder" in e && (
|
|
908
|
+
), Cr = (e) => {
|
|
909
|
+
"columnGroupOrder" in e && (xr(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && ot(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && ot(
|
|
908
910
|
e,
|
|
909
911
|
e.columnGroupOrder.length - 1
|
|
910
912
|
));
|
|
911
|
-
},
|
|
913
|
+
}, xr = (e) => {
|
|
912
914
|
Object.keys(e.columns).forEach((n) => {
|
|
913
915
|
const r = e.columns[n];
|
|
914
916
|
if ("sticky" in r && r.sticky)
|
|
@@ -932,13 +934,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
932
934
|
"All columns in sticky column group must have width set."
|
|
933
935
|
);
|
|
934
936
|
});
|
|
935
|
-
},
|
|
937
|
+
}, kr = (e) => {
|
|
936
938
|
const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ? st(
|
|
937
|
-
|
|
939
|
+
Pr(e),
|
|
938
940
|
e.columns,
|
|
939
941
|
!0
|
|
940
942
|
) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ? st(
|
|
941
|
-
|
|
943
|
+
Or(e),
|
|
942
944
|
e.columns,
|
|
943
945
|
!1
|
|
944
946
|
) : void 0;
|
|
@@ -952,13 +954,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
952
954
|
];
|
|
953
955
|
for (let a = 0; a < e.length; a++) {
|
|
954
956
|
const i = e[a], c = t?.[i];
|
|
955
|
-
r[i] =
|
|
957
|
+
r[i] = Sr(o), o.push(c?.width ?? "0px");
|
|
956
958
|
}
|
|
957
959
|
return r;
|
|
958
|
-
},
|
|
960
|
+
}, Sr = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", Pr = (e) => {
|
|
959
961
|
const t = e.columnGroupOrder?.[0];
|
|
960
962
|
return t ? e.columnGroups?.[t]?.columnOrder ?? [] : [];
|
|
961
|
-
},
|
|
963
|
+
}, Or = (e) => {
|
|
962
964
|
const t = e.columnGroupOrder?.[e.columnGroupOrder?.length - 1];
|
|
963
965
|
if (!t)
|
|
964
966
|
return [];
|
|
@@ -967,7 +969,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
967
969
|
return [];
|
|
968
970
|
const r = [...n.columnOrder];
|
|
969
971
|
return r.reverse(), r;
|
|
970
|
-
},
|
|
972
|
+
}, Ir = (e) => "columnGroups" in e ? Dr(e) : Tr(e), Tr = (e) => Object.keys(e.columns).reduce((n, r) => {
|
|
971
973
|
const o = e.columns[r], a = !!o.sticky;
|
|
972
974
|
return n[r] = {
|
|
973
975
|
sticky: a,
|
|
@@ -977,8 +979,8 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
977
979
|
isFirstColumnInLastGroup: !1,
|
|
978
980
|
isLastColumnInFirstGroup: !1
|
|
979
981
|
}, n;
|
|
980
|
-
}, {}),
|
|
981
|
-
const t = {}, n = e.columnGroupOrder, r =
|
|
982
|
+
}, {}), Dr = (e) => {
|
|
983
|
+
const t = {}, n = e.columnGroupOrder, r = kr(e), o = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", a = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
|
|
982
984
|
return n.forEach((i, c) => {
|
|
983
985
|
const u = e.columnGroups[i].columnOrder;
|
|
984
986
|
u.forEach((l, h) => {
|
|
@@ -993,7 +995,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
993
995
|
};
|
|
994
996
|
});
|
|
995
997
|
}), t;
|
|
996
|
-
},
|
|
998
|
+
}, Rr = (e, t) => ({
|
|
997
999
|
setSelectedIds: (n) => oe(
|
|
998
1000
|
z(e, "selectedIds"),
|
|
999
1001
|
t.selectedIds.setSelectedIds(n)
|
|
@@ -1022,14 +1024,14 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1022
1024
|
z(e, "fields"),
|
|
1023
1025
|
t.fields.setEntityFields({ lastSelectedId: n })
|
|
1024
1026
|
)
|
|
1025
|
-
}),
|
|
1027
|
+
}), Er = (e, t = Wt()) => {
|
|
1026
1028
|
const [n, r] = rn(
|
|
1027
|
-
|
|
1029
|
+
or(e),
|
|
1028
1030
|
t
|
|
1029
1031
|
), o = b(
|
|
1030
|
-
() =>
|
|
1032
|
+
() => Rr(
|
|
1031
1033
|
e,
|
|
1032
|
-
|
|
1034
|
+
rr()
|
|
1033
1035
|
),
|
|
1034
1036
|
[e]
|
|
1035
1037
|
);
|
|
@@ -1043,10 +1045,10 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1043
1045
|
[n, o, r]
|
|
1044
1046
|
)
|
|
1045
1047
|
};
|
|
1046
|
-
},
|
|
1048
|
+
}, Mr = (e) => (e.rowIndent ? 2 : 0) + (e.enableExpandCollapse ? 1 : 0) + (e.showRowCheckbox ? 1 : 0) + Gr(e), Gr = (e) => "columnGroupOrder" in e ? e.columnGroupOrder.reduce((t, n) => {
|
|
1047
1049
|
const r = e.columnGroups?.[n];
|
|
1048
1050
|
return t + (r?.columnOrder?.length ?? 0);
|
|
1049
|
-
}, 0) : e.columnOrder?.length ?? 0,
|
|
1051
|
+
}, 0) : e.columnOrder?.length ?? 0, Wr = () => {
|
|
1050
1052
|
const e = T(), t = ne(), n = e.enableExpandCollapse || e.showRowCheckbox, r = hn(e.rowIndent);
|
|
1051
1053
|
return /* @__PURE__ */ C(R, { children: [
|
|
1052
1054
|
r ? /* @__PURE__ */ s("colgroup", { children: /* @__PURE__ */ s(
|
|
@@ -1076,19 +1078,19 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1076
1078
|
}
|
|
1077
1079
|
) }) : null
|
|
1078
1080
|
] });
|
|
1079
|
-
},
|
|
1080
|
-
standardTable:
|
|
1081
|
-
relaxed:
|
|
1082
|
-
condensed:
|
|
1083
|
-
compact:
|
|
1084
|
-
},
|
|
1081
|
+
}, Br = "_standardTable_1dd9o_1", Fr = "_relaxed_1dd9o_39", Lr = "_condensed_1dd9o_43", Nr = "_compact_1dd9o_47", at = {
|
|
1082
|
+
standardTable: Br,
|
|
1083
|
+
relaxed: Fr,
|
|
1084
|
+
condensed: Lr,
|
|
1085
|
+
compact: Nr
|
|
1086
|
+
}, Ar = (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, Hr = (e) => {
|
|
1085
1087
|
const { columns: t } = T();
|
|
1086
1088
|
if (!e)
|
|
1087
1089
|
return;
|
|
1088
1090
|
const n = t[e];
|
|
1089
1091
|
if (n)
|
|
1090
1092
|
return n.itemValueResolver;
|
|
1091
|
-
},
|
|
1093
|
+
}, _r = E.memo(
|
|
1092
1094
|
function({
|
|
1093
1095
|
value: t,
|
|
1094
1096
|
onValueChange: n,
|
|
@@ -1122,7 +1124,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1122
1124
|
}
|
|
1123
1125
|
);
|
|
1124
1126
|
}
|
|
1125
|
-
),
|
|
1127
|
+
), Yr = (e, t, n) => {
|
|
1126
1128
|
if (t == null || n == null || e == null || t === n)
|
|
1127
1129
|
return;
|
|
1128
1130
|
const r = e.indexOf(t), o = e.indexOf(n);
|
|
@@ -1130,7 +1132,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1130
1132
|
return;
|
|
1131
1133
|
const a = Math.min(r, o), i = Math.max(r, o);
|
|
1132
1134
|
return e.slice(a, i + 1);
|
|
1133
|
-
},
|
|
1135
|
+
}, zr = (e, t) => {
|
|
1134
1136
|
const { keyResolver: n } = T(), {
|
|
1135
1137
|
selectedIds: { selectedIds: r },
|
|
1136
1138
|
fields: { lastSelectedId: o }
|
|
@@ -1145,7 +1147,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1145
1147
|
(m) => c(a(m))
|
|
1146
1148
|
), p = P(() => {
|
|
1147
1149
|
if (t && o) {
|
|
1148
|
-
const m =
|
|
1150
|
+
const m = Yr(
|
|
1149
1151
|
t,
|
|
1150
1152
|
o,
|
|
1151
1153
|
d
|
|
@@ -1191,7 +1193,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1191
1193
|
}, [c, a]),
|
|
1192
1194
|
isExpanded: i
|
|
1193
1195
|
};
|
|
1194
|
-
},
|
|
1196
|
+
}, qr = function({
|
|
1195
1197
|
item: e,
|
|
1196
1198
|
colIndex: t,
|
|
1197
1199
|
numRows: n,
|
|
@@ -1213,18 +1215,18 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1213
1215
|
...c
|
|
1214
1216
|
}
|
|
1215
1217
|
) });
|
|
1216
|
-
},
|
|
1217
|
-
() =>
|
|
1218
|
+
}, jr = (e, t, n, r) => e ? e(t, r) : n, jt = (e, t, n, r) => b(
|
|
1219
|
+
() => jr(e, t, n, r),
|
|
1218
1220
|
[e, t, n, r]
|
|
1219
|
-
),
|
|
1221
|
+
), Vr = (e, t, n) => {
|
|
1220
1222
|
const { background: r, backgroundResolver: o } = Ce(e);
|
|
1221
1223
|
return jt(o, t, r, n);
|
|
1222
1224
|
}, it = (e, t, n) => {
|
|
1223
1225
|
const { background: r, backgroundResolver: o } = e ?? {};
|
|
1224
1226
|
return jt(o, t, r, n);
|
|
1225
|
-
},
|
|
1226
|
-
standardTableCell:
|
|
1227
|
-
},
|
|
1227
|
+
}, Kr = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), $r = (e) => Sn(Pn(e)), Qr = "_standardTableCell_1xzcm_1", Xr = {
|
|
1228
|
+
standardTableCell: Qr
|
|
1229
|
+
}, Ur = E.memo(
|
|
1228
1230
|
function({
|
|
1229
1231
|
enableGridCell: t,
|
|
1230
1232
|
children: n,
|
|
@@ -1249,7 +1251,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1249
1251
|
I,
|
|
1250
1252
|
{
|
|
1251
1253
|
border: "1px solid transparent",
|
|
1252
|
-
className:
|
|
1254
|
+
className: Xr.standardTableCell,
|
|
1253
1255
|
width: "100%",
|
|
1254
1256
|
height: "100%",
|
|
1255
1257
|
justifyContent: i,
|
|
@@ -1264,7 +1266,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1264
1266
|
}
|
|
1265
1267
|
);
|
|
1266
1268
|
}
|
|
1267
|
-
),
|
|
1269
|
+
), Jr = E.memo(function({
|
|
1268
1270
|
label: t,
|
|
1269
1271
|
size: n,
|
|
1270
1272
|
color: r
|
|
@@ -1281,10 +1283,10 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1281
1283
|
children: t
|
|
1282
1284
|
}
|
|
1283
1285
|
) });
|
|
1284
|
-
}),
|
|
1286
|
+
}), Zr = ({
|
|
1285
1287
|
label: e,
|
|
1286
1288
|
textSize: t
|
|
1287
|
-
}) => /* @__PURE__ */ s(
|
|
1289
|
+
}) => /* @__PURE__ */ s(Jr, { label: e, size: t }), eo = E.memo(function({
|
|
1288
1290
|
columnId: t,
|
|
1289
1291
|
item: n,
|
|
1290
1292
|
colIndex: r,
|
|
@@ -1297,7 +1299,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1297
1299
|
keyResolver: d,
|
|
1298
1300
|
enableGridCell: u,
|
|
1299
1301
|
gridCellOptions: l
|
|
1300
|
-
} = T(), h = qe(), f =
|
|
1302
|
+
} = T(), h = qe(), f = sr(), { numNavigableColumns: p } = qt(), w = je(), m = b(() => d(n), [n, d]), g = lr(m), { defaultCellRenderer: y = Zr, defaultTextSize: k } = T(), {
|
|
1301
1303
|
itemValueResolver: O,
|
|
1302
1304
|
itemLabelFormatter: S,
|
|
1303
1305
|
width: v,
|
|
@@ -1314,7 +1316,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1314
1316
|
zIndex: ie,
|
|
1315
1317
|
height: re
|
|
1316
1318
|
} = Ce(t), $ = b(() => O ? O(n) : t in n ? n[t] : "", [O, n, t]), Q = b(
|
|
1317
|
-
() => S ? S($, n) :
|
|
1319
|
+
() => S ? S($, n) : Kr($),
|
|
1318
1320
|
[$, S, n]
|
|
1319
1321
|
), me = typeof H == "boolean" ? H : H ? H(n) : void 0, xe = P(
|
|
1320
1322
|
(ke) => {
|
|
@@ -1331,7 +1333,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1331
1333
|
onChange: K ? (ke) => K(n, ke) : void 0,
|
|
1332
1334
|
...l,
|
|
1333
1335
|
...V
|
|
1334
|
-
}), G = w[t], Ut =
|
|
1336
|
+
}), G = w[t], Ut = Vr(t, n, g) ?? "inherit", Ee = G.sticky ? ie ?? "var(--swui-sticky-column-z-index)" : ie ?? 1, Xe = re ?? "var(--current-row-height)", Jt = b(
|
|
1335
1337
|
() => N({
|
|
1336
1338
|
label: Q,
|
|
1337
1339
|
value: $,
|
|
@@ -1376,7 +1378,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1376
1378
|
background: Ut
|
|
1377
1379
|
},
|
|
1378
1380
|
children: /* @__PURE__ */ s(
|
|
1379
|
-
|
|
1381
|
+
Ur,
|
|
1380
1382
|
{
|
|
1381
1383
|
enableGridCell: u && !he && !ae,
|
|
1382
1384
|
gridCellRequiredProps: J.requiredProps,
|
|
@@ -1399,13 +1401,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1399
1401
|
background: ${e};
|
|
1400
1402
|
}
|
|
1401
1403
|
` : ""}
|
|
1402
|
-
`,
|
|
1403
|
-
expandedRow:
|
|
1404
|
-
expansionRow:
|
|
1405
|
-
stickyContent:
|
|
1406
|
-
stickyLine:
|
|
1407
|
-
stickyBody:
|
|
1408
|
-
},
|
|
1404
|
+
`, to = "_expandedRow_1bih7_9", no = "_expansionRow_1bih7_14", ro = "_stickyContent_1bih7_39", oo = "_stickyLine_1bih7_43", so = "_stickyBody_1bih7_58", we = {
|
|
1405
|
+
expandedRow: to,
|
|
1406
|
+
expansionRow: no,
|
|
1407
|
+
stickyContent: ro,
|
|
1408
|
+
stickyLine: oo,
|
|
1409
|
+
stickyBody: so
|
|
1410
|
+
}, ao = function({ item: t }) {
|
|
1409
1411
|
const {
|
|
1410
1412
|
renderRowExpansion: n,
|
|
1411
1413
|
enableExpandCollapse: r,
|
|
@@ -1426,7 +1428,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1426
1428
|
] }) : n(t, { onRequestCollapse: d }) })
|
|
1427
1429
|
}
|
|
1428
1430
|
) });
|
|
1429
|
-
},
|
|
1431
|
+
}, io = E.memo(function({
|
|
1430
1432
|
item: t,
|
|
1431
1433
|
idListForEnabledItems: n,
|
|
1432
1434
|
rowIndex: r,
|
|
@@ -1443,7 +1445,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1443
1445
|
rowIndent: y,
|
|
1444
1446
|
enableExpandCollapse: k,
|
|
1445
1447
|
showExpandedRowBackground: O
|
|
1446
|
-
} = T(), { isExpanded: S } = $e(t), { isSelected: v, toggleSelected: B, shiftAndToggleSelected: L } =
|
|
1448
|
+
} = T(), { isExpanded: S } = $e(t), { isSelected: v, toggleSelected: B, shiftAndToggleSelected: L } = zr(
|
|
1447
1449
|
t,
|
|
1448
1450
|
n
|
|
1449
1451
|
), j = mn(d, {
|
|
@@ -1452,26 +1454,26 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1452
1454
|
}), N = b(
|
|
1453
1455
|
() => w?.(t, v),
|
|
1454
1456
|
[v, t, w]
|
|
1455
|
-
), V =
|
|
1457
|
+
), V = co(
|
|
1456
1458
|
N,
|
|
1457
1459
|
v,
|
|
1458
1460
|
S && !!O
|
|
1459
|
-
), H =
|
|
1461
|
+
), H = lo(
|
|
1460
1462
|
N,
|
|
1461
1463
|
v,
|
|
1462
1464
|
S && !!O
|
|
1463
|
-
), K =
|
|
1465
|
+
), K = uo(
|
|
1464
1466
|
N,
|
|
1465
1467
|
v,
|
|
1466
1468
|
H
|
|
1467
1469
|
), A = b(
|
|
1468
1470
|
() => m?.(t),
|
|
1469
1471
|
[t, m]
|
|
1470
|
-
), he =
|
|
1472
|
+
), he = hr(), ae = it(
|
|
1471
1473
|
he,
|
|
1472
1474
|
t,
|
|
1473
1475
|
v
|
|
1474
|
-
), ie =
|
|
1476
|
+
), ie = mr(), re = it(
|
|
1475
1477
|
ie,
|
|
1476
1478
|
t,
|
|
1477
1479
|
v
|
|
@@ -1504,7 +1506,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1504
1506
|
alignItems: "center",
|
|
1505
1507
|
justifyContent: "center",
|
|
1506
1508
|
children: /* @__PURE__ */ s(
|
|
1507
|
-
|
|
1509
|
+
qr,
|
|
1508
1510
|
{
|
|
1509
1511
|
colIndex: a,
|
|
1510
1512
|
rowIndex: g ? r : 0,
|
|
@@ -1535,7 +1537,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1535
1537
|
alignItems: "center",
|
|
1536
1538
|
justifyContent: "center",
|
|
1537
1539
|
children: /* @__PURE__ */ s(
|
|
1538
|
-
|
|
1540
|
+
_r,
|
|
1539
1541
|
{
|
|
1540
1542
|
disabled: A,
|
|
1541
1543
|
value: v,
|
|
@@ -1552,7 +1554,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1552
1554
|
}
|
|
1553
1555
|
),
|
|
1554
1556
|
h.map(({ groupConfig: Q, groupId: me }, xe) => /* @__PURE__ */ s(E.Fragment, { children: Q.columnOrder.map((J, G) => /* @__PURE__ */ s(
|
|
1555
|
-
|
|
1557
|
+
eo,
|
|
1556
1558
|
{
|
|
1557
1559
|
columnId: J,
|
|
1558
1560
|
item: t,
|
|
@@ -1619,16 +1621,16 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1619
1621
|
)
|
|
1620
1622
|
}
|
|
1621
1623
|
),
|
|
1622
|
-
/* @__PURE__ */ s(
|
|
1624
|
+
/* @__PURE__ */ s(ao, { item: t })
|
|
1623
1625
|
] });
|
|
1624
|
-
}),
|
|
1626
|
+
}), co = (e, t, n) => e ? typeof e == "string" ? e : e?.background : t ? q("--lhds-color-blue-100") : n ? Pt : "white", lo = (e, t, n) => e ? typeof e == "string" ? e : e?.hoverBackground : t ? q("--lhds-color-blue-200") : n ? En : q("--lhds-color-ui-200"), uo = (e, t, n) => {
|
|
1625
1627
|
if (t)
|
|
1626
1628
|
return q("--lhds-color-blue-200");
|
|
1627
1629
|
if (e)
|
|
1628
1630
|
return n;
|
|
1629
|
-
},
|
|
1630
|
-
summaryRow:
|
|
1631
|
-
},
|
|
1631
|
+
}, ho = (e) => Object.values(e).some((t) => mo(t)), mo = (e) => !!(e.renderSummaryCell || e.summaryText), fo = "_summaryRow_12x8k_1", po = {
|
|
1632
|
+
summaryRow: fo
|
|
1633
|
+
}, wo = E.memo(function({
|
|
1632
1634
|
columnId: t,
|
|
1633
1635
|
items: n,
|
|
1634
1636
|
disableBorderLeft: r,
|
|
@@ -1678,7 +1680,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1678
1680
|
)
|
|
1679
1681
|
}
|
|
1680
1682
|
);
|
|
1681
|
-
}),
|
|
1683
|
+
}), go = (e, t) => {
|
|
1682
1684
|
const n = [];
|
|
1683
1685
|
for (let r = 0; r < e.length; r++) {
|
|
1684
1686
|
const { summaryCellColSpan: o } = t[e[r]], a = Math.min(
|
|
@@ -1690,18 +1692,18 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1690
1692
|
i > 1 && (r += i - 1);
|
|
1691
1693
|
}
|
|
1692
1694
|
return n;
|
|
1693
|
-
},
|
|
1695
|
+
}, yo = E.memo(
|
|
1694
1696
|
function({
|
|
1695
1697
|
items: t
|
|
1696
1698
|
}) {
|
|
1697
1699
|
const n = ne(), { showRowCheckbox: r, enableExpandCollapse: o, columns: a, rowIndent: i } = T();
|
|
1698
|
-
return /* @__PURE__ */ C("tr", { className:
|
|
1700
|
+
return /* @__PURE__ */ C("tr", { className: po.summaryRow, children: [
|
|
1699
1701
|
i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(W, { num: i }) }),
|
|
1700
1702
|
o && /* @__PURE__ */ s("td", {}),
|
|
1701
1703
|
r && /* @__PURE__ */ s("td", {}),
|
|
1702
|
-
n.map(({ groupConfig: c, groupId: d }, u) => /* @__PURE__ */ s(E.Fragment, { children:
|
|
1704
|
+
n.map(({ groupConfig: c, groupId: d }, u) => /* @__PURE__ */ s(E.Fragment, { children: go(c.columnOrder, a).map(
|
|
1703
1705
|
({ columnId: l, colSpan: h }, f) => /* @__PURE__ */ s(
|
|
1704
|
-
|
|
1706
|
+
wo,
|
|
1705
1707
|
{
|
|
1706
1708
|
colSpan: h,
|
|
1707
1709
|
columnId: l,
|
|
@@ -1720,10 +1722,10 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1720
1722
|
/* @__PURE__ */ s("td", {})
|
|
1721
1723
|
] });
|
|
1722
1724
|
}
|
|
1723
|
-
),
|
|
1725
|
+
), bo = function({ items: t }) {
|
|
1724
1726
|
const { columns: n } = T();
|
|
1725
|
-
return b(() =>
|
|
1726
|
-
}, Vt = (e) => (t) => e == null ? !0 : !e(t),
|
|
1727
|
+
return b(() => ho(n), [n]) ? /* @__PURE__ */ s(yo, { items: t }) : null;
|
|
1728
|
+
}, Vt = (e) => (t) => e == null ? !0 : !e(t), vo = E.memo(function({
|
|
1727
1729
|
items: t,
|
|
1728
1730
|
colIndexOffset: n = 0,
|
|
1729
1731
|
rowIndexOffset: r = 0
|
|
@@ -1735,7 +1737,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1735
1737
|
enableExternalSorting: u
|
|
1736
1738
|
} = T(), {
|
|
1737
1739
|
sortOrder: { sortBy: l, desc: h }
|
|
1738
|
-
} = ue(), f =
|
|
1740
|
+
} = ue(), f = Hr(l), p = b(() => {
|
|
1739
1741
|
if (u)
|
|
1740
1742
|
return t ?? [];
|
|
1741
1743
|
if (!t || !t.length)
|
|
@@ -1744,7 +1746,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1744
1746
|
return t;
|
|
1745
1747
|
const m = [...t];
|
|
1746
1748
|
return m.sort(
|
|
1747
|
-
(g, y) =>
|
|
1749
|
+
(g, y) => Ar(
|
|
1748
1750
|
f(g),
|
|
1749
1751
|
f(y)
|
|
1750
1752
|
)
|
|
@@ -1764,7 +1766,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1764
1766
|
};
|
|
1765
1767
|
}, []), /* @__PURE__ */ C(E.Fragment, { children: [
|
|
1766
1768
|
p.map((m, g) => /* @__PURE__ */ s(
|
|
1767
|
-
|
|
1769
|
+
io,
|
|
1768
1770
|
{
|
|
1769
1771
|
alwaysVisible: c || p.length < 30,
|
|
1770
1772
|
item: m,
|
|
@@ -1776,9 +1778,9 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1776
1778
|
},
|
|
1777
1779
|
i(m)
|
|
1778
1780
|
)),
|
|
1779
|
-
/* @__PURE__ */ s(
|
|
1781
|
+
/* @__PURE__ */ s(bo, { items: p })
|
|
1780
1782
|
] }, o.current);
|
|
1781
|
-
}),
|
|
1783
|
+
}), Co = E.memo(function({
|
|
1782
1784
|
error: t,
|
|
1783
1785
|
bannerError: n,
|
|
1784
1786
|
loading: r,
|
|
@@ -1813,7 +1815,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1813
1815
|
) }) }) }) }) : /* @__PURE__ */ C("tbody", { children: [
|
|
1814
1816
|
p?.(),
|
|
1815
1817
|
/* @__PURE__ */ s(
|
|
1816
|
-
|
|
1818
|
+
vo,
|
|
1817
1819
|
{
|
|
1818
1820
|
variant: h,
|
|
1819
1821
|
items: o,
|
|
@@ -1823,7 +1825,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1823
1825
|
),
|
|
1824
1826
|
w?.()
|
|
1825
1827
|
] });
|
|
1826
|
-
}),
|
|
1828
|
+
}), xo = (e) => {
|
|
1827
1829
|
const { keyResolver: t, checkboxDisabledResolver: n } = T(), {
|
|
1828
1830
|
selectedIds: { selectedIds: r }
|
|
1829
1831
|
} = ue(), {
|
|
@@ -1849,7 +1851,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1849
1851
|
allItemsAreSelected: d,
|
|
1850
1852
|
onClickCheckbox: u
|
|
1851
1853
|
};
|
|
1852
|
-
},
|
|
1854
|
+
}, ko = (e) => {
|
|
1853
1855
|
const { keyResolver: t } = T(), {
|
|
1854
1856
|
expandedRows: { selectedIds: n }
|
|
1855
1857
|
} = ue(), {
|
|
@@ -1869,8 +1871,8 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1869
1871
|
allItemsAreExpanded: i,
|
|
1870
1872
|
toggleExpanded: c
|
|
1871
1873
|
};
|
|
1872
|
-
},
|
|
1873
|
-
const { dispatch: t, actions: n } = ve(), r =
|
|
1874
|
+
}, So = (e) => {
|
|
1875
|
+
const { dispatch: t, actions: n } = ve(), r = ar(), {
|
|
1874
1876
|
sortOrder: { desc: o, sortBy: a }
|
|
1875
1877
|
} = ue();
|
|
1876
1878
|
return b(() => {
|
|
@@ -1885,9 +1887,9 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1885
1887
|
}
|
|
1886
1888
|
};
|
|
1887
1889
|
}, [e, a, o, t, n, r]);
|
|
1888
|
-
},
|
|
1889
|
-
standardTableHeadTh:
|
|
1890
|
-
},
|
|
1890
|
+
}, Po = "_standardTableHeadTh_swsxb_8", Oo = {
|
|
1891
|
+
standardTableHeadTh: Po
|
|
1892
|
+
}, Io = E.memo(
|
|
1891
1893
|
function({
|
|
1892
1894
|
columnId: t,
|
|
1893
1895
|
borderFromGroup: n,
|
|
@@ -1902,7 +1904,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1902
1904
|
background: u,
|
|
1903
1905
|
width: l,
|
|
1904
1906
|
minWidth: h
|
|
1905
|
-
} = Ce(t), { disableSorting: f, infoIconTooltipAppendTo: p, infoIconTooltipZIndex: w } = T(), m = je(), { arrow: g, selected: y, onClickColumnHead: k } =
|
|
1907
|
+
} = Ce(t), { disableSorting: f, infoIconTooltipAppendTo: p, infoIconTooltipZIndex: w } = T(), m = je(), { arrow: g, selected: y, onClickColumnHead: k } = So(t), O = typeof a == "string" ? a : $r(t), S = Ke(
|
|
1906
1908
|
n,
|
|
1907
1909
|
r,
|
|
1908
1910
|
i
|
|
@@ -1910,7 +1912,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1910
1912
|
return /* @__PURE__ */ s(
|
|
1911
1913
|
"th",
|
|
1912
1914
|
{
|
|
1913
|
-
className:
|
|
1915
|
+
className: Oo.standardTableHeadTh,
|
|
1914
1916
|
style: {
|
|
1915
1917
|
background: u ?? "white",
|
|
1916
1918
|
borderLeft: S,
|
|
@@ -1942,7 +1944,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1942
1944
|
}
|
|
1943
1945
|
);
|
|
1944
1946
|
}
|
|
1945
|
-
),
|
|
1947
|
+
), To = E.memo(function({ items: t, height: n = _e }) {
|
|
1946
1948
|
const r = ne(), {
|
|
1947
1949
|
showHeaderCheckbox: o,
|
|
1948
1950
|
showHeaderExpandCollapse: a,
|
|
@@ -1950,7 +1952,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
1950
1952
|
rowIndent: c,
|
|
1951
1953
|
stickyCheckboxColumn: d,
|
|
1952
1954
|
showRowCheckbox: u
|
|
1953
|
-
} = T(), { allItemsAreExpanded: l, toggleExpanded: h } =
|
|
1955
|
+
} = T(), { allItemsAreExpanded: l, toggleExpanded: h } = ko(t), { allItemsAreSelected: f, onClickCheckbox: p, selectionIsEmpty: w } = xo(t), m = !t || t.length === 0, g = {
|
|
1954
1956
|
zIndex: d ? "var(--swui-sticky-group-header-z-index)" : void 0,
|
|
1955
1957
|
background: d ? "white" : void 0,
|
|
1956
1958
|
position: d ? "sticky" : void 0,
|
|
@@ -2015,7 +2017,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2015
2017
|
}
|
|
2016
2018
|
),
|
|
2017
2019
|
r.map(({ groupConfig: y, groupId: k }, O) => /* @__PURE__ */ s(E.Fragment, { children: y.columnOrder.map((S, v) => /* @__PURE__ */ s(
|
|
2018
|
-
|
|
2020
|
+
Io,
|
|
2019
2021
|
{
|
|
2020
2022
|
columnId: S,
|
|
2021
2023
|
borderFromGroup: De(
|
|
@@ -2030,7 +2032,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2030
2032
|
c && /* @__PURE__ */ s("th", { children: /* @__PURE__ */ s(I, { indent: c }) }),
|
|
2031
2033
|
/* @__PURE__ */ s("th", {})
|
|
2032
2034
|
] });
|
|
2033
|
-
}),
|
|
2035
|
+
}), aa = function({
|
|
2034
2036
|
tableContext: t,
|
|
2035
2037
|
config: n,
|
|
2036
2038
|
columnGroupOrder: r,
|
|
@@ -2049,10 +2051,10 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2049
2051
|
headerRowOffsetTop: m,
|
|
2050
2052
|
stickyHeader: g,
|
|
2051
2053
|
zIndex: y
|
|
2052
|
-
} = n, { tableContext: k } =
|
|
2054
|
+
} = n, { tableContext: k } = Er(
|
|
2053
2055
|
o ?? l,
|
|
2054
2056
|
Wt(f, h)
|
|
2055
|
-
), O = t || k, { state: S, actions: v, dispatch: B } = O, L =
|
|
2057
|
+
), O = t || k, { state: S, actions: v, dispatch: B } = O, L = dr(
|
|
2056
2058
|
S.selectedIds.selectedIds
|
|
2057
2059
|
), j = b(
|
|
2058
2060
|
() => ({
|
|
@@ -2068,14 +2070,14 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2068
2070
|
),
|
|
2069
2071
|
[V, H, K]
|
|
2070
2072
|
), he = b(
|
|
2071
|
-
() =>
|
|
2073
|
+
() => br(n),
|
|
2072
2074
|
[n]
|
|
2073
|
-
), ae = b(() =>
|
|
2074
|
-
() =>
|
|
2075
|
+
), ae = b(() => Mr(n), [n]), ie = b(
|
|
2076
|
+
() => Ir(n),
|
|
2075
2077
|
[n]
|
|
2076
2078
|
), re = b(() => {
|
|
2077
2079
|
try {
|
|
2078
|
-
|
|
2080
|
+
Cr(n);
|
|
2079
2081
|
return;
|
|
2080
2082
|
} catch (Q) {
|
|
2081
2083
|
return Q instanceof Error ? Q : new Error("Unknown error");
|
|
@@ -2096,7 +2098,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2096
2098
|
isolation: "isolate",
|
|
2097
2099
|
"--current-left-offset": p && w ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : w ? "var(--swui-checkbox-cell-width)" : p ? "var(--swui-expand-cell-width)" : "0px"
|
|
2098
2100
|
},
|
|
2099
|
-
children: /* @__PURE__ */ s(Ht.Provider, { value: ie, children: /* @__PURE__ */ s(_t.Provider, { value: ae, children: /* @__PURE__ */ s(
|
|
2101
|
+
children: /* @__PURE__ */ s(Ht.Provider, { value: ie, children: /* @__PURE__ */ s(_t.Provider, { value: ae, children: /* @__PURE__ */ s(ur.Provider, { value: a, children: /* @__PURE__ */ s(
|
|
2100
2102
|
Rt.Provider,
|
|
2101
2103
|
{
|
|
2102
2104
|
value: o ?? l,
|
|
@@ -2113,15 +2115,15 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2113
2115
|
{
|
|
2114
2116
|
value: he,
|
|
2115
2117
|
children: /* @__PURE__ */ s(
|
|
2116
|
-
|
|
2118
|
+
cr.Provider,
|
|
2117
2119
|
{
|
|
2118
2120
|
value: N,
|
|
2119
2121
|
children: /* @__PURE__ */ C(
|
|
2120
|
-
|
|
2122
|
+
ir.Provider,
|
|
2121
2123
|
{
|
|
2122
2124
|
value: "columnGroupOrder" in n ? r ?? n.columnGroupOrder : r,
|
|
2123
2125
|
children: [
|
|
2124
|
-
/* @__PURE__ */ s(
|
|
2126
|
+
/* @__PURE__ */ s(Wr, {}),
|
|
2125
2127
|
/* @__PURE__ */ s(Lt.Provider, { value: i, children: /* @__PURE__ */ C(
|
|
2126
2128
|
Nt.Provider,
|
|
2127
2129
|
{
|
|
@@ -2129,13 +2131,13 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2129
2131
|
children: [
|
|
2130
2132
|
/* @__PURE__ */ C("thead", { style: $, children: [
|
|
2131
2133
|
(r || "columnGroupOrder" in n) && /* @__PURE__ */ s(
|
|
2132
|
-
|
|
2134
|
+
yr,
|
|
2133
2135
|
{
|
|
2134
2136
|
height: "var(--current-row-height)"
|
|
2135
2137
|
}
|
|
2136
2138
|
),
|
|
2137
2139
|
/* @__PURE__ */ s(
|
|
2138
|
-
|
|
2140
|
+
To,
|
|
2139
2141
|
{
|
|
2140
2142
|
items: u.items,
|
|
2141
2143
|
height: "var(--current-row-height)"
|
|
@@ -2144,7 +2146,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2144
2146
|
d?.()
|
|
2145
2147
|
] }),
|
|
2146
2148
|
/* @__PURE__ */ s(
|
|
2147
|
-
|
|
2149
|
+
Co,
|
|
2148
2150
|
{
|
|
2149
2151
|
variant: a,
|
|
2150
2152
|
...u
|
|
@@ -2171,7 +2173,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2171
2173
|
}, ce = (e, t) => ({
|
|
2172
2174
|
...t,
|
|
2173
2175
|
itemValueResolver: e
|
|
2174
|
-
}),
|
|
2176
|
+
}), Do = (e) => ({
|
|
2175
2177
|
label: t,
|
|
2176
2178
|
gridCell: {
|
|
2177
2179
|
editorValue: n,
|
|
@@ -2193,7 +2195,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2193
2195
|
selectAllOnMount: !i,
|
|
2194
2196
|
onMove: d
|
|
2195
2197
|
}
|
|
2196
|
-
) : /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(te, { color: "var(--swui-primary-action-color)", size: e, children: t }) }),
|
|
2198
|
+
) : /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(te, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), ia = (e, t, n) => ({
|
|
2197
2199
|
label: r,
|
|
2198
2200
|
item: o,
|
|
2199
2201
|
gridCell: {
|
|
@@ -2229,7 +2231,7 @@ import './index.css';const kt = E.createContext({}), Xs = ({
|
|
|
2229
2231
|
warningOnEmpty: p
|
|
2230
2232
|
}
|
|
2231
2233
|
) });
|
|
2232
|
-
}, Kt = 6048e5,
|
|
2234
|
+
}, Kt = 6048e5, Ro = 864e5, ct = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
2233
2235
|
function U(e, t) {
|
|
2234
2236
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && ct in e ? e[ct](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2235
2237
|
}
|
|
@@ -2240,9 +2242,9 @@ function D(e, t, n) {
|
|
|
2240
2242
|
const r = Y(e, n?.in);
|
|
2241
2243
|
return isNaN(t) ? U(e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
2242
2244
|
}
|
|
2243
|
-
let
|
|
2245
|
+
let Eo = {};
|
|
2244
2246
|
function Re() {
|
|
2245
|
-
return
|
|
2247
|
+
return Eo;
|
|
2246
2248
|
}
|
|
2247
2249
|
function ye(e, t) {
|
|
2248
2250
|
const n = Re(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = Y(e, t?.in), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
@@ -2273,7 +2275,7 @@ function dt(e) {
|
|
|
2273
2275
|
);
|
|
2274
2276
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
2275
2277
|
}
|
|
2276
|
-
function
|
|
2278
|
+
function Mo(e, ...t) {
|
|
2277
2279
|
const n = U.bind(
|
|
2278
2280
|
null,
|
|
2279
2281
|
t.find((r) => typeof r == "object")
|
|
@@ -2284,29 +2286,29 @@ function lt(e, t) {
|
|
|
2284
2286
|
const n = Y(e, t?.in);
|
|
2285
2287
|
return n.setHours(0, 0, 0, 0), n;
|
|
2286
2288
|
}
|
|
2287
|
-
function
|
|
2288
|
-
const [r, o] =
|
|
2289
|
+
function Go(e, t, n) {
|
|
2290
|
+
const [r, o] = Mo(
|
|
2289
2291
|
n?.in,
|
|
2290
2292
|
e,
|
|
2291
2293
|
t
|
|
2292
2294
|
), a = lt(r), i = lt(o), c = +a - dt(a), d = +i - dt(i);
|
|
2293
|
-
return Math.round((c - d) /
|
|
2295
|
+
return Math.round((c - d) / Ro);
|
|
2294
2296
|
}
|
|
2295
|
-
function
|
|
2297
|
+
function Wo(e, t) {
|
|
2296
2298
|
const n = $t(e, t), r = U(e, 0);
|
|
2297
2299
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Oe(r);
|
|
2298
2300
|
}
|
|
2299
|
-
function
|
|
2301
|
+
function Bo(e) {
|
|
2300
2302
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2301
2303
|
}
|
|
2302
|
-
function
|
|
2303
|
-
return !(!
|
|
2304
|
+
function Fo(e) {
|
|
2305
|
+
return !(!Bo(e) && typeof e != "number" || isNaN(+Y(e)));
|
|
2304
2306
|
}
|
|
2305
|
-
function
|
|
2307
|
+
function Lo(e, t) {
|
|
2306
2308
|
const n = Y(e, t?.in);
|
|
2307
2309
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
2308
2310
|
}
|
|
2309
|
-
const
|
|
2311
|
+
const No = {
|
|
2310
2312
|
lessThanXSeconds: {
|
|
2311
2313
|
one: "less than a second",
|
|
2312
2314
|
other: "less than {{count}} seconds"
|
|
@@ -2368,9 +2370,9 @@ const Fo = {
|
|
|
2368
2370
|
one: "almost 1 year",
|
|
2369
2371
|
other: "almost {{count}} years"
|
|
2370
2372
|
}
|
|
2371
|
-
},
|
|
2373
|
+
}, Ao = (e, t, n) => {
|
|
2372
2374
|
let r;
|
|
2373
|
-
const o =
|
|
2375
|
+
const o = No[e];
|
|
2374
2376
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
2375
2377
|
};
|
|
2376
2378
|
function We(e) {
|
|
@@ -2379,42 +2381,42 @@ function We(e) {
|
|
|
2379
2381
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
2380
2382
|
};
|
|
2381
2383
|
}
|
|
2382
|
-
const
|
|
2384
|
+
const Ho = {
|
|
2383
2385
|
full: "EEEE, MMMM do, y",
|
|
2384
2386
|
long: "MMMM do, y",
|
|
2385
2387
|
medium: "MMM d, y",
|
|
2386
2388
|
short: "MM/dd/yyyy"
|
|
2387
|
-
},
|
|
2389
|
+
}, _o = {
|
|
2388
2390
|
full: "h:mm:ss a zzzz",
|
|
2389
2391
|
long: "h:mm:ss a z",
|
|
2390
2392
|
medium: "h:mm:ss a",
|
|
2391
2393
|
short: "h:mm a"
|
|
2392
|
-
},
|
|
2394
|
+
}, Yo = {
|
|
2393
2395
|
full: "{{date}} 'at' {{time}}",
|
|
2394
2396
|
long: "{{date}} 'at' {{time}}",
|
|
2395
2397
|
medium: "{{date}}, {{time}}",
|
|
2396
2398
|
short: "{{date}}, {{time}}"
|
|
2397
|
-
},
|
|
2399
|
+
}, zo = {
|
|
2398
2400
|
date: We({
|
|
2399
|
-
formats:
|
|
2401
|
+
formats: Ho,
|
|
2400
2402
|
defaultWidth: "full"
|
|
2401
2403
|
}),
|
|
2402
2404
|
time: We({
|
|
2403
|
-
formats:
|
|
2405
|
+
formats: _o,
|
|
2404
2406
|
defaultWidth: "full"
|
|
2405
2407
|
}),
|
|
2406
2408
|
dateTime: We({
|
|
2407
|
-
formats:
|
|
2409
|
+
formats: Yo,
|
|
2408
2410
|
defaultWidth: "full"
|
|
2409
2411
|
})
|
|
2410
|
-
},
|
|
2412
|
+
}, qo = {
|
|
2411
2413
|
lastWeek: "'last' eeee 'at' p",
|
|
2412
2414
|
yesterday: "'yesterday at' p",
|
|
2413
2415
|
today: "'today at' p",
|
|
2414
2416
|
tomorrow: "'tomorrow at' p",
|
|
2415
2417
|
nextWeek: "eeee 'at' p",
|
|
2416
2418
|
other: "P"
|
|
2417
|
-
},
|
|
2419
|
+
}, jo = (e, t, n, r) => qo[e];
|
|
2418
2420
|
function fe(e) {
|
|
2419
2421
|
return (t, n) => {
|
|
2420
2422
|
const r = n?.context ? String(n.context) : "standalone";
|
|
@@ -2430,15 +2432,15 @@ function fe(e) {
|
|
|
2430
2432
|
return o[a];
|
|
2431
2433
|
};
|
|
2432
2434
|
}
|
|
2433
|
-
const
|
|
2435
|
+
const Vo = {
|
|
2434
2436
|
narrow: ["B", "A"],
|
|
2435
2437
|
abbreviated: ["BC", "AD"],
|
|
2436
2438
|
wide: ["Before Christ", "Anno Domini"]
|
|
2437
|
-
},
|
|
2439
|
+
}, Ko = {
|
|
2438
2440
|
narrow: ["1", "2", "3", "4"],
|
|
2439
2441
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
2440
2442
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
2441
|
-
},
|
|
2443
|
+
}, $o = {
|
|
2442
2444
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
2443
2445
|
abbreviated: [
|
|
2444
2446
|
"Jan",
|
|
@@ -2468,7 +2470,7 @@ const qo = {
|
|
|
2468
2470
|
"November",
|
|
2469
2471
|
"December"
|
|
2470
2472
|
]
|
|
2471
|
-
},
|
|
2473
|
+
}, Qo = {
|
|
2472
2474
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
2473
2475
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
2474
2476
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -2481,7 +2483,7 @@ const qo = {
|
|
|
2481
2483
|
"Friday",
|
|
2482
2484
|
"Saturday"
|
|
2483
2485
|
]
|
|
2484
|
-
},
|
|
2486
|
+
}, Xo = {
|
|
2485
2487
|
narrow: {
|
|
2486
2488
|
am: "a",
|
|
2487
2489
|
pm: "p",
|
|
@@ -2512,7 +2514,7 @@ const qo = {
|
|
|
2512
2514
|
evening: "evening",
|
|
2513
2515
|
night: "night"
|
|
2514
2516
|
}
|
|
2515
|
-
},
|
|
2517
|
+
}, Uo = {
|
|
2516
2518
|
narrow: {
|
|
2517
2519
|
am: "a",
|
|
2518
2520
|
pm: "p",
|
|
@@ -2543,7 +2545,7 @@ const qo = {
|
|
|
2543
2545
|
evening: "in the evening",
|
|
2544
2546
|
night: "at night"
|
|
2545
2547
|
}
|
|
2546
|
-
},
|
|
2548
|
+
}, Jo = (e, t) => {
|
|
2547
2549
|
const n = Number(e), r = n % 100;
|
|
2548
2550
|
if (r > 20 || r < 10)
|
|
2549
2551
|
switch (r % 10) {
|
|
@@ -2555,29 +2557,29 @@ const qo = {
|
|
|
2555
2557
|
return n + "rd";
|
|
2556
2558
|
}
|
|
2557
2559
|
return n + "th";
|
|
2558
|
-
},
|
|
2559
|
-
ordinalNumber:
|
|
2560
|
+
}, Zo = {
|
|
2561
|
+
ordinalNumber: Jo,
|
|
2560
2562
|
era: fe({
|
|
2561
|
-
values:
|
|
2563
|
+
values: Vo,
|
|
2562
2564
|
defaultWidth: "wide"
|
|
2563
2565
|
}),
|
|
2564
2566
|
quarter: fe({
|
|
2565
|
-
values:
|
|
2567
|
+
values: Ko,
|
|
2566
2568
|
defaultWidth: "wide",
|
|
2567
2569
|
argumentCallback: (e) => e - 1
|
|
2568
2570
|
}),
|
|
2569
2571
|
month: fe({
|
|
2570
|
-
values:
|
|
2572
|
+
values: $o,
|
|
2571
2573
|
defaultWidth: "wide"
|
|
2572
2574
|
}),
|
|
2573
2575
|
day: fe({
|
|
2574
|
-
values:
|
|
2576
|
+
values: Qo,
|
|
2575
2577
|
defaultWidth: "wide"
|
|
2576
2578
|
}),
|
|
2577
2579
|
dayPeriod: fe({
|
|
2578
|
-
values:
|
|
2580
|
+
values: Xo,
|
|
2579
2581
|
defaultWidth: "wide",
|
|
2580
|
-
formattingValues:
|
|
2582
|
+
formattingValues: Uo,
|
|
2581
2583
|
defaultFormattingWidth: "wide"
|
|
2582
2584
|
})
|
|
2583
2585
|
};
|
|
@@ -2586,9 +2588,9 @@ function pe(e) {
|
|
|
2586
2588
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
|
|
2587
2589
|
if (!a)
|
|
2588
2590
|
return null;
|
|
2589
|
-
const i = a[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(c) ?
|
|
2591
|
+
const i = a[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(c) ? ts(c, (h) => h.test(i)) : (
|
|
2590
2592
|
// [TODO] -- I challenge you to fix the type
|
|
2591
|
-
|
|
2593
|
+
es(c, (h) => h.test(i))
|
|
2592
2594
|
);
|
|
2593
2595
|
let u;
|
|
2594
2596
|
u = e.valueCallback ? e.valueCallback(d) : d, u = n.valueCallback ? (
|
|
@@ -2599,17 +2601,17 @@ function pe(e) {
|
|
|
2599
2601
|
return { value: u, rest: l };
|
|
2600
2602
|
};
|
|
2601
2603
|
}
|
|
2602
|
-
function
|
|
2604
|
+
function es(e, t) {
|
|
2603
2605
|
for (const n in e)
|
|
2604
2606
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
2605
2607
|
return n;
|
|
2606
2608
|
}
|
|
2607
|
-
function
|
|
2609
|
+
function ts(e, t) {
|
|
2608
2610
|
for (let n = 0; n < e.length; n++)
|
|
2609
2611
|
if (t(e[n]))
|
|
2610
2612
|
return n;
|
|
2611
2613
|
}
|
|
2612
|
-
function
|
|
2614
|
+
function ns(e) {
|
|
2613
2615
|
return (t, n = {}) => {
|
|
2614
2616
|
const r = t.match(e.matchPattern);
|
|
2615
2617
|
if (!r) return null;
|
|
@@ -2621,23 +2623,23 @@ function es(e) {
|
|
|
2621
2623
|
return { value: i, rest: c };
|
|
2622
2624
|
};
|
|
2623
2625
|
}
|
|
2624
|
-
const
|
|
2626
|
+
const rs = /^(\d+)(th|st|nd|rd)?/i, os = /\d+/i, ss = {
|
|
2625
2627
|
narrow: /^(b|a)/i,
|
|
2626
2628
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
2627
2629
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
2628
|
-
},
|
|
2630
|
+
}, as = {
|
|
2629
2631
|
any: [/^b/i, /^(a|c)/i]
|
|
2630
|
-
},
|
|
2632
|
+
}, is = {
|
|
2631
2633
|
narrow: /^[1234]/i,
|
|
2632
2634
|
abbreviated: /^q[1234]/i,
|
|
2633
2635
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
2634
|
-
},
|
|
2636
|
+
}, cs = {
|
|
2635
2637
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
2636
|
-
},
|
|
2638
|
+
}, ds = {
|
|
2637
2639
|
narrow: /^[jfmasond]/i,
|
|
2638
2640
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
2639
2641
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
2640
|
-
},
|
|
2642
|
+
}, ls = {
|
|
2641
2643
|
narrow: [
|
|
2642
2644
|
/^j/i,
|
|
2643
2645
|
/^f/i,
|
|
@@ -2666,18 +2668,18 @@ const ts = /^(\d+)(th|st|nd|rd)?/i, ns = /\d+/i, rs = {
|
|
|
2666
2668
|
/^n/i,
|
|
2667
2669
|
/^d/i
|
|
2668
2670
|
]
|
|
2669
|
-
},
|
|
2671
|
+
}, us = {
|
|
2670
2672
|
narrow: /^[smtwf]/i,
|
|
2671
2673
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
2672
2674
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
2673
2675
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
2674
|
-
},
|
|
2676
|
+
}, hs = {
|
|
2675
2677
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
2676
2678
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
2677
|
-
},
|
|
2679
|
+
}, ms = {
|
|
2678
2680
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
2679
2681
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
2680
|
-
},
|
|
2682
|
+
}, fs = {
|
|
2681
2683
|
any: {
|
|
2682
2684
|
am: /^a/i,
|
|
2683
2685
|
pm: /^p/i,
|
|
@@ -2688,61 +2690,61 @@ const ts = /^(\d+)(th|st|nd|rd)?/i, ns = /\d+/i, rs = {
|
|
|
2688
2690
|
evening: /evening/i,
|
|
2689
2691
|
night: /night/i
|
|
2690
2692
|
}
|
|
2691
|
-
},
|
|
2692
|
-
ordinalNumber:
|
|
2693
|
-
matchPattern:
|
|
2694
|
-
parsePattern:
|
|
2693
|
+
}, ps = {
|
|
2694
|
+
ordinalNumber: ns({
|
|
2695
|
+
matchPattern: rs,
|
|
2696
|
+
parsePattern: os,
|
|
2695
2697
|
valueCallback: (e) => parseInt(e, 10)
|
|
2696
2698
|
}),
|
|
2697
2699
|
era: pe({
|
|
2698
|
-
matchPatterns:
|
|
2700
|
+
matchPatterns: ss,
|
|
2699
2701
|
defaultMatchWidth: "wide",
|
|
2700
|
-
parsePatterns:
|
|
2702
|
+
parsePatterns: as,
|
|
2701
2703
|
defaultParseWidth: "any"
|
|
2702
2704
|
}),
|
|
2703
2705
|
quarter: pe({
|
|
2704
|
-
matchPatterns:
|
|
2706
|
+
matchPatterns: is,
|
|
2705
2707
|
defaultMatchWidth: "wide",
|
|
2706
|
-
parsePatterns:
|
|
2708
|
+
parsePatterns: cs,
|
|
2707
2709
|
defaultParseWidth: "any",
|
|
2708
2710
|
valueCallback: (e) => e + 1
|
|
2709
2711
|
}),
|
|
2710
2712
|
month: pe({
|
|
2711
|
-
matchPatterns:
|
|
2713
|
+
matchPatterns: ds,
|
|
2712
2714
|
defaultMatchWidth: "wide",
|
|
2713
|
-
parsePatterns:
|
|
2715
|
+
parsePatterns: ls,
|
|
2714
2716
|
defaultParseWidth: "any"
|
|
2715
2717
|
}),
|
|
2716
2718
|
day: pe({
|
|
2717
|
-
matchPatterns:
|
|
2719
|
+
matchPatterns: us,
|
|
2718
2720
|
defaultMatchWidth: "wide",
|
|
2719
|
-
parsePatterns:
|
|
2721
|
+
parsePatterns: hs,
|
|
2720
2722
|
defaultParseWidth: "any"
|
|
2721
2723
|
}),
|
|
2722
2724
|
dayPeriod: pe({
|
|
2723
|
-
matchPatterns:
|
|
2725
|
+
matchPatterns: ms,
|
|
2724
2726
|
defaultMatchWidth: "any",
|
|
2725
|
-
parsePatterns:
|
|
2727
|
+
parsePatterns: fs,
|
|
2726
2728
|
defaultParseWidth: "any"
|
|
2727
2729
|
})
|
|
2728
|
-
},
|
|
2730
|
+
}, ws = {
|
|
2729
2731
|
code: "en-US",
|
|
2730
|
-
formatDistance:
|
|
2731
|
-
formatLong:
|
|
2732
|
-
formatRelative:
|
|
2733
|
-
localize:
|
|
2734
|
-
match:
|
|
2732
|
+
formatDistance: Ao,
|
|
2733
|
+
formatLong: zo,
|
|
2734
|
+
formatRelative: jo,
|
|
2735
|
+
localize: Zo,
|
|
2736
|
+
match: ps,
|
|
2735
2737
|
options: {
|
|
2736
2738
|
weekStartsOn: 0,
|
|
2737
2739
|
firstWeekContainsDate: 1
|
|
2738
2740
|
}
|
|
2739
2741
|
};
|
|
2740
|
-
function
|
|
2742
|
+
function gs(e, t) {
|
|
2741
2743
|
const n = Y(e, t?.in);
|
|
2742
|
-
return
|
|
2744
|
+
return Go(n, Lo(n)) + 1;
|
|
2743
2745
|
}
|
|
2744
|
-
function
|
|
2745
|
-
const n = Y(e, t?.in), r = +Oe(n) - +
|
|
2746
|
+
function ys(e, t) {
|
|
2747
|
+
const n = Y(e, t?.in), r = +Oe(n) - +Wo(n);
|
|
2746
2748
|
return Math.round(r / Kt) + 1;
|
|
2747
2749
|
}
|
|
2748
2750
|
function Qt(e, t) {
|
|
@@ -2753,12 +2755,12 @@ function Qt(e, t) {
|
|
|
2753
2755
|
const u = ye(d, t);
|
|
2754
2756
|
return +n >= +c ? r + 1 : +n >= +u ? r : r - 1;
|
|
2755
2757
|
}
|
|
2756
|
-
function
|
|
2758
|
+
function bs(e, t) {
|
|
2757
2759
|
const n = Re(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Qt(e, t), a = U(t?.in || e, 0);
|
|
2758
2760
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), ye(a, t);
|
|
2759
2761
|
}
|
|
2760
|
-
function
|
|
2761
|
-
const n = Y(e, t?.in), r = +ye(n, t) - +
|
|
2762
|
+
function vs(e, t) {
|
|
2763
|
+
const n = Y(e, t?.in), r = +ye(n, t) - +bs(n, t);
|
|
2762
2764
|
return Math.round(r / Kt) + 1;
|
|
2763
2765
|
}
|
|
2764
2766
|
function x(e, t) {
|
|
@@ -2998,12 +3000,12 @@ const Z = {
|
|
|
2998
3000
|
},
|
|
2999
3001
|
// Local week of year
|
|
3000
3002
|
w: function(e, t, n, r) {
|
|
3001
|
-
const o =
|
|
3003
|
+
const o = vs(e, r);
|
|
3002
3004
|
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : x(o, t.length);
|
|
3003
3005
|
},
|
|
3004
3006
|
// ISO week of year
|
|
3005
3007
|
I: function(e, t, n) {
|
|
3006
|
-
const r =
|
|
3008
|
+
const r = ys(e);
|
|
3007
3009
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : x(r, t.length);
|
|
3008
3010
|
},
|
|
3009
3011
|
// Day of the month
|
|
@@ -3012,7 +3014,7 @@ const Z = {
|
|
|
3012
3014
|
},
|
|
3013
3015
|
// Day of year
|
|
3014
3016
|
D: function(e, t, n) {
|
|
3015
|
-
const r =
|
|
3017
|
+
const r = gs(e);
|
|
3016
3018
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : x(r, t.length);
|
|
3017
3019
|
},
|
|
3018
3020
|
// Day of week
|
|
@@ -3378,7 +3380,7 @@ const ft = (e, t) => {
|
|
|
3378
3380
|
default:
|
|
3379
3381
|
return t.time({ width: "full" });
|
|
3380
3382
|
}
|
|
3381
|
-
},
|
|
3383
|
+
}, Cs = (e, t) => {
|
|
3382
3384
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
3383
3385
|
if (!o)
|
|
3384
3386
|
return ft(e, t);
|
|
@@ -3398,45 +3400,45 @@ const ft = (e, t) => {
|
|
|
3398
3400
|
break;
|
|
3399
3401
|
}
|
|
3400
3402
|
return a.replace("{{date}}", ft(r, t)).replace("{{time}}", Xt(o, t));
|
|
3401
|
-
},
|
|
3403
|
+
}, xs = {
|
|
3402
3404
|
p: Xt,
|
|
3403
|
-
P:
|
|
3404
|
-
},
|
|
3405
|
-
function
|
|
3406
|
-
return
|
|
3405
|
+
P: Cs
|
|
3406
|
+
}, ks = /^D+$/, Ss = /^Y+$/, Ps = ["D", "DD", "YY", "YYYY"];
|
|
3407
|
+
function Os(e) {
|
|
3408
|
+
return ks.test(e);
|
|
3407
3409
|
}
|
|
3408
|
-
function
|
|
3409
|
-
return
|
|
3410
|
+
function Is(e) {
|
|
3411
|
+
return Ss.test(e);
|
|
3410
3412
|
}
|
|
3411
|
-
function
|
|
3412
|
-
const r =
|
|
3413
|
-
if (console.warn(r),
|
|
3413
|
+
function Ts(e, t, n) {
|
|
3414
|
+
const r = Ds(e, t, n);
|
|
3415
|
+
if (console.warn(r), Ps.includes(e)) throw new RangeError(r);
|
|
3414
3416
|
}
|
|
3415
|
-
function
|
|
3417
|
+
function Ds(e, t, n) {
|
|
3416
3418
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
3417
3419
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
3418
3420
|
}
|
|
3419
|
-
const
|
|
3420
|
-
function
|
|
3421
|
-
const r = Re(), o = r.locale ??
|
|
3422
|
-
if (!
|
|
3421
|
+
const Rs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Es = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ms = /^'([^]*?)'?$/, Gs = /''/g, Ws = /[a-zA-Z]/;
|
|
3422
|
+
function Bs(e, t, n) {
|
|
3423
|
+
const r = Re(), o = r.locale ?? ws, a = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, c = Y(e, n?.in);
|
|
3424
|
+
if (!Fo(c))
|
|
3423
3425
|
throw new RangeError("Invalid time value");
|
|
3424
|
-
let d = t.match(
|
|
3426
|
+
let d = t.match(Es).map((l) => {
|
|
3425
3427
|
const h = l[0];
|
|
3426
3428
|
if (h === "p" || h === "P") {
|
|
3427
|
-
const f =
|
|
3429
|
+
const f = xs[h];
|
|
3428
3430
|
return f(l, o.formatLong);
|
|
3429
3431
|
}
|
|
3430
3432
|
return l;
|
|
3431
|
-
}).join("").match(
|
|
3433
|
+
}).join("").match(Rs).map((l) => {
|
|
3432
3434
|
if (l === "''")
|
|
3433
3435
|
return { isToken: !1, value: "'" };
|
|
3434
3436
|
const h = l[0];
|
|
3435
3437
|
if (h === "'")
|
|
3436
|
-
return { isToken: !1, value:
|
|
3438
|
+
return { isToken: !1, value: Fs(l) };
|
|
3437
3439
|
if (ut[h])
|
|
3438
3440
|
return { isToken: !0, value: l };
|
|
3439
|
-
if (h.match(
|
|
3441
|
+
if (h.match(Ws))
|
|
3440
3442
|
throw new RangeError(
|
|
3441
3443
|
"Format string contains an unescaped latin alphabet character `" + h + "`"
|
|
3442
3444
|
);
|
|
@@ -3451,16 +3453,16 @@ function Gs(e, t, n) {
|
|
|
3451
3453
|
return d.map((l) => {
|
|
3452
3454
|
if (!l.isToken) return l.value;
|
|
3453
3455
|
const h = l.value;
|
|
3454
|
-
(
|
|
3456
|
+
(Is(h) || Os(h)) && Ts(h, t, String(e));
|
|
3455
3457
|
const f = ut[h[0]];
|
|
3456
3458
|
return f(c, h, o.localize, u);
|
|
3457
3459
|
}).join("");
|
|
3458
3460
|
}
|
|
3459
|
-
function
|
|
3460
|
-
const t = e.match(
|
|
3461
|
-
return t ? t[1].replace(
|
|
3461
|
+
function Fs(e) {
|
|
3462
|
+
const t = e.match(Ms);
|
|
3463
|
+
return t ? t[1].replace(Gs, "'") : e;
|
|
3462
3464
|
}
|
|
3463
|
-
const
|
|
3465
|
+
const Ls = () => [
|
|
3464
3466
|
{
|
|
3465
3467
|
id: "123",
|
|
3466
3468
|
active: !1,
|
|
@@ -3629,7 +3631,7 @@ const Bs = () => [
|
|
|
3629
3631
|
numPassengers: 655,
|
|
3630
3632
|
departure: D(/* @__PURE__ */ new Date(), 5)
|
|
3631
3633
|
}
|
|
3632
|
-
], pt = (e, t, n) => e.map((r) => r.id === t ? { ...r, ...n } : r),
|
|
3634
|
+
], pt = (e, t, n) => e.map((r) => r.id === t ? { ...r, ...n } : r), ca = {
|
|
3633
3635
|
keyResolver: (e) => e.id,
|
|
3634
3636
|
showHeaderCheckbox: !0,
|
|
3635
3637
|
showRowCheckbox: !0,
|
|
@@ -3648,7 +3650,7 @@ const Bs = () => [
|
|
|
3648
3650
|
}),
|
|
3649
3651
|
ship: ce((e) => e.ship, {}),
|
|
3650
3652
|
numPassengers: ce((e) => e.numPassengers, {
|
|
3651
|
-
renderCell:
|
|
3653
|
+
renderCell: Do(),
|
|
3652
3654
|
isEditable: !0,
|
|
3653
3655
|
onChange: () => {
|
|
3654
3656
|
},
|
|
@@ -3657,12 +3659,12 @@ const Bs = () => [
|
|
|
3657
3659
|
width: "140px"
|
|
3658
3660
|
}),
|
|
3659
3661
|
departure: ce((e) => e.departure, {
|
|
3660
|
-
itemLabelFormatter: (e) =>
|
|
3662
|
+
itemLabelFormatter: (e) => Bs(e, "yyyy-MM-dd"),
|
|
3661
3663
|
borderLeft: !0
|
|
3662
3664
|
})
|
|
3663
3665
|
},
|
|
3664
3666
|
columnOrder: ["id", "active", "name", "ship", "numPassengers", "departure"]
|
|
3665
|
-
},
|
|
3667
|
+
}, da = Ls(), la = (e) => {
|
|
3666
3668
|
const [t, n] = Pe(e), r = P(
|
|
3667
3669
|
(a, i) => {
|
|
3668
3670
|
n(
|
|
@@ -3690,50 +3692,50 @@ const Bs = () => [
|
|
|
3690
3692
|
};
|
|
3691
3693
|
export {
|
|
3692
3694
|
St as CrudStatusIndicator,
|
|
3693
|
-
|
|
3695
|
+
sa as EditableTextCellWithCrudAndModified,
|
|
3694
3696
|
kt as GridHooksContext,
|
|
3695
|
-
|
|
3697
|
+
Js as GridHooksTable,
|
|
3696
3698
|
In as ModifiedField,
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3699
|
+
ea as SmallTableCell,
|
|
3700
|
+
ta as SmallTableHead,
|
|
3701
|
+
aa as StandardTable,
|
|
3700
3702
|
Mt as StandardTableActionsContext,
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
+
eo as StandardTableCell,
|
|
3704
|
+
Ur as StandardTableCellUi,
|
|
3703
3705
|
Gt as StandardTableConfigContext,
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3706
|
+
Co as StandardTableContent,
|
|
3707
|
+
To as StandardTableHeadRow,
|
|
3708
|
+
io as StandardTableRow,
|
|
3709
|
+
_r as StandardTableRowCheckbox,
|
|
3710
|
+
vo as StandardTableRowList,
|
|
3709
3711
|
Et as StandardTableStateContext,
|
|
3710
3712
|
Rt as StandardTableTableIdContext,
|
|
3711
3713
|
Tn as TableCell,
|
|
3712
|
-
|
|
3714
|
+
na as TableColumnGroupHead,
|
|
3713
3715
|
ze as TableHeadItem,
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3716
|
+
ra as TableHeadRow,
|
|
3717
|
+
oa as TableRow,
|
|
3718
|
+
Jr as TextCell,
|
|
3717
3719
|
ce as createColumnConfig,
|
|
3718
|
-
|
|
3720
|
+
ia as createEditableTextCellWithStatus,
|
|
3719
3721
|
Yt as createGroupConfigAndIdsForRows,
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3722
|
+
rr as createInternalStandardTableActions,
|
|
3723
|
+
Ls as createItemsMocks,
|
|
3724
|
+
Do as createStandardEditableTextCell,
|
|
3725
|
+
Rr as createStandardTableActions,
|
|
3724
3726
|
Wt as createStandardTableInitialState,
|
|
3725
|
-
|
|
3727
|
+
or as createStandardTableReducer,
|
|
3726
3728
|
Ye as defaultTableHeadRowHeight,
|
|
3727
3729
|
_e as defaultTableRowHeight,
|
|
3728
3730
|
Dt as focusOnCell,
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
+
$r as formatColumnIdToHeaderCellLabel,
|
|
3732
|
+
Kr as formatValueLabel,
|
|
3731
3733
|
Ae as hasIndicatorContent,
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
+
da as mockedItems,
|
|
3735
|
+
Ar as multitypeComparator,
|
|
3734
3736
|
pt as setListItemFields,
|
|
3735
3737
|
Ot as smallTableRowWidth,
|
|
3736
|
-
|
|
3738
|
+
ca as standardTableConfigForStories,
|
|
3737
3739
|
Pt as tableBackgroundColorExpanded,
|
|
3738
3740
|
En as tableBackgroundHoverColorExpanded,
|
|
3739
3741
|
ge as tableBorder,
|
|
@@ -3741,26 +3743,26 @@ export {
|
|
|
3741
3743
|
Rn as tableBorderColorExpanded,
|
|
3742
3744
|
Mn as tableBorderHidden,
|
|
3743
3745
|
He as tableBorderLeft,
|
|
3744
|
-
|
|
3746
|
+
Zs as tableBorderLeftExpanded,
|
|
3745
3747
|
it as useCellBackgroundByColumnConfig,
|
|
3746
|
-
|
|
3748
|
+
Vr as useCellBackgroundByColumnId,
|
|
3747
3749
|
Ce as useColumnConfigById,
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3750
|
+
Hr as useColumnValueResolver,
|
|
3751
|
+
Hn as useEditableCell,
|
|
3752
|
+
hr as useFirstColumnConfig,
|
|
3751
3753
|
Te as useGridCell,
|
|
3752
|
-
|
|
3754
|
+
er as useGridNavigation,
|
|
3753
3755
|
It as useGridNavigationOptionsFromContext,
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3756
|
+
mr as useLastColumnConfig,
|
|
3757
|
+
la as useListState,
|
|
3758
|
+
Er as useLocalStateTableContext,
|
|
3759
|
+
Ln as useRevertableValue,
|
|
3760
|
+
zr as useRowCheckbox,
|
|
3759
3761
|
ve as useStandardTableActions,
|
|
3760
3762
|
T as useStandardTableConfig,
|
|
3761
3763
|
qe as useStandardTableId,
|
|
3762
3764
|
ue as useStandardTableState,
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
+
xo as useTableHeadCheckbox,
|
|
3766
|
+
So as useTableSortHeader
|
|
3765
3767
|
};
|
|
3766
3768
|
//# sourceMappingURL=index.es.js.map
|