@mx-cartographer/experiences 7.2.15 → 7.2.16
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 +4 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DTO_UotC.mjs} +1 -1
- package/dist/{TransactionStore-DxPLdF3B.mjs → TransactionStore-hfOsBbDt.mjs} +1 -1
- package/dist/budgets/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-BwwmL4pM.mjs} +14 -13
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { observer as c } from "mobx-react-lite";
|
|
3
3
|
import { Icon as i } from "@mxenabled/mxui";
|
|
4
|
-
import { e as p } from "./exportTransactionsToCSV-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
5
5
|
import { O as m } from "./User-BQUxBeZV.mjs";
|
|
6
6
|
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
7
|
import { g as _, h as C, u as l } from "./hooks-D6XlXHf4.mjs";
|
|
@@ -16,7 +16,7 @@ import { subDays as F } from "date-fns/subDays";
|
|
|
16
16
|
import { O as n, a as G, T as w } from "./User-BQUxBeZV.mjs";
|
|
17
17
|
import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
20
20
|
import { format as k } from "date-fns/format";
|
|
21
21
|
import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
|
|
22
22
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -37,7 +37,7 @@ import Je from "@mui/material/Alert";
|
|
|
37
37
|
import Qe from "@mui/material/Snackbar";
|
|
38
38
|
import _e from "@mui/material/Tab";
|
|
39
39
|
import et from "@mui/material/Tabs";
|
|
40
|
-
import { e as tt } from "../exportTransactionsToCSV-
|
|
40
|
+
import { e as tt } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
41
41
|
import { T as we, a as nt } from "../TransactionDetails-CDtya0KS.mjs";
|
|
42
42
|
import he from "@mui/material/Card";
|
|
43
43
|
import fe from "@mui/material/CardContent";
|
package/dist/common/index.es.js
CHANGED
|
@@ -18,8 +18,8 @@ import { C as Ys } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
|
18
18
|
import { L as zs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as Js } from "../TransactionStore-
|
|
21
|
+
import { T as at } from "../TransactionStore-hfOsBbDt.mjs";
|
|
22
|
+
import { S as Js } from "../TransactionStore-hfOsBbDt.mjs";
|
|
23
23
|
import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
25
|
import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fromUnixTime as d } from "date-fns/fromUnixTime";
|
|
2
2
|
import { c as u } from "./Category-CevNQ03n.mjs";
|
|
3
|
-
import { f as p, D as
|
|
4
|
-
import { T as
|
|
3
|
+
import { f as p, D as g } from "./Dialog-CWW597AF.mjs";
|
|
4
|
+
import { T as m } from "./User-BQUxBeZV.mjs";
|
|
5
5
|
function f(e) {
|
|
6
6
|
return new Set(
|
|
7
7
|
e.filter((n) => n.parent_guid !== void 0).map((n) => n.parent_guid)
|
|
@@ -10,28 +10,29 @@ function f(e) {
|
|
|
10
10
|
function T(e) {
|
|
11
11
|
return e.reduce((n, t) => (t.parent_guid && (n[t.parent_guid] || (n[t.parent_guid] = []), n[t.parent_guid].push(t)), n), {});
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function A(e, n) {
|
|
14
14
|
const t = f(n), r = T(n), o = /* @__PURE__ */ new Set(), a = [];
|
|
15
|
-
for (const
|
|
16
|
-
t.has(
|
|
17
|
-
o.has(
|
|
18
|
-
}) : o.has(
|
|
15
|
+
for (const i of e)
|
|
16
|
+
t.has(i.guid) ? (r[i.guid] ?? []).slice().sort((s, c) => Math.abs(c.amount) - Math.abs(s.amount)).forEach((s) => {
|
|
17
|
+
o.has(s.guid) || (a.push(s), o.add(s.guid));
|
|
18
|
+
}) : o.has(i.guid) || (a.push(i), o.add(i.guid));
|
|
19
19
|
return a;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const j = (e, n) => {
|
|
22
22
|
const t = _(h(e, n)), r = encodeURIComponent(t), o = document.createElement("a");
|
|
23
23
|
o.href = `data:attachment/csv;charset=utf-8,${r}`, o.download = "transactions.csv", document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
24
24
|
}, h = (e, n) => e.map((t) => ({
|
|
25
|
-
Date: p(d(t.date),
|
|
25
|
+
Date: p(d(t.date), g.YEAR_MONTH_DAY),
|
|
26
26
|
Description: C(t),
|
|
27
27
|
"Original Description": t.feed_description,
|
|
28
28
|
Amount: `${t.amount}`,
|
|
29
|
-
Type: t.transaction_type ===
|
|
29
|
+
Type: t.transaction_type === m.CREDIT ? "Credit" : "Debit",
|
|
30
30
|
"Parent Category": u[t.top_level_category_guid || ""],
|
|
31
31
|
Category: t.category,
|
|
32
32
|
Account: t.account,
|
|
33
33
|
Tags: y(t, n),
|
|
34
|
-
Memo: t.memo
|
|
34
|
+
Memo: t.memo,
|
|
35
|
+
Pending: t.isPending ? "TRUE" : "FALSE"
|
|
35
36
|
})), l = (e) => e ? /[,"\n\r]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e : "", _ = (e) => {
|
|
36
37
|
const n = Object.keys(e[0]).join(",").concat(`\r
|
|
37
38
|
`), t = e.map((r) => Object.values(r).map(l).join(",")).join(`\r
|
|
@@ -42,6 +43,6 @@ const A = (e, n) => {
|
|
|
42
43
|
return n += e.is_hidden ? "(Excluded) " : "", n += e.description, n;
|
|
43
44
|
}, y = (e, n) => e.tags.map((t) => n.filter((o) => o.guid === t)[0]?.name ?? "").join(" ");
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
j as e,
|
|
47
|
+
A as f
|
|
47
48
|
};
|
|
@@ -3,10 +3,10 @@ import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "..
|
|
|
3
3
|
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-CDtya0KS.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as Da } from "../User-BQUxBeZV.mjs";
|
|
6
|
-
import { S as ae, D as Fe } from "../TransactionStore-
|
|
7
|
-
import { T as Ea } from "../TransactionStore-
|
|
8
|
-
import { e as ze } from "../exportTransactionsToCSV-
|
|
9
|
-
import { E as Ma } from "../ExportCsvAction-
|
|
6
|
+
import { S as ae, D as Fe } from "../TransactionStore-hfOsBbDt.mjs";
|
|
7
|
+
import { T as Ea } from "../TransactionStore-hfOsBbDt.mjs";
|
|
8
|
+
import { e as ze } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
9
|
+
import { E as Ma } from "../ExportCsvAction-DTO_UotC.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
11
11
|
import u from "react";
|
|
12
12
|
import { observer as x } from "mobx-react-lite";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -43,7 +43,7 @@ import Nt from "@mui/material/Divider";
|
|
|
43
43
|
import { useTheme as Ht, Stack as Wt } from "@mui/material";
|
|
44
44
|
import Ot from "@mui/material/Paper";
|
|
45
45
|
import { b as Vt } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
46
|
-
import { E as Gt } from "../ExportCsvAction-
|
|
46
|
+
import { E as Gt } from "../ExportCsvAction-DTO_UotC.mjs";
|
|
47
47
|
import { u as Bt } from "../useInsightsEnabled-DBpwEq10.mjs";
|
|
48
48
|
import { E as zt } from "../EmptyState-DA_lfRBv.mjs";
|
|
49
49
|
import { l as Pt } from "../ConnectDrawer-Bw5s6Dw1.mjs";
|