@carto/meridian-ds 1.4.2-alpha-unit-tests.1 → 1.4.2-multiple-selectall.1
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/CHANGELOG.md +3 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +147 -136
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts +2 -0
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -1
- package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts.map +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +6 -3
package/dist/components/index.js
CHANGED
|
@@ -35,13 +35,13 @@ function Ce({
|
|
|
35
35
|
endIcon: a,
|
|
36
36
|
loadingPosition: r,
|
|
37
37
|
...l
|
|
38
|
-
},
|
|
39
|
-
const
|
|
40
|
-
/* @__PURE__ */ i(ye, { children:
|
|
38
|
+
}, s) {
|
|
39
|
+
const c = /* @__PURE__ */ i(P, { size: 18, color: "inherit" }), p = e && r === void 0, h = () => p ? /* @__PURE__ */ y(v, { sx: { position: "relative" }, children: [
|
|
40
|
+
/* @__PURE__ */ i(ye, { children: c }),
|
|
41
41
|
/* @__PURE__ */ i(Me, { children: t })
|
|
42
42
|
] }) : t, d = (m) => {
|
|
43
43
|
if (!p)
|
|
44
|
-
return e && r !== void 0 ? r === m ?
|
|
44
|
+
return e && r !== void 0 ? r === m ? c : void 0 : m === "start" ? o : a;
|
|
45
45
|
};
|
|
46
46
|
return /* @__PURE__ */ i(
|
|
47
47
|
gt,
|
|
@@ -51,7 +51,7 @@ function Ce({
|
|
|
51
51
|
endIcon: d("end"),
|
|
52
52
|
...l,
|
|
53
53
|
role: l.href ? "link" : "button",
|
|
54
|
-
ref:
|
|
54
|
+
ref: s,
|
|
55
55
|
children: /* @__PURE__ */ i(S, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: h() })
|
|
56
56
|
}
|
|
57
57
|
);
|
|
@@ -100,7 +100,7 @@ function K({
|
|
|
100
100
|
] });
|
|
101
101
|
}
|
|
102
102
|
function Ae({ InputProps: t, size: e = "small", ...n }, o) {
|
|
103
|
-
const a = F(), r = R(a), [l,
|
|
103
|
+
const a = F(), r = R(a), [l, s] = $(!1);
|
|
104
104
|
return /* @__PURE__ */ i(
|
|
105
105
|
ft,
|
|
106
106
|
{
|
|
@@ -110,7 +110,7 @@ function Ae({ InputProps: t, size: e = "small", ...n }, o) {
|
|
|
110
110
|
size: e,
|
|
111
111
|
InputProps: {
|
|
112
112
|
...t,
|
|
113
|
-
endAdornment: /* @__PURE__ */ i(q, { position: "end", children: /* @__PURE__ */ i(W, { size: e, onClick: () =>
|
|
113
|
+
endAdornment: /* @__PURE__ */ i(q, { position: "end", children: /* @__PURE__ */ i(W, { size: e, onClick: () => s(!l), children: /* @__PURE__ */ i(
|
|
114
114
|
H,
|
|
115
115
|
{
|
|
116
116
|
title: r.formatMessage({
|
|
@@ -156,8 +156,8 @@ function Se({
|
|
|
156
156
|
menuProps: a,
|
|
157
157
|
inputProps: r,
|
|
158
158
|
labelId: l,
|
|
159
|
-
label:
|
|
160
|
-
labelSecondary:
|
|
159
|
+
label: s,
|
|
160
|
+
labelSecondary: c,
|
|
161
161
|
helperText: p,
|
|
162
162
|
name: h,
|
|
163
163
|
error: d,
|
|
@@ -168,7 +168,7 @@ function Se({
|
|
|
168
168
|
"aria-label": b,
|
|
169
169
|
...I
|
|
170
170
|
}, k) {
|
|
171
|
-
const D = n === "small", [x] = $(() => Ie("select-label-")), C =
|
|
171
|
+
const D = n === "small", [x] = $(() => Ie("select-label-")), C = s ? l ?? x : void 0;
|
|
172
172
|
return /* @__PURE__ */ y(
|
|
173
173
|
Et,
|
|
174
174
|
{
|
|
@@ -182,8 +182,8 @@ function Se({
|
|
|
182
182
|
"data-size": n,
|
|
183
183
|
children: [
|
|
184
184
|
/* @__PURE__ */ y(v, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
s && /* @__PURE__ */ i(Ht, { shrink: !0, id: C, children: s }),
|
|
186
|
+
c && /* @__PURE__ */ i(v, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: c })
|
|
187
187
|
] }),
|
|
188
188
|
/* @__PURE__ */ y(
|
|
189
189
|
we,
|
|
@@ -347,8 +347,8 @@ function Oe({
|
|
|
347
347
|
variant: a = "icon",
|
|
348
348
|
color: r = "default",
|
|
349
349
|
sx: l,
|
|
350
|
-
className:
|
|
351
|
-
loading:
|
|
350
|
+
className: s,
|
|
351
|
+
loading: c,
|
|
352
352
|
disabled: p,
|
|
353
353
|
active: h,
|
|
354
354
|
...d
|
|
@@ -356,7 +356,7 @@ function Oe({
|
|
|
356
356
|
return /* @__PURE__ */ i(H, { placement: e, title: t ?? "", children: /* @__PURE__ */ i(
|
|
357
357
|
Re,
|
|
358
358
|
{
|
|
359
|
-
className: `optionIconButton ${
|
|
359
|
+
className: `optionIconButton ${s ?? ""}`,
|
|
360
360
|
sx: l,
|
|
361
361
|
"data-testid": "icon-button",
|
|
362
362
|
children: /* @__PURE__ */ i(
|
|
@@ -368,9 +368,9 @@ function Oe({
|
|
|
368
368
|
variant: a,
|
|
369
369
|
color: r,
|
|
370
370
|
active: h,
|
|
371
|
-
disabled: p ||
|
|
371
|
+
disabled: p || c,
|
|
372
372
|
role: "button",
|
|
373
|
-
children:
|
|
373
|
+
children: c ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : n
|
|
374
374
|
}
|
|
375
375
|
)
|
|
376
376
|
}
|
|
@@ -472,32 +472,43 @@ function je({
|
|
|
472
472
|
areAnySelected: e,
|
|
473
473
|
selectAll: n,
|
|
474
474
|
selectAllDisabled: o,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
475
|
+
"aria-label": a,
|
|
476
|
+
"data-testid": r
|
|
477
|
+
}, l) {
|
|
478
|
+
const s = F(), c = R(s);
|
|
479
|
+
return /* @__PURE__ */ i(
|
|
480
|
+
Pe,
|
|
480
481
|
{
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
482
|
+
ref: l,
|
|
483
|
+
fixed: !0,
|
|
484
|
+
"data-name": "menu-filter",
|
|
485
|
+
"aria-label": a,
|
|
486
|
+
"data-testid": r,
|
|
487
|
+
children: /* @__PURE__ */ y(
|
|
488
|
+
Ge,
|
|
489
|
+
{
|
|
490
|
+
variant: "body2",
|
|
491
|
+
color: "textPrimary",
|
|
492
|
+
component: "button",
|
|
493
|
+
underline: "none",
|
|
494
|
+
disabled: !!o,
|
|
495
|
+
onClick: n,
|
|
496
|
+
tabIndex: 0,
|
|
497
|
+
children: [
|
|
498
|
+
/* @__PURE__ */ i(
|
|
499
|
+
z,
|
|
500
|
+
{
|
|
501
|
+
checked: t,
|
|
502
|
+
indeterminate: e && !t,
|
|
503
|
+
disabled: o
|
|
504
|
+
}
|
|
505
|
+
),
|
|
506
|
+
c.formatMessage({ id: "c4r.form.selectAll" })
|
|
507
|
+
]
|
|
508
|
+
}
|
|
509
|
+
)
|
|
499
510
|
}
|
|
500
|
-
)
|
|
511
|
+
);
|
|
501
512
|
}
|
|
502
513
|
const kt = T(je);
|
|
503
514
|
function Ve({
|
|
@@ -563,8 +574,8 @@ function ze({
|
|
|
563
574
|
showCounter: a,
|
|
564
575
|
showFilters: r = !0,
|
|
565
576
|
onChange: l = qe,
|
|
566
|
-
selectAllDisabled:
|
|
567
|
-
tooltipPlacement:
|
|
577
|
+
selectAllDisabled: s,
|
|
578
|
+
tooltipPlacement: c,
|
|
568
579
|
variant: p,
|
|
569
580
|
...h
|
|
570
581
|
}, d) {
|
|
@@ -649,7 +660,7 @@ function ze({
|
|
|
649
660
|
areAllSelected: m,
|
|
650
661
|
areAnySelected: u,
|
|
651
662
|
selectAll: b,
|
|
652
|
-
selectAllDisabled:
|
|
663
|
+
selectAllDisabled: s
|
|
653
664
|
}
|
|
654
665
|
),
|
|
655
666
|
t == null ? void 0 : t.map((w) => {
|
|
@@ -676,7 +687,7 @@ function ze({
|
|
|
676
687
|
H,
|
|
677
688
|
{
|
|
678
689
|
title: w.tooltip,
|
|
679
|
-
placement:
|
|
690
|
+
placement: c,
|
|
680
691
|
children: E
|
|
681
692
|
},
|
|
682
693
|
w.value
|
|
@@ -722,14 +733,14 @@ function Je({
|
|
|
722
733
|
disabled: a,
|
|
723
734
|
handleReset: r,
|
|
724
735
|
handleOpen: l,
|
|
725
|
-
inProgress:
|
|
736
|
+
inProgress: s
|
|
726
737
|
}) {
|
|
727
|
-
return /* @__PURE__ */ i(q, { position: "end", children:
|
|
738
|
+
return /* @__PURE__ */ i(q, { position: "end", children: s ? /* @__PURE__ */ i(W, { "aria-label": "Loading", disabled: !0, size: n, children: /* @__PURE__ */ i(P, { size: 18 }) }) : e ? /* @__PURE__ */ i(
|
|
728
739
|
W,
|
|
729
740
|
{
|
|
730
741
|
onClick: r,
|
|
731
742
|
size: n,
|
|
732
|
-
"aria-label": "
|
|
743
|
+
"aria-label": "Delete",
|
|
733
744
|
disabled: a,
|
|
734
745
|
children: /* @__PURE__ */ i(yt, {})
|
|
735
746
|
}
|
|
@@ -755,8 +766,8 @@ function Xe({
|
|
|
755
766
|
dragOver: a,
|
|
756
767
|
error: r,
|
|
757
768
|
placeholder: l,
|
|
758
|
-
focused:
|
|
759
|
-
buttonText:
|
|
769
|
+
focused: s,
|
|
770
|
+
buttonText: c = "Browse",
|
|
760
771
|
inProgress: p,
|
|
761
772
|
InputProps: h,
|
|
762
773
|
size: d = "small",
|
|
@@ -771,7 +782,7 @@ function Xe({
|
|
|
771
782
|
size: d,
|
|
772
783
|
error: r,
|
|
773
784
|
placeholder: l,
|
|
774
|
-
focused:
|
|
785
|
+
focused: s ?? a,
|
|
775
786
|
cursor: u,
|
|
776
787
|
InputProps: {
|
|
777
788
|
...h,
|
|
@@ -782,7 +793,7 @@ function Xe({
|
|
|
782
793
|
endAdornment: /* @__PURE__ */ i(
|
|
783
794
|
Je,
|
|
784
795
|
{
|
|
785
|
-
buttonText:
|
|
796
|
+
buttonText: c,
|
|
786
797
|
hasFiles: m,
|
|
787
798
|
size: d,
|
|
788
799
|
error: r,
|
|
@@ -803,9 +814,9 @@ function Ke({
|
|
|
803
814
|
placeholder: o,
|
|
804
815
|
uploadInputRef: a
|
|
805
816
|
}) {
|
|
806
|
-
const r = F(), l = R(r), [
|
|
817
|
+
const r = F(), l = R(r), [s, c] = $(""), [p, h] = $(!1);
|
|
807
818
|
_(() => {
|
|
808
|
-
!e || e.length === 0 ?
|
|
819
|
+
!e || e.length === 0 ? c("") : e.length === 1 ? c(e[0].name) : c(
|
|
809
820
|
l.formatMessage(
|
|
810
821
|
{ id: "c4r.form.filesSelected" },
|
|
811
822
|
{ count: e.length }
|
|
@@ -835,7 +846,7 @@ function Ke({
|
|
|
835
846
|
const C = Array.from(x.target.files);
|
|
836
847
|
t == null || t(C);
|
|
837
848
|
}, I = (x) => {
|
|
838
|
-
x.stopPropagation(),
|
|
849
|
+
x.stopPropagation(), c("");
|
|
839
850
|
}, k = pt(() => {
|
|
840
851
|
const x = l.formatMessage(
|
|
841
852
|
{ id: "c4r.form.dragPlaceholder" },
|
|
@@ -848,7 +859,7 @@ function Ke({
|
|
|
848
859
|
return p ? B = C : B = o ?? x, B;
|
|
849
860
|
}, [p, n, o, l]);
|
|
850
861
|
return {
|
|
851
|
-
filesText:
|
|
862
|
+
filesText: s,
|
|
852
863
|
getPlaceholder: k,
|
|
853
864
|
dragOver: p,
|
|
854
865
|
inputEvents: {
|
|
@@ -870,8 +881,8 @@ function ko({
|
|
|
870
881
|
inProgress: a,
|
|
871
882
|
onChange: r,
|
|
872
883
|
multiple: l,
|
|
873
|
-
placeholder:
|
|
874
|
-
error:
|
|
884
|
+
placeholder: s,
|
|
885
|
+
error: c,
|
|
875
886
|
focused: p,
|
|
876
887
|
nativeInputProps: h,
|
|
877
888
|
...d
|
|
@@ -888,7 +899,7 @@ function ko({
|
|
|
888
899
|
files: o,
|
|
889
900
|
onChange: r,
|
|
890
901
|
multiple: l,
|
|
891
|
-
placeholder:
|
|
902
|
+
placeholder: s
|
|
892
903
|
});
|
|
893
904
|
return /* @__PURE__ */ y(V, { children: [
|
|
894
905
|
/* @__PURE__ */ i(
|
|
@@ -897,7 +908,7 @@ function ko({
|
|
|
897
908
|
...d,
|
|
898
909
|
placeholder: M,
|
|
899
910
|
value: f,
|
|
900
|
-
error:
|
|
911
|
+
error: c,
|
|
901
912
|
focused: p ?? b,
|
|
902
913
|
handleReset: D,
|
|
903
914
|
dragOver: b,
|
|
@@ -948,8 +959,8 @@ function wt() {
|
|
|
948
959
|
return { renderOption: (e, n, o, a, r) => {
|
|
949
960
|
const {
|
|
950
961
|
title: l,
|
|
951
|
-
inputValue:
|
|
952
|
-
divider:
|
|
962
|
+
inputValue: s,
|
|
963
|
+
divider: c,
|
|
953
964
|
fixed: p,
|
|
954
965
|
extended: h,
|
|
955
966
|
dense: d,
|
|
@@ -963,8 +974,8 @@ function wt() {
|
|
|
963
974
|
secondaryText: D,
|
|
964
975
|
multiple: x
|
|
965
976
|
} = n, { key: C, ...B } = e, O = typeof n == "string" || typeof n == "number", w = (E, A, L, et) => L || et || (A && typeof A == "object" && "value" in A ? String(A.value) : E(A));
|
|
966
|
-
return /* @__PURE__ */ i(Ot, { children:
|
|
967
|
-
|
|
977
|
+
return /* @__PURE__ */ i(Ot, { children: c ? /* @__PURE__ */ i(j, {}) : /* @__PURE__ */ y(V, { children: [
|
|
978
|
+
s && /* @__PURE__ */ i(j, {}),
|
|
968
979
|
/* @__PURE__ */ y(
|
|
969
980
|
vt,
|
|
970
981
|
{
|
|
@@ -1015,7 +1026,7 @@ function en({
|
|
|
1015
1026
|
newItemIcon: n,
|
|
1016
1027
|
multiple: o
|
|
1017
1028
|
}) {
|
|
1018
|
-
const a = F(), r = R(a), l = Nt(), { renderOption:
|
|
1029
|
+
const a = F(), r = R(a), l = Nt(), { renderOption: s } = wt();
|
|
1019
1030
|
return {
|
|
1020
1031
|
creatableFilterOptions: (d, m) => {
|
|
1021
1032
|
const u = l(
|
|
@@ -1036,7 +1047,7 @@ function en({
|
|
|
1036
1047
|
creatableOptionLabel: (d) => typeof d == "string" ? d : d.inputValue ? d.inputValue : t(d),
|
|
1037
1048
|
creatableRenderOption: (d, m, u) => {
|
|
1038
1049
|
const f = m.inputValue ? n ?? /* @__PURE__ */ i(de, {}) : void 0, M = At(m, !!o);
|
|
1039
|
-
return
|
|
1050
|
+
return s(
|
|
1040
1051
|
d,
|
|
1041
1052
|
M,
|
|
1042
1053
|
u,
|
|
@@ -1059,13 +1070,13 @@ function Bt({
|
|
|
1059
1070
|
const m = Array.isArray(e) ? e : e ? [e] : [];
|
|
1060
1071
|
r(m);
|
|
1061
1072
|
}, [e]);
|
|
1062
|
-
const
|
|
1073
|
+
const s = a.length === t.length, c = a.length > 0 && a.length < t.length;
|
|
1063
1074
|
return {
|
|
1064
1075
|
multipleValue: a,
|
|
1065
|
-
allSelected:
|
|
1066
|
-
someSelected:
|
|
1076
|
+
allSelected: s,
|
|
1077
|
+
someSelected: c,
|
|
1067
1078
|
handleSelectAll: (m) => {
|
|
1068
|
-
const u =
|
|
1079
|
+
const u = s ? [] : [...t];
|
|
1069
1080
|
r(u), n == null || n(
|
|
1070
1081
|
m,
|
|
1071
1082
|
u,
|
|
@@ -1095,11 +1106,11 @@ function nn({
|
|
|
1095
1106
|
},
|
|
1096
1107
|
multiple: r,
|
|
1097
1108
|
...l
|
|
1098
|
-
},
|
|
1109
|
+
}, s) {
|
|
1099
1110
|
return /* @__PURE__ */ y(
|
|
1100
1111
|
"ul",
|
|
1101
1112
|
{
|
|
1102
|
-
ref:
|
|
1113
|
+
ref: s,
|
|
1103
1114
|
...l,
|
|
1104
1115
|
role: "listbox",
|
|
1105
1116
|
"aria-multiselectable": r,
|
|
@@ -1126,8 +1137,8 @@ function on({
|
|
|
1126
1137
|
disableCloseOnSelect: a,
|
|
1127
1138
|
disabled: r,
|
|
1128
1139
|
loading: l,
|
|
1129
|
-
showFilters:
|
|
1130
|
-
options:
|
|
1140
|
+
showFilters: s,
|
|
1141
|
+
options: c = [],
|
|
1131
1142
|
value: p,
|
|
1132
1143
|
onChange: h,
|
|
1133
1144
|
getLimitTagsText: d,
|
|
@@ -1140,7 +1151,7 @@ function on({
|
|
|
1140
1151
|
handleSelectAll: D,
|
|
1141
1152
|
handleChange: x
|
|
1142
1153
|
} = Bt({
|
|
1143
|
-
options:
|
|
1154
|
+
options: c,
|
|
1144
1155
|
value: p,
|
|
1145
1156
|
onChange: h
|
|
1146
1157
|
}), {
|
|
@@ -1158,7 +1169,7 @@ function on({
|
|
|
1158
1169
|
{
|
|
1159
1170
|
...M,
|
|
1160
1171
|
ref: u,
|
|
1161
|
-
options:
|
|
1172
|
+
options: c,
|
|
1162
1173
|
value: o ? b : p,
|
|
1163
1174
|
onChange: x,
|
|
1164
1175
|
filterOptions: C,
|
|
@@ -1170,7 +1181,7 @@ function on({
|
|
|
1170
1181
|
disableCloseOnSelect: a ?? o,
|
|
1171
1182
|
ListboxComponent: St,
|
|
1172
1183
|
ListboxProps: {
|
|
1173
|
-
showFilters:
|
|
1184
|
+
showFilters: s,
|
|
1174
1185
|
allSelected: I,
|
|
1175
1186
|
someSelected: k,
|
|
1176
1187
|
handleSelectAll: D,
|
|
@@ -1192,8 +1203,8 @@ function an({
|
|
|
1192
1203
|
showFilters: a,
|
|
1193
1204
|
options: r,
|
|
1194
1205
|
value: l,
|
|
1195
|
-
onChange:
|
|
1196
|
-
getOptionLabel:
|
|
1206
|
+
onChange: s,
|
|
1207
|
+
getOptionLabel: c,
|
|
1197
1208
|
getLimitTagsText: p,
|
|
1198
1209
|
...h
|
|
1199
1210
|
}, d) {
|
|
@@ -1207,8 +1218,8 @@ function an({
|
|
|
1207
1218
|
} = Bt({
|
|
1208
1219
|
options: r,
|
|
1209
1220
|
value: l,
|
|
1210
|
-
onChange:
|
|
1211
|
-
getOptionLabel:
|
|
1221
|
+
onChange: s,
|
|
1222
|
+
getOptionLabel: c
|
|
1212
1223
|
});
|
|
1213
1224
|
return /* @__PURE__ */ i(
|
|
1214
1225
|
Z,
|
|
@@ -1218,7 +1229,7 @@ function an({
|
|
|
1218
1229
|
options: r,
|
|
1219
1230
|
value: m,
|
|
1220
1231
|
onChange: b,
|
|
1221
|
-
getOptionLabel:
|
|
1232
|
+
getOptionLabel: c,
|
|
1222
1233
|
renderOption: t ?? I,
|
|
1223
1234
|
ListboxComponent: St,
|
|
1224
1235
|
ListboxProps: {
|
|
@@ -1403,9 +1414,9 @@ function So({
|
|
|
1403
1414
|
title: a,
|
|
1404
1415
|
action: r,
|
|
1405
1416
|
open: l,
|
|
1406
|
-
onClose:
|
|
1417
|
+
onClose: s = () => {
|
|
1407
1418
|
},
|
|
1408
|
-
autoWidth:
|
|
1419
|
+
autoWidth: c,
|
|
1409
1420
|
icon: p,
|
|
1410
1421
|
...h
|
|
1411
1422
|
}) {
|
|
@@ -1416,16 +1427,16 @@ function So({
|
|
|
1416
1427
|
...h,
|
|
1417
1428
|
open: l,
|
|
1418
1429
|
autoHideDuration: e === null ? null : e || ot,
|
|
1419
|
-
onClose:
|
|
1420
|
-
TransitionComponent:
|
|
1421
|
-
"data-auto-width":
|
|
1430
|
+
onClose: s,
|
|
1431
|
+
TransitionComponent: c ? Xt : xt,
|
|
1432
|
+
"data-auto-width": c,
|
|
1422
1433
|
children: /* @__PURE__ */ y(
|
|
1423
1434
|
sn,
|
|
1424
1435
|
{
|
|
1425
1436
|
sx: {
|
|
1426
1437
|
position: "relative"
|
|
1427
1438
|
},
|
|
1428
|
-
autoWidth:
|
|
1439
|
+
autoWidth: c,
|
|
1429
1440
|
children: [
|
|
1430
1441
|
/* @__PURE__ */ i(
|
|
1431
1442
|
dn,
|
|
@@ -1444,7 +1455,7 @@ function So({
|
|
|
1444
1455
|
Le,
|
|
1445
1456
|
{
|
|
1446
1457
|
color: "default",
|
|
1447
|
-
onClick: (I) =>
|
|
1458
|
+
onClick: (I) => s(I, "timeout"),
|
|
1448
1459
|
icon: /* @__PURE__ */ i(Mt, {}),
|
|
1449
1460
|
tooltip: m.formatMessage({
|
|
1450
1461
|
id: "c4r.button.close"
|
|
@@ -1670,8 +1681,8 @@ function at({
|
|
|
1670
1681
|
labelHelpTooltip: a,
|
|
1671
1682
|
type: r,
|
|
1672
1683
|
helperText: l,
|
|
1673
|
-
placeholder:
|
|
1674
|
-
slotProps:
|
|
1684
|
+
placeholder: s,
|
|
1685
|
+
slotProps: c,
|
|
1675
1686
|
slots: p,
|
|
1676
1687
|
error: h,
|
|
1677
1688
|
showCalendar: d = !0,
|
|
@@ -1709,7 +1720,7 @@ function at({
|
|
|
1709
1720
|
textField: {
|
|
1710
1721
|
variant: e,
|
|
1711
1722
|
helperText: l,
|
|
1712
|
-
placeholder:
|
|
1723
|
+
placeholder: s,
|
|
1713
1724
|
size: n,
|
|
1714
1725
|
error: h ?? void 0,
|
|
1715
1726
|
// undefined is needed to allow the component to control the error state for the default validation
|
|
@@ -1721,7 +1732,7 @@ function at({
|
|
|
1721
1732
|
clearable: !!t,
|
|
1722
1733
|
onClear: t
|
|
1723
1734
|
},
|
|
1724
|
-
...
|
|
1735
|
+
...c
|
|
1725
1736
|
},
|
|
1726
1737
|
slots: {
|
|
1727
1738
|
clearButton: (k) => /* @__PURE__ */ i(Q, { ...k, size: n, variant: e }),
|
|
@@ -1868,22 +1879,22 @@ function lt({
|
|
|
1868
1879
|
selectedMonth: o,
|
|
1869
1880
|
...a
|
|
1870
1881
|
}) {
|
|
1871
|
-
const r = !!(e && rt(e, t)), l = !!(n && rt(n, t)),
|
|
1882
|
+
const r = !!(e && rt(e, t)), l = !!(n && rt(n, t)), s = !!(e && n && t.getTime() >= e.getTime() && t.getTime() <= n.getTime()), c = t.getDate() === 1, p = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), h = !!(o && t.getMonth() === o.getMonth());
|
|
1872
1883
|
return /* @__PURE__ */ i(
|
|
1873
1884
|
wn,
|
|
1874
1885
|
{
|
|
1875
|
-
isSelected:
|
|
1886
|
+
isSelected: s,
|
|
1876
1887
|
isStartDate: r,
|
|
1877
1888
|
isEndDate: l,
|
|
1878
1889
|
isSelectedMonth: h,
|
|
1879
1890
|
isLastDay: p,
|
|
1880
|
-
isFirstDay:
|
|
1891
|
+
isFirstDay: c,
|
|
1881
1892
|
children: /* @__PURE__ */ i(
|
|
1882
1893
|
Bn,
|
|
1883
1894
|
{
|
|
1884
1895
|
...a,
|
|
1885
1896
|
day: t,
|
|
1886
|
-
selected:
|
|
1897
|
+
selected: s || r || l,
|
|
1887
1898
|
isDateRangeLimit: r || l,
|
|
1888
1899
|
"data-name": "pickers-day"
|
|
1889
1900
|
}
|
|
@@ -1949,9 +1960,9 @@ function $o({
|
|
|
1949
1960
|
endProps: a,
|
|
1950
1961
|
"aria-label": r,
|
|
1951
1962
|
"data-testid": l,
|
|
1952
|
-
...
|
|
1963
|
+
...s
|
|
1953
1964
|
}) {
|
|
1954
|
-
const
|
|
1965
|
+
const c = F(), p = R(c), [h, d] = $(!1), [m, u] = $(!1), [f, M] = $(
|
|
1955
1966
|
(o == null ? void 0 : o.value) || null
|
|
1956
1967
|
), [b, I] = $((a == null ? void 0 : a.value) || null), [k, D] = $(
|
|
1957
1968
|
(a == null ? void 0 : a.value) ?? (o == null ? void 0 : o.value) ?? /* @__PURE__ */ new Date()
|
|
@@ -1984,7 +1995,7 @@ function $o({
|
|
|
1984
1995
|
/* @__PURE__ */ i(
|
|
1985
1996
|
at,
|
|
1986
1997
|
{
|
|
1987
|
-
...
|
|
1998
|
+
...s,
|
|
1988
1999
|
...o,
|
|
1989
2000
|
value: (o == null ? void 0 : o.value) ?? f,
|
|
1990
2001
|
maxDate: b ?? void 0,
|
|
@@ -2023,7 +2034,7 @@ function $o({
|
|
|
2023
2034
|
/* @__PURE__ */ i(
|
|
2024
2035
|
at,
|
|
2025
2036
|
{
|
|
2026
|
-
...
|
|
2037
|
+
...s,
|
|
2027
2038
|
...a,
|
|
2028
2039
|
value: (a == null ? void 0 : a.value) ?? b,
|
|
2029
2040
|
minDate: f ?? void 0,
|
|
@@ -2064,10 +2075,10 @@ function $o({
|
|
|
2064
2075
|
] });
|
|
2065
2076
|
}
|
|
2066
2077
|
const $t = (t, e, n, o) => {
|
|
2067
|
-
const a = t == null ? void 0 : t.includes("hours"), r = t == null ? void 0 : t.includes("seconds"), l = t == null ? void 0 : t.includes("minutes"),
|
|
2078
|
+
const a = t == null ? void 0 : t.includes("hours"), r = t == null ? void 0 : t.includes("seconds"), l = t == null ? void 0 : t.includes("minutes"), s = (t == null ? void 0 : t.length) === 1 && t[0] === "hours";
|
|
2068
2079
|
if (o) return o;
|
|
2069
|
-
const
|
|
2070
|
-
return e &&
|
|
2080
|
+
const c = [];
|
|
2081
|
+
return e && c.push("MM/dd/yyyy "), a && c.push(n ? "hh" : "HH"), s || c.push(":"), l && c.push("mm"), r && c.push(":ss"), n && c.push(" a"), c.join("");
|
|
2071
2082
|
};
|
|
2072
2083
|
function Ro({
|
|
2073
2084
|
handleClear: t,
|
|
@@ -2077,8 +2088,8 @@ function Ro({
|
|
|
2077
2088
|
labelHelpTooltip: a,
|
|
2078
2089
|
type: r,
|
|
2079
2090
|
helperText: l,
|
|
2080
|
-
placeholder:
|
|
2081
|
-
error:
|
|
2091
|
+
placeholder: s,
|
|
2092
|
+
error: c,
|
|
2082
2093
|
showClock: p = !0,
|
|
2083
2094
|
readOnly: h,
|
|
2084
2095
|
slotProps: d,
|
|
@@ -2129,9 +2140,9 @@ function Ro({
|
|
|
2129
2140
|
textField: {
|
|
2130
2141
|
variant: e,
|
|
2131
2142
|
helperText: l,
|
|
2132
|
-
placeholder:
|
|
2143
|
+
placeholder: s,
|
|
2133
2144
|
size: n,
|
|
2134
|
-
error:
|
|
2145
|
+
error: c ?? void 0,
|
|
2135
2146
|
// undefined is needed to allow the component to control the error state for the default validation
|
|
2136
2147
|
inputProps: {
|
|
2137
2148
|
"data-testid": "time-picker-input"
|
|
@@ -2181,8 +2192,8 @@ function Fo({
|
|
|
2181
2192
|
labelHelpTooltip: a,
|
|
2182
2193
|
type: r,
|
|
2183
2194
|
helperText: l,
|
|
2184
|
-
placeholder:
|
|
2185
|
-
error:
|
|
2195
|
+
placeholder: s,
|
|
2196
|
+
error: c,
|
|
2186
2197
|
showCalendar: p = !0,
|
|
2187
2198
|
readOnly: h,
|
|
2188
2199
|
slotProps: d,
|
|
@@ -2222,9 +2233,9 @@ function Fo({
|
|
|
2222
2233
|
textField: {
|
|
2223
2234
|
variant: e,
|
|
2224
2235
|
helperText: l,
|
|
2225
|
-
placeholder:
|
|
2236
|
+
placeholder: s,
|
|
2226
2237
|
size: n,
|
|
2227
|
-
error:
|
|
2238
|
+
error: c ?? void 0,
|
|
2228
2239
|
// undefined is needed to allow the component to control the error state for the default validation
|
|
2229
2240
|
inputProps: {
|
|
2230
2241
|
"data-testid": "date-time-picker-input"
|
|
@@ -2433,8 +2444,8 @@ function Ln({
|
|
|
2433
2444
|
fullScreen: a,
|
|
2434
2445
|
height: r,
|
|
2435
2446
|
width: l,
|
|
2436
|
-
hasForm:
|
|
2437
|
-
"aria-label":
|
|
2447
|
+
hasForm: s,
|
|
2448
|
+
"aria-label": c,
|
|
2438
2449
|
"data-testid": p,
|
|
2439
2450
|
...h
|
|
2440
2451
|
}, d) {
|
|
@@ -2445,8 +2456,8 @@ function Ln({
|
|
|
2445
2456
|
fullScreen: a,
|
|
2446
2457
|
height: r,
|
|
2447
2458
|
width: l,
|
|
2448
|
-
hasForm:
|
|
2449
|
-
"aria-label":
|
|
2459
|
+
hasForm: s,
|
|
2460
|
+
"aria-label": c,
|
|
2450
2461
|
"data-testid": p,
|
|
2451
2462
|
"data-name": "dialog",
|
|
2452
2463
|
...h,
|
|
@@ -2463,11 +2474,11 @@ function Ln({
|
|
|
2463
2474
|
fullScreen: a,
|
|
2464
2475
|
height: r,
|
|
2465
2476
|
width: l,
|
|
2466
|
-
hasForm:
|
|
2477
|
+
hasForm: s
|
|
2467
2478
|
},
|
|
2468
2479
|
fullScreen: a,
|
|
2469
2480
|
role: "section",
|
|
2470
|
-
"aria-label":
|
|
2481
|
+
"aria-label": c,
|
|
2471
2482
|
"data-testid": p,
|
|
2472
2483
|
"data-size": n,
|
|
2473
2484
|
"data-width": l,
|
|
@@ -2508,12 +2519,12 @@ function Wo({
|
|
|
2508
2519
|
onClose: a,
|
|
2509
2520
|
secondaryActions: r,
|
|
2510
2521
|
"aria-label": l,
|
|
2511
|
-
closeIcon:
|
|
2512
|
-
...
|
|
2522
|
+
closeIcon: s,
|
|
2523
|
+
...c
|
|
2513
2524
|
}) {
|
|
2514
2525
|
const p = F(), h = R(p);
|
|
2515
2526
|
return /* @__PURE__ */ y(V, { children: [
|
|
2516
|
-
/* @__PURE__ */ y(Wn, { component: "div", "data-name": "dialog-header", ...
|
|
2527
|
+
/* @__PURE__ */ y(Wn, { component: "div", "data-name": "dialog-header", ...c, children: [
|
|
2517
2528
|
/* @__PURE__ */ y(En, { children: [
|
|
2518
2529
|
/* @__PURE__ */ y(ut, { flex: 1, maxWidth: 0.8, children: [
|
|
2519
2530
|
/* @__PURE__ */ i(
|
|
@@ -2536,7 +2547,7 @@ function Wo({
|
|
|
2536
2547
|
{
|
|
2537
2548
|
title: h.formatMessage({ id: "c4r.button.close" }),
|
|
2538
2549
|
placement: "left",
|
|
2539
|
-
children: /* @__PURE__ */ i(W, { onClick: a, children:
|
|
2550
|
+
children: /* @__PURE__ */ i(W, { onClick: a, children: s || /* @__PURE__ */ i(Hn, { "data-testid": "CloseIcon" }) })
|
|
2540
2551
|
}
|
|
2541
2552
|
)
|
|
2542
2553
|
] })
|
|
@@ -2585,19 +2596,19 @@ function Gn({
|
|
|
2585
2596
|
withBottomGutter: a = !0,
|
|
2586
2597
|
onScroll: r,
|
|
2587
2598
|
...l
|
|
2588
|
-
},
|
|
2589
|
-
const
|
|
2599
|
+
}, s) {
|
|
2600
|
+
const c = N(), [p, h] = $(null);
|
|
2590
2601
|
Lt(
|
|
2591
|
-
|
|
2602
|
+
s,
|
|
2592
2603
|
() => p,
|
|
2593
2604
|
[p]
|
|
2594
2605
|
);
|
|
2595
2606
|
const d = nt(
|
|
2596
2607
|
(u) => {
|
|
2597
|
-
const f = Math.abs(u.scrollHeight - u.clientHeight - u.scrollTop) < 1, M = u.scrollTop === 0, b = `1px solid ${
|
|
2608
|
+
const f = Math.abs(u.scrollHeight - u.clientHeight - u.scrollTop) < 1, M = u.scrollTop === 0, b = `1px solid ${c.palette.divider}`;
|
|
2598
2609
|
u.style.borderTop = M ? "none" : b, u.style.borderBottom = f && !n ? "none" : b;
|
|
2599
2610
|
},
|
|
2600
|
-
[
|
|
2611
|
+
[c.palette.divider, n]
|
|
2601
2612
|
), m = nt(
|
|
2602
2613
|
(u) => {
|
|
2603
2614
|
d(u.target), r == null || r(u);
|
|
@@ -2769,13 +2780,13 @@ function _o({
|
|
|
2769
2780
|
opened: a,
|
|
2770
2781
|
"data-testid": r,
|
|
2771
2782
|
"aria-label": l,
|
|
2772
|
-
...
|
|
2783
|
+
...s
|
|
2773
2784
|
}) {
|
|
2774
|
-
const
|
|
2785
|
+
const c = Y(null), p = N();
|
|
2775
2786
|
return /* @__PURE__ */ i(
|
|
2776
2787
|
zn,
|
|
2777
2788
|
{
|
|
2778
|
-
ref:
|
|
2789
|
+
ref: c,
|
|
2779
2790
|
"data-testid": r,
|
|
2780
2791
|
"aria-label": l,
|
|
2781
2792
|
role: "presentation",
|
|
@@ -2787,13 +2798,13 @@ function _o({
|
|
|
2787
2798
|
{
|
|
2788
2799
|
direction: "up",
|
|
2789
2800
|
in: a,
|
|
2790
|
-
container:
|
|
2801
|
+
container: c.current,
|
|
2791
2802
|
mountOnEnter: !0,
|
|
2792
2803
|
unmountOnExit: !0,
|
|
2793
2804
|
easing: p.transitions.easing.easeOut,
|
|
2794
2805
|
timeout: 350,
|
|
2795
2806
|
children: /* @__PURE__ */ i(Zn, { children: /* @__PURE__ */ y(Jn, { children: [
|
|
2796
|
-
/* @__PURE__ */ i(Rt, { severity: o, ...
|
|
2807
|
+
/* @__PURE__ */ i(Rt, { severity: o, ...s, children: t }),
|
|
2797
2808
|
/* @__PURE__ */ i(Ft, { children: n })
|
|
2798
2809
|
] }) })
|
|
2799
2810
|
}
|
|
@@ -2876,14 +2887,14 @@ function Po({
|
|
|
2876
2887
|
...n
|
|
2877
2888
|
}) {
|
|
2878
2889
|
return /* @__PURE__ */ i(Xn, { ...n, "data-name": "dialog-stepper", children: /* @__PURE__ */ i(v, { sx: { display: "flex" }, children: e.map((o, a) => {
|
|
2879
|
-
const r = a + 1, l = r === t,
|
|
2890
|
+
const r = a + 1, l = r === t, s = r < t;
|
|
2880
2891
|
return /* @__PURE__ */ y(
|
|
2881
2892
|
Kn,
|
|
2882
2893
|
{
|
|
2883
|
-
"data-state":
|
|
2894
|
+
"data-state": s ? "completed" : l ? "current" : "uncompleted",
|
|
2884
2895
|
children: [
|
|
2885
|
-
/* @__PURE__ */ i(to, { completed:
|
|
2886
|
-
/* @__PURE__ */ i(S, { variant: "caption", component: "div", color:
|
|
2896
|
+
/* @__PURE__ */ i(to, { completed: s, current: l, children: s ? /* @__PURE__ */ i(ge, { fontSize: "small", "aria-label": "Completed step" }) : r }),
|
|
2897
|
+
/* @__PURE__ */ i(S, { variant: "caption", component: "div", color: s ? "success.main" : l ? "textPrimary" : "textSecondary", children: o })
|
|
2887
2898
|
]
|
|
2888
2899
|
},
|
|
2889
2900
|
a
|