@mx-cartographer/experiences 8.1.12 → 8.2.0
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/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/{AccountDetailsHeader-CzefHTWU.mjs → AccountDetailsHeader-CfdnKyJK.mjs} +21 -21
- package/dist/{AccountFields-BWmpVsS3.mjs → AccountFields-CAy0x_4i.mjs} +6 -6
- package/dist/{AccountListItem-DRDxaRBe.mjs → AccountListItem-BYyeeCf6.mjs} +7 -7
- package/dist/{Accounts-DX3xJE97.mjs → AccountUtils-T5_Odvos.mjs} +1 -1
- package/dist/{Analytics-CxK7O19c.mjs → Analytics-CkYXKvco.mjs} +1 -1
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-hhDdSFHO.mjs → CategorySelectorDrawer-Cu1ohxeM.mjs} +2 -2
- package/dist/{Connect-CBBTL1HJ.mjs → Connect-Dk6GZEsA.mjs} +1 -1
- package/dist/ConnectCard-Dix8BoV_.mjs +54 -0
- package/dist/{ConnectDrawer-DNnuF80E.mjs → ConnectDrawer-DgfsTpyW.mjs} +2 -2
- package/dist/{ConnectionsDrawer-DX6d7uwJ.mjs → ConnectionsDrawer-D7IXAza2.mjs} +2 -2
- package/dist/CurrencyDialog-d4dL7vA5.mjs +371 -0
- package/dist/{CurrencyInput-BMbUVSvz.mjs → CurrencyInput-B59ugxPN.mjs} +15 -16
- package/dist/{CurrencyText-oqd6cX3M.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/{DateFormats-CaOj_4eI.mjs → DateFormats-HudZ3Bjs.mjs} +6 -7
- package/dist/{DateUtil-D0TO0DaZ.mjs → DateUtil-Bhq59ZVg.mjs} +1 -1
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/EmbeddedCard-BNl3quCs.mjs +856 -0
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-BDFu6YIe.mjs → ExportCsvAction-hDprC41l.mjs} +6 -5
- package/dist/{GlobalAccountFilter-jkFxqPg6.mjs → GlobalAccountFilter-DrhtwPqh.mjs} +1 -1
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/{Help-C_CM4gpK.mjs → Help-BSQm9o29.mjs} +68 -67
- package/dist/{Help-CgpJK03Q.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{LineChart-CeZnCZ7j.mjs → LineChart-CejWS_rh.mjs} +2 -2
- package/dist/{ListItemAction-CNpknVvo.mjs → ListItemAction-DGjHxNDJ.mjs} +1 -1
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Localization-DnoVyBNK.mjs +38 -0
- package/dist/{ManageIncome-BX2IqW57.mjs → ManageIncome-DwylSiWs.mjs} +51 -51
- package/dist/{MicroWidgetContainer-DAesImQ6.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BOv3n4iw.mjs → MiniWidgetContainer-BdPiUU-u.mjs} +1 -1
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/{NotificationSettings-DatCL2Ej.mjs → NotificationSettings-CCg-Tml2.mjs} +13 -13
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-CyrvFgfd.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/{OriginalBalanceAction-CWQ0CK-T.mjs → OriginalBalanceAction-CvDx0K6k.mjs} +4 -4
- package/dist/{RecurringSettings-DCplGEv_.mjs → RecurringSettings-CPXLW6AR.mjs} +9 -9
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
- package/dist/Select-BZRUpOib.mjs +51 -0
- package/dist/SelectionBox-Bx2a5rh4.mjs +48 -0
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-Dj85XEUp.mjs → SpendingData-PKlh8caU.mjs} +6 -6
- package/dist/{SpendingLegend-BS8mHUbu.mjs → SpendingLegend-BmkEr9Nh.mjs} +4 -4
- package/dist/{TransactionDetails-C_skrQk8.mjs → TransactionDetails-CbBSxdOi.mjs} +33 -33
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/{ViewMoreMicroCard-D1j0w64K.mjs → ViewMoreMicroCard-K69RRs_b.mjs} +28 -30
- package/dist/{WidgetContainer-BPJoDkhL.mjs → WidgetContainer-DalWyz5A.mjs} +3 -3
- package/dist/accounts/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -1
- package/dist/accounts/index.es.js +62 -64
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +18 -18
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -1
- package/dist/cashflow/index.es.js +28 -31
- package/dist/categories/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/constants/ScheduledPayment.d.ts +1 -1
- package/dist/common/constants/index.d.ts +0 -3
- package/dist/common/context/GlobalDataProvider.d.ts +1 -1
- package/dist/common/context/hooks.d.ts +20 -20
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.es.js +215 -961
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/index.d.ts +0 -4
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.es.js +94 -79
- package/dist/{accounts → core}/stores/AccountStore.d.ts +14 -4
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +4 -5
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +3 -4
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -4
- package/dist/{common → core}/stores/ConnectStore.d.ts +2 -2
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +4 -4
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +2 -2
- package/dist/{common → core}/stores/GlobalStore.d.ts +2 -25
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +3 -3
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -3
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -6
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -4
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -3
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -4
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -3
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -3
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -5
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +27 -6
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -5
- package/dist/{common → core}/stores/UserStore.d.ts +2 -2
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/core/types/index.d.ts +3 -1
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +1 -1
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +2 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/core/utils/Localization.d.ts +3 -0
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +1 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +1 -1
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +568 -691
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/index.d.ts +0 -1
- package/dist/finstrong/index.es.js +1565 -1342
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -7
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -1
- package/dist/goals/index.es.js +71 -73
- package/dist/help/index.es.js +4 -4
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-RzCoiTd0.mjs → hooks-BaO_gOI6.mjs} +17 -17
- package/dist/insights/index.d.ts +0 -1
- package/dist/insights/index.es.js +52 -54
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/index.es.js +6 -6
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +12 -14
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -33
- package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.d.ts +1 -1
- package/dist/networth/index.d.ts +0 -4
- package/dist/networth/index.es.js +232 -237
- package/dist/notifications/index.d.ts +0 -2
- package/dist/notifications/index.es.js +23 -26
- package/dist/recurringtransactions/index.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +92 -96
- package/dist/settings/index.d.ts +0 -1
- package/dist/settings/index.es.js +11 -13
- package/dist/spending/index.es.js +10 -10
- package/dist/transactions/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -4
- package/dist/transactions/index.es.js +102 -109
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +67 -68
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-pliH6hz0.mjs → useAccountDisplayName-CFa_MrS6.mjs} +1 -1
- package/dist/{useInsightsEnabled-CzJoG8xi.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-BZjr-BiE.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +1 -1
- package/dist/AccountApi-WEM2M9tg.mjs +0 -19
- package/dist/AccountStore-CGrjC2Oe.mjs +0 -253
- package/dist/ApiEndpoints-C5IA97i7.mjs +0 -118
- package/dist/BeatApi-C6pBa0Rb.mjs +0 -21
- package/dist/BeatStore-C7-PIhpB.mjs +0 -163
- package/dist/BudgetUtil-H9igoNVm.mjs +0 -479
- package/dist/CashflowStore-BEi92kJg.mjs +0 -91
- package/dist/CategoryApi-CogDFScz.mjs +0 -29
- package/dist/CategoryStore-CA4NTaKH.mjs +0 -160
- package/dist/CategoryUtil-BJOHgYKS.mjs +0 -80
- package/dist/DebtsStore-BJlC2-yO.mjs +0 -63
- package/dist/EmbeddedCard-B9JoBaan.mjs +0 -811
- package/dist/FinstrongApi-FpmsS_sy.mjs +0 -19
- package/dist/FinstrongStore-DYawCv1d.mjs +0 -435
- package/dist/GlobalCopyApi-DkS-2Zf_.mjs +0 -41
- package/dist/Goal-MFBpoOIC.mjs +0 -29
- package/dist/GoalStore-BBAEbf43.mjs +0 -395
- package/dist/Localization-C_HZg9tJ.mjs +0 -15
- package/dist/Localization-CkQ49EKr.mjs +0 -26
- package/dist/MerchantApi-D8ahYxiG.mjs +0 -15
- package/dist/MerchantStore-CyZTv-BM.mjs +0 -26
- package/dist/NetWorthStore-BY-B_hxy.mjs +0 -168
- package/dist/NotificationApi-DF0obHoR.mjs +0 -20
- package/dist/NotificationStore-DlAM5Ue0.mjs +0 -69
- package/dist/RecurringTransactions-DCt94TN4.mjs +0 -297
- package/dist/RecurringTransactionsStore-CFJYC7lI.mjs +0 -264
- package/dist/RepeatingTransaction-D2gmBTd0.mjs +0 -7
- package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +0 -17
- package/dist/SettingsApi-D9d7SLhB.mjs +0 -22
- package/dist/SettingsStore-BcbuKfFO.mjs +0 -250
- package/dist/Transaction-Cn5_iFm0.mjs +0 -5
- package/dist/TransactionApi-CLG2eSNe.mjs +0 -86
- package/dist/TransactionStore-amPYxHnA.mjs +0 -710
- package/dist/TrendsStore-bYjIGqyR.mjs +0 -183
- package/dist/WidgetApi-C0BA2cFX.mjs +0 -102
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/stores/index.d.ts +0 -3
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/common/utils/Localization.d.ts +0 -3
- package/dist/debts/store/DebtsStore.d.ts +0 -10
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -20
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-CSvbZrvL.mjs +0 -133
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- /package/dist/{common → core}/constants/Category.d.ts +0 -0
- /package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- /package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- /package/dist/{help → core}/constants/Help.d.ts +0 -0
- /package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- /package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- /package/dist/{common → core}/constants/Table.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import T from "react";
|
|
3
|
-
import x from "@mui/material/ListItem";
|
|
4
|
-
import S from "@mui/material/ListItemButton";
|
|
5
|
-
import b from "@mui/material/ListItemIcon";
|
|
6
|
-
import R from "@mui/material/ListItemText";
|
|
7
|
-
import h from "@mui/material/Stack";
|
|
8
|
-
import { Text as f } from "@mxenabled/mxui";
|
|
9
|
-
import { makeAutoObservable as A } from "mobx";
|
|
10
|
-
import { addSeconds as N } from "date-fns/addSeconds";
|
|
11
|
-
import { differenceInCalendarMonths as v } from "date-fns/differenceInCalendarMonths";
|
|
12
|
-
import { endOfMonth as D } from "date-fns/endOfMonth";
|
|
13
|
-
import { subMonths as w } from "date-fns/subMonths";
|
|
14
|
-
import { b as I, a as _, c as O } from "./Category-Ccoew_sA.mjs";
|
|
15
|
-
import { f as C, D as L } from "./DateFormats-CaOj_4eI.mjs";
|
|
16
|
-
const rt = ({
|
|
17
|
-
onClick: e,
|
|
18
|
-
leftIcon: t,
|
|
19
|
-
rightIcon: o,
|
|
20
|
-
title: r,
|
|
21
|
-
subtitle: n,
|
|
22
|
-
rightContent: a,
|
|
23
|
-
titleBold: i = !0,
|
|
24
|
-
rightContentBold: c = !0
|
|
25
|
-
}) => {
|
|
26
|
-
const g = /* @__PURE__ */ u(T.Fragment, { children: [
|
|
27
|
-
t && /* @__PURE__ */ l(b, { sx: { ml: 0 }, children: t }),
|
|
28
|
-
/* @__PURE__ */ l(R, { children: /* @__PURE__ */ u(
|
|
29
|
-
h,
|
|
30
|
-
{
|
|
31
|
-
sx: {
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
flexDirection: "row",
|
|
34
|
-
marginLeft: 12
|
|
35
|
-
},
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ u(h, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
38
|
-
/* @__PURE__ */ l(f, { bold: i, variant: "body1", children: r }),
|
|
39
|
-
n && /* @__PURE__ */ l(f, { variant: "caption", children: n })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ u(h, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
|
|
42
|
-
a && /* @__PURE__ */ l(f, { bold: c, display: "flex", variant: "body1", children: a }),
|
|
43
|
-
o && /* @__PURE__ */ l(b, { children: o })
|
|
44
|
-
] })
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
) })
|
|
48
|
-
] });
|
|
49
|
-
return /* @__PURE__ */ l(x, { children: e ? /* @__PURE__ */ l(
|
|
50
|
-
S,
|
|
51
|
-
{
|
|
52
|
-
onClick: e,
|
|
53
|
-
sx: {
|
|
54
|
-
py: 14
|
|
55
|
-
},
|
|
56
|
-
children: g
|
|
57
|
-
}
|
|
58
|
-
) : /* @__PURE__ */ l(
|
|
59
|
-
h,
|
|
60
|
-
{
|
|
61
|
-
sx: {
|
|
62
|
-
py: 14,
|
|
63
|
-
px: 24,
|
|
64
|
-
width: "100%",
|
|
65
|
-
flexDirection: "row",
|
|
66
|
-
alignItems: "center"
|
|
67
|
-
},
|
|
68
|
-
children: g
|
|
69
|
-
}
|
|
70
|
-
) });
|
|
71
|
-
}, E = (e) => _[e] ?? _.default, G = (e) => O[e];
|
|
72
|
-
function W(e, t) {
|
|
73
|
-
const o = [], r = new Date(e);
|
|
74
|
-
for (; r <= t; ) {
|
|
75
|
-
const n = r.getFullYear(), a = String(r.getMonth() + 1).padStart(2, "0");
|
|
76
|
-
o.push(+`${n}${a}`), r.setMonth(r.getMonth() + 1);
|
|
77
|
-
}
|
|
78
|
-
return o;
|
|
79
|
-
}
|
|
80
|
-
const F = (e) => e.reduce((t, o) => {
|
|
81
|
-
const r = {
|
|
82
|
-
top_level_category_guid: o.top_level_category_guid,
|
|
83
|
-
category_guid: o.category_guid,
|
|
84
|
-
amount: o.total,
|
|
85
|
-
year_month: o.year_month
|
|
86
|
-
}, { top_level_category_guid: n, category_guid: a } = r;
|
|
87
|
-
return t[a] || (t[a] = []), t[a].push(r), n !== a && (t[n] || (t[n] = []), t[n].push(r)), t;
|
|
88
|
-
}, {}), at = (e, t, o) => {
|
|
89
|
-
const r = F(e), n = W(t, o);
|
|
90
|
-
return Object.entries(r).map(([a, i]) => {
|
|
91
|
-
const c = i[0].top_level_category_guid, g = n.map((m) => {
|
|
92
|
-
const s = i.filter((y) => y.year_month === m).reduce((y, M) => y + Math.abs(M.amount), 0), d = Number(String(m).slice(0, 4)), p = Number(String(m).slice(4));
|
|
93
|
-
return { x: new Date(d, p - 1), y: s };
|
|
94
|
-
}).sort((m, s) => m.x.getTime() - s.x.getTime());
|
|
95
|
-
return {
|
|
96
|
-
top_level_category_guid: c,
|
|
97
|
-
category_guid: a,
|
|
98
|
-
category_name: G(a),
|
|
99
|
-
category_color: E(c),
|
|
100
|
-
dataset: g
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
}, nt = (e, t) => {
|
|
104
|
-
const o = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, r = typeof t == "string" ? parseFloat(t.replace(/[^0-9.-]+/g, "")) : t;
|
|
105
|
-
return (o || 0) - (r || 0);
|
|
106
|
-
}, st = (e, t) => e.indexOf("General") >= 0 ? 1 : e.localeCompare(t), $ = (e, t) => {
|
|
107
|
-
const o = e.subCategories.filter((a) => a.currentAmount !== 0), r = e.totalMonthlyAmounts.slice(-t), n = (a) => a.substring(0, 3) + " " + a.slice(-4);
|
|
108
|
-
return r.map((a) => {
|
|
109
|
-
const i = n(a.label), c = o.map((s) => {
|
|
110
|
-
const d = s.monthlyAmounts.slice(-t).find((p) => n(p.label) === i);
|
|
111
|
-
return {
|
|
112
|
-
label: s.name,
|
|
113
|
-
amount: Math.abs(d?.amount || 0),
|
|
114
|
-
header: i
|
|
115
|
-
};
|
|
116
|
-
}), g = e.monthlyAmounts.slice(-t).find((s) => n(s.label) === i);
|
|
117
|
-
return [{
|
|
118
|
-
label: e.name,
|
|
119
|
-
amount: Math.abs(g?.amount || 0),
|
|
120
|
-
header: i
|
|
121
|
-
}, ...c].sort((s, d) => d.amount - s.amount);
|
|
122
|
-
});
|
|
123
|
-
}, j = (e, t) => {
|
|
124
|
-
const o = e ? e.totalMonthlyAmounts.slice(-t).map((n) => ({
|
|
125
|
-
x: n.label.substring(0, 3),
|
|
126
|
-
y: Math.abs(n.amount)
|
|
127
|
-
})) : [], r = e ? $(e, t) : [];
|
|
128
|
-
return { monthlyAmounts: o, tooltipLabels: r };
|
|
129
|
-
}, k = (e) => e.slice().filter(
|
|
130
|
-
(t) => t.totalAmount !== 0 && !t.isTransfer && t.guid !== I.INVESTMENTS
|
|
131
|
-
).sort((t, o) => Math.abs(o.totalAmount) - Math.abs(t.totalAmount));
|
|
132
|
-
class it {
|
|
133
|
-
globalStore;
|
|
134
|
-
selectedCategoryData = null;
|
|
135
|
-
selectedDateRange;
|
|
136
|
-
visibleListLength = 5;
|
|
137
|
-
constructor(t) {
|
|
138
|
-
this.globalStore = t, this.selectedDateRange = {
|
|
139
|
-
start: N(D(w(/* @__PURE__ */ new Date(), 6)), 1),
|
|
140
|
-
end: D(/* @__PURE__ */ new Date())
|
|
141
|
-
}, A(this);
|
|
142
|
-
}
|
|
143
|
-
setSelectedCategoryData = (t) => {
|
|
144
|
-
this.selectedCategoryData = t;
|
|
145
|
-
};
|
|
146
|
-
setSelectedDateRange = (t) => {
|
|
147
|
-
this.selectedDateRange = t;
|
|
148
|
-
};
|
|
149
|
-
setVisibleListLength = (t) => {
|
|
150
|
-
this.visibleListLength = t;
|
|
151
|
-
};
|
|
152
|
-
get sortedDetailedCategoriesWithTransactions() {
|
|
153
|
-
return k(
|
|
154
|
-
this.globalStore.categoryStore.detailedCategoriesWithTransactions
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
get selectedDateRangeMonthCount() {
|
|
158
|
-
return v(this.selectedDateRange.end, this.selectedDateRange.start) + 1;
|
|
159
|
-
}
|
|
160
|
-
get selectedDateRangeMonthRange() {
|
|
161
|
-
const t = C(this.selectedDateRange.start, L.MONTH_LONG), o = C(this.selectedDateRange.end, L.MONTH_LONG);
|
|
162
|
-
return `${t} - ${o}`;
|
|
163
|
-
}
|
|
164
|
-
get visibleCategories() {
|
|
165
|
-
return this.sortedDetailedCategoriesWithTransactions.slice(0, this.visibleListLength);
|
|
166
|
-
}
|
|
167
|
-
get collapsedCategories() {
|
|
168
|
-
return this.sortedDetailedCategoriesWithTransactions.slice(this.visibleListLength);
|
|
169
|
-
}
|
|
170
|
-
get categoryDetailsChartData() {
|
|
171
|
-
return j(
|
|
172
|
-
this.selectedCategoryData,
|
|
173
|
-
this.selectedDateRangeMonthCount
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
export {
|
|
178
|
-
rt as L,
|
|
179
|
-
it as T,
|
|
180
|
-
nt as a,
|
|
181
|
-
st as c,
|
|
182
|
-
at as g
|
|
183
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { F as c, A as s } from "./ApiEndpoints-C5IA97i7.mjs";
|
|
2
|
-
var r = /* @__PURE__ */ ((n) => (n[n.Unknown = 0] = "Unknown", n[n.EveryWeek = 1] = "EveryWeek", n[n.EveryOtherWeek = 2] = "EveryOtherWeek", n[n.EveryMonth = 3] = "EveryMonth", n[n.EveryOtherMonth = 4] = "EveryOtherMonth", n[n.EveryQuarter = 5] = "EveryQuarter", n[n.EveryOtherQuarter = 6] = "EveryOtherQuarter", n[n.EveryYear = 7] = "EveryYear", n))(r || {});
|
|
3
|
-
class o {
|
|
4
|
-
fetchInstance;
|
|
5
|
-
constructor(t, e, a) {
|
|
6
|
-
this.fetchInstance = new c(t, e, void 0, a);
|
|
7
|
-
}
|
|
8
|
-
getAppData = async () => this.fetchInstance.get(s.APP_DATA).then((t) => t);
|
|
9
|
-
}
|
|
10
|
-
class u {
|
|
11
|
-
fetchInstance;
|
|
12
|
-
constructor(t) {
|
|
13
|
-
this.fetchInstance = new c(t, "", {
|
|
14
|
-
Accept: "application/json",
|
|
15
|
-
"Content-Type": "application/json"
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
getBanner = async (t) => {
|
|
19
|
-
try {
|
|
20
|
-
const e = `/banner/${t}/account_widget_banner`;
|
|
21
|
-
return this.fetchInstance?.get(e).then((a) => a.banner) ?? {};
|
|
22
|
-
} catch (e) {
|
|
23
|
-
return console.error("Error fetching banner:", e), null;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
class d {
|
|
28
|
-
fetchInstance;
|
|
29
|
-
constructor(t, e, a) {
|
|
30
|
-
this.fetchInstance = new c(t, e, void 0, a);
|
|
31
|
-
}
|
|
32
|
-
addBudget = async (t, e, a = null) => this.fetchInstance.post(s.BUDGETS, {
|
|
33
|
-
amount: e,
|
|
34
|
-
category_guid: t.guid,
|
|
35
|
-
category_name: t.name,
|
|
36
|
-
parent_guid: a
|
|
37
|
-
}).then((h) => h.budget).catch((h) => {
|
|
38
|
-
throw h;
|
|
39
|
-
});
|
|
40
|
-
deleteBudget = async (t) => this.fetchInstance.delete(`${s.BUDGETS}/${t}`).then((e) => e).catch((e) => {
|
|
41
|
-
throw e;
|
|
42
|
-
});
|
|
43
|
-
getBudgets = async () => this.fetchInstance.get(s.BUDGETS).then((t) => t.budgets).catch((t) => t);
|
|
44
|
-
updateBudget = async (t) => this.fetchInstance.put(`${s.BUDGETS}/${t.guid}`, t).then((e) => e.budget).catch((e) => {
|
|
45
|
-
throw e;
|
|
46
|
-
});
|
|
47
|
-
addMerchantBudget = async (t, e) => this.fetchInstance.post(s.MERCHANT_BUDGETS, {
|
|
48
|
-
amount: e,
|
|
49
|
-
merchant_guid: t
|
|
50
|
-
}).then((a) => a.merchant_budget).catch((a) => {
|
|
51
|
-
throw a;
|
|
52
|
-
});
|
|
53
|
-
updateMerchantBudget = async (t, e) => this.fetchInstance.put(`${s.MERCHANT_BUDGETS}/${t}`, {
|
|
54
|
-
amount: e
|
|
55
|
-
}).then((a) => a.merchant_budget).catch((a) => {
|
|
56
|
-
throw a;
|
|
57
|
-
});
|
|
58
|
-
deleteMerchantBudget = async (t) => this.fetchInstance.delete(`${s.MERCHANT_BUDGETS}/${t}`).then((e) => e).catch((e) => {
|
|
59
|
-
throw e;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
class g {
|
|
63
|
-
fetchInstance;
|
|
64
|
-
constructor(t, e, a) {
|
|
65
|
-
this.fetchInstance = new c(t, e, void 0, a);
|
|
66
|
-
}
|
|
67
|
-
createSupportTicket = async (t) => this.fetchInstance.post(s.SUPPORT_TICKETS, t).then((e) => e);
|
|
68
|
-
}
|
|
69
|
-
class I {
|
|
70
|
-
fetchInstance;
|
|
71
|
-
constructor(t, e, a) {
|
|
72
|
-
this.fetchInstance = new c(t, e, void 0, a);
|
|
73
|
-
}
|
|
74
|
-
getHoldings = async () => this.fetchInstance.get(s.HOLDINGS).then((t) => t.holdings);
|
|
75
|
-
updateHoldings = async (t) => this.fetchInstance.put(`${s.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
76
|
-
}
|
|
77
|
-
class f {
|
|
78
|
-
fetchInstance;
|
|
79
|
-
constructor(t, e, a) {
|
|
80
|
-
this.fetchInstance = new c(t, e, void 0, a);
|
|
81
|
-
}
|
|
82
|
-
getUserFeatures = async () => this.fetchInstance.get(s.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
|
|
83
|
-
updateUser = async (t) => this.fetchInstance.put(s.USER, t).then((e) => e.user);
|
|
84
|
-
updateUserProfile = async (t) => this.fetchInstance.put(`${s.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
|
|
85
|
-
}
|
|
86
|
-
class E {
|
|
87
|
-
fetchInstance;
|
|
88
|
-
constructor(t, e) {
|
|
89
|
-
this.fetchInstance = new c(t, e);
|
|
90
|
-
}
|
|
91
|
-
requestWidgetUrl = async (t) => this.fetchInstance.post(s.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
92
|
-
}
|
|
93
|
-
export {
|
|
94
|
-
o as A,
|
|
95
|
-
u as B,
|
|
96
|
-
g as H,
|
|
97
|
-
r as R,
|
|
98
|
-
f as U,
|
|
99
|
-
E as W,
|
|
100
|
-
d as a,
|
|
101
|
-
I as b
|
|
102
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Account, Member } from '../../core';
|
|
2
|
-
export declare class UiStore {
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
selectedAccount: Account;
|
|
5
|
-
selectedMember: Member;
|
|
6
|
-
constructor();
|
|
7
|
-
setIsLoading: (isLoading: boolean) => boolean;
|
|
8
|
-
setSelectedAccount: (account: Account) => Account;
|
|
9
|
-
setSelectedMember: (member: Member) => Member;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { isAccountLiability, usesInterestRateField, usesOriginalBalanceField } from './Accounts';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare class UiStore {
|
|
2
|
-
expandedGuid: string | null;
|
|
3
|
-
selectedGuid: string | null;
|
|
4
|
-
searchValue: string;
|
|
5
|
-
showSelected: boolean;
|
|
6
|
-
shouldDisableDrawerScroll: boolean;
|
|
7
|
-
unselectable: string[];
|
|
8
|
-
unselectableText: string;
|
|
9
|
-
savedOnSelect: any;
|
|
10
|
-
constructor();
|
|
11
|
-
setExpandedGuid: (guid: string | null) => string | null;
|
|
12
|
-
setSelectedGuid: (guid: string | null) => string | null;
|
|
13
|
-
setSearchValue: (value: string) => string;
|
|
14
|
-
setShouldDisableDrawerScroll: (shouldDisable: boolean) => boolean;
|
|
15
|
-
setShowSelected: (showSelected: boolean) => boolean;
|
|
16
|
-
setUnselectable: (unselectable: string[]) => string[];
|
|
17
|
-
setUnselectableText: (text: string) => string;
|
|
18
|
-
onSelect: (guid: string) => any;
|
|
19
|
-
setOnSelect: (callback: any) => any;
|
|
20
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Category, CategoryTotal, DateRangeCategoryTotals, DetailedCategory } from '../../core';
|
|
2
|
-
export declare const getCategory: (categories: Category[], categoryGuid: string | undefined) => Category | undefined;
|
|
3
|
-
export declare const getDetailedCategory: (detailedCategories: DetailedCategory[], guid: string | undefined) => DetailedCategory | undefined;
|
|
4
|
-
export declare const getDetailedSubCategory: (detailedCategories: DetailedCategory[], guid: string | undefined) => DetailedCategory | undefined;
|
|
5
|
-
export declare const getCategoryTotalsByParent: (categories: Category[], dateRangeTotals: DateRangeCategoryTotals[]) => CategoryTotal[];
|
|
6
|
-
export declare const isIncome: (categories: Category[], guid: string) => boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DynamicCopyElement } from '../../core';
|
|
2
|
-
export declare const buildDynamicCopy: (str: string, ...args: DynamicCopyElement[]) => string | DynamicCopyElement[];
|
|
3
|
-
export declare const buildPluralCopy: (strOne: string, strMulti: string, count: number, ...args: DynamicCopyElement[]) => string | DynamicCopyElement[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GlobalStore } from '../../common';
|
|
2
|
-
import { Debt } from '../../core';
|
|
3
|
-
import { DebtsUiStore } from './DebtsUiStore';
|
|
4
|
-
export declare class DebtsStore {
|
|
5
|
-
globalStore: GlobalStore;
|
|
6
|
-
uiStore: DebtsUiStore;
|
|
7
|
-
constructor(globalStore: GlobalStore);
|
|
8
|
-
get debts(): Debt[];
|
|
9
|
-
get totalMonthlyPayments(): number;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DebtPriority } from '../constants';
|
|
2
|
-
import { DebtChartData } from '../utils/DebtsWidget';
|
|
3
|
-
export declare class DebtsUiStore {
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
selectedDebtChartData: DebtChartData;
|
|
6
|
-
selectedDebtPriority: DebtPriority;
|
|
7
|
-
constructor();
|
|
8
|
-
get showError(): boolean;
|
|
9
|
-
get showCompleted(): boolean;
|
|
10
|
-
setIsLoading: (isLoading: boolean) => boolean;
|
|
11
|
-
setSelectedDebtChartData: (data: DebtChartData) => DebtChartData;
|
|
12
|
-
setSelectedDebtPriority: (priority: DebtPriority) => DebtPriority;
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DebtsCopy, Debt } from '../../core';
|
|
2
|
-
import { DebtPriority } from '../constants';
|
|
3
|
-
type DataPoint = {
|
|
4
|
-
x: Date;
|
|
5
|
-
y: number;
|
|
6
|
-
payment?: number;
|
|
7
|
-
extra?: number;
|
|
8
|
-
};
|
|
9
|
-
type Dataset = DataPoint[];
|
|
10
|
-
export interface DebtChartData extends Debt {
|
|
11
|
-
dataset: Dataset;
|
|
12
|
-
}
|
|
13
|
-
export declare const transformDebtsChartData: (debts: Debt[], debtPriority: DebtPriority, extraPaydown?: number) => DebtChartData[];
|
|
14
|
-
export declare const buildEmptyStateProps: (copy: DebtsCopy, hasAggregation: boolean, handler: () => void) => {
|
|
15
|
-
description: string;
|
|
16
|
-
header: string;
|
|
17
|
-
onClickHandler: (() => void) | undefined;
|
|
18
|
-
primaryButton: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Debt } from '../../core';
|
|
2
|
-
import { DebtPriority } from '../constants';
|
|
3
|
-
interface MonthlyPayment {
|
|
4
|
-
balance: number;
|
|
5
|
-
interest: number;
|
|
6
|
-
payment: number;
|
|
7
|
-
principal: number;
|
|
8
|
-
timestamp: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const calculateFinalPayment: (monthlyPayments: MonthlyPayment[]) => number;
|
|
11
|
-
export declare const sortDebtsByPrioriy: (debts: Debt[], debtPriority: DebtPriority) => void;
|
|
12
|
-
export {};
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import s from "@mui/material/ListItem";
|
|
3
|
-
import r from "@mui/material/ListItemButton";
|
|
4
|
-
import { g as A } from "./hooks-RzCoiTd0.mjs";
|
|
5
|
-
import { fromUnixTime as c } from "date-fns/fromUnixTime";
|
|
6
|
-
import { c as O } from "./Category-Ccoew_sA.mjs";
|
|
7
|
-
import { T as I } from "./Transaction-Cn5_iFm0.mjs";
|
|
8
|
-
import { f as d, D as l } from "./DateFormats-CaOj_4eI.mjs";
|
|
9
|
-
const H = ({
|
|
10
|
-
children: T,
|
|
11
|
-
clickEventName: a,
|
|
12
|
-
onClick: n,
|
|
13
|
-
sx: o = {}
|
|
14
|
-
}) => {
|
|
15
|
-
const { onEvent: t } = A();
|
|
16
|
-
return n ? /* @__PURE__ */ _(
|
|
17
|
-
s,
|
|
18
|
-
{
|
|
19
|
-
className: "list-wrapper",
|
|
20
|
-
component: "div",
|
|
21
|
-
sx: { bgcolor: "background.paper", ...o },
|
|
22
|
-
children: /* @__PURE__ */ _(
|
|
23
|
-
r,
|
|
24
|
-
{
|
|
25
|
-
onClick: () => {
|
|
26
|
-
a && t(a), n();
|
|
27
|
-
},
|
|
28
|
-
children: T
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
) : /* @__PURE__ */ _(
|
|
33
|
-
s,
|
|
34
|
-
{
|
|
35
|
-
className: "list-wrapper",
|
|
36
|
-
component: "div",
|
|
37
|
-
disableGutters: !1,
|
|
38
|
-
disablePadding: !1,
|
|
39
|
-
sx: { bgcolor: "background.paper", ...o },
|
|
40
|
-
children: T
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}, P = {
|
|
44
|
-
ON_TRANSACTION_CATEGORY_CLICK: "onTransactionCategoryClick",
|
|
45
|
-
ON_TRANSACTION_CATEGORY_CHANGED: "onTransactionCategoryChanged",
|
|
46
|
-
ON_TRANSACTION_MANUAL_ADD_CLICK: "onTransactionManualAddClick",
|
|
47
|
-
ON_TRANSACTION_MANUAL_ADD_ADDED: "onTransactionManualAddAdded",
|
|
48
|
-
ON_TRANSACTION_DATE_CHANGED: "onTransactionDateChanged",
|
|
49
|
-
ON_TRANSACTION_DATE_CLICK: "onTransactionDateClick",
|
|
50
|
-
ON_TRANSACTION_DELETE_CANCEL: "onTransactionDeleteCancel",
|
|
51
|
-
ON_TRANSACTION_DELETE_CLICK: "onTransactionDeleteClick",
|
|
52
|
-
ON_TRANSACTION_DELETE_DELETED: "onTransactionDeleted",
|
|
53
|
-
ON_TRANSACTION_DELETE_LOGO_CANCEL: "onTransactionDeleteLogoCancel",
|
|
54
|
-
ON_TRANSACTION_DELETE_LOGO_CLICK: "onTransactionDeleteLogoClick",
|
|
55
|
-
ON_TRANSACTION_DELETE_LOGO_DELETED: "onTransactionDeletedLogo",
|
|
56
|
-
ON_TRANSACTION_DESCRIPTION_EDIT_CLICK: "onTransactionDescriptionEditClick",
|
|
57
|
-
ON_TRANSACTION_DESCRIPTION_SAVE_CLICK: "onTransactionDescriptionSaveClick",
|
|
58
|
-
ON_TRANSACTION_EXPORT_CSV_CLICK: "onTransactionExportCsvClick",
|
|
59
|
-
ON_TRANSACTION_HIDDEN: "onTransactionHidden",
|
|
60
|
-
ON_TRANSACTION_HIDE_CLICK: "onTransactionHideClick",
|
|
61
|
-
ON_TRANSACTION_HIDE_CANCEL_CLICK: "onTransactionHideCancelClick",
|
|
62
|
-
ON_TRANSACTION_LIST_ITEM_CLICK: "onTransactionListItemClick",
|
|
63
|
-
ON_TRANSACTION_MEMO_CHANGED: "onTransactionMemoChanged",
|
|
64
|
-
ON_TRANSACTION_MEMO_CLICK: "onTransactionMemoClick",
|
|
65
|
-
ON_TRANSACTION_SPLIT_ADD_CLICK: "onTransactionSplitAddClick",
|
|
66
|
-
ON_TRANSACTION_SPLIT_CANCEL_CLICK: "onTransactionSplitCancelClick",
|
|
67
|
-
ON_TRANSACTION_SPLIT_CATEGORY_CLICK: "onTransactionSplitCategoryClick",
|
|
68
|
-
ON_TRANSACTION_SPLIT_CLICK: "onTransactionSplitClick",
|
|
69
|
-
ON_TRANSACTION_SPLIT_DELETE_CLICK: "onTransactionSplitDeleteClick",
|
|
70
|
-
ON_TRANSACTION_SPLIT_SAVE_CLICK: "onTransactionSplitSaveClick",
|
|
71
|
-
ON_TRANSACTION_TAGS_CHANGED: "onTransactionTagsChanged",
|
|
72
|
-
ON_TRANSACTION_TAGS_CLICK: "onTransactionTagsClick",
|
|
73
|
-
ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK: "onTransactionTagsTagAddCancelClick",
|
|
74
|
-
ON_TRANSACTION_TAGS_TAG_ADD_CLICK: "onTransactionTagsTagAddClick",
|
|
75
|
-
ON_TRANSACTION_TAGS_TAG_ADDED: "onTransactionTagsTagAdded",
|
|
76
|
-
ON_TRANSACTION_TAGS_TAG_DELETE_CLICK: "onTransactionTagsTagDeleteClick",
|
|
77
|
-
ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK: "onTransactionTagsTagDeleteCancelClick",
|
|
78
|
-
ON_TRANSACTION_TAGS_TAG_DELETED: "onTransactionTagsTagDeleted",
|
|
79
|
-
ON_TRANSACTION_TAGS_TAG_EDIT_CLICK: "onTransactionTagsTagEditClick",
|
|
80
|
-
ON_TRANSACTION_TAGS_TAG_EDIT_SAVED: "onTransactionTagsTagEditSavedClick",
|
|
81
|
-
ON_TRANSACTION_TOGGLE_FLAG_CLICK: "onTransactionToggleFlagClick",
|
|
82
|
-
ON_TRANSACTION_UNHIDDEN: "onTransactionUnHidden",
|
|
83
|
-
ON_TRANSACTION_UNHIDE_CLICK: "onTransactionUnHideClick",
|
|
84
|
-
ON_TRANSACTION_UNHIDE_CANCEL_CLICK: "onTransactionUnHideCancelClick",
|
|
85
|
-
ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
|
|
86
|
-
ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
|
|
87
|
-
};
|
|
88
|
-
function E(T) {
|
|
89
|
-
return new Set(
|
|
90
|
-
T.filter((a) => a.parent_guid !== void 0).map((a) => a.parent_guid)
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
function S(T) {
|
|
94
|
-
return T.reduce((a, n) => (n.parent_guid && (a[n.parent_guid] || (a[n.parent_guid] = []), a[n.parent_guid].push(n)), a), {});
|
|
95
|
-
}
|
|
96
|
-
function U(T, a) {
|
|
97
|
-
const n = E(a), o = S(a), t = /* @__PURE__ */ new Set(), C = [];
|
|
98
|
-
for (const e of T)
|
|
99
|
-
n.has(e.guid) ? (o[e.guid] ?? []).slice().sort((i, N) => Math.abs(N.amount) - Math.abs(i.amount)).forEach((i) => {
|
|
100
|
-
t.has(i.guid) || (C.push(i), t.add(i.guid));
|
|
101
|
-
}) : t.has(e.guid) || (C.push(e), t.add(e.guid));
|
|
102
|
-
return C;
|
|
103
|
-
}
|
|
104
|
-
const y = (T, a) => {
|
|
105
|
-
const n = p(L(T, a)), o = new Blob([n], { type: "text/csv;charset=utf-8;" }), t = document.createElement("a");
|
|
106
|
-
t.href = URL.createObjectURL(o), t.setAttribute("download", "transactions.csv"), document.body.appendChild(t), t.click(), document.body.removeChild(t), URL.revokeObjectURL(t.href);
|
|
107
|
-
}, L = (T, a) => T.map((n) => ({
|
|
108
|
-
Date: d(c(n.date), l.YEAR_MONTH_DAY),
|
|
109
|
-
Description: g(n),
|
|
110
|
-
"Original Description": n.feed_description,
|
|
111
|
-
Amount: `${n.amount}`,
|
|
112
|
-
Type: n.transaction_type === I.CREDIT ? "Credit" : "Debit",
|
|
113
|
-
"Parent Category": O[n.top_level_category_guid || ""],
|
|
114
|
-
Category: n.category,
|
|
115
|
-
Account: n.account,
|
|
116
|
-
Tags: R(n, a),
|
|
117
|
-
Memo: n.memo,
|
|
118
|
-
Pending: n.isPending ? "TRUE" : "FALSE"
|
|
119
|
-
})), D = (T) => T ? /[,"\n\r]/.test(T) ? `"${T.replace(/"/g, '""')}"` : T : "", p = (T) => {
|
|
120
|
-
const a = Object.keys(T[0]).join(",").concat(`\r
|
|
121
|
-
`), n = T.map((o) => Object.values(o).map(D).join(",")).join(`\r
|
|
122
|
-
`);
|
|
123
|
-
return a + n;
|
|
124
|
-
}, g = (T) => {
|
|
125
|
-
let a = T.parent_guid ? "Split: " : "";
|
|
126
|
-
return a += T.is_hidden ? "(Excluded) " : "", a += T.description, a;
|
|
127
|
-
}, R = (T, a) => T.tags.map((n) => a.filter((t) => t.guid === n)[0]?.name ?? "").join(" ");
|
|
128
|
-
export {
|
|
129
|
-
H as L,
|
|
130
|
-
P as O,
|
|
131
|
-
y as e,
|
|
132
|
-
U as f
|
|
133
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HELP_BY_CATEGORY_LIST, HELP_CATEGORIES, HELP_CONTENT, POPULAR_TOPICS_LIST } from './Help';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const ROW_HEIGHT = 48;
|
|
2
|
-
export declare const COLUMN_WIDTH: {
|
|
3
|
-
FLAG: number;
|
|
4
|
-
DATE: number;
|
|
5
|
-
PAYEE: string;
|
|
6
|
-
CATEGORY: string;
|
|
7
|
-
ACCOUNT: string;
|
|
8
|
-
AMOUNT: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const COLUMN_NAMES: {
|
|
11
|
-
FLAG: string;
|
|
12
|
-
DATE: string;
|
|
13
|
-
PAYEE: string;
|
|
14
|
-
CATEGORY: string;
|
|
15
|
-
ACCOUNT: string;
|
|
16
|
-
AMOUNT: string;
|
|
17
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Transaction } from '../../core';
|
|
2
|
-
export declare class UiStore {
|
|
3
|
-
beginDate: Date;
|
|
4
|
-
endDate: Date;
|
|
5
|
-
expandedSplits: string[];
|
|
6
|
-
height: number;
|
|
7
|
-
width: number;
|
|
8
|
-
shouldDisableDrawerScroll: boolean;
|
|
9
|
-
searchValue: string;
|
|
10
|
-
selectedAccountGuids: string[];
|
|
11
|
-
manualTransaction: Transaction;
|
|
12
|
-
isAmountValid: boolean;
|
|
13
|
-
showInsights: boolean;
|
|
14
|
-
constructor();
|
|
15
|
-
setDateRange: (beginDate: Date, endDate: Date) => void;
|
|
16
|
-
setIsAmountValid: (valid: boolean) => boolean;
|
|
17
|
-
setSearchValue: (searchValue: string) => string;
|
|
18
|
-
setSelectedAccountGuids: (accountGuids: string[]) => string[];
|
|
19
|
-
setShouldDisableDrawerScroll: (shouldDisable: boolean) => boolean;
|
|
20
|
-
setShowInsights: (showInsights: boolean) => void;
|
|
21
|
-
setSize: (height: number, width: number) => void;
|
|
22
|
-
toggleSplit: (guid: string) => void;
|
|
23
|
-
clearExpandedSplits: () => void;
|
|
24
|
-
updateManualTransaction: (manualTransaction: Transaction) => void;
|
|
25
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Tag, Transaction } from '../../core';
|
|
2
|
-
/**
|
|
3
|
-
* Produces a list of transactions based on the given sorted transactions,
|
|
4
|
-
* where parent transactions that have split children are replaced by those
|
|
5
|
-
* children sorted by descending absolute amount. All other transactions
|
|
6
|
-
* are included as-is, with duplicates removed.
|
|
7
|
-
*/
|
|
8
|
-
export declare function flattenTransactionsWithSplits(sortedTransactions: Transaction[], allTransactions: Transaction[]): Transaction[];
|
|
9
|
-
export declare const exportTransactionsToCSV: (transactions: Transaction[], tags: Tag[]) => void;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Tag, Transaction } from '../../core';
|
|
2
|
-
import { TransactionFilter } from '../stores/TransactionStore';
|
|
3
|
-
export declare const sortAndFilterTransactions: (filter: TransactionFilter, expandedSplits: string[], sortColumn: string, sortDirection: string, tags: Tag[], transactions: Transaction[]) => Transaction[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|