@stenajs-webui/grid 21.10.0 → 21.11.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.es.js +865 -860
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +13 -14
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._tableRow_1cphw_1:focus-within{background:var(--focus-within-background, var(--lhds-color-blue-50))}._standardTable_1iok0_1{--swui-standard-table-height: 40px;--swui-sticky-header-shadow: 2px 4px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-header-shadow-and-right: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-right);--swui-sticky-header-shadow-and-left: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-left);--swui-sticky-column-shadow-right: 4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-column-shadow-left: -4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-header-z-index: 10;--swui-sticky-column-z-index: 20;--swui-sticky-group-group-z-index: 25;--swui-sticky-group-header-z-index: 26;--swui-sticky-header-column-group-z-index: 30;--swui-sticky-column-group-label-z-index: 40;--swui-sticky-header-in-sticky-column-z-index: 50;--swui-sticky-popover-z-index: 60;--swui-expand-cell-width: 45px;--swui-checkbox-cell-width: 45px;--swui-expand-highlight-border-width: 2px;--current-row-height: var(--swui-standard-table-height);--current-left-offset: 0px;border-spacing:0}._standardTable_1iok0_1 td{border-top:1px solid var(--lhds-color-ui-300);padding:0}._standardTable_1iok0_1 th{padding:0}._standardTable_1iok0_1._relaxed_1iok0_37{--current-row-height: 48px}._standardTable_1iok0_1._condensed_1iok0_41{--current-row-height: 32px}._standardTable_1iok0_1._compact_1iok0_45{--current-row-height: 24px}._standardTableCell_1xzcm_1{outline:none}._textCell_1yv6v_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._summaryRow_12x8k_1 td{border-top:1px solid var(--lhds-color-ui-400)}._standardTableHeadTh_swsxb_8{height:1px}@-moz-document url-prefix(){._standardTableHeadTh_swsxb_8{height:100%}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
import { jsx as a, Fragment as E, jsxs as C } from "react/jsx-runtime";
|
|
3
3
|
import * as M from "react";
|
|
4
|
-
import { useMemo as y, useRef as
|
|
5
|
-
import { InputSpinner as We, Icon as
|
|
4
|
+
import { useMemo as y, useRef as ie, useState as ke, useCallback as P, useEffect as mt, useContext as Y, createContext as H, useReducer as en, useId as tn } from "react";
|
|
5
|
+
import { InputSpinner as We, Icon as U, stenaExclamationTriangle as Pe, stenaArrowRight as ft, stenaInfoCircle as nn, FlatButton as Ne, stenaDotsVertical as rn, stenaAngleDown as wt, stenaAngleRight as gt, ResultListBanner as on, Banner as Ke } from "@stenajs-webui/elements";
|
|
6
6
|
import { cssColor as j } from "@stenajs-webui/theme";
|
|
7
|
-
import { Tooltip as
|
|
8
|
-
import { Text as
|
|
9
|
-
import { faSortAlphaDown as
|
|
10
|
-
import { faSortAlphaUp as
|
|
11
|
-
import { faSortAmountDownAlt as
|
|
12
|
-
import { faSortAmountUpAlt as
|
|
13
|
-
import { faSortNumericDown as
|
|
14
|
-
import { faSortNumericUp as
|
|
15
|
-
import
|
|
16
|
-
import { TextInput as
|
|
17
|
-
import { useDispatch as
|
|
18
|
-
import { createSortOrderActions as
|
|
19
|
-
import { combineReducers as
|
|
20
|
-
import { LoadingScreen as
|
|
21
|
-
import { compact as
|
|
22
|
-
import
|
|
23
|
-
const
|
|
7
|
+
import { Tooltip as ge, Popover as sn } from "@stenajs-webui/tooltip";
|
|
8
|
+
import { Text as J, Indent as B, Space as N, Row as T, Box as le, exhaustSwitchCaseElseThrow as an, Heading as pt, booleanOrNumberToNumber as cn, useArraySet as yt, useOnScreen as ln, Spacing as Me } from "@stenajs-webui/core";
|
|
9
|
+
import { faSortAlphaDown as un } from "@fortawesome/free-solid-svg-icons/faSortAlphaDown";
|
|
10
|
+
import { faSortAlphaUp as dn } from "@fortawesome/free-solid-svg-icons/faSortAlphaUp";
|
|
11
|
+
import { faSortAmountDownAlt as hn } from "@fortawesome/free-solid-svg-icons/faSortAmountDownAlt";
|
|
12
|
+
import { faSortAmountUpAlt as mn } from "@fortawesome/free-solid-svg-icons/faSortAmountUpAlt";
|
|
13
|
+
import { faSortNumericDown as fn } from "@fortawesome/free-solid-svg-icons/faSortNumericDown";
|
|
14
|
+
import { faSortNumericUp as wn } from "@fortawesome/free-solid-svg-icons/faSortNumericUp";
|
|
15
|
+
import bt from "classnames";
|
|
16
|
+
import { TextInput as Be, Checkbox as Ae } from "@stenajs-webui/forms";
|
|
17
|
+
import { useDispatch as gn, useSelector as Qe } from "react-redux";
|
|
18
|
+
import { createSortOrderActions as pn, createSelectedIdsActions as Xe, createEntityActions as yn, createSortOrderReducerInitialState as bn, createSelectedIdsReducerInitialState as Ue, reducerIdGate as xe, createSortOrderReducer as vn, createSelectedIdsReducer as Je, createEntityReducer as Cn, reducerIdGateAction as ne } from "@stenajs-webui/redux";
|
|
19
|
+
import { combineReducers as xn } from "redux";
|
|
20
|
+
import { LoadingScreen as kn, ErrorScreen as Sn } from "@stenajs-webui/panels";
|
|
21
|
+
import { compact as Pn, upperFirst as On, lowerCase as In } from "lodash-es";
|
|
22
|
+
import Tn from "@emotion/styled";
|
|
23
|
+
const vt = M.createContext({}), ta = ({
|
|
24
24
|
children: e,
|
|
25
25
|
numCols: t,
|
|
26
26
|
numRows: n,
|
|
@@ -31,39 +31,39 @@ const bt = M.createContext({}), Zs = ({
|
|
|
31
31
|
() => ({ numCols: t, numRows: n, tableId: r, wrap: o }),
|
|
32
32
|
[t, n, r, o]
|
|
33
33
|
);
|
|
34
|
-
return /* @__PURE__ */ a(
|
|
35
|
-
},
|
|
34
|
+
return /* @__PURE__ */ a(vt.Provider, { value: s, children: e });
|
|
35
|
+
}, Le = (e) => {
|
|
36
36
|
const { loading: t, creating: n, deleting: r, updating: o, hasError: s } = e;
|
|
37
37
|
return !!(t || n || r || o || s);
|
|
38
|
-
},
|
|
39
|
-
if (!e || !
|
|
38
|
+
}, Ct = ({ crudStatus: e }) => {
|
|
39
|
+
if (!e || !Le(e))
|
|
40
40
|
return null;
|
|
41
|
-
const { errorMessage: t, hasError: n, loading: r, creating: o, deleting: s, updating:
|
|
42
|
-
if (r || o || s ||
|
|
41
|
+
const { errorMessage: t, hasError: n, loading: r, creating: o, deleting: s, updating: c } = e;
|
|
42
|
+
if (r || o || s || c)
|
|
43
43
|
return /* @__PURE__ */ a(We, { color: j("--lhds-color-ui-500") });
|
|
44
44
|
if (n) {
|
|
45
|
-
const
|
|
46
|
-
|
|
45
|
+
const i = /* @__PURE__ */ a(
|
|
46
|
+
U,
|
|
47
47
|
{
|
|
48
48
|
icon: Pe,
|
|
49
49
|
color: j("--lhds-color-orange-600"),
|
|
50
50
|
size: 14
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
return /* @__PURE__ */ a(E, { children: t ? /* @__PURE__ */ a(
|
|
53
|
+
return /* @__PURE__ */ a(E, { children: t ? /* @__PURE__ */ a(ge, { label: t, children: i }) : i });
|
|
54
54
|
}
|
|
55
55
|
return null;
|
|
56
|
-
},
|
|
56
|
+
}, Dn = ({
|
|
57
57
|
isEditable: e,
|
|
58
58
|
warningOnEmpty: t,
|
|
59
59
|
value: n,
|
|
60
60
|
modifiedField: r,
|
|
61
61
|
crudStatus: o
|
|
62
62
|
}) => {
|
|
63
|
-
const s = t && (r == null ? void 0 : r.modified) && (r == null ? void 0 : r.newValue) === "",
|
|
63
|
+
const s = t && (r == null ? void 0 : r.modified) && (r == null ? void 0 : r.newValue) === "", c = o && Le(o), i = s || c;
|
|
64
64
|
return /* @__PURE__ */ C(E, { children: [
|
|
65
65
|
/* @__PURE__ */ a(
|
|
66
|
-
|
|
66
|
+
J,
|
|
67
67
|
{
|
|
68
68
|
color: e ? "var(--swui-primary-action-color)" : void 0,
|
|
69
69
|
variant: r != null && r.modified ? "bold" : void 0,
|
|
@@ -71,20 +71,20 @@ const bt = M.createContext({}), Zs = ({
|
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
73
|
(r == null ? void 0 : r.newValue) !== void 0 && /* @__PURE__ */ C(E, { children: [
|
|
74
|
-
/* @__PURE__ */ a(
|
|
75
|
-
/* @__PURE__ */ a(
|
|
74
|
+
/* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(U, { icon: ft, size: 12 }) }),
|
|
75
|
+
/* @__PURE__ */ a(J, { color: "var(--swui-primary-action-color)", variant: "bold", children: r.newValue })
|
|
76
76
|
] }),
|
|
77
|
-
|
|
78
|
-
s ? /* @__PURE__ */ a(
|
|
79
|
-
|
|
77
|
+
i && /* @__PURE__ */ a(N, {}),
|
|
78
|
+
s ? /* @__PURE__ */ a(ge, { label: t, children: /* @__PURE__ */ a(
|
|
79
|
+
U,
|
|
80
80
|
{
|
|
81
81
|
icon: Pe,
|
|
82
82
|
color: j("--lhds-color-orange-600"),
|
|
83
83
|
size: 14
|
|
84
84
|
}
|
|
85
|
-
) }) : /* @__PURE__ */ a(
|
|
85
|
+
) }) : /* @__PURE__ */ a(Ct, { crudStatus: o })
|
|
86
86
|
] });
|
|
87
|
-
},
|
|
87
|
+
}, En = ({
|
|
88
88
|
alignItems: e = "center",
|
|
89
89
|
justifyContent: t = "flex-start",
|
|
90
90
|
overflow: n = "hidden",
|
|
@@ -100,10 +100,10 @@ const bt = M.createContext({}), Zs = ({
|
|
|
100
100
|
indent: r,
|
|
101
101
|
...o
|
|
102
102
|
}
|
|
103
|
-
),
|
|
104
|
-
|
|
103
|
+
), Mn = "var(--lhds-color-ui-300)", Gn = "var(--lhds-color-blue-500)", xt = "var(--lhds-color-blue-50)", Rn = "var(--lhds-color-blue-100)", fe = `1px solid ${Mn}`, Wn = "1px solid transparent", Fe = "var(--swui-expand-highlight-border-width) solid transparent", kt = `var(--swui-expand-highlight-border-width) solid ${Gn}`, He = "40px", Ye = "40px", St = "40px", na = (e) => /* @__PURE__ */ a(
|
|
104
|
+
En,
|
|
105
105
|
{
|
|
106
|
-
width:
|
|
106
|
+
width: St,
|
|
107
107
|
justifyContent: "center",
|
|
108
108
|
...e
|
|
109
109
|
}
|
|
@@ -111,22 +111,22 @@ const bt = M.createContext({}), Zs = ({
|
|
|
111
111
|
iconVariant: e = "amount",
|
|
112
112
|
direction: t
|
|
113
113
|
}) => /* @__PURE__ */ a(le, { width: "14px", children: /* @__PURE__ */ a(
|
|
114
|
-
|
|
114
|
+
U,
|
|
115
115
|
{
|
|
116
116
|
size: 14,
|
|
117
117
|
color: j("--lhds-color-ui-500"),
|
|
118
|
-
icon:
|
|
118
|
+
icon: Nn(t, e)
|
|
119
119
|
}
|
|
120
|
-
) }),
|
|
120
|
+
) }), Nn = (e, t) => {
|
|
121
121
|
switch (t) {
|
|
122
122
|
case "alpha":
|
|
123
|
-
return e === "up" ?
|
|
123
|
+
return e === "up" ? dn : un;
|
|
124
124
|
case "numeric":
|
|
125
|
-
return e === "up" ?
|
|
125
|
+
return e === "up" ? wn : fn;
|
|
126
126
|
case "amount":
|
|
127
|
-
return e === "up" ?
|
|
127
|
+
return e === "up" ? mn : hn;
|
|
128
128
|
default:
|
|
129
|
-
return
|
|
129
|
+
return an(t);
|
|
130
130
|
}
|
|
131
131
|
}, ze = M.memo(
|
|
132
132
|
({
|
|
@@ -136,20 +136,20 @@ const bt = M.createContext({}), Zs = ({
|
|
|
136
136
|
children: r,
|
|
137
137
|
selected: o,
|
|
138
138
|
popoverContent: s,
|
|
139
|
-
loading:
|
|
140
|
-
infoIconTooltipText:
|
|
139
|
+
loading: c,
|
|
140
|
+
infoIconTooltipText: i,
|
|
141
141
|
overflow: l = "hidden",
|
|
142
142
|
alignRight: d,
|
|
143
143
|
sortOrderIconVariant: u,
|
|
144
144
|
...m
|
|
145
145
|
}) => {
|
|
146
|
-
const
|
|
146
|
+
const w = ie(null), f = n ? { cursor: "pointer", userSelect: "none" } : void 0, g = !e && !t && !i;
|
|
147
147
|
return /* @__PURE__ */ C(
|
|
148
148
|
T,
|
|
149
149
|
{
|
|
150
150
|
height: "100%",
|
|
151
151
|
alignItems: "center",
|
|
152
|
-
ref:
|
|
152
|
+
ref: w,
|
|
153
153
|
overflow: l,
|
|
154
154
|
justifyContent: d ? "flex-end" : "flex-start",
|
|
155
155
|
borderTop: "2px solid transparent",
|
|
@@ -165,7 +165,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
165
165
|
(r || e) && /* @__PURE__ */ C(T, { onClick: n, style: f, alignItems: "center", children: [
|
|
166
166
|
r && /* @__PURE__ */ C(E, { children: [
|
|
167
167
|
r,
|
|
168
|
-
!
|
|
168
|
+
!g && /* @__PURE__ */ a(N, { num: 0.5 })
|
|
169
169
|
] }),
|
|
170
170
|
t && d && /* @__PURE__ */ C(E, { children: [
|
|
171
171
|
/* @__PURE__ */ a(N, {}),
|
|
@@ -178,7 +178,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
178
178
|
),
|
|
179
179
|
/* @__PURE__ */ a(N, { num: 0.5 })
|
|
180
180
|
] }),
|
|
181
|
-
e && /* @__PURE__ */ a(
|
|
181
|
+
e && /* @__PURE__ */ a(pt, { variant: "h6", style: { textAlign: "left" }, children: e }),
|
|
182
182
|
t && !d && /* @__PURE__ */ C(E, { children: [
|
|
183
183
|
/* @__PURE__ */ a(N, { num: 0.5 }),
|
|
184
184
|
/* @__PURE__ */ a(
|
|
@@ -191,13 +191,13 @@ const bt = M.createContext({}), Zs = ({
|
|
|
191
191
|
/* @__PURE__ */ a(N, {})
|
|
192
192
|
] })
|
|
193
193
|
] }),
|
|
194
|
-
|
|
194
|
+
i && /* @__PURE__ */ C(E, { children: [
|
|
195
195
|
/* @__PURE__ */ a(N, {}),
|
|
196
196
|
/* @__PURE__ */ C(T, { onClick: (h) => h.stopPropagation(), children: [
|
|
197
|
-
/* @__PURE__ */ a(
|
|
198
|
-
|
|
197
|
+
/* @__PURE__ */ a(ge, { label: i, children: /* @__PURE__ */ a(
|
|
198
|
+
U,
|
|
199
199
|
{
|
|
200
|
-
icon:
|
|
200
|
+
icon: nn,
|
|
201
201
|
size: 14,
|
|
202
202
|
color: j("--lhds-color-blue-400")
|
|
203
203
|
}
|
|
@@ -206,13 +206,13 @@ const bt = M.createContext({}), Zs = ({
|
|
|
206
206
|
] })
|
|
207
207
|
] })
|
|
208
208
|
] }),
|
|
209
|
-
/* @__PURE__ */ a(T, { children:
|
|
210
|
-
|
|
209
|
+
/* @__PURE__ */ a(T, { children: c ? /* @__PURE__ */ a(We, {}) : s ? /* @__PURE__ */ a(
|
|
210
|
+
sn,
|
|
211
211
|
{
|
|
212
212
|
renderTrigger: (h) => /* @__PURE__ */ a(
|
|
213
213
|
Ne,
|
|
214
214
|
{
|
|
215
|
-
leftIcon:
|
|
215
|
+
leftIcon: rn,
|
|
216
216
|
size: "small",
|
|
217
217
|
...h
|
|
218
218
|
}
|
|
@@ -231,24 +231,24 @@ const bt = M.createContext({}), Zs = ({
|
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
|
-
),
|
|
234
|
+
), ra = (e) => /* @__PURE__ */ a(
|
|
235
235
|
ze,
|
|
236
236
|
{
|
|
237
|
-
width:
|
|
237
|
+
width: St,
|
|
238
238
|
justifyContent: "center",
|
|
239
239
|
...e
|
|
240
240
|
}
|
|
241
|
-
),
|
|
241
|
+
), oa = ({
|
|
242
242
|
label: e,
|
|
243
243
|
flex: t,
|
|
244
244
|
width: n,
|
|
245
245
|
indent: r = 1,
|
|
246
246
|
height: o = Ye
|
|
247
|
-
}) => /* @__PURE__ */ a(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ a(le, { indent: r, spacing: !0, children: /* @__PURE__ */ a(
|
|
247
|
+
}) => /* @__PURE__ */ a(ze, { width: n, flex: t, height: o, children: /* @__PURE__ */ a(le, { indent: r, spacing: !0, children: /* @__PURE__ */ a(J, { variant: "bold", children: e }) }) }), sa = M.memo(
|
|
248
248
|
({ style: e, height: t = Ye, ...n }) => /* @__PURE__ */ a(T, { style: e, height: t, ...n })
|
|
249
|
-
),
|
|
250
|
-
tableRow:
|
|
251
|
-
},
|
|
249
|
+
), Bn = "_tableRow_1cphw_1", An = {
|
|
250
|
+
tableRow: Bn
|
|
251
|
+
}, aa = ({
|
|
252
252
|
hideBorderTop: e,
|
|
253
253
|
height: t = Ye,
|
|
254
254
|
className: n,
|
|
@@ -256,24 +256,24 @@ const bt = M.createContext({}), Zs = ({
|
|
|
256
256
|
}) => /* @__PURE__ */ a(
|
|
257
257
|
T,
|
|
258
258
|
{
|
|
259
|
-
borderTop: e ?
|
|
259
|
+
borderTop: e ? Wn : fe,
|
|
260
260
|
height: t,
|
|
261
|
-
className:
|
|
261
|
+
className: bt(An.tableRow, n),
|
|
262
262
|
...r
|
|
263
263
|
}
|
|
264
|
-
),
|
|
265
|
-
const [t, n] = ke(e), r =
|
|
264
|
+
), Ln = (e) => {
|
|
265
|
+
const [t, n] = ke(e), r = ie(e), o = ie(e), s = P(
|
|
266
266
|
(u) => {
|
|
267
267
|
n(u), o.current = u;
|
|
268
268
|
},
|
|
269
269
|
[n, o]
|
|
270
270
|
);
|
|
271
|
-
|
|
271
|
+
mt(() => {
|
|
272
272
|
s(e);
|
|
273
273
|
}, [s, e]);
|
|
274
|
-
const
|
|
274
|
+
const c = P(() => {
|
|
275
275
|
r && s(r.current);
|
|
276
|
-
}, [s, r]),
|
|
276
|
+
}, [s, r]), i = P(
|
|
277
277
|
(u) => {
|
|
278
278
|
r.current = t, u && s(u);
|
|
279
279
|
},
|
|
@@ -286,11 +286,11 @@ const bt = M.createContext({}), Zs = ({
|
|
|
286
286
|
value: t,
|
|
287
287
|
setValue: s,
|
|
288
288
|
setRevertValue: l,
|
|
289
|
-
revert:
|
|
290
|
-
commit:
|
|
289
|
+
revert: c,
|
|
290
|
+
commit: i,
|
|
291
291
|
getValue: d
|
|
292
292
|
};
|
|
293
|
-
},
|
|
293
|
+
}, Fn = (e) => ({
|
|
294
294
|
altKey: e.altKey,
|
|
295
295
|
charCode: e.charCode,
|
|
296
296
|
ctrlKey: e.ctrlKey,
|
|
@@ -302,83 +302,83 @@ const bt = M.createContext({}), Zs = ({
|
|
|
302
302
|
repeat: e.repeat,
|
|
303
303
|
shiftKey: e.shiftKey,
|
|
304
304
|
which: e.which
|
|
305
|
-
}),
|
|
305
|
+
}), Hn = (e) => e, Yn = (e, {
|
|
306
306
|
isEditable: t = !1,
|
|
307
307
|
allowedInputType: n = "all",
|
|
308
308
|
onChange: r,
|
|
309
309
|
onStartEditing: o,
|
|
310
310
|
onStopEditing: s,
|
|
311
|
-
transformEnteredValue:
|
|
311
|
+
transformEnteredValue: c = Hn
|
|
312
312
|
}) => {
|
|
313
|
-
const [
|
|
313
|
+
const [i, l] = ke(!1), [d, u] = ke(
|
|
314
314
|
void 0
|
|
315
|
-
), m =
|
|
315
|
+
), m = Ln(e), { getValue: w, revert: f, setValue: g, setRevertValue: h } = m, p = P(
|
|
316
316
|
(v) => {
|
|
317
|
-
t && (
|
|
317
|
+
t && (g(e), h(e), l(!0), o && o(v));
|
|
318
318
|
},
|
|
319
|
-
[t, o, h,
|
|
319
|
+
[t, o, h, g, e]
|
|
320
320
|
), b = P(() => {
|
|
321
|
-
t && (l(!1), s && s(), r && r(
|
|
322
|
-
}, [t, r, s,
|
|
321
|
+
t && (l(!1), s && s(), r && r(w()));
|
|
322
|
+
}, [t, r, s, w, l]), S = P(() => {
|
|
323
323
|
t && (l(!1), s && s(), f());
|
|
324
324
|
}, [t, s, f, l]);
|
|
325
325
|
return {
|
|
326
326
|
onKeyDown: y(
|
|
327
|
-
() =>
|
|
328
|
-
|
|
327
|
+
() => $n(
|
|
328
|
+
i,
|
|
329
329
|
t,
|
|
330
|
-
|
|
330
|
+
p,
|
|
331
331
|
u,
|
|
332
332
|
n,
|
|
333
|
-
|
|
333
|
+
c,
|
|
334
334
|
m
|
|
335
335
|
),
|
|
336
336
|
[
|
|
337
|
-
|
|
337
|
+
i,
|
|
338
338
|
t,
|
|
339
|
-
|
|
339
|
+
p,
|
|
340
340
|
u,
|
|
341
341
|
n,
|
|
342
|
-
|
|
342
|
+
c,
|
|
343
343
|
m
|
|
344
344
|
]
|
|
345
345
|
),
|
|
346
|
-
isEditing:
|
|
346
|
+
isEditing: i,
|
|
347
347
|
lastKeyEvent: d,
|
|
348
348
|
revertableValue: m,
|
|
349
|
-
startEditing:
|
|
349
|
+
startEditing: p,
|
|
350
350
|
stopEditing: b,
|
|
351
351
|
stopEditingAndRevert: S,
|
|
352
|
-
onDoubleClick:
|
|
352
|
+
onDoubleClick: p
|
|
353
353
|
};
|
|
354
|
-
},
|
|
355
|
-
if (!(
|
|
356
|
-
if (
|
|
357
|
-
r(void 0), n(),
|
|
354
|
+
}, zn = (e) => e === "all" || e === "numeric" || e === "alphanumeric", qn = (e) => e === "all" || e === "alphanumeric" || e === "letters", _n = (e) => !!e.match(/^[-+*<>]$/), jn = (e) => !!e.match(/^[a-zA-Z0-9]$/), Vn = (e) => !isNaN(parseInt(e, 10)), $n = (e, t, n, r, o, s, c) => (i) => {
|
|
355
|
+
if (!(i.ctrlKey || i.metaKey || i.shiftKey)) {
|
|
356
|
+
if (i.key === "Enter" && t)
|
|
357
|
+
r(void 0), n(), c.commit(), i.preventDefault(), i.stopPropagation();
|
|
358
358
|
else if (t) {
|
|
359
|
-
const l =
|
|
360
|
-
(
|
|
359
|
+
const l = Fn(i);
|
|
360
|
+
(Vn(i.key) && zn(o) || jn(i.key) && qn(o) || _n(i.key)) && (n(l), r(l), c.commit(), c.setValue(s(l.key)), i.preventDefault(), i.stopPropagation());
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
},
|
|
363
|
+
}, Kn = (e, t, n, r) => {
|
|
364
364
|
let o = e, s = t;
|
|
365
365
|
return t > r && (s = 0), t < 0 && (s = r), e > n && (o = 0), e < 0 && (o = n), {
|
|
366
366
|
realX: o,
|
|
367
367
|
realY: s
|
|
368
368
|
};
|
|
369
|
-
}, et = (e, t, n) => Math.max(Math.min(e, n), t),
|
|
369
|
+
}, et = (e, t, n) => Math.max(Math.min(e, n), t), Qn = (e, t, n) => ({
|
|
370
370
|
rowIndex: et(e.rowIndex, 0, t),
|
|
371
371
|
colIndex: et(e.colIndex, 0, n)
|
|
372
|
-
}),
|
|
373
|
-
const r =
|
|
372
|
+
}), Xn = (e, t, n) => {
|
|
373
|
+
const r = Kn(e.colIndex, e.rowIndex, n, t);
|
|
374
374
|
return {
|
|
375
375
|
rowIndex: r.realY,
|
|
376
376
|
colIndex: r.realX
|
|
377
377
|
};
|
|
378
|
-
},
|
|
379
|
-
const
|
|
380
|
-
return s === "clamped" ?
|
|
381
|
-
},
|
|
378
|
+
}, Un = (e, t, n, r, o, s = "clamped") => {
|
|
379
|
+
const c = Jn(e, t, o);
|
|
380
|
+
return s === "clamped" ? Qn(c, n - 1, r - 1) : s === "wrapped" ? Xn(c, n - 1, r - 1) : c;
|
|
381
|
+
}, Jn = (e, t, n) => n === "up" ? {
|
|
382
382
|
rowIndex: e - 1,
|
|
383
383
|
colIndex: t
|
|
384
384
|
} : n === "down" ? {
|
|
@@ -393,7 +393,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
393
393
|
} : {
|
|
394
394
|
rowIndex: e,
|
|
395
395
|
colIndex: t
|
|
396
|
-
},
|
|
396
|
+
}, Zn = (e) => e.replace(/^[^a-z]+|[^\w:.-]+/gi, ""), er = (e) => {
|
|
397
397
|
if (!e.tableId)
|
|
398
398
|
throw new Error("tableId is required.");
|
|
399
399
|
if (e.numRows == null)
|
|
@@ -401,34 +401,34 @@ const bt = M.createContext({}), Zs = ({
|
|
|
401
401
|
if (e.numCols == null)
|
|
402
402
|
throw new Error("numCols is required.");
|
|
403
403
|
return e;
|
|
404
|
-
},
|
|
405
|
-
const t = Y(
|
|
404
|
+
}, Pt = (e) => {
|
|
405
|
+
const t = Y(vt);
|
|
406
406
|
return y(
|
|
407
|
-
() =>
|
|
407
|
+
() => er({
|
|
408
408
|
...t,
|
|
409
409
|
...e
|
|
410
410
|
}),
|
|
411
411
|
[t, e]
|
|
412
412
|
);
|
|
413
|
-
},
|
|
413
|
+
}, tr = (e) => {
|
|
414
414
|
const {
|
|
415
415
|
rowIndex: t,
|
|
416
416
|
colIndex: n,
|
|
417
417
|
numRows: r,
|
|
418
418
|
numCols: o,
|
|
419
419
|
tableId: s,
|
|
420
|
-
edgeMode:
|
|
421
|
-
onCellMove:
|
|
420
|
+
edgeMode: c,
|
|
421
|
+
onCellMove: i,
|
|
422
422
|
onCellNavigation: l
|
|
423
|
-
} =
|
|
424
|
-
() =>
|
|
423
|
+
} = Pt(e), d = y(
|
|
424
|
+
() => nr(
|
|
425
425
|
s,
|
|
426
426
|
t,
|
|
427
427
|
n,
|
|
428
428
|
r,
|
|
429
429
|
o,
|
|
430
|
-
i,
|
|
431
430
|
c,
|
|
431
|
+
i,
|
|
432
432
|
l
|
|
433
433
|
),
|
|
434
434
|
[
|
|
@@ -437,17 +437,17 @@ const bt = M.createContext({}), Zs = ({
|
|
|
437
437
|
n,
|
|
438
438
|
r,
|
|
439
439
|
o,
|
|
440
|
-
i,
|
|
441
440
|
c,
|
|
441
|
+
i,
|
|
442
442
|
l
|
|
443
443
|
]
|
|
444
444
|
), u = y(
|
|
445
|
-
() =>
|
|
445
|
+
() => rr(d),
|
|
446
446
|
[d]
|
|
447
447
|
), m = y(
|
|
448
|
-
() =>
|
|
448
|
+
() => Ot(s, t, n),
|
|
449
449
|
[s, t, n]
|
|
450
|
-
),
|
|
450
|
+
), w = y(
|
|
451
451
|
() => ({
|
|
452
452
|
tabIndex: 0,
|
|
453
453
|
onKeyDown: u,
|
|
@@ -456,12 +456,12 @@ const bt = M.createContext({}), Zs = ({
|
|
|
456
456
|
[u, m]
|
|
457
457
|
);
|
|
458
458
|
return {
|
|
459
|
-
focusOnCell:
|
|
459
|
+
focusOnCell: It,
|
|
460
460
|
moveHandler: d,
|
|
461
|
-
requiredProps:
|
|
461
|
+
requiredProps: w
|
|
462
462
|
};
|
|
463
|
-
},
|
|
464
|
-
const d =
|
|
463
|
+
}, nr = (e, t, n, r, o, s, c, i) => (l) => {
|
|
464
|
+
const d = Un(
|
|
465
465
|
t,
|
|
466
466
|
n,
|
|
467
467
|
r,
|
|
@@ -469,7 +469,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
469
469
|
l,
|
|
470
470
|
s
|
|
471
471
|
), u = n !== d.colIndex, m = t !== d.rowIndex;
|
|
472
|
-
(u || m) && (
|
|
472
|
+
(u || m) && (c && c({
|
|
473
473
|
direction: l,
|
|
474
474
|
fromRowIndex: t,
|
|
475
475
|
fromColIndex: n,
|
|
@@ -477,7 +477,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
477
477
|
colIndex: d.colIndex,
|
|
478
478
|
colDidChange: u,
|
|
479
479
|
rowDidChange: m
|
|
480
|
-
}),
|
|
480
|
+
}), It(e, d)), i && i({
|
|
481
481
|
direction: l,
|
|
482
482
|
fromRowIndex: t,
|
|
483
483
|
fromColIndex: n,
|
|
@@ -487,21 +487,21 @@ const bt = M.createContext({}), Zs = ({
|
|
|
487
487
|
rowDidChange: m,
|
|
488
488
|
cellDidChange: u || m
|
|
489
489
|
});
|
|
490
|
-
},
|
|
490
|
+
}, Ot = (e, t, n) => Zn(`table-${e}-${t}-${n}`), rr = (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, It = (e, t) => {
|
|
491
491
|
const n = document.getElementById(
|
|
492
|
-
|
|
492
|
+
Ot(e, t.rowIndex, t.colIndex)
|
|
493
493
|
);
|
|
494
494
|
n && n.focus();
|
|
495
495
|
}, Oe = (e, t) => {
|
|
496
|
-
const { tableId: n } =
|
|
496
|
+
const { tableId: n } = Pt(t), r = tr(t), o = Yn(e, t), s = y(
|
|
497
497
|
() => ({
|
|
498
498
|
rowIndex: t.rowIndex,
|
|
499
499
|
colIndex: t.colIndex
|
|
500
500
|
}),
|
|
501
501
|
[t.rowIndex, t.colIndex]
|
|
502
|
-
),
|
|
502
|
+
), c = P(() => {
|
|
503
503
|
o.startEditing(), r.focusOnCell(n, s);
|
|
504
|
-
}, [o, r, n, s]),
|
|
504
|
+
}, [o, r, n, s]), i = P(() => {
|
|
505
505
|
o.stopEditing(), r.focusOnCell(n, s);
|
|
506
506
|
}, [o, r, n, s]), l = P(() => {
|
|
507
507
|
o.stopEditingAndRevert(), r.focusOnCell(n, s);
|
|
@@ -520,7 +520,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
520
520
|
o.isEditing || r.requiredProps.onKeyDown(f) || o.onKeyDown(f);
|
|
521
521
|
},
|
|
522
522
|
[o, r.requiredProps]
|
|
523
|
-
),
|
|
523
|
+
), w = y(
|
|
524
524
|
() => ({
|
|
525
525
|
...r.requiredProps,
|
|
526
526
|
onKeyDown: m,
|
|
@@ -534,47 +534,47 @@ const bt = M.createContext({}), Zs = ({
|
|
|
534
534
|
editorValue: o.revertableValue.value,
|
|
535
535
|
setEditorValue: o.revertableValue.setValue,
|
|
536
536
|
revertEditorValue: o.revertableValue.revert,
|
|
537
|
-
requiredProps:
|
|
537
|
+
requiredProps: w,
|
|
538
538
|
move: u,
|
|
539
|
-
startEditing:
|
|
540
|
-
stopEditing:
|
|
539
|
+
startEditing: c,
|
|
540
|
+
stopEditing: i,
|
|
541
541
|
stopEditingAndRevert: l,
|
|
542
542
|
stopEditingAndMove: d
|
|
543
543
|
};
|
|
544
|
-
},
|
|
544
|
+
}, ca = function({
|
|
545
545
|
allowedInputType: t,
|
|
546
546
|
value: n = "",
|
|
547
547
|
entityId: r,
|
|
548
548
|
isEditable: o,
|
|
549
549
|
rowIndent: s,
|
|
550
|
-
crudStatusRedux:
|
|
551
|
-
modifiedFieldsRedux:
|
|
550
|
+
crudStatusRedux: c,
|
|
551
|
+
modifiedFieldsRedux: i,
|
|
552
552
|
colIndex: l,
|
|
553
553
|
rowIndex: d,
|
|
554
554
|
numCols: u,
|
|
555
555
|
numRows: m,
|
|
556
|
-
warningOnEmpty:
|
|
556
|
+
warningOnEmpty: w
|
|
557
557
|
}) {
|
|
558
|
-
const f =
|
|
559
|
-
|
|
560
|
-
), h = Qe(
|
|
561
|
-
(
|
|
562
|
-
f(
|
|
558
|
+
const f = gn(), g = Qe(
|
|
559
|
+
i.selectors.getState
|
|
560
|
+
), h = Qe(c.selectors.getState), p = g.entities[r], b = h.entities[r], S = P(
|
|
561
|
+
(L = "") => {
|
|
562
|
+
f(L === n ? i.actions.clearEntity(r) : i.actions.setEntity({
|
|
563
563
|
id: r,
|
|
564
564
|
originalValue: n,
|
|
565
|
-
newValue:
|
|
565
|
+
newValue: L,
|
|
566
566
|
modified: !0
|
|
567
567
|
}));
|
|
568
568
|
},
|
|
569
|
-
[f, r,
|
|
569
|
+
[f, r, i.actions, n]
|
|
570
570
|
), {
|
|
571
571
|
isEditing: O,
|
|
572
572
|
stopEditing: v,
|
|
573
|
-
editorValue:
|
|
574
|
-
setEditorValue:
|
|
573
|
+
editorValue: G,
|
|
574
|
+
setEditorValue: R,
|
|
575
575
|
stopEditingAndRevert: k,
|
|
576
576
|
stopEditingAndMove: W,
|
|
577
|
-
lastKeyEvent:
|
|
577
|
+
lastKeyEvent: A,
|
|
578
578
|
requiredProps: { onKeyDown: V, ...ee }
|
|
579
579
|
} = Oe(n, {
|
|
580
580
|
rowIndex: d,
|
|
@@ -586,20 +586,20 @@ const bt = M.createContext({}), Zs = ({
|
|
|
586
586
|
isEditable: o,
|
|
587
587
|
allowedInputType: t
|
|
588
588
|
}), q = P(
|
|
589
|
-
(
|
|
590
|
-
|
|
591
|
-
|
|
589
|
+
(L) => {
|
|
590
|
+
L.key === "Delete" ? (f(i.actions.clearEntity(r)), f(
|
|
591
|
+
c.actions.setEntityFields(r, {
|
|
592
592
|
hasError: !1,
|
|
593
593
|
errorMessage: void 0
|
|
594
594
|
})
|
|
595
|
-
)) : V(
|
|
595
|
+
)) : V(L);
|
|
596
596
|
},
|
|
597
597
|
[
|
|
598
598
|
V,
|
|
599
599
|
r,
|
|
600
600
|
f,
|
|
601
|
-
|
|
602
|
-
|
|
601
|
+
i.actions,
|
|
602
|
+
c.actions
|
|
603
603
|
]
|
|
604
604
|
);
|
|
605
605
|
return /* @__PURE__ */ C(
|
|
@@ -611,7 +611,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
611
611
|
hoverBackground: "var(--ui7)",
|
|
612
612
|
alignItems: "center",
|
|
613
613
|
children: [
|
|
614
|
-
s && /* @__PURE__ */ a(
|
|
614
|
+
s && /* @__PURE__ */ a(B, { num: s }),
|
|
615
615
|
/* @__PURE__ */ a(
|
|
616
616
|
T,
|
|
617
617
|
{
|
|
@@ -625,69 +625,69 @@ const bt = M.createContext({}), Zs = ({
|
|
|
625
625
|
hoverBorder: O ? void 0 : "var(--ui5) solid 1px;",
|
|
626
626
|
onKeyDown: q,
|
|
627
627
|
...ee,
|
|
628
|
-
children: /* @__PURE__ */ a(
|
|
629
|
-
|
|
628
|
+
children: /* @__PURE__ */ a(B, { row: !0, alignItems: "center", children: O ? /* @__PURE__ */ a(
|
|
629
|
+
Be,
|
|
630
630
|
{
|
|
631
|
-
onValueChange:
|
|
632
|
-
value:
|
|
631
|
+
onValueChange: R,
|
|
632
|
+
value: G,
|
|
633
633
|
onDone: v,
|
|
634
634
|
onEsc: k,
|
|
635
635
|
autoFocus: !0,
|
|
636
|
-
selectAllOnMount: !
|
|
636
|
+
selectAllOnMount: !A,
|
|
637
637
|
onMove: W
|
|
638
638
|
}
|
|
639
639
|
) : /* @__PURE__ */ C(E, { children: [
|
|
640
640
|
/* @__PURE__ */ a(
|
|
641
|
-
|
|
641
|
+
J,
|
|
642
642
|
{
|
|
643
643
|
color: o ? "var(--primary-action-color)" : void 0,
|
|
644
|
-
variant:
|
|
644
|
+
variant: p != null && p.modified ? "bold" : void 0,
|
|
645
645
|
children: n
|
|
646
646
|
}
|
|
647
647
|
),
|
|
648
|
-
(
|
|
649
|
-
/* @__PURE__ */ a(
|
|
648
|
+
(p == null ? void 0 : p.newValue) !== void 0 && /* @__PURE__ */ C(E, { children: [
|
|
649
|
+
/* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(U, { icon: ft, size: 12 }) }),
|
|
650
650
|
/* @__PURE__ */ a(
|
|
651
|
-
|
|
651
|
+
J,
|
|
652
652
|
{
|
|
653
653
|
color: "var(--primary-action-color)",
|
|
654
654
|
variant: "bold",
|
|
655
|
-
children:
|
|
655
|
+
children: p.newValue
|
|
656
656
|
}
|
|
657
657
|
)
|
|
658
658
|
] }),
|
|
659
|
-
b &&
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
b && Le(b) && /* @__PURE__ */ a(N, { num: 2 }),
|
|
660
|
+
w && (p != null && p.modified) && (p == null ? void 0 : p.newValue) === "" ? /* @__PURE__ */ a(ge, { label: w, children: /* @__PURE__ */ a(
|
|
661
|
+
U,
|
|
662
662
|
{
|
|
663
663
|
icon: Pe,
|
|
664
664
|
color: "var(--ui-alert1)",
|
|
665
665
|
size: 14
|
|
666
666
|
}
|
|
667
|
-
) }) : /* @__PURE__ */ a(
|
|
667
|
+
) }) : /* @__PURE__ */ a(Ct, { crudStatus: b })
|
|
668
668
|
] }) })
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
|
-
s && /* @__PURE__ */ a(
|
|
671
|
+
s && /* @__PURE__ */ a(B, { num: s })
|
|
672
672
|
]
|
|
673
673
|
}
|
|
674
674
|
);
|
|
675
|
-
},
|
|
675
|
+
}, Tt = H(""), Dt = H(
|
|
676
676
|
void 0
|
|
677
|
-
),
|
|
678
|
-
sortOrder:
|
|
677
|
+
), Et = H(void 0), Mt = H(void 0), or = () => ({
|
|
678
|
+
sortOrder: pn(),
|
|
679
679
|
selectedIds: Xe(),
|
|
680
680
|
expandedRows: Xe(),
|
|
681
|
-
fields:
|
|
682
|
-
}), _ = (e, t) => `${e}.${t}`,
|
|
683
|
-
sortOrder:
|
|
681
|
+
fields: yn()
|
|
682
|
+
}), _ = (e, t) => `${e}.${t}`, Gt = (e = void 0, t = !1, n = [], r = []) => ({
|
|
683
|
+
sortOrder: bn(e, t),
|
|
684
684
|
selectedIds: Ue(n),
|
|
685
685
|
expandedRows: Ue(r),
|
|
686
686
|
fields: { lastSelectedId: void 0 }
|
|
687
|
-
}),
|
|
687
|
+
}), sr = (e, t) => {
|
|
688
688
|
const n = xe(
|
|
689
689
|
_(e, "sortOrder"),
|
|
690
|
-
|
|
690
|
+
vn(t == null ? void 0 : t.sortOrder)
|
|
691
691
|
), r = xe(
|
|
692
692
|
_(e, "selectedIds"),
|
|
693
693
|
Je(t == null ? void 0 : t.selectedIds)
|
|
@@ -696,24 +696,24 @@ const bt = M.createContext({}), Zs = ({
|
|
|
696
696
|
Je(t == null ? void 0 : t.expandedRows)
|
|
697
697
|
), s = xe(
|
|
698
698
|
_(e, "fields"),
|
|
699
|
-
|
|
699
|
+
Cn((t == null ? void 0 : t.fields) ?? {})
|
|
700
700
|
);
|
|
701
|
-
return
|
|
701
|
+
return xn({
|
|
702
702
|
sortOrder: n,
|
|
703
703
|
selectedIds: r,
|
|
704
704
|
expandedRows: o,
|
|
705
705
|
fields: s
|
|
706
706
|
});
|
|
707
|
-
}, qe = () => Y(
|
|
707
|
+
}, qe = () => Y(Tt), I = () => Y(Mt), oe = () => Y(Dt), pe = () => Y(Et), Rt = H([]), Z = () => Y(
|
|
708
708
|
Rt
|
|
709
|
-
),
|
|
709
|
+
), Wt = () => {
|
|
710
710
|
const e = I(), t = Z();
|
|
711
711
|
let n = 0;
|
|
712
712
|
return e.enableExpandCollapse && n++, e.showRowCheckbox && n++, n + y(
|
|
713
713
|
() => t.map((r) => r.groupConfig.columnOrder.length).reduce((r, o) => r + o, 0),
|
|
714
714
|
[t]
|
|
715
715
|
);
|
|
716
|
-
},
|
|
716
|
+
}, Nt = H(void 0), ar = () => Y(Nt), Bt = H(void 0), cr = () => Y(Bt), At = H(void 0), ir = H(!1), lr = () => Y(At), ur = H("standard"), Lt = H({}), _e = () => Y(Lt), Ft = H(0), je = () => Y(Ft), Ht = (e, t, n) => e ? Pn(
|
|
717
717
|
(t == null ? void 0 : t.map((r) => {
|
|
718
718
|
const o = e == null ? void 0 : e[r];
|
|
719
719
|
return {
|
|
@@ -747,22 +747,22 @@ const bt = M.createContext({}), Zs = ({
|
|
|
747
747
|
if (!n)
|
|
748
748
|
throw new Error("No config for column with id=" + e);
|
|
749
749
|
return n;
|
|
750
|
-
},
|
|
750
|
+
}, dr = () => {
|
|
751
751
|
var n, r, o;
|
|
752
752
|
const e = I(), t = (o = (r = (n = Z()) == null ? void 0 : n[0]) == null ? void 0 : r.groupConfig.columnOrder) == null ? void 0 : o[0];
|
|
753
753
|
return t ? e.columns[t] : void 0;
|
|
754
|
-
},
|
|
754
|
+
}, hr = () => {
|
|
755
755
|
const e = I(), t = Z(), n = t[t.length - 1], r = (n == null ? void 0 : n.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1]) ?? void 0;
|
|
756
756
|
return r ? e.columns[r] : void 0;
|
|
757
|
-
},
|
|
757
|
+
}, mr = function({
|
|
758
758
|
columnId: t,
|
|
759
759
|
groupConfig: n,
|
|
760
760
|
borderFromGroup: r,
|
|
761
761
|
colSpan: o,
|
|
762
762
|
isFirstGroup: s,
|
|
763
|
-
isLastGroup:
|
|
763
|
+
isLastGroup: c
|
|
764
764
|
}) {
|
|
765
|
-
const { label:
|
|
765
|
+
const { label: i, render: l, contentLeft: d, contentRight: u, loading: m, error: w } = n, { width: f, minWidth: g, zIndex: h, borderLeft: p } = ye(t), b = I(), { stickyHeader: S, headerRowOffsetTop: O } = b, v = "columnGroupOrder" in b ? b.stickyColumnGroups : void 0, G = fr(r, p), R = s && (v === "first" || v === "both"), k = c && (v === "last" || v === "both"), W = R || k || S, A = R || k;
|
|
766
766
|
return /* @__PURE__ */ a(
|
|
767
767
|
"th",
|
|
768
768
|
{
|
|
@@ -771,14 +771,14 @@ const bt = M.createContext({}), Zs = ({
|
|
|
771
771
|
position: W ? "sticky" : void 0,
|
|
772
772
|
height: "var(--current-row-height)",
|
|
773
773
|
width: f,
|
|
774
|
-
minWidth:
|
|
774
|
+
minWidth: g ?? f ?? "20px",
|
|
775
775
|
background: W ? "white" : "transparent",
|
|
776
|
-
left:
|
|
776
|
+
left: R ? "var(--current-left-offset)" : void 0,
|
|
777
777
|
right: k ? "0px" : void 0,
|
|
778
778
|
top: S ? O ?? "0px" : void 0,
|
|
779
|
-
borderLeft:
|
|
780
|
-
zIndex: S &&
|
|
781
|
-
boxShadow:
|
|
779
|
+
borderLeft: G,
|
|
780
|
+
zIndex: S && A ? "var(--swui-sticky-column-group-label-z-index)" : A ? "var(--swui-sticky-group-group-z-index)" : S ? h ?? "var(--swui-sticky-header-column-group-z-index)" : h ?? 1,
|
|
781
|
+
boxShadow: R ? "var(--swui-sticky-column-shadow-right)" : k ? "var(--swui-sticky-column-shadow-left)" : void 0
|
|
782
782
|
},
|
|
783
783
|
children: /* @__PURE__ */ a(T, { alignItems: "center", children: /* @__PURE__ */ C(E, { children: [
|
|
784
784
|
d && /* @__PURE__ */ C(E, { children: [
|
|
@@ -786,14 +786,14 @@ const bt = M.createContext({}), Zs = ({
|
|
|
786
786
|
d,
|
|
787
787
|
/* @__PURE__ */ a(N, { num: 0.5 })
|
|
788
788
|
] }),
|
|
789
|
-
l ? l(n) : /* @__PURE__ */ a(
|
|
789
|
+
l ? l(n) : /* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(pt, { variant: "h5", whiteSpace: "nowrap", children: i }) }),
|
|
790
790
|
u && /* @__PURE__ */ C(E, { children: [
|
|
791
791
|
/* @__PURE__ */ a(N, { num: 0.5 }),
|
|
792
792
|
u
|
|
793
793
|
] }),
|
|
794
|
-
(
|
|
795
|
-
m ? /* @__PURE__ */ a(We, {}) :
|
|
796
|
-
|
|
794
|
+
(w || m) && /* @__PURE__ */ a(B, {}),
|
|
795
|
+
m ? /* @__PURE__ */ a(We, {}) : w ? /* @__PURE__ */ a(ge, { label: w, placement: "bottom", children: /* @__PURE__ */ a(
|
|
796
|
+
U,
|
|
797
797
|
{
|
|
798
798
|
icon: Pe,
|
|
799
799
|
color: j("--lhds-color-red-500"),
|
|
@@ -803,41 +803,41 @@ const bt = M.createContext({}), Zs = ({
|
|
|
803
803
|
] }) })
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
|
-
},
|
|
806
|
+
}, fr = (e, t) => {
|
|
807
807
|
if (e)
|
|
808
808
|
return e;
|
|
809
809
|
if (t)
|
|
810
810
|
return "1px solid transparent";
|
|
811
|
-
},
|
|
812
|
-
top: e ?
|
|
811
|
+
}, wr = (e, t, n, r) => ({
|
|
812
|
+
top: e ? gr(e, n) : void 0,
|
|
813
813
|
background: e || t ? "white" : void 0,
|
|
814
814
|
position: e || t ? "sticky" : void 0,
|
|
815
815
|
boxShadow: t ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
816
816
|
zIndex: e || t ? r ?? "var(--swui-sticky-header-z-index)" : r
|
|
817
|
-
}),
|
|
817
|
+
}), gr = (e, t) => {
|
|
818
818
|
if (e && t)
|
|
819
819
|
return t;
|
|
820
820
|
if (t)
|
|
821
821
|
return t;
|
|
822
822
|
if (e)
|
|
823
823
|
return 0;
|
|
824
|
-
},
|
|
824
|
+
}, pr = M.memo(function({
|
|
825
825
|
height: t = He
|
|
826
826
|
}) {
|
|
827
827
|
const n = Z(), r = I(), {
|
|
828
828
|
showHeaderCheckbox: o,
|
|
829
829
|
enableExpandCollapse: s,
|
|
830
|
-
rowIndent:
|
|
831
|
-
zIndex:
|
|
830
|
+
rowIndent: c,
|
|
831
|
+
zIndex: i,
|
|
832
832
|
stickyHeader: l,
|
|
833
833
|
stickyCheckboxColumn: d,
|
|
834
834
|
headerRowOffsetTop: u
|
|
835
|
-
} = r, m =
|
|
835
|
+
} = r, m = wr(
|
|
836
836
|
l,
|
|
837
837
|
d,
|
|
838
838
|
u,
|
|
839
|
-
|
|
840
|
-
),
|
|
839
|
+
i
|
|
840
|
+
), w = l ? "var(--swui-sticky-column-group-label-z-index)" : "var(--swui-sticky-group-group-z-index)";
|
|
841
841
|
return /* @__PURE__ */ C(
|
|
842
842
|
"tr",
|
|
843
843
|
{
|
|
@@ -846,7 +846,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
846
846
|
borderLeft: Fe
|
|
847
847
|
},
|
|
848
848
|
children: [
|
|
849
|
-
|
|
849
|
+
c && /* @__PURE__ */ a("th", { style: m }),
|
|
850
850
|
s && /* @__PURE__ */ a(
|
|
851
851
|
"th",
|
|
852
852
|
{
|
|
@@ -854,7 +854,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
854
854
|
...m,
|
|
855
855
|
width: "var(--swui-expand-cell-width)",
|
|
856
856
|
left: d ? "0px" : void 0,
|
|
857
|
-
zIndex:
|
|
857
|
+
zIndex: w
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
),
|
|
@@ -864,12 +864,12 @@ const bt = M.createContext({}), Zs = ({
|
|
|
864
864
|
style: {
|
|
865
865
|
...m,
|
|
866
866
|
left: d && s ? "var(--swui-expand-cell-width)" : d ? "0px" : void 0,
|
|
867
|
-
zIndex:
|
|
867
|
+
zIndex: w
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
),
|
|
871
|
-
n.map(({ groupConfig: f, groupId:
|
|
872
|
-
|
|
871
|
+
n.map(({ groupConfig: f, groupId: g }, h) => /* @__PURE__ */ a(
|
|
872
|
+
mr,
|
|
873
873
|
{
|
|
874
874
|
isFirstGroup: h === 0,
|
|
875
875
|
isLastGroup: h === n.length - 1,
|
|
@@ -882,15 +882,15 @@ const bt = M.createContext({}), Zs = ({
|
|
|
882
882
|
f.borderLeft
|
|
883
883
|
)
|
|
884
884
|
},
|
|
885
|
-
|
|
885
|
+
g
|
|
886
886
|
)),
|
|
887
|
-
|
|
887
|
+
c && /* @__PURE__ */ a("th", { style: m }),
|
|
888
888
|
/* @__PURE__ */ a("th", { style: m })
|
|
889
889
|
]
|
|
890
890
|
}
|
|
891
891
|
);
|
|
892
|
-
}),
|
|
893
|
-
const t =
|
|
892
|
+
}), yr = (e) => {
|
|
893
|
+
const t = Ht(
|
|
894
894
|
"columnGroups" in e ? e.columnGroups : void 0,
|
|
895
895
|
"columnGroupOrder" in e ? e.columnGroupOrder : void 0,
|
|
896
896
|
"columnOrder" in e ? e.columnOrder : void 0
|
|
@@ -898,23 +898,23 @@ const bt = M.createContext({}), Zs = ({
|
|
|
898
898
|
let r = 0;
|
|
899
899
|
return e.showRowCheckbox && r++, e.enableExpandCollapse && r++, t.forEach((o) => {
|
|
900
900
|
o.groupConfig.columnOrder.forEach((s) => {
|
|
901
|
-
|
|
901
|
+
br(e.columns[s]) && (n[s] = r++);
|
|
902
902
|
});
|
|
903
903
|
}), {
|
|
904
904
|
columnIndexPerColumnId: n,
|
|
905
905
|
numNavigableColumns: r
|
|
906
906
|
};
|
|
907
|
-
},
|
|
907
|
+
}, br = (e) => !e.disableGridCell, Yt = H({
|
|
908
908
|
columnIndexPerColumnId: {},
|
|
909
909
|
numNavigableColumns: 0
|
|
910
|
-
}),
|
|
911
|
-
|
|
912
|
-
),
|
|
913
|
-
"columnGroupOrder" in e && (
|
|
910
|
+
}), zt = () => Y(
|
|
911
|
+
Yt
|
|
912
|
+
), vr = (e) => {
|
|
913
|
+
"columnGroupOrder" in e && (Cr(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && tt(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && tt(
|
|
914
914
|
e,
|
|
915
915
|
e.columnGroupOrder.length - 1
|
|
916
916
|
));
|
|
917
|
-
},
|
|
917
|
+
}, Cr = (e) => {
|
|
918
918
|
Object.keys(e.columns).forEach((n) => {
|
|
919
919
|
const r = e.columns[n];
|
|
920
920
|
if ("sticky" in r && r.sticky)
|
|
@@ -939,13 +939,13 @@ const bt = M.createContext({}), Zs = ({
|
|
|
939
939
|
"All columns in sticky column group must have width set."
|
|
940
940
|
);
|
|
941
941
|
});
|
|
942
|
-
},
|
|
942
|
+
}, xr = (e) => {
|
|
943
943
|
const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ? nt(
|
|
944
|
-
|
|
944
|
+
Sr(e),
|
|
945
945
|
e.columns,
|
|
946
946
|
!0
|
|
947
947
|
) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ? nt(
|
|
948
|
-
|
|
948
|
+
Pr(e),
|
|
949
949
|
e.columns,
|
|
950
950
|
!1
|
|
951
951
|
) : void 0;
|
|
@@ -958,28 +958,28 @@ const bt = M.createContext({}), Zs = ({
|
|
|
958
958
|
n ? "var(--current-left-offset)" : "0px"
|
|
959
959
|
];
|
|
960
960
|
for (let s = 0; s < e.length; s++) {
|
|
961
|
-
const
|
|
962
|
-
r[
|
|
961
|
+
const c = e[s], i = t == null ? void 0 : t[c];
|
|
962
|
+
r[c] = kr(o), o.push((i == null ? void 0 : i.width) ?? "0px");
|
|
963
963
|
}
|
|
964
964
|
return r;
|
|
965
|
-
},
|
|
965
|
+
}, kr = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", Sr = (e) => {
|
|
966
966
|
var r, o;
|
|
967
967
|
const t = (r = e.columnGroupOrder) == null ? void 0 : r[0];
|
|
968
968
|
if (!t)
|
|
969
969
|
return [];
|
|
970
970
|
const n = (o = e.columnGroups) == null ? void 0 : o[t];
|
|
971
971
|
return (n == null ? void 0 : n.columnOrder) ?? [];
|
|
972
|
-
},
|
|
973
|
-
var o, s,
|
|
972
|
+
}, Pr = (e) => {
|
|
973
|
+
var o, s, c;
|
|
974
974
|
const t = (s = e.columnGroupOrder) == null ? void 0 : s[((o = e.columnGroupOrder) == null ? void 0 : o.length) - 1];
|
|
975
975
|
if (!t)
|
|
976
976
|
return [];
|
|
977
|
-
const n = (
|
|
977
|
+
const n = (c = e.columnGroups) == null ? void 0 : c[t];
|
|
978
978
|
if (!n)
|
|
979
979
|
return [];
|
|
980
980
|
const r = [...n.columnOrder];
|
|
981
981
|
return r.reverse(), r;
|
|
982
|
-
},
|
|
982
|
+
}, Or = (e) => "columnGroups" in e ? Tr(e) : Ir(e), Ir = (e) => Object.keys(e.columns).reduce((n, r) => {
|
|
983
983
|
const o = e.columns[r], s = !!o.sticky;
|
|
984
984
|
return n[r] = {
|
|
985
985
|
sticky: s,
|
|
@@ -989,23 +989,23 @@ const bt = M.createContext({}), Zs = ({
|
|
|
989
989
|
isFirstColumnInLastGroup: !1,
|
|
990
990
|
isLastColumnInFirstGroup: !1
|
|
991
991
|
}, n;
|
|
992
|
-
}, {}),
|
|
993
|
-
const t = {}, n = e.columnGroupOrder, r =
|
|
994
|
-
return n.forEach((
|
|
995
|
-
const d = e.columnGroups[
|
|
992
|
+
}, {}), Tr = (e) => {
|
|
993
|
+
const t = {}, n = e.columnGroupOrder, r = xr(e), o = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", s = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
|
|
994
|
+
return n.forEach((c, i) => {
|
|
995
|
+
const d = e.columnGroups[c].columnOrder;
|
|
996
996
|
d.forEach((u, m) => {
|
|
997
|
-
const
|
|
997
|
+
const w = i === 0, f = i === n.length - 1, g = w && o, h = f && s, p = m === 0 && f, b = m === d.length - 1 && w;
|
|
998
998
|
t[u] = {
|
|
999
|
-
sticky:
|
|
1000
|
-
left:
|
|
999
|
+
sticky: g || h,
|
|
1000
|
+
left: g ? r[u] : void 0,
|
|
1001
1001
|
right: h ? r[u] : void 0,
|
|
1002
|
-
type:
|
|
1003
|
-
isFirstColumnInLastGroup:
|
|
1002
|
+
type: g ? "first-group" : h ? "last-group" : void 0,
|
|
1003
|
+
isFirstColumnInLastGroup: p,
|
|
1004
1004
|
isLastColumnInFirstGroup: b
|
|
1005
1005
|
};
|
|
1006
1006
|
});
|
|
1007
1007
|
}), t;
|
|
1008
|
-
},
|
|
1008
|
+
}, Dr = (e, t) => ({
|
|
1009
1009
|
setSelectedIds: (n) => ne(
|
|
1010
1010
|
_(e, "selectedIds"),
|
|
1011
1011
|
t.selectedIds.setSelectedIds(n)
|
|
@@ -1034,14 +1034,14 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1034
1034
|
_(e, "fields"),
|
|
1035
1035
|
t.fields.setEntityFields({ lastSelectedId: n })
|
|
1036
1036
|
)
|
|
1037
|
-
}),
|
|
1038
|
-
const [n, r] =
|
|
1039
|
-
|
|
1037
|
+
}), Er = (e, t = Gt()) => {
|
|
1038
|
+
const [n, r] = en(
|
|
1039
|
+
sr(e),
|
|
1040
1040
|
t
|
|
1041
1041
|
), o = y(
|
|
1042
|
-
() =>
|
|
1042
|
+
() => Dr(
|
|
1043
1043
|
e,
|
|
1044
|
-
|
|
1044
|
+
or()
|
|
1045
1045
|
),
|
|
1046
1046
|
[e]
|
|
1047
1047
|
);
|
|
@@ -1055,15 +1055,15 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1055
1055
|
[n, o, r]
|
|
1056
1056
|
)
|
|
1057
1057
|
};
|
|
1058
|
-
},
|
|
1058
|
+
}, Mr = (e) => (e.rowIndent ? 2 : 0) + (e.enableExpandCollapse ? 1 : 0) + (e.showRowCheckbox ? 1 : 0) + Gr(e), Gr = (e) => {
|
|
1059
1059
|
var t;
|
|
1060
1060
|
return "columnGroupOrder" in e ? e.columnGroupOrder.reduce((n, r) => {
|
|
1061
|
-
var s,
|
|
1061
|
+
var s, c;
|
|
1062
1062
|
const o = (s = e.columnGroups) == null ? void 0 : s[r];
|
|
1063
|
-
return n + (((
|
|
1063
|
+
return n + (((c = o == null ? void 0 : o.columnOrder) == null ? void 0 : c.length) ?? 0);
|
|
1064
1064
|
}, 0) : ((t = e.columnOrder) == null ? void 0 : t.length) ?? 0;
|
|
1065
1065
|
}, Rr = () => {
|
|
1066
|
-
const e = I(), t = Z(), n = e.enableExpandCollapse || e.showRowCheckbox, r =
|
|
1066
|
+
const e = I(), t = Z(), n = e.enableExpandCollapse || e.showRowCheckbox, r = cn(e.rowIndent);
|
|
1067
1067
|
return /* @__PURE__ */ C(E, { children: [
|
|
1068
1068
|
r ? /* @__PURE__ */ a("colgroup", { children: /* @__PURE__ */ a(
|
|
1069
1069
|
"col",
|
|
@@ -1075,15 +1075,15 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1075
1075
|
e.enableExpandCollapse && /* @__PURE__ */ a("col", { style: { width: "var(--swui-expand-cell-width)" } }),
|
|
1076
1076
|
e.showRowCheckbox && /* @__PURE__ */ a("col", { style: { width: "var(--swui-checkbox-cell-width)" } })
|
|
1077
1077
|
] }),
|
|
1078
|
-
t.map(({ groupConfig: o, groupId: s }) => /* @__PURE__ */ a("colgroup", { children: o.columnOrder.map((
|
|
1078
|
+
t.map(({ groupConfig: o, groupId: s }) => /* @__PURE__ */ a("colgroup", { children: o.columnOrder.map((c) => /* @__PURE__ */ a(
|
|
1079
1079
|
"col",
|
|
1080
1080
|
{
|
|
1081
1081
|
style: {
|
|
1082
|
-
width: e.columns[
|
|
1083
|
-
minWidth: e.columns[
|
|
1082
|
+
width: e.columns[c].width,
|
|
1083
|
+
minWidth: e.columns[c].minWidth
|
|
1084
1084
|
}
|
|
1085
1085
|
},
|
|
1086
|
-
|
|
1086
|
+
c
|
|
1087
1087
|
)) }, s)),
|
|
1088
1088
|
r ? /* @__PURE__ */ a("colgroup", { children: /* @__PURE__ */ a(
|
|
1089
1089
|
"col",
|
|
@@ -1092,100 +1092,100 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1092
1092
|
}
|
|
1093
1093
|
) }) : null
|
|
1094
1094
|
] });
|
|
1095
|
-
},
|
|
1096
|
-
standardTable:
|
|
1097
|
-
relaxed:
|
|
1098
|
-
condensed:
|
|
1099
|
-
compact:
|
|
1100
|
-
},
|
|
1095
|
+
}, Wr = "_standardTable_1iok0_1", Nr = "_relaxed_1iok0_37", Br = "_condensed_1iok0_41", Ar = "_compact_1iok0_45", rt = {
|
|
1096
|
+
standardTable: Wr,
|
|
1097
|
+
relaxed: Nr,
|
|
1098
|
+
condensed: Br,
|
|
1099
|
+
compact: Ar
|
|
1100
|
+
}, Lr = (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, Fr = (e) => {
|
|
1101
1101
|
const { columns: t } = I();
|
|
1102
1102
|
if (!e)
|
|
1103
1103
|
return;
|
|
1104
1104
|
const n = t[e];
|
|
1105
1105
|
if (n)
|
|
1106
1106
|
return n.itemValueResolver;
|
|
1107
|
-
},
|
|
1107
|
+
}, Hr = M.memo(
|
|
1108
1108
|
function({
|
|
1109
1109
|
value: t,
|
|
1110
1110
|
onValueChange: n,
|
|
1111
1111
|
colIndex: r,
|
|
1112
1112
|
rowIndex: o,
|
|
1113
1113
|
numRows: s,
|
|
1114
|
-
disabled:
|
|
1115
|
-
onValueChangeAndShift:
|
|
1114
|
+
disabled: c,
|
|
1115
|
+
onValueChangeAndShift: i,
|
|
1116
1116
|
shiftPressedRef: l
|
|
1117
1117
|
}) {
|
|
1118
|
-
const d =
|
|
1118
|
+
const d = Wt(), u = qe(), m = Oe(!!t, {
|
|
1119
1119
|
colIndex: r,
|
|
1120
1120
|
numCols: d,
|
|
1121
1121
|
numRows: s,
|
|
1122
1122
|
rowIndex: o,
|
|
1123
1123
|
tableId: u
|
|
1124
|
-
}), { requiredProps:
|
|
1125
|
-
(
|
|
1126
|
-
l.current ?
|
|
1124
|
+
}), { requiredProps: w } = m, f = P(
|
|
1125
|
+
(g) => {
|
|
1126
|
+
l.current ? i == null || i(g) : n == null || n(g);
|
|
1127
1127
|
},
|
|
1128
|
-
[n,
|
|
1128
|
+
[n, i, l]
|
|
1129
1129
|
);
|
|
1130
1130
|
return /* @__PURE__ */ a(
|
|
1131
|
-
|
|
1131
|
+
Ae,
|
|
1132
1132
|
{
|
|
1133
1133
|
size: "small",
|
|
1134
|
-
disabled:
|
|
1134
|
+
disabled: c,
|
|
1135
1135
|
value: t,
|
|
1136
1136
|
onValueChange: f,
|
|
1137
|
-
...
|
|
1137
|
+
...w
|
|
1138
1138
|
}
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
1141
|
-
),
|
|
1141
|
+
), Yr = (e, t, n) => {
|
|
1142
1142
|
if (t == null || n == null || e == null || t === n)
|
|
1143
1143
|
return;
|
|
1144
1144
|
const r = e.indexOf(t), o = e.indexOf(n);
|
|
1145
1145
|
if (r < 0 || o < 0)
|
|
1146
1146
|
return;
|
|
1147
|
-
const s = Math.min(r, o),
|
|
1148
|
-
return e.slice(s,
|
|
1149
|
-
},
|
|
1147
|
+
const s = Math.min(r, o), c = Math.max(r, o);
|
|
1148
|
+
return e.slice(s, c + 1);
|
|
1149
|
+
}, zr = (e, t) => {
|
|
1150
1150
|
const { keyResolver: n } = I(), {
|
|
1151
1151
|
selectedIds: { selectedIds: r },
|
|
1152
1152
|
fields: { lastSelectedId: o }
|
|
1153
1153
|
} = oe(), {
|
|
1154
|
-
actions: { setSelectedIds: s, setLastSelectedId:
|
|
1155
|
-
dispatch:
|
|
1156
|
-
} =
|
|
1154
|
+
actions: { setSelectedIds: s, setLastSelectedId: c },
|
|
1155
|
+
dispatch: i
|
|
1156
|
+
} = pe(), l = y(() => n(e), [n, e]), d = y(
|
|
1157
1157
|
() => r.includes(l),
|
|
1158
1158
|
[r, l]
|
|
1159
|
-
), { toggle: u, addMultiple: m, removeMultiple:
|
|
1159
|
+
), { toggle: u, addMultiple: m, removeMultiple: w } = yt(
|
|
1160
1160
|
r,
|
|
1161
|
-
(h) =>
|
|
1161
|
+
(h) => i(s(h))
|
|
1162
1162
|
), f = P(() => {
|
|
1163
1163
|
if (t && o) {
|
|
1164
|
-
const h =
|
|
1164
|
+
const h = Yr(
|
|
1165
1165
|
t,
|
|
1166
1166
|
o,
|
|
1167
1167
|
l
|
|
1168
1168
|
);
|
|
1169
|
-
h != null && h.length ? d ?
|
|
1169
|
+
h != null && h.length ? d ? w(h) : m(h) : u(l);
|
|
1170
1170
|
} else
|
|
1171
1171
|
u(l);
|
|
1172
|
-
c(
|
|
1172
|
+
i(c(l));
|
|
1173
1173
|
}, [
|
|
1174
1174
|
t,
|
|
1175
1175
|
o,
|
|
1176
|
-
c,
|
|
1177
1176
|
i,
|
|
1177
|
+
c,
|
|
1178
1178
|
l,
|
|
1179
1179
|
d,
|
|
1180
|
-
|
|
1180
|
+
w,
|
|
1181
1181
|
m,
|
|
1182
1182
|
u
|
|
1183
|
-
]),
|
|
1184
|
-
u(l), c(
|
|
1185
|
-
}, [u, l,
|
|
1183
|
+
]), g = P(() => {
|
|
1184
|
+
u(l), i(c(l));
|
|
1185
|
+
}, [u, l, i, c]);
|
|
1186
1186
|
return {
|
|
1187
1187
|
isSelected: d,
|
|
1188
|
-
toggleSelected:
|
|
1188
|
+
toggleSelected: g,
|
|
1189
1189
|
shiftAndToggleSelected: f
|
|
1190
1190
|
};
|
|
1191
1191
|
}, $e = (e) => {
|
|
@@ -1194,61 +1194,61 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1194
1194
|
} = oe(), {
|
|
1195
1195
|
actions: { expandByIds: r },
|
|
1196
1196
|
dispatch: o
|
|
1197
|
-
} =
|
|
1197
|
+
} = pe(), s = y(() => t(e), [t, e]), c = y(
|
|
1198
1198
|
() => n.includes(s),
|
|
1199
1199
|
[n, s]
|
|
1200
|
-
), { toggle:
|
|
1200
|
+
), { toggle: i } = yt(
|
|
1201
1201
|
n,
|
|
1202
1202
|
(d) => o(r(d))
|
|
1203
1203
|
);
|
|
1204
1204
|
return {
|
|
1205
1205
|
toggleRowExpanded: P(() => {
|
|
1206
|
-
|
|
1207
|
-
}, [
|
|
1208
|
-
isExpanded:
|
|
1206
|
+
i(s);
|
|
1207
|
+
}, [i, s]),
|
|
1208
|
+
isExpanded: c
|
|
1209
1209
|
};
|
|
1210
|
-
},
|
|
1210
|
+
}, qr = function({
|
|
1211
1211
|
item: e,
|
|
1212
1212
|
colIndex: t,
|
|
1213
1213
|
numRows: n,
|
|
1214
1214
|
rowIndex: r
|
|
1215
1215
|
}) {
|
|
1216
|
-
const o =
|
|
1216
|
+
const o = Wt(), s = qe(), c = Oe(!0, {
|
|
1217
1217
|
colIndex: t,
|
|
1218
1218
|
numCols: o,
|
|
1219
1219
|
numRows: n,
|
|
1220
1220
|
rowIndex: r,
|
|
1221
1221
|
tableId: s
|
|
1222
|
-
}), { requiredProps:
|
|
1222
|
+
}), { requiredProps: i } = c, { expandCollapseDisableResolver: l } = I(), { toggleRowExpanded: d, isExpanded: u } = $e(e), m = y(() => l ? l(e) : !1, [l, e]);
|
|
1223
1223
|
return /* @__PURE__ */ a(T, { alignItems: "center", justifyContent: "center", indent: !0, children: !m && /* @__PURE__ */ a(
|
|
1224
1224
|
Ne,
|
|
1225
1225
|
{
|
|
1226
1226
|
size: "small",
|
|
1227
|
-
leftIcon: u ?
|
|
1227
|
+
leftIcon: u ? wt : gt,
|
|
1228
1228
|
onClick: d,
|
|
1229
|
-
...
|
|
1229
|
+
...i
|
|
1230
1230
|
}
|
|
1231
1231
|
) });
|
|
1232
|
-
},
|
|
1233
|
-
() =>
|
|
1232
|
+
}, _r = (e, t, n) => e ? e(t) : n, qt = (e, t, n) => y(
|
|
1233
|
+
() => _r(e, t, n),
|
|
1234
1234
|
[e, t, n]
|
|
1235
|
-
),
|
|
1235
|
+
), jr = (e, t) => {
|
|
1236
1236
|
const { background: n, backgroundResolver: r } = ye(e);
|
|
1237
|
-
return
|
|
1237
|
+
return qt(r, t, n);
|
|
1238
1238
|
}, ot = (e, t) => {
|
|
1239
1239
|
const { background: n, backgroundResolver: r } = e ?? {};
|
|
1240
|
-
return
|
|
1241
|
-
},
|
|
1242
|
-
standardTableCell:
|
|
1243
|
-
},
|
|
1240
|
+
return qt(r, t, n);
|
|
1241
|
+
}, Vr = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), $r = (e) => On(In(e)), Kr = "_standardTableCell_1xzcm_1", Qr = {
|
|
1242
|
+
standardTableCell: Kr
|
|
1243
|
+
}, Xr = M.memo(
|
|
1244
1244
|
function({
|
|
1245
1245
|
enableGridCell: t,
|
|
1246
1246
|
children: n,
|
|
1247
1247
|
background: r,
|
|
1248
1248
|
gridCellRequiredProps: o,
|
|
1249
1249
|
isEditing: s,
|
|
1250
|
-
justifyContent:
|
|
1251
|
-
onKeyDown:
|
|
1250
|
+
justifyContent: c,
|
|
1251
|
+
onKeyDown: i,
|
|
1252
1252
|
width: l,
|
|
1253
1253
|
minWidth: d
|
|
1254
1254
|
}) {
|
|
@@ -1260,15 +1260,15 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1260
1260
|
height: "inherit",
|
|
1261
1261
|
background: r,
|
|
1262
1262
|
overflow: "hidden",
|
|
1263
|
-
onKeyDown:
|
|
1263
|
+
onKeyDown: i,
|
|
1264
1264
|
children: /* @__PURE__ */ a(
|
|
1265
1265
|
T,
|
|
1266
1266
|
{
|
|
1267
1267
|
border: "1px solid transparent",
|
|
1268
|
-
className:
|
|
1268
|
+
className: Qr.standardTableCell,
|
|
1269
1269
|
width: "100%",
|
|
1270
1270
|
height: "100%",
|
|
1271
|
-
justifyContent:
|
|
1271
|
+
justifyContent: c,
|
|
1272
1272
|
alignItems: "center",
|
|
1273
1273
|
borderRadius: t ? "4px" : void 0,
|
|
1274
1274
|
focusBorder: t && !s ? "1px solid var(--swui-primary-action-color)" : void 0,
|
|
@@ -1280,48 +1280,48 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1280
1280
|
}
|
|
1281
1281
|
);
|
|
1282
1282
|
}
|
|
1283
|
-
),
|
|
1284
|
-
textCell:
|
|
1285
|
-
},
|
|
1283
|
+
), Ur = "_textCell_1yv6v_1", Jr = {
|
|
1284
|
+
textCell: Ur
|
|
1285
|
+
}, Zr = M.memo(function({
|
|
1286
1286
|
label: t,
|
|
1287
1287
|
size: n,
|
|
1288
1288
|
color: r
|
|
1289
1289
|
}) {
|
|
1290
|
-
return /* @__PURE__ */ a(
|
|
1291
|
-
}),
|
|
1290
|
+
return /* @__PURE__ */ a(B, { overflow: "hidden", children: /* @__PURE__ */ a(J, { className: Jr.textCell, title: t, size: n, color: r, children: t }) });
|
|
1291
|
+
}), eo = ({
|
|
1292
1292
|
label: e,
|
|
1293
1293
|
textSize: t
|
|
1294
|
-
}) => /* @__PURE__ */ a(
|
|
1294
|
+
}) => /* @__PURE__ */ a(Zr, { label: e, size: t }), to = M.memo(function({
|
|
1295
1295
|
columnId: t,
|
|
1296
1296
|
item: n,
|
|
1297
1297
|
colIndex: r,
|
|
1298
1298
|
rowIndex: o,
|
|
1299
1299
|
numRows: s,
|
|
1300
|
-
borderFromGroup:
|
|
1301
|
-
disableBorderLeft:
|
|
1300
|
+
borderFromGroup: c,
|
|
1301
|
+
disableBorderLeft: i
|
|
1302
1302
|
}) {
|
|
1303
1303
|
const {
|
|
1304
1304
|
keyResolver: l,
|
|
1305
1305
|
enableGridCell: d,
|
|
1306
1306
|
gridCellOptions: u
|
|
1307
|
-
} = I(), m = oe().selectedIds.selectedIds,
|
|
1307
|
+
} = I(), m = oe().selectedIds.selectedIds, w = qe(), f = ar(), { numNavigableColumns: g } = zt(), h = _e(), p = y(() => l(n), [n, l]), b = y(() => m.indexOf(p) >= 0, [p, m]), { defaultCellRenderer: S = eo, defaultTextSize: O } = I(), {
|
|
1308
1308
|
itemValueResolver: v,
|
|
1309
|
-
itemLabelFormatter:
|
|
1310
|
-
width:
|
|
1309
|
+
itemLabelFormatter: G,
|
|
1310
|
+
width: R,
|
|
1311
1311
|
minWidth: k,
|
|
1312
1312
|
justifyContentCell: W = "flex-start",
|
|
1313
|
-
borderLeft:
|
|
1313
|
+
borderLeft: A,
|
|
1314
1314
|
renderCell: V = S,
|
|
1315
1315
|
gridCellOptions: ee,
|
|
1316
1316
|
isEditable: q,
|
|
1317
|
-
onChange:
|
|
1317
|
+
onChange: L,
|
|
1318
1318
|
onKeyDown: $,
|
|
1319
1319
|
disableGridCell: De,
|
|
1320
1320
|
disableGridCellFocus: be,
|
|
1321
1321
|
zIndex: ve
|
|
1322
|
-
} = ye(t),
|
|
1323
|
-
() =>
|
|
1324
|
-
[
|
|
1322
|
+
} = ye(t), Q = y(() => v ? v(n) : t in n ? n[t] : "", [v, n, t]), ue = y(
|
|
1323
|
+
() => G ? G(Q, n) : Vr(Q),
|
|
1324
|
+
[Q, G, n]
|
|
1325
1325
|
), se = typeof q == "boolean" ? q : q ? q(n) : void 0, de = P(
|
|
1326
1326
|
(Ce) => {
|
|
1327
1327
|
$ == null || $(Ce, { columnId: t, item: n }), f == null || f(Ce, { columnId: t, item: n });
|
|
@@ -1331,82 +1331,82 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1331
1331
|
colIndex: r,
|
|
1332
1332
|
rowIndex: o,
|
|
1333
1333
|
numRows: s,
|
|
1334
|
-
numCols:
|
|
1335
|
-
tableId:
|
|
1334
|
+
numCols: g,
|
|
1335
|
+
tableId: w,
|
|
1336
1336
|
isEditable: se,
|
|
1337
|
-
onChange:
|
|
1337
|
+
onChange: L ? (Ce) => L(n, Ce) : void 0,
|
|
1338
1338
|
...u,
|
|
1339
1339
|
...ee
|
|
1340
|
-
}), F = h[t],
|
|
1340
|
+
}), F = h[t], Xt = jr(t, n) ?? "inherit", Ee = F.sticky ? ve ?? "var(--swui-sticky-column-z-index)" : ve ?? 1, Ut = y(
|
|
1341
1341
|
() => V({
|
|
1342
1342
|
label: ue,
|
|
1343
|
-
value:
|
|
1343
|
+
value: Q,
|
|
1344
1344
|
item: n,
|
|
1345
1345
|
gridCell: te,
|
|
1346
1346
|
isEditable: se,
|
|
1347
1347
|
isSelected: b,
|
|
1348
1348
|
zIndex: Ee,
|
|
1349
1349
|
textSize: O,
|
|
1350
|
-
itemKey:
|
|
1350
|
+
itemKey: p
|
|
1351
1351
|
}),
|
|
1352
1352
|
[
|
|
1353
1353
|
V,
|
|
1354
1354
|
ue,
|
|
1355
|
-
|
|
1355
|
+
Q,
|
|
1356
1356
|
n,
|
|
1357
1357
|
te,
|
|
1358
1358
|
se,
|
|
1359
1359
|
b,
|
|
1360
1360
|
Ee,
|
|
1361
|
-
|
|
1361
|
+
p,
|
|
1362
1362
|
O
|
|
1363
1363
|
]
|
|
1364
|
-
),
|
|
1365
|
-
i,
|
|
1364
|
+
), Jt = Ve(
|
|
1366
1365
|
c,
|
|
1367
|
-
|
|
1368
|
-
|
|
1366
|
+
i,
|
|
1367
|
+
A
|
|
1368
|
+
), Zt = F.sticky && F.type === "last-group" && F.isFirstColumnInLastGroup || F.sticky && F.type === "column" && F.right ? "var(--swui-sticky-column-shadow-left)" : F.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0;
|
|
1369
1369
|
return /* @__PURE__ */ a(
|
|
1370
1370
|
"td",
|
|
1371
1371
|
{
|
|
1372
1372
|
style: {
|
|
1373
|
-
borderLeft:
|
|
1373
|
+
borderLeft: Jt,
|
|
1374
1374
|
position: F.sticky ? "sticky" : void 0,
|
|
1375
1375
|
left: F.sticky ? F.left : void 0,
|
|
1376
1376
|
right: F.sticky ? F.right : void 0,
|
|
1377
|
-
boxShadow:
|
|
1377
|
+
boxShadow: Zt,
|
|
1378
1378
|
zIndex: Ee,
|
|
1379
1379
|
height: "var(--current-row-height)",
|
|
1380
|
-
background:
|
|
1380
|
+
background: Xt
|
|
1381
1381
|
},
|
|
1382
1382
|
children: /* @__PURE__ */ a(
|
|
1383
|
-
|
|
1383
|
+
Xr,
|
|
1384
1384
|
{
|
|
1385
1385
|
enableGridCell: d && !De && !be,
|
|
1386
1386
|
gridCellRequiredProps: te.requiredProps,
|
|
1387
1387
|
isEditing: te.isEditing,
|
|
1388
|
-
width:
|
|
1388
|
+
width: R,
|
|
1389
1389
|
minWidth: k,
|
|
1390
1390
|
justifyContent: W,
|
|
1391
1391
|
onKeyDown: de,
|
|
1392
|
-
children:
|
|
1392
|
+
children: Ut
|
|
1393
1393
|
}
|
|
1394
1394
|
)
|
|
1395
1395
|
}
|
|
1396
1396
|
);
|
|
1397
|
-
}),
|
|
1398
|
-
const { renderRowExpansion: n, enableExpandCollapse: r } = I(), { isExpanded: o, toggleRowExpanded: s } = $e(t),
|
|
1397
|
+
}), no = function({ item: t }) {
|
|
1398
|
+
const { renderRowExpansion: n, enableExpandCollapse: r } = I(), { isExpanded: o, toggleRowExpanded: s } = $e(t), c = je();
|
|
1399
1399
|
return /* @__PURE__ */ a(E, { children: r && n && o && /* @__PURE__ */ a(
|
|
1400
1400
|
"tr",
|
|
1401
1401
|
{
|
|
1402
1402
|
style: {
|
|
1403
|
-
borderLeft:
|
|
1404
|
-
background:
|
|
1403
|
+
borderLeft: kt,
|
|
1404
|
+
background: xt
|
|
1405
1405
|
},
|
|
1406
|
-
children: /* @__PURE__ */ a("td", { colSpan:
|
|
1406
|
+
children: /* @__PURE__ */ a("td", { colSpan: c, children: n(t, { onRequestCollapse: s }) })
|
|
1407
1407
|
}
|
|
1408
1408
|
) });
|
|
1409
|
-
},
|
|
1409
|
+
}, _t = Tn.tr`
|
|
1410
1410
|
${({ focusBackground: e }) => e ? `--focus-within-background: ${e};` : ""}
|
|
1411
1411
|
${({ borderLeft: e }) => e ? `border-left: ${e};` : ""};
|
|
1412
1412
|
${({ background: e }) => e ? `background: ${e};` : ""};
|
|
@@ -1415,50 +1415,50 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1415
1415
|
background: ${e};
|
|
1416
1416
|
}
|
|
1417
1417
|
` : ""}
|
|
1418
|
-
`,
|
|
1418
|
+
`, ro = M.memo(function({
|
|
1419
1419
|
item: t,
|
|
1420
1420
|
idListForEnabledItems: n,
|
|
1421
1421
|
rowIndex: r,
|
|
1422
1422
|
numRows: o,
|
|
1423
1423
|
colIndexOffset: s,
|
|
1424
|
-
alwaysVisible:
|
|
1425
|
-
shiftPressedRef:
|
|
1424
|
+
alwaysVisible: c,
|
|
1425
|
+
shiftPressedRef: i
|
|
1426
1426
|
}) {
|
|
1427
|
-
const l =
|
|
1427
|
+
const l = ie(null), d = je(), { stickyCheckboxColumn: u } = I(), m = Z(), { columnIndexPerColumnId: w } = zt(), {
|
|
1428
1428
|
showRowCheckbox: f,
|
|
1429
|
-
rowBackgroundResolver:
|
|
1429
|
+
rowBackgroundResolver: g,
|
|
1430
1430
|
checkboxDisabledResolver: h,
|
|
1431
|
-
enableGridCell:
|
|
1431
|
+
enableGridCell: p,
|
|
1432
1432
|
rowIndent: b,
|
|
1433
1433
|
enableExpandCollapse: S
|
|
1434
|
-
} = I(), { isExpanded: O } = $e(t), { isSelected: v, toggleSelected:
|
|
1434
|
+
} = I(), { isExpanded: O } = $e(t), { isSelected: v, toggleSelected: G, shiftAndToggleSelected: R } = zr(
|
|
1435
1435
|
t,
|
|
1436
1436
|
n
|
|
1437
|
-
), k =
|
|
1437
|
+
), k = ln(l, {
|
|
1438
1438
|
rootMargin: "400px 0px 400px 0px",
|
|
1439
1439
|
threshold: 0
|
|
1440
1440
|
}), W = y(
|
|
1441
|
-
() =>
|
|
1442
|
-
[v, t,
|
|
1443
|
-
),
|
|
1441
|
+
() => g == null ? void 0 : g(t, v),
|
|
1442
|
+
[v, t, g]
|
|
1443
|
+
), A = oo(
|
|
1444
1444
|
W,
|
|
1445
1445
|
v,
|
|
1446
1446
|
O
|
|
1447
|
-
), V =
|
|
1447
|
+
), V = so(
|
|
1448
1448
|
W,
|
|
1449
1449
|
v,
|
|
1450
1450
|
O
|
|
1451
|
-
), ee =
|
|
1451
|
+
), ee = ao(
|
|
1452
1452
|
W,
|
|
1453
1453
|
v,
|
|
1454
1454
|
V
|
|
1455
1455
|
), q = y(
|
|
1456
1456
|
() => h == null ? void 0 : h(t),
|
|
1457
1457
|
[t, h]
|
|
1458
|
-
),
|
|
1459
|
-
|
|
1458
|
+
), L = dr(), $ = ot(
|
|
1459
|
+
L,
|
|
1460
1460
|
t
|
|
1461
|
-
), De =
|
|
1461
|
+
), De = hr(), be = ot(
|
|
1462
1462
|
De,
|
|
1463
1463
|
t
|
|
1464
1464
|
), ve = y(
|
|
@@ -1469,7 +1469,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1469
1469
|
style: {
|
|
1470
1470
|
background: $
|
|
1471
1471
|
},
|
|
1472
|
-
children: /* @__PURE__ */ a(
|
|
1472
|
+
children: /* @__PURE__ */ a(B, { num: b })
|
|
1473
1473
|
}
|
|
1474
1474
|
),
|
|
1475
1475
|
S && /* @__PURE__ */ a(
|
|
@@ -1490,11 +1490,11 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1490
1490
|
alignItems: "center",
|
|
1491
1491
|
justifyContent: "center",
|
|
1492
1492
|
children: /* @__PURE__ */ a(
|
|
1493
|
-
|
|
1493
|
+
qr,
|
|
1494
1494
|
{
|
|
1495
1495
|
colIndex: s,
|
|
1496
|
-
rowIndex:
|
|
1497
|
-
numRows:
|
|
1496
|
+
rowIndex: p ? r : 0,
|
|
1497
|
+
numRows: p ? o : 0,
|
|
1498
1498
|
item: t
|
|
1499
1499
|
}
|
|
1500
1500
|
)
|
|
@@ -1521,34 +1521,34 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1521
1521
|
alignItems: "center",
|
|
1522
1522
|
justifyContent: "center",
|
|
1523
1523
|
children: /* @__PURE__ */ a(
|
|
1524
|
-
|
|
1524
|
+
Hr,
|
|
1525
1525
|
{
|
|
1526
1526
|
disabled: q,
|
|
1527
1527
|
value: v,
|
|
1528
|
-
onValueChange:
|
|
1529
|
-
onValueChangeAndShift:
|
|
1528
|
+
onValueChange: G,
|
|
1529
|
+
onValueChangeAndShift: R,
|
|
1530
1530
|
colIndex: s + (S ? 1 : 0),
|
|
1531
1531
|
rowIndex: r,
|
|
1532
1532
|
numRows: o,
|
|
1533
|
-
shiftPressedRef:
|
|
1533
|
+
shiftPressedRef: i
|
|
1534
1534
|
}
|
|
1535
1535
|
)
|
|
1536
1536
|
}
|
|
1537
1537
|
)
|
|
1538
1538
|
}
|
|
1539
1539
|
),
|
|
1540
|
-
m.map(({ groupConfig:
|
|
1541
|
-
|
|
1540
|
+
m.map(({ groupConfig: Q, groupId: ue }, se) => /* @__PURE__ */ a(M.Fragment, { children: Q.columnOrder.map((de, te) => /* @__PURE__ */ a(
|
|
1541
|
+
to,
|
|
1542
1542
|
{
|
|
1543
1543
|
columnId: de,
|
|
1544
1544
|
item: t,
|
|
1545
|
-
colIndex: s +
|
|
1545
|
+
colIndex: s + w[de],
|
|
1546
1546
|
rowIndex: r,
|
|
1547
1547
|
numRows: o,
|
|
1548
1548
|
borderFromGroup: Ie(
|
|
1549
1549
|
se,
|
|
1550
1550
|
te,
|
|
1551
|
-
|
|
1551
|
+
Q.borderLeft
|
|
1552
1552
|
),
|
|
1553
1553
|
disableBorderLeft: se === 0 && te === 0
|
|
1554
1554
|
},
|
|
@@ -1560,17 +1560,17 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1560
1560
|
style: {
|
|
1561
1561
|
background: be
|
|
1562
1562
|
},
|
|
1563
|
-
children: /* @__PURE__ */ a(
|
|
1563
|
+
children: /* @__PURE__ */ a(B, { num: b })
|
|
1564
1564
|
}
|
|
1565
1565
|
),
|
|
1566
1566
|
/* @__PURE__ */ a("td", {})
|
|
1567
1567
|
] }) }),
|
|
1568
1568
|
[
|
|
1569
1569
|
s,
|
|
1570
|
-
|
|
1570
|
+
w,
|
|
1571
1571
|
q,
|
|
1572
1572
|
S,
|
|
1573
|
-
|
|
1573
|
+
p,
|
|
1574
1574
|
$,
|
|
1575
1575
|
m,
|
|
1576
1576
|
v,
|
|
@@ -1579,23 +1579,23 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1579
1579
|
o,
|
|
1580
1580
|
b,
|
|
1581
1581
|
r,
|
|
1582
|
-
|
|
1583
|
-
|
|
1582
|
+
R,
|
|
1583
|
+
i,
|
|
1584
1584
|
f,
|
|
1585
1585
|
u,
|
|
1586
|
-
|
|
1586
|
+
G
|
|
1587
1587
|
]
|
|
1588
1588
|
);
|
|
1589
1589
|
return /* @__PURE__ */ C(E, { children: [
|
|
1590
1590
|
/* @__PURE__ */ a(
|
|
1591
|
-
|
|
1591
|
+
_t,
|
|
1592
1592
|
{
|
|
1593
1593
|
hoverBackground: V,
|
|
1594
|
-
background:
|
|
1594
|
+
background: A,
|
|
1595
1595
|
focusBackground: ee,
|
|
1596
|
-
borderLeft: O ?
|
|
1596
|
+
borderLeft: O ? kt : Fe,
|
|
1597
1597
|
ref: l,
|
|
1598
|
-
children: k ||
|
|
1598
|
+
children: k || c || O ? ve : /* @__PURE__ */ a(
|
|
1599
1599
|
"td",
|
|
1600
1600
|
{
|
|
1601
1601
|
colSpan: d,
|
|
@@ -1604,66 +1604,66 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1604
1604
|
)
|
|
1605
1605
|
}
|
|
1606
1606
|
),
|
|
1607
|
-
/* @__PURE__ */ a(
|
|
1607
|
+
/* @__PURE__ */ a(no, { item: t })
|
|
1608
1608
|
] });
|
|
1609
|
-
}),
|
|
1609
|
+
}), oo = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.background : t ? j("--lhds-color-blue-100") : n ? xt : "white", so = (e, t, n) => e ? typeof e == "string" ? e : e == null ? void 0 : e.hoverBackground : t ? j("--lhds-color-blue-200") : n ? Rn : j("--lhds-color-ui-200"), ao = (e, t, n) => {
|
|
1610
1610
|
if (t)
|
|
1611
1611
|
return j("--lhds-color-blue-200");
|
|
1612
1612
|
if (e)
|
|
1613
1613
|
return n;
|
|
1614
|
-
},
|
|
1615
|
-
summaryRow:
|
|
1616
|
-
},
|
|
1614
|
+
}, co = (e) => Object.values(e).some((t) => io(t)), io = (e) => !!(e.renderSummaryCell || e.summaryText), lo = "_summaryRow_12x8k_1", uo = {
|
|
1615
|
+
summaryRow: lo
|
|
1616
|
+
}, ho = M.memo(function({
|
|
1617
1617
|
columnId: t,
|
|
1618
1618
|
items: n,
|
|
1619
1619
|
disableBorderLeft: r,
|
|
1620
1620
|
borderFromGroup: o,
|
|
1621
1621
|
colSpan: s
|
|
1622
1622
|
}) {
|
|
1623
|
-
const
|
|
1624
|
-
renderSummaryCell:
|
|
1623
|
+
const c = _e(), {
|
|
1624
|
+
renderSummaryCell: i,
|
|
1625
1625
|
summaryText: l,
|
|
1626
1626
|
borderLeft: d,
|
|
1627
1627
|
zIndex: u,
|
|
1628
1628
|
width: m,
|
|
1629
|
-
minWidth:
|
|
1629
|
+
minWidth: w,
|
|
1630
1630
|
justifyContentCell: f
|
|
1631
|
-
} = ye(t),
|
|
1631
|
+
} = ye(t), g = Ve(
|
|
1632
1632
|
o,
|
|
1633
1633
|
r,
|
|
1634
1634
|
d
|
|
1635
|
-
), h =
|
|
1636
|
-
() =>
|
|
1637
|
-
[n,
|
|
1635
|
+
), h = c[t], p = h.sticky ? u ?? "var(--swui-sticky-column-z-index)" : u ?? 1, b = h.sticky && h.type === "last-group" && h.isFirstColumnInLastGroup || h.sticky && h.type === "column" && h.right ? "var(--swui-sticky-column-shadow-left)" : h.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0, S = y(() => l == null ? void 0 : l({ items: n }), [n, l]), O = y(
|
|
1636
|
+
() => i == null ? void 0 : i({ items: n, text: S }),
|
|
1637
|
+
[n, i, S]
|
|
1638
1638
|
);
|
|
1639
1639
|
return /* @__PURE__ */ a(
|
|
1640
1640
|
"td",
|
|
1641
1641
|
{
|
|
1642
1642
|
colSpan: s,
|
|
1643
1643
|
style: {
|
|
1644
|
-
borderLeft:
|
|
1644
|
+
borderLeft: g,
|
|
1645
1645
|
position: h.sticky ? "sticky" : void 0,
|
|
1646
1646
|
left: h.sticky ? h.left : void 0,
|
|
1647
1647
|
right: h.sticky ? h.right : void 0,
|
|
1648
1648
|
boxShadow: b,
|
|
1649
|
-
zIndex:
|
|
1649
|
+
zIndex: p,
|
|
1650
1650
|
height: "var(--current-row-height)"
|
|
1651
1651
|
},
|
|
1652
1652
|
children: /* @__PURE__ */ a(
|
|
1653
1653
|
T,
|
|
1654
1654
|
{
|
|
1655
1655
|
width: m,
|
|
1656
|
-
minWidth:
|
|
1656
|
+
minWidth: w,
|
|
1657
1657
|
height: "inherit",
|
|
1658
1658
|
overflow: "hidden",
|
|
1659
1659
|
justifyContent: f,
|
|
1660
1660
|
alignItems: "center",
|
|
1661
|
-
children:
|
|
1661
|
+
children: i ? O : /* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(J, { variant: "bold", children: S }) })
|
|
1662
1662
|
}
|
|
1663
1663
|
)
|
|
1664
1664
|
}
|
|
1665
1665
|
);
|
|
1666
|
-
}),
|
|
1666
|
+
}), mo = (e, t) => {
|
|
1667
1667
|
const n = [];
|
|
1668
1668
|
for (let r = 0; r < e.length; r++) {
|
|
1669
1669
|
const { summaryCellColSpan: o } = t[e[r]], s = Math.min(
|
|
@@ -1671,134 +1671,134 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1671
1671
|
e.length - r
|
|
1672
1672
|
);
|
|
1673
1673
|
n.push({ columnId: e[r], colSpan: s });
|
|
1674
|
-
const
|
|
1675
|
-
|
|
1674
|
+
const c = o ?? 1;
|
|
1675
|
+
c > 1 && (r += c - 1);
|
|
1676
1676
|
}
|
|
1677
1677
|
return n;
|
|
1678
|
-
},
|
|
1678
|
+
}, fo = M.memo(
|
|
1679
1679
|
function({
|
|
1680
1680
|
items: t
|
|
1681
1681
|
}) {
|
|
1682
|
-
const n = Z(), { showRowCheckbox: r, enableExpandCollapse: o, columns: s, rowIndent:
|
|
1683
|
-
return /* @__PURE__ */ C("tr", { className:
|
|
1684
|
-
|
|
1682
|
+
const n = Z(), { showRowCheckbox: r, enableExpandCollapse: o, columns: s, rowIndent: c } = I();
|
|
1683
|
+
return /* @__PURE__ */ C("tr", { className: uo.summaryRow, children: [
|
|
1684
|
+
c && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(B, { num: c }) }),
|
|
1685
1685
|
o && /* @__PURE__ */ a("td", {}),
|
|
1686
1686
|
r && /* @__PURE__ */ a("td", {}),
|
|
1687
|
-
n.map(({ groupConfig:
|
|
1688
|
-
({ columnId: u, colSpan: m },
|
|
1689
|
-
|
|
1687
|
+
n.map(({ groupConfig: i, groupId: l }, d) => /* @__PURE__ */ a(M.Fragment, { children: mo(i.columnOrder, s).map(
|
|
1688
|
+
({ columnId: u, colSpan: m }, w) => /* @__PURE__ */ a(
|
|
1689
|
+
ho,
|
|
1690
1690
|
{
|
|
1691
1691
|
colSpan: m,
|
|
1692
1692
|
columnId: u,
|
|
1693
1693
|
items: t,
|
|
1694
1694
|
borderFromGroup: Ie(
|
|
1695
1695
|
d,
|
|
1696
|
-
|
|
1697
|
-
|
|
1696
|
+
w,
|
|
1697
|
+
i.borderLeft
|
|
1698
1698
|
),
|
|
1699
|
-
disableBorderLeft: d === 0 &&
|
|
1699
|
+
disableBorderLeft: d === 0 && w === 0
|
|
1700
1700
|
},
|
|
1701
1701
|
u
|
|
1702
1702
|
)
|
|
1703
1703
|
) }, l)),
|
|
1704
|
-
|
|
1704
|
+
c && /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(B, { num: c }) }),
|
|
1705
1705
|
/* @__PURE__ */ a("td", {})
|
|
1706
1706
|
] });
|
|
1707
1707
|
}
|
|
1708
|
-
),
|
|
1708
|
+
), wo = function({ items: t }) {
|
|
1709
1709
|
const { columns: n } = I();
|
|
1710
|
-
return y(() =>
|
|
1711
|
-
},
|
|
1710
|
+
return y(() => co(n), [n]) ? /* @__PURE__ */ a(fo, { items: t }) : null;
|
|
1711
|
+
}, jt = (e) => (t) => e == null ? !0 : !e(t), go = M.memo(function({
|
|
1712
1712
|
items: t,
|
|
1713
1713
|
colIndexOffset: n = 0,
|
|
1714
1714
|
rowIndexOffset: r = 0
|
|
1715
1715
|
}) {
|
|
1716
|
-
const o =
|
|
1717
|
-
keyResolver:
|
|
1718
|
-
disableInfiniteList:
|
|
1716
|
+
const o = ie(0), s = ie(!1), {
|
|
1717
|
+
keyResolver: c,
|
|
1718
|
+
disableInfiniteList: i,
|
|
1719
1719
|
checkboxDisabledResolver: l,
|
|
1720
1720
|
enableExternalSorting: d
|
|
1721
1721
|
} = I(), {
|
|
1722
1722
|
sortOrder: { sortBy: u, desc: m }
|
|
1723
|
-
} = oe(),
|
|
1723
|
+
} = oe(), w = Fr(u), f = y(() => {
|
|
1724
1724
|
if (d)
|
|
1725
1725
|
return t ?? [];
|
|
1726
1726
|
if (!t || !t.length)
|
|
1727
1727
|
return [];
|
|
1728
|
-
if (!
|
|
1728
|
+
if (!w)
|
|
1729
1729
|
return t;
|
|
1730
1730
|
const h = [...t];
|
|
1731
1731
|
return h.sort(
|
|
1732
|
-
(
|
|
1733
|
-
p
|
|
1734
|
-
|
|
1732
|
+
(p, b) => Lr(
|
|
1733
|
+
w(p),
|
|
1734
|
+
w(b)
|
|
1735
1735
|
)
|
|
1736
|
-
), m && h.reverse(),
|
|
1737
|
-
}, [d, t,
|
|
1738
|
-
() => f.filter(
|
|
1739
|
-
[f, l,
|
|
1736
|
+
), m && h.reverse(), i || o.current++, h;
|
|
1737
|
+
}, [d, t, w, m, i]), g = y(
|
|
1738
|
+
() => f.filter(jt(l)).map((h) => c(h)),
|
|
1739
|
+
[f, l, c]
|
|
1740
1740
|
);
|
|
1741
|
-
return
|
|
1741
|
+
return mt(() => {
|
|
1742
1742
|
const h = (b) => {
|
|
1743
1743
|
b.key === "Shift" && (s.current = !1);
|
|
1744
|
-
},
|
|
1744
|
+
}, p = (b) => {
|
|
1745
1745
|
b.key === "Shift" && (s.current = !0);
|
|
1746
1746
|
};
|
|
1747
|
-
return document.addEventListener("keyup", h), document.addEventListener("keydown",
|
|
1748
|
-
document.removeEventListener("keyup", h), document.removeEventListener("keydown",
|
|
1747
|
+
return document.addEventListener("keyup", h), document.addEventListener("keydown", p), () => {
|
|
1748
|
+
document.removeEventListener("keyup", h), document.removeEventListener("keydown", p);
|
|
1749
1749
|
};
|
|
1750
1750
|
}, []), /* @__PURE__ */ C(M.Fragment, { children: [
|
|
1751
|
-
f.map((h,
|
|
1752
|
-
|
|
1751
|
+
f.map((h, p) => /* @__PURE__ */ a(
|
|
1752
|
+
ro,
|
|
1753
1753
|
{
|
|
1754
|
-
alwaysVisible:
|
|
1754
|
+
alwaysVisible: i || f.length < 30,
|
|
1755
1755
|
item: h,
|
|
1756
|
-
idListForEnabledItems:
|
|
1756
|
+
idListForEnabledItems: g,
|
|
1757
1757
|
colIndexOffset: n,
|
|
1758
|
-
rowIndex:
|
|
1758
|
+
rowIndex: p + r,
|
|
1759
1759
|
numRows: f.length,
|
|
1760
1760
|
shiftPressedRef: s
|
|
1761
1761
|
},
|
|
1762
|
-
|
|
1762
|
+
c(h)
|
|
1763
1763
|
)),
|
|
1764
|
-
/* @__PURE__ */ a(
|
|
1764
|
+
/* @__PURE__ */ a(wo, { items: f })
|
|
1765
1765
|
] }, o.current);
|
|
1766
|
-
}),
|
|
1766
|
+
}), po = M.memo(function({
|
|
1767
1767
|
error: t,
|
|
1768
1768
|
bannerError: n,
|
|
1769
1769
|
loading: r,
|
|
1770
1770
|
items: o,
|
|
1771
1771
|
noItemsLabel: s = "There is no data available.",
|
|
1772
|
-
noItemsContentRight:
|
|
1773
|
-
noItemsContentBottom:
|
|
1772
|
+
noItemsContentRight: c,
|
|
1773
|
+
noItemsContentBottom: i,
|
|
1774
1774
|
noItemsHeader: l,
|
|
1775
1775
|
colIndexOffset: d,
|
|
1776
1776
|
rowIndexOffset: u,
|
|
1777
1777
|
variant: m,
|
|
1778
|
-
errorLabel:
|
|
1778
|
+
errorLabel: w,
|
|
1779
1779
|
renderExtraRowTop: f,
|
|
1780
|
-
renderExtraRowBottom:
|
|
1780
|
+
renderExtraRowBottom: g
|
|
1781
1781
|
}) {
|
|
1782
1782
|
const h = je();
|
|
1783
|
-
return n ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: h, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(le, { alignItems: "center", children: /* @__PURE__ */ a(
|
|
1783
|
+
return n ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: h, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(le, { alignItems: "center", children: /* @__PURE__ */ a(on, { bannerState: n, variant: "error" }) }) }) }) }) }) : t || w ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: h, children: /* @__PURE__ */ a(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ a(le, { alignItems: "center", children: /* @__PURE__ */ a(
|
|
1784
1784
|
Ke,
|
|
1785
1785
|
{
|
|
1786
|
-
headerText: (t ? t.message :
|
|
1786
|
+
headerText: (t ? t.message : w) ?? "Unknown error",
|
|
1787
1787
|
variant: "error"
|
|
1788
1788
|
}
|
|
1789
|
-
) }) }) }) }) }) : r ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: h, children: /* @__PURE__ */ a(Me, { num: 4, children: /* @__PURE__ */ a(
|
|
1789
|
+
) }) }) }) }) }) : r ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: h, children: /* @__PURE__ */ a(Me, { num: 4, children: /* @__PURE__ */ a(kn, {}) }) }) }) }) : !o || !o.length ? /* @__PURE__ */ a("tbody", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: h, children: /* @__PURE__ */ a(T, { spacing: 4, justifyContent: "center", children: /* @__PURE__ */ a(
|
|
1790
1790
|
Ke,
|
|
1791
1791
|
{
|
|
1792
1792
|
text: s,
|
|
1793
1793
|
headerText: l,
|
|
1794
|
-
contentRight:
|
|
1794
|
+
contentRight: c,
|
|
1795
1795
|
variant: "info",
|
|
1796
|
-
children:
|
|
1796
|
+
children: i
|
|
1797
1797
|
}
|
|
1798
1798
|
) }) }) }) }) : /* @__PURE__ */ C("tbody", { children: [
|
|
1799
1799
|
f == null ? void 0 : f(),
|
|
1800
1800
|
/* @__PURE__ */ a(
|
|
1801
|
-
|
|
1801
|
+
go,
|
|
1802
1802
|
{
|
|
1803
1803
|
variant: m,
|
|
1804
1804
|
items: o,
|
|
@@ -1806,44 +1806,44 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1806
1806
|
rowIndexOffset: u
|
|
1807
1807
|
}
|
|
1808
1808
|
),
|
|
1809
|
-
|
|
1809
|
+
g == null ? void 0 : g()
|
|
1810
1810
|
] });
|
|
1811
|
-
}),
|
|
1811
|
+
}), yo = (e) => {
|
|
1812
1812
|
const { keyResolver: t, checkboxDisabledResolver: n } = I(), {
|
|
1813
1813
|
selectedIds: { selectedIds: r }
|
|
1814
1814
|
} = oe(), {
|
|
1815
1815
|
actions: { setSelectedIds: o, clearSelection: s },
|
|
1816
|
-
dispatch:
|
|
1817
|
-
} =
|
|
1818
|
-
e &&
|
|
1819
|
-
|
|
1820
|
-
e.filter(
|
|
1816
|
+
dispatch: c
|
|
1817
|
+
} = pe(), i = r.length === 0, l = e ? e.length > 0 && r.length === e.length : !1, d = P(() => {
|
|
1818
|
+
e && c(
|
|
1819
|
+
i ? o(
|
|
1820
|
+
e.filter(jt(n)).map((u) => t(u))
|
|
1821
1821
|
) : s()
|
|
1822
1822
|
);
|
|
1823
1823
|
}, [
|
|
1824
1824
|
e,
|
|
1825
|
-
c,
|
|
1826
1825
|
i,
|
|
1826
|
+
c,
|
|
1827
1827
|
o,
|
|
1828
1828
|
n,
|
|
1829
1829
|
t,
|
|
1830
1830
|
s
|
|
1831
1831
|
]);
|
|
1832
1832
|
return {
|
|
1833
|
-
selectionIsEmpty:
|
|
1833
|
+
selectionIsEmpty: i,
|
|
1834
1834
|
allItemsAreSelected: l,
|
|
1835
1835
|
onClickCheckbox: d
|
|
1836
1836
|
};
|
|
1837
|
-
},
|
|
1837
|
+
}, bo = (e) => {
|
|
1838
1838
|
const { keyResolver: t } = I(), {
|
|
1839
1839
|
expandedRows: { selectedIds: n }
|
|
1840
1840
|
} = oe(), {
|
|
1841
1841
|
actions: { collapseAll: r, expandByIds: o },
|
|
1842
1842
|
dispatch: s
|
|
1843
|
-
} =
|
|
1844
|
-
e && s(
|
|
1843
|
+
} = pe(), c = e ? e.length > 0 && n.length === e.length : !1, i = P(() => {
|
|
1844
|
+
e && s(c ? r() : o(e.map((l) => t(l))));
|
|
1845
1845
|
}, [
|
|
1846
|
-
|
|
1846
|
+
c,
|
|
1847
1847
|
r,
|
|
1848
1848
|
s,
|
|
1849
1849
|
e,
|
|
@@ -1851,28 +1851,28 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1851
1851
|
o
|
|
1852
1852
|
]);
|
|
1853
1853
|
return {
|
|
1854
|
-
allItemsAreExpanded:
|
|
1855
|
-
toggleExpanded:
|
|
1854
|
+
allItemsAreExpanded: c,
|
|
1855
|
+
toggleExpanded: i
|
|
1856
1856
|
};
|
|
1857
|
-
},
|
|
1858
|
-
const { dispatch: t, actions: n } =
|
|
1857
|
+
}, vo = (e) => {
|
|
1858
|
+
const { dispatch: t, actions: n } = pe(), r = cr(), {
|
|
1859
1859
|
sortOrder: { desc: o, sortBy: s }
|
|
1860
1860
|
} = oe();
|
|
1861
1861
|
return y(() => {
|
|
1862
|
-
const
|
|
1862
|
+
const c = e === s;
|
|
1863
1863
|
return {
|
|
1864
|
-
arrow:
|
|
1865
|
-
selected:
|
|
1864
|
+
arrow: c ? o ? "up" : "down" : void 0,
|
|
1865
|
+
selected: c,
|
|
1866
1866
|
desc: o,
|
|
1867
1867
|
onClickColumnHead: () => {
|
|
1868
|
-
const
|
|
1869
|
-
t(n.sortBy(e,
|
|
1868
|
+
const i = c ? !o : !1;
|
|
1869
|
+
t(n.sortBy(e, i)), r == null || r(e, i);
|
|
1870
1870
|
}
|
|
1871
1871
|
};
|
|
1872
1872
|
}, [e, s, o, t, n, r]);
|
|
1873
|
-
},
|
|
1874
|
-
standardTableHeadTh:
|
|
1875
|
-
},
|
|
1873
|
+
}, Co = "_standardTableHeadTh_swsxb_8", xo = {
|
|
1874
|
+
standardTableHeadTh: Co
|
|
1875
|
+
}, ko = M.memo(
|
|
1876
1876
|
function({
|
|
1877
1877
|
columnId: t,
|
|
1878
1878
|
borderFromGroup: n,
|
|
@@ -1881,19 +1881,19 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1881
1881
|
top: s
|
|
1882
1882
|
}) {
|
|
1883
1883
|
const {
|
|
1884
|
-
justifyContentHeader:
|
|
1885
|
-
columnLabel:
|
|
1884
|
+
justifyContentHeader: c,
|
|
1885
|
+
columnLabel: i,
|
|
1886
1886
|
borderLeft: l,
|
|
1887
1887
|
infoIconTooltipText: d,
|
|
1888
1888
|
background: u,
|
|
1889
1889
|
zIndex: m,
|
|
1890
|
-
sortOrderIconVariant:
|
|
1890
|
+
sortOrderIconVariant: w,
|
|
1891
1891
|
width: f,
|
|
1892
|
-
minWidth:
|
|
1892
|
+
minWidth: g
|
|
1893
1893
|
} = ye(t), {
|
|
1894
1894
|
disableSorting: h,
|
|
1895
|
-
sortOrderIconVariant:
|
|
1896
|
-
} = I(), b = _e(), { arrow: S, selected: O, onClickColumnHead: v } =
|
|
1895
|
+
sortOrderIconVariant: p
|
|
1896
|
+
} = I(), b = _e(), { arrow: S, selected: O, onClickColumnHead: v } = vo(t), G = typeof i == "string" ? i : $r(t), R = Ve(
|
|
1897
1897
|
n,
|
|
1898
1898
|
r,
|
|
1899
1899
|
l
|
|
@@ -1901,10 +1901,10 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1901
1901
|
return /* @__PURE__ */ a(
|
|
1902
1902
|
"th",
|
|
1903
1903
|
{
|
|
1904
|
-
className:
|
|
1904
|
+
className: xo.standardTableHeadTh,
|
|
1905
1905
|
style: {
|
|
1906
1906
|
background: u ?? "white",
|
|
1907
|
-
borderLeft:
|
|
1907
|
+
borderLeft: R,
|
|
1908
1908
|
position: o || k.sticky ? "sticky" : void 0,
|
|
1909
1909
|
left: k.left,
|
|
1910
1910
|
right: k.right,
|
|
@@ -1912,19 +1912,19 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1912
1912
|
boxShadow: k.sticky && k.isFirstColumnInLastGroup && o ? "var(--swui-sticky-header-shadow-and-left)" : k.sticky && k.isFirstColumnInLastGroup ? "var(--swui-sticky-column-shadow-left)" : o && k.sticky ? "var(--swui-sticky-header-shadow-and-right)" : o ? "var(--swui-sticky-header-shadow)" : k.sticky ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
1913
1913
|
zIndex: o && k.sticky ? "var(--swui-sticky-header-in-sticky-column-z-index)" : o ? "var(--swui-sticky-header-z-index)" : k.sticky ? "var(--swui-sticky-group-header-z-index)" : m,
|
|
1914
1914
|
width: f,
|
|
1915
|
-
minWidth:
|
|
1915
|
+
minWidth: g
|
|
1916
1916
|
},
|
|
1917
1917
|
children: /* @__PURE__ */ a(
|
|
1918
1918
|
ze,
|
|
1919
1919
|
{
|
|
1920
1920
|
width: "inherit",
|
|
1921
1921
|
minWidth: "inherit",
|
|
1922
|
-
arrow: !h &&
|
|
1922
|
+
arrow: !h && G ? S : void 0,
|
|
1923
1923
|
onClick: h ? void 0 : v,
|
|
1924
|
-
label:
|
|
1924
|
+
label: G,
|
|
1925
1925
|
infoIconTooltipText: d,
|
|
1926
|
-
alignRight:
|
|
1927
|
-
sortOrderIconVariant:
|
|
1926
|
+
alignRight: c === "flex-end",
|
|
1927
|
+
sortOrderIconVariant: w ?? p,
|
|
1928
1928
|
selected: O,
|
|
1929
1929
|
height: "100%"
|
|
1930
1930
|
}
|
|
@@ -1932,7 +1932,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1932
1932
|
}
|
|
1933
1933
|
);
|
|
1934
1934
|
}
|
|
1935
|
-
),
|
|
1935
|
+
), So = (e, t, n, r) => {
|
|
1936
1936
|
if (e && t !== void 0)
|
|
1937
1937
|
return `calc(${e} + ${n})`;
|
|
1938
1938
|
if (r && t)
|
|
@@ -1941,20 +1941,20 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1941
1941
|
return e;
|
|
1942
1942
|
if (r)
|
|
1943
1943
|
return 0;
|
|
1944
|
-
},
|
|
1944
|
+
}, Po = M.memo(function({ items: t, height: n = He }) {
|
|
1945
1945
|
const r = Z(), {
|
|
1946
1946
|
showHeaderCheckbox: o,
|
|
1947
1947
|
showHeaderExpandCollapse: s,
|
|
1948
|
-
enableExpandCollapse:
|
|
1949
|
-
rowIndent:
|
|
1948
|
+
enableExpandCollapse: c,
|
|
1949
|
+
rowIndent: i,
|
|
1950
1950
|
headerRowOffsetTop: l,
|
|
1951
1951
|
zIndex: d,
|
|
1952
1952
|
stickyHeader: u,
|
|
1953
1953
|
stickyCheckboxColumn: m,
|
|
1954
|
-
showRowCheckbox:
|
|
1955
|
-
} = I(), f =
|
|
1954
|
+
showRowCheckbox: w
|
|
1955
|
+
} = I(), f = lr(), { allItemsAreExpanded: g, toggleExpanded: h } = bo(t), { allItemsAreSelected: p, onClickCheckbox: b, selectionIsEmpty: S } = yo(t), O = !t || t.length === 0, v = {
|
|
1956
1956
|
zIndex: u && m ? "var(--swui-sticky-header-in-sticky-column-z-index)" : m ? "var(--swui-sticky-group-header-z-index)" : u ? "var(--swui-sticky-header-z-index)" : d,
|
|
1957
|
-
top:
|
|
1957
|
+
top: So(
|
|
1958
1958
|
l,
|
|
1959
1959
|
f,
|
|
1960
1960
|
n,
|
|
@@ -1964,9 +1964,9 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1964
1964
|
position: u || m ? "sticky" : void 0,
|
|
1965
1965
|
boxShadow: u && m ? "var(--swui-sticky-header-shadow-and-right)" : m ? "var(--swui-sticky-column-shadow-right)" : u ? "var(--swui-sticky-header-shadow)" : void 0
|
|
1966
1966
|
};
|
|
1967
|
-
return /* @__PURE__ */ C(
|
|
1968
|
-
|
|
1969
|
-
|
|
1967
|
+
return /* @__PURE__ */ C(_t, { height: n, borderLeft: Fe, children: [
|
|
1968
|
+
i && /* @__PURE__ */ a("th", { style: v, children: /* @__PURE__ */ a(T, { indent: i }) }),
|
|
1969
|
+
c && /* @__PURE__ */ a(
|
|
1970
1970
|
"th",
|
|
1971
1971
|
{
|
|
1972
1972
|
style: {
|
|
@@ -1985,7 +1985,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1985
1985
|
Ne,
|
|
1986
1986
|
{
|
|
1987
1987
|
size: "small",
|
|
1988
|
-
leftIcon:
|
|
1988
|
+
leftIcon: g ? wt : gt,
|
|
1989
1989
|
onClick: h
|
|
1990
1990
|
}
|
|
1991
1991
|
)
|
|
@@ -1993,13 +1993,13 @@ const bt = M.createContext({}), Zs = ({
|
|
|
1993
1993
|
)
|
|
1994
1994
|
}
|
|
1995
1995
|
),
|
|
1996
|
-
(
|
|
1996
|
+
(w || o) && /* @__PURE__ */ a(
|
|
1997
1997
|
"th",
|
|
1998
1998
|
{
|
|
1999
1999
|
style: {
|
|
2000
2000
|
...v,
|
|
2001
2001
|
overflow: "hidden",
|
|
2002
|
-
left: m &&
|
|
2002
|
+
left: m && c ? "var(--swui-expand-cell-width)" : m ? "0px" : void 0
|
|
2003
2003
|
},
|
|
2004
2004
|
children: /* @__PURE__ */ a(
|
|
2005
2005
|
T,
|
|
@@ -2009,12 +2009,12 @@ const bt = M.createContext({}), Zs = ({
|
|
|
2009
2009
|
alignItems: "center",
|
|
2010
2010
|
justifyContent: "center",
|
|
2011
2011
|
children: o && /* @__PURE__ */ a(
|
|
2012
|
-
|
|
2012
|
+
Ae,
|
|
2013
2013
|
{
|
|
2014
2014
|
size: "small",
|
|
2015
2015
|
disabled: O,
|
|
2016
|
-
value:
|
|
2017
|
-
indeterminate: !S && !
|
|
2016
|
+
value: p,
|
|
2017
|
+
indeterminate: !S && !p,
|
|
2018
2018
|
onValueChange: b
|
|
2019
2019
|
}
|
|
2020
2020
|
)
|
|
@@ -2022,115 +2022,115 @@ const bt = M.createContext({}), Zs = ({
|
|
|
2022
2022
|
)
|
|
2023
2023
|
}
|
|
2024
2024
|
),
|
|
2025
|
-
r.map(({ groupConfig:
|
|
2026
|
-
|
|
2025
|
+
r.map(({ groupConfig: G, groupId: R }, k) => /* @__PURE__ */ a(M.Fragment, { children: G.columnOrder.map((W, A) => /* @__PURE__ */ a(
|
|
2026
|
+
ko,
|
|
2027
2027
|
{
|
|
2028
2028
|
columnId: W,
|
|
2029
2029
|
borderFromGroup: Ie(
|
|
2030
2030
|
k,
|
|
2031
|
-
|
|
2032
|
-
|
|
2031
|
+
A,
|
|
2032
|
+
G.borderLeft
|
|
2033
2033
|
),
|
|
2034
|
-
disableBorderLeft: k === 0 &&
|
|
2034
|
+
disableBorderLeft: k === 0 && A === 0,
|
|
2035
2035
|
stickyHeader: u,
|
|
2036
2036
|
top: v.top
|
|
2037
2037
|
},
|
|
2038
2038
|
W
|
|
2039
|
-
)) },
|
|
2040
|
-
|
|
2039
|
+
)) }, R)),
|
|
2040
|
+
i && /* @__PURE__ */ a("th", { style: v, children: /* @__PURE__ */ a(T, { indent: i }) }),
|
|
2041
2041
|
/* @__PURE__ */ a("th", { style: v })
|
|
2042
2042
|
] });
|
|
2043
|
-
}),
|
|
2043
|
+
}), ia = function({
|
|
2044
2044
|
tableContext: t,
|
|
2045
2045
|
config: n,
|
|
2046
2046
|
columnGroupOrder: r,
|
|
2047
2047
|
tableId: o,
|
|
2048
2048
|
variant: s = "standard",
|
|
2049
|
-
onKeyDown:
|
|
2050
|
-
onSortOrderChange:
|
|
2049
|
+
onKeyDown: c,
|
|
2050
|
+
onSortOrderChange: i,
|
|
2051
2051
|
renderExtraHeadRows: l,
|
|
2052
2052
|
...d
|
|
2053
2053
|
}) {
|
|
2054
|
-
const u =
|
|
2054
|
+
const u = tn(), {
|
|
2055
2055
|
initialSortOrderDesc: m,
|
|
2056
|
-
initialSortOrder:
|
|
2056
|
+
initialSortOrder: w,
|
|
2057
2057
|
enableExpandCollapse: f,
|
|
2058
|
-
stickyCheckboxColumn:
|
|
2059
|
-
} = n, { tableContext: h } =
|
|
2058
|
+
stickyCheckboxColumn: g
|
|
2059
|
+
} = n, { tableContext: h } = Er(
|
|
2060
2060
|
o ?? u,
|
|
2061
|
-
|
|
2062
|
-
),
|
|
2061
|
+
Gt(w, m)
|
|
2062
|
+
), p = t || h, { state: b, actions: S, dispatch: O } = p, v = y(
|
|
2063
2063
|
() => ({
|
|
2064
2064
|
actions: S,
|
|
2065
2065
|
dispatch: O
|
|
2066
2066
|
}),
|
|
2067
2067
|
[S, O]
|
|
2068
|
-
),
|
|
2069
|
-
() =>
|
|
2070
|
-
|
|
2068
|
+
), G = !!(r ?? "columnGroupOrder" in n), R = "columnGroups" in n ? n.columnGroups : void 0, k = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, W = "columnOrder" in n ? n.columnOrder : void 0, A = y(
|
|
2069
|
+
() => Ht(
|
|
2070
|
+
R,
|
|
2071
2071
|
k,
|
|
2072
2072
|
W
|
|
2073
2073
|
),
|
|
2074
|
-
[
|
|
2074
|
+
[R, k, W]
|
|
2075
2075
|
), V = y(
|
|
2076
|
-
() =>
|
|
2076
|
+
() => yr(n),
|
|
2077
2077
|
[n]
|
|
2078
|
-
), ee = y(() =>
|
|
2079
|
-
() =>
|
|
2078
|
+
), ee = y(() => Mr(n), [n]), q = y(
|
|
2079
|
+
() => Or(n),
|
|
2080
2080
|
[n]
|
|
2081
|
-
),
|
|
2081
|
+
), L = y(() => {
|
|
2082
2082
|
try {
|
|
2083
|
-
|
|
2083
|
+
vr(n);
|
|
2084
2084
|
return;
|
|
2085
2085
|
} catch ($) {
|
|
2086
2086
|
return $ instanceof Error ? $ : new Error("Unknown error");
|
|
2087
2087
|
}
|
|
2088
2088
|
}, [n]);
|
|
2089
|
-
return
|
|
2089
|
+
return L ? /* @__PURE__ */ a(Sn, { text: L.message }) : /* @__PURE__ */ a(
|
|
2090
2090
|
"table",
|
|
2091
2091
|
{
|
|
2092
|
-
className:
|
|
2092
|
+
className: bt(rt.standardTable, rt[s]),
|
|
2093
2093
|
style: {
|
|
2094
2094
|
width: "100%",
|
|
2095
2095
|
isolation: "isolate",
|
|
2096
|
-
"--current-left-offset": f &&
|
|
2096
|
+
"--current-left-offset": f && g ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : g ? "var(--swui-checkbox-cell-width)" : f ? "var(--swui-expand-cell-width)" : "0px"
|
|
2097
2097
|
},
|
|
2098
|
-
children: /* @__PURE__ */ a(
|
|
2099
|
-
|
|
2098
|
+
children: /* @__PURE__ */ a(Lt.Provider, { value: q, children: /* @__PURE__ */ a(Ft.Provider, { value: ee, children: /* @__PURE__ */ a(ur.Provider, { value: s, children: /* @__PURE__ */ a(
|
|
2099
|
+
Tt.Provider,
|
|
2100
2100
|
{
|
|
2101
2101
|
value: o ?? u,
|
|
2102
|
-
children: /* @__PURE__ */ a(
|
|
2102
|
+
children: /* @__PURE__ */ a(Dt.Provider, { value: b, children: /* @__PURE__ */ a(Et.Provider, { value: v, children: /* @__PURE__ */ a(Mt.Provider, { value: n, children: /* @__PURE__ */ a(
|
|
2103
2103
|
Rt.Provider,
|
|
2104
2104
|
{
|
|
2105
|
-
value:
|
|
2105
|
+
value: A,
|
|
2106
2106
|
children: /* @__PURE__ */ a(
|
|
2107
|
-
|
|
2107
|
+
Yt.Provider,
|
|
2108
2108
|
{
|
|
2109
2109
|
value: V,
|
|
2110
2110
|
children: /* @__PURE__ */ a(
|
|
2111
2111
|
ir.Provider,
|
|
2112
2112
|
{
|
|
2113
|
-
value:
|
|
2113
|
+
value: G,
|
|
2114
2114
|
children: /* @__PURE__ */ C(
|
|
2115
|
-
|
|
2115
|
+
At.Provider,
|
|
2116
2116
|
{
|
|
2117
2117
|
value: "columnGroupOrder" in n ? r ?? n.columnGroupOrder : r,
|
|
2118
2118
|
children: [
|
|
2119
2119
|
/* @__PURE__ */ a(Rr, {}),
|
|
2120
|
-
/* @__PURE__ */ a(
|
|
2121
|
-
|
|
2120
|
+
/* @__PURE__ */ a(Nt.Provider, { value: c, children: /* @__PURE__ */ C(
|
|
2121
|
+
Bt.Provider,
|
|
2122
2122
|
{
|
|
2123
|
-
value:
|
|
2123
|
+
value: i,
|
|
2124
2124
|
children: [
|
|
2125
2125
|
/* @__PURE__ */ C("thead", { children: [
|
|
2126
2126
|
(r || "columnGroupOrder" in n) && /* @__PURE__ */ a(
|
|
2127
|
-
|
|
2127
|
+
pr,
|
|
2128
2128
|
{
|
|
2129
2129
|
height: "var(--current-row-height)"
|
|
2130
2130
|
}
|
|
2131
2131
|
),
|
|
2132
2132
|
/* @__PURE__ */ a(
|
|
2133
|
-
|
|
2133
|
+
Po,
|
|
2134
2134
|
{
|
|
2135
2135
|
items: d.items,
|
|
2136
2136
|
height: "var(--current-row-height)"
|
|
@@ -2139,7 +2139,7 @@ const bt = M.createContext({}), Zs = ({
|
|
|
2139
2139
|
l == null ? void 0 : l()
|
|
2140
2140
|
] }),
|
|
2141
2141
|
/* @__PURE__ */ a(
|
|
2142
|
-
|
|
2142
|
+
po,
|
|
2143
2143
|
{
|
|
2144
2144
|
variant: s,
|
|
2145
2145
|
...d
|
|
@@ -2164,47 +2164,47 @@ const bt = M.createContext({}), Zs = ({
|
|
|
2164
2164
|
}, ae = (e, t) => ({
|
|
2165
2165
|
...t,
|
|
2166
2166
|
itemValueResolver: e
|
|
2167
|
-
}),
|
|
2167
|
+
}), Oo = (e) => ({
|
|
2168
2168
|
label: t,
|
|
2169
2169
|
gridCell: {
|
|
2170
2170
|
editorValue: n,
|
|
2171
2171
|
isEditing: r,
|
|
2172
2172
|
setEditorValue: o,
|
|
2173
2173
|
stopEditingAndRevert: s,
|
|
2174
|
-
lastKeyEvent:
|
|
2175
|
-
stopEditing:
|
|
2174
|
+
lastKeyEvent: c,
|
|
2175
|
+
stopEditing: i,
|
|
2176
2176
|
stopEditingAndMove: l
|
|
2177
2177
|
}
|
|
2178
2178
|
}) => r ? /* @__PURE__ */ a(
|
|
2179
|
-
|
|
2179
|
+
Be,
|
|
2180
2180
|
{
|
|
2181
2181
|
onValueChange: o,
|
|
2182
2182
|
value: n,
|
|
2183
|
-
onDone:
|
|
2183
|
+
onDone: i,
|
|
2184
2184
|
onEsc: s,
|
|
2185
2185
|
autoFocus: !0,
|
|
2186
|
-
selectAllOnMount: !
|
|
2186
|
+
selectAllOnMount: !c,
|
|
2187
2187
|
onMove: l
|
|
2188
2188
|
}
|
|
2189
|
-
) : /* @__PURE__ */ a(
|
|
2189
|
+
) : /* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(J, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), la = (e, t, n) => ({
|
|
2190
2190
|
label: r,
|
|
2191
2191
|
item: o,
|
|
2192
2192
|
gridCell: {
|
|
2193
2193
|
editorValue: s,
|
|
2194
|
-
isEditing:
|
|
2195
|
-
setEditorValue:
|
|
2194
|
+
isEditing: c,
|
|
2195
|
+
setEditorValue: i,
|
|
2196
2196
|
stopEditingAndRevert: l,
|
|
2197
2197
|
lastKeyEvent: d,
|
|
2198
2198
|
stopEditing: u,
|
|
2199
2199
|
stopEditingAndMove: m
|
|
2200
2200
|
},
|
|
2201
|
-
isEditable:
|
|
2201
|
+
isEditable: w
|
|
2202
2202
|
}) => {
|
|
2203
|
-
const f = typeof e == "function" ? e(o) : e,
|
|
2204
|
-
return
|
|
2205
|
-
|
|
2203
|
+
const f = typeof e == "function" ? e(o) : e, g = t ? t(o) : void 0, h = n ? n(o) : void 0;
|
|
2204
|
+
return w && c ? /* @__PURE__ */ a(
|
|
2205
|
+
Be,
|
|
2206
2206
|
{
|
|
2207
|
-
onValueChange:
|
|
2207
|
+
onValueChange: i,
|
|
2208
2208
|
value: s,
|
|
2209
2209
|
onDone: u,
|
|
2210
2210
|
onEsc: l,
|
|
@@ -2212,52 +2212,46 @@ const bt = M.createContext({}), Zs = ({
|
|
|
2212
2212
|
selectAllOnMount: !d,
|
|
2213
2213
|
onMove: m
|
|
2214
2214
|
}
|
|
2215
|
-
) : /* @__PURE__ */ a(
|
|
2216
|
-
|
|
2215
|
+
) : /* @__PURE__ */ a(B, { row: !0, alignItems: "center", children: /* @__PURE__ */ a(
|
|
2216
|
+
Dn,
|
|
2217
2217
|
{
|
|
2218
2218
|
value: r,
|
|
2219
2219
|
modifiedField: h,
|
|
2220
|
-
crudStatus:
|
|
2221
|
-
isEditable:
|
|
2220
|
+
crudStatus: g,
|
|
2221
|
+
isEditable: w,
|
|
2222
2222
|
warningOnEmpty: f
|
|
2223
2223
|
}
|
|
2224
2224
|
) });
|
|
2225
|
-
};
|
|
2226
|
-
function
|
|
2227
|
-
|
|
2228
|
-
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
2225
|
+
}, Vt = 6048e5, Io = 864e5, st = Symbol.for("constructDateFrom");
|
|
2226
|
+
function K(e, t) {
|
|
2227
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && st in e ? e[st](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2229
2228
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2229
|
+
function z(e, t) {
|
|
2230
|
+
return K(t || e, e);
|
|
2232
2231
|
}
|
|
2233
|
-
function D(e, t) {
|
|
2234
|
-
const
|
|
2235
|
-
return isNaN(t) ?
|
|
2232
|
+
function D(e, t, n) {
|
|
2233
|
+
const r = z(e, n == null ? void 0 : n.in);
|
|
2234
|
+
return isNaN(t) ? K(e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
2236
2235
|
}
|
|
2237
|
-
|
|
2238
|
-
let Io = {};
|
|
2236
|
+
let To = {};
|
|
2239
2237
|
function Te() {
|
|
2240
|
-
return
|
|
2241
|
-
}
|
|
2242
|
-
function pe(e, t) {
|
|
2243
|
-
var c, l, d, u;
|
|
2244
|
-
const n = Te(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = z(e), s = o.getDay(), i = (s < r ? 7 : 0) + s - r;
|
|
2245
|
-
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
2238
|
+
return To;
|
|
2246
2239
|
}
|
|
2247
|
-
function
|
|
2248
|
-
|
|
2240
|
+
function we(e, t) {
|
|
2241
|
+
var i, l, d, u;
|
|
2242
|
+
const n = Te(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.weekStartsOn) ?? 0, o = z(e, t == null ? void 0 : t.in), s = o.getDay(), c = (s < r ? 7 : 0) + s - r;
|
|
2243
|
+
return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
|
|
2249
2244
|
}
|
|
2250
|
-
function
|
|
2251
|
-
|
|
2252
|
-
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
2253
|
-
const o = Se(r), s = J(e, 0);
|
|
2254
|
-
s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
|
|
2255
|
-
const i = Se(s);
|
|
2256
|
-
return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
|
|
2245
|
+
function Se(e, t) {
|
|
2246
|
+
return we(e, { ...t, weekStartsOn: 1 });
|
|
2257
2247
|
}
|
|
2258
|
-
function
|
|
2259
|
-
const
|
|
2260
|
-
|
|
2248
|
+
function $t(e, t) {
|
|
2249
|
+
const n = z(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = K(n, 0);
|
|
2250
|
+
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
2251
|
+
const s = Se(o), c = K(n, 0);
|
|
2252
|
+
c.setFullYear(r, 0, 4), c.setHours(0, 0, 0, 0);
|
|
2253
|
+
const i = Se(c);
|
|
2254
|
+
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
2261
2255
|
}
|
|
2262
2256
|
function at(e) {
|
|
2263
2257
|
const t = z(e), n = new Date(
|
|
@@ -2273,28 +2267,40 @@ function at(e) {
|
|
|
2273
2267
|
);
|
|
2274
2268
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
2275
2269
|
}
|
|
2276
|
-
function
|
|
2277
|
-
const n =
|
|
2278
|
-
|
|
2270
|
+
function Do(e, ...t) {
|
|
2271
|
+
const n = K.bind(
|
|
2272
|
+
null,
|
|
2273
|
+
t.find((r) => typeof r == "object")
|
|
2274
|
+
);
|
|
2275
|
+
return t.map(n);
|
|
2279
2276
|
}
|
|
2280
|
-
function
|
|
2281
|
-
const
|
|
2282
|
-
return n.
|
|
2277
|
+
function ct(e, t) {
|
|
2278
|
+
const n = z(e, t == null ? void 0 : t.in);
|
|
2279
|
+
return n.setHours(0, 0, 0, 0), n;
|
|
2283
2280
|
}
|
|
2284
|
-
function Eo(e) {
|
|
2285
|
-
|
|
2281
|
+
function Eo(e, t, n) {
|
|
2282
|
+
const [r, o] = Do(
|
|
2283
|
+
n == null ? void 0 : n.in,
|
|
2284
|
+
e,
|
|
2285
|
+
t
|
|
2286
|
+
), s = ct(r), c = ct(o), i = +s - at(s), l = +c - at(c);
|
|
2287
|
+
return Math.round((i - l) / Io);
|
|
2286
2288
|
}
|
|
2287
|
-
function Mo(e) {
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2289
|
+
function Mo(e, t) {
|
|
2290
|
+
const n = $t(e, t), r = K(e, 0);
|
|
2291
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Se(r);
|
|
2292
|
+
}
|
|
2293
|
+
function Go(e) {
|
|
2294
|
+
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2292
2295
|
}
|
|
2293
2296
|
function Ro(e) {
|
|
2294
|
-
|
|
2295
|
-
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
2297
|
+
return !(!Go(e) && typeof e != "number" || isNaN(+z(e)));
|
|
2296
2298
|
}
|
|
2297
|
-
|
|
2299
|
+
function Wo(e, t) {
|
|
2300
|
+
const n = z(e, t == null ? void 0 : t.in);
|
|
2301
|
+
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
2302
|
+
}
|
|
2303
|
+
const No = {
|
|
2298
2304
|
lessThanXSeconds: {
|
|
2299
2305
|
one: "less than a second",
|
|
2300
2306
|
other: "less than {{count}} seconds"
|
|
@@ -2356,18 +2362,18 @@ const Go = {
|
|
|
2356
2362
|
one: "almost 1 year",
|
|
2357
2363
|
other: "almost {{count}} years"
|
|
2358
2364
|
}
|
|
2359
|
-
},
|
|
2365
|
+
}, Bo = (e, t, n) => {
|
|
2360
2366
|
let r;
|
|
2361
|
-
const o =
|
|
2367
|
+
const o = No[e];
|
|
2362
2368
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
2363
2369
|
};
|
|
2364
|
-
function
|
|
2370
|
+
function Re(e) {
|
|
2365
2371
|
return (t = {}) => {
|
|
2366
2372
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
2367
2373
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
2368
2374
|
};
|
|
2369
2375
|
}
|
|
2370
|
-
const
|
|
2376
|
+
const Ao = {
|
|
2371
2377
|
full: "EEEE, MMMM do, y",
|
|
2372
2378
|
long: "MMMM do, y",
|
|
2373
2379
|
medium: "MMM d, y",
|
|
@@ -2377,56 +2383,56 @@ const No = {
|
|
|
2377
2383
|
long: "h:mm:ss a z",
|
|
2378
2384
|
medium: "h:mm:ss a",
|
|
2379
2385
|
short: "h:mm a"
|
|
2380
|
-
},
|
|
2386
|
+
}, Fo = {
|
|
2381
2387
|
full: "{{date}} 'at' {{time}}",
|
|
2382
2388
|
long: "{{date}} 'at' {{time}}",
|
|
2383
2389
|
medium: "{{date}}, {{time}}",
|
|
2384
2390
|
short: "{{date}}, {{time}}"
|
|
2385
|
-
},
|
|
2386
|
-
date:
|
|
2387
|
-
formats:
|
|
2391
|
+
}, Ho = {
|
|
2392
|
+
date: Re({
|
|
2393
|
+
formats: Ao,
|
|
2388
2394
|
defaultWidth: "full"
|
|
2389
2395
|
}),
|
|
2390
|
-
time:
|
|
2396
|
+
time: Re({
|
|
2391
2397
|
formats: Lo,
|
|
2392
2398
|
defaultWidth: "full"
|
|
2393
2399
|
}),
|
|
2394
|
-
dateTime:
|
|
2395
|
-
formats:
|
|
2400
|
+
dateTime: Re({
|
|
2401
|
+
formats: Fo,
|
|
2396
2402
|
defaultWidth: "full"
|
|
2397
2403
|
})
|
|
2398
|
-
},
|
|
2404
|
+
}, Yo = {
|
|
2399
2405
|
lastWeek: "'last' eeee 'at' p",
|
|
2400
2406
|
yesterday: "'yesterday at' p",
|
|
2401
2407
|
today: "'today at' p",
|
|
2402
2408
|
tomorrow: "'tomorrow at' p",
|
|
2403
2409
|
nextWeek: "eeee 'at' p",
|
|
2404
2410
|
other: "P"
|
|
2405
|
-
},
|
|
2411
|
+
}, zo = (e, t, n, r) => Yo[e];
|
|
2406
2412
|
function he(e) {
|
|
2407
2413
|
return (t, n) => {
|
|
2408
2414
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
2409
2415
|
let o;
|
|
2410
2416
|
if (r === "formatting" && e.formattingValues) {
|
|
2411
|
-
const
|
|
2412
|
-
o = e.formattingValues[
|
|
2417
|
+
const c = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : c;
|
|
2418
|
+
o = e.formattingValues[i] || e.formattingValues[c];
|
|
2413
2419
|
} else {
|
|
2414
|
-
const
|
|
2415
|
-
o = e.values[
|
|
2420
|
+
const c = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
2421
|
+
o = e.values[i] || e.values[c];
|
|
2416
2422
|
}
|
|
2417
2423
|
const s = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
2418
2424
|
return o[s];
|
|
2419
2425
|
};
|
|
2420
2426
|
}
|
|
2421
|
-
const
|
|
2427
|
+
const qo = {
|
|
2422
2428
|
narrow: ["B", "A"],
|
|
2423
2429
|
abbreviated: ["BC", "AD"],
|
|
2424
2430
|
wide: ["Before Christ", "Anno Domini"]
|
|
2425
|
-
},
|
|
2431
|
+
}, _o = {
|
|
2426
2432
|
narrow: ["1", "2", "3", "4"],
|
|
2427
2433
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
2428
2434
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
2429
|
-
},
|
|
2435
|
+
}, jo = {
|
|
2430
2436
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
2431
2437
|
abbreviated: [
|
|
2432
2438
|
"Jan",
|
|
@@ -2456,7 +2462,7 @@ const Yo = {
|
|
|
2456
2462
|
"November",
|
|
2457
2463
|
"December"
|
|
2458
2464
|
]
|
|
2459
|
-
},
|
|
2465
|
+
}, Vo = {
|
|
2460
2466
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
2461
2467
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
2462
2468
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -2469,7 +2475,7 @@ const Yo = {
|
|
|
2469
2475
|
"Friday",
|
|
2470
2476
|
"Saturday"
|
|
2471
2477
|
]
|
|
2472
|
-
},
|
|
2478
|
+
}, $o = {
|
|
2473
2479
|
narrow: {
|
|
2474
2480
|
am: "a",
|
|
2475
2481
|
pm: "p",
|
|
@@ -2500,7 +2506,7 @@ const Yo = {
|
|
|
2500
2506
|
evening: "evening",
|
|
2501
2507
|
night: "night"
|
|
2502
2508
|
}
|
|
2503
|
-
},
|
|
2509
|
+
}, Ko = {
|
|
2504
2510
|
narrow: {
|
|
2505
2511
|
am: "a",
|
|
2506
2512
|
pm: "p",
|
|
@@ -2531,7 +2537,7 @@ const Yo = {
|
|
|
2531
2537
|
evening: "in the evening",
|
|
2532
2538
|
night: "at night"
|
|
2533
2539
|
}
|
|
2534
|
-
},
|
|
2540
|
+
}, Qo = (e, t) => {
|
|
2535
2541
|
const n = Number(e), r = n % 100;
|
|
2536
2542
|
if (r > 20 || r < 10)
|
|
2537
2543
|
switch (r % 10) {
|
|
@@ -2543,29 +2549,29 @@ const Yo = {
|
|
|
2543
2549
|
return n + "rd";
|
|
2544
2550
|
}
|
|
2545
2551
|
return n + "th";
|
|
2546
|
-
},
|
|
2547
|
-
ordinalNumber:
|
|
2552
|
+
}, Xo = {
|
|
2553
|
+
ordinalNumber: Qo,
|
|
2548
2554
|
era: he({
|
|
2549
|
-
values:
|
|
2555
|
+
values: qo,
|
|
2550
2556
|
defaultWidth: "wide"
|
|
2551
2557
|
}),
|
|
2552
2558
|
quarter: he({
|
|
2553
|
-
values:
|
|
2559
|
+
values: _o,
|
|
2554
2560
|
defaultWidth: "wide",
|
|
2555
2561
|
argumentCallback: (e) => e - 1
|
|
2556
2562
|
}),
|
|
2557
2563
|
month: he({
|
|
2558
|
-
values:
|
|
2564
|
+
values: jo,
|
|
2559
2565
|
defaultWidth: "wide"
|
|
2560
2566
|
}),
|
|
2561
2567
|
day: he({
|
|
2562
|
-
values:
|
|
2568
|
+
values: Vo,
|
|
2563
2569
|
defaultWidth: "wide"
|
|
2564
2570
|
}),
|
|
2565
2571
|
dayPeriod: he({
|
|
2566
|
-
values:
|
|
2572
|
+
values: $o,
|
|
2567
2573
|
defaultWidth: "wide",
|
|
2568
|
-
formattingValues:
|
|
2574
|
+
formattingValues: Ko,
|
|
2569
2575
|
defaultFormattingWidth: "wide"
|
|
2570
2576
|
})
|
|
2571
2577
|
};
|
|
@@ -2574,58 +2580,58 @@ function me(e) {
|
|
|
2574
2580
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
|
|
2575
2581
|
if (!s)
|
|
2576
2582
|
return null;
|
|
2577
|
-
const
|
|
2578
|
-
//
|
|
2579
|
-
|
|
2583
|
+
const c = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(i) ? Jo(i, (m) => m.test(c)) : (
|
|
2584
|
+
// [TODO] -- I challenge you to fix the type
|
|
2585
|
+
Uo(i, (m) => m.test(c))
|
|
2580
2586
|
);
|
|
2581
2587
|
let d;
|
|
2582
2588
|
d = e.valueCallback ? e.valueCallback(l) : l, d = n.valueCallback ? (
|
|
2583
|
-
//
|
|
2589
|
+
// [TODO] -- I challenge you to fix the type
|
|
2584
2590
|
n.valueCallback(d)
|
|
2585
2591
|
) : d;
|
|
2586
|
-
const u = t.slice(
|
|
2592
|
+
const u = t.slice(c.length);
|
|
2587
2593
|
return { value: d, rest: u };
|
|
2588
2594
|
};
|
|
2589
2595
|
}
|
|
2590
|
-
function
|
|
2596
|
+
function Uo(e, t) {
|
|
2591
2597
|
for (const n in e)
|
|
2592
2598
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
2593
2599
|
return n;
|
|
2594
2600
|
}
|
|
2595
|
-
function
|
|
2601
|
+
function Jo(e, t) {
|
|
2596
2602
|
for (let n = 0; n < e.length; n++)
|
|
2597
2603
|
if (t(e[n]))
|
|
2598
2604
|
return n;
|
|
2599
2605
|
}
|
|
2600
|
-
function
|
|
2606
|
+
function Zo(e) {
|
|
2601
2607
|
return (t, n = {}) => {
|
|
2602
2608
|
const r = t.match(e.matchPattern);
|
|
2603
2609
|
if (!r) return null;
|
|
2604
2610
|
const o = r[0], s = t.match(e.parsePattern);
|
|
2605
2611
|
if (!s) return null;
|
|
2606
|
-
let
|
|
2607
|
-
|
|
2608
|
-
const
|
|
2609
|
-
return { value:
|
|
2612
|
+
let c = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
2613
|
+
c = n.valueCallback ? n.valueCallback(c) : c;
|
|
2614
|
+
const i = t.slice(o.length);
|
|
2615
|
+
return { value: c, rest: i };
|
|
2610
2616
|
};
|
|
2611
2617
|
}
|
|
2612
|
-
const
|
|
2618
|
+
const es = /^(\d+)(th|st|nd|rd)?/i, ts = /\d+/i, ns = {
|
|
2613
2619
|
narrow: /^(b|a)/i,
|
|
2614
2620
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
2615
2621
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
2616
|
-
},
|
|
2622
|
+
}, rs = {
|
|
2617
2623
|
any: [/^b/i, /^(a|c)/i]
|
|
2618
|
-
},
|
|
2624
|
+
}, os = {
|
|
2619
2625
|
narrow: /^[1234]/i,
|
|
2620
2626
|
abbreviated: /^q[1234]/i,
|
|
2621
2627
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
2622
|
-
},
|
|
2628
|
+
}, ss = {
|
|
2623
2629
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
2624
|
-
},
|
|
2630
|
+
}, as = {
|
|
2625
2631
|
narrow: /^[jfmasond]/i,
|
|
2626
2632
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
2627
2633
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
2628
|
-
},
|
|
2634
|
+
}, cs = {
|
|
2629
2635
|
narrow: [
|
|
2630
2636
|
/^j/i,
|
|
2631
2637
|
/^f/i,
|
|
@@ -2654,18 +2660,18 @@ const Jo = /^(\d+)(th|st|nd|rd)?/i, Zo = /\d+/i, es = {
|
|
|
2654
2660
|
/^n/i,
|
|
2655
2661
|
/^d/i
|
|
2656
2662
|
]
|
|
2657
|
-
},
|
|
2663
|
+
}, is = {
|
|
2658
2664
|
narrow: /^[smtwf]/i,
|
|
2659
2665
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
2660
2666
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
2661
2667
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
2662
|
-
},
|
|
2668
|
+
}, ls = {
|
|
2663
2669
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
2664
2670
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
2665
|
-
},
|
|
2671
|
+
}, us = {
|
|
2666
2672
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
2667
2673
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
2668
|
-
},
|
|
2674
|
+
}, ds = {
|
|
2669
2675
|
any: {
|
|
2670
2676
|
am: /^a/i,
|
|
2671
2677
|
pm: /^p/i,
|
|
@@ -2676,86 +2682,86 @@ const Jo = /^(\d+)(th|st|nd|rd)?/i, Zo = /\d+/i, es = {
|
|
|
2676
2682
|
evening: /evening/i,
|
|
2677
2683
|
night: /night/i
|
|
2678
2684
|
}
|
|
2679
|
-
},
|
|
2680
|
-
ordinalNumber:
|
|
2681
|
-
matchPattern:
|
|
2682
|
-
parsePattern:
|
|
2685
|
+
}, hs = {
|
|
2686
|
+
ordinalNumber: Zo({
|
|
2687
|
+
matchPattern: es,
|
|
2688
|
+
parsePattern: ts,
|
|
2683
2689
|
valueCallback: (e) => parseInt(e, 10)
|
|
2684
2690
|
}),
|
|
2685
2691
|
era: me({
|
|
2686
|
-
matchPatterns:
|
|
2692
|
+
matchPatterns: ns,
|
|
2687
2693
|
defaultMatchWidth: "wide",
|
|
2688
|
-
parsePatterns:
|
|
2694
|
+
parsePatterns: rs,
|
|
2689
2695
|
defaultParseWidth: "any"
|
|
2690
2696
|
}),
|
|
2691
2697
|
quarter: me({
|
|
2692
|
-
matchPatterns:
|
|
2698
|
+
matchPatterns: os,
|
|
2693
2699
|
defaultMatchWidth: "wide",
|
|
2694
|
-
parsePatterns:
|
|
2700
|
+
parsePatterns: ss,
|
|
2695
2701
|
defaultParseWidth: "any",
|
|
2696
2702
|
valueCallback: (e) => e + 1
|
|
2697
2703
|
}),
|
|
2698
2704
|
month: me({
|
|
2699
|
-
matchPatterns:
|
|
2705
|
+
matchPatterns: as,
|
|
2700
2706
|
defaultMatchWidth: "wide",
|
|
2701
|
-
parsePatterns:
|
|
2707
|
+
parsePatterns: cs,
|
|
2702
2708
|
defaultParseWidth: "any"
|
|
2703
2709
|
}),
|
|
2704
2710
|
day: me({
|
|
2705
|
-
matchPatterns:
|
|
2711
|
+
matchPatterns: is,
|
|
2706
2712
|
defaultMatchWidth: "wide",
|
|
2707
|
-
parsePatterns:
|
|
2713
|
+
parsePatterns: ls,
|
|
2708
2714
|
defaultParseWidth: "any"
|
|
2709
2715
|
}),
|
|
2710
2716
|
dayPeriod: me({
|
|
2711
|
-
matchPatterns:
|
|
2717
|
+
matchPatterns: us,
|
|
2712
2718
|
defaultMatchWidth: "any",
|
|
2713
|
-
parsePatterns:
|
|
2719
|
+
parsePatterns: ds,
|
|
2714
2720
|
defaultParseWidth: "any"
|
|
2715
2721
|
})
|
|
2716
|
-
},
|
|
2722
|
+
}, ms = {
|
|
2717
2723
|
code: "en-US",
|
|
2718
|
-
formatDistance:
|
|
2719
|
-
formatLong:
|
|
2720
|
-
formatRelative:
|
|
2721
|
-
localize:
|
|
2722
|
-
match:
|
|
2724
|
+
formatDistance: Bo,
|
|
2725
|
+
formatLong: Ho,
|
|
2726
|
+
formatRelative: zo,
|
|
2727
|
+
localize: Xo,
|
|
2728
|
+
match: hs,
|
|
2723
2729
|
options: {
|
|
2724
2730
|
weekStartsOn: 0,
|
|
2725
2731
|
firstWeekContainsDate: 1
|
|
2726
2732
|
}
|
|
2727
2733
|
};
|
|
2728
|
-
function
|
|
2729
|
-
const
|
|
2730
|
-
return
|
|
2734
|
+
function fs(e, t) {
|
|
2735
|
+
const n = z(e, t == null ? void 0 : t.in);
|
|
2736
|
+
return Eo(n, Wo(n)) + 1;
|
|
2731
2737
|
}
|
|
2732
|
-
function
|
|
2733
|
-
const
|
|
2734
|
-
return Math.round(
|
|
2738
|
+
function ws(e, t) {
|
|
2739
|
+
const n = z(e, t == null ? void 0 : t.in), r = +Se(n) - +Mo(n);
|
|
2740
|
+
return Math.round(r / Vt) + 1;
|
|
2735
2741
|
}
|
|
2736
|
-
function
|
|
2737
|
-
var u, m,
|
|
2738
|
-
const n = z(e), r = n.getFullYear(), o = Te(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((f = (
|
|
2739
|
-
|
|
2740
|
-
const
|
|
2742
|
+
function Kt(e, t) {
|
|
2743
|
+
var u, m, w, f;
|
|
2744
|
+
const n = z(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Te(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((f = (w = o.locale) == null ? void 0 : w.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, c = K((t == null ? void 0 : t.in) || e, 0);
|
|
2745
|
+
c.setFullYear(r + 1, 0, s), c.setHours(0, 0, 0, 0);
|
|
2746
|
+
const i = we(c, t), l = K((t == null ? void 0 : t.in) || e, 0);
|
|
2741
2747
|
l.setFullYear(r, 0, s), l.setHours(0, 0, 0, 0);
|
|
2742
|
-
const d =
|
|
2743
|
-
return n
|
|
2748
|
+
const d = we(l, t);
|
|
2749
|
+
return +n >= +i ? r + 1 : +n >= +d ? r : r - 1;
|
|
2744
2750
|
}
|
|
2745
|
-
function
|
|
2746
|
-
var
|
|
2747
|
-
const n = Te(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (
|
|
2748
|
-
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0),
|
|
2751
|
+
function gs(e, t) {
|
|
2752
|
+
var i, l, d, u;
|
|
2753
|
+
const n = Te(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, o = Kt(e, t), s = K((t == null ? void 0 : t.in) || e, 0);
|
|
2754
|
+
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), we(s, t);
|
|
2749
2755
|
}
|
|
2750
2756
|
function ps(e, t) {
|
|
2751
|
-
const n = z(e), r = +
|
|
2752
|
-
return Math.round(r /
|
|
2757
|
+
const n = z(e, t == null ? void 0 : t.in), r = +we(n, t) - +gs(n, t);
|
|
2758
|
+
return Math.round(r / Vt) + 1;
|
|
2753
2759
|
}
|
|
2754
2760
|
function x(e, t) {
|
|
2755
2761
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
2756
2762
|
return n + r;
|
|
2757
2763
|
}
|
|
2758
|
-
const
|
|
2764
|
+
const X = {
|
|
2759
2765
|
// Year
|
|
2760
2766
|
y(e, t) {
|
|
2761
2767
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
@@ -2809,7 +2815,7 @@ const Q = {
|
|
|
2809
2815
|
);
|
|
2810
2816
|
return x(o, t.length);
|
|
2811
2817
|
}
|
|
2812
|
-
},
|
|
2818
|
+
}, ce = {
|
|
2813
2819
|
am: "am",
|
|
2814
2820
|
pm: "pm",
|
|
2815
2821
|
midnight: "midnight",
|
|
@@ -2840,20 +2846,20 @@ const Q = {
|
|
|
2840
2846
|
const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
2841
2847
|
return n.ordinalNumber(o, { unit: "year" });
|
|
2842
2848
|
}
|
|
2843
|
-
return
|
|
2849
|
+
return X.y(e, t);
|
|
2844
2850
|
},
|
|
2845
2851
|
// Local week-numbering year
|
|
2846
2852
|
Y: function(e, t, n, r) {
|
|
2847
|
-
const o =
|
|
2853
|
+
const o = Kt(e, r), s = o > 0 ? o : 1 - o;
|
|
2848
2854
|
if (t === "YY") {
|
|
2849
|
-
const
|
|
2850
|
-
return x(
|
|
2855
|
+
const c = s % 100;
|
|
2856
|
+
return x(c, 2);
|
|
2851
2857
|
}
|
|
2852
2858
|
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : x(s, t.length);
|
|
2853
2859
|
},
|
|
2854
2860
|
// ISO week-numbering year
|
|
2855
2861
|
R: function(e, t) {
|
|
2856
|
-
const n =
|
|
2862
|
+
const n = $t(e);
|
|
2857
2863
|
return x(n, t.length);
|
|
2858
2864
|
},
|
|
2859
2865
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -2931,7 +2937,7 @@ const Q = {
|
|
|
2931
2937
|
switch (t) {
|
|
2932
2938
|
case "M":
|
|
2933
2939
|
case "MM":
|
|
2934
|
-
return
|
|
2940
|
+
return X.M(e, t);
|
|
2935
2941
|
case "Mo":
|
|
2936
2942
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
2937
2943
|
case "MMM":
|
|
@@ -2981,16 +2987,16 @@ const Q = {
|
|
|
2981
2987
|
},
|
|
2982
2988
|
// ISO week of year
|
|
2983
2989
|
I: function(e, t, n) {
|
|
2984
|
-
const r =
|
|
2990
|
+
const r = ws(e);
|
|
2985
2991
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : x(r, t.length);
|
|
2986
2992
|
},
|
|
2987
2993
|
// Day of the month
|
|
2988
2994
|
d: function(e, t, n) {
|
|
2989
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
2995
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : X.d(e, t);
|
|
2990
2996
|
},
|
|
2991
2997
|
// Day of year
|
|
2992
2998
|
D: function(e, t, n) {
|
|
2993
|
-
const r =
|
|
2999
|
+
const r = fs(e);
|
|
2994
3000
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : x(r, t.length);
|
|
2995
3001
|
},
|
|
2996
3002
|
// Day of week
|
|
@@ -3153,7 +3159,7 @@ const Q = {
|
|
|
3153
3159
|
b: function(e, t, n) {
|
|
3154
3160
|
const r = e.getHours();
|
|
3155
3161
|
let o;
|
|
3156
|
-
switch (r === 12 ? o =
|
|
3162
|
+
switch (r === 12 ? o = ce.noon : r === 0 ? o = ce.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
|
|
3157
3163
|
case "b":
|
|
3158
3164
|
case "bb":
|
|
3159
3165
|
return n.dayPeriod(o, {
|
|
@@ -3182,7 +3188,7 @@ const Q = {
|
|
|
3182
3188
|
B: function(e, t, n) {
|
|
3183
3189
|
const r = e.getHours();
|
|
3184
3190
|
let o;
|
|
3185
|
-
switch (r >= 17 ? o =
|
|
3191
|
+
switch (r >= 17 ? o = ce.evening : r >= 12 ? o = ce.afternoon : r >= 4 ? o = ce.morning : o = ce.night, t) {
|
|
3186
3192
|
case "B":
|
|
3187
3193
|
case "BB":
|
|
3188
3194
|
case "BBB":
|
|
@@ -3209,11 +3215,11 @@ const Q = {
|
|
|
3209
3215
|
let r = e.getHours() % 12;
|
|
3210
3216
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
3211
3217
|
}
|
|
3212
|
-
return
|
|
3218
|
+
return X.h(e, t);
|
|
3213
3219
|
},
|
|
3214
3220
|
// Hour [0-23]
|
|
3215
3221
|
H: function(e, t, n) {
|
|
3216
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
3222
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : X.H(e, t);
|
|
3217
3223
|
},
|
|
3218
3224
|
// Hour [0-11]
|
|
3219
3225
|
K: function(e, t, n) {
|
|
@@ -3227,15 +3233,15 @@ const Q = {
|
|
|
3227
3233
|
},
|
|
3228
3234
|
// Minute
|
|
3229
3235
|
m: function(e, t, n) {
|
|
3230
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
3236
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : X.m(e, t);
|
|
3231
3237
|
},
|
|
3232
3238
|
// Second
|
|
3233
3239
|
s: function(e, t, n) {
|
|
3234
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
3240
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : X.s(e, t);
|
|
3235
3241
|
},
|
|
3236
3242
|
// Fraction of second
|
|
3237
3243
|
S: function(e, t) {
|
|
3238
|
-
return
|
|
3244
|
+
return X.S(e, t);
|
|
3239
3245
|
},
|
|
3240
3246
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
3241
3247
|
X: function(e, t, n) {
|
|
@@ -3244,7 +3250,7 @@ const Q = {
|
|
|
3244
3250
|
return "Z";
|
|
3245
3251
|
switch (t) {
|
|
3246
3252
|
case "X":
|
|
3247
|
-
return
|
|
3253
|
+
return ut(r);
|
|
3248
3254
|
case "XXXX":
|
|
3249
3255
|
case "XX":
|
|
3250
3256
|
return re(r);
|
|
@@ -3259,7 +3265,7 @@ const Q = {
|
|
|
3259
3265
|
const r = e.getTimezoneOffset();
|
|
3260
3266
|
switch (t) {
|
|
3261
3267
|
case "x":
|
|
3262
|
-
return
|
|
3268
|
+
return ut(r);
|
|
3263
3269
|
case "xxxx":
|
|
3264
3270
|
case "xx":
|
|
3265
3271
|
return re(r);
|
|
@@ -3276,7 +3282,7 @@ const Q = {
|
|
|
3276
3282
|
case "O":
|
|
3277
3283
|
case "OO":
|
|
3278
3284
|
case "OOO":
|
|
3279
|
-
return "GMT" +
|
|
3285
|
+
return "GMT" + lt(r, ":");
|
|
3280
3286
|
case "OOOO":
|
|
3281
3287
|
default:
|
|
3282
3288
|
return "GMT" + re(r, ":");
|
|
@@ -3289,7 +3295,7 @@ const Q = {
|
|
|
3289
3295
|
case "z":
|
|
3290
3296
|
case "zz":
|
|
3291
3297
|
case "zzz":
|
|
3292
|
-
return "GMT" +
|
|
3298
|
+
return "GMT" + lt(r, ":");
|
|
3293
3299
|
case "zzzz":
|
|
3294
3300
|
default:
|
|
3295
3301
|
return "GMT" + re(r, ":");
|
|
@@ -3297,27 +3303,26 @@ const Q = {
|
|
|
3297
3303
|
},
|
|
3298
3304
|
// Seconds timestamp
|
|
3299
3305
|
t: function(e, t, n) {
|
|
3300
|
-
const r = Math.trunc(e
|
|
3306
|
+
const r = Math.trunc(+e / 1e3);
|
|
3301
3307
|
return x(r, t.length);
|
|
3302
3308
|
},
|
|
3303
3309
|
// Milliseconds timestamp
|
|
3304
3310
|
T: function(e, t, n) {
|
|
3305
|
-
|
|
3306
|
-
return x(r, t.length);
|
|
3311
|
+
return x(+e, t.length);
|
|
3307
3312
|
}
|
|
3308
3313
|
};
|
|
3309
|
-
function
|
|
3314
|
+
function lt(e, t = "") {
|
|
3310
3315
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
|
|
3311
3316
|
return s === 0 ? n + String(o) : n + String(o) + t + x(s, 2);
|
|
3312
3317
|
}
|
|
3313
|
-
function
|
|
3318
|
+
function ut(e, t) {
|
|
3314
3319
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + x(Math.abs(e) / 60, 2) : re(e, t);
|
|
3315
3320
|
}
|
|
3316
3321
|
function re(e, t = "") {
|
|
3317
3322
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = x(Math.trunc(r / 60), 2), s = x(r % 60, 2);
|
|
3318
3323
|
return n + o + t + s;
|
|
3319
3324
|
}
|
|
3320
|
-
const
|
|
3325
|
+
const dt = (e, t) => {
|
|
3321
3326
|
switch (e) {
|
|
3322
3327
|
case "P":
|
|
3323
3328
|
return t.date({ width: "short" });
|
|
@@ -3329,7 +3334,7 @@ const ut = (e, t) => {
|
|
|
3329
3334
|
default:
|
|
3330
3335
|
return t.date({ width: "full" });
|
|
3331
3336
|
}
|
|
3332
|
-
},
|
|
3337
|
+
}, Qt = (e, t) => {
|
|
3333
3338
|
switch (e) {
|
|
3334
3339
|
case "p":
|
|
3335
3340
|
return t.time({ width: "short" });
|
|
@@ -3341,10 +3346,10 @@ const ut = (e, t) => {
|
|
|
3341
3346
|
default:
|
|
3342
3347
|
return t.time({ width: "full" });
|
|
3343
3348
|
}
|
|
3344
|
-
},
|
|
3349
|
+
}, ys = (e, t) => {
|
|
3345
3350
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
3346
3351
|
if (!o)
|
|
3347
|
-
return
|
|
3352
|
+
return dt(e, t);
|
|
3348
3353
|
let s;
|
|
3349
3354
|
switch (r) {
|
|
3350
3355
|
case "P":
|
|
@@ -3361,71 +3366,71 @@ const ut = (e, t) => {
|
|
|
3361
3366
|
s = t.dateTime({ width: "full" });
|
|
3362
3367
|
break;
|
|
3363
3368
|
}
|
|
3364
|
-
return s.replace("{{date}}",
|
|
3365
|
-
},
|
|
3366
|
-
p:
|
|
3367
|
-
P:
|
|
3368
|
-
},
|
|
3369
|
-
function
|
|
3370
|
-
return
|
|
3369
|
+
return s.replace("{{date}}", dt(r, t)).replace("{{time}}", Qt(o, t));
|
|
3370
|
+
}, bs = {
|
|
3371
|
+
p: Qt,
|
|
3372
|
+
P: ys
|
|
3373
|
+
}, vs = /^D+$/, Cs = /^Y+$/, xs = ["D", "DD", "YY", "YYYY"];
|
|
3374
|
+
function ks(e) {
|
|
3375
|
+
return vs.test(e);
|
|
3371
3376
|
}
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3377
|
+
function Ss(e) {
|
|
3378
|
+
return Cs.test(e);
|
|
3374
3379
|
}
|
|
3375
|
-
function
|
|
3376
|
-
const r =
|
|
3377
|
-
if (console.warn(r),
|
|
3380
|
+
function Ps(e, t, n) {
|
|
3381
|
+
const r = Os(e, t, n);
|
|
3382
|
+
if (console.warn(r), xs.includes(e)) throw new RangeError(r);
|
|
3378
3383
|
}
|
|
3379
|
-
function
|
|
3384
|
+
function Os(e, t, n) {
|
|
3380
3385
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
3381
3386
|
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`;
|
|
3382
3387
|
}
|
|
3383
|
-
const
|
|
3384
|
-
function
|
|
3385
|
-
var u, m,
|
|
3386
|
-
const r = Te(), o = r.locale ??
|
|
3387
|
-
if (!
|
|
3388
|
+
const Is = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ts = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ds = /^'([^]*?)'?$/, Es = /''/g, Ms = /[a-zA-Z]/;
|
|
3389
|
+
function Gs(e, t, n) {
|
|
3390
|
+
var u, m, w, f;
|
|
3391
|
+
const r = Te(), o = r.locale ?? ms, s = r.firstWeekContainsDate ?? ((m = (u = r.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, c = r.weekStartsOn ?? ((f = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = z(e, n == null ? void 0 : n.in);
|
|
3392
|
+
if (!Ro(i))
|
|
3388
3393
|
throw new RangeError("Invalid time value");
|
|
3389
|
-
let l = t.match(
|
|
3390
|
-
const h =
|
|
3394
|
+
let l = t.match(Ts).map((g) => {
|
|
3395
|
+
const h = g[0];
|
|
3391
3396
|
if (h === "p" || h === "P") {
|
|
3392
|
-
const
|
|
3393
|
-
return g
|
|
3397
|
+
const p = bs[h];
|
|
3398
|
+
return p(g, o.formatLong);
|
|
3394
3399
|
}
|
|
3395
|
-
return
|
|
3396
|
-
}).join("").match(
|
|
3397
|
-
if (
|
|
3400
|
+
return g;
|
|
3401
|
+
}).join("").match(Is).map((g) => {
|
|
3402
|
+
if (g === "''")
|
|
3398
3403
|
return { isToken: !1, value: "'" };
|
|
3399
|
-
const h =
|
|
3404
|
+
const h = g[0];
|
|
3400
3405
|
if (h === "'")
|
|
3401
|
-
return { isToken: !1, value:
|
|
3406
|
+
return { isToken: !1, value: Rs(g) };
|
|
3402
3407
|
if (it[h])
|
|
3403
|
-
return { isToken: !0, value:
|
|
3404
|
-
if (h.match(
|
|
3408
|
+
return { isToken: !0, value: g };
|
|
3409
|
+
if (h.match(Ms))
|
|
3405
3410
|
throw new RangeError(
|
|
3406
3411
|
"Format string contains an unescaped latin alphabet character `" + h + "`"
|
|
3407
3412
|
);
|
|
3408
|
-
return { isToken: !1, value:
|
|
3413
|
+
return { isToken: !1, value: g };
|
|
3409
3414
|
});
|
|
3410
|
-
o.localize.preprocessor && (l = o.localize.preprocessor(
|
|
3415
|
+
o.localize.preprocessor && (l = o.localize.preprocessor(i, l));
|
|
3411
3416
|
const d = {
|
|
3412
3417
|
firstWeekContainsDate: s,
|
|
3413
|
-
weekStartsOn:
|
|
3418
|
+
weekStartsOn: c,
|
|
3414
3419
|
locale: o
|
|
3415
3420
|
};
|
|
3416
|
-
return l.map((
|
|
3417
|
-
if (!
|
|
3418
|
-
const h =
|
|
3419
|
-
(
|
|
3420
|
-
const
|
|
3421
|
-
return
|
|
3421
|
+
return l.map((g) => {
|
|
3422
|
+
if (!g.isToken) return g.value;
|
|
3423
|
+
const h = g.value;
|
|
3424
|
+
(Ss(h) || ks(h)) && Ps(h, t, String(e));
|
|
3425
|
+
const p = it[h[0]];
|
|
3426
|
+
return p(i, h, o.localize, d);
|
|
3422
3427
|
}).join("");
|
|
3423
3428
|
}
|
|
3424
|
-
function
|
|
3425
|
-
const t = e.match(
|
|
3426
|
-
return t ? t[1].replace(
|
|
3429
|
+
function Rs(e) {
|
|
3430
|
+
const t = e.match(Ds);
|
|
3431
|
+
return t ? t[1].replace(Es, "'") : e;
|
|
3427
3432
|
}
|
|
3428
|
-
const
|
|
3433
|
+
const Ws = () => [
|
|
3429
3434
|
{
|
|
3430
3435
|
id: "123",
|
|
3431
3436
|
active: !1,
|
|
@@ -3594,7 +3599,7 @@ const Rs = () => [
|
|
|
3594
3599
|
numPassengers: 655,
|
|
3595
3600
|
departure: D(/* @__PURE__ */ new Date(), 5)
|
|
3596
3601
|
}
|
|
3597
|
-
],
|
|
3602
|
+
], ht = (e, t, n) => e.map((r) => r.id === t ? { ...r, ...n } : r), ua = {
|
|
3598
3603
|
keyResolver: (e) => e.id,
|
|
3599
3604
|
showHeaderCheckbox: !0,
|
|
3600
3605
|
showRowCheckbox: !0,
|
|
@@ -3605,7 +3610,7 @@ const Rs = () => [
|
|
|
3605
3610
|
}),
|
|
3606
3611
|
active: ae((e) => e.active, {
|
|
3607
3612
|
disableGridCellFocus: !0,
|
|
3608
|
-
renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ a(
|
|
3613
|
+
renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(Ae, { value: e.active, ...t }) }),
|
|
3609
3614
|
infoIconTooltipText: "Active means out on the sea."
|
|
3610
3615
|
}),
|
|
3611
3616
|
name: ae((e) => e.name, {
|
|
@@ -3618,7 +3623,7 @@ const Rs = () => [
|
|
|
3618
3623
|
sortOrderIconVariant: "alpha"
|
|
3619
3624
|
}),
|
|
3620
3625
|
numPassengers: ae((e) => e.numPassengers, {
|
|
3621
|
-
renderCell:
|
|
3626
|
+
renderCell: Oo(),
|
|
3622
3627
|
isEditable: !0,
|
|
3623
3628
|
onChange: () => {
|
|
3624
3629
|
},
|
|
@@ -3628,26 +3633,26 @@ const Rs = () => [
|
|
|
3628
3633
|
width: "140px"
|
|
3629
3634
|
}),
|
|
3630
3635
|
departure: ae((e) => e.departure, {
|
|
3631
|
-
itemLabelFormatter: (e) =>
|
|
3636
|
+
itemLabelFormatter: (e) => Gs(e, "yyyy-MM-dd"),
|
|
3632
3637
|
borderLeft: !0
|
|
3633
3638
|
})
|
|
3634
3639
|
},
|
|
3635
3640
|
columnOrder: ["id", "active", "name", "ship", "numPassengers", "departure"]
|
|
3636
|
-
},
|
|
3641
|
+
}, da = Ws(), ha = (e) => {
|
|
3637
3642
|
const [t, n] = ke(e), r = P(
|
|
3638
|
-
(s,
|
|
3643
|
+
(s, c) => {
|
|
3639
3644
|
n(
|
|
3640
|
-
|
|
3641
|
-
numPassengers:
|
|
3645
|
+
ht(t, s.id, {
|
|
3646
|
+
numPassengers: c ? parseInt(c) : void 0
|
|
3642
3647
|
})
|
|
3643
3648
|
);
|
|
3644
3649
|
},
|
|
3645
3650
|
[t, n]
|
|
3646
3651
|
), o = P(
|
|
3647
|
-
(s,
|
|
3652
|
+
(s, c) => {
|
|
3648
3653
|
n(
|
|
3649
|
-
|
|
3650
|
-
active:
|
|
3654
|
+
ht(t, s.id, {
|
|
3655
|
+
active: c
|
|
3651
3656
|
})
|
|
3652
3657
|
);
|
|
3653
3658
|
},
|
|
@@ -3660,78 +3665,78 @@ const Rs = () => [
|
|
|
3660
3665
|
};
|
|
3661
3666
|
};
|
|
3662
3667
|
export {
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3668
|
+
Ct as CrudStatusIndicator,
|
|
3669
|
+
ca as EditableTextCellWithCrudAndModified,
|
|
3670
|
+
vt as GridHooksContext,
|
|
3671
|
+
ta as GridHooksTable,
|
|
3672
|
+
Dn as ModifiedField,
|
|
3673
|
+
na as SmallTableCell,
|
|
3674
|
+
ra as SmallTableHead,
|
|
3675
|
+
ia as StandardTable,
|
|
3676
|
+
Et as StandardTableActionsContext,
|
|
3677
|
+
to as StandardTableCell,
|
|
3678
|
+
Xr as StandardTableCellUi,
|
|
3679
|
+
Mt as StandardTableConfigContext,
|
|
3680
|
+
po as StandardTableContent,
|
|
3681
|
+
Po as StandardTableHeadRow,
|
|
3682
|
+
ro as StandardTableRow,
|
|
3683
|
+
Hr as StandardTableRowCheckbox,
|
|
3684
|
+
go as StandardTableRowList,
|
|
3685
|
+
Dt as StandardTableStateContext,
|
|
3686
|
+
Tt as StandardTableTableIdContext,
|
|
3687
|
+
En as TableCell,
|
|
3688
|
+
oa as TableColumnGroupHead,
|
|
3684
3689
|
ze as TableHeadItem,
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3690
|
+
sa as TableHeadRow,
|
|
3691
|
+
aa as TableRow,
|
|
3692
|
+
Zr as TextCell,
|
|
3688
3693
|
ae as createColumnConfig,
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3694
|
+
la as createEditableTextCellWithStatus,
|
|
3695
|
+
Ht as createGroupConfigAndIdsForRows,
|
|
3696
|
+
or as createInternalStandardTableActions,
|
|
3697
|
+
Ws as createItemsMocks,
|
|
3698
|
+
Oo as createStandardEditableTextCell,
|
|
3699
|
+
Dr as createStandardTableActions,
|
|
3700
|
+
Gt as createStandardTableInitialState,
|
|
3701
|
+
sr as createStandardTableReducer,
|
|
3697
3702
|
Ye as defaultTableHeadRowHeight,
|
|
3698
3703
|
He as defaultTableRowHeight,
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3704
|
+
It as focusOnCell,
|
|
3705
|
+
$r as formatColumnIdToHeaderCellLabel,
|
|
3706
|
+
Vr as formatValueLabel,
|
|
3707
|
+
Le as hasIndicatorContent,
|
|
3708
|
+
da as mockedItems,
|
|
3709
|
+
Lr as multitypeComparator,
|
|
3710
|
+
ht as setListItemFields,
|
|
3711
|
+
St as smallTableRowWidth,
|
|
3712
|
+
ua as standardTableConfigForStories,
|
|
3713
|
+
xt as tableBackgroundColorExpanded,
|
|
3709
3714
|
Rn as tableBackgroundHoverColorExpanded,
|
|
3710
3715
|
fe as tableBorder,
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3716
|
+
Mn as tableBorderColor,
|
|
3717
|
+
Gn as tableBorderColorExpanded,
|
|
3718
|
+
Wn as tableBorderHidden,
|
|
3714
3719
|
Fe as tableBorderLeft,
|
|
3715
|
-
|
|
3720
|
+
kt as tableBorderLeftExpanded,
|
|
3716
3721
|
ot as useCellBackgroundByColumnConfig,
|
|
3717
|
-
|
|
3722
|
+
jr as useCellBackgroundByColumnId,
|
|
3718
3723
|
ye as useColumnConfigById,
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3724
|
+
Fr as useColumnValueResolver,
|
|
3725
|
+
Yn as useEditableCell,
|
|
3726
|
+
dr as useFirstColumnConfig,
|
|
3722
3727
|
Oe as useGridCell,
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3728
|
+
tr as useGridNavigation,
|
|
3729
|
+
Pt as useGridNavigationOptionsFromContext,
|
|
3730
|
+
hr as useLastColumnConfig,
|
|
3731
|
+
ha as useListState,
|
|
3732
|
+
Er as useLocalStateTableContext,
|
|
3733
|
+
Ln as useRevertableValue,
|
|
3734
|
+
zr as useRowCheckbox,
|
|
3735
|
+
pe as useStandardTableActions,
|
|
3731
3736
|
I as useStandardTableConfig,
|
|
3732
3737
|
qe as useStandardTableId,
|
|
3733
3738
|
oe as useStandardTableState,
|
|
3734
|
-
|
|
3735
|
-
|
|
3739
|
+
yo as useTableHeadCheckbox,
|
|
3740
|
+
vo as useTableSortHeader
|
|
3736
3741
|
};
|
|
3737
3742
|
//# sourceMappingURL=index.es.js.map
|