@mx-cartographer/experiences 7.0.63-alpha.mm0 → 7.0.63-alpha.mm1
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/cashflow/index.es.js +17 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -76,21 +76,21 @@ const V = () => {
|
|
|
76
76
|
setNextIncome: b,
|
|
77
77
|
setSelectedCashAccounts: C,
|
|
78
78
|
setUpcomingExpenses: S
|
|
79
|
-
} = V(), { isDataLoaded: N, nextIncomeRecurrence: h, upcomingExpenses:
|
|
79
|
+
} = V(), { isDataLoaded: N, nextIncomeRecurrence: h, upcomingExpenses: _ } = P();
|
|
80
80
|
f.useEffect(() => {
|
|
81
81
|
y(r);
|
|
82
82
|
}, [r]), f.useEffect(() => {
|
|
83
83
|
C(
|
|
84
|
-
r.filter((
|
|
84
|
+
r.filter((w) => c.includes(w.guid))
|
|
85
85
|
);
|
|
86
86
|
}, [r, g]), f.useEffect(() => {
|
|
87
|
-
h && b(h), S(
|
|
88
|
-
}, [h,
|
|
87
|
+
h && b(h), S(_);
|
|
88
|
+
}, [h, _]);
|
|
89
89
|
const D = f.useMemo(
|
|
90
|
-
() => r.filter((
|
|
91
|
-
[c,
|
|
90
|
+
() => r.filter((w) => c.includes(w.guid)).reduce((w, j) => w + (j?.balance || 0), 0),
|
|
91
|
+
[c, _]
|
|
92
92
|
), k = f.useMemo(
|
|
93
|
-
() => d.filter((
|
|
93
|
+
() => d.filter((w) => c.includes(w.accountGuid || "")).reduce((w, j) => w + j.amount, 0),
|
|
94
94
|
[c, d]
|
|
95
95
|
), K = f.useMemo(
|
|
96
96
|
() => D - k,
|
|
@@ -646,9 +646,9 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
646
646
|
() => r.filter(Re(p, g)),
|
|
647
647
|
[g, p, r]
|
|
648
648
|
), b = f.useMemo(
|
|
649
|
-
() => c.reduce((
|
|
649
|
+
() => c.reduce((_, D) => _ + (D?.balance || 0), 0),
|
|
650
650
|
[c]
|
|
651
|
-
), C = d.reduce((
|
|
651
|
+
), C = d.reduce((_, D) => _ + D.amount, 0), S = m.reduce((_, D) => _ + D.amount, 0), N = b - C + S, h = a < 725;
|
|
652
652
|
return /* @__PURE__ */ o(s, { sx: { mx: h ? 16 : 0, my: h ? 24 : 42 }, children: [
|
|
653
653
|
/* @__PURE__ */ o(
|
|
654
654
|
s,
|
|
@@ -819,7 +819,7 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
819
819
|
transform: rotate(360deg);
|
|
820
820
|
}
|
|
821
821
|
`, Wt = () => {
|
|
822
|
-
const { addRepeatingTransaction: a, repeatingTransactions: n } = P(), { cashflow: t, common: r } = L(), { completeOnboarding: p } = me(), { isDirty: g } = V(), { isMobile: c } = ue(), { isCopyLoaded: y, setDisplayedDate: l } = X(), { filter: i, setFilter: d, transactions: m } = He(), b = se(), [C, S] = J(!0), [N, h] = f.useState(ht.EveryMonth), [
|
|
822
|
+
const { addRepeatingTransaction: a, repeatingTransactions: n } = P(), { cashflow: t, common: r } = L(), { completeOnboarding: p } = me(), { isDirty: g } = V(), { isMobile: c } = ue(), { isCopyLoaded: y, setDisplayedDate: l } = X(), { filter: i, setFilter: d, transactions: m } = He(), b = se(), [C, S] = J(!0), [N, h] = f.useState(ht.EveryMonth), [_, D] = f.useState(1), [k, K] = f.useState(15), [w, j] = J(!1), [q, ae] = J(1), [A, W] = J([]), [fe, le] = J(""), H = f.useMemo(
|
|
823
823
|
() => m.find((x) => x.guid === fe),
|
|
824
824
|
[fe, m]
|
|
825
825
|
), ze = !!n.filter(
|
|
@@ -930,7 +930,7 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
930
930
|
ct,
|
|
931
931
|
{
|
|
932
932
|
bgcolor: "background.paper",
|
|
933
|
-
firstDay:
|
|
933
|
+
firstDay: _,
|
|
934
934
|
frequency: N,
|
|
935
935
|
onFirstDayChange: D,
|
|
936
936
|
onFrequencyChange: h,
|
|
@@ -972,9 +972,9 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
972
972
|
/* @__PURE__ */ e(
|
|
973
973
|
M,
|
|
974
974
|
{
|
|
975
|
-
"aria-disabled": A.length < 1 ||
|
|
975
|
+
"aria-disabled": A.length < 1 || w,
|
|
976
976
|
onClick: Be,
|
|
977
|
-
startIcon:
|
|
977
|
+
startIcon: w ? /* @__PURE__ */ e(
|
|
978
978
|
G,
|
|
979
979
|
{
|
|
980
980
|
name: "progress_activity",
|
|
@@ -1002,7 +1002,7 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
1002
1002
|
setSelectedAccounts: p,
|
|
1003
1003
|
shouldDisableNextDate: g,
|
|
1004
1004
|
shouldDisablePrevDate: c
|
|
1005
|
-
} = X(), { onEvent: y } = Oe(), { clientConfig: l } = Qe(), { visibleCashAccounts: i } = Ne(), { setFilter: d } = He(), { userProfile: m } = ke(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: S, setDateRange: N } = P(), { cashflow: h, recurring:
|
|
1005
|
+
} = X(), { onEvent: y } = Oe(), { clientConfig: l } = Qe(), { visibleCashAccounts: i } = Ne(), { setFilter: d } = He(), { userProfile: m } = ke(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: S, setDateRange: N } = P(), { cashflow: h, recurring: _ } = L(), { isCopyLoaded: D, isInitialized: k } = X(), w = l?.master?.deep_link_params?.view === "manage_income", [j, q] = f.useState(w);
|
|
1006
1006
|
return f.useEffect(() => {
|
|
1007
1007
|
k && (N(b), S().finally());
|
|
1008
1008
|
}, [k]), f.useEffect(() => {
|
|
@@ -1021,7 +1021,7 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
1021
1021
|
accountOptions: i,
|
|
1022
1022
|
actions: [
|
|
1023
1023
|
{
|
|
1024
|
-
label:
|
|
1024
|
+
label: _.action_title,
|
|
1025
1025
|
iconName: "credit_card_gear",
|
|
1026
1026
|
onClick: () => {
|
|
1027
1027
|
q(!0), y(Ae.CASH_FLOW_CLICK_SETTINGS);
|
|
@@ -1051,8 +1051,8 @@ const wt = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
1051
1051
|
isOpen: j,
|
|
1052
1052
|
onClose: () => q(!1),
|
|
1053
1053
|
shouldShowHeaderBorders: !1,
|
|
1054
|
-
title:
|
|
1055
|
-
children: /* @__PURE__ */ e(Je, { defaultSelectedTab:
|
|
1054
|
+
title: _.action_title,
|
|
1055
|
+
children: /* @__PURE__ */ e(Je, { defaultSelectedTab: w ? 1 : 0 })
|
|
1056
1056
|
}
|
|
1057
1057
|
)
|
|
1058
1058
|
]
|