@mx-cartographer/experiences 7.2.16-alpha.mm0 → 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 +8 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DTO_UotC.mjs} +1 -1
- package/dist/{ManageIncome-CV-bGuR-.mjs → ManageIncome-CsCM4rNt.mjs} +63 -62
- package/dist/{NotificationSettings-5i3IywCi.mjs → NotificationSettings-DqrkNMod.mjs} +236 -238
- package/dist/{RecurringSettings-G6_BbsIF.mjs → RecurringSettings-DZu2hw1r.mjs} +1 -1
- package/dist/{TransactionStore-DxPLdF3B.mjs → TransactionStore-hfOsBbDt.mjs} +1 -1
- package/dist/accounts/index.es.js +115 -117
- package/dist/budgets/index.es.js +499 -501
- package/dist/cashflow/index.es.js +381 -383
- package/dist/common/index.es.js +2 -2
- package/dist/debts/index.es.js +375 -377
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-BwwmL4pM.mjs} +14 -13
- package/dist/finstrong/index.es.js +415 -417
- package/dist/goals/index.es.js +557 -559
- package/dist/investments/index.es.js +434 -436
- package/dist/networth/index.es.js +171 -173
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +172 -174
- package/dist/settings/index.es.js +278 -284
- package/dist/spending/index.es.js +280 -282
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
};
|