@mx-cartographer/experiences 6.23.0 → 6.24.0
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 +6 -2
- package/dist/common/types/localization/RecurringCopy.d.ts +3 -0
- package/dist/index.es.js +3875 -3824
- package/dist/index.es.js.map +1 -1
- package/dist/recurringtransactions/components/RecurringStatus.d.ts +5 -4
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +19 -9
- package/dist/recurringtransactions/util/RecurringTransactions.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
interface RecurringStatusProps {
|
|
2
|
-
title: string;
|
|
3
2
|
expected: number;
|
|
4
|
-
|
|
3
|
+
isExpense?: boolean;
|
|
5
4
|
missed?: number;
|
|
5
|
+
paid: number;
|
|
6
|
+
title: string;
|
|
6
7
|
total: number;
|
|
7
|
-
|
|
8
|
+
upcoming: number;
|
|
8
9
|
}
|
|
9
|
-
export declare const RecurringStatus: (({
|
|
10
|
+
export declare const RecurringStatus: (({ expected, isExpense, missed, paid, title, total, upcoming }: RecurringStatusProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
11
|
displayName: string;
|
|
11
12
|
};
|
|
12
13
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Recurrence, RepeatingTransaction, Transaction, GlobalStore } from '../../common';
|
|
1
|
+
import { Recurrence, RepeatingTransaction, Transaction, GlobalStore, DateRange } from '../../common';
|
|
2
2
|
import { RepeatingTransactionsApi } from '../api/RepeatingTransactionsApi';
|
|
3
3
|
export declare class RecurringTransactionsStore {
|
|
4
4
|
globalStore: GlobalStore;
|
|
@@ -6,6 +6,7 @@ export declare class RecurringTransactionsStore {
|
|
|
6
6
|
transactions: Transaction[];
|
|
7
7
|
repeatingTransactions: RepeatingTransaction[];
|
|
8
8
|
selectedDay: Date | undefined;
|
|
9
|
+
dateRange: DateRange;
|
|
9
10
|
isDataLoaded: boolean;
|
|
10
11
|
constructor(globalStore: GlobalStore);
|
|
11
12
|
/**
|
|
@@ -13,12 +14,12 @@ export declare class RecurringTransactionsStore {
|
|
|
13
14
|
*/
|
|
14
15
|
get recurrences(): Recurrence[];
|
|
15
16
|
/**
|
|
16
|
-
* Returns all recurrences that have
|
|
17
|
+
* Returns all recurrences that have occurred in the past, including those that are paid or missed
|
|
17
18
|
*/
|
|
18
|
-
get
|
|
19
|
+
get pastRecurrences(): Recurrence[];
|
|
19
20
|
/**
|
|
20
|
-
* Returns all recurrences that are expected to occur
|
|
21
|
-
*
|
|
21
|
+
* Returns all recurrences that are expected to occur through the end of the month
|
|
22
|
+
* or should have occurred in the last 3 days.
|
|
22
23
|
*/
|
|
23
24
|
get upcomingRecurrences(): Recurrence[];
|
|
24
25
|
/**
|
|
@@ -37,10 +38,6 @@ export declare class RecurringTransactionsStore {
|
|
|
37
38
|
* Returns the upcoming income recurrences.
|
|
38
39
|
*/
|
|
39
40
|
get upcomingIncome(): Recurrence[];
|
|
40
|
-
/**
|
|
41
|
-
* Calculates the total projected income for the next 30 days.
|
|
42
|
-
*/
|
|
43
|
-
get projectedIncome(): number;
|
|
44
41
|
get nextIncomeRecurrence(): Recurrence | undefined;
|
|
45
42
|
/**
|
|
46
43
|
* Returns the expense recurrences for the current month.
|
|
@@ -62,6 +59,10 @@ export declare class RecurringTransactionsStore {
|
|
|
62
59
|
* Calculates the total amount of all missed expenses for the current month.
|
|
63
60
|
*/
|
|
64
61
|
get missedExpenseTotal(): number;
|
|
62
|
+
/**
|
|
63
|
+
* Calculates the total amount of all upcoming expenses for the current month.
|
|
64
|
+
*/
|
|
65
|
+
get upcomingExpenseTotal(): number;
|
|
65
66
|
/**
|
|
66
67
|
* Calculates the total amount of all income for the current month.
|
|
67
68
|
*/
|
|
@@ -70,10 +71,19 @@ export declare class RecurringTransactionsStore {
|
|
|
70
71
|
* Calculates the total amount of all paid income for the current month.
|
|
71
72
|
*/
|
|
72
73
|
get paidIncomeTotal(): number;
|
|
74
|
+
/**
|
|
75
|
+
* Calculates the total amount of all upcoming income for the current month.
|
|
76
|
+
*/
|
|
77
|
+
get upcomingIncomeTotal(): number;
|
|
73
78
|
/**
|
|
74
79
|
* Get the recurrences for the currently selected day.
|
|
75
80
|
*/
|
|
76
81
|
get selectedDayRecurrences(): Recurrence[] | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Set the date range for filtering recurrences.
|
|
84
|
+
* @param dateRange - The date range to set.
|
|
85
|
+
*/
|
|
86
|
+
setDateRange: (dateRange: DateRange) => DateRange;
|
|
77
87
|
/**
|
|
78
88
|
* Set the currently selected day.
|
|
79
89
|
* @param day - The day to select.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Account, Recurrence, RecurringCopy, RepeatingTransaction, Transaction, Frequency } from '../../common';
|
|
1
|
+
import { Account, DateRange, Recurrence, RecurringCopy, RepeatingTransaction, Transaction, Frequency } from '../../common';
|
|
2
2
|
export type GroupedRecurrence = {
|
|
3
3
|
recurrences: Recurrence[];
|
|
4
4
|
id: string;
|
|
5
5
|
date: Date;
|
|
6
6
|
};
|
|
7
7
|
export declare const buildInstitutionName: (account?: Account) => string;
|
|
8
|
-
export declare const buildAllRecurrences: (repeatingTransactions: RepeatingTransaction[]) => Recurrence[];
|
|
8
|
+
export declare const buildAllRecurrences: (repeatingTransactions: RepeatingTransaction[], dateRange: DateRange) => Recurrence[];
|
|
9
9
|
export declare const augmentRepeatingTransactions: (accounts: Account[], repeatingTransactions: RepeatingTransaction[], transactions: Transaction[]) => RepeatingTransaction[];
|
|
10
10
|
export declare const groupRecurrencesByDate: (recurrences: Recurrence[]) => GroupedRecurrence[];
|
|
11
11
|
export declare const getFrequencyLabel: (copy: RecurringCopy, repeatingTransaction: RepeatingTransaction, showOrdinal: boolean) => string;
|