@mx-cartographer/experiences 7.0.47 → 7.0.49-alpha.mega1

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.
@@ -32,11 +32,28 @@ export declare const getScale: (min: number, max: number) => d3.ScaleLinear<numb
32
32
  */
33
33
  export declare const simulate: (budgets: DetailedBudget[]) => d3.Simulation<BubbleData, undefined>;
34
34
  export declare const getSmartScale: (count: number, height: number, maxValue: number, minValue: number, width: number) => d3.ScaleLinear<number, number, never>;
35
- /**
36
- * Simulate a compact layout for smaller viewports
37
- * @param budgets Budget data
38
- * @param height Height of the container
39
- * @param width Width of the container
40
- * @returns A D3 simulation for the compact layout
41
- */
42
- export declare const simulateCompact: (budgets: DetailedBudget[], height: number, width: number) => d3.Simulation<BubbleData, undefined>;
35
+ export declare const computeScaledNodes: (nodes: BubbleData[], budgets: DetailedBudget[], isCompact: boolean | undefined, height: number, width: number) => {
36
+ radius: number;
37
+ budgetColors: import('../../common').BudgetColors;
38
+ category: import('../../common').DetailedCategory;
39
+ description: string;
40
+ percentage: number;
41
+ subBudgets: DetailedBudget[];
42
+ amount: number;
43
+ category_guid: string;
44
+ end_date?: number;
45
+ flags?: string[];
46
+ guid: string;
47
+ parent_guid?: string;
48
+ revision: number;
49
+ start_date: number;
50
+ transaction_total: number;
51
+ user_guid: string;
52
+ index?: number | undefined;
53
+ x?: number | undefined;
54
+ y?: number | undefined;
55
+ vx?: number | undefined;
56
+ vy?: number | undefined;
57
+ fx?: number | null | undefined;
58
+ fy?: number | null | undefined;
59
+ }[];
@@ -16,7 +16,7 @@ import { L as se } from "../Loader-DUaFpDGv.mjs";
16
16
  import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
18
18
  import { b as X } from "../Localization-2MODESHW.mjs";
19
- import { M as Qe } from "../MiniWidgetContainer-DSG6mwaW.mjs";
19
+ import { M as Qe } from "../MiniWidgetContainer-Bg0bELc2.mjs";
20
20
  import { R as Ve } from "../RecurringSettings-CHuS8Ik_.mjs";
21
21
  import Ke from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
@@ -11,7 +11,7 @@ import { C as gs, b as ps, L as ms, a as _s } from "../User-DaJAQ09j.mjs";
11
11
  import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as ys } from "../Help-DhcC-C05.mjs";
13
13
  import { M as bs } from "../MicroWidgetContainer-C4QQHfD7.mjs";
14
- import { M as xs } from "../MiniWidgetContainer-DSG6mwaW.mjs";
14
+ import { M as xs } from "../MiniWidgetContainer-Bg0bELc2.mjs";
15
15
  import { A as vs, D as Ds, W as As } from "../WidgetContainer-hsbxZmZB.mjs";
16
16
  import { j as Ts, a as Bs, e as Is, n as Ns, A as Ms, f as ks, k as $s, d as Rs, m as Ps, E as Os, i as Us, N as Ls, h as Gs, P as Hs, o as Fs, S as Ws } from "../ConnectDrawer-SHjB2fpB.mjs";
17
17
  import { C as Ys } from "../CurrencyInput-CRtdzs3o.mjs";
@@ -51,7 +51,7 @@ import O from "@mui/material/Box";
51
51
  import { S as ke } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as xe } from "../useScreenSize-B6JyS_Lj.mjs";
53
53
  import { L as V } from "../Loader-DUaFpDGv.mjs";
54
- import { M as pt } from "../MiniWidgetContainer-DSG6mwaW.mjs";
54
+ import { M as pt } from "../MiniWidgetContainer-Bg0bELc2.mjs";
55
55
  import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
56
  import { M as ht } from "../MicroWidgetContainer-C4QQHfD7.mjs";
57
57
  const Q = {
@@ -18,7 +18,7 @@ import { u as w, b as R, m as z, d as rt, a as st, h as Ct, g as _t } from "../h
18
18
  import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
19
19
  import { D as bt } from "../Donut-1UMNcG67.mjs";
20
20
  import { L as F } from "../Loader-DUaFpDGv.mjs";
21
- import { M as St } from "../MiniWidgetContainer-DSG6mwaW.mjs";
21
+ import { M as St } from "../MiniWidgetContainer-Bg0bELc2.mjs";
22
22
  import { startOfToday as U } from "date-fns/startOfToday";
23
23
  import { T as Tt, a as Mt } from "../TransactionDetails-Cl8xcpbh.mjs";
24
24
  import Dt from "@mui/material/Collapse";
@@ -27,7 +27,7 @@ import { D as Ce } from "../Drawer-kEE73B87.mjs";
27
27
  import { L as J } from "../Loader-DUaFpDGv.mjs";
28
28
  import { useTheme as Ne } from "@mui/material/styles";
29
29
  import { L as Te } from "../LineChart-B2Y7zwMu.mjs";
30
- import { M as ht } from "../MiniWidgetContainer-DSG6mwaW.mjs";
30
+ import { M as ht } from "../MiniWidgetContainer-Bg0bELc2.mjs";
31
31
  import { subMonths as ut } from "date-fns";
32
32
  import { TrendingUp as mt, TrendingDown as gt, MultilineChart as pt, ExpandLess as Ct, ExpandMore as ft } from "@mxenabled/mx-icons";
33
33
  import { a as Tt, f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.47",
3
+ "version": "7.0.49-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,39 +0,0 @@
1
- import { jsxs as h, jsx as r } from "react/jsx-runtime";
2
- import f from "@mui/material/Button";
3
- import u from "@mui/material/Card";
4
- import x from "@mui/material/CardHeader";
5
- import g from "@mui/material/CardContent";
6
- import b from "@mui/material/IconButton";
7
- import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
8
- import { Text as W, H3 as H } from "@mxenabled/mxui";
9
- import { u as I } from "./useDimensions-27p2evRx.mjs";
10
- import { W as M } from "./hooks-CE2TKk4a.mjs";
11
- const j = ({
12
- className: t = "mx-cmn-mini-widget",
13
- closeLabel: a,
14
- children: m,
15
- onClose: i,
16
- onPrimaryCtaClick: o,
17
- primaryCtaLabel: d = "",
18
- subTitle: n = "",
19
- sx: l = {},
20
- title: e = ""
21
- }) => {
22
- const [s, { height: c, width: p }] = I();
23
- return /* @__PURE__ */ h(u, { className: t, sx: { ...l }, children: [
24
- /* @__PURE__ */ r(
25
- x,
26
- {
27
- action: i ? /* @__PURE__ */ r(b, { "aria-label": a, onClick: i, children: /* @__PURE__ */ r(C, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ r(f, { endIcon: /* @__PURE__ */ r(v, {}), onClick: o, children: /* @__PURE__ */ r(W, { bold: !0, variant: "Small", children: d }) }),
28
- subheader: n || null,
29
- subheaderTypographyProps: { variant: "Small" },
30
- sx: { pb: 4 },
31
- title: e ? /* @__PURE__ */ r(H, { sx: { pb: 4 }, children: e }) : null
32
- }
33
- ),
34
- /* @__PURE__ */ r(g, { ref: s, sx: { p: 0 }, children: /* @__PURE__ */ r(M, { availableHeight: c, availableWidth: p, children: m }) })
35
- ] });
36
- }, $ = j;
37
- export {
38
- $ as M
39
- };