@mx-cartographer/experiences 7.2.22-alpha.sms2 → 7.2.23-alpha.sms1
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 +8 -3
- package/dist/{AccountDetailsContent-C-TlAp1T.mjs → AccountDetailsContent-B6ZFRZ8l.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-BXnLseqP.mjs} +20 -18
- package/dist/{ManageIncome-CGYYCOFR.mjs → ManageIncome-CXeJPfjE.mjs} +1 -1
- package/dist/{RecurringSettings-BMcgNklx.mjs → RecurringSettings-D7476j-N.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-DneARj4W.mjs} +1 -1
- package/dist/TransactionApi-C4V0XJEk.mjs +86 -0
- package/dist/{TransactionDetails-D9ycDgYU.mjs → TransactionDetails-Cscyr17P.mjs} +433 -399
- package/dist/{TransactionStore-hfOsBbDt.mjs → TransactionStore-FeuQE_RH.mjs} +1 -1
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +3 -3
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +3 -3
- package/dist/common/stores/GlobalStore.d.ts +5 -2
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +16 -17
- package/dist/transactions/index.es.js +61 -62
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { F as T, A as e } from "./Fetch-87LIQbEA.mjs";
|
|
2
|
-
class u {
|
|
3
|
-
fetchInstance;
|
|
4
|
-
constructor(t, n, a) {
|
|
5
|
-
this.fetchInstance = new T(t, n, void 0, a);
|
|
6
|
-
}
|
|
7
|
-
addTag = async (t) => this.fetchInstance.post(e.TAGS, t).then((n) => n.tag);
|
|
8
|
-
addTagging = async (t) => this.fetchInstance.post(e.TAGGINGS, t).then((n) => n.tagging);
|
|
9
|
-
addTransaction = async (t) => this.fetchInstance.post(e.TRANSACTIONS, t).then((n) => n.transaction);
|
|
10
|
-
addTransactionRule = async (t) => this.fetchInstance.post(e.TRANSACTION_RULES, t).then((n) => n);
|
|
11
|
-
getTaggings = async () => this.fetchInstance.get(e.TAGGINGS).then((t) => t.map((n) => n.tagging));
|
|
12
|
-
getTags = async () => this.fetchInstance.get(e.TAGS).then((t) => t.map((n) => n.tag));
|
|
13
|
-
getTransactionRules = async () => this.fetchInstance.get(e.TRANSACTION_RULES).then((t) => t.transaction_rules);
|
|
14
|
-
getTransactionsByDateRange = async (t, n) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${n}`).then((a) => a.map((s) => s.transaction));
|
|
15
|
-
// DEPRECATED
|
|
16
|
-
getTransactionsByAccountsAndDateRange = async (t, n, a) => {
|
|
17
|
-
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
18
|
-
const s = t.reduce(
|
|
19
|
-
(o, c, r) => `${o}account_guids[]=${c}${r !== t.length - 1 ? "&" : ""}`,
|
|
20
|
-
""
|
|
21
|
-
);
|
|
22
|
-
return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${a}?${s}`).then((o) => o.map((c) => c.transaction));
|
|
23
|
-
};
|
|
24
|
-
// DEPRECATED
|
|
25
|
-
getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${e.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((n) => n.map((a) => a.transaction)));
|
|
26
|
-
// DEPRECATED
|
|
27
|
-
getTransactionsByCategoryAndDate = async (t, n, a) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
|
|
28
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}`
|
|
29
|
-
).then((s) => s.map((o) => o.transaction)));
|
|
30
|
-
// DEPRECATED
|
|
31
|
-
getTransactionsByCategoryDateAndAccounts = async (t, n, a, s) => {
|
|
32
|
-
console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
|
|
33
|
-
const o = s.reduce(
|
|
34
|
-
(c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
|
|
35
|
-
""
|
|
36
|
-
);
|
|
37
|
-
return this.fetchInstance.get(
|
|
38
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}?${o}`
|
|
39
|
-
).then((c) => c.map((r) => r.transaction));
|
|
40
|
-
};
|
|
41
|
-
// DEPRECATED
|
|
42
|
-
getTransactionsByCategoriesDateAndAccounts = async (t, n, a, s) => {
|
|
43
|
-
console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
|
|
44
|
-
const o = s.reduce(
|
|
45
|
-
(c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
|
|
46
|
-
""
|
|
47
|
-
);
|
|
48
|
-
return this.fetchInstance.get(
|
|
49
|
-
`${e.TRANSACTIONS}/by_category_guids/${t.join(
|
|
50
|
-
"+"
|
|
51
|
-
)}/by_date/${n}/${a}?${o}`
|
|
52
|
-
).then((c) => c.map((r) => r.transaction));
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* DEPRECATED
|
|
56
|
-
* Get all transactions by the top level category, between begin date and end date, and optionally
|
|
57
|
-
* filtered by accounts
|
|
58
|
-
* @param categoryGuid The top level category guid
|
|
59
|
-
* @param beginDate the start date
|
|
60
|
-
* @param endDate the end date
|
|
61
|
-
* @param accountGuids an optional list of account guids
|
|
62
|
-
*/
|
|
63
|
-
getTransactionsByTopLevelCategoryAndDate = async (t, n, a, s = []) => {
|
|
64
|
-
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
65
|
-
let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${n}/${a}`;
|
|
66
|
-
if (s.length > 0) {
|
|
67
|
-
const c = s.reduce(
|
|
68
|
-
(r, i, g) => `${r}account_guids[]=${i}${g !== s.length - 1 ? "&" : ""}`,
|
|
69
|
-
""
|
|
70
|
-
);
|
|
71
|
-
o += `?${c}`;
|
|
72
|
-
}
|
|
73
|
-
return this.fetchInstance.get(o).then((c) => c.map((r) => r.transaction));
|
|
74
|
-
};
|
|
75
|
-
removeTag = async (t) => this.fetchInstance.delete(`${e.TAGS}/${t}`).then((n) => n);
|
|
76
|
-
removeTagging = async (t) => this.fetchInstance.delete(`${e.TAGGINGS}/${t}`).then((n) => n);
|
|
77
|
-
removeTransaction = async (t) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${t}`).then((n) => n);
|
|
78
|
-
removeTransactionRule = async (t) => this.fetchInstance.delete(`${e.TRANSACTION_RULES}/${t}`);
|
|
79
|
-
removeTransactionSplit = async (t) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${t}/unsplit`).then((n) => n);
|
|
80
|
-
updateTransactionRule = async (t) => this.fetchInstance.put(`${e.TRANSACTION_RULES}/${t.guid}`, t).then((n) => n);
|
|
81
|
-
updateTag = async (t) => this.fetchInstance.put(`${e.TAGS}/${t.guid}`, t).then((n) => n.tag);
|
|
82
|
-
updateTransaction = async (t) => this.fetchInstance.put(`${e.TRANSACTIONS}/${t.guid}`, t).then((n) => n.transaction);
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
u as T
|
|
86
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import e from "react";
|
|
3
|
-
import u from "@mui/material/Box";
|
|
4
|
-
const x = (a = "polite") => {
|
|
5
|
-
const [s, o] = e.useState(""), [t, r] = e.useState(a), n = e.useCallback((c, i) => {
|
|
6
|
-
i && r(i), o(c);
|
|
7
|
-
}, []), p = e.useMemo(
|
|
8
|
-
() => /* @__PURE__ */ l(
|
|
9
|
-
u,
|
|
10
|
-
{
|
|
11
|
-
"aria-atomic": "true",
|
|
12
|
-
"aria-live": t,
|
|
13
|
-
role: t === "assertive" ? "alert" : "status",
|
|
14
|
-
sx: {
|
|
15
|
-
position: "absolute",
|
|
16
|
-
width: "1px",
|
|
17
|
-
height: "1px",
|
|
18
|
-
padding: 0,
|
|
19
|
-
margin: "-1px",
|
|
20
|
-
overflow: "hidden",
|
|
21
|
-
clip: "rect(0 0 0 0)",
|
|
22
|
-
clipPath: "inset(50%)",
|
|
23
|
-
whiteSpace: "nowrap",
|
|
24
|
-
border: 0
|
|
25
|
-
},
|
|
26
|
-
children: s
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
[s, t]
|
|
30
|
-
);
|
|
31
|
-
return { announce: n, ariaLive: p };
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
x as u
|
|
35
|
-
};
|