@mx-cartographer/experiences 3.10.1-alpha.mm1 → 3.10.1-alpha.mm10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +2590 -2677
- package/dist/index.es.js.map +1 -1
- package/dist/trends/utils/index.d.ts +25 -23
- package/package.json +1 -1
@@ -5,28 +5,6 @@ type DateRange = {
|
|
5
5
|
start: Date;
|
6
6
|
end: Date;
|
7
7
|
};
|
8
|
-
export declare const isIncome: (totals: MonthlyCategoryTotals) => boolean;
|
9
|
-
export declare const isPayment: (totals: MonthlyCategoryTotals) => boolean;
|
10
|
-
export declare const isTransfer: (totals: MonthlyCategoryTotals) => boolean;
|
11
|
-
export declare const isSpend: (totals: MonthlyCategoryTotals) => boolean;
|
12
|
-
export declare const getMonthlyTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
13
|
-
x: string;
|
14
|
-
y: number;
|
15
|
-
}[];
|
16
|
-
export declare const getIncomeTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
17
|
-
y: number;
|
18
|
-
x: string;
|
19
|
-
}[];
|
20
|
-
export declare const getPaymentTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
21
|
-
y: number;
|
22
|
-
x: string;
|
23
|
-
}[];
|
24
|
-
export declare const getSpendingTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
25
|
-
x: string;
|
26
|
-
y: number;
|
27
|
-
}[];
|
28
|
-
export declare const getTopLevelCategoryTotals: (totals: MonthlyCategoryTotals[]) => MonthlyCategoryTotals[];
|
29
|
-
export declare const amountComparator: GridComparatorFn<string | number>;
|
30
8
|
type DataPoint = {
|
31
9
|
x: Date;
|
32
10
|
y: number;
|
@@ -45,13 +23,37 @@ type GroupedCategoryTotalData = {
|
|
45
23
|
[category: string]: CategoryTotalData[];
|
46
24
|
};
|
47
25
|
};
|
48
|
-
interface StackedLineChartData {
|
26
|
+
export interface StackedLineChartData {
|
49
27
|
top_level_category_guid: string;
|
50
28
|
category_guid: string;
|
51
29
|
category_name: string;
|
52
30
|
category_color: string;
|
53
31
|
dataset: Dataset;
|
54
32
|
}
|
33
|
+
type TotalsData = MonthlyCategoryTotals | StackedLineChartData;
|
34
|
+
export declare const isIncome: (totals: TotalsData) => boolean;
|
35
|
+
export declare const isExpense: (totals: TotalsData) => boolean;
|
36
|
+
export declare const isPayment: (totals: TotalsData) => boolean;
|
37
|
+
export declare const isTransfer: (totals: TotalsData) => boolean;
|
38
|
+
export declare const isSpend: (totals: TotalsData) => boolean;
|
39
|
+
export declare const getMonthlyTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
40
|
+
x: string;
|
41
|
+
y: number;
|
42
|
+
}[];
|
43
|
+
export declare const getIncomeTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
44
|
+
y: number;
|
45
|
+
x: string;
|
46
|
+
}[];
|
47
|
+
export declare const getPaymentTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
48
|
+
y: number;
|
49
|
+
x: string;
|
50
|
+
}[];
|
51
|
+
export declare const getSpendingTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
52
|
+
x: string;
|
53
|
+
y: number;
|
54
|
+
}[];
|
55
|
+
export declare const getTopLevelCategoryTotals: (totals: (MonthlyCategoryTotals | StackedLineChartData)[]) => (MonthlyCategoryTotals | StackedLineChartData)[];
|
56
|
+
export declare const amountComparator: GridComparatorFn<string | number>;
|
55
57
|
export declare const createGroupedCategoryTotals: (totals: MonthlyCategoryTotals[]) => GroupedCategoryTotalData;
|
56
58
|
export declare const getStackedLineChartData: (groupedTotals: GroupedCategoryTotalData, datasetLength: number) => StackedLineChartData[];
|
57
59
|
export {};
|