@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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalStore } from '../../common';
|
|
2
|
+
import { DateRange, DetailedCategoryWithTransactions } from '../../core';
|
|
2
3
|
import { LineChartDataset, TooltipLabel } from '../../common/components/charts/LineChart';
|
|
3
4
|
export declare class TrendsStore {
|
|
4
5
|
globalStore: GlobalStore;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridComparatorFn } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { DetailedCategoryWithTransactions, MonthlyCategoryTotals } from '../../
|
|
2
|
+
import { DetailedCategoryWithTransactions, MonthlyCategoryTotals } from '../../core';
|
|
3
3
|
type DataPoint = {
|
|
4
4
|
x: Date;
|
|
5
5
|
y: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { DetailedCategory, TrendsCopy } from '../../
|
|
2
|
+
import { DetailedCategory, TrendsCopy } from '../../core';
|
|
3
3
|
export declare const generateMonthHeaders: (start: Date, end: Date) => string[];
|
|
4
4
|
export declare const getTrendsTableColumns: (monthHeaders: string[], copy: TrendsCopy) => GridColDef[];
|
|
5
5
|
export type TrendsTableRow = {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TrendsCopy } from '../../core';
|
|
2
|
+
export declare const buildEmptyStateProps: (copy: TrendsCopy, hasAggregation: boolean, handler: () => void) => {
|
|
3
|
+
description: string;
|
|
4
|
+
header: string;
|
|
5
|
+
onClickHandler: (() => void) | undefined;
|
|
6
|
+
primaryButton: string | undefined;
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MonthlyCategoryTotals } from '../../
|
|
1
|
+
import { MonthlyCategoryTotals } from '../../core';
|
|
2
2
|
import { StackedLineChartData } from './TrendsData';
|
|
3
3
|
type TotalsData = MonthlyCategoryTotals | StackedLineChartData;
|
|
4
4
|
export declare const isIncome: (totals: TotalsData) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getUnixTime as l } from "date-fns/getUnixTime";
|
|
2
2
|
import y from "bowser";
|
|
3
|
-
import { F as u, A as r } from "./Fetch-
|
|
3
|
+
import { F as u, A as r } from "./Fetch-B6tMJC1r.mjs";
|
|
4
4
|
import _ from "react";
|
|
5
5
|
const g = async (o, t, n = "1.0.0", s = "Experiences") => {
|
|
6
6
|
const a = new A(o, t), { analytics_session: i } = await a.initializeAnalyticsSession(
|
|
@@ -86,7 +86,7 @@ const p = (o, t) => {
|
|
|
86
86
|
export {
|
|
87
87
|
A,
|
|
88
88
|
h as G,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
E as a,
|
|
90
|
+
g as b,
|
|
91
91
|
p as u
|
|
92
92
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as r, useEffect as c } from "react";
|
|
2
|
-
import { g as l } from "./hooks-
|
|
2
|
+
import { g as l } from "./hooks-BxkfR-Ff.mjs";
|
|
3
3
|
let n = !0;
|
|
4
4
|
const d = ({ widgetName: i, isLoaded: u = !0 }) => {
|
|
5
5
|
const { onEvent: o } = l(), t = r(null), s = r(!1), e = r(!1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.v2",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"import": "./dist/common/index.es.js",
|
|
34
34
|
"types": "./dist/common/index.d.ts"
|
|
35
35
|
},
|
|
36
|
+
"./core": {
|
|
37
|
+
"import": "./dist/core/index.es.js",
|
|
38
|
+
"types": "./dist/core/index.d.ts"
|
|
39
|
+
},
|
|
36
40
|
"./dashboard": {
|
|
37
41
|
"import": "./dist/dashboard/index.es.js",
|
|
38
42
|
"types": "./dist/dashboard/index.d.ts"
|
|
@@ -118,6 +122,9 @@
|
|
|
118
122
|
"common": [
|
|
119
123
|
"./dist/common/index.d.ts"
|
|
120
124
|
],
|
|
125
|
+
"core": [
|
|
126
|
+
"./dist/core/index.d.ts"
|
|
127
|
+
],
|
|
121
128
|
"dashboard": [
|
|
122
129
|
"./dist/dashboard/index.d.ts"
|
|
123
130
|
],
|
|
@@ -192,8 +199,8 @@
|
|
|
192
199
|
"@mui/x-date-pickers": "^7.29.4",
|
|
193
200
|
"@mui/x-date-pickers-pro": "^7.29.4",
|
|
194
201
|
"@mxenabled/cssinjs": "^0.6.0",
|
|
195
|
-
"@mxenabled/mx-icons": "^1.
|
|
196
|
-
"@mxenabled/mxui": "^1.5.
|
|
202
|
+
"@mxenabled/mx-icons": "^1.7.0",
|
|
203
|
+
"@mxenabled/mxui": "^1.5.16",
|
|
197
204
|
"@mxenabled/web-widget-sdk": "^0.0.13",
|
|
198
205
|
"@tanstack/react-virtual": "^3.13.2",
|
|
199
206
|
"bowser": "^2.11.0",
|
|
@@ -203,10 +210,10 @@
|
|
|
203
210
|
"mobx-react-lite": "^4.1.0",
|
|
204
211
|
"numeral": "^2.0.6",
|
|
205
212
|
"posthog-js": "^1.230.1",
|
|
206
|
-
"react": "^
|
|
207
|
-
"react-confetti": "^6.
|
|
208
|
-
"react-dom": "^
|
|
209
|
-
"react-intersection-observer": "^
|
|
213
|
+
"react": "^18.3.1",
|
|
214
|
+
"react-confetti": "^6.0.1",
|
|
215
|
+
"react-dom": "^18.3.1",
|
|
216
|
+
"react-intersection-observer": "^9.16.0",
|
|
210
217
|
"uuid": "^11.1.0"
|
|
211
218
|
},
|
|
212
219
|
"devDependencies": {
|
|
@@ -230,8 +237,8 @@
|
|
|
230
237
|
"@types/jest": "^29.5.14",
|
|
231
238
|
"@types/numeral": "^2.0.5",
|
|
232
239
|
"@types/prop-types": "^15.7.14",
|
|
233
|
-
"@types/react": "^
|
|
234
|
-
"@types/react-dom": "^
|
|
240
|
+
"@types/react": "^18.3.18",
|
|
241
|
+
"@types/react-dom": "^18.3.5",
|
|
235
242
|
"@types/uuid": "^10.0.0",
|
|
236
243
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
237
244
|
"@typescript-eslint/parser": "^7.16.0",
|
|
@@ -281,5 +288,5 @@
|
|
|
281
288
|
"CHANGELOG.md",
|
|
282
289
|
"README.md"
|
|
283
290
|
],
|
|
284
|
-
"packageManager": "yarn@4.
|
|
291
|
+
"packageManager": "yarn@4.13.0"
|
|
285
292
|
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { observer as f } from "mobx-react-lite";
|
|
3
|
-
import a from "@mui/material/Stack";
|
|
4
|
-
import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
|
|
5
|
-
import p from "react";
|
|
6
|
-
import { G as N, d as _, m as P, f as G, u as O } from "./hooks-CBl85iRr.mjs";
|
|
7
|
-
import { g as R } from "./AccountFields-DuFtmuud.mjs";
|
|
8
|
-
import { A as r } from "./Account-CMjOp7S2.mjs";
|
|
9
|
-
import w from "@mui/material/Card";
|
|
10
|
-
import v from "@mui/material/CardContent";
|
|
11
|
-
import L from "@mui/material/CardHeader";
|
|
12
|
-
import { L as H } from "./Loader-icSc5MlE.mjs";
|
|
13
|
-
import { I as M, P as U, S as Y } from "./Account-BIKn4XEZ.mjs";
|
|
14
|
-
import { u as j } from "./useAccountDisplayName-b2xxcD0C.mjs";
|
|
15
|
-
import { f as z } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
16
|
-
const C = () => {
|
|
17
|
-
if (!p.useContext(N))
|
|
18
|
-
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
19
|
-
return _().uiStore;
|
|
20
|
-
}, B = (i, e) => {
|
|
21
|
-
const c = [r.LOAN, r.MORTGAGE, r.PROPERTY].includes(
|
|
22
|
-
i
|
|
23
|
-
), n = [
|
|
24
|
-
r.CREDIT_CARD,
|
|
25
|
-
r.LINE_OF_CREDIT,
|
|
26
|
-
r.PREPAID,
|
|
27
|
-
r.CHECKING_LINE_OF_CREDIT
|
|
28
|
-
].includes(i);
|
|
29
|
-
return c ? { title: e.label_payments, description: e.chart_title_payments } : n ? { title: e.label_payments_spend, description: e.chart_title_payments_spend } : { title: e.label_income_spend, description: e.chart_title_income_spend };
|
|
30
|
-
}, k = ({
|
|
31
|
-
sx: i,
|
|
32
|
-
ChartComponent: e,
|
|
33
|
-
header: c
|
|
34
|
-
}) => {
|
|
35
|
-
const { loadMonthlyCategoryTotals: n } = P(), { isInitialized: o } = G(), { selectedAccount: d } = C(), [u, m] = p.useState(!1);
|
|
36
|
-
return p.useEffect(() => {
|
|
37
|
-
o && n([d]).finally(() => {
|
|
38
|
-
m(!0);
|
|
39
|
-
});
|
|
40
|
-
}, [o, d]), !o || !u ? /* @__PURE__ */ t(H, {}) : /* @__PURE__ */ s(
|
|
41
|
-
w,
|
|
42
|
-
{
|
|
43
|
-
sx: {
|
|
44
|
-
"& .MuiCardContent-root:last-child": {
|
|
45
|
-
pb: 0
|
|
46
|
-
},
|
|
47
|
-
...i
|
|
48
|
-
},
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ t(L, { sx: { pb: 0 }, title: /* @__PURE__ */ t(T, { sx: { pb: 4 }, children: c }) }),
|
|
51
|
-
/* @__PURE__ */ t(v, { sx: { p: 0 }, children: e ? /* @__PURE__ */ t(e, {}) : null })
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}, F = f(k), V = ({
|
|
56
|
-
customDetailsChart: i,
|
|
57
|
-
ChartComponent: e
|
|
58
|
-
}) => {
|
|
59
|
-
const { institutions: c } = _(), { selectedAccount: n } = C(), { accounts: o } = O(), { firstSubtitle: d, firstValue: u, hasAvailableBalance: m, secondSubtitle: h, secondValue: b } = R(n, o), A = c.find(
|
|
60
|
-
(I) => I.guid === n?.institution_guid
|
|
61
|
-
), S = [
|
|
62
|
-
...M,
|
|
63
|
-
...U,
|
|
64
|
-
...Y
|
|
65
|
-
].includes(n.account_type), g = j(n), { title: y, description: E } = B(n.account_type, o);
|
|
66
|
-
return /* @__PURE__ */ s(a, { bgcolor: "background.default", p: 24, children: [
|
|
67
|
-
/* @__PURE__ */ s(a, { gap: 12, children: [
|
|
68
|
-
/* @__PURE__ */ t(
|
|
69
|
-
x,
|
|
70
|
-
{
|
|
71
|
-
alt: o.institution_logo_alt,
|
|
72
|
-
institutionGuid: n.institution_guid || "",
|
|
73
|
-
size: 64
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
/* @__PURE__ */ t(l, { variant: "Small", children: A?.name })
|
|
77
|
-
] }),
|
|
78
|
-
/* @__PURE__ */ s(a, { gap: 8, mb: 24, mt: 4, children: [
|
|
79
|
-
/* @__PURE__ */ t(D, { children: g }),
|
|
80
|
-
/* @__PURE__ */ s(a, { direction: "row", justifyContent: "space-between", children: [
|
|
81
|
-
/* @__PURE__ */ t(l, { bold: m, variant: "Body", children: d }),
|
|
82
|
-
/* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: z(u, "0,0.00") })
|
|
83
|
-
] }),
|
|
84
|
-
/* @__PURE__ */ s(a, { direction: "row", justifyContent: "space-between", children: [
|
|
85
|
-
/* @__PURE__ */ t(l, { variant: "Small", children: h }),
|
|
86
|
-
/* @__PURE__ */ t(l, { variant: "Small", children: b })
|
|
87
|
-
] })
|
|
88
|
-
] }),
|
|
89
|
-
S && /* @__PURE__ */ t(a, { "aria-label": E, role: "img", children: i || /* @__PURE__ */ t(F, { ChartComponent: e, header: y }) })
|
|
90
|
-
] });
|
|
91
|
-
}, st = f(V);
|
|
92
|
-
export {
|
|
93
|
-
st as A,
|
|
94
|
-
C as u
|
|
95
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { observer as b } from "mobx-react-lite";
|
|
3
|
-
import I from "@mui/material/Badge";
|
|
4
|
-
import m from "@mui/material/Box";
|
|
5
|
-
import S from "@mui/material/ListItem";
|
|
6
|
-
import v from "@mui/material/ListItemAvatar";
|
|
7
|
-
import C from "@mui/material/ListItemButton";
|
|
8
|
-
import _ from "@mui/material/ListItemText";
|
|
9
|
-
import B from "@mui/material/styles/useTheme";
|
|
10
|
-
import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
|
|
11
|
-
import { Error as A } from "@mxenabled/mx-icons";
|
|
12
|
-
import { I as j } from "./IconBacking-DgT8DCeh.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-DuFtmuud.mjs";
|
|
14
|
-
import { u as X } from "./useAccountDisplayName-b2xxcD0C.mjs";
|
|
15
|
-
import { u as $ } from "./hooks-CBl85iRr.mjs";
|
|
16
|
-
import { C as d } from "./Account-CMjOp7S2.mjs";
|
|
17
|
-
import { f as k } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
18
|
-
const w = {
|
|
19
|
-
gridRow: 1,
|
|
20
|
-
gridColumn: 1,
|
|
21
|
-
zIndex: 2
|
|
22
|
-
}, E = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(A, { color: "error", filled: !0, sx: { fontSize: t, ...w } }) }), M = ({
|
|
23
|
-
account: t,
|
|
24
|
-
onRowClick: s,
|
|
25
|
-
listItemProps: c,
|
|
26
|
-
shouldShowConnectionStatus: p = !1
|
|
27
|
-
}) => {
|
|
28
|
-
const u = B(), f = X(t), { accounts: i } = $(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
|
|
29
|
-
t,
|
|
30
|
-
i
|
|
31
|
-
);
|
|
32
|
-
let n;
|
|
33
|
-
(t.connectionStatus === d.Error || t.connectionStatus === d.RequiresMfa) && (n = /* @__PURE__ */ e(E, { size: 16 }));
|
|
34
|
-
const a = /* @__PURE__ */ r(l, { children: [
|
|
35
|
-
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
36
|
-
I,
|
|
37
|
-
{
|
|
38
|
-
badgeContent: p ? n : void 0,
|
|
39
|
-
sx: {
|
|
40
|
-
"& .MuiBadge-badge": {
|
|
41
|
-
right: -1
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
children: /* @__PURE__ */ e(L, { alt: "MX", institutionGuid: t.institution_guid || "" })
|
|
45
|
-
}
|
|
46
|
-
) }),
|
|
47
|
-
/* @__PURE__ */ e(
|
|
48
|
-
_,
|
|
49
|
-
{
|
|
50
|
-
disableTypography: !0,
|
|
51
|
-
primary: /* @__PURE__ */ r(
|
|
52
|
-
o,
|
|
53
|
-
{
|
|
54
|
-
bold: !0,
|
|
55
|
-
color: t.is_hidden ? u.palette.text.secondary : void 0,
|
|
56
|
-
sx: { whiteSpace: "normal" },
|
|
57
|
-
variant: "Body",
|
|
58
|
-
children: [
|
|
59
|
-
`${f} ${t.account_number ? `*${t.account_number}` : ""}`,
|
|
60
|
-
" ",
|
|
61
|
-
t.is_hidden && !t.is_closed && i.is_hidden,
|
|
62
|
-
t.is_closed && i.is_closed
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
secondary: /* @__PURE__ */ r(l, { children: [
|
|
67
|
-
/* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
68
|
-
/* @__PURE__ */ e(o, { variant: "XSmall", children: h }),
|
|
69
|
-
/* @__PURE__ */ e(o, { bold: !0, variant: "Small", children: k(g, "0,0.00") })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
72
|
-
/* @__PURE__ */ e(o, { variant: "XSmall", children: x }),
|
|
73
|
-
/* @__PURE__ */ e(o, { ml: "auto", variant: "XSmall", children: y })
|
|
74
|
-
] })
|
|
75
|
-
] })
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] });
|
|
79
|
-
return /* @__PURE__ */ e(
|
|
80
|
-
S,
|
|
81
|
-
{
|
|
82
|
-
sx: { backgroundColor: "background.paper", color: t.is_closed ? "grey.700" : "" },
|
|
83
|
-
...c,
|
|
84
|
-
children: s ? /* @__PURE__ */ e(C, { alignItems: "flex-start", onClick: s, sx: { px: 24 }, children: a }) : a
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}, Z = b(M);
|
|
88
|
-
export {
|
|
89
|
-
Z as A
|
|
90
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { A as e, C as u, E as r, c as p, M as y } from "./Account-CMjOp7S2.mjs";
|
|
2
|
-
const l = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, R = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, f = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, m = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t, n, s, _) => t.filter((i) => !(i.member_is_managed_by_user && _)).sort(d).map((i) => {
|
|
3
|
-
const c = n.find((a) => a.guid === i.institution_guid), o = s.find((a) => a.guid === i.member_guid);
|
|
4
|
-
return E(i, c, o);
|
|
5
|
-
}), E = (t, n, s) => {
|
|
6
|
-
let _ = u.Connected;
|
|
7
|
-
s && (r.includes(s.connection_status) ? _ = u.Error : p.includes(s.connection_status) ? _ = u.Processing : y.includes(s.connection_status) && (_ = u.RequiresMfa));
|
|
8
|
-
const i = [
|
|
9
|
-
t.user_name || t.feed_name || "",
|
|
10
|
-
t.account_number ? `*${t.account_number}` : ""
|
|
11
|
-
].join(" ").trim();
|
|
12
|
-
return {
|
|
13
|
-
...t,
|
|
14
|
-
connectionStatus: _,
|
|
15
|
-
displayName: i,
|
|
16
|
-
institution: n,
|
|
17
|
-
member: s
|
|
18
|
-
};
|
|
19
|
-
}, d = (t, n) => t.account_type > n.account_type ? 1 : t.account_type < n.account_type ? -1 : (t.name || "") > (n.name || "") ? 1 : (t.name || "") < (n.name || "") ? -1 : 0;
|
|
20
|
-
export {
|
|
21
|
-
l as a,
|
|
22
|
-
R as b,
|
|
23
|
-
m as c,
|
|
24
|
-
A as d,
|
|
25
|
-
I as i,
|
|
26
|
-
f as u
|
|
27
|
-
};
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { Icon as w } from "@mxenabled/mx-icons";
|
|
3
|
-
import { H3 as M, P as S } from "@mxenabled/mxui";
|
|
4
|
-
import C from "@mui/material/Button";
|
|
5
|
-
import j from "@mui/material/Dialog";
|
|
6
|
-
import F from "@mui/material/DialogActions";
|
|
7
|
-
import P from "@mui/material/DialogContent";
|
|
8
|
-
import A from "@mui/material/IconButton";
|
|
9
|
-
import G from "@mui/material/InputAdornment";
|
|
10
|
-
import _ from "@mui/material/Stack";
|
|
11
|
-
import E from "@mui/material/TextField";
|
|
12
|
-
import { k as H } from "./hooks-CBl85iRr.mjs";
|
|
13
|
-
import { b as B } from "./Category-Ccoew_sA.mjs";
|
|
14
|
-
import { b as x } from "./Localization-2MODESHW.mjs";
|
|
15
|
-
import { f as h } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
16
|
-
const D = (o, e) => o.find((t) => t.guid === e), O = (o, e) => o.find((t) => t.guid === e), $ = (o, e) => {
|
|
17
|
-
const t = o.find((r) => r.subCategories.find((a) => a.guid === e));
|
|
18
|
-
if (t)
|
|
19
|
-
return t.subCategories.find((r) => r.guid === e);
|
|
20
|
-
}, ot = (o, e) => {
|
|
21
|
-
const t = [];
|
|
22
|
-
for (const r of e) {
|
|
23
|
-
const a = D(o, r.category_guid);
|
|
24
|
-
if (!a) continue;
|
|
25
|
-
const n = a.parent_guid ?? a.guid, i = D(o, n);
|
|
26
|
-
if (!i) continue;
|
|
27
|
-
const s = {
|
|
28
|
-
amount: r.total,
|
|
29
|
-
category: a,
|
|
30
|
-
guid: a.guid,
|
|
31
|
-
subCategoryTotals: []
|
|
32
|
-
}, u = t.find((d) => d.guid === n);
|
|
33
|
-
u ? (u.amount += r.total, u.subCategoryTotals.push(s)) : t.push({
|
|
34
|
-
amount: r.total,
|
|
35
|
-
category: i,
|
|
36
|
-
guid: n,
|
|
37
|
-
subCategoryTotals: [s]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return t;
|
|
41
|
-
}, rt = (o, e) => {
|
|
42
|
-
const t = o.find((r) => r.guid === e);
|
|
43
|
-
return t ? t.guid === B.INCOME || t.parent_guid === B.INCOME : !1;
|
|
44
|
-
}, nt = ({
|
|
45
|
-
closeAriaLabel: o,
|
|
46
|
-
content: e,
|
|
47
|
-
inputLabel: t,
|
|
48
|
-
inputValue: r,
|
|
49
|
-
isOpen: a,
|
|
50
|
-
handleInputChange: n,
|
|
51
|
-
handleModalClose: i,
|
|
52
|
-
handlePrimaryAction: s,
|
|
53
|
-
handleSecondaryAction: u,
|
|
54
|
-
primaryColor: d = "primary",
|
|
55
|
-
primaryText: l,
|
|
56
|
-
secondaryColor: p = "primary",
|
|
57
|
-
secondaryText: m,
|
|
58
|
-
title: b
|
|
59
|
-
}) => {
|
|
60
|
-
const N = parseFloat(r ?? "0"), T = r !== "" && !isNaN(N);
|
|
61
|
-
return /* @__PURE__ */ c(
|
|
62
|
-
j,
|
|
63
|
-
{
|
|
64
|
-
"aria-label": b,
|
|
65
|
-
"aria-labelledby": "modal-title",
|
|
66
|
-
maxWidth: "xs",
|
|
67
|
-
onClose: i,
|
|
68
|
-
open: a,
|
|
69
|
-
role: "dialog",
|
|
70
|
-
sx: { "& .MuiDialogContent-root": { p: 0 } },
|
|
71
|
-
children: /* @__PURE__ */ c(P, { children: /* @__PURE__ */ f(
|
|
72
|
-
"form",
|
|
73
|
-
{
|
|
74
|
-
onSubmit: (g) => {
|
|
75
|
-
g.preventDefault(), s();
|
|
76
|
-
},
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ f(
|
|
79
|
-
_,
|
|
80
|
-
{
|
|
81
|
-
sx: {
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
flexDirection: "row",
|
|
84
|
-
justifyContent: "space-between",
|
|
85
|
-
pb: 12,
|
|
86
|
-
pl: 24,
|
|
87
|
-
position: "relative",
|
|
88
|
-
pr: 16,
|
|
89
|
-
pt: 24
|
|
90
|
-
},
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ c(M, { id: "modal-title", children: b }),
|
|
93
|
-
/* @__PURE__ */ c(
|
|
94
|
-
A,
|
|
95
|
-
{
|
|
96
|
-
"aria-label": o,
|
|
97
|
-
onClick: i,
|
|
98
|
-
sx: { minHeight: 24, position: "absolute", right: 8, top: 18 },
|
|
99
|
-
children: /* @__PURE__ */ c(w, { name: "close", sx: { color: "action.active" } })
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
/* @__PURE__ */ f(_, { sx: { gap: 24, px: 24 }, children: [
|
|
106
|
-
/* @__PURE__ */ c(S, { variant: "subtitle1", children: e }),
|
|
107
|
-
t && /* @__PURE__ */ c(
|
|
108
|
-
E,
|
|
109
|
-
{
|
|
110
|
-
InputProps: {
|
|
111
|
-
startAdornment: /* @__PURE__ */ c(G, { position: "start", children: "$" })
|
|
112
|
-
},
|
|
113
|
-
autoFocus: !0,
|
|
114
|
-
inputMode: "decimal",
|
|
115
|
-
inputProps: {
|
|
116
|
-
"aria-label": t,
|
|
117
|
-
noValidate: !0,
|
|
118
|
-
pattern: "[0-9]*\\.?[0-9]*"
|
|
119
|
-
},
|
|
120
|
-
label: t,
|
|
121
|
-
onChange: ({ target: { value: g } }) => {
|
|
122
|
-
if (!/^\d*\.?\d*$/.test(g)) return;
|
|
123
|
-
const y = parseFloat(g);
|
|
124
|
-
isNaN(y) || n?.(y);
|
|
125
|
-
},
|
|
126
|
-
type: "number",
|
|
127
|
-
value: r
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
] }),
|
|
131
|
-
/* @__PURE__ */ f(
|
|
132
|
-
F,
|
|
133
|
-
{
|
|
134
|
-
sx: {
|
|
135
|
-
justifyContent: "flex-end",
|
|
136
|
-
gap: 16,
|
|
137
|
-
p: 24,
|
|
138
|
-
">:not(style)~:not(style)": { ml: 0 }
|
|
139
|
-
},
|
|
140
|
-
children: [
|
|
141
|
-
m && /* @__PURE__ */ c(
|
|
142
|
-
C,
|
|
143
|
-
{
|
|
144
|
-
"aria-label": m,
|
|
145
|
-
color: p,
|
|
146
|
-
onClick: u,
|
|
147
|
-
children: m
|
|
148
|
-
}
|
|
149
|
-
),
|
|
150
|
-
/* @__PURE__ */ c(
|
|
151
|
-
C,
|
|
152
|
-
{
|
|
153
|
-
"aria-label": l,
|
|
154
|
-
color: d,
|
|
155
|
-
disabled: t ? !T : !1,
|
|
156
|
-
onClick: s,
|
|
157
|
-
variant: "contained",
|
|
158
|
-
children: l
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
) })
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
}, v = (o, e) => !o && !e ? 0 : !o && e ? 101 : e / o * 100, k = (o, e) => {
|
|
170
|
-
const t = {
|
|
171
|
-
background: e.palette.success.main,
|
|
172
|
-
description: o <= 100 ? e.palette.text.secondary : e.palette.error.main,
|
|
173
|
-
text: e.palette.common.white,
|
|
174
|
-
mercury: e.palette.success.lighter
|
|
175
|
-
};
|
|
176
|
-
return o > 100 ? (t.background = e.palette.error.main, t.mercury = e.palette.error.lighter) : o > 80 && (t.background = e.palette.warning.main, t.text = e.palette.grey[900], t.mercury = e.palette.warning.lighter), t;
|
|
177
|
-
}, at = () => {
|
|
178
|
-
const { detailedBudgets: o } = H();
|
|
179
|
-
return o.map((t) => {
|
|
180
|
-
const r = t.transaction_total;
|
|
181
|
-
return t.amount - r;
|
|
182
|
-
}).reduce((t, r) => t + r, 0);
|
|
183
|
-
}, it = (o, e, t, r) => {
|
|
184
|
-
const a = [];
|
|
185
|
-
for (const n of o) {
|
|
186
|
-
const i = O(e, n.category_guid);
|
|
187
|
-
if (!i) continue;
|
|
188
|
-
const s = i.totalAmount, u = v(n.amount, s), d = n.amount - s;
|
|
189
|
-
a.push({
|
|
190
|
-
...n,
|
|
191
|
-
budgetColors: k(u, r),
|
|
192
|
-
category: i,
|
|
193
|
-
description: x(
|
|
194
|
-
d < 0 ? t.budget_remaining_over : t.budget_remaining_left,
|
|
195
|
-
h(Math.abs(d), "0,0")
|
|
196
|
-
),
|
|
197
|
-
percentage: u,
|
|
198
|
-
subBudgets: [],
|
|
199
|
-
transaction_total: s
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
for (const n of o) {
|
|
203
|
-
const i = $(e, n.category_guid);
|
|
204
|
-
if (!i) continue;
|
|
205
|
-
const s = i.currentAmount, u = a.find((p) => p.category_guid === i.parent_guid);
|
|
206
|
-
if (!u) continue;
|
|
207
|
-
const d = n.amount - s, l = v(n.amount, s);
|
|
208
|
-
u && u.subBudgets.push({
|
|
209
|
-
...n,
|
|
210
|
-
budgetColors: k(l, r),
|
|
211
|
-
category: i,
|
|
212
|
-
description: x(
|
|
213
|
-
d < 0 ? t.budget_remaining_over : t.budget_remaining_left,
|
|
214
|
-
h(Math.abs(d), "0,0")
|
|
215
|
-
),
|
|
216
|
-
percentage: l,
|
|
217
|
-
subBudgets: [],
|
|
218
|
-
transaction_total: s
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
return a;
|
|
222
|
-
}, I = (o, e) => o.find((t) => t.guid === e), st = (o, e, t) => {
|
|
223
|
-
const r = I(o, t);
|
|
224
|
-
if (r)
|
|
225
|
-
return I(r.subBudgets, e);
|
|
226
|
-
};
|
|
227
|
-
export {
|
|
228
|
-
nt as C,
|
|
229
|
-
st as a,
|
|
230
|
-
it as b,
|
|
231
|
-
ot as c,
|
|
232
|
-
O as d,
|
|
233
|
-
$ as e,
|
|
234
|
-
I as f,
|
|
235
|
-
D as g,
|
|
236
|
-
rt as i,
|
|
237
|
-
at as u
|
|
238
|
-
};
|