@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.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.
- package/CHANGELOG.md +676 -9
- package/README.md +216 -47
- package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
- package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
- package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
- package/dist/AccountUtils-T5_Odvos.mjs +27 -0
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Analytics-CkYXKvco.mjs +53 -0
- package/dist/Analytics-CzGzz_sE.mjs +136 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
- package/dist/Connect-Dk6GZEsA.mjs +39 -0
- package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
- package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
- package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
- package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
- package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/Dialog-CwWc0AbH.mjs +63 -0
- package/dist/Donut-SzzfZDHF.mjs +88 -0
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
- package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
- package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
- package/dist/LineChart-CejWS_rh.mjs +612 -0
- package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Loader-CxeBwuPG.mjs +21 -0
- package/dist/Localization-DnoVyBNK.mjs +38 -0
- package/dist/ManageIncome-B1JfqslT.mjs +595 -0
- package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
- package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
- package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/SelectionBox-B4xELRgp.mjs +48 -0
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-PKlh8caU.mjs} +6 -6
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
- package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
- package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -2
- package/dist/accounts/index.es.js +628 -527
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -3
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.d.ts +2 -1
- package/dist/budgets/index.es.js +989 -813
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -2
- package/dist/cashflow/index.es.js +461 -490
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/components/CurrencyDialog.d.ts +19 -0
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/EmptyState.d.ts +0 -1
- package/dist/common/components/Error.d.ts +13 -0
- package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/TinyBarChart.d.ts +10 -0
- package/dist/common/components/WidgetContainer.d.ts +4 -3
- package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +2 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +12 -0
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -6
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +24 -24
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
- package/dist/common/index.d.ts +3 -3
- package/dist/common/index.es.js +254 -1348
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +2 -2
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/PostMessage.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +7 -6
- package/dist/common/utils/index.d.ts +1 -6
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +4 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.es.js +108 -0
- package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
- package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
- package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +8 -2
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Client.d.ts +1 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/{common → core}/types/Widgets.d.ts +1 -0
- package/dist/{common → core}/types/index.d.ts +4 -3
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
- package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
- package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/{common → core}/utils/Localization.d.ts +9 -1
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/dashboard/index.es.js +39 -38
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +715 -775
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +2 -2
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.d.ts +0 -2
- package/dist/finstrong/index.es.js +1587 -1349
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
- package/dist/goals/GoalsWidget.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -2
- package/dist/goals/index.es.js +707 -787
- package/dist/help/HelpWidget.d.ts +2 -2
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +19 -10
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +53 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
- package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
- package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
- package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
- package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
- package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
- package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
- package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
- package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
- package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
- package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
- package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
- package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
- package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
- package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
- package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
- package/dist/insights/components/insights/index.d.ts +25 -0
- package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
- package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
- package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
- package/dist/insights/components/shared/Charts/index.d.ts +2 -0
- package/dist/insights/components/shared/Confetti.d.ts +5 -0
- package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
- package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
- package/dist/insights/components/shared/Coupon.d.ts +8 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
- package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
- package/dist/insights/components/shared/GradientBox.d.ts +8 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/MenuAction.d.ts +15 -0
- package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
- package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
- package/dist/insights/components/shared/TabContainer.d.ts +8 -0
- package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/insights/components/shared/index.d.ts +2 -0
- package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/index.es.js +4843 -2
- package/dist/insights/themes/Typography.d.ts +1 -0
- package/dist/insights/themes/index.d.ts +1 -0
- package/dist/insights/types/Charts/BarChart.d.ts +96 -0
- package/dist/insights/types/CommonBeat.d.ts +367 -0
- package/dist/insights/types/DirectDeposit.d.ts +16 -0
- package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
- package/dist/investments/InvestmentsWidget.d.ts +2 -2
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +574 -574
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +18 -20
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
- package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +3 -3
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
- package/dist/microinsights/carousel/BeatList.d.ts +3 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +23 -40
- package/dist/microinsights/stores/CopyStore.d.ts +2 -2
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.d.ts +0 -4
- package/dist/networth/index.es.js +302 -314
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.d.ts +0 -2
- package/dist/notifications/index.es.js +101 -93
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +489 -462
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +2 -2
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.d.ts +0 -2
- package/dist/settings/index.es.js +419 -430
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +229 -222
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -5
- package/dist/transactions/index.es.js +344 -351
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +17 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +987 -874
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +5 -3
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +2 -2
- package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
- package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
- package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
- package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
- package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +65 -43
- package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
- package/dist/AccountFields-BRRH37K1.mjs +0 -140
- package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
- package/dist/AccountStore-BFKvXJSD.mjs +0 -244
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BeatApi-De2IaqH2.mjs +0 -21
- package/dist/BeatStore-D_NYuBSz.mjs +0 -81
- package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
- package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
- package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
- package/dist/DateUtil-CVsMhbZU.mjs +0 -48
- package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
- package/dist/Dialog-CWymUiuO.mjs +0 -120
- package/dist/Donut-Dmy3JTWd.mjs +0 -86
- package/dist/Fetch-DecPFeGU.mjs +0 -119
- package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
- package/dist/GoalStore-Dbjgft2i.mjs +0 -422
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-DHj-Bufi.mjs +0 -580
- package/dist/Loader-BSWSYqvn.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
- package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
- package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
- package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
- package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
- package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
- package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
- package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
- package/dist/TransactionApi-CjBoLleL.mjs +0 -86
- package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
- package/dist/TransactionStore-D2aMUClq.mjs +0 -688
- package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
- package/dist/User-CulNdZUr.mjs +0 -314
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
- package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/stores/index.d.ts +0 -3
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/debts/store/DebtsStore.d.ts +0 -9
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -14
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
- package/dist/{common → core}/constants/Category.d.ts +0 -0
- package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- package/dist/{help → core}/constants/Help.d.ts +0 -0
- package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- package/dist/{common → core}/constants/Table.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
- package/dist/{common → core}/stores/UserStore.d.ts +1 -1
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
- /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
- /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
|
@@ -1,688 +0,0 @@
|
|
|
1
|
-
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Box";
|
|
3
|
-
import P from "@mui/material/FormControlLabel";
|
|
4
|
-
import H from "@mui/material/Radio";
|
|
5
|
-
import B from "@mui/material/styles/useTheme";
|
|
6
|
-
import K from "@mui/material/Tooltip";
|
|
7
|
-
import { makeAutoObservable as p } from "mobx";
|
|
8
|
-
import { endOfToday as f } from "date-fns/endOfToday";
|
|
9
|
-
import { formatISO as U } from "date-fns/formatISO";
|
|
10
|
-
import { getUnixTime as O } from "date-fns/getUnixTime";
|
|
11
|
-
import { isBefore as V } from "date-fns/isBefore";
|
|
12
|
-
import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
13
|
-
import { startOfToday as m } from "date-fns/startOfToday";
|
|
14
|
-
import { subDays as v } from "date-fns/subDays";
|
|
15
|
-
import { O as o, a as y, T as b } from "./User-CulNdZUr.mjs";
|
|
16
|
-
import { T as u } from "./TransactionApi-CjBoLleL.mjs";
|
|
17
|
-
import { b as Y } from "./Category-Ccoew_sA.mjs";
|
|
18
|
-
import { f as F } from "./exportTransactionsToCSV-BU1jTY0Q.mjs";
|
|
19
|
-
import { format as W } from "date-fns/format";
|
|
20
|
-
import { fromUnixTime as $ } from "date-fns/fromUnixTime";
|
|
21
|
-
import { f as I, D as C, O as k } from "./Dialog-CWymUiuO.mjs";
|
|
22
|
-
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
23
|
-
import { B as D } from "./BeatApi-De2IaqH2.mjs";
|
|
24
|
-
const Rt = ({
|
|
25
|
-
checked: l = !1,
|
|
26
|
-
label: t,
|
|
27
|
-
sx: a = {},
|
|
28
|
-
tooltip: s = "",
|
|
29
|
-
value: A
|
|
30
|
-
}) => {
|
|
31
|
-
const d = B(), e = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : e;
|
|
32
|
-
return /* @__PURE__ */ E(
|
|
33
|
-
x,
|
|
34
|
-
{
|
|
35
|
-
bgcolor: "background.paper",
|
|
36
|
-
border: `${l ? 3 : 1}px solid`,
|
|
37
|
-
borderColor: c,
|
|
38
|
-
borderRadius: 2,
|
|
39
|
-
mt: -2,
|
|
40
|
-
mx: 8,
|
|
41
|
-
pr: 8,
|
|
42
|
-
py: 4,
|
|
43
|
-
sx: { "&:hover": { borderColor: d.palette.action.active }, ...a },
|
|
44
|
-
children: /* @__PURE__ */ E(K, { title: s, children: /* @__PURE__ */ E(
|
|
45
|
-
P,
|
|
46
|
-
{
|
|
47
|
-
control: /* @__PURE__ */ E(
|
|
48
|
-
H,
|
|
49
|
-
{
|
|
50
|
-
disableRipple: !0,
|
|
51
|
-
sx: { "&.Mui-checked": { color: d.palette.action.active } }
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
label: t,
|
|
55
|
-
labelPlacement: "start",
|
|
56
|
-
sx: { ml: 0, pl: 8 },
|
|
57
|
-
value: A
|
|
58
|
-
}
|
|
59
|
-
) })
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}, G = {
|
|
63
|
-
ASC: "ASC",
|
|
64
|
-
DESC: "DESC"
|
|
65
|
-
}, n = {
|
|
66
|
-
ADD: "Add",
|
|
67
|
-
ADD_CATEGORY: "Add Category",
|
|
68
|
-
CHANGE_CATEGORY: "Change Category",
|
|
69
|
-
CLOSE: "Close",
|
|
70
|
-
DELETE: "Delete",
|
|
71
|
-
EDIT: "Edit",
|
|
72
|
-
SAVE: "Save",
|
|
73
|
-
SPLIT: "Split",
|
|
74
|
-
SELECT: "Select",
|
|
75
|
-
UNSPLIT: "Unsplit"
|
|
76
|
-
}, T = {
|
|
77
|
-
TRANSACTION_DETAILS: "Transaction Details",
|
|
78
|
-
TRANSACTIONS_LIST: "Transactions List",
|
|
79
|
-
TRANSACTIONS_WIDGET: "Transactions Widget"
|
|
80
|
-
}, r = {
|
|
81
|
-
ADD_TRANSACTION: "Manual Transaction",
|
|
82
|
-
CATEGORY: "Category",
|
|
83
|
-
DATE: "Date",
|
|
84
|
-
DELETE_MERCHANT_LOGO: "Merchant Logo",
|
|
85
|
-
DELETE_TRANSACTION: "Delete Transaction",
|
|
86
|
-
DESCRIPTION: "Description",
|
|
87
|
-
EXPORT_CSV: "Export CSV",
|
|
88
|
-
FLAG: "Flag",
|
|
89
|
-
HIDE_TRANSACTION: "Hide Transaction",
|
|
90
|
-
MEMO: "Memo",
|
|
91
|
-
SPLITS: "Split Transactions",
|
|
92
|
-
TAGS: "Tags",
|
|
93
|
-
TAG_ADD: "Add Tag",
|
|
94
|
-
TAG_DELETE: "Delete Tag",
|
|
95
|
-
TAG_EDIT: "Edit Tag",
|
|
96
|
-
TRANSACTION: "Transaction",
|
|
97
|
-
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
98
|
-
}, R = {
|
|
99
|
-
// splits
|
|
100
|
-
[o.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
101
|
-
action: n.SELECT,
|
|
102
|
-
category: T.TRANSACTION_DETAILS,
|
|
103
|
-
label: r.SPLITS
|
|
104
|
-
},
|
|
105
|
-
[o.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
106
|
-
action: n.ADD_CATEGORY,
|
|
107
|
-
category: T.TRANSACTION_DETAILS,
|
|
108
|
-
label: r.SPLITS
|
|
109
|
-
},
|
|
110
|
-
[o.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
111
|
-
action: n.DELETE,
|
|
112
|
-
category: T.TRANSACTION_DETAILS,
|
|
113
|
-
label: r.SPLITS
|
|
114
|
-
},
|
|
115
|
-
[o.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
116
|
-
action: n.SPLIT,
|
|
117
|
-
category: T.TRANSACTION_DETAILS,
|
|
118
|
-
label: r.SPLITS
|
|
119
|
-
},
|
|
120
|
-
[o.ON_TRANSACTION_UNSPLIT]: {
|
|
121
|
-
action: n.UNSPLIT,
|
|
122
|
-
category: T.TRANSACTION_DETAILS,
|
|
123
|
-
label: r.SPLITS
|
|
124
|
-
},
|
|
125
|
-
// category
|
|
126
|
-
[o.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
127
|
-
action: n.SELECT,
|
|
128
|
-
category: T.TRANSACTIONS_LIST,
|
|
129
|
-
label: r.CATEGORY
|
|
130
|
-
},
|
|
131
|
-
[o.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
132
|
-
action: n.CHANGE_CATEGORY,
|
|
133
|
-
category: T.TRANSACTION_DETAILS,
|
|
134
|
-
label: r.CATEGORY
|
|
135
|
-
},
|
|
136
|
-
// date
|
|
137
|
-
[o.ON_TRANSACTION_DATE_CHANGED]: {
|
|
138
|
-
action: n.SAVE,
|
|
139
|
-
category: T.TRANSACTION_DETAILS,
|
|
140
|
-
label: r.DATE
|
|
141
|
-
},
|
|
142
|
-
[o.ON_TRANSACTION_DATE_CLICK]: {
|
|
143
|
-
action: n.SELECT,
|
|
144
|
-
category: T.TRANSACTION_DETAILS,
|
|
145
|
-
label: r.DATE
|
|
146
|
-
},
|
|
147
|
-
// merchant logo
|
|
148
|
-
[o.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
149
|
-
action: n.CLOSE,
|
|
150
|
-
category: T.TRANSACTION_DETAILS,
|
|
151
|
-
label: r.DELETE_MERCHANT_LOGO
|
|
152
|
-
},
|
|
153
|
-
[o.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
154
|
-
action: n.SELECT,
|
|
155
|
-
category: T.TRANSACTION_DETAILS,
|
|
156
|
-
label: r.DELETE_MERCHANT_LOGO
|
|
157
|
-
},
|
|
158
|
-
[o.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
159
|
-
action: n.DELETE,
|
|
160
|
-
category: T.TRANSACTION_DETAILS,
|
|
161
|
-
label: r.DELETE_MERCHANT_LOGO
|
|
162
|
-
},
|
|
163
|
-
// description
|
|
164
|
-
[o.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
165
|
-
action: n.EDIT,
|
|
166
|
-
category: T.TRANSACTION_DETAILS,
|
|
167
|
-
label: r.DESCRIPTION
|
|
168
|
-
},
|
|
169
|
-
[o.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
170
|
-
action: n.SAVE,
|
|
171
|
-
category: T.TRANSACTION_DETAILS,
|
|
172
|
-
label: r.DESCRIPTION
|
|
173
|
-
},
|
|
174
|
-
// hide transactions
|
|
175
|
-
[o.ON_TRANSACTION_HIDDEN]: {
|
|
176
|
-
action: n.SAVE,
|
|
177
|
-
category: T.TRANSACTION_DETAILS,
|
|
178
|
-
label: r.HIDE_TRANSACTION
|
|
179
|
-
},
|
|
180
|
-
[o.ON_TRANSACTION_HIDE_CLICK]: {
|
|
181
|
-
action: n.SELECT,
|
|
182
|
-
category: T.TRANSACTION_DETAILS,
|
|
183
|
-
label: r.HIDE_TRANSACTION
|
|
184
|
-
},
|
|
185
|
-
[o.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
186
|
-
action: n.CLOSE,
|
|
187
|
-
category: T.TRANSACTION_DETAILS,
|
|
188
|
-
label: r.HIDE_TRANSACTION
|
|
189
|
-
},
|
|
190
|
-
// transaction list
|
|
191
|
-
[o.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
192
|
-
action: n.SELECT,
|
|
193
|
-
category: T.TRANSACTIONS_LIST,
|
|
194
|
-
label: r.TRANSACTION
|
|
195
|
-
},
|
|
196
|
-
// memo
|
|
197
|
-
[o.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
198
|
-
action: n.SAVE,
|
|
199
|
-
category: T.TRANSACTION_DETAILS,
|
|
200
|
-
label: r.MEMO
|
|
201
|
-
},
|
|
202
|
-
[o.ON_TRANSACTION_MEMO_CLICK]: {
|
|
203
|
-
action: n.SELECT,
|
|
204
|
-
category: T.TRANSACTION_DETAILS,
|
|
205
|
-
label: r.MEMO
|
|
206
|
-
},
|
|
207
|
-
// tags
|
|
208
|
-
[o.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
209
|
-
action: n.SAVE,
|
|
210
|
-
category: T.TRANSACTION_DETAILS,
|
|
211
|
-
label: r.TAGS
|
|
212
|
-
},
|
|
213
|
-
[o.ON_TRANSACTION_TAGS_CLICK]: {
|
|
214
|
-
action: n.SELECT,
|
|
215
|
-
category: T.TRANSACTION_DETAILS,
|
|
216
|
-
label: r.TAGS
|
|
217
|
-
},
|
|
218
|
-
[o.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
219
|
-
action: n.CLOSE,
|
|
220
|
-
category: T.TRANSACTION_DETAILS,
|
|
221
|
-
label: r.TAGS
|
|
222
|
-
},
|
|
223
|
-
[o.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
224
|
-
action: n.ADD,
|
|
225
|
-
category: T.TRANSACTION_DETAILS,
|
|
226
|
-
label: r.TAG_ADD
|
|
227
|
-
},
|
|
228
|
-
[o.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
229
|
-
action: n.SAVE,
|
|
230
|
-
category: T.TRANSACTION_DETAILS,
|
|
231
|
-
label: r.TAG_ADD
|
|
232
|
-
},
|
|
233
|
-
[o.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
234
|
-
action: n.SELECT,
|
|
235
|
-
category: T.TRANSACTION_DETAILS,
|
|
236
|
-
label: r.TAG_DELETE
|
|
237
|
-
},
|
|
238
|
-
[o.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
239
|
-
action: n.CLOSE,
|
|
240
|
-
category: T.TRANSACTION_DETAILS,
|
|
241
|
-
label: r.TAG_DELETE
|
|
242
|
-
},
|
|
243
|
-
[o.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
244
|
-
action: n.SAVE,
|
|
245
|
-
category: T.TRANSACTION_DETAILS,
|
|
246
|
-
label: r.TAG_DELETE
|
|
247
|
-
},
|
|
248
|
-
[o.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
249
|
-
action: n.EDIT,
|
|
250
|
-
category: T.TRANSACTION_DETAILS,
|
|
251
|
-
label: r.TAG_EDIT
|
|
252
|
-
},
|
|
253
|
-
[o.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
254
|
-
action: n.SAVE,
|
|
255
|
-
category: T.TRANSACTION_DETAILS,
|
|
256
|
-
label: r.TAG_EDIT
|
|
257
|
-
},
|
|
258
|
-
// flag
|
|
259
|
-
[o.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
260
|
-
action: n.SELECT,
|
|
261
|
-
category: T.TRANSACTION_DETAILS,
|
|
262
|
-
label: r.FLAG
|
|
263
|
-
},
|
|
264
|
-
// hide
|
|
265
|
-
[o.ON_TRANSACTION_UNHIDDEN]: {
|
|
266
|
-
action: n.SAVE,
|
|
267
|
-
category: T.TRANSACTION_DETAILS,
|
|
268
|
-
label: r.UNHIDE_TRANSACTION
|
|
269
|
-
},
|
|
270
|
-
[o.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
271
|
-
action: n.SELECT,
|
|
272
|
-
category: T.TRANSACTION_DETAILS,
|
|
273
|
-
label: r.UNHIDE_TRANSACTION
|
|
274
|
-
},
|
|
275
|
-
[o.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
276
|
-
action: n.CLOSE,
|
|
277
|
-
category: T.TRANSACTION_DETAILS,
|
|
278
|
-
label: r.UNHIDE_TRANSACTION
|
|
279
|
-
},
|
|
280
|
-
// export CSV
|
|
281
|
-
[o.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
282
|
-
action: n.SELECT,
|
|
283
|
-
category: T.TRANSACTIONS_WIDGET,
|
|
284
|
-
label: r.EXPORT_CSV
|
|
285
|
-
},
|
|
286
|
-
// add transaction
|
|
287
|
-
[o.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
288
|
-
action: n.SELECT,
|
|
289
|
-
category: T.TRANSACTIONS_WIDGET,
|
|
290
|
-
label: r.ADD_TRANSACTION
|
|
291
|
-
},
|
|
292
|
-
[o.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
293
|
-
action: n.ADD,
|
|
294
|
-
category: T.TRANSACTIONS_WIDGET,
|
|
295
|
-
label: r.ADD_TRANSACTION
|
|
296
|
-
},
|
|
297
|
-
[o.ON_TRANSACTION_DELETE_CLICK]: {
|
|
298
|
-
action: n.SELECT,
|
|
299
|
-
category: T.TRANSACTIONS_WIDGET,
|
|
300
|
-
label: r.DELETE_TRANSACTION
|
|
301
|
-
},
|
|
302
|
-
[o.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
303
|
-
action: n.CLOSE,
|
|
304
|
-
category: T.TRANSACTIONS_WIDGET,
|
|
305
|
-
label: r.DELETE_TRANSACTION
|
|
306
|
-
},
|
|
307
|
-
[o.ON_TRANSACTION_DELETE_DELETED]: {
|
|
308
|
-
action: n.DELETE,
|
|
309
|
-
category: T.TRANSACTIONS_WIDGET,
|
|
310
|
-
label: r.DELETE_TRANSACTION
|
|
311
|
-
}
|
|
312
|
-
}, X = async (l, t) => !t || !R[l] ? null : t.sendAnalyticEvent(R[l]), L = {
|
|
313
|
-
DATE: "date",
|
|
314
|
-
AMOUNT: "amount"
|
|
315
|
-
}, j = (l, t, a, s = []) => {
|
|
316
|
-
const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), e = s.reduce((c, i) => {
|
|
317
|
-
const { transaction_guid: S, tag_guid: N } = i;
|
|
318
|
-
if (!c[S])
|
|
319
|
-
return {
|
|
320
|
-
...c,
|
|
321
|
-
[S]: [N]
|
|
322
|
-
};
|
|
323
|
-
const g = [...c[S], N];
|
|
324
|
-
return {
|
|
325
|
-
...c,
|
|
326
|
-
[S]: g
|
|
327
|
-
};
|
|
328
|
-
}, {});
|
|
329
|
-
return l.map((c) => {
|
|
330
|
-
const i = A[c.account_guid], S = c.category_guid ? d[c.category_guid] : null, N = e[c.guid] ?? [];
|
|
331
|
-
return {
|
|
332
|
-
...c,
|
|
333
|
-
account: i?.user_name || "Unknown",
|
|
334
|
-
accountIsClosed: i?.is_closed,
|
|
335
|
-
accountIsHidden: i?.is_hidden,
|
|
336
|
-
category: S?.name || "Uncategorized",
|
|
337
|
-
isIncome: c.top_level_category_guid === Y.INCOME,
|
|
338
|
-
isPending: c.feed_status === y.PENDING,
|
|
339
|
-
number: i?.account_number || "",
|
|
340
|
-
payee: c.description,
|
|
341
|
-
tags: N
|
|
342
|
-
};
|
|
343
|
-
});
|
|
344
|
-
}, Z = "uncategorized", q = (l, t, a, s, A, d) => {
|
|
345
|
-
const e = J(l, A, d), c = Q(e, a, s);
|
|
346
|
-
return t.forEach((i) => {
|
|
347
|
-
const S = c.findIndex((g) => g.guid === i), N = d.filter((g) => g.parent_guid === i);
|
|
348
|
-
c.splice(S + 1, 0, ...N);
|
|
349
|
-
}), c;
|
|
350
|
-
}, J = (l, t, a) => {
|
|
351
|
-
const {
|
|
352
|
-
accounts: s = [],
|
|
353
|
-
dateRange: A = { start: h(m()), end: f() },
|
|
354
|
-
custom: d = () => !0,
|
|
355
|
-
searchTerm: e = "",
|
|
356
|
-
showSplits: c = !1
|
|
357
|
-
} = l;
|
|
358
|
-
return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!s.find((S) => S === i.account_guid)).filter((i) => i.date >= O(A.start) && i.date <= O(A.end)).filter(d).filter((i) => {
|
|
359
|
-
if (e === Z && i.has_been_split)
|
|
360
|
-
return !1;
|
|
361
|
-
if (/^spl/i.test(e) && (i.has_been_split || i.parent_guid))
|
|
362
|
-
return !0;
|
|
363
|
-
const N = i.tags.some(
|
|
364
|
-
(w) => _(e, t.find((M) => M.guid === w)?.name)
|
|
365
|
-
), g = $(i.date);
|
|
366
|
-
return _(e, i.payee) || _(e, i.feed_description) || _(e, i.category) || _(e, I(g, C.MONTH)) || _(e, I(g, C.DAY)) || _(e, I(g, C.FULL_MONTH_DAY)) || _(e, I(g, C.MONTH_DAY_YEAR)) || _(e, W(g, k)) || _(e, i.account) || _(e, `${i.amount}`) || _(e, i.memo) || N;
|
|
367
|
-
});
|
|
368
|
-
}, Q = (l, t, a) => [...l].sort((s, A) => {
|
|
369
|
-
const d = t, e = (s[d] || "") > (A[d] || "");
|
|
370
|
-
let c = e ? -1 : 1, i = e ? 1 : -1;
|
|
371
|
-
return (t === L.DATE || t === L.AMOUNT) && (c = e ? 1 : -1, i = e ? -1 : 1), a === G.ASC ? c : i;
|
|
372
|
-
}), _ = (l, t) => {
|
|
373
|
-
const a = l.toLowerCase().split(" "), s = t?.toString().toLowerCase() ?? "";
|
|
374
|
-
return a.every((A) => s.indexOf(A) > -1);
|
|
375
|
-
}, tt = {
|
|
376
|
-
account_guid: "",
|
|
377
|
-
amount: 0,
|
|
378
|
-
currency_code: "",
|
|
379
|
-
date: 0,
|
|
380
|
-
description: "",
|
|
381
|
-
duplicate: !1,
|
|
382
|
-
feed_description: "",
|
|
383
|
-
feed_status: y.POSTED,
|
|
384
|
-
feed_transaction_date: 0,
|
|
385
|
-
has_been_split: !1,
|
|
386
|
-
has_been_viewed: !1,
|
|
387
|
-
is_cleared: !1,
|
|
388
|
-
is_flagged: !1,
|
|
389
|
-
is_hidden: !1,
|
|
390
|
-
is_manual: !0,
|
|
391
|
-
is_personal: !0,
|
|
392
|
-
is_reimbursable: !1,
|
|
393
|
-
is_subscription: !1,
|
|
394
|
-
is_void: !1,
|
|
395
|
-
revision: 1,
|
|
396
|
-
transaction_type: b.DEBIT,
|
|
397
|
-
user_guid: "",
|
|
398
|
-
is_duplicate: !1,
|
|
399
|
-
feed_transacted_at: 0,
|
|
400
|
-
guid: "",
|
|
401
|
-
memo: void 0,
|
|
402
|
-
tags: []
|
|
403
|
-
};
|
|
404
|
-
class at {
|
|
405
|
-
beginDate = h(/* @__PURE__ */ new Date());
|
|
406
|
-
endDate = z(/* @__PURE__ */ new Date());
|
|
407
|
-
expandedSplits = [];
|
|
408
|
-
height = 550;
|
|
409
|
-
width = 1e3;
|
|
410
|
-
shouldDisableDrawerScroll = !1;
|
|
411
|
-
searchValue = "";
|
|
412
|
-
selectedAccountGuids = [];
|
|
413
|
-
manualTransaction = tt;
|
|
414
|
-
isAmountValid = !1;
|
|
415
|
-
showInsights = !1;
|
|
416
|
-
constructor() {
|
|
417
|
-
p(this);
|
|
418
|
-
}
|
|
419
|
-
setDateRange = (t, a) => {
|
|
420
|
-
this.beginDate = t, this.endDate = a;
|
|
421
|
-
};
|
|
422
|
-
setIsAmountValid = (t) => this.isAmountValid = t;
|
|
423
|
-
setSearchValue = (t) => this.searchValue = t;
|
|
424
|
-
setSelectedAccountGuids = (t) => this.selectedAccountGuids = t;
|
|
425
|
-
setShouldDisableDrawerScroll = (t) => this.shouldDisableDrawerScroll = t;
|
|
426
|
-
setShowInsights = (t) => {
|
|
427
|
-
this.showInsights = t;
|
|
428
|
-
};
|
|
429
|
-
setSize = (t, a) => {
|
|
430
|
-
this.height = t, this.width = a;
|
|
431
|
-
};
|
|
432
|
-
toggleSplit = (t) => {
|
|
433
|
-
const a = [...this.expandedSplits], s = this.expandedSplits.findIndex((A) => A === t);
|
|
434
|
-
s >= 0 ? a.splice(s, 1) : a.push(t), this.expandedSplits = a;
|
|
435
|
-
};
|
|
436
|
-
clearExpandedSplits = () => {
|
|
437
|
-
this.expandedSplits.length !== 0 && (this.expandedSplits = []);
|
|
438
|
-
};
|
|
439
|
-
updateManualTransaction = (t) => {
|
|
440
|
-
this.manualTransaction = t;
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
class pt {
|
|
444
|
-
globalStore;
|
|
445
|
-
uiStore;
|
|
446
|
-
api = new u("/", "");
|
|
447
|
-
beatApi = new D("/", "");
|
|
448
|
-
associatedBeats = [];
|
|
449
|
-
associatedBeatsLoaded = !1;
|
|
450
|
-
associatedBeatsLoading = !1;
|
|
451
|
-
transactions = [];
|
|
452
|
-
transactionsLoaded = !1;
|
|
453
|
-
transactionsLoading = !1;
|
|
454
|
-
taggings = [];
|
|
455
|
-
taggingsLoaded = !1;
|
|
456
|
-
taggingsLoading = !1;
|
|
457
|
-
tags = [];
|
|
458
|
-
tagsLoaded = !1;
|
|
459
|
-
tagsLoading = !1;
|
|
460
|
-
transactionRules = [];
|
|
461
|
-
transactionRulesLoaded = !1;
|
|
462
|
-
transactionRulesLoading = !1;
|
|
463
|
-
cachedStartDate = v(m(), 90);
|
|
464
|
-
filter = {};
|
|
465
|
-
isLoading = !0;
|
|
466
|
-
sortColumn = L.DATE;
|
|
467
|
-
sortDirection = G.DESC;
|
|
468
|
-
onAnalyticEvent = X;
|
|
469
|
-
constructor(t) {
|
|
470
|
-
this.globalStore = t, this.uiStore = new at(), this.api = new u(
|
|
471
|
-
t.endpoint,
|
|
472
|
-
t.sessionToken,
|
|
473
|
-
t.onError
|
|
474
|
-
), this.beatApi = new D(t.endpoint, t.sessionToken, t.onError), p(this);
|
|
475
|
-
}
|
|
476
|
-
loadTransactionData = async () => {
|
|
477
|
-
this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
|
|
478
|
-
this.loadAssociatedBeats(h(/* @__PURE__ */ new Date())),
|
|
479
|
-
this.loadTags(),
|
|
480
|
-
this.loadTaggings(),
|
|
481
|
-
this.loadTransactionRules(),
|
|
482
|
-
// By default loads 90 days of transactions
|
|
483
|
-
this.loadTransactions(this.cachedStartDate)
|
|
484
|
-
]);
|
|
485
|
-
};
|
|
486
|
-
get isTransactionDataLoaded() {
|
|
487
|
-
return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
|
|
488
|
-
}
|
|
489
|
-
get detailedTransactions() {
|
|
490
|
-
return this.isTransactionDataLoaded ? j(
|
|
491
|
-
this.transactions,
|
|
492
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
493
|
-
this.globalStore.categoryStore.categories,
|
|
494
|
-
this.taggings
|
|
495
|
-
) : [];
|
|
496
|
-
}
|
|
497
|
-
get sortedTransactions() {
|
|
498
|
-
return q(
|
|
499
|
-
this.filter,
|
|
500
|
-
this.uiStore.expandedSplits,
|
|
501
|
-
this.sortColumn,
|
|
502
|
-
this.sortDirection,
|
|
503
|
-
this.tags,
|
|
504
|
-
this.detailedTransactions
|
|
505
|
-
);
|
|
506
|
-
}
|
|
507
|
-
get sortedTransactionsWithSplits() {
|
|
508
|
-
return F(this.sortedTransactions, this.transactions);
|
|
509
|
-
}
|
|
510
|
-
setAssociatedBeats = (t) => {
|
|
511
|
-
this.associatedBeats = t, this.associatedBeatsLoading = !1, this.associatedBeatsLoaded = !0;
|
|
512
|
-
};
|
|
513
|
-
setTaggings = (t) => {
|
|
514
|
-
this.taggings = t, this.taggingsLoading = !1, this.taggingsLoaded = !0;
|
|
515
|
-
};
|
|
516
|
-
setTags = (t) => {
|
|
517
|
-
this.tags = t, this.tagsLoading = !1, this.tagsLoaded = !0;
|
|
518
|
-
};
|
|
519
|
-
setTransactionRules = (t) => {
|
|
520
|
-
this.transactionRules = t, this.transactionRulesLoading = !1, this.transactionRulesLoaded = !0;
|
|
521
|
-
};
|
|
522
|
-
setTransactions = (t) => {
|
|
523
|
-
this.transactions = t, this.transactionsLoading = !1, this.transactionsLoaded = !0;
|
|
524
|
-
};
|
|
525
|
-
addTag = async (t) => {
|
|
526
|
-
await this.api.addTag({ name: t }), await this.loadTags();
|
|
527
|
-
};
|
|
528
|
-
addTagging = async (t, a) => {
|
|
529
|
-
await this.api.addTagging({
|
|
530
|
-
tag_guid: t,
|
|
531
|
-
transaction_guid: a
|
|
532
|
-
});
|
|
533
|
-
};
|
|
534
|
-
addOrUpdateTransactionRule = async (t, a) => {
|
|
535
|
-
const s = this.transactionRules.find(
|
|
536
|
-
(A) => A.guid === a.user_transaction_rule_guid
|
|
537
|
-
);
|
|
538
|
-
s ? await this.api.updateTransactionRule({
|
|
539
|
-
...s,
|
|
540
|
-
category_guid: t,
|
|
541
|
-
description: a.description
|
|
542
|
-
}) : await this.api.addTransactionRule({
|
|
543
|
-
category_guid: t,
|
|
544
|
-
description: a.description,
|
|
545
|
-
match_description: a.description
|
|
546
|
-
}), await this.loadTransactionRules();
|
|
547
|
-
};
|
|
548
|
-
addTransaction = async (t) => {
|
|
549
|
-
const a = await this.api.addTransaction(t);
|
|
550
|
-
if (a) {
|
|
551
|
-
this.setTransactions([a, ...this.transactions]);
|
|
552
|
-
const s = a.transaction_type === b.CREDIT ? a.amount : -a.amount;
|
|
553
|
-
this.globalStore.accountStore.updateAccountBalance(a.account_guid, s);
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
loadAssociatedBeats = async (t) => {
|
|
557
|
-
if (this.associatedBeatsLoading) return;
|
|
558
|
-
this.associatedBeatsLoading = !0;
|
|
559
|
-
const a = t ? U(t, { representation: "date" }) : void 0;
|
|
560
|
-
try {
|
|
561
|
-
const s = await this.beatApi.getBeatsWithAssociatedTransaction(a);
|
|
562
|
-
this.setAssociatedBeats(s);
|
|
563
|
-
} catch (s) {
|
|
564
|
-
console.error(`Error occurred while loading associated beats: ${s}`);
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
loadTags = async () => {
|
|
568
|
-
if (!this.tagsLoading) {
|
|
569
|
-
this.tagsLoading = !0;
|
|
570
|
-
try {
|
|
571
|
-
const t = await this.api.getTags();
|
|
572
|
-
this.setTags(t);
|
|
573
|
-
} catch (t) {
|
|
574
|
-
console.error(`Error occurred while loading tags: ${t}`);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
loadTaggings = async () => {
|
|
579
|
-
if (!this.taggingsLoading) {
|
|
580
|
-
this.taggingsLoading = !0;
|
|
581
|
-
try {
|
|
582
|
-
const t = await this.api.getTaggings();
|
|
583
|
-
this.setTaggings(t);
|
|
584
|
-
} catch (t) {
|
|
585
|
-
console.error(`Error occurred while loading taggings: ${t}`);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
loadTransactionRules = async () => {
|
|
590
|
-
if (this.transactionRulesLoading) return;
|
|
591
|
-
this.transactionRulesLoading = !0;
|
|
592
|
-
const t = await this.api.getTransactionRules();
|
|
593
|
-
this.setTransactionRules(t);
|
|
594
|
-
};
|
|
595
|
-
loadTransactions = async (t = this.cachedStartDate) => {
|
|
596
|
-
if (!this.transactionsLoading) {
|
|
597
|
-
this.setIsLoading(!0), this.transactionsLoading = !0, this.transactions = [];
|
|
598
|
-
try {
|
|
599
|
-
const a = await this.api.getTransactionsByDateRange(
|
|
600
|
-
O(t),
|
|
601
|
-
O(f())
|
|
602
|
-
);
|
|
603
|
-
this.setTransactions(a);
|
|
604
|
-
} catch (a) {
|
|
605
|
-
console.error(`Error occurred while loading transactions: ${a}`);
|
|
606
|
-
}
|
|
607
|
-
this.setIsLoading(!1);
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
modifyTransactionByAccountGuid = (t, a) => {
|
|
611
|
-
this.transactions = this.transactions.map(
|
|
612
|
-
(s) => s.account_guid === t ? { ...s, ...a } : s
|
|
613
|
-
);
|
|
614
|
-
};
|
|
615
|
-
removeTag = async (t) => {
|
|
616
|
-
await this.api.removeTag(t), await this.loadTags();
|
|
617
|
-
};
|
|
618
|
-
removeTagging = async (t) => {
|
|
619
|
-
await this.api.removeTagging(t);
|
|
620
|
-
};
|
|
621
|
-
removeTransaction = async (t) => {
|
|
622
|
-
await this.api.removeTransaction(t);
|
|
623
|
-
const a = this.transactions.findIndex((s) => s.guid === t);
|
|
624
|
-
if (a >= 0) {
|
|
625
|
-
const s = [...this.transactions];
|
|
626
|
-
s.splice(a, 1), this.setTransactions(s);
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
setFilter = (t) => {
|
|
630
|
-
this.filter = t, t.dateRange && V(t.dateRange.start, this.cachedStartDate) && this.loadTransactions(t.dateRange.start).then(() => {
|
|
631
|
-
t.dateRange && (this.cachedStartDate = t.dateRange.start);
|
|
632
|
-
});
|
|
633
|
-
};
|
|
634
|
-
setIsLoading = (t) => this.isLoading = t;
|
|
635
|
-
splitTransaction = async (t, a) => {
|
|
636
|
-
const s = await this.api.updateTransaction(t), A = [];
|
|
637
|
-
for (let e = 0; e < a.length; e++) {
|
|
638
|
-
const c = await this.api.addTransaction(a[e]);
|
|
639
|
-
A.push(c);
|
|
640
|
-
}
|
|
641
|
-
const d = this.transactions.findIndex((e) => e.guid === t.guid);
|
|
642
|
-
d >= 0 && this.setTransactions([
|
|
643
|
-
...this.transactions.slice(0, d),
|
|
644
|
-
s,
|
|
645
|
-
...this.transactions.slice(d + 1),
|
|
646
|
-
...A
|
|
647
|
-
]);
|
|
648
|
-
};
|
|
649
|
-
unSplitTransaction = async (t) => {
|
|
650
|
-
const a = this.transactions.filter((e) => e.parent_guid === t);
|
|
651
|
-
await this.api.removeTransactionSplit(t);
|
|
652
|
-
const s = [...this.transactions];
|
|
653
|
-
a.forEach((e) => {
|
|
654
|
-
const c = s.findIndex((i) => i.guid === e.guid);
|
|
655
|
-
c >= 0 && s.splice(c, 1);
|
|
656
|
-
});
|
|
657
|
-
const A = s.findIndex((e) => e.guid === t), d = s[A];
|
|
658
|
-
d.has_been_split = !1, A >= 0 && this.setTransactions([
|
|
659
|
-
...s.slice(0, A),
|
|
660
|
-
d,
|
|
661
|
-
...s.slice(A + 1)
|
|
662
|
-
]);
|
|
663
|
-
};
|
|
664
|
-
updateTaggings = async (t, a) => {
|
|
665
|
-
const s = this.taggings.filter((e) => e.transaction_guid === a), A = new Set(s.map((e) => e.tag_guid)), d = new Set(t);
|
|
666
|
-
for (const e of t)
|
|
667
|
-
A.has(e) || await this.addTagging(e, a);
|
|
668
|
-
for (const e of s)
|
|
669
|
-
d.has(e.tag_guid) || await this.removeTagging(e.guid);
|
|
670
|
-
await this.loadTaggings();
|
|
671
|
-
};
|
|
672
|
-
updateTag = async (t) => {
|
|
673
|
-
await this.api.updateTag(t), await this.loadTags();
|
|
674
|
-
};
|
|
675
|
-
updateTransaction = async (t) => {
|
|
676
|
-
const a = await this.api.updateTransaction(t), s = this.transactions.findIndex((A) => A.guid === t.guid);
|
|
677
|
-
s >= 0 && this.setTransactions([
|
|
678
|
-
...this.transactions.slice(0, s),
|
|
679
|
-
a,
|
|
680
|
-
...this.transactions.slice(s + 1)
|
|
681
|
-
]);
|
|
682
|
-
};
|
|
683
|
-
}
|
|
684
|
-
export {
|
|
685
|
-
tt as D,
|
|
686
|
-
Rt as S,
|
|
687
|
-
pt as T
|
|
688
|
-
};
|