@mx-cartographer/experiences 3.10.1-alpha.mm3 → 3.10.1-alpha.mm30

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.
@@ -18,6 +18,7 @@ interface StackedLineChartProps {
18
18
  onHoverArea?: (category: string) => void;
19
19
  onHoverPoint?: (category: string) => void;
20
20
  onHoverLegend?: (category: string) => void;
21
+ onClickLegend?: (category: string) => void;
21
22
  height?: number;
22
23
  width?: number;
23
24
  }
@@ -2,4 +2,5 @@ import { default as React } from 'react';
2
2
 
3
3
  export declare const CategoryIconLabel: React.FC<{
4
4
  categoryGuid: string;
5
+ topLevelCategoryGuid: string;
5
6
  }>;
@@ -5,7 +5,10 @@ type DataPoint = {
5
5
  y: number;
6
6
  };
7
7
  declare const _default: React.FunctionComponent<{
8
- categoryGuid: string;
8
+ categoryGuids: {
9
+ guid: string;
10
+ topLevelGuid: string;
11
+ };
9
12
  hoveredAreaData: DataPoint[];
10
13
  cursorPosition: {
11
14
  x: number;
@@ -1,14 +1,14 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  interface CustomLegendProps {
4
- labels: string[];
5
- stackedLabels: string[];
6
4
  sx?: object;
7
- unstackedLabels: string[];
8
- stackedColors: (string | undefined)[];
9
- unstackedColors: (string | undefined)[];
5
+ categoryGuids: {
6
+ guid: string;
7
+ top_level_guid: string;
8
+ }[];
10
9
  hoveredLegend: string | null;
11
- setHoveredLegend: (label: string | null) => void;
10
+ onHoverLegend: (label: string | null) => void;
11
+ onClickLegend: (label: string | null) => void;
12
12
  }
13
13
  export declare const CustomLegend: React.FC<CustomLegendProps>;
14
14
  export {};
@@ -2,7 +2,10 @@ import { default as React } from 'react';
2
2
  import { ChartsItemContentProps } from '@mui/x-charts';
3
3
 
4
4
  interface CustomPointTooltipProps extends ChartsItemContentProps<'line'> {
5
- categoryGuid: string;
5
+ categoryGuids: {
6
+ guid: string;
7
+ topLevelGuid: string;
8
+ };
6
9
  xData: Date[];
7
10
  }
8
11
  export declare const CustomPointTooltip: React.FC<CustomPointTooltipProps>;
@@ -45,6 +45,7 @@ export declare const ANALYTICS_EVENTS: {
45
45
  TRENDS_CLICK_DATE: string;
46
46
  TRENDS_CLICK_TABLE_SORT: string;
47
47
  TRENDS_CLICK_TABLE_ROW: string;
48
+ TRENDS_CLICK_LEGEND: string;
48
49
  TRENDS_HOVER_LEGEND: string;
49
50
  TRENDS_HOVER_AREA: string;
50
51
  TRENDS_HOVER_POINT: string;
@@ -2,7 +2,7 @@ export { ApiEndpoints } from './ApiEndpoints';
2
2
  export { ANALYTICS_EVENTS } from './Analytics';
3
3
  export { DATE_FORMATS_INTL, formatDate, ORDINAL_DATE_FORMAT, ORDINAL_MONTH_DAY_YEAR_FORMAT, } from './DateFormats';
4
4
  export { INCOME_ACCOUNT_TYPES, PAYMENT_ACCOUNT_TYPES, SPENDING_ACCOUNT_TYPES } from './Account';
5
- export { CategoryColors, CategoryGuids, CategoryGuidToName, CategoryIcon } from './Category';
5
+ export { CategoryColors, CategoryGuids, CategoryGuidToName, CategoryIcon, PaymentCategories, } from './Category';
6
6
  export { CurrencyCodes } from './Numbers';
7
7
  export { RecurrenceTypes, RECURRENCE_COPY } from './ScheduledPayment';
8
8
  export { IterationItemTypes, LOADING_STATUS, PlanTypes } from './SpendingPlan';
@@ -1,4 +1,5 @@
1
1
  export interface TrendsCopy {
2
+ all_categories: string;
2
3
  income_label: string;
3
4
  mini_title: string;
4
5
  payments_label: string;