@mx-cartographer/experiences 6.25.3-alpha.al3 → 6.25.4

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,7 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedCategoryWithTransactions } from '../../common';
2
+ import { CategoryListItem, Transaction } from '../../common';
3
3
  interface CategoriesListProps {
4
- onCategoryClick: (data: DetailedCategoryWithTransactions) => void;
4
+ onListItemClick: (data: CategoryListItem) => void;
5
+ transactions: Transaction[];
5
6
  }
6
7
  declare const CategoriesList: React.FC<CategoriesListProps>;
7
8
  export default CategoriesList;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedCategoryWithTransactions } from '../../common';
3
- interface CategoriesListItemProps extends DetailedCategoryWithTransactions {
2
+ import { CategoryListItem } from '../../common';
3
+ interface CategoriesListItemProps extends CategoryListItem {
4
4
  onClick?: () => void;
5
5
  }
6
6
  declare const CategoriesListItem: React.FC<CategoriesListItemProps>;
@@ -1,7 +1,4 @@
1
- interface CategoryDetailChartProps {
2
- chartLabel: string;
3
- }
4
- declare const CategoryDetailChart: (({ chartLabel }: CategoryDetailChartProps) => import("react/jsx-runtime").JSX.Element) & {
1
+ declare const CategoryDetailChart: (() => import("react/jsx-runtime").JSX.Element) & {
5
2
  displayName: string;
6
3
  };
7
4
  export default CategoryDetailChart;
@@ -1,17 +1,21 @@
1
- import { DateRange, DetailedCategoryWithTransactions, GlobalStore, Transaction } from '../../common';
1
+ import { CategoryListItem, DateRange, DetailedCategory, GlobalStore } from '../../common';
2
2
  export declare class TrendsStore {
3
3
  globalStore: GlobalStore;
4
- selectedCategoryData: DetailedCategoryWithTransactions | null;
4
+ selectedCategoryData: CategoryListItem | null;
5
5
  selectedDateRange: DateRange;
6
- detailedCategoriesWithTransactions: DetailedCategoryWithTransactions[];
7
6
  constructor(globalStore: GlobalStore);
8
- setSelectedCategoryData: (category: DetailedCategoryWithTransactions | null) => void;
7
+ setSelectedCategoryData: (category: CategoryListItem | null) => void;
9
8
  setSelectedDateRange: (dateRange: DateRange) => void;
10
- setDetailedCategoriesWithTransactions: (transactions: Transaction[]) => void;
9
+ sortCategoriesList: () => {
10
+ guid: string;
11
+ name: string;
12
+ amount: number;
13
+ }[];
14
+ get detailedCategories(): DetailedCategory[];
11
15
  get selectedDateRangeMonthRange(): string;
12
- get sortedDetailedCategories(): DetailedCategoryWithTransactions[];
13
- get visibleCategories(): DetailedCategoryWithTransactions[];
14
- get collapsedCategories(): DetailedCategoryWithTransactions[];
16
+ get sortedCategoriesList(): CategoryListItem[];
17
+ get visibleListItems(): CategoryListItem[];
18
+ get collapsedListItems(): CategoryListItem[];
15
19
  get categoryDetailsChartData(): Array<Array<{
16
20
  x: string;
17
21
  y: number;
@@ -1,5 +1,5 @@
1
1
  import { GridComparatorFn } from '@mui/x-data-grid-pro';
2
- import { DetailedCategory, DetailedCategoryWithTransactions, MonthlyCategoryTotals, Transaction } from '../../common';
2
+ import { MonthlyCategoryTotals } from '../../common';
3
3
  type DataPoint = {
4
4
  x: Date;
5
5
  y: number;
@@ -14,5 +14,4 @@ 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 augmentCategoriesWithTransactions: (detailedCategories: DetailedCategory[], transactions: Transaction[]) => DetailedCategoryWithTransactions[];
18
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.25.3-alpha.al3",
3
+ "version": "6.25.4",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",