@mx-cartographer/experiences 3.16.1-alpha.JB4 → 3.16.1-alpha.bb2

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 CHANGED
@@ -1,7 +1,3 @@
1
- ## [3.16.0] - 12-04-2024
2
-
3
- - **ADDED** - Client branding to back arrow in drawer
4
-
5
1
  ## [3.15.0] - 11-25-2024
6
2
 
7
3
  - **ADDED** - Refreshed Bubble Budgets Widget
@@ -2,6 +2,7 @@ import { default as React } from 'react';
2
2
  import { SimulationNodeDatum } from 'd3-force';
3
3
  import { DetailedBudget } from '../../common';
4
4
  export interface BubbleData extends SimulationNodeDatum {
5
+ budget: DetailedBudget;
5
6
  budget_guid: string;
6
7
  radius: number;
7
8
  }
@@ -1,5 +1,5 @@
1
1
  import { Theme } from '@mui/system';
2
- import { Account, Budget, Category, CategoryTotal, DateRange, DetailedBudget, DetailedCategory, CategoryApi, GlobalStore } from '../../common';
2
+ import { Budget, Category, DateRange, DetailedBudget, DetailedCategory, CategoryApi, GlobalStore } from '../../common';
3
3
  import { BudgetsApi } from '../api/BudgetsApi';
4
4
  export declare class BudgetsStore {
5
5
  api: BudgetsApi;
@@ -7,7 +7,6 @@ export declare class BudgetsStore {
7
7
  globalStore: GlobalStore;
8
8
  dateRange: DateRange;
9
9
  budgets: Budget[];
10
- categoryTotals: CategoryTotal[];
11
10
  selectedBudget: DetailedBudget | undefined;
12
11
  selectedSubBudget: DetailedBudget | undefined;
13
12
  theme: Theme;
@@ -18,9 +17,7 @@ export declare class BudgetsStore {
18
17
  get totalBudgeted(): number;
19
18
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<void>;
20
19
  deleteBudget: (guid: string) => Promise<void>;
21
- generateBudgets: () => Promise<void>;
22
20
  loadBudgets: () => Promise<void>;
23
- loadCategoryTotals: (accounts: Account[], dateRange: DateRange) => Promise<void>;
24
21
  setDateRange: (dateRange: DateRange) => DateRange;
25
22
  setSelectedBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
26
23
  setSelectedSubBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
@@ -1,9 +1,8 @@
1
1
  import { Simulation } from 'd3';
2
- import { SimulationNodeDatum } from 'd3-force';
3
2
  import { BubbleData } from '../components/BubbleChart';
4
3
  import { DetailedBudget } from '../../common';
5
4
  import * as d3 from 'd3';
6
- export type SimulationType = Simulation<SimulationNodeDatum, undefined>;
5
+ export type SimulationType = Simulation<BubbleData, undefined>;
7
6
  /**
8
7
  * Enables dragging of bubbles
9
8
  * @param simulation D3 Simulation
@@ -31,5 +30,6 @@ export declare const getScale: (min: number, max: number) => d3.ScaleLinear<numb
31
30
  /**
32
31
  * Simulates the chart
33
32
  * @param data All Bubble data for the chart
33
+ * @param isDraggable
34
34
  */
35
- export declare const simulate: (data: BubbleData[]) => d3.Simulation<d3.SimulationNodeDatum, undefined>;
35
+ export declare const simulate: (data: BubbleData[], isDraggable: boolean) => d3.Simulation<BubbleData, undefined>;
@@ -18,6 +18,7 @@ export declare class CategoryStore {
18
18
  loadCategories: () => Promise<void>;
19
19
  loadDateRangeCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
20
20
  loadMonthlyCategoryTotals: (accounts?: Account[], startDate?: Date, endDate?: Date) => Promise<void>;
21
+ reloadCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
21
22
  removeCategory: (guid: string) => Promise<void>;
22
23
  setIsLoadingCategoryTotals: (isLoading: boolean) => void;
23
24
  updateCategory: (category: Category) => Promise<void>;
@@ -16,7 +16,7 @@ interface WidgetContainerProps {
16
16
  start: Date;
17
17
  end: Date;
18
18
  };
19
- dateRangeVariant?: 'outlined' | 'text' | 'readonly' | 'timeframebuttons' | 'timeframetabs';
19
+ dateRangeVariant?: 'outlined' | 'text' | 'readonly' | 'timeframebuttons';
20
20
  hasDivider?: boolean;
21
21
  onBackClick?: () => void;
22
22
  onAccountsFilterClick?: () => void;
@@ -22,7 +22,7 @@ export interface DateRangeSelectorProps {
22
22
  range?: DateRange<Date>;
23
23
  shouldShrinkToIcon?: boolean;
24
24
  toolTipContent?: string;
25
- variant?: 'outlined' | 'text' | 'readonly' | 'timeframebuttons' | 'timeframetabs';
25
+ variant?: 'outlined' | 'text' | 'readonly' | 'timeframebuttons';
26
26
  }
27
27
  export type Timeframe = {
28
28
  label: string;