@stenajs-webui/grid 23.12.2 → 23.12.4
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
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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))}.
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._tableRow_1cphw_1:focus-within{background:var(--focus-within-background, var(--lhds-color-blue-50))}._standardTable_d7cgg_1{--swui-standard-table-height: 40px;--swui-field-height: calc(var(--current-row-height) - 4px);--swui-sticky-header-shadow: 2px 4px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-header-shadow-and-right: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-right);--swui-sticky-header-shadow-and-left: var(--swui-sticky-header-shadow), var(--swui-sticky-column-shadow-left);--swui-sticky-column-shadow-right: 4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-column-shadow-left: -4px 2px 4px 0 rgba(0, 0, 0, .05);--swui-sticky-column-z-index: 20;--swui-sticky-head-z-index: 22;--swui-sticky-group-group-z-index: 25;--swui-sticky-group-header-z-index: 26;--swui-sticky-header-column-group-z-index: 30;--swui-sticky-column-group-label-z-index: 40;--swui-sticky-header-in-sticky-column-z-index: 50;--swui-sticky-popover-z-index: 60;--swui-expand-cell-width: 45px;--swui-checkbox-cell-width: 45px;--swui-expand-highlight-border-width: 2px;--current-row-height: var(--swui-standard-table-height);--current-left-offset: 0px;border-spacing:0}._standardTable_d7cgg_1 td{border-top:1px solid var(--lhds-color-ui-300);padding:0}._standardTable_d7cgg_1 th{padding:0}._standardTable_d7cgg_1._relaxed_d7cgg_39{--current-row-height: 48px}._standardTable_d7cgg_1._condensed_d7cgg_43{--current-row-height: 32px}._standardTable_d7cgg_1._compact_d7cgg_47{--current-row-height: 24px}._standardTableCell_1xzcm_1{outline:none}._summaryRow_12x8k_1 td{border-top:1px solid var(--lhds-color-ui-400)}._standardTableHeadTh_swsxb_8{height:1px}@-moz-document url-prefix(){._standardTableHeadTh_swsxb_8{height:100%}}")),document.head.appendChild(e)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
|
|
2
2
|
import { jsx as s, Fragment as D, jsxs as C } from "react/jsx-runtime";
|
|
3
3
|
import * as E from "react";
|
|
4
|
-
import { useMemo as y, useRef as
|
|
5
|
-
import { InputSpinner as
|
|
6
|
-
import { cssColor as
|
|
7
|
-
import { Tooltip as
|
|
8
|
-
import { Text as
|
|
9
|
-
import
|
|
10
|
-
import { TextInput as
|
|
11
|
-
import { useDispatch as
|
|
12
|
-
import { createEntityActions as
|
|
13
|
-
import { combineReducers as
|
|
14
|
-
import { LoadingScreen as
|
|
15
|
-
import { compact as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
4
|
+
import { useMemo as y, useRef as ue, useState as Pe, useCallback as S, useEffect as pt, useContext as V, createContext as B, useReducer as tn, useId as nn } from "react";
|
|
5
|
+
import { InputSpinner as Fe, Icon as X, stenaExclamationTriangle as Ie, stenaArrowRight as gt, stenaSortUpMini as rn, stenaSortDownMini as on, stenaInfoCircle as sn, FlatButton as Be, stenaDotsVertical as an, stenaAngleDown as wt, stenaAngleRight as yt, ResultListBanner as cn, Banner as Xe } from "@stenajs-webui/elements";
|
|
6
|
+
import { cssColor as j } from "@stenajs-webui/theme";
|
|
7
|
+
import { Tooltip as ye, Popover as ln } from "@stenajs-webui/tooltip";
|
|
8
|
+
import { Text as U, Indent as G, Space as M, Row as I, Box as he, Heading as bt, booleanOrNumberToNumber as dn, useArraySet as vt, useOnScreen as un, Spacing as Me } from "@stenajs-webui/core";
|
|
9
|
+
import Ct from "classnames";
|
|
10
|
+
import { TextInput as Le, Checkbox as Ae } from "@stenajs-webui/forms";
|
|
11
|
+
import { useDispatch as hn, useSelector as Ue } from "react-redux";
|
|
12
|
+
import { createEntityActions as mn, createSelectedIdsActions as Je, createSortOrderActions as fn, createSelectedIdsReducerInitialState as Ze, createSortOrderReducerInitialState as pn, reducerIdGate as Se, createSortOrderReducer as gn, createSelectedIdsReducer as et, createEntityReducer as wn, reducerIdGateAction as oe } from "@stenajs-webui/redux";
|
|
13
|
+
import { combineReducers as yn } from "redux";
|
|
14
|
+
import { LoadingScreen as bn, ErrorScreen as vn } from "@stenajs-webui/panels";
|
|
15
|
+
import { compact as Cn, upperFirst as xn, lowerCase as kn } from "lodash-es";
|
|
16
|
+
import Sn from "@emotion/styled";
|
|
17
|
+
const xt = E.createContext({}), Ys = ({
|
|
18
18
|
children: e,
|
|
19
19
|
numCols: t,
|
|
20
20
|
numRows: n,
|
|
@@ -25,39 +25,39 @@ const vt = E.createContext({}), Hs = ({
|
|
|
25
25
|
() => ({ numCols: t, numRows: n, tableId: r, wrap: o }),
|
|
26
26
|
[t, n, r, o]
|
|
27
27
|
);
|
|
28
|
-
return /* @__PURE__ */ s(
|
|
29
|
-
},
|
|
28
|
+
return /* @__PURE__ */ s(xt.Provider, { value: a, children: e });
|
|
29
|
+
}, He = (e) => {
|
|
30
30
|
const { loading: t, creating: n, deleting: r, updating: o, hasError: a } = e;
|
|
31
31
|
return !!(t || n || r || o || a);
|
|
32
|
-
},
|
|
33
|
-
if (!e || !
|
|
32
|
+
}, kt = ({ crudStatus: e }) => {
|
|
33
|
+
if (!e || !He(e))
|
|
34
34
|
return null;
|
|
35
35
|
const { errorMessage: t, hasError: n, loading: r, creating: o, deleting: a, updating: i } = e;
|
|
36
36
|
if (r || o || a || i)
|
|
37
|
-
return /* @__PURE__ */ s(
|
|
37
|
+
return /* @__PURE__ */ s(Fe, { color: j("--lhds-color-ui-500") });
|
|
38
38
|
if (n) {
|
|
39
39
|
const c = /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
X,
|
|
41
41
|
{
|
|
42
|
-
icon:
|
|
43
|
-
color:
|
|
42
|
+
icon: Ie,
|
|
43
|
+
color: j("--lhds-color-orange-600"),
|
|
44
44
|
size: 14
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
return /* @__PURE__ */ s(D, { children: t ? /* @__PURE__ */ s(
|
|
47
|
+
return /* @__PURE__ */ s(D, { children: t ? /* @__PURE__ */ s(ye, { label: t, children: c }) : c });
|
|
48
48
|
}
|
|
49
49
|
return null;
|
|
50
|
-
},
|
|
50
|
+
}, Pn = ({
|
|
51
51
|
isEditable: e,
|
|
52
52
|
warningOnEmpty: t,
|
|
53
53
|
value: n,
|
|
54
54
|
modifiedField: r,
|
|
55
55
|
crudStatus: o
|
|
56
56
|
}) => {
|
|
57
|
-
const a = t && r?.modified && r?.newValue === "", i = o &&
|
|
57
|
+
const a = t && r?.modified && r?.newValue === "", i = o && He(o), c = a || i;
|
|
58
58
|
return /* @__PURE__ */ C(D, { children: [
|
|
59
59
|
/* @__PURE__ */ s(
|
|
60
|
-
|
|
60
|
+
U,
|
|
61
61
|
{
|
|
62
62
|
color: e ? "var(--swui-primary-action-color)" : void 0,
|
|
63
63
|
variant: r?.modified ? "bold" : void 0,
|
|
@@ -65,20 +65,20 @@ const vt = E.createContext({}), Hs = ({
|
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
r?.newValue !== void 0 && /* @__PURE__ */ C(D, { children: [
|
|
68
|
-
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(
|
|
69
|
-
/* @__PURE__ */ s(
|
|
68
|
+
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(X, { icon: gt, size: 12 }) }),
|
|
69
|
+
/* @__PURE__ */ s(U, { color: "var(--swui-primary-action-color)", variant: "bold", children: r.newValue })
|
|
70
70
|
] }),
|
|
71
71
|
c && /* @__PURE__ */ s(M, {}),
|
|
72
|
-
a ? /* @__PURE__ */ s(
|
|
73
|
-
|
|
72
|
+
a ? /* @__PURE__ */ s(ye, { label: t, children: /* @__PURE__ */ s(
|
|
73
|
+
X,
|
|
74
74
|
{
|
|
75
|
-
icon:
|
|
76
|
-
color:
|
|
75
|
+
icon: Ie,
|
|
76
|
+
color: j("--lhds-color-orange-600"),
|
|
77
77
|
size: 14
|
|
78
78
|
}
|
|
79
|
-
) }) : /* @__PURE__ */ s(
|
|
79
|
+
) }) : /* @__PURE__ */ s(kt, { crudStatus: o })
|
|
80
80
|
] });
|
|
81
|
-
},
|
|
81
|
+
}, On = ({
|
|
82
82
|
alignItems: e = "center",
|
|
83
83
|
justifyContent: t = "flex-start",
|
|
84
84
|
overflow: n = "hidden",
|
|
@@ -94,21 +94,21 @@ const vt = E.createContext({}), Hs = ({
|
|
|
94
94
|
indent: r,
|
|
95
95
|
...o
|
|
96
96
|
}
|
|
97
|
-
),
|
|
98
|
-
|
|
97
|
+
), In = "var(--lhds-color-ui-300)", Tn = "var(--lhds-color-blue-500)", St = "var(--lhds-color-blue-50)", Dn = "var(--lhds-color-blue-100)", ge = `1px solid ${In}`, En = "1px solid transparent", Ne = "var(--swui-expand-highlight-border-width) solid transparent", Pt = `var(--swui-expand-highlight-border-width) solid ${Tn}`, Ye = "40px", ze = "40px", Ot = "40px", zs = (e) => /* @__PURE__ */ s(
|
|
98
|
+
On,
|
|
99
99
|
{
|
|
100
|
-
width:
|
|
100
|
+
width: Ot,
|
|
101
101
|
justifyContent: "center",
|
|
102
102
|
...e
|
|
103
103
|
}
|
|
104
|
-
),
|
|
105
|
-
|
|
104
|
+
), tt = ({ direction: e }) => /* @__PURE__ */ s(he, { width: "14px", children: /* @__PURE__ */ s(
|
|
105
|
+
X,
|
|
106
106
|
{
|
|
107
107
|
size: 14,
|
|
108
|
-
color:
|
|
109
|
-
icon: e === "up" ?
|
|
108
|
+
color: j("--lhds-color-ui-500"),
|
|
109
|
+
icon: e === "up" ? rn : on
|
|
110
110
|
}
|
|
111
|
-
) }),
|
|
111
|
+
) }), qe = E.memo(
|
|
112
112
|
({
|
|
113
113
|
label: e,
|
|
114
114
|
arrow: t,
|
|
@@ -124,7 +124,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
124
124
|
alignRight: u,
|
|
125
125
|
...p
|
|
126
126
|
}) => {
|
|
127
|
-
const f =
|
|
127
|
+
const f = ue(null), w = n ? { cursor: "pointer", userSelect: "none" } : void 0, m = !e && !t && !l;
|
|
128
128
|
return /* @__PURE__ */ C(
|
|
129
129
|
I,
|
|
130
130
|
{
|
|
@@ -134,13 +134,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
134
134
|
overflow: d,
|
|
135
135
|
justifyContent: u ? "flex-end" : "flex-start",
|
|
136
136
|
borderTop: "2px solid transparent",
|
|
137
|
-
borderBottom: `2px solid ${o ?
|
|
137
|
+
borderBottom: `2px solid ${o ? j("--lhds-color-blue-500") : "transparent"}`,
|
|
138
138
|
...p,
|
|
139
139
|
children: [
|
|
140
140
|
/* @__PURE__ */ C(I, { alignItems: "center", indent: !0, children: [
|
|
141
141
|
!t && u && /* @__PURE__ */ C(D, { children: [
|
|
142
142
|
/* @__PURE__ */ s(M, {}),
|
|
143
|
-
/* @__PURE__ */ s(
|
|
143
|
+
/* @__PURE__ */ s(he, { width: "14px" }),
|
|
144
144
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
145
145
|
] }),
|
|
146
146
|
(r || e) && /* @__PURE__ */ C(I, { onClick: n, style: w, alignItems: "center", children: [
|
|
@@ -150,13 +150,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
150
150
|
] }),
|
|
151
151
|
t && u && /* @__PURE__ */ C(D, { children: [
|
|
152
152
|
/* @__PURE__ */ s(M, {}),
|
|
153
|
-
/* @__PURE__ */ s(
|
|
153
|
+
/* @__PURE__ */ s(tt, { direction: t }),
|
|
154
154
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
155
155
|
] }),
|
|
156
|
-
e && /* @__PURE__ */ s(
|
|
156
|
+
e && /* @__PURE__ */ s(bt, { variant: "h6", style: { textAlign: "left" }, children: e }),
|
|
157
157
|
t && !u && /* @__PURE__ */ C(D, { children: [
|
|
158
158
|
/* @__PURE__ */ s(M, { num: 0.5 }),
|
|
159
|
-
/* @__PURE__ */ s(
|
|
159
|
+
/* @__PURE__ */ s(tt, { direction: t }),
|
|
160
160
|
/* @__PURE__ */ s(M, {})
|
|
161
161
|
] })
|
|
162
162
|
] }),
|
|
@@ -164,17 +164,17 @@ const vt = E.createContext({}), Hs = ({
|
|
|
164
164
|
/* @__PURE__ */ s(M, {}),
|
|
165
165
|
/* @__PURE__ */ C(I, { onClick: (g) => g.stopPropagation(), children: [
|
|
166
166
|
/* @__PURE__ */ s(
|
|
167
|
-
|
|
167
|
+
ye,
|
|
168
168
|
{
|
|
169
169
|
appendTo: c,
|
|
170
170
|
label: l,
|
|
171
171
|
zIndex: h,
|
|
172
172
|
children: /* @__PURE__ */ s(
|
|
173
|
-
|
|
173
|
+
X,
|
|
174
174
|
{
|
|
175
|
-
icon:
|
|
175
|
+
icon: sn,
|
|
176
176
|
size: 14,
|
|
177
|
-
color:
|
|
177
|
+
color: j("--lhds-color-blue-400")
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
}
|
|
@@ -183,13 +183,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
183
183
|
] })
|
|
184
184
|
] })
|
|
185
185
|
] }),
|
|
186
|
-
/* @__PURE__ */ s(I, { children: i ? /* @__PURE__ */ s(
|
|
187
|
-
|
|
186
|
+
/* @__PURE__ */ s(I, { children: i ? /* @__PURE__ */ s(Fe, {}) : a ? /* @__PURE__ */ s(
|
|
187
|
+
ln,
|
|
188
188
|
{
|
|
189
189
|
renderTrigger: (g) => /* @__PURE__ */ s(
|
|
190
|
-
|
|
190
|
+
Be,
|
|
191
191
|
{
|
|
192
|
-
leftIcon:
|
|
192
|
+
leftIcon: an,
|
|
193
193
|
size: "small",
|
|
194
194
|
...g
|
|
195
195
|
}
|
|
@@ -201,51 +201,51 @@ const vt = E.createContext({}), Hs = ({
|
|
|
201
201
|
) : null }),
|
|
202
202
|
!t && !u && /* @__PURE__ */ C(D, { children: [
|
|
203
203
|
/* @__PURE__ */ s(M, {}),
|
|
204
|
-
/* @__PURE__ */ s(
|
|
204
|
+
/* @__PURE__ */ s(he, { width: "14px" }),
|
|
205
205
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
206
206
|
] })
|
|
207
207
|
]
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
|
-
),
|
|
212
|
-
|
|
211
|
+
), qs = (e) => /* @__PURE__ */ s(
|
|
212
|
+
qe,
|
|
213
213
|
{
|
|
214
|
-
width:
|
|
214
|
+
width: Ot,
|
|
215
215
|
justifyContent: "center",
|
|
216
216
|
...e
|
|
217
217
|
}
|
|
218
|
-
),
|
|
218
|
+
), _s = ({
|
|
219
219
|
label: e,
|
|
220
220
|
flex: t,
|
|
221
221
|
width: n,
|
|
222
222
|
indent: r = 1,
|
|
223
|
-
height: o =
|
|
224
|
-
}) => /* @__PURE__ */ s(
|
|
225
|
-
({ style: e, height: t =
|
|
226
|
-
),
|
|
227
|
-
tableRow:
|
|
228
|
-
},
|
|
223
|
+
height: o = ze
|
|
224
|
+
}) => /* @__PURE__ */ s(qe, { width: n, flex: t, height: o, children: /* @__PURE__ */ s(he, { indent: r, spacing: !0, children: /* @__PURE__ */ s(U, { variant: "bold", children: e }) }) }), js = E.memo(
|
|
225
|
+
({ style: e, height: t = ze, ...n }) => /* @__PURE__ */ s(I, { style: e, height: t, ...n })
|
|
226
|
+
), Rn = "_tableRow_1cphw_1", Mn = {
|
|
227
|
+
tableRow: Rn
|
|
228
|
+
}, Vs = ({
|
|
229
229
|
hideBorderTop: e,
|
|
230
|
-
height: t =
|
|
230
|
+
height: t = ze,
|
|
231
231
|
className: n,
|
|
232
232
|
...r
|
|
233
233
|
}) => /* @__PURE__ */ s(
|
|
234
234
|
I,
|
|
235
235
|
{
|
|
236
|
-
borderTop: e ?
|
|
236
|
+
borderTop: e ? En : ge,
|
|
237
237
|
height: t,
|
|
238
|
-
className:
|
|
238
|
+
className: Ct(Mn.tableRow, n),
|
|
239
239
|
...r
|
|
240
240
|
}
|
|
241
|
-
),
|
|
242
|
-
const [t, n] =
|
|
241
|
+
), Gn = (e) => {
|
|
242
|
+
const [t, n] = Pe(e), r = ue(e), o = ue(e), a = S(
|
|
243
243
|
(d) => {
|
|
244
244
|
n(d), o.current = d;
|
|
245
245
|
},
|
|
246
246
|
[n, o]
|
|
247
247
|
);
|
|
248
|
-
|
|
248
|
+
pt(() => {
|
|
249
249
|
a(e);
|
|
250
250
|
}, [a, e]);
|
|
251
251
|
const i = S(() => {
|
|
@@ -267,7 +267,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
267
267
|
commit: c,
|
|
268
268
|
getValue: h
|
|
269
269
|
};
|
|
270
|
-
},
|
|
270
|
+
}, Wn = (e) => ({
|
|
271
271
|
altKey: e.altKey,
|
|
272
272
|
charCode: e.charCode,
|
|
273
273
|
ctrlKey: e.ctrlKey,
|
|
@@ -279,17 +279,17 @@ const vt = E.createContext({}), Hs = ({
|
|
|
279
279
|
repeat: e.repeat,
|
|
280
280
|
shiftKey: e.shiftKey,
|
|
281
281
|
which: e.which
|
|
282
|
-
}),
|
|
282
|
+
}), Fn = (e) => e, Bn = (e, {
|
|
283
283
|
isEditable: t = !1,
|
|
284
284
|
allowedInputType: n = "all",
|
|
285
285
|
onChange: r,
|
|
286
286
|
onStartEditing: o,
|
|
287
287
|
onStopEditing: a,
|
|
288
|
-
transformEnteredValue: i =
|
|
288
|
+
transformEnteredValue: i = Fn
|
|
289
289
|
}) => {
|
|
290
|
-
const [c, l] =
|
|
290
|
+
const [c, l] = Pe(!1), [h, d] = Pe(
|
|
291
291
|
void 0
|
|
292
|
-
), u =
|
|
292
|
+
), u = Gn(e), { getValue: p, revert: f, setValue: w, setRevertValue: m } = u, g = S(
|
|
293
293
|
(v) => {
|
|
294
294
|
t && (w(e), m(e), l(!0), o && o(v));
|
|
295
295
|
},
|
|
@@ -301,7 +301,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
301
301
|
}, [t, a, f, l]);
|
|
302
302
|
return {
|
|
303
303
|
onKeyDown: y(
|
|
304
|
-
() =>
|
|
304
|
+
() => zn(
|
|
305
305
|
c,
|
|
306
306
|
t,
|
|
307
307
|
g,
|
|
@@ -328,34 +328,34 @@ const vt = E.createContext({}), Hs = ({
|
|
|
328
328
|
stopEditingAndRevert: k,
|
|
329
329
|
onDoubleClick: g
|
|
330
330
|
};
|
|
331
|
-
},
|
|
331
|
+
}, Ln = (e) => e === "all" || e === "numeric" || e === "alphanumeric", An = (e) => e === "all" || e === "alphanumeric" || e === "letters", Hn = (e) => !!e.match(/^[-+*<>]$/), Nn = (e) => !!e.match(/^[a-zA-Z0-9]$/), Yn = (e) => !isNaN(parseInt(e, 10)), zn = (e, t, n, r, o, a, i) => (c) => {
|
|
332
332
|
if (!(c.ctrlKey || c.metaKey || c.shiftKey)) {
|
|
333
333
|
if (c.key === "Enter" && t)
|
|
334
334
|
r(void 0), n(), i.commit(), c.preventDefault(), c.stopPropagation();
|
|
335
335
|
else if (t) {
|
|
336
|
-
const l =
|
|
337
|
-
(
|
|
336
|
+
const l = Wn(c);
|
|
337
|
+
(Yn(c.key) && Ln(o) || Nn(c.key) && An(o) || Hn(c.key)) && (n(l), r(l), i.commit(), i.setValue(a(l.key)), c.preventDefault(), c.stopPropagation());
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
},
|
|
340
|
+
}, qn = (e, t, n, r) => {
|
|
341
341
|
let o = e, a = t;
|
|
342
342
|
return t > r && (a = 0), t < 0 && (a = r), e > n && (o = 0), e < 0 && (o = n), {
|
|
343
343
|
realX: o,
|
|
344
344
|
realY: a
|
|
345
345
|
};
|
|
346
|
-
},
|
|
347
|
-
rowIndex:
|
|
348
|
-
colIndex:
|
|
349
|
-
}),
|
|
350
|
-
const r =
|
|
346
|
+
}, nt = (e, t, n) => Math.max(Math.min(e, n), t), _n = (e, t, n) => ({
|
|
347
|
+
rowIndex: nt(e.rowIndex, 0, t),
|
|
348
|
+
colIndex: nt(e.colIndex, 0, n)
|
|
349
|
+
}), jn = (e, t, n) => {
|
|
350
|
+
const r = qn(e.colIndex, e.rowIndex, n, t);
|
|
351
351
|
return {
|
|
352
352
|
rowIndex: r.realY,
|
|
353
353
|
colIndex: r.realX
|
|
354
354
|
};
|
|
355
|
-
},
|
|
356
|
-
const i =
|
|
357
|
-
return a === "clamped" ?
|
|
358
|
-
},
|
|
355
|
+
}, Vn = (e, t, n, r, o, a = "clamped") => {
|
|
356
|
+
const i = Kn(e, t, o);
|
|
357
|
+
return a === "clamped" ? _n(i, n - 1, r - 1) : a === "wrapped" ? jn(i, n - 1, r - 1) : i;
|
|
358
|
+
}, Kn = (e, t, n) => n === "up" ? {
|
|
359
359
|
rowIndex: e - 1,
|
|
360
360
|
colIndex: t
|
|
361
361
|
} : n === "down" ? {
|
|
@@ -370,7 +370,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
370
370
|
} : {
|
|
371
371
|
rowIndex: e,
|
|
372
372
|
colIndex: t
|
|
373
|
-
},
|
|
373
|
+
}, $n = (e) => e.replace(/^[^a-z]+|[^\w:.-]+/gi, ""), Qn = (e) => {
|
|
374
374
|
if (!e.tableId)
|
|
375
375
|
throw new Error("tableId is required.");
|
|
376
376
|
if (e.numRows == null)
|
|
@@ -378,16 +378,16 @@ const vt = E.createContext({}), Hs = ({
|
|
|
378
378
|
if (e.numCols == null)
|
|
379
379
|
throw new Error("numCols is required.");
|
|
380
380
|
return e;
|
|
381
|
-
},
|
|
382
|
-
const t =
|
|
381
|
+
}, It = (e) => {
|
|
382
|
+
const t = V(xt);
|
|
383
383
|
return y(
|
|
384
|
-
() =>
|
|
384
|
+
() => Qn({
|
|
385
385
|
...t,
|
|
386
386
|
...e
|
|
387
387
|
}),
|
|
388
388
|
[t, e]
|
|
389
389
|
);
|
|
390
|
-
},
|
|
390
|
+
}, Xn = (e) => {
|
|
391
391
|
const {
|
|
392
392
|
rowIndex: t,
|
|
393
393
|
colIndex: n,
|
|
@@ -397,8 +397,8 @@ const vt = E.createContext({}), Hs = ({
|
|
|
397
397
|
edgeMode: i,
|
|
398
398
|
onCellMove: c,
|
|
399
399
|
onCellNavigation: l
|
|
400
|
-
} =
|
|
401
|
-
() =>
|
|
400
|
+
} = It(e), h = y(
|
|
401
|
+
() => Un(
|
|
402
402
|
a,
|
|
403
403
|
t,
|
|
404
404
|
n,
|
|
@@ -419,10 +419,10 @@ const vt = E.createContext({}), Hs = ({
|
|
|
419
419
|
l
|
|
420
420
|
]
|
|
421
421
|
), d = y(
|
|
422
|
-
() =>
|
|
422
|
+
() => Jn(h),
|
|
423
423
|
[h]
|
|
424
424
|
), u = y(
|
|
425
|
-
() =>
|
|
425
|
+
() => Tt(a, t, n),
|
|
426
426
|
[a, t, n]
|
|
427
427
|
), p = y(
|
|
428
428
|
() => ({
|
|
@@ -433,12 +433,12 @@ const vt = E.createContext({}), Hs = ({
|
|
|
433
433
|
[d, u]
|
|
434
434
|
);
|
|
435
435
|
return {
|
|
436
|
-
focusOnCell:
|
|
436
|
+
focusOnCell: Dt,
|
|
437
437
|
moveHandler: h,
|
|
438
438
|
requiredProps: p
|
|
439
439
|
};
|
|
440
|
-
},
|
|
441
|
-
const h =
|
|
440
|
+
}, Un = (e, t, n, r, o, a, i, c) => (l) => {
|
|
441
|
+
const h = Vn(
|
|
442
442
|
t,
|
|
443
443
|
n,
|
|
444
444
|
r,
|
|
@@ -454,7 +454,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
454
454
|
colIndex: h.colIndex,
|
|
455
455
|
colDidChange: d,
|
|
456
456
|
rowDidChange: u
|
|
457
|
-
}),
|
|
457
|
+
}), Dt(e, h)), c && c({
|
|
458
458
|
direction: l,
|
|
459
459
|
fromRowIndex: t,
|
|
460
460
|
fromColIndex: n,
|
|
@@ -464,13 +464,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
464
464
|
rowDidChange: u,
|
|
465
465
|
cellDidChange: d || u
|
|
466
466
|
});
|
|
467
|
-
},
|
|
467
|
+
}, Tt = (e, t, n) => $n(`table-${e}-${t}-${n}`), Jn = (e) => (t) => t.key === "ArrowLeft" ? (e("left"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowUp" ? (e("up"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowRight" ? (e("right"), t.preventDefault(), t.stopPropagation(), !0) : t.key === "ArrowDown" ? (e("down"), t.preventDefault(), t.stopPropagation(), !0) : !1, Dt = (e, t) => {
|
|
468
468
|
const n = document.getElementById(
|
|
469
|
-
|
|
469
|
+
Tt(e, t.rowIndex, t.colIndex)
|
|
470
470
|
);
|
|
471
471
|
n && n.focus();
|
|
472
|
-
},
|
|
473
|
-
const { tableId: n } =
|
|
472
|
+
}, Te = (e, t) => {
|
|
473
|
+
const { tableId: n } = It(t), r = Xn(t), o = Bn(e, t), a = y(
|
|
474
474
|
() => ({
|
|
475
475
|
rowIndex: t.rowIndex,
|
|
476
476
|
colIndex: t.colIndex
|
|
@@ -518,7 +518,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
518
518
|
stopEditingAndRevert: l,
|
|
519
519
|
stopEditingAndMove: h
|
|
520
520
|
};
|
|
521
|
-
},
|
|
521
|
+
}, Ks = function({
|
|
522
522
|
allowedInputType: t,
|
|
523
523
|
value: n = "",
|
|
524
524
|
entityId: r,
|
|
@@ -532,9 +532,9 @@ const vt = E.createContext({}), Hs = ({
|
|
|
532
532
|
numRows: u,
|
|
533
533
|
warningOnEmpty: p
|
|
534
534
|
}) {
|
|
535
|
-
const f =
|
|
535
|
+
const f = hn(), w = Ue(
|
|
536
536
|
c.selectors.getState
|
|
537
|
-
), m =
|
|
537
|
+
), m = Ue(i.selectors.getState), g = w.entities[r], b = m.entities[r], k = S(
|
|
538
538
|
(H = "") => {
|
|
539
539
|
f(H === n ? c.actions.clearEntity(r) : c.actions.setEntity({
|
|
540
540
|
id: r,
|
|
@@ -552,8 +552,8 @@ const vt = E.createContext({}), Hs = ({
|
|
|
552
552
|
stopEditingAndRevert: L,
|
|
553
553
|
stopEditingAndMove: A,
|
|
554
554
|
lastKeyEvent: Y,
|
|
555
|
-
requiredProps: { onKeyDown: z,
|
|
556
|
-
} =
|
|
555
|
+
requiredProps: { onKeyDown: z, ...$ }
|
|
556
|
+
} = Te(n, {
|
|
557
557
|
rowIndex: h,
|
|
558
558
|
colIndex: l,
|
|
559
559
|
numCols: d,
|
|
@@ -582,9 +582,9 @@ const vt = E.createContext({}), Hs = ({
|
|
|
582
582
|
return /* @__PURE__ */ C(
|
|
583
583
|
I,
|
|
584
584
|
{
|
|
585
|
-
height:
|
|
585
|
+
height: Ye,
|
|
586
586
|
width: "100%",
|
|
587
|
-
borderBottom:
|
|
587
|
+
borderBottom: ge,
|
|
588
588
|
hoverBackground: "var(--ui7)",
|
|
589
589
|
alignItems: "center",
|
|
590
590
|
children: [
|
|
@@ -601,9 +601,9 @@ const vt = E.createContext({}), Hs = ({
|
|
|
601
601
|
focusBorder: P ? void 0 : "1px solid var(--primary-action-color)",
|
|
602
602
|
hoverBorder: P ? void 0 : "var(--ui5) solid 1px;",
|
|
603
603
|
onKeyDown: q,
|
|
604
|
-
|
|
604
|
+
...$,
|
|
605
605
|
children: /* @__PURE__ */ s(G, { row: !0, alignItems: "center", children: P ? /* @__PURE__ */ s(
|
|
606
|
-
|
|
606
|
+
Le,
|
|
607
607
|
{
|
|
608
608
|
onValueChange: W,
|
|
609
609
|
value: R,
|
|
@@ -615,7 +615,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
615
615
|
}
|
|
616
616
|
) : /* @__PURE__ */ C(D, { children: [
|
|
617
617
|
/* @__PURE__ */ s(
|
|
618
|
-
|
|
618
|
+
U,
|
|
619
619
|
{
|
|
620
620
|
color: o ? "var(--primary-action-color)" : void 0,
|
|
621
621
|
variant: g?.modified ? "bold" : void 0,
|
|
@@ -623,9 +623,9 @@ const vt = E.createContext({}), Hs = ({
|
|
|
623
623
|
}
|
|
624
624
|
),
|
|
625
625
|
g?.newValue !== void 0 && /* @__PURE__ */ C(D, { children: [
|
|
626
|
-
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(
|
|
626
|
+
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(X, { icon: gt, size: 12 }) }),
|
|
627
627
|
/* @__PURE__ */ s(
|
|
628
|
-
|
|
628
|
+
U,
|
|
629
629
|
{
|
|
630
630
|
color: "var(--primary-action-color)",
|
|
631
631
|
variant: "bold",
|
|
@@ -633,15 +633,15 @@ const vt = E.createContext({}), Hs = ({
|
|
|
633
633
|
}
|
|
634
634
|
)
|
|
635
635
|
] }),
|
|
636
|
-
b &&
|
|
637
|
-
p && g?.modified && g?.newValue === "" ? /* @__PURE__ */ s(
|
|
638
|
-
|
|
636
|
+
b && He(b) && /* @__PURE__ */ s(M, { num: 2 }),
|
|
637
|
+
p && g?.modified && g?.newValue === "" ? /* @__PURE__ */ s(ye, { label: p, children: /* @__PURE__ */ s(
|
|
638
|
+
X,
|
|
639
639
|
{
|
|
640
|
-
icon:
|
|
640
|
+
icon: Ie,
|
|
641
641
|
color: "var(--ui-alert1)",
|
|
642
642
|
size: 14
|
|
643
643
|
}
|
|
644
|
-
) }) : /* @__PURE__ */ s(
|
|
644
|
+
) }) : /* @__PURE__ */ s(kt, { crudStatus: b })
|
|
645
645
|
] }) })
|
|
646
646
|
}
|
|
647
647
|
),
|
|
@@ -649,48 +649,48 @@ const vt = E.createContext({}), Hs = ({
|
|
|
649
649
|
]
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
|
-
},
|
|
652
|
+
}, Et = B(""), Rt = B(
|
|
653
653
|
void 0
|
|
654
|
-
),
|
|
655
|
-
sortOrder:
|
|
656
|
-
selectedIds:
|
|
657
|
-
expandedRows:
|
|
658
|
-
fields:
|
|
659
|
-
}),
|
|
660
|
-
sortOrder:
|
|
661
|
-
selectedIds:
|
|
662
|
-
expandedRows:
|
|
654
|
+
), Mt = B(void 0), Gt = B(void 0), Zn = () => ({
|
|
655
|
+
sortOrder: fn(),
|
|
656
|
+
selectedIds: Je(),
|
|
657
|
+
expandedRows: Je(),
|
|
658
|
+
fields: mn()
|
|
659
|
+
}), _ = (e, t) => `${e}.${t}`, Wt = (e = void 0, t = !1, n = [], r = []) => ({
|
|
660
|
+
sortOrder: pn(e, t),
|
|
661
|
+
selectedIds: Ze(n),
|
|
662
|
+
expandedRows: Ze(r),
|
|
663
663
|
fields: { lastSelectedId: void 0 }
|
|
664
|
-
}),
|
|
665
|
-
const n =
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
), r =
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
), o =
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
), a =
|
|
675
|
-
|
|
676
|
-
|
|
664
|
+
}), er = (e, t) => {
|
|
665
|
+
const n = Se(
|
|
666
|
+
_(e, "sortOrder"),
|
|
667
|
+
gn(t?.sortOrder)
|
|
668
|
+
), r = Se(
|
|
669
|
+
_(e, "selectedIds"),
|
|
670
|
+
et(t?.selectedIds)
|
|
671
|
+
), o = Se(
|
|
672
|
+
_(e, "expandedRows"),
|
|
673
|
+
et(t?.expandedRows)
|
|
674
|
+
), a = Se(
|
|
675
|
+
_(e, "fields"),
|
|
676
|
+
wn(t?.fields ?? {})
|
|
677
677
|
);
|
|
678
|
-
return
|
|
678
|
+
return yn({
|
|
679
679
|
sortOrder: n,
|
|
680
680
|
selectedIds: r,
|
|
681
681
|
expandedRows: o,
|
|
682
682
|
fields: a
|
|
683
683
|
});
|
|
684
|
-
},
|
|
685
|
-
|
|
686
|
-
),
|
|
687
|
-
const e = O(), t =
|
|
684
|
+
}, _e = () => V(Et), O = () => V(Gt), ae = () => V(Rt), be = () => V(Mt), Ft = B([]), J = () => V(
|
|
685
|
+
Ft
|
|
686
|
+
), Bt = () => {
|
|
687
|
+
const e = O(), t = J();
|
|
688
688
|
let n = 0;
|
|
689
689
|
return e.enableExpandCollapse && n++, e.showRowCheckbox && n++, n + y(
|
|
690
690
|
() => t.map((r) => r.groupConfig.columnOrder.length).reduce((r, o) => r + o, 0),
|
|
691
691
|
[t]
|
|
692
692
|
);
|
|
693
|
-
},
|
|
693
|
+
}, Lt = B(void 0), tr = () => V(Lt), At = B(void 0), nr = () => V(At), rr = B(void 0), or = B(!1), sr = B("standard"), Ht = B({}), je = () => V(Ht), Nt = B(0), Ve = () => V(Nt), Yt = (e, t, n) => e ? Cn(
|
|
694
694
|
t?.map((r) => {
|
|
695
695
|
const o = e?.[r];
|
|
696
696
|
return {
|
|
@@ -708,26 +708,26 @@ const vt = E.createContext({}), Hs = ({
|
|
|
708
708
|
columnOrder: n ?? []
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
],
|
|
711
|
+
], Ke = (e, t, n) => {
|
|
712
712
|
if (e)
|
|
713
|
-
return e === !0 ?
|
|
713
|
+
return e === !0 ? ge : e;
|
|
714
714
|
if (!t && n)
|
|
715
|
-
return n === !0 ?
|
|
716
|
-
},
|
|
715
|
+
return n === !0 ? ge : n;
|
|
716
|
+
}, De = (e, t, n) => {
|
|
717
717
|
if (!(e === 0 || t !== 0) && n)
|
|
718
|
-
return n === !0 ?
|
|
719
|
-
},
|
|
718
|
+
return n === !0 ? ge : n;
|
|
719
|
+
}, ve = (e) => {
|
|
720
720
|
const { columns: t } = O(), n = t[e];
|
|
721
721
|
if (!n)
|
|
722
722
|
throw new Error("No config for column with id=" + e);
|
|
723
723
|
return n;
|
|
724
|
-
},
|
|
725
|
-
const e = O(), t =
|
|
724
|
+
}, ar = () => {
|
|
725
|
+
const e = O(), t = J()?.[0]?.groupConfig.columnOrder?.[0];
|
|
726
726
|
return t ? e.columns[t] : void 0;
|
|
727
|
-
},
|
|
728
|
-
const e = O(), t =
|
|
727
|
+
}, ir = () => {
|
|
728
|
+
const e = O(), t = J(), n = t[t.length - 1], r = n?.groupConfig.columnOrder[n.groupConfig.columnOrder.length - 1] ?? void 0;
|
|
729
729
|
return r ? e.columns[r] : void 0;
|
|
730
|
-
},
|
|
730
|
+
}, cr = function({
|
|
731
731
|
columnId: t,
|
|
732
732
|
groupConfig: n,
|
|
733
733
|
borderFromGroup: r,
|
|
@@ -735,7 +735,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
735
735
|
isFirstGroup: a,
|
|
736
736
|
isLastGroup: i
|
|
737
737
|
}) {
|
|
738
|
-
const { label: c, render: l, contentLeft: h, contentRight: d, loading: u, error: p } = n, { width: f, minWidth: w, zIndex: m, borderLeft: g } =
|
|
738
|
+
const { label: c, render: l, contentLeft: h, contentRight: d, loading: u, error: p } = n, { width: f, minWidth: w, zIndex: m, borderLeft: g } = ve(t), b = O(), { stickyHeader: k, headerRowOffsetTop: P } = b, v = "columnGroupOrder" in b ? b.stickyColumnGroups : void 0, R = lr(r, g), W = a && (v === "first" || v === "both"), L = i && (v === "last" || v === "both"), A = W || L || k, Y = W || L;
|
|
739
739
|
return /* @__PURE__ */ s(
|
|
740
740
|
"th",
|
|
741
741
|
{
|
|
@@ -759,45 +759,45 @@ const vt = E.createContext({}), Hs = ({
|
|
|
759
759
|
h,
|
|
760
760
|
/* @__PURE__ */ s(M, { num: 0.5 })
|
|
761
761
|
] }),
|
|
762
|
-
l ? l(n) : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(
|
|
762
|
+
l ? l(n) : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(bt, { variant: "h5", whiteSpace: "nowrap", children: c }) }),
|
|
763
763
|
d && /* @__PURE__ */ C(D, { children: [
|
|
764
764
|
/* @__PURE__ */ s(M, { num: 0.5 }),
|
|
765
765
|
d
|
|
766
766
|
] }),
|
|
767
767
|
(p || u) && /* @__PURE__ */ s(G, {}),
|
|
768
|
-
u ? /* @__PURE__ */ s(
|
|
769
|
-
|
|
768
|
+
u ? /* @__PURE__ */ s(Fe, {}) : p ? /* @__PURE__ */ s(ye, { label: p, placement: "bottom", children: /* @__PURE__ */ s(
|
|
769
|
+
X,
|
|
770
770
|
{
|
|
771
|
-
icon:
|
|
772
|
-
color:
|
|
771
|
+
icon: Ie,
|
|
772
|
+
color: j("--lhds-color-red-500"),
|
|
773
773
|
size: 14
|
|
774
774
|
}
|
|
775
775
|
) }) : void 0
|
|
776
776
|
] }) })
|
|
777
777
|
}
|
|
778
778
|
);
|
|
779
|
-
},
|
|
779
|
+
}, lr = (e, t) => {
|
|
780
780
|
if (e)
|
|
781
781
|
return e;
|
|
782
782
|
if (t)
|
|
783
783
|
return "1px solid transparent";
|
|
784
|
-
},
|
|
785
|
-
top: e ?
|
|
784
|
+
}, dr = (e, t, n, r) => ({
|
|
785
|
+
top: e ? ur(e, n) : void 0,
|
|
786
786
|
background: e || t ? "white" : void 0,
|
|
787
787
|
position: e || t ? "sticky" : void 0,
|
|
788
788
|
boxShadow: t ? "var(--swui-sticky-column-shadow-right)" : void 0,
|
|
789
789
|
zIndex: e || t ? r ?? "var(--swui-sticky-header-z-index)" : r
|
|
790
|
-
}),
|
|
790
|
+
}), ur = (e, t) => {
|
|
791
791
|
if (e && t)
|
|
792
792
|
return t;
|
|
793
793
|
if (t)
|
|
794
794
|
return t;
|
|
795
795
|
if (e)
|
|
796
796
|
return 0;
|
|
797
|
-
},
|
|
798
|
-
height: t =
|
|
797
|
+
}, hr = E.memo(function({
|
|
798
|
+
height: t = Ye
|
|
799
799
|
}) {
|
|
800
|
-
const n =
|
|
800
|
+
const n = J(), r = O(), {
|
|
801
801
|
showHeaderCheckbox: o,
|
|
802
802
|
enableExpandCollapse: a,
|
|
803
803
|
rowIndent: i,
|
|
@@ -805,7 +805,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
805
805
|
stickyHeader: l,
|
|
806
806
|
stickyCheckboxColumn: h,
|
|
807
807
|
headerRowOffsetTop: d
|
|
808
|
-
} = r, u =
|
|
808
|
+
} = r, u = dr(
|
|
809
809
|
l,
|
|
810
810
|
h,
|
|
811
811
|
d,
|
|
@@ -816,7 +816,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
816
816
|
{
|
|
817
817
|
style: {
|
|
818
818
|
height: t,
|
|
819
|
-
borderLeft:
|
|
819
|
+
borderLeft: Ne
|
|
820
820
|
},
|
|
821
821
|
children: [
|
|
822
822
|
i && /* @__PURE__ */ s("th", { style: u }),
|
|
@@ -842,14 +842,14 @@ const vt = E.createContext({}), Hs = ({
|
|
|
842
842
|
}
|
|
843
843
|
),
|
|
844
844
|
n.map(({ groupConfig: f, groupId: w }, m) => /* @__PURE__ */ s(
|
|
845
|
-
|
|
845
|
+
cr,
|
|
846
846
|
{
|
|
847
847
|
isFirstGroup: m === 0,
|
|
848
848
|
isLastGroup: m === n.length - 1,
|
|
849
849
|
groupConfig: f,
|
|
850
850
|
columnId: f.columnOrder[0],
|
|
851
851
|
colSpan: f.columnOrder.length,
|
|
852
|
-
borderFromGroup:
|
|
852
|
+
borderFromGroup: De(
|
|
853
853
|
m,
|
|
854
854
|
0,
|
|
855
855
|
f.borderLeft
|
|
@@ -862,8 +862,8 @@ const vt = E.createContext({}), Hs = ({
|
|
|
862
862
|
]
|
|
863
863
|
}
|
|
864
864
|
);
|
|
865
|
-
}),
|
|
866
|
-
const t =
|
|
865
|
+
}), mr = (e) => {
|
|
866
|
+
const t = Yt(
|
|
867
867
|
"columnGroups" in e ? e.columnGroups : void 0,
|
|
868
868
|
"columnGroupOrder" in e ? e.columnGroupOrder : void 0,
|
|
869
869
|
"columnOrder" in e ? e.columnOrder : void 0
|
|
@@ -871,23 +871,23 @@ const vt = E.createContext({}), Hs = ({
|
|
|
871
871
|
let r = 0;
|
|
872
872
|
return e.showRowCheckbox && r++, e.enableExpandCollapse && r++, t.forEach((o) => {
|
|
873
873
|
o.groupConfig.columnOrder.forEach((a) => {
|
|
874
|
-
|
|
874
|
+
fr(e.columns[a]) && (n[a] = r++);
|
|
875
875
|
});
|
|
876
876
|
}), {
|
|
877
877
|
columnIndexPerColumnId: n,
|
|
878
878
|
numNavigableColumns: r
|
|
879
879
|
};
|
|
880
|
-
},
|
|
880
|
+
}, fr = (e) => !e.disableGridCell, zt = B({
|
|
881
881
|
columnIndexPerColumnId: {},
|
|
882
882
|
numNavigableColumns: 0
|
|
883
|
-
}),
|
|
884
|
-
|
|
885
|
-
),
|
|
886
|
-
"columnGroupOrder" in e && (
|
|
883
|
+
}), qt = () => V(
|
|
884
|
+
zt
|
|
885
|
+
), pr = (e) => {
|
|
886
|
+
"columnGroupOrder" in e && (gr(e), (e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both") && rt(e, 0), (e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both") && rt(
|
|
887
887
|
e,
|
|
888
888
|
e.columnGroupOrder.length - 1
|
|
889
889
|
));
|
|
890
|
-
},
|
|
890
|
+
}, gr = (e) => {
|
|
891
891
|
Object.keys(e.columns).forEach((n) => {
|
|
892
892
|
const r = e.columns[n];
|
|
893
893
|
if ("sticky" in r && r.sticky)
|
|
@@ -895,7 +895,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
895
895
|
"Columns can not be sticky when column groups are used. columnId: " + n
|
|
896
896
|
);
|
|
897
897
|
});
|
|
898
|
-
},
|
|
898
|
+
}, rt = (e, t) => {
|
|
899
899
|
if (!e.columnGroupOrder || e.columnGroupOrder.length === 0)
|
|
900
900
|
throw new Error(
|
|
901
901
|
"columnGroupOrder required when validating column group fixed width."
|
|
@@ -911,13 +911,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
911
911
|
"All columns in sticky column group must have width set."
|
|
912
912
|
);
|
|
913
913
|
});
|
|
914
|
-
},
|
|
915
|
-
const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ?
|
|
916
|
-
|
|
914
|
+
}, wr = (e) => {
|
|
915
|
+
const t = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both" ? ot(
|
|
916
|
+
br(e),
|
|
917
917
|
e.columns,
|
|
918
918
|
!0
|
|
919
|
-
) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ?
|
|
920
|
-
|
|
919
|
+
) : void 0, n = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both" ? ot(
|
|
920
|
+
vr(e),
|
|
921
921
|
e.columns,
|
|
922
922
|
!1
|
|
923
923
|
) : void 0;
|
|
@@ -925,19 +925,19 @@ const vt = E.createContext({}), Hs = ({
|
|
|
925
925
|
...t,
|
|
926
926
|
...n
|
|
927
927
|
};
|
|
928
|
-
},
|
|
928
|
+
}, ot = (e, t, n) => {
|
|
929
929
|
const r = {}, o = [
|
|
930
930
|
n ? "var(--current-left-offset)" : "0px"
|
|
931
931
|
];
|
|
932
932
|
for (let a = 0; a < e.length; a++) {
|
|
933
933
|
const i = e[a], c = t?.[i];
|
|
934
|
-
r[i] =
|
|
934
|
+
r[i] = yr(o), o.push(c?.width ?? "0px");
|
|
935
935
|
}
|
|
936
936
|
return r;
|
|
937
|
-
},
|
|
937
|
+
}, yr = (e) => e.length === 0 ? "0px" : e.length === 1 ? e[0] : "calc(" + e.join(" + ") + ")", br = (e) => {
|
|
938
938
|
const t = e.columnGroupOrder?.[0];
|
|
939
939
|
return t ? e.columnGroups?.[t]?.columnOrder ?? [] : [];
|
|
940
|
-
},
|
|
940
|
+
}, vr = (e) => {
|
|
941
941
|
const t = e.columnGroupOrder?.[e.columnGroupOrder?.length - 1];
|
|
942
942
|
if (!t)
|
|
943
943
|
return [];
|
|
@@ -946,7 +946,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
946
946
|
return [];
|
|
947
947
|
const r = [...n.columnOrder];
|
|
948
948
|
return r.reverse(), r;
|
|
949
|
-
},
|
|
949
|
+
}, Cr = (e) => "columnGroups" in e ? kr(e) : xr(e), xr = (e) => Object.keys(e.columns).reduce((n, r) => {
|
|
950
950
|
const o = e.columns[r], a = !!o.sticky;
|
|
951
951
|
return n[r] = {
|
|
952
952
|
sticky: a,
|
|
@@ -956,8 +956,8 @@ const vt = E.createContext({}), Hs = ({
|
|
|
956
956
|
isFirstColumnInLastGroup: !1,
|
|
957
957
|
isLastColumnInFirstGroup: !1
|
|
958
958
|
}, n;
|
|
959
|
-
}, {}),
|
|
960
|
-
const t = {}, n = e.columnGroupOrder, r =
|
|
959
|
+
}, {}), kr = (e) => {
|
|
960
|
+
const t = {}, n = e.columnGroupOrder, r = wr(e), o = e.stickyColumnGroups === "first" || e.stickyColumnGroups === "both", a = e.stickyColumnGroups === "last" || e.stickyColumnGroups === "both";
|
|
961
961
|
return n.forEach((i, c) => {
|
|
962
962
|
const h = e.columnGroups[i].columnOrder;
|
|
963
963
|
h.forEach((d, u) => {
|
|
@@ -972,43 +972,43 @@ const vt = E.createContext({}), Hs = ({
|
|
|
972
972
|
};
|
|
973
973
|
});
|
|
974
974
|
}), t;
|
|
975
|
-
},
|
|
976
|
-
setSelectedIds: (n) =>
|
|
977
|
-
|
|
975
|
+
}, Sr = (e, t) => ({
|
|
976
|
+
setSelectedIds: (n) => oe(
|
|
977
|
+
_(e, "selectedIds"),
|
|
978
978
|
t.selectedIds.setSelectedIds(n)
|
|
979
979
|
),
|
|
980
|
-
clearSelection: () =>
|
|
981
|
-
|
|
980
|
+
clearSelection: () => oe(
|
|
981
|
+
_(e, "selectedIds"),
|
|
982
982
|
t.selectedIds.clearSelectedIds()
|
|
983
983
|
),
|
|
984
|
-
expandByIds: (n) =>
|
|
985
|
-
|
|
984
|
+
expandByIds: (n) => oe(
|
|
985
|
+
_(e, "expandedRows"),
|
|
986
986
|
t.expandedRows.setSelectedIds(n)
|
|
987
987
|
),
|
|
988
|
-
collapseAll: () =>
|
|
989
|
-
|
|
988
|
+
collapseAll: () => oe(
|
|
989
|
+
_(e, "expandedRows"),
|
|
990
990
|
t.expandedRows.clearSelectedIds()
|
|
991
991
|
),
|
|
992
|
-
sortBy: (n, r) =>
|
|
993
|
-
|
|
992
|
+
sortBy: (n, r) => oe(
|
|
993
|
+
_(e, "sortOrder"),
|
|
994
994
|
t.sortOrder.sortBy(n, r ?? !1)
|
|
995
995
|
),
|
|
996
|
-
clearSortOrder: () =>
|
|
997
|
-
|
|
996
|
+
clearSortOrder: () => oe(
|
|
997
|
+
_(e, "sortOrder"),
|
|
998
998
|
t.sortOrder.clearSortOrder()
|
|
999
999
|
),
|
|
1000
|
-
setLastSelectedId: (n) =>
|
|
1001
|
-
|
|
1000
|
+
setLastSelectedId: (n) => oe(
|
|
1001
|
+
_(e, "fields"),
|
|
1002
1002
|
t.fields.setEntityFields({ lastSelectedId: n })
|
|
1003
1003
|
)
|
|
1004
|
-
}),
|
|
1005
|
-
const [n, r] =
|
|
1006
|
-
|
|
1004
|
+
}), Pr = (e, t = Wt()) => {
|
|
1005
|
+
const [n, r] = tn(
|
|
1006
|
+
er(e),
|
|
1007
1007
|
t
|
|
1008
1008
|
), o = y(
|
|
1009
|
-
() =>
|
|
1009
|
+
() => Sr(
|
|
1010
1010
|
e,
|
|
1011
|
-
|
|
1011
|
+
Zn()
|
|
1012
1012
|
),
|
|
1013
1013
|
[e]
|
|
1014
1014
|
);
|
|
@@ -1022,11 +1022,11 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1022
1022
|
[n, o, r]
|
|
1023
1023
|
)
|
|
1024
1024
|
};
|
|
1025
|
-
},
|
|
1025
|
+
}, Or = (e) => (e.rowIndent ? 2 : 0) + (e.enableExpandCollapse ? 1 : 0) + (e.showRowCheckbox ? 1 : 0) + Ir(e), Ir = (e) => "columnGroupOrder" in e ? e.columnGroupOrder.reduce((t, n) => {
|
|
1026
1026
|
const r = e.columnGroups?.[n];
|
|
1027
1027
|
return t + (r?.columnOrder?.length ?? 0);
|
|
1028
|
-
}, 0) : e.columnOrder?.length ?? 0,
|
|
1029
|
-
const e = O(), t =
|
|
1028
|
+
}, 0) : e.columnOrder?.length ?? 0, Tr = () => {
|
|
1029
|
+
const e = O(), t = J(), n = e.enableExpandCollapse || e.showRowCheckbox, r = dn(e.rowIndent);
|
|
1030
1030
|
return /* @__PURE__ */ C(D, { children: [
|
|
1031
1031
|
r ? /* @__PURE__ */ s("colgroup", { children: /* @__PURE__ */ s(
|
|
1032
1032
|
"col",
|
|
@@ -1055,19 +1055,19 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1055
1055
|
}
|
|
1056
1056
|
) }) : null
|
|
1057
1057
|
] });
|
|
1058
|
-
},
|
|
1059
|
-
standardTable:
|
|
1060
|
-
relaxed:
|
|
1061
|
-
condensed:
|
|
1062
|
-
compact:
|
|
1063
|
-
},
|
|
1058
|
+
}, Dr = "_standardTable_d7cgg_1", Er = "_relaxed_d7cgg_39", Rr = "_condensed_d7cgg_43", Mr = "_compact_d7cgg_47", st = {
|
|
1059
|
+
standardTable: Dr,
|
|
1060
|
+
relaxed: Er,
|
|
1061
|
+
condensed: Rr,
|
|
1062
|
+
compact: Mr
|
|
1063
|
+
}, Gr = (e, t) => e != null && t == null ? -1 : e == null && t != null ? 1 : Ge(e, t, "number") ? Number(e) - Number(t) : Ge(e, t, "boolean") ? Number(t) - Number(e) : Ge(e, t, "string") ? String(e).localeCompare(String(t)) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : 0, Ge = (e, t, n) => typeof e === n && typeof t === n, Wr = (e) => {
|
|
1064
1064
|
const { columns: t } = O();
|
|
1065
1065
|
if (!e)
|
|
1066
1066
|
return;
|
|
1067
1067
|
const n = t[e];
|
|
1068
1068
|
if (n)
|
|
1069
1069
|
return n.itemValueResolver;
|
|
1070
|
-
},
|
|
1070
|
+
}, Fr = E.memo(
|
|
1071
1071
|
function({
|
|
1072
1072
|
value: t,
|
|
1073
1073
|
onValueChange: n,
|
|
@@ -1078,7 +1078,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1078
1078
|
onValueChangeAndShift: c,
|
|
1079
1079
|
shiftPressedRef: l
|
|
1080
1080
|
}) {
|
|
1081
|
-
const h =
|
|
1081
|
+
const h = Bt(), d = _e(), u = Te(!!t, {
|
|
1082
1082
|
colIndex: r,
|
|
1083
1083
|
numCols: h,
|
|
1084
1084
|
numRows: a,
|
|
@@ -1091,7 +1091,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1091
1091
|
[n, c, l]
|
|
1092
1092
|
);
|
|
1093
1093
|
return /* @__PURE__ */ s(
|
|
1094
|
-
|
|
1094
|
+
Ae,
|
|
1095
1095
|
{
|
|
1096
1096
|
size: "small",
|
|
1097
1097
|
disabled: i,
|
|
@@ -1101,7 +1101,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1101
1101
|
}
|
|
1102
1102
|
);
|
|
1103
1103
|
}
|
|
1104
|
-
),
|
|
1104
|
+
), Br = (e, t, n) => {
|
|
1105
1105
|
if (t == null || n == null || e == null || t === n)
|
|
1106
1106
|
return;
|
|
1107
1107
|
const r = e.indexOf(t), o = e.indexOf(n);
|
|
@@ -1109,22 +1109,22 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1109
1109
|
return;
|
|
1110
1110
|
const a = Math.min(r, o), i = Math.max(r, o);
|
|
1111
1111
|
return e.slice(a, i + 1);
|
|
1112
|
-
},
|
|
1112
|
+
}, Lr = (e, t) => {
|
|
1113
1113
|
const { keyResolver: n } = O(), {
|
|
1114
1114
|
selectedIds: { selectedIds: r },
|
|
1115
1115
|
fields: { lastSelectedId: o }
|
|
1116
|
-
} =
|
|
1116
|
+
} = ae(), {
|
|
1117
1117
|
actions: { setSelectedIds: a, setLastSelectedId: i },
|
|
1118
1118
|
dispatch: c
|
|
1119
|
-
} =
|
|
1119
|
+
} = be(), l = y(() => n(e), [n, e]), h = y(
|
|
1120
1120
|
() => r.includes(l),
|
|
1121
1121
|
[r, l]
|
|
1122
|
-
), { toggle: d, addMultiple: u, removeMultiple: p } =
|
|
1122
|
+
), { toggle: d, addMultiple: u, removeMultiple: p } = vt(
|
|
1123
1123
|
r,
|
|
1124
1124
|
(m) => c(a(m))
|
|
1125
1125
|
), f = S(() => {
|
|
1126
1126
|
if (t && o) {
|
|
1127
|
-
const m =
|
|
1127
|
+
const m = Br(
|
|
1128
1128
|
t,
|
|
1129
1129
|
o,
|
|
1130
1130
|
l
|
|
@@ -1151,16 +1151,16 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1151
1151
|
toggleSelected: w,
|
|
1152
1152
|
shiftAndToggleSelected: f
|
|
1153
1153
|
};
|
|
1154
|
-
},
|
|
1154
|
+
}, $e = (e) => {
|
|
1155
1155
|
const { keyResolver: t } = O(), {
|
|
1156
1156
|
expandedRows: { selectedIds: n }
|
|
1157
|
-
} =
|
|
1157
|
+
} = ae(), {
|
|
1158
1158
|
actions: { expandByIds: r },
|
|
1159
1159
|
dispatch: o
|
|
1160
|
-
} =
|
|
1160
|
+
} = be(), a = y(() => t(e), [t, e]), i = y(
|
|
1161
1161
|
() => n.includes(a),
|
|
1162
1162
|
[n, a]
|
|
1163
|
-
), { toggle: c } =
|
|
1163
|
+
), { toggle: c } = vt(
|
|
1164
1164
|
n,
|
|
1165
1165
|
(h) => o(r(h))
|
|
1166
1166
|
);
|
|
@@ -1170,40 +1170,40 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1170
1170
|
}, [c, a]),
|
|
1171
1171
|
isExpanded: i
|
|
1172
1172
|
};
|
|
1173
|
-
},
|
|
1173
|
+
}, Ar = function({
|
|
1174
1174
|
item: e,
|
|
1175
1175
|
colIndex: t,
|
|
1176
1176
|
numRows: n,
|
|
1177
1177
|
rowIndex: r
|
|
1178
1178
|
}) {
|
|
1179
|
-
const o =
|
|
1179
|
+
const o = Bt(), a = _e(), i = Te(!0, {
|
|
1180
1180
|
colIndex: t,
|
|
1181
1181
|
numCols: o,
|
|
1182
1182
|
numRows: n,
|
|
1183
1183
|
rowIndex: r,
|
|
1184
1184
|
tableId: a
|
|
1185
|
-
}), { requiredProps: c } = i, { expandCollapseDisableResolver: l } = O(), { toggleRowExpanded: h, isExpanded: d } =
|
|
1185
|
+
}), { requiredProps: c } = i, { expandCollapseDisableResolver: l } = O(), { toggleRowExpanded: h, isExpanded: d } = $e(e), u = y(() => l ? l(e) : !1, [l, e]);
|
|
1186
1186
|
return /* @__PURE__ */ s(I, { alignItems: "center", justifyContent: "center", indent: !0, children: !u && /* @__PURE__ */ s(
|
|
1187
|
-
|
|
1187
|
+
Be,
|
|
1188
1188
|
{
|
|
1189
1189
|
size: "small",
|
|
1190
|
-
leftIcon: d ?
|
|
1190
|
+
leftIcon: d ? wt : yt,
|
|
1191
1191
|
onClick: h,
|
|
1192
1192
|
...c
|
|
1193
1193
|
}
|
|
1194
1194
|
) });
|
|
1195
|
-
},
|
|
1196
|
-
() =>
|
|
1195
|
+
}, Hr = (e, t, n) => e ? e(t) : n, _t = (e, t, n) => y(
|
|
1196
|
+
() => Hr(e, t, n),
|
|
1197
1197
|
[e, t, n]
|
|
1198
|
-
),
|
|
1199
|
-
const { background: n, backgroundResolver: r } =
|
|
1200
|
-
return
|
|
1201
|
-
},
|
|
1198
|
+
), Nr = (e, t) => {
|
|
1199
|
+
const { background: n, backgroundResolver: r } = ve(e);
|
|
1200
|
+
return _t(r, t, n);
|
|
1201
|
+
}, at = (e, t) => {
|
|
1202
1202
|
const { background: n, backgroundResolver: r } = e ?? {};
|
|
1203
|
-
return
|
|
1204
|
-
},
|
|
1205
|
-
standardTableCell:
|
|
1206
|
-
},
|
|
1203
|
+
return _t(r, t, n);
|
|
1204
|
+
}, Yr = (e) => e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e), zr = (e) => xn(kn(e)), qr = "_standardTableCell_1xzcm_1", _r = {
|
|
1205
|
+
standardTableCell: qr
|
|
1206
|
+
}, jr = E.memo(
|
|
1207
1207
|
function({
|
|
1208
1208
|
enableGridCell: t,
|
|
1209
1209
|
children: n,
|
|
@@ -1228,7 +1228,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1228
1228
|
I,
|
|
1229
1229
|
{
|
|
1230
1230
|
border: "1px solid transparent",
|
|
1231
|
-
className:
|
|
1231
|
+
className: _r.standardTableCell,
|
|
1232
1232
|
width: "100%",
|
|
1233
1233
|
height: "100%",
|
|
1234
1234
|
justifyContent: i,
|
|
@@ -1243,13 +1243,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
1245
|
}
|
|
1246
|
-
),
|
|
1246
|
+
), Vr = E.memo(function({
|
|
1247
1247
|
label: t,
|
|
1248
1248
|
size: n,
|
|
1249
1249
|
color: r
|
|
1250
1250
|
}) {
|
|
1251
1251
|
return /* @__PURE__ */ s(G, { overflow: "hidden", children: /* @__PURE__ */ s(
|
|
1252
|
-
|
|
1252
|
+
U,
|
|
1253
1253
|
{
|
|
1254
1254
|
title: t,
|
|
1255
1255
|
size: n,
|
|
@@ -1260,10 +1260,10 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1260
1260
|
children: t
|
|
1261
1261
|
}
|
|
1262
1262
|
) });
|
|
1263
|
-
}),
|
|
1263
|
+
}), Kr = ({
|
|
1264
1264
|
label: e,
|
|
1265
1265
|
textSize: t
|
|
1266
|
-
}) => /* @__PURE__ */ s(
|
|
1266
|
+
}) => /* @__PURE__ */ s(Vr, { label: e, size: t }), $r = E.memo(function({
|
|
1267
1267
|
columnId: t,
|
|
1268
1268
|
item: n,
|
|
1269
1269
|
colIndex: r,
|
|
@@ -1276,7 +1276,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1276
1276
|
keyResolver: l,
|
|
1277
1277
|
enableGridCell: h,
|
|
1278
1278
|
gridCellOptions: d
|
|
1279
|
-
} = O(), u =
|
|
1279
|
+
} = O(), u = ae().selectedIds.selectedIds, p = _e(), f = tr(), { numNavigableColumns: w } = qt(), m = je(), g = y(() => l(n), [n, l]), b = y(() => u.indexOf(g) >= 0, [g, u]), { defaultCellRenderer: k = Kr, defaultTextSize: P } = O(), {
|
|
1280
1280
|
itemValueResolver: v,
|
|
1281
1281
|
itemLabelFormatter: R,
|
|
1282
1282
|
width: W,
|
|
@@ -1284,101 +1284,104 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1284
1284
|
justifyContentCell: A = "flex-start",
|
|
1285
1285
|
borderLeft: Y,
|
|
1286
1286
|
renderCell: z = k,
|
|
1287
|
-
gridCellOptions:
|
|
1287
|
+
gridCellOptions: $,
|
|
1288
1288
|
isEditable: q,
|
|
1289
1289
|
onChange: H,
|
|
1290
|
-
onKeyDown:
|
|
1291
|
-
disableGridCell:
|
|
1292
|
-
disableGridCellFocus:
|
|
1293
|
-
zIndex:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1290
|
+
onKeyDown: Z,
|
|
1291
|
+
disableGridCell: me,
|
|
1292
|
+
disableGridCellFocus: ee,
|
|
1293
|
+
zIndex: ie,
|
|
1294
|
+
height: te
|
|
1295
|
+
} = ve(t), ne = y(() => v ? v(n) : t in n ? n[t] : "", [v, n, t]), ce = y(
|
|
1296
|
+
() => R ? R(ne, n) : Yr(ne),
|
|
1297
|
+
[ne, R, n]
|
|
1298
|
+
), re = typeof q == "boolean" ? q : q ? q(n) : void 0, Ce = S(
|
|
1299
|
+
(ke) => {
|
|
1300
|
+
Z?.(ke, { columnId: t, item: n }), f?.(ke, { columnId: t, item: n });
|
|
1300
1301
|
},
|
|
1301
|
-
[f, t, n,
|
|
1302
|
-
),
|
|
1302
|
+
[f, t, n, Z]
|
|
1303
|
+
), xe = Te(ce, {
|
|
1303
1304
|
colIndex: r,
|
|
1304
1305
|
rowIndex: o,
|
|
1305
1306
|
numRows: a,
|
|
1306
1307
|
numCols: w,
|
|
1307
1308
|
tableId: p,
|
|
1308
|
-
isEditable:
|
|
1309
|
-
onChange: H ? (
|
|
1309
|
+
isEditable: re,
|
|
1310
|
+
onChange: H ? (ke) => H(n, ke) : void 0,
|
|
1310
1311
|
...d,
|
|
1311
|
-
|
|
1312
|
-
}), F = m[t],
|
|
1312
|
+
...$
|
|
1313
|
+
}), F = m[t], Ut = Nr(t, n) ?? "inherit", Re = F.sticky ? ie ?? "var(--swui-sticky-column-z-index)" : ie ?? 1, Qe = te ?? "var(--current-row-height)", Jt = y(
|
|
1313
1314
|
() => z({
|
|
1314
|
-
label:
|
|
1315
|
-
value:
|
|
1315
|
+
label: ce,
|
|
1316
|
+
value: ne,
|
|
1316
1317
|
item: n,
|
|
1317
|
-
gridCell:
|
|
1318
|
-
isEditable:
|
|
1318
|
+
gridCell: xe,
|
|
1319
|
+
isEditable: re,
|
|
1319
1320
|
isSelected: b,
|
|
1320
|
-
zIndex:
|
|
1321
|
+
zIndex: Re,
|
|
1321
1322
|
textSize: P,
|
|
1322
|
-
itemKey: g
|
|
1323
|
+
itemKey: g,
|
|
1324
|
+
height: Qe
|
|
1323
1325
|
}),
|
|
1324
1326
|
[
|
|
1325
1327
|
z,
|
|
1326
|
-
|
|
1327
|
-
_,
|
|
1328
|
-
n,
|
|
1328
|
+
ce,
|
|
1329
1329
|
ne,
|
|
1330
|
-
|
|
1330
|
+
n,
|
|
1331
|
+
xe,
|
|
1332
|
+
re,
|
|
1331
1333
|
b,
|
|
1332
|
-
|
|
1334
|
+
Re,
|
|
1333
1335
|
g,
|
|
1334
|
-
P
|
|
1336
|
+
P,
|
|
1337
|
+
Qe
|
|
1335
1338
|
]
|
|
1336
|
-
),
|
|
1339
|
+
), Zt = Ke(
|
|
1337
1340
|
i,
|
|
1338
1341
|
c,
|
|
1339
1342
|
Y
|
|
1340
|
-
),
|
|
1343
|
+
), en = 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;
|
|
1341
1344
|
return /* @__PURE__ */ s(
|
|
1342
1345
|
"td",
|
|
1343
1346
|
{
|
|
1344
1347
|
style: {
|
|
1345
|
-
borderLeft:
|
|
1348
|
+
borderLeft: Zt,
|
|
1346
1349
|
position: F.sticky ? "sticky" : void 0,
|
|
1347
1350
|
left: F.sticky ? F.left : void 0,
|
|
1348
1351
|
right: F.sticky ? F.right : void 0,
|
|
1349
|
-
boxShadow:
|
|
1350
|
-
zIndex:
|
|
1352
|
+
boxShadow: en,
|
|
1353
|
+
zIndex: Re,
|
|
1351
1354
|
height: "var(--current-row-height)",
|
|
1352
|
-
background:
|
|
1355
|
+
background: Ut
|
|
1353
1356
|
},
|
|
1354
1357
|
children: /* @__PURE__ */ s(
|
|
1355
|
-
|
|
1358
|
+
jr,
|
|
1356
1359
|
{
|
|
1357
|
-
enableGridCell: h && !
|
|
1358
|
-
gridCellRequiredProps:
|
|
1359
|
-
isEditing:
|
|
1360
|
+
enableGridCell: h && !me && !ee,
|
|
1361
|
+
gridCellRequiredProps: xe.requiredProps,
|
|
1362
|
+
isEditing: xe.isEditing,
|
|
1360
1363
|
width: W,
|
|
1361
1364
|
minWidth: L,
|
|
1362
1365
|
justifyContent: A,
|
|
1363
|
-
onKeyDown:
|
|
1364
|
-
children:
|
|
1366
|
+
onKeyDown: Ce,
|
|
1367
|
+
children: Jt
|
|
1365
1368
|
}
|
|
1366
1369
|
)
|
|
1367
1370
|
}
|
|
1368
1371
|
);
|
|
1369
|
-
}),
|
|
1370
|
-
const { renderRowExpansion: n, enableExpandCollapse: r } = O(), { isExpanded: o, toggleRowExpanded: a } =
|
|
1372
|
+
}), Qr = function({ item: t }) {
|
|
1373
|
+
const { renderRowExpansion: n, enableExpandCollapse: r } = O(), { isExpanded: o, toggleRowExpanded: a } = $e(t), i = Ve();
|
|
1371
1374
|
return /* @__PURE__ */ s(D, { children: r && n && o && /* @__PURE__ */ s(
|
|
1372
1375
|
"tr",
|
|
1373
1376
|
{
|
|
1374
1377
|
style: {
|
|
1375
|
-
borderLeft:
|
|
1376
|
-
background:
|
|
1378
|
+
borderLeft: Pt,
|
|
1379
|
+
background: St
|
|
1377
1380
|
},
|
|
1378
1381
|
children: /* @__PURE__ */ s("td", { colSpan: i, children: n(t, { onRequestCollapse: a }) })
|
|
1379
1382
|
}
|
|
1380
1383
|
) });
|
|
1381
|
-
},
|
|
1384
|
+
}, jt = Sn.tr`
|
|
1382
1385
|
${({ focusBackground: e }) => e ? `--focus-within-background: ${e};` : ""}
|
|
1383
1386
|
${({ borderLeft: e }) => e ? `border-left: ${e};` : ""};
|
|
1384
1387
|
${({ background: e }) => e ? `background: ${e};` : ""};
|
|
@@ -1387,7 +1390,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1387
1390
|
background: ${e};
|
|
1388
1391
|
}
|
|
1389
1392
|
` : ""}
|
|
1390
|
-
`,
|
|
1393
|
+
`, Xr = E.memo(function({
|
|
1391
1394
|
item: t,
|
|
1392
1395
|
idListForEnabledItems: n,
|
|
1393
1396
|
rowIndex: r,
|
|
@@ -1396,50 +1399,50 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1396
1399
|
alwaysVisible: i,
|
|
1397
1400
|
shiftPressedRef: c
|
|
1398
1401
|
}) {
|
|
1399
|
-
const l =
|
|
1402
|
+
const l = ue(null), h = Ve(), { stickyCheckboxColumn: d } = O(), u = J(), { columnIndexPerColumnId: p } = qt(), {
|
|
1400
1403
|
showRowCheckbox: f,
|
|
1401
1404
|
rowBackgroundResolver: w,
|
|
1402
1405
|
checkboxDisabledResolver: m,
|
|
1403
1406
|
enableGridCell: g,
|
|
1404
1407
|
rowIndent: b,
|
|
1405
1408
|
enableExpandCollapse: k
|
|
1406
|
-
} = O(), { isExpanded: P } =
|
|
1409
|
+
} = O(), { isExpanded: P } = $e(t), { isSelected: v, toggleSelected: R, shiftAndToggleSelected: W } = Lr(
|
|
1407
1410
|
t,
|
|
1408
1411
|
n
|
|
1409
|
-
), L =
|
|
1412
|
+
), L = un(l, {
|
|
1410
1413
|
rootMargin: "400px 0px 400px 0px",
|
|
1411
1414
|
threshold: 0
|
|
1412
1415
|
}), A = y(
|
|
1413
1416
|
() => w?.(t, v),
|
|
1414
1417
|
[v, t, w]
|
|
1415
|
-
), Y =
|
|
1418
|
+
), Y = Ur(
|
|
1416
1419
|
A,
|
|
1417
1420
|
v,
|
|
1418
1421
|
P
|
|
1419
|
-
), z =
|
|
1422
|
+
), z = Jr(
|
|
1420
1423
|
A,
|
|
1421
1424
|
v,
|
|
1422
1425
|
P
|
|
1423
|
-
),
|
|
1426
|
+
), $ = Zr(
|
|
1424
1427
|
A,
|
|
1425
1428
|
v,
|
|
1426
1429
|
z
|
|
1427
1430
|
), q = y(
|
|
1428
1431
|
() => m?.(t),
|
|
1429
1432
|
[t, m]
|
|
1430
|
-
), H =
|
|
1433
|
+
), H = ar(), Z = at(
|
|
1431
1434
|
H,
|
|
1432
1435
|
t
|
|
1433
|
-
),
|
|
1434
|
-
|
|
1436
|
+
), me = ir(), ee = at(
|
|
1437
|
+
me,
|
|
1435
1438
|
t
|
|
1436
|
-
),
|
|
1439
|
+
), ie = y(
|
|
1437
1440
|
() => /* @__PURE__ */ s(D, { children: /* @__PURE__ */ C(D, { children: [
|
|
1438
1441
|
b && /* @__PURE__ */ s(
|
|
1439
1442
|
"td",
|
|
1440
1443
|
{
|
|
1441
1444
|
style: {
|
|
1442
|
-
background:
|
|
1445
|
+
background: Z
|
|
1443
1446
|
},
|
|
1444
1447
|
children: /* @__PURE__ */ s(G, { num: b })
|
|
1445
1448
|
}
|
|
@@ -1462,7 +1465,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1462
1465
|
alignItems: "center",
|
|
1463
1466
|
justifyContent: "center",
|
|
1464
1467
|
children: /* @__PURE__ */ s(
|
|
1465
|
-
|
|
1468
|
+
Ar,
|
|
1466
1469
|
{
|
|
1467
1470
|
colIndex: a,
|
|
1468
1471
|
rowIndex: g ? r : 0,
|
|
@@ -1493,7 +1496,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1493
1496
|
alignItems: "center",
|
|
1494
1497
|
justifyContent: "center",
|
|
1495
1498
|
children: /* @__PURE__ */ s(
|
|
1496
|
-
|
|
1499
|
+
Fr,
|
|
1497
1500
|
{
|
|
1498
1501
|
disabled: q,
|
|
1499
1502
|
value: v,
|
|
@@ -1509,28 +1512,28 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1509
1512
|
)
|
|
1510
1513
|
}
|
|
1511
1514
|
),
|
|
1512
|
-
u.map(({ groupConfig:
|
|
1513
|
-
|
|
1515
|
+
u.map(({ groupConfig: te, groupId: ne }, ce) => /* @__PURE__ */ s(E.Fragment, { children: te.columnOrder.map((re, Ce) => /* @__PURE__ */ s(
|
|
1516
|
+
$r,
|
|
1514
1517
|
{
|
|
1515
|
-
columnId:
|
|
1518
|
+
columnId: re,
|
|
1516
1519
|
item: t,
|
|
1517
|
-
colIndex: a + p[
|
|
1520
|
+
colIndex: a + p[re],
|
|
1518
1521
|
rowIndex: r,
|
|
1519
1522
|
numRows: o,
|
|
1520
|
-
borderFromGroup:
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1523
|
+
borderFromGroup: De(
|
|
1524
|
+
ce,
|
|
1525
|
+
Ce,
|
|
1526
|
+
te.borderLeft
|
|
1524
1527
|
),
|
|
1525
|
-
disableBorderLeft:
|
|
1528
|
+
disableBorderLeft: ce === 0 && Ce === 0
|
|
1526
1529
|
},
|
|
1527
|
-
|
|
1528
|
-
)) },
|
|
1530
|
+
re
|
|
1531
|
+
)) }, ne)),
|
|
1529
1532
|
b && /* @__PURE__ */ s(
|
|
1530
1533
|
"td",
|
|
1531
1534
|
{
|
|
1532
1535
|
style: {
|
|
1533
|
-
background:
|
|
1536
|
+
background: ee
|
|
1534
1537
|
},
|
|
1535
1538
|
children: /* @__PURE__ */ s(G, { num: b })
|
|
1536
1539
|
}
|
|
@@ -1543,11 +1546,11 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1543
1546
|
q,
|
|
1544
1547
|
k,
|
|
1545
1548
|
g,
|
|
1546
|
-
|
|
1549
|
+
Z,
|
|
1547
1550
|
u,
|
|
1548
1551
|
v,
|
|
1549
1552
|
t,
|
|
1550
|
-
|
|
1553
|
+
ee,
|
|
1551
1554
|
o,
|
|
1552
1555
|
b,
|
|
1553
1556
|
r,
|
|
@@ -1560,14 +1563,14 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1560
1563
|
);
|
|
1561
1564
|
return /* @__PURE__ */ C(D, { children: [
|
|
1562
1565
|
/* @__PURE__ */ s(
|
|
1563
|
-
|
|
1566
|
+
jt,
|
|
1564
1567
|
{
|
|
1565
1568
|
hoverBackground: z,
|
|
1566
1569
|
background: Y,
|
|
1567
|
-
focusBackground:
|
|
1568
|
-
borderLeft: P ?
|
|
1570
|
+
focusBackground: $,
|
|
1571
|
+
borderLeft: P ? Pt : Ne,
|
|
1569
1572
|
ref: l,
|
|
1570
|
-
children: L || i || P ?
|
|
1573
|
+
children: L || i || P ? ie : /* @__PURE__ */ s(
|
|
1571
1574
|
"td",
|
|
1572
1575
|
{
|
|
1573
1576
|
colSpan: h,
|
|
@@ -1576,23 +1579,23 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1576
1579
|
)
|
|
1577
1580
|
}
|
|
1578
1581
|
),
|
|
1579
|
-
/* @__PURE__ */ s(
|
|
1582
|
+
/* @__PURE__ */ s(Qr, { item: t })
|
|
1580
1583
|
] });
|
|
1581
|
-
}),
|
|
1584
|
+
}), Ur = (e, t, n) => e ? typeof e == "string" ? e : e?.background : t ? j("--lhds-color-blue-100") : n ? St : "white", Jr = (e, t, n) => e ? typeof e == "string" ? e : e?.hoverBackground : t ? j("--lhds-color-blue-200") : n ? Dn : j("--lhds-color-ui-200"), Zr = (e, t, n) => {
|
|
1582
1585
|
if (t)
|
|
1583
|
-
return
|
|
1586
|
+
return j("--lhds-color-blue-200");
|
|
1584
1587
|
if (e)
|
|
1585
1588
|
return n;
|
|
1586
|
-
},
|
|
1587
|
-
summaryRow:
|
|
1588
|
-
},
|
|
1589
|
+
}, eo = (e) => Object.values(e).some((t) => to(t)), to = (e) => !!(e.renderSummaryCell || e.summaryText), no = "_summaryRow_12x8k_1", ro = {
|
|
1590
|
+
summaryRow: no
|
|
1591
|
+
}, oo = E.memo(function({
|
|
1589
1592
|
columnId: t,
|
|
1590
1593
|
items: n,
|
|
1591
1594
|
disableBorderLeft: r,
|
|
1592
1595
|
borderFromGroup: o,
|
|
1593
1596
|
colSpan: a
|
|
1594
1597
|
}) {
|
|
1595
|
-
const i =
|
|
1598
|
+
const i = je(), {
|
|
1596
1599
|
renderSummaryCell: c,
|
|
1597
1600
|
summaryText: l,
|
|
1598
1601
|
borderLeft: h,
|
|
@@ -1600,7 +1603,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1600
1603
|
width: u,
|
|
1601
1604
|
minWidth: p,
|
|
1602
1605
|
justifyContentCell: f
|
|
1603
|
-
} =
|
|
1606
|
+
} = ve(t), w = Ke(
|
|
1604
1607
|
o,
|
|
1605
1608
|
r,
|
|
1606
1609
|
h
|
|
@@ -1630,12 +1633,12 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1630
1633
|
overflow: "hidden",
|
|
1631
1634
|
justifyContent: f,
|
|
1632
1635
|
alignItems: "center",
|
|
1633
|
-
children: c ? P : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(
|
|
1636
|
+
children: c ? P : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(U, { variant: "bold", children: k }) })
|
|
1634
1637
|
}
|
|
1635
1638
|
)
|
|
1636
1639
|
}
|
|
1637
1640
|
);
|
|
1638
|
-
}),
|
|
1641
|
+
}), so = (e, t) => {
|
|
1639
1642
|
const n = [];
|
|
1640
1643
|
for (let r = 0; r < e.length; r++) {
|
|
1641
1644
|
const { summaryCellColSpan: o } = t[e[r]], a = Math.min(
|
|
@@ -1647,23 +1650,23 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1647
1650
|
i > 1 && (r += i - 1);
|
|
1648
1651
|
}
|
|
1649
1652
|
return n;
|
|
1650
|
-
},
|
|
1653
|
+
}, ao = E.memo(
|
|
1651
1654
|
function({
|
|
1652
1655
|
items: t
|
|
1653
1656
|
}) {
|
|
1654
|
-
const n =
|
|
1655
|
-
return /* @__PURE__ */ C("tr", { className:
|
|
1657
|
+
const n = J(), { showRowCheckbox: r, enableExpandCollapse: o, columns: a, rowIndent: i } = O();
|
|
1658
|
+
return /* @__PURE__ */ C("tr", { className: ro.summaryRow, children: [
|
|
1656
1659
|
i && /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(G, { num: i }) }),
|
|
1657
1660
|
o && /* @__PURE__ */ s("td", {}),
|
|
1658
1661
|
r && /* @__PURE__ */ s("td", {}),
|
|
1659
|
-
n.map(({ groupConfig: c, groupId: l }, h) => /* @__PURE__ */ s(E.Fragment, { children:
|
|
1662
|
+
n.map(({ groupConfig: c, groupId: l }, h) => /* @__PURE__ */ s(E.Fragment, { children: so(c.columnOrder, a).map(
|
|
1660
1663
|
({ columnId: d, colSpan: u }, p) => /* @__PURE__ */ s(
|
|
1661
|
-
|
|
1664
|
+
oo,
|
|
1662
1665
|
{
|
|
1663
1666
|
colSpan: u,
|
|
1664
1667
|
columnId: d,
|
|
1665
1668
|
items: t,
|
|
1666
|
-
borderFromGroup:
|
|
1669
|
+
borderFromGroup: De(
|
|
1667
1670
|
h,
|
|
1668
1671
|
p,
|
|
1669
1672
|
c.borderLeft
|
|
@@ -1677,22 +1680,22 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1677
1680
|
/* @__PURE__ */ s("td", {})
|
|
1678
1681
|
] });
|
|
1679
1682
|
}
|
|
1680
|
-
),
|
|
1683
|
+
), io = function({ items: t }) {
|
|
1681
1684
|
const { columns: n } = O();
|
|
1682
|
-
return y(() =>
|
|
1683
|
-
},
|
|
1685
|
+
return y(() => eo(n), [n]) ? /* @__PURE__ */ s(ao, { items: t }) : null;
|
|
1686
|
+
}, Vt = (e) => (t) => e == null ? !0 : !e(t), co = E.memo(function({
|
|
1684
1687
|
items: t,
|
|
1685
1688
|
colIndexOffset: n = 0,
|
|
1686
1689
|
rowIndexOffset: r = 0
|
|
1687
1690
|
}) {
|
|
1688
|
-
const o =
|
|
1691
|
+
const o = ue(0), a = ue(!1), {
|
|
1689
1692
|
keyResolver: i,
|
|
1690
1693
|
disableInfiniteList: c,
|
|
1691
1694
|
checkboxDisabledResolver: l,
|
|
1692
1695
|
enableExternalSorting: h
|
|
1693
1696
|
} = O(), {
|
|
1694
1697
|
sortOrder: { sortBy: d, desc: u }
|
|
1695
|
-
} =
|
|
1698
|
+
} = ae(), p = Wr(d), f = y(() => {
|
|
1696
1699
|
if (h)
|
|
1697
1700
|
return t ?? [];
|
|
1698
1701
|
if (!t || !t.length)
|
|
@@ -1701,16 +1704,16 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1701
1704
|
return t;
|
|
1702
1705
|
const m = [...t];
|
|
1703
1706
|
return m.sort(
|
|
1704
|
-
(g, b) =>
|
|
1707
|
+
(g, b) => Gr(
|
|
1705
1708
|
p(g),
|
|
1706
1709
|
p(b)
|
|
1707
1710
|
)
|
|
1708
1711
|
), u && m.reverse(), c || o.current++, m;
|
|
1709
1712
|
}, [h, t, p, u, c]), w = y(
|
|
1710
|
-
() => f.filter(
|
|
1713
|
+
() => f.filter(Vt(l)).map((m) => i(m)),
|
|
1711
1714
|
[f, l, i]
|
|
1712
1715
|
);
|
|
1713
|
-
return
|
|
1716
|
+
return pt(() => {
|
|
1714
1717
|
const m = (b) => {
|
|
1715
1718
|
b.key === "Shift" && (a.current = !1);
|
|
1716
1719
|
}, g = (b) => {
|
|
@@ -1721,7 +1724,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1721
1724
|
};
|
|
1722
1725
|
}, []), /* @__PURE__ */ C(E.Fragment, { children: [
|
|
1723
1726
|
f.map((m, g) => /* @__PURE__ */ s(
|
|
1724
|
-
|
|
1727
|
+
Xr,
|
|
1725
1728
|
{
|
|
1726
1729
|
alwaysVisible: c || f.length < 30,
|
|
1727
1730
|
item: m,
|
|
@@ -1733,9 +1736,9 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1733
1736
|
},
|
|
1734
1737
|
i(m)
|
|
1735
1738
|
)),
|
|
1736
|
-
/* @__PURE__ */ s(
|
|
1739
|
+
/* @__PURE__ */ s(io, { items: f })
|
|
1737
1740
|
] }, o.current);
|
|
1738
|
-
}),
|
|
1741
|
+
}), lo = E.memo(function({
|
|
1739
1742
|
error: t,
|
|
1740
1743
|
bannerError: n,
|
|
1741
1744
|
loading: r,
|
|
@@ -1751,15 +1754,15 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1751
1754
|
renderExtraRowTop: f,
|
|
1752
1755
|
renderExtraRowBottom: w
|
|
1753
1756
|
}) {
|
|
1754
|
-
const m =
|
|
1755
|
-
return n ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(
|
|
1756
|
-
|
|
1757
|
+
const m = Ve();
|
|
1758
|
+
return n ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ s(he, { alignItems: "center", children: /* @__PURE__ */ s(cn, { bannerState: n, variant: "error" }) }) }) }) }) }) : t || p ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, justifyContent: "center", children: /* @__PURE__ */ s(he, { alignItems: "center", children: /* @__PURE__ */ s(
|
|
1759
|
+
Xe,
|
|
1757
1760
|
{
|
|
1758
1761
|
headerText: (t ? t.message : p) ?? "Unknown error",
|
|
1759
1762
|
variant: "error"
|
|
1760
1763
|
}
|
|
1761
|
-
) }) }) }) }) }) : r ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(
|
|
1762
|
-
|
|
1764
|
+
) }) }) }) }) }) : r ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(Me, { num: 4, children: /* @__PURE__ */ s(bn, {}) }) }) }) }) : !o || !o.length ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: m, children: /* @__PURE__ */ s(I, { spacing: 4, justifyContent: "center", children: /* @__PURE__ */ s(
|
|
1765
|
+
Xe,
|
|
1763
1766
|
{
|
|
1764
1767
|
text: a,
|
|
1765
1768
|
headerText: l,
|
|
@@ -1770,7 +1773,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1770
1773
|
) }) }) }) }) : /* @__PURE__ */ C("tbody", { children: [
|
|
1771
1774
|
f?.(),
|
|
1772
1775
|
/* @__PURE__ */ s(
|
|
1773
|
-
|
|
1776
|
+
co,
|
|
1774
1777
|
{
|
|
1775
1778
|
variant: u,
|
|
1776
1779
|
items: o,
|
|
@@ -1780,16 +1783,16 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1780
1783
|
),
|
|
1781
1784
|
w?.()
|
|
1782
1785
|
] });
|
|
1783
|
-
}),
|
|
1786
|
+
}), uo = (e) => {
|
|
1784
1787
|
const { keyResolver: t, checkboxDisabledResolver: n } = O(), {
|
|
1785
1788
|
selectedIds: { selectedIds: r }
|
|
1786
|
-
} =
|
|
1789
|
+
} = ae(), {
|
|
1787
1790
|
actions: { setSelectedIds: o, clearSelection: a },
|
|
1788
1791
|
dispatch: i
|
|
1789
|
-
} =
|
|
1792
|
+
} = be(), c = r.length === 0, l = e ? e.length > 0 && r.length === e.length : !1, h = S(() => {
|
|
1790
1793
|
e && i(
|
|
1791
1794
|
c ? o(
|
|
1792
|
-
e.filter(
|
|
1795
|
+
e.filter(Vt(n)).map((d) => t(d))
|
|
1793
1796
|
) : a()
|
|
1794
1797
|
);
|
|
1795
1798
|
}, [
|
|
@@ -1806,13 +1809,13 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1806
1809
|
allItemsAreSelected: l,
|
|
1807
1810
|
onClickCheckbox: h
|
|
1808
1811
|
};
|
|
1809
|
-
},
|
|
1812
|
+
}, ho = (e) => {
|
|
1810
1813
|
const { keyResolver: t } = O(), {
|
|
1811
1814
|
expandedRows: { selectedIds: n }
|
|
1812
|
-
} =
|
|
1815
|
+
} = ae(), {
|
|
1813
1816
|
actions: { collapseAll: r, expandByIds: o },
|
|
1814
1817
|
dispatch: a
|
|
1815
|
-
} =
|
|
1818
|
+
} = be(), i = e ? e.length > 0 && n.length === e.length : !1, c = S(() => {
|
|
1816
1819
|
e && a(i ? r() : o(e.map((l) => t(l))));
|
|
1817
1820
|
}, [
|
|
1818
1821
|
i,
|
|
@@ -1826,10 +1829,10 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1826
1829
|
allItemsAreExpanded: i,
|
|
1827
1830
|
toggleExpanded: c
|
|
1828
1831
|
};
|
|
1829
|
-
},
|
|
1830
|
-
const { dispatch: t, actions: n } =
|
|
1832
|
+
}, mo = (e) => {
|
|
1833
|
+
const { dispatch: t, actions: n } = be(), r = nr(), {
|
|
1831
1834
|
sortOrder: { desc: o, sortBy: a }
|
|
1832
|
-
} =
|
|
1835
|
+
} = ae();
|
|
1833
1836
|
return y(() => {
|
|
1834
1837
|
const i = e === a;
|
|
1835
1838
|
return {
|
|
@@ -1842,9 +1845,9 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1842
1845
|
}
|
|
1843
1846
|
};
|
|
1844
1847
|
}, [e, a, o, t, n, r]);
|
|
1845
|
-
},
|
|
1846
|
-
standardTableHeadTh:
|
|
1847
|
-
},
|
|
1848
|
+
}, fo = "_standardTableHeadTh_swsxb_8", po = {
|
|
1849
|
+
standardTableHeadTh: fo
|
|
1850
|
+
}, go = E.memo(
|
|
1848
1851
|
function({
|
|
1849
1852
|
columnId: t,
|
|
1850
1853
|
borderFromGroup: n,
|
|
@@ -1858,7 +1861,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1858
1861
|
background: l,
|
|
1859
1862
|
width: h,
|
|
1860
1863
|
minWidth: d
|
|
1861
|
-
} =
|
|
1864
|
+
} = ve(t), { disableSorting: u, infoIconTooltipAppendTo: p, infoIconTooltipZIndex: f } = O(), w = je(), { arrow: m, selected: g, onClickColumnHead: b } = mo(t), k = typeof a == "string" ? a : zr(t), P = Ke(
|
|
1862
1865
|
n,
|
|
1863
1866
|
r,
|
|
1864
1867
|
i
|
|
@@ -1866,7 +1869,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1866
1869
|
return /* @__PURE__ */ s(
|
|
1867
1870
|
"th",
|
|
1868
1871
|
{
|
|
1869
|
-
className:
|
|
1872
|
+
className: po.standardTableHeadTh,
|
|
1870
1873
|
style: {
|
|
1871
1874
|
background: l ?? "white",
|
|
1872
1875
|
borderLeft: P,
|
|
@@ -1879,7 +1882,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1879
1882
|
minWidth: d
|
|
1880
1883
|
},
|
|
1881
1884
|
children: /* @__PURE__ */ s(
|
|
1882
|
-
|
|
1885
|
+
qe,
|
|
1883
1886
|
{
|
|
1884
1887
|
width: "inherit",
|
|
1885
1888
|
minWidth: "inherit",
|
|
@@ -1897,21 +1900,21 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1897
1900
|
}
|
|
1898
1901
|
);
|
|
1899
1902
|
}
|
|
1900
|
-
),
|
|
1901
|
-
const r =
|
|
1903
|
+
), wo = E.memo(function({ items: t, height: n = Ye }) {
|
|
1904
|
+
const r = J(), {
|
|
1902
1905
|
showHeaderCheckbox: o,
|
|
1903
1906
|
showHeaderExpandCollapse: a,
|
|
1904
1907
|
enableExpandCollapse: i,
|
|
1905
1908
|
rowIndent: c,
|
|
1906
1909
|
stickyCheckboxColumn: l,
|
|
1907
1910
|
showRowCheckbox: h
|
|
1908
|
-
} = O(), { allItemsAreExpanded: d, toggleExpanded: u } =
|
|
1911
|
+
} = O(), { allItemsAreExpanded: d, toggleExpanded: u } = ho(t), { allItemsAreSelected: p, onClickCheckbox: f, selectionIsEmpty: w } = uo(t), m = !t || t.length === 0, g = {
|
|
1909
1912
|
zIndex: l ? "var(--swui-sticky-group-header-z-index)" : void 0,
|
|
1910
1913
|
background: l ? "white" : void 0,
|
|
1911
1914
|
position: l ? "sticky" : void 0,
|
|
1912
1915
|
boxShadow: l ? "var(--swui-sticky-column-shadow-right)" : void 0
|
|
1913
1916
|
};
|
|
1914
|
-
return /* @__PURE__ */ C(
|
|
1917
|
+
return /* @__PURE__ */ C(jt, { height: n, borderLeft: Ne, children: [
|
|
1915
1918
|
c && /* @__PURE__ */ s("th", { children: /* @__PURE__ */ s(I, { indent: c }) }),
|
|
1916
1919
|
i && /* @__PURE__ */ s(
|
|
1917
1920
|
"th",
|
|
@@ -1929,10 +1932,10 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1929
1932
|
alignItems: "center",
|
|
1930
1933
|
justifyContent: "center",
|
|
1931
1934
|
children: a && /* @__PURE__ */ s(
|
|
1932
|
-
|
|
1935
|
+
Be,
|
|
1933
1936
|
{
|
|
1934
1937
|
size: "small",
|
|
1935
|
-
leftIcon: d ?
|
|
1938
|
+
leftIcon: d ? wt : yt,
|
|
1936
1939
|
onClick: u
|
|
1937
1940
|
}
|
|
1938
1941
|
)
|
|
@@ -1956,7 +1959,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1956
1959
|
alignItems: "center",
|
|
1957
1960
|
justifyContent: "center",
|
|
1958
1961
|
children: o && /* @__PURE__ */ s(
|
|
1959
|
-
|
|
1962
|
+
Ae,
|
|
1960
1963
|
{
|
|
1961
1964
|
size: "small",
|
|
1962
1965
|
disabled: m,
|
|
@@ -1970,10 +1973,10 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1970
1973
|
}
|
|
1971
1974
|
),
|
|
1972
1975
|
r.map(({ groupConfig: b, groupId: k }, P) => /* @__PURE__ */ s(E.Fragment, { children: b.columnOrder.map((v, R) => /* @__PURE__ */ s(
|
|
1973
|
-
|
|
1976
|
+
go,
|
|
1974
1977
|
{
|
|
1975
1978
|
columnId: v,
|
|
1976
|
-
borderFromGroup:
|
|
1979
|
+
borderFromGroup: De(
|
|
1977
1980
|
P,
|
|
1978
1981
|
R,
|
|
1979
1982
|
b.borderLeft
|
|
@@ -1985,7 +1988,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1985
1988
|
c && /* @__PURE__ */ s("th", { children: /* @__PURE__ */ s(I, { indent: c }) }),
|
|
1986
1989
|
/* @__PURE__ */ s("th", {})
|
|
1987
1990
|
] });
|
|
1988
|
-
}),
|
|
1991
|
+
}), $s = function({
|
|
1989
1992
|
tableContext: t,
|
|
1990
1993
|
config: n,
|
|
1991
1994
|
columnGroupOrder: r,
|
|
@@ -1996,7 +1999,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
1996
1999
|
renderExtraHeadRows: l,
|
|
1997
2000
|
...h
|
|
1998
2001
|
}) {
|
|
1999
|
-
const d =
|
|
2002
|
+
const d = nn(), {
|
|
2000
2003
|
initialSortOrderDesc: u,
|
|
2001
2004
|
initialSortOrder: p,
|
|
2002
2005
|
enableExpandCollapse: f,
|
|
@@ -2004,87 +2007,87 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2004
2007
|
headerRowOffsetTop: m,
|
|
2005
2008
|
stickyHeader: g,
|
|
2006
2009
|
zIndex: b
|
|
2007
|
-
} = n, { tableContext: k } =
|
|
2010
|
+
} = n, { tableContext: k } = Pr(
|
|
2008
2011
|
o ?? d,
|
|
2009
|
-
|
|
2012
|
+
Wt(p, u)
|
|
2010
2013
|
), P = t || k, { state: v, actions: R, dispatch: W } = P, L = y(
|
|
2011
2014
|
() => ({
|
|
2012
2015
|
actions: R,
|
|
2013
2016
|
dispatch: W
|
|
2014
2017
|
}),
|
|
2015
2018
|
[R, W]
|
|
2016
|
-
), A = !!(r ?? "columnGroupOrder" in n), Y = "columnGroups" in n ? n.columnGroups : void 0, z = "columnGroupOrder" in n ? n.columnGroupOrder : void 0,
|
|
2017
|
-
() =>
|
|
2019
|
+
), A = !!(r ?? "columnGroupOrder" in n), Y = "columnGroups" in n ? n.columnGroups : void 0, z = "columnGroupOrder" in n ? n.columnGroupOrder : void 0, $ = "columnOrder" in n ? n.columnOrder : void 0, q = y(
|
|
2020
|
+
() => Yt(
|
|
2018
2021
|
Y,
|
|
2019
2022
|
z,
|
|
2020
|
-
|
|
2023
|
+
$
|
|
2021
2024
|
),
|
|
2022
|
-
[Y, z,
|
|
2025
|
+
[Y, z, $]
|
|
2023
2026
|
), H = y(
|
|
2024
|
-
() =>
|
|
2027
|
+
() => mr(n),
|
|
2025
2028
|
[n]
|
|
2026
|
-
),
|
|
2027
|
-
() =>
|
|
2029
|
+
), Z = y(() => Or(n), [n]), me = y(
|
|
2030
|
+
() => Cr(n),
|
|
2028
2031
|
[n]
|
|
2029
|
-
),
|
|
2032
|
+
), ee = y(() => {
|
|
2030
2033
|
try {
|
|
2031
|
-
|
|
2034
|
+
pr(n);
|
|
2032
2035
|
return;
|
|
2033
|
-
} catch (
|
|
2034
|
-
return
|
|
2036
|
+
} catch (te) {
|
|
2037
|
+
return te instanceof Error ? te : new Error("Unknown error");
|
|
2035
2038
|
}
|
|
2036
|
-
}, [n]),
|
|
2039
|
+
}, [n]), ie = {
|
|
2037
2040
|
background: g || w ? "white" : void 0,
|
|
2038
2041
|
position: g || w ? "sticky" : void 0,
|
|
2039
2042
|
top: g || w ? m ?? 0 : void 0,
|
|
2040
2043
|
boxShadow: g && w ? "var(--swui-sticky-header-shadow-and-right)" : w ? "var(--swui-sticky-column-shadow-right)" : g ? "var(--swui-sticky-header-shadow)" : void 0,
|
|
2041
2044
|
zIndex: g && w ? "var(--swui-sticky-header-in-sticky-column-z-index)" : w ? "var(--swui-sticky-group-header-z-index)" : g ? "var(--swui-sticky-head-z-index)" : b
|
|
2042
2045
|
};
|
|
2043
|
-
return
|
|
2046
|
+
return ee ? /* @__PURE__ */ s(vn, { text: ee.message }) : /* @__PURE__ */ s(
|
|
2044
2047
|
"table",
|
|
2045
2048
|
{
|
|
2046
|
-
className:
|
|
2049
|
+
className: Ct(st.standardTable, st[a]),
|
|
2047
2050
|
style: {
|
|
2048
2051
|
width: "100%",
|
|
2049
2052
|
isolation: "isolate",
|
|
2050
2053
|
"--current-left-offset": f && w ? "calc(var(--swui-expand-cell-width) + var(--swui-checkbox-cell-width))" : w ? "var(--swui-checkbox-cell-width)" : f ? "var(--swui-expand-cell-width)" : "0px"
|
|
2051
2054
|
},
|
|
2052
|
-
children: /* @__PURE__ */ s(
|
|
2053
|
-
|
|
2055
|
+
children: /* @__PURE__ */ s(Ht.Provider, { value: me, children: /* @__PURE__ */ s(Nt.Provider, { value: Z, children: /* @__PURE__ */ s(sr.Provider, { value: a, children: /* @__PURE__ */ s(
|
|
2056
|
+
Et.Provider,
|
|
2054
2057
|
{
|
|
2055
2058
|
value: o ?? d,
|
|
2056
|
-
children: /* @__PURE__ */ s(
|
|
2057
|
-
|
|
2059
|
+
children: /* @__PURE__ */ s(Rt.Provider, { value: v, children: /* @__PURE__ */ s(Mt.Provider, { value: L, children: /* @__PURE__ */ s(Gt.Provider, { value: n, children: /* @__PURE__ */ s(
|
|
2060
|
+
Ft.Provider,
|
|
2058
2061
|
{
|
|
2059
2062
|
value: q,
|
|
2060
2063
|
children: /* @__PURE__ */ s(
|
|
2061
|
-
|
|
2064
|
+
zt.Provider,
|
|
2062
2065
|
{
|
|
2063
2066
|
value: H,
|
|
2064
2067
|
children: /* @__PURE__ */ s(
|
|
2065
|
-
|
|
2068
|
+
or.Provider,
|
|
2066
2069
|
{
|
|
2067
2070
|
value: A,
|
|
2068
2071
|
children: /* @__PURE__ */ C(
|
|
2069
|
-
|
|
2072
|
+
rr.Provider,
|
|
2070
2073
|
{
|
|
2071
2074
|
value: "columnGroupOrder" in n ? r ?? n.columnGroupOrder : r,
|
|
2072
2075
|
children: [
|
|
2073
|
-
/* @__PURE__ */ s(
|
|
2074
|
-
/* @__PURE__ */ s(
|
|
2075
|
-
|
|
2076
|
+
/* @__PURE__ */ s(Tr, {}),
|
|
2077
|
+
/* @__PURE__ */ s(Lt.Provider, { value: i, children: /* @__PURE__ */ C(
|
|
2078
|
+
At.Provider,
|
|
2076
2079
|
{
|
|
2077
2080
|
value: c,
|
|
2078
2081
|
children: [
|
|
2079
|
-
/* @__PURE__ */ C("thead", { style:
|
|
2082
|
+
/* @__PURE__ */ C("thead", { style: ie, children: [
|
|
2080
2083
|
(r || "columnGroupOrder" in n) && /* @__PURE__ */ s(
|
|
2081
|
-
|
|
2084
|
+
hr,
|
|
2082
2085
|
{
|
|
2083
2086
|
height: "var(--current-row-height)"
|
|
2084
2087
|
}
|
|
2085
2088
|
),
|
|
2086
2089
|
/* @__PURE__ */ s(
|
|
2087
|
-
|
|
2090
|
+
wo,
|
|
2088
2091
|
{
|
|
2089
2092
|
items: h.items,
|
|
2090
2093
|
height: "var(--current-row-height)"
|
|
@@ -2093,7 +2096,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2093
2096
|
l?.()
|
|
2094
2097
|
] }),
|
|
2095
2098
|
/* @__PURE__ */ s(
|
|
2096
|
-
|
|
2099
|
+
lo,
|
|
2097
2100
|
{
|
|
2098
2101
|
variant: a,
|
|
2099
2102
|
...h
|
|
@@ -2115,10 +2118,10 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2115
2118
|
) }) }) })
|
|
2116
2119
|
}
|
|
2117
2120
|
);
|
|
2118
|
-
},
|
|
2121
|
+
}, le = (e, t) => ({
|
|
2119
2122
|
...t,
|
|
2120
2123
|
itemValueResolver: e
|
|
2121
|
-
}),
|
|
2124
|
+
}), yo = (e) => ({
|
|
2122
2125
|
label: t,
|
|
2123
2126
|
gridCell: {
|
|
2124
2127
|
editorValue: n,
|
|
@@ -2130,7 +2133,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2130
2133
|
stopEditingAndMove: l
|
|
2131
2134
|
}
|
|
2132
2135
|
}) => r ? /* @__PURE__ */ s(
|
|
2133
|
-
|
|
2136
|
+
Le,
|
|
2134
2137
|
{
|
|
2135
2138
|
onValueChange: o,
|
|
2136
2139
|
value: n,
|
|
@@ -2140,7 +2143,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2140
2143
|
selectAllOnMount: !i,
|
|
2141
2144
|
onMove: l
|
|
2142
2145
|
}
|
|
2143
|
-
) : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(
|
|
2146
|
+
) : /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(U, { color: "var(--swui-primary-action-color)", size: e, children: t }) }), Qs = (e, t, n) => ({
|
|
2144
2147
|
label: r,
|
|
2145
2148
|
item: o,
|
|
2146
2149
|
gridCell: {
|
|
@@ -2156,7 +2159,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2156
2159
|
}) => {
|
|
2157
2160
|
const f = typeof e == "function" ? e(o) : e, w = t ? t(o) : void 0, m = n ? n(o) : void 0;
|
|
2158
2161
|
return p && i ? /* @__PURE__ */ s(
|
|
2159
|
-
|
|
2162
|
+
Le,
|
|
2160
2163
|
{
|
|
2161
2164
|
onValueChange: c,
|
|
2162
2165
|
value: a,
|
|
@@ -2167,7 +2170,7 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2167
2170
|
onMove: u
|
|
2168
2171
|
}
|
|
2169
2172
|
) : /* @__PURE__ */ s(G, { row: !0, alignItems: "center", children: /* @__PURE__ */ s(
|
|
2170
|
-
|
|
2173
|
+
Pn,
|
|
2171
2174
|
{
|
|
2172
2175
|
value: r,
|
|
2173
2176
|
modifiedField: m,
|
|
@@ -2176,37 +2179,37 @@ const vt = E.createContext({}), Hs = ({
|
|
|
2176
2179
|
warningOnEmpty: f
|
|
2177
2180
|
}
|
|
2178
2181
|
) });
|
|
2179
|
-
},
|
|
2180
|
-
function
|
|
2181
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
2182
|
+
}, Kt = 6048e5, bo = 864e5, it = Symbol.for("constructDateFrom");
|
|
2183
|
+
function K(e, t) {
|
|
2184
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && it in e ? e[it](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2182
2185
|
}
|
|
2183
2186
|
function N(e, t) {
|
|
2184
|
-
return
|
|
2187
|
+
return K(t || e, e);
|
|
2185
2188
|
}
|
|
2186
2189
|
function T(e, t, n) {
|
|
2187
2190
|
const r = N(e, n?.in);
|
|
2188
|
-
return isNaN(t) ?
|
|
2191
|
+
return isNaN(t) ? K(e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
2189
2192
|
}
|
|
2190
|
-
let
|
|
2191
|
-
function
|
|
2192
|
-
return
|
|
2193
|
+
let vo = {};
|
|
2194
|
+
function Ee() {
|
|
2195
|
+
return vo;
|
|
2193
2196
|
}
|
|
2194
|
-
function
|
|
2195
|
-
const n =
|
|
2197
|
+
function we(e, t) {
|
|
2198
|
+
const n = Ee(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = N(e, t?.in), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
2196
2199
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
2197
2200
|
}
|
|
2198
|
-
function
|
|
2199
|
-
return
|
|
2201
|
+
function Oe(e, t) {
|
|
2202
|
+
return we(e, { ...t, weekStartsOn: 1 });
|
|
2200
2203
|
}
|
|
2201
|
-
function
|
|
2202
|
-
const n = N(e, t?.in), r = n.getFullYear(), o =
|
|
2204
|
+
function $t(e, t) {
|
|
2205
|
+
const n = N(e, t?.in), r = n.getFullYear(), o = K(n, 0);
|
|
2203
2206
|
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
2204
|
-
const a =
|
|
2207
|
+
const a = Oe(o), i = K(n, 0);
|
|
2205
2208
|
i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0);
|
|
2206
|
-
const c =
|
|
2209
|
+
const c = Oe(i);
|
|
2207
2210
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1;
|
|
2208
2211
|
}
|
|
2209
|
-
function
|
|
2212
|
+
function ct(e) {
|
|
2210
2213
|
const t = N(e), n = new Date(
|
|
2211
2214
|
Date.UTC(
|
|
2212
2215
|
t.getFullYear(),
|
|
@@ -2220,40 +2223,40 @@ function at(e) {
|
|
|
2220
2223
|
);
|
|
2221
2224
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
2222
2225
|
}
|
|
2223
|
-
function
|
|
2224
|
-
const n =
|
|
2226
|
+
function Co(e, ...t) {
|
|
2227
|
+
const n = K.bind(
|
|
2225
2228
|
null,
|
|
2226
2229
|
t.find((r) => typeof r == "object")
|
|
2227
2230
|
);
|
|
2228
2231
|
return t.map(n);
|
|
2229
2232
|
}
|
|
2230
|
-
function
|
|
2233
|
+
function lt(e, t) {
|
|
2231
2234
|
const n = N(e, t?.in);
|
|
2232
2235
|
return n.setHours(0, 0, 0, 0), n;
|
|
2233
2236
|
}
|
|
2234
|
-
function
|
|
2235
|
-
const [r, o] =
|
|
2237
|
+
function xo(e, t, n) {
|
|
2238
|
+
const [r, o] = Co(
|
|
2236
2239
|
n?.in,
|
|
2237
2240
|
e,
|
|
2238
2241
|
t
|
|
2239
|
-
), a =
|
|
2240
|
-
return Math.round((c - l) /
|
|
2242
|
+
), a = lt(r), i = lt(o), c = +a - ct(a), l = +i - ct(i);
|
|
2243
|
+
return Math.round((c - l) / bo);
|
|
2241
2244
|
}
|
|
2242
|
-
function
|
|
2243
|
-
const n =
|
|
2244
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
2245
|
+
function ko(e, t) {
|
|
2246
|
+
const n = $t(e, t), r = K(e, 0);
|
|
2247
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Oe(r);
|
|
2245
2248
|
}
|
|
2246
|
-
function
|
|
2249
|
+
function So(e) {
|
|
2247
2250
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2248
2251
|
}
|
|
2249
|
-
function
|
|
2250
|
-
return !(!
|
|
2252
|
+
function Po(e) {
|
|
2253
|
+
return !(!So(e) && typeof e != "number" || isNaN(+N(e)));
|
|
2251
2254
|
}
|
|
2252
|
-
function
|
|
2255
|
+
function Oo(e, t) {
|
|
2253
2256
|
const n = N(e, t?.in);
|
|
2254
2257
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
2255
2258
|
}
|
|
2256
|
-
const
|
|
2259
|
+
const Io = {
|
|
2257
2260
|
lessThanXSeconds: {
|
|
2258
2261
|
one: "less than a second",
|
|
2259
2262
|
other: "less than {{count}} seconds"
|
|
@@ -2315,54 +2318,54 @@ const Po = {
|
|
|
2315
2318
|
one: "almost 1 year",
|
|
2316
2319
|
other: "almost {{count}} years"
|
|
2317
2320
|
}
|
|
2318
|
-
},
|
|
2321
|
+
}, To = (e, t, n) => {
|
|
2319
2322
|
let r;
|
|
2320
|
-
const o =
|
|
2323
|
+
const o = Io[e];
|
|
2321
2324
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
2322
2325
|
};
|
|
2323
|
-
function
|
|
2326
|
+
function We(e) {
|
|
2324
2327
|
return (t = {}) => {
|
|
2325
2328
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
2326
2329
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
2327
2330
|
};
|
|
2328
2331
|
}
|
|
2329
|
-
const
|
|
2332
|
+
const Do = {
|
|
2330
2333
|
full: "EEEE, MMMM do, y",
|
|
2331
2334
|
long: "MMMM do, y",
|
|
2332
2335
|
medium: "MMM d, y",
|
|
2333
2336
|
short: "MM/dd/yyyy"
|
|
2334
|
-
},
|
|
2337
|
+
}, Eo = {
|
|
2335
2338
|
full: "h:mm:ss a zzzz",
|
|
2336
2339
|
long: "h:mm:ss a z",
|
|
2337
2340
|
medium: "h:mm:ss a",
|
|
2338
2341
|
short: "h:mm a"
|
|
2339
|
-
},
|
|
2342
|
+
}, Ro = {
|
|
2340
2343
|
full: "{{date}} 'at' {{time}}",
|
|
2341
2344
|
long: "{{date}} 'at' {{time}}",
|
|
2342
2345
|
medium: "{{date}}, {{time}}",
|
|
2343
2346
|
short: "{{date}}, {{time}}"
|
|
2344
|
-
},
|
|
2345
|
-
date:
|
|
2346
|
-
formats:
|
|
2347
|
+
}, Mo = {
|
|
2348
|
+
date: We({
|
|
2349
|
+
formats: Do,
|
|
2347
2350
|
defaultWidth: "full"
|
|
2348
2351
|
}),
|
|
2349
|
-
time:
|
|
2350
|
-
formats:
|
|
2352
|
+
time: We({
|
|
2353
|
+
formats: Eo,
|
|
2351
2354
|
defaultWidth: "full"
|
|
2352
2355
|
}),
|
|
2353
|
-
dateTime:
|
|
2354
|
-
formats:
|
|
2356
|
+
dateTime: We({
|
|
2357
|
+
formats: Ro,
|
|
2355
2358
|
defaultWidth: "full"
|
|
2356
2359
|
})
|
|
2357
|
-
},
|
|
2360
|
+
}, Go = {
|
|
2358
2361
|
lastWeek: "'last' eeee 'at' p",
|
|
2359
2362
|
yesterday: "'yesterday at' p",
|
|
2360
2363
|
today: "'today at' p",
|
|
2361
2364
|
tomorrow: "'tomorrow at' p",
|
|
2362
2365
|
nextWeek: "eeee 'at' p",
|
|
2363
2366
|
other: "P"
|
|
2364
|
-
},
|
|
2365
|
-
function
|
|
2367
|
+
}, Wo = (e, t, n, r) => Go[e];
|
|
2368
|
+
function fe(e) {
|
|
2366
2369
|
return (t, n) => {
|
|
2367
2370
|
const r = n?.context ? String(n.context) : "standalone";
|
|
2368
2371
|
let o;
|
|
@@ -2377,15 +2380,15 @@ function pe(e) {
|
|
|
2377
2380
|
return o[a];
|
|
2378
2381
|
};
|
|
2379
2382
|
}
|
|
2380
|
-
const
|
|
2383
|
+
const Fo = {
|
|
2381
2384
|
narrow: ["B", "A"],
|
|
2382
2385
|
abbreviated: ["BC", "AD"],
|
|
2383
2386
|
wide: ["Before Christ", "Anno Domini"]
|
|
2384
|
-
},
|
|
2387
|
+
}, Bo = {
|
|
2385
2388
|
narrow: ["1", "2", "3", "4"],
|
|
2386
2389
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
2387
2390
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
2388
|
-
},
|
|
2391
|
+
}, Lo = {
|
|
2389
2392
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
2390
2393
|
abbreviated: [
|
|
2391
2394
|
"Jan",
|
|
@@ -2415,7 +2418,7 @@ const Go = {
|
|
|
2415
2418
|
"November",
|
|
2416
2419
|
"December"
|
|
2417
2420
|
]
|
|
2418
|
-
},
|
|
2421
|
+
}, Ao = {
|
|
2419
2422
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
2420
2423
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
2421
2424
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -2428,7 +2431,7 @@ const Go = {
|
|
|
2428
2431
|
"Friday",
|
|
2429
2432
|
"Saturday"
|
|
2430
2433
|
]
|
|
2431
|
-
},
|
|
2434
|
+
}, Ho = {
|
|
2432
2435
|
narrow: {
|
|
2433
2436
|
am: "a",
|
|
2434
2437
|
pm: "p",
|
|
@@ -2459,7 +2462,7 @@ const Go = {
|
|
|
2459
2462
|
evening: "evening",
|
|
2460
2463
|
night: "night"
|
|
2461
2464
|
}
|
|
2462
|
-
},
|
|
2465
|
+
}, No = {
|
|
2463
2466
|
narrow: {
|
|
2464
2467
|
am: "a",
|
|
2465
2468
|
pm: "p",
|
|
@@ -2490,7 +2493,7 @@ const Go = {
|
|
|
2490
2493
|
evening: "in the evening",
|
|
2491
2494
|
night: "at night"
|
|
2492
2495
|
}
|
|
2493
|
-
},
|
|
2496
|
+
}, Yo = (e, t) => {
|
|
2494
2497
|
const n = Number(e), r = n % 100;
|
|
2495
2498
|
if (r > 20 || r < 10)
|
|
2496
2499
|
switch (r % 10) {
|
|
@@ -2502,40 +2505,40 @@ const Go = {
|
|
|
2502
2505
|
return n + "rd";
|
|
2503
2506
|
}
|
|
2504
2507
|
return n + "th";
|
|
2505
|
-
},
|
|
2506
|
-
ordinalNumber:
|
|
2507
|
-
era:
|
|
2508
|
-
values:
|
|
2508
|
+
}, zo = {
|
|
2509
|
+
ordinalNumber: Yo,
|
|
2510
|
+
era: fe({
|
|
2511
|
+
values: Fo,
|
|
2509
2512
|
defaultWidth: "wide"
|
|
2510
2513
|
}),
|
|
2511
|
-
quarter:
|
|
2512
|
-
values:
|
|
2514
|
+
quarter: fe({
|
|
2515
|
+
values: Bo,
|
|
2513
2516
|
defaultWidth: "wide",
|
|
2514
2517
|
argumentCallback: (e) => e - 1
|
|
2515
2518
|
}),
|
|
2516
|
-
month:
|
|
2517
|
-
values:
|
|
2519
|
+
month: fe({
|
|
2520
|
+
values: Lo,
|
|
2518
2521
|
defaultWidth: "wide"
|
|
2519
2522
|
}),
|
|
2520
|
-
day:
|
|
2521
|
-
values:
|
|
2523
|
+
day: fe({
|
|
2524
|
+
values: Ao,
|
|
2522
2525
|
defaultWidth: "wide"
|
|
2523
2526
|
}),
|
|
2524
|
-
dayPeriod:
|
|
2525
|
-
values:
|
|
2527
|
+
dayPeriod: fe({
|
|
2528
|
+
values: Ho,
|
|
2526
2529
|
defaultWidth: "wide",
|
|
2527
|
-
formattingValues:
|
|
2530
|
+
formattingValues: No,
|
|
2528
2531
|
defaultFormattingWidth: "wide"
|
|
2529
2532
|
})
|
|
2530
2533
|
};
|
|
2531
|
-
function
|
|
2534
|
+
function pe(e) {
|
|
2532
2535
|
return (t, n = {}) => {
|
|
2533
2536
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
|
|
2534
2537
|
if (!a)
|
|
2535
2538
|
return null;
|
|
2536
|
-
const i = a[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(c) ?
|
|
2539
|
+
const i = a[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(c) ? _o(c, (u) => u.test(i)) : (
|
|
2537
2540
|
// [TODO] -- I challenge you to fix the type
|
|
2538
|
-
|
|
2541
|
+
qo(c, (u) => u.test(i))
|
|
2539
2542
|
);
|
|
2540
2543
|
let h;
|
|
2541
2544
|
h = e.valueCallback ? e.valueCallback(l) : l, h = n.valueCallback ? (
|
|
@@ -2546,17 +2549,17 @@ function ge(e) {
|
|
|
2546
2549
|
return { value: h, rest: d };
|
|
2547
2550
|
};
|
|
2548
2551
|
}
|
|
2549
|
-
function
|
|
2552
|
+
function qo(e, t) {
|
|
2550
2553
|
for (const n in e)
|
|
2551
2554
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
2552
2555
|
return n;
|
|
2553
2556
|
}
|
|
2554
|
-
function
|
|
2557
|
+
function _o(e, t) {
|
|
2555
2558
|
for (let n = 0; n < e.length; n++)
|
|
2556
2559
|
if (t(e[n]))
|
|
2557
2560
|
return n;
|
|
2558
2561
|
}
|
|
2559
|
-
function
|
|
2562
|
+
function jo(e) {
|
|
2560
2563
|
return (t, n = {}) => {
|
|
2561
2564
|
const r = t.match(e.matchPattern);
|
|
2562
2565
|
if (!r) return null;
|
|
@@ -2568,23 +2571,23 @@ function qo(e) {
|
|
|
2568
2571
|
return { value: i, rest: c };
|
|
2569
2572
|
};
|
|
2570
2573
|
}
|
|
2571
|
-
const
|
|
2574
|
+
const Vo = /^(\d+)(th|st|nd|rd)?/i, Ko = /\d+/i, $o = {
|
|
2572
2575
|
narrow: /^(b|a)/i,
|
|
2573
2576
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
2574
2577
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
2575
|
-
},
|
|
2578
|
+
}, Qo = {
|
|
2576
2579
|
any: [/^b/i, /^(a|c)/i]
|
|
2577
|
-
},
|
|
2580
|
+
}, Xo = {
|
|
2578
2581
|
narrow: /^[1234]/i,
|
|
2579
2582
|
abbreviated: /^q[1234]/i,
|
|
2580
2583
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
2581
|
-
},
|
|
2584
|
+
}, Uo = {
|
|
2582
2585
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
2583
|
-
},
|
|
2586
|
+
}, Jo = {
|
|
2584
2587
|
narrow: /^[jfmasond]/i,
|
|
2585
2588
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
2586
2589
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
2587
|
-
},
|
|
2590
|
+
}, Zo = {
|
|
2588
2591
|
narrow: [
|
|
2589
2592
|
/^j/i,
|
|
2590
2593
|
/^f/i,
|
|
@@ -2613,18 +2616,18 @@ const _o = /^(\d+)(th|st|nd|rd)?/i, jo = /\d+/i, Vo = {
|
|
|
2613
2616
|
/^n/i,
|
|
2614
2617
|
/^d/i
|
|
2615
2618
|
]
|
|
2616
|
-
},
|
|
2619
|
+
}, es = {
|
|
2617
2620
|
narrow: /^[smtwf]/i,
|
|
2618
2621
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
2619
2622
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
2620
2623
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
2621
|
-
},
|
|
2624
|
+
}, ts = {
|
|
2622
2625
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
2623
2626
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
2624
|
-
},
|
|
2627
|
+
}, ns = {
|
|
2625
2628
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
2626
2629
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
2627
|
-
},
|
|
2630
|
+
}, rs = {
|
|
2628
2631
|
any: {
|
|
2629
2632
|
am: /^a/i,
|
|
2630
2633
|
pm: /^p/i,
|
|
@@ -2635,84 +2638,84 @@ const _o = /^(\d+)(th|st|nd|rd)?/i, jo = /\d+/i, Vo = {
|
|
|
2635
2638
|
evening: /evening/i,
|
|
2636
2639
|
night: /night/i
|
|
2637
2640
|
}
|
|
2638
|
-
},
|
|
2639
|
-
ordinalNumber:
|
|
2640
|
-
matchPattern:
|
|
2641
|
-
parsePattern:
|
|
2641
|
+
}, os = {
|
|
2642
|
+
ordinalNumber: jo({
|
|
2643
|
+
matchPattern: Vo,
|
|
2644
|
+
parsePattern: Ko,
|
|
2642
2645
|
valueCallback: (e) => parseInt(e, 10)
|
|
2643
2646
|
}),
|
|
2644
|
-
era:
|
|
2645
|
-
matchPatterns: Vo,
|
|
2646
|
-
defaultMatchWidth: "wide",
|
|
2647
|
-
parsePatterns: Ko,
|
|
2648
|
-
defaultParseWidth: "any"
|
|
2649
|
-
}),
|
|
2650
|
-
quarter: ge({
|
|
2647
|
+
era: pe({
|
|
2651
2648
|
matchPatterns: $o,
|
|
2652
2649
|
defaultMatchWidth: "wide",
|
|
2653
2650
|
parsePatterns: Qo,
|
|
2654
|
-
defaultParseWidth: "any"
|
|
2655
|
-
valueCallback: (e) => e + 1
|
|
2651
|
+
defaultParseWidth: "any"
|
|
2656
2652
|
}),
|
|
2657
|
-
|
|
2653
|
+
quarter: pe({
|
|
2658
2654
|
matchPatterns: Xo,
|
|
2659
2655
|
defaultMatchWidth: "wide",
|
|
2660
2656
|
parsePatterns: Uo,
|
|
2661
|
-
defaultParseWidth: "any"
|
|
2657
|
+
defaultParseWidth: "any",
|
|
2658
|
+
valueCallback: (e) => e + 1
|
|
2662
2659
|
}),
|
|
2663
|
-
|
|
2660
|
+
month: pe({
|
|
2664
2661
|
matchPatterns: Jo,
|
|
2665
2662
|
defaultMatchWidth: "wide",
|
|
2666
2663
|
parsePatterns: Zo,
|
|
2667
2664
|
defaultParseWidth: "any"
|
|
2668
2665
|
}),
|
|
2669
|
-
|
|
2666
|
+
day: pe({
|
|
2670
2667
|
matchPatterns: es,
|
|
2671
|
-
defaultMatchWidth: "
|
|
2668
|
+
defaultMatchWidth: "wide",
|
|
2672
2669
|
parsePatterns: ts,
|
|
2673
2670
|
defaultParseWidth: "any"
|
|
2671
|
+
}),
|
|
2672
|
+
dayPeriod: pe({
|
|
2673
|
+
matchPatterns: ns,
|
|
2674
|
+
defaultMatchWidth: "any",
|
|
2675
|
+
parsePatterns: rs,
|
|
2676
|
+
defaultParseWidth: "any"
|
|
2674
2677
|
})
|
|
2675
|
-
},
|
|
2678
|
+
}, ss = {
|
|
2676
2679
|
code: "en-US",
|
|
2677
|
-
formatDistance:
|
|
2678
|
-
formatLong:
|
|
2679
|
-
formatRelative:
|
|
2680
|
-
localize:
|
|
2681
|
-
match:
|
|
2680
|
+
formatDistance: To,
|
|
2681
|
+
formatLong: Mo,
|
|
2682
|
+
formatRelative: Wo,
|
|
2683
|
+
localize: zo,
|
|
2684
|
+
match: os,
|
|
2682
2685
|
options: {
|
|
2683
2686
|
weekStartsOn: 0,
|
|
2684
2687
|
firstWeekContainsDate: 1
|
|
2685
2688
|
}
|
|
2686
2689
|
};
|
|
2687
|
-
function
|
|
2690
|
+
function as(e, t) {
|
|
2688
2691
|
const n = N(e, t?.in);
|
|
2689
|
-
return
|
|
2692
|
+
return xo(n, Oo(n)) + 1;
|
|
2690
2693
|
}
|
|
2691
|
-
function
|
|
2692
|
-
const n = N(e, t?.in), r = +
|
|
2693
|
-
return Math.round(r /
|
|
2694
|
+
function is(e, t) {
|
|
2695
|
+
const n = N(e, t?.in), r = +Oe(n) - +ko(n);
|
|
2696
|
+
return Math.round(r / Kt) + 1;
|
|
2694
2697
|
}
|
|
2695
|
-
function
|
|
2696
|
-
const n = N(e, t?.in), r = n.getFullYear(), o =
|
|
2698
|
+
function Qt(e, t) {
|
|
2699
|
+
const n = N(e, t?.in), r = n.getFullYear(), o = Ee(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, i = K(t?.in || e, 0);
|
|
2697
2700
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
2698
|
-
const c =
|
|
2701
|
+
const c = we(i, t), l = K(t?.in || e, 0);
|
|
2699
2702
|
l.setFullYear(r, 0, a), l.setHours(0, 0, 0, 0);
|
|
2700
|
-
const h =
|
|
2703
|
+
const h = we(l, t);
|
|
2701
2704
|
return +n >= +c ? r + 1 : +n >= +h ? r : r - 1;
|
|
2702
2705
|
}
|
|
2703
|
-
function
|
|
2704
|
-
const n =
|
|
2705
|
-
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0),
|
|
2706
|
+
function cs(e, t) {
|
|
2707
|
+
const n = Ee(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Qt(e, t), a = K(t?.in || e, 0);
|
|
2708
|
+
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), we(a, t);
|
|
2706
2709
|
}
|
|
2707
|
-
function
|
|
2708
|
-
const n = N(e, t?.in), r = +
|
|
2709
|
-
return Math.round(r /
|
|
2710
|
+
function ls(e, t) {
|
|
2711
|
+
const n = N(e, t?.in), r = +we(n, t) - +cs(n, t);
|
|
2712
|
+
return Math.round(r / Kt) + 1;
|
|
2710
2713
|
}
|
|
2711
2714
|
function x(e, t) {
|
|
2712
2715
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
2713
2716
|
return n + r;
|
|
2714
2717
|
}
|
|
2715
|
-
const
|
|
2718
|
+
const Q = {
|
|
2716
2719
|
// Year
|
|
2717
2720
|
y(e, t) {
|
|
2718
2721
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
@@ -2766,14 +2769,14 @@ const X = {
|
|
|
2766
2769
|
);
|
|
2767
2770
|
return x(o, t.length);
|
|
2768
2771
|
}
|
|
2769
|
-
},
|
|
2772
|
+
}, de = {
|
|
2770
2773
|
midnight: "midnight",
|
|
2771
2774
|
noon: "noon",
|
|
2772
2775
|
morning: "morning",
|
|
2773
2776
|
afternoon: "afternoon",
|
|
2774
2777
|
evening: "evening",
|
|
2775
2778
|
night: "night"
|
|
2776
|
-
},
|
|
2779
|
+
}, dt = {
|
|
2777
2780
|
// Era
|
|
2778
2781
|
G: function(e, t, n) {
|
|
2779
2782
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -2798,11 +2801,11 @@ const X = {
|
|
|
2798
2801
|
const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
2799
2802
|
return n.ordinalNumber(o, { unit: "year" });
|
|
2800
2803
|
}
|
|
2801
|
-
return
|
|
2804
|
+
return Q.y(e, t);
|
|
2802
2805
|
},
|
|
2803
2806
|
// Local week-numbering year
|
|
2804
2807
|
Y: function(e, t, n, r) {
|
|
2805
|
-
const o =
|
|
2808
|
+
const o = Qt(e, r), a = o > 0 ? o : 1 - o;
|
|
2806
2809
|
if (t === "YY") {
|
|
2807
2810
|
const i = a % 100;
|
|
2808
2811
|
return x(i, 2);
|
|
@@ -2811,7 +2814,7 @@ const X = {
|
|
|
2811
2814
|
},
|
|
2812
2815
|
// ISO week-numbering year
|
|
2813
2816
|
R: function(e, t) {
|
|
2814
|
-
const n =
|
|
2817
|
+
const n = $t(e);
|
|
2815
2818
|
return x(n, t.length);
|
|
2816
2819
|
},
|
|
2817
2820
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -2901,7 +2904,7 @@ const X = {
|
|
|
2901
2904
|
switch (t) {
|
|
2902
2905
|
case "M":
|
|
2903
2906
|
case "MM":
|
|
2904
|
-
return
|
|
2907
|
+
return Q.M(e, t);
|
|
2905
2908
|
// 1st, 2nd, ..., 12th
|
|
2906
2909
|
case "Mo":
|
|
2907
2910
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
@@ -2956,21 +2959,21 @@ const X = {
|
|
|
2956
2959
|
},
|
|
2957
2960
|
// Local week of year
|
|
2958
2961
|
w: function(e, t, n, r) {
|
|
2959
|
-
const o =
|
|
2962
|
+
const o = ls(e, r);
|
|
2960
2963
|
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : x(o, t.length);
|
|
2961
2964
|
},
|
|
2962
2965
|
// ISO week of year
|
|
2963
2966
|
I: function(e, t, n) {
|
|
2964
|
-
const r =
|
|
2967
|
+
const r = is(e);
|
|
2965
2968
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : x(r, t.length);
|
|
2966
2969
|
},
|
|
2967
2970
|
// Day of the month
|
|
2968
2971
|
d: function(e, t, n) {
|
|
2969
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
2972
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Q.d(e, t);
|
|
2970
2973
|
},
|
|
2971
2974
|
// Day of year
|
|
2972
2975
|
D: function(e, t, n) {
|
|
2973
|
-
const r =
|
|
2976
|
+
const r = as(e);
|
|
2974
2977
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : x(r, t.length);
|
|
2975
2978
|
},
|
|
2976
2979
|
// Day of week
|
|
@@ -3156,7 +3159,7 @@ const X = {
|
|
|
3156
3159
|
b: function(e, t, n) {
|
|
3157
3160
|
const r = e.getHours();
|
|
3158
3161
|
let o;
|
|
3159
|
-
switch (r === 12 ? o =
|
|
3162
|
+
switch (r === 12 ? o = de.noon : r === 0 ? o = de.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
|
|
3160
3163
|
case "b":
|
|
3161
3164
|
case "bb":
|
|
3162
3165
|
return n.dayPeriod(o, {
|
|
@@ -3185,7 +3188,7 @@ const X = {
|
|
|
3185
3188
|
B: function(e, t, n) {
|
|
3186
3189
|
const r = e.getHours();
|
|
3187
3190
|
let o;
|
|
3188
|
-
switch (r >= 17 ? o =
|
|
3191
|
+
switch (r >= 17 ? o = de.evening : r >= 12 ? o = de.afternoon : r >= 4 ? o = de.morning : o = de.night, t) {
|
|
3189
3192
|
case "B":
|
|
3190
3193
|
case "BB":
|
|
3191
3194
|
case "BBB":
|
|
@@ -3212,11 +3215,11 @@ const X = {
|
|
|
3212
3215
|
let r = e.getHours() % 12;
|
|
3213
3216
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
3214
3217
|
}
|
|
3215
|
-
return
|
|
3218
|
+
return Q.h(e, t);
|
|
3216
3219
|
},
|
|
3217
3220
|
// Hour [0-23]
|
|
3218
3221
|
H: function(e, t, n) {
|
|
3219
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
3222
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Q.H(e, t);
|
|
3220
3223
|
},
|
|
3221
3224
|
// Hour [0-11]
|
|
3222
3225
|
K: function(e, t, n) {
|
|
@@ -3230,15 +3233,15 @@ const X = {
|
|
|
3230
3233
|
},
|
|
3231
3234
|
// Minute
|
|
3232
3235
|
m: function(e, t, n) {
|
|
3233
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
3236
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Q.m(e, t);
|
|
3234
3237
|
},
|
|
3235
3238
|
// Second
|
|
3236
3239
|
s: function(e, t, n) {
|
|
3237
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
3240
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Q.s(e, t);
|
|
3238
3241
|
},
|
|
3239
3242
|
// Fraction of second
|
|
3240
3243
|
S: function(e, t) {
|
|
3241
|
-
return
|
|
3244
|
+
return Q.S(e, t);
|
|
3242
3245
|
},
|
|
3243
3246
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
3244
3247
|
X: function(e, t, n) {
|
|
@@ -3248,13 +3251,13 @@ const X = {
|
|
|
3248
3251
|
switch (t) {
|
|
3249
3252
|
// Hours and optional minutes
|
|
3250
3253
|
case "X":
|
|
3251
|
-
return
|
|
3254
|
+
return ht(r);
|
|
3252
3255
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
3253
3256
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3254
3257
|
// so this token always has the same output as `XX`
|
|
3255
3258
|
case "XXXX":
|
|
3256
3259
|
case "XX":
|
|
3257
|
-
return
|
|
3260
|
+
return se(r);
|
|
3258
3261
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
3259
3262
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3260
3263
|
// so this token always has the same output as `XXX`
|
|
@@ -3262,7 +3265,7 @@ const X = {
|
|
|
3262
3265
|
case "XXX":
|
|
3263
3266
|
// Hours and minutes with `:` delimiter
|
|
3264
3267
|
default:
|
|
3265
|
-
return
|
|
3268
|
+
return se(r, ":");
|
|
3266
3269
|
}
|
|
3267
3270
|
},
|
|
3268
3271
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -3271,13 +3274,13 @@ const X = {
|
|
|
3271
3274
|
switch (t) {
|
|
3272
3275
|
// Hours and optional minutes
|
|
3273
3276
|
case "x":
|
|
3274
|
-
return
|
|
3277
|
+
return ht(r);
|
|
3275
3278
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
3276
3279
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3277
3280
|
// so this token always has the same output as `xx`
|
|
3278
3281
|
case "xxxx":
|
|
3279
3282
|
case "xx":
|
|
3280
|
-
return
|
|
3283
|
+
return se(r);
|
|
3281
3284
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
3282
3285
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3283
3286
|
// so this token always has the same output as `xxx`
|
|
@@ -3285,7 +3288,7 @@ const X = {
|
|
|
3285
3288
|
case "xxx":
|
|
3286
3289
|
// Hours and minutes with `:` delimiter
|
|
3287
3290
|
default:
|
|
3288
|
-
return
|
|
3291
|
+
return se(r, ":");
|
|
3289
3292
|
}
|
|
3290
3293
|
},
|
|
3291
3294
|
// Timezone (GMT)
|
|
@@ -3296,11 +3299,11 @@ const X = {
|
|
|
3296
3299
|
case "O":
|
|
3297
3300
|
case "OO":
|
|
3298
3301
|
case "OOO":
|
|
3299
|
-
return "GMT" +
|
|
3302
|
+
return "GMT" + ut(r, ":");
|
|
3300
3303
|
// Long
|
|
3301
3304
|
case "OOOO":
|
|
3302
3305
|
default:
|
|
3303
|
-
return "GMT" +
|
|
3306
|
+
return "GMT" + se(r, ":");
|
|
3304
3307
|
}
|
|
3305
3308
|
},
|
|
3306
3309
|
// Timezone (specific non-location)
|
|
@@ -3311,11 +3314,11 @@ const X = {
|
|
|
3311
3314
|
case "z":
|
|
3312
3315
|
case "zz":
|
|
3313
3316
|
case "zzz":
|
|
3314
|
-
return "GMT" +
|
|
3317
|
+
return "GMT" + ut(r, ":");
|
|
3315
3318
|
// Long
|
|
3316
3319
|
case "zzzz":
|
|
3317
3320
|
default:
|
|
3318
|
-
return "GMT" +
|
|
3321
|
+
return "GMT" + se(r, ":");
|
|
3319
3322
|
}
|
|
3320
3323
|
},
|
|
3321
3324
|
// Seconds timestamp
|
|
@@ -3328,18 +3331,18 @@ const X = {
|
|
|
3328
3331
|
return x(+e, t.length);
|
|
3329
3332
|
}
|
|
3330
3333
|
};
|
|
3331
|
-
function
|
|
3334
|
+
function ut(e, t = "") {
|
|
3332
3335
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), a = r % 60;
|
|
3333
3336
|
return a === 0 ? n + String(o) : n + String(o) + t + x(a, 2);
|
|
3334
3337
|
}
|
|
3335
|
-
function
|
|
3336
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + x(Math.abs(e) / 60, 2) :
|
|
3338
|
+
function ht(e, t) {
|
|
3339
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + x(Math.abs(e) / 60, 2) : se(e, t);
|
|
3337
3340
|
}
|
|
3338
|
-
function
|
|
3341
|
+
function se(e, t = "") {
|
|
3339
3342
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = x(Math.trunc(r / 60), 2), a = x(r % 60, 2);
|
|
3340
3343
|
return n + o + t + a;
|
|
3341
3344
|
}
|
|
3342
|
-
const
|
|
3345
|
+
const mt = (e, t) => {
|
|
3343
3346
|
switch (e) {
|
|
3344
3347
|
case "P":
|
|
3345
3348
|
return t.date({ width: "short" });
|
|
@@ -3351,7 +3354,7 @@ const ut = (e, t) => {
|
|
|
3351
3354
|
default:
|
|
3352
3355
|
return t.date({ width: "full" });
|
|
3353
3356
|
}
|
|
3354
|
-
},
|
|
3357
|
+
}, Xt = (e, t) => {
|
|
3355
3358
|
switch (e) {
|
|
3356
3359
|
case "p":
|
|
3357
3360
|
return t.time({ width: "short" });
|
|
@@ -3363,10 +3366,10 @@ const ut = (e, t) => {
|
|
|
3363
3366
|
default:
|
|
3364
3367
|
return t.time({ width: "full" });
|
|
3365
3368
|
}
|
|
3366
|
-
},
|
|
3369
|
+
}, ds = (e, t) => {
|
|
3367
3370
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
3368
3371
|
if (!o)
|
|
3369
|
-
return
|
|
3372
|
+
return mt(e, t);
|
|
3370
3373
|
let a;
|
|
3371
3374
|
switch (r) {
|
|
3372
3375
|
case "P":
|
|
@@ -3383,46 +3386,46 @@ const ut = (e, t) => {
|
|
|
3383
3386
|
a = t.dateTime({ width: "full" });
|
|
3384
3387
|
break;
|
|
3385
3388
|
}
|
|
3386
|
-
return a.replace("{{date}}",
|
|
3387
|
-
},
|
|
3388
|
-
p:
|
|
3389
|
-
P:
|
|
3390
|
-
},
|
|
3391
|
-
function
|
|
3392
|
-
return
|
|
3389
|
+
return a.replace("{{date}}", mt(r, t)).replace("{{time}}", Xt(o, t));
|
|
3390
|
+
}, us = {
|
|
3391
|
+
p: Xt,
|
|
3392
|
+
P: ds
|
|
3393
|
+
}, hs = /^D+$/, ms = /^Y+$/, fs = ["D", "DD", "YY", "YYYY"];
|
|
3394
|
+
function ps(e) {
|
|
3395
|
+
return hs.test(e);
|
|
3393
3396
|
}
|
|
3394
|
-
function
|
|
3395
|
-
return
|
|
3397
|
+
function gs(e) {
|
|
3398
|
+
return ms.test(e);
|
|
3396
3399
|
}
|
|
3397
|
-
function
|
|
3398
|
-
const r =
|
|
3399
|
-
if (console.warn(r),
|
|
3400
|
+
function ws(e, t, n) {
|
|
3401
|
+
const r = ys(e, t, n);
|
|
3402
|
+
if (console.warn(r), fs.includes(e)) throw new RangeError(r);
|
|
3400
3403
|
}
|
|
3401
|
-
function
|
|
3404
|
+
function ys(e, t, n) {
|
|
3402
3405
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
3403
3406
|
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`;
|
|
3404
3407
|
}
|
|
3405
|
-
const
|
|
3406
|
-
function
|
|
3407
|
-
const r =
|
|
3408
|
-
if (!
|
|
3408
|
+
const bs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, vs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Cs = /^'([^]*?)'?$/, xs = /''/g, ks = /[a-zA-Z]/;
|
|
3409
|
+
function Ss(e, t, n) {
|
|
3410
|
+
const r = Ee(), o = r.locale ?? ss, a = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, c = N(e, n?.in);
|
|
3411
|
+
if (!Po(c))
|
|
3409
3412
|
throw new RangeError("Invalid time value");
|
|
3410
|
-
let l = t.match(
|
|
3413
|
+
let l = t.match(vs).map((d) => {
|
|
3411
3414
|
const u = d[0];
|
|
3412
3415
|
if (u === "p" || u === "P") {
|
|
3413
|
-
const p =
|
|
3416
|
+
const p = us[u];
|
|
3414
3417
|
return p(d, o.formatLong);
|
|
3415
3418
|
}
|
|
3416
3419
|
return d;
|
|
3417
|
-
}).join("").match(
|
|
3420
|
+
}).join("").match(bs).map((d) => {
|
|
3418
3421
|
if (d === "''")
|
|
3419
3422
|
return { isToken: !1, value: "'" };
|
|
3420
3423
|
const u = d[0];
|
|
3421
3424
|
if (u === "'")
|
|
3422
|
-
return { isToken: !1, value:
|
|
3423
|
-
if (
|
|
3425
|
+
return { isToken: !1, value: Ps(d) };
|
|
3426
|
+
if (dt[u])
|
|
3424
3427
|
return { isToken: !0, value: d };
|
|
3425
|
-
if (u.match(
|
|
3428
|
+
if (u.match(ks))
|
|
3426
3429
|
throw new RangeError(
|
|
3427
3430
|
"Format string contains an unescaped latin alphabet character `" + u + "`"
|
|
3428
3431
|
);
|
|
@@ -3437,16 +3440,16 @@ function xs(e, t, n) {
|
|
|
3437
3440
|
return l.map((d) => {
|
|
3438
3441
|
if (!d.isToken) return d.value;
|
|
3439
3442
|
const u = d.value;
|
|
3440
|
-
(
|
|
3441
|
-
const p =
|
|
3443
|
+
(gs(u) || ps(u)) && ws(u, t, String(e));
|
|
3444
|
+
const p = dt[u[0]];
|
|
3442
3445
|
return p(c, u, o.localize, h);
|
|
3443
3446
|
}).join("");
|
|
3444
3447
|
}
|
|
3445
|
-
function
|
|
3446
|
-
const t = e.match(
|
|
3447
|
-
return t ? t[1].replace(
|
|
3448
|
+
function Ps(e) {
|
|
3449
|
+
const t = e.match(Cs);
|
|
3450
|
+
return t ? t[1].replace(xs, "'") : e;
|
|
3448
3451
|
}
|
|
3449
|
-
const
|
|
3452
|
+
const Os = () => [
|
|
3450
3453
|
{
|
|
3451
3454
|
id: "123",
|
|
3452
3455
|
active: !1,
|
|
@@ -3615,26 +3618,26 @@ const Ss = () => [
|
|
|
3615
3618
|
numPassengers: 655,
|
|
3616
3619
|
departure: T(/* @__PURE__ */ new Date(), 5)
|
|
3617
3620
|
}
|
|
3618
|
-
],
|
|
3621
|
+
], ft = (e, t, n) => e.map((r) => r.id === t ? { ...r, ...n } : r), Xs = {
|
|
3619
3622
|
keyResolver: (e) => e.id,
|
|
3620
3623
|
showHeaderCheckbox: !0,
|
|
3621
3624
|
showRowCheckbox: !0,
|
|
3622
3625
|
enableGridCell: !0,
|
|
3623
3626
|
columns: {
|
|
3624
|
-
id:
|
|
3625
|
-
active:
|
|
3627
|
+
id: le((e) => e.id),
|
|
3628
|
+
active: le((e) => e.active, {
|
|
3626
3629
|
disableGridCellFocus: !0,
|
|
3627
|
-
renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(
|
|
3630
|
+
renderCell: ({ item: e, gridCell: { requiredProps: t } }) => /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(Ae, { value: e.active, ...t }) }),
|
|
3628
3631
|
infoIconTooltipText: "Active means out on the sea."
|
|
3629
3632
|
}),
|
|
3630
|
-
name:
|
|
3633
|
+
name: le((e) => e.name, {
|
|
3631
3634
|
justifyContentHeader: "flex-end",
|
|
3632
3635
|
justifyContentCell: "flex-end",
|
|
3633
3636
|
infoIconTooltipText: "Ohoh"
|
|
3634
3637
|
}),
|
|
3635
|
-
ship:
|
|
3636
|
-
numPassengers:
|
|
3637
|
-
renderCell:
|
|
3638
|
+
ship: le((e) => e.ship, {}),
|
|
3639
|
+
numPassengers: le((e) => e.numPassengers, {
|
|
3640
|
+
renderCell: yo(),
|
|
3638
3641
|
isEditable: !0,
|
|
3639
3642
|
onChange: () => {
|
|
3640
3643
|
},
|
|
@@ -3642,17 +3645,17 @@ const Ss = () => [
|
|
|
3642
3645
|
justifyContentCell: "flex-end",
|
|
3643
3646
|
width: "140px"
|
|
3644
3647
|
}),
|
|
3645
|
-
departure:
|
|
3646
|
-
itemLabelFormatter: (e) =>
|
|
3648
|
+
departure: le((e) => e.departure, {
|
|
3649
|
+
itemLabelFormatter: (e) => Ss(e, "yyyy-MM-dd"),
|
|
3647
3650
|
borderLeft: !0
|
|
3648
3651
|
})
|
|
3649
3652
|
},
|
|
3650
3653
|
columnOrder: ["id", "active", "name", "ship", "numPassengers", "departure"]
|
|
3651
|
-
},
|
|
3652
|
-
const [t, n] =
|
|
3654
|
+
}, Us = Os(), Js = (e) => {
|
|
3655
|
+
const [t, n] = Pe(e), r = S(
|
|
3653
3656
|
(a, i) => {
|
|
3654
3657
|
n(
|
|
3655
|
-
|
|
3658
|
+
ft(t, a.id, {
|
|
3656
3659
|
numPassengers: i ? parseInt(i) : void 0
|
|
3657
3660
|
})
|
|
3658
3661
|
);
|
|
@@ -3661,7 +3664,7 @@ const Ss = () => [
|
|
|
3661
3664
|
), o = S(
|
|
3662
3665
|
(a, i) => {
|
|
3663
3666
|
n(
|
|
3664
|
-
|
|
3667
|
+
ft(t, a.id, {
|
|
3665
3668
|
active: i
|
|
3666
3669
|
})
|
|
3667
3670
|
);
|
|
@@ -3675,78 +3678,78 @@ const Ss = () => [
|
|
|
3675
3678
|
};
|
|
3676
3679
|
};
|
|
3677
3680
|
export {
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3681
|
+
kt as CrudStatusIndicator,
|
|
3682
|
+
Ks as EditableTextCellWithCrudAndModified,
|
|
3683
|
+
xt as GridHooksContext,
|
|
3684
|
+
Ys as GridHooksTable,
|
|
3685
|
+
Pn as ModifiedField,
|
|
3686
|
+
zs as SmallTableCell,
|
|
3687
|
+
qs as SmallTableHead,
|
|
3688
|
+
$s as StandardTable,
|
|
3689
|
+
Mt as StandardTableActionsContext,
|
|
3690
|
+
$r as StandardTableCell,
|
|
3691
|
+
jr as StandardTableCellUi,
|
|
3692
|
+
Gt as StandardTableConfigContext,
|
|
3693
|
+
lo as StandardTableContent,
|
|
3694
|
+
wo as StandardTableHeadRow,
|
|
3695
|
+
Xr as StandardTableRow,
|
|
3696
|
+
Fr as StandardTableRowCheckbox,
|
|
3697
|
+
co as StandardTableRowList,
|
|
3698
|
+
Rt as StandardTableStateContext,
|
|
3699
|
+
Et as StandardTableTableIdContext,
|
|
3700
|
+
On as TableCell,
|
|
3701
|
+
_s as TableColumnGroupHead,
|
|
3702
|
+
qe as TableHeadItem,
|
|
3703
|
+
js as TableHeadRow,
|
|
3704
|
+
Vs as TableRow,
|
|
3705
|
+
Vr as TextCell,
|
|
3706
|
+
le as createColumnConfig,
|
|
3707
|
+
Qs as createEditableTextCellWithStatus,
|
|
3708
|
+
Yt as createGroupConfigAndIdsForRows,
|
|
3709
|
+
Zn as createInternalStandardTableActions,
|
|
3710
|
+
Os as createItemsMocks,
|
|
3711
|
+
yo as createStandardEditableTextCell,
|
|
3712
|
+
Sr as createStandardTableActions,
|
|
3713
|
+
Wt as createStandardTableInitialState,
|
|
3714
|
+
er as createStandardTableReducer,
|
|
3715
|
+
ze as defaultTableHeadRowHeight,
|
|
3716
|
+
Ye as defaultTableRowHeight,
|
|
3717
|
+
Dt as focusOnCell,
|
|
3718
|
+
zr as formatColumnIdToHeaderCellLabel,
|
|
3719
|
+
Yr as formatValueLabel,
|
|
3720
|
+
He as hasIndicatorContent,
|
|
3721
|
+
Us as mockedItems,
|
|
3722
|
+
Gr as multitypeComparator,
|
|
3723
|
+
ft as setListItemFields,
|
|
3724
|
+
Ot as smallTableRowWidth,
|
|
3725
|
+
Xs as standardTableConfigForStories,
|
|
3726
|
+
St as tableBackgroundColorExpanded,
|
|
3727
|
+
Dn as tableBackgroundHoverColorExpanded,
|
|
3728
|
+
ge as tableBorder,
|
|
3729
|
+
In as tableBorderColor,
|
|
3730
|
+
Tn as tableBorderColorExpanded,
|
|
3731
|
+
En as tableBorderHidden,
|
|
3732
|
+
Ne as tableBorderLeft,
|
|
3733
|
+
Pt as tableBorderLeftExpanded,
|
|
3734
|
+
at as useCellBackgroundByColumnConfig,
|
|
3735
|
+
Nr as useCellBackgroundByColumnId,
|
|
3736
|
+
ve as useColumnConfigById,
|
|
3737
|
+
Wr as useColumnValueResolver,
|
|
3738
|
+
Bn as useEditableCell,
|
|
3739
|
+
ar as useFirstColumnConfig,
|
|
3740
|
+
Te as useGridCell,
|
|
3741
|
+
Xn as useGridNavigation,
|
|
3742
|
+
It as useGridNavigationOptionsFromContext,
|
|
3743
|
+
ir as useLastColumnConfig,
|
|
3744
|
+
Js as useListState,
|
|
3745
|
+
Pr as useLocalStateTableContext,
|
|
3746
|
+
Gn as useRevertableValue,
|
|
3747
|
+
Lr as useRowCheckbox,
|
|
3748
|
+
be as useStandardTableActions,
|
|
3746
3749
|
O as useStandardTableConfig,
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3750
|
+
_e as useStandardTableId,
|
|
3751
|
+
ae as useStandardTableState,
|
|
3752
|
+
uo as useTableHeadCheckbox,
|
|
3753
|
+
mo as useTableSortHeader
|
|
3751
3754
|
};
|
|
3752
3755
|
//# sourceMappingURL=index.es.js.map
|