@mx-cartographer/experiences 3.5.0 → 3.6.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 +7 -0
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/CurrencyText.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/StackedLineChart.d.ts +3 -3
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -0
- package/dist/common/components/charts/stackedlinechart/CustomLegend.d.ts +1 -0
- package/dist/index.es.js +4620 -4351
- package/dist/index.es.js.map +1 -1
- package/dist/trends/TrendsFullWidget.d.ts +5 -0
- package/dist/trends/components/TrendsTable.d.ts +10 -0
- package/dist/trends/components/trendstable/AmountCell.d.ts +3 -0
- package/dist/trends/components/trendstable/CategoryCell.d.ts +3 -0
- package/dist/trends/components/trendstable/HeaderCell.d.ts +3 -0
- package/dist/trends/index.d.ts +1 -0
- package/dist/trends/utils/index.d.ts +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MonthlyCategoryTotals } from '../../common';
|
|
3
|
+
|
|
4
|
+
interface TrendsTableProps {
|
|
5
|
+
height?: number | string;
|
|
6
|
+
monthlyCategoryTotals: MonthlyCategoryTotals[];
|
|
7
|
+
sx?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const TrendsTable: React.FC<TrendsTableProps>;
|
|
10
|
+
export default TrendsTable;
|
package/dist/trends/index.d.ts
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GridComparatorFn } from '@mui/x-data-grid-pro';
|
|
2
|
+
import { MonthlyCategoryTotals } from '../../common';
|
|
3
|
+
|
|
4
|
+
type DateRange = {
|
|
5
|
+
start: Date;
|
|
6
|
+
end: Date;
|
|
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 getMonthlyTotalsDataset: (totals: MonthlyCategoryTotals[]) => {
|
|
13
|
+
x: string;
|
|
14
|
+
y: number;
|
|
15
|
+
}[][];
|
|
16
|
+
export declare const getMonthlyTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
17
|
+
x: string;
|
|
18
|
+
y: number;
|
|
19
|
+
}[];
|
|
20
|
+
export declare const getIncomeTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
21
|
+
y: number;
|
|
22
|
+
x: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const getPaymentTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
25
|
+
y: number;
|
|
26
|
+
x: string;
|
|
27
|
+
}[];
|
|
28
|
+
export declare const getSpendingTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
29
|
+
x: string;
|
|
30
|
+
y: number;
|
|
31
|
+
}[];
|
|
32
|
+
export declare const getTopLevelCategoryTotals: (totals: MonthlyCategoryTotals[]) => MonthlyCategoryTotals[];
|
|
33
|
+
export declare const amountComparator: GridComparatorFn<string | number>;
|
|
34
|
+
export {};
|