@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2
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 +335 -0
- package/README.md +5 -3
- package/dist/{Account-CMjOp7S2.mjs → Account-BiB1F8lL.mjs} +2 -2
- package/dist/{Account-BIKn4XEZ.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-ChQr5PAZ.mjs} +1 -1
- package/dist/AccountDetailsHeader-D9gbTbUt.mjs +95 -0
- package/dist/{AccountFields-DuFtmuud.mjs → AccountFields-CxqONzjY.mjs} +12 -12
- package/dist/AccountListItem-D9WJDbZ1.mjs +94 -0
- package/dist/{AccountStore-Cq_w2Hfb.mjs → AccountStore-DpYvNnql.mjs} +15 -9
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{Analytics-i5h6BxR1.mjs → Analytics-BYItVAe-.mjs} +10 -0
- package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-EFHXULDx.mjs} +1 -1
- package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C6CAT-ce.mjs} +1 -1
- package/dist/BudgetUtil-CLhRnCoX.mjs +479 -0
- package/dist/CashflowStore-CeAzChyD.mjs +91 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-CzRxYpiP.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +118 -110
- package/dist/{CategoryStore-V-0d9oje.mjs → CategoryStore-FTxUbn0f.mjs} +3 -3
- package/dist/{CategoryUtil-DB-9JMbi.mjs → CategoryUtil-BVixr0d5.mjs} +4 -4
- package/dist/Connect-eYIWqCEr.mjs +39 -0
- package/dist/ConnectDrawer-C0wjwcJt.mjs +58 -0
- package/dist/{ConnectionsDrawer-DMBBzlIJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +10 -9
- package/dist/CurrencyInput-DuMktPu3.mjs +85 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CA-E5N_y.mjs} +1 -1
- package/dist/{DateFormats-Cs-NbEZ7.mjs → DateFormats-BMpMrZpW.mjs} +1 -1
- package/dist/{DateUtil-CVXVMbjf.mjs → DateUtil-wcYTmDRD.mjs} +1 -1
- package/dist/{DebtsStore-Dv_T7Dts.mjs → DebtsStore-BZqNLaqd.mjs} +3 -3
- package/dist/Dialog-Ck34yr-d.mjs +63 -0
- package/dist/{Donut-DKY8mL3P.mjs → Donut-CpxJlVvJ.mjs} +29 -27
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-Bbe4AMB1.mjs} +14 -14
- package/dist/{ExportCsvAction-Cc14QGA9.mjs → ExportCsvAction-ErKh7wJ2.mjs} +4 -4
- package/dist/{Fetch-DecPFeGU.mjs → Fetch-B6tMJC1r.mjs} +2 -1
- package/dist/{FinstrongStore-DW7-LvAh.mjs → FinstrongStore-BQxXxxYD.mjs} +129 -129
- package/dist/GlobalAccountFilter-B73Pw1hJ.mjs +237 -0
- package/dist/Goal-0loDagc5.mjs +6 -0
- package/dist/GoalStore-fgXt--2Y.mjs +418 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CgpJK03Q.mjs → Help-B8mD4aLJ.mjs} +6 -6
- package/dist/{Help-DOPJteew.mjs → Help-D-laTbKu.mjs} +544 -493
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-EAr5ox5U.mjs +612 -0
- package/dist/{ListItemAction-engf-T9W.mjs → ListItemAction-4KB7P75M.mjs} +2 -2
- package/dist/Loader-D3rjKx72.mjs +21 -0
- package/dist/Localization-CPkpIwIx.mjs +37 -0
- package/dist/{ManageIncome-BVqHHIO7.mjs → ManageIncome-Cc-wba0I.mjs} +118 -113
- package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-BzGi4JAZ.mjs} +1 -1
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +45 -0
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +66 -0
- package/dist/{NetWorthStore-B6ziBtaH.mjs → NetWorthStore-BqZ44-4M.mjs} +5 -5
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-CEzQSKfg.mjs → NotificationSettings-D7VqsrZy.mjs} +160 -159
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-D_e8zo5M.mjs} +28 -21
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting-QCaNwbjv.mjs} +1 -1
- package/dist/{Transaction-C8QRYhYc.mjs → OnClickEvents-CseHDZ94.mjs} +32 -25
- package/dist/{OriginalBalanceAction-CYqr8z8w.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +10 -10
- package/dist/{RecurringSettings-rEotGPcM.mjs → RecurringSettings-BN9H5ALr.mjs} +4 -4
- package/dist/RecurringTransactions-BCJp-Nap.mjs +297 -0
- package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs} +11 -10
- package/dist/RepeatingTransaction-DF4vJn_v.mjs +7 -0
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-DZFp78fJ.mjs} +12 -12
- package/dist/SearchBox-CwDgvWVJ.mjs +48 -0
- package/dist/{SettingsStore-ImYpLCSK.mjs → SettingsStore-BoIoiRLj.mjs} +3 -3
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +5 -5
- package/dist/{SpendingData-CI_C9xln.mjs → SpendingData-Bz1bCWAs.mjs} +4 -4
- package/dist/SpendingLegend-BgjazduU.mjs +193 -0
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/StatusIndicator-4tWnjeKS.mjs +264 -0
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/ToggleListItem-BLu_fWA2.mjs +90 -0
- package/dist/Transaction-Cn5_iFm0.mjs +5 -0
- package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-Ck5Ua-7F.mjs} +1 -1
- package/dist/TransactionDetails-D1I1XEsT.mjs +1469 -0
- package/dist/{TransactionStore-CEehNrKo.mjs → TransactionStore-Bx9euVrY.mjs} +195 -177
- package/dist/{TrendsStore-ncmbS9eE.mjs → TrendsStore-CYdTo7cN.mjs} +10 -10
- package/dist/ViewMoreMicroCard-D24H9kDm.mjs +1291 -0
- package/dist/{WidgetContainer-DFwVgavi.mjs → WidgetContainer-B7xDq2bM.mjs} +47 -46
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/api/AccountApi.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/index.es.js +459 -368
- package/dist/accounts/stores/AccountStore.d.ts +2 -1
- package/dist/accounts/stores/UiStore.d.ts +1 -1
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +1 -1
- package/dist/accounts/utils/Accounts.d.ts +2 -2
- 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/api/BudgetsApi.d.ts +5 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +4 -1
- 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.es.js +851 -865
- package/dist/budgets/store/BudgetsStore.d.ts +15 -1
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/budgets/utils/BudgetUtil.d.ts +6 -1
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/api/CashflowApi.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/index.es.js +290 -288
- package/dist/cashflow/stores/UiStore.d.ts +1 -1
- 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/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/categories/util/CategoryUtil.d.ts +1 -1
- package/dist/common/api/AnalyticsApi.d.ts +1 -1
- package/dist/common/api/AppDataApi.d.ts +1 -1
- package/dist/common/api/BeatApi.d.ts +1 -1
- package/dist/common/api/CategoryApi.d.ts +1 -1
- package/dist/common/api/GlobalCopyApi.d.ts +1 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -1
- package/dist/common/api/NotificationApi.d.ts +1 -1
- package/dist/common/api/ScheduledPaymentsApi.d.ts +1 -1
- package/dist/common/api/UserApi.d.ts +1 -1
- package/dist/common/components/CurrencyDialog.d.ts +1 -1
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- 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/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +10 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/constants/DefaultConfig.d.ts +1 -1
- 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 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +4 -4
- package/dist/common/hooks/index.d.ts +1 -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/index.d.ts +0 -1
- package/dist/common/index.es.js +625 -860
- package/dist/common/stores/AppDataStore.d.ts +3 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +4 -2
- package/dist/common/stores/GlobalUiStore.d.ts +3 -3
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/Categories.d.ts +1 -1
- package/dist/common/utils/Fetch.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +9 -1
- package/dist/common/utils/Theme.d.ts +3 -3
- package/dist/common/utils/User.d.ts +1 -1
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +41 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +1 -0
- 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/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/{common → core}/types/index.d.ts +1 -2
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -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/dashboard/index.es.js +46 -45
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +705 -646
- package/dist/debts/store/DebtsStore.d.ts +2 -1
- package/dist/debts/utils/DebtStore.d.ts +1 -1
- package/dist/debts/utils/DebtsWidget.d.ts +7 -1
- package/dist/debts/utils/shared.d.ts +1 -1
- package/dist/{exportTransactionsToCSV-CGnrndmA.mjs → exportTransactionsToCSV-MCYH_zzN.mjs} +5 -5
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -1
- 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.es.js +161 -159
- package/dist/finstrong/stores/FinstrongStore.d.ts +3 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -3
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/api/GoalApi.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 +1 -1
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.es.js +445 -419
- package/dist/goals/stores/GoalStore.d.ts +2 -1
- package/dist/goals/util/GoalsUtil.d.ts +1 -1
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/api/HelpApi.d.ts +1 -1
- 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 +8 -8
- package/dist/help/store/HelpStore.d.ts +5 -4
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +2 -2
- package/dist/{hooks-CBl85iRr.mjs → hooks-BxkfR-Ff.mjs} +12 -12
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +4 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +17 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/index.es.js +1361 -1081
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/api/HoldingApi.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +258 -258
- package/dist/investments/stores/HoldingStore.d.ts +2 -1
- package/dist/investments/util/InvestmentUtil.d.ts +1 -1
- package/dist/merchants/api/MerchantApi.d.ts +1 -1
- package/dist/merchants/index.es.js +16 -16
- package/dist/merchants/stores/MerchantStore.d.ts +2 -1
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -1
- 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 +1 -1
- package/dist/microinsights/carousel/BeatList.d.ts +1 -1
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -1
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +1 -1
- 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.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- 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/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.es.js +181 -174
- package/dist/networth/stores/NetWorthStore.d.ts +2 -1
- package/dist/networth/types/NetWorth.d.ts +1 -1
- package/dist/networth/utils/NetWorthUtils.d.ts +1 -1
- 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.es.js +104 -92
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/notifications/utils/NotificationUtils.d.ts +2 -1
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -1
- 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.es.js +477 -451
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -1
- package/dist/recurringtransactions/util/RecurringTransactions.d.ts +1 -1
- package/dist/repeatingTransactions-DHIG94pi.mjs +4 -0
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +1 -1
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/api/SettingsApi.d.ts +1 -2
- 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.es.js +314 -323
- package/dist/settings/stores/SettingsStore.d.ts +3 -2
- package/dist/settings/util/Notifications.d.ts +1 -1
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +167 -166
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/api/TransactionApi.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -1
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +1 -1
- 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/HideAction.d.ts +1 -1
- 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 +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -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/constants/Transaction.d.ts +1 -1
- package/dist/transactions/index.es.js +195 -187
- package/dist/transactions/stores/TransactionStore.d.ts +2 -1
- package/dist/transactions/stores/UiStore.d.ts +1 -1
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +1 -1
- package/dist/transactions/utils/buildDetailedTransactions.d.ts +2 -2
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +1 -1
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +1 -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/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -1
- package/dist/trends/index.es.js +817 -764
- package/dist/trends/stores/TrendsStore.d.ts +2 -1
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +1 -1
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-b2xxcD0C.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-Bqojlv8q.mjs} +3 -3
- package/dist/{useInsightsEnabled-Dd-AfsqC.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DmNCCLa-.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +17 -10
- package/dist/AccountDetailsHeader-Bn2E0Qjk.mjs +0 -95
- package/dist/AccountListItem-k63LpVBs.mjs +0 -90
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BudgetUtil-BZiGckNY.mjs +0 -238
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CurrencyInput-BEB3FS70.mjs +0 -85
- package/dist/Dialog-jmgGw5WA.mjs +0 -58
- package/dist/GlobalAccountFilter-CIF-aT3F.mjs +0 -316
- package/dist/GoalStore-BjHKNAVm.mjs +0 -421
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-CnscUFUG.mjs +0 -580
- package/dist/Loader-icSc5MlE.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/MicroWidgetContainer-CBRk9KG-.mjs +0 -45
- package/dist/MiniWidgetContainer-CXQcSWSl.mjs +0 -56
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/RecurringTransactions-DlKYwpfK.mjs +0 -296
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SpendingLegend-Bld71d7q.mjs +0 -193
- package/dist/StatusIndicator-CNMQeYyJ.mjs +0 -55
- package/dist/TransactionDetails-Lvt9GCU5.mjs +0 -1194
- package/dist/TransactionList-BDffKJMO.mjs +0 -204
- package/dist/User-DS18cMaz.mjs +0 -237
- package/dist/ViewMoreMicroCard-YHRLl08A.mjs +0 -1152
- 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/types/SpendingPlan.d.ts +0 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- /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/Client.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/Widgets.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/GoalsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InsightsFeedCopy.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/TransactionsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TrendsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import M from "@mui/material/Box";
|
|
3
|
+
import H from "@mui/material/FormControlLabel";
|
|
4
|
+
import P from "@mui/material/Radio";
|
|
5
|
+
import U from "@mui/material/styles/useTheme";
|
|
6
|
+
import B from "@mui/material/Tooltip";
|
|
7
7
|
import { makeAutoObservable as p } from "mobx";
|
|
8
8
|
import { endOfToday as f } from "date-fns/endOfToday";
|
|
9
|
-
import { formatISO as
|
|
9
|
+
import { formatISO as K } from "date-fns/formatISO";
|
|
10
10
|
import { getUnixTime as O } from "date-fns/getUnixTime";
|
|
11
11
|
import { isBefore as V } from "date-fns/isBefore";
|
|
12
12
|
import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
13
13
|
import { startOfToday as m } from "date-fns/startOfToday";
|
|
14
14
|
import { subDays as v } from "date-fns/subDays";
|
|
15
|
-
import { O as
|
|
16
|
-
import { T as
|
|
17
|
-
import { b as Y } from "./Category-
|
|
18
|
-
import {
|
|
15
|
+
import { O as n } from "./OnClickEvents-CseHDZ94.mjs";
|
|
16
|
+
import { T as D } from "./TransactionApi-Ck5Ua-7F.mjs";
|
|
17
|
+
import { b as Y } from "./Category-CevNQ03n.mjs";
|
|
18
|
+
import { a as y, T as b } from "./Transaction-Cn5_iFm0.mjs";
|
|
19
|
+
import { f as F } from "./exportTransactionsToCSV-MCYH_zzN.mjs";
|
|
19
20
|
import { format as W } from "date-fns/format";
|
|
20
|
-
import { fromUnixTime as
|
|
21
|
-
import { f as
|
|
22
|
-
import { f as
|
|
21
|
+
import { fromUnixTime as $ } from "date-fns/fromUnixTime";
|
|
22
|
+
import { f as C, D as I, O as k } from "./DateFormats-BMpMrZpW.mjs";
|
|
23
|
+
import { f as z } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
23
24
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
24
|
-
import { B as
|
|
25
|
-
const
|
|
25
|
+
import { B as u } from "./BeatApi-EFHXULDx.mjs";
|
|
26
|
+
const j = ({
|
|
26
27
|
checked: l = !1,
|
|
27
28
|
label: t,
|
|
28
29
|
sx: a = {},
|
|
29
|
-
tooltip:
|
|
30
|
+
tooltip: e = "",
|
|
30
31
|
value: A
|
|
31
32
|
}) => {
|
|
32
|
-
const d =
|
|
33
|
+
const d = U(), s = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : s;
|
|
33
34
|
return /* @__PURE__ */ E(
|
|
34
|
-
|
|
35
|
+
M,
|
|
35
36
|
{
|
|
36
37
|
bgcolor: "background.paper",
|
|
37
38
|
border: `${l ? 3 : 1}px solid`,
|
|
@@ -42,11 +43,11 @@ const ft = ({
|
|
|
42
43
|
pr: 8,
|
|
43
44
|
py: 4,
|
|
44
45
|
sx: { "&:hover": { borderColor: d.palette.action.active }, ...a },
|
|
45
|
-
children: /* @__PURE__ */ E(
|
|
46
|
-
|
|
46
|
+
children: /* @__PURE__ */ E(B, { title: e, children: /* @__PURE__ */ E(
|
|
47
|
+
H,
|
|
47
48
|
{
|
|
48
49
|
control: /* @__PURE__ */ E(
|
|
49
|
-
|
|
50
|
+
P,
|
|
50
51
|
{
|
|
51
52
|
disableRipple: !0,
|
|
52
53
|
sx: { "&.Mui-checked": { color: d.palette.action.active } }
|
|
@@ -60,19 +61,31 @@ const ft = ({
|
|
|
60
61
|
) })
|
|
61
62
|
}
|
|
62
63
|
);
|
|
63
|
-
}, G = {
|
|
64
|
+
}, yt = j, G = {
|
|
64
65
|
ASC: "ASC",
|
|
65
|
-
DESC: "DESC"
|
|
66
|
-
|
|
66
|
+
DESC: "DESC",
|
|
67
|
+
DIRECTION: {
|
|
68
|
+
ASC: "ascending",
|
|
69
|
+
DESC: "descending"
|
|
70
|
+
},
|
|
71
|
+
ALIGN: {
|
|
72
|
+
center: "center",
|
|
73
|
+
left: "flex-start",
|
|
74
|
+
right: "flex-end"
|
|
75
|
+
}
|
|
76
|
+
}, o = {
|
|
67
77
|
ADD: "Add",
|
|
68
78
|
ADD_CATEGORY: "Add Category",
|
|
69
79
|
CHANGE_CATEGORY: "Change Category",
|
|
80
|
+
CHANGE_DATE: "Change Date",
|
|
70
81
|
CLOSE: "Close",
|
|
71
82
|
DELETE: "Delete",
|
|
72
83
|
EDIT: "Edit",
|
|
84
|
+
HIDE: "Hide",
|
|
73
85
|
SAVE: "Save",
|
|
74
86
|
SPLIT: "Split",
|
|
75
87
|
SELECT: "Select",
|
|
88
|
+
UNHIDE: "Unhide",
|
|
76
89
|
UNSPLIT: "Unsplit"
|
|
77
90
|
}, T = {
|
|
78
91
|
TRANSACTION_DETAILS: "Transaction Details",
|
|
@@ -95,226 +108,231 @@ const ft = ({
|
|
|
95
108
|
TAG_DELETE: "Delete Tag",
|
|
96
109
|
TAG_EDIT: "Edit Tag",
|
|
97
110
|
TRANSACTION: "Transaction",
|
|
111
|
+
TRANSACTIONS_LIST: "Transactions List",
|
|
98
112
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
99
113
|
}, R = {
|
|
100
114
|
// splits
|
|
101
|
-
[
|
|
102
|
-
action:
|
|
115
|
+
[n.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
116
|
+
action: o.SELECT,
|
|
103
117
|
category: T.TRANSACTION_DETAILS,
|
|
104
118
|
label: r.SPLITS
|
|
105
119
|
},
|
|
106
|
-
[
|
|
107
|
-
action:
|
|
120
|
+
[n.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
121
|
+
action: o.ADD_CATEGORY,
|
|
108
122
|
category: T.TRANSACTION_DETAILS,
|
|
109
123
|
label: r.SPLITS
|
|
110
124
|
},
|
|
111
|
-
[
|
|
112
|
-
action:
|
|
125
|
+
[n.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
126
|
+
action: o.DELETE,
|
|
113
127
|
category: T.TRANSACTION_DETAILS,
|
|
114
128
|
label: r.SPLITS
|
|
115
129
|
},
|
|
116
|
-
[
|
|
117
|
-
action:
|
|
130
|
+
[n.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
131
|
+
action: o.SPLIT,
|
|
118
132
|
category: T.TRANSACTION_DETAILS,
|
|
119
133
|
label: r.SPLITS
|
|
120
134
|
},
|
|
121
|
-
[
|
|
122
|
-
action:
|
|
135
|
+
[n.ON_TRANSACTION_UNSPLIT]: {
|
|
136
|
+
action: o.UNSPLIT,
|
|
123
137
|
category: T.TRANSACTION_DETAILS,
|
|
124
138
|
label: r.SPLITS
|
|
125
139
|
},
|
|
126
140
|
// category
|
|
127
|
-
[
|
|
128
|
-
action:
|
|
141
|
+
[n.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
142
|
+
action: o.SELECT,
|
|
129
143
|
category: T.TRANSACTIONS_LIST,
|
|
130
144
|
label: r.CATEGORY
|
|
131
145
|
},
|
|
132
|
-
[
|
|
133
|
-
action:
|
|
146
|
+
[n.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
147
|
+
action: o.CHANGE_CATEGORY,
|
|
134
148
|
category: T.TRANSACTION_DETAILS,
|
|
135
149
|
label: r.CATEGORY
|
|
136
150
|
},
|
|
137
151
|
// date
|
|
138
|
-
[
|
|
139
|
-
action:
|
|
152
|
+
[n.ON_TRANSACTION_DATE_CHANGED]: {
|
|
153
|
+
action: o.SAVE,
|
|
140
154
|
category: T.TRANSACTION_DETAILS,
|
|
141
155
|
label: r.DATE
|
|
142
156
|
},
|
|
143
|
-
[
|
|
144
|
-
action:
|
|
157
|
+
[n.ON_TRANSACTION_DATE_CLICK]: {
|
|
158
|
+
action: o.SELECT,
|
|
145
159
|
category: T.TRANSACTION_DETAILS,
|
|
146
160
|
label: r.DATE
|
|
147
161
|
},
|
|
148
162
|
// merchant logo
|
|
149
|
-
[
|
|
150
|
-
action:
|
|
163
|
+
[n.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
164
|
+
action: o.CLOSE,
|
|
151
165
|
category: T.TRANSACTION_DETAILS,
|
|
152
166
|
label: r.DELETE_MERCHANT_LOGO
|
|
153
167
|
},
|
|
154
|
-
[
|
|
155
|
-
action:
|
|
168
|
+
[n.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
169
|
+
action: o.SELECT,
|
|
156
170
|
category: T.TRANSACTION_DETAILS,
|
|
157
171
|
label: r.DELETE_MERCHANT_LOGO
|
|
158
172
|
},
|
|
159
|
-
[
|
|
160
|
-
action:
|
|
173
|
+
[n.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
174
|
+
action: o.DELETE,
|
|
161
175
|
category: T.TRANSACTION_DETAILS,
|
|
162
176
|
label: r.DELETE_MERCHANT_LOGO
|
|
163
177
|
},
|
|
164
178
|
// description
|
|
165
|
-
[
|
|
166
|
-
action:
|
|
179
|
+
[n.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
180
|
+
action: o.EDIT,
|
|
167
181
|
category: T.TRANSACTION_DETAILS,
|
|
168
182
|
label: r.DESCRIPTION
|
|
169
183
|
},
|
|
170
|
-
[
|
|
171
|
-
action:
|
|
184
|
+
[n.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
185
|
+
action: o.SAVE,
|
|
172
186
|
category: T.TRANSACTION_DETAILS,
|
|
173
187
|
label: r.DESCRIPTION
|
|
174
188
|
},
|
|
175
189
|
// hide transactions
|
|
176
|
-
[
|
|
177
|
-
action:
|
|
190
|
+
[n.ON_TRANSACTION_HIDDEN]: {
|
|
191
|
+
action: o.SAVE,
|
|
178
192
|
category: T.TRANSACTION_DETAILS,
|
|
179
193
|
label: r.HIDE_TRANSACTION
|
|
180
194
|
},
|
|
181
|
-
[
|
|
182
|
-
action:
|
|
195
|
+
[n.ON_TRANSACTION_HIDE_CLICK]: {
|
|
196
|
+
action: o.SELECT,
|
|
183
197
|
category: T.TRANSACTION_DETAILS,
|
|
184
198
|
label: r.HIDE_TRANSACTION
|
|
185
199
|
},
|
|
186
|
-
[
|
|
187
|
-
action:
|
|
200
|
+
[n.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
201
|
+
action: o.CLOSE,
|
|
188
202
|
category: T.TRANSACTION_DETAILS,
|
|
189
203
|
label: r.HIDE_TRANSACTION
|
|
190
204
|
},
|
|
191
205
|
// transaction list
|
|
192
|
-
[
|
|
193
|
-
action:
|
|
206
|
+
[n.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
207
|
+
action: o.SELECT,
|
|
194
208
|
category: T.TRANSACTIONS_LIST,
|
|
195
209
|
label: r.TRANSACTION
|
|
196
210
|
},
|
|
197
211
|
// memo
|
|
198
|
-
[
|
|
199
|
-
action:
|
|
212
|
+
[n.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
213
|
+
action: o.SAVE,
|
|
200
214
|
category: T.TRANSACTION_DETAILS,
|
|
201
215
|
label: r.MEMO
|
|
202
216
|
},
|
|
203
|
-
[
|
|
204
|
-
action:
|
|
217
|
+
[n.ON_TRANSACTION_MEMO_CLICK]: {
|
|
218
|
+
action: o.SELECT,
|
|
205
219
|
category: T.TRANSACTION_DETAILS,
|
|
206
220
|
label: r.MEMO
|
|
207
221
|
},
|
|
208
222
|
// tags
|
|
209
|
-
[
|
|
210
|
-
action:
|
|
223
|
+
[n.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
224
|
+
action: o.SAVE,
|
|
211
225
|
category: T.TRANSACTION_DETAILS,
|
|
212
226
|
label: r.TAGS
|
|
213
227
|
},
|
|
214
|
-
[
|
|
215
|
-
action:
|
|
228
|
+
[n.ON_TRANSACTION_TAGS_CLICK]: {
|
|
229
|
+
action: o.SELECT,
|
|
216
230
|
category: T.TRANSACTION_DETAILS,
|
|
217
231
|
label: r.TAGS
|
|
218
232
|
},
|
|
219
|
-
[
|
|
220
|
-
action:
|
|
233
|
+
[n.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
234
|
+
action: o.CLOSE,
|
|
221
235
|
category: T.TRANSACTION_DETAILS,
|
|
222
236
|
label: r.TAGS
|
|
223
237
|
},
|
|
224
|
-
[
|
|
225
|
-
action:
|
|
238
|
+
[n.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
239
|
+
action: o.ADD,
|
|
226
240
|
category: T.TRANSACTION_DETAILS,
|
|
227
241
|
label: r.TAG_ADD
|
|
228
242
|
},
|
|
229
|
-
[
|
|
230
|
-
action:
|
|
243
|
+
[n.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
244
|
+
action: o.SAVE,
|
|
231
245
|
category: T.TRANSACTION_DETAILS,
|
|
232
246
|
label: r.TAG_ADD
|
|
233
247
|
},
|
|
234
|
-
[
|
|
235
|
-
action:
|
|
248
|
+
[n.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
249
|
+
action: o.SELECT,
|
|
236
250
|
category: T.TRANSACTION_DETAILS,
|
|
237
251
|
label: r.TAG_DELETE
|
|
238
252
|
},
|
|
239
|
-
[
|
|
240
|
-
action:
|
|
253
|
+
[n.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
254
|
+
action: o.CLOSE,
|
|
241
255
|
category: T.TRANSACTION_DETAILS,
|
|
242
256
|
label: r.TAG_DELETE
|
|
243
257
|
},
|
|
244
|
-
[
|
|
245
|
-
action:
|
|
258
|
+
[n.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
259
|
+
action: o.SAVE,
|
|
246
260
|
category: T.TRANSACTION_DETAILS,
|
|
247
261
|
label: r.TAG_DELETE
|
|
248
262
|
},
|
|
249
|
-
[
|
|
250
|
-
action:
|
|
263
|
+
[n.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
264
|
+
action: o.EDIT,
|
|
251
265
|
category: T.TRANSACTION_DETAILS,
|
|
252
266
|
label: r.TAG_EDIT
|
|
253
267
|
},
|
|
254
|
-
[
|
|
255
|
-
action:
|
|
268
|
+
[n.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
269
|
+
action: o.SAVE,
|
|
256
270
|
category: T.TRANSACTION_DETAILS,
|
|
257
271
|
label: r.TAG_EDIT
|
|
258
272
|
},
|
|
259
273
|
// flag
|
|
260
|
-
[
|
|
261
|
-
action:
|
|
274
|
+
[n.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
275
|
+
action: o.SELECT,
|
|
262
276
|
category: T.TRANSACTION_DETAILS,
|
|
263
277
|
label: r.FLAG
|
|
264
278
|
},
|
|
265
279
|
// hide
|
|
266
|
-
[
|
|
267
|
-
action:
|
|
280
|
+
[n.ON_TRANSACTION_UNHIDDEN]: {
|
|
281
|
+
action: o.SAVE,
|
|
268
282
|
category: T.TRANSACTION_DETAILS,
|
|
269
283
|
label: r.UNHIDE_TRANSACTION
|
|
270
284
|
},
|
|
271
|
-
[
|
|
272
|
-
action:
|
|
285
|
+
[n.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
286
|
+
action: o.SELECT,
|
|
273
287
|
category: T.TRANSACTION_DETAILS,
|
|
274
288
|
label: r.UNHIDE_TRANSACTION
|
|
275
289
|
},
|
|
276
|
-
[
|
|
277
|
-
action:
|
|
290
|
+
[n.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
291
|
+
action: o.CLOSE,
|
|
278
292
|
category: T.TRANSACTION_DETAILS,
|
|
279
293
|
label: r.UNHIDE_TRANSACTION
|
|
280
294
|
},
|
|
281
295
|
// export CSV
|
|
282
|
-
[
|
|
283
|
-
action:
|
|
296
|
+
[n.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
297
|
+
action: o.SELECT,
|
|
284
298
|
category: T.TRANSACTIONS_WIDGET,
|
|
285
299
|
label: r.EXPORT_CSV
|
|
286
300
|
},
|
|
287
301
|
// add transaction
|
|
288
|
-
[
|
|
289
|
-
action:
|
|
302
|
+
[n.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
303
|
+
action: o.SELECT,
|
|
290
304
|
category: T.TRANSACTIONS_WIDGET,
|
|
291
305
|
label: r.ADD_TRANSACTION
|
|
292
306
|
},
|
|
293
|
-
[
|
|
294
|
-
action:
|
|
307
|
+
[n.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
308
|
+
action: o.ADD,
|
|
295
309
|
category: T.TRANSACTIONS_WIDGET,
|
|
296
310
|
label: r.ADD_TRANSACTION
|
|
297
311
|
},
|
|
298
|
-
[
|
|
299
|
-
action:
|
|
312
|
+
[n.ON_TRANSACTION_DELETE_CLICK]: {
|
|
313
|
+
action: o.SELECT,
|
|
300
314
|
category: T.TRANSACTIONS_WIDGET,
|
|
301
315
|
label: r.DELETE_TRANSACTION
|
|
302
316
|
},
|
|
303
|
-
[
|
|
304
|
-
action:
|
|
317
|
+
[n.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
318
|
+
action: o.CLOSE,
|
|
305
319
|
category: T.TRANSACTIONS_WIDGET,
|
|
306
320
|
label: r.DELETE_TRANSACTION
|
|
307
321
|
},
|
|
308
|
-
[
|
|
309
|
-
action:
|
|
322
|
+
[n.ON_TRANSACTION_DELETE_DELETED]: {
|
|
323
|
+
action: o.DELETE,
|
|
310
324
|
category: T.TRANSACTIONS_WIDGET,
|
|
311
325
|
label: r.DELETE_TRANSACTION
|
|
312
326
|
}
|
|
313
|
-
},
|
|
327
|
+
}, Z = async (l, t) => !t || !R[l] ? null : t.sendAnalyticEvent(R[l]), L = {
|
|
328
|
+
FLAG: "flag",
|
|
314
329
|
DATE: "date",
|
|
330
|
+
PAYEE: "payee",
|
|
331
|
+
CATEGORY: "category",
|
|
332
|
+
ACCOUNT: "account",
|
|
315
333
|
AMOUNT: "amount"
|
|
316
|
-
},
|
|
317
|
-
const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}),
|
|
334
|
+
}, q = (l, t, a, e = []) => {
|
|
335
|
+
const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), s = e.reduce((c, i) => {
|
|
318
336
|
const { transaction_guid: S, tag_guid: N } = i;
|
|
319
337
|
if (!c[S])
|
|
320
338
|
return {
|
|
@@ -328,7 +346,7 @@ const ft = ({
|
|
|
328
346
|
};
|
|
329
347
|
}, {});
|
|
330
348
|
return l.map((c) => {
|
|
331
|
-
const i = A[c.account_guid], S = c.category_guid ? d[c.category_guid] : null, N =
|
|
349
|
+
const i = A[c.account_guid], S = c.category_guid ? d[c.category_guid] : null, N = s[c.guid] ?? [];
|
|
332
350
|
return {
|
|
333
351
|
...c,
|
|
334
352
|
account: i?.user_name || "Unknown",
|
|
@@ -342,38 +360,38 @@ const ft = ({
|
|
|
342
360
|
tags: N
|
|
343
361
|
};
|
|
344
362
|
});
|
|
345
|
-
},
|
|
346
|
-
const
|
|
363
|
+
}, J = "uncategorized", Q = (l, t, a, e, A, d) => {
|
|
364
|
+
const s = tt(l, A, d), c = at(s, a, e);
|
|
347
365
|
return t.forEach((i) => {
|
|
348
366
|
const S = c.findIndex((g) => g.guid === i), N = d.filter((g) => g.parent_guid === i);
|
|
349
367
|
c.splice(S + 1, 0, ...N);
|
|
350
368
|
}), c;
|
|
351
|
-
},
|
|
369
|
+
}, tt = (l, t, a) => {
|
|
352
370
|
const {
|
|
353
|
-
accounts:
|
|
371
|
+
accounts: e = [],
|
|
354
372
|
dateRange: A = { start: h(m()), end: f() },
|
|
355
373
|
custom: d = () => !0,
|
|
356
|
-
searchTerm:
|
|
374
|
+
searchTerm: s = "",
|
|
357
375
|
showSplits: c = !1
|
|
358
376
|
} = l;
|
|
359
|
-
return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!
|
|
360
|
-
if (
|
|
377
|
+
return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((S) => S === i.account_guid)).filter((i) => i.date >= O(A.start) && i.date <= O(A.end)).filter(d).filter((i) => {
|
|
378
|
+
if (s === J && i.has_been_split)
|
|
361
379
|
return !1;
|
|
362
|
-
if (/^spl/i.test(
|
|
380
|
+
if (/^spl/i.test(s) && (i.has_been_split || i.parent_guid))
|
|
363
381
|
return !0;
|
|
364
382
|
const N = i.tags.some(
|
|
365
|
-
(w) => _(
|
|
366
|
-
), g =
|
|
367
|
-
return _(
|
|
383
|
+
(w) => _(s, t.find((x) => x.guid === w)?.name)
|
|
384
|
+
), g = $(i.date);
|
|
385
|
+
return _(s, i.payee) || _(s, i.feed_description) || _(s, i.category) || _(s, C(g, I.MONTH)) || _(s, C(g, I.DAY)) || _(s, C(g, I.FULL_MONTH_DAY)) || _(s, C(g, I.MONTH_DAY_YEAR)) || _(s, W(g, k)) || _(s, i.account) || _(s, z(i.amount, "0,0.00")) || _(s, i.memo) || N;
|
|
368
386
|
});
|
|
369
|
-
},
|
|
370
|
-
const d = t,
|
|
371
|
-
let c =
|
|
372
|
-
return (t === L.DATE || t === L.AMOUNT) && (c =
|
|
387
|
+
}, at = (l, t, a) => [...l].sort((e, A) => {
|
|
388
|
+
const d = t, s = (e[d] || "") > (A[d] || "");
|
|
389
|
+
let c = s ? -1 : 1, i = s ? 1 : -1;
|
|
390
|
+
return (t === L.DATE || t === L.AMOUNT) && (c = s ? 1 : -1, i = s ? -1 : 1), a === G.ASC ? c : i;
|
|
373
391
|
}), _ = (l, t) => {
|
|
374
|
-
const a = l.toLowerCase().split(" "),
|
|
375
|
-
return a.every((A) =>
|
|
376
|
-
},
|
|
392
|
+
const a = l.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
|
|
393
|
+
return a.every((A) => e.indexOf(A) > -1);
|
|
394
|
+
}, et = {
|
|
377
395
|
account_guid: "",
|
|
378
396
|
amount: 0,
|
|
379
397
|
currency_code: "",
|
|
@@ -411,7 +429,7 @@ class st {
|
|
|
411
429
|
shouldDisableDrawerScroll = !1;
|
|
412
430
|
searchValue = "";
|
|
413
431
|
selectedAccountGuids = [];
|
|
414
|
-
manualTransaction =
|
|
432
|
+
manualTransaction = et;
|
|
415
433
|
isAmountValid = !1;
|
|
416
434
|
showInsights = !1;
|
|
417
435
|
constructor() {
|
|
@@ -431,8 +449,8 @@ class st {
|
|
|
431
449
|
this.height = t, this.width = a;
|
|
432
450
|
};
|
|
433
451
|
toggleSplit = (t) => {
|
|
434
|
-
const a = [...this.expandedSplits],
|
|
435
|
-
|
|
452
|
+
const a = [...this.expandedSplits], e = this.expandedSplits.findIndex((A) => A === t);
|
|
453
|
+
e >= 0 ? a.splice(e, 1) : a.push(t), this.expandedSplits = a;
|
|
436
454
|
};
|
|
437
455
|
clearExpandedSplits = () => {
|
|
438
456
|
this.expandedSplits.length !== 0 && (this.expandedSplits = []);
|
|
@@ -441,11 +459,11 @@ class st {
|
|
|
441
459
|
this.manualTransaction = t;
|
|
442
460
|
};
|
|
443
461
|
}
|
|
444
|
-
class
|
|
462
|
+
class bt {
|
|
445
463
|
globalStore;
|
|
446
464
|
uiStore;
|
|
447
|
-
api = new
|
|
448
|
-
beatApi = new
|
|
465
|
+
api = new D("/", "");
|
|
466
|
+
beatApi = new u("/", "");
|
|
449
467
|
associatedBeats = [];
|
|
450
468
|
associatedBeatsLoaded = !1;
|
|
451
469
|
associatedBeatsLoading = !1;
|
|
@@ -466,13 +484,13 @@ class mt {
|
|
|
466
484
|
isLoading = !0;
|
|
467
485
|
sortColumn = L.DATE;
|
|
468
486
|
sortDirection = G.DESC;
|
|
469
|
-
onAnalyticEvent =
|
|
487
|
+
onAnalyticEvent = Z;
|
|
470
488
|
constructor(t) {
|
|
471
|
-
this.globalStore = t, this.uiStore = new st(), this.api = new
|
|
489
|
+
this.globalStore = t, this.uiStore = new st(), this.api = new D(
|
|
472
490
|
t.endpoint,
|
|
473
491
|
t.sessionToken,
|
|
474
492
|
t.onError
|
|
475
|
-
), this.beatApi = new
|
|
493
|
+
), this.beatApi = new u(t.endpoint, t.sessionToken, t.onError), p(this);
|
|
476
494
|
}
|
|
477
495
|
loadTransactionData = async () => {
|
|
478
496
|
this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
|
|
@@ -488,7 +506,7 @@ class mt {
|
|
|
488
506
|
return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
|
|
489
507
|
}
|
|
490
508
|
get detailedTransactions() {
|
|
491
|
-
return this.isTransactionDataLoaded ?
|
|
509
|
+
return this.isTransactionDataLoaded ? q(
|
|
492
510
|
this.transactions,
|
|
493
511
|
this.globalStore.accountStore.visibleAccounts,
|
|
494
512
|
this.globalStore.categoryStore.categories,
|
|
@@ -496,7 +514,7 @@ class mt {
|
|
|
496
514
|
) : [];
|
|
497
515
|
}
|
|
498
516
|
get sortedTransactions() {
|
|
499
|
-
return
|
|
517
|
+
return Q(
|
|
500
518
|
this.filter,
|
|
501
519
|
this.uiStore.expandedSplits,
|
|
502
520
|
this.sortColumn,
|
|
@@ -506,7 +524,7 @@ class mt {
|
|
|
506
524
|
);
|
|
507
525
|
}
|
|
508
526
|
get sortedTransactionsWithSplits() {
|
|
509
|
-
return F(this.sortedTransactions, this.
|
|
527
|
+
return F(this.sortedTransactions, this.detailedTransactions);
|
|
510
528
|
}
|
|
511
529
|
setAssociatedBeats = (t) => {
|
|
512
530
|
this.associatedBeats = t, this.associatedBeatsLoading = !1, this.associatedBeatsLoaded = !0;
|
|
@@ -533,11 +551,11 @@ class mt {
|
|
|
533
551
|
});
|
|
534
552
|
};
|
|
535
553
|
addOrUpdateTransactionRule = async (t, a) => {
|
|
536
|
-
const
|
|
554
|
+
const e = this.transactionRules.find(
|
|
537
555
|
(A) => A.guid === a.user_transaction_rule_guid
|
|
538
556
|
);
|
|
539
|
-
|
|
540
|
-
...
|
|
557
|
+
e ? await this.api.updateTransactionRule({
|
|
558
|
+
...e,
|
|
541
559
|
category_guid: t,
|
|
542
560
|
description: a.description
|
|
543
561
|
}) : await this.api.addTransactionRule({
|
|
@@ -550,19 +568,19 @@ class mt {
|
|
|
550
568
|
const a = await this.api.addTransaction(t);
|
|
551
569
|
if (a) {
|
|
552
570
|
this.setTransactions([a, ...this.transactions]);
|
|
553
|
-
const
|
|
554
|
-
this.globalStore.accountStore.updateAccountBalance(a.account_guid,
|
|
571
|
+
const e = a.transaction_type === b.CREDIT ? a.amount : -a.amount;
|
|
572
|
+
this.globalStore.accountStore.updateAccountBalance(a.account_guid, e);
|
|
555
573
|
}
|
|
556
574
|
};
|
|
557
575
|
loadAssociatedBeats = async (t) => {
|
|
558
576
|
if (this.associatedBeatsLoading) return;
|
|
559
577
|
this.associatedBeatsLoading = !0;
|
|
560
|
-
const a = t ?
|
|
578
|
+
const a = t ? K(t, { representation: "date" }) : void 0;
|
|
561
579
|
try {
|
|
562
|
-
const
|
|
563
|
-
this.setAssociatedBeats(
|
|
564
|
-
} catch (
|
|
565
|
-
console.error(`Error occurred while loading associated beats: ${
|
|
580
|
+
const e = await this.beatApi.getBeatsWithAssociatedTransaction(a);
|
|
581
|
+
this.setAssociatedBeats(e);
|
|
582
|
+
} catch (e) {
|
|
583
|
+
console.error(`Error occurred while loading associated beats: ${e}`);
|
|
566
584
|
}
|
|
567
585
|
};
|
|
568
586
|
loadTags = async () => {
|
|
@@ -610,7 +628,7 @@ class mt {
|
|
|
610
628
|
};
|
|
611
629
|
modifyTransactionByAccountGuid = (t, a) => {
|
|
612
630
|
this.transactions = this.transactions.map(
|
|
613
|
-
(
|
|
631
|
+
(e) => e.account_guid === t ? { ...e, ...a } : e
|
|
614
632
|
);
|
|
615
633
|
};
|
|
616
634
|
removeTag = async (t) => {
|
|
@@ -621,10 +639,10 @@ class mt {
|
|
|
621
639
|
};
|
|
622
640
|
removeTransaction = async (t) => {
|
|
623
641
|
await this.api.removeTransaction(t);
|
|
624
|
-
const a = this.transactions.findIndex((
|
|
642
|
+
const a = this.transactions.findIndex((e) => e.guid === t);
|
|
625
643
|
if (a >= 0) {
|
|
626
|
-
const
|
|
627
|
-
|
|
644
|
+
const e = [...this.transactions];
|
|
645
|
+
e.splice(a, 1), this.setTransactions(e);
|
|
628
646
|
}
|
|
629
647
|
};
|
|
630
648
|
setFilter = (t) => {
|
|
@@ -634,56 +652,56 @@ class mt {
|
|
|
634
652
|
};
|
|
635
653
|
setIsLoading = (t) => this.isLoading = t;
|
|
636
654
|
splitTransaction = async (t, a) => {
|
|
637
|
-
const
|
|
638
|
-
for (let
|
|
639
|
-
const c = await this.api.addTransaction(a[
|
|
655
|
+
const e = await this.api.updateTransaction(t), A = [];
|
|
656
|
+
for (let s = 0; s < a.length; s++) {
|
|
657
|
+
const c = await this.api.addTransaction(a[s]);
|
|
640
658
|
A.push(c);
|
|
641
659
|
}
|
|
642
|
-
const d = this.transactions.findIndex((
|
|
660
|
+
const d = this.transactions.findIndex((s) => s.guid === t.guid);
|
|
643
661
|
d >= 0 && this.setTransactions([
|
|
644
662
|
...this.transactions.slice(0, d),
|
|
645
|
-
|
|
663
|
+
e,
|
|
646
664
|
...this.transactions.slice(d + 1),
|
|
647
665
|
...A
|
|
648
666
|
]);
|
|
649
667
|
};
|
|
650
668
|
unSplitTransaction = async (t) => {
|
|
651
|
-
const a = this.transactions.filter((
|
|
669
|
+
const a = this.transactions.filter((s) => s.parent_guid === t);
|
|
652
670
|
await this.api.removeTransactionSplit(t);
|
|
653
|
-
const
|
|
654
|
-
a.forEach((
|
|
655
|
-
const c =
|
|
656
|
-
c >= 0 &&
|
|
671
|
+
const e = [...this.transactions];
|
|
672
|
+
a.forEach((s) => {
|
|
673
|
+
const c = e.findIndex((i) => i.guid === s.guid);
|
|
674
|
+
c >= 0 && e.splice(c, 1);
|
|
657
675
|
});
|
|
658
|
-
const A =
|
|
676
|
+
const A = e.findIndex((s) => s.guid === t), d = e[A];
|
|
659
677
|
d.has_been_split = !1, A >= 0 && this.setTransactions([
|
|
660
|
-
...
|
|
678
|
+
...e.slice(0, A),
|
|
661
679
|
d,
|
|
662
|
-
...
|
|
680
|
+
...e.slice(A + 1)
|
|
663
681
|
]);
|
|
664
682
|
};
|
|
665
683
|
updateTaggings = async (t, a) => {
|
|
666
|
-
const
|
|
667
|
-
for (const
|
|
668
|
-
A.has(
|
|
669
|
-
for (const
|
|
670
|
-
d.has(
|
|
684
|
+
const e = this.taggings.filter((s) => s.transaction_guid === a), A = new Set(e.map((s) => s.tag_guid)), d = new Set(t);
|
|
685
|
+
for (const s of t)
|
|
686
|
+
A.has(s) || await this.addTagging(s, a);
|
|
687
|
+
for (const s of e)
|
|
688
|
+
d.has(s.tag_guid) || await this.removeTagging(s.guid);
|
|
671
689
|
await this.loadTaggings();
|
|
672
690
|
};
|
|
673
691
|
updateTag = async (t) => {
|
|
674
692
|
await this.api.updateTag(t), await this.loadTags();
|
|
675
693
|
};
|
|
676
694
|
updateTransaction = async (t) => {
|
|
677
|
-
const a = await this.api.updateTransaction(t),
|
|
678
|
-
|
|
679
|
-
...this.transactions.slice(0,
|
|
695
|
+
const a = await this.api.updateTransaction(t), e = this.transactions.findIndex((A) => A.guid === t.guid);
|
|
696
|
+
e >= 0 && this.setTransactions([
|
|
697
|
+
...this.transactions.slice(0, e),
|
|
680
698
|
a,
|
|
681
|
-
...this.transactions.slice(
|
|
699
|
+
...this.transactions.slice(e + 1)
|
|
682
700
|
]);
|
|
683
701
|
};
|
|
684
702
|
}
|
|
685
703
|
export {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
704
|
+
et as D,
|
|
705
|
+
yt as S,
|
|
706
|
+
bt as T
|
|
689
707
|
};
|