@mx-cartographer/experiences 5.2.9-alpha.al0 → 5.2.9-alpha.al2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1325,28 +1325,29 @@ const nc = (A, t) => {
|
|
|
1325
1325
|
selectedAccountGuids: r,
|
|
1326
1326
|
showAccountNumbers: o,
|
|
1327
1327
|
sx: I = {},
|
|
1328
|
-
|
|
1328
|
+
title: a = t.title,
|
|
1329
|
+
variant: c = "outlined"
|
|
1329
1330
|
}) => {
|
|
1330
|
-
const { isMobile:
|
|
1331
|
+
const { isMobile: f } = CA(), [E, d] = h.useState(null), [l, v] = h.useState(
|
|
1331
1332
|
$i(A, r)
|
|
1332
1333
|
);
|
|
1333
1334
|
h.useEffect(() => {
|
|
1334
|
-
|
|
1335
|
+
v($i(A, r));
|
|
1335
1336
|
}, [A, r]);
|
|
1336
|
-
const
|
|
1337
|
-
|
|
1338
|
-
},
|
|
1339
|
-
|
|
1337
|
+
const u = (P) => {
|
|
1338
|
+
d(P.currentTarget);
|
|
1339
|
+
}, b = () => {
|
|
1340
|
+
d(null);
|
|
1340
1341
|
};
|
|
1341
1342
|
return /* @__PURE__ */ s(O, { className: "mx-cmn-account-filter", m: 4, sx: { ...I }, children: [
|
|
1342
|
-
|
|
1343
|
+
f ? /* @__PURE__ */ e(Qt, { id: "filter-accounts", placement: "bottom", title: t.title, children: /* @__PURE__ */ e(
|
|
1343
1344
|
YA,
|
|
1344
1345
|
{
|
|
1345
1346
|
"aria-controls": "filter_accounts",
|
|
1346
1347
|
"aria-describedby": "filter-accounts",
|
|
1347
1348
|
"aria-haspopup": !0,
|
|
1348
1349
|
"aria-label": t.title,
|
|
1349
|
-
onClick:
|
|
1350
|
+
onClick: u,
|
|
1350
1351
|
children: /* @__PURE__ */ e(Q, { name: "filter_alt" })
|
|
1351
1352
|
}
|
|
1352
1353
|
) }) : /* @__PURE__ */ e(
|
|
@@ -1355,37 +1356,37 @@ const nc = (A, t) => {
|
|
|
1355
1356
|
"aria-controls": "filter_accounts",
|
|
1356
1357
|
"aria-haspopup": !0,
|
|
1357
1358
|
"aria-label": t.title,
|
|
1358
|
-
onClick:
|
|
1359
|
+
onClick: u,
|
|
1359
1360
|
startIcon: /* @__PURE__ */ e(Q, { name: "filter_alt" }),
|
|
1360
|
-
variant:
|
|
1361
|
-
children:
|
|
1361
|
+
variant: c,
|
|
1362
|
+
children: a
|
|
1362
1363
|
}
|
|
1363
1364
|
),
|
|
1364
1365
|
/* @__PURE__ */ e(
|
|
1365
1366
|
Ko,
|
|
1366
1367
|
{
|
|
1367
|
-
accountFilterButtonEl:
|
|
1368
|
+
accountFilterButtonEl: E,
|
|
1368
1369
|
accounts: A,
|
|
1369
1370
|
copy: t.accountFilterOptionsCopy,
|
|
1370
|
-
handleClose:
|
|
1371
|
-
onAccountClick: (
|
|
1372
|
-
|
|
1371
|
+
handleClose: b,
|
|
1372
|
+
onAccountClick: (P) => {
|
|
1373
|
+
v({ ...l, [P.guid]: !l[P.guid] });
|
|
1373
1374
|
},
|
|
1374
|
-
onAccountGroupClick: (
|
|
1375
|
-
const
|
|
1376
|
-
P
|
|
1377
|
-
|
|
1378
|
-
}),
|
|
1375
|
+
onAccountGroupClick: (P, w, y) => {
|
|
1376
|
+
const x = { ...l };
|
|
1377
|
+
w[P].forEach((p) => {
|
|
1378
|
+
x[p.guid] = !y;
|
|
1379
|
+
}), v(x);
|
|
1379
1380
|
},
|
|
1380
1381
|
onCancelClick: () => {
|
|
1381
|
-
|
|
1382
|
+
v($i(A, r)), b();
|
|
1382
1383
|
},
|
|
1383
1384
|
onConnectAccountClick: n,
|
|
1384
1385
|
onFilterClick: () => {
|
|
1385
|
-
i(Object.keys(
|
|
1386
|
+
i(Object.keys(l).filter((P) => l[P])), b();
|
|
1386
1387
|
},
|
|
1387
|
-
selectedOptions:
|
|
1388
|
-
setSelectedOptions:
|
|
1388
|
+
selectedOptions: l,
|
|
1389
|
+
setSelectedOptions: v,
|
|
1389
1390
|
showAccountNumbers: o
|
|
1390
1391
|
}
|
|
1391
1392
|
)
|
|
@@ -2779,7 +2780,7 @@ const Hc = ({
|
|
|
2779
2780
|
"aria-label": i.dateRangePreviousAria,
|
|
2780
2781
|
color: A.shouldDisablePrevious ? "secondary" : "primary",
|
|
2781
2782
|
onClick: () => A.shouldDisablePrevious ? null : q("previous"),
|
|
2782
|
-
children: /* @__PURE__ */ e(Q, { name: "chevron_left", size:
|
|
2783
|
+
children: /* @__PURE__ */ e(Q, { name: "chevron_left", size: 28 })
|
|
2783
2784
|
}
|
|
2784
2785
|
),
|
|
2785
2786
|
/* @__PURE__ */ e(
|
|
@@ -2790,7 +2791,7 @@ const Hc = ({
|
|
|
2790
2791
|
onClick: () => A.shouldDisablePicker ? null : w(!0),
|
|
2791
2792
|
startIcon: /* @__PURE__ */ e(Q, { name: "calendar_month", size: 20 }),
|
|
2792
2793
|
sx: {
|
|
2793
|
-
|
|
2794
|
+
p: f ? 0 : 8
|
|
2794
2795
|
},
|
|
2795
2796
|
children: y ? iA(E[0], AA.MONTH_YEAR) : /* @__PURE__ */ s("span", { children: [
|
|
2796
2797
|
iA(E[0], AA.MONTH_DAY_YEAR),
|
|
@@ -2807,7 +2808,7 @@ const Hc = ({
|
|
|
2807
2808
|
"aria-label": i.dateRangeNextAria,
|
|
2808
2809
|
color: A.shouldDisableNext ? "secondary" : "primary",
|
|
2809
2810
|
onClick: () => A.shouldDisableNext ? null : q("next"),
|
|
2810
|
-
children: /* @__PURE__ */ e(Q, { name: "chevron_right", size:
|
|
2811
|
+
children: /* @__PURE__ */ e(Q, { name: "chevron_right", size: 28 })
|
|
2811
2812
|
}
|
|
2812
2813
|
)
|
|
2813
2814
|
]
|
|
@@ -3177,8 +3178,8 @@ const wt = ({
|
|
|
3177
3178
|
/* @__PURE__ */ e(
|
|
3178
3179
|
rt,
|
|
3179
3180
|
{
|
|
3180
|
-
action: /* @__PURE__ */ s(H, { sx: { alignItems: "center", flexDirection: "row"
|
|
3181
|
-
/* @__PURE__ */ e(H, { children: w && i && /* @__PURE__ */ e(
|
|
3181
|
+
action: /* @__PURE__ */ s(H, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
3182
|
+
/* @__PURE__ */ e(H, { sx: { flexGrow: 1 }, children: w && i && /* @__PURE__ */ e(
|
|
3182
3183
|
Dr,
|
|
3183
3184
|
{
|
|
3184
3185
|
calendarActions: i,
|
|
@@ -3188,45 +3189,48 @@ const wt = ({
|
|
|
3188
3189
|
variant: o
|
|
3189
3190
|
}
|
|
3190
3191
|
) }),
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
accounts: A,
|
|
3195
|
-
copy: T,
|
|
3196
|
-
onFilterClick: (fA) => {
|
|
3197
|
-
const oA = A.filter((dA) => fA.includes(dA.guid)).map((dA) => dA.guid);
|
|
3198
|
-
m(oA), f?.();
|
|
3199
|
-
},
|
|
3200
|
-
selectedAccountGuids: j,
|
|
3201
|
-
showAccountNumbers: !1,
|
|
3202
|
-
variant: "text"
|
|
3203
|
-
}
|
|
3204
|
-
),
|
|
3205
|
-
t?.map((fA) => {
|
|
3206
|
-
if (h.isValidElement(fA)) return fA;
|
|
3207
|
-
const { iconName: oA, onClick: dA, label: sA } = fA;
|
|
3208
|
-
return w || x ? /* @__PURE__ */ e(
|
|
3209
|
-
tA,
|
|
3192
|
+
/* @__PURE__ */ s(H, { sx: { flexDirection: "row" }, children: [
|
|
3193
|
+
A && /* @__PURE__ */ e(
|
|
3194
|
+
Zo,
|
|
3210
3195
|
{
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3196
|
+
accounts: A,
|
|
3197
|
+
copy: T,
|
|
3198
|
+
onFilterClick: (fA) => {
|
|
3199
|
+
const oA = A.filter((dA) => fA.includes(dA.guid)).map((dA) => dA.guid);
|
|
3200
|
+
m(oA), f?.();
|
|
3201
|
+
},
|
|
3202
|
+
selectedAccountGuids: j,
|
|
3203
|
+
showAccountNumbers: !1,
|
|
3204
|
+
title: t?.length > 1 ? D.filter_button : void 0,
|
|
3205
|
+
variant: "text"
|
|
3206
|
+
}
|
|
3207
|
+
),
|
|
3208
|
+
t?.map((fA) => {
|
|
3209
|
+
if (h.isValidElement(fA)) return fA;
|
|
3210
|
+
const { iconName: oA, onClick: dA, label: sA } = fA;
|
|
3211
|
+
return w || x ? /* @__PURE__ */ e(
|
|
3212
|
+
tA,
|
|
3213
|
+
{
|
|
3214
|
+
onClick: dA,
|
|
3215
|
+
startIcon: /* @__PURE__ */ e(Q, { name: oA }),
|
|
3216
|
+
sx: { my: 4 },
|
|
3217
|
+
children: sA
|
|
3218
|
+
},
|
|
3219
|
+
oA
|
|
3220
|
+
) : /* @__PURE__ */ e(YA, { "aria-label": sA, onClick: dA, children: /* @__PURE__ */ e(Q, { name: oA }) }, oA);
|
|
3221
|
+
})
|
|
3222
|
+
] })
|
|
3219
3223
|
] }),
|
|
3220
3224
|
sx: {
|
|
3221
|
-
border: "1px solid red"
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3225
|
+
border: "1px solid red",
|
|
3226
|
+
"& .MuiCardHeader-action": {
|
|
3227
|
+
...i && w && { flexGrow: 1 },
|
|
3228
|
+
...(y || x) && {
|
|
3229
|
+
alignSelf: "center"
|
|
3230
|
+
}
|
|
3231
|
+
},
|
|
3232
|
+
p: w ? 48 : 24,
|
|
3233
|
+
pb: 0
|
|
3230
3234
|
},
|
|
3231
3235
|
title: w || x ? /* @__PURE__ */ e(it, { children: l }) : /* @__PURE__ */ s(H, { alignItems: "center", flexDirection: "row", children: [
|
|
3232
3236
|
y && c && /* @__PURE__ */ e(
|