@canonical/maas-react-components 1.33.3 → 1.33.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/@canonical/maas-react-components.es.js +346 -357
- package/dist/@canonical/maas-react-components.umd.js +10 -10
- package/dist/src/lib/components/GenericTable/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/lib/components/GenericTable/GroupRowActions/GroupRowActions.d.ts +0 -7
- package/dist/src/lib/components/GenericTable/GroupRowActions/GroupRowActions.test.d.ts +0 -1
- package/dist/src/lib/components/GenericTable/GroupRowActions/index.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as B, jsx as
|
|
1
|
+
import { jsxs as B, jsx as u, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as ue from "react";
|
|
3
|
-
import Si, { useRef as
|
|
4
|
-
import { useListener as Ei, Link as ki, Spinner as qt, Tooltip as Gt, Button as
|
|
3
|
+
import Si, { useRef as be, useState as de, useEffect as Ce, useCallback as Q, cloneElement as Ci, createContext as $n, useId as et, useContext as Ht, useMemo as le, useReducer as An, forwardRef as _i, useImperativeHandle as Ri, Fragment as Mn, useLayoutEffect as On } from "react";
|
|
4
|
+
import { useListener as Ei, Link as ki, Spinner as qt, Tooltip as Gt, Button as _e, Icon as Re, Row as Fi, Col as Pi, Input as Ii, Label as Di, CheckboxInput as $i, useClickOutside as Ai, useOnEscapePressed as Mi, SearchBox as jn, Select as Oi, ICONS as en } from "@canonical/react-components";
|
|
5
5
|
function Bt(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
@@ -79,14 +79,14 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
79
79
|
size: a = "regular",
|
|
80
80
|
...r
|
|
81
81
|
}) => {
|
|
82
|
-
const l =
|
|
83
|
-
|
|
82
|
+
const l = be(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = de(0);
|
|
83
|
+
Ce(() => {
|
|
84
84
|
g(o === "segmented" ? an(l, c) : 0);
|
|
85
85
|
}, [c, o]);
|
|
86
|
-
const
|
|
86
|
+
const p = Q(() => {
|
|
87
87
|
g(an(l, c));
|
|
88
88
|
}, [l, c, g]);
|
|
89
|
-
return Ei(window,
|
|
89
|
+
return Ei(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
92
|
className: G("p-meter", e, {
|
|
@@ -96,7 +96,7 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
96
96
|
"data-testid": Oe.container,
|
|
97
97
|
ref: l,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ u(Ni, { children: /* @__PURE__ */ u(
|
|
100
100
|
Li,
|
|
101
101
|
{
|
|
102
102
|
data: t,
|
|
@@ -111,7 +111,7 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
|
-
}, Ni = ({ children: e }) => /* @__PURE__ */
|
|
114
|
+
}, Ni = ({ children: e }) => /* @__PURE__ */ u(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
117
|
className: "p-meter__bar",
|
|
@@ -141,15 +141,15 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
141
141
|
${It} ${i}px
|
|
142
142
|
)`
|
|
143
143
|
});
|
|
144
|
-
return /* @__PURE__ */ B(
|
|
145
|
-
o() ? /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ B(we, { children: [
|
|
145
|
+
o() ? /* @__PURE__ */ u(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: "p-meter__filled",
|
|
149
149
|
"data-testid": Oe.meteroverflow,
|
|
150
150
|
style: { backgroundColor: Tn, width: "100%" }
|
|
151
151
|
}
|
|
152
|
-
) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */
|
|
152
|
+
) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */ u(
|
|
153
153
|
"div",
|
|
154
154
|
{
|
|
155
155
|
className: "p-meter__filled",
|
|
@@ -158,7 +158,7 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
158
158
|
},
|
|
159
159
|
`meter-${s}`
|
|
160
160
|
)),
|
|
161
|
-
i > 0 && /* @__PURE__ */
|
|
161
|
+
i > 0 && /* @__PURE__ */ u(
|
|
162
162
|
"div",
|
|
163
163
|
{
|
|
164
164
|
className: "p-meter__separators",
|
|
@@ -170,7 +170,7 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
170
170
|
}, Hi = ({
|
|
171
171
|
className: e,
|
|
172
172
|
children: n
|
|
173
|
-
}) => /* @__PURE__ */
|
|
173
|
+
}) => /* @__PURE__ */ u(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: G("p-meter__label", e),
|
|
@@ -179,12 +179,12 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
Vi.Label = Hi;
|
|
182
|
-
const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */
|
|
182
|
+
const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), qi = ({
|
|
183
183
|
percentComplete: e
|
|
184
184
|
}) => /* @__PURE__ */ B("small", { className: "progress-indicator", children: [
|
|
185
185
|
e,
|
|
186
186
|
"% ",
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ u(qt, { className: "progress-indicator__spinner" })
|
|
188
188
|
] }), Gi = ({
|
|
189
189
|
text: e,
|
|
190
190
|
children: n,
|
|
@@ -192,34 +192,34 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(ki, { ...t, href:
|
|
|
192
192
|
isPending: i = !1
|
|
193
193
|
}) => {
|
|
194
194
|
const o = Math.floor(Math.random() * 750);
|
|
195
|
-
return i ? /* @__PURE__ */
|
|
195
|
+
return i ? /* @__PURE__ */ u(
|
|
196
196
|
"span",
|
|
197
197
|
{
|
|
198
198
|
"aria-label": "loading",
|
|
199
199
|
className: G("p-placeholder", t),
|
|
200
200
|
role: "progressbar",
|
|
201
201
|
style: { animationDelay: `${o}ms` },
|
|
202
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ u("span", { "aria-hidden": "true", children: e || n || "Loading" })
|
|
203
203
|
}
|
|
204
|
-
) : /* @__PURE__ */
|
|
205
|
-
}, Bi = ({ children: e }) => /* @__PURE__ */
|
|
204
|
+
) : /* @__PURE__ */ u(we, { children: n });
|
|
205
|
+
}, Bi = ({ children: e }) => /* @__PURE__ */ u(we, { children: e }), Ui = ({
|
|
206
206
|
isCollapsed: e,
|
|
207
207
|
setIsCollapsed: n,
|
|
208
208
|
className: t
|
|
209
|
-
}) => /* @__PURE__ */
|
|
209
|
+
}) => /* @__PURE__ */ u(
|
|
210
210
|
Gt,
|
|
211
211
|
{
|
|
212
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
213
|
-
message: /* @__PURE__ */ B(
|
|
213
|
+
message: /* @__PURE__ */ B(we, { children: [
|
|
214
214
|
e ? "expand" : "collapse",
|
|
215
215
|
"( ",
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ u("code", { children: "[" }),
|
|
217
217
|
" )"
|
|
218
218
|
] }),
|
|
219
219
|
position: "right",
|
|
220
220
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
221
|
-
children: /* @__PURE__ */
|
|
222
|
-
|
|
221
|
+
children: /* @__PURE__ */ u(
|
|
222
|
+
_e,
|
|
223
223
|
{
|
|
224
224
|
appearance: "base",
|
|
225
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
@@ -230,25 +230,25 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(ki, { ...t, href:
|
|
|
230
230
|
onClick: (i) => {
|
|
231
231
|
n(!e), i.stopPropagation(), i.currentTarget.blur();
|
|
232
232
|
},
|
|
233
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ u(Re, { light: !0, name: "sidebar-toggle" })
|
|
234
234
|
}
|
|
235
235
|
)
|
|
236
236
|
}
|
|
237
|
-
), Ki = ({ children: e }) => /* @__PURE__ */
|
|
237
|
+
), Ki = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Wi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), Yi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Xi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Ji = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(Re, { className: "p-side-navigation__icon", light: e, name: n }), Zi = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: G("p-side-navigation__item", n, { "has-active-child": t }), children: e }), eo = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: G("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), to = ({
|
|
238
238
|
as: e,
|
|
239
239
|
...n
|
|
240
|
-
}) => /* @__PURE__ */
|
|
240
|
+
}) => /* @__PURE__ */ u(
|
|
241
241
|
e || "a",
|
|
242
242
|
{
|
|
243
243
|
className: G("p-side-navigation__link", n.className),
|
|
244
244
|
...n
|
|
245
245
|
}
|
|
246
|
-
), no = ({ children: e, className: n }) => /* @__PURE__ */
|
|
246
|
+
), no = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: G("p-side-navigation__list", n), children: e }), io = ({
|
|
247
247
|
as: e,
|
|
248
248
|
children: n,
|
|
249
249
|
className: t,
|
|
250
250
|
...i
|
|
251
|
-
}) => /* @__PURE__ */
|
|
251
|
+
}) => /* @__PURE__ */ u(e || "a", { className: G("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), oo = ({ children: e }) => Ci(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ao = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
|
|
252
252
|
"div",
|
|
253
253
|
{
|
|
254
254
|
className: G("p-panel__logo-name is-fading-when-collapsed", {
|
|
@@ -256,12 +256,12 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(ki, { ...t, href:
|
|
|
256
256
|
}),
|
|
257
257
|
children: e
|
|
258
258
|
}
|
|
259
|
-
), ro = ({ children: e }) => /* @__PURE__ */
|
|
259
|
+
), ro = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-navigation__logo-tag", children: e }), lo = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-panel__logo-text", children: e }), so = ({
|
|
260
260
|
children: e,
|
|
261
261
|
className: n,
|
|
262
262
|
onClick: t
|
|
263
|
-
}) => /* @__PURE__ */
|
|
264
|
-
|
|
263
|
+
}) => /* @__PURE__ */ u(
|
|
264
|
+
_e,
|
|
265
265
|
{
|
|
266
266
|
appearance: "base",
|
|
267
267
|
className: G(
|
|
@@ -271,9 +271,9 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(ki, { ...t, href:
|
|
|
271
271
|
onClick: (i) => {
|
|
272
272
|
t && t(i), i.stopPropagation(), i.currentTarget.blur();
|
|
273
273
|
},
|
|
274
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ u(we, { children: e })
|
|
275
275
|
}
|
|
276
|
-
), co = ({ children: e }) => /* @__PURE__ */
|
|
276
|
+
), co = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: G("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), po = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: G("p-panel is-dark", n), children: e }) });
|
|
277
277
|
re.Header = Qi;
|
|
278
278
|
re.Banner = Bi;
|
|
279
279
|
re.Drawer = Yi;
|
|
@@ -295,7 +295,7 @@ re.LogoText = lo;
|
|
|
295
295
|
po.MenuButton = so;
|
|
296
296
|
const Ut = $n(null), zn = ({ children: e }) => {
|
|
297
297
|
const n = et();
|
|
298
|
-
return /* @__PURE__ */
|
|
298
|
+
return /* @__PURE__ */ u(Ut.Provider, { value: n, children: /* @__PURE__ */ u(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
role: "group",
|
|
@@ -307,14 +307,14 @@ const Ut = $n(null), zn = ({ children: e }) => {
|
|
|
307
307
|
) });
|
|
308
308
|
}, uo = ({ children: e }) => {
|
|
309
309
|
const n = Ht(Ut);
|
|
310
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ u("label", { id: `${n}_label`, children: e });
|
|
311
311
|
}, go = ({ children: e }) => {
|
|
312
312
|
const n = Ht(Ut);
|
|
313
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ u("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
|
|
314
314
|
};
|
|
315
315
|
zn.Label = uo;
|
|
316
316
|
zn.Description = go;
|
|
317
|
-
const Kt = ({ children: e }) => /* @__PURE__ */
|
|
317
|
+
const Kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section", children: e }), fo = ({ children: e }) => /* @__PURE__ */ u("h5", { className: "p-form-section__title u-no-padding--top", children: e }), mo = ({ children: e }) => /* @__PURE__ */ u("p", { className: "p-form-help-text", children: e }), vo = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section__content", children: e });
|
|
318
318
|
Kt.Title = fo;
|
|
319
319
|
Kt.Description = mo;
|
|
320
320
|
Kt.Content = vo;
|
|
@@ -337,14 +337,14 @@ function xo(e) {
|
|
|
337
337
|
const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
338
338
|
}]), Ln = ({ children: e }) => {
|
|
339
339
|
const n = ue.useRef(null), t = xo(n), [i, o] = ue.useState(!1);
|
|
340
|
-
return /* @__PURE__ */
|
|
340
|
+
return /* @__PURE__ */ u(
|
|
341
341
|
"header",
|
|
342
342
|
{
|
|
343
343
|
className: G("main-toolbar", {
|
|
344
344
|
"main-toolbar--stacked": i
|
|
345
345
|
}),
|
|
346
346
|
ref: n,
|
|
347
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ u(Vn.Provider, { value: t, children: /* @__PURE__ */ u(Nn.Provider, { value: [i, o], children: e }) })
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
350
|
}, ho = ({
|
|
@@ -352,7 +352,7 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
|
352
352
|
children: n,
|
|
353
353
|
className: t,
|
|
354
354
|
...i
|
|
355
|
-
}) => /* @__PURE__ */
|
|
355
|
+
}) => /* @__PURE__ */ u(
|
|
356
356
|
e || "h1",
|
|
357
357
|
{
|
|
358
358
|
className: G("main-toolbar__title p-heading--4", t),
|
|
@@ -364,8 +364,8 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
|
364
364
|
const n = ue.useContext(Vn), [t, i] = ue.useContext(Nn), o = ue.useRef(null);
|
|
365
365
|
return ue.useEffect(() => {
|
|
366
366
|
!o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
|
|
367
|
-
}, [i, n, o]), /* @__PURE__ */ B(
|
|
368
|
-
/* @__PURE__ */
|
|
367
|
+
}, [i, n, o]), /* @__PURE__ */ B(we, { children: [
|
|
368
|
+
/* @__PURE__ */ u(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
371
371
|
"aria-hidden": "true",
|
|
@@ -375,7 +375,7 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
|
375
375
|
children: e
|
|
376
376
|
}
|
|
377
377
|
),
|
|
378
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ u(
|
|
379
379
|
"div",
|
|
380
380
|
{
|
|
381
381
|
className: G("main-toolbar__controls", {
|
|
@@ -396,15 +396,15 @@ const ot = ({
|
|
|
396
396
|
...o
|
|
397
397
|
}) => {
|
|
398
398
|
const a = t || "section", r = G("content-section", n);
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
}, yo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */
|
|
399
|
+
return /* @__PURE__ */ u(a, { ...o, className: r, children: /* @__PURE__ */ u(Fi, { children: /* @__PURE__ */ u(Pi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ u(we, { children: e }) }) }) });
|
|
400
|
+
}, yo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ u(
|
|
401
401
|
t || "h1",
|
|
402
402
|
{
|
|
403
403
|
...i,
|
|
404
404
|
className: G("content-section__title p-heading--4", n),
|
|
405
405
|
children: e
|
|
406
406
|
}
|
|
407
|
-
), bo = ({ children: e, className: n }) => /* @__PURE__ */
|
|
407
|
+
), bo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: G("content-section__header", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: G("content-section__body", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: G("content-section__footer", n), children: e });
|
|
408
408
|
ot.Title = yo;
|
|
409
409
|
ot.Header = bo;
|
|
410
410
|
ot.Content = So;
|
|
@@ -413,7 +413,7 @@ const Hn = ({
|
|
|
413
413
|
children: e,
|
|
414
414
|
className: n,
|
|
415
415
|
isVisible: t
|
|
416
|
-
}) => /* @__PURE__ */
|
|
416
|
+
}) => /* @__PURE__ */ u(
|
|
417
417
|
"div",
|
|
418
418
|
{
|
|
419
419
|
className: G("fade-in--down", n),
|
|
@@ -424,7 +424,7 @@ const Hn = ({
|
|
|
424
424
|
), Br = ({
|
|
425
425
|
children: e,
|
|
426
426
|
...n
|
|
427
|
-
}) => /* @__PURE__ */
|
|
427
|
+
}) => /* @__PURE__ */ u(Hn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...n, children: e }) }), _o = ({
|
|
428
428
|
className: e,
|
|
429
429
|
currentPage: n,
|
|
430
430
|
error: t,
|
|
@@ -435,26 +435,26 @@ const Hn = ({
|
|
|
435
435
|
onPreviousClick: l,
|
|
436
436
|
totalPages: s,
|
|
437
437
|
...c
|
|
438
|
-
}) => /* @__PURE__ */
|
|
438
|
+
}) => /* @__PURE__ */ u(
|
|
439
439
|
"nav",
|
|
440
440
|
{
|
|
441
441
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
442
442
|
className: G("p-pagination", e),
|
|
443
443
|
children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
-
|
|
444
|
+
/* @__PURE__ */ u(
|
|
445
|
+
_e,
|
|
446
446
|
{
|
|
447
447
|
"aria-label": "Previous page",
|
|
448
448
|
className: "p-pagination__link--previous",
|
|
449
449
|
disabled: n === 1 || i,
|
|
450
450
|
onClick: l,
|
|
451
451
|
type: "button",
|
|
452
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ u(Re, { name: "chevron-down" })
|
|
453
453
|
}
|
|
454
454
|
),
|
|
455
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ u("strong", { children: "Page " }),
|
|
456
456
|
" ",
|
|
457
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ u(
|
|
458
458
|
Ii,
|
|
459
459
|
{
|
|
460
460
|
"aria-label": "page number",
|
|
@@ -474,15 +474,15 @@ const Hn = ({
|
|
|
474
474
|
" of ",
|
|
475
475
|
s
|
|
476
476
|
] }),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
|
|
477
|
+
/* @__PURE__ */ u(
|
|
478
|
+
_e,
|
|
479
479
|
{
|
|
480
480
|
"aria-label": "Next page",
|
|
481
481
|
className: "p-pagination__link--next",
|
|
482
482
|
disabled: n === s || i,
|
|
483
483
|
onClick: r,
|
|
484
484
|
type: "button",
|
|
485
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ u(Re, { name: "chevron-up" })
|
|
486
486
|
}
|
|
487
487
|
)
|
|
488
488
|
] })
|
|
@@ -494,7 +494,7 @@ const Hn = ({
|
|
|
494
494
|
totalPages: i
|
|
495
495
|
}) => {
|
|
496
496
|
const [o, a] = de(e), [r, l] = de("");
|
|
497
|
-
return /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ u(
|
|
498
498
|
_o,
|
|
499
499
|
{
|
|
500
500
|
currentPage: o,
|
|
@@ -504,8 +504,8 @@ const Hn = ({
|
|
|
504
504
|
a(e), l("");
|
|
505
505
|
},
|
|
506
506
|
onInputChange: (g) => {
|
|
507
|
-
const { value:
|
|
508
|
-
|
|
507
|
+
const { value: p, valueAsNumber: m } = g.target;
|
|
508
|
+
p ? (a(m), m > i || m < 1 ? l(`${m} is not a valid page number.`) : (l(""), t(m))) : l("Enter a page number.");
|
|
509
509
|
},
|
|
510
510
|
onNextClick: () => {
|
|
511
511
|
a((g) => Number(g) + 1), t(Number(e) + 1);
|
|
@@ -516,9 +516,9 @@ const Hn = ({
|
|
|
516
516
|
totalPages: i
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
|
-
}, Ur = ({ activeStep: e, items: n }) => /* @__PURE__ */
|
|
519
|
+
}, Ur = ({ activeStep: e, items: n }) => /* @__PURE__ */ u("ol", { className: "stepper", children: n.map((t, i) => {
|
|
520
520
|
const o = i === e, a = i < e;
|
|
521
|
-
return /* @__PURE__ */
|
|
521
|
+
return /* @__PURE__ */ u("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ u(
|
|
522
522
|
"p",
|
|
523
523
|
{
|
|
524
524
|
"aria-label": a ? `${t} (completed)` : t,
|
|
@@ -543,7 +543,7 @@ var rn;
|
|
|
543
543
|
function Eo() {
|
|
544
544
|
if (rn) return K;
|
|
545
545
|
rn = 1;
|
|
546
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120,
|
|
546
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
547
547
|
function F(x) {
|
|
548
548
|
if (typeof x == "object" && x !== null) {
|
|
549
549
|
var V = x.$$typeof;
|
|
@@ -562,7 +562,7 @@ function Eo() {
|
|
|
562
562
|
case l:
|
|
563
563
|
case d:
|
|
564
564
|
case m:
|
|
565
|
-
case
|
|
565
|
+
case p:
|
|
566
566
|
case r:
|
|
567
567
|
return x;
|
|
568
568
|
default:
|
|
@@ -577,7 +577,7 @@ function Eo() {
|
|
|
577
577
|
function A(x) {
|
|
578
578
|
return F(x) === c;
|
|
579
579
|
}
|
|
580
|
-
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo =
|
|
580
|
+
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = p, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
|
|
581
581
|
return A(x) || F(x) === s;
|
|
582
582
|
}, K.isConcurrentMode = A, K.isContextConsumer = function(x) {
|
|
583
583
|
return F(x) === l;
|
|
@@ -592,7 +592,7 @@ function Eo() {
|
|
|
592
592
|
}, K.isLazy = function(x) {
|
|
593
593
|
return F(x) === m;
|
|
594
594
|
}, K.isMemo = function(x) {
|
|
595
|
-
return F(x) ===
|
|
595
|
+
return F(x) === p;
|
|
596
596
|
}, K.isPortal = function(x) {
|
|
597
597
|
return F(x) === t;
|
|
598
598
|
}, K.isProfiler = function(x) {
|
|
@@ -602,7 +602,7 @@ function Eo() {
|
|
|
602
602
|
}, K.isSuspense = function(x) {
|
|
603
603
|
return F(x) === f;
|
|
604
604
|
}, K.isValidElementType = function(x) {
|
|
605
|
-
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof ===
|
|
605
|
+
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === p || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === P || x.$$typeof === h || x.$$typeof === T || x.$$typeof === v);
|
|
606
606
|
}, K.typeOf = F, K;
|
|
607
607
|
}
|
|
608
608
|
var W = {};
|
|
@@ -617,10 +617,10 @@ var W = {};
|
|
|
617
617
|
var ln;
|
|
618
618
|
function ko() {
|
|
619
619
|
return ln || (ln = 1, process.env.NODE_ENV !== "production" && function() {
|
|
620
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120,
|
|
620
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
621
621
|
function F(b) {
|
|
622
622
|
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
623
|
-
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof ===
|
|
623
|
+
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === P || b.$$typeof === h || b.$$typeof === T || b.$$typeof === v);
|
|
624
624
|
}
|
|
625
625
|
function A(b) {
|
|
626
626
|
if (typeof b == "object" && b !== null) {
|
|
@@ -642,7 +642,7 @@ function ko() {
|
|
|
642
642
|
case l:
|
|
643
643
|
case d:
|
|
644
644
|
case m:
|
|
645
|
-
case
|
|
645
|
+
case p:
|
|
646
646
|
case r:
|
|
647
647
|
return Te;
|
|
648
648
|
default:
|
|
@@ -654,7 +654,7 @@ function ko() {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var x = s, V = c, H = l, J = r, U = n, pe = d, se = i, ve = m, D =
|
|
657
|
+
var x = s, V = c, H = l, J = r, U = n, pe = d, se = i, ve = m, D = p, E = t, q = a, Y = o, Z = f, oe = !1;
|
|
658
658
|
function te(b) {
|
|
659
659
|
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(b) || A(b) === s;
|
|
660
660
|
}
|
|
@@ -680,7 +680,7 @@ function ko() {
|
|
|
680
680
|
return A(b) === m;
|
|
681
681
|
}
|
|
682
682
|
function I(b) {
|
|
683
|
-
return A(b) ===
|
|
683
|
+
return A(b) === p;
|
|
684
684
|
}
|
|
685
685
|
function $(b) {
|
|
686
686
|
return A(b) === t;
|
|
@@ -800,9 +800,9 @@ function Po() {
|
|
|
800
800
|
(s || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
801
801
|
), f instanceof Error && !(f.message in t)) {
|
|
802
802
|
t[f.message] = !0;
|
|
803
|
-
var
|
|
803
|
+
var p = c ? c() : "";
|
|
804
804
|
e(
|
|
805
|
-
"Failed " + l + " type: " + f.message + (
|
|
805
|
+
"Failed " + l + " type: " + f.message + (p ?? "")
|
|
806
806
|
);
|
|
807
807
|
}
|
|
808
808
|
}
|
|
@@ -836,7 +836,7 @@ function Io() {
|
|
|
836
836
|
if (typeof k == "function")
|
|
837
837
|
return k;
|
|
838
838
|
}
|
|
839
|
-
var g = "<<anonymous>>",
|
|
839
|
+
var g = "<<anonymous>>", p = {
|
|
840
840
|
array: h("array"),
|
|
841
841
|
bigint: h("bigint"),
|
|
842
842
|
bool: h("boolean"),
|
|
@@ -845,7 +845,7 @@ function Io() {
|
|
|
845
845
|
object: h("object"),
|
|
846
846
|
string: h("string"),
|
|
847
847
|
symbol: h("symbol"),
|
|
848
|
-
any:
|
|
848
|
+
any: T(),
|
|
849
849
|
arrayOf: F,
|
|
850
850
|
element: A(),
|
|
851
851
|
elementType: x(),
|
|
@@ -901,7 +901,7 @@ function Io() {
|
|
|
901
901
|
}
|
|
902
902
|
return P(k);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function T() {
|
|
905
905
|
return P(r);
|
|
906
906
|
}
|
|
907
907
|
function F(w) {
|
|
@@ -1130,7 +1130,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1130
1130
|
function te(w) {
|
|
1131
1131
|
return !w.constructor || !w.constructor.name ? g : w.constructor.name;
|
|
1132
1132
|
}
|
|
1133
|
-
return
|
|
1133
|
+
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
1134
1134
|
}, wt;
|
|
1135
1135
|
}
|
|
1136
1136
|
var yt, fn;
|
|
@@ -2711,7 +2711,7 @@ function Pe(e) {
|
|
|
2711
2711
|
function la(e) {
|
|
2712
2712
|
var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, r = e.maxFiles, l = e.validator;
|
|
2713
2713
|
return !a && n.length > 1 || a && r >= 1 && n.length > r ? !1 : n.every(function(s) {
|
|
2714
|
-
var c = Yn(s, t), d = He(c, 1), f = d[0], g = Xn(s, i, o),
|
|
2714
|
+
var c = Yn(s, t), d = He(c, 1), f = d[0], g = Xn(s, i, o), p = He(g, 1), m = p[0], v = l ? l(s) : null;
|
|
2715
2715
|
return f && m && !v;
|
|
2716
2716
|
});
|
|
2717
2717
|
}
|
|
@@ -2736,7 +2736,7 @@ function pa() {
|
|
|
2736
2736
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2737
2737
|
return sa(e) || ca(e);
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function ye() {
|
|
2740
2740
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
2741
2741
|
n[t] = arguments[t];
|
|
2742
2742
|
return function(i) {
|
|
@@ -3092,7 +3092,7 @@ var Ot = {
|
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
3094
|
function ti() {
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ee(ee({}, ei), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop,
|
|
3095
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ee(ee({}, ei), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, p = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, P = n.onFileDialogOpen, h = n.useFsAccessApi, T = n.autoFocus, F = n.preventDropOnDocument, A = n.noClick, x = n.noKeyboard, V = n.noDrag, H = n.noDragEventsBubbling, J = n.onError, U = n.validator, pe = le(function() {
|
|
3096
3096
|
return ga(t);
|
|
3097
3097
|
}, [t]), se = le(function() {
|
|
3098
3098
|
return da(t);
|
|
@@ -3100,39 +3100,39 @@ function ti() {
|
|
|
3100
3100
|
return typeof P == "function" ? P : kn;
|
|
3101
3101
|
}, [P]), D = le(function() {
|
|
3102
3102
|
return typeof v == "function" ? v : kn;
|
|
3103
|
-
}, [v]), E =
|
|
3103
|
+
}, [v]), E = be(null), q = be(null), Y = An(Fa, Ot), Z = St(Y, 2), oe = Z[0], te = Z[1], w = oe.isFocused, k = oe.isFileDialogActive, N = be(typeof window < "u" && window.isSecureContext && h && ua()), S = function() {
|
|
3104
3104
|
!N.current && k && setTimeout(function() {
|
|
3105
3105
|
if (q.current) {
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3106
|
+
var z = q.current.files;
|
|
3107
|
+
z.length || (te({
|
|
3108
3108
|
type: "closeDialog"
|
|
3109
3109
|
}), D());
|
|
3110
3110
|
}
|
|
3111
3111
|
}, 300);
|
|
3112
3112
|
};
|
|
3113
|
-
|
|
3113
|
+
Ce(function() {
|
|
3114
3114
|
return window.addEventListener("focus", S, !1), function() {
|
|
3115
3115
|
window.removeEventListener("focus", S, !1);
|
|
3116
3116
|
};
|
|
3117
3117
|
}, [q, k, D, N]);
|
|
3118
|
-
var R =
|
|
3119
|
-
E.current && E.current.contains(
|
|
3118
|
+
var R = be([]), y = function(z) {
|
|
3119
|
+
E.current && E.current.contains(z.target) || (z.preventDefault(), R.current = []);
|
|
3120
3120
|
};
|
|
3121
|
-
|
|
3121
|
+
Ce(function() {
|
|
3122
3122
|
return F && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", y, !1)), function() {
|
|
3123
3123
|
F && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", y));
|
|
3124
3124
|
};
|
|
3125
|
-
}, [E, F]),
|
|
3126
|
-
return !i &&
|
|
3125
|
+
}, [E, F]), Ce(function() {
|
|
3126
|
+
return !i && T && E.current && E.current.focus(), function() {
|
|
3127
3127
|
};
|
|
3128
|
-
}, [E,
|
|
3128
|
+
}, [E, T, i]);
|
|
3129
3129
|
var C = Q(function(_) {
|
|
3130
3130
|
J ? J(_) : console.error(_);
|
|
3131
3131
|
}, [J]), I = Q(function(_) {
|
|
3132
|
-
_.preventDefault(), _.persist(), Ge(_), R.current = [].concat(ya(R.current), [_.target]), Ye(_) && Promise.resolve(o(_)).then(function(
|
|
3132
|
+
_.preventDefault(), _.persist(), Ge(_), R.current = [].concat(ya(R.current), [_.target]), Ye(_) && Promise.resolve(o(_)).then(function(z) {
|
|
3133
3133
|
if (!(nt(_) && !H)) {
|
|
3134
|
-
var ie =
|
|
3135
|
-
files:
|
|
3134
|
+
var ie = z.length, ae = ie > 0 && la({
|
|
3135
|
+
files: z,
|
|
3136
3136
|
accept: pe,
|
|
3137
3137
|
minSize: r,
|
|
3138
3138
|
maxSize: a,
|
|
@@ -3147,30 +3147,30 @@ function ti() {
|
|
|
3147
3147
|
type: "setDraggedFiles"
|
|
3148
3148
|
}), c && c(_);
|
|
3149
3149
|
}
|
|
3150
|
-
}).catch(function(
|
|
3151
|
-
return C(
|
|
3150
|
+
}).catch(function(z) {
|
|
3151
|
+
return C(z);
|
|
3152
3152
|
});
|
|
3153
3153
|
}, [o, c, C, H, pe, r, a, l, s, U]), $ = Q(function(_) {
|
|
3154
3154
|
_.preventDefault(), _.persist(), Ge(_);
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3155
|
+
var z = Ye(_);
|
|
3156
|
+
if (z && _.dataTransfer)
|
|
3157
3157
|
try {
|
|
3158
3158
|
_.dataTransfer.dropEffect = "copy";
|
|
3159
3159
|
} catch {
|
|
3160
3160
|
}
|
|
3161
|
-
return
|
|
3161
|
+
return z && f && f(_), !1;
|
|
3162
3162
|
}, [f, H]), L = Q(function(_) {
|
|
3163
3163
|
_.preventDefault(), _.persist(), Ge(_);
|
|
3164
|
-
var
|
|
3164
|
+
var z = R.current.filter(function(ae) {
|
|
3165
3165
|
return E.current && E.current.contains(ae);
|
|
3166
|
-
}), ie =
|
|
3167
|
-
ie !== -1 &&
|
|
3166
|
+
}), ie = z.indexOf(_.target);
|
|
3167
|
+
ie !== -1 && z.splice(ie, 1), R.current = z, !(z.length > 0) && (te({
|
|
3168
3168
|
type: "setDraggedFiles",
|
|
3169
3169
|
isDragActive: !1,
|
|
3170
3170
|
isDragAccept: !1,
|
|
3171
3171
|
isDragReject: !1
|
|
3172
3172
|
}), Ye(_) && d && d(_));
|
|
3173
|
-
}, [E, d, H]), M = Q(function(_,
|
|
3173
|
+
}, [E, d, H]), M = Q(function(_, z) {
|
|
3174
3174
|
var ie = [], ae = [];
|
|
3175
3175
|
_.forEach(function(fe) {
|
|
3176
3176
|
var ze = Yn(fe, pe), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Xn(fe, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = U ? U(fe) : null;
|
|
@@ -3195,12 +3195,12 @@ function ti() {
|
|
|
3195
3195
|
fileRejections: ae,
|
|
3196
3196
|
isDragReject: ae.length > 0,
|
|
3197
3197
|
type: "setFiles"
|
|
3198
|
-
}), g && g(ie, ae,
|
|
3199
|
-
}, [te, l, pe, r, a, s, g,
|
|
3200
|
-
_.preventDefault(), _.persist(), Ge(_), R.current = [], Ye(_) && Promise.resolve(o(_)).then(function(
|
|
3201
|
-
nt(_) && !H || M(
|
|
3202
|
-
}).catch(function(
|
|
3203
|
-
return C(
|
|
3198
|
+
}), g && g(ie, ae, z), ae.length > 0 && m && m(ae, z), ie.length > 0 && p && p(ie, z);
|
|
3199
|
+
}, [te, l, pe, r, a, s, g, p, m, U]), ne = Q(function(_) {
|
|
3200
|
+
_.preventDefault(), _.persist(), Ge(_), R.current = [], Ye(_) && Promise.resolve(o(_)).then(function(z) {
|
|
3201
|
+
nt(_) && !H || M(z, _);
|
|
3202
|
+
}).catch(function(z) {
|
|
3203
|
+
return C(z);
|
|
3204
3204
|
}), te({
|
|
3205
3205
|
type: "reset"
|
|
3206
3206
|
});
|
|
@@ -3213,16 +3213,16 @@ function ti() {
|
|
|
3213
3213
|
multiple: l,
|
|
3214
3214
|
types: se
|
|
3215
3215
|
};
|
|
3216
|
-
window.showOpenFilePicker(_).then(function(
|
|
3217
|
-
return o(
|
|
3218
|
-
}).then(function(
|
|
3219
|
-
M(
|
|
3216
|
+
window.showOpenFilePicker(_).then(function(z) {
|
|
3217
|
+
return o(z);
|
|
3218
|
+
}).then(function(z) {
|
|
3219
|
+
M(z, null), te({
|
|
3220
3220
|
type: "closeDialog"
|
|
3221
3221
|
});
|
|
3222
|
-
}).catch(function(
|
|
3223
|
-
fa(
|
|
3222
|
+
}).catch(function(z) {
|
|
3223
|
+
fa(z) ? (D(z), te({
|
|
3224
3224
|
type: "closeDialog"
|
|
3225
|
-
})) : ma(
|
|
3225
|
+
})) : ma(z) ? (N.current = !1, q.current ? (q.current.value = null, q.current.click()) : C(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : C(z);
|
|
3226
3226
|
});
|
|
3227
3227
|
return;
|
|
3228
3228
|
}
|
|
@@ -3241,26 +3241,26 @@ function ti() {
|
|
|
3241
3241
|
});
|
|
3242
3242
|
}, []), Zt = Q(function() {
|
|
3243
3243
|
A || (pa() ? setTimeout(b, 0) : b());
|
|
3244
|
-
}, [A, b]), $e = function(
|
|
3245
|
-
return i ? null :
|
|
3246
|
-
}, rt = function(
|
|
3247
|
-
return x ? null : $e(
|
|
3248
|
-
}, qe = function(
|
|
3249
|
-
return V ? null : $e(
|
|
3250
|
-
}, Ge = function(
|
|
3251
|
-
H &&
|
|
3244
|
+
}, [A, b]), $e = function(z) {
|
|
3245
|
+
return i ? null : z;
|
|
3246
|
+
}, rt = function(z) {
|
|
3247
|
+
return x ? null : $e(z);
|
|
3248
|
+
}, qe = function(z) {
|
|
3249
|
+
return V ? null : $e(z);
|
|
3250
|
+
}, Ge = function(z) {
|
|
3251
|
+
H && z.stopPropagation();
|
|
3252
3252
|
}, hi = le(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3254
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, z = _.refKey, ie = z === void 0 ? "ref" : z, ae = _.role, fe = _.onKeyDown, ze = _.onFocus, Ae = _.onBlur, lt = _.onClick, st = _.onDragEnter, ct = _.onDragOver, Be = _.onDragLeave, pt = _.onDrop, ut = it(_, ha);
|
|
3255
3255
|
return ee(ee(Mt({
|
|
3256
|
-
onKeyDown: rt(
|
|
3257
|
-
onFocus: rt(
|
|
3258
|
-
onBlur: rt(
|
|
3259
|
-
onClick: $e(
|
|
3260
|
-
onDragEnter: qe(
|
|
3261
|
-
onDragOver: qe(
|
|
3262
|
-
onDragLeave: qe(
|
|
3263
|
-
onDrop: qe(
|
|
3256
|
+
onKeyDown: rt(ye(fe, ge)),
|
|
3257
|
+
onFocus: rt(ye(ze, Fe)),
|
|
3258
|
+
onBlur: rt(ye(Ae, Te)),
|
|
3259
|
+
onClick: $e(ye(lt, Zt)),
|
|
3260
|
+
onDragEnter: qe(ye(st, I)),
|
|
3261
|
+
onDragOver: qe(ye(ct, $)),
|
|
3262
|
+
onDragLeave: qe(ye(Be, L)),
|
|
3263
|
+
onDrop: qe(ye(pt, ne)),
|
|
3264
3264
|
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
3265
3265
|
}, ie, E), !i && !x ? {
|
|
3266
3266
|
tabIndex: 0
|
|
@@ -3270,7 +3270,7 @@ function ti() {
|
|
|
3270
3270
|
_.stopPropagation();
|
|
3271
3271
|
}, []), yi = le(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3273
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, z = _.refKey, ie = z === void 0 ? "ref" : z, ae = _.onChange, fe = _.onClick, ze = it(_, wa), Ae = Mt({
|
|
3274
3274
|
accept: pe,
|
|
3275
3275
|
multiple: l,
|
|
3276
3276
|
type: "file",
|
|
@@ -3286,8 +3286,8 @@ function ti() {
|
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
whiteSpace: "nowrap"
|
|
3288
3288
|
},
|
|
3289
|
-
onChange: $e(
|
|
3290
|
-
onClick: $e(
|
|
3289
|
+
onChange: $e(ye(ae, ne)),
|
|
3290
|
+
onClick: $e(ye(fe, wi)),
|
|
3291
3291
|
tabIndex: -1
|
|
3292
3292
|
}, ie, q);
|
|
3293
3293
|
return ee(ee({}, Ae), ze);
|
|
@@ -3409,60 +3409,60 @@ const Pa = () => {
|
|
|
3409
3409
|
"is-error": !!n
|
|
3410
3410
|
}),
|
|
3411
3411
|
children: [
|
|
3412
|
-
o && /* @__PURE__ */
|
|
3413
|
-
i && /* @__PURE__ */
|
|
3412
|
+
o && /* @__PURE__ */ u(Di, { id: g, children: o }),
|
|
3413
|
+
i && /* @__PURE__ */ u("p", { className: "p-form-help-text", children: i }),
|
|
3414
3414
|
/* @__PURE__ */ B("div", { className: "p-form__control", children: [
|
|
3415
|
-
!a || t.length < a ? /* @__PURE__ */
|
|
3415
|
+
!a || t.length < a ? /* @__PURE__ */ u("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ u(
|
|
3416
3416
|
"div",
|
|
3417
3417
|
{
|
|
3418
3418
|
...f(),
|
|
3419
3419
|
"aria-labelledby": o ? g : void 0,
|
|
3420
3420
|
className: "file-upload",
|
|
3421
3421
|
"data-testid": "file-upload",
|
|
3422
|
-
children: /* @__PURE__ */
|
|
3422
|
+
children: /* @__PURE__ */ u("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
|
|
3423
3423
|
}
|
|
3424
3424
|
) }) : null,
|
|
3425
3425
|
n ? /* @__PURE__ */ B("p", { className: "p-form-validation__message", children: [
|
|
3426
|
-
/* @__PURE__ */
|
|
3426
|
+
/* @__PURE__ */ u("strong", { children: "Error: " }),
|
|
3427
3427
|
n
|
|
3428
3428
|
] }) : null,
|
|
3429
3429
|
/* @__PURE__ */ B("div", { className: "file-upload__files-list", children: [
|
|
3430
|
-
s && s.map((
|
|
3430
|
+
s && s.map((p) => /* @__PURE__ */ B("span", { className: "is-error", children: [
|
|
3431
3431
|
/* @__PURE__ */ B("div", { className: "file-upload__file is-rejected", children: [
|
|
3432
|
-
|
|
3433
|
-
/* @__PURE__ */
|
|
3434
|
-
|
|
3432
|
+
p.file.name,
|
|
3433
|
+
/* @__PURE__ */ u(
|
|
3434
|
+
_e,
|
|
3435
3435
|
{
|
|
3436
3436
|
appearance: "base",
|
|
3437
3437
|
className: "file-upload__file-remove-button",
|
|
3438
|
-
onClick: () => d(
|
|
3438
|
+
onClick: () => d(p),
|
|
3439
3439
|
type: "button",
|
|
3440
|
-
children: /* @__PURE__ */
|
|
3440
|
+
children: /* @__PURE__ */ u(Re, { name: "close", children: "Remove file" })
|
|
3441
3441
|
}
|
|
3442
3442
|
)
|
|
3443
3443
|
] }),
|
|
3444
|
-
|
|
3444
|
+
p.errors.map((m) => /* @__PURE__ */ u(
|
|
3445
3445
|
"p",
|
|
3446
3446
|
{
|
|
3447
3447
|
className: "p-form-validation__message",
|
|
3448
3448
|
children: m.message
|
|
3449
3449
|
},
|
|
3450
|
-
`${
|
|
3450
|
+
`${p.file.name}-${m.code}`
|
|
3451
3451
|
))
|
|
3452
|
-
] },
|
|
3453
|
-
t && t.map((
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3452
|
+
] }, p.file.name)),
|
|
3453
|
+
t && t.map((p) => /* @__PURE__ */ B("div", { className: "file-upload__file", children: [
|
|
3454
|
+
p.name,
|
|
3455
|
+
p.percentUploaded !== void 0 ? /* @__PURE__ */ u(qi, { percentComplete: p.percentUploaded }) : /* @__PURE__ */ u(
|
|
3456
|
+
_e,
|
|
3457
3457
|
{
|
|
3458
3458
|
appearance: "base",
|
|
3459
3459
|
className: "file-upload__file-remove-button",
|
|
3460
|
-
onClick: () => c(
|
|
3460
|
+
onClick: () => c(p),
|
|
3461
3461
|
type: "button",
|
|
3462
|
-
children: /* @__PURE__ */
|
|
3462
|
+
children: /* @__PURE__ */ u(Re, { name: "close", children: "Remove file" })
|
|
3463
3463
|
}
|
|
3464
3464
|
)
|
|
3465
|
-
] },
|
|
3465
|
+
] }, p.name))
|
|
3466
3466
|
] })
|
|
3467
3467
|
] })
|
|
3468
3468
|
]
|
|
@@ -3483,7 +3483,7 @@ const Pa = () => {
|
|
|
3483
3483
|
removeFile: c,
|
|
3484
3484
|
removeRejectedFile: d
|
|
3485
3485
|
} = Pa();
|
|
3486
|
-
return /* @__PURE__ */
|
|
3486
|
+
return /* @__PURE__ */ u(
|
|
3487
3487
|
Ia,
|
|
3488
3488
|
{
|
|
3489
3489
|
accept: e,
|
|
@@ -3530,25 +3530,25 @@ const Pa = () => {
|
|
|
3530
3530
|
), f = le(
|
|
3531
3531
|
() => new Set(t.map((h) => h.value)),
|
|
3532
3532
|
[t]
|
|
3533
|
-
), [g,
|
|
3534
|
-
|
|
3535
|
-
a &&
|
|
3533
|
+
), [g, p] = de(new Set(d));
|
|
3534
|
+
Ce(() => {
|
|
3535
|
+
a && p(new Set(d));
|
|
3536
3536
|
}, [a]);
|
|
3537
3537
|
const m = le(() => e.some((h) => h.group), [e]), v = le(
|
|
3538
3538
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
3539
3539
|
[e, s]
|
|
3540
3540
|
), P = (h) => {
|
|
3541
|
-
const { checked:
|
|
3541
|
+
const { checked: T, value: F } = h.target, A = e.find((x) => `${x.value}` === F);
|
|
3542
3542
|
if (A) {
|
|
3543
|
-
const x =
|
|
3543
|
+
const x = T ? [...n, A] : n.filter((V) => `${V.value}` !== F) ?? [];
|
|
3544
3544
|
o(x);
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ u(Hn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ B("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
3548
3548
|
i || null,
|
|
3549
|
-
v.map(({ group: h, items:
|
|
3550
|
-
m ? /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3549
|
+
v.map(({ group: h, items: T }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
|
|
3550
|
+
m ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: h }) : null,
|
|
3551
|
+
/* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: T.sort(l).sort(Da(g)).map((F) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
|
|
3552
3552
|
$i,
|
|
3553
3553
|
{
|
|
3554
3554
|
disabled: f.has(F.value),
|
|
@@ -3560,7 +3560,7 @@ const Pa = () => {
|
|
|
3560
3560
|
F.value
|
|
3561
3561
|
) }, F.value)) })
|
|
3562
3562
|
] }, h)),
|
|
3563
|
-
r ? /* @__PURE__ */
|
|
3563
|
+
r ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: r }) : null
|
|
3564
3564
|
] }) });
|
|
3565
3565
|
}, Wr = ({
|
|
3566
3566
|
disabled: e,
|
|
@@ -3576,23 +3576,23 @@ const Pa = () => {
|
|
|
3576
3576
|
variant: d = "search"
|
|
3577
3577
|
}) => {
|
|
3578
3578
|
const f = Ai(() => {
|
|
3579
|
-
|
|
3579
|
+
p(!1), v("");
|
|
3580
3580
|
});
|
|
3581
3581
|
Mi(() => {
|
|
3582
|
-
|
|
3582
|
+
p(!1), v("");
|
|
3583
3583
|
});
|
|
3584
|
-
const [g,
|
|
3585
|
-
|
|
3584
|
+
const [g, p] = de(!1), [m, v] = de("");
|
|
3585
|
+
Ce(() => {
|
|
3586
3586
|
g || v("");
|
|
3587
3587
|
}, [g]);
|
|
3588
|
-
const [P, h] = de([]),
|
|
3588
|
+
const [P, h] = de([]), T = n || P, F = (H) => {
|
|
3589
3589
|
const J = Array.from(new Set(H));
|
|
3590
3590
|
h(J), i && i(J);
|
|
3591
|
-
}, A = et(), x = et(), V =
|
|
3591
|
+
}, A = et(), x = et(), V = T.filter(
|
|
3592
3592
|
(H) => r.some((J) => J.value === H.value)
|
|
3593
3593
|
).sort(ni).map((H) => H.label).join(", ");
|
|
3594
|
-
return /* @__PURE__ */
|
|
3595
|
-
d === "search" ? /* @__PURE__ */
|
|
3594
|
+
return /* @__PURE__ */ u("div", { ref: f, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
|
|
3595
|
+
d === "search" ? /* @__PURE__ */ u(
|
|
3596
3596
|
jn,
|
|
3597
3597
|
{
|
|
3598
3598
|
externallyControlled: !0,
|
|
@@ -3604,16 +3604,16 @@ const Pa = () => {
|
|
|
3604
3604
|
disabled: e,
|
|
3605
3605
|
autoComplete: "off",
|
|
3606
3606
|
onChange: (H) => {
|
|
3607
|
-
v(H),
|
|
3607
|
+
v(H), p(!0);
|
|
3608
3608
|
},
|
|
3609
|
-
onFocus: () =>
|
|
3609
|
+
onFocus: () => p(!0),
|
|
3610
3610
|
placeholder: o ?? "Search",
|
|
3611
3611
|
required: a,
|
|
3612
3612
|
type: "text",
|
|
3613
3613
|
value: m,
|
|
3614
3614
|
className: "multi-select__input"
|
|
3615
3615
|
}
|
|
3616
|
-
) : /* @__PURE__ */
|
|
3616
|
+
) : /* @__PURE__ */ u(
|
|
3617
3617
|
"button",
|
|
3618
3618
|
{
|
|
3619
3619
|
role: "combobox",
|
|
@@ -3623,12 +3623,12 @@ const Pa = () => {
|
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
|
-
|
|
3626
|
+
p((H) => !H);
|
|
3627
3627
|
},
|
|
3628
|
-
children: /* @__PURE__ */
|
|
3628
|
+
children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: T.length > 0 ? V : o ?? "Select items" })
|
|
3629
3629
|
}
|
|
3630
3630
|
),
|
|
3631
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ u(
|
|
3632
3632
|
Aa,
|
|
3633
3633
|
{
|
|
3634
3634
|
id: A,
|
|
@@ -3636,13 +3636,13 @@ const Pa = () => {
|
|
|
3636
3636
|
items: m.length > 0 ? r.filter(
|
|
3637
3637
|
(H) => H.label.toLowerCase().includes(m.toLowerCase())
|
|
3638
3638
|
) : r,
|
|
3639
|
-
selectedItems:
|
|
3639
|
+
selectedItems: T,
|
|
3640
3640
|
disabledItems: l,
|
|
3641
3641
|
header: s,
|
|
3642
3642
|
updateItems: F,
|
|
3643
|
-
footer: c || /* @__PURE__ */ B(
|
|
3644
|
-
/* @__PURE__ */
|
|
3645
|
-
|
|
3643
|
+
footer: c || /* @__PURE__ */ B(we, { children: [
|
|
3644
|
+
/* @__PURE__ */ u(
|
|
3645
|
+
_e,
|
|
3646
3646
|
{
|
|
3647
3647
|
appearance: "link",
|
|
3648
3648
|
onClick: () => {
|
|
@@ -3651,18 +3651,18 @@ const Pa = () => {
|
|
|
3651
3651
|
(U) => U.value === J.value
|
|
3652
3652
|
)
|
|
3653
3653
|
);
|
|
3654
|
-
F([...
|
|
3654
|
+
F([...T, ...H]);
|
|
3655
3655
|
},
|
|
3656
3656
|
type: "button",
|
|
3657
3657
|
children: "Select all"
|
|
3658
3658
|
}
|
|
3659
3659
|
),
|
|
3660
|
-
/* @__PURE__ */
|
|
3661
|
-
|
|
3660
|
+
/* @__PURE__ */ u(
|
|
3661
|
+
_e,
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
const H =
|
|
3665
|
+
const H = T.filter(
|
|
3666
3666
|
(J) => l.some(
|
|
3667
3667
|
(U) => U.value === J.value
|
|
3668
3668
|
)
|
|
@@ -3685,7 +3685,7 @@ const Pa = () => {
|
|
|
3685
3685
|
children: n,
|
|
3686
3686
|
variant: t,
|
|
3687
3687
|
...i
|
|
3688
|
-
}) => /* @__PURE__ */
|
|
3688
|
+
}) => /* @__PURE__ */ u(ii.Provider, { value: { variant: t }, children: /* @__PURE__ */ u(
|
|
3689
3689
|
"table",
|
|
3690
3690
|
{
|
|
3691
3691
|
...i,
|
|
@@ -3694,11 +3694,11 @@ const Pa = () => {
|
|
|
3694
3694
|
}),
|
|
3695
3695
|
children: n
|
|
3696
3696
|
}
|
|
3697
|
-
) }), Oa = ({ columns: e }) => /* @__PURE__ */
|
|
3697
|
+
) }), Oa = ({ columns: e }) => /* @__PURE__ */ u(we, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ u("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ u(
|
|
3698
3698
|
"td",
|
|
3699
3699
|
{
|
|
3700
3700
|
className: G(i.id, "u-text-overflow-clip"),
|
|
3701
|
-
children: /* @__PURE__ */
|
|
3701
|
+
children: /* @__PURE__ */ u(Gi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
|
|
3702
3702
|
},
|
|
3703
3703
|
o
|
|
3704
3704
|
)) }, t)) }), ja = ({
|
|
@@ -3706,9 +3706,9 @@ const Pa = () => {
|
|
|
3706
3706
|
table: n
|
|
3707
3707
|
}) => {
|
|
3708
3708
|
const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
3709
|
-
return /* @__PURE__ */ B(
|
|
3710
|
-
/* @__PURE__ */
|
|
3711
|
-
/* @__PURE__ */
|
|
3709
|
+
return /* @__PURE__ */ B(we, { children: [
|
|
3710
|
+
/* @__PURE__ */ u("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
3711
|
+
/* @__PURE__ */ u(ai, { "aria-busy": "true", className: e, children: /* @__PURE__ */ u(Oa, { columns: t }) })
|
|
3712
3712
|
] });
|
|
3713
3713
|
}, ai = ({
|
|
3714
3714
|
className: e,
|
|
@@ -3716,7 +3716,7 @@ const Pa = () => {
|
|
|
3716
3716
|
style: t,
|
|
3717
3717
|
...i
|
|
3718
3718
|
}) => {
|
|
3719
|
-
const { variant: o } = Ht(ii), a =
|
|
3719
|
+
const { variant: o } = Ht(ii), a = be(null), [r, l] = de(null), s = Q(() => {
|
|
3720
3720
|
var d, f;
|
|
3721
3721
|
if (window.innerWidth > Ma.small) {
|
|
3722
3722
|
const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
|
|
@@ -3726,13 +3726,13 @@ const Pa = () => {
|
|
|
3726
3726
|
}, []);
|
|
3727
3727
|
On(() => {
|
|
3728
3728
|
s();
|
|
3729
|
-
}, [s]),
|
|
3729
|
+
}, [s]), Ce(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
|
|
3730
3730
|
const c = le(() => o === "full-height" && r ? {
|
|
3731
3731
|
height: `calc(100vh - ${r}px)`,
|
|
3732
3732
|
minHeight: `calc(100vh - ${r}px)`,
|
|
3733
3733
|
...t
|
|
3734
3734
|
} : t, [o, r, t]);
|
|
3735
|
-
return /* @__PURE__ */
|
|
3735
|
+
return /* @__PURE__ */ u(
|
|
3736
3736
|
"tbody",
|
|
3737
3737
|
{
|
|
3738
3738
|
className: e,
|
|
@@ -3745,7 +3745,7 @@ const Pa = () => {
|
|
|
3745
3745
|
};
|
|
3746
3746
|
oi.Body = ai;
|
|
3747
3747
|
oi.Loading = ja;
|
|
3748
|
-
const ri = ({ children: e }) => /* @__PURE__ */
|
|
3748
|
+
const ri = ({ children: e }) => /* @__PURE__ */ u("caption", { children: /* @__PURE__ */ u("div", { className: "p-strip", children: e }) }), Ta = ({ children: e }) => /* @__PURE__ */ u("div", { className: "row", children: /* @__PURE__ */ u("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ u("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), za = ({ children: e }) => /* @__PURE__ */ u("div", { className: "row", children: /* @__PURE__ */ u("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ u("p", { children: e }) }) });
|
|
3749
3749
|
ri.Title = Ta;
|
|
3750
3750
|
ri.Description = za;
|
|
3751
3751
|
/**
|
|
@@ -3796,12 +3796,12 @@ function O(e, n, t) {
|
|
|
3796
3796
|
i = l;
|
|
3797
3797
|
let c;
|
|
3798
3798
|
if (t.key && t.debug && (c = Date.now()), o = n(...l), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
|
|
3799
|
-
const d = Math.round((Date.now() - r) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16,
|
|
3799
|
+
const d = Math.round((Date.now() - r) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16, p = (m, v) => {
|
|
3800
3800
|
for (m = String(m); m.length < v; )
|
|
3801
3801
|
m = " " + m;
|
|
3802
3802
|
return m;
|
|
3803
3803
|
};
|
|
3804
|
-
console.info(`%c⏱ ${
|
|
3804
|
+
console.info(`%c⏱ ${p(f, 5)} /${p(d, 5)} ms`, `
|
|
3805
3805
|
font-size: .6rem;
|
|
3806
3806
|
font-weight: bold;
|
|
3807
3807
|
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
@@ -3850,12 +3850,12 @@ function La(e, n, t, i) {
|
|
|
3850
3850
|
}, s = l.accessorKey;
|
|
3851
3851
|
let c = (o = (a = l.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof l.header == "string" ? l.header : void 0, d;
|
|
3852
3852
|
if (l.accessorFn ? d = l.accessorFn : s && (s.includes(".") ? d = (g) => {
|
|
3853
|
-
let
|
|
3853
|
+
let p = g;
|
|
3854
3854
|
for (const v of s.split(".")) {
|
|
3855
3855
|
var m;
|
|
3856
|
-
|
|
3856
|
+
p = (m = p) == null ? void 0 : m[v], process.env.NODE_ENV !== "production" && p === void 0 && console.warn(`"${v}" in deeply nested key "${s}" returned undefined.`);
|
|
3857
3857
|
}
|
|
3858
|
-
return
|
|
3858
|
+
return p;
|
|
3859
3859
|
} : d = (g) => g[l.accessorKey]), !c)
|
|
3860
3860
|
throw process.env.NODE_ENV !== "production" ? new Error(l.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
3861
3861
|
let f = {
|
|
@@ -3867,11 +3867,11 @@ function La(e, n, t, i) {
|
|
|
3867
3867
|
columns: [],
|
|
3868
3868
|
getFlatColumns: O(() => [!0], () => {
|
|
3869
3869
|
var g;
|
|
3870
|
-
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((
|
|
3870
|
+
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((p) => p.getFlatColumns())];
|
|
3871
3871
|
}, j(e.options, "debugColumns", "column.getFlatColumns")),
|
|
3872
3872
|
getLeafColumns: O(() => [e._getOrderColumnsFn()], (g) => {
|
|
3873
|
-
var
|
|
3874
|
-
if ((
|
|
3873
|
+
var p;
|
|
3874
|
+
if ((p = f.columns) != null && p.length) {
|
|
3875
3875
|
let m = f.columns.flatMap((v) => v.getLeafColumns());
|
|
3876
3876
|
return g(m);
|
|
3877
3877
|
}
|
|
@@ -3944,40 +3944,40 @@ const Ha = {
|
|
|
3944
3944
|
function Xe(e, n, t, i) {
|
|
3945
3945
|
var o, a;
|
|
3946
3946
|
let r = 0;
|
|
3947
|
-
const l = function(g,
|
|
3948
|
-
|
|
3947
|
+
const l = function(g, p) {
|
|
3948
|
+
p === void 0 && (p = 1), r = Math.max(r, p), g.filter((m) => m.getIsVisible()).forEach((m) => {
|
|
3949
3949
|
var v;
|
|
3950
|
-
(v = m.columns) != null && v.length && l(m.columns,
|
|
3950
|
+
(v = m.columns) != null && v.length && l(m.columns, p + 1);
|
|
3951
3951
|
}, 0);
|
|
3952
3952
|
};
|
|
3953
3953
|
l(e);
|
|
3954
3954
|
let s = [];
|
|
3955
|
-
const c = (g,
|
|
3955
|
+
const c = (g, p) => {
|
|
3956
3956
|
const m = {
|
|
3957
|
-
depth:
|
|
3958
|
-
id: [i, `${
|
|
3957
|
+
depth: p,
|
|
3958
|
+
id: [i, `${p}`].filter(Boolean).join("_"),
|
|
3959
3959
|
headers: []
|
|
3960
3960
|
}, v = [];
|
|
3961
3961
|
g.forEach((P) => {
|
|
3962
|
-
const h = [...v].reverse()[0],
|
|
3962
|
+
const h = [...v].reverse()[0], T = P.column.depth === m.depth;
|
|
3963
3963
|
let F, A = !1;
|
|
3964
|
-
if (
|
|
3964
|
+
if (T && P.column.parent ? F = P.column.parent : (F = P.column, A = !0), h && (h == null ? void 0 : h.column) === F)
|
|
3965
3965
|
h.subHeaders.push(P);
|
|
3966
3966
|
else {
|
|
3967
3967
|
const x = Fn(t, F, {
|
|
3968
|
-
id: [i,
|
|
3968
|
+
id: [i, p, F.id, P == null ? void 0 : P.id].filter(Boolean).join("_"),
|
|
3969
3969
|
isPlaceholder: A,
|
|
3970
3970
|
placeholderId: A ? `${v.filter((V) => V.column === F).length}` : void 0,
|
|
3971
|
-
depth:
|
|
3971
|
+
depth: p,
|
|
3972
3972
|
index: v.length
|
|
3973
3973
|
});
|
|
3974
3974
|
x.subHeaders.push(P), v.push(x);
|
|
3975
3975
|
}
|
|
3976
3976
|
m.headers.push(P), P.headerGroup = m;
|
|
3977
|
-
}), s.push(m),
|
|
3978
|
-
}, d = n.map((g,
|
|
3977
|
+
}), s.push(m), p > 0 && c(v, p - 1);
|
|
3978
|
+
}, d = n.map((g, p) => Fn(t, g, {
|
|
3979
3979
|
depth: r,
|
|
3980
|
-
index:
|
|
3980
|
+
index: p
|
|
3981
3981
|
}));
|
|
3982
3982
|
c(d, r - 1), s.reverse();
|
|
3983
3983
|
const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
|
|
@@ -3989,8 +3989,8 @@ function Xe(e, n, t, i) {
|
|
|
3989
3989
|
} = F;
|
|
3990
3990
|
v += A, h.push(x);
|
|
3991
3991
|
})) : v = 1;
|
|
3992
|
-
const
|
|
3993
|
-
return P = P +
|
|
3992
|
+
const T = Math.min(...h);
|
|
3993
|
+
return P = P + T, m.colSpan = v, m.rowSpan = P, {
|
|
3994
3994
|
colSpan: v,
|
|
3995
3995
|
rowSpan: P
|
|
3996
3996
|
};
|
|
@@ -4100,7 +4100,7 @@ Xt.resolveFilterValue = (e) => {
|
|
|
4100
4100
|
return [a, r];
|
|
4101
4101
|
};
|
|
4102
4102
|
Xt.autoRemove = (e) => he(e) || he(e[0]) && he(e[1]);
|
|
4103
|
-
const
|
|
4103
|
+
const Se = {
|
|
4104
4104
|
includesString: ci,
|
|
4105
4105
|
includesStringSensitive: pi,
|
|
4106
4106
|
equalsString: ui,
|
|
@@ -4130,12 +4130,12 @@ const Ga = {
|
|
|
4130
4130
|
createColumn: (e, n) => {
|
|
4131
4131
|
e.getAutoFilterFn = () => {
|
|
4132
4132
|
const t = n.getCoreRowModel().flatRows[0], i = t == null ? void 0 : t.getValue(e.id);
|
|
4133
|
-
return typeof i == "string" ?
|
|
4133
|
+
return typeof i == "string" ? Se.includesString : typeof i == "number" ? Se.inNumberRange : typeof i == "boolean" || i !== null && typeof i == "object" ? Se.equals : Array.isArray(i) ? Se.arrIncludes : Se.weakEquals;
|
|
4134
4134
|
}, e.getFilterFn = () => {
|
|
4135
4135
|
var t, i;
|
|
4136
4136
|
return at(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
4137
4137
|
// @ts-ignore
|
|
4138
|
-
(t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t :
|
|
4138
|
+
(t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t : Se[e.columnDef.filterFn]
|
|
4139
4139
|
);
|
|
4140
4140
|
}, e.getCanFilter = () => {
|
|
4141
4141
|
var t, i, o;
|
|
@@ -4493,10 +4493,10 @@ const nr = {
|
|
|
4493
4493
|
return (a) => {
|
|
4494
4494
|
if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
|
|
4495
4495
|
return;
|
|
4496
|
-
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h,
|
|
4497
|
-
typeof
|
|
4496
|
+
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, T) => {
|
|
4497
|
+
typeof T == "number" && (n.setColumnSizingInfo((F) => {
|
|
4498
4498
|
var A, x;
|
|
4499
|
-
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (
|
|
4499
|
+
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (T - ((A = F == null ? void 0 : F.startOffset) != null ? A : 0)) * V, J = Math.max(H / ((x = F == null ? void 0 : F.startSize) != null ? x : 0), -0.999999);
|
|
4500
4500
|
return F.columnSizingStart.forEach((U) => {
|
|
4501
4501
|
let [pe, se] = U;
|
|
4502
4502
|
c[pe] = Math.round(Math.max(se + se * J, 0) * 100) / 100;
|
|
@@ -4510,8 +4510,8 @@ const nr = {
|
|
|
4510
4510
|
...c
|
|
4511
4511
|
})));
|
|
4512
4512
|
}, f = (h) => d("move", h), g = (h) => {
|
|
4513
|
-
d("end", h), n.setColumnSizingInfo((
|
|
4514
|
-
...
|
|
4513
|
+
d("end", h), n.setColumnSizingInfo((T) => ({
|
|
4514
|
+
...T,
|
|
4515
4515
|
isResizingColumn: !1,
|
|
4516
4516
|
startOffset: null,
|
|
4517
4517
|
startSize: null,
|
|
@@ -4519,21 +4519,21 @@ const nr = {
|
|
|
4519
4519
|
deltaPercentage: null,
|
|
4520
4520
|
columnSizingStart: []
|
|
4521
4521
|
}));
|
|
4522
|
-
},
|
|
4522
|
+
}, p = t || typeof document < "u" ? document : null, m = {
|
|
4523
4523
|
moveHandler: (h) => f(h.clientX),
|
|
4524
4524
|
upHandler: (h) => {
|
|
4525
|
-
|
|
4525
|
+
p == null || p.removeEventListener("mousemove", m.moveHandler), p == null || p.removeEventListener("mouseup", m.upHandler), g(h.clientX);
|
|
4526
4526
|
}
|
|
4527
4527
|
}, v = {
|
|
4528
4528
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
4529
4529
|
upHandler: (h) => {
|
|
4530
|
-
var
|
|
4531
|
-
|
|
4530
|
+
var T;
|
|
4531
|
+
p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((T = h.touches[0]) == null ? void 0 : T.clientX);
|
|
4532
4532
|
}
|
|
4533
4533
|
}, P = ar() ? {
|
|
4534
4534
|
passive: !1
|
|
4535
4535
|
} : !1;
|
|
4536
|
-
Et(a) ? (
|
|
4536
|
+
Et(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, P), p == null || p.addEventListener("touchend", v.upHandler, P)) : (p == null || p.addEventListener("mousemove", m.moveHandler, P), p == null || p.addEventListener("mouseup", m.upHandler, P)), n.setColumnSizingInfo((h) => ({
|
|
4537
4537
|
...h,
|
|
4538
4538
|
startOffset: s,
|
|
4539
4539
|
startSize: r,
|
|
@@ -4663,12 +4663,12 @@ const lr = {
|
|
|
4663
4663
|
};
|
|
4664
4664
|
},
|
|
4665
4665
|
createTable: (e) => {
|
|
4666
|
-
e.getGlobalAutoFilterFn = () =>
|
|
4666
|
+
e.getGlobalAutoFilterFn = () => Se.includesString, e.getGlobalFilterFn = () => {
|
|
4667
4667
|
var n, t;
|
|
4668
4668
|
const {
|
|
4669
4669
|
globalFilterFn: i
|
|
4670
4670
|
} = e.options;
|
|
4671
|
-
return at(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n :
|
|
4671
|
+
return at(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n : Se[i];
|
|
4672
4672
|
}, e.setGlobalFilter = (n) => {
|
|
4673
4673
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
4674
4674
|
}, e.resetGlobalFilter = (n) => {
|
|
@@ -4879,9 +4879,9 @@ const lr = {
|
|
|
4879
4879
|
};
|
|
4880
4880
|
}
|
|
4881
4881
|
if (t === "top") {
|
|
4882
|
-
var
|
|
4882
|
+
var p, m;
|
|
4883
4883
|
return {
|
|
4884
|
-
top: [...((
|
|
4884
|
+
top: [...((p = s == null ? void 0 : s.top) != null ? p : []).filter((v) => !(l != null && l.has(v))), ...Array.from(l)],
|
|
4885
4885
|
bottom: ((m = s == null ? void 0 : s.bottom) != null ? m : []).filter((v) => !(l != null && l.has(v)))
|
|
4886
4886
|
};
|
|
4887
4887
|
}
|
|
@@ -5178,7 +5178,7 @@ const Ve = {
|
|
|
5178
5178
|
}, e.toggleSorting = (t, i) => {
|
|
5179
5179
|
const o = e.getNextSortingOrder(), a = typeof t < "u" && t !== null;
|
|
5180
5180
|
n.setSorting((r) => {
|
|
5181
|
-
const l = r == null ? void 0 : r.find((
|
|
5181
|
+
const l = r == null ? void 0 : r.find((p) => p.id === e.id), s = r == null ? void 0 : r.findIndex((p) => p.id === e.id);
|
|
5182
5182
|
let c = [], d, f = a ? t : o === "desc";
|
|
5183
5183
|
if (r != null && r.length && e.getCanMultiSort() && i ? l ? d = "toggle" : d = "add" : r != null && r.length && s !== r.length - 1 ? d = "replace" : l ? d = "toggle" : d = "replace", d === "toggle" && (a || o || (d = "remove")), d === "add") {
|
|
5184
5184
|
var g;
|
|
@@ -5186,10 +5186,10 @@ const Ve = {
|
|
|
5186
5186
|
id: e.id,
|
|
5187
5187
|
desc: f
|
|
5188
5188
|
}], c.splice(0, c.length - ((g = n.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
|
|
5189
|
-
} else d === "toggle" ? c = r.map((
|
|
5190
|
-
...
|
|
5189
|
+
} else d === "toggle" ? c = r.map((p) => p.id === e.id ? {
|
|
5190
|
+
...p,
|
|
5191
5191
|
desc: f
|
|
5192
|
-
} :
|
|
5192
|
+
} : p) : d === "remove" ? c = r.filter((p) => p.id !== e.id) : c = [{
|
|
5193
5193
|
id: e.id,
|
|
5194
5194
|
desc: f
|
|
5195
5195
|
}];
|
|
@@ -5258,7 +5258,7 @@ function br(e) {
|
|
|
5258
5258
|
let o = {
|
|
5259
5259
|
_features: i
|
|
5260
5260
|
};
|
|
5261
|
-
const a = o._features.reduce((g,
|
|
5261
|
+
const a = o._features.reduce((g, p) => Object.assign(g, p.getDefaultOptions == null ? void 0 : p.getDefaultOptions(o)), {}), r = (g) => o.options.mergeOptions ? o.options.mergeOptions(a, g) : {
|
|
5262
5262
|
...a,
|
|
5263
5263
|
...g
|
|
5264
5264
|
};
|
|
@@ -5267,8 +5267,8 @@ function br(e) {
|
|
|
5267
5267
|
...(t = e.initialState) != null ? t : {}
|
|
5268
5268
|
};
|
|
5269
5269
|
o._features.forEach((g) => {
|
|
5270
|
-
var
|
|
5271
|
-
s = (
|
|
5270
|
+
var p;
|
|
5271
|
+
s = (p = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? p : s;
|
|
5272
5272
|
});
|
|
5273
5273
|
const c = [];
|
|
5274
5274
|
let d = !1;
|
|
@@ -5284,39 +5284,39 @@ function br(e) {
|
|
|
5284
5284
|
for (; c.length; )
|
|
5285
5285
|
c.shift()();
|
|
5286
5286
|
d = !1;
|
|
5287
|
-
}).catch((
|
|
5288
|
-
throw
|
|
5287
|
+
}).catch((p) => setTimeout(() => {
|
|
5288
|
+
throw p;
|
|
5289
5289
|
})));
|
|
5290
5290
|
},
|
|
5291
5291
|
reset: () => {
|
|
5292
5292
|
o.setState(o.initialState);
|
|
5293
5293
|
},
|
|
5294
5294
|
setOptions: (g) => {
|
|
5295
|
-
const
|
|
5296
|
-
o.options = r(
|
|
5295
|
+
const p = Ee(g, o.options);
|
|
5296
|
+
o.options = r(p);
|
|
5297
5297
|
},
|
|
5298
5298
|
getState: () => o.options.state,
|
|
5299
5299
|
setState: (g) => {
|
|
5300
5300
|
o.options.onStateChange == null || o.options.onStateChange(g);
|
|
5301
5301
|
},
|
|
5302
|
-
_getRowId: (g,
|
|
5302
|
+
_getRowId: (g, p, m) => {
|
|
5303
5303
|
var v;
|
|
5304
|
-
return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g,
|
|
5304
|
+
return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g, p, m)) != null ? v : `${m ? [m.id, p].join(".") : p}`;
|
|
5305
5305
|
},
|
|
5306
5306
|
getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
|
|
5307
5307
|
// The final calls start at the bottom of the model,
|
|
5308
5308
|
// expanded rows, which then work their way up
|
|
5309
5309
|
getRowModel: () => o.getPaginationRowModel(),
|
|
5310
5310
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
5311
|
-
getRow: (g,
|
|
5312
|
-
let m = (
|
|
5311
|
+
getRow: (g, p) => {
|
|
5312
|
+
let m = (p ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[g];
|
|
5313
5313
|
if (!m && (m = o.getCoreRowModel().rowsById[g], !m))
|
|
5314
5314
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
|
|
5315
5315
|
return m;
|
|
5316
5316
|
},
|
|
5317
5317
|
_getDefaultColumnDef: O(() => [o.options.defaultColumn], (g) => {
|
|
5318
|
-
var
|
|
5319
|
-
return g = (
|
|
5318
|
+
var p;
|
|
5319
|
+
return g = (p = g) != null ? p : {}, {
|
|
5320
5320
|
header: (m) => {
|
|
5321
5321
|
const v = m.header.column.columnDef;
|
|
5322
5322
|
return v.accessorKey ? v.accessorKey : v.accessorFn ? v.id : null;
|
|
@@ -5332,29 +5332,29 @@ function br(e) {
|
|
|
5332
5332
|
}, j(e, "debugColumns", "_getDefaultColumnDef")),
|
|
5333
5333
|
_getColumnDefs: () => o.options.columns,
|
|
5334
5334
|
getAllColumns: O(() => [o._getColumnDefs()], (g) => {
|
|
5335
|
-
const
|
|
5335
|
+
const p = function(m, v, P) {
|
|
5336
5336
|
return P === void 0 && (P = 0), m.map((h) => {
|
|
5337
|
-
const
|
|
5338
|
-
return
|
|
5337
|
+
const T = La(o, h, P, v), F = h;
|
|
5338
|
+
return T.columns = F.columns ? p(F.columns, T, P + 1) : [], T;
|
|
5339
5339
|
});
|
|
5340
5340
|
};
|
|
5341
|
-
return
|
|
5341
|
+
return p(g);
|
|
5342
5342
|
}, j(e, "debugColumns", "getAllColumns")),
|
|
5343
|
-
getAllFlatColumns: O(() => [o.getAllColumns()], (g) => g.flatMap((
|
|
5344
|
-
_getAllFlatColumnsById: O(() => [o.getAllFlatColumns()], (g) => g.reduce((
|
|
5345
|
-
getAllLeafColumns: O(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g,
|
|
5343
|
+
getAllFlatColumns: O(() => [o.getAllColumns()], (g) => g.flatMap((p) => p.getFlatColumns()), j(e, "debugColumns", "getAllFlatColumns")),
|
|
5344
|
+
_getAllFlatColumnsById: O(() => [o.getAllFlatColumns()], (g) => g.reduce((p, m) => (p[m.id] = m, p), {}), j(e, "debugColumns", "getAllFlatColumnsById")),
|
|
5345
|
+
getAllLeafColumns: O(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, p) => {
|
|
5346
5346
|
let m = g.flatMap((v) => v.getLeafColumns());
|
|
5347
|
-
return
|
|
5347
|
+
return p(m);
|
|
5348
5348
|
}, j(e, "debugColumns", "getAllLeafColumns")),
|
|
5349
5349
|
getColumn: (g) => {
|
|
5350
|
-
const
|
|
5351
|
-
return process.env.NODE_ENV !== "production" && !
|
|
5350
|
+
const p = o._getAllFlatColumnsById()[g];
|
|
5351
|
+
return process.env.NODE_ENV !== "production" && !p && console.error(`[Table] Column with id '${g}' does not exist.`), p;
|
|
5352
5352
|
}
|
|
5353
5353
|
};
|
|
5354
5354
|
Object.assign(o, f);
|
|
5355
5355
|
for (let g = 0; g < o._features.length; g++) {
|
|
5356
|
-
const
|
|
5357
|
-
|
|
5356
|
+
const p = o._features[g];
|
|
5357
|
+
p == null || p.createTable == null || p.createTable(o);
|
|
5358
5358
|
}
|
|
5359
5359
|
return o;
|
|
5360
5360
|
}
|
|
@@ -5404,13 +5404,13 @@ function Rr() {
|
|
|
5404
5404
|
return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
|
|
5405
5405
|
const f = i[c], g = Er(s, f);
|
|
5406
5406
|
return Array.from(g.entries()).map((m, v) => {
|
|
5407
|
-
let [P, h] = m,
|
|
5408
|
-
|
|
5409
|
-
const F = r(h, c + 1,
|
|
5407
|
+
let [P, h] = m, T = `${f}:${P}`;
|
|
5408
|
+
T = d ? `${d}>${T}` : T;
|
|
5409
|
+
const F = r(h, c + 1, T);
|
|
5410
5410
|
F.forEach((V) => {
|
|
5411
|
-
V.parentId =
|
|
5411
|
+
V.parentId = T;
|
|
5412
5412
|
});
|
|
5413
|
-
const A = c ? li(h, (V) => V.subRows) : h, x = si(e,
|
|
5413
|
+
const A = c ? li(h, (V) => V.subRows) : h, x = si(e, T, A[0].original, v, c, void 0, d);
|
|
5414
5414
|
return Object.assign(x, {
|
|
5415
5415
|
groupingColumnId: f,
|
|
5416
5416
|
groupingValue: P,
|
|
@@ -5513,22 +5513,22 @@ const Dr = ({
|
|
|
5513
5513
|
}) => {
|
|
5514
5514
|
var n;
|
|
5515
5515
|
return {
|
|
5516
|
-
asc: /* @__PURE__ */
|
|
5517
|
-
desc: /* @__PURE__ */
|
|
5516
|
+
asc: /* @__PURE__ */ u(Re, { name: "chevron-up", children: "ascending" }),
|
|
5517
|
+
desc: /* @__PURE__ */ u(Re, { name: "chevron-down", children: "descending" })
|
|
5518
5518
|
}[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
|
|
5519
|
-
}, $r = ({ header: e }) => /* @__PURE__ */
|
|
5520
|
-
|
|
5519
|
+
}, $r = ({ header: e }) => /* @__PURE__ */ u("th", { className: G(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ u(
|
|
5520
|
+
_e,
|
|
5521
5521
|
{
|
|
5522
5522
|
appearance: "link",
|
|
5523
5523
|
className: "table-header-label p-button--table-header",
|
|
5524
5524
|
onClick: e.column.getToggleSortingHandler(),
|
|
5525
5525
|
type: "button",
|
|
5526
|
-
children: /* @__PURE__ */ B(
|
|
5526
|
+
children: /* @__PURE__ */ B(we, { children: [
|
|
5527
5527
|
Lt(e.column.columnDef.header, e.getContext()),
|
|
5528
|
-
/* @__PURE__ */
|
|
5528
|
+
/* @__PURE__ */ u(Dr, { header: e })
|
|
5529
5529
|
] })
|
|
5530
5530
|
}
|
|
5531
|
-
) : Lt(e.column.columnDef.header, e.getContext()) }, e.id), Le = ({ children: e }) => /* @__PURE__ */
|
|
5531
|
+
) : Lt(e.column.columnDef.header, e.getContext()) }, e.id), Le = ({ children: e }) => /* @__PURE__ */ u("section", { className: "controls-bar u-flex u-flex--justify-between u-flex--wrap", children: /* @__PURE__ */ u("div", { className: "p-form p-form--inline", children: e }) }), Ar = ({ children: e }) => /* @__PURE__ */ u("strong", { className: "controls-bar__description", children: e }), Mr = ({ children: e }) => /* @__PURE__ */ u("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
|
|
5532
5532
|
Le.Left = Ar;
|
|
5533
5533
|
Le.Right = Mr;
|
|
5534
5534
|
const Or = ({
|
|
@@ -5542,13 +5542,13 @@ const Or = ({
|
|
|
5542
5542
|
pageSizes: l = [20, 30, 50, 100]
|
|
5543
5543
|
}) => {
|
|
5544
5544
|
const s = le(() => l, []), c = le(
|
|
5545
|
-
() => s.map((
|
|
5546
|
-
label: `${
|
|
5547
|
-
value:
|
|
5545
|
+
() => s.map((p) => ({
|
|
5546
|
+
label: `${p}/page`,
|
|
5547
|
+
value: p
|
|
5548
5548
|
})),
|
|
5549
5549
|
[s]
|
|
5550
|
-
), d = Math.ceil(t / n), f = (
|
|
5551
|
-
const { value: m } =
|
|
5550
|
+
), d = Math.ceil(t / n), f = (p) => {
|
|
5551
|
+
const { value: m } = p.target;
|
|
5552
5552
|
i(Number(m));
|
|
5553
5553
|
}, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
|
|
5554
5554
|
return /* @__PURE__ */ B(Le, { children: [
|
|
@@ -5561,7 +5561,7 @@ const Or = ({
|
|
|
5561
5561
|
o
|
|
5562
5562
|
] }),
|
|
5563
5563
|
/* @__PURE__ */ B(Le.Right, { children: [
|
|
5564
|
-
/* @__PURE__ */
|
|
5564
|
+
/* @__PURE__ */ u(
|
|
5565
5565
|
Ro,
|
|
5566
5566
|
{
|
|
5567
5567
|
currentPage: e,
|
|
@@ -5570,7 +5570,7 @@ const Or = ({
|
|
|
5570
5570
|
totalPages: d
|
|
5571
5571
|
}
|
|
5572
5572
|
),
|
|
5573
|
-
/* @__PURE__ */
|
|
5573
|
+
/* @__PURE__ */ u(
|
|
5574
5574
|
Oi,
|
|
5575
5575
|
{
|
|
5576
5576
|
"aria-label": "Items per page",
|
|
@@ -5589,7 +5589,7 @@ const Or = ({
|
|
|
5589
5589
|
const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
|
|
5590
5590
|
let i;
|
|
5591
5591
|
return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
|
|
5592
|
-
/* @__PURE__ */
|
|
5592
|
+
/* @__PURE__ */ u(
|
|
5593
5593
|
"input",
|
|
5594
5594
|
{
|
|
5595
5595
|
"aria-checked": i,
|
|
@@ -5607,7 +5607,7 @@ const Or = ({
|
|
|
5607
5607
|
...n
|
|
5608
5608
|
}
|
|
5609
5609
|
),
|
|
5610
|
-
/* @__PURE__ */
|
|
5610
|
+
/* @__PURE__ */ u("span", { className: "p-checkbox__label" })
|
|
5611
5611
|
] });
|
|
5612
5612
|
}, Tr = ({ row: e, ...n }) => {
|
|
5613
5613
|
if (!e)
|
|
@@ -5623,7 +5623,7 @@ const Or = ({
|
|
|
5623
5623
|
"aria-disabled": !e.getCanSelect(),
|
|
5624
5624
|
className: "p-checkbox--inline p-table-checkbox--group",
|
|
5625
5625
|
children: [
|
|
5626
|
-
/* @__PURE__ */
|
|
5626
|
+
/* @__PURE__ */ u(
|
|
5627
5627
|
"input",
|
|
5628
5628
|
{
|
|
5629
5629
|
"aria-checked": a ? "mixed" : void 0,
|
|
@@ -5640,7 +5640,7 @@ const Or = ({
|
|
|
5640
5640
|
...n
|
|
5641
5641
|
}
|
|
5642
5642
|
),
|
|
5643
|
-
/* @__PURE__ */
|
|
5643
|
+
/* @__PURE__ */ u("span", { className: "p-checkbox__label" })
|
|
5644
5644
|
]
|
|
5645
5645
|
}
|
|
5646
5646
|
);
|
|
@@ -5653,7 +5653,7 @@ const Or = ({
|
|
|
5653
5653
|
if (!e)
|
|
5654
5654
|
return null;
|
|
5655
5655
|
const o = typeof n == "string" ? n : n(e);
|
|
5656
|
-
return /* @__PURE__ */
|
|
5656
|
+
return /* @__PURE__ */ u(
|
|
5657
5657
|
Gt,
|
|
5658
5658
|
{
|
|
5659
5659
|
message: !e.getCanSelect() && o,
|
|
@@ -5664,7 +5664,7 @@ const Or = ({
|
|
|
5664
5664
|
"aria-disabled": !e.getCanSelect(),
|
|
5665
5665
|
className: "p-checkbox--inline p-table-checkbox",
|
|
5666
5666
|
children: [
|
|
5667
|
-
/* @__PURE__ */
|
|
5667
|
+
/* @__PURE__ */ u(
|
|
5668
5668
|
"input",
|
|
5669
5669
|
{
|
|
5670
5670
|
className: "p-checkbox__input",
|
|
@@ -5675,7 +5675,7 @@ const Or = ({
|
|
|
5675
5675
|
...i
|
|
5676
5676
|
}
|
|
5677
5677
|
),
|
|
5678
|
-
/* @__PURE__ */
|
|
5678
|
+
/* @__PURE__ */ u("span", { className: "p-checkbox__label" })
|
|
5679
5679
|
]
|
|
5680
5680
|
}
|
|
5681
5681
|
)
|
|
@@ -5698,15 +5698,15 @@ const Yr = ({
|
|
|
5698
5698
|
isLoading: d,
|
|
5699
5699
|
noData: f,
|
|
5700
5700
|
pagination: g,
|
|
5701
|
-
pinGroup:
|
|
5701
|
+
pinGroup: p,
|
|
5702
5702
|
sortBy: m,
|
|
5703
5703
|
rowSelection: v,
|
|
5704
5704
|
setRowSelection: P,
|
|
5705
5705
|
showChevron: h = !1,
|
|
5706
|
-
variant:
|
|
5706
|
+
variant: T = "full-height",
|
|
5707
5707
|
...F
|
|
5708
5708
|
}) => {
|
|
5709
|
-
const A =
|
|
5709
|
+
const A = be(null), [x, V] = de("auto"), [H, J] = de(!1), [U, pe] = de(c ?? []), [se, ve] = de(m ?? []), [D, E] = de(!0), q = (S) => {
|
|
5710
5710
|
E((R) => {
|
|
5711
5711
|
const y = typeof S == "function" ? S(R) : S;
|
|
5712
5712
|
if (y === !0) return !0;
|
|
@@ -5717,7 +5717,7 @@ const Yr = ({
|
|
|
5717
5717
|
return C;
|
|
5718
5718
|
});
|
|
5719
5719
|
};
|
|
5720
|
-
|
|
5720
|
+
Ce(() => {
|
|
5721
5721
|
U.length && q((S) => {
|
|
5722
5722
|
const y = { ...S === !0 ? {} : { ...S } };
|
|
5723
5723
|
for (const C of a) {
|
|
@@ -5737,8 +5737,8 @@ const Yr = ({
|
|
|
5737
5737
|
id: "p-generic-table__select",
|
|
5738
5738
|
accessorKey: "id",
|
|
5739
5739
|
enableSorting: !1,
|
|
5740
|
-
header: ({ table: y }) => c ? "" : /* @__PURE__ */
|
|
5741
|
-
cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */
|
|
5740
|
+
header: ({ table: y }) => c ? "" : /* @__PURE__ */ u(Me.All, { table: y }),
|
|
5741
|
+
cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */ u(
|
|
5742
5742
|
Me,
|
|
5743
5743
|
{
|
|
5744
5744
|
row: y,
|
|
@@ -5754,8 +5754,8 @@ const Yr = ({
|
|
|
5754
5754
|
id: "p-generic-table__group-select",
|
|
5755
5755
|
accessorKey: "id",
|
|
5756
5756
|
enableSorting: !1,
|
|
5757
|
-
header: ({ table: y }) => /* @__PURE__ */
|
|
5758
|
-
cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */
|
|
5757
|
+
header: ({ table: y }) => /* @__PURE__ */ u(Me.All, { table: y }),
|
|
5758
|
+
cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */ u(Me.Group, { row: y }) : null
|
|
5759
5759
|
},
|
|
5760
5760
|
...R
|
|
5761
5761
|
] : S = R;
|
|
@@ -5767,12 +5767,14 @@ const Yr = ({
|
|
|
5767
5767
|
header: "",
|
|
5768
5768
|
cell: ({ row: y }) => {
|
|
5769
5769
|
const C = y.getIsExpanded();
|
|
5770
|
-
return y.getIsGrouped() ? /* @__PURE__ */
|
|
5771
|
-
|
|
5770
|
+
return y.getIsGrouped() ? /* @__PURE__ */ u(
|
|
5771
|
+
Gt,
|
|
5772
5772
|
{
|
|
5773
|
-
|
|
5773
|
+
message: C ? "Collapse" : "Expand",
|
|
5774
|
+
position: "btm-right",
|
|
5775
|
+
children: /* @__PURE__ */ u(Re, { name: C ? en.chevronUp : en.chevronDown })
|
|
5774
5776
|
}
|
|
5775
|
-
)
|
|
5777
|
+
) : null;
|
|
5776
5778
|
}
|
|
5777
5779
|
}, ...S]), S;
|
|
5778
5780
|
}, [
|
|
@@ -5791,8 +5793,8 @@ const Yr = ({
|
|
|
5791
5793
|
}
|
|
5792
5794
|
return 0;
|
|
5793
5795
|
}) : a, [a, U]), oe = le(() => Z.length ? [...Z].sort((S, R) => {
|
|
5794
|
-
if (
|
|
5795
|
-
for (const { value: y, isTop: C } of
|
|
5796
|
+
if (p != null && p.length && U.length)
|
|
5797
|
+
for (const { value: y, isTop: C } of p) {
|
|
5796
5798
|
const I = U[0], $ = S[I] ?? null, L = R[I] ?? null;
|
|
5797
5799
|
if ($ === y && L !== y)
|
|
5798
5800
|
return C ? -1 : 1;
|
|
@@ -5809,7 +5811,7 @@ const Yr = ({
|
|
|
5809
5811
|
return C ? -1 : 1;
|
|
5810
5812
|
}
|
|
5811
5813
|
return 0;
|
|
5812
|
-
}) : [], [Z, se,
|
|
5814
|
+
}) : [], [Z, se, p, U]);
|
|
5813
5815
|
On(() => {
|
|
5814
5816
|
const S = () => {
|
|
5815
5817
|
const C = A.current;
|
|
@@ -5817,7 +5819,9 @@ const Yr = ({
|
|
|
5817
5819
|
const I = (o == null ? void 0 : o.current) || document.querySelector("main");
|
|
5818
5820
|
if (!I) return;
|
|
5819
5821
|
const $ = I.getBoundingClientRect(), L = C.getBoundingClientRect(), M = $.bottom - L.top, b = C.scrollHeight > M;
|
|
5820
|
-
J(b), V(
|
|
5822
|
+
J(b), V(
|
|
5823
|
+
T === "full-height" && b ? `${M}px` : "auto"
|
|
5824
|
+
);
|
|
5821
5825
|
};
|
|
5822
5826
|
S();
|
|
5823
5827
|
const R = new ResizeObserver(S), y = A.current;
|
|
@@ -5825,7 +5829,7 @@ const Yr = ({
|
|
|
5825
5829
|
window.removeEventListener("resize", S), y && R.unobserve(y);
|
|
5826
5830
|
};
|
|
5827
5831
|
}, [o, oe.length, d]);
|
|
5828
|
-
const te =
|
|
5832
|
+
const te = T === "full-height" && H ? "full-height" : "regular", w = Ir({
|
|
5829
5833
|
data: oe,
|
|
5830
5834
|
columns: Y,
|
|
5831
5835
|
state: {
|
|
@@ -5851,9 +5855,9 @@ const Yr = ({
|
|
|
5851
5855
|
enableRowSelection: n,
|
|
5852
5856
|
enableMultiRowSelection: n,
|
|
5853
5857
|
getRowId: (S) => S.id.toString()
|
|
5854
|
-
}), k = () => /* @__PURE__ */
|
|
5858
|
+
}), k = () => /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__loading", colSpan: Y.length, children: /* @__PURE__ */ u(qt, { text: "Loading..." }) }) }), N = () => w.getRowModel().rows.length < 1 ? /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__no-data", colSpan: Y.length, children: f }) }) : w.getRowModel().rows.map((S) => {
|
|
5855
5859
|
const { getIsGrouped: R, id: y, getVisibleCells: C, parentId: I } = S, $ = !R(), L = v !== void 0 && Object.keys(v).includes(y);
|
|
5856
|
-
return /* @__PURE__ */
|
|
5860
|
+
return /* @__PURE__ */ u(
|
|
5857
5861
|
"tr",
|
|
5858
5862
|
{
|
|
5859
5863
|
"aria-rowindex": parseInt(y.replace(/\D/g, "") || "0", 10) + 1,
|
|
@@ -5867,7 +5871,7 @@ const Yr = ({
|
|
|
5867
5871
|
$ || S.toggleExpanded();
|
|
5868
5872
|
},
|
|
5869
5873
|
role: "row",
|
|
5870
|
-
children: C().filter((M) => !$ && (M.column.id === "p-generic-table__group-select" || M.column.id === "p-generic-table__group-chevron") ? !0 : r(S, M.column)).map((M) => /* @__PURE__ */
|
|
5874
|
+
children: C().filter((M) => !$ && (M.column.id === "p-generic-table__group-select" || M.column.id === "p-generic-table__group-chevron") ? !0 : r(S, M.column)).map((M) => /* @__PURE__ */ u("td", { className: G(`${M.column.id}`), children: Lt(M.column.columnDef.cell, M.getContext()) }, M.id))
|
|
5871
5875
|
},
|
|
5872
5876
|
y
|
|
5873
5877
|
);
|
|
@@ -5879,7 +5883,7 @@ const Yr = ({
|
|
|
5879
5883
|
"data-testid": "p-generic-table",
|
|
5880
5884
|
...F,
|
|
5881
5885
|
children: [
|
|
5882
|
-
g && /* @__PURE__ */
|
|
5886
|
+
g && /* @__PURE__ */ u(
|
|
5883
5887
|
Or,
|
|
5884
5888
|
{
|
|
5885
5889
|
currentPage: g.currentPage,
|
|
@@ -5906,9 +5910,9 @@ const Yr = ({
|
|
|
5906
5910
|
}),
|
|
5907
5911
|
role: "grid",
|
|
5908
5912
|
children: [
|
|
5909
|
-
/* @__PURE__ */
|
|
5910
|
-
/* @__PURE__ */
|
|
5911
|
-
n && c && (!h && y === 2 || h && y === 3) ? /* @__PURE__ */
|
|
5913
|
+
/* @__PURE__ */ u("thead", { children: w.getHeaderGroups().map((S) => /* @__PURE__ */ u("tr", { role: "row", children: S.headers.filter(l).map((R, y) => /* @__PURE__ */ B(Mn, { children: [
|
|
5914
|
+
/* @__PURE__ */ u($r, { header: R }),
|
|
5915
|
+
n && c && (!h && y === 2 || h && y === 3) ? /* @__PURE__ */ u(
|
|
5912
5916
|
"th",
|
|
5913
5917
|
{
|
|
5914
5918
|
className: "p-generic-table__select-alignment",
|
|
@@ -5916,7 +5920,7 @@ const Yr = ({
|
|
|
5916
5920
|
}
|
|
5917
5921
|
) : null
|
|
5918
5922
|
] }, R.id)) }, S.id)) }),
|
|
5919
|
-
/* @__PURE__ */
|
|
5923
|
+
/* @__PURE__ */ u(
|
|
5920
5924
|
"tbody",
|
|
5921
5925
|
{
|
|
5922
5926
|
ref: A,
|
|
@@ -5933,21 +5937,7 @@ const Yr = ({
|
|
|
5933
5937
|
]
|
|
5934
5938
|
}
|
|
5935
5939
|
);
|
|
5936
|
-
},
|
|
5937
|
-
row: e
|
|
5938
|
-
}) => /* @__PURE__ */ p(
|
|
5939
|
-
Ce,
|
|
5940
|
-
{
|
|
5941
|
-
appearance: "base",
|
|
5942
|
-
dense: !0,
|
|
5943
|
-
hasIcon: !0,
|
|
5944
|
-
onClick: () => {
|
|
5945
|
-
e.toggleExpanded();
|
|
5946
|
-
},
|
|
5947
|
-
type: "button",
|
|
5948
|
-
children: e.getIsExpanded() ? /* @__PURE__ */ p(we, { name: "minus", children: "Collapse" }) : /* @__PURE__ */ p(we, { name: "plus", children: "Expand" })
|
|
5949
|
-
}
|
|
5950
|
-
), In = {
|
|
5940
|
+
}, In = {
|
|
5951
5941
|
DEFAULT: 4,
|
|
5952
5942
|
EXPANDED: 15
|
|
5953
5943
|
}, xe = {
|
|
@@ -5984,7 +5974,7 @@ const Yr = ({
|
|
|
5984
5974
|
}, Dn = (e, n) => {
|
|
5985
5975
|
const t = e.charAt(n - 1);
|
|
5986
5976
|
return n > 0 && (t === xe.CLOSE_PAREN || t === xe.COMMA);
|
|
5987
|
-
},
|
|
5977
|
+
}, Xr = ({
|
|
5988
5978
|
className: e,
|
|
5989
5979
|
disabled: n = !1,
|
|
5990
5980
|
search: t,
|
|
@@ -6002,7 +5992,7 @@ const Yr = ({
|
|
|
6002
5992
|
highlightedIndex: -1,
|
|
6003
5993
|
showingMore: !1,
|
|
6004
5994
|
cursorPosition: 0
|
|
6005
|
-
}),
|
|
5995
|
+
}), p = be(null), m = be(null), v = be(null), P = le(() => {
|
|
6006
5996
|
const D = f.showingMore ? In.EXPANDED : In.DEFAULT, E = l.slice(0, D);
|
|
6007
5997
|
return !f.showingMore && l.length > D ? [...E, { value: "Show more...", type: "more" }] : E;
|
|
6008
5998
|
}, [l, f.showingMore]), h = Q(
|
|
@@ -6010,9 +6000,9 @@ const Yr = ({
|
|
|
6010
6000
|
g(typeof D == "function" ? (E) => ({ ...E, ...D(E) }) : (E) => ({ ...E, ...D }));
|
|
6011
6001
|
},
|
|
6012
6002
|
[]
|
|
6013
|
-
),
|
|
6003
|
+
), T = Q(
|
|
6014
6004
|
(D) => {
|
|
6015
|
-
|
|
6005
|
+
p.current && !p.current.contains(D.target) && h({
|
|
6016
6006
|
isVisible: !1,
|
|
6017
6007
|
highlightedIndex: -1
|
|
6018
6008
|
});
|
|
@@ -6158,15 +6148,15 @@ const Yr = ({
|
|
|
6158
6148
|
},
|
|
6159
6149
|
[h]
|
|
6160
6150
|
);
|
|
6161
|
-
return
|
|
6151
|
+
return Ce(() => (document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T)), [T]), /* @__PURE__ */ B(
|
|
6162
6152
|
"div",
|
|
6163
6153
|
{
|
|
6164
6154
|
className: G("p-query-input", e),
|
|
6165
6155
|
"data-testid": "p-query-input",
|
|
6166
|
-
ref:
|
|
6156
|
+
ref: p,
|
|
6167
6157
|
...d,
|
|
6168
6158
|
children: [
|
|
6169
|
-
/* @__PURE__ */
|
|
6159
|
+
/* @__PURE__ */ u(
|
|
6170
6160
|
jn,
|
|
6171
6161
|
{
|
|
6172
6162
|
disabled: n,
|
|
@@ -6189,7 +6179,7 @@ const Yr = ({
|
|
|
6189
6179
|
"aria-owns": "query-suggestions"
|
|
6190
6180
|
}
|
|
6191
6181
|
),
|
|
6192
|
-
f.isVisible && l.length > 0 && /* @__PURE__ */
|
|
6182
|
+
f.isVisible && l.length > 0 && /* @__PURE__ */ u(
|
|
6193
6183
|
"ul",
|
|
6194
6184
|
{
|
|
6195
6185
|
className: "p-query-input__list",
|
|
@@ -6197,7 +6187,7 @@ const Yr = ({
|
|
|
6197
6187
|
id: "query-suggestions",
|
|
6198
6188
|
role: "listbox",
|
|
6199
6189
|
"aria-label": "Search suggestions",
|
|
6200
|
-
children: s ? /* @__PURE__ */
|
|
6190
|
+
children: s ? /* @__PURE__ */ u("div", { className: "p-query-input__loading", children: /* @__PURE__ */ u(qt, { text: "Loading..." }) }) : P.map((D, E) => /* @__PURE__ */ B(
|
|
6201
6191
|
"li",
|
|
6202
6192
|
{
|
|
6203
6193
|
className: G("p-query-input__item", {
|
|
@@ -6211,7 +6201,7 @@ const Yr = ({
|
|
|
6211
6201
|
tabIndex: -1,
|
|
6212
6202
|
children: [
|
|
6213
6203
|
/* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
|
|
6214
|
-
/* @__PURE__ */
|
|
6204
|
+
/* @__PURE__ */ u(
|
|
6215
6205
|
"span",
|
|
6216
6206
|
{
|
|
6217
6207
|
className: G({
|
|
@@ -6220,9 +6210,9 @@ const Yr = ({
|
|
|
6220
6210
|
children: D.value
|
|
6221
6211
|
}
|
|
6222
6212
|
),
|
|
6223
|
-
D.type === "filter" && /* @__PURE__ */
|
|
6213
|
+
D.type === "filter" && /* @__PURE__ */ u("span", { className: "u-text--muted", children: ":()" })
|
|
6224
6214
|
] }),
|
|
6225
|
-
D.type !== "more" && /* @__PURE__ */
|
|
6215
|
+
D.type !== "more" && /* @__PURE__ */ u("span", { className: "u-text--muted u-align-text--right", children: D.type })
|
|
6226
6216
|
]
|
|
6227
6217
|
},
|
|
6228
6218
|
`${D.value}-${E}`
|
|
@@ -6232,7 +6222,7 @@ const Yr = ({
|
|
|
6232
6222
|
]
|
|
6233
6223
|
}
|
|
6234
6224
|
);
|
|
6235
|
-
},
|
|
6225
|
+
}, Qr = ({ value: e, unit: n }, {
|
|
6236
6226
|
binary: t = !1,
|
|
6237
6227
|
convertTo: i,
|
|
6238
6228
|
decimals: o = 2,
|
|
@@ -6242,13 +6232,13 @@ const Yr = ({
|
|
|
6242
6232
|
if (l === 0)
|
|
6243
6233
|
return { value: 0, unit: i || "B" };
|
|
6244
6234
|
const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], d = c.findIndex((v) => v === n) || 0, f = l * Math.pow(s, d), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(f) / Math.log(s));
|
|
6245
|
-
let
|
|
6246
|
-
if (
|
|
6235
|
+
let p = f / Math.pow(s, g);
|
|
6236
|
+
if (p % 1 !== 0) {
|
|
6247
6237
|
const v = Math.pow(10, o);
|
|
6248
|
-
|
|
6238
|
+
p = Math[a](p * v) / v;
|
|
6249
6239
|
}
|
|
6250
6240
|
return {
|
|
6251
|
-
value: r ? -
|
|
6241
|
+
value: r ? -p : p,
|
|
6252
6242
|
unit: c[g]
|
|
6253
6243
|
};
|
|
6254
6244
|
};
|
|
@@ -6260,7 +6250,6 @@ export {
|
|
|
6260
6250
|
Kr as FileUploadContainer,
|
|
6261
6251
|
Kt as FormSection,
|
|
6262
6252
|
Yr as GenericTable,
|
|
6263
|
-
Xr as GroupRowActions,
|
|
6264
6253
|
zn as InputGroup,
|
|
6265
6254
|
Ln as MainToolbar,
|
|
6266
6255
|
Vi as Meter,
|
|
@@ -6273,11 +6262,11 @@ export {
|
|
|
6273
6262
|
Ro as PaginationContainer,
|
|
6274
6263
|
Gi as Placeholder,
|
|
6275
6264
|
qi as ProgressIndicator,
|
|
6276
|
-
|
|
6265
|
+
Xr as QueryInput,
|
|
6277
6266
|
Ur as Stepper,
|
|
6278
6267
|
ri as TableCaption,
|
|
6279
6268
|
qr as defaultFilledColors,
|
|
6280
|
-
|
|
6269
|
+
Qr as formatBytes,
|
|
6281
6270
|
Ie as meterColor,
|
|
6282
6271
|
Oe as testIds
|
|
6283
6272
|
};
|