@mx-cartographer/experiences 9.4.50 → 9.4.52-alpha.al0
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 +11 -0
- package/dist/budgets/components/addbudget/Header.es.js +3 -3
- package/dist/budgets/components/addbudget/Header.es.js.map +1 -1
- package/dist/budgets/components/addbudget/RecalculateBudgets.es.js +11 -9
- package/dist/budgets/components/addbudget/RecalculateBudgets.es.js.map +1 -1
- package/dist/common/components/calendar/Calendar.d.ts +1 -0
- package/dist/common/components/calendar/Calendar.es.js.map +1 -1
- package/dist/common/components/drawer/Drawer.es.js +9 -9
- package/dist/common/components/drawer/Drawer.es.js.map +1 -1
- package/dist/common/components/drawer/Footer.es.js +6 -6
- package/dist/common/components/drawer/Footer.es.js.map +1 -1
- package/dist/finstrong/components/KeyIndicatorsDrawer.es.js +1 -0
- package/dist/finstrong/components/KeyIndicatorsDrawer.es.js.map +1 -1
- package/dist/finstrong/components/ManageDOB.es.js +16 -16
- package/dist/goals/components/actions/BirthdayAction.es.js +11 -11
- package/dist/help/components/HelpList.es.js +14 -14
- package/dist/help/components/HelpList.es.js.map +1 -1
- package/dist/help/components/requestsupport/ContactSupport.es.js +14 -14
- package/dist/help/components/requestsupport/ContactSupport.es.js.map +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.es.js +2 -2
- package/dist/help/components/requestsupport/RequestSupportInstitution.es.js.map +1 -1
- package/dist/insights/components/shared/InsightsCard/CardError.es.js +10 -10
- package/dist/insights/components/shared/InsightsCard/CardError.es.js.map +1 -1
- package/dist/recurringtransactions/components/PaymentSchedule.es.js +11 -11
- package/dist/settings/components/profile/ProfileTab.es.js +28 -28
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.es.js +59 -53
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.es.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
import { DATE_FORMATS_INTL as
|
|
2
|
-
import I,
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { fromUnixUTC as m } from "../../../../../core/utils/DateUtil.es.js";
|
|
1
|
+
import { DATE_FORMATS_INTL as A, formatDate as C } from "../../../../../core/constants/DateFormats.es.js";
|
|
2
|
+
import { useEvent as S, useGlobalCopyStore as I, useTransactionStore as v } from "../../../../../common/context/hooks.es.js";
|
|
3
|
+
import L from "../../../../../common/components/drawer/Drawer.es.js";
|
|
4
|
+
import { ANALYTICS_EVENTS as g } from "../../../../../common/constants/Analytics.es.js";
|
|
5
|
+
import { fromUnixUTC as s, toUnixUTC as N } from "../../../../../core/utils/DateUtil.es.js";
|
|
7
6
|
import { useTransactionsUiStore as b } from "../../../../context/hooks.es.js";
|
|
8
|
-
import { ON_CLICK_EVENTS as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Text as
|
|
12
|
-
import { Icon as
|
|
7
|
+
import { ON_CLICK_EVENTS as D } from "../../../../constants/OnClickEvents.es.js";
|
|
8
|
+
import c from "react";
|
|
9
|
+
import E from "@mui/material/Stack";
|
|
10
|
+
import { Text as O } from "@mxenabled/mxui";
|
|
11
|
+
import { Icon as d } from "@mxenabled/mx-icons";
|
|
13
12
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import M from "@mui/material/
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
import { useTheme as k } from "@mui/material/styles";
|
|
14
|
+
import P from "@mui/material/ListItem";
|
|
15
|
+
import U from "@mui/material/Avatar";
|
|
16
|
+
import M from "@mui/material/ListItemAvatar";
|
|
17
|
+
import R from "@mui/material/ListItemButton";
|
|
18
|
+
import w from "@mui/material/ListItemIcon";
|
|
19
|
+
import B from "@mui/material/ListItemText";
|
|
20
|
+
import { AdapterDateFns as F } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
21
|
+
import { LocalizationProvider as K } from "@mui/x-date-pickers/LocalizationProvider";
|
|
22
|
+
import { StaticDatePicker as Y } from "@mui/x-date-pickers/StaticDatePicker";
|
|
23
|
+
var dt = ({ transaction: e }) => {
|
|
24
|
+
const { onEvent: n } = S(), { updateTransaction: p } = v(), { updateManualTransaction: f } = b(), { common: o, transactions: r } = I(), _ = k(), [u, a] = c.useState(!1), [i, T] = c.useState(e.date), x = (m) => {
|
|
25
|
+
m && T(N(m));
|
|
25
26
|
}, y = async () => {
|
|
26
27
|
if (e.is_manual && !e.guid) {
|
|
27
|
-
|
|
28
|
+
f({
|
|
28
29
|
...e,
|
|
29
30
|
date: i
|
|
30
31
|
}), a(!1);
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
|
-
await
|
|
34
|
+
await p({
|
|
34
35
|
...e,
|
|
35
36
|
date: i
|
|
36
|
-
}), n(
|
|
37
|
-
},
|
|
38
|
-
return /* @__PURE__ */ l(
|
|
37
|
+
}), n(g.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), a(!1);
|
|
38
|
+
}, h = _.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
39
|
+
return /* @__PURE__ */ l(P, {
|
|
39
40
|
className: "mx-txn-date-action",
|
|
40
41
|
disableGutters: !0,
|
|
41
42
|
disablePadding: !0,
|
|
42
|
-
children: [/* @__PURE__ */ l(
|
|
43
|
+
children: [/* @__PURE__ */ l(R, {
|
|
43
44
|
onClick: () => {
|
|
44
|
-
n(
|
|
45
|
+
n(D.ON_TRANSACTION_DATE_CLICK), a(!0);
|
|
45
46
|
},
|
|
46
47
|
children: [
|
|
47
|
-
/* @__PURE__ */ t(
|
|
48
|
-
sx: { bgcolor:
|
|
48
|
+
/* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(U, {
|
|
49
|
+
sx: { bgcolor: h },
|
|
49
50
|
variant: "rounded",
|
|
50
|
-
children: /* @__PURE__ */ t(
|
|
51
|
+
children: /* @__PURE__ */ t(d, {
|
|
51
52
|
name: "calendar_month",
|
|
52
53
|
sx: { color: "text.primary" }
|
|
53
54
|
})
|
|
54
55
|
}) }),
|
|
55
|
-
/* @__PURE__ */ t(
|
|
56
|
-
primary:
|
|
57
|
-
secondary: /* @__PURE__ */ t(
|
|
56
|
+
/* @__PURE__ */ t(B, {
|
|
57
|
+
primary: r.date_title,
|
|
58
|
+
secondary: /* @__PURE__ */ t(O, {
|
|
58
59
|
bold: !0,
|
|
59
60
|
sx: { color: "text.primary" },
|
|
60
61
|
variant: "body1",
|
|
61
|
-
children: C(
|
|
62
|
+
children: C(s(e.date), A.FULL_MONTH_DAY_YEAR)
|
|
62
63
|
}),
|
|
63
64
|
slotProps: { primary: {
|
|
64
65
|
variant: "caption",
|
|
@@ -66,38 +67,43 @@ var st = ({ transaction: e }) => {
|
|
|
66
67
|
fontWeight: "normal"
|
|
67
68
|
} }
|
|
68
69
|
}),
|
|
69
|
-
/* @__PURE__ */ t(
|
|
70
|
+
/* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(d, {
|
|
70
71
|
name: "chevron_right",
|
|
71
72
|
sx: { color: "text.primary" }
|
|
72
73
|
}) })
|
|
73
74
|
]
|
|
74
|
-
}), /* @__PURE__ */ t(
|
|
75
|
-
ariaLabelClose:
|
|
76
|
-
isOpen:
|
|
75
|
+
}), /* @__PURE__ */ t(L, {
|
|
76
|
+
ariaLabelClose: o.close_aria,
|
|
77
|
+
isOpen: u,
|
|
77
78
|
onClose: () => a(!1),
|
|
78
79
|
onPrimaryAction: y,
|
|
79
|
-
primaryText:
|
|
80
|
-
secondaryText:
|
|
81
|
-
title:
|
|
82
|
-
children: /* @__PURE__ */ t(
|
|
80
|
+
primaryText: o.save_button,
|
|
81
|
+
secondaryText: o.cancel_button,
|
|
82
|
+
title: r.date_edit_title,
|
|
83
|
+
children: /* @__PURE__ */ t(E, {
|
|
83
84
|
alignItems: "center",
|
|
84
85
|
mt: 40,
|
|
85
|
-
children: /* @__PURE__ */ t(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
children: /* @__PURE__ */ t(K, {
|
|
87
|
+
dateAdapter: F,
|
|
88
|
+
localeText: {
|
|
89
|
+
nextMonth: r.date_next_aria,
|
|
90
|
+
previousMonth: r.date_prev_aria,
|
|
91
|
+
todayButtonLabel: o.date_range_picker.today
|
|
91
92
|
},
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
children: /* @__PURE__ */ t(Y, {
|
|
94
|
+
displayStaticWrapperAs: "desktop",
|
|
95
|
+
onChange: x,
|
|
96
|
+
slotProps: { actionBar: { actions: ["today"] } },
|
|
97
|
+
value: s(i),
|
|
98
|
+
views: ["day"]
|
|
99
|
+
})
|
|
94
100
|
})
|
|
95
101
|
})
|
|
96
102
|
})]
|
|
97
103
|
});
|
|
98
104
|
};
|
|
99
105
|
export {
|
|
100
|
-
|
|
106
|
+
dt as default
|
|
101
107
|
};
|
|
102
108
|
|
|
103
109
|
//# sourceMappingURL=DateAction.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateAction.es.js","names":[],"sources":["../../../../../../src/transactions/components/shared/transactiondetails/actions/DateAction.tsx"],"sourcesContent":["import React from 'react'\
|
|
1
|
+
{"version":3,"file":"DateAction.es.js","names":[],"sources":["../../../../../../src/transactions/components/shared/transactiondetails/actions/DateAction.tsx"],"sourcesContent":["import React from 'react'\n\nimport Avatar from '@mui/material/Avatar'\nimport Stack from '@mui/material/Stack'\nimport ListItem from '@mui/material/ListItem'\nimport ListItemAvatar from '@mui/material/ListItemAvatar'\nimport ListItemButton from '@mui/material/ListItemButton'\nimport ListItemIcon from '@mui/material/ListItemIcon'\nimport ListItemText from '@mui/material/ListItemText'\nimport { useTheme } from '@mui/material/styles'\nimport { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3'\nimport { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'\nimport { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'\n\nimport { Text } from '@mxenabled/mxui'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport {\n ANALYTICS_EVENTS,\n Drawer,\n useEvent,\n useGlobalCopyStore,\n useTransactionStore,\n} from '../../../../../common'\n\nimport { DATE_FORMATS_INTL, formatDate } from '../../../../../core/constants'\nimport { fromUnixUTC, toUnixUTC } from '../../../../../core/utils/DateUtil'\nimport type { Transaction } from '../../../../../core'\n\nimport { useTransactionsUiStore } from '../../../../context/hooks'\nimport { ON_CLICK_EVENTS } from '../../../../constants/OnClickEvents'\n\ninterface DateActionProps {\n transaction: Transaction\n}\n\nconst DateAction: React.FC<DateActionProps> = ({ transaction }) => {\n const { onEvent } = useEvent()\n const { updateTransaction } = useTransactionStore()\n const { updateManualTransaction } = useTransactionsUiStore()\n const { common: commonCopy, transactions: copy } = useGlobalCopyStore()\n\n const theme = useTheme()\n const [open, setOpen] = React.useState(false)\n const [date, setDate] = React.useState<number>(transaction.date)\n\n const handleDateSelected = (selectedDate: Date | null) => {\n if (selectedDate) setDate(toUnixUTC(selectedDate))\n }\n\n const handleSave = async () => {\n if (transaction.is_manual && !transaction.guid) {\n updateManualTransaction({ ...transaction, date })\n setOpen(false)\n return\n }\n\n await updateTransaction({ ...transaction, date })\n onEvent(ANALYTICS_EVENTS.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: transaction.guid })\n setOpen(false)\n }\n\n const bgColor = theme.palette.mode === 'dark' ? 'grey.800' : 'grey.100'\n\n return (\n <ListItem className=\"mx-txn-date-action\" disableGutters={true} disablePadding={true}>\n <ListItemButton\n onClick={() => {\n onEvent(ON_CLICK_EVENTS.ON_TRANSACTION_DATE_CLICK)\n setOpen(true)\n }}\n >\n <ListItemAvatar>\n <Avatar sx={{ bgcolor: bgColor }} variant=\"rounded\">\n <Icon name=\"calendar_month\" sx={{ color: 'text.primary' }} />\n </Avatar>\n </ListItemAvatar>\n <ListItemText\n primary={copy.date_title}\n secondary={\n <Text bold={true} sx={{ color: 'text.primary' }} variant=\"body1\">\n {formatDate(fromUnixUTC(transaction.date), DATE_FORMATS_INTL.FULL_MONTH_DAY_YEAR)}\n </Text>\n }\n slotProps={{ primary: { variant: 'caption', fontSize: 11, fontWeight: 'normal' } }}\n />\n <ListItemIcon>\n <Icon name=\"chevron_right\" sx={{ color: 'text.primary' }} />\n </ListItemIcon>\n </ListItemButton>\n\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={open}\n onClose={() => setOpen(false)}\n onPrimaryAction={handleSave}\n primaryText={commonCopy.save_button}\n secondaryText={commonCopy.cancel_button}\n title={copy.date_edit_title}\n >\n <Stack alignItems=\"center\" mt={40}>\n <LocalizationProvider\n dateAdapter={AdapterDateFns}\n localeText={{\n nextMonth: copy.date_next_aria,\n previousMonth: copy.date_prev_aria,\n todayButtonLabel: commonCopy.date_range_picker.today,\n }}\n >\n <StaticDatePicker\n displayStaticWrapperAs=\"desktop\"\n onChange={handleDateSelected}\n slotProps={{ actionBar: { actions: ['today'] } }}\n value={fromUnixUTC(date)}\n views={['day']}\n />\n </LocalizationProvider>\n </Stack>\n </Drawer>\n </ListItem>\n )\n}\n\nexport default DateAction\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoCA,IAAM,KAAA,CAAyC,EAAE,aAAA,EAAA,MAAkB;AACjE,QAAM,EAAE,SAAA,EAAA,IAAY,EAAS,GACvB,EAAE,mBAAA,EAAA,IAAsB,EAAoB,GAC5C,EAAE,yBAAA,EAAA,IAA4B,EAAuB,GACrD,EAAE,QAAQ,GAAY,cAAc,EAAA,IAAS,EAAmB,GAEhE,IAAQ,EAAS,GACjB,CAAC,GAAM,CAAA,IAAW,EAAM,SAAS,EAAK,GACtC,CAAC,GAAM,CAA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,CAAA;AAAA,UAER,WAAW,EAAE,SAAS;AAAA,YAAE,SAAS;AAAA,YAAW,UAAU;AAAA,YAAI,YAAY;AAAA,UAAS,EAAE;AAAA,QAClF,CAAA;AAAA,QACD,gBAAA,EAAC,GAAD,EAAA,UACE,gBAAA,EAAC,GAAD;AAAA,UAAM,MAAK;AAAA,UAAgB,IAAI,EAAE,OAAO,eAAe;AAAA,QAAI,CAAA,EAC/C,CAAA;AAAA,MACA;AAAA,IAEhB,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,MACE,gBAAgB,EAAW;AAAA,MAC3B,QAAQ;AAAA,MACR,SAAA,MAAe,EAAQ,EAAK;AAAA,MAC5B,iBAAiB;AAAA,MACjB,aAAa,EAAW;AAAA,MACxB,eAAe,EAAW;AAAA,MAC1B,OAAO,EAAK;AAAA,MAEZ,UAAA,gBAAA,EAAC,GAAD;AAAA,QAAO,YAAW;AAAA,QAAS,IAAI;AAAA,QAC7B,UAAA,gBAAA,EAAC,GAAD;AAAA,UACE,aAAa;AAAA,UACb,YAAY;AAAA,YACV,WAAW,EAAK;AAAA,YAChB,eAAe,EAAK;AAAA,YACpB,kBAAkB,EAAW,kBAAkB;AAAA,UACjD;AAAA,UAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,YACE,wBAAuB;AAAA,YACvB,UAAU;AAAA,YACV,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,OAAO,EAAE,EAAE;AAAA,YAC/C,OAAO,EAAY,CAAI;AAAA,YACvB,OAAO,CAAC,KAAK;AAAA,UACd,CAAA;AAAA,QACmB,CAAA;AAAA,MACjB,CAAA;AAAA,IACD,CAAA,CACA;AAAA;AAEd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.52-alpha.al0",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"@mui/x-date-pickers-pro": "^7.29.4",
|
|
221
221
|
"@mxenabled/cssinjs": "^0.6.0",
|
|
222
222
|
"@mxenabled/mx-icons": "^2.3.0",
|
|
223
|
-
"@mxenabled/mxui": "^2.
|
|
223
|
+
"@mxenabled/mxui": "^2.10.1",
|
|
224
224
|
"@mxenabled/web-widget-sdk": "^0.0.15",
|
|
225
225
|
"@tanstack/react-virtual": "^3.14.9",
|
|
226
226
|
"bowser": "^2.14.1",
|