@mx-cartographer/experiences 7.2.15-alpha.sms17 → 7.2.15-alpha.sms19
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 h } from "date-fns/fromUnixTime";
|
|
11
|
+
import { getUnixTime as u } 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 >= u(c.start) && i.date <= u(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 = h(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,15 +481,7 @@ 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(() =>
|
|
485
|
-
const a = this.transactions, e = this.associatedBeats, c = this.taggings, _ = this.tags;
|
|
486
|
-
return this.emitChange(), {
|
|
487
|
-
transactions: a,
|
|
488
|
-
associatedBeats: e,
|
|
489
|
-
taggings: c,
|
|
490
|
-
tags: _
|
|
491
|
-
};
|
|
492
|
-
});
|
|
484
|
+
), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this), B(() => this.transactions);
|
|
493
485
|
}
|
|
494
486
|
loadTransactionData = async ({
|
|
495
487
|
associatedBeats: t,
|
|
@@ -588,7 +580,7 @@ class yt {
|
|
|
588
580
|
loadTransactions = async (t = this.cachedStartDate, a = D(), e) => {
|
|
589
581
|
this.setIsLoading(!0), this.rawTransactions = [];
|
|
590
582
|
try {
|
|
591
|
-
const c = e ?? await this.api.getTransactionsByDateRange(
|
|
583
|
+
const c = e ?? await this.api.getTransactionsByDateRange(u(t), u(a));
|
|
592
584
|
d(() => {
|
|
593
585
|
this.rawTransactions = c;
|
|
594
586
|
});
|
|
@@ -601,7 +593,7 @@ class yt {
|
|
|
601
593
|
loadTransactionsByDateRange = async (t, a) => {
|
|
602
594
|
console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
|
|
603
595
|
...this.filter,
|
|
604
|
-
dateRange: { start:
|
|
596
|
+
dateRange: { start: h(a), end: h(t) }
|
|
605
597
|
});
|
|
606
598
|
};
|
|
607
599
|
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-nPlvBMgL.mjs";
|
|
22
|
+
import { S as Js } from "../TransactionStore-nPlvBMgL.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-nPlvBMgL.mjs";
|
|
7
|
+
import { T as Ea } from "../TransactionStore-nPlvBMgL.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";
|