@mx-cartographer/experiences 6.24.15-alpha.al0 → 6.24.15-alpha.al2

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.
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
- import { CategoryListItem, Transaction } from '../../common';
2
+ import { CategoryListItem } from '../../common';
3
3
  interface CategoriesListProps {
4
4
  onListItemClick: (data: CategoryListItem) => void;
5
- transactions: Transaction[];
6
5
  }
7
6
  declare const CategoriesList: React.FC<CategoriesListProps>;
8
7
  export default CategoriesList;
@@ -1,17 +1,13 @@
1
- import { CategoryListItem, DateRange, DetailedCategory, GlobalStore } from '../../common';
1
+ import { CategoryListItem, DateRange, GlobalStore, MonthlyCategoryTotals, Transaction } from '../../common';
2
2
  export declare class TrendsStore {
3
3
  globalStore: GlobalStore;
4
+ categoriesList: CategoryListItem[];
4
5
  selectedCategoryData: CategoryListItem | null;
5
6
  selectedDateRange: DateRange;
6
7
  constructor(globalStore: GlobalStore);
7
8
  setSelectedCategoryData: (category: CategoryListItem | null) => void;
8
9
  setSelectedDateRange: (dateRange: DateRange) => void;
9
- sortCategoriesList: () => {
10
- guid: string;
11
- name: string;
12
- amount: number;
13
- }[];
14
- get detailedCategories(): DetailedCategory[];
10
+ setCategoriesList: (monthlyCategoryTotals: MonthlyCategoryTotals[], transactions: Transaction[]) => void;
15
11
  get selectedDateRangeMonthRange(): string;
16
12
  get sortedCategoriesList(): CategoryListItem[];
17
13
  get visibleListItems(): CategoryListItem[];
@@ -1,5 +1,5 @@
1
1
  import { GridComparatorFn } from '@mui/x-data-grid-pro';
2
- import { MonthlyCategoryTotals } from '../../common';
2
+ import { CategoryListItem, MonthlyCategoryTotals, Transaction } from '../../common';
3
3
  type DataPoint = {
4
4
  x: Date;
5
5
  y: number;
@@ -14,4 +14,5 @@ export interface StackedLineChartData {
14
14
  }
15
15
  export declare const getStackedLineChartData: (totals: MonthlyCategoryTotals[], start: Date, end: Date) => StackedLineChartData[];
16
16
  export declare const amountComparator: GridComparatorFn<string | number>;
17
+ export declare const buildCategoriesList: (monthlyCategoryTotals: MonthlyCategoryTotals[], transactions: Transaction[]) => CategoryListItem[];
17
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.24.15-alpha.al0",
3
+ "version": "6.24.15-alpha.al2",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",