@mx-cartographer/experiences 7.3.0-alpha.sms1 → 7.3.0

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.
Files changed (104) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-YwUMFz93.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-BgCST7mK.mjs} +8 -8
  4. package/dist/AccountDetailsHeader-jAFWoHj7.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-DPxMPBF0.mjs} +2 -2
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-D6rWAreC.mjs} +8 -8
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-B5E98oM1.mjs} +100 -74
  8. package/dist/Accounts-UIlYCmHb.mjs +9 -0
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-CXvenbdN.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Buy70Y3V.mjs} +21 -19
  13. package/dist/CategoryStore-BEdFs69_.mjs +183 -0
  14. package/dist/CategoryUtil-BR3H5i6n.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-CbxHKlRv.mjs} +10 -10
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-C6kanU7I.mjs} +4 -4
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-lSC7oPDg.mjs} +1 -1
  18. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-DgIcphe_.mjs} +1 -1
  19. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DZ10CbWd.mjs} +3 -3
  20. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  21. package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CL7t5lBL.mjs} +1 -1
  22. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-CAlmSu4U.mjs} +112 -152
  23. package/dist/{Help-B6dIcujh.mjs → Help-hi9I9EYP.mjs} +1 -1
  24. package/dist/{LineChart-D4GI7nVh.mjs → LineChart-eK4IQImU.mjs} +2 -2
  25. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BmL5buOf.mjs} +1 -1
  26. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-Cypo9qY4.mjs} +66 -65
  27. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  28. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-CFdMGJKg.mjs} +1 -1
  29. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-BdgBvpga.mjs} +1 -1
  30. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-CxqIxAgN.mjs} +2 -2
  31. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-DxytNHlN.mjs} +240 -237
  32. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  33. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-V6FEoIDe.mjs} +3 -3
  34. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-iIupYxJW.mjs} +4 -4
  35. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-ej39mgA6.mjs} +3 -3
  36. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BiwCzScZ.mjs} +26 -29
  37. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  38. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  39. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  40. package/dist/{TransactionDetails-oP1eSuiS.mjs → TransactionDetails-BUoNbsu-.mjs} +402 -367
  41. package/dist/TransactionStore-C1oyQCZK.mjs +677 -0
  42. package/dist/TrendsStore-5PvDT_o6.mjs +182 -0
  43. package/dist/{User-BQUxBeZV.mjs → User-Bj34_i8g.mjs} +1 -1
  44. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-lihSDk2J.mjs} +517 -493
  45. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BnTgAfQn.mjs} +2 -2
  46. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  48. package/dist/accounts/index.es.js +241 -203
  49. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  50. package/dist/accounts/utils/Accounts.d.ts +1 -2
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/index.es.js +500 -507
  53. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  54. package/dist/cashflow/index.es.js +384 -382
  55. package/dist/categories/index.es.js +2 -2
  56. package/dist/categories/stores/CategoryStore.d.ts +1 -5
  57. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  58. package/dist/common/components/charts/index.d.ts +0 -2
  59. package/dist/common/index.es.js +391 -376
  60. package/dist/common/stores/AppDataStore.d.ts +1 -3
  61. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  62. package/dist/common/stores/GlobalStore.d.ts +10 -4
  63. package/dist/common/stores/UserStore.d.ts +2 -3
  64. package/dist/common/types/Account.d.ts +6 -9
  65. package/dist/common/types/Global.d.ts +1 -0
  66. package/dist/dashboard/index.es.js +2 -2
  67. package/dist/debts/index.es.js +506 -498
  68. package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-B8qpk5MU.mjs} +14 -13
  69. package/dist/finstrong/index.es.js +417 -415
  70. package/dist/goals/index.es.js +559 -557
  71. package/dist/goals/stores/GoalStore.d.ts +4 -17
  72. package/dist/help/index.es.js +3 -3
  73. package/dist/{hooks-D6XlXHf4.mjs → hooks-Cy8JnjCg.mjs} +2 -2
  74. package/dist/insights/index.es.js +1 -1
  75. package/dist/investments/index.es.js +437 -435
  76. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  77. package/dist/merchants/index.es.js +2 -2
  78. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  79. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -1
  80. package/dist/microinsights/index.es.js +1 -1
  81. package/dist/microinsights/interfaces.d.ts +0 -1
  82. package/dist/networth/index.es.js +176 -174
  83. package/dist/notifications/index.es.js +23 -23
  84. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  85. package/dist/recurringtransactions/index.es.js +175 -173
  86. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  87. package/dist/settings/index.es.js +285 -279
  88. package/dist/spending/index.es.js +282 -281
  89. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  90. package/dist/transactions/index.es.js +63 -64
  91. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  92. package/dist/trends/index.es.js +948 -583
  93. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-D6sQsNNQ.mjs} +2 -2
  94. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  95. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-BxytCjq5.mjs} +1 -1
  96. package/package.json +4 -4
  97. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  98. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  99. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  100. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  101. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  102. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  103. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  104. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -3,6 +3,7 @@ import { Transaction } from '../../../common';
