@mx-cartographer/experiences 7.0.20-alpha.al0 → 7.0.20-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.
@@ -8,8 +8,8 @@ import { startOfToday as le } from "date-fns/startOfToday";
8
8
  import { subDays as de } from "date-fns/subDays";
9
9
  import re from "@mui/material/Skeleton";
10
10
  import c from "@mui/material/Stack";
11
- import { R as He } from "../RecurringSettings-C9r4s1Cz.mjs";
12
- import { M as An } from "../RecurringSettings-C9r4s1Cz.mjs";
11
+ import { R as He } from "../RecurringSettings-Dj29piAQ.mjs";
12
+ import { M as An } from "../RecurringSettings-Dj29piAQ.mjs";
13
13
  import { addMonths as ze } from "date-fns/addMonths";
14
14
  import { subMonths as Be } from "date-fns/subMonths";
15
15
  import { isBefore as Ue } from "date-fns/isBefore";
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
41
41
  import lt from "@mui/material/ListItemAvatar";
42
42
  import dt from "@mui/material/ListItemButton";
43
43
  import ut from "@mui/material/ListItemText";
44
- import { b as mt } from "../ManageIncome-DcKHpJ9V.mjs";
45
- import { c as On, M as kn, S as Wn } from "../ManageIncome-DcKHpJ9V.mjs";
44
+ import { b as mt } from "../ManageIncome-DbsiKUoO.mjs";
45
+ import { c as On, M as kn, S as Wn } from "../ManageIncome-DbsiKUoO.mjs";
46
46
  import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
47
47
  import { D as Ae } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as N } from "../Localization-2MODESHW.mjs";
@@ -20,7 +20,7 @@ import { D as bt } from "../Donut-1UMNcG67.mjs";
20
20
  import { L as F } from "../Loader-DUaFpDGv.mjs";
21
21
  import { M as St } from "../MiniWidgetContainer-CTyjmE1h.mjs";
22
22
  import { startOfToday as U } from "date-fns/startOfToday";
23
- import { T as Tt, a as Mt } from "../TransactionDetails-bja6hKJk.mjs";
23
+ import { T as Tt, a as Mt } from "../TransactionDetails-C-z3HGTT.mjs";
24
24
  import Dt from "@mui/material/Collapse";
25
25
  import B from "@mui/material/Divider";
26
26
  import q from "@mui/material/List";
@@ -1,6 +1,6 @@
1
1
  import { T as fa } from "../TransactionApi-DbbcjI2L.mjs";
2
- import { u as B, C as Re, D as He, M as Be, c as Pe, T as $e, a as Ve } from "../TransactionDetails-bja6hKJk.mjs";
3
- import { B as ya, d as ba, b as Ta } from "../TransactionDetails-bja6hKJk.mjs";
2
+ import { u as B, C as Re, D as He, M as Be, c as Pe, T as $e, a as Ve } from "../TransactionDetails-C-z3HGTT.mjs";
3
+ import { B as ya, d as ba, b as Ta } from "../TransactionDetails-C-z3HGTT.mjs";
4
4
  import { T as M } from "../User-Dq9Qj764.mjs";
5
5
  import { O as Sa } from "../User-Dq9Qj764.mjs";
6
6
  import { S as ee, D as We } from "../TransactionStore-0tLtBEIC.mjs";
@@ -22,7 +22,7 @@ import { b as at } from "../Localization-2MODESHW.mjs";
22
22
  import { H as be } from "../HeaderCell-DjuifqHJ.mjs";
23
23
  import { T as A, b as it } from "../ViewMoreMicroCard-BPEzFZRG.mjs";
24
24
  import { A as y, W as Ae } from "../WidgetContainer-CdBs9WOZ.mjs";
25
- import { a as Re, T as ke } from "../TransactionDetails-bja6hKJk.mjs";
25
+ import { a as Re, T as ke } from "../TransactionDetails-C-z3HGTT.mjs";
26
26
  import { D as fe } from "../Drawer-kEE73B87.mjs";
