@mx-cartographer/experiences 7.3.0 → 7.3.2
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 +10 -0
- package/dist/{ExportCsvAction-DZ10CbWd.mjs → ExportCsvAction-DNSgmdyv.mjs} +1 -1
- package/dist/{TransactionStore-C1oyQCZK.mjs → TransactionStore-CtGTg0XS.mjs} +1 -1
- package/dist/budgets/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/exportTransactionsToCSV-C4PkIYP6.mjs +48 -0
- package/dist/recurringtransactions/index.es.js +277 -243
- package/dist/spending/index.es.js +330 -307
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +1 -1
- package/package.json +2 -2
- package/dist/exportTransactionsToCSV-B8qpk5MU.mjs +0 -48
|
@@ -3,10 +3,10 @@ import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe }
|
|
|
3
3
|
import { B as Sa, e as xa, b as wa } from "../TransactionDetails-BUoNbsu-.mjs";
|
|
4
4
|
import { T as M } from "../User-Bj34_i8g.mjs";
|
|
5
5
|
import { O as va } from "../User-Bj34_i8g.mjs";
|
|
6
|
-
import { S as ae, D as ze } from "../TransactionStore-
|
|
7
|
-
import { T as Na } from "../TransactionStore-
|
|
8
|
-
import { e as Ke } from "../exportTransactionsToCSV-
|
|
9
|
-
import { E as Oa } from "../ExportCsvAction-
|
|
6
|
+
import { S as ae, D as ze } from "../TransactionStore-CtGTg0XS.mjs";
|
|
7
|
+
import { T as Na } from "../TransactionStore-CtGTg0XS.mjs";
|
|
8
|
+
import { e as Ke } from "../exportTransactionsToCSV-C4PkIYP6.mjs";
|
|
9
|
+
import { E as Oa } from "../ExportCsvAction-DNSgmdyv.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
|
@@ -48,7 +48,7 @@ import Ut from "@mui/material/ListItemText";
|
|
|
48
48
|
import qe from "@mui/material/styles/useTheme";
|
|
49
49
|
import Xt from "@mui/material/Paper";
|
|
50
50
|
import { b as Zt } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
51
|
-
import { E as qt } from "../ExportCsvAction-
|
|
51
|
+
import { E as qt } from "../ExportCsvAction-DNSgmdyv.mjs";
|
|
52
52
|
import { u as Qt } from "../useInsightsEnabled-BxytCjq5.mjs";
|
|
53
53
|
import { E as Jt } from "../EmptyState-DA_lfRBv.mjs";
|
|
54
54
|
import { l as eo } from "../ConnectDrawer-CbxHKlRv.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"@mui/x-date-pickers-pro": "^7.29.4",
|
|
187
187
|
"@mxenabled/cssinjs": "^0.6.0",
|
|
188
188
|
"@mxenabled/mx-icons": "^1.5.1",
|
|
189
|
-
"@mxenabled/mxui": "^1.5.
|
|
189
|
+
"@mxenabled/mxui": "^1.5.8",
|
|
190
190
|
"@mxenabled/web-widget-sdk": "^0.0.13",
|
|
191
191
|
"@tanstack/react-virtual": "^3.13.2",
|
|
192
192
|
"bowser": "^2.11.0",
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { fromUnixTime as d } from "date-fns/fromUnixTime";
|
|
2
|
-
import { c as u } from "./Category-CevNQ03n.mjs";
|
|
3
|
-
import { f as p, D as g } from "./Dialog-CWW597AF.mjs";
|
|
4
|
-
import { T as m } from "./User-Bj34_i8g.mjs";
|
|
5
|
-
function f(e) {
|
|
6
|
-
return new Set(
|
|
7
|
-
e.filter((n) => n.parent_guid !== void 0).map((n) => n.parent_guid)
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
function T(e) {
|
|
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
|
-
}
|
|
13
|
-
function A(e, n) {
|
|
14
|
-
const t = f(n), r = T(n), o = /* @__PURE__ */ new Set(), a = [];
|
|
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
|
-
return a;
|
|
20
|
-
}
|
|
21
|
-
const j = (e, n) => {
|
|
22
|
-
const t = _(h(e, n)), r = encodeURIComponent(t), o = document.createElement("a");
|
|
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
|
-
}, h = (e, n) => e.map((t) => ({
|
|
25
|
-
Date: p(d(t.date), g.YEAR_MONTH_DAY),
|
|
26
|
-
Description: C(t),
|
|
27
|
-
"Original Description": t.feed_description,
|
|
28
|
-
Amount: `${t.amount}`,
|
|
29
|
-
Type: t.transaction_type === m.CREDIT ? "Credit" : "Debit",
|
|
30
|
-
"Parent Category": u[t.top_level_category_guid || ""],
|
|
31
|
-
Category: t.category,
|
|
32
|
-
Account: t.account,
|
|
33
|
-
Tags: y(t, n),
|
|
34
|
-
Memo: t.memo,
|
|
35
|
-
Pending: t.isPending ? "TRUE" : "FALSE"
|
|
36
|
-
})), l = (e) => e ? /[,"\n\r]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e : "", _ = (e) => {
|
|
37
|
-
const n = Object.keys(e[0]).join(",").concat(`\r
|
|
38
|
-
`), t = e.map((r) => Object.values(r).map(l).join(",")).join(`\r
|
|
39
|
-
`);
|
|
40
|
-
return n + t;
|
|
41
|
-
}, C = (e) => {
|
|
42
|
-
let n = e.parent_guid ? "Split: " : "";
|
|
43
|
-
return n += e.is_hidden ? "(Excluded) " : "", n += e.description, n;
|
|
44
|
-
}, y = (e, n) => e.tags.map((t) => n.filter((o) => o.guid === t)[0]?.name ?? "").join(" ");
|
|
45
|
-
export {
|
|
46
|
-
j as e,
|
|
47
|
-
A as f
|
|
48
|
-
};
|