3
3
  import { BottomActions, TopActions } from '../../constants/Actions';
4
4
  export interface TransactionDetailsProps {
5
5
  bottomActions?: BottomActions[];
6
+ canFlagTransaction?: boolean;
6
7
  topActions?: TopActions[];
7
8
  transaction: Transaction;
8
9
  }
@@ -1,41 +1,40 @@
1
- import { T as Aa } from "../TransactionApi-B3Tksf7L.mjs";
2
- import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-oP1eSuiS.mjs";
3
- import { B as xa, d as wa, b as Ia } from "../TransactionDetails-oP1eSuiS.mjs";
4
- import { T as M } from "../User-BQUxBeZV.mjs";
5
- import { O as Da } from "../User-BQUxBeZV.mjs";
6
- import { S as ae, D as Fe } from "../TransactionStore-ai3uII_r.mjs";
7
- import { T as Ea } from "../TransactionStore-ai3uII_r.mjs";
8
- import { e as ze } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
9
- import { E as Ma } from "../ExportCsvAction-sX8Rg4Ov.mjs";
1
+ import { T as Ta } from "../TransactionApi-CjBoLleL.mjs";
2
+ import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe } from "../TransactionDetails-BUoNbsu-.mjs";
3
+ import { B as Sa, e as xa, b as wa } from "../TransactionDetails-BUoNbsu-.mjs";
4
+ import { T as M } from "../User-Bj34_i8g.mjs";
5
+ import { O as va } from "../User-Bj34_i8g.mjs";
6
+ import { S as ae, D as ze } from "../TransactionStore-C1oyQCZK.mjs";
7
+ import { T as Na } from "../TransactionStore-C1oyQCZK.mjs";
8
+ import { e as Ke } from "../exportTransactionsToCSV-B8qpk5MU.mjs";
9
+ import { E as Oa } from "../ExportCsvAction-DZ10CbWd.mjs";
10
10
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
11
11
  import u from "react";
12
12
  import { observer as x } from "mobx-react-lite";
13
- import Ke from "@mui/material/Paper";
14
- import { DataGridPro as qe } from "@mui/x-data-grid-pro";
13
+ import qe from "@mui/material/Paper";
14
+ import { DataGridPro as je } from "@mui/x-data-grid-pro";
15
15
  import S from "@mui/material/Box";
16
- import { useTheme as je } from "@mui/material/styles";
17
- import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Ye } from "@mxenabled/mxui";
18
- import { h as $, u as w, b as j, d as se, m as Je, a as Qe, g as Ze, p as et } from "../hooks-D6XlXHf4.mjs";
19
- import { fromUnixTime as tt } from "date-fns/fromUnixTime";
20
- import { f as at, D as nt, a as ie } from "../Dialog-CWW597AF.mjs";
16
+ import { useTheme as Xe } from "@mui/material/styles";
17
+ import { Text as C, Icon as B, MerchantLogo as Ye, TextField as ne, P as Je } from "@mxenabled/mxui";
18
+ import { h as $, u as w, b as j, d as se, m as Qe, a as Ze, g as et, p as tt } from "../hooks-Cy8JnjCg.mjs";
19
+ import { fromUnixTime as at } from "date-fns/fromUnixTime";
20
+ import { f as nt, D as ot, a as ie } from "../Dialog-CWW597AF.mjs";
21
21
  import N from "@mui/material/Stack";
22
22
  import { f as ce } from "../NumberFormatting-Buh7u8Oi.mjs";
23
23
  import { L as X } from "../Loader-DUaFpDGv.mjs";
