@mx-cartographer/experiences 7.11.20 → 7.11.21
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/{AccountDetailsHeader-DCTCLB3K.mjs → AccountDetailsHeader-DkBNsLsI.mjs} +2 -2
- package/dist/{AccountListItem-CZk-bo6j.mjs → AccountListItem-BIVhda6q.mjs} +2 -2
- package/dist/{AccountStore-Cw54qb7Y.mjs → AccountStore-Brc0MNSF.mjs} +1 -1
- package/dist/BudgetUtil--_QXyszn.mjs +479 -0
- package/dist/{CategorySelectorDrawer-Blb22HWt.mjs → CategorySelectorDrawer-5n6Pil_E.mjs} +1 -1
- package/dist/{Connect-Df7iVTcV.mjs → Connect-eYIWqCEr.mjs} +1 -1
- package/dist/{ConnectDrawer-CVt-8rPJ.mjs → ConnectDrawer-CioFo6Wy.mjs} +2 -2
- package/dist/{ConnectionsDrawer-c7HaKeRj.mjs → ConnectionsDrawer-DqhSaMrJ.mjs} +2 -2
- package/dist/{CurrencyInput-bcKNJ22c.mjs → CurrencyInput-DuMktPu3.mjs} +1 -1
- package/dist/{ExportCsvAction-B5Mn5uyb.mjs → ExportCsvAction-Bg6gO_Cz.mjs} +3 -3
- package/dist/{GlobalAccountFilter-CbwySv6c.mjs → GlobalAccountFilter-B73Pw1hJ.mjs} +1 -1
- package/dist/{GoalStore-DXIP9dLt.mjs → GoalStore-0bd-Upkc.mjs} +1 -1
- package/dist/{Help-COWDMsJq.mjs → Help-CINT6-wG.mjs} +1 -1
- package/dist/{LineChart-DVn1AamK.mjs → LineChart-B1qbKR8q.mjs} +1 -1
- package/dist/{ListItemAction-5YhgdUZW.mjs → ListItemAction-CfXGuY7a.mjs} +1 -1
- package/dist/{ManageIncome-_ZP3uPwX.mjs → ManageIncome-C0ddaiMR.mjs} +10 -10
- package/dist/{MicroWidgetContainer-CMES42I1.mjs → MicroWidgetContainer-B_EnfvCq.mjs} +1 -1
- package/dist/{MiniWidgetContainer-DhEx4qKi.mjs → MiniWidgetContainer-Cu72GNsE.mjs} +1 -1
- package/dist/{NotificationSettings-D8uSK6m9.mjs → NotificationSettings-DCbMa5mg.mjs} +4 -4
- package/dist/{OriginalBalanceAction-DuVHcBdO.mjs → OriginalBalanceAction-CW_xOa6Z.mjs} +3 -3
- package/dist/{RecurringSettings-CSrJUzaC.mjs → RecurringSettings-CD1_vCES.mjs} +2 -2
- package/dist/{SpendingLegend-Cpd_jtoX.mjs → SpendingLegend-DHi0vx8B.mjs} +1 -1
- package/dist/StatusIndicator-wyBzyHJc.mjs +252 -0
- package/dist/{Transaction-BR682Yj5.mjs → Transaction-B_2AG36b.mjs} +1 -1
- package/dist/TransactionDetails-CgC3Qu7o.mjs +1474 -0
- package/dist/{TransactionStore-BbjZQa-N.mjs → TransactionStore-DIbZkSVI.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-Bf1J0zYY.mjs → ViewMoreMicroCard-CLHlPWC-.mjs} +1 -1
- package/dist/{WidgetContainer-DSs6lJbr.mjs → WidgetContainer-BSCjBupR.mjs} +2 -2
- package/dist/accounts/index.es.js +13 -13
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/api/BudgetsApi.d.ts +2 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.es.js +550 -609
- package/dist/budgets/store/BudgetsStore.d.ts +6 -0
- package/dist/budgets/utils/BudgetUtil.d.ts +5 -0
- package/dist/cashflow/index.es.js +8 -8
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +254 -224
- package/dist/common/types/localization/BudgetsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/{exportTransactionsToCSV-CKHt_UOp.mjs → exportTransactionsToCSV-EwhjfqsJ.mjs} +1 -1
- package/dist/finstrong/index.es.js +10 -10
- package/dist/goals/index.es.js +10 -10
- package/dist/help/index.es.js +4 -4
- package/dist/{hooks-zu7yblbi.mjs → hooks-BxkfR-Ff.mjs} +5 -5
- package/dist/insights/index.es.js +103 -104
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +6 -6
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +9 -9
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +5 -0
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
- package/dist/transactions/index.es.js +16 -16
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-CxYB0Wpw.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useInsightsEnabled-CYLDtNYt.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-Bmgv_UeH.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +1 -1
- package/dist/BudgetUtil-QbRXtLKn.mjs +0 -101
- package/dist/StatusIndicator-0iX3Gnnu.mjs +0 -55
- package/dist/TransactionDetails-BEKQKH03.mjs +0 -1261
- package/dist/TransactionList-CXiLG0Ur.mjs +0 -204
- package/dist/User-BIgPTsU6.mjs +0 -372
|
@@ -4,7 +4,7 @@ import { observer as P } from "mobx-react-lite";
|
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Fe from "@mui/material/Tab";
|
|
6
6
|
import Ee from "@mui/material/Tabs";
|
|
7
|
-
import { C as pe } from "../ConnectionsDrawer-
|
|
7
|
+
import { C as pe } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
|
|
8
8
|
import xe from "@mui/material/useMediaQuery";
|
|
9
9
|
import Ne from "@mui/material/Box";
|
|
10
10
|
import Me from "@mui/material/Collapse";
|
|
@@ -16,7 +16,7 @@ import ye from "@mui/material/ToggleButton";
|
|
|
16
16
|
import fe from "@mui/material/ToggleButtonGroup";
|
|
17
17
|
import { Text as r, P as J, InstitutionLogo as oe } from "@mxenabled/mxui";
|
|
18
18
|
import He from "@mui/material/Button";
|
|
19
|
-
import { u as M, g as ve, s as H, b as Q, d as le } from "../hooks-
|
|
19
|
+
import { u as M, g as ve, s as H, b as Q, d as le } from "../hooks-BxkfR-Ff.mjs";
|
|
20
20
|
import { A as z } from "../Analytics-i5h6BxR1.mjs";
|
|
21
21
|
import { a as Ue, f as ie } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
22
22
|
import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
@@ -38,8 +38,8 @@ import { D as Pe } from "../Drawer-DV4NTsFg.mjs";
|
|
|
38
38
|
import { DataGridPro as Xe } from "@mui/x-data-grid-pro";
|
|
39
39
|
import { Stack as $e } from "@mui/material";
|
|
40
40
|
import { L as Se } from "../Loader-D3rjKx72.mjs";
|
|
41
|
-
import { u as qe } from "../useWidgetLoadTimer-
|
|
42
|
-
import { W as Ke } from "../WidgetContainer-
|
|
41
|
+
import { u as qe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
42
|
+
import { W as Ke } from "../WidgetContainer-BSCjBupR.mjs";
|
|
43
43
|
import { A as Ye } from "../Account-BiB1F8lL.mjs";
|
|
44
44
|
import { E as Qe } from "../EmptyState-DHAkGsjk.mjs";
|
|
45
45
|
const me = ({ sx: t = {} }) => {
|
|
@@ -12,7 +12,7 @@ import k from "@mui/material/ListItemText";
|
|
|
12
12
|
import A from "@mui/material/Paper";
|
|
13
13
|
import d from "@mui/material/Stack";
|
|
14
14
|
import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
|
|
15
|
-
import { c as v, u as w, b as C } from "../hooks-
|
|
15
|
+
import { c as v, u as w, b as C } from "../hooks-BxkfR-Ff.mjs";
|
|
16
16
|
import { L as p } from "../Loader-D3rjKx72.mjs";
|
|
17
17
|
import { S as N } from "../SearchBox-B7km148n.mjs";
|
|
18
18
|
import { M as ne } from "../MerchantStore-BzGi4JAZ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-
|
|
1
|
+
import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-CLHlPWC-.mjs";
|
|
2
2
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
const a = ({
|
|
4
4
|
color: i = "currentColor",
|
|
@@ -3,8 +3,8 @@ import { fromUnixTime as oe } from "date-fns/fromUnixTime";
|
|
|
3
3
|
import { observer as S } from "mobx-react-lite";
|
|
4
4
|
import ie from "@mui/material/Stack/Stack";
|
|
5
5
|
import { useTheme as j } from "@mui/material/styles";
|
|
6
|
-
import { L as ae } from "../LineChart-
|
|
7
|
-
import { p as se, q as R, u as N, g as z, d as ce, b as Y } from "../hooks-
|
|
6
|
+
import { L as ae } from "../LineChart-B1qbKR8q.mjs";
|
|
7
|
+
import { p as se, q as R, u as N, g as z, d as ce, b as Y } from "../hooks-BxkfR-Ff.mjs";
|
|
8
8
|
import { u as q } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
9
9
|
import { f as le, D as me } from "../DateFormats-BMpMrZpW.mjs";
|
|
10
10
|
import u from "react";
|
|
@@ -31,11 +31,11 @@ import { A as v } from "../Analytics-i5h6BxR1.mjs";
|
|
|
31
31
|
import { format as ue, fromUnixTime as fe, differenceInMonths as xe } from "date-fns";
|
|
32
32
|
import { Icon as te } from "@mxenabled/mx-icons";
|
|
33
33
|
import { f as U } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
34
|
-
import { u as ne } from "../useWidgetLoadTimer-
|
|
34
|
+
import { u as ne } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
35
35
|
import { L as re } from "../Loader-D3rjKx72.mjs";
|
|
36
|
-
import { M as ge } from "../MicroWidgetContainer-
|
|
37
|
-
import { C as ye } from "../ConnectionsDrawer-
|
|
38
|
-
import { W as Ce } from "../WidgetContainer-
|
|
36
|
+
import { M as ge } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
37
|
+
import { C as ye } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
|
|
38
|
+
import { W as Ce } from "../WidgetContainer-BSCjBupR.mjs";
|
|
39
39
|
import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
|
|
40
40
|
const Se = () => {
|
|
41
41
|
const { isMobile: t } = q(), { availableWidth: a } = se(), i = j(), {
|
|
@@ -11,13 +11,13 @@ import O from "@mui/material/List";
|
|
|
11
11
|
import { Text as g, InstitutionLogo as G, CategoryIcon as E } from "@mxenabled/mxui";
|
|
12
12
|
import { h as j } from "../DateUtil-wcYTmDRD.mjs";
|
|
13
13
|
import { useTheme as z, Card as U } from "@mui/material";
|
|
14
|
-
import { d as F,
|
|
14
|
+
import { d as F, m as P, u as C, n as w, b as v, a as V } from "../hooks-BxkfR-Ff.mjs";
|
|
15
15
|
import { Icon as W, Settings as $ } from "@mxenabled/mx-icons";
|
|
16
16
|
import H from "@mui/material/Button";
|
|
17
17
|
import M from "@mui/material/Stack";
|
|
18
18
|
import { L as k } from "../Loader-D3rjKx72.mjs";
|
|
19
19
|
import X from "@mui/material/IconButton";
|
|
20
|
-
import { N as Y } from "../NotificationSettings-
|
|
20
|
+
import { N as Y } from "../NotificationSettings-DCbMa5mg.mjs";
|
|
21
21
|
import { D as x } from "../Drawer-DV4NTsFg.mjs";
|
|
22
22
|
const xt = (i) => {
|
|
23
23
|
switch (i) {
|
|
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
|
|
|
6
6
|
import { startOfMonth as G } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
|
-
import { R as _e } from "../RecurringSettings-
|
|
10
|
-
import { M as zn } from "../RecurringSettings-
|
|
9
|
+
import { R as _e } from "../RecurringSettings-CD1_vCES.mjs";
|
|
10
|
+
import { M as zn } from "../RecurringSettings-CD1_vCES.mjs";
|
|
11
11
|
import { addMonths as Fe } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as Pe } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as He } from "date-fns/isBefore";
|
|
@@ -32,7 +32,7 @@ import { isSameDay as rt } from "date-fns/isSameDay";
|
|
|
32
32
|
import it from "@mui/material/Badge";
|
|
33
33
|
import { PickersDay as ot } from "@mui/x-date-pickers/PickersDay";
|
|
34
34
|
import { I as P } from "../IconBacking-B9oC6uL2.mjs";
|
|
35
|
-
import { u as R, b as H,
|
|
35
|
+
import { u as R, b as H, i as w, g as z, p as Me, h as re } from "../hooks-BxkfR-Ff.mjs";
|
|
36
36
|
import { d as I, c as T, g as ye, f as at } from "../RecurringTransactions-CYNpe_RS.mjs";
|
|
37
37
|
import { T as O } from "../RecurringTransactionsStore-BD-OfVZ-.mjs";
|
|
38
38
|
import { R as jn } from "../RecurringTransactionsStore-BD-OfVZ-.mjs";
|
|
@@ -46,8 +46,8 @@ import lt from "@mui/material/ListSubheader";
|
|
|
46
46
|
import dt from "@mui/material/ListItemAvatar";
|
|
47
47
|
import mt from "@mui/material/ListItemButton";
|
|
48
48
|
import ut from "@mui/material/ListItemText";
|
|
49
|
-
import { b as pt } from "../ManageIncome-
|
|
50
|
-
import { c as Yn, M as Vn, S as Xn } from "../ManageIncome-
|
|
49
|
+
import { b as pt } from "../ManageIncome-C0ddaiMR.mjs";
|
|
50
|
+
import { c as Yn, M as Vn, S as Xn } from "../ManageIncome-C0ddaiMR.mjs";
|
|
51
51
|
import { f as M } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
52
52
|
import { D as ie } from "../Drawer-DV4NTsFg.mjs";
|
|
53
53
|
import { f as L, D as v } from "../DateFormats-BMpMrZpW.mjs";
|
|
@@ -55,12 +55,12 @@ import N from "@mui/material/Box";
|
|
|
55
55
|
import { S as ve } from "../StatusBar-BK_uYHAB.mjs";
|
|
56
56
|
import { u as oe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
57
57
|
import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
58
|
-
import { u as ae } from "../useWidgetLoadTimer-
|
|
58
|
+
import { u as ae } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
59
59
|
import { L as se } from "../Loader-D3rjKx72.mjs";
|
|
60
|
-
import { W as gt } from "../WidgetContainer-
|
|
61
|
-
import { M as ht } from "../MiniWidgetContainer-
|
|
60
|
+
import { W as gt } from "../WidgetContainer-BSCjBupR.mjs";
|
|
61
|
+
import { M as ht } from "../MiniWidgetContainer-Cu72GNsE.mjs";
|
|
62
62
|
import { u as ft } from "../useDimensions-CeDR9V8N.mjs";
|
|
63
|
-
import { M as xt } from "../MicroWidgetContainer-
|
|
63
|
+
import { M as xt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
64
64
|
const U = {
|
|
65
65
|
gridRow: 1,
|
|
66
66
|
gridColumn: 1,
|
|
@@ -16,9 +16,9 @@ import V from "@mui/material/Box";
|
|
|
16
16
|
import Z from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
18
|
import { H3 as K, P as N, Text as v, Icon as L, ChevronRightIcon as ve } from "@mxenabled/mxui";
|
|
19
|
-
import { V as Ce, a as De, N as j } from "../NotificationSettings-
|
|
20
|
-
import { A as Qt, B as Zt, I as eo } from "../NotificationSettings-
|
|
21
|
-
import { u as D, a as $, r as A, o as Se, b as ee,
|
|
19
|
+
import { V as Ce, a as De, N as j } from "../NotificationSettings-DCbMa5mg.mjs";
|
|
20
|
+
import { A as Qt, B as Zt, I as eo } from "../NotificationSettings-DCbMa5mg.mjs";
|
|
21
|
+
import { u as D, a as $, r as A, o as Se, b as ee, l as z } from "../hooks-BxkfR-Ff.mjs";
|
|
22
22
|
import { u as O } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import { D as G } from "../Dialog-DdCwLgrl.mjs";
|
|
24
24
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
@@ -35,15 +35,15 @@ import { L as ie } from "../Loader-D3rjKx72.mjs";
|
|
|
35
35
|
import Ae from "@mui/material/List";
|
|
36
36
|
import J from "@mui/material/Divider";
|
|
37
37
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import { a as Re, u as Pe } from "../CategorySelectorDrawer-
|
|
38
|
+
import { a as Re, u as Pe } from "../CategorySelectorDrawer-5n6Pil_E.mjs";
|
|
39
39
|
import Be from "@mui/material/ListItem";
|
|
40
40
|
import Ne from "@mui/material/ListItemButton";
|
|
41
41
|
import Me from "@mui/material/ListItemIcon";
|
|
42
42
|
import Le from "@mui/material/ListItemText";
|
|
43
43
|
import { D as He } from "../Drawer-DV4NTsFg.mjs";
|
|
44
|
-
import { u as ne } from "../useWidgetLoadTimer-
|
|
45
|
-
import { H as Oe } from "../Help-
|
|
46
|
-
import { W as X } from "../WidgetContainer-
|
|
44
|
+
import { u as ne } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
45
|
+
import { H as Oe } from "../Help-CINT6-wG.mjs";
|
|
46
|
+
import { W as X } from "../WidgetContainer-BSCjBupR.mjs";
|
|
47
47
|
const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
48
48
|
const o = xe(), { common: i, settings: n } = D(), { isDesktop: d, isMobile: l, isSmallMobile: r, isTablet: s } = O(t), { config: b } = $(), { updateUser: _ } = A(), { user: m } = Se(), [h, S] = p.useState({
|
|
49
49
|
first_name: m.first_name,
|
|
@@ -8,19 +8,19 @@ import C from "@mui/material/Stack";
|
|
|
8
8
|
import N from "@mui/material/Tab";
|
|
9
9
|
import rt from "@mui/material/Tabs";
|
|
10
10
|
import yt from "@mui/material/styles/useTheme";
|
|
11
|
-
import { g as st, a as lt, S as $, b as Y } from "../SpendingLegend-
|
|
11
|
+
import { g as st, a as lt, S as $, b as Y } from "../SpendingLegend-DHi0vx8B.mjs";
|
|
12
12
|
import { Text as T, Icon as bt } from "@mxenabled/mxui";
|
|
13
13
|
import { f as R } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
14
|
-
import { u as I,
|
|
15
|
-
import { u as gt } from "../useWidgetLoadTimer-
|
|
14
|
+
import { u as I, l as A, d as ct, b as z, a as V, h as dt, g as Ct } from "../hooks-BxkfR-Ff.mjs";
|
|
15
|
+
import { u as gt } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
16
16
|
import { L as pt } from "../Loader-D3rjKx72.mjs";
|
|
17
|
-
import { M as St } from "../MiniWidgetContainer-
|
|
17
|
+
import { M as St } from "../MiniWidgetContainer-Cu72GNsE.mjs";
|
|
18
18
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
19
19
|
import Tt from "@mui/material/Button";
|
|
20
20
|
import { useTheme as Mt } from "@mui/material";
|
|
21
|
-
import { e as Dt } from "../exportTransactionsToCSV-
|
|
22
|
-
import { T as xt } from "../
|
|
23
|
-
import { T as wt } from "../TransactionDetails-
|
|
21
|
+
import { e as Dt } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
|
|
22
|
+
import { T as xt } from "../StatusIndicator-wyBzyHJc.mjs";
|
|
23
|
+
import { T as wt } from "../TransactionDetails-CgC3Qu7o.mjs";
|
|
24
24
|
import Lt from "@mui/material/Collapse";
|
|
25
25
|
import F from "@mui/material/Divider";
|
|
26
26
|
import J from "@mui/material/List";
|
|
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-DV4NTsFg.mjs";
|
|
|
31
31
|
import { b as w } from "../Category-CevNQ03n.mjs";
|
|
32
32
|
import { parseISO as et } from "date-fns/parseISO";
|
|
33
33
|
import { A as nt } from "../Analytics-i5h6BxR1.mjs";
|
|
34
|
-
import { W as It } from "../WidgetContainer-
|
|
34
|
+
import { W as It } from "../WidgetContainer-BSCjBupR.mjs";
|
|
35
35
|
const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C, { direction: "column", children: [
|
|
36
36
|
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: d }),
|
|
37
37
|
/* @__PURE__ */ t(T, { variant: "XSmall", children: R(n, o === "mini" ? "0,0" : "0,0.00") })
|
package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import { Transaction } from '../../../../../common';
|
|
|
2
2
|
interface AddMerchantBudgetActionProps {
|
|
3
3
|
transaction: Transaction;
|
|
4
4
|
}
|
|
5
|
+
export declare enum CurrencyDialogAction {
|
|
6
|
+
CREATE = "create",
|
|
7
|
+
EDIT = "edit",
|
|
8
|
+
DELETE = "delete"
|
|
9
|
+
}
|
|
5
10
|
export declare const AddMerchantBudgetAction: (({ transaction }: AddMerchantBudgetActionProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
11
|
displayName: string;
|
|
7
12
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { T as Sa } from "../TransactionApi-Ck5Ua-7F.mjs";
|
|
2
|
-
import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-
|
|
3
|
-
import { B as Da, b as Ia } from "../TransactionDetails-
|
|
4
|
-
import { T as E } from "../Transaction-
|
|
5
|
-
import { O as Na } from "../Transaction-
|
|
6
|
-
import { S as Z, D as Be } from "../TransactionStore-
|
|
7
|
-
import { T as Oa } from "../TransactionStore-
|
|
8
|
-
import { u as R, T as $e } from "../
|
|
9
|
-
import { a as La } from "../
|
|
10
|
-
import { e as Ve } from "../exportTransactionsToCSV-
|
|
11
|
-
import { E as Ra } from "../ExportCsvAction-
|
|
2
|
+
import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-CgC3Qu7o.mjs";
|
|
3
|
+
import { B as Da, b as Ia } from "../TransactionDetails-CgC3Qu7o.mjs";
|
|
4
|
+
import { T as E } from "../Transaction-B_2AG36b.mjs";
|
|
5
|
+
import { O as Na } from "../Transaction-B_2AG36b.mjs";
|
|
6
|
+
import { S as Z, D as Be } from "../TransactionStore-DIbZkSVI.mjs";
|
|
7
|
+
import { T as Oa } from "../TransactionStore-DIbZkSVI.mjs";
|
|
8
|
+
import { u as R, T as $e } from "../StatusIndicator-wyBzyHJc.mjs";
|
|
9
|
+
import { a as La } from "../StatusIndicator-wyBzyHJc.mjs";
|
|
10
|
+
import { e as Ve } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
|
|
11
|
+
import { E as Ra } from "../ExportCsvAction-Bg6gO_Cz.mjs";
|
|
12
12
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
13
13
|
import m from "react";
|
|
14
14
|
import { observer as w } from "mobx-react-lite";
|
|
15
15
|
import We from "@mui/material/Paper";
|
|
16
16
|
import { DataGridPro as Ge } from "@mui/x-data-grid-pro";
|
|
17
|
-
import { h as H, u as D, b as K, d as ne,
|
|
17
|
+
import { h as H, u as D, b as K, d as ne, l as Fe, a as Ue, g as Ke, o as ze } from "../hooks-BxkfR-Ff.mjs";
|
|
18
18
|
import x from "@mui/material/Box";
|
|
19
19
|
import { useTheme as qe } from "@mui/material/styles";
|
|
20
20
|
import { Text as y, Icon as M, MerchantLogo as je, TextField as ee, P as Xe } from "@mxenabled/mxui";
|
|
@@ -29,19 +29,19 @@ import { getUnixTime as et } from "date-fns/getUnixTime";
|
|
|
29
29
|
import { startOfMonth as tt } from "date-fns/startOfMonth";
|
|
30
30
|
import { startOfToday as F } from "date-fns/startOfToday";
|
|
31
31
|
import at from "@mui/material/styles/useTheme";
|
|
32
|
-
import { C as nt } from "../ConnectDrawer-
|
|
32
|
+
import { C as nt } from "../ConnectDrawer-CioFo6Wy.mjs";
|
|
33
33
|
import ot from "@mui/material/Divider";
|
|
34
34
|
import rt from "@mui/material/MenuItem";
|
|
35
35
|
import it from "@mui/material/RadioGroup";
|
|
36
36
|
import { ExpandMore as st } from "@mxenabled/mx-icons";
|
|
37
|
-
import { C as ct } from "../CurrencyInput-
|
|
38
|
-
import { a as lt, u as dt } from "../CategorySelectorDrawer-
|
|
37
|
+
import { C as ct } from "../CurrencyInput-DuMktPu3.mjs";
|
|
38
|
+
import { a as lt, u as dt } from "../CategorySelectorDrawer-5n6Pil_E.mjs";
|
|
39
39
|
import { b as U } from "../Localization-CPkpIwIx.mjs";
|
|
40
40
|
import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
|
|
41
41
|
import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
42
42
|
import { u as _t } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
43
|
-
import { u as pt } from "../useWidgetLoadTimer-
|
|
44
|
-
import { W as gt } from "../WidgetContainer-
|
|
43
|
+
import { u as pt } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
44
|
+
import { W as gt } from "../WidgetContainer-BSCjBupR.mjs";
|
|
45
45
|
import { A } from "../Analytics-i5h6BxR1.mjs";
|
|
46
46
|
import { S as ht } from "../SearchBox-B7km148n.mjs";
|
|
47
47
|
import { D as te } from "../Drawer-DV4NTsFg.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -17,7 +17,7 @@ import Je from "@mui/material/Card";
|
|
|
17
17
|
import et from "@mui/material/CardContent";
|
|
18
18
|
import Ne from "@mui/material/Divider";
|
|
19
19
|
import Ve from "@mui/material/Grid";
|
|
20
|
-
import { u as A,
|
|
20
|
+
import { u as A, l as J, g as $, b as ye, h as ve, d as De, B as Ce, p as tt, f as Ge, a as ot } from "../hooks-BxkfR-Ff.mjs";
|
|
21
21
|
import { b as nt } from "../Localization-CPkpIwIx.mjs";
|
|
22
22
|
import { C as we } from "../CurrencyText-CA-E5N_y.mjs";
|
|
23
23
|
import { C as Re, b as Fe, c as kt } from "../Category-CevNQ03n.mjs";
|
|
@@ -30,22 +30,22 @@ import Vt from "@mui/material/ToggleButton";
|
|
|
30
30
|
import Ft from "@mui/material/ToggleButtonGroup";
|
|
31
31
|
import { parseISO as it } from "date-fns/parseISO";
|
|
32
32
|
import { H as ke } from "../HeaderCell-DjuifqHJ.mjs";
|
|
33
|
-
import { T as G, b as $t } from "../ViewMoreMicroCard-
|
|
33
|
+
import { T as G, b as $t } from "../ViewMoreMicroCard-CLHlPWC-.mjs";
|
|
34
34
|
import { useGridApiContext as zt, useGridRootProps as Kt, DataGridPro as Yt } from "@mui/x-data-grid-pro";
|
|
35
35
|
import jt from "@mui/material/Badge";
|
|
36
36
|
import Ut from "@mui/material/IconButton";
|
|
37
37
|
import { A as v } from "../Analytics-i5h6BxR1.mjs";
|
|
38
|
-
import { T as lt } from "../
|
|
39
|
-
import { T as ct } from "../TransactionDetails-
|
|
38
|
+
import { T as lt } from "../StatusIndicator-wyBzyHJc.mjs";
|
|
39
|
+
import { T as ct } from "../TransactionDetails-CgC3Qu7o.mjs";
|
|
40
40
|
import { D as We } from "../Drawer-DV4NTsFg.mjs";
|
|
41
|
-
import { u as Ie } from "../useWidgetLoadTimer-
|
|
41
|
+
import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
42
42
|
import { L as Le } from "../Loader-D3rjKx72.mjs";
|
|
43
|
-
import { W as dt } from "../WidgetContainer-
|
|
44
|
-
import { L as Be } from "../LineChart-
|
|
45
|
-
import { M as Xt } from "../MiniWidgetContainer-
|
|
43
|
+
import { W as dt } from "../WidgetContainer-BSCjBupR.mjs";
|
|
44
|
+
import { L as Be } from "../LineChart-B1qbKR8q.mjs";
|
|
45
|
+
import { M as Xt } from "../MiniWidgetContainer-Cu72GNsE.mjs";
|
|
46
46
|
import { subMonths as Zt } from "date-fns";
|
|
47
47
|
import { TrendingUp as Qt, TrendingDown as qt, MultilineChart as Jt, ExpandLess as eo, ExpandMore as to, ArrowBack as oo } from "@mxenabled/mx-icons";
|
|
48
|
-
import { M as no } from "../MicroWidgetContainer-
|
|
48
|
+
import { M as no } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
49
49
|
import so from "@mui/material/Collapse";
|
|
50
50
|
import ro from "@mui/material/List";
|
|
51
51
|
import ao from "@mui/material/ListItem";
|
|
@@ -56,10 +56,10 @@ import ut from "@mui/material/styles/useTheme";
|
|
|
56
56
|
import { Stack as uo } from "@mui/material";
|
|
57
57
|
import mo from "@mui/material/Paper";
|
|
58
58
|
import { b as ho } from "../CategoryUtil-BVixr0d5.mjs";
|
|
59
|
-
import { E as go } from "../ExportCsvAction-
|
|
60
|
-
import { u as po } from "../useInsightsEnabled-
|
|
59
|
+
import { E as go } from "../ExportCsvAction-Bg6gO_Cz.mjs";
|
|
60
|
+
import { u as po } from "../useInsightsEnabled-DL_oNyI0.mjs";
|
|
61
61
|
import { E as fo } from "../EmptyState-DHAkGsjk.mjs";
|
|
62
|
-
import { C as yo } from "../ConnectDrawer-
|
|
62
|
+
import { C as yo } from "../ConnectDrawer-CioFo6Wy.mjs";
|
|
63
63
|
const mt = ({ categoryGuid: t, topLevelCategoryGuid: s }) => {
|
|
64
64
|
const { categories: n } = A(), { getCategoryName: o } = J(), r = o(t);
|
|
65
65
|
return /* @__PURE__ */ C(x, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as r, useEffect as c } from "react";
|
|
2
|
-
import { g as l } from "./hooks-
|
|
2
|
+
import { g as l } from "./hooks-BxkfR-Ff.mjs";
|
|
3
3
|
let n = !0;
|
|
4
4
|
const d = ({ widgetName: i, isLoaded: u = !0 }) => {
|
|
5
5
|
const { onEvent: o } = l(), t = r(null), s = r(!1), e = r(!1);
|
package/package.json
CHANGED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { b as d } from "./Category-CevNQ03n.mjs";
|
|
2
|
-
import { i as _ } from "./hooks-zu7yblbi.mjs";
|
|
3
|
-
import { b as f } from "./Localization-CPkpIwIx.mjs";
|
|
4
|
-
import { f as l } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
5
|
-
const p = (n, e) => n.find((t) => t.guid === e), B = (n, e) => n.find((t) => t.guid === e), T = (n, e) => {
|
|
6
|
-
const t = n.find((r) => r.subCategories.find((a) => a.guid === e));
|
|
7
|
-
if (t)
|
|
8
|
-
return t.subCategories.find((r) => r.guid === e);
|
|
9
|
-
}, k = (n, e) => {
|
|
10
|
-
const t = [];
|
|
11
|
-
for (const r of e) {
|
|
12
|
-
const a = p(n, r.category_guid);
|
|
13
|
-
if (!a) continue;
|
|
14
|
-
const o = a.parent_guid ?? a.guid, s = p(n, o);
|
|
15
|
-
if (!s) continue;
|
|
16
|
-
const u = {
|
|
17
|
-
amount: r.total,
|
|
18
|
-
category: a,
|
|
19
|
-
guid: a.guid,
|
|
20
|
-
subCategoryTotals: []
|
|
21
|
-
}, i = t.find((g) => g.guid === o);
|
|
22
|
-
i ? (i.amount += r.total, i.subCategoryTotals.push(u)) : t.push({
|
|
23
|
-
amount: r.total,
|
|
24
|
-
category: s,
|
|
25
|
-
guid: o,
|
|
26
|
-
subCategoryTotals: [u]
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
}, w = (n, e) => {
|
|
31
|
-
const t = n.find((r) => r.guid === e);
|
|
32
|
-
return t ? t.guid === d.INCOME || t.parent_guid === d.INCOME : !1;
|
|
33
|
-
}, y = (n, e) => !n && !e ? 0 : !n && e ? 101 : e / n * 100, b = (n, e) => {
|
|
34
|
-
const t = {
|
|
35
|
-
background: e.palette.success.main,
|
|
36
|
-
description: n <= 100 ? e.palette.text.secondary : e.palette.error.main,
|
|
37
|
-
text: e.palette.common.white,
|
|
38
|
-
mercury: e.palette.success.lighter
|
|
39
|
-
};
|
|
40
|
-
return n > 100 ? (t.background = e.palette.error.main, t.mercury = e.palette.error.lighter) : n > 80 && (t.background = e.palette.warning.main, t.text = e.palette.grey[900], t.mercury = e.palette.warning.lighter), t;
|
|
41
|
-
}, G = () => {
|
|
42
|
-
const { detailedBudgets: n } = _();
|
|
43
|
-
return n.map((t) => {
|
|
44
|
-
const r = t.transaction_total;
|
|
45
|
-
return t.amount - r;
|
|
46
|
-
}).reduce((t, r) => t + r, 0);
|
|
47
|
-
}, I = (n, e, t, r) => {
|
|
48
|
-
const a = [];
|
|
49
|
-
for (const o of n) {
|
|
50
|
-
const s = B(e, o.category_guid);
|
|
51
|
-
if (!s) continue;
|
|
52
|
-
const u = s.totalAmount, i = y(o.amount, u), g = o.amount - u;
|
|
53
|
-
a.push({
|
|
54
|
-
...o,
|
|
55
|
-
budgetColors: b(i, r),
|
|
56
|
-
category: s,
|
|
57
|
-
description: f(
|
|
58
|
-
g < 0 ? t.budget_remaining_over : t.budget_remaining_left,
|
|
59
|
-
l(Math.abs(g), "0,0")
|
|
60
|
-
),
|
|
61
|
-
percentage: i,
|
|
62
|
-
subBudgets: [],
|
|
63
|
-
transaction_total: u
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
for (const o of n) {
|
|
67
|
-
const s = T(e, o.category_guid);
|
|
68
|
-
if (!s) continue;
|
|
69
|
-
const u = s.currentAmount, i = a.find((C) => C.category_guid === s.parent_guid);
|
|
70
|
-
if (!i) continue;
|
|
71
|
-
const g = o.amount - u, c = y(o.amount, u);
|
|
72
|
-
i && i.subBudgets.push({
|
|
73
|
-
...o,
|
|
74
|
-
budgetColors: b(c, r),
|
|
75
|
-
category: s,
|
|
76
|
-
description: f(
|
|
77
|
-
g < 0 ? t.budget_remaining_over : t.budget_remaining_left,
|
|
78
|
-
l(Math.abs(g), "0,0")
|
|
79
|
-
),
|
|
80
|
-
percentage: c,
|
|
81
|
-
subBudgets: [],
|
|
82
|
-
transaction_total: u
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
return a;
|
|
86
|
-
}, m = (n, e) => n.find((t) => t.guid === e), S = (n, e, t) => {
|
|
87
|
-
const r = m(n, t);
|
|
88
|
-
if (r)
|
|
89
|
-
return m(r.subBudgets, e);
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
S as a,
|
|
93
|
-
I as b,
|
|
94
|
-
B as c,
|
|
95
|
-
T as d,
|
|
96
|
-
k as e,
|
|
97
|
-
m as f,
|
|
98
|
-
p as g,
|
|
99
|
-
w as i,
|
|
100
|
-
G as u
|
|
101
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { P as f, H2 as g, Text as c } from "@mxenabled/mxui";
|
|
3
|
-
import o from "@mui/material/Box";
|
|
4
|
-
import r from "@mui/material/Stack";
|
|
5
|
-
const m = ({
|
|
6
|
-
amount: t,
|
|
7
|
-
borderRadius: n = "2px",
|
|
8
|
-
completeColor: s = "success.main",
|
|
9
|
-
icon: d,
|
|
10
|
-
label: l,
|
|
11
|
-
leftLabel: a,
|
|
12
|
-
percentComplete: h = 0,
|
|
13
|
-
rightLabel: x,
|
|
14
|
-
sx: p
|
|
15
|
-
}) => /* @__PURE__ */ i(r, { sx: { p: 24, width: "100%", ...p }, children: /* @__PURE__ */ e(r, { className: "details-container", sx: { gap: 16 }, children: [
|
|
16
|
-
/* @__PURE__ */ e(r, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
17
|
-
/* @__PURE__ */ i(o, { children: d }),
|
|
18
|
-
/* @__PURE__ */ e(r, { children: [
|
|
19
|
-
/* @__PURE__ */ i(f, { variant: "body2", children: l }),
|
|
20
|
-
typeof t == "string" ? /* @__PURE__ */ i(g, { children: t }) : t
|
|
21
|
-
] })
|
|
22
|
-
] }),
|
|
23
|
-
/* @__PURE__ */ e(r, { sx: { gap: 4 }, children: [
|
|
24
|
-
/* @__PURE__ */ i(
|
|
25
|
-
r,
|
|
26
|
-
{
|
|
27
|
-
sx: {
|
|
28
|
-
bgcolor: "divider",
|
|
29
|
-
borderRadius: n,
|
|
30
|
-
flexDirection: "row",
|
|
31
|
-
height: 16,
|
|
32
|
-
width: "100%"
|
|
33
|
-
},
|
|
34
|
-
children: /* @__PURE__ */ i(
|
|
35
|
-
o,
|
|
36
|
-
{
|
|
37
|
-
sx: {
|
|
38
|
-
bgcolor: s,
|
|
39
|
-
borderRadius: n,
|
|
40
|
-
height: 16,
|
|
41
|
-
width: `${h}%`
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ e(r, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
48
|
-
/* @__PURE__ */ i(c, { variant: "body2", children: a }),
|
|
49
|
-
/* @__PURE__ */ i(c, { variant: "body2", children: x })
|
|
50
|
-
] })
|
|
51
|
-
] })
|
|
52
|
-
] }) }), S = m;
|
|
53
|
-
export {
|
|
54
|
-
S
|
|
55
|
-
};
|