@carto/meridian-ds 0.1.1-alpha.3 → 0.1.1-alpha.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/components/index.cjs +1 -1
- package/dist/components/index.js +326 -323
- package/dist/types/components/atoms/Button.d.ts +4 -1
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/SelectField.d.ts +1 -1
- package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete.d.ts +3 -3
- package/dist/types/components/molecules/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts +4 -4
- package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
- package/dist/types/components/molecules/MultipleSelectField/useMultipleSelectField.d.ts +1 -1
- package/dist/types/theme/types.d.ts +6 -0
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/types/widgets/WrapperWidgetUI.d.ts +9 -3
- package/dist/types/widgets/WrapperWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +1 -1
- package/dist/widgets/index.js +36 -36
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as o, jsxs as y, Fragment as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { T, c as
|
|
5
|
-
import { a as
|
|
6
|
-
import { VisibilityOutlined as
|
|
7
|
-
import { useIntl as
|
|
8
|
-
import { styled as
|
|
9
|
-
import { A as
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ o(
|
|
1
|
+
import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { Button as N, styled as c, Box as P, TextField as Y, InputAdornment as H, IconButton as L, Select as it, MenuItem as V, FormControl as at, InputLabel as lt, FormHelperText as st, ToggleButtonGroup as ct, Menu as dt, MenuList as ut, Link as pt, Checkbox as Z, ListItemText as J, Tooltip as gt, CircularProgress as ft, Accordion as mt, AccordionSummary as ht, AccordionDetails as Mt, createFilterOptions as yt, Autocomplete as bt, Divider as G, ListItemIcon as q, Avatar as vt, alpha as xt, AppBar as It, Toolbar as Bt } from "@mui/material";
|
|
3
|
+
import { forwardRef as $, useState as k, useEffect as K, useMemo as Q, useRef as Tt, Fragment as At } from "react";
|
|
4
|
+
import { T as S, c as w, u as R, A as St } from "../TablePaginationActions-OJyfVTms.js";
|
|
5
|
+
import { a as Je } from "../TablePaginationActions-OJyfVTms.js";
|
|
6
|
+
import { VisibilityOutlined as Ct, VisibilityOffOutlined as Ft, Cancel as X, AddCircleOutlineOutlined as wt, MenuOutlined as Pt } from "@mui/icons-material";
|
|
7
|
+
import { useIntl as O } from "react-intl";
|
|
8
|
+
import { styled as W, useTheme as tt } from "@mui/material/styles";
|
|
9
|
+
import { A as Qe } from "../Alert-_PI5QbXW.js";
|
|
10
|
+
function Lt({ children: t, ...e }, n) {
|
|
11
|
+
return /* @__PURE__ */ o(N, { ...e, ref: n, children: /* @__PURE__ */ o(S, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Re = $(Lt), kt = c(P)(({ theme: t }) => ({
|
|
14
14
|
display: "flex",
|
|
15
15
|
alignItems: "center",
|
|
16
16
|
gap: t.spacing(0.5)
|
|
17
|
-
})),
|
|
17
|
+
})), $t = c(S)(({ theme: t }) => ({
|
|
18
18
|
".Mui-disabled &": {
|
|
19
19
|
color: t.palette.text.disabled
|
|
20
20
|
}
|
|
21
|
-
})),
|
|
21
|
+
})), Et = c(P)(({ theme: t }) => ({
|
|
22
22
|
display: "flex",
|
|
23
23
|
svg: {
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
26
|
-
fontSize:
|
|
24
|
+
width: w,
|
|
25
|
+
height: w,
|
|
26
|
+
fontSize: w,
|
|
27
27
|
path: {
|
|
28
28
|
fill: t.palette.text.secondary,
|
|
29
29
|
".Mui-disabled &": {
|
|
@@ -32,16 +32,16 @@ const Le = k(St), Ct = d(w)(({ theme: t }) => ({
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}));
|
|
35
|
-
function
|
|
35
|
+
function Oe({
|
|
36
36
|
label: t,
|
|
37
37
|
type: e,
|
|
38
38
|
icon: n,
|
|
39
39
|
inheritSize: r
|
|
40
40
|
}) {
|
|
41
|
-
return /* @__PURE__ */ y(
|
|
41
|
+
return /* @__PURE__ */ y(kt, { children: [
|
|
42
42
|
t,
|
|
43
43
|
e && /* @__PURE__ */ o(
|
|
44
|
-
|
|
44
|
+
$t,
|
|
45
45
|
{
|
|
46
46
|
component: "span",
|
|
47
47
|
variant: r ? "inherit" : "caption",
|
|
@@ -50,13 +50,13 @@ function ke({
|
|
|
50
50
|
children: e === "required" ? "(required)" : "(optional)"
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
n && /* @__PURE__ */ o(
|
|
53
|
+
n && /* @__PURE__ */ o(Et, { children: n })
|
|
54
54
|
] });
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
const [i,
|
|
56
|
+
function Rt({ InputProps: t, size: e = "small", ...n }, r) {
|
|
57
|
+
const [i, a] = k(!1);
|
|
58
58
|
return /* @__PURE__ */ o(
|
|
59
|
-
|
|
59
|
+
Y,
|
|
60
60
|
{
|
|
61
61
|
...n,
|
|
62
62
|
ref: r,
|
|
@@ -64,18 +64,18 @@ function Pt({ InputProps: t, size: e = "small", ...n }, r) {
|
|
|
64
64
|
size: e,
|
|
65
65
|
InputProps: {
|
|
66
66
|
...t,
|
|
67
|
-
endAdornment: /* @__PURE__ */ o(
|
|
67
|
+
endAdornment: /* @__PURE__ */ o(H, { position: "end", children: /* @__PURE__ */ o(L, { size: e, onClick: () => a(!i), children: i ? /* @__PURE__ */ o(Ct, {}) : /* @__PURE__ */ o(Ft, {}) }) })
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
const e = ++
|
|
72
|
+
const De = $(Rt), D = {};
|
|
73
|
+
function Ot(t = "$lodash$") {
|
|
74
|
+
D[t] || (D[t] = 0);
|
|
75
|
+
const e = ++D[t];
|
|
76
76
|
return t === "$lodash$" ? `${e}` : `${t}${e}`;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const Dt = c(it)(({ theme: t }) => ({
|
|
79
79
|
"& .MuiInputAdornment-positionStart": {
|
|
80
80
|
paddingLeft: t.spacing(2),
|
|
81
81
|
"&.MuiInputAdornment-sizeSmall": {
|
|
@@ -91,57 +91,57 @@ const kt = d(tt)(({ theme: t }) => ({
|
|
|
91
91
|
"&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
|
|
92
92
|
paddingRight: t.spacing(7)
|
|
93
93
|
}
|
|
94
|
-
})),
|
|
94
|
+
})), Gt = c(V)(() => ({
|
|
95
95
|
display: "none"
|
|
96
96
|
}));
|
|
97
|
-
function
|
|
97
|
+
function _t({
|
|
98
98
|
children: t,
|
|
99
99
|
placeholder: e,
|
|
100
100
|
size: n = "small",
|
|
101
101
|
displayEmpty: r,
|
|
102
102
|
menuProps: i,
|
|
103
|
-
inputProps:
|
|
103
|
+
inputProps: a,
|
|
104
104
|
labelId: s,
|
|
105
105
|
label: g,
|
|
106
106
|
labelSecondary: b,
|
|
107
107
|
helperText: v,
|
|
108
|
-
name:
|
|
109
|
-
error:
|
|
108
|
+
name: d,
|
|
109
|
+
error: u,
|
|
110
110
|
focused: h,
|
|
111
111
|
disabled: x,
|
|
112
112
|
fullWidth: M,
|
|
113
113
|
required: f,
|
|
114
|
-
"aria-label":
|
|
115
|
-
...
|
|
116
|
-
},
|
|
117
|
-
const B = n === "small", [
|
|
114
|
+
"aria-label": T,
|
|
115
|
+
...I
|
|
116
|
+
}, p) {
|
|
117
|
+
const B = n === "small", [l] = k(() => Ot("select-label-")), m = g ? s ?? l : void 0;
|
|
118
118
|
return /* @__PURE__ */ y(
|
|
119
|
-
|
|
119
|
+
at,
|
|
120
120
|
{
|
|
121
121
|
size: n,
|
|
122
|
-
error:
|
|
122
|
+
error: u,
|
|
123
123
|
focused: h,
|
|
124
124
|
disabled: x,
|
|
125
125
|
fullWidth: M,
|
|
126
126
|
required: f,
|
|
127
127
|
children: [
|
|
128
|
-
/* @__PURE__ */ y(
|
|
129
|
-
g && /* @__PURE__ */ o(
|
|
130
|
-
b && /* @__PURE__ */ o(
|
|
128
|
+
/* @__PURE__ */ y(P, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
129
|
+
g && /* @__PURE__ */ o(lt, { shrink: !0, id: m, children: g }),
|
|
130
|
+
b && /* @__PURE__ */ o(P, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: b })
|
|
131
131
|
] }),
|
|
132
132
|
/* @__PURE__ */ y(
|
|
133
|
-
|
|
133
|
+
Dt,
|
|
134
134
|
{
|
|
135
|
-
...
|
|
136
|
-
labelId:
|
|
137
|
-
name:
|
|
138
|
-
ref:
|
|
135
|
+
...I,
|
|
136
|
+
labelId: m,
|
|
137
|
+
name: d,
|
|
138
|
+
ref: p,
|
|
139
139
|
size: n,
|
|
140
140
|
fullWidth: M,
|
|
141
141
|
displayEmpty: r ?? !!e,
|
|
142
142
|
inputProps: {
|
|
143
|
-
...
|
|
144
|
-
"aria-label":
|
|
143
|
+
...a,
|
|
144
|
+
"aria-label": T
|
|
145
145
|
},
|
|
146
146
|
MenuProps: {
|
|
147
147
|
...i,
|
|
@@ -158,8 +158,8 @@ function Et({
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
children: [
|
|
161
|
-
e && /* @__PURE__ */ o(
|
|
162
|
-
|
|
161
|
+
e && /* @__PURE__ */ o(Gt, { disabled: !0, value: "", children: /* @__PURE__ */ o(
|
|
162
|
+
S,
|
|
163
163
|
{
|
|
164
164
|
variant: B ? "body2" : "body1",
|
|
165
165
|
color: "text.hint",
|
|
@@ -171,12 +171,12 @@ function Et({
|
|
|
171
171
|
]
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
|
-
v && /* @__PURE__ */ o(
|
|
174
|
+
v && /* @__PURE__ */ o(st, { "aria-label": `${d}-helper`, children: v })
|
|
175
175
|
]
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
-
const
|
|
179
|
+
const Ht = $(_t), Vt = c(ct, {
|
|
180
180
|
shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
|
|
181
181
|
})(({ variant: t, backgroundColor: e, theme: n }) => ({
|
|
182
182
|
// Variants
|
|
@@ -248,14 +248,14 @@ const Rt = k(Et), Ot = d(rt, {
|
|
|
248
248
|
backgroundColor: "transparent"
|
|
249
249
|
}
|
|
250
250
|
}));
|
|
251
|
-
function
|
|
251
|
+
function Ge({
|
|
252
252
|
children: t,
|
|
253
253
|
variant: e = "floating",
|
|
254
254
|
backgroundColor: n,
|
|
255
255
|
...r
|
|
256
256
|
}) {
|
|
257
257
|
return /* @__PURE__ */ o(
|
|
258
|
-
|
|
258
|
+
Vt,
|
|
259
259
|
{
|
|
260
260
|
...r,
|
|
261
261
|
variant: e,
|
|
@@ -264,7 +264,7 @@ function Ee({
|
|
|
264
264
|
}
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const Wt = c(dt, {
|
|
268
268
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
269
269
|
})(({ theme: t, extended: e, width: n, height: r }) => ({
|
|
270
270
|
...e && {
|
|
@@ -287,10 +287,10 @@ const Dt = d(it, {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
}));
|
|
290
|
-
function
|
|
291
|
-
return /* @__PURE__ */ o(
|
|
290
|
+
function _e(t) {
|
|
291
|
+
return /* @__PURE__ */ o(Wt, { ...t });
|
|
292
292
|
}
|
|
293
|
-
const
|
|
293
|
+
const Ut = c(V, {
|
|
294
294
|
shouldForwardProp: (t) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
295
295
|
t
|
|
296
296
|
)
|
|
@@ -301,7 +301,7 @@ const Gt = d(V, {
|
|
|
301
301
|
subtitle: n,
|
|
302
302
|
destructive: r,
|
|
303
303
|
extended: i,
|
|
304
|
-
fixed:
|
|
304
|
+
fixed: a,
|
|
305
305
|
iconColor: s = "primary"
|
|
306
306
|
}) => ({
|
|
307
307
|
...n && {
|
|
@@ -379,7 +379,7 @@ const Gt = d(V, {
|
|
|
379
379
|
minHeight: t.spacing(6)
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
|
-
...
|
|
382
|
+
...a && {
|
|
383
383
|
"&.MuiMenuItem-root": {
|
|
384
384
|
position: "sticky",
|
|
385
385
|
top: 0,
|
|
@@ -401,7 +401,7 @@ const Gt = d(V, {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
},
|
|
404
|
-
...!
|
|
404
|
+
...!a && {
|
|
405
405
|
".MuiList-root &:first-of-type": {
|
|
406
406
|
marginTop: t.spacing(1)
|
|
407
407
|
}
|
|
@@ -414,10 +414,10 @@ const Gt = d(V, {
|
|
|
414
414
|
}
|
|
415
415
|
})
|
|
416
416
|
);
|
|
417
|
-
function
|
|
418
|
-
return /* @__PURE__ */ o(
|
|
417
|
+
function et(t) {
|
|
418
|
+
return /* @__PURE__ */ o(Ut, { ...t });
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const jt = c(ut, {
|
|
421
421
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
422
422
|
})(({ theme: t, extended: e, width: n, height: r }) => ({
|
|
423
423
|
...e && {
|
|
@@ -435,39 +435,39 @@ const _t = d(at, {
|
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
}));
|
|
438
|
-
function
|
|
439
|
-
return /* @__PURE__ */ o(
|
|
438
|
+
function He(t) {
|
|
439
|
+
return /* @__PURE__ */ o(jt, { ...t });
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function qt({
|
|
442
442
|
selectedOptions: t,
|
|
443
443
|
options: e,
|
|
444
444
|
onChange: n
|
|
445
445
|
}) {
|
|
446
|
-
const [r, i] =
|
|
447
|
-
return
|
|
446
|
+
const [r, i] = k(t ?? []), a = e.length === r.length, s = r.length > 0;
|
|
447
|
+
return K(() => {
|
|
448
448
|
r !== t && i(r);
|
|
449
449
|
}, [t]), {
|
|
450
|
-
areAllSelected:
|
|
450
|
+
areAllSelected: a,
|
|
451
451
|
areAnySelected: s,
|
|
452
452
|
currentOptions: r,
|
|
453
|
-
handleChange: (
|
|
453
|
+
handleChange: (d) => {
|
|
454
454
|
const {
|
|
455
|
-
target: { value:
|
|
456
|
-
} =
|
|
455
|
+
target: { value: u }
|
|
456
|
+
} = d, h = typeof u == "string" ? u.split(",") : u.filter((x) => x !== void 0);
|
|
457
457
|
i(h), n(h);
|
|
458
458
|
},
|
|
459
459
|
selectAll: () => {
|
|
460
|
-
const
|
|
461
|
-
|
|
460
|
+
const d = e == null ? void 0 : e.filter(({ disabled: u }) => !u).map(({ value: u }) => u);
|
|
461
|
+
d && (d.every(
|
|
462
462
|
(h) => r.includes(h)
|
|
463
|
-
) ? (i([]), n([])) : (i(
|
|
463
|
+
) ? (i([]), n([])) : (i(d), n(d)));
|
|
464
464
|
},
|
|
465
465
|
unselectAll: () => {
|
|
466
466
|
i([]), n([]);
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
const
|
|
470
|
+
const zt = c(pt)(
|
|
471
471
|
({ disabled: t, theme: e }) => ({
|
|
472
472
|
display: "flex",
|
|
473
473
|
alignItems: "center",
|
|
@@ -480,15 +480,15 @@ const Ht = d(lt)(
|
|
|
480
480
|
}
|
|
481
481
|
})
|
|
482
482
|
);
|
|
483
|
-
function
|
|
483
|
+
function Nt({
|
|
484
484
|
areAllSelected: t,
|
|
485
485
|
areAnySelected: e,
|
|
486
486
|
selectAll: n,
|
|
487
487
|
selectAllDisabled: r
|
|
488
488
|
}) {
|
|
489
|
-
const i =
|
|
490
|
-
return /* @__PURE__ */ o(
|
|
491
|
-
|
|
489
|
+
const i = O(), a = R(i);
|
|
490
|
+
return /* @__PURE__ */ o(et, { fixed: !0, children: /* @__PURE__ */ y(
|
|
491
|
+
zt,
|
|
492
492
|
{
|
|
493
493
|
variant: "body2",
|
|
494
494
|
color: "textPrimary",
|
|
@@ -499,26 +499,26 @@ function Wt({
|
|
|
499
499
|
tabIndex: 0,
|
|
500
500
|
children: [
|
|
501
501
|
/* @__PURE__ */ o(
|
|
502
|
-
|
|
502
|
+
Z,
|
|
503
503
|
{
|
|
504
504
|
checked: t,
|
|
505
505
|
indeterminate: e && !t,
|
|
506
506
|
disabled: r
|
|
507
507
|
}
|
|
508
508
|
),
|
|
509
|
-
|
|
509
|
+
a.formatMessage({ id: "c4r.form.selectAll" })
|
|
510
510
|
]
|
|
511
511
|
}
|
|
512
512
|
) });
|
|
513
513
|
}
|
|
514
|
-
const
|
|
514
|
+
const Yt = c(V)(({ theme: t }) => ({
|
|
515
515
|
"&.Mui-disabled": {
|
|
516
516
|
pointerEvents: "auto",
|
|
517
517
|
"&:hover": {
|
|
518
518
|
backgroundColor: `${t.palette.background.default} !important`
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
})),
|
|
521
|
+
})), Zt = c(H)(({ theme: t }) => ({
|
|
522
522
|
display: "none",
|
|
523
523
|
position: "absolute",
|
|
524
524
|
top: t.spacing(2),
|
|
@@ -529,86 +529,86 @@ const Ut = d(V)(({ theme: t }) => ({
|
|
|
529
529
|
".MuiSvgIcon-root": {
|
|
530
530
|
color: t.palette.text.hint
|
|
531
531
|
}
|
|
532
|
-
})),
|
|
532
|
+
})), Jt = [], Kt = () => {
|
|
533
533
|
};
|
|
534
|
-
function
|
|
535
|
-
options: t =
|
|
534
|
+
function Qt({
|
|
535
|
+
options: t = Jt,
|
|
536
536
|
selectedOptions: e,
|
|
537
537
|
size: n = "small",
|
|
538
538
|
placeholder: r,
|
|
539
539
|
showCounter: i,
|
|
540
|
-
showFilters:
|
|
541
|
-
onChange: s =
|
|
540
|
+
showFilters: a = !0,
|
|
541
|
+
onChange: s = Kt,
|
|
542
542
|
selectAllDisabled: g,
|
|
543
543
|
tooltipPlacement: b,
|
|
544
544
|
variant: v,
|
|
545
|
-
...
|
|
546
|
-
},
|
|
545
|
+
...d
|
|
546
|
+
}, u) {
|
|
547
547
|
const {
|
|
548
548
|
areAllSelected: h,
|
|
549
549
|
areAnySelected: x,
|
|
550
550
|
currentOptions: M,
|
|
551
551
|
handleChange: f,
|
|
552
|
-
selectAll:
|
|
553
|
-
unselectAll:
|
|
554
|
-
} =
|
|
552
|
+
selectAll: T,
|
|
553
|
+
unselectAll: I
|
|
554
|
+
} = qt({
|
|
555
555
|
options: t,
|
|
556
556
|
selectedOptions: e,
|
|
557
557
|
onChange: s
|
|
558
|
-
}),
|
|
558
|
+
}), p = n === "small", B = p || v === "standard" ? 0 : 2, l = O(), m = R(l), A = `${M.length} ${m.formatMessage({
|
|
559
559
|
id: "c4r.form.selected"
|
|
560
|
-
})}`,
|
|
561
|
-
|
|
560
|
+
})}`, F = Q(() => h ? /* @__PURE__ */ o(
|
|
561
|
+
S,
|
|
562
562
|
{
|
|
563
563
|
component: "span",
|
|
564
|
-
variant:
|
|
564
|
+
variant: p ? "body2" : "body1",
|
|
565
565
|
color: "textPrimary",
|
|
566
566
|
ml: B,
|
|
567
|
-
children:
|
|
567
|
+
children: m.formatMessage({ id: "c4r.form.allSelected" })
|
|
568
568
|
}
|
|
569
569
|
) : x ? /* @__PURE__ */ o(
|
|
570
|
-
|
|
570
|
+
S,
|
|
571
571
|
{
|
|
572
572
|
component: "span",
|
|
573
|
-
variant:
|
|
573
|
+
variant: p ? "body2" : "body1",
|
|
574
574
|
color: "textPrimary",
|
|
575
575
|
ml: B,
|
|
576
576
|
children: i && M.length > 1 ? A : M.join(", ")
|
|
577
577
|
}
|
|
578
578
|
) : /* @__PURE__ */ o(
|
|
579
|
-
|
|
579
|
+
S,
|
|
580
580
|
{
|
|
581
581
|
component: "span",
|
|
582
|
-
variant:
|
|
582
|
+
variant: p ? "body2" : "body1",
|
|
583
583
|
color: "text.hint",
|
|
584
584
|
ml: B,
|
|
585
|
-
children: r ??
|
|
585
|
+
children: r ?? m.formatMessage({ id: "c4r.form.noneSelected" })
|
|
586
586
|
}
|
|
587
587
|
), [
|
|
588
588
|
h,
|
|
589
589
|
x,
|
|
590
590
|
A,
|
|
591
591
|
M,
|
|
592
|
-
I,
|
|
593
592
|
m,
|
|
593
|
+
p,
|
|
594
594
|
B,
|
|
595
595
|
r,
|
|
596
596
|
i
|
|
597
597
|
]);
|
|
598
598
|
return /* @__PURE__ */ y(
|
|
599
|
-
|
|
599
|
+
Ht,
|
|
600
600
|
{
|
|
601
|
-
...
|
|
602
|
-
ref:
|
|
601
|
+
...d,
|
|
602
|
+
ref: u,
|
|
603
603
|
multiple: !0,
|
|
604
604
|
displayEmpty: !0,
|
|
605
605
|
placeholder: r,
|
|
606
606
|
value: M,
|
|
607
|
-
renderValue: () =>
|
|
607
|
+
renderValue: () => F,
|
|
608
608
|
onChange: f,
|
|
609
609
|
size: n,
|
|
610
610
|
variant: v,
|
|
611
|
-
endAdornment:
|
|
611
|
+
endAdornment: a && x && /* @__PURE__ */ o(Zt, { position: "end", children: /* @__PURE__ */ o(L, { onClick: I, size: "small", children: /* @__PURE__ */ o(X, {}) }) }),
|
|
612
612
|
menuProps: {
|
|
613
613
|
PaperProps: {
|
|
614
614
|
sx: {
|
|
@@ -619,50 +619,50 @@ function Nt({
|
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
621
|
children: [
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
a && /* @__PURE__ */ o(
|
|
623
|
+
Nt,
|
|
624
624
|
{
|
|
625
625
|
areAllSelected: h,
|
|
626
626
|
areAnySelected: x,
|
|
627
|
-
selectAll:
|
|
627
|
+
selectAll: T,
|
|
628
628
|
selectAllDisabled: g
|
|
629
629
|
}
|
|
630
630
|
),
|
|
631
631
|
t == null ? void 0 : t.map((C) => {
|
|
632
|
-
const
|
|
633
|
-
|
|
632
|
+
const E = /* @__PURE__ */ y(
|
|
633
|
+
Yt,
|
|
634
634
|
{
|
|
635
635
|
value: C.value,
|
|
636
636
|
disabled: C.disabled,
|
|
637
637
|
tabIndex: 0,
|
|
638
638
|
children: [
|
|
639
639
|
/* @__PURE__ */ o(
|
|
640
|
-
|
|
640
|
+
Z,
|
|
641
641
|
{
|
|
642
642
|
disabled: C.disabled,
|
|
643
643
|
checked: M.includes(C.value)
|
|
644
644
|
}
|
|
645
645
|
),
|
|
646
|
-
/* @__PURE__ */ o(
|
|
646
|
+
/* @__PURE__ */ o(J, { primary: C.label })
|
|
647
647
|
]
|
|
648
648
|
},
|
|
649
649
|
C.value
|
|
650
650
|
);
|
|
651
651
|
return C.tooltip ? /* @__PURE__ */ o(
|
|
652
|
-
|
|
652
|
+
gt,
|
|
653
653
|
{
|
|
654
654
|
title: C.tooltip,
|
|
655
655
|
placement: b,
|
|
656
|
-
children:
|
|
656
|
+
children: E
|
|
657
657
|
},
|
|
658
658
|
C.value
|
|
659
|
-
) :
|
|
659
|
+
) : E;
|
|
660
660
|
})
|
|
661
661
|
]
|
|
662
662
|
}
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
|
-
const
|
|
665
|
+
const Ve = $(Qt), Xt = W(Y, {
|
|
666
666
|
shouldForwardProp: (t) => t !== "cursor"
|
|
667
667
|
})(
|
|
668
668
|
({ cursor: t, theme: e }) => ({
|
|
@@ -690,27 +690,27 @@ const De = k(Nt), Yt = H(z, {
|
|
|
690
690
|
}
|
|
691
691
|
})
|
|
692
692
|
);
|
|
693
|
-
function
|
|
693
|
+
function te({
|
|
694
694
|
buttonText: t,
|
|
695
695
|
hasFiles: e,
|
|
696
696
|
size: n,
|
|
697
697
|
error: r,
|
|
698
698
|
disabled: i,
|
|
699
|
-
handleReset:
|
|
699
|
+
handleReset: a,
|
|
700
700
|
handleOpen: s,
|
|
701
701
|
inProgress: g
|
|
702
702
|
}) {
|
|
703
|
-
return /* @__PURE__ */ o(
|
|
704
|
-
|
|
703
|
+
return /* @__PURE__ */ o(H, { position: "end", children: g ? /* @__PURE__ */ o(L, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ o(ft, { size: 18 }) }) : e ? /* @__PURE__ */ o(
|
|
704
|
+
L,
|
|
705
705
|
{
|
|
706
|
-
onClick:
|
|
706
|
+
onClick: a,
|
|
707
707
|
size: n,
|
|
708
708
|
"aria-label": "delete",
|
|
709
709
|
disabled: i,
|
|
710
|
-
children: /* @__PURE__ */ o(
|
|
710
|
+
children: /* @__PURE__ */ o(X, {})
|
|
711
711
|
}
|
|
712
712
|
) : /* @__PURE__ */ o(
|
|
713
|
-
|
|
713
|
+
N,
|
|
714
714
|
{
|
|
715
715
|
onClick: s,
|
|
716
716
|
size: n,
|
|
@@ -721,7 +721,7 @@ function Zt({
|
|
|
721
721
|
}
|
|
722
722
|
) });
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function ee({
|
|
725
725
|
name: t,
|
|
726
726
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
727
727
|
multiple: e,
|
|
@@ -729,39 +729,39 @@ function Jt({
|
|
|
729
729
|
handleReset: n,
|
|
730
730
|
handleOpen: r,
|
|
731
731
|
dragOver: i,
|
|
732
|
-
error:
|
|
732
|
+
error: a,
|
|
733
733
|
placeholder: s,
|
|
734
734
|
focused: g,
|
|
735
735
|
buttonText: b = "Browse",
|
|
736
736
|
inProgress: v,
|
|
737
|
-
InputProps:
|
|
738
|
-
size:
|
|
737
|
+
InputProps: d,
|
|
738
|
+
size: u = "small",
|
|
739
739
|
hasFiles: h,
|
|
740
740
|
cursor: x = "pointer",
|
|
741
741
|
...M
|
|
742
742
|
}) {
|
|
743
743
|
return /* @__PURE__ */ o(
|
|
744
|
-
|
|
744
|
+
Xt,
|
|
745
745
|
{
|
|
746
746
|
...M,
|
|
747
|
-
size:
|
|
748
|
-
error:
|
|
747
|
+
size: u,
|
|
748
|
+
error: a,
|
|
749
749
|
placeholder: s,
|
|
750
750
|
focused: g ?? i,
|
|
751
751
|
cursor: x,
|
|
752
752
|
InputProps: {
|
|
753
|
-
...
|
|
753
|
+
...d,
|
|
754
754
|
name: t,
|
|
755
755
|
// multiple prop cannot be used here because it is not a valid prop for TextField InputProps
|
|
756
756
|
// not used for any UI logic
|
|
757
757
|
readOnly: !0,
|
|
758
758
|
endAdornment: /* @__PURE__ */ o(
|
|
759
|
-
|
|
759
|
+
te,
|
|
760
760
|
{
|
|
761
761
|
buttonText: b,
|
|
762
762
|
hasFiles: h,
|
|
763
|
-
size:
|
|
764
|
-
error:
|
|
763
|
+
size: u,
|
|
764
|
+
error: a,
|
|
765
765
|
disabled: !!i,
|
|
766
766
|
handleReset: n,
|
|
767
767
|
handleOpen: r,
|
|
@@ -772,15 +772,15 @@ function Jt({
|
|
|
772
772
|
}
|
|
773
773
|
);
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function ne({
|
|
776
776
|
onChange: t,
|
|
777
777
|
files: e,
|
|
778
778
|
multiple: n,
|
|
779
779
|
placeholder: r,
|
|
780
780
|
uploadInputRef: i
|
|
781
781
|
}) {
|
|
782
|
-
const
|
|
783
|
-
|
|
782
|
+
const a = O(), s = R(a), [g, b] = k(""), [v, d] = k(!1);
|
|
783
|
+
K(() => {
|
|
784
784
|
!e || e.length === 0 ? b("") : e.length === 1 ? b(e[0].name) : b(
|
|
785
785
|
s.formatMessage(
|
|
786
786
|
{ id: "c4r.form.filesSelected" },
|
|
@@ -788,105 +788,105 @@ function Kt({
|
|
|
788
788
|
)
|
|
789
789
|
);
|
|
790
790
|
}, [e, s]);
|
|
791
|
-
const
|
|
792
|
-
var
|
|
793
|
-
(
|
|
794
|
-
}, h = (
|
|
795
|
-
|
|
796
|
-
}, x = (
|
|
797
|
-
|
|
798
|
-
}, M = (
|
|
799
|
-
|
|
800
|
-
const
|
|
791
|
+
const u = () => {
|
|
792
|
+
var l;
|
|
793
|
+
(l = i.current) == null || l.click();
|
|
794
|
+
}, h = (l) => {
|
|
795
|
+
l.preventDefault(), d(!0);
|
|
796
|
+
}, x = (l) => {
|
|
797
|
+
l.preventDefault(), d(!1);
|
|
798
|
+
}, M = (l) => {
|
|
799
|
+
l.preventDefault(), d(!1);
|
|
800
|
+
const m = l.dataTransfer.items, A = f(m);
|
|
801
801
|
t == null || t(A);
|
|
802
|
-
}, f = (
|
|
803
|
-
const
|
|
804
|
-
for (const A of Array.from(
|
|
802
|
+
}, f = (l) => {
|
|
803
|
+
const m = [];
|
|
804
|
+
for (const A of Array.from(l))
|
|
805
805
|
if (A.kind === "file") {
|
|
806
|
-
const
|
|
807
|
-
|
|
806
|
+
const F = A.getAsFile();
|
|
807
|
+
m.push(F);
|
|
808
808
|
}
|
|
809
|
-
return
|
|
810
|
-
},
|
|
811
|
-
const
|
|
812
|
-
t == null || t(
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
},
|
|
816
|
-
const
|
|
809
|
+
return m;
|
|
810
|
+
}, T = (l) => {
|
|
811
|
+
const m = Array.from(l.target.files);
|
|
812
|
+
t == null || t(m);
|
|
813
|
+
}, I = (l) => {
|
|
814
|
+
l.stopPropagation(), b("");
|
|
815
|
+
}, p = Q(() => {
|
|
816
|
+
const l = s.formatMessage(
|
|
817
817
|
{ id: "c4r.form.dragPlaceholder" },
|
|
818
818
|
{ count: n ? 0 : 1 }
|
|
819
|
-
),
|
|
819
|
+
), m = s.formatMessage(
|
|
820
820
|
{ id: "c4r.form.dragActivePlaceholder" },
|
|
821
821
|
{ count: n ? 0 : 1 }
|
|
822
822
|
);
|
|
823
823
|
let A = "";
|
|
824
|
-
return v ? A =
|
|
824
|
+
return v ? A = m : A = r ?? l, A;
|
|
825
825
|
}, [v, n, r, s]);
|
|
826
826
|
return {
|
|
827
827
|
filesText: g,
|
|
828
|
-
getPlaceholder:
|
|
828
|
+
getPlaceholder: p,
|
|
829
829
|
dragOver: v,
|
|
830
830
|
inputEvents: {
|
|
831
831
|
onDragOver: h,
|
|
832
832
|
onDragLeave: x,
|
|
833
833
|
onDrop: M,
|
|
834
|
-
onClick:
|
|
834
|
+
onClick: u
|
|
835
835
|
},
|
|
836
|
-
handleFiles:
|
|
837
|
-
handleReset:
|
|
836
|
+
handleFiles: T,
|
|
837
|
+
handleReset: I
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
const
|
|
841
|
-
function
|
|
840
|
+
const oe = ["application/JSON"];
|
|
841
|
+
function We({
|
|
842
842
|
name: t,
|
|
843
843
|
buttonText: e,
|
|
844
844
|
accept: n,
|
|
845
845
|
files: r,
|
|
846
846
|
inProgress: i,
|
|
847
|
-
onChange:
|
|
847
|
+
onChange: a,
|
|
848
848
|
multiple: s,
|
|
849
849
|
placeholder: g,
|
|
850
850
|
error: b,
|
|
851
851
|
focused: v,
|
|
852
|
-
nativeInputProps:
|
|
853
|
-
...
|
|
852
|
+
nativeInputProps: d,
|
|
853
|
+
...u
|
|
854
854
|
}) {
|
|
855
|
-
const h = n ??
|
|
855
|
+
const h = n ?? oe, x = Tt(null), {
|
|
856
856
|
filesText: M,
|
|
857
857
|
getPlaceholder: f,
|
|
858
|
-
dragOver:
|
|
859
|
-
inputEvents:
|
|
860
|
-
handleFiles:
|
|
858
|
+
dragOver: T,
|
|
859
|
+
inputEvents: I,
|
|
860
|
+
handleFiles: p,
|
|
861
861
|
handleReset: B
|
|
862
|
-
} =
|
|
862
|
+
} = ne({
|
|
863
863
|
uploadInputRef: x,
|
|
864
864
|
files: r,
|
|
865
|
-
onChange:
|
|
865
|
+
onChange: a,
|
|
866
866
|
multiple: s,
|
|
867
867
|
placeholder: g
|
|
868
868
|
});
|
|
869
|
-
return /* @__PURE__ */ y(
|
|
869
|
+
return /* @__PURE__ */ y(_, { children: [
|
|
870
870
|
/* @__PURE__ */ o(
|
|
871
|
-
|
|
871
|
+
ee,
|
|
872
872
|
{
|
|
873
|
-
...
|
|
873
|
+
...u,
|
|
874
874
|
placeholder: f,
|
|
875
875
|
value: M,
|
|
876
876
|
error: b,
|
|
877
|
-
focused: v ??
|
|
877
|
+
focused: v ?? T,
|
|
878
878
|
handleReset: B,
|
|
879
|
-
dragOver:
|
|
879
|
+
dragOver: T,
|
|
880
880
|
inProgress: i,
|
|
881
881
|
hasFiles: !!M,
|
|
882
|
-
InputProps:
|
|
882
|
+
InputProps: I,
|
|
883
883
|
buttonText: e
|
|
884
884
|
}
|
|
885
885
|
),
|
|
886
886
|
/* @__PURE__ */ o(
|
|
887
887
|
"input",
|
|
888
888
|
{
|
|
889
|
-
...
|
|
889
|
+
...d,
|
|
890
890
|
ref: x,
|
|
891
891
|
style: { display: "none" },
|
|
892
892
|
type: "file",
|
|
@@ -894,12 +894,12 @@ function Ge({
|
|
|
894
894
|
name: t,
|
|
895
895
|
accept: String(h),
|
|
896
896
|
multiple: s,
|
|
897
|
-
onChange:
|
|
897
|
+
onChange: p
|
|
898
898
|
}
|
|
899
899
|
)
|
|
900
900
|
] });
|
|
901
901
|
}
|
|
902
|
-
const
|
|
902
|
+
const re = c("div", {
|
|
903
903
|
shouldForwardProp: (t) => t !== "variant"
|
|
904
904
|
})(({ variant: t, theme: e }) => ({
|
|
905
905
|
width: "100%",
|
|
@@ -909,114 +909,117 @@ const Xt = d("div", {
|
|
|
909
909
|
boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
|
|
910
910
|
}
|
|
911
911
|
}));
|
|
912
|
-
function
|
|
912
|
+
function Ue({
|
|
913
913
|
variant: t = "standard",
|
|
914
914
|
items: e,
|
|
915
915
|
...n
|
|
916
916
|
}) {
|
|
917
|
-
return /* @__PURE__ */ o(
|
|
918
|
-
|
|
917
|
+
return /* @__PURE__ */ o(re, { ...n, variant: t, children: e.map((r, i) => /* @__PURE__ */ y(
|
|
918
|
+
mt,
|
|
919
919
|
{
|
|
920
920
|
disabled: r.disabled,
|
|
921
921
|
defaultExpanded: r.defaultExpanded,
|
|
922
922
|
onChange: r.onChange,
|
|
923
923
|
children: [
|
|
924
924
|
/* @__PURE__ */ o(
|
|
925
|
-
|
|
925
|
+
ht,
|
|
926
926
|
{
|
|
927
927
|
"aria-controls": `${i}-content`,
|
|
928
928
|
id: `${i}-header`,
|
|
929
929
|
children: r.summary
|
|
930
930
|
}
|
|
931
931
|
),
|
|
932
|
-
/* @__PURE__ */ o(
|
|
932
|
+
/* @__PURE__ */ o(Mt, { children: r.content })
|
|
933
933
|
]
|
|
934
934
|
},
|
|
935
935
|
i
|
|
936
936
|
)) });
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
function
|
|
938
|
+
const ie = yt(), ae = "c4r.form.add";
|
|
939
|
+
function le(t) {
|
|
940
940
|
return t && typeof t == "object" ? t.title ?? String(t) : String(t);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function se({
|
|
943
943
|
creatable: t,
|
|
944
|
-
newItemLabel: e =
|
|
944
|
+
newItemLabel: e = ae,
|
|
945
945
|
newItemIcon: n,
|
|
946
946
|
freeSolo: r,
|
|
947
947
|
renderOption: i,
|
|
948
|
-
forcePopupIcon:
|
|
948
|
+
forcePopupIcon: a,
|
|
949
949
|
filterOptions: s,
|
|
950
|
-
getOptionLabel: g =
|
|
950
|
+
getOptionLabel: g = le,
|
|
951
951
|
...b
|
|
952
952
|
}, v) {
|
|
953
|
-
const
|
|
953
|
+
const d = O(), u = R(d);
|
|
954
954
|
return /* @__PURE__ */ o(
|
|
955
|
-
|
|
955
|
+
bt,
|
|
956
956
|
{
|
|
957
957
|
...b,
|
|
958
958
|
ref: v,
|
|
959
|
-
filterOptions: t ? (f,
|
|
960
|
-
const
|
|
959
|
+
filterOptions: t ? (f, T) => {
|
|
960
|
+
const I = ie(
|
|
961
961
|
f,
|
|
962
|
-
|
|
963
|
-
), { inputValue:
|
|
964
|
-
(
|
|
962
|
+
T
|
|
963
|
+
), { inputValue: p } = T, B = f.some(
|
|
964
|
+
(l) => p === g(l)
|
|
965
965
|
);
|
|
966
|
-
return
|
|
967
|
-
inputValue:
|
|
968
|
-
title: typeof e == "function" ? e(
|
|
969
|
-
}),
|
|
966
|
+
return p.length > 1 && p !== "" && !B && I.push({
|
|
967
|
+
inputValue: p,
|
|
968
|
+
title: typeof e == "function" ? e(p) : `${u.formatMessage({ id: e })} "${p}"`
|
|
969
|
+
}), I;
|
|
970
970
|
} : s,
|
|
971
971
|
getOptionLabel: t ? (f) => typeof f == "string" ? f : f.inputValue ? f.inputValue : g(f) : g,
|
|
972
|
-
renderOption: t ? (f,
|
|
973
|
-
|
|
974
|
-
/* @__PURE__ */ y(
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
972
|
+
renderOption: t ? (f, T) => {
|
|
973
|
+
const { inputValue: I, title: p, alternativeTitle: B, secondaryText: l, divider: m, fixed: A, extended: F, dense: C, destructive: E, disabled: U, subtitle: nt, iconColor: ot, startAdornment: j, endAdornment: rt } = T;
|
|
974
|
+
return /* @__PURE__ */ o(At, { children: m ? /* @__PURE__ */ o(G, {}) : /* @__PURE__ */ y(_, { children: [
|
|
975
|
+
I && /* @__PURE__ */ o(G, {}),
|
|
976
|
+
/* @__PURE__ */ y(
|
|
977
|
+
et,
|
|
978
|
+
{
|
|
979
|
+
...f,
|
|
980
|
+
fixed: A,
|
|
981
|
+
extended: F,
|
|
982
|
+
dense: C,
|
|
983
|
+
destructive: E,
|
|
984
|
+
disabled: U,
|
|
985
|
+
subtitle: nt,
|
|
986
|
+
iconColor: ot,
|
|
987
|
+
children: [
|
|
988
|
+
I && /* @__PURE__ */ o(q, { children: n ?? /* @__PURE__ */ o(wt, {}) }),
|
|
989
|
+
j && !I && /* @__PURE__ */ o(q, { children: j }),
|
|
990
|
+
/* @__PURE__ */ y(J, { children: [
|
|
991
|
+
B ?? p,
|
|
992
|
+
l && /* @__PURE__ */ o(
|
|
993
|
+
S,
|
|
994
|
+
{
|
|
995
|
+
component: "p",
|
|
996
|
+
variant: "caption",
|
|
997
|
+
color: "text.secondary",
|
|
998
|
+
children: l
|
|
999
|
+
}
|
|
1000
|
+
)
|
|
1001
|
+
] }),
|
|
1002
|
+
rt
|
|
1003
|
+
]
|
|
1004
|
+
}
|
|
1005
|
+
)
|
|
1006
|
+
] }) }, I ?? p);
|
|
1007
|
+
} : i,
|
|
1005
1008
|
freeSolo: t || r,
|
|
1006
|
-
forcePopupIcon: t ||
|
|
1009
|
+
forcePopupIcon: t || a
|
|
1007
1010
|
}
|
|
1008
1011
|
);
|
|
1009
1012
|
}
|
|
1010
|
-
const
|
|
1013
|
+
const je = $(se), z = {
|
|
1011
1014
|
large: 5,
|
|
1012
1015
|
medium: 4,
|
|
1013
1016
|
small: 3,
|
|
1014
1017
|
xsmall: 2.25
|
|
1015
|
-
},
|
|
1018
|
+
}, ce = c(vt, {
|
|
1016
1019
|
shouldForwardProp: (t) => t !== "size"
|
|
1017
1020
|
})(({ theme: t, size: e = "medium" }) => ({
|
|
1018
|
-
width: t.spacing(
|
|
1019
|
-
height: t.spacing(
|
|
1021
|
+
width: t.spacing(z[e]),
|
|
1022
|
+
height: t.spacing(z[e]),
|
|
1020
1023
|
...t.typography.subtitle1,
|
|
1021
1024
|
...e === "large" && {
|
|
1022
1025
|
...t.typography.h6
|
|
@@ -1029,48 +1032,48 @@ const Ve = k(oe), j = {
|
|
|
1029
1032
|
...t.typography.caption,
|
|
1030
1033
|
fontWeight: 500,
|
|
1031
1034
|
svg: {
|
|
1032
|
-
width:
|
|
1033
|
-
height:
|
|
1035
|
+
width: w,
|
|
1036
|
+
height: w
|
|
1034
1037
|
}
|
|
1035
1038
|
}
|
|
1036
1039
|
}));
|
|
1037
|
-
function
|
|
1038
|
-
return /* @__PURE__ */ o(
|
|
1040
|
+
function qe(t) {
|
|
1041
|
+
return /* @__PURE__ */ o(ce, { ...t });
|
|
1039
1042
|
}
|
|
1040
|
-
const
|
|
1043
|
+
const de = c("div")(({ theme: t }) => ({
|
|
1041
1044
|
display: "flex",
|
|
1042
1045
|
alignItems: "center",
|
|
1043
|
-
height:
|
|
1046
|
+
height: St,
|
|
1044
1047
|
marginRight: t.spacing(1.5)
|
|
1045
|
-
})),
|
|
1048
|
+
})), ue = c(L)(({ theme: t }) => ({
|
|
1046
1049
|
marginRight: t.spacing(1),
|
|
1047
1050
|
"&.MuiButtonBase-root svg path": {
|
|
1048
1051
|
fill: t.palette.brand.appBarContrastText
|
|
1049
1052
|
}
|
|
1050
|
-
})),
|
|
1051
|
-
borderColor:
|
|
1053
|
+
})), pe = c(G)(({ theme: t }) => ({
|
|
1054
|
+
borderColor: xt(t.palette.brand.appBarContrastText, 0.12)
|
|
1052
1055
|
}));
|
|
1053
|
-
function
|
|
1056
|
+
function ge({
|
|
1054
1057
|
onClickMenu: t
|
|
1055
1058
|
}) {
|
|
1056
1059
|
return (
|
|
1057
1060
|
// replacing deprecated `<Hidden />` with sx following this MUI5 guide:
|
|
1058
1061
|
// https://mui.com/material-ui/migration/v5-component-changes/#hidden
|
|
1059
1062
|
/* @__PURE__ */ o(
|
|
1060
|
-
|
|
1063
|
+
P,
|
|
1061
1064
|
{
|
|
1062
1065
|
sx: {
|
|
1063
1066
|
display: { md: "none", xs: "block" }
|
|
1064
1067
|
},
|
|
1065
|
-
children: /* @__PURE__ */ y(
|
|
1066
|
-
/* @__PURE__ */ o(
|
|
1067
|
-
/* @__PURE__ */ o(
|
|
1068
|
+
children: /* @__PURE__ */ y(de, { children: [
|
|
1069
|
+
/* @__PURE__ */ o(ue, { onClick: t, children: /* @__PURE__ */ o(Pt, {}) }),
|
|
1070
|
+
/* @__PURE__ */ o(pe, { orientation: "vertical", flexItem: !0 })
|
|
1068
1071
|
] })
|
|
1069
1072
|
}
|
|
1070
1073
|
)
|
|
1071
1074
|
);
|
|
1072
1075
|
}
|
|
1073
|
-
const
|
|
1076
|
+
const fe = c("div")(({ theme: t }) => ({
|
|
1074
1077
|
display: "flex",
|
|
1075
1078
|
marginRight: t.spacing(1.5),
|
|
1076
1079
|
"& a": {
|
|
@@ -1081,18 +1084,18 @@ const de = d("div")(({ theme: t }) => ({
|
|
|
1081
1084
|
height: t.spacing(4)
|
|
1082
1085
|
}
|
|
1083
1086
|
}));
|
|
1084
|
-
function
|
|
1085
|
-
return /* @__PURE__ */ o(
|
|
1087
|
+
function me({ logo: t }) {
|
|
1088
|
+
return /* @__PURE__ */ o(fe, { children: t });
|
|
1086
1089
|
}
|
|
1087
|
-
const
|
|
1090
|
+
const he = W(S)({
|
|
1088
1091
|
display: "flex",
|
|
1089
1092
|
alignItems: "center",
|
|
1090
1093
|
whiteSpace: "nowrap"
|
|
1091
1094
|
});
|
|
1092
|
-
function
|
|
1093
|
-
const e =
|
|
1095
|
+
function Me({ text: t }) {
|
|
1096
|
+
const e = tt();
|
|
1094
1097
|
return /* @__PURE__ */ o(
|
|
1095
|
-
|
|
1098
|
+
he,
|
|
1096
1099
|
{
|
|
1097
1100
|
component: "span",
|
|
1098
1101
|
variant: "subtitle1",
|
|
@@ -1101,7 +1104,7 @@ function pe({ text: t }) {
|
|
|
1101
1104
|
}
|
|
1102
1105
|
);
|
|
1103
1106
|
}
|
|
1104
|
-
const
|
|
1107
|
+
const ye = W(S)(({ theme: t }) => ({
|
|
1105
1108
|
display: "flex",
|
|
1106
1109
|
alignItems: "center",
|
|
1107
1110
|
"&::before": {
|
|
@@ -1111,10 +1114,10 @@ const ge = H(T)(({ theme: t }) => ({
|
|
|
1111
1114
|
color: t.palette.brand.appBarContrastText
|
|
1112
1115
|
}
|
|
1113
1116
|
}));
|
|
1114
|
-
function
|
|
1115
|
-
const e =
|
|
1117
|
+
function be({ text: t }) {
|
|
1118
|
+
const e = tt();
|
|
1116
1119
|
return /* @__PURE__ */ o(
|
|
1117
|
-
|
|
1120
|
+
ye,
|
|
1118
1121
|
{
|
|
1119
1122
|
component: "span",
|
|
1120
1123
|
variant: "body2",
|
|
@@ -1124,7 +1127,7 @@ function fe({ text: t }) {
|
|
|
1124
1127
|
}
|
|
1125
1128
|
);
|
|
1126
1129
|
}
|
|
1127
|
-
const
|
|
1130
|
+
const ve = c(It)(({ theme: t }) => ({
|
|
1128
1131
|
backgroundColor: t.palette.brand.appBarMain,
|
|
1129
1132
|
"& .MuiTypography-root": {
|
|
1130
1133
|
color: t.palette.brand.appBarContrastText
|
|
@@ -1132,7 +1135,7 @@ const me = d(Mt)(({ theme: t }) => ({
|
|
|
1132
1135
|
"& .MuiIconButton-root path": {
|
|
1133
1136
|
fill: t.palette.brand.appBarContrastText
|
|
1134
1137
|
}
|
|
1135
|
-
})),
|
|
1138
|
+
})), xe = c("div")(({ theme: t }) => ({
|
|
1136
1139
|
display: "flex",
|
|
1137
1140
|
alignItems: "center",
|
|
1138
1141
|
maxWidth: "calc(100% - 300px)",
|
|
@@ -1140,63 +1143,63 @@ const me = d(Mt)(({ theme: t }) => ({
|
|
|
1140
1143
|
[t.breakpoints.down("sm")]: {
|
|
1141
1144
|
minWidth: "192px"
|
|
1142
1145
|
}
|
|
1143
|
-
})),
|
|
1146
|
+
})), Ie = c("div")(({ theme: t }) => ({
|
|
1144
1147
|
display: "flex",
|
|
1145
1148
|
alignItems: "center",
|
|
1146
1149
|
justifyContent: "space-between",
|
|
1147
1150
|
flex: 1,
|
|
1148
1151
|
marginLeft: t.spacing(1)
|
|
1149
1152
|
}));
|
|
1150
|
-
function
|
|
1153
|
+
function ze({
|
|
1151
1154
|
children: t,
|
|
1152
1155
|
brandLogo: e,
|
|
1153
1156
|
brandText: n,
|
|
1154
1157
|
secondaryText: r,
|
|
1155
1158
|
showBurgerMenu: i = !1,
|
|
1156
|
-
onClickMenu:
|
|
1159
|
+
onClickMenu: a,
|
|
1157
1160
|
...s
|
|
1158
1161
|
}) {
|
|
1159
|
-
return /* @__PURE__ */ o(
|
|
1160
|
-
/* @__PURE__ */ y(
|
|
1161
|
-
i && /* @__PURE__ */ o(
|
|
1162
|
-
e && /* @__PURE__ */ o(
|
|
1163
|
-
n && /* @__PURE__ */ o(
|
|
1164
|
-
r && /* @__PURE__ */ o(
|
|
1162
|
+
return /* @__PURE__ */ o(ve, { ...s, children: /* @__PURE__ */ y(Bt, { children: [
|
|
1163
|
+
/* @__PURE__ */ y(xe, { children: [
|
|
1164
|
+
i && /* @__PURE__ */ o(ge, { onClickMenu: a }),
|
|
1165
|
+
e && /* @__PURE__ */ o(me, { logo: e }),
|
|
1166
|
+
n && /* @__PURE__ */ o(Me, { text: n }),
|
|
1167
|
+
r && /* @__PURE__ */ o(be, { text: r })
|
|
1165
1168
|
] }),
|
|
1166
|
-
/* @__PURE__ */ o(
|
|
1169
|
+
/* @__PURE__ */ o(Ie, { children: t })
|
|
1167
1170
|
] }) });
|
|
1168
1171
|
}
|
|
1169
|
-
const
|
|
1172
|
+
const Be = [{ outlinedBullet: !1, value: "" }], Te = c("ul")(({ theme: t }) => ({
|
|
1170
1173
|
listStyle: "none",
|
|
1171
1174
|
paddingLeft: 0,
|
|
1172
1175
|
margin: t.spacing(0.5, 0, 0, 0)
|
|
1173
|
-
})),
|
|
1176
|
+
})), Ae = c("li")(({ theme: t }) => ({
|
|
1174
1177
|
display: "flex",
|
|
1175
1178
|
alignItems: "center",
|
|
1176
1179
|
justifyContent: "space-between",
|
|
1177
1180
|
"&:not(:last-child)": {
|
|
1178
1181
|
marginBottom: t.spacing(0.5)
|
|
1179
1182
|
}
|
|
1180
|
-
})),
|
|
1183
|
+
})), Se = c("span")(({ theme: t }) => ({
|
|
1181
1184
|
width: t.spacing(1),
|
|
1182
1185
|
height: t.spacing(1),
|
|
1183
1186
|
marginRight: t.spacing(0.5),
|
|
1184
1187
|
border: `2px solid ${t.palette.qualitative.bold[1]}`,
|
|
1185
1188
|
borderRadius: "50%",
|
|
1186
1189
|
backgroundColor: t.palette.qualitative.bold[1]
|
|
1187
|
-
})),
|
|
1190
|
+
})), Ce = c(S)(({ theme: t }) => ({
|
|
1188
1191
|
minWidth: t.spacing(10),
|
|
1189
1192
|
marginRight: t.spacing(1.5)
|
|
1190
1193
|
}));
|
|
1191
|
-
function
|
|
1192
|
-
items: t =
|
|
1194
|
+
function Ne({
|
|
1195
|
+
items: t = Be,
|
|
1193
1196
|
title: e
|
|
1194
1197
|
}) {
|
|
1195
|
-
return /* @__PURE__ */ y(
|
|
1196
|
-
e && /* @__PURE__ */ o(
|
|
1197
|
-
/* @__PURE__ */ o(
|
|
1198
|
+
return /* @__PURE__ */ y(_, { children: [
|
|
1199
|
+
e && /* @__PURE__ */ o(S, { color: "inherit", variant: "caption", weight: "medium", children: e }),
|
|
1200
|
+
/* @__PURE__ */ o(Te, { children: t.map((n, r) => /* @__PURE__ */ y(Ae, { children: [
|
|
1198
1201
|
/* @__PURE__ */ o(
|
|
1199
|
-
|
|
1202
|
+
Se,
|
|
1200
1203
|
{
|
|
1201
1204
|
style: {
|
|
1202
1205
|
backgroundColor: `${n.outlinedBullet ? "transparent" : n.color}`,
|
|
@@ -1204,29 +1207,29 @@ function Ue({
|
|
|
1204
1207
|
}
|
|
1205
1208
|
}
|
|
1206
1209
|
),
|
|
1207
|
-
n.category && /* @__PURE__ */ o(
|
|
1208
|
-
/* @__PURE__ */ o(
|
|
1210
|
+
n.category && /* @__PURE__ */ o(Ce, { color: "inherit", variant: "caption", children: n.category }),
|
|
1211
|
+
/* @__PURE__ */ o(S, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
|
|
1209
1212
|
] }, r)) })
|
|
1210
1213
|
] });
|
|
1211
1214
|
}
|
|
1212
1215
|
export {
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1216
|
+
Ue as AccordionGroup,
|
|
1217
|
+
Qe as Alert,
|
|
1218
|
+
ze as AppBar,
|
|
1219
|
+
je as Autocomplete,
|
|
1220
|
+
qe as Avatar,
|
|
1221
|
+
Re as Button,
|
|
1222
|
+
Oe as LabelWithIndicator,
|
|
1223
|
+
_e as Menu,
|
|
1224
|
+
et as MenuItem,
|
|
1225
|
+
He as MenuList,
|
|
1226
|
+
Ve as MultipleSelectField,
|
|
1227
|
+
De as PasswordField,
|
|
1228
|
+
Ht as SelectField,
|
|
1229
|
+
Je as TablePaginationActions,
|
|
1230
|
+
Ge as ToggleButtonGroup,
|
|
1231
|
+
Ne as TooltipData,
|
|
1232
|
+
S as Typography,
|
|
1233
|
+
We as UploadField,
|
|
1234
|
+
ee as UploadFieldBase
|
|
1232
1235
|
};
|