24
- import { endOfMonth as ot } from "date-fns/endOfMonth";
25
- import { getUnixTime as rt } from "date-fns/getUnixTime";
26
- import { startOfMonth as st } from "date-fns/startOfMonth";
24
+ import { endOfMonth as rt } from "date-fns/endOfMonth";
25
+ import { getUnixTime as st } from "date-fns/getUnixTime";
26
+ import { startOfMonth as it } from "date-fns/startOfMonth";
27
27
  import { startOfToday as K } from "date-fns/startOfToday";
28
- import it from "@mui/material/styles/useTheme";
29
- import { l as ct } from "../ConnectDrawer-BQNs-hjk.mjs";
30
- import lt from "@mui/material/Divider";
31
- import dt from "@mui/material/MenuItem";
32
- import ut from "@mui/material/RadioGroup";
33
- import { ExpandMore as mt } from "@mxenabled/mx-icons";
34
- import { C as _t } from "../CurrencyInput-DUsQbkXb.mjs";
35
- import { a as pt, u as gt } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
28
+ import ct from "@mui/material/styles/useTheme";
29
+ import { l as lt } from "../ConnectDrawer-CbxHKlRv.mjs";
30
+ import dt from "@mui/material/Divider";
31
+ import ut from "@mui/material/MenuItem";
32
+ import mt from "@mui/material/RadioGroup";
33
+ import { ExpandMore as _t } from "@mxenabled/mx-icons";
34
+ import { C as pt } from "../CurrencyInput-lSC7oPDg.mjs";
35
+ import { a as gt, u as ht } from "../CategorySelectorDrawer-Buy70Y3V.mjs";
36
36
  import { b as q } from "../Localization-2MODESHW.mjs";
37
- import { u as ht } from "../useAriaLive-B3_pRUio.mjs";
38
- import { A, W as ft } from "../WidgetContainer-BHWANqT4.mjs";
37
+ import { A, W as ft } from "../WidgetContainer-BnTgAfQn.mjs";
39
38
  import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
40
39
  import { S as yt } from "../SearchBox-B2_zLv8-.mjs";
41
40
  import { D as oe } from "../Drawer-kEE73B87.mjs";
@@ -70,8 +69,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
70
69
  ]
71
70
  }
72
71
  );
73
- }, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: at(tt(t.row.date), nt.MONTH_DAY) }), wt = (t) => {
74
- const s = je(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
72
+ }, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: nt(at(t.row.date), ot.MONTH_DAY) }), wt = (t) => {
73
+ const s = Xe(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
75
74
  return /* @__PURE__ */ _(
76
75
  S,
77
76
  {
@@ -100,7 +99,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
100
99
  );
101
100
  }, It = x(wt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), vt = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
102
101
  /* @__PURE__ */ e(
103
- Xe,
102
+ Ye,
104
103
  {
105
104
  categoryGuid: t.row.top_level_category_guid || "",
106
105
  merchantGuid: t.row.merchant_guid || ""
@@ -178,8 +177,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
178
177
  sortingOrder: ["asc", "desc"]
179
178
  }
180
179
  ];
181
- return /* @__PURE__ */ e(Ke, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
182
- qe,
180
+ return /* @__PURE__ */ e(qe, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
181
+ je,
183
182
  {
184
183
  columns: I,
185
184
  disableColumnFilter: !0,
@@ -247,7 +246,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
247
246
  sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
248
247
  children: [
249
248
  /* @__PURE__ */ e(
250
- _t,
249
+ pt,
251
250
  {
252
251
  allowDecimals: !0,
253
252
  amount: d,
@@ -263,7 +262,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
263
262
  type: "number"
264
263
  }
265
264
  ),
266
- /* @__PURE__ */ e(ut, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
265
+ /* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
267
266
  /* @__PURE__ */ e(
268
267
  ae,
269
268
  {
@@ -301,17 +300,17 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
301
300
  ne,
302
301
  {
303
302
  InputLabelProps: { shrink: !0 },
304
- SelectProps: { defaultValue: -1, IconComponent: mt },
303
+ SelectProps: { defaultValue: -1, IconComponent: _t },
305
304
  label: r.manual_transaction_select_an_account,
306
305
  onChange: (o) => E(o.target.value),
307
306
  placeholder: r.manual_transaction_select,
308
307
  select: !0,
309
308
  sx: { bgcolor: "background.paper" },
310
- children: m.map((o) => /* @__PURE__ */ e(dt, { value: o.value, children: o.label }, o.value))
309
+ children: m.map((o) => /* @__PURE__ */ e(ut, { value: o.value, children: o.label }, o.value))
311
310
  }
312
311
  )
313
312
  ] }),
314
- /* @__PURE__ */ e(lt, { light: !0 }),
313
+ /* @__PURE__ */ e(dt, { light: !0 }),
315
314
  /* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
316
315
  /* @__PURE__ */ e(Pe, { transaction: a }),
317
316
  /* @__PURE__ */ e($e, { transaction: a }),
@@ -320,7 +319,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
320
319
  ] })
321
320
  ] });
322
321
  }, kt = x(Mt), Lt = ({ onClose: t, transaction: s }) => {
323
- const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Je(), [d, p] = u.useState(""), h = u.useMemo(
322
+ const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Qe(), [d, p] = u.useState(""), h = u.useMemo(
324
323
  () => l.find((m) => m.guid === d),
325
324
  [d]
326
325
  ), f = async (m) => {
@@ -328,7 +327,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
328
327
  };
329
328
  return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
330
329
  /* @__PURE__ */ e(
331
- pt,
330
+ gt,
332
331
  {
333
332
  initialSelected: s.category_guid,
334
333
  onClose: t,
@@ -352,7 +351,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
352
351
  onSecondaryAction: () => f(!1),
353
352
  primaryText: i.actions_apply_to_all,
354
353
  secondaryText: i.actions_this_time_only,
355
- children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: q(
354
+ children: /* @__PURE__ */ e(Je, { variant: "Paragraph", children: q(
356
355
  i.actions_all_past_and_future,
357
356
  s.description,
358
357
  h?.name
@@ -366,14 +365,14 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
366
365
  showInsights: r = !1,
367
366
  sx: a = {}
368
367
  }) => {
369
- const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Qe(), { setSearchValue: f } = gt(), { onEvent: m } = Ze(), { common: I, transactions: n } = w(), {
368
+ const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Ze(), { setSearchValue: f } = ht(), { onEvent: m } = et(), { common: I, transactions: n } = w(), {
370
369
  displayedDateRange: g,
371
370
  isCopyLoaded: T,
372
371
  isInitialized: E,
373
372
  selectedAccountGuids: o,
374
373
  setDisplayedDate: k,
375
374
  setSelectedAccounts: le
376
- } = j(), { isDesktop: de, isTablet: ue } = Ct(), L = it(), {
375
+ } = j(), { isDesktop: de, isTablet: ue } = Ct(), L = ct(), {
377
376
  addTransaction: me,
378
377
  filter: Y,
379
378
  loadAssociatedBeats: _e,
@@ -390,9 +389,9 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
390
389
  setSearchValue: be,
391
390
  setShowInsights: Te,
392
391
  updateManualTransaction: Ae
393
- } = P(), { userProfile: Se } = et(), [G, y] = u.useState(""), [J, H] = u.useState(""), [xe, U] = u.useState(!1), [we, Q] = u.useState(!1), [F, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = ht(), v = p?.transactions?.selected_account_guid;
392
+ } = P(), { userProfile: Se } = tt(), [G, y] = u.useState(""), [J, H] = u.useState(""), [xe, U] = u.useState(!1), [we, Q] = u.useState(!1), [F, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = Ge(), v = p?.transactions?.selected_account_guid;
394
393
  u.useEffect(() => {
395
- const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = st(K()), te = ot(K());
394
+ const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = it(K()), te = rt(K());
396
395
  v || le(c), k(ee, te), V({
397
396
  accounts: c.map((D) => D.guid),
398
397
  custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
@@ -425,11 +424,11 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
425
424
  searchTerm: c
426
425
  }), m(A.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
427
426
  }, Me = () => {
428
- ze(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
427
+ Ke(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
429
428
  }, ke = () => {
430
429
  Ne.length > 0 ? (Ae({
431
- ...Fe,
432
- date: rt(K()),
430
+ ...ze,
431
+ date: st(K()),
433
432
  user_guid: Se?.user_guid || ""
434
433
  }), y(
435
434
  "addTransaction"
@@ -512,7 +511,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
512
511
  [L.breakpoints.up("md")]: { display: "none" }
513
512
  },
514
513
  children: /* @__PURE__ */ e(
515
- Ge,
514
+ Ue,
516
515
  {
517
516
  height: `calc(${s} - ${re}px)`,
518
517
  onClick: (c) => {
@@ -534,7 +533,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
534
533
  isOpen: G === "transaction" && !!b,
535
534
  onClose: Be,
536
535
  title: n.details_title,
537
- children: b && /* @__PURE__ */ e(Ue, { transaction: b })
536
+ children: b && /* @__PURE__ */ e(Fe, { transaction: b })
538
537
  }
539
538
  ),
540
539
  b && G === "category" && /* @__PURE__ */ e(
@@ -570,7 +569,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
570
569
  }
571
570
  ),
572
571
  /* @__PURE__ */ e(
573
- ct,
572
+ lt,
574
573
  {
575
574
  onClose: He,
576
575
  showConnectWidget: we,
@@ -580,20 +579,20 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
580
579
  ]
581
580
  }
582
581
  );
583
- }, ya = x(Ht);
582
+ }, Ca = x(Ht);
584
583
  export {
585
584
  Ot as AddAccountModal,
586
- xa as BottomActions,
587
- Ma as ExportCsvAction,
588
- Da as TRANSACTION_EVENTS,
589
- wa as TopActions,
590
- Aa as TransactionApi,
591
- Ue as TransactionDetails,
592
- Ge as TransactionList,
593
- Ia as TransactionRow,
594
- Ea as TransactionStore,
585
+ Sa as BottomActions,
586
+ Oa as ExportCsvAction,
587
+ va as TRANSACTION_EVENTS,
588
+ xa as TopActions,
589
+ Ta as TransactionApi,
590
+ Fe as TransactionDetails,
591
+ Ue as TransactionList,
592
+ wa as TransactionRow,
593
+ Na as TransactionStore,
595
594
  Nt as TransactionTable,
596
- ya as TransactionWidget,
597
- ze as exportTransactionsToCSV,
595
+ Ca as TransactionWidget,
596
+ Ke as exportTransactionsToCSV,
598
597
  P as useTransactionsUiStore
599
598
  };
@@ -1,4 +1,4 @@
1
- import { BeatApi, Beat, GlobalStore, Tag, Tagging, Transaction, TransactionRule } from '../../common';
1
+ import { BeatApi, TransactionType, Beat, GlobalStore, Tag, Tagging, Transaction, TransactionRule } from '../../common';
2
2
  import { TransactionApi } from '../api/TransactionApi';
3
3
  import { UiStore } from './UiStore';
4
4
  export type TransactionFilter = {
@@ -17,47 +17,103 @@ export declare class TransactionStore {
17
17
  api: TransactionApi;
18
18
  beatApi: BeatApi;
19
19
  associatedBeats: Beat[];
20
- associatedBeatsLoaded: boolean;
21
- transactions: Transaction[];
22
- transactionsLoaded: boolean;
23
- taggings: Tagging[];
24
- taggingsLoaded: boolean;
25
- tags: Tag[];
26
- tagsLoaded: boolean;
27
- transactionRules: TransactionRule[];
28
- transactionRulesLoaded: boolean;
29
20
  cachedStartDate: Date;
30
21
  filter: TransactionFilter;
31
22
  isLoading: boolean;
23
+ rawTransactions: Transaction[];
32
24
  sortColumn: string;
33
25
  sortDirection: string;
26
+ taggings: Tagging[];
27
+ tags: Tag[];
28
+ transactionRules: TransactionRule[];
34
29
  onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
35
30
  constructor(globalStore: GlobalStore);
36
- loadTransactionData: () => Promise<void>;
37
- get isTransactionDataLoaded(): boolean;
31
+ loadTransactionData: ({ associatedBeats, transactionRules, transactions, }?: {
32
+ associatedBeats?: Beat[];
33
+ taggings?: Tagging[];
34
+ tags?: Tag[];
35
+ transactionRules?: TransactionRule[];
36
+ transactions?: Transaction[];
37
+ }) => Promise<void>;
38
38
  get sortedTransactions(): Transaction[];
39
39
  get sortedTransactionsWithSplits(): Transaction[];
40
- get detailedTransactions(): Transaction[];
41
- setAssociatedBeats: (beats: Beat[]) => void;
42
- setTaggings: (taggings: Tagging[]) => void;
43
- setTags: (tags: Tag[]) => void;
44
- setTransactionRules: (transactionRules: TransactionRule[]) => void;
45
- setTransactions: (transactions: Transaction[]) => void;
40
+ get transactions(): Transaction[];
46
41
  addTag: (name: string) => Promise<void>;
47
42
  addTagging: (tagGuid: string, transactionGuid: string) => Promise<void>;
48
43
  addOrUpdateTransactionRule: (categoryGuid: string, transaction: Transaction) => Promise<void>;
49
44
  addTransaction: (transaction: Transaction) => Promise<void>;
50
- loadAssociatedBeats: (fromDate?: Date) => Promise<void>;
45
+ augmentTransactions: (transactions: Transaction[]) => {
46
+ account: string;
47
+ accountIsClosed: boolean;
48
+ accountIsHidden: boolean;
49
+ category: string;
50
+ isIncome: boolean;
51
+ isPending: boolean;
52
+ number: string;
53
+ payee: string;
54
+ tags: string[];
55
+ guid: string;
56
+ account_guid: string;
57
+ amount: number;
58
+ attachment_guid?: string | null;
59
+ category_guid?: string;
60
+ check_number?: string | null;
61
+ currency_code: string | null;
62
+ date: number;
63
+ description: string;
64
+ duplicate: boolean;
65
+ external_guid?: string | null;
66
+ feed_attachment_guid?: string | null;
67
+ feed_description: string;
68
+ feed_localized_description?: string | null;
69
+ feed_posted_date?: number | null;
70
+ feed_status: import('../../common').TransactionStatus | null;
71
+ feed_transaction_date: number | null;
72
+ flags?: number | null;
73
+ has_been_split: boolean;
74
+ has_been_viewed: boolean;
75
+ is_cleared: boolean;
76
+ is_flagged: boolean;
77
+ is_hidden: boolean;
78
+ is_international?: boolean | null;
79
+ is_manual: boolean;
80
+ is_personal: boolean;
81
+ is_reimbursable: boolean;
82
+ is_subscription: boolean;
83
+ is_void: boolean;
84
+ localized_description?: string | null;
85
+ localized_memo?: string | null;
86
+ memo?: string | null;
87
+ metadata?: string | null;
88
+ merchant_guid?: string | null;
89
+ parent_guid?: string | null;
90
+ posted_date?: number | null;
91
+ reference?: string | null;
92
+ revision: number;
93
+ repeating_transaction_guid?: string | null;
94
+ scheduled_payment_guid?: string | null;
95
+ top_level_category_guid?: string;
96
+ transaction_type: TransactionType;
97
+ user_date?: number | null;
98
+ user_guid: string;
99
+ user_transaction_rule_guid?: string | null;
100
+ is_duplicate: boolean;
101
+ feed_transacted_at: number | null;
102
+ }[];
103
+ getTransactionData: () => {};
104
+ loadAssociatedBeats: (fromDate?: Date, beatsOverride?: Beat[]) => Promise<void>;
51
105
  loadTags: () => Promise<void>;
52
106
  loadTaggings: () => Promise<void>;
53
- loadTransactionRules: () => Promise<void>;
54
- loadTransactions: (startDate?: Date) => Promise<void>;
107
+ loadTransactionRules: (transactionRulesOverrides?: TransactionRule[]) => Promise<void>;
108
+ loadTransactions: (startDate?: Date, endDate?: Date, transactionsOverrides?: Transaction[]) => Promise<void>;
109
+ loadTransactionsByDateRange: (endDate: number, startDate: number) => Promise<void>;
55
110
  modifyTransactionByAccountGuid: (guid: string, updates: Partial<Transaction>) => void;
56
111
  removeTag: (tagGuid: string) => Promise<void>;
57
112
  removeTagging: (taggingGuid: string) => Promise<void>;
58
113
  removeTransaction: (transactionGuid: string) => Promise<void>;
59
114
  setFilter: (filter: TransactionFilter) => void;
60
115
  setIsLoading: (isLoading: boolean) => boolean;
116
+ setSortData: (sortColumn: string, sortDirection: string) => void;
61
117
  splitTransaction: (transaction: Transaction, splits: Transaction[]) => Promise<void>;
62
118
  unSplitTransaction: (guid: string) => Promise<void>;
63
119
  updateTaggings: (tagGuids: string[], transactionGuid: string) => Promise<void>;