27
27
  import { L as Q } from "../Loader-DUaFpDGv.mjs";
28
28
  import { useTheme as He } from "@mui/material/styles";
@@ -124,6 +124,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
124
124
  ]), C = i.useMemo(() => kt(o.start, o.end), [o]), u = [
125
125
  {
126
126
  field: "category",
127
+ flex: 1,
127
128
  headerName: "Category",
128
129
  minWidth: 175,
129
130
  renderHeader: be,
@@ -134,8 +135,9 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
134
135
  ...C.map(
135
136
  (r) => ({
136
137
  field: r,
138
+ flex: 1,
137
139
  headerName: r,
138
- minWidth: 75,
140
+ minWidth: 100,
139
141
  renderHeader: be,
140
142
  renderCell: Mt,
141
143
  align: "right",
@@ -790,6 +792,7 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
790
792
  /* @__PURE__ */ e(
791
793
  ke,
792
794
  {
795
+ bgcolor: "transparent",
793
796
  filter: I,
794
797
  height: "calc(100vh - 475px)",
795
798
  onClick: m
@@ -920,8 +923,10 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
920
923
  ee(v);
921
924
  }, ge = () => {
922
925
  ee(""), s(y.TRENDS_CLICK_ALL_CATEGORIES, A);
923
- }, Ge = a.show_connections_widget_in_master ? "buttons" : "no-buttons", Be = L && !d?.length;
924
- return !p || !L ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(
926
+ };
927
+ if (!p || !L) return /* @__PURE__ */ e(Q, {});
928
+ const Ge = a.show_connections_widget_in_master ? "buttons" : "no-buttons", Be = L && d.length === 0;
929
+ return /* @__PURE__ */ f(
925
930
  Ae,
926
931
  {
927
932
  accountOptions: d,
@@ -932,83 +937,86 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
932
937
  onBackClick: n,
933
938
  sx: t,
934
939
  title: D.title,
935
- children: Be ? /* @__PURE__ */ e(
936
- vt,
937
- {
938
- header: D.zero_state_content_header,
939
- icon: "",
940
- onClick: () => {
941
- },
942
- primaryButton: D.empty_state_primary,
943
- subText: D.empty_state_sub_text,
944
- variant: Ge
945
- }
946
- ) : /* @__PURE__ */ f(
947
- _,
948
- {
949
- sx: {
950
- px: c ? 0 : 48
951
- },
952
- children: [
953
- /* @__PURE__ */ f(
954
- _,
955
- {
956
- flexDirection: "row",
957
- justifyContent: "space-between",
958
- sx: { pb: c ? 12 : 24, pt: c ? 24 : 48 },
959
- children: [
960
- /* @__PURE__ */ e(
961
- Oe,
940
+ children: [
941
+ /* @__PURE__ */ f(
942
+ _,
943
+ {
944
+ sx: {
945
+ px: c ? 0 : 48
946
+ },
947
+ children: [
948
+ /* @__PURE__ */ f(
949
+ _,
950
+ {
951
+ flexDirection: "row",
952
+ justifyContent: "space-between",
953
+ sx: { pb: c ? 12 : 24, pt: c ? 24 : 48 },
954
+ children: [
955
+ /* @__PURE__ */ e(
956
+ Oe,
957
+ {
958
+ selectedCategoryGuid: J,
959
+ selectedDateRange: r
960
+ }
961
+ ),
962
+ /* @__PURE__ */ e(We, { onTabChange: me, selectedTab: z })
963
+ ]
964
+ }
965
+ ),
966
+ Be && /* @__PURE__ */ e(
967
+ vt,
968
+ {
969
+ header: "",
970
+ icon: "",
971
+ onClick: () => {
972
+ },
973
+ primaryButton: D.empty_state_primary,
974
+ subText: D.empty_state_sub_text,
975
+ variant: Ge
976
+ }
977
+ ),
978
+ /* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: J && /* @__PURE__ */ f(pe, { onClick: ge, sx: { p: 0, pr: 5 }, children: [
979
+ /* @__PURE__ */ e(se, { name: "arrow_back" }),
980
+ D.all_categories
981
+ ] }) }) }),
982
+ /* @__PURE__ */ f(_, { flexDirection: x ? "row" : "column", gap: x ? 48 : 16, children: [
983
+ z === "Chart" && /* @__PURE__ */ f(Fe, { children: [
984
+ /* @__PURE__ */ e(O, { sx: { width: x ? "68%" : "100%" }, children: /* @__PURE__ */ e(
985
+ Jt,
962
986
  {
963
- selectedCategoryGuid: J,
964
- selectedDateRange: r
987
+ availableHeight: le,
988
+ minHeight: 450,
989
+ selectedDateRange: r,
990
+ totals: u
965
991
  }
966
- ),
967
- /* @__PURE__ */ e(We, { onTabChange: me, selectedTab: z })
968
- ]
969
- }
970
- ),
971
- /* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: J && /* @__PURE__ */ f(pe, { onClick: ge, sx: { p: 0, pr: 5 }, children: [
972
- /* @__PURE__ */ e(se, { name: "arrow_back" }),
973
- D.all_categories
974
- ] }) }) }),
975
- /* @__PURE__ */ f(_, { flexDirection: x ? "row" : "column", gap: x ? 48 : 16, children: [
976
- z === "Chart" && /* @__PURE__ */ f(Fe, { children: [
977
- /* @__PURE__ */ e(O, { sx: { width: x ? "68%" : "100%" }, children: /* @__PURE__ */ e(
978
- Jt,
992
+ ) }),
993
+ /* @__PURE__ */ f(_, { gap: 16, sx: { width: x ? "32%" : "100%" }, children: [
994
+ N && /* @__PURE__ */ e(Yt, { onInsightCardClick: o }),
995
+ /* @__PURE__ */ e(
996
+ Kt,
997
+ {
998
+ availableHeight: de,
999
+ onCategoryClick: he
1000
+ }
1001
+ )
1002
+ ] })
1003
+ ] }),
1004
+ z === "Table" && /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
1005
+ Ve,
979
1006
  {
980
- availableHeight: le,
981
- minHeight: 450,
982
- selectedDateRange: r,
983
- totals: u
1007
+ height: "unset",
1008
+ monthlyCategoryTotals: u,
1009
+ onClickRow: G,
1010
+ selectedCategory: J,
1011
+ selectedDateRange: r
984
1012
  }
985
- ) }),
986
- /* @__PURE__ */ f(_, { gap: 16, sx: { width: x ? "32%" : "100%" }, children: [
987
- N && /* @__PURE__ */ e(Yt, { onInsightCardClick: o }),
988
- /* @__PURE__ */ e(
989
- Kt,
990
- {
991
- availableHeight: de,
992
- onCategoryClick: he
993
- }
994
- )
995
- ] })
996
- ] }),
997
- z === "Table" && /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
998
- Ve,
999
- {
1000
- height: "unset",
1001
- monthlyCategoryTotals: u,
1002
- onClickRow: G,
1003
- selectedCategory: J,
1004
- selectedDateRange: r
1005
- }
1006
- ) })
1007
- ] }),
1008
- te && /* @__PURE__ */ e(Xt, { onClose: ue })
1009
- ]
1010
- }
1011
- )
1013
+ ) })
1014
+ ] })
1015
+ ]
1016
+ }
1017
+ ),
1018
+ te && /* @__PURE__ */ e(Xt, { onClose: ue })
1019
+ ]
1012
1020
  }
1013
1021
  );
1014
1022
  }, Qn = M(en);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.20-alpha.al0",
3
+ "version": "7.0.20-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",