@mx-cartographer/experiences 8.0.14 → 8.0.15
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 +2 -0
- package/dist/EmbeddedCard-B4U5fIbl.mjs +796 -0
- package/dist/{ExportCsvAction-ErKh7wJ2.mjs → ExportCsvAction-CHCmCCqf.mjs} +4 -5
- package/dist/{ManageIncome-C_XOG9CZ.mjs → ManageIncome-DZ_6f0js.mjs} +3 -3
- package/dist/{RecurringSettings-Bt-zMwCB.mjs → RecurringSettings-CJJndcMu.mjs} +1 -1
- package/dist/{Transaction-Cn5_iFm0.mjs → Transaction-C3Pg9TKf.mjs} +2 -2
- package/dist/TransactionDetails-B9rTYhMA.mjs +1703 -0
- package/dist/{TransactionStore-CbZfz7-2.mjs → TransactionStore-BUsgGRL1.mjs} +43 -32
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +5 -6
- package/dist/cashflow/index.es.js +3 -3
- package/dist/common/index.es.js +20 -20
- package/dist/core/index.es.js +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +11 -0
- package/dist/{OnClickEvents-CseHDZ94.mjs → exportTransactionsToCSV-DgdB3TBt.mjs} +70 -24
- package/dist/finstrong/index.es.js +3 -3
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +1 -2
- package/dist/insights/index.es.js +1043 -1566
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +8 -0
- package/dist/transactions/index.es.js +15 -15
- package/dist/transactions/stores/TransactionStore.d.ts +1 -0
- package/dist/trends/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/StatusIndicator-DAWRKwmE.mjs +0 -264
- package/dist/TransactionDetails-DA6tdnu0.mjs +0 -1476
- package/dist/exportTransactionsToCSV-MCYH_zzN.mjs +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { fromUnixTime as d } from "date-fns/fromUnixTime";
|
|
2
|
-
import { f as u, D as p } from "./DateFormats-BMpMrZpW.mjs";
|
|
3
|
-
import { c as g } from "./Category-CevNQ03n.mjs";
|
|
4
|
-
import { T as m } from "./Transaction-Cn5_iFm0.mjs";
|
|
5
|
-
function f(t) {
|
|
6
|
-
return new Set(
|
|
7
|
-
t.filter((n) => n.parent_guid !== void 0).map((n) => n.parent_guid)
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
function T(t) {
|
|
11
|
-
return t.reduce((n, e) => (e.parent_guid && (n[e.parent_guid] || (n[e.parent_guid] = []), n[e.parent_guid].push(e)), n), {});
|
|
12
|
-
}
|
|
13
|
-
function j(t, n) {
|
|
14
|
-
const e = f(n), o = T(n), r = /* @__PURE__ */ new Set(), a = [];
|
|
15
|
-
for (const i of t)
|
|
16
|
-
e.has(i.guid) ? (o[i.guid] ?? []).slice().sort((s, c) => Math.abs(c.amount) - Math.abs(s.amount)).forEach((s) => {
|
|
17
|
-
r.has(s.guid) || (a.push(s), r.add(s.guid));
|
|
18
|
-
}) : r.has(i.guid) || (a.push(i), r.add(i.guid));
|
|
19
|
-
return a;
|
|
20
|
-
}
|
|
21
|
-
const A = (t, n) => {
|
|
22
|
-
const e = _(l(t, n)), o = new Blob([e], { type: "text/csv;charset=utf-8;" }), r = document.createElement("a");
|
|
23
|
-
r.href = URL.createObjectURL(o), r.setAttribute("download", "transactions.csv"), document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(r.href);
|
|
24
|
-
}, l = (t, n) => t.map((e) => ({
|
|
25
|
-
Date: u(d(e.date), p.YEAR_MONTH_DAY),
|
|
26
|
-
Description: y(e),
|
|
27
|
-
"Original Description": e.feed_description,
|
|
28
|
-
Amount: `${e.amount}`,
|
|
29
|
-
Type: e.transaction_type === m.CREDIT ? "Credit" : "Debit",
|
|
30
|
-
"Parent Category": g[e.top_level_category_guid || ""],
|
|
31
|
-
Category: e.category,
|
|
32
|
-
Account: e.account,
|
|
33
|
-
Tags: C(e, n),
|
|
34
|
-
Memo: e.memo,
|
|
35
|
-
Pending: e.isPending ? "TRUE" : "FALSE"
|
|
36
|
-
})), h = (t) => t ? /[,"\n\r]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t : "", _ = (t) => {
|
|
37
|
-
const n = Object.keys(t[0]).join(",").concat(`\r
|
|
38
|
-
`), e = t.map((o) => Object.values(o).map(h).join(",")).join(`\r
|
|
39
|
-
`);
|
|
40
|
-
return n + e;
|
|
41
|
-
}, y = (t) => {
|
|
42
|
-
let n = t.parent_guid ? "Split: " : "";
|
|
43
|
-
return n += t.is_hidden ? "(Excluded) " : "", n += t.description, n;
|
|
44
|
-
}, C = (t, n) => t.tags.map((e) => n.filter((r) => r.guid === e)[0]?.name ?? "").join(" ");
|
|
45
|
-
export {
|
|
46
|
-
A as e,
|
|
47
|
-
j as f
|
|
48
|
-
};
|