@mx-cartographer/experiences 7.0.57 → 7.0.58-alpha.al1
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/{RecurringSettings-qv7DNYac.mjs → RecurringSettings-B486z99o.mjs} +29 -29
- package/dist/cashflow/components/CashflowWidgetContent.d.ts +3 -5
- package/dist/cashflow/index.es.js +469 -480
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/localization/CashflowCopy.d.ts +2 -0
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +4 -4
- package/dist/recurringtransactions/components/RecurringSettingsDrawer.d.ts +9 -0
- package/dist/recurringtransactions/components/shared/RecurringSettings.d.ts +5 -1
- package/dist/recurringtransactions/index.d.ts +1 -0
- package/dist/recurringtransactions/index.es.js +221 -206
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as e, Fragment as x, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { observer as h } from "mobx-react-lite";
|
|
4
|
+
import c from "@mui/material/Box";
|
|
5
|
+
import p from "@mui/material/Tab";
|
|
6
6
|
import b from "@mui/material/Tabs";
|
|
7
|
-
import
|
|
7
|
+
import d from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
10
|
import { R as C, A as S, a as E, M as v } from "./ManageIncome-BX7dzGF8.mjs";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as _, j as A, g as f } from "./hooks-CE2TKk4a.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-DTUx9VN1.mjs";
|
|
13
|
-
import { A as
|
|
14
|
-
const I =
|
|
15
|
-
const { recurring:
|
|
16
|
-
o(
|
|
13
|
+
import { A as m } from "./WidgetContainer-B8MRJ5Y1.mjs";
|
|
14
|
+
const I = h(() => {
|
|
15
|
+
const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
|
|
16
|
+
o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
17
17
|
repeating_transaction_guid: r.guid
|
|
18
18
|
});
|
|
19
|
-
},
|
|
20
|
-
o(
|
|
21
|
-
}, i =
|
|
19
|
+
}, a = () => {
|
|
20
|
+
o(m.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
|
|
21
|
+
}, i = n.filter(
|
|
22
22
|
(r) => r.repeating_transaction_type !== y.Income && (r.transactions.length > 0 || r.recurrence_type === N.EveryYear)
|
|
23
23
|
);
|
|
24
24
|
return /* @__PURE__ */ e(x, { children: i.length !== 0 ? /* @__PURE__ */ t(
|
|
@@ -29,19 +29,19 @@ const I = u(() => {
|
|
|
29
29
|
maxHeight: "calc(100vh - 109px)"
|
|
30
30
|
},
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ e(C, { onClick:
|
|
32
|
+
/* @__PURE__ */ e(c, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(R, { sx: { bgcolor: "background.paper" }, children: i.map((r, s) => /* @__PURE__ */ t(u.Fragment, { children: [
|
|
33
|
+
/* @__PURE__ */ e(C, { onClick: l, repeatingTransaction: r }),
|
|
34
34
|
/* @__PURE__ */ e(
|
|
35
|
-
|
|
35
|
+
d,
|
|
36
36
|
{
|
|
37
|
-
variant:
|
|
37
|
+
variant: s < i.length - 1 ? "inset" : "fullWidth"
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] }, r.guid)) }) }),
|
|
41
|
-
/* @__PURE__ */ t(
|
|
42
|
-
/* @__PURE__ */ e(
|
|
41
|
+
/* @__PURE__ */ t(c, { children: [
|
|
42
|
+
/* @__PURE__ */ e(d, {}),
|
|
43
43
|
/* @__PURE__ */ e(
|
|
44
|
-
|
|
44
|
+
c,
|
|
45
45
|
{
|
|
46
46
|
sx: {
|
|
47
47
|
alignContent: "center",
|
|
@@ -51,30 +51,30 @@ const I = u(() => {
|
|
|
51
51
|
py: 12,
|
|
52
52
|
textAlign: "right"
|
|
53
53
|
},
|
|
54
|
-
children: /* @__PURE__ */ e(S, { label:
|
|
54
|
+
children: /* @__PURE__ */ e(S, { label: g.add_expense, onAddRecurringTransaction: a })
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
] })
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
) : /* @__PURE__ */ e(E, { zeroStateFor: "expenses" }) });
|
|
61
|
-
}), X =
|
|
62
|
-
const [n,
|
|
63
|
-
return /* @__PURE__ */ t(
|
|
61
|
+
}), X = h(({ defaultSelectedTab: g = 0 }) => {
|
|
62
|
+
const [n, o] = u.useState(g), { onEvent: l } = f(), { recurring: a } = _();
|
|
63
|
+
return /* @__PURE__ */ t(c, { bgcolor: "background.default", height: "100%", children: [
|
|
64
64
|
/* @__PURE__ */ t(
|
|
65
65
|
b,
|
|
66
66
|
{
|
|
67
|
-
onChange: (
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
onChange: (r, s) => {
|
|
68
|
+
o(s), l(
|
|
69
|
+
s === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
|
|
70
70
|
);
|
|
71
71
|
},
|
|
72
72
|
sx: { bgcolor: "background.paper", mb: 0 },
|
|
73
73
|
value: n,
|
|
74
74
|
variant: "fullWidth",
|
|
75
75
|
children: [
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
-
/* @__PURE__ */ e(
|
|
76
|
+
/* @__PURE__ */ e(p, { label: a.expenses }),
|
|
77
|
+
/* @__PURE__ */ e(p, { label: a.income })
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
),
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const _default: React.FunctionComponent<CashflowWidgetContentProps>;
|
|
1
|
+
declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
2
|
+
displayName: string;
|
|
3
|
+
};
|
|
6
4
|
export default _default;
|