@mx-cartographer/experiences 7.2.15-alpha.sms19 → 7.2.15-alpha.sms20
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.
|
@@ -7,8 +7,8 @@ import v from "@mui/material/Tooltip";
|
|
|
7
7
|
import { makeAutoObservable as y, autorun as B, runInAction as d } from "mobx";
|
|
8
8
|
import { endOfToday as D } from "date-fns/endOfToday";
|
|
9
9
|
import { formatISO as Y } from "date-fns/formatISO";
|
|
10
|
-
import { fromUnixTime as
|
|
11
|
-
import { getUnixTime as
|
|
10
|
+
import { fromUnixTime as u } from "date-fns/fromUnixTime";
|
|
11
|
+
import { getUnixTime as h } from "date-fns/getUnixTime";
|
|
12
12
|
import { isBefore as F } from "date-fns/isBefore";
|
|
13
13
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
14
14
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
@@ -372,14 +372,14 @@ const Z = ({
|
|
|
372
372
|
searchTerm: s = "",
|
|
373
373
|
showSplits: A = !1
|
|
374
374
|
} = l;
|
|
375
|
-
return a.filter((i) => A ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((N) => N === i.account_guid)).filter((i) => i.date >=
|
|
375
|
+
return a.filter((i) => A ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((N) => N === i.account_guid)).filter((i) => i.date >= h(c.start) && i.date <= h(c.end)).filter(_).filter((i) => {
|
|
376
376
|
if (s === Q && i.has_been_split)
|
|
377
377
|
return !1;
|
|
378
378
|
if (/^spl/i.test(s) && (i.has_been_split || i.parent_guid))
|
|
379
379
|
return !0;
|
|
380
380
|
const I = i.tags.some(
|
|
381
381
|
(M) => S(s, t.find((H) => H.guid === M)?.name)
|
|
382
|
-
), E =
|
|
382
|
+
), E = u(i.date);
|
|
383
383
|
return S(s, i.payee) || S(s, i.feed_description) || S(s, i.category) || S(s, g(E, O.MONTH)) || S(s, g(E, O.DAY)) || S(s, g(E, O.FULL_MONTH_DAY)) || S(s, g(E, O.MONTH_DAY_YEAR)) || S(s, $(E, X)) || S(s, i.account) || S(s, `${i.amount}`) || S(s, i.memo) || I;
|
|
384
384
|
});
|
|
385
385
|
}, et = (l, t, a) => [...l].sort((e, c) => {
|
|
@@ -481,7 +481,10 @@ class yt {
|
|
|
481
481
|
t.endpoint,
|
|
482
482
|
t.sessionToken,
|
|
483
483
|
t.onError
|
|
484
|
-
), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this), B(() =>
|
|
484
|
+
), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this), B(() => {
|
|
485
|
+
const a = this.transactions;
|
|
486
|
+
return this.emitChange(), a;
|
|
487
|
+
});
|
|
485
488
|
}
|
|
486
489
|
loadTransactionData = async ({
|
|
487
490
|
associatedBeats: t,
|
|
@@ -580,7 +583,7 @@ class yt {
|
|
|
580
583
|
loadTransactions = async (t = this.cachedStartDate, a = D(), e) => {
|
|
581
584
|
this.setIsLoading(!0), this.rawTransactions = [];
|
|
582
585
|
try {
|
|
583
|
-
const c = e ?? await this.api.getTransactionsByDateRange(
|
|
586
|
+
const c = e ?? await this.api.getTransactionsByDateRange(h(t), h(a));
|
|
584
587
|
d(() => {
|
|
585
588
|
this.rawTransactions = c;
|
|
586
589
|
});
|
|
@@ -593,7 +596,7 @@ class yt {
|
|
|
593
596
|
loadTransactionsByDateRange = async (t, a) => {
|
|
594
597
|
console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
|
|
595
598
|
...this.filter,
|
|
596
|
-
dateRange: { start:
|
|
599
|
+
dateRange: { start: u(a), end: u(t) }
|
|
597
600
|
});
|
|
598
601
|
};
|
|
599
602
|
modifyTransactionByAccountGuid = (t, a) => {
|
package/dist/common/index.es.js
CHANGED
|
@@ -18,8 +18,8 @@ import { C as Ys } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
|
18
18
|
import { L as zs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as Js } from "../TransactionStore-
|
|
21
|
+
import { T as at } from "../TransactionStore-D3UCn4oY.mjs";
|
|
22
|
+
import { S as Js } from "../TransactionStore-D3UCn4oY.mjs";
|
|
23
23
|
import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
25
|
import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
@@ -3,8 +3,8 @@ import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "..
|
|
|
3
3
|
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-dRfjqJ3s.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as Da } from "../User-BQUxBeZV.mjs";
|
|
6
|
-
import { S as ae, D as Fe } from "../TransactionStore-
|
|
7
|
-
import { T as Ea } from "../TransactionStore-
|
|
6
|
+
import { S as ae, D as Fe } from "../TransactionStore-D3UCn4oY.mjs";
|
|
7
|
+
import { T as Ea } from "../TransactionStore-D3UCn4oY.mjs";
|
|
8
8
|
import { e as ze } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
9
9
|
import { E as Ma } from "../ExportCsvAction-sX8Rg4Ov